@vritti/quantum-ui 0.2.8 → 0.2.9

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 (61) hide show
  1. package/README.md +7 -7
  2. package/dist/Alert.js +110 -0
  3. package/dist/Alert.js.map +1 -0
  4. package/dist/Avatar.js +1 -1
  5. package/dist/Chart.js +1 -1
  6. package/dist/Checkbox.js +2 -2
  7. package/dist/Combination.js +3 -15
  8. package/dist/Combination.js.map +1 -1
  9. package/dist/DatePicker.js +5 -14
  10. package/dist/DatePicker.js.map +1 -1
  11. package/dist/DropdownMenu.js +5 -74
  12. package/dist/DropdownMenu.js.map +1 -1
  13. package/dist/Form.js +29 -21
  14. package/dist/Form.js.map +1 -1
  15. package/dist/SelectField.js +1351 -0
  16. package/dist/SelectField.js.map +1 -0
  17. package/dist/Sonner.js +3 -38
  18. package/dist/Sonner.js.map +1 -1
  19. package/dist/Switch.js +2 -2
  20. package/dist/Toggle.js +1 -1
  21. package/dist/chevron-down.js +15 -0
  22. package/dist/chevron-down.js.map +1 -0
  23. package/dist/chevron-right.js +15 -0
  24. package/dist/chevron-right.js.map +1 -0
  25. package/dist/components/Alert.js +2 -0
  26. package/dist/components/Alert.js.map +1 -0
  27. package/dist/components/SelectField.js +2 -0
  28. package/dist/components/SelectField.js.map +1 -0
  29. package/dist/index.js +2 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/index11.js +69 -91
  32. package/dist/index11.js.map +1 -1
  33. package/dist/index12.js +86 -190
  34. package/dist/index12.js.map +1 -1
  35. package/dist/index13.js +196 -190
  36. package/dist/index13.js.map +1 -1
  37. package/dist/index14.js +199 -0
  38. package/dist/index14.js.map +1 -0
  39. package/dist/lib/components/Alert/Alert.d.ts +10 -0
  40. package/dist/lib/components/Alert/Alert.d.ts.map +1 -0
  41. package/dist/lib/components/Alert/index.d.ts +2 -0
  42. package/dist/lib/components/Alert/index.d.ts.map +1 -0
  43. package/dist/lib/components/Form/Form.d.ts +1 -1
  44. package/dist/lib/components/Form/Form.d.ts.map +1 -1
  45. package/dist/lib/components/SelectField/SelectField.d.ts +24 -0
  46. package/dist/lib/components/SelectField/SelectField.d.ts.map +1 -0
  47. package/dist/lib/components/SelectField/index.d.ts +3 -0
  48. package/dist/lib/components/SelectField/index.d.ts.map +1 -0
  49. package/dist/lib/components/index.d.ts +2 -0
  50. package/dist/lib/components/index.d.ts.map +1 -1
  51. package/dist/lib/utils/formHelpers.d.ts +7 -3
  52. package/dist/lib/utils/formHelpers.d.ts.map +1 -1
  53. package/dist/shadcn/shadcnAlert/alert.d.ts +11 -0
  54. package/dist/shadcn/shadcnAlert/alert.d.ts.map +1 -0
  55. package/dist/shadcn/shadcnAlert/index.d.ts +2 -0
  56. package/dist/shadcn/shadcnAlert/index.d.ts.map +1 -0
  57. package/dist/shadcn/shadcnBadge/Badge.d.ts +1 -1
  58. package/dist/shadcn/shadcnButton/Button.d.ts +2 -2
  59. package/dist/triangle-alert.js +40 -0
  60. package/dist/triangle-alert.js.map +1 -0
  61. package/package.json +15 -6
