@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.
- package/dist/Color-ASIRERSW-B4GaVKuQ.js +990 -0
- package/dist/Color-ASIRERSW-B4GaVKuQ.js.map +1 -0
- package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js +1485 -0
- package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js.map +1 -0
- package/dist/actions/__docs__/components/gallery.d.ts +8 -0
- package/dist/actions/__docs__/components/gallery.d.ts.map +1 -0
- package/dist/actions/__docs__/components/gallery.js +20 -0
- package/dist/actions/__docs__/components/gallery.js.map +1 -0
- package/dist/actions/__docs__/components/showcase.d.ts +27 -0
- package/dist/actions/__docs__/components/showcase.d.ts.map +1 -0
- package/dist/actions/__docs__/components/showcase.js +15 -0
- package/dist/actions/__docs__/components/showcase.js.map +1 -0
- package/dist/actions/button/base_button/base_button.d.ts +2 -0
- package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
- package/dist/actions/button/base_button/base_button.js +18 -16
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button/button.js +6 -6
- package/dist/actions/button/button_group/button_group.js +1 -1
- package/dist/actions/button/select_group/select_group.js +13 -13
- package/dist/actions/button/select_group/single_select_group.js +6 -6
- package/dist/actions/button/slim_button/slim_button.js +2 -2
- package/dist/actions/types.d.ts +2 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/actions/types.js +2 -0
- package/dist/actions/types.js.map +1 -0
- package/dist/feedback/loading/loading.js +12 -12
- package/dist/feedback/loading/loading.js.map +1 -1
- package/dist/feedback/progress/progress_bar.js +1 -1
- package/dist/form/field/common/field_control/field_control.js +8 -8
- package/dist/form/field/common/status_input/status_input.js +6 -6
- package/dist/form/field/field.js +5 -5
- package/dist/form/field/h_field/h_field.js +11 -11
- package/dist/form/field/v_field/v_field.js +10 -10
- package/dist/form/field_set/field_set.js +3 -3
- package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js +6 -0
- package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js.map +1 -0
- package/dist/gallery.css +1 -0
- package/dist/inputs/checkbox/checkbox.js +11 -11
- package/dist/inputs/color_input/color_picker.js +5 -5
- package/dist/inputs/combo_box/combo_box.js +16 -16
- package/dist/inputs/date_picker/date_picker.js +18 -18
- package/dist/inputs/date_picker/date_picker_body.js +2 -2
- package/dist/inputs/date_picker/date_picker_input.js +18 -18
- package/dist/inputs/input/input.js +5 -5
- package/dist/inputs/mask_input/key_capture_input.js +7 -7
- package/dist/inputs/mask_input/mask_input.js +4 -4
- package/dist/inputs/multi_combo_box/multi_combo_box.js +17 -17
- package/dist/inputs/multiselect/multiselect.js +13 -13
- package/dist/inputs/multiselect/multiselect_row.js +8 -8
- package/dist/inputs/phone_number_input/phone_number_input.js +11 -11
- package/dist/inputs/radio/radio.js +10 -10
- package/dist/inputs/radio/radio_row.js +3 -3
- package/dist/inputs/select/select.js +14 -14
- package/dist/inputs/slider/slider.js +10 -10
- package/dist/inputs/switch/switch.js +4 -4
- package/dist/inputs/textarea/textarea.js +7 -7
- package/dist/inputs/unit_input/unit_input.js +4 -4
- package/dist/layouts/body/h_body.js +7 -7
- package/dist/layouts/body/v_body.js +6 -6
- package/dist/layouts/column/column.js +17 -17
- package/dist/layouts/footer/footer.js +7 -7
- package/dist/layouts/grid/grid.js +24 -24
- package/dist/layouts/header/header.js +2 -2
- package/dist/layouts/list/item.js +2 -2
- package/dist/layouts/list/list.js +7 -7
- package/dist/layouts/list/section_header.js +6 -6
- package/dist/layouts/scaffold/scaffold.js +16 -16
- package/dist/layouts/sidebar_end/sidebar_end.js +14 -14
- package/dist/layouts/sidebar_start/sidebar_start.js +10 -10
- package/dist/layouts/utility_bar/utility_bar.js +10 -10
- package/dist/overlay/frame/frame.js +4 -4
- package/dist/overlay/menu/menu.js +34 -34
- package/dist/overlay/portal/portal_platform_context.js +4 -4
- package/dist/showcase-WfP6kBEb.js +58401 -0
- package/dist/showcase-WfP6kBEb.js.map +1 -0
- package/dist/showcase.css +1 -0
- package/dist/stacks/box/box.js +23 -23
- package/dist/stacks/h_collapsible_box.js +2 -2
- package/dist/stacks/h_stack.js +41 -41
- package/dist/stacks/spacer.js +11 -11
- package/dist/stacks/story_components/circle.js +10 -10
- package/dist/stacks/story_components/picture_placeholder.js +9 -9
- package/dist/stacks/story_components/rect.js +7 -7
- package/dist/stacks/story_components/style_box.js +4 -4
- package/dist/stacks/utils/use_is_collapsed.js +6 -6
- package/dist/stacks/v_collapsible_box.js +2 -2
- package/dist/stacks/v_stack.js +42 -42
- package/dist/stacks/z_stack.js +39 -39
- package/dist/surfaces/alert/alert.js +4 -4
- package/dist/surfaces/card/card.js +4 -4
- package/dist/surfaces/confirm/confirm.js +9 -9
- package/dist/surfaces/drawers/drawer_start/drawer_start.js +2 -2
- package/dist/surfaces/drawers/drawer_top/drawer_top.js +2 -2
- package/dist/surfaces/modal/modal.js +5 -5
- package/dist/surfaces/page/h_page.js +7 -7
- package/dist/surfaces/page/v_page.js +5 -5
- package/dist/surfaces/panel/h_panel.js +14 -14
- package/dist/surfaces/panel/v_panel.js +9 -9
- package/dist/surfaces/pop_confirm/pop_confirm.js +6 -6
- package/dist/surfaces/popconfirm/pop_confirm.js +8 -8
- package/dist/surfaces/tooltip/tooltip.js +8 -8
- package/dist/surfaces/window/window.js +9 -9
- package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js +3777 -0
- package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js.map +1 -0
- package/dist/themes/themes/ergo/ergo_theme.js +33 -1
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
- package/dist/tokens/badge/badge.js +9 -9
- package/dist/tokens/bubble/bubble.js +8 -8
- package/dist/tokens/chip/chip.js +3 -3
- package/dist/utils/click_away_listener.js +10 -10
- package/dist/utils/click_away_listener.js.map +1 -1
- package/dist/utils/dnd/draggable/draggable.js +4 -4
- package/dist/utils/dnd/handle.js +8 -8
- package/dist/utils/focus_redirect.js +5 -5
- package/dist/utils/hooks/make_context_hook.js +4 -4
- package/dist/utils/hooks/use_media_query.js +2 -2
- package/dist/utils/hooks/use_media_query.js.map +1 -1
- package/package.json +1 -1
- package/src/actions/__docs__/actions.mdx +131 -0
- package/src/actions/__docs__/actions.stories.tsx +309 -0
- package/src/actions/__docs__/components/gallery.module.css +6 -0
- package/src/actions/__docs__/components/gallery.tsx +28 -0
- package/src/actions/__docs__/components/showcase.module.css +55 -0
- package/src/actions/__docs__/components/showcase.tsx +121 -0
- package/src/actions/button/base_button/base_button.tsx +5 -1
- package/src/actions/types.ts +6 -0
- 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
|
|
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",
|
|
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 =
|
|
20
|
+
const pe = F.forwardRef(function({
|
|
21
21
|
children: t = [],
|
|
22
22
|
onKeyDown: n,
|
|
23
23
|
onKeyUp: f,
|
|
24
24
|
value: m,
|
|
25
|
-
placeholder:
|
|
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 =
|
|
34
|
+
const K = F.Children.toArray(
|
|
35
35
|
t
|
|
36
|
-
), l = c(""), M = c(!1), h = c(!1), [j, S] =
|
|
37
|
-
function
|
|
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
|
|
51
|
-
|
|
52
|
-
r && g && g(e),
|
|
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() :
|
|
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()),
|
|
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",
|
|
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:
|
|
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",
|
|
10
|
-
const
|
|
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 =
|
|
12
|
+
const e = l.current;
|
|
13
13
|
if (e == null) return;
|
|
14
14
|
const s = () => {
|
|
15
|
-
const f = (parseFloat(e.value) -
|
|
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
|
-
}, [
|
|
21
|
+
}, [t, r]), /* @__PURE__ */ p(
|
|
22
22
|
"input",
|
|
23
23
|
{
|
|
24
24
|
type: "range",
|
|
25
|
-
className: m(a,
|
|
25
|
+
className: m(a, _.slider, "slider"),
|
|
26
26
|
"data-is-disabled": n.disabled || !1,
|
|
27
|
-
ref:
|
|
27
|
+
ref: c,
|
|
28
28
|
onChange: (e) => {
|
|
29
29
|
o && o(e.currentTarget.value, e);
|
|
30
30
|
},
|
|
31
31
|
...n,
|
|
32
|
-
min: String(
|
|
33
|
-
max: String(
|
|
32
|
+
min: String(t),
|
|
33
|
+
max: String(r),
|
|
34
34
|
"data-width": "100%",
|
|
35
|
-
style: { width: u, ...
|
|
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
|
|
22
|
+
function _(s) {
|
|
23
23
|
t.onBlur && t.onBlur(s), a(!1);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
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:
|
|
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
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as f } from "clsx";
|
|
3
|
-
import
|
|
4
|
-
import '../../textarea.css';const
|
|
5
|
-
return /* @__PURE__ */
|
|
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,
|
|
9
|
+
className: f(r, m.textarea, "textarea"),
|
|
10
10
|
"data-is-disabled": e.disabled || !1,
|
|
11
|
-
ref:
|
|
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
|
-
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
2
|
-
import { HStack as
|
|
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",
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
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:
|
|
9
|
+
ref: f,
|
|
10
10
|
as: "div",
|
|
11
11
|
overflowX: r,
|
|
12
|
-
className: y(
|
|
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
|
|
3
|
-
import
|
|
4
|
-
import { clsx as
|
|
5
|
-
import '../../v_body.css';const
|
|
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
|
-
|
|
7
|
+
f,
|
|
8
8
|
{
|
|
9
9
|
ref: c,
|
|
10
10
|
as: "div",
|
|
11
11
|
overflowY: r,
|
|
12
|
-
className:
|
|
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
|
|
2
|
-
import { clsx as
|
|
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
|
|
6
|
-
import '../../column.css';const
|
|
7
|
-
children:
|
|
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:
|
|
13
|
-
maxHeight:
|
|
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__ */
|
|
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:
|
|
27
|
-
maxHeight:
|
|
28
|
-
className:
|
|
26
|
+
minHeight: t,
|
|
27
|
+
maxHeight: m,
|
|
28
|
+
className: s(k, l.column, "column"),
|
|
29
29
|
...p,
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
children: /* @__PURE__ */ n(
|
|
31
|
+
d,
|
|
32
32
|
{
|
|
33
33
|
minWidth: o,
|
|
34
34
|
maxWidth: c,
|
|
35
|
-
minHeight:
|
|
36
|
-
maxHeight:
|
|
35
|
+
minHeight: t,
|
|
36
|
+
maxHeight: m,
|
|
37
37
|
hAlign: e,
|
|
38
38
|
vAlign: f,
|
|
39
39
|
ref: _,
|
|
40
40
|
as: "section",
|
|
41
|
-
className:
|
|
41
|
+
className: s(l["column-stack"], "column-stack"),
|
|
42
42
|
zIndex: 0,
|
|
43
|
-
children:
|
|
43
|
+
children: r
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
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 },
|
|
6
|
-
return /* @__PURE__ */
|
|
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:
|
|
9
|
+
ref: f,
|
|
10
10
|
as: "footer",
|
|
11
11
|
className: m(d.footer, e, "tcn-footer"),
|
|
12
12
|
"data-hierarchy": o,
|
|
13
|
-
"data-size":
|
|
13
|
+
"data-size": t,
|
|
14
14
|
...a,
|
|
15
|
-
children:
|
|
15
|
+
children: r
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
});
|
|
19
19
|
export {
|
|
20
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
23
|
-
margin:
|
|
24
|
-
marginInline:
|
|
25
|
-
marginBlock:
|
|
26
|
-
marginInlineStart:
|
|
27
|
-
marginInlineEnd:
|
|
28
|
-
marginTop:
|
|
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(
|
|
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
|
-
|
|
37
|
+
e ? t = `calc(${s} + ${e} * ${n - 1})` : t = s;
|
|
38
38
|
} else
|
|
39
39
|
t = "100%";
|
|
40
40
|
const b = z({
|
|
41
|
-
gap:
|
|
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:
|
|
54
|
-
margin:
|
|
55
|
-
marginInline:
|
|
56
|
-
marginBlock:
|
|
57
|
-
marginInlineStart:
|
|
58
|
-
marginInlineEnd:
|
|
59
|
-
marginTop:
|
|
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:
|
|
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 },
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
20
|
+
u as Item
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=item.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
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 =
|
|
6
|
-
return /* @__PURE__ */
|
|
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:
|
|
9
|
+
ref: f,
|
|
10
10
|
as: r ? "ol" : "ul",
|
|
11
|
-
className:
|
|
11
|
+
className: i("tcn-list", o),
|
|
12
12
|
...s,
|
|
13
13
|
children: t
|
|
14
14
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { HStack as
|
|
4
|
-
const
|
|
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
|
|
6
|
+
return /* @__PURE__ */ a(i, { ref: e, as: "li", className: o, ...t, children: r });
|
|
7
7
|
}
|
|
8
8
|
);
|
|
9
9
|
export {
|
|
10
|
-
|
|
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
|
|
5
|
-
import { VStack as
|
|
6
|
-
import '../../scaffold.css';const
|
|
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:
|
|
9
|
-
height:
|
|
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:
|
|
15
|
-
vAlign:
|
|
14
|
+
hAlign: t,
|
|
15
|
+
vAlign: s = "start",
|
|
16
16
|
className: k,
|
|
17
17
|
...p
|
|
18
18
|
}, r) {
|
|
19
19
|
return /* @__PURE__ */ l(
|
|
20
|
-
|
|
20
|
+
_,
|
|
21
21
|
{
|
|
22
22
|
ref: r,
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
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":
|
|
30
|
-
"data-v-alignment":
|
|
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
|
-
|
|
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:
|
|
42
|
-
vAlign:
|
|
41
|
+
hAlign: t,
|
|
42
|
+
vAlign: s,
|
|
43
43
|
ref: r,
|
|
44
|
-
className: d(
|
|
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
|
|
3
|
-
import { VStack as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import
|
|
6
|
-
import '../../sidebar_end.css';const
|
|
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:
|
|
17
|
-
vAlign:
|
|
16
|
+
hAlign: f,
|
|
17
|
+
vAlign: i = "start",
|
|
18
18
|
className: m,
|
|
19
19
|
...E
|
|
20
|
-
},
|
|
20
|
+
}, l) {
|
|
21
21
|
return /* @__PURE__ */ n(
|
|
22
|
-
|
|
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
|
-
|
|
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:
|
|
43
|
-
vAlign:
|
|
44
|
-
ref:
|
|
42
|
+
hAlign: f,
|
|
43
|
+
vAlign: i,
|
|
44
|
+
ref: l,
|
|
45
45
|
"data-hierarchy": t,
|
|
46
|
-
className:
|
|
46
|
+
className: _(c.sidebarEnd, m, "sidebar-end"),
|
|
47
47
|
zIndex: 0,
|
|
48
48
|
children: b
|
|
49
49
|
}
|