@lazar-ui/kit 0.6.0 → 0.6.2
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/CHANGELOG.md +21 -0
- package/dist/accordion.js +1 -1
- package/dist/breadcrumbs.js +1 -1
- package/dist/checkbox.css +1 -0
- package/dist/checkbox.d.ts +35 -10
- package/dist/checkbox.js +40 -2
- package/dist/dialog.css +1 -1
- package/dist/dialog.js +44 -37
- package/dist/drawer.css +1 -1
- package/dist/drawer.js +93 -72
- package/dist/empty-state.css +1 -1
- package/dist/empty-state.js +48 -29
- package/dist/{getComponentSlots-DD4iju8N.mjs → getComponentSlots-DwAYUFNk.mjs} +1 -1
- package/dist/getDecorationStyle-BCBONKEl.mjs +7 -0
- package/dist/heading.js +31 -5
- package/dist/input.js +124 -86
- package/dist/isValidReactNode-CmYwTWCE.mjs +18 -0
- package/dist/menu.css +1 -1
- package/dist/menu.js +103 -46
- package/dist/pagination.js +60 -48
- package/dist/radio.css +1 -1
- package/dist/radio.js +98 -42
- package/dist/table.css +1 -1
- package/dist/table.js +74 -25
- package/dist/tabs.css +1 -1
- package/dist/tabs.js +72 -30
- package/dist/text.js +48 -6
- package/dist/utils.d.ts +75 -2
- package/dist/utils.js +17 -14
- package/package.json +1 -1
- package/dist/Actions-CEIXfLKN.mjs +0 -26
- package/dist/Actions.css +0 -1
- package/dist/ActiveFilters-BJojmc-d.mjs +0 -29
- package/dist/ActiveFilters.css +0 -1
- package/dist/Cell-BPBvEyeL.mjs +0 -21
- package/dist/Cell.css +0 -1
- package/dist/Checkbox-Chfzm1Z9.mjs +0 -46
- package/dist/Checkbox.css +0 -1
- package/dist/Content-ru2X8iBx.mjs +0 -13
- package/dist/Content.css +0 -1
- package/dist/Group-DyDpeqOP.mjs +0 -16
- package/dist/Group.css +0 -1
- package/dist/Header-Clhgyr0J.mjs +0 -29
- package/dist/Header.css +0 -1
- package/dist/Heading-CL47Fqe7.mjs +0 -30
- package/dist/InputBase-BHZWQT9-.mjs +0 -46
- package/dist/Item-JbyvZy05.mjs +0 -66
- package/dist/Item.css +0 -1
- package/dist/Panel-Q06TIYep.mjs +0 -12
- package/dist/Provider-CBfZpO45.mjs +0 -12
- package/dist/Row-C-3TXoDz.mjs +0 -15
- package/dist/Row.css +0 -1
- package/dist/Tab-CR0KvVaA.mjs +0 -39
- package/dist/Tab.css +0 -1
- package/dist/Text-DiOqZt8E.mjs +0 -49
- package/dist/Title-aOeFD24v.mjs +0 -13
- package/dist/Title.css +0 -1
- package/dist/Toolbar-BJQy4qFI.mjs +0 -11
- package/dist/Toolbar.css +0 -1
- package/dist/Trigger-C_4De6l1.mjs +0 -11
- package/dist/actions.d.ts +0 -13
- package/dist/actions.js +0 -4
- package/dist/active-filters.d.ts +0 -35
- package/dist/active-filters.js +0 -4
- package/dist/cell.d.ts +0 -20
- package/dist/cell.js +0 -4
- package/dist/content.d.ts +0 -8
- package/dist/content.js +0 -4
- package/dist/context.d.ts +0 -44
- package/dist/context.js +0 -7
- package/dist/enums-BnuDYTua.mjs +0 -4
- package/dist/enums-CiPhZomh.mjs +0 -6
- package/dist/enums-DUZMBQDd.mjs +0 -7
- package/dist/group.d.ts +0 -12
- package/dist/group.js +0 -4
- package/dist/header.d.ts +0 -21
- package/dist/header.js +0 -4
- package/dist/input-base.d.ts +0 -29
- package/dist/input-base.js +0 -4
- package/dist/isValidReactNode-D1buElhX.mjs +0 -17
- package/dist/item.d.ts +0 -16
- package/dist/item.js +0 -4
- package/dist/panel.d.ts +0 -9
- package/dist/panel.js +0 -4
- package/dist/row.d.ts +0 -12
- package/dist/row.js +0 -4
- package/dist/tab.d.ts +0 -30
- package/dist/tab.js +0 -4
- package/dist/title.d.ts +0 -8
- package/dist/title.js +0 -4
- package/dist/toolbar.d.ts +0 -20
- package/dist/toolbar.js +0 -4
- package/dist/trigger.d.ts +0 -8
- package/dist/trigger.js +0 -4
- package/dist/typography.d.ts +0 -126
- package/dist/typography.js +0 -6
- package/dist/useTabsContext-DdF09jQq.mjs +0 -11
- /package/dist/{Heading.css → heading.css} +0 -0
- /package/dist/{InputBase.css → input.css} +0 -0
- /package/dist/{Text.css → text.css} +0 -0
package/dist/pagination.js
CHANGED
|
@@ -1,63 +1,75 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as L, useContext as
|
|
3
|
-
import
|
|
4
|
-
import { u as
|
|
5
|
-
import { g as
|
|
6
|
-
import { I as
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (!a)
|
|
1
|
+
import { jsx as c, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as L, useContext as S, useMemo as y, useCallback as R } from "react";
|
|
3
|
+
import f from "clsx";
|
|
4
|
+
import { u as v } from "./useLocale-CJh-krrY.mjs";
|
|
5
|
+
import { g as C } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
6
|
+
import { I as z } from "./Icon-DUCBChX2.mjs";
|
|
7
|
+
import './pagination.css';const P = L(null), I = P.Provider, w = () => {
|
|
8
|
+
const n = S(P);
|
|
9
|
+
if (!n)
|
|
11
10
|
throw new Error("Pagination sub-component must be used within a Pagination");
|
|
12
|
-
return
|
|
13
|
-
},
|
|
14
|
-
button:
|
|
15
|
-
active:
|
|
11
|
+
return n;
|
|
12
|
+
}, $ = "_button_nl5gc_14", E = "_active_nl5gc_40", A = "_prevNext_nl5gc_44", j = "_sizeSm_nl5gc_49", k = "_sizeMd_nl5gc_55", B = "_sizeLg_nl5gc_61", _ = {
|
|
13
|
+
button: $,
|
|
14
|
+
active: E,
|
|
16
15
|
prevNext: A,
|
|
17
|
-
sizeSm:
|
|
18
|
-
sizeMd:
|
|
19
|
-
sizeLg:
|
|
20
|
-
},
|
|
21
|
-
const { page: e, type:
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
[
|
|
26
|
-
[
|
|
16
|
+
sizeSm: j,
|
|
17
|
+
sizeMd: k,
|
|
18
|
+
sizeLg: B
|
|
19
|
+
}, x = (n) => {
|
|
20
|
+
const { page: e, type: a = "page", children: t } = n, { currentPage: l, totalPages: r, disabled: s, onChange: p, size: u } = w(), i = v(), g = e === l, o = s || e < 1 || e > r || g;
|
|
21
|
+
let d, m;
|
|
22
|
+
a === "prev" ? (d = i.Pagination.prev, m = t ?? /* @__PURE__ */ c(z, { name: "chevron-left", size: 14 })) : a === "next" ? (d = i.Pagination.next, m = t ?? /* @__PURE__ */ c(z, { name: "chevron-right", size: 14 })) : (d = i.Pagination.Item.page.replace("{page}", String(e)), m = t ?? e);
|
|
23
|
+
const M = f(_.button, C("size", u, _), {
|
|
24
|
+
[_.active]: g,
|
|
25
|
+
[_.prevNext]: a !== "page"
|
|
27
26
|
});
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ c(
|
|
29
28
|
"button",
|
|
30
29
|
{
|
|
31
|
-
"aria-current":
|
|
32
|
-
"aria-label":
|
|
33
|
-
className:
|
|
34
|
-
disabled:
|
|
35
|
-
onClick: () =>
|
|
30
|
+
"aria-current": g ? "page" : void 0,
|
|
31
|
+
"aria-label": d,
|
|
32
|
+
className: M,
|
|
33
|
+
disabled: o,
|
|
34
|
+
onClick: () => p(e),
|
|
36
35
|
type: "button",
|
|
37
|
-
children:
|
|
36
|
+
children: m
|
|
38
37
|
}
|
|
39
38
|
);
|
|
40
|
-
},
|
|
39
|
+
}, D = "Pagination", b = (n, e) => Array.from({ length: e - n + 1 }, (a, t) => n + t), V = (n, e) => {
|
|
40
|
+
if (e <= 7)
|
|
41
|
+
return b(1, e);
|
|
42
|
+
const l = Math.max(n - 1, 1), r = Math.min(n + 1, e), s = l > 2, p = r < e - 1;
|
|
43
|
+
if (!s && p) {
|
|
44
|
+
const i = Math.min(r + 1, e);
|
|
45
|
+
return [...b(1, i), "ellipsis", e];
|
|
46
|
+
}
|
|
47
|
+
if (s && !p) {
|
|
48
|
+
const i = Math.max(l - 1, 1);
|
|
49
|
+
return [1, "ellipsis", ...b(i, e)];
|
|
50
|
+
}
|
|
51
|
+
return [1, "ellipsis", ...b(l, r), "ellipsis", e];
|
|
52
|
+
}, Y = "_root_60eox_6", q = "_disabled_60eox_13", F = "_ellipsis_60eox_18", G = "_sizeSm_60eox_27", H = "_sizeMd_60eox_33", J = "_sizeLg_60eox_39", h = {
|
|
41
53
|
root: Y,
|
|
42
54
|
disabled: q,
|
|
43
|
-
ellipsis:
|
|
44
|
-
sizeSm:
|
|
45
|
-
sizeMd:
|
|
46
|
-
sizeLg:
|
|
47
|
-
},
|
|
48
|
-
const { disabled: e = !1, onChange:
|
|
49
|
-
(
|
|
50
|
-
e ||
|
|
55
|
+
ellipsis: F,
|
|
56
|
+
sizeSm: G,
|
|
57
|
+
sizeMd: H,
|
|
58
|
+
sizeLg: J
|
|
59
|
+
}, K = (n) => {
|
|
60
|
+
const { disabled: e = !1, onChange: a, page: t, showPrevNext: l = !0, size: r = "md", totalPages: s } = n, p = v(), u = y(() => V(t, s), [t, s]), i = R(
|
|
61
|
+
(o) => {
|
|
62
|
+
e || o < 1 || o > s || a?.(o);
|
|
51
63
|
},
|
|
52
|
-
[e,
|
|
53
|
-
),
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
[e, a, s]
|
|
65
|
+
), g = f(h.root, C("size", r, h), { [h.disabled]: e });
|
|
66
|
+
return /* @__PURE__ */ c(I, { value: { currentPage: t, disabled: e, onChange: i, size: r, totalPages: s }, children: /* @__PURE__ */ N("nav", { "aria-label": p.Pagination.label, className: g, children: [
|
|
67
|
+
l && /* @__PURE__ */ c(x, { page: t - 1, type: "prev" }),
|
|
68
|
+
u.map((o, d) => o === "ellipsis" ? /* @__PURE__ */ c("span", { "aria-hidden": "true", className: h.ellipsis, children: "…" }, `ellipsis-${d}`) : /* @__PURE__ */ c(x, { page: o, type: "page" }, o)),
|
|
69
|
+
l && /* @__PURE__ */ c(x, { page: t + 1, type: "next" })
|
|
58
70
|
] }) });
|
|
59
71
|
};
|
|
60
|
-
|
|
72
|
+
K.displayName = D;
|
|
61
73
|
export {
|
|
62
|
-
|
|
74
|
+
K as Pagination
|
|
63
75
|
};
|
package/dist/radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8"
|
|
1
|
+
@charset "UTF-8";._item_1mf7l_3{align-items:flex-start;cursor:pointer;display:inline-flex;gap:var(--radio-gap);position:relative;-webkit-user-select:none;user-select:none;vertical-align:middle}._item_1mf7l_3._disabled_1mf7l_12{cursor:not-allowed;opacity:.5}._item_1mf7l_3._invalid_1mf7l_17 ._radio_1mf7l_17{border-color:var(--radio-error-border)}._item_1mf7l_3._invalid_1mf7l_17 ._input_1mf7l_20:checked+._radio_1mf7l_17{background-color:var(--radio-error-checked-bg);border-color:var(--radio-error-checked-border)}._input_1mf7l_20{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._radio_1mf7l_17{align-items:center;background:var(--radio-bg);border:1px solid var(--radio-border);border-radius:var(--radio-radius);display:flex;flex-shrink:0;justify-content:center;position:relative;transition:background var(--radio-transition-duration) var(--radio-transition-timing),border-color var(--radio-transition-duration) var(--radio-transition-timing)}._radio_1mf7l_17:after{background:var(--radio-dot-color);border-radius:50%;content:"";opacity:0;position:absolute;transition:opacity var(--radio-transition-duration) var(--radio-transition-timing),transform var(--radio-transition-duration) var(--radio-transition-timing)}._content_1mf7l_63{display:flex;flex-direction:column;gap:var(--radio-content-gap);padding-top:var(--radio-content-padding-top)}._label_1mf7l_70{color:var(--radio-label-color);font-weight:var(--radio-label-font-weight)}._description_1mf7l_75{color:var(--radio-description-color);font-weight:var(--lui-font-weight-normal)}._item_1mf7l_3:not(._disabled_1mf7l_12) ._input_1mf7l_20:not(:checked):hover+._radio_1mf7l_17{border-color:var(--radio-hover-border)}._input_1mf7l_20:focus-visible+._radio_1mf7l_17{box-shadow:var(--radio-focus-shadow)}._input_1mf7l_20:checked+._radio_1mf7l_17{background:var(--radio-checked-bg);border-color:var(--radio-checked-border)}._input_1mf7l_20:checked+._radio_1mf7l_17:after{opacity:1}._disabled_1mf7l_12 ._input_1mf7l_20:checked+._radio_1mf7l_17{background:var(--radio-disabled-bg);border-color:var(--radio-disabled-border)}._disabled_1mf7l_12 ._input_1mf7l_20:checked+._radio_1mf7l_17:after{background:var(--radio-disabled-dot)}._disabled_1mf7l_12 ._input_1mf7l_20:not(:checked)+._radio_1mf7l_17{background:var(--radio-disabled-bg);border-color:var(--radio-disabled-border)}._sizeSm_1mf7l_113 ._radio_1mf7l_17{height:16px;width:16px}._sizeSm_1mf7l_113 ._radio_1mf7l_17:after{height:6px;width:6px}._sizeSm_1mf7l_113 ._label_1mf7l_70{font-size:var(--lui-font-size-sm);line-height:var(--line-height-sm)}._sizeSm_1mf7l_113 ._description_1mf7l_75{font-size:var(--lui-font-size-xs);line-height:var(--line-height-xs)}._sizeMd_1mf7l_130 ._radio_1mf7l_17{height:20px;width:20px}._sizeMd_1mf7l_130 ._radio_1mf7l_17:after{height:8px;width:8px}._sizeMd_1mf7l_130 ._label_1mf7l_70{font-size:var(--lui-font-size-md);line-height:var(--line-height-md)}._sizeMd_1mf7l_130 ._description_1mf7l_75{font-size:var(--lui-font-size-sm);line-height:var(--line-height-sm)}._sizeLg_1mf7l_147 ._radio_1mf7l_17{height:24px;width:24px}._sizeLg_1mf7l_147 ._radio_1mf7l_17:after{height:10px;width:10px}._sizeLg_1mf7l_147 ._label_1mf7l_70{font-size:var(--lui-font-size-lg);line-height:var(--line-height-lg)}._sizeLg_1mf7l_147 ._description_1mf7l_75{font-size:var(--lui-font-size-md);line-height:var(--line-height-md)}:root{--radio-bg: var(--lui-color-background-primary);--radio-border: var(--lui-color-border-primary);--radio-checked-bg: var(--lui-color-background-brand);--radio-checked-border: var(--lui-color-background-brand);--radio-dot-color: var(--lui-color-text-on-brand);--radio-disabled-bg: var(--lui-color-background-disabled);--radio-disabled-border: var(--lui-color-border-disabled);--radio-disabled-dot: var(--lui-color-text-disabled);--radio-error-border: var(--lui-color-border-focus-error);--radio-error-checked-bg: var(--lui-color-background-error);--radio-error-checked-border: var(--lui-color-background-error);--radio-radius: var(--lui-radius-full);--radio-hover-border: var(--lui-palette-gray-400);--radio-focus-shadow: 0 0 0 2px var(--lui-palette-brand-secondary);--radio-label-color: var(--lui-color-text-primary);--radio-description-color: var(--lui-color-text-tertiary);--radio-label-font-weight: var(--lui-font-weight-medium);--radio-gap: var(--lui-space-2);--radio-content-gap: 2px;--radio-content-padding-top: 1px;--radio-group-gap: var(--lui-space-2);--radio-transition-duration: .15s;--radio-transition-timing: cubic-bezier(.4, 0, .2, 1)}._root_pott0_33{border:none;display:flex;flex-direction:column;margin:0;padding:0}._root_pott0_33._vertical_pott0_40 ._group_pott0_40{flex-direction:column}._root_pott0_33._horizontal_pott0_43 ._group_pott0_40{flex-direction:row}._group_pott0_40{display:flex;gap:var(--radio-group-gap)}
|
package/dist/radio.js
CHANGED
|
@@ -1,57 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import T from "
|
|
5
|
-
import { i as
|
|
1
|
+
import { jsx as s, jsxs as z } from "react/jsx-runtime";
|
|
2
|
+
import L, { createContext as S, useContext as E, useId as P, useState as A, useCallback as x, useRef as D } from "react";
|
|
3
|
+
import I from "clsx";
|
|
4
|
+
import { g as T } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
5
|
+
import { i as k } from "./isValidReactNode-CmYwTWCE.mjs";
|
|
6
6
|
import "lodash/camelCase";
|
|
7
|
-
import './radio.css';const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import './radio.css';const R = S(null), $ = () => {
|
|
8
|
+
const e = E(R);
|
|
9
|
+
if (!e)
|
|
10
|
+
throw new Error("useRadioContext should be used inside Radio component");
|
|
11
|
+
return e;
|
|
12
|
+
}, j = (e) => {
|
|
13
|
+
const { children: n, name: a, value: i, defaultValue: l, onChange: r, size: m, disabled: _, invalid: t } = e, p = P(), v = a ?? p, c = i !== void 0, [d, f] = A(l), g = c ? i : d, N = x(
|
|
14
|
+
(h) => {
|
|
15
|
+
c || f(h), r?.(h);
|
|
11
16
|
},
|
|
12
|
-
[
|
|
17
|
+
[c, r]
|
|
13
18
|
);
|
|
14
|
-
return /* @__PURE__ */ s(
|
|
19
|
+
return /* @__PURE__ */ s(R.Provider, { value: { disabled: _, invalid: t, name: v, onChange: N, size: m, value: g }, children: n });
|
|
20
|
+
}, b = "Radio", w = "_item_1mf7l_3", B = "_disabled_1mf7l_12", O = "_invalid_1mf7l_17", G = "_radio_1mf7l_17", U = "_input_1mf7l_20", Y = "_content_1mf7l_63", q = "_label_1mf7l_70", F = "_description_1mf7l_75", H = "_sizeSm_1mf7l_113", J = "_sizeMd_1mf7l_130", K = "_sizeLg_1mf7l_147", o = {
|
|
21
|
+
item: w,
|
|
22
|
+
disabled: B,
|
|
23
|
+
invalid: O,
|
|
24
|
+
radio: G,
|
|
25
|
+
input: U,
|
|
26
|
+
content: Y,
|
|
27
|
+
label: q,
|
|
28
|
+
description: F,
|
|
29
|
+
sizeSm: H,
|
|
30
|
+
sizeMd: J,
|
|
31
|
+
sizeLg: K
|
|
32
|
+
}, M = (e) => {
|
|
33
|
+
const { ref: n, children: a, value: i, description: l, disabled: r, onChange: m, ..._ } = e, t = $(), p = D(null), v = t.size ?? "md", c = t.value !== void 0 ? i === t.value : void 0, d = r !== void 0 ? r : t.disabled, f = t.invalid === !0, g = x(
|
|
34
|
+
(u) => {
|
|
35
|
+
p.current = u, typeof n == "function" ? n(u) : n && (n.current = u);
|
|
36
|
+
},
|
|
37
|
+
[n]
|
|
38
|
+
), N = (u) => {
|
|
39
|
+
t.onChange?.(u.target.value), m?.(u);
|
|
40
|
+
}, h = I(
|
|
41
|
+
o.item,
|
|
42
|
+
T("size", v, o),
|
|
43
|
+
{
|
|
44
|
+
[o.disabled]: d,
|
|
45
|
+
[o.invalid]: f
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
return /* @__PURE__ */ z("label", { className: h, children: [
|
|
49
|
+
/* @__PURE__ */ s(
|
|
50
|
+
"input",
|
|
51
|
+
{
|
|
52
|
+
ref: g,
|
|
53
|
+
className: o.input,
|
|
54
|
+
type: "radio",
|
|
55
|
+
checked: c,
|
|
56
|
+
disabled: d,
|
|
57
|
+
"aria-invalid": f || void 0,
|
|
58
|
+
name: t.name,
|
|
59
|
+
value: i,
|
|
60
|
+
onChange: N,
|
|
61
|
+
..._
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ s("span", { className: o.radio, "aria-hidden": "true" }),
|
|
65
|
+
(a || l) && /* @__PURE__ */ z("span", { className: o.content, children: [
|
|
66
|
+
a && /* @__PURE__ */ s("span", { className: o.label, children: a }),
|
|
67
|
+
l && /* @__PURE__ */ s("span", { className: o.description, children: l })
|
|
68
|
+
] })
|
|
69
|
+
] });
|
|
15
70
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
71
|
+
M.displayName = `${b}.Item`;
|
|
72
|
+
var V = ((e) => (e.ITEM = `${b}.Item`, e))(V || {}), Q = /* @__PURE__ */ ((e) => (e.SM = "sm", e.MD = "md", e.LG = "lg", e))(Q || {});
|
|
73
|
+
const W = "_root_pott0_33", X = "_vertical_pott0_40", Z = "_group_pott0_40", ee = "_horizontal_pott0_43", C = {
|
|
74
|
+
root: W,
|
|
75
|
+
vertical: X,
|
|
76
|
+
group: Z,
|
|
77
|
+
horizontal: ee
|
|
78
|
+
}, te = [V.ITEM], y = (e) => {
|
|
23
79
|
const {
|
|
24
|
-
children:
|
|
25
|
-
name:
|
|
26
|
-
value:
|
|
27
|
-
defaultValue:
|
|
28
|
-
onChange:
|
|
29
|
-
vertical:
|
|
30
|
-
size:
|
|
31
|
-
disabled:
|
|
80
|
+
children: n,
|
|
81
|
+
name: a,
|
|
82
|
+
value: i,
|
|
83
|
+
defaultValue: l,
|
|
84
|
+
onChange: r,
|
|
85
|
+
vertical: m = !0,
|
|
86
|
+
size: _ = "md",
|
|
87
|
+
disabled: t = !1,
|
|
32
88
|
invalid: p = !1
|
|
33
|
-
} = e, v = (
|
|
34
|
-
[
|
|
35
|
-
[
|
|
89
|
+
} = e, v = (d) => k(te, d) ? d : null, c = I(C.root, {
|
|
90
|
+
[C.horizontal]: !m,
|
|
91
|
+
[C.vertical]: m
|
|
36
92
|
});
|
|
37
93
|
return /* @__PURE__ */ s(
|
|
38
|
-
|
|
94
|
+
j,
|
|
39
95
|
{
|
|
40
|
-
name:
|
|
41
|
-
value:
|
|
42
|
-
defaultValue:
|
|
43
|
-
onChange:
|
|
44
|
-
size:
|
|
45
|
-
disabled:
|
|
96
|
+
name: a,
|
|
97
|
+
value: i,
|
|
98
|
+
defaultValue: l,
|
|
99
|
+
onChange: r,
|
|
100
|
+
size: _,
|
|
101
|
+
disabled: t,
|
|
46
102
|
invalid: p,
|
|
47
|
-
children: /* @__PURE__ */ s("fieldset", { className:
|
|
103
|
+
children: /* @__PURE__ */ s("fieldset", { className: c, children: /* @__PURE__ */ s("div", { className: C.group, children: L.Children.map(n, v) }) })
|
|
48
104
|
}
|
|
49
105
|
);
|
|
50
106
|
};
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
|
|
107
|
+
y.displayName = b;
|
|
108
|
+
const ne = y;
|
|
109
|
+
ne.Item = M;
|
|
54
110
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
111
|
+
Q as ERadioSize,
|
|
112
|
+
ne as Radio
|
|
57
113
|
};
|
package/dist/table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--table-font-size: var(--lui-font-size-md)}._wrapper_17sd8_5{display:flex;flex-direction:column;gap:var(--lui-space-4)}._root_17sd8_11{border-collapse:collapse;font-size:var(--table-font-size);table-layout:fixed;width:100%}
|
|
1
|
+
:root{--active-filters-gap: var(--lui-space-2)}._root_4qb7d_5{align-items:center;display:flex;flex-wrap:wrap;gap:var(--active-filters-gap)}:root{--cell-bg-header: var(--lui-color-background-tertiary);--cell-border-header: var(--lui-color-border-secondary);--cell-padding: var(--lui-space-3) var(--lui-space-4);--cell-max-width: 200px}._root_lmxwt_8{background-color:transparent;border-bottom:1px solid var(--lui-color-border-primary);max-width:var(--cell-max-width);overflow:hidden;padding:var(--cell-padding);text-overflow:ellipsis;white-space:nowrap}._root_lmxwt_8._header_lmxwt_17{background-color:var(--cell-bg-header);border-bottom:2px solid var(--cell-border-header)}._root_lmxwt_8._alignLeft_lmxwt_21{text-align:left}._root_lmxwt_8._alignRight_lmxwt_24{text-align:right}._root_lmxwt_8._alignCenter_lmxwt_27{text-align:center}:root{--table-bg-stripe: var(--lui-color-background-secondary)}._root_t4731_5{background-color:var(--lui-color-background-primary);border-bottom:1px solid var(--lui-color-border-primary);transition:background-color .2s}._root_t4731_5:nth-child(odd){background-color:var(--table-bg-stripe)}._root_t4731_5:hover{background-color:var(--lui-color-background-brand-secondary)}:root{--toolbar-gap: var(--lui-space-3);--toolbar-padding: var(--lui-space-3) 0}._root_d4szt_6{align-items:center;display:flex;gap:var(--toolbar-gap);padding:var(--toolbar-padding)}:root{--table-font-size: var(--lui-font-size-md)}._wrapper_17sd8_5{display:flex;flex-direction:column;gap:var(--lui-space-4)}._root_17sd8_11{border-collapse:collapse;font-size:var(--table-font-size);table-layout:fixed;width:100%}
|
package/dist/table.js
CHANGED
|
@@ -1,30 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import { jsxs as h, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import b, { useCallback as p } from "react";
|
|
3
|
+
import { B as u } from "./Button-BN85EtaZ.mjs";
|
|
4
|
+
import { C as L } from "./Chip-CmsNZTlz.mjs";
|
|
5
|
+
import { u as R } from "./useLocale-CJh-krrY.mjs";
|
|
6
|
+
import y from "clsx";
|
|
7
|
+
import { g as w } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
8
|
+
import { i } from "./isValidReactNode-CmYwTWCE.mjs";
|
|
8
9
|
import "lodash/camelCase";
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
import './table.css';const v = "Table.ActiveFilters", x = "_root_4qb7d_5", $ = {
|
|
11
|
+
root: x
|
|
12
|
+
}, g = (t) => {
|
|
13
|
+
const { filters: e, onClearAll: o, onRemove: r } = t, c = R(), l = p(
|
|
14
|
+
(a) => () => {
|
|
15
|
+
r(a);
|
|
16
|
+
},
|
|
17
|
+
[r]
|
|
18
|
+
), m = p(() => {
|
|
19
|
+
o?.();
|
|
20
|
+
}, [o]);
|
|
21
|
+
return e.length === 0 ? null : /* @__PURE__ */ h("div", { className: $.root, children: [
|
|
22
|
+
e.map((a) => /* @__PURE__ */ h(L, { onDelete: l(a.key), children: [
|
|
23
|
+
a.label,
|
|
24
|
+
": ",
|
|
25
|
+
a.value
|
|
26
|
+
] }, a.key)),
|
|
27
|
+
o && /* @__PURE__ */ n(u, { mode: "text", size: "sm", onClick: m, children: c.Table.ActiveFilters.clearAll })
|
|
20
28
|
] });
|
|
21
29
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
g.displayName = v;
|
|
31
|
+
var s = /* @__PURE__ */ ((t) => (t.CELL = "Table.Cell", t.ROW = "Table.Row", t.TOOLBAR = "Table.Toolbar", t))(s || {});
|
|
32
|
+
const O = "_root_lmxwt_8", k = "_header_lmxwt_17", B = "_alignLeft_lmxwt_21", F = "_alignRight_lmxwt_24", D = "_alignCenter_lmxwt_27", _ = {
|
|
33
|
+
root: O,
|
|
34
|
+
header: k,
|
|
35
|
+
alignLeft: B,
|
|
36
|
+
alignRight: F,
|
|
37
|
+
alignCenter: D
|
|
38
|
+
}, A = (t) => {
|
|
39
|
+
const { align: e = "left", as: o = "td", children: r, title: c, width: l } = t, m = y(_.root, w("align", e, _), {
|
|
40
|
+
[_.header]: o === "th"
|
|
41
|
+
});
|
|
42
|
+
return /* @__PURE__ */ n(o, { className: m, title: c, width: l, children: r });
|
|
43
|
+
};
|
|
44
|
+
A.displayName = s.CELL;
|
|
45
|
+
const E = "_root_t4731_5", I = {
|
|
46
|
+
root: E
|
|
47
|
+
}, T = (t) => {
|
|
48
|
+
const { children: e } = t, o = (r) => i(s.CELL, r) ? r : null;
|
|
49
|
+
return /* @__PURE__ */ n("tr", { className: I.root, children: b.Children.map(e, o) });
|
|
50
|
+
};
|
|
51
|
+
T.displayName = s.ROW;
|
|
52
|
+
const M = "Table.Toolbar", P = "_root_d4szt_6", W = {
|
|
53
|
+
root: P
|
|
54
|
+
}, f = (t) => {
|
|
55
|
+
const { children: e } = t;
|
|
56
|
+
return /* @__PURE__ */ n("div", { className: W.root, children: e });
|
|
57
|
+
};
|
|
58
|
+
f.displayName = M;
|
|
59
|
+
const Y = "Table", j = "_wrapper_17sd8_5", z = "_root_17sd8_11", C = {
|
|
60
|
+
wrapper: j,
|
|
61
|
+
root: z
|
|
62
|
+
}, N = (t) => {
|
|
63
|
+
const { children: e } = t, o = b.Children.toArray(e), r = o.find(
|
|
64
|
+
(l) => i(s.TOOLBAR, l, !1)
|
|
65
|
+
), c = o.filter((l) => !i(s.TOOLBAR, l, !1)).filter((l) => i(s.ROW, l, !0));
|
|
66
|
+
return /* @__PURE__ */ h("div", { className: C.wrapper, children: [
|
|
67
|
+
r,
|
|
68
|
+
/* @__PURE__ */ n("table", { className: C.root, children: /* @__PURE__ */ n("tbody", { children: c }) })
|
|
69
|
+
] });
|
|
70
|
+
};
|
|
71
|
+
N.displayName = Y;
|
|
72
|
+
const d = N;
|
|
73
|
+
d.ActiveFilters = g;
|
|
74
|
+
d.Cell = A;
|
|
75
|
+
d.Row = T;
|
|
76
|
+
d.Toolbar = f;
|
|
28
77
|
export {
|
|
29
|
-
|
|
78
|
+
d as Table
|
|
30
79
|
};
|
package/dist/tabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--tabs-padding: var(--lui-space-8);--tabs-panel-padding-top: var(--lui-space-10);--tab-text: var(--lui-color-text-secondary);--tab-text-active: var(--lui-color-text-primary);--tab-text-disabled: var(--lui-color-text-disabled);--tab-border-active: var(--lui-palette-gray-900);--tab-bg-buttons: var(--lui-color-background-tertiary);--tab-bg-buttons-active: var(--lui-color-background-brand-secondary);--tab-text-buttons: var(--lui-color-text-quaternary);--tab-text-buttons-active: var(--lui-color-text-primary);--tab-radius-buttons: var(--lui-radius-1);--tab-font-buttons: var(--lui-font-size-md);--tab-gap-buttons: var(--lui-space-3);--tab-padding-y-buttons: var(--lui-space-2);--tab-padding-x-buttons: var(--lui-space-3);--tab-list-gap: var(--lui-space-4)}._root_ndfzg_20{width:auto}._root_ndfzg_20._variantDefault_ndfzg_23 ._list_ndfzg_23:before{border-bottom:1px solid var(--lui-color-border-primary);bottom:0;content:"";left:0;position:absolute;right:0;z-index:0}._root_ndfzg_20._variantButtons_ndfzg_32 ._list_ndfzg_23{align-items:center;gap:var(--tab-list-gap);justify-content:flex-start;padding:var(--tabs-padding)}._list_ndfzg_23{display:flex;overflow-x:auto;position:relative}._panel_ndfzg_45{padding-top:var(--tabs-panel-padding-top);position:relative}@media only screen and (max-width:1023px){._root_ndfzg_20._variantButtons_ndfzg_32{justify-content:start}}
|
|
1
|
+
._root_11zii_1{position:relative;-webkit-user-select:none;user-select:none}._root_11zii_1._disabled_11zii_5{color:var(--tab-text-disabled);cursor:not-allowed}._root_11zii_1._variantDefault_11zii_9{border-bottom:2px solid transparent;color:var(--tab-text);font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-md);padding:var(--lui-space-3) var(--lui-space-5);transition:border-color .3s,color .3s;white-space:nowrap}._root_11zii_1._variantDefault_11zii_9:focus{border-color:var(--tab-text-active)}._root_11zii_1._variantDefault_11zii_9._active_11zii_22{border-color:var(--tab-border-active);color:var(--tab-text-active)}._root_11zii_1._variantButtons_11zii_26{align-items:center;background:var(--tab-bg-buttons);border-radius:var(--tab-radius-buttons);color:var(--tab-text-buttons);display:flex;flex:1;flex-direction:column;font-size:var(--tab-font-buttons);font-weight:var(--lui-font-weight-medium);gap:var(--tab-gap-buttons);height:64px;justify-content:center;line-height:var(--line-height-md);max-width:320px;padding:var(--tab-padding-y-buttons) var(--tab-padding-x-buttons)}._root_11zii_1._variantButtons_11zii_26:focus{box-shadow:0 0 0 2px #98a2b324}._root_11zii_1._variantButtons_11zii_26._active_11zii_22{background:var(--tab-bg-buttons-active);color:var(--tab-text-buttons-active)}@media only screen and (max-width:1023px){._root_11zii_1._variantButtons_11zii_26{gap:var(--tab-gap-buttons);height:40px;justify-content:center;padding:var(--lui-space-2) var(--lui-space-5);white-space:nowrap}}:root{--tabs-padding: var(--lui-space-8);--tabs-panel-padding-top: var(--lui-space-10);--tab-text: var(--lui-color-text-secondary);--tab-text-active: var(--lui-color-text-primary);--tab-text-disabled: var(--lui-color-text-disabled);--tab-border-active: var(--lui-palette-gray-900);--tab-bg-buttons: var(--lui-color-background-tertiary);--tab-bg-buttons-active: var(--lui-color-background-brand-secondary);--tab-text-buttons: var(--lui-color-text-quaternary);--tab-text-buttons-active: var(--lui-color-text-primary);--tab-radius-buttons: var(--lui-radius-1);--tab-font-buttons: var(--lui-font-size-md);--tab-gap-buttons: var(--lui-space-3);--tab-padding-y-buttons: var(--lui-space-2);--tab-padding-x-buttons: var(--lui-space-3);--tab-list-gap: var(--lui-space-4)}._root_ndfzg_20{width:auto}._root_ndfzg_20._variantDefault_ndfzg_23 ._list_ndfzg_23:before{border-bottom:1px solid var(--lui-color-border-primary);bottom:0;content:"";left:0;position:absolute;right:0;z-index:0}._root_ndfzg_20._variantButtons_ndfzg_32 ._list_ndfzg_23{align-items:center;gap:var(--tab-list-gap);justify-content:flex-start;padding:var(--tabs-padding)}._list_ndfzg_23{display:flex;overflow-x:auto;position:relative}._panel_ndfzg_45{padding-top:var(--tabs-panel-padding-top);position:relative}@media only screen and (max-width:1023px){._root_ndfzg_20._variantButtons_ndfzg_32{justify-content:start}}
|
package/dist/tabs.js
CHANGED
|
@@ -1,37 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as a, jsxs as T } from "react/jsx-runtime";
|
|
3
|
-
import i from "react";
|
|
1
|
+
import { jsx as c, jsxs as z } from "react/jsx-runtime";
|
|
4
2
|
import C from "clsx";
|
|
5
|
-
import "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
panel
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
import m, { createContext as D, useContext as E, useState as L, useId as y } from "react";
|
|
4
|
+
import { g as I } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
5
|
+
import { i as S } from "./isValidReactNode-CmYwTWCE.mjs";
|
|
6
|
+
import './tabs.css';const g = D(null), x = () => {
|
|
7
|
+
const t = E(g);
|
|
8
|
+
if (!t)
|
|
9
|
+
throw new Error("useTabsContext should be used inside Tabs component");
|
|
10
|
+
return t;
|
|
11
|
+
}, p = (t, n, s) => `${t}-${s}-${n}`, U = (t) => {
|
|
12
|
+
const { defaultActiveIndex: n = 0, children: s, onTabChange: a, variant: o } = t, [r, d] = L(n), i = y(), u = (e) => {
|
|
13
|
+
e !== r && (d(e), a && a(e));
|
|
14
|
+
}, l = (e) => p(i, e, "panel"), v = (e) => p(i, e, "tab");
|
|
15
|
+
return /* @__PURE__ */ c(g.Provider, { value: { activeIndex: r, baseId: i, getPanelId: l, getTabId: v, setActiveTab: u, variant: o }, children: s });
|
|
16
|
+
}, h = "Tabs";
|
|
17
|
+
var f = ((t) => (t.PANEL = `${h}.Panel`, t.TAB = `${h}.Tab`, t))(f || {}), A = /* @__PURE__ */ ((t) => (t.BUTTONS = "buttons", t.DEFAULT = "default", t))(A || {});
|
|
18
|
+
const k = "_root_11zii_1", w = "_disabled_11zii_5", O = "_variantDefault_11zii_9", j = "_active_11zii_22", F = "_variantButtons_11zii_26", _ = {
|
|
19
|
+
root: k,
|
|
20
|
+
disabled: w,
|
|
21
|
+
variantDefault: O,
|
|
22
|
+
active: j,
|
|
23
|
+
variantButtons: F
|
|
24
|
+
}, N = (t) => {
|
|
25
|
+
const { disabled: n = !1, label: s, index: a = 0, tabIndex: o = 0 } = t, { activeIndex: r, getPanelId: d, getTabId: i, setActiveTab: u, variant: l } = x(), v = d(a), e = i(a), T = r === a, $ = C(_.root, I("variant", l, _), {
|
|
26
|
+
[_.active]: T,
|
|
27
|
+
[_.disabled]: n
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ c(
|
|
30
|
+
"button",
|
|
31
|
+
{
|
|
32
|
+
"aria-selected": T,
|
|
33
|
+
"aria-controls": v,
|
|
34
|
+
"aria-disabled": n,
|
|
35
|
+
className: $,
|
|
36
|
+
disabled: n,
|
|
37
|
+
id: e,
|
|
38
|
+
onClick: () => {
|
|
39
|
+
n || u(a);
|
|
40
|
+
},
|
|
41
|
+
role: "tab",
|
|
42
|
+
tabIndex: n ? -1 : o,
|
|
43
|
+
children: s
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
N.displayName = `${f.TAB}`;
|
|
48
|
+
const P = (t) => {
|
|
49
|
+
const { panels: n } = t, { activeIndex: s, getPanelId: a } = x(), o = a(s);
|
|
50
|
+
return /* @__PURE__ */ c("div", { id: o, children: n[s] });
|
|
51
|
+
};
|
|
52
|
+
P.displayName = `${f.PANEL}`;
|
|
53
|
+
const M = "_root_ndfzg_20", R = "_variantDefault_ndfzg_23", V = "_list_ndfzg_23", Y = "_variantButtons_ndfzg_32", q = "_panel_ndfzg_45", b = {
|
|
54
|
+
root: M,
|
|
55
|
+
variantDefault: R,
|
|
56
|
+
list: V,
|
|
57
|
+
variantButtons: Y,
|
|
58
|
+
panel: q
|
|
59
|
+
}, G = [f.TAB], B = (t) => {
|
|
60
|
+
const { defaultActiveIndex: n = 0, children: s, onChange: a, variant: o = A.DEFAULT } = t, r = [], d = C(b.root, I("variant", o, b));
|
|
61
|
+
let i = !1;
|
|
62
|
+
const u = (l, v) => {
|
|
63
|
+
if (!S(G, l))
|
|
22
64
|
return null;
|
|
23
|
-
const { children: e = null } =
|
|
24
|
-
return
|
|
65
|
+
const { children: e = null } = l.props;
|
|
66
|
+
return r.push(e), e && (i = !0), m.cloneElement(l, { index: v });
|
|
25
67
|
};
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
68
|
+
return /* @__PURE__ */ c(U, { defaultActiveIndex: n, onTabChange: a, variant: o, children: /* @__PURE__ */ z("div", { className: d, children: [
|
|
69
|
+
/* @__PURE__ */ c("div", { className: b.list, children: m.Children.map(s, u) }),
|
|
70
|
+
i && /* @__PURE__ */ c("div", { className: b.panel, children: /* @__PURE__ */ c(P, { panels: r }) })
|
|
29
71
|
] }) });
|
|
30
72
|
};
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
73
|
+
B.displayName = "Tabs";
|
|
74
|
+
const H = B;
|
|
75
|
+
H.Tab = N;
|
|
34
76
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
77
|
+
A as ETabsVariant,
|
|
78
|
+
H as Tabs
|
|
37
79
|
};
|
package/dist/text.js
CHANGED
|
@@ -1,8 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import y from "react";
|
|
3
|
+
import j from "clsx";
|
|
4
|
+
import { g as D } from "./getDecorationStyle-BCBONKEl.mjs";
|
|
5
|
+
import { g as t } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
6
|
+
import './text.css';const u = "Text", w = "sm", S = "normal", h = "p", M = "_root_1vl2j_1", A = "_truncate_1vl2j_5", L = "_sizeXs_1vl2j_12", z = "_sizeSm_1vl2j_18", N = "_sizeMd_1vl2j_24", b = "_sizeLg_1vl2j_30", p = "_weightNormal_1vl2j_37", B = "_weightMedium_1vl2j_41", R = "_weightSemibold_1vl2j_45", f = "_weightBold_1vl2j_49", I = "_colorPrimary_1vl2j_54", P = "_colorSecondary_1vl2j_58", O = "_colorTertiary_1vl2j_62", U = "_colorDisabled_1vl2j_66", X = "_colorBrand_1vl2j_70", r = {
|
|
7
|
+
root: M,
|
|
8
|
+
truncate: A,
|
|
9
|
+
sizeXs: L,
|
|
10
|
+
sizeSm: z,
|
|
11
|
+
sizeMd: N,
|
|
12
|
+
sizeLg: b,
|
|
13
|
+
weightNormal: p,
|
|
14
|
+
weightMedium: B,
|
|
15
|
+
weightSemibold: R,
|
|
16
|
+
weightBold: f,
|
|
17
|
+
colorPrimary: I,
|
|
18
|
+
colorSecondary: P,
|
|
19
|
+
colorTertiary: O,
|
|
20
|
+
colorDisabled: U,
|
|
21
|
+
colorBrand: X
|
|
22
|
+
}, Y = y.forwardRef((o, e) => {
|
|
23
|
+
const {
|
|
24
|
+
as: l = h,
|
|
25
|
+
children: c,
|
|
26
|
+
color: s,
|
|
27
|
+
size: i = w,
|
|
28
|
+
weight: a = S,
|
|
29
|
+
truncate: n = !1,
|
|
30
|
+
underline: _,
|
|
31
|
+
strikethrough: m
|
|
32
|
+
} = o, d = D({ strikethrough: m, underline: _ }), g = j(
|
|
33
|
+
r.root,
|
|
34
|
+
t("size", i, r),
|
|
35
|
+
t("weight", a, r),
|
|
36
|
+
s && t("color", s, r),
|
|
37
|
+
{
|
|
38
|
+
[r.truncate]: n
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
return /* @__PURE__ */ v(l, { className: g, ref: e, style: d, children: c });
|
|
42
|
+
});
|
|
43
|
+
Y.displayName = u;
|
|
44
|
+
var F = /* @__PURE__ */ ((o) => (o.XS = "xs", o.SM = "sm", o.MD = "md", o.LG = "lg", o))(F || {}), G = /* @__PURE__ */ ((o) => (o.PRIMARY = "primary", o.SECONDARY = "secondary", o.TERTIARY = "tertiary", o.DISABLED = "disabled", o.BRAND = "brand", o))(G || {}), T = /* @__PURE__ */ ((o) => (o.NORMAL = "normal", o.MEDIUM = "medium", o.SEMIBOLD = "semibold", o.BOLD = "bold", o))(T || {});
|
|
3
45
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
46
|
+
G as ETextColor,
|
|
47
|
+
F as ETextSize,
|
|
48
|
+
T as ETextWeight,
|
|
49
|
+
Y as Text
|
|
8
50
|
};
|