@codefast/ui 0.0.44 → 0.0.46
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-6FL3EBDQ.mjs +2 -0
- package/dist/chunk-6FL3EBDQ.mjs.map +1 -0
- package/dist/{chunk-SCJ3W2VO.js → chunk-DTSAQICV.js} +2 -2
- package/dist/chunk-DTSAQICV.js.map +1 -0
- package/dist/{chunk-7HJV22OF.mjs → chunk-JOBEKA4M.mjs} +1 -1
- package/dist/{chunk-7HJV22OF.mjs.map → chunk-JOBEKA4M.mjs.map} +1 -1
- package/dist/{chunk-WYYOCZNI.mjs → chunk-KZ3CIZTP.mjs} +2 -2
- package/dist/{chunk-WYYOCZNI.mjs.map → chunk-KZ3CIZTP.mjs.map} +1 -1
- package/dist/{chunk-XM4Y2S5E.js → chunk-LG7ACTRE.js} +2 -2
- package/dist/{chunk-XM4Y2S5E.js.map → chunk-LG7ACTRE.js.map} +1 -1
- package/dist/{chunk-MZJL73RI.js → chunk-UYRRHPPH.js} +1 -1
- package/dist/{chunk-MZJL73RI.js.map → chunk-UYRRHPPH.js.map} +1 -1
- package/dist/hooks/use-media-query.d.mts +3 -0
- package/dist/hooks/use-media-query.d.ts +3 -0
- package/dist/hooks/use-media-query.js +2 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-media-query.mjs +2 -0
- package/dist/hooks/use-media-query.mjs.map +1 -0
- package/dist/hooks/use-mutation-observer.d.mts +5 -0
- package/dist/hooks/use-mutation-observer.d.ts +5 -0
- package/dist/hooks/use-mutation-observer.js +2 -0
- package/dist/hooks/use-mutation-observer.js.map +1 -0
- package/dist/hooks/use-mutation-observer.mjs +2 -0
- package/dist/hooks/use-mutation-observer.mjs.map +1 -0
- package/dist/lib/colors.d.mts +1759 -0
- package/dist/lib/colors.d.ts +1759 -0
- package/dist/lib/colors.js +2 -0
- package/dist/lib/colors.js.map +1 -0
- package/dist/lib/colors.mjs +2 -0
- package/dist/lib/colors.mjs.map +1 -0
- package/dist/plugin/base.plugin.js +1 -1
- package/dist/plugin/base.plugin.mjs +1 -1
- package/dist/react/alert-dialog.js.map +1 -1
- package/dist/react/alert-dialog.mjs.map +1 -1
- package/dist/react/checkbox-cards.js +1 -1
- package/dist/react/checkbox-cards.js.map +1 -1
- package/dist/react/checkbox-cards.mjs +1 -1
- package/dist/react/checkbox-cards.mjs.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.mjs +1 -1
- package/dist/react/checkbox-group.mjs.map +1 -1
- package/dist/react/checkbox-group.primitive.js +1 -1
- package/dist/react/checkbox-group.primitive.mjs +1 -1
- package/dist/react/checkbox.js +1 -1
- package/dist/react/checkbox.js.map +1 -1
- package/dist/react/checkbox.mjs +1 -1
- package/dist/react/checkbox.mjs.map +1 -1
- package/dist/react/form.js +1 -1
- package/dist/react/form.mjs +1 -1
- package/dist/react/label.js +1 -1
- package/dist/react/label.mjs +1 -1
- package/dist/react/radio-cards.js +1 -1
- package/dist/react/radio-cards.js.map +1 -1
- package/dist/react/radio-cards.mjs +1 -1
- package/dist/react/radio-cards.mjs.map +1 -1
- package/dist/react/radio-group.js +1 -1
- package/dist/react/radio-group.js.map +1 -1
- package/dist/react/radio-group.mjs +1 -1
- package/dist/react/radio-group.mjs.map +1 -1
- package/dist/react/radio.js +1 -1
- package/dist/react/radio.js.map +1 -1
- package/dist/react/radio.mjs +1 -1
- package/dist/react/radio.mjs.map +1 -1
- package/dist/react/tooltip.js +1 -1
- package/dist/react/tooltip.js.map +1 -1
- package/dist/react/tooltip.mjs +1 -1
- package/dist/react/tooltip.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/tailwind.config.js +1 -1
- package/dist/tailwind.config.js.map +1 -1
- package/dist/tailwind.config.mjs +1 -1
- package/dist/tailwind.config.mjs.map +1 -1
- package/package.json +256 -241
- package/plugin/base.plugin.ts +0 -3
- package/src/hooks/use-media-query.ts +22 -0
- package/src/hooks/use-mutation-observer.ts +26 -0
- package/src/lib/colors.ts +1757 -0
- package/src/react/alert-dialog.tsx +1 -0
- package/src/react/checkbox-cards.tsx +1 -1
- package/src/react/checkbox-group.primitive.tsx +1 -0
- package/src/react/checkbox-group.tsx +1 -1
- package/src/react/checkbox.tsx +1 -1
- package/src/react/label.tsx +1 -1
- package/src/react/radio-cards.tsx +1 -1
- package/src/react/radio-group.tsx +1 -1
- package/src/react/radio.tsx +1 -1
- package/src/react/tooltip.tsx +1 -1
- package/tailwind.config.ts +0 -1
- package/dist/chunk-M5UKNISJ.mjs +0 -2
- package/dist/chunk-M5UKNISJ.mjs.map +0 -1
- package/dist/chunk-SCJ3W2VO.js.map +0 -1
- package/dist/plugin/animate.plugin.d.mts +0 -9
- package/dist/plugin/animate.plugin.d.ts +0 -9
- package/dist/plugin/base.plugin.d.mts +0 -8
- package/dist/plugin/base.plugin.d.ts +0 -8
- package/dist/plugin/perspective.plugin.d.mts +0 -8
- package/dist/plugin/perspective.plugin.d.ts +0 -8
- package/dist/tailwind.config.d.mts +0 -5
- package/dist/tailwind.config.d.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"names":["React","AlertDialogPrimitive","jsx","jsxs","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","ref","cn","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BAmCpC,OACE,OAAAC,EADF,QAAAC,MAAA,oBA1BF,IAAMC,EAAmC,OASnCC,EAA0C,UAa1CC,EAA2B,aAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,+IAA+I,EACvLA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,yhBACAH,CACF,EACC,GAAGC,EACN,GACF,CACD,EAEDF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CACzB,UAAAJ,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,sCACA,eACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAkB,CACzB,UAAAL,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,8BACA,6BACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAaA,IAAMK,EAAyB,aAG7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,QAArB,CACC,IAAKO,EACL,UAAWC,EAAG,wBAAyBH,CAAS,EAC/C,GAAGC,EACN,CACD,EAEDK,EAAiB,YAAmC,QAAM,YAa1D,IAAMC,EAA+B,aAGnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,cAArB,CACC,IAAKO,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CACD,EAEDM,EAAuB,YACA,cAAY,YAanC,IAAMC,EAA0B,aAG9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EACtC,GAAGC,EACN,CACD,EAEDO,EAAkB,YAAmC,SAAO,YAa5D,IAAME,EAA0B,aAG9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAC1D,GAAGC,EACN,CACD,
|
|
1
|
+
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"names":["React","AlertDialogPrimitive","jsx","jsxs","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","ref","cn","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BAmCpC,OACE,OAAAC,EADF,QAAAC,MAAA,oBA1BF,IAAMC,EAAmC,OASnCC,EAA0C,UAa1CC,EAA2B,aAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,+IAA+I,EACvLA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,yhBACAH,CACF,EACC,GAAGC,EACN,GACF,CACD,EAEDF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CACzB,UAAAJ,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,sCACA,eACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAkB,CACzB,UAAAL,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,8BACA,6BACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAaA,IAAMK,EAAyB,aAG7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,QAArB,CACC,IAAKO,EACL,UAAWC,EAAG,wBAAyBH,CAAS,EAC/C,GAAGC,EACN,CACD,EAEDK,EAAiB,YAAmC,QAAM,YAa1D,IAAMC,EAA+B,aAGnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,cAArB,CACC,IAAKO,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CACD,EAEDM,EAAuB,YACA,cAAY,YAanC,IAAMC,EAA0B,aAG9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EACtC,GAAGC,EACN,CACD,EAEDO,EAAkB,YAAmC,SAAO,YAa5D,IAAME,EAA0B,aAG9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAC1D,GAAGC,EACN,CACD,EAEDS,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<\n typeof AlertDialogPrimitive.Trigger\n>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<\n typeof AlertDialogPrimitive.Content\n>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n>;\n\nconst AlertDialogContent = React.forwardRef<\n AlertDialogContentElement,\n AlertDialogContentProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:animate-duration-200 data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Portal>\n));\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn(\n 'flex flex-col space-y-2 text-center',\n 'sm:text-left',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn(\n 'flex flex-col-reverse gap-2',\n 'sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<\n typeof AlertDialogPrimitive.Title\n>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Title\n>;\n\nconst AlertDialogTitle = React.forwardRef<\n AlertDialogTitleElement,\n AlertDialogTitleProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold', className)}\n {...props}\n />\n));\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<\n typeof AlertDialogPrimitive.Description\n>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Description\n>;\n\nconst AlertDialogDescription = React.forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<\n typeof AlertDialogPrimitive.Action\n>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Action\n>;\n\nconst AlertDialogAction = React.forwardRef<\n AlertDialogActionElement,\n AlertDialogActionProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={buttonVariants({ className })}\n {...props}\n />\n));\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<\n typeof AlertDialogPrimitive.Cancel\n>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Cancel\n>;\n\nconst AlertDialogCancel = React.forwardRef<\n AlertDialogCancelElement,\n AlertDialogCancelProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n));\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
|
|
@@ -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<\n typeof AlertDialogPrimitive.Trigger\n>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<\n typeof AlertDialogPrimitive.Content\n>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n>;\n\nconst AlertDialogContent = React.forwardRef<\n AlertDialogContentElement,\n AlertDialogContentProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:animate-duration-200 data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Portal>\n));\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn(\n 'flex flex-col space-y-2 text-center',\n 'sm:text-left',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn(\n 'flex flex-col-reverse gap-2',\n 'sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<\n typeof AlertDialogPrimitive.Title\n>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Title\n>;\n\nconst AlertDialogTitle = React.forwardRef<\n AlertDialogTitleElement,\n AlertDialogTitleProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold', className)}\n {...props}\n />\n));\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<\n typeof AlertDialogPrimitive.Description\n>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Description\n>;\n\nconst AlertDialogDescription = React.forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<\n typeof AlertDialogPrimitive.Action\n>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Action\n>;\n\nconst AlertDialogAction = React.forwardRef<\n AlertDialogActionElement,\n AlertDialogActionProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={buttonVariants({ className })}\n {...props}\n />\n));\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<\n typeof AlertDialogPrimitive.Cancel\n>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Cancel\n>;\n\nconst AlertDialogCancel = React.forwardRef<\n AlertDialogCancelElement,\n AlertDialogCancelProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"+HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BAmCpC,OACE,OAAAC,EADF,QAAAC,MAAA,oBA1BF,IAAMC,EAAmC,OASnCC,EAA0C,UAa1CC,EAA2B,aAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,+IAA+I,EACvLA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,yhBACAH,CACF,EACC,GAAGC,EACN,GACF,CACD,EAEDF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CACzB,UAAAJ,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,sCACA,eACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAkB,CACzB,UAAAL,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,8BACA,6BACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAaA,IAAMK,EAAyB,aAG7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,QAArB,CACC,IAAKO,EACL,UAAWC,EAAG,wBAAyBH,CAAS,EAC/C,GAAGC,EACN,CACD,EAEDK,EAAiB,YAAmC,QAAM,YAa1D,IAAMC,EAA+B,aAGnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,cAArB,CACC,IAAKO,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CACD,EAEDM,EAAuB,YACA,cAAY,YAanC,IAAMC,EAA0B,aAG9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EACtC,GAAGC,EACN,CACD,EAEDO,EAAkB,YAAmC,SAAO,YAa5D,IAAME,EAA0B,aAG9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAC1D,GAAGC,EACN,CACD,
|
|
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<\n typeof AlertDialogPrimitive.Trigger\n>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<\n typeof AlertDialogPrimitive.Content\n>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n>;\n\nconst AlertDialogContent = React.forwardRef<\n AlertDialogContentElement,\n AlertDialogContentProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:animate-duration-200 data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Portal>\n));\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn(\n 'flex flex-col space-y-2 text-center',\n 'sm:text-left',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn(\n 'flex flex-col-reverse gap-2',\n 'sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<\n typeof AlertDialogPrimitive.Title\n>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Title\n>;\n\nconst AlertDialogTitle = React.forwardRef<\n AlertDialogTitleElement,\n AlertDialogTitleProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold', className)}\n {...props}\n />\n));\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<\n typeof AlertDialogPrimitive.Description\n>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Description\n>;\n\nconst AlertDialogDescription = React.forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<\n typeof AlertDialogPrimitive.Action\n>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Action\n>;\n\nconst AlertDialogAction = React.forwardRef<\n AlertDialogActionElement,\n AlertDialogActionProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={buttonVariants({ className })}\n {...props}\n />\n));\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<\n typeof AlertDialogPrimitive.Cancel\n>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Cancel\n>;\n\nconst AlertDialogCancel = React.forwardRef<\n AlertDialogCancelElement,\n AlertDialogCancelProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n));\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"+HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BAmCpC,OACE,OAAAC,EADF,QAAAC,MAAA,oBA1BF,IAAMC,EAAmC,OASnCC,EAA0C,UAa1CC,EAA2B,aAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,+IAA+I,EACvLA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,yhBACAH,CACF,EACC,GAAGC,EACN,GACF,CACD,EAEDF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CACzB,UAAAJ,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,sCACA,eACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAkB,CACzB,UAAAL,EACA,GAAGC,CACL,EAA8C,CAC5C,OACEN,EAAC,OACC,UAAWQ,EACT,8BACA,6BACAH,CACF,EACC,GAAGC,EACN,CAEJ,CAaA,IAAMK,EAAyB,aAG7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,QAArB,CACC,IAAKO,EACL,UAAWC,EAAG,wBAAyBH,CAAS,EAC/C,GAAGC,EACN,CACD,EAEDK,EAAiB,YAAmC,QAAM,YAa1D,IAAMC,EAA+B,aAGnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,cAArB,CACC,IAAKO,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CACD,EAEDM,EAAuB,YACA,cAAY,YAanC,IAAMC,EAA0B,aAG9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EACtC,GAAGC,EACN,CACD,EAEDO,EAAkB,YAAmC,SAAO,YAa5D,IAAME,EAA0B,aAG9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IAC1BP,EAAsB,SAArB,CACC,IAAKO,EACL,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAC1D,GAAGC,EACN,CACD,EAEDS,EAAkB,YAAmC,SAAO","names":["React","AlertDialogPrimitive","jsx","jsxs","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","ref","cn","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"]}
|
|
@@ -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 _chunkUYRRHPPHjs = require('../chunk-UYRRHPPH.js');var _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var b=s.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, _chunkUYRRHPPHjs.e,{className:_chunkHQ4AUOQMjs.b.call(void 0, "grid gap-2",r),...t,ref:i}));b.displayName=_chunkUYRRHPPHjs.e.displayName;var l=s.forwardRef(({children:r,className:t,checkboxClassName:i,...p},d)=>_jsxruntime.jsxs.call(void 0, "label",{className:_chunkHQ4AUOQMjs.b.call(void 0, "flex items-center justify-center gap-4 rounded-md border p-4",t),children:[r,_jsxruntime.jsx.call(void 0, _chunkUYRRHPPHjs.f,{ref:d,className:_chunkHQ4AUOQMjs.b.call(void 0, "border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-default rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",i),...p,children:_jsxruntime.jsx.call(void 0, _chunkUYRRHPPHjs.d,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})})]}));l.displayName=_chunkUYRRHPPHjs.f.displayName;exports.CheckboxCards = b; exports.CheckboxCardsItem = l;
|
|
2
2
|
//# sourceMappingURL=checkbox-cards.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/checkbox-cards.tsx"],"names":["React","CheckIcon","jsx","jsxs","CheckboxCards","className","props","ref","Root","cn","CheckboxCardsItem","children","checkboxClassName","Item","CheckboxGroupIndicator"],"mappings":"6GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAoBtB,cAAAC,EA4BA,QAAAC,MA5BA,oBALJ,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExBL,EAAwBM,EAAvB,CACC,UAAWC,EAAG,aAAcJ,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAEH,EAEDH,EAAc,YAAqCI,EAAK,YAexD,IAAME,EAA0B,aAG9B,CAAC,CAAE,SAAAC,EAAU,UAAAN,EAAW,kBAAAO,EAAmB,GAAGN,CAAM,EAAGC,IAErDJ,EAAC,SACC,UAAWM,EACT,+DACAJ,CACF,EAEC,UAAAM,EACDT,EAAwBW,EAAvB,CACC,IAAKN,EACL,UAAWE,EACT,
|
|
1
|
+
{"version":3,"sources":["../../src/react/checkbox-cards.tsx"],"names":["React","CheckIcon","jsx","jsxs","CheckboxCards","className","props","ref","Root","cn","CheckboxCardsItem","children","checkboxClassName","Item","CheckboxGroupIndicator"],"mappings":"6GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAoBtB,cAAAC,EA4BA,QAAAC,MA5BA,oBALJ,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExBL,EAAwBM,EAAvB,CACC,UAAWC,EAAG,aAAcJ,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAEH,EAEDH,EAAc,YAAqCI,EAAK,YAexD,IAAME,EAA0B,aAG9B,CAAC,CAAE,SAAAC,EAAU,UAAAN,EAAW,kBAAAO,EAAmB,GAAGN,CAAM,EAAGC,IAErDJ,EAAC,SACC,UAAWM,EACT,+DACAJ,CACF,EAEC,UAAAM,EACDT,EAAwBW,EAAvB,CACC,IAAKN,EACL,UAAWE,EACT,0SACAG,CACF,EACC,GAAGN,EAEJ,SAAAJ,EAAwBY,EAAvB,CAA8C,UAAU,0DACvD,SAAAZ,EAACD,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CAEH,EAEDS,EAAkB,YAAqCG,EAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\nimport * as CheckboxGroupPrimitive from './checkbox-group.primitive';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Root\n>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxCards = React.forwardRef<\n CheckboxCardsElement,\n CheckboxCardsProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n});\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\ninterface CheckboxCardsItemProps\n extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<\n CheckboxCardsItemElement,\n CheckboxCardsItemProps\n>(({ children, className, checkboxClassName, ...props }, ref) => {\n return (\n <label\n className={cn(\n 'flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-default rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n );\n});\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxCards,\n CheckboxCardsItem,\n type CheckboxCardsProps,\n type CheckboxCardsItemProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{d as m,e as c,f as a}from"../chunk-
|
|
1
|
+
"use client";import{d as m,e as c,f as a}from"../chunk-JOBEKA4M.mjs";import{b as e}from"../chunk-LEUB3C3L.mjs";import*as s from"react";import{CheckIcon as C}from"@radix-ui/react-icons";import{jsx as o,jsxs as h}from"react/jsx-runtime";var b=s.forwardRef(({className:r,...t},i)=>o(c,{className:e("grid gap-2",r),...t,ref:i}));b.displayName=c.displayName;var l=s.forwardRef(({children:r,className:t,checkboxClassName:i,...p},d)=>h("label",{className:e("flex items-center justify-center gap-4 rounded-md border p-4",t),children:[r,o(a,{ref:d,className:e("border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-default rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",i),...p,children:o(m,{className:"flex size-full items-center justify-center text-current",children:o(C,{className:"size-3.5"})})})]}));l.displayName=a.displayName;export{b as CheckboxCards,l as CheckboxCardsItem};
|
|
2
2
|
//# sourceMappingURL=checkbox-cards.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/checkbox-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\nimport * as CheckboxGroupPrimitive from './checkbox-group.primitive';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Root\n>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxCards = React.forwardRef<\n CheckboxCardsElement,\n CheckboxCardsProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n});\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\ninterface CheckboxCardsItemProps\n extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<\n CheckboxCardsItemElement,\n CheckboxCardsItemProps\n>(({ children, className, checkboxClassName, ...props }, ref) => {\n return (\n <label\n className={cn(\n 'flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-
|
|
1
|
+
{"version":3,"sources":["../../src/react/checkbox-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\nimport * as CheckboxGroupPrimitive from './checkbox-group.primitive';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Root\n>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxCards = React.forwardRef<\n CheckboxCardsElement,\n CheckboxCardsProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n});\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\ninterface CheckboxCardsItemProps\n extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<\n CheckboxCardsItemElement,\n CheckboxCardsItemProps\n>(({ children, className, checkboxClassName, ...props }, ref) => {\n return (\n <label\n className={cn(\n 'flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-default rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n );\n});\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxCards,\n CheckboxCardsItem,\n type CheckboxCardsProps,\n type CheckboxCardsItemProps,\n};\n"],"mappings":"+GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAoBtB,cAAAC,EA4BA,QAAAC,MA5BA,oBALJ,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExBL,EAAwBM,EAAvB,CACC,UAAWC,EAAG,aAAcJ,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAEH,EAEDH,EAAc,YAAqCI,EAAK,YAexD,IAAME,EAA0B,aAG9B,CAAC,CAAE,SAAAC,EAAU,UAAAN,EAAW,kBAAAO,EAAmB,GAAGN,CAAM,EAAGC,IAErDJ,EAAC,SACC,UAAWM,EACT,+DACAJ,CACF,EAEC,UAAAM,EACDT,EAAwBW,EAAvB,CACC,IAAKN,EACL,UAAWE,EACT,0SACAG,CACF,EACC,GAAGN,EAEJ,SAAAJ,EAAwBY,EAAvB,CAA8C,UAAU,0DACvD,SAAAZ,EAACa,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CAEH,EAEDL,EAAkB,YAAqCG,EAAK","names":["React","CheckIcon","jsx","jsxs","CheckboxCards","className","props","ref","Root","cn","CheckboxCardsItem","children","checkboxClassName","Item","CheckboxGroupIndicator","CheckIcon"]}
|
|
@@ -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 _chunkUYRRHPPHjs = require('../chunk-UYRRHPPH.js');var _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var p = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var a=p.forwardRef(({className:o,...r},t)=>_jsxruntime.jsx.call(void 0, _chunkUYRRHPPHjs.e,{ref:t,className:_chunkHQ4AUOQMjs.b.call(void 0, "grid gap-2",o),...r}));a.displayName="CheckboxGroup";var b=p.forwardRef(({className:o,...r},t)=>_jsxruntime.jsx.call(void 0, _chunkUYRRHPPHjs.f,{ref:t,className:_chunkHQ4AUOQMjs.b.call(void 0, "border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...r,children:_jsxruntime.jsx.call(void 0, _chunkUYRRHPPHjs.d,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));b.displayName="CheckboxGroupItem";exports.CheckboxGroup = a; exports.CheckboxGroupItem = b;
|
|
2
2
|
//# sourceMappingURL=checkbox-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/checkbox-group.tsx"],"names":["React","CheckIcon","jsx","CheckboxGroup","className","props","ref","Root","cn","CheckboxGroupItem","Item","CheckboxGroupIndicator"],"mappings":"6GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAoBtB,cAAAC,MAAA,oBALJ,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAwBK,EAAvB,CACC,IAAKD,EACL,UAAWE,EAAG,aAAcJ,CAAS,EACpC,GAAGC,EACN,CAEH,EAEDF,EAAc,YAAc,gBAa5B,IAAMM,EAA0B,aAG9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAwBQ,EAAvB,CACC,IAAKJ,EACL,UAAWE,EACT
|
|
1
|
+
{"version":3,"sources":["../../src/react/checkbox-group.tsx"],"names":["React","CheckIcon","jsx","CheckboxGroup","className","props","ref","Root","cn","CheckboxGroupItem","Item","CheckboxGroupIndicator"],"mappings":"6GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAoBtB,cAAAC,MAAA,oBALJ,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAwBK,EAAvB,CACC,IAAKD,EACL,UAAWE,EAAG,aAAcJ,CAAS,EACpC,GAAGC,EACN,CAEH,EAEDF,EAAc,YAAc,gBAa5B,IAAMM,EAA0B,aAG9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAwBQ,EAAvB,CACC,IAAKJ,EACL,UAAWE,EACT,iTACAJ,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwBS,EAAvB,CAA8C,UAAU,0DACvD,SAAAT,EAACD,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEH,EAEDQ,EAAkB,YAAc","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\nimport * as CheckboxGroupPrimitive from './checkbox-group.primitive';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Root\n>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxGroup = React.forwardRef<\n CheckboxGroupElement,\n CheckboxGroupProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Root\n ref={ref}\n className={cn('grid gap-2', className)}\n {...props}\n />\n );\n});\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Item\n>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\nconst CheckboxGroupItem = React.forwardRef<\n CheckboxGroupItemElement,\n CheckboxGroupItemProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n});\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxGroup,\n CheckboxGroupItem,\n type CheckboxGroupProps,\n type CheckboxGroupItemProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{d as c,e as m,f as u}from"../chunk-
|
|
1
|
+
"use client";import{d as c,e as m,f as u}from"../chunk-JOBEKA4M.mjs";import{b as i}from"../chunk-LEUB3C3L.mjs";import*as p from"react";import{CheckIcon as s}from"@radix-ui/react-icons";import{jsx as e}from"react/jsx-runtime";var a=p.forwardRef(({className:o,...r},t)=>e(m,{ref:t,className:i("grid gap-2",o),...r}));a.displayName="CheckboxGroup";var b=p.forwardRef(({className:o,...r},t)=>e(u,{ref:t,className:i("border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...r,children:e(c,{className:"flex size-full items-center justify-center text-current",children:e(s,{className:"size-3.5"})})}));b.displayName="CheckboxGroupItem";export{a as CheckboxGroup,b as CheckboxGroupItem};
|
|
2
2
|
//# sourceMappingURL=checkbox-group.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/checkbox-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\nimport * as CheckboxGroupPrimitive from './checkbox-group.primitive';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Root\n>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxGroup = React.forwardRef<\n CheckboxGroupElement,\n CheckboxGroupProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Root\n ref={ref}\n className={cn('grid gap-2', className)}\n {...props}\n />\n );\n});\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Item\n>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\nconst CheckboxGroupItem = React.forwardRef<\n CheckboxGroupItemElement,\n CheckboxGroupItemProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-
|
|
1
|
+
{"version":3,"sources":["../../src/react/checkbox-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\nimport * as CheckboxGroupPrimitive from './checkbox-group.primitive';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Root\n>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxGroup = React.forwardRef<\n CheckboxGroupElement,\n CheckboxGroupProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Root\n ref={ref}\n className={cn('grid gap-2', className)}\n {...props}\n />\n );\n});\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<\n typeof CheckboxGroupPrimitive.Item\n>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\nconst CheckboxGroupItem = React.forwardRef<\n CheckboxGroupItemElement,\n CheckboxGroupItemProps\n>(({ className, ...props }, ref) => {\n return (\n <CheckboxGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n});\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxGroup,\n CheckboxGroupItem,\n type CheckboxGroupProps,\n type CheckboxGroupItemProps,\n};\n"],"mappings":"+GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAoBtB,cAAAC,MAAA,oBALJ,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAwBK,EAAvB,CACC,IAAKD,EACL,UAAWE,EAAG,aAAcJ,CAAS,EACpC,GAAGC,EACN,CAEH,EAEDF,EAAc,YAAc,gBAa5B,IAAMM,EAA0B,aAG9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAwBQ,EAAvB,CACC,IAAKJ,EACL,UAAWE,EACT,iTACAJ,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwBS,EAAvB,CAA8C,UAAU,0DACvD,SAAAT,EAACU,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEH,EAEDH,EAAkB,YAAc","names":["React","CheckIcon","jsx","CheckboxGroup","className","props","ref","Root","cn","CheckboxGroupItem","Item","CheckboxGroupIndicator","CheckIcon"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUYRRHPPHjs = require('../chunk-UYRRHPPH.js');exports.CheckboxGroup = _chunkUYRRHPPHjs.b; exports.CheckboxGroupIndicator = _chunkUYRRHPPHjs.d; exports.CheckboxGroupItem = _chunkUYRRHPPHjs.c; exports.Indicator = _chunkUYRRHPPHjs.g; exports.Item = _chunkUYRRHPPHjs.f; exports.Root = _chunkUYRRHPPHjs.e; exports.createCheckboxGroupScope = _chunkUYRRHPPHjs.a;
|
|
2
2
|
//# sourceMappingURL=checkbox-group.primitive.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../chunk-JOBEKA4M.mjs";export{b as CheckboxGroup,d as CheckboxGroupIndicator,c as CheckboxGroupItem,g as Indicator,f as Item,e as Root,a as createCheckboxGroupScope};
|
|
2
2
|
//# sourceMappingURL=checkbox-group.primitive.mjs.map
|
package/dist/react/checkbox.js
CHANGED
|
@@ -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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactcheckbox = require('@radix-ui/react-checkbox'); var e = _interopRequireWildcard(_reactcheckbox);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var m=r.forwardRef(({className:t,...c},s)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:s,className:_chunkHQ4AUOQMjs.b.call(void 0, "border-
|
|
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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactcheckbox = require('@radix-ui/react-checkbox'); var e = _interopRequireWildcard(_reactcheckbox);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var m=r.forwardRef(({className:t,...c},s)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:s,className:_chunkHQ4AUOQMjs.b.call(void 0, "border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...c,children:_jsxruntime.jsx.call(void 0, e.Indicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));m.displayName=e.Root.displayName;exports.Checkbox = m;
|
|
2
2
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/checkbox.tsx"],"names":["React","CheckboxPrimitive","CheckIcon","jsx","Checkbox","className","props","ref","cn"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAuB,2BACnC,OAAS,aAAAC,MAAiB,wBAuBlB,cAAAC,MAAA,oBAXR,IAAMC,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAmB,OAAlB,CACC,IAAKI,EACL,UAAWC,EACT
|
|
1
|
+
{"version":3,"sources":["../../src/react/checkbox.tsx"],"names":["React","CheckboxPrimitive","CheckIcon","jsx","Checkbox","className","props","ref","cn"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAuB,2BACnC,OAAS,aAAAC,MAAiB,wBAuBlB,cAAAC,MAAA,oBAXR,IAAMC,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAmB,OAAlB,CACC,IAAKI,EACL,UAAWC,EACT,gTACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAmB,YAAlB,CAA4B,UAAU,0DACrC,SAAAA,EAACD,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ,EAEAE,EAAS,YAAgC,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Checkbox\n * -------------------------------------------------------------------------- */\n\ntype CheckboxElement = React.ElementRef<typeof CheckboxPrimitive.Root>;\ntype CheckboxProps = React.ComponentPropsWithoutRef<\n typeof CheckboxPrimitive.Root\n>;\n\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n ),\n);\n\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Checkbox, type CheckboxProps };\n"]}
|
package/dist/react/checkbox.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{b as i}from"../chunk-LEUB3C3L.mjs";import*as r from"react";import*as e from"@radix-ui/react-checkbox";import{CheckIcon as a}from"@radix-ui/react-icons";import{jsx as o}from"react/jsx-runtime";var m=r.forwardRef(({className:t,...c},s)=>o(e.Root,{ref:s,className:i("border-
|
|
1
|
+
"use client";import{b as i}from"../chunk-LEUB3C3L.mjs";import*as r from"react";import*as e from"@radix-ui/react-checkbox";import{CheckIcon as a}from"@radix-ui/react-icons";import{jsx as o}from"react/jsx-runtime";var m=r.forwardRef(({className:t,...c},s)=>o(e.Root,{ref:s,className:i("border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...c,children:o(e.Indicator,{className:"flex size-full items-center justify-center text-current",children:o(a,{className:"size-3.5"})})}));m.displayName=e.Root.displayName;export{m as Checkbox};
|
|
2
2
|
//# sourceMappingURL=checkbox.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/checkbox.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Checkbox\n * -------------------------------------------------------------------------- */\n\ntype CheckboxElement = React.ElementRef<typeof CheckboxPrimitive.Root>;\ntype CheckboxProps = React.ComponentPropsWithoutRef<\n typeof CheckboxPrimitive.Root\n>;\n\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'border-
|
|
1
|
+
{"version":3,"sources":["../../src/react/checkbox.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Checkbox\n * -------------------------------------------------------------------------- */\n\ntype CheckboxElement = React.ElementRef<typeof CheckboxPrimitive.Root>;\ntype CheckboxProps = React.ComponentPropsWithoutRef<\n typeof CheckboxPrimitive.Root\n>;\n\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n ),\n);\n\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Checkbox, type CheckboxProps };\n"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAuB,2BACnC,OAAS,aAAAC,MAAiB,wBAuBlB,cAAAC,MAAA,oBAXR,IAAMC,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAmB,OAAlB,CACC,IAAKI,EACL,UAAWC,EACT,gTACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAmB,YAAlB,CAA4B,UAAU,0DACrC,SAAAA,EAACM,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ,EAEAL,EAAS,YAAgC,OAAK","names":["React","CheckboxPrimitive","CheckIcon","jsx","Checkbox","className","props","ref","cn","CheckIcon"]}
|
package/dist/react/form.js
CHANGED
|
@@ -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 _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"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; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkLG7ACTREjs = require('../chunk-LG7ACTRE.js');var _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var t = _interopRequireWildcard(_react);var _reactslot = require('@radix-ui/react-slot');var _reacthookform = require('react-hook-form');var _jsxruntime = require('react/jsx-runtime');var p=t.createContext(null),c=t.createContext(null),n= exports.useFormField =()=>{let e=t.useContext(p),o=t.useContext(c),{getFieldState:r,formState:m}=_reacthookform.useFormContext.call(void 0, );if(!e||!o)throw new Error("useFormField should be used within <FormField>");let s=r(e.name,m),{id:a}=o;return{id:a,name:e.name,formItemId:`form-item-${a}`,formDescriptionId:`form-item-description-${a}`,formMessageId:`form-item-message-${a}`,...s}},M= exports.Form =_reacthookform.FormProvider;function h({...e}){return _jsxruntime.jsx.call(void 0, p.Provider,{value:{name:e.name},children:_jsxruntime.jsx.call(void 0, _reacthookform.Controller,{...e})})}var R=t.forwardRef(({className:e,...o},r)=>{let m=t.useId();return _jsxruntime.jsx.call(void 0, c.Provider,{value:{id:m},children:_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkHQ4AUOQMjs.b.call(void 0, "space-y-2",e),...o})})});R.displayName="FormItem";var x=t.forwardRef(({className:e,...o},r)=>{let{error:m,formItemId:s}=n();return _jsxruntime.jsx.call(void 0, _chunkLG7ACTREjs.a,{ref:r,className:_chunkHQ4AUOQMjs.b.call(void 0, m&&"text-destructive",e),htmlFor:s,...o})});x.displayName="FormLabel";var C=t.forwardRef(({...e},o)=>{let{error:r,formItemId:m,formDescriptionId:s,formMessageId:a}=n();return _jsxruntime.jsx.call(void 0, _reactslot.Slot,{ref:o,id:m,"aria-describedby":r?`${s} ${a}`:s,"aria-invalid":!!r,...e})});C.displayName="FormControl";var I=t.forwardRef(({className:e,...o},r)=>{let{formDescriptionId:m}=n();return _jsxruntime.jsx.call(void 0, "p",{ref:r,id:m,className:_chunkHQ4AUOQMjs.b.call(void 0, "text-muted-foreground text-xs",e),...o})});I.displayName="FormDescription";var g=t.forwardRef(({children:e,className:o,...r},m)=>{let{error:s,formMessageId:a}=n(),d=_optionalChain([s, 'optionalAccess', _ => _.message])?s.message:e;return d?_jsxruntime.jsx.call(void 0, "p",{ref:m,id:a,className:_chunkHQ4AUOQMjs.b.call(void 0, "text-destructive text-xs font-medium",o),...r,children:d}):null});g.displayName="FormMessage";exports.Form = M; exports.FormControl = C; exports.FormDescription = I; exports.FormField = h; exports.FormItem = R; exports.FormLabel = x; exports.FormMessage = g; exports.useFormField = n;
|
|
2
2
|
//# sourceMappingURL=form.js.map
|
package/dist/react/form.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a as F}from"../chunk-
|
|
1
|
+
"use client";import{a as F}from"../chunk-6FL3EBDQ.mjs";import{b as l}from"../chunk-LEUB3C3L.mjs";import*as t from"react";import{Slot as u}from"@radix-ui/react-slot";import{Controller as f,FormProvider as P,useFormContext as y}from"react-hook-form";import{jsx as i}from"react/jsx-runtime";var p=t.createContext(null),c=t.createContext(null),n=()=>{let e=t.useContext(p),o=t.useContext(c),{getFieldState:r,formState:m}=y();if(!e||!o)throw new Error("useFormField should be used within <FormField>");let s=r(e.name,m),{id:a}=o;return{id:a,name:e.name,formItemId:`form-item-${a}`,formDescriptionId:`form-item-description-${a}`,formMessageId:`form-item-message-${a}`,...s}},M=P;function h({...e}){return i(p.Provider,{value:{name:e.name},children:i(f,{...e})})}var R=t.forwardRef(({className:e,...o},r)=>{let m=t.useId();return i(c.Provider,{value:{id:m},children:i("div",{ref:r,className:l("space-y-2",e),...o})})});R.displayName="FormItem";var x=t.forwardRef(({className:e,...o},r)=>{let{error:m,formItemId:s}=n();return i(F,{ref:r,className:l(m&&"text-destructive",e),htmlFor:s,...o})});x.displayName="FormLabel";var C=t.forwardRef(({...e},o)=>{let{error:r,formItemId:m,formDescriptionId:s,formMessageId:a}=n();return i(u,{ref:o,id:m,"aria-describedby":r?`${s} ${a}`:s,"aria-invalid":!!r,...e})});C.displayName="FormControl";var I=t.forwardRef(({className:e,...o},r)=>{let{formDescriptionId:m}=n();return i("p",{ref:r,id:m,className:l("text-muted-foreground text-xs",e),...o})});I.displayName="FormDescription";var g=t.forwardRef(({children:e,className:o,...r},m)=>{let{error:s,formMessageId:a}=n(),d=s?.message?s.message:e;return d?i("p",{ref:m,id:a,className:l("text-destructive text-xs font-medium",o),...r,children:d}):null});g.displayName="FormMessage";export{M as Form,C as FormControl,I as FormDescription,h as FormField,R as FormItem,x as FormLabel,g as FormMessage,n as useFormField};
|
|
2
2
|
//# sourceMappingURL=form.mjs.map
|
package/dist/react/label.js
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 _chunkLG7ACTREjs = require('../chunk-LG7ACTRE.js');require('../chunk-HQ4AUOQM.js');exports.Label = _chunkLG7ACTREjs.a;
|
|
2
2
|
//# sourceMappingURL=label.js.map
|
package/dist/react/label.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../chunk-
|
|
1
|
+
"use client";import{a}from"../chunk-6FL3EBDQ.mjs";import"../chunk-LEUB3C3L.mjs";export{a as Label};
|
|
2
2
|
//# sourceMappingURL=label.mjs.map
|
|
@@ -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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reactradiogroup = require('@radix-ui/react-radio-group'); var e = _interopRequireWildcard(_reactradiogroup);var _jsxruntime = require('react/jsx-runtime');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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reactradiogroup = require('@radix-ui/react-radio-group'); var e = _interopRequireWildcard(_reactradiogroup);var _jsxruntime = require('react/jsx-runtime');var s=a.forwardRef(({className:o,...i},t)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunkHQ4AUOQMjs.b.call(void 0, "grid gap-2",o),...i,ref:t}));s.displayName=e.Root.displayName;var p=a.forwardRef(({className:o,...i},t)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:t,className:_chunkHQ4AUOQMjs.b.call(void 0, "text-foreground focus-visible:bg-primary/10 group peer flex cursor-default items-center justify-center rounded-md border p-4 focus-visible:outline focus-visible:outline-2 disabled:cursor-not-allowed disabled:opacity-50 aria-checked:outline aria-checked:outline-2",o),...i}));p.displayName=e.Item.displayName;exports.RadioCards = s; exports.RadioCardsItem = p;
|
|
2
2
|
//# sourceMappingURL=radio-cards.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/radio-cards.tsx"],"names":["React","RadioGroupPrimitive","jsx","RadioCards","className","props","ref","cn","RadioCardsItem"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAe/B,cAAAC,MAAA,oBAHN,IAAMC,EAAmB,aACvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,UAAWK,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAGN,EAEAH,EAAW,YAAkC,OAAK,YAWlD,IAAMK,EAAuB,aAG3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,
|
|
1
|
+
{"version":3,"sources":["../../src/react/radio-cards.tsx"],"names":["React","RadioGroupPrimitive","jsx","RadioCards","className","props","ref","cn","RadioCardsItem"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAe/B,cAAAC,MAAA,oBAHN,IAAMC,EAAmB,aACvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,UAAWK,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAGN,EAEAH,EAAW,YAAkC,OAAK,YAWlD,IAAMK,EAAuB,aAG3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,yQACAH,CACF,EACC,GAAGC,EACN,CAEH,EAEDG,EAAe,YAAkC,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioCardsProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>;\n\nconst RadioCards = React.forwardRef<RadioCardsElement, RadioCardsProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nRadioCards.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioCardsItemProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>;\n\nconst RadioCardsItem = React.forwardRef<\n RadioCardsItemElement,\n RadioCardsItemProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'text-foreground focus-visible:bg-primary/10 group peer flex cursor-default items-center justify-center rounded-md border p-4 focus-visible:outline focus-visible:outline-2 disabled:cursor-not-allowed disabled:opacity-50 aria-checked:outline aria-checked:outline-2',\n className,\n )}\n {...props}\n />\n );\n});\n\nRadioCardsItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n RadioCards,\n RadioCardsItem,\n type RadioCardsProps,\n type RadioCardsItemProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{b as r}from"../chunk-LEUB3C3L.mjs";import*as a from"react";import*as e from"@radix-ui/react-radio-group";import{jsx as d}from"react/jsx-runtime";var
|
|
1
|
+
"use client";import{b as r}from"../chunk-LEUB3C3L.mjs";import*as a from"react";import*as e from"@radix-ui/react-radio-group";import{jsx as d}from"react/jsx-runtime";var s=a.forwardRef(({className:o,...i},t)=>d(e.Root,{className:r("grid gap-2",o),...i,ref:t}));s.displayName=e.Root.displayName;var p=a.forwardRef(({className:o,...i},t)=>d(e.Item,{ref:t,className:r("text-foreground focus-visible:bg-primary/10 group peer flex cursor-default items-center justify-center rounded-md border p-4 focus-visible:outline focus-visible:outline-2 disabled:cursor-not-allowed disabled:opacity-50 aria-checked:outline aria-checked:outline-2",o),...i}));p.displayName=e.Item.displayName;export{s as RadioCards,p as RadioCardsItem};
|
|
2
2
|
//# sourceMappingURL=radio-cards.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/radio-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioCardsProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>;\n\nconst RadioCards = React.forwardRef<RadioCardsElement, RadioCardsProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nRadioCards.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioCardsItemProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>;\n\nconst RadioCardsItem = React.forwardRef<\n RadioCardsItemElement,\n RadioCardsItemProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'text-
|
|
1
|
+
{"version":3,"sources":["../../src/react/radio-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioCardsProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>;\n\nconst RadioCards = React.forwardRef<RadioCardsElement, RadioCardsProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nRadioCards.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioCardsItemProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>;\n\nconst RadioCardsItem = React.forwardRef<\n RadioCardsItemElement,\n RadioCardsItemProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'text-foreground focus-visible:bg-primary/10 group peer flex cursor-default items-center justify-center rounded-md border p-4 focus-visible:outline focus-visible:outline-2 disabled:cursor-not-allowed disabled:opacity-50 aria-checked:outline aria-checked:outline-2',\n className,\n )}\n {...props}\n />\n );\n});\n\nRadioCardsItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n RadioCards,\n RadioCardsItem,\n type RadioCardsProps,\n type RadioCardsItemProps,\n};\n"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAe/B,cAAAC,MAAA,oBAHN,IAAMC,EAAmB,aACvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,UAAWK,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAGN,EAEAH,EAAW,YAAkC,OAAK,YAWlD,IAAMK,EAAuB,aAG3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,yQACAH,CACF,EACC,GAAGC,EACN,CAEH,EAEDG,EAAe,YAAkC,OAAK","names":["React","RadioGroupPrimitive","jsx","RadioCards","className","props","ref","cn","RadioCardsItem"]}
|
|
@@ -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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var p = _interopRequireWildcard(_react);var _reactradiogroup = require('@radix-ui/react-radio-group'); 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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var p = _interopRequireWildcard(_react);var _reactradiogroup = require('@radix-ui/react-radio-group'); var e = _interopRequireWildcard(_reactradiogroup);var _jsxruntime = require('react/jsx-runtime');var m=p.forwardRef(({className:o,...i},r)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunkHQ4AUOQMjs.b.call(void 0, "grid gap-2",o),...i,ref:r}));m.displayName=e.Root.displayName;var d=p.forwardRef(({className:o,...i},r)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:r,className:_chunkHQ4AUOQMjs.b.call(void 0, "border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...i,children:_jsxruntime.jsx.call(void 0, e.Indicator,{className:"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full"})}));d.displayName=e.Item.displayName;exports.RadioGroup = m; exports.RadioGroupItem = d;
|
|
2
2
|
//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/radio-group.tsx"],"names":["React","RadioGroupPrimitive","jsx","RadioGroup","className","props","ref","cn","RadioGroupItem"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAe/B,cAAAC,MAAA,oBAHN,IAAMC,EAAmB,aACvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,UAAWK,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAGN,EAEAH,EAAW,YAAkC,OAAK,YAWlD,IAAMK,EAAuB,aAG3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,
|
|
1
|
+
{"version":3,"sources":["../../src/react/radio-group.tsx"],"names":["React","RadioGroupPrimitive","jsx","RadioGroup","className","props","ref","cn","RadioGroupItem"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAe/B,cAAAC,MAAA,oBAHN,IAAMC,EAAmB,aACvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,UAAWK,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAGN,EAEAH,EAAW,YAAkC,OAAK,YAWlD,IAAMK,EAAuB,aAG3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,kQACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAqB,YAApB,CAA8B,UAAU,qHAAqH,EAChK,CAEH,EAEDM,EAAe,YAAkC,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>;\n\nconst RadioGroupItem = React.forwardRef<\n RadioGroupItemElement,\n RadioGroupItemProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full\" />\n </RadioGroupPrimitive.Item>\n );\n});\n\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n RadioGroup,\n RadioGroupItem,\n type RadioGroupProps,\n type RadioGroupItemProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{b as t}from"../chunk-LEUB3C3L.mjs";import*as p from"react";import*as
|
|
1
|
+
"use client";import{b as t}from"../chunk-LEUB3C3L.mjs";import*as p from"react";import*as e from"@radix-ui/react-radio-group";import{jsx as a}from"react/jsx-runtime";var m=p.forwardRef(({className:o,...i},r)=>a(e.Root,{className:t("grid gap-2",o),...i,ref:r}));m.displayName=e.Root.displayName;var d=p.forwardRef(({className:o,...i},r)=>a(e.Item,{ref:r,className:t("border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...i,children:a(e.Indicator,{className:"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full"})}));d.displayName=e.Item.displayName;export{m as RadioGroup,d as RadioGroupItem};
|
|
2
2
|
//# sourceMappingURL=radio-group.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>;\n\nconst RadioGroupItem = React.forwardRef<\n RadioGroupItemElement,\n RadioGroupItemProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-
|
|
1
|
+
{"version":3,"sources":["../../src/react/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(\n ({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>;\n\nconst RadioGroupItem = React.forwardRef<\n RadioGroupItemElement,\n RadioGroupItemProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full\" />\n </RadioGroupPrimitive.Item>\n );\n});\n\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n RadioGroup,\n RadioGroupItem,\n type RadioGroupProps,\n type RadioGroupItemProps,\n};\n"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAe/B,cAAAC,MAAA,oBAHN,IAAMC,EAAmB,aACvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,UAAWK,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAGN,EAEAH,EAAW,YAAkC,OAAK,YAWlD,IAAMK,EAAuB,aAG3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAExBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,kQACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAqB,YAApB,CAA8B,UAAU,qHAAqH,EAChK,CAEH,EAEDM,EAAe,YAAkC,OAAK","names":["React","RadioGroupPrimitive","jsx","RadioGroup","className","props","ref","cn","RadioGroupItem"]}
|
package/dist/react/radio.js
CHANGED
|
@@ -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 _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); 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; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var r = _interopRequireWildcard(_react);var _primitive = require('@radix-ui/primitive');var _jsxruntime = require('react/jsx-runtime');var f=r.forwardRef(({className:o,onValueChange:t,onChange:a,...i},n)=>_jsxruntime.jsx.call(void 0, "input",{ref:n,type:"radio",onChange:_primitive.composeEventHandlers.call(void 0, a,d=>_optionalChain([t, 'optionalCall', _ => _(d.currentTarget.value)])),className:_chunkHQ4AUOQMjs.b.call(void 0, "before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...i}));f.displayName="Radio";exports.Radio = f;
|
|
2
2
|
//# sourceMappingURL=radio.js.map
|
package/dist/react/radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/radio.tsx"],"names":["React","composeEventHandlers","jsx","Radio","className","onValueChange","onChange","props","ref","event","cn"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,wBAAAC,MAA4B,sBAgB/B,cAAAC,MAAA,oBAHN,IAAMC,EAAc,aAClB,CAAC,CAAE,UAAAC,EAAW,cAAAC,EAAe,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAE/CN,EAAC,SACC,IAAKM,EACL,KAAK,QACL,SAAUP,EAAqBK,EAAWG,GACxCJ,IAAgBI,EAAM,cAAc,KAAK,CAC3C,EACA,UAAWC,EACT,
|
|
1
|
+
{"version":3,"sources":["../../src/react/radio.tsx"],"names":["React","composeEventHandlers","jsx","Radio","className","onValueChange","onChange","props","ref","event","cn"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,wBAAAC,MAA4B,sBAgB/B,cAAAC,MAAA,oBAHN,IAAMC,EAAc,aAClB,CAAC,CAAE,UAAAC,EAAW,cAAAC,EAAe,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAE/CN,EAAC,SACC,IAAKM,EACL,KAAK,QACL,SAAUP,EAAqBK,EAAWG,GACxCJ,IAAgBI,EAAM,cAAc,KAAK,CAC3C,EACA,UAAWC,EACT,4aACAN,CACF,EACC,GAAGG,EACN,CAGN,EAEAJ,EAAM,YAAc","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(\n ({ className, onValueChange, onChange, ...props }, ref) => {\n return (\n <input\n ref={ref}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) =>\n onValueChange?.(event.currentTarget.value),\n )}\n className={cn(\n 'before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n />\n );\n },\n);\n\nRadio.displayName = 'Radio';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Radio };\n"]}
|
package/dist/react/radio.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{b as e}from"../chunk-LEUB3C3L.mjs";import*as
|
|
1
|
+
"use client";import{b as e}from"../chunk-LEUB3C3L.mjs";import*as r from"react";import{composeEventHandlers as l}from"@radix-ui/primitive";import{jsx as s}from"react/jsx-runtime";var f=r.forwardRef(({className:o,onValueChange:t,onChange:a,...i},n)=>s("input",{ref:n,type:"radio",onChange:l(a,d=>t?.(d.currentTarget.value)),className:e("before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...i}));f.displayName="Radio";export{f as Radio};
|
|
2
2
|
//# sourceMappingURL=radio.mjs.map
|
package/dist/react/radio.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/radio.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(\n ({ className, onValueChange, onChange, ...props }, ref) => {\n return (\n <input\n ref={ref}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) =>\n onValueChange?.(event.currentTarget.value),\n )}\n className={cn(\n 'before:border-
|
|
1
|
+
{"version":3,"sources":["../../src/react/radio.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(\n ({ className, onValueChange, onChange, ...props }, ref) => {\n return (\n <input\n ref={ref}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) =>\n onValueChange?.(event.currentTarget.value),\n )}\n className={cn(\n 'before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n />\n );\n },\n);\n\nRadio.displayName = 'Radio';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Radio };\n"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,OAAS,wBAAAC,MAA4B,sBAgB/B,cAAAC,MAAA,oBAHN,IAAMC,EAAc,aAClB,CAAC,CAAE,UAAAC,EAAW,cAAAC,EAAe,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAE/CN,EAAC,SACC,IAAKM,EACL,KAAK,QACL,SAAUC,EAAqBH,EAAWI,GACxCL,IAAgBK,EAAM,cAAc,KAAK,CAC3C,EACA,UAAWC,EACT,4aACAP,CACF,EACC,GAAGG,EACN,CAGN,EAEAJ,EAAM,YAAc","names":["React","composeEventHandlers","jsx","Radio","className","onValueChange","onChange","props","ref","composeEventHandlers","event","cn"]}
|
package/dist/react/tooltip.js
CHANGED
|
@@ -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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reacttooltip = require('@radix-ui/react-tooltip'); var t = _interopRequireWildcard(_reacttooltip);var _jsxruntime = require('react/jsx-runtime');var m=t.Provider,T= exports.Tooltip =t.Root,P= exports.TooltipTrigger =t.Trigger,d= exports.TooltipContent =a.forwardRef(({className:o,sideOffset:e=6,...i},l)=>_jsxruntime.jsx.call(void 0, t.Portal,{children:_jsxruntime.jsx.call(void 0, t.Content,{ref:l,sideOffset:e,className:_chunkHQ4AUOQMjs.b.call(void 0, "bg-
|
|
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 _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reacttooltip = require('@radix-ui/react-tooltip'); var t = _interopRequireWildcard(_reacttooltip);var _jsxruntime = require('react/jsx-runtime');var m=t.Provider,T= exports.Tooltip =t.Root,P= exports.TooltipTrigger =t.Trigger,d= exports.TooltipContent =a.forwardRef(({className:o,sideOffset:e=6,...i},l)=>_jsxruntime.jsx.call(void 0, t.Portal,{children:_jsxruntime.jsx.call(void 0, t.Content,{ref:l,sideOffset:e,className:_chunkHQ4AUOQMjs.b.call(void 0, "bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-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 rounded-md border px-3 py-1.5 text-xs",o),...i})}));d.displayName=t.Content.displayName;var s=a.forwardRef(({className:o,...e},i)=>_jsxruntime.jsx.call(void 0, t.Arrow,{ref:i,className:_chunkHQ4AUOQMjs.b.call(void 0, "fill-primary",o),...e}));s.displayName=t.Arrow.displayName;exports.Tooltip = T; exports.TooltipArrow = s; exports.TooltipContent = d; exports.TooltipProvider = m; exports.TooltipTrigger = P;
|
|
2
2
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/tooltip.tsx"],"names":["React","TooltipPrimitive","jsx","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","props","ref","cn","TooltipArrow"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BA0C9B,cAAAC,MAAA,oBAhCJ,IAAMC,EAAmC,WAOnCC,EAA2B,OAS3BC,EAAkC,UAWlCC,EAAuB,aAG3B,CAAC,CAAE,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC1CR,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKQ,EACL,WAAYF,EACZ,UAAWG,EACT,
|
|
1
|
+
{"version":3,"sources":["../../src/react/tooltip.tsx"],"names":["React","TooltipPrimitive","jsx","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","props","ref","cn","TooltipArrow"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BA0C9B,cAAAC,MAAA,oBAhCJ,IAAMC,EAAmC,WAOnCC,EAA2B,OAS3BC,EAAkC,UAWlCC,EAAuB,aAG3B,CAAC,CAAE,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC1CR,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKQ,EACL,WAAYF,EACZ,UAAWG,EACT,qwBACAJ,CACF,EACC,GAAGE,EACN,EACF,CACD,EAEDH,EAAe,YAA+B,UAAQ,YAWtD,IAAMM,EAAqB,aACzB,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IACxBR,EAAkB,QAAjB,CACC,IAAKQ,EACL,UAAWC,EAAG,eAAgBJ,CAAS,EACtC,GAAGE,EACN,CAEJ,EAEAG,EAAa,YAA+B,QAAM","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\ntype TooltipProviderProps = React.ComponentProps<\n typeof TooltipPrimitive.Provider\n>;\nconst TooltipProvider = TooltipPrimitive.Provider;\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\ntype TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root>;\nconst Tooltip = TooltipPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\ntype TooltipTriggerProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Trigger\n>;\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\ntype TooltipContentElement = React.ElementRef<typeof TooltipPrimitive.Content>;\ntype TooltipContentProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Content\n>;\n\nconst TooltipContent = React.forwardRef<\n TooltipContentElement,\n TooltipContentProps\n>(({ className, sideOffset = 6, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-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 rounded-md border px-3 py-1.5 text-xs',\n className,\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n));\n\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\ntype TooltipArrowElement = React.ElementRef<typeof TooltipPrimitive.Arrow>;\ntype TooltipArrowProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Arrow\n>;\n\nconst TooltipArrow = React.forwardRef<TooltipArrowElement, TooltipArrowProps>(\n ({ className, ...props }, ref) => (\n <TooltipPrimitive.Arrow\n ref={ref}\n className={cn('fill-primary', className)}\n {...props}\n />\n ),\n);\n\nTooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n TooltipProvider,\n Tooltip,\n TooltipTrigger,\n TooltipContent,\n TooltipArrow,\n type TooltipProviderProps,\n type TooltipProps,\n type TooltipTriggerProps,\n type TooltipContentProps,\n type TooltipArrowProps,\n};\n"]}
|
package/dist/react/tooltip.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{b as
|
|
1
|
+
"use client";import{b as p}from"../chunk-LEUB3C3L.mjs";import*as a from"react";import*as t from"@radix-ui/react-tooltip";import{jsx as r}from"react/jsx-runtime";var m=t.Provider,T=t.Root,P=t.Trigger,d=a.forwardRef(({className:o,sideOffset:e=6,...i},l)=>r(t.Portal,{children:r(t.Content,{ref:l,sideOffset:e,className:p("bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-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 rounded-md border px-3 py-1.5 text-xs",o),...i})}));d.displayName=t.Content.displayName;var s=a.forwardRef(({className:o,...e},i)=>r(t.Arrow,{ref:i,className:p("fill-primary",o),...e}));s.displayName=t.Arrow.displayName;export{T as Tooltip,s as TooltipArrow,d as TooltipContent,m as TooltipProvider,P as TooltipTrigger};
|
|
2
2
|
//# sourceMappingURL=tooltip.mjs.map
|