@lazar-ui/kit 0.5.2 → 0.6.0
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 +18 -0
- package/dist/Actions-CEIXfLKN.mjs +26 -0
- package/dist/Actions.css +1 -0
- package/dist/ActiveFilters-BJojmc-d.mjs +29 -0
- package/dist/ActiveFilters.css +1 -0
- package/dist/Button-BN85EtaZ.mjs +52 -0
- package/dist/Button.css +1 -1
- package/dist/Cell-BPBvEyeL.mjs +21 -0
- package/dist/Cell.css +1 -0
- package/dist/Checkbox-Chfzm1Z9.mjs +46 -0
- package/dist/Checkbox.css +1 -0
- package/dist/Content-ru2X8iBx.mjs +13 -0
- package/dist/Content.css +1 -0
- package/dist/Group-DyDpeqOP.mjs +16 -0
- package/dist/Group.css +1 -0
- package/dist/Header-Clhgyr0J.mjs +29 -0
- package/dist/Header.css +1 -0
- package/dist/Heading-CL47Fqe7.mjs +30 -0
- package/dist/Heading.css +1 -0
- package/dist/InputBase-BHZWQT9-.mjs +46 -0
- package/dist/Item-JbyvZy05.mjs +66 -0
- package/dist/Item.css +1 -0
- package/dist/Panel-Q06TIYep.mjs +12 -0
- package/dist/Provider-CBfZpO45.mjs +12 -0
- package/dist/Row-C-3TXoDz.mjs +15 -0
- package/dist/Row.css +1 -0
- package/dist/Tab-CR0KvVaA.mjs +39 -0
- package/dist/Tab.css +1 -0
- package/dist/Text-DiOqZt8E.mjs +49 -0
- package/dist/Text.css +1 -0
- package/dist/Title-aOeFD24v.mjs +13 -0
- package/dist/Title.css +1 -0
- package/dist/Toolbar-BJQy4qFI.mjs +11 -0
- package/dist/Toolbar.css +1 -0
- package/dist/Trigger-C_4De6l1.mjs +11 -0
- package/dist/accordion.js +1 -1
- package/dist/actions.d.ts +13 -0
- package/dist/actions.js +4 -0
- package/dist/active-filters.d.ts +35 -0
- package/dist/active-filters.js +4 -0
- package/dist/breadcrumbs.js +1 -1
- package/dist/button.js +1 -1
- package/dist/cell.d.ts +20 -0
- package/dist/cell.js +4 -0
- package/dist/checkbox.d.ts +10 -35
- package/dist/checkbox.js +2 -40
- package/dist/content.d.ts +8 -0
- package/dist/content.js +4 -0
- package/dist/context.d.ts +44 -0
- package/dist/context.js +7 -0
- package/dist/dialog.css +1 -1
- package/dist/dialog.js +37 -44
- package/dist/drawer.css +1 -1
- package/dist/drawer.js +72 -93
- package/dist/empty-state.css +1 -1
- package/dist/empty-state.js +29 -48
- package/dist/enums-BnuDYTua.mjs +4 -0
- package/dist/enums-CiPhZomh.mjs +6 -0
- package/dist/enums-DUZMBQDd.mjs +7 -0
- package/dist/{getComponentSlots-DwAYUFNk.mjs → getComponentSlots-DD4iju8N.mjs} +1 -1
- package/dist/group.d.ts +12 -0
- package/dist/group.js +4 -0
- package/dist/header.d.ts +21 -0
- package/dist/header.js +4 -0
- package/dist/heading.d.ts +55 -0
- package/dist/heading.js +7 -0
- package/dist/input-base.d.ts +29 -0
- package/dist/input-base.js +4 -0
- package/dist/input.js +86 -124
- package/dist/isValidReactNode-D1buElhX.mjs +17 -0
- package/dist/item.d.ts +16 -0
- package/dist/item.js +4 -0
- package/dist/menu.css +1 -1
- package/dist/menu.js +46 -103
- package/dist/pagination.js +48 -60
- package/dist/panel.d.ts +9 -0
- package/dist/panel.js +4 -0
- package/dist/radio.css +1 -1
- package/dist/radio.js +42 -98
- package/dist/row.d.ts +12 -0
- package/dist/row.js +4 -0
- package/dist/tab.d.ts +30 -0
- package/dist/tab.js +4 -0
- package/dist/table.css +1 -1
- package/dist/table.js +25 -74
- package/dist/tabs.css +1 -1
- package/dist/tabs.js +30 -72
- package/dist/text.d.ts +74 -0
- package/dist/text.js +8 -0
- package/dist/title.d.ts +8 -0
- package/dist/title.js +4 -0
- package/dist/toolbar.d.ts +20 -0
- package/dist/toolbar.js +4 -0
- package/dist/trigger.d.ts +8 -0
- package/dist/trigger.js +4 -0
- package/dist/typography.d.ts +90 -40
- package/dist/typography.js +4 -38
- package/dist/useTabsContext-DdF09jQq.mjs +11 -0
- package/dist/utils.d.ts +2 -55
- package/dist/utils.js +14 -15
- package/package.json +1 -1
- package/dist/Button-jq8mFP6t.mjs +0 -52
- package/dist/checkbox.css +0 -1
- package/dist/isValidReactNode-CmYwTWCE.mjs +0 -18
- package/dist/typography.css +0 -1
- /package/dist/{input.css → InputBase.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.0] - 2026-06-10
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
- **Typography**: удалён старый компонент `Typography`. Заменён на `Heading` и `Text`.
|
|
8
|
+
Миграция: `Heading` для заголовков (импорт: `@lazar-ui/kit/heading`),
|
|
9
|
+
`Text` для параграфов/текста/лейблов (импорт: `@lazar-ui/kit/text`).
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- **Heading**: новый компонент семантических заголовков (h1-h6) с размерами xs(14)/sm(16)/md(20)/lg(24)
|
|
14
|
+
- **Text**: новый компонент текста с размерами xs(12)/sm(13)/md(14)/lg(16), пропом `weight` (normal/medium/semibold/bold), underline/strikethrough и truncate
|
|
15
|
+
- **utils**: новая утилита `getDecorationStyle` для конвертации underline/strikethrough пропов в CSS
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- **Button**: добавлены `user-select: none` и `white-space: nowrap` для предотвращения выделения и переноса текста
|
|
20
|
+
|
|
3
21
|
## [0.5.2] - 2026-06-09
|
|
4
22
|
|
|
5
23
|
### Bug Fixes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import m, { cloneElement as l } from "react";
|
|
3
|
+
import { i as p } from "./isValidReactNode-D1buElhX.mjs";
|
|
4
|
+
import "lodash/camelCase";
|
|
5
|
+
import './Actions.css';const o = "EmptyState";
|
|
6
|
+
var e = ((t) => (t.ACTIONS = `${o}.Actions`, t.CONTENT = `${o}.Content`, t))(e || {});
|
|
7
|
+
const A = "_actions_dl9xv_1", y = {
|
|
8
|
+
actions: A
|
|
9
|
+
}, N = ({ children: t }) => {
|
|
10
|
+
const n = m.Children.toArray(t), i = n.map((r, a) => {
|
|
11
|
+
if (!p("Button", r))
|
|
12
|
+
return r;
|
|
13
|
+
const s = r.props.variant;
|
|
14
|
+
return l(r, {
|
|
15
|
+
key: a,
|
|
16
|
+
...s ? {} : { variant: s ?? (a === 0 ? "primary" : "secondary") }
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
return n.length === 0 ? null : /* @__PURE__ */ c("div", { className: y.actions, children: i });
|
|
20
|
+
};
|
|
21
|
+
N.displayName = e.ACTIONS;
|
|
22
|
+
export {
|
|
23
|
+
N as A,
|
|
24
|
+
o as D,
|
|
25
|
+
e as E
|
|
26
|
+
};
|
package/dist/Actions.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._actions_dl9xv_1{align-items:center;display:flex;gap:var(--lui-space-2);margin-top:var(--lui-space-2)}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as s, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as r } from "react";
|
|
3
|
+
import { B as d } from "./Button-BN85EtaZ.mjs";
|
|
4
|
+
import { C as p } from "./Chip-CmsNZTlz.mjs";
|
|
5
|
+
import { u as A } from "./useLocale-CJh-krrY.mjs";
|
|
6
|
+
import './ActiveFilters.css';const u = "Table.ActiveFilters", h = "_root_4qb7d_5", v = {
|
|
7
|
+
root: h
|
|
8
|
+
}, C = (a) => {
|
|
9
|
+
const { filters: l, onClearAll: o, onRemove: t } = a, n = A(), c = r(
|
|
10
|
+
(e) => () => {
|
|
11
|
+
t(e);
|
|
12
|
+
},
|
|
13
|
+
[t]
|
|
14
|
+
), i = r(() => {
|
|
15
|
+
o?.();
|
|
16
|
+
}, [o]);
|
|
17
|
+
return l.length === 0 ? null : /* @__PURE__ */ s("div", { className: v.root, children: [
|
|
18
|
+
l.map((e) => /* @__PURE__ */ s(p, { onDelete: c(e.key), children: [
|
|
19
|
+
e.label,
|
|
20
|
+
": ",
|
|
21
|
+
e.value
|
|
22
|
+
] }, e.key)),
|
|
23
|
+
o && /* @__PURE__ */ m(d, { mode: "text", size: "sm", onClick: i, children: n.Table.ActiveFilters.clearAll })
|
|
24
|
+
] });
|
|
25
|
+
};
|
|
26
|
+
C.displayName = u;
|
|
27
|
+
export {
|
|
28
|
+
C as A
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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)}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import u from "clsx";
|
|
3
|
+
import { I as z } from "./Icon-DUCBChX2.mjs";
|
|
4
|
+
import { g as s } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
5
|
+
import './Button.css';const y = "Button", g = "_root_1kmiv_21", h = "_modeFilled_1kmiv_34", x = "_variantPrimary_1kmiv_34", S = "_pressed_1kmiv_38", b = "_variantSecondary_1kmiv_44", N = "_variantDanger_1kmiv_54", W = "_disabled_1kmiv_64", C = "_modeOutlined_1kmiv_71", D = "_modeText_1kmiv_96", L = "_fullWidth_1kmiv_120", M = "_sizeSm_1kmiv_123", P = "_sizeMd_1kmiv_130", B = "_sizeLg_1kmiv_137", F = "_icon_1kmiv_145", i = {
|
|
6
|
+
root: g,
|
|
7
|
+
modeFilled: h,
|
|
8
|
+
variantPrimary: x,
|
|
9
|
+
pressed: S,
|
|
10
|
+
variantSecondary: b,
|
|
11
|
+
variantDanger: N,
|
|
12
|
+
disabled: W,
|
|
13
|
+
modeOutlined: C,
|
|
14
|
+
modeText: D,
|
|
15
|
+
fullWidth: L,
|
|
16
|
+
sizeSm: M,
|
|
17
|
+
sizeMd: P,
|
|
18
|
+
sizeLg: B,
|
|
19
|
+
icon: F
|
|
20
|
+
}, I = (a) => {
|
|
21
|
+
const {
|
|
22
|
+
children: o,
|
|
23
|
+
disabled: t = !1,
|
|
24
|
+
fullWidth: r = !1,
|
|
25
|
+
icon: n,
|
|
26
|
+
mode: d = "filled",
|
|
27
|
+
onClick: m,
|
|
28
|
+
size: _ = "md",
|
|
29
|
+
variant: l = "primary",
|
|
30
|
+
pressed: c,
|
|
31
|
+
as: v = "button",
|
|
32
|
+
...k
|
|
33
|
+
} = a, p = u(
|
|
34
|
+
i.root,
|
|
35
|
+
s("size", _, i),
|
|
36
|
+
s("variant", l, i),
|
|
37
|
+
s("mode", d, i),
|
|
38
|
+
{
|
|
39
|
+
[i.fullWidth]: r,
|
|
40
|
+
[i.pressed]: c,
|
|
41
|
+
[i.disabled]: t
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ f(v, { className: p, disabled: t, onClick: m, ...k, children: [
|
|
45
|
+
n && /* @__PURE__ */ e("span", { className: i.icon, children: /* @__PURE__ */ e(z, { name: n, size: 16 }) }),
|
|
46
|
+
o && /* @__PURE__ */ e("span", { children: o })
|
|
47
|
+
] });
|
|
48
|
+
};
|
|
49
|
+
I.displayName = y;
|
|
50
|
+
export {
|
|
51
|
+
I as B
|
|
52
|
+
};
|
package/dist/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--button-bg: var(--lui-color-background-brand);--button-bg-hover: var(--lui-color-background-brand-hover);--button-text: var(--lui-color-text-on-brand);--button-bg-secondary: var(--lui-color-background-primary);--button-text-secondary: var(--lui-color-text-secondary);--button-bg-secondary-hover: var(--lui-color-background-secondary);--button-bg-danger: var(--lui-color-background-error);--button-text-danger: var(--lui-color-text-on-brand);--button-bg-danger-hover: var(--lui-color-background-error-hover);--button-bg-disabled: var(--lui-color-background-disabled);--button-text-disabled: var(--lui-color-text-disabled);--button-border-disabled: var(--lui-color-border-disabled);--button-focus-ring: var(--lui-color-border-focus);--button-focus-ring-error: var(--lui-color-border-focus-error);--button-radius: var(--lui-radius-2);--button-border: var(--lui-color-border-primary);--button-shadow: var(--lui-shadow-xs)}.
|
|
1
|
+
:root{--button-bg: var(--lui-color-background-brand);--button-bg-hover: var(--lui-color-background-brand-hover);--button-text: var(--lui-color-text-on-brand);--button-bg-secondary: var(--lui-color-background-primary);--button-text-secondary: var(--lui-color-text-secondary);--button-bg-secondary-hover: var(--lui-color-background-secondary);--button-bg-danger: var(--lui-color-background-error);--button-text-danger: var(--lui-color-text-on-brand);--button-bg-danger-hover: var(--lui-color-background-error-hover);--button-bg-disabled: var(--lui-color-background-disabled);--button-text-disabled: var(--lui-color-text-disabled);--button-border-disabled: var(--lui-color-border-disabled);--button-focus-ring: var(--lui-color-border-focus);--button-focus-ring-error: var(--lui-color-border-focus-error);--button-radius: var(--lui-radius-2);--button-border: var(--lui-color-border-primary);--button-shadow: var(--lui-shadow-xs)}._root_1kmiv_21{align-items:center;border:1px solid var(--button-border);border-radius:var(--button-radius);box-shadow:var(--button-shadow);display:inline-flex;flex-direction:row;justify-content:center;outline-offset:2px;transition:background-color .2s,color .2s;-webkit-user-select:none;user-select:none;white-space:nowrap}._root_1kmiv_21._modeFilled_1kmiv_34._variantPrimary_1kmiv_34{background:var(--button-bg);color:var(--button-text)}._root_1kmiv_21._modeFilled_1kmiv_34._variantPrimary_1kmiv_34._pressed_1kmiv_38,._root_1kmiv_21._modeFilled_1kmiv_34._variantPrimary_1kmiv_34:active,._root_1kmiv_21._modeFilled_1kmiv_34._variantPrimary_1kmiv_34:hover{background:var(--button-bg-hover)}._root_1kmiv_21._modeFilled_1kmiv_34._variantPrimary_1kmiv_34:focus-visible{outline:2px solid var(--button-focus-ring)}._root_1kmiv_21._modeFilled_1kmiv_34._variantSecondary_1kmiv_44{background:var(--button-bg-secondary);color:var(--button-text-secondary)}._root_1kmiv_21._modeFilled_1kmiv_34._variantSecondary_1kmiv_44:active,._root_1kmiv_21._modeFilled_1kmiv_34._variantSecondary_1kmiv_44._pressed_1kmiv_38,._root_1kmiv_21._modeFilled_1kmiv_34._variantSecondary_1kmiv_44:hover{background:var(--button-bg-secondary-hover)}._root_1kmiv_21._modeFilled_1kmiv_34._variantSecondary_1kmiv_44:focus-visible{outline:2px solid var(--button-focus-ring)}._root_1kmiv_21._modeFilled_1kmiv_34._variantDanger_1kmiv_54{background:var(--button-bg-danger);color:var(--button-text-danger)}._root_1kmiv_21._modeFilled_1kmiv_34._variantDanger_1kmiv_54:active,._root_1kmiv_21._modeFilled_1kmiv_34._variantDanger_1kmiv_54._pressed_1kmiv_38,._root_1kmiv_21._modeFilled_1kmiv_34._variantDanger_1kmiv_54:hover{background:var(--button-bg-danger-hover)}._root_1kmiv_21._modeFilled_1kmiv_34._variantDanger_1kmiv_54:focus-visible{outline:2px solid var(--button-focus-ring-error)}._root_1kmiv_21._modeFilled_1kmiv_34:disabled,._root_1kmiv_21._modeFilled_1kmiv_34._disabled_1kmiv_64{background:var(--button-bg-disabled);border-color:var(--button-border-disabled);color:var(--button-text-disabled);cursor:not-allowed;pointer-events:none}._root_1kmiv_21._modeOutlined_1kmiv_71{background:transparent;box-shadow:none}._root_1kmiv_21._modeOutlined_1kmiv_71._variantPrimary_1kmiv_34{border-color:var(--lui-color-background-brand);color:var(--lui-color-background-brand)}._root_1kmiv_21._modeOutlined_1kmiv_71._variantPrimary_1kmiv_34:hover{background:var(--lui-color-background-brand-secondary)}._root_1kmiv_21._modeOutlined_1kmiv_71._variantSecondary_1kmiv_44{color:var(--lui-color-text-secondary)}._root_1kmiv_21._modeOutlined_1kmiv_71._variantSecondary_1kmiv_44:hover{background:var(--lui-color-background-secondary)}._root_1kmiv_21._modeOutlined_1kmiv_71._variantDanger_1kmiv_54{border-color:var(--lui-color-background-error);color:var(--lui-color-background-error)}._root_1kmiv_21._modeOutlined_1kmiv_71._variantDanger_1kmiv_54:hover{background:var(--lui-color-background-error);color:var(--lui-color-text-on-brand)}._root_1kmiv_21._modeText_1kmiv_96{background:transparent;border-color:transparent;box-shadow:none}._root_1kmiv_21._modeText_1kmiv_96._variantPrimary_1kmiv_34{color:var(--lui-color-background-brand)}._root_1kmiv_21._modeText_1kmiv_96._variantPrimary_1kmiv_34:hover{background:var(--lui-color-background-brand-secondary)}._root_1kmiv_21._modeText_1kmiv_96._variantSecondary_1kmiv_44{color:var(--lui-color-text-secondary)}._root_1kmiv_21._modeText_1kmiv_96._variantSecondary_1kmiv_44:hover{background:var(--lui-color-background-secondary)}._root_1kmiv_21._modeText_1kmiv_96._variantDanger_1kmiv_54{color:var(--lui-color-background-error)}._root_1kmiv_21._modeText_1kmiv_96._variantDanger_1kmiv_54:hover{background:var(--lui-color-background-error);color:var(--lui-color-text-on-brand)}._root_1kmiv_21._fullWidth_1kmiv_120{width:100%}._root_1kmiv_21._sizeSm_1kmiv_123{font-size:var(--lui-font-size-sm);font-weight:var(--lui-font-weight-semibold);gap:var(--lui-space-1);line-height:var(--line-height-sm);padding:var(--lui-space-1) var(--lui-space-3)}._root_1kmiv_21._sizeMd_1kmiv_130{font-size:var(--lui-font-size-sm);font-weight:var(--lui-font-weight-semibold);gap:var(--lui-space-1);line-height:var(--line-height-sm);padding:var(--lui-space-2) var(--lui-space-4)}._root_1kmiv_21._sizeLg_1kmiv_137{font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-semibold);gap:var(--lui-space-2);line-height:var(--line-height-md);padding:var(--lui-space-3) var(--lui-space-4)}._icon_1kmiv_145{align-items:center;display:flex;flex:0 0 20px;height:20px;justify-content:center;width:20px}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import m from "clsx";
|
|
3
|
+
import "react";
|
|
4
|
+
import { g } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
5
|
+
import { E as _ } from "./enums-BnuDYTua.mjs";
|
|
6
|
+
import './Cell.css';const c = "_root_lmxwt_8", h = "_header_lmxwt_17", C = "_alignLeft_lmxwt_21", d = "_alignRight_lmxwt_24", f = "_alignCenter_lmxwt_27", t = {
|
|
7
|
+
root: c,
|
|
8
|
+
header: h,
|
|
9
|
+
alignLeft: C,
|
|
10
|
+
alignRight: d,
|
|
11
|
+
alignCenter: f
|
|
12
|
+
}, p = (a) => {
|
|
13
|
+
const { align: e = "left", as: o = "td", children: n, title: l, width: r } = a, i = m(t.root, g("align", e, t), {
|
|
14
|
+
[t.header]: o === "th"
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ s(o, { className: i, title: l, width: r, children: n });
|
|
17
|
+
};
|
|
18
|
+
p.displayName = _.CELL;
|
|
19
|
+
export {
|
|
20
|
+
p as C
|
|
21
|
+
};
|
package/dist/Cell.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
: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}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
import { I as h } from "./Icon-DUCBChX2.mjs";
|
|
4
|
+
import { usePopoverContext as m } from "./popover.js";
|
|
5
|
+
import { E as b } from "./enums-DUZMBQDd.mjs";
|
|
6
|
+
import './Checkbox.css';const k = () => {
|
|
7
|
+
const { state: s } = m();
|
|
8
|
+
return {
|
|
9
|
+
close: () => {
|
|
10
|
+
s.close();
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}, _ = "_root_15rud_1", u = "_disabled_15rud_19", x = "_checkbox_15rud_27", C = "_checked_15rud_38", p = "_label_15rud_44", e = {
|
|
14
|
+
root: _,
|
|
15
|
+
disabled: u,
|
|
16
|
+
checkbox: x,
|
|
17
|
+
checked: C,
|
|
18
|
+
label: p
|
|
19
|
+
}, f = (s) => {
|
|
20
|
+
const { checked: o, children: r, disabled: c = !1, onCheckedChange: a } = s, { close: l } = k(), d = n(
|
|
21
|
+
e.root,
|
|
22
|
+
c && e.disabled
|
|
23
|
+
);
|
|
24
|
+
return /* @__PURE__ */ i(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
"aria-checked": o,
|
|
28
|
+
"aria-disabled": c,
|
|
29
|
+
className: d,
|
|
30
|
+
onClick: () => {
|
|
31
|
+
c || (a && a(!o), l());
|
|
32
|
+
},
|
|
33
|
+
role: "menuitemcheckbox",
|
|
34
|
+
tabIndex: c ? -1 : 0,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ t("span", { className: n(e.checkbox, o && e.checked), children: o && /* @__PURE__ */ t(h, { name: "check", size: 12, strokeWidth: 3 }) }),
|
|
37
|
+
/* @__PURE__ */ t("span", { className: e.label, children: r })
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
f.displayName = b.CHECKBOX;
|
|
43
|
+
export {
|
|
44
|
+
f as C,
|
|
45
|
+
k as u
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_15rud_1{align-items:center;border-radius:var(--dropdown-item-radius);cursor:pointer;display:flex;font-size:var(--dropdown-item-font-size);gap:var(--dropdown-item-gap);outline:none;padding:var(--dropdown-item-padding-y) var(--dropdown-item-padding-x);transition:background-color .1s ease;-webkit-user-select:none;user-select:none}._root_15rud_1:hover{background:var(--lui-color-background-secondary)}._root_15rud_1:focus-visible{background:var(--lui-color-background-secondary)}._root_15rud_1._disabled_15rud_19{color:var(--lui-color-text-disabled);cursor:not-allowed}._root_15rud_1._disabled_15rud_19:hover{background:transparent}._checkbox_15rud_27{align-items:center;border:1.5px solid var(--lui-color-border-primary);border-radius:var(--lui-radius-1);display:inline-flex;flex-shrink:0;height:16px;justify-content:center;transition:all .1s ease;width:16px}._checkbox_15rud_27._checked_15rud_38{background:var(--lui-color-background-brand);border-color:var(--lui-color-background-brand);color:var(--lui-color-text-on-brand)}._label_15rud_44{flex:1;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as r } from "./popover.js";
|
|
3
|
+
import { E as e } from "./enums-DUZMBQDd.mjs";
|
|
4
|
+
import './Content.css';const s = "_root_1h0xj_14", m = {
|
|
5
|
+
root: s
|
|
6
|
+
}, p = (t) => {
|
|
7
|
+
const { children: n } = t;
|
|
8
|
+
return /* @__PURE__ */ o(r.Content, { padding: !1, children: /* @__PURE__ */ o("div", { className: m.root, children: n }) });
|
|
9
|
+
};
|
|
10
|
+
p.displayName = e.CONTENT;
|
|
11
|
+
export {
|
|
12
|
+
p as C
|
|
13
|
+
};
|
package/dist/Content.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--dropdown-min-width: 160px;--dropdown-item-padding-x: var(--lui-space-3);--dropdown-item-padding-y: var(--lui-space-2);--dropdown-item-gap: var(--lui-space-2);--dropdown-item-radius: var(--lui-radius-1);--dropdown-item-font-size: var(--lui-font-size-sm);--dropdown-item-icon-size: 16px;--dropdown-separator-margin: var(--lui-space-1) var(--lui-space-2);--dropdown-group-label-padding: var(--lui-space-2) var(--lui-space-3);--dropdown-group-label-font-size: var(--lui-font-size-xs)}._root_1h0xj_14{min-width:var(--dropdown-min-width);padding:var(--lui-space-1)}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { E as a } from "./enums-DUZMBQDd.mjs";
|
|
3
|
+
import './Group.css';const n = "_root_dtqrm_1", c = "_label_dtqrm_9", o = {
|
|
4
|
+
root: n,
|
|
5
|
+
label: c
|
|
6
|
+
}, m = (r) => {
|
|
7
|
+
const { children: l, label: s } = r;
|
|
8
|
+
return /* @__PURE__ */ t("div", { className: o.root, role: "group", children: [
|
|
9
|
+
/* @__PURE__ */ e("div", { className: o.label, children: s }),
|
|
10
|
+
l
|
|
11
|
+
] });
|
|
12
|
+
};
|
|
13
|
+
m.displayName = a.GROUP;
|
|
14
|
+
export {
|
|
15
|
+
m as G
|
|
16
|
+
};
|
package/dist/Group.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_dtqrm_1{padding-bottom:var(--lui-space-1);padding-top:var(--lui-space-1)}._root_dtqrm_1+._root_dtqrm_1{border-top:1px solid var(--lui-color-border-primary)}._label_dtqrm_9{color:var(--lui-color-text-tertiary);font-size:var(--dropdown-group-label-font-size);font-weight:var(--lui-font-weight-medium);padding:var(--dropdown-group-label-padding);text-transform:uppercase}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { I as m } from "./Icon-DUCBChX2.mjs";
|
|
3
|
+
import { u } from "./useLocale-CJh-krrY.mjs";
|
|
4
|
+
import { createContext as D, useContext as d } from "react";
|
|
5
|
+
import './Header.css';var r = /* @__PURE__ */ ((e) => (e.ACTIONS = "Drawer.Actions", e.CONTENT = "Drawer.Content", e.HEADER = "Drawer.Header", e))(r || {});
|
|
6
|
+
const p = D(null), w = () => {
|
|
7
|
+
const e = d(p);
|
|
8
|
+
if (!e)
|
|
9
|
+
throw new Error("Drawer sub-components must be used within a Drawer component.");
|
|
10
|
+
return e;
|
|
11
|
+
}, x = "_root_1mypq_13", _ = "_title_1mypq_21", C = "_close_1mypq_31", o = {
|
|
12
|
+
root: x,
|
|
13
|
+
title: _,
|
|
14
|
+
close: C
|
|
15
|
+
}, N = (e) => {
|
|
16
|
+
const { children: s } = e, { close: n } = w(), a = u(), c = (l) => {
|
|
17
|
+
l.preventDefault(), n();
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ i("div", { className: o.root, children: [
|
|
20
|
+
/* @__PURE__ */ t("div", { className: o.title, children: s }),
|
|
21
|
+
/* @__PURE__ */ t("button", { "aria-label": a.Drawer.Header.close, className: o.close, onClick: c, type: "button", children: /* @__PURE__ */ t(m, { name: "x", size: 16 }) })
|
|
22
|
+
] });
|
|
23
|
+
};
|
|
24
|
+
N.displayName = r.HEADER;
|
|
25
|
+
export {
|
|
26
|
+
p as D,
|
|
27
|
+
r as E,
|
|
28
|
+
N as H
|
|
29
|
+
};
|
package/dist/Header.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--drawer-header-gap: var(--lui-space-6);--drawer-header-min-height: calc(24px + var(--lui-space-6));--drawer-close-color: var(--lui-palette-gray-400);--drawer-close-padding: var(--lui-space-3);--drawer-title-font-size: var(--lui-font-size-md);--drawer-title-weight: var(--lui-font-weight-semibold);--drawer-title-color: var(--lui-color-text-primary);--drawer-title-font-family: var(--lui-font-family-body);--drawer-title-line-height: var(--line-height-md)}._root_1mypq_13{align-items:center;display:flex;gap:var(--drawer-header-gap);min-height:var(--drawer-header-min-height);position:relative}._title_1mypq_21{color:var(--drawer-title-color);flex:1;font-family:var(--drawer-title-font-family);font-size:var(--drawer-title-font-size);font-style:normal;font-weight:var(--drawer-title-weight);line-height:var(--drawer-title-line-height)}._close_1mypq_31{color:var(--drawer-close-color);padding:var(--drawer-close-padding);position:absolute;right:0;top:50%;transform:translateY(-50%)}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import m from "clsx";
|
|
3
|
+
import { g as r } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
4
|
+
import './Heading.css';const d = "Heading", z = "_root_aa627_1", y = "_truncate_aa627_5", g = "_sizeXs_aa627_11", S = "_sizeSm_aa627_17", p = "_sizeMd_aa627_23", u = "_sizeLg_aa627_30", f = "_colorPrimary_aa627_37", N = "_colorSecondary_aa627_41", D = "_colorTertiary_aa627_45", L = "_colorDisabled_aa627_49", M = "_colorBrand_aa627_53", o = {
|
|
5
|
+
root: z,
|
|
6
|
+
truncate: y,
|
|
7
|
+
sizeXs: g,
|
|
8
|
+
sizeSm: S,
|
|
9
|
+
sizeMd: p,
|
|
10
|
+
sizeLg: u,
|
|
11
|
+
colorPrimary: f,
|
|
12
|
+
colorSecondary: N,
|
|
13
|
+
colorTertiary: D,
|
|
14
|
+
colorDisabled: L,
|
|
15
|
+
colorBrand: M
|
|
16
|
+
}, P = (s) => {
|
|
17
|
+
const { as: c = "h2", children: t, color: a, ref: e, size: n = "sm", truncate: _ = !1 } = s, i = m(
|
|
18
|
+
o.root,
|
|
19
|
+
r("size", n, o),
|
|
20
|
+
a && r("color", a, o),
|
|
21
|
+
{
|
|
22
|
+
[o.truncate]: _
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
return /* @__PURE__ */ l(c, { className: i, ref: e, children: t });
|
|
26
|
+
};
|
|
27
|
+
P.displayName = d;
|
|
28
|
+
export {
|
|
29
|
+
P as H
|
|
30
|
+
};
|
package/dist/Heading.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_aa627_1{font-family:var(--lui-font-family-body);margin:0}._root_aa627_1._truncate_aa627_5{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._sizeXs_aa627_11{font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-semibold);line-height:var(--line-height-sm)}._sizeSm_aa627_17{font-size:var(--lui-font-size-lg);font-weight:var(--lui-font-weight-semibold);line-height:var(--line-height-lg)}._sizeMd_aa627_23{font-size:var(--lui-font-size-xl);font-weight:var(--lui-font-weight-semibold);line-height:var(--line-height-xl);letter-spacing:-.01em}._sizeLg_aa627_30{font-size:var(--lui-font-size-2xl);font-weight:var(--lui-font-weight-bold);line-height:var(--line-height-2xl);letter-spacing:-.02em}._colorPrimary_aa627_37{color:var(--lui-color-text-primary)}._colorSecondary_aa627_41{color:var(--lui-color-text-secondary)}._colorTertiary_aa627_45{color:var(--lui-color-text-tertiary)}._colorDisabled_aa627_49{color:var(--lui-color-text-disabled)}._colorBrand_aa627_53{color:var(--lui-color-text-link)}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as f, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import g from "clsx";
|
|
3
|
+
import "react";
|
|
4
|
+
import { g as P } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
5
|
+
import './InputBase.css';const u = {
|
|
6
|
+
INPUT: "Input",
|
|
7
|
+
INPUT_DATE: "InputDate",
|
|
8
|
+
INPUT_EMAIL: "InputEmail",
|
|
9
|
+
INPUT_NUMBER: "InputNumber",
|
|
10
|
+
INPUT_PASSWORD: "InputPassword",
|
|
11
|
+
INPUT_PHONE: "InputPhone"
|
|
12
|
+
}, b = "_root_8a405_17", z = "_invalid_8a405_36", h = "_disabled_8a405_42", T = "_sizeSm_8a405_56", U = "_sizeMd_8a405_60", v = "_sizeLg_8a405_64", E = "_control_8a405_68", M = "_before_8a405_100", S = "_after_8a405_101", A = "_togglePassword_8a405_109", s = {
|
|
13
|
+
root: b,
|
|
14
|
+
invalid: z,
|
|
15
|
+
disabled: h,
|
|
16
|
+
sizeSm: T,
|
|
17
|
+
sizeMd: U,
|
|
18
|
+
sizeLg: v,
|
|
19
|
+
control: E,
|
|
20
|
+
before: M,
|
|
21
|
+
after: S,
|
|
22
|
+
togglePassword: A
|
|
23
|
+
}, C = (n) => {
|
|
24
|
+
const { ref: r, invalid: i = !1, size: _ = "md", before: e, after: o, className: l, onChange: c, onBlur: d, onFocus: m, ...t } = n, N = g(
|
|
25
|
+
s.root,
|
|
26
|
+
P("size", _, s),
|
|
27
|
+
{
|
|
28
|
+
[s.disabled]: t.disabled === !0,
|
|
29
|
+
[s.invalid]: i
|
|
30
|
+
},
|
|
31
|
+
l
|
|
32
|
+
), I = (p) => {
|
|
33
|
+
c?.(p.target.value);
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ f("div", { className: N, children: [
|
|
36
|
+
e && /* @__PURE__ */ a("span", { className: s.before, children: e }),
|
|
37
|
+
/* @__PURE__ */ a("input", { ref: r, className: s.control, onChange: I, onBlur: d, onFocus: m, ...t }),
|
|
38
|
+
o && /* @__PURE__ */ a("span", { className: s.after, children: o })
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
C.displayName = u.INPUT;
|
|
42
|
+
export {
|
|
43
|
+
u as D,
|
|
44
|
+
C as I,
|
|
45
|
+
s
|
|
46
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as x, useContext as g, useRef as N, useCallback as R } from "react";
|
|
3
|
+
import I from "clsx";
|
|
4
|
+
import { g as y } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
5
|
+
import './Item.css';const D = x(null), L = () => {
|
|
6
|
+
const n = g(D);
|
|
7
|
+
if (!n)
|
|
8
|
+
throw new Error("useRadioContext should be used inside Radio component");
|
|
9
|
+
return n;
|
|
10
|
+
}, M = "Radio", S = "_item_1mf7l_3", k = "_disabled_1mf7l_12", j = "_invalid_1mf7l_17", w = "_radio_1mf7l_17", A = "_input_1mf7l_20", E = "_content_1mf7l_63", P = "_label_1mf7l_70", V = "_description_1mf7l_75", Y = "_sizeSm_1mf7l_113", $ = "_sizeMd_1mf7l_130", q = "_sizeLg_1mf7l_147", e = {
|
|
11
|
+
item: S,
|
|
12
|
+
disabled: k,
|
|
13
|
+
invalid: j,
|
|
14
|
+
radio: w,
|
|
15
|
+
input: A,
|
|
16
|
+
content: E,
|
|
17
|
+
label: P,
|
|
18
|
+
description: V,
|
|
19
|
+
sizeSm: Y,
|
|
20
|
+
sizeMd: $,
|
|
21
|
+
sizeLg: q
|
|
22
|
+
}, B = (n) => {
|
|
23
|
+
const { ref: i, children: o, value: c, description: l, disabled: d, onChange: u, ...f } = n, s = L(), p = N(null), b = s.size ?? "md", v = s.value !== void 0 ? c === s.value : void 0, r = d !== void 0 ? d : s.disabled, m = s.invalid === !0, h = R(
|
|
24
|
+
(t) => {
|
|
25
|
+
p.current = t, typeof i == "function" ? i(t) : i && (i.current = t);
|
|
26
|
+
},
|
|
27
|
+
[i]
|
|
28
|
+
), C = (t) => {
|
|
29
|
+
s.onChange?.(t.target.value), u?.(t);
|
|
30
|
+
}, z = I(
|
|
31
|
+
e.item,
|
|
32
|
+
y("size", b, e),
|
|
33
|
+
{
|
|
34
|
+
[e.disabled]: r,
|
|
35
|
+
[e.invalid]: m
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
return /* @__PURE__ */ _("label", { className: z, children: [
|
|
39
|
+
/* @__PURE__ */ a(
|
|
40
|
+
"input",
|
|
41
|
+
{
|
|
42
|
+
ref: h,
|
|
43
|
+
className: e.input,
|
|
44
|
+
type: "radio",
|
|
45
|
+
checked: v,
|
|
46
|
+
disabled: r,
|
|
47
|
+
"aria-invalid": m || void 0,
|
|
48
|
+
name: s.name,
|
|
49
|
+
value: c,
|
|
50
|
+
onChange: C,
|
|
51
|
+
...f
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ a("span", { className: e.radio, "aria-hidden": "true" }),
|
|
55
|
+
(o || l) && /* @__PURE__ */ _("span", { className: e.content, children: [
|
|
56
|
+
o && /* @__PURE__ */ a("span", { className: e.label, children: o }),
|
|
57
|
+
l && /* @__PURE__ */ a("span", { className: e.description, children: l })
|
|
58
|
+
] })
|
|
59
|
+
] });
|
|
60
|
+
};
|
|
61
|
+
B.displayName = `${M}.Item`;
|
|
62
|
+
export {
|
|
63
|
+
D as C,
|
|
64
|
+
M as D,
|
|
65
|
+
B as I
|
|
66
|
+
};
|
package/dist/Item.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
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)}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { u as a } from "./useTabsContext-DdF09jQq.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import { E as i } from "./enums-CiPhZomh.mjs";
|
|
5
|
+
const m = (t) => {
|
|
6
|
+
const { panels: e } = t, { activeIndex: o, getPanelId: n } = a(), s = n(o);
|
|
7
|
+
return /* @__PURE__ */ r("div", { id: s, children: e[o] });
|
|
8
|
+
};
|
|
9
|
+
m.displayName = `${i.PANEL}`;
|
|
10
|
+
export {
|
|
11
|
+
m as P
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useId as b } from "react";
|
|
3
|
+
import { C as f } from "./useTabsContext-DdF09jQq.mjs";
|
|
4
|
+
const c = (e, n, a) => `${e}-${a}-${n}`, x = (e) => {
|
|
5
|
+
const { defaultActiveIndex: n = 0, children: a, onTabChange: r, variant: d } = e, [s, i] = u(n), o = b(), v = (t) => {
|
|
6
|
+
t !== s && (i(t), r && r(t));
|
|
7
|
+
}, I = (t) => c(o, t, "panel"), l = (t) => c(o, t, "tab");
|
|
8
|
+
return /* @__PURE__ */ m(f.Provider, { value: { activeIndex: s, baseId: o, getPanelId: I, getTabId: l, setActiveTab: v, variant: d }, children: a });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
x as P
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { i as m } from "./isValidReactNode-D1buElhX.mjs";
|
|
4
|
+
import "lodash/camelCase";
|
|
5
|
+
import { E as r } from "./enums-BnuDYTua.mjs";
|
|
6
|
+
import './Row.css';const a = "_root_t4731_5", c = {
|
|
7
|
+
root: a
|
|
8
|
+
}, l = (t) => {
|
|
9
|
+
const { children: e } = t, n = (o) => m(r.CELL, o) ? o : null;
|
|
10
|
+
return /* @__PURE__ */ s("tr", { className: c.root, children: i.Children.map(e, n) });
|
|
11
|
+
};
|
|
12
|
+
l.displayName = r.ROW;
|
|
13
|
+
export {
|
|
14
|
+
l as R
|
|
15
|
+
};
|
package/dist/Row.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
: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)}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import f from "clsx";
|
|
3
|
+
import { u as p } from "./useTabsContext-DdF09jQq.mjs";
|
|
4
|
+
import "react";
|
|
5
|
+
import { g as x } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
6
|
+
import { E as C } from "./enums-CiPhZomh.mjs";
|
|
7
|
+
import './Tab.css';const I = "_root_11zii_1", T = "_disabled_11zii_5", z = "_variantDefault_11zii_9", g = "_active_11zii_22", B = "_variantButtons_11zii_26", i = {
|
|
8
|
+
root: I,
|
|
9
|
+
disabled: T,
|
|
10
|
+
variantDefault: z,
|
|
11
|
+
active: g,
|
|
12
|
+
variantButtons: B
|
|
13
|
+
}, N = (e) => {
|
|
14
|
+
const { disabled: t = !1, label: s, index: a = 0, tabIndex: n = 0 } = e, { activeIndex: r, getPanelId: c, getTabId: l, setActiveTab: d, variant: b } = p(), m = c(a), v = l(a), o = r === a, _ = f(i.root, x("variant", b, i), {
|
|
15
|
+
[i.active]: o,
|
|
16
|
+
[i.disabled]: t
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ u(
|
|
19
|
+
"button",
|
|
20
|
+
{
|
|
21
|
+
"aria-selected": o,
|
|
22
|
+
"aria-controls": m,
|
|
23
|
+
"aria-disabled": t,
|
|
24
|
+
className: _,
|
|
25
|
+
disabled: t,
|
|
26
|
+
id: v,
|
|
27
|
+
onClick: () => {
|
|
28
|
+
t || d(a);
|
|
29
|
+
},
|
|
30
|
+
role: "tab",
|
|
31
|
+
tabIndex: t ? -1 : n,
|
|
32
|
+
children: s
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
N.displayName = `${C.TAB}`;
|
|
37
|
+
export {
|
|
38
|
+
N as T
|
|
39
|
+
};
|
package/dist/Tab.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
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}}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import j from "clsx";
|
|
4
|
+
import { g as r } from "./getVariantClassName-DoCNtwBw.mjs";
|
|
5
|
+
import './Text.css';function v(t) {
|
|
6
|
+
const o = [];
|
|
7
|
+
return t.underline && o.push("underline"), t.underline === "dotted" && o.push("dotted"), t.strikethrough && o.push("line-through"), o.length > 0 ? { textDecoration: o.join(" ") } : void 0;
|
|
8
|
+
}
|
|
9
|
+
const w = "Text", y = "sm", z = "normal", S = "p", f = "_root_1vl2j_1", T = "_truncate_1vl2j_5", D = "_sizeXs_1vl2j_12", N = "_sizeSm_1vl2j_18", p = "_sizeMd_1vl2j_24", L = "_sizeLg_1vl2j_30", M = "_weightNormal_1vl2j_37", b = "_weightMedium_1vl2j_41", x = "_weightSemibold_1vl2j_45", A = "_weightBold_1vl2j_49", B = "_colorPrimary_1vl2j_54", E = "_colorSecondary_1vl2j_58", P = "_colorTertiary_1vl2j_62", C = "_colorDisabled_1vl2j_66", F = "_colorBrand_1vl2j_70", e = {
|
|
10
|
+
root: f,
|
|
11
|
+
truncate: T,
|
|
12
|
+
sizeXs: D,
|
|
13
|
+
sizeSm: N,
|
|
14
|
+
sizeMd: p,
|
|
15
|
+
sizeLg: L,
|
|
16
|
+
weightNormal: M,
|
|
17
|
+
weightMedium: b,
|
|
18
|
+
weightSemibold: x,
|
|
19
|
+
weightBold: A,
|
|
20
|
+
colorPrimary: B,
|
|
21
|
+
colorSecondary: E,
|
|
22
|
+
colorTertiary: P,
|
|
23
|
+
colorDisabled: C,
|
|
24
|
+
colorBrand: F
|
|
25
|
+
}, I = u.forwardRef((t, o) => {
|
|
26
|
+
const {
|
|
27
|
+
as: s = S,
|
|
28
|
+
children: l,
|
|
29
|
+
color: i,
|
|
30
|
+
size: n = y,
|
|
31
|
+
weight: c = z,
|
|
32
|
+
truncate: _ = !1,
|
|
33
|
+
underline: a,
|
|
34
|
+
strikethrough: d
|
|
35
|
+
} = t, m = v({ strikethrough: d, underline: a }), h = j(
|
|
36
|
+
e.root,
|
|
37
|
+
r("size", n, e),
|
|
38
|
+
r("weight", c, e),
|
|
39
|
+
i && r("color", i, e),
|
|
40
|
+
{
|
|
41
|
+
[e.truncate]: _
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ g(s, { className: h, ref: o, style: m, children: l });
|
|
45
|
+
});
|
|
46
|
+
I.displayName = w;
|
|
47
|
+
export {
|
|
48
|
+
I as T
|
|
49
|
+
};
|
package/dist/Text.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_1vl2j_1{font-family:var(--lui-font-family-body);margin:0}._root_1vl2j_1._truncate_1vl2j_5{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._sizeXs_1vl2j_12{font-size:var(--lui-font-size-xs);line-height:var(--line-height-xs);letter-spacing:.02em}._sizeSm_1vl2j_18{font-size:var(--lui-font-size-sm);line-height:var(--line-height-sm);letter-spacing:normal}._sizeMd_1vl2j_24{font-size:var(--lui-font-size-md);line-height:var(--line-height-md);letter-spacing:normal}._sizeLg_1vl2j_30{font-size:var(--lui-font-size-lg);line-height:var(--line-height-lg);letter-spacing:normal}._weightNormal_1vl2j_37{font-weight:var(--lui-font-weight-normal)}._weightMedium_1vl2j_41{font-weight:var(--lui-font-weight-medium)}._weightSemibold_1vl2j_45{font-weight:var(--lui-font-weight-semibold)}._weightBold_1vl2j_49{font-weight:var(--lui-font-weight-bold)}._colorPrimary_1vl2j_54{color:var(--lui-color-text-primary)}._colorSecondary_1vl2j_58{color:var(--lui-color-text-secondary)}._colorTertiary_1vl2j_62{color:var(--lui-color-text-tertiary)}._colorDisabled_1vl2j_66{color:var(--lui-color-text-disabled)}._colorBrand_1vl2j_70{color:var(--lui-color-text-link)}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import './Title.css';var t = /* @__PURE__ */ ((o) => (o.ACTIONS = "Dialog.Actions", o.CONTENT = "Dialog.Content", o.TITLE = "Dialog.Title", o))(t || {});
|
|
3
|
+
const a = "_root_1ae0y_1", i = {
|
|
4
|
+
root: a
|
|
5
|
+
}, T = (o) => {
|
|
6
|
+
const { children: r } = o;
|
|
7
|
+
return /* @__PURE__ */ s("div", { className: i.root, children: r });
|
|
8
|
+
};
|
|
9
|
+
T.displayName = t.TITLE;
|
|
10
|
+
export {
|
|
11
|
+
t as E,
|
|
12
|
+
T
|
|
13
|
+
};
|