@bioturing/components 0.37.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/components/data-table/component.d.ts.map +1 -1
  2. package/dist/components/data-table/component.js +76 -71
  3. package/dist/components/data-table/component.js.map +1 -1
  4. package/dist/components/data-table/components/TablePagination.d.ts +1 -1
  5. package/dist/components/data-table/components/TablePagination.d.ts.map +1 -1
  6. package/dist/components/data-table/components/TablePagination.js +26 -23
  7. package/dist/components/data-table/components/TablePagination.js.map +1 -1
  8. package/dist/components/data-table/hooks.d.ts.map +1 -1
  9. package/dist/components/data-table/hooks.js +82 -82
  10. package/dist/components/data-table/hooks.js.map +1 -1
  11. package/dist/components/data-table/style.css +1 -1
  12. package/dist/components/empty/component.d.ts +0 -2
  13. package/dist/components/empty/component.d.ts.map +1 -1
  14. package/dist/components/empty/component.js +14 -35
  15. package/dist/components/empty/component.js.map +1 -1
  16. package/dist/components/empty/style.css +1 -1
  17. package/dist/components/hooks/useResizable.d.ts +50 -0
  18. package/dist/components/hooks/useResizable.d.ts.map +1 -0
  19. package/dist/components/hooks/useResizable.js +148 -0
  20. package/dist/components/hooks/useResizable.js.map +1 -0
  21. package/dist/components/index.d.ts +1 -0
  22. package/dist/components/index.d.ts.map +1 -1
  23. package/dist/components/popup-panel/component.d.ts.map +1 -1
  24. package/dist/components/popup-panel/component.js +119 -112
  25. package/dist/components/popup-panel/component.js.map +1 -1
  26. package/dist/components/popup-panel/utils.d.ts +10 -0
  27. package/dist/components/popup-panel/utils.d.ts.map +1 -0
  28. package/dist/components/popup-panel/utils.js +13 -0
  29. package/dist/components/popup-panel/utils.js.map +1 -0
  30. package/dist/components/resizable/component.d.ts +2 -8
  31. package/dist/components/resizable/component.d.ts.map +1 -1
  32. package/dist/components/resizable/component.js +250 -248
  33. package/dist/components/resizable/component.js.map +1 -1
  34. package/dist/components/window-portal/component.d.ts +24 -0
  35. package/dist/components/window-portal/component.d.ts.map +1 -0
  36. package/dist/components/window-portal/component.js +120 -0
  37. package/dist/components/window-portal/component.js.map +1 -0
  38. package/dist/components/window-portal/index.d.ts +3 -0
  39. package/dist/components/window-portal/index.d.ts.map +1 -0
  40. package/dist/components/window-portal/types.d.ts +77 -0
  41. package/dist/components/window-portal/types.d.ts.map +1 -0
  42. package/dist/index.js +139 -138
  43. package/dist/index.js.map +1 -1
  44. package/dist/metadata.d.ts +8 -0
  45. package/dist/metadata.d.ts.map +1 -1
  46. package/dist/metadata.js +18 -0
  47. package/dist/metadata.js.map +1 -1
  48. package/dist/stats.html +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ "use client";
