@kuzenbo/core 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/action-icon-UjYZjXrB.d.ts +59 -0
- package/dist/action-icon-UjYZjXrB.d.ts.map +1 -0
- package/dist/{avatar-DpiupAAM.d.ts → avatar-4S7I72CH.d.ts} +2 -2
- package/dist/{avatar-DpiupAAM.d.ts.map → avatar-4S7I72CH.d.ts.map} +1 -1
- package/dist/{avatar-CXhwmJgG.js → avatar-C3vF6E7s.js} +1 -1
- package/dist/{avatar-CXhwmJgG.js.map → avatar-C3vF6E7s.js.map} +1 -1
- package/dist/{badge-BKRm6jL7.js → badge-DB40swlt.js} +1 -1
- package/dist/{badge-BKRm6jL7.js.map → badge-DB40swlt.js.map} +1 -1
- package/dist/button-CPPkhcmB.d.ts +59 -0
- package/dist/button-CPPkhcmB.d.ts.map +1 -0
- package/dist/button-shared-variants-J4RVI3K7.js +19 -0
- package/dist/button-shared-variants-J4RVI3K7.js.map +1 -0
- package/dist/{dialog-CD5lfQA9.js → dialog-B7kMKriQ.js} +6 -5
- package/dist/dialog-B7kMKriQ.js.map +1 -0
- package/dist/{dialog-DEkdr-9K.d.ts → dialog-D3dAMsO_.d.ts} +1 -1
- package/dist/{dialog-DEkdr-9K.d.ts.map → dialog-D3dAMsO_.d.ts.map} +1 -1
- package/dist/{dropdown-menu-Bpj576m0.d.ts → dropdown-menu-BG03sLbC.d.ts} +2 -2
- package/dist/{dropdown-menu-Bpj576m0.d.ts.map → dropdown-menu-BG03sLbC.d.ts.map} +1 -1
- package/dist/{dropdown-menu-BJi-V71O.js → dropdown-menu-DOVY76ue.js} +1 -1
- package/dist/{dropdown-menu-BJi-V71O.js.map → dropdown-menu-DOVY76ue.js.map} +1 -1
- package/dist/{input-WWoBCgxe.d.ts → input-BeE717GK.d.ts} +2 -2
- package/dist/{input-WWoBCgxe.d.ts.map → input-BeE717GK.d.ts.map} +1 -1
- package/dist/{input-Ex9ZRqbo.js → input-cICL6sH_.js} +1 -1
- package/dist/{input-Ex9ZRqbo.js.map → input-cICL6sH_.js.map} +1 -1
- package/dist/{input-group-CjcHP0L4.js → input-group-7kPror1q.js} +15 -5
- package/dist/input-group-7kPror1q.js.map +1 -0
- package/dist/provider.d.ts +3 -3
- package/dist/{scroll-bar-C4qEUKlT.js → scroll-bar-BKRy5Me9.js} +1 -1
- package/dist/{scroll-bar-C4qEUKlT.js.map → scroll-bar-BKRy5Me9.js.map} +1 -1
- package/dist/{separator-C8Qw2ADs.d.ts → separator-CgOz2m5i.d.ts} +1 -1
- package/dist/{separator-C8Qw2ADs.d.ts.map → separator-CgOz2m5i.d.ts.map} +1 -1
- package/dist/{sheet-imSHXfFH.js → sheet-CcyewAZj.js} +6 -6
- package/dist/sheet-CcyewAZj.js.map +1 -0
- package/dist/{size-context-DXfCAlWF.d.ts → size-context-DWvVJytl.d.ts} +2 -2
- package/dist/{size-context-DXfCAlWF.d.ts.map → size-context-DWvVJytl.d.ts.map} +1 -1
- package/dist/{size-provider-Bd2C6gKd.d.ts → size-provider-PHAZhU6k.d.ts} +2 -2
- package/dist/{size-provider-Bd2C6gKd.d.ts.map → size-provider-PHAZhU6k.d.ts.map} +1 -1
- package/dist/{size-system-wzOLSuax.d.ts → size-system-BAI1CnwU.d.ts} +1 -1
- package/dist/size-system-BAI1CnwU.d.ts.map +1 -0
- package/dist/size.d.ts +3 -3
- package/dist/{slider-root-presentation-B6OO_iCT.js → slider-root-presentation-G0ByTcvd.js} +1 -1
- package/dist/{slider-root-presentation-B6OO_iCT.js.map → slider-root-presentation-G0ByTcvd.js.map} +1 -1
- package/dist/{slider-style-tokens-CZezJilZ.d.ts → slider-style-tokens-DNzHvGii.d.ts} +1 -1
- package/dist/{slider-style-tokens-CZezJilZ.d.ts.map → slider-style-tokens-DNzHvGii.d.ts.map} +1 -1
- package/dist/{textarea-C8dsnn8D.d.ts → textarea-rmoEkvdu.d.ts} +1 -1
- package/dist/{textarea-C8dsnn8D.d.ts.map → textarea-rmoEkvdu.d.ts.map} +1 -1
- package/dist/{textarea-CkiM1N_I.js → textarea-vNt8edEA.js} +1 -1
- package/dist/{textarea-CkiM1N_I.js.map → textarea-vNt8edEA.js.map} +1 -1
- package/dist/{toggle-CxkIncmZ.d.ts → toggle-D8kPPZH9.d.ts} +1 -1
- package/dist/{toggle-CxkIncmZ.d.ts.map → toggle-D8kPPZH9.d.ts.map} +1 -1
- package/dist/{tooltip-D0BEpCQx.js → tooltip-BUo_HPnp.js} +1 -1
- package/dist/{tooltip-D0BEpCQx.js.map → tooltip-BUo_HPnp.js.map} +1 -1
- package/dist/{tooltip-DbJxt69l.d.ts → tooltip-DatN3AoZ.d.ts} +2 -2
- package/dist/{tooltip-DbJxt69l.d.ts.map → tooltip-DatN3AoZ.d.ts.map} +1 -1
- package/dist/ui/accordion.d.ts +1 -1
- package/dist/ui/action-icon.d.ts +2 -0
- package/dist/ui/action-icon.js +74 -0
- package/dist/ui/action-icon.js.map +1 -0
- package/dist/ui/alert-dialog.d.ts +2 -2
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/announcement.js +1 -1
- package/dist/ui/autocomplete.d.ts +3 -3
- package/dist/ui/autocomplete.js +1 -1
- package/dist/ui/autocomplete.js.map +1 -1
- package/dist/ui/avatar.d.ts +1 -1
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.ts +1 -1
- package/dist/ui/button-group.d.ts +2 -2
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +27 -49
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts +1 -1
- package/dist/ui/carousel.d.ts +3 -3
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +5 -5
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/checkbox.d.ts +1 -1
- package/dist/ui/combobox.d.ts +1 -1
- package/dist/ui/combobox.js +12 -12
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/command.js +2 -2
- package/dist/ui/container.d.ts +1 -0
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/container.js +6 -2
- package/dist/ui/container.js.map +1 -1
- package/dist/ui/context-menu.d.ts +1 -1
- package/dist/ui/copy-button.d.ts +1 -1
- package/dist/ui/copy-button.js +29 -8
- package/dist/ui/copy-button.js.map +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/drawer.d.ts +310 -119
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +254 -114
- package/dist/ui/drawer.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +2 -2
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/emoji-picker.d.ts +2 -2
- package/dist/ui/empty.d.ts +2 -2
- package/dist/ui/field.d.ts +1 -1
- package/dist/ui/input-group.d.ts +3 -3
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +1 -1
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/item.d.ts +1 -1
- package/dist/ui/kbd.d.ts +1 -1
- package/dist/ui/menubar.d.ts +2 -2
- package/dist/ui/menubar.js +1 -1
- package/dist/ui/navigation-list.d.ts +2 -2
- package/dist/ui/navigation-menu.d.ts +1 -1
- package/dist/ui/number-field.d.ts +1 -1
- package/dist/ui/pagination.d.ts +1 -1
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +18 -10
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/pill.d.ts +3 -3
- package/dist/ui/pill.d.ts.map +1 -1
- package/dist/ui/pill.js +5 -5
- package/dist/ui/pill.js.map +1 -1
- package/dist/ui/popover.d.ts +2 -2
- package/dist/ui/popover.js +1 -1
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/preview-card.js +1 -1
- package/dist/ui/preview-card.js.map +1 -1
- package/dist/ui/radio-group.d.ts +1 -1
- package/dist/ui/range-slider.d.ts +1 -1
- package/dist/ui/range-slider.js +1 -1
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/select.d.ts +3 -3
- package/dist/ui/select.js +1 -1
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar.d.ts +6 -6
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +15 -18
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/slider.d.ts +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/spinner.d.ts +1 -1
- package/dist/ui/switch.d.ts +1 -1
- package/dist/ui/table.d.ts +2 -2
- package/dist/ui/table.js +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/toggle-group.d.ts +2 -2
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toolbar.d.ts +3 -3
- package/dist/ui/tooltip.d.ts +2 -2
- package/dist/ui/tooltip.js +1 -1
- package/dist/ui/typography.d.ts +1 -1
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +20 -20
- package/dist/ui/typography.js.map +1 -1
- package/package.json +8 -6
- package/dist/button-nAbTNrxA.d.ts +0 -78
- package/dist/button-nAbTNrxA.d.ts.map +0 -1
- package/dist/dialog-CD5lfQA9.js.map +0 -1
- package/dist/input-group-CjcHP0L4.js.map +0 -1
- package/dist/sheet-imSHXfFH.js.map +0 -1
- package/dist/size-system-wzOLSuax.d.ts.map +0 -1
package/dist/ui/drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","names":["DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive"],"sources":["../../src/ui/drawer/drawer-size-context.ts","../../src/ui/drawer/drawer-actions.tsx","../../src/ui/drawer/drawer-backdrop.tsx","../../src/ui/drawer/drawer-close.tsx","../../src/ui/drawer/drawer-content.tsx","../../src/ui/drawer/drawer-description.tsx","../../src/ui/drawer/drawer-handle.tsx","../../src/ui/drawer/drawer-header.tsx","../../src/ui/drawer/drawer-indent.tsx","../../src/ui/drawer/drawer-indent-background.tsx","../../src/ui/drawer/drawer-popup.tsx","../../src/ui/drawer/drawer-portal.tsx","../../src/ui/drawer/drawer-provider.tsx","../../src/ui/drawer/drawer-title.tsx","../../src/ui/drawer/drawer-trigger.tsx","../../src/ui/drawer/drawer-viewport.tsx","../../src/ui/drawer/drawer.tsx"],"sourcesContent":["import { createSizeContext } from \"../shared/size/size-context\";\nimport type { UISize } from \"../shared/size/size-system\";\n\nexport type DrawerSize = UISize;\n\nconst {\n SizeContext: DrawerSizeContext,\n useResolvedSize: useResolvedDrawerSize,\n} = createSizeContext();\n\nexport { DrawerSizeContext, useResolvedDrawerSize };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerActionsVariants = tv({\n base: \"flex justify-end\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"gap-4\",\n md: \"gap-4\",\n sm: \"gap-2.5\",\n xl: \"gap-5\",\n xs: \"gap-2\",\n },\n },\n});\n\ntype DrawerActionsVariantProps = Omit<\n VariantProps<typeof drawerActionsVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerActionsProps = ComponentProps<\"div\"> &\n DrawerActionsVariantProps;\n\nconst DrawerActions = ({ className, size, ...props }: DrawerActionsProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <div\n className={cn(drawerActionsVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-actions\"\n {...props}\n />\n );\n};\n\nexport { DrawerActions };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerBackdropProps = DrawerPrimitive.Backdrop.Props;\n\nconst DrawerBackdrop = ({ className, ...props }: DrawerBackdropProps) => (\n <DrawerPrimitive.Backdrop\n className={cn(\n \"z-overlay bg-foreground dark:bg-background fixed inset-0 min-h-dvh opacity-[calc(var(--backdrop-opacity)*(1-var(--drawer-swipe-progress)))] transition-opacity duration-[450ms] ease-[cubic-bezier(0.32,0.72,0,1)] [--backdrop-opacity:0.2] [--bleed:3rem] data-[ending-style]:opacity-0 data-[ending-style]:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-[starting-style]:opacity-0 data-[swiping]:duration-0 supports-[-webkit-touch-callout:none]:absolute dark:[--backdrop-opacity:0.7]\",\n className\n )}\n data-slot=\"drawer-backdrop\"\n {...props}\n />\n);\n\nexport { DrawerBackdrop };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerCloseVariants = tv({\n base: \"cursor-clickable text-foreground hover:bg-muted focus-visible:outline-ring active:bg-muted inline-flex items-center justify-center rounded-md transition-colors select-none focus-visible:outline focus-visible:-outline-offset-1 disabled:pointer-events-none disabled:opacity-50\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"size-8 text-base\",\n md: \"size-7 text-base\",\n sm: \"size-7 text-base\",\n xl: \"size-9 text-lg\",\n xs: \"size-6 text-sm\",\n },\n },\n});\n\ntype DrawerCloseVariantProps = Omit<\n VariantProps<typeof drawerCloseVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerCloseProps = DrawerPrimitive.Close.Props &\n DrawerCloseVariantProps;\n\nconst DrawerClose = ({ className, size, ...props }: DrawerCloseProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Close\n className={cn(drawerCloseVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-close\"\n {...props}\n />\n );\n};\n\nexport { DrawerClose };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerContentVariants = tv({\n base: \"mx-auto w-full\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"max-w-[36rem]\",\n md: \"max-w-[32rem]\",\n sm: \"max-w-[28rem]\",\n xl: \"max-w-[40rem]\",\n xs: \"max-w-[24rem]\",\n },\n },\n});\n\ntype DrawerContentVariantProps = Omit<\n VariantProps<typeof drawerContentVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerContentProps = DrawerPrimitive.Content.Props &\n DrawerContentVariantProps;\n\nconst DrawerContent = ({ className, size, ...props }: DrawerContentProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Content\n className={cn(drawerContentVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-content\"\n {...props}\n />\n );\n};\n\nexport { DrawerContent };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerDescriptionVariants = tv({\n base: \"text-muted-foreground\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-base leading-7\",\n md: \"text-base leading-6\",\n sm: \"text-sm leading-6\",\n xl: \"text-lg leading-7\",\n xs: \"text-sm leading-5\",\n },\n },\n});\n\ntype DrawerDescriptionVariantProps = Omit<\n VariantProps<typeof drawerDescriptionVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerDescriptionProps = DrawerPrimitive.Description.Props &\n DrawerDescriptionVariantProps;\n\nconst DrawerDescription = ({\n className,\n size,\n ...props\n}: DrawerDescriptionProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Description\n className={cn(\n drawerDescriptionVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"drawer-description\"\n {...props}\n />\n );\n};\n\nexport { DrawerDescription };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerHandleVariants = tv({\n base: \"bg-muted-foreground/40 mx-auto h-1 shrink-0 rounded-full\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"mb-4 w-14\",\n md: \"mb-4 w-12\",\n sm: \"mb-3.5 w-11\",\n xl: \"mb-5 w-16\",\n xs: \"mb-3 w-10\",\n },\n },\n});\n\ntype DrawerHandleVariantProps = Omit<\n VariantProps<typeof drawerHandleVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerHandleProps = ComponentProps<\"div\"> &\n DrawerHandleVariantProps;\n\nconst DrawerHandle = ({ className, size, ...props }: DrawerHandleProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <div\n aria-hidden\n className={cn(drawerHandleVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-handle\"\n {...props}\n />\n );\n};\n\nexport { DrawerHandle };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerHeaderVariants = tv({\n base: \"border-border flex shrink-0 touch-none flex-col border-b\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"gap-3 px-7 pt-4 pb-3.5\",\n md: \"gap-2.5 px-6 pt-3.5 pb-3\",\n sm: \"gap-2 px-5 pt-3 pb-2.5\",\n xl: \"gap-3.5 px-8 pt-4.5 pb-4\",\n xs: \"gap-1.5 px-4 pt-2.5 pb-2\",\n },\n },\n});\n\ntype DrawerHeaderVariantProps = Omit<\n VariantProps<typeof drawerHeaderVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerHeaderProps = ComponentProps<\"div\"> &\n DrawerHeaderVariantProps;\n\nconst DrawerHeader = ({ className, size, ...props }: DrawerHeaderProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <div\n className={cn(drawerHeaderVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-header\"\n {...props}\n />\n );\n};\n\nexport { DrawerHeader };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerIndentProps = DrawerPrimitive.Indent.Props;\n\nconst DrawerIndent = ({ className, ...props }: DrawerIndentProps) => (\n <DrawerPrimitive.Indent\n className={cn(\n \"border-border bg-background text-foreground relative min-h-[320px] origin-[center_top] border [transition-duration:calc(400ms*var(--indent-transition)),calc(250ms*var(--indent-transition))] will-change-transform [--indent-progress:var(--drawer-swipe-progress)] [--indent-radius:calc(var(--radius-xl)*(1-var(--indent-progress)))] [--indent-transition:calc(1-clamp(0,calc(var(--drawer-swipe-progress)*100000),1))] [transition:transform_0.4s_cubic-bezier(0.32,0.72,0,1),border-radius_0.25s_cubic-bezier(0.32,0.72,0,1)] data-[active]:[transform:scale(calc(0.98+(0.02*var(--indent-progress))))_translateY(calc(0.5rem*(1-var(--indent-progress))))] data-[active]:[border-top-left-radius:var(--indent-radius)] data-[active]:[border-top-right-radius:var(--indent-radius)]\",\n className\n )}\n data-slot=\"drawer-indent\"\n {...props}\n />\n);\n\nexport { DrawerIndent };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerIndentBackgroundProps =\n DrawerPrimitive.IndentBackground.Props;\n\nconst DrawerIndentBackground = ({\n className,\n ...props\n}: DrawerIndentBackgroundProps) => (\n <DrawerPrimitive.IndentBackground\n className={cn(\n \"z-underlay bg-foreground absolute inset-0 transition-opacity duration-300 data-[active]:opacity-100 [&:not([data-active])]:opacity-0\",\n className\n )}\n data-slot=\"drawer-indent-background\"\n {...props}\n />\n);\n\nexport { DrawerIndentBackground };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerPopupSizeVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-sm data-[swipe-direction=down]:px-7 data-[swipe-direction=down]:pt-5 data-[swipe-direction=down]:pb-[calc(1.75rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(22rem+var(--bleed))] data-[swipe-direction=left]:p-7 data-[swipe-direction=left]:pl-[calc(1.75rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(22rem+var(--bleed))] data-[swipe-direction=right]:p-7 data-[swipe-direction=right]:pr-[calc(1.75rem+var(--bleed))] data-[swipe-direction=up]:px-7 data-[swipe-direction=up]:pt-[calc(1.75rem+var(--bleed))] data-[swipe-direction=up]:pb-5\",\n md: \"text-sm\",\n sm: \"text-sm data-[swipe-direction=down]:px-5 data-[swipe-direction=down]:pt-3.5 data-[swipe-direction=down]:pb-[calc(1.25rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(19rem+var(--bleed))] data-[swipe-direction=left]:p-5 data-[swipe-direction=left]:pl-[calc(1.25rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(19rem+var(--bleed))] data-[swipe-direction=right]:p-5 data-[swipe-direction=right]:pr-[calc(1.25rem+var(--bleed))] data-[swipe-direction=up]:px-5 data-[swipe-direction=up]:pt-[calc(1.25rem+var(--bleed))] data-[swipe-direction=up]:pb-3.5\",\n xl: \"text-base data-[swipe-direction=down]:px-8 data-[swipe-direction=down]:pt-6 data-[swipe-direction=down]:pb-[calc(2rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(24rem+var(--bleed))] data-[swipe-direction=left]:p-8 data-[swipe-direction=left]:pl-[calc(2rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(24rem+var(--bleed))] data-[swipe-direction=right]:p-8 data-[swipe-direction=right]:pr-[calc(2rem+var(--bleed))] data-[swipe-direction=up]:px-8 data-[swipe-direction=up]:pt-[calc(2rem+var(--bleed))] data-[swipe-direction=up]:pb-6\",\n xs: \"text-xs data-[swipe-direction=down]:px-4 data-[swipe-direction=down]:pt-3 data-[swipe-direction=down]:pb-[calc(1rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(18rem+var(--bleed))] data-[swipe-direction=left]:p-4 data-[swipe-direction=left]:pl-[calc(1rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(18rem+var(--bleed))] data-[swipe-direction=right]:p-4 data-[swipe-direction=right]:pr-[calc(1rem+var(--bleed))] data-[swipe-direction=up]:px-4 data-[swipe-direction=up]:pt-[calc(1rem+var(--bleed))] data-[swipe-direction=up]:pb-3\",\n },\n },\n});\n\ntype DrawerPopupVariantProps = Omit<\n VariantProps<typeof drawerPopupSizeVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerPopupSize = UISize;\nexport type DrawerPopupProps = DrawerPrimitive.Popup.Props &\n DrawerPopupVariantProps;\n\nconst DrawerPopup = ({ className, size, ...props }: DrawerPopupProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Popup\n className={cn(\n \"bg-card text-card-foreground outline-border data-nested-drawer-open:after:bg-foreground/5 relative box-border flex touch-auto flex-col overflow-y-auto overscroll-contain outline transition-[transform,height,box-shadow,padding-bottom] duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] [--bleed:3rem] [--peek:1rem] [--stack-height:max(0px,calc(var(--drawer-frontmost-height,var(--drawer-height))-var(--bleed)))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:calc(max(0,1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05] [--viewport-padding:0px] [transition:transform_450ms_cubic-bezier(0.32,0.72,0,1),height_450ms_cubic-bezier(0.32,0.72,0,1),box-shadow_450ms_cubic-bezier(0.32,0.72,0,1),padding-bottom_450ms_cubic-bezier(0.32,0.72,0,1)] after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:bg-transparent after:transition-[background-color] after:duration-450 after:ease-[cubic-bezier(0.32,0.72,0,1)] after:content-[''] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-expanded:shadow-none data-nested-drawer-open:h-[calc(var(--stack-height)+var(--bleed))] data-nested-drawer-open:overflow-hidden data-nested-drawer-swiping:duration-0 data-swiping:duration-0 data-swiping:select-none data-[swipe-direction=down]:-mb-(--bleed) data-[swipe-direction=down]:h-(--drawer-height,auto) data-[swipe-direction=down]:max-h-[calc(80vh+var(--bleed))] data-[swipe-direction=down]:w-full data-[swipe-direction=down]:origin-[50%_calc(100%-var(--bleed))] data-[swipe-direction=down]:transform-[translateY(calc(var(--drawer-snap-point-offset)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] data-[swipe-direction=down]:rounded-t-2xl data-[swipe-direction=down]:px-6 data-[swipe-direction=down]:pt-4 data-[swipe-direction=down]:pb-[calc(1.5rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=down]:data-ending-style:transform-[translateY(calc(100%-var(--bleed)))] data-[swipe-direction=down]:data-starting-style:transform-[translateY(calc(100%-var(--bleed)))] data-[swipe-direction=down]:data-[nested-drawer-open]:!h-[calc(var(--stack-height)+var(--bleed))] data-[swipe-direction=down]:data-[nested-drawer-open]:transform-[translateY(calc(var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] data-[swipe-direction=left]:mr-auto data-[swipe-direction=left]:-ml-(--bleed) data-[swipe-direction=left]:h-full data-[swipe-direction=left]:w-[calc(20rem+var(--bleed))] data-[swipe-direction=left]:max-w-[calc(100vw-3rem+var(--bleed))] data-[swipe-direction=left]:transform-[translateX(var(--drawer-swipe-movement-x))] data-[swipe-direction=left]:p-6 data-[swipe-direction=left]:pl-[calc(1.5rem+var(--bleed))] data-[swipe-direction=left]:data-ending-style:transform-[translateX(calc(-100%+var(--bleed)-var(--viewport-padding)))] data-[swipe-direction=left]:data-starting-style:transform-[translateX(calc(-100%+var(--bleed)-var(--viewport-padding)))] data-[swipe-direction=right]:-mr-(--bleed) data-[swipe-direction=right]:ml-auto data-[swipe-direction=right]:h-full data-[swipe-direction=right]:w-[calc(20rem+var(--bleed))] data-[swipe-direction=right]:max-w-[calc(100vw-3rem+var(--bleed))] data-[swipe-direction=right]:transform-[translateX(var(--drawer-swipe-movement-x))] data-[swipe-direction=right]:p-6 data-[swipe-direction=right]:pr-[calc(1.5rem+var(--bleed))] data-[swipe-direction=right]:data-ending-style:transform-[translateX(calc(100%-var(--bleed)+var(--viewport-padding)))] data-[swipe-direction=right]:data-starting-style:transform-[translateX(calc(100%-var(--bleed)+var(--viewport-padding)))] data-[swipe-direction=up]:-mt-(--bleed) data-[swipe-direction=up]:h-(--drawer-height,auto) data-[swipe-direction=up]:max-h-[calc(80vh+var(--bleed))] data-[swipe-direction=up]:w-full data-[swipe-direction=up]:origin-[50%_var(--bleed)] data-[swipe-direction=up]:transform-[translateY(calc(var(--drawer-snap-point-offset)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] data-[swipe-direction=up]:self-start data-[swipe-direction=up]:rounded-b-2xl data-[swipe-direction=up]:px-6 data-[swipe-direction=up]:pt-[calc(1.5rem+var(--bleed))] data-[swipe-direction=up]:pb-4 data-[swipe-direction=up]:data-ending-style:transform-[translateY(calc(-100%+var(--bleed)))] data-[swipe-direction=up]:data-starting-style:transform-[translateY(calc(-100%+var(--bleed)))] data-[swipe-direction=up]:data-[nested-drawer-open]:!h-[calc(var(--stack-height)+var(--bleed))] data-[swipe-direction=up]:data-[nested-drawer-open]:transform-[translateY(calc(var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:ml-0 supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:w-[20rem] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:max-w-[calc(100vw-20px)] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:rounded-[10px] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:pl-6 supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:[--bleed:0px] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:mr-0 supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:w-[20rem] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:max-w-[calc(100vw-20px)] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:rounded-[10px] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:pr-6 supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:[--bleed:0px]\",\n drawerPopupSizeVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"drawer-popup\"\n {...props}\n />\n );\n};\n\nexport { DrawerPopup };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\n\nexport type DrawerPortalProps = DrawerPrimitive.Portal.Props;\n\nconst DrawerPortal = ({ ...props }: DrawerPortalProps) => (\n <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />\n);\n\nexport { DrawerPortal };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\n\nexport type DrawerProviderProps = DrawerPrimitive.Provider.Props;\n\nconst DrawerProvider = ({ ...props }: DrawerProviderProps) => (\n <DrawerPrimitive.Provider {...props} />\n);\n\nexport { DrawerProvider };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerTitleVariants = tv({\n base: \"text-foreground font-medium\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-xl leading-7\",\n md: \"text-lg leading-7\",\n sm: \"text-lg leading-6\",\n xl: \"text-2xl leading-8\",\n xs: \"text-base leading-6\",\n },\n },\n});\n\ntype DrawerTitleVariantProps = Omit<\n VariantProps<typeof drawerTitleVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerTitleProps = DrawerPrimitive.Title.Props &\n DrawerTitleVariantProps;\n\nconst DrawerTitle = ({ className, size, ...props }: DrawerTitleProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Title\n className={cn(drawerTitleVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-title\"\n {...props}\n />\n );\n};\n\nexport { DrawerTitle };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerTriggerVariants = tv({\n base: \"cursor-clickable border-border bg-background text-foreground hover:bg-muted focus-visible:outline-ring active:bg-muted inline-flex items-center justify-center border font-medium transition-colors select-none focus-visible:outline focus-visible:-outline-offset-1 disabled:pointer-events-none disabled:opacity-50\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"h-11 rounded-md px-4 text-base md:text-sm\",\n md: \"h-10 rounded-md px-3.5 text-base md:text-sm\",\n sm: \"h-9 rounded-[min(var(--radius-md),10px)] px-3 text-sm\",\n xl: \"h-12 rounded-md px-4.5 text-base\",\n xs: \"h-8 rounded-[min(var(--radius-md),8px)] px-2 text-xs\",\n },\n },\n});\n\ntype DrawerTriggerVariantProps = Omit<\n VariantProps<typeof drawerTriggerVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerTriggerProps = DrawerPrimitive.Trigger.Props &\n DrawerTriggerVariantProps;\n\nconst DrawerTrigger = ({ className, size, ...props }: DrawerTriggerProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Trigger\n className={cn(drawerTriggerVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-trigger\"\n {...props}\n />\n );\n};\n\nexport { DrawerTrigger };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerViewportProps = DrawerPrimitive.Viewport.Props;\n\nconst DrawerViewport = ({ className, ...props }: DrawerViewportProps) => (\n <DrawerPrimitive.Viewport\n className={cn(\n \"z-overlay fixed inset-0 flex items-end justify-center p-(--viewport-padding) [--viewport-padding:0px] data-[swipe-direction=left]:items-stretch data-[swipe-direction=left]:justify-start data-[swipe-direction=right]:items-stretch data-[swipe-direction=right]:justify-end data-[swipe-direction=up]:items-start supports-[-webkit-touch-callout:none]:[--viewport-padding:0.625rem]\",\n className\n )}\n data-slot=\"drawer-viewport\"\n {...props}\n />\n);\n\nexport { DrawerViewport };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { useMemo } from \"react\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { DrawerActions } from \"./drawer-actions\";\nimport { DrawerBackdrop } from \"./drawer-backdrop\";\nimport { DrawerClose } from \"./drawer-close\";\nimport { DrawerContent } from \"./drawer-content\";\nimport { DrawerDescription } from \"./drawer-description\";\nimport { DrawerHandle } from \"./drawer-handle\";\nimport { DrawerHeader } from \"./drawer-header\";\nimport { DrawerIndent } from \"./drawer-indent\";\nimport { DrawerIndentBackground } from \"./drawer-indent-background\";\nimport { DrawerPopup } from \"./drawer-popup\";\nimport { DrawerPortal } from \"./drawer-portal\";\nimport { DrawerProvider } from \"./drawer-provider\";\nimport { DrawerSizeContext } from \"./drawer-size-context\";\nimport type { DrawerSize } from \"./drawer-size-context\";\nimport { DrawerTitle } from \"./drawer-title\";\nimport { DrawerTrigger } from \"./drawer-trigger\";\nimport { DrawerViewport } from \"./drawer-viewport\";\n\nexport type DrawerRootProps<T = unknown> = DrawerPrimitive.Root.Props<T> & {\n size?: DrawerSize;\n};\nexport type DrawerProps<T = unknown> = DrawerRootProps<T>;\n\nconst Drawer = <T,>({ size: providedSize, ...props }: DrawerRootProps<T>) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <DrawerSizeContext.Provider value={contextValue}>\n <DrawerPrimitive.Root {...props} />\n </DrawerSizeContext.Provider>\n );\n};\n\nconst DrawerRoot = Drawer;\n\nDrawer.Root = DrawerRoot;\nDrawer.Actions = DrawerActions;\nDrawer.Backdrop = DrawerBackdrop;\nDrawer.Close = DrawerClose;\nDrawer.Content = DrawerContent;\nDrawer.Description = DrawerDescription;\nDrawer.Indent = DrawerIndent;\nDrawer.IndentBackground = DrawerIndentBackground;\nDrawer.Handle = DrawerHandle;\nDrawer.Header = DrawerHeader;\nDrawer.Popup = DrawerPopup;\nDrawer.Portal = DrawerPortal;\nDrawer.Provider = DrawerProvider;\nDrawer.Title = DrawerTitle;\nDrawer.Trigger = DrawerTrigger;\nDrawer.Viewport = DrawerViewport;\nDrawer.createHandle = DrawerPrimitive.createHandle;\n\nconst createDrawerHandle = DrawerPrimitive.createHandle;\n\nexport type { DrawerActionsProps } from \"./drawer-actions\";\nexport type { DrawerBackdropProps } from \"./drawer-backdrop\";\nexport type { DrawerCloseProps } from \"./drawer-close\";\nexport type { DrawerContentProps } from \"./drawer-content\";\nexport type { DrawerDescriptionProps } from \"./drawer-description\";\nexport type { DrawerHandleProps } from \"./drawer-handle\";\nexport type { DrawerHeaderProps } from \"./drawer-header\";\nexport type { DrawerIndentBackgroundProps } from \"./drawer-indent-background\";\nexport type { DrawerIndentProps } from \"./drawer-indent\";\nexport type { DrawerPopupProps } from \"./drawer-popup\";\nexport type { DrawerPopupSize } from \"./drawer-popup\";\nexport type { DrawerPortalProps } from \"./drawer-portal\";\nexport type { DrawerProviderProps } from \"./drawer-provider\";\nexport type { DrawerSize } from \"./drawer-size-context\";\nexport type { DrawerTitleProps } from \"./drawer-title\";\nexport type { DrawerTriggerProps } from \"./drawer-trigger\";\nexport type { DrawerViewportProps } from \"./drawer-viewport\";\n\nexport {\n Drawer,\n DrawerRoot,\n DrawerActions,\n DrawerBackdrop,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerHandle,\n DrawerHeader,\n DrawerIndent,\n DrawerIndentBackground,\n DrawerPopup,\n DrawerPortal,\n DrawerProvider,\n DrawerTitle,\n DrawerTrigger,\n DrawerViewport,\n createDrawerHandle,\n};\n"],"mappings":";;;;;;;;;;AAKA,MAAM,EACJ,aAAa,mBACb,iBAAiB,0BACf,mBAAmB;;;;ACCvB,MAAM,wBAAwB,GAAG;CAC/B,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAYF,MAAM,iBAAiB,EAAE,WAAW,MAAM,GAAG,YAAgC;CAC3E,MAAM,eAAe,sBAAsB,KAAK;AAEhD,QACE,oBAAC,OAAD;EACE,WAAW,GAAG,sBAAsB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACvE,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;;;;ACrCN,MAAM,kBAAkB,EAAE,WAAW,GAAG,YACtC,oBAACA,cAAgB,UAAjB;CACE,WAAW,GACT,2eACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACNJ,MAAM,sBAAsB,GAAG;CAC7B,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAYF,MAAM,eAAe,EAAE,WAAW,MAAM,GAAG,YAA8B;CACvE,MAAM,eAAe,sBAAsB,KAAK;AAEhD,QACE,oBAACC,cAAgB,OAAjB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d,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,OAAO,cAAc;AACrB,OAAO,SAAS;AAChB,OAAO,mBAAmB;AAC1B,OAAO,SAAS;AAChB,OAAO,SAAS;AAChB,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,WAAW;AAClB,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,OAAO,eAAeA,cAAgB;AAEtC,MAAM,qBAAqBA,cAAgB"}
|
|
1
|
+
{"version":3,"file":"drawer.js","names":["DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive","DrawerPrimitive"],"sources":["../../src/ui/drawer/drawer-backdrop.tsx","../../src/ui/drawer/drawer-size-context.ts","../../src/ui/drawer/drawer-content.tsx","../../src/ui/drawer/drawer-popup.tsx","../../src/ui/drawer/drawer-portal.tsx","../../src/ui/drawer/drawer-trigger.tsx","../../src/ui/drawer/drawer-viewport.tsx","../../src/ui/drawer/drawer-action-sheet.tsx","../../src/ui/drawer/drawer-actions.tsx","../../src/ui/drawer/drawer-handle.tsx","../../src/ui/drawer/drawer-bottom-sheet.tsx","../../src/ui/drawer/drawer-close.tsx","../../src/ui/drawer/drawer-description.tsx","../../src/ui/drawer/drawer-header.tsx","../../src/ui/drawer/drawer-indent.tsx","../../src/ui/drawer/drawer-indent-background.tsx","../../src/ui/drawer/drawer-provider.tsx","../../src/ui/drawer/drawer-indent-shell.tsx","../../src/ui/drawer/drawer-side-panel.tsx","../../src/ui/drawer/drawer-title.tsx","../../src/ui/drawer/drawer.tsx"],"sourcesContent":["\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerBackdropProps = DrawerPrimitive.Backdrop.Props;\n\nconst DrawerBackdrop = ({ className, ...props }: DrawerBackdropProps) => (\n <DrawerPrimitive.Backdrop\n className={cn(\n \"z-overlay bg-foreground dark:bg-background fixed inset-0 min-h-dvh opacity-[calc(var(--backdrop-opacity)*(1-var(--drawer-swipe-progress)))] transition-opacity duration-[450ms] ease-[cubic-bezier(0.32,0.72,0,1)] [--backdrop-opacity:var(--kb-drawer-backdrop-opacity,0.2)] [--bleed:var(--kb-drawer-bleed,3rem)] data-[ending-style]:opacity-0 data-[ending-style]:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-[starting-style]:opacity-0 data-[swiping]:duration-0 supports-[-webkit-touch-callout:none]:absolute dark:[--backdrop-opacity:var(--kb-drawer-backdrop-opacity-dark,0.7)]\",\n className\n )}\n data-slot=\"drawer-backdrop\"\n {...props}\n />\n);\n\nexport { DrawerBackdrop };\n","import { createSizeContext } from \"../shared/size/size-context\";\nimport type { UISize } from \"../shared/size/size-system\";\n\nexport type DrawerSize = UISize;\n\nconst {\n SizeContext: DrawerSizeContext,\n useResolvedSize: useResolvedDrawerSize,\n} = createSizeContext();\n\nexport { DrawerSizeContext, useResolvedDrawerSize };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerContentVariants = tv({\n base: \"mx-auto w-full\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"max-w-[var(--kb-drawer-content-max-width-lg,36rem)]\",\n md: \"max-w-[var(--kb-drawer-content-max-width-md,32rem)]\",\n sm: \"max-w-[var(--kb-drawer-content-max-width-sm,28rem)]\",\n xl: \"max-w-[var(--kb-drawer-content-max-width-xl,40rem)]\",\n xs: \"max-w-[var(--kb-drawer-content-max-width-xs,24rem)]\",\n },\n },\n});\n\ntype DrawerContentVariantProps = Omit<\n VariantProps<typeof drawerContentVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerContentProps = DrawerPrimitive.Content.Props &\n DrawerContentVariantProps;\n\nconst DrawerContent = ({ className, size, ...props }: DrawerContentProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Content\n className={cn(drawerContentVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-content\"\n {...props}\n />\n );\n};\n\nexport { DrawerContent };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerPopupSizeVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-sm data-[swipe-direction=down]:px-7 data-[swipe-direction=down]:pt-5 data-[swipe-direction=down]:pb-[calc(1.75rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(var(--kb-drawer-side-width-lg,22rem)+var(--bleed))] data-[swipe-direction=left]:p-7 data-[swipe-direction=left]:pl-[calc(1.75rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(var(--kb-drawer-side-width-lg,22rem)+var(--bleed))] data-[swipe-direction=right]:p-7 data-[swipe-direction=right]:pr-[calc(1.75rem+var(--bleed))] data-[swipe-direction=up]:px-7 data-[swipe-direction=up]:pt-[calc(1.75rem+var(--bleed))] data-[swipe-direction=up]:pb-5\",\n md: \"text-sm\",\n sm: \"text-sm data-[swipe-direction=down]:px-5 data-[swipe-direction=down]:pt-3.5 data-[swipe-direction=down]:pb-[calc(1.25rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(var(--kb-drawer-side-width-sm,19rem)+var(--bleed))] data-[swipe-direction=left]:p-5 data-[swipe-direction=left]:pl-[calc(1.25rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(var(--kb-drawer-side-width-sm,19rem)+var(--bleed))] data-[swipe-direction=right]:p-5 data-[swipe-direction=right]:pr-[calc(1.25rem+var(--bleed))] data-[swipe-direction=up]:px-5 data-[swipe-direction=up]:pt-[calc(1.25rem+var(--bleed))] data-[swipe-direction=up]:pb-3.5\",\n xl: \"text-base data-[swipe-direction=down]:px-8 data-[swipe-direction=down]:pt-6 data-[swipe-direction=down]:pb-[calc(2rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(var(--kb-drawer-side-width-xl,24rem)+var(--bleed))] data-[swipe-direction=left]:p-8 data-[swipe-direction=left]:pl-[calc(2rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(var(--kb-drawer-side-width-xl,24rem)+var(--bleed))] data-[swipe-direction=right]:p-8 data-[swipe-direction=right]:pr-[calc(2rem+var(--bleed))] data-[swipe-direction=up]:px-8 data-[swipe-direction=up]:pt-[calc(2rem+var(--bleed))] data-[swipe-direction=up]:pb-6\",\n xs: \"text-xs data-[swipe-direction=down]:px-4 data-[swipe-direction=down]:pt-3 data-[swipe-direction=down]:pb-[calc(1rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=left]:w-[calc(var(--kb-drawer-side-width-xs,18rem)+var(--bleed))] data-[swipe-direction=left]:p-4 data-[swipe-direction=left]:pl-[calc(1rem+var(--bleed))] data-[swipe-direction=right]:w-[calc(var(--kb-drawer-side-width-xs,18rem)+var(--bleed))] data-[swipe-direction=right]:p-4 data-[swipe-direction=right]:pr-[calc(1rem+var(--bleed))] data-[swipe-direction=up]:px-4 data-[swipe-direction=up]:pt-[calc(1rem+var(--bleed))] data-[swipe-direction=up]:pb-3\",\n },\n },\n});\n\ntype DrawerPopupVariantProps = Omit<\n VariantProps<typeof drawerPopupSizeVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerPopupSize = UISize;\nexport type DrawerPopupProps = DrawerPrimitive.Popup.Props &\n DrawerPopupVariantProps;\n\nconst DrawerPopup = ({ className, size, ...props }: DrawerPopupProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Popup\n className={cn(\n \"bg-card text-card-foreground outline-border data-nested-drawer-open:after:bg-foreground/5 relative box-border flex touch-auto flex-col overflow-y-auto overscroll-contain outline transition-[transform,height,box-shadow,padding-bottom] duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] [--bleed:var(--kb-drawer-bleed,3rem)] [--peek:var(--kb-drawer-peek,1rem)] [--stack-height:max(0px,calc(var(--drawer-frontmost-height,var(--drawer-height))-var(--bleed)))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:calc(max(0,1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:var(--kb-drawer-stack-step,0.05)] [--viewport-padding:0px] [transition:transform_450ms_cubic-bezier(0.32,0.72,0,1),height_450ms_cubic-bezier(0.32,0.72,0,1),box-shadow_450ms_cubic-bezier(0.32,0.72,0,1),padding-bottom_450ms_cubic-bezier(0.32,0.72,0,1)] after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:bg-transparent after:transition-[background-color] after:duration-450 after:ease-[cubic-bezier(0.32,0.72,0,1)] after:content-[''] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-expanded:shadow-none data-nested-drawer-open:h-[calc(var(--stack-height)+var(--bleed))] data-nested-drawer-open:overflow-hidden data-nested-drawer-swiping:duration-0 data-swiping:duration-0 data-swiping:select-none data-[swipe-direction=down]:-mb-(--bleed) data-[swipe-direction=down]:h-(--drawer-height,auto) data-[swipe-direction=down]:max-h-[calc(var(--kb-drawer-max-height,80vh)+var(--bleed))] data-[swipe-direction=down]:w-full data-[swipe-direction=down]:origin-[50%_calc(100%-var(--bleed))] data-[swipe-direction=down]:transform-[translateY(calc(var(--drawer-snap-point-offset)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] data-[swipe-direction=down]:rounded-t-2xl data-[swipe-direction=down]:px-6 data-[swipe-direction=down]:pt-4 data-[swipe-direction=down]:pb-[calc(1.5rem+env(safe-area-inset-bottom,0px)+var(--bleed))] data-[swipe-direction=down]:data-ending-style:transform-[translateY(calc(100%-var(--bleed)))] data-[swipe-direction=down]:data-starting-style:transform-[translateY(calc(100%-var(--bleed)))] data-[swipe-direction=down]:data-[nested-drawer-open]:!h-[calc(var(--stack-height)+var(--bleed))] data-[swipe-direction=down]:data-[nested-drawer-open]:transform-[translateY(calc(var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] data-[swipe-direction=left]:mr-auto data-[swipe-direction=left]:-ml-(--bleed) data-[swipe-direction=left]:h-full data-[swipe-direction=left]:w-[calc(var(--kb-drawer-side-width-md,20rem)+var(--bleed))] data-[swipe-direction=left]:max-w-[calc(100vw-3rem+var(--bleed))] data-[swipe-direction=left]:transform-[translateX(var(--drawer-swipe-movement-x))] data-[swipe-direction=left]:p-6 data-[swipe-direction=left]:pl-[calc(1.5rem+var(--bleed))] data-[swipe-direction=left]:data-ending-style:transform-[translateX(calc(-100%+var(--bleed)-var(--viewport-padding)))] data-[swipe-direction=left]:data-starting-style:transform-[translateX(calc(-100%+var(--bleed)-var(--viewport-padding)))] data-[swipe-direction=right]:-mr-(--bleed) data-[swipe-direction=right]:ml-auto data-[swipe-direction=right]:h-full data-[swipe-direction=right]:w-[calc(var(--kb-drawer-side-width-md,20rem)+var(--bleed))] data-[swipe-direction=right]:max-w-[calc(100vw-3rem+var(--bleed))] data-[swipe-direction=right]:transform-[translateX(var(--drawer-swipe-movement-x))] data-[swipe-direction=right]:p-6 data-[swipe-direction=right]:pr-[calc(1.5rem+var(--bleed))] data-[swipe-direction=right]:data-ending-style:transform-[translateX(calc(100%-var(--bleed)+var(--viewport-padding)))] data-[swipe-direction=right]:data-starting-style:transform-[translateX(calc(100%-var(--bleed)+var(--viewport-padding)))] data-[swipe-direction=up]:-mt-(--bleed) data-[swipe-direction=up]:h-(--drawer-height,auto) data-[swipe-direction=up]:max-h-[calc(var(--kb-drawer-max-height,80vh)+var(--bleed))] data-[swipe-direction=up]:w-full data-[swipe-direction=up]:origin-[50%_var(--bleed)] data-[swipe-direction=up]:transform-[translateY(calc(var(--drawer-snap-point-offset)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] data-[swipe-direction=up]:self-start data-[swipe-direction=up]:rounded-b-2xl data-[swipe-direction=up]:px-6 data-[swipe-direction=up]:pt-[calc(1.5rem+var(--bleed))] data-[swipe-direction=up]:pb-4 data-[swipe-direction=up]:data-ending-style:transform-[translateY(calc(-100%+var(--bleed)))] data-[swipe-direction=up]:data-starting-style:transform-[translateY(calc(-100%+var(--bleed)))] data-[swipe-direction=up]:data-[nested-drawer-open]:!h-[calc(var(--stack-height)+var(--bleed))] data-[swipe-direction=up]:data-[nested-drawer-open]:transform-[translateY(calc(var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height))))_scale(var(--stack-scale))] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:ml-0 supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:w-[var(--kb-drawer-side-width-md,20rem)] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:max-w-[calc(100vw-20px)] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:rounded-[10px] supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:pl-6 supports-[-webkit-touch-callout:none]:data-[swipe-direction=left]:[--bleed:0px] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:mr-0 supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:w-[var(--kb-drawer-side-width-md,20rem)] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:max-w-[calc(100vw-20px)] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:rounded-[10px] supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:pr-6 supports-[-webkit-touch-callout:none]:data-[swipe-direction=right]:[--bleed:0px]\",\n drawerPopupSizeVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"drawer-popup\"\n {...props}\n />\n );\n};\n\nexport { DrawerPopup };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\n\nexport type DrawerPortalProps = DrawerPrimitive.Portal.Props;\n\nconst DrawerPortal = ({ ...props }: DrawerPortalProps) => (\n <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />\n);\n\nexport { DrawerPortal };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerTriggerVariants = tv({\n base: \"cursor-clickable border-border bg-background text-foreground hover:bg-muted focus-visible:outline-ring active:bg-muted inline-flex items-center justify-center border font-medium transition-colors select-none focus-visible:outline focus-visible:-outline-offset-1 disabled:pointer-events-none disabled:opacity-50\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"h-11 rounded-md px-4 text-base md:text-sm\",\n md: \"h-10 rounded-md px-3.5 text-base md:text-sm\",\n sm: \"h-9 rounded-[min(var(--radius-md),10px)] px-3 text-sm\",\n xl: \"h-12 rounded-md px-4.5 text-base\",\n xs: \"h-8 rounded-[min(var(--radius-md),8px)] px-2 text-xs\",\n },\n },\n});\n\ntype DrawerTriggerVariantProps = Omit<\n VariantProps<typeof drawerTriggerVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerTriggerProps = DrawerPrimitive.Trigger.Props &\n DrawerTriggerVariantProps;\n\nconst DrawerTrigger = ({ className, size, ...props }: DrawerTriggerProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Trigger\n className={cn(drawerTriggerVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-trigger\"\n {...props}\n />\n );\n};\n\nexport { DrawerTrigger };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerViewportProps = DrawerPrimitive.Viewport.Props;\n\nconst DrawerViewport = ({ className, ...props }: DrawerViewportProps) => (\n <DrawerPrimitive.Viewport\n className={cn(\n \"z-overlay fixed inset-0 flex items-end justify-center p-(--viewport-padding) [--viewport-padding:0px] data-[swipe-direction=left]:items-stretch data-[swipe-direction=left]:justify-start data-[swipe-direction=right]:items-stretch data-[swipe-direction=right]:justify-end data-[swipe-direction=up]:items-start supports-[-webkit-touch-callout:none]:[--viewport-padding:0.625rem]\",\n className\n )}\n data-slot=\"drawer-viewport\"\n {...props}\n />\n);\n\nexport { DrawerViewport };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport type { ReactNode } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { DrawerBackdrop } from \"./drawer-backdrop\";\nimport type { DrawerBackdropProps } from \"./drawer-backdrop\";\nimport { DrawerContent } from \"./drawer-content\";\nimport type { DrawerContentProps } from \"./drawer-content\";\nimport { DrawerPopup } from \"./drawer-popup\";\nimport type { DrawerPopupProps } from \"./drawer-popup\";\nimport { DrawerPortal } from \"./drawer-portal\";\nimport type { DrawerPortalProps } from \"./drawer-portal\";\nimport { DrawerSizeContext } from \"./drawer-size-context\";\nimport type { DrawerSize } from \"./drawer-size-context\";\nimport { DrawerTrigger } from \"./drawer-trigger\";\nimport type { DrawerTriggerProps } from \"./drawer-trigger\";\nimport { DrawerViewport } from \"./drawer-viewport\";\nimport type { DrawerViewportProps } from \"./drawer-viewport\";\n\ntype DrawerActionSheetRootProps<T = unknown> = Omit<\n DrawerPrimitive.Root.Props<T>,\n \"children\" | \"swipeDirection\"\n> & {\n size?: DrawerSize;\n};\n\nexport type DrawerActionSheetProps<T = unknown> =\n DrawerActionSheetRootProps<T> & {\n backdropProps?: DrawerBackdropProps;\n children: ReactNode;\n contentProps?: DrawerContentProps;\n destructiveAction?: ReactNode;\n popupProps?: DrawerPopupProps;\n portalProps?: DrawerPortalProps;\n trigger?: ReactNode;\n triggerProps?: Omit<DrawerTriggerProps, \"children\">;\n viewportProps?: DrawerViewportProps;\n };\n\nconst DrawerActionSheet = <T,>({\n backdropProps,\n children,\n contentProps,\n destructiveAction,\n popupProps,\n portalProps,\n size: providedSize,\n trigger,\n triggerProps,\n viewportProps,\n ...rootProps\n}: DrawerActionSheetProps<T>) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n const { className: backdropClassName, ...resolvedBackdropProps } =\n backdropProps ?? {};\n const { className: contentClassName, ...resolvedContentProps } =\n contentProps ?? {};\n const { className: popupClassName, ...resolvedPopupProps } = popupProps ?? {};\n const { className: viewportClassName, ...resolvedViewportProps } =\n viewportProps ?? {};\n\n return (\n <DrawerSizeContext.Provider value={contextValue}>\n <DrawerPrimitive.Root swipeDirection=\"down\" {...rootProps}>\n {trigger ? (\n <DrawerTrigger {...triggerProps}>{trigger}</DrawerTrigger>\n ) : null}\n <DrawerPortal {...portalProps}>\n <DrawerBackdrop\n className={cn(\"[--backdrop-opacity:0.4]\", backdropClassName)}\n {...resolvedBackdropProps}\n />\n <DrawerViewport\n className={cn(\n \"fixed inset-0 flex items-end justify-center\",\n viewportClassName\n )}\n {...resolvedViewportProps}\n >\n <DrawerPopup\n className={cn(\n \"pointer-events-none box-border flex w-full max-w-[var(--kb-drawer-action-sheet-max-width,28rem)] [transform:translateY(var(--drawer-swipe-movement-y))] flex-col gap-3 px-4 pb-[calc(1rem+env(safe-area-inset-bottom,0px))] transition-transform duration-[450ms] ease-[cubic-bezier(0.32,0.72,0,1)] outline-none focus-visible:outline-none data-[ending-style]:[transform:translateY(calc(100%+1rem))] data-[ending-style]:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-[starting-style]:[transform:translateY(calc(100%+1rem))] data-[swiping]:select-none\",\n popupClassName\n )}\n {...resolvedPopupProps}\n >\n <DrawerContent\n className={cn(\n \"bg-card text-card-foreground outline-border pointer-events-auto overflow-hidden rounded-2xl outline-1\",\n contentClassName\n )}\n {...resolvedContentProps}\n >\n {children}\n </DrawerContent>\n {destructiveAction ? (\n <div className=\"bg-card text-card-foreground outline-border pointer-events-auto overflow-hidden rounded-2xl outline-1\">\n {destructiveAction}\n </div>\n ) : null}\n </DrawerPopup>\n </DrawerViewport>\n </DrawerPortal>\n </DrawerPrimitive.Root>\n </DrawerSizeContext.Provider>\n );\n};\n\nexport { DrawerActionSheet };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerActionsVariants = tv({\n base: \"flex justify-end\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"gap-4\",\n md: \"gap-4\",\n sm: \"gap-2.5\",\n xl: \"gap-5\",\n xs: \"gap-2\",\n },\n },\n});\n\ntype DrawerActionsVariantProps = Omit<\n VariantProps<typeof drawerActionsVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerActionsProps = ComponentProps<\"div\"> &\n DrawerActionsVariantProps;\n\nconst DrawerActions = ({ className, size, ...props }: DrawerActionsProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <div\n className={cn(drawerActionsVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-actions\"\n {...props}\n />\n );\n};\n\nexport { DrawerActions };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerHandleVariants = tv({\n base: \"bg-muted-foreground/40 mx-auto h-1 shrink-0 rounded-full\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"mb-4 w-14\",\n md: \"mb-4 w-12\",\n sm: \"mb-3.5 w-11\",\n xl: \"mb-5 w-16\",\n xs: \"mb-3 w-10\",\n },\n },\n});\n\ntype DrawerHandleVariantProps = Omit<\n VariantProps<typeof drawerHandleVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerHandleProps = ComponentProps<\"div\"> &\n DrawerHandleVariantProps;\n\nconst DrawerHandle = ({ className, size, ...props }: DrawerHandleProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <div\n aria-hidden\n className={cn(drawerHandleVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-handle\"\n {...props}\n />\n );\n};\n\nexport { DrawerHandle };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport type { ReactNode } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { DrawerBackdrop } from \"./drawer-backdrop\";\nimport type { DrawerBackdropProps } from \"./drawer-backdrop\";\nimport { DrawerContent } from \"./drawer-content\";\nimport type { DrawerContentProps } from \"./drawer-content\";\nimport { DrawerHandle } from \"./drawer-handle\";\nimport { DrawerPopup } from \"./drawer-popup\";\nimport type { DrawerPopupProps } from \"./drawer-popup\";\nimport { DrawerPortal } from \"./drawer-portal\";\nimport type { DrawerPortalProps } from \"./drawer-portal\";\nimport { DrawerSizeContext } from \"./drawer-size-context\";\nimport type { DrawerSize } from \"./drawer-size-context\";\nimport { DrawerTrigger } from \"./drawer-trigger\";\nimport type { DrawerTriggerProps } from \"./drawer-trigger\";\nimport { DrawerViewport } from \"./drawer-viewport\";\nimport type { DrawerViewportProps } from \"./drawer-viewport\";\n\ntype DrawerBottomSheetRootProps<T = unknown> = Omit<\n DrawerPrimitive.Root.Props<T>,\n \"children\" | \"swipeDirection\"\n> & {\n size?: DrawerSize;\n};\n\nexport type DrawerBottomSheetProps<T = unknown> =\n DrawerBottomSheetRootProps<T> & {\n backdropProps?: DrawerBackdropProps;\n children: ReactNode;\n contentProps?: DrawerContentProps;\n popupProps?: DrawerPopupProps;\n portalProps?: DrawerPortalProps;\n showHandle?: boolean;\n trigger?: ReactNode;\n triggerProps?: Omit<DrawerTriggerProps, \"children\">;\n viewportProps?: DrawerViewportProps;\n };\n\nconst DrawerBottomSheet = <T,>({\n backdropProps,\n children,\n contentProps,\n popupProps,\n portalProps,\n showHandle = true,\n size: providedSize,\n trigger,\n triggerProps,\n viewportProps,\n ...rootProps\n}: DrawerBottomSheetProps<T>) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n const { className: backdropClassName, ...resolvedBackdropProps } =\n backdropProps ?? {};\n const { className: contentClassName, ...resolvedContentProps } =\n contentProps ?? {};\n const { className: popupClassName, ...resolvedPopupProps } = popupProps ?? {};\n const { className: viewportClassName, ...resolvedViewportProps } =\n viewportProps ?? {};\n\n return (\n <DrawerSizeContext.Provider value={contextValue}>\n <DrawerPrimitive.Root swipeDirection=\"down\" {...rootProps}>\n {trigger ? (\n <DrawerTrigger {...triggerProps}>{trigger}</DrawerTrigger>\n ) : null}\n <DrawerPortal {...portalProps}>\n <DrawerBackdrop\n className={backdropClassName}\n {...resolvedBackdropProps}\n />\n <DrawerViewport\n className={cn(\n \"fixed inset-0 flex items-end justify-center\",\n viewportClassName\n )}\n {...resolvedViewportProps}\n >\n <DrawerPopup className={popupClassName} {...resolvedPopupProps}>\n {showHandle ? <DrawerHandle /> : null}\n <DrawerContent\n className={contentClassName}\n {...resolvedContentProps}\n >\n {children}\n </DrawerContent>\n </DrawerPopup>\n </DrawerViewport>\n </DrawerPortal>\n </DrawerPrimitive.Root>\n </DrawerSizeContext.Provider>\n );\n};\n\nexport { DrawerBottomSheet };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerCloseVariants = tv({\n base: \"cursor-clickable text-foreground hover:bg-muted focus-visible:outline-ring active:bg-muted inline-flex items-center justify-center rounded-md transition-colors select-none focus-visible:outline focus-visible:-outline-offset-1 disabled:pointer-events-none disabled:opacity-50\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"size-8 text-base\",\n md: \"size-7 text-base\",\n sm: \"size-7 text-base\",\n xl: \"size-9 text-lg\",\n xs: \"size-6 text-sm\",\n },\n },\n});\n\ntype DrawerCloseVariantProps = Omit<\n VariantProps<typeof drawerCloseVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerCloseProps = DrawerPrimitive.Close.Props &\n DrawerCloseVariantProps;\n\nconst DrawerClose = ({\n className,\n render,\n size,\n ...props\n}: DrawerCloseProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n const hasCustomRender = render !== undefined;\n\n return (\n <DrawerPrimitive.Close\n className={cn(\n hasCustomRender\n ? undefined\n : drawerCloseVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"drawer-close\"\n render={render}\n {...props}\n />\n );\n};\n\nexport { DrawerClose };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerDescriptionVariants = tv({\n base: \"text-muted-foreground\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-base leading-7\",\n md: \"text-base leading-6\",\n sm: \"text-sm leading-6\",\n xl: \"text-lg leading-7\",\n xs: \"text-sm leading-5\",\n },\n },\n});\n\ntype DrawerDescriptionVariantProps = Omit<\n VariantProps<typeof drawerDescriptionVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerDescriptionProps = DrawerPrimitive.Description.Props &\n DrawerDescriptionVariantProps;\n\nconst DrawerDescription = ({\n className,\n size,\n ...props\n}: DrawerDescriptionProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Description\n className={cn(\n drawerDescriptionVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"drawer-description\"\n {...props}\n />\n );\n};\n\nexport { DrawerDescription };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerHeaderVariants = tv({\n base: \"border-border flex shrink-0 touch-none flex-col border-b\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"gap-3 px-7 pt-4 pb-3.5\",\n md: \"gap-2.5 px-6 pt-3.5 pb-3\",\n sm: \"gap-2 px-5 pt-3 pb-2.5\",\n xl: \"gap-3.5 px-8 pt-4.5 pb-4\",\n xs: \"gap-1.5 px-4 pt-2.5 pb-2\",\n },\n },\n});\n\ntype DrawerHeaderVariantProps = Omit<\n VariantProps<typeof drawerHeaderVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerHeaderProps = ComponentProps<\"div\"> &\n DrawerHeaderVariantProps;\n\nconst DrawerHeader = ({ className, size, ...props }: DrawerHeaderProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <div\n className={cn(drawerHeaderVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-header\"\n {...props}\n />\n );\n};\n\nexport { DrawerHeader };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerIndentProps = DrawerPrimitive.Indent.Props;\n\nconst DrawerIndent = ({ className, ...props }: DrawerIndentProps) => (\n <DrawerPrimitive.Indent\n className={cn(\n \"border-border bg-background text-foreground relative min-h-[320px] origin-[center_top] border [transition-duration:calc(400ms*var(--indent-transition)),calc(250ms*var(--indent-transition))] will-change-transform [--indent-progress:var(--drawer-swipe-progress)] [--indent-radius:calc(var(--radius-xl)*(1-var(--indent-progress)))] [--indent-transition:calc(1-clamp(0,calc(var(--drawer-swipe-progress)*100000),1))] [transition:transform_0.4s_cubic-bezier(0.32,0.72,0,1),border-radius_0.25s_cubic-bezier(0.32,0.72,0,1)] data-[active]:[transform:scale(calc(0.98+(0.02*var(--indent-progress))))_translateY(calc(0.5rem*(1-var(--indent-progress))))] data-[active]:[border-top-left-radius:var(--indent-radius)] data-[active]:[border-top-right-radius:var(--indent-radius)]\",\n className\n )}\n data-slot=\"drawer-indent\"\n {...props}\n />\n);\n\nexport { DrawerIndent };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn } from \"tailwind-variants\";\n\nexport type DrawerIndentBackgroundProps =\n DrawerPrimitive.IndentBackground.Props;\n\nconst DrawerIndentBackground = ({\n className,\n ...props\n}: DrawerIndentBackgroundProps) => (\n <DrawerPrimitive.IndentBackground\n className={cn(\n \"z-underlay bg-foreground absolute inset-0 transition-opacity duration-300 data-[active]:opacity-100 [&:not([data-active])]:opacity-0\",\n className\n )}\n data-slot=\"drawer-indent-background\"\n {...props}\n />\n);\n\nexport { DrawerIndentBackground };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\n\nexport type DrawerProviderProps = DrawerPrimitive.Provider.Props;\n\nconst DrawerProvider = ({ ...props }: DrawerProviderProps) => (\n <DrawerPrimitive.Provider {...props} />\n);\n\nexport { DrawerProvider };\n","\"use client\";\n\nimport type { ReactNode } from \"react\";\n\nimport { DrawerIndent } from \"./drawer-indent\";\nimport type { DrawerIndentProps } from \"./drawer-indent\";\nimport { DrawerIndentBackground } from \"./drawer-indent-background\";\nimport type { DrawerIndentBackgroundProps } from \"./drawer-indent-background\";\nimport { DrawerProvider } from \"./drawer-provider\";\n\nexport interface DrawerIndentShellProps {\n children: ReactNode;\n indentBackgroundProps?: DrawerIndentBackgroundProps;\n indentProps?: DrawerIndentProps;\n}\n\nconst DrawerIndentShell = ({\n children,\n indentBackgroundProps,\n indentProps,\n}: DrawerIndentShellProps) => (\n <DrawerProvider>\n <DrawerIndentBackground {...indentBackgroundProps} />\n <DrawerIndent {...indentProps}>{children}</DrawerIndent>\n </DrawerProvider>\n);\n\nexport { DrawerIndentShell };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport type { ReactNode } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { DrawerBackdrop } from \"./drawer-backdrop\";\nimport type { DrawerBackdropProps } from \"./drawer-backdrop\";\nimport { DrawerContent } from \"./drawer-content\";\nimport type { DrawerContentProps } from \"./drawer-content\";\nimport { DrawerPopup } from \"./drawer-popup\";\nimport type { DrawerPopupProps } from \"./drawer-popup\";\nimport { DrawerPortal } from \"./drawer-portal\";\nimport type { DrawerPortalProps } from \"./drawer-portal\";\nimport { DrawerSizeContext } from \"./drawer-size-context\";\nimport type { DrawerSize } from \"./drawer-size-context\";\nimport { DrawerTrigger } from \"./drawer-trigger\";\nimport type { DrawerTriggerProps } from \"./drawer-trigger\";\nimport { DrawerViewport } from \"./drawer-viewport\";\nimport type { DrawerViewportProps } from \"./drawer-viewport\";\n\ntype DrawerSidePanelRootProps<T = unknown> = Omit<\n DrawerPrimitive.Root.Props<T>,\n \"children\" | \"swipeDirection\"\n> & {\n size?: DrawerSize;\n};\n\ntype DrawerSidePanelSide = \"left\" | \"right\";\n\nexport type DrawerSidePanelProps<T = unknown> = DrawerSidePanelRootProps<T> & {\n backdropProps?: DrawerBackdropProps;\n children: ReactNode;\n contentProps?: DrawerContentProps;\n popupProps?: DrawerPopupProps;\n portalProps?: DrawerPortalProps;\n side?: DrawerSidePanelSide;\n trigger?: ReactNode;\n triggerProps?: Omit<DrawerTriggerProps, \"children\">;\n viewportProps?: DrawerViewportProps;\n};\n\nconst DRAWER_SWIPE_DIRECTION_BY_SIDE = {\n left: \"left\",\n right: \"right\",\n} as const;\n\nconst DrawerSidePanel = <T,>({\n backdropProps,\n children,\n contentProps,\n popupProps,\n portalProps,\n side = \"right\",\n size: providedSize,\n trigger,\n triggerProps,\n viewportProps,\n ...rootProps\n}: DrawerSidePanelProps<T>) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n const { className: backdropClassName, ...resolvedBackdropProps } =\n backdropProps ?? {};\n const { className: contentClassName, ...resolvedContentProps } =\n contentProps ?? {};\n const { className: popupClassName, ...resolvedPopupProps } = popupProps ?? {};\n const { className: viewportClassName, ...resolvedViewportProps } =\n viewportProps ?? {};\n\n return (\n <DrawerSizeContext.Provider value={contextValue}>\n <DrawerPrimitive.Root\n swipeDirection={DRAWER_SWIPE_DIRECTION_BY_SIDE[side]}\n {...rootProps}\n >\n {trigger ? (\n <DrawerTrigger {...triggerProps}>{trigger}</DrawerTrigger>\n ) : null}\n <DrawerPortal {...portalProps}>\n <DrawerBackdrop\n className={backdropClassName}\n {...resolvedBackdropProps}\n />\n <DrawerViewport\n className={cn(\"fixed inset-0\", viewportClassName)}\n {...resolvedViewportProps}\n >\n <DrawerPopup className={popupClassName} {...resolvedPopupProps}>\n <DrawerContent\n className={contentClassName}\n {...resolvedContentProps}\n >\n {children}\n </DrawerContent>\n </DrawerPopup>\n </DrawerViewport>\n </DrawerPortal>\n </DrawerPrimitive.Root>\n </DrawerSizeContext.Provider>\n );\n};\n\nexport { DrawerSidePanel };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedDrawerSize } from \"./drawer-size-context\";\n\nconst drawerTitleVariants = tv({\n base: \"text-foreground font-medium\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-xl leading-7\",\n md: \"text-lg leading-7\",\n sm: \"text-lg leading-6\",\n xl: \"text-2xl leading-8\",\n xs: \"text-base leading-6\",\n },\n },\n});\n\ntype DrawerTitleVariantProps = Omit<\n VariantProps<typeof drawerTitleVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type DrawerTitleProps = DrawerPrimitive.Title.Props &\n DrawerTitleVariantProps;\n\nconst DrawerTitle = ({ className, size, ...props }: DrawerTitleProps) => {\n const resolvedSize = useResolvedDrawerSize(size);\n\n return (\n <DrawerPrimitive.Title\n className={cn(drawerTitleVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"drawer-title\"\n {...props}\n />\n );\n};\n\nexport { DrawerTitle };\n","\"use client\";\n\nimport { DrawerPreview as DrawerPrimitive } from \"@base-ui/react/drawer\";\nimport { useMemo } from \"react\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { DrawerActionSheet } from \"./drawer-action-sheet\";\nimport { DrawerActions } from \"./drawer-actions\";\nimport { DrawerBackdrop } from \"./drawer-backdrop\";\nimport { DrawerBottomSheet } from \"./drawer-bottom-sheet\";\nimport { DrawerClose } from \"./drawer-close\";\nimport { DrawerContent } from \"./drawer-content\";\nimport { DrawerDescription } from \"./drawer-description\";\nimport { DrawerHandle } from \"./drawer-handle\";\nimport { DrawerHeader } from \"./drawer-header\";\nimport { DrawerIndent } from \"./drawer-indent\";\nimport { DrawerIndentBackground } from \"./drawer-indent-background\";\nimport { DrawerIndentShell } from \"./drawer-indent-shell\";\nimport { DrawerPopup } from \"./drawer-popup\";\nimport { DrawerPortal } from \"./drawer-portal\";\nimport { DrawerProvider } from \"./drawer-provider\";\nimport { DrawerSidePanel } from \"./drawer-side-panel\";\nimport { DrawerSizeContext } from \"./drawer-size-context\";\nimport type { DrawerSize } from \"./drawer-size-context\";\nimport { DrawerTitle } from \"./drawer-title\";\nimport { DrawerTrigger } from \"./drawer-trigger\";\nimport { DrawerViewport } from \"./drawer-viewport\";\n\nexport type DrawerRootProps<T = unknown> = DrawerPrimitive.Root.Props<T> & {\n size?: DrawerSize;\n};\nexport type DrawerProps<T = unknown> = DrawerRootProps<T>;\n\nconst Drawer = <T,>({ size: providedSize, ...props }: DrawerRootProps<T>) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <DrawerSizeContext.Provider value={contextValue}>\n <DrawerPrimitive.Root {...props} />\n </DrawerSizeContext.Provider>\n );\n};\n\nconst DrawerRoot = Drawer;\n\nDrawer.Root = DrawerRoot;\nDrawer.ActionSheet = DrawerActionSheet;\nDrawer.Actions = DrawerActions;\nDrawer.Backdrop = DrawerBackdrop;\nDrawer.BottomSheet = DrawerBottomSheet;\nDrawer.Close = DrawerClose;\nDrawer.Content = DrawerContent;\nDrawer.Description = DrawerDescription;\nDrawer.Indent = DrawerIndent;\nDrawer.IndentBackground = DrawerIndentBackground;\nDrawer.IndentShell = DrawerIndentShell;\nDrawer.Handle = DrawerHandle;\nDrawer.Header = DrawerHeader;\nDrawer.Popup = DrawerPopup;\nDrawer.Portal = DrawerPortal;\nDrawer.Provider = DrawerProvider;\nDrawer.SidePanel = DrawerSidePanel;\nDrawer.Title = DrawerTitle;\nDrawer.Trigger = DrawerTrigger;\nDrawer.Viewport = DrawerViewport;\nDrawer.createHandle = DrawerPrimitive.createHandle;\n\nconst createDrawerHandle = DrawerPrimitive.createHandle;\n\nexport type { DrawerActionSheetProps } from \"./drawer-action-sheet\";\nexport type { DrawerActionsProps } from \"./drawer-actions\";\nexport type { DrawerBackdropProps } from \"./drawer-backdrop\";\nexport type { DrawerBottomSheetProps } from \"./drawer-bottom-sheet\";\nexport type { DrawerCloseProps } from \"./drawer-close\";\nexport type { DrawerContentProps } from \"./drawer-content\";\nexport type { DrawerDescriptionProps } from \"./drawer-description\";\nexport type { DrawerHandleProps } from \"./drawer-handle\";\nexport type { DrawerHeaderProps } from \"./drawer-header\";\nexport type { DrawerIndentBackgroundProps } from \"./drawer-indent-background\";\nexport type { DrawerIndentProps } from \"./drawer-indent\";\nexport type { DrawerIndentShellProps } from \"./drawer-indent-shell\";\nexport type { DrawerPopupProps } from \"./drawer-popup\";\nexport type { DrawerPopupSize } from \"./drawer-popup\";\nexport type { DrawerPortalProps } from \"./drawer-portal\";\nexport type { DrawerProviderProps } from \"./drawer-provider\";\nexport type { DrawerSidePanelProps } from \"./drawer-side-panel\";\nexport type { DrawerSize } from \"./drawer-size-context\";\nexport type { DrawerTitleProps } from \"./drawer-title\";\nexport type { DrawerTriggerProps } from \"./drawer-trigger\";\nexport type { DrawerViewportProps } from \"./drawer-viewport\";\n\nexport {\n Drawer,\n DrawerActionSheet,\n DrawerRoot,\n DrawerActions,\n DrawerBackdrop,\n DrawerBottomSheet,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerHandle,\n DrawerHeader,\n DrawerIndent,\n DrawerIndentBackground,\n DrawerIndentShell,\n DrawerPopup,\n DrawerPortal,\n DrawerProvider,\n DrawerSidePanel,\n DrawerTitle,\n DrawerTrigger,\n DrawerViewport,\n createDrawerHandle,\n};\n"],"mappings":";;;;;;;;;;AAOA,MAAM,kBAAkB,EAAE,WAAW,GAAG,YACtC,oBAACA,cAAgB,UAAjB;CACE,WAAW,GACT,2kBACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACVJ,MAAM,EACJ,aAAa,mBACb,iBAAiB,0BACf,mBAAmB;;;;ACCvB,MAAM,wBAAwB,GAAG;CAC/B,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAYF,MAAM,iBAAiB,EAAE,WAAW,MAAM,GAAG,YAAgC;CAC3E,MAAM,eAAe,sBAAsB,KAAK;AAEhD,QACE,oBAACC,cAAgB,SAAjB;EACE,WAAW,GAAG,sBAAsB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACvE,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;;;;ACnCN,MAAM,0BAA0B,GAAG;CACjC,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAaF,MAAM,eAAe,EAAE,WAAW,MAAM,GAAG,YAA8B;CACvE,MAAM,eAAe,sBAAsB,KAAK;AAEhD,QACE,oBAACC,cAAgB,OAAjB;EACE,WAAW,GACT,2rMACA,wBAAwB,EAAE,MAAM,cAAc,CAAC,EAC/C,UACD;EACD,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;;;;AC1CN,MAAM,gBAAgB,EAAE,GAAG,YACzB,oBAACC,cAAgB,QAAjB;CAAwB,aAAU;CAAgB,GAAI;CAAS;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AAW,GAAG,oBAAoB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACrE,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;;;;ACXN,MAAM,UAAc,EAAE,MAAM,cAAc,GAAG,YAAgC;CAC3E,MAAM,OAAO,iBAAiB,aAAa;CAC3C,MAAM,eAAe,eAAe,EAAE,MAAM,GAAG,CAAC,KAAK,CAAC;AAEtD,QACE,oBAAC,kBAAkB,UAAnB;EAA4B,OAAO;YACjC,oBAACC,cAAgB,MAAjB,EAAsB,GAAI,OAAS;EACR;;AAIjC,MAAM,aAAa;AAEnB,OAAO,OAAO;AACd,OAAO,cAAc;AACrB,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,OAAO,cAAc;AACrB,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,OAAO,cAAc;AACrB,OAAO,SAAS;AAChB,OAAO,mBAAmB;AAC1B,OAAO,cAAc;AACrB,OAAO,SAAS;AAChB,OAAO,SAAS;AAChB,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,WAAW;AAClB,OAAO,YAAY;AACnB,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,OAAO,eAAeA,cAAgB;AAEtC,MAAM,qBAAqBA,cAAgB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../input-
|
|
2
|
-
import { A as DropdownMenuItemProps, B as DropdownMenuArrowProps, C as DropdownMenuPortal, D as DropdownMenuLabel, E as DropdownMenuLinkItemProps, F as DropdownMenuCheckboxItem, I as DropdownMenuCheckboxItemProps, L as DropdownMenuBackdrop, M as DropdownMenuGroupProps, N as DropdownMenuContent, O as DropdownMenuLabelProps, P as DropdownMenuContentProps, R as DropdownMenuBackdropProps, S as DropdownMenuPopupProps, T as DropdownMenuLinkItem, _ as DropdownMenuRadioGroup, a as DropdownMenuSubTrigger, b as DropdownMenuPositionerProps, c as DropdownMenuSubContentProps, d as DropdownMenuShortcut, f as DropdownMenuShortcutProps, g as DropdownMenuRadioItemProps, h as DropdownMenuRadioItem, i as DropdownMenuTriggerProps, j as DropdownMenuGroup, k as DropdownMenuItem, l as DropdownMenuSub, m as DropdownMenuSeparatorProps, n as DropdownMenuProps, o as DropdownMenuSubTriggerProps, p as DropdownMenuSeparator, r as DropdownMenuTrigger, s as DropdownMenuSubContent, t as DropdownMenu, u as DropdownMenuSubProps, v as DropdownMenuRadioGroupProps, w as DropdownMenuPortalProps, x as DropdownMenuPopup, y as DropdownMenuPositioner, z as DropdownMenuArrow } from "../dropdown-menu-
|
|
1
|
+
import "../input-BeE717GK.js";
|
|
2
|
+
import { A as DropdownMenuItemProps, B as DropdownMenuArrowProps, C as DropdownMenuPortal, D as DropdownMenuLabel, E as DropdownMenuLinkItemProps, F as DropdownMenuCheckboxItem, I as DropdownMenuCheckboxItemProps, L as DropdownMenuBackdrop, M as DropdownMenuGroupProps, N as DropdownMenuContent, O as DropdownMenuLabelProps, P as DropdownMenuContentProps, R as DropdownMenuBackdropProps, S as DropdownMenuPopupProps, T as DropdownMenuLinkItem, _ as DropdownMenuRadioGroup, a as DropdownMenuSubTrigger, b as DropdownMenuPositionerProps, c as DropdownMenuSubContentProps, d as DropdownMenuShortcut, f as DropdownMenuShortcutProps, g as DropdownMenuRadioItemProps, h as DropdownMenuRadioItem, i as DropdownMenuTriggerProps, j as DropdownMenuGroup, k as DropdownMenuItem, l as DropdownMenuSub, m as DropdownMenuSeparatorProps, n as DropdownMenuProps, o as DropdownMenuSubTriggerProps, p as DropdownMenuSeparator, r as DropdownMenuTrigger, s as DropdownMenuSubContent, t as DropdownMenu, u as DropdownMenuSubProps, v as DropdownMenuRadioGroupProps, w as DropdownMenuPortalProps, x as DropdownMenuPopup, y as DropdownMenuPositioner, z as DropdownMenuArrow } from "../dropdown-menu-BG03sLbC.js";
|
|
3
3
|
export { DropdownMenu, DropdownMenuArrow, DropdownMenuArrowProps, DropdownMenuBackdrop, DropdownMenuBackdropProps, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuLabelProps, DropdownMenuLinkItem, DropdownMenuLinkItemProps, DropdownMenuPopup, DropdownMenuPopupProps, DropdownMenuPortal, DropdownMenuPortalProps, DropdownMenuPositioner, DropdownMenuPositionerProps, DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioGroupProps, DropdownMenuRadioItem, DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuShortcut, DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTrigger, DropdownMenuSubTriggerProps, DropdownMenuTrigger, DropdownMenuTriggerProps };
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { S as DropdownMenuArrow, _ as DropdownMenuPositioner, a as DropdownMenuSub, b as DropdownMenuCheckboxItem, c as DropdownMenuRadioItem, f as DropdownMenuLabel, g as DropdownMenuContent, h as DropdownMenuGroup, i as DropdownMenuSubContent, l as DropdownMenuRadioGroup, n as DropdownMenuTrigger, o as DropdownMenuShortcut, p as DropdownMenuItem, r as DropdownMenuSubTrigger, s as DropdownMenuSeparator, t as DropdownMenu, u as DropdownMenuLinkItem, v as DropdownMenuPortal, x as DropdownMenuBackdrop, y as DropdownMenuPopup } from "../dropdown-menu-
|
|
3
|
+
import { S as DropdownMenuArrow, _ as DropdownMenuPositioner, a as DropdownMenuSub, b as DropdownMenuCheckboxItem, c as DropdownMenuRadioItem, f as DropdownMenuLabel, g as DropdownMenuContent, h as DropdownMenuGroup, i as DropdownMenuSubContent, l as DropdownMenuRadioGroup, n as DropdownMenuTrigger, o as DropdownMenuShortcut, p as DropdownMenuItem, r as DropdownMenuSubTrigger, s as DropdownMenuSeparator, t as DropdownMenu, u as DropdownMenuLinkItem, v as DropdownMenuPortal, x as DropdownMenuBackdrop, y as DropdownMenuPopup } from "../dropdown-menu-DOVY76ue.js";
|
|
4
4
|
|
|
5
5
|
export { DropdownMenu, DropdownMenuArrow, DropdownMenuBackdrop, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuLinkItem, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as UISize } from "../size-system-
|
|
2
|
-
import "../size-context-
|
|
1
|
+
import { t as UISize } from "../size-system-BAI1CnwU.js";
|
|
2
|
+
import "../size-context-DWvVJytl.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import * as tailwind_variants0 from "tailwind-variants";
|
package/dist/ui/empty.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as UISize } from "../size-system-
|
|
2
|
-
import { t as Button } from "../button-
|
|
1
|
+
import { t as UISize } from "../size-system-BAI1CnwU.js";
|
|
2
|
+
import { t as Button } from "../button-CPPkhcmB.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import * as tailwind_variants0 from "tailwind-variants";
|
package/dist/ui/field.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as UISize } from "../size-system-
|
|
1
|
+
import { t as UISize } from "../size-system-BAI1CnwU.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import * as tailwind_variants0 from "tailwind-variants";
|
package/dist/ui/input-group.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import { r as InputSize, t as Input } from "../input-
|
|
3
|
-
import { t as Textarea } from "../textarea-
|
|
1
|
+
import { t as Button } from "../button-CPPkhcmB.js";
|
|
2
|
+
import { r as InputSize, t as Input } from "../input-BeE717GK.js";
|
|
3
|
+
import { t as Textarea } from "../textarea-rmoEkvdu.js";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
import * as tailwind_variants0 from "tailwind-variants";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.d.ts","names":[],"sources":["../../src/ui/input-group/input-group-addon.tsx","../../src/ui/input-group/input-group-button.tsx","../../src/ui/input-group/input-group-input.tsx","../../src/ui/input-group/input-group-text.tsx","../../src/ui/input-group/input-group-textarea.tsx","../../src/ui/input-group/input-group.tsx"],"mappings":";;;;;;;;;KAQY,oBAAA,GAAuB,cAAA,UACjC,YAAA,QAAoB,uBAAA;AAAA,cAEhB,uBAAA,EAyBJ,kBAAA,CAzB2B,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyB3B,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;cAaI,eAAA;EAAmB,SAAA;EAAA,KAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAKtB,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","names":[],"sources":["../../src/ui/input-group/input-group-addon.tsx","../../src/ui/input-group/input-group-button.tsx","../../src/ui/input-group/input-group-input.tsx","../../src/ui/input-group/input-group-text.tsx","../../src/ui/input-group/input-group-textarea.tsx","../../src/ui/input-group/input-group.tsx"],"mappings":";;;;;;;;;KAQY,oBAAA,GAAuB,cAAA,UACjC,YAAA,QAAoB,uBAAA;AAAA,cAEhB,u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|
3
|
-
import { a as InputGroupButton, i as InputGroupInput, n as InputGroupTextarea, o as InputGroupAddon, r as InputGroupText, t as InputGroup } from "../input-group-
|
|
3
|
+
import { a as InputGroupButton, i as InputGroupInput, n as InputGroupTextarea, o as InputGroupAddon, r as InputGroupText, t as InputGroup } from "../input-group-7kPror1q.js";
|
|
4
4
|
|
|
5
5
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
package/dist/ui/input-otp.d.ts
CHANGED
package/dist/ui/input.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputProps, r as InputSize, t as Input } from "../input-
|
|
1
|
+
import { n as InputProps, r as InputSize, t as Input } from "../input-BeE717GK.js";
|
|
2
2
|
export { Input, InputProps, InputSize };
|
package/dist/ui/input.js
CHANGED
package/dist/ui/item.d.ts
CHANGED
package/dist/ui/kbd.d.ts
CHANGED
package/dist/ui/menubar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as InputSize } from "../input-
|
|
2
|
-
import { C as DropdownMenuPortal, D as DropdownMenuLabel, L as DropdownMenuBackdrop, _ as DropdownMenuRadioGroup, a as DropdownMenuSubTrigger, d as DropdownMenuShortcut, j as DropdownMenuGroup, l as DropdownMenuSub, p as DropdownMenuSeparator, r as DropdownMenuTrigger, s as DropdownMenuSubContent, t as DropdownMenu, x as DropdownMenuPopup, y as DropdownMenuPositioner, z as DropdownMenuArrow } from "../dropdown-menu-
|
|
1
|
+
import { r as InputSize } from "../input-BeE717GK.js";
|
|
2
|
+
import { C as DropdownMenuPortal, D as DropdownMenuLabel, L as DropdownMenuBackdrop, _ as DropdownMenuRadioGroup, a as DropdownMenuSubTrigger, d as DropdownMenuShortcut, j as DropdownMenuGroup, l as DropdownMenuSub, p as DropdownMenuSeparator, r as DropdownMenuTrigger, s as DropdownMenuSubContent, t as DropdownMenu, x as DropdownMenuPopup, y as DropdownMenuPositioner, z as DropdownMenuArrow } from "../dropdown-menu-BG03sLbC.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import * as tailwind_variants0 from "tailwind-variants";
|
package/dist/ui/menubar.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as useComponentSize } from "../size-provider-18EvJgDT.js";
|
|
4
4
|
import { t as mergeBaseUIClassName } from "../merge-base-ui-class-name-HKsgjcXj.js";
|
|
5
|
-
import { S as DropdownMenuArrow, _ as DropdownMenuPositioner, a as DropdownMenuSub, d as dropdownMenuLinkItemVariants, f as DropdownMenuLabel, h as DropdownMenuGroup, i as DropdownMenuSubContent, l as DropdownMenuRadioGroup, m as dropdownMenuItemVariants, n as DropdownMenuTrigger, o as DropdownMenuShortcut, r as DropdownMenuSubTrigger, s as DropdownMenuSeparator, t as DropdownMenu, v as DropdownMenuPortal, x as DropdownMenuBackdrop, y as DropdownMenuPopup } from "../dropdown-menu-
|
|
5
|
+
import { S as DropdownMenuArrow, _ as DropdownMenuPositioner, a as DropdownMenuSub, d as dropdownMenuLinkItemVariants, f as DropdownMenuLabel, h as DropdownMenuGroup, i as DropdownMenuSubContent, l as DropdownMenuRadioGroup, m as dropdownMenuItemVariants, n as DropdownMenuTrigger, o as DropdownMenuShortcut, r as DropdownMenuSubTrigger, s as DropdownMenuSeparator, t as DropdownMenu, v as DropdownMenuPortal, x as DropdownMenuBackdrop, y as DropdownMenuPopup } from "../dropdown-menu-DOVY76ue.js";
|
|
6
6
|
import { createContext, useContext, useMemo } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cn, tv } from "tailwind-variants";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as UISize } from "../size-system-
|
|
2
|
-
import { t as Separator } from "../separator-
|
|
1
|
+
import { t as UISize } from "../size-system-BAI1CnwU.js";
|
|
2
|
+
import { t as Separator } from "../separator-CgOz2m5i.js";
|
|
3
3
|
import * as react from "react";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
package/dist/ui/pagination.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as UISize } from "../size-system-
|
|
1
|
+
import { t as UISize } from "../size-system-BAI1CnwU.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import * as tailwind_variants0 from "tailwind-variants";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","names":[],"sources":["../../src/ui/pagination/pagination-content.tsx","../../src/ui/pagination/pagination-ellipsis.tsx","../../src/ui/pagination/pagination-item.tsx","../../src/ui/pagination/pagination-link.tsx","../../src/ui/pagination/pagination-next.tsx","../../src/ui/pagination/pagination-previous.tsx","../../src/ui/pagination/pagination.tsx"],"mappings":";;;;;;;cAOM,yBAAA,EAcJ,kBAAA,CAd6B,YAAA;;;;;;;;;;;;;;;;cAc7B,kBAAA,CAAA,YAAA;;;;;;;;;KAEG,6BAAA,GAAgC,IAAA,CACnC,YAAA,QAAoB,yBAAA;EAGpB,IAAA,GAAO,MAAA;AAAA;AAAA,KAGG,sBAAA,GAAyB,cAAA,SACnC,6BAAA;AAAA,cAEI,iBAAA;EAAqB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAIxB,sBAAA,KAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cC5BnB,0BAAA,EAgCJ,kBAAA,CAhC8B,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgC9B,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEG,8BAAA,GAAiC,IAAA,CACpC,YAAA,QAAoB,0BAAA;EAGpB,IAAA,GAAO,MAAA;AAAA;AAAA,KAGG,uBAAA,GAA0B,cAAA,WACpC,8BAAA;AAAA,cAEI,kBAAA;EAAsB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAIzB,uBAAA,KAAuB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCxDd,mBAAA,GAAsB,cAAA;AAAA,cAE5B,cAAA;EAAA,GAAkB;AAAA,GAAc,mBAAA,KAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","names":[],"sources":["../../src/ui/pagination/pagination-content.tsx","../../src/ui/pagination/pagination-ellipsis.tsx","../../src/ui/pagination/pagination-item.tsx","../../src/ui/pagination/pagination-link.tsx","../../src/ui/pagination/pagination-next.tsx","../../src/ui/pagination/pagination-previous.tsx","../../src/ui/pagination/pagination.tsx"],"mappings":";;;;;;;cAOM,yBAAA,EAcJ,kBAAA,CAd6B,YAAA;;;;;;;;;;;;;;;;cAc7B,kBAAA,CAAA,YAAA;;;;;;;;;KAEG,6BAAA,GAAgC,IAAA,CACnC,YAAA,QAAoB,yBAAA;EAGpB,IAAA,GAAO,MAAA;AAAA;AAAA,KAGG,sBAAA,GAAyB,cAAA,SACnC,6BAAA;AAAA,cAEI,iBAAA;EAAqB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAIxB,sBAAA,KAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cC5BnB,0BAAA,EAgCJ,kBAAA,CAhC8B,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgC9B,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEG,8BAAA,GAAiC,IAAA,CACpC,YAAA,QAAoB,0BAAA;EAGpB,IAAA,GAAO,MAAA;AAAA;AAAA,KAGG,uBAAA,GAA0B,cAAA,WACpC,8BAAA;AAAA,cAEI,kBAAA;EAAsB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAIzB,uBAAA,KAA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AA,GAAA,CAAA,OAAA"}
|
package/dist/ui/pagination.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { a as useComponentSize } from "../size-provider-18EvJgDT.js";
|
|
4
4
|
import { t as createSizeContext } from "../size-context-CvLl3pMC.js";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
|
+
import { ActionIcon } from "./action-icon.js";
|
|
6
7
|
import { useMemo } from "react";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { cn, tv } from "tailwind-variants";
|
|
@@ -95,12 +96,12 @@ const PaginationItem = ({ ...props }) => /* @__PURE__ */ jsx("li", {
|
|
|
95
96
|
|
|
96
97
|
//#endregion
|
|
97
98
|
//#region src/ui/pagination/pagination-link.tsx
|
|
98
|
-
const
|
|
99
|
-
lg: "
|
|
100
|
-
md: "
|
|
101
|
-
sm: "
|
|
102
|
-
xl: "
|
|
103
|
-
xs: "
|
|
99
|
+
const PAGINATION_ICON_SIZE_BY_SIZE = {
|
|
100
|
+
lg: "lg",
|
|
101
|
+
md: "md",
|
|
102
|
+
sm: "sm",
|
|
103
|
+
xl: "xl",
|
|
104
|
+
xs: "xs"
|
|
104
105
|
};
|
|
105
106
|
const PAGINATION_TEXT_BUTTON_SIZE_BY_SIZE = {
|
|
106
107
|
lg: "lg",
|
|
@@ -111,8 +112,8 @@ const PAGINATION_TEXT_BUTTON_SIZE_BY_SIZE = {
|
|
|
111
112
|
};
|
|
112
113
|
const PaginationLink = ({ kind = "icon", className, isActive, size, ...props }) => {
|
|
113
114
|
const resolvedSize = useResolvedPaginationSize(size);
|
|
114
|
-
const
|
|
115
|
-
|
|
115
|
+
const resolvedVariant = isActive ? "outline" : "ghost";
|
|
116
|
+
const sharedProps = {
|
|
116
117
|
className: cn("cursor-clickable", className),
|
|
117
118
|
"data-size": resolvedSize,
|
|
118
119
|
nativeButton: false,
|
|
@@ -124,8 +125,15 @@ const PaginationLink = ({ kind = "icon", className, isActive, size, ...props })
|
|
|
124
125
|
"data-slot": "pagination-link",
|
|
125
126
|
...props
|
|
126
127
|
}),
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
variant: resolvedVariant
|
|
129
|
+
};
|
|
130
|
+
if (kind === "icon") return /* @__PURE__ */ jsx(ActionIcon, {
|
|
131
|
+
size: PAGINATION_ICON_SIZE_BY_SIZE[resolvedSize],
|
|
132
|
+
...sharedProps
|
|
133
|
+
});
|
|
134
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
135
|
+
size: PAGINATION_TEXT_BUTTON_SIZE_BY_SIZE[resolvedSize],
|
|
136
|
+
...sharedProps
|
|
129
137
|
});
|
|
130
138
|
};
|
|
131
139
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","names":[],"sources":["../../src/ui/pagination/pagination-size-context.ts","../../src/ui/pagination/pagination-content.tsx","../../src/ui/pagination/pagination-ellipsis.tsx","../../src/ui/pagination/pagination-item.tsx","../../src/ui/pagination/pagination-link.tsx","../../src/ui/pagination/pagination-next.tsx","../../src/ui/pagination/pagination-previous.tsx","../../src/ui/pagination/pagination.tsx"],"sourcesContent":["import { createSizeContext } from \"../shared/size/size-context\";\n\nconst {\n SizeContext: PaginationSizeContext,\n useResolvedSize: useResolvedPaginationSize,\n} = createSizeContext();\n\nexport { PaginationSizeContext, useResolvedPaginationSize };\n","import type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationContentVariants = tv({\n base: \"flex items-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"gap-1\",\n md: \"gap-0.5\",\n sm: \"gap-0.5\",\n xl: \"gap-1\",\n xs: \"gap-0.5\",\n },\n },\n});\n\ntype PaginationContentVariantProps = Omit<\n VariantProps<typeof paginationContentVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationContentProps = ComponentProps<\"ul\"> &\n PaginationContentVariantProps;\n\nconst PaginationContent = ({\n className,\n size,\n ...props\n}: PaginationContentProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n\n return (\n <ul\n className={cn(\n paginationContentVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"pagination-content\"\n {...props}\n />\n );\n};\n\nexport { PaginationContent };\n","import { MoreHorizontalCircle01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationEllipsisVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n icon: \"\",\n root: \"flex items-center justify-center\",\n },\n variants: {\n size: {\n lg: {\n icon: \"size-4\",\n root: \"size-9\",\n },\n md: {\n icon: \"size-4\",\n root: \"size-8\",\n },\n sm: {\n icon: \"size-3.5\",\n root: \"size-7\",\n },\n xl: {\n icon: \"size-5\",\n root: \"size-10\",\n },\n xs: {\n icon: \"size-3\",\n root: \"size-6\",\n },\n },\n },\n});\n\ntype PaginationEllipsisVariantProps = Omit<\n VariantProps<typeof paginationEllipsisVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationEllipsisProps = ComponentProps<\"span\"> &\n PaginationEllipsisVariantProps;\n\nconst PaginationEllipsis = ({\n className,\n size,\n ...props\n}: PaginationEllipsisProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n const { icon, root } = paginationEllipsisVariants({ size: resolvedSize });\n\n return (\n <span\n aria-hidden\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"pagination-ellipsis\"\n {...props}\n >\n <HugeiconsIcon\n className={icon()}\n icon={MoreHorizontalCircle01Icon}\n strokeWidth={2}\n />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n};\n\nexport { PaginationEllipsis };\n","import type { ComponentProps } from \"react\";\nexport type PaginationItemProps = ComponentProps<\"li\">;\n\nconst PaginationItem = ({ ...props }: PaginationItemProps) => (\n <li data-slot=\"pagination-item\" {...props} />\n);\n\nexport { PaginationItem };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { Button } from \"../button/button\";\nimport type { ButtonProps } from \"../button/button\";\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\ntype PaginationLinkProps = {\n kind?: \"default\" | \"icon\";\n isActive?: boolean;\n size?: UISize;\n} & ComponentProps<\"a\">;\n\nconst PAGINATION_ICON_BUTTON_SIZE_BY_SIZE: Record<UISize, ButtonProps[\"size\"]> =\n {\n lg: \"icon-lg\",\n md: \"icon\",\n sm: \"icon-sm\",\n xl: \"icon-xl\",\n xs: \"icon-xs\",\n };\n\nconst PAGINATION_TEXT_BUTTON_SIZE_BY_SIZE: Record<UISize, ButtonProps[\"size\"]> =\n {\n lg: \"lg\",\n md: \"md\",\n sm: \"sm\",\n xl: \"xl\",\n xs: \"xs\",\n };\n\nconst PaginationLink = ({\n kind = \"icon\",\n className,\n isActive,\n size,\n ...props\n}: PaginationLinkProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n const buttonSize =\n kind === \"icon\"\n ? PAGINATION_ICON_BUTTON_SIZE_BY_SIZE[resolvedSize]\n : PAGINATION_TEXT_BUTTON_SIZE_BY_SIZE[resolvedSize];\n\n return (\n <Button\n className={cn(\"cursor-clickable\", className)}\n data-size={resolvedSize}\n nativeButton={false}\n render={\n <a\n aria-current={isActive ? \"page\" : undefined}\n aria-label=\"pagination link\"\n data-active={isActive}\n data-size={resolvedSize}\n data-slot=\"pagination-link\"\n {...props}\n />\n }\n size={buttonSize}\n variant={isActive ? \"outline\" : \"ghost\"}\n />\n );\n};\n\nexport { PaginationLink };\nexport type { PaginationLinkProps };\n","import { ArrowRight01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { PaginationLink } from \"./pagination-link\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationNextVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"pr-2!\",\n md: \"pr-1.5!\",\n sm: \"pr-1!\",\n xl: \"pr-2.5!\",\n xs: \"pr-1!\",\n },\n },\n});\n\ntype PaginationNextVariantProps = Omit<\n VariantProps<typeof paginationNextVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationNextProps = Omit<\n ComponentProps<typeof PaginationLink>,\n \"size\"\n> &\n PaginationNextVariantProps;\n\nconst PaginationNext = ({ className, size, ...props }: PaginationNextProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n className={cn(paginationNextVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n kind=\"default\"\n size={resolvedSize}\n {...props}\n >\n <span className=\"hidden sm:block\">Next</span>\n <HugeiconsIcon\n data-icon=\"inline-end\"\n icon={ArrowRight01Icon}\n strokeWidth={2}\n />\n </PaginationLink>\n );\n};\n\nexport { PaginationNext };\n","import { ArrowLeft01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { PaginationLink } from \"./pagination-link\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationPreviousVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"pl-2!\",\n md: \"pl-1.5!\",\n sm: \"pl-1!\",\n xl: \"pl-2.5!\",\n xs: \"pl-1!\",\n },\n },\n});\n\ntype PaginationPreviousVariantProps = Omit<\n VariantProps<typeof paginationPreviousVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationPreviousProps = Omit<\n ComponentProps<typeof PaginationLink>,\n \"size\"\n> &\n PaginationPreviousVariantProps;\n\nconst PaginationPrevious = ({\n className,\n size,\n ...props\n}: PaginationPreviousProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n className={cn(\n paginationPreviousVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n kind=\"default\"\n size={resolvedSize}\n {...props}\n >\n <HugeiconsIcon\n data-icon=\"inline-start\"\n icon={ArrowLeft01Icon}\n strokeWidth={2}\n />\n <span className=\"hidden sm:block\">Previous</span>\n </PaginationLink>\n );\n};\n\nexport { PaginationPrevious };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport type { UISize } from \"../shared/size/size-system\";\nimport { PaginationContent } from \"./pagination-content\";\nimport { PaginationEllipsis } from \"./pagination-ellipsis\";\nimport { PaginationItem } from \"./pagination-item\";\nimport { PaginationLink } from \"./pagination-link\";\nimport { PaginationNext } from \"./pagination-next\";\nimport { PaginationPrevious } from \"./pagination-previous\";\nimport { PaginationSizeContext } from \"./pagination-size-context\";\nexport type PaginationProps = ComponentProps<\"nav\"> & {\n size?: UISize;\n};\n\nconst Pagination = ({\n className,\n size: providedSize,\n ...props\n}: PaginationProps) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <PaginationSizeContext.Provider value={contextValue}>\n <nav\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n data-size={size}\n data-slot=\"pagination\"\n {...props}\n />\n </PaginationSizeContext.Provider>\n );\n};\n\nPagination.Content = PaginationContent;\nPagination.Ellipsis = PaginationEllipsis;\nPagination.Item = PaginationItem;\nPagination.Link = PaginationLink;\nPagination.Next = PaginationNext;\nPagination.Previous = PaginationPrevious;\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\nexport type { PaginationContentProps } from \"./pagination-content\";\nexport type { PaginationEllipsisProps } from \"./pagination-ellipsis\";\nexport type { PaginationItemProps } from \"./pagination-item\";\nexport type { PaginationLinkProps } from \"./pagination-link\";\nexport type { PaginationNextProps } from \"./pagination-next\";\nexport type { PaginationPreviousProps } from \"./pagination-previous\";\n"],"mappings":";;;;;;;;;;;;AAEA,MAAM,EACJ,aAAa,uBACb,iBAAiB,8BACf,mBAAmB;;;;ACEvB,MAAM,4BAA4B,GAAG;CACnC,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAYF,MAAM,qBAAqB,EACzB,WACA,MACA,GAAG,YACyB;CAC5B,MAAM,eAAe,0BAA0B,KAAK;AAEpD,QACE,oBAAC,MAAD;EACE,WAAW,GACT,0BAA0B,EAAE,MAAM,cAAc,CAAC,EACjD,UACD;EACD,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;;;;ACxCN,MAAM,6BAA6B,GAAG;CACpC,iBAAiB,EACf,MAAM,MACP;CACD,OAAO;EACL,MAAM;EACN,MAAM;EACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM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|
|
1
|
+
{"version":3,"file":"pagination.js","names":[],"sources":["../../src/ui/pagination/pagination-size-context.ts","../../src/ui/pagination/pagination-content.tsx","../../src/ui/pagination/pagination-ellipsis.tsx","../../src/ui/pagination/pagination-item.tsx","../../src/ui/pagination/pagination-link.tsx","../../src/ui/pagination/pagination-next.tsx","../../src/ui/pagination/pagination-previous.tsx","../../src/ui/pagination/pagination.tsx"],"sourcesContent":["import { createSizeContext } from \"../shared/size/size-context\";\n\nconst {\n SizeContext: PaginationSizeContext,\n useResolvedSize: useResolvedPaginationSize,\n} = createSizeContext();\n\nexport { PaginationSizeContext, useResolvedPaginationSize };\n","import type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationContentVariants = tv({\n base: \"flex items-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"gap-1\",\n md: \"gap-0.5\",\n sm: \"gap-0.5\",\n xl: \"gap-1\",\n xs: \"gap-0.5\",\n },\n },\n});\n\ntype PaginationContentVariantProps = Omit<\n VariantProps<typeof paginationContentVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationContentProps = ComponentProps<\"ul\"> &\n PaginationContentVariantProps;\n\nconst PaginationContent = ({\n className,\n size,\n ...props\n}: PaginationContentProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n\n return (\n <ul\n className={cn(\n paginationContentVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"pagination-content\"\n {...props}\n />\n );\n};\n\nexport { PaginationContent };\n","import { MoreHorizontalCircle01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationEllipsisVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n icon: \"\",\n root: \"flex items-center justify-center\",\n },\n variants: {\n size: {\n lg: {\n icon: \"size-4\",\n root: \"size-9\",\n },\n md: {\n icon: \"size-4\",\n root: \"size-8\",\n },\n sm: {\n icon: \"size-3.5\",\n root: \"size-7\",\n },\n xl: {\n icon: \"size-5\",\n root: \"size-10\",\n },\n xs: {\n icon: \"size-3\",\n root: \"size-6\",\n },\n },\n },\n});\n\ntype PaginationEllipsisVariantProps = Omit<\n VariantProps<typeof paginationEllipsisVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationEllipsisProps = ComponentProps<\"span\"> &\n PaginationEllipsisVariantProps;\n\nconst PaginationEllipsis = ({\n className,\n size,\n ...props\n}: PaginationEllipsisProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n const { icon, root } = paginationEllipsisVariants({ size: resolvedSize });\n\n return (\n <span\n aria-hidden\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"pagination-ellipsis\"\n {...props}\n >\n <HugeiconsIcon\n className={icon()}\n icon={MoreHorizontalCircle01Icon}\n strokeWidth={2}\n />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n};\n\nexport { PaginationEllipsis };\n","import type { ComponentProps } from \"react\";\nexport type PaginationItemProps = ComponentProps<\"li\">;\n\nconst PaginationItem = ({ ...props }: PaginationItemProps) => (\n <li data-slot=\"pagination-item\" {...props} />\n);\n\nexport { PaginationItem };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { ActionIcon } from \"../action-icon/action-icon\";\nimport { Button } from \"../button/button\";\nimport type { ButtonProps } from \"../button/button\";\nimport type { UISize } from \"../shared/size/size-system\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\ntype PaginationLinkProps = {\n kind?: \"default\" | \"icon\";\n isActive?: boolean;\n size?: UISize;\n} & ComponentProps<\"a\">;\n\nconst PAGINATION_ICON_SIZE_BY_SIZE: Record<\n UISize,\n NonNullable<ComponentProps<typeof ActionIcon>[\"size\"]>\n> = {\n lg: \"lg\",\n md: \"md\",\n sm: \"sm\",\n xl: \"xl\",\n xs: \"xs\",\n};\n\nconst PAGINATION_TEXT_BUTTON_SIZE_BY_SIZE: Record<UISize, ButtonProps[\"size\"]> =\n {\n lg: \"lg\",\n md: \"md\",\n sm: \"sm\",\n xl: \"xl\",\n xs: \"xs\",\n };\n\nconst PaginationLink = ({\n kind = \"icon\",\n className,\n isActive,\n size,\n ...props\n}: PaginationLinkProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n const resolvedVariant: NonNullable<ButtonProps[\"variant\"]> = isActive\n ? \"outline\"\n : \"ghost\";\n const sharedProps = {\n className: cn(\"cursor-clickable\", className),\n \"data-size\": resolvedSize,\n nativeButton: false as const,\n render: (\n <a\n aria-current={isActive ? \"page\" : undefined}\n aria-label=\"pagination link\"\n data-active={isActive}\n data-size={resolvedSize}\n data-slot=\"pagination-link\"\n {...props}\n />\n ),\n variant: resolvedVariant,\n };\n\n if (kind === \"icon\") {\n return (\n <ActionIcon\n size={PAGINATION_ICON_SIZE_BY_SIZE[resolvedSize]}\n {...sharedProps}\n />\n );\n }\n\n return (\n <Button\n size={PAGINATION_TEXT_BUTTON_SIZE_BY_SIZE[resolvedSize]}\n {...sharedProps}\n />\n );\n};\n\nexport { PaginationLink };\nexport type { PaginationLinkProps };\n","import { ArrowRight01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { PaginationLink } from \"./pagination-link\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationNextVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"pr-2!\",\n md: \"pr-1.5!\",\n sm: \"pr-1!\",\n xl: \"pr-2.5!\",\n xs: \"pr-1!\",\n },\n },\n});\n\ntype PaginationNextVariantProps = Omit<\n VariantProps<typeof paginationNextVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationNextProps = Omit<\n ComponentProps<typeof PaginationLink>,\n \"size\"\n> &\n PaginationNextVariantProps;\n\nconst PaginationNext = ({ className, size, ...props }: PaginationNextProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n className={cn(paginationNextVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n kind=\"default\"\n size={resolvedSize}\n {...props}\n >\n <span className=\"hidden sm:block\">Next</span>\n <HugeiconsIcon\n data-icon=\"inline-end\"\n icon={ArrowRight01Icon}\n strokeWidth={2}\n />\n </PaginationLink>\n );\n};\n\nexport { PaginationNext };\n","import { ArrowLeft01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\nimport { PaginationLink } from \"./pagination-link\";\nimport { useResolvedPaginationSize } from \"./pagination-size-context\";\n\nconst paginationPreviousVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"pl-2!\",\n md: \"pl-1.5!\",\n sm: \"pl-1!\",\n xl: \"pl-2.5!\",\n xs: \"pl-1!\",\n },\n },\n});\n\ntype PaginationPreviousVariantProps = Omit<\n VariantProps<typeof paginationPreviousVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type PaginationPreviousProps = Omit<\n ComponentProps<typeof PaginationLink>,\n \"size\"\n> &\n PaginationPreviousVariantProps;\n\nconst PaginationPrevious = ({\n className,\n size,\n ...props\n}: PaginationPreviousProps) => {\n const resolvedSize = useResolvedPaginationSize(size);\n\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n className={cn(\n paginationPreviousVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n kind=\"default\"\n size={resolvedSize}\n {...props}\n >\n <HugeiconsIcon\n data-icon=\"inline-start\"\n icon={ArrowLeft01Icon}\n strokeWidth={2}\n />\n <span className=\"hidden sm:block\">Previous</span>\n </PaginationLink>\n );\n};\n\nexport { PaginationPrevious };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport type { UISize } from \"../shared/size/size-system\";\nimport { PaginationContent } from \"./pagination-content\";\nimport { PaginationEllipsis } from \"./pagination-ellipsis\";\nimport { PaginationItem } from \"./pagination-item\";\nimport { PaginationLink } from \"./pagination-link\";\nimport { PaginationNext } from \"./pagination-next\";\nimport { PaginationPrevious } from \"./pagination-previous\";\nimport { PaginationSizeContext } from \"./pagination-size-context\";\nexport type PaginationProps = ComponentProps<\"nav\"> & {\n size?: UISize;\n};\n\nconst Pagination = ({\n className,\n size: providedSize,\n ...props\n}: PaginationProps) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <PaginationSizeContext.Provider value={contextValue}>\n <nav\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n data-size={size}\n data-slot=\"pagination\"\n {...props}\n />\n </PaginationSizeContext.Provider>\n );\n};\n\nPagination.Content = PaginationContent;\nPagination.Ellipsis = PaginationEllipsis;\nPagination.Item = PaginationItem;\nPagination.Link = PaginationLink;\nPagination.Next = PaginationNext;\nPagination.Previous = PaginationPrevious;\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\nexport type { PaginationContentProps } from \"./pagination-content\";\nexport type { PaginationEllipsisProps } from \"./pagination-ellipsis\";\nexport type { PaginationItemProps } from \"./pagination-item\";\nexport type { PaginationLinkProps } from \"./pagination-link\";\nexport type { PaginationNextProps } from \"./pagination-next\";\nexport type { PaginationPreviousProps } from \"./pagination-previous\";\n"],"mappings":";;;;;;;;;;;;;AAEA,MAAM,EACJ,aAAa,uBACb,iBAAiB,8BACf,mBAAmB;;;;ACEvB,MAAM,4BAA4B,GAAG;CACnC,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAYF,MAAM,qBAAqB,EACzB,WACA,MACA,GAAG,YACyB;CAC5B,MAAM,eAAe,0BAA0B,KAAK;AAEpD,QACE,oBAAC,MAAD;EACE,WAAW,GACT,0BAA0B,EAAE,MAAM,cAAc,CAAC,EACjD,UACD;EACD,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;;;;ACxCN,MAAM,6BAA6B,GAAG;CACpC,iBAAiB,EACf,MAAM,MACP;CACD,OAAO;EACL,MAAM;EACN,MAAM;EACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACD,IAAI;GACF,MAAM;GACN,MAAM;GACP;EACF,EACF;CACF,CAAC;AAYF,MAAM,sBAAsB,EAC1B,WACA,MACA,GAAG,YAC0B;CAC7B,MAAM,eAAe,0BAA0B,KAAK;CACpD,MAAM,EAAE,MAAM,SAAS,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAEzE,QACE,qBAAC,QAAD;EACE;EACA,WAAW,GAAG,MAAM,EAAE,UAAU;EAChC,aAAW;EACX,aAAU;EACV,GAAI;YALN,CAOE,oBAAC,eAAD;GACE,W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;GAAM,WAAU;aAAkB;GAAW,GAC7C,oBAAC,eAAD;GACE,aAAU;GACV,MAAM;GACN,aAAa;GACb,EACa;;;;;;AC9CrB,MAAM,6BAA6B,GAAG;CACpC,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAeF,MAAM,sBAAsB,EAC1B,WACA,MACA,GAAG,YAC0B;CAC7B,MAAM,eAAe,0BAA0B,KAAK;AAEpD,QACE,qBAAC,gBAAD;EACE,cAAW;EACX,WAAW,GACT,2BAA2B,EAAE,MAAM,cAAc,CAAC,EAClD,UACD;EACD,aAAW;EACX,MAAK;EACL,MAAM;EACN,GAAI;YATN,CAWE,oBAAC,eAAD;GACE,aAAU;GACV,MAAM;GACN,aAAa;GACb,GACF,oBAAC,QAAD;GAAM,WAAU;aAAkB;GAAe,EAClC;;;;;;AC5CrB,MAAM,cAAc,EAClB,WACA,MAAM,cACN,GAAG,YACkB;CACrB,MAAM,OAAO,iBAAiB,aAAa;CAC3C,MAAM,eAAe,eAAe,EAAE,MAAM,GAAG,CAAC,KAAK,CAAC;AAEtD,QACE,oBAAC,sBAAsB,UAAvB;EAAgC,OAAO;YACrC,oBAAC,OAAD;GACE,cAAW;GACX,WAAW,GAAG,sCAAsC,UAAU;GAC9D,aAAW;GACX,aAAU;GACV,GAAI;GACJ;EAC6B;;AAIrC,WAAW,UAAU;AACrB,WAAW,WAAW;AACtB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,WAAW"}
|
package/dist/ui/pill.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as ActionIcon } from "../action-icon-UjYZjXrB.js";
|
|
2
2
|
import { Badge } from "./badge.js";
|
|
3
|
-
import { r as AvatarImage } from "../avatar-
|
|
3
|
+
import { r as AvatarImage } from "../avatar-4S7I72CH.js";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
import { HugeiconsIcon, HugeiconsProps } from "@hugeicons/react";
|
|
@@ -27,7 +27,7 @@ declare const PillAvatarGroup: ({
|
|
|
27
27
|
}: PillAvatarGroupProps) => react_jsx_runtime0.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/ui/pill/pill-button.d.ts
|
|
30
|
-
type PillButtonProps = ComponentProps<typeof
|
|
30
|
+
type PillButtonProps = ComponentProps<typeof ActionIcon>;
|
|
31
31
|
declare const PillButton: ({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
package/dist/ui/pill.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pill.d.ts","names":[],"sources":["../../src/ui/pill/pill-avatar.tsx","../../src/ui/pill/pill-avatar-group.tsx","../../src/ui/pill/pill-button.tsx","../../src/ui/pill/pill-delta.tsx","../../src/ui/pill/pill-icon.tsx","../../src/ui/pill/pill-indicator.tsx","../../src/ui/pill/pill-status.tsx","../../src/ui/pill/pill.tsx"],"mappings":";;;;;;;;KAKY,eAAA,GAAkB,cAAA,QAAsB,WAAA;EAClD,QAAA;AAAA;AAAA,cAGW,UAAA;EAAc,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAIxB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCVN,oBAAA;EACV,QAAA,EAAU,SAAA;EACV,SAAA;AAAA,IACE,cAAA;AAAA,cAES,eAAA;EAAmB,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAI7B,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCPX,eAAA,GAAkB,cAAA,QAAsB,
|
|
1
|
+
{"version":3,"file":"pill.d.ts","names":[],"sources":["../../src/ui/pill/pill-avatar.tsx","../../src/ui/pill/pill-avatar-group.tsx","../../src/ui/pill/pill-button.tsx","../../src/ui/pill/pill-delta.tsx","../../src/ui/pill/pill-icon.tsx","../../src/ui/pill/pill-indicator.tsx","../../src/ui/pill/pill-status.tsx","../../src/ui/pill/pill.tsx"],"mappings":";;;;;;;;KAKY,eAAA,GAAkB,cAAA,QAAsB,WAAA;EAClD,QAAA;AAAA;AAAA,cAGW,UAAA;EAAc,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAIxB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCVN,oBAAA;EACV,QAAA,EAAU,SAAA;EACV,SAAA;AAAA,IACE,cAAA;AAAA,cAES,eAAA;EAAmB,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAI7B,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCPX,eAAA,GAAkB,cAAA,QAAsB,UAAA;AAAA,cAEvC,UAAA;EAAc,SAAA;EAAA,GAAA;AAAA,GAAyB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCClD,cAAA;EACf,SAAA;EACA,KAAA;AAAA;AAAA,cAiBW,SAAA;EAAa,SAAA;EAAA;AAAA,GAAsB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCtBlD,aAAA;EACV,IAAA,EAAM,WAAA,CAAY,cAAA;EAClB,SAAA;AAAA,IACE,cAAA,QAAsB,aAAA;AAAA,cAEb,QAAA;EAAY,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAA+B,aAAA,KAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCRpD,kBAAA;EACf,OAAA;EACA,KAAA;AAAA;AAAA,cAGW,aAAA;EAAiB,OAAA;EAAA;AAAA,GAG3B,kBAAA,KAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCPT,eAAA;EACV,QAAA,EAAU,SAAA;EACV,SAAA;AAAA,IACE,cAAA;AAAA,cAES,UAAA;EAAc,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAIxB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCEN,SAAA,GAAY,cAAA,QAAsB,KAAA;AAAA,cAExC,IAAA;EAAA;;;;KAAsD,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/pill.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as AvatarFallback, n as AvatarImage, t as Avatar } from "../avatar-
|
|
3
|
+
import { t as Badge } from "../badge-DB40swlt.js";
|
|
4
|
+
import { ActionIcon } from "./action-icon.js";
|
|
5
|
+
import { a as AvatarFallback, n as AvatarImage, t as Avatar } from "../avatar-C3vF6E7s.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { cn, tv } from "tailwind-variants";
|
|
8
8
|
import { ArrowDown01Icon, ArrowUp01Icon, MinusSignIcon } from "@hugeicons/core-free-icons";
|
|
@@ -24,9 +24,9 @@ const PillAvatarGroup = ({ children, className, ...props }) => /* @__PURE__ */ j
|
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/ui/pill/pill-button.tsx
|
|
27
|
-
const PillButton = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
27
|
+
const PillButton = ({ className, ...props }) => /* @__PURE__ */ jsx(ActionIcon, {
|
|
28
28
|
className: cn("cursor-clickable hover:bg-foreground/5 -my-2 -mr-2 size-6 rounded-full p-0.5 group-data-[size=lg]/badge:-my-2.5 group-data-[size=lg]/badge:-mr-2.5 group-data-[size=lg]/badge:size-7 group-data-[size=md]/badge:-my-2 group-data-[size=md]/badge:-mr-2 group-data-[size=md]/badge:size-6 group-data-[size=sm]/badge:-my-1.5 group-data-[size=sm]/badge:-mr-1.5 group-data-[size=sm]/badge:size-6 group-data-[size=xl]/badge:-my-3 group-data-[size=xl]/badge:-mr-3 group-data-[size=xl]/badge:size-8 group-data-[size=xs]/badge:-my-1.5 group-data-[size=xs]/badge:-mr-1.5 group-data-[size=xs]/badge:size-5", className),
|
|
29
|
-
size: "
|
|
29
|
+
size: "md",
|
|
30
30
|
variant: "ghost",
|
|
31
31
|
...props
|
|
32
32
|
});
|