@ledgerhq/lumen-ui-react 0.1.61 → 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 +79 -62
- package/dist/lib/Components/core/AmountInput/AmountInput.js +16 -16
- 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.js +30 -30
- 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 +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as x, cn as w } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as y } from "class-variance-authority";
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { Spinner as
|
|
4
|
+
import { useMemo as C } from "react";
|
|
5
|
+
import { Spinner as P } from "../Spinner/Spinner.js";
|
|
6
6
|
import { InformationFill as F } from "../../symbols/icons/InformationFill.js";
|
|
7
7
|
import { WarningFill as k } from "../../symbols/icons/WarningFill.js";
|
|
8
8
|
import { DeleteCircleFill as N } from "../../symbols/icons/DeleteCircleFill.js";
|
|
@@ -34,7 +34,7 @@ const I = y(
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
),
|
|
37
|
+
), E = (t) => {
|
|
38
38
|
const s = t.size ?? 48, i = {
|
|
39
39
|
32: 12,
|
|
40
40
|
40: 16,
|
|
@@ -47,7 +47,7 @@ const I = y(
|
|
|
47
47
|
48: "heading-5",
|
|
48
48
|
56: "heading-4",
|
|
49
49
|
72: "heading-2"
|
|
50
|
-
}, o = i[s] ?? 20, a = c[s] ?? "heading-5", { componentProps: m, content:
|
|
50
|
+
}, o = i[s] ?? 20, a = c[s] ?? "heading-5", { componentProps: m, content: p } = C(() => {
|
|
51
51
|
if (t.appearance === "icon") {
|
|
52
52
|
const { icon: n, ...r } = t;
|
|
53
53
|
return {
|
|
@@ -75,12 +75,12 @@ const I = y(
|
|
|
75
75
|
case "info":
|
|
76
76
|
return /* @__PURE__ */ e(F, { size: o });
|
|
77
77
|
case "loader":
|
|
78
|
-
return /* @__PURE__ */ e(
|
|
78
|
+
return /* @__PURE__ */ e(P, { size: o });
|
|
79
79
|
}
|
|
80
80
|
})();
|
|
81
81
|
return { componentProps: t, content: z };
|
|
82
82
|
}, [t, o, a]), {
|
|
83
|
-
appearance:
|
|
83
|
+
appearance: l,
|
|
84
84
|
className: d,
|
|
85
85
|
disabled: u = !1,
|
|
86
86
|
size: h = 48,
|
|
@@ -97,16 +97,16 @@ const I = y(
|
|
|
97
97
|
className: w(
|
|
98
98
|
I({
|
|
99
99
|
disabled: g,
|
|
100
|
-
appearance:
|
|
100
|
+
appearance: l,
|
|
101
101
|
size: h
|
|
102
102
|
}),
|
|
103
103
|
d
|
|
104
104
|
),
|
|
105
105
|
...f,
|
|
106
|
-
children:
|
|
106
|
+
children: p
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
};
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
E as Spot
|
|
112
112
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { StepperProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* A circular stepper component showing progress as current step out of total steps.
|
|
4
|
-
* Renders a track
|
|
4
|
+
* Renders a segmented track with progress and a center label.
|
|
5
5
|
*
|
|
6
6
|
* @see Figma – Stepper](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=11977-94&m=dev)
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* <Stepper currentStep={1} totalSteps={4} />
|
|
10
|
-
* <Stepper currentStep={0} totalSteps={
|
|
10
|
+
* <Stepper currentStep={0} totalSteps={8} disabled /> // Empty progress, disabled style
|
|
11
|
+
* <Stepper currentStep={2} totalSteps={4} size="lg" />
|
|
11
12
|
*/
|
|
12
|
-
export declare const Stepper: ({ className, currentStep, totalSteps, disabled: disabledProp, label, ref, ...props }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Stepper: ({ className, appearance, size, currentStep, totalSteps, disabled: disabledProp, label, ref, ...props }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/Stepper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/Stepper.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2B5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,GAAI,wGAUrB,YAAY,4CAkId,CAAC"}
|
|
@@ -1,107 +1,179 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as w, cn as o, getStepperCalculations as $ } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as j } from "class-variance-authority";
|
|
4
|
+
import { useId as z } from "react";
|
|
5
|
+
const L = {
|
|
6
|
+
md: { px: 48, strokeWidth: 4, root: "size-48", label: "body-2" },
|
|
7
|
+
lg: { px: 72, strokeWidth: 6, root: "size-72", label: "heading-4" }
|
|
8
|
+
}, I = j("transition-[stroke] duration-300 ease-in-out", {
|
|
9
|
+
variants: {
|
|
10
|
+
appearance: { accent: "", success: "" },
|
|
11
|
+
disabled: { true: "", false: "" }
|
|
12
|
+
},
|
|
13
|
+
compoundVariants: [
|
|
14
|
+
{
|
|
15
|
+
appearance: "accent",
|
|
16
|
+
disabled: !1,
|
|
17
|
+
class: "stroke-active"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
appearance: "success",
|
|
21
|
+
disabled: !1,
|
|
22
|
+
class: "stroke-success"
|
|
23
|
+
},
|
|
24
|
+
{ disabled: !0, class: "stroke-muted-subtle-hover" }
|
|
25
|
+
]
|
|
26
|
+
}), S = ({
|
|
27
|
+
className: f,
|
|
28
|
+
appearance: x = "accent",
|
|
29
|
+
size: b = "md",
|
|
30
|
+
currentStep: l,
|
|
31
|
+
totalSteps: a,
|
|
32
|
+
disabled: y = !1,
|
|
33
|
+
label: n,
|
|
34
|
+
ref: g,
|
|
35
|
+
...v
|
|
11
36
|
}) => {
|
|
12
|
-
const
|
|
37
|
+
const r = w({
|
|
13
38
|
consumerName: "Stepper",
|
|
14
|
-
mergeWith: { disabled:
|
|
15
|
-
}), {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
mergeWith: { disabled: y }
|
|
40
|
+
}), u = z(), {
|
|
41
|
+
px: e,
|
|
42
|
+
strokeWidth: t,
|
|
43
|
+
root: N,
|
|
44
|
+
label: c
|
|
45
|
+
} = L[b], {
|
|
46
|
+
displayLabel: D,
|
|
47
|
+
r: d,
|
|
48
|
+
cx: m,
|
|
49
|
+
cy: h,
|
|
50
|
+
progressDashArray: p,
|
|
51
|
+
progressMaskDashArray: C,
|
|
52
|
+
progressDashOffset: W,
|
|
53
|
+
dashPatternOffset: k
|
|
54
|
+
} = $({
|
|
55
|
+
currentStep: l,
|
|
56
|
+
totalSteps: a,
|
|
57
|
+
size: e,
|
|
58
|
+
label: n,
|
|
59
|
+
strokeWidth: t
|
|
29
60
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ i(
|
|
31
62
|
"div",
|
|
32
63
|
{
|
|
33
|
-
ref:
|
|
64
|
+
ref: g,
|
|
34
65
|
role: "progressbar",
|
|
35
|
-
"aria-valuenow":
|
|
66
|
+
"aria-valuenow": l,
|
|
36
67
|
"aria-valuemin": 1,
|
|
37
|
-
"aria-valuemax":
|
|
38
|
-
"aria-label":
|
|
39
|
-
className:
|
|
40
|
-
"relative flex
|
|
41
|
-
|
|
68
|
+
"aria-valuemax": a,
|
|
69
|
+
"aria-label": D,
|
|
70
|
+
className: o(
|
|
71
|
+
"relative flex shrink-0 items-center justify-center rounded-full",
|
|
72
|
+
N,
|
|
73
|
+
f
|
|
42
74
|
),
|
|
43
|
-
...
|
|
75
|
+
...v,
|
|
44
76
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ i(
|
|
46
78
|
"svg",
|
|
47
79
|
{
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
50
|
-
viewBox: `0 0 ${
|
|
51
|
-
className: "rotate-
|
|
80
|
+
width: e,
|
|
81
|
+
height: e,
|
|
82
|
+
viewBox: `0 0 ${e} ${e}`,
|
|
83
|
+
className: "-rotate-90",
|
|
52
84
|
"aria-hidden": !0,
|
|
53
85
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ s(
|
|
55
87
|
"circle",
|
|
56
88
|
{
|
|
57
|
-
cx:
|
|
58
|
-
cy:
|
|
59
|
-
r:
|
|
89
|
+
cx: m,
|
|
90
|
+
cy: h,
|
|
91
|
+
r: d,
|
|
60
92
|
fill: "none",
|
|
61
93
|
stroke: "currentColor",
|
|
62
94
|
strokeLinecap: "round",
|
|
63
95
|
className: "stroke-muted-subtle",
|
|
64
96
|
style: {
|
|
65
|
-
strokeWidth: `${
|
|
66
|
-
strokeDasharray:
|
|
67
|
-
strokeDashoffset:
|
|
97
|
+
strokeWidth: `${t}px`,
|
|
98
|
+
strokeDasharray: p,
|
|
99
|
+
strokeDashoffset: k
|
|
68
100
|
}
|
|
69
101
|
}
|
|
70
102
|
),
|
|
71
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ s(
|
|
104
|
+
"mask",
|
|
105
|
+
{
|
|
106
|
+
id: u,
|
|
107
|
+
maskUnits: "userSpaceOnUse",
|
|
108
|
+
x: 0,
|
|
109
|
+
y: 0,
|
|
110
|
+
width: e,
|
|
111
|
+
height: e,
|
|
112
|
+
children: /* @__PURE__ */ s(
|
|
113
|
+
"circle",
|
|
114
|
+
{
|
|
115
|
+
cx: m,
|
|
116
|
+
cy: h,
|
|
117
|
+
r: d,
|
|
118
|
+
fill: "none",
|
|
119
|
+
stroke: "white",
|
|
120
|
+
className: "transition-[stroke-dashoffset] duration-300 ease-in-out",
|
|
121
|
+
style: {
|
|
122
|
+
strokeWidth: `${t}px`,
|
|
123
|
+
strokeDasharray: C,
|
|
124
|
+
strokeDashoffset: W
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ s(
|
|
72
131
|
"circle",
|
|
73
132
|
{
|
|
74
|
-
cx:
|
|
75
|
-
cy:
|
|
76
|
-
r:
|
|
133
|
+
cx: m,
|
|
134
|
+
cy: h,
|
|
135
|
+
r: d,
|
|
77
136
|
fill: "none",
|
|
78
137
|
stroke: "currentColor",
|
|
79
138
|
strokeLinecap: "round",
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"transition-[stroke-dashoffset,stroke] duration-300 ease-in-out"
|
|
83
|
-
),
|
|
139
|
+
mask: `url(#${u})`,
|
|
140
|
+
className: I({ appearance: x, disabled: r }),
|
|
84
141
|
style: {
|
|
85
|
-
strokeWidth: `${
|
|
86
|
-
strokeDasharray:
|
|
87
|
-
strokeDashoffset:
|
|
142
|
+
strokeWidth: `${t}px`,
|
|
143
|
+
strokeDasharray: p,
|
|
144
|
+
strokeDashoffset: k
|
|
88
145
|
}
|
|
89
146
|
}
|
|
90
147
|
)
|
|
91
148
|
]
|
|
92
149
|
}
|
|
93
150
|
),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
151
|
+
/* @__PURE__ */ s("span", { className: "absolute inset-0 m-4 flex min-w-0 items-center justify-center text-base", children: n ? /* @__PURE__ */ s(
|
|
152
|
+
"span",
|
|
153
|
+
{
|
|
154
|
+
className: o(c, "truncate", r && "text-disabled"),
|
|
155
|
+
children: n
|
|
156
|
+
}
|
|
157
|
+
) : /* @__PURE__ */ i("span", { className: "truncate", children: [
|
|
158
|
+
/* @__PURE__ */ s("span", { className: o(c, r && "text-disabled"), children: Math.min(Math.max(l, 0), a) }),
|
|
159
|
+
/* @__PURE__ */ i(
|
|
160
|
+
"span",
|
|
161
|
+
{
|
|
162
|
+
className: o(
|
|
163
|
+
c,
|
|
164
|
+
r ? "text-disabled" : "text-muted"
|
|
165
|
+
),
|
|
166
|
+
children: [
|
|
167
|
+
"/",
|
|
168
|
+
a
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
)
|
|
100
172
|
] }) })
|
|
101
173
|
]
|
|
102
174
|
}
|
|
103
175
|
);
|
|
104
176
|
};
|
|
105
177
|
export {
|
|
106
|
-
|
|
178
|
+
S as Stepper
|
|
107
179
|
};
|
|
@@ -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"}
|