@code0-tech/pictor 0.18.0 → 0.18.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/dist/assets/components/command/Command.style.css +1 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -1
- package/dist/assets/components/gantt/Gantt.style.css +1 -1
- package/dist/assets/components/menu/Menu.style.css +1 -1
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -1
- package/dist/components/command/Command.js +70 -63
- package/dist/components/context-menu/ContextMenu.js +57 -57
- package/dist/components/form/InputWrapper.js +33 -33
- package/dist/components/form/TextInput.d.ts +1 -1
- package/dist/components/gantt/Gantt.js +1 -1
- package/dist/components/gantt/GanttGroup.js +175 -128
- package/dist/components/gantt/GanttHeader.d.ts +7 -3
- package/dist/components/gantt/GanttHeader.js +63 -45
- package/dist/components/menu/Menu.js +19 -19
- package/dist/components/tooltip/Tooltip.js +17 -17
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
.command{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;padding:.563rem;box-sizing:border-box}.command__dialog{padding:0}.command__list:focus{outline:none}.
|
|
1
|
+
.command{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;padding:.563rem;box-sizing:border-box}.command__dialog{padding:0}.command__list:focus{outline:none}.command__empty{padding:1rem 0 1.777rem;text-align:center;font-size:.75rem;color:#ffffff80}.command__empty{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.command [cmdk-group-heading]{padding:.422rem .563rem}.command__group{overflow:hidden;text-transform:uppercase;font-size:.563rem;padding:.422rem 0 0;color:#ffffff80}.command__group{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.command__item{position:relative;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;font-size:.75rem;outline:none;color:#ffffffbf;border-radius:.578rem;padding:.422rem .422rem .422rem .75rem;gap:.563rem;text-transform:none}.command__item[data-disabled=true]{pointer-events:none;color:#ffffff40}.command__item[data-selected=true]{background:#201e2c;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;width:100%}.command__item svg{pointer-events:none;width:1rem;height:1rem;flex-shrink:0}.command__separator{height:1px;margin:.422rem 0;background:#ffffff1a}.command__shortcut{margin-left:auto;font-size:.563rem;letter-spacing:.1rem;padding:0 .422rem;border-radius:.375rem!important;color:#ffffff80;background:#070514}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.context-menu__content,.context-menu__sub-content{
|
|
1
|
+
.context-menu__content,.context-menu__sub-content{position:relative;box-sizing:border-box;z-index:999;max-height:var(--radix-popper-available-height, 100vh);display:flex;flex-direction:column}.context-menu__content,.context-menu__sub-content{border-radius:1rem}.context-menu__content-inner{padding:.422rem}.context-menu__label{text-transform:uppercase;font-size:.563rem;display:flex;gap:.422rem;align-items:center;padding:.422rem .563rem;color:#ffffff80}.context-menu__label{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.context-menu__item,.context-menu__sub-trigger{border-radius:.578rem;padding:.422rem .563rem;gap:.563rem;cursor:pointer;width:100%;display:flex;align-items:center;font-size:.75rem}.context-menu__item,.context-menu__sub-trigger{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.context-menu__item:focus,.context-menu__sub-trigger:focus{outline:none}.context-menu__item,.context-menu__sub-trigger{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.context-menu__item:disabled,.context-menu__item[data-disabled],.context-menu__item[aria-disabled=true],.context-menu__item--disabled,.context-menu__sub-trigger:disabled,.context-menu__sub-trigger[data-disabled],.context-menu__sub-trigger[aria-disabled=true],.context-menu__sub-trigger--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.context-menu__item,.context-menu__sub-trigger{box-shadow:none}.context-menu__item:focus,.context-menu__item[data-focus=true],.context-menu__sub-trigger:focus,.context-menu__sub-trigger[data-focus=true]{background:#201e2c;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none;width:100%}.context-menu__separator{border:none;margin:.422rem 0;color:#ffffff1a;height:1px;background-color:#ffffff1a}.context-menu__content--primary,.context-menu__sub-content--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.context-menu__content--secondary,.context-menu__sub-content--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.context-menu__content--tertiary,.context-menu__sub-content--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.context-menu__content--success,.context-menu__sub-content--success{background:#0a1814;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.context-menu__content--warning,.context-menu__sub-content--warning{background:#201813;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.context-menu__content--error,.context-menu__sub-content--error{background:#1c0516;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.context-menu__content--info,.context-menu__sub-content--info{background:#121e24;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.gantt__item{position:absolute;top:0;bottom:0;background:transparent}.gantt__group-wrapper{top:0;bottom:0;height:100%;position:absolute;background:transparent}.gantt__header{position:sticky;height:fit-content;grid-column:1/-1;display:flex;top:0;background:#070514;border-bottom:1px solid rgba(255,255,255,.25);z-index:10}.gantt__header-column{position:absolute;height:100%;padding:8px;text-align:center;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transform:translate(-50%)}.gantt__header-label{text-wrap:nowrap;display:flex;align-items:center}.gantt__header-
|
|
1
|
+
.gantt__item{position:absolute;top:0;bottom:0;background:transparent}.gantt__group-wrapper{top:0;bottom:0;height:100%;position:absolute;background:transparent}.gantt__header{position:sticky;height:fit-content;grid-column:1/-1;display:flex;top:0;background:#070514;border-bottom:1px solid rgba(255,255,255,.25);z-index:10}.gantt__header-column{position:absolute;height:100%;padding:8px;text-align:center;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transform:translate(-50%)}.gantt__header-label{text-wrap:nowrap;display:flex;align-items:center}.gantt__header-scroll{display:flex;align-items:center;justify-content:center;padding:0 .316rem;color:#fff;background:#070514;z-index:3}.gantt__header-scroll--right{position:sticky;right:0;margin-left:auto}.gantt__header-start{position:sticky;left:0;width:fit-content;height:100%;display:flex;align-items:center;background:#070514;z-index:2}.gantt__header-label-column{width:fit-content;height:100%;padding:8px;display:flex;align-items:center;justify-content:start;box-sizing:border-box;background:#070514}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.menu__content,.menu__sub-content{
|
|
1
|
+
.menu__content,.menu__sub-content{position:relative;box-sizing:border-box;z-index:999;max-height:var(--radix-popper-available-height, 100vh);display:flex;flex-direction:column}.menu__content,.menu__sub-content{border-radius:1rem}.menu__content-inner{padding:.422rem}.menu__label{text-transform:uppercase;font-size:.563rem;display:flex;gap:.422rem;align-items:center;padding:.422rem .563rem;color:#ffffff80}.menu__label{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.menu__item,.menu__sub-trigger,.menu__checkbox-item{border-radius:.578rem;padding:.422rem .563rem;gap:.563rem;cursor:pointer;width:100%;display:flex;align-items:center;font-size:.75rem}.menu__item,.menu__sub-trigger,.menu__checkbox-item{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.menu__item:focus,.menu__sub-trigger:focus,.menu__checkbox-item:focus{outline:none}.menu__item,.menu__sub-trigger,.menu__checkbox-item{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.menu__item:disabled,.menu__item[data-disabled],.menu__item[aria-disabled=true],.menu__item--disabled,.menu__sub-trigger:disabled,.menu__sub-trigger[data-disabled],.menu__sub-trigger[aria-disabled=true],.menu__sub-trigger--disabled,.menu__checkbox-item:disabled,.menu__checkbox-item[data-disabled],.menu__checkbox-item[aria-disabled=true],.menu__checkbox-item--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.menu__item,.menu__sub-trigger,.menu__checkbox-item{box-shadow:none}.menu__item:focus,.menu__item[data-focus=true],.menu__sub-trigger:focus,.menu__sub-trigger[data-focus=true],.menu__checkbox-item:focus,.menu__checkbox-item[data-focus=true]{background:#191825;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none;width:100%}.menu__separator{border:none;margin:.422rem 0;color:#ffffff1a;height:1px;background-color:#ffffff1a}.menu__content--primary,.menu__sub-content--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 1px solid}.menu__content--secondary,.menu__sub-content--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 1px solid}.menu__content--tertiary,.menu__sub-content--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 1px solid}.menu__content--success,.menu__sub-content--success{background:#0a1814;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 1px solid}.menu__content--warning,.menu__sub-content--warning{background:#201813;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 1px solid}.menu__content--error,.menu__sub-content--error{background:#1c0516;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 1px solid}.menu__content--info,.menu__sub-content--info{background:#121e24;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:rgb(25.4,23.6,37.1) 1px solid}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tooltip__content{z-index:999;
|
|
1
|
+
.tooltip__content{z-index:999;box-sizing:border-box;max-height:var(--radix-popper-available-height, 100vh);display:flex;flex-direction:column}.tooltip__content{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.tooltip__content-inner{padding:.422rem .563rem}.tooltip__arrow{fill:#201e2c}.tooltip__content--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.tooltip__arrow--primary{fill:#070514}.tooltip__content--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.tooltip__arrow--secondary{fill:#191825}.tooltip__content--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.tooltip__arrow--tertiary{fill:#201e2c}.tooltip__content--success{background:#0a1814;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.tooltip__arrow--success{fill:#0a1814}.tooltip__content--warning{background:#201813;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.tooltip__arrow--warning{fill:#201813}.tooltip__content--error{background:#1c0516;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.tooltip__arrow--error{fill:#1c0516}.tooltip__content--info{background:#121e24;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.tooltip__arrow--info{fill:#121e24}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { Command as a } from "cmdk";
|
|
4
4
|
import "../../utils/contextStore.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { mergeComponentProps as r } from "../../utils/component.js";
|
|
7
7
|
import "js-md5";
|
|
8
|
-
import { DialogPortal as
|
|
8
|
+
import { DialogPortal as h, DialogContent as g, Dialog as C, DialogOverlay as _ } from "../dialog/Dialog.js";
|
|
9
9
|
import '../../assets/components/form/FileInput.style.css';import '../../assets/components/form/DateInput.style.css';import '../../assets/components/form/SelectInput.style.css';import '../../assets/components/flex/Flex.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/command/Command.style.css';/* empty css */
|
|
10
|
-
import { Badge as
|
|
10
|
+
import { Badge as $ } from "../badge/Badge.js";
|
|
11
11
|
import "@radix-ui/react-checkbox";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
13
|
/* empty css */
|
|
@@ -32,97 +32,104 @@ import "@radix-ui/react-radio-group";
|
|
|
32
32
|
import "../form/SwitchInput.js";
|
|
33
33
|
import "../form/TagInput.js";
|
|
34
34
|
import "../form/TextAreaInput.js";
|
|
35
|
-
import { TextInput as
|
|
36
|
-
const
|
|
35
|
+
import { TextInput as P } from "../form/TextInput.js";
|
|
36
|
+
const y = (e) => {
|
|
37
37
|
const t = c.c(4);
|
|
38
|
-
let m;
|
|
39
|
-
t[0] !== e ? (m = r("command", e), t[0] = e, t[1] = m) : m = t[1];
|
|
40
|
-
const o = m;
|
|
41
38
|
let n;
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
t[0] !== e ? (n = r("command", e), t[0] = e, t[1] = n) : n = t[1];
|
|
40
|
+
const m = n;
|
|
41
|
+
let o;
|
|
42
|
+
return t[2] !== m ? (o = /* @__PURE__ */ i(a, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
43
|
+
}, nt = (e) => {
|
|
44
44
|
const t = c.c(11);
|
|
45
|
+
let n;
|
|
46
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ i(_, {}), t[0] = n) : n = t[0];
|
|
45
47
|
let m;
|
|
46
|
-
t[
|
|
48
|
+
t[1] !== e ? (m = /* @__PURE__ */ i(y, { ...e, h: "100%", children: e.children }), t[1] = e, t[2] = m) : m = t[2];
|
|
47
49
|
let o;
|
|
48
|
-
t[
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */ i(h, { className: "command__dialog", ...e.contentProps, children: o })
|
|
53
|
-
] }), t[3] = e.contentProps, t[4] = o, t[5] = n) : n = t[5];
|
|
50
|
+
t[3] !== e.contentProps || t[4] !== m ? (o = /* @__PURE__ */ u(h, { children: [
|
|
51
|
+
n,
|
|
52
|
+
/* @__PURE__ */ i(g, { className: "command__dialog", ...e.contentProps, children: m })
|
|
53
|
+
] }), t[3] = e.contentProps, t[4] = m, t[5] = o) : o = t[5];
|
|
54
54
|
let l;
|
|
55
|
-
return t[6] !== e.dialogProps || t[7] !== e.onOpenChange || t[8] !== e.open || t[9] !==
|
|
56
|
-
},
|
|
55
|
+
return t[6] !== e.dialogProps || t[7] !== e.onOpenChange || t[8] !== e.open || t[9] !== o ? (l = /* @__PURE__ */ i(C, { ...e.dialogProps, open: e.open, onOpenChange: e.onOpenChange, children: o }), t[6] = e.dialogProps, t[7] = e.onOpenChange, t[8] = e.open, t[9] = o, t[10] = l) : l = t[10], l;
|
|
56
|
+
}, ot = (e) => {
|
|
57
57
|
const t = c.c(4);
|
|
58
|
-
let m;
|
|
59
|
-
t[0] !== e ? (m = r("command__list", e), t[0] = e, t[1] = m) : m = t[1];
|
|
60
|
-
const o = m;
|
|
61
58
|
let n;
|
|
62
|
-
|
|
59
|
+
t[0] !== e ? (n = r("command__list", e), t[0] = e, t[1] = n) : n = t[1];
|
|
60
|
+
const m = n;
|
|
61
|
+
let o;
|
|
62
|
+
return t[2] !== m ? (o = /* @__PURE__ */ i(a.List, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
63
63
|
}, mt = (e) => {
|
|
64
|
-
const t = c.c(
|
|
64
|
+
const t = c.c(11);
|
|
65
|
+
let n;
|
|
66
|
+
t[0] !== e.value ? (n = e.value?.toString(), t[0] = e.value, t[1] = n) : n = t[1];
|
|
65
67
|
let m;
|
|
66
|
-
t[
|
|
67
|
-
let o;
|
|
68
|
-
t[2] !== e ? (o = (d) => {
|
|
68
|
+
t[2] !== e ? (m = (s) => {
|
|
69
69
|
if (e.onChange) {
|
|
70
70
|
const f = {
|
|
71
71
|
target: {
|
|
72
|
-
value:
|
|
72
|
+
value: s
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
e.onChange(f);
|
|
76
76
|
}
|
|
77
|
-
}, t[2] = e, t[3] =
|
|
78
|
-
let
|
|
79
|
-
t[4]
|
|
77
|
+
}, t[2] = e, t[3] = m) : m = t[3];
|
|
78
|
+
let o;
|
|
79
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
80
|
+
style: {
|
|
81
|
+
background: "transparent",
|
|
82
|
+
boxShadow: "none"
|
|
83
|
+
}
|
|
84
|
+
}, t[4] = o) : o = t[4];
|
|
80
85
|
let l;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
let m;
|
|
85
|
-
t[0] !== e ? (m = r("command__empty", e), t[0] = e, t[1] = m) : m = t[1];
|
|
86
|
-
const o = m;
|
|
87
|
-
let n;
|
|
88
|
-
return t[2] !== o ? (n = /* @__PURE__ */ i(a.Empty, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
86
|
+
t[5] !== e ? (l = /* @__PURE__ */ i(P, { wrapperComponent: o, className: "command__input", ...e }), t[5] = e, t[6] = l) : l = t[6];
|
|
87
|
+
let d;
|
|
88
|
+
return t[7] !== n || t[8] !== m || t[9] !== l ? (d = /* @__PURE__ */ i(a.Input, { value: n, onValueChange: m, asChild: !0, children: l }), t[7] = n, t[8] = m, t[9] = l, t[10] = d) : d = t[10], d;
|
|
89
89
|
}, it = (e) => {
|
|
90
90
|
const t = c.c(4);
|
|
91
|
-
let m;
|
|
92
|
-
t[0] !== e ? (m = r("command__group", e), t[0] = e, t[1] = m) : m = t[1];
|
|
93
|
-
const o = m;
|
|
94
91
|
let n;
|
|
95
|
-
|
|
92
|
+
t[0] !== e ? (n = r("command__empty", e), t[0] = e, t[1] = n) : n = t[1];
|
|
93
|
+
const m = n;
|
|
94
|
+
let o;
|
|
95
|
+
return t[2] !== m ? (o = /* @__PURE__ */ i(a.Empty, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
96
96
|
}, lt = (e) => {
|
|
97
97
|
const t = c.c(4);
|
|
98
|
-
let m;
|
|
99
|
-
t[0] !== e ? (m = r("command__item", e), t[0] = e, t[1] = m) : m = t[1];
|
|
100
|
-
const o = m;
|
|
101
98
|
let n;
|
|
102
|
-
|
|
99
|
+
t[0] !== e ? (n = r("command__group", e), t[0] = e, t[1] = n) : n = t[1];
|
|
100
|
+
const m = n;
|
|
101
|
+
let o;
|
|
102
|
+
return t[2] !== m ? (o = /* @__PURE__ */ i(a.Group, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
103
103
|
}, ct = (e) => {
|
|
104
104
|
const t = c.c(4);
|
|
105
|
-
let m;
|
|
106
|
-
t[0] !== e ? (m = r("command__separator", e), t[0] = e, t[1] = m) : m = t[1];
|
|
107
|
-
const o = m;
|
|
108
105
|
let n;
|
|
109
|
-
|
|
106
|
+
t[0] !== e ? (n = r("command__item", e), t[0] = e, t[1] = n) : n = t[1];
|
|
107
|
+
const m = n;
|
|
108
|
+
let o;
|
|
109
|
+
return t[2] !== m ? (o = /* @__PURE__ */ i(a.Item, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
110
110
|
}, at = (e) => {
|
|
111
|
+
const t = c.c(4);
|
|
112
|
+
let n;
|
|
113
|
+
t[0] !== e ? (n = r("command__separator", e), t[0] = e, t[1] = n) : n = t[1];
|
|
114
|
+
const m = n;
|
|
115
|
+
let o;
|
|
116
|
+
return t[2] !== m ? (o = /* @__PURE__ */ i(a.Separator, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
117
|
+
}, rt = (e) => {
|
|
111
118
|
const t = c.c(5);
|
|
112
|
-
let m;
|
|
113
|
-
t[0] !== e ? (m = r("command__shortcut", e), t[0] = e, t[1] = m) : m = t[1];
|
|
114
|
-
const o = m;
|
|
115
119
|
let n;
|
|
116
|
-
|
|
120
|
+
t[0] !== e ? (n = r("command__shortcut", e), t[0] = e, t[1] = n) : n = t[1];
|
|
121
|
+
const m = n;
|
|
122
|
+
let o;
|
|
123
|
+
return t[2] !== e.children || t[3] !== m ? (o = /* @__PURE__ */ i($, { ...m, children: e.children }), t[2] = e.children, t[3] = m, t[4] = o) : o = t[4], o;
|
|
117
124
|
};
|
|
118
125
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
126
|
+
y as Command,
|
|
127
|
+
nt as CommandDialog,
|
|
128
|
+
it as CommandEmpty,
|
|
129
|
+
lt as CommandGroup,
|
|
123
130
|
mt as CommandInput,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
ct as CommandItem,
|
|
132
|
+
ot as CommandList,
|
|
133
|
+
at as CommandSeparator,
|
|
134
|
+
rt as CommandShortcut
|
|
128
135
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import "../../utils/contextStore.js";
|
|
4
4
|
import "react";
|
|
@@ -6,121 +6,121 @@ import { mergeComponentProps as s } from "../../utils/component.js";
|
|
|
6
6
|
import "js-md5";
|
|
7
7
|
import * as x from "@radix-ui/react-context-menu";
|
|
8
8
|
import '../../assets/components/context-menu/ContextMenu.style.css';/* empty css */
|
|
9
|
-
import { AutoScrollArea as
|
|
10
|
-
const A = (
|
|
9
|
+
import { AutoScrollArea as a } from "../scroll-area/ScrollArea.js";
|
|
10
|
+
const A = (c) => {
|
|
11
11
|
const t = i.c(4);
|
|
12
12
|
let e;
|
|
13
|
-
t[0] !==
|
|
13
|
+
t[0] !== c ? (e = s("context-menu", c), t[0] = c, t[1] = e) : e = t[1];
|
|
14
14
|
const o = e;
|
|
15
15
|
let n;
|
|
16
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
17
|
-
}, w = (
|
|
16
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenu, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
17
|
+
}, w = (c) => {
|
|
18
18
|
const t = i.c(4);
|
|
19
19
|
let e;
|
|
20
|
-
t[0] !==
|
|
20
|
+
t[0] !== c ? (e = s("context-menu__trigger", c), t[0] = c, t[1] = e) : e = t[1];
|
|
21
21
|
const o = e;
|
|
22
22
|
let n;
|
|
23
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
24
|
-
}, P = (
|
|
23
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuTrigger, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
24
|
+
}, P = (c) => {
|
|
25
25
|
const t = i.c(4);
|
|
26
26
|
let e;
|
|
27
|
-
t[0] !==
|
|
27
|
+
t[0] !== c ? (e = s("context-menu__portal", c), t[0] = c, t[1] = e) : e = t[1];
|
|
28
28
|
const o = e;
|
|
29
29
|
let n;
|
|
30
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
31
|
-
},
|
|
30
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuPortal, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
31
|
+
}, v = (c) => {
|
|
32
32
|
const t = i.c(12);
|
|
33
33
|
let e, o, n, u;
|
|
34
|
-
if (t[0] !==
|
|
34
|
+
if (t[0] !== c) {
|
|
35
35
|
const {
|
|
36
|
-
children:
|
|
37
|
-
...
|
|
38
|
-
} =
|
|
39
|
-
o =
|
|
36
|
+
children: _,
|
|
37
|
+
...C
|
|
38
|
+
} = c;
|
|
39
|
+
o = _, e = x.ContextMenuContent, u = c.align, n = s(`context-menu__content context-menu__content--${c.color ?? "primary"}`, C), t[0] = c, t[1] = e, t[2] = o, t[3] = n, t[4] = u;
|
|
40
40
|
} else
|
|
41
41
|
e = t[1], o = t[2], n = t[3], u = t[4];
|
|
42
42
|
const f = n;
|
|
43
43
|
let r;
|
|
44
|
-
t[5] !== o ? (r = /* @__PURE__ */
|
|
44
|
+
t[5] !== o ? (r = /* @__PURE__ */ l(a, { children: /* @__PURE__ */ l("div", { className: "context-menu__content-inner", children: o }) }), t[5] = o, t[6] = r) : r = t[6];
|
|
45
45
|
let m;
|
|
46
|
-
return t[7] !== e || t[8] !== u || t[9] !== f || t[10] !== r ? (m = /* @__PURE__ */
|
|
47
|
-
},
|
|
46
|
+
return t[7] !== e || t[8] !== u || t[9] !== f || t[10] !== r ? (m = /* @__PURE__ */ l(e, { align: u, ...f, children: r }), t[7] = e, t[8] = u, t[9] = f, t[10] = r, t[11] = m) : m = t[11], m;
|
|
47
|
+
}, y = (c) => {
|
|
48
48
|
const t = i.c(4);
|
|
49
49
|
let e;
|
|
50
|
-
t[0] !==
|
|
50
|
+
t[0] !== c ? (e = s("context-menu__label", c), t[0] = c, t[1] = e) : e = t[1];
|
|
51
51
|
const o = e;
|
|
52
52
|
let n;
|
|
53
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
54
|
-
},
|
|
53
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuLabel, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
54
|
+
}, G = (c) => {
|
|
55
55
|
const t = i.c(4);
|
|
56
56
|
let e;
|
|
57
|
-
t[0] !==
|
|
57
|
+
t[0] !== c ? (e = s("context-menu__item", c), t[0] = c, t[1] = e) : e = t[1];
|
|
58
58
|
const o = e;
|
|
59
59
|
let n;
|
|
60
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
61
|
-
},
|
|
60
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuItem, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
61
|
+
}, I = (c) => {
|
|
62
62
|
const t = i.c(4);
|
|
63
63
|
let e;
|
|
64
|
-
t[0] !==
|
|
64
|
+
t[0] !== c ? (e = s("context-menu__group", c), t[0] = c, t[1] = e) : e = t[1];
|
|
65
65
|
const o = e;
|
|
66
66
|
let n;
|
|
67
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
68
|
-
},
|
|
67
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuGroup, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
68
|
+
}, L = (c) => {
|
|
69
69
|
const t = i.c(4);
|
|
70
70
|
let e;
|
|
71
|
-
t[0] !==
|
|
71
|
+
t[0] !== c ? (e = s("context-menu__sub", c), t[0] = c, t[1] = e) : e = t[1];
|
|
72
72
|
const o = e;
|
|
73
73
|
let n;
|
|
74
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
75
|
-
},
|
|
74
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuSub, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
75
|
+
}, N = (c) => {
|
|
76
76
|
const t = i.c(4);
|
|
77
77
|
let e;
|
|
78
|
-
t[0] !==
|
|
78
|
+
t[0] !== c ? (e = s("context-menu__sub-trigger", c), t[0] = c, t[1] = e) : e = t[1];
|
|
79
79
|
const o = e;
|
|
80
80
|
let n;
|
|
81
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
82
|
-
},
|
|
81
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuSubTrigger, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
82
|
+
}, R = (c) => {
|
|
83
83
|
const t = i.c(12);
|
|
84
84
|
let e, o, n, u;
|
|
85
|
-
if (t[0] !==
|
|
85
|
+
if (t[0] !== c) {
|
|
86
86
|
const {
|
|
87
|
-
children:
|
|
88
|
-
...
|
|
89
|
-
} =
|
|
90
|
-
o =
|
|
87
|
+
children: _,
|
|
88
|
+
...C
|
|
89
|
+
} = c;
|
|
90
|
+
o = _, e = x.ContextMenuSubContent, u = c.align, n = s(`context-menu__sub-content context-menu__sub-content--${c.color ?? "primary"}`, C), t[0] = c, t[1] = e, t[2] = o, t[3] = n, t[4] = u;
|
|
91
91
|
} else
|
|
92
92
|
e = t[1], o = t[2], n = t[3], u = t[4];
|
|
93
93
|
const f = n;
|
|
94
94
|
let r;
|
|
95
|
-
t[5] !== o ? (r = /* @__PURE__ */
|
|
95
|
+
t[5] !== o ? (r = /* @__PURE__ */ l(a, { children: /* @__PURE__ */ l("div", { className: "context-menu__content-inner", children: o }) }), t[5] = o, t[6] = r) : r = t[6];
|
|
96
96
|
let m;
|
|
97
|
-
return t[7] !== e || t[8] !== u || t[9] !== f || t[10] !== r ? (m = /* @__PURE__ */
|
|
98
|
-
},
|
|
97
|
+
return t[7] !== e || t[8] !== u || t[9] !== f || t[10] !== r ? (m = /* @__PURE__ */ l(e, { align: u, ...f, children: r }), t[7] = e, t[8] = u, t[9] = f, t[10] = r, t[11] = m) : m = t[11], m;
|
|
98
|
+
}, j = (c) => {
|
|
99
99
|
const t = i.c(4);
|
|
100
100
|
let e;
|
|
101
|
-
t[0] !==
|
|
101
|
+
t[0] !== c ? (e = s("context-menu__separator", c), t[0] = c, t[1] = e) : e = t[1];
|
|
102
102
|
const o = e;
|
|
103
103
|
let n;
|
|
104
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
105
|
-
},
|
|
104
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuSeparator, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
105
|
+
}, E = (c) => {
|
|
106
106
|
const t = i.c(4);
|
|
107
107
|
let e;
|
|
108
|
-
t[0] !==
|
|
108
|
+
t[0] !== c ? (e = s("context-menu__arrow", c), t[0] = c, t[1] = e) : e = t[1];
|
|
109
109
|
const o = e;
|
|
110
110
|
let n;
|
|
111
|
-
return t[2] !== o ? (n = /* @__PURE__ */
|
|
111
|
+
return t[2] !== o ? (n = /* @__PURE__ */ l(x.ContextMenuArrow, { ...o }), t[2] = o, t[3] = n) : n = t[3], n;
|
|
112
112
|
};
|
|
113
113
|
export {
|
|
114
114
|
A as ContextMenu,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
E as ContextMenuArrow,
|
|
116
|
+
v as ContextMenuContent,
|
|
117
|
+
I as ContextMenuGroup,
|
|
118
|
+
G as ContextMenuItem,
|
|
119
|
+
y as ContextMenuLabel,
|
|
120
120
|
P as ContextMenuPortal,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
j as ContextMenuSeparator,
|
|
122
|
+
L as ContextMenuSub,
|
|
123
|
+
R as ContextMenuSubContent,
|
|
124
|
+
N as ContextMenuSubTrigger,
|
|
125
125
|
w as ContextMenuTrigger
|
|
126
126
|
};
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as T, jsx as s, Fragment as L } from "react/jsx-runtime";
|
|
2
2
|
import { c as N } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import "../../utils/contextStore.js";
|
|
4
|
-
import
|
|
4
|
+
import p from "react";
|
|
5
5
|
import { mergeComponentProps as P } from "../../utils/component.js";
|
|
6
6
|
import "js-md5";
|
|
7
7
|
import { InputMessage as k } from "./InputMessage.js";
|
|
8
8
|
import { InputLabel as C } from "./InputLabel.js";
|
|
9
9
|
import { InputDescription as D } from "./InputDescription.js";
|
|
10
10
|
import '../../assets/components/form/InputWrapper.style.css';/* empty css */
|
|
11
|
-
const
|
|
11
|
+
const U = p.forwardRef((F, W) => {
|
|
12
12
|
const e = N.c(22), {
|
|
13
|
-
children:
|
|
14
|
-
left:
|
|
15
|
-
right:
|
|
13
|
+
children: a,
|
|
14
|
+
left: d,
|
|
15
|
+
right: c,
|
|
16
16
|
leftType: $,
|
|
17
17
|
rightType: x,
|
|
18
|
-
title:
|
|
19
|
-
description:
|
|
20
|
-
formValidation:
|
|
21
|
-
...
|
|
22
|
-
} = F, b = $ === void 0 ? "icon" : $,
|
|
23
|
-
let
|
|
24
|
-
e[0] !==
|
|
18
|
+
title: m,
|
|
19
|
+
description: f,
|
|
20
|
+
formValidation: u,
|
|
21
|
+
...h
|
|
22
|
+
} = F, b = $ === void 0 ? "icon" : $, I = x === void 0 ? "action" : x;
|
|
23
|
+
let g;
|
|
24
|
+
e[0] !== u ? (g = u === void 0 ? {
|
|
25
25
|
valid: !0,
|
|
26
26
|
notValidMessage: null,
|
|
27
27
|
setValue: null
|
|
28
|
-
} :
|
|
29
|
-
const t =
|
|
30
|
-
id:
|
|
31
|
-
...
|
|
32
|
-
"aria-labelledby":
|
|
28
|
+
} : u, e[0] = u, e[1] = g) : g = e[1];
|
|
29
|
+
const t = g, R = p.useId(), _ = (p.isValidElement(a) ? a.props.id : void 0) ?? h.id ?? R, E = `${_}-label`, M = m ? void 0 : h["aria-label"] ?? h.placeholder, j = {
|
|
30
|
+
id: _,
|
|
31
|
+
...m ? {
|
|
32
|
+
"aria-labelledby": E
|
|
33
33
|
} : {},
|
|
34
|
-
...
|
|
35
|
-
"aria-label":
|
|
34
|
+
...M ? {
|
|
35
|
+
"aria-label": M
|
|
36
36
|
} : {}
|
|
37
|
-
}, V =
|
|
37
|
+
}, V = m && /* @__PURE__ */ s(C, { htmlFor: _, id: E, children: m });
|
|
38
38
|
let i;
|
|
39
|
-
e[2] !==
|
|
40
|
-
const w = P(`input-wrapper ${t?.valid ? "" : "input-wrapper--not-valid"}`,
|
|
39
|
+
e[2] !== f ? (i = f && /* @__PURE__ */ s(D, { children: f }), e[2] = f, e[3] = i) : i = e[3];
|
|
40
|
+
const w = P(`input-wrapper ${t?.valid ? "" : "input-wrapper--not-valid"}`, h);
|
|
41
41
|
let l;
|
|
42
|
-
e[4] !==
|
|
43
|
-
const y =
|
|
42
|
+
e[4] !== d || e[5] !== b ? (l = d && /* @__PURE__ */ s("div", { className: `input-wrapper__left input__left--${b}`, children: d }), e[4] = d, e[5] = b, e[6] = l) : l = e[6];
|
|
43
|
+
const y = p.isValidElement(a) ? p.cloneElement(a, {
|
|
44
44
|
...j
|
|
45
|
-
}) :
|
|
45
|
+
}) : a;
|
|
46
46
|
let r;
|
|
47
|
-
e[7] !==
|
|
47
|
+
e[7] !== c || e[8] !== I ? (r = c && /* @__PURE__ */ s("div", { className: `input-wrapper__right input-wrapper__right--${I}`, children: c }), e[7] = c, e[8] = I, e[9] = r) : r = e[9];
|
|
48
48
|
let o;
|
|
49
|
-
e[10] !== w || e[11] !== l || e[12] !== y || e[13] !== r ? (o = /* @__PURE__ */
|
|
49
|
+
e[10] !== w || e[11] !== l || e[12] !== y || e[13] !== r ? (o = /* @__PURE__ */ T("div", { ...w, children: [
|
|
50
50
|
l,
|
|
51
51
|
y,
|
|
52
52
|
r
|
|
53
53
|
] }), e[10] = w, e[11] = l, e[12] = y, e[13] = r, e[14] = o) : o = e[14];
|
|
54
54
|
let n;
|
|
55
|
-
e[15] !== t ? (n = !t?.valid && t?.notValidMessage && /* @__PURE__ */
|
|
56
|
-
let
|
|
57
|
-
return e[17] !== o || e[18] !== n || e[19] !== V || e[20] !== i ? (
|
|
55
|
+
e[15] !== t ? (n = !t?.valid && t?.notValidMessage && /* @__PURE__ */ s(k, { children: t.notValidMessage }), e[15] = t, e[16] = n) : n = e[16];
|
|
56
|
+
let v;
|
|
57
|
+
return e[17] !== o || e[18] !== n || e[19] !== V || e[20] !== i ? (v = /* @__PURE__ */ T(L, { children: [
|
|
58
58
|
V,
|
|
59
59
|
i,
|
|
60
60
|
o,
|
|
61
61
|
n
|
|
62
|
-
] }), e[17] = o, e[18] = n, e[19] = V, e[20] = i, e[21] =
|
|
62
|
+
] }), e[17] = o, e[18] = n, e[19] = V, e[20] = i, e[21] = v) : v = e[21], v;
|
|
63
63
|
});
|
|
64
64
|
export {
|
|
65
|
-
|
|
65
|
+
U as InputWrapper
|
|
66
66
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { InputProps } from './Input';
|
|
3
|
-
export interface TextInputProps extends Omit<InputProps<string | null>, "
|
|
3
|
+
export interface TextInputProps extends Omit<InputProps<string | null>, "type"> {
|
|
4
4
|
clearable?: boolean;
|
|
5
5
|
onClear?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
6
|
}
|
|
@@ -27,7 +27,7 @@ const U = (s) => {
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
for (let p = 0; p < e.length; p++) {
|
|
30
|
-
const i = e[p], m = (i.step + o) / 1.75, M = i.step /
|
|
30
|
+
const i = e[p], m = (i.step + o) / 1.75, M = i.step / 2, R = i.step * 2;
|
|
31
31
|
if (M < o && o < R) {
|
|
32
32
|
i.step = m, i.items.push(r), c = !0;
|
|
33
33
|
break;
|