@lazar-ui/kit 0.2.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/LICENSE +21 -0
  3. package/README.md +64 -23
  4. package/dist/Icon-flib0kme.mjs +684 -0
  5. package/dist/Icon.css +1 -0
  6. package/dist/accordion.css +1 -1
  7. package/dist/accordion.d.ts +59 -9
  8. package/dist/accordion.js +59 -41
  9. package/dist/alert.css +1 -1
  10. package/dist/alert.js +12 -12
  11. package/dist/avatar.css +1 -1
  12. package/dist/avatar.d.ts +2 -2
  13. package/dist/avatar.js +18 -18
  14. package/dist/badge.css +1 -1
  15. package/dist/badge.d.ts +3 -3
  16. package/dist/badge.js +8 -8
  17. package/dist/breadcrumbs.css +1 -1
  18. package/dist/breadcrumbs.js +35 -35
  19. package/dist/button.css +1 -1
  20. package/dist/button.d.ts +2 -0
  21. package/dist/button.js +41 -35
  22. package/dist/card.css +1 -1
  23. package/dist/card.js +15 -15
  24. package/dist/checkbox.css +1 -1
  25. package/dist/checkbox.js +25 -25
  26. package/dist/css/palettes/indigo.css +75 -75
  27. package/dist/css/palettes/monochrome.css +75 -75
  28. package/dist/css/semantic.css +67 -67
  29. package/dist/dialog.css +1 -1
  30. package/dist/dialog.js +49 -48
  31. package/dist/drawer.css +1 -1
  32. package/dist/drawer.js +65 -64
  33. package/dist/empty-state.css +1 -1
  34. package/dist/empty-state.d.ts +1 -1
  35. package/dist/empty-state.js +27 -26
  36. package/dist/error-boundary.css +1 -1
  37. package/dist/error-boundary.js +9 -9
  38. package/dist/flex.js +6 -6
  39. package/dist/form-field.css +1 -1
  40. package/dist/form-field.js +10 -10
  41. package/dist/icon.d.ts +30 -0
  42. package/dist/icon.js +4 -0
  43. package/dist/input.css +1 -1
  44. package/dist/input.js +76 -103
  45. package/dist/{config-provider.d.ts → lazar-ui-provider.d.ts} +33 -33
  46. package/dist/lazar-ui-provider.js +14 -0
  47. package/dist/menu.css +1 -1
  48. package/dist/menu.d.ts +3 -3
  49. package/dist/menu.js +73 -91
  50. package/dist/pagination.css +1 -1
  51. package/dist/pagination.js +49 -48
  52. package/dist/popover.css +1 -1
  53. package/dist/popover.js +18 -18
  54. package/dist/select.css +1 -1
  55. package/dist/select.js +81 -119
  56. package/dist/separator.css +1 -1
  57. package/dist/separator.d.ts +2 -2
  58. package/dist/separator.js +9 -9
  59. package/dist/skeleton.css +1 -1
  60. package/dist/skeleton.js +13 -13
  61. package/dist/spinner.css +1 -1
  62. package/dist/spinner.d.ts +2 -2
  63. package/dist/spinner.js +7 -7
  64. package/dist/switch.css +1 -1
  65. package/dist/switch.js +15 -15
  66. package/dist/table.css +1 -1
  67. package/dist/table.js +23 -23
  68. package/dist/tabs.css +1 -1
  69. package/dist/tabs.js +48 -48
  70. package/dist/textarea.css +1 -1
  71. package/dist/textarea.js +17 -17
  72. package/dist/tooltip.css +1 -1
  73. package/dist/tooltip.js +10 -10
  74. package/dist/typography.css +1 -0
  75. package/dist/typography.d.ts +76 -0
  76. package/dist/typography.js +40 -0
  77. package/dist/{useLocale-D2Z0JH0l.mjs → useLocale-DdHNhmvT.mjs} +24 -24
  78. package/package.json +16 -3
  79. package/dist/config-provider.js +0 -14
@@ -3,18 +3,46 @@ import { default as default_2 } from 'react';
3
3
  export declare const Accordion: TAccordionCompoundComponent;
4
4
 
5
5
  /**
6
- * Accordion container. Renders a vertically stacked list of expandable sections.
6
+ * Accordion container. Supports multi-select and single-select modes.
7
7
  *
8
8
  * Uses compound component pattern via `<Accordion.Item>`.
9
+ * In multi-select mode (default), items without a `value` prop manage their own
10
+ * open/close state independently. In single-select mode, items with a `value` prop
11
+ * are controlled by the Accordion via `defaultValue` (uncontrolled) or
12
+ * `value` + `onValueChange` (controlled).
9
13
  *
10
14
  * @example
15
+ * // Multi-select (default, items without `value`)
11
16
  * ```tsx
12
17
  * <Accordion>
13
18
  * <Accordion.Item title="Section 1">
14
19
  * Content for section 1
15
20
  * </Accordion.Item>
16
21
  * <Accordion.Item title="Section 2" open>
17
- * Content for section 2
22
+ * Content for section 2 (starts open)
23
+ * </Accordion.Item>
24
+ * </Accordion>
25
+ * ```
26
+ *
27
+ * @example
28
+ * // Single-select (uncontrolled with `defaultValue`)
29
+ * ```tsx
30
+ * <Accordion defaultValue="tab2">
31
+ * <Accordion.Item value="tab1" title="Section 1">
32
+ * Content
33
+ * </Accordion.Item>
34
+ * <Accordion.Item value="tab2" title="Section 2">
35
+ * Content
36
+ * </Accordion.Item>
37
+ * </Accordion>
38
+ * ```
39
+ *
40
+ * @example
41
+ * // Single-select (controlled with `value` + `onValueChange`)
42
+ * ```tsx
43
+ * <Accordion value={value} onValueChange={setValue}>
44
+ * <Accordion.Item value="tab1" title="Section 1">
45
+ * Content
18
46
  * </Accordion.Item>
19
47
  * </Accordion>
20
48
  * ```
@@ -22,25 +50,47 @@ export declare const Accordion: TAccordionCompoundComponent;
22
50
  declare const Accordion_2: default_2.FC<IAccordionProps>;
23
51
 
24
52
  export declare interface IAccordionProps extends default_2.PropsWithChildren {
53
+ /** Controlled open item value. */
54
+ value?: string | null;
55
+ /** Callback when open item changes. */
56
+ onValueChange?: (value: string | null) => void;
57
+ /** Default open item value for uncontrolled mode. */
58
+ defaultValue?: string | null;
25
59
  }
