@lazar-ui/kit 0.1.0 → 0.2.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +83 -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/{Overlay-RmiBtqDR.mjs → Overlay-OYo7gW8m.mjs} +165 -156
  7. package/dist/accordion.css +1 -1
  8. package/dist/accordion.d.ts +59 -9
  9. package/dist/accordion.js +59 -41
  10. package/dist/alert.css +1 -1
  11. package/dist/alert.js +12 -12
  12. package/dist/avatar.css +1 -1
  13. package/dist/avatar.d.ts +2 -2
  14. package/dist/avatar.js +18 -18
  15. package/dist/badge.css +1 -1
  16. package/dist/badge.d.ts +3 -3
  17. package/dist/badge.js +8 -8
  18. package/dist/breadcrumbs.css +1 -1
  19. package/dist/breadcrumbs.js +35 -35
  20. package/dist/button.css +1 -1
  21. package/dist/button.d.ts +2 -0
  22. package/dist/button.js +41 -35
  23. package/dist/card.css +1 -1
  24. package/dist/card.js +15 -15
  25. package/dist/checkbox.css +1 -1
  26. package/dist/checkbox.js +25 -25
  27. package/dist/css/palettes/indigo.css +75 -75
  28. package/dist/css/palettes/monochrome.css +75 -75
  29. package/dist/css/semantic.css +67 -67
  30. package/dist/dialog.css +1 -1
  31. package/dist/dialog.js +61 -60
  32. package/dist/drawer.css +1 -1
  33. package/dist/drawer.d.ts +11 -0
  34. package/dist/drawer.js +102 -81
  35. package/dist/empty-state.css +1 -1
  36. package/dist/empty-state.d.ts +1 -1
  37. package/dist/empty-state.js +27 -26
  38. package/dist/error-boundary.css +1 -1
  39. package/dist/error-boundary.js +9 -9
  40. package/dist/flex.js +6 -6
  41. package/dist/form-field.css +1 -1
  42. package/dist/form-field.js +10 -10
  43. package/dist/icon.d.ts +30 -0
  44. package/dist/icon.js +4 -0
  45. package/dist/input.css +1 -1
  46. package/dist/input.js +77 -103
  47. package/dist/{config-provider.d.ts → lazar-ui-provider.d.ts} +33 -33
  48. package/dist/lazar-ui-provider.js +14 -0
  49. package/dist/menu.css +1 -1
  50. package/dist/menu.d.ts +3 -3
  51. package/dist/menu.js +73 -91
  52. package/dist/pagination.css +1 -1
  53. package/dist/pagination.js +49 -48
  54. package/dist/popover.css +1 -1
  55. package/dist/popover.d.ts +1 -1
  56. package/dist/popover.js +26 -25
  57. package/dist/select.css +1 -1
  58. package/dist/select.js +81 -119
  59. package/dist/separator.css +1 -1
  60. package/dist/separator.d.ts +2 -2
  61. package/dist/separator.js +9 -9
  62. package/dist/skeleton.css +1 -1
  63. package/dist/skeleton.js +13 -13
  64. package/dist/spinner.css +1 -1
  65. package/dist/spinner.d.ts +2 -2
  66. package/dist/spinner.js +7 -7
  67. package/dist/switch.css +1 -1
  68. package/dist/switch.js +15 -15
  69. package/dist/table.css +1 -1
  70. package/dist/table.js +23 -23
  71. package/dist/tabs.css +1 -1
  72. package/dist/tabs.js +48 -48
  73. package/dist/textarea.css +1 -1
  74. package/dist/textarea.js +17 -17
  75. package/dist/tooltip.css +1 -1
  76. package/dist/tooltip.js +34 -33
  77. package/dist/typography.css +1 -0
  78. package/dist/typography.d.ts +76 -0
  79. package/dist/typography.js +40 -0
  80. package/dist/{useLocale-D2Z0JH0l.mjs → useLocale-DdHNhmvT.mjs} +24 -24
  81. package/dist/{useModalOverlay-D5Bs9FCB.mjs → useModalOverlay-B93fkWbb.mjs} +2 -2
  82. package/dist/{useOverlayPosition-DVu1Qziq.mjs → useOverlayPosition-CK3oEqVS.mjs} +1 -1
  83. package/dist/{useOverlayTriggerState-BIo1Jcba.mjs → useOverlayTriggerState-DK8Xy6Kr.mjs} +1 -1
  84. package/package.json +17 -4
  85. package/dist/config-provider.js +0 -14
package/dist/button.js CHANGED
@@ -1,46 +1,52 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as s } from "react/jsx-runtime";
2
2
  import { c as u } from "./clsx-OuTLNxxd.mjs";
