@ledgerhq/lumen-ui-react 0.1.11 → 0.1.13
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/i18n/locales/de.json.d.ts +3 -0
- package/dist/i18n/locales/de.json.js +4 -2
- package/dist/i18n/locales/en.json.d.ts +3 -0
- package/dist/i18n/locales/en.json.js +6 -4
- package/dist/i18n/locales/es.json.d.ts +3 -0
- package/dist/i18n/locales/es.json.js +6 -4
- package/dist/i18n/locales/fr.json.d.ts +3 -0
- package/dist/i18n/locales/fr.json.js +6 -4
- package/dist/i18n/locales/ja.json.d.ts +3 -0
- package/dist/i18n/locales/ja.json.js +6 -4
- package/dist/i18n/locales/ko.json.d.ts +3 -0
- package/dist/i18n/locales/ko.json.js +6 -4
- package/dist/i18n/locales/pt.json.d.ts +3 -0
- package/dist/i18n/locales/pt.json.js +6 -4
- package/dist/i18n/locales/ru.json.d.ts +3 -0
- package/dist/i18n/locales/ru.json.js +6 -4
- package/dist/i18n/locales/th.json.d.ts +3 -0
- package/dist/i18n/locales/th.json.js +6 -4
- package/dist/i18n/locales/tr.json.d.ts +3 -0
- package/dist/i18n/locales/tr.json.js +6 -4
- package/dist/i18n/locales/zh.json.d.ts +3 -0
- package/dist/i18n/locales/zh.json.js +6 -4
- package/dist/index.js +114 -113
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +41 -41
- 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/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +110 -107
- 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 +40 -20
- package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -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/MediaCard/MediaCard.d.ts +33 -0
- package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -0
- package/dist/lib/Components/MediaCard/MediaCard.js +128 -0
- package/dist/lib/Components/MediaCard/index.d.ts +3 -0
- package/dist/lib/Components/MediaCard/index.d.ts.map +1 -0
- package/dist/lib/Components/MediaCard/types.d.ts +30 -0
- package/dist/lib/Components/MediaCard/types.d.ts.map +1 -0
- 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 +5 -5
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +94 -76
- package/dist/lib/Components/Select/index.d.ts +1 -1
- package/dist/lib/Components/Select/types.d.ts +4 -4
- 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/lib/Components/{ButtonTrigger/ButtonTrigger.d.ts → TriggerButton/TriggerButton.d.ts} +10 -10
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -0
- package/dist/lib/Components/TriggerButton/TriggerButton.js +76 -0
- package/dist/lib/Components/TriggerButton/index.d.ts +3 -0
- package/dist/lib/Components/{ButtonTrigger → TriggerButton}/index.d.ts.map +1 -1
- package/dist/lib/Components/{ButtonTrigger → TriggerButton}/types.d.ts +1 -1
- package/dist/lib/Components/{ButtonTrigger → TriggerButton}/types.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +2 -1
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/lib/Symbols/Icons/NanoGen5.d.ts +29 -0
- package/dist/lib/Symbols/Icons/NanoGen5.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/NanoGen5.js +27 -0
- package/dist/lib/Symbols/index.d.ts +1 -0
- package/dist/lib/Symbols/index.d.ts.map +1 -1
- package/dist/lib/Symbols/index.js +194 -192
- package/dist/libs/utils-shared/dist/index.js +95 -90
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.d.ts.map +0 -1
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.js +0 -73
- package/dist/lib/Components/ButtonTrigger/index.d.ts +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { cn as d } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as e } from "class-variance-authority";
|
|
4
4
|
import { BaseButton as b } from "./BaseButton.js";
|
|
@@ -14,24 +14,24 @@ const l = e("", {
|
|
|
14
14
|
size: "md"
|
|
15
15
|
}
|
|
16
16
|
}), u = ({
|
|
17
|
-
ref:
|
|
17
|
+
ref: t,
|
|
18
18
|
className: m,
|
|
19
19
|
loading: s,
|
|
20
20
|
disabled: a,
|
|
21
21
|
children: r,
|
|
22
|
-
size:
|
|
22
|
+
size: o,
|
|
23
23
|
icon: i,
|
|
24
|
-
...
|
|
25
|
-
}) => /* @__PURE__ */
|
|
24
|
+
...n
|
|
25
|
+
}) => /* @__PURE__ */ p(
|
|
26
26
|
b,
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
29
|
-
size:
|
|
28
|
+
ref: t,
|
|
29
|
+
size: o,
|
|
30
30
|
disabled: a,
|
|
31
31
|
icon: i,
|
|
32
32
|
loading: s,
|
|
33
|
-
className: d(l({ size:
|
|
34
|
-
...
|
|
33
|
+
className: d(l({ size: o }), "gap-8", m),
|
|
34
|
+
...n,
|
|
35
35
|
children: r
|
|
36
36
|
}
|
|
37
37
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Card/Card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Card/Card.tsx"],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|
|
2
|
-
import { createSafeContext as m, DisabledProvider as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { ChevronUp as
|
|
6
|
-
import { ChevronDown as
|
|
7
|
-
const
|
|
1
|
+
import { jsx as s, jsxs as f, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as m, DisabledProvider as b, cn as o, getButtonA11yProps as C } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as g } from "class-variance-authority";
|
|
4
|
+
import { useMemo as N } from "react";
|
|
5
|
+
import { ChevronUp as h } from "../../Symbols/Icons/ChevronUp.js";
|
|
6
|
+
import { ChevronDown as w } from "../../Symbols/Icons/ChevronDown.js";
|
|
7
|
+
const y = ({
|
|
8
8
|
type: r,
|
|
9
9
|
expanded: t,
|
|
10
|
-
onClick:
|
|
11
|
-
disabled:
|
|
10
|
+
onClick: a,
|
|
11
|
+
disabled: e
|
|
12
12
|
}) => {
|
|
13
13
|
switch (r) {
|
|
14
14
|
case "interactive":
|
|
15
15
|
return {
|
|
16
|
-
cardClickable: !!
|
|
16
|
+
cardClickable: !!a,
|
|
17
17
|
headerClickable: !1,
|
|
18
18
|
footerExpanded: !0,
|
|
19
|
+
disabled: !!e,
|
|
19
20
|
onHeaderClick: void 0
|
|
20
21
|
};
|
|
21
22
|
case "expandable":
|
|
22
23
|
return {
|
|
23
24
|
cardClickable: !1,
|
|
24
|
-
headerClickable: !!
|
|
25
|
+
headerClickable: !!a && !e,
|
|
25
26
|
footerExpanded: !!t,
|
|
26
|
-
|
|
27
|
+
disabled: !!e,
|
|
28
|
+
onHeaderClick: a
|
|
27
29
|
};
|
|
28
30
|
case "info":
|
|
29
31
|
return {
|
|
30
32
|
cardClickable: !1,
|
|
31
33
|
headerClickable: !1,
|
|
32
34
|
footerExpanded: !0,
|
|
35
|
+
disabled: !!e,
|
|
33
36
|
onHeaderClick: void 0
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
|
-
}, [
|
|
39
|
+
}, [k, c] = m(
|
|
37
40
|
"Card",
|
|
38
41
|
{
|
|
39
42
|
cardClickable: !1,
|
|
40
43
|
headerClickable: !1,
|
|
41
|
-
footerExpanded: !0
|
|
44
|
+
footerExpanded: !0,
|
|
45
|
+
disabled: !1
|
|
42
46
|
}
|
|
43
|
-
), [
|
|
47
|
+
), [R, v] = m("CardContentAlign", {
|
|
44
48
|
align: "left"
|
|
45
|
-
}),
|
|
49
|
+
}), q = g(
|
|
46
50
|
"flex w-full flex-col overflow-clip rounded-lg bg-surface text-base transition-colors",
|
|
47
51
|
{
|
|
48
52
|
variants: {
|
|
@@ -72,33 +76,33 @@ const k = ({
|
|
|
72
76
|
disabled: !1
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
|
-
),
|
|
79
|
+
), H = ({
|
|
76
80
|
ref: r,
|
|
77
81
|
className: t,
|
|
78
|
-
type:
|
|
79
|
-
expanded:
|
|
82
|
+
type: a = "interactive",
|
|
83
|
+
expanded: e,
|
|
80
84
|
outlined: n = !1,
|
|
81
85
|
disabled: i = !1,
|
|
82
86
|
onClick: d,
|
|
83
87
|
children: l,
|
|
84
88
|
...x
|
|
85
89
|
}) => {
|
|
86
|
-
const u =
|
|
87
|
-
() =>
|
|
88
|
-
type:
|
|
89
|
-
expanded:
|
|
90
|
+
const u = N(
|
|
91
|
+
() => y({
|
|
92
|
+
type: a,
|
|
93
|
+
expanded: e,
|
|
90
94
|
onClick: d,
|
|
91
95
|
disabled: i
|
|
92
96
|
}),
|
|
93
|
-
[
|
|
97
|
+
[a, e, d, i]
|
|
94
98
|
);
|
|
95
|
-
return /* @__PURE__ */ s(
|
|
99
|
+
return /* @__PURE__ */ s(k, { value: u, children: /* @__PURE__ */ s(b, { value: { disabled: i }, children: /* @__PURE__ */ s(
|
|
96
100
|
"div",
|
|
97
101
|
{
|
|
98
102
|
ref: r,
|
|
99
103
|
...u.cardClickable && C({ onClick: d, disabled: i }),
|
|
100
104
|
className: o(
|
|
101
|
-
|
|
105
|
+
q({
|
|
102
106
|
interactive: u.cardClickable,
|
|
103
107
|
outlined: n,
|
|
104
108
|
disabled: i
|
|
@@ -110,16 +114,14 @@ const k = ({
|
|
|
110
114
|
}
|
|
111
115
|
) }) });
|
|
112
116
|
};
|
|
113
|
-
|
|
114
|
-
const
|
|
117
|
+
H.displayName = "Card";
|
|
118
|
+
const A = ({
|
|
115
119
|
ref: r,
|
|
116
120
|
children: t,
|
|
117
|
-
className:
|
|
118
|
-
...
|
|
121
|
+
className: a,
|
|
122
|
+
...e
|
|
119
123
|
}) => {
|
|
120
|
-
const n = c({
|
|
121
|
-
consumerName: "CardHeader"
|
|
122
|
-
}), { headerClickable: i, footerExpanded: d, onHeaderClick: l } = v({
|
|
124
|
+
const { disabled: n, headerClickable: i, footerExpanded: d, onHeaderClick: l } = c({
|
|
123
125
|
consumerName: "CardHeader",
|
|
124
126
|
contextRequired: !1
|
|
125
127
|
});
|
|
@@ -132,42 +134,42 @@ const D = ({
|
|
|
132
134
|
className: o(
|
|
133
135
|
"flex items-center gap-12 p-12",
|
|
134
136
|
i && "cursor-pointer -outline-offset-6 transition-colors hover:bg-surface-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-surface-pressed",
|
|
135
|
-
|
|
137
|
+
a
|
|
136
138
|
),
|
|
137
|
-
...
|
|
139
|
+
...e,
|
|
138
140
|
children: [
|
|
139
141
|
t,
|
|
140
|
-
l && /* @__PURE__ */ f(
|
|
141
|
-
d && /* @__PURE__ */ s(
|
|
142
|
-
!d && /* @__PURE__ */ s(
|
|
142
|
+
l && /* @__PURE__ */ f(p, { children: [
|
|
143
|
+
d && /* @__PURE__ */ s(h, { className: "text-muted", size: 20 }),
|
|
144
|
+
!d && /* @__PURE__ */ s(w, { className: "text-muted", size: 20 })
|
|
143
145
|
] })
|
|
144
146
|
]
|
|
145
147
|
}
|
|
146
148
|
);
|
|
147
149
|
};
|
|
148
|
-
|
|
150
|
+
A.displayName = "CardHeader";
|
|
149
151
|
const E = ({
|
|
150
152
|
ref: r,
|
|
151
153
|
children: t,
|
|
152
|
-
className:
|
|
153
|
-
...
|
|
154
|
+
className: a,
|
|
155
|
+
...e
|
|
154
156
|
}) => /* @__PURE__ */ s(
|
|
155
157
|
"div",
|
|
156
158
|
{
|
|
157
159
|
ref: r,
|
|
158
|
-
className: o("flex min-w-0 flex-1 items-center gap-12",
|
|
159
|
-
...
|
|
160
|
+
className: o("flex min-w-0 flex-1 items-center gap-12", a),
|
|
161
|
+
...e,
|
|
160
162
|
children: t
|
|
161
163
|
}
|
|
162
164
|
);
|
|
163
165
|
E.displayName = "CardLeading";
|
|
164
|
-
const
|
|
166
|
+
const F = ({
|
|
165
167
|
ref: r,
|
|
166
168
|
children: t,
|
|
167
|
-
className:
|
|
168
|
-
...
|
|
169
|
+
className: a,
|
|
170
|
+
...e
|
|
169
171
|
}) => {
|
|
170
|
-
const { align: n } =
|
|
172
|
+
const { align: n } = v({
|
|
171
173
|
consumerName: "CardContent",
|
|
172
174
|
contextRequired: !1
|
|
173
175
|
});
|
|
@@ -178,21 +180,21 @@ const T = ({
|
|
|
178
180
|
className: o(
|
|
179
181
|
"flex min-w-0 flex-1 flex-col gap-4",
|
|
180
182
|
n === "right" && "items-end text-end",
|
|
181
|
-
|
|
183
|
+
a
|
|
182
184
|
),
|
|
183
|
-
...
|
|
185
|
+
...e,
|
|
184
186
|
children: t
|
|
185
187
|
}
|
|
186
188
|
);
|
|
187
189
|
};
|
|
188
|
-
|
|
189
|
-
const
|
|
190
|
+
F.displayName = "CardContent";
|
|
191
|
+
const T = ({
|
|
190
192
|
ref: r,
|
|
191
193
|
children: t,
|
|
192
|
-
className:
|
|
193
|
-
...
|
|
194
|
+
className: a,
|
|
195
|
+
...e
|
|
194
196
|
}) => {
|
|
195
|
-
const { align: n } =
|
|
197
|
+
const { align: n } = v({
|
|
196
198
|
consumerName: "CardContentRow",
|
|
197
199
|
contextRequired: !1
|
|
198
200
|
});
|
|
@@ -203,22 +205,23 @@ const j = ({
|
|
|
203
205
|
className: o(
|
|
204
206
|
"flex min-w-0 items-center gap-8",
|
|
205
207
|
n === "right" && "justify-end",
|
|
206
|
-
|
|
208
|
+
a
|
|
207
209
|
),
|
|
208
|
-
...
|
|
210
|
+
...e,
|
|
209
211
|
children: t
|
|
210
212
|
}
|
|
211
213
|
);
|
|
212
214
|
};
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
+
T.displayName = "CardContentRow";
|
|
216
|
+
const D = ({
|
|
215
217
|
ref: r,
|
|
216
218
|
children: t,
|
|
217
|
-
className:
|
|
218
|
-
...
|
|
219
|
+
className: a,
|
|
220
|
+
...e
|
|
219
221
|
}) => {
|
|
220
|
-
const n = c({
|
|
221
|
-
consumerName: "CardContentTitle"
|
|
222
|
+
const { disabled: n } = c({
|
|
223
|
+
consumerName: "CardContentTitle",
|
|
224
|
+
contextRequired: !1
|
|
222
225
|
});
|
|
223
226
|
return /* @__PURE__ */ s(
|
|
224
227
|
"div",
|
|
@@ -227,22 +230,23 @@ const q = ({
|
|
|
227
230
|
className: o(
|
|
228
231
|
"truncate body-2-semi-bold",
|
|
229
232
|
n && "text-disabled",
|
|
230
|
-
|
|
233
|
+
a
|
|
231
234
|
),
|
|
232
|
-
...
|
|
235
|
+
...e,
|
|
233
236
|
children: t
|
|
234
237
|
}
|
|
235
238
|
);
|
|
236
239
|
};
|
|
237
|
-
|
|
238
|
-
const
|
|
240
|
+
D.displayName = "CardContentTitle";
|
|
241
|
+
const j = ({
|
|
239
242
|
ref: r,
|
|
240
243
|
children: t,
|
|
241
|
-
className:
|
|
242
|
-
...
|
|
244
|
+
className: a,
|
|
245
|
+
...e
|
|
243
246
|
}) => {
|
|
244
|
-
const n = c({
|
|
245
|
-
consumerName: "CardContentDescription"
|
|
247
|
+
const { disabled: n } = c({
|
|
248
|
+
consumerName: "CardContentDescription",
|
|
249
|
+
contextRequired: !1
|
|
246
250
|
});
|
|
247
251
|
return /* @__PURE__ */ s(
|
|
248
252
|
"div",
|
|
@@ -251,47 +255,46 @@ const P = ({
|
|
|
251
255
|
className: o(
|
|
252
256
|
"truncate body-3",
|
|
253
257
|
n ? "text-disabled" : "text-muted",
|
|
254
|
-
|
|
258
|
+
a
|
|
255
259
|
),
|
|
256
|
-
...
|
|
260
|
+
...e,
|
|
257
261
|
children: t
|
|
258
262
|
}
|
|
259
263
|
);
|
|
260
264
|
};
|
|
261
|
-
|
|
262
|
-
const
|
|
265
|
+
j.displayName = "CardContentDescription";
|
|
266
|
+
const P = ({
|
|
263
267
|
ref: r,
|
|
264
268
|
children: t,
|
|
265
|
-
className:
|
|
266
|
-
...
|
|
269
|
+
className: a,
|
|
270
|
+
...e
|
|
267
271
|
}) => {
|
|
268
|
-
const n = c({
|
|
269
|
-
consumerName: "CardTrailing"
|
|
272
|
+
const { disabled: n } = c({
|
|
273
|
+
consumerName: "CardTrailing",
|
|
274
|
+
contextRequired: !1
|
|
270
275
|
});
|
|
271
|
-
return /* @__PURE__ */ s(
|
|
276
|
+
return /* @__PURE__ */ s(R, { value: { align: "right" }, children: /* @__PURE__ */ s(
|
|
272
277
|
"div",
|
|
273
278
|
{
|
|
274
279
|
ref: r,
|
|
275
280
|
className: o(
|
|
276
281
|
"flex shrink-0 items-center gap-12",
|
|
277
282
|
n && "text-disabled",
|
|
278
|
-
|
|
283
|
+
a
|
|
279
284
|
),
|
|
280
|
-
...
|
|
285
|
+
...e,
|
|
281
286
|
children: t
|
|
282
287
|
}
|
|
283
288
|
) });
|
|
284
289
|
};
|
|
285
|
-
|
|
286
|
-
const
|
|
290
|
+
P.displayName = "CardTrailing";
|
|
291
|
+
const z = ({
|
|
287
292
|
ref: r,
|
|
288
293
|
children: t,
|
|
289
|
-
className:
|
|
290
|
-
...
|
|
294
|
+
className: a,
|
|
295
|
+
...e
|
|
291
296
|
}) => {
|
|
292
|
-
const n = c({
|
|
293
|
-
consumerName: "CardFooter"
|
|
294
|
-
}), { footerExpanded: i } = v({
|
|
297
|
+
const { disabled: n, footerExpanded: i } = c({
|
|
295
298
|
consumerName: "CardFooter",
|
|
296
299
|
contextRequired: !1
|
|
297
300
|
});
|
|
@@ -309,41 +312,41 @@ const V = ({
|
|
|
309
312
|
className: o(
|
|
310
313
|
"flex w-full flex-col gap-8 px-12 py-10",
|
|
311
314
|
n && "text-disabled",
|
|
312
|
-
|
|
315
|
+
a
|
|
313
316
|
),
|
|
314
|
-
...
|
|
317
|
+
...e,
|
|
315
318
|
children: t
|
|
316
319
|
}
|
|
317
320
|
) })
|
|
318
321
|
}
|
|
319
322
|
);
|
|
320
323
|
};
|
|
321
|
-
|
|
322
|
-
const
|
|
324
|
+
z.displayName = "CardFooter";
|
|
325
|
+
const V = ({
|
|
323
326
|
ref: r,
|
|
324
327
|
children: t,
|
|
325
|
-
className:
|
|
326
|
-
...
|
|
328
|
+
className: a,
|
|
329
|
+
...e
|
|
327
330
|
}) => /* @__PURE__ */ s(
|
|
328
331
|
"div",
|
|
329
332
|
{
|
|
330
333
|
ref: r,
|
|
331
|
-
className: o("flex flex-row justify-end gap-10",
|
|
332
|
-
...
|
|
334
|
+
className: o("flex flex-row justify-end gap-10", a),
|
|
335
|
+
...e,
|
|
333
336
|
children: t
|
|
334
337
|
}
|
|
335
338
|
);
|
|
336
|
-
|
|
339
|
+
V.displayName = "CardFooterActions";
|
|
337
340
|
export {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
341
|
+
H as Card,
|
|
342
|
+
F as CardContent,
|
|
343
|
+
j as CardContentDescription,
|
|
344
|
+
T as CardContentRow,
|
|
345
|
+
D as CardContentTitle,
|
|
346
|
+
z as CardFooter,
|
|
347
|
+
V as CardFooterActions,
|
|
348
|
+
A as CardHeader,
|
|
346
349
|
E as CardLeading,
|
|
347
|
-
|
|
348
|
-
|
|
350
|
+
P as CardTrailing,
|
|
351
|
+
y as resolveCardInnerContext
|
|
349
352
|
};
|
|
@@ -1 +1 @@
|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28
28
|
* />
|
|
29
29
|
*/
|
|
30
30
|
export declare const CardButton: {
|
|
31
|
-
({ ref, className, appearance, icon, title, description, hideChevron, ...props }: CardButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
({ ref, className, appearance, icon, title, description, hideChevron, disabled: disabledProp, ...props }: CardButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=CardButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU;8GAUpB,eAAe;;CAoCjB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { ChevronRight as
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as m, cn as p } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as f } from "class-variance-authority";
|
|
4
|
+
import { ChevronRight as v } from "../../Symbols/Icons/ChevronRight.js";
|
|
5
|
+
const h = f(
|
|
6
6
|
"group inline-flex h-fit w-full cursor-pointer items-center gap-12 rounded-sm p-12 transition-colors focus-visible:outline-2 focus-visible:outline-focus disabled:cursor-default disabled:text-disabled",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
@@ -15,37 +15,41 @@ const f = c(
|
|
|
15
15
|
appearance: "base"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
),
|
|
19
|
-
ref:
|
|
18
|
+
), x = ({
|
|
19
|
+
ref: i,
|
|
20
20
|
className: d,
|
|
21
|
-
appearance:
|
|
21
|
+
appearance: l,
|
|
22
22
|
icon: n,
|
|
23
23
|
title: o,
|
|
24
24
|
description: s,
|
|
25
|
-
hideChevron:
|
|
26
|
-
|
|
25
|
+
hideChevron: r,
|
|
26
|
+
disabled: u,
|
|
27
|
+
...b
|
|
27
28
|
}) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
29
|
+
const c = m({
|
|
30
|
+
consumerName: "CardButton",
|
|
31
|
+
mergeWith: { disabled: u }
|
|
32
|
+
}), t = n;
|
|
33
|
+
return /* @__PURE__ */ a(
|
|
30
34
|
"button",
|
|
31
35
|
{
|
|
32
|
-
ref:
|
|
33
|
-
className:
|
|
36
|
+
ref: i,
|
|
37
|
+
className: p(
|
|
34
38
|
d,
|
|
35
|
-
|
|
36
|
-
appearance:
|
|
39
|
+
h({
|
|
40
|
+
appearance: l
|
|
37
41
|
})
|
|
38
42
|
),
|
|
39
|
-
disabled:
|
|
40
|
-
...
|
|
43
|
+
disabled: c,
|
|
44
|
+
...b,
|
|
41
45
|
children: [
|
|
42
|
-
|
|
43
|
-
/* @__PURE__ */
|
|
46
|
+
t && /* @__PURE__ */ e(t, { size: 24, className: "shrink-0" }),
|
|
47
|
+
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 flex-col gap-4 text-left", children: [
|
|
44
48
|
/* @__PURE__ */ e("div", { className: "min-w-0 truncate body-2-semi-bold", children: o }),
|
|
45
49
|
s && /* @__PURE__ */ e("div", { className: "line-clamp-2 min-w-0 body-3 text-muted group-disabled:text-disabled", children: s })
|
|
46
50
|
] }),
|
|
47
|
-
!
|
|
48
|
-
|
|
51
|
+
!r && /* @__PURE__ */ e(
|
|
52
|
+
v,
|
|
49
53
|
{
|
|
50
54
|
size: 24,
|
|
51
55
|
className: "shrink-0 text-muted group-disabled:text-disabled"
|
|
@@ -55,7 +59,7 @@ const f = c(
|
|
|
55
59
|
}
|
|
56
60
|
);
|
|
57
61
|
};
|
|
58
|
-
|
|
62
|
+
x.displayName = "CardButton";
|
|
59
63
|
export {
|
|
60
|
-
|
|
64
|
+
x as CardButton
|
|
61
65
|
};
|
|
@@ -39,7 +39,7 @@ import { CheckboxProps } from './types';
|
|
|
39
39
|
* <Checkbox className="mr-8" />
|
|
40
40
|
*/
|
|
41
41
|
export declare const Checkbox: {
|
|
42
|
-
({ ref, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
({ ref, className, disabled: disabledProp, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
displayName: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiBxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,QAAQ;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiBxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,QAAQ;2DAKlB,aAAa;;CAkBf,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
2
|
+
import { useDisabledContext as r, cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as t from "@radix-ui/react-checkbox";
|
|
4
|
-
import { Check as
|
|
5
|
-
const
|
|
4
|
+
import { Check as b } from "../../Symbols/Icons/Check.js";
|
|
5
|
+
const n = a(
|
|
6
6
|
"size-20 shrink-0 cursor-pointer rounded-xs transition-colors",
|
|
7
7
|
"focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:outline-hidden",
|
|
8
8
|
"data-[state=unchecked]:border data-[state=unchecked]:border-muted data-[state=unchecked]:bg-base",
|
|
@@ -13,16 +13,28 @@ const o = a(
|
|
|
13
13
|
"data-[state=checked]:hover:bg-active-hover",
|
|
14
14
|
"data-[state=checked]:active:bg-active-pressed",
|
|
15
15
|
"data-[state=checked]:disabled:bg-disabled data-[state=checked]:disabled:text-disabled"
|
|
16
|
-
),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
), h = ({
|
|
17
|
+
ref: s,
|
|
18
|
+
className: d,
|
|
19
|
+
disabled: c,
|
|
20
|
+
...i
|
|
21
|
+
}) => {
|
|
22
|
+
const o = r({
|
|
23
|
+
consumerName: "Checkbox",
|
|
24
|
+
mergeWith: { disabled: c }
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ e(
|
|
27
|
+
t.Root,
|
|
28
|
+
{
|
|
29
|
+
ref: s,
|
|
30
|
+
className: a(n, d),
|
|
31
|
+
disabled: o,
|
|
32
|
+
...i,
|
|
33
|
+
children: /* @__PURE__ */ e(t.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(b, { size: 16 }) })
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
h.displayName = t.Root.displayName;
|
|
26
38
|
export {
|
|
27
|
-
|
|
39
|
+
h as Checkbox
|
|
28
40
|
};
|
|
@@ -11,7 +11,7 @@ const C = N("flex px-24 text-base", {
|
|
|
11
11
|
variants: {
|
|
12
12
|
appearance: {
|
|
13
13
|
compact: "mb-12 h-64 min-h-64 flex-row items-center gap-12",
|
|
14
|
-
|
|
14
|
+
expanded: "flex-col gap-16 pb-12 pt-10"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}), d = ({ onBack: r }) => {
|
|
@@ -86,7 +86,7 @@ const C = N("flex px-24 text-base", {
|
|
|
86
86
|
),
|
|
87
87
|
/* @__PURE__ */ e(p, { onClose: m })
|
|
88
88
|
] }),
|
|
89
|
-
o === "
|
|
89
|
+
o === "expanded" && /* @__PURE__ */ i(s, { children: [
|
|
90
90
|
/* @__PURE__ */ i("div", { className: "flex h-40 flex-row items-center", children: [
|
|
91
91
|
n && /* @__PURE__ */ e(d, { onBack: n }),
|
|
92
92
|
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(p, { onClose: m }) })
|