Skip to content

Commit

Permalink
lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Nov 18, 2024
1 parent 10598f8 commit e5bd939
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Binary file modified bun.lockb
Binary file not shown.
7 changes: 3 additions & 4 deletions components/ui/disclosure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { cn, cr } from "./primitive"
interface DisclosureGroupProps extends DisclosureGroupPrimitiveProps {
hideBorder?: boolean
hideIndicator?: boolean
className?: string
}

const DisclosureGroupContext = React.createContext<DisclosureGroupProps>({})
Expand All @@ -41,14 +42,12 @@ const DisclosureGroup = ({
isDisabled ? "cursor-not-allowed opacity-75" : "cursor-pointer",
hideBorder
? "[&_[data-slot=accordion-item]]:border-none"
: "[&_[data-slot=accordion-item]]:border-b",

className
: "[&_[data-slot=accordion-item]]:border-b"
])
}
>
{(values) => (
<div data-slot="accordion-item-content">
<div data-slot="accordion-item-content" className={className}>
<DisclosureGroupContext.Provider value={{ hideIndicator, hideBorder }}>
{typeof children === "function" ? children(values) : children}
</DisclosureGroupContext.Provider>
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"dependencies": {
"@openpanel/nextjs": "^0.0.10-beta",
"@radix-ui/react-collapsible": "^1.1.1",
"@shikijs/transformers": "^1.23.0",
"@shikijs/transformers": "^1.23.1",
"chroma-js": "^2.6.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.4",
"color-namer": "^1.4.0",
"embla-carousel-autoplay": "^8.3.1",
"embla-carousel-react": "^8.3.1",
"embla-carousel-autoplay": "^8.4.0",
"embla-carousel-react": "^8.4.0",
"framer-motion": "12.0.0-alpha.1",
"input-otp": "^1.4.1",
"justd-icons": "^1.7.6",
"justd-icons": "^1.7.9",
"mitt": "^3.0.1",
"next": "^15.0.3",
"next-themes": "^0.2.1",
Expand All @@ -42,19 +42,19 @@
"rehype-stringify": "^10.0.1",
"scroll-into-view-if-needed": "^3.1.0",
"sharp": "^0.33.5",
"shiki": "^1.23.0",
"shiki": "^1.23.1",
"sonner": "^1.7.0",
"tailwind-merge": "^2.5.4",
"tailwind-variants": "^0.2.1",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-react-aria-components": "^1.1.6",
"title": "^3.5.3",
"use-debounce": "^10.0.4",
"usemods": "^1.8.0",
"usemods": "^1.8.1",
"vaul": "^1.1.1"
},
"devDependencies": {
"@shikijs/rehype": "^1.23.0",
"@shikijs/rehype": "^1.23.1",
"@tailwindcss/typography": "^0.5.15",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/chroma-js": "^2.4.4",
Expand Down

0 comments on commit e5bd939

Please sign in to comment.