@code-sherpas/pharos-react 0.15.0 → 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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +304 -238
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -182,7 +182,7 @@ var T = {
|
|
|
182
182
|
size: "md"
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
|
-
function
|
|
185
|
+
function te({ render: n, className: r, intent: i, size: a, isLoading: o, disabled: s, type: c = "button", children: l, ref: u, ...d }) {
|
|
186
186
|
let f = i ?? "ghost", p = a ?? "md";
|
|
187
187
|
return e({
|
|
188
188
|
render: n ?? /* @__PURE__ */ t("button", {}),
|
|
@@ -203,8 +203,8 @@ function D({ render: n, className: r, intent: i, size: a, isLoading: o, disabled
|
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
var
|
|
206
|
+
te.displayName = "IconButton";
|
|
207
|
+
var D = {
|
|
208
208
|
badge: "_badge_zrawy_5",
|
|
209
209
|
default: "_default_zrawy_30",
|
|
210
210
|
secondary: "_secondary_zrawy_35",
|
|
@@ -213,75 +213,75 @@ var O = {
|
|
|
213
213
|
success: "_success_zrawy_55",
|
|
214
214
|
warning: "_warning_zrawy_60",
|
|
215
215
|
info: "_info_zrawy_65"
|
|
216
|
-
},
|
|
216
|
+
}, O = v(D.badge, {
|
|
217
217
|
variants: { variant: {
|
|
218
|
-
default:
|
|
219
|
-
secondary:
|
|
220
|
-
destructive:
|
|
221
|
-
outline:
|
|
222
|
-
success:
|
|
223
|
-
warning:
|
|
224
|
-
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
|
|
225
225
|
} },
|
|
226
226
|
defaultVariants: { variant: "default" }
|
|
227
227
|
});
|
|
228
|
-
function
|
|
228
|
+
function k({ variant: e, className: n, ...r }) {
|
|
229
229
|
let i = e ?? "default";
|
|
230
230
|
return /* @__PURE__ */ t("span", {
|
|
231
231
|
"data-pharos-variant": i,
|
|
232
|
-
className: y(
|
|
232
|
+
className: y(O({ variant: i }), n),
|
|
233
233
|
...r
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
|
|
237
|
-
var
|
|
236
|
+
k.displayName = "Badge";
|
|
237
|
+
var A = {
|
|
238
238
|
input: "_input_11emo_14",
|
|
239
239
|
sizeSm: "_sizeSm_11emo_97",
|
|
240
240
|
sizeMd: "_sizeMd_11emo_103",
|
|
241
241
|
sizeLg: "_sizeLg_11emo_109"
|
|
242
|
-
},
|
|
242
|
+
}, j = v(A.input, {
|
|
243
243
|
variants: { size: {
|
|
244
|
-
sm:
|
|
245
|
-
md:
|
|
246
|
-
lg:
|
|
244
|
+
sm: A.sizeSm,
|
|
245
|
+
md: A.sizeMd,
|
|
246
|
+
lg: A.sizeLg
|
|
247
247
|
} },
|
|
248
248
|
defaultVariants: { size: "md" }
|
|
249
249
|
});
|
|
250
|
-
function
|
|
250
|
+
function ne({ size: e, className: n, type: r = "text", ref: i, ...a }) {
|
|
251
251
|
let o = e ?? "md";
|
|
252
252
|
return /* @__PURE__ */ t("input", {
|
|
253
253
|
ref: i,
|
|
254
254
|
type: r,
|
|
255
255
|
"data-pharos-size": o,
|
|
256
|
-
className: y(
|
|
256
|
+
className: y(j({ size: o }), n),
|
|
257
257
|
...a
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
|
|
261
|
-
var
|
|
260
|
+
ne.displayName = "Input";
|
|
261
|
+
var M = {
|
|
262
262
|
textarea: "_textarea_1mec8_21",
|
|
263
263
|
sizeSm: "_sizeSm_1mec8_113",
|
|
264
264
|
sizeMd: "_sizeMd_1mec8_119",
|
|
265
265
|
sizeLg: "_sizeLg_1mec8_125"
|
|
266
|
-
},
|
|
266
|
+
}, re = v(M.textarea, {
|
|
267
267
|
variants: { size: {
|
|
268
|
-
sm:
|
|
269
|
-
md:
|
|
270
|
-
lg:
|
|
268
|
+
sm: M.sizeSm,
|
|
269
|
+
md: M.sizeMd,
|
|
270
|
+
lg: M.sizeLg
|
|
271
271
|
} },
|
|
272
272
|
defaultVariants: { size: "md" }
|
|
273
273
|
});
|
|
274
|
-
function
|
|
274
|
+
function ie({ size: e, className: n, ref: r, ...i }) {
|
|
275
275
|
let a = e ?? "md";
|
|
276
276
|
return /* @__PURE__ */ t("textarea", {
|
|
277
277
|
ref: r,
|
|
278
278
|
"data-pharos-size": a,
|
|
279
|
-
className: y(
|
|
279
|
+
className: y(re({ size: a }), n),
|
|
280
280
|
...i
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
|
|
284
|
-
var
|
|
283
|
+
ie.displayName = "Textarea";
|
|
284
|
+
var ae = {
|
|
285
285
|
separator: "_separator_da90p_13",
|
|
286
286
|
horizontal: "_horizontal_da90p_29",
|
|
287
287
|
vertical: "_vertical_da90p_34"
|
|
@@ -293,7 +293,7 @@ function oe({ orientation: e = "horizontal", decorative: n = !0, className: r, .
|
|
|
293
293
|
role: n ? "none" : "separator",
|
|
294
294
|
"aria-orientation": !n && e === "vertical" ? "vertical" : void 0,
|
|
295
295
|
"data-pharos-orientation": e,
|
|
296
|
-
className: y(
|
|
296
|
+
className: y(ae.separator, ae[e], r),
|
|
297
297
|
...i
|
|
298
298
|
});
|
|
299
299
|
}
|
|
@@ -316,7 +316,7 @@ var N = {
|
|
|
316
316
|
} },
|
|
317
317
|
defaultVariants: { variant: "default" }
|
|
318
318
|
});
|
|
319
|
-
function
|
|
319
|
+
function ce({ variant: e, className: n, ...r }) {
|
|
320
320
|
let i = e ?? "default";
|
|
321
321
|
return /* @__PURE__ */ t("div", {
|
|
322
322
|
"data-pharos-variant": i,
|
|
@@ -324,48 +324,48 @@ function P({ variant: e, className: n, ...r }) {
|
|
|
324
324
|
...r
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
|
|
328
|
-
function
|
|
327
|
+
ce.displayName = "Card";
|
|
328
|
+
function P({ className: e, ...n }) {
|
|
329
329
|
return /* @__PURE__ */ t("div", {
|
|
330
330
|
"data-pharos-slot": "card-header",
|
|
331
331
|
className: y(N.header, e),
|
|
332
332
|
...n
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
function
|
|
335
|
+
P.displayName = "CardHeader";
|
|
336
|
+
function F({ className: e, ...n }) {
|
|
337
337
|
return /* @__PURE__ */ t("div", {
|
|
338
338
|
"data-pharos-slot": "card-title",
|
|
339
339
|
className: y(N.title, e),
|
|
340
340
|
...n
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
function
|
|
343
|
+
F.displayName = "CardTitle";
|
|
344
|
+
function I({ className: e, ...n }) {
|
|
345
345
|
return /* @__PURE__ */ t("p", {
|
|
346
346
|
"data-pharos-slot": "card-description",
|
|
347
347
|
className: y(N.description, e),
|
|
348
348
|
...n
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
|
-
|
|
352
|
-
function
|
|
351
|
+
I.displayName = "CardDescription";
|
|
352
|
+
function L({ className: e, ...n }) {
|
|
353
353
|
return /* @__PURE__ */ t("div", {
|
|
354
354
|
"data-pharos-slot": "card-content",
|
|
355
355
|
className: y(N.content, e),
|
|
356
356
|
...n
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
-
|
|
360
|
-
function
|
|
359
|
+
L.displayName = "CardContent";
|
|
360
|
+
function R({ className: e, ...n }) {
|
|
361
361
|
return /* @__PURE__ */ t("div", {
|
|
362
362
|
"data-pharos-slot": "card-footer",
|
|
363
363
|
className: y(N.footer, e),
|
|
364
364
|
...n
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
|
|
368
|
-
var
|
|
367
|
+
R.displayName = "CardFooter";
|
|
368
|
+
var z = {
|
|
369
369
|
root: "_root_1xx27_21",
|
|
370
370
|
shapeCircle: "_shapeCircle_1xx27_63",
|
|
371
371
|
shapeSquare: "_shapeSquare_1xx27_67",
|
|
@@ -375,35 +375,35 @@ var B = {
|
|
|
375
375
|
image: "_image_1xx27_118",
|
|
376
376
|
fallback: "_fallback_1xx27_134",
|
|
377
377
|
group: "_group_1xx27_175"
|
|
378
|
-
},
|
|
379
|
-
sm:
|
|
380
|
-
md:
|
|
381
|
-
lg:
|
|
382
|
-
},
|
|
383
|
-
circle:
|
|
384
|
-
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
|
|
385
385
|
};
|
|
386
|
-
function
|
|
386
|
+
function fe(e) {
|
|
387
387
|
if (typeof e == "number") return {
|
|
388
388
|
width: e,
|
|
389
389
|
height: e,
|
|
390
390
|
fontSize: `${Math.round(e * .4)}px`
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
if (typeof e != "number") return
|
|
393
|
+
function pe(e) {
|
|
394
|
+
if (typeof e != "number") return ue[e];
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
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(() => ({
|
|
398
398
|
size: m,
|
|
399
399
|
shape: h
|
|
400
400
|
}), [m, h]), b = s(() => ({
|
|
401
401
|
status: g,
|
|
402
402
|
setStatus: _
|
|
403
|
-
}), [g]), x =
|
|
404
|
-
return /* @__PURE__ */ t(
|
|
403
|
+
}), [g]), x = pe(m), S = fe(m), C = typeof m == "number" ? String(m) : m;
|
|
404
|
+
return /* @__PURE__ */ t(le.Provider, {
|
|
405
405
|
value: v,
|
|
406
|
-
children: /* @__PURE__ */ t(
|
|
406
|
+
children: /* @__PURE__ */ t(B.Provider, {
|
|
407
407
|
value: b,
|
|
408
408
|
children: e({
|
|
409
409
|
render: l ?? /* @__PURE__ */ t("span", {}),
|
|
@@ -413,7 +413,7 @@ function U({ size: n, shape: r, className: i, style: o, render: l, ref: u, child
|
|
|
413
413
|
"data-pharos-size": C,
|
|
414
414
|
"data-pharos-shape": h,
|
|
415
415
|
"data-pharos-loading": g,
|
|
416
|
-
className: y(
|
|
416
|
+
className: y(z.root, x, de[h], i),
|
|
417
417
|
style: S ? {
|
|
418
418
|
...S,
|
|
419
419
|
...o
|
|
@@ -425,9 +425,9 @@ function U({ size: n, shape: r, className: i, style: o, render: l, ref: u, child
|
|
|
425
425
|
})
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
|
|
429
|
-
function
|
|
430
|
-
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;
|
|
431
431
|
o(() => {
|
|
432
432
|
d && (d.setStatus(f ? "loading" : "idle"), c?.(f ? "loading" : "idle"));
|
|
433
433
|
}, [n]);
|
|
@@ -450,13 +450,13 @@ function W({ className: e, src: n, onLoad: r, onError: s, onLoadingStatusChange:
|
|
|
450
450
|
onLoad: p,
|
|
451
451
|
onError: m,
|
|
452
452
|
"data-pharos-loading": d?.status,
|
|
453
|
-
className: y(
|
|
453
|
+
className: y(z.image, e),
|
|
454
454
|
...u
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
|
-
|
|
458
|
-
function
|
|
459
|
-
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);
|
|
460
460
|
return o(() => {
|
|
461
461
|
if (n === 0) {
|
|
462
462
|
d(!0);
|
|
@@ -468,13 +468,13 @@ function G({ className: e, delayMs: n = 0, children: r, ref: i, ...s }) {
|
|
|
468
468
|
ref: i,
|
|
469
469
|
"data-pharos-slot": "avatar-fallback",
|
|
470
470
|
"data-pharos-loading": l?.status,
|
|
471
|
-
className: y(
|
|
471
|
+
className: y(z.fallback, e),
|
|
472
472
|
...s,
|
|
473
473
|
children: r
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
-
|
|
477
|
-
function
|
|
476
|
+
W.displayName = "AvatarFallback";
|
|
477
|
+
function G({ size: e, shape: r, max: i, renderOverflow: a, className: o, children: c, ref: l, ...u }) {
|
|
478
478
|
let d = e ?? "md", f = r ?? "circle", p = s(() => {
|
|
479
479
|
let e = [], t = 0, n = [], r = (e) => {
|
|
480
480
|
n.push(e), t += 1;
|
|
@@ -484,25 +484,25 @@ function K({ size: e, shape: r, max: i, renderOverflow: a, className: o, childre
|
|
|
484
484
|
size: d,
|
|
485
485
|
shape: f
|
|
486
486
|
}), [d, f]);
|
|
487
|
-
return /* @__PURE__ */ t(
|
|
487
|
+
return /* @__PURE__ */ t(V.Provider, {
|
|
488
488
|
value: g,
|
|
489
489
|
children: /* @__PURE__ */ n("div", {
|
|
490
490
|
ref: l,
|
|
491
491
|
"data-pharos-slot": "avatar-group",
|
|
492
492
|
"data-pharos-size": typeof d == "number" ? String(d) : d,
|
|
493
493
|
"data-pharos-shape": f,
|
|
494
|
-
className: y(
|
|
494
|
+
className: y(z.group, o),
|
|
495
495
|
...u,
|
|
496
|
-
children: [m, h > 0 ? /* @__PURE__ */ t(
|
|
496
|
+
children: [m, h > 0 ? /* @__PURE__ */ t(H, {
|
|
497
497
|
"aria-label": `${h} more`,
|
|
498
498
|
"data-pharos-slot": "avatar-group-overflow",
|
|
499
|
-
children: /* @__PURE__ */ t(
|
|
499
|
+
children: /* @__PURE__ */ t(W, { children: a ? a(h) : `+${h}` })
|
|
500
500
|
}) : null]
|
|
501
501
|
})
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
-
|
|
505
|
-
var
|
|
504
|
+
G.displayName = "AvatarGroup";
|
|
505
|
+
var K = {
|
|
506
506
|
positioner: "_positioner_ua6x3_9",
|
|
507
507
|
content: "_content_ua6x3_4",
|
|
508
508
|
item: "_item_ua6x3_5",
|
|
@@ -512,61 +512,61 @@ var q = {
|
|
|
512
512
|
};
|
|
513
513
|
//#endregion
|
|
514
514
|
//#region src/components/DropdownMenu.tsx
|
|
515
|
-
function
|
|
515
|
+
function me(e) {
|
|
516
516
|
return /* @__PURE__ */ t(l.Root, { ...e });
|
|
517
517
|
}
|
|
518
|
-
|
|
519
|
-
function
|
|
518
|
+
me.displayName = "DropdownMenu";
|
|
519
|
+
function he(e) {
|
|
520
520
|
return /* @__PURE__ */ t(l.Trigger, { ...e });
|
|
521
521
|
}
|
|
522
|
-
|
|
523
|
-
function
|
|
522
|
+
he.displayName = "DropdownMenuTrigger";
|
|
523
|
+
function ge({ side: e = "bottom", align: n = "start", sideOffset: r = 8, className: i, children: a, ...o }) {
|
|
524
524
|
return /* @__PURE__ */ t(l.Portal, { children: /* @__PURE__ */ t(l.Positioner, {
|
|
525
|
-
className:
|
|
525
|
+
className: K.positioner,
|
|
526
526
|
side: e,
|
|
527
527
|
align: n,
|
|
528
528
|
sideOffset: r,
|
|
529
529
|
children: /* @__PURE__ */ t(l.Popup, {
|
|
530
530
|
"data-pharos-slot": "dropdown-menu-content",
|
|
531
|
-
className: y(
|
|
531
|
+
className: y(K.content, i),
|
|
532
532
|
...o,
|
|
533
533
|
children: a
|
|
534
534
|
})
|
|
535
535
|
}) });
|
|
536
536
|
}
|
|
537
|
-
|
|
538
|
-
function
|
|
537
|
+
ge.displayName = "DropdownMenuContent";
|
|
538
|
+
function _e({ variant: e = "default", className: n, ...r }) {
|
|
539
539
|
return /* @__PURE__ */ t(l.Item, {
|
|
540
540
|
"data-pharos-variant": e,
|
|
541
|
-
className: y(
|
|
541
|
+
className: y(K.item, e === "destructive" && K.itemDestructive, n),
|
|
542
542
|
...r
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
|
-
|
|
546
|
-
function
|
|
545
|
+
_e.displayName = "DropdownMenuItem";
|
|
546
|
+
function ve({ className: e, ...n }) {
|
|
547
547
|
return /* @__PURE__ */ t(l.Separator, {
|
|
548
548
|
"data-pharos-slot": "dropdown-menu-separator",
|
|
549
|
-
className: y(
|
|
549
|
+
className: y(K.separator, e),
|
|
550
550
|
...n
|
|
551
551
|
});
|
|
552
552
|
}
|
|
553
|
-
|
|
554
|
-
function
|
|
553
|
+
ve.displayName = "DropdownMenuSeparator";
|
|
554
|
+
function ye({ className: e, ...n }) {
|
|
555
555
|
return /* @__PURE__ */ t(l.GroupLabel, {
|
|
556
556
|
"data-pharos-slot": "dropdown-menu-label",
|
|
557
|
-
className: y(
|
|
557
|
+
className: y(K.label, e),
|
|
558
558
|
...n
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
|
|
562
|
-
function
|
|
561
|
+
ye.displayName = "DropdownMenuLabel";
|
|
562
|
+
function be(e) {
|
|
563
563
|
return /* @__PURE__ */ t(l.Group, {
|
|
564
564
|
"data-pharos-slot": "dropdown-menu-group",
|
|
565
565
|
...e
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
|
|
569
|
-
var
|
|
568
|
+
be.displayName = "DropdownMenuGroup";
|
|
569
|
+
var q = {
|
|
570
570
|
positioner: "_positioner_ga28p_15",
|
|
571
571
|
content: "_content_ga28p_4",
|
|
572
572
|
title: "_title_ga28p_5",
|
|
@@ -574,54 +574,54 @@ var J = {
|
|
|
574
574
|
};
|
|
575
575
|
//#endregion
|
|
576
576
|
//#region src/components/Popover.tsx
|
|
577
|
-
function
|
|
577
|
+
function xe(e) {
|
|
578
578
|
return /* @__PURE__ */ t(u.Root, { ...e });
|
|
579
579
|
}
|
|
580
|
-
|
|
581
|
-
function
|
|
580
|
+
xe.displayName = "Popover";
|
|
581
|
+
function Se(e) {
|
|
582
582
|
return /* @__PURE__ */ t(u.Trigger, { ...e });
|
|
583
583
|
}
|
|
584
|
-
|
|
585
|
-
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 }) {
|
|
586
586
|
return /* @__PURE__ */ t(u.Portal, { children: /* @__PURE__ */ t(u.Positioner, {
|
|
587
|
-
className:
|
|
587
|
+
className: q.positioner,
|
|
588
588
|
side: e,
|
|
589
589
|
align: n,
|
|
590
590
|
sideOffset: r,
|
|
591
591
|
alignOffset: i,
|
|
592
592
|
children: /* @__PURE__ */ t(u.Popup, {
|
|
593
593
|
"data-pharos-slot": "popover-content",
|
|
594
|
-
className: y(
|
|
594
|
+
className: y(q.content, a),
|
|
595
595
|
...s,
|
|
596
596
|
children: o
|
|
597
597
|
})
|
|
598
598
|
}) });
|
|
599
599
|
}
|
|
600
|
-
|
|
601
|
-
function
|
|
600
|
+
Ce.displayName = "PopoverContent";
|
|
601
|
+
function we({ className: e, ...n }) {
|
|
602
602
|
return /* @__PURE__ */ t(u.Title, {
|
|
603
603
|
"data-pharos-slot": "popover-title",
|
|
604
|
-
className: y(
|
|
604
|
+
className: y(q.title, e),
|
|
605
605
|
...n
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
|
-
|
|
609
|
-
function
|
|
608
|
+
we.displayName = "PopoverTitle";
|
|
609
|
+
function Te({ className: e, ...n }) {
|
|
610
610
|
return /* @__PURE__ */ t(u.Description, {
|
|
611
611
|
"data-pharos-slot": "popover-description",
|
|
612
|
-
className: y(
|
|
612
|
+
className: y(q.description, e),
|
|
613
613
|
...n
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
|
|
617
|
-
function
|
|
616
|
+
Te.displayName = "PopoverDescription";
|
|
617
|
+
function Ee(e) {
|
|
618
618
|
return /* @__PURE__ */ t(u.Close, {
|
|
619
619
|
"data-pharos-slot": "popover-close",
|
|
620
620
|
...e
|
|
621
621
|
});
|
|
622
622
|
}
|
|
623
|
-
|
|
624
|
-
var
|
|
623
|
+
Ee.displayName = "PopoverClose";
|
|
624
|
+
var J = {
|
|
625
625
|
trigger: "_trigger_1w6j6_35",
|
|
626
626
|
sizeSm: "_sizeSm_1w6j6_92",
|
|
627
627
|
sizeMd: "_sizeMd_1w6j6_98",
|
|
@@ -638,11 +638,11 @@ var X = {
|
|
|
638
638
|
};
|
|
639
639
|
//#endregion
|
|
640
640
|
//#region src/components/Select.tsx
|
|
641
|
-
function
|
|
641
|
+
function De(e) {
|
|
642
642
|
return /* @__PURE__ */ t(d.Root, { ...e });
|
|
643
643
|
}
|
|
644
|
-
|
|
645
|
-
function
|
|
644
|
+
De.displayName = "Select";
|
|
645
|
+
function Oe() {
|
|
646
646
|
return /* @__PURE__ */ t("svg", {
|
|
647
647
|
viewBox: "0 0 24 24",
|
|
648
648
|
fill: "none",
|
|
@@ -656,7 +656,7 @@ function Ee() {
|
|
|
656
656
|
})
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function ke() {
|
|
660
660
|
return /* @__PURE__ */ t("svg", {
|
|
661
661
|
viewBox: "0 0 24 24",
|
|
662
662
|
fill: "none",
|
|
@@ -670,39 +670,39 @@ function De() {
|
|
|
670
670
|
})
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
var
|
|
673
|
+
var Ae = v(J.trigger, {
|
|
674
674
|
variants: { size: {
|
|
675
|
-
sm:
|
|
676
|
-
md:
|
|
677
|
-
lg:
|
|
675
|
+
sm: J.sizeSm,
|
|
676
|
+
md: J.sizeMd,
|
|
677
|
+
lg: J.sizeLg
|
|
678
678
|
} },
|
|
679
679
|
defaultVariants: { size: "md" }
|
|
680
680
|
});
|
|
681
|
-
function
|
|
681
|
+
function je({ size: e, className: r, children: i, ...a }) {
|
|
682
682
|
let o = e ?? "md";
|
|
683
683
|
return /* @__PURE__ */ n(d.Trigger, {
|
|
684
684
|
"data-pharos-slot": "select-trigger",
|
|
685
685
|
"data-pharos-size": o,
|
|
686
|
-
className: y(
|
|
686
|
+
className: y(Ae({ size: o }), r),
|
|
687
687
|
...a,
|
|
688
688
|
children: [i, /* @__PURE__ */ t(d.Icon, {
|
|
689
|
-
className:
|
|
690
|
-
children: /* @__PURE__ */ t(
|
|
689
|
+
className: J.icon,
|
|
690
|
+
children: /* @__PURE__ */ t(Oe, {})
|
|
691
691
|
})]
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
|
|
695
|
-
function
|
|
694
|
+
je.displayName = "SelectTrigger";
|
|
695
|
+
function Me({ className: e, ...n }) {
|
|
696
696
|
return /* @__PURE__ */ t(d.Value, {
|
|
697
697
|
"data-pharos-slot": "select-value",
|
|
698
|
-
className: y(
|
|
698
|
+
className: y(J.value, e),
|
|
699
699
|
...n
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
|
|
703
|
-
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 }) {
|
|
704
704
|
return /* @__PURE__ */ t(d.Portal, { children: /* @__PURE__ */ t(d.Positioner, {
|
|
705
|
-
className:
|
|
705
|
+
className: J.positioner,
|
|
706
706
|
alignItemWithTrigger: !1,
|
|
707
707
|
side: e,
|
|
708
708
|
align: n,
|
|
@@ -710,54 +710,54 @@ function je({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOf
|
|
|
710
710
|
alignOffset: i,
|
|
711
711
|
children: /* @__PURE__ */ t(d.Popup, {
|
|
712
712
|
"data-pharos-slot": "select-content",
|
|
713
|
-
className: y(
|
|
713
|
+
className: y(J.content, a),
|
|
714
714
|
...s,
|
|
715
715
|
children: /* @__PURE__ */ t(d.List, { children: o })
|
|
716
716
|
})
|
|
717
717
|
}) });
|
|
718
718
|
}
|
|
719
|
-
|
|
720
|
-
function
|
|
719
|
+
Ne.displayName = "SelectContent";
|
|
720
|
+
function Pe({ className: e, children: r, ...i }) {
|
|
721
721
|
return /* @__PURE__ */ n(d.Item, {
|
|
722
722
|
"data-pharos-slot": "select-item",
|
|
723
|
-
className: y(
|
|
723
|
+
className: y(J.item, e),
|
|
724
724
|
...i,
|
|
725
725
|
children: [/* @__PURE__ */ t(d.ItemText, {
|
|
726
|
-
className:
|
|
726
|
+
className: J.itemText,
|
|
727
727
|
children: r
|
|
728
728
|
}), /* @__PURE__ */ t(d.ItemIndicator, {
|
|
729
|
-
className:
|
|
730
|
-
children: /* @__PURE__ */ t(
|
|
729
|
+
className: J.itemIndicator,
|
|
730
|
+
children: /* @__PURE__ */ t(ke, {})
|
|
731
731
|
})]
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
|
-
|
|
735
|
-
function
|
|
734
|
+
Pe.displayName = "SelectItem";
|
|
735
|
+
function Fe(e) {
|
|
736
736
|
return /* @__PURE__ */ t(d.Group, {
|
|
737
737
|
"data-pharos-slot": "select-group",
|
|
738
738
|
...e
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
|
|
742
|
-
function
|
|
741
|
+
Fe.displayName = "SelectGroup";
|
|
742
|
+
function Ie({ className: e, ...n }) {
|
|
743
743
|
return /* @__PURE__ */ t(d.GroupLabel, {
|
|
744
744
|
"data-pharos-slot": "select-label",
|
|
745
|
-
className: y(
|
|
745
|
+
className: y(J.label, e),
|
|
746
746
|
...n
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
|
-
|
|
750
|
-
function
|
|
749
|
+
Ie.displayName = "SelectLabel";
|
|
750
|
+
function Le({ className: e, ...n }) {
|
|
751
751
|
return /* @__PURE__ */ t(d.Separator, {
|
|
752
752
|
"data-pharos-slot": "select-separator",
|
|
753
753
|
role: "none",
|
|
754
754
|
"aria-hidden": !0,
|
|
755
|
-
className: y(
|
|
755
|
+
className: y(J.separator, e),
|
|
756
756
|
...n
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
|
|
760
|
-
var
|
|
759
|
+
Le.displayName = "SelectSeparator";
|
|
760
|
+
var Y = {
|
|
761
761
|
control: "_control_1dd5w_5",
|
|
762
762
|
chips: "_chips_1dd5w_61",
|
|
763
763
|
input: "_input_1dd5w_70",
|
|
@@ -777,19 +777,19 @@ var Z = {
|
|
|
777
777
|
empty: "_empty_1dd5w_294",
|
|
778
778
|
label: "_label_1dd5w_304",
|
|
779
779
|
separator: "_separator_1dd5w_311"
|
|
780
|
-
},
|
|
781
|
-
function
|
|
780
|
+
}, X = r(null);
|
|
781
|
+
function Re(e) {
|
|
782
782
|
let [n, r] = c(null), i = s(() => ({
|
|
783
783
|
anchorElement: n,
|
|
784
784
|
setAnchorElement: r
|
|
785
785
|
}), [n]);
|
|
786
|
-
return /* @__PURE__ */ t(
|
|
786
|
+
return /* @__PURE__ */ t(X.Provider, {
|
|
787
787
|
value: i,
|
|
788
788
|
children: /* @__PURE__ */ t(f.Root, { ...e })
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
|
-
|
|
792
|
-
function
|
|
791
|
+
Re.displayName = "Combobox";
|
|
792
|
+
function ze() {
|
|
793
793
|
return /* @__PURE__ */ t("svg", {
|
|
794
794
|
viewBox: "0 0 24 24",
|
|
795
795
|
fill: "none",
|
|
@@ -803,7 +803,7 @@ function Le() {
|
|
|
803
803
|
})
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Be() {
|
|
807
807
|
return /* @__PURE__ */ t("svg", {
|
|
808
808
|
viewBox: "0 0 24 24",
|
|
809
809
|
fill: "none",
|
|
@@ -817,7 +817,7 @@ function Re() {
|
|
|
817
817
|
})
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Ve() {
|
|
821
821
|
return /* @__PURE__ */ t("svg", {
|
|
822
822
|
viewBox: "0 0 24 24",
|
|
823
823
|
fill: "none",
|
|
@@ -831,84 +831,84 @@ function ze() {
|
|
|
831
831
|
})
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function He({ className: e, ...n }) {
|
|
835
835
|
return /* @__PURE__ */ t(f.InputGroup, {
|
|
836
836
|
"data-pharos-slot": "combobox-control",
|
|
837
|
-
className: y(
|
|
837
|
+
className: y(Y.control, e),
|
|
838
838
|
...n
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
|
-
|
|
842
|
-
function
|
|
843
|
-
let o = a(
|
|
841
|
+
He.displayName = "ComboboxControl";
|
|
842
|
+
function Ue({ className: e, ref: n, ...r }) {
|
|
843
|
+
let o = a(X), s = i((e) => {
|
|
844
844
|
o?.setAnchorElement(e), typeof n == "function" ? n(e) : n && (n.current = e);
|
|
845
845
|
}, [o, n]);
|
|
846
846
|
return /* @__PURE__ */ t(f.Chips, {
|
|
847
847
|
"data-pharos-slot": "combobox-chips",
|
|
848
|
-
className: y(
|
|
848
|
+
className: y(Y.control, Y.chips, e),
|
|
849
849
|
ref: s,
|
|
850
850
|
...r
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
|
-
|
|
854
|
-
var
|
|
853
|
+
Ue.displayName = "ComboboxChips";
|
|
854
|
+
var We = v(Y.input, {
|
|
855
855
|
variants: { size: {
|
|
856
|
-
sm:
|
|
857
|
-
md:
|
|
858
|
-
lg:
|
|
856
|
+
sm: Y.inputSizeSm,
|
|
857
|
+
md: Y.inputSizeMd,
|
|
858
|
+
lg: Y.inputSizeLg
|
|
859
859
|
} },
|
|
860
860
|
defaultVariants: { size: "md" }
|
|
861
861
|
});
|
|
862
|
-
function
|
|
862
|
+
function Ge({ size: e, inset: n = !1, className: r, ...i }) {
|
|
863
863
|
let a = e ?? "md";
|
|
864
864
|
return /* @__PURE__ */ t(f.Input, {
|
|
865
865
|
"data-pharos-slot": "combobox-input",
|
|
866
866
|
"data-pharos-size": a,
|
|
867
|
-
className: y(n ? y(
|
|
867
|
+
className: y(n ? y(Y.input, Y.chipsInput) : We({ size: a }), r),
|
|
868
868
|
...i
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
|
|
872
|
-
function
|
|
871
|
+
Ge.displayName = "ComboboxInput";
|
|
872
|
+
function Ke({ className: e, children: n, ...r }) {
|
|
873
873
|
return /* @__PURE__ */ t(f.Trigger, {
|
|
874
874
|
"data-pharos-slot": "combobox-trigger",
|
|
875
|
-
className: y(
|
|
875
|
+
className: y(Y.trigger, e),
|
|
876
876
|
...r,
|
|
877
|
-
children: n ?? /* @__PURE__ */ t(
|
|
877
|
+
children: n ?? /* @__PURE__ */ t(ze, {})
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
|
-
|
|
881
|
-
function
|
|
880
|
+
Ke.displayName = "ComboboxTrigger";
|
|
881
|
+
function qe({ className: e, children: n, ...r }) {
|
|
882
882
|
return /* @__PURE__ */ t(f.Clear, {
|
|
883
883
|
"data-pharos-slot": "combobox-clear",
|
|
884
|
-
className: y(
|
|
884
|
+
className: y(Y.clear, e),
|
|
885
885
|
...r,
|
|
886
|
-
children: n ?? /* @__PURE__ */ t(
|
|
886
|
+
children: n ?? /* @__PURE__ */ t(Ve, {})
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
-
|
|
890
|
-
function
|
|
889
|
+
qe.displayName = "ComboboxClear";
|
|
890
|
+
function Je({ className: e, ...n }) {
|
|
891
891
|
return /* @__PURE__ */ t(f.Chip, {
|
|
892
892
|
"data-pharos-slot": "combobox-chip",
|
|
893
|
-
className: y(
|
|
893
|
+
className: y(Y.chip, e),
|
|
894
894
|
...n
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
|
-
|
|
898
|
-
function
|
|
897
|
+
Je.displayName = "ComboboxChip";
|
|
898
|
+
function Ye({ className: e, children: n, "aria-label": r = "Remove", ...i }) {
|
|
899
899
|
return /* @__PURE__ */ t(f.ChipRemove, {
|
|
900
900
|
"data-pharos-slot": "combobox-chip-remove",
|
|
901
901
|
"aria-label": r,
|
|
902
|
-
className: y(
|
|
902
|
+
className: y(Y.chipRemove, e),
|
|
903
903
|
...i,
|
|
904
|
-
children: n ?? /* @__PURE__ */ t(
|
|
904
|
+
children: n ?? /* @__PURE__ */ t(Ve, {})
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
|
-
|
|
908
|
-
function
|
|
909
|
-
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;
|
|
910
910
|
return /* @__PURE__ */ t(f.Portal, { children: /* @__PURE__ */ t(f.Positioner, {
|
|
911
|
-
className:
|
|
911
|
+
className: Y.positioner,
|
|
912
912
|
anchor: l,
|
|
913
913
|
side: e,
|
|
914
914
|
align: n,
|
|
@@ -916,68 +916,68 @@ function Je({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOf
|
|
|
916
916
|
alignOffset: i,
|
|
917
917
|
children: /* @__PURE__ */ t(f.Popup, {
|
|
918
918
|
"data-pharos-slot": "combobox-content",
|
|
919
|
-
className: y(
|
|
919
|
+
className: y(Y.content, o),
|
|
920
920
|
...c,
|
|
921
921
|
children: s
|
|
922
922
|
})
|
|
923
923
|
}) });
|
|
924
924
|
}
|
|
925
|
-
|
|
926
|
-
function
|
|
925
|
+
Xe.displayName = "ComboboxContent";
|
|
926
|
+
function Ze({ className: e, ...n }) {
|
|
927
927
|
return /* @__PURE__ */ t(f.List, {
|
|
928
928
|
"data-pharos-slot": "combobox-list",
|
|
929
929
|
className: e,
|
|
930
930
|
...n
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
|
-
|
|
934
|
-
function
|
|
933
|
+
Ze.displayName = "ComboboxList";
|
|
934
|
+
function Qe({ className: e, children: r, ...i }) {
|
|
935
935
|
return /* @__PURE__ */ n(f.Item, {
|
|
936
936
|
"data-pharos-slot": "combobox-item",
|
|
937
|
-
className: y(
|
|
937
|
+
className: y(Y.item, e),
|
|
938
938
|
...i,
|
|
939
939
|
children: [/* @__PURE__ */ t("span", {
|
|
940
|
-
className:
|
|
940
|
+
className: Y.itemText,
|
|
941
941
|
children: r
|
|
942
942
|
}), /* @__PURE__ */ t(f.ItemIndicator, {
|
|
943
|
-
className:
|
|
944
|
-
children: /* @__PURE__ */ t(
|
|
943
|
+
className: Y.itemIndicator,
|
|
944
|
+
children: /* @__PURE__ */ t(Be, {})
|
|
945
945
|
})]
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
|
-
|
|
949
|
-
function
|
|
948
|
+
Qe.displayName = "ComboboxItem";
|
|
949
|
+
function $e({ className: e, ...n }) {
|
|
950
950
|
return /* @__PURE__ */ t(f.Empty, {
|
|
951
951
|
"data-pharos-slot": "combobox-empty",
|
|
952
|
-
className: y(
|
|
952
|
+
className: y(Y.empty, e),
|
|
953
953
|
...n
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
|
|
957
|
-
function
|
|
956
|
+
$e.displayName = "ComboboxEmpty";
|
|
957
|
+
function et(e) {
|
|
958
958
|
return /* @__PURE__ */ t(f.Group, {
|
|
959
959
|
"data-pharos-slot": "combobox-group",
|
|
960
960
|
...e
|
|
961
961
|
});
|
|
962
962
|
}
|
|
963
|
-
|
|
964
|
-
function
|
|
963
|
+
et.displayName = "ComboboxGroup";
|
|
964
|
+
function tt({ className: e, ...n }) {
|
|
965
965
|
return /* @__PURE__ */ t(f.GroupLabel, {
|
|
966
966
|
"data-pharos-slot": "combobox-group-label",
|
|
967
|
-
className: y(
|
|
967
|
+
className: y(Y.label, e),
|
|
968
968
|
...n
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
|
-
|
|
972
|
-
function
|
|
971
|
+
tt.displayName = "ComboboxGroupLabel";
|
|
972
|
+
function nt({ className: e, ...n }) {
|
|
973
973
|
return /* @__PURE__ */ t(f.Separator, {
|
|
974
974
|
"data-pharos-slot": "combobox-separator",
|
|
975
|
-
className: y(
|
|
975
|
+
className: y(Y.separator, e),
|
|
976
976
|
...n
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
|
-
|
|
980
|
-
var
|
|
979
|
+
nt.displayName = "ComboboxSeparator";
|
|
980
|
+
var Z = {
|
|
981
981
|
backdrop: "_backdrop_1pbfd_21",
|
|
982
982
|
content: "_content_1pbfd_37",
|
|
983
983
|
sideRight: "_sideRight_1pbfd_60",
|
|
@@ -991,73 +991,139 @@ var $ = {
|
|
|
991
991
|
};
|
|
992
992
|
//#endregion
|
|
993
993
|
//#region src/components/Sheet.tsx
|
|
994
|
-
function
|
|
994
|
+
function Q(e) {
|
|
995
995
|
return /* @__PURE__ */ t(p.Root, { ...e });
|
|
996
996
|
}
|
|
997
|
-
|
|
998
|
-
function
|
|
997
|
+
Q.displayName = "Sheet";
|
|
998
|
+
function rt(e) {
|
|
999
999
|
return /* @__PURE__ */ t(p.Trigger, { ...e });
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1002
|
-
var
|
|
1001
|
+
rt.displayName = "SheetTrigger";
|
|
1002
|
+
var it = v(Z.content, {
|
|
1003
1003
|
variants: { side: {
|
|
1004
|
-
top:
|
|
1005
|
-
right:
|
|
1006
|
-
bottom:
|
|
1007
|
-
left:
|
|
1004
|
+
top: Z.sideTop,
|
|
1005
|
+
right: Z.sideRight,
|
|
1006
|
+
bottom: Z.sideBottom,
|
|
1007
|
+
left: Z.sideLeft
|
|
1008
1008
|
} },
|
|
1009
1009
|
defaultVariants: { side: "right" }
|
|
1010
1010
|
});
|
|
1011
|
-
function
|
|
1012
|
-
return /* @__PURE__ */ n(p.Portal, { children: [/* @__PURE__ */ t(p.Backdrop, { className:
|
|
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
1013
|
"data-pharos-slot": "sheet-content",
|
|
1014
1014
|
"data-pharos-side": e ?? "right",
|
|
1015
|
-
className: y(
|
|
1015
|
+
className: y(it({ side: e }), r),
|
|
1016
1016
|
...a,
|
|
1017
1017
|
children: i
|
|
1018
1018
|
})] });
|
|
1019
1019
|
}
|
|
1020
|
-
|
|
1021
|
-
function
|
|
1020
|
+
at.displayName = "SheetContent";
|
|
1021
|
+
function ot({ className: e, ...n }) {
|
|
1022
1022
|
return /* @__PURE__ */ t("div", {
|
|
1023
1023
|
"data-pharos-slot": "sheet-header",
|
|
1024
|
-
className: y(
|
|
1024
|
+
className: y(Z.header, e),
|
|
1025
1025
|
...n
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
|
|
1029
|
-
function
|
|
1028
|
+
ot.displayName = "SheetHeader";
|
|
1029
|
+
function st({ className: e, ...n }) {
|
|
1030
1030
|
return /* @__PURE__ */ t(p.Title, {
|
|
1031
1031
|
"data-pharos-slot": "sheet-title",
|
|
1032
|
-
className: y(
|
|
1032
|
+
className: y(Z.title, e),
|
|
1033
1033
|
...n
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
|
|
1037
|
-
function
|
|
1036
|
+
st.displayName = "SheetTitle";
|
|
1037
|
+
function ct({ className: e, ...n }) {
|
|
1038
1038
|
return /* @__PURE__ */ t(p.Description, {
|
|
1039
1039
|
"data-pharos-slot": "sheet-description",
|
|
1040
|
-
className: y(
|
|
1040
|
+
className: y(Z.description, e),
|
|
1041
1041
|
...n
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1045
|
-
function
|
|
1044
|
+
ct.displayName = "SheetDescription";
|
|
1045
|
+
function lt({ className: e, ...n }) {
|
|
1046
1046
|
return /* @__PURE__ */ t("div", {
|
|
1047
1047
|
"data-pharos-slot": "sheet-footer",
|
|
1048
|
-
className: y(
|
|
1048
|
+
className: y(Z.footer, e),
|
|
1049
1049
|
...n
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
|
-
|
|
1053
|
-
function
|
|
1052
|
+
lt.displayName = "SheetFooter";
|
|
1053
|
+
function ut(e) {
|
|
1054
1054
|
return /* @__PURE__ */ t(p.Close, {
|
|
1055
1055
|
"data-pharos-slot": "sheet-close",
|
|
1056
1056
|
...e
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
|
-
|
|
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";
|
|
1060
1126
|
//#endregion
|
|
1061
|
-
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 };
|
|
1062
1128
|
|
|
1063
1129
|
//# sourceMappingURL=index.js.map
|