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