@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.
Files changed (106) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/Actions-CEIXfLKN.mjs +26 -0
  3. package/dist/Actions.css +1 -0
  4. package/dist/ActiveFilters-BJojmc-d.mjs +29 -0
  5. package/dist/ActiveFilters.css +1 -0
  6. package/dist/Button-BN85EtaZ.mjs +52 -0
  7. package/dist/Button.css +1 -1
  8. package/dist/Cell-BPBvEyeL.mjs +21 -0
  9. package/dist/Cell.css +1 -0
  10. package/dist/Checkbox-Chfzm1Z9.mjs +46 -0
  11. package/dist/Checkbox.css +1 -0
  12. package/dist/Content-ru2X8iBx.mjs +13 -0
  13. package/dist/Content.css +1 -0
  14. package/dist/Group-DyDpeqOP.mjs +16 -0
  15. package/dist/Group.css +1 -0
  16. package/dist/Header-Clhgyr0J.mjs +29 -0
  17. package/dist/Header.css +1 -0
  18. package/dist/Heading-CL47Fqe7.mjs +30 -0
  19. package/dist/Heading.css +1 -0
  20. package/dist/InputBase-BHZWQT9-.mjs +46 -0
  21. package/dist/Item-JbyvZy05.mjs +66 -0
  22. package/dist/Item.css +1 -0
  23. package/dist/Panel-Q06TIYep.mjs +12 -0
  24. package/dist/Provider-CBfZpO45.mjs +12 -0
  25. package/dist/Row-C-3TXoDz.mjs +15 -0
  26. package/dist/Row.css +1 -0
  27. package/dist/Tab-CR0KvVaA.mjs +39 -0
  28. package/dist/Tab.css +1 -0
  29. package/dist/Text-DiOqZt8E.mjs +49 -0
  30. package/dist/Text.css +1 -0
  31. package/dist/Title-aOeFD24v.mjs +13 -0
  32. package/dist/Title.css +1 -0
  33. package/dist/Toolbar-BJQy4qFI.mjs +11 -0
  34. package/dist/Toolbar.css +1 -0
  35. package/dist/Trigger-C_4De6l1.mjs +11 -0
  36. package/dist/accordion.js +1 -1
  37. package/dist/actions.d.ts +13 -0
  38. package/dist/actions.js +4 -0
  39. package/dist/active-filters.d.ts +35 -0
  40. package/dist/active-filters.js +4 -0
  41. package/dist/breadcrumbs.js +1 -1
  42. package/dist/button.js +1 -1
  43. package/dist/cell.d.ts +20 -0
  44. package/dist/cell.js +4 -0
  45. package/dist/checkbox.d.ts +10 -35
  46. package/dist/checkbox.js +2 -40
  47. package/dist/content.d.ts +8 -0
  48. package/dist/content.js +4 -0
  49. package/dist/context.d.ts +44 -0
  50. package/dist/context.js +7 -0
  51. package/dist/dialog.css +1 -1
  52. package/dist/dialog.js +37 -44
  53. package/dist/drawer.css +1 -1
  54. package/dist/drawer.js +72 -93
  55. package/dist/empty-state.css +1 -1
  56. package/dist/empty-state.js +29 -48
  57. package/dist/enums-BnuDYTua.mjs +4 -0
  58. package/dist/enums-CiPhZomh.mjs +6 -0
  59. package/dist/enums-DUZMBQDd.mjs +7 -0
  60. package/dist/{getComponentSlots-DwAYUFNk.mjs → getComponentSlots-DD4iju8N.mjs} +1 -1
  61. package/dist/group.d.ts +12 -0
  62. package/dist/group.js +4 -0
  63. package/dist/header.d.ts +21 -0
  64. package/dist/header.js +4 -0
  65. package/dist/heading.d.ts +55 -0
  66. package/dist/heading.js +7 -0
  67. package/dist/input-base.d.ts +29 -0
  68. package/dist/input-base.js +4 -0
  69. package/dist/input.js +86 -124
  70. package/dist/isValidReactNode-D1buElhX.mjs +17 -0
  71. package/dist/item.d.ts +16 -0
  72. package/dist/item.js +4 -0
  73. package/dist/menu.css +1 -1
  74. package/dist/menu.js +46 -103
  75. package/dist/pagination.js +48 -60
  76. package/dist/panel.d.ts +9 -0
  77. package/dist/panel.js +4 -0
  78. package/dist/radio.css +1 -1
  79. package/dist/radio.js +42 -98
  80. package/dist/row.d.ts +12 -0
  81. package/dist/row.js +4 -0
  82. package/dist/tab.d.ts +30 -0
  83. package/dist/tab.js +4 -0
  84. package/dist/table.css +1 -1
  85. package/dist/table.js +25 -74
  86. package/dist/tabs.css +1 -1
  87. package/dist/tabs.js +30 -72
  88. package/dist/text.d.ts +74 -0
  89. package/dist/text.js +8 -0
  90. package/dist/title.d.ts +8 -0
  91. package/dist/title.js +4 -0
  92. package/dist/toolbar.d.ts +20 -0
  93. package/dist/toolbar.js +4 -0
  94. package/dist/trigger.d.ts +8 -0
  95. package/dist/trigger.js +4 -0
  96. package/dist/typography.d.ts +90 -40
  97. package/dist/typography.js +4 -38
  98. package/dist/useTabsContext-DdF09jQq.mjs +11 -0
  99. package/dist/utils.d.ts +2 -55
  100. package/dist/utils.js +14 -15
  101. package/package.json +1 -1
  102. package/dist/Button-jq8mFP6t.mjs +0 -52
  103. package/dist/checkbox.css +0 -1
  104. package/dist/isValidReactNode-CmYwTWCE.mjs +0 -18
  105. package/dist/typography.css +0 -1
  106. /package/dist/{input.css → InputBase.css} +0 -0
