@codefast/ui 0.1.10 → 0.1.11

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 (71) hide show
  1. package/dist/chunk-CE6DSAWA.cjs +2 -0
  2. package/dist/chunk-CE6DSAWA.cjs.map +1 -0
  3. package/dist/chunk-DULXJDFQ.js +2 -0
  4. package/dist/chunk-DULXJDFQ.js.map +1 -0
  5. package/dist/react/checkbox-cards.cjs +1 -1
  6. package/dist/react/checkbox-cards.cjs.map +1 -1
  7. package/dist/react/checkbox-cards.d.cts +4 -8
  8. package/dist/react/checkbox-cards.d.ts +4 -8
  9. package/dist/react/checkbox-cards.js +1 -1
  10. package/dist/react/checkbox-cards.js.map +1 -1
  11. package/dist/react/checkbox-group.cjs +1 -1
  12. package/dist/react/checkbox-group.cjs.map +1 -1
  13. package/dist/react/checkbox-group.d.cts +5 -9
  14. package/dist/react/checkbox-group.d.ts +5 -9
  15. package/dist/react/checkbox-group.js +1 -1
  16. package/dist/react/checkbox-group.js.map +1 -1
  17. package/dist/react/number-input.cjs +1 -1
  18. package/dist/react/number-input.cjs.map +1 -1
  19. package/dist/react/number-input.d.cts +4 -7
  20. package/dist/react/number-input.d.ts +4 -7
  21. package/dist/react/number-input.js +1 -1
  22. package/dist/react/number-input.js.map +1 -1
  23. package/dist/react/text-input.cjs +1 -1
  24. package/dist/react/text-input.cjs.map +1 -1
  25. package/dist/react/text-input.d.cts +150 -9
  26. package/dist/react/text-input.d.ts +150 -9
  27. package/dist/react/text-input.js +1 -1
  28. package/dist/react/text-input.js.map +1 -1
  29. package/dist/styles.css +1 -1
  30. package/dist/styles.css.map +1 -1
  31. package/package.json +10 -11
  32. package/dist/chunk-3Z6QUP75.cjs +0 -2
  33. package/dist/chunk-3Z6QUP75.cjs.map +0 -1
  34. package/dist/chunk-76TT2QSB.cjs +0 -2
  35. package/dist/chunk-76TT2QSB.cjs.map +0 -1
  36. package/dist/chunk-7NEJ7IQ3.cjs +0 -2
  37. package/dist/chunk-7NEJ7IQ3.cjs.map +0 -1
  38. package/dist/chunk-CAK5VDBY.js +0 -2
  39. package/dist/chunk-CAK5VDBY.js.map +0 -1
  40. package/dist/chunk-EYL4UQ5E.js +0 -2
  41. package/dist/chunk-EYL4UQ5E.js.map +0 -1
  42. package/dist/chunk-OJI2FD2T.cjs +0 -2
  43. package/dist/chunk-OJI2FD2T.cjs.map +0 -1
  44. package/dist/chunk-QCHBG2C4.js +0 -2
  45. package/dist/chunk-QCHBG2C4.js.map +0 -1
  46. package/dist/chunk-W5RHRZIO.js +0 -2
  47. package/dist/chunk-W5RHRZIO.js.map +0 -1
  48. package/dist/react/primitive/checkbox-group.cjs +0 -2
  49. package/dist/react/primitive/checkbox-group.cjs.map +0 -1
  50. package/dist/react/primitive/checkbox-group.d.cts +0 -35
  51. package/dist/react/primitive/checkbox-group.d.ts +0 -35
  52. package/dist/react/primitive/checkbox-group.js +0 -2
  53. package/dist/react/primitive/checkbox-group.js.map +0 -1
  54. package/dist/react/primitive/input.cjs +0 -2
  55. package/dist/react/primitive/input.cjs.map +0 -1
  56. package/dist/react/primitive/input.d.cts +0 -20
  57. package/dist/react/primitive/input.d.ts +0 -20
  58. package/dist/react/primitive/input.js +0 -2
  59. package/dist/react/primitive/input.js.map +0 -1
  60. package/dist/react/primitive/number-input.cjs +0 -2
  61. package/dist/react/primitive/number-input.cjs.map +0 -1
  62. package/dist/react/primitive/number-input.d.cts +0 -36
  63. package/dist/react/primitive/number-input.d.ts +0 -36
  64. package/dist/react/primitive/number-input.js +0 -2
  65. package/dist/react/primitive/number-input.js.map +0 -1
  66. package/dist/react/style/input.cjs +0 -2
  67. package/dist/react/style/input.cjs.map +0 -1
  68. package/dist/react/style/input.d.cts +0 -161
  69. package/dist/react/style/input.d.ts +0 -161
  70. package/dist/react/style/input.js +0 -2
  71. package/dist/react/style/input.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkVJSYNP4Ocjs = require('./chunk-VJSYNP4O.cjs');var _react = require('react'); var p = _interopRequireWildcard(_react);var _tailwindvariants = require('tailwind-variants');var _input = require('@codefast/primitive/input'); var t = _interopRequireWildcard(_input);var _jsxruntime = require('react/jsx-runtime');var d=_tailwindvariants.tv.call(void 0, {slots:{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-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4",input:"placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default"},variants:{inputSize:{default:{root:"h-10",input:"file:py-2.25"},xs:{root:"h-8",input:"file:py-1.25"},sm:{root:"h-9",input:"file:py-1.75"},lg:{root:"h-11",input:"file:py-2.75"}}},defaultVariants:{inputSize:"default"}}),{root:c,input:x}=d(),I= exports.b =p.forwardRef(({inputSize:o,className:s,loading:r,loaderPosition:n,prefix:a,suffix:u,...f},l)=>_jsxruntime.jsxs.call(void 0, t.Root,{className:c({inputSize:o,className:s}),children:[r&&n==="prefix"?_jsxruntime.jsx.call(void 0, _chunkVJSYNP4Ocjs.a,{}):a,_jsxruntime.jsx.call(void 0, t.Item,{ref:l,className:x({inputSize:o}),...f}),r&&n==="suffix"?_jsxruntime.jsx.call(void 0, _chunkVJSYNP4Ocjs.a,{}):u]}));I.displayName="TextInput";exports.a = d; exports.b = I;
2
+ //# sourceMappingURL=chunk-CE6DSAWA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CE6DSAWA.cjs","../src/react/text-input.tsx"],"names":["inputVariants","tv","root","input","TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","jsxs","jsx","Spinner"],"mappings":"AAAA,mZAAwC,uECEjB,qDACe,2FACN,+CA4D1B,IArDAA,CAAAA,CAAgBC,kCAAAA,CACpB,KAAA,CAAO,CACL,IAAA,CAAM,iTAAA,CACN,KAAA,CACE,yMACJ,CAAA,CACA,QAAA,CAAU,CACR,SAAA,CAAW,CACT,OAAA,CAAS,CACP,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,cACT,CACF,CACF,CAAA,CACA,eAAA,CAAiB,CACf,SAAA,CAAW,SACb,CACF,CAAC,CAAA,CAIK,CAAE,IAAA,CAAAC,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIH,CAAAA,CAAc,CAAA,CAiBhCI,CAAAA,aAAkB,CAAA,CAAA,UAAA,CACtB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,cAAA,CAAAC,CAAAA,CAAgB,MAAA,CAAAC,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAE1EC,8BAAAA,CAAgB,CAAA,IAAA,CAAf,CAAoB,SAAA,CAAWX,CAAAA,CAAK,CAAE,SAAA,CAAAG,CAAAA,CAAW,SAAA,CAAAC,CAAU,CAAC,CAAA,CAC1D,QAAA,CAAA,CAAAC,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWM,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKN,CAAAA,CACxDK,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CAAoB,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWT,CAAAA,CAAM,CAAE,SAAA,CAAAE,CAAU,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CAAA,CACnFJ,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWM,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKL,CAAAA,CAAAA,CAC1D,CAGN,CAAA,CAEAN,CAAAA,CAAU,WAAA,CAAc,WAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CE6DSAWA.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport * as InputPrimitive from '@codefast/primitive/input';\nimport { Spinner } from '@/react/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-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4',\n input:\n 'placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer 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 input: 'file:py-2.25',\n },\n xs: {\n root: 'h-8',\n input: 'file:py-1.25',\n },\n sm: {\n root: 'h-9',\n input: 'file:py-1.75',\n },\n lg: {\n root: 'h-11',\n input: 'file:py-2.75',\n },\n },\n },\n defaultVariants: {\n inputSize: 'default',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => {\n return (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n );\n },\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps, inputVariants, type InputVariantsProps };\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-JK5GPYFN.js";import*as p from"react";import{tv as m}from"tailwind-variants";import*as t from"@codefast/primitive/input";import{jsx as i,jsxs as P}from"react/jsx-runtime";var d=m({slots:{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-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4",input:"placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default"},variants:{inputSize:{default:{root:"h-10",input:"file:py-2.25"},xs:{root:"h-8",input:"file:py-1.25"},sm:{root:"h-9",input:"file:py-1.75"},lg:{root:"h-11",input:"file:py-2.75"}}},defaultVariants:{inputSize:"default"}}),{root:c,input:x}=d(),I=p.forwardRef(({inputSize:o,className:s,loading:r,loaderPosition:n,prefix:a,suffix:u,...f},l)=>P(t.Root,{className:c({inputSize:o,className:s}),children:[r&&n==="prefix"?i(e,{}):a,i(t.Item,{ref:l,className:x({inputSize:o}),...f}),r&&n==="suffix"?i(e,{}):u]}));I.displayName="TextInput";export{d as a,I as b};
2
+ //# sourceMappingURL=chunk-DULXJDFQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/react/text-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport * as InputPrimitive from '@codefast/primitive/input';\nimport { Spinner } from '@/react/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-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4',\n input:\n 'placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer 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 input: 'file:py-2.25',\n },\n xs: {\n root: 'h-8',\n input: 'file:py-1.25',\n },\n sm: {\n root: 'h-9',\n input: 'file:py-1.75',\n },\n lg: {\n root: 'h-11',\n input: 'file:py-2.75',\n },\n },\n },\n defaultVariants: {\n inputSize: 'default',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => {\n return (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n );\n },\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps, inputVariants, type InputVariantsProps };\n"],"mappings":"wCAEA,UAAYA,MAAW,QACvB,OAAS,MAAAC,MAA6B,oBACtC,UAAYC,MAAoB,4BA4D1B,OAC4C,OAAAC,EAD5C,QAAAC,MAAA,oBArDN,IAAMC,EAAgBC,EAAG,CACvB,MAAO,CACL,KAAM,kTACN,MACE,yMACJ,EACA,SAAU,CACR,UAAW,CACT,QAAS,CACP,KAAM,OACN,MAAO,cACT,EACA,GAAI,CACF,KAAM,MACN,MAAO,cACT,EACA,GAAI,CACF,KAAM,MACN,MAAO,cACT,EACA,GAAI,CACF,KAAM,OACN,MAAO,cACT,CACF,CACF,EACA,gBAAiB,CACf,UAAW,SACb,CACF,CAAC,EAIK,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIH,EAAc,EAiBhCI,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,QAAAC,EAAS,eAAAC,EAAgB,OAAAC,EAAQ,OAAAC,EAAQ,GAAGC,CAAM,EAAGC,IAE1Eb,EAAgB,OAAf,CAAoB,UAAWG,EAAK,CAAE,UAAAG,EAAW,UAAAC,CAAU,CAAC,EAC1D,UAAAC,GAAWC,IAAmB,SAAWV,EAACe,EAAA,EAAQ,EAAKJ,EACxDX,EAAgB,OAAf,CAAoB,IAAKc,EAAc,UAAWT,EAAM,CAAE,UAAAE,CAAU,CAAC,EAAI,GAAGM,EAAO,EACnFJ,GAAWC,IAAmB,SAAWV,EAACe,EAAA,EAAQ,EAAKH,GAC1D,CAGN,EAEAN,EAAU,YAAc","names":["React","tv","InputPrimitive","jsx","jsxs","inputVariants","tv","root","input","TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","Spinner"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkOJI2FD2Tcjs = require('../chunk-OJI2FD2T.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var b=a.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, _chunkOJI2FD2Tcjs.b,{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",r),...t,ref:i}));b.displayName=_chunkOJI2FD2Tcjs.b.displayName;var h=a.forwardRef(({children:r,className:t,checkboxClassName:i,...p},C)=>_jsxruntime.jsxs.call(void 0, "label",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex items-center justify-center gap-4 rounded-md border p-4",t),children:[r,_jsxruntime.jsx.call(void 0, _chunkOJI2FD2Tcjs.c,{ref:C,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",i),...p,children:_jsxruntime.jsx.call(void 0, _chunkOJI2FD2Tcjs.d,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})})]}));h.displayName=_chunkOJI2FD2Tcjs.c.displayName;exports.CheckboxCards = b; exports.CheckboxCardsItem = h;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _checkboxgroup = require('@codefast/primitive/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _jsxruntime = require('react/jsx-runtime');var C=s.forwardRef(({className:t,...i},c)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",t),...i,ref:c}));C.displayName=e.Root.displayName;var d=s.forwardRef(({children:t,className:i,checkboxClassName:c,...a},m)=>_jsxruntime.jsxs.call(void 0, "label",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,_jsxruntime.jsx.call(void 0, e.Item,{ref:m,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",c),...a,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;exports.CheckboxCards = C; exports.CheckboxCardsItem = d;
2
2
  //# sourceMappingURL=checkbox-cards.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-cards.cjs","../../src/react/checkbox-cards.tsx"],"names":["CheckboxCards","className","props","forwardedRef","jsx","CheckboxGroup","cn","CheckboxCardsItem","children","checkboxClassName","jsxs","CheckboxGroupItem","CheckboxGroupIndicator","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAuD,yDAA0C,uECEvF,mDACG,+CAaf,IAFLA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjBC,6BAAAA,mBAAwBC,CAAvB,CAA4B,SAAA,CAAWC,iCAAAA,YAAG,CAAcL,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,GAAA,CAAKC,CAAAA,CAAc,CAE9G,CAAA,CAEAH,CAAAA,CAAc,WAAA,CAAqCK,mBAAAA,CAAK,WAAA,CAYxD,IAAME,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAP,CAAAA,CAAW,iBAAA,CAAAQ,CAAAA,CAAmB,GAAGP,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAEnDO,8BAAAA,OAAC,CAAA,CAAM,SAAA,CAAWJ,iCAAAA,8DAAG,CAAgEL,CAAS,CAAA,CAC3F,QAAA,CAAA,CAAAO,CAAAA,CACDJ,6BAAAA,mBAAwBO,CAAvB,CACC,GAAA,CAAKR,CAAAA,CACL,SAAA,CAAWG,iCAAAA,qSACT,CACAG,CACF,CAAA,CACC,GAAGP,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,mBAAwBQ,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAR,6BAAAA,qBAACS,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAAA,CAAA,CACF,CAGN,CAAA,CAEAN,CAAAA,CAAkB,WAAA,CAAqCI,mBAAAA,CAAK,WAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-cards.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport * as CheckboxGroupPrimitive from '@/react/primitive/checkbox-group';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n },\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => {\n return (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n );\n },\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-cards.cjs","../../src/react/checkbox-cards.tsx"],"names":["CheckboxCards","className","props","forwardedRef","jsx","cn","CheckboxCardsItem","children","checkboxClassName","jsxs","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,mDACG,oHACc,+CAY7B,IAFLA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,GAAA,CAAKC,CAAAA,CAAc,CAE9G,CAAA,CAEAH,CAAAA,CAAc,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAYxD,IAAMM,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,iBAAA,CAAAO,CAAAA,CAAmB,GAAGN,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAEnDM,8BAAAA,OAAC,CAAA,CAAM,SAAA,CAAWJ,iCAAAA,8DAAG,CAAgEJ,CAAS,CAAA,CAC3F,QAAA,CAAA,CAAAM,CAAAA,CACDH,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,qSACT,CACAG,CACF,CAAA,CACC,GAAGN,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAA,6BAAAA,qBAACM,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAAA,CAAA,CACF,CAGN,CAAA,CAEAJ,CAAAA,CAAkB,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-cards.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n },\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => {\n return (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n );\n },\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"]}
@@ -1,13 +1,9 @@
1
1
  import * as React from 'react';
2
- import { CheckboxGroup, CheckboxGroupProps, CheckboxGroupItem } from './primitive/checkbox-group.cjs';
3
- import '@radix-ui/react-context';
4
- import '@radix-ui/react-checkbox';
5
- import '@radix-ui/react-roving-focus';
6
- import '@radix-ui/react-primitive';
2
+ import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
7
3
 
8
- type CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroup>;
9
- declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- interface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupItem> {
4
+ type CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
+ declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ interface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {
11
7
  checkboxClassName?: string;
12
8
  }
13
9
  declare const CheckboxCardsItem: React.ForwardRefExoticComponent<CheckboxCardsItemProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,13 +1,9 @@
1
1
  import * as React from 'react';
2
- import { CheckboxGroup, CheckboxGroupProps, CheckboxGroupItem } from './primitive/checkbox-group.js';
3
- import '@radix-ui/react-context';
4
- import '@radix-ui/react-checkbox';
5
- import '@radix-ui/react-roving-focus';
6
- import '@radix-ui/react-primitive';
2
+ import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
7
3
 
8
- type CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroup>;
9
- declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- interface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupItem> {
4
+ type CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
+ declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ interface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {
11
7
  checkboxClassName?: string;
12
8
  }
13
9
  declare const CheckboxCardsItem: React.ForwardRefExoticComponent<CheckboxCardsItemProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,2 +1,2 @@
1
- "use client";import{b as c,c as s,d as m}from"../chunk-CAK5VDBY.js";import{a as e}from"../chunk-VRBUDJBH.js";import*as a from"react";import{CheckIcon as d}from"@radix-ui/react-icons";import{jsx as o,jsxs as l}from"react/jsx-runtime";var b=a.forwardRef(({className:r,...t},i)=>o(c,{className:e("grid gap-2",r),...t,ref:i}));b.displayName=c.displayName;var h=a.forwardRef(({children:r,className:t,checkboxClassName:i,...p},C)=>l("label",{className:e("flex items-center justify-center gap-4 rounded-md border p-4",t),children:[r,o(s,{ref:C,className:e("border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",i),...p,children:o(m,{className:"flex size-full items-center justify-center text-current",children:o(d,{className:"size-3.5"})})})]}));h.displayName=s.displayName;export{b as CheckboxCards,h as CheckboxCardsItem};
1
+ "use client";import{a as o}from"../chunk-VRBUDJBH.js";import*as s from"react";import{CheckIcon as p}from"@radix-ui/react-icons";import*as e from"@codefast/primitive/checkbox-group";import{jsx as r,jsxs as b}from"react/jsx-runtime";var C=s.forwardRef(({className:t,...i},c)=>r(e.Root,{className:o("grid gap-2",t),...i,ref:c}));C.displayName=e.Root.displayName;var d=s.forwardRef(({children:t,className:i,checkboxClassName:c,...a},m)=>b("label",{className:o("flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,r(e.Item,{ref:m,className:o("border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",c),...a,children:r(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:r(p,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;export{C as CheckboxCards,d as CheckboxCardsItem};
2
2
  //# sourceMappingURL=checkbox-cards.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/checkbox-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport * as CheckboxGroupPrimitive from '@/react/primitive/checkbox-group';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n },\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => {\n return (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n );\n },\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"],"mappings":"6GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAaf,cAAAC,EAmBL,QAAAC,MAnBK,oBAFX,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjBL,EAAwBM,EAAvB,CAA4B,UAAWC,EAAG,aAAcJ,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAc,CAE9G,EAEAH,EAAc,YAAqCI,EAAK,YAYxD,IAAME,EAA0B,aAC9B,CAAC,CAAE,SAAAC,EAAU,UAAAN,EAAW,kBAAAO,EAAmB,GAAGN,CAAM,EAAGC,IAEnDJ,EAAC,SAAM,UAAWM,EAAG,+DAAgEJ,CAAS,EAC3F,UAAAM,EACDT,EAAwBW,EAAvB,CACC,IAAKN,EACL,UAAWE,EACT,sSACAG,CACF,EACC,GAAGN,EAEJ,SAAAJ,EAAwBY,EAAvB,CAA8C,UAAU,0DACvD,SAAAZ,EAACa,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CAGN,EAEAL,EAAkB,YAAqCG,EAAK","names":["React","CheckIcon","jsx","jsxs","CheckboxCards","className","props","forwardedRef","CheckboxGroup","cn","CheckboxCardsItem","children","checkboxClassName","CheckboxGroupItem","CheckboxGroupIndicator","CheckIcon"]}
1
+ {"version":3,"sources":["../../src/react/checkbox-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n },\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => {\n return (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n );\n },\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAC1B,UAAYC,MAA4B,qCAY7B,cAAAC,EAmBL,QAAAC,MAnBK,oBAFX,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjBL,EAAwB,OAAvB,CAA4B,UAAWM,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAc,CAE9G,EAEAH,EAAc,YAAqC,OAAK,YAYxD,IAAMK,EAA0B,aAC9B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,kBAAAM,EAAmB,GAAGL,CAAM,EAAGC,IAEnDJ,EAAC,SAAM,UAAWK,EAAG,+DAAgEH,CAAS,EAC3F,UAAAK,EACDR,EAAwB,OAAvB,CACC,IAAKK,EACL,UAAWC,EACT,sSACAG,CACF,EACC,GAAGL,EAEJ,SAAAJ,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACU,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CAGN,EAEAH,EAAkB,YAAqC,OAAK","names":["React","CheckIcon","CheckboxGroupPrimitive","jsx","jsxs","CheckboxCards","className","props","forwardedRef","cn","CheckboxCardsItem","children","checkboxClassName","CheckIcon"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkOJI2FD2Tcjs = require('../chunk-OJI2FD2T.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var p = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var a=p.forwardRef(({className:o,...r},t)=>_jsxruntime.jsx.call(void 0, _chunkOJI2FD2Tcjs.b,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",o),...r}));a.displayName="CheckboxGroup";var b=p.forwardRef(({className:o,...r},t)=>_jsxruntime.jsx.call(void 0, _chunkOJI2FD2Tcjs.c,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...r,children:_jsxruntime.jsx.call(void 0, _chunkOJI2FD2Tcjs.d,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));b.displayName="CheckboxGroupItem";exports.CheckboxGroup = a; exports.CheckboxGroupItem = b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var c = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _checkboxgroup = require('@codefast/primitive/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _jsxruntime = require('react/jsx-runtime');var u=c.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:i,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",r),...t}));u.displayName="CheckboxGroup";var s=c.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:i,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",r),...t,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));s.displayName="CheckboxGroupItem";exports.CheckboxGroup = u; exports.CheckboxGroupItem = s;
2
2
  //# sourceMappingURL=checkbox-group.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-group.cjs","../../src/react/checkbox-group.tsx"],"names":["CheckboxGroup","className","props","forwardedRef","jsx","cn","CheckboxGroupItem","CheckboxGroupIndicator","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAuD,yDAA0C,uECEvF,mDACG,+CAaf,IAFLA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjBC,6BAAAA,mBAAwBJ,CAAvB,CAA4B,GAAA,CAAKG,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE9G,CAAA,CAEAF,CAAAA,CAAc,WAAA,CAAc,eAAA,CAS5B,IAAMM,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAEtBC,6BAAAA,mBAAwBE,CAAvB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,gTACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,mBAAwBG,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAH,6BAAAA,qBAACI,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAGN,CAAA,CAEAF,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-group.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport * as CheckboxGroupPrimitive from '@/react/primitive/checkbox-group';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />;\n },\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n },\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-group.cjs","../../src/react/checkbox-group.tsx"],"names":["CheckboxGroup","className","props","forwardedRef","jsx","cn","CheckboxGroupItem","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,mDACG,oHACc,+CAY7B,IAFLA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACjBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE9G,CAAA,CAEAF,CAAAA,CAAc,WAAA,CAAc,eAAA,CAS5B,IAAMM,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAEtBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,gTACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAA,6BAAAA,qBAACG,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAGN,CAAA,CAEAD,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/checkbox-group.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />;\n },\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n },\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"]}
@@ -1,13 +1,9 @@
1
1
  import * as React from 'react';
2
- import { CheckboxGroup as CheckboxGroup$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxGroupItem as CheckboxGroupItem$1, CheckboxGroupItemProps as CheckboxGroupItemProps$1 } from './primitive/checkbox-group.cjs';
3
- import '@radix-ui/react-context';
4
- import '@radix-ui/react-checkbox';
5
- import '@radix-ui/react-roving-focus';
6
- import '@radix-ui/react-primitive';
2
+ import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
7
3
 
8
- type CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroup$1>;
9
- declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps$1 & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- type CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupItem$1>;
11
- declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<CheckboxGroupItemProps$1 & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ type CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
+ declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ type CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;
7
+ declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
8
 
13
9
  export { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps };
@@ -1,13 +1,9 @@
1
1
  import * as React from 'react';
2
- import { CheckboxGroup as CheckboxGroup$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxGroupItem as CheckboxGroupItem$1, CheckboxGroupItemProps as CheckboxGroupItemProps$1 } from './primitive/checkbox-group.js';
3
- import '@radix-ui/react-context';
4
- import '@radix-ui/react-checkbox';
5
- import '@radix-ui/react-roving-focus';
6
- import '@radix-ui/react-primitive';
2
+ import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
7
3
 
8
- type CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroup$1>;
9
- declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps$1 & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- type CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupItem$1>;
11
- declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<CheckboxGroupItemProps$1 & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ type CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
+ declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ type CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;
7
+ declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
8
 
13
9
  export { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps };
@@ -1,2 +1,2 @@
1
- "use client";import{b as c,c as m,d as u}from"../chunk-CAK5VDBY.js";import{a as i}from"../chunk-VRBUDJBH.js";import*as p from"react";import{CheckIcon as s}from"@radix-ui/react-icons";import{jsx as e}from"react/jsx-runtime";var a=p.forwardRef(({className:o,...r},t)=>e(c,{ref:t,className:i("grid gap-2",o),...r}));a.displayName="CheckboxGroup";var b=p.forwardRef(({className:o,...r},t)=>e(m,{ref:t,className:i("border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o),...r,children:e(u,{className:"flex size-full items-center justify-center text-current",children:e(s,{className:"size-3.5"})})}));b.displayName="CheckboxGroupItem";export{a as CheckboxGroup,b as CheckboxGroupItem};
1
+ "use client";import{a as p}from"../chunk-VRBUDJBH.js";import*as c from"react";import{CheckIcon as m}from"@radix-ui/react-icons";import*as e from"@codefast/primitive/checkbox-group";import{jsx as o}from"react/jsx-runtime";var u=c.forwardRef(({className:r,...t},i)=>o(e.Root,{ref:i,className:p("grid gap-2",r),...t}));u.displayName="CheckboxGroup";var s=c.forwardRef(({className:r,...t},i)=>o(e.Item,{ref:i,className:p("border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",r),...t,children:o(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:o(m,{className:"size-3.5"})})}));s.displayName="CheckboxGroupItem";export{u as CheckboxGroup,s as CheckboxGroupItem};
2
2
  //# sourceMappingURL=checkbox-group.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/checkbox-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport * as CheckboxGroupPrimitive from '@/react/primitive/checkbox-group';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />;\n },\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n },\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"],"mappings":"6GAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAaf,cAAAC,MAAA,oBAFX,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjBJ,EAAwBC,EAAvB,CAA4B,IAAKG,EAAc,UAAWC,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,CAE9G,EAEAF,EAAc,YAAc,gBAS5B,IAAMK,EAA0B,aAC9B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAwBM,EAAvB,CACC,IAAKF,EACL,UAAWC,EACT,iTACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwBO,EAAvB,CAA8C,UAAU,0DACvD,SAAAP,EAACQ,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAGN,EAEAF,EAAkB,YAAc","names":["React","CheckIcon","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem","CheckboxGroupIndicator","CheckIcon"]}
1
+ {"version":3,"sources":["../../src/react/checkbox-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => {\n return <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />;\n },\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input hover:border-primary aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 rounded-sm border shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n );\n },\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAC1B,UAAYC,MAA4B,qCAY7B,cAAAC,MAAA,oBAFX,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjBJ,EAAwB,OAAvB,CAA4B,IAAKI,EAAc,UAAWC,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,CAE9G,EAEAF,EAAc,YAAc,gBAS5B,IAAMK,EAA0B,aAC9B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EACT,iTACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACO,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAGN,EAEAD,EAAkB,YAAc","names":["React","CheckIcon","CheckboxGroupPrimitive","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem","CheckIcon"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk3Z6QUP75cjs = require('../chunk-3Z6QUP75.cjs');require('../chunk-76TT2QSB.cjs');var _chunk7NEJ7IQ3cjs = require('../chunk-7NEJ7IQ3.cjs');var _chunkYIBPK6E7cjs = require('../chunk-YIBPK6E7.cjs');require('../chunk-VJSYNP4O.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var l = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var w=l.forwardRef(({ariaDecrementLabel:c,ariaIncrementLabel:d,className:I,inputSize:r,defaultValue:f,disabled:N,formatOptions:b,id:v,max:P,min:R,readOnly:h,step:y,value:C,onChange:g,...B},D)=>_jsxruntime.jsxs.call(void 0, _chunk3Z6QUP75cjs.b,{ariaDecrementLabel:c,ariaIncrementLabel:d,className:_chunk7NEJ7IQ3cjs.b.call(void 0, {inputSize:r,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "pr-0",I)}),defaultValue:f,disabled:N,formatOptions:b,id:v,max:P,min:R,readOnly:h,step:y,value:C,onChange:g,children:[_jsxruntime.jsx.call(void 0, _chunk3Z6QUP75cjs.c,{ref:D,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:_chunk7NEJ7IQ3cjs.c.call(void 0, {inputSize:r}),inputMode:"numeric",spellCheck:"false",...B}),_jsxruntime.jsxs.call(void 0, "div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[_jsxruntime.jsx.call(void 0, _chunk3Z6QUP75cjs.d,{className:_chunkYIBPK6E7cjs.a.call(void 0, {size:"icon",variant:"ghost",className:"h-full rounded-none rounded-tr-md"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronUpIcon,{})}),_jsxruntime.jsx.call(void 0, _chunk3Z6QUP75cjs.e,{className:_chunkYIBPK6E7cjs.a.call(void 0, {size:"icon",variant:"ghost",className:"rounded-tb-md h-full rounded-none"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{})})]})]}));w.displayName="NumberInput";exports.NumberInput = w;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkCE6DSAWAcjs = require('../chunk-CE6DSAWA.cjs');var _chunkYIBPK6E7cjs = require('../chunk-YIBPK6E7.cjs');require('../chunk-VJSYNP4O.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var u = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _numberinput = require('@codefast/primitive/number-input'); var e = _interopRequireWildcard(_numberinput);var _jsxruntime = require('react/jsx-runtime');var{root:g,input:B}=_chunkCE6DSAWAcjs.a.call(void 0, ),D= exports.NumberInput =u.forwardRef(({ariaDecrementLabel:a,ariaIncrementLabel:p,className:s,inputSize:n,defaultValue:l,disabled:c,formatOptions:d,id:I,max:f,min:N,readOnly:b,step:v,value:P,onChange:R,...h},y)=>_jsxruntime.jsxs.call(void 0, e.Root,{ariaDecrementLabel:a,ariaIncrementLabel:p,className:g({inputSize:n,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "pr-0",s)}),defaultValue:l,disabled:c,formatOptions:d,id:I,max:f,min:N,readOnly:b,step:v,value:P,onChange:R,children:[_jsxruntime.jsx.call(void 0, e.Item,{ref:y,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:B({inputSize:n}),inputMode:"numeric",spellCheck:"false",...h}),_jsxruntime.jsxs.call(void 0, "div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[_jsxruntime.jsx.call(void 0, e.IncrementButton,{className:_chunkYIBPK6E7cjs.a.call(void 0, {size:"icon",variant:"ghost",className:"h-full rounded-none rounded-tr-md"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronUpIcon,{})}),_jsxruntime.jsx.call(void 0, e.DecrementButton,{className:_chunkYIBPK6E7cjs.a.call(void 0, {size:"icon",variant:"ghost",className:"rounded-tb-md h-full rounded-none"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{})})]})]}));D.displayName="NumberInput";exports.NumberInput = D;
2
2
  //# sourceMappingURL=number-input.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/number-input.cjs","../../src/react/number-input.tsx"],"names":["NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","jsxs","root","cn","jsx","NumberInputItem","input","NumberInputIncrementButton","buttonVariants","ChevronUpIcon","NumberInputDecrementButton","ChevronDownIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAA8D,iCAA8B,yDAAiD,yDAA0C,iCAA8B,yDAA0C,uECErP,mDACwB,+CAoDzC,IApCAA,CAAAA,CAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CACE,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EAEAC,8BAAAA,mBAAsBjB,CAArB,CACC,kBAAA,CAAoBC,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWgB,iCAAAA,CAAO,SAAA,CAAAd,CAAAA,CAAW,SAAA,CAAWe,iCAAAA,MAAG,CAAQhB,CAAS,CAAE,CAAC,CAAA,CAC/D,YAAA,CAAcE,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAA,CAAKC,CAAAA,CACL,QAAA,CAAUC,CAAAA,CACV,IAAA,CAAMC,CAAAA,CACN,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAUC,CAAAA,CAEV,QAAA,CAAA,CAAAM,6BAAAA,mBAAsBC,CAArB,CACC,GAAA,CAAKL,CAAAA,CACL,cAAA,CAAe,KAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWM,iCAAAA,CAAQ,SAAA,CAAAlB,CAAU,CAAC,CAAA,CAC9B,SAAA,CAAU,SAAA,CACV,UAAA,CAAW,OAAA,CACV,GAAGW,CAAAA,CACN,CAAA,CACAE,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,oDAAA,CACb,QAAA,CAAA,CAAAG,6BAAAA,mBAAsBG,CAArB,CACC,SAAA,CAAWC,iCAAAA,CAAiB,IAAA,CAAM,MAAA,CAAQ,OAAA,CAAS,OAAA,CAAS,SAAA,CAAW,mCAAoC,CAAC,CAAA,CAE5G,QAAA,CAAAJ,6BAAAA,yBAACK,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAL,6BAAAA,mBAAsBM,CAArB,CACC,SAAA,CAAWF,iCAAAA,CAAiB,IAAA,CAAM,MAAA,CAAQ,OAAA,CAAS,OAAA,CAAS,SAAA,CAAW,mCAAoC,CAAC,CAAA,CAE5G,QAAA,CAAAJ,6BAAAA,2BAACO,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEA3B,CAAAA,CAAY,WAAA,CAAc,aAAA,CAAA,wBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/number-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as NumberInputPrimitive from '@/react/primitive/number-input';\nimport { input, type InputVariantsProps, root } from '@/react/style/input';\nimport { buttonVariants } from '@/react/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: cn('pr-0', className) })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'h-full rounded-none rounded-tr-md' })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'rounded-tb-md h-full rounded-none' })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/number-input.cjs","../../src/react/number-input.tsx"],"names":["root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","jsxs","cn","jsx","buttonVariants","ChevronUpIcon","ChevronDownIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,iCAA8B,yDAA0C,uECEjJ,mDACwB,8GACT,+CAqDhC,GAhDA,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CAYhCC,CAAAA,uBAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CACE,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EAEAC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBhB,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWL,CAAAA,CAAK,CAAE,SAAA,CAAAO,CAAAA,CAAW,SAAA,CAAWc,iCAAAA,MAAG,CAAQf,CAAS,CAAE,CAAC,CAAA,CAC/D,YAAA,CAAcE,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAA,CAAKC,CAAAA,CACL,QAAA,CAAUC,CAAAA,CACV,IAAA,CAAMC,CAAAA,CACN,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAUC,CAAAA,CAEV,QAAA,CAAA,CAAAK,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,GAAA,CAAKH,CAAAA,CACL,cAAA,CAAe,KAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWlB,CAAAA,CAAM,CAAE,SAAA,CAAAM,CAAU,CAAC,CAAA,CAC9B,SAAA,CAAU,SAAA,CACV,UAAA,CAAW,OAAA,CACV,GAAGW,CAAAA,CACN,CAAA,CACAE,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,oDAAA,CACb,QAAA,CAAA,CAAAE,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CAAiB,IAAA,CAAM,MAAA,CAAQ,OAAA,CAAS,OAAA,CAAS,SAAA,CAAW,mCAAoC,CAAC,CAAA,CAE5G,QAAA,CAAAD,6BAAAA,yBAACE,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CAAiB,IAAA,CAAM,MAAA,CAAQ,OAAA,CAAS,OAAA,CAAS,SAAA,CAAW,mCAAoC,CAAC,CAAA,CAE5G,QAAA,CAAAD,6BAAAA,2BAACG,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAtB,CAAAA,CAAY,WAAA,CAAc,aAAA,CAAA,wBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/number-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as NumberInputPrimitive from '@codefast/primitive/number-input';\nimport { buttonVariants } from '@/react/button';\nimport { cn } from '@/lib/utils';\nimport { inputVariants, type InputVariantsProps } from '@/react/text-input';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: cn('pr-0', className) })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'h-full rounded-none rounded-tr-md' })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'rounded-tb-md h-full rounded-none' })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
@@ -1,14 +1,11 @@
1
1
  import * as React from 'react';
2
- import { NumberInput as NumberInput$1, NumberInputItem } from './primitive/number-input.cjs';
3
- import { InputVariantsProps } from './style/input.cjs';
4
- import '@radix-ui/react-context';
5
- import '@radix-ui/react-primitive';
6
- import './primitive/input.cjs';
7
- import 'tailwind-merge';
2
+ import * as NumberInputPrimitive from '@codefast/primitive/number-input';
3
+ import { InputVariantsProps } from './text-input.cjs';
8
4
  import 'tailwind-variants';
9
5
  import 'tailwind-variants/dist/config.js';
6
+ import '@codefast/primitive/input';
10
7
 
11
- interface NumberInputProps extends InputVariantsProps, React.ComponentProps<typeof NumberInput$1>, React.ComponentPropsWithoutRef<typeof NumberInputItem> {
8
+ interface NumberInputProps extends InputVariantsProps, React.ComponentProps<typeof NumberInputPrimitive.Root>, React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {
12
9
  }
13
10
  declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
14
11
 
@@ -1,14 +1,11 @@
1
1
  import * as React from 'react';
2
- import { NumberInput as NumberInput$1, NumberInputItem } from './primitive/number-input.js';
3
- import { InputVariantsProps } from './style/input.js';
4
- import '@radix-ui/react-context';
5
- import '@radix-ui/react-primitive';
6
- import './primitive/input.js';
7
- import 'tailwind-merge';
2
+ import * as NumberInputPrimitive from '@codefast/primitive/number-input';
3
+ import { InputVariantsProps } from './text-input.js';
8
4
  import 'tailwind-variants';
9
5
  import 'tailwind-variants/dist/config.js';
6
+ import '@codefast/primitive/input';
10
7
 
11
- interface NumberInputProps extends InputVariantsProps, React.ComponentProps<typeof NumberInput$1>, React.ComponentPropsWithoutRef<typeof NumberInputItem> {
8
+ interface NumberInputProps extends InputVariantsProps, React.ComponentProps<typeof NumberInputPrimitive.Root>, React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {
12
9
  }
13
10
  declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
14
11
 
@@ -1,2 +1,2 @@
1
- "use client";import{b as o,c as m,d as i,e as u}from"../chunk-W5RHRZIO.js";import"../chunk-QCHBG2C4.js";import{b as a,c as p}from"../chunk-EYL4UQ5E.js";import{a as t}from"../chunk-VEXIU3VB.js";import"../chunk-JK5GPYFN.js";import{a as n}from"../chunk-VRBUDJBH.js";import*as l from"react";import{ChevronDownIcon as V,ChevronUpIcon as E}from"@radix-ui/react-icons";import{jsx as e,jsxs as s}from"react/jsx-runtime";var w=l.forwardRef(({ariaDecrementLabel:c,ariaIncrementLabel:d,className:I,inputSize:r,defaultValue:f,disabled:N,formatOptions:b,id:v,max:P,min:R,readOnly:h,step:y,value:C,onChange:g,...B},D)=>s(o,{ariaDecrementLabel:c,ariaIncrementLabel:d,className:a({inputSize:r,className:n("pr-0",I)}),defaultValue:f,disabled:N,formatOptions:b,id:v,max:P,min:R,readOnly:h,step:y,value:C,onChange:g,children:[e(m,{ref:D,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:p({inputSize:r}),inputMode:"numeric",spellCheck:"false",...B}),s("div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[e(i,{className:t({size:"icon",variant:"ghost",className:"h-full rounded-none rounded-tr-md"}),children:e(E,{})}),e(u,{className:t({size:"icon",variant:"ghost",className:"rounded-tb-md h-full rounded-none"}),children:e(V,{})})]})]}));w.displayName="NumberInput";export{w as NumberInput};
1
+ "use client";import{a as m}from"../chunk-DULXJDFQ.js";import{a as r}from"../chunk-VEXIU3VB.js";import"../chunk-JK5GPYFN.js";import{a as o}from"../chunk-VRBUDJBH.js";import*as u from"react";import{ChevronDownIcon as C,ChevronUpIcon as V}from"@radix-ui/react-icons";import*as e from"@codefast/primitive/number-input";import{jsx as t,jsxs as i}from"react/jsx-runtime";var{root:g,input:B}=m(),D=u.forwardRef(({ariaDecrementLabel:a,ariaIncrementLabel:p,className:s,inputSize:n,defaultValue:l,disabled:c,formatOptions:d,id:I,max:f,min:N,readOnly:b,step:v,value:P,onChange:R,...h},y)=>i(e.Root,{ariaDecrementLabel:a,ariaIncrementLabel:p,className:g({inputSize:n,className:o("pr-0",s)}),defaultValue:l,disabled:c,formatOptions:d,id:I,max:f,min:N,readOnly:b,step:v,value:P,onChange:R,children:[t(e.Item,{ref:y,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:B({inputSize:n}),inputMode:"numeric",spellCheck:"false",...h}),i("div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[t(e.IncrementButton,{className:r({size:"icon",variant:"ghost",className:"h-full rounded-none rounded-tr-md"}),children:t(V,{})}),t(e.DecrementButton,{className:r({size:"icon",variant:"ghost",className:"rounded-tb-md h-full rounded-none"}),children:t(C,{})})]})]}));D.displayName="NumberInput";export{D as NumberInput};
2
2
  //# sourceMappingURL=number-input.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/number-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as NumberInputPrimitive from '@/react/primitive/number-input';\nimport { input, type InputVariantsProps, root } from '@/react/style/input';\nimport { buttonVariants } from '@/react/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: cn('pr-0', className) })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'h-full rounded-none rounded-tr-md' })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'rounded-tb-md h-full rounded-none' })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"],"mappings":"uQAEA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAoDzC,cAAAC,EAUA,QAAAC,MAVA,oBApCN,IAAMC,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,IAEAjB,EAAsBC,EAArB,CACC,mBAAoBC,EACpB,mBAAoBC,EACpB,UAAWe,EAAK,CAAE,UAAAb,EAAW,UAAWc,EAAG,OAAQf,CAAS,CAAE,CAAC,EAC/D,aAAcE,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,IAAKC,EACL,IAAKC,EACL,SAAUC,EACV,KAAMC,EACN,MAAOC,EACP,SAAUC,EAEV,UAAAhB,EAAsBqB,EAArB,CACC,IAAKH,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWI,EAAM,CAAE,UAAAhB,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGW,EACN,EACAhB,EAAC,OAAI,UAAU,qDACb,UAAAD,EAAsBuB,EAArB,CACC,UAAWC,EAAe,CAAE,KAAM,OAAQ,QAAS,QAAS,UAAW,mCAAoC,CAAC,EAE5G,SAAAxB,EAACyB,EAAA,EAAc,EACjB,EACAzB,EAAsB0B,EAArB,CACC,UAAWF,EAAe,CAAE,KAAM,OAAQ,QAAS,QAAS,UAAW,mCAAoC,CAAC,EAE5G,SAAAxB,EAAC2B,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAzB,EAAY,YAAc","names":["React","ChevronDownIcon","ChevronUpIcon","jsx","jsxs","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","root","cn","NumberInputItem","input","NumberInputIncrementButton","buttonVariants","ChevronUpIcon","NumberInputDecrementButton","ChevronDownIcon"]}
1
+ {"version":3,"sources":["../../src/react/number-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as NumberInputPrimitive from '@codefast/primitive/number-input';\nimport { buttonVariants } from '@/react/button';\nimport { cn } from '@/lib/utils';\nimport { inputVariants, type InputVariantsProps } from '@/react/text-input';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: cn('pr-0', className) })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'h-full rounded-none rounded-tr-md' })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({ size: 'icon', variant: 'ghost', className: 'rounded-tb-md h-full rounded-none' })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"],"mappings":"qKAEA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAC/C,UAAYC,MAA0B,mCAqDhC,cAAAC,EAUA,QAAAC,MAVA,oBAhDN,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,IAEApB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAO,EAAW,UAAWa,EAAG,OAAQd,CAAS,CAAE,CAAC,EAC/D,aAAcE,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,IAAKC,EACL,IAAKC,EACL,SAAUC,EACV,KAAMC,EACN,MAAOC,EACP,SAAUC,EAEV,UAAAnB,EAAsB,OAArB,CACC,IAAKqB,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWlB,EAAM,CAAE,UAAAM,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGW,EACN,EACAnB,EAAC,OAAI,UAAU,qDACb,UAAAD,EAAsB,kBAArB,CACC,UAAWuB,EAAe,CAAE,KAAM,OAAQ,QAAS,QAAS,UAAW,mCAAoC,CAAC,EAE5G,SAAAvB,EAACwB,EAAA,EAAc,EACjB,EACAxB,EAAsB,kBAArB,CACC,UAAWuB,EAAe,CAAE,KAAM,OAAQ,QAAS,QAAS,UAAW,mCAAoC,CAAC,EAE5G,SAAAvB,EAACyB,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEApB,EAAY,YAAc","names":["React","ChevronDownIcon","ChevronUpIcon","NumberInputPrimitive","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","cn","buttonVariants","ChevronUpIcon","ChevronDownIcon"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk76TT2QSBcjs = require('../chunk-76TT2QSB.cjs');var _chunk7NEJ7IQ3cjs = require('../chunk-7NEJ7IQ3.cjs');var _chunkVJSYNP4Ocjs = require('../chunk-VJSYNP4O.cjs');require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var f = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var P=f.forwardRef(({inputSize:p,className:s,loading:i,loaderPosition:o,prefix:u,suffix:I,...x},R)=>_jsxruntime.jsxs.call(void 0, _chunk76TT2QSBcjs.b,{className:_chunk7NEJ7IQ3cjs.b.call(void 0, {inputSize:p,className:s}),children:[i&&o==="prefix"?_jsxruntime.jsx.call(void 0, _chunkVJSYNP4Ocjs.a,{}):u,_jsxruntime.jsx.call(void 0, _chunk76TT2QSBcjs.c,{ref:R,className:_chunk7NEJ7IQ3cjs.c.call(void 0, {inputSize:p}),...x}),i&&o==="suffix"?_jsxruntime.jsx.call(void 0, _chunkVJSYNP4Ocjs.a,{}):I]}));P.displayName="TextInput";exports.TextInput = P;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkCE6DSAWAcjs = require('../chunk-CE6DSAWA.cjs');require('../chunk-VJSYNP4O.cjs');require('../chunk-4XRBMJ5Q.cjs');exports.TextInput = _chunkCE6DSAWAcjs.b; exports.inputVariants = _chunkCE6DSAWAcjs.a;
2
2
  //# sourceMappingURL=text-input.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/text-input.cjs","../../src/react/text-input.tsx"],"names":["TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","jsxs","Input","root","jsx","Spinner","InputItem","input"],"mappings":"AAAA,uWAAY,CAAC,yDAAgD,yDAAiD,yDAA0C,iCAA8B,uECE/J,+CAuBjB,IAHAA,CAAAA,CAAkB,CAAA,CAAA,UAAA,CACtB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,cAAA,CAAAC,CAAAA,CAAgB,MAAA,CAAAC,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAE1EC,8BAAAA,mBAAgBC,CAAf,CAAoB,SAAA,CAAWC,iCAAAA,CAAO,SAAA,CAAAV,CAAAA,CAAW,SAAA,CAAAC,CAAU,CAAC,CAAA,CAC1D,QAAA,CAAA,CAAAC,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWQ,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKR,CAAAA,CACxDO,6BAAAA,mBAAgBE,CAAf,CAAoB,GAAA,CAAKN,CAAAA,CAAc,SAAA,CAAWO,iCAAAA,CAAQ,SAAA,CAAAd,CAAU,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CAAA,CACnFJ,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWQ,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKP,CAAAA,CAAAA,CAC1D,CAGN,CAAA,CAEAN,CAAAA,CAAU,WAAA,CAAc,WAAA,CAAA,sBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/text-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as InputPrimitive from '@/react/primitive/input';\nimport { Spinner } from '@/react/spinner';\nimport { input, type InputVariantsProps, root } from '@/react/style/input';\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => {\n return (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n );\n },\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/text-input.cjs"],"names":[],"mappings":"AAAA,qFAAY,CAAC,yDAAsC,iCAA8B,iCAA8B,qFAA0C","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/text-input.cjs"}
@@ -1,13 +1,154 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
1
4
  import * as React from 'react';
2
- import { Input, InputItem } from './primitive/input.cjs';
3
- import { InputVariantsProps } from './style/input.cjs';
4
- import '@radix-ui/react-context';
5
- import '@radix-ui/react-primitive';
6
- import 'tailwind-merge';
7
- import 'tailwind-variants';
8
- import 'tailwind-variants/dist/config.js';
5
+ import * as InputPrimitive from '@codefast/primitive/input';
9
6
 
10
- interface TextInputProps extends InputVariantsProps, React.ComponentProps<typeof Input>, Omit<React.ComponentPropsWithoutRef<typeof InputItem>, 'prefix'> {
7
+ declare const inputVariants: tailwind_variants.TVReturnType<{
8
+ inputSize: {
9
+ default: {
10
+ root: string;
11
+ input: string;
12
+ };
13
+ xs: {
14
+ root: string;
15
+ input: string;
16
+ };
17
+ sm: {
18
+ root: string;
19
+ input: string;
20
+ };
21
+ lg: {
22
+ root: string;
23
+ input: string;
24
+ };
25
+ };
26
+ }, {
27
+ root: string;
28
+ input: string;
29
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
30
+ inputSize: {
31
+ default: {
32
+ root: string;
33
+ input: string;
34
+ };
35
+ xs: {
36
+ root: string;
37
+ input: string;
38
+ };
39
+ sm: {
40
+ root: string;
41
+ input: string;
42
+ };
43
+ lg: {
44
+ root: string;
45
+ input: string;
46
+ };
47
+ };
48
+ }, {
49
+ inputSize: {
50
+ default: {
51
+ root: string;
52
+ input: string;
53
+ };
54
+ xs: {
55
+ root: string;
56
+ input: string;
57
+ };
58
+ sm: {
59
+ root: string;
60
+ input: string;
61
+ };
62
+ lg: {
63
+ root: string;
64
+ input: string;
65
+ };
66
+ };
67
+ }>, {
68
+ inputSize: {
69
+ default: {
70
+ root: string;
71
+ input: string;
72
+ };
73
+ xs: {
74
+ root: string;
75
+ input: string;
76
+ };
77
+ sm: {
78
+ root: string;
79
+ input: string;
80
+ };
81
+ lg: {
82
+ root: string;
83
+ input: string;
84
+ };
85
+ };
86
+ }, {
87
+ root: string;
88
+ input: string;
89
+ }, tailwind_variants.TVReturnType<{
90
+ inputSize: {
91
+ default: {
92
+ root: string;
93
+ input: string;
94
+ };
95
+ xs: {
96
+ root: string;
97
+ input: string;
98
+ };
99
+ sm: {
100
+ root: string;
101
+ input: string;
102
+ };
103
+ lg: {
104
+ root: string;
105
+ input: string;
106
+ };
107
+ };
108
+ }, {
109
+ root: string;
110
+ input: string;
111
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
112
+ inputSize: {
113
+ default: {
114
+ root: string;
115
+ input: string;
116
+ };
117
+ xs: {
118
+ root: string;
119
+ input: string;
120
+ };
121
+ sm: {
122
+ root: string;
123
+ input: string;
124
+ };
125
+ lg: {
126
+ root: string;
127
+ input: string;
128
+ };
129
+ };
130
+ }, {
131
+ inputSize: {
132
+ default: {
133
+ root: string;
134
+ input: string;
135
+ };
136
+ xs: {
137
+ root: string;
138
+ input: string;
139
+ };
140
+ sm: {
141
+ root: string;
142
+ input: string;
143
+ };
144
+ lg: {
145
+ root: string;
146
+ input: string;
147
+ };
148
+ };
149
+ }>, unknown, unknown, undefined>>;
150
+ type InputVariantsProps = VariantProps<typeof inputVariants>;
151
+ interface TextInputProps extends InputVariantsProps, React.ComponentProps<typeof InputPrimitive.Root>, Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {
11
152
  loaderPosition?: 'prefix' | 'suffix';
12
153
  loading?: boolean;
13
154
  prefix?: React.ReactNode;
@@ -15,4 +156,4 @@ interface TextInputProps extends InputVariantsProps, React.ComponentProps<typeof
15
156
  }
16
157
  declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
17
158
 
18
- export { TextInput, type TextInputProps };
159
+ export { type InputVariantsProps, TextInput, type TextInputProps, inputVariants };