@vritti/quantum-ui 0.3.5 → 0.3.7

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 (114) hide show
  1. package/dist/Avatar.js +5 -5
  2. package/dist/Checkbox2.js +2 -2
  3. package/dist/Combination.js +1 -1
  4. package/dist/ConfirmContext.js +20 -1
  5. package/dist/ConfirmContext.js.map +1 -1
  6. package/dist/Dialog.js +24 -38
  7. package/dist/Dialog.js.map +1 -1
  8. package/dist/DropdownMenu.js +1 -0
  9. package/dist/DropdownMenu.js.map +1 -1
  10. package/dist/Progress.js +2 -2
  11. package/dist/RadioGroup.js +2 -2
  12. package/dist/Sidebar.js +1 -1
  13. package/dist/Switch.js +19 -16
  14. package/dist/Switch.js.map +1 -1
  15. package/dist/TabsSkeleton.js +1 -1
  16. package/dist/TextField.js +64 -45
  17. package/dist/TextField.js.map +1 -1
  18. package/dist/Toggle.js +1 -1
  19. package/dist/ViewTabs.js +1 -2
  20. package/dist/ViewTabs.js.map +1 -1
  21. package/dist/assets/quantum-ui.css +13 -16
  22. package/dist/cells.js +50 -21
  23. package/dist/cells.js.map +1 -1
  24. package/dist/components/Dialog.js +1 -1
  25. package/dist/components/RichTextEditor.js +1 -1
  26. package/dist/dropdown-menu.js +3 -2
  27. package/dist/dropdown-menu.js.map +1 -1
  28. package/dist/image-component.js +1 -1
  29. package/dist/index.js +2 -3
  30. package/dist/index.js.map +1 -1
  31. package/dist/index12.js +3 -2
  32. package/dist/index12.js.map +1 -1
  33. package/dist/index13.js +2 -1
  34. package/dist/index13.js.map +1 -1
  35. package/dist/index14.js +6 -5
  36. package/dist/index14.js.map +1 -1
  37. package/dist/index15.js +1 -1
  38. package/dist/index16.js +1 -1
  39. package/dist/index18.js +1 -1
  40. package/dist/index20.js +1 -1
  41. package/dist/index21.js +1 -1
  42. package/dist/index23.js +1 -1
  43. package/dist/index25.js +3 -2534
  44. package/dist/index25.js.map +1 -1
  45. package/dist/index26.js +2526 -22
  46. package/dist/index26.js.map +1 -1
  47. package/dist/index27.js +32 -4
  48. package/dist/index27.js.map +1 -1
  49. package/dist/index28.js +4 -37
  50. package/dist/index28.js.map +1 -1
  51. package/dist/index29.js +36 -310
  52. package/dist/index29.js.map +1 -1
  53. package/dist/index30.js +309 -7
  54. package/dist/index30.js.map +1 -1
  55. package/dist/index31.js +8 -30
  56. package/dist/index31.js.map +1 -1
  57. package/dist/index32.js +29 -59
  58. package/dist/index32.js.map +1 -1
  59. package/dist/index33.js +59 -10
  60. package/dist/index33.js.map +1 -1
  61. package/dist/index34.js +10 -35
  62. package/dist/index34.js.map +1 -1
  63. package/dist/index35.js +27 -36810
  64. package/dist/index35.js.map +1 -1
  65. package/dist/index36.js +36809 -70
  66. package/dist/index36.js.map +1 -1
  67. package/dist/index37.js +72 -187
  68. package/dist/index37.js.map +1 -1
  69. package/dist/index38.js +199 -0
  70. package/dist/index38.js.map +1 -0
  71. package/dist/index4.js +1 -1
  72. package/dist/lib/components/DataTable/components/DataTableImportDialog.d.ts.map +1 -1
  73. package/dist/lib/components/DataTable/components/DataTableViewTabs.d.ts.map +1 -1
  74. package/dist/lib/components/DataTable/components/DataTableViewsMenu.d.ts.map +1 -1
  75. package/dist/lib/components/DataTable/components/RowActions.d.ts.map +1 -1
  76. package/dist/lib/components/Dialog/Dialog.d.ts +15 -16
  77. package/dist/lib/components/Dialog/Dialog.d.ts.map +1 -1
  78. package/dist/lib/components/Dialog/index.d.ts +2 -2
  79. package/dist/lib/components/Dialog/index.d.ts.map +1 -1
  80. package/dist/lib/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  81. package/dist/lib/components/DropdownMenu/types.d.ts +2 -1
  82. package/dist/lib/components/DropdownMenu/types.d.ts.map +1 -1
  83. package/dist/lib/components/Switch/Switch.d.ts.map +1 -1
  84. package/dist/lib/components/TextField/TextField.d.ts.map +1 -1
  85. package/dist/lib/context/ConfirmContext.d.ts.map +1 -1
  86. package/dist/lib/selects/index.d.ts +0 -1
  87. package/dist/lib/selects/index.d.ts.map +1 -1
  88. package/dist/lib/selects/tax-group/TaxGroupFilter.d.ts +12 -0
  89. package/dist/lib/selects/tax-group/TaxGroupFilter.d.ts.map +1 -0
  90. package/dist/lib/selects/tax-group/TaxGroupSelector.d.ts +4 -0
  91. package/dist/lib/selects/tax-group/TaxGroupSelector.d.ts.map +1 -0
  92. package/dist/lib/selects/tax-group/index.d.ts +3 -0
  93. package/dist/lib/selects/tax-group/index.d.ts.map +1 -0
  94. package/dist/selects/tax-group.js +37 -0
  95. package/dist/selects/tax-group.js.map +1 -0
  96. package/dist/shadcn/shadcnSwitch/Switch.d.ts +1 -1
  97. package/dist/shadcn/shadcnSwitch/Switch.d.ts.map +1 -1
  98. package/dist/trash-2.js +17 -3
  99. package/dist/trash-2.js.map +1 -1
  100. package/dist/utils/motion.js +2 -2
  101. package/dist/value.js +1 -1
  102. package/package.json +5 -5
  103. package/dist/BomSelector.js +0 -37
  104. package/dist/BomSelector.js.map +0 -1
  105. package/dist/lib/selects/bom/BomFilter.d.ts +0 -12
  106. package/dist/lib/selects/bom/BomFilter.d.ts.map +0 -1
  107. package/dist/lib/selects/bom/BomSelector.d.ts +0 -4
  108. package/dist/lib/selects/bom/BomSelector.d.ts.map +0 -1
  109. package/dist/lib/selects/bom/index.d.ts +0 -3
  110. package/dist/lib/selects/bom/index.d.ts.map +0 -1
  111. package/dist/plus.js +0 -18
  112. package/dist/plus.js.map +0 -1
  113. package/dist/selects/bom.js +0 -2
  114. package/dist/selects/bom.js.map +0 -1
