@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.
@@ -1,59 +1,59 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
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 = "_button_gxbp6_30", c = "_fullWidth_gxbp6_191", f = "_flexHorizontalCenter_gxbp6_195", d = "_flexHorizontalBetween_gxbp6_202", t = {
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-primary_gxbp6_54",
6
- "button-secondary": "_button-secondary_gxbp6_68",
7
- "button-tertiary": "_button-tertiary_gxbp6_84",
8
- "button-ghost": "_button-ghost_gxbp6_100",
9
- "button-text": "_button-text_gxbp6_116",
10
- "button-text-selected": "_button-text-selected_gxbp6_129",
11
- "button-error": "_button-error_gxbp6_135",
12
- "button-size-xl": "_button-size-xl_gxbp6_148",
13
- "button-size-l": "_button-size-l_gxbp6_154",
14
- "button-size-m": "_button-size-m_gxbp6_160",
15
- "button-size-s": "_button-size-s_gxbp6_166",
16
- "button-size-menu": "_button-size-menu_gxbp6_172",
17
- "button-gap-menu": "_button-gap-menu_gxbp6_178",
18
- "button-gap-xl": "_button-gap-xl_gxbp6_181",
19
- "button-gap-l": "_button-gap-l_gxbp6_184",
20
- "button-gap-m": "_button-gap-m_gxbp6_178",
21
- "button-gap-s": "_button-gap-s_gxbp6_187",
22
- fullWidth: c,
23
- flexHorizontalCenter: f,
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: r,
30
- error: l,
31
- selected: s,
32
- childrenLeft: b,
33
- childrenRight: _,
34
- fullWidth: u = !1,
35
- ...x
36
- }, a) => {
37
- const p = () => l ? "error" : n, g = [
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-${p()}`],
39
+ t[`button-${i()}`],
40
40
  t[`button-size-${e}`],
41
41
  t[`button-gap-${e}`],
42
- s && n === "text" && t["button-text-selected"],
43
- u ? t.flexHorizontalBetween : t.flexHorizontalCenter,
44
- u && t.fullWidth
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__ */ i(
46
+ return /* @__PURE__ */ p(
47
47
  "button",
48
48
  {
49
- ref: a,
49
+ ref: c,
50
50
  type: "button",
51
- className: g,
52
- ...x,
51
+ className: x,
52
+ ...a,
53
53
  children: [
54
- b && /* @__PURE__ */ o("span", { className: t.flexHorizontalCenter, children: b }),
55
- /* @__PURE__ */ o("span", { children: r }),
56
- _ && /* @__PURE__ */ o("span", { className: t.flexHorizontalCenter, children: _ })
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
  );