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