@situaction/traq-ui-ste 1.1.29 → 1.1.31
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/components/button/Button.d.ts +2 -2
- package/dist/components/button/Button.js +41 -38
- package/dist/components/editable-field/EditableField.js +3 -3
- package/dist/components/editable-select/EditableSelect.d.ts +14 -0
- package/dist/components/editable-select/EditableSelect.js +26 -0
- package/dist/components/icon-button/IconButton.d.ts +2 -2
- package/dist/components/icon-button/IconButton.js +39 -33
- package/dist/components/list/list-controls/ListControls.js +2 -2
- package/dist/components/list/nested-list/NestedList.js +2 -2
- package/dist/components/list/nested-list/item/NestedListItem.js +13 -12
- package/dist/components/menu/Menu.js +3 -4
- package/dist/components/modal/Modal.d.ts +5 -2
- package/dist/components/modal/Modal.js +50 -20
- package/dist/components/panel/side-panel-header/SidePanelHeader.js +50 -34
- package/dist/components/select/Select.d.ts +7 -3
- package/dist/components/select/Select.js +151 -59
- package/dist/components/select-filter-input-tags/SelectFilterInputTags.js +9 -8
- package/dist/components/select-multi-items/SelectMultiItems.js +2 -2
- package/dist/components/switch/Switch.js +2 -2
- package/dist/components/tabs/Tabs.d.ts +3 -0
- package/dist/components/tabs/Tabs.js +74 -58
- package/dist/main.d.ts +1 -0
- package/dist/main.js +60 -59
- package/dist/styles/Button.css +1 -1
- package/dist/styles/EditableField.css +1 -1
- package/dist/styles/EditableSelect.css +1 -0
- package/package.json +1 -1
- package/dist/styles/index.css +0 -1
|
@@ -1,79 +1,171 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Button as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Modal as g } from "../modal/Modal.js";
|
|
1
|
+
import { jsxs as K, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k, useRef as h, useEffect as w } from "react";
|
|
3
|
+
import { Button as E } from "../button/Button.js";
|
|
4
|
+
import { IconButton as I } from "../icon-button/IconButton.js";
|
|
5
|
+
import { Icon as p } from "../icon/Icon.js";
|
|
6
|
+
import { Modal as M } from "../modal/Modal.js";
|
|
8
7
|
import "../theme/ThemeContext.js";
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
selectContainer:
|
|
8
|
+
import '../../styles/Size.css';import '../../styles/Select.css';/* empty css */
|
|
9
|
+
const O = "_selectContainer_1o5wx_54", q = "_selected_1o5wx_57", A = "_children_1o5wx_61", D = "_active_1o5wx_78", G = "_selectList_1o5wx_82", H = "_modal_1o5wx_91", J = "_dropdownFadeIn_1o5wx_1", Q = "_itemLabel_1o5wx_98", m = {
|
|
10
|
+
selectContainer: O,
|
|
11
|
+
selected: q,
|
|
12
|
+
children: A,
|
|
13
|
+
active: D,
|
|
14
|
+
selectList: G,
|
|
15
|
+
modal: H,
|
|
16
|
+
dropdownFadeIn: J,
|
|
17
|
+
itemLabel: Q
|
|
18
|
+
}, re = ({
|
|
12
19
|
selected: y,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
size: _ = "m",
|
|
21
|
+
listItem: a,
|
|
22
|
+
modeDisplay: x = "all",
|
|
23
|
+
onSelect: S,
|
|
24
|
+
positionOverride: g,
|
|
25
|
+
placeholder: N = "Sélectionner",
|
|
26
|
+
autoCloseCondition: W
|
|
27
|
+
}) => {
|
|
28
|
+
const [t, u] = k(!1), $ = h(null), [j, B] = k({
|
|
29
|
+
top: "calc(100% + 6px)",
|
|
30
|
+
left: "0px",
|
|
31
|
+
width: "100%"
|
|
32
|
+
}), [c, P] = k(y ?? null);
|
|
21
33
|
w(() => {
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
const e =
|
|
30
|
-
return
|
|
31
|
-
|
|
34
|
+
P(y ?? null);
|
|
35
|
+
}, [y]), w(() => {
|
|
36
|
+
g && B(g);
|
|
37
|
+
}, [g]);
|
|
38
|
+
const U = (e) => {
|
|
39
|
+
P(e), u(!1), S && S(e);
|
|
40
|
+
}, V = () => {
|
|
41
|
+
const e = c == null ? void 0 : c.icon, o = (c == null ? void 0 : c.label) || N || "Sélectionner";
|
|
42
|
+
return x === "icon" && e ? /* @__PURE__ */ r(I, { ref: d, mode: "tertiary", size: _, onClick: () => u(!t), children: /* @__PURE__ */ r(p, { icon: c.icon }) }) : x === "text" ? /* @__PURE__ */ r(
|
|
43
|
+
E,
|
|
32
44
|
{
|
|
45
|
+
ref: d,
|
|
33
46
|
mode: "tertiary",
|
|
34
|
-
label:
|
|
35
|
-
childrenRight: /* @__PURE__ */
|
|
36
|
-
size:
|
|
37
|
-
onClick: () =>
|
|
47
|
+
label: o,
|
|
48
|
+
childrenRight: /* @__PURE__ */ r(p, { icon: t ? "CaretUp" : "CaretDown", size: 14, weight: "bold" }),
|
|
49
|
+
size: _,
|
|
50
|
+
onClick: () => u(!t)
|
|
38
51
|
}
|
|
39
|
-
) :
|
|
40
|
-
|
|
52
|
+
) : x === "all" ? /* @__PURE__ */ r(
|
|
53
|
+
E,
|
|
41
54
|
{
|
|
55
|
+
ref: d,
|
|
42
56
|
mode: "tertiary",
|
|
43
|
-
label:
|
|
44
|
-
size:
|
|
45
|
-
childrenLeft: e && /* @__PURE__ */
|
|
46
|
-
childrenRight: /* @__PURE__ */
|
|
47
|
-
onClick: () =>
|
|
57
|
+
label: o,
|
|
58
|
+
size: _,
|
|
59
|
+
childrenLeft: e && /* @__PURE__ */ r(p, { icon: c.icon }),
|
|
60
|
+
childrenRight: /* @__PURE__ */ r(p, { icon: t ? "CaretUp" : "CaretDown", size: 14, weight: "bold" }),
|
|
61
|
+
onClick: () => u(!t)
|
|
48
62
|
}
|
|
49
|
-
) : /* @__PURE__ */
|
|
50
|
-
|
|
63
|
+
) : /* @__PURE__ */ r(
|
|
64
|
+
E,
|
|
51
65
|
{
|
|
66
|
+
ref: d,
|
|
52
67
|
mode: "tertiary",
|
|
53
|
-
label: "Sélectionner",
|
|
54
|
-
size:
|
|
55
|
-
onClick: () =>
|
|
68
|
+
label: N ?? "Sélectionner",
|
|
69
|
+
size: _,
|
|
70
|
+
onClick: () => u(!t)
|
|
56
71
|
}
|
|
57
72
|
);
|
|
73
|
+
}, R = h(null), b = h({}), [L, v] = k(""), f = h(null), F = h({}), T = (e) => {
|
|
74
|
+
if (!t) return;
|
|
75
|
+
const o = e.key.length === 1 ? e.key.toLowerCase() : "";
|
|
76
|
+
if (!o) return;
|
|
77
|
+
const i = L + o;
|
|
78
|
+
v(i);
|
|
79
|
+
const l = a.find((n) => {
|
|
80
|
+
var s;
|
|
81
|
+
return (s = n.label) == null ? void 0 : s.toLowerCase().startsWith(i);
|
|
82
|
+
});
|
|
83
|
+
if (l) {
|
|
84
|
+
const n = b.current[l.value];
|
|
85
|
+
n == null || n.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
86
|
+
}
|
|
87
|
+
f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
88
|
+
v("");
|
|
89
|
+
}, 500);
|
|
58
90
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
91
|
+
w(() => (t ? window.addEventListener("keydown", T) : (window.removeEventListener("keydown", T), v("")), () => {
|
|
92
|
+
window.removeEventListener("keydown", T);
|
|
93
|
+
}), [t, L, a]), w(() => {
|
|
94
|
+
const e = (o) => {
|
|
95
|
+
if (!t) return;
|
|
96
|
+
const i = o.key.length === 1 ? o.key.toLowerCase() : "";
|
|
97
|
+
if (!i) return;
|
|
98
|
+
const l = L + i;
|
|
99
|
+
v(l);
|
|
100
|
+
const n = a.find(
|
|
101
|
+
(s) => {
|
|
102
|
+
var C;
|
|
103
|
+
return (C = s.label) == null ? void 0 : C.toLowerCase().startsWith(l);
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
if (n && R.current && n.value in b.current && b.current[n.value]) {
|
|
107
|
+
const s = R.current, C = b.current[n.value];
|
|
108
|
+
s.scrollTo({
|
|
109
|
+
top: C.offsetTop - s.offsetTop,
|
|
110
|
+
behavior: "smooth"
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
114
|
+
v("");
|
|
115
|
+
}, 700);
|
|
116
|
+
};
|
|
117
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
118
|
+
}, [t, a, L]), w(() => {
|
|
119
|
+
if (!t) return;
|
|
120
|
+
const e = (o) => {
|
|
121
|
+
const i = o.key.toLowerCase();
|
|
122
|
+
if (i.length === 1) {
|
|
123
|
+
const l = a.find(
|
|
124
|
+
(n) => {
|
|
125
|
+
var s;
|
|
126
|
+
return (s = n.label) == null ? void 0 : s.toLowerCase().startsWith(i);
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
if (l) {
|
|
130
|
+
const n = F.current[l.value];
|
|
131
|
+
n && n.scrollIntoView({ block: "start", behavior: "smooth" });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
136
|
+
}, [t, a]);
|
|
137
|
+
const d = h(null);
|
|
138
|
+
return w(() => {
|
|
139
|
+
if (t && d.current) {
|
|
140
|
+
const e = d.current.getBoundingClientRect().height;
|
|
141
|
+
B({
|
|
142
|
+
top: `${e + 6}px`,
|
|
143
|
+
left: "0px",
|
|
144
|
+
width: "100%"
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}, [t]), /* @__PURE__ */ K("div", { className: m.selectContainer, children: [
|
|
148
|
+
V(),
|
|
149
|
+
/* @__PURE__ */ r(
|
|
150
|
+
M,
|
|
63
151
|
{
|
|
64
|
-
ref:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
position:
|
|
69
|
-
|
|
152
|
+
ref: $,
|
|
153
|
+
anchorRef: d,
|
|
154
|
+
open: t,
|
|
155
|
+
onClose: () => u(!1),
|
|
156
|
+
position: j,
|
|
157
|
+
disableOverlay: !0,
|
|
158
|
+
className: m.modal,
|
|
159
|
+
autoCloseCondition: W,
|
|
160
|
+
children: /* @__PURE__ */ r("div", { className: m.selectList, ref: R, children: a.map((e) => /* @__PURE__ */ K(
|
|
70
161
|
"div",
|
|
71
162
|
{
|
|
72
|
-
|
|
73
|
-
|
|
163
|
+
ref: (o) => F.current[e.value] = o,
|
|
164
|
+
className: `${m.children} ${(c == null ? void 0 : c.value) === e.value ? m.active : ""}`,
|
|
165
|
+
onClick: () => U(e),
|
|
74
166
|
children: [
|
|
75
|
-
e.icon && /* @__PURE__ */
|
|
76
|
-
e.label && /* @__PURE__ */
|
|
167
|
+
e.icon && /* @__PURE__ */ r(p, { icon: e.icon }),
|
|
168
|
+
e.label && /* @__PURE__ */ r("div", { className: m.itemLabel, children: e.label })
|
|
77
169
|
]
|
|
78
170
|
},
|
|
79
171
|
e.value
|
|
@@ -83,5 +175,5 @@ const R = "_selectContainer_1o5wx_54", y = "_selected_1o5wx_57", z = "_children_
|
|
|
83
175
|
] });
|
|
84
176
|
};
|
|
85
177
|
export {
|
|
86
|
-
|
|
178
|
+
re as Select
|
|
87
179
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "../button/Button.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Input as c } from "../input/Input.js";
|
|
5
|
+
import "../icon-button/IconButton.js";
|
|
5
6
|
import "../modal/Modal.js";
|
|
6
7
|
import "../theme/ThemeContext.js";
|
|
7
|
-
|
|
8
|
-
const a = "_listTagSelect_2v3fb_6",
|
|
8
|
+
import '../../styles/Size.css';import '../../styles/SelectFilterInputTags.css';/* empty css */
|
|
9
|
+
const a = "_listTagSelect_2v3fb_6", p = "_flexAutoSize_2v3fb_24", u = {
|
|
9
10
|
listTagSelect: a,
|
|
10
|
-
flexAutoSize:
|
|
11
|
-
},
|
|
12
|
-
|
|
11
|
+
flexAutoSize: p
|
|
12
|
+
}, _ = ({ children: o, inputValue: l, handleInputChange: s, handleKeyDown: i }) => /* @__PURE__ */ e("div", { className: u.listTagSelect, children: /* @__PURE__ */ r("div", { children: [
|
|
13
|
+
o,
|
|
13
14
|
/* @__PURE__ */ e("div", { className: "flexAutoSize", children: /* @__PURE__ */ e(
|
|
14
15
|
c,
|
|
15
16
|
{
|
|
16
17
|
type: "text",
|
|
17
|
-
value:
|
|
18
|
+
value: l,
|
|
18
19
|
onKeyDown: (t) => {
|
|
19
20
|
t.key === "Enter" && i && i(t);
|
|
20
21
|
},
|
|
@@ -27,5 +28,5 @@ const a = "_listTagSelect_2v3fb_6", u = "_flexAutoSize_2v3fb_24", n = {
|
|
|
27
28
|
) })
|
|
28
29
|
] }) });
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
_ as SelectFilterInputTags
|
|
31
32
|
};
|
|
@@ -2,11 +2,11 @@ import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as _, useRef as h } from "react";
|
|
3
3
|
import { R as v, I as C, D as x } from "../../X-Bd1VjKAF.mjs";
|
|
4
4
|
import { Button as M } from "../button/Button.js";
|
|
5
|
-
import
|
|
5
|
+
import "../icon-button/IconButton.js";
|
|
6
6
|
import { TagCounter as R } from "../tag-counter/TagCounter.js";
|
|
7
7
|
import { Modal as w } from "../modal/Modal.js";
|
|
8
8
|
import "../theme/ThemeContext.js";
|
|
9
|
-
|
|
9
|
+
import '../../styles/Size.css';import '../../styles/SelectMultiItems.css';/* empty css */
|
|
10
10
|
const y = "_relative_w7e9a_6", I = "_tagCounter_w7e9a_10", N = "_modal_w7e9a_18", r = {
|
|
11
11
|
relative: y,
|
|
12
12
|
tagCounter: I,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as m, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useState as $, useEffect as b } from "react";
|
|
3
|
-
import
|
|
3
|
+
import "../button/Button.js";
|
|
4
4
|
import { IconButton as k } from "../icon-button/IconButton.js";
|
|
5
5
|
import { Icon as g } from "../icon/Icon.js";
|
|
6
6
|
import "../modal/Modal.js";
|
|
7
7
|
import "../theme/ThemeContext.js";
|
|
8
|
-
|
|
8
|
+
import '../../styles/Size.css';import '../../styles/Switch.css';/* empty css */
|
|
9
9
|
const y = "_slider_1mxgk_21", I = "_s_1mxgk_6", N = "_m_1mxgk_58", S = "_l_1mxgk_75", j = "_xl_1mxgk_92", B = "_disabled_1mxgk_110", E = "_wrapper_1mxgk_121", R = "_button_1mxgk_136", T = "_active_1mxgk_145", t = {
|
|
10
10
|
switch: "_switch_1mxgk_6",
|
|
11
11
|
slider: y,
|
|
@@ -11,7 +11,10 @@ export interface TabsProps {
|
|
|
11
11
|
position?: 'center' | 'right' | 'left';
|
|
12
12
|
/** Callback function to handle tab selection, receiving the selected tab's label */
|
|
13
13
|
onTabSelect: (selectedItem: string | ReactNode) => void;
|
|
14
|
+
/** Full width*/
|
|
14
15
|
fullWidth?: boolean;
|
|
16
|
+
/** tabs disabled */
|
|
17
|
+
disabledTabs?: number[];
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* Tabs component that allows tab navigation with text, icons, or buttons.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
const w = "_underline_6o3gh_70", n = {
|
|
1
|
+
import { jsxs as w, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useRef as u, useLayoutEffect as B } from "react";
|
|
3
|
+
import { Button as p } from "../button/Button.js";
|
|
4
|
+
import { IconButton as S } from "../icon-button/IconButton.js";
|
|
5
|
+
import '../../styles/Tabs.css';const j = "_underline_6o3gh_70", e = {
|
|
7
6
|
"tab-container": "_tab-container_6o3gh_30",
|
|
8
7
|
"tab-container-button": "_tab-container-button_6o3gh_34",
|
|
9
8
|
"tab-container-icon": "_tab-container-icon_6o3gh_39",
|
|
@@ -13,68 +12,85 @@ const w = "_underline_6o3gh_70", n = {
|
|
|
13
12
|
"tab-full-width": "_tab-full-width_6o3gh_51",
|
|
14
13
|
"selected-button": "_selected-button_6o3gh_57",
|
|
15
14
|
"selected-text": "_selected-text_6o3gh_63",
|
|
16
|
-
underline:
|
|
15
|
+
underline: j,
|
|
17
16
|
"flexHorizontal-center": "_flexHorizontal-center_6o3gh_78",
|
|
18
17
|
"flexHorizontal-left": "_flexHorizontal-left_6o3gh_84",
|
|
19
18
|
"flexHorizontal-right": "_flexHorizontal-right_6o3gh_90"
|
|
20
|
-
},
|
|
21
|
-
listItems:
|
|
19
|
+
}, q = ({
|
|
20
|
+
listItems: c,
|
|
22
21
|
type: o,
|
|
23
|
-
onTabSelect:
|
|
24
|
-
defaultActiveTab:
|
|
25
|
-
position:
|
|
26
|
-
fullWidth:
|
|
22
|
+
onTabSelect: h,
|
|
23
|
+
defaultActiveTab: g = 0,
|
|
24
|
+
position: m = "left",
|
|
25
|
+
fullWidth: x = !1,
|
|
26
|
+
disabledTabs: b = []
|
|
27
|
+
// ✅ par défaut vide
|
|
27
28
|
}) => {
|
|
28
|
-
const [
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
left: `${
|
|
35
|
-
width: `${
|
|
29
|
+
const [s, v] = f(g), [z, $] = f({}), r = u(null), R = u(null), _ = u([]), d = (t) => {
|
|
30
|
+
b.includes(t) || (v(t), h(c[t]));
|
|
31
|
+
}, H = (t) => {
|
|
32
|
+
if (r.current && t) {
|
|
33
|
+
const n = t.getBoundingClientRect(), i = r.current.getBoundingClientRect();
|
|
34
|
+
$({
|
|
35
|
+
left: `${n.left - i.left}px`,
|
|
36
|
+
width: `${n.width}px`
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
o === "button" ?
|
|
39
|
+
}, C = [
|
|
40
|
+
e[`flexHorizontal-${m}`],
|
|
41
|
+
o === "button" ? e["tab-items-button"] : e["tab-items"]
|
|
41
42
|
].filter(Boolean).join(" ");
|
|
42
|
-
return
|
|
43
|
-
const t = _.current[
|
|
43
|
+
return B(() => {
|
|
44
|
+
const t = _.current[s];
|
|
44
45
|
t && requestAnimationFrame(() => {
|
|
45
|
-
|
|
46
|
+
H(t);
|
|
46
47
|
});
|
|
47
|
-
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
48
|
+
}, [s, c.length]), /* @__PURE__ */ w(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: `tab ${e["tab-container"]} ${e[`tab-container-${o}`]} ${x && e["tab-full-width"]}`,
|
|
52
|
+
ref: r,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ l("div", { className: C, children: c.map((t, n) => {
|
|
55
|
+
const i = b.includes(n), a = n === s;
|
|
56
|
+
return /* @__PURE__ */ l(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
ref: (N) => _.current[n] = N,
|
|
60
|
+
className: `
|
|
61
|
+
${o === "button" && a ? e["selected-button"] : ""}
|
|
62
|
+
${i ? e["tab-disabled"] : ""}
|
|
63
|
+
`,
|
|
64
|
+
children: o === "icon" ? /* @__PURE__ */ l(
|
|
65
|
+
S,
|
|
66
|
+
{
|
|
67
|
+
mode: "icon",
|
|
68
|
+
size: "s",
|
|
69
|
+
selected: a,
|
|
70
|
+
onClick: () => d(n),
|
|
71
|
+
disabled: i,
|
|
72
|
+
children: t
|
|
73
|
+
}
|
|
74
|
+
) : /* @__PURE__ */ l("div", { className: a ? e["selected-text"] : void 0, children: /* @__PURE__ */ l(
|
|
75
|
+
p,
|
|
76
|
+
{
|
|
77
|
+
size: "s",
|
|
78
|
+
label: t,
|
|
79
|
+
mode: o === "text" ? "text" : "ghost",
|
|
80
|
+
selected: a,
|
|
81
|
+
onClick: () => d(n),
|
|
82
|
+
disabled: i
|
|
83
|
+
}
|
|
84
|
+
) })
|
|
85
|
+
},
|
|
86
|
+
n
|
|
87
|
+
);
|
|
88
|
+
}) }),
|
|
89
|
+
o !== "button" && /* @__PURE__ */ l("div", { ref: R, className: e.underline, style: z })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
);
|
|
77
93
|
};
|
|
78
94
|
export {
|
|
79
|
-
|
|
95
|
+
q as Tabs
|
|
80
96
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -27,4 +27,5 @@ export { SidePanel } from './components/panel/side-panel/SidePanel';
|
|
|
27
27
|
export { SidePanelHeader } from './components/panel/side-panel-header/SidePanelHeader';
|
|
28
28
|
export { InputLabel } from './components/input-label/InputLabel';
|
|
29
29
|
export { EditableField } from './components/editable-field/EditableField';
|
|
30
|
+
export { EditableSelect } from './components/editable-select/EditableSelect';
|
|
30
31
|
export { ThemeProvider, useTheme } from './components/theme/ThemeContext';
|
package/dist/main.js
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { ButtonControlledScroll as
|
|
3
|
-
import { Input as
|
|
4
|
-
import { Tabs as
|
|
5
|
-
import { IconButton as
|
|
6
|
-
import { Tag as
|
|
7
|
-
import { Title as
|
|
1
|
+
import { Button as t } from "./components/button/Button.js";
|
|
2
|
+
import { ButtonControlledScroll as p } from "./components/buttonControledScroll/ButtonControlledScroll.js";
|
|
3
|
+
import { Input as f } from "./components/input/Input.js";
|
|
4
|
+
import { Tabs as i } from "./components/tabs/Tabs.js";
|
|
5
|
+
import { IconButton as d } from "./components/icon-button/IconButton.js";
|
|
6
|
+
import { Tag as c } from "./components/tag/Tag.js";
|
|
7
|
+
import { Title as u } from "./components/title/Title.js";
|
|
8
8
|
import { TagCounter as S } from "./components/tag-counter/TagCounter.js";
|
|
9
|
-
import { Checkbox as
|
|
10
|
-
import { Tooltip as
|
|
11
|
-
import { Select as
|
|
12
|
-
import { Calendar as
|
|
13
|
-
import { Accordion as
|
|
14
|
-
import { AccordionItem as
|
|
15
|
-
import { Card as
|
|
16
|
-
import { Icon as
|
|
17
|
-
import { Menu as
|
|
18
|
-
import { Modal as
|
|
19
|
-
import { SelectMultiItems as
|
|
20
|
-
import { SelectFilterInputTags as
|
|
21
|
-
import { ListControls as
|
|
22
|
-
import { NestedList as
|
|
23
|
-
import { NestedListItem as
|
|
24
|
-
import { Switch as
|
|
25
|
-
import { SidePanel as
|
|
26
|
-
import { SidePanelHeader as
|
|
27
|
-
import { InputLabel as
|
|
28
|
-
import { EditableField as
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
|
|
9
|
+
import { Checkbox as C } from "./components/checkbox/Checkbox.js";
|
|
10
|
+
import { Tooltip as h } from "./components/tooltip/Tooltip.js";
|
|
11
|
+
import { Select as g } from "./components/select/Select.js";
|
|
12
|
+
import { Calendar as M } from "./components/calendar/Calendar.js";
|
|
13
|
+
import { Accordion as A } from "./components/accordion/Accordion.js";
|
|
14
|
+
import { AccordionItem as F } from "./components/accordion/item/AccordionItem.js";
|
|
15
|
+
import { Card as k } from "./components/card/Card.js";
|
|
16
|
+
import { Icon as w } from "./components/icon/Icon.js";
|
|
17
|
+
import { Menu as j } from "./components/menu/Menu.js";
|
|
18
|
+
import { Modal as y } from "./components/modal/Modal.js";
|
|
19
|
+
import { SelectMultiItems as D } from "./components/select-multi-items/SelectMultiItems.js";
|
|
20
|
+
import { SelectFilterInputTags as J } from "./components/select-filter-input-tags/SelectFilterInputTags.js";
|
|
21
|
+
import { ListControls as O } from "./components/list/list-controls/ListControls.js";
|
|
22
|
+
import { NestedList as R } from "./components/list/nested-list/NestedList.js";
|
|
23
|
+
import { NestedListItem as V } from "./components/list/nested-list/item/NestedListItem.js";
|
|
24
|
+
import { Switch as X } from "./components/switch/Switch.js";
|
|
25
|
+
import { SidePanel as Z } from "./components/panel/side-panel/SidePanel.js";
|
|
26
|
+
import { SidePanelHeader as $ } from "./components/panel/side-panel-header/SidePanelHeader.js";
|
|
27
|
+
import { InputLabel as ro } from "./components/input-label/InputLabel.js";
|
|
28
|
+
import { EditableField as to } from "./components/editable-field/EditableField.js";
|
|
29
|
+
import { EditableSelect as po } from "./components/editable-select/EditableSelect.js";
|
|
30
|
+
import { ThemeProvider as fo, useTheme as lo } from "./components/theme/ThemeContext.js";
|
|
31
|
+
import './styles/Size.css';/* empty css */
|
|
32
32
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
33
|
+
A as Accordion,
|
|
34
|
+
F as AccordionItem,
|
|
35
|
+
t as Button,
|
|
36
|
+
p as ButtonControlledScroll,
|
|
37
|
+
M as Calendar,
|
|
38
|
+
k as Card,
|
|
39
|
+
C as Checkbox,
|
|
40
|
+
to as EditableField,
|
|
41
|
+
po as EditableSelect,
|
|
42
|
+
w as Icon,
|
|
43
|
+
d as IconButton,
|
|
44
|
+
f as Input,
|
|
45
|
+
ro as InputLabel,
|
|
46
|
+
O as ListControls,
|
|
47
|
+
j as Menu,
|
|
48
|
+
y as Modal,
|
|
49
|
+
R as NestedList,
|
|
50
|
+
V as NestedListItem,
|
|
51
|
+
g as Select,
|
|
52
|
+
J as SelectFilterInputTags,
|
|
53
|
+
D as SelectMultiItems,
|
|
54
|
+
Z as SidePanel,
|
|
55
|
+
$ as SidePanelHeader,
|
|
56
|
+
X as Switch,
|
|
57
|
+
i as Tabs,
|
|
58
|
+
c as Tag,
|
|
58
59
|
S as TagCounter,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
fo as ThemeProvider,
|
|
61
|
+
u as Title,
|
|
62
|
+
h as Tooltip,
|
|
63
|
+
lo as useTheme
|
|
63
64
|
};
|
package/dist/styles/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._button_mzv5s_30{font-family:var(--font-family);font-weight:500;font-style:normal;line-height:1.25rem;border:0;cursor:pointer;width:fit-content}._button_mzv5s_30:focus-visible{outline:2px solid var(--button-focus-mode);outline-offset:2px}._button_mzv5s_30:disabled{background:var(--button-primary-disabled-background);color:var(--button-primary-disabled-text);border:1px solid var(--button-primary-disabled-border);cursor:initial;pointer-events:none}._button_mzv5s_30:disabled *{fill:var(--button-primary-disabled-text)}._button-primary_mzv5s_54{color:var(--button-primary-default-text);background:var(--button-primary-default-background)}._button-primary_mzv5s_54:hover{background:var(--button-primary-hover-background)}._button-primary_mzv5s_54:active{background:var(--button-primary-pressed-background);outline:none}._button-primary_mzv5s_54 *{fill:var(--button-primary-default-text)}._button-secondary_mzv5s_68{color:var(--button-secondary-default-text);border:1px solid var(--button-secondary-default-border);background:var(--button-secondary-default-background)}._button-secondary_mzv5s_68:hover{border:1px solid var(--button-secondary-hover-border);background:var(--button-secondary-hover-background)}._button-secondary_mzv5s_68:active{border:1px solid var(--button-secondary-pressed-border);background:var(--button-secondary-pressed-background)}._button-secondary_mzv5s_68 *{fill:var(--button-secondary-default-text)}._button-tertiary_mzv5s_84{color:var(--button-tertiary-default-text);background-color:transparent;border:1px solid var(--button-tertiary-default-border)}._button-tertiary_mzv5s_84:hover{border:1px solid var(--button-tertiary-hover-border);background:var(--button-tertiary-hover-background)}._button-tertiary_mzv5s_84:active{border:1px solid var(--button-tertiary-pressed-border);background:var(--button-tertiary-pressed-background)}._button-tertiary_mzv5s_84 *{fill:var(--button-tertiary-default-text)}._button-ghost_mzv5s_100{color:var(--button-ghost-default-text);background-color:transparent}._button-ghost_mzv5s_100:hover{background:var(--button-ghost-hover-background)}._button-ghost_mzv5s_100:active{background-color:var(--button-ghost-pressed-background)}._button-ghost_mzv5s_100:disabled{border:none}._button-ghost_mzv5s_100 *{fill:var(--button-ghost-default-text)}._button-text_mzv5s_116{color:var(--text-button-inactive-text);background-color:transparent;padding:0!important}._button-text_mzv5s_116:hover{color:var(--text-button-inactive-hover-text)}._button-text_mzv5s_116:disabled{border:none;background-color:transparent;color:var(--text-button-disabled-text)}._button-text-selected_mzv5s_129,._button-text-selected_mzv5s_129:hover{color:var(--text-button-active-text)}._button-error_mzv5s_135{color:var(--button-destructive-default-text);background:var(--button-destructive-default-background)}._button-error_mzv5s_135:hover{background:var(--button-destructive-hover-background)}._button-error_mzv5s_135:active{background:var(--button-destructive-pressed-background)}._button-error_mzv5s_135 *{fill:var(--button-destructive-default-text)}._button-size-xl_mzv5s_148{padding:1rem 2rem;font-size:1.125em;line-height:28px;border-radius:8px}._button-size-l_mzv5s_154{padding:.75rem 1.5rem;font-size:1em;line-height:24px;border-radius:8px}._button-size-m_mzv5s_160{padding:.5rem 1rem;font-size:.875em;line-height:22px;border-radius:4px}._button-size-s_mzv5s_166{padding:.375rem .75rem;font-size:.875em;line-height:16px;border-radius:4px}._button-size-menu_mzv5s_172{padding:.5rem;font-size:1em;line-height:24px;border-radius:4px}._button-gap-menu_mzv5s_178{gap:.5rem}._button-gap-xl_mzv5s_181{gap:12px}._button-gap-l_mzv5s_184{gap:8px}._button-gap-m_mzv5s_178,._button-gap-s_mzv5s_187{gap:4px}._flexHorizontalCenter_mzv5s_191{display:flex;justify-content:center;align-items:center;flex-direction:row}
|
|
1
|
+
@font-face{font-family:Urbanist-Thin;src:url(../fonts/Urbanist-Thin.ttf) format("truetype");font-weight:100;font-style:normal}@font-face{font-family:Urbanist-Extra-Light;src:url(../fonts/Urbanist-ExtraLight.ttf) format("truetype");font-weight:200;font-style:normal}@font-face{font-family:Urbanist-Light;src:url(../fonts/Urbanist-Light.ttf) format("truetype");font-weight:300;font-style:normal}@font-face{font-family:Urbanist-Regular;src:url(../fonts/Urbanist-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:Urbanist;src:url(../fonts/Urbanist-Medium.ttf) format("truetype");font-weight:500;font-style:normal}@font-face{font-family:Urbanist-Back;src:url(../fonts/Urbanist-Black.ttf) format("truetype");font-weight:600;font-style:normal}@font-face{font-family:Urbanist-Semi-Bold;src:url(../fonts/Urbanist-SemiBold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:Urbanist-Bold;src:url(../fonts/Urbanist-Bold.ttf) format("truetype");font-weight:800;font-style:normal}@font-face{font-family:Urbanist-Extra-Bold;src:url(../fonts/Urbanist-ExtraBold.ttf) format("truetype");font-weight:900;font-style:normal}:root,body{font-family:Urbanist,sans-serif;line-height:1;width:100vw;height:100vh}h1{font-size:1.875em;font-style:normal;font-weight:700;line-height:2.25rem}h2{font-size:1.5em;font-style:normal;font-weight:700;line-height:2rem;margin:0}h3{font-size:1.25em;font-style:normal;font-weight:700;line-height:1.75rem;margin:0}h4{font-size:1.125em;font-style:normal;font-weight:700;line-height:1.75rem;margin:0}h5{font-size:1em;font-style:normal;font-weight:700;line-height:1.5rem;margin:0}h6{font-size:.875em;font-style:normal;font-weight:700;line-height:1.25rem;margin:0}.textExtraLarge{font-size:1.25em;font-style:normal;line-height:2rem}.textLarge{font-size:1.125em;font-style:normal;line-height:1.75rem}.textMedium{font-size:1em;font-style:normal;line-height:1.5rem}.textSmall{font-size:.875em;font-style:normal;line-height:1.25rem}.textSmaller{font-size:.75em;font-style:normal;line-height:1rem}.labelExtraLarge{font-size:1.25em;font-style:normal;line-height:normal;letter-spacing:1.2px}.labelLarge{font-size:1.125em;font-style:normal;line-height:normal;letter-spacing:1.08px}.labelMedium{font-size:1em;font-style:normal;line-height:normal;letter-spacing:.96px}.labelSmall{font-size:.875em;font-style:normal;line-height:normal;letter-spacing:.84px}.labelSmaller{font-size:.75em;font-style:normal;line-height:normal;letter-spacing:.72px}.labelSmallest{font-size:.625em;font-style:normal;line-height:normal;letter-spacing:.6px}.fontWeight-100{font-weight:100}.fontWeight-200{font-weight:200}.fontWeight-300{font-weight:300}.fontWeight-400{font-weight:400}.fontWeight-500{font-weight:500}.fontWeight-600{font-weight:600}.fontWeight-700{font-weight:700}.fontWeight-800{font-weight:800}.fontWeight-900{font-weight:900}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-thumb{background-color:var(--scrollbar-background);border-radius:.5rem;transition:all .3s ease;margin:.625rem;background-clip:padding-box}::-webkit-scrollbar:hover{cursor:pointer}::-webkit-scrollbar-corner{background:var(--scrollbar-background)}._button_mzv5s_30{font-family:var(--font-family);font-weight:500;font-style:normal;line-height:1.25rem;border:0;cursor:pointer;width:fit-content}._button_mzv5s_30:focus-visible{outline:2px solid var(--button-focus-mode);outline-offset:2px}._button_mzv5s_30:disabled{background:var(--button-primary-disabled-background);color:var(--button-primary-disabled-text);border:1px solid var(--button-primary-disabled-border);cursor:initial;pointer-events:none}._button_mzv5s_30:disabled *{fill:var(--button-primary-disabled-text)}._button-primary_mzv5s_54{color:var(--button-primary-default-text);background:var(--button-primary-default-background)}._button-primary_mzv5s_54:hover{background:var(--button-primary-hover-background)}._button-primary_mzv5s_54:active{background:var(--button-primary-pressed-background);outline:none}._button-primary_mzv5s_54 *{fill:var(--button-primary-default-text)}._button-secondary_mzv5s_68{color:var(--button-secondary-default-text);border:1px solid var(--button-secondary-default-border);background:var(--button-secondary-default-background)}._button-secondary_mzv5s_68:hover{border:1px solid var(--button-secondary-hover-border);background:var(--button-secondary-hover-background)}._button-secondary_mzv5s_68:active{border:1px solid var(--button-secondary-pressed-border);background:var(--button-secondary-pressed-background)}._button-secondary_mzv5s_68 *{fill:var(--button-secondary-default-text)}._button-tertiary_mzv5s_84{color:var(--button-tertiary-default-text);background-color:transparent;border:1px solid var(--button-tertiary-default-border)}._button-tertiary_mzv5s_84:hover{border:1px solid var(--button-tertiary-hover-border);background:var(--button-tertiary-hover-background)}._button-tertiary_mzv5s_84:active{border:1px solid var(--button-tertiary-pressed-border);background:var(--button-tertiary-pressed-background)}._button-tertiary_mzv5s_84 *{fill:var(--button-tertiary-default-text)}._button-ghost_mzv5s_100{color:var(--button-ghost-default-text);background-color:transparent}._button-ghost_mzv5s_100:hover{background:var(--button-ghost-hover-background)}._button-ghost_mzv5s_100:active{background-color:var(--button-ghost-pressed-background)}._button-ghost_mzv5s_100:disabled{border:none}._button-ghost_mzv5s_100 *{fill:var(--button-ghost-default-text)}._button-text_mzv5s_116{color:var(--text-button-inactive-text);background-color:transparent;padding:0!important}._button-text_mzv5s_116:hover{color:var(--text-button-inactive-hover-text)}._button-text_mzv5s_116:disabled{border:none;background-color:transparent;color:var(--text-button-disabled-text)}._button-text-selected_mzv5s_129,._button-text-selected_mzv5s_129:hover{color:var(--text-button-active-text)}._button-error_mzv5s_135{color:var(--button-destructive-default-text);background:var(--button-destructive-default-background)}._button-error_mzv5s_135:hover{background:var(--button-destructive-hover-background)}._button-error_mzv5s_135:active{background:var(--button-destructive-pressed-background)}._button-error_mzv5s_135 *{fill:var(--button-destructive-default-text)}._button-size-xl_mzv5s_148{padding:1rem 2rem;font-size:1.125em;line-height:28px;border-radius:8px}._button-size-l_mzv5s_154{padding:.75rem 1.5rem;font-size:1em;line-height:24px;border-radius:8px}._button-size-m_mzv5s_160{padding:.5rem 1rem;font-size:.875em;line-height:22px;border-radius:4px}._button-size-s_mzv5s_166{padding:.375rem .75rem;font-size:.875em;line-height:16px;border-radius:4px}._button-size-menu_mzv5s_172{padding:.5rem;font-size:1em;line-height:24px;border-radius:4px}._button-gap-menu_mzv5s_178{gap:.5rem}._button-gap-xl_mzv5s_181{gap:12px}._button-gap-l_mzv5s_184{gap:8px}._button-gap-m_mzv5s_178,._button-gap-s_mzv5s_187{gap:4px}._flexHorizontalCenter_mzv5s_191{display:flex;justify-content:center;align-items:center;flex-direction:row}
|