@ledgerhq/lumen-ui-react 0.1.11 → 0.1.12
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 +53 -55
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +10 -10
- package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.js +35 -32
- package/dist/lib/Components/Banner/Banner.js +5 -5
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +44 -41
- package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +28 -25
- package/dist/lib/Components/Button/Button.js +9 -9
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.d.ts +1 -1
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.d.ts.map +1 -1
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.js +37 -34
- package/dist/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +132 -129
- package/dist/lib/Components/Card/types.d.ts +1 -0
- package/dist/lib/Components/Card/types.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.d.ts +1 -1
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +28 -24
- package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +26 -14
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +2 -2
- package/dist/lib/Components/Dialog/types.d.ts +1 -1
- package/dist/lib/Components/Icon/Icon.js +4 -4
- package/dist/lib/Components/Icon/createIcon.js +4 -4
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -18
- package/dist/lib/Components/InteractiveIcon/types.d.ts +6 -1
- package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts +1 -1
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.js +44 -33
- package/dist/lib/Components/Link/types.d.ts +5 -0
- package/dist/lib/Components/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +72 -65
- package/dist/lib/Components/Menu/Menu.d.ts +3 -3
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +133 -104
- package/dist/lib/Components/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +88 -51
- package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.d.ts +2 -2
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +94 -76
- package/dist/lib/Components/SideBar/SideBar.d.ts +1 -1
- package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/lib/Components/SideBar/SideBar.js +77 -74
- package/dist/lib/Components/SideBar/types.d.ts +12 -4
- package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +3 -3
- package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.js +34 -24
- package/dist/lib/Components/Subheader/Subheader.d.ts +2 -7
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.js +31 -49
- package/dist/lib/Components/Subheader/index.d.ts +1 -1
- package/dist/lib/Components/Subheader/index.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/types.d.ts +1 -11
- package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.js +30 -22
- package/dist/lib/Components/Table/Table.js +49 -49
- package/dist/lib/Components/Tag/Tag.d.ts +1 -1
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +17 -14
- package/dist/lib/Components/Tile/Tile.d.ts +5 -12
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +79 -82
- 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 +1 -10
- package/dist/lib/Components/Tile/types.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +26 -23
- package/dist/libs/utils-shared/dist/index.js +95 -90
- package/dist/package.json +1 -1
- package/package.json +2 -2
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
const s = 48, i = 4,
|
|
5
|
-
({
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { useDisabledContext as N, cn as c, getStepperCalculations as v } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { forwardRef as D } from "react";
|
|
4
|
+
const s = 48, i = 4, g = D(
|
|
5
|
+
({
|
|
6
|
+
className: m,
|
|
7
|
+
currentStep: t,
|
|
8
|
+
totalSteps: r,
|
|
9
|
+
disabled: h = !1,
|
|
10
|
+
label: o,
|
|
11
|
+
...u
|
|
12
|
+
}, f) => {
|
|
13
|
+
const p = N({
|
|
14
|
+
consumerName: "Stepper",
|
|
15
|
+
mergeWith: { disabled: h }
|
|
16
|
+
}), {
|
|
17
|
+
displayLabel: k,
|
|
8
18
|
r: n,
|
|
9
19
|
cx: l,
|
|
10
|
-
cy:
|
|
11
|
-
trackDashArray:
|
|
12
|
-
progressDashArray:
|
|
13
|
-
progressDashOffset:
|
|
14
|
-
} =
|
|
20
|
+
cy: d,
|
|
21
|
+
trackDashArray: b,
|
|
22
|
+
progressDashArray: x,
|
|
23
|
+
progressDashOffset: y
|
|
24
|
+
} = v({
|
|
15
25
|
currentStep: t,
|
|
16
26
|
totalSteps: r,
|
|
17
27
|
size: s,
|
|
@@ -21,17 +31,17 @@ const s = 48, i = 4, N = v(
|
|
|
21
31
|
return /* @__PURE__ */ a(
|
|
22
32
|
"div",
|
|
23
33
|
{
|
|
24
|
-
ref:
|
|
34
|
+
ref: f,
|
|
25
35
|
role: "progressbar",
|
|
26
36
|
"aria-valuenow": t,
|
|
27
37
|
"aria-valuemin": 1,
|
|
28
38
|
"aria-valuemax": r,
|
|
29
|
-
"aria-label":
|
|
30
|
-
className:
|
|
39
|
+
"aria-label": k,
|
|
40
|
+
className: c(
|
|
31
41
|
"relative flex size-48 shrink-0 items-center justify-center rounded-full",
|
|
32
42
|
m
|
|
33
43
|
),
|
|
34
|
-
...
|
|
44
|
+
...u,
|
|
35
45
|
children: [
|
|
36
46
|
/* @__PURE__ */ a(
|
|
37
47
|
"svg",
|
|
@@ -46,7 +56,7 @@ const s = 48, i = 4, N = v(
|
|
|
46
56
|
"circle",
|
|
47
57
|
{
|
|
48
58
|
cx: l,
|
|
49
|
-
cy:
|
|
59
|
+
cy: d,
|
|
50
60
|
r: n,
|
|
51
61
|
fill: "none",
|
|
52
62
|
stroke: "currentColor",
|
|
@@ -54,7 +64,7 @@ const s = 48, i = 4, N = v(
|
|
|
54
64
|
className: "stroke-muted-subtle",
|
|
55
65
|
style: {
|
|
56
66
|
strokeWidth: `${i}px`,
|
|
57
|
-
strokeDasharray:
|
|
67
|
+
strokeDasharray: b,
|
|
58
68
|
strokeDashoffset: 0
|
|
59
69
|
}
|
|
60
70
|
}
|
|
@@ -63,19 +73,19 @@ const s = 48, i = 4, N = v(
|
|
|
63
73
|
"circle",
|
|
64
74
|
{
|
|
65
75
|
cx: l,
|
|
66
|
-
cy:
|
|
76
|
+
cy: d,
|
|
67
77
|
r: n,
|
|
68
78
|
fill: "none",
|
|
69
79
|
stroke: "currentColor",
|
|
70
80
|
strokeLinecap: "round",
|
|
71
|
-
className:
|
|
72
|
-
|
|
81
|
+
className: c(
|
|
82
|
+
p ? "stroke-muted-subtle-hover" : "stroke-active",
|
|
73
83
|
"transition-[stroke-dashoffset,stroke] duration-300 ease-in-out"
|
|
74
84
|
),
|
|
75
85
|
style: {
|
|
76
86
|
strokeWidth: `${i}px`,
|
|
77
|
-
strokeDasharray:
|
|
78
|
-
strokeDashoffset:
|
|
87
|
+
strokeDasharray: x,
|
|
88
|
+
strokeDashoffset: y
|
|
79
89
|
}
|
|
80
90
|
}
|
|
81
91
|
)
|
|
@@ -94,7 +104,7 @@ const s = 48, i = 4, N = v(
|
|
|
94
104
|
);
|
|
95
105
|
}
|
|
96
106
|
);
|
|
97
|
-
|
|
107
|
+
g.displayName = "Stepper";
|
|
98
108
|
export {
|
|
99
|
-
|
|
109
|
+
g as Stepper
|
|
100
110
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SubheaderCountProps, SubheaderDescriptionProps, SubheaderInfoProps, SubheaderProps, SubheaderRowProps, SubheaderShowMoreProps, SubheaderTitleProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Title component for the Subheader. Displays the main heading.
|
|
4
4
|
* Use the `as` prop to control heading semantics and avoid multiple h2s on a page.
|
|
@@ -36,11 +36,6 @@ export declare const SubheaderShowMore: ({ className, ...props }: SubheaderShowM
|
|
|
36
36
|
* Description component for the Subheader. Displays descriptive text below the title row.
|
|
37
37
|
*/
|
|
38
38
|
export declare const SubheaderDescription: ({ children, className, ...props }: SubheaderDescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* Action component for the Subheader. Displays an interactive text button.
|
|
41
|
-
* Automatically positions itself at the end of the row using ml-auto.
|
|
42
|
-
*/
|
|
43
|
-
export declare const SubheaderAction: ({ children, onClick, className, ...props }: SubheaderActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
39
|
/**
|
|
45
40
|
* A subheader component for displaying section titles with optional count, hints, descriptions, and action elements.
|
|
46
41
|
* Uses a composable API where you explicitly nest sub-components to define the layout.
|
|
@@ -75,7 +70,7 @@ export declare const SubheaderAction: ({ children, onClick, className, ...props
|
|
|
75
70
|
* </Subheader>
|
|
76
71
|
*
|
|
77
72
|
* @example
|
|
78
|
-
* // Interactive row
|
|
73
|
+
* // Interactive row
|
|
79
74
|
* <Subheader>
|
|
80
75
|
* <SubheaderRow onClick={handleClick}>
|
|
81
76
|
* <SubheaderTitle>Accounts</SubheaderTitle>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/Subheader.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/Subheader.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,kDAK5B,mBAAmB,4CAYrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,4CAK1B,iBAAiB,4CAgBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;6CAKvB,kBAAkB;;CAcpB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,4CAaxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,mCAIlC,yBAAyB,4CAM3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,SAAS,GAAI,mCAIvB,cAAc,4CAMhB,CAAC"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { Information as i } from "../../Symbols/Icons/Information.js";
|
|
4
|
-
import { ChevronRight as
|
|
5
|
-
import { InteractiveIcon as
|
|
4
|
+
import { ChevronRight as m } from "../../Symbols/Icons/ChevronRight.js";
|
|
5
|
+
import { InteractiveIcon as c } from "../InteractiveIcon/InteractiveIcon.js";
|
|
6
6
|
const f = ({
|
|
7
|
-
children:
|
|
7
|
+
children: r,
|
|
8
8
|
as: e = "h2",
|
|
9
|
-
className:
|
|
9
|
+
className: t,
|
|
10
10
|
...n
|
|
11
11
|
}) => /* @__PURE__ */ o(
|
|
12
12
|
e,
|
|
13
13
|
{
|
|
14
14
|
className: s(
|
|
15
15
|
"min-w-0 truncate pe-1 heading-4-semi-bold text-base group-hover/row:text-base-hover",
|
|
16
|
-
|
|
16
|
+
t
|
|
17
17
|
),
|
|
18
18
|
...n,
|
|
19
|
-
children:
|
|
19
|
+
children: r
|
|
20
20
|
}
|
|
21
21
|
), x = ({
|
|
22
|
-
children:
|
|
22
|
+
children: r,
|
|
23
23
|
onClick: e,
|
|
24
|
-
className:
|
|
24
|
+
className: t,
|
|
25
25
|
...n
|
|
26
26
|
}) => /* @__PURE__ */ o(
|
|
27
27
|
e ? "button" : "div",
|
|
@@ -29,46 +29,46 @@ const f = ({
|
|
|
29
29
|
className: s(
|
|
30
30
|
"group/row flex items-center gap-4",
|
|
31
31
|
e && "cursor-pointer",
|
|
32
|
-
|
|
32
|
+
t
|
|
33
33
|
),
|
|
34
34
|
onClick: e,
|
|
35
35
|
...n,
|
|
36
|
-
children:
|
|
36
|
+
children: r
|
|
37
37
|
}
|
|
38
38
|
), g = ({
|
|
39
|
-
value:
|
|
39
|
+
value: r,
|
|
40
40
|
format: e,
|
|
41
|
-
className:
|
|
41
|
+
className: t,
|
|
42
42
|
...n
|
|
43
43
|
}) => {
|
|
44
|
-
const a = e ? e(
|
|
44
|
+
const a = e ? e(r) : `(${r})`;
|
|
45
45
|
return /* @__PURE__ */ o(
|
|
46
46
|
"span",
|
|
47
47
|
{
|
|
48
|
-
className: s("shrink-0 pl-2 body-2 text-muted",
|
|
48
|
+
className: s("shrink-0 pl-2 body-2 text-muted", t),
|
|
49
49
|
...n,
|
|
50
50
|
children: a
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
},
|
|
54
|
-
ref:
|
|
53
|
+
}, u = ({
|
|
54
|
+
ref: r,
|
|
55
55
|
iconType: e = "stroked",
|
|
56
|
-
className:
|
|
56
|
+
className: t,
|
|
57
57
|
...n
|
|
58
58
|
}) => /* @__PURE__ */ o("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ o(
|
|
59
|
-
|
|
59
|
+
c,
|
|
60
60
|
{
|
|
61
|
-
ref:
|
|
61
|
+
ref: r,
|
|
62
62
|
iconType: e,
|
|
63
|
-
className:
|
|
63
|
+
className: t,
|
|
64
64
|
"aria-label": "More information",
|
|
65
65
|
...n,
|
|
66
66
|
children: /* @__PURE__ */ o(i, { size: 16 })
|
|
67
67
|
}
|
|
68
68
|
) });
|
|
69
|
-
|
|
69
|
+
u.displayName = "SubheaderInfo";
|
|
70
70
|
const v = ({
|
|
71
|
-
className:
|
|
71
|
+
className: r,
|
|
72
72
|
...e
|
|
73
73
|
}) => /* @__PURE__ */ o(
|
|
74
74
|
"span",
|
|
@@ -76,43 +76,25 @@ const v = ({
|
|
|
76
76
|
className: s(
|
|
77
77
|
"inline-flex size-fit items-center justify-center rounded-full bg-base-transparent text-muted transition-colors group-hover/row:bg-base-transparent-hover group-hover/row:text-muted-hover",
|
|
78
78
|
"-ml-2",
|
|
79
|
-
|
|
79
|
+
r
|
|
80
80
|
),
|
|
81
81
|
...e,
|
|
82
|
-
children: /* @__PURE__ */ o(
|
|
82
|
+
children: /* @__PURE__ */ o(m, { size: 20 })
|
|
83
83
|
}
|
|
84
84
|
), S = ({
|
|
85
|
-
children:
|
|
85
|
+
children: r,
|
|
86
86
|
className: e,
|
|
87
|
-
...
|
|
88
|
-
}) => /* @__PURE__ */ o("p", { className: s("body-3 text-muted", e), ...
|
|
89
|
-
children: t,
|
|
90
|
-
onClick: e,
|
|
87
|
+
...t
|
|
88
|
+
}) => /* @__PURE__ */ o("p", { className: s("body-3 text-muted", e), ...t, children: r }), N = ({
|
|
91
89
|
className: r,
|
|
92
|
-
...n
|
|
93
|
-
}) => /* @__PURE__ */ o(
|
|
94
|
-
"button",
|
|
95
|
-
{
|
|
96
|
-
type: "button",
|
|
97
|
-
onClick: e,
|
|
98
|
-
className: s(
|
|
99
|
-
"ml-auto shrink-0 cursor-pointer pl-8 body-2 text-interactive",
|
|
100
|
-
r
|
|
101
|
-
),
|
|
102
|
-
...n,
|
|
103
|
-
children: t
|
|
104
|
-
}
|
|
105
|
-
), w = ({
|
|
106
|
-
className: t,
|
|
107
90
|
children: e,
|
|
108
|
-
...
|
|
109
|
-
}) => /* @__PURE__ */ o("div", { className: s("flex flex-col gap-4",
|
|
91
|
+
...t
|
|
92
|
+
}) => /* @__PURE__ */ o("div", { className: s("flex flex-col gap-4", r), ...t, children: e });
|
|
110
93
|
export {
|
|
111
|
-
|
|
112
|
-
N as SubheaderAction,
|
|
94
|
+
N as Subheader,
|
|
113
95
|
g as SubheaderCount,
|
|
114
96
|
S as SubheaderDescription,
|
|
115
|
-
|
|
97
|
+
u as SubheaderInfo,
|
|
116
98
|
x as SubheaderRow,
|
|
117
99
|
v as SubheaderShowMore,
|
|
118
100
|
f as SubheaderTitle
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Subheader, SubheaderRow, SubheaderTitle, SubheaderCount, SubheaderInfo, SubheaderShowMore, SubheaderDescription,
|
|
1
|
+
export { Subheader, SubheaderRow, SubheaderTitle, SubheaderCount, SubheaderInfo, SubheaderShowMore, SubheaderDescription, } from './Subheader';
|
|
2
2
|
export * from './types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { InteractiveIconProps } from '../InteractiveIcon';
|
|
3
3
|
export type SubheaderProps = {
|
|
4
4
|
/**
|
|
@@ -52,15 +52,5 @@ export type SubheaderDescriptionProps = {
|
|
|
52
52
|
*/
|
|
53
53
|
children: ReactNode;
|
|
54
54
|
} & Omit<HTMLAttributes<HTMLParagraphElement>, 'children'>;
|
|
55
|
-
export type SubheaderActionProps = {
|
|
56
|
-
/**
|
|
57
|
-
* The action element to display (e.g., button text).
|
|
58
|
-
*/
|
|
59
|
-
children: ReactNode;
|
|
60
|
-
/**
|
|
61
|
-
* Click handler for the action.
|
|
62
|
-
*/
|
|
63
|
-
onClick: () => void;
|
|
64
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onClick'>;
|
|
65
55
|
export type SubheaderShowMoreProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children'>;
|
|
66
56
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,IAAI,CACb,qBAAqB,EACrB,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CACzD,CAAC;CACH,GAAG,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACpC,GAAG,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,oBAAoB,EACpB,UAAU,GAAG,UAAU,CACxB,GAAG;IACF;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,UAAU,CAAC,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,cAAc,CAAC,eAAe,CAAC,EAC/B,UAAU,CACX,CAAC"}
|
|
@@ -20,7 +20,7 @@ import { SwitchProps } from './types';
|
|
|
20
20
|
* <Switch size="sm" selected={selected} onChange={(selected) => setSelected(selected)} disabled={someCondition} />
|
|
21
21
|
*/
|
|
22
22
|
export declare const Switch: {
|
|
23
|
-
({ ref, className, selected, defaultSelected, onChange, size, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
({ ref, className, selected, defaultSelected, onChange, size, disabled: disabledProp, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqCtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqCtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,MAAM;sGAShB,WAAW;;CAmBb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as h, cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import * as a from "@radix-ui/react-switch";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
5
|
-
const
|
|
5
|
+
const b = d(
|
|
6
6
|
s(
|
|
7
7
|
"group flex cursor-pointer items-center rounded-full p-2 transition-colors duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
|
|
8
8
|
"[&[data-state=unchecked]:not([data-disabled])]:bg-muted-strong [&[data-state=unchecked]:not([data-disabled])]:hover:bg-muted-strong-hover [&[data-state=unchecked]:not([data-disabled])]:active:bg-muted-strong-pressed",
|
|
@@ -20,7 +20,7 @@ const u = d(
|
|
|
20
20
|
size: "md"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
),
|
|
23
|
+
), g = d(
|
|
24
24
|
"translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-disabled:bg-base",
|
|
25
25
|
{
|
|
26
26
|
variants: {
|
|
@@ -33,27 +33,35 @@ const u = d(
|
|
|
33
33
|
size: "md"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
),
|
|
36
|
+
), f = ({
|
|
37
37
|
ref: i,
|
|
38
38
|
className: o,
|
|
39
39
|
selected: r,
|
|
40
40
|
defaultSelected: n,
|
|
41
41
|
onChange: c,
|
|
42
|
-
size:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
size: e = "md",
|
|
43
|
+
disabled: l,
|
|
44
|
+
...u
|
|
45
|
+
}) => {
|
|
46
|
+
const m = h({
|
|
47
|
+
consumerName: "Switch",
|
|
48
|
+
mergeWith: { disabled: l }
|
|
49
|
+
});
|
|
50
|
+
return /* @__PURE__ */ t(
|
|
51
|
+
a.Root,
|
|
52
|
+
{
|
|
53
|
+
ref: i,
|
|
54
|
+
className: s(o, b({ size: e })),
|
|
55
|
+
checked: r,
|
|
56
|
+
defaultChecked: n,
|
|
57
|
+
onCheckedChange: c,
|
|
58
|
+
disabled: m,
|
|
59
|
+
...u,
|
|
60
|
+
children: /* @__PURE__ */ t(a.Thumb, { className: g({ size: e }) })
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
f.displayName = "Switch";
|
|
57
65
|
export {
|
|
58
|
-
|
|
66
|
+
f as Switch
|
|
59
67
|
};
|