@situaction/traq-ui-ste 1.2.10 → 1.2.12
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.js +41 -41
- package/dist/components/calendar/Calendar.js +319 -319
- package/dist/components/editable-select/EditableSelect.d.ts +4 -1
- package/dist/components/editable-select/EditableSelect.js +41 -32
- package/dist/components/icon-button/IconButton.js +21 -21
- package/dist/components/input/Input.d.ts +1 -0
- package/dist/components/input/Input.js +58 -55
- package/dist/components/select/Select.d.ts +10 -9
- package/dist/components/select/Select.js +159 -149
- package/dist/components/tabs/Tabs.js +102 -94
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Calendar.css +1 -1
- package/dist/styles/EditableSelect.css +1 -1
- package/dist/styles/IconButton.css +1 -1
- package/dist/styles/Input.css +1 -1
- package/dist/styles/Tabs.css +1 -1
- package/package.json +1 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as z } from "react";
|
|
3
|
-
import '../../styles/Button.css';const m = "
|
|
3
|
+
import '../../styles/Button.css';const m = "_button_1059c_30", f = "_fullWidth_1059c_192", g = "_flexHorizontalCenter_1059c_196", d = "_flexHorizontalBetween_1059c_203", t = {
|
|
4
4
|
button: m,
|
|
5
|
-
"button-primary": "_button-
|
|
6
|
-
"button-secondary": "_button-
|
|
7
|
-
"button-tertiary": "_button-
|
|
8
|
-
"button-ghost": "_button-
|
|
9
|
-
"button-text": "_button-
|
|
10
|
-
"button-text-selected": "_button-text-
|
|
11
|
-
"button-error": "_button-
|
|
12
|
-
"button-size-xl": "_button-size-
|
|
13
|
-
"button-size-l": "_button-size-
|
|
14
|
-
"button-size-m": "_button-size-
|
|
15
|
-
"button-size-s": "_button-size-
|
|
16
|
-
"button-size-menu": "_button-size-
|
|
17
|
-
"button-gap-menu": "_button-gap-
|
|
18
|
-
"button-gap-xl": "_button-gap-
|
|
19
|
-
"button-gap-l": "_button-gap-
|
|
20
|
-
"button-gap-m": "_button-gap-
|
|
21
|
-
"button-gap-s": "_button-gap-
|
|
22
|
-
fullWidth:
|
|
23
|
-
flexHorizontalCenter:
|
|
5
|
+
"button-primary": "_button-primary_1059c_54",
|
|
6
|
+
"button-secondary": "_button-secondary_1059c_68",
|
|
7
|
+
"button-tertiary": "_button-tertiary_1059c_84",
|
|
8
|
+
"button-ghost": "_button-ghost_1059c_100",
|
|
9
|
+
"button-text": "_button-text_1059c_117",
|
|
10
|
+
"button-text-selected": "_button-text-selected_1059c_130",
|
|
11
|
+
"button-error": "_button-error_1059c_136",
|
|
12
|
+
"button-size-xl": "_button-size-xl_1059c_149",
|
|
13
|
+
"button-size-l": "_button-size-l_1059c_155",
|
|
14
|
+
"button-size-m": "_button-size-m_1059c_161",
|
|
15
|
+
"button-size-s": "_button-size-s_1059c_167",
|
|
16
|
+
"button-size-menu": "_button-size-menu_1059c_173",
|
|
17
|
+
"button-gap-menu": "_button-gap-menu_1059c_179",
|
|
18
|
+
"button-gap-xl": "_button-gap-xl_1059c_182",
|
|
19
|
+
"button-gap-l": "_button-gap-l_1059c_185",
|
|
20
|
+
"button-gap-m": "_button-gap-m_1059c_179",
|
|
21
|
+
"button-gap-s": "_button-gap-s_1059c_188",
|
|
22
|
+
fullWidth: f,
|
|
23
|
+
flexHorizontalCenter: g,
|
|
24
24
|
flexHorizontalBetween: d
|
|
25
25
|
}, C = z(
|
|
26
26
|
({
|
|
27
27
|
mode: n = "primary",
|
|
28
28
|
size: e = "m",
|
|
29
|
-
label:
|
|
30
|
-
error:
|
|
31
|
-
selected:
|
|
32
|
-
childrenLeft:
|
|
33
|
-
childrenRight:
|
|
34
|
-
fullWidth:
|
|
35
|
-
...
|
|
36
|
-
},
|
|
37
|
-
const
|
|
29
|
+
label: l,
|
|
30
|
+
error: s,
|
|
31
|
+
selected: b,
|
|
32
|
+
childrenLeft: _,
|
|
33
|
+
childrenRight: u,
|
|
34
|
+
fullWidth: r = !1,
|
|
35
|
+
...a
|
|
36
|
+
}, c) => {
|
|
37
|
+
const i = () => s ? "error" : n, x = [
|
|
38
38
|
t.button,
|
|
39
|
-
t[`button-${
|
|
39
|
+
t[`button-${i()}`],
|
|
40
40
|
t[`button-size-${e}`],
|
|
41
41
|
t[`button-gap-${e}`],
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
b && n === "text" && t["button-text-selected"],
|
|
43
|
+
r ? t.flexHorizontalBetween : t.flexHorizontalCenter,
|
|
44
|
+
r && t.fullWidth
|
|
45
45
|
].filter(Boolean).join(" ");
|
|
46
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ p(
|
|
47
47
|
"button",
|
|
48
48
|
{
|
|
49
|
-
ref:
|
|
49
|
+
ref: c,
|
|
50
50
|
type: "button",
|
|
51
|
-
className:
|
|
52
|
-
...
|
|
51
|
+
className: x,
|
|
52
|
+
...a,
|
|
53
53
|
children: [
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */ o("span", { children:
|
|
56
|
-
|
|
54
|
+
_ && /* @__PURE__ */ o("span", { className: t.flexHorizontalCenter, children: _ }),
|
|
55
|
+
/* @__PURE__ */ o("span", { children: l }),
|
|
56
|
+
u && /* @__PURE__ */ o("span", { className: t.flexHorizontalCenter, children: u })
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
);
|