@codefast/ui 0.0.69 → 0.0.70

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.
Files changed (76) hide show
  1. package/dist/chunk-3COHZ24E.cjs.map +1 -1
  2. package/dist/chunk-4MTN7WZ2.cjs.map +1 -1
  3. package/dist/chunk-5RJANBDJ.cjs.map +1 -1
  4. package/dist/chunk-6UQKMUZG.cjs.map +1 -1
  5. package/dist/chunk-EW7DAPDC.cjs.map +1 -1
  6. package/dist/chunk-JMM2MTPI.cjs.map +1 -1
  7. package/dist/chunk-LOJBMYTH.cjs.map +1 -1
  8. package/dist/chunk-NU6SK3FC.cjs.map +1 -1
  9. package/dist/chunk-T3G5USVY.cjs.map +1 -1
  10. package/dist/chunk-WKKCZQNO.cjs.map +1 -1
  11. package/dist/lib/utils.cjs.map +1 -1
  12. package/dist/react/accordion.cjs.map +1 -1
  13. package/dist/react/alert-dialog.cjs.map +1 -1
  14. package/dist/react/alert.cjs.map +1 -1
  15. package/dist/react/aspect-ratio.cjs.map +1 -1
  16. package/dist/react/avatar.cjs.map +1 -1
  17. package/dist/react/badge.cjs.map +1 -1
  18. package/dist/react/blockquote.cjs.map +1 -1
  19. package/dist/react/box.cjs.map +1 -1
  20. package/dist/react/breadcrumb.cjs.map +1 -1
  21. package/dist/react/button.cjs.map +1 -1
  22. package/dist/react/calendar.cjs.map +1 -1
  23. package/dist/react/card.cjs.map +1 -1
  24. package/dist/react/carousel.cjs.map +1 -1
  25. package/dist/react/checkbox-cards.cjs.map +1 -1
  26. package/dist/react/checkbox-group.cjs.map +1 -1
  27. package/dist/react/checkbox-group.primitive.cjs.map +1 -1
  28. package/dist/react/checkbox.cjs.map +1 -1
  29. package/dist/react/code.cjs.map +1 -1
  30. package/dist/react/collapsible.cjs.map +1 -1
  31. package/dist/react/command.cjs.map +1 -1
  32. package/dist/react/container.cjs.map +1 -1
  33. package/dist/react/context-menu.cjs.map +1 -1
  34. package/dist/react/data-table.cjs.map +1 -1
  35. package/dist/react/dialog.cjs.map +1 -1
  36. package/dist/react/drawer.cjs.map +1 -1
  37. package/dist/react/dropdown-menu.cjs.map +1 -1
  38. package/dist/react/em.cjs.map +1 -1
  39. package/dist/react/form.cjs.map +1 -1
  40. package/dist/react/heading.cjs.map +1 -1
  41. package/dist/react/hover-card.cjs.map +1 -1
  42. package/dist/react/input-otp.cjs.map +1 -1
  43. package/dist/react/input.cjs.map +1 -1
  44. package/dist/react/kbd.cjs.map +1 -1
  45. package/dist/react/label.cjs.map +1 -1
  46. package/dist/react/menubar.cjs.map +1 -1
  47. package/dist/react/navigation-menu.cjs.map +1 -1
  48. package/dist/react/pagination.cjs.map +1 -1
  49. package/dist/react/popover.cjs.map +1 -1
  50. package/dist/react/pre.cjs.map +1 -1
  51. package/dist/react/progress.cjs.map +1 -1
  52. package/dist/react/quote.cjs.map +1 -1
  53. package/dist/react/radio-cards.cjs.map +1 -1
  54. package/dist/react/radio-group.cjs.map +1 -1
  55. package/dist/react/radio.cjs.map +1 -1
  56. package/dist/react/resizable.cjs.map +1 -1
  57. package/dist/react/scroll-area.cjs.map +1 -1
  58. package/dist/react/section.cjs.map +1 -1
  59. package/dist/react/select.cjs.map +1 -1
  60. package/dist/react/separator.cjs.map +1 -1
  61. package/dist/react/sheet.cjs.map +1 -1
  62. package/dist/react/skeleton.cjs.map +1 -1
  63. package/dist/react/slider.cjs.map +1 -1
  64. package/dist/react/sonner.cjs.map +1 -1
  65. package/dist/react/spinner.cjs.map +1 -1
  66. package/dist/react/strong.cjs.map +1 -1
  67. package/dist/react/switch.cjs.map +1 -1
  68. package/dist/react/table.cjs.map +1 -1
  69. package/dist/react/tabs.cjs.map +1 -1
  70. package/dist/react/text-input.cjs.map +1 -1
  71. package/dist/react/text.cjs.map +1 -1
  72. package/dist/react/textarea.cjs.map +1 -1
  73. package/dist/react/toggle-group.cjs.map +1 -1
  74. package/dist/react/toggle.cjs.map +1 -1
  75. package/dist/react/tooltip.cjs.map +1 -1
  76. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/input.tsx"],"names":["React","tv","createContextScope","useComposedRefs","jsx","jsxs","inputVariants","root","slot","INPUT_NAME","createInputContext","createInputScope","InputProvider","useInputContext","Input","__scopeInput","className","prefix","suffix","loading","loaderPosition","inputSize","children","props","inputRef","handlePointerDown","event","inputElement","Spinner","INPUT_SLOT_NAME","InputSlot","forwardedRef","context","composedInputRef"],"mappings":"yCAEA,UAAYA,MAAW,QACvB,OAAS,MAAAC,MAA6B,oBACtC,OAAS,sBAAAC,MAAsC,0BAC/C,OAAS,mBAAAC,MAAuB,+BAkG1B,OAC4C,OAAAC,EAD5C,QAAAC,MAAA,oBA3FN,IAAMC,EAAgBL,EAAG,CACvB,MAAO,CACL,KAAM,2RACN,KAAM,gLACR,EACA,SAAU,CACR,UAAW,CACT,QAAS,CACP,KAAM,MACR,EACA,GAAI,CACF,KAAM,KACR,EACA,GAAI,CACF,KAAM,KACR,EACA,GAAI,CACF,KAAM,MACR,CACF,CACF,EACA,gBAAiB,CACf,UAAW,SACb,CACF,CAAC,EAIK,CAAE,KAAAM,EAAM,KAAAC,CAAK,EAAIF,EAAc,EAM/BG,EAAa,QAGb,CAACC,EAAoBC,CAAgB,EAAIT,EAAmBO,CAAU,EAOtE,CAACG,EAAeC,CAAe,EAAIH,EAAsCD,CAAU,EAczF,SAASK,EAAM,CACb,aAAAC,EACA,UAAAC,EACA,OAAAC,EACA,OAAAC,EACA,QAAAC,EACA,eAAAC,EACA,UAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAA+C,CAC7C,IAAMC,EAAiB,SAAyB,IAAI,EAE9CC,EAAgEC,GAAU,CAG9E,GAFeA,EAAM,OAEV,QAAQ,kBAAkB,EACnC,OAGF,IAAMC,EAAeH,EAAS,QAEzBG,GAIL,sBAAsB,IAAM,CAC1BA,EAAa,MAAM,CACrB,CAAC,CACH,EAEA,OACEvB,EAACQ,EAAA,CAAc,SAAUY,EAAU,MAAOT,EACxC,SAAAV,EAAC,OAAI,UAAWE,EAAK,CAAE,UAAAc,EAAW,UAAAL,CAAU,CAAC,EAAI,GAAGO,EAAO,KAAK,eAAe,cAAeE,EAC3F,UAAAN,GAAWC,IAAmB,SAAWhB,EAACwB,EAAA,EAAQ,EAAKX,EACvDK,EACAH,GAAWC,IAAmB,SAAWhB,EAACwB,EAAA,EAAQ,EAAKV,GAC1D,EACF,CAEJ,CAMA,IAAMW,EAAkB,YAKlBC,EAAkB,aACtB,CAAC,CAAE,aAAAf,EAAc,UAAAC,EAAW,GAAGO,CAAM,EAAgCQ,IAAiB,CACpF,IAAMC,EAAUnB,EAAgBgB,EAAiBd,CAAY,EACvDkB,EAAmB9B,EAAgB4B,EAAcC,EAAQ,QAAQ,EAEvE,OAAO5B,EAAC,SAAM,IAAK6B,EAAkB,UAAWzB,EAAK,CAAE,UAAAQ,CAAU,CAAC,EAAG,KAAK,OAAQ,GAAGO,EAAO,CAC9F,CACF,EAEAO,EAAU,YAAc","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { Spinner } from './spinner';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst inputVariants = tv({\n slots: {\n root: 'border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 has-[input[disabled]]:cursor-default has-[input[disabled]]:opacity-50 [&_svg]:size-4',\n slot: 'placeholder:text-muted-foreground size-full flex-1 bg-transparent text-sm outline-none file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default',\n },\n variants: {\n inputSize: {\n default: {\n root: 'h-10',\n },\n xs: {\n root: 'h-8',\n },\n sm: {\n root: 'h-9',\n },\n lg: {\n root: 'h-11',\n },\n },\n },\n defaultVariants: {\n inputSize: 'default',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\nconst { root, slot } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Context: Input\n * -------------------------------------------------------------------------- */\n\nconst INPUT_NAME = 'Input';\n\ntype ScopedProps<P> = P & { __scopeInput?: Scope };\nconst [createInputContext, createInputScope] = createContextScope(INPUT_NAME);\n\ninterface InputContextValue {\n inputRef: React.RefObject<HTMLInputElement>;\n disabled?: boolean;\n}\n\nconst [InputProvider, useInputContext] = createInputContext<InputContextValue>(INPUT_NAME);\n\n/* -----------------------------------------------------------------------------\n * Component: Input\n * -------------------------------------------------------------------------- */\n\ninterface InputProps extends React.PropsWithChildren, InputVariantsProps {\n className?: string | undefined;\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nfunction Input({\n __scopeInput,\n className,\n prefix,\n suffix,\n loading,\n loaderPosition,\n inputSize,\n children,\n ...props\n}: ScopedProps<InputProps>): React.JSX.Element {\n const inputRef = React.useRef<HTMLInputElement>(null);\n\n const handlePointerDown: React.PointerEventHandler<HTMLDivElement> = (event) => {\n const target = event.target as HTMLElement;\n\n if (target.closest('input, a, button')) {\n return;\n }\n\n const inputElement = inputRef.current;\n\n if (!inputElement) {\n return;\n }\n\n requestAnimationFrame(() => {\n inputElement.focus();\n });\n };\n\n return (\n <InputProvider inputRef={inputRef} scope={__scopeInput}>\n <div className={root({ inputSize, className })} {...props} role=\"presentation\" onPointerDown={handlePointerDown}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n {children}\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </div>\n </InputProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputSlot\n * -------------------------------------------------------------------------- */\n\nconst INPUT_SLOT_NAME = 'InputSlot';\n\ntype InputSlotElement = HTMLInputElement;\ntype InputSlotProps = React.InputHTMLAttributes<HTMLInputElement>;\n\nconst InputSlot = React.forwardRef<InputSlotElement, InputSlotProps>(\n ({ __scopeInput, className, ...props }: ScopedProps<InputSlotProps>, forwardedRef) => {\n const context = useInputContext(INPUT_SLOT_NAME, __scopeInput);\n const composedInputRef = useComposedRefs(forwardedRef, context.inputRef);\n\n return <input ref={composedInputRef} className={slot({ className })} type=\"text\" {...props} />;\n },\n);\n\nInputSlot.displayName = 'Input';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n createInputScope,\n Input,\n InputSlot,\n inputVariants,\n type InputProps,\n type InputSlotProps,\n type InputVariantsProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-3COHZ24E.cjs","../src/react/input.tsx"],"names":["inputVariants","tv","root","slot","INPUT_NAME","createInputContext","createInputScope","createContextScope","InputProvider","useInputContext","Input","__scopeInput","className","prefix","suffix","loading","loaderPosition","inputSize","children","props","inputRef","handlePointerDown","event","inputElement","jsx","jsxs","Spinner","INPUT_SLOT_NAME","InputSlot","forwardedRef","context","composedInputRef","useComposedRefs"],"mappings":"AAAA,mZAAwC,uECEjB,qDACe,uDACS,gEACf,+CAkG1B,IA3FAA,CAAAA,CAAgBC,kCAAAA,CACpB,KAAA,CAAO,CACL,IAAA,CAAM,0RAAA,CACN,IAAA,CAAM,gLACR,CAAA,CACA,QAAA,CAAU,CACR,SAAA,CAAW,CACT,OAAA,CAAS,CACP,IAAA,CAAM,MACR,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KACR,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KACR,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,MACR,CACF,CACF,CAAA,CACA,eAAA,CAAiB,CACf,SAAA,CAAW,SACb,CACF,CAAC,CAAA,CAIK,CAAE,IAAA,CAAAC,CAAAA,CAAM,IAAA,CAAAC,CAAK,CAAA,CAAIH,CAAAA,CAAc,CAAA,CAM/BI,CAA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B,QAAA,CAAWQ,6BAAAA,mBAACE,CAAA,CAAA,CAAQ,CAAA,CAAKZ,CAAAA,CAAAA,CAC1D,CAAA,CACF,CAEJ,CAMA,IAAMa,CAAAA,CAAkB,WAAA,CAKlBC,CAAAA,aAAkB,CAAA,CAAA,UAAA,CACtB,CAAC,CAAE,YAAA,CAAAjB,CAAAA,CAAc,SAAA,CAAAC,CAAAA,CAAW,GAAGO,CAAM,CAAA,CAAgCU,CAAAA,CAAAA,EAAiB,CACpF,IAAMC,CAAAA,CAAUrB,CAAAA,CAAgBkB,CAAAA,CAAiBhB,CAAY,CAAA,CACvDoB,CAAAA,CAAmBC,+CAAAA,CAAgBH,CAAcC,CAAAA,CAAQ,QAAQ,CAAA,CAEvE,OAAON,6BAAAA,OAAC,CAAA,CAAM,GAAA,CAAKO,CAAAA,CAAkB,SAAA,CAAW5B,CAAAA,CAAK,CAAE,SAAA,CAAAS,CAAU,CAAC,CAAA,CAAG,IAAA,CAAK,MAAA,CAAQ,GAAGO,CAAAA,CAAO,CAC9F,CACF,CAAA,CAEAS,CAAAA,CAAU,WAAA,CAAc,OAAA,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-3COHZ24E.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { Spinner } from './spinner';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst inputVariants = tv({\n slots: {\n root: 'border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 has-[input[disabled]]:cursor-default has-[input[disabled]]:opacity-50 [&_svg]:size-4',\n slot: 'placeholder:text-muted-foreground size-full flex-1 bg-transparent text-sm outline-none file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default',\n },\n variants: {\n inputSize: {\n default: {\n root: 'h-10',\n },\n xs: {\n root: 'h-8',\n },\n sm: {\n root: 'h-9',\n },\n lg: {\n root: 'h-11',\n },\n },\n },\n defaultVariants: {\n inputSize: 'default',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\nconst { root, slot } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Context: Input\n * -------------------------------------------------------------------------- */\n\nconst INPUT_NAME = 'Input';\n\ntype ScopedProps<P> = P & { __scopeInput?: Scope };\nconst [createInputContext, createInputScope] = createContextScope(INPUT_NAME);\n\ninterface InputContextValue {\n inputRef: React.RefObject<HTMLInputElement>;\n disabled?: boolean;\n}\n\nconst [InputProvider, useInputContext] = createInputContext<InputContextValue>(INPUT_NAME);\n\n/* -----------------------------------------------------------------------------\n * Component: Input\n * -------------------------------------------------------------------------- */\n\ninterface InputProps extends React.PropsWithChildren, InputVariantsProps {\n className?: string | undefined;\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nfunction Input({\n __scopeInput,\n className,\n prefix,\n suffix,\n loading,\n loaderPosition,\n inputSize,\n children,\n ...props\n}: ScopedProps<InputProps>): React.JSX.Element {\n const inputRef = React.useRef<HTMLInputElement>(null);\n\n const handlePointerDown: React.PointerEventHandler<HTMLDivElement> = (event) => {\n const target = event.target as HTMLElement;\n\n if (target.closest('input, a, button')) {\n return;\n }\n\n const inputElement = inputRef.current;\n\n if (!inputElement) {\n return;\n }\n\n requestAnimationFrame(() => {\n inputElement.focus();\n });\n };\n\n return (\n <InputProvider inputRef={inputRef} scope={__scopeInput}>\n <div className={root({ inputSize, className })} {...props} role=\"presentation\" onPointerDown={handlePointerDown}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n {children}\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </div>\n </InputProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputSlot\n * -------------------------------------------------------------------------- */\n\nconst INPUT_SLOT_NAME = 'InputSlot';\n\ntype InputSlotElement = HTMLInputElement;\ntype InputSlotProps = React.InputHTMLAttributes<HTMLInputElement>;\n\nconst InputSlot = React.forwardRef<InputSlotElement, InputSlotProps>(\n ({ __scopeInput, className, ...props }: ScopedProps<InputSlotProps>, forwardedRef) => {\n const context = useInputContext(INPUT_SLOT_NAME, __scopeInput);\n const composedInputRef = useComposedRefs(forwardedRef, context.inputRef);\n\n return <input ref={composedInputRef} className={slot({ className })} type=\"text\" {...props} />;\n },\n);\n\nInputSlot.displayName = 'Input';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n createInputScope,\n Input,\n InputSlot,\n inputVariants,\n type InputProps,\n type InputSlotProps,\n type InputVariantsProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/dialog.tsx"],"names":["React","DialogPrimitive","Cross2Icon","jsx","jsxs","Dialog","DialogTrigger","DialogClose","DialogContent","children","className","props","forwardedRef","cn","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription"],"mappings":"oCAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBACjC,OAAS,cAAAC,MAAkB,wBA4CjB,OACE,OAAAC,EADF,QAAAC,MAAA,oBApCV,IAAMC,EAAyB,OAOzBC,EAAgC,UAOhCC,EAA8B,QAS9BC,EAAsB,aAC1B,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCT,EAAiB,SAAhB,CACC,SAAAA,EAAiB,UAAhB,CAAwB,UAAU,mPACjC,SAAAC,EAAiB,UAAhB,CACC,IAAKQ,EACL,UAAWC,EACT,yVACAH,CACF,EACC,GAAGC,EAEH,UAAAF,EACDL,EAAiB,QAAhB,CAAsB,UAAU,8PAC/B,UAAAD,EAACD,EAAA,CAAW,UAAU,SAAS,EAC/BC,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,EACF,EACF,CAEJ,EAEAK,EAAc,YAA8B,UAAQ,YAQpD,SAASM,EAAa,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAyC,CACnF,OACER,EAAC,UACC,UAAWU,EAAG,yEAA0EH,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAW,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAuC,CAC/E,OAAOR,EAAC,QAAK,UAAWU,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC/E,CAQA,SAASK,EAAa,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAyC,CACnF,OACER,EAAC,UACC,UAAWU,EAAG,iFAAkFH,CAAS,EACxG,GAAGC,EACN,CAEJ,CASA,IAAMM,EAAoB,aAAiD,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACnGT,EAAiB,QAAhB,CACC,IAAKS,EACL,UAAWC,EAAG,oDAAqDH,CAAS,EAC3E,GAAGC,EACN,CACD,EAEDM,EAAY,YAA8B,QAAM,YAShD,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAiB,cAAhB,CACC,IAAKS,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAO,EAAkB,YAA8B,cAAY","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\ntype DialogProps = React.ComponentProps<typeof DialogPrimitive.Root>;\nconst Dialog = DialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype DialogTriggerProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ntype DialogCloseProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;\nconst DialogClose = DialogPrimitive.Close;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentElement = React.ElementRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\nconst DialogContent = React.forwardRef<DialogContentElement, DialogContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <DialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n ),\n);\n\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\ntype DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogHeader({ className, ...props }: DialogHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype DialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogBody({ className, ...props }: DialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\ntype DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogFooter({ className, ...props }: DialogFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\ntype DialogTitleElement = React.ElementRef<typeof DialogPrimitive.Title>;\ntype DialogTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;\n\nconst DialogTitle = React.forwardRef<DialogTitleElement, DialogTitleProps>(({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\n\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionElement = React.ElementRef<typeof DialogPrimitive.Description>;\ntype DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;\n\nconst DialogDescription = React.forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogBody,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n type DialogContentProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-4MTN7WZ2.cjs","../src/react/dialog.tsx"],"names":["Dialog","DialogTrigger","DialogClose","DialogContent","children","className","props","forwardedRef","jsx","jsxs","cn","Cross2Icon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription"],"mappings":"AAAA,mZAAmC,uECEZ,oGACU,mDACN,+CA4CjB,IApCJA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAAgC,CAAA,CAAA,OAAA,CAOhCC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAS9BC,CAAAA,aAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,CAAiB,CAAA,MAAA,CAAhB,CACC,QAAA,CAAAA,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CAAwB,SAAA,CAAU,kPAAA,CACjC,QAAA,CAAAC,8BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,wVACT,CACAL,CACF,CAAA,CACC,GAAGC,CAAAA,CAEH,QAAA,CAAA,CAAAF,CAAAA,CACDK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A,CAC3E,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDS,CAAAA,CAAY,WAAA,CAA8B,CAAA,CAAA,KAAA,CAAM,WAAA,CAShD,IAAMC,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAX,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAiB,CAAA,WAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWG,iCAAAA,+BAAG,CAAiCL,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAU,CAAAA,CAAkB,WAAA,CAA8B,CAAA,CAAA,WAAA,CAAY,WAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-4MTN7WZ2.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\ntype DialogProps = React.ComponentProps<typeof DialogPrimitive.Root>;\nconst Dialog = DialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype DialogTriggerProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ntype DialogCloseProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;\nconst DialogClose = DialogPrimitive.Close;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentElement = React.ElementRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\nconst DialogContent = React.forwardRef<DialogContentElement, DialogContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <DialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n ),\n);\n\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\ntype DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogHeader({ className, ...props }: DialogHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype DialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogBody({ className, ...props }: DialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\ntype DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogFooter({ className, ...props }: DialogFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\ntype DialogTitleElement = React.ElementRef<typeof DialogPrimitive.Title>;\ntype DialogTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;\n\nconst DialogTitle = React.forwardRef<DialogTitleElement, DialogTitleProps>(({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\n\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionElement = React.ElementRef<typeof DialogPrimitive.Description>;\ntype DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;\n\nconst DialogDescription = React.forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogBody,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n type DialogContentProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/checkbox-group.primitive.tsx"],"names":["React","CheckboxPrimitive","createCheckboxScope","createContextScope","RovingFocusGroup","createRovingFocusGroupScope","useControllableState","useDirection","Primitive","jsx","CHECKBOX_GROUP_NAME","createCheckboxGroupContext","createCheckboxGroupScope","useRovingFocusGroupScope","useCheckboxScope","CheckboxGroupProvider","useCheckboxGroupContext","CheckboxGroup","__scopeCheckboxGroup","name","defaultValue","valueProp","required","disabled","orientation","dir","loop","onValueChange","props","forwardedRef","rovingFocusGroupScope","direction","value","setValue","handleItemCheck","itemValue","prevValue","handleItemUncheck","val","ITEM_NAME","CheckboxGroupItem","context","isDisabled","checkboxScope","checked","checkedState","INDICATOR_NAME","CheckboxGroupIndicator","Root","Item","Indicator"],"mappings":"AAAA,UAAYA,MAAW,QACvB,UAAYC,MAAuB,2BACnC,OAAS,uBAAAC,MAA2B,2BACpC,OAAS,sBAAAC,MAAsC,0BAC/C,UAAYC,MAAsB,+BAClC,OAAS,+BAAAC,MAAmC,+BAC5C,OAAS,wBAAAC,MAA4B,yCACrC,OAAS,gBAAAC,MAAoB,4BAC7B,OAAS,aAAAC,MAAiB,4BA+FhB,cAAAC,MAAA,oBAzFV,IAAMC,EAAsB,gBAItB,CAACC,EAA4BC,CAAwB,EAAIT,EAAmBO,EAAqB,CACrGL,EACAH,CACF,CAAC,EAEKW,EAA2BR,EAA4B,EACvDS,EAAmBZ,EAAoB,EAWvC,CAACa,EAAuBC,CAAuB,EACnDL,EAAsDD,CAAmB,EAgBrEO,EAAsB,aAC1B,CACE,CACE,qBAAAC,EACA,KAAAC,EACA,aAAAC,EACA,MAAOC,EACP,SAAAC,EAAW,GACX,SAAAC,EAAW,GACX,YAAAC,EACA,IAAAC,EACA,KAAAC,EAAO,GACP,cAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAA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ACC,IAAKoB,EACL,QAASe,EACT,SAAUF,EACV,KAAMD,EAAQ,KACd,SAAUA,EAAQ,SACjB,GAAGE,EACH,GAAGf,EACJ,gBAAkBiB,GAAiB,CAC7BA,EACFJ,EAAQ,YAAYb,EAAM,KAAK,EAE/Ba,EAAQ,cAAcb,EAAM,KAAK,CAErC,EACF,EACF,CAEJ,CACF,EAEAY,EAAkB,YAAcD,EAMhC,IAAMO,EAAiB,GAAGpC,CAAmB,YAKvCqC,EAA+B,aACnC,CAAC,CAAE,qBAAA7B,EAAsB,GAAGU,CAAM,EAA6CC,IAAiB,CAC9F,IAAMc,EAAgB7B,EAAiBI,CAAoB,EAE3D,OAAOT,EAAmB,YAAlB,CAA4B,IAAKoB,EAAe,GAAGc,EAAgB,GAAGf,EAAO,CACvF,CACF,EAEAmB,EAAuB,YAAcD,EAMrC,IAAME,EAAO/B,EACPgC,EAAOT,EACPU,EAAYH","sourcesContent":["import * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { createCheckboxScope } from '@radix-ui/react-checkbox';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport * as RovingFocusGroup from '@radix-ui/react-roving-focus';\nimport { createRovingFocusGroupScope } from '@radix-ui/react-roving-focus';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { useDirection } from '@radix-ui/react-direction';\nimport { Primitive } from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -----------------------------------------------------------------------------------------------*/\n\nconst CHECKBOX_GROUP_NAME = 'CheckboxGroup';\n\ntype ScopedProps<P> = P & { __scopeCheckboxGroup?: Scope };\n\nconst [createCheckboxGroupContext, createCheckboxGroupScope] = createContextScope(CHECKBOX_GROUP_NAME, [\n createRovingFocusGroupScope,\n createCheckboxScope,\n]);\n\nconst useRovingFocusGroupScope = createRovingFocusGroupScope();\nconst useCheckboxScope = createCheckboxScope();\n\ninterface CheckboxGroupContextValue {\n disabled: boolean;\n onItemCheck: (value: string) => void;\n onItemUncheck: (value: string) => void;\n required: boolean;\n name?: string;\n value?: string[];\n}\n\nconst [CheckboxGroupProvider, useCheckboxGroupContext] =\n createCheckboxGroupContext<CheckboxGroupContextValue>(CHECKBOX_GROUP_NAME);\n\ntype CheckboxGroupElement = React.ElementRef<typeof Primitive.div>;\n\ninterface CheckboxGroupProps extends React.ComponentPropsWithoutRef<typeof Primitive.div> {\n defaultValue?: string[];\n dir?: RovingFocusGroup.RovingFocusGroupProps['dir'];\n disabled?: React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>['disabled'];\n loop?: RovingFocusGroup.RovingFocusGroupProps['loop'];\n name?: CheckboxGroupContextValue['name'];\n onValueChange?: (value: string[]) => void;\n orientation?: RovingFocusGroup.RovingFocusGroupProps['orientation'];\n required?: React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>['required'];\n value?: CheckboxGroupContextValue['value'];\n}\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n (\n {\n __scopeCheckboxGroup,\n name,\n defaultValue,\n value: valueProp,\n required = false,\n disabled = false,\n orientation,\n dir,\n loop = true,\n onValueChange,\n ...props\n }: ScopedProps<CheckboxGroupProps>,\n forwardedRef,\n ) => {\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);\n const direction = useDirection(dir);\n const [value = [], setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange,\n });\n\n const handleItemCheck = React.useCallback(\n (itemValue: string) => {\n setValue((prevValue = []) => [...prevValue, itemValue]);\n },\n [setValue],\n );\n\n const handleItemUncheck = React.useCallback(\n (itemValue: string) => {\n setValue((prevValue = []) => prevValue.filter((val) => val !== itemValue));\n },\n [setValue],\n );\n\n return (\n <CheckboxGroupProvider\n disabled={disabled}\n name={name}\n required={required}\n scope={__scopeCheckboxGroup}\n value={value}\n onItemCheck={handleItemCheck}\n onItemUncheck={handleItemUncheck}\n >\n <RovingFocusGroup.Root asChild {...rovingFocusGroupScope} dir={direction} loop={loop} orientation={orientation}>\n {/* eslint-disable-next-line react/jsx-pascal-case -- radix-ui */}\n <Primitive.div\n ref={forwardedRef}\n data-disabled={disabled ? '' : undefined}\n dir={direction}\n role=\"group\"\n {...props}\n />\n </RovingFocusGroup.Root>\n </CheckboxGroupProvider>\n );\n },\n);\n\nCheckboxGroup.displayName = CHECKBOX_GROUP_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -----------------------------------------------------------------------------------------------*/\n\nconst ITEM_NAME = `${CHECKBOX_GROUP_NAME}Item`;\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxPrimitive.Root>;\n\ninterface CheckboxGroupItemProps\n extends Omit<\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n 'checked' | 'defaultChecked' | 'onCheckedChange' | 'name'\n > {\n value: string;\n}\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ __scopeCheckboxGroup, disabled, ...props }: ScopedProps<CheckboxGroupItemProps>, forwardedRef) => {\n const context = useCheckboxGroupContext(ITEM_NAME, __scopeCheckboxGroup);\n const isDisabled = context.disabled || disabled;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);\n const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);\n const checked = context.value?.includes(props.value);\n\n return (\n <RovingFocusGroup.Item asChild {...rovingFocusGroupScope} active={checked} focusable={!isDisabled}>\n <CheckboxPrimitive.Root\n ref={forwardedRef}\n checked={checked}\n disabled={isDisabled}\n name={context.name}\n required={context.required}\n {...checkboxScope}\n {...props}\n onCheckedChange={(checkedState) => {\n if (checkedState) {\n context.onItemCheck(props.value);\n } else {\n context.onItemUncheck(props.value);\n }\n }}\n />\n </RovingFocusGroup.Item>\n );\n },\n);\n\nCheckboxGroupItem.displayName = ITEM_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * Component: CheckboxGroupIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = `${CHECKBOX_GROUP_NAME}Indicator`;\n\ntype CheckboxGroupIndicatorElement = React.ElementRef<typeof CheckboxPrimitive.Indicator>;\ntype CheckboxGroupIndicatorProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Indicator>;\n\nconst CheckboxGroupIndicator = React.forwardRef<CheckboxGroupIndicatorElement, CheckboxGroupIndicatorProps>(\n ({ __scopeCheckboxGroup, ...props }: ScopedProps<CheckboxGroupIndicatorProps>, forwardedRef) => {\n const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);\n\n return <CheckboxPrimitive.Indicator ref={forwardedRef} {...checkboxScope} {...props} />;\n },\n);\n\nCheckboxGroupIndicator.displayName = INDICATOR_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nconst Root = CheckboxGroup;\nconst Item = CheckboxGroupItem;\nconst Indicator = CheckboxGroupIndicator;\n\nexport {\n createCheckboxGroupScope,\n CheckboxGroup,\n CheckboxGroupItem,\n CheckboxGroupIndicator,\n Root,\n Item,\n Indicator,\n type CheckboxGroupProps,\n type CheckboxGroupItemProps,\n type CheckboxGroupIndicatorProps,\n};\n"]}
1
+ {"version":3,"sources":["../src/react/checkbox-group.primitive.tsx"],"names":["CHECKBOX_GROUP_NAME","createCheckboxGroupContext","createCheckboxGroupScope","createContextScope","createRovingFocusGroupScope","createCheckboxScope","useRovingFocusGroupScope","useCheckboxScope","CheckboxGroupProvider","useCheckboxGroupContext","CheckboxGroup","__scopeCheckboxGroup","name","defaultValue","valueProp","required","disabled","orientation","dir","loop","onValueChange","props","forwardedRef","rovingFocusGroupScope","direction","useDirection","value","setValue","useControllableState","handleItemCheck","itemValue","prevValue","handleItemUncheck","val","jsx","Primitive","ITEM_NAME"],"mappings":"AAAA,s6BAAuB,0GACY,uDAEY,oHACb,mFAEG,2DACR,2DACH,+CA+FhB,IAzF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AsB,CACrBH,CAAAA,CAAS,CAACI,CAAAA,CAAY,CAAC,CAAA,CAAA,EAAMA,CAAAA,CAAU,MAAA,CAAQE,CAAAA,EAAQA,CAAAA,GAAQH,CAAS,CAAC,CAC3E,CAAA,CACA,CAACH,CAAQ,CACX,CAAA,CAEA,OACEO,6BAAAA,CAAC1B,CAAA,CACC,QAAA,CAAUQ,CAAAA,CACV,IAAA,CAAMJ,CAAAA,CACN,QAAA,CAAUG,CAAAA,CACV,KAAA,CAAOJ,CAAAA,CACP,KAAA,CAAOe,CAAAA,CACP,WAAA,CAAaG,CAAAA,CACb,aAAA,CAAeG,CAAAA,CAEf,QAAA,CAAAE,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CAAsB,OAAA,CAAO,CAAA,CAAA,CAAE,GAAGX,CAAAA,CAAuB,GAAA,CAAKC,CAAAA,CAAW,IAAA,CAAML,CAAAA,CAAM,WAAA,CAAaF,CAAAA,CAEjG,QAAA,CAAAiB,6BAAAA,yBAACC,CAAU,GAAA,CAAV,CACC,GAAA,CAAKb,CAAAA,CACL,eAAA,CAAeN,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAC/B,GAAA,CAAKQ,CAAAA,CACL,IAAA,CAAK,OAAA,CACJ,GAAGH,CAAAA,CACN,CAAA,CACF,CAAA,CACF,CAEJ,CACF,CAAA,CAEAX,CAAAA,CAAc,WAAA,CAAcV,CAAAA,CAM5B,IAAMoC,CAAAA,CAAY,CAAA,EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-5RJANBDJ.cjs","sourcesContent":["import * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { createCheckboxScope } from '@radix-ui/react-checkbox';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport * as RovingFocusGroup from '@radix-ui/react-roving-focus';\nimport { createRovingFocusGroupScope } from '@radix-ui/react-roving-focus';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { useDirection } from '@radix-ui/react-direction';\nimport { Primitive } from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -----------------------------------------------------------------------------------------------*/\n\nconst CHECKBOX_GROUP_NAME = 'CheckboxGroup';\n\ntype ScopedProps<P> = P & { __scopeCheckboxGroup?: Scope };\n\nconst [createCheckboxGroupContext, createCheckboxGroupScope] = createContextScope(CHECKBOX_GROUP_NAME, [\n createRovingFocusGroupScope,\n createCheckboxScope,\n]);\n\nconst useRovingFocusGroupScope = createRovingFocusGroupScope();\nconst useCheckboxScope = createCheckboxScope();\n\ninterface CheckboxGroupContextValue {\n disabled: boolean;\n onItemCheck: (value: string) => void;\n onItemUncheck: (value: string) => void;\n required: boolean;\n name?: string;\n value?: string[];\n}\n\nconst [CheckboxGroupProvider, useCheckboxGroupContext] =\n createCheckboxGroupContext<CheckboxGroupContextValue>(CHECKBOX_GROUP_NAME);\n\ntype CheckboxGroupElement = React.ElementRef<typeof Primitive.div>;\n\ninterface CheckboxGroupProps extends React.ComponentPropsWithoutRef<typeof Primitive.div> {\n defaultValue?: string[];\n dir?: RovingFocusGroup.RovingFocusGroupProps['dir'];\n disabled?: React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>['disabled'];\n loop?: RovingFocusGroup.RovingFocusGroupProps['loop'];\n name?: CheckboxGroupContextValue['name'];\n onValueChange?: (value: string[]) => void;\n orientation?: RovingFocusGroup.RovingFocusGroupProps['orientation'];\n required?: React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>['required'];\n value?: CheckboxGroupContextValue['value'];\n}\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n (\n {\n __scopeCheckboxGroup,\n name,\n defaultValue,\n value: valueProp,\n required = false,\n disabled = false,\n orientation,\n dir,\n loop = true,\n onValueChange,\n ...props\n }: ScopedProps<CheckboxGroupProps>,\n forwardedRef,\n ) => {\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);\n const direction = useDirection(dir);\n const [value = [], setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange,\n });\n\n const handleItemCheck = React.useCallback(\n (itemValue: string) => {\n setValue((prevValue = []) => [...prevValue, itemValue]);\n },\n [setValue],\n );\n\n const handleItemUncheck = React.useCallback(\n (itemValue: string) => {\n setValue((prevValue = []) => prevValue.filter((val) => val !== itemValue));\n },\n [setValue],\n );\n\n return (\n <CheckboxGroupProvider\n disabled={disabled}\n name={name}\n required={required}\n scope={__scopeCheckboxGroup}\n value={value}\n onItemCheck={handleItemCheck}\n onItemUncheck={handleItemUncheck}\n >\n <RovingFocusGroup.Root asChild {...rovingFocusGroupScope} dir={direction} loop={loop} orientation={orientation}>\n {/* eslint-disable-next-line react/jsx-pascal-case -- radix-ui */}\n <Primitive.div\n ref={forwardedRef}\n data-disabled={disabled ? '' : undefined}\n dir={direction}\n role=\"group\"\n {...props}\n />\n </RovingFocusGroup.Root>\n </CheckboxGroupProvider>\n );\n },\n);\n\nCheckboxGroup.displayName = CHECKBOX_GROUP_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -----------------------------------------------------------------------------------------------*/\n\nconst ITEM_NAME = `${CHECKBOX_GROUP_NAME}Item`;\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxPrimitive.Root>;\n\ninterface CheckboxGroupItemProps\n extends Omit<\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n 'checked' | 'defaultChecked' | 'onCheckedChange' | 'name'\n > {\n value: string;\n}\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ __scopeCheckboxGroup, disabled, ...props }: ScopedProps<CheckboxGroupItemProps>, forwardedRef) => {\n const context = useCheckboxGroupContext(ITEM_NAME, __scopeCheckboxGroup);\n const isDisabled = context.disabled || disabled;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);\n const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);\n const checked = context.value?.includes(props.value);\n\n return (\n <RovingFocusGroup.Item asChild {...rovingFocusGroupScope} active={checked} focusable={!isDisabled}>\n <CheckboxPrimitive.Root\n ref={forwardedRef}\n checked={checked}\n disabled={isDisabled}\n name={context.name}\n required={context.required}\n {...checkboxScope}\n {...props}\n onCheckedChange={(checkedState) => {\n if (checkedState) {\n context.onItemCheck(props.value);\n } else {\n context.onItemUncheck(props.value);\n }\n }}\n />\n </RovingFocusGroup.Item>\n );\n },\n);\n\nCheckboxGroupItem.displayName = ITEM_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * Component: CheckboxGroupIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = `${CHECKBOX_GROUP_NAME}Indicator`;\n\ntype CheckboxGroupIndicatorElement = React.ElementRef<typeof CheckboxPrimitive.Indicator>;\ntype CheckboxGroupIndicatorProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Indicator>;\n\nconst CheckboxGroupIndicator = React.forwardRef<CheckboxGroupIndicatorElement, CheckboxGroupIndicatorProps>(\n ({ __scopeCheckboxGroup, ...props }: ScopedProps<CheckboxGroupIndicatorProps>, forwardedRef) => {\n const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);\n\n return <CheckboxPrimitive.Indicator ref={forwardedRef} {...checkboxScope} {...props} />;\n },\n);\n\nCheckboxGroupIndicator.displayName = INDICATOR_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nconst Root = CheckboxGroup;\nconst Item = CheckboxGroupItem;\nconst Indicator = CheckboxGroupIndicator;\n\nexport {\n createCheckboxGroupScope,\n CheckboxGroup,\n CheckboxGroupItem,\n CheckboxGroupIndicator,\n Root,\n Item,\n Indicator,\n type CheckboxGroupProps,\n type CheckboxGroupItemProps,\n type CheckboxGroupIndicatorProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/select.tsx"],"names":["React","CaretSortIcon","CheckIcon","ChevronDownIcon","ChevronUpIcon","SelectPrimitive","jsx","jsxs","Select","SelectGroup","SelectValue","SelectTrigger","children","className","props","forwardedRef","cn","SelectScrollUpButton","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator"],"mappings":"yCAEA,UAAYA,MAAW,QACvB,OAAS,iBAAAC,EAAe,aAAAC,EAAW,mBAAAC,EAAiB,iBAAAC,MAAqB,wBACzE,UAAYC,MAAqB,yBAiC7B,OAUI,OAAAC,EAVJ,QAAAC,MAAA,oBAzBJ,IAAMC,EAAyB,OAOzBC,EAA8B,QAO9BC,EAA8B,QAS9BC,EAAsB,aAC1B,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCR,EAAiB,UAAhB,CACC,IAAKQ,EACL,UAAWC,EACT,gVACAH,CACF,EACC,GAAGC,EAEH,UAAAF,EACDN,EAAiB,OAAhB,CAAqB,QAAO,GAC3B,SAAAA,EAACL,EAAA,CAAc,UAAU,oBAAoB,EAC/C,GACF,CAEJ,EAEAU,EAAc,YAA8B,UAAQ,YASpD,IAAMM,EAA6B,aACjC,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAiB,iBAAhB,CACC,IAAKS,EACL,UAAWC,EAAG,uDAAwDH,CAAS,EAC9E,GAAGC,EAEJ,SAAAR,EAACF,EAAA,EAAc,EACjB,CAEJ,EAEAa,EAAqB,YAA8B,iBAAe,YASlE,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAiB,mBAAhB,CACC,IAAKS,EACL,UAAWC,EAAG,uDAAwDH,CAAS,EAC9E,GAAGC,EAEJ,SAAAR,EAACH,EAAA,EAAgB,EACnB,CAEJ,EAEAe,EAAuB,YAA8B,mBAAiB,YAStE,IAAMC,EAAsB,aAC1B,CAAC,CAAE,SAAAP,EAAU,UAAAC,EAAW,SAAAO,EAAW,SAAU,GAAGN,CAAM,EAAGC,IACvDT,EAAiB,SAAhB,CACC,SAAAC,EAAiB,UAAhB,CACC,IAAKQ,EACL,UAAWC,EACT,8uBACAI,IAAa,UACX,kIACFP,CACF,EACA,SAAUO,EACT,GAAGN,EAEJ,UAAAR,EAACW,EAAA,EAAqB,EACtBX,EAAiB,WAAhB,CACC,UAAWU,EACT,MACAI,IAAa,UACX,yFACJ,EAEC,SAAAR,EACH,EACAN,EAACY,EAAA,EAAuB,GAC1B,EACF,CAEJ,EAEAC,EAAc,YAA8B,UAAQ,YASpD,IAAME,EAAoB,aAAiD,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACnGT,EAAiB,QAAhB,CAAsB,IAAKS,EAAc,UAAWC,EAAG,oCAAqCH,CAAS,EAAI,GAAGC,EAAO,CACrH,EAEDO,EAAY,YAA8B,QAAM,YAShD,IAAMC,EAAmB,aACvB,CAAC,CAAE,SAAAV,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCR,EAAiB,OAAhB,CACC,IAAKQ,EACL,UAAWC,EACT,8NACAH,CACF,EACC,GAAGC,EAEJ,UAAAR,EAAC,QAAK,UAAU,6DACd,SAAAA,EAAiB,gBAAhB,CACC,SAAAA,EAACJ,EAAA,CAAU,UAAU,SAAS,EAChC,EACF,EACAI,EAAiB,WAAhB,CAA0B,SAAAM,EAAS,GACtC,CAEJ,EAEAU,EAAW,YAA8B,OAAK,YAS9C,IAAMC,EAAwB,aAC5B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBT,EAAiB,YAAhB,CAA0B,IAAKS,EAAc,UAAWC,EAAG,2BAA4BH,CAAS,EAAI,GAAGC,EAAO,CAEnH,EAEAS,EAAgB,YAA8B,YAAU","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CaretSortIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Select\n * -------------------------------------------------------------------------- */\n\ntype SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;\nconst Select = SelectPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectGroup\n * -------------------------------------------------------------------------- */\n\ntype SelectGroupProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;\nconst SelectGroup = SelectPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectValue\n * -------------------------------------------------------------------------- */\n\ntype SelectValueProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;\nconst SelectValue = SelectPrimitive.Value;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectTrigger\n * -------------------------------------------------------------------------- */\n\ntype SelectTriggerElement = React.ElementRef<typeof SelectPrimitive.Trigger>;\ntype SelectTriggerProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>;\n\nconst SelectTrigger = React.forwardRef<SelectTriggerElement, SelectTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'border-input placeholder:text-muted-foreground flex h-10 w-full items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 text-sm shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:truncate',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <CaretSortIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\n\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollUpButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollUpButtonElement = React.ElementRef<typeof SelectPrimitive.ScrollUpButton>;\ntype SelectScrollUpButtonProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>;\n\nconst SelectScrollUpButton = React.forwardRef<SelectScrollUpButtonElement, SelectScrollUpButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollUpButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n ),\n);\n\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollDownButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollDownButtonElement = React.ElementRef<typeof SelectPrimitive.ScrollDownButton>;\ntype SelectScrollDownButtonProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>;\n\nconst SelectScrollDownButton = React.forwardRef<SelectScrollDownButtonElement, SelectScrollDownButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollDownButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n ),\n);\n\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectContent\n * -------------------------------------------------------------------------- */\n\ntype SelectContentElement = React.ElementRef<typeof SelectPrimitive.Content>;\ntype SelectContentProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;\n\nconst SelectContent = React.forwardRef<SelectContentElement, SelectContentProps>(\n ({ children, className, position = 'popper', ...props }, forwardedRef) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n ),\n);\n\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectLabel\n * -------------------------------------------------------------------------- */\n\ntype SelectLabelElement = React.ElementRef<typeof SelectPrimitive.Label>;\ntype SelectLabelProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>;\n\nconst SelectLabel = React.forwardRef<SelectLabelElement, SelectLabelProps>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Label ref={forwardedRef} className={cn('px-2 py-1.5 text-sm font-semibold', className)} {...props} />\n));\n\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectItem\n * -------------------------------------------------------------------------- */\n\ntype SelectItemElement = React.ElementRef<typeof SelectPrimitive.Item>;\ntype SelectItemProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;\n\nconst SelectItem = React.forwardRef<SelectItemElement, SelectItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n ),\n);\n\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectSeparator\n * -------------------------------------------------------------------------- */\n\ntype SelectSeparatorElement = React.ElementRef<typeof SelectPrimitive.Separator>;\ntype SelectSeparatorProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>;\n\nconst SelectSeparator = React.forwardRef<SelectSeparatorElement, SelectSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Separator ref={forwardedRef} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n ),\n);\n\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n type SelectProps,\n type SelectGroupProps,\n type SelectValueProps,\n type SelectTriggerProps,\n type SelectContentProps,\n type SelectLabelProps,\n type SelectItemProps,\n type SelectSeparatorProps,\n type SelectScrollUpButtonProps,\n type SelectScrollDownButtonProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-6UQKMUZG.cjs","../src/react/select.tsx"],"names":["Select","SelectGroup","SelectValue","SelectTrigger","children","className","props","forwardedRef","jsxs","cn","jsx","CaretSortIcon","SelectScrollUpButton","ChevronUpIcon","SelectScrollDownButton","ChevronDownIcon","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":"AAAA,mZAAwC,uECEjB,mDACkD,oGACxC,+CAiC7B,IAzBEA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAO9BC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAS9BC,CAAAA,aAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,8BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,+UACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEH,QAAA,CAAA,CAAAF,CAAAA,CACDM,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CAAqB,OAAA,CAAO,CAAA,CAAA,CAC3B,QAAA,CAAAA,6BAAAA,yBAACC,CAAA,CAAc,SAAA,CAAU,mBAAA,CAAoB,CAAA,CAC/C,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAR,CAAAA,CAAc,WAAA,CAA8B,CAAA,CAAA,OAAA,CAAQ,WAAA,CASpD,IAAMS,CAAAA,CAA6B,CAAA,CAAA,UAAA,CACjC,CAAC,CAAE,SAAA,CAAAP,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBG,6BAAAA,CAAiB,CAAA,cAAA,CAAhB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,sDAAG,CAAwDJ,CAAS,CAAA,CAC9E,GAAGC,CAAAA,CAEJ,QAAA,CAAAI,6BAAAA,yBAACG,CAAA,CAAA,CAAc,CAAA,CACj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W,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBG,6BAAAA,CAAiB,CAAA,SAAA,CAAhB,CAA0B,GAAA,CAAKH,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,0BAAG,CAA4BJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEnH,CAAA,CAEAe,CAAAA,CAAgB,WAAA,CAA8B,CAAA,CAAA,SAAA,CAAU,WAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-6UQKMUZG.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CaretSortIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Select\n * -------------------------------------------------------------------------- */\n\ntype SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;\nconst Select = SelectPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectGroup\n * -------------------------------------------------------------------------- */\n\ntype SelectGroupProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;\nconst SelectGroup = SelectPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectValue\n * -------------------------------------------------------------------------- */\n\ntype SelectValueProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;\nconst SelectValue = SelectPrimitive.Value;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectTrigger\n * -------------------------------------------------------------------------- */\n\ntype SelectTriggerElement = React.ElementRef<typeof SelectPrimitive.Trigger>;\ntype SelectTriggerProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>;\n\nconst SelectTrigger = React.forwardRef<SelectTriggerElement, SelectTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'border-input placeholder:text-muted-foreground flex h-10 w-full items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 text-sm shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:truncate',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <CaretSortIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\n\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollUpButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollUpButtonElement = React.ElementRef<typeof SelectPrimitive.ScrollUpButton>;\ntype SelectScrollUpButtonProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>;\n\nconst SelectScrollUpButton = React.forwardRef<SelectScrollUpButtonElement, SelectScrollUpButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollUpButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n ),\n);\n\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollDownButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollDownButtonElement = React.ElementRef<typeof SelectPrimitive.ScrollDownButton>;\ntype SelectScrollDownButtonProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>;\n\nconst SelectScrollDownButton = React.forwardRef<SelectScrollDownButtonElement, SelectScrollDownButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollDownButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n ),\n);\n\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectContent\n * -------------------------------------------------------------------------- */\n\ntype SelectContentElement = React.ElementRef<typeof SelectPrimitive.Content>;\ntype SelectContentProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;\n\nconst SelectContent = React.forwardRef<SelectContentElement, SelectContentProps>(\n ({ children, className, position = 'popper', ...props }, forwardedRef) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n ),\n);\n\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectLabel\n * -------------------------------------------------------------------------- */\n\ntype SelectLabelElement = React.ElementRef<typeof SelectPrimitive.Label>;\ntype SelectLabelProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>;\n\nconst SelectLabel = React.forwardRef<SelectLabelElement, SelectLabelProps>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Label ref={forwardedRef} className={cn('px-2 py-1.5 text-sm font-semibold', className)} {...props} />\n));\n\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectItem\n * -------------------------------------------------------------------------- */\n\ntype SelectItemElement = React.ElementRef<typeof SelectPrimitive.Item>;\ntype SelectItemProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;\n\nconst SelectItem = React.forwardRef<SelectItemElement, SelectItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n ),\n);\n\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectSeparator\n * -------------------------------------------------------------------------- */\n\ntype SelectSeparatorElement = React.ElementRef<typeof SelectPrimitive.Separator>;\ntype SelectSeparatorProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>;\n\nconst SelectSeparator = React.forwardRef<SelectSeparatorElement, SelectSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Separator ref={forwardedRef} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n ),\n);\n\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n type SelectProps,\n type SelectGroupProps,\n type SelectValueProps,\n type SelectTriggerProps,\n type SelectContentProps,\n type SelectLabelProps,\n type SelectItemProps,\n type SelectSeparatorProps,\n type SelectScrollUpButtonProps,\n type SelectScrollDownButtonProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/toggle.tsx"],"names":["React","TogglePrimitive","tv","jsx","toggleVariants","Toggle","className","variant","size","props","forwardedRef"],"mappings":"AAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBACjC,OAAS,MAAAC,MAA6B,oBAmCpC,cAAAC,MAAA,oBA7BF,IAAMC,EAAiBF,EAAG,CACxB,KAAM,8TACN,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,2FACX,EACA,KAAM,CACJ,QAAS,YACT,GAAI,aACJ,GAAI,WACN,CACF,EACA,gBAAiB,CACf,QAAS,UACT,KAAM,SACR,CACF,CAAC,EAWKG,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,GAAGC,CAAM,EAAGC,IACnGP,EAAiB,OAAhB,CAAqB,IAAKO,EAAc,UAAWN,EAAe,CAAE,QAAAG,EAAS,KAAAC,EAAM,UAAAF,CAAU,CAAC,EAAI,GAAGG,EAAO,CAC9G,EAEDJ,EAAO,YAA8B,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Toggle\n * -------------------------------------------------------------------------- */\n\nconst toggleVariants = tv({\n base: 'hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-sm',\n },\n size: {\n default: 'h-10 px-3',\n sm: 'h-9 px-2.5',\n lg: 'h-11 px-5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\ntype ToggleVariantsProps = VariantProps<typeof toggleVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Toggle\n * -------------------------------------------------------------------------- */\n\ntype ToggleElement = React.ElementRef<typeof TogglePrimitive.Root>;\ntype ToggleProps = React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & ToggleVariantsProps;\n\nconst Toggle = React.forwardRef<ToggleElement, ToggleProps>(({ className, variant, size, ...props }, forwardedRef) => (\n <TogglePrimitive.Root ref={forwardedRef} className={toggleVariants({ variant, size, className })} {...props} />\n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toggle, toggleVariants, type ToggleProps, type ToggleVariantsProps };\n"]}
1
+ {"version":3,"sources":["../src/react/toggle.tsx"],"names":["toggleVariants","tv","Toggle","className","variant","size","props","forwardedRef","jsx"],"mappings":"AAEA,kaAAuB,oGACU,qDACK,+CAmCpC,IA7BIA,CAAAA,CAAiBC,kCAAAA,CACrB,IAAA,CAAM,6TAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CAAS,gBAAA,CACT,OAAA,CAAS,2FACX,CAAA,CACA,IAAA,CAAM,CACJ,OAAA,CAAS,WAAA,CACT,EAAA,CAAI,YAAA,CACJ,EAAA,CAAI,WACN,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SAAA,CACT,IAAA,CAAM,SACR,CACF,CAAC,CAAA,CAWKC,CAAAA,aAAe,CAAA,CAAA,UAAA,CAAuC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnGC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CAAqB,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWP,CAAAA,CAAe,CAAE,OAAA,CAAAI,CAAAA,CAAS,IAAA,CAAAC,CAAAA,CAAM,SAAA,CAAAF,CAAU,CAAC,CAAA,CAAI,GAAGG,CAAAA,CAAO,CAC9G,CAAA,CAEDJ,CAAAA,CAAO,WAAA,CAA8B,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EW7DAPDC.cjs","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Toggle\n * -------------------------------------------------------------------------- */\n\nconst toggleVariants = tv({\n base: 'hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-sm',\n },\n size: {\n default: 'h-10 px-3',\n sm: 'h-9 px-2.5',\n lg: 'h-11 px-5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\ntype ToggleVariantsProps = VariantProps<typeof toggleVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Toggle\n * -------------------------------------------------------------------------- */\n\ntype ToggleElement = React.ElementRef<typeof TogglePrimitive.Root>;\ntype ToggleProps = React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & ToggleVariantsProps;\n\nconst Toggle = React.forwardRef<ToggleElement, ToggleProps>(({ className, variant, size, ...props }, forwardedRef) => (\n <TogglePrimitive.Root ref={forwardedRef} className={toggleVariants({ variant, size, className })} {...props} />\n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toggle, toggleVariants, type ToggleProps, type ToggleVariantsProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/dropdown-menu.tsx"],"names":["React","DropdownMenuPrimitive","CheckIcon","ChevronRightIcon","DotFilledIcon","jsx","jsxs","DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","children","className","inset","props","forwardedRef","cn","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":"yCAEA,UAAYA,MAAW,QACvB,UAAYC,MAA2B,gCACvC,OAAS,aAAAC,EAAW,oBAAAC,EAAkB,iBAAAC,MAAqB,wBAkDvD,OAUE,OAAAC,EAVF,QAAAC,MAAA,oBA1CJ,IAAMC,EAAqC,OAOrCC,EAA4C,UAO5CC,EAA0C,QAO1CC,EAAwC,MAOxCC,EAA+C,aAY/CC,EAA+B,aACnC,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IACzCX,EAAuB,aAAtB,CACC,IAAKW,EACL,UAAWC,EACT,6IACAH,GAAS,OACTD,CACF,EACC,GAAGE,EAEH,UAAAH,EACDR,EAACF,EAAA,CAAiB,UAAU,iBAAiB,GAC/C,CAEJ,EAEAS,EAAuB,YAAoC,aAAW,YAQtE,IAAMO,EAA+B,aAGnC,CAAC,CAAE,UAAAL,EAA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AA,CAAc,UAAU,sBAAsB,EACjD,EACF,EACCS,GACH,CAEJ,EAEAY,EAAsB,YAAoC,YAAU,YAYpE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAZ,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAC/BZ,EAAuB,QAAtB,CACC,IAAKY,EACL,UAAWC,EAAG,oCAAqCH,GAAS,OAAQD,CAAS,EAC5E,GAAGE,EACN,CAEJ,EAEAU,EAAkB,YAAoC,QAAM,YAS5D,IAAMC,EAA8B,aAClC,CAAC,CAAE,UAAAb,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAuB,YAAtB,CACC,IAAKY,EACL,UAAWC,EAAG,2BAA4BJ,CAAS,EAClD,GAAGE,EACN,CAEJ,EAEAW,EAAsB,YAAoC,YAAU,YAQpE,SAASC,EAAqB,CAAE,UAAAd,EAAW,GAAGE,CAAM,EAAiD,CACnG,OAAOX,EAAC,QAAK,UAAWa,EAAG,6CAA8CJ,CAAS,EAAI,GAAGE,EAAO,CAClG","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenu\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuProps = React.ComponentProps<typeof DropdownMenuPrimitive.Root>;\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuTriggerProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSub\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup>;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubTriggerElement = React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>;\n\ninterface DropdownMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst DropdownMenuSubTrigger = React.forwardRef<DropdownMenuSubTriggerElement, DropdownMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm focus:outline-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n ),\n);\n\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubContentProps = DropdownMenuPrimitive.DropdownMenuSubContentProps;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n DropdownMenuSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\n\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuContentElement = React.ElementRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;\n\nconst DropdownMenuContent = React.forwardRef<DropdownMenuContentElement, DropdownMenuContentProps>(\n ({ className, sideOffset = 6, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-md border p-1 shadow-md',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n ),\n);\n\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuItemElement = React.ElementRef<typeof DropdownMenuPrimitive.Item>;\n\ninterface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<DropdownMenuItemElement, DropdownMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuCheckboxItemElement = React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>;\ntype DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<DropdownMenuCheckboxItemElement, DropdownMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n ),\n);\n\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioItemElement = React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>;\ntype DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;\n\nconst DropdownMenuRadioItem = React.forwardRef<DropdownMenuRadioItemElement, DropdownMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n ),\n);\n\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuLabelElement = React.ElementRef<typeof DropdownMenuPrimitive.Label>;\n\ninterface DropdownMenuLabelProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst DropdownMenuLabel = React.forwardRef<DropdownMenuLabelElement, DropdownMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSeparatorElement = React.ElementRef<typeof DropdownMenuPrimitive.Separator>;\ntype DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;\n\nconst DropdownMenuSeparator = React.forwardRef<DropdownMenuSeparatorElement, DropdownMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted -mx-1 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuShortcutProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): React.JSX.Element {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n type DropdownMenuProps,\n type DropdownMenuTriggerProps,\n type DropdownMenuContentProps,\n type DropdownMenuItemProps,\n type DropdownMenuCheckboxItemProps,\n type DropdownMenuRadioItemProps,\n type DropdownMenuLabelProps,\n type DropdownMenuSeparatorProps,\n type DropdownMenuShortcutProps,\n type DropdownMenuGroupProps,\n type DropdownMenuSubProps,\n type DropdownMenuSubContentProps,\n type DropdownMenuSubTriggerProps,\n type DropdownMenuRadioGroupProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JMM2MTPI.cjs","../src/react/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","children","className","inset","props","forwardedRef","jsxs","cn","jsx","ChevronRightIcon","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","CheckIcon","DropdownMenuRadioItem","DotFilledIcon","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":"AAAA,mZAAwC,uECEjB,uHACgB,mDACoB,+CAkDvD,IA1CEA,CAAAA,CAAqC,CAAA,CAAA,IAAA,CAOrCC,CAAAA,aAA4C,CAAA,CAAA,OAAA,CAO5CC,CAAAA,aAA0C,CAAA,CAAA,KAAA,CAO1CC,CAAAA,aAAwC,CAAA,CAAA,GAAA,CAOxCC,CAAAA,aAA+C,CAAA,CAAA,UAAA,CAY/CC,CAAAA,aAA+B,CAAA,CAAA,UAAA,CACnC,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACzCC,8BAAAA,CAAuB,CAAA,UAAA,CAAtB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,4IACT,CACAJ,CAAAA,EAAS,MAAA,CACTD,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AAOI,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWD,iCAAAA,4CAAG,CAA8CL,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAClG,CAAA,iNAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JMM2MTPI.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenu\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuProps = React.ComponentProps<typeof DropdownMenuPrimitive.Root>;\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuTriggerProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSub\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup>;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubTriggerElement = React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>;\n\ninterface DropdownMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst DropdownMenuSubTrigger = React.forwardRef<DropdownMenuSubTriggerElement, DropdownMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm focus:outline-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n ),\n);\n\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubContentProps = DropdownMenuPrimitive.DropdownMenuSubContentProps;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n DropdownMenuSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\n\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuContentElement = React.ElementRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;\n\nconst DropdownMenuContent = React.forwardRef<DropdownMenuContentElement, DropdownMenuContentProps>(\n ({ className, sideOffset = 6, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-md border p-1 shadow-md',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n ),\n);\n\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuItemElement = React.ElementRef<typeof DropdownMenuPrimitive.Item>;\n\ninterface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<DropdownMenuItemElement, DropdownMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuCheckboxItemElement = React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>;\ntype DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<DropdownMenuCheckboxItemElement, DropdownMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n ),\n);\n\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioItemElement = React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>;\ntype DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;\n\nconst DropdownMenuRadioItem = React.forwardRef<DropdownMenuRadioItemElement, DropdownMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm transition focus:outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n ),\n);\n\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuLabelElement = React.ElementRef<typeof DropdownMenuPrimitive.Label>;\n\ninterface DropdownMenuLabelProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst DropdownMenuLabel = React.forwardRef<DropdownMenuLabelElement, DropdownMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSeparatorElement = React.ElementRef<typeof DropdownMenuPrimitive.Separator>;\ntype DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;\n\nconst DropdownMenuSeparator = React.forwardRef<DropdownMenuSeparatorElement, DropdownMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted -mx-1 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuShortcutProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): React.JSX.Element {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n type DropdownMenuProps,\n type DropdownMenuTriggerProps,\n type DropdownMenuContentProps,\n type DropdownMenuItemProps,\n type DropdownMenuCheckboxItemProps,\n type DropdownMenuRadioItemProps,\n type DropdownMenuLabelProps,\n type DropdownMenuSeparatorProps,\n type DropdownMenuShortcutProps,\n type DropdownMenuGroupProps,\n type DropdownMenuSubProps,\n type DropdownMenuSubContentProps,\n type DropdownMenuSubTriggerProps,\n type DropdownMenuRadioGroupProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/spinner.tsx"],"names":["React","VisuallyHidden","jsx","jsxs","spinnerCount","Spinner","children","className","loading","props","forwardedRef","spinner","cn","_","i"],"mappings":"yCAAA,UAAYA,MAAW,QACvB,OAAS,kBAAAC,MAAsB,kCA4BrB,cAAAC,EAqBJ,QAAAC,MArBI,oBArBV,IAAMC,EAAe,EAQfC,EAAgB,aACpB,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAU,GAAM,GAAGC,CAAM,EAAGC,IAAiB,CACnE,GAAI,CAACF,EACH,OAAOF,EAGT,IAAMK,EACJT,EAAC,QACC,IAAKQ,EACL,UAAWE,EAAG,8DAA+DL,CAAS,EACrF,GAAGE,EAEH,eAAM,KAAK,CAAE,OAAQL,CAAa,EAAG,CAACS,EAAGC,IACxCZ,EAAC,QAEC,UAAU,kSACV,MACE,CACE,MAAO,IAAI,IAAME,GAAc,SAAS,CAAC,IACzC,kBAAmB,MAAMA,EAAeU,GAAK,KAAK,SAAS,CAAC,KAC5D,mBAAoB,IAAK,IAAMV,EAAgBU,GAAG,SAAS,CAAC,MAC5D,qBAAsB,IAAIV,EAAe,KAAK,SAAS,CAAC,IAC1D,GARGU,CAUP,CACD,EACH,EAGF,OAAIR,IAAa,OACRK,EAIPR,EAAC,QAAK,UAAU,WACd,UAAAD,EAAC,QAAK,cAAW,GAAC,UAAU,qBACzB,SAAAI,EACH,EACAJ,EAACD,EAAA,CAAgB,SAAAK,EAAS,EAC1BJ,EAAC,QAAK,UAAU,oDAAqD,SAAAS,EAAQ,GAC/E,CAEJ,CACF,EAEAN,EAAQ,YAAc","sourcesContent":["import * as React from 'react';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Spinner\n * -------------------------------------------------------------------------- */\n\nconst spinnerCount = 8;\n\ntype SpinnerElement = HTMLSpanElement;\n\ninterface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement> {\n loading?: boolean;\n}\n\nconst Spinner = React.forwardRef<SpinnerElement, SpinnerProps>(\n ({ children, className, loading = true, ...props }, forwardedRef) => {\n if (!loading) {\n return children;\n }\n\n const spinner = (\n <span\n ref={forwardedRef}\n className={cn('relative flex size-4 items-center justify-center opacity-60', className)}\n {...props}\n >\n {Array.from({ length: spinnerCount }, (_, i) => (\n <span\n key={i}\n className=\"before:fade-out-25 before:animate-out before:animate-repeat-infinite before:animate-delay-[var(--spinner-delay)] before:animate-duration-[var(--spinner-duration)] absolute h-full rotate-[var(--spinner-rotate)] before:block before:h-1/3 before:w-full before:rounded-full before:bg-current\"\n style={\n {\n width: `${(100 / spinnerCount).toString()}%`,\n '--spinner-delay': `-${((spinnerCount - i) * 100).toString()}ms`,\n '--spinner-rotate': `${((360 / spinnerCount) * i).toString()}deg`,\n '--spinner-duration': `${(spinnerCount * 100).toString()}ms`,\n } as React.CSSProperties\n }\n />\n ))}\n </span>\n );\n\n if (children === undefined) {\n return spinner;\n }\n\n return (\n <span className=\"relative\">\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">{spinner}</span>\n </span>\n );\n },\n);\n\nSpinner.displayName = 'Spinner';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Spinner, type SpinnerProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-LOJBMYTH.cjs","../src/react/spinner.tsx"],"names":["spinnerCount","Spinner","children","className","loading","props","forwardedRef","spinner","jsx","cn","_","i"],"mappings":"AAAA,mZAAwC,uECAjB,sEACQ,+CA4BrB,IArBJA,CAAAA,CAAe,CAAA,CAQfC,CAAAA,aAAgB,CAAA,CAAA,UAAA,CACpB,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAU,CAAA,CAAA,CAAM,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAAiB,CACnE,EAAA,CAAI,CAACF,CAAAA,CACH,OAAOF,CAAAA,CAGT,IAAMK,CAAAA,CACJC,6BAAAA,MAAC,CAAA,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,6DAAG,CAA+DN,CAAS,CAAA,CACrF,GAAGE,CAAAA,CAEH,QAAA,CAAA,KAAA,CAAM,IAAA,CAAK,CAAE,MAAA,CAAQL,CAAa,CAAA,CAAG,CAACU,CAAAA,CAAGC,CAAAA,CAAAA,EACxCH,6BAAAA,MAAC,CAAA,CAEC,SAAA,CAAU,iSAAA,CACV,KAAA,CACE,CACE,KAAA,CAAO,CAAA,EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-LOJBMYTH.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Spinner\n * -------------------------------------------------------------------------- */\n\nconst spinnerCount = 8;\n\ntype SpinnerElement = HTMLSpanElement;\n\ninterface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement> {\n loading?: boolean;\n}\n\nconst Spinner = React.forwardRef<SpinnerElement, SpinnerProps>(\n ({ children, className, loading = true, ...props }, forwardedRef) => {\n if (!loading) {\n return children;\n }\n\n const spinner = (\n <span\n ref={forwardedRef}\n className={cn('relative flex size-4 items-center justify-center opacity-60', className)}\n {...props}\n >\n {Array.from({ length: spinnerCount }, (_, i) => (\n <span\n key={i}\n className=\"before:fade-out-25 before:animate-out before:animate-repeat-infinite before:animate-delay-[var(--spinner-delay)] before:animate-duration-[var(--spinner-duration)] absolute h-full rotate-[var(--spinner-rotate)] before:block before:h-1/3 before:w-full before:rounded-full before:bg-current\"\n style={\n {\n width: `${(100 / spinnerCount).toString()}%`,\n '--spinner-delay': `-${((spinnerCount - i) * 100).toString()}ms`,\n '--spinner-rotate': `${((360 / spinnerCount) * i).toString()}deg`,\n '--spinner-duration': `${(spinnerCount * 100).toString()}ms`,\n } as React.CSSProperties\n }\n />\n ))}\n </span>\n );\n\n if (children === undefined) {\n return spinner;\n }\n\n return (\n <span className=\"relative\">\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">{spinner}</span>\n </span>\n );\n },\n);\n\nSpinner.displayName = 'Spinner';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Spinner, type SpinnerProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/lib/utils.ts"],"names":["twMerge","clsx","cn","inputs"],"mappings":"AAAA,OAAS,WAAAA,MAAe,iBACxB,OAA0B,QAAAC,MAAY,OAE/B,SAASC,KAAMC,EAA8B,CAClD,OAAOH,EAAQC,EAAKE,CAAM,CAAC,CAC7B","sourcesContent":["import { twMerge } from 'tailwind-merge';\nimport { type ClassValue, clsx } from 'clsx';\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n"]}
1
+ {"version":3,"sources":["../src/lib/utils.ts"],"names":["cn","inputs","twMerge","clsx"],"mappings":"AAAA,wHAAwB,4BACc,SAEtBA,CAAAA,CAAAA,GAAMC,CAAAA,CAA8B,CAClD,OAAOC,oCAAAA,wBAAQC,CAAW,CAAC,CAC7B,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NU6SK3FC.cjs","sourcesContent":["import { twMerge } from 'tailwind-merge';\nimport { type ClassValue, clsx } from 'clsx';\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/label.tsx"],"names":["React","LabelPrimitive","jsx","Label","className","props","forwardedRef","cn"],"mappings":"yCAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,wBAW9B,cAAAC,MAAA,oBADF,IAAMC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjFJ,EAAgB,OAAf,CACC,IAAKI,EACL,UAAWC,EACT,8FACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDF,EAAM,YAA6B,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Label\n * -------------------------------------------------------------------------- */\n\ntype LabelElement = React.ElementRef<typeof LabelPrimitive.Root>;\ntype LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst Label = React.forwardRef<LabelElement, LabelProps>(({ className, ...props }, forwardedRef) => (\n <LabelPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'text-sm font-medium leading-none peer-disabled:pointer-events-none peer-disabled:opacity-70',\n className,\n )}\n {...props}\n />\n));\n\nLabel.displayName = LabelPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Label, type LabelProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-T3G5USVY.cjs","../src/react/label.tsx"],"names":["Label","className","props","forwardedRef","jsx","cn"],"mappings":"AAAA,mZAAwC,uECEjB,iGACS,+CAW9B,IADIA,CAAAA,CAAc,CAAA,CAAA,UAAA,CAAqC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjFC,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,6FACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDF,CAAAA,CAAM,WAAA,CAA6B,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-T3G5USVY.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Label\n * -------------------------------------------------------------------------- */\n\ntype LabelElement = React.ElementRef<typeof LabelPrimitive.Root>;\ntype LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst Label = React.forwardRef<LabelElement, LabelProps>(({ className, ...props }, forwardedRef) => (\n <LabelPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'text-sm font-medium leading-none peer-disabled:pointer-events-none peer-disabled:opacity-70',\n className,\n )}\n {...props}\n />\n));\n\nLabel.displayName = LabelPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Label, type LabelProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/button.tsx"],"names":["React","Slot","VisuallyHidden","tv","jsx","jsxs","buttonVariants","Button","children","className","variant","size","loading","asChild","props","forwardedRef","Component","ComponentLoading","disabled","Spinner"],"mappings":"oCAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBACrB,OAAS,kBAAAC,MAAsB,kCAC/B,OAAS,MAAAC,MAA6B,oBAmE5B,OACE,OAAAC,EADF,QAAAC,MAAA,oBA5DV,IAAMC,EAAiBH,EAAG,CACxB,KAAM,gPACN,SAAU,CACR,QAAS,CACP,QAAS,gEACT,YAAa,+EACb,MAAO,+DACP,KAAM,kDACN,QACE,2GACF,UAAW,wEACb,EACA,KAAM,CACJ,QAAS,kBACT,GAAI,iBACJ,GAAI,iBACJ,GAAI,kBACJ,KAAM,UACN,UAAW,SACX,UAAW,SACX,UAAW,SACb,EACA,QAAS,CACP,KAAM,UACR,CACF,EACA,gBAAiB,CACf,KAAM,UACN,QAAS,UACT,QAAS,EACX,CACF,CAAC,EAcKI,EAAe,aACnB,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,QAAAC,EAAU,GAAO,QAAAC,EAAU,GAAO,GAAGC,CAAM,EAAGC,IAAiB,CACpG,IAAMC,EAAYH,EAAUZ,EAAO,SAC7BgB,EAAmBJ,EAAU,OAAe,WAC5CK,EAAWN,GAAWE,EAAM,SAElC,OACEV,EAACY,EAAA,CACC,IAAKD,EACL,UAAWT,EAAe,CAAE,QAAAI,EAAS,KAAAC,EAAM,QAAAC,EAAS,UAAAH,CAAU,CAAC,EAC/D,KAAMI,EAAU,OAAY,SAC3B,GAAGC,EACJ,SAAUI,EAET,SAAAN,EACCP,EAACY,EAAA,CACC,UAAAb,EAAC,QAAK,cAAW,GAAC,UAAU,qBACzB,SAAAI,EACH,EACAJ,EAACF,EAAA,CAAgB,SAAAM,EAAS,EAC1BJ,EAAC,QAAK,UAAU,oDACd,SAAAA,EAACe,EAAA,EAAQ,EACX,GACF,EAEAX,EAEJ,CAEJ,CACF,EAEAD,EAAO,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { Spinner } from './spinner';\n\n/* -----------------------------------------------------------------------------\n * Variant: Button\n * -------------------------------------------------------------------------- */\n\nconst buttonVariants = tv({\n base: 'inline-flex select-none items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90 shadow',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm',\n ghost: 'text-foreground hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n outline:\n 'border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground border shadow-sm',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm',\n },\n size: {\n default: 'h-10 gap-2 px-4',\n xs: 'h-8 gap-1 px-2',\n sm: 'h-9 gap-2 px-3',\n lg: 'h-11 gap-2 px-8',\n icon: 'size-10',\n 'icon-xs': 'size-8',\n 'icon-sm': 'size-9',\n 'icon-lg': 'size-11',\n },\n loading: {\n true: 'relative',\n },\n },\n defaultVariants: {\n size: 'default',\n variant: 'default',\n loading: false,\n },\n});\n\ntype ButtonVariantsProps = VariantProps<typeof buttonVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Button\n * -------------------------------------------------------------------------- */\n\ntype ButtonElement = HTMLButtonElement;\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ButtonVariantsProps {\n asChild?: boolean;\n}\n\nconst Button = React.forwardRef<ButtonElement, ButtonProps>(\n ({ children, className, variant, size, loading = false, asChild = false, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'button';\n const ComponentLoading = asChild ? 'span' : React.Fragment;\n const disabled = loading || props.disabled;\n\n return (\n <Component\n ref={forwardedRef}\n className={buttonVariants({ variant, size, loading, className })}\n type={asChild ? undefined : 'button'}\n {...props}\n disabled={disabled}\n >\n {loading ? (\n <ComponentLoading>\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <Spinner />\n </span>\n </ComponentLoading>\n ) : (\n children\n )}\n </Component>\n );\n },\n);\n\nButton.displayName = 'Button';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Button, buttonVariants, type ButtonProps, type ButtonVariantsProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WKKCZQNO.cjs","../src/react/button.tsx"],"names":["buttonVariants","tv","Button","children","className","variant","size","loading","asChild","props","forwardedRef","Component","Slot","ComponentLoading","disabled","jsx","jsxs","VisuallyHidden","Spinner"],"mappings":"AAAA,mZAAmC,uECAZ,iDACF,sEACU,qDACO,+CAmE5B,IA5DJA,CAAAA,CAAiBC,kCAAAA,CACrB,IAAA,CAAM,+OAAA,CACN,QAAA,C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,CAC/D,IAAA,CAAMI,CAAAA,CAAU,KAAA,CAAA,CAAY,QAAA,CAC3B,GAAGC,CAAAA,CACJ,QAAA,CAAUK,CAAAA,CAET,QAAA,CAAAP,CAAAA,CACCS,8BAAAA,CAACH,CAAA,CACC,QAAA,CAAA,CAAAE,6BAAAA,MAAC,CAAA,CAAK,aAAA,CAAW,CAAA,CAAA,CAAC,SAAA,CAAU,oBAAA,CACzB,QAAA,CAAAZ,CAAAA,CACH,CAAA,CACAY,6BAAAA,mCAACE,CAAA,CAAgB,QAAA,CAAAd,CAAAA,CAAS,CAAA,CAC1BY,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,mDAAA,CACd,QAAA,CAAAA,6BAAAA,mBAACG,CAAA,CAAA,CAAQ,CAAA,CACX,CAAA,CAAA,CACF,CAAA,CAEAf,CAAAA,CAEJ,CAEJ,CACF,CAAA,CAEAD,CAAAA,CAAO,WAAA,CAAc,QAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WKKCZQNO.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { Spinner } from './spinner';\n\n/* -----------------------------------------------------------------------------\n * Variant: Button\n * -------------------------------------------------------------------------- */\n\nconst buttonVariants = tv({\n base: 'inline-flex select-none items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90 shadow',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm',\n ghost: 'text-foreground hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n outline:\n 'border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground border shadow-sm',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm',\n },\n size: {\n default: 'h-10 gap-2 px-4',\n xs: 'h-8 gap-1 px-2',\n sm: 'h-9 gap-2 px-3',\n lg: 'h-11 gap-2 px-8',\n icon: 'size-10',\n 'icon-xs': 'size-8',\n 'icon-sm': 'size-9',\n 'icon-lg': 'size-11',\n },\n loading: {\n true: 'relative',\n },\n },\n defaultVariants: {\n size: 'default',\n variant: 'default',\n loading: false,\n },\n});\n\ntype ButtonVariantsProps = VariantProps<typeof buttonVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Button\n * -------------------------------------------------------------------------- */\n\ntype ButtonElement = HTMLButtonElement;\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ButtonVariantsProps {\n asChild?: boolean;\n}\n\nconst Button = React.forwardRef<ButtonElement, ButtonProps>(\n ({ children, className, variant, size, loading = false, asChild = false, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'button';\n const ComponentLoading = asChild ? 'span' : React.Fragment;\n const disabled = loading || props.disabled;\n\n return (\n <Component\n ref={forwardedRef}\n className={buttonVariants({ variant, size, loading, className })}\n type={asChild ? undefined : 'button'}\n {...props}\n disabled={disabled}\n >\n {loading ? (\n <ComponentLoading>\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <Spinner />\n </span>\n </ComponentLoading>\n ) : (\n children\n )}\n </Component>\n );\n },\n);\n\nButton.displayName = 'Button';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Button, buttonVariants, type ButtonProps, type ButtonVariantsProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/lib/utils.cjs"],"names":[],"mappings":"AAAA,kIAAoC,iCAAgB","file":"/home/runner/work/codefast/codefast/packages/ui/dist/lib/utils.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/accordion.tsx"],"names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","forwardedRef","cn","AccordionTrigger","children","AccordionContent"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,mBAAAC,MAAuB,wBAmB5B,cAAAC,EAgBE,QAAAC,MAhBF,oBAXJ,IAAMC,EAA+B,OAS/BC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAoB,OAAnB,CAAwB,IAAKM,EAAc,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CAEjG,EAEAF,EAAc,YAAiC,OAAK,YASpD,IAAMK,EAAyB,aAC7B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAC,EAAoB,UAAnB,CACC,IAAKK,EACL,UAAWC,EAAG,0EAA2EH,CAAS,EACjG,GAAGC,EAEH,UAAAI,EACDT,EAACD,EAAA,CAAgB,UAAU,sFAAsF,GACnH,EACF,CAEJ,EAEAS,EAAiB,YAAiC,UAAQ,YAS1D,IAAME,EAAyB,aAC7B,CAAC,CAAE,SAAAD,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,UAAnB,CACC,IAAKM,EACL,UAAU,oHACT,GAAGD,EAEJ,SAAAL,EAAC,OAAI,UAAWO,EAAG,YAAaH,CAAS,EAAI,SAAAK,EAAS,EACxD,CAEJ,EAEAC,EAAiB,YAAiC,UAAQ","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDownIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Item ref={forwardedRef} className={cn('border-b', className)} {...props} />\n ),\n);\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={forwardedRef}\n className={cn('group flex flex-1 items-center justify-between py-4 text-sm font-medium', className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Content\n ref={forwardedRef}\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pb-4 pt-0', className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/accordion.cjs","../../src/react/accordion.tsx"],"names":["Accordion","AccordionItem","className","props","forwardedRef","jsx","cn","AccordionTrigger","children","jsxs","ChevronDownIcon","AccordionContent"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,6GACa,mDACJ,+CAmB5B,IAXEA,CAAAA,CAA+B,CAAA,CAAA,IAAA,CAS/BC,CAAAA,yBAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAoB,CAAA,IAAA,CAAnB,CAAwB,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,UAAG,CAAYJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEjG,CAAA,CAEAF,CAAAA,CAAc,WAAA,CAAiC,CAAA,CAAA,IAAA,CAAK,WAAA,CASpD,IAAMM,CAAAA,CAAyB,CAAA,CAAA,UAAA,CAC7B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,CAAoB,CAAA,MAAA,CAAnB,CAA0B,SAAA,CAAU,MAAA,CACnC,QAAA,CAAAI,8BAAAA,CAAoB,CAAA,OAAA,CAAnB,CACC,GAAA,CAAKL,CAAAA,CACL,SAAA,CAAWE,iCAAAA,yEAAG,CAA2EJ,CAAS,CAAA,CACjG,GAAGC,CAAAA,CAEH,QAAA,CAAA,CAAAK,CAAAA,CACDH,6BAAAA,2BAACK,CAAA,CAAgB,SAAA,CAAU,qFAAA,CAAsF,CAAA,CAAA,CACnH,CAAA,CACF,CAEJ,CAAA,CAEAH,CAAAA,CAAiB,WAAA,CAAiC,CAAA,CAAA,OAAA,CAAQ,WAAA,CAS1D,IAAMI,CAAAA,CAAyB,CAAA,CAAA,UAAA,CAC7B,CAAC,CAAE,QAAA,CAAAH,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,CAAoB,CAAA,OAAA,CAAnB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAU,mHAAA,CACT,GAAGD,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,WAAG,CAAaJ,CAAS,CAAA,CAAI,QAAA,CAAAM,CAAAA,CAAS,CAAA,CACxD,CAEJ,CAAA,CAEAG,CAAAA,CAAiB,WAAA,CAAiC,CAAA,CAAA,OAAA,CAAQ,WAAA,CAAA,6GAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/accordion.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDownIcon } from '@radix-ui/react-icons';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Item ref={forwardedRef} className={cn('border-b', className)} {...props} />\n ),\n);\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={forwardedRef}\n className={cn('group flex flex-1 items-center justify-between py-4 text-sm font-medium', className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Content\n ref={forwardedRef}\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pb-4 pt-0', className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/alert-dialog.tsx"],"names":["React","AlertDialogPrimitive","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"0HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA6B9B,cAAAC,MAAA,oBApBR,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CAA6B,UAAU,mPACtC,SAAAA,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,yVACAH,CACF,EACC,GAAGC,EACN,EACF,EACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,yEAA0EH,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAgB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA4C,CACzF,OAAOL,EAAC,QAAK,UAAWO,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC/E,CAQA,SAASK,EAAkB,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,iFAAkFH,CAAS,EACxG,GAAGC,EACN,CAEJ,CASA,IAAMM,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,QAArB,CACC,IAAKM,EACL,UAAWC,EAAG,oDAAqDH,CAAS,EAC3E,GAAGC,EACN,CAEJ,EAEAM,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,cAArB,CACC,IAAKM,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAO,EAAuB,YAAmC,cAAY,YAStE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CAA4B,IAAKM,EAAc,UAAWQ,EAAe,CAAE,UAAAV,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEzG,EAEAQ,EAAkB,YAAmC,SAAO,YAS5D,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAX,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWQ,EAAe,CAAE,QAAS,UAAW,UAAAV,CAAU,CAAC,EAC1D,GAAGC,EACN,CAEJ,EAEAU,EAAkB,YAAmC,SAAO","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '../lib/utils';\nimport { buttonVariants } from './button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action ref={forwardedRef} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/alert-dialog.cjs","../../src/react/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,uWA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,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWS,iCAAAA,CAAiB,OAAA,CAAS,SAAA,CAAW,SAAA,CAAAX,CAAU,CAAC,CAAA,CAC1D,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAW,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAAA,mTAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/alert-dialog.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '../lib/utils';\nimport { buttonVariants } from './button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action ref={forwardedRef} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/alert.tsx"],"names":["React","tv","jsx","alertVariants","Alert","className","variant","props","forwardedRef","AlertTitle","children","cn","AlertDescription"],"mappings":"0CAAA,UAAYA,MAAW,QACvB,OAAS,MAAAC,MAA6B,oBA8BpC,cAAAC,MAAA,oBAvBF,IAAMC,EAAgBF,EAAG,CACvB,KAAM,2IACN,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YAAa,yFACf,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAWKG,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAC1FN,EAAC,OAAI,IAAKM,EAAc,UAAWL,EAAc,CAAE,QAAAG,EAAS,UAAAD,CAAU,CAAC,EAAG,KAAK,QAAS,GAAGE,EAAO,CACnG,EAEDH,EAAM,YAAc,QASpB,IAAMK,EAAmB,aACvB,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IAClCN,EAAC,MAAG,IAAKM,EAAc,UAAWG,EAAG,+CAAgDN,CAAS,EAAI,GAAGE,EAClG,SAAAG,EACH,CAEJ,EAEAD,EAAW,YAAc,aASzB,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBN,EAAC,OAAI,IAAKM,EAAc,UAAWG,EAAG,gCAAiCN,CAAS,EAAI,GAAGE,EAAO,CAElG,EAEAK,EAAiB,YAAc","sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = tv({\n base: '[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',\n variants: {\n variant: {\n default: 'bg-background text-foreground [&>svg]:text-foreground',\n destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={alertVariants({ variant, className })} role=\"alert\" {...props} />\n));\n\nAlert.displayName = 'Alert';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h5 ref={forwardedRef} className={cn('mb-1 font-medium leading-none tracking-tight', className)} {...props}>\n {children}\n </h5>\n ),\n);\n\nAlertTitle.displayName = 'AlertTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('text-sm [&_p]:leading-relaxed', className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = 'AlertDescription';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/alert.cjs","../../src/react/alert.tsx"],"names":["alertVariants","tv","Alert","className","variant","props","forwardedRef","jsx","AlertTitle","children","cn","AlertDescription"],"mappings":"AAAA,oZAAyC,uECAlB,qDACe,+CA8BpC,IAvBIA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,0IAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CAAS,uDAAA,CACT,WAAA,CAAa,yFACf,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAWKC,CAAAA,iBAAc,CAAA,CAAA,UAAA,CAAqC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1FC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWN,CAAAA,CAAc,CAAE,OAAA,CAAAI,CAAAA,CAAS,SAAA,CAAAD,CAAU,CAAC,CAAA,CAAG,IAAA,CAAK,OAAA,CAAS,GAAGE,CAAAA,CAAO,CACnG,CAAA,CAEDH,CAAAA,CAAM,WAAA,CAAc,OAAA,CASpB,IAAMM,CAAAA,CAAmB,CAAA,CAAA,UAAA,CACvB,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,IAAC,CAAA,CAAG,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWI,iCAAAA,8CAAG,CAAgDP,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAClG,QAAA,CAAAI,CAAAA,CACH,CAEJ,CAAA,CAEAD,CAAAA,CAAW,WAAA,CAAc,YAAA,CASzB,IAAMG,CAAAA,CAAyB,CAAA,CAAA,UAAA,CAC7B,CAAC,CAAE,SAAA,CAAAR,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWI,iCAAAA,+BAAG,CAAiCP,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAElG,CAAA,CAEAM,CAAAA,CAAiB,WAAA,CAAc,kBAAA,CAAA,wEAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/alert.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = tv({\n base: '[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',\n variants: {\n variant: {\n default: 'bg-background text-foreground [&>svg]:text-foreground',\n destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={alertVariants({ variant, className })} role=\"alert\" {...props} />\n));\n\nAlert.displayName = 'Alert';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <h5 ref={forwardedRef} className={cn('mb-1 font-medium leading-none tracking-tight', className)} {...props}>\n {children}\n </h5>\n ),\n);\n\nAlertTitle.displayName = 'AlertTitle';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('text-sm [&_p]:leading-relaxed', className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = 'AlertDescription';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/aspect-ratio.tsx"],"names":["AspectRatioPrimitive","AspectRatio"],"mappings":"aAEA,UAAYA,MAA0B,+BAQtC,IAAMC,EAAmC","sourcesContent":["'use client';\n\nimport * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';\nimport type * as React from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: AspectRatio\n * -------------------------------------------------------------------------- */\n\ntype AspectRatioProps = React.ComponentPropsWithoutRef<typeof AspectRatioPrimitive.Root>;\nconst AspectRatio = AspectRatioPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { AspectRatio, type AspectRatioProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/aspect-ratio.cjs","../../src/react/aspect-ratio.tsx"],"names":["AspectRatio"],"mappings":"AAAA,uWAAY,CCEZ,oHAAsC,IAQhCA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CAAA,wBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/aspect-ratio.cjs","sourcesContent":[null,"'use client';\n\nimport * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';\nimport type * as React from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: AspectRatio\n * -------------------------------------------------------------------------- */\n\ntype AspectRatioProps = React.ComponentPropsWithoutRef<typeof AspectRatioPrimitive.Root>;\nconst AspectRatio = AspectRatioPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { AspectRatio, type AspectRatioProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/avatar.tsx"],"names":["React","AvatarPrimitive","jsx","Avatar","className","props","forwardedRef","cn","AvatarImage","AvatarFallback"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBAW/B,cAAAC,MAAA,oBADF,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,8DAA+DH,CAAS,EACrF,GAAGC,EACN,CACD,EAEDF,EAAO,YAA8B,OAAK,YAS1C,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAiB,QAAhB,CAAsB,IAAKI,EAAc,UAAWC,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC3G,EAEDG,EAAY,YAA8B,QAAM,YAShD,IAAMC,EAAuB,aAC3B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAiB,WAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,mEAAoEH,CAAS,EAC1F,GAAGC,EACN,CAEJ,EAEAI,EAAe,YAA8B,WAAS","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\ntype AvatarElement = React.ElementRef<typeof AvatarPrimitive.Root>;\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;\n\nconst Avatar = React.forwardRef<AvatarElement, AvatarProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Root\n ref={forwardedRef}\n className={cn('relative flex size-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarImage\n * -------------------------------------------------------------------------- */\n\ntype AvatarImageElement = React.ElementRef<typeof AvatarPrimitive.Image>;\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nconst AvatarImage = React.forwardRef<AvatarImageElement, AvatarImageProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Image ref={forwardedRef} className={cn('aspect-square size-full', className)} {...props} />\n));\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarFallback\n * -------------------------------------------------------------------------- */\n\ntype AvatarFallbackElement = React.ElementRef<typeof AvatarPrimitive.Fallback>;\ntype AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\n\nconst AvatarFallback = React.forwardRef<AvatarFallbackElement, AvatarFallbackProps>(\n ({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Fallback\n ref={forwardedRef}\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n {...props}\n />\n ),\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Avatar, AvatarImage, AvatarFallback, type AvatarProps, type AvatarImageProps, type AvatarFallbackProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/avatar.cjs","../../src/react/avatar.tsx"],"names":["Avatar","className","props","forwardedRef","jsx","cn","AvatarImage","AvatarFallback"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,oGACU,+CAW/B,IADIA,CAAAA,CAAe,CAAA,CAAA,UAAA,CAAuC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACpFC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,6DAAG,CAA+DJ,CAAS,CAAA,CACrF,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDF,CAAAA,CAAO,WAAA,CAA8B,CAAA,CAAA,IAAA,CAAK,WAAA,CAS1C,IAAMM,CAAAA,CAAoB,CAAA,CAAA,UAAA,CAAiD,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnGC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAAsB,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,yBAAG,CAA2BJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAC3G,CAAA,CAEDI,CAAAA,CAAY,WAAA,CAA8B,CAAA,CAAA,KAAA,CAAM,WAAA,CAShD,IAAMC,CAAAA,CAAuB,CAAA,CAAA,UAAA,CAC3B,CAAC,CAAE,SAAA,CAAAN,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAiB,CAAA,QAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,kEAAG,CAAoEJ,CAAS,CAAA,CAC1F,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAK,CAAAA,CAAe,WAAA,CAA8B,CAAA,CAAA,QAAA,CAAS,WAAA,CAAA,wEAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/avatar.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\ntype AvatarElement = React.ElementRef<typeof AvatarPrimitive.Root>;\ntype AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;\n\nconst Avatar = React.forwardRef<AvatarElement, AvatarProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Root\n ref={forwardedRef}\n className={cn('relative flex size-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\n\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarImage\n * -------------------------------------------------------------------------- */\n\ntype AvatarImageElement = React.ElementRef<typeof AvatarPrimitive.Image>;\ntype AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;\n\nconst AvatarImage = React.forwardRef<AvatarImageElement, AvatarImageProps>(({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Image ref={forwardedRef} className={cn('aspect-square size-full', className)} {...props} />\n));\n\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarFallback\n * -------------------------------------------------------------------------- */\n\ntype AvatarFallbackElement = React.ElementRef<typeof AvatarPrimitive.Fallback>;\ntype AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;\n\nconst AvatarFallback = React.forwardRef<AvatarFallbackElement, AvatarFallbackProps>(\n ({ className, ...props }, forwardedRef) => (\n <AvatarPrimitive.Fallback\n ref={forwardedRef}\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n {...props}\n />\n ),\n);\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Avatar, AvatarImage, AvatarFallback, type AvatarProps, type AvatarImageProps, type AvatarFallbackProps };\n"]}