@tcn/ui 0.3.0 → 0.3.1

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.
Files changed (127) hide show
  1. package/dist/Color-ASIRERSW-B4GaVKuQ.js +990 -0
  2. package/dist/Color-ASIRERSW-B4GaVKuQ.js.map +1 -0
  3. package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js +1485 -0
  4. package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js.map +1 -0
  5. package/dist/actions/__docs__/components/gallery.d.ts +8 -0
  6. package/dist/actions/__docs__/components/gallery.d.ts.map +1 -0
  7. package/dist/actions/__docs__/components/gallery.js +20 -0
  8. package/dist/actions/__docs__/components/gallery.js.map +1 -0
  9. package/dist/actions/__docs__/components/showcase.d.ts +27 -0
  10. package/dist/actions/__docs__/components/showcase.d.ts.map +1 -0
  11. package/dist/actions/__docs__/components/showcase.js +15 -0
  12. package/dist/actions/__docs__/components/showcase.js.map +1 -0
  13. package/dist/actions/button/base_button/base_button.d.ts +2 -0
  14. package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
  15. package/dist/actions/button/base_button/base_button.js +18 -16
  16. package/dist/actions/button/base_button/base_button.js.map +1 -1
  17. package/dist/actions/button/button/button.js +6 -6
  18. package/dist/actions/button/button_group/button_group.js +1 -1
  19. package/dist/actions/button/select_group/select_group.js +13 -13
  20. package/dist/actions/button/select_group/single_select_group.js +6 -6
  21. package/dist/actions/button/slim_button/slim_button.js +2 -2
  22. package/dist/actions/types.d.ts +2 -0
  23. package/dist/actions/types.d.ts.map +1 -0
  24. package/dist/actions/types.js +2 -0
  25. package/dist/actions/types.js.map +1 -0
  26. package/dist/feedback/loading/loading.js +12 -12
  27. package/dist/feedback/loading/loading.js.map +1 -1
  28. package/dist/feedback/progress/progress_bar.js +1 -1
  29. package/dist/form/field/common/field_control/field_control.js +8 -8
  30. package/dist/form/field/common/status_input/status_input.js +6 -6
  31. package/dist/form/field/field.js +5 -5
  32. package/dist/form/field/h_field/h_field.js +11 -11
  33. package/dist/form/field/v_field/v_field.js +10 -10
  34. package/dist/form/field_set/field_set.js +3 -3
  35. package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js +6 -0
  36. package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js.map +1 -0
  37. package/dist/gallery.css +1 -0
  38. package/dist/inputs/checkbox/checkbox.js +11 -11
  39. package/dist/inputs/color_input/color_picker.js +5 -5
  40. package/dist/inputs/combo_box/combo_box.js +16 -16
  41. package/dist/inputs/date_picker/date_picker.js +18 -18
  42. package/dist/inputs/date_picker/date_picker_body.js +2 -2
  43. package/dist/inputs/date_picker/date_picker_input.js +18 -18
  44. package/dist/inputs/input/input.js +5 -5
  45. package/dist/inputs/mask_input/key_capture_input.js +7 -7
  46. package/dist/inputs/mask_input/mask_input.js +4 -4
  47. package/dist/inputs/multi_combo_box/multi_combo_box.js +17 -17
  48. package/dist/inputs/multiselect/multiselect.js +13 -13
  49. package/dist/inputs/multiselect/multiselect_row.js +8 -8
  50. package/dist/inputs/phone_number_input/phone_number_input.js +11 -11
  51. package/dist/inputs/radio/radio.js +10 -10
  52. package/dist/inputs/radio/radio_row.js +3 -3
  53. package/dist/inputs/select/select.js +14 -14
  54. package/dist/inputs/slider/slider.js +10 -10
  55. package/dist/inputs/switch/switch.js +4 -4
  56. package/dist/inputs/textarea/textarea.js +7 -7
  57. package/dist/inputs/unit_input/unit_input.js +4 -4
  58. package/dist/layouts/body/h_body.js +7 -7
  59. package/dist/layouts/body/v_body.js +6 -6
  60. package/dist/layouts/column/column.js +17 -17
  61. package/dist/layouts/footer/footer.js +7 -7
  62. package/dist/layouts/grid/grid.js +24 -24
  63. package/dist/layouts/header/header.js +2 -2
  64. package/dist/layouts/list/item.js +2 -2
  65. package/dist/layouts/list/list.js +7 -7
  66. package/dist/layouts/list/section_header.js +6 -6
  67. package/dist/layouts/scaffold/scaffold.js +16 -16
  68. package/dist/layouts/sidebar_end/sidebar_end.js +14 -14
  69. package/dist/layouts/sidebar_start/sidebar_start.js +10 -10
  70. package/dist/layouts/utility_bar/utility_bar.js +10 -10
  71. package/dist/overlay/frame/frame.js +4 -4
  72. package/dist/overlay/menu/menu.js +34 -34
  73. package/dist/overlay/portal/portal_platform_context.js +4 -4
  74. package/dist/showcase-WfP6kBEb.js +58401 -0
  75. package/dist/showcase-WfP6kBEb.js.map +1 -0
  76. package/dist/showcase.css +1 -0
  77. package/dist/stacks/box/box.js +23 -23
  78. package/dist/stacks/h_collapsible_box.js +2 -2
  79. package/dist/stacks/h_stack.js +41 -41
  80. package/dist/stacks/spacer.js +11 -11
  81. package/dist/stacks/story_components/circle.js +10 -10
  82. package/dist/stacks/story_components/picture_placeholder.js +9 -9
  83. package/dist/stacks/story_components/rect.js +7 -7
  84. package/dist/stacks/story_components/style_box.js +4 -4
  85. package/dist/stacks/utils/use_is_collapsed.js +6 -6
  86. package/dist/stacks/v_collapsible_box.js +2 -2
  87. package/dist/stacks/v_stack.js +42 -42
  88. package/dist/stacks/z_stack.js +39 -39
  89. package/dist/surfaces/alert/alert.js +4 -4
  90. package/dist/surfaces/card/card.js +4 -4
  91. package/dist/surfaces/confirm/confirm.js +9 -9
  92. package/dist/surfaces/drawers/drawer_start/drawer_start.js +2 -2
  93. package/dist/surfaces/drawers/drawer_top/drawer_top.js +2 -2
  94. package/dist/surfaces/modal/modal.js +5 -5
  95. package/dist/surfaces/page/h_page.js +7 -7
  96. package/dist/surfaces/page/v_page.js +5 -5
  97. package/dist/surfaces/panel/h_panel.js +14 -14
  98. package/dist/surfaces/panel/v_panel.js +9 -9
  99. package/dist/surfaces/pop_confirm/pop_confirm.js +6 -6
  100. package/dist/surfaces/popconfirm/pop_confirm.js +8 -8
  101. package/dist/surfaces/tooltip/tooltip.js +8 -8
  102. package/dist/surfaces/window/window.js +9 -9
  103. package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js +3777 -0
  104. package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js.map +1 -0
  105. package/dist/themes/themes/ergo/ergo_theme.js +33 -1
  106. package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
  107. package/dist/tokens/badge/badge.js +9 -9
  108. package/dist/tokens/bubble/bubble.js +8 -8
  109. package/dist/tokens/chip/chip.js +3 -3
  110. package/dist/utils/click_away_listener.js +10 -10
  111. package/dist/utils/click_away_listener.js.map +1 -1
  112. package/dist/utils/dnd/draggable/draggable.js +4 -4
  113. package/dist/utils/dnd/handle.js +8 -8
  114. package/dist/utils/focus_redirect.js +5 -5
  115. package/dist/utils/hooks/make_context_hook.js +4 -4
  116. package/dist/utils/hooks/use_media_query.js +2 -2
  117. package/dist/utils/hooks/use_media_query.js.map +1 -1
  118. package/package.json +1 -1
  119. package/src/actions/__docs__/actions.mdx +131 -0
  120. package/src/actions/__docs__/actions.stories.tsx +309 -0
  121. package/src/actions/__docs__/components/gallery.module.css +6 -0
  122. package/src/actions/__docs__/components/gallery.tsx +28 -0
  123. package/src/actions/__docs__/components/showcase.module.css +55 -0
  124. package/src/actions/__docs__/components/showcase.tsx +121 -0
  125. package/src/actions/button/base_button/base_button.tsx +5 -1
  126. package/src/actions/types.ts +6 -0
  127. package/src/themes/themes/ergo/ergo_theme.css +33 -1
