@vritti/quantum-ui 0.1.22 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/Button.d.ts +10 -3
  2. package/dist/Button.js +21 -36
  3. package/dist/Button.js.map +1 -1
  4. package/dist/Button2.js +42 -0
  5. package/dist/Button2.js.map +1 -0
  6. package/dist/Card.d.ts +8 -8
  7. package/dist/Card.js.map +1 -1
  8. package/dist/Checkbox.d.ts +5 -8
  9. package/dist/Checkbox.js +38 -278
  10. package/dist/Checkbox.js.map +1 -1
  11. package/dist/DatePicker.d.ts +68 -0
  12. package/dist/DatePicker.js +12038 -0
  13. package/dist/DatePicker.js.map +1 -0
  14. package/dist/Form.d.ts +70 -88
  15. package/dist/Form.js +34 -30
  16. package/dist/Form.js.map +1 -1
  17. package/dist/Label.js +40 -0
  18. package/dist/Label.js.map +1 -0
  19. package/dist/OTPField.js +2 -12
  20. package/dist/OTPField.js.map +1 -1
  21. package/dist/PasswordField.js.map +1 -1
  22. package/dist/PhoneField.js +6 -12
  23. package/dist/PhoneField.js.map +1 -1
  24. package/dist/Skeleton.d.ts +6 -0
  25. package/dist/Skeleton.js +9 -0
  26. package/dist/Skeleton.js.map +1 -0
  27. package/dist/Spinner.d.ts +14 -0
  28. package/dist/Spinner.js +31 -0
  29. package/dist/Spinner.js.map +1 -0
  30. package/dist/TextArea.js +4 -10
  31. package/dist/TextArea.js.map +1 -1
  32. package/dist/TextField.js.map +1 -1
  33. package/dist/ThemeToggle.js.map +1 -1
  34. package/dist/Typography.js.map +1 -1
  35. package/dist/assets/quantum-ui.css +66 -44
  36. package/dist/axios.d.ts +11 -6
  37. package/dist/axios.js +186 -147
  38. package/dist/axios.js.map +1 -1
  39. package/dist/components/Button.d.ts +7 -0
  40. package/dist/components/Button.js +2 -1
  41. package/dist/components/Button.js.map +1 -1
  42. package/dist/components/Card.d.ts +7 -0
  43. package/dist/components/Checkbox.d.ts +7 -0
  44. package/dist/components/DatePicker.d.ts +9 -0
  45. package/dist/components/DatePicker.js +2 -0
  46. package/dist/components/DatePicker.js.map +1 -0
  47. package/dist/components/Form.d.ts +7 -0
  48. package/dist/components/Form.js +1 -1
  49. package/dist/components/OTPField.d.ts +7 -0
  50. package/dist/components/PasswordField.d.ts +7 -0
  51. package/dist/components/PhoneField.d.ts +7 -0
  52. package/dist/components/Progress.d.ts +7 -0
  53. package/dist/components/Progress.js +2 -5
  54. package/dist/components/Progress.js.map +1 -1
  55. package/dist/components/Skeleton.d.ts +9 -0
  56. package/dist/components/Skeleton.js +2 -0
  57. package/dist/components/Skeleton.js.map +1 -0
  58. package/dist/components/Spinner.d.ts +9 -0
  59. package/dist/components/Spinner.js +2 -0
  60. package/dist/components/Spinner.js.map +1 -0
  61. package/dist/components/TextArea.d.ts +7 -0
  62. package/dist/components/TextField.d.ts +7 -0
  63. package/dist/components/ThemeToggle.d.ts +7 -0
  64. package/dist/components/Typography.d.ts +7 -0
  65. package/dist/createLucideIcon.js.map +1 -1
  66. package/dist/field.js +26 -177
  67. package/dist/field.js.map +1 -1
  68. package/dist/index.d.ts +146 -142
  69. package/dist/index.js +10 -7
  70. package/dist/index.js.map +1 -1
  71. package/dist/index2.js +54 -116
  72. package/dist/index2.js.map +1 -1
  73. package/dist/index3.js +103 -1
  74. package/dist/index3.js.map +1 -1
  75. package/dist/index4.js +31 -55
  76. package/dist/index4.js.map +1 -1
  77. package/dist/index5.js +90 -3
  78. package/dist/index5.js.map +1 -1
  79. package/dist/index6.js +246 -0
  80. package/dist/index6.js.map +1 -0
  81. package/dist/shadcn/shadcnField.d.ts +7 -0
  82. package/dist/utils/axios.d.ts +21 -6
  83. package/dist/utils/axios.js +1 -1
  84. package/dist/utils.js.map +1 -1
  85. package/package.json +33 -17
  86. package/dist/AuthProvider.d.ts +0 -34
  87. package/dist/OnboardingProvider.js +0 -113
  88. package/dist/OnboardingProvider.js.map +0 -1
  89. package/dist/context/AuthProvider.d.ts +0 -2
  90. package/dist/context/AuthProvider.js +0 -2
  91. package/dist/context/AuthProvider.js.map +0 -1