@@ -0,0 +1,199 @@
1
+ import React__default from 'react';
2
+
3
+ var shim = {exports: {}};
4
+
5
+ var useSyncExternalStoreShim_production = {};
6
+
7
+ /**
8
+ * @license React
9
+ * use-sync-external-store-shim.production.js
10
+ *
11
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
17
+ var hasRequiredUseSyncExternalStoreShim_production;
18
+
19
+ function requireUseSyncExternalStoreShim_production () {
20
+ if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
21
+ hasRequiredUseSyncExternalStoreShim_production = 1;
22
+ var React = React__default;
23
+ function is(x, y) {
24
+ return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
25
+ }
26
+ var objectIs = "function" === typeof Object.is ? Object.is : is,
27
+ useState = React.useState,
28
+ useEffect = React.useEffect,
29
+ useLayoutEffect = React.useLayoutEffect,
30
+ useDebugValue = React.useDebugValue;
31
+ function useSyncExternalStore$2(subscribe, getSnapshot) {
32
+ var value = getSnapshot(),
33
+ _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
34
+ inst = _useState[0].inst,
35
+ forceUpdate = _useState[1];
36
+ useLayoutEffect(
37
+ function () {
38
+ inst.value = value;
39
+ inst.getSnapshot = getSnapshot;
40
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
41
+ },
42
+ [subscribe, value, getSnapshot]
43
+ );
44
+ useEffect(
45
+ function () {
46
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
47
+ return subscribe(function () {
48
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
49
+ });
50
+ },
51
+ [subscribe]
52
+ );
53
+ useDebugValue(value);
54
+ return value;
55
+ }
56
+ function checkIfSnapshotChanged(inst) {
57
+ var latestGetSnapshot = inst.getSnapshot;
58
+ inst = inst.value;
59
+ try {
60
+ var nextValue = latestGetSnapshot();
61
+ return !objectIs(inst, nextValue);
62
+ } catch (error) {
63
+ return true;
64
+ }
65
+ }
66
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
67
+ return getSnapshot();
68
+ }
69
+ var shim =
70
+ "undefined" === typeof window ||
71
+ "undefined" === typeof window.document ||
72
+ "undefined" === typeof window.document.createElement
73
+ ? useSyncExternalStore$1
74
+ : useSyncExternalStore$2;
75
+ useSyncExternalStoreShim_production.useSyncExternalStore =
76
+ void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
77
+ return useSyncExternalStoreShim_production;
78
+ }
79
+
80
+ var useSyncExternalStoreShim_development = {};
81
+
82
+ /**
83
+ * @license React
84
+ * use-sync-external-store-shim.development.js
85
+ *
86
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
87
+ *
88
+ * This source code is licensed under the MIT license found in the
89
+ * LICENSE file in the root directory of this source tree.
90
+ */
91
+
92
+ var hasRequiredUseSyncExternalStoreShim_development;
93
+
94
+ function requireUseSyncExternalStoreShim_development () {
95
+ if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
96
+ hasRequiredUseSyncExternalStoreShim_development = 1;
97
+ "production" !== process.env.NODE_ENV &&
98
+ (function () {
99
+ function is(x, y) {
100
+ return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
101
+ }
102
+ function useSyncExternalStore$2(subscribe, getSnapshot) {
103
+ didWarnOld18Alpha ||
104
+ void 0 === React.startTransition ||
105
+ ((didWarnOld18Alpha = true),
106
+ console.error(
107
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
108
+ ));
109
+ var value = getSnapshot();
110
+ if (!didWarnUncachedGetSnapshot) {
111
+ var cachedValue = getSnapshot();
112
+ objectIs(value, cachedValue) ||
113
+ (console.error(
114
+ "The result of getSnapshot should be cached to avoid an infinite loop"
115
+ ),
116
+ (didWarnUncachedGetSnapshot = true));
117
+ }
118
+ cachedValue = useState({
119
+ inst: { value: value, getSnapshot: getSnapshot }
120
+ });
121
+ var inst = cachedValue[0].inst,
122
+ forceUpdate = cachedValue[1];
123
+ useLayoutEffect(
124
+ function () {
125
+ inst.value = value;
126
+ inst.getSnapshot = getSnapshot;
127
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
128
+ },
129
+ [subscribe, value, getSnapshot]
130
+ );
131
+ useEffect(
132
+ function () {
133
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
134
+ return subscribe(function () {
135
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
136
+ });
137
+ },
138
+ [subscribe]
139
+ );
140
+ useDebugValue(value);
141
+ return value;
142
+ }
143
+ function checkIfSnapshotChanged(inst) {
144
+ var latestGetSnapshot = inst.getSnapshot;
145
+ inst = inst.value;
146
+ try {
147
+ var nextValue = latestGetSnapshot();
148
+ return !objectIs(inst, nextValue);
149
+ } catch (error) {
150
+ return true;
151
+ }
152
+ }
153
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
154
+ return getSnapshot();
155
+ }
156
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
157
+ "function" ===
158
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
159
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
160
+ var React = React__default,
161
+ objectIs = "function" === typeof Object.is ? Object.is : is,
162
+ useState = React.useState,
163
+ useEffect = React.useEffect,
164
+ useLayoutEffect = React.useLayoutEffect,
165
+ useDebugValue = React.useDebugValue,
166
+ didWarnOld18Alpha = false,
167
+ didWarnUncachedGetSnapshot = false,
168
+ shim =
169
+ "undefined" === typeof window ||
170
+ "undefined" === typeof window.document ||
171
+ "undefined" === typeof window.document.createElement
172
+ ? useSyncExternalStore$1
173
+ : useSyncExternalStore$2;
174
+ useSyncExternalStoreShim_development.useSyncExternalStore =
175
+ void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
176
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
177
+ "function" ===
178
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
179
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
180
+ })();
181
+ return useSyncExternalStoreShim_development;
182
+ }
183
+
184
+ var hasRequiredShim;
185
+
186
+ function requireShim () {
187
+ if (hasRequiredShim) return shim.exports;
188
+ hasRequiredShim = 1;
189
+
190
+ if (process.env.NODE_ENV === 'production') {
191
+ shim.exports = requireUseSyncExternalStoreShim_production();
192
+ } else {
193
+ shim.exports = requireUseSyncExternalStoreShim_development();
194
+ }
195
+ return shim.exports;
196
+ }
197
+
198
+ export { requireShim as r };
199
+ //# sourceMappingURL=index14.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index14.js","sources":["../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n"],"names":["require$$0","shimModule","require$$1"],"mappings":";;;;;;;;;;;;;;;;;;;;;CAWA,IAAI,KAAK,GAAGA,cAAgB;AAC5B,CAAA,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;GAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1E,CAAA;AACA,CAAA,IAAI,QAAQ,GAAG,UAAU,KAAK,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE;AAC/D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,CAAC;AACxE,GAAA,CAAG,GAAG;;;;;;;;;;AC5FN,CAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;GACzCC,IAAA,CAAA,OAAc,GAAGD,0CAAA,EAA4D;AAC/E,CAAA,CAAC,MAAM;GACLC,IAAA,CAAA,OAAc,GAAGC,2CAAA,EAA6D;AAChF,CAAA;;;;;;","x_google_ignoreList":[0,1,2]}
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { alertVariants } from '../../../shadcn/shadcnAlert';
3
+ export interface AlertProps extends Omit<React.ComponentProps<'div'>, 'title'>, VariantProps<typeof alertVariants> {
4
+ title?: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ icon?: React.ReactNode;
7
+ hideIcon?: boolean;
8
+ }
9
+ export declare function Alert({ variant, title, description, icon, hideIcon, children, className, ...props }: AlertProps): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=Alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../lib/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IAEhH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAUD,wBAAgB,KAAK,CAAC,EACpB,OAAmB,EACnB,KAAK,EACL,WAAW,EACX,IAAI,EACJ,QAAgB,EAChB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,UAAU,2CAWZ"}
@@ -0,0 +1,2 @@
1
+ export { Alert, type AlertProps } from './Alert';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -11,7 +11,7 @@ export interface FormProps<TFieldValues extends FieldValues = FieldValues, TCont
11
11
  rootErrorPosition?: 'top' | 'bottom';