2
+ import { useState as C, useRef as g, useCallback as I, useEffect as i } from "react";
3
+ import { createPortal as P } from "react-dom";
4
+ function z({
5
+ children: w,
6
+ width: $ = 600,
7
+ height: N = 400,
8
+ left: W = 200,
9
+ top: k = 200,
10
+ title: d = "",
11
+ copyStyles: f = !0,
12
+ onClose: y,
13
+ windowFeatures: x = {}
14
+ }) {
15
+ const [l, S] = C(null), c = g(null), [h, E] = C(!1), b = I((e) => {
16
+ if (!e || e.closed) return;
17
+ e.document.head.querySelectorAll("style, link[rel='stylesheet']").forEach((o) => o.remove()), Array.from(document.styleSheets).forEach((o) => {
18
+ try {
19
+ if (o.cssRules) {
20
+ const t = e.document.createElement("style");
21
+ Array.from(o.cssRules).forEach((r) => {
22
+ t.appendChild(
23
+ e.document.createTextNode(r.cssText)
24
+ );
25
+ }), e.document.head.appendChild(t);
26
+ }
27
+ } catch {
28
+ if (o.href) {
29
+ const r = e.document.createElement("link");
30
+ r.rel = "stylesheet", r.href = o.href, e.document.head.appendChild(r);
31
+ }
32
+ }
33
+ }), Array.from(document.querySelectorAll("style")).forEach((o) => {
34
+ const t = e.document.createElement("style");
35
+ t.textContent = o.textContent, e.document.head.appendChild(t);
36
+ });
37
+ }, []);
38
+ return i(() => {
39
+ const e = document.createElement("div");
40
+ S(e);
41
+ }, []), i(() => {
42
+ if (!l || c.current && !c.current.closed)
43
+ return;
44
+ const {
45
+ resizable: e = !0,
46
+ scrollbars: u = !0,
47
+ toolbar: o = !1,
48
+ menubar: t = !1,
49
+ location: r = !1,
50
+ status: s = !1
51
+ } = x, m = [
52
+ `width=${$}`,
53
+ `height=${N}`,
54
+ `left=${W}`,
55
+ `top=${k}`,
56
+ `resizable=${e ? "yes" : "no"}`,
57
+ `scrollbars=${u ? "yes" : "no"}`,
58
+ `toolbar=${o ? "yes" : "no"}`,
59
+ `menubar=${t ? "yes" : "no"}`,
60
+ `location=${r ? "yes" : "no"}`,
61
+ `status=${s ? "yes" : "no"}`
62
+ ].join(","), n = window.open("", "", m);
63
+ if (!n) {
64
+ console.warn(
65
+ "WindowPortal: Failed to open new window. It may have been blocked by a popup blocker."
66
+ );
67
+ return;
68
+ }
69
+ if (c.current = n, d && (n.document.title = d), f) {
70
+ b(n);
71
+ const v = document.documentElement.className;
72
+ v && (n.document.documentElement.className = v), Array.from(document.documentElement.attributes).forEach((a) => {
73
+ a.name.startsWith("data-") && n.document.documentElement.setAttribute(a.name, a.value);
74
+ });
75
+ const A = document.body.className;
76
+ A && (n.document.body.className = A), Array.from(document.body.attributes).forEach((a) => {
77
+ a.name.startsWith("data-") && n.document.body.setAttribute(a.name, a.value);
78
+ });
79
+ }
80
+ n.document.body.appendChild(l), E(!0);
81
+ const R = () => {
82
+ y && y();
83
+ }, p = setInterval(() => {
84
+ n.closed && (clearInterval(p), R());
85
+ }, 500);
86
+ return () => {
87
+ clearInterval(p), E(!1), n && !n.closed && n.close();
88
+ };
89
+ }, [l]), i(() => {
90
+ c.current && !c.current.closed && (c.current.document.title = d);
91
+ }, [d]), i(() => {
92
+ if (!f || !h || !c.current || c.current.closed)
93
+ return;
94
+ const e = c.current, u = new MutationObserver((t) => {
95
+ t.forEach((r) => {
96
+ if (r.type === "attributes") {
97
+ const s = r.attributeName;
98
+ if (!s) return;
99
+ if (s === "class")
100
+ e.document.documentElement.className = document.documentElement.className, b(e);
101
+ else if (s.startsWith("data-")) {
102
+ const m = document.documentElement.getAttribute(s);
103
+ m !== null ? e.document.documentElement.setAttribute(s, m) : e.document.documentElement.removeAttribute(s);
104
+ }
105
+ }
106
+ });
107
+ }), o = Array.from(document.documentElement.attributes).filter((t) => t.name.startsWith("data-")).map((t) => t.name);
108
+ return u.observe(document.documentElement, {
109
+ attributes: !0,
110
+ attributeFilter: ["class", ...o],
111
+ attributeOldValue: !1
112
+ }), () => {
113
+ u.disconnect();
114
+ };
115
+ }, [f, b, h]), l ? P(w, l) : null;
116
+ }
117
+ export {
118
+ z as WindowPortal
119
+ };
120
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/window-portal/component.tsx"],"sourcesContent":["\"use client\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport type { WindowPortalProps } from \"./types\";\n\n/**\n * WindowPortal - Renders content in a separate browser window\n *\n * This component creates a new browser window and renders its children inside it.\n * It automatically copies parent window styles for consistent theming and handles\n * cleanup when the component unmounts or the window is closed.\n *\n * **Performance Note**: Rapid state updates (e.g., text input) may have slight latency\n * due to React reconciliation across different window contexts. This is expected behavior\n * when using portals across window boundaries.\n *\n * **Theme Synchronization**: The component automatically syncs theme changes (light/dark mode)\n * from the parent window to the popup window using a MutationObserver.\n *\n * @example\n * ```tsx\n * <WindowPortal width={800} height={600} title=\"My Window\">\n * <div>Content rendered in separate window</div>\n * </WindowPortal>\n * ```\n */\nexport function WindowPortal({\n children,\n width = 600,\n height = 400,\n left = 200,\n top = 200,\n title = \"\",\n copyStyles = true,\n onClose,\n windowFeatures = {},\n}: WindowPortalProps) {\n const [container, setContainer] = useState<HTMLElement | null>(null);\n const newWindow = useRef<Window | null>(null);\n const [windowReady, setWindowReady] = useState(false);\n\n // Function to copy styles from parent to popup window\n const copyStylesToWindow = useCallback((win: Window) => {\n if (!win || win.closed) return;\n\n // Clear existing styles in popup window\n const existingStyles = win.document.head.querySelectorAll(\"style, link[rel='stylesheet']\");\n existingStyles.forEach((style) => style.remove());\n\n // Copy all stylesheets\n Array.from(document.styleSheets).forEach((stylesheet) => {\n try {\n // Try to copy via cssRules (for same-origin stylesheets)\n if (stylesheet.cssRules) {\n const newStyleElement = win.document.createElement(\"style\");\n Array.from(stylesheet.cssRules).forEach((rule) => {\n newStyleElement.appendChild(\n win.document.createTextNode(rule.cssText)\n );\n });\n win.document.head.appendChild(newStyleElement);\n }\n } catch (e) {\n // If cssRules is not accessible (CORS), copy via link element\n if (stylesheet.href) {\n const link = win.document.createElement(\"link\");\n link.rel = \"stylesheet\";\n link.href = stylesheet.href;\n win.document.head.appendChild(link);\n }\n }\n });\n\n // Copy inline style elements\n Array.from(document.querySelectorAll(\"style\")).forEach((style) => {\n const newStyle = win.document.createElement(\"style\");\n newStyle.textContent = style.textContent;\n win.document.head.appendChild(newStyle);\n });\n }, []);\n\n useEffect(() => {\n // Create container element on client-side\n const div = document.createElement(\"div\");\n setContainer(div);\n }, []);\n\n useEffect(() => {\n // When container is ready\n if (!container) return;\n\n // Only create the window once - don't recreate on every render\n if (newWindow.current && !newWindow.current.closed) {\n return;\n }\n\n // Build window features string\n const {\n resizable = true,\n scrollbars = true,\n toolbar = false,\n menubar = false,\n location = false,\n status = false,\n } = windowFeatures;\n\n const features = [\n `width=${width}`,\n `height=${height}`,\n `left=${left}`,\n `top=${top}`,\n `resizable=${resizable ? \"yes\" : \"no\"}`,\n `scrollbars=${scrollbars ? \"yes\" : \"no\"}`,\n `toolbar=${toolbar ? \"yes\" : \"no\"}`,\n `menubar=${menubar ? \"yes\" : \"no\"}`,\n `location=${location ? \"yes\" : \"no\"}`,\n `status=${status ? \"yes\" : \"no\"}`,\n ].join(\",\");\n\n // Create window\n const win = window.open(\"\", \"\", features);\n\n if (!win) {\n console.warn(\n \"WindowPortal: Failed to open new window. It may have been blocked by a popup blocker.\"\n );\n return;\n }\n\n newWindow.current = win;\n\n // Set initial window title\n if (title) {\n win.document.title = title;\n }\n\n // Copy styles from parent window\n if (copyStyles) {\n copyStylesToWindow(win);\n\n // Copy theme classes from html element to maintain dark/light mode\n const htmlClasses = document.documentElement.className;\n if (htmlClasses) {\n win.document.documentElement.className = htmlClasses;\n }\n\n // Copy data attributes from html element (for theme)\n Array.from(document.documentElement.attributes).forEach((attr) => {\n if (attr.name.startsWith(\"data-\")) {\n win.document.documentElement.setAttribute(attr.name, attr.value);\n }\n });\n\n // Also copy body classes and attributes\n const bodyClasses = document.body.className;\n if (bodyClasses) {\n win.document.body.className = bodyClasses;\n }\n\n Array.from(document.body.attributes).forEach((attr) => {\n if (attr.name.startsWith(\"data-\")) {\n win.document.body.setAttribute(attr.name, attr.value);\n }\n });\n }\n\n // Append container to new window's body\n win.document.body.appendChild(container);\n\n // Mark window as ready for theme sync\n setWindowReady(true);\n\n // Set up cleanup handler\n const handleClose = () => {\n if (onClose) {\n onClose();\n }\n };\n\n // Poll for window closure (since 'beforeunload' doesn't always work reliably)\n const checkClosed = setInterval(() => {\n if (win.closed) {\n clearInterval(checkClosed);\n handleClose();\n }\n }, 500);\n\n // Return cleanup function\n return () => {\n clearInterval(checkClosed);\n setWindowReady(false);\n if (win && !win.closed) {\n win.close();\n }\n };\n // Only depend on container - window should only be created once\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [container]);\n\n // Update window title when it changes\n useEffect(() => {\n if (newWindow.current && !newWindow.current.closed) {\n newWindow.current.document.title = title;\n }\n }, [title]);\n\n // Sync theme changes from parent to popup window\n useEffect(() => {\n if (!copyStyles || !windowReady || !newWindow.current || newWindow.current.closed) {\n return;\n }\n\n const win = newWindow.current;\n\n // Create a MutationObserver to watch for class and data attribute changes on html element\n // Theme classes (light/dark) are applied to the html element in this design system\n const observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.type === \"attributes\") {\n const attrName = mutation.attributeName;\n if (!attrName) return;\n\n // Sync class changes from html element (this is where theme classes are applied)\n if (attrName === \"class\") {\n win.document.documentElement.className = document.documentElement.className;\n\n // Re-copy all styles to get the updated theme-specific CSS\n // This ensures CSS variables and theme-specific rules are updated\n copyStylesToWindow(win);\n }\n // Sync data attributes (for theme)\n else if (attrName.startsWith(\"data-\")) {\n const value = document.documentElement.getAttribute(attrName);\n if (value !== null) {\n win.document.documentElement.setAttribute(attrName, value);\n } else {\n win.document.documentElement.removeAttribute(attrName);\n }\n }\n }\n });\n });\n\n // Collect all data-* attributes to watch\n const allDataAttrs = Array.from(document.documentElement.attributes)\n .filter((attr) => attr.name.startsWith(\"data-\"))\n .map((attr) => attr.name);\n\n // Observe the parent window's html element for attribute changes\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"class\", ...allDataAttrs],\n attributeOldValue: false,\n });\n\n return () => {\n observer.disconnect();\n };\n }, [copyStyles, copyStylesToWindow, windowReady]);\n\n return container ? createPortal(children, container) : null;\n}\n"],"names":["WindowPortal","children","width","height","left","top","title","copyStyles","onClose","windowFeatures","container","setContainer","useState","newWindow","useRef","windowReady","setWindowReady","copyStylesToWindow","useCallback","win","style","stylesheet","newStyleElement","rule","link","newStyle","useEffect","div","resizable","scrollbars","toolbar","menubar","location","status","features","htmlClasses","attr","bodyClasses","handleClose","checkClosed","observer","mutations","mutation","attrName","value","allDataAttrs","createPortal"],"mappings":";;;AA0BO,SAASA,EAAa;AAAA,EAC3B,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,QAAAC,IAAS;AAAA,EACT,MAAAC,IAAO;AAAA,EACP,KAAAC,IAAM;AAAA,EACN,OAAAC,IAAQ;AAAA,EACR,YAAAC,IAAa;AAAA,EACb,SAAAC;AAAA,EACA,gBAAAC,IAAiB,CAAA;AACnB,GAAsB;AACpB,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAA6B,IAAI,GAC7DC,IAAYC,EAAsB,IAAI,GACtC,CAACC,GAAaC,CAAc,IAAIJ,EAAS,EAAK,GAG9CK,IAA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O,CAACT,MAASA,EAAK,KAAK,WAAW,OAAO,CAAC,EAC9C,IAAI,CAACA,MAASA,EAAK,IAAI;AAG1B,WAAAI,EAAS,QAAQ,SAAS,iBAAiB;AAAA,MACzC,YAAY;AAAA,MACZ,iBAAiB,CAAC,SAAS,GAAGK,CAAY;AAAA,MAC1C,mBAAmB;AAAA,IAAA,CACpB,GAEM,MAAM;AACX,MAAAL,EAAS,WAAA;AAAA,IACX;AAAA,EACF,GAAG,CAACjC,GAAYU,GAAoBF,CAAW,CAAC,GAEzCL,IAAYoC,EAAa7C,GAAUS,CAAS,IAAI;AACzD;"}
@@ -0,0 +1,3 @@
1
+ export { WindowPortal } from './component';
2
+ export type { WindowPortalProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/window-portal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { ReactNode } from 'react';
2
+ export interface WindowPortalProps {
3
+ /**
4
+ * Content to render in the new window
5
+ */
6
+ children: ReactNode;
7
+ /**
8
+ * Width of the new window in pixels
9
+ * @default 600
10
+ */
11
+ width?: number;
12
+ /**
13
+ * Height of the new window in pixels
14
+ * @default 400
15
+ */
16
+ height?: number;
17
+ /**
18
+ * Left position of the new window in pixels from the screen's left edge
19
+ * @default 200
20
+ */
21
+ left?: number;
22
+ /**
23
+ * Top position of the new window in pixels from the screen's top edge
24
+ * @default 200
25
+ */
26
+ top?: number;
27
+ /**
28
+ * Title of the new window
29
+ * @default ""
30
+ */
31
+ title?: string;
32
+ /**
33
+ * Whether to copy parent window's stylesheets to the new window
34
+ * @default true
35
+ */
36
+ copyStyles?: boolean;
37
+ /**
38
+ * Callback fired when the window is closed
39
+ */
40
+ onClose?: () => void;
41
+ /**
42
+ * Native window features configuration
43
+ */
44
+ windowFeatures?: {
45
+ /**
46
+ * Whether the window should be resizable
47
+ * @default true
48
+ */
49
+ resizable?: boolean;
50
+ /**
51
+ * Whether to show scrollbars
52
+ * @default true
53
+ */
54
+ scrollbars?: boolean;
55
+ /**
56
+ * Whether to show the toolbar
57
+ * @default false
58
+ */
59
+ toolbar?: boolean;
60
+ /**
61
+ * Whether to show the menubar
62
+ * @default false
63
+ */
64
+ menubar?: boolean;
65
+ /**
66
+ * Whether to show the location bar
67
+ * @default false
68
+ */
69
+ location?: boolean;
70
+ /**
71
+ * Whether to show the status bar
72
+ * @default false
73
+ */
74
+ status?: boolean;
75
+ };
76
+ }
77
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/window-portal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE;QACf;;;WAGG;QACH,SAAS,CAAC,EAAE,OAAO,CAAC;QAEpB;;;WAGG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;;WAGG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;CACH"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { componentMetadata as r, getComponentsByCategory as t } from "./metadata.js";
2
2
  import { default as m } from "./components/utils/createSyntheticClickEvent.js";
3
- import { Affix as f, Alert as x, Anchor as s, App as l, AutoComplete as n, Avatar as i, BackTop as C, Calendar as c, Card as u, Carousel as T, Cascader as d, Col as g, ColorPicker as S, ConfigProvider as h, DatePicker as A, Descriptions as E, Divider as P, Drawer as b, Dropdown as R, Flex as k, FloatButton as D, Grid as I, InputNumber as L, Layout as O, List as y, Mentions as B, Menu as v, Pagination as N, Popconfirm as M, Progress as _, QRCode as w, Rate as U, Result as F, Row as W, Skeleton as V, Space as K, Statistic as q, Steps as z, Tabs as G, TimePicker as Q, Timeline as H, Transfer as j, TreeSelect as J, Typography as X, Watermark as Y, message as Z, notification as $, theme as ee, unstableSetRender as oe, version as re } from "antd";
3
+ import { Affix as f, Alert as x, Anchor as s, App as l, AutoComplete as n, Avatar as i, BackTop as C, Calendar as c, Card as u, Carousel as T, Cascader as d, Col as g, ColorPicker as S, ConfigProvider as h, DatePicker as A, Descriptions as E, Divider as P, Drawer as b, Dropdown as R, Flex as k, FloatButton as D, Grid as I, InputNumber as L, Layout as O, List as B, Mentions as v, Menu as y, Pagination as N, Popconfirm as M, Progress as w, QRCode as _, Rate as U, Result as W, Row as F, Skeleton as V, Space as K, Statistic as q, Steps as z, Tabs as G, TimePicker as Q, Timeline as H, Transfer as j, TreeSelect as J, Typography as X, Watermark as Y, message as Z, notification as $, theme as ee, unstableSetRender as oe, version as re } from "antd";
4
4
  import { DataTable as ae } from "./components/data-table/component.js";
5
5
  import { Select as pe } from "./components/select/component.js";
6
6
  import { Modal as xe } from "./components/modal/index.js";
@@ -14,11 +14,11 @@ import { TagList as Ee } from "./components/tag/list.js";
14
14
  import { ThemeProvider as be } from "./components/theme-provider/component.js";
15
15
  import { ThemeContext as ke, useTheme as De } from "./components/theme-provider/context/themeStore.js";
16
16
  import { ThemeContextProvider as Le } from "./components/theme-provider/context/provider.js";
17
- import { Split as ye, Splitter as Be } from "./components/splitter/component.js";
17
+ import { Split as Be, Splitter as ve } from "./components/splitter/component.js";
18
18
  import { Truncate as Ne } from "./components/truncate/component.js";
19
- import { DropdownMenu as _e } from "./components/dropdown-menu/component.js";
19
+ import { DropdownMenu as we } from "./components/dropdown-menu/component.js";
20
20
  import { DropdownMenuItem as Ue } from "./components/dropdown-menu/item.js";
21
- import { CommandPalette as We } from "./components/command-palette/component.js";
21
+ import { CommandPalette as Fe } from "./components/command-palette/component.js";
22
22
  import { KeyboardShortcut as Ke } from "./components/keyboard-shortcut/component.js";
23
23
  import { Transition as ze } from "./components/transition/component.js";
24
24
  import { DefaultUpload as Qe, Upload as He } from "./components/upload/component.js";
@@ -37,59 +37,60 @@ import { DROPDOWN_COLLISION_AVOIDANCE as Eo, POPUP_COLLISION_AVOIDANCE as Po } f
37
37
  import { buildAntdPlacement as Ro, parseAntdPlacement as ko } from "./components/utils/placement.js";
38
38
  import { ScrollArea as Io } from "./components/scroll-area/component.js";
39
39
  import { Popover as Oo } from "./components/popover/component.js";
40
- import { Slider as Bo } from "./components/slider/component.js";
40
+ import { Slider as vo } from "./components/slider/component.js";
41
41
  import { Tooltip as No } from "./components/tooltip/component.js";
42
- import { Breadcrumb as _o } from "./components/breadcrumb/component.js";
42
+ import { Breadcrumb as wo } from "./components/breadcrumb/component.js";
43
43
  import { BreadcrumbItem as Uo } from "./components/breadcrumb/item.js";
44
- import { useUniqueKeysTree as Wo } from "./components/tree/useUniqueKeysTree.js";
44
+ import { useUniqueKeysTree as Fo } from "./components/tree/useUniqueKeysTree.js";
45
45
  import { getUniqueKeysFromOriginals as Ko, processTreeData as qo } from "./components/tree/helpers.js";
46
46
  import { Tree as Go } from "./components/tree/components.js";
47
47
  import { Spin as Ho } from "./components/spin/component.js";
48
- import { Empty as Jo, EmptyIcon as Xo } from "./components/empty/component.js";
49
- import { Form as Zo } from "./components/form/component.js";
50
- import { Field as er } from "./components/field/component.js";
51
- import { Tour as rr } from "./components/tour/component.js";
52
- import { Toast as ar } from "./components/toast/component.js";
53
- import { toast as pr, toastManager as fr } from "./components/toast/function.js";
54
- import { VerticalCollapsiblePanel as sr } from "./components/vertical-collapsible-panel/component.js";
55
- import { PopupPanel as nr } from "./components/popup-panel/component.js";
56
- import { CodeBlock as Cr } from "./components/code-block/component.js";
57
- import { StackChild as ur } from "./components/stack/StackChild.js";
58
- import { Stack as dr } from "./components/stack/index.js";
59
- import { Collapse as Sr } from "./components/collapse/component.js";
60
- import { Input as Ar } from "./components/input/component.js";
61
- import { Badge as Pr, InternalBadge as br } from "./components/badge/component.js";
62
- import { Radio as kr } from "./components/radio/component.js";
63
- import { Button as Ir } from "./components/button/component.js";
64
- import { DSRoot as Or } from "./components/ds-root/component.js";
48
+ import { Empty as Jo } from "./components/empty/component.js";
49
+ import { Form as Yo } from "./components/form/component.js";
50
+ import { Field as $o } from "./components/field/component.js";
51
+ import { Tour as or } from "./components/tour/component.js";
52
+ import { Toast as tr } from "./components/toast/component.js";
53
+ import { toast as mr, toastManager as pr } from "./components/toast/function.js";
54
+ import { VerticalCollapsiblePanel as xr } from "./components/vertical-collapsible-panel/component.js";
55
+ import { PopupPanel as lr } from "./components/popup-panel/component.js";
56
+ import { CodeBlock as ir } from "./components/code-block/component.js";
57
+ import { StackChild as cr } from "./components/stack/StackChild.js";
58
+ import { Stack as Tr } from "./components/stack/index.js";
59
+ import { Collapse as gr } from "./components/collapse/component.js";
60
+ import { Input as hr } from "./components/input/component.js";
61
+ import { Badge as Er, InternalBadge as Pr } from "./components/badge/component.js";
62
+ import { Radio as Rr } from "./components/radio/component.js";
63
+ import { Button as Dr } from "./components/button/component.js";
64
+ import { DSRoot as Lr } from "./components/ds-root/component.js";
65
65
  import { useDS as Br } from "./components/ds-root/hook.js";
66
- import { DragDrop as Nr, DragDropRoot as Mr } from "./components/drag-drop/index.js";
66
+ import { DragDrop as yr, DragDropRoot as Nr } from "./components/drag-drop/index.js";
67
67
  import { ColorSelect as wr } from "./components/color-select/component.js";
68
- import { Nav as Fr } from "./components/nav/index.js";
69
- import { ChoiceList as Vr } from "./components/choice-list/component.js";
70
- import { StatusIcon as qr } from "./components/status-icon/component.js";
71
- import { Resizable as Gr } from "./components/resizable/component.js";
72
- import { Combobox as Hr } from "./components/combobox/component.js";
73
- import { SelectTrigger as Jr, SelectTriggerArrow as Xr, SelectTriggerClear as Yr, SelectTriggerContent as Zr, SelectTriggerRoot as $r } from "./components/select-trigger/component.js";
74
- import { Loader as ot } from "./components/loader/component.js";
75
- import { useForm as tt, useWatch as at } from "antd/es/form/Form";
76
- import { useMessage as pt, useModal as ft, useToken as xt } from "./components/hooks/antd.js";
77
- import { default as lt } from "antd/es/app/useApp";
78
- import { useAnimationsFinished as it, useEnhancedEffect as Ct, useEventCallback as ct, useLatestRef as ut } from "./components/hooks/base-ui.js";
79
- import { useControlledState as dt } from "./components/hooks/useControlledState.js";
80
- import { useCharts as St } from "./components/hooks/useCharts.js";
81
- import { useCSSVariables as At } from "./components/hooks/useCSSVariables.js";
82
- import { useHover as Pt } from "./components/hooks/useHover.js";
83
- import { useDraggable as Rt } from "./components/hooks/useDraggable.js";
84
- import { BREAKPOINTS as Dt, useBreakpoint as It } from "./components/hooks/useBreakpoint.js";
85
- import { useWindowSize as Ot } from "./components/hooks/useWindowSize.js";
86
- import { useElementSize as Bt, useResizeObserver as vt } from "./components/hooks/useResizeObserver.js";
87
- import { antdColorTokens as Mt, darkTheme as _t, lightTheme as wt } from "./tokens/and-theme/tokens.js";
88
- import { categoricalChartColorKeys as Ft, categoricalChartColorTokens as Wt, categoricalChartsColors as Vt, chartColorTokens as Kt, rawChartColorTokens as qt } from "./tokens/charts/palettes/cloudscape.js";
89
- import { COLORBREWER as Gt } from "./tokens/charts/palettes/colorbrewer.js";
90
- import { tab10 as Ht, tab20 as jt, tab20b as Jt, tab20c as Xt } from "./tokens/charts/palettes/tableau.js";
91
- import { CATEGORICAL_PALETTES as Zt, CATEGORICAL_PALETTE_NAMES as $t, SEQUENTIAL_PALETTES as ea, SEQUENTIAL_PALETTE_NAMES as oa, getAllCategoricalChartColors as ra, getAllSequentialChartColors as ta, getCategoricalChartColors as aa, getSequentialChartColors as ma } from "./tokens/charts/palettes/index.js";
92
- import { getColorsByTheme as fa, getTokensByTheme as xa, resolveColorTokens as sa } from "./tokens/utils.js";
68
+ import { Nav as Ur } from "./components/nav/index.js";
69
+ import { ChoiceList as Fr } from "./components/choice-list/component.js";
70
+ import { StatusIcon as Kr } from "./components/status-icon/component.js";
71
+ import { Resizable as zr } from "./components/resizable/component.js";
72
+ import { Combobox as Qr } from "./components/combobox/component.js";
73
+ import { SelectTrigger as jr, SelectTriggerArrow as Jr, SelectTriggerClear as Xr, SelectTriggerContent as Yr, SelectTriggerRoot as Zr } from "./components/select-trigger/component.js";
74
+ import { Loader as et } from "./components/loader/component.js";
75
+ import { WindowPortal as rt } from "./components/window-portal/component.js";
76
+ import { useForm as at, useWatch as mt } from "antd/es/form/Form";
77
+ import { useMessage as ft, useModal as xt, useToken as st } from "./components/hooks/antd.js";
78
+ import { default as nt } from "antd/es/app/useApp";
79
+ import { useAnimationsFinished as Ct, useEnhancedEffect as ct, useEventCallback as ut, useLatestRef as Tt } from "./components/hooks/base-ui.js";
80
+ import { useControlledState as gt } from "./components/hooks/useControlledState.js";
81
+ import { useCharts as ht } from "./components/hooks/useCharts.js";
82
+ import { useCSSVariables as Et } from "./components/hooks/useCSSVariables.js";
83
+ import { useHover as bt } from "./components/hooks/useHover.js";
84
+ import { useDraggable as kt } from "./components/hooks/useDraggable.js";
85
+ import { BREAKPOINTS as It, useBreakpoint as Lt } from "./components/hooks/useBreakpoint.js";
86
+ import { useWindowSize as Bt } from "./components/hooks/useWindowSize.js";
87
+ import { useElementSize as yt, useResizeObserver as Nt } from "./components/hooks/useResizeObserver.js";
88
+ import { antdColorTokens as wt, darkTheme as _t, lightTheme as Ut } from "./tokens/and-theme/tokens.js";
89
+ import { categoricalChartColorKeys as Ft, categoricalChartColorTokens as Vt, categoricalChartsColors as Kt, chartColorTokens as qt, rawChartColorTokens as zt } from "./tokens/charts/palettes/cloudscape.js";
90
+ import { COLORBREWER as Qt } from "./tokens/charts/palettes/colorbrewer.js";
91
+ import { tab10 as jt, tab20 as Jt, tab20b as Xt, tab20c as Yt } from "./tokens/charts/palettes/tableau.js";
92
+ import { CATEGORICAL_PALETTES as $t, CATEGORICAL_PALETTE_NAMES as ea, SEQUENTIAL_PALETTES as oa, SEQUENTIAL_PALETTE_NAMES as ra, getAllCategoricalChartColors as ta, getAllSequentialChartColors as aa, getCategoricalChartColors as ma, getSequentialChartColors as pa } from "./tokens/charts/palettes/index.js";
93
+ import { getColorsByTheme as xa, getTokensByTheme as sa, resolveColorTokens as la } from "./tokens/utils.js";
93
94
  export {
94
95
  f as Affix,
95
96
  x as Alert,
@@ -97,93 +98,92 @@ export {
97
98
  l as App,
98
99
  n as AutoComplete,
99
100
  i as Avatar,
100
- Dt as BREAKPOINTS,
101
+ It as BREAKPOINTS,
101
102
  C as BackTop,
102
- Pr as Badge,
103
- _o as Breadcrumb,
103
+ Er as Badge,
104
+ wo as Breadcrumb,
104
105
  Uo as BreadcrumbItem,
105
- Ir as Button,
106
- Zt as CATEGORICAL_PALETTES,
107
- $t as CATEGORICAL_PALETTE_NAMES,
108
- Gt as COLORBREWER,
106
+ Dr as Button,
107
+ $t as CATEGORICAL_PALETTES,
108
+ ea as CATEGORICAL_PALETTE_NAMES,
109
+ Qt as COLORBREWER,
109
110
  c as Calendar,
110
111
  u as Card,
111
112
  T as Carousel,
112
113
  d as Cascader,
113
114
  ce as Checkbox,
114
- Vr as ChoiceList,
115
- Cr as CodeBlock,
115
+ Fr as ChoiceList,
116
+ ir as CodeBlock,
116
117
  g as Col,
117
- Sr as Collapse,
118
+ gr as Collapse,
118
119
  S as ColorPicker,
119
120
  wr as ColorSelect,
120
- Hr as Combobox,
121
- We as CommandPalette,
121
+ Qr as Combobox,
122
+ Fe as CommandPalette,
122
123
  h as ConfigProvider,
123
124
  Eo as DROPDOWN_COLLISION_AVOIDANCE,
124
- Or as DSRoot,
125
+ Lr as DSRoot,
125
126
  ae as DataTable,
126
127
  A as DatePicker,
127
128
  Qe as DefaultUpload,
128
129
  E as Descriptions,
129
130
  P as Divider,
130
- Nr as DragDrop,
131
- Mr as DragDropRoot,
131
+ yr as DragDrop,
132
+ Nr as DragDropRoot,
132
133
  b as Drawer,
133
134
  R as Dropdown,
134
- _e as DropdownMenu,
135
+ we as DropdownMenu,
135
136
  Ue as DropdownMenuItem,
136
137
  Jo as Empty,
137
- Xo as EmptyIcon,
138
- er as Field,
138
+ $o as Field,
139
139
  k as Flex,
140
140
  D as FloatButton,
141
- Zo as Form,
141
+ Yo as Form,
142
142
  I as Grid,
143
143
  le as IconButton,
144
- Ar as Input,
144
+ hr as Input,
145
145
  L as InputNumber,
146
- br as InternalBadge,
146
+ Pr as InternalBadge,
147
147
  Ke as KeyboardShortcut,
148
148
  O as Layout,
149
- y as List,
150
- ot as Loader,
151
- B as Mentions,
152
- v as Menu,
149
+ B as List,
150
+ et as Loader,
151
+ v as Mentions,
152
+ y as Menu,
153
153
  xe as Modal,
154
- Fr as Nav,
154
+ Ur as Nav,
155
155
  Po as POPUP_COLLISION_AVOIDANCE,
156
156
  N as Pagination,
157
157
  M as Popconfirm,
158
158
  Oo as Popover,
159
- nr as PopupPanel,
160
- _ as Progress,
161
- w as QRCode,
162
- kr as Radio,
159
+ lr as PopupPanel,
160
+ w as Progress,
161
+ _ as QRCode,
162
+ Rr as Radio,
163
163
  U as Rate,
164
- Gr as Resizable,
165
- F as Result,
166
- W as Row,
167
- ea as SEQUENTIAL_PALETTES,
168
- oa as SEQUENTIAL_PALETTE_NAMES,
164
+ zr as Resizable,
165
+ W as Result,
166
+ F as Row,
167
+ oa as SEQUENTIAL_PALETTES,
168
+ ra as SEQUENTIAL_PALETTE_NAMES,
169
169
  Io as ScrollArea,
170
170
  Te as Segmented,
171
171
  pe as Select,
172
- Jr as SelectTrigger,
173
- Xr as SelectTriggerArrow,
174
- Yr as SelectTriggerClear,
175
- Zr as SelectTriggerContent,
176
- $r as SelectTriggerRoot,
172
+ jr as SelectTrigger,
173
+ Jr as SelectTriggerArrow,
174
+ Xr as SelectTriggerClear,
175
+ Yr as SelectTriggerContent,
176
+ Zr as SelectTriggerRoot,
177
177
  V as Skeleton,
178
- Bo as Slider,
178
+ vo as Slider,
179
179
  K as Space,
180
180
  Ho as Spin,
181
- ye as Split,
182
- Be as Splitter,
183
- dr as Stack,
184
- ur as StackChild,
181
+ Be as Split,
182
+ ve as Splitter,
183
+ Tr as Stack,
184
+ cr as StackChild,
185
185
  q as Statistic,
186
- qr as StatusIcon,
186
+ Kr as StatusIcon,
187
187
  z as Steps,
188
188
  ie as Switch,
189
189
  ge as Table,
@@ -195,9 +195,9 @@ export {
195
195
  be as ThemeProvider,
196
196
  Q as TimePicker,
197
197
  H as Timeline,
198
- ar as Toast,
198
+ tr as Toast,
199
199
  No as Tooltip,
200
- rr as Tour,
200
+ or as Tour,
201
201
  j as Transfer,
202
202
  ze as Transition,
203
203
  Go as Tree,
@@ -205,77 +205,78 @@ export {
205
205
  Ne as Truncate,
206
206
  X as Typography,
207
207
  He as Upload,
208
- sr as VerticalCollapsiblePanel,
208
+ xr as VerticalCollapsiblePanel,
209
209
  Y as Watermark,
210
+ rt as WindowPortal,
210
211
  fo as WithRenderProp,
211
- Mt as antdColorTokens,
212
+ wt as antdColorTokens,
212
213
  Ro as buildAntdPlacement,
213
214
  Ft as categoricalChartColorKeys,
214
- Wt as categoricalChartColorTokens,
215
- Vt as categoricalChartsColors,
215
+ Vt as categoricalChartColorTokens,
216
+ Kt as categoricalChartsColors,
216
217
  go as changeThemeWithoutTransition,
217
- Kt as chartColorTokens,
218
+ qt as chartColorTokens,
218
219
  Ye as clsx,
219
220
  Ze as cn,
220
221
  r as componentMetadata,
221
222
  m as createSyntheticClickEvent,
222
223
  $e as cx,
223
224
  _t as darkTheme,
224
- ra as getAllCategoricalChartColors,
225
- ta as getAllSequentialChartColors,
226
- aa as getCategoricalChartColors,
227
- fa as getColorsByTheme,
225
+ ta as getAllCategoricalChartColors,
226
+ aa as getAllSequentialChartColors,
227
+ ma as getCategoricalChartColors,
228
+ xa as getColorsByTheme,
228
229
  t as getComponentsByCategory,
229
230
  so as getReactElementProp,
230
- ma as getSequentialChartColors,
231
- xa as getTokensByTheme,
231
+ pa as getSequentialChartColors,
232
+ sa as getTokensByTheme,
232
233
  Ko as getUniqueKeysFromOriginals,
233
234
  to as isTracebackError,
234
235
  mo as isValidHexColor,
235
- wt as lightTheme,
236
+ Ut as lightTheme,
236
237
  no as mergeRefs,
237
238
  Z as message,
238
239
  ho as moveTypingCursorToEnd,
239
240
  $ as notification,
240
241
  ko as parseAntdPlacement,
241
242
  qo as processTreeData,
242
- qt as rawChartColorTokens,
243
+ zt as rawChartColorTokens,
243
244
  oo as reactNodeToString,
244
- sa as resolveColorTokens,
245
- Ht as tab10,
246
- jt as tab20,
247
- Jt as tab20b,
248
- Xt as tab20c,
245
+ la as resolveColorTokens,
246
+ jt as tab10,
247
+ Jt as tab20,
248
+ Xt as tab20b,
249
+ Yt as tab20c,
249
250
  ee as theme,
250
- pr as toast,
251
- fr as toastManager,
251
+ mr as toast,
252
+ pr as toastManager,
252
253
  oe as unstableSetRender,
253
- it as useAnimationsFinished,
254
+ Ct as useAnimationsFinished,
254
255
  Co as useAntdCssVarClassname,
255
- lt as useApp,
256
- It as useBreakpoint,
257
- At as useCSSVariables,
258
- St as useCharts,
256
+ nt as useApp,
257
+ Lt as useBreakpoint,
258
+ Et as useCSSVariables,
259
+ ht as useCharts,
259
260
  co as useCls,
260
- dt as useControlledState,
261
+ gt as useControlledState,
261
262
  Br as useDS,
262
- Rt as useDraggable,
263
- Bt as useElementSize,
264
- Ct as useEnhancedEffect,
265
- ct as useEventCallback,
266
- tt as useForm,
263
+ kt as useDraggable,
264
+ yt as useElementSize,
265
+ ct as useEnhancedEffect,
266
+ ut as useEventCallback,
267
+ at as useForm,
267
268
  uo as useGetPrefixCls,
268
- Pt as useHover,
269
- ut as useLatestRef,
270
- pt as useMessage,
271
- ft as useModal,
272
- vt as useResizeObserver,
269
+ bt as useHover,
270
+ Tt as useLatestRef,
271
+ ft as useMessage,
272
+ xt as useModal,
273
+ Nt as useResizeObserver,
273
274
  De as useTheme,
274
- xt as useToken,
275
- Wo as useUniqueKeysTree,
275
+ st as useToken,
276
+ Fo as useUniqueKeysTree,
276
277
  Je as useUploadItemRender,
277
- at as useWatch,
278
- Ot as useWindowSize,
278
+ mt as useWatch,
279
+ Bt as useWindowSize,
279
280
  re as version
280
281
  };
281
282
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}