@code0-tech/pictor 0.6.0 → 0.6.2
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/LICENSE +1 -1
- package/dist/assets/components/command/Command.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/assets/components/gantt/Gantt.style.css +1 -0
- package/dist/assets/components/layout/Layout.style.css +1 -1
- package/dist/components/alert/Alert.d.ts +2 -2
- package/dist/components/alert/Alert.js +8 -7
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/Avatar.js +30 -27
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +26 -23
- package/dist/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js +16 -14
- package/dist/components/button/Button.d.ts +3 -3
- package/dist/components/button/Button.js +13 -12
- package/dist/components/button-group/ButtonGroup.d.ts +2 -2
- package/dist/components/button-group/ButtonGroup.js +23 -20
- package/dist/components/card/Card.d.ts +3 -3
- package/dist/components/card/Card.js +19 -16
- package/dist/components/card/CardSection.d.ts +2 -2
- package/dist/components/card/CardSection.js +16 -13
- package/dist/components/col/Col.d.ts +2 -2
- package/dist/components/col/Col.js +22 -19
- package/dist/components/command/Command.d.ts +12 -12
- package/dist/components/command/Command.js +95 -82
- package/dist/components/container/Container.d.ts +2 -2
- package/dist/components/container/Container.js +13 -10
- package/dist/components/context-menu/ContextMenu.d.ts +13 -13
- package/dist/components/context-menu/ContextMenu.js +26 -25
- package/dist/components/data-table/DataTable.d.ts +2 -2
- package/dist/components/data-table/DataTable.js +18 -17
- package/dist/components/data-table/DataTableColumn.d.ts +2 -2
- package/dist/components/data-table/DataTableColumn.js +12 -11
- package/dist/components/data-table/DataTableFilterInput.js +4 -3
- package/dist/components/dialog/Dialog.d.ts +12 -12
- package/dist/components/dialog/Dialog.js +24 -23
- package/dist/components/editor/Editor.d.ts +2 -2
- package/dist/components/editor/Editor.js +4 -3
- package/dist/components/file-tabs/FileTabs.d.ts +5 -5
- package/dist/components/file-tabs/FileTabs.js +38 -35
- package/dist/components/flex/Flex.d.ts +2 -2
- package/dist/components/flex/Flex.js +16 -13
- package/dist/components/form/CheckboxInput.js +17 -15
- package/dist/components/form/Input.d.ts +3 -3
- package/dist/components/form/Input.js +4 -3
- package/dist/components/form/PinInput.d.ts +3 -3
- package/dist/components/form/PinInput.js +33 -30
- package/dist/components/form/RadioGroup.js +22 -19
- package/dist/components/form/RadioInput.d.ts +2 -2
- package/dist/components/form/RadioInput.js +19 -16
- package/dist/components/fullscreen/FullScreen.d.ts +2 -2
- package/dist/components/fullscreen/FullScreen.js +8 -6
- package/dist/components/gantt/Gantt.d.ts +12 -0
- package/dist/components/gantt/Gantt.js +92 -0
- package/dist/components/gantt/GanttFooter.d.ts +2 -0
- package/dist/components/gantt/GanttFooter.js +38 -0
- package/dist/components/gantt/GanttGroup.d.ts +8 -0
- package/dist/components/gantt/GanttGroup.js +134 -0
- package/dist/components/gantt/GanttHeader.d.ts +10 -0
- package/dist/components/gantt/GanttHeader.js +55 -0
- package/dist/components/gantt/GanttItem.d.ts +16 -0
- package/dist/components/gantt/GanttItem.js +23 -0
- package/dist/components/layout/Layout.d.ts +3 -3
- package/dist/components/layout/Layout.js +37 -33
- package/dist/components/menu/Menu.d.ts +15 -15
- package/dist/components/menu/Menu.js +35 -32
- package/dist/components/resizable/Resizable.d.ts +4 -4
- package/dist/components/resizable/Resizable.js +18 -17
- package/dist/components/row/Row.d.ts +2 -2
- package/dist/components/row/Row.js +15 -12
- package/dist/components/scroll-area/ScrollArea.d.ts +6 -6
- package/dist/components/scroll-area/ScrollArea.js +35 -32
- package/dist/components/segmented-control/SegmentedControl.d.ts +3 -3
- package/dist/components/segmented-control/SegmentedControl.js +12 -11
- package/dist/components/spacing/Spacing.d.ts +3 -3
- package/dist/components/spacing/Spacing.js +12 -11
- package/dist/components/tab/Tab.d.ts +5 -5
- package/dist/components/tab/Tab.js +22 -21
- package/dist/components/text/Text.d.ts +3 -3
- package/dist/components/text/Text.js +14 -11
- package/dist/components/toast/Toast.d.ts +2 -2
- package/dist/components/toast/Toast.js +32 -31
- package/dist/components/tooltip/Tooltip.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.js +34 -31
- package/dist/index.d.ts +1 -0
- package/dist/index.js +151 -152
- package/dist/utils/color.d.ts +4 -0
- package/dist/utils/color.js +43 -0
- package/dist/utils/component.d.ts +105 -0
- package/dist/utils/component.js +130 -0
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.js +14 -18
- package/dist/utils/size.d.ts +4 -0
- package/dist/utils/size.js +21 -0
- package/dist/utils/utils.d.ts +0 -55
- package/dist/utils/utils.js +1 -159
- package/package.json +3 -3
- package/dist/utils/nonReactiveArrayService.d.ts +0 -19
- package/dist/utils/nonReactiveArrayService.js +0 -54
- package/dist/utils/objectStore.d.ts +0 -12
- package/dist/utils/objectStore.js +0 -34
- package/dist/utils/types.d.ts +0 -57
- package/dist/utils/types.js +0 -4
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as D } from "react/jsx-runtime";
|
|
2
2
|
import { c as $ } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeComponentProps as k } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
7
|
+
import { getDOMSizeFromCodeZeroSize as F } from "../../utils/size.js";
|
|
4
8
|
import { Flex as G } from "../flex/Flex.js";
|
|
5
9
|
import '../../assets/components/layout/Layout.style.css';/* empty css */
|
|
6
|
-
const
|
|
10
|
+
const U = (L) => {
|
|
7
11
|
const t = $.c(56);
|
|
8
|
-
let l, n,
|
|
12
|
+
let l, n, s, i, o, e, d, a;
|
|
9
13
|
if (t[0] !== L) {
|
|
10
14
|
const {
|
|
11
15
|
children: E,
|
|
@@ -17,59 +21,59 @@ const J = (L) => {
|
|
|
17
21
|
layoutGap: w,
|
|
18
22
|
...Z
|
|
19
23
|
} = L;
|
|
20
|
-
n = E, a = M, l = O, i = P, o = R, e = j === void 0 ? !0 : j,
|
|
24
|
+
n = E, a = M, l = O, i = P, o = R, e = j === void 0 ? !0 : j, s = w === void 0 ? "xl" : w, d = k("d-layout", Z), t[0] = L, t[1] = l, t[2] = n, t[3] = s, t[4] = i, t[5] = o, t[6] = e, t[7] = d, t[8] = a;
|
|
21
25
|
} else
|
|
22
|
-
l = t[1], n = t[2],
|
|
23
|
-
let c;
|
|
24
|
-
t[9] !== r ? (c = F(r), t[9] = r, t[10] = c) : c = t[10];
|
|
26
|
+
l = t[1], n = t[2], s = t[3], i = t[4], o = t[5], e = t[6], d = t[7], a = t[8];
|
|
25
27
|
let m;
|
|
26
|
-
t[
|
|
28
|
+
t[9] !== s ? (m = F(s), t[9] = s, t[10] = m) : m = t[10];
|
|
29
|
+
let c;
|
|
30
|
+
t[11] !== m ? (c = {
|
|
27
31
|
flexDirection: "column",
|
|
28
|
-
gap:
|
|
29
|
-
}, t[11] =
|
|
32
|
+
gap: m
|
|
33
|
+
}, t[11] = m, t[12] = c) : c = t[12];
|
|
30
34
|
let f;
|
|
31
|
-
t[13] !== a ? (f = a && /* @__PURE__ */
|
|
35
|
+
t[13] !== a ? (f = a && /* @__PURE__ */ r("div", { className: "d-layout__top", children: a }), t[13] = a, t[14] = f) : f = t[14];
|
|
36
|
+
let p;
|
|
37
|
+
t[15] !== e || t[16] !== a ? (p = a && e && /* @__PURE__ */ r("div", { className: "d-layout__splitter", "aria-orientation": "horizontal" }), t[15] = e, t[16] = a, t[17] = p) : p = t[17];
|
|
32
38
|
let _;
|
|
33
|
-
t[
|
|
39
|
+
t[18] !== s ? (_ = F(s), t[18] = s, t[19] = _) : _ = t[19];
|
|
34
40
|
let u;
|
|
35
|
-
t[
|
|
41
|
+
t[20] !== _ ? (u = {
|
|
42
|
+
gap: _
|
|
43
|
+
}, t[20] = _, t[21] = u) : u = t[21];
|
|
36
44
|
let y;
|
|
37
|
-
t[
|
|
38
|
-
gap: u
|
|
39
|
-
}, t[20] = u, t[21] = y) : y = t[21];
|
|
40
|
-
let p;
|
|
41
|
-
t[22] !== i ? (p = i && /* @__PURE__ */ s("div", { className: "d-layout__left", children: i }), t[22] = i, t[23] = p) : p = t[23];
|
|
45
|
+
t[22] !== i ? (y = i && /* @__PURE__ */ r("div", { className: "d-layout__left", children: i }), t[22] = i, t[23] = y) : y = t[23];
|
|
42
46
|
let h;
|
|
43
|
-
t[24] !== i || t[25] !== e ? (h = i && e && /* @__PURE__ */
|
|
47
|
+
t[24] !== i || t[25] !== e ? (h = i && e && /* @__PURE__ */ r("div", { className: "d-layout__splitter", "aria-orientation": "vertical" }), t[24] = i, t[25] = e, t[26] = h) : h = t[26];
|
|
44
48
|
let v;
|
|
45
|
-
t[27] !== n ? (v = /* @__PURE__ */
|
|
49
|
+
t[27] !== n ? (v = /* @__PURE__ */ r("div", { className: "d-layout__content", children: n }), t[27] = n, t[28] = v) : v = t[28];
|
|
46
50
|
let N;
|
|
47
|
-
t[29] !== o || t[30] !== e ? (N = o && e && /* @__PURE__ */
|
|
51
|
+
t[29] !== o || t[30] !== e ? (N = o && e && /* @__PURE__ */ r("div", { className: "d-layout__splitter", "aria-orientation": "vertical" }), t[29] = o, t[30] = e, t[31] = N) : N = t[31];
|
|
48
52
|
let C;
|
|
49
|
-
t[32] !== o ? (C = o && /* @__PURE__ */
|
|
53
|
+
t[32] !== o ? (C = o && /* @__PURE__ */ r("div", { className: "d-layout__right", children: o }), t[32] = o, t[33] = C) : C = t[33];
|
|
50
54
|
let g;
|
|
51
|
-
t[34] !== N || t[35] !== C || t[36] !==
|
|
52
|
-
|
|
55
|
+
t[34] !== N || t[35] !== C || t[36] !== u || t[37] !== y || t[38] !== h || t[39] !== v ? (g = /* @__PURE__ */ D(G, { className: "d-layout__middle", style: u, children: [
|
|
56
|
+
y,
|
|
53
57
|
h,
|
|
54
58
|
v,
|
|
55
59
|
N,
|
|
56
60
|
C
|
|
57
|
-
] }), t[34] = N, t[35] = C, t[36] =
|
|
61
|
+
] }), t[34] = N, t[35] = C, t[36] = u, t[37] = y, t[38] = h, t[39] = v, t[40] = g) : g = t[40];
|
|
58
62
|
let x;
|
|
59
|
-
t[41] !== l || t[42] !== e ? (x = l && e && /* @__PURE__ */
|
|
63
|
+
t[41] !== l || t[42] !== e ? (x = l && e && /* @__PURE__ */ r("div", { className: "d-layout__splitter", "aria-orientation": "horizontal" }), t[41] = l, t[42] = e, t[43] = x) : x = t[43];
|
|
60
64
|
let z;
|
|
61
|
-
t[44] !== l ? (z = l && /* @__PURE__ */
|
|
65
|
+
t[44] !== l ? (z = l && /* @__PURE__ */ r("div", { className: "d-layout__bottom", children: l }), t[44] = l, t[45] = z) : z = t[45];
|
|
62
66
|
let S;
|
|
63
|
-
t[46] !== g || t[47] !== x || t[48] !== z || t[49] !==
|
|
67
|
+
t[46] !== g || t[47] !== x || t[48] !== z || t[49] !== c || t[50] !== f || t[51] !== p ? (S = /* @__PURE__ */ D(G, { className: "d-layout__inner", style: c, children: [
|
|
64
68
|
f,
|
|
65
|
-
|
|
69
|
+
p,
|
|
66
70
|
g,
|
|
67
71
|
x,
|
|
68
72
|
z
|
|
69
|
-
] }), t[46] = g, t[47] = x, t[48] = z, t[49] =
|
|
73
|
+
] }), t[46] = g, t[47] = x, t[48] = z, t[49] = c, t[50] = f, t[51] = p, t[52] = S) : S = t[52];
|
|
70
74
|
let b;
|
|
71
|
-
return t[53] !== d || t[54] !== S ? (b = /* @__PURE__ */
|
|
75
|
+
return t[53] !== d || t[54] !== S ? (b = /* @__PURE__ */ r("div", { ...d, children: S }), t[53] = d, t[54] = S, t[55] = b) : b = t[55], b;
|
|
72
76
|
};
|
|
73
77
|
export {
|
|
74
|
-
|
|
78
|
+
U as Layout
|
|
75
79
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color, ComponentProps } from '../../utils';
|
|
3
3
|
import { DropdownMenuArrowProps, DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemIndicatorProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuPortalProps, DropdownMenuProps, DropdownMenuSeparatorProps, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuTriggerProps } from '@radix-ui/react-dropdown-menu';
|
|
4
|
-
export type MenuProps =
|
|
5
|
-
export type MenuTriggerProps =
|
|
6
|
-
export type MenuPortalProps =
|
|
7
|
-
export type MenuContentProps =
|
|
4
|
+
export type MenuProps = ComponentProps & DropdownMenuProps;
|
|
5
|
+
export type MenuTriggerProps = ComponentProps & DropdownMenuTriggerProps;
|
|
6
|
+
export type MenuPortalProps = ComponentProps & DropdownMenuPortalProps;
|
|
7
|
+
export type MenuContentProps = ComponentProps & DropdownMenuContentProps & {
|
|
8
8
|
color?: Color;
|
|
9
9
|
};
|
|
10
|
-
export type MenuLabelProps =
|
|
11
|
-
export type MenuItemProps =
|
|
12
|
-
export type MenuCheckboxItemProps =
|
|
13
|
-
export type MenuItemIndicatorProps =
|
|
14
|
-
export type MenuGroupProps =
|
|
15
|
-
export type MenuSubProps =
|
|
16
|
-
export type MenuSubTriggerProps =
|
|
17
|
-
export type MenuSubContentProps =
|
|
10
|
+
export type MenuLabelProps = ComponentProps & DropdownMenuLabelProps;
|
|
11
|
+
export type MenuItemProps = ComponentProps & DropdownMenuItemProps;
|
|
12
|
+
export type MenuCheckboxItemProps = ComponentProps & DropdownMenuCheckboxItemProps;
|
|
13
|
+
export type MenuItemIndicatorProps = ComponentProps & DropdownMenuItemIndicatorProps;
|
|
14
|
+
export type MenuGroupProps = ComponentProps & DropdownMenuGroupProps;
|
|
15
|
+
export type MenuSubProps = ComponentProps & DropdownMenuSubProps;
|
|
16
|
+
export type MenuSubTriggerProps = ComponentProps & DropdownMenuSubTriggerProps;
|
|
17
|
+
export type MenuSubContentProps = ComponentProps & DropdownMenuSubContentProps & {
|
|
18
18
|
color?: Color;
|
|
19
19
|
};
|
|
20
|
-
export type MenuSeparatorProps =
|
|
21
|
-
export type MenuArrowProps =
|
|
20
|
+
export type MenuSeparatorProps = ComponentProps & DropdownMenuSeparatorProps;
|
|
21
|
+
export type MenuArrowProps = ComponentProps & DropdownMenuArrowProps;
|
|
22
22
|
export declare const Menu: React.FC<MenuProps>;
|
|
23
23
|
export declare const MenuTrigger: React.FC<MenuTriggerProps>;
|
|
24
24
|
export declare const MenuPortal: React.FC<MenuPortalProps>;
|
|
@@ -1,120 +1,123 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
4
|
+
import "../../utils/contextStore.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { mergeComponentProps as r } from "../../utils/component.js";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
import { DropdownMenuItem as m, DropdownMenuContent as f, DropdownMenuLabel as _, DropdownMenu as M, DropdownMenuTrigger as a, DropdownMenuPortal as g, DropdownMenuArrow as d, DropdownMenuCheckboxItem as w, DropdownMenuGroup as b, DropdownMenuItemIndicator as $, DropdownMenuSeparator as D, DropdownMenuSub as I, DropdownMenuSubContent as S, DropdownMenuSubTrigger as C } from "@radix-ui/react-dropdown-menu";
|
|
9
|
+
const L = (o) => {
|
|
7
10
|
const e = l.c(4);
|
|
8
11
|
let n;
|
|
9
12
|
e[0] !== o ? (n = r("menu", o), e[0] = o, e[1] = n) : n = e[1];
|
|
10
13
|
const c = n;
|
|
11
14
|
let t;
|
|
12
15
|
return e[2] !== c ? (t = /* @__PURE__ */ u(M, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
13
|
-
},
|
|
16
|
+
}, j = (o) => {
|
|
14
17
|
const e = l.c(4);
|
|
15
18
|
let n;
|
|
16
19
|
e[0] !== o ? (n = r("menu__trigger", o), e[0] = o, e[1] = n) : n = e[1];
|
|
17
20
|
const c = n;
|
|
18
21
|
let t;
|
|
19
22
|
return e[2] !== c ? (t = /* @__PURE__ */ u(a, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
20
|
-
},
|
|
23
|
+
}, E = (o) => {
|
|
21
24
|
const e = l.c(4);
|
|
22
25
|
let n;
|
|
23
26
|
e[0] !== o ? (n = r("menu__portal", o), e[0] = o, e[1] = n) : n = e[1];
|
|
24
27
|
const c = n;
|
|
25
28
|
let t;
|
|
26
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
27
|
-
},
|
|
29
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(g, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
30
|
+
}, R = (o) => {
|
|
28
31
|
const e = l.c(6), n = o.align, c = `menu__content menu__content--${o.color ?? "primary"}`;
|
|
29
32
|
let t;
|
|
30
33
|
e[0] !== o || e[1] !== c ? (t = r(c, o), e[0] = o, e[1] = c, e[2] = t) : t = e[2];
|
|
31
34
|
const i = t;
|
|
32
35
|
let s;
|
|
33
36
|
return e[3] !== o.align || e[4] !== i ? (s = /* @__PURE__ */ u(f, { align: n, ...i }), e[3] = o.align, e[4] = i, e[5] = s) : s = e[5], s;
|
|
34
|
-
},
|
|
37
|
+
}, q = (o) => {
|
|
35
38
|
const e = l.c(4);
|
|
36
39
|
let n;
|
|
37
40
|
e[0] !== o ? (n = r("menu__label", o), e[0] = o, e[1] = n) : n = e[1];
|
|
38
41
|
const c = n;
|
|
39
42
|
let t;
|
|
40
43
|
return e[2] !== c ? (t = /* @__PURE__ */ u(_, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
41
|
-
},
|
|
44
|
+
}, v = (o) => {
|
|
42
45
|
const e = l.c(4);
|
|
43
46
|
let n;
|
|
44
47
|
e[0] !== o ? (n = r("menu__item", o), e[0] = o, e[1] = n) : n = e[1];
|
|
45
48
|
const c = n;
|
|
46
49
|
let t;
|
|
47
50
|
return e[2] !== c ? (t = /* @__PURE__ */ u(m, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
48
|
-
},
|
|
51
|
+
}, z = (o) => {
|
|
49
52
|
const e = l.c(4);
|
|
50
53
|
let n;
|
|
51
54
|
e[0] !== o ? (n = r("menu__group", o), e[0] = o, e[1] = n) : n = e[1];
|
|
52
55
|
const c = n;
|
|
53
56
|
let t;
|
|
54
57
|
return e[2] !== c ? (t = /* @__PURE__ */ u(b, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
55
|
-
},
|
|
58
|
+
}, B = (o) => {
|
|
56
59
|
const e = l.c(4);
|
|
57
60
|
let n;
|
|
58
61
|
e[0] !== o ? (n = r("menu__sub", o), e[0] = o, e[1] = n) : n = e[1];
|
|
59
62
|
const c = n;
|
|
60
63
|
let t;
|
|
61
64
|
return e[2] !== c ? (t = /* @__PURE__ */ u(I, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
62
|
-
},
|
|
65
|
+
}, F = (o) => {
|
|
63
66
|
const e = l.c(4);
|
|
64
67
|
let n;
|
|
65
68
|
e[0] !== o ? (n = r("menu__sub-trigger", o), e[0] = o, e[1] = n) : n = e[1];
|
|
66
69
|
const c = n;
|
|
67
70
|
let t;
|
|
68
71
|
return e[2] !== c ? (t = /* @__PURE__ */ u(C, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
69
|
-
},
|
|
72
|
+
}, H = (o) => {
|
|
70
73
|
const e = l.c(5), n = `menu__sub-content menu__sub-content--${o.color ?? "primary"}`;
|
|
71
74
|
let c;
|
|
72
75
|
e[0] !== o || e[1] !== n ? (c = r(n, o), e[0] = o, e[1] = n, e[2] = c) : c = e[2];
|
|
73
76
|
const t = c;
|
|
74
77
|
let i;
|
|
75
78
|
return e[3] !== t ? (i = /* @__PURE__ */ u(S, { ...t }), e[3] = t, e[4] = i) : i = e[4], i;
|
|
76
|
-
},
|
|
79
|
+
}, J = (o) => {
|
|
77
80
|
const e = l.c(4);
|
|
78
81
|
let n;
|
|
79
82
|
e[0] !== o ? (n = r("menu__separator", o), e[0] = o, e[1] = n) : n = e[1];
|
|
80
83
|
const c = n;
|
|
81
84
|
let t;
|
|
82
85
|
return e[2] !== c ? (t = /* @__PURE__ */ u(D, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
83
|
-
},
|
|
86
|
+
}, K = (o) => {
|
|
84
87
|
const e = l.c(4);
|
|
85
88
|
let n;
|
|
86
89
|
e[0] !== o ? (n = r("menu__checkbox-item", o), e[0] = o, e[1] = n) : n = e[1];
|
|
87
90
|
const c = n;
|
|
88
91
|
let t;
|
|
89
92
|
return e[2] !== c ? (t = /* @__PURE__ */ u(w, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
90
|
-
},
|
|
93
|
+
}, N = (o) => {
|
|
91
94
|
const e = l.c(4);
|
|
92
95
|
let n;
|
|
93
96
|
e[0] !== o ? (n = r("menu__item-indicator", o), e[0] = o, e[1] = n) : n = e[1];
|
|
94
97
|
const c = n;
|
|
95
98
|
let t;
|
|
96
99
|
return e[2] !== c ? (t = /* @__PURE__ */ u($, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
97
|
-
},
|
|
100
|
+
}, O = (o) => {
|
|
98
101
|
const e = l.c(4);
|
|
99
102
|
let n;
|
|
100
103
|
e[0] !== o ? (n = r("menu__arrow", o), e[0] = o, e[1] = n) : n = e[1];
|
|
101
104
|
const c = n;
|
|
102
105
|
let t;
|
|
103
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
106
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(d, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
104
107
|
};
|
|
105
108
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
109
|
+
L as Menu,
|
|
110
|
+
O as MenuArrow,
|
|
111
|
+
K as MenuCheckboxItem,
|
|
112
|
+
R as MenuContent,
|
|
113
|
+
z as MenuGroup,
|
|
114
|
+
v as MenuItem,
|
|
115
|
+
N as MenuItemIndicator,
|
|
116
|
+
q as MenuLabel,
|
|
117
|
+
E as MenuPortal,
|
|
118
|
+
J as MenuSeparator,
|
|
119
|
+
B as MenuSub,
|
|
120
|
+
H as MenuSubContent,
|
|
121
|
+
F as MenuSubTrigger,
|
|
122
|
+
j as MenuTrigger
|
|
120
123
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, Color } from '../../utils';
|
|
2
2
|
import { GroupProps, PanelProps, SeparatorProps } from 'react-resizable-panels';
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
type ResizablePanelGroupProps =
|
|
5
|
-
type ResizablePanelProps =
|
|
4
|
+
type ResizablePanelGroupProps = ComponentProps & GroupProps;
|
|
5
|
+
type ResizablePanelProps = ComponentProps & PanelProps & {
|
|
6
6
|
color?: Color;
|
|
7
7
|
};
|
|
8
|
-
type ResizableHandleProps =
|
|
8
|
+
type ResizableHandleProps = ComponentProps & SeparatorProps;
|
|
9
9
|
export declare const ResizablePanelGroup: React.FC<ResizablePanelGroupProps>;
|
|
10
10
|
export declare const ResizablePanel: React.FC<ResizablePanelProps>;
|
|
11
11
|
export declare const ResizableHandle: React.FC<ResizableHandleProps>;
|
|
@@ -2,33 +2,34 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as o } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import "../../utils/contextStore.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { mergeComponentProps as n } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
7
|
+
import { Separator as s, Panel as m, Group as c } from "react-resizable-panels";
|
|
7
8
|
import '../../assets/components/resizable/Resizable.style.css';/* empty css */
|
|
8
9
|
const $ = (r) => {
|
|
9
10
|
const e = o.c(4);
|
|
10
|
-
let l;
|
|
11
|
-
e[0] !== r ? (l = s("d-resizable", r), e[0] = r, e[1] = l) : l = e[1];
|
|
12
|
-
const t = l;
|
|
13
|
-
let a;
|
|
14
|
-
return e[2] !== t ? (a = /* @__PURE__ */ i(m, { "data-slot": "resizable-panel-group", ...t }), e[2] = t, e[3] = a) : a = e[3], a;
|
|
15
|
-
}, p = (r) => {
|
|
16
|
-
const e = o.c(5), l = `d-resizable__panel ${r.color ? `d-resizable__panel--${r.color ?? "primary"}` : ""}`;
|
|
17
11
|
let t;
|
|
18
|
-
e[0] !== r
|
|
12
|
+
e[0] !== r ? (t = n("d-resizable", r), e[0] = r, e[1] = t) : t = e[1];
|
|
13
|
+
const l = t;
|
|
19
14
|
let a;
|
|
20
|
-
return e[
|
|
15
|
+
return e[2] !== l ? (a = /* @__PURE__ */ i(c, { "data-slot": "resizable-panel-group", ...l }), e[2] = l, e[3] = a) : a = e[3], a;
|
|
21
16
|
}, P = (r) => {
|
|
22
|
-
const e = o.c(5)
|
|
17
|
+
const e = o.c(5), t = `d-resizable__panel ${r.color ? `d-resizable__panel--${r.color ?? "primary"}` : ""}`;
|
|
23
18
|
let l;
|
|
24
|
-
e[0] !== r ? (l =
|
|
19
|
+
e[0] !== r || e[1] !== t ? (l = n(t, r), e[0] = r, e[1] = t, e[2] = l) : l = e[2];
|
|
20
|
+
let a;
|
|
21
|
+
return e[3] !== l ? (a = /* @__PURE__ */ i(m, { "data-slot": "resizable-panel", ...l }), e[3] = l, e[4] = a) : a = e[4], a;
|
|
22
|
+
}, R = (r) => {
|
|
23
|
+
const e = o.c(5);
|
|
25
24
|
let t;
|
|
26
|
-
e[
|
|
25
|
+
e[0] !== r ? (t = n("d-resizable__handle", r), e[0] = r, e[1] = t) : t = e[1];
|
|
26
|
+
let l;
|
|
27
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("div", { className: "d-resizable__handle-bar" }), e[2] = l) : l = e[2];
|
|
27
28
|
let a;
|
|
28
|
-
return e[3] !==
|
|
29
|
+
return e[3] !== t ? (a = /* @__PURE__ */ i(s, { "data-slot": "resizable-handle", ...t, children: l }), e[3] = t, e[4] = a) : a = e[4], a;
|
|
29
30
|
};
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
R as ResizableHandle,
|
|
33
|
+
P as ResizablePanel,
|
|
33
34
|
$ as ResizablePanelGroup
|
|
34
35
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface RowType extends
|
|
2
|
+
import { Component } from '../../utils';
|
|
3
|
+
export interface RowType extends Component<HTMLDivElement> {
|
|
4
4
|
children: ReactNode | ReactNode[];
|
|
5
5
|
}
|
|
6
6
|
export declare const Row: React.FC<RowType>;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/row/Row.style.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import "../../utils/contextStore.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { mergeComponentProps as p } from "../../utils/component.js";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
const u = (i) => {
|
|
9
|
+
const t = l.c(6);
|
|
10
|
+
let o, r;
|
|
8
11
|
if (t[0] !== i) {
|
|
9
12
|
const {
|
|
10
13
|
children: m,
|
|
11
|
-
...
|
|
14
|
+
...n
|
|
12
15
|
} = i;
|
|
13
|
-
|
|
16
|
+
o = m, r = p("row", n), t[0] = i, t[1] = o, t[2] = r;
|
|
14
17
|
} else
|
|
15
|
-
|
|
16
|
-
let
|
|
17
|
-
return t[3] !==
|
|
18
|
+
o = t[1], r = t[2];
|
|
19
|
+
let e;
|
|
20
|
+
return t[3] !== o || t[4] !== r ? (e = /* @__PURE__ */ c("div", { ...r, children: o }), t[3] = o, t[4] = r, t[5] = e) : e = t[5], e;
|
|
18
21
|
};
|
|
19
22
|
export {
|
|
20
|
-
|
|
23
|
+
u as Row
|
|
21
24
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentProps } from '../../utils';
|
|
3
3
|
import * as RadixScrollArea from "@radix-ui/react-scroll-area";
|
|
4
|
-
export type ScrollAreaProps =
|
|
5
|
-
export type ScrollAreaViewportProps =
|
|
6
|
-
export type ScrollAreaScrollbarProps =
|
|
7
|
-
export type ScrollAreaThumbProps =
|
|
8
|
-
export type ScrollAreaCornerProps =
|
|
4
|
+
export type ScrollAreaProps = ComponentProps & RadixScrollArea.ScrollAreaProps;
|
|
5
|
+
export type ScrollAreaViewportProps = ComponentProps & RadixScrollArea.ScrollAreaViewportProps;
|
|
6
|
+
export type ScrollAreaScrollbarProps = ComponentProps & RadixScrollArea.ScrollAreaScrollbarProps;
|
|
7
|
+
export type ScrollAreaThumbProps = ComponentProps & RadixScrollArea.ScrollAreaThumbProps;
|
|
8
|
+
export type ScrollAreaCornerProps = ComponentProps & RadixScrollArea.ScrollAreaCornerProps;
|
|
9
9
|
export declare const ScrollArea: React.FC<ScrollAreaProps>;
|
|
10
10
|
export declare const ScrollAreaViewport: React.FC<ScrollAreaViewportProps>;
|
|
11
11
|
export declare const ScrollAreaScrollbar: React.FC<ScrollAreaScrollbarProps>;
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeComponentProps as a } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
7
|
+
import * as i from "@radix-ui/react-scroll-area";
|
|
5
8
|
import '../../assets/components/scroll-area/ScrollArea.style.css';/* empty css */
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
let
|
|
9
|
-
|
|
9
|
+
const _ = (t) => {
|
|
10
|
+
const r = c.c(4);
|
|
11
|
+
let e;
|
|
12
|
+
r[0] !== t ? (e = a("scroll-area", t), r[0] = t, r[1] = e) : e = r[1];
|
|
10
13
|
let l;
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
|
|
14
|
+
return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollArea, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
|
|
15
|
+
}, b = (t) => {
|
|
16
|
+
const r = c.c(4);
|
|
17
|
+
let e;
|
|
18
|
+
r[0] !== t ? (e = a("scroll-area__viewport", t), r[0] = t, r[1] = e) : e = r[1];
|
|
16
19
|
let l;
|
|
17
|
-
return
|
|
18
|
-
},
|
|
19
|
-
const
|
|
20
|
-
let
|
|
21
|
-
|
|
20
|
+
return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaViewport, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
|
|
21
|
+
}, $ = (t) => {
|
|
22
|
+
const r = c.c(4);
|
|
23
|
+
let e;
|
|
24
|
+
r[0] !== t ? (e = a("scroll-area__scrollbar", t), r[0] = t, r[1] = e) : e = r[1];
|
|
22
25
|
let l;
|
|
23
|
-
return
|
|
24
|
-
},
|
|
25
|
-
const
|
|
26
|
-
let
|
|
27
|
-
|
|
26
|
+
return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaScrollbar, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
|
|
27
|
+
}, x = (t) => {
|
|
28
|
+
const r = c.c(4);
|
|
29
|
+
let e;
|
|
30
|
+
r[0] !== t ? (e = a("scroll-area__thumb", t), r[0] = t, r[1] = e) : e = r[1];
|
|
28
31
|
let l;
|
|
29
|
-
return
|
|
30
|
-
},
|
|
31
|
-
const
|
|
32
|
-
let
|
|
33
|
-
|
|
32
|
+
return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaThumb, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
|
|
33
|
+
}, h = (t) => {
|
|
34
|
+
const r = c.c(4);
|
|
35
|
+
let e;
|
|
36
|
+
r[0] !== t ? (e = a("scroll-area__corner", t), r[0] = t, r[1] = e) : e = r[1];
|
|
34
37
|
let l;
|
|
35
|
-
return
|
|
38
|
+
return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaCorner, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
|
|
36
39
|
};
|
|
37
40
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
_ as ScrollArea,
|
|
42
|
+
h as ScrollAreaCorner,
|
|
43
|
+
$ as ScrollAreaScrollbar,
|
|
44
|
+
x as ScrollAreaThumb,
|
|
45
|
+
b as ScrollAreaViewport
|
|
43
46
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentProps, Color } from '../../utils';
|
|
3
3
|
import { ToggleGroupSingleProps, ToggleGroupItemProps } from '@radix-ui/react-toggle-group';
|
|
4
|
-
type SegmentedControlProps =
|
|
4
|
+
type SegmentedControlProps = ComponentProps & ToggleGroupSingleProps & {
|
|
5
5
|
color?: Color;
|
|
6
6
|
};
|
|
7
|
-
type SegmentedControlItemProps =
|
|
7
|
+
type SegmentedControlItemProps = ComponentProps & ToggleGroupItemProps;
|
|
8
8
|
export declare const SegmentedControl: React.FC<SegmentedControlProps>;
|
|
9
9
|
export declare const SegmentedControlItem: React.FC<SegmentedControlItemProps>;
|
|
10
10
|
export {};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as i } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { Root as s, Item as f } from "@radix-ui/react-toggle-group";
|
|
4
4
|
import "../../utils/contextStore.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import {
|
|
6
|
+
import { mergeComponentProps as l } from "../../utils/component.js";
|
|
7
|
+
import "js-md5";
|
|
7
8
|
import '../../assets/components/segmented-control/SegmentedControl.style.css';/* empty css */
|
|
8
9
|
const I = (e) => {
|
|
9
|
-
const t =
|
|
10
|
+
const t = i.c(5), o = `segmented-control segmented-control--${e.color ?? "secondary"}`;
|
|
10
11
|
let m;
|
|
11
|
-
t[0] !== e || t[1] !== o ? (m =
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
return t[3] !==
|
|
12
|
+
t[0] !== e || t[1] !== o ? (m = l(o, e), t[0] = e, t[1] = o, t[2] = m) : m = t[2];
|
|
13
|
+
const n = m;
|
|
14
|
+
let r;
|
|
15
|
+
return t[3] !== n ? (r = /* @__PURE__ */ c(s, { ...n }), t[3] = n, t[4] = r) : r = t[4], r;
|
|
15
16
|
}, R = (e) => {
|
|
16
|
-
const t =
|
|
17
|
+
const t = i.c(4);
|
|
17
18
|
let o;
|
|
18
|
-
t[0] !== e ? (o =
|
|
19
|
+
t[0] !== e ? (o = l("segmented-control__item", e), t[0] = e, t[1] = o) : o = t[1];
|
|
19
20
|
const m = o;
|
|
20
|
-
let
|
|
21
|
-
return t[2] !== m ? (
|
|
21
|
+
let n;
|
|
22
|
+
return t[2] !== m ? (n = /* @__PURE__ */ c(f, { ...m }), t[2] = m, t[3] = n) : n = t[3], n;
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
25
|
I as SegmentedControl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface SpacingProps extends
|
|
4
|
-
spacing:
|
|
2
|
+
import { Component, Sizes } from '../../utils';
|
|
3
|
+
export interface SpacingProps extends Component<HTMLDivElement> {
|
|
4
|
+
spacing: Sizes;
|
|
5
5
|
}
|
|
6
6
|
export declare const Spacing: React.FC<SpacingProps>;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c } from "../../_virtual/compiler-runtime.js";
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import "../../utils/contextStore.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { mergeComponentProps as s } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
6
7
|
import '../../assets/components/spacing/Spacing.style.css';/* empty css */
|
|
7
|
-
const
|
|
8
|
-
const t =
|
|
9
|
-
let
|
|
8
|
+
const $ = (r) => {
|
|
9
|
+
const t = n.c(4);
|
|
10
|
+
let o;
|
|
10
11
|
if (t[0] !== r) {
|
|
11
12
|
const {
|
|
12
13
|
spacing: e,
|
|
13
14
|
...m
|
|
14
15
|
} = r;
|
|
15
|
-
|
|
16
|
+
o = s(`spacing spacing--${e}`, m), t[0] = r, t[1] = o;
|
|
16
17
|
} else
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
return t[2] !==
|
|
18
|
+
o = t[1];
|
|
19
|
+
let i;
|
|
20
|
+
return t[2] !== o ? (i = /* @__PURE__ */ p("div", { ...o }), t[2] = o, t[3] = i) : i = t[3], i;
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
$ as Spacing
|
|
23
24
|
};
|