@ledgerhq/lumen-ui-react 0.0.63 → 0.0.65
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 +23 -2
- package/dist/i18n/locales/de.json.js +4 -4
- package/dist/i18n/locales/en.json.d.ts +5 -1
- package/dist/i18n/locales/en.json.js +1 -1
- package/dist/i18n/locales/es.json.d.ts +23 -2
- package/dist/i18n/locales/es.json.js +4 -4
- package/dist/i18n/locales/fr.json.d.ts +6 -2
- package/dist/i18n/locales/fr.json.js +1 -1
- package/dist/i18n/locales/ja.json.d.ts +23 -2
- package/dist/i18n/locales/ja.json.js +4 -4
- package/dist/i18n/locales/ko.json.d.ts +23 -2
- package/dist/i18n/locales/ko.json.js +4 -4
- package/dist/i18n/locales/pt.json.d.ts +23 -2
- package/dist/i18n/locales/pt.json.js +4 -4
- package/dist/i18n/locales/ru.json.d.ts +23 -2
- package/dist/i18n/locales/ru.json.js +4 -4
- package/dist/i18n/locales/th.json.d.ts +23 -2
- package/dist/i18n/locales/th.json.js +4 -4
- package/dist/i18n/locales/tr.json.d.ts +23 -2
- package/dist/i18n/locales/tr.json.js +4 -4
- package/dist/i18n/locales/zh.json.d.ts +23 -2
- package/dist/i18n/locales/zh.json.js +4 -4
- package/dist/lib/Components/AddressInput/AddressInput.js +2 -2
- package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -0
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +66 -65
- package/dist/lib/Components/BaseInput/types.d.ts +5 -1
- package/dist/lib/Components/BaseInput/types.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +7 -7
- package/dist/lib/Components/Dialog/Dialog.js +4 -4
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +3 -3
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +7 -7
- package/dist/lib/Components/ListItem/ListItem.js +1 -1
- package/dist/lib/Components/Menu/Menu.js +5 -5
- package/dist/lib/Components/SearchInput/SearchInput.d.ts +3 -2
- package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +45 -13
- package/dist/lib/Components/SearchInput/types.d.ts +7 -1
- package/dist/lib/Components/SearchInput/types.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +64 -64
- package/dist/lib/Components/Subheader/Subheader.js +1 -1
- package/dist/lib/Components/Switch/Switch.js +3 -3
- package/dist/lib/Components/Tile/Tile.d.ts +15 -9
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +131 -133
- package/dist/lib/Components/Tooltip/Tooltip.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as l } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as a from "@radix-ui/react-select";
|
|
4
4
|
import { cva as c } from "class-variance-authority";
|
|
5
5
|
import * as s from "react";
|
|
@@ -13,34 +13,34 @@ function k({ ...t }) {
|
|
|
13
13
|
function G({ ...t }) {
|
|
14
14
|
return /* @__PURE__ */ e(a.Group, { "data-slot": "select-group", ...t });
|
|
15
15
|
}
|
|
16
|
-
const b =
|
|
17
|
-
"group relative flex h-48 w-full items-center justify-between gap-8",
|
|
16
|
+
const b = l(
|
|
17
|
+
"group relative flex h-48 w-full cursor-pointer items-center justify-between gap-8",
|
|
18
18
|
"rounded-sm bg-muted px-16",
|
|
19
|
-
"text-base
|
|
19
|
+
"body-2 text-base",
|
|
20
20
|
"hover:bg-muted-hover",
|
|
21
|
-
"transition-colors duration-200 focus:
|
|
21
|
+
"transition-colors duration-200 focus:ring-2 focus:ring-focus focus:outline-hidden",
|
|
22
22
|
"disabled:cursor-not-allowed disabled:text-disabled"
|
|
23
|
-
), g =
|
|
23
|
+
), g = l(
|
|
24
24
|
"pointer-events-none absolute left-16 origin-left text-muted transition-all duration-300",
|
|
25
25
|
"top-10 -translate-y-4 body-4",
|
|
26
|
-
"group-data-
|
|
27
|
-
"group-data-
|
|
26
|
+
"group-data-placeholder:top-14 group-data-placeholder:translate-y-0 group-data-placeholder:body-2",
|
|
27
|
+
"group-data-disabled:text-disabled disabled:text-disabled",
|
|
28
28
|
"max-w-[calc(100%-var(--size-56))] truncate"
|
|
29
|
-
),
|
|
29
|
+
), h = s.forwardRef(({ className: t, labelClassName: o, label: r, ...i }, d) => /* @__PURE__ */ n(
|
|
30
30
|
a.Trigger,
|
|
31
31
|
{
|
|
32
|
-
ref:
|
|
32
|
+
ref: d,
|
|
33
33
|
"data-slot": "select-trigger",
|
|
34
|
-
className:
|
|
35
|
-
...
|
|
34
|
+
className: l(b, t),
|
|
35
|
+
...i,
|
|
36
36
|
children: [
|
|
37
|
-
|
|
37
|
+
r && /* @__PURE__ */ e("label", { className: l(g, o), children: r }),
|
|
38
38
|
/* @__PURE__ */ e(
|
|
39
39
|
"span",
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
42
|
-
"flex-1 truncate text-left
|
|
43
|
-
|
|
41
|
+
className: l(
|
|
42
|
+
"flex-1 truncate text-left",
|
|
43
|
+
r && "mt-16 opacity-100 transition-opacity delay-100 duration-300 group-data-placeholder:mt-0 group-data-placeholder:opacity-0",
|
|
44
44
|
t
|
|
45
45
|
),
|
|
46
46
|
children: /* @__PURE__ */ e(a.Value, { "data-slot": "select-value" })
|
|
@@ -50,22 +50,22 @@ const b = r(
|
|
|
50
50
|
m,
|
|
51
51
|
{
|
|
52
52
|
size: 20,
|
|
53
|
-
className: "shrink-0 text-muted group-data-
|
|
53
|
+
className: "shrink-0 text-muted group-data-disabled:text-disabled"
|
|
54
54
|
}
|
|
55
55
|
) })
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
58
|
));
|
|
59
|
-
|
|
60
|
-
const
|
|
59
|
+
h.displayName = a.Trigger.displayName;
|
|
60
|
+
const x = c(
|
|
61
61
|
[
|
|
62
|
-
"relative z-select max-h-
|
|
62
|
+
"relative z-select max-h-(--radix-select-content-available-height) overflow-x-hidden overflow-y-auto",
|
|
63
63
|
"rounded-sm bg-muted",
|
|
64
64
|
"shadow-md",
|
|
65
|
-
"data-[side=bottom]:animate-slide-in-from-top
|
|
66
|
-
"data-[side=top]:animate-slide-in-from-bottom
|
|
67
|
-
"data-[side=left]:animate-slide-in-from-right
|
|
68
|
-
"data-[side=right]:animate-slide-in-from-left
|
|
65
|
+
"data-[side=bottom]:animate-slide-in-from-top",
|
|
66
|
+
"data-[side=top]:animate-slide-in-from-bottom",
|
|
67
|
+
"data-[side=left]:animate-slide-in-from-right",
|
|
68
|
+
"data-[side=right]:animate-slide-in-from-left"
|
|
69
69
|
],
|
|
70
70
|
{
|
|
71
71
|
variants: {
|
|
@@ -81,112 +81,112 @@ const h = c(
|
|
|
81
81
|
), y = c("p-8", {
|
|
82
82
|
variants: {
|
|
83
83
|
position: {
|
|
84
|
-
popper: "h-
|
|
84
|
+
popper: "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)",
|
|
85
85
|
"item-aligned": ""
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
defaultVariants: {
|
|
89
89
|
position: "popper"
|
|
90
90
|
}
|
|
91
|
-
}), N = s.forwardRef(({ className: t, children:
|
|
91
|
+
}), N = s.forwardRef(({ className: t, children: o, position: r = "popper", ...i }, d) => /* @__PURE__ */ e(a.Portal, { "data-slot": "select-portal", children: /* @__PURE__ */ n(
|
|
92
92
|
a.Content,
|
|
93
93
|
{
|
|
94
|
-
ref:
|
|
94
|
+
ref: d,
|
|
95
95
|
"data-slot": "select-content",
|
|
96
|
-
className:
|
|
97
|
-
position:
|
|
98
|
-
...
|
|
96
|
+
className: l(x({ position: r }), t),
|
|
97
|
+
position: r,
|
|
98
|
+
...i,
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ e(R, {}),
|
|
101
|
-
/* @__PURE__ */ e(a.Viewport, { className: y({ position:
|
|
101
|
+
/* @__PURE__ */ e(a.Viewport, { className: y({ position: r }), children: o }),
|
|
102
102
|
/* @__PURE__ */ e(C, {})
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
) }));
|
|
106
106
|
N.displayName = a.Content.displayName;
|
|
107
|
-
const
|
|
107
|
+
const w = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
108
108
|
a.Label,
|
|
109
109
|
{
|
|
110
|
-
ref:
|
|
110
|
+
ref: r,
|
|
111
111
|
"data-slot": "select-label",
|
|
112
|
-
className:
|
|
113
|
-
...
|
|
112
|
+
className: l("mb-4 px-8 pt-8 pb-0 body-3-semi-bold text-muted", t),
|
|
113
|
+
...o
|
|
114
114
|
}
|
|
115
115
|
));
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
"relative flex w-full cursor-
|
|
116
|
+
w.displayName = a.Label.displayName;
|
|
117
|
+
const S = l(
|
|
118
|
+
"relative flex w-full cursor-pointer items-center bg-base-transparent select-none",
|
|
119
119
|
"rounded-sm p-8",
|
|
120
|
-
"text-base
|
|
121
|
-
"outline-
|
|
120
|
+
"body-2 text-base",
|
|
121
|
+
"outline-hidden",
|
|
122
122
|
"focus:bg-base-transparent-hover",
|
|
123
123
|
"active:bg-base-transparent-pressed",
|
|
124
|
-
"data-
|
|
125
|
-
),
|
|
124
|
+
"data-disabled:cursor-not-allowed data-disabled:text-disabled"
|
|
125
|
+
), v = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ n(
|
|
126
126
|
a.Item,
|
|
127
127
|
{
|
|
128
|
-
ref:
|
|
128
|
+
ref: i,
|
|
129
129
|
"data-slot": "select-item",
|
|
130
|
-
className:
|
|
131
|
-
...
|
|
130
|
+
className: l(S, t),
|
|
131
|
+
...r,
|
|
132
132
|
children: [
|
|
133
|
-
|
|
133
|
+
o,
|
|
134
134
|
/* @__PURE__ */ e("span", { className: "absolute right-8 flex size-24 items-center justify-center", children: /* @__PURE__ */ e(a.ItemIndicator, { children: /* @__PURE__ */ e(p, { size: 24, className: "text-active" }) }) })
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
137
|
));
|
|
138
|
-
|
|
138
|
+
v.displayName = a.Item.displayName;
|
|
139
139
|
const I = s.forwardRef(
|
|
140
|
-
({ className: t, ...
|
|
140
|
+
({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
141
141
|
u,
|
|
142
142
|
{
|
|
143
|
-
ref:
|
|
144
|
-
className:
|
|
145
|
-
...
|
|
143
|
+
ref: r,
|
|
144
|
+
className: l("mx-8 my-4 w-auto", t),
|
|
145
|
+
...o
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
);
|
|
149
149
|
I.displayName = "SelectSeparator";
|
|
150
|
-
const z = s.forwardRef(({ className: t, ...
|
|
150
|
+
const z = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
151
151
|
a.ItemText,
|
|
152
152
|
{
|
|
153
|
-
ref:
|
|
153
|
+
ref: r,
|
|
154
154
|
"data-slot": "select-item-text",
|
|
155
|
-
className:
|
|
156
|
-
...
|
|
155
|
+
className: l("body-2 text-muted", t),
|
|
156
|
+
...o
|
|
157
157
|
}
|
|
158
158
|
));
|
|
159
159
|
z.displayName = a.ItemText.displayName;
|
|
160
160
|
function R({
|
|
161
161
|
className: t,
|
|
162
|
-
...
|
|
162
|
+
...o
|
|
163
163
|
}) {
|
|
164
164
|
return /* @__PURE__ */ e(
|
|
165
165
|
a.ScrollUpButton,
|
|
166
166
|
{
|
|
167
167
|
"data-slot": "select-scroll-up-button",
|
|
168
|
-
className:
|
|
168
|
+
className: l(
|
|
169
169
|
"flex cursor-default items-center justify-center py-1 text-muted",
|
|
170
170
|
t
|
|
171
171
|
),
|
|
172
|
-
...
|
|
172
|
+
...o,
|
|
173
173
|
children: /* @__PURE__ */ e(f, { className: "size-4" })
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
177
|
function C({
|
|
178
178
|
className: t,
|
|
179
|
-
...
|
|
179
|
+
...o
|
|
180
180
|
}) {
|
|
181
181
|
return /* @__PURE__ */ e(
|
|
182
182
|
a.ScrollDownButton,
|
|
183
183
|
{
|
|
184
184
|
"data-slot": "select-scroll-down-button",
|
|
185
|
-
className:
|
|
185
|
+
className: l(
|
|
186
186
|
"flex cursor-default items-center justify-center py-1 text-muted",
|
|
187
187
|
t
|
|
188
188
|
),
|
|
189
|
-
...
|
|
189
|
+
...o,
|
|
190
190
|
children: /* @__PURE__ */ e(m, { className: "size-4" })
|
|
191
191
|
}
|
|
192
192
|
);
|
|
@@ -195,9 +195,9 @@ export {
|
|
|
195
195
|
k as Select,
|
|
196
196
|
N as SelectContent,
|
|
197
197
|
G as SelectGroup,
|
|
198
|
-
|
|
198
|
+
v as SelectItem,
|
|
199
199
|
z as SelectItemText,
|
|
200
|
-
|
|
200
|
+
w as SelectLabel,
|
|
201
201
|
I as SelectSeparator,
|
|
202
|
-
|
|
202
|
+
h as SelectTrigger
|
|
203
203
|
};
|
|
@@ -24,7 +24,7 @@ const a = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex shrin
|
|
|
24
24
|
...d,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
27
|
-
/* @__PURE__ */ i("h2", { className: "heading-5-semi-bold
|
|
27
|
+
/* @__PURE__ */ i("h2", { className: "min-w-0 truncate heading-5-semi-bold", children: m }),
|
|
28
28
|
u
|
|
29
29
|
] }),
|
|
30
30
|
S
|
|
@@ -5,10 +5,10 @@ import { cva as d } from "class-variance-authority";
|
|
|
5
5
|
import m from "react";
|
|
6
6
|
const u = d(
|
|
7
7
|
s(
|
|
8
|
-
"group flex 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
|
+
"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",
|
|
9
9
|
"[&[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",
|
|
10
10
|
"[&[data-state=checked]:not([data-disabled])]:bg-active [&[data-state=checked]:not([data-disabled])]:hover:bg-active-hover [&[data-state=checked]:not([data-disabled])]:active:bg-active-pressed",
|
|
11
|
-
"data-
|
|
11
|
+
"data-disabled:bg-disabled-strong"
|
|
12
12
|
),
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
@@ -22,7 +22,7 @@ const u = d(
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
), h = d(
|
|
25
|
-
"translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-
|
|
25
|
+
"translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-disabled:bg-base",
|
|
26
26
|
{
|
|
27
27
|
variants: {
|
|
28
28
|
size: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { TileContentProps, TileDescriptionProps, TileSpotProps, TileTitleProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* A flexible tile component that uses a composite pattern for maximum customization.
|
|
4
5
|
* Displays content in a vertical layout with support for spots, text, and custom content.
|
|
@@ -26,10 +27,14 @@ import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionP
|
|
|
26
27
|
* <div>Custom content</div>
|
|
27
28
|
* </Tile>
|
|
28
29
|
*/
|
|
29
|
-
export declare const Tile: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
export declare const Tile: import('react').ForwardRefExoticComponent<{
|
|
31
|
+
appearance?: "no-background" | "card";
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
34
|
+
children: import('react').ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
} & Omit<import('react').HTMLAttributes<HTMLDivElement>, "onClick"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
33
38
|
/**
|
|
34
39
|
* A spot adapter for use within Tile. Automatically inherits the disabled state from the parent Tile.
|
|
35
40
|
* Always renders at a fixed size of 48.
|
|
@@ -79,8 +84,9 @@ export declare const TileDescription: {
|
|
|
79
84
|
* </TileContent>
|
|
80
85
|
* </Tile>
|
|
81
86
|
*/
|
|
82
|
-
export declare const TileSecondaryAction: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
export declare const TileSecondaryAction: import('react').ForwardRefExoticComponent<{
|
|
88
|
+
onClick?: MouseEventHandler;
|
|
89
|
+
icon: React.ComponentType<Omit<import('../Icon').IconProps, "children">>;
|
|
90
|
+
className?: string;
|
|
91
|
+
} & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "onClick"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
86
92
|
//# sourceMappingURL=Tile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,iBAAiB,EAAyB,MAAM,OAAO,CAAC;AAG7E,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EAGpB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;;;;;;;oHAsGhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;;;;0HAuC9B,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { extractSlottable as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Spot as
|
|
6
|
-
import { InteractiveIcon as
|
|
7
|
-
const [
|
|
8
|
-
root:
|
|
1
|
+
import { jsx as s, jsxs as q } from "react/jsx-runtime";
|
|
2
|
+
import { extractSlottable as C, createSafeContext as I, cn as u } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as v } from "class-variance-authority";
|
|
4
|
+
import { forwardRef as x, useState as w, useCallback as d } from "react";
|
|
5
|
+
import { Spot as z } from "../Spot/Spot.js";
|
|
6
|
+
import { InteractiveIcon as V } from "../InteractiveIcon/InteractiveIcon.js";
|
|
7
|
+
const [j, p] = I("Tile"), T = {
|
|
8
|
+
root: v(
|
|
9
9
|
[
|
|
10
10
|
"group relative flex flex-col items-center gap-8 text-base transition-colors",
|
|
11
|
-
"focus-visible:outline-
|
|
11
|
+
"rounded-md focus-visible:outline-2 focus-visible:outline-focus"
|
|
12
12
|
],
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
@@ -58,187 +58,185 @@ const [V, u] = C("Tile"), v = {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
button:
|
|
62
|
-
"
|
|
61
|
+
button: v(
|
|
62
|
+
"flex w-full cursor-pointer flex-col items-center gap-8 rounded-md px-8 py-12 focus-visible:outline-2 focus-visible:outline-focus"
|
|
63
63
|
)
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
a
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
[c]
|
|
86
|
-
), A = n(
|
|
87
|
-
(a) => {
|
|
88
|
-
f(!1), o == null || o(a);
|
|
89
|
-
},
|
|
90
|
-
[o]
|
|
91
|
-
), S = n(
|
|
92
|
-
(a) => {
|
|
93
|
-
f(!1), r == null || r(a);
|
|
94
|
-
},
|
|
95
|
-
[r]
|
|
96
|
-
);
|
|
97
|
-
return /* @__PURE__ */ l(V, { value: { disabled: t }, children: /* @__PURE__ */ k(
|
|
98
|
-
"div",
|
|
99
|
-
{
|
|
100
|
-
...x,
|
|
101
|
-
className: v.root({
|
|
102
|
-
appearance: s,
|
|
103
|
-
isActive: y,
|
|
104
|
-
disabled: t,
|
|
105
|
-
className: e
|
|
106
|
-
}),
|
|
107
|
-
onMouseDown: t ? void 0 : (a) => {
|
|
108
|
-
h(a);
|
|
64
|
+
}, P = x(
|
|
65
|
+
({
|
|
66
|
+
className: e,
|
|
67
|
+
onClick: i,
|
|
68
|
+
appearance: r = "no-background",
|
|
69
|
+
disabled: t = !1,
|
|
70
|
+
"aria-label": f,
|
|
71
|
+
children: m,
|
|
72
|
+
onMouseDown: l,
|
|
73
|
+
onMouseUp: o,
|
|
74
|
+
onMouseLeave: c,
|
|
75
|
+
...n
|
|
76
|
+
}, N) => {
|
|
77
|
+
const [g, b] = w(!1), { slotElement: h, remainingChildren: A } = C(
|
|
78
|
+
m,
|
|
79
|
+
y
|
|
80
|
+
), S = d(
|
|
81
|
+
(a) => {
|
|
82
|
+
a.target.closest(
|
|
83
|
+
"[data-secondary-button-container]"
|
|
84
|
+
) || (l == null || l(a), b(!0));
|
|
109
85
|
},
|
|
110
|
-
|
|
111
|
-
|
|
86
|
+
[l]
|
|
87
|
+
), k = d(
|
|
88
|
+
(a) => {
|
|
89
|
+
b(!1), o == null || o(a);
|
|
112
90
|
},
|
|
113
|
-
|
|
114
|
-
|
|
91
|
+
[o]
|
|
92
|
+
), R = d(
|
|
93
|
+
(a) => {
|
|
94
|
+
b(!1), c == null || c(a);
|
|
115
95
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
96
|
+
[c]
|
|
97
|
+
);
|
|
98
|
+
return /* @__PURE__ */ s(j, { value: { disabled: t }, children: /* @__PURE__ */ q(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
...n,
|
|
102
|
+
ref: N,
|
|
103
|
+
className: T.root({
|
|
104
|
+
appearance: r,
|
|
105
|
+
isActive: g,
|
|
106
|
+
disabled: t,
|
|
107
|
+
className: e
|
|
108
|
+
}),
|
|
109
|
+
onMouseDown: t ? void 0 : (a) => {
|
|
110
|
+
S(a);
|
|
111
|
+
},
|
|
112
|
+
onMouseUp: t ? void 0 : (a) => {
|
|
113
|
+
k(a);
|
|
114
|
+
},
|
|
115
|
+
onMouseLeave: t ? void 0 : (a) => {
|
|
116
|
+
R(a);
|
|
117
|
+
},
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ s(
|
|
120
|
+
"button",
|
|
121
|
+
{
|
|
122
|
+
"aria-label": f,
|
|
123
|
+
onClick: t ? void 0 : i,
|
|
124
|
+
disabled: t,
|
|
125
|
+
"data-disabled": t || void 0,
|
|
126
|
+
className: T.button(),
|
|
127
|
+
children: A
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
h
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
) });
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
P.displayName = "Tile";
|
|
137
|
+
const D = (e) => {
|
|
138
|
+
const { disabled: i } = p({
|
|
136
139
|
consumerName: "TileSpot",
|
|
137
140
|
contextRequired: !0
|
|
138
141
|
});
|
|
139
|
-
return /* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ s(z, { ...e, size: 48, disabled: i });
|
|
140
143
|
};
|
|
141
|
-
|
|
142
|
-
const
|
|
144
|
+
D.displayName = "TileSpot";
|
|
145
|
+
const E = ({
|
|
143
146
|
children: e,
|
|
144
147
|
className: i,
|
|
145
|
-
...
|
|
146
|
-
}) => /* @__PURE__ */
|
|
148
|
+
...r
|
|
149
|
+
}) => /* @__PURE__ */ s(
|
|
147
150
|
"div",
|
|
148
151
|
{
|
|
149
|
-
className:
|
|
150
|
-
...
|
|
152
|
+
className: u("flex w-full flex-col items-center text-center", i),
|
|
153
|
+
...r,
|
|
151
154
|
children: e
|
|
152
155
|
}
|
|
153
156
|
);
|
|
154
|
-
|
|
155
|
-
const
|
|
157
|
+
E.displayName = "TileContent";
|
|
158
|
+
const O = ({
|
|
156
159
|
children: e,
|
|
157
160
|
className: i,
|
|
158
|
-
...
|
|
161
|
+
...r
|
|
159
162
|
}) => {
|
|
160
|
-
const { disabled: t } =
|
|
163
|
+
const { disabled: t } = p({
|
|
161
164
|
consumerName: "TileTitle",
|
|
162
165
|
contextRequired: !0
|
|
163
166
|
});
|
|
164
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ s(
|
|
165
168
|
"div",
|
|
166
169
|
{
|
|
167
|
-
className:
|
|
168
|
-
"body-2-semi-bold
|
|
170
|
+
className: u(
|
|
171
|
+
"w-full truncate body-2-semi-bold",
|
|
169
172
|
t && "text-disabled",
|
|
170
173
|
i
|
|
171
174
|
),
|
|
172
|
-
...
|
|
175
|
+
...r,
|
|
173
176
|
children: e
|
|
174
177
|
}
|
|
175
178
|
);
|
|
176
179
|
};
|
|
177
|
-
|
|
178
|
-
const
|
|
180
|
+
O.displayName = "TileTitle";
|
|
181
|
+
const B = ({
|
|
179
182
|
children: e,
|
|
180
183
|
className: i,
|
|
181
|
-
...
|
|
184
|
+
...r
|
|
182
185
|
}) => {
|
|
183
|
-
const { disabled: t } =
|
|
186
|
+
const { disabled: t } = p({
|
|
184
187
|
consumerName: "TileDescription",
|
|
185
188
|
contextRequired: !0
|
|
186
189
|
});
|
|
187
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ s(
|
|
188
191
|
"div",
|
|
189
192
|
{
|
|
190
|
-
className:
|
|
191
|
-
"
|
|
193
|
+
className: u(
|
|
194
|
+
"w-full truncate body-3",
|
|
192
195
|
t ? "text-disabled" : "text-muted",
|
|
193
196
|
i
|
|
194
197
|
),
|
|
195
|
-
...
|
|
198
|
+
...r,
|
|
196
199
|
children: e
|
|
197
200
|
}
|
|
198
201
|
);
|
|
199
202
|
};
|
|
200
|
-
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
icon: i,
|
|
204
|
-
className: s,
|
|
205
|
-
"aria-label": t,
|
|
206
|
-
...p
|
|
207
|
-
}) => {
|
|
208
|
-
const { disabled: m } = u({
|
|
203
|
+
B.displayName = "TileDescription";
|
|
204
|
+
const y = x(({ onClick: e, icon: i, className: r, "aria-label": t, ...f }, m) => {
|
|
205
|
+
const { disabled: l } = p({
|
|
209
206
|
consumerName: "TileSecondaryAction",
|
|
210
207
|
contextRequired: !0
|
|
211
|
-
}),
|
|
212
|
-
(
|
|
213
|
-
|
|
208
|
+
}), o = d(
|
|
209
|
+
(n) => {
|
|
210
|
+
n.stopPropagation(), n.preventDefault(), e == null || e(n);
|
|
214
211
|
},
|
|
215
212
|
[e]
|
|
216
213
|
);
|
|
217
|
-
if (
|
|
218
|
-
const
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
|
|
214
|
+
if (l) return null;
|
|
215
|
+
const c = i;
|
|
216
|
+
return /* @__PURE__ */ s(
|
|
217
|
+
V,
|
|
221
218
|
{
|
|
222
219
|
"data-slot": "tile-secondary-action",
|
|
223
|
-
className:
|
|
224
|
-
"absolute right-4
|
|
225
|
-
|
|
220
|
+
className: u(
|
|
221
|
+
"absolute top-8 right-4 opacity-0 transition-opacity duration-200 group-hover:opacity-100 focus-within:opacity-100",
|
|
222
|
+
r
|
|
226
223
|
),
|
|
227
224
|
"data-secondary-button-container": !0,
|
|
228
225
|
iconType: "stroked",
|
|
229
|
-
onClick:
|
|
226
|
+
onClick: o,
|
|
230
227
|
"aria-label": t,
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
ref: m,
|
|
229
|
+
...f,
|
|
230
|
+
children: /* @__PURE__ */ s(c, { size: 24 })
|
|
233
231
|
}
|
|
234
232
|
);
|
|
235
|
-
};
|
|
236
|
-
|
|
233
|
+
});
|
|
234
|
+
y.displayName = "TileSecondaryAction";
|
|
237
235
|
export {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
236
|
+
P as Tile,
|
|
237
|
+
E as TileContent,
|
|
238
|
+
B as TileDescription,
|
|
239
|
+
y as TileSecondaryAction,
|
|
240
|
+
D as TileSpot,
|
|
241
|
+
O as TileTitle
|
|
244
242
|
};
|