package/dist/index37.js CHANGED
@@ -1,199 +1,84 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { createContext, useRef, useState, useCallback, useContext, useMemo } from 'react';
3
+ import { u as useIsomorphicLayoutEffect, f as frame, L as LayoutGroupContext } from './proxy.js';
2
4
 
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;
5
+ const notify = (node) => !node.isLayoutDirty && node.willUpdate(false);
6
+ function nodeGroup() {
7
+ const nodes = new Set();
8
+ const subscriptions = new WeakMap();
9
+ const dirtyAll = () => nodes.forEach(notify);
10
+ return {
11
+ add: (node) => {
12
+ nodes.add(node);
13
+ subscriptions.set(node, node.addEventListener("willUpdate", dirtyAll));
14
+ },
15
+ remove: (node) => {
16
+ nodes.delete(node);
17
+ const unsubscribe = subscriptions.get(node);
18
+ if (unsubscribe) {
19
+ unsubscribe();
20
+ subscriptions.delete(node);
21
+ }
22
+ dirtyAll();
23
+ },
24
+ dirty: dirtyAll,
25
+ };
78
26
  }
79
27
 
80
- var useSyncExternalStoreShim_development = {};
81
-
82
28
  /**
83
- * @license React
84
- * use-sync-external-store-shim.development.js
29
+ * Note: Still used by components generated by old versions of Framer
85
30
  *
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.
31
+ * @deprecated
90
32
  */
