@companix/uikit 0.0.77 → 0.0.79
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/Blank/Blank.scss +66 -0
- package/dist/Blank/index.d.ts +12 -0
- package/dist/FormGroup/index.d.ts +1 -1
- package/dist/ProgressRing/ProgressRing.scss +64 -0
- package/dist/ProgressRing/index.d.ts +9 -0
- package/dist/bundle.es.js +46 -41
- package/dist/bundle.es12.js +4 -4
- package/dist/bundle.es13.js +3 -3
- package/dist/bundle.es14.js +2 -2
- package/dist/bundle.es16.js +1 -1
- package/dist/bundle.es2.js +1 -1
- package/dist/bundle.es21.js +1 -1
- package/dist/bundle.es22.js +1 -1
- package/dist/bundle.es23.js +1 -1
- package/dist/bundle.es24.js +1 -1
- package/dist/bundle.es25.js +1 -1
- package/dist/bundle.es27.js +1 -1
- package/dist/bundle.es28.js +4 -4
- package/dist/bundle.es29.js +2 -2
- package/dist/bundle.es31.js +1 -1
- package/dist/bundle.es32.js +2 -2
- package/dist/bundle.es36.js +12 -35
- package/dist/bundle.es37.js +50 -20
- package/dist/bundle.es38.js +33 -9
- package/dist/bundle.es39.js +21 -11
- package/dist/bundle.es40.js +10 -26
- package/dist/bundle.es41.js +11 -38
- package/dist/bundle.es42.js +24 -48
- package/dist/bundle.es43.js +36 -40
- package/dist/bundle.es44.js +50 -8
- package/dist/bundle.es45.js +42 -19
- package/dist/bundle.es46.js +8 -24
- package/dist/bundle.es47.js +26 -22
- package/dist/bundle.es48.js +24 -23
- package/dist/bundle.es49.js +22 -87
- package/dist/bundle.es50.js +23 -17
- package/dist/bundle.es51.js +87 -92
- package/dist/bundle.es52.js +17 -73
- package/dist/bundle.es53.js +92 -23
- package/dist/bundle.es54.js +73 -38
- package/dist/bundle.es55.js +24 -5
- package/dist/bundle.es56.js +39 -14
- package/dist/bundle.es57.js +5 -14
- package/dist/bundle.es58.js +13 -69
- package/dist/bundle.es59.js +13 -67
- package/dist/bundle.es60.js +68 -9
- package/dist/bundle.es61.js +66 -41
- package/dist/bundle.es62.js +10 -14
- package/dist/bundle.es63.js +43 -32
- package/dist/bundle.es64.js +15 -70
- package/dist/bundle.es65.js +32 -14
- package/dist/bundle.es66.js +70 -75
- package/dist/bundle.es67.js +13 -48
- package/dist/bundle.es68.js +74 -13
- package/dist/bundle.es69.js +51 -0
- package/dist/bundle.es70.js +16 -0
- package/dist/bundle.es9.js +1 -1
- package/dist/css-properties.scss +2 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.scss +3 -1
- package/package.json +1 -1
- /package/dist/{Progress/Progress.scss → ProgressBar/ProgressBar.scss} +0 -0
- /package/dist/{Progress → ProgressBar}/index.d.ts +0 -0
package/dist/bundle.es39.js
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as n } from "react";
|
|
3
|
+
const i = n(({ storageKey: t, defaultColorScheme: o }) => /* @__PURE__ */ l(
|
|
4
|
+
"script",
|
|
5
|
+
{
|
|
6
|
+
suppressHydrationWarning: !0,
|
|
7
|
+
dangerouslySetInnerHTML: {
|
|
8
|
+
__html: `(${a.toString()})("${t}", "${o}")`
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
)), a = (t, o) => {
|
|
12
|
+
const [r, c] = ["theme-light", "theme-dark"];
|
|
13
|
+
try {
|
|
14
|
+
let e = localStorage.getItem(t) || o;
|
|
15
|
+
e === "system" && (e = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
16
|
+
const s = e === "dark" ? c : r;
|
|
17
|
+
document.documentElement.classList.remove(r, c), document.documentElement.classList.add(s), document.documentElement.style.colorScheme = e;
|
|
18
|
+
} catch {
|
|
19
|
+
}
|
|
11
20
|
};
|
|
12
21
|
export {
|
|
13
|
-
|
|
22
|
+
i as ColorSchemeScript,
|
|
23
|
+
a as colorSchemeScript
|
|
14
24
|
};
|
package/dist/bundle.es40.js
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
return {
|
|
12
|
-
api: {
|
|
13
|
-
show: (r) => {
|
|
14
|
-
e.emit({ ...r, id: m() });
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
Viewport: () => {
|
|
18
|
-
const r = n(null);
|
|
19
|
-
return s(() => {
|
|
20
|
-
e.emit = (o) => {
|
|
21
|
-
r.current && r.current.showAlert(o);
|
|
22
|
-
};
|
|
23
|
-
}, []), /* @__PURE__ */ i(p, { ref: r, ...t });
|
|
24
|
-
}
|
|
25
|
-
};
|
|
1
|
+
import { useState as s, useEffect as c } from "react";
|
|
2
|
+
const l = (e, a) => {
|
|
3
|
+
const [t, o] = s(() => {
|
|
4
|
+
const r = localStorage.getItem(e);
|
|
5
|
+
return r ? JSON.parse(r) : a;
|
|
6
|
+
});
|
|
7
|
+
return c(() => {
|
|
8
|
+
localStorage.setItem(e, JSON.stringify(t));
|
|
9
|
+
}, [t]), [t, o];
|
|
26
10
|
};
|
|
27
11
|
export {
|
|
28
|
-
|
|
12
|
+
l as useLocalStorage
|
|
29
13
|
};
|
package/dist/bundle.es41.js
CHANGED
|
@@ -1,41 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
api: {
|
|
13
|
-
show: (e) => {
|
|
14
|
-
const n = e.id ?? r();
|
|
15
|
-
return o.showToast({ ...e, id: n }), n;
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
Viewport: (e = {}) => {
|
|
19
|
-
const n = c(null);
|
|
20
|
-
return h(() => {
|
|
21
|
-
o.showToast = (s) => {
|
|
22
|
-
n.current && n.current.showToast(s);
|
|
23
|
-
};
|
|
24
|
-
}, []), /* @__PURE__ */ t(
|
|
25
|
-
a,
|
|
26
|
-
{
|
|
27
|
-
ref: n,
|
|
28
|
-
align: e.align ?? i.align,
|
|
29
|
-
closeIcon: e.closeIcon ?? i.closeIcon,
|
|
30
|
-
duration: e.duration ?? i.duration,
|
|
31
|
-
gap: e.gap ?? i.gap,
|
|
32
|
-
side: e.side ?? i.side,
|
|
33
|
-
swipeThreshold: e.swipeThreshold ?? i.swipeThreshold
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
1
|
+
import { useState as r, useCallback as t } from "react";
|
|
2
|
+
const f = (s = !1) => {
|
|
3
|
+
const [o, e] = r(s), a = t(() => {
|
|
4
|
+
e(!0);
|
|
5
|
+
}, []), l = t(() => {
|
|
6
|
+
e(!1);
|
|
7
|
+
}, []), u = t(() => {
|
|
8
|
+
e((n) => !n);
|
|
9
|
+
}, []);
|
|
10
|
+
return [o, a, l, u];
|
|
38
11
|
};
|
|
39
12
|
export {
|
|
40
|
-
|
|
13
|
+
f as useBooleanState
|
|
41
14
|
};
|
package/dist/bundle.es42.js
CHANGED
|
@@ -1,53 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
title: n,
|
|
11
|
-
description: c,
|
|
12
|
-
duration: L,
|
|
13
|
-
closeIcon: h,
|
|
14
|
-
onClosing: v,
|
|
15
|
-
onClosed: N,
|
|
16
|
-
closable: x = !0,
|
|
17
|
-
onInitialized: g
|
|
18
|
-
} = o;
|
|
19
|
-
j(() => {
|
|
20
|
-
f(!0);
|
|
21
|
-
}, []), E(() => {
|
|
22
|
-
s.current && g(s.current);
|
|
23
|
-
}, []);
|
|
24
|
-
const R = (i) => {
|
|
25
|
-
i || v(), u(i);
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { hash as m } from "@companix/utils-js";
|
|
3
|
+
import { useRef as n, useMemo as s } from "react";
|
|
4
|
+
import { Viewport as p } from "./bundle.es65.js";
|
|
5
|
+
const a = (t = {}) => {
|
|
6
|
+
const e = {
|
|
7
|
+
emit: (r) => {
|
|
8
|
+
console.error("uninitialized", r);
|
|
9
|
+
}
|
|
26
10
|
};
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
a && /* @__PURE__ */ e("div", { className: "toaster-icon", children: a }),
|
|
41
|
-
/* @__PURE__ */ l("div", { className: "toaster-content", children: [
|
|
42
|
-
n && /* @__PURE__ */ e(t.Title, { className: "toaster-title", children: n }),
|
|
43
|
-
c && /* @__PURE__ */ e(t.Description, { className: "toaster-description", children: c })
|
|
44
|
-
] }),
|
|
45
|
-
x && /* @__PURE__ */ e(m.Close, { className: "toaster-close toaster-close-placement", closeIcon: h })
|
|
46
|
-
]
|
|
11
|
+
return {
|
|
12
|
+
api: {
|
|
13
|
+
show: (r) => {
|
|
14
|
+
e.emit({ ...r, id: m() });
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
Viewport: () => {
|
|
18
|
+
const r = n(null);
|
|
19
|
+
return s(() => {
|
|
20
|
+
e.emit = (o) => {
|
|
21
|
+
r.current && r.current.showAlert(o);
|
|
22
|
+
};
|
|
23
|
+
}, []), /* @__PURE__ */ i(p, { ref: r, ...t });
|
|
47
24
|
}
|
|
48
|
-
|
|
25
|
+
};
|
|
49
26
|
};
|
|
50
|
-
m.Close = ({ closeIcon: o, className: r } = {}) => /* @__PURE__ */ e(t.Close, { className: r, children: o ?? /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M2.96967 2.96967C3.26256 2.67678 3.73744 2.67678 4.03033 2.96967L8 6.939L11.9697 2.96967C12.2626 2.67678 12.7374 2.67678 13.0303 2.96967C13.3232 3.26256 13.3232 3.73744 13.0303 4.03033L9.061 8L13.0303 11.9697C13.2966 12.2359 13.3208 12.6526 13.1029 12.9462L13.0303 13.0303C12.7374 13.3232 12.2626 13.3232 11.9697 13.0303L8 9.061L4.03033 13.0303C3.73744 13.3232 3.26256 13.3232 2.96967 13.0303C2.67678 12.7374 2.67678 12.2626 2.96967 11.9697L6.939 8L2.96967 4.03033C2.7034 3.76406 2.6792 3.3474 2.89705 3.05379L2.96967 2.96967Z" }) }) });
|
|
51
27
|
export {
|
|
52
|
-
|
|
28
|
+
a as createAlertAgent
|
|
53
29
|
};
|
package/dist/bundle.es43.js
CHANGED
|
@@ -1,45 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { hash as r } from "@companix/utils-js";
|
|
3
|
+
import { Viewport as a } from "./bundle.es66.js";
|
|
4
|
+
import { useRef as c, useMemo as h } from "react";
|
|
5
|
+
const m = (i = {}) => {
|
|
6
|
+
const o = {
|
|
7
|
+
showToast: (e) => {
|
|
8
|
+
console.error("uninitialized", e);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
11
|
return {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
api: {
|
|
13
|
+
show: (e) => {
|
|
14
|
+
const n = e.id ?? r();
|
|
15
|
+
return o.showToast({ ...e, id: n }), n;
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
Viewport: (e = {}) => {
|
|
19
|
+
const n = c(null);
|
|
20
|
+
return h(() => {
|
|
21
|
+
o.showToast = (s) => {
|
|
22
|
+
n.current && n.current.showToast(s);
|
|
23
|
+
};
|
|
24
|
+
}, []), /* @__PURE__ */ t(
|
|
25
|
+
a,
|
|
26
|
+
{
|
|
27
|
+
ref: n,
|
|
28
|
+
align: e.align ?? i.align,
|
|
29
|
+
closeIcon: e.closeIcon ?? i.closeIcon,
|
|
30
|
+
duration: e.duration ?? i.duration,
|
|
31
|
+
gap: e.gap ?? i.gap,
|
|
32
|
+
side: e.side ?? i.side,
|
|
33
|
+
swipeThreshold: e.swipeThreshold ?? i.swipeThreshold
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
15
37
|
};
|
|
16
|
-
}, O = ({ name: t, Open: e, Close: n, Content: l }) => {
|
|
17
|
-
const [{ data: c, open: o }, s] = h({ data: null, open: !1 });
|
|
18
|
-
x(() => {
|
|
19
|
-
e[t] = (a) => {
|
|
20
|
-
s({ data: a, open: !0 });
|
|
21
|
-
}, n[t] = () => {
|
|
22
|
-
o && p();
|
|
23
|
-
};
|
|
24
|
-
}, []);
|
|
25
|
-
const p = u(() => {
|
|
26
|
-
s(({ data: a }) => ({ data: a, open: !1 }));
|
|
27
|
-
}, []), f = u(() => {
|
|
28
|
-
s({ data: null, open: !1 });
|
|
29
|
-
}, []), d = u((a) => {
|
|
30
|
-
a || p();
|
|
31
|
-
}, []);
|
|
32
|
-
return c ? /* @__PURE__ */ r(i.Provider, { value: { open: o, onOpenChange: d, onClosed: f }, children: /* @__PURE__ */ r(l, { data: c, close: p }) }) : null;
|
|
33
|
-
}, i = g(null), S = () => {
|
|
34
|
-
const t = C(i);
|
|
35
|
-
if (!t)
|
|
36
|
-
throw new Error("Dialog context not provided");
|
|
37
|
-
return t;
|
|
38
|
-
}, b = ({ children: t, ...e }) => {
|
|
39
|
-
const n = S();
|
|
40
|
-
return /* @__PURE__ */ r(D, { ...n, ...e, children: t });
|
|
41
38
|
};
|
|
42
39
|
export {
|
|
43
|
-
|
|
44
|
-
$ as createDialogsRegistry
|
|
40
|
+
m as createToaster
|
|
45
41
|
};
|
package/dist/bundle.es44.js
CHANGED
|
@@ -1,11 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "@radix-ui/react-toast";
|
|
3
|
+
import { attr as T } from "@companix/utils-browser";
|
|
4
|
+
import { useState as d, useRef as b, useEffect as j, useLayoutEffect as E } from "react";
|
|
5
|
+
import { RemoveListener as I } from "./bundle.es57.js";
|
|
6
|
+
const m = (o) => {
|
|
7
|
+
const [r, u] = d(!0), [p, f] = d(!1), s = b(null), {
|
|
8
|
+
appearance: C = "neutral",
|
|
9
|
+
icon: a,
|
|
10
|
+
title: n,
|
|
11
|
+
description: c,
|
|
12
|
+
duration: L,
|
|
13
|
+
closeIcon: h,
|
|
14
|
+
onClosing: v,
|
|
15
|
+
onClosed: N,
|
|
16
|
+
closable: x = !0,
|
|
17
|
+
onInitialized: g
|
|
18
|
+
} = o;
|
|
19
|
+
j(() => {
|
|
20
|
+
f(!0);
|
|
21
|
+
}, []), E(() => {
|
|
22
|
+
s.current && g(s.current);
|
|
23
|
+
}, []);
|
|
24
|
+
const R = (i) => {
|
|
25
|
+
i || v(), u(i);
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ l(
|
|
28
|
+
t.Root,
|
|
29
|
+
{
|
|
30
|
+
ref: s,
|
|
31
|
+
"data-expanded": !0,
|
|
32
|
+
"data-appearance": C,
|
|
33
|
+
"data-mounted": T(p),
|
|
34
|
+
className: "toaster",
|
|
35
|
+
open: r,
|
|
36
|
+
onOpenChange: R,
|
|
37
|
+
duration: L,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ e(I, { callback: N }),
|
|
40
|
+
a && /* @__PURE__ */ e("div", { className: "toaster-icon", children: a }),
|
|
41
|
+
/* @__PURE__ */ l("div", { className: "toaster-content", children: [
|
|
42
|
+
n && /* @__PURE__ */ e(t.Title, { className: "toaster-title", children: n }),
|
|
43
|
+
c && /* @__PURE__ */ e(t.Description, { className: "toaster-description", children: c })
|
|
44
|
+
] }),
|
|
45
|
+
x && /* @__PURE__ */ e(m.Close, { className: "toaster-close toaster-close-placement", closeIcon: h })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
8
49
|
};
|
|
50
|
+
m.Close = ({ closeIcon: o, className: r } = {}) => /* @__PURE__ */ e(t.Close, { className: r, children: o ?? /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M2.96967 2.96967C3.26256 2.67678 3.73744 2.67678 4.03033 2.96967L8 6.939L11.9697 2.96967C12.2626 2.67678 12.7374 2.67678 13.0303 2.96967C13.3232 3.26256 13.3232 3.73744 13.0303 4.03033L9.061 8L13.0303 11.9697C13.2966 12.2359 13.3208 12.6526 13.1029 12.9462L13.0303 13.0303C12.7374 13.3232 12.2626 13.3232 11.9697 13.0303L8 9.061L4.03033 13.0303C3.73744 13.3232 3.26256 13.3232 2.96967 13.0303C2.67678 12.7374 2.67678 12.2626 2.96967 11.9697L6.939 8L2.96967 4.03033C2.7034 3.76406 2.6792 3.3474 2.89705 3.05379L2.96967 2.96967Z" }) }) });
|
|
9
51
|
export {
|
|
10
|
-
|
|
52
|
+
m as Toast
|
|
11
53
|
};
|
package/dist/bundle.es45.js
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsx as r, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as C, createContext as g, useState as h, useEffect as x, useCallback as u } from "react";
|
|
3
|
+
import { Dialog as D } from "./bundle.es22.js";
|
|
4
|
+
import { hash as v } from "@companix/utils-js";
|
|
5
|
+
const $ = (t) => {
|
|
6
|
+
const e = {}, n = {}, l = [], c = v();
|
|
7
|
+
for (const o in t)
|
|
8
|
+
e[o] = () => {
|
|
9
|
+
}, n[o] = () => {
|
|
10
|
+
}, l.push(() => /* @__PURE__ */ r(O, { Open: e, Close: n, name: o, Content: t[o] }));
|
|
11
|
+
return {
|
|
12
|
+
Open: e,
|
|
13
|
+
Close: n,
|
|
14
|
+
Overlay: () => /* @__PURE__ */ r(m, { children: l.map((o, s) => /* @__PURE__ */ r(o, {}, `popup-${c}-${s}`)) })
|
|
15
|
+
};
|
|
16
|
+
}, O = ({ name: t, Open: e, Close: n, Content: l }) => {
|
|
17
|
+
const [{ data: c, open: o }, s] = h({ data: null, open: !1 });
|
|
18
|
+
x(() => {
|
|
19
|
+
e[t] = (a) => {
|
|
20
|
+
s({ data: a, open: !0 });
|
|
21
|
+
}, n[t] = () => {
|
|
22
|
+
o && p();
|
|
23
|
+
};
|
|
24
|
+
}, []);
|
|
25
|
+
const p = u(() => {
|
|
26
|
+
s(({ data: a }) => ({ data: a, open: !1 }));
|
|
27
|
+
}, []), f = u(() => {
|
|
28
|
+
s({ data: null, open: !1 });
|
|
29
|
+
}, []), d = u((a) => {
|
|
30
|
+
a || p();
|
|
31
|
+
}, []);
|
|
32
|
+
return c ? /* @__PURE__ */ r(i.Provider, { value: { open: o, onOpenChange: d, onClosed: f }, children: /* @__PURE__ */ r(l, { data: c, close: p }) }) : null;
|
|
33
|
+
}, i = g(null), S = () => {
|
|
34
|
+
const t = C(i);
|
|
35
|
+
if (!t)
|
|
36
|
+
throw new Error("Dialog context not provided");
|
|
37
|
+
return t;
|
|
38
|
+
}, b = ({ children: t, ...e }) => {
|
|
39
|
+
const n = S();
|
|
40
|
+
return /* @__PURE__ */ r(D, { ...n, ...e, children: t });
|
|
19
41
|
};
|
|
20
42
|
export {
|
|
21
|
-
|
|
43
|
+
b as DialogShell,
|
|
44
|
+
$ as createDialogsRegistry
|
|
22
45
|
};
|
package/dist/bundle.es46.js
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (e <= 36)
|
|
9
|
-
return 13;
|
|
10
|
-
if (e <= 44)
|
|
11
|
-
return 14;
|
|
12
|
-
if (e <= 48)
|
|
13
|
-
return 17;
|
|
14
|
-
if (e < 56)
|
|
15
|
-
return 18;
|
|
16
|
-
if (e <= 64)
|
|
17
|
-
return 21;
|
|
18
|
-
if (e <= 88)
|
|
19
|
-
return 26;
|
|
20
|
-
if (e <= 96)
|
|
21
|
-
return 30;
|
|
22
|
-
const n = Math.ceil(e * 0.3125), E = n % 2;
|
|
23
|
-
return n + E;
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as m } from "./bundle.es10.js";
|
|
3
|
+
const i = (o) => {
|
|
4
|
+
const r = {};
|
|
5
|
+
for (const t in o)
|
|
6
|
+
r[t] = ({ data: e, ...n }) => /* @__PURE__ */ c(m, { content: ({ close: s }) => o[t]({ data: e, close: s }), ...n });
|
|
7
|
+
return r;
|
|
24
8
|
};
|
|
25
9
|
export {
|
|
26
|
-
|
|
10
|
+
i as createPopoversRegistry
|
|
27
11
|
};
|
package/dist/bundle.es47.js
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const c = `#${h(r, e)}`, s = o.current.querySelector(c);
|
|
8
|
-
s != null ? (t.observer = new ResizeObserver(() => {
|
|
9
|
-
const { clientHeight: i, clientWidth: a, offsetLeft: f, offsetTop: b } = s;
|
|
10
|
-
n({
|
|
11
|
-
width: a,
|
|
12
|
-
height: i,
|
|
13
|
-
transform: `translateX(${Math.floor(f)}px) translateY(${Math.floor(b)}px)`
|
|
14
|
-
});
|
|
15
|
-
}), t.observer.observe(s)) : n({ display: "none" });
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as a, useContext as l, useState as i, useMemo as p } from "react";
|
|
3
|
+
const V = (o) => {
|
|
4
|
+
const e = a({
|
|
5
|
+
value: o,
|
|
6
|
+
setValue: () => {
|
|
16
7
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
}), r = { setValue: () => {
|
|
9
|
+
} };
|
|
10
|
+
return [({ initialValue: t, children: s }) => {
|
|
11
|
+
const [v, n] = i(t ?? o);
|
|
12
|
+
return p(() => {
|
|
13
|
+
r.setValue = n;
|
|
14
|
+
}, []), /* @__PURE__ */ u(e.Provider, { value: { value: v, setValue: n }, children: s });
|
|
15
|
+
}, () => {
|
|
16
|
+
const { value: t, setValue: s } = l(e);
|
|
17
|
+
return [t, s];
|
|
18
|
+
}, (t) => r.setValue(t)];
|
|
19
|
+
}, P = (o) => {
|
|
20
|
+
const e = a(o);
|
|
21
|
+
return [
|
|
22
|
+
({ value: r, children: c }) => /* @__PURE__ */ u(e.Provider, { value: r, children: c }),
|
|
23
|
+
() => l(e)
|
|
24
|
+
];
|
|
25
|
+
};
|
|
22
26
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
V as createScope,
|
|
28
|
+
P as createStaticScope
|
|
25
29
|
};
|
package/dist/bundle.es48.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
const _ = (e) => {
|
|
2
|
+
if (e <= 16)
|
|
3
|
+
return 5;
|
|
4
|
+
if (e <= 24)
|
|
5
|
+
return 8;
|
|
6
|
+
if (e <= 32)
|
|
7
|
+
return 10;
|
|
8
|
+
if (e <= 36)
|
|
9
|
+
return 13;
|
|
10
|
+
if (e <= 44)
|
|
11
|
+
return 14;
|
|
12
|
+
if (e <= 48)
|
|
13
|
+
return 17;
|
|
14
|
+
if (e < 56)
|
|
15
|
+
return 18;
|
|
16
|
+
if (e <= 64)
|
|
17
|
+
return 21;
|
|
18
|
+
if (e <= 88)
|
|
19
|
+
return 26;
|
|
20
|
+
if (e <= 96)
|
|
21
|
+
return 30;
|
|
22
|
+
const n = Math.ceil(e * 0.3125), E = n % 2;
|
|
23
|
+
return n + E;
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
_ as getInitialsFontSize
|
|
26
27
|
};
|