@codefast/ui 0.1.34 → 0.1.36

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 CodeFast Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkC3JCUMYCcjs = require('./chunk-C3JCUMYC.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcontext = require('@radix-ui/react-context');var _reactslot = require('@radix-ui/react-slot');var _lodashes = require('lodash-es');var _react = require('react');var _reacthookform = require('react-hook-form');var _jsxruntime = require('react/jsx-runtime');var q=_reacthookform.FormProvider,y="FormField",[M,z]=_reactcontext.createContextScope.call(void 0, y),[S,I]=M(y);function F(o,r){let{id:e}=R(o,r);return{formDescriptionId:`form-item-description-${e}`,formItemId:`form-item-${e}`,formMessageId:`form-item-message-${e}`,id:e}}function K(o){let{__scopeFormField:r,...e}=o;return _jsxruntime.jsx.call(void 0, S,{name:e.name,scope:r,children:_jsxruntime.jsx.call(void 0, _reacthookform.Controller,{...e})})}var T="FormItem",[b,R]=M(T),D= exports.d =_react.forwardRef.call(void 0, ({__scopeFormField:o,className:r,...e},t)=>{let s=_react.useId.call(void 0, );return _jsxruntime.jsx.call(void 0, b,{id:s,scope:o,children:_jsxruntime.jsx.call(void 0, "div",{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "space-y-2",r),...e})})});D.displayName=T;var h="FormLabel",v= exports.e =_react.forwardRef.call(void 0, ({__scopeFormField:o,...r},e)=>{let{formItemId:t}=F(p,o);return _jsxruntime.jsx.call(void 0, _chunkC3JCUMYCcjs.a,{ref:e,htmlFor:t,...r})});v.displayName=h;var E="FormControl",A= exports.f =_react.forwardRef.call(void 0, ({__scopeFormField:o,...r},e)=>{let{formItemId:t,formDescriptionId:s,formMessageId:d}=F(p,o),{name:i}=I(E,o),{errors:l}=_reacthookform.useFormState.call(void 0, {name:i});return _jsxruntime.jsx.call(void 0, _reactslot.Slot,{ref:e,"aria-describedby":l[i]?`${s} ${d}`:s,"aria-invalid":!!l[i],id:t,...r})});A.displayName=E;var _="FormDescription",H= exports.g =_react.forwardRef.call(void 0, ({__scopeFormField:o,className:r,...e},t)=>{let{formDescriptionId:s}=F(p,o);return _jsxruntime.jsx.call(void 0, "p",{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-xs",r),id:s,...e})});H.displayName=_;var p="FormMessage",O= exports.h =_react.forwardRef.call(void 0, ({__scopeFormField:o,children:r,className:e,...t},s)=>{let{formMessageId:d}=F(p,o),{name:i}=I(p,o),{errors:l}=_reacthookform.useFormState.call(void 0, {name:i}),c=_lodashes.result.call(void 0, l,i),P=_optionalChain([c, 'optionalAccess', _2 => _2.message])?String(c.message):r;return P?_jsxruntime.jsx.call(void 0, "p",{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-xs",_optionalChain([c, 'optionalAccess', _3 => _3.message])?"text-destructive font-medium":"text-muted-foreground",e),id:d,...t,children:P}):null});O.displayName=p;exports.a = q; exports.b = z; exports.c = K; exports.d = D; exports.e = v; exports.f = A; exports.g = H; exports.h = O;
2
- //# sourceMappingURL=chunk-DV7C3OBY.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkC3JCUMYCcjs = require('./chunk-C3JCUMYC.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcontext = require('@radix-ui/react-context');var _reactslot = require('@radix-ui/react-slot');var _lodashes = require('lodash-es');var _react = require('react');var _reacthookform = require('react-hook-form');var _jsxruntime = require('react/jsx-runtime');var q=_reacthookform.FormProvider,y="FormField",[M,z]=_reactcontext.createContextScope.call(void 0, y),[S,I]=M(y);function F(o,r){let{id:e}=R(o,r);return{formDescriptionId:`form-item-description-${e}`,formItemId:`form-item-${e}`,formMessageId:`form-item-message-${e}`,id:e}}function K(o){let{__scopeFormField:r,...e}=o;return _jsxruntime.jsx.call(void 0, S,{name:e.name,scope:r,children:_jsxruntime.jsx.call(void 0, _reacthookform.Controller,{...e})})}var T="FormItem",[b,R]=M(T),D= exports.d =_react.forwardRef.call(void 0, ({__scopeFormField:o,className:r,...e},t)=>{let s=_react.useId.call(void 0, );return _jsxruntime.jsx.call(void 0, b,{id:s,scope:o,children:_jsxruntime.jsx.call(void 0, "div",{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "grid gap-2",r),...e})})});D.displayName=T;var h="FormLabel",v= exports.e =_react.forwardRef.call(void 0, ({__scopeFormField:o,...r},e)=>{let{formItemId:t}=F(p,o);return _jsxruntime.jsx.call(void 0, _chunkC3JCUMYCcjs.a,{ref:e,htmlFor:t,...r})});v.displayName=h;var g="FormControl",A= exports.f =_react.forwardRef.call(void 0, ({__scopeFormField:o,...r},e)=>{let{formItemId:t,formDescriptionId:s,formMessageId:d}=F(p,o),{name:i}=I(g,o),{errors:l}=_reacthookform.useFormState.call(void 0, {name:i});return _jsxruntime.jsx.call(void 0, _reactslot.Slot,{ref:e,"aria-describedby":l[i]?`${s} ${d}`:s,"aria-invalid":!!l[i],id:t,...r})});A.displayName=g;var _="FormDescription",H= exports.g =_react.forwardRef.call(void 0, ({__scopeFormField:o,className:r,...e},t)=>{let{formDescriptionId:s}=F(p,o);return _jsxruntime.jsx.call(void 0, "p",{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-xs",r),id:s,...e})});H.displayName=_;var p="FormMessage",O= exports.h =_react.forwardRef.call(void 0, ({__scopeFormField:o,children:r,className:e,...t},s)=>{let{formMessageId:d}=F(p,o),{name:i}=I(p,o),{errors:l}=_reacthookform.useFormState.call(void 0, {name:i}),c=_lodashes.result.call(void 0, l,i),P=_optionalChain([c, 'optionalAccess', _2 => _2.message])?String(c.message):r;return P?_jsxruntime.jsx.call(void 0, "p",{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-xs",_optionalChain([c, 'optionalAccess', _3 => _3.message])?"text-destructive font-medium":"text-muted-foreground",e),id:d,...t,children:P}):null});O.displayName=p;exports.a = q; exports.b = z; exports.c = K; exports.d = D; exports.e = v; exports.f = A; exports.g = H; exports.h = O;
2
+ //# sourceMappingURL=chunk-LVV67TW7.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-LVV67TW7.cjs","../src/components/form.tsx"],"names":["createFormFieldContext","FormFieldProvider","useFormFieldContext","FORM_FIELD_NAME","useFormItem","consumerName","scope","id","useFormItemContext"],"mappings":"AAAA,ylBAAY,CAAC,wDAAwC,wDCE5C,uDACA,iDACA,qCAKP,8BAMA,gDA0EI,+CAnDkB,IAAA,CAAA,CAAA,2BAAA,CAAA,CAIlB,CAACA,WAUAC,CAAAA,CAAmBC,CAAmB,CAAA,CAC3CF,CAAAA,CAA8CG,8CAAe,CAE/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASC,CAAAA,CACPC,CAAAA,CACAC,SAOQ,CAAAC,CAAG,CAAA,CAAIC,CAAAA,CAAmBH,CAAAA,GAAmB,CAErD,EAAA,CAAA,CAAA,CAAA,CAAO,CACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,iBAAmB,CAAA,CAAA,sBACnB,EAAA,CAAA,CAAY,CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-LVV67TW7.cjs","sourcesContent":[null,"'use client';\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport { result } from 'lodash-es';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n useId,\n} from 'react';\nimport {\n Controller,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n FormProvider,\n type GlobalError,\n useFormState,\n} from 'react-hook-form';\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib/utils';\nimport type * as LabelPrimitive from '@radix-ui/react-label';\n\n/* -----------------------------------------------------------------------------\n * Component: Form\n * -------------------------------------------------------------------------- */\n\ntype FormProps = ComponentProps<typeof FormProvider>;\nconst Form = FormProvider;\n\n/* -----------------------------------------------------------------------------\n * Component: FormField\n * -------------------------------------------------------------------------- */\n\nconst FORM_FIELD_NAME = 'FormField';\n\ntype ScopedProps<P> = P & { __scopeFormField?: Scope };\n\nconst [createFormFieldContext, createFormFieldScope] =\n createContextScope(FORM_FIELD_NAME);\n\ninterface FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> {\n name: TName;\n}\n\nconst [FormFieldProvider, useFormFieldContext] =\n createFormFieldContext<FormFieldContextValue>(FORM_FIELD_NAME);\n\nfunction useFormItem(\n consumerName: string,\n scope: Scope,\n): {\n formDescriptionId: string;\n formItemId: string;\n formMessageId: string;\n id: string;\n} {\n const { id } = useFormItemContext(consumerName, scope);\n\n return {\n formDescriptionId: `form-item-description-${id}`,\n formItemId: `form-item-${id}`,\n formMessageId: `form-item-message-${id}`,\n id,\n };\n}\n\ntype FormFieldProps<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = ControllerProps<TFieldValues, TName>;\n\nfunction FormField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(formFieldProps: FormFieldProps<TFieldValues, TName>): JSX.Element {\n const { __scopeFormField, ...props } = formFieldProps as ScopedProps<\n FormFieldProps<TFieldValues, TName>\n >;\n\n return (\n <FormFieldProvider name={props.name} scope={__scopeFormField}>\n <Controller {...props} />\n </FormFieldProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormItem\n * -------------------------------------------------------------------------- */\n\nconst FORM_ITEM_NAME = 'FormItem';\n\ninterface FormItemContextValue {\n id: string;\n}\n\nconst [FormItemProvider, useFormItemContext] =\n createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);\n\ntype FormItemElement = HTMLDivElement;\ntype FormItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst FormItem = forwardRef<FormItemElement, FormItemProps>(\n (\n { __scopeFormField, className, ...props }: ScopedProps<FormItemProps>,\n forwardedRef,\n ) => {\n const id = useId();\n\n return (\n <FormItemProvider id={id} scope={__scopeFormField}>\n <div\n ref={forwardedRef}\n className={cn('grid gap-2', className)}\n {...props}\n />\n </FormItemProvider>\n );\n },\n);\n\nFormItem.displayName = FORM_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormLabel\n * -------------------------------------------------------------------------- */\n\nconst FORM_LABEL_NAME = 'FormLabel';\n\ntype FormFieldElement = ComponentRef<typeof LabelPrimitive.Root>;\ntype FormLabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst FormLabel = forwardRef<FormFieldElement, FormLabelProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormLabelProps>,\n forwardedRef,\n ) => {\n const { formItemId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return <Label ref={forwardedRef} htmlFor={formItemId} {...props} />;\n },\n);\n\nFormLabel.displayName = FORM_LABEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormControl\n * -------------------------------------------------------------------------- */\n\nconst FORM_CONTROL_NAME = 'FormControl';\n\ntype FormControlElement = ComponentRef<typeof Slot>;\ntype FormControlProps = ComponentPropsWithoutRef<typeof Slot>;\n\nconst FormControl = forwardRef<FormControlElement, FormControlProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormControlProps>,\n forwardedRef,\n ) => {\n const { formItemId, formDescriptionId, formMessageId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n const { name } = useFormFieldContext(FORM_CONTROL_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n\n return (\n <Slot\n ref={forwardedRef}\n aria-describedby={\n !errors[name]\n ? formDescriptionId\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={Boolean(errors[name])}\n id={formItemId}\n {...props}\n />\n );\n },\n);\n\nFormControl.displayName = FORM_CONTROL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormDescription\n * -------------------------------------------------------------------------- */\n\nconst FORM_DESCRIPTION_NAME = 'FormDescription';\n\ntype FormDescriptionElement = HTMLParagraphElement;\ntype FormDescriptionProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormDescription = forwardRef<\n FormDescriptionElement,\n FormDescriptionProps\n>(\n (\n {\n __scopeFormField,\n className,\n ...props\n }: ScopedProps<FormDescriptionProps>,\n forwardedRef,\n ) => {\n const { formDescriptionId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n\n return (\n <p\n ref={forwardedRef}\n className={cn('text-muted-foreground text-xs', className)}\n id={formDescriptionId}\n {...props}\n />\n );\n },\n);\n\nFormDescription.displayName = FORM_DESCRIPTION_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormMessage\n * -------------------------------------------------------------------------- */\n\nconst FORM_MESSAGE_NAME = 'FormMessage';\n\ntype FormMessageElement = HTMLParagraphElement;\ntype FormMessageProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormMessage = forwardRef<FormMessageElement, FormMessageProps>(\n (\n {\n __scopeFormField,\n children,\n className,\n ...props\n }: ScopedProps<FormMessageProps>,\n forwardedRef,\n ) => {\n const { formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n const { name } = useFormFieldContext(FORM_MESSAGE_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n const error = result<GlobalError | null>(errors, name);\n const body = error?.message ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={forwardedRef}\n className={cn(\n 'text-xs',\n error?.message\n ? 'text-destructive font-medium'\n : 'text-muted-foreground',\n className,\n )}\n id={formMessageId}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\n\nFormMessage.displayName = FORM_MESSAGE_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n createFormFieldScope,\n Form,\n FormControl,\n type FormControlProps,\n FormDescription,\n type FormDescriptionProps,\n FormField,\n type FormFieldProps,\n FormItem,\n type FormItemProps,\n FormLabel,\n type FormLabelProps,\n FormMessage,\n type FormMessageProps,\n type FormProps,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ "use client";import{a as u}from"./chunk-H6BT6PGA.js";import{a}from"./chunk-VPYH6JWS.js";import{createContextScope as E}from"@radix-ui/react-context";import{Slot as C}from"@radix-ui/react-slot";import{result as L}from"lodash-es";import{forwardRef as n,useId as N}from"react";import{Controller as V,FormProvider as x,useFormState as f}from"react-hook-form";import{jsx as m}from"react/jsx-runtime";var z=x,y="FormField",[M,K]=E(y),[S,I]=M(y);function F(o,r){let{id:e}=R(o,r);return{formDescriptionId:`form-item-description-${e}`,formItemId:`form-item-${e}`,formMessageId:`form-item-message-${e}`,id:e}}function Q(o){let{__scopeFormField:r,...e}=o;return m(S,{name:e.name,scope:r,children:m(V,{...e})})}var T="FormItem",[b,R]=M(T),D=n(({__scopeFormField:o,className:r,...e},t)=>{let s=N();return m(b,{id:s,scope:o,children:m("div",{ref:t,className:a("grid gap-2",r),...e})})});D.displayName=T;var h="FormLabel",v=n(({__scopeFormField:o,...r},e)=>{let{formItemId:t}=F(p,o);return m(u,{ref:e,htmlFor:t,...r})});v.displayName=h;var g="FormControl",A=n(({__scopeFormField:o,...r},e)=>{let{formItemId:t,formDescriptionId:s,formMessageId:d}=F(p,o),{name:i}=I(g,o),{errors:l}=f({name:i});return m(C,{ref:e,"aria-describedby":l[i]?`${s} ${d}`:s,"aria-invalid":!!l[i],id:t,...r})});A.displayName=g;var _="FormDescription",H=n(({__scopeFormField:o,className:r,...e},t)=>{let{formDescriptionId:s}=F(p,o);return m("p",{ref:t,className:a("text-muted-foreground text-xs",r),id:s,...e})});H.displayName=_;var p="FormMessage",O=n(({__scopeFormField:o,children:r,className:e,...t},s)=>{let{formMessageId:d}=F(p,o),{name:i}=I(p,o),{errors:l}=f({name:i}),c=L(l,i),P=c?.message?String(c.message):r;return P?m("p",{ref:s,className:a("text-xs",c?.message?"text-destructive font-medium":"text-muted-foreground",e),id:d,...t,children:P}):null});O.displayName=p;export{z as a,K as b,Q as c,D as d,v as e,A as f,H as g,O as h};
2
+ //# sourceMappingURL=chunk-SS3SK3YG.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/form.tsx"],"names":["createContextScope","Slot","result","forwardRef","useId","Controller","FormProvider","useFormState","jsx","Form","FORM_FIELD_NAME","createFormFieldContext","createFormFieldScope","FormFieldProvider","useFormFieldContext","useFormItem","consumerName","scope","id","useFormItemContext","FormField","formFieldProps","__scopeFormField","props","FORM_ITEM_NAME","FormItemProvider","FormItem","className","forwardedRef","cn","FORM_LABEL_NAME","FormLabel","formItemId","FORM_MESSAGE_NAME","Label","FORM_CONTROL_NAME","FormControl","formDescriptionId","formMessageId","name","errors","FORM_DESCRIPTION_NAME","FormDescription","FormMessage","children","error","body"],"mappings":"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","sourcesContent":["'use client';\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport { result } from 'lodash-es';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n useId,\n} from 'react';\nimport {\n Controller,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n FormProvider,\n type GlobalError,\n useFormState,\n} from 'react-hook-form';\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib/utils';\nimport type * as LabelPrimitive from '@radix-ui/react-label';\n\n/* -----------------------------------------------------------------------------\n * Component: Form\n * -------------------------------------------------------------------------- */\n\ntype FormProps = ComponentProps<typeof FormProvider>;\nconst Form = FormProvider;\n\n/* -----------------------------------------------------------------------------\n * Component: FormField\n * -------------------------------------------------------------------------- */\n\nconst FORM_FIELD_NAME = 'FormField';\n\ntype ScopedProps<P> = P & { __scopeFormField?: Scope };\n\nconst [createFormFieldContext, createFormFieldScope] =\n createContextScope(FORM_FIELD_NAME);\n\ninterface FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> {\n name: TName;\n}\n\nconst [FormFieldProvider, useFormFieldContext] =\n createFormFieldContext<FormFieldContextValue>(FORM_FIELD_NAME);\n\nfunction useFormItem(\n consumerName: string,\n scope: Scope,\n): {\n formDescriptionId: string;\n formItemId: string;\n formMessageId: string;\n id: string;\n} {\n const { id } = useFormItemContext(consumerName, scope);\n\n return {\n formDescriptionId: `form-item-description-${id}`,\n formItemId: `form-item-${id}`,\n formMessageId: `form-item-message-${id}`,\n id,\n };\n}\n\ntype FormFieldProps<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = ControllerProps<TFieldValues, TName>;\n\nfunction FormField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(formFieldProps: FormFieldProps<TFieldValues, TName>): JSX.Element {\n const { __scopeFormField, ...props } = formFieldProps as ScopedProps<\n FormFieldProps<TFieldValues, TName>\n >;\n\n return (\n <FormFieldProvider name={props.name} scope={__scopeFormField}>\n <Controller {...props} />\n </FormFieldProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormItem\n * -------------------------------------------------------------------------- */\n\nconst FORM_ITEM_NAME = 'FormItem';\n\ninterface FormItemContextValue {\n id: string;\n}\n\nconst [FormItemProvider, useFormItemContext] =\n createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);\n\ntype FormItemElement = HTMLDivElement;\ntype FormItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst FormItem = forwardRef<FormItemElement, FormItemProps>(\n (\n { __scopeFormField, className, ...props }: ScopedProps<FormItemProps>,\n forwardedRef,\n ) => {\n const id = useId();\n\n return (\n <FormItemProvider id={id} scope={__scopeFormField}>\n <div\n ref={forwardedRef}\n className={cn('space-y-2', className)}\n {...props}\n />\n </FormItemProvider>\n );\n },\n);\n\nFormItem.displayName = FORM_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormLabel\n * -------------------------------------------------------------------------- */\n\nconst FORM_LABEL_NAME = 'FormLabel';\n\ntype FormFieldElement = ComponentRef<typeof LabelPrimitive.Root>;\ntype FormLabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst FormLabel = forwardRef<FormFieldElement, FormLabelProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormLabelProps>,\n forwardedRef,\n ) => {\n const { formItemId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return <Label ref={forwardedRef} htmlFor={formItemId} {...props} />;\n },\n);\n\nFormLabel.displayName = FORM_LABEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormControl\n * -------------------------------------------------------------------------- */\n\nconst FORM_CONTROL_NAME = 'FormControl';\n\ntype FormControlElement = ComponentRef<typeof Slot>;\ntype FormControlProps = ComponentPropsWithoutRef<typeof Slot>;\n\nconst FormControl = forwardRef<FormControlElement, FormControlProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormControlProps>,\n forwardedRef,\n ) => {\n const { formItemId, formDescriptionId, formMessageId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n const { name } = useFormFieldContext(FORM_CONTROL_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n\n return (\n <Slot\n ref={forwardedRef}\n aria-describedby={\n !errors[name]\n ? formDescriptionId\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={Boolean(errors[name])}\n id={formItemId}\n {...props}\n />\n );\n },\n);\n\nFormControl.displayName = FORM_CONTROL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormDescription\n * -------------------------------------------------------------------------- */\n\nconst FORM_DESCRIPTION_NAME = 'FormDescription';\n\ntype FormDescriptionElement = HTMLParagraphElement;\ntype FormDescriptionProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormDescription = forwardRef<\n FormDescriptionElement,\n FormDescriptionProps\n>(\n (\n {\n __scopeFormField,\n className,\n ...props\n }: ScopedProps<FormDescriptionProps>,\n forwardedRef,\n ) => {\n const { formDescriptionId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n\n return (\n <p\n ref={forwardedRef}\n className={cn('text-muted-foreground text-xs', className)}\n id={formDescriptionId}\n {...props}\n />\n );\n },\n);\n\nFormDescription.displayName = FORM_DESCRIPTION_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormMessage\n * -------------------------------------------------------------------------- */\n\nconst FORM_MESSAGE_NAME = 'FormMessage';\n\ntype FormMessageElement = HTMLParagraphElement;\ntype FormMessageProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormMessage = forwardRef<FormMessageElement, FormMessageProps>(\n (\n {\n __scopeFormField,\n children,\n className,\n ...props\n }: ScopedProps<FormMessageProps>,\n forwardedRef,\n ) => {\n const { formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n const { name } = useFormFieldContext(FORM_MESSAGE_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n const error = result<GlobalError | null>(errors, name);\n const body = error?.message ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={forwardedRef}\n className={cn(\n 'text-xs',\n error?.message\n ? 'text-destructive font-medium'\n : 'text-muted-foreground',\n className,\n )}\n id={formMessageId}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\n\nFormMessage.displayName = FORM_MESSAGE_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n createFormFieldScope,\n Form,\n FormControl,\n type FormControlProps,\n FormDescription,\n type FormDescriptionProps,\n FormField,\n type FormFieldProps,\n FormItem,\n type FormItemProps,\n FormLabel,\n type FormLabelProps,\n FormMessage,\n type FormMessageProps,\n type FormProps,\n};\n"]}
1
+ {"version":3,"sources":["../src/components/form.tsx"],"names":["createContextScope","Slot","result","forwardRef","useId","Controller","FormProvider","useFormState","jsx","Form","FORM_FIELD_NAME","createFormFieldContext","createFormFieldScope","FormFieldProvider","useFormFieldContext","useFormItem","consumerName","scope","id","useFormItemContext","FormField","formFieldProps","__scopeFormField","props","FORM_ITEM_NAME","FormItemProvider","FormItem","className","forwardedRef","cn","FORM_LABEL_NAME","FormLabel","formItemId","FORM_MESSAGE_NAME","Label","FORM_CONTROL_NAME","FormControl","formDescriptionId","formMessageId","name","errors","FORM_DESCRIPTION_NAME","FormDescription","FormMessage","children","error","body"],"mappings":"2EAEA,OAAS,sBAAAA,MAAsC,0BAC/C,OAAS,QAAAC,MAAY,uBACrB,OAAS,UAAAC,MAAc,YACvB,OAIE,cAAAC,EAGA,SAAAC,MACK,QACP,OACE,cAAAC,EAIA,gBAAAC,EAEA,gBAAAC,MACK,kBAmED,cAAAC,MAAA,oBAzDN,IAAMC,EAAOH,EAMPI,EAAkB,YAIlB,CAACC,EAAwBC,CAAoB,EACjDZ,EAAmBU,CAAe,EAS9B,CAACG,EAAmBC,CAAmB,EAC3CH,EAA8CD,CAAe,EAE/D,SAASK,EACPC,EACAC,EAMA,CACA,GAAM,CAAE,GAAAC,CAAG,EAAIC,EAAmBH,EAAcC,CAAK,EAErD,MAAO,CACL,kBAAmB,yBAAyBC,CAAE,GAC9C,WAAY,aAAaA,CAAE,GAC3B,cAAe,qBAAqBA,CAAE,GACtC,GAAAA,CACF,CACF,CAOA,SAASE,EAGPC,EAAkE,CAClE,GAAM,CAAE,iBAAAC,EAAkB,GAAGC,CAAM,EAAIF,EAIvC,OACEb,EAACK,EAAA,CAAkB,KAAMU,EAAM,KAAM,MAAOD,EAC1C,SAAAd,EAACH,EAAA,CAAY,GAAGkB,EAAO,EACzB,CAEJ,CAMA,IAAMC,EAAiB,WAMjB,CAACC,EAAkBN,CAAkB,EACzCR,EAA6Ca,CAAc,EAKvDE,EAAWvB,EACf,CACE,CAAE,iBAAAmB,EAAkB,UAAAK,EAAW,GAAGJ,CAAM,EACxCK,IACG,CACH,IAAMV,EAAKd,EAAM,EAEjB,OACEI,EAACiB,EAAA,CAAiB,GAAIP,EAAI,MAAOI,EAC/B,SAAAd,EAAC,OACC,IAAKoB,EACL,UAAWC,EAAG,aAAcF,CAAS,EACpC,GAAGJ,EACN,EACF,CAEJ,CACF,EAEAG,EAAS,YAAcF,EAMvB,IAAMM,EAAkB,YAKlBC,EAAY5B,EAChB,CACE,CAAE,iBAAAmB,EAAkB,GAAGC,CAAM,EAC7BK,IACG,CACH,GAAM,CAAE,WAAAI,CAAW,EAAIjB,EAAYkB,EAAmBX,CAAgB,EAEtE,OAAOd,EAAC0B,EAAA,CAAM,IAAKN,EAAc,QAASI,EAAa,GAAGT,EAAO,CACnE,CACF,EAEAQ,EAAU,YAAcD,EAMxB,IAAMK,EAAoB,cAKpBC,EAAcjC,EAClB,CACE,CAAE,iBAAAmB,EAAkB,GAAGC,CAAM,EAC7BK,IACG,CACH,GAAM,CAAE,WAAAI,EAAY,kBAAAK,EAAmB,cAAAC,CAAc,EAAIvB,EACvDkB,EACAX,CACF,EACM,CAAE,KAAAiB,CAAK,EAAIzB,EAAoBqB,EAAmBb,CAAgB,EAClE,CAAE,OAAAkB,CAAO,EAAIjC,EAAa,CAAE,KAAAgC,CAAK,CAAC,EAExC,OACE/B,EAACP,EAAA,CACC,IAAK2B,EACL,mBACGY,EAAOD,CAAI,EAER,GAAGF,CAAiB,IAAIC,CAAa,GADrCD,EAGN,eAAc,EAAQG,EAAOD,CAAI,EACjC,GAAIP,EACH,GAAGT,EACN,CAEJ,CACF,EAEAa,EAAY,YAAcD,EAM1B,IAAMM,EAAwB,kBAKxBC,EAAkBvC,EAItB,CACE,CACE,iBAAAmB,EACA,UAAAK,EACA,GAAGJ,CACL,EACAK,IACG,CACH,GAAM,CAAE,kBAAAS,CAAkB,EAAItB,EAC5BkB,EACAX,CACF,EAEA,OACEd,EAAC,KACC,IAAKoB,EACL,UAAWC,EAAG,gCAAiCF,CAAS,EACxD,GAAIU,EACH,GAAGd,EACN,CAEJ,CACF,EAEAmB,EAAgB,YAAcD,EAM9B,IAAMR,EAAoB,cAKpBU,EAAcxC,EAClB,CACE,CACE,iBAAAmB,EACA,SAAAsB,EACA,UAAAjB,EACA,GAAGJ,CACL,EACAK,IACG,CACH,GAAM,CAAE,cAAAU,CAAc,EAAIvB,EAAYkB,EAAmBX,CAAgB,EACnE,CAAE,KAAAiB,CAAK,EAAIzB,EAAoBmB,EAAmBX,CAAgB,EAClE,CAAE,OAAAkB,CAAO,EAAIjC,EAAa,CAAE,KAAAgC,CAAK,CAAC,EAClCM,EAAQ3C,EAA2BsC,EAAQD,CAAI,EAC/CO,EAAOD,GAAO,QAAU,OAAOA,EAAM,OAAO,EAAID,EAEtD,OAAKE,EAKHtC,EAAC,KACC,IAAKoB,EACL,UAAWC,EACT,UACAgB,GAAO,QACH,+BACA,wBACJlB,CACF,EACA,GAAIW,EACH,GAAGf,EAEH,SAAAuB,EACH,EAjBO,IAmBX,CACF,EAEAH,EAAY,YAAcV","sourcesContent":["'use client';\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport { result } from 'lodash-es';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n useId,\n} from 'react';\nimport {\n Controller,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n FormProvider,\n type GlobalError,\n useFormState,\n} from 'react-hook-form';\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib/utils';\nimport type * as LabelPrimitive from '@radix-ui/react-label';\n\n/* -----------------------------------------------------------------------------\n * Component: Form\n * -------------------------------------------------------------------------- */\n\ntype FormProps = ComponentProps<typeof FormProvider>;\nconst Form = FormProvider;\n\n/* -----------------------------------------------------------------------------\n * Component: FormField\n * -------------------------------------------------------------------------- */\n\nconst FORM_FIELD_NAME = 'FormField';\n\ntype ScopedProps<P> = P & { __scopeFormField?: Scope };\n\nconst [createFormFieldContext, createFormFieldScope] =\n createContextScope(FORM_FIELD_NAME);\n\ninterface FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> {\n name: TName;\n}\n\nconst [FormFieldProvider, useFormFieldContext] =\n createFormFieldContext<FormFieldContextValue>(FORM_FIELD_NAME);\n\nfunction useFormItem(\n consumerName: string,\n scope: Scope,\n): {\n formDescriptionId: string;\n formItemId: string;\n formMessageId: string;\n id: string;\n} {\n const { id } = useFormItemContext(consumerName, scope);\n\n return {\n formDescriptionId: `form-item-description-${id}`,\n formItemId: `form-item-${id}`,\n formMessageId: `form-item-message-${id}`,\n id,\n };\n}\n\ntype FormFieldProps<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = ControllerProps<TFieldValues, TName>;\n\nfunction FormField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(formFieldProps: FormFieldProps<TFieldValues, TName>): JSX.Element {\n const { __scopeFormField, ...props } = formFieldProps as ScopedProps<\n FormFieldProps<TFieldValues, TName>\n >;\n\n return (\n <FormFieldProvider name={props.name} scope={__scopeFormField}>\n <Controller {...props} />\n </FormFieldProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormItem\n * -------------------------------------------------------------------------- */\n\nconst FORM_ITEM_NAME = 'FormItem';\n\ninterface FormItemContextValue {\n id: string;\n}\n\nconst [FormItemProvider, useFormItemContext] =\n createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);\n\ntype FormItemElement = HTMLDivElement;\ntype FormItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst FormItem = forwardRef<FormItemElement, FormItemProps>(\n (\n { __scopeFormField, className, ...props }: ScopedProps<FormItemProps>,\n forwardedRef,\n ) => {\n const id = useId();\n\n return (\n <FormItemProvider id={id} scope={__scopeFormField}>\n <div\n ref={forwardedRef}\n className={cn('grid gap-2', className)}\n {...props}\n />\n </FormItemProvider>\n );\n },\n);\n\nFormItem.displayName = FORM_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormLabel\n * -------------------------------------------------------------------------- */\n\nconst FORM_LABEL_NAME = 'FormLabel';\n\ntype FormFieldElement = ComponentRef<typeof LabelPrimitive.Root>;\ntype FormLabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst FormLabel = forwardRef<FormFieldElement, FormLabelProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormLabelProps>,\n forwardedRef,\n ) => {\n const { formItemId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return <Label ref={forwardedRef} htmlFor={formItemId} {...props} />;\n },\n);\n\nFormLabel.displayName = FORM_LABEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormControl\n * -------------------------------------------------------------------------- */\n\nconst FORM_CONTROL_NAME = 'FormControl';\n\ntype FormControlElement = ComponentRef<typeof Slot>;\ntype FormControlProps = ComponentPropsWithoutRef<typeof Slot>;\n\nconst FormControl = forwardRef<FormControlElement, FormControlProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormControlProps>,\n forwardedRef,\n ) => {\n const { formItemId, formDescriptionId, formMessageId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n const { name } = useFormFieldContext(FORM_CONTROL_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n\n return (\n <Slot\n ref={forwardedRef}\n aria-describedby={\n !errors[name]\n ? formDescriptionId\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={Boolean(errors[name])}\n id={formItemId}\n {...props}\n />\n );\n },\n);\n\nFormControl.displayName = FORM_CONTROL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormDescription\n * -------------------------------------------------------------------------- */\n\nconst FORM_DESCRIPTION_NAME = 'FormDescription';\n\ntype FormDescriptionElement = HTMLParagraphElement;\ntype FormDescriptionProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormDescription = forwardRef<\n FormDescriptionElement,\n FormDescriptionProps\n>(\n (\n {\n __scopeFormField,\n className,\n ...props\n }: ScopedProps<FormDescriptionProps>,\n forwardedRef,\n ) => {\n const { formDescriptionId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n\n return (\n <p\n ref={forwardedRef}\n className={cn('text-muted-foreground text-xs', className)}\n id={formDescriptionId}\n {...props}\n />\n );\n },\n);\n\nFormDescription.displayName = FORM_DESCRIPTION_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormMessage\n * -------------------------------------------------------------------------- */\n\nconst FORM_MESSAGE_NAME = 'FormMessage';\n\ntype FormMessageElement = HTMLParagraphElement;\ntype FormMessageProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormMessage = forwardRef<FormMessageElement, FormMessageProps>(\n (\n {\n __scopeFormField,\n children,\n className,\n ...props\n }: ScopedProps<FormMessageProps>,\n forwardedRef,\n ) => {\n const { formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n const { name } = useFormFieldContext(FORM_MESSAGE_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n const error = result<GlobalError | null>(errors, name);\n const body = error?.message ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={forwardedRef}\n className={cn(\n 'text-xs',\n error?.message\n ? 'text-destructive font-medium'\n : 'text-muted-foreground',\n className,\n )}\n id={formMessageId}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\n\nFormMessage.displayName = FORM_MESSAGE_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n createFormFieldScope,\n Form,\n FormControl,\n type FormControlProps,\n FormDescription,\n type FormDescriptionProps,\n FormField,\n type FormFieldProps,\n FormItem,\n type FormItemProps,\n FormLabel,\n type FormLabelProps,\n FormMessage,\n type FormMessageProps,\n type FormProps,\n};\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkDV7C3OBYcjs = require('../chunk-DV7C3OBY.cjs');require('../chunk-C3JCUMYC.cjs');require('../chunk-DD6AVCRH.cjs');exports.Form = _chunkDV7C3OBYcjs.a; exports.FormControl = _chunkDV7C3OBYcjs.f; exports.FormDescription = _chunkDV7C3OBYcjs.g; exports.FormField = _chunkDV7C3OBYcjs.c; exports.FormItem = _chunkDV7C3OBYcjs.d; exports.FormLabel = _chunkDV7C3OBYcjs.e; exports.FormMessage = _chunkDV7C3OBYcjs.h; exports.createFormFieldScope = _chunkDV7C3OBYcjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkLVV67TW7cjs = require('../chunk-LVV67TW7.cjs');require('../chunk-C3JCUMYC.cjs');require('../chunk-DD6AVCRH.cjs');exports.Form = _chunkLVV67TW7cjs.a; exports.FormControl = _chunkLVV67TW7cjs.f; exports.FormDescription = _chunkLVV67TW7cjs.g; exports.FormField = _chunkLVV67TW7cjs.c; exports.FormItem = _chunkLVV67TW7cjs.d; exports.FormLabel = _chunkLVV67TW7cjs.e; exports.FormMessage = _chunkLVV67TW7cjs.h; exports.createFormFieldScope = _chunkLVV67TW7cjs.b;
2
2
  //# sourceMappingURL=form.cjs.map
@@ -1,2 +1,2 @@
1
- "use client";import{a,b,c,d,e,f,g,h}from"../chunk-MPTKFTWF.js";import"../chunk-H6BT6PGA.js";import"../chunk-VPYH6JWS.js";export{a as Form,f as FormControl,g as FormDescription,c as FormField,d as FormItem,e as FormLabel,h as FormMessage,b as createFormFieldScope};
1
+ "use client";import{a,b,c,d,e,f,g,h}from"../chunk-SS3SK3YG.js";import"../chunk-H6BT6PGA.js";import"../chunk-VPYH6JWS.js";export{a as Form,f as FormControl,g as FormDescription,c as FormField,d as FormItem,e as FormLabel,h as FormMessage,b as createFormFieldScope};
2
2
  //# sourceMappingURL=form.js.map
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk32SQW5RIcjs = require('./chunk-32SQW5RI.cjs');require('./chunk-L5RKZ4EK.cjs');var _chunkHT6KARNVcjs = require('./chunk-HT6KARNV.cjs');var _chunkB4Y4AQPUcjs = require('./chunk-B4Y4AQPU.cjs');var _chunkA3ZDFV2Hcjs = require('./chunk-A3ZDFV2H.cjs');var _chunk27FVJY2Dcjs = require('./chunk-27FVJY2D.cjs');var _chunk2KJO6CJDcjs = require('./chunk-2KJO6CJD.cjs');var _chunkCVDXD5WNcjs = require('./chunk-CVDXD5WN.cjs');var _chunkTAFSGBZZcjs = require('./chunk-TAFSGBZZ.cjs');var _chunkG2ZKUHLXcjs = require('./chunk-G2ZKUHLX.cjs');var _chunkYL262UMCcjs = require('./chunk-YL262UMC.cjs');var _chunk3CDTMAHFcjs = require('./chunk-3CDTMAHF.cjs');var _chunk5GPUH5DHcjs = require('./chunk-5GPUH5DH.cjs');var _chunk7RUBTABZcjs = require('./chunk-7RUBTABZ.cjs');var _chunk4JENRUBJcjs = require('./chunk-4JENRUBJ.cjs');var _chunkV6H7J3PZcjs = require('./chunk-V6H7J3PZ.cjs');var _chunk5AQT2M4Qcjs = require('./chunk-5AQT2M4Q.cjs');var _chunkN422I4LMcjs = require('./chunk-N422I4LM.cjs');var _chunkEYYMRAUHcjs = require('./chunk-EYYMRAUH.cjs');var _chunk3VRNVFVAcjs = require('./chunk-3VRNVFVA.cjs');var _chunkDXKDE2PNcjs = require('./chunk-DXKDE2PN.cjs');var _chunkEGLZAP4Scjs = require('./chunk-EGLZAP4S.cjs');var _chunkZ7V3J23Wcjs = require('./chunk-Z7V3J23W.cjs');var _chunk6UCQE3N6cjs = require('./chunk-6UCQE3N6.cjs');var _chunkAQBPC4WTcjs = require('./chunk-AQBPC4WT.cjs');var _chunkR4NKNWAFcjs = require('./chunk-R4NKNWAF.cjs');var _chunkGP4IX6Q5cjs = require('./chunk-GP4IX6Q5.cjs');var _chunkIGBASIDTcjs = require('./chunk-IGBASIDT.cjs');var _chunkD77DV2PYcjs = require('./chunk-D77DV2PY.cjs');var _chunkG7L7OMQCcjs = require('./chunk-G7L7OMQC.cjs');var _chunk2VT6BX7Scjs = require('./chunk-2VT6BX7S.cjs');var _chunkB644MBBGcjs = require('./chunk-B644MBBG.cjs');var _chunkUFXEVSU6cjs = require('./chunk-UFXEVSU6.cjs');var _chunkWLOZYBMBcjs = require('./chunk-WLOZYBMB.cjs');var _chunkI5QVTZ6Ocjs = require('./chunk-I5QVTZ6O.cjs');var _chunkRA4YLL7Dcjs = require('./chunk-RA4YLL7D.cjs');require('./chunk-2RAQYLLP.cjs');var _chunkEH3IHQRLcjs = require('./chunk-EH3IHQRL.cjs');var _chunkB2B6KDWQcjs = require('./chunk-B2B6KDWQ.cjs');var _chunkDV7C3OBYcjs = require('./chunk-DV7C3OBY.cjs');var _chunkC3JCUMYCcjs = require('./chunk-C3JCUMYC.cjs');var _chunkSSEBLMN5cjs = require('./chunk-SSEBLMN5.cjs');var _chunkSFY3PJ4Pcjs = require('./chunk-SFY3PJ4P.cjs');var _chunkVGV2WASAcjs = require('./chunk-VGV2WASA.cjs');var _chunk6OVKYA6Ncjs = require('./chunk-6OVKYA6N.cjs');var _chunk3INI5ONRcjs = require('./chunk-3INI5ONR.cjs');var _chunk6CRPUDHOcjs = require('./chunk-6CRPUDHO.cjs');var _chunkSEEK7N3Ycjs = require('./chunk-SEEK7N3Y.cjs');var _chunkSONWHTU3cjs = require('./chunk-SONWHTU3.cjs');var _chunkMKZNGJBScjs = require('./chunk-MKZNGJBS.cjs');var _chunkCVSZ456Pcjs = require('./chunk-CVSZ456P.cjs');var _chunkWQ3FICSTcjs = require('./chunk-WQ3FICST.cjs');var _chunkLCIAEPHScjs = require('./chunk-LCIAEPHS.cjs');var _chunk6QQPQ7WNcjs = require('./chunk-6QQPQ7WN.cjs');var _chunk5AARHWODcjs = require('./chunk-5AARHWOD.cjs');var _chunkQP6DOJTZcjs = require('./chunk-QP6DOJTZ.cjs');var _chunkNEUH7LBScjs = require('./chunk-NEUH7LBS.cjs');var _chunkNTCSJCJ2cjs = require('./chunk-NTCSJCJ2.cjs');var _chunkXPXTRWKNcjs = require('./chunk-XPXTRWKN.cjs');var _chunk5REZ5BVPcjs = require('./chunk-5REZ5BVP.cjs');var _chunkHFROIOY3cjs = require('./chunk-HFROIOY3.cjs');require('./chunk-CFQPQ5FI.cjs');var _chunkC2Y6C7SLcjs = require('./chunk-C2Y6C7SL.cjs');var _chunkOILTSDECcjs = require('./chunk-OILTSDEC.cjs');var _chunkYN4PRPM2cjs = require('./chunk-YN4PRPM2.cjs');var _chunkIYSTGLX3cjs = require('./chunk-IYSTGLX3.cjs');var _chunkCOVOQ3ITcjs = require('./chunk-COVOQ3IT.cjs');var _chunkFNXUC6VMcjs = require('./chunk-FNXUC6VM.cjs');var _chunkHW6UEQFNcjs = require('./chunk-HW6UEQFN.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _chunkADFKIZNPcjs = require('./chunk-ADFKIZNP.cjs');var _chunkHDDB7PJQcjs = require('./chunk-HDDB7PJQ.cjs');exports.Accordion = _chunkOILTSDECcjs.a; exports.AccordionContent = _chunkOILTSDECcjs.e; exports.AccordionIcon = _chunkOILTSDECcjs.c; exports.AccordionItem = _chunkOILTSDECcjs.b; exports.AccordionTrigger = _chunkOILTSDECcjs.d; exports.Alert = _chunkCOVOQ3ITcjs.a; exports.AlertDescription = _chunkCOVOQ3ITcjs.c; exports.AlertDialog = _chunkYN4PRPM2cjs.a; exports.AlertDialogAction = _chunkYN4PRPM2cjs.i; exports.AlertDialogBody = _chunkYN4PRPM2cjs.e; exports.AlertDialogCancel = _chunkYN4PRPM2cjs.j; exports.AlertDialogContent = _chunkYN4PRPM2cjs.c; exports.AlertDialogDescription = _chunkYN4PRPM2cjs.h; exports.AlertDialogFooter = _chunkYN4PRPM2cjs.f; exports.AlertDialogHeader = _chunkYN4PRPM2cjs.d; exports.AlertDialogTitle = _chunkYN4PRPM2cjs.g; exports.AlertDialogTrigger = _chunkYN4PRPM2cjs.b; exports.AlertTitle = _chunkCOVOQ3ITcjs.b; exports.AspectRatio = _chunkFNXUC6VMcjs.a; exports.Avatar = _chunkHW6UEQFNcjs.a; exports.AvatarFallback = _chunkHW6UEQFNcjs.c; exports.AvatarImage = _chunkHW6UEQFNcjs.b; exports.Badge = _chunkADFKIZNPcjs.a; exports.Blockquote = _chunkHDDB7PJQcjs.a; exports.Box = _chunk5AARHWODcjs.a; exports.Breadcrumb = _chunkQP6DOJTZcjs.a; exports.BreadcrumbEllipsis = _chunkQP6DOJTZcjs.g; exports.BreadcrumbItem = _chunkQP6DOJTZcjs.c; exports.BreadcrumbLink = _chunkQP6DOJTZcjs.d; exports.BreadcrumbList = _chunkQP6DOJTZcjs.b; exports.BreadcrumbPage = _chunkQP6DOJTZcjs.e; exports.BreadcrumbSeparator = _chunkQP6DOJTZcjs.f; exports.Button = _chunk5REZ5BVPcjs.a; exports.Calendar = _chunkNEUH7LBScjs.a; exports.CalendarLabel = _chunkNEUH7LBScjs.c; exports.CalendarRangeLabel = _chunkNEUH7LBScjs.b; exports.Card = _chunkNTCSJCJ2cjs.a; exports.CardContent = _chunkNTCSJCJ2cjs.e; exports.CardDescription = _chunkNTCSJCJ2cjs.d; exports.CardFooter = _chunkNTCSJCJ2cjs.f; exports.CardHeader = _chunkNTCSJCJ2cjs.b; exports.CardTitle = _chunkNTCSJCJ2cjs.c; exports.Carousel = _chunkXPXTRWKNcjs.b; exports.CarouselContent = _chunkXPXTRWKNcjs.c; exports.CarouselItem = _chunkXPXTRWKNcjs.d; exports.CarouselNext = _chunkXPXTRWKNcjs.f; exports.CarouselPrevious = _chunkXPXTRWKNcjs.e; exports.Checkbox = _chunk6OVKYA6Ncjs.a; exports.CheckboxCards = _chunkC2Y6C7SLcjs.a; exports.CheckboxCardsItem = _chunkC2Y6C7SLcjs.b; exports.CheckboxGroup = _chunkVGV2WASAcjs.a; exports.CheckboxGroupItem = _chunkVGV2WASAcjs.b; exports.Code = _chunk3INI5ONRcjs.a; exports.Collapsible = _chunk6CRPUDHOcjs.a; exports.CollapsibleContent = _chunk6CRPUDHOcjs.c; exports.CollapsibleTrigger = _chunk6CRPUDHOcjs.b; exports.Command = _chunkSEEK7N3Ycjs.a; exports.CommandDialog = _chunkSEEK7N3Ycjs.b; exports.CommandEmpty = _chunkSEEK7N3Ycjs.e; exports.CommandGroup = _chunkSEEK7N3Ycjs.f; exports.CommandInput = _chunkSEEK7N3Ycjs.c; exports.CommandItem = _chunkSEEK7N3Ycjs.h; exports.CommandList = _chunkSEEK7N3Ycjs.d; exports.CommandLoading = _chunkSEEK7N3Ycjs.i; exports.CommandSeparator = _chunkSEEK7N3Ycjs.g; exports.CommandShortcut = _chunkSEEK7N3Ycjs.j; exports.Container = _chunkMKZNGJBScjs.a; exports.ContextMenu = _chunkCVSZ456Pcjs.a; exports.ContextMenuArrow = _chunkCVSZ456Pcjs.o; exports.ContextMenuCheckboxItem = _chunkCVSZ456Pcjs.j; exports.ContextMenuContent = _chunkCVSZ456Pcjs.h; exports.ContextMenuGroup = _chunkCVSZ456Pcjs.c; exports.ContextMenuItem = _chunkCVSZ456Pcjs.i; exports.ContextMenuLabel = _chunkCVSZ456Pcjs.l; exports.ContextMenuRadioGroup = _chunkCVSZ456Pcjs.e; exports.ContextMenuRadioItem = _chunkCVSZ456Pcjs.k; exports.ContextMenuSeparator = _chunkCVSZ456Pcjs.m; exports.ContextMenuShortcut = _chunkCVSZ456Pcjs.n; exports.ContextMenuSub = _chunkCVSZ456Pcjs.d; exports.ContextMenuSubContent = _chunkCVSZ456Pcjs.g; exports.ContextMenuSubTrigger = _chunkCVSZ456Pcjs.f; exports.ContextMenuTrigger = _chunkCVSZ456Pcjs.b; exports.DataTableColumnHeader = _chunkWQ3FICSTcjs.c; exports.DataTablePagination = _chunkWQ3FICSTcjs.b; exports.DataTableViewOptions = _chunkWQ3FICSTcjs.a; exports.Dialog = _chunkSONWHTU3cjs.a; exports.DialogBody = _chunkSONWHTU3cjs.e; exports.DialogClose = _chunkSONWHTU3cjs.i; exports.DialogContent = _chunkSONWHTU3cjs.c; exports.DialogDescription = _chunkSONWHTU3cjs.h; exports.DialogFooter = _chunkSONWHTU3cjs.f; exports.DialogHeader = _chunkSONWHTU3cjs.d; exports.DialogTitle = _chunkSONWHTU3cjs.g; exports.DialogTrigger = _chunkSONWHTU3cjs.b; exports.Drawer = _chunkEH3IHQRLcjs.a; exports.DrawerBody = _chunkEH3IHQRLcjs.e; exports.DrawerClose = _chunkEH3IHQRLcjs.i; exports.DrawerContent = _chunkEH3IHQRLcjs.c; exports.DrawerDescription = _chunkEH3IHQRLcjs.h; exports.DrawerFooter = _chunkEH3IHQRLcjs.f; exports.DrawerHeader = _chunkEH3IHQRLcjs.d; exports.DrawerTitle = _chunkEH3IHQRLcjs.g; exports.DrawerTrigger = _chunkEH3IHQRLcjs.b; exports.DropdownMenu = _chunk6QQPQ7WNcjs.a; exports.DropdownMenuArrow = _chunk6QQPQ7WNcjs.o; exports.DropdownMenuCheckboxItem = _chunk6QQPQ7WNcjs.j; exports.DropdownMenuContent = _chunk6QQPQ7WNcjs.h; exports.DropdownMenuGroup = _chunk6QQPQ7WNcjs.c; exports.DropdownMenuItem = _chunk6QQPQ7WNcjs.i; exports.DropdownMenuLabel = _chunk6QQPQ7WNcjs.l; exports.DropdownMenuRadioGroup = _chunk6QQPQ7WNcjs.e; exports.DropdownMenuRadioItem = _chunk6QQPQ7WNcjs.k; exports.DropdownMenuSeparator = _chunk6QQPQ7WNcjs.m; exports.DropdownMenuShortcut = _chunk6QQPQ7WNcjs.n; exports.DropdownMenuSub = _chunk6QQPQ7WNcjs.d; exports.DropdownMenuSubContent = _chunk6QQPQ7WNcjs.g; exports.DropdownMenuSubTrigger = _chunk6QQPQ7WNcjs.f; exports.DropdownMenuTrigger = _chunk6QQPQ7WNcjs.b; exports.Em = _chunkB2B6KDWQcjs.a; exports.Form = _chunkDV7C3OBYcjs.a; exports.FormControl = _chunkDV7C3OBYcjs.f; exports.FormDescription = _chunkDV7C3OBYcjs.g; exports.FormField = _chunkDV7C3OBYcjs.c; exports.FormItem = _chunkDV7C3OBYcjs.d; exports.FormLabel = _chunkDV7C3OBYcjs.e; exports.FormMessage = _chunkDV7C3OBYcjs.h; exports.Heading = _chunkSSEBLMN5cjs.a; exports.HoverCard = _chunkSFY3PJ4Pcjs.a; exports.HoverCardArrow = _chunkSFY3PJ4Pcjs.d; exports.HoverCardContent = _chunkSFY3PJ4Pcjs.c; exports.HoverCardTrigger = _chunkSFY3PJ4Pcjs.b; exports.InputOTP = _chunkD77DV2PYcjs.d; exports.InputOTPGroup = _chunkD77DV2PYcjs.e; exports.InputOTPSeparator = _chunkD77DV2PYcjs.g; exports.InputOTPSlot = _chunkD77DV2PYcjs.f; exports.Kbd = _chunkG7L7OMQCcjs.a; exports.Label = _chunkC3JCUMYCcjs.a; exports.Menubar = _chunk2VT6BX7Scjs.e; exports.MenubarArrow = _chunk2VT6BX7Scjs.p; exports.MenubarCheckboxItem = _chunk2VT6BX7Scjs.k; exports.MenubarContent = _chunk2VT6BX7Scjs.i; exports.MenubarGroup = _chunk2VT6BX7Scjs.b; exports.MenubarItem = _chunk2VT6BX7Scjs.j; exports.MenubarLabel = _chunk2VT6BX7Scjs.m; exports.MenubarMenu = _chunk2VT6BX7Scjs.a; exports.MenubarRadioGroup = _chunk2VT6BX7Scjs.d; exports.MenubarRadioItem = _chunk2VT6BX7Scjs.l; exports.MenubarSeparator = _chunk2VT6BX7Scjs.n; exports.MenubarShortcut = _chunk2VT6BX7Scjs.o; exports.MenubarSub = _chunk2VT6BX7Scjs.c; exports.MenubarSubContent = _chunk2VT6BX7Scjs.h; exports.MenubarSubTrigger = _chunk2VT6BX7Scjs.g; exports.MenubarTrigger = _chunk2VT6BX7Scjs.f; exports.NavigationMenu = _chunkB644MBBGcjs.a; exports.NavigationMenuContent = _chunkB644MBBGcjs.e; exports.NavigationMenuItem = _chunkB644MBBGcjs.c; exports.NavigationMenuLink = _chunkB644MBBGcjs.f; exports.NavigationMenuList = _chunkB644MBBGcjs.b; exports.NavigationMenuTrigger = _chunkB644MBBGcjs.d; exports.NumberInput = _chunkUFXEVSU6cjs.a; exports.Pagination = _chunkWLOZYBMBcjs.a; exports.PaginationContent = _chunkWLOZYBMBcjs.b; exports.PaginationEllipsis = _chunkWLOZYBMBcjs.g; exports.PaginationItem = _chunkWLOZYBMBcjs.c; exports.PaginationLink = _chunkWLOZYBMBcjs.d; exports.PaginationNext = _chunkWLOZYBMBcjs.f; exports.PaginationPrevious = _chunkWLOZYBMBcjs.e; exports.PasswordInput = _chunkI5QVTZ6Ocjs.a; exports.Popover = _chunkDXKDE2PNcjs.a; exports.PopoverAnchor = _chunkDXKDE2PNcjs.c; exports.PopoverArrow = _chunkDXKDE2PNcjs.e; exports.PopoverContent = _chunkDXKDE2PNcjs.d; exports.PopoverTrigger = _chunkDXKDE2PNcjs.b; exports.Pre = _chunkEGLZAP4Scjs.a; exports.Progress = _chunkZ7V3J23Wcjs.a; exports.Quote = _chunk6UCQE3N6cjs.a; exports.REGEXP_ONLY_CHARS = _chunkD77DV2PYcjs.a; exports.REGEXP_ONLY_DIGITS = _chunkD77DV2PYcjs.b; exports.REGEXP_ONLY_DIGITS_AND_CHARS = _chunkD77DV2PYcjs.c; exports.Radio = _chunkGP4IX6Q5cjs.a; exports.RadioCards = _chunkAQBPC4WTcjs.a; exports.RadioCardsItem = _chunkAQBPC4WTcjs.b; exports.RadioGroup = _chunkR4NKNWAFcjs.a; exports.RadioGroupItem = _chunkR4NKNWAFcjs.b; exports.ResizableHandle = _chunkIGBASIDTcjs.c; exports.ResizablePanel = _chunkIGBASIDTcjs.b; exports.ResizablePanelGroup = _chunkIGBASIDTcjs.a; exports.ScrollArea = _chunk7RUBTABZcjs.a; exports.ScrollAreaScrollbar = _chunk7RUBTABZcjs.b; exports.SearchInput = _chunk4JENRUBJcjs.a; exports.Section = _chunkV6H7J3PZcjs.a; exports.Select = _chunkLCIAEPHScjs.a; exports.SelectContent = _chunkLCIAEPHScjs.g; exports.SelectGroup = _chunkLCIAEPHScjs.b; exports.SelectItem = _chunkLCIAEPHScjs.i; exports.SelectLabel = _chunkLCIAEPHScjs.h; exports.SelectScrollDownButton = _chunkLCIAEPHScjs.f; exports.SelectScrollUpButton = _chunkLCIAEPHScjs.e; exports.SelectSeparator = _chunkLCIAEPHScjs.j; exports.SelectTrigger = _chunkLCIAEPHScjs.d; exports.SelectValue = _chunkLCIAEPHScjs.c; exports.Separator = _chunk5AQT2M4Qcjs.a; exports.SeparatorItem = _chunk5AQT2M4Qcjs.b; exports.Sheet = _chunkN422I4LMcjs.a; exports.SheetBody = _chunkN422I4LMcjs.e; exports.SheetClose = _chunkN422I4LMcjs.i; exports.SheetContent = _chunkN422I4LMcjs.c; exports.SheetDescription = _chunkN422I4LMcjs.h; exports.SheetFooter = _chunkN422I4LMcjs.f; exports.SheetHeader = _chunkN422I4LMcjs.d; exports.SheetTitle = _chunkN422I4LMcjs.g; exports.SheetTrigger = _chunkN422I4LMcjs.b; exports.Skeleton = _chunkEYYMRAUHcjs.a; exports.Slider = _chunk3VRNVFVAcjs.a; exports.Spinner = _chunkHFROIOY3cjs.a; exports.Strong = _chunkCVDXD5WNcjs.a; exports.Switch = _chunkTAFSGBZZcjs.a; exports.Table = _chunkG2ZKUHLXcjs.a; exports.TableBody = _chunkG2ZKUHLXcjs.c; exports.TableCaption = _chunkG2ZKUHLXcjs.h; exports.TableCell = _chunkG2ZKUHLXcjs.g; exports.TableFooter = _chunkG2ZKUHLXcjs.d; exports.TableHead = _chunkG2ZKUHLXcjs.f; exports.TableHeader = _chunkG2ZKUHLXcjs.b; exports.TableRow = _chunkG2ZKUHLXcjs.e; exports.Tabs = _chunkYL262UMCcjs.a; exports.TabsContent = _chunkYL262UMCcjs.d; exports.TabsList = _chunkYL262UMCcjs.b; exports.TabsTrigger = _chunkYL262UMCcjs.c; exports.Text = _chunk5GPUH5DHcjs.a; exports.TextInput = _chunk3CDTMAHFcjs.a; exports.Textarea = _chunk32SQW5RIcjs.a; exports.Toaster = _chunk2KJO6CJDcjs.b; exports.Toggle = _chunkB4Y4AQPUcjs.a; exports.ToggleGroup = _chunkHT6KARNVcjs.a; exports.ToggleGroupItem = _chunkHT6KARNVcjs.b; exports.Tooltip = _chunk27FVJY2Dcjs.b; exports.TooltipArrow = _chunk27FVJY2Dcjs.e; exports.TooltipContent = _chunk27FVJY2Dcjs.d; exports.TooltipProvider = _chunk27FVJY2Dcjs.a; exports.TooltipTrigger = _chunk27FVJY2Dcjs.c; exports.buttonVariants = _chunkIYSTGLX3cjs.a; exports.cn = _chunkDD6AVCRHcjs.a; exports.createCarouselScope = _chunkXPXTRWKNcjs.a; exports.createFormFieldScope = _chunkDV7C3OBYcjs.b; exports.inputVariants = _chunkRA4YLL7Dcjs.a; exports.toast = _chunk2KJO6CJDcjs.a; exports.toggleVariants = _chunkA3ZDFV2Hcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk32SQW5RIcjs = require('./chunk-32SQW5RI.cjs');require('./chunk-L5RKZ4EK.cjs');var _chunkHT6KARNVcjs = require('./chunk-HT6KARNV.cjs');var _chunkB4Y4AQPUcjs = require('./chunk-B4Y4AQPU.cjs');var _chunkA3ZDFV2Hcjs = require('./chunk-A3ZDFV2H.cjs');var _chunk27FVJY2Dcjs = require('./chunk-27FVJY2D.cjs');var _chunk2KJO6CJDcjs = require('./chunk-2KJO6CJD.cjs');var _chunkCVDXD5WNcjs = require('./chunk-CVDXD5WN.cjs');var _chunkTAFSGBZZcjs = require('./chunk-TAFSGBZZ.cjs');var _chunkG2ZKUHLXcjs = require('./chunk-G2ZKUHLX.cjs');var _chunkYL262UMCcjs = require('./chunk-YL262UMC.cjs');var _chunk3CDTMAHFcjs = require('./chunk-3CDTMAHF.cjs');var _chunk5GPUH5DHcjs = require('./chunk-5GPUH5DH.cjs');var _chunk7RUBTABZcjs = require('./chunk-7RUBTABZ.cjs');var _chunk4JENRUBJcjs = require('./chunk-4JENRUBJ.cjs');var _chunkV6H7J3PZcjs = require('./chunk-V6H7J3PZ.cjs');var _chunk5AQT2M4Qcjs = require('./chunk-5AQT2M4Q.cjs');var _chunkN422I4LMcjs = require('./chunk-N422I4LM.cjs');var _chunkEYYMRAUHcjs = require('./chunk-EYYMRAUH.cjs');var _chunk3VRNVFVAcjs = require('./chunk-3VRNVFVA.cjs');var _chunkDXKDE2PNcjs = require('./chunk-DXKDE2PN.cjs');var _chunkEGLZAP4Scjs = require('./chunk-EGLZAP4S.cjs');var _chunkZ7V3J23Wcjs = require('./chunk-Z7V3J23W.cjs');var _chunk6UCQE3N6cjs = require('./chunk-6UCQE3N6.cjs');var _chunkAQBPC4WTcjs = require('./chunk-AQBPC4WT.cjs');var _chunkR4NKNWAFcjs = require('./chunk-R4NKNWAF.cjs');var _chunkGP4IX6Q5cjs = require('./chunk-GP4IX6Q5.cjs');var _chunkIGBASIDTcjs = require('./chunk-IGBASIDT.cjs');var _chunkD77DV2PYcjs = require('./chunk-D77DV2PY.cjs');var _chunkG7L7OMQCcjs = require('./chunk-G7L7OMQC.cjs');var _chunk2VT6BX7Scjs = require('./chunk-2VT6BX7S.cjs');var _chunkB644MBBGcjs = require('./chunk-B644MBBG.cjs');var _chunkUFXEVSU6cjs = require('./chunk-UFXEVSU6.cjs');var _chunkWLOZYBMBcjs = require('./chunk-WLOZYBMB.cjs');var _chunkI5QVTZ6Ocjs = require('./chunk-I5QVTZ6O.cjs');var _chunkRA4YLL7Dcjs = require('./chunk-RA4YLL7D.cjs');require('./chunk-2RAQYLLP.cjs');var _chunkEH3IHQRLcjs = require('./chunk-EH3IHQRL.cjs');var _chunkB2B6KDWQcjs = require('./chunk-B2B6KDWQ.cjs');var _chunkLVV67TW7cjs = require('./chunk-LVV67TW7.cjs');var _chunkC3JCUMYCcjs = require('./chunk-C3JCUMYC.cjs');var _chunkSSEBLMN5cjs = require('./chunk-SSEBLMN5.cjs');var _chunkSFY3PJ4Pcjs = require('./chunk-SFY3PJ4P.cjs');var _chunkVGV2WASAcjs = require('./chunk-VGV2WASA.cjs');var _chunk6OVKYA6Ncjs = require('./chunk-6OVKYA6N.cjs');var _chunk3INI5ONRcjs = require('./chunk-3INI5ONR.cjs');var _chunk6CRPUDHOcjs = require('./chunk-6CRPUDHO.cjs');var _chunkSEEK7N3Ycjs = require('./chunk-SEEK7N3Y.cjs');var _chunkSONWHTU3cjs = require('./chunk-SONWHTU3.cjs');var _chunkMKZNGJBScjs = require('./chunk-MKZNGJBS.cjs');var _chunkCVSZ456Pcjs = require('./chunk-CVSZ456P.cjs');var _chunkWQ3FICSTcjs = require('./chunk-WQ3FICST.cjs');var _chunkLCIAEPHScjs = require('./chunk-LCIAEPHS.cjs');var _chunk6QQPQ7WNcjs = require('./chunk-6QQPQ7WN.cjs');var _chunk5AARHWODcjs = require('./chunk-5AARHWOD.cjs');var _chunkQP6DOJTZcjs = require('./chunk-QP6DOJTZ.cjs');var _chunkNEUH7LBScjs = require('./chunk-NEUH7LBS.cjs');var _chunkNTCSJCJ2cjs = require('./chunk-NTCSJCJ2.cjs');var _chunkXPXTRWKNcjs = require('./chunk-XPXTRWKN.cjs');var _chunk5REZ5BVPcjs = require('./chunk-5REZ5BVP.cjs');var _chunkHFROIOY3cjs = require('./chunk-HFROIOY3.cjs');require('./chunk-CFQPQ5FI.cjs');var _chunkC2Y6C7SLcjs = require('./chunk-C2Y6C7SL.cjs');var _chunkOILTSDECcjs = require('./chunk-OILTSDEC.cjs');var _chunkYN4PRPM2cjs = require('./chunk-YN4PRPM2.cjs');var _chunkIYSTGLX3cjs = require('./chunk-IYSTGLX3.cjs');var _chunkCOVOQ3ITcjs = require('./chunk-COVOQ3IT.cjs');var _chunkFNXUC6VMcjs = require('./chunk-FNXUC6VM.cjs');var _chunkHW6UEQFNcjs = require('./chunk-HW6UEQFN.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _chunkADFKIZNPcjs = require('./chunk-ADFKIZNP.cjs');var _chunkHDDB7PJQcjs = require('./chunk-HDDB7PJQ.cjs');exports.Accordion = _chunkOILTSDECcjs.a; exports.AccordionContent = _chunkOILTSDECcjs.e; exports.AccordionIcon = _chunkOILTSDECcjs.c; exports.AccordionItem = _chunkOILTSDECcjs.b; exports.AccordionTrigger = _chunkOILTSDECcjs.d; exports.Alert = _chunkCOVOQ3ITcjs.a; exports.AlertDescription = _chunkCOVOQ3ITcjs.c; exports.AlertDialog = _chunkYN4PRPM2cjs.a; exports.AlertDialogAction = _chunkYN4PRPM2cjs.i; exports.AlertDialogBody = _chunkYN4PRPM2cjs.e; exports.AlertDialogCancel = _chunkYN4PRPM2cjs.j; exports.AlertDialogContent = _chunkYN4PRPM2cjs.c; exports.AlertDialogDescription = _chunkYN4PRPM2cjs.h; exports.AlertDialogFooter = _chunkYN4PRPM2cjs.f; exports.AlertDialogHeader = _chunkYN4PRPM2cjs.d; exports.AlertDialogTitle = _chunkYN4PRPM2cjs.g; exports.AlertDialogTrigger = _chunkYN4PRPM2cjs.b; exports.AlertTitle = _chunkCOVOQ3ITcjs.b; exports.AspectRatio = _chunkFNXUC6VMcjs.a; exports.Avatar = _chunkHW6UEQFNcjs.a; exports.AvatarFallback = _chunkHW6UEQFNcjs.c; exports.AvatarImage = _chunkHW6UEQFNcjs.b; exports.Badge = _chunkADFKIZNPcjs.a; exports.Blockquote = _chunkHDDB7PJQcjs.a; exports.Box = _chunk5AARHWODcjs.a; exports.Breadcrumb = _chunkQP6DOJTZcjs.a; exports.BreadcrumbEllipsis = _chunkQP6DOJTZcjs.g; exports.BreadcrumbItem = _chunkQP6DOJTZcjs.c; exports.BreadcrumbLink = _chunkQP6DOJTZcjs.d; exports.BreadcrumbList = _chunkQP6DOJTZcjs.b; exports.BreadcrumbPage = _chunkQP6DOJTZcjs.e; exports.BreadcrumbSeparator = _chunkQP6DOJTZcjs.f; exports.Button = _chunk5REZ5BVPcjs.a; exports.Calendar = _chunkNEUH7LBScjs.a; exports.CalendarLabel = _chunkNEUH7LBScjs.c; exports.CalendarRangeLabel = _chunkNEUH7LBScjs.b; exports.Card = _chunkNTCSJCJ2cjs.a; exports.CardContent = _chunkNTCSJCJ2cjs.e; exports.CardDescription = _chunkNTCSJCJ2cjs.d; exports.CardFooter = _chunkNTCSJCJ2cjs.f; exports.CardHeader = _chunkNTCSJCJ2cjs.b; exports.CardTitle = _chunkNTCSJCJ2cjs.c; exports.Carousel = _chunkXPXTRWKNcjs.b; exports.CarouselContent = _chunkXPXTRWKNcjs.c; exports.CarouselItem = _chunkXPXTRWKNcjs.d; exports.CarouselNext = _chunkXPXTRWKNcjs.f; exports.CarouselPrevious = _chunkXPXTRWKNcjs.e; exports.Checkbox = _chunk6OVKYA6Ncjs.a; exports.CheckboxCards = _chunkC2Y6C7SLcjs.a; exports.CheckboxCardsItem = _chunkC2Y6C7SLcjs.b; exports.CheckboxGroup = _chunkVGV2WASAcjs.a; exports.CheckboxGroupItem = _chunkVGV2WASAcjs.b; exports.Code = _chunk3INI5ONRcjs.a; exports.Collapsible = _chunk6CRPUDHOcjs.a; exports.CollapsibleContent = _chunk6CRPUDHOcjs.c; exports.CollapsibleTrigger = _chunk6CRPUDHOcjs.b; exports.Command = _chunkSEEK7N3Ycjs.a; exports.CommandDialog = _chunkSEEK7N3Ycjs.b; exports.CommandEmpty = _chunkSEEK7N3Ycjs.e; exports.CommandGroup = _chunkSEEK7N3Ycjs.f; exports.CommandInput = _chunkSEEK7N3Ycjs.c; exports.CommandItem = _chunkSEEK7N3Ycjs.h; exports.CommandList = _chunkSEEK7N3Ycjs.d; exports.CommandLoading = _chunkSEEK7N3Ycjs.i; exports.CommandSeparator = _chunkSEEK7N3Ycjs.g; exports.CommandShortcut = _chunkSEEK7N3Ycjs.j; exports.Container = _chunkMKZNGJBScjs.a; exports.ContextMenu = _chunkCVSZ456Pcjs.a; exports.ContextMenuArrow = _chunkCVSZ456Pcjs.o; exports.ContextMenuCheckboxItem = _chunkCVSZ456Pcjs.j; exports.ContextMenuContent = _chunkCVSZ456Pcjs.h; exports.ContextMenuGroup = _chunkCVSZ456Pcjs.c; exports.ContextMenuItem = _chunkCVSZ456Pcjs.i; exports.ContextMenuLabel = _chunkCVSZ456Pcjs.l; exports.ContextMenuRadioGroup = _chunkCVSZ456Pcjs.e; exports.ContextMenuRadioItem = _chunkCVSZ456Pcjs.k; exports.ContextMenuSeparator = _chunkCVSZ456Pcjs.m; exports.ContextMenuShortcut = _chunkCVSZ456Pcjs.n; exports.ContextMenuSub = _chunkCVSZ456Pcjs.d; exports.ContextMenuSubContent = _chunkCVSZ456Pcjs.g; exports.ContextMenuSubTrigger = _chunkCVSZ456Pcjs.f; exports.ContextMenuTrigger = _chunkCVSZ456Pcjs.b; exports.DataTableColumnHeader = _chunkWQ3FICSTcjs.c; exports.DataTablePagination = _chunkWQ3FICSTcjs.b; exports.DataTableViewOptions = _chunkWQ3FICSTcjs.a; exports.Dialog = _chunkSONWHTU3cjs.a; exports.DialogBody = _chunkSONWHTU3cjs.e; exports.DialogClose = _chunkSONWHTU3cjs.i; exports.DialogContent = _chunkSONWHTU3cjs.c; exports.DialogDescription = _chunkSONWHTU3cjs.h; exports.DialogFooter = _chunkSONWHTU3cjs.f; exports.DialogHeader = _chunkSONWHTU3cjs.d; exports.DialogTitle = _chunkSONWHTU3cjs.g; exports.DialogTrigger = _chunkSONWHTU3cjs.b; exports.Drawer = _chunkEH3IHQRLcjs.a; exports.DrawerBody = _chunkEH3IHQRLcjs.e; exports.DrawerClose = _chunkEH3IHQRLcjs.i; exports.DrawerContent = _chunkEH3IHQRLcjs.c; exports.DrawerDescription = _chunkEH3IHQRLcjs.h; exports.DrawerFooter = _chunkEH3IHQRLcjs.f; exports.DrawerHeader = _chunkEH3IHQRLcjs.d; exports.DrawerTitle = _chunkEH3IHQRLcjs.g; exports.DrawerTrigger = _chunkEH3IHQRLcjs.b; exports.DropdownMenu = _chunk6QQPQ7WNcjs.a; exports.DropdownMenuArrow = _chunk6QQPQ7WNcjs.o; exports.DropdownMenuCheckboxItem = _chunk6QQPQ7WNcjs.j; exports.DropdownMenuContent = _chunk6QQPQ7WNcjs.h; exports.DropdownMenuGroup = _chunk6QQPQ7WNcjs.c; exports.DropdownMenuItem = _chunk6QQPQ7WNcjs.i; exports.DropdownMenuLabel = _chunk6QQPQ7WNcjs.l; exports.DropdownMenuRadioGroup = _chunk6QQPQ7WNcjs.e; exports.DropdownMenuRadioItem = _chunk6QQPQ7WNcjs.k; exports.DropdownMenuSeparator = _chunk6QQPQ7WNcjs.m; exports.DropdownMenuShortcut = _chunk6QQPQ7WNcjs.n; exports.DropdownMenuSub = _chunk6QQPQ7WNcjs.d; exports.DropdownMenuSubContent = _chunk6QQPQ7WNcjs.g; exports.DropdownMenuSubTrigger = _chunk6QQPQ7WNcjs.f; exports.DropdownMenuTrigger = _chunk6QQPQ7WNcjs.b; exports.Em = _chunkB2B6KDWQcjs.a; exports.Form = _chunkLVV67TW7cjs.a; exports.FormControl = _chunkLVV67TW7cjs.f; exports.FormDescription = _chunkLVV67TW7cjs.g; exports.FormField = _chunkLVV67TW7cjs.c; exports.FormItem = _chunkLVV67TW7cjs.d; exports.FormLabel = _chunkLVV67TW7cjs.e; exports.FormMessage = _chunkLVV67TW7cjs.h; exports.Heading = _chunkSSEBLMN5cjs.a; exports.HoverCard = _chunkSFY3PJ4Pcjs.a; exports.HoverCardArrow = _chunkSFY3PJ4Pcjs.d; exports.HoverCardContent = _chunkSFY3PJ4Pcjs.c; exports.HoverCardTrigger = _chunkSFY3PJ4Pcjs.b; exports.InputOTP = _chunkD77DV2PYcjs.d; exports.InputOTPGroup = _chunkD77DV2PYcjs.e; exports.InputOTPSeparator = _chunkD77DV2PYcjs.g; exports.InputOTPSlot = _chunkD77DV2PYcjs.f; exports.Kbd = _chunkG7L7OMQCcjs.a; exports.Label = _chunkC3JCUMYCcjs.a; exports.Menubar = _chunk2VT6BX7Scjs.e; exports.MenubarArrow = _chunk2VT6BX7Scjs.p; exports.MenubarCheckboxItem = _chunk2VT6BX7Scjs.k; exports.MenubarContent = _chunk2VT6BX7Scjs.i; exports.MenubarGroup = _chunk2VT6BX7Scjs.b; exports.MenubarItem = _chunk2VT6BX7Scjs.j; exports.MenubarLabel = _chunk2VT6BX7Scjs.m; exports.MenubarMenu = _chunk2VT6BX7Scjs.a; exports.MenubarRadioGroup = _chunk2VT6BX7Scjs.d; exports.MenubarRadioItem = _chunk2VT6BX7Scjs.l; exports.MenubarSeparator = _chunk2VT6BX7Scjs.n; exports.MenubarShortcut = _chunk2VT6BX7Scjs.o; exports.MenubarSub = _chunk2VT6BX7Scjs.c; exports.MenubarSubContent = _chunk2VT6BX7Scjs.h; exports.MenubarSubTrigger = _chunk2VT6BX7Scjs.g; exports.MenubarTrigger = _chunk2VT6BX7Scjs.f; exports.NavigationMenu = _chunkB644MBBGcjs.a; exports.NavigationMenuContent = _chunkB644MBBGcjs.e; exports.NavigationMenuItem = _chunkB644MBBGcjs.c; exports.NavigationMenuLink = _chunkB644MBBGcjs.f; exports.NavigationMenuList = _chunkB644MBBGcjs.b; exports.NavigationMenuTrigger = _chunkB644MBBGcjs.d; exports.NumberInput = _chunkUFXEVSU6cjs.a; exports.Pagination = _chunkWLOZYBMBcjs.a; exports.PaginationContent = _chunkWLOZYBMBcjs.b; exports.PaginationEllipsis = _chunkWLOZYBMBcjs.g; exports.PaginationItem = _chunkWLOZYBMBcjs.c; exports.PaginationLink = _chunkWLOZYBMBcjs.d; exports.PaginationNext = _chunkWLOZYBMBcjs.f; exports.PaginationPrevious = _chunkWLOZYBMBcjs.e; exports.PasswordInput = _chunkI5QVTZ6Ocjs.a; exports.Popover = _chunkDXKDE2PNcjs.a; exports.PopoverAnchor = _chunkDXKDE2PNcjs.c; exports.PopoverArrow = _chunkDXKDE2PNcjs.e; exports.PopoverContent = _chunkDXKDE2PNcjs.d; exports.PopoverTrigger = _chunkDXKDE2PNcjs.b; exports.Pre = _chunkEGLZAP4Scjs.a; exports.Progress = _chunkZ7V3J23Wcjs.a; exports.Quote = _chunk6UCQE3N6cjs.a; exports.REGEXP_ONLY_CHARS = _chunkD77DV2PYcjs.a; exports.REGEXP_ONLY_DIGITS = _chunkD77DV2PYcjs.b; exports.REGEXP_ONLY_DIGITS_AND_CHARS = _chunkD77DV2PYcjs.c; exports.Radio = _chunkGP4IX6Q5cjs.a; exports.RadioCards = _chunkAQBPC4WTcjs.a; exports.RadioCardsItem = _chunkAQBPC4WTcjs.b; exports.RadioGroup = _chunkR4NKNWAFcjs.a; exports.RadioGroupItem = _chunkR4NKNWAFcjs.b; exports.ResizableHandle = _chunkIGBASIDTcjs.c; exports.ResizablePanel = _chunkIGBASIDTcjs.b; exports.ResizablePanelGroup = _chunkIGBASIDTcjs.a; exports.ScrollArea = _chunk7RUBTABZcjs.a; exports.ScrollAreaScrollbar = _chunk7RUBTABZcjs.b; exports.SearchInput = _chunk4JENRUBJcjs.a; exports.Section = _chunkV6H7J3PZcjs.a; exports.Select = _chunkLCIAEPHScjs.a; exports.SelectContent = _chunkLCIAEPHScjs.g; exports.SelectGroup = _chunkLCIAEPHScjs.b; exports.SelectItem = _chunkLCIAEPHScjs.i; exports.SelectLabel = _chunkLCIAEPHScjs.h; exports.SelectScrollDownButton = _chunkLCIAEPHScjs.f; exports.SelectScrollUpButton = _chunkLCIAEPHScjs.e; exports.SelectSeparator = _chunkLCIAEPHScjs.j; exports.SelectTrigger = _chunkLCIAEPHScjs.d; exports.SelectValue = _chunkLCIAEPHScjs.c; exports.Separator = _chunk5AQT2M4Qcjs.a; exports.SeparatorItem = _chunk5AQT2M4Qcjs.b; exports.Sheet = _chunkN422I4LMcjs.a; exports.SheetBody = _chunkN422I4LMcjs.e; exports.SheetClose = _chunkN422I4LMcjs.i; exports.SheetContent = _chunkN422I4LMcjs.c; exports.SheetDescription = _chunkN422I4LMcjs.h; exports.SheetFooter = _chunkN422I4LMcjs.f; exports.SheetHeader = _chunkN422I4LMcjs.d; exports.SheetTitle = _chunkN422I4LMcjs.g; exports.SheetTrigger = _chunkN422I4LMcjs.b; exports.Skeleton = _chunkEYYMRAUHcjs.a; exports.Slider = _chunk3VRNVFVAcjs.a; exports.Spinner = _chunkHFROIOY3cjs.a; exports.Strong = _chunkCVDXD5WNcjs.a; exports.Switch = _chunkTAFSGBZZcjs.a; exports.Table = _chunkG2ZKUHLXcjs.a; exports.TableBody = _chunkG2ZKUHLXcjs.c; exports.TableCaption = _chunkG2ZKUHLXcjs.h; exports.TableCell = _chunkG2ZKUHLXcjs.g; exports.TableFooter = _chunkG2ZKUHLXcjs.d; exports.TableHead = _chunkG2ZKUHLXcjs.f; exports.TableHeader = _chunkG2ZKUHLXcjs.b; exports.TableRow = _chunkG2ZKUHLXcjs.e; exports.Tabs = _chunkYL262UMCcjs.a; exports.TabsContent = _chunkYL262UMCcjs.d; exports.TabsList = _chunkYL262UMCcjs.b; exports.TabsTrigger = _chunkYL262UMCcjs.c; exports.Text = _chunk5GPUH5DHcjs.a; exports.TextInput = _chunk3CDTMAHFcjs.a; exports.Textarea = _chunk32SQW5RIcjs.a; exports.Toaster = _chunk2KJO6CJDcjs.b; exports.Toggle = _chunkB4Y4AQPUcjs.a; exports.ToggleGroup = _chunkHT6KARNVcjs.a; exports.ToggleGroupItem = _chunkHT6KARNVcjs.b; exports.Tooltip = _chunk27FVJY2Dcjs.b; exports.TooltipArrow = _chunk27FVJY2Dcjs.e; exports.TooltipContent = _chunk27FVJY2Dcjs.d; exports.TooltipProvider = _chunk27FVJY2Dcjs.a; exports.TooltipTrigger = _chunk27FVJY2Dcjs.c; exports.buttonVariants = _chunkIYSTGLX3cjs.a; exports.cn = _chunkDD6AVCRHcjs.a; exports.createCarouselScope = _chunkXPXTRWKNcjs.a; exports.createFormFieldScope = _chunkLVV67TW7cjs.b; exports.inputVariants = _chunkRA4YLL7Dcjs.a; exports.toast = _chunk2KJO6CJDcjs.a; exports.toggleVariants = _chunkA3ZDFV2Hcjs.a;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as zf}from"./chunk-Y7NPEE5D.js";import"./chunk-U2JQOYDM.js";import{a as Bf,b as Cf}from"./chunk-QIW5RBHT.js";import{a as Af}from"./chunk-4KZKY2CG.js";import{a as f}from"./chunk-XAAC6A6T.js";import{a as Df,b as Ef,c as Ff,d as Gf,e as Hf}from"./chunk-P3NQKY2O.js";import{a as tf,b as xf}from"./chunk-P43SRU6B.js";import{a as af}from"./chunk-LXKXNXN3.js";import{a as bf}from"./chunk-6NCX7KIZ.js";import{a as cf,b as df,c as gf,d as hf,e as jf,f as kf,g as lf,h as nf}from"./chunk-CABVGOLI.js";import{a as qf,b as sf,c as uf,d as vf}from"./chunk-OIBROWV7.js";import{a as yf}from"./chunk-WN4T6UM3.js";import{a as wf}from"./chunk-PAMP6NUT.js";import{a as Re,b as Se}from"./chunk-5LXJ6LNT.js";import{a as Te}from"./chunk-XZ7TLHX3.js";import{a as Ue}from"./chunk-VIFD5JWH.js";import{a as Ve,b as We}from"./chunk-ZNOQDIWE.js";import{a as Xe,b as Ye,c as Ze,d as _e,e as $e,f as of,g as rf,h as ef,i as ff}from"./chunk-HNQ6FIEB.js";import{a as mf}from"./chunk-H673265S.js";import{a as pf}from"./chunk-WV3VVLBR.js";import{a as Be,b as Ce,c as De,d as Ee,e as Fe}from"./chunk-WIMGJQVV.js";import{a as Ge}from"./chunk-TRKS7L3H.js";import{a as He}from"./chunk-2OTO3VQG.js";import{a as Ie}from"./chunk-GYXY4PT6.js";import{a as Ke,b as Le}from"./chunk-KNSUZHIX.js";import{a as Me,b as Ne}from"./chunk-IDUR6OTC.js";import{a as Je}from"./chunk-4LXGDACG.js";import{a as Oe,b as Pe,c as Qe}from"./chunk-JF2IPHMR.js";import{a as Qr,b as Rr,c as Sr,d as Tr,e as Ur,f as Vr,g as Wr}from"./chunk-B6SHQPJP.js";import{a as Xr}from"./chunk-S6JAAVCK.js";import{a as Yr,b as Zr,c as _r,d as $r,e as oe,f as re,g as ee,h as fe,i as me,j as pe,k as te,l as xe,m as ae,n as be,o as ce,p as de}from"./chunk-PSJENEZT.js";import{a as ge,b as he,c as ie,d as je,e as ke,f as le}from"./chunk-KBPTF6BB.js";import{a as ne}from"./chunk-JNLGUTYE.js";import{a as qe,b as se,c as ue,d as ve,e as we,f as ye,g as ze}from"./chunk-O4H3WFSF.js";import{a as Ae}from"./chunk-SJNWC7WS.js";import{a as e}from"./chunk-RR2V6HKV.js";import"./chunk-C46H5E6H.js";import{a as nr,b as qr,c as sr,d as ur,e as vr,f as wr,g as yr,h as zr,i as Ar}from"./chunk-O64TC5AF.js";import{a as Br}from"./chunk-JTU2KPJV.js";import{a as Dr,b as Er,c as Fr,d as Gr,e as Hr,f as Ir,g as Jr,h as Kr}from"./chunk-MPTKFTWF.js";import{a as Cr}from"./chunk-H6BT6PGA.js";import{a as Lr}from"./chunk-MEM2VQOF.js";import{a as Mr,b as Nr,c as Or,d as Pr}from"./chunk-PAG3B6YB.js";import{a as eo,b as fo}from"./chunk-N5U7MKXK.js";import{a as $}from"./chunk-PNAKTM3B.js";import{a as mo}from"./chunk-XBWLMOFD.js";import{a as po,b as to,c as xo}from"./chunk-UOKR5A44.js";import{a as no,b as qo,c as so,d as uo,e as vo,f as wo,g as yo,h as zo,i as Ao,j as Bo}from"./chunk-B3NICH7Q.js";import{a as ao,b as bo,c as co,d as go,e as ho,f as io,g as jo,h as ko,i as lo}from"./chunk-VIL5XAJ2.js";import{a as Co}from"./chunk-ZW5FER3Z.js";import{a as Do,b as Eo,c as Fo,d as Go,e as Ho,f as Io,g as Jo,h as Ko,i as Lo,j as Mo,k as No,l as Oo,m as Po,n as Qo,o as Ro}from"./chunk-ESTQ3TW2.js";import{a as jr,b as kr,c as lr}from"./chunk-A2EUTK2D.js";import{a as pr,b as tr,c as xr,d as ar,e as br,f as cr,g as dr,h as gr,i as hr,j as ir}from"./chunk-5LLPQFUS.js";import{a as So,b as To,c as Uo,d as Vo,e as Wo,f as Xo,g as Yo,h as Zo,i as _o,j as $o,k as or,l as rr,m as er,n as fr,o as mr}from"./chunk-7AU7CPUH.js";import{a as C}from"./chunk-36U4Q3SK.js";import{a as D,b as E,c as F,d as G,e as H,f as I,g as J}from"./chunk-J5GEUQC3.js";import{a as M,b as N,c as O}from"./chunk-FVB3KM64.js";import{a as P,b as Q,c as R,d as S,e as T,f as U}from"./chunk-MKML3QHO.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _}from"./chunk-TI7JQNNN.js";import{a as L}from"./chunk-D3YTCKUH.js";import{a as K}from"./chunk-QOOHNPY5.js";import"./chunk-4LQA6RGQ.js";import{a as oo,b as ro}from"./chunk-4MCFTJLN.js";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-RZRUQ2YQ.js";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s,j as u}from"./chunk-MWADNAZB.js";import{a as r}from"./chunk-PTBFXCEO.js";import{a as b,b as c,c as d}from"./chunk-3SGIRTMN.js";import{a as v}from"./chunk-34KHJIHB.js";import{a as w,b as y,c as z}from"./chunk-RN4E5CZJ.js";import{a as o}from"./chunk-VPYH6JWS.js";import{a as A}from"./chunk-IC5KT4AY.js";import{a as B}from"./chunk-WDWMIB3K.js";export{m as Accordion,a as AccordionContent,t as AccordionIcon,p as AccordionItem,x as AccordionTrigger,b as Alert,d as AlertDescription,g as AlertDialog,s as AlertDialogAction,k as AlertDialogBody,u as AlertDialogCancel,i as AlertDialogContent,q as AlertDialogDescription,l as AlertDialogFooter,j as AlertDialogHeader,n as AlertDialogTitle,h as AlertDialogTrigger,c as AlertTitle,v as AspectRatio,w as Avatar,z as AvatarFallback,y as AvatarImage,A as Badge,B as Blockquote,C as Box,D as Breadcrumb,J as BreadcrumbEllipsis,F as BreadcrumbItem,G as BreadcrumbLink,E as BreadcrumbList,H as BreadcrumbPage,I as BreadcrumbSeparator,L as Button,M as Calendar,O as CalendarLabel,N as CalendarRangeLabel,P as Card,T as CardContent,S as CardDescription,U as CardFooter,Q as CardHeader,R as CardTitle,W as Carousel,X as CarouselContent,Y as CarouselItem,_ as CarouselNext,Z as CarouselPrevious,$ as Checkbox,oo as CheckboxCards,ro as CheckboxCardsItem,eo as CheckboxGroup,fo as CheckboxGroupItem,mo as Code,po as Collapsible,xo as CollapsibleContent,to as CollapsibleTrigger,no as Command,qo as CommandDialog,vo as CommandEmpty,wo as CommandGroup,so as CommandInput,zo as CommandItem,uo as CommandList,Ao as CommandLoading,yo as CommandSeparator,Bo as CommandShortcut,Co as Container,Do as ContextMenu,Ro as ContextMenuArrow,Mo as ContextMenuCheckboxItem,Ko as ContextMenuContent,Fo as ContextMenuGroup,Lo as ContextMenuItem,Oo as ContextMenuLabel,Ho as ContextMenuRadioGroup,No as ContextMenuRadioItem,Po as ContextMenuSeparator,Qo as ContextMenuShortcut,Go as ContextMenuSub,Jo as ContextMenuSubContent,Io as ContextMenuSubTrigger,Eo as ContextMenuTrigger,lr as DataTableColumnHeader,kr as DataTablePagination,jr as DataTableViewOptions,ao as Dialog,ho as DialogBody,lo as DialogClose,co as DialogContent,ko as DialogDescription,io as DialogFooter,go as DialogHeader,jo as DialogTitle,bo as DialogTrigger,nr as Drawer,vr as DrawerBody,Ar as DrawerClose,sr as DrawerContent,zr as DrawerDescription,wr as DrawerFooter,ur as DrawerHeader,yr as DrawerTitle,qr as DrawerTrigger,So as DropdownMenu,mr as DropdownMenuArrow,$o as DropdownMenuCheckboxItem,Zo as DropdownMenuContent,Uo as DropdownMenuGroup,_o as DropdownMenuItem,rr as DropdownMenuLabel,Wo as DropdownMenuRadioGroup,or as DropdownMenuRadioItem,er as DropdownMenuSeparator,fr as DropdownMenuShortcut,Vo as DropdownMenuSub,Yo as DropdownMenuSubContent,Xo as DropdownMenuSubTrigger,To as DropdownMenuTrigger,Br as Em,Dr as Form,Ir as FormControl,Jr as FormDescription,Fr as FormField,Gr as FormItem,Hr as FormLabel,Kr as FormMessage,Lr as Heading,Mr as HoverCard,Pr as HoverCardArrow,Or as HoverCardContent,Nr as HoverCardTrigger,Tr as InputOTP,Ur as InputOTPGroup,Wr as InputOTPSeparator,Vr as InputOTPSlot,Xr as Kbd,Cr as Label,oe as Menubar,de as MenubarArrow,te as MenubarCheckboxItem,me as MenubarContent,Zr as MenubarGroup,pe as MenubarItem,ae as MenubarLabel,Yr as MenubarMenu,$r as MenubarRadioGroup,xe as MenubarRadioItem,be as MenubarSeparator,ce as MenubarShortcut,_r as MenubarSub,fe as MenubarSubContent,ee as MenubarSubTrigger,re as MenubarTrigger,ge as NavigationMenu,ke as NavigationMenuContent,ie as NavigationMenuItem,le as NavigationMenuLink,he as NavigationMenuList,je as NavigationMenuTrigger,ne as NumberInput,qe as Pagination,se as PaginationContent,ze as PaginationEllipsis,ue as PaginationItem,ve as PaginationLink,ye as PaginationNext,we as PaginationPrevious,Ae as PasswordInput,Be as Popover,De as PopoverAnchor,Fe as PopoverArrow,Ee as PopoverContent,Ce as PopoverTrigger,Ge as Pre,He as Progress,Ie as Quote,Qr as REGEXP_ONLY_CHARS,Rr as REGEXP_ONLY_DIGITS,Sr as REGEXP_ONLY_DIGITS_AND_CHARS,Je as Radio,Ke as RadioCards,Le as RadioCardsItem,Me as RadioGroup,Ne as RadioGroupItem,Qe as ResizableHandle,Pe as ResizablePanel,Oe as ResizablePanelGroup,Re as ScrollArea,Se as ScrollAreaScrollbar,Te as SearchInput,Ue as Section,pr as Select,dr as SelectContent,tr as SelectGroup,hr as SelectItem,gr as SelectLabel,cr as SelectScrollDownButton,br as SelectScrollUpButton,ir as SelectSeparator,ar as SelectTrigger,xr as SelectValue,Ve as Separator,We as SeparatorItem,Xe as Sheet,$e as SheetBody,ff as SheetClose,Ze as SheetContent,ef as SheetDescription,of as SheetFooter,_e as SheetHeader,rf as SheetTitle,Ye as SheetTrigger,mf as Skeleton,pf as Slider,K as Spinner,af as Strong,bf as Switch,cf as Table,gf as TableBody,nf as TableCaption,lf as TableCell,hf as TableFooter,kf as TableHead,df as TableHeader,jf as TableRow,qf as Tabs,vf as TabsContent,sf as TabsList,uf as TabsTrigger,wf as Text,yf as TextInput,zf as Textarea,xf as Toaster,Af as Toggle,Bf as ToggleGroup,Cf as ToggleGroupItem,Ef as Tooltip,Hf as TooltipArrow,Gf as TooltipContent,Df as TooltipProvider,Ff as TooltipTrigger,r as buttonVariants,o as cn,V as createCarouselScope,Er as createFormFieldScope,e as inputVariants,tf as toast,f as toggleVariants};
1
+ import{a as zf}from"./chunk-Y7NPEE5D.js";import"./chunk-U2JQOYDM.js";import{a as Bf,b as Cf}from"./chunk-QIW5RBHT.js";import{a as Af}from"./chunk-4KZKY2CG.js";import{a as f}from"./chunk-XAAC6A6T.js";import{a as Df,b as Ef,c as Ff,d as Gf,e as Hf}from"./chunk-P3NQKY2O.js";import{a as tf,b as xf}from"./chunk-P43SRU6B.js";import{a as af}from"./chunk-LXKXNXN3.js";import{a as bf}from"./chunk-6NCX7KIZ.js";import{a as cf,b as df,c as gf,d as hf,e as jf,f as kf,g as lf,h as nf}from"./chunk-CABVGOLI.js";import{a as qf,b as sf,c as uf,d as vf}from"./chunk-OIBROWV7.js";import{a as yf}from"./chunk-WN4T6UM3.js";import{a as wf}from"./chunk-PAMP6NUT.js";import{a as Re,b as Se}from"./chunk-5LXJ6LNT.js";import{a as Te}from"./chunk-XZ7TLHX3.js";import{a as Ue}from"./chunk-VIFD5JWH.js";import{a as Ve,b as We}from"./chunk-ZNOQDIWE.js";import{a as Xe,b as Ye,c as Ze,d as _e,e as $e,f as of,g as rf,h as ef,i as ff}from"./chunk-HNQ6FIEB.js";import{a as mf}from"./chunk-H673265S.js";import{a as pf}from"./chunk-WV3VVLBR.js";import{a as Be,b as Ce,c as De,d as Ee,e as Fe}from"./chunk-WIMGJQVV.js";import{a as Ge}from"./chunk-TRKS7L3H.js";import{a as He}from"./chunk-2OTO3VQG.js";import{a as Ie}from"./chunk-GYXY4PT6.js";import{a as Ke,b as Le}from"./chunk-KNSUZHIX.js";import{a as Me,b as Ne}from"./chunk-IDUR6OTC.js";import{a as Je}from"./chunk-4LXGDACG.js";import{a as Oe,b as Pe,c as Qe}from"./chunk-JF2IPHMR.js";import{a as Qr,b as Rr,c as Sr,d as Tr,e as Ur,f as Vr,g as Wr}from"./chunk-B6SHQPJP.js";import{a as Xr}from"./chunk-S6JAAVCK.js";import{a as Yr,b as Zr,c as _r,d as $r,e as oe,f as re,g as ee,h as fe,i as me,j as pe,k as te,l as xe,m as ae,n as be,o as ce,p as de}from"./chunk-PSJENEZT.js";import{a as ge,b as he,c as ie,d as je,e as ke,f as le}from"./chunk-KBPTF6BB.js";import{a as ne}from"./chunk-JNLGUTYE.js";import{a as qe,b as se,c as ue,d as ve,e as we,f as ye,g as ze}from"./chunk-O4H3WFSF.js";import{a as Ae}from"./chunk-SJNWC7WS.js";import{a as e}from"./chunk-RR2V6HKV.js";import"./chunk-C46H5E6H.js";import{a as nr,b as qr,c as sr,d as ur,e as vr,f as wr,g as yr,h as zr,i as Ar}from"./chunk-O64TC5AF.js";import{a as Br}from"./chunk-JTU2KPJV.js";import{a as Dr,b as Er,c as Fr,d as Gr,e as Hr,f as Ir,g as Jr,h as Kr}from"./chunk-SS3SK3YG.js";import{a as Cr}from"./chunk-H6BT6PGA.js";import{a as Lr}from"./chunk-MEM2VQOF.js";import{a as Mr,b as Nr,c as Or,d as Pr}from"./chunk-PAG3B6YB.js";import{a as eo,b as fo}from"./chunk-N5U7MKXK.js";import{a as $}from"./chunk-PNAKTM3B.js";import{a as mo}from"./chunk-XBWLMOFD.js";import{a as po,b as to,c as xo}from"./chunk-UOKR5A44.js";import{a as no,b as qo,c as so,d as uo,e as vo,f as wo,g as yo,h as zo,i as Ao,j as Bo}from"./chunk-B3NICH7Q.js";import{a as ao,b as bo,c as co,d as go,e as ho,f as io,g as jo,h as ko,i as lo}from"./chunk-VIL5XAJ2.js";import{a as Co}from"./chunk-ZW5FER3Z.js";import{a as Do,b as Eo,c as Fo,d as Go,e as Ho,f as Io,g as Jo,h as Ko,i as Lo,j as Mo,k as No,l as Oo,m as Po,n as Qo,o as Ro}from"./chunk-ESTQ3TW2.js";import{a as jr,b as kr,c as lr}from"./chunk-A2EUTK2D.js";import{a as pr,b as tr,c as xr,d as ar,e as br,f as cr,g as dr,h as gr,i as hr,j as ir}from"./chunk-5LLPQFUS.js";import{a as So,b as To,c as Uo,d as Vo,e as Wo,f as Xo,g as Yo,h as Zo,i as _o,j as $o,k as or,l as rr,m as er,n as fr,o as mr}from"./chunk-7AU7CPUH.js";import{a as C}from"./chunk-36U4Q3SK.js";import{a as D,b as E,c as F,d as G,e as H,f as I,g as J}from"./chunk-J5GEUQC3.js";import{a as M,b as N,c as O}from"./chunk-FVB3KM64.js";import{a as P,b as Q,c as R,d as S,e as T,f as U}from"./chunk-MKML3QHO.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _}from"./chunk-TI7JQNNN.js";import{a as L}from"./chunk-D3YTCKUH.js";import{a as K}from"./chunk-QOOHNPY5.js";import"./chunk-4LQA6RGQ.js";import{a as oo,b as ro}from"./chunk-4MCFTJLN.js";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-RZRUQ2YQ.js";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s,j as u}from"./chunk-MWADNAZB.js";import{a as r}from"./chunk-PTBFXCEO.js";import{a as b,b as c,c as d}from"./chunk-3SGIRTMN.js";import{a as v}from"./chunk-34KHJIHB.js";import{a as w,b as y,c as z}from"./chunk-RN4E5CZJ.js";import{a as o}from"./chunk-VPYH6JWS.js";import{a as A}from"./chunk-IC5KT4AY.js";import{a as B}from"./chunk-WDWMIB3K.js";export{m as Accordion,a as AccordionContent,t as AccordionIcon,p as AccordionItem,x as AccordionTrigger,b as Alert,d as AlertDescription,g as AlertDialog,s as AlertDialogAction,k as AlertDialogBody,u as AlertDialogCancel,i as AlertDialogContent,q as AlertDialogDescription,l as AlertDialogFooter,j as AlertDialogHeader,n as AlertDialogTitle,h as AlertDialogTrigger,c as AlertTitle,v as AspectRatio,w as Avatar,z as AvatarFallback,y as AvatarImage,A as Badge,B as Blockquote,C as Box,D as Breadcrumb,J as BreadcrumbEllipsis,F as BreadcrumbItem,G as BreadcrumbLink,E as BreadcrumbList,H as BreadcrumbPage,I as BreadcrumbSeparator,L as Button,M as Calendar,O as CalendarLabel,N as CalendarRangeLabel,P as Card,T as CardContent,S as CardDescription,U as CardFooter,Q as CardHeader,R as CardTitle,W as Carousel,X as CarouselContent,Y as CarouselItem,_ as CarouselNext,Z as CarouselPrevious,$ as Checkbox,oo as CheckboxCards,ro as CheckboxCardsItem,eo as CheckboxGroup,fo as CheckboxGroupItem,mo as Code,po as Collapsible,xo as CollapsibleContent,to as CollapsibleTrigger,no as Command,qo as CommandDialog,vo as CommandEmpty,wo as CommandGroup,so as CommandInput,zo as CommandItem,uo as CommandList,Ao as CommandLoading,yo as CommandSeparator,Bo as CommandShortcut,Co as Container,Do as ContextMenu,Ro as ContextMenuArrow,Mo as ContextMenuCheckboxItem,Ko as ContextMenuContent,Fo as ContextMenuGroup,Lo as ContextMenuItem,Oo as ContextMenuLabel,Ho as ContextMenuRadioGroup,No as ContextMenuRadioItem,Po as ContextMenuSeparator,Qo as ContextMenuShortcut,Go as ContextMenuSub,Jo as ContextMenuSubContent,Io as ContextMenuSubTrigger,Eo as ContextMenuTrigger,lr as DataTableColumnHeader,kr as DataTablePagination,jr as DataTableViewOptions,ao as Dialog,ho as DialogBody,lo as DialogClose,co as DialogContent,ko as DialogDescription,io as DialogFooter,go as DialogHeader,jo as DialogTitle,bo as DialogTrigger,nr as Drawer,vr as DrawerBody,Ar as DrawerClose,sr as DrawerContent,zr as DrawerDescription,wr as DrawerFooter,ur as DrawerHeader,yr as DrawerTitle,qr as DrawerTrigger,So as DropdownMenu,mr as DropdownMenuArrow,$o as DropdownMenuCheckboxItem,Zo as DropdownMenuContent,Uo as DropdownMenuGroup,_o as DropdownMenuItem,rr as DropdownMenuLabel,Wo as DropdownMenuRadioGroup,or as DropdownMenuRadioItem,er as DropdownMenuSeparator,fr as DropdownMenuShortcut,Vo as DropdownMenuSub,Yo as DropdownMenuSubContent,Xo as DropdownMenuSubTrigger,To as DropdownMenuTrigger,Br as Em,Dr as Form,Ir as FormControl,Jr as FormDescription,Fr as FormField,Gr as FormItem,Hr as FormLabel,Kr as FormMessage,Lr as Heading,Mr as HoverCard,Pr as HoverCardArrow,Or as HoverCardContent,Nr as HoverCardTrigger,Tr as InputOTP,Ur as InputOTPGroup,Wr as InputOTPSeparator,Vr as InputOTPSlot,Xr as Kbd,Cr as Label,oe as Menubar,de as MenubarArrow,te as MenubarCheckboxItem,me as MenubarContent,Zr as MenubarGroup,pe as MenubarItem,ae as MenubarLabel,Yr as MenubarMenu,$r as MenubarRadioGroup,xe as MenubarRadioItem,be as MenubarSeparator,ce as MenubarShortcut,_r as MenubarSub,fe as MenubarSubContent,ee as MenubarSubTrigger,re as MenubarTrigger,ge as NavigationMenu,ke as NavigationMenuContent,ie as NavigationMenuItem,le as NavigationMenuLink,he as NavigationMenuList,je as NavigationMenuTrigger,ne as NumberInput,qe as Pagination,se as PaginationContent,ze as PaginationEllipsis,ue as PaginationItem,ve as PaginationLink,ye as PaginationNext,we as PaginationPrevious,Ae as PasswordInput,Be as Popover,De as PopoverAnchor,Fe as PopoverArrow,Ee as PopoverContent,Ce as PopoverTrigger,Ge as Pre,He as Progress,Ie as Quote,Qr as REGEXP_ONLY_CHARS,Rr as REGEXP_ONLY_DIGITS,Sr as REGEXP_ONLY_DIGITS_AND_CHARS,Je as Radio,Ke as RadioCards,Le as RadioCardsItem,Me as RadioGroup,Ne as RadioGroupItem,Qe as ResizableHandle,Pe as ResizablePanel,Oe as ResizablePanelGroup,Re as ScrollArea,Se as ScrollAreaScrollbar,Te as SearchInput,Ue as Section,pr as Select,dr as SelectContent,tr as SelectGroup,hr as SelectItem,gr as SelectLabel,cr as SelectScrollDownButton,br as SelectScrollUpButton,ir as SelectSeparator,ar as SelectTrigger,xr as SelectValue,Ve as Separator,We as SeparatorItem,Xe as Sheet,$e as SheetBody,ff as SheetClose,Ze as SheetContent,ef as SheetDescription,of as SheetFooter,_e as SheetHeader,rf as SheetTitle,Ye as SheetTrigger,mf as Skeleton,pf as Slider,K as Spinner,af as Strong,bf as Switch,cf as Table,gf as TableBody,nf as TableCaption,lf as TableCell,hf as TableFooter,kf as TableHead,df as TableHeader,jf as TableRow,qf as Tabs,vf as TabsContent,sf as TabsList,uf as TabsTrigger,wf as Text,yf as TextInput,zf as Textarea,xf as Toaster,Af as Toggle,Bf as ToggleGroup,Cf as ToggleGroupItem,Ef as Tooltip,Hf as TooltipArrow,Gf as TooltipContent,Df as TooltipProvider,Ff as TooltipTrigger,r as buttonVariants,o as cn,V as createCarouselScope,Er as createFormFieldScope,e as inputVariants,tf as toast,f as toggleVariants};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/ui",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "bugs": {
5
5
  "url": "https://github.com/codefastlabs/codefast/issues"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "main": "./dist/index.cjs",
29
29
  "module": "./dist/index.js",
30
30
  "source": "./src/index.ts",
31
- "types": "./dist/index.d.cts",
31
+ "types": "./dist/index.d.ts",
32
32
  "files": [
33
33
  "dist"
34
34
  ],
@@ -67,7 +67,6 @@
67
67
  "@radix-ui/react-visually-hidden": "^1.1.0",
68
68
  "clsx": "^2.1.1",
69
69
  "cmdk": "^1.0.0",
70
- "date-fns": "^4.1.0",
71
70
  "embla-carousel-react": "^8.3.0",
72
71
  "input-otp": "^1.2.4",
73
72
  "react-day-picker": "^9.1.3",
@@ -76,27 +75,27 @@
76
75
  "tailwind-merge": "^2.5.3",
77
76
  "tailwind-variants": "^0.2.1",
78
77
  "vaul": "^1.0.0",
79
- "@codefast-ui/checkbox-group": "0.1.34",
80
- "@codefast-ui/input": "0.1.34",
81
- "@codefast-ui/number-input": "0.1.34"
78
+ "@codefast-ui/checkbox-group": "0.1.36",
79
+ "@codefast-ui/input": "0.1.36",
80
+ "@codefast-ui/number-input": "0.1.36"
82
81
  },