@@ -2,7 +2,7 @@ import { jsxs as z, Fragment as G, jsx as u } from "react/jsx-runtime";
2
2
  import "../../utils/click_away_listener.js";
3
3
  import "../../utils/focus_redirect.js";
4
4
  import "../../utils/scroll_away_listener.js";
5
- import w, { useRef as c, useState as L } from "react";
5
+ import F, { useRef as c, useState as w } from "react";
6
6
  import { useForkRef as H } from "../../utils/hooks/use_fork_ref.js";
7
7
  import "../../utils/hooks/use_resize_observer.js";
8
8
  import { clsx as J } from "clsx";
@@ -13,16 +13,16 @@ import "../../actions/button/slim_button/slim_button.js";
13
13
  import { Button as W } from "../../actions/button/button/button.js";
14
14
  import "../../actions/button/select_group/select_group.js";
15
15
  import "../../actions/button/select_group/single_select_group.js";
16
- import '../../select.css';const X = "_select_aabe288", Y = "_selectedLabel_b92ff3e", O = { select: X, selectedLabel: Y };
16
+ import '../../select.css';const X = "_select_aabe288", Y = "_selectedLabel_b92ff3e", L = { select: X, selectedLabel: Y };
17
17
  function Z(a, t) {
18
18
  return a.find((n) => n.props.value === t);
19
19
  }