package/dist/drawer.js CHANGED
@@ -1,64 +1,57 @@
1
- import { jsx as t, jsxs as w } from "react/jsx-runtime";
2
- import H, { cloneElement as P, createContext as $, useContext as B, useRef as u, useState as h, useEffect as F, useMemo as j } from "react";
3
- import { i as V } from "./isValidReactNode-CmYwTWCE.mjs";
1
+ import { jsx as e, jsxs as M } from "react/jsx-runtime";
2
+ import L, { cloneElement as P, useRef as u, useState as T, useEffect as b, useMemo as x } from "react";
3
+ import { i as H } from "./isValidReactNode-D1buElhX.mjs";
4
4
  import "lodash/camelCase";
5
- import U from "clsx";
6
- import { useDialog as K, useModalOverlay as Y, Overlay as G, UNSAFE_PortalProvider as J } from "react-aria";
7
- import { useOverlayTriggerState as Q } from "react-stately";
8
- import { g as W } from "./getComponentSlots-DwAYUFNk.mjs";
9
- import { g as T } from "./getVariantClassName-DoCNtwBw.mjs";
10
- import { I as X } from "./Icon-DUCBChX2.mjs";
11
- import { u as Z } from "./useLocale-CJh-krrY.mjs";
12
- import './drawer.css';var o = /* @__PURE__ */ ((e) => (e.ACTIONS = "Drawer.Actions", e.CONTENT = "Drawer.Content", e.HEADER = "Drawer.Header", e))(o || {});
13
- const ee = "_root_1m4yu_1", te = {
14
- root: ee
15
- }, v = ({ children: e }) => {
16
- const r = H.Children.toArray(e), l = r.map((s, c) => {
17
- if (!V("Button", s))
18
- return s;
19
- const n = s.props.variant;
20
- return P(s, {
5
+ import { E as t, D as B, H as F } from "./Header-Clhgyr0J.mjs";
6
+ import j from "clsx";
7
+ import { useDialog as V, useModalOverlay as $, Overlay as U, UNSAFE_PortalProvider as K } from "react-aria";
8
+ import { useOverlayTriggerState as Y } from "react-stately";
9
+ import { g as G } from "./getComponentSlots-DD4iju8N.mjs";
10
+ import { g as h } from "./getVariantClassName-DoCNtwBw.mjs";
11
+ import './drawer.css';const J = "_root_1m4yu_1", Q = {
12
+ root: J
13
+ }, v = ({ children: s }) => {
14
+ const n = L.Children.toArray(s), i = n.map((a, c) => {
15
+ if (!H("Button", a))
16
+ return a;
17
+ const r = a.props.variant;
18
+ return P(a, {
21
19
  key: c,
22
- ...n ? {} : { variant: n ?? (c === 0 ? "primary" : "secondary") }
20
+ ...r ? {} : { variant: r ?? (c === 0 ? "primary" : "secondary") }
23
21
  });
24
22
  });
25
- return r.length === 0 ? null : /* @__PURE__ */ t("div", { className: te.root, children: l });
23
+ return n.length === 0 ? null : /* @__PURE__ */ e("div", { className: Q.root, children: i });
26
24
  };
27
- v.displayName = o.ACTIONS;
28
- const oe = "_root_jagsa_1", re = {
29
- root: oe
30
- }, q = (e) => {
31
- const { children: r } = e;
32
- return /* @__PURE__ */ t("div", { className: re.root, children: r });
25
+ v.displayName = t.ACTIONS;
26
+ const W = "_root_jagsa_1", X = {
27
+ root: W
28
+ }, D = (s) => {
29
+ const { children: n } = s;
30
+ return /* @__PURE__ */ e("div", { className: X.root, children: n });
33
31
  };
34
- q.displayName = o.CONTENT;
35
- const ne = "Drawer", se = [o.ACTIONS, o.CONTENT, o.HEADER], E = $(null), ae = () => {
36
- const e = B(E);
37
- if (!e)
38
- throw new Error("Drawer sub-components must be used within a Drawer component.");
39
- return e;
40
- }, ce = "_underlay_qcy0k_24", le = "_modal_qcy0k_32", ie = "_drawer_qcy0k_37", me = "_placementLeft_qcy0k_47", de = "_entered_qcy0k_53", ue = "_placementRight_qcy0k_56", _e = "_placementTop_qcy0k_65", pe = "_placementBottom_qcy0k_74", ye = "_sizeSm_qcy0k_83", fe = "_sizeMd_qcy0k_90", Ne = "_sizeLg_qcy0k_97", Ce = "_content_qcy0k_105", a = {
41
- underlay: ce,
42
- modal: le,
43
- drawer: ie,
44
- placementLeft: me,
45
- entered: de,
46
- placementRight: ue,
47
- placementTop: _e,
48
- placementBottom: pe,
49
- sizeSm: ye,
50
- sizeMd: fe,
51
- sizeLg: Ne,
52
- content: Ce
53
- }, De = 300, O = (e) => {
54
- const { children: r, container: l, dismissable: s = !0, onOpenChange: c, open: n, placement: y = "right", size: R = "md" } = e, f = u(null), i = u(null), { dialogProps: I } = K(e, f), N = Q({ isOpen: n, onOpenChange: c }), { modalProps: S, underlayProps: z } = Y(
55
- { isDismissable: s, isKeyboardDismissDisabled: !1 },
56
- N,
57
- i
58
- ), [C, D] = h(n || !1), [x, A] = h(!1), m = u(C);
59
- F(() => {
60
- if (n) {
61
- m.current = !0, D(!0);
32
+ D.displayName = t.CONTENT;
33
+ const Z = "Drawer", ee = [t.ACTIONS, t.CONTENT, t.HEADER], te = "_underlay_qcy0k_24", ne = "_modal_qcy0k_32", re = "_drawer_qcy0k_37", oe = "_placementLeft_qcy0k_47", se = "_entered_qcy0k_53", ae = "_placementRight_qcy0k_56", ce = "_placementTop_qcy0k_65", ie = "_placementBottom_qcy0k_74", le = "_sizeSm_qcy0k_83", me = "_sizeMd_qcy0k_90", de = "_sizeLg_qcy0k_97", ue = "_content_qcy0k_105", o = {
34
+ underlay: te,
35
+ modal: ne,
36
+ drawer: re,
37
+ placementLeft: oe,
38
+ entered: se,
39
+ placementRight: ae,
40
+ placementTop: ce,
41
+ placementBottom: ie,
42
+ sizeSm: le,
43
+ sizeMd: me,
44
+ sizeLg: de,
45
+ content: ue
46
+ }, _e = 300, E = (s) => {
47
+ const { children: n, container: i, dismissable: a = !0, onOpenChange: c, open: r, placement: p = "right", size: S = "md" } = s, f = u(null), l = u(null), { dialogProps: q } = V(s, f), y = Y({ isOpen: r, onOpenChange: c }), { modalProps: O, underlayProps: k } = $(
48
+ { isDismissable: a, isKeyboardDismissDisabled: !1 },
49
+ y,
50
+ l
51
+ ), [N, g] = T(r || !1), [R, A] = T(!1), m = u(N);
52
+ b(() => {
53
+ if (r) {
54
+ m.current = !0, g(!0);
62
55
  const d = requestAnimationFrame(() => {
63
56
  requestAnimationFrame(() => {
64
57
  A(!0);
@@ -69,58 +62,44 @@ const ne = "Drawer", se = [o.ACTIONS, o.CONTENT, o.HEADER], E = $(null), ae = ()
69
62
  if (m.current) {
70
63
  A(!1);
71
64
  const d = setTimeout(() => {
72
- m.current = !1, D(!1);
73
- }, De);
65
+ m.current = !1, g(!1);
66
+ }, _e);
74
67
  return () => clearTimeout(d);
75
68
  }
76
- }, [n]);
69
+ }, [r]);
77
70
  const {
78
- [o.ACTIONS]: L,
79
- [o.CONTENT]: g,
80
- [o.HEADER]: M
81
- } = j(() => W(r, se), [r]), b = U(
82
- a.drawer,
83
- T("size", R, a),
84
- T("placement", y, a),
85
- { [a.entered]: x }
71
+ [t.ACTIONS]: w,
72
+ [t.CONTENT]: C,
73
+ [t.HEADER]: z
74
+ } = x(() => G(n, ee), [n]), I = j(
75
+ o.drawer,
76
+ h("size", S, o),
77
+ h("placement", p, o),
78
+ { [o.entered]: R }
86
79
  );
87
- return C ? /* @__PURE__ */ t(G, { portalContainer: l, children: /* @__PURE__ */ t("div", { className: a.underlay, ...z, children: /* @__PURE__ */ t("div", { className: a.modal, ...S, ref: i, children: /* @__PURE__ */ t(J, { getContainer: () => i.current, children: /* @__PURE__ */ t(E.Provider, { value: { close: () => N.close() }, children: /* @__PURE__ */ w(
80
+ return N ? /* @__PURE__ */ e(U, { portalContainer: i, children: /* @__PURE__ */ e("div", { className: o.underlay, ...k, children: /* @__PURE__ */ e("div", { className: o.modal, ...O, ref: l, children: /* @__PURE__ */ e(K, { getContainer: () => l.current, children: /* @__PURE__ */ e(B.Provider, { value: { close: () => y.close() }, children: /* @__PURE__ */ M(
88
81
  "div",
89
82
  {
90
83
  "aria-label": "Drawer",
91
84
  "aria-modal": "true",
92
- className: b,
85
+ className: I,
93
86
  role: "dialog",
94
- ...I,
87
+ ...q,
95
88
  ref: f,
96
89
  children: [
97
- M,
98
- g && /* @__PURE__ */ t("div", { className: a.content, children: g }),
99
- L
90
+ z,
91
+ C && /* @__PURE__ */ e("div", { className: o.content, children: C }),
92
+ w
100
93
  ]
101
94
  }
102
95
  ) }) }) }) }) }) : null;
103
96
  };
104
- O.displayName = ne;
105
- const Ae = "_root_1mypq_13", ge = "_title_1mypq_21", he = "_close_1mypq_31", _ = {
106
- root: Ae,
107
- title: ge,
108
- close: he
109
- }, k = (e) => {
110
- const { children: r } = e, { close: l } = ae(), s = Z(), c = (n) => {
111
- n.preventDefault(), l();
112
- };
113
- return /* @__PURE__ */ w("div", { className: _.root, children: [
114
- /* @__PURE__ */ t("div", { className: _.title, children: r }),
115
- /* @__PURE__ */ t("button", { "aria-label": s.Drawer.Header.close, className: _.close, onClick: c, type: "button", children: /* @__PURE__ */ t(X, { name: "x", size: 16 }) })
116
- ] });
117
- };
118
- k.displayName = o.HEADER;
119
- const p = O;
120
- p.Actions = v;
121
- p.Content = q;
122
- p.Header = k;
97
+ E.displayName = Z;
98
+ const _ = E;
99
+ _.Actions = v;
100
+ _.Content = D;
101
+ _.Header = F;
123
102
  export {
124
- p as Drawer,
125
- p as default
103
+ _ as Drawer,
104
+ _ as default
126
105
  };
@@ -1 +1 @@
1
- ._actions_dl9xv_1{align-items:center;display:flex;gap:var(--lui-space-2);margin-top:var(--lui-space-2)}._content_laixm_1{width:100%}:root{--empty-state-icon-size: 48px}._root_1fqx3_5{align-items:center;display:flex;flex-direction:column;gap:var(--lui-space-2);padding:var(--lui-space-10) var(--lui-space-5);text-align:center}._icon_1fqx3_14{font-size:var(--empty-state-icon-size);line-height:1;margin-bottom:var(--lui-space-2)}._title_1fqx3_20{color:var(--lui-color-text-primary);font-size:var(--lui-font-size-lg);font-weight:var(--lui-font-weight-semibold);line-height:var(--line-height-lg);margin:0}._description_1fqx3_28{color:var(--lui-color-text-secondary);font-size:var(--lui-font-size-sm);line-height:var(--line-height-sm);margin:0;max-width:400px}
1
+ ._content_laixm_1{width:100%}:root{--empty-state-icon-size: 48px}._root_1fqx3_5{align-items:center;display:flex;flex-direction:column;gap:var(--lui-space-2);padding:var(--lui-space-10) var(--lui-space-5);text-align:center}._icon_1fqx3_14{font-size:var(--empty-state-icon-size);line-height:1;margin-bottom:var(--lui-space-2)}._title_1fqx3_20{color:var(--lui-color-text-primary);font-size:var(--lui-font-size-lg);font-weight:var(--lui-font-weight-semibold);line-height:var(--line-height-lg);margin:0}._description_1fqx3_28{color:var(--lui-color-text-secondary);font-size:var(--lui-font-size-sm);line-height:var(--line-height-sm);margin:0;max-width:400px}
@@ -1,53 +1,34 @@
1
- import { jsx as e, jsxs as C } from "react/jsx-runtime";
2
- import S, { cloneElement as T } from "react";
3
- import { i as f } from "./isValidReactNode-CmYwTWCE.mjs";
4
- import "lodash/camelCase";
5
- import A from "clsx";
6
- import { I as x } from "./Icon-DUCBChX2.mjs";
7
- import { g as u } from "./getComponentSlots-DwAYUFNk.mjs";
8
- import './empty-state.css';const l = "EmptyState";
9
- var o = ((t) => (t.ACTIONS = `${l}.Actions`, t.CONTENT = `${l}.Content`, t))(o || {});
10
- const v = "_actions_dl9xv_1", E = {
11
- actions: v
12
- }, p = ({ children: t }) => {
13
- const s = S.Children.toArray(t), i = s.map((n, c) => {
14
- if (!f("Button", n))
15
- return n;
16
- const r = n.props.variant;
17
- return T(n, {
18
- key: c,
19
- ...r ? {} : { variant: r ?? (c === 0 ? "primary" : "secondary") }
20
- });
21
- });
22
- return s.length === 0 ? null : /* @__PURE__ */ e("div", { className: E.actions, children: i });
1
+ import { E as o, D as _, A as S } from "./Actions-CEIXfLKN.mjs";
2
+ import { jsx as t, jsxs as C } from "react/jsx-runtime";
3
+ import T from "clsx";
4
+ import { I as f } from "./Icon-DUCBChX2.mjs";
5
+ import { g as x } from "./getComponentSlots-DD4iju8N.mjs";
6
+ import './empty-state.css';const E = "_content_laixm_1", h = {
7
+ content: E
8
+ }, a = (s) => {
9
+ const { children: c } = s;
10
+ return /* @__PURE__ */ t("div", { className: h.content, children: c });
23
11
  };
24
- p.displayName = o.ACTIONS;
25
- const O = "_content_laixm_1", h = {
26
- content: O
27
- }, d = (t) => {
28
- const { children: s } = t;
29
- return /* @__PURE__ */ e("div", { className: h.content, children: s });
30
- };
31
- d.displayName = o.CONTENT;
32
- const I = "_root_1fqx3_5", g = "_icon_1fqx3_14", q = "_title_1fqx3_20", $ = "_description_1fqx3_28", a = {
33
- root: I,
34
- icon: g,
35
- title: q,
36
- description: $
37
- }, L = [o.ACTIONS, o.CONTENT], N = (t) => {
38
- const { children: s, description: i, icon: n, title: c } = t, r = A(a.root), { [o.ACTIONS]: m, [o.CONTENT]: y } = u(s, L);
39
- return /* @__PURE__ */ C("div", { className: r, children: [
40
- n && /* @__PURE__ */ e("div", { className: a.icon, children: /* @__PURE__ */ e(x, { name: n, size: 48 }) }),
41
- c && /* @__PURE__ */ e("h3", { className: a.title, children: c }),
42
- i && /* @__PURE__ */ e("p", { className: a.description, children: i }),
43
- y,
44
- m
12
+ a.displayName = o.CONTENT;
13
+ const y = "_root_1fqx3_5", A = "_icon_1fqx3_14", I = "_title_1fqx3_20", O = "_description_1fqx3_28", n = {
14
+ root: y,
15
+ icon: A,
16
+ title: I,
17
+ description: O
18
+ }, q = [o.ACTIONS, o.CONTENT], m = (s) => {
19
+ const { children: c, description: e, icon: i, title: r } = s, p = T(n.root), { [o.ACTIONS]: d, [o.CONTENT]: N } = x(c, q);
20
+ return /* @__PURE__ */ C("div", { className: p, children: [
21
+ i && /* @__PURE__ */ t("div", { className: n.icon, children: /* @__PURE__ */ t(f, { name: i, size: 48 }) }),
22
+ r && /* @__PURE__ */ t("h3", { className: n.title, children: r }),
23
+ e && /* @__PURE__ */ t("p", { className: n.description, children: e }),
24
+ N,
25
+ d
45
26
  ] });
46
27
  };
47
- N.displayName = l;
48
- const _ = N;
49
- _.Actions = p;
50
- _.Content = d;
28
+ m.displayName = _;
29
+ const l = m;
30
+ l.Actions = S;
31
+ l.Content = a;
51
32
  export {
52
- _ as EmptyState
33
+ l as EmptyState
53
34
  };
@@ -0,0 +1,4 @@
1
+ var l = /* @__PURE__ */ ((a) => (a.CELL = "Table.Cell", a.ROW = "Table.Row", a.TOOLBAR = "Table.Toolbar", a))(l || {});
2
+ export {
3
+ l as E
4
+ };
@@ -0,0 +1,6 @@
1
+ const r = "Tabs";
2
+ var t = ((a) => (a.PANEL = `${r}.Panel`, a.TAB = `${r}.Tab`, a))(t || {}), A = /* @__PURE__ */ ((a) => (a.BUTTONS = "buttons", a.DEFAULT = "default", a))(A || {});
3
+ export {
4
+ t as E,
5
+ A as a
6
+ };
@@ -0,0 +1,7 @@
1
+ const a = "Menu", t = "bottom start";
2
+ var T = ((r) => (r.CHECKBOX = `${a}.Checkbox`, r.CONTENT = `${a}.Content`, r.GROUP = `${a}.Group`, r.ITEM = `${a}.Item`, r.SEPARATOR = `${a}.Separator`, r.TRIGGER = `${a}.Trigger`, r))(T || {});
3
+ export {
4
+ t as D,
5
+ T as E,
6
+ a
7
+ };
@@ -1,5 +1,5 @@
1
1
  import i from "react";
2
- import { i as n } from "./isValidReactNode-CmYwTWCE.mjs";
2
+ import { i as n } from "./isValidReactNode-D1buElhX.mjs";
3
3
  const c = (f, o) => {
4
4
  const e = { children: [] };
5
5
  return o.forEach((r) => {
@@ -0,0 +1,12 @@
1
+ import { default as default_2 } from 'react';
2
+
3
+ export declare const Group: default_2.FC<IProps>;
4
+
5
+ export declare interface IProps {
6
+ /** Group label. */
7
+ label: string;
8
+ /** Group items. */
9
+ children: default_2.ReactNode;
10
+ }
11
+
12
+ export { }
package/dist/group.js ADDED
@@ -0,0 +1,4 @@
1
+ import { G as p } from "./Group-DyDpeqOP.mjs";
2
+ export {
3
+ p as Group
4
+ };
@@ -0,0 +1,21 @@
1
+ import { default as default_2 } from 'react';
2
+
3
+ /**
4
+ * Drawer Header sub-component.
5
+ *
6
+ * Renders the title and a close button.
7
+ * Must be used within a Drawer component.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * <Drawer.Header>
12
+ * Drawer Title
13
+ * </Drawer.Header>
14
+ * ```
15
+ */
16
+ export declare const Header: default_2.FC<IHeaderProps>;
17
+
18
+ export declare interface IHeaderProps extends default_2.PropsWithChildren {
19
+ }
20
+
21
+ export { }
package/dist/header.js ADDED
@@ -0,0 +1,4 @@
1
+ import { H as a } from "./Header-Clhgyr0J.mjs";
2
+ export {
3
+ a as Header
4
+ };
@@ -0,0 +1,55 @@
1
+ import { default as default_2 } from 'react';
2
+
3
+ export declare enum EHeadingColor {
4
+ PRIMARY = "primary",
5
+ SECONDARY = "secondary",
6
+ TERTIARY = "tertiary",
7
+ DISABLED = "disabled",
8
+ BRAND = "brand"
9
+ }
10
+
11
+ export declare enum EHeadingSize {
12
+ XS = "xs",
13
+ SM = "sm",
14
+ MD = "md",
15
+ LG = "lg"
16
+ }
17
+
18
+ /**
19
+ * Heading component. Renders a semantic HTML heading (`h1`–`h6`) with preset
20
+ * font-size, font-weight, line-height, and optional letter-spacing.
21
+ *
22
+ * Each size maps to a predefined set of CSS tokens for consistent typography across the UI.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <Heading as="h1" size="lg">Page title</Heading>
27
+ * ```
28
+ *
29
+ * @example
30
+ * ```tsx
31
+ * <Heading size="xs" color="secondary">Subtitle</Heading>
32
+ * ```
33
+ */
34
+ export declare const Heading: default_2.FC<IHeadingProps>;
35
+
36
+ export declare interface IHeadingProps extends default_2.PropsWithChildren {
37
+ /** HTML tag to render. Default: `h2`. */
38
+ as?: THeadingTag;
39
+ /** Heading size. Default: `sm`. */
40
+ size?: THeadingSize;
41
+ /** Text color token. */
42
+ color?: THeadingColor;
43
+ /** Truncate text with ellipsis (single-line). */
44
+ truncate?: boolean;
45
+ /** Ref to the root heading element. */
46
+ ref?: default_2.Ref<HTMLHeadingElement>;
47
+ }
48
+
49
+ export declare type THeadingColor = `${EHeadingColor}`;
50
+
51
+ export declare type THeadingSize = `${EHeadingSize}`;
52
+
53
+ export declare type THeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
54
+
55
+ export { }
@@ -0,0 +1,7 @@
1
+ import { H as D } from "./Heading-CL47Fqe7.mjs";
2
+ var t = /* @__PURE__ */ ((r) => (r.XS = "xs", r.SM = "sm", r.MD = "md", r.LG = "lg", r))(t || {}), R = /* @__PURE__ */ ((r) => (r.PRIMARY = "primary", r.SECONDARY = "secondary", r.TERTIARY = "tertiary", r.DISABLED = "disabled", r.BRAND = "brand", r))(R || {});
3
+ export {
4
+ R as EHeadingColor,
5
+ t as EHeadingSize,
6
+ D as Heading
7
+ };
@@ -0,0 +1,29 @@
1
+ import { default as default_2 } from 'react';
2
+
3
+ export declare interface IInputProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'suffix' | 'size' | 'onChange' | 'onBlur' | 'onFocus'> {
4
+ ref?: default_2.Ref<HTMLInputElement>;
5
+ invalid?: boolean;
6
+ size?: TInputSize;
7
+ before?: default_2.ReactNode;
8
+ after?: default_2.ReactNode;
9
+ onChange?: (value: string) => void;
10
+ onBlur?: (e: default_2.FocusEvent<HTMLInputElement>) => void;
11
+ onFocus?: (e: default_2.FocusEvent<HTMLInputElement>) => void;
12
+ }
13
+
14
+ /**
15
+ * Base Input component. Renders a native `<input>` with support for `before`/`after` slots, sizing, and invalid/disabled states.
16
+ * All native `<input>` attributes are passed through automatically.
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * <Input placeholder="Enter text" />
21
+ * <Input size="lg" invalid placeholder="Error" />
22
+ * <Input before={<SearchIcon />} placeholder="Search" />
23
+ * ```
24
+ */
25
+ export declare const Input: default_2.FC<IInputProps>;
26
+
27
+ declare type TInputSize = 'sm' | 'md' | 'lg';
28
+
29
+ export { }
@@ -0,0 +1,4 @@
1
+ import { I as r } from "./InputBase-BHZWQT9-.mjs";
2
+ export {
3
+ r as Input
4
+ };