@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.
- package/dist/chunk-CE6DSAWA.cjs +2 -0
- package/dist/chunk-CE6DSAWA.cjs.map +1 -0
- package/dist/chunk-DULXJDFQ.js +2 -0
- package/dist/chunk-DULXJDFQ.js.map +1 -0
- package/dist/react/checkbox-cards.cjs +1 -1
- package/dist/react/checkbox-cards.cjs.map +1 -1
- package/dist/react/checkbox-cards.d.cts +4 -8
- package/dist/react/checkbox-cards.d.ts +4 -8
- package/dist/react/checkbox-cards.js +1 -1
- package/dist/react/checkbox-cards.js.map +1 -1
- package/dist/react/checkbox-group.cjs +1 -1
- package/dist/react/checkbox-group.cjs.map +1 -1
- package/dist/react/checkbox-group.d.cts +5 -9
- package/dist/react/checkbox-group.d.ts +5 -9
- package/dist/react/checkbox-group.js +1 -1
- package/dist/react/checkbox-group.js.map +1 -1
- package/dist/react/number-input.cjs +1 -1
- package/dist/react/number-input.cjs.map +1 -1
- package/dist/react/number-input.d.cts +4 -7
- package/dist/react/number-input.d.ts +4 -7
- package/dist/react/number-input.js +1 -1
- package/dist/react/number-input.js.map +1 -1
- package/dist/react/text-input.cjs +1 -1
- package/dist/react/text-input.cjs.map +1 -1
- package/dist/react/text-input.d.cts +150 -9
- package/dist/react/text-input.d.ts +150 -9
- package/dist/react/text-input.js +1 -1
- package/dist/react/text-input.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +10 -11
- package/dist/chunk-3Z6QUP75.cjs +0 -2
- package/dist/chunk-3Z6QUP75.cjs.map +0 -1
- package/dist/chunk-76TT2QSB.cjs +0 -2
- package/dist/chunk-76TT2QSB.cjs.map +0 -1
- package/dist/chunk-7NEJ7IQ3.cjs +0 -2
- package/dist/chunk-7NEJ7IQ3.cjs.map +0 -1
- package/dist/chunk-CAK5VDBY.js +0 -2
- package/dist/chunk-CAK5VDBY.js.map +0 -1
- package/dist/chunk-EYL4UQ5E.js +0 -2
- package/dist/chunk-EYL4UQ5E.js.map +0 -1
- package/dist/chunk-OJI2FD2T.cjs +0 -2
- package/dist/chunk-OJI2FD2T.cjs.map +0 -1
- package/dist/chunk-QCHBG2C4.js +0 -2
- package/dist/chunk-QCHBG2C4.js.map +0 -1
- package/dist/chunk-W5RHRZIO.js +0 -2
- package/dist/chunk-W5RHRZIO.js.map +0 -1
- package/dist/react/primitive/checkbox-group.cjs +0 -2
- package/dist/react/primitive/checkbox-group.cjs.map +0 -1
- package/dist/react/primitive/checkbox-group.d.cts +0 -35
- package/dist/react/primitive/checkbox-group.d.ts +0 -35
- package/dist/react/primitive/checkbox-group.js +0 -2
- package/dist/react/primitive/checkbox-group.js.map +0 -1
- package/dist/react/primitive/input.cjs +0 -2
- package/dist/react/primitive/input.cjs.map +0 -1
- package/dist/react/primitive/input.d.cts +0 -20
- package/dist/react/primitive/input.d.ts +0 -20
- package/dist/react/primitive/input.js +0 -2
- package/dist/react/primitive/input.js.map +0 -1
- package/dist/react/primitive/number-input.cjs +0 -2
- package/dist/react/primitive/number-input.cjs.map +0 -1
- package/dist/react/primitive/number-input.d.cts +0 -36
- package/dist/react/primitive/number-input.d.ts +0 -36
- package/dist/react/primitive/number-input.js +0 -2
- package/dist/react/primitive/number-input.js.map +0 -1
- package/dist/react/style/input.cjs +0 -2
- package/dist/react/style/input.cjs.map +0 -1
- package/dist/react/style/input.d.cts +0 -161
- package/dist/react/style/input.d.ts +0 -161
- package/dist/react/style/input.js +0 -2
- 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
|
|
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","
|
|
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
|
|
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
|
|
9
|
-
declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
interface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof
|
|
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
|
|
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
|
|
9
|
-
declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
interface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof
|
|
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{
|
|
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
|
|
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
|
|
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","
|
|
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
|
|
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
|
|
9
|
-
declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps
|
|
10
|
-
type CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof
|
|
11
|
-
declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<CheckboxGroupItemProps
|
|
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
|
|
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
|
|
9
|
-
declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps
|
|
10
|
-
type CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof
|
|
11
|
-
declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<CheckboxGroupItemProps
|
|
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{
|
|
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
|
|
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
|
|
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","
|
|
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
|
|
3
|
-
import { InputVariantsProps } from './
|
|
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
|
|
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
|
|
3
|
-
import { InputVariantsProps } from './
|
|
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
|
|
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{
|
|
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 '
|
|
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});
|
|
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"
|
|
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
|
|
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
|
-
|
|
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 };
|