20
- const pe = w.forwardRef(function({
20
+ const pe = F.forwardRef(function({
21
21
  children: t = [],
22
22
  onKeyDown: n,
23
23
  onKeyUp: f,
24
24
  value: m,
25
- placeholder: _ = "-- Select --",
25
+ placeholder: O = "-- Select --",
26
26
  noOptionMatchedMessage: x,
27
27
  trimCustomInput: C = !1,
28
28
  className: E,
@@ -31,10 +31,10 @@ const pe = w.forwardRef(function({
31
31
  onChange: g,
32
32
  ...T
33
33
  }, D) {
34
- const K = w.Children.toArray(
34
+ const K = F.Children.toArray(
35
35
  t
36
- ), l = c(""), M = c(!1), h = c(!1), [j, S] = L(null), i = c(null), [y, b] = L(!1), q = H(D, i), R = Z(K, m || ""), k = R == null ? _ || "" : R.props.label;
37
- function A() {
36
+ ), l = c(""), M = c(!1), h = c(!1), [j, S] = w(null), i = c(null), [y, b] = w(!1), q = H(D, i), R = Z(K, m || ""), k = R == null ? O || "" : R.props.label;
37
+ function _() {
38
38
  b(!0);
39
39
  }
40
40
  function o() {
@@ -47,9 +47,9 @@ const pe = w.forwardRef(function({
47
47
  }), o();
48
48
  }
49
49
  function N(e, s, r) {
50
- const F = i.current;
51
- F != null && requestAnimationFrame(() => {
52
- r && g && g(e), F.focus();
50
+ const A = i.current;
51
+ A != null && requestAnimationFrame(() => {
52
+ r && g && g(e), A.focus();
53
53
  }), o();
54
54
  }
55
55
  function U(e) {
@@ -61,20 +61,20 @@ const pe = w.forwardRef(function({
61
61
  const s = l.current = e.key;
62
62
  l.current = "";
63
63
  const r = e.key;
64
- s && (r === "Enter" || r === " ") && (y ? o() : A()), f && f(e);
64
+ s && (r === "Enter" || r === " ") && (y ? o() : _()), f && f(e);
65
65
  }
66
66
  function I(e) {
67
67
  S(e.currentTarget), M.current = document.activeElement === e.currentTarget, p && p(e);
68
68
  }
69
69
  function P(e) {
70
- h.current && (h.current = !1, o()), A(), d && d(e);
70
+ h.current && (h.current = !1, o()), _(), d && d(e);
71
71
  }
72
72
  return /* @__PURE__ */ z(G, { children: [
73
73
  /* @__PURE__ */ u(
74
74
  W,
75
75
  {
76
76
  ref: q,
77
- className: J(E, "select", O.select),
77
+ className: J(E, "select", L.select),
78
78
  width: "100%",
79
79
  ...T,
80
80
  hAlign: "start",
@@ -83,7 +83,7 @@ const pe = w.forwardRef(function({
83
83
  onKeyUp: V,
84
84
  onMouseDown: I,
85
85
  onMouseUp: P,
86
- children: /* @__PURE__ */ u("span", { className: O.selectedLabel, children: k })
86
+ children: /* @__PURE__ */ u("span", { className: L.selectedLabel, children: k })
87
87
  }
88
88
  ),
89
89
  y && /* @__PURE__ */ u(
@@ -6,33 +6,33 @@ import "../../utils/focus_redirect.js";
6
6
  import "../../utils/scroll_away_listener.js";
7
7
  import { useForkRef as R } from "../../utils/hooks/use_fork_ref.js";
8
8
  import "../../utils/hooks/use_resize_observer.js";
9
- import '../../slider.css';const S = "_slider_eb84151", b = { slider: S }, N = g.forwardRef(function({ style: l, className: a, width: u, min: r = 0, max: t = 100, onChange: o, ...n }, c) {
10
- const i = v(null), d = R(c, i);
9
+ import '../../slider.css';const S = "_slider_eb84151", _ = { slider: S }, N = g.forwardRef(function({ style: i, className: a, width: u, min: t = 0, max: r = 100, onChange: o, ...n }, d) {
10
+ const l = v(null), c = R(d, l);
11
11
  return y(() => {
12
- const e = i.current;
12
+ const e = l.current;
13
13
  if (e == null) return;
14
14
  const s = () => {
15
- const f = (parseFloat(e.value) - r) / (t - r) * 100;
15
+ const f = (parseFloat(e.value) - t) / (r - t) * 100;
16
16
  e.style.setProperty("--progress", `${f}%`);
17
17
  };
18
18
  return e.addEventListener("input", s), s(), () => {
19
19
  e.removeEventListener("input", s);
20
20
  };
21
- }, [r, t]), /* @__PURE__ */ p(
21
+ }, [t, r]), /* @__PURE__ */ p(
22
22
  "input",
23
23
  {
24
24
  type: "range",
25
- className: m(a, b.slider, "slider"),
25
+ className: m(a, _.slider, "slider"),
26
26
  "data-is-disabled": n.disabled || !1,
27
- ref: d,
27
+ ref: c,
28
28
  onChange: (e) => {
29
29
  o && o(e.currentTarget.value, e);
30
30
  },
31
31
  ...n,
32
- min: String(r),
33
- max: String(t),
32
+ min: String(t),
33
+ max: String(r),
34
34
  "data-width": "100%",
35
- style: { width: u, ...l }
35
+ style: { width: u, ...i }
36
36
  }
37
37
  );
38
38
  });
@@ -19,10 +19,10 @@ import '../../switch.css';const g = "_switch-wrapper_db1838e", j = "_switch_bf67
19
19
  ...t
20
20
  }, h) {
21
21
  const [m, a] = k(!1), p = B(null), b = y(d, p), r = {};
22
- function I(s) {
22
+ function _(s) {
23
23
  t.onBlur && t.onBlur(s), a(!1);
24
24
  }
25
- function _(s) {
25
+ function I(s) {
26
26
  t.onFocus && t.onFocus(s), a(!0);
27
27
  }
28
28
  i != null && (r["--accent-color"] = i);
@@ -50,8 +50,8 @@ import '../../switch.css';const g = "_switch-wrapper_db1838e", j = "_switch_bf67
50
50
  ref: b,
51
51
  type: "checkbox",
52
52
  className: o(e.switch, "switch"),
53
- onBlur: I,
54
- onFocus: _,
53
+ onBlur: _,
54
+ onFocus: I,
55
55
  style: { ...f, ...r },
56
56
  checked: c,
57
57
  "data-is-disabled": t.disabled || !1,
@@ -1,14 +1,14 @@
1
- import { jsx as l } from "react/jsx-runtime";
1
+ import { jsx as c } from "react/jsx-runtime";
2
2
  import { clsx as f } from "clsx";
3
- import i from "react";
4
- import '../../textarea.css';const m = "_textarea_8286394", n = { textarea: m }, p = i.forwardRef(function({ className: r, width: s, height: o, style: x, onChange: t, ...e }, c) {
5
- return /* @__PURE__ */ l(
3
+ import d from "react";
4
+ import '../../textarea.css';const i = "_textarea_8286394", m = { textarea: i }, b = d.forwardRef(function({ className: r, width: s, height: o, style: x, onChange: t, ...e }, l) {
5
+ return /* @__PURE__ */ c(
6
6
  "textarea",
7
7
  {
8
8
  style: { width: s, height: o, ...x },
9
- className: f(r, n.textarea, "textarea"),
9
+ className: f(r, m.textarea, "textarea"),
10
10
  "data-is-disabled": e.disabled || !1,
11
- ref: c,
11
+ ref: l,
12
12
  onChange: (a) => {
13
13
  t && t(a.currentTarget.value, a);
14
14
  },
@@ -17,6 +17,6 @@ import '../../textarea.css';const m = "_textarea_8286394", n = { textarea: m },
17
17
  );
18
18
  });
19
19
  export {
20
- p as Textarea
20
+ b as Textarea
21
21
  };
22
22
  //# sourceMappingURL=textarea.js.map
@@ -25,13 +25,13 @@ const O = y.forwardRef(function({
25
25
  ...R
26
26
  }, N) {
27
27
  const a = k(null), S = E(b, a);
28
- function I(e, u) {
28
+ function _(e, u) {
29
29
  if (u == null)
30
30
  return;
31
31
  const n = u.currentTarget, f = n.selectionStart || 0, i = A(e), m = Number(i);
32
32
  n.value = i, i.length < e.length && n.setSelectionRange(f - 1, f - 1), i === "" ? t && t(null, r || "") : isNaN(m) || t && t(m, r || "");
33
33
  }
34
- function _(e) {
34
+ function I(e) {
35
35
  const u = a.current;
36
36
  if (u == null)
37
37
  return;
@@ -51,7 +51,7 @@ const O = y.forwardRef(function({
51
51
  {
52
52
  className: o(s["unit-input-number"], "unit-input-number"),
53
53
  ref: S,
54
- onChange: I,
54
+ onChange: _,
55
55
  disabled: c,
56
56
  style: {
57
57
  borderEndEndRadius: 0,
@@ -67,7 +67,7 @@ const O = y.forwardRef(function({
67
67
  ref: x,
68
68
  width: "auto",
69
69
  value: r,
70
- onChange: _,
70
+ onChange: I,
71
71
  disabled: c,
72
72
  style: { borderStartStartRadius: 0, borderEndStartRadius: 0 },
73
73
  children: d
@@ -1,15 +1,15 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { HStack as f } from "../../stacks/h_stack.js";
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { HStack as c } from "../../stacks/h_stack.js";
3
3
  import m from "react";
4
4
  import { clsx as y } from "clsx";
5
- import '../../h_body.css';const a = "_h-body_d56f4f1", n = { "h-body": a }, l = m.forwardRef(function({ children: o, className: t, overflowX: r = "auto", ...d }, s) {
6
- return /* @__PURE__ */ c(
7
- f,
5
+ import '../../h_body.css';const a = "_h-body_d56f4f1", e = { "h-body": a }, l = m.forwardRef(function({ children: o, className: t, overflowX: r = "auto", ...d }, f) {
6
+ return /* @__PURE__ */ s(
7
+ c,
8
8
  {
9
- ref: s,
9
+ ref: f,
10
10
  as: "div",
11
11
  overflowX: r,
12
- className: y(n["h-body"], t, "tcn-h-body", "body"),
12
+ className: y(e["h-body"], t, "tcn-h-body", "body"),
13
13
  ...d,
14
14
  children: o
15
15
  }
@@ -1,15 +1,15 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { VStack as m } from "../../stacks/v_stack.js";
3
- import y from "react";
4
- import { clsx as f } from "clsx";
5
- import '../../v_body.css';const n = "_v-body_d8f1917", a = { "v-body": n }, l = y.forwardRef(function({ children: o, className: t, overflowY: r = "auto", ...d }, c) {
2
+ import { VStack as f } from "../../stacks/v_stack.js";
3
+ import m from "react";
4
+ import { clsx as y } from "clsx";
5
+ import '../../v_body.css';const a = "_v-body_d8f1917", n = { "v-body": a }, l = m.forwardRef(function({ children: o, className: t, overflowY: r = "auto", ...d }, c) {
6
6
  return /* @__PURE__ */ s(
7
- m,
7
+ f,
8
8
  {
9
9
  ref: c,
10
10
  as: "div",
11
11
  overflowY: r,
12
- className: f(a["v-body"], t, "tcn-body", "tcn-v-body"),
12
+ className: y(n["v-body"], t, "tcn-body", "tcn-v-body"),
13
13
  ...d,
14
14
  children: o
15
15
  }
@@ -1,46 +1,46 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { clsx as t } from "clsx";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { clsx as s } from "clsx";
3
3
  import x from "react";
4
4
  import { Box as b } from "../../stacks/box/box.js";
5
- import { VStack as i } from "../../stacks/v_stack.js";
6
- import '../../column.css';const C = "_column_ce05462", N = "_column-stack_80b940b", r = { column: C, "column-stack": N }, z = x.forwardRef(function({
7
- children: l,
5
+ import { VStack as d } from "../../stacks/v_stack.js";
6
+ import '../../column.css';const i = "_column_ce05462", C = "_column-stack_80b940b", l = { column: i, "column-stack": C }, z = x.forwardRef(function({
7
+ children: r,
8
8
  width: u,
9
9
  height: a,
10
10
  minWidth: o,
11
11
  maxWidth: c,
12
- minHeight: m,
13
- maxHeight: n,
12
+ minHeight: t,
13
+ maxHeight: m,
14
14
  hAlign: e,
15
15
  vAlign: f = "start",
16
16
  className: k,
17
17
  ...p
18
18
  }, _) {
19
- return /* @__PURE__ */ s(
19
+ return /* @__PURE__ */ n(
20
20
  b,
21
21
  {
22
22
  width: u,
23
23
  height: a,
24
24
  minWidth: o,
25
25
  maxWidth: c,
26
- minHeight: m,
27
- maxHeight: n,
28
- className: t(k, r.column, "column"),
26
+ minHeight: t,
27
+ maxHeight: m,
28
+ className: s(k, l.column, "column"),
29
29
  ...p,
30
- children: /* @__PURE__ */ s(
31
- i,
30
+ children: /* @__PURE__ */ n(
31
+ d,
32
32
  {
33
33
  minWidth: o,
34
34
  maxWidth: c,
35
- minHeight: m,
36
- maxHeight: n,
35
+ minHeight: t,
36
+ maxHeight: m,
37
37
  hAlign: e,
38
38
  vAlign: f,
39
39
  ref: _,
40
40
  as: "section",
41
- className: t(r["column-stack"], "column-stack"),
41
+ className: s(l["column-stack"], "column-stack"),
42
42
  zIndex: 0,
43
- children: l
43
+ children: r
44
44
  }
45
45
  )
46
46
  }
@@ -1,22 +1,22 @@
1
- import { jsx as f } from "react/jsx-runtime";
1
+ import { jsx as c } from "react/jsx-runtime";
2
2
  import s from "react";
3
3
  import { clsx as m } from "clsx";
4
4
  import { HStack as n } from "../../stacks/h_stack.js";
5
- import '../../footer.css';const i = "_footer_4a43c3e", d = { footer: i }, u = s.forwardRef(function({ hierarchy: o = "secondary", size: r = "md", children: t, className: e, ...a }, c) {
6
- return /* @__PURE__ */ f(
5
+ import '../../footer.css';const i = "_footer_4a43c3e", d = { footer: i }, y = s.forwardRef(function({ hierarchy: o = "secondary", size: t = "md", children: r, className: e, ...a }, f) {
6
+ return /* @__PURE__ */ c(
7
7
  n,
8
8
  {
9
- ref: c,
9
+ ref: f,
10
10
  as: "footer",
11
11
  className: m(d.footer, e, "tcn-footer"),
12
12
  "data-hierarchy": o,
13
- "data-size": r,
13
+ "data-size": t,
14
14
  ...a,
15
- children: t
15
+ children: r
16
16
  }
17
17
  );
18
18
  });
19
19
  export {
20
- u as Footer
20
+ y as Footer
21
21
  };
22
22
  //# sourceMappingURL=footer.js.map
@@ -4,13 +4,13 @@ import c from "react";
4
4
  import { removeUndefinedProperties as z } from "../../stacks/utils/remove_undefined_properties.js";
5
5
  import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwardRef(function({
6
6
  as: l = "div",
7
- children: e,
7
+ children: r,
8
8
  style: d,
9
9
  className: a,
10
10
  itemHeight: m,
11
11
  itemWidth: o,
12
12
  columnAmount: i,
13
- gap: r,
13
+ gap: e,
14
14
  rowGap: f,
15
15
  columnGap: p,
16
16
  padding: h,
@@ -18,27 +18,27 @@ import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwar
18
18
  paddingBlock: y,
19
19
  paddingInlineStart: g,
20
20
  paddingInlineEnd: u,
21
- paddingTop: $,
22
- paddingBottom: A,
23
- margin: v,
24
- marginInline: w,
25
- marginBlock: C,
26
- marginInlineStart: G,
27
- marginInlineEnd: R,
28
- marginTop: S,
29
- marginBottom: _,
21
+ paddingTop: _,
22
+ paddingBottom: $,
23
+ margin: A,
24
+ marginInline: v,
25
+ marginBlock: w,
26
+ marginInlineStart: C,
27
+ marginInlineEnd: G,
28
+ marginTop: R,
29
+ marginBottom: S,
30
30
  zIndex: j,
31
31
  ...M
32
32
  }, N) {
33
- const P = l, U = c.Children.toArray(e).length, W = `repeat(auto-fill, ${o}px)`;
33
+ const P = l, U = c.Children.toArray(r).length, W = `repeat(auto-fill, ${o}px)`;
34
34
  let t;
35
35
  if (i) {
36
36
  const n = Math.min(i, U), s = String(n * o) + "px";
37
- r ? t = `calc(${s} + ${r} * ${n - 1})` : t = s;
37
+ e ? t = `calc(${s} + ${e} * ${n - 1})` : t = s;
38
38
  } else
39
39
  t = "100%";
40
40
  const b = z({
41
- gap: r,
41
+ gap: e,
42
42
  rowGap: f,
43
43
  columnGap: p,
44
44
  "--item-height": m + "px",
@@ -49,19 +49,19 @@ import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwar
49
49
  paddingBlock: y,
50
50
  paddingInlineStart: g,
51
51
  paddingInlineEnd: u,
52
- paddingTop: $,
53
- paddingBottom: A,
54
- margin: v,
55
- marginInline: w,
56
- marginBlock: C,
57
- marginInlineStart: G,
58
- marginInlineEnd: R,
59
- marginTop: S,
60
- marginBottom: _,
52
+ paddingTop: _,
53
+ paddingBottom: $,
54
+ margin: A,
55
+ marginInline: v,
56
+ marginBlock: w,
57
+ marginInlineStart: C,
58
+ marginInlineEnd: G,
59
+ marginTop: R,
60
+ marginBottom: S,
61
61
  zIndex: j,
62
62
  ...d
63
63
  });
64
- return /* @__PURE__ */ k(P, { ref: N, className: q(D.grid, a), style: b, ...M, children: e });
64
+ return /* @__PURE__ */ k(P, { ref: N, className: q(D.grid, a), style: b, ...M, children: r });
65
65
  });
66
66
  export {
67
67
  L as Grid
@@ -2,7 +2,7 @@ import { jsx as c } from "react/jsx-runtime";
2
2
  import m from "react";
3
3
  import { clsx as f } from "clsx";
4
4
  import { HStack as h } from "../../stacks/h_stack.js";
5
- import '../../header.css';const n = "_header_3155fa4", i = { header: n }, H = m.forwardRef(function({
5
+ import '../../header.css';const n = "_header_3155fa4", i = { header: n }, y = m.forwardRef(function({
6
6
  hierarchy: e = "secondary",
7
7
  height: r = "auto",
8
8
  children: a,
@@ -25,6 +25,6 @@ import '../../header.css';const n = "_header_3155fa4", i = { header: n }, H = m.
25
25
  );
26
26
  });
27
27
  export {
28
- H as Header
28
+ y as Header
29
29
  };
30
30
  //# sourceMappingURL=header.js.map
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
2
2
  import o from "react";
3
3
  import { HStack as c } from "../../stacks/h_stack.js";
4
4
  import { clsx as f } from "clsx";
5
- const x = o.forwardRef(function({ children: r, className: a, selected: t = !1, ...e }, i) {
5
+ const u = o.forwardRef(function({ children: r, className: a, selected: t = !1, ...e }, i) {
6
6
  return /* @__PURE__ */ m(
7
7
  c,
8
8
  {
@@ -17,6 +17,6 @@ const x = o.forwardRef(function({ children: r, className: a, selected: t = !1, .
17
17
  );
18
18
  });
19
19
  export {
20
- x as Item
20
+ u as Item
21
21
  };
22
22
  //# sourceMappingURL=item.js.map
@@ -1,14 +1,14 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import i from "react";
3
- import { clsx as a } from "clsx";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import a from "react";
3
+ import { clsx as i } from "clsx";
4
4
  import { VStack as c } from "../../stacks/v_stack.js";
5
- const x = i.forwardRef(function({ children: t, className: o, isOrdered: r = !1, ...s }, m) {
6
- return /* @__PURE__ */ f(
5
+ const x = a.forwardRef(function({ children: t, className: o, isOrdered: r = !1, ...s }, f) {
6
+ return /* @__PURE__ */ m(
7
7
  c,
8
8
  {
9
- ref: m,
9
+ ref: f,
10
10
  as: r ? "ol" : "ul",
11
- className: a("tcn-list", o),
11
+ className: i("tcn-list", o),
12
12
  ...s,
13
13
  children: t
14
14
  }
@@ -1,12 +1,12 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import a from "react";
3
- import { HStack as c } from "../../stacks/h_stack.js";
4
- const d = a.forwardRef(
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import f from "react";
3
+ import { HStack as i } from "../../stacks/h_stack.js";
4
+ const p = f.forwardRef(
5
5
  function({ children: r, className: o, ...t }, e) {
6
- return /* @__PURE__ */ i(c, { ref: e, as: "li", className: o, ...t, children: r });
6
+ return /* @__PURE__ */ a(i, { ref: e, as: "li", className: o, ...t, children: r });
7
7
  }
8
8
  );
9
9
  export {
10
- d as SectionHeader
10
+ p as SectionHeader
11
11
  };
12
12
  //# sourceMappingURL=section_header.js.map
@@ -1,47 +1,47 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import S from "react";
3
3
  import { clsx as d } from "clsx";
4
- import { Box as x } from "../../stacks/box/box.js";
5
- import { VStack as i } from "../../stacks/v_stack.js";
6
- import '../../scaffold.css';const u = "_scaffold-stack_8f97a6a", N = { "scaffold-stack": u }, B = S.forwardRef(function({
4
+ import { Box as _ } from "../../stacks/box/box.js";
5
+ import { VStack as u } from "../../stacks/v_stack.js";
6
+ import '../../scaffold.css';const x = "_scaffold-stack_8f97a6a", i = { "scaffold-stack": x }, B = S.forwardRef(function({
7
7
  children: n,
8
- width: m,
9
- height: e = "100%",
8
+ width: e,
9
+ height: m = "100%",
10
10
  minWidth: a,
11
11
  maxWidth: c,
12
12
  minHeight: o,
13
13
  maxHeight: f,
14
- hAlign: s,
15
- vAlign: t = "start",
14
+ hAlign: t,
15
+ vAlign: s = "start",
16
16
  className: k,
17
17
  ...p
18
18
  }, r) {
19
19
  return /* @__PURE__ */ l(
20
- x,
20
+ _,
21
21
  {
22
22
  ref: r,
23
- width: m,
24
- height: e,
23
+ width: e,
24
+ height: m,
25
25
  minWidth: a,
26
26
  maxWidth: c,
27
27
  minHeight: o,
28
28
  maxHeight: f,
29
- "data-h-alignment": s,
30
- "data-v-alignment": t,
29
+ "data-h-alignment": t,
30
+ "data-v-alignment": s,
31
31
  className: d(k, "tcn-scaffold"),
32
32
  ...p,
33
33
  children: /* @__PURE__ */ l(
34
- i,
34
+ u,
35
35
  {
36
36
  as: "section",
37
37
  minWidth: a,
38
38
  maxWidth: c,
39
39
  minHeight: o,
40
40
  maxHeight: f,
41
- hAlign: s,
42
- vAlign: t,
41
+ hAlign: t,
42
+ vAlign: s,
43
43
  ref: r,
44
- className: d(N["scaffold-stack"], "tcn-scaffold-stack"),
44
+ className: d(i["scaffold-stack"], "tcn-scaffold-stack"),
45
45
  zIndex: 0,
46
46
  children: n
47
47
  }
@@ -1,9 +1,9 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { Box as x } from "../../stacks/box/box.js";
3
- import { VStack as l } from "../../stacks/v_stack.js";
4
- import { clsx as B } from "clsx";
5
- import _ from "react";
6
- import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebarEnd_cb253a2", c = { sidebarEndBox: y, sidebarEnd: S }, I = _.forwardRef(
2
+ import { Box as p } from "../../stacks/box/box.js";
3
+ import { VStack as x } from "../../stacks/v_stack.js";
4
+ import { clsx as _ } from "clsx";
5
+ import B from "react";
6
+ import '../../sidebar_end.css';const u = "_sidebarEndBox_25f69cc", y = "_sidebarEnd_cb253a2", c = { sidebarEndBox: u, sidebarEnd: y }, I = B.forwardRef(
7
7
  function({
8
8
  hierarchy: t = "secondary",
9
9
  children: b,
@@ -13,13 +13,13 @@ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebar
13
13
  maxWidth: a,
14
14
  minHeight: d,
15
15
  maxHeight: e,
16
- hAlign: i,
17
- vAlign: f = "start",
16
+ hAlign: f,
17
+ vAlign: i = "start",
18
18
  className: m,
19
19
  ...E
20
- }, p) {
20
+ }, l) {
21
21
  return /* @__PURE__ */ n(
22
- x,
22
+ p,
23
23
  {
24
24
  width: r,
25
25
  height: o,
@@ -31,7 +31,7 @@ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebar
31
31
  as: "section",
32
32
  ...E,
33
33
  children: /* @__PURE__ */ n(
34
- l,
34
+ x,
35
35
  {
36
36
  width: r,
37
37
  height: o,
@@ -39,11 +39,11 @@ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebar
39
39
  maxWidth: a,
40
40
  minHeight: d,
41
41
  maxHeight: e,
42
- hAlign: i,
43
- vAlign: f,
44
- ref: p,
42
+ hAlign: f,
43
+ vAlign: i,
44
+ ref: l,
45
45
  "data-hierarchy": t,
46
- className: B(c.sidebarEnd, m, "sidebar-end"),
46
+ className: _(c.sidebarEnd, m, "sidebar-end"),
47
47
  zIndex: 0,
48
48
  children: b
49
49
  }