3
- import { g as s } from "./getVariantClassName-D7Nhpuec.mjs";
4
- import './button.css';const f = "Button", v = "_root_yed10_21", z = "_modeFilled_yed10_32", g = "_variantPrimary_yed10_32", h = "_pressed_yed10_36", S = "_variantSecondary_yed10_42", b = "_variantDanger_yed10_52", x = "_disabled_yed10_62", N = "_modeOutlined_yed10_69", W = "_modeText_yed10_94", C = "_fullWidth_yed10_118", D = "_sizeSm_yed10_121", L = "_sizeMd_yed10_128", M = "_sizeLg_yed10_135", e = {
5
- root: v,
6
- modeFilled: z,
7
- variantPrimary: g,
8
- pressed: h,
9
- variantSecondary: S,
10
- variantDanger: b,
11
- disabled: x,
12
- modeOutlined: N,
13
- modeText: W,
14
- fullWidth: C,
15
- sizeSm: D,
16
- sizeMd: L,
17
- sizeLg: M
18
- }, P = (a) => {
3
+ import { I as v } from "./Icon-flib0kme.mjs";
4
+ import { g as o } from "./getVariantClassName-D7Nhpuec.mjs";
5
+ import './button.css';const y = "Button", h = "_root_26zpg_21", x = "_modeFilled_26zpg_32", S = "_variantPrimary_26zpg_32", b = "_pressed_26zpg_36", N = "_variantSecondary_26zpg_42", W = "_variantDanger_26zpg_52", C = "_disabled_26zpg_62", D = "_modeOutlined_26zpg_69", L = "_modeText_26zpg_94", M = "_fullWidth_26zpg_118", P = "_sizeSm_26zpg_121", F = "_sizeMd_26zpg_128", I = "_sizeLg_26zpg_135", O = "_icon_26zpg_143", e = {
6
+ root: h,
7
+ modeFilled: x,
8
+ variantPrimary: S,
9
+ pressed: b,
10
+ variantSecondary: N,
11
+ variantDanger: W,
12
+ disabled: C,
13
+ modeOutlined: D,
14
+ modeText: L,
15
+ fullWidth: M,
16
+ sizeSm: P,
17
+ sizeMd: F,
18
+ sizeLg: I,
19
+ icon: O
20
+ }, T = (a) => {
19
21
  const {
20
- children: d,
21
- disabled: t = !1,
22
- fullWidth: i = !1,
23
- mode: n = "filled",
24
- onClick: r,
25
- size: _ = "md",
26
- variant: l = "primary",
22
+ children: t,
23
+ disabled: i = !1,
24
+ fullWidth: r = !1,
25
+ icon: n,
26
+ mode: d = "filled",
27
+ onClick: _,
28
+ size: l = "md",
29
+ variant: c = "primary",
27
30
  pressed: m,
28
- as: c = "button",
29
- ...y
30
- } = a, p = u(
31
+ as: p = "button",
32
+ ...z
33
+ } = a, g = u(
31
34
  e.root,
32
- s("size", _, e),
33
- s("variant", l, e),
34
- s("mode", n, e),
35
+ o("size", l, e),
36
+ o("variant", c, e),
37
+ o("mode", d, e),
35
38
  {
36
- [e.fullWidth]: i,
39
+ [e.fullWidth]: r,
37
40
  [e.pressed]: m,
38
- [e.disabled]: t
41
+ [e.disabled]: i
39
42
  }
40
43
  );
41
- return /* @__PURE__ */ o(c, { className: p, disabled: t, onClick: r, ...y, children: d && /* @__PURE__ */ o("span", { children: d }) });
44
+ return /* @__PURE__ */ f(p, { className: g, disabled: i, onClick: _, ...z, children: [
45
+ n && /* @__PURE__ */ s("span", { className: e.icon, children: /* @__PURE__ */ s(v, { name: n, size: 16 }) }),
46
+ t && /* @__PURE__ */ s("span", { children: t })
47
+ ] });
42
48
  };
43
- P.displayName = f;
49
+ T.displayName = y;
44
50
  export {
45
- P as Button
51
+ T as Button
46
52
  };
package/dist/card.css CHANGED
@@ -1 +1 @@
1
- :root{--card-radius: var(--radius-3)}._root_1cztt_5{background:var(--color-background-primary);border-radius:var(--card-radius);display:flex;flex-direction:column;width:100%}._paddingNone_1cztt_13{padding:0}._paddingSm_1cztt_17{padding:var(--space-3)}._paddingMd_1cztt_21{padding:var(--space-5)}._paddingLg_1cztt_25{padding:var(--space-7)}._variantElevated_1cztt_29{box-shadow:var(--shadow-sm)}._variantFilled_1cztt_33{background:var(--color-background-secondary)}._variantOutlined_1cztt_37{border:1px solid var(--color-border-primary)}
1
+ :root{--card-radius: var(--lui-radius-3)}._root_r1od3_5{background:var(--lui-color-background-primary);border-radius:var(--card-radius);display:flex;flex-direction:column;width:100%}._paddingNone_r1od3_13{padding:0}._paddingSm_r1od3_17{padding:var(--lui-space-3)}._paddingMd_r1od3_21{padding:var(--lui-space-5)}._paddingLg_r1od3_25{padding:var(--lui-space-7)}._variantElevated_r1od3_29{box-shadow:var(--lui-shadow-sm)}._variantFilled_r1od3_33{background:var(--lui-color-background-secondary)}._variantOutlined_r1od3_37{border:1px solid var(--lui-color-border-primary)}
package/dist/card.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { c as s } from "./clsx-OuTLNxxd.mjs";
3
3
  import { g as a } from "./getVariantClassName-D7Nhpuec.mjs";
4
- import './card.css';const c = "Card", _ = "_root_1cztt_5", l = "_paddingNone_1cztt_13", g = "_paddingSm_1cztt_17", p = "_paddingMd_1cztt_21", v = "_paddingLg_1cztt_25", m = "_variantElevated_1cztt_29", z = "_variantFilled_1cztt_33", N = "_variantOutlined_1cztt_37", t = {
5
- root: _,
6
- paddingNone: l,
7
- paddingSm: g,
8
- paddingMd: p,
4
+ import './card.css';const _ = "Card", l = "_root_r1od3_5", g = "_paddingNone_r1od3_13", p = "_paddingSm_r1od3_17", c = "_paddingMd_r1od3_21", v = "_paddingLg_r1od3_25", m = "_variantElevated_r1od3_29", N = "_variantFilled_r1od3_33", u = "_variantOutlined_r1od3_37", d = {
5
+ root: l,
6
+ paddingNone: g,
7
+ paddingSm: p,
8
+ paddingMd: c,
9
9
  paddingLg: v,
10
10
  variantElevated: m,
11
- variantFilled: z,
12
- variantOutlined: N
13
- }, u = (d) => {
14
- const { children: n, padding: i = "md", variant: o = "elevated" } = d, r = s(
15
- t.root,
16
- a("padding", i, t),
17
- a("variant", o, t)
11
+ variantFilled: N,
12
+ variantOutlined: u
13
+ }, C = (n) => {
14
+ const { children: t, padding: o = "md", variant: i = "elevated" } = n, r = s(
15
+ d.root,
16
+ a("padding", o, d),
17
+ a("variant", i, d)
18
18
  );
19
- return /* @__PURE__ */ e("div", { className: r, children: n });
19
+ return /* @__PURE__ */ e("div", { className: r, children: t });
20
20
  };
21
- u.displayName = c;
21
+ C.displayName = _;
22
22
  export {
23
- u as Card
23
+ C as Card
24
24
  };
package/dist/checkbox.css CHANGED
@@ -1 +1 @@
1
- :root{--checkbox-bg: var(--color-background-primary);--checkbox-border: var(--color-border-primary);--checkbox-checked-bg: var(--color-background-brand);--checkbox-checked-border: var(--color-background-brand);--checkbox-check-color: var(--color-text-on-brand);--checkbox-disabled-bg: var(--color-background-disabled);--checkbox-disabled-border: var(--color-border-disabled);--checkbox-disabled-check: var(--color-text-disabled);--checkbox-invalid-border: var(--color-border-focus-error);--checkbox-radius: var(--radius-1);--checkbox-gap-sm: var(--space-1);--checkbox-gap-md: var(--space-2)}._root_wvjw9_16{align-items:center;cursor:pointer;display:flex;position:relative;-webkit-user-select:none;user-select:none;width:100%}._root_wvjw9_16._disabled_wvjw9_24{cursor:not-allowed}._root_wvjw9_16._disabled_wvjw9_24 ._checkbox_wvjw9_27:before{background-color:var(--checkbox-disabled-bg);border-color:var(--checkbox-disabled-border)}._root_wvjw9_16._disabled_wvjw9_24 ._input_wvjw9_31:checked+._checkbox_wvjw9_27:after,._root_wvjw9_16._disabled_wvjw9_24._indeterminate_wvjw9_31 ._checkbox_wvjw9_27:after{background-color:var(--checkbox-disabled-check)}._root_wvjw9_16._invalid_wvjw9_34 ._checkbox_wvjw9_27:before{border-color:var(--checkbox-invalid-border)}._root_wvjw9_16._sizeSm_wvjw9_37{gap:var(--checkbox-gap-sm)}._root_wvjw9_16._sizeSm_wvjw9_37 ._checkbox_wvjw9_27{flex-basis:20px;height:20px;width:20px}._root_wvjw9_16._sizeSm_wvjw9_37 ._checkbox_wvjw9_27:after{height:12px;width:12px}._root_wvjw9_16._sizeSm_wvjw9_37 ._label_wvjw9_49{font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);line-height:var(--line-height-sm)}._root_wvjw9_16._sizeMd_wvjw9_54{gap:var(--checkbox-gap-md)}._root_wvjw9_16._sizeMd_wvjw9_54 ._checkbox_wvjw9_27{flex-basis:24px;height:24px;width:24px}._root_wvjw9_16._sizeMd_wvjw9_54 ._checkbox_wvjw9_27:after{height:14px;width:14px}._root_wvjw9_16._sizeMd_wvjw9_54 ._label_wvjw9_49{font-size:var(--font-size-md);font-weight:var(--font-weight-medium);line-height:var(--line-height-md)}._root_wvjw9_16._sizeLg_wvjw9_71{gap:var(--checkbox-gap-md)}._root_wvjw9_16._sizeLg_wvjw9_71 ._checkbox_wvjw9_27{flex-basis:28px;height:28px;width:28px}._root_wvjw9_16._sizeLg_wvjw9_71 ._checkbox_wvjw9_27:after{height:16px;width:16px}._root_wvjw9_16._sizeLg_wvjw9_71 ._label_wvjw9_49{font-size:var(--font-size-lg);font-weight:var(--font-weight-medium);line-height:var(--line-height-lg)}._checkbox_wvjw9_27{flex-grow:0;flex-shrink:0;padding:2px;position:relative}._checkbox_wvjw9_27:after{background-color:var(--checkbox-bg);content:"";height:14px;inset:0;margin:auto;position:absolute;width:14px}._checkbox_wvjw9_27:before{background-color:var(--checkbox-bg);border:1px solid var(--checkbox-border);border-radius:var(--checkbox-radius);content:"";inset:2px;position:absolute}._input_wvjw9_31:checked+._checkbox_wvjw9_27:before,._indeterminate_wvjw9_31 ._checkbox_wvjw9_27:before{background-color:var(--checkbox-checked-bg);border-color:var(--checkbox-checked-border)}._input_wvjw9_31:checked+._checkbox_wvjw9_27:after{clip-path:path(evenodd,"M10.9593 2.79299C11.3498 2.40252 11.9828 2.40263 12.3734 2.79299C12.7639 3.18352 12.7639 3.81653 12.3734 4.20706L5.95735 10.624C5.56693 11.0145 4.93383 11.0142 4.54328 10.624L1.62629 7.70706L1.55793 7.63089C1.23758 7.23811 1.26018 6.65911 1.62629 6.29299C1.99241 5.92688 2.57141 5.90429 2.96418 6.22464L3.04035 6.29299L5.24934 8.50198L10.9593 2.79299Z")}._indeterminate_wvjw9_31 ._checkbox_wvjw9_27:after{clip-path:path(evenodd,"M11.0836 6L11.1852 6.00488C11.6896 6.05592 12.0836 6.4821 12.0836 7C12.0836 7.5179 11.6896 7.94408 11.1852 7.99512L11.0836 8H2.91666C2.36437 8 1.91666 7.55228 1.91666 7C1.91666 6.44772 2.36437 6 2.91666 6H11.0836Z")}._input_wvjw9_31{left:0;position:absolute;visibility:hidden}._label_wvjw9_49{color:var(--color-text-secondary);display:block}
1
+ :root{--checkbox-bg: var(--lui-color-background-primary);--checkbox-border: var(--lui-color-border-primary);--checkbox-checked-bg: var(--lui-color-background-brand);--checkbox-checked-border: var(--lui-color-background-brand);--checkbox-check-color: var(--lui-color-text-on-brand);--checkbox-disabled-bg: var(--lui-color-background-disabled);--checkbox-disabled-border: var(--lui-color-border-disabled);--checkbox-disabled-check: var(--lui-color-text-disabled);--checkbox-invalid-border: var(--lui-color-border-focus-error);--checkbox-radius: var(--lui-radius-1);--checkbox-gap-sm: var(--lui-space-1);--checkbox-gap-md: var(--lui-space-2)}._root_tw8jr_16{align-items:center;cursor:pointer;display:flex;position:relative;-webkit-user-select:none;user-select:none;width:100%}._root_tw8jr_16._disabled_tw8jr_24{cursor:not-allowed}._root_tw8jr_16._disabled_tw8jr_24 ._checkbox_tw8jr_27:before{background-color:var(--checkbox-disabled-bg);border-color:var(--checkbox-disabled-border)}._root_tw8jr_16._disabled_tw8jr_24 ._input_tw8jr_31:checked+._checkbox_tw8jr_27:after,._root_tw8jr_16._disabled_tw8jr_24._indeterminate_tw8jr_31 ._checkbox_tw8jr_27:after{background-color:var(--checkbox-disabled-check)}._root_tw8jr_16._invalid_tw8jr_34 ._checkbox_tw8jr_27:before{border-color:var(--checkbox-invalid-border)}._root_tw8jr_16._sizeSm_tw8jr_37{gap:var(--checkbox-gap-sm)}._root_tw8jr_16._sizeSm_tw8jr_37 ._checkbox_tw8jr_27{flex-basis:20px;height:20px;width:20px}._root_tw8jr_16._sizeSm_tw8jr_37 ._checkbox_tw8jr_27:after{height:12px;width:12px}._root_tw8jr_16._sizeSm_tw8jr_37 ._label_tw8jr_49{font-size:var(--lui-font-size-sm);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-sm)}._root_tw8jr_16._sizeMd_tw8jr_54{gap:var(--checkbox-gap-md)}._root_tw8jr_16._sizeMd_tw8jr_54 ._checkbox_tw8jr_27{flex-basis:24px;height:24px;width:24px}._root_tw8jr_16._sizeMd_tw8jr_54 ._checkbox_tw8jr_27:after{height:14px;width:14px}._root_tw8jr_16._sizeMd_tw8jr_54 ._label_tw8jr_49{font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-md)}._root_tw8jr_16._sizeLg_tw8jr_71{gap:var(--checkbox-gap-md)}._root_tw8jr_16._sizeLg_tw8jr_71 ._checkbox_tw8jr_27{flex-basis:28px;height:28px;width:28px}._root_tw8jr_16._sizeLg_tw8jr_71 ._checkbox_tw8jr_27:after{height:16px;width:16px}._root_tw8jr_16._sizeLg_tw8jr_71 ._label_tw8jr_49{font-size:var(--lui-font-size-lg);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-lg)}._checkbox_tw8jr_27{flex-grow:0;flex-shrink:0;padding:2px;position:relative}._checkbox_tw8jr_27:after{background-color:var(--checkbox-bg);content:"";height:14px;inset:0;margin:auto;position:absolute;width:14px}._checkbox_tw8jr_27:before{background-color:var(--checkbox-bg);border:1px solid var(--checkbox-border);border-radius:var(--checkbox-radius);content:"";inset:2px;position:absolute}._input_tw8jr_31:checked+._checkbox_tw8jr_27:before,._indeterminate_tw8jr_31 ._checkbox_tw8jr_27:before{background-color:var(--checkbox-checked-bg);border-color:var(--checkbox-checked-border)}._input_tw8jr_31:checked+._checkbox_tw8jr_27:after{clip-path:path(evenodd,"M10.9593 2.79299C11.3498 2.40252 11.9828 2.40263 12.3734 2.79299C12.7639 3.18352 12.7639 3.81653 12.3734 4.20706L5.95735 10.624C5.56693 11.0145 4.93383 11.0142 4.54328 10.624L1.62629 7.70706L1.55793 7.63089C1.23758 7.23811 1.26018 6.65911 1.62629 6.29299C1.99241 5.92688 2.57141 5.90429 2.96418 6.22464L3.04035 6.29299L5.24934 8.50198L10.9593 2.79299Z")}._indeterminate_tw8jr_31 ._checkbox_tw8jr_27:after{clip-path:path(evenodd,"M11.0836 6L11.1852 6.00488C11.6896 6.05592 12.0836 6.4821 12.0836 7C12.0836 7.5179 11.6896 7.94408 11.1852 7.99512L11.0836 8H2.91666C2.36437 8 1.91666 7.55228 1.91666 7C1.91666 6.44772 2.36437 6 2.91666 6H11.0836Z")}._input_tw8jr_31{left:0;position:absolute;visibility:hidden}._label_tw8jr_49{color:var(--lui-color-text-secondary);display:block}
package/dist/checkbox.js CHANGED
@@ -1,42 +1,42 @@
1
- import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
- import { useRef as u, useCallback as p, useEffect as v } from "react";
3
- import { c as h } from "./clsx-OuTLNxxd.mjs";
4
- import { g as j } from "./getVariantClassName-D7Nhpuec.mjs";
5
- import './checkbox.css';const x = "Checkbox", z = "_root_wvjw9_16", g = "_disabled_wvjw9_24", k = "_checkbox_wvjw9_27", C = "_input_wvjw9_31", N = "_indeterminate_wvjw9_31", y = "_invalid_wvjw9_34", L = "_sizeSm_wvjw9_37", M = "_label_wvjw9_49", S = "_sizeMd_wvjw9_54", R = "_sizeLg_wvjw9_71", e = {
6
- root: z,
7
- disabled: g,
8
- checkbox: k,
9
- input: C,
10
- indeterminate: N,
1
+ import { jsxs as u, jsx as a } from "react/jsx-runtime";
2
+ import { useRef as p, useCallback as h, useEffect as j } from "react";
3
+ import { c as x } from "./clsx-OuTLNxxd.mjs";
4
+ import { g as z } from "./getVariantClassName-D7Nhpuec.mjs";
5
+ import './checkbox.css';const w = "Checkbox", g = "_root_tw8jr_16", k = "_disabled_tw8jr_24", C = "_checkbox_tw8jr_27", N = "_input_tw8jr_31", v = "_indeterminate_tw8jr_31", y = "_invalid_tw8jr_34", L = "_sizeSm_tw8jr_37", M = "_label_tw8jr_49", S = "_sizeMd_tw8jr_54", R = "_sizeLg_tw8jr_71", e = {
6
+ root: g,
7
+ disabled: k,
8
+ checkbox: C,
9
+ input: N,
10
+ indeterminate: v,
11
11
  invalid: y,
12
12
  sizeSm: L,
13
13
  label: M,
14
14
  sizeMd: S,
15
15
  sizeLg: R
16
- }, A = (l) => {
17
- const { ref: s, children: c, indeterminate: n, invalid: r = !1, size: _ = "md", onChange: d, ...o } = l, i = u(null), m = p(
18
- (t) => {
19
- i.current = t, typeof s == "function" ? s(t) : s && (s.current = t);
16
+ }, A = (o) => {
17
+ const { ref: t, children: r, indeterminate: n, invalid: l = !1, size: _ = "md", onChange: d, ...c } = o, i = p(null), m = h(
18
+ (s) => {
19
+ i.current = s, typeof t == "function" ? t(s) : t && (t.current = s);
20
20
  },
21
- [s]
21
+ [t]
22
22
  );
23
- v(() => {
23
+ j(() => {
24
24
  i.current && (i.current.indeterminate = !!n);
25
25
  }, [n]);
26
- const w = h(e.root, j("size", _, e), {
27
- [e.disabled]: o.disabled === !0,
26
+ const b = x(e.root, z("size", _, e), {
27
+ [e.disabled]: c.disabled === !0,
28
28
  [e.indeterminate]: n,
29
- [e.invalid]: r
30
- }), b = (t) => {
31
- d?.(t.target.checked);
29
+ [e.invalid]: l
30
+ }), f = (s) => {
31
+ d?.(s.target.checked);
32
32
  };
33
- return /* @__PURE__ */ f("label", { className: w, children: [
34
- /* @__PURE__ */ a("input", { ref: m, className: e.input, onChange: b, type: "checkbox", ...o }),
33
+ return /* @__PURE__ */ u("label", { className: b, children: [
34
+ /* @__PURE__ */ a("input", { ref: m, className: e.input, onChange: f, type: "checkbox", ...c }),
35
35
  /* @__PURE__ */ a("span", { className: e.checkbox }),
36
- c && /* @__PURE__ */ a("span", { className: e.label, children: c })
36
+ r && /* @__PURE__ */ a("span", { className: e.label, children: r })
37
37
  ] });
38
38
  };
39
- A.displayName = x;
39
+ A.displayName = w;
40
40
  export {
41
41
  A as Checkbox
42
42
  };
@@ -1,104 +1,104 @@
1
1
  :root {
2
2
  /* Brand */
3
- --palette-brand: #6366f3;
4
- --palette-brand-hover: #5558e6;
5
- --palette-brand-secondary: #eef2ff;
3
+ --lui-palette-brand: #6366f3;
4
+ --lui-palette-brand-hover: #5558e6;
5
+ --lui-palette-brand-secondary: #eef2ff;
6
6
 
7
7
  /* Gray scale */
8
- --palette-gray-25: #fcfcfd;
9
- --palette-gray-50: #f9fafb;
10
- --palette-gray-100: #f2f4f7;
11
- --palette-gray-200: #e4e7ec;
12
- --palette-gray-300: #d0d5dd;
13
- --palette-gray-400: #98a2b3;
14
- --palette-gray-500: #667085;
15
- --palette-gray-600: #475467;
16
- --palette-gray-700: #344054;
17
- --palette-gray-800: #1d2939;
18
- --palette-gray-900: #101828;
8
+ --lui-palette-gray-25: #fcfcfd;
9
+ --lui-palette-gray-50: #f9fafb;
10
+ --lui-palette-gray-100: #f2f4f7;
11
+ --lui-palette-gray-200: #e4e7ec;
12
+ --lui-palette-gray-300: #d0d5dd;
13
+ --lui-palette-gray-400: #98a2b3;
14
+ --lui-palette-gray-500: #667085;
15
+ --lui-palette-gray-600: #475467;
16
+ --lui-palette-gray-700: #344054;
17
+ --lui-palette-gray-800: #1d2939;
18
+ --lui-palette-gray-900: #101828;
19
19
 
20
20
  /* Colors */
21
- --palette-red-500: #d92d20;
22
- --palette-red-600: #b42318;
23
- --palette-orange-500: #b54708;
24
- --palette-orange-600: #93370d;
25
- --palette-green-500: #079455;
26
- --palette-green-600: #067647;
27
- --palette-blue-500: #175cd3;
28
- --palette-blue-600: #1250b3;
21
+ --lui-palette-red-500: #d92d20;
22
+ --lui-palette-red-600: #b42318;
23
+ --lui-palette-orange-500: #b54708;
24
+ --lui-palette-orange-600: #93370d;
25
+ --lui-palette-green-500: #079455;
26
+ --lui-palette-green-600: #067647;
27
+ --lui-palette-blue-500: #175cd3;
28
+ --lui-palette-blue-600: #1250b3;
29
29
 
30
30
  /* Neutral */
31
- --palette-white: #fff;
32
- --palette-black: #000;
33
- --palette-overlay: rgb(0, 0, 0 / 0.4);
31
+ --lui-palette-white: #fff;
32
+ --lui-palette-black: #000;
33
+ --lui-palette-overlay: rgb(0, 0, 0 / 0.4);
34
34
  }
35
35
 
36
36
  [data-theme="dark"] {
37
37
  /* Brand */
38
- --palette-brand: #818cf8;
39
- --palette-brand-hover: #6366f3;
40
- --palette-brand-secondary: #1e1b4b;
38
+ --lui-palette-brand: #818cf8;
39
+ --lui-palette-brand-hover: #6366f3;
40
+ --lui-palette-brand-secondary: #1e1b4b;
41
41
 
42
42
  /* Gray scale */
43
- --palette-gray-25: #0a0a0b;
44
- --palette-gray-50: #141416;
45
- --palette-gray-100: #1c1c1f;
46
- --palette-gray-200: #26262b;
47
- --palette-gray-300: #3a3a42;
48
- --palette-gray-400: #5c5c66;
49
- --palette-gray-500: #7a7a85;
50
- --palette-gray-600: #9d9da8;
51
- --palette-gray-700: #bebec9;
52
- --palette-gray-800: #dedee6;
53
- --palette-gray-900: #f2f2f7;
43
+ --lui-palette-gray-25: #0a0a0b;
44
+ --lui-palette-gray-50: #141416;
45
+ --lui-palette-gray-100: #1c1c1f;
46
+ --lui-palette-gray-200: #26262b;
47
+ --lui-palette-gray-300: #3a3a42;
48
+ --lui-palette-gray-400: #5c5c66;
49
+ --lui-palette-gray-500: #7a7a85;
50
+ --lui-palette-gray-600: #9d9da8;
51
+ --lui-palette-gray-700: #bebec9;
52
+ --lui-palette-gray-800: #dedee6;
53
+ --lui-palette-gray-900: #f2f2f7;
54
54
 
55
55
  /* Colors */
56
- --palette-red-500: #f97066;
57
- --palette-red-600: #f04438;
58
- --palette-orange-500: #fdb022;
59
- --palette-orange-600: #f79009;
60
- --palette-green-500: #47cd89;
61
- --palette-green-600: #2ed477;
62
- --palette-blue-500: #53b1fd;
63
- --palette-blue-600: #2e90fa;
56
+ --lui-palette-red-500: #f97066;
57
+ --lui-palette-red-600: #f04438;
58
+ --lui-palette-orange-500: #fdb022;
59
+ --lui-palette-orange-600: #f79009;
60
+ --lui-palette-green-500: #47cd89;
61
+ --lui-palette-green-600: #2ed477;
62
+ --lui-palette-blue-500: #53b1fd;
63
+ --lui-palette-blue-600: #2e90fa;
64
64
 
65
65
  /* Neutral */
66
- --palette-white: #141416;
67
- --palette-black: #fff;
68
- --palette-overlay: rgb(0, 0, 0 / 0.6);
66
+ --lui-palette-white: #141416;
67
+ --lui-palette-black: #fff;
68
+ --lui-palette-overlay: rgb(0, 0, 0 / 0.6);
69
69
  }
70
70
 
71
71
  [data-theme="contrast"] {
72
72
  /* Brand */
73
- --palette-brand: #00f;
74
- --palette-brand-hover: #00c;
75
- --palette-brand-secondary: #e6e6ff;
73
+ --lui-palette-brand: #00f;
74
+ --lui-palette-brand-hover: #00c;
75
+ --lui-palette-brand-secondary: #e6e6ff;
76
76
 
77
77
  /* Gray scale */
78
- --palette-gray-25: #fff;
79
- --palette-gray-50: #f0f0f0;
80
- --palette-gray-100: #e0e0e0;
81
- --palette-gray-200: #c0c0c0;
82
- --palette-gray-300: #808080;
83
- --palette-gray-400: #606060;
84
- --palette-gray-500: #404040;
85
- --palette-gray-600: #202020;
86
- --palette-gray-700: #101010;
87
- --palette-gray-800: #080808;
88
- --palette-gray-900: #000;
78
+ --lui-palette-gray-25: #fff;
79
+ --lui-palette-gray-50: #f0f0f0;
80
+ --lui-palette-gray-100: #e0e0e0;
81
+ --lui-palette-gray-200: #c0c0c0;
82
+ --lui-palette-gray-300: #808080;
83
+ --lui-palette-gray-400: #606060;
84
+ --lui-palette-gray-500: #404040;
85
+ --lui-palette-gray-600: #202020;
86
+ --lui-palette-gray-700: #101010;
87
+ --lui-palette-gray-800: #080808;
88
+ --lui-palette-gray-900: #000;
89
89
 
90
90
  /* Colors */
91
- --palette-red-500: #c00;
92
- --palette-red-600: #900;
93
- --palette-orange-500: #c60;
94
- --palette-orange-600: #994d00;
95
- --palette-green-500: #060;
96
- --palette-green-600: #004d00;
97
- --palette-blue-500: #04c;
98
- --palette-blue-600: #039;
91
+ --lui-palette-red-500: #c00;
92
+ --lui-palette-red-600: #900;
93
+ --lui-palette-orange-500: #c60;
94
+ --lui-palette-orange-600: #994d00;
95
+ --lui-palette-green-500: #060;
96
+ --lui-palette-green-600: #004d00;
97
+ --lui-palette-blue-500: #04c;
98
+ --lui-palette-blue-600: #039;
99
99
 
100
100
  /* Neutral */
101
- --palette-white: #fff;
102
- --palette-black: #000;
103
- --palette-overlay: rgb(0, 0, 0 / 0.7);
101
+ --lui-palette-white: #fff;
102
+ --lui-palette-black: #000;
103
+ --lui-palette-overlay: rgb(0, 0, 0 / 0.7);
104
104
  }
@@ -1,104 +1,104 @@
1
1
  :root {
2
2
  /* Brand */
3
- --palette-brand: #44403c;
4
- --palette-brand-hover: #292524;
5
- --palette-brand-secondary: #f5f5f4;
3
+ --lui-palette-brand: #44403c;
4
+ --lui-palette-brand-hover: #292524;
5
+ --lui-palette-brand-secondary: #f5f5f4;
6
6
 
7
7
  /* Gray scale (warm) */
8
- --palette-gray-25: #fcfcf9;
9
- --palette-gray-50: #fafaf9;
10
- --palette-gray-100: #f5f5f4;
11
- --palette-gray-200: #e7e5e4;
12
- --palette-gray-300: #d6d3d1;
13
- --palette-gray-400: #a8a29e;
14
- --palette-gray-500: #78716c;
15
- --palette-gray-600: #57534e;
16
- --palette-gray-700: #44403c;
17
- --palette-gray-800: #292524;
18
- --palette-gray-900: #1c1917;
8
+ --lui-palette-gray-25: #fcfcf9;
9
+ --lui-palette-gray-50: #fafaf9;
10
+ --lui-palette-gray-100: #f5f5f4;
11
+ --lui-palette-gray-200: #e7e5e4;
12
+ --lui-palette-gray-300: #d6d3d1;
13
+ --lui-palette-gray-400: #a8a29e;
14
+ --lui-palette-gray-500: #78716c;
15
+ --lui-palette-gray-600: #57534e;
16
+ --lui-palette-gray-700: #44403c;
17
+ --lui-palette-gray-800: #292524;
18
+ --lui-palette-gray-900: #1c1917;
19
19
 
20
20
  /* Colors (same as indigo) */
21
- --palette-red-500: #d92d20;
22
- --palette-red-600: #b42318;
23
- --palette-orange-500: #b54708;
24
- --palette-orange-600: #93370d;
25
- --palette-green-500: #079455;
26
- --palette-green-600: #067647;
27
- --palette-blue-500: #175cd3;
28
- --palette-blue-600: #1250b3;
21
+ --lui-palette-red-500: #d92d20;
22
+ --lui-palette-red-600: #b42318;
23
+ --lui-palette-orange-500: #b54708;
24
+ --lui-palette-orange-600: #93370d;
25
+ --lui-palette-green-500: #079455;
26
+ --lui-palette-green-600: #067647;
27
+ --lui-palette-blue-500: #175cd3;
28
+ --lui-palette-blue-600: #1250b3;
29
29
 
30
30
  /* Neutral */
31
- --palette-white: #fff;
32
- --palette-black: #000;
33
- --palette-overlay: rgb(0, 0, 0 / 0.4);
31
+ --lui-palette-white: #fff;
32
+ --lui-palette-black: #000;
33
+ --lui-palette-overlay: rgb(0, 0, 0 / 0.4);
34
34
  }
35
35
 
36
36
  [data-theme="dark"] {
37
37
  /* Brand */
38
- --palette-brand: #d6d3d1;
39
- --palette-brand-hover: #e7e5e4;
40
- --palette-brand-secondary: #292524;
38
+ --lui-palette-brand: #d6d3d1;
39
+ --lui-palette-brand-hover: #e7e5e4;
40
+ --lui-palette-brand-secondary: #292524;
41
41
 
42
42
  /* Gray scale (warm, inverted) */
43
- --palette-gray-25: #0c0a09;
44
- --palette-gray-50: #141211;
45
- --palette-gray-100: #1c1917;
46
- --palette-gray-200: #292524;
47
- --palette-gray-300: #44403c;
48
- --palette-gray-400: #57534e;
49
- --palette-gray-500: #78716c;
50
- --palette-gray-600: #a8a29e;
51
- --palette-gray-700: #d6d3d1;
52
- --palette-gray-800: #e7e5e4;
53
- --palette-gray-900: #f5f5f4;
43
+ --lui-palette-gray-25: #0c0a09;
44
+ --lui-palette-gray-50: #141211;
45
+ --lui-palette-gray-100: #1c1917;
46
+ --lui-palette-gray-200: #292524;
47
+ --lui-palette-gray-300: #44403c;
48
+ --lui-palette-gray-400: #57534e;
49
+ --lui-palette-gray-500: #78716c;
50
+ --lui-palette-gray-600: #a8a29e;
51
+ --lui-palette-gray-700: #d6d3d1;
52
+ --lui-palette-gray-800: #e7e5e4;
53
+ --lui-palette-gray-900: #f5f5f4;
54
54
 
55
55
  /* Colors (same as indigo) */
56
- --palette-red-500: #f97066;
57
- --palette-red-600: #f04438;
58
- --palette-orange-500: #fdb022;
59
- --palette-orange-600: #f79009;
60
- --palette-green-500: #47cd89;
61
- --palette-green-600: #2ed477;
62
- --palette-blue-500: #53b1fd;
63
- --palette-blue-600: #2e90fa;
56
+ --lui-palette-red-500: #f97066;
57
+ --lui-palette-red-600: #f04438;
58
+ --lui-palette-orange-500: #fdb022;
59
+ --lui-palette-orange-600: #f79009;
60
+ --lui-palette-green-500: #47cd89;
61
+ --lui-palette-green-600: #2ed477;
62
+ --lui-palette-blue-500: #53b1fd;
63
+ --lui-palette-blue-600: #2e90fa;
64
64
 
65
65
  /* Neutral */
66
- --palette-white: #141211;
67
- --palette-black: #fff;
68
- --palette-overlay: rgb(0, 0, 0 / 0.6);
66
+ --lui-palette-white: #141211;
67
+ --lui-palette-black: #fff;
68
+ --lui-palette-overlay: rgb(0, 0, 0 / 0.6);
69
69
  }
70
70
 
71
71
  [data-theme="contrast"] {
72
72
  /* Brand */
73
- --palette-brand: #000;
74
- --palette-brand-hover: #333;
75
- --palette-brand-secondary: #fff;
73
+ --lui-palette-brand: #000;
74
+ --lui-palette-brand-hover: #333;
75
+ --lui-palette-brand-secondary: #fff;
76
76
 
77
77
  /* Gray scale (pure b/w) */
78
- --palette-gray-25: #fff;
79
- --palette-gray-50: #f0f0f0;
80
- --palette-gray-100: #e0e0e0;
81
- --palette-gray-200: #c0c0c0;
82
- --palette-gray-300: #808080;
83
- --palette-gray-400: #606060;
84
- --palette-gray-500: #404040;
85
- --palette-gray-600: #202020;
86
- --palette-gray-700: #101010;
87
- --palette-gray-800: #080808;
88
- --palette-gray-900: #000;
78
+ --lui-palette-gray-25: #fff;
79
+ --lui-palette-gray-50: #f0f0f0;
80
+ --lui-palette-gray-100: #e0e0e0;
81
+ --lui-palette-gray-200: #c0c0c0;
82
+ --lui-palette-gray-300: #808080;
83
+ --lui-palette-gray-400: #606060;
84
+ --lui-palette-gray-500: #404040;
85
+ --lui-palette-gray-600: #202020;
86
+ --lui-palette-gray-700: #101010;
87
+ --lui-palette-gray-800: #080808;
88
+ --lui-palette-gray-900: #000;
89
89
 
90
90
  /* Colors (same as indigo) */
91
- --palette-red-500: #c00;
92
- --palette-red-600: #900;
93
- --palette-orange-500: #c60;
94
- --palette-orange-600: #994d00;
95
- --palette-green-500: #060;
96
- --palette-green-600: #004d00;
97
- --palette-blue-500: #04c;
98
- --palette-blue-600: #039;
91
+ --lui-palette-red-500: #c00;
92
+ --lui-palette-red-600: #900;
93
+ --lui-palette-orange-500: #c60;
94
+ --lui-palette-orange-600: #994d00;
95
+ --lui-palette-green-500: #060;
96
+ --lui-palette-green-600: #004d00;
97
+ --lui-palette-blue-500: #04c;
98
+ --lui-palette-blue-600: #039;
99
99
 
100
100
  /* Neutral */
101
- --palette-white: #fff;
102
- --palette-black: #000;
103
- --palette-overlay: rgb(0, 0, 0 / 0.7);
101
+ --lui-palette-white: #fff;
102
+ --lui-palette-black: #000;
103
+ --lui-palette-overlay: rgb(0, 0, 0 / 0.7);
104
104
  }