26
60
 
27
61
  declare interface IProps extends default_2.PropsWithChildren {
28
- /** Whether the item is open. */
62
+ /** Unique value for accordion control mode. */
63
+ value?: string;
64
+ /** Icon name displayed before the title. */
65
+ icon?: string;
66
+ /** Controlled open state. */
29
67
  open?: boolean;
30
- /** Handler for */
68
+ /** Callback when open state changes. */
31
69
  onOpenChange?: (isOpen: boolean) => void;
32
- /** Title. */
70
+ /** Item title text. */
33
71
  title: string;
34
72
  }
35
73
 
36
74
  /**
37
- * Accordion item sub-component. Manages its own open/closed state.
38
- * Supports controlled mode via `open` and `onOpenChange`.
75
+ * Accordion item. Must be a direct child of `<Accordion>`.
76
+ *
77
+ * Can be used standalone without a `value` prop (multi-select, each item manages
78
+ * its own open state independently) or with a `value` prop for single-select mode
79
+ * controlled by the parent Accordion via `defaultValue` or `value` + `onValueChange`.
80
+ *
81
+ * @example
82
+ * // Standalone without `value` (multi-select)
83
+ * ```tsx
84
+ * <Accordion.Item title="Settings" icon="settings">
85
+ * Settings content
86
+ * </Accordion.Item>
87
+ * ```
39
88
  *
40
89
  * @example
90
+ * // With `value` for single-select
41
91
  * ```tsx
42
- * <Accordion.Item title="Controlled" open onOpenChange={(isOpen) => console.log(isOpen)}>
43
- * Content
92
+ * <Accordion.Item value="settings" title="Settings">
93
+ * Settings content
44
94
  * </Accordion.Item>
45
95
  * ```
46
96
  */
