@vritti/quantum-ui 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar.js +5 -5
- package/dist/Checkbox2.js +2 -2
- package/dist/ConfirmHost.js +109 -0
- package/dist/ConfirmHost.js.map +1 -0
- package/dist/Dialog.js +82 -64
- package/dist/Dialog.js.map +1 -1
- package/dist/DropdownMenu.js +2 -2
- package/dist/DropdownMenu.js.map +1 -1
- package/dist/Form.js +50 -26
- package/dist/Form.js.map +1 -1
- package/dist/Progress.js +2 -2
- package/dist/RadioGroup.js +2 -2
- package/dist/Sidebar.js +1 -1
- package/dist/Switch.js +2 -2
- package/dist/TabsSkeleton.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/ViewTabs.js +1 -2
- package/dist/ViewTabs.js.map +1 -1
- package/dist/assets/quantum-ui.css +43 -5
- package/dist/cells.js +96 -64
- package/dist/cells.js.map +1 -1
- package/dist/components/ConfirmHost.js +2 -0
- package/dist/components/ConfirmHost.js.map +1 -0
- package/dist/components/Dialog.js +1 -1
- package/dist/components/RichTextEditor.js +1 -1
- package/dist/context/index.js +0 -1
- package/dist/context/index.js.map +1 -1
- package/dist/dropdown-menu.js +4 -3
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/image-component.js +1 -1
- package/dist/index.js +3 -3
- package/dist/index12.js +3 -2
- package/dist/index12.js.map +1 -1
- package/dist/index13.js +3 -2
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +7 -6
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.js +1 -1
- package/dist/index18.js +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.js +1 -1
- package/dist/index23.js +1 -1
- package/dist/index25.js +3 -2534
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +2526 -22
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +32 -4
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +4 -37
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +1101 -287
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +36 -8
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +305 -25
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +8 -60
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +30 -11
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +59 -35
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +10 -36818
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +36 -79
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +36808 -184
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +84 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +199 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +1 -1
- package/dist/lib/components/ConfirmHost/ConfirmHost.d.ts +39 -0
- package/dist/lib/components/ConfirmHost/ConfirmHost.d.ts.map +1 -0
- package/dist/lib/components/ConfirmHost/index.d.ts +2 -0
- package/dist/lib/components/ConfirmHost/index.d.ts.map +1 -0
- package/dist/lib/components/DataTable/components/DataTableImportDialog.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableViewTabs.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableViewsMenu.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/RowActions.d.ts.map +1 -1
- package/dist/lib/components/Dialog/Dialog.d.ts +15 -17
- package/dist/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/components/Dialog/index.d.ts +2 -2
- package/dist/lib/components/Dialog/index.d.ts.map +1 -1
- package/dist/lib/components/DropdownMenu/types.d.ts +2 -2
- package/dist/lib/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/lib/components/Form/Form.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/context/index.d.ts +0 -1
- package/dist/lib/context/index.d.ts.map +1 -1
- package/dist/lib/hooks/useConfirm.d.ts +3 -3
- package/dist/lib/hooks/useConfirm.d.ts.map +1 -1
- package/dist/trash-2.js +17 -3
- package/dist/trash-2.js.map +1 -1
- package/dist/useConfirm.js +3 -7
- package/dist/useConfirm.js.map +1 -1
- package/dist/utils/motion.js +2 -2
- package/dist/value.js +1 -1
- package/package.json +5 -1
- package/dist/Combination.js +0 -1129
- package/dist/Combination.js.map +0 -1
- package/dist/ConfirmContext.js +0 -77
- package/dist/ConfirmContext.js.map +0 -1
- package/dist/lib/context/ConfirmContext.d.ts +0 -26
- package/dist/lib/context/ConfirmContext.d.ts.map +0 -1
- package/dist/plus.js +0 -18
- package/dist/plus.js.map +0 -1
package/dist/index36.js
CHANGED
|
@@ -1,84 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { u as useIsomorphicLayoutEffect, f as frame, L as LayoutGroupContext } from './proxy.js';
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { u as useLayoutEffect2 } from './index28.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const unsubscribe = subscriptions.get(node);
|
|
18
|
-
if (unsubscribe) {
|
|
19
|
-
unsubscribe();
|
|
20
|
-
subscriptions.delete(node);
|
|
21
|
-
}
|
|
22
|
-
dirtyAll();
|
|
23
|
-
},
|
|
24
|
-
dirty: dirtyAll,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Note: Still used by components generated by old versions of Framer
|
|
30
|
-
*
|
|
31
|
-
* @deprecated
|
|
32
|
-
*/
|
|
33
|
-
const DeprecatedLayoutGroupContext = createContext(null);
|
|
34
|
-
|
|
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;
|
|
44
|
-
}
|
|
45
|
-
|
|
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];
|
|
58
|
-
}
|
|
59
|
-
|
|
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;
|
|
4
|
+
// packages/react/use-size/src/use-size.tsx
|
|
5
|
+
function useSize(element) {
|
|
6
|
+
const [size, setSize] = React.useState(void 0);
|
|
7
|
+
useLayoutEffect2(() => {
|
|
8
|
+
if (element) {
|
|
9
|
+
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
10
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
11
|
+
if (!Array.isArray(entries)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (!entries.length) {
|
|
15
|
+
return;
|
|
71
16
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
17
|
+
const entry = entries[0];
|
|
18
|
+
let width;
|
|
19
|
+
let height;
|
|
20
|
+
if ("borderBoxSize" in entry) {
|
|
21
|
+
const borderSizeEntry = entry["borderBoxSize"];
|
|
22
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
23
|
+
width = borderSize["inlineSize"];
|
|
24
|
+
height = borderSize["blockSize"];
|
|
25
|
+
} else {
|
|
26
|
+
width = element.offsetWidth;
|
|
27
|
+
height = element.offsetHeight;
|
|
28
|
+
}
|
|
29
|
+
setSize({ width, height });
|
|
30
|
+
});
|
|
31
|
+
resizeObserver.observe(element, { box: "border-box" });
|
|
32
|
+
return () => resizeObserver.unobserve(element);
|
|
33
|
+
} else {
|
|
34
|
+
setSize(void 0);
|
|
78
35
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
36
|
+
}, [element]);
|
|
37
|
+
return size;
|
|
38
|
+
}
|
|
82
39
|
|
|
83
|
-
export {
|
|
40
|
+
export { useSize as u };
|
|
84
41
|
//# sourceMappingURL=index36.js.map
|
package/dist/index36.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index36.js","sources":["../node_modules/.pnpm
|
|
1
|
+
{"version":3,"file":"index36.js","sources":["../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.14_react@19.2.3/node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect"],"mappings":";;;AAAA;AAGA,SAAS,OAAO,CAAC,OAAO,EAAE;AAC1B,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;AAChD,EAAEA,gBAAe,CAAC,MAAM;AACxB,IAAI,IAAI,OAAO,EAAE;AACjB,MAAM,OAAO,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;AAC3E,MAAM,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,KAAK;AAC7D,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;AACrC,UAAU;AACV,QAAQ;AACR,QAAQ,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;AAC7B,UAAU;AACV,QAAQ;AACR,QAAQ,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;AAChC,QAAQ,IAAI,KAAK;AACjB,QAAQ,IAAI,MAAM;AAClB,QAAQ,IAAI,eAAe,IAAI,KAAK,EAAE;AACtC,UAAU,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;AACxD,UAAU,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe;AAClG,UAAU,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC;AAC1C,UAAU,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;AAC1C,QAAQ,CAAC,MAAM;AACf,UAAU,KAAK,GAAG,OAAO,CAAC,WAAW;AACrC,UAAU,MAAM,GAAG,OAAO,CAAC,YAAY;AACvC,QAAQ;AACR,QAAQ,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAClC,MAAM,CAAC,CAAC;AACR,MAAM,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;AAC5D,MAAM,OAAO,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,CAAC;AACpD,IAAI,CAAC,MAAM;AACX,MAAM,OAAO,CAAC,MAAM,CAAC;AACrB,IAAI;AACJ,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;AACf,EAAE,OAAO,IAAI;AACb;;;;","x_google_ignoreList":[0]}
|