Skip to content

Commit

Permalink
ui: minor change to primitives/Accordian
Browse files Browse the repository at this point in the history
cmmc: moved CartAccordian to client
  • Loading branch information
artemis-prime committed Jun 20, 2024
1 parent 2a55611 commit 193f5dc
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 71 deletions.
59 changes: 0 additions & 59 deletions packages/commerce/components/cart/cart-accordian.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/commerce/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export { default as AddToCartWidget } from './add-to-cart-widget'
export { default as CarouselBuyCard } from './buy/carousel-buy-card'

export { default as CartAccordian } from './cart/cart-accordian'
export { default as CartPanel } from './cart/cart-panel'

export { default as Icons } from './Icons'
Expand Down
4 changes: 2 additions & 2 deletions packages/commerce/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hanzo/commerce",
"version": "7.1.27",
"version": "7.1.34",
"description": "e-commerce framework.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"peerDependencies": {
"@hanzo/auth": "^2.4.10",
"@hanzo/ui": "^3.8.21",
"@hanzo/ui": "^3.8.31",
"@hookform/resolvers": "^3.3.4",
"@radix-ui/react-radio-group": "^1.1.3",
"firebase": "^10.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hanzo/ui",
"version": "3.8.29",
"version": "3.8.31",
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
Expand Down
7 changes: 4 additions & 3 deletions packages/ui/primitives/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ const AccordionItem = React.forwardRef<
AccordionItem.displayName = "AccordionItem"

type AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & {
showChevron?: boolean;
showChevron?: boolean
headerClx?: string
}

const AccordionTrigger = React.forwardRef<
React.ElementRef<typeof AccordionPrimitive.Trigger>,
AccordionTriggerProps
>(({ showChevron, className, children, ...props }, ref) => (
<AccordionPrimitive.Header className="flex">
>(({ showChevron, headerClx, className, children, ...props }, ref) => (
<AccordionPrimitive.Header className={cn('flex', headerClx)}>
<AccordionPrimitive.Trigger
ref={ref}
className={cn(
Expand Down
87 changes: 82 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 193f5dc

Please sign in to comment.