@@ -1,2 +1,9 @@
1
1
  export * from './Button/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,3 @@
1
- export { B as Button, b as buttonVariants } from '../Button.js';
1
+ export { B as Button } from '../Button.js';
2
+ export { b as buttonVariants } from '../Button2.js';
2
3
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,2 +1,9 @@
1
1
  export * from './Card/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,9 @@
1
1
  export * from './Checkbox/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ export * from './DatePicker/index'
2
+ export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -0,0 +1,2 @@
1
+ export { D as DatePicker } from '../DatePicker.js';
2
+ //# sourceMappingURL=DatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,9 @@
1
1
  export * from './Form/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,3 +1,3 @@
1
- export { C as Controller, F as Form } from '../Form.js';
2
1
  export { F as Field, a as FieldContent, b as FieldDescription, c as FieldError, d as FieldGroup, e as FieldLabel, f as FieldLegend, g as FieldSeparator, h as FieldSet, i as FieldTitle } from '../field.js';
2
+ export { C as Controller, F as Form } from '../Form.js';
3
3
  //# sourceMappingURL=Form.js.map
@@ -1,2 +1,9 @@
1
1
  export * from './OTPField/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,9 @@
1
1
  export * from './PasswordField/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,9 @@
1
1
  export * from './PhoneField/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,9 @@
1
1
  export * from './Progress/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { c as createContextScope } from '../index4.js';
3
+ import { c as createContextScope } from '../index2.js';
4
4
  import { P as Primitive } from '../index5.js';
5
5
  import { c as cn } from '../utils.js';
6
6
 
