@stackone/malachite 2.42.0 → 2.42.2
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/COMPONENTS.md +1 -1
- package/dist/components/Dropdown.js +338 -328
- package/dist/components/Dropdown.js.map +1 -1
- package/dist/components/SelectableCard.js +158 -145
- package/dist/components/SelectableCard.js.map +1 -1
- package/dist/components/Tooltip.js +100 -93
- package/dist/components/Tooltip.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/tailwind.css.js +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as ve, useId as Se } from "react";
|
|
3
3
|
import { Button as ye } from "./Button.js";
|
|
4
|
-
import
|
|
4
|
+
import Ae from "./CustomIcons/DismissIcon.js";
|
|
5
5
|
import Ne from "./CustomIcons/PinIcon.js";
|
|
6
|
-
import { Tag as
|
|
6
|
+
import { Tag as Le } from "./Tag.js";
|
|
7
7
|
import Ce from "./Tooltip.js";
|
|
8
8
|
import Q from "./TruncatedTooltip.js";
|
|
9
9
|
import p from "./Typography/Text.js";
|
|
10
|
-
import { useCardStripSlot as
|
|
11
|
-
import { FOCUS_RING_WITHIN as
|
|
12
|
-
import { useAdoptedStyleSheet as
|
|
13
|
-
const F = 240, ee = `${F}px`, te = "116px",
|
|
14
|
-
const
|
|
10
|
+
import { useCardStripSlot as Oe } from "./cardStripSlot.js";
|
|
11
|
+
import { FOCUS_RING_WITHIN as De } from "./focusRing.js";
|
|
12
|
+
import { useAdoptedStyleSheet as Pe } from "./useAdoptedStyleSheet.js";
|
|
13
|
+
const F = 240, ee = `${F}px`, te = "116px", ae = "var(--malachite-radius-xxl, 14px)", O = `${ae} ${ae} 0 0`, b = "var(--malachite-selectable-card-muted-foreground, #7b7b7b)", ke = "var(--malachite-text-secondary, #7b7b7b)", de = "var(--malachite-selectable-card-accent, #047b43)", Be = "var(--malachite-selectable-card-selected-tint, #e7f8f1)", Fe = "var(--malachite-selectable-card-selected-border, #047b43)", le = 0.7, we = "var(--malachite-selectable-card-library-selected-tint, #f1f1f1)", Ye = "var(--malachite-selectable-card-library-selected-border, #bbbbbb)", pe = "var(--malachite-selectable-card-pending-foreground, #96580a)", he = "var(--malachite-selectable-card-editing-tint, #f9f2e9)", se = "var(--malachite-selectable-card-selected-surface-end, #ffffff)", Ue = "var(--malachite-selectable-card-background, #f1f1f1)", Ge = "1px solid var(--malachite-selectable-card-border, #dddddd)", ze = "var(--malachite-selectable-card-hover-background, #e8e8e8)", We = 14, s = We, E = 2, me = 116, He = 14, fe = 2, It = s - E / 2, x = F + s * 2, g = me + fe + E, je = (t) => {
|
|
14
|
+
const a = E / 2, l = s + a, c = s + F - a, i = a, r = He - a;
|
|
15
15
|
return [
|
|
16
|
-
`M${
|
|
17
|
-
`A${s} ${s} 0 0 0 ${
|
|
18
|
-
`L${
|
|
19
|
-
`A${r} ${r} 0 0 1 ${
|
|
16
|
+
`M${l - s} ${t}`,
|
|
17
|
+
`A${s} ${s} 0 0 0 ${l} ${t - s}`,
|
|
18
|
+
`L${l} ${i + r}`,
|
|
19
|
+
`A${r} ${r} 0 0 1 ${l + r} ${i}`,
|
|
20
20
|
`L${c - r} ${i}`,
|
|
21
21
|
`A${r} ${r} 0 0 1 ${c} ${i + r}`,
|
|
22
|
-
`L${c} ${
|
|
23
|
-
`A${s} ${s} 0 0 0 ${c + s} ${
|
|
22
|
+
`L${c} ${t - s}`,
|
|
23
|
+
`A${s} ${s} 0 0 0 ${c + s} ${t}`
|
|
24
24
|
].join(" ");
|
|
25
|
-
}, B =
|
|
25
|
+
}, B = je(me + fe / 2), re = `${B} Z`, v = "malachite-selectable-card-outline", o = "malachite-selectable-card", Xe = "malachite-selectable-card-style", m = "--malachite-selectable-card-state-outline", f = "--malachite-selectable-card-state-tint", D = {
|
|
26
26
|
"background-color": ze,
|
|
27
27
|
"border-left-color": "transparent"
|
|
28
28
|
}, P = {
|
|
@@ -32,41 +32,41 @@ const F = 240, ee = `${F}px`, te = "116px", le = "var(--malachite-radius-xxl, 14
|
|
|
32
32
|
resting: P,
|
|
33
33
|
hover: D,
|
|
34
34
|
selected: {
|
|
35
|
-
[
|
|
36
|
-
[
|
|
35
|
+
[m]: Fe,
|
|
36
|
+
[f]: Be
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
library: {
|
|
40
40
|
resting: P,
|
|
41
41
|
hover: D,
|
|
42
42
|
selected: {
|
|
43
|
-
[
|
|
44
|
-
[
|
|
43
|
+
[m]: Ye,
|
|
44
|
+
[f]: we
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
editing: {
|
|
48
48
|
resting: P,
|
|
49
49
|
hover: D,
|
|
50
50
|
selected: {
|
|
51
|
-
[
|
|
52
|
-
[
|
|
51
|
+
[m]: pe,
|
|
52
|
+
[f]: he
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, I = { color: ke }, Me = {
|
|
56
56
|
profile: {
|
|
57
|
-
resting:
|
|
58
|
-
selected: { color: de, opacity:
|
|
57
|
+
resting: I,
|
|
58
|
+
selected: { color: de, opacity: le }
|
|
59
59
|
},
|
|
60
|
-
library: { resting:
|
|
60
|
+
library: { resting: I, selected: I },
|
|
61
61
|
editing: {
|
|
62
|
-
resting:
|
|
63
|
-
selected: { color: pe, opacity:
|
|
62
|
+
resting: I,
|
|
63
|
+
selected: { color: pe, opacity: le }
|
|
64
64
|
}
|
|
65
|
-
},
|
|
66
|
-
.${
|
|
65
|
+
}, Ke = { "border-left": Ge }, Ze = `
|
|
66
|
+
.${o}[data-state='selected'] {
|
|
67
67
|
z-index: 5;
|
|
68
68
|
}
|
|
69
|
-
.${
|
|
69
|
+
.${o} > .${v} {
|
|
70
70
|
position: absolute;
|
|
71
71
|
left: -${s}px;
|
|
72
72
|
top: 0;
|
|
@@ -74,109 +74,122 @@ const F = 240, ee = `${F}px`, te = "116px", le = "var(--malachite-radius-xxl, 14
|
|
|
74
74
|
overflow: visible;
|
|
75
75
|
pointer-events: none;
|
|
76
76
|
}
|
|
77
|
-
.${
|
|
77
|
+
.${o} > *:not(.${v}):not([data-selectable-card-actions]) {
|
|
78
78
|
position: relative;
|
|
79
79
|
z-index: 1;
|
|
80
80
|
}
|
|
81
|
-
.${
|
|
81
|
+
.${o} > [data-selectable-card-actions] {
|
|
82
82
|
z-index: 2;
|
|
83
|
-
}`, be = (
|
|
84
|
-
`),
|
|
85
|
-
${be(
|
|
86
|
-
}`,
|
|
87
|
-
(
|
|
88
|
-
(
|
|
83
|
+
}`, be = (t) => Object.entries(t).map(([a, l]) => ` ${a}: ${l};`).join(`
|
|
84
|
+
`), Ve = (t, a) => a === "hover" ? `.${o}[data-variant='${t}'][data-state='resting'][data-hoverable]:hover` : `.${o}[data-variant='${t}'][data-state='${a}']`, qe = (t, a, l) => `${Ve(t, a)} {
|
|
85
|
+
${be(l)}
|
|
86
|
+
}`, Je = Object.keys(k).flatMap(
|
|
87
|
+
(t) => Object.keys(k[t]).map(
|
|
88
|
+
(a) => qe(t, a, k[t][a])
|
|
89
89
|
)
|
|
90
90
|
).join(`
|
|
91
|
-
`),
|
|
91
|
+
`), Qe = `.${o}[data-pinned='false'][data-state='resting'] {
|
|
92
92
|
${be(
|
|
93
|
-
|
|
93
|
+
Ke
|
|
94
94
|
)}
|
|
95
|
-
}`,
|
|
96
|
-
${
|
|
97
|
-
${
|
|
95
|
+
}`, et = `${Qe}
|
|
96
|
+
${Je}
|
|
97
|
+
${Ze}`, tt = {
|
|
98
98
|
display: "-webkit-box",
|
|
99
99
|
WebkitLineClamp: 2,
|
|
100
100
|
WebkitBoxOrient: "vertical",
|
|
101
101
|
overflow: "hidden",
|
|
102
102
|
color: b,
|
|
103
103
|
lineHeight: 1.6
|
|
104
|
-
},
|
|
105
|
-
color: "var(--malachite-text-primary)"
|
|
106
|
-
|
|
104
|
+
}, at = { color: b, letterSpacing: "0.11px" }, w = "var(--malachite-selectable-card-pending-foreground, #96580a)", lt = { color: w }, st = { color: w, opacity: 0.7 }, rt = 36, nt = 38, ne = {
|
|
105
|
+
color: "var(--malachite-text-primary)",
|
|
106
|
+
marginLeft: -2.25
|
|
107
|
+
}, ot = { transform: "translateY(-1px)" }, it = "inline-flex items-center justify-center [&_svg]:size-[10px]!", ct = { color: b }, oe = "Default profile", dt = 16, Ee = {
|
|
107
108
|
color: de,
|
|
108
|
-
display: "inline-flex"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
display: "inline-flex",
|
|
110
|
+
transform: "rotate(45deg)"
|
|
111
|
+
}, pt = {
|
|
112
|
+
...Ee,
|
|
113
|
+
marginLeft: -3
|
|
114
|
+
}, ie = ({ leading: t }) => /* @__PURE__ */ e(Ce, { text: oe, triggerAs: "span", describesTrigger: !1, children: /* @__PURE__ */ e(
|
|
115
|
+
"span",
|
|
116
|
+
{
|
|
117
|
+
role: "img",
|
|
118
|
+
"aria-label": oe,
|
|
119
|
+
style: t ? pt : Ee,
|
|
120
|
+
children: /* @__PURE__ */ e(Ne, { size: dt })
|
|
121
|
+
}
|
|
122
|
+
) }), ce = (t) => {
|
|
123
|
+
const a = t.filter((l) => l !== void 0);
|
|
124
|
+
return a.length > 0 ? a.join(" ") : void 0;
|
|
125
|
+
}, vt = ({
|
|
126
|
+
value: t,
|
|
127
|
+
title: a,
|
|
128
|
+
titleIcon: l,
|
|
116
129
|
isDefault: c = !1,
|
|
117
130
|
variant: i = "profile",
|
|
118
131
|
eyebrow: r,
|
|
119
132
|
status: _,
|
|
120
|
-
description:
|
|
133
|
+
description: S,
|
|
121
134
|
countLabel: y,
|
|
122
|
-
actions:
|
|
123
|
-
onDismiss:
|
|
124
|
-
dismissLabel:
|
|
125
|
-
dismissDisabledReason:
|
|
135
|
+
actions: R,
|
|
136
|
+
onDismiss: $,
|
|
137
|
+
dismissLabel: Y = "Dismiss",
|
|
138
|
+
dismissDisabledReason: U,
|
|
126
139
|
selected: d = !1,
|
|
127
|
-
loading:
|
|
128
|
-
loadingLabel:
|
|
129
|
-
loadingHint:
|
|
130
|
-
disabled:
|
|
131
|
-
dimmed:
|
|
132
|
-
onSelect:
|
|
133
|
-
tabIndex:
|
|
140
|
+
loading: _e = !1,
|
|
141
|
+
loadingLabel: Re = "Loading…",
|
|
142
|
+
loadingHint: G,
|
|
143
|
+
disabled: T = !1,
|
|
144
|
+
dimmed: z = !1,
|
|
145
|
+
onSelect: A,
|
|
146
|
+
tabIndex: $e,
|
|
134
147
|
"aria-label": W,
|
|
135
148
|
className: H = "",
|
|
136
149
|
style: j
|
|
137
150
|
}) => {
|
|
138
|
-
const { pinned:
|
|
139
|
-
|
|
140
|
-
const h = `mal-selectable-card-${
|
|
141
|
-
|
|
151
|
+
const { pinned: Te } = Oe(), ue = !d && !T, N = ve(null);
|
|
152
|
+
Pe(N, et, Xe);
|
|
153
|
+
const h = `mal-selectable-card-${Se().replace(/[^a-zA-Z0-9_-]/g, "")}`, u = `${h}-outline`, X = `${h}-eyebrow`, M = `${h}-status`, L = `${h}-title`, K = `${h}-description`, Z = `${h}-count`, xe = W ? void 0 : ce([r ? X : void 0, L, _ ? M : void 0]), ge = ce([
|
|
154
|
+
S ? K : void 0,
|
|
142
155
|
y ? Z : void 0
|
|
143
156
|
]);
|
|
144
|
-
if (
|
|
145
|
-
return /* @__PURE__ */
|
|
157
|
+
if (_e)
|
|
158
|
+
return /* @__PURE__ */ n(
|
|
146
159
|
"div",
|
|
147
160
|
{
|
|
148
|
-
ref:
|
|
161
|
+
ref: N,
|
|
149
162
|
role: "status",
|
|
150
163
|
"aria-busy": "true",
|
|
151
164
|
"aria-live": "polite",
|
|
152
165
|
"data-variant": "editing",
|
|
153
166
|
"data-state": "selected",
|
|
154
|
-
className: `${
|
|
167
|
+
className: `${o} relative flex shrink-0 flex-col items-center gap-2 px-5 text-center ${H}`.trim(),
|
|
155
168
|
style: {
|
|
156
169
|
width: ee,
|
|
157
170
|
height: te,
|
|
158
171
|
borderRadius: O,
|
|
159
172
|
boxSizing: "border-box",
|
|
160
|
-
paddingTop: `${
|
|
161
|
-
paddingBottom: `${
|
|
173
|
+
paddingTop: `${rt}px`,
|
|
174
|
+
paddingBottom: `${nt}px`,
|
|
162
175
|
justifyContent: "center",
|
|
163
|
-
[
|
|
164
|
-
[
|
|
176
|
+
[m]: w,
|
|
177
|
+
[f]: he,
|
|
165
178
|
...j
|
|
166
179
|
},
|
|
167
180
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ n(
|
|
169
182
|
"svg",
|
|
170
183
|
{
|
|
171
|
-
className:
|
|
184
|
+
className: v,
|
|
172
185
|
width: x,
|
|
173
|
-
height:
|
|
174
|
-
viewBox: `0 0 ${x} ${
|
|
186
|
+
height: g,
|
|
187
|
+
viewBox: `0 0 ${x} ${g}`,
|
|
175
188
|
fill: "none",
|
|
176
189
|
"aria-hidden": "true",
|
|
177
190
|
children: [
|
|
178
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */
|
|
179
|
-
/* @__PURE__ */ e("stop", { offset: "0", style: { stopColor: `var(${
|
|
191
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ n("linearGradient", { id: u, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
192
|
+
/* @__PURE__ */ e("stop", { offset: "0", style: { stopColor: `var(${f})` } }),
|
|
180
193
|
/* @__PURE__ */ e("stop", { offset: "1", style: { stopColor: se } })
|
|
181
194
|
] }) }),
|
|
182
195
|
/* @__PURE__ */ e(
|
|
@@ -193,27 +206,27 @@ ${Ke}`, et = {
|
|
|
193
206
|
d: B,
|
|
194
207
|
"data-malachite-shape": "",
|
|
195
208
|
strokeWidth: E,
|
|
196
|
-
style: { fill: "none", stroke: `var(${
|
|
209
|
+
style: { fill: "none", stroke: `var(${m})` }
|
|
197
210
|
}
|
|
198
211
|
)
|
|
199
212
|
]
|
|
200
213
|
}
|
|
201
214
|
),
|
|
202
|
-
/* @__PURE__ */ e(p, { size: "small", fontWeight: "semi-bold", style: lt, children:
|
|
203
|
-
|
|
215
|
+
/* @__PURE__ */ e(p, { size: "small", fontWeight: "semi-bold", style: lt, children: Re }),
|
|
216
|
+
G ? /* @__PURE__ */ e(p, { size: "xsmall", fontWeight: "semi-bold", style: st, children: G }) : null
|
|
204
217
|
]
|
|
205
218
|
}
|
|
206
219
|
);
|
|
207
|
-
const
|
|
208
|
-
return /* @__PURE__ */
|
|
220
|
+
const C = i === "library", V = Me[i][d ? "selected" : "resting"], q = !!R || !!$, J = U !== void 0, Ie = R && $ ? "pr-[48px]" : q ? "pr-[18px]" : "pr-1";
|
|
221
|
+
return /* @__PURE__ */ n(
|
|
209
222
|
"div",
|
|
210
223
|
{
|
|
211
|
-
ref:
|
|
224
|
+
ref: N,
|
|
212
225
|
"data-variant": i,
|
|
213
|
-
"data-pinned":
|
|
226
|
+
"data-pinned": Te ? "true" : "false",
|
|
214
227
|
"data-state": d ? "selected" : "resting",
|
|
215
228
|
"data-hoverable": ue ? "" : void 0,
|
|
216
|
-
className: `${
|
|
229
|
+
className: `${o} group relative grid shrink-0 grid-rows-[1fr_auto] ${De} ${H}`.trim(),
|
|
217
230
|
style: {
|
|
218
231
|
width: ee,
|
|
219
232
|
height: te,
|
|
@@ -222,18 +235,18 @@ ${Ke}`, et = {
|
|
|
222
235
|
...j
|
|
223
236
|
},
|
|
224
237
|
children: [
|
|
225
|
-
d ? /* @__PURE__ */
|
|
238
|
+
d ? /* @__PURE__ */ n(
|
|
226
239
|
"svg",
|
|
227
240
|
{
|
|
228
|
-
className:
|
|
241
|
+
className: v,
|
|
229
242
|
width: x,
|
|
230
|
-
height:
|
|
231
|
-
viewBox: `0 0 ${x} ${
|
|
243
|
+
height: g,
|
|
244
|
+
viewBox: `0 0 ${x} ${g}`,
|
|
232
245
|
fill: "none",
|
|
233
246
|
"aria-hidden": "true",
|
|
234
247
|
children: [
|
|
235
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */ e("stop", { offset: "0", style: { stopColor: `var(${
|
|
248
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ n("linearGradient", { id: u, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
249
|
+
/* @__PURE__ */ e("stop", { offset: "0", style: { stopColor: `var(${f})` } }),
|
|
237
250
|
/* @__PURE__ */ e("stop", { offset: "1", style: { stopColor: se } })
|
|
238
251
|
] }) }),
|
|
239
252
|
/* @__PURE__ */ e(
|
|
@@ -250,54 +263,54 @@ ${Ke}`, et = {
|
|
|
250
263
|
d: B,
|
|
251
264
|
"data-malachite-shape": "",
|
|
252
265
|
strokeWidth: E,
|
|
253
|
-
style: { fill: "none", stroke: `var(${
|
|
266
|
+
style: { fill: "none", stroke: `var(${m})` }
|
|
254
267
|
}
|
|
255
268
|
)
|
|
256
269
|
]
|
|
257
270
|
}
|
|
258
271
|
) : null,
|
|
259
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ n(
|
|
260
273
|
"button",
|
|
261
274
|
{
|
|
262
275
|
type: "button",
|
|
263
276
|
role: "radio",
|
|
264
|
-
"data-value":
|
|
277
|
+
"data-value": t,
|
|
265
278
|
"aria-checked": d,
|
|
266
279
|
"aria-label": W,
|
|
267
280
|
"aria-labelledby": xe,
|
|
268
|
-
"aria-describedby":
|
|
269
|
-
"aria-disabled":
|
|
270
|
-
tabIndex:
|
|
281
|
+
"aria-describedby": ge,
|
|
282
|
+
"aria-disabled": T || void 0,
|
|
283
|
+
tabIndex: $e ?? (d ? 0 : -1),
|
|
271
284
|
onClick: () => {
|
|
272
|
-
|
|
285
|
+
T || d || A == null || A(t);
|
|
273
286
|
},
|
|
274
|
-
className: `flex min-w-0 appearance-none flex-col border-0 bg-transparent py-0 pt-3 pr-4 pl-4 text-left outline-none ${
|
|
287
|
+
className: `flex min-w-0 appearance-none flex-col border-0 bg-transparent py-0 pt-3 pr-4 pl-4 text-left outline-none ${T ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
275
288
|
style: { borderRadius: O },
|
|
276
289
|
children: [
|
|
277
|
-
/* @__PURE__ */ e("div", { className: `flex h-[13px] shrink-0 items-center gap-2 ${
|
|
278
|
-
|
|
279
|
-
|
|
290
|
+
/* @__PURE__ */ e("div", { className: `flex h-[13px] shrink-0 items-center gap-2 ${Ie}`, children: /* @__PURE__ */ n("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
291
|
+
C ? /* @__PURE__ */ n("span", { id: L, className: "flex min-w-0 items-center gap-1.5", children: [
|
|
292
|
+
l ? /* @__PURE__ */ e(
|
|
280
293
|
"span",
|
|
281
294
|
{
|
|
282
295
|
className: "flex shrink-0 items-center",
|
|
283
|
-
style:
|
|
284
|
-
children:
|
|
296
|
+
style: ne,
|
|
297
|
+
children: l
|
|
285
298
|
}
|
|
286
299
|
) : null,
|
|
287
|
-
c ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ e(ie, {}) }) : null,
|
|
288
|
-
/* @__PURE__ */ e(Q, { text:
|
|
300
|
+
c ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ e(ie, { leading: !l }) }) : null,
|
|
301
|
+
/* @__PURE__ */ e(Q, { text: a, children: /* @__PURE__ */ e(
|
|
289
302
|
p,
|
|
290
303
|
{
|
|
291
304
|
size: "small",
|
|
292
305
|
fontWeight: "semi-bold",
|
|
293
|
-
style:
|
|
294
|
-
children:
|
|
306
|
+
style: z ? { color: b } : void 0,
|
|
307
|
+
children: a
|
|
295
308
|
}
|
|
296
309
|
) })
|
|
297
310
|
] }) : null,
|
|
298
311
|
r ? /* @__PURE__ */ e("span", { id: X, className: "flex min-w-0", children: /* @__PURE__ */ e(p, { size: "xsmall", fontWeight: "semi-bold", style: V, children: r }) }) : null,
|
|
299
312
|
_ ? /* @__PURE__ */ e("span", { id: M, className: "flex min-w-0", children: /* @__PURE__ */ e(
|
|
300
|
-
|
|
313
|
+
Le,
|
|
301
314
|
{
|
|
302
315
|
value: _.label,
|
|
303
316
|
type: _.type ?? "default",
|
|
@@ -306,64 +319,64 @@ ${Ke}`, et = {
|
|
|
306
319
|
}
|
|
307
320
|
) }) : null
|
|
308
321
|
] }) }),
|
|
309
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ n(
|
|
310
323
|
"div",
|
|
311
324
|
{
|
|
312
|
-
className: `mt-[11px] flex min-w-0 flex-1 flex-col gap-1 pt-3 ${
|
|
325
|
+
className: `mt-[11px] flex min-w-0 flex-1 flex-col gap-1 pt-3 ${C ? "justify-end" : "justify-between"}`,
|
|
313
326
|
children: [
|
|
314
|
-
|
|
315
|
-
|
|
327
|
+
C ? null : /* @__PURE__ */ n("div", { id: L, className: "flex min-w-0 items-center gap-1.5", children: [
|
|
328
|
+
l ? /* @__PURE__ */ e(
|
|
316
329
|
"span",
|
|
317
330
|
{
|
|
318
331
|
className: "flex shrink-0 items-center",
|
|
319
|
-
style:
|
|
320
|
-
children:
|
|
332
|
+
style: ne,
|
|
333
|
+
children: l
|
|
321
334
|
}
|
|
322
335
|
) : null,
|
|
323
|
-
c ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ e(ie, {}) }) : null,
|
|
324
|
-
/* @__PURE__ */ e(Q, { text:
|
|
336
|
+
c ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ e(ie, { leading: !l }) }) : null,
|
|
337
|
+
/* @__PURE__ */ e(Q, { text: a, children: /* @__PURE__ */ e(
|
|
325
338
|
p,
|
|
326
339
|
{
|
|
327
340
|
size: "small",
|
|
328
341
|
fontWeight: "semi-bold",
|
|
329
|
-
style:
|
|
330
|
-
children:
|
|
342
|
+
style: z ? { color: b } : void 0,
|
|
343
|
+
children: a
|
|
331
344
|
}
|
|
332
345
|
) })
|
|
333
346
|
] }),
|
|
334
|
-
|
|
347
|
+
S ? /* @__PURE__ */ e("span", { id: K, className: "block min-w-0", children: /* @__PURE__ */ e(p, { size: "xsmall", style: tt, children: S }) }) : null
|
|
335
348
|
]
|
|
336
349
|
}
|
|
337
350
|
)
|
|
338
351
|
]
|
|
339
352
|
}
|
|
340
353
|
),
|
|
341
|
-
/* @__PURE__ */ e("span", { id: Z, className: "min-w-0 self-end truncate pr-4 pb-3 pl-4", children: y ? /* @__PURE__ */ e(p, { size: "xsmall", fontWeight: "semi-bold", style:
|
|
342
|
-
q ? /* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ e("span", { id: Z, className: "min-w-0 self-end truncate pr-4 pb-3 pl-4", children: y ? /* @__PURE__ */ e(p, { size: "xsmall", fontWeight: "semi-bold", style: at, children: y }) : null }),
|
|
355
|
+
q ? /* @__PURE__ */ n(
|
|
343
356
|
"div",
|
|
344
357
|
{
|
|
345
358
|
"data-selectable-card-actions": "",
|
|
346
|
-
className: "absolute top-3 right-
|
|
359
|
+
className: "absolute top-3 right-2 flex h-[13px] shrink-0 items-center gap-2.5",
|
|
347
360
|
children: [
|
|
348
|
-
|
|
349
|
-
|
|
361
|
+
R ? /* @__PURE__ */ e("span", { className: "flex items-center gap-2.5", style: ot, children: R }) : null,
|
|
362
|
+
$ ? /* @__PURE__ */ e(
|
|
350
363
|
ye,
|
|
351
364
|
{
|
|
352
365
|
type: "button",
|
|
353
366
|
variant: "ghost",
|
|
354
367
|
size: "xsmall",
|
|
355
368
|
iconOnly: !0,
|
|
356
|
-
"aria-label":
|
|
357
|
-
tooltip:
|
|
369
|
+
"aria-label": Y,
|
|
370
|
+
tooltip: U ?? Y,
|
|
358
371
|
disabled: J,
|
|
359
372
|
className: "shrink-0",
|
|
360
|
-
onClick:
|
|
373
|
+
onClick: $,
|
|
361
374
|
children: /* @__PURE__ */ e(
|
|
362
375
|
"span",
|
|
363
376
|
{
|
|
364
|
-
className:
|
|
365
|
-
style: J ?
|
|
366
|
-
children: /* @__PURE__ */ e(
|
|
377
|
+
className: it,
|
|
378
|
+
style: J ? ct : V,
|
|
379
|
+
children: /* @__PURE__ */ e(Ae, {})
|
|
367
380
|
}
|
|
368
381
|
)
|
|
369
382
|
}
|
|
@@ -376,12 +389,12 @@ ${Ke}`, et = {
|
|
|
376
389
|
);
|
|
377
390
|
};
|
|
378
391
|
export {
|
|
379
|
-
|
|
380
|
-
|
|
392
|
+
We as CARD_FLARE_PX,
|
|
393
|
+
It as CARD_FLARE_TIP_PX,
|
|
381
394
|
F as CARD_WIDTH_PX,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
395
|
+
v as FLARE_CLASS,
|
|
396
|
+
fe as STRIP_RULE_PX,
|
|
397
|
+
vt as SelectableCard,
|
|
398
|
+
vt as default
|
|
386
399
|
};
|
|
387
400
|
//# sourceMappingURL=SelectableCard.js.map
|