83
82
  "devDependencies": {
84
83
  "@types/node": "^20.16.11",
85
- "autoprefixer": "^10.4.20",
86
84
  "eslint": "^8.57.1",
87
85
  "postcss": "^8.4.47",
88
86
  "tailwindcss": "^3.4.13",
89
87
  "tsup": "^8.3.0",
90
88
  "typescript": "^5.6.3",
91
- "@codefast/config-tailwind": "0.1.34",
92
- "@codefast/config-typescript": "0.1.34",
93
- "@codefast/eslint-config": "0.1.34"
89
+ "@codefast/config-tailwind": "0.1.36",
90
+ "@codefast/config-typescript": "0.1.36",
91
+ "@codefast/eslint-config": "0.1.36"
94
92
  },
95
93
  "peerDependencies": {
96
94
  "@tanstack/react-table": "^8",
97
95
  "@types/lodash-es": "*",
98
96
  "@types/react": "*",
99
97
  "@types/react-dom": "*",
98
+ "date-fns": "^4",
100
99
  "lodash-es": "^4",
101
100
  "next-themes": "^0.3",
102
101
  "react": "^18 || ^19",
@@ -105,6 +104,9 @@
105
104
  "recharts": "^2"
106
105
  },
107
106
  "peerDependenciesMeta": {
107
+ "@types/lodash-es": {
108
+ "optional": true
109
+ },
108
110
  "@types/react": {
109
111
  "optional": true
110
112
  },
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DV7C3OBY.cjs","../src/components/form.tsx"],"names":["createFormFieldContext","FormFieldProvider","useFormFieldContext","FORM_FIELD_NAME","useFormItem","consumerName","scope","id","useFormItemContext"],"mappings":"AAAA,ylBAAY,CAAC,wDAAwC,wDCE5C,uDACA,iDACA,qCAKP,8BAMA,gDA0EI,+CAnDkB,IAAA,CAAA,CAAA,2BAAA,CAAA,CAIlB,CAACA,WAUAC,CAAAA,CAAmBC,CAAmB,CAAA,CAC3CF,CAAAA,CAA8CG,8CAAe,CAE/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASC,CAAAA,CACPC,CAAAA,CACAC,SAOQ,CAAAC,CAAG,CAAA,CAAIC,CAAAA,CAAmBH,CAAAA,GAAmB,CAErD,EAAA,CAAA,CAAA,CAAA,CAAO,CACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,iBAAmB,CAAA,CAAA,sBACnB,EAAA,CAAA,CAAY,CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DV7C3OBY.cjs","sourcesContent":[null,"'use client';\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { Slot } from '@radix-ui/react-slot';\nimport { result } from 'lodash-es';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n useId,\n} from 'react';\nimport {\n Controller,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n FormProvider,\n type GlobalError,\n useFormState,\n} from 'react-hook-form';\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib/utils';\nimport type * as LabelPrimitive from '@radix-ui/react-label';\n\n/* -----------------------------------------------------------------------------\n * Component: Form\n * -------------------------------------------------------------------------- */\n\ntype FormProps = ComponentProps<typeof FormProvider>;\nconst Form = FormProvider;\n\n/* -----------------------------------------------------------------------------\n * Component: FormField\n * -------------------------------------------------------------------------- */\n\nconst FORM_FIELD_NAME = 'FormField';\n\ntype ScopedProps<P> = P & { __scopeFormField?: Scope };\n\nconst [createFormFieldContext, createFormFieldScope] =\n createContextScope(FORM_FIELD_NAME);\n\ninterface FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> {\n name: TName;\n}\n\nconst [FormFieldProvider, useFormFieldContext] =\n createFormFieldContext<FormFieldContextValue>(FORM_FIELD_NAME);\n\nfunction useFormItem(\n consumerName: string,\n scope: Scope,\n): {\n formDescriptionId: string;\n formItemId: string;\n formMessageId: string;\n id: string;\n} {\n const { id } = useFormItemContext(consumerName, scope);\n\n return {\n formDescriptionId: `form-item-description-${id}`,\n formItemId: `form-item-${id}`,\n formMessageId: `form-item-message-${id}`,\n id,\n };\n}\n\ntype FormFieldProps<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = ControllerProps<TFieldValues, TName>;\n\nfunction FormField<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(formFieldProps: FormFieldProps<TFieldValues, TName>): JSX.Element {\n const { __scopeFormField, ...props } = formFieldProps as ScopedProps<\n FormFieldProps<TFieldValues, TName>\n >;\n\n return (\n <FormFieldProvider name={props.name} scope={__scopeFormField}>\n <Controller {...props} />\n </FormFieldProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: FormItem\n * -------------------------------------------------------------------------- */\n\nconst FORM_ITEM_NAME = 'FormItem';\n\ninterface FormItemContextValue {\n id: string;\n}\n\nconst [FormItemProvider, useFormItemContext] =\n createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);\n\ntype FormItemElement = HTMLDivElement;\ntype FormItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst FormItem = forwardRef<FormItemElement, FormItemProps>(\n (\n { __scopeFormField, className, ...props }: ScopedProps<FormItemProps>,\n forwardedRef,\n ) => {\n const id = useId();\n\n return (\n <FormItemProvider id={id} scope={__scopeFormField}>\n <div\n ref={forwardedRef}\n className={cn('space-y-2', className)}\n {...props}\n />\n </FormItemProvider>\n );\n },\n);\n\nFormItem.displayName = FORM_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormLabel\n * -------------------------------------------------------------------------- */\n\nconst FORM_LABEL_NAME = 'FormLabel';\n\ntype FormFieldElement = ComponentRef<typeof LabelPrimitive.Root>;\ntype FormLabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;\n\nconst FormLabel = forwardRef<FormFieldElement, FormLabelProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormLabelProps>,\n forwardedRef,\n ) => {\n const { formItemId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n\n return <Label ref={forwardedRef} htmlFor={formItemId} {...props} />;\n },\n);\n\nFormLabel.displayName = FORM_LABEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormControl\n * -------------------------------------------------------------------------- */\n\nconst FORM_CONTROL_NAME = 'FormControl';\n\ntype FormControlElement = ComponentRef<typeof Slot>;\ntype FormControlProps = ComponentPropsWithoutRef<typeof Slot>;\n\nconst FormControl = forwardRef<FormControlElement, FormControlProps>(\n (\n { __scopeFormField, ...props }: ScopedProps<FormControlProps>,\n forwardedRef,\n ) => {\n const { formItemId, formDescriptionId, formMessageId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n const { name } = useFormFieldContext(FORM_CONTROL_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n\n return (\n <Slot\n ref={forwardedRef}\n aria-describedby={\n !errors[name]\n ? formDescriptionId\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={Boolean(errors[name])}\n id={formItemId}\n {...props}\n />\n );\n },\n);\n\nFormControl.displayName = FORM_CONTROL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormDescription\n * -------------------------------------------------------------------------- */\n\nconst FORM_DESCRIPTION_NAME = 'FormDescription';\n\ntype FormDescriptionElement = HTMLParagraphElement;\ntype FormDescriptionProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormDescription = forwardRef<\n FormDescriptionElement,\n FormDescriptionProps\n>(\n (\n {\n __scopeFormField,\n className,\n ...props\n }: ScopedProps<FormDescriptionProps>,\n forwardedRef,\n ) => {\n const { formDescriptionId } = useFormItem(\n FORM_MESSAGE_NAME,\n __scopeFormField,\n );\n\n return (\n <p\n ref={forwardedRef}\n className={cn('text-muted-foreground text-xs', className)}\n id={formDescriptionId}\n {...props}\n />\n );\n },\n);\n\nFormDescription.displayName = FORM_DESCRIPTION_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: FormMessage\n * -------------------------------------------------------------------------- */\n\nconst FORM_MESSAGE_NAME = 'FormMessage';\n\ntype FormMessageElement = HTMLParagraphElement;\ntype FormMessageProps = HTMLAttributes<HTMLParagraphElement>;\n\nconst FormMessage = forwardRef<FormMessageElement, FormMessageProps>(\n (\n {\n __scopeFormField,\n children,\n className,\n ...props\n }: ScopedProps<FormMessageProps>,\n forwardedRef,\n ) => {\n const { formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);\n const { name } = useFormFieldContext(FORM_MESSAGE_NAME, __scopeFormField);\n const { errors } = useFormState({ name });\n const error = result<GlobalError | null>(errors, name);\n const body = error?.message ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={forwardedRef}\n className={cn(\n 'text-xs',\n error?.message\n ? 'text-destructive font-medium'\n : 'text-muted-foreground',\n className,\n )}\n id={formMessageId}\n {...props}\n >\n {body}\n </p>\n );\n },\n);\n\nFormMessage.displayName = FORM_MESSAGE_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n createFormFieldScope,\n Form,\n FormControl,\n type FormControlProps,\n FormDescription,\n type FormDescriptionProps,\n FormField,\n type FormFieldProps,\n FormItem,\n type FormItemProps,\n FormLabel,\n type FormLabelProps,\n FormMessage,\n type FormMessageProps,\n type FormProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use client";import{a as u}from"./chunk-H6BT6PGA.js";import{a}from"./chunk-VPYH6JWS.js";import{createContextScope as g}from"@radix-ui/react-context";import{Slot as C}from"@radix-ui/react-slot";import{result as L}from"lodash-es";import{forwardRef as n,useId as N}from"react";import{Controller as V,FormProvider as x,useFormState as f}from"react-hook-form";import{jsx as m}from"react/jsx-runtime";var z=x,y="FormField",[M,K]=g(y),[S,I]=M(y);function F(o,r){let{id:e}=R(o,r);return{formDescriptionId:`form-item-description-${e}`,formItemId:`form-item-${e}`,formMessageId:`form-item-message-${e}`,id:e}}function Q(o){let{__scopeFormField:r,...e}=o;return m(S,{name:e.name,scope:r,children:m(V,{...e})})}var T="FormItem",[b,R]=M(T),D=n(({__scopeFormField:o,className:r,...e},t)=>{let s=N();return m(b,{id:s,scope:o,children:m("div",{ref:t,className:a("space-y-2",r),...e})})});D.displayName=T;var h="FormLabel",v=n(({__scopeFormField:o,...r},e)=>{let{formItemId:t}=F(p,o);return m(u,{ref:e,htmlFor:t,...r})});v.displayName=h;var E="FormControl",A=n(({__scopeFormField:o,...r},e)=>{let{formItemId:t,formDescriptionId:s,formMessageId:d}=F(p,o),{name:i}=I(E,o),{errors:l}=f({name:i});return m(C,{ref:e,"aria-describedby":l[i]?`${s} ${d}`:s,"aria-invalid":!!l[i],id:t,...r})});A.displayName=E;var _="FormDescription",H=n(({__scopeFormField:o,className:r,...e},t)=>{let{formDescriptionId:s}=F(p,o);return m("p",{ref:t,className:a("text-muted-foreground text-xs",r),id:s,...e})});H.displayName=_;var p="FormMessage",O=n(({__scopeFormField:o,children:r,className:e,...t},s)=>{let{formMessageId:d}=F(p,o),{name:i}=I(p,o),{errors:l}=f({name:i}),c=L(l,i),P=c?.message?String(c.message):r;return P?m("p",{ref:s,className:a("text-xs",c?.message?"text-destructive font-medium":"text-muted-foreground",e),id:d,...t,children:P}):null});O.displayName=p;export{z as a,K as b,Q as c,D as d,v as e,A as f,H as g,O as h};
2
- //# sourceMappingURL=chunk-MPTKFTWF.js.map