@situaction/traq-ui-ste 1.1.7 → 1.1.9

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,8 +1,8 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { AccordionItem as i } from "./item/AccordionItem.js";
3
- import '../../styles/Accordion.css';const t = "_accordion_avh0n_6", a = {
3
+ import '../../styles/Accordion.css';const t = "_accordion_1s28g_6", d = {
4
4
  accordion: t
5
- }, l = ({ items: n, type: r = "block" }) => /* @__PURE__ */ c("div", { className: a.accordion, children: n.map((o, e) => /* @__PURE__ */ c(
5
+ }, l = ({ items: n, type: r = "block" }) => /* @__PURE__ */ c("div", { className: d.accordion, children: n.map((o, e) => /* @__PURE__ */ c(
6
6
  i,
7
7
  {
8
8
  header: o.header,
@@ -1,44 +1,45 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useState as d, useEffect as m } from "react";
3
- import '../../styles/Checkbox.css';const n = "_checkbox_10m2o_23", a = "_checked_10m2o_30", r = "_disabled_10m2o_36", e = {
4
- checkbox: n,
5
- checked: a,
6
- disabled: r,
7
- "checkbox-size-xs": "_checkbox-size-xs_10m2o_44",
8
- "checkbox-size-s": "_checkbox-size-s_10m2o_49",
9
- "checkbox-size-m": "_checkbox-size-m_10m2o_54",
10
- "checkbox-size-l": "_checkbox-size-l_10m2o_59",
11
- "checkbox-size-xl": "_checkbox-size-xl_10m2o_64"
12
- }, w = ({
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useState as d, useEffect as b } from "react";
3
+ import '../../styles/Checkbox.css';const a = "_checkbox_12isy_23", r = "_checked_12isy_30", m = "_disabled_12isy_36", z = "_noEvents_12isy_44", e = {
4
+ checkbox: a,
5
+ checked: r,
6
+ disabled: m,
7
+ noEvents: z,
8
+ "checkbox-size-xs": "_checkbox-size-xs_12isy_47",
9
+ "checkbox-size-s": "_checkbox-size-s_12isy_52",
10
+ "checkbox-size-m": "_checkbox-size-m_12isy_57",
11
+ "checkbox-size-l": "_checkbox-size-l_12isy_62",
12
+ "checkbox-size-xl": "_checkbox-size-xl_12isy_67"
13
+ }, v = ({
13
14
  checked: c = !1,
14
- icon: x = /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", children: /* @__PURE__ */ o("path", { d: "M2.66667 6.1L0.666667 4L0 4.7L2.66667 7.5L8 1.2L7.33333 0.5L2.66667 6.1Z", fill: "white" }) }),
15
+ icon: n = /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", children: /* @__PURE__ */ s("path", { d: "M2.66667 6.1L0.666667 4L0 4.7L2.66667 7.5L8 1.2L7.33333 0.5L2.66667 6.1Z", fill: "white" }) }),
15
16
  size: l = "m",
16
- disabled: k = !1,
17
+ disabled: _ = !1,
17
18
  onChange: i
18
19
  }) => {
19
- const [s, h] = d(c);
20
- m(() => {
21
- h(c);
20
+ const [o, t] = d(c);
21
+ b(() => {
22
+ t(c);
22
23
  }, [c]);
23
- const _ = () => {
24
- const t = !s;
25
- h(t), i && i(t);
26
- }, b = [
24
+ const x = () => {
25
+ const h = !o;
26
+ t(h), i && i(h);
27
+ }, k = [
27
28
  e.checkbox,
28
29
  e[`checkbox-size-${l}`],
29
- s && e.checked,
30
- k && e.disabled
30
+ o && e.checked,
31
+ _ && e.disabled
31
32
  ].filter(Boolean).join(" ");
32
- return /* @__PURE__ */ o(
33
+ return /* @__PURE__ */ s(
33
34
  "div",
34
35
  {
35
36
  "data-testid": "checkbox",
36
- className: b,
37
- onClick: _,
38
- children: s && x
37
+ className: k,
38
+ onClick: x,
39
+ children: o && /* @__PURE__ */ s("div", { className: e.noEvents, children: n })
39
40
  }
40
41
  );
41
42
  };
42
43
  export {
43
- w as Checkbox
44
+ v as Checkbox
44
45
  };
@@ -1,59 +1,60 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { useEffect as d } from "react";
3
- import { IconButton as u } from "../icon-button/IconButton.js";
4
- import '../../styles/Tag.css';const m = "_tag_ez0so_6", x = "_flexHorizontalCenter_ez0so_64", f = "_flexHorizontal_ez0so_64", t = {
5
- tag: m,
6
- "tag-children": "_tag-children_ez0so_16",
7
- "tag-size-xl": "_tag-size-xl_ez0so_23",
8
- "tag-size-xl-round": "_tag-size-xl-round_ez0so_27",
9
- "tag-size-l": "_tag-size-l_ez0so_33",
10
- "tag-size-l-round": "_tag-size-l-round_ez0so_37",
11
- "tag-size-m": "_tag-size-m_ez0so_43",
12
- "tag-size-m-round": "_tag-size-m-round_ez0so_47",
13
- "tag-size-s": "_tag-size-s_ez0so_53",
14
- "tag-size-s-round": "_tag-size-s-round_ez0so_57",
1
+ import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
+ import { useEffect as u } from "react";
3
+ import { IconButton as z } from "../icon-button/IconButton.js";
4
+ import '../../styles/Tag.css';const v = "_tag_19tve_6", m = "_label_19tve_63", x = "_flexHorizontalCenter_19tve_67", f = "_flexHorizontal_19tve_67", e = {
5
+ tag: v,
6
+ "tag-children": "_tag-children_19tve_16",
7
+ "tag-size-xl": "_tag-size-xl_19tve_23",
8
+ "tag-size-xl-round": "_tag-size-xl-round_19tve_27",
9
+ "tag-size-l": "_tag-size-l_19tve_33",
10
+ "tag-size-l-round": "_tag-size-l-round_19tve_37",
11
+ "tag-size-m": "_tag-size-m_19tve_43",
12
+ "tag-size-m-round": "_tag-size-m-round_19tve_47",
13
+ "tag-size-s": "_tag-size-s_19tve_53",
14
+ "tag-size-s-round": "_tag-size-s-round_19tve_57",
15
+ label: m,
15
16
  flexHorizontalCenter: x,
16
17
  flexHorizontal: f
17
- }, s = ["light", "dark", "grey", "blue-grey", "blue", "blue-situaction", "purple", "pink", "gold", "brown", "emerald"], y = ({
18
- label: a,
19
- color: e,
20
- deletable: l = !1,
21
- size: n = "m",
22
- children: i,
18
+ }, o = ["light", "dark", "grey", "blue-grey", "blue", "blue-situaction", "purple", "pink", "gold", "brown", "emerald"], $ = ({
19
+ label: l,
20
+ color: t,
21
+ deletable: s = !1,
22
+ size: i = "m",
23
+ children: n,
23
24
  onClick: r
24
25
  }) => {
25
- d(() => {
26
- e && !s.includes(e) && console.warn(`Warning: The color "${e}" is not a valid option. Expected one of: ${s.join(", ")}.`);
27
- }, [e]);
28
- const z = [
29
- t.tag,
30
- i && !a && t[`tag-size-${n}-round`],
31
- t[`tag-size-${n}`],
32
- t.flexHorizontalCenter
26
+ u(() => {
27
+ t && !o.includes(t) && console.warn(`Warning: The color "${t}" is not a valid option. Expected one of: ${o.join(", ")}.`);
28
+ }, [t]);
29
+ const _ = [
30
+ e.tag,
31
+ n && !l && e[`tag-size-${i}-round`],
32
+ e[`tag-size-${i}`],
33
+ e.flexHorizontalCenter
33
34
  ].join(" "), g = {
34
- "--dynamic-background": e && s.includes(e) ? `var(--color-${e}-200)` : "var(--color-blue-situaction-200)",
35
- "--dynamic-color-text": e && s.includes(e) ? `var(--color-${e}-950)` : "var(--color-blue-situaction-950)"
36
- }, _ = {
37
- color: e ? `var(--color${e}-950)` : "var(--color-blue-situaction-950)"
35
+ "--dynamic-background": t && o.includes(t) ? `var(--color-${t}-200)` : "var(--color-blue-situaction-200)",
36
+ "--dynamic-color-text": t && o.includes(t) ? `var(--color-${t}-950)` : "var(--color-blue-situaction-950)"
37
+ }, c = {
38
+ color: t ? `var(--color${t}-950)` : "var(--color-blue-situaction-950)"
38
39
  };
39
- return /* @__PURE__ */ c(
40
+ return /* @__PURE__ */ d(
40
41
  "div",
41
42
  {
42
- className: z,
43
+ className: _,
43
44
  style: g,
44
45
  children: [
45
- i && /* @__PURE__ */ o("div", { className: `${t.flexHorizontalCenter} ${t["tag-children"]}`, children: i }),
46
- a && /* @__PURE__ */ o("label", { className: t.flexHorizontal, children: a }),
47
- l && /* @__PURE__ */ o(u, { mode: "ghost", size: "s", onClick: () => r, children: /* @__PURE__ */ o(
46
+ n && /* @__PURE__ */ a("div", { className: `${e.flexHorizontalCenter} ${e["tag-children"]}`, children: n }),
47
+ l && /* @__PURE__ */ a("label", { className: `${e.flexHorizontal} ${e.label}`, children: l }),
48
+ s && /* @__PURE__ */ a(z, { mode: "ghost", size: "s", onClick: () => r, children: /* @__PURE__ */ a(
48
49
  "svg",
49
50
  {
50
- style: _,
51
+ style: c,
51
52
  xmlns: "http://www.w3.org/2000/svg",
52
53
  width: "9",
53
54
  height: "9",
54
55
  fill: "currentColor",
55
56
  viewBox: "0 0 256 256",
56
- children: /* @__PURE__ */ o(
57
+ children: /* @__PURE__ */ a(
57
58
  "path",
58
59
  {
59
60
  d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"
@@ -66,5 +67,5 @@ import '../../styles/Tag.css';const m = "_tag_ez0so_6", x = "_flexHorizontalCent
66
67
  );
67
68
  };
68
69
  export {
69
- y as Tag
70
+ $ as Tag
70
71
  };
@@ -1 +1 @@
1
- ._accordion_avh0n_6{border-radius:.375rem;width:100%;overflow-y:auto;display:flex;justify-content:flex-start;align-items:stretch;flex-direction:column;gap:.625rem}
1
+ ._accordion_1s28g_6{overflow:visible;border-radius:.375rem;width:100%;overflow-y:auto;display:flex;justify-content:flex-start;align-items:stretch;flex-direction:column;gap:.625rem}
@@ -1 +1 @@
1
- ._checkbox_10m2o_23{cursor:pointer;display:flex;align-items:center;justify-content:center;border:1px solid var(--checkbox-default-uncoched-default-stroke)}._checkbox_10m2o_23._checked_10m2o_30{background-color:var(--checkbox-default-coched-default-background)}._checkbox_10m2o_23._checked_10m2o_30 *{fill:var(--checkbox-default-coched-default-coche)}._checkbox_10m2o_23._disabled_10m2o_36{border:1px solid var(--checkbox-disabled-uncoched-default-hover-stroke);pointer-events:none}._checkbox_10m2o_23._disabled_10m2o_36._checked_10m2o_30{border:1px solid transparent;background-color:var(--checkbox-disabled-coched-default-hover-background)}._checkbox-size-xs_10m2o_44{width:8px;height:8px;border-radius:.125rem}._checkbox-size-s_10m2o_49{width:10px;height:10px;border-radius:.063rem}._checkbox-size-m_10m2o_54{width:12px;height:12px;border-radius:.125rem}._checkbox-size-l_10m2o_59{width:14px;height:14px;border-radius:.125rem}._checkbox-size-xl_10m2o_64{width:16px;height:16px;border-radius:.125rem}
1
+ ._checkbox_12isy_23{cursor:pointer;display:flex;align-items:center;justify-content:center;border:1px solid var(--checkbox-default-uncoched-default-stroke)}._checkbox_12isy_23._checked_12isy_30{background-color:var(--checkbox-default-coched-default-background)}._checkbox_12isy_23._checked_12isy_30 *{fill:var(--checkbox-default-coched-default-coche)}._checkbox_12isy_23._disabled_12isy_36{border:1px solid var(--checkbox-disabled-uncoched-default-hover-stroke);pointer-events:none}._checkbox_12isy_23._disabled_12isy_36._checked_12isy_30{border:1px solid transparent;background-color:var(--checkbox-disabled-coched-default-hover-background)}._checkbox_12isy_23 ._noEvents_12isy_44{pointer-events:none}._checkbox-size-xs_12isy_47{width:8px;height:8px;border-radius:.125rem}._checkbox-size-s_12isy_52{width:10px;height:10px;border-radius:.063rem}._checkbox-size-m_12isy_57{width:12px;height:12px;border-radius:.125rem}._checkbox-size-l_12isy_62{width:14px;height:14px;border-radius:.125rem}._checkbox-size-xl_12isy_67{width:16px;height:16px;border-radius:.125rem}
@@ -1 +1 @@
1
- ._tag_ez0so_6{color:var(--dynamic-color-text);background-color:var(--dynamic-background);border-radius:50px;line-height:normal;gap:.25rem;font-weight:600;letter-spacing:.84px}._tag-children_ez0so_16{color:var(--dynamic-color-text);border-radius:50px;min-width:16px;min-height:16px;aspect-ratio:1/1}._tag-size-xl_ez0so_23{padding:.5rem .75rem;font-size:1.125em}._tag-size-xl-round_ez0so_27{padding:.5rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._tag-size-l_ez0so_33{padding:.375rem .625rem;font-size:1em}._tag-size-l-round_ez0so_37{padding:.375rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._tag-size-m_ez0so_43{padding:.25rem .5rem;font-size:.875em}._tag-size-m-round_ez0so_47{padding:.25rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._tag-size-s_ez0so_53{padding:.1875rem .5rem;font-size:.75em}._tag-size-s-round_ez0so_57{padding:.125rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._flexHorizontalCenter_ez0so_64{display:flex;justify-content:center;align-items:center;flex-direction:row}._flexHorizontal_ez0so_64{display:flex;justify-content:flex-start;align-items:center;flex-direction:row}
1
+ ._tag_19tve_6{color:var(--dynamic-color-text);background-color:var(--dynamic-background);border-radius:50px;line-height:normal;gap:.25rem;font-weight:600;letter-spacing:.84px}._tag-children_19tve_16{color:var(--dynamic-color-text);border-radius:50px;min-width:16px;min-height:16px;aspect-ratio:1/1}._tag-size-xl_19tve_23{padding:.5rem .75rem;font-size:1.125em}._tag-size-xl-round_19tve_27{padding:.5rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._tag-size-l_19tve_33{padding:.375rem .625rem;font-size:1em}._tag-size-l-round_19tve_37{padding:.375rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._tag-size-m_19tve_43{padding:.25rem .5rem;font-size:.875em}._tag-size-m-round_19tve_47{padding:.25rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._tag-size-s_19tve_53{padding:.1875rem .5rem;font-size:.75em}._tag-size-s-round_19tve_57{padding:.125rem;min-width:12px;min-height:12px;aspect-ratio:1/1}._tag_19tve_6 ._label_19tve_63{white-space:nowrap}._flexHorizontalCenter_19tve_67{display:flex;justify-content:center;align-items:center;flex-direction:row}._flexHorizontal_19tve_67{display:flex;justify-content:flex-start;align-items:center;flex-direction:row}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@situaction/traq-ui-ste",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "library react component Situaction",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",