@codefast/ui 0.0.64 → 0.0.66
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/dist/{chunk-ZMF2SRE5.js → chunk-26W5NJTU.js} +1 -1
- package/dist/chunk-26W5NJTU.js.map +1 -0
- package/dist/chunk-3COHZ24E.cjs +2 -0
- package/dist/chunk-3COHZ24E.cjs.map +1 -0
- package/dist/chunk-4MTN7WZ2.cjs +2 -0
- package/dist/chunk-4MTN7WZ2.cjs.map +1 -0
- package/dist/chunk-5QETIFO4.js +2 -0
- package/dist/chunk-5QETIFO4.js.map +1 -0
- package/dist/{chunk-WECV77JD.cjs → chunk-5RJANBDJ.cjs} +1 -1
- package/dist/chunk-5RJANBDJ.cjs.map +1 -0
- package/dist/chunk-6UQKMUZG.cjs +2 -0
- package/dist/chunk-6UQKMUZG.cjs.map +1 -0
- package/dist/chunk-AVEDWLNQ.js +2 -0
- package/dist/chunk-AVEDWLNQ.js.map +1 -0
- package/dist/{chunk-YLE5XFEO.cjs → chunk-EW7DAPDC.cjs} +1 -1
- package/dist/chunk-EW7DAPDC.cjs.map +1 -0
- package/dist/chunk-HDHZESSG.js +2 -0
- package/dist/chunk-HDHZESSG.js.map +1 -0
- package/dist/{chunk-GCHNSK5O.cjs → chunk-JMM2MTPI.cjs} +1 -1
- package/dist/chunk-JMM2MTPI.cjs.map +1 -0
- package/dist/{chunk-WRO3QIWH.js → chunk-JNOLIDCD.js} +1 -1
- package/dist/chunk-JNOLIDCD.js.map +1 -0
- package/dist/{chunk-F5TIIJJJ.cjs → chunk-LOJBMYTH.cjs} +1 -1
- package/dist/chunk-LOJBMYTH.cjs.map +1 -0
- package/dist/{chunk-A5ILA637.js → chunk-RBP4PBCK.js} +1 -1
- package/dist/chunk-RBP4PBCK.js.map +1 -0
- package/dist/{chunk-L7IASKCH.js → chunk-RVGKUNXC.js} +1 -1
- package/dist/{chunk-L7IASKCH.js.map → chunk-RVGKUNXC.js.map} +1 -1
- package/dist/{chunk-72NPDP3X.cjs → chunk-T3G5USVY.cjs} +1 -1
- package/dist/chunk-T3G5USVY.cjs.map +1 -0
- package/dist/chunk-VDVLCSO4.js +2 -0
- package/dist/chunk-VDVLCSO4.js.map +1 -0
- package/dist/{chunk-2OBTJ7SD.cjs → chunk-WKKCZQNO.cjs} +2 -2
- package/dist/chunk-WKKCZQNO.cjs.map +1 -0
- package/dist/{chunk-FNQFZJUG.js → chunk-WQFHFTYS.js} +1 -1
- package/dist/chunk-WQFHFTYS.js.map +1 -0
- package/dist/react/accordion.cjs.map +1 -1
- package/dist/react/accordion.js.map +1 -1
- package/dist/react/alert-dialog.cjs +1 -1
- package/dist/react/alert-dialog.cjs.map +1 -1
- package/dist/react/alert-dialog.d.cts +3 -1
- package/dist/react/alert-dialog.d.ts +3 -1
- package/dist/react/alert-dialog.js +1 -1
- package/dist/react/alert-dialog.js.map +1 -1
- package/dist/react/alert.cjs.map +1 -1
- package/dist/react/alert.js.map +1 -1
- package/dist/react/avatar.cjs.map +1 -1
- package/dist/react/avatar.js.map +1 -1
- package/dist/react/blockquote.cjs.map +1 -1
- package/dist/react/blockquote.js.map +1 -1
- package/dist/react/box.cjs.map +1 -1
- package/dist/react/box.js.map +1 -1
- package/dist/react/breadcrumb.cjs +1 -1
- package/dist/react/breadcrumb.cjs.map +1 -1
- package/dist/react/breadcrumb.js +1 -1
- package/dist/react/breadcrumb.js.map +1 -1
- package/dist/react/button.cjs +1 -1
- package/dist/react/button.js +1 -1
- package/dist/react/calendar.cjs +1 -1
- package/dist/react/calendar.js +1 -1
- package/dist/react/card.cjs.map +1 -1
- package/dist/react/card.js.map +1 -1
- package/dist/react/carousel.cjs +1 -1
- package/dist/react/carousel.cjs.map +1 -1
- package/dist/react/carousel.js +1 -1
- package/dist/react/carousel.js.map +1 -1
- package/dist/react/checkbox-cards.cjs +1 -1
- package/dist/react/checkbox-cards.cjs.map +1 -1
- package/dist/react/checkbox-cards.js +1 -1
- package/dist/react/checkbox-cards.js.map +1 -1
- package/dist/react/checkbox-group.cjs +1 -1
- package/dist/react/checkbox-group.cjs.map +1 -1
- package/dist/react/checkbox-group.js +1 -1
- package/dist/react/checkbox-group.js.map +1 -1
- package/dist/react/checkbox-group.primitive.cjs +1 -1
- package/dist/react/checkbox-group.primitive.js +1 -1
- package/dist/react/checkbox.cjs +1 -1
- package/dist/react/checkbox.cjs.map +1 -1
- package/dist/react/checkbox.js +1 -1
- package/dist/react/checkbox.js.map +1 -1
- package/dist/react/code.cjs.map +1 -1
- package/dist/react/code.js.map +1 -1
- package/dist/react/collapsible.cjs.map +1 -1
- package/dist/react/collapsible.js.map +1 -1
- package/dist/react/command.cjs +1 -1
- package/dist/react/command.cjs.map +1 -1
- package/dist/react/command.js +1 -1
- package/dist/react/command.js.map +1 -1
- package/dist/react/container.cjs.map +1 -1
- package/dist/react/container.js.map +1 -1
- package/dist/react/context-menu.cjs.map +1 -1
- package/dist/react/context-menu.js.map +1 -1
- package/dist/react/data-table.cjs +1 -1
- package/dist/react/data-table.js +1 -1
- package/dist/react/dialog.cjs +1 -1
- package/dist/react/dialog.d.cts +1 -1
- package/dist/react/dialog.d.ts +1 -1
- package/dist/react/dialog.js +1 -1
- package/dist/react/drawer.cjs.map +1 -1
- package/dist/react/drawer.js.map +1 -1
- package/dist/react/dropdown-menu.cjs +1 -1
- package/dist/react/dropdown-menu.js +1 -1
- package/dist/react/em.cjs.map +1 -1
- package/dist/react/em.js.map +1 -1
- package/dist/react/form.cjs +1 -1
- package/dist/react/form.cjs.map +1 -1
- package/dist/react/form.js +1 -1
- package/dist/react/form.js.map +1 -1
- package/dist/react/heading.cjs.map +1 -1
- package/dist/react/heading.js.map +1 -1
- package/dist/react/hover-card.cjs.map +1 -1
- package/dist/react/hover-card.js.map +1 -1
- package/dist/react/input-otp.cjs +1 -1
- package/dist/react/input-otp.cjs.map +1 -1
- package/dist/react/input-otp.js +1 -1
- package/dist/react/input-otp.js.map +1 -1
- package/dist/react/input.cjs +1 -1
- package/dist/react/input.cjs.map +1 -1
- package/dist/react/input.d.cts +113 -34
- package/dist/react/input.d.ts +113 -34
- package/dist/react/input.js +1 -1
- package/dist/react/input.js.map +1 -1
- package/dist/react/kbd.cjs.map +1 -1
- package/dist/react/kbd.js.map +1 -1
- package/dist/react/label.cjs +1 -1
- package/dist/react/label.js +1 -1
- package/dist/react/menubar.cjs.map +1 -1
- package/dist/react/menubar.js.map +1 -1
- package/dist/react/navigation-menu.cjs.map +1 -1
- package/dist/react/navigation-menu.js.map +1 -1
- package/dist/react/pagination.cjs +1 -1
- package/dist/react/pagination.cjs.map +1 -1
- package/dist/react/pagination.js +1 -1
- package/dist/react/pagination.js.map +1 -1
- package/dist/react/popover.cjs.map +1 -1
- package/dist/react/popover.js.map +1 -1
- package/dist/react/pre.cjs.map +1 -1
- package/dist/react/pre.js.map +1 -1
- package/dist/react/progress.cjs.map +1 -1
- package/dist/react/progress.js.map +1 -1
- package/dist/react/quote.cjs.map +1 -1
- package/dist/react/quote.js.map +1 -1
- package/dist/react/radio-cards.cjs +1 -1
- package/dist/react/radio-cards.cjs.map +1 -1
- package/dist/react/radio-cards.js +1 -1
- package/dist/react/radio-cards.js.map +1 -1
- package/dist/react/radio-group.cjs.map +1 -1
- package/dist/react/radio-group.js.map +1 -1
- package/dist/react/radio.cjs.map +1 -1
- package/dist/react/radio.js.map +1 -1
- package/dist/react/scroll-area.cjs.map +1 -1
- package/dist/react/scroll-area.js.map +1 -1
- package/dist/react/section.cjs.map +1 -1
- package/dist/react/section.js.map +1 -1
- package/dist/react/select.cjs +1 -1
- package/dist/react/select.js +1 -1
- package/dist/react/separator.cjs.map +1 -1
- package/dist/react/separator.js.map +1 -1
- package/dist/react/sheet.cjs +1 -1
- package/dist/react/sheet.cjs.map +1 -1
- package/dist/react/sheet.js +1 -1
- package/dist/react/sheet.js.map +1 -1
- package/dist/react/slider.cjs.map +1 -1
- package/dist/react/slider.js.map +1 -1
- package/dist/react/spinner.cjs +1 -1
- package/dist/react/spinner.js +1 -1
- package/dist/react/strong.cjs.map +1 -1
- package/dist/react/strong.js.map +1 -1
- package/dist/react/switch.cjs +1 -1
- package/dist/react/switch.cjs.map +1 -1
- package/dist/react/switch.js +1 -1
- package/dist/react/switch.js.map +1 -1
- package/dist/react/table.cjs.map +1 -1
- package/dist/react/table.js.map +1 -1
- package/dist/react/tabs.cjs.map +1 -1
- package/dist/react/tabs.js.map +1 -1
- package/dist/react/text-input.cjs +2 -0
- package/dist/react/text-input.cjs.map +1 -0
- package/dist/react/text-input.d.cts +11 -0
- package/dist/react/text-input.d.ts +11 -0
- package/dist/react/text-input.js +2 -0
- package/dist/react/text-input.js.map +1 -0
- package/dist/react/text.cjs.map +1 -1
- package/dist/react/text.js.map +1 -1
- package/dist/react/textarea.cjs +1 -1
- package/dist/react/textarea.cjs.map +1 -1
- package/dist/react/textarea.js +1 -1
- package/dist/react/textarea.js.map +1 -1
- package/dist/react/toggle-group.cjs +1 -1
- package/dist/react/toggle-group.cjs.map +1 -1
- package/dist/react/toggle-group.js +1 -1
- package/dist/react/toggle-group.js.map +1 -1
- package/dist/react/toggle.cjs +1 -1
- package/dist/react/toggle.js +1 -1
- package/dist/react/tooltip.cjs.map +1 -1
- package/dist/react/tooltip.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +8 -2
- package/src/react/accordion.tsx +9 -7
- package/src/react/alert-dialog.tsx +55 -20
- package/src/react/alert.tsx +11 -9
- package/src/react/avatar.tsx +13 -11
- package/src/react/blockquote.tsx +2 -2
- package/src/react/box.tsx +2 -2
- package/src/react/breadcrumb.tsx +33 -27
- package/src/react/button.tsx +3 -4
- package/src/react/card.tsx +21 -15
- package/src/react/carousel.tsx +10 -10
- package/src/react/checkbox-cards.tsx +8 -6
- package/src/react/checkbox-group.primitive.tsx +12 -6
- package/src/react/checkbox-group.tsx +7 -5
- package/src/react/checkbox.tsx +3 -3
- package/src/react/code.tsx +2 -2
- package/src/react/collapsible.tsx +2 -2
- package/src/react/command.tsx +46 -36
- package/src/react/container.tsx +6 -4
- package/src/react/context-menu.tsx +22 -18
- package/src/react/dialog.tsx +13 -9
- package/src/react/drawer.tsx +10 -6
- package/src/react/dropdown-menu.tsx +20 -16
- package/src/react/em.tsx +2 -2
- package/src/react/form.tsx +38 -22
- package/src/react/heading.tsx +6 -4
- package/src/react/hover-card.tsx +7 -5
- package/src/react/input-otp.tsx +40 -34
- package/src/react/input.tsx +115 -12
- package/src/react/kbd.tsx +2 -2
- package/src/react/label.tsx +2 -2
- package/src/react/menubar.tsx +48 -42
- package/src/react/navigation-menu.tsx +12 -12
- package/src/react/pagination.tsx +5 -5
- package/src/react/popover.tsx +7 -5
- package/src/react/pre.tsx +2 -2
- package/src/react/progress.tsx +2 -2
- package/src/react/quote.tsx +2 -2
- package/src/react/radio-cards.tsx +16 -14
- package/src/react/radio-group.tsx +18 -16
- package/src/react/radio.tsx +16 -14
- package/src/react/scroll-area.tsx +4 -4
- package/src/react/section.tsx +2 -2
- package/src/react/select.tsx +32 -30
- package/src/react/separator.tsx +2 -2
- package/src/react/sheet.tsx +15 -7
- package/src/react/slider.tsx +2 -2
- package/src/react/spinner.tsx +2 -2
- package/src/react/strong.tsx +2 -2
- package/src/react/switch.tsx +3 -3
- package/src/react/table.tsx +23 -17
- package/src/react/tabs.tsx +6 -6
- package/src/react/text-input.tsx +36 -0
- package/src/react/text.tsx +2 -2
- package/src/react/textarea.tsx +3 -3
- package/src/react/toggle-group.tsx +7 -4
- package/src/react/toggle.tsx +2 -2
- package/src/react/tooltip.tsx +7 -5
- package/dist/chunk-2OBTJ7SD.cjs.map +0 -1
- package/dist/chunk-37XZ3LKY.cjs +0 -2
- package/dist/chunk-37XZ3LKY.cjs.map +0 -1
- package/dist/chunk-3OEPCFBF.cjs +0 -2
- package/dist/chunk-3OEPCFBF.cjs.map +0 -1
- package/dist/chunk-6AFJCDFU.js +0 -2
- package/dist/chunk-6AFJCDFU.js.map +0 -1
- package/dist/chunk-72NPDP3X.cjs.map +0 -1
- package/dist/chunk-7CHCTEST.js +0 -2
- package/dist/chunk-7CHCTEST.js.map +0 -1
- package/dist/chunk-A5ILA637.js.map +0 -1
- package/dist/chunk-F5TIIJJJ.cjs.map +0 -1
- package/dist/chunk-FNQFZJUG.js.map +0 -1
- package/dist/chunk-GCHNSK5O.cjs.map +0 -1
- package/dist/chunk-SHMTOJHM.js +0 -2
- package/dist/chunk-SHMTOJHM.js.map +0 -1
- package/dist/chunk-WECV77JD.cjs.map +0 -1
- package/dist/chunk-WRO3QIWH.js.map +0 -1
- package/dist/chunk-YLE5XFEO.cjs.map +0 -1
- package/dist/chunk-ZMF2SRE5.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenu\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuProps = React.ComponentProps<typeof DropdownMenuPrimitive.Root>;\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuTriggerProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSub\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup>;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubTriggerElement = React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>;\n\ninterface DropdownMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst DropdownMenuSubTrigger = React.forwardRef<DropdownMenuSubTriggerElement, DropdownMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm focus:outline-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n ),\n);\n\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubContentProps = DropdownMenuPrimitive.DropdownMenuSubContentProps;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n DropdownMenuSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\n\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuContentElement = React.ElementRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;\n\nconst DropdownMenuContent = React.forwardRef<DropdownMenuContentElement, DropdownMenuContentProps>(\n ({ className, sideOffset = 6, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-md border p-1 shadow-md',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n ),\n);\n\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuItemElement = React.ElementRef<typeof DropdownMenuPrimitive.Item>;\n\ninterface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<DropdownMenuItemElement, DropdownMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuCheckboxItemElement = React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>;\ntype DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<DropdownMenuCheckboxItemElement, DropdownMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n ),\n);\n\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioItemElement = React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>;\ntype DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;\n\nconst DropdownMenuRadioItem = React.forwardRef<DropdownMenuRadioItemElement, DropdownMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n ),\n);\n\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuLabelElement = React.ElementRef<typeof DropdownMenuPrimitive.Label>;\n\ninterface DropdownMenuLabelProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst DropdownMenuLabel = React.forwardRef<DropdownMenuLabelElement, DropdownMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSeparatorElement = React.ElementRef<typeof DropdownMenuPrimitive.Separator>;\ntype DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;\n\nconst DropdownMenuSeparator = React.forwardRef<DropdownMenuSeparatorElement, DropdownMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted -mx-1 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuShortcutProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): React.JSX.Element {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n type DropdownMenuProps,\n type DropdownMenuTriggerProps,\n type DropdownMenuContentProps,\n type DropdownMenuItemProps,\n type DropdownMenuCheckboxItemProps,\n type DropdownMenuRadioItemProps,\n type DropdownMenuLabelProps,\n type DropdownMenuSeparatorProps,\n type DropdownMenuShortcutProps,\n type DropdownMenuGroupProps,\n type DropdownMenuSubProps,\n type DropdownMenuSubContentProps,\n type DropdownMenuSubTriggerProps,\n type DropdownMenuRadioGroupProps,\n};\n"],"mappings":"wCAEA,UAAYA,MAAW,QACvB,UAAYC,MAA2B,gCACvC,OAAS,aAAAC,EAAW,oBAAAC,EAAkB,iBAAAC,MAAqB,wBAkDvD,OAUE,OAAAC,EAVF,QAAAC,MAAA,oBA1CJ,IAAMC,EAAqC,OAOrCC,EAA4C,UAO5CC,EAA0C,QAO1CC,EAAwC,MAOxCC,EAA+C,aAY/CC,EAA+B,aACnC,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IACzCX,EAAuB,aAAtB,CACC,IAAKW,EACL,UAAWC,EACT,6IACAH,GAAS,OACTD,CACF,EACC,GAAGE,EAEH,UAAAH,EACDR,EAACc,EAAA,CAAiB,UAAU,iBAAiB,GAC/C,CAEJ,EAEAP,EAAuB,YAAoC,aAAW,YAQtE,IAAMQ,EAA+B,aAGnC,CAAC,CAAE,UAAAN,EAAW,GAAGE,CAAM,EAAGC,IAC1BZ,EAAuB,SAAtB,CACC,SAAAA,EAAuB,aAAtB,CACC,IAAKY,EACL,UAAWC,EACT,gtBACAJ,CACF,EACC,GAAGE,EACN,EACF,CACD,EAEDI,EAAuB,YAAoC,aAAW,YAStE,IAAMC,EAA4B,aAChC,CAAC,CAAE,UAAAP,EAAW,WAAAQ,EAAa,EAAG,GAAGN,CAAM,EAAGC,IACxCZ,EAAuB,SAAtB,CACC,SAAAA,EAAuB,UAAtB,CACC,IAAKY,EACL,UAAWC,EACT,gtBACAJ,CACF,EACA,WAAYQ,EACX,GAAGN,EACN,EACF,CAEJ,EAEAK,EAAoB,YAAoC,UAAQ,YAYhE,IAAME,EAAyB,aAC7B,CAAC,CAAE,UAAAT,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAC/BZ,EAAuB,OAAtB,CACC,IAAKY,EACL,UAAWC,EACT,6NACAH,GAAS,OACTD,CACF,EACC,GAAGE,EACN,CAEJ,EAEAO,EAAiB,YAAoC,OAAK,YAS1D,IAAMC,EAAiC,aACrC,CAAC,CAAE,SAAAX,EAAU,UAAAC,EAAW,QAAAW,EAAS,GAAGT,CAAM,EAAGC,IAC3CX,EAAuB,eAAtB,CACC,IAAKW,EACL,QAASQ,EACT,UAAWP,EACT,kOACAJ,CACF,EACC,GAAGE,EAEJ,UAAAX,EAAC,QAAK,UAAU,4DACd,SAAAA,EAAuB,gBAAtB,CACC,SAAAA,EAACqB,EAAA,CAAU,UAAU,SAAS,EAChC,EACF,EACCb,GACH,CAEJ,EAEAW,EAAyB,YAAoC,eAAa,YAS1E,IAAMG,EAA8B,aAClC,CAAC,CAAE,SAAAd,EAAU,UAAAC,EAAW,GAAGE,CAAM,EAAGC,IAClCX,EAAuB,YAAtB,CACC,IAAKW,EACL,UAAWC,EACT,kOACAJ,CACF,EACC,GAAGE,EAEJ,UAAAX,EAAC,QAAK,UAAU,4DACd,SAAAA,EAAuB,gBAAtB,CACC,SAAAA,EAACuB,EAAA,CAAc,UAAU,sBAAsB,EACjD,EACF,EACCf,GACH,CAEJ,EAEAc,EAAsB,YAAoC,YAAU,YAYpE,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAf,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAC/BZ,EAAuB,QAAtB,CACC,IAAKY,EACL,UAAWC,EAAG,oCAAqCH,GAAS,OAAQD,CAAS,EAC5E,GAAGE,EACN,CAEJ,EAEAa,EAAkB,YAAoC,QAAM,YAS5D,IAAMC,EAA8B,aAClC,CAAC,CAAE,UAAAhB,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAuB,YAAtB,CACC,IAAKY,EACL,UAAWC,EAAG,2BAA4BJ,CAAS,EAClD,GAAGE,EACN,CAEJ,EAEAc,EAAsB,YAAoC,YAAU,YAQpE,SAASC,EAAqB,CAAE,UAAAjB,EAAW,GAAGE,CAAM,EAAiD,CACnG,OAAOX,EAAC,QAAK,UAAWa,EAAG,6CAA8CJ,CAAS,EAAI,GAAGE,EAAO,CAClG","names":["React","DropdownMenuPrimitive","CheckIcon","ChevronRightIcon","DotFilledIcon","jsx","jsxs","DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","children","className","inset","props","forwardedRef","cn","ChevronRightIcon","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","CheckIcon","DropdownMenuRadioItem","DotFilledIcon","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/accordion.tsx"],"names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","
|
|
1
|
+
{"version":3,"sources":["../../src/react/accordion.tsx"],"names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","forwardedRef","cn","AccordionTrigger","children","AccordionContent"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,mBAAAC,MAAuB,wBAmB5B,cAAAC,EAgBE,QAAAC,MAhBF,oBAXJ,IAAMC,EAA+B,OAS/BC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAoB,OAAnB,CAAwB,IAAKM,EAAc,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CAEjG,EAEAF,EAAc,YAAiC,OAAK,YASpD,IAAMK,EAAyB,aAC7B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAC,EAAoB,UAAnB,CACC,IAAKK,EACL,UAAWC,EAAG,0EAA2EH,CAAS,EACjG,GAAGC,EAEH,UAAAI,EACDT,EAACD,EAAA,CAAgB,UAAU,sFAAsF,GACnH,EACF,CAEJ,EAEAS,EAAiB,YAAiC,UAAQ,YAS1D,IAAME,EAAyB,aAC7B,CAAC,CAAE,SAAAD,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,UAAnB,CACC,IAAKM,EACL,UAAU,oHACT,GAAGD,EAEJ,SAAAL,EAAC,OAAI,UAAWO,EAAG,YAAaH,CAAS,EAAI,SAAAK,EAAS,EACxD,CAEJ,EAEAC,EAAiB,YAAiC,UAAQ","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDownIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Item ref={forwardedRef} className={cn('border-b', className)} {...props} />\n ),\n);\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={forwardedRef}\n className={cn('group flex flex-1 items-center justify-between py-4 text-sm font-medium', className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Content\n ref={forwardedRef}\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pb-4 pt-0', className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/accordion.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDownIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(({ className, ...props },
|
|
1
|
+
{"version":3,"sources":["../../src/react/accordion.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDownIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Item ref={forwardedRef} className={cn('border-b', className)} {...props} />\n ),\n);\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={forwardedRef}\n className={cn('group flex flex-1 items-center justify-between py-4 text-sm font-medium', className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Content\n ref={forwardedRef}\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pb-4 pt-0', className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,mBAAAC,MAAuB,wBAmB5B,cAAAC,EAgBE,QAAAC,MAhBF,oBAXJ,IAAMC,EAA+B,OAS/BC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAoB,OAAnB,CAAwB,IAAKM,EAAc,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CAEjG,EAEAF,EAAc,YAAiC,OAAK,YASpD,IAAMK,EAAyB,aAC7B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAC,EAAoB,UAAnB,CACC,IAAKK,EACL,UAAWC,EAAG,0EAA2EH,CAAS,EACjG,GAAGC,EAEH,UAAAI,EACDT,EAACU,EAAA,CAAgB,UAAU,sFAAsF,GACnH,EACF,CAEJ,EAEAF,EAAiB,YAAiC,UAAQ,YAS1D,IAAMG,EAAyB,aAC7B,CAAC,CAAE,SAAAF,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,UAAnB,CACC,IAAKM,EACL,UAAU,oHACT,GAAGD,EAEJ,SAAAL,EAAC,OAAI,UAAWO,EAAG,YAAaH,CAAS,EAAI,SAAAK,EAAS,EACxD,CAEJ,EAEAE,EAAiB,YAAiC,UAAQ","names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","forwardedRef","cn","AccordionTrigger","children","ChevronDownIcon","AccordionContent"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkWKKCZQNOcjs = require('../chunk-WKKCZQNO.cjs');require('../chunk-LOJBMYTH.cjs');var _chunkNU6SK3FCcjs = require('../chunk-NU6SK3FC.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var e = _interopRequireWildcard(_reactalertdialog);var _jsxruntime = require('react/jsx-runtime');var P=e.Root,f= exports.AlertDialogTrigger =e.Trigger,p= exports.AlertDialogContent =r.forwardRef(({className:t,...i},l)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:_jsxruntime.jsx.call(void 0, e.Content,{ref:l,className:_chunkNU6SK3FCcjs.a.call(void 0, "bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",t),...i})})}));p.displayName=e.Content.displayName;function d({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkNU6SK3FCcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function y({className:t,...i}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkNU6SK3FCcjs.a.call(void 0, "overflow-auto px-6 py-2",t),...i})}function R({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkNU6SK3FCcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var s=r.forwardRef(({className:t,...i},l)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:l,className:_chunkNU6SK3FCcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),...i}));s.displayName=e.Title.displayName;var m=r.forwardRef(({className:t,...i},l)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:l,className:_chunkNU6SK3FCcjs.a.call(void 0, "text-muted-foreground text-sm",t),...i}));m.displayName=e.Description.displayName;var g=r.forwardRef(({className:t,...i},l)=>_jsxruntime.jsx.call(void 0, e.Action,{ref:l,className:_chunkWKKCZQNOcjs.a.call(void 0, {className:t}),...i}));g.displayName=e.Action.displayName;var A=r.forwardRef(({className:t,...i},l)=>_jsxruntime.jsx.call(void 0, e.Cancel,{ref:l,className:_chunkWKKCZQNOcjs.a.call(void 0, {variant:"outline",className:t}),...i}));A.displayName=e.Cancel.displayName;exports.AlertDialog = P; exports.AlertDialogAction = g; exports.AlertDialogBody = y; exports.AlertDialogCancel = A; exports.AlertDialogContent = p; exports.AlertDialogDescription = m; exports.AlertDialogFooter = R; exports.AlertDialogHeader = d; exports.AlertDialogTitle = s; exports.AlertDialogTrigger = f;
|
|
2
2
|
//# sourceMappingURL=alert-dialog.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"names":["React","AlertDialogPrimitive","jsx","
|
|
1
|
+
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"names":["React","AlertDialogPrimitive","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"0HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA6B9B,cAAAC,MAAA,oBApBR,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CAA6B,UAAU,mPACtC,SAAAA,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,yVACAH,CACF,EACC,GAAGC,EACN,EACF,EACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,yEAA0EH,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAgB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA4C,CACzF,OAAOL,EAAC,QAAK,UAAWO,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC/E,CAQA,SAASK,EAAkB,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,iFAAkFH,CAAS,EACxG,GAAGC,EACN,CAEJ,CASA,IAAMM,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,QAArB,CACC,IAAKM,EACL,UAAWC,EAAG,oDAAqDH,CAAS,EAC3E,GAAGC,EACN,CAEJ,EAEAM,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,cAArB,CACC,IAAKM,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAO,EAAuB,YAAmC,cAAY,YAStE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CAA4B,IAAKM,EAAc,UAAWQ,EAAe,CAAE,UAAAV,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEzG,EAEAQ,EAAkB,YAAmC,SAAO,YAS5D,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAX,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWQ,EAAe,CAAE,QAAS,UAAW,UAAAV,CAAU,CAAC,EAC1D,GAAGC,EACN,CAEJ,EAEAU,EAAkB,YAAmC,SAAO","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '../lib/utils';\nimport { buttonVariants } from './button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action ref={forwardedRef} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
|
|
@@ -9,6 +9,8 @@ type AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialog
|
|
|
9
9
|
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
type AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
11
11
|
declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element;
|
|
12
|
+
type AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
declare function AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element;
|
|
12
14
|
type AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
13
15
|
declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element;
|
|
14
16
|
type AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;
|
|
@@ -20,4 +22,4 @@ declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialo
|
|
|
20
22
|
type AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;
|
|
21
23
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
22
24
|
|
|
23
|
-
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
25
|
+
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
@@ -9,6 +9,8 @@ type AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialog
|
|
|
9
9
|
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
type AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
11
11
|
declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element;
|
|
12
|
+
type AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
declare function AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element;
|
|
12
14
|
type AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
13
15
|
declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element;
|
|
14
16
|
type AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;
|
|
@@ -20,4 +22,4 @@ declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialo
|
|
|
20
22
|
type AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;
|
|
21
23
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
22
24
|
|
|
23
|
-
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
25
|
+
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a as n}from"../chunk-
|
|
1
|
+
"use client";import{a as n}from"../chunk-VDVLCSO4.js";import"../chunk-RBP4PBCK.js";import{a}from"../chunk-5UXVZTFG.js";import*as r from"react";import*as e from"@radix-ui/react-alert-dialog";import{jsx as o}from"react/jsx-runtime";var P=e.Root,f=e.Trigger,p=r.forwardRef(({className:t,...i},l)=>o(e.Portal,{children:o(e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:o(e.Content,{ref:l,className:a("bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",t),...i})})}));p.displayName=e.Content.displayName;function d({className:t,...i}){return o("div",{className:a("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function y({className:t,...i}){return o("main",{className:a("overflow-auto px-6 py-2",t),...i})}function R({className:t,...i}){return o("div",{className:a("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var s=r.forwardRef(({className:t,...i},l)=>o(e.Title,{ref:l,className:a("text-lg font-semibold leading-none tracking-tight",t),...i}));s.displayName=e.Title.displayName;var m=r.forwardRef(({className:t,...i},l)=>o(e.Description,{ref:l,className:a("text-muted-foreground text-sm",t),...i}));m.displayName=e.Description.displayName;var g=r.forwardRef(({className:t,...i},l)=>o(e.Action,{ref:l,className:n({className:t}),...i}));g.displayName=e.Action.displayName;var A=r.forwardRef(({className:t,...i},l)=>o(e.Cancel,{ref:l,className:n({variant:"outline",className:t}),...i}));A.displayName=e.Cancel.displayName;export{P as AlertDialog,g as AlertDialogAction,y as AlertDialogBody,A as AlertDialogCancel,p as AlertDialogContent,m as AlertDialogDescription,R as AlertDialogFooter,d as AlertDialogHeader,s as AlertDialogTitle,f as AlertDialogTrigger};
|
|
2
2
|
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '../lib/utils';\nimport { buttonVariants } from './button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props },
|
|
1
|
+
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '../lib/utils';\nimport { buttonVariants } from './button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action ref={forwardedRef} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"uHAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA6B9B,cAAAC,MAAA,oBApBR,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CAA6B,UAAU,mPACtC,SAAAA,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,yVACAH,CACF,EACC,GAAGC,EACN,EACF,EACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,yEAA0EH,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAgB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA4C,CACzF,OAAOL,EAAC,QAAK,UAAWO,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC/E,CAQA,SAASK,EAAkB,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,iFAAkFH,CAAS,EACxG,GAAGC,EACN,CAEJ,CASA,IAAMM,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,QAArB,CACC,IAAKM,EACL,UAAWC,EAAG,oDAAqDH,CAAS,EAC3E,GAAGC,EACN,CAEJ,EAEAM,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,cAArB,CACC,IAAKM,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAO,EAAuB,YAAmC,cAAY,YAStE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CAA4B,IAAKM,EAAc,UAAWQ,EAAe,CAAE,UAAAV,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEzG,EAEAQ,EAAkB,YAAmC,SAAO,YAS5D,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAX,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWQ,EAAe,CAAE,QAAS,UAAW,UAAAV,CAAU,CAAC,EAC1D,GAAGC,EACN,CAEJ,EAEAU,EAAkB,YAAmC,SAAO","names":["React","AlertDialogPrimitive","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"]}
|
package/dist/react/alert.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/alert.tsx"],"names":["React","tv","jsx","alertVariants","Alert","className","variant","props","
|
|
1
|
+
{"version":3,"sources":["../../src/react/alert.tsx"],"names":["React","tv","jsx","alertVariants","Alert","className","variant","props","forwardedRef","AlertTitle","children","cn","AlertDescription"],"mappings":"0CAAA,UAAYA,MAAW,QACvB,OAAS,MAAAC,MAA6B,oBA8BpC,cAAAC,MAAA,oBAvBF,IAAMC,EAAgBF,EAAG,CACvB,KAAM,2IACN,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YAAa,yFACf,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAWKG,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAC1FN,EAAC,OAAI,IAAKM,EAAc,UAAWL,EAAc,CAAE,QAAAG,EAAS,UAAAD,CAAU,CAAC,EAAG,KAAK,QAAS,GAAGE,EAAO,CACnG,EAEDH,EAAM,YAAc,QASpB,IAAMK,EAAmB,aACvB,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IAClCN,EAAC,MAAG,IAAKM,EAAc,UAAWG,EAAG,+CAAgDN,CAAS,EAAI,GAAGE,EAClG,SAAAG,EACH,CAEJ,EAEAD,EAAW,YAAc,aASzB,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBN,EAAC,OAAI,IAAKM,EAAc,UAAWG,EAAG,gCAAiCN,CAAS,EAAI,GAAGE,EAAO,CAElG,EAEAK,EAAiB,YAAc","sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = tv({\n base: '[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',\n variants: {\n variant: {\n default: 'bg-background text-foreground [&>svg]:text-foreground',\n destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={alertVariants({ variant, className })} role=\"alert\" {...props} />\n));\n\nAlert.displayName = 'Alert';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h5 ref={forwardedRef} className={cn('mb-1 font-medium leading-none tracking-tight', className)} {...props}>\n {children}\n </h5>\n ),\n);\n\nAlertTitle.displayName = 'AlertTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('text-sm [&_p]:leading-relaxed', className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = 'AlertDescription';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"]}
|
package/dist/react/alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/alert.tsx"],"sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = tv({\n base: '[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',\n variants: {\n variant: {\n default: 'bg-background text-foreground [&>svg]:text-foreground',\n destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props },
|
|
1
|
+
{"version":3,"sources":["../../src/react/alert.tsx"],"sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = tv({\n base: '[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',\n variants: {\n variant: {\n default: 'bg-background text-foreground [&>svg]:text-foreground',\n destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={alertVariants({ variant, className })} role=\"alert\" {...props} />\n));\n\nAlert.displayName = 'Alert';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h5 ref={forwardedRef} className={cn('mb-1 font-medium leading-none tracking-tight', className)} {...props}>\n {children}\n </h5>\n ),\n);\n\nAlertTitle.displayName = 'AlertTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('text-sm [&_p]:leading-relaxed', className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = 'AlertDescription';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"],"mappings":"yCAAA,UAAYA,MAAW,QACvB,OAAS,MAAAC,MAA6B,oBA8BpC,cAAAC,MAAA,oBAvBF,IAAMC,EAAgBC,EAAG,CACvB,KAAM,2IACN,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YAAa,yFACf,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAWKC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAC1FP,EAAC,OAAI,IAAKO,EAAc,UAAWN,EAAc,CAAE,QAAAI,EAAS,UAAAD,CAAU,CAAC,EAAG,KAAK,QAAS,GAAGE,EAAO,CACnG,EAEDH,EAAM,YAAc,QASpB,IAAMK,EAAmB,aACvB,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IAClCP,EAAC,MAAG,IAAKO,EAAc,UAAWG,EAAG,+CAAgDN,CAAS,EAAI,GAAGE,EAClG,SAAAG,EACH,CAEJ,EAEAD,EAAW,YAAc,aASzB,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBP,EAAC,OAAI,IAAKO,EAAc,UAAWG,EAAG,gCAAiCN,CAAS,EAAI,GAAGE,EAAO,CAElG,EAEAK,EAAiB,YAAc","names":["React","tv","jsx","alertVariants","tv","Alert","className","variant","props","forwardedRef","AlertTitle","children","cn","AlertDescription"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/avatar.tsx"],"names":["React","AvatarPrimitive","jsx","Avatar","className","props","
|
|
1
|
+
{"version":3,"sources":["../../src/react/avatar.tsx"],"names":["React","AvatarPrimitive","jsx","Avatar","className","props","forwardedRef","cn","AvatarImage","AvatarFallback"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBAW/B,cAAAC,MAAA,oBADF,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,8DAA+DH,CAAS,EACrF,GAAGC,EACN,CACD,EAEDF,EAAO,YAA8B,OAAK,YAS1C,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAiB,QAAhB,CAAsB,IAAKI,EAAc,UAAWC,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC3G,EAEDG,EAAY,YAA8B,QAAM,YAShD,IAAMC,EAAuB,aAC3B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAiB,WAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,mEAAoEH,CAAS,EAC1F,GAAGC,EACN,CAEJ,EAEAI,EAAe,YAA8B,WAAS","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\ntype AvatarElement = React.ElementRef<typeof AvatarPrimitive.Root>;\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;\n\nconst Avatar = React.forwardRef<AvatarElement, AvatarProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Root\n ref={forwardedRef}\n className={cn('relative flex size-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarImage\n * -------------------------------------------------------------------------- */\n\ntype AvatarImageElement = React.ElementRef<typeof AvatarPrimitive.Image>;\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nconst AvatarImage = React.forwardRef<AvatarImageElement, AvatarImageProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Image ref={forwardedRef} className={cn('aspect-square size-full', className)} {...props} />\n));\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarFallback\n * -------------------------------------------------------------------------- */\n\ntype AvatarFallbackElement = React.ElementRef<typeof AvatarPrimitive.Fallback>;\ntype AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\n\nconst AvatarFallback = React.forwardRef<AvatarFallbackElement, AvatarFallbackProps>(\n ({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Fallback\n ref={forwardedRef}\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n {...props}\n />\n ),\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Avatar, AvatarImage, AvatarFallback, type AvatarProps, type AvatarImageProps, type AvatarFallbackProps };\n"]}
|
package/dist/react/avatar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/avatar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\ntype AvatarElement = React.ElementRef<typeof AvatarPrimitive.Root>;\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;\n\nconst Avatar = React.forwardRef<AvatarElement, AvatarProps>(({ className, ...props },
|
|
1
|
+
{"version":3,"sources":["../../src/react/avatar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\ntype AvatarElement = React.ElementRef<typeof AvatarPrimitive.Root>;\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;\n\nconst Avatar = React.forwardRef<AvatarElement, AvatarProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Root\n ref={forwardedRef}\n className={cn('relative flex size-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarImage\n * -------------------------------------------------------------------------- */\n\ntype AvatarImageElement = React.ElementRef<typeof AvatarPrimitive.Image>;\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nconst AvatarImage = React.forwardRef<AvatarImageElement, AvatarImageProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Image ref={forwardedRef} className={cn('aspect-square size-full', className)} {...props} />\n));\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarFallback\n * -------------------------------------------------------------------------- */\n\ntype AvatarFallbackElement = React.ElementRef<typeof AvatarPrimitive.Fallback>;\ntype AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\n\nconst AvatarFallback = React.forwardRef<AvatarFallbackElement, AvatarFallbackProps>(\n ({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Fallback\n ref={forwardedRef}\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n {...props}\n />\n ),\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Avatar, AvatarImage, AvatarFallback, type AvatarProps, type AvatarImageProps, type AvatarFallbackProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBAW/B,cAAAC,MAAA,oBADF,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,8DAA+DH,CAAS,EACrF,GAAGC,EACN,CACD,EAEDF,EAAO,YAA8B,OAAK,YAS1C,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAiB,QAAhB,CAAsB,IAAKI,EAAc,UAAWC,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC3G,EAEDG,EAAY,YAA8B,QAAM,YAShD,IAAMC,EAAuB,aAC3B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAiB,WAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,mEAAoEH,CAAS,EAC1F,GAAGC,EACN,CAEJ,EAEAI,EAAe,YAA8B,WAAS","names":["React","AvatarPrimitive","jsx","Avatar","className","props","forwardedRef","cn","AvatarImage","AvatarFallback"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/blockquote.tsx"],"names":["React","Slot","jsx","Blockquote","asChild","props","
|
|
1
|
+
{"version":3,"sources":["../../src/react/blockquote.tsx"],"names":["React","Slot","jsx","Blockquote","asChild","props","forwardedRef"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGvFJ,EAFWE,EAAUH,EAAO,aAE3B,CAAU,IAAKK,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAW,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Blockquote\n * -------------------------------------------------------------------------- */\n\ntype BlockquoteElement = HTMLQuoteElement;\n\ninterface BlockquoteProps extends React.BlockquoteHTMLAttributes<HTMLQuoteElement> {\n asChild?: boolean;\n}\n\nconst Blockquote = React.forwardRef<BlockquoteElement, BlockquoteProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'blockquote';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nBlockquote.displayName = 'Blockquote';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Blockquote, type BlockquoteProps };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/blockquote.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Blockquote\n * -------------------------------------------------------------------------- */\n\ntype BlockquoteElement = HTMLQuoteElement;\n\ninterface BlockquoteProps extends React.BlockquoteHTMLAttributes<HTMLQuoteElement> {\n asChild?: boolean;\n}\n\nconst Blockquote = React.forwardRef<BlockquoteElement, BlockquoteProps>(({ asChild, ...props },
|
|
1
|
+
{"version":3,"sources":["../../src/react/blockquote.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Blockquote\n * -------------------------------------------------------------------------- */\n\ntype BlockquoteElement = HTMLQuoteElement;\n\ninterface BlockquoteProps extends React.BlockquoteHTMLAttributes<HTMLQuoteElement> {\n asChild?: boolean;\n}\n\nconst Blockquote = React.forwardRef<BlockquoteElement, BlockquoteProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'blockquote';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nBlockquote.displayName = 'Blockquote';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Blockquote, type BlockquoteProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGvFJ,EAFWE,EAAUH,EAAO,aAE3B,CAAU,IAAKK,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAW,YAAc","names":["React","Slot","jsx","Blockquote","asChild","props","forwardedRef"]}
|
package/dist/react/box.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/box.tsx"],"names":["React","Slot","jsx","Box","Tag","asChild","props","
|
|
1
|
+
{"version":3,"sources":["../../src/react/box.tsx"],"names":["React","Slot","jsx","Box","Tag","asChild","props","forwardedRef"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAuBZ,cAAAC,MAAA,oBAHT,IAAMC,EAAY,aAAiC,CAAC,CAAE,GAAIC,EAAM,MAAO,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGnFL,EAFWG,EAAUJ,EAAOG,EAE3B,CAAU,IAAKG,EAAe,GAAGD,EAAO,CACjD,EAEDH,EAAI,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\ntype BoxElement = HTMLDivElement;\n\ninterface BoxDivProps extends React.HTMLAttributes<HTMLDivElement> {\n as?: 'div';\n}\n\ninterface BoxSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype BoxProps = (BoxDivProps | BoxSpanProps) & {\n asChild?: boolean;\n};\n\nconst Box = React.forwardRef<BoxElement, BoxProps>(({ as: Tag = 'div', asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nBox.displayName = 'Box';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Box, type BoxProps };\n"]}
|
package/dist/react/box.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/box.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\ntype BoxElement = HTMLDivElement;\n\ninterface BoxDivProps extends React.HTMLAttributes<HTMLDivElement> {\n as?: 'div';\n}\n\ninterface BoxSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype BoxProps = (BoxDivProps | BoxSpanProps) & {\n asChild?: boolean;\n};\n\nconst Box = React.forwardRef<BoxElement, BoxProps>(({ as: Tag = 'div', asChild, ...props },
|
|
1
|
+
{"version":3,"sources":["../../src/react/box.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\ntype BoxElement = HTMLDivElement;\n\ninterface BoxDivProps extends React.HTMLAttributes<HTMLDivElement> {\n as?: 'div';\n}\n\ninterface BoxSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype BoxProps = (BoxDivProps | BoxSpanProps) & {\n asChild?: boolean;\n};\n\nconst Box = React.forwardRef<BoxElement, BoxProps>(({ as: Tag = 'div', asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nBox.displayName = 'Box';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Box, type BoxProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAuBZ,cAAAC,MAAA,oBAHT,IAAMC,EAAY,aAAiC,CAAC,CAAE,GAAIC,EAAM,MAAO,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGnFL,EAFWG,EAAUJ,EAAOG,EAE3B,CAAU,IAAKG,EAAe,GAAGD,EAAO,CACjD,EAEDH,EAAI,YAAc","names":["React","Slot","jsx","Box","Tag","asChild","props","forwardedRef"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkNU6SK3FCcjs = require('../chunk-NU6SK3FC.cjs');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reactslot = require('@radix-ui/react-slot');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var i=s.forwardRef(({...e},r)=>_jsxruntime.jsx.call(void 0, "nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";var d=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "ol",{ref:t,className:_chunkNU6SK3FCcjs.a.call(void 0, "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e),...r}));d.displayName="BreadcrumbList";var l=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "li",{ref:t,className:_chunkNU6SK3FCcjs.a.call(void 0, "inline-flex items-center gap-1.5",e),...r}));l.displayName="BreadcrumbItem";var u=s.forwardRef(({asChild:e,className:r,...t},n)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"a",{ref:n,className:_chunkNU6SK3FCcjs.a.call(void 0, "
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkNU6SK3FCcjs = require('../chunk-NU6SK3FC.cjs');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reactslot = require('@radix-ui/react-slot');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var i=s.forwardRef(({...e},r)=>_jsxruntime.jsx.call(void 0, "nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";var d=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "ol",{ref:t,className:_chunkNU6SK3FCcjs.a.call(void 0, "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e),...r}));d.displayName="BreadcrumbList";var l=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "li",{ref:t,className:_chunkNU6SK3FCcjs.a.call(void 0, "inline-flex items-center gap-1.5",e),...r}));l.displayName="BreadcrumbItem";var u=s.forwardRef(({asChild:e,className:r,...t},n)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"a",{ref:n,className:_chunkNU6SK3FCcjs.a.call(void 0, "hover:text-foreground transition",r),...t}));u.displayName="BreadcrumbLink";var b=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "span",{ref:t,"aria-current":"page","aria-disabled":"true",className:_chunkNU6SK3FCcjs.a.call(void 0, "text-foreground font-normal",e),role:"link",...r}));b.displayName="BreadcrumbPage";function y({children:e,className:r,...t}){return _jsxruntime.jsx.call(void 0, "li",{"aria-hidden":"true",className:_chunkNU6SK3FCcjs.a.call(void 0, "[&>svg]:size-3.5",r),role:"presentation",...t,children:_nullishCoalesce(e, () => (_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{})))})}function R({className:e,...r}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":"true",className:_chunkNU6SK3FCcjs.a.call(void 0, "flex size-4 items-center justify-center",e),role:"presentation",...r,children:[_jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb = i; exports.BreadcrumbEllipsis = R; exports.BreadcrumbItem = l; exports.BreadcrumbLink = u; exports.BreadcrumbList = d; exports.BreadcrumbPage = b; exports.BreadcrumbSeparator = y;
|
|
2
2
|
//# sourceMappingURL=breadcrumb.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/breadcrumb.tsx"],"names":["React","Slot","ChevronRightIcon","DotsHorizontalIcon","jsx","jsxs","Breadcrumb","props","
|
|
1
|
+
{"version":3,"sources":["../../src/react/breadcrumb.tsx"],"names":["React","Slot","ChevronRightIcon","DotsHorizontalIcon","jsx","jsxs","Breadcrumb","props","forwardedRef","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","BreadcrumbPage","BreadcrumbSeparator","children","BreadcrumbEllipsis"],"mappings":"0CAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBACrB,OAAS,oBAAAC,EAAkB,sBAAAC,MAA0B,wBAcnD,cAAAC,EA0GE,QAAAC,MA1GF,oBADF,IAAMC,EAAmB,aAA+C,CAAC,CAAE,GAAGC,CAAM,EAAGC,IACrFJ,EAAC,OAAI,IAAKI,EAAc,aAAW,aAAc,GAAGD,EAAO,CAC5D,EAEDD,EAAW,YAAc,aASzB,IAAMG,EAAuB,aAC3B,CAAC,CAAE,UAAAC,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWG,EACT,2FACAD,CACF,EACC,GAAGH,EACN,CAEJ,EAEAE,EAAe,YAAc,iBAS7B,IAAMG,EAAuB,aAC3B,CAAC,CAAE,UAAAF,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,MAAG,IAAKI,EAAc,UAAWG,EAAG,mCAAoCD,CAAS,EAAI,GAAGH,EAAO,CAEpG,EAEAK,EAAe,YAAc,iBAY7B,IAAMC,EAAuB,aAC3B,CAAC,CAAE,QAAAC,EAAS,UAAAJ,EAAW,GAAGH,CAAM,EAAGC,IAG1BJ,EAFWU,EAAUb,EAAO,IAE3B,CAAU,IAAKO,EAAc,UAAWG,EAAG,mCAAoCD,CAAS,EAAI,GAAGH,EAAO,CAElH,EAEAM,EAAe,YAAc,iBAS7B,IAAME,EAAuB,aAC3B,CAAC,CAAE,UAAAL,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,QACC,IAAKI,EACL,eAAa,OACb,gBAAc,OACd,UAAWG,EAAG,8BAA+BD,CAAS,EACtD,KAAK,OACJ,GAAGH,EACN,CAEJ,EAEAQ,EAAe,YAAc,iBAQ7B,SAASC,EAAoB,CAAE,SAAAC,EAAU,UAAAP,EAAW,GAAGH,CAAM,EAAgD,CAC3G,OACEH,EAAC,MAAG,cAAY,OAAO,UAAWO,EAAG,mBAAoBD,CAAS,EAAG,KAAK,eAAgB,GAAGH,EAC1F,SAAAU,GAAYb,EAACF,EAAA,EAAiB,EACjC,CAEJ,CAQA,SAASgB,EAAmB,CAAE,UAAAR,EAAW,GAAGH,CAAM,EAA+C,CAC/F,OACEF,EAAC,QACC,cAAY,OACZ,UAAWM,EAAG,0CAA2CD,CAAS,EAClE,KAAK,eACJ,GAAGH,EAEJ,UAAAH,EAACD,EAAA,CAAmB,UAAU,SAAS,EACvCC,EAAC,QAAK,UAAU,UAAU,gBAAI,GAChC,CAEJ","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Breadcrumb\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbElement = HTMLElement;\n\ninterface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {\n separator?: React.ReactNode;\n}\n\nconst Breadcrumb = React.forwardRef<BreadcrumbElement, BreadcrumbProps>(({ ...props }, forwardedRef) => (\n <nav ref={forwardedRef} aria-label=\"breadcrumb\" {...props} />\n));\n\nBreadcrumb.displayName = 'Breadcrumb';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbList\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbListElement = HTMLOListElement;\ntype BreadcrumbListProps = React.OlHTMLAttributes<HTMLOListElement>;\n\nconst BreadcrumbList = React.forwardRef<BreadcrumbListElement, BreadcrumbListProps>(\n ({ className, ...props }, forwardedRef) => (\n <ol\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',\n className,\n )}\n {...props}\n />\n ),\n);\n\nBreadcrumbList.displayName = 'BreadcrumbList';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbItem\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbItemElement = HTMLLIElement;\ntype BreadcrumbItemProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nconst BreadcrumbItem = React.forwardRef<BreadcrumbItemElement, BreadcrumbItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <li ref={forwardedRef} className={cn('inline-flex items-center gap-1.5', className)} {...props} />\n ),\n);\n\nBreadcrumbItem.displayName = 'BreadcrumbItem';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbLink\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbLinkElement = HTMLAnchorElement;\n\ninterface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean;\n}\n\nconst BreadcrumbLink = React.forwardRef<BreadcrumbLinkElement, BreadcrumbLinkProps>(\n ({ asChild, className, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component ref={forwardedRef} className={cn('hover:text-foreground transition', className)} {...props} />;\n },\n);\n\nBreadcrumbLink.displayName = 'BreadcrumbLink';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbPage\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbPageElement = HTMLSpanElement;\ntype BreadcrumbPageProps = React.HTMLAttributes<HTMLSpanElement>;\n\nconst BreadcrumbPage = React.forwardRef<BreadcrumbPageElement, BreadcrumbPageProps>(\n ({ className, ...props }, forwardedRef) => (\n <span\n ref={forwardedRef}\n aria-current=\"page\"\n aria-disabled=\"true\"\n className={cn('text-foreground font-normal', className)}\n role=\"link\"\n {...props}\n />\n ),\n);\n\nBreadcrumbPage.displayName = 'BreadcrumbPage';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbSeparator\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbSeparatorProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nfunction BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps): React.JSX.Element {\n return (\n <li aria-hidden=\"true\" className={cn('[&>svg]:size-3.5', className)} role=\"presentation\" {...props}>\n {children ?? <ChevronRightIcon />}\n </li>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbEllipsis\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbEllipsisProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): React.JSX.Element {\n return (\n <span\n aria-hidden=\"true\"\n className={cn('flex size-4 items-center justify-center', className)}\n role=\"presentation\"\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n type BreadcrumbProps,\n type BreadcrumbListProps,\n type BreadcrumbItemProps,\n type BreadcrumbLinkProps,\n type BreadcrumbPageProps,\n type BreadcrumbSeparatorProps,\n type BreadcrumbEllipsisProps,\n};\n"]}
|
package/dist/react/breadcrumb.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"../chunk-5UXVZTFG.js";import*as s from"react";import{Slot as c}from"@radix-ui/react-slot";import{ChevronRightIcon as o,DotsHorizontalIcon as p}from"@radix-ui/react-icons";import{jsx as a,jsxs as B}from"react/jsx-runtime";var i=s.forwardRef(({...e},r)=>a("nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";var d=s.forwardRef(({className:e,...r},t)=>a("ol",{ref:t,className:m("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e),...r}));d.displayName="BreadcrumbList";var l=s.forwardRef(({className:e,...r},t)=>a("li",{ref:t,className:m("inline-flex items-center gap-1.5",e),...r}));l.displayName="BreadcrumbItem";var u=s.forwardRef(({asChild:e,className:r,...t},n)=>a(e?c:"a",{ref:n,className:m("
|
|
1
|
+
import{a as m}from"../chunk-5UXVZTFG.js";import*as s from"react";import{Slot as c}from"@radix-ui/react-slot";import{ChevronRightIcon as o,DotsHorizontalIcon as p}from"@radix-ui/react-icons";import{jsx as a,jsxs as B}from"react/jsx-runtime";var i=s.forwardRef(({...e},r)=>a("nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";var d=s.forwardRef(({className:e,...r},t)=>a("ol",{ref:t,className:m("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e),...r}));d.displayName="BreadcrumbList";var l=s.forwardRef(({className:e,...r},t)=>a("li",{ref:t,className:m("inline-flex items-center gap-1.5",e),...r}));l.displayName="BreadcrumbItem";var u=s.forwardRef(({asChild:e,className:r,...t},n)=>a(e?c:"a",{ref:n,className:m("hover:text-foreground transition",r),...t}));u.displayName="BreadcrumbLink";var b=s.forwardRef(({className:e,...r},t)=>a("span",{ref:t,"aria-current":"page","aria-disabled":"true",className:m("text-foreground font-normal",e),role:"link",...r}));b.displayName="BreadcrumbPage";function y({children:e,className:r,...t}){return a("li",{"aria-hidden":"true",className:m("[&>svg]:size-3.5",r),role:"presentation",...t,children:e??a(o,{})})}function R({className:e,...r}){return B("span",{"aria-hidden":"true",className:m("flex size-4 items-center justify-center",e),role:"presentation",...r,children:[a(p,{className:"size-4"}),a("span",{className:"sr-only",children:"More"})]})}export{i as Breadcrumb,R as BreadcrumbEllipsis,l as BreadcrumbItem,u as BreadcrumbLink,d as BreadcrumbList,b as BreadcrumbPage,y as BreadcrumbSeparator};
|
|
2
2
|
//# sourceMappingURL=breadcrumb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/breadcrumb.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Breadcrumb\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbElement = HTMLElement;\n\ninterface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {\n separator?: React.ReactNode;\n}\n\nconst Breadcrumb = React.forwardRef<BreadcrumbElement, BreadcrumbProps>(({ ...props },
|
|
1
|
+
{"version":3,"sources":["../../src/react/breadcrumb.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Breadcrumb\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbElement = HTMLElement;\n\ninterface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {\n separator?: React.ReactNode;\n}\n\nconst Breadcrumb = React.forwardRef<BreadcrumbElement, BreadcrumbProps>(({ ...props }, forwardedRef) => (\n <nav ref={forwardedRef} aria-label=\"breadcrumb\" {...props} />\n));\n\nBreadcrumb.displayName = 'Breadcrumb';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbList\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbListElement = HTMLOListElement;\ntype BreadcrumbListProps = React.OlHTMLAttributes<HTMLOListElement>;\n\nconst BreadcrumbList = React.forwardRef<BreadcrumbListElement, BreadcrumbListProps>(\n ({ className, ...props }, forwardedRef) => (\n <ol\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',\n className,\n )}\n {...props}\n />\n ),\n);\n\nBreadcrumbList.displayName = 'BreadcrumbList';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbItem\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbItemElement = HTMLLIElement;\ntype BreadcrumbItemProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nconst BreadcrumbItem = React.forwardRef<BreadcrumbItemElement, BreadcrumbItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <li ref={forwardedRef} className={cn('inline-flex items-center gap-1.5', className)} {...props} />\n ),\n);\n\nBreadcrumbItem.displayName = 'BreadcrumbItem';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbLink\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbLinkElement = HTMLAnchorElement;\n\ninterface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean;\n}\n\nconst BreadcrumbLink = React.forwardRef<BreadcrumbLinkElement, BreadcrumbLinkProps>(\n ({ asChild, className, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component ref={forwardedRef} className={cn('hover:text-foreground transition', className)} {...props} />;\n },\n);\n\nBreadcrumbLink.displayName = 'BreadcrumbLink';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbPage\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbPageElement = HTMLSpanElement;\ntype BreadcrumbPageProps = React.HTMLAttributes<HTMLSpanElement>;\n\nconst BreadcrumbPage = React.forwardRef<BreadcrumbPageElement, BreadcrumbPageProps>(\n ({ className, ...props }, forwardedRef) => (\n <span\n ref={forwardedRef}\n aria-current=\"page\"\n aria-disabled=\"true\"\n className={cn('text-foreground font-normal', className)}\n role=\"link\"\n {...props}\n />\n ),\n);\n\nBreadcrumbPage.displayName = 'BreadcrumbPage';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbSeparator\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbSeparatorProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nfunction BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps): React.JSX.Element {\n return (\n <li aria-hidden=\"true\" className={cn('[&>svg]:size-3.5', className)} role=\"presentation\" {...props}>\n {children ?? <ChevronRightIcon />}\n </li>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbEllipsis\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbEllipsisProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): React.JSX.Element {\n return (\n <span\n aria-hidden=\"true\"\n className={cn('flex size-4 items-center justify-center', className)}\n role=\"presentation\"\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n type BreadcrumbProps,\n type BreadcrumbListProps,\n type BreadcrumbItemProps,\n type BreadcrumbLinkProps,\n type BreadcrumbPageProps,\n type BreadcrumbSeparatorProps,\n type BreadcrumbEllipsisProps,\n};\n"],"mappings":"yCAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBACrB,OAAS,oBAAAC,EAAkB,sBAAAC,MAA0B,wBAcnD,cAAAC,EA0GE,QAAAC,MA1GF,oBADF,IAAMC,EAAmB,aAA+C,CAAC,CAAE,GAAGC,CAAM,EAAGC,IACrFJ,EAAC,OAAI,IAAKI,EAAc,aAAW,aAAc,GAAGD,EAAO,CAC5D,EAEDD,EAAW,YAAc,aASzB,IAAMG,EAAuB,aAC3B,CAAC,CAAE,UAAAC,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWG,EACT,2FACAD,CACF,EACC,GAAGH,EACN,CAEJ,EAEAE,EAAe,YAAc,iBAS7B,IAAMG,EAAuB,aAC3B,CAAC,CAAE,UAAAF,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,MAAG,IAAKI,EAAc,UAAWG,EAAG,mCAAoCD,CAAS,EAAI,GAAGH,EAAO,CAEpG,EAEAK,EAAe,YAAc,iBAY7B,IAAMC,EAAuB,aAC3B,CAAC,CAAE,QAAAC,EAAS,UAAAJ,EAAW,GAAGH,CAAM,EAAGC,IAG1BJ,EAFWU,EAAUC,EAAO,IAE3B,CAAU,IAAKP,EAAc,UAAWG,EAAG,mCAAoCD,CAAS,EAAI,GAAGH,EAAO,CAElH,EAEAM,EAAe,YAAc,iBAS7B,IAAMG,EAAuB,aAC3B,CAAC,CAAE,UAAAN,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,QACC,IAAKI,EACL,eAAa,OACb,gBAAc,OACd,UAAWG,EAAG,8BAA+BD,CAAS,EACtD,KAAK,OACJ,GAAGH,EACN,CAEJ,EAEAS,EAAe,YAAc,iBAQ7B,SAASC,EAAoB,CAAE,SAAAC,EAAU,UAAAR,EAAW,GAAGH,CAAM,EAAgD,CAC3G,OACEH,EAAC,MAAG,cAAY,OAAO,UAAWO,EAAG,mBAAoBD,CAAS,EAAG,KAAK,eAAgB,GAAGH,EAC1F,SAAAW,GAAYd,EAACe,EAAA,EAAiB,EACjC,CAEJ,CAQA,SAASC,EAAmB,CAAE,UAAAV,EAAW,GAAGH,CAAM,EAA+C,CAC/F,OACEF,EAAC,QACC,cAAY,OACZ,UAAWM,EAAG,0CAA2CD,CAAS,EAClE,KAAK,eACJ,GAAGH,EAEJ,UAAAH,EAACiB,EAAA,CAAmB,UAAU,SAAS,EACvCjB,EAAC,QAAK,UAAU,UAAU,gBAAI,GAChC,CAEJ","names":["React","Slot","ChevronRightIcon","DotsHorizontalIcon","jsx","jsxs","Breadcrumb","props","forwardedRef","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","Slot","BreadcrumbPage","BreadcrumbSeparator","children","ChevronRightIcon","BreadcrumbEllipsis","DotsHorizontalIcon"]}
|
package/dist/react/button.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKKCZQNOcjs = require('../chunk-WKKCZQNO.cjs');require('../chunk-LOJBMYTH.cjs');require('../chunk-NU6SK3FC.cjs');exports.Button = _chunkWKKCZQNOcjs.b; exports.buttonVariants = _chunkWKKCZQNOcjs.a;
|
|
2
2
|
//# sourceMappingURL=button.cjs.map
|
package/dist/react/button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-VDVLCSO4.js";import"../chunk-RBP4PBCK.js";import"../chunk-5UXVZTFG.js";export{b as Button,a as buttonVariants};
|
|
2
2
|
//# sourceMappingURL=button.js.map
|
package/dist/react/calendar.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkWKKCZQNOcjs = require('../chunk-WKKCZQNO.cjs');require('../chunk-LOJBMYTH.cjs');var _chunkNU6SK3FCcjs = require('../chunk-NU6SK3FC.cjs');var _reactdaypicker = require('react-day-picker');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');function l({children:t,...e}){return _jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4",...e})}function m({children:t,...e}){return _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"size-4",...e})}function g({className:t,classNames:e,showOutsideDays:d=!0,...o}){return _jsxruntime.jsx.call(void 0, _reactdaypicker.DayPicker,{className:_chunkNU6SK3FCcjs.a.call(void 0, "p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:_chunkWKKCZQNOcjs.a.call(void 0, {variant:"outline",className:"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"}),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-xs",row:"flex w-full mt-2",cell:_chunkNU6SK3FCcjs.a.call(void 0, "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-start)]:rounded-l-md [&:has(>.day-range-end)]:rounded-r-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:_chunkWKKCZQNOcjs.a.call(void 0, {variant:"ghost",className:"size-9 p-0 font-normal aria-selected:opacity-100"}),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...e},components:{IconLeft:l,IconRight:m},showOutsideDays:d,...o})}exports.Calendar = g;
|
|
2
2
|
//# sourceMappingURL=calendar.cjs.map
|