12
12
  rootErrorClassName?: string;
13
13
  fieldMapping?: FieldMapping;
14
- mutation?: UseMutationResult<TMutationData, TMutationError, TMutationVariables, unknown>;
14
+ mutation: UseMutationResult<TMutationData, TMutationError, TMutationVariables, unknown>;
15
15
  transformSubmit?: (data: TTransformedValues extends undefined ? TFieldValues : TTransformedValues) => TMutationVariables;
16
16
  }
17
17
  export declare function Form<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = TFieldValues, TMutationData = unknown, TMutationError = Error, TMutationVariables = any>({ form, onSubmit, children, showRootError, rootErrorPosition, rootErrorClassName, fieldMapping, mutation, transformSubmit, ...props }: FormProps<TFieldValues, TContext, TTransformedValues, TMutationData, TMutationError, TMutationVariables>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../lib/components/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,KAAK,WAAW,EAEhB,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAMhF,OAA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IAKrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAM5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAS5B,QAAQ,EAAE,iBAAiB,CAAC,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAMxF,eAAe,CAAC,EAAE,CAChB,IAAI,EAAE,kBAAkB,SAAS,SAAS,GAAG,YAAY,GAAG,kBAAkB,KAC3E,kBAAkB,CAAC;CACzB;AAgCD,wBAAgB,IAAI,CAClB,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EACd,kBAAkB,SAAS,WAAW,GAAG,SAAS,GAAG,YAAY,EACjE,aAAa,GAAG,OAAO,EACvB,cAAc,GAAG,KAAK,EACtB,kBAAkB,GAAG,GAAG,EACxB,EACA,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,aAAoB,EACpB,iBAA4B,EAC5B,kBAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,eAAe,EACf,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,YAAY,EAAE,QAAQ,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,CAAC,2CA+D1G;yBAjFe,IAAI"}
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ export interface SelectOption {
3
+ value: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ }
7
+ export interface SelectFieldProps {
8
+ label?: string;
9
+ description?: React.ReactNode;
10
+ error?: string;
11
+ placeholder?: string;
12
+ options: SelectOption[];
13
+ value?: string;
14
+ onChange?: (value: string) => void;
15
+ onBlur?: () => void;
16
+ name?: string;
17
+ disabled?: boolean;
18
+ required?: boolean;
19
+ className?: string;
20
+ id?: string;
21
+ defaultValue?: string;
22
+ }
23
+ export declare const SelectField: React.ForwardRefExoticComponent<SelectFieldProps & React.RefAttributes<HTMLButtonElement>>;
24
+ //# sourceMappingURL=SelectField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../lib/components/SelectField/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,YAAY;IAI3B,KAAK,EAAE,MAAM,CAAC;IAKd,KAAK,EAAE,MAAM,CAAC;IAKd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAKD,MAAM,WAAW,gBAAgB;IAI/B,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAK9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,OAAO,EAAE,YAAY,EAAE,CAAC;IAKxB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAKnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,EAAE,CAAC,EAAE,MAAM,CAAC;IAKZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAwBD,eAAO,MAAM,WAAW,4FAwDvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { SelectField } from './SelectField';
2
+ export type { SelectFieldProps, SelectOption } from './SelectField';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/SelectField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './Alert';
1
2
  export * from './Avatar';
2
3
  export * from './Badge';
3
4
  export * from './Button';
@@ -12,6 +13,7 @@ export * from './OTPField';
12
13
  export * from './PasswordField';
13
14
  export * from './PhoneField';
14
15
  export * from './Progress';
16
+ export * from './SelectField';
15
17
  export * from './Separator';
16
18
  export * from './Skeleton';
17
19
  export * from './Sonner';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
@@ -3,12 +3,16 @@ export interface FieldMapping {
3
3
  [apiField: string]: string;
4
4
  }
5
5
  export interface FieldError {
6
- field?: string;
6
+ field: string;
7
7
  message: string;
8
8
  }
9
9
  export interface ApiErrorResponse {
10
- message?: string;
11
- error?: string;
10
+ type?: string;
11
+ title?: string;
12
+ status?: number;
13
+ label?: string;
14
+ detail?: string;
15
+ instance?: string;
12
16
  errors?: FieldError[];
13
17
  }
14
18
  export interface MapApiErrorsOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"formHelpers.d.ts","sourceRoot":"","sources":["../../../lib/utils/formHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAK7E,MAAM,WAAW,YAAY;IAC3B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAcD,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACvB;AAKD,MAAM,WAAW,mBAAmB;IAIlC,YAAY,CAAC,EAAE,YAAY,CAAC;IAK5B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAuBD,wBAAgB,kBAAkB,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,EAC/E,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,EACjC,OAAO,GAAE,mBAAwB,GAChC,IAAI,CAoDN"}
1
+ {"version":3,"file":"formHelpers.d.ts","sourceRoot":"","sources":["../../../lib/utils/formHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAK7E,MAAM,WAAW,YAAY;IAC3B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAcD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACvB;AAKD,MAAM,WAAW,mBAAmB;IAIlC,YAAY,CAAC,EAAE,YAAY,CAAC;IAK5B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AA2BD,wBAAgB,kBAAkB,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,EAC/E,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,EACjC,OAAO,GAAE,mBAAwB,GAChC,IAAI,CAyCN"}
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import type * as React from 'react';
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "warning" | "success" | "info" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function AlertAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ export { Alert, AlertTitle, AlertDescription, AlertAction, alertVariants };
11
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../shadcn/shadcnAlert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,aAAa;;8EAmBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,2CAEhH;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW7E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAExE;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Alert, AlertDescription, AlertTitle, alertVariants } from './alert';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../shadcn/shadcnAlert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import type * as React from 'react';
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends React.ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
7
7
  asChild?: boolean;
@@ -1,8 +1,8 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import type * as React from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
5
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
@@ -0,0 +1,40 @@
1
+ import { c as createLucideIcon } from './createLucideIcon.js';
2
+
3
+ /**
4
+ * @license lucide-react v0.562.0 - ISC
5
+ *
6
+ * This source code is licensed under the ISC license.
7
+ * See the LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+
11
+ const __iconNode$1 = [
12
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
13
+ ["path", { d: "M12 16v-4", key: "1dtifu" }],
14
+ ["path", { d: "M12 8h.01", key: "e9boi3" }]
15
+ ];
16
+ const Info = createLucideIcon("info", __iconNode$1);
17
+
18
+ /**
19
+ * @license lucide-react v0.562.0 - ISC
20
+ *
21
+ * This source code is licensed under the ISC license.
22
+ * See the LICENSE file in the root directory of this source tree.
23
+ */
24
+
25
+
26
+ const __iconNode = [
27
+ [
28
+ "path",
29
+ {
30
+ d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
31
+ key: "wmoenq"
32
+ }
33
+ ],
34
+ ["path", { d: "M12 9v4", key: "juzpu7" }],
35
+ ["path", { d: "M12 17h.01", key: "p32p05" }]
36
+ ];
37
+ const TriangleAlert = createLucideIcon("triangle-alert", __iconNode);
38
+
39
+ export { Info as I, TriangleAlert as T };
40
+ //# sourceMappingURL=triangle-alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triangle-alert.js","sources":["../node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/info.js","../node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/triangle-alert.js"],"sourcesContent":["/**\n * @license lucide-react v0.562.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 createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 16v-4\", key: \"1dtifu\" }],\n [\"path\", { d: \"M12 8h.01\", key: \"e9boi3\" }]\n];\nconst Info = createLucideIcon(\"info\", __iconNode);\n\nexport { __iconNode, Info as default };\n//# sourceMappingURL=info.js.map\n","/**\n * @license lucide-react v0.562.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 createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\",\n key: \"wmoenq\"\n }\n ],\n [\"path\", { d: \"M12 9v4\", key: \"juzpu7\" }],\n [\"path\", { d: \"M12 17h.01\", key: \"p32p05\" }]\n];\nconst TriangleAlert = createLucideIcon(\"triangle-alert\", __iconNode);\n\nexport { __iconNode, TriangleAlert as default };\n//# sourceMappingURL=triangle-alert.js.map\n"],"names":["__iconNode"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAMA,YAAU,GAAG;AACnB,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC5D,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC7C,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE;AAC5C,CAAC;AACI,MAAC,IAAI,GAAG,gBAAgB,CAAC,MAAM,EAAEA,YAAU;;ACdhD;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE;AACF,IAAI,MAAM;AACV,IAAI;AACJ,MAAM,CAAC,EAAE,0EAA0E;AACnF,MAAM,GAAG,EAAE;AACX;AACA,GAAG;AACH,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC3C,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE;AAC7C,CAAC;AACI,MAAC,aAAa,GAAG,gBAAgB,CAAC,gBAAgB,EAAE,UAAU;;;;","x_google_ignoreList":[0,1]}
package/package.json CHANGED
@@ -5,16 +5,16 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.8",
8
+ "version": "0.2.9",
9
9
  "type": "module",
10
10
  "sideEffects": false,
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/vritti-hub/quantum-ui.git"
13
+ "url": "git+https://github.com/vritti-ai-platforms/quantum-ui.git"
14
14
  },