package/dist/accordion.js CHANGED
@@ -1,48 +1,66 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import u, { useState as v } from "react";
3
- import { i as x } from "./isValidReactNode-CmYwTWCE.mjs";
4
- import { c as d } from "./clsx-OuTLNxxd.mjs";
5
- import './accordion.css';const a = "Accordion";
6
- var m = /* @__PURE__ */ ((n) => (n.ITEM = "Accordion.Item", n))(m || {});
7
- const A = "_root_5n2yo_5", I = {
8
- root: A
9
- }, f = [m.ITEM], _ = (n) => {
10
- const { children: c } = n, t = (s) => x(f, s) ? s : null;
11
- return /* @__PURE__ */ e("div", { className: I.root, children: u.Children.map(c, t) });
1
+ import { jsx as a, jsxs as h } from "react/jsx-runtime";
2
+ import T, { createContext as O, useContext as E, useState as g, useCallback as v } from "react";
3
+ import { i as y } from "./isValidReactNode-CmYwTWCE.mjs";
4
+ import { c as $ } from "./clsx-OuTLNxxd.mjs";
5
+ import { I as M } from "./Icon-flib0kme.mjs";
6
+ import './accordion.css';const f = O(null), P = () => E(f), N = "Accordion";
7
+ var I = /* @__PURE__ */ ((r) => (r.ITEM = "Accordion.Item", r))(I || {});
8
+ const S = "_root_grshw_5", b = {
9
+ root: S
10
+ }, k = [I.ITEM], x = (r) => {
11
+ const { children: m, defaultValue: u = null, onValueChange: s, value: o } = r, d = o !== void 0, [t, l] = g(u);
12
+ let e;
13
+ d ? e = o ?? null : e = t;
14
+ const p = v(
15
+ (n) => {
16
+ let i;
17
+ e === n ? i = null : i = n, d || l(i), s?.(i);
18
+ },
19
+ [e, d, s]
20
+ ), _ = (n) => y(k, n) ? n : null;
21
+ return /* @__PURE__ */ a(f.Provider, { value: { onItemToggle: p, openValue: e }, children: /* @__PURE__ */ a("div", { className: b.root, children: T.Children.map(m, _) }) });
12
22
  };
13
- _.displayName = a;
14
- const T = "_root_m3edb_2", E = "_open_m3edb_14", g = "_description_m3edb_17", w = "_content_m3edb_23", y = "_icons_m3edb_27", O = "_icon_m3edb_27", $ = "_show_m3edb_41", k = "_collapse_m3edb_44", M = "_expand_m3edb_44", S = "_title_m3edb_59", o = {
15
- root: T,
16
- open: E,
17
- description: g,
18
- content: w,
19
- icons: y,
20
- icon: O,
21
- show: $,
22
- collapse: k,
23
- expand: M,
24
- title: S
25
- }, p = (n) => {
26
- const { children: c, onOpenChange: t, open: s = !1, title: h } = n, [i, N] = v(s), C = d(o.root, { [o.open]: i });
27
- return /* @__PURE__ */ r("div", { className: C, onClick: () => {
28
- N((b) => {
29
- const l = !b;
30
- return t && t(l), l;
23
+ x.displayName = N;
24
+ const j = "_root_z83hn_7", B = "_trigger_z83hn_11", L = "_open_z83hn_27", U = "_title_z83hn_32", w = "_icon_z83hn_41", D = "_chevron_z83hn_46", R = "_content_z83hn_66", c = {
25
+ root: j,
26
+ trigger: B,
27
+ open: L,
28
+ title: U,
29
+ icon: w,
30
+ chevron: D,
31
+ content: R
32
+ }, A = (r) => {
33
+ const { children: m, icon: u, onOpenChange: s, open: o, title: d, value: t } = r, l = P(), e = l && t !== void 0, [p, _] = g(!1);
34
+ let n;
35
+ e ? n = l.openValue === t : o !== void 0 ? n = o : n = p;
36
+ const i = v(() => {
37
+ if (e && t !== void 0) {
38
+ l.onItemToggle(t);
39
+ return;
40
+ }
41
+ if (o !== void 0) {
42
+ s?.(!o);
43
+ return;
44
+ }
45
+ _((z) => {
46
+ const C = !z;
47
+ return s?.(C), C;
31
48
  });
32
- }, children: [
33
- /* @__PURE__ */ r("div", { className: o.icons, children: [
34
- /* @__PURE__ */ e("div", { className: d(o.icon, o.collapse, { [o.show]: i }) }),
35
- /* @__PURE__ */ e("div", { className: d(o.icon, o.expand, { [o.show]: !i }) })
49
+ }, [e, l, t, o, s]), V = $(c.root, { [c.open]: n });
50
+ return /* @__PURE__ */ h("div", { className: V, children: [
51
+ /* @__PURE__ */ h("button", { className: c.trigger, onClick: i, type: "button", children: [
52
+ /* @__PURE__ */ h("span", { className: c.title, children: [
53
+ u && /* @__PURE__ */ a("span", { className: c.icon, children: /* @__PURE__ */ a(M, { name: u, size: 16 }) }),
54
+ d
55
+ ] }),
56
+ /* @__PURE__ */ a("span", { className: c.chevron })
36
57
  ] }),
37
- /* @__PURE__ */ r("div", { className: o.content, children: [
38
- /* @__PURE__ */ e("div", { className: o.title, children: h }),
39
- /* @__PURE__ */ e("div", { className: o.description, children: c })
40
- ] })
58
+ /* @__PURE__ */ a("div", { className: c.content, children: m })
41
59
  ] });
42
60
  };
43
- p.displayName = `${a}.Item`;
44
- const P = _;
45
- P.Item = p;
61
+ A.displayName = `${N}.Item`;
62
+ const Y = x;
63
+ Y.Item = A;
46
64
  export {
47
- P as Accordion
65
+ Y as Accordion
48
66
  };
package/dist/alert.css CHANGED
@@ -1 +1 @@
1
- :root{--alert-font-size: var(--font-size-sm);--alert-line-height: var(--line-height-sm);--alert-padding-x: var(--space-4);--alert-padding-y: var(--space-3);--alert-radius: var(--radius-2)}._root_1l2y4_9{border-radius:var(--alert-radius);border-style:solid;border-width:1px;font-size:var(--alert-font-size);line-height:var(--alert-line-height);padding:var(--alert-padding-y) var(--alert-padding-x)}._variantDanger_1l2y4_18{--alert-color: var(--palette-red-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}._variantInfo_1l2y4_25{--alert-color: var(--palette-blue-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}._variantSuccess_1l2y4_32{--alert-color: var(--palette-green-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}._variantWarning_1l2y4_39{--alert-color: var(--palette-orange-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}
1
+ :root{--alert-font-size: var(--lui-font-size-sm);--alert-line-height: var(--line-height-sm);--alert-padding-x: var(--lui-space-4);--alert-padding-y: var(--lui-space-3);--alert-radius: var(--lui-radius-2)}._root_1ibdz_9{border-radius:var(--alert-radius);border-style:solid;border-width:1px;font-size:var(--alert-font-size);line-height:var(--alert-line-height);padding:var(--alert-padding-y) var(--alert-padding-x)}._variantDanger_1ibdz_18{--alert-color: var(--lui-palette-red-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}._variantInfo_1ibdz_25{--alert-color: var(--lui-palette-blue-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}._variantSuccess_1ibdz_32{--alert-color: var(--lui-palette-green-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}._variantWarning_1ibdz_39{--alert-color: var(--lui-palette-orange-500);background:color-mix(in sRGB,var(--alert-color) 12%,transparent);border-color:color-mix(in sRGB,var(--alert-color) 24%,transparent);color:var(--alert-color)}
package/dist/alert.js CHANGED
@@ -1,20 +1,20 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { c as i } from "./clsx-OuTLNxxd.mjs";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { c as s } from "./clsx-OuTLNxxd.mjs";
3
3
  import { g as c } from "./getVariantClassName-D7Nhpuec.mjs";
4
- import './alert.css';const e = "Alert", l = "_root_1l2y4_9", _ = "_variantDanger_1l2y4_18", v = "_variantInfo_1l2y4_25", m = "_variantSuccess_1l2y4_32", g = "_variantWarning_1l2y4_39", a = {
5
- root: l,
6
- variantDanger: _,
7
- variantInfo: v,
4
+ import './alert.css';const e = "Alert", _ = "_root_1ibdz_9", v = "_variantDanger_1ibdz_18", l = "_variantInfo_1ibdz_25", m = "_variantSuccess_1ibdz_32", d = "_variantWarning_1ibdz_39", a = {
5
+ root: _,
6
+ variantDanger: v,
7
+ variantInfo: l,
8
8
  variantSuccess: m,
9
- variantWarning: g
10
- }, f = (n) => {
11
- const { children: r, variant: t = "info" } = n, o = i(
9
+ variantWarning: d
10
+ }, g = (n) => {
11
+ const { children: r, variant: t = "info" } = n, o = s(
12
12
  a.root,
13
13
  c("variant", t, a)
14
14
  );
15
- return /* @__PURE__ */ s("div", { className: o, role: "alert", children: r });
15
+ return /* @__PURE__ */ i("div", { className: o, role: "alert", children: r });
16
16
  };
17
- f.displayName = e;
17
+ g.displayName = e;
18
18
  export {
19
- f as Alert
19
+ g as Alert
20
20
  };
package/dist/avatar.css CHANGED
@@ -1 +1 @@
1
- :root{--avatar-radius: var(--radius-full);--avatar-font-weight: var(--font-weight-semibold);--avatar-font-size: var(--font-size-sm)}._root_1rc9y_7{align-items:center;background:var(--avatar-color);border-radius:var(--avatar-radius);color:var(--avatar-text-color);display:inline-flex;font-weight:var(--avatar-font-weight);justify-content:center;line-height:1;overflow:hidden;-webkit-user-select:none;user-select:none;vertical-align:middle}._image_1rc9y_21{height:100%;object-fit:cover;width:100%}._fallback_1rc9y_27{align-items:center;display:flex;font-size:var(--avatar-font-size);justify-content:center;line-height:1}._sizeSm_1rc9y_35{font-size:var(--font-size-xs);height:24px;width:24px}._sizeSm_1rc9y_35 ._fallback_1rc9y_27{font-size:var(--font-size-xs)}._sizeMd_1rc9y_44{height:32px;width:32px}._sizeMd_1rc9y_44 ._fallback_1rc9y_27{font-size:var(--font-size-sm)}._sizeLg_1rc9y_52{height:40px;width:40px}._sizeLg_1rc9y_52 ._fallback_1rc9y_27{font-size:var(--font-size-md)}._sizeXl_1rc9y_60{height:56px;width:56px}._sizeXl_1rc9y_60 ._fallback_1rc9y_27{font-size:var(--font-size-lg)}
1
+ :root{--avatar-radius: var(--lui-radius-full);--avatar-font-weight: var(--lui-font-weight-semibold);--avatar-font-size: var(--lui-font-size-sm)}._root_1t32a_7{align-items:center;background:var(--avatar-color);border-radius:var(--avatar-radius);color:var(--avatar-text-color);display:inline-flex;font-weight:var(--avatar-font-weight);justify-content:center;line-height:1;overflow:hidden;-webkit-user-select:none;user-select:none;vertical-align:middle}._image_1t32a_21{height:100%;object-fit:cover;width:100%}._fallback_1t32a_27{align-items:center;display:flex;font-size:var(--avatar-font-size);justify-content:center;line-height:1}._sizeSm_1t32a_35{font-size:var(--lui-font-size-xs);height:24px;width:24px}._sizeSm_1t32a_35 ._fallback_1t32a_27{font-size:var(--lui-font-size-xs)}._sizeMd_1t32a_44{height:32px;width:32px}._sizeMd_1t32a_44 ._fallback_1t32a_27{font-size:var(--lui-font-size-sm)}._sizeLg_1t32a_52{height:40px;width:40px}._sizeLg_1t32a_52 ._fallback_1t32a_27{font-size:var(--lui-font-size-md)}._sizeXl_1t32a_60{height:56px;width:56px}._sizeXl_1t32a_60 ._fallback_1t32a_27{font-size:var(--lui-font-size-lg)}
package/dist/avatar.d.ts CHANGED
@@ -6,7 +6,7 @@ import { default as default_2 } from 'react';
6
6
  * @example
7
7
  * ```tsx
8
8
  * <Avatar src="https://i.pravatar.cc/80" alt="User" />
9
- * <Avatar size="lg" color="var(--palette-blue-500)">JD</Avatar>
9
+ * <Avatar size="lg" color="var(--lui-palette-blue-500)">JD</Avatar>
10
10
  * ```
11
11
  */
12
12
  export declare const Avatar: default_2.FC<IProps>;
@@ -25,7 +25,7 @@ declare interface IProps extends default_2.PropsWithChildren {
25
25
  alt?: string;
26
26
  /** Size. */
27
27
  size?: TAvatarSize;
28
- /** CSS background colour for the fallback state. Default: `var(--color-background-tertiary)`. */
28
+ /** CSS background colour for the fallback state. Default: `var(--lui-color-background-tertiary)`. */
29
29
  color?: string;
30
30
  }
31
31
 
package/dist/avatar.js CHANGED
@@ -1,41 +1,41 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import { useState as _ } from "react";
3
3
  import { c as g } from "./clsx-OuTLNxxd.mjs";
4
4
  import { g as z } from "./getVariantClassName-D7Nhpuec.mjs";
5
- import './avatar.css';const y = "Avatar", d = "_root_1rc9y_7", f = "_image_1rc9y_21", p = "_fallback_1rc9y_27", v = "_sizeSm_1rc9y_35", N = "_sizeMd_1rc9y_44", b = "_sizeLg_1rc9y_52", x = "_sizeXl_1rc9y_60", r = {
6
- root: d,
7
- image: f,
8
- fallback: p,
9
- sizeSm: v,
5
+ import './avatar.css';const d = "Avatar", f = "_root_1t32a_7", p = "_image_1t32a_21", v = "_fallback_1t32a_27", u = "_sizeSm_1t32a_35", N = "_sizeMd_1t32a_44", b = "_sizeLg_1t32a_52", x = "_sizeXl_1t32a_60", a = {
6
+ root: f,
7
+ image: p,
8
+ fallback: v,
9
+ sizeSm: u,
10
10
  sizeMd: N,
11
11
  sizeLg: b,
12
12
  sizeXl: x
13
13
  }, k = (e) => {
14
- const { src: s, alt: c = "", children: o, size: i = "md", color: t } = e, [l, m] = _(!1), n = g(
15
- r.root,
16
- z("size", i, r)
14
+ const { src: t, alt: i = "", children: o, size: c = "md", color: r } = e, [l, m] = _(!1), n = g(
15
+ a.root,
16
+ z("size", c, a)
17
17
  );
18
- return /* @__PURE__ */ a(
18
+ return /* @__PURE__ */ s(
19
19
  "div",
20
20
  {
21
21
  className: n,
22
22
  style: {
23
- "--avatar-color": t ?? "var(--color-background-tertiary)",
24
- "--avatar-text-color": t ? "var(--color-text-on-brand)" : "var(--color-text-primary)"
23
+ "--avatar-color": r ?? "var(--lui-color-background-tertiary)",
24
+ "--avatar-text-color": r ? "var(--lui-color-text-on-brand)" : "var(--lui-color-text-primary)"
25
25
  },
26
- children: s && !l ? /* @__PURE__ */ a(
26
+ children: t && !l ? /* @__PURE__ */ s(
27
27
  "img",
28
28
  {
29
- className: r.image,
30
- src: s,
31
- alt: c,
29
+ className: a.image,
30
+ src: t,
31
+ alt: i,
32
32
  onError: () => m(!0)
33
33
  }
34
- ) : o && /* @__PURE__ */ a("span", { className: r.fallback, children: o })
34
+ ) : o && /* @__PURE__ */ s("span", { className: a.fallback, children: o })
35
35
  }
36
36
  );
37
37
  };
38
- k.displayName = y;
38
+ k.displayName = d;
39
39
  export {
40
40
  k as Avatar
41
41
  };
package/dist/badge.css CHANGED
@@ -1 +1 @@
1
- :root{--badge-radius: var(--radius-full);--badge-font-weight: var(--font-weight-medium)}._root_9ayss_6{align-items:center;background:color-mix(in sRGB,var(--badge-color) 12%,transparent);border:1px solid color-mix(in sRGB,var(--badge-color) 24%,transparent);border-radius:var(--badge-radius);color:var(--badge-color);display:inline-flex;font-weight:var(--badge-font-weight);gap:var(--space-1);justify-content:center;line-height:1;white-space:nowrap;width:fit-content}._sizeSm_9ayss_21{font-size:var(--font-size-xs);line-height:var(--line-height-xs);padding:1px var(--space-2)}._sizeMd_9ayss_27{font-size:var(--font-size-sm);line-height:var(--line-height-sm);padding:1px var(--space-3)}._sizeLg_9ayss_33{font-size:var(--font-size-md);line-height:var(--line-height-md);padding:3px var(--space-4)}
1
+ :root{--badge-radius: var(--lui-radius-full);--badge-font-weight: var(--lui-font-weight-medium)}._root_2cn5a_6{align-items:center;background:color-mix(in sRGB,var(--badge-color) 12%,transparent);border:1px solid color-mix(in sRGB,var(--badge-color) 24%,transparent);border-radius:var(--badge-radius);color:var(--badge-color);display:inline-flex;font-weight:var(--badge-font-weight);gap:var(--lui-space-1);justify-content:center;line-height:1;white-space:nowrap;width:fit-content}._sizeSm_2cn5a_21{font-size:var(--lui-font-size-xs);line-height:var(--line-height-xs);padding:1px var(--lui-space-2)}._sizeMd_2cn5a_27{font-size:var(--lui-font-size-sm);line-height:var(--line-height-sm);padding:1px var(--lui-space-3)}._sizeLg_2cn5a_33{font-size:var(--lui-font-size-md);line-height:var(--line-height-md);padding:3px var(--lui-space-4)}
package/dist/badge.d.ts CHANGED
@@ -9,8 +9,8 @@ import { default as default_2 } from 'react';
9
9
  * @example
10
10
  * ```tsx
11
11
  * <Badge>Default</Badge>
12
- * <Badge color="var(--palette-orange-500)">Orange</Badge>
13
- * <Badge color="var(--color-text-success)" size="sm">Active</Badge>
12
+ * <Badge color="var(--lui-palette-orange-500)">Orange</Badge>
13
+ * <Badge color="var(--lui-color-text-success)" size="sm">Active</Badge>
14
14
  * ```
15
15
  */
16
16
  export declare const Badge: default_2.FC<IProps>;
@@ -22,7 +22,7 @@ declare enum EBadgeSize {
22
22
  }
23
23
 
24
24
  declare interface IProps extends default_2.PropsWithChildren {
25
- /** CSS color value. Background is derived via `color-mix()`. Default: `var(--color-text-secondary)`. */
25
+ /** CSS color value. Background is derived via `color-mix()`. Default: `var(--lui-color-text-secondary)`. */
26
26
  color?: string;
27
27
  /** Size. */
28
28
  size?: TBadgeSize;
package/dist/badge.js CHANGED
@@ -1,23 +1,23 @@
1
- import { jsx as c } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
2
2
  import { c as i } from "./clsx-OuTLNxxd.mjs";
3
- import { g as m } from "./getVariantClassName-D7Nhpuec.mjs";
4
- import './badge.css';const n = "Badge", _ = "_root_9ayss_6", l = "_sizeSm_9ayss_21", z = "_sizeMd_9ayss_27", d = "_sizeLg_9ayss_33", s = {
3
+ import { g as n } from "./getVariantClassName-D7Nhpuec.mjs";
4
+ import './badge.css';const m = "Badge", _ = "_root_2cn5a_6", l = "_sizeSm_2cn5a_21", z = "_sizeMd_2cn5a_27", d = "_sizeLg_2cn5a_33", s = {
5
5
  root: _,
6
6
  sizeSm: l,
7
7
  sizeMd: z,
8
8
  sizeLg: d
9
9
  }, g = (o) => {
10
- const { children: e, color: t, size: a = "md" } = o, r = i(s.root, m("size", a, s));
11
- return /* @__PURE__ */ c(
10
+ const { children: e, color: t, size: a = "md" } = o, c = i(s.root, n("size", a, s));
11
+ return /* @__PURE__ */ r(
12
12
  "span",
13
13
  {
14
- className: r,
15
- style: { "--badge-color": t ?? "var(--color-text-secondary)" },
14
+ className: c,
15
+ style: { "--badge-color": t ?? "var(--lui-color-text-secondary)" },
16
16
  children: e
17
17
  }
18
18
  );
19
19
  };
20
- g.displayName = n;
20
+ g.displayName = m;
21
21
  export {
22
22
  g as Badge
23
23
  };
@@ -1 +1 @@
1
- :root{--breadcrumbs-font-size: var(--font-size-sm);--breadcrumbs-line-height: var(--line-height-sm);--breadcrumbs-gap: var(--space-1);--breadcrumbs-color-link: var(--color-text-secondary);--breadcrumbs-color-link-hover: var(--color-text-link-hover);--breadcrumbs-color-current: var(--color-text-primary);--breadcrumbs-color-separator: var(--color-text-quaternary);--breadcrumbs-font-weight-current: var(--font-weight-medium)}._root_b6jtc_12{display:flex}._list_b6jtc_16{align-items:center;display:flex;flex-wrap:wrap;gap:var(--breadcrumbs-gap);list-style:none;margin:0;padding:0}._item_b6jtc_26{align-items:center;display:inline-flex;gap:var(--breadcrumbs-gap)}._link_b6jtc_32{color:var(--breadcrumbs-color-link);font-size:var(--breadcrumbs-font-size);line-height:var(--breadcrumbs-line-height);text-decoration:none}._link_b6jtc_32:hover{color:var(--breadcrumbs-color-link-hover);text-decoration:underline}._label_b6jtc_43{color:var(--breadcrumbs-color-link);font-size:var(--breadcrumbs-font-size);line-height:var(--breadcrumbs-line-height)}._current_b6jtc_49{color:var(--breadcrumbs-color-current);font-weight:var(--breadcrumbs-font-weight-current)}._separator_b6jtc_54{color:var(--breadcrumbs-color-separator);font-size:var(--breadcrumbs-font-size);line-height:var(--breadcrumbs-line-height);-webkit-user-select:none;user-select:none}:root{--breadcrumbs-item-font-size: var(--font-size-sm);--breadcrumbs-item-line-height: var(--line-height-sm);--breadcrumbs-item-color-link: var(--color-text-secondary);--breadcrumbs-item-color-link-hover: var(--color-text-link-hover);--breadcrumbs-item-color-current: var(--color-text-primary);--breadcrumbs-item-font-weight-current: var(--font-weight-medium)}._link_1n28p_10{color:var(--breadcrumbs-item-color-link);font-size:var(--breadcrumbs-item-font-size);line-height:var(--breadcrumbs-item-line-height);text-decoration:none}._link_1n28p_10:hover{color:var(--breadcrumbs-item-color-link-hover);text-decoration:underline}._label_1n28p_21{color:var(--breadcrumbs-item-color-link);font-size:var(--breadcrumbs-item-font-size);line-height:var(--breadcrumbs-item-line-height)}._current_1n28p_27{color:var(--breadcrumbs-item-color-current);font-weight:var(--breadcrumbs-item-font-weight-current)}
1
+ :root{--breadcrumbs-font-size: var(--lui-font-size-sm);--breadcrumbs-line-height: var(--line-height-sm);--breadcrumbs-gap: var(--lui-space-1);--breadcrumbs-color-link: var(--lui-color-text-secondary);--breadcrumbs-color-link-hover: var(--lui-color-text-link-hover);--breadcrumbs-color-current: var(--lui-color-text-primary);--breadcrumbs-color-separator: var(--lui-color-text-quaternary);--breadcrumbs-font-weight-current: var(--lui-font-weight-medium)}._root_w4o54_12{display:flex}._list_w4o54_16{align-items:center;display:flex;flex-wrap:wrap;gap:var(--breadcrumbs-gap);list-style:none;margin:0;padding:0}._item_w4o54_26{align-items:center;display:inline-flex;gap:var(--breadcrumbs-gap)}._link_w4o54_32{color:var(--breadcrumbs-color-link);font-size:var(--breadcrumbs-font-size);line-height:var(--breadcrumbs-line-height);text-decoration:none}._link_w4o54_32:hover{color:var(--breadcrumbs-color-link-hover);text-decoration:underline}._label_w4o54_43{color:var(--breadcrumbs-color-link);font-size:var(--breadcrumbs-font-size);line-height:var(--breadcrumbs-line-height)}._current_w4o54_49{color:var(--breadcrumbs-color-current);font-weight:var(--breadcrumbs-font-weight-current)}._separator_w4o54_54{color:var(--breadcrumbs-color-separator);font-size:var(--breadcrumbs-font-size);line-height:var(--breadcrumbs-line-height);-webkit-user-select:none;user-select:none}:root{--breadcrumbs-item-font-size: var(--lui-font-size-sm);--breadcrumbs-item-line-height: var(--line-height-sm);--breadcrumbs-item-color-link: var(--lui-color-text-secondary);--breadcrumbs-item-color-link-hover: var(--lui-color-text-link-hover);--breadcrumbs-item-color-current: var(--lui-color-text-primary);--breadcrumbs-item-font-weight-current: var(--lui-font-weight-medium)}._link_a6eyw_10{color:var(--breadcrumbs-item-color-link);font-size:var(--breadcrumbs-item-font-size);line-height:var(--breadcrumbs-item-line-height);text-decoration:none}._link_a6eyw_10:hover{color:var(--breadcrumbs-item-color-link-hover);text-decoration:underline}._label_a6eyw_21{color:var(--breadcrumbs-item-color-link);font-size:var(--breadcrumbs-item-font-size);line-height:var(--breadcrumbs-item-line-height)}._current_a6eyw_27{color:var(--breadcrumbs-item-color-current);font-weight:var(--breadcrumbs-item-font-weight-current)}
@@ -1,63 +1,63 @@
1
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { c as h } from "./clsx-OuTLNxxd.mjs";
1
+ import { jsx as e, jsxs as h } from "react/jsx-runtime";
2
+ import { c as b } from "./clsx-OuTLNxxd.mjs";
3
3
  import k from "react";
4
4
  import { i as E } from "./isValidReactNode-CmYwTWCE.mjs";
5
5
  import "./camelCase-PtIYufW8.mjs";
6
6
  import './breadcrumbs.css';const _ = "Breadcrumbs", I = "/";
7
- var N = ((s) => (s.ITEM = `${_}.Item`, s))(N || {});
8
- const $ = "_root_b6jtc_12", A = "_list_b6jtc_16", C = "_item_b6jtc_26", T = "_link_b6jtc_32", g = "_label_b6jtc_43", B = "_current_b6jtc_49", L = "_separator_b6jtc_54", r = {
7
+ var N = ((l) => (l.ITEM = `${_}.Item`, l))(N || {});
8
+ const $ = "_root_w4o54_12", y = "_list_w4o54_16", A = "_item_w4o54_26", C = "_link_w4o54_32", T = "_label_w4o54_43", g = "_current_w4o54_49", B = "_separator_w4o54_54", r = {
9
9
  root: $,
10
- list: A,
11
- item: C,
12
- link: T,
13
- label: g,
14
- current: B,
15
- separator: L
16
- }, v = [N.ITEM], f = (s) => {
17
- const { children: c, items: t, separator: o = I } = s;
18
- if (t) {
19
- if (t.length === 0)
10
+ list: y,
11
+ item: A,
12
+ link: C,
13
+ label: T,
14
+ current: g,
15
+ separator: B
16
+ }, L = [N.ITEM], f = (l) => {
17
+ const { children: c, items: s, separator: o = I } = l;
18
+ if (s) {
19
+ if (s.length === 0)
20
20
  return null;
21
- const n = (a, l) => {
22
- const b = l === t.length - 1, p = a.current || b;
21
+ const t = (a, n) => {
22
+ const d = n === s.length - 1, p = a.current || d;
23
23
  let m;
24
24
  return a.href && !p ? m = /* @__PURE__ */ e("a", { className: r.link, href: a.href, children: a.label }) : p ? m = /* @__PURE__ */ e(
25
25
  "span",
26
26
  {
27
27
  "aria-current": "page",
28
- className: h(r.label, r.current),
28
+ className: b(r.label, r.current),
29
29
  children: a.label
30
30
  }
31
- ) : m = /* @__PURE__ */ e("span", { className: r.label, children: a.label }), /* @__PURE__ */ d("li", { className: r.item, children: [
31
+ ) : m = /* @__PURE__ */ e("span", { className: r.label, children: a.label }), /* @__PURE__ */ h("li", { className: r.item, children: [
32
32
  m,
33
- !b && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: r.separator, children: o })
34
- ] }, l);
33
+ !d && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: r.separator, children: o })
34
+ ] }, n);
35
35
  };
36
- return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", className: r.root, children: /* @__PURE__ */ e("ol", { className: r.list, children: t.map((a, l) => n(a, l)) }) });
36
+ return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", className: r.root, children: /* @__PURE__ */ e("ol", { className: r.list, children: s.map((a, n) => t(a, n)) }) });
37
37
  }
38
38
  const i = [];
39
- return k.Children.forEach(c, (n) => {
40
- E(v, n) && i.push(n);
41
- }), i.length === 0 ? null : /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", className: r.root, children: /* @__PURE__ */ e("ol", { className: r.list, children: i.map((n, a) => {
42
- const l = a === i.length - 1;
43
- return /* @__PURE__ */ d("li", { className: r.item, children: [
44
- n,
45
- !l && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: r.separator, children: o })
39
+ return k.Children.forEach(c, (t) => {
40
+ E(L, t) && i.push(t);
41
+ }), i.length === 0 ? null : /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", className: r.root, children: /* @__PURE__ */ e("ol", { className: r.list, children: i.map((t, a) => {
42
+ const n = a === i.length - 1;
43
+ return /* @__PURE__ */ h("li", { className: r.item, children: [
44
+ t,
45
+ !n && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: r.separator, children: o })
46
46
  ] }, a);
47
47
  }) }) });
48
48
  };
49
49
  f.displayName = _;
50
- const y = "_link_1n28p_10", M = "_label_1n28p_21", P = "_current_1n28p_27", u = {
51
- link: y,
50
+ const v = "_link_a6eyw_10", M = "_label_a6eyw_21", P = "_current_a6eyw_27", u = {
51
+ link: v,
52
52
  label: M,
53
53
  current: P
54
- }, j = (s) => {
55
- const { children: c, href: t, current: o = !1 } = s;
56
- return t && !o ? /* @__PURE__ */ e("a", { className: u.link, href: t, children: c }) : o ? /* @__PURE__ */ e("span", { "aria-current": "page", className: h(u.label, u.current), children: c }) : /* @__PURE__ */ e("span", { className: u.label, children: c });
54
+ }, w = (l) => {
55
+ const { children: c, href: s, current: o = !1 } = l;
56
+ return s && !o ? /* @__PURE__ */ e("a", { className: u.link, href: s, children: c }) : o ? /* @__PURE__ */ e("span", { "aria-current": "page", className: b(u.label, u.current), children: c }) : /* @__PURE__ */ e("span", { className: u.label, children: c });
57
57
  };
58
- j.displayName = `${_}.Item`;
58
+ w.displayName = `${_}.Item`;
59
59
  const S = f;
60
- S.Item = j;
60
+ S.Item = w;
61
61
  export {
62
62
  S as Breadcrumbs
63
63
  };
package/dist/button.css CHANGED
@@ -1 +1 @@
1
- :root{--button-bg: var(--color-background-brand);--button-bg-hover: var(--color-background-brand-hover);--button-text: var(--color-text-on-brand);--button-bg-secondary: var(--color-background-primary);--button-text-secondary: var(--color-text-secondary);--button-bg-secondary-hover: var(--color-background-secondary);--button-bg-danger: var(--color-background-error);--button-text-danger: var(--color-text-on-brand);--button-bg-danger-hover: var(--color-background-error-hover);--button-bg-disabled: var(--color-background-disabled);--button-text-disabled: var(--color-text-disabled);--button-border-disabled: var(--color-border-disabled);--button-focus-ring: var(--color-border-focus);--button-focus-ring-error: var(--color-border-focus-error);--button-radius: var(--radius-2);--button-border: var(--color-border-primary);--button-shadow: var(--shadow-xs)}._root_yed10_21{align-items:center;border:1px solid var(--button-border);border-radius:var(--button-radius);box-shadow:var(--button-shadow);display:flex;flex-direction:row;justify-content:center;outline-offset:2px;transition:background-color .2s,color .2s}._root_yed10_21._modeFilled_yed10_32._variantPrimary_yed10_32{background:var(--button-bg);color:var(--button-text)}._root_yed10_21._modeFilled_yed10_32._variantPrimary_yed10_32._pressed_yed10_36,._root_yed10_21._modeFilled_yed10_32._variantPrimary_yed10_32:active,._root_yed10_21._modeFilled_yed10_32._variantPrimary_yed10_32:hover{background:var(--button-bg-hover)}._root_yed10_21._modeFilled_yed10_32._variantPrimary_yed10_32:focus-visible{outline:2px solid var(--button-focus-ring)}._root_yed10_21._modeFilled_yed10_32._variantSecondary_yed10_42{background:var(--button-bg-secondary);color:var(--button-text-secondary)}._root_yed10_21._modeFilled_yed10_32._variantSecondary_yed10_42:active,._root_yed10_21._modeFilled_yed10_32._variantSecondary_yed10_42._pressed_yed10_36,._root_yed10_21._modeFilled_yed10_32._variantSecondary_yed10_42:hover{background:var(--button-bg-secondary-hover)}._root_yed10_21._modeFilled_yed10_32._variantSecondary_yed10_42:focus-visible{outline:2px solid var(--button-focus-ring)}._root_yed10_21._modeFilled_yed10_32._variantDanger_yed10_52{background:var(--button-bg-danger);color:var(--button-text-danger)}._root_yed10_21._modeFilled_yed10_32._variantDanger_yed10_52:active,._root_yed10_21._modeFilled_yed10_32._variantDanger_yed10_52._pressed_yed10_36,._root_yed10_21._modeFilled_yed10_32._variantDanger_yed10_52:hover{background:var(--button-bg-danger-hover)}._root_yed10_21._modeFilled_yed10_32._variantDanger_yed10_52:focus-visible{outline:2px solid var(--button-focus-ring-error)}._root_yed10_21._modeFilled_yed10_32:disabled,._root_yed10_21._modeFilled_yed10_32._disabled_yed10_62{background:var(--button-bg-disabled);border-color:var(--button-border-disabled);color:var(--button-text-disabled);cursor:not-allowed;pointer-events:none}._root_yed10_21._modeOutlined_yed10_69{background:transparent;box-shadow:none}._root_yed10_21._modeOutlined_yed10_69._variantPrimary_yed10_32{border-color:var(--color-background-brand);color:var(--color-background-brand)}._root_yed10_21._modeOutlined_yed10_69._variantPrimary_yed10_32:hover{background:var(--color-background-brand-secondary)}._root_yed10_21._modeOutlined_yed10_69._variantSecondary_yed10_42{color:var(--color-text-secondary)}._root_yed10_21._modeOutlined_yed10_69._variantSecondary_yed10_42:hover{background:var(--color-background-secondary)}._root_yed10_21._modeOutlined_yed10_69._variantDanger_yed10_52{border-color:var(--color-background-error);color:var(--color-background-error)}._root_yed10_21._modeOutlined_yed10_69._variantDanger_yed10_52:hover{background:var(--color-background-error);color:var(--color-text-on-brand)}._root_yed10_21._modeText_yed10_94{background:transparent;border-color:transparent;box-shadow:none}._root_yed10_21._modeText_yed10_94._variantPrimary_yed10_32{color:var(--color-background-brand)}._root_yed10_21._modeText_yed10_94._variantPrimary_yed10_32:hover{background:var(--color-background-brand-secondary)}._root_yed10_21._modeText_yed10_94._variantSecondary_yed10_42{color:var(--color-text-secondary)}._root_yed10_21._modeText_yed10_94._variantSecondary_yed10_42:hover{background:var(--color-background-secondary)}._root_yed10_21._modeText_yed10_94._variantDanger_yed10_52{color:var(--color-background-error)}._root_yed10_21._modeText_yed10_94._variantDanger_yed10_52:hover{background:var(--color-background-error);color:var(--color-text-on-brand)}._root_yed10_21._fullWidth_yed10_118{width:100%}._root_yed10_21._sizeSm_yed10_121{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);gap:var(--space-1);line-height:var(--line-height-sm);padding:var(--space-1) var(--space-3)}._root_yed10_21._sizeMd_yed10_128{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);gap:var(--space-1);line-height:var(--line-height-sm);padding:var(--space-2) var(--space-4)}._root_yed10_21._sizeLg_yed10_135{font-size:var(--font-size-md);font-weight:var(--font-weight-semibold);gap:var(--space-2);line-height:var(--line-height-md);padding:var(--space-3) var(--space-4)}
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_26zpg_21{align-items:center;border:1px solid var(--button-border);border-radius:var(--button-radius);box-shadow:var(--button-shadow);display:flex;flex-direction:row;justify-content:center;outline-offset:2px;transition:background-color .2s,color .2s}._root_26zpg_21._modeFilled_26zpg_32._variantPrimary_26zpg_32{background:var(--button-bg);color:var(--button-text)}._root_26zpg_21._modeFilled_26zpg_32._variantPrimary_26zpg_32._pressed_26zpg_36,._root_26zpg_21._modeFilled_26zpg_32._variantPrimary_26zpg_32:active,._root_26zpg_21._modeFilled_26zpg_32._variantPrimary_26zpg_32:hover{background:var(--button-bg-hover)}._root_26zpg_21._modeFilled_26zpg_32._variantPrimary_26zpg_32:focus-visible{outline:2px solid var(--button-focus-ring)}._root_26zpg_21._modeFilled_26zpg_32._variantSecondary_26zpg_42{background:var(--button-bg-secondary);color:var(--button-text-secondary)}._root_26zpg_21._modeFilled_26zpg_32._variantSecondary_26zpg_42:active,._root_26zpg_21._modeFilled_26zpg_32._variantSecondary_26zpg_42._pressed_26zpg_36,._root_26zpg_21._modeFilled_26zpg_32._variantSecondary_26zpg_42:hover{background:var(--button-bg-secondary-hover)}._root_26zpg_21._modeFilled_26zpg_32._variantSecondary_26zpg_42:focus-visible{outline:2px solid var(--button-focus-ring)}._root_26zpg_21._modeFilled_26zpg_32._variantDanger_26zpg_52{background:var(--button-bg-danger);color:var(--button-text-danger)}._root_26zpg_21._modeFilled_26zpg_32._variantDanger_26zpg_52:active,._root_26zpg_21._modeFilled_26zpg_32._variantDanger_26zpg_52._pressed_26zpg_36,._root_26zpg_21._modeFilled_26zpg_32._variantDanger_26zpg_52:hover{background:var(--button-bg-danger-hover)}._root_26zpg_21._modeFilled_26zpg_32._variantDanger_26zpg_52:focus-visible{outline:2px solid var(--button-focus-ring-error)}._root_26zpg_21._modeFilled_26zpg_32:disabled,._root_26zpg_21._modeFilled_26zpg_32._disabled_26zpg_62{background:var(--button-bg-disabled);border-color:var(--button-border-disabled);color:var(--button-text-disabled);cursor:not-allowed;pointer-events:none}._root_26zpg_21._modeOutlined_26zpg_69{background:transparent;box-shadow:none}._root_26zpg_21._modeOutlined_26zpg_69._variantPrimary_26zpg_32{border-color:var(--lui-color-background-brand);color:var(--lui-color-background-brand)}._root_26zpg_21._modeOutlined_26zpg_69._variantPrimary_26zpg_32:hover{background:var(--lui-color-background-brand-secondary)}._root_26zpg_21._modeOutlined_26zpg_69._variantSecondary_26zpg_42{color:var(--lui-color-text-secondary)}._root_26zpg_21._modeOutlined_26zpg_69._variantSecondary_26zpg_42:hover{background:var(--lui-color-background-secondary)}._root_26zpg_21._modeOutlined_26zpg_69._variantDanger_26zpg_52{border-color:var(--lui-color-background-error);color:var(--lui-color-background-error)}._root_26zpg_21._modeOutlined_26zpg_69._variantDanger_26zpg_52:hover{background:var(--lui-color-background-error);color:var(--lui-color-text-on-brand)}._root_26zpg_21._modeText_26zpg_94{background:transparent;border-color:transparent;box-shadow:none}._root_26zpg_21._modeText_26zpg_94._variantPrimary_26zpg_32{color:var(--lui-color-background-brand)}._root_26zpg_21._modeText_26zpg_94._variantPrimary_26zpg_32:hover{background:var(--lui-color-background-brand-secondary)}._root_26zpg_21._modeText_26zpg_94._variantSecondary_26zpg_42{color:var(--lui-color-text-secondary)}._root_26zpg_21._modeText_26zpg_94._variantSecondary_26zpg_42:hover{background:var(--lui-color-background-secondary)}._root_26zpg_21._modeText_26zpg_94._variantDanger_26zpg_52{color:var(--lui-color-background-error)}._root_26zpg_21._modeText_26zpg_94._variantDanger_26zpg_52:hover{background:var(--lui-color-background-error);color:var(--lui-color-text-on-brand)}._root_26zpg_21._fullWidth_26zpg_118{width:100%}._root_26zpg_21._sizeSm_26zpg_121{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_26zpg_21._sizeMd_26zpg_128{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_26zpg_21._sizeLg_26zpg_135{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_26zpg_143{align-items:center;display:flex;flex:0 0 20px;height:20px;justify-content:center;width:20px}
package/dist/button.d.ts CHANGED
@@ -53,6 +53,8 @@ export declare interface IButtonProps extends default_2.PropsWithChildren {
53
53
  target?: string;
54
54
  /** Tag name. */
55
55
  as?: 'a' | 'button';
56
+ /** Icon name. */
57
+ icon?: string;
56
58
  /** HTML button type. */
57
59
  type?: 'button' | 'submit' | 'reset';
58
60
  }