@wrdagency/blockout 0.0.18 → 0.1.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.
- package/dist/2NBKRL7C-7XoDiJp9.js +85 -0
- package/dist/2RSXSRCN-qt84MtKs.js +61 -0
- package/dist/4CMBR7SL-BHIN8rB4.js +308 -0
- package/dist/5JTVDSTH-CG1NL6Fw.js +174 -0
- package/dist/5VQZOHHZ-CscZGerP.js +59 -0
- package/dist/6VRAQV3D-Clhw_nNS.js +201 -0
- package/dist/7PRQYBBV-91wrWGjk.js +17 -0
- package/dist/ArrowRight.es-xyNbtVOa.js +60 -0
- package/dist/DG5U6ZEL-CVj-Czp2.js +17 -0
- package/dist/F5MUBM3I-87B2_4WK.js +54 -0
- package/dist/LMDWO4NN--KEvZePp.js +610 -0
- package/dist/MTZPJQMC-DyCWBG18.js +14 -0
- package/dist/P7GR5CS5-BoOYUfSQ.js +19 -0
- package/dist/PFRGBC2K-BEg8ahbY.js +303 -0
- package/dist/RS7LB2H4-D0fWv5qu.js +15 -0
- package/dist/RZ4GPYOB-13-5LlEb.js +37 -0
- package/dist/S43UC3DV-Dn8EFLaT.js +22 -0
- package/dist/Square.es-KJLdY11q.js +72 -0
- package/dist/T7VMP3TM-DeRMoW8g.js +77 -0
- package/dist/TP7N7UIH-BHb1rEeb.js +34 -0
- package/dist/UQQRIHDV-Bu8e1bYU.js +69 -0
- package/dist/UYGDZTLQ-DcCmv5SE.js +12 -0
- package/dist/VIIRIBF3-D5DmZNtI.js +26 -0
- package/dist/WMYDSCNQ-DECXdiUT.js +1346 -0
- package/dist/WYCIER3C-8jmp2F15.js +175 -0
- package/dist/YV4JVR4I-LkUIiJWj.js +351 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/assets/style2.css +1 -0
- package/dist/assets/style3.css +1 -0
- package/dist/assets/style4.css +1 -0
- package/dist/assets/styles.css +1 -1
- package/dist/components/block-editor/editor.d.ts +5 -0
- package/dist/components/block-editor/editor.js +6 -0
- package/dist/components/block-editor/index.d.ts +1 -0
- package/dist/components/block-editor/index.js +4 -0
- package/dist/components/breadcrumbs/index.js +87 -31
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/button/icon.d.ts +1 -2
- package/dist/components/button/icon.js +10 -3
- package/dist/components/button/index.d.ts +4 -0
- package/dist/components/controls/base-control/affix.js +7 -7
- package/dist/components/controls/base-control/index.js +11 -11
- package/dist/components/controls/base-popover-control/index.d.ts +9 -0
- package/dist/components/controls/base-popover-control/index.js +47 -0
- package/dist/components/controls/checkbox-control/index.d.ts +8 -0
- package/dist/components/controls/checkbox-control/index.js +57 -0
- package/dist/components/controls/choice-control/choice.js +13 -11
- package/dist/components/controls/choice-control/index.js +1 -1
- package/dist/components/controls/index.d.ts +4 -1
- package/dist/components/controls/index.js +25 -16
- package/dist/components/controls/number-control/index.js +29 -27
- package/dist/components/controls/password-control/index.js +1 -1
- package/dist/components/controls/recurrence-control/index.d.ts +8 -0
- package/dist/components/controls/recurrence-control/index.js +208 -0
- package/dist/components/controls/select-control/component.d.ts +12 -0
- package/dist/components/controls/select-control/component.js +1879 -0
- package/dist/components/controls/select-control/index.d.ts +2 -12
- package/dist/components/controls/select-control/index.js +5 -1860
- package/dist/components/controls/select-control/options.d.ts +7 -0
- package/dist/components/controls/select-control/options.js +9 -0
- package/dist/components/controls/textarea-control/index.js +1 -1
- package/dist/components/controls/toggle-control/index.js +11 -9
- package/dist/components/controls/toggle-group-control/index.d.ts +19 -0
- package/dist/components/controls/toggle-group-control/index.js +50 -0
- package/dist/components/data-table/header.js +120 -171
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/filesystem/file.d.ts +7 -0
- package/dist/components/filesystem/file.js +44 -0
- package/dist/components/filesystem/folder.d.ts +6 -0
- package/dist/components/filesystem/folder.js +160 -0
- package/dist/components/filesystem/icon.d.ts +7 -0
- package/dist/components/filesystem/icon.js +908 -0
- package/dist/components/filesystem/index.js +14 -0
- package/dist/components/filesystem/list.d.ts +4 -0
- package/dist/components/filesystem/list.js +18 -0
- package/dist/components/filesystem/root.d.ts +3 -0
- package/dist/components/filesystem/root.js +7 -0
- package/dist/components/form/components/index.js +12 -12
- package/dist/components/form/components/pagination.js +23 -16
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +50 -31
- package/dist/components/markdown/{index.d.ts → editor/component.d.ts} +2 -2
- package/dist/components/markdown/editor/component.js +25583 -0
- package/dist/components/markdown/editor/index.d.ts +1 -0
- package/dist/components/markdown/editor/index.js +4 -0
- package/dist/components/markdown/formats.js +29 -27
- package/dist/components/markdown/index.js +5 -25842
- package/dist/components/markdown/prose.d.ts +3 -0
- package/dist/components/markdown/prose.js +15 -0
- package/dist/components/menu/index.js +24 -23
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +14 -42
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +25 -91
- package/dist/components/progress/index.js +1 -1
- package/dist/components/tabs/index.js +12 -0
- package/dist/components/tabs/list.d.ts +7 -0
- package/dist/components/tabs/list.js +42 -0
- package/dist/components/tabs/panel.d.ts +8 -0
- package/dist/components/tabs/panel.js +132 -0
- package/dist/components/tabs/root.d.ts +9 -0
- package/dist/components/tabs/root.js +173 -0
- package/dist/components/tabs/tab.d.ts +7 -0
- package/dist/components/tabs/tab.js +81 -0
- package/dist/components/toolbar/index.js +27 -0
- package/dist/components/toolbar/root.d.ts +6 -0
- package/dist/components/toolbar/root.js +6 -0
- package/dist/composite-provider-DxKEAxsZ.js +10 -0
- package/dist/floating-ui.dom-BqewRPVB.js +1124 -0
- package/dist/hooks/state.d.ts +4 -0
- package/dist/hooks/state.js +7 -0
- package/dist/hooks/theme.js +7 -38
- package/dist/index-1AjPIqTN.js +73 -0
- package/dist/index-B5y9bioP.js +258 -0
- package/dist/index-BI5rPXbu.js +391 -0
- package/dist/index.js +63 -40
- package/dist/{item-D9r2-3fk.js → item-BrZqCoM7.js} +240 -234
- package/dist/options-Cfoqhxw2.js +96 -0
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.js +4 -0
- package/dist/primitives/resizable/index.js +1 -1
- package/dist/primitives/scroll-area/index.d.ts +7 -0
- package/dist/primitives/scroll-area/index.js +545 -0
- package/dist/primitives/truncate/index.d.ts +7 -0
- package/dist/primitives/truncate/index.js +46 -0
- package/dist/primitives/visually-hidden/index.d.ts +2 -2
- package/dist/primitives/visually-hidden/index.js +13 -3
- package/dist/root-CdR32nP9.js +73 -0
- package/dist/tslib.es6-DN7pKd6F.js +44 -0
- package/dist/types/date.d.ts +39 -0
- package/dist/types/date.js +1749 -0
- package/dist/types/options.d.ts +8 -6
- package/dist/utils/components.d.ts +5 -0
- package/dist/utils/components.js +14 -0
- package/dist/utils/date.d.ts +1 -0
- package/dist/utils/date.js +15 -0
- package/dist/utils/string.d.ts +4 -0
- package/dist/utils/string.js +18 -0
- package/package.json +4 -1
- package/dist/2NBKRL7C-D-Q0qGRV.js +0 -81
- package/dist/P7GR5CS5-qyeuZVEs.js +0 -640
- package/dist/T7VMP3TM-BxgFbvdx.js +0 -2106
- package/dist/UQQRIHDV-BGs025hb.js +0 -1046
- package/dist/VIIRIBF3-D9clDhln.js +0 -21
- package/dist/floating-ui.dom-9sqP7IwC.js +0 -1512
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as e } from "../../utils/css.js";
|
|
3
|
+
const t = ({
|
|
4
|
+
className: o,
|
|
5
|
+
...r
|
|
6
|
+
}) => /* @__PURE__ */ m(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: e("component-markdown__prose", o),
|
|
10
|
+
...r
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
export {
|
|
14
|
+
t as Prose
|
|
15
|
+
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { cn as E } from "../../utils/css.js";
|
|
3
|
-
import { M as V, a as C, b as R, c as z } from "../../item-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { M as V, a as C, b as R, c as z } from "../../item-BrZqCoM7.js";
|
|
4
|
+
import { u as H } from "../../VIIRIBF3-D5DmZNtI.js";
|
|
5
|
+
import { u as I } from "../../MTZPJQMC-DyCWBG18.js";
|
|
6
|
+
import { a as P } from "../../YV4JVR4I-LkUIiJWj.js";
|
|
7
|
+
import { a as _, _ as x, i as O, s as j, m as L, o as f, n as T, v as U, b as B, a1 as D, r as q, f as y, q as k } from "../../LMDWO4NN--KEvZePp.js";
|
|
7
8
|
import { useMemo as w, useState as Z } from "react";
|
|
8
|
-
import '../../assets/
|
|
9
|
+
import '../../assets/index17.css';var g = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z", F = "div", h = 30, s = h / 2, G = {
|
|
9
10
|
top: `rotate(180 ${s} ${s})`,
|
|
10
11
|
right: `rotate(-90 ${s} ${s})`,
|
|
11
12
|
bottom: `rotate(0 ${s} ${s})`,
|
|
12
13
|
left: `rotate(90 ${s} ${s})`
|
|
13
14
|
};
|
|
14
15
|
function J(o) {
|
|
15
|
-
const [r, t] = Z(), e =
|
|
16
|
+
const [r, t] = Z(), e = P(o, "contentElement");
|
|
16
17
|
return B(() => {
|
|
17
18
|
if (!e) return;
|
|
18
19
|
const u = D(e).getComputedStyle(e);
|
|
@@ -23,13 +24,13 @@ function K(o) {
|
|
|
23
24
|
var r;
|
|
24
25
|
return o ? (r = o.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/)) == null ? void 0 : r[1] : void 0;
|
|
25
26
|
}
|
|
26
|
-
var M =
|
|
27
|
+
var M = _(
|
|
27
28
|
function(r) {
|
|
28
29
|
var t = r, {
|
|
29
30
|
store: e,
|
|
30
31
|
size: i = h,
|
|
31
32
|
borderWidth: u
|
|
32
|
-
} = t, c =
|
|
33
|
+
} = t, c = x(t, [
|
|
33
34
|
"store",
|
|
34
35
|
"size",
|
|
35
36
|
"borderWidth"
|
|
@@ -39,17 +40,17 @@ var M = P(
|
|
|
39
40
|
e,
|
|
40
41
|
process.env.NODE_ENV !== "production" && "PopoverArrow must be wrapped in a Popover component."
|
|
41
42
|
);
|
|
42
|
-
const
|
|
43
|
+
const p = P(
|
|
43
44
|
e,
|
|
44
|
-
(
|
|
45
|
-
), l = j(), n = J(e), S = (n == null ? void 0 : n.getPropertyValue("background-color")) || "none", W = (n == null ? void 0 : n.getPropertyValue(`border-${
|
|
45
|
+
(d) => d.currentPlacement.split("-")[0]
|
|
46
|
+
), l = j(), n = J(e), S = (n == null ? void 0 : n.getPropertyValue("background-color")) || "none", W = (n == null ? void 0 : n.getPropertyValue(`border-${p}-color`)) || "none", A = w(() => {
|
|
46
47
|
if (u != null) return u;
|
|
47
48
|
if (!n) return 0;
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
const b = n.getPropertyValue(`border-${
|
|
49
|
+
const d = K(n);
|
|
50
|
+
if (d) return Number.parseInt(d);
|
|
51
|
+
const b = n.getPropertyValue(`border-${p}-width`);
|
|
51
52
|
return b ? Number.parseInt(b) : 0;
|
|
52
|
-
}, [u, n,
|
|
53
|
+
}, [u, n, p]) * 2 * (h / i), v = G[p], N = w(
|
|
53
54
|
() => /* @__PURE__ */ a("svg", { display: "block", viewBox: "0 0 30 30", children: /* @__PURE__ */ m("g", { transform: v, children: [
|
|
54
55
|
/* @__PURE__ */ a("path", { fill: "none", d: g, mask: `url(#${l})` }),
|
|
55
56
|
/* @__PURE__ */ a("path", { stroke: "none", d: g }),
|
|
@@ -86,22 +87,22 @@ var M = P(
|
|
|
86
87
|
}
|
|
87
88
|
);
|
|
88
89
|
q(
|
|
89
|
-
|
|
90
|
+
y(function(r) {
|
|
90
91
|
const t = M(r);
|
|
91
|
-
return
|
|
92
|
+
return k(F, t);
|
|
92
93
|
})
|
|
93
94
|
);
|
|
94
|
-
var Q = "div", X =
|
|
95
|
+
var Q = "div", X = _(
|
|
95
96
|
function(r) {
|
|
96
|
-
var t = r, { store: e } = t, i =
|
|
97
|
+
var t = r, { store: e } = t, i = x(t, ["store"]);
|
|
97
98
|
const u = H();
|
|
98
99
|
return e = e || u, M(f({ store: e }, i));
|
|
99
100
|
}
|
|
100
|
-
), Y =
|
|
101
|
+
), Y = y(function(r) {
|
|
101
102
|
const t = X(r);
|
|
102
|
-
return
|
|
103
|
+
return k(Q, t);
|
|
103
104
|
});
|
|
104
|
-
const
|
|
105
|
+
const ce = ({ className: o, items: r, children: t }) => /* @__PURE__ */ m(V, { children: [
|
|
105
106
|
/* @__PURE__ */ a(C, { className: E("component-menu__button", o), children: t }),
|
|
106
107
|
/* @__PURE__ */ m(
|
|
107
108
|
R,
|
|
@@ -127,5 +128,5 @@ const ue = ({ className: o, items: r, children: t }) => /* @__PURE__ */ m(V, { c
|
|
|
127
128
|
)
|
|
128
129
|
] });
|
|
129
130
|
export {
|
|
130
|
-
|
|
131
|
+
ce as Menu
|
|
131
132
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { EmptyIcon as c } from "../icon.js";
|
|
3
|
-
import { M as t } from "../../../2NBKRL7C-
|
|
3
|
+
import { M as t } from "../../../2NBKRL7C-7XoDiJp9.js";
|
|
4
4
|
const l = ({ item: n }) => {
|
|
5
5
|
const m = n.icon || c;
|
|
6
6
|
return /* @__PURE__ */ o(
|
|
@@ -1,46 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, t), t;
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { u } from "../../../VIIRIBF3-D5DmZNtI.js";
|
|
3
|
+
import { u as p } from "../../../TP7N7UIH-BHb1rEeb.js";
|
|
4
|
+
import { f as m, a as c, q as f, _, o as i } from "../../../LMDWO4NN--KEvZePp.js";
|
|
5
|
+
var M = "hr", S = c(
|
|
6
|
+
function(e) {
|
|
7
|
+
var r = e, { store: o } = r, a = _(r, ["store"]);
|
|
8
|
+
const s = u();
|
|
9
|
+
return o = o || s, a = p(i({ store: o }, a)), a;
|
|
11
10
|
}
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return m(x, r);
|
|
11
|
+
), l = m(function(e) {
|
|
12
|
+
const r = S(e);
|
|
13
|
+
return f(M, r);
|
|
16
14
|
});
|
|
17
|
-
|
|
18
|
-
var r = o, { store: e } = r, t = p(r, ["store"]);
|
|
19
|
-
const n = h();
|
|
20
|
-
e = e || n, C(
|
|
21
|
-
e,
|
|
22
|
-
process.env.NODE_ENV !== "production" && "CompositeSeparator must be wrapped in a Composite component."
|
|
23
|
-
);
|
|
24
|
-
const S = e.useState(
|
|
25
|
-
(_) => _.orientation === "horizontal" ? "vertical" : "horizontal"
|
|
26
|
-
);
|
|
27
|
-
return t = c(d(i({}, t), { orientation: S })), t;
|
|
28
|
-
});
|
|
29
|
-
u(function(o) {
|
|
30
|
-
const r = v(o);
|
|
31
|
-
return m(M, r);
|
|
32
|
-
});
|
|
33
|
-
var N = "hr", b = s(
|
|
34
|
-
function(o) {
|
|
35
|
-
var r = o, { store: e } = r, t = p(r, ["store"]);
|
|
36
|
-
const n = l();
|
|
37
|
-
return e = e || n, t = v(i({ store: e }, t)), t;
|
|
38
|
-
}
|
|
39
|
-
), P = u(function(o) {
|
|
40
|
-
const r = b(o);
|
|
41
|
-
return m(N, r);
|
|
42
|
-
});
|
|
43
|
-
const E = () => /* @__PURE__ */ f(P, { className: "component-menu__separator" });
|
|
15
|
+
const h = () => /* @__PURE__ */ n(l, { className: "component-menu__separator" });
|
|
44
16
|
export {
|
|
45
|
-
|
|
17
|
+
h as SeparatorMenuItem
|
|
46
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { S as p } from "../../../item-
|
|
2
|
+
import { S as p } from "../../../item-BrZqCoM7.js";
|
|
3
3
|
import "../icon.js";
|
|
4
|
-
import "../../../2NBKRL7C-
|
|
4
|
+
import "../../../2NBKRL7C-7XoDiJp9.js";
|
|
5
5
|
export {
|
|
6
6
|
p as SubmenuMenuItem
|
|
7
7
|
};
|
|
@@ -1,109 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { EmptyIcon as
|
|
6
|
-
import { M as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
[
|
|
13
|
-
"duotone",
|
|
14
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
15
|
-
"path",
|
|
16
|
-
{
|
|
17
|
-
d: "M216,48V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
|
|
18
|
-
opacity: "0.2"
|
|
19
|
-
}
|
|
20
|
-
), /* @__PURE__ */ e.createElement("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z" }))
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"fill",
|
|
24
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm-34.34,77.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"light",
|
|
28
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM222,48V208a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48Zm-12,0a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2Z" }))
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
"regular",
|
|
32
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z" }))
|
|
33
|
-
],
|
|
34
|
-
[
|
|
35
|
-
"thin",
|
|
36
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM220,48V208a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48Zm-8,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4Z" }))
|
|
37
|
-
]
|
|
38
|
-
]), _ = e.forwardRef((a, n) => /* @__PURE__ */ e.createElement(H, { ref: n, ...a, weights: s }));
|
|
39
|
-
_.displayName = "CheckSquareIcon";
|
|
40
|
-
const u = /* @__PURE__ */ new Map([
|
|
41
|
-
[
|
|
42
|
-
"bold",
|
|
43
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,176H52V52H204Z" }))
|
|
44
|
-
],
|
|
45
|
-
[
|
|
46
|
-
"duotone",
|
|
47
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
48
|
-
"path",
|
|
49
|
-
{
|
|
50
|
-
d: "M216,48V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
|
|
51
|
-
opacity: "0.2"
|
|
52
|
-
}
|
|
53
|
-
), /* @__PURE__ */ e.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208Z" }))
|
|
54
|
-
],
|
|
55
|
-
[
|
|
56
|
-
"fill",
|
|
57
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z" }))
|
|
58
|
-
],
|
|
59
|
-
[
|
|
60
|
-
"light",
|
|
61
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34Zm2,174a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z" }))
|
|
62
|
-
],
|
|
63
|
-
[
|
|
64
|
-
"regular",
|
|
65
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208Z" }))
|
|
66
|
-
],
|
|
67
|
-
[
|
|
68
|
-
"thin",
|
|
69
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36Zm4,172a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z" }))
|
|
70
|
-
]
|
|
71
|
-
]), p = e.forwardRef((a, n) => /* @__PURE__ */ e.createElement(H, { ref: n, ...a, weights: u }));
|
|
72
|
-
p.displayName = "SquareIcon";
|
|
73
|
-
const f = ({ item: a }) => {
|
|
74
|
-
const n = a.icon || h, V = () => {
|
|
75
|
-
var m, o, r;
|
|
76
|
-
const c = !a.checked;
|
|
77
|
-
(m = a.onToggle) == null || m.call(a, c), c ? (o = a.onCheck) == null || o.call(a) : (r = a.onUncheck) == null || r.call(a);
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../../utils/css.js";
|
|
3
|
+
import { r as a, a as p } from "../../../Square.es-KJLdY11q.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { EmptyIcon as r } from "../icon.js";
|
|
6
|
+
import { M as d } from "../../../2NBKRL7C-7XoDiJp9.js";
|
|
7
|
+
const x = ({ item: e }) => {
|
|
8
|
+
const l = e.icon || r, s = () => {
|
|
9
|
+
var _, m, t;
|
|
10
|
+
const c = !e.checked;
|
|
11
|
+
(_ = e.onToggle) == null || _.call(e, c), c ? (m = e.onCheck) == null || m.call(e) : (t = e.onUncheck) == null || t.call(e);
|
|
78
12
|
};
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
|
|
13
|
+
return /* @__PURE__ */ o(
|
|
14
|
+
d,
|
|
81
15
|
{
|
|
82
16
|
hideOnClick: !1,
|
|
83
|
-
className:
|
|
17
|
+
className: i(
|
|
84
18
|
"component-menu__item component-menu__item--toggle",
|
|
85
|
-
|
|
19
|
+
e.checked && "component-menu__item--toggle--checked"
|
|
86
20
|
),
|
|
87
|
-
onClick:
|
|
21
|
+
onClick: s,
|
|
88
22
|
children: [
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
|
|
94
|
-
|
|
23
|
+
/* @__PURE__ */ n(l, { className: "component-menu__item__icon component-menu__item__icon--pictoral" }),
|
|
24
|
+
/* @__PURE__ */ o("div", { className: "component-menu__item__text", children: [
|
|
25
|
+
/* @__PURE__ */ o("div", { className: "component-menu__item__text__header", children: [
|
|
26
|
+
/* @__PURE__ */ n("div", { className: "component-menu__item__label", children: e.label }),
|
|
27
|
+
e.checked ? /* @__PURE__ */ n(
|
|
28
|
+
a,
|
|
95
29
|
{
|
|
96
30
|
weight: "fill",
|
|
97
31
|
className: "component-menu__item__icon component-menu__item__icon--checkbox"
|
|
98
32
|
}
|
|
99
|
-
) : /* @__PURE__ */
|
|
33
|
+
) : /* @__PURE__ */ n(p, { className: "component-menu__item__icon component-menu__item__icon--checkbox" })
|
|
100
34
|
] }),
|
|
101
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ n("p", { className: "component-menu__item__description", children: e.description })
|
|
102
36
|
] })
|
|
103
37
|
]
|
|
104
38
|
}
|
|
105
39
|
);
|
|
106
40
|
};
|
|
107
41
|
export {
|
|
108
|
-
|
|
42
|
+
x as ToggleMenuItem
|
|
109
43
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { List as o } from "./list.js";
|
|
2
|
+
import { Panel as r } from "./panel.js";
|
|
3
|
+
import { Tabs as m } from "./root.js";
|
|
4
|
+
import { Tab as s } from "./tab.js";
|
|
5
|
+
import '../../assets/index2.css';const p = Object.assign(m, {
|
|
6
|
+
Panel: r,
|
|
7
|
+
List: o,
|
|
8
|
+
Tab: s
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
p as Tabs
|
|
12
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "../../utils/css.js";
|
|
3
|
+
import { a as u, T as b } from "../../UYGDZTLQ-DcCmv5SE.js";
|
|
4
|
+
import { u as f } from "../../5JTVDSTH-CG1NL6Fw.js";
|
|
5
|
+
import { f as l, a as v, q as d, _ as T, i as _, l as L, o as i } from "../../LMDWO4NN--KEvZePp.js";
|
|
6
|
+
var x = "div", E = v(
|
|
7
|
+
function(r) {
|
|
8
|
+
var e = r, { store: t } = e, o = T(e, ["store"]);
|
|
9
|
+
const p = u();
|
|
10
|
+
t = t || p, _(
|
|
11
|
+
t,
|
|
12
|
+
process.env.NODE_ENV !== "production" && "TabList must receive a `store` prop or be wrapped in a TabProvider component."
|
|
13
|
+
);
|
|
14
|
+
const c = t.useState(
|
|
15
|
+
(a) => a.orientation === "both" ? void 0 : a.orientation
|
|
16
|
+
);
|
|
17
|
+
return o = L(
|
|
18
|
+
o,
|
|
19
|
+
(a) => /* @__PURE__ */ n(b, { value: t, children: a }),
|
|
20
|
+
[t]
|
|
21
|
+
), t.composite && (o = i({
|
|
22
|
+
focusable: !1
|
|
23
|
+
}, o)), o = i({
|
|
24
|
+
role: "tablist",
|
|
25
|
+
"aria-orientation": c
|
|
26
|
+
}, o), o = f(i({ store: t }, o)), o;
|
|
27
|
+
}
|
|
28
|
+
), N = l(function(r) {
|
|
29
|
+
const e = E(r);
|
|
30
|
+
return d(x, e);
|
|
31
|
+
});
|
|
32
|
+
const R = ({ className: s, children: r, style: e }) => /* @__PURE__ */ n(
|
|
33
|
+
N,
|
|
34
|
+
{
|
|
35
|
+
className: m("component-tabs__list", s),
|
|
36
|
+
style: e,
|
|
37
|
+
children: r
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
export {
|
|
41
|
+
R as List
|
|
42
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import { cn as A } from "../../utils/css.js";
|
|
3
|
+
import { a as K, T as O } from "../../UYGDZTLQ-DcCmv5SE.js";
|
|
4
|
+
import { u as j, a as V } from "../../WYCIER3C-8jmp2F15.js";
|
|
5
|
+
import { u as q } from "../../RZ4GPYOB-13-5LlEb.js";
|
|
6
|
+
import { g as F, u as W } from "../../PFRGBC2K-BEg8ahbY.js";
|
|
7
|
+
import { a as T } from "../../YV4JVR4I-LkUIiJWj.js";
|
|
8
|
+
import { f as z, a as B, q as G, _ as J, i as Q, s as U, e as h, m as _, o as d, l as X, n as Y } from "../../LMDWO4NN--KEvZePp.js";
|
|
9
|
+
import { useRef as w, useEffect as R, useState as Z, useCallback as $ } from "react";
|
|
10
|
+
var ee = "div", te = B(
|
|
11
|
+
function(c) {
|
|
12
|
+
var a = c, {
|
|
13
|
+
store: t,
|
|
14
|
+
unmountOnHide: C,
|
|
15
|
+
tabId: p,
|
|
16
|
+
getItem: b,
|
|
17
|
+
scrollRestoration: v,
|
|
18
|
+
scrollElement: l
|
|
19
|
+
} = a, r = J(a, [
|
|
20
|
+
"store",
|
|
21
|
+
"unmountOnHide",
|
|
22
|
+
"tabId",
|
|
23
|
+
"getItem",
|
|
24
|
+
"scrollRestoration",
|
|
25
|
+
"scrollElement"
|
|
26
|
+
]);
|
|
27
|
+
const D = K();
|
|
28
|
+
t = t || D, Q(
|
|
29
|
+
t,
|
|
30
|
+
process.env.NODE_ENV !== "production" && "TabPanel must receive a `store` prop or be wrapped in a TabProvider component."
|
|
31
|
+
);
|
|
32
|
+
const I = w(null), m = U(r.id), s = T(
|
|
33
|
+
t.panels,
|
|
34
|
+
() => {
|
|
35
|
+
var e;
|
|
36
|
+
return p || ((e = t == null ? void 0 : t.panels.item(m)) == null ? void 0 : e.tabId);
|
|
37
|
+
}
|
|
38
|
+
), k = T(
|
|
39
|
+
t,
|
|
40
|
+
(e) => !!s && e.selectedId === s
|
|
41
|
+
), g = j({ open: k }), P = T(g, "mounted"), E = w(
|
|
42
|
+
/* @__PURE__ */ new Map()
|
|
43
|
+
), x = h(() => {
|
|
44
|
+
const e = I.current;
|
|
45
|
+
return e ? l ? typeof l == "function" ? l(e) : "current" in l ? l.current : l : e : null;
|
|
46
|
+
});
|
|
47
|
+
R(() => {
|
|
48
|
+
var e, o;
|
|
49
|
+
if (!v || !P) return;
|
|
50
|
+
const n = x();
|
|
51
|
+
if (!n) return;
|
|
52
|
+
if (v === "reset") {
|
|
53
|
+
n.scroll(0, 0);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (!s) return;
|
|
57
|
+
const u = E.current.get(s);
|
|
58
|
+
n.scroll((e = u == null ? void 0 : u.x) != null ? e : 0, (o = u == null ? void 0 : u.y) != null ? o : 0);
|
|
59
|
+
const i = () => {
|
|
60
|
+
E.current.set(s, {
|
|
61
|
+
x: n.scrollLeft,
|
|
62
|
+
y: n.scrollTop
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
return n.addEventListener("scroll", i), () => {
|
|
66
|
+
n.removeEventListener("scroll", i);
|
|
67
|
+
};
|
|
68
|
+
}, [v, P, s, x, t]);
|
|
69
|
+
const [H, L] = Z(!1);
|
|
70
|
+
R(() => {
|
|
71
|
+
const e = I.current;
|
|
72
|
+
if (!e) return;
|
|
73
|
+
const o = F(e);
|
|
74
|
+
L(!!o.length);
|
|
75
|
+
}, []);
|
|
76
|
+
const M = $(
|
|
77
|
+
(e) => {
|
|
78
|
+
const o = _(d({}, e), { id: m || e.id, tabId: p });
|
|
79
|
+
return b ? b(o) : o;
|
|
80
|
+
},
|
|
81
|
+
[m, p, b]
|
|
82
|
+
), y = r.onKeyDown, N = h((e) => {
|
|
83
|
+
if (y == null || y(e), e.defaultPrevented || !(t != null && t.composite)) return;
|
|
84
|
+
const n = {
|
|
85
|
+
ArrowLeft: t.previous,
|
|
86
|
+
ArrowRight: t.next,
|
|
87
|
+
Home: t.first,
|
|
88
|
+
End: t.last
|
|
89
|
+
}[e.key];
|
|
90
|
+
if (!n) return;
|
|
91
|
+
const { selectedId: u } = t.getState(), i = n({ activeId: u });
|
|
92
|
+
i && (e.preventDefault(), t.move(i));
|
|
93
|
+
});
|
|
94
|
+
return r = X(
|
|
95
|
+
r,
|
|
96
|
+
(e) => /* @__PURE__ */ S(O, { value: t, children: e }),
|
|
97
|
+
[t]
|
|
98
|
+
), r = _(d({
|
|
99
|
+
id: m,
|
|
100
|
+
role: "tabpanel",
|
|
101
|
+
"aria-labelledby": s || void 0
|
|
102
|
+
}, r), {
|
|
103
|
+
children: C && !P ? null : r.children,
|
|
104
|
+
ref: Y(I, r.ref),
|
|
105
|
+
onKeyDown: N
|
|
106
|
+
}), r = W(d({
|
|
107
|
+
// If the tab panel is rendered as part of another composite widget such
|
|
108
|
+
// as combobox, it should not be focusable.
|
|
109
|
+
focusable: !t.composite && !H
|
|
110
|
+
}, r)), r = V(d({ store: g }, r)), r = q(_(d({ store: t.panels }, r), { getItem: M })), r;
|
|
111
|
+
}
|
|
112
|
+
), re = z(function(c) {
|
|
113
|
+
const a = te(c);
|
|
114
|
+
return G(ee, a);
|
|
115
|
+
});
|
|
116
|
+
const me = ({
|
|
117
|
+
value: f,
|
|
118
|
+
className: c,
|
|
119
|
+
style: a,
|
|
120
|
+
children: t
|
|
121
|
+
}) => /* @__PURE__ */ S(
|
|
122
|
+
re,
|
|
123
|
+
{
|
|
124
|
+
tabId: f,
|
|
125
|
+
className: A("component-tabs__panel", c),
|
|
126
|
+
style: a,
|
|
127
|
+
children: t
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
export {
|
|
131
|
+
me as Panel
|
|
132
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
interface TabsProps extends PropsWithChildren {
|
|
3
|
+
value?: string | null;
|
|
4
|
+
onValueChange?: (value: string | null | undefined) => void;
|
|
5
|
+
defaultValue?: string | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Tabs: FC<TabsProps>;
|
|
9
|
+
export {};
|