@ledgerhq/lumen-ui-react 0.0.58 → 0.0.60
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/ai-rules/RULES.md +12 -1
- package/dist/index.js +92 -77
- package/dist/lib/Components/AmountInput/AmountInput.js +10 -10
- package/dist/lib/Components/BaseInput/BaseInput.js +4 -4
- package/dist/lib/Components/Dialog/Dialog.d.ts +1 -0
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +25 -24
- package/dist/lib/Components/Dialog/types.d.ts +6 -0
- package/dist/lib/Components/Dialog/types.d.ts.map +1 -1
- package/dist/lib/Components/Divider/Divider.d.ts +24 -0
- package/dist/lib/Components/Divider/Divider.d.ts.map +1 -0
- package/dist/lib/Components/Divider/Divider.js +23 -0
- package/dist/lib/Components/Divider/index.d.ts +3 -0
- package/dist/lib/Components/Divider/index.d.ts.map +1 -0
- package/dist/lib/Components/Divider/types.d.ts +9 -0
- package/dist/lib/Components/Divider/types.d.ts.map +1 -0
- package/dist/lib/Components/Link/Link.js +5 -5
- package/dist/lib/Components/ListItem/ListItem.d.ts +76 -36
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +136 -43
- package/dist/lib/Components/ListItem/index.d.ts +1 -1
- package/dist/lib/Components/ListItem/index.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/types.d.ts +114 -15
- package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +80 -78
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +76 -74
- package/dist/lib/Components/Spot/Spot.js +4 -4
- package/dist/lib/Components/Spot/types.d.ts +17 -10
- package/dist/lib/Components/Spot/types.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.js +2 -2
- package/dist/lib/Components/Tile/Tile.d.ts +75 -45
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +168 -99
- package/dist/lib/Components/Tile/index.d.ts +1 -1
- package/dist/lib/Components/Tile/index.d.ts.map +1 -1
- package/dist/lib/Components/Tile/types.d.ts +68 -26
- package/dist/lib/Components/Tile/types.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +52 -44
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/ai-rules/RULES.md
CHANGED
|
@@ -211,7 +211,18 @@ import { ChevronRight, Settings } from '@ledgerhq/lumen-ui-react/symbols';
|
|
|
211
211
|
const InteractiveList = () => (
|
|
212
212
|
<div className='flex flex-col gap-2'>
|
|
213
213
|
{items.map((item) => (
|
|
214
|
-
<ListItem
|
|
214
|
+
<ListItem>
|
|
215
|
+
<ListItemLeading>
|
|
216
|
+
<ListItemSpot appearance='icon' icon={Settings} />
|
|
217
|
+
<ListItemContent>
|
|
218
|
+
<ListItemTitle>Simple composition</ListItemTitle>
|
|
219
|
+
<ListItemDescription>With description</ListItemDescription>
|
|
220
|
+
</ListItemContent>
|
|
221
|
+
</ListItemLeading>
|
|
222
|
+
<ListItemTrailing>
|
|
223
|
+
<ChevronRight />
|
|
224
|
+
</ListItemTrailing>
|
|
225
|
+
</ListItem>
|
|
215
226
|
))}
|
|
216
227
|
</div>
|
|
217
228
|
);
|
package/dist/index.js
CHANGED
|
@@ -1,82 +1,97 @@
|
|
|
1
|
-
import { AddressInput as
|
|
1
|
+
import { AddressInput as o } from "./lib/Components/AddressInput/AddressInput.js";
|
|
2
2
|
import { AmountInput as n } from "./lib/Components/AmountInput/AmountInput.js";
|
|
3
|
-
import { Banner as
|
|
4
|
-
import { BaseInput as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { BaseButton as
|
|
7
|
-
import { CardButton as
|
|
8
|
-
import { Checkbox as
|
|
9
|
-
import { Dialog as
|
|
10
|
-
import { DialogHeader as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
3
|
+
import { Banner as p } from "./lib/Components/Banner/Banner.js";
|
|
4
|
+
import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
|
|
5
|
+
import { Button as x } from "./lib/Components/Button/Button.js";
|
|
6
|
+
import { BaseButton as f } from "./lib/Components/Button/BaseButton.js";
|
|
7
|
+
import { CardButton as I } from "./lib/Components/CardButton/CardButton.js";
|
|
8
|
+
import { Checkbox as S } from "./lib/Components/Checkbox/Checkbox.js";
|
|
9
|
+
import { Dialog as s, DialogBody as M, DialogContent as d, DialogFooter as L, DialogTrigger as C } from "./lib/Components/Dialog/Dialog.js";
|
|
10
|
+
import { DialogHeader as b } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
11
|
+
import { Divider as h } from "./lib/Components/Divider/Divider.js";
|
|
12
|
+
import { IconButton as v } from "./lib/Components/IconButton/IconButton.js";
|
|
13
|
+
import { InteractiveIcon as G } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
14
|
+
import { Link as y } from "./lib/Components/Link/Link.js";
|
|
15
|
+
import { ListItem as w, ListItemContent as F, ListItemDescription as H, ListItemIcon as j, ListItemLeading as q, ListItemSpot as z, ListItemTitle as E, ListItemTrailing as J, ListItemTruncate as K } from "./lib/Components/ListItem/ListItem.js";
|
|
16
|
+
import { Menu as O, MenuCheckboxItem as Q, MenuContent as U, MenuGroup as V, MenuItem as W, MenuLabel as X, MenuPortal as Y, MenuRadioGroup as Z, MenuRadioItem as _, MenuSeparator as $, MenuSub as ee, MenuSubContent as te, MenuSubTrigger as oe, MenuTrigger as re } from "./lib/Components/Menu/Menu.js";
|
|
17
|
+
import { SearchInput as ie } from "./lib/Components/SearchInput/SearchInput.js";
|
|
18
|
+
import { Select as me, SelectContent as ue, SelectGroup as le, SelectItem as xe, SelectItemText as ae, SelectLabel as fe, SelectSeparator as Te, SelectTrigger as Ie } from "./lib/Components/Select/Select.js";
|
|
19
|
+
import { Skeleton as Se } from "./lib/Components/Skeleton/Skeleton.js";
|
|
20
|
+
import { Spot as se } from "./lib/Components/Spot/Spot.js";
|
|
21
|
+
import { Subheader as de } from "./lib/Components/Subheader/Subheader.js";
|
|
22
|
+
import { Switch as Ce } from "./lib/Components/Switch/Switch.js";
|
|
23
|
+
import { Tag as be } from "./lib/Components/Tag/Tag.js";
|
|
24
|
+
import { TextInput as he } from "./lib/Components/TextInput/TextInput.js";
|
|
25
|
+
import { Tile as ve, TileContent as Ae, TileDescription as Ge, TileSecondaryAction as Pe, TileSpot as ye, TileTitle as Re } from "./lib/Components/Tile/Tile.js";
|
|
26
|
+
import { Tooltip as Fe, TooltipContent as He, TooltipProvider as je, TooltipTrigger as qe } from "./lib/Components/Tooltip/Tooltip.js";
|
|
27
|
+
import { ThemeProvider as Ee, useTheme as Je } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
o as AddressInput,
|
|
29
30
|
n as AmountInput,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
p as Banner,
|
|
32
|
+
f as BaseButton,
|
|
33
|
+
u as BaseInput,
|
|
34
|
+
x as Button,
|
|
35
|
+
I as CardButton,
|
|
36
|
+
S as Checkbox,
|
|
37
|
+
s as Dialog,
|
|
38
|
+
M as DialogBody,
|
|
39
|
+
d as DialogContent,
|
|
40
|
+
L as DialogFooter,
|
|
41
|
+
b as DialogHeader,
|
|
41
42
|
C as DialogTrigger,
|
|
42
|
-
|
|
43
|
-
v as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
F as
|
|
48
|
-
H as
|
|
49
|
-
j as
|
|
50
|
-
q as
|
|
51
|
-
z as
|
|
52
|
-
E as
|
|
53
|
-
J as
|
|
54
|
-
K as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
X as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
le as
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
43
|
+
h as Divider,
|
|
44
|
+
v as IconButton,
|
|
45
|
+
G as InteractiveIcon,
|
|
46
|
+
y as Link,
|
|
47
|
+
w as ListItem,
|
|
48
|
+
F as ListItemContent,
|
|
49
|
+
H as ListItemDescription,
|
|
50
|
+
j as ListItemIcon,
|
|
51
|
+
q as ListItemLeading,
|
|
52
|
+
z as ListItemSpot,
|
|
53
|
+
E as ListItemTitle,
|
|
54
|
+
J as ListItemTrailing,
|
|
55
|
+
K as ListItemTruncate,
|
|
56
|
+
O as Menu,
|
|
57
|
+
Q as MenuCheckboxItem,
|
|
58
|
+
U as MenuContent,
|
|
59
|
+
V as MenuGroup,
|
|
60
|
+
W as MenuItem,
|
|
61
|
+
X as MenuLabel,
|
|
62
|
+
Y as MenuPortal,
|
|
63
|
+
Z as MenuRadioGroup,
|
|
64
|
+
_ as MenuRadioItem,
|
|
65
|
+
$ as MenuSeparator,
|
|
66
|
+
ee as MenuSub,
|
|
67
|
+
te as MenuSubContent,
|
|
68
|
+
oe as MenuSubTrigger,
|
|
69
|
+
re as MenuTrigger,
|
|
70
|
+
ie as SearchInput,
|
|
71
|
+
me as Select,
|
|
72
|
+
ue as SelectContent,
|
|
73
|
+
le as SelectGroup,
|
|
74
|
+
xe as SelectItem,
|
|
75
|
+
ae as SelectItemText,
|
|
76
|
+
fe as SelectLabel,
|
|
77
|
+
Te as SelectSeparator,
|
|
78
|
+
Ie as SelectTrigger,
|
|
79
|
+
Se as Skeleton,
|
|
80
|
+
se as Spot,
|
|
81
|
+
de as Subheader,
|
|
82
|
+
Ce as Switch,
|
|
83
|
+
be as Tag,
|
|
84
|
+
he as TextInput,
|
|
85
|
+
Ee as ThemeProvider,
|
|
86
|
+
ve as Tile,
|
|
87
|
+
Ae as TileContent,
|
|
88
|
+
Ge as TileDescription,
|
|
89
|
+
Pe as TileSecondaryAction,
|
|
90
|
+
ye as TileSpot,
|
|
91
|
+
Re as TileTitle,
|
|
92
|
+
Fe as Tooltip,
|
|
93
|
+
He as TooltipContent,
|
|
94
|
+
je as TooltipProvider,
|
|
95
|
+
qe as TooltipTrigger,
|
|
96
|
+
Je as useTheme
|
|
82
97
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { getFontSize as V, cn as a, textFormatter as
|
|
1
|
+
import { jsxs as F, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { getFontSize as V, cn as a, textFormatter as j } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as z } from "class-variance-authority";
|
|
4
4
|
import M, { useRef as p, useState as h, useMemo as _, useLayoutEffect as q, useEffect as D } from "react";
|
|
5
5
|
const L = z(
|
|
@@ -42,8 +42,8 @@ const L = z(
|
|
|
42
42
|
onChange: C,
|
|
43
43
|
...N
|
|
44
44
|
}, A) => {
|
|
45
|
-
const c = p(null), s = p(null), [n, f] = h(u.toString()), [
|
|
46
|
-
function
|
|
45
|
+
const c = p(null), s = p(null), [n, f] = h(u.toString()), [I, m] = h(!1), g = p(n);
|
|
46
|
+
function k(...t) {
|
|
47
47
|
return (e) => {
|
|
48
48
|
t.forEach((o) => {
|
|
49
49
|
o && (typeof o == "function" ? o(e) : o.current = e);
|
|
@@ -62,8 +62,8 @@ const L = z(
|
|
|
62
62
|
}, [n]), D(() => {
|
|
63
63
|
f(u.toString());
|
|
64
64
|
}, [u]);
|
|
65
|
-
const
|
|
66
|
-
const e =
|
|
65
|
+
const E = (t) => {
|
|
66
|
+
const e = j(t.target.value, {
|
|
67
67
|
allowDecimals: y,
|
|
68
68
|
thousandsSeparator: R,
|
|
69
69
|
maxIntegerLength: S,
|
|
@@ -71,7 +71,7 @@ const L = z(
|
|
|
71
71
|
});
|
|
72
72
|
f(e), C({ ...t, target: { ...t.target, value: e } }), e !== g.current && m(!0), g.current = e;
|
|
73
73
|
};
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ F(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
className: "group relative flex items-center justify-center transition-transform",
|
|
@@ -103,14 +103,14 @@ const L = z(
|
|
|
103
103
|
/* @__PURE__ */ l(
|
|
104
104
|
"input",
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
106
|
+
ref: k(A, s),
|
|
107
107
|
type: "text",
|
|
108
108
|
inputMode: "decimal",
|
|
109
109
|
disabled: w,
|
|
110
110
|
value: n,
|
|
111
|
-
onChange:
|
|
111
|
+
onChange: E,
|
|
112
112
|
onAnimationEnd: () => m(!1),
|
|
113
|
-
className: a(L({ isChanging:
|
|
113
|
+
className: a(L({ isChanging: I }), x),
|
|
114
114
|
...N,
|
|
115
115
|
style: { fontSize: i, letterSpacing: "normal" }
|
|
116
116
|
}
|
|
@@ -32,10 +32,10 @@ const $ = l(
|
|
|
32
32
|
id: k,
|
|
33
33
|
disabled: f,
|
|
34
34
|
errorMessage: a,
|
|
35
|
-
suffix:
|
|
35
|
+
suffix: z,
|
|
36
36
|
prefix: E,
|
|
37
37
|
onClear: p,
|
|
38
|
-
hideClearButton:
|
|
38
|
+
hideClearButton: j = !1,
|
|
39
39
|
"aria-invalid": m,
|
|
40
40
|
onChange: c,
|
|
41
41
|
...o
|
|
@@ -48,7 +48,7 @@ const $ = l(
|
|
|
48
48
|
d || v(t.target.value), c == null || c(t);
|
|
49
49
|
},
|
|
50
50
|
[d, c]
|
|
51
|
-
), g = (d ? !!o.value && o.value.toString().length > 0 : L.length > 0) && !f && !
|
|
51
|
+
), g = (d ? !!o.value && o.value.toString().length > 0 : L.length > 0) && !f && !j, w = `${b}-error`, V = () => {
|
|
52
52
|
var e;
|
|
53
53
|
if (!n.current) return;
|
|
54
54
|
const t = (e = Object.getOwnPropertyDescriptor(
|
|
@@ -125,7 +125,7 @@ const $ = l(
|
|
|
125
125
|
children: /* @__PURE__ */ r(I, { size: 20 })
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
!g &&
|
|
128
|
+
!g && z
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
),
|
|
@@ -102,6 +102,7 @@ export declare function DialogContent({ className, children, ...props }: DialogC
|
|
|
102
102
|
export declare const DialogBody: React.ForwardRefExoticComponent<{
|
|
103
103
|
children?: React.ReactNode;
|
|
104
104
|
className?: string;
|
|
105
|
+
scrollbarWidth?: "none" | "auto";
|
|
105
106
|
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
106
107
|
/**
|
|
107
108
|
* The fixed footer area of the dialog.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAEL,kBAAkB,EAIlB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;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-1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { cn as n } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as r from "@radix-ui/react-dialog";
|
|
4
|
-
import { cva as
|
|
4
|
+
import { cva as m } from "class-variance-authority";
|
|
5
5
|
import * as i from "react";
|
|
6
6
|
const d = i.createContext({
|
|
7
7
|
height: "hug"
|
|
8
|
-
}),
|
|
8
|
+
}), u = m(
|
|
9
9
|
[
|
|
10
|
-
"
|
|
11
|
-
"fixed left-[50%] top-[50%]
|
|
10
|
+
"w-400 bg-canvas-sheet flex max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl pb-24",
|
|
11
|
+
"z-dialog-content fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%]",
|
|
12
12
|
"data-[state=closed]:animate-content-hide data-[state=open]:animate-content-show"
|
|
13
13
|
],
|
|
14
14
|
{
|
|
@@ -23,13 +23,13 @@ const d = i.createContext({
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
|
-
function
|
|
26
|
+
function w({ height: a = "hug", ...t }) {
|
|
27
27
|
return /* @__PURE__ */ o(d.Provider, { value: { height: a }, children: /* @__PURE__ */ o(r.Root, { "data-slot": "dialog", ...t }) });
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function b({ ...a }) {
|
|
30
30
|
return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function h({
|
|
33
33
|
...a
|
|
34
34
|
}) {
|
|
35
35
|
return /* @__PURE__ */ o(r.Portal, { "data-slot": "dialog-portal", ...a });
|
|
@@ -42,49 +42,50 @@ const s = i.forwardRef(
|
|
|
42
42
|
"data-slot": "dialog-overlay",
|
|
43
43
|
className: n(
|
|
44
44
|
a,
|
|
45
|
-
"
|
|
45
|
+
"z-dialog-overlay bg-canvas-overlay data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in fixed inset-0 backdrop-blur-sm"
|
|
46
46
|
),
|
|
47
47
|
...t
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
);
|
|
51
51
|
s.displayName = "DialogOverlay";
|
|
52
|
-
function
|
|
52
|
+
function N({
|
|
53
53
|
className: a,
|
|
54
54
|
children: t,
|
|
55
55
|
...e
|
|
56
56
|
}) {
|
|
57
57
|
const { height: l } = i.useContext(d);
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ f(h, { "data-slot": "dialog-portal", children: [
|
|
59
59
|
/* @__PURE__ */ o(s, {}),
|
|
60
60
|
/* @__PURE__ */ o(
|
|
61
61
|
r.Content,
|
|
62
62
|
{
|
|
63
63
|
"data-slot": "dialog-content",
|
|
64
|
-
className: n(
|
|
64
|
+
className: n(u({ height: l }), a),
|
|
65
65
|
...e,
|
|
66
66
|
children: t
|
|
67
67
|
}
|
|
68
68
|
)
|
|
69
69
|
] });
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
({ className: a, children: t,
|
|
71
|
+
const p = i.forwardRef(
|
|
72
|
+
({ className: a, children: t, scrollbarWidth: e = "none", style: l, ...g }, c) => /* @__PURE__ */ o(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
ref:
|
|
75
|
+
ref: c,
|
|
76
76
|
"data-slot": "dialog-body",
|
|
77
|
+
style: { scrollbarWidth: e, ...l },
|
|
77
78
|
className: n(
|
|
78
79
|
"-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
|
|
79
80
|
a
|
|
80
81
|
),
|
|
81
|
-
...
|
|
82
|
+
...g,
|
|
82
83
|
children: t
|
|
83
84
|
}
|
|
84
85
|
)
|
|
85
86
|
);
|
|
86
|
-
|
|
87
|
-
const
|
|
87
|
+
p.displayName = "DialogBody";
|
|
88
|
+
const x = i.forwardRef(
|
|
88
89
|
({ className: a, children: t, ...e }, l) => /* @__PURE__ */ o(
|
|
89
90
|
"div",
|
|
90
91
|
{
|
|
@@ -96,11 +97,11 @@ const h = i.forwardRef(
|
|
|
96
97
|
}
|
|
97
98
|
)
|
|
98
99
|
);
|
|
99
|
-
|
|
100
|
+
x.displayName = "DialogFooter";
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
w as Dialog,
|
|
103
|
+
p as DialogBody,
|
|
104
|
+
N as DialogContent,
|
|
105
|
+
x as DialogFooter,
|
|
106
|
+
b as DialogTrigger
|
|
106
107
|
};
|
|
@@ -129,6 +129,12 @@ export type DialogBodyProps = {
|
|
|
129
129
|
* Additional custom CSS classes to apply.
|
|
130
130
|
*/
|
|
131
131
|
className?: string;
|
|
132
|
+
/**
|
|
133
|
+
* The width of the scrollbar
|
|
134
|
+
* 'none' will keep the same DialogBody width and hide the scrollbar.
|
|
135
|
+
* @default 'none'
|
|
136
|
+
*/
|
|
137
|
+
scrollbarWidth?: 'none' | 'auto';
|
|
132
138
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
133
139
|
export type DialogFooterProps = {
|
|
134
140
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;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C9B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A simple divider component for separating content sections.
|
|
3
|
+
*
|
|
4
|
+
* The Divider renders a horizontal or vertical line to create visual separation
|
|
5
|
+
* between content areas. It uses design system tokens for consistent styling.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/layout-divider--docs Storybook}
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // Horizontal divider (default)
|
|
11
|
+
* <Divider />
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Vertical divider
|
|
15
|
+
* <Divider orientation="vertical" />
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* // With custom styling
|
|
19
|
+
* <Divider className="my-16" />
|
|
20
|
+
*/
|
|
21
|
+
export declare const Divider: import('react').ForwardRefExoticComponent<{
|
|
22
|
+
orientation?: "horizontal" | "vertical";
|
|
23
|
+
} & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
24
|
+
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Divider/Divider.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO;;mGAgBnB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cn as t } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { forwardRef as l } from "react";
|
|
4
|
+
const d = l(
|
|
5
|
+
({ className: o, orientation: r = "horizontal", ...e }, a) => /* @__PURE__ */ i(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
ref: a,
|
|
9
|
+
role: "separator",
|
|
10
|
+
"aria-orientation": r,
|
|
11
|
+
className: t(
|
|
12
|
+
"border-muted-subtle",
|
|
13
|
+
r === "horizontal" ? "w-full border-t" : "h-full border-l",
|
|
14
|
+
o
|
|
15
|
+
),
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
d.displayName = "Divider";
|
|
21
|
+
export {
|
|
22
|
+
d as Divider
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Divider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Divider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { Slot as b } from "@radix-ui/react-slot";
|
|
|
4
4
|
import { cva as h } from "class-variance-authority";
|
|
5
5
|
import x from "react";
|
|
6
6
|
import { ExternalLink as k } from "../../Symbols/Icons/ExternalLink.js";
|
|
7
|
-
const
|
|
7
|
+
const z = h(
|
|
8
8
|
"inline-flex w-fit max-w-full items-center justify-center transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -29,7 +29,7 @@ const N = h(
|
|
|
29
29
|
underline: !0
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
),
|
|
32
|
+
), N = x.forwardRef(
|
|
33
33
|
({
|
|
34
34
|
className: l,
|
|
35
35
|
children: r,
|
|
@@ -51,7 +51,7 @@ const N = h(
|
|
|
51
51
|
ref: d,
|
|
52
52
|
className: v(
|
|
53
53
|
l,
|
|
54
|
-
|
|
54
|
+
z({
|
|
55
55
|
appearance: m,
|
|
56
56
|
size: i,
|
|
57
57
|
underline: f
|
|
@@ -79,7 +79,7 @@ const N = h(
|
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
N.displayName = "Link";
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
N as Link
|
|
85
85
|
};
|