@@ -96,10 +96,7 @@ const Progress$1 = React.forwardRef(({ className, value, ...props }, ref) => /*
96
96
  {
97
97
  ref,
98
98
  "data-slot": "progress",
99
- className: cn(
100
- "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
101
- className
102
- ),
99
+ className: cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", className),
103
100
  ...props,
104
101
  children: /* @__PURE__ */ jsx(
105
102
  Indicator,
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.js","sources":["../../node_modules/@radix-ui/react-progress/dist/index.mjs","../../shadcn/shadcnProgress/Progress.tsx","../../lib/components/Progress/Progress.tsx"],"sourcesContent":["\"use client\";\n\n// src/progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"../utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n data-slot=\"progress\"\n className={cn(\n \"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary h-full w-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n))\n\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n","import { Progress as ShadcnProgress } from '../../../shadcn/shadcnProgress/Progress';\n\nexport const Progress = ShadcnProgress;\n"],"names":["Progress","ProgressPrimitive.Root","ProgressPrimitive.Indicator","ShadcnProgress"],"mappings":";;;;;;AAOA,IAAI,aAAa,GAAG,UAAU;AAC9B,IAAI,WAAW,GAAG,GAAG;AACrB,IAAI,CAAC,qBAA0C,CAAC,GAAG,kBAAkB,CAAC,aAAa,CAAC;AACpF,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,aAAa,CAAC;AACjF,IAAIA,UAAQ,GAAG,KAAK,CAAC,UAAU;AAC/B,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM;AACV,MAAM,eAAe;AACrB,MAAM,KAAK,EAAE,SAAS,GAAG,IAAI;AAC7B,MAAM,GAAG,EAAE,OAAO;AAClB,MAAM,aAAa,GAAG,oBAAoB;AAC1C,MAAM,GAAG;AACT,KAAK,GAAG,KAAK;AACb,IAAI,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE;AAClE,MAAM,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACjE,IAAI;AACJ,IAAI,MAAM,GAAG,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,WAAW;AACjE,IAAI,IAAI,SAAS,KAAK,IAAI,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE;AACnE,MAAM,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACrE,IAAI;AACJ,IAAI,M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C,EAAE,SAAS,CAAC,iBAAiB,EAAE,aAAa,CAAC;AACzF;AACA,8CAA8C,EAAE,WAAW,CAAC;AAC5D;;AAEA,uBAAuB,CAAC;AACxB;AACA,IAAI,IAAI,GAAGA,UAAQ;AACnB,IAAI,SAAS,GAAG,iBAAiB;;ACrFjC,MAAMA,UAAA,GAAW,KAAA,CAAM,UAAA,CAGrB,CAAC,EAAE,WAAW,KAAA,EAAO,GAAG,KAAA,EAAM,EAAG,GAAA,qBACjC,GAAA;AAAA,EAACC,IAAkB;AAAA,EAAlB;AAAA,IACC,GAAA;AAAA,IACA,WAAA,EAAU,UAAA;AAAA,IACV,SAAA,EAAW,EAAA;AAAA,MACT,gEAAA;AAAA,MACA;AAAA,KACF;AAAA,IACC,GAAG,KAAA;AAAA,IAEJ,QAAA,kBAAA,GAAA;AAAA,MAACC,SAAkB;AAAA,MAAlB;AAAA,QACC,WAAA,EAAU,oBAAA;AAAA,QACV,SAAA,EAAU,gDAAA;AAAA,QACV,OAAO,EAAE,SAAA,EAAW,eAAe,GAAA,IAAO,KAAA,IAAS,EAAE,CAAA,EAAA,CAAA;AAAK;AAAA;AAC5D;AACF,CACD,CAAA;AAEDF,UAAA,CAAS,WAAA,GAAcC,IAAkB,CAAK,WAAA;;AC1BvC,MAAM,QAAA,GAAWE;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"Progress.js","sources":["../../node_modules/.pnpm/@radix-ui+react-progress@1.1.7_@types+react-dom@19.1.5_@types+react@19.1.6__@types+reac_4cff7f0aeea739b35e757b72d844ccc5/node_modules/@radix-ui/react-progress/dist/index.mjs","../../shadcn/shadcnProgress/Progress.tsx","../../lib/components/Progress/Progress.tsx"],"sourcesContent":["\"use client\";\n\n// src/progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n","'use client';\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\nimport * as React from 'react';\n\nimport { cn } from '../utils';\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n data-slot=\"progress\"\n className={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary h-full w-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\n\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\n","import { Progress as ShadcnProgress } from '../../../shadcn/shadcnProgress/Progress';\n\nexport const Progress = ShadcnProgress;\n"],"names":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G,iBAAiB;;ACrFjC,MAAMA,UAAA,GAAW,KAAA,CAAM,UAAA,CAGrB,CAAC,EAAE,WAAW,KAAA,EAAO,GAAG,KAAA,EAAM,EAAG,GAAA,qBACjC,GAAA;AAAA,EAACC,IAAkB;AAAA,EAAlB;AAAA,IACC,GAAA;AAAA,IACA,WAAA,EAAU,UAAA;AAAA,IACV,SAAA,EAAW,EAAA,CAAG,gEAAA,EAAkE,SAAS,CAAA;AAAA,IACxF,GAAG,KAAA;AAAA,IAEJ,QAAA,kBAAA,GAAA;AAAA,MAACC,SAAkB;AAAA,MAAlB;AAAA,QACC,WAAA,EAAU,oBAAA;AAAA,QACV,SAAA,EAAU,gDAAA;AAAA,QACV,OAAO,EAAE,SAAA,EAAW,eAAe,GAAA,IAAO,KAAA,IAAS,EAAE,CAAA,EAAA,CAAA;AAAK;AAAA;AAC5D;AACF,CACD,CAAA;AAEDF,UAAA,CAAS,WAAA,GAAcC,IAAkB,CAAK,WAAA;;ACvBvC,MAAM,QAAA,GAAWE;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ export * from './Skeleton/index'
2
+ export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -0,0 +1,2 @@
1
+ export { S as Skeleton } from '../Skeleton.js';
2
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export * from './Spinner/index'
2
+ export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -0,0 +1,2 @@
1
+ export { S as Spinner } from '../Spinner.js';
2
+ //# sourceMappingURL=Spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,9 @@
1
1
  export * from './TextArea/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,9 @@
