@ledgerhq/lumen-ui-react 0.1.60 → 0.1.62
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/dist/index.js +150 -132
- package/dist/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +53 -51
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
- package/dist/lib/Components/core/Banner/Banner.js +8 -8
- package/dist/lib/Components/core/Button/Button.js +10 -10
- package/dist/lib/Components/core/Card/Card.js +6 -6
- package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
- package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
- package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
- package/dist/lib/Components/core/Divider/Divider.js +8 -8
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
- package/dist/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +21 -20
- package/dist/lib/Components/core/Link/types.d.ts +1 -1
- package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
- package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/lib/Components/core/Menu/Menu.d.ts +3 -2
- package/dist/lib/Components/core/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/core/Menu/Menu.js +157 -108
- package/dist/lib/Components/core/Menu/types.d.ts +31 -0
- package/dist/lib/Components/core/Menu/types.d.ts.map +1 -1
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
- package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
- package/dist/lib/Components/core/Popover/Popover.js +6 -6
- package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
- package/dist/lib/Components/core/Select/Select.js +8 -8
- package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
- package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
- package/dist/lib/Components/core/Spot/Spot.js +9 -9
- package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
- package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
- package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Switch/Switch.js +5 -5
- package/dist/lib/Components/core/Table/Table.js +9 -9
- package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
- package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
- package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
- package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
- package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
- package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.js +68 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toaster.js +92 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
- package/dist/lib/Components/core/Toast/index.d.ts +5 -0
- package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
- package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.js +77 -0
- package/dist/lib/Components/core/Toast/types.d.ts +81 -0
- package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Trend/Trend.js +2 -2
- package/dist/lib/Components/core/index.d.ts +2 -0
- package/dist/lib/Components/core/index.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
- package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
- package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
- package/dist/libs/utils-shared/dist/index.js +306 -141
- package/dist/package.json +3 -3
- package/package.json +3 -3
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
export type StepperProps = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The visual style of the stepper's segments.
|
|
5
|
+
* @default accent
|
|
6
|
+
*/
|
|
7
|
+
appearance?: 'accent' | 'success';
|
|
8
|
+
/**
|
|
9
|
+
* The overall dimensions of the stepper.
|
|
10
|
+
* @default md
|
|
11
|
+
*/
|
|
12
|
+
size?: 'md' | 'lg';
|
|
13
|
+
/**
|
|
14
|
+
* Current step number (1-based).
|
|
5
15
|
*/
|
|
6
16
|
currentStep: number;
|
|
7
17
|
/**
|
|
@@ -9,7 +19,7 @@ export type StepperProps = {
|
|
|
9
19
|
*/
|
|
10
20
|
totalSteps: number;
|
|
11
21
|
/**
|
|
12
|
-
* Whether the stepper is disabled. Changes the progress
|
|
22
|
+
* Whether the stepper is disabled. Changes the progress to a muted style.
|
|
13
23
|
* @default false
|
|
14
24
|
*/
|
|
15
25
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as h, cn as s } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as a from "@radix-ui/react-switch";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
@@ -39,7 +39,7 @@ const b = d(
|
|
|
39
39
|
selected: r,
|
|
40
40
|
defaultSelected: n,
|
|
41
41
|
onChange: c,
|
|
42
|
-
size:
|
|
42
|
+
size: e = "md",
|
|
43
43
|
disabled: l,
|
|
44
44
|
...u
|
|
45
45
|
}) => {
|
|
@@ -47,17 +47,17 @@ const b = d(
|
|
|
47
47
|
consumerName: "Switch",
|
|
48
48
|
mergeWith: { disabled: l }
|
|
49
49
|
});
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ t(
|
|
51
51
|
a.Root,
|
|
52
52
|
{
|
|
53
53
|
ref: i,
|
|
54
|
-
className: s(b({ size:
|
|
54
|
+
className: s(b({ size: e }), o),
|
|
55
55
|
checked: r,
|
|
56
56
|
defaultChecked: n,
|
|
57
57
|
onCheckedChange: c,
|
|
58
58
|
disabled: m,
|
|
59
59
|
...u,
|
|
60
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ t(a.Thumb, { className: g({ size: e }) })
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
};
|
|
@@ -9,7 +9,7 @@ import { ChevronUpDown as B } from "../../symbols/icons/ChevronUpDown.js";
|
|
|
9
9
|
import { ChevronDescending as j } from "../../symbols/icons/ChevronDescending.js";
|
|
10
10
|
import { ChevronAscending as I } from "../../symbols/icons/ChevronAscending.js";
|
|
11
11
|
import { InteractiveIcon as A } from "../InteractiveIcon/InteractiveIcon.js";
|
|
12
|
-
const [
|
|
12
|
+
const [k, u] = h("Table"), q = c(
|
|
13
13
|
"relative scrollbar-none w-full max-w-full border-collapse overflow-x-auto rounded-lg",
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
@@ -32,12 +32,12 @@ const [V, u] = h("Table"), k = c(
|
|
|
32
32
|
onScrollBottom: a,
|
|
33
33
|
loading: r
|
|
34
34
|
});
|
|
35
|
-
return /* @__PURE__ */ l(
|
|
35
|
+
return /* @__PURE__ */ l(k, { value: { appearance: e, loading: r }, children: /* @__PURE__ */ l(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
...i,
|
|
39
39
|
ref: o,
|
|
40
|
-
className:
|
|
40
|
+
className: q({ appearance: e, className: t }),
|
|
41
41
|
onScroll: d,
|
|
42
42
|
children: n
|
|
43
43
|
}
|
|
@@ -55,7 +55,7 @@ const [V, u] = h("Table"), k = c(
|
|
|
55
55
|
className: e,
|
|
56
56
|
ref: t,
|
|
57
57
|
...a
|
|
58
|
-
}) => /* @__PURE__ */ l("colgroup", { ref: t, className: e, ...a, children: n }),
|
|
58
|
+
}) => /* @__PURE__ */ l("colgroup", { ref: t, className: e, ...a, children: n }), H = c("", {
|
|
59
59
|
variants: {
|
|
60
60
|
hideBelow: {
|
|
61
61
|
xs: "hidden xs:table-column",
|
|
@@ -74,7 +74,7 @@ const [V, u] = h("Table"), k = c(
|
|
|
74
74
|
"col",
|
|
75
75
|
{
|
|
76
76
|
ref: t,
|
|
77
|
-
className:
|
|
77
|
+
className: H({ hideBelow: e, className: n }),
|
|
78
78
|
...a
|
|
79
79
|
}
|
|
80
80
|
), _ = ({
|
|
@@ -107,7 +107,7 @@ const [V, u] = h("Table"), k = c(
|
|
|
107
107
|
...o,
|
|
108
108
|
children: n
|
|
109
109
|
}
|
|
110
|
-
),
|
|
110
|
+
), L = c("", {
|
|
111
111
|
variants: {
|
|
112
112
|
appearance: {
|
|
113
113
|
"no-background": "bg-canvas",
|
|
@@ -133,7 +133,7 @@ const [V, u] = h("Table"), k = c(
|
|
|
133
133
|
"tr",
|
|
134
134
|
{
|
|
135
135
|
ref: a,
|
|
136
|
-
className:
|
|
136
|
+
className: L({ appearance: o, stickyHeader: t, className: e }),
|
|
137
137
|
...r,
|
|
138
138
|
children: n
|
|
139
139
|
}
|
|
@@ -197,7 +197,7 @@ const [V, u] = h("Table"), k = c(
|
|
|
197
197
|
...o,
|
|
198
198
|
children: /* @__PURE__ */ l("div", { className: p.inner({ align: a }), children: n })
|
|
199
199
|
}
|
|
200
|
-
), [S, m] = h("TableCellItem", { align: "start" }),
|
|
200
|
+
), [S, m] = h("TableCellItem", { align: "start" }), V = c("flex min-w-0 items-center gap-12", {
|
|
201
201
|
variants: {
|
|
202
202
|
align: {
|
|
203
203
|
start: "text-start",
|
|
@@ -214,7 +214,7 @@ const [V, u] = h("Table"), k = c(
|
|
|
214
214
|
"div",
|
|
215
215
|
{
|
|
216
216
|
ref: a,
|
|
217
|
-
className:
|
|
217
|
+
className: V({ align: e, className: n }),
|
|
218
218
|
...r,
|
|
219
219
|
children: t
|
|
220
220
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as x, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as g, cn as v } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { Slot as y, Slottable as
|
|
3
|
+
import { Slot as y, Slottable as C } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as i } from "class-variance-authority";
|
|
5
|
-
import { useCallback as
|
|
6
|
-
const
|
|
5
|
+
import { useCallback as N } from "react";
|
|
6
|
+
const V = i(
|
|
7
7
|
[
|
|
8
8
|
"flex flex-col items-center gap-8 rounded-md p-12",
|
|
9
9
|
"bg-surface body-2-semi-bold transition-colors",
|
|
@@ -29,7 +29,7 @@ const h = i(
|
|
|
29
29
|
isFull: !1
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
),
|
|
32
|
+
), h = i("shrink-0", {
|
|
33
33
|
variants: {
|
|
34
34
|
appearance: {
|
|
35
35
|
gray: "text-base",
|
|
@@ -59,7 +59,7 @@ const h = i(
|
|
|
59
59
|
const e = g({
|
|
60
60
|
consumerName: "TileButton",
|
|
61
61
|
mergeWith: { disabled: c }
|
|
62
|
-
}), p =
|
|
62
|
+
}), p = N(
|
|
63
63
|
(o) => {
|
|
64
64
|
if (e) {
|
|
65
65
|
o.preventDefault();
|
|
@@ -75,7 +75,7 @@ const h = i(
|
|
|
75
75
|
ref: n,
|
|
76
76
|
type: a ? void 0 : "button",
|
|
77
77
|
className: v(
|
|
78
|
-
|
|
78
|
+
V({ disabled: e, isFull: u, appearance: l }),
|
|
79
79
|
b
|
|
80
80
|
),
|
|
81
81
|
onClick: p,
|
|
@@ -84,8 +84,8 @@ const h = i(
|
|
|
84
84
|
"aria-label": f,
|
|
85
85
|
...m,
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */ t(d, { size: 20, className:
|
|
88
|
-
a ? /* @__PURE__ */ t(
|
|
87
|
+
/* @__PURE__ */ t(d, { size: 20, className: h({ disabled: e, appearance: l }) }),
|
|
88
|
+
a ? /* @__PURE__ */ t(C, { children: s }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-center", children: s })
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { TimelineItemCaptionProps, TimelineItemBodyProps, TimelineItemDescriptionProps, TimelineItemHeaderProps, TimelineItemLeadingProps, TimelineItemLeadingRowProps, TimelineItemProps, TimelineItemTitleProps, TimelineItemTrailingProps, TimelineProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Vertical timeline. Lays out its items and holds no state of its own.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* <Timeline>
|
|
7
|
+
* <TimelineItem>
|
|
8
|
+
* <TimelineItemHeader>
|
|
9
|
+
* <TimelineItemLeading>
|
|
10
|
+
* <TimelineItemTitle>Payment confirmed</TimelineItemTitle>
|
|
11
|
+
* </TimelineItemLeading>
|
|
12
|
+
* </TimelineItemHeader>
|
|
13
|
+
* </TimelineItem>
|
|
14
|
+
* </Timeline>
|
|
15
|
+
*/
|
|
16
|
+
export declare const Timeline: ({ ref, children, className, ...props }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* One row of a timeline. Draws the indicator from `status` and the connector
|
|
19
|
+
* to the neighbouring items.
|
|
20
|
+
*/
|
|
21
|
+
export declare const TimelineItem: ({ ref, status, children, className, ...props }: TimelineItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* Row beside the indicator. Holds the leading column and the trailing slot.
|
|
24
|
+
*/
|
|
25
|
+
export declare const TimelineItemHeader: ({ ref, children, className, ...props }: TimelineItemHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* Caption, title, and description column.
|
|
28
|
+
*/
|
|
29
|
+
export declare const TimelineItemLeading: ({ ref, children, className, ...props }: TimelineItemLeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* Horizontal row for a title or description beside a tag.
|
|
32
|
+
*/
|
|
33
|
+
export declare const TimelineItemLeadingRow: ({ ref, children, className, ...props }: TimelineItemLeadingRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Overline above the title.
|
|
36
|
+
*/
|
|
37
|
+
export declare const TimelineItemCaption: ({ ref, children, className, ...props }: TimelineItemCaptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Title. An `idle` item uses the muted tone.
|
|
40
|
+
*/
|
|
41
|
+
export declare const TimelineItemTitle: ({ ref, children, className, ...props }: TimelineItemTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Description under the title.
|
|
44
|
+
*/
|
|
45
|
+
export declare const TimelineItemDescription: ({ ref, children, className, ...props }: TimelineItemDescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
/**
|
|
47
|
+
* End-aligned slot in the header.
|
|
48
|
+
*/
|
|
49
|
+
export declare const TimelineItemTrailing: ({ ref, children, className, ...props }: TimelineItemTrailingProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Block under the header, indented past the indicator.
|
|
52
|
+
*/
|
|
53
|
+
export declare const TimelineItemBody: ({ ref, children, className, ...props }: TimelineItemBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Timeline/Timeline.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EAEjB,sBAAsB,EACtB,yBAAyB,EACzB,aAAa,EACd,MAAM,SAAS,CAAC;AAmEjB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,GAAI,wCAKtB,aAAa,4CAUf,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,gDAM1B,iBAAiB,4CAiBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAKhC,uBAAuB,4CAmBzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,wCAKjC,wBAAwB,4CAU1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,wCAKpC,2BAA2B,4CAU7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,wCAKjC,wBAAwB,4CAU1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,wCAK/B,sBAAsB,4CAexB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,wCAKrC,4BAA4B,4CAU9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,wCAKlC,yBAAyB,4CAa3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,wCAK9B,qBAAqB,4CAUvB,CAAC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s, createSafeContext as d } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as o } from "class-variance-authority";
|
|
4
|
+
import { Spinner as c } from "../Spinner/Spinner.js";
|
|
5
|
+
import { ClockFill as u } from "../../symbols/icons/ClockFill.js";
|
|
6
|
+
import { DeleteCircleFill as x } from "../../symbols/icons/DeleteCircleFill.js";
|
|
7
|
+
import { CheckmarkCircleFill as f } from "../../symbols/icons/CheckmarkCircleFill.js";
|
|
8
|
+
const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
|
|
9
|
+
variants: {
|
|
10
|
+
muted: {
|
|
11
|
+
true: "text-muted",
|
|
12
|
+
false: "text-base"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}), N = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "size-12 rounded-full bg-muted-pressed" }), b = {
|
|
16
|
+
success: /* @__PURE__ */ t(f, { "aria-hidden": !0, className: "text-success", size: 24 }),
|
|
17
|
+
error: /* @__PURE__ */ t(x, { "aria-hidden": !0, className: "text-error", size: 24 }),
|
|
18
|
+
pending: /* @__PURE__ */ t(u, { "aria-hidden": !0, className: "text-muted", size: 24 }),
|
|
19
|
+
loading: /* @__PURE__ */ t(c, { className: "text-muted", size: 24 }),
|
|
20
|
+
idle: /* @__PURE__ */ t(
|
|
21
|
+
"span",
|
|
22
|
+
{
|
|
23
|
+
"aria-hidden": !0,
|
|
24
|
+
className: "size-20 rounded-full border-2 border-muted-subtle-hover"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
}, v = ({ status: e }) => /* @__PURE__ */ t(
|
|
28
|
+
"span",
|
|
29
|
+
{
|
|
30
|
+
className: "mt-16 flex size-32 shrink-0 items-center justify-center self-start",
|
|
31
|
+
"data-testid": `timeline-indicator-${e ?? "neutral"}`,
|
|
32
|
+
children: e ? b[e] : N
|
|
33
|
+
}
|
|
34
|
+
), T = () => /* @__PURE__ */ l(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
"aria-hidden": !0,
|
|
38
|
+
className: "pointer-events-none absolute inset-y-0 start-0 flex w-32 flex-col items-center",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ t(
|
|
41
|
+
"span",
|
|
42
|
+
{
|
|
43
|
+
className: "h-16 w-0 shrink-0 border-l-2 border-muted-subtle-hover group-first/item:invisible",
|
|
44
|
+
"data-line": "in"
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ t("span", { className: "h-32 shrink-0" }),
|
|
48
|
+
/* @__PURE__ */ t(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
className: "w-0 flex-1 border-l-2 border-muted-subtle-hover group-last/item:hidden",
|
|
52
|
+
"data-line": "out"
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
), R = ({
|
|
58
|
+
ref: e,
|
|
59
|
+
children: i,
|
|
60
|
+
className: n,
|
|
61
|
+
...r
|
|
62
|
+
}) => /* @__PURE__ */ t(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
ref: e,
|
|
66
|
+
className: s("flex w-full min-w-0 flex-col", n),
|
|
67
|
+
...r,
|
|
68
|
+
children: i
|
|
69
|
+
}
|
|
70
|
+
), j = ({
|
|
71
|
+
ref: e,
|
|
72
|
+
status: i,
|
|
73
|
+
children: n,
|
|
74
|
+
className: r,
|
|
75
|
+
...a
|
|
76
|
+
}) => /* @__PURE__ */ t(p, { value: { status: i }, children: /* @__PURE__ */ l(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
ref: e,
|
|
80
|
+
"data-testid": "timeline-item",
|
|
81
|
+
className: s(
|
|
82
|
+
"group/item relative flex w-full min-w-0 flex-col",
|
|
83
|
+
r
|
|
84
|
+
),
|
|
85
|
+
...a,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ t(T, {}),
|
|
88
|
+
n
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
) }), F = ({
|
|
92
|
+
ref: e,
|
|
93
|
+
children: i,
|
|
94
|
+
className: n,
|
|
95
|
+
...r
|
|
96
|
+
}) => {
|
|
97
|
+
const { status: a } = m({
|
|
98
|
+
consumerName: "TimelineItemHeader",
|
|
99
|
+
contextRequired: !0
|
|
100
|
+
});
|
|
101
|
+
return /* @__PURE__ */ l(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
ref: e,
|
|
105
|
+
className: s(
|
|
106
|
+
"flex min-h-64 w-full min-w-0 items-center gap-8",
|
|
107
|
+
n
|
|
108
|
+
),
|
|
109
|
+
...r,
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ t(v, { status: a }),
|
|
112
|
+
i
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}, L = ({
|
|
117
|
+
ref: e,
|
|
118
|
+
children: i,
|
|
119
|
+
className: n,
|
|
120
|
+
...r
|
|
121
|
+
}) => /* @__PURE__ */ t(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
ref: e,
|
|
125
|
+
className: s("flex min-w-0 flex-1 flex-col gap-2", n),
|
|
126
|
+
...r,
|
|
127
|
+
children: i
|
|
128
|
+
}
|
|
129
|
+
), S = ({
|
|
130
|
+
ref: e,
|
|
131
|
+
children: i,
|
|
132
|
+
className: n,
|
|
133
|
+
...r
|
|
134
|
+
}) => /* @__PURE__ */ t(
|
|
135
|
+
"div",
|
|
136
|
+
{
|
|
137
|
+
ref: e,
|
|
138
|
+
className: s("flex min-w-0 items-center gap-4", n),
|
|
139
|
+
...r,
|
|
140
|
+
children: i
|
|
141
|
+
}
|
|
142
|
+
), q = ({
|
|
143
|
+
ref: e,
|
|
144
|
+
children: i,
|
|
145
|
+
className: n,
|
|
146
|
+
...r
|
|
147
|
+
}) => /* @__PURE__ */ t(
|
|
148
|
+
"div",
|
|
149
|
+
{
|
|
150
|
+
ref: e,
|
|
151
|
+
className: s("min-w-0 truncate body-4 text-muted", n),
|
|
152
|
+
...r,
|
|
153
|
+
children: i
|
|
154
|
+
}
|
|
155
|
+
), B = ({
|
|
156
|
+
ref: e,
|
|
157
|
+
children: i,
|
|
158
|
+
className: n,
|
|
159
|
+
...r
|
|
160
|
+
}) => {
|
|
161
|
+
const { status: a } = m({
|
|
162
|
+
consumerName: "TimelineItemTitle",
|
|
163
|
+
contextRequired: !0
|
|
164
|
+
});
|
|
165
|
+
return /* @__PURE__ */ t(
|
|
166
|
+
"div",
|
|
167
|
+
{
|
|
168
|
+
ref: e,
|
|
169
|
+
className: s(h({ muted: a === "idle" }), n),
|
|
170
|
+
...r,
|
|
171
|
+
children: i
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
}, D = ({
|
|
175
|
+
ref: e,
|
|
176
|
+
children: i,
|
|
177
|
+
className: n,
|
|
178
|
+
...r
|
|
179
|
+
}) => /* @__PURE__ */ t(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
ref: e,
|
|
183
|
+
className: s("min-w-0 truncate body-3 text-muted", n),
|
|
184
|
+
...r,
|
|
185
|
+
children: i
|
|
186
|
+
}
|
|
187
|
+
), H = ({
|
|
188
|
+
ref: e,
|
|
189
|
+
children: i,
|
|
190
|
+
className: n,
|
|
191
|
+
...r
|
|
192
|
+
}) => /* @__PURE__ */ t(
|
|
193
|
+
"div",
|
|
194
|
+
{
|
|
195
|
+
ref: e,
|
|
196
|
+
className: s(
|
|
197
|
+
"ms-auto flex shrink-0 flex-col items-end text-end body-2-semi-bold text-base",
|
|
198
|
+
n
|
|
199
|
+
),
|
|
200
|
+
...r,
|
|
201
|
+
children: i
|
|
202
|
+
}
|
|
203
|
+
), P = ({
|
|
204
|
+
ref: e,
|
|
205
|
+
children: i,
|
|
206
|
+
className: n,
|
|
207
|
+
...r
|
|
208
|
+
}) => /* @__PURE__ */ t(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
ref: e,
|
|
212
|
+
className: s("ms-40 min-w-0 pt-8 pb-12 body-3 text-muted", n),
|
|
213
|
+
...r,
|
|
214
|
+
children: i
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
export {
|
|
218
|
+
R as Timeline,
|
|
219
|
+
j as TimelineItem,
|
|
220
|
+
P as TimelineItemBody,
|
|
221
|
+
q as TimelineItemCaption,
|
|
222
|
+
D as TimelineItemDescription,
|
|
223
|
+
F as TimelineItemHeader,
|
|
224
|
+
L as TimelineItemLeading,
|
|
225
|
+
S as TimelineItemLeadingRow,
|
|
226
|
+
B as TimelineItemTitle,
|
|
227
|
+
H as TimelineItemTrailing
|
|
228
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Timeline/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export type TimelineItemStatus = 'idle' | 'success' | 'error' | 'pending' | 'loading';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Timeline root.
|
|
5
|
+
*/
|
|
6
|
+
export type TimelineProps = {
|
|
7
|
+
/**
|
|
8
|
+
* The timeline items.
|
|
9
|
+
* @required
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Custom classname.
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
17
|
+
/**
|
|
18
|
+
* Props for one timeline item.
|
|
19
|
+
*/
|
|
20
|
+
export type TimelineItemProps = {
|
|
21
|
+
/**
|
|
22
|
+
* Indicator and title tone. Omit it for a neutral item.
|
|
23
|
+
* @default undefined
|
|
24
|
+
*/
|
|
25
|
+
status?: TimelineItemStatus;
|
|
26
|
+
/**
|
|
27
|
+
* Header and content of the item.
|
|
28
|
+
* @required
|
|
29
|
+
*/
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Custom classname.
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
36
|
+
/**
|
|
37
|
+
* Props for the row beside the indicator.
|
|
38
|
+
*/
|
|
39
|
+
export type TimelineItemHeaderProps = {
|
|
40
|
+
/**
|
|
41
|
+
* Leading and trailing parts.
|
|
42
|
+
* @required
|
|
43
|
+
*/
|
|
44
|
+
children: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Custom classname.
|
|
47
|
+
*/
|
|
48
|
+
className?: string;
|
|
49
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
50
|
+
/**
|
|
51
|
+
* Props for the text column opposite the trailing slot.
|
|
52
|
+
*/
|
|
53
|
+
export type TimelineItemLeadingProps = {
|
|
54
|
+
/**
|
|
55
|
+
* Caption, title, and description.
|
|
56
|
+
* @required
|
|
57
|
+
*/
|
|
58
|
+
children: ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Custom classname.
|
|
61
|
+
*/
|
|
62
|
+
className?: string;
|
|
63
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
64
|
+
/**
|
|
65
|
+
* Props for a horizontal row inside the leading column.
|
|
66
|
+
*/
|
|
67
|
+
export type TimelineItemLeadingRowProps = {
|
|
68
|
+
/**
|
|
69
|
+
* A title or description beside an optional tag.
|
|
70
|
+
* @required
|
|
71
|
+
*/
|
|
72
|
+
children: ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* Custom classname.
|
|
75
|
+
*/
|
|
76
|
+
className?: string;
|
|
77
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
78
|
+
/**
|
|
79
|
+
* Props for the overline above the title.
|
|
80
|
+
*/
|
|
81
|
+
export type TimelineItemCaptionProps = {
|
|
82
|
+
/**
|
|
83
|
+
* Overline text. A date is the common case.
|
|
84
|
+
* @required
|
|
85
|
+
*/
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* Custom classname.
|
|
89
|
+
*/
|
|
90
|
+
className?: string;
|
|
91
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
92
|
+
/**
|
|
93
|
+
* Props for the item title.
|
|
94
|
+
*/
|
|
95
|
+
export type TimelineItemTitleProps = {
|
|
96
|
+
/**
|
|
97
|
+
* Title text.
|
|
98
|
+
* @required
|
|
99
|
+
*/
|
|
100
|
+
children: ReactNode;
|
|
101
|
+
/**
|
|
102
|
+
* Custom classname.
|
|
103
|
+
*/
|
|
104
|
+
className?: string;
|
|
105
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
106
|
+
/**
|
|
107
|
+
* Props for the description under the title.
|
|
108
|
+
*/
|
|
109
|
+
export type TimelineItemDescriptionProps = {
|
|
110
|
+
/**
|
|
111
|
+
* Description text.
|
|
112
|
+
* @required
|
|
113
|
+
*/
|
|
114
|
+
children: ReactNode;
|
|
115
|
+
/**
|
|
116
|
+
* Custom classname.
|
|
117
|
+
*/
|
|
118
|
+
className?: string;
|
|
119
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
120
|
+
/**
|
|
121
|
+
* Props for the end-aligned header slot.
|
|
122
|
+
*/
|
|
123
|
+
export type TimelineItemTrailingProps = {
|
|
124
|
+
/**
|
|
125
|
+
* Amount, tag, or text.
|
|
126
|
+
* @required
|
|
127
|
+
*/
|
|
128
|
+
children: ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* Custom classname.
|
|
131
|
+
*/
|
|
132
|
+
className?: string;
|
|
133
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
134
|
+
/**
|
|
135
|
+
* Props for the block under the header.
|
|
136
|
+
*/
|
|
137
|
+
export type TimelineItemBodyProps = {
|
|
138
|
+
/**
|
|
139
|
+
* Content indented past the indicator.
|
|
140
|
+
* @required
|
|
141
|
+
*/
|
|
142
|
+
children: ReactNode;
|
|
143
|
+
/**
|
|
144
|
+
* Custom classname.
|
|
145
|
+
*/
|
|
146
|
+
className?: string;
|
|
147
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
148
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Timeline/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ToastProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A single toast item: an inverted, compact surface with a status icon or
|
|
4
|
+
* spinner, a title, an optional trailing action and a close button.
|
|
5
|
+
*
|
|
6
|
+
* This is the presentational piece. For the queue, timing and imperative API,
|
|
7
|
+
* use `Toaster` + `toast`.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/react-toast--docs Guidelines}
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* import { Toast } from '@ledgerhq/lumen-ui-react';
|
|
13
|
+
*
|
|
14
|
+
* <Toast appearance="success" title="Payment done" onClose={() => {}} />
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Loading with an action
|
|
18
|
+
* <Toast
|
|
19
|
+
* loading
|
|
20
|
+
* title="Uploading…"
|
|
21
|
+
* action={{ label: 'Cancel', onAction: () => {} }}
|
|
22
|
+
* />
|
|
23
|
+
*/
|
|
24
|
+
export declare const Toast: ({ ref, appearance, loading, title, action, onClose, closeAriaLabel, className, role, ...props }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Toast/Toast.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAmB,UAAU,EAAE,MAAM,SAAS,CAAC;AAU3D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,KAAK,GAAI,iGAWnB,UAAU,4CAqDZ,CAAC"}
|