@lazar-ui/kit 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/Actions-CEIXfLKN.mjs +26 -0
- package/dist/Actions.css +1 -0
- package/dist/ActiveFilters-BJojmc-d.mjs +29 -0
- package/dist/ActiveFilters.css +1 -0
- package/dist/Button-BN85EtaZ.mjs +52 -0
- package/dist/Button.css +1 -1
- package/dist/Cell-BPBvEyeL.mjs +21 -0
- package/dist/Cell.css +1 -0
- package/dist/Checkbox-Chfzm1Z9.mjs +46 -0
- package/dist/Checkbox.css +1 -0
- package/dist/Content-ru2X8iBx.mjs +13 -0
- package/dist/Content.css +1 -0
- package/dist/Group-DyDpeqOP.mjs +16 -0
- package/dist/Group.css +1 -0
- package/dist/Header-Clhgyr0J.mjs +29 -0
- package/dist/Header.css +1 -0
- package/dist/Heading-CL47Fqe7.mjs +30 -0
- package/dist/Heading.css +1 -0
- package/dist/InputBase-BHZWQT9-.mjs +46 -0
- package/dist/Item-JbyvZy05.mjs +66 -0
- package/dist/Item.css +1 -0
- package/dist/Panel-Q06TIYep.mjs +12 -0
- package/dist/Provider-CBfZpO45.mjs +12 -0
- package/dist/Row-C-3TXoDz.mjs +15 -0
- package/dist/Row.css +1 -0
- package/dist/Tab-CR0KvVaA.mjs +39 -0
- package/dist/Tab.css +1 -0
- package/dist/Text-DiOqZt8E.mjs +49 -0
- package/dist/Text.css +1 -0
- package/dist/Title-aOeFD24v.mjs +13 -0
- package/dist/Title.css +1 -0
- package/dist/Toolbar-BJQy4qFI.mjs +11 -0
- package/dist/Toolbar.css +1 -0
- package/dist/Trigger-C_4De6l1.mjs +11 -0
- package/dist/accordion.js +1 -1
- package/dist/actions.d.ts +13 -0
- package/dist/actions.js +4 -0
- package/dist/active-filters.d.ts +35 -0
- package/dist/active-filters.js +4 -0
- package/dist/breadcrumbs.js +1 -1
- package/dist/button.js +1 -1
- package/dist/cell.d.ts +20 -0
- package/dist/cell.js +4 -0
- package/dist/checkbox.d.ts +10 -35
- package/dist/checkbox.js +2 -40
- package/dist/content.d.ts +8 -0
- package/dist/content.js +4 -0
- package/dist/context.d.ts +44 -0
- package/dist/context.js +7 -0
- package/dist/dialog.css +1 -1
- package/dist/dialog.js +37 -44
- package/dist/drawer.css +1 -1
- package/dist/drawer.js +72 -93
- package/dist/empty-state.css +1 -1
- package/dist/empty-state.js +29 -48
- package/dist/enums-BnuDYTua.mjs +4 -0
- package/dist/enums-CiPhZomh.mjs +6 -0
- package/dist/enums-DUZMBQDd.mjs +7 -0
- package/dist/{getComponentSlots-DwAYUFNk.mjs → getComponentSlots-DD4iju8N.mjs} +1 -1
- package/dist/group.d.ts +12 -0
- package/dist/group.js +4 -0
- package/dist/header.d.ts +21 -0
- package/dist/header.js +4 -0
- package/dist/heading.d.ts +55 -0
- package/dist/heading.js +7 -0
- package/dist/input-base.d.ts +29 -0
- package/dist/input-base.js +4 -0
- package/dist/input.js +86 -124
- package/dist/isValidReactNode-D1buElhX.mjs +17 -0
- package/dist/item.d.ts +16 -0
- package/dist/item.js +4 -0
- package/dist/menu.css +1 -1
- package/dist/menu.js +46 -103
- package/dist/pagination.js +48 -60
- package/dist/panel.d.ts +9 -0
- package/dist/panel.js +4 -0
- package/dist/radio.css +1 -1
- package/dist/radio.js +42 -98
- package/dist/row.d.ts +12 -0
- package/dist/row.js +4 -0
- package/dist/tab.d.ts +30 -0
- package/dist/tab.js +4 -0
- package/dist/table.css +1 -1
- package/dist/table.js +25 -74
- package/dist/tabs.css +1 -1
- package/dist/tabs.js +30 -72
- package/dist/text.d.ts +74 -0
- package/dist/text.js +8 -0
- package/dist/title.d.ts +8 -0
- package/dist/title.js +4 -0
- package/dist/toolbar.d.ts +20 -0
- package/dist/toolbar.js +4 -0
- package/dist/trigger.d.ts +8 -0
- package/dist/trigger.js +4 -0
- package/dist/typography.d.ts +90 -40
- package/dist/typography.js +4 -38
- package/dist/useTabsContext-DdF09jQq.mjs +11 -0
- package/dist/utils.d.ts +2 -55
- package/dist/utils.js +14 -15
- package/package.json +1 -1
- package/dist/Button-jq8mFP6t.mjs +0 -52
- package/dist/checkbox.css +0 -1
- package/dist/isValidReactNode-CmYwTWCE.mjs +0 -18
- package/dist/typography.css +0 -1
- /package/dist/{input.css → InputBase.css} +0 -0
package/dist/drawer.js
CHANGED
|
@@ -1,64 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { i as
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { g as
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
...
|
|
20
|
+
...r ? {} : { variant: r ?? (c === 0 ? "primary" : "secondary") }
|
|
23
21
|
});
|
|
24
22
|
});
|
|
25
|
-
return
|
|
23
|
+
return n.length === 0 ? null : /* @__PURE__ */ e("div", { className: Q.root, children: i });
|
|
26
24
|
};
|
|
27
|
-
v.displayName =
|
|
28
|
-
const
|
|
29
|
-
root:
|
|
30
|
-
},
|
|
31
|
-
const { children:
|
|
32
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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,
|
|
73
|
-
},
|
|
65
|
+
m.current = !1, g(!1);
|
|
66
|
+
}, _e);
|
|
74
67
|
return () => clearTimeout(d);
|
|
75
68
|
}
|
|
76
|
-
}, [
|
|
69
|
+
}, [r]);
|
|
77
70
|
const {
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
} =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{ [
|
|
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
|
|
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:
|
|
85
|
+
className: I,
|
|
93
86
|
role: "dialog",
|
|
94
|
-
...
|
|
87
|
+
...q,
|
|
95
88
|
ref: f,
|
|
96
89
|
children: [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
z,
|
|
91
|
+
C && /* @__PURE__ */ e("div", { className: o.content, children: C }),
|
|
92
|
+
w
|
|
100
93
|
]
|
|
101
94
|
}
|
|
102
95
|
) }) }) }) }) }) : null;
|
|
103
96
|
};
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
125
|
-
|
|
103
|
+
_ as Drawer,
|
|
104
|
+
_ as default
|
|
126
105
|
};
|
package/dist/empty-state.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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}
|
package/dist/empty-state.js
CHANGED
|
@@ -1,53 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
25
|
-
const O = "
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
28
|
+
m.displayName = _;
|
|
29
|
+
const l = m;
|
|
30
|
+
l.Actions = S;
|
|
31
|
+
l.Content = a;
|
|
51
32
|
export {
|
|
52
|
-
|
|
33
|
+
l as EmptyState
|
|
53
34
|
};
|
|
@@ -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
|
+
};
|
package/dist/group.d.ts
ADDED
package/dist/group.js
ADDED
package/dist/header.d.ts
ADDED
|
@@ -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,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 { }
|
package/dist/heading.js
ADDED
|
@@ -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 { }
|