33
+ const DeprecatedLayoutGroupContext = createContext(null);
91
34
 
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;
35
+ function useIsMounted() {
36
+ const isMounted = useRef(false);
37
+ useIsomorphicLayoutEffect(() => {
38
+ isMounted.current = true;
39
+ return () => {
40
+ isMounted.current = false;
41
+ };
42
+ }, []);
43
+ return isMounted;
182
44
  }
183
45
 
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;
46
+ function useForceUpdate() {
47
+ const isMounted = useIsMounted();
48
+ const [forcedRenderCount, setForcedRenderCount] = useState(0);
49
+ const forceRender = useCallback(() => {
50
+ isMounted.current && setForcedRenderCount(forcedRenderCount + 1);
51
+ }, [forcedRenderCount]);
52
+ /**
53
+ * Defer this to the end of the next animation frame in case there are multiple
54
+ * synchronous calls.
55
+ */
56
+ const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);
57
+ return [deferredForceRender, forcedRenderCount];
196
58
  }
197
59
 
198
- export { requireShim as r };
60
+ const shouldInheritGroup = (inherit) => inherit === true;
61
+ const shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === "id";
62
+ const LayoutGroup = ({ children, id, inherit = true }) => {
63
+ const layoutGroupContext = useContext(LayoutGroupContext);
64
+ const deprecatedLayoutGroupContext = useContext(DeprecatedLayoutGroupContext);
65
+ const [forceRender, key] = useForceUpdate();
66
+ const context = useRef(null);
67
+ const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;
68
+ if (context.current === null) {
69
+ if (shouldInheritId(inherit) && upstreamId) {
70
+ id = id ? upstreamId + "-" + id : upstreamId;
71
+ }
72
+ context.current = {
73
+ id,
74
+ group: shouldInheritGroup(inherit)
75
+ ? layoutGroupContext.group || nodeGroup()
76
+ : nodeGroup(),
77
+ };
78
+ }
79
+ const memoizedContext = useMemo(() => ({ ...context.current, forceRender }), [key]);
80
+ return (jsx(LayoutGroupContext.Provider, { value: memoizedContext, children: children }));
81
+ };
82
+
83
+ export { DeprecatedLayoutGroupContext as D, LayoutGroup as L, nodeGroup as n, useForceUpdate as u };
199
84
  //# sourceMappingURL=index37.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index37.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,GAAE,QAAQ,GAAG,KAAK,CAAC,QAAQ;AAC3B,GAAE,SAAS,GAAG,KAAK,CAAC,SAAS;AAC7B,GAAE,eAAe,GAAG,KAAK,CAAC,eAAe;AACzC,GAAE,aAAa,GAAG,KAAK,CAAC,aAAa;AACrC,CAAA,SAAS,sBAAsB,CAAC,SAAS,EAAE,WAAW,EAAE;AACxD,GAAE,IAAI,KAAK,GAAG,WAAW,EAAE;AAC3B,KAAI,SAAS,GAAG,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,CAAC;AAC9E,KAAI,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;AAC5B,KAAI,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC;AAC9B,GAAE,eAAe;AACjB,KAAI,YAAY;AAChB,OAAM,IAAI,CAAC,KAAK,GAAG,KAAK;AACxB,OAAM,IAAI,CAAC,WAAW,GAAG,WAAW;AACpC,OAAM,sBAAsB,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G,KAAK,CAAC,SAAS;AACjC,OAAM,eAAe,GAAG,KAAK,CAAC,eAAe;AAC7C,OAAM,aAAa,GAAG,KAAK,CAAC,aAAa;OACnC,iBAAiB,GAAG,KAAE;OACtB,0BAA0B,GAAG,KAAE;AACrC,OAAM,IAAI;SACF,WAAW,KAAK,OAAO,MAAM;AACrC,SAAQ,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ;AAC9C,SAAQ,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ,CAAC;aACnC;AACZ,aAAY,sBAAsB;AAClC,KAAI,oCAAA,CAAA,oBAA4B;OAC1B,MAAM,KAAK,KAAK,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,GAAG,IAAI;KAC3E,WAAW,KAAK,OAAO,8BAA8B;AACzD,OAAM,UAAU;SACR,OAAO,8BAA8B,CAAC,0BAA0B;AACxE,OAAM,8BAA8B,CAAC,0BAA0B,CAAC,KAAK,EAAE,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]}