1
1
  export * from './TextField/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,9 @@
1
1
  export * from './ThemeToggle/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1,2 +1,9 @@
1
1
  export * from './Typography/index'
2
2
  export {}
3
+
4
+
5
+ declare module 'axios' {
6
+ interface AxiosRequestConfig {
7
+ public?: boolean;
8
+ }
9
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"createLucideIcon.js","sources":["../node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/lucide-react/dist/esm/Icon.js","../node_modules/lucide-react/dist/esm/createLucideIcon.js"],"sourcesContent":["/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,WAAW,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE;AAC3F,MAAM,WAAW,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO;AAC9C,EAAE,uBAAuB;AACzB,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,WAAW;AAC3D,CAAC;AACD,MAAM,YAAY,GAAG,CAAC,MAAM,KAAK;AACjC,EAAE,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC;AACvC,EAAE,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/D,CAAC;AACD,MAAM,YAAY,GAAG,CAAC,GAAG,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,KAAK;AACjF,EAAE,OAAO,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,KAAK;AAC5F,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;AACnB,MAAM,WAAW,GAAG,CAAC,KAAK,KAAK;AAC/B,EAAE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC5B,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,O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M,GAAG;AACT,KAAK;AACL,IAAI;AACJ,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAClE,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,CAAC,QAAQ;AACvD;AACA;AACA,CAAC;;ACvCD;AACA;AACA;AACA;AACA;AACA;;;AAMK,MAAC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK;AACjD,EAAE,MAAM,SAAS,GAAG,UAAU;AAC9B,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAK,aAAa,CAAC,IAAI,EAAE;AAC1D,MAAM,GAAG;AACT,MAAM,QAAQ;AACd,MAAM,SAAS,EAAE,YAAY;AAC7B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACvD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC5B,QAAQ;AACR,OAAO;AACP,MAAM,GAAG;AACT,KAAK;AACL,GAAG;AACH,EAAE,SAAS,CAAC,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC;AAChD,EAAE,OAAO,SAAS;AAClB;;;;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"createLucideIcon.js","sources":["../node_modules/.pnpm/lucide-react@0.544.0_react@19.1.1/node_modules/lucide-react/dist/esm/shared/src/utils.js","../node_modules/.pnpm/lucide-react@0.544.0_react@19.1.1/node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/.pnpm/lucide-react@0.544.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js","../node_modules/.pnpm/lucide-react@0.544.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js"],"sourcesContent":["/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.544.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,WAAW,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE;AAC3F,MAAM,WAAW,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO;AAC9C,EAAE,uBAAuB;AACzB,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,WAAW;AAC3D,CAAC;AACD,MAAM,YAAY,GAAG,CAAC,MAAM,KAAK;AACjC,EAAE,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC;AACvC,EAAE,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC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AQ;AACR,OAAO;AACP,MAAM,GAAG;AACT,KAAK;AACL,GAAG;AACH,EAAE,SAAS,CAAC,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC;AAChD,EAAE,OAAO,SAAS;AAClB;;;;","x_google_ignoreList":[0,1,2,3]}
package/dist/field.js CHANGED
@@ -1,142 +1,10 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { a as createSlot, c as cva } from './index3.js';
2
3
  import * as React from 'react';
3
4
  import { useMemo } from 'react';
4
- import { c as cva } from './index3.js';
5
5
  import { c as cn } from './utils.js';
6
- import { P as Primitive$1 } from './index5.js';
6
+ import { L as Label } from './Label.js';
7
7
  import 'react-dom';
8
- import { a as composeRefs } from './index2.js';
9
-
10
- var NAME$1 = "Label";
11
- var Label$1 = React.forwardRef((props, forwardedRef) => {
12
- return /* @__PURE__ */ jsx(
13
- Primitive$1.label,
14
- {
15
- ...props,
16
- ref: forwardedRef,
17
- onMouseDown: (event) => {
18
- const target = event.target;
19
- if (target.closest("button, input, select, textarea")) return;
20
- props.onMouseDown?.(event);
21
- if (!event.defaultPrevented && event.detail > 1) event.preventDefault();
22
- }
23
- }
24
- );
25
- });
26
- Label$1.displayName = NAME$1;
27
- var Root$1 = Label$1;
28
-
29
- function Label({ className, ...props }) {
30
- return /* @__PURE__ */ jsx(
31
- Root$1,
32
- {
33
- "data-slot": "label",
34
- className: cn(
35
- "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
36
- className
37
- ),
38
- ...props
39
- }
40
- );
41
- }
42
-
43
- // src/slot.tsx
44
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
45
- var use = React[" use ".trim().toString()];
46
- function isPromiseLike(value) {
47
- return typeof value === "object" && value !== null && "then" in value;
48
- }
49
- function isLazyComponent(element) {
50
- return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
51
- }
52
- // @__NO_SIDE_EFFECTS__
53
- function createSlot(ownerName) {
54
- const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
55
- const Slot2 = React.forwardRef((props, forwardedRef) => {
56
- let { children, ...slotProps } = props;
57
- if (isLazyComponent(children) && typeof use === "function") {
58
- children = use(children._payload);
59
- }
60
- const childrenArray = React.Children.toArray(children);
61
- const slottable = childrenArray.find(isSlottable);
62
- if (slottable) {
63
- const newElement = slottable.props.children;
64
- const newChildren = childrenArray.map((child) => {
65
- if (child === slottable) {
66
- if (React.Children.count(newElement) > 1) return React.Children.only(null);
67
- return React.isValidElement(newElement) ? newElement.props.children : null;
68
- } else {
69
- return child;
70
- }
71
- });
72
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
73
- }
74
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
75
- });
76
- Slot2.displayName = `${ownerName}.Slot`;
77
- return Slot2;
78
- }
79
- // @__NO_SIDE_EFFECTS__
80
- function createSlotClone(ownerName) {
81
- const SlotClone = React.forwardRef((props, forwardedRef) => {
82
- let { children, ...slotProps } = props;
83
- if (isLazyComponent(children) && typeof use === "function") {
84
- children = use(children._payload);
85
- }
86
- if (React.isValidElement(children)) {
87
- const childrenRef = getElementRef(children);
88
- const props2 = mergeProps(slotProps, children.props);
89
- if (children.type !== React.Fragment) {
90
- props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
91
- }
92
- return React.cloneElement(children, props2);
93
- }
94
- return React.Children.count(children) > 1 ? React.Children.only(null) : null;
95
- });
96
- SlotClone.displayName = `${ownerName}.SlotClone`;
97
- return SlotClone;
98
- }
99
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
100
- function isSlottable(child) {
101
- return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
102
- }
103
- function mergeProps(slotProps, childProps) {
104
- const overrideProps = { ...childProps };
105
- for (const propName in childProps) {
106
- const slotPropValue = slotProps[propName];
107
- const childPropValue = childProps[propName];
108
- const isHandler = /^on[A-Z]/.test(propName);
109
- if (isHandler) {
110
- if (slotPropValue && childPropValue) {
111
- overrideProps[propName] = (...args) => {
112
- const result = childPropValue(...args);
113
- slotPropValue(...args);
114
- return result;
115
- };
116
- } else if (slotPropValue) {
117
- overrideProps[propName] = slotPropValue;
118
- }
119
- } else if (propName === "style") {
120
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
121
- } else if (propName === "className") {
122
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
123
- }
124
- }
125
- return { ...slotProps, ...overrideProps };
126
- }
127
- function getElementRef(element) {
128
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
129
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
130
- if (mayWarn) {
131
- return element.ref;
132
- }
133
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
134
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
135
- if (mayWarn) {
136
- return element.props.ref;
137
- }
138
- return element.props.ref || element.ref;
139
- }
140
8
 
141
9
  // src/primitive.tsx
142
10
  var NODES = [
@@ -242,12 +110,7 @@ function FieldLegend({
242
110
  {
243
111
  "data-slot": "field-legend",
244
112
  "data-variant": variant,
245
- className: cn(
246
- "mb-3 font-medium",
247
- "data-[variant=legend]:text-base",
248
- "data-[variant=label]:text-sm",
249
- className
250
- ),
113
+ className: cn("mb-3 font-medium", "data-[variant=legend]:text-base", "data-[variant=label]:text-sm", className),
251
114
  ...props
252
115
  }
253
116
  );
@@ -265,29 +128,26 @@ function FieldGroup({ className, ...props }) {
265
128
  }
266
129
  );
267
130
  }
268
- const fieldVariants = cva(
269
- "group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
270
- {
271
- variants: {
272
- orientation: {
273
- vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
274
- horizontal: [
275
- "flex-row items-center",
276
- "[&>[data-slot=field-label]]:flex-auto",
277
- "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
278
- ],
279
- responsive: [
280
- "flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto",
281
- "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
282
- "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
283
- ]
284
- }
285
- },
286
- defaultVariants: {
287
- orientation: "vertical"
131
+ const fieldVariants = cva("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
132
+ variants: {
133
+ orientation: {
134
+ vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
135
+ horizontal: [
136
+ "flex-row items-center",
137
+ "[&>[data-slot=field-label]]:flex-auto",
138
+ "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
139
+ ],
140
+ responsive: [
141
+ "flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto",
142
+ "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
143
+ "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
144
+ ]
288
145
  }
146
+ },
147
+ defaultVariants: {
148
+ orientation: "vertical"
289
149
  }
290
- );
150
+ });
291
151
  function Field({
292
152
  className,
293
153
  orientation = "vertical",
@@ -309,18 +169,12 @@ function FieldContent({ className, ...props }) {
309
169
  "div",
310
170
  {
311
171
  "data-slot": "field-content",
312
- className: cn(
313
- "group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
314
- className
315
- ),
172
+ className: cn("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", className),
316
173
  ...props
317
174
  }
318
175
  );
319
176
  }
320
- function FieldLabel({
321
- className,
322
- ...props
323
- }) {
177
+ function FieldLabel({ className, ...props }) {
324
178
  return /* @__PURE__ */ jsx(
325
179
  Label,
326
180
  {
@@ -373,10 +227,7 @@ function FieldSeparator({
373
227
  {
374
228
  "data-slot": "field-separator",
375
229
  "data-content": !!children,
376
- className: cn(
377
- "relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
378
- className
379
- ),
230
+ className: cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
380
231
  ...props,
381
232
  children: [
382
233
  /* @__PURE__ */ jsx(Separator, { className: "absolute inset-0 top-1/2" }),
@@ -405,12 +256,10 @@ function FieldError({
405
256
  if (!errors?.length) {
406
257
  return null;
407
258
  }
408
- if (errors?.length == 1) {
259
+ if (errors?.length === 1) {
409
260
  return errors[0]?.message;
410
261
  }
411
- return /* @__PURE__ */ jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
412
- (error, index) => error?.message && /* @__PURE__ */ jsx("li", { children: error.message }, index)
413
- ) });
262
+ return /* @__PURE__ */ jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error) => error?.message && /* @__PURE__ */ jsx("li", { children: error.message }, error.message)) });
414
263
  }, [children, errors]);
415
264
  if (!content) {
416
265
  return null;