@code-sherpas/pharos-react 0.14.3 → 0.16.0
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/components/Dialog.d.ts +100 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/Sheet.d.ts +112 -0
- package/dist/components/Sheet.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +397 -250
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -4
package/dist/index.js
CHANGED
|
@@ -6,34 +6,35 @@ import { Menu as l } from "@base-ui/react/menu";
|
|
|
6
6
|
import { Popover as u } from "@base-ui/react/popover";
|
|
7
7
|
import { Select as d } from "@base-ui/react/select";
|
|
8
8
|
import { Combobox as f } from "@base-ui/react/combobox";
|
|
9
|
+
import { Dialog as p } from "@base-ui/react/dialog";
|
|
9
10
|
//#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
10
|
-
function
|
|
11
|
+
function m(e) {
|
|
11
12
|
var t, n, r = "";
|
|
12
13
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
13
14
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
14
15
|
var i = e.length;
|
|
15
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
16
|
+
for (t = 0; t < i; t++) e[t] && (n = m(e[t])) && (r && (r += " "), r += n);
|
|
16
17
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
17
18
|
return r;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
20
|
+
function h() {
|
|
21
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = m(e)) && (r && (r += " "), r += t);
|
|
21
22
|
return r;
|
|
22
23
|
}
|
|
23
24
|
//#endregion
|
|
24
25
|
//#region node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
25
|
-
var
|
|
26
|
-
if (t?.variants == null) return
|
|
26
|
+
var g = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _ = h, v = (e, t) => (n) => {
|
|
27
|
+
if (t?.variants == null) return _(e, n?.class, n?.className);
|
|
27
28
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
28
29
|
let t = n?.[e], a = i?.[e];
|
|
29
30
|
if (t === null) return null;
|
|
30
|
-
let o =
|
|
31
|
+
let o = g(t) || g(a);
|
|
31
32
|
return r[e][o];
|
|
32
33
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
33
34
|
let [n, r] = t;
|
|
34
35
|
return r === void 0 || (e[n] = r), e;
|
|
35
36
|
}, {});
|
|
36
|
-
return
|
|
37
|
+
return _(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
37
38
|
let { class: n, className: r, ...a } = t;
|
|
38
39
|
return Object.entries(a).every((e) => {
|
|
39
40
|
let [t, n] = e;
|
|
@@ -53,10 +54,10 @@ var h = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, g = m, _ = (e
|
|
|
53
54
|
};
|
|
54
55
|
//#endregion
|
|
55
56
|
//#region src/lib/cn.ts
|
|
56
|
-
function
|
|
57
|
-
return
|
|
57
|
+
function y(...e) {
|
|
58
|
+
return h(e);
|
|
58
59
|
}
|
|
59
|
-
var
|
|
60
|
+
var b = {
|
|
60
61
|
button: "_button_iu0wg_18",
|
|
61
62
|
primary: "_primary_iu0wg_127",
|
|
62
63
|
secondary: "_secondary_iu0wg_141",
|
|
@@ -65,18 +66,18 @@ var y = {
|
|
|
65
66
|
sizeSm: "_sizeSm_iu0wg_197",
|
|
66
67
|
sizeMd: "_sizeMd_iu0wg_205",
|
|
67
68
|
sizeLg: "_sizeLg_iu0wg_213"
|
|
68
|
-
},
|
|
69
|
+
}, x = v(b.button, {
|
|
69
70
|
variants: {
|
|
70
71
|
intent: {
|
|
71
|
-
primary:
|
|
72
|
-
secondary:
|
|
73
|
-
ghost:
|
|
74
|
-
destructive:
|
|
72
|
+
primary: b.primary,
|
|
73
|
+
secondary: b.secondary,
|
|
74
|
+
ghost: b.ghost,
|
|
75
|
+
destructive: b.destructive
|
|
75
76
|
},
|
|
76
77
|
size: {
|
|
77
|
-
sm:
|
|
78
|
-
md:
|
|
79
|
-
lg:
|
|
78
|
+
sm: b.sizeSm,
|
|
79
|
+
md: b.sizeMd,
|
|
80
|
+
lg: b.sizeLg
|
|
80
81
|
}
|
|
81
82
|
},
|
|
82
83
|
defaultVariants: {
|
|
@@ -84,7 +85,7 @@ var y = {
|
|
|
84
85
|
size: "md"
|
|
85
86
|
}
|
|
86
87
|
});
|
|
87
|
-
function
|
|
88
|
+
function S({ render: n, className: r, intent: i, size: a, type: o = "button", ref: s, ...c }) {
|
|
88
89
|
let l = i ?? "primary", u = a ?? "md";
|
|
89
90
|
return e({
|
|
90
91
|
render: n ?? /* @__PURE__ */ t("button", {}),
|
|
@@ -94,7 +95,7 @@ function x({ render: n, className: r, intent: i, size: a, type: o = "button", re
|
|
|
94
95
|
type: o,
|
|
95
96
|
"data-pharos-intent": l,
|
|
96
97
|
"data-pharos-size": u,
|
|
97
|
-
className:
|
|
98
|
+
className: y(x({
|
|
98
99
|
intent: l,
|
|
99
100
|
size: u
|
|
100
101
|
}), r),
|
|
@@ -102,8 +103,8 @@ function x({ render: n, className: r, intent: i, size: a, type: o = "button", re
|
|
|
102
103
|
}
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
-
var
|
|
106
|
+
S.displayName = "Button";
|
|
107
|
+
var C = {
|
|
107
108
|
spinner: "_spinner_gg970_28",
|
|
108
109
|
icon: "_icon_gg970_46",
|
|
109
110
|
"pharos-spinner-spin": "_pharos-spinner-spin_gg970_1",
|
|
@@ -111,11 +112,11 @@ var S = {
|
|
|
111
112
|
sizeMd: "_sizeMd_gg970_74",
|
|
112
113
|
sizeLg: "_sizeLg_gg970_79",
|
|
113
114
|
srOnly: "_srOnly_gg970_87"
|
|
114
|
-
},
|
|
115
|
+
}, ee = v(C.spinner, {
|
|
115
116
|
variants: { size: {
|
|
116
|
-
sm:
|
|
117
|
-
md:
|
|
118
|
-
lg:
|
|
117
|
+
sm: C.sizeSm,
|
|
118
|
+
md: C.sizeMd,
|
|
119
|
+
lg: C.sizeLg
|
|
119
120
|
} },
|
|
120
121
|
defaultVariants: { size: "md" }
|
|
121
122
|
});
|
|
@@ -125,11 +126,11 @@ function w({ size: e, className: r, srLabel: i = "Loading…", children: a, ref:
|
|
|
125
126
|
ref: o,
|
|
126
127
|
role: "status",
|
|
127
128
|
"data-pharos-size": c,
|
|
128
|
-
className:
|
|
129
|
+
className: y(ee({ size: c }), r),
|
|
129
130
|
...s,
|
|
130
131
|
children: [
|
|
131
132
|
/* @__PURE__ */ t("svg", {
|
|
132
|
-
className:
|
|
133
|
+
className: C.icon,
|
|
133
134
|
viewBox: "0 0 24 24",
|
|
134
135
|
fill: "none",
|
|
135
136
|
stroke: "currentColor",
|
|
@@ -145,7 +146,7 @@ function w({ size: e, className: r, srLabel: i = "Loading…", children: a, ref:
|
|
|
145
146
|
})
|
|
146
147
|
}),
|
|
147
148
|
/* @__PURE__ */ t("span", {
|
|
148
|
-
className:
|
|
149
|
+
className: C.srOnly,
|
|
149
150
|
children: i
|
|
150
151
|
}),
|
|
151
152
|
a
|
|
@@ -162,7 +163,7 @@ var T = {
|
|
|
162
163
|
sizeSm: "_sizeSm_ltuh2_150",
|
|
163
164
|
sizeMd: "_sizeMd_ltuh2_160",
|
|
164
165
|
sizeLg: "_sizeLg_ltuh2_170"
|
|
165
|
-
}, E =
|
|
166
|
+
}, E = v(T.button, {
|
|
166
167
|
variants: {
|
|
167
168
|
intent: {
|
|
168
169
|
primary: T.primary,
|
|
@@ -181,7 +182,7 @@ var T = {
|
|
|
181
182
|
size: "md"
|
|
182
183
|
}
|
|
183
184
|
});
|
|
184
|
-
function
|
|
185
|
+
function te({ render: n, className: r, intent: i, size: a, isLoading: o, disabled: s, type: c = "button", children: l, ref: u, ...d }) {
|
|
185
186
|
let f = i ?? "ghost", p = a ?? "md";
|
|
186
187
|
return e({
|
|
187
188
|
render: n ?? /* @__PURE__ */ t("button", {}),
|
|
@@ -193,7 +194,7 @@ function D({ render: n, className: r, intent: i, size: a, isLoading: o, disabled
|
|
|
193
194
|
"data-pharos-size": p,
|
|
194
195
|
"aria-busy": o ? !0 : void 0,
|
|
195
196
|
disabled: !!s || !!o,
|
|
196
|
-
className:
|
|
197
|
+
className: y(E({
|
|
197
198
|
intent: f,
|
|
198
199
|
size: p
|
|
199
200
|
}), r),
|
|
@@ -202,8 +203,8 @@ function D({ render: n, className: r, intent: i, size: a, isLoading: o, disabled
|
|
|
202
203
|
}
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
|
-
|
|
206
|
-
var
|
|
206
|
+
te.displayName = "IconButton";
|
|
207
|
+
var D = {
|
|
207
208
|
badge: "_badge_zrawy_5",
|
|
208
209
|
default: "_default_zrawy_30",
|
|
209
210
|
secondary: "_secondary_zrawy_35",
|
|
@@ -212,15 +213,15 @@ var O = {
|
|
|
212
213
|
success: "_success_zrawy_55",
|
|
213
214
|
warning: "_warning_zrawy_60",
|
|
214
215
|
info: "_info_zrawy_65"
|
|
215
|
-
},
|
|
216
|
+
}, O = v(D.badge, {
|
|
216
217
|
variants: { variant: {
|
|
217
|
-
default:
|
|
218
|
-
secondary:
|
|
219
|
-
destructive:
|
|
220
|
-
outline:
|
|
221
|
-
success:
|
|
222
|
-
warning:
|
|
223
|
-
info:
|
|
218
|
+
default: D.default,
|
|
219
|
+
secondary: D.secondary,
|
|
220
|
+
destructive: D.destructive,
|
|
221
|
+
outline: D.outline,
|
|
222
|
+
success: D.success,
|
|
223
|
+
warning: D.warning,
|
|
224
|
+
info: D.info
|
|
224
225
|
} },
|
|
225
226
|
defaultVariants: { variant: "default" }
|
|
226
227
|
});
|
|
@@ -228,7 +229,7 @@ function k({ variant: e, className: n, ...r }) {
|
|
|
228
229
|
let i = e ?? "default";
|
|
229
230
|
return /* @__PURE__ */ t("span", {
|
|
230
231
|
"data-pharos-variant": i,
|
|
231
|
-
className:
|
|
232
|
+
className: y(O({ variant: i }), n),
|
|
232
233
|
...r
|
|
233
234
|
});
|
|
234
235
|
}
|
|
@@ -238,7 +239,7 @@ var A = {
|
|
|
238
239
|
sizeSm: "_sizeSm_11emo_97",
|
|
239
240
|
sizeMd: "_sizeMd_11emo_103",
|
|
240
241
|
sizeLg: "_sizeLg_11emo_109"
|
|
241
|
-
}, j =
|
|
242
|
+
}, j = v(A.input, {
|
|
242
243
|
variants: { size: {
|
|
243
244
|
sm: A.sizeSm,
|
|
244
245
|
md: A.sizeMd,
|
|
@@ -246,58 +247,58 @@ var A = {
|
|
|
246
247
|
} },
|
|
247
248
|
defaultVariants: { size: "md" }
|
|
248
249
|
});
|
|
249
|
-
function
|
|
250
|
+
function ne({ size: e, className: n, type: r = "text", ref: i, ...a }) {
|
|
250
251
|
let o = e ?? "md";
|
|
251
252
|
return /* @__PURE__ */ t("input", {
|
|
252
253
|
ref: i,
|
|
253
254
|
type: r,
|
|
254
255
|
"data-pharos-size": o,
|
|
255
|
-
className:
|
|
256
|
+
className: y(j({ size: o }), n),
|
|
256
257
|
...a
|
|
257
258
|
});
|
|
258
259
|
}
|
|
259
|
-
|
|
260
|
-
var
|
|
260
|
+
ne.displayName = "Input";
|
|
261
|
+
var M = {
|
|
261
262
|
textarea: "_textarea_1mec8_21",
|
|
262
263
|
sizeSm: "_sizeSm_1mec8_113",
|
|
263
264
|
sizeMd: "_sizeMd_1mec8_119",
|
|
264
265
|
sizeLg: "_sizeLg_1mec8_125"
|
|
265
|
-
},
|
|
266
|
+
}, re = v(M.textarea, {
|
|
266
267
|
variants: { size: {
|
|
267
|
-
sm:
|
|
268
|
-
md:
|
|
269
|
-
lg:
|
|
268
|
+
sm: M.sizeSm,
|
|
269
|
+
md: M.sizeMd,
|
|
270
|
+
lg: M.sizeLg
|
|
270
271
|
} },
|
|
271
272
|
defaultVariants: { size: "md" }
|
|
272
273
|
});
|
|
273
|
-
function
|
|
274
|
+
function ie({ size: e, className: n, ref: r, ...i }) {
|
|
274
275
|
let a = e ?? "md";
|
|
275
276
|
return /* @__PURE__ */ t("textarea", {
|
|
276
277
|
ref: r,
|
|
277
278
|
"data-pharos-size": a,
|
|
278
|
-
className:
|
|
279
|
+
className: y(re({ size: a }), n),
|
|
279
280
|
...i
|
|
280
281
|
});
|
|
281
282
|
}
|
|
282
|
-
|
|
283
|
-
var
|
|
283
|
+
ie.displayName = "Textarea";
|
|
284
|
+
var ae = {
|
|
284
285
|
separator: "_separator_da90p_13",
|
|
285
286
|
horizontal: "_horizontal_da90p_29",
|
|
286
287
|
vertical: "_vertical_da90p_34"
|
|
287
288
|
};
|
|
288
289
|
//#endregion
|
|
289
290
|
//#region src/components/Separator.tsx
|
|
290
|
-
function
|
|
291
|
+
function oe({ orientation: e = "horizontal", decorative: n = !0, className: r, ...i }) {
|
|
291
292
|
return /* @__PURE__ */ t("div", {
|
|
292
293
|
role: n ? "none" : "separator",
|
|
293
294
|
"aria-orientation": !n && e === "vertical" ? "vertical" : void 0,
|
|
294
295
|
"data-pharos-orientation": e,
|
|
295
|
-
className:
|
|
296
|
+
className: y(ae.separator, ae[e], r),
|
|
296
297
|
...i
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
|
-
|
|
300
|
-
var
|
|
300
|
+
oe.displayName = "Separator";
|
|
301
|
+
var N = {
|
|
301
302
|
card: "_card_yxgwa_10",
|
|
302
303
|
default: "_default_yxgwa_42",
|
|
303
304
|
elevated: "_elevated_yxgwa_46",
|
|
@@ -307,64 +308,64 @@ var P = {
|
|
|
307
308
|
description: "_description_yxgwa_77",
|
|
308
309
|
content: "_content_yxgwa_85",
|
|
309
310
|
footer: "_footer_yxgwa_95"
|
|
310
|
-
},
|
|
311
|
+
}, se = v(N.card, {
|
|
311
312
|
variants: { variant: {
|
|
312
|
-
default:
|
|
313
|
-
elevated:
|
|
314
|
-
outlined:
|
|
313
|
+
default: N.default,
|
|
314
|
+
elevated: N.elevated,
|
|
315
|
+
outlined: N.outlined
|
|
315
316
|
} },
|
|
316
317
|
defaultVariants: { variant: "default" }
|
|
317
318
|
});
|
|
318
|
-
function
|
|
319
|
+
function ce({ variant: e, className: n, ...r }) {
|
|
319
320
|
let i = e ?? "default";
|
|
320
321
|
return /* @__PURE__ */ t("div", {
|
|
321
322
|
"data-pharos-variant": i,
|
|
322
|
-
className:
|
|
323
|
+
className: y(se({ variant: i }), n),
|
|
323
324
|
...r
|
|
324
325
|
});
|
|
325
326
|
}
|
|
326
|
-
|
|
327
|
-
function
|
|
327
|
+
ce.displayName = "Card";
|
|
328
|
+
function P({ className: e, ...n }) {
|
|
328
329
|
return /* @__PURE__ */ t("div", {
|
|
329
330
|
"data-pharos-slot": "card-header",
|
|
330
|
-
className:
|
|
331
|
+
className: y(N.header, e),
|
|
331
332
|
...n
|
|
332
333
|
});
|
|
333
334
|
}
|
|
334
|
-
|
|
335
|
-
function
|
|
335
|
+
P.displayName = "CardHeader";
|
|
336
|
+
function F({ className: e, ...n }) {
|
|
336
337
|
return /* @__PURE__ */ t("div", {
|
|
337
338
|
"data-pharos-slot": "card-title",
|
|
338
|
-
className:
|
|
339
|
+
className: y(N.title, e),
|
|
339
340
|
...n
|
|
340
341
|
});
|
|
341
342
|
}
|
|
342
|
-
|
|
343
|
-
function
|
|
343
|
+
F.displayName = "CardTitle";
|
|
344
|
+
function I({ className: e, ...n }) {
|
|
344
345
|
return /* @__PURE__ */ t("p", {
|
|
345
346
|
"data-pharos-slot": "card-description",
|
|
346
|
-
className:
|
|
347
|
+
className: y(N.description, e),
|
|
347
348
|
...n
|
|
348
349
|
});
|
|
349
350
|
}
|
|
350
|
-
|
|
351
|
-
function
|
|
351
|
+
I.displayName = "CardDescription";
|
|
352
|
+
function L({ className: e, ...n }) {
|
|
352
353
|
return /* @__PURE__ */ t("div", {
|
|
353
354
|
"data-pharos-slot": "card-content",
|
|
354
|
-
className:
|
|
355
|
+
className: y(N.content, e),
|
|
355
356
|
...n
|
|
356
357
|
});
|
|
357
358
|
}
|
|
358
|
-
|
|
359
|
-
function
|
|
359
|
+
L.displayName = "CardContent";
|
|
360
|
+
function R({ className: e, ...n }) {
|
|
360
361
|
return /* @__PURE__ */ t("div", {
|
|
361
362
|
"data-pharos-slot": "card-footer",
|
|
362
|
-
className:
|
|
363
|
+
className: y(N.footer, e),
|
|
363
364
|
...n
|
|
364
365
|
});
|
|
365
366
|
}
|
|
366
|
-
|
|
367
|
-
var
|
|
367
|
+
R.displayName = "CardFooter";
|
|
368
|
+
var z = {
|
|
368
369
|
root: "_root_1xx27_21",
|
|
369
370
|
shapeCircle: "_shapeCircle_1xx27_63",
|
|
370
371
|
shapeSquare: "_shapeSquare_1xx27_67",
|
|
@@ -374,35 +375,35 @@ var V = {
|
|
|
374
375
|
image: "_image_1xx27_118",
|
|
375
376
|
fallback: "_fallback_1xx27_134",
|
|
376
377
|
group: "_group_1xx27_175"
|
|
377
|
-
},
|
|
378
|
-
sm:
|
|
379
|
-
md:
|
|
380
|
-
lg:
|
|
381
|
-
},
|
|
382
|
-
circle:
|
|
383
|
-
square:
|
|
378
|
+
}, le = r(null), B = r(null), V = r(null), ue = {
|
|
379
|
+
sm: z.sizeSm,
|
|
380
|
+
md: z.sizeMd,
|
|
381
|
+
lg: z.sizeLg
|
|
382
|
+
}, de = {
|
|
383
|
+
circle: z.shapeCircle,
|
|
384
|
+
square: z.shapeSquare
|
|
384
385
|
};
|
|
385
|
-
function
|
|
386
|
+
function fe(e) {
|
|
386
387
|
if (typeof e == "number") return {
|
|
387
388
|
width: e,
|
|
388
389
|
height: e,
|
|
389
390
|
fontSize: `${Math.round(e * .4)}px`
|
|
390
391
|
};
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
-
if (typeof e != "number") return
|
|
393
|
+
function pe(e) {
|
|
394
|
+
if (typeof e != "number") return ue[e];
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
-
let p = a(
|
|
396
|
+
function H({ size: n, shape: r, className: i, style: o, render: l, ref: u, children: d, ...f }) {
|
|
397
|
+
let p = a(V), m = n ?? p?.size ?? "md", h = r ?? p?.shape ?? "circle", [g, _] = c("idle"), v = s(() => ({
|
|
397
398
|
size: m,
|
|
398
399
|
shape: h
|
|
399
400
|
}), [m, h]), b = s(() => ({
|
|
400
401
|
status: g,
|
|
401
402
|
setStatus: _
|
|
402
|
-
}), [g]), x =
|
|
403
|
-
return /* @__PURE__ */ t(
|
|
404
|
-
value:
|
|
405
|
-
children: /* @__PURE__ */ t(
|
|
403
|
+
}), [g]), x = pe(m), S = fe(m), C = typeof m == "number" ? String(m) : m;
|
|
404
|
+
return /* @__PURE__ */ t(le.Provider, {
|
|
405
|
+
value: v,
|
|
406
|
+
children: /* @__PURE__ */ t(B.Provider, {
|
|
406
407
|
value: b,
|
|
407
408
|
children: e({
|
|
408
409
|
render: l ?? /* @__PURE__ */ t("span", {}),
|
|
@@ -412,7 +413,7 @@ function W({ size: n, shape: r, className: i, style: o, render: l, ref: u, child
|
|
|
412
413
|
"data-pharos-size": C,
|
|
413
414
|
"data-pharos-shape": h,
|
|
414
415
|
"data-pharos-loading": g,
|
|
415
|
-
className:
|
|
416
|
+
className: y(z.root, x, de[h], i),
|
|
416
417
|
style: S ? {
|
|
417
418
|
...S,
|
|
418
419
|
...o
|
|
@@ -424,9 +425,9 @@ function W({ size: n, shape: r, className: i, style: o, render: l, ref: u, child
|
|
|
424
425
|
})
|
|
425
426
|
});
|
|
426
427
|
}
|
|
427
|
-
|
|
428
|
-
function
|
|
429
|
-
let d = a(
|
|
428
|
+
H.displayName = "Avatar";
|
|
429
|
+
function U({ className: e, src: n, onLoad: r, onError: s, onLoadingStatusChange: c, ref: l, ...u }) {
|
|
430
|
+
let d = a(B), f = typeof n == "string" && n.length > 0;
|
|
430
431
|
o(() => {
|
|
431
432
|
d && (d.setStatus(f ? "loading" : "idle"), c?.(f ? "loading" : "idle"));
|
|
432
433
|
}, [n]);
|
|
@@ -449,13 +450,13 @@ function G({ className: e, src: n, onLoad: r, onError: s, onLoadingStatusChange:
|
|
|
449
450
|
onLoad: p,
|
|
450
451
|
onError: m,
|
|
451
452
|
"data-pharos-loading": d?.status,
|
|
452
|
-
className:
|
|
453
|
+
className: y(z.image, e),
|
|
453
454
|
...u
|
|
454
455
|
});
|
|
455
456
|
}
|
|
456
|
-
|
|
457
|
-
function
|
|
458
|
-
let l = a(
|
|
457
|
+
U.displayName = "AvatarImage";
|
|
458
|
+
function W({ className: e, delayMs: n = 0, children: r, ref: i, ...s }) {
|
|
459
|
+
let l = a(B), [u, d] = c(n === 0);
|
|
459
460
|
return o(() => {
|
|
460
461
|
if (n === 0) {
|
|
461
462
|
d(!0);
|
|
@@ -467,13 +468,13 @@ function K({ className: e, delayMs: n = 0, children: r, ref: i, ...s }) {
|
|
|
467
468
|
ref: i,
|
|
468
469
|
"data-pharos-slot": "avatar-fallback",
|
|
469
470
|
"data-pharos-loading": l?.status,
|
|
470
|
-
className:
|
|
471
|
+
className: y(z.fallback, e),
|
|
471
472
|
...s,
|
|
472
473
|
children: r
|
|
473
474
|
});
|
|
474
475
|
}
|
|
475
|
-
|
|
476
|
-
function
|
|
476
|
+
W.displayName = "AvatarFallback";
|
|
477
|
+
function G({ size: e, shape: r, max: i, renderOverflow: a, className: o, children: c, ref: l, ...u }) {
|
|
477
478
|
let d = e ?? "md", f = r ?? "circle", p = s(() => {
|
|
478
479
|
let e = [], t = 0, n = [], r = (e) => {
|
|
479
480
|
n.push(e), t += 1;
|
|
@@ -483,25 +484,25 @@ function q({ size: e, shape: r, max: i, renderOverflow: a, className: o, childre
|
|
|
483
484
|
size: d,
|
|
484
485
|
shape: f
|
|
485
486
|
}), [d, f]);
|
|
486
|
-
return /* @__PURE__ */ t(
|
|
487
|
+
return /* @__PURE__ */ t(V.Provider, {
|
|
487
488
|
value: g,
|
|
488
489
|
children: /* @__PURE__ */ n("div", {
|
|
489
490
|
ref: l,
|
|
490
491
|
"data-pharos-slot": "avatar-group",
|
|
491
492
|
"data-pharos-size": typeof d == "number" ? String(d) : d,
|
|
492
493
|
"data-pharos-shape": f,
|
|
493
|
-
className:
|
|
494
|
+
className: y(z.group, o),
|
|
494
495
|
...u,
|
|
495
|
-
children: [m, h > 0 ? /* @__PURE__ */ t(
|
|
496
|
+
children: [m, h > 0 ? /* @__PURE__ */ t(H, {
|
|
496
497
|
"aria-label": `${h} more`,
|
|
497
498
|
"data-pharos-slot": "avatar-group-overflow",
|
|
498
|
-
children: /* @__PURE__ */ t(
|
|
499
|
+
children: /* @__PURE__ */ t(W, { children: a ? a(h) : `+${h}` })
|
|
499
500
|
}) : null]
|
|
500
501
|
})
|
|
501
502
|
});
|
|
502
503
|
}
|
|
503
|
-
|
|
504
|
-
var
|
|
504
|
+
G.displayName = "AvatarGroup";
|
|
505
|
+
var K = {
|
|
505
506
|
positioner: "_positioner_ua6x3_9",
|
|
506
507
|
content: "_content_ua6x3_4",
|
|
507
508
|
item: "_item_ua6x3_5",
|
|
@@ -511,61 +512,61 @@ var J = {
|
|
|
511
512
|
};
|
|
512
513
|
//#endregion
|
|
513
514
|
//#region src/components/DropdownMenu.tsx
|
|
514
|
-
function
|
|
515
|
+
function me(e) {
|
|
515
516
|
return /* @__PURE__ */ t(l.Root, { ...e });
|
|
516
517
|
}
|
|
517
|
-
|
|
518
|
-
function
|
|
518
|
+
me.displayName = "DropdownMenu";
|
|
519
|
+
function he(e) {
|
|
519
520
|
return /* @__PURE__ */ t(l.Trigger, { ...e });
|
|
520
521
|
}
|
|
521
|
-
|
|
522
|
-
function
|
|
522
|
+
he.displayName = "DropdownMenuTrigger";
|
|
523
|
+
function ge({ side: e = "bottom", align: n = "start", sideOffset: r = 8, className: i, children: a, ...o }) {
|
|
523
524
|
return /* @__PURE__ */ t(l.Portal, { children: /* @__PURE__ */ t(l.Positioner, {
|
|
524
|
-
className:
|
|
525
|
+
className: K.positioner,
|
|
525
526
|
side: e,
|
|
526
527
|
align: n,
|
|
527
528
|
sideOffset: r,
|
|
528
529
|
children: /* @__PURE__ */ t(l.Popup, {
|
|
529
530
|
"data-pharos-slot": "dropdown-menu-content",
|
|
530
|
-
className:
|
|
531
|
+
className: y(K.content, i),
|
|
531
532
|
...o,
|
|
532
533
|
children: a
|
|
533
534
|
})
|
|
534
535
|
}) });
|
|
535
536
|
}
|
|
536
|
-
|
|
537
|
-
function
|
|
537
|
+
ge.displayName = "DropdownMenuContent";
|
|
538
|
+
function _e({ variant: e = "default", className: n, ...r }) {
|
|
538
539
|
return /* @__PURE__ */ t(l.Item, {
|
|
539
540
|
"data-pharos-variant": e,
|
|
540
|
-
className:
|
|
541
|
+
className: y(K.item, e === "destructive" && K.itemDestructive, n),
|
|
541
542
|
...r
|
|
542
543
|
});
|
|
543
544
|
}
|
|
544
|
-
|
|
545
|
-
function
|
|
545
|
+
_e.displayName = "DropdownMenuItem";
|
|
546
|
+
function ve({ className: e, ...n }) {
|
|
546
547
|
return /* @__PURE__ */ t(l.Separator, {
|
|
547
548
|
"data-pharos-slot": "dropdown-menu-separator",
|
|
548
|
-
className:
|
|
549
|
+
className: y(K.separator, e),
|
|
549
550
|
...n
|
|
550
551
|
});
|
|
551
552
|
}
|
|
552
|
-
|
|
553
|
-
function
|
|
553
|
+
ve.displayName = "DropdownMenuSeparator";
|
|
554
|
+
function ye({ className: e, ...n }) {
|
|
554
555
|
return /* @__PURE__ */ t(l.GroupLabel, {
|
|
555
556
|
"data-pharos-slot": "dropdown-menu-label",
|
|
556
|
-
className:
|
|
557
|
+
className: y(K.label, e),
|
|
557
558
|
...n
|
|
558
559
|
});
|
|
559
560
|
}
|
|
560
|
-
|
|
561
|
-
function
|
|
561
|
+
ye.displayName = "DropdownMenuLabel";
|
|
562
|
+
function be(e) {
|
|
562
563
|
return /* @__PURE__ */ t(l.Group, {
|
|
563
564
|
"data-pharos-slot": "dropdown-menu-group",
|
|
564
565
|
...e
|
|
565
566
|
});
|
|
566
567
|
}
|
|
567
|
-
|
|
568
|
-
var
|
|
568
|
+
be.displayName = "DropdownMenuGroup";
|
|
569
|
+
var q = {
|
|
569
570
|
positioner: "_positioner_ga28p_15",
|
|
570
571
|
content: "_content_ga28p_4",
|
|
571
572
|
title: "_title_ga28p_5",
|
|
@@ -573,54 +574,54 @@ var Y = {
|
|
|
573
574
|
};
|
|
574
575
|
//#endregion
|
|
575
576
|
//#region src/components/Popover.tsx
|
|
576
|
-
function
|
|
577
|
+
function xe(e) {
|
|
577
578
|
return /* @__PURE__ */ t(u.Root, { ...e });
|
|
578
579
|
}
|
|
579
|
-
|
|
580
|
-
function
|
|
580
|
+
xe.displayName = "Popover";
|
|
581
|
+
function Se(e) {
|
|
581
582
|
return /* @__PURE__ */ t(u.Trigger, { ...e });
|
|
582
583
|
}
|
|
583
|
-
|
|
584
|
-
function
|
|
584
|
+
Se.displayName = "PopoverTrigger";
|
|
585
|
+
function Ce({ side: e = "bottom", align: n = "center", sideOffset: r = 8, alignOffset: i = 0, className: a, children: o, ...s }) {
|
|
585
586
|
return /* @__PURE__ */ t(u.Portal, { children: /* @__PURE__ */ t(u.Positioner, {
|
|
586
|
-
className:
|
|
587
|
+
className: q.positioner,
|
|
587
588
|
side: e,
|
|
588
589
|
align: n,
|
|
589
590
|
sideOffset: r,
|
|
590
591
|
alignOffset: i,
|
|
591
592
|
children: /* @__PURE__ */ t(u.Popup, {
|
|
592
593
|
"data-pharos-slot": "popover-content",
|
|
593
|
-
className:
|
|
594
|
+
className: y(q.content, a),
|
|
594
595
|
...s,
|
|
595
596
|
children: o
|
|
596
597
|
})
|
|
597
598
|
}) });
|
|
598
599
|
}
|
|
599
|
-
|
|
600
|
-
function
|
|
600
|
+
Ce.displayName = "PopoverContent";
|
|
601
|
+
function we({ className: e, ...n }) {
|
|
601
602
|
return /* @__PURE__ */ t(u.Title, {
|
|
602
603
|
"data-pharos-slot": "popover-title",
|
|
603
|
-
className:
|
|
604
|
+
className: y(q.title, e),
|
|
604
605
|
...n
|
|
605
606
|
});
|
|
606
607
|
}
|
|
607
|
-
|
|
608
|
-
function
|
|
608
|
+
we.displayName = "PopoverTitle";
|
|
609
|
+
function Te({ className: e, ...n }) {
|
|
609
610
|
return /* @__PURE__ */ t(u.Description, {
|
|
610
611
|
"data-pharos-slot": "popover-description",
|
|
611
|
-
className:
|
|
612
|
+
className: y(q.description, e),
|
|
612
613
|
...n
|
|
613
614
|
});
|
|
614
615
|
}
|
|
615
|
-
|
|
616
|
-
function
|
|
616
|
+
Te.displayName = "PopoverDescription";
|
|
617
|
+
function Ee(e) {
|
|
617
618
|
return /* @__PURE__ */ t(u.Close, {
|
|
618
619
|
"data-pharos-slot": "popover-close",
|
|
619
620
|
...e
|
|
620
621
|
});
|
|
621
622
|
}
|
|
622
|
-
|
|
623
|
-
var
|
|
623
|
+
Ee.displayName = "PopoverClose";
|
|
624
|
+
var J = {
|
|
624
625
|
trigger: "_trigger_1w6j6_35",
|
|
625
626
|
sizeSm: "_sizeSm_1w6j6_92",
|
|
626
627
|
sizeMd: "_sizeMd_1w6j6_98",
|
|
@@ -637,11 +638,11 @@ var X = {
|
|
|
637
638
|
};
|
|
638
639
|
//#endregion
|
|
639
640
|
//#region src/components/Select.tsx
|
|
640
|
-
function
|
|
641
|
+
function De(e) {
|
|
641
642
|
return /* @__PURE__ */ t(d.Root, { ...e });
|
|
642
643
|
}
|
|
643
|
-
|
|
644
|
-
function
|
|
644
|
+
De.displayName = "Select";
|
|
645
|
+
function Oe() {
|
|
645
646
|
return /* @__PURE__ */ t("svg", {
|
|
646
647
|
viewBox: "0 0 24 24",
|
|
647
648
|
fill: "none",
|
|
@@ -655,7 +656,7 @@ function Te() {
|
|
|
655
656
|
})
|
|
656
657
|
});
|
|
657
658
|
}
|
|
658
|
-
function
|
|
659
|
+
function ke() {
|
|
659
660
|
return /* @__PURE__ */ t("svg", {
|
|
660
661
|
viewBox: "0 0 24 24",
|
|
661
662
|
fill: "none",
|
|
@@ -669,39 +670,39 @@ function Ee() {
|
|
|
669
670
|
})
|
|
670
671
|
});
|
|
671
672
|
}
|
|
672
|
-
var
|
|
673
|
+
var Ae = v(J.trigger, {
|
|
673
674
|
variants: { size: {
|
|
674
|
-
sm:
|
|
675
|
-
md:
|
|
676
|
-
lg:
|
|
675
|
+
sm: J.sizeSm,
|
|
676
|
+
md: J.sizeMd,
|
|
677
|
+
lg: J.sizeLg
|
|
677
678
|
} },
|
|
678
679
|
defaultVariants: { size: "md" }
|
|
679
680
|
});
|
|
680
|
-
function
|
|
681
|
+
function je({ size: e, className: r, children: i, ...a }) {
|
|
681
682
|
let o = e ?? "md";
|
|
682
683
|
return /* @__PURE__ */ n(d.Trigger, {
|
|
683
684
|
"data-pharos-slot": "select-trigger",
|
|
684
685
|
"data-pharos-size": o,
|
|
685
|
-
className:
|
|
686
|
+
className: y(Ae({ size: o }), r),
|
|
686
687
|
...a,
|
|
687
688
|
children: [i, /* @__PURE__ */ t(d.Icon, {
|
|
688
|
-
className:
|
|
689
|
-
children: /* @__PURE__ */ t(
|
|
689
|
+
className: J.icon,
|
|
690
|
+
children: /* @__PURE__ */ t(Oe, {})
|
|
690
691
|
})]
|
|
691
692
|
});
|
|
692
693
|
}
|
|
693
|
-
|
|
694
|
-
function
|
|
694
|
+
je.displayName = "SelectTrigger";
|
|
695
|
+
function Me({ className: e, ...n }) {
|
|
695
696
|
return /* @__PURE__ */ t(d.Value, {
|
|
696
697
|
"data-pharos-slot": "select-value",
|
|
697
|
-
className:
|
|
698
|
+
className: y(J.value, e),
|
|
698
699
|
...n
|
|
699
700
|
});
|
|
700
701
|
}
|
|
701
|
-
|
|
702
|
-
function
|
|
702
|
+
Me.displayName = "SelectValue";
|
|
703
|
+
function Ne({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOffset: i = 0, className: a, children: o, ...s }) {
|
|
703
704
|
return /* @__PURE__ */ t(d.Portal, { children: /* @__PURE__ */ t(d.Positioner, {
|
|
704
|
-
className:
|
|
705
|
+
className: J.positioner,
|
|
705
706
|
alignItemWithTrigger: !1,
|
|
706
707
|
side: e,
|
|
707
708
|
align: n,
|
|
@@ -709,54 +710,54 @@ function Ae({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOf
|
|
|
709
710
|
alignOffset: i,
|
|
710
711
|
children: /* @__PURE__ */ t(d.Popup, {
|
|
711
712
|
"data-pharos-slot": "select-content",
|
|
712
|
-
className:
|
|
713
|
+
className: y(J.content, a),
|
|
713
714
|
...s,
|
|
714
715
|
children: /* @__PURE__ */ t(d.List, { children: o })
|
|
715
716
|
})
|
|
716
717
|
}) });
|
|
717
718
|
}
|
|
718
|
-
|
|
719
|
-
function
|
|
719
|
+
Ne.displayName = "SelectContent";
|
|
720
|
+
function Pe({ className: e, children: r, ...i }) {
|
|
720
721
|
return /* @__PURE__ */ n(d.Item, {
|
|
721
722
|
"data-pharos-slot": "select-item",
|
|
722
|
-
className:
|
|
723
|
+
className: y(J.item, e),
|
|
723
724
|
...i,
|
|
724
725
|
children: [/* @__PURE__ */ t(d.ItemText, {
|
|
725
|
-
className:
|
|
726
|
+
className: J.itemText,
|
|
726
727
|
children: r
|
|
727
728
|
}), /* @__PURE__ */ t(d.ItemIndicator, {
|
|
728
|
-
className:
|
|
729
|
-
children: /* @__PURE__ */ t(
|
|
729
|
+
className: J.itemIndicator,
|
|
730
|
+
children: /* @__PURE__ */ t(ke, {})
|
|
730
731
|
})]
|
|
731
732
|
});
|
|
732
733
|
}
|
|
733
|
-
|
|
734
|
-
function
|
|
734
|
+
Pe.displayName = "SelectItem";
|
|
735
|
+
function Fe(e) {
|
|
735
736
|
return /* @__PURE__ */ t(d.Group, {
|
|
736
737
|
"data-pharos-slot": "select-group",
|
|
737
738
|
...e
|
|
738
739
|
});
|
|
739
740
|
}
|
|
740
|
-
|
|
741
|
-
function
|
|
741
|
+
Fe.displayName = "SelectGroup";
|
|
742
|
+
function Ie({ className: e, ...n }) {
|
|
742
743
|
return /* @__PURE__ */ t(d.GroupLabel, {
|
|
743
744
|
"data-pharos-slot": "select-label",
|
|
744
|
-
className:
|
|
745
|
+
className: y(J.label, e),
|
|
745
746
|
...n
|
|
746
747
|
});
|
|
747
748
|
}
|
|
748
|
-
|
|
749
|
-
function
|
|
749
|
+
Ie.displayName = "SelectLabel";
|
|
750
|
+
function Le({ className: e, ...n }) {
|
|
750
751
|
return /* @__PURE__ */ t(d.Separator, {
|
|
751
752
|
"data-pharos-slot": "select-separator",
|
|
752
753
|
role: "none",
|
|
753
754
|
"aria-hidden": !0,
|
|
754
|
-
className:
|
|
755
|
+
className: y(J.separator, e),
|
|
755
756
|
...n
|
|
756
757
|
});
|
|
757
758
|
}
|
|
758
|
-
|
|
759
|
-
var
|
|
759
|
+
Le.displayName = "SelectSeparator";
|
|
760
|
+
var Y = {
|
|
760
761
|
control: "_control_1dd5w_5",
|
|
761
762
|
chips: "_chips_1dd5w_61",
|
|
762
763
|
input: "_input_1dd5w_70",
|
|
@@ -776,19 +777,19 @@ var Z = {
|
|
|
776
777
|
empty: "_empty_1dd5w_294",
|
|
777
778
|
label: "_label_1dd5w_304",
|
|
778
779
|
separator: "_separator_1dd5w_311"
|
|
779
|
-
},
|
|
780
|
-
function
|
|
780
|
+
}, X = r(null);
|
|
781
|
+
function Re(e) {
|
|
781
782
|
let [n, r] = c(null), i = s(() => ({
|
|
782
783
|
anchorElement: n,
|
|
783
784
|
setAnchorElement: r
|
|
784
785
|
}), [n]);
|
|
785
|
-
return /* @__PURE__ */ t(
|
|
786
|
+
return /* @__PURE__ */ t(X.Provider, {
|
|
786
787
|
value: i,
|
|
787
788
|
children: /* @__PURE__ */ t(f.Root, { ...e })
|
|
788
789
|
});
|
|
789
790
|
}
|
|
790
|
-
|
|
791
|
-
function
|
|
791
|
+
Re.displayName = "Combobox";
|
|
792
|
+
function ze() {
|
|
792
793
|
return /* @__PURE__ */ t("svg", {
|
|
793
794
|
viewBox: "0 0 24 24",
|
|
794
795
|
fill: "none",
|
|
@@ -802,7 +803,7 @@ function Ie() {
|
|
|
802
803
|
})
|
|
803
804
|
});
|
|
804
805
|
}
|
|
805
|
-
function
|
|
806
|
+
function Be() {
|
|
806
807
|
return /* @__PURE__ */ t("svg", {
|
|
807
808
|
viewBox: "0 0 24 24",
|
|
808
809
|
fill: "none",
|
|
@@ -816,7 +817,7 @@ function Le() {
|
|
|
816
817
|
})
|
|
817
818
|
});
|
|
818
819
|
}
|
|
819
|
-
function
|
|
820
|
+
function Ve() {
|
|
820
821
|
return /* @__PURE__ */ t("svg", {
|
|
821
822
|
viewBox: "0 0 24 24",
|
|
822
823
|
fill: "none",
|
|
@@ -830,84 +831,84 @@ function Re() {
|
|
|
830
831
|
})
|
|
831
832
|
});
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
+
function He({ className: e, ...n }) {
|
|
834
835
|
return /* @__PURE__ */ t(f.InputGroup, {
|
|
835
836
|
"data-pharos-slot": "combobox-control",
|
|
836
|
-
className:
|
|
837
|
+
className: y(Y.control, e),
|
|
837
838
|
...n
|
|
838
839
|
});
|
|
839
840
|
}
|
|
840
|
-
|
|
841
|
-
function
|
|
842
|
-
let o = a(
|
|
841
|
+
He.displayName = "ComboboxControl";
|
|
842
|
+
function Ue({ className: e, ref: n, ...r }) {
|
|
843
|
+
let o = a(X), s = i((e) => {
|
|
843
844
|
o?.setAnchorElement(e), typeof n == "function" ? n(e) : n && (n.current = e);
|
|
844
845
|
}, [o, n]);
|
|
845
846
|
return /* @__PURE__ */ t(f.Chips, {
|
|
846
847
|
"data-pharos-slot": "combobox-chips",
|
|
847
|
-
className:
|
|
848
|
+
className: y(Y.control, Y.chips, e),
|
|
848
849
|
ref: s,
|
|
849
850
|
...r
|
|
850
851
|
});
|
|
851
852
|
}
|
|
852
|
-
|
|
853
|
-
var
|
|
853
|
+
Ue.displayName = "ComboboxChips";
|
|
854
|
+
var We = v(Y.input, {
|
|
854
855
|
variants: { size: {
|
|
855
|
-
sm:
|
|
856
|
-
md:
|
|
857
|
-
lg:
|
|
856
|
+
sm: Y.inputSizeSm,
|
|
857
|
+
md: Y.inputSizeMd,
|
|
858
|
+
lg: Y.inputSizeLg
|
|
858
859
|
} },
|
|
859
860
|
defaultVariants: { size: "md" }
|
|
860
861
|
});
|
|
861
|
-
function
|
|
862
|
+
function Ge({ size: e, inset: n = !1, className: r, ...i }) {
|
|
862
863
|
let a = e ?? "md";
|
|
863
864
|
return /* @__PURE__ */ t(f.Input, {
|
|
864
865
|
"data-pharos-slot": "combobox-input",
|
|
865
866
|
"data-pharos-size": a,
|
|
866
|
-
className:
|
|
867
|
+
className: y(n ? y(Y.input, Y.chipsInput) : We({ size: a }), r),
|
|
867
868
|
...i
|
|
868
869
|
});
|
|
869
870
|
}
|
|
870
|
-
|
|
871
|
-
function
|
|
871
|
+
Ge.displayName = "ComboboxInput";
|
|
872
|
+
function Ke({ className: e, children: n, ...r }) {
|
|
872
873
|
return /* @__PURE__ */ t(f.Trigger, {
|
|
873
874
|
"data-pharos-slot": "combobox-trigger",
|
|
874
|
-
className:
|
|
875
|
+
className: y(Y.trigger, e),
|
|
875
876
|
...r,
|
|
876
|
-
children: n ?? /* @__PURE__ */ t(
|
|
877
|
+
children: n ?? /* @__PURE__ */ t(ze, {})
|
|
877
878
|
});
|
|
878
879
|
}
|
|
879
|
-
|
|
880
|
-
function
|
|
880
|
+
Ke.displayName = "ComboboxTrigger";
|
|
881
|
+
function qe({ className: e, children: n, ...r }) {
|
|
881
882
|
return /* @__PURE__ */ t(f.Clear, {
|
|
882
883
|
"data-pharos-slot": "combobox-clear",
|
|
883
|
-
className:
|
|
884
|
+
className: y(Y.clear, e),
|
|
884
885
|
...r,
|
|
885
|
-
children: n ?? /* @__PURE__ */ t(
|
|
886
|
+
children: n ?? /* @__PURE__ */ t(Ve, {})
|
|
886
887
|
});
|
|
887
888
|
}
|
|
888
|
-
|
|
889
|
-
function
|
|
889
|
+
qe.displayName = "ComboboxClear";
|
|
890
|
+
function Je({ className: e, ...n }) {
|
|
890
891
|
return /* @__PURE__ */ t(f.Chip, {
|
|
891
892
|
"data-pharos-slot": "combobox-chip",
|
|
892
|
-
className:
|
|
893
|
+
className: y(Y.chip, e),
|
|
893
894
|
...n
|
|
894
895
|
});
|
|
895
896
|
}
|
|
896
|
-
|
|
897
|
-
function
|
|
897
|
+
Je.displayName = "ComboboxChip";
|
|
898
|
+
function Ye({ className: e, children: n, "aria-label": r = "Remove", ...i }) {
|
|
898
899
|
return /* @__PURE__ */ t(f.ChipRemove, {
|
|
899
900
|
"data-pharos-slot": "combobox-chip-remove",
|
|
900
901
|
"aria-label": r,
|
|
901
|
-
className:
|
|
902
|
+
className: y(Y.chipRemove, e),
|
|
902
903
|
...i,
|
|
903
|
-
children: n ?? /* @__PURE__ */ t(
|
|
904
|
+
children: n ?? /* @__PURE__ */ t(Ve, {})
|
|
904
905
|
});
|
|
905
906
|
}
|
|
906
|
-
|
|
907
|
-
function
|
|
908
|
-
let l = a(
|
|
907
|
+
Ye.displayName = "ComboboxChipRemove";
|
|
908
|
+
function Xe({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOffset: i = 0, className: o, children: s, ...c }) {
|
|
909
|
+
let l = a(X)?.anchorElement ?? void 0;
|
|
909
910
|
return /* @__PURE__ */ t(f.Portal, { children: /* @__PURE__ */ t(f.Positioner, {
|
|
910
|
-
className:
|
|
911
|
+
className: Y.positioner,
|
|
911
912
|
anchor: l,
|
|
912
913
|
side: e,
|
|
913
914
|
align: n,
|
|
@@ -915,68 +916,214 @@ function Ke({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOf
|
|
|
915
916
|
alignOffset: i,
|
|
916
917
|
children: /* @__PURE__ */ t(f.Popup, {
|
|
917
918
|
"data-pharos-slot": "combobox-content",
|
|
918
|
-
className:
|
|
919
|
+
className: y(Y.content, o),
|
|
919
920
|
...c,
|
|
920
921
|
children: s
|
|
921
922
|
})
|
|
922
923
|
}) });
|
|
923
924
|
}
|
|
924
|
-
|
|
925
|
-
function
|
|
925
|
+
Xe.displayName = "ComboboxContent";
|
|
926
|
+
function Ze({ className: e, ...n }) {
|
|
926
927
|
return /* @__PURE__ */ t(f.List, {
|
|
927
928
|
"data-pharos-slot": "combobox-list",
|
|
928
929
|
className: e,
|
|
929
930
|
...n
|
|
930
931
|
});
|
|
931
932
|
}
|
|
932
|
-
|
|
933
|
-
function
|
|
933
|
+
Ze.displayName = "ComboboxList";
|
|
934
|
+
function Qe({ className: e, children: r, ...i }) {
|
|
934
935
|
return /* @__PURE__ */ n(f.Item, {
|
|
935
936
|
"data-pharos-slot": "combobox-item",
|
|
936
|
-
className:
|
|
937
|
+
className: y(Y.item, e),
|
|
937
938
|
...i,
|
|
938
939
|
children: [/* @__PURE__ */ t("span", {
|
|
939
|
-
className:
|
|
940
|
+
className: Y.itemText,
|
|
940
941
|
children: r
|
|
941
942
|
}), /* @__PURE__ */ t(f.ItemIndicator, {
|
|
942
|
-
className:
|
|
943
|
-
children: /* @__PURE__ */ t(
|
|
943
|
+
className: Y.itemIndicator,
|
|
944
|
+
children: /* @__PURE__ */ t(Be, {})
|
|
944
945
|
})]
|
|
945
946
|
});
|
|
946
947
|
}
|
|
947
|
-
|
|
948
|
-
function
|
|
948
|
+
Qe.displayName = "ComboboxItem";
|
|
949
|
+
function $e({ className: e, ...n }) {
|
|
949
950
|
return /* @__PURE__ */ t(f.Empty, {
|
|
950
951
|
"data-pharos-slot": "combobox-empty",
|
|
951
|
-
className:
|
|
952
|
+
className: y(Y.empty, e),
|
|
952
953
|
...n
|
|
953
954
|
});
|
|
954
955
|
}
|
|
955
|
-
|
|
956
|
-
function
|
|
956
|
+
$e.displayName = "ComboboxEmpty";
|
|
957
|
+
function et(e) {
|
|
957
958
|
return /* @__PURE__ */ t(f.Group, {
|
|
958
959
|
"data-pharos-slot": "combobox-group",
|
|
959
960
|
...e
|
|
960
961
|
});
|
|
961
962
|
}
|
|
962
|
-
|
|
963
|
-
function
|
|
963
|
+
et.displayName = "ComboboxGroup";
|
|
964
|
+
function tt({ className: e, ...n }) {
|
|
964
965
|
return /* @__PURE__ */ t(f.GroupLabel, {
|
|
965
966
|
"data-pharos-slot": "combobox-group-label",
|
|
966
|
-
className:
|
|
967
|
+
className: y(Y.label, e),
|
|
967
968
|
...n
|
|
968
969
|
});
|
|
969
970
|
}
|
|
970
|
-
|
|
971
|
-
function
|
|
971
|
+
tt.displayName = "ComboboxGroupLabel";
|
|
972
|
+
function nt({ className: e, ...n }) {
|
|
972
973
|
return /* @__PURE__ */ t(f.Separator, {
|
|
973
974
|
"data-pharos-slot": "combobox-separator",
|
|
974
|
-
className:
|
|
975
|
+
className: y(Y.separator, e),
|
|
976
|
+
...n
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
nt.displayName = "ComboboxSeparator";
|
|
980
|
+
var Z = {
|
|
981
|
+
backdrop: "_backdrop_1pbfd_21",
|
|
982
|
+
content: "_content_1pbfd_37",
|
|
983
|
+
sideRight: "_sideRight_1pbfd_60",
|
|
984
|
+
sideLeft: "_sideLeft_1pbfd_73",
|
|
985
|
+
sideTop: "_sideTop_1pbfd_86",
|
|
986
|
+
sideBottom: "_sideBottom_1pbfd_99",
|
|
987
|
+
header: "_header_1pbfd_113",
|
|
988
|
+
title: "_title_1pbfd_119",
|
|
989
|
+
description: "_description_1pbfd_127",
|
|
990
|
+
footer: "_footer_1pbfd_134"
|
|
991
|
+
};
|
|
992
|
+
//#endregion
|
|
993
|
+
//#region src/components/Sheet.tsx
|
|
994
|
+
function Q(e) {
|
|
995
|
+
return /* @__PURE__ */ t(p.Root, { ...e });
|
|
996
|
+
}
|
|
997
|
+
Q.displayName = "Sheet";
|
|
998
|
+
function rt(e) {
|
|
999
|
+
return /* @__PURE__ */ t(p.Trigger, { ...e });
|
|
1000
|
+
}
|
|
1001
|
+
rt.displayName = "SheetTrigger";
|
|
1002
|
+
var it = v(Z.content, {
|
|
1003
|
+
variants: { side: {
|
|
1004
|
+
top: Z.sideTop,
|
|
1005
|
+
right: Z.sideRight,
|
|
1006
|
+
bottom: Z.sideBottom,
|
|
1007
|
+
left: Z.sideLeft
|
|
1008
|
+
} },
|
|
1009
|
+
defaultVariants: { side: "right" }
|
|
1010
|
+
});
|
|
1011
|
+
function at({ side: e = "right", className: r, children: i, ...a }) {
|
|
1012
|
+
return /* @__PURE__ */ n(p.Portal, { children: [/* @__PURE__ */ t(p.Backdrop, { className: Z.backdrop }), /* @__PURE__ */ t(p.Popup, {
|
|
1013
|
+
"data-pharos-slot": "sheet-content",
|
|
1014
|
+
"data-pharos-side": e ?? "right",
|
|
1015
|
+
className: y(it({ side: e }), r),
|
|
1016
|
+
...a,
|
|
1017
|
+
children: i
|
|
1018
|
+
})] });
|
|
1019
|
+
}
|
|
1020
|
+
at.displayName = "SheetContent";
|
|
1021
|
+
function ot({ className: e, ...n }) {
|
|
1022
|
+
return /* @__PURE__ */ t("div", {
|
|
1023
|
+
"data-pharos-slot": "sheet-header",
|
|
1024
|
+
className: y(Z.header, e),
|
|
975
1025
|
...n
|
|
976
1026
|
});
|
|
977
1027
|
}
|
|
978
|
-
|
|
1028
|
+
ot.displayName = "SheetHeader";
|
|
1029
|
+
function st({ className: e, ...n }) {
|
|
1030
|
+
return /* @__PURE__ */ t(p.Title, {
|
|
1031
|
+
"data-pharos-slot": "sheet-title",
|
|
1032
|
+
className: y(Z.title, e),
|
|
1033
|
+
...n
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
st.displayName = "SheetTitle";
|
|
1037
|
+
function ct({ className: e, ...n }) {
|
|
1038
|
+
return /* @__PURE__ */ t(p.Description, {
|
|
1039
|
+
"data-pharos-slot": "sheet-description",
|
|
1040
|
+
className: y(Z.description, e),
|
|
1041
|
+
...n
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
ct.displayName = "SheetDescription";
|
|
1045
|
+
function lt({ className: e, ...n }) {
|
|
1046
|
+
return /* @__PURE__ */ t("div", {
|
|
1047
|
+
"data-pharos-slot": "sheet-footer",
|
|
1048
|
+
className: y(Z.footer, e),
|
|
1049
|
+
...n
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
lt.displayName = "SheetFooter";
|
|
1053
|
+
function ut(e) {
|
|
1054
|
+
return /* @__PURE__ */ t(p.Close, {
|
|
1055
|
+
"data-pharos-slot": "sheet-close",
|
|
1056
|
+
...e
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
ut.displayName = "SheetClose";
|
|
1060
|
+
var $ = {
|
|
1061
|
+
backdrop: "_backdrop_mozml_18",
|
|
1062
|
+
content: "_content_mozml_32",
|
|
1063
|
+
header: "_header_mozml_75",
|
|
1064
|
+
title: "_title_mozml_81",
|
|
1065
|
+
description: "_description_mozml_89",
|
|
1066
|
+
footer: "_footer_mozml_96"
|
|
1067
|
+
};
|
|
1068
|
+
//#endregion
|
|
1069
|
+
//#region src/components/Dialog.tsx
|
|
1070
|
+
function dt(e) {
|
|
1071
|
+
return /* @__PURE__ */ t(p.Root, { ...e });
|
|
1072
|
+
}
|
|
1073
|
+
dt.displayName = "Dialog";
|
|
1074
|
+
function ft(e) {
|
|
1075
|
+
return /* @__PURE__ */ t(p.Trigger, { ...e });
|
|
1076
|
+
}
|
|
1077
|
+
ft.displayName = "DialogTrigger";
|
|
1078
|
+
function pt({ className: e, children: r, ...i }) {
|
|
1079
|
+
return /* @__PURE__ */ n(p.Portal, { children: [/* @__PURE__ */ t(p.Backdrop, { className: $.backdrop }), /* @__PURE__ */ t(p.Popup, {
|
|
1080
|
+
"data-pharos-slot": "dialog-content",
|
|
1081
|
+
className: y($.content, e),
|
|
1082
|
+
...i,
|
|
1083
|
+
children: r
|
|
1084
|
+
})] });
|
|
1085
|
+
}
|
|
1086
|
+
pt.displayName = "DialogContent";
|
|
1087
|
+
function mt({ className: e, ...n }) {
|
|
1088
|
+
return /* @__PURE__ */ t("div", {
|
|
1089
|
+
"data-pharos-slot": "dialog-header",
|
|
1090
|
+
className: y($.header, e),
|
|
1091
|
+
...n
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
mt.displayName = "DialogHeader";
|
|
1095
|
+
function ht({ className: e, ...n }) {
|
|
1096
|
+
return /* @__PURE__ */ t(p.Title, {
|
|
1097
|
+
"data-pharos-slot": "dialog-title",
|
|
1098
|
+
className: y($.title, e),
|
|
1099
|
+
...n
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
ht.displayName = "DialogTitle";
|
|
1103
|
+
function gt({ className: e, ...n }) {
|
|
1104
|
+
return /* @__PURE__ */ t(p.Description, {
|
|
1105
|
+
"data-pharos-slot": "dialog-description",
|
|
1106
|
+
className: y($.description, e),
|
|
1107
|
+
...n
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
gt.displayName = "DialogDescription";
|
|
1111
|
+
function _t({ className: e, ...n }) {
|
|
1112
|
+
return /* @__PURE__ */ t("div", {
|
|
1113
|
+
"data-pharos-slot": "dialog-footer",
|
|
1114
|
+
className: y($.footer, e),
|
|
1115
|
+
...n
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
_t.displayName = "DialogFooter";
|
|
1119
|
+
function vt(e) {
|
|
1120
|
+
return /* @__PURE__ */ t(p.Close, {
|
|
1121
|
+
"data-pharos-slot": "dialog-close",
|
|
1122
|
+
...e
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
vt.displayName = "DialogClose";
|
|
979
1126
|
//#endregion
|
|
980
|
-
export {
|
|
1127
|
+
export { H as Avatar, W as AvatarFallback, G as AvatarGroup, U as AvatarImage, k as Badge, S as Button, ce as Card, L as CardContent, I as CardDescription, R as CardFooter, P as CardHeader, F as CardTitle, Re as Combobox, Je as ComboboxChip, Ye as ComboboxChipRemove, Ue as ComboboxChips, qe as ComboboxClear, Xe as ComboboxContent, He as ComboboxControl, $e as ComboboxEmpty, et as ComboboxGroup, tt as ComboboxGroupLabel, Ge as ComboboxInput, Qe as ComboboxItem, Ze as ComboboxList, nt as ComboboxSeparator, Ke as ComboboxTrigger, dt as Dialog, vt as DialogClose, pt as DialogContent, gt as DialogDescription, _t as DialogFooter, mt as DialogHeader, ht as DialogTitle, ft as DialogTrigger, me as DropdownMenu, ge as DropdownMenuContent, be as DropdownMenuGroup, _e as DropdownMenuItem, ye as DropdownMenuLabel, ve as DropdownMenuSeparator, he as DropdownMenuTrigger, te as IconButton, ne as Input, xe as Popover, Ee as PopoverClose, Ce as PopoverContent, Te as PopoverDescription, we as PopoverTitle, Se as PopoverTrigger, De as Select, Ne as SelectContent, Fe as SelectGroup, Pe as SelectItem, Ie as SelectLabel, Le as SelectSeparator, je as SelectTrigger, Me as SelectValue, oe as Separator, Q as Sheet, ut as SheetClose, at as SheetContent, ct as SheetDescription, lt as SheetFooter, ot as SheetHeader, st as SheetTitle, rt as SheetTrigger, w as Spinner, ie as Textarea, O as badgeVariants, x as buttonVariants, se as cardVariants, y as cn, E as iconButtonVariants, j as inputVariants, it as sheetVariants, ee as spinnerVariants, re as textareaVariants };
|
|
981
1128
|
|
|
982
1129
|
//# sourceMappingURL=index.js.map
|