1
+ {"version":3,"file":"index37.js","sources":["../node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/group.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-force-update.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs"],"sourcesContent":["const notify = (node) => !node.isLayoutDirty && node.willUpdate(false);\nfunction nodeGroup() {\n const nodes = new Set();\n const subscriptions = new WeakMap();\n const dirtyAll = () => nodes.forEach(notify);\n return {\n add: (node) => {\n nodes.add(node);\n subscriptions.set(node, node.addEventListener(\"willUpdate\", dirtyAll));\n },\n remove: (node) => {\n nodes.delete(node);\n const unsubscribe = subscriptions.get(node);\n if (unsubscribe) {\n unsubscribe();\n subscriptions.delete(node);\n }\n dirtyAll();\n },\n dirty: dirtyAll,\n };\n}\n\nexport { nodeGroup };\n//# sourceMappingURL=group.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\n/**\n * Note: Still used by components generated by old versions of Framer\n *\n * @deprecated\n */\nconst DeprecatedLayoutGroupContext = createContext(null);\n\nexport { DeprecatedLayoutGroupContext };\n//# sourceMappingURL=DeprecatedLayoutGroupContext.mjs.map\n","\"use client\";\nimport { useRef } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';\n\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return isMounted;\n}\n\nexport { useIsMounted };\n//# sourceMappingURL=use-is-mounted.mjs.map\n","\"use client\";\nimport { frame } from 'motion-dom';\nimport { useState, useCallback } from 'react';\nimport { useIsMounted } from './use-is-mounted.mjs';\n\nfunction useForceUpdate() {\n const isMounted = useIsMounted();\n const [forcedRenderCount, setForcedRenderCount] = useState(0);\n const forceRender = useCallback(() => {\n isMounted.current && setForcedRenderCount(forcedRenderCount + 1);\n }, [forcedRenderCount]);\n /**\n * Defer this to the end of the next animation frame in case there are multiple\n * synchronous calls.\n */\n const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);\n return [deferredForceRender, forcedRenderCount];\n}\n\nexport { useForceUpdate };\n//# sourceMappingURL=use-force-update.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { useContext, useRef, useMemo } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { DeprecatedLayoutGroupContext } from '../../context/DeprecatedLayoutGroupContext.mjs';\nimport { useForceUpdate } from '../../utils/use-force-update.mjs';\nimport { nodeGroup } from 'motion-dom';\n\nconst shouldInheritGroup = (inherit) => inherit === true;\nconst shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === \"id\";\nconst LayoutGroup = ({ children, id, inherit = true }) => {\n const layoutGroupContext = useContext(LayoutGroupContext);\n const deprecatedLayoutGroupContext = useContext(DeprecatedLayoutGroupContext);\n const [forceRender, key] = useForceUpdate();\n const context = useRef(null);\n const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;\n if (context.current === null) {\n if (shouldInheritId(inherit) && upstreamId) {\n id = id ? upstreamId + \"-\" + id : upstreamId;\n }\n context.current = {\n id,\n group: shouldInheritGroup(inherit)\n ? layoutGroupContext.group || nodeGroup()\n : nodeGroup(),\n };\n }\n const memoizedContext = useMemo(() => ({ ...context.current, forceRender }), [key]);\n return (jsx(LayoutGroupContext.Provider, { value: memoizedContext, children: children }));\n};\n\nexport { LayoutGroup };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;AAAA,MAAM,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACtE,SAAS,SAAS,GAAG;AACrB,IAAI,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE;AAC3B,IAAI,MAAM,aAAa,GAAG,IAAI,OAAO,EAAE;AACvC,IAAI,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;AAChD,IAAI,OAAO;AACX,QAAQ,GAAG,EAA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eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACvF,IAAI,QAAQ,GAAG,CAAC,kBAAkB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AAC5F;;;;","x_google_ignoreList":[0,1,2,3,4]}
@@ -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=index38.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index38.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,GAAE,QAAQ,GAAG,KAAK,CAAC,QAAQ;AAC3B,GAAE,SAAS,GAAG,KAAK,CAAC,SAAS;AAC7B,GAAE,eAAe,GAAG,KAAK,CAAC,eAAe;AACzC,GAAE,aAAa,GAAG,KAAK,CAAC,aAAa;AACrC,CAAA,SAAS,sBAAsB,CAAC,SAAS,EAAE,WAAW,EAAE;AACxD,GAAE,IAAI,KAAK,GAAG,WAAW,EAAE;AAC3B,KAAI,SAAS,GAAG,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,CA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AACzE,OAAM,8BAA8B,CAAC,2BAA2B,CAAC,KAAK,EAAE,CAAC;KACrE,IAAI,KAAK,GAAGA,cAAgB;AAChC,OAAM,QAAQ,GAAG,UAAU,KAAK,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE;AACjE,OAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ;AAC/B,OAAM,SAAS,GAAG,KAAK,CAAC,SAAS;AACjC,OAAM,eAAe,GAAG,KAAK,CAAC,eAAe;AAC7C,OAAM,aAAa,GAAG,KAAK,CAAC,aAAa;OACnC,iBAAiB,GAAG,KAAE;OACtB,0BAA0B,GAAG,KAAE;AACrC,OAAM,IAAI;SACF,WAAW,KAAK,OAAO,MAAM;AACrC,SAAQ,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ;AAC9C,SAAQ,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ,CAAC;aACnC;AACZ,aAAY,sBAAsB;AAClC,KAAI,oCAAA,CAAA,oBAA4B;OAC1B,MAAM,KAAK,KAAK,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,GAAG,IAAI;KAC3E,WAAW,KAAK,OAAO,8BAA8B;AACzD,OAAM,UAAU;SACR,OAAO,8BAA8B,CAAC,0BAA0B;AACxE,OAAM,8BAA8B,CAAC,0BAA0B,CAAC,KAAK,EAAE,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]}
package/dist/index4.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { u as useControllableState, P as Primitive, c as composeEventHandlers } from './index18.js';
3
3
  import { c as createContextScope } from './index19.js';