15
- "homepage": "https://vritti-hub.github.io/quantum-ui",
15
+ "homepage": "https://vritti-ai-platforms.github.io/quantum-ui",
16
16
  "bugs": {
17
- "url": "https://github.com/vritti-hub/quantum-ui/issues"
17
+ "url": "https://github.com/vritti-ai-platforms/quantum-ui/issues"
18
18
  },
19
19
  "keywords": [
20
20
  "react",
@@ -36,6 +36,10 @@
36
36
  "types": "./dist/lib/index.d.ts",
37
37
  "import": "./dist/index.js"
38
38
  },
39
+ "./Alert": {
40
+ "types": "./dist/lib/components/Alert/index.d.ts",
41
+ "import": "./dist/components/Alert.js"
42
+ },
39
43
  "./Avatar": {
40
44
  "types": "./dist/lib/components/Avatar/index.d.ts",
41
45
  "import": "./dist/components/Avatar.js"
@@ -84,6 +88,10 @@
84
88
  "types": "./dist/lib/components/Progress/index.d.ts",
85
89
  "import": "./dist/components/Progress.js"
86
90
  },
91
+ "./SelectField": {
92
+ "types": "./dist/lib/components/SelectField/index.d.ts",
93
+ "import": "./dist/components/SelectField.js"
94
+ },
87
95
  "./OTPField": {
88
96
  "types": "./dist/lib/components/OTPField/index.d.ts",
89
97
  "import": "./dist/components/OTPField.js"
@@ -171,7 +179,7 @@
171
179
  "@storybook/react": "10.2.0",
172
180
  "@storybook/react-vite": "10.2.0",
173
181
  "@tailwindcss/postcss": "^4.1.18",
174
- "@tanstack/react-query": "^5.90.19",
182
+ "@tanstack/react-query": "^5.90.20",
175
183
  "@types/node": "^25.0.9",
176
184
  "@types/react": "^19.2.9",
177
185
  "@types/react-dom": "^19.2.3",
@@ -219,7 +227,8 @@
219
227
  },
220
228
  "scripts": {
221
229
  "dev": "vite",
222
- "build": "vite build",
230
+ "build": "tsc --project tsconfig.lib.json --noEmit && vite build",
231
+ "typecheck": "tsc --project tsconfig.lib.json --noEmit",
223
232
  "build:js": "vite build",
224
233
  "build:types": "tsc --project tsconfig.lib.json --emitDeclarationOnly",
225
234
  "build:watch": "npm run build:types && vite build --watch",