@shlinkio/shlink-frontend-kit 0.9.8 → 0.9.9
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.d.ts +40 -4
- package/dist/index.js +167 -188
- package/dist/ordering-B_hekQuu.js +96 -0
- package/dist/tailwind.d.ts +88 -0
- package/dist/tailwind.js +776 -540
- package/dist/tailwind.preset.css +2 -2
- package/package.json +7 -7
- package/dist/use-toggle-C1uZwbSD.js +0 -32
package/dist/tailwind.js
CHANGED
|
@@ -1,132 +1,133 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import w, { clsx as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { Link as
|
|
5
|
-
import { faClose as
|
|
1
|
+
import { jsxs as p, jsx as n, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import w, { clsx as f } from "clsx";
|
|
3
|
+
import { useRef as T, useState as R, useEffect as B, forwardRef as y, useCallback as P, createContext as q, useContext as O, useId as $, useMemo as W } from "react";
|
|
4
|
+
import { Link as G, NavLink as mt } from "react-router";
|
|
5
|
+
import { faClose as pt, faEyeSlash as bt, faEye as gt, faCircleNotch as nt, faSearch as ut, faCaretDown as ht, faChevronLeft as V, faChevronRight as tt, faEllipsisV as ft, faSortAmountUp as xt, faSortAmountDown as yt, faCheck as kt } from "@fortawesome/free-solid-svg-icons";
|
|
6
6
|
import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
import { u as vt, b as Nt, a as Ct, e as Tt, c as It } from "./ordering-B_hekQuu.js";
|
|
8
|
+
import { useFloating as ot, flip as Pt, offset as Ot, useClick as Dt, useInteractions as at, autoPlacement as Lt, arrow as Mt, useHover as Bt, useTransitionStyles as Rt } from "@floating-ui/react";
|
|
9
|
+
import { createPortal as Ft } from "react-dom";
|
|
10
|
+
import "reactstrap";
|
|
11
|
+
import { faClone as Et } from "@fortawesome/free-regular-svg-icons";
|
|
12
|
+
const Oe = ({ children: r, summary: e, summaryClasses: t, ...o }) => {
|
|
13
|
+
const a = T(null), [l, d] = R(!1);
|
|
14
|
+
return B(() => {
|
|
15
|
+
const i = a.current, s = () => d(!!(i != null && i.open));
|
|
16
|
+
return i == null || i.addEventListener("toggle", s), () => i == null ? void 0 : i.removeEventListener("toggle", s);
|
|
17
|
+
}, []), /* @__PURE__ */ p("details", { ref: a, ...o, children: [
|
|
18
|
+
/* @__PURE__ */ n("summary", { className: f("tw:focus-ring tw:px-1 tw:-mx-1 tw:rounded-sm", t), children: e }),
|
|
19
|
+
l && /* @__PURE__ */ n("div", { className: "tw:mt-3 tw:flex tw:flex-col tw:gap-y-3", children: r })
|
|
19
20
|
] });
|
|
20
|
-
},
|
|
21
|
+
}, St = y(({ className: r, ...e }, t) => /* @__PURE__ */ n(
|
|
21
22
|
"div",
|
|
22
23
|
{
|
|
23
24
|
className: w(
|
|
24
25
|
"tw:px-4 tw:py-3 tw:rounded-t-md",
|
|
25
26
|
"tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-b tw:border-lm-border tw:dark:border-dm-border",
|
|
26
|
-
|
|
27
|
+
r
|
|
27
28
|
),
|
|
28
|
-
...
|
|
29
|
-
ref:
|
|
29
|
+
...e,
|
|
30
|
+
ref: t
|
|
30
31
|
}
|
|
31
|
-
)),
|
|
32
|
+
)), jt = y(({ className: r, ...e }, t) => /* @__PURE__ */ n(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
34
35
|
className: w(
|
|
35
36
|
"tw:p-4 tw:bg-lm-primary tw:dark:bg-dm-primary tw:first:rounded-t-md",
|
|
36
37
|
"tw:first:rounded-t-md tw:last:rounded-b-md",
|
|
37
|
-
|
|
38
|
+
r
|
|
38
39
|
),
|
|
39
|
-
...
|
|
40
|
-
ref:
|
|
40
|
+
...e,
|
|
41
|
+
ref: t
|
|
41
42
|
}
|
|
42
|
-
)),
|
|
43
|
+
)), At = y(({ className: r, ...e }, t) => /* @__PURE__ */ n(
|
|
43
44
|
"div",
|
|
44
45
|
{
|
|
45
46
|
className: w(
|
|
46
47
|
"tw:px-4 tw:py-3 tw:rounded-b-md",
|
|
47
48
|
"tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-t tw:border-lm-border tw:dark:border-dm-border",
|
|
48
|
-
|
|
49
|
+
r
|
|
49
50
|
),
|
|
50
|
-
...
|
|
51
|
-
ref:
|
|
51
|
+
...e,
|
|
52
|
+
ref: t
|
|
52
53
|
}
|
|
53
|
-
)),
|
|
54
|
+
)), _t = y(({ className: r, ...e }, t) => /* @__PURE__ */ n(
|
|
54
55
|
"div",
|
|
55
56
|
{
|
|
56
57
|
className: w(
|
|
57
58
|
"tw:group/card tw:rounded-md tw:shadow-md",
|
|
58
59
|
"tw:border tw:border-lm-border tw:dark:border-dm-border tw:bg-lm-primary tw:dark:bg-dm-primary",
|
|
59
|
-
|
|
60
|
+
r
|
|
60
61
|
),
|
|
61
|
-
...r,
|
|
62
|
-
ref: e
|
|
63
|
-
}
|
|
64
|
-
)), N = Object.assign(Tt, { Body: Nt, Header: vt, Footer: Ct }), It = h(({ bodyClassName: t, children: r, ...e }, o) => {
|
|
65
|
-
const { title: a, titleSize: d = "md", ...l } = "title" in e ? e : {
|
|
66
62
|
...e,
|
|
63
|
+
ref: t
|
|
64
|
+
}
|
|
65
|
+
)), C = Object.assign(_t, { Body: jt, Header: St, Footer: At }), $t = y(({ bodyClassName: r, children: e, ...t }, o) => {
|
|
66
|
+
const { title: a, titleSize: l = "md", ...d } = "title" in t ? t : {
|
|
67
|
+
...t,
|
|
67
68
|
title: void 0,
|
|
68
69
|
titleSize: void 0
|
|
69
70
|
};
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
a && /* @__PURE__ */
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
return /* @__PURE__ */ p(C, { ...d, ref: o, children: [
|
|
72
|
+
a && /* @__PURE__ */ p(C.Header, { children: [
|
|
73
|
+
l === "lg" && /* @__PURE__ */ n("h4", { children: a }),
|
|
74
|
+
l === "md" && /* @__PURE__ */ n("h5", { children: a }),
|
|
75
|
+
l === "sm" && /* @__PURE__ */ n("h6", { children: a })
|
|
75
76
|
] }),
|
|
76
|
-
/* @__PURE__ */ n(
|
|
77
|
+
/* @__PURE__ */ n(C.Body, { className: r, children: e })
|
|
77
78
|
] });
|
|
78
79
|
});
|
|
79
|
-
function
|
|
80
|
-
id:
|
|
81
|
-
items:
|
|
82
|
-
onSelectItem:
|
|
80
|
+
function Ht({
|
|
81
|
+
id: r,
|
|
82
|
+
items: e,
|
|
83
|
+
onSelectItem: t,
|
|
83
84
|
onActiveItemChange: o,
|
|
84
85
|
renderItem: a,
|
|
85
|
-
className:
|
|
86
|
-
noItemsMessage:
|
|
87
|
-
anchor:
|
|
88
|
-
"aria-label":
|
|
86
|
+
className: l,
|
|
87
|
+
noItemsMessage: d = "No items",
|
|
88
|
+
anchor: i,
|
|
89
|
+
"aria-label": s = "Items",
|
|
89
90
|
...c
|
|
90
91
|
}) {
|
|
91
|
-
const [m,
|
|
92
|
-
if (
|
|
93
|
-
const [b,
|
|
94
|
-
o(b,
|
|
92
|
+
const [m, g] = R(0), u = P((x) => {
|
|
93
|
+
if (g(x), o) {
|
|
94
|
+
const [b, h] = [...e.entries()][x];
|
|
95
|
+
o(b, h);
|
|
95
96
|
}
|
|
96
|
-
}, [
|
|
97
|
-
return
|
|
98
|
-
const x =
|
|
97
|
+
}, [e, o]);
|
|
98
|
+
return B(() => {
|
|
99
|
+
const x = i == null ? void 0 : i.current;
|
|
99
100
|
if (!x)
|
|
100
101
|
return;
|
|
101
|
-
const b = (
|
|
102
|
-
["Enter", "ArrowUp", "ArrowDown"].includes(
|
|
102
|
+
const b = (h) => {
|
|
103
|
+
["Enter", "ArrowUp", "ArrowDown"].includes(h.key) && h.preventDefault(), h.key === "ArrowDown" ? u(Math.min(m + 1, e.size - 1)) : h.key === "ArrowUp" ? u(Math.max(m - 1, 0)) : h.key === "Enter" && t([...e.values()][m]);
|
|
103
104
|
};
|
|
104
105
|
return x.addEventListener("keydown", b), () => x.removeEventListener("keydown", b);
|
|
105
|
-
}, [m,
|
|
106
|
-
|
|
106
|
+
}, [m, i, u, e, t]), /* @__PURE__ */ p(
|
|
107
|
+
C,
|
|
107
108
|
{
|
|
108
|
-
id:
|
|
109
|
-
className: w("tw:py-1 tw:flex tw:flex-col",
|
|
109
|
+
id: r,
|
|
110
|
+
className: w("tw:py-1 tw:flex tw:flex-col", l),
|
|
110
111
|
role: "listbox",
|
|
111
112
|
"aria-orientation": "vertical",
|
|
112
|
-
"aria-label":
|
|
113
|
+
"aria-label": s,
|
|
113
114
|
...c,
|
|
114
115
|
children: [
|
|
115
|
-
|
|
116
|
-
[...
|
|
116
|
+
e.size === 0 && /* @__PURE__ */ n("i", { role: "option", "aria-disabled": !0, "aria-selected": !1, "data-testid": "no-items", className: "tw:px-2 tw:py-1", children: d }),
|
|
117
|
+
[...e.entries()].map(([x, b], h) => /* @__PURE__ */ n(
|
|
117
118
|
"button",
|
|
118
119
|
{
|
|
119
|
-
id: `${
|
|
120
|
+
id: `${r}_${x}`,
|
|
120
121
|
type: "button",
|
|
121
122
|
role: "option",
|
|
122
|
-
"aria-selected":
|
|
123
|
+
"aria-selected": h === m,
|
|
123
124
|
className: w(
|
|
124
125
|
"tw:px-2 tw:py-1 tw:text-left tw:truncate",
|
|
125
|
-
{ "tw:bg-lm-secondary tw:dark:bg-dm-secondary":
|
|
126
|
+
{ "tw:bg-lm-secondary tw:dark:bg-dm-secondary": h === m }
|
|
126
127
|
),
|
|
127
128
|
tabIndex: -1,
|
|
128
|
-
onClick: () =>
|
|
129
|
-
onMouseOver: () =>
|
|
129
|
+
onClick: () => t(b),
|
|
130
|
+
onMouseOver: () => u(h),
|
|
130
131
|
children: a(b)
|
|
131
132
|
},
|
|
132
133
|
x
|
|
@@ -135,294 +136,288 @@ function Pt({
|
|
|
135
136
|
}
|
|
136
137
|
);
|
|
137
138
|
}
|
|
138
|
-
const
|
|
139
|
-
const { responsive:
|
|
140
|
-
return /* @__PURE__ */ n(
|
|
139
|
+
const H = q(void 0), F = q({ responsive: !0, size: "md" }), Ut = ({ children: r, className: e }) => {
|
|
140
|
+
const { responsive: t } = O(F);
|
|
141
|
+
return /* @__PURE__ */ n(H.Provider, { value: { section: "head" }, children: /* @__PURE__ */ n(
|
|
141
142
|
"thead",
|
|
142
143
|
{
|
|
143
144
|
className: w(
|
|
144
|
-
{ "tw:hidden tw:lg:table-header-group":
|
|
145
|
-
|
|
145
|
+
{ "tw:hidden tw:lg:table-header-group": t },
|
|
146
|
+
e
|
|
146
147
|
),
|
|
147
|
-
children:
|
|
148
|
+
children: r
|
|
148
149
|
}
|
|
149
150
|
) });
|
|
150
|
-
},
|
|
151
|
-
const { responsive:
|
|
152
|
-
return /* @__PURE__ */ n(
|
|
151
|
+
}, Wt = ({ children: r, className: e }) => {
|
|
152
|
+
const { responsive: t } = O(F);
|
|
153
|
+
return /* @__PURE__ */ n(H.Provider, { value: { section: "body" }, children: /* @__PURE__ */ n(
|
|
153
154
|
"tbody",
|
|
154
155
|
{
|
|
155
156
|
className: w(
|
|
156
|
-
{ "tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3":
|
|
157
|
-
|
|
157
|
+
{ "tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3": t },
|
|
158
|
+
e
|
|
158
159
|
),
|
|
159
|
-
children:
|
|
160
|
+
children: r
|
|
160
161
|
}
|
|
161
162
|
) });
|
|
162
|
-
},
|
|
163
|
-
const { responsive:
|
|
164
|
-
return /* @__PURE__ */ n(
|
|
163
|
+
}, Kt = ({ children: r, className: e }) => {
|
|
164
|
+
const { responsive: t } = O(F);
|
|
165
|
+
return /* @__PURE__ */ n(H.Provider, { value: { section: "footer" }, children: /* @__PURE__ */ n(
|
|
165
166
|
"tfoot",
|
|
166
167
|
{
|
|
167
168
|
className: w(
|
|
168
|
-
{ "tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3 tw:mt-4":
|
|
169
|
-
|
|
169
|
+
{ "tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3 tw:mt-4": t },
|
|
170
|
+
e
|
|
170
171
|
),
|
|
171
|
-
children:
|
|
172
|
+
children: r
|
|
172
173
|
}
|
|
173
174
|
) });
|
|
174
|
-
},
|
|
175
|
-
const o =
|
|
175
|
+
}, zt = ({ children: r, className: e, ...t }) => {
|
|
176
|
+
const o = O(H), a = (o == null ? void 0 : o.section) === "body", { responsive: l } = O(F);
|
|
176
177
|
return /* @__PURE__ */ n(
|
|
177
178
|
"tr",
|
|
178
179
|
{
|
|
179
180
|
className: w(
|
|
180
181
|
"tw:group",
|
|
181
182
|
{
|
|
182
|
-
"tw:lg:table-row tw:flex tw:flex-col":
|
|
183
|
-
"tw:lg:border-0 tw:border-y-2 tw:border-lm-border tw:dark:border-dm-border":
|
|
183
|
+
"tw:lg:table-row tw:flex tw:flex-col": l,
|
|
184
|
+
"tw:lg:border-0 tw:border-y-2 tw:border-lm-border tw:dark:border-dm-border": l,
|
|
184
185
|
"tw:hover:bg-lm-primary tw:dark:hover:bg-dm-primary": a,
|
|
185
186
|
// Use a different hover bg color depending on the table being inside a card or not
|
|
186
187
|
"tw:group-[&]/card:hover:bg-lm-secondary tw:dark:group-[&]/card:hover:bg-dm-secondary": a
|
|
187
188
|
},
|
|
188
|
-
|
|
189
|
+
e
|
|
189
190
|
),
|
|
190
|
-
...
|
|
191
|
-
children:
|
|
191
|
+
...t,
|
|
192
|
+
children: r
|
|
192
193
|
}
|
|
193
194
|
);
|
|
194
|
-
},
|
|
195
|
-
const
|
|
195
|
+
}, qt = ({ children: r, className: e, columnName: t, type: o, ...a }) => {
|
|
196
|
+
const l = O(H), d = o ?? ((l == null ? void 0 : l.section) !== "body" ? "th" : "td"), { responsive: i, size: s } = O(F);
|
|
196
197
|
return /* @__PURE__ */ n(
|
|
197
|
-
|
|
198
|
+
d,
|
|
198
199
|
{
|
|
199
|
-
"data-column":
|
|
200
|
+
"data-column": i ? t : void 0,
|
|
200
201
|
className: w(
|
|
201
202
|
"tw:border-lm-border tw:dark:border-dm-border",
|
|
202
203
|
{
|
|
203
|
-
"tw:p-1":
|
|
204
|
-
"tw:p-2":
|
|
205
|
-
"tw:p-3":
|
|
206
|
-
"tw:border-b-1": !
|
|
207
|
-
"tw:block tw:lg:table-cell tw:not-last:border-b-1 tw:lg:border-b-1":
|
|
204
|
+
"tw:p-1": s === "sm",
|
|
205
|
+
"tw:p-2": s === "md",
|
|
206
|
+
"tw:p-3": s === "lg",
|
|
207
|
+
"tw:border-b-1": !i,
|
|
208
|
+
"tw:block tw:lg:table-cell tw:not-last:border-b-1 tw:lg:border-b-1": i,
|
|
208
209
|
// For responsive tables, display the content in data-column attribute for md sizes and lower
|
|
209
|
-
"tw:before:lg:hidden tw:before:content-[attr(data-column)] tw:before:font-bold tw:before:mr-1":
|
|
210
|
+
"tw:before:lg:hidden tw:before:content-[attr(data-column)] tw:before:font-bold tw:before:mr-1": i && d === "td"
|
|
210
211
|
},
|
|
211
|
-
|
|
212
|
+
e
|
|
212
213
|
),
|
|
213
214
|
...a,
|
|
214
|
-
children:
|
|
215
|
+
children: r
|
|
215
216
|
}
|
|
216
217
|
);
|
|
217
|
-
},
|
|
218
|
-
/* @__PURE__ */ n(
|
|
219
|
-
/* @__PURE__ */ n(
|
|
220
|
-
|
|
221
|
-
] }) }),
|
|
222
|
-
children: t,
|
|
218
|
+
}, Gt = ({ header: r, footer: e, children: t, responsive: o = !0, size: a = "md", ...l }) => /* @__PURE__ */ n(F.Provider, { value: { responsive: o, size: a }, children: /* @__PURE__ */ p("table", { className: "tw:w-full", ...l, children: [
|
|
219
|
+
/* @__PURE__ */ n(Ut, { children: r }),
|
|
220
|
+
/* @__PURE__ */ n(Wt, { children: t }),
|
|
221
|
+
e && /* @__PURE__ */ n(Kt, { children: e })
|
|
222
|
+
] }) }), De = Object.assign(Gt, { Row: zt, Cell: qt }), Jt = y(({
|
|
223
223
|
className: r,
|
|
224
224
|
disabled: e,
|
|
225
|
-
variant:
|
|
226
|
-
size:
|
|
227
|
-
inline:
|
|
225
|
+
variant: t = "primary",
|
|
226
|
+
size: o = "md",
|
|
227
|
+
inline: a = !1,
|
|
228
228
|
solid: l = !1,
|
|
229
|
-
type:
|
|
229
|
+
type: d = "button",
|
|
230
230
|
...i
|
|
231
|
-
},
|
|
232
|
-
const
|
|
231
|
+
}, s) => {
|
|
232
|
+
const c = "to" in i, m = c ? G : "button", g = c ? void 0 : d;
|
|
233
233
|
return /* @__PURE__ */ n(
|
|
234
234
|
m,
|
|
235
235
|
{
|
|
236
|
-
ref:
|
|
236
|
+
ref: s,
|
|
237
237
|
className: w(
|
|
238
238
|
{
|
|
239
|
-
"tw:inline-flex":
|
|
240
|
-
"tw:flex": !
|
|
239
|
+
"tw:inline-flex": a,
|
|
240
|
+
"tw:flex": !a
|
|
241
241
|
},
|
|
242
242
|
"tw:gap-2 tw:items-center tw:justify-center",
|
|
243
243
|
"tw:border tw:rounded-md tw:no-underline",
|
|
244
244
|
"tw:transition-colors",
|
|
245
245
|
{
|
|
246
|
-
"tw:focus-ring":
|
|
247
|
-
"tw:focus-ring-secondary":
|
|
248
|
-
"tw:focus-ring-danger":
|
|
246
|
+
"tw:focus-ring": t === "primary",
|
|
247
|
+
"tw:focus-ring-secondary": t === "secondary",
|
|
248
|
+
"tw:focus-ring-danger": t === "danger"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
|
-
"tw:px-1.5 tw:py-1 tw:text-sm":
|
|
252
|
-
"tw:px-3 tw:py-1.5":
|
|
253
|
-
"tw:px-4 tw:py-2 tw:text-lg":
|
|
251
|
+
"tw:px-1.5 tw:py-1 tw:text-sm": o === "sm",
|
|
252
|
+
"tw:px-3 tw:py-1.5": o === "md",
|
|
253
|
+
"tw:px-4 tw:py-2 tw:text-lg": o === "lg"
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
|
-
"tw:border-lm-brand tw:dark:border-dm-brand":
|
|
257
|
-
"tw:text-lm-brand tw:dark:text-dm-brand":
|
|
258
|
-
"tw:border-zinc-500":
|
|
259
|
-
"tw:text-zinc-500":
|
|
260
|
-
"tw:border-danger":
|
|
261
|
-
"tw:text-danger":
|
|
256
|
+
"tw:border-lm-brand tw:dark:border-dm-brand": t === "primary",
|
|
257
|
+
"tw:text-lm-brand tw:dark:text-dm-brand": t === "primary" && !l,
|
|
258
|
+
"tw:border-zinc-500": t === "secondary",
|
|
259
|
+
"tw:text-zinc-500": t === "secondary" && !l,
|
|
260
|
+
"tw:border-danger": t === "danger",
|
|
261
|
+
"tw:text-danger": t === "danger" && !l
|
|
262
262
|
},
|
|
263
263
|
l && {
|
|
264
264
|
"tw:text-white": !0,
|
|
265
|
-
"tw:bg-lm-brand tw:dark:bg-dm-brand":
|
|
266
|
-
"tw:highlight:bg-lm-brand-dark tw:dark:highlight:bg-dm-brand-dark":
|
|
267
|
-
"tw:highlight:border-lm-brand-dark tw:dark:highlight:border-dm-brand-dark":
|
|
268
|
-
"tw:bg-zinc-500":
|
|
269
|
-
"tw:highlight:bg-zinc-600 tw:highlight:border-zinc-600":
|
|
270
|
-
"tw:bg-danger":
|
|
271
|
-
"tw:highlight:bg-danger-dark tw:highlight:border-danger-dark":
|
|
265
|
+
"tw:bg-lm-brand tw:dark:bg-dm-brand": t === "primary",
|
|
266
|
+
"tw:highlight:bg-lm-brand-dark tw:dark:highlight:bg-dm-brand-dark": t === "primary",
|
|
267
|
+
"tw:highlight:border-lm-brand-dark tw:dark:highlight:border-dm-brand-dark": t === "primary",
|
|
268
|
+
"tw:bg-zinc-500": t === "secondary",
|
|
269
|
+
"tw:highlight:bg-zinc-600 tw:highlight:border-zinc-600": t === "secondary",
|
|
270
|
+
"tw:bg-danger": t === "danger",
|
|
271
|
+
"tw:highlight:bg-danger-dark tw:highlight:border-danger-dark": t === "danger"
|
|
272
272
|
},
|
|
273
273
|
!e && {
|
|
274
274
|
"tw:highlight:text-white": !l,
|
|
275
|
-
"tw:highlight:bg-lm-brand tw:dark:highlight:bg-dm-brand":
|
|
276
|
-
"tw:highlight:bg-zinc-500":
|
|
277
|
-
"tw:highlight:bg-danger":
|
|
275
|
+
"tw:highlight:bg-lm-brand tw:dark:highlight:bg-dm-brand": t === "primary",
|
|
276
|
+
"tw:highlight:bg-zinc-500": t === "secondary",
|
|
277
|
+
"tw:highlight:bg-danger": t === "danger"
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"tw:pointer-events-none tw:opacity-65": e
|
|
281
281
|
},
|
|
282
282
|
r
|
|
283
283
|
),
|
|
284
|
-
disabled: e,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
disabled: c ? void 0 : e,
|
|
285
|
+
"aria-disabled": c ? e : void 0,
|
|
286
|
+
type: g,
|
|
287
|
+
...i
|
|
288
288
|
}
|
|
289
289
|
);
|
|
290
|
-
}),
|
|
291
|
-
const a =
|
|
290
|
+
}), lt = y(({ className: r, onChange: e, ...t }, o) => {
|
|
291
|
+
const a = P((l) => e == null ? void 0 : e(l.target.checked, l), [e]);
|
|
292
292
|
return /* @__PURE__ */ n(
|
|
293
293
|
"input",
|
|
294
294
|
{
|
|
295
295
|
ref: o,
|
|
296
296
|
type: "checkbox",
|
|
297
|
-
className:
|
|
297
|
+
className: f(
|
|
298
298
|
"tw:appearance-none tw:focus-ring tw:cursor-[inherit]",
|
|
299
299
|
"tw:border-1 tw:border-lm-input-border tw:dark:border-dm-input-border",
|
|
300
300
|
"tw:bg-lm-primary tw:dark:bg-dm-primary tw:checked:bg-lm-brand tw:dark:checked:bg-dm-brand tw:bg-no-repeat",
|
|
301
301
|
// Use different background color when rendered inside a card
|
|
302
302
|
"tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input",
|
|
303
|
-
|
|
303
|
+
r
|
|
304
304
|
),
|
|
305
305
|
onChange: a,
|
|
306
|
-
...
|
|
306
|
+
...t
|
|
307
307
|
}
|
|
308
308
|
);
|
|
309
|
-
}),
|
|
310
|
-
|
|
309
|
+
}), Le = y(({ className: r, ...e }, t) => /* @__PURE__ */ n(
|
|
310
|
+
lt,
|
|
311
311
|
{
|
|
312
|
-
ref:
|
|
313
|
-
className:
|
|
314
|
-
...
|
|
312
|
+
ref: t,
|
|
313
|
+
className: f("tw:rounded-sm tw:w-4 tw:h-4 tw:checked:bg-(image:--tick) tw:bg-center", r),
|
|
314
|
+
...e
|
|
315
315
|
}
|
|
316
|
-
)),
|
|
316
|
+
)), et = y(({ onClick: r, className: e, label: t = "Close" }, o) => /* @__PURE__ */ n(
|
|
317
317
|
"button",
|
|
318
318
|
{
|
|
319
319
|
ref: o,
|
|
320
320
|
type: "button",
|
|
321
|
-
onClick:
|
|
321
|
+
onClick: r,
|
|
322
322
|
className: w(
|
|
323
323
|
"tw:opacity-50 tw:highlight:opacity-80 tw:transition-opacity",
|
|
324
324
|
"tw:rounded-md tw:focus-ring",
|
|
325
|
-
|
|
325
|
+
e
|
|
326
326
|
),
|
|
327
|
-
"aria-label":
|
|
328
|
-
children: /* @__PURE__ */ n(v, { icon:
|
|
327
|
+
"aria-label": t,
|
|
328
|
+
children: /* @__PURE__ */ n(v, { icon: pt, size: "xl" })
|
|
329
329
|
}
|
|
330
|
-
)),
|
|
331
|
-
borderless:
|
|
332
|
-
size:
|
|
333
|
-
feedback:
|
|
330
|
+
)), J = y(({
|
|
331
|
+
borderless: r = !1,
|
|
332
|
+
size: e = "md",
|
|
333
|
+
feedback: t,
|
|
334
334
|
className: o,
|
|
335
335
|
disabled: a,
|
|
336
|
-
readOnly: d,
|
|
337
336
|
...l
|
|
338
|
-
},
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
"tw:
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}), U = ({ required: t, children: r, className: e, ...o }) => /* @__PURE__ */ g("label", { className: y("tw:cursor-pointer", e), ...o, children: [
|
|
337
|
+
}, d) => /* @__PURE__ */ n(
|
|
338
|
+
"input",
|
|
339
|
+
{
|
|
340
|
+
ref: d,
|
|
341
|
+
className: w(
|
|
342
|
+
"tw:w-full",
|
|
343
|
+
{
|
|
344
|
+
"tw:focus-ring": !t,
|
|
345
|
+
"tw:focus-ring-danger": t === "error"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"tw:px-2 tw:py-1 tw:text-sm": e === "sm",
|
|
349
|
+
"tw:px-3 tw:py-1.5": e === "md",
|
|
350
|
+
"tw:px-4 tw:py-2 tw:text-xl": e === "lg"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"tw:rounded-md tw:border": !r,
|
|
354
|
+
"tw:border-lm-input-border tw:dark:border-dm-input-border": !r && !t,
|
|
355
|
+
"tw:border-danger": !r && t === "error",
|
|
356
|
+
"tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input": a,
|
|
357
|
+
"tw:bg-lm-primary tw:dark:bg-dm-primary": !a,
|
|
358
|
+
// Use different background color when rendered inside a card
|
|
359
|
+
"tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input": !a
|
|
360
|
+
},
|
|
361
|
+
o
|
|
362
|
+
),
|
|
363
|
+
disabled: a,
|
|
364
|
+
...l
|
|
365
|
+
}
|
|
366
|
+
)), Q = ({ required: r, children: e, className: t, ...o }) => /* @__PURE__ */ p("label", { className: f("tw:cursor-pointer", t), ...o, children: [
|
|
367
|
+
e,
|
|
368
|
+
r && /* @__PURE__ */ n("span", { className: "tw:text-danger tw:ml-1", "data-testid": "required-indicator", children: "*" })
|
|
369
|
+
] }), X = ({ children: r, helpText: e, error: t, "data-testid": o }) => /* @__PURE__ */ p("div", { className: "tw:flex tw:flex-col tw:gap-1", "data-testid": o, children: [
|
|
372
370
|
r,
|
|
373
|
-
|
|
374
|
-
] }), K = ({ children: t, helpText: r, error: e, "data-testid": o }) => /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:gap-1", "data-testid": o, children: [
|
|
375
|
-
t,
|
|
376
|
-
r && /* @__PURE__ */ n(
|
|
371
|
+
e && /* @__PURE__ */ n(
|
|
377
372
|
"small",
|
|
378
373
|
{
|
|
379
374
|
"data-testid": o ? `${o}-help-text` : "help-text",
|
|
380
375
|
className: "tw:text-gray-500 tw:dark:text-gray-400",
|
|
381
|
-
children:
|
|
376
|
+
children: e
|
|
382
377
|
}
|
|
383
378
|
),
|
|
384
|
-
|
|
385
|
-
] }),
|
|
386
|
-
const c =
|
|
387
|
-
return /* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */ n(
|
|
379
|
+
t && /* @__PURE__ */ n("span", { "data-testid": o ? `${o}-error` : "error", className: "tw:text-danger", children: t })
|
|
380
|
+
] }), Me = y(({ label: r, inputClassName: e, required: t, hiddenRequired: o, error: a, helpText: l, "data-testid": d, ...i }, s) => {
|
|
381
|
+
const c = $();
|
|
382
|
+
return /* @__PURE__ */ p(X, { error: a, helpText: l, "data-testid": d, children: [
|
|
383
|
+
/* @__PURE__ */ n(Q, { htmlFor: c, required: t, children: r }),
|
|
389
384
|
/* @__PURE__ */ n(
|
|
390
|
-
|
|
385
|
+
J,
|
|
391
386
|
{
|
|
392
|
-
ref:
|
|
387
|
+
ref: s,
|
|
393
388
|
id: c,
|
|
394
|
-
className:
|
|
395
|
-
required:
|
|
389
|
+
className: e,
|
|
390
|
+
required: t || o,
|
|
396
391
|
feedback: a ? "error" : void 0,
|
|
397
|
-
...
|
|
392
|
+
...i
|
|
398
393
|
}
|
|
399
394
|
)
|
|
400
395
|
] });
|
|
401
|
-
}),
|
|
402
|
-
const [
|
|
403
|
-
var
|
|
404
|
-
(
|
|
405
|
-
}, [
|
|
406
|
-
return /* @__PURE__ */
|
|
396
|
+
}), Qt = y(({ containerClassName: r, className: e, size: t, ...o }, a) => {
|
|
397
|
+
const [l, d, , i] = vt(!1), s = T(null), c = P(({ relatedTarget: m }) => {
|
|
398
|
+
var g;
|
|
399
|
+
(g = s.current) != null && g.contains(m) || i();
|
|
400
|
+
}, [s, i]);
|
|
401
|
+
return /* @__PURE__ */ p(
|
|
407
402
|
"div",
|
|
408
403
|
{
|
|
409
|
-
className:
|
|
410
|
-
ref:
|
|
404
|
+
className: f("tw:group tw:relative", r),
|
|
405
|
+
ref: s,
|
|
411
406
|
onBlurCapture: c,
|
|
412
407
|
children: [
|
|
413
408
|
/* @__PURE__ */ n(
|
|
414
|
-
|
|
409
|
+
J,
|
|
415
410
|
{
|
|
416
411
|
ref: a,
|
|
417
|
-
type:
|
|
418
|
-
className:
|
|
412
|
+
type: l ? "text" : "password",
|
|
413
|
+
className: f(
|
|
419
414
|
{
|
|
420
|
-
"tw:pr-10":
|
|
421
|
-
"tw:pr-8":
|
|
415
|
+
"tw:pr-10": t !== "sm",
|
|
416
|
+
"tw:pr-8": t === "sm"
|
|
422
417
|
},
|
|
423
|
-
|
|
418
|
+
e
|
|
424
419
|
),
|
|
425
|
-
size:
|
|
420
|
+
size: t,
|
|
426
421
|
"data-testid": "input",
|
|
427
422
|
...o
|
|
428
423
|
}
|
|
@@ -431,113 +426,113 @@ const E = S(void 0), L = S({ responsive: !0, size: "md" }), Lt = ({ children: t,
|
|
|
431
426
|
"button",
|
|
432
427
|
{
|
|
433
428
|
type: "button",
|
|
434
|
-
onClick:
|
|
435
|
-
title:
|
|
436
|
-
"aria-label":
|
|
437
|
-
className:
|
|
429
|
+
onClick: d,
|
|
430
|
+
title: l ? "Hide password" : "Show password",
|
|
431
|
+
"aria-label": l ? "Hide password" : "Show password",
|
|
432
|
+
className: f(
|
|
438
433
|
"tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:px-1",
|
|
439
434
|
"tw:text-placeholder tw:hover:text-lm-text tw:hover:dark:text-dm-text tw:transition-colors",
|
|
440
435
|
{
|
|
441
|
-
"tw:right-1.5":
|
|
442
|
-
"tw:scale-85 tw:right-1":
|
|
436
|
+
"tw:right-1.5": t !== "sm",
|
|
437
|
+
"tw:scale-85 tw:right-1": t === "sm"
|
|
443
438
|
}
|
|
444
439
|
),
|
|
445
440
|
tabIndex: -1,
|
|
446
|
-
children: /* @__PURE__ */ n(v, { fixedWidth: !0, icon:
|
|
441
|
+
children: /* @__PURE__ */ n(v, { fixedWidth: !0, icon: l ? bt : gt })
|
|
447
442
|
}
|
|
448
443
|
)
|
|
449
444
|
]
|
|
450
445
|
}
|
|
451
446
|
);
|
|
452
|
-
}),
|
|
453
|
-
const c =
|
|
454
|
-
return /* @__PURE__ */
|
|
455
|
-
/* @__PURE__ */ n(
|
|
447
|
+
}), Be = y(({ label: r, inputClassName: e, required: t, hiddenRequired: o, error: a, helpText: l, "data-testid": d, ...i }, s) => {
|
|
448
|
+
const c = $();
|
|
449
|
+
return /* @__PURE__ */ p(X, { error: a, helpText: l, "data-testid": d, children: [
|
|
450
|
+
/* @__PURE__ */ n(Q, { htmlFor: c, required: t, children: r }),
|
|
456
451
|
/* @__PURE__ */ n(
|
|
457
|
-
|
|
452
|
+
Qt,
|
|
458
453
|
{
|
|
459
|
-
ref:
|
|
454
|
+
ref: s,
|
|
460
455
|
id: c,
|
|
461
|
-
className:
|
|
462
|
-
required:
|
|
456
|
+
className: e,
|
|
457
|
+
required: t || o,
|
|
463
458
|
feedback: a ? "error" : void 0,
|
|
464
|
-
...
|
|
459
|
+
...i
|
|
465
460
|
}
|
|
466
461
|
)
|
|
467
462
|
] });
|
|
468
|
-
}),
|
|
469
|
-
className:
|
|
470
|
-
size:
|
|
471
|
-
feedback:
|
|
463
|
+
}), Xt = y(({
|
|
464
|
+
className: r,
|
|
465
|
+
size: e = "md",
|
|
466
|
+
feedback: t,
|
|
472
467
|
style: o = {},
|
|
473
468
|
disabled: a,
|
|
474
|
-
...
|
|
475
|
-
},
|
|
469
|
+
...l
|
|
470
|
+
}, d) => /* @__PURE__ */ n(
|
|
476
471
|
"select",
|
|
477
472
|
{
|
|
478
|
-
ref:
|
|
473
|
+
ref: d,
|
|
479
474
|
className: w(
|
|
480
475
|
"tw:w-full tw:appearance-none tw:pr-9",
|
|
481
476
|
"tw:bg-(image:--chevron-down) tw:bg-no-repeat",
|
|
482
477
|
{
|
|
483
|
-
"tw:focus-ring": !
|
|
484
|
-
"tw:focus-ring-danger":
|
|
478
|
+
"tw:focus-ring": !t,
|
|
479
|
+
"tw:focus-ring-danger": t === "error"
|
|
485
480
|
},
|
|
486
481
|
"tw:rounded-md tw:border",
|
|
487
482
|
{
|
|
488
|
-
"tw:border-lm-input-border tw:dark:border-dm-input-border": !
|
|
489
|
-
"tw:border-danger":
|
|
483
|
+
"tw:border-lm-input-border tw:dark:border-dm-input-border": !t,
|
|
484
|
+
"tw:border-danger": t === "error"
|
|
490
485
|
},
|
|
491
486
|
{
|
|
492
|
-
"tw:pl-2 tw:py-1 tw:text-sm":
|
|
493
|
-
"tw:pl-3 tw:py-1.5":
|
|
494
|
-
"tw:pl-4 tw:py-2 tw:text-xl":
|
|
487
|
+
"tw:pl-2 tw:py-1 tw:text-sm": e === "sm",
|
|
488
|
+
"tw:pl-3 tw:py-1.5": e === "md",
|
|
489
|
+
"tw:pl-4 tw:py-2 tw:text-xl": e === "lg",
|
|
495
490
|
"tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input": a,
|
|
496
491
|
// Apply different background color when rendered inside a card
|
|
497
492
|
"tw:bg-lm-primary tw:dark:bg-dm-primary tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input": !a
|
|
498
493
|
},
|
|
499
|
-
|
|
494
|
+
r
|
|
500
495
|
),
|
|
501
496
|
style: {
|
|
502
497
|
...o,
|
|
503
498
|
background: "right 0.75rem center / 16px 12px"
|
|
504
499
|
},
|
|
505
500
|
disabled: a,
|
|
506
|
-
...
|
|
501
|
+
...l
|
|
507
502
|
}
|
|
508
|
-
)),
|
|
509
|
-
const c =
|
|
510
|
-
return /* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */ n(
|
|
503
|
+
)), Re = y(({ selectClassName: r, label: e, error: t, helpText: o, required: a, hiddenRequired: l, "data-testid": d, ...i }, s) => {
|
|
504
|
+
const c = $();
|
|
505
|
+
return /* @__PURE__ */ p(X, { error: t, helpText: o, "data-testid": d, children: [
|
|
506
|
+
/* @__PURE__ */ n(Q, { htmlFor: c, required: a, children: e }),
|
|
512
507
|
/* @__PURE__ */ n(
|
|
513
|
-
|
|
508
|
+
Xt,
|
|
514
509
|
{
|
|
515
|
-
ref:
|
|
510
|
+
ref: s,
|
|
516
511
|
id: c,
|
|
517
|
-
className:
|
|
518
|
-
required: a ||
|
|
519
|
-
feedback:
|
|
520
|
-
...
|
|
512
|
+
className: r,
|
|
513
|
+
required: a || l,
|
|
514
|
+
feedback: t ? "error" : void 0,
|
|
515
|
+
...i
|
|
521
516
|
}
|
|
522
517
|
)
|
|
523
518
|
] });
|
|
524
|
-
}),
|
|
525
|
-
onChange:
|
|
526
|
-
containerClassName:
|
|
527
|
-
inputClassName:
|
|
519
|
+
}), Yt = y(({
|
|
520
|
+
onChange: r,
|
|
521
|
+
containerClassName: e,
|
|
522
|
+
inputClassName: t,
|
|
528
523
|
// Inputs have a default 'md' size. Search inputs are usually 'lg' as they are rendered at the top of sections
|
|
529
524
|
size: o = "lg",
|
|
530
525
|
loading: a = !1,
|
|
531
|
-
...
|
|
532
|
-
},
|
|
533
|
-
const { setTimeout:
|
|
534
|
-
m ?
|
|
535
|
-
}, [
|
|
536
|
-
return /* @__PURE__ */
|
|
526
|
+
...l
|
|
527
|
+
}, d) => {
|
|
528
|
+
const { setTimeout: i, clearCurrentTimeout: s } = Nt(500), c = P((m) => {
|
|
529
|
+
m ? i(() => r(m)) : (s(), r(m));
|
|
530
|
+
}, [s, r, i]);
|
|
531
|
+
return /* @__PURE__ */ p("div", { className: w("tw:group tw:relative tw:focus-within:z-10", e), children: [
|
|
537
532
|
/* @__PURE__ */ n(
|
|
538
533
|
v,
|
|
539
534
|
{
|
|
540
|
-
icon: a ?
|
|
535
|
+
icon: a ? nt : ut,
|
|
541
536
|
spin: a,
|
|
542
537
|
className: w(
|
|
543
538
|
"tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:transition-colors",
|
|
@@ -550,83 +545,83 @@ const E = S(void 0), L = S({ responsive: !0, size: "md" }), Lt = ({ children: t,
|
|
|
550
545
|
}
|
|
551
546
|
),
|
|
552
547
|
/* @__PURE__ */ n(
|
|
553
|
-
|
|
548
|
+
J,
|
|
554
549
|
{
|
|
555
|
-
ref:
|
|
550
|
+
ref: d,
|
|
556
551
|
type: "search",
|
|
557
552
|
className: w(
|
|
558
553
|
{
|
|
559
554
|
"tw:pl-9": o !== "sm",
|
|
560
555
|
"tw:pl-7": o === "sm"
|
|
561
556
|
},
|
|
562
|
-
|
|
557
|
+
t
|
|
563
558
|
),
|
|
564
559
|
placeholder: "Search...",
|
|
565
560
|
onChange: (m) => c(m.target.value),
|
|
566
561
|
size: o,
|
|
567
|
-
...
|
|
562
|
+
...l
|
|
568
563
|
}
|
|
569
564
|
)
|
|
570
565
|
] });
|
|
571
566
|
});
|
|
572
|
-
function
|
|
573
|
-
searchResults:
|
|
574
|
-
onSearch:
|
|
575
|
-
onSelectSearchResult:
|
|
567
|
+
function Fe({
|
|
568
|
+
searchResults: r,
|
|
569
|
+
onSearch: e,
|
|
570
|
+
onSelectSearchResult: t,
|
|
576
571
|
renderSearchResult: o,
|
|
577
572
|
size: a = "md",
|
|
578
573
|
// SearchInput defaults its size to 'lg'. Change it to 'md'
|
|
579
|
-
listboxSpan:
|
|
580
|
-
onFocus:
|
|
581
|
-
...
|
|
574
|
+
listboxSpan: l = "full",
|
|
575
|
+
onFocus: d,
|
|
576
|
+
...i
|
|
582
577
|
}) {
|
|
583
|
-
const
|
|
584
|
-
() =>
|
|
585
|
-
[m,
|
|
586
|
-
), x =
|
|
587
|
-
|
|
588
|
-
}, [
|
|
589
|
-
return /* @__PURE__ */
|
|
578
|
+
const s = T(null), c = $(), [m, g] = R(), u = W(
|
|
579
|
+
() => r ? m ?? [...r.keys()][0] : void 0,
|
|
580
|
+
[m, r]
|
|
581
|
+
), x = P((b) => {
|
|
582
|
+
t(b), e(""), s.current.value = "";
|
|
583
|
+
}, [e, t]);
|
|
584
|
+
return /* @__PURE__ */ p(
|
|
590
585
|
"div",
|
|
591
586
|
{
|
|
592
587
|
className: "tw:relative",
|
|
593
588
|
onBlur: (b) => {
|
|
594
|
-
b.currentTarget.contains(b.relatedTarget) ||
|
|
589
|
+
b.currentTarget.contains(b.relatedTarget) || e("");
|
|
595
590
|
},
|
|
596
591
|
children: [
|
|
597
592
|
/* @__PURE__ */ n(
|
|
598
|
-
|
|
593
|
+
Yt,
|
|
599
594
|
{
|
|
600
|
-
onChange:
|
|
595
|
+
onChange: e,
|
|
601
596
|
size: a,
|
|
602
|
-
ref:
|
|
597
|
+
ref: s,
|
|
603
598
|
role: "combobox",
|
|
604
599
|
"aria-autocomplete": "list",
|
|
605
|
-
"aria-expanded": !!
|
|
600
|
+
"aria-expanded": !!r,
|
|
606
601
|
"aria-controls": c,
|
|
607
|
-
"aria-activedescendant":
|
|
602
|
+
"aria-activedescendant": u ? `${c}_${u}` : void 0,
|
|
608
603
|
autoComplete: "off",
|
|
609
604
|
autoCorrect: "off",
|
|
610
605
|
onFocus: (b) => {
|
|
611
|
-
|
|
606
|
+
d == null || d(b), e(b.target.value);
|
|
612
607
|
},
|
|
613
|
-
...
|
|
608
|
+
...i
|
|
614
609
|
}
|
|
615
610
|
),
|
|
616
|
-
|
|
617
|
-
|
|
611
|
+
r && /* @__PURE__ */ n(
|
|
612
|
+
Ht,
|
|
618
613
|
{
|
|
619
614
|
id: c,
|
|
620
|
-
items:
|
|
621
|
-
anchor:
|
|
615
|
+
items: r,
|
|
616
|
+
anchor: s,
|
|
622
617
|
onSelectItem: x,
|
|
623
|
-
onActiveItemChange:
|
|
618
|
+
onActiveItemChange: g,
|
|
624
619
|
renderItem: o,
|
|
625
620
|
className: w(
|
|
626
621
|
"tw:absolute tw:top-full tw:mt-1 tw:z-10",
|
|
627
622
|
{
|
|
628
|
-
"tw:min-w-60 tw:max-w-full":
|
|
629
|
-
"tw:w-full":
|
|
623
|
+
"tw:min-w-60 tw:max-w-full": l === "auto",
|
|
624
|
+
"tw:w-full": l === "full"
|
|
630
625
|
}
|
|
631
626
|
),
|
|
632
627
|
"aria-label": "Matching items",
|
|
@@ -637,20 +632,196 @@ function me({
|
|
|
637
632
|
}
|
|
638
633
|
);
|
|
639
634
|
}
|
|
640
|
-
const
|
|
641
|
-
|
|
635
|
+
const Ee = y(({ className: r, ...e }, t) => /* @__PURE__ */ n(
|
|
636
|
+
lt,
|
|
642
637
|
{
|
|
643
|
-
ref:
|
|
644
|
-
className:
|
|
638
|
+
ref: t,
|
|
639
|
+
className: f(
|
|
645
640
|
"tw:rounded-full tw:w-8 tw:h-4",
|
|
646
641
|
"tw:bg-(image:--circle-grey-dark) tw:dark:bg-(image:--circle-grey-light) tw:checked:bg-(image:--circle-white)",
|
|
647
642
|
"tw:focus-visible:not-checked:bg-(image:--circle-light-blue)",
|
|
648
643
|
"tw:checked:bg-right tw:transition-[background-position]",
|
|
649
|
-
|
|
644
|
+
r
|
|
650
645
|
),
|
|
651
|
-
...
|
|
646
|
+
...e
|
|
652
647
|
}
|
|
653
|
-
)),
|
|
648
|
+
)), Zt = ({ className: r, selected: e, disabled: t, ...o }) => {
|
|
649
|
+
const a = "to" in o;
|
|
650
|
+
return (
|
|
651
|
+
// @ts-expect-error The Tag is inferred from provided props, so they should always match
|
|
652
|
+
/* @__PURE__ */ n(
|
|
653
|
+
a ? G : "button",
|
|
654
|
+
{
|
|
655
|
+
role: "menuitem",
|
|
656
|
+
"data-selected": e,
|
|
657
|
+
className: f(
|
|
658
|
+
"tw:flex tw:items-center tw:w-full tw:px-3 tw:py-1.5 tw:focus-ring",
|
|
659
|
+
// Overwrite link styles in case a Link is being used
|
|
660
|
+
"tw:no-underline tw:text-inherit",
|
|
661
|
+
{
|
|
662
|
+
"tw:pointer-events-none tw:opacity-50": t,
|
|
663
|
+
"tw:bg-lm-secondary tw:dark:bg-dm-secondary": e && !t,
|
|
664
|
+
"tw:highlight:bg-lm-secondary tw:dark:highlight:bg-dm-secondary tw:highlight:z-1 tw:relative": !e && !t
|
|
665
|
+
},
|
|
666
|
+
r
|
|
667
|
+
),
|
|
668
|
+
tabIndex: -1,
|
|
669
|
+
disabled: a ? void 0 : t,
|
|
670
|
+
"aria-disabled": a ? t : void 0,
|
|
671
|
+
...o
|
|
672
|
+
}
|
|
673
|
+
)
|
|
674
|
+
);
|
|
675
|
+
}, Vt = () => (
|
|
676
|
+
// TODO Use an <hr /> tag once tailwind styles are not set with !important
|
|
677
|
+
/* @__PURE__ */ n("div", { role: "separator", "aria-hidden": !0, className: "tw:border-b tw:border-lm-border tw:dark:border-dm-border tw:my-2" })
|
|
678
|
+
), te = ({ children: r }) => /* @__PURE__ */ n(
|
|
679
|
+
"div",
|
|
680
|
+
{
|
|
681
|
+
role: "heading",
|
|
682
|
+
"aria-level": 6,
|
|
683
|
+
"aria-hidden": !0,
|
|
684
|
+
className: f(
|
|
685
|
+
"tw:flex tw:items-center tw:w-full tw:px-3 tw:py-1.5",
|
|
686
|
+
"tw:text-gray-500 tw:text-sm tw:font-semibold"
|
|
687
|
+
),
|
|
688
|
+
onClick: (e) => e.stopPropagation(),
|
|
689
|
+
children: r
|
|
690
|
+
}
|
|
691
|
+
), ee = ({ className: r, onClick: e, ...t }) => (
|
|
692
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
693
|
+
/* @__PURE__ */ n(
|
|
694
|
+
"div",
|
|
695
|
+
{
|
|
696
|
+
className: f("tw:px-3 tw:py-1.5", r),
|
|
697
|
+
...t,
|
|
698
|
+
onClick: (o) => {
|
|
699
|
+
o.stopPropagation(), e == null || e(o);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
)
|
|
703
|
+
), re = ({
|
|
704
|
+
children: r,
|
|
705
|
+
className: e,
|
|
706
|
+
focusableElementsSelector: t = '[role="menuitem"]:not([disabled]):not([aria-disabled])',
|
|
707
|
+
focusFirstItem: o = !1,
|
|
708
|
+
...a
|
|
709
|
+
}) => {
|
|
710
|
+
const l = T(null);
|
|
711
|
+
return Ct(l, { elementsSelector: t, focusFirstItem: o }), /* @__PURE__ */ n(C, { ref: l, role: "menu", className: f("tw:py-2 tw:whitespace-nowrap", e), ...a, children: r });
|
|
712
|
+
}, j = Object.assign(re, { Item: Zt, Separator: Vt, Title: te, Misc: ee }), ne = ({
|
|
713
|
+
children: r,
|
|
714
|
+
menuAlignment: e = "left",
|
|
715
|
+
buttonVariant: t = "button",
|
|
716
|
+
buttonContent: o,
|
|
717
|
+
buttonClassName: a,
|
|
718
|
+
buttonSize: l = "md",
|
|
719
|
+
buttonDisabled: d = !1,
|
|
720
|
+
containerClassName: i,
|
|
721
|
+
menuClassName: s,
|
|
722
|
+
caretless: c,
|
|
723
|
+
buttonLabel: m
|
|
724
|
+
}) => {
|
|
725
|
+
const [g, u] = R(!1), x = T(null), { refs: b, floatingStyles: h, context: D } = ot({
|
|
726
|
+
open: g,
|
|
727
|
+
onOpenChange: u,
|
|
728
|
+
placement: e === "right" ? "bottom-end" : "bottom-start",
|
|
729
|
+
middleware: [Pt(), Ot(3)],
|
|
730
|
+
// eslint-disable-next-line react-compiler/react-compiler
|
|
731
|
+
elements: { reference: x.current }
|
|
732
|
+
}), E = Dt(D), { getReferenceProps: K, getFloatingProps: k } = at([
|
|
733
|
+
E
|
|
734
|
+
]), S = $(), L = T(null);
|
|
735
|
+
return B(() => {
|
|
736
|
+
const N = L.current, Y = x.current;
|
|
737
|
+
if (!N || !Y)
|
|
738
|
+
return () => {
|
|
739
|
+
};
|
|
740
|
+
const Z = new AbortController();
|
|
741
|
+
return document.body.addEventListener("click", (wt) => {
|
|
742
|
+
wt.composedPath().includes(Y) || u(!1);
|
|
743
|
+
}, { signal: Z.signal }), () => Z.abort();
|
|
744
|
+
}, []), // eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
745
|
+
/* @__PURE__ */ p(
|
|
746
|
+
"div",
|
|
747
|
+
{
|
|
748
|
+
ref: L,
|
|
749
|
+
className: f("tw:relative tw:inline-block", i),
|
|
750
|
+
onKeyDown: (N) => {
|
|
751
|
+
N.key === "Escape" && u(!1);
|
|
752
|
+
},
|
|
753
|
+
onBlur: (N) => {
|
|
754
|
+
N.relatedTarget && !L.current.contains(N.relatedTarget) && u(!1);
|
|
755
|
+
},
|
|
756
|
+
children: [
|
|
757
|
+
/* @__PURE__ */ p(
|
|
758
|
+
"button",
|
|
759
|
+
{
|
|
760
|
+
ref: x,
|
|
761
|
+
...K(),
|
|
762
|
+
type: "button",
|
|
763
|
+
"aria-haspopup": !0,
|
|
764
|
+
"aria-expanded": g,
|
|
765
|
+
"aria-controls": S,
|
|
766
|
+
"aria-label": m,
|
|
767
|
+
disabled: d,
|
|
768
|
+
className: f(
|
|
769
|
+
"tw:flex tw:items-center tw:rounded-md tw:focus-ring",
|
|
770
|
+
{
|
|
771
|
+
"tw:justify-between": !c,
|
|
772
|
+
"tw:pointer-events-none tw:opacity-50": d,
|
|
773
|
+
// Button variant
|
|
774
|
+
"tw:border tw:border-lm-border tw:dark:border-dm-border": t === "button",
|
|
775
|
+
"tw:bg-lm-primary tw:dark:bg-dm-primary": t === "button",
|
|
776
|
+
// Use different bg color when inside a card
|
|
777
|
+
"tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input": t === "button",
|
|
778
|
+
// Link variant
|
|
779
|
+
"tw:text-lm-brand tw:dark:text-dm-brand": t === "link",
|
|
780
|
+
"tw:highlight:text-lm-brand-dark tw:dark:highlight:text-dm-brand-dark tw:highlight:underline": t === "link",
|
|
781
|
+
// Button sizes
|
|
782
|
+
"tw:px-1.5 tw:py-1 tw:text-sm tw:gap-x-1.5": l === "sm",
|
|
783
|
+
"tw:px-3 tw:py-1.5 tw:gap-x-2": l === "md",
|
|
784
|
+
"tw:px-4 tw:py-2 tw:text-lg tw:gap-x-2": l === "lg"
|
|
785
|
+
},
|
|
786
|
+
a
|
|
787
|
+
),
|
|
788
|
+
onKeyDown: (N) => {
|
|
789
|
+
N.key === "ArrowDown" && (N.preventDefault(), u(!0));
|
|
790
|
+
},
|
|
791
|
+
children: [
|
|
792
|
+
o,
|
|
793
|
+
!c && /* @__PURE__ */ n(v, { icon: ht, size: "xs" })
|
|
794
|
+
]
|
|
795
|
+
}
|
|
796
|
+
),
|
|
797
|
+
g && /* @__PURE__ */ n(
|
|
798
|
+
"div",
|
|
799
|
+
{
|
|
800
|
+
ref: b.setFloating,
|
|
801
|
+
style: h,
|
|
802
|
+
className: "tw:min-w-full tw:z-1000",
|
|
803
|
+
...k(),
|
|
804
|
+
children: /* @__PURE__ */ n(
|
|
805
|
+
j,
|
|
806
|
+
{
|
|
807
|
+
className: s,
|
|
808
|
+
id: S,
|
|
809
|
+
focusableElementsSelector: '[role="menuitem"]:not([disabled]):not([aria-disabled]),input:not([disabled]),select:not([disabled])',
|
|
810
|
+
focusFirstItem: !0,
|
|
811
|
+
children: r
|
|
812
|
+
}
|
|
813
|
+
)
|
|
814
|
+
}
|
|
815
|
+
)
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
);
|
|
819
|
+
}, I = Object.assign(ne, {
|
|
820
|
+
Item: j.Item,
|
|
821
|
+
Separator: j.Separator,
|
|
822
|
+
Title: j.Title,
|
|
823
|
+
Misc: j.Misc
|
|
824
|
+
}), oe = y(({ className: r, disabled: e, size: t = "md", type: o = "button", ...a }, l) => /* @__PURE__ */ n(
|
|
654
825
|
"button",
|
|
655
826
|
{
|
|
656
827
|
className: w(
|
|
@@ -658,25 +829,25 @@ const be = h(({ className: t, ...r }, e) => /* @__PURE__ */ n(
|
|
|
658
829
|
"tw:text-lm-brand tw:dark:text-dm-brand",
|
|
659
830
|
"tw:highlight:text-lm-brand-dark tw:dark:highlight:text-dm-brand-dark tw:highlight:underline",
|
|
660
831
|
{
|
|
661
|
-
"tw:px-1.5 tw:py-1 tw:text-sm":
|
|
662
|
-
"tw:px-3 tw:py-1.5":
|
|
663
|
-
"tw:px-4 tw:py-2 tw:text-lg":
|
|
664
|
-
"tw:pointer-events-none tw:opacity-65":
|
|
832
|
+
"tw:px-1.5 tw:py-1 tw:text-sm": t === "sm",
|
|
833
|
+
"tw:px-3 tw:py-1.5": t === "md",
|
|
834
|
+
"tw:px-4 tw:py-2 tw:text-lg": t === "lg",
|
|
835
|
+
"tw:pointer-events-none tw:opacity-65": e
|
|
665
836
|
},
|
|
666
|
-
|
|
837
|
+
r
|
|
667
838
|
),
|
|
668
|
-
disabled:
|
|
839
|
+
disabled: e,
|
|
669
840
|
type: o,
|
|
670
841
|
...a,
|
|
671
|
-
ref:
|
|
842
|
+
ref: l
|
|
672
843
|
}
|
|
673
|
-
)),
|
|
674
|
-
const o =
|
|
844
|
+
)), dt = q(null), ae = ({ className: r, to: e, ...t }) => {
|
|
845
|
+
const o = O(dt);
|
|
675
846
|
return /* @__PURE__ */ n(
|
|
676
|
-
|
|
847
|
+
mt,
|
|
677
848
|
{
|
|
678
849
|
role: "menuitem",
|
|
679
|
-
to:
|
|
850
|
+
to: e,
|
|
680
851
|
className: ({ isActive: a }) => w(
|
|
681
852
|
"tw:px-4 tw:pt-2 tw:pb-[calc(0.5rem-3px)] tw:border-b-3",
|
|
682
853
|
"tw:highlight:text-lm-brand tw:dark:highlight:text-dm-brand",
|
|
@@ -689,169 +860,189 @@ const be = h(({ className: t, ...r }, e) => /* @__PURE__ */ n(
|
|
|
689
860
|
"tw:border-b-transparent tw:text-gray-500": !a,
|
|
690
861
|
"tw:flex-grow": o == null ? void 0 : o.fill
|
|
691
862
|
},
|
|
692
|
-
|
|
863
|
+
r
|
|
693
864
|
),
|
|
694
|
-
...
|
|
865
|
+
...t
|
|
695
866
|
}
|
|
696
867
|
);
|
|
697
|
-
},
|
|
698
|
-
const
|
|
699
|
-
Math.max(
|
|
700
|
-
Math.min(
|
|
868
|
+
}, le = ({ children: r, className: e, fill: t }) => /* @__PURE__ */ n(dt.Provider, { value: { fill: t }, children: /* @__PURE__ */ n(C, { role: "menubar", className: w("tw:flex tw:overflow-hidden", e), children: r }) }), Se = Object.assign(le, { Pill: ae }), de = new Intl.NumberFormat("en-US"), ie = (r) => de.format(Number(r)), rt = 10, je = (r) => Math.ceil(r / rt) * rt, M = 2, U = "...", se = (r, e) => Array.from({ length: e - r }, (t, o) => r + o), ce = (r, e) => {
|
|
869
|
+
const t = se(
|
|
870
|
+
Math.max(M, r - M),
|
|
871
|
+
Math.min(e - 1, r + M) + 1
|
|
701
872
|
);
|
|
702
|
-
return
|
|
703
|
-
},
|
|
873
|
+
return r - M > M && t.unshift(U), r + M < e - 1 && t.push(U), t.unshift(1), t.push(e), t;
|
|
874
|
+
}, A = (r) => r === U, we = (r) => A(r) ? r : ie(r), me = (r, e) => A(r) ? `${r}_${e}` : `${r}`, it = [
|
|
704
875
|
"tw:border tw:border-r-0 tw:last:border-r tw:border-lm-border tw:dark:border-dm-border",
|
|
705
876
|
"tw:rounded-none tw:first:rounded-l tw:last:rounded-r"
|
|
706
|
-
],
|
|
707
|
-
|
|
877
|
+
], st = (r = !1) => w(
|
|
878
|
+
it,
|
|
708
879
|
"tw:px-3 py-2 tw:cursor-pointer tw:no-underline",
|
|
709
880
|
"tw:focus-ring tw:focus-visible:z-1",
|
|
710
|
-
!
|
|
881
|
+
!r && [
|
|
711
882
|
"tw:text-lm-brand tw:dark:text-dm-brand",
|
|
712
883
|
"tw:bg-lm-primary tw:dark:bg-dm-primary",
|
|
713
884
|
"tw:highlight:bg-lm-secondary tw:dark:highlight:bg-dm-secondary"
|
|
714
885
|
],
|
|
715
|
-
|
|
716
|
-
),
|
|
717
|
-
function
|
|
718
|
-
const
|
|
719
|
-
return
|
|
886
|
+
r && "tw:bg-lm-main tw:dark:bg-dm-main tw:text-white"
|
|
887
|
+
), z = ({ children: r }) => /* @__PURE__ */ n("span", { "aria-hidden": !0, className: w(it, "tw:px-3 py-2 tw:text-gray-400"), children: r }), ct = () => /* @__PURE__ */ n(z, { children: U });
|
|
888
|
+
function pe({ children: r, active: e, isEllipsis: t, href: o, ...a }) {
|
|
889
|
+
const l = W(() => st(e), [e]);
|
|
890
|
+
return t ? /* @__PURE__ */ n(ct, {}) : /* @__PURE__ */ n(G, { className: l, to: o, ...a, children: r });
|
|
720
891
|
}
|
|
721
|
-
function
|
|
722
|
-
const a =
|
|
723
|
-
return
|
|
892
|
+
function be({ children: r, active: e, isEllipsis: t, ...o }) {
|
|
893
|
+
const a = W(() => st(e), [e]);
|
|
894
|
+
return t ? /* @__PURE__ */ n(ct, {}) : /* @__PURE__ */ n("button", { type: "button", className: a, ...o, children: r });
|
|
724
895
|
}
|
|
725
|
-
const
|
|
726
|
-
const o = "urlForPage" in
|
|
727
|
-
(
|
|
728
|
-
[o,
|
|
896
|
+
const Ae = ({ currentPage: r, pagesCount: e, ...t }) => {
|
|
897
|
+
const o = "urlForPage" in t, a = o ? pe : be, l = P(
|
|
898
|
+
(d) => o ? { href: A(d) ? void 0 : t.urlForPage(d) } : { onClick: () => !A(d) && t.onPageChange(d) },
|
|
899
|
+
[o, t]
|
|
729
900
|
);
|
|
730
|
-
return
|
|
731
|
-
|
|
732
|
-
|
|
901
|
+
return e < 2 ? null : /* @__PURE__ */ p("div", { className: "tw:select-none tw:flex", "data-testid": "paginator", children: [
|
|
902
|
+
r === 1 ? /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(v, { size: "xs", icon: V }) }) : /* @__PURE__ */ n(a, { ...l(Math.max(1, r - 1)), "aria-label": "Previous", children: /* @__PURE__ */ n(v, { size: "xs", icon: V }) }),
|
|
903
|
+
ce(r, e).map((d, i) => /* @__PURE__ */ n(
|
|
733
904
|
a,
|
|
734
905
|
{
|
|
735
|
-
active:
|
|
736
|
-
isEllipsis:
|
|
737
|
-
...d
|
|
738
|
-
children:
|
|
906
|
+
active: d === r,
|
|
907
|
+
isEllipsis: A(d),
|
|
908
|
+
...l(d),
|
|
909
|
+
children: we(d)
|
|
739
910
|
},
|
|
740
|
-
|
|
911
|
+
me(d, i)
|
|
741
912
|
)),
|
|
742
|
-
|
|
913
|
+
r === e ? /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(v, { size: "xs", icon: tt }) }) : /* @__PURE__ */ n(a, { ...l(Math.min(e, r + 1)), "aria-label": "Next", children: /* @__PURE__ */ n(v, { size: "xs", icon: tt }) })
|
|
743
914
|
] });
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
915
|
+
}, ge = ({ buttonLabel: r = "Options", buttonSize: e = "md", ...t }) => /* @__PURE__ */ n(
|
|
916
|
+
I,
|
|
917
|
+
{
|
|
918
|
+
buttonContent: /* @__PURE__ */ n(
|
|
919
|
+
v,
|
|
920
|
+
{
|
|
921
|
+
icon: ft,
|
|
922
|
+
className: f({ "tw:px-1": e === "sm" })
|
|
923
|
+
}
|
|
924
|
+
),
|
|
925
|
+
caretless: !0,
|
|
926
|
+
buttonLabel: r,
|
|
927
|
+
buttonSize: e,
|
|
928
|
+
...t
|
|
929
|
+
}
|
|
930
|
+
), _e = Object.assign(ge, {
|
|
931
|
+
Item: I.Item,
|
|
932
|
+
Separator: I.Separator,
|
|
933
|
+
Title: I.Title,
|
|
934
|
+
Misc: I.Misc
|
|
935
|
+
}), ue = ({
|
|
936
|
+
open: r,
|
|
937
|
+
children: e,
|
|
938
|
+
className: t,
|
|
748
939
|
onClose: o,
|
|
749
940
|
...a
|
|
750
941
|
}) => {
|
|
751
|
-
const
|
|
752
|
-
return
|
|
942
|
+
const l = T(null);
|
|
943
|
+
return B(() => {
|
|
753
944
|
var c, m;
|
|
754
|
-
const
|
|
755
|
-
if (
|
|
756
|
-
const
|
|
757
|
-
|
|
945
|
+
const d = document.body, i = d.style.overflow, s = d.style.paddingRight;
|
|
946
|
+
if (r) {
|
|
947
|
+
const g = window.outerWidth - d.clientWidth, u = d.scrollHeight > d.clientHeight;
|
|
948
|
+
d.style.overflow = "hidden", u && (d.style.paddingRight = `${g}px`), (c = l.current) == null || c.showModal();
|
|
758
949
|
} else
|
|
759
|
-
(m =
|
|
950
|
+
(m = l.current) == null || m.close();
|
|
760
951
|
return () => {
|
|
761
|
-
|
|
952
|
+
d.style.overflow = i, d.style.paddingRight = s;
|
|
762
953
|
};
|
|
763
|
-
}, [
|
|
954
|
+
}, [r]), Ft(
|
|
764
955
|
/* @__PURE__ */ n(
|
|
765
956
|
"dialog",
|
|
766
957
|
{
|
|
767
|
-
ref:
|
|
768
|
-
className: w("tw:bg-transparent tw:backdrop:bg-black/50",
|
|
769
|
-
onCancel: (
|
|
770
|
-
|
|
958
|
+
ref: l,
|
|
959
|
+
className: w("tw:bg-transparent tw:backdrop:bg-black/50", t),
|
|
960
|
+
onCancel: (d) => {
|
|
961
|
+
d.preventDefault(), o();
|
|
771
962
|
},
|
|
772
963
|
...a,
|
|
773
|
-
children:
|
|
964
|
+
children: r && e
|
|
774
965
|
}
|
|
775
966
|
),
|
|
776
967
|
document.body
|
|
777
968
|
);
|
|
778
|
-
},
|
|
779
|
-
open:
|
|
780
|
-
onClose:
|
|
781
|
-
variant:
|
|
969
|
+
}, $e = ({
|
|
970
|
+
open: r,
|
|
971
|
+
onClose: e,
|
|
972
|
+
variant: t = "default",
|
|
782
973
|
title: o,
|
|
783
974
|
children: a,
|
|
784
|
-
className:
|
|
785
|
-
...
|
|
975
|
+
className: l,
|
|
976
|
+
...d
|
|
786
977
|
}) => {
|
|
787
978
|
const {
|
|
788
|
-
size:
|
|
789
|
-
confirmText:
|
|
979
|
+
size: i = "md",
|
|
980
|
+
confirmText: s = "Confirm",
|
|
790
981
|
cancelText: c = "Cancel",
|
|
791
982
|
confirmDisabled: m,
|
|
792
|
-
onConfirm:
|
|
793
|
-
onClosed:
|
|
983
|
+
onConfirm: g,
|
|
984
|
+
onClosed: u,
|
|
794
985
|
...x
|
|
795
|
-
} = "onConfirm" in
|
|
796
|
-
k.preventDefault(), k.stopPropagation(),
|
|
797
|
-
}, [
|
|
798
|
-
return
|
|
799
|
-
if (
|
|
800
|
-
|
|
986
|
+
} = "onConfirm" in d ? d : { ...d }, [b, h] = R(r), D = T(null), E = T("cancel"), K = P((k) => {
|
|
987
|
+
k.preventDefault(), k.stopPropagation(), E.current = "confirm", g == null || g();
|
|
988
|
+
}, [g]);
|
|
989
|
+
return B(() => {
|
|
990
|
+
if (r) {
|
|
991
|
+
E.current = "cancel", h(!0);
|
|
801
992
|
return;
|
|
802
993
|
}
|
|
803
|
-
const k =
|
|
994
|
+
const k = D.current;
|
|
804
995
|
if (k) {
|
|
805
|
-
delete
|
|
806
|
-
let
|
|
807
|
-
const
|
|
808
|
-
|
|
996
|
+
delete D.current.dataset.open;
|
|
997
|
+
let S = !1;
|
|
998
|
+
const L = (N) => {
|
|
999
|
+
S || N.target !== k || (S = !0, h(!1), u == null || u(E.current));
|
|
809
1000
|
};
|
|
810
|
-
return k.addEventListener("transitionend",
|
|
811
|
-
k.removeEventListener("transitionend",
|
|
1001
|
+
return k.addEventListener("transitionend", L), () => {
|
|
1002
|
+
k.removeEventListener("transitionend", L);
|
|
812
1003
|
};
|
|
813
1004
|
}
|
|
814
|
-
}, [
|
|
815
|
-
const k =
|
|
1005
|
+
}, [u, r]), B(() => {
|
|
1006
|
+
const k = D.current;
|
|
816
1007
|
b && k && (k.dataset.open = "");
|
|
817
1008
|
}, [b]), /* @__PURE__ */ n(
|
|
818
|
-
|
|
1009
|
+
ue,
|
|
819
1010
|
{
|
|
820
1011
|
open: b,
|
|
821
|
-
onClose:
|
|
1012
|
+
onClose: e,
|
|
822
1013
|
className: w(
|
|
823
1014
|
{
|
|
824
1015
|
"tw:flex tw:w-screen tw:h-screen tw:max-w-screen tw:max-h-screen": b,
|
|
825
|
-
"tw:overflow-hidden":
|
|
1016
|
+
"tw:overflow-hidden": t === "cover"
|
|
826
1017
|
},
|
|
827
|
-
|
|
1018
|
+
l
|
|
828
1019
|
),
|
|
829
1020
|
...x,
|
|
830
1021
|
children: /* @__PURE__ */ n(
|
|
831
1022
|
"form",
|
|
832
1023
|
{
|
|
833
1024
|
"data-testid": "transition-container",
|
|
834
|
-
ref:
|
|
1025
|
+
ref: D,
|
|
835
1026
|
className: w(
|
|
836
1027
|
"tw:w-full tw:m-auto tw:p-4 tw:sm:p-6",
|
|
837
1028
|
// CSS transitions are based on the presence of the `data-open` attribute
|
|
838
1029
|
"tw:-translate-y-4 tw:data-open:translate-y-0 tw:opacity-0 tw:data-open:opacity-100",
|
|
839
1030
|
"tw:transition-[opacity_,_translate] tw:duration-300",
|
|
840
1031
|
// Handle modal dimensions for different variants and sizes
|
|
841
|
-
|
|
842
|
-
"tw:sm:w-sm":
|
|
843
|
-
"tw:md:w-lg":
|
|
844
|
-
"tw:md:w-4xl":
|
|
845
|
-
"tw:md:w-6xl":
|
|
1032
|
+
t !== "cover" && {
|
|
1033
|
+
"tw:sm:w-sm": i === "sm",
|
|
1034
|
+
"tw:md:w-lg": i === "md",
|
|
1035
|
+
"tw:md:w-4xl": i === "lg",
|
|
1036
|
+
"tw:md:w-6xl": i === "xl"
|
|
846
1037
|
},
|
|
847
|
-
{ "tw:h-full":
|
|
1038
|
+
{ "tw:h-full": t === "cover" }
|
|
848
1039
|
),
|
|
849
|
-
onSubmit:
|
|
850
|
-
children: /* @__PURE__ */ n(
|
|
1040
|
+
onSubmit: K,
|
|
1041
|
+
children: /* @__PURE__ */ n(C, { className: w(
|
|
851
1042
|
"tw:w-full",
|
|
852
|
-
{ "tw:h-full tw:relative tw:overflow-auto":
|
|
853
|
-
), children:
|
|
854
|
-
/* @__PURE__ */
|
|
1043
|
+
{ "tw:h-full tw:relative tw:overflow-auto": t === "cover" }
|
|
1044
|
+
), children: t === "cover" ? /* @__PURE__ */ p(_, { children: [
|
|
1045
|
+
/* @__PURE__ */ p(
|
|
855
1046
|
"div",
|
|
856
1047
|
{
|
|
857
1048
|
className: w(
|
|
@@ -862,22 +1053,22 @@ const ue = ({ currentPage: t, pagesCount: r, ...e }) => {
|
|
|
862
1053
|
),
|
|
863
1054
|
children: [
|
|
864
1055
|
/* @__PURE__ */ n("h5", { children: o }),
|
|
865
|
-
/* @__PURE__ */ n(
|
|
1056
|
+
/* @__PURE__ */ n(et, { onClick: e, label: "Close dialog" })
|
|
866
1057
|
]
|
|
867
1058
|
}
|
|
868
1059
|
),
|
|
869
1060
|
a
|
|
870
|
-
] }) : /* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */
|
|
1061
|
+
] }) : /* @__PURE__ */ p(_, { children: [
|
|
1062
|
+
/* @__PURE__ */ p(C.Header, { className: w(
|
|
872
1063
|
"tw:sticky tw:top-0",
|
|
873
1064
|
"tw:flex tw:items-center tw:justify-between tw:gap-x-2"
|
|
874
1065
|
), children: [
|
|
875
|
-
/* @__PURE__ */ n("h5", { className: w({ "tw:text-danger":
|
|
876
|
-
/* @__PURE__ */ n(
|
|
1066
|
+
/* @__PURE__ */ n("h5", { className: w({ "tw:text-danger": t === "danger" }), children: o }),
|
|
1067
|
+
/* @__PURE__ */ n(et, { onClick: e, label: "Close dialog" })
|
|
877
1068
|
] }),
|
|
878
|
-
/* @__PURE__ */ n(
|
|
879
|
-
|
|
880
|
-
|
|
1069
|
+
/* @__PURE__ */ n(C.Body, { children: a }),
|
|
1070
|
+
g && /* @__PURE__ */ p(
|
|
1071
|
+
C.Footer,
|
|
881
1072
|
{
|
|
882
1073
|
"data-testid": "footer",
|
|
883
1074
|
className: w(
|
|
@@ -885,15 +1076,15 @@ const ue = ({ currentPage: t, pagesCount: r, ...e }) => {
|
|
|
885
1076
|
"tw:[&]:px-3 tw:sticky tw:bottom-0"
|
|
886
1077
|
),
|
|
887
1078
|
children: [
|
|
888
|
-
/* @__PURE__ */ n(
|
|
1079
|
+
/* @__PURE__ */ n(oe, { onClick: e, children: c }),
|
|
889
1080
|
/* @__PURE__ */ n(
|
|
890
|
-
|
|
1081
|
+
Jt,
|
|
891
1082
|
{
|
|
892
1083
|
solid: !0,
|
|
893
|
-
variant:
|
|
1084
|
+
variant: t === "danger" ? "danger" : "primary",
|
|
894
1085
|
disabled: m,
|
|
895
1086
|
type: "submit",
|
|
896
|
-
children:
|
|
1087
|
+
children: s
|
|
897
1088
|
}
|
|
898
1089
|
)
|
|
899
1090
|
]
|
|
@@ -904,109 +1095,109 @@ const ue = ({ currentPage: t, pagesCount: r, ...e }) => {
|
|
|
904
1095
|
)
|
|
905
1096
|
}
|
|
906
1097
|
);
|
|
907
|
-
},
|
|
1098
|
+
}, He = ({ className: r, children: e, loading: t = !1, variant: o = "default" }) => /* @__PURE__ */ n($t, { className: f({ "tw:[&]:border-danger": o === "error" }, r), children: /* @__PURE__ */ p("h3", { className: f("tw:text-center", {
|
|
908
1099
|
"tw:text-gray-500 tw:dark:text-gray-400": o === "default",
|
|
909
1100
|
"tw:text-danger": o === "error"
|
|
910
1101
|
}), children: [
|
|
911
|
-
|
|
912
|
-
/* @__PURE__ */ n(v, { icon:
|
|
913
|
-
/* @__PURE__ */ n("span", { className: "tw:ml-2", children:
|
|
1102
|
+
t && /* @__PURE__ */ p(_, { children: [
|
|
1103
|
+
/* @__PURE__ */ n(v, { icon: nt, spin: !0 }),
|
|
1104
|
+
/* @__PURE__ */ n("span", { className: "tw:ml-2", children: e ?? "Loading..." })
|
|
914
1105
|
] }),
|
|
915
|
-
!
|
|
916
|
-
] }) }),
|
|
1106
|
+
!t && e
|
|
1107
|
+
] }) }), Ue = ({ variant: r, className: e, size: t = "md", children: o }) => /* @__PURE__ */ n(
|
|
917
1108
|
"div",
|
|
918
1109
|
{
|
|
919
|
-
className:
|
|
1110
|
+
className: f(
|
|
920
1111
|
"tw:rounded-md tw:text-center",
|
|
921
1112
|
{
|
|
922
|
-
"tw:p-2":
|
|
923
|
-
"tw:p-4":
|
|
924
|
-
"tw:p-6":
|
|
925
|
-
"tw:[&]:text-white":
|
|
926
|
-
"tw:bg-lm-brand tw:dark:bg-dm-brand":
|
|
927
|
-
"tw:bg-danger":
|
|
928
|
-
"tw:bg-warning tw:text-black":
|
|
1113
|
+
"tw:p-2": t === "sm",
|
|
1114
|
+
"tw:p-4": t === "md",
|
|
1115
|
+
"tw:p-6": t === "lg",
|
|
1116
|
+
"tw:[&]:text-white": r !== "warning",
|
|
1117
|
+
"tw:bg-lm-brand tw:dark:bg-dm-brand": r === "success",
|
|
1118
|
+
"tw:bg-danger": r === "error",
|
|
1119
|
+
"tw:bg-warning tw:text-black": r === "warning"
|
|
929
1120
|
},
|
|
930
|
-
|
|
1121
|
+
e
|
|
931
1122
|
),
|
|
932
1123
|
children: o
|
|
933
1124
|
}
|
|
934
|
-
),
|
|
935
|
-
const
|
|
936
|
-
const
|
|
937
|
-
return
|
|
938
|
-
})(), [o, a] = R(!1), { refs:
|
|
939
|
-
placement:
|
|
1125
|
+
), We = ({ placement: r = "auto" } = {}) => {
|
|
1126
|
+
const e = T(null), t = (() => {
|
|
1127
|
+
const h = [];
|
|
1128
|
+
return r === "auto" && h.push(Lt()), h.push(Mt({ element: e })), h;
|
|
1129
|
+
})(), [o, a] = R(!1), { refs: l, floatingStyles: d, context: i, middlewareData: s } = ot({
|
|
1130
|
+
placement: r === "auto" ? void 0 : r,
|
|
940
1131
|
open: o,
|
|
941
1132
|
onOpenChange: a,
|
|
942
|
-
middleware:
|
|
943
|
-
}), c =
|
|
1133
|
+
middleware: t
|
|
1134
|
+
}), c = Bt(i, {
|
|
944
1135
|
delay: { open: 300 },
|
|
945
1136
|
move: !0
|
|
946
|
-
}), { getFloatingProps: m, getReferenceProps:
|
|
947
|
-
const
|
|
1137
|
+
}), { getFloatingProps: m, getReferenceProps: g } = at([c]), { isMounted: u, styles: x } = Rt(i, { duration: 200 }), b = W(() => {
|
|
1138
|
+
const h = i.placement.split("-")[0];
|
|
948
1139
|
return {
|
|
949
1140
|
top: "bottom",
|
|
950
1141
|
right: "left",
|
|
951
1142
|
bottom: "top",
|
|
952
1143
|
left: "right"
|
|
953
|
-
}[
|
|
954
|
-
}, [
|
|
1144
|
+
}[h] ?? "";
|
|
1145
|
+
}, [i.placement]);
|
|
955
1146
|
return {
|
|
956
|
-
anchor: { ...
|
|
1147
|
+
anchor: { ...g(), ref: l.setReference },
|
|
957
1148
|
tooltip: {
|
|
958
1149
|
...m(),
|
|
959
|
-
refSetter:
|
|
960
|
-
isMounted:
|
|
961
|
-
styles: { ...
|
|
962
|
-
arrowPos:
|
|
963
|
-
arrowRef:
|
|
1150
|
+
refSetter: l.setFloating,
|
|
1151
|
+
isMounted: u,
|
|
1152
|
+
styles: { ...d, ...x },
|
|
1153
|
+
arrowPos: s.arrow,
|
|
1154
|
+
arrowRef: e,
|
|
964
1155
|
arrowSide: b
|
|
965
1156
|
}
|
|
966
1157
|
};
|
|
967
|
-
},
|
|
968
|
-
var
|
|
969
|
-
return
|
|
1158
|
+
}, Ke = ({ children: r, isMounted: e, styles: t, refSetter: o, arrowRef: a, arrowPos: l, arrowSide: d, ...i }) => {
|
|
1159
|
+
var s;
|
|
1160
|
+
return e && /* @__PURE__ */ n(
|
|
970
1161
|
"div",
|
|
971
1162
|
{
|
|
972
1163
|
role: "tooltip",
|
|
973
1164
|
"aria-live": "polite",
|
|
974
|
-
className:
|
|
1165
|
+
className: f(
|
|
975
1166
|
"tw:z-1000 tw:max-w-64",
|
|
976
1167
|
// Add space between anchor and tooltip via padding, so that if the tooltip is inside the anchor, you can hover it
|
|
977
1168
|
// and it's never closed
|
|
978
1169
|
{
|
|
979
|
-
"tw:pt-2.5":
|
|
980
|
-
"tw:pb-2.5":
|
|
981
|
-
"tw:pr-2.5":
|
|
982
|
-
"tw:pl-2.5":
|
|
1170
|
+
"tw:pt-2.5": d === "top",
|
|
1171
|
+
"tw:pb-2.5": d === "bottom",
|
|
1172
|
+
"tw:pr-2.5": d === "right",
|
|
1173
|
+
"tw:pl-2.5": d === "left"
|
|
983
1174
|
}
|
|
984
1175
|
),
|
|
985
1176
|
ref: o,
|
|
986
|
-
style:
|
|
987
|
-
...
|
|
988
|
-
children: /* @__PURE__ */
|
|
1177
|
+
style: t,
|
|
1178
|
+
...i,
|
|
1179
|
+
children: /* @__PURE__ */ p("div", { className: "tw:relative tw:px-1.5 tw:py-1 tw:rounded tw:bg-black/90 tw:text-white tw:text-center", children: [
|
|
989
1180
|
/* @__PURE__ */ n("span", { className: "tw:sr-only", children: "Tooltip: " }),
|
|
990
|
-
|
|
1181
|
+
r,
|
|
991
1182
|
/* @__PURE__ */ n(
|
|
992
1183
|
"div",
|
|
993
1184
|
{
|
|
994
1185
|
ref: a,
|
|
995
|
-
className:
|
|
1186
|
+
className: f(
|
|
996
1187
|
"tw:absolute",
|
|
997
1188
|
// Render as a triangle
|
|
998
1189
|
"tw:border-l-6 tw:border-r-6 tw:border-b-6 tw:border-l-transparent tw:border-r-transparent tw:border-b-black/90",
|
|
999
1190
|
// Rotate triangle so that it points to the correct direction
|
|
1000
1191
|
{
|
|
1001
|
-
"tw:rotate-180":
|
|
1002
|
-
"tw:rotate-90 tw:mr-[-3px]":
|
|
1003
|
-
"tw:rotate-270 tw:ml-[-3px]":
|
|
1192
|
+
"tw:rotate-180": d === "bottom",
|
|
1193
|
+
"tw:rotate-90 tw:mr-[-3px]": d === "right",
|
|
1194
|
+
"tw:rotate-270 tw:ml-[-3px]": d === "left"
|
|
1004
1195
|
}
|
|
1005
1196
|
),
|
|
1006
1197
|
style: {
|
|
1007
|
-
left:
|
|
1008
|
-
top:
|
|
1009
|
-
[
|
|
1198
|
+
left: l == null ? void 0 : l.x,
|
|
1199
|
+
top: l == null ? void 0 : l.y,
|
|
1200
|
+
[d]: `${-(((s = a.current) == null ? void 0 : s.offsetWidth) ?? 0) / 2}px`
|
|
1010
1201
|
},
|
|
1011
1202
|
"data-testid": "arrow"
|
|
1012
1203
|
}
|
|
@@ -1014,66 +1205,111 @@ const ue = ({ currentPage: t, pagesCount: r, ...e }) => {
|
|
|
1014
1205
|
] })
|
|
1015
1206
|
}
|
|
1016
1207
|
);
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1208
|
+
};
|
|
1209
|
+
function ze({ items: r, order: e, onChange: t, prefixed: o = !0, buttonVariant: a = "button", ...l }) {
|
|
1210
|
+
const d = P((s) => {
|
|
1211
|
+
const c = Tt({ currentOrderDir: e.dir, currentField: e.field, newField: s });
|
|
1212
|
+
t(c);
|
|
1213
|
+
}, [t, e.dir, e.field]), i = a === "button";
|
|
1214
|
+
return /* @__PURE__ */ p(
|
|
1215
|
+
I,
|
|
1216
|
+
{
|
|
1217
|
+
buttonContent: /* @__PURE__ */ p(_, { children: [
|
|
1218
|
+
!i && "Order by",
|
|
1219
|
+
i && !e.field && /* @__PURE__ */ n("i", { children: "Order by..." }),
|
|
1220
|
+
i && e.field && /* @__PURE__ */ p(_, { children: [
|
|
1221
|
+
o && "Order by: ",
|
|
1222
|
+
r[e.field],
|
|
1223
|
+
" - ",
|
|
1224
|
+
e.dir ?? "DESC"
|
|
1225
|
+
] })
|
|
1226
|
+
] }),
|
|
1227
|
+
buttonVariant: a,
|
|
1228
|
+
...l,
|
|
1229
|
+
children: [
|
|
1230
|
+
Object.entries(r).map(([s, c]) => /* @__PURE__ */ p(
|
|
1231
|
+
I.Item,
|
|
1232
|
+
{
|
|
1233
|
+
selected: e.field === s,
|
|
1234
|
+
onClick: () => d(s),
|
|
1235
|
+
className: "tw:flex tw:items-center tw:justify-between",
|
|
1236
|
+
children: [
|
|
1237
|
+
c,
|
|
1238
|
+
e.field === s && /* @__PURE__ */ n(v, { icon: e.dir === "ASC" ? xt : yt })
|
|
1239
|
+
]
|
|
1240
|
+
},
|
|
1241
|
+
s
|
|
1242
|
+
)),
|
|
1243
|
+
/* @__PURE__ */ n(I.Separator, {}),
|
|
1244
|
+
/* @__PURE__ */ n(I.Item, { disabled: !e.field, onClick: () => t({}), children: /* @__PURE__ */ n("i", { children: "Clear selection" }) })
|
|
1245
|
+
]
|
|
1246
|
+
}
|
|
1247
|
+
);
|
|
1248
|
+
}
|
|
1249
|
+
const qe = ({ text: r, className: e, size: t = "lg", initialCopied: o = !1, navigator_: a = globalThis.navigator, ...l }) => {
|
|
1250
|
+
const [d, i] = It(o), s = P(
|
|
1251
|
+
() => a.clipboard.writeText(r).then(i),
|
|
1252
|
+
[a.clipboard, r, i]
|
|
1021
1253
|
);
|
|
1022
1254
|
return /* @__PURE__ */ n(
|
|
1023
1255
|
"button",
|
|
1024
1256
|
{
|
|
1025
1257
|
type: "button",
|
|
1026
|
-
className:
|
|
1258
|
+
className: f(
|
|
1027
1259
|
"tw:focus-ring tw:rounded-sm",
|
|
1028
1260
|
{
|
|
1029
|
-
"tw:text-md":
|
|
1030
|
-
"tw:text-lg":
|
|
1031
|
-
"tw:text-xl":
|
|
1261
|
+
"tw:text-md": t === "sm",
|
|
1262
|
+
"tw:text-lg": t === "md",
|
|
1263
|
+
"tw:text-xl": t === "lg"
|
|
1032
1264
|
},
|
|
1033
|
-
|
|
1265
|
+
e
|
|
1034
1266
|
),
|
|
1035
|
-
"aria-label": `Copy ${
|
|
1267
|
+
"aria-label": `Copy ${r} to clipboard`,
|
|
1036
1268
|
title: "Copy to clipboard",
|
|
1037
|
-
onClick:
|
|
1038
|
-
...
|
|
1039
|
-
children: /* @__PURE__ */ n(v, { icon:
|
|
1269
|
+
onClick: s,
|
|
1270
|
+
...l,
|
|
1271
|
+
children: /* @__PURE__ */ n(v, { icon: d ? kt : Et, fixedWidth: !0 })
|
|
1040
1272
|
}
|
|
1041
1273
|
);
|
|
1042
1274
|
};
|
|
1043
1275
|
export {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
ue as
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1276
|
+
Jt as Button,
|
|
1277
|
+
C as Card,
|
|
1278
|
+
$e as CardModal,
|
|
1279
|
+
Le as Checkbox,
|
|
1280
|
+
et as CloseButton,
|
|
1281
|
+
qe as CopyToClipboardButton,
|
|
1282
|
+
Oe as Details,
|
|
1283
|
+
I as Dropdown,
|
|
1284
|
+
U as ELLIPSIS,
|
|
1285
|
+
J as Input,
|
|
1286
|
+
Q as Label,
|
|
1287
|
+
Me as LabelledInput,
|
|
1288
|
+
Be as LabelledRevealablePasswordInput,
|
|
1289
|
+
Re as LabelledSelect,
|
|
1290
|
+
oe as LinkButton,
|
|
1291
|
+
Ht as Listbox,
|
|
1292
|
+
j as Menu,
|
|
1293
|
+
He as Message,
|
|
1294
|
+
ue as ModalDialog,
|
|
1295
|
+
Se as NavPills,
|
|
1296
|
+
ze as OrderingDropdown,
|
|
1297
|
+
Ae as Paginator,
|
|
1298
|
+
Ue as Result,
|
|
1299
|
+
Qt as RevealablePasswordInput,
|
|
1300
|
+
_e as RowDropdown,
|
|
1301
|
+
Fe as SearchCombobox,
|
|
1302
|
+
Yt as SearchInput,
|
|
1303
|
+
Xt as Select,
|
|
1304
|
+
$t as SimpleCard,
|
|
1305
|
+
De as Table,
|
|
1306
|
+
Ee as ToggleSwitch,
|
|
1307
|
+
Ke as Tooltip,
|
|
1308
|
+
ie as formatNumber,
|
|
1309
|
+
me as keyForPage,
|
|
1310
|
+
A as pageIsEllipsis,
|
|
1311
|
+
we as prettifyPageNumber,
|
|
1312
|
+
ce as progressivePagination,
|
|
1313
|
+
je as roundTen,
|
|
1314
|
+
We as useTooltip
|
|
1079
1315
|
};
|