4
- import { u as useLayoutEffect2 } from './index27.js';
4
+ import { u as useLayoutEffect2 } from './index28.js';
5
5
  import { u as useComposedRefs } from './index11.js';
6
6
  import { P as Presence } from './index21.js';
7
7
  import { u as useId } from './index23.js';
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableImportDialog.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/DataTableImportDialog.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQ7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAqBnD,UAAU,0BAA0B;IAClC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AA0ND,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,EACP,UAAU,EACV,cAAc,EACd,QAAQ,EACR,SAAS,GACV,EAAE,0BAA0B,2CAoE5B;yBA3Ee,qBAAqB"}
1
+ {"version":3,"file":"DataTableImportDialog.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/DataTableImportDialog.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQ7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAqBnD,UAAU,0BAA0B;IAClC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AA0ND,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,EACP,UAAU,EACV,cAAc,EACd,QAAQ,EACR,SAAS,GACV,EAAE,0BAA0B,2CAqE5B;yBA5Ee,qBAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableViewTabs.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/DataTableViewTabs.tsx"],"names":[],"mappings":"AAaA,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,kDAyI3D;yBAzIe,iBAAiB"}
1
+ {"version":3,"file":"DataTableViewTabs.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/DataTableViewTabs.tsx"],"names":[],"mappings":"AAcA,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,kDA0I3D;yBA1Ie,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableViewsMenu.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/DataTableViewsMenu.tsx"],"names":[],"mappings":"AAkCA,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAKD,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,oBAAoB,2CA8ClF;AAuJD,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CA4HvE;yBA5He,kBAAkB"}
1
+ {"version":3,"file":"DataTableViewsMenu.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/DataTableViewsMenu.tsx"],"names":[],"mappings":"AAmCA,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAKD,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,oBAAoB,2CA0DlF;AAoKD,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CA4HvE;yBA5He,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"RowActions.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/RowActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;KACjD,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA0ED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmChD,CAAC"}
1
+ {"version":3,"file":"RowActions.d.ts","sourceRoot":"","sources":["../../../../../lib/components/DataTable/components/RowActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;KACjD,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA4ED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmChD,CAAC"}
@@ -1,30 +1,29 @@
1
- import { UseMutationResult } from '@tanstack/react-query';
1
+ import { LucideIcon } from 'lucide-react';
2
2
  import { default as React } from 'react';
3
- import { FieldValues, UseFormReturn } from 'react-hook-form';
4
3
  import { DialogHandle } from '../../hooks/useDialog';
5
- import { FieldMapping } from '../../utils/formHelpers';
6
- import { FormProps } from '../Form';
7
- export interface DialogProps<TFieldValues extends FieldValues = FieldValues, TContext = unknown, TTransformedValues extends FieldValues | undefined = TFieldValues, TMutationData = unknown, TMutationError = Error, TMutationVariables = unknown> {
4
+ export interface DialogActionsProps {
5
+ children: React.ReactNode;
6
+ className?: string;
7
+ }
8
+ export declare function DialogActions({ children, className }: DialogActionsProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare namespace DialogActions {
10
+ var displayName: string;
11
+ }
12
+ export interface DialogProps {
8
13
  handle: DialogHandle;
9
14
  anchor?: (open: () => void) => React.ReactNode;
10
15
  content?: (close: () => void) => React.ReactNode;
11
16
  trigger?: React.ReactNode;
12
- title?: React.ReactNode;
13
- description?: React.ReactNode;
17
+ icon: LucideIcon;
18
+ iconVariant?: 'default' | 'destructive';
19
+ title: React.ReactNode;
20
+ description: React.ReactNode;
14
21
  badgeSlot?: React.ReactNode;
15
22
  children?: React.ReactNode;
16
23
  footer?: React.ReactNode;
17
24
  className?: string;
18
- mode?: 'default' | 'form';
19
- form?: UseFormReturn<TFieldValues, TContext, TTransformedValues>;
20
- mutation?: UseMutationResult<TMutationData, TMutationError, TMutationVariables, unknown>;
21
- onFormSubmit?: FormProps<TFieldValues, TContext, TTransformedValues>['onSubmit'];
22
- transformSubmit?: FormProps<TFieldValues, TContext, TTransformedValues, TMutationData, TMutationError, TMutationVariables>['transformSubmit'];
23
- submitLabel?: string;
24
- cancelLabel?: string;
25
- fieldMapping?: FieldMapping;
26
25
  }
27
- export declare function Dialog<TFieldValues extends FieldValues = FieldValues, TContext = unknown, TTransformedValues extends FieldValues | undefined = TFieldValues, TMutationData = unknown, TMutationError = Error, TMutationVariables = unknown>({ handle, anchor, content, trigger, title, description, badgeSlot, children, footer, className, mode, form, mutation, onFormSubmit, transformSubmit, submitLabel, cancelLabel, fieldMapping, }: DialogProps<TFieldValues, TContext, TTransformedValues, TMutationData, TMutationError, TMutationVariables>): import("react/jsx-runtime").JSX.Element;
26
+ export declare function Dialog({ handle, anchor, content, trigger, icon: Icon, iconVariant, title, description, badgeSlot, children, footer, className, }: DialogProps): import("react/jsx-runtime").JSX.Element;
28
27
  export declare namespace Dialog {
29
28
  var displayName: string;
30
29
  }
@@ -1 +1 @@
1
- {"version":3,"file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AO,CAAC;AAW/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAMxE;yBANe,aAAa;;;AAU7B,MAAM,WAAW,WAAW;IAE1B,MAAM,EAAE,YAAY,CAAC;IAErB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAE/C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAEjD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,IAAI,EAAE,UAAU,CAAC;IAEjB,WAAW,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACxC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAG7B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,EACP,IAAI,EAAE,IAAI,EACV,WAAuB,EACvB,KAAK,EACL,WAAW,EACX,SAAS,EACT,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE,WAAW,2CAsCb;yBAnDe,MAAM"}
@@ -1,3 +1,3 @@
1
- export type { DialogProps } from './Dialog';
2
- export { Dialog } from './Dialog';
1
+ export type { DialogActionsProps, DialogProps } from './Dialog';
2
+ export { Dialog, DialogActions } from './Dialog';
3
3
  //# sourceMappingURL=index.d.ts.map