@code-sherpas/pharos-react 0.14.2 → 0.15.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/Combobox.d.ts +1 -1
- package/dist/components/Combobox.d.ts.map +1 -1
- package/dist/components/Sheet.d.ts +112 -0
- package/dist/components/Sheet.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +341 -249
- 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,
|
|
@@ -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),
|
|
@@ -212,7 +213,7 @@ var O = {
|
|
|
212
213
|
success: "_success_zrawy_55",
|
|
213
214
|
warning: "_warning_zrawy_60",
|
|
214
215
|
info: "_info_zrawy_65"
|
|
215
|
-
},
|
|
216
|
+
}, te = v(O.badge, {
|
|
216
217
|
variants: { variant: {
|
|
217
218
|
default: O.default,
|
|
218
219
|
secondary: O.secondary,
|
|
@@ -224,80 +225,80 @@ var O = {
|
|
|
224
225
|
} },
|
|
225
226
|
defaultVariants: { variant: "default" }
|
|
226
227
|
});
|
|
227
|
-
function
|
|
228
|
+
function ne({ 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(te({ variant: i }), n),
|
|
232
233
|
...r
|
|
233
234
|
});
|
|
234
235
|
}
|
|
235
|
-
|
|
236
|
-
var
|
|
236
|
+
ne.displayName = "Badge";
|
|
237
|
+
var k = {
|
|
237
238
|
input: "_input_11emo_14",
|
|
238
239
|
sizeSm: "_sizeSm_11emo_97",
|
|
239
240
|
sizeMd: "_sizeMd_11emo_103",
|
|
240
241
|
sizeLg: "_sizeLg_11emo_109"
|
|
241
|
-
},
|
|
242
|
+
}, re = v(k.input, {
|
|
242
243
|
variants: { size: {
|
|
243
|
-
sm:
|
|
244
|
-
md:
|
|
245
|
-
lg:
|
|
244
|
+
sm: k.sizeSm,
|
|
245
|
+
md: k.sizeMd,
|
|
246
|
+
lg: k.sizeLg
|
|
246
247
|
} },
|
|
247
248
|
defaultVariants: { size: "md" }
|
|
248
249
|
});
|
|
249
|
-
function
|
|
250
|
+
function ie({ 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(re({ size: o }), n),
|
|
256
257
|
...a
|
|
257
258
|
});
|
|
258
259
|
}
|
|
259
|
-
|
|
260
|
-
var
|
|
260
|
+
ie.displayName = "Input";
|
|
261
|
+
var A = {
|
|
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
|
+
}, ae = v(A.textarea, {
|
|
266
267
|
variants: { size: {
|
|
267
|
-
sm:
|
|
268
|
-
md:
|
|
269
|
-
lg:
|
|
268
|
+
sm: A.sizeSm,
|
|
269
|
+
md: A.sizeMd,
|
|
270
|
+
lg: A.sizeLg
|
|
270
271
|
} },
|
|
271
272
|
defaultVariants: { size: "md" }
|
|
272
273
|
});
|
|
273
|
-
function
|
|
274
|
+
function j({ 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(ae({ size: a }), n),
|
|
279
280
|
...i
|
|
280
281
|
});
|
|
281
282
|
}
|
|
282
|
-
|
|
283
|
-
var
|
|
283
|
+
j.displayName = "Textarea";
|
|
284
|
+
var M = {
|
|
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(M.separator, M[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 P({ 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
|
+
P.displayName = "Card";
|
|
328
|
+
function F({ 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
|
+
F.displayName = "CardHeader";
|
|
336
|
+
function I({ 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
|
+
I.displayName = "CardTitle";
|
|
344
|
+
function L({ 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
|
+
L.displayName = "CardDescription";
|
|
352
|
+
function R({ 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
|
+
R.displayName = "CardContent";
|
|
360
|
+
function z({ 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
|
+
z.displayName = "CardFooter";
|
|
368
|
+
var B = {
|
|
368
369
|
root: "_root_1xx27_21",
|
|
369
370
|
shapeCircle: "_shapeCircle_1xx27_63",
|
|
370
371
|
shapeSquare: "_shapeSquare_1xx27_67",
|
|
@@ -374,35 +375,35 @@ var H = {
|
|
|
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
|
+
}, ce = r(null), V = r(null), H = r(null), le = {
|
|
379
|
+
sm: B.sizeSm,
|
|
380
|
+
md: B.sizeMd,
|
|
381
|
+
lg: B.sizeLg
|
|
382
|
+
}, ue = {
|
|
383
|
+
circle: B.shapeCircle,
|
|
384
|
+
square: B.shapeSquare
|
|
384
385
|
};
|
|
385
|
-
function
|
|
386
|
+
function de(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 fe(e) {
|
|
394
|
+
if (typeof e != "number") return le[e];
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
-
let p = a(
|
|
396
|
+
function U({ size: n, shape: r, className: i, style: o, render: l, ref: u, children: d, ...f }) {
|
|
397
|
+
let p = a(H), 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 = fe(m), S = de(m), C = typeof m == "number" ? String(m) : m;
|
|
404
|
+
return /* @__PURE__ */ t(ce.Provider, {
|
|
405
|
+
value: v,
|
|
406
|
+
children: /* @__PURE__ */ t(V.Provider, {
|
|
406
407
|
value: b,
|
|
407
408
|
children: e({
|
|
408
409
|
render: l ?? /* @__PURE__ */ t("span", {}),
|
|
@@ -412,7 +413,7 @@ function G({ 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(B.root, x, ue[h], i),
|
|
416
417
|
style: S ? {
|
|
417
418
|
...S,
|
|
418
419
|
...o
|
|
@@ -424,9 +425,9 @@ function G({ 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
|
+
U.displayName = "Avatar";
|
|
429
|
+
function W({ className: e, src: n, onLoad: r, onError: s, onLoadingStatusChange: c, ref: l, ...u }) {
|
|
430
|
+
let d = a(V), 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 K({ 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(B.image, e),
|
|
453
454
|
...u
|
|
454
455
|
});
|
|
455
456
|
}
|
|
456
|
-
|
|
457
|
-
function
|
|
458
|
-
let l = a(
|
|
457
|
+
W.displayName = "AvatarImage";
|
|
458
|
+
function G({ className: e, delayMs: n = 0, children: r, ref: i, ...s }) {
|
|
459
|
+
let l = a(V), [u, d] = c(n === 0);
|
|
459
460
|
return o(() => {
|
|
460
461
|
if (n === 0) {
|
|
461
462
|
d(!0);
|
|
@@ -467,13 +468,13 @@ function q({ 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(B.fallback, e),
|
|
471
472
|
...s,
|
|
472
473
|
children: r
|
|
473
474
|
});
|
|
474
475
|
}
|
|
475
|
-
|
|
476
|
-
function
|
|
476
|
+
G.displayName = "AvatarFallback";
|
|
477
|
+
function K({ 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 J({ 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(H.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(B.group, o),
|
|
494
495
|
...u,
|
|
495
|
-
children: [m, h > 0 ? /* @__PURE__ */ t(
|
|
496
|
+
children: [m, h > 0 ? /* @__PURE__ */ t(U, {
|
|
496
497
|
"aria-label": `${h} more`,
|
|
497
498
|
"data-pharos-slot": "avatar-group-overflow",
|
|
498
|
-
children: /* @__PURE__ */ t(
|
|
499
|
+
children: /* @__PURE__ */ t(G, { children: a ? a(h) : `+${h}` })
|
|
499
500
|
}) : null]
|
|
500
501
|
})
|
|
501
502
|
});
|
|
502
503
|
}
|
|
503
|
-
|
|
504
|
-
var
|
|
504
|
+
K.displayName = "AvatarGroup";
|
|
505
|
+
var q = {
|
|
505
506
|
positioner: "_positioner_ua6x3_9",
|
|
506
507
|
content: "_content_ua6x3_4",
|
|
507
508
|
item: "_item_ua6x3_5",
|
|
@@ -511,61 +512,61 @@ var Y = {
|
|
|
511
512
|
};
|
|
512
513
|
//#endregion
|
|
513
514
|
//#region src/components/DropdownMenu.tsx
|
|
514
|
-
function
|
|
515
|
+
function pe(e) {
|
|
515
516
|
return /* @__PURE__ */ t(l.Root, { ...e });
|
|
516
517
|
}
|
|
517
|
-
|
|
518
|
-
function
|
|
518
|
+
pe.displayName = "DropdownMenu";
|
|
519
|
+
function me(e) {
|
|
519
520
|
return /* @__PURE__ */ t(l.Trigger, { ...e });
|
|
520
521
|
}
|
|
521
|
-
|
|
522
|
-
function
|
|
522
|
+
me.displayName = "DropdownMenuTrigger";
|
|
523
|
+
function he({ 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: q.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(q.content, i),
|
|
531
532
|
...o,
|
|
532
533
|
children: a
|
|
533
534
|
})
|
|
534
535
|
}) });
|
|
535
536
|
}
|
|
536
|
-
|
|
537
|
-
function
|
|
537
|
+
he.displayName = "DropdownMenuContent";
|
|
538
|
+
function ge({ variant: e = "default", className: n, ...r }) {
|
|
538
539
|
return /* @__PURE__ */ t(l.Item, {
|
|
539
540
|
"data-pharos-variant": e,
|
|
540
|
-
className:
|
|
541
|
+
className: y(q.item, e === "destructive" && q.itemDestructive, n),
|
|
541
542
|
...r
|
|
542
543
|
});
|
|
543
544
|
}
|
|
544
|
-
|
|
545
|
-
function
|
|
545
|
+
ge.displayName = "DropdownMenuItem";
|
|
546
|
+
function _e({ className: e, ...n }) {
|
|
546
547
|
return /* @__PURE__ */ t(l.Separator, {
|
|
547
548
|
"data-pharos-slot": "dropdown-menu-separator",
|
|
548
|
-
className:
|
|
549
|
+
className: y(q.separator, e),
|
|
549
550
|
...n
|
|
550
551
|
});
|
|
551
552
|
}
|
|
552
|
-
|
|
553
|
-
function
|
|
553
|
+
_e.displayName = "DropdownMenuSeparator";
|
|
554
|
+
function ve({ className: e, ...n }) {
|
|
554
555
|
return /* @__PURE__ */ t(l.GroupLabel, {
|
|
555
556
|
"data-pharos-slot": "dropdown-menu-label",
|
|
556
|
-
className:
|
|
557
|
+
className: y(q.label, e),
|
|
557
558
|
...n
|
|
558
559
|
});
|
|
559
560
|
}
|
|
560
|
-
|
|
561
|
-
function
|
|
561
|
+
ve.displayName = "DropdownMenuLabel";
|
|
562
|
+
function ye(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
|
+
ye.displayName = "DropdownMenuGroup";
|
|
569
|
+
var J = {
|
|
569
570
|
positioner: "_positioner_ga28p_15",
|
|
570
571
|
content: "_content_ga28p_4",
|
|
571
572
|
title: "_title_ga28p_5",
|
|
@@ -573,54 +574,54 @@ var X = {
|
|
|
573
574
|
};
|
|
574
575
|
//#endregion
|
|
575
576
|
//#region src/components/Popover.tsx
|
|
576
|
-
function
|
|
577
|
+
function be(e) {
|
|
577
578
|
return /* @__PURE__ */ t(u.Root, { ...e });
|
|
578
579
|
}
|
|
579
|
-
|
|
580
|
-
function
|
|
580
|
+
be.displayName = "Popover";
|
|
581
|
+
function xe(e) {
|
|
581
582
|
return /* @__PURE__ */ t(u.Trigger, { ...e });
|
|
582
583
|
}
|
|
583
|
-
|
|
584
|
-
function
|
|
584
|
+
xe.displayName = "PopoverTrigger";
|
|
585
|
+
function Se({ 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: J.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(J.content, a),
|
|
594
595
|
...s,
|
|
595
596
|
children: o
|
|
596
597
|
})
|
|
597
598
|
}) });
|
|
598
599
|
}
|
|
599
|
-
|
|
600
|
-
function
|
|
600
|
+
Se.displayName = "PopoverContent";
|
|
601
|
+
function Ce({ className: e, ...n }) {
|
|
601
602
|
return /* @__PURE__ */ t(u.Title, {
|
|
602
603
|
"data-pharos-slot": "popover-title",
|
|
603
|
-
className:
|
|
604
|
+
className: y(J.title, e),
|
|
604
605
|
...n
|
|
605
606
|
});
|
|
606
607
|
}
|
|
607
|
-
|
|
608
|
-
function
|
|
608
|
+
Ce.displayName = "PopoverTitle";
|
|
609
|
+
function we({ className: e, ...n }) {
|
|
609
610
|
return /* @__PURE__ */ t(u.Description, {
|
|
610
611
|
"data-pharos-slot": "popover-description",
|
|
611
|
-
className:
|
|
612
|
+
className: y(J.description, e),
|
|
612
613
|
...n
|
|
613
614
|
});
|
|
614
615
|
}
|
|
615
|
-
|
|
616
|
-
function
|
|
616
|
+
we.displayName = "PopoverDescription";
|
|
617
|
+
function Y(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
|
+
Y.displayName = "PopoverClose";
|
|
624
|
+
var X = {
|
|
624
625
|
trigger: "_trigger_1w6j6_35",
|
|
625
626
|
sizeSm: "_sizeSm_1w6j6_92",
|
|
626
627
|
sizeMd: "_sizeMd_1w6j6_98",
|
|
@@ -637,11 +638,11 @@ var Z = {
|
|
|
637
638
|
};
|
|
638
639
|
//#endregion
|
|
639
640
|
//#region src/components/Select.tsx
|
|
640
|
-
function
|
|
641
|
+
function Te(e) {
|
|
641
642
|
return /* @__PURE__ */ t(d.Root, { ...e });
|
|
642
643
|
}
|
|
643
|
-
|
|
644
|
-
function
|
|
644
|
+
Te.displayName = "Select";
|
|
645
|
+
function Ee() {
|
|
645
646
|
return /* @__PURE__ */ t("svg", {
|
|
646
647
|
viewBox: "0 0 24 24",
|
|
647
648
|
fill: "none",
|
|
@@ -655,7 +656,7 @@ function we() {
|
|
|
655
656
|
})
|
|
656
657
|
});
|
|
657
658
|
}
|
|
658
|
-
function
|
|
659
|
+
function De() {
|
|
659
660
|
return /* @__PURE__ */ t("svg", {
|
|
660
661
|
viewBox: "0 0 24 24",
|
|
661
662
|
fill: "none",
|
|
@@ -669,39 +670,39 @@ function Te() {
|
|
|
669
670
|
})
|
|
670
671
|
});
|
|
671
672
|
}
|
|
672
|
-
var
|
|
673
|
+
var Oe = v(X.trigger, {
|
|
673
674
|
variants: { size: {
|
|
674
|
-
sm:
|
|
675
|
-
md:
|
|
676
|
-
lg:
|
|
675
|
+
sm: X.sizeSm,
|
|
676
|
+
md: X.sizeMd,
|
|
677
|
+
lg: X.sizeLg
|
|
677
678
|
} },
|
|
678
679
|
defaultVariants: { size: "md" }
|
|
679
680
|
});
|
|
680
|
-
function
|
|
681
|
+
function ke({ 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(Oe({ size: o }), r),
|
|
686
687
|
...a,
|
|
687
688
|
children: [i, /* @__PURE__ */ t(d.Icon, {
|
|
688
|
-
className:
|
|
689
|
-
children: /* @__PURE__ */ t(
|
|
689
|
+
className: X.icon,
|
|
690
|
+
children: /* @__PURE__ */ t(Ee, {})
|
|
690
691
|
})]
|
|
691
692
|
});
|
|
692
693
|
}
|
|
693
|
-
|
|
694
|
-
function
|
|
694
|
+
ke.displayName = "SelectTrigger";
|
|
695
|
+
function Ae({ className: e, ...n }) {
|
|
695
696
|
return /* @__PURE__ */ t(d.Value, {
|
|
696
697
|
"data-pharos-slot": "select-value",
|
|
697
|
-
className:
|
|
698
|
+
className: y(X.value, e),
|
|
698
699
|
...n
|
|
699
700
|
});
|
|
700
701
|
}
|
|
701
|
-
|
|
702
|
-
function
|
|
702
|
+
Ae.displayName = "SelectValue";
|
|
703
|
+
function je({ 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: X.positioner,
|
|
705
706
|
alignItemWithTrigger: !1,
|
|
706
707
|
side: e,
|
|
707
708
|
align: n,
|
|
@@ -709,54 +710,54 @@ function ke({ 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(X.content, a),
|
|
713
714
|
...s,
|
|
714
715
|
children: /* @__PURE__ */ t(d.List, { children: o })
|
|
715
716
|
})
|
|
716
717
|
}) });
|
|
717
718
|
}
|
|
718
|
-
|
|
719
|
-
function
|
|
719
|
+
je.displayName = "SelectContent";
|
|
720
|
+
function Me({ className: e, children: r, ...i }) {
|
|
720
721
|
return /* @__PURE__ */ n(d.Item, {
|
|
721
722
|
"data-pharos-slot": "select-item",
|
|
722
|
-
className:
|
|
723
|
+
className: y(X.item, e),
|
|
723
724
|
...i,
|
|
724
725
|
children: [/* @__PURE__ */ t(d.ItemText, {
|
|
725
|
-
className:
|
|
726
|
+
className: X.itemText,
|
|
726
727
|
children: r
|
|
727
728
|
}), /* @__PURE__ */ t(d.ItemIndicator, {
|
|
728
|
-
className:
|
|
729
|
-
children: /* @__PURE__ */ t(
|
|
729
|
+
className: X.itemIndicator,
|
|
730
|
+
children: /* @__PURE__ */ t(De, {})
|
|
730
731
|
})]
|
|
731
732
|
});
|
|
732
733
|
}
|
|
733
|
-
|
|
734
|
-
function
|
|
734
|
+
Me.displayName = "SelectItem";
|
|
735
|
+
function Ne(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
|
+
Ne.displayName = "SelectGroup";
|
|
742
|
+
function Pe({ className: e, ...n }) {
|
|
742
743
|
return /* @__PURE__ */ t(d.GroupLabel, {
|
|
743
744
|
"data-pharos-slot": "select-label",
|
|
744
|
-
className:
|
|
745
|
+
className: y(X.label, e),
|
|
745
746
|
...n
|
|
746
747
|
});
|
|
747
748
|
}
|
|
748
|
-
|
|
749
|
-
function
|
|
749
|
+
Pe.displayName = "SelectLabel";
|
|
750
|
+
function Fe({ 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(X.separator, e),
|
|
755
756
|
...n
|
|
756
757
|
});
|
|
757
758
|
}
|
|
758
|
-
|
|
759
|
-
var
|
|
759
|
+
Fe.displayName = "SelectSeparator";
|
|
760
|
+
var Z = {
|
|
760
761
|
control: "_control_1dd5w_5",
|
|
761
762
|
chips: "_chips_1dd5w_61",
|
|
762
763
|
input: "_input_1dd5w_70",
|
|
@@ -776,14 +777,19 @@ var Q = {
|
|
|
776
777
|
empty: "_empty_1dd5w_294",
|
|
777
778
|
label: "_label_1dd5w_304",
|
|
778
779
|
separator: "_separator_1dd5w_311"
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
780
|
+
}, Q = r(null);
|
|
781
|
+
function Ie(e) {
|
|
782
|
+
let [n, r] = c(null), i = s(() => ({
|
|
783
|
+
anchorElement: n,
|
|
784
|
+
setAnchorElement: r
|
|
785
|
+
}), [n]);
|
|
786
|
+
return /* @__PURE__ */ t(Q.Provider, {
|
|
787
|
+
value: i,
|
|
788
|
+
children: /* @__PURE__ */ t(f.Root, { ...e })
|
|
789
|
+
});
|
|
784
790
|
}
|
|
785
|
-
|
|
786
|
-
function
|
|
791
|
+
Ie.displayName = "Combobox";
|
|
792
|
+
function Le() {
|
|
787
793
|
return /* @__PURE__ */ t("svg", {
|
|
788
794
|
viewBox: "0 0 24 24",
|
|
789
795
|
fill: "none",
|
|
@@ -797,7 +803,7 @@ function Fe() {
|
|
|
797
803
|
})
|
|
798
804
|
});
|
|
799
805
|
}
|
|
800
|
-
function
|
|
806
|
+
function Re() {
|
|
801
807
|
return /* @__PURE__ */ t("svg", {
|
|
802
808
|
viewBox: "0 0 24 24",
|
|
803
809
|
fill: "none",
|
|
@@ -811,7 +817,7 @@ function Ie() {
|
|
|
811
817
|
})
|
|
812
818
|
});
|
|
813
819
|
}
|
|
814
|
-
function
|
|
820
|
+
function ze() {
|
|
815
821
|
return /* @__PURE__ */ t("svg", {
|
|
816
822
|
viewBox: "0 0 24 24",
|
|
817
823
|
fill: "none",
|
|
@@ -825,147 +831,233 @@ function Le() {
|
|
|
825
831
|
})
|
|
826
832
|
});
|
|
827
833
|
}
|
|
828
|
-
function
|
|
834
|
+
function Be({ className: e, ...n }) {
|
|
829
835
|
return /* @__PURE__ */ t(f.InputGroup, {
|
|
830
836
|
"data-pharos-slot": "combobox-control",
|
|
831
|
-
className:
|
|
837
|
+
className: y(Z.control, e),
|
|
832
838
|
...n
|
|
833
839
|
});
|
|
834
840
|
}
|
|
835
|
-
|
|
836
|
-
function
|
|
841
|
+
Be.displayName = "ComboboxControl";
|
|
842
|
+
function Ve({ className: e, ref: n, ...r }) {
|
|
843
|
+
let o = a(Q), s = i((e) => {
|
|
844
|
+
o?.setAnchorElement(e), typeof n == "function" ? n(e) : n && (n.current = e);
|
|
845
|
+
}, [o, n]);
|
|
837
846
|
return /* @__PURE__ */ t(f.Chips, {
|
|
838
847
|
"data-pharos-slot": "combobox-chips",
|
|
839
|
-
className:
|
|
840
|
-
|
|
848
|
+
className: y(Z.control, Z.chips, e),
|
|
849
|
+
ref: s,
|
|
850
|
+
...r
|
|
841
851
|
});
|
|
842
852
|
}
|
|
843
|
-
|
|
844
|
-
var
|
|
853
|
+
Ve.displayName = "ComboboxChips";
|
|
854
|
+
var He = v(Z.input, {
|
|
845
855
|
variants: { size: {
|
|
846
|
-
sm:
|
|
847
|
-
md:
|
|
848
|
-
lg:
|
|
856
|
+
sm: Z.inputSizeSm,
|
|
857
|
+
md: Z.inputSizeMd,
|
|
858
|
+
lg: Z.inputSizeLg
|
|
849
859
|
} },
|
|
850
860
|
defaultVariants: { size: "md" }
|
|
851
861
|
});
|
|
852
|
-
function
|
|
862
|
+
function Ue({ size: e, inset: n = !1, className: r, ...i }) {
|
|
853
863
|
let a = e ?? "md";
|
|
854
864
|
return /* @__PURE__ */ t(f.Input, {
|
|
855
865
|
"data-pharos-slot": "combobox-input",
|
|
856
866
|
"data-pharos-size": a,
|
|
857
|
-
className:
|
|
867
|
+
className: y(n ? y(Z.input, Z.chipsInput) : He({ size: a }), r),
|
|
858
868
|
...i
|
|
859
869
|
});
|
|
860
870
|
}
|
|
861
|
-
|
|
862
|
-
function
|
|
871
|
+
Ue.displayName = "ComboboxInput";
|
|
872
|
+
function We({ className: e, children: n, ...r }) {
|
|
863
873
|
return /* @__PURE__ */ t(f.Trigger, {
|
|
864
874
|
"data-pharos-slot": "combobox-trigger",
|
|
865
|
-
className:
|
|
875
|
+
className: y(Z.trigger, e),
|
|
866
876
|
...r,
|
|
867
|
-
children: n ?? /* @__PURE__ */ t(
|
|
877
|
+
children: n ?? /* @__PURE__ */ t(Le, {})
|
|
868
878
|
});
|
|
869
879
|
}
|
|
870
|
-
|
|
871
|
-
function
|
|
880
|
+
We.displayName = "ComboboxTrigger";
|
|
881
|
+
function Ge({ className: e, children: n, ...r }) {
|
|
872
882
|
return /* @__PURE__ */ t(f.Clear, {
|
|
873
883
|
"data-pharos-slot": "combobox-clear",
|
|
874
|
-
className:
|
|
884
|
+
className: y(Z.clear, e),
|
|
875
885
|
...r,
|
|
876
|
-
children: n ?? /* @__PURE__ */ t(
|
|
886
|
+
children: n ?? /* @__PURE__ */ t(ze, {})
|
|
877
887
|
});
|
|
878
888
|
}
|
|
879
|
-
|
|
880
|
-
function
|
|
889
|
+
Ge.displayName = "ComboboxClear";
|
|
890
|
+
function Ke({ className: e, ...n }) {
|
|
881
891
|
return /* @__PURE__ */ t(f.Chip, {
|
|
882
892
|
"data-pharos-slot": "combobox-chip",
|
|
883
|
-
className:
|
|
893
|
+
className: y(Z.chip, e),
|
|
884
894
|
...n
|
|
885
895
|
});
|
|
886
896
|
}
|
|
887
|
-
|
|
888
|
-
function
|
|
897
|
+
Ke.displayName = "ComboboxChip";
|
|
898
|
+
function qe({ className: e, children: n, "aria-label": r = "Remove", ...i }) {
|
|
889
899
|
return /* @__PURE__ */ t(f.ChipRemove, {
|
|
890
900
|
"data-pharos-slot": "combobox-chip-remove",
|
|
891
901
|
"aria-label": r,
|
|
892
|
-
className:
|
|
902
|
+
className: y(Z.chipRemove, e),
|
|
893
903
|
...i,
|
|
894
|
-
children: n ?? /* @__PURE__ */ t(
|
|
904
|
+
children: n ?? /* @__PURE__ */ t(ze, {})
|
|
895
905
|
});
|
|
896
906
|
}
|
|
897
|
-
|
|
898
|
-
function
|
|
907
|
+
qe.displayName = "ComboboxChipRemove";
|
|
908
|
+
function Je({ side: e = "bottom", align: n = "start", sideOffset: r = 8, alignOffset: i = 0, className: o, children: s, ...c }) {
|
|
909
|
+
let l = a(Q)?.anchorElement ?? void 0;
|
|
899
910
|
return /* @__PURE__ */ t(f.Portal, { children: /* @__PURE__ */ t(f.Positioner, {
|
|
900
|
-
className:
|
|
911
|
+
className: Z.positioner,
|
|
912
|
+
anchor: l,
|
|
901
913
|
side: e,
|
|
902
914
|
align: n,
|
|
903
915
|
sideOffset: r,
|
|
904
916
|
alignOffset: i,
|
|
905
917
|
children: /* @__PURE__ */ t(f.Popup, {
|
|
906
918
|
"data-pharos-slot": "combobox-content",
|
|
907
|
-
className:
|
|
908
|
-
...
|
|
909
|
-
children:
|
|
919
|
+
className: y(Z.content, o),
|
|
920
|
+
...c,
|
|
921
|
+
children: s
|
|
910
922
|
})
|
|
911
923
|
}) });
|
|
912
924
|
}
|
|
913
|
-
|
|
914
|
-
function
|
|
925
|
+
Je.displayName = "ComboboxContent";
|
|
926
|
+
function Ye({ className: e, ...n }) {
|
|
915
927
|
return /* @__PURE__ */ t(f.List, {
|
|
916
928
|
"data-pharos-slot": "combobox-list",
|
|
917
929
|
className: e,
|
|
918
930
|
...n
|
|
919
931
|
});
|
|
920
932
|
}
|
|
921
|
-
|
|
922
|
-
function
|
|
933
|
+
Ye.displayName = "ComboboxList";
|
|
934
|
+
function Xe({ className: e, children: r, ...i }) {
|
|
923
935
|
return /* @__PURE__ */ n(f.Item, {
|
|
924
936
|
"data-pharos-slot": "combobox-item",
|
|
925
|
-
className:
|
|
937
|
+
className: y(Z.item, e),
|
|
926
938
|
...i,
|
|
927
939
|
children: [/* @__PURE__ */ t("span", {
|
|
928
|
-
className:
|
|
940
|
+
className: Z.itemText,
|
|
929
941
|
children: r
|
|
930
942
|
}), /* @__PURE__ */ t(f.ItemIndicator, {
|
|
931
|
-
className:
|
|
932
|
-
children: /* @__PURE__ */ t(
|
|
943
|
+
className: Z.itemIndicator,
|
|
944
|
+
children: /* @__PURE__ */ t(Re, {})
|
|
933
945
|
})]
|
|
934
946
|
});
|
|
935
947
|
}
|
|
936
|
-
|
|
937
|
-
function
|
|
948
|
+
Xe.displayName = "ComboboxItem";
|
|
949
|
+
function Ze({ className: e, ...n }) {
|
|
938
950
|
return /* @__PURE__ */ t(f.Empty, {
|
|
939
951
|
"data-pharos-slot": "combobox-empty",
|
|
940
|
-
className:
|
|
952
|
+
className: y(Z.empty, e),
|
|
941
953
|
...n
|
|
942
954
|
});
|
|
943
955
|
}
|
|
944
|
-
|
|
945
|
-
function
|
|
956
|
+
Ze.displayName = "ComboboxEmpty";
|
|
957
|
+
function Qe(e) {
|
|
946
958
|
return /* @__PURE__ */ t(f.Group, {
|
|
947
959
|
"data-pharos-slot": "combobox-group",
|
|
948
960
|
...e
|
|
949
961
|
});
|
|
950
962
|
}
|
|
951
|
-
|
|
952
|
-
function
|
|
963
|
+
Qe.displayName = "ComboboxGroup";
|
|
964
|
+
function $e({ className: e, ...n }) {
|
|
953
965
|
return /* @__PURE__ */ t(f.GroupLabel, {
|
|
954
966
|
"data-pharos-slot": "combobox-group-label",
|
|
955
|
-
className:
|
|
967
|
+
className: y(Z.label, e),
|
|
956
968
|
...n
|
|
957
969
|
});
|
|
958
970
|
}
|
|
959
|
-
|
|
960
|
-
function
|
|
971
|
+
$e.displayName = "ComboboxGroupLabel";
|
|
972
|
+
function et({ className: e, ...n }) {
|
|
961
973
|
return /* @__PURE__ */ t(f.Separator, {
|
|
962
974
|
"data-pharos-slot": "combobox-separator",
|
|
963
|
-
className:
|
|
975
|
+
className: y(Z.separator, e),
|
|
976
|
+
...n
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
et.displayName = "ComboboxSeparator";
|
|
980
|
+
var $ = {
|
|
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 tt(e) {
|
|
995
|
+
return /* @__PURE__ */ t(p.Root, { ...e });
|
|
996
|
+
}
|
|
997
|
+
tt.displayName = "Sheet";
|
|
998
|
+
function nt(e) {
|
|
999
|
+
return /* @__PURE__ */ t(p.Trigger, { ...e });
|
|
1000
|
+
}
|
|
1001
|
+
nt.displayName = "SheetTrigger";
|
|
1002
|
+
var rt = v($.content, {
|
|
1003
|
+
variants: { side: {
|
|
1004
|
+
top: $.sideTop,
|
|
1005
|
+
right: $.sideRight,
|
|
1006
|
+
bottom: $.sideBottom,
|
|
1007
|
+
left: $.sideLeft
|
|
1008
|
+
} },
|
|
1009
|
+
defaultVariants: { side: "right" }
|
|
1010
|
+
});
|
|
1011
|
+
function it({ side: e = "right", className: r, children: i, ...a }) {
|
|
1012
|
+
return /* @__PURE__ */ n(p.Portal, { children: [/* @__PURE__ */ t(p.Backdrop, { className: $.backdrop }), /* @__PURE__ */ t(p.Popup, {
|
|
1013
|
+
"data-pharos-slot": "sheet-content",
|
|
1014
|
+
"data-pharos-side": e ?? "right",
|
|
1015
|
+
className: y(rt({ side: e }), r),
|
|
1016
|
+
...a,
|
|
1017
|
+
children: i
|
|
1018
|
+
})] });
|
|
1019
|
+
}
|
|
1020
|
+
it.displayName = "SheetContent";
|
|
1021
|
+
function at({ className: e, ...n }) {
|
|
1022
|
+
return /* @__PURE__ */ t("div", {
|
|
1023
|
+
"data-pharos-slot": "sheet-header",
|
|
1024
|
+
className: y($.header, e),
|
|
1025
|
+
...n
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
at.displayName = "SheetHeader";
|
|
1029
|
+
function ot({ className: e, ...n }) {
|
|
1030
|
+
return /* @__PURE__ */ t(p.Title, {
|
|
1031
|
+
"data-pharos-slot": "sheet-title",
|
|
1032
|
+
className: y($.title, e),
|
|
1033
|
+
...n
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
ot.displayName = "SheetTitle";
|
|
1037
|
+
function st({ className: e, ...n }) {
|
|
1038
|
+
return /* @__PURE__ */ t(p.Description, {
|
|
1039
|
+
"data-pharos-slot": "sheet-description",
|
|
1040
|
+
className: y($.description, e),
|
|
964
1041
|
...n
|
|
965
1042
|
});
|
|
966
1043
|
}
|
|
967
|
-
|
|
1044
|
+
st.displayName = "SheetDescription";
|
|
1045
|
+
function ct({ className: e, ...n }) {
|
|
1046
|
+
return /* @__PURE__ */ t("div", {
|
|
1047
|
+
"data-pharos-slot": "sheet-footer",
|
|
1048
|
+
className: y($.footer, e),
|
|
1049
|
+
...n
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
ct.displayName = "SheetFooter";
|
|
1053
|
+
function lt(e) {
|
|
1054
|
+
return /* @__PURE__ */ t(p.Close, {
|
|
1055
|
+
"data-pharos-slot": "sheet-close",
|
|
1056
|
+
...e
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
lt.displayName = "SheetClose";
|
|
968
1060
|
//#endregion
|
|
969
|
-
export {
|
|
1061
|
+
export { U as Avatar, G as AvatarFallback, K as AvatarGroup, W as AvatarImage, ne as Badge, S as Button, P as Card, R as CardContent, L as CardDescription, z as CardFooter, F as CardHeader, I as CardTitle, Ie as Combobox, Ke as ComboboxChip, qe as ComboboxChipRemove, Ve as ComboboxChips, Ge as ComboboxClear, Je as ComboboxContent, Be as ComboboxControl, Ze as ComboboxEmpty, Qe as ComboboxGroup, $e as ComboboxGroupLabel, Ue as ComboboxInput, Xe as ComboboxItem, Ye as ComboboxList, et as ComboboxSeparator, We as ComboboxTrigger, pe as DropdownMenu, he as DropdownMenuContent, ye as DropdownMenuGroup, ge as DropdownMenuItem, ve as DropdownMenuLabel, _e as DropdownMenuSeparator, me as DropdownMenuTrigger, D as IconButton, ie as Input, be as Popover, Y as PopoverClose, Se as PopoverContent, we as PopoverDescription, Ce as PopoverTitle, xe as PopoverTrigger, Te as Select, je as SelectContent, Ne as SelectGroup, Me as SelectItem, Pe as SelectLabel, Fe as SelectSeparator, ke as SelectTrigger, Ae as SelectValue, oe as Separator, tt as Sheet, lt as SheetClose, it as SheetContent, st as SheetDescription, ct as SheetFooter, at as SheetHeader, ot as SheetTitle, nt as SheetTrigger, w as Spinner, j as Textarea, te as badgeVariants, x as buttonVariants, se as cardVariants, y as cn, E as iconButtonVariants, re as inputVariants, rt as sheetVariants, ee as spinnerVariants, ae as textareaVariants };
|
|
970
1062
|
|
|
971
1063
|
//# sourceMappingURL=index.js.map
|