@contentstudio/ui 0.1.4 → 0.1.5
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/index.js +160 -158
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, computed as g, openBlock as p, createElementBlock as x, normalizeClass as C, renderSlot as L, createElementVNode as v, createCommentVNode as B, withKeys as Lt, withModifiers as
|
|
1
|
+
import { defineComponent as A, computed as g, openBlock as p, createElementBlock as x, normalizeClass as C, renderSlot as L, createElementVNode as v, createCommentVNode as B, withKeys as Lt, withModifiers as nt, toDisplayString as P, createTextVNode as te, mergeProps as ee, createBlock as K, resolveDynamicComponent as pe, ref as O, watch as ve, onMounted as ot, onUnmounted as At, withDirectives as fe, vModelText as Ot, Fragment as ge, renderList as We, vShow as Ae, normalizeStyle as E, unref as M, Transition as ke, withCtx as ne, Teleport as at, createVNode as he, shallowRef as Pt, getCurrentScope as lt, onScopeDispose as rt, shallowReadonly as ie, readonly as Dt, toValue as Rt, inject as it, provide as ct, createStaticVNode as Vt } from "vue";
|
|
2
2
|
const Fe = {
|
|
3
3
|
primary: {
|
|
4
4
|
base: "blue",
|
|
@@ -124,7 +124,7 @@ const Fe = {
|
|
|
124
124
|
if (t === "filled")
|
|
125
125
|
return "cstu-text-white";
|
|
126
126
|
const e = Fe[s];
|
|
127
|
-
return `text-${e.base}-${e.main}`;
|
|
127
|
+
return `cstu-text-${e.base}-${e.main}`;
|
|
128
128
|
}, Et = (s) => {
|
|
129
129
|
const t = ["cstu-shadow-sm", "cstu-transition-all cstu-duration-200"];
|
|
130
130
|
switch (s) {
|
|
@@ -177,67 +177,67 @@ const Fe = {
|
|
|
177
177
|
xl: { padding: { x: "cstu-px-6", y: "cstu-py-5" }, text: "cstu-text-xl" }
|
|
178
178
|
},
|
|
179
179
|
switch: {
|
|
180
|
-
xs: { padding: { x: "px-0", y: "py-0" }, text: "text-xs", height: "h-4" },
|
|
181
|
-
sm: { padding: { x: "px-0", y: "py-0" }, text: "text-sm", height: "h-5" },
|
|
182
|
-
md: { padding: { x: "px-0", y: "py-0" }, text: "text-base", height: "h-6" },
|
|
183
|
-
lg: { padding: { x: "px-0", y: "py-0" }, text: "text-lg", height: "h-7" },
|
|
184
|
-
xl: { padding: { x: "px-0", y: "py-0" }, text: "text-xl", height: "h-8" }
|
|
180
|
+
xs: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-xs", height: "cstu-h-4" },
|
|
181
|
+
sm: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-sm", height: "cstu-h-5" },
|
|
182
|
+
md: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-base", height: "cstu-h-6" },
|
|
183
|
+
lg: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-lg", height: "cstu-h-7" },
|
|
184
|
+
xl: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-xl", height: "cstu-h-8" }
|
|
185
185
|
},
|
|
186
186
|
chip: {
|
|
187
|
-
xs: { padding: { x: "px-1.5", y: "py-0.5" }, text: "text-xs", icon: "w-2.5 h-2.5" },
|
|
188
|
-
sm: { padding: { x: "px-2", y: "py-1" }, text: "text-sm", icon: "w-3 h-3" },
|
|
189
|
-
md: { padding: { x: "px-2.5", y: "py-1.5" }, text: "text-base", icon: "w-3.5 h-3.5" },
|
|
190
|
-
lg: { padding: { x: "px-3", y: "py-2" }, text: "text-lg", icon: "w-4 h-4" },
|
|
191
|
-
xl: { padding: { x: "px-3.5", y: "py-2.5" }, text: "text-xl", icon: "w-4.5 h-4.5" }
|
|
187
|
+
xs: { padding: { x: "cstu-px-1.5", y: "cstu-py-0.5" }, text: "cstu-text-xs", icon: "cstu-w-2.5 cstu-h-2.5" },
|
|
188
|
+
sm: { padding: { x: "cstu-px-2", y: "cstu-py-1" }, text: "cstu-text-sm", icon: "cstu-w-3 cstu-h-3" },
|
|
189
|
+
md: { padding: { x: "cstu-px-2.5", y: "cstu-py-1.5" }, text: "cstu-text-base", icon: "cstu-w-3.5 cstu-h-3.5" },
|
|
190
|
+
lg: { padding: { x: "cstu-px-3", y: "cstu-py-2" }, text: "cstu-text-lg", icon: "cstu-w-4 cstu-h-4" },
|
|
191
|
+
xl: { padding: { x: "cstu-px-3.5", y: "cstu-py-2.5" }, text: "cstu-text-xl", icon: "cstu-w-4.5 cstu-h-4.5" }
|
|
192
192
|
},
|
|
193
193
|
checkbox: {
|
|
194
|
-
xs: { padding: { x: "px-0", y: "py-0" }, text: "text-xs", icon: "w-2 h-2" },
|
|
195
|
-
sm: { padding: { x: "px-0", y: "py-0" }, text: "text-sm", icon: "w-2.5 h-2.5" },
|
|
196
|
-
md: { padding: { x: "px-0", y: "py-0" }, text: "text-base", icon: "w-3 h-3" },
|
|
197
|
-
lg: { padding: { x: "px-0", y: "py-0" }, text: "text-lg", icon: "w-4 h-4" },
|
|
198
|
-
xl: { padding: { x: "px-0", y: "py-0" }, text: "text-xl", icon: "w-5 h-5" }
|
|
194
|
+
xs: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-xs", icon: "cstu-w-2 cstu-h-2" },
|
|
195
|
+
sm: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-sm", icon: "cstu-w-2.5 cstu-h-2.5" },
|
|
196
|
+
md: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-base", icon: "cstu-w-3 cstu-h-3" },
|
|
197
|
+
lg: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-lg", icon: "cstu-w-4 cstu-h-4" },
|
|
198
|
+
xl: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-xl", icon: "cstu-w-5 cstu-h-5" }
|
|
199
199
|
},
|
|
200
200
|
indicator: {
|
|
201
|
-
xs: { padding: { x: "px-0.5", y: "py-0.5" }, text: "text-[10px]", height: "h-3.5 min-w-3.5" },
|
|
202
|
-
sm: { padding: { x: "px-1", y: "py-0.5" }, text: "text-[11px]", height: "h-4 min-w-4" },
|
|
203
|
-
md: { padding: { x: "px-1.5", y: "py-0.5" }, text: "text-xs", height: "h-5 min-w-5" },
|
|
204
|
-
lg: { padding: { x: "px-2", y: "py-0.5" }, text: "text-xs", height: "h-6 min-w-6" },
|
|
205
|
-
xl: { padding: { x: "px-2.5", y: "py-0.5" }, text: "text-sm", height: "h-7 min-w-7" }
|
|
201
|
+
xs: { padding: { x: "cstu-px-0.5", y: "cstu-py-0.5" }, text: "cstu-text-[10px]", height: "cstu-h-3.5 cstu-min-w-3.5" },
|
|
202
|
+
sm: { padding: { x: "cstu-px-1", y: "cstu-py-0.5" }, text: "cstu-text-[11px]", height: "cstu-h-4 cstu-min-w-4" },
|
|
203
|
+
md: { padding: { x: "cstu-px-1.5", y: "cstu-py-0.5" }, text: "cstu-text-xs", height: "cstu-h-5 cstu-min-w-5" },
|
|
204
|
+
lg: { padding: { x: "cstu-px-2", y: "cstu-py-0.5" }, text: "cstu-text-xs", height: "cstu-h-6 cstu-min-w-6" },
|
|
205
|
+
xl: { padding: { x: "cstu-px-2.5", y: "cstu-py-0.5" }, text: "cstu-text-sm", height: "cstu-h-7 cstu-min-w-7" }
|
|
206
206
|
},
|
|
207
207
|
progress: {
|
|
208
|
-
xs: { padding: { x: "px-0", y: "py-0" }, text: "text-xs", height: "h-1" },
|
|
209
|
-
sm: { padding: { x: "px-0", y: "py-0" }, text: "text-sm", height: "h-1.5" },
|
|
210
|
-
md: { padding: { x: "px-0", y: "py-0" }, text: "text-base", height: "h-2" },
|
|
211
|
-
lg: { padding: { x: "px-0", y: "py-0" }, text: "text-sm", height: "h-6" },
|
|
212
|
-
xl: { padding: { x: "px-0", y: "py-0" }, text: "text-base", height: "h-8" }
|
|
208
|
+
xs: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-xs", height: "cstu-h-1" },
|
|
209
|
+
sm: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-sm", height: "cstu-h-1.5" },
|
|
210
|
+
md: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-base", height: "cstu-h-2" },
|
|
211
|
+
lg: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-sm", height: "cstu-h-6" },
|
|
212
|
+
xl: { padding: { x: "cstu-px-0", y: "cstu-py-0" }, text: "cstu-text-base", height: "cstu-h-8" }
|
|
213
213
|
},
|
|
214
214
|
alert: {
|
|
215
|
-
xs: { padding: { x: "px-3", y: "py-2" }, text: "text-xs", icon: "w-4 h-4" },
|
|
216
|
-
sm: { padding: { x: "px-3", y: "py-2.5" }, text: "text-sm", icon: "w-5 h-5" },
|
|
217
|
-
md: { padding: { x: "px-4", y: "py-3" }, text: "text-base", icon: "w-5 h-5" },
|
|
218
|
-
lg: { padding: { x: "px-5", y: "py-4" }, text: "text-lg", icon: "w-6 h-6" },
|
|
219
|
-
xl: { padding: { x: "px-6", y: "py-5" }, text: "text-xl", icon: "w-7 h-7" }
|
|
215
|
+
xs: { padding: { x: "cstu-px-3", y: "cstu-py-2" }, text: "cstu-text-xs", icon: "cstu-w-4 cstu-h-4" },
|
|
216
|
+
sm: { padding: { x: "cstu-px-3", y: "cstu-py-2.5" }, text: "cstu-text-sm", icon: "cstu-w-5 cstu-h-5" },
|
|
217
|
+
md: { padding: { x: "cstu-px-4", y: "cstu-py-3" }, text: "cstu-text-base", icon: "cstu-w-5 cstu-h-5" },
|
|
218
|
+
lg: { padding: { x: "cstu-px-5", y: "cstu-py-4" }, text: "cstu-text-lg", icon: "cstu-w-6 cstu-h-6" },
|
|
219
|
+
xl: { padding: { x: "cstu-px-6", y: "cstu-py-5" }, text: "cstu-text-xl", icon: "cstu-w-7 cstu-h-7" }
|
|
220
220
|
},
|
|
221
221
|
segmentedControl: {
|
|
222
|
-
xs: { gap: "gap-[8px]", padding: { x: "px-[10.5px]", y: "py-[3.5px]" }, text: "text-xs", height: "h-6" },
|
|
223
|
-
sm: { gap: "gap-[9px]", padding: { x: "px-[12px]", y: "py-[4px]" }, text: "text-sm", height: "h-8" },
|
|
224
|
-
md: { gap: "gap-[10px]", padding: { x: "px-[13.5px]", y: "py-[4.5px]" }, text: "text-base", height: "h-10" },
|
|
225
|
-
lg: { gap: "gap-[11px]", padding: { x: "px-[15px]", y: "py-[5px]" }, text: "text-lg", height: "h-12" },
|
|
226
|
-
xl: { gap: "gap-[12px]", padding: { x: "px-[16.5px]", y: "py-[5.5px]" }, text: "text-xl", height: "h-14" }
|
|
222
|
+
xs: { gap: "cstu-gap-[8px]", padding: { x: "cstu-px-[10.5px]", y: "cstu-py-[3.5px]" }, text: "cstu-text-xs", height: "cstu-h-6" },
|
|
223
|
+
sm: { gap: "cstu-gap-[9px]", padding: { x: "cstu-px-[12px]", y: "cstu-py-[4px]" }, text: "cstu-text-sm", height: "cstu-h-8" },
|
|
224
|
+
md: { gap: "cstu-gap-[10px]", padding: { x: "cstu-px-[13.5px]", y: "cstu-py-[4.5px]" }, text: "cstu-text-base", height: "cstu-h-10" },
|
|
225
|
+
lg: { gap: "cstu-gap-[11px]", padding: { x: "cstu-px-[15px]", y: "cstu-py-[5px]" }, text: "cstu-text-lg", height: "cstu-h-12" },
|
|
226
|
+
xl: { gap: "cstu-gap-[12px]", padding: { x: "cstu-px-[16.5px]", y: "cstu-py-[5.5px]" }, text: "cstu-text-xl", height: "cstu-h-14" }
|
|
227
227
|
},
|
|
228
228
|
segmentedControlContainer: {
|
|
229
|
-
xs: { gap: "gap-[5.25px]", padding: { x: "px-[5.25px]", y: "py-[5.25px]" } },
|
|
230
|
-
sm: { gap: "gap-[6px]", padding: { x: "px-[6px]", y: "py-[6px]" } },
|
|
231
|
-
md: { gap: "gap-[6.75px]", padding: { x: "px-[6.75px]", y: "py-[6.75px]" } },
|
|
232
|
-
lg: { gap: "gap-[7.5px]", padding: { x: "px-[7.5px]", y: "py-[7.5px]" } },
|
|
233
|
-
xl: { gap: "gap-[8.25px]", padding: { x: "px-[8.25px]", y: "py-[8.25px]" } }
|
|
229
|
+
xs: { gap: "cstu-gap-[5.25px]", padding: { x: "cstu-px-[5.25px]", y: "cstu-py-[5.25px]" } },
|
|
230
|
+
sm: { gap: "cstu-gap-[6px]", padding: { x: "cstu-px-[6px]", y: "cstu-py-[6px]" } },
|
|
231
|
+
md: { gap: "cstu-gap-[6.75px]", padding: { x: "cstu-px-[6.75px]", y: "cstu-py-[6.75px]" } },
|
|
232
|
+
lg: { gap: "cstu-gap-[7.5px]", padding: { x: "cstu-px-[7.5px]", y: "cstu-py-[7.5px]" } },
|
|
233
|
+
xl: { gap: "cstu-gap-[8.25px]", padding: { x: "cstu-px-[8.25px]", y: "cstu-py-[8.25px]" } }
|
|
234
234
|
},
|
|
235
235
|
dropdown: {
|
|
236
|
-
xs: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "text-xs", height: void 0, icon: void 0, gap: "gap-[9px]" },
|
|
237
|
-
sm: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "text-sm", height: void 0, icon: void 0, gap: "gap-[9px]" },
|
|
238
|
-
md: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "text-base", height: void 0, icon: void 0, gap: "gap-[9px]" },
|
|
239
|
-
lg: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "text-lg", height: void 0, icon: void 0, gap: "gap-[9px]" },
|
|
240
|
-
xl: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "text-xl", height: void 0, icon: void 0, gap: "gap-[9px]" }
|
|
236
|
+
xs: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "cstu-text-xs", height: void 0, icon: void 0, gap: "cstu-gap-[9px]" },
|
|
237
|
+
sm: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "cstu-text-sm", height: void 0, icon: void 0, gap: "cstu-gap-[9px]" },
|
|
238
|
+
md: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "cstu-text-base", height: void 0, icon: void 0, gap: "cstu-gap-[9px]" },
|
|
239
|
+
lg: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "cstu-text-lg", height: void 0, icon: void 0, gap: "cstu-gap-[9px]" },
|
|
240
|
+
xl: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "cstu-text-xl", height: void 0, icon: void 0, gap: "cstu-gap-[9px]" }
|
|
241
241
|
}
|
|
242
242
|
}, N = (s, t) => {
|
|
243
243
|
var e, o;
|
|
@@ -246,45 +246,45 @@ const Fe = {
|
|
|
246
246
|
return [(e = n == null ? void 0 : n.padding) == null ? void 0 : e.x, (o = n == null ? void 0 : n.padding) == null ? void 0 : o.y, n == null ? void 0 : n.text, n == null ? void 0 : n.gap].filter(Boolean).join(" ");
|
|
247
247
|
}
|
|
248
248
|
return t[s];
|
|
249
|
-
},
|
|
249
|
+
}, ut = (s, t) => He[t][s].icon || "", Oe = (s, t) => He[t][s].height || "", Ne = (s) => {
|
|
250
250
|
switch (s) {
|
|
251
251
|
case "xs":
|
|
252
|
-
return "text-xs";
|
|
252
|
+
return "cstu-text-xs";
|
|
253
253
|
case "sm":
|
|
254
|
-
return "text-sm";
|
|
254
|
+
return "cstu-text-sm";
|
|
255
255
|
case "md":
|
|
256
|
-
return "text-base";
|
|
256
|
+
return "cstu-text-base";
|
|
257
257
|
case "lg":
|
|
258
|
-
return "text-lg";
|
|
258
|
+
return "cstu-text-lg";
|
|
259
259
|
case "xl":
|
|
260
|
-
return "text-xl";
|
|
260
|
+
return "cstu-text-xl";
|
|
261
261
|
default:
|
|
262
|
-
return "text-base";
|
|
262
|
+
return "cstu-text-base";
|
|
263
263
|
}
|
|
264
264
|
}, dt = (s) => {
|
|
265
265
|
switch (s) {
|
|
266
266
|
case "xs":
|
|
267
|
-
return "space-x-1";
|
|
267
|
+
return "cstu-space-x-1";
|
|
268
268
|
case "sm":
|
|
269
|
-
return "space-x-2";
|
|
269
|
+
return "cstu-space-x-2";
|
|
270
270
|
case "md":
|
|
271
|
-
return "space-x-3";
|
|
271
|
+
return "cstu-space-x-3";
|
|
272
272
|
case "lg":
|
|
273
|
-
return "space-x-4";
|
|
273
|
+
return "cstu-space-x-4";
|
|
274
274
|
case "xl":
|
|
275
|
-
return "space-x-5";
|
|
275
|
+
return "cstu-space-x-5";
|
|
276
276
|
default:
|
|
277
|
-
return "space-x-3";
|
|
277
|
+
return "cstu-space-x-3";
|
|
278
278
|
}
|
|
279
279
|
}, oe = (s) => {
|
|
280
280
|
const t = [];
|
|
281
|
-
return s.disabled && t.push("opacity-50 cursor-not-allowed pointer-events-none"), s.loading && t.push("cursor-wait"), s.active && t.push("ring-2 ring-offset-2"), s.error && t.push("border-red-300 focus:ring-red-500/20 focus:border-red-500"), s.success && t.push("border-green-300 focus:ring-green-500/20 focus:border-green-500"), t.join(" ");
|
|
281
|
+
return s.disabled && t.push("cstu-opacity-50 cstu-cursor-not-allowed cstu-pointer-events-none"), s.loading && t.push("cstu-cursor-wait"), s.active && t.push("cstu-ring-2 cstu-ring-offset-2"), s.error && t.push("cstu-border-red-300 focus:cstu-ring-red-500/20 focus:cstu-border-red-500"), s.success && t.push("cstu-border-green-300 focus:cstu-ring-green-500/20 focus:cstu-border-green-500"), t.join(" ");
|
|
282
282
|
}, It = (s) => {
|
|
283
283
|
const t = [];
|
|
284
|
-
return s.valid && t.push("border-green-300 focus:ring-green-500/20 focus:border-green-500"), s.invalid && t.push("border-red-300 focus:ring-red-500/20 focus:border-red-500"), s.pending && t.push("border-yellow-300 focus:ring-yellow-500/20 focus:border-yellow-500"), t.join(" ");
|
|
284
|
+
return s.valid && t.push("cstu-border-green-300 focus:cstu-ring-green-500/20 focus:cstu-border-green-500"), s.invalid && t.push("cstu-border-red-300 focus:cstu-ring-red-500/20 focus:cstu-border-red-500"), s.pending && t.push("cstu-border-yellow-300 focus:cstu-ring-yellow-500/20 focus:cstu-border-yellow-500"), t.join(" ");
|
|
285
285
|
}, jt = (s, t = "primary") => {
|
|
286
286
|
const e = [];
|
|
287
|
-
return s.hover && e.push(`hover:bg-${t}-50`), s.active && e.push(`active:bg-${t}-100`), s.focus && e.push(`focus:outline-none focus:ring-2 focus:ring-${t}-500/20 focus:border-${t}-500`), e.join(" ");
|
|
287
|
+
return s.hover && e.push(`hover:cstu-bg-${t}-50`), s.active && e.push(`active:cstu-bg-${t}-100`), s.focus && e.push(`focus:cstu-outline-none focus:cstu-ring-2 focus:cstu-ring-${t}-500/20 focus:cstu-border-${t}-500`), e.join(" ");
|
|
288
288
|
}, Wt = ["disabled", "type"], Ft = { key: 0 }, kn = /* @__PURE__ */ A({
|
|
289
289
|
__name: "Button",
|
|
290
290
|
props: {
|
|
@@ -344,7 +344,7 @@ const Fe = {
|
|
|
344
344
|
hover: !0,
|
|
345
345
|
active: !0,
|
|
346
346
|
focus: !0
|
|
347
|
-
}), d = N(e.size, "button"), f = e.leftSection || e.rightSection ?
|
|
347
|
+
}), d = N(e.size, "button"), f = e.leftSection || e.rightSection ? ut(e.size, "button") : "", b = oe({
|
|
348
348
|
disabled: e.disabled,
|
|
349
349
|
loading: e.loading
|
|
350
350
|
}), u = Oe(e.size, "button"), h = a(e.radius);
|
|
@@ -398,8 +398,8 @@ const Fe = {
|
|
|
398
398
|
], 10, Wt));
|
|
399
399
|
}
|
|
400
400
|
}), pt = (s) => {
|
|
401
|
-
const t = ["relative"];
|
|
402
|
-
s.fullWidth && t.push("w-full");
|
|
401
|
+
const t = ["cstu-relative"];
|
|
402
|
+
s.fullWidth && t.push("cstu-w-full");
|
|
403
403
|
const e = oe({
|
|
404
404
|
disabled: s.disabled,
|
|
405
405
|
error: s.error,
|
|
@@ -408,39 +408,39 @@ const Fe = {
|
|
|
408
408
|
return e && t.push(e), t.join(" ");
|
|
409
409
|
}, ft = (s) => {
|
|
410
410
|
const t = [
|
|
411
|
-
"block",
|
|
412
|
-
"font-medium",
|
|
413
|
-
"mb-1"
|
|
411
|
+
"cstu-block",
|
|
412
|
+
"cstu-font-medium",
|
|
413
|
+
"cstu-mb-1"
|
|
414
414
|
];
|
|
415
415
|
switch (s.size) {
|
|
416
416
|
case "xs":
|
|
417
|
-
t.push("text-xs");
|
|
417
|
+
t.push("cstu-text-xs");
|
|
418
418
|
break;
|
|
419
419
|
case "sm":
|
|
420
|
-
t.push("text-sm");
|
|
420
|
+
t.push("cstu-text-sm");
|
|
421
421
|
break;
|
|
422
422
|
case "md":
|
|
423
|
-
t.push("text-base");
|
|
423
|
+
t.push("cstu-text-base");
|
|
424
424
|
break;
|
|
425
425
|
case "lg":
|
|
426
|
-
t.push("text-lg");
|
|
426
|
+
t.push("cstu-text-lg");
|
|
427
427
|
break;
|
|
428
428
|
case "xl":
|
|
429
|
-
t.push("text-xl");
|
|
429
|
+
t.push("cstu-text-xl");
|
|
430
430
|
break;
|
|
431
431
|
default:
|
|
432
|
-
t.push("text-sm");
|
|
432
|
+
t.push("cstu-text-sm");
|
|
433
433
|
}
|
|
434
|
-
return s.error ? t.push("text-red-500") : s.disabled ? t.push("text-gray-400") : t.push("text-gray-700"), (s.required || s.withAsterisk) && t.push('after:content-["*"] after:ml-0.5 after:text-red-500'), t.join(" ");
|
|
434
|
+
return s.error ? t.push("cstu-text-red-500") : s.disabled ? t.push("cstu-text-gray-400") : t.push("cstu-text-gray-700"), (s.required || s.withAsterisk) && t.push('after:cstu-content-["*"] after:cstu-ml-0.5 after:cstu-text-red-500'), t.join(" ");
|
|
435
435
|
}, gt = (s) => {
|
|
436
436
|
const t = [
|
|
437
|
-
"mt-1",
|
|
438
|
-
"text-sm"
|
|
437
|
+
"cstu-mt-1",
|
|
438
|
+
"cstu-text-sm"
|
|
439
439
|
];
|
|
440
|
-
return s.error ? t.push("text-red-500") : s.disabled ? t.push("text-gray-400") : t.push("text-gray-500"), t.join(" ");
|
|
440
|
+
return s.error ? t.push("cstu-text-red-500") : s.disabled ? t.push("cstu-text-gray-400") : t.push("cstu-text-gray-500"), t.join(" ");
|
|
441
441
|
}, Ht = ["aria-disabled", "onKeydown"], Nt = {
|
|
442
442
|
key: 2,
|
|
443
|
-
class: "text-sm text-red-500 mt-0.5"
|
|
443
|
+
class: "cstu-text-sm cstu-text-red-500 cstu-mt-0.5"
|
|
444
444
|
}, qt = {
|
|
445
445
|
name: "Checkbox"
|
|
446
446
|
}, $n = /* @__PURE__ */ A({
|
|
@@ -522,7 +522,7 @@ const Fe = {
|
|
|
522
522
|
role: "checkbox",
|
|
523
523
|
"aria-disabled": h.disabled,
|
|
524
524
|
tabindex: "0",
|
|
525
|
-
onKeydown: Lt(
|
|
525
|
+
onKeydown: Lt(nt(r, ["prevent"]), ["space"])
|
|
526
526
|
}, [
|
|
527
527
|
n.value && !h.indeterminate ? (p(), x("svg", {
|
|
528
528
|
key: 0,
|
|
@@ -561,7 +561,7 @@ const Fe = {
|
|
|
561
561
|
}, [
|
|
562
562
|
h.label ? (p(), x("label", {
|
|
563
563
|
key: 0,
|
|
564
|
-
class: C([l.value, "pt-0.5"]),
|
|
564
|
+
class: C([l.value, "cstu-pt-0.5"]),
|
|
565
565
|
onClick: r
|
|
566
566
|
}, P(h.label), 3)) : B("", !0),
|
|
567
567
|
h.description ? (p(), x("div", {
|
|
@@ -665,7 +665,7 @@ const Fe = {
|
|
|
665
665
|
disabled: $.disabled,
|
|
666
666
|
value: $.value,
|
|
667
667
|
onChange: l,
|
|
668
|
-
class: "sr-only cstu-border-2"
|
|
668
|
+
class: "cstu-sr-only cstu-border-2"
|
|
669
669
|
}, null, 40, Kt),
|
|
670
670
|
v("div", {
|
|
671
671
|
class: C(c.value)
|
|
@@ -900,7 +900,7 @@ const Fe = {
|
|
|
900
900
|
};
|
|
901
901
|
return ve(() => e.modelValue, (y) => {
|
|
902
902
|
y ? d.value && e.searchable && (a.value = d.value.label) : a.value = "";
|
|
903
|
-
}),
|
|
903
|
+
}), ot(() => {
|
|
904
904
|
document.addEventListener("click", $);
|
|
905
905
|
}), At(() => {
|
|
906
906
|
document.removeEventListener("click", $);
|
|
@@ -935,7 +935,7 @@ const Fe = {
|
|
|
935
935
|
key: 0,
|
|
936
936
|
type: "button",
|
|
937
937
|
class: "p-1 hover:bg-gray-100 rounded-full text-gray-500 hover:text-gray-700",
|
|
938
|
-
onClick:
|
|
938
|
+
onClick: nt(h, ["stop"])
|
|
939
939
|
}, z[1] || (z[1] = [
|
|
940
940
|
v("svg", {
|
|
941
941
|
class: "w-4 h-4",
|
|
@@ -1230,7 +1230,7 @@ const ps = (s, t) => {
|
|
|
1230
1230
|
key: 0,
|
|
1231
1231
|
class: C([
|
|
1232
1232
|
"block px-2 py-1 text-white whitespace-nowrap font-medium leading-none",
|
|
1233
|
-
M(
|
|
1233
|
+
M(Ne)(t.size)
|
|
1234
1234
|
])
|
|
1235
1235
|
}, P(t.label), 3)) : B("", !0)
|
|
1236
1236
|
], 6)
|
|
@@ -1269,7 +1269,7 @@ const gs = {
|
|
|
1269
1269
|
active: !1,
|
|
1270
1270
|
focus: !1,
|
|
1271
1271
|
disabled: e.disabled
|
|
1272
|
-
})), a = g(() => Et(e.variant)), r = g(() => Mt(e.color, e.variant)), l = g(() => Tt(e.color, e.variant)), i = g(() => N(e.size, "alert")), c = g(() =>
|
|
1272
|
+
})), a = g(() => Et(e.variant)), r = g(() => Mt(e.color, e.variant)), l = g(() => Tt(e.color, e.variant)), i = g(() => N(e.size, "alert")), c = g(() => ut(e.size, "alert")), d = g(() => Ne(e.size)), f = g(() => dt(e.size)), b = g(() => oe({
|
|
1273
1273
|
disabled: e.disabled,
|
|
1274
1274
|
loading: e.loading
|
|
1275
1275
|
})), u = g(() => It({
|
|
@@ -1575,7 +1575,7 @@ const Dn = /* @__PURE__ */ A({
|
|
|
1575
1575
|
lg: "w-[440px]",
|
|
1576
1576
|
xl: "w-[520px]"
|
|
1577
1577
|
})[t.size]);
|
|
1578
|
-
return (o, n) => (p(), K(
|
|
1578
|
+
return (o, n) => (p(), K(at, { to: "body" }, [
|
|
1579
1579
|
he(ke, {
|
|
1580
1580
|
"enter-active-class": "transition duration-200 ease-out",
|
|
1581
1581
|
"enter-from-class": "opacity-0 scale-95",
|
|
@@ -1658,18 +1658,18 @@ function ze(s) {
|
|
|
1658
1658
|
function ht(s) {
|
|
1659
1659
|
return s === "x" ? "y" : "x";
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function qe(s) {
|
|
1662
1662
|
return s === "y" ? "height" : "width";
|
|
1663
1663
|
}
|
|
1664
1664
|
function me(s) {
|
|
1665
1665
|
return ["top", "bottom"].includes(ae(s)) ? "y" : "x";
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Ye(s) {
|
|
1668
1668
|
return ht(me(s));
|
|
1669
1669
|
}
|
|
1670
1670
|
function _s(s, t, e) {
|
|
1671
1671
|
e === void 0 && (e = !1);
|
|
1672
|
-
const o = ze(s), n =
|
|
1672
|
+
const o = ze(s), n = Ye(s), a = qe(n);
|
|
1673
1673
|
let r = n === "x" ? o === (e ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1674
1674
|
return t.reference[a] > t.floating[a] && (r = _e(r)), [r, _e(r)];
|
|
1675
1675
|
}
|
|
@@ -1736,12 +1736,12 @@ function Le(s) {
|
|
|
1736
1736
|
y: e
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function Ze(s, t, e) {
|
|
1740
1740
|
let {
|
|
1741
1741
|
reference: o,
|
|
1742
1742
|
floating: n
|
|
1743
1743
|
} = s;
|
|
1744
|
-
const a = me(t), r =
|
|
1744
|
+
const a = me(t), r = Ye(t), l = qe(r), i = ae(t), c = a === "y", d = o.x + o.width / 2 - n.width / 2, f = o.y + o.height / 2 - n.height / 2, b = o[l] / 2 - n[l] / 2;
|
|
1745
1745
|
let u;
|
|
1746
1746
|
switch (i) {
|
|
1747
1747
|
case "top":
|
|
@@ -1798,7 +1798,7 @@ const Ds = async (s, t, e) => {
|
|
|
1798
1798
|
}), {
|
|
1799
1799
|
x: d,
|
|
1800
1800
|
y: f
|
|
1801
|
-
} =
|
|
1801
|
+
} = Ze(c, o, i), b = o, u = {}, h = 0;
|
|
1802
1802
|
for (let m = 0; m < l.length; m++) {
|
|
1803
1803
|
const {
|
|
1804
1804
|
name: w,
|
|
@@ -1835,7 +1835,7 @@ const Ds = async (s, t, e) => {
|
|
|
1835
1835
|
}) : S.rects), {
|
|
1836
1836
|
x: d,
|
|
1837
1837
|
y: f
|
|
1838
|
-
} =
|
|
1838
|
+
} = Ze(c, b, i)), m = -1);
|
|
1839
1839
|
}
|
|
1840
1840
|
return {
|
|
1841
1841
|
x: d,
|
|
@@ -1911,7 +1911,7 @@ const Rs = (s) => ({
|
|
|
1911
1911
|
const f = mt(d), b = {
|
|
1912
1912
|
x: e,
|
|
1913
1913
|
y: o
|
|
1914
|
-
}, u =
|
|
1914
|
+
}, u = Ye(n), h = qe(u), m = await r.getDimensions(c), w = u === "y", $ = w ? "top" : "left", y = w ? "bottom" : "right", z = w ? "clientHeight" : "clientWidth", k = a.reference[h] + a.reference[u] - b[u] - a.floating[h], S = b[u] - a.reference[u], V = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
|
|
1915
1915
|
let _ = V ? V[z] : 0;
|
|
1916
1916
|
(!_ || !await (r.isElement == null ? void 0 : r.isElement(V))) && (_ = l.floating[z] || a.floating[h]);
|
|
1917
1917
|
const D = k / 2 - S / 2, W = _ / 2 - m[h] / 2 - 1, G = we(f[$], W), ye = we(f[y], W), J = G, be = _ - m[h] - ye, R = _ / 2 - m[h] / 2 + D, re = Me(J, R, be), Y = !i.arrow && ze(n) != null && R !== re && a.reference[h] / 2 - (R < J ? G : ye) - m[h] / 2 < 0, F = Y ? R < J ? R - J : R - be : 0;
|
|
@@ -2117,7 +2117,7 @@ function Pe() {
|
|
|
2117
2117
|
return typeof window < "u";
|
|
2118
2118
|
}
|
|
2119
2119
|
function le(s) {
|
|
2120
|
-
return
|
|
2120
|
+
return Ke(s) ? (s.nodeName || "").toLowerCase() : "#document";
|
|
2121
2121
|
}
|
|
2122
2122
|
function T(s) {
|
|
2123
2123
|
var t;
|
|
@@ -2125,9 +2125,9 @@ function T(s) {
|
|
|
2125
2125
|
}
|
|
2126
2126
|
function X(s) {
|
|
2127
2127
|
var t;
|
|
2128
|
-
return (t = (
|
|
2128
|
+
return (t = (Ke(s) ? s.ownerDocument : s.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2129
2129
|
}
|
|
2130
|
-
function
|
|
2130
|
+
function Ke(s) {
|
|
2131
2131
|
return Pe() ? s instanceof Node || s instanceof T(s).Node : !1;
|
|
2132
2132
|
}
|
|
2133
2133
|
function I(s) {
|
|
@@ -2136,7 +2136,7 @@ function I(s) {
|
|
|
2136
2136
|
function q(s) {
|
|
2137
2137
|
return Pe() ? s instanceof HTMLElement || s instanceof T(s).HTMLElement : !1;
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function Qe(s) {
|
|
2140
2140
|
return !Pe() || typeof ShadowRoot > "u" ? !1 : s instanceof ShadowRoot || s instanceof T(s).ShadowRoot;
|
|
2141
2141
|
}
|
|
2142
2142
|
function Be(s) {
|
|
@@ -2160,14 +2160,14 @@ function De(s) {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
});
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2164
|
-
const t =
|
|
2163
|
+
function Xe(s) {
|
|
2164
|
+
const t = Ge(), e = I(s) ? j(s) : s;
|
|
2165
2165
|
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
|
2166
2166
|
}
|
|
2167
2167
|
function js(s) {
|
|
2168
2168
|
let t = Q(s);
|
|
2169
2169
|
for (; q(t) && !xe(t); ) {
|
|
2170
|
-
if (
|
|
2170
|
+
if (Xe(t))
|
|
2171
2171
|
return t;
|
|
2172
2172
|
if (De(t))
|
|
2173
2173
|
return null;
|
|
@@ -2175,7 +2175,7 @@ function js(s) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
return null;
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function Ge() {
|
|
2179
2179
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2180
2180
|
}
|
|
2181
2181
|
function xe(s) {
|
|
@@ -2200,10 +2200,10 @@ function Q(s) {
|
|
|
2200
2200
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
2201
2201
|
s.assignedSlot || // DOM Element detected.
|
|
2202
2202
|
s.parentNode || // ShadowRoot detected.
|
|
2203
|
-
|
|
2203
|
+
Qe(s) && s.host || // Fallback.
|
|
2204
2204
|
X(s)
|
|
2205
2205
|
);
|
|
2206
|
-
return
|
|
2206
|
+
return Qe(t) ? t.host : t;
|
|
2207
2207
|
}
|
|
2208
2208
|
function yt(s) {
|
|
2209
2209
|
const t = Q(s);
|
|
@@ -2253,7 +2253,7 @@ function de(s) {
|
|
|
2253
2253
|
const Ws = /* @__PURE__ */ H(0);
|
|
2254
2254
|
function wt(s) {
|
|
2255
2255
|
const t = T(s);
|
|
2256
|
-
return !
|
|
2256
|
+
return !Ge() || !t.visualViewport ? Ws : {
|
|
2257
2257
|
x: t.visualViewport.offsetLeft,
|
|
2258
2258
|
y: t.visualViewport.offsetTop
|
|
2259
2259
|
};
|
|
@@ -2283,7 +2283,7 @@ function Ce(s, t, e, o) {
|
|
|
2283
2283
|
y: c
|
|
2284
2284
|
});
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function Ue(s, t) {
|
|
2287
2287
|
const e = Re(s).scrollLeft;
|
|
2288
2288
|
return t ? t.left + e : Ce(X(s)).left + e;
|
|
2289
2289
|
}
|
|
@@ -2291,7 +2291,7 @@ function Ct(s, t, e) {
|
|
|
2291
2291
|
e === void 0 && (e = !1);
|
|
2292
2292
|
const o = s.getBoundingClientRect(), n = o.left + t.scrollLeft - (e ? 0 : (
|
|
2293
2293
|
// RTL <body> scrollbar.
|
|
2294
|
-
|
|
2294
|
+
Ue(s, o)
|
|
2295
2295
|
)), a = o.top + t.scrollTop;
|
|
2296
2296
|
return {
|
|
2297
2297
|
x: n,
|
|
@@ -2330,7 +2330,7 @@ function Ns(s) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
function qs(s) {
|
|
2332
2332
|
const t = X(s), e = Re(s), o = s.ownerDocument.body, n = ue(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = ue(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
2333
|
-
let r = -e.scrollLeft +
|
|
2333
|
+
let r = -e.scrollLeft + Ue(s);
|
|
2334
2334
|
const l = -e.scrollTop;
|
|
2335
2335
|
return j(o).direction === "rtl" && (r += ue(t.clientWidth, o.clientWidth) - n), {
|
|
2336
2336
|
width: n,
|
|
@@ -2344,7 +2344,7 @@ function Ys(s, t) {
|
|
|
2344
2344
|
let a = o.clientWidth, r = o.clientHeight, l = 0, i = 0;
|
|
2345
2345
|
if (n) {
|
|
2346
2346
|
a = n.width, r = n.height;
|
|
2347
|
-
const c =
|
|
2347
|
+
const c = Ge();
|
|
2348
2348
|
(!c || c && t === "fixed") && (l = n.offsetLeft, i = n.offsetTop);
|
|
2349
2349
|
}
|
|
2350
2350
|
return {
|
|
@@ -2363,7 +2363,7 @@ function Ks(s, t) {
|
|
|
2363
2363
|
y: c
|
|
2364
2364
|
};
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function Je(s, t, e) {
|
|
2367
2367
|
let o;
|
|
2368
2368
|
if (t === "viewport")
|
|
2369
2369
|
o = Ys(s, e);
|
|
@@ -2394,7 +2394,7 @@ function Xs(s, t) {
|
|
|
2394
2394
|
const a = j(s).position === "fixed";
|
|
2395
2395
|
let r = a ? Q(s) : s;
|
|
2396
2396
|
for (; I(r) && !xe(r); ) {
|
|
2397
|
-
const l = j(r), i =
|
|
2397
|
+
const l = j(r), i = Xe(r);
|
|
2398
2398
|
!i && l.position === "fixed" && (n = null), (a ? !i && !n : !i && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Be(r) && !i && kt(s, r)) ? o = o.filter((d) => d !== r) : n = l, r = Q(r);
|
|
2399
2399
|
}
|
|
2400
2400
|
return t.set(s, o), o;
|
|
@@ -2407,9 +2407,9 @@ function Gs(s) {
|
|
|
2407
2407
|
strategy: n
|
|
2408
2408
|
} = s;
|
|
2409
2409
|
const r = [...e === "clippingAncestors" ? De(t) ? [] : Xs(t, this._c) : [].concat(e), o], l = r[0], i = r.reduce((c, d) => {
|
|
2410
|
-
const f =
|
|
2410
|
+
const f = Je(t, d, n);
|
|
2411
2411
|
return c.top = ue(f.top, c.top), c.right = we(f.right, c.right), c.bottom = we(f.bottom, c.bottom), c.left = ue(f.left, c.left), c;
|
|
2412
|
-
},
|
|
2412
|
+
}, Je(t, l, n));
|
|
2413
2413
|
return {
|
|
2414
2414
|
width: i.right - i.left,
|
|
2415
2415
|
height: i.bottom - i.top,
|
|
@@ -2439,7 +2439,7 @@ function Zs(s, t, e) {
|
|
|
2439
2439
|
const b = Ce(t, !0, a, t);
|
|
2440
2440
|
i.x = b.x + t.clientLeft, i.y = b.y + t.clientTop;
|
|
2441
2441
|
} else
|
|
2442
|
-
n && (i.x =
|
|
2442
|
+
n && (i.x = Ue(n));
|
|
2443
2443
|
const c = n && !o && !a ? Ct(n, l) : H(0), d = r.left + l.scrollLeft - i.x - c.x, f = r.top + l.scrollTop - i.y - c.y;
|
|
2444
2444
|
return {
|
|
2445
2445
|
x: d,
|
|
@@ -2451,7 +2451,7 @@ function Zs(s, t, e) {
|
|
|
2451
2451
|
function Ve(s) {
|
|
2452
2452
|
return j(s).position === "static";
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function et(s, t) {
|
|
2455
2455
|
if (!q(s) || j(s).position === "fixed")
|
|
2456
2456
|
return null;
|
|
2457
2457
|
if (t)
|
|
@@ -2472,10 +2472,10 @@ function $t(s, t) {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
return e;
|
|
2474
2474
|
}
|
|
2475
|
-
let o =
|
|
2475
|
+
let o = et(s, t);
|
|
2476
2476
|
for (; o && Is(o) && Ve(o); )
|
|
2477
|
-
o =
|
|
2478
|
-
return o && xe(o) && Ve(o) && !
|
|
2477
|
+
o = et(o, t);
|
|
2478
|
+
return o && xe(o) && Ve(o) && !Xe(o) ? e : o || js(s) || e;
|
|
2479
2479
|
}
|
|
2480
2480
|
const Qs = async function(s) {
|
|
2481
2481
|
const t = this.getOffsetParent || $t, e = this.getDimensions, o = await e(s.floating);
|
|
@@ -2522,7 +2522,7 @@ function ln(s) {
|
|
|
2522
2522
|
function je(s) {
|
|
2523
2523
|
if (ln(s)) {
|
|
2524
2524
|
const t = s.$el;
|
|
2525
|
-
return
|
|
2525
|
+
return Ke(t) && le(t) === "#comment" ? null : t;
|
|
2526
2526
|
}
|
|
2527
2527
|
return s;
|
|
2528
2528
|
}
|
|
@@ -2545,7 +2545,7 @@ function rn(s) {
|
|
|
2545
2545
|
function zt(s) {
|
|
2546
2546
|
return typeof window > "u" ? 1 : (s.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2548
|
+
function tt(s, t) {
|
|
2549
2549
|
const e = zt(s);
|
|
2550
2550
|
return Math.round(t * e) / e;
|
|
2551
2551
|
}
|
|
@@ -2571,7 +2571,7 @@ function cn(s, t, e) {
|
|
|
2571
2571
|
};
|
|
2572
2572
|
if (!d.value)
|
|
2573
2573
|
return _;
|
|
2574
|
-
const D =
|
|
2574
|
+
const D = tt(d.value, f.value), W = tt(d.value, b.value);
|
|
2575
2575
|
return i.value ? {
|
|
2576
2576
|
..._,
|
|
2577
2577
|
transform: "translate(" + D + "px, " + W + "px)",
|
|
@@ -2619,7 +2619,7 @@ function cn(s, t, e) {
|
|
|
2619
2619
|
flush: "sync"
|
|
2620
2620
|
}), ve(n, V, {
|
|
2621
2621
|
flush: "sync"
|
|
2622
|
-
}),
|
|
2622
|
+
}), lt() && rt(k), {
|
|
2623
2623
|
x: ie(f),
|
|
2624
2624
|
y: ie(b),
|
|
2625
2625
|
strategy: ie(u),
|
|
@@ -2631,11 +2631,11 @@ function cn(s, t, e) {
|
|
|
2631
2631
|
};
|
|
2632
2632
|
}
|
|
2633
2633
|
function un(s) {
|
|
2634
|
-
return
|
|
2634
|
+
return lt() ? (rt(s), !0) : !1;
|
|
2635
2635
|
}
|
|
2636
2636
|
const dn = typeof window < "u" && typeof document < "u";
|
|
2637
2637
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2638
|
-
function
|
|
2638
|
+
function st(s, t, e = {}) {
|
|
2639
2639
|
const {
|
|
2640
2640
|
immediate: o = !0
|
|
2641
2641
|
} = e, n = O(!1);
|
|
@@ -2664,9 +2664,9 @@ function pn(s = {}) {
|
|
|
2664
2664
|
onOpen: o,
|
|
2665
2665
|
onClose: n,
|
|
2666
2666
|
initiallyOpened: a = !1
|
|
2667
|
-
} = s, r = O(!1), { start: l, stop: i } =
|
|
2667
|
+
} = s, r = O(!1), { start: l, stop: i } = st(() => {
|
|
2668
2668
|
r.value = !0, o == null || o();
|
|
2669
|
-
}, t), { start: c, stop: d } =
|
|
2669
|
+
}, t), { start: c, stop: d } = st(() => {
|
|
2670
2670
|
r.value = !1, n == null || n();
|
|
2671
2671
|
}, e), f = () => {
|
|
2672
2672
|
d(), t === 0 ? (r.value = !0, o == null || o()) : l();
|
|
@@ -2686,7 +2686,7 @@ const Bt = Symbol("hover-card"), St = /* @__PURE__ */ A({
|
|
|
2686
2686
|
wrapperClass: { default: "" }
|
|
2687
2687
|
},
|
|
2688
2688
|
setup(s) {
|
|
2689
|
-
return
|
|
2689
|
+
return it(Bt, null), (t, e) => t.withWrapper ? (p(), x("div", {
|
|
2690
2690
|
key: 0,
|
|
2691
2691
|
class: C(t.wrapperClass)
|
|
2692
2692
|
}, [
|
|
@@ -2712,7 +2712,7 @@ const Bt = Symbol("hover-card"), St = /* @__PURE__ */ A({
|
|
|
2712
2712
|
},
|
|
2713
2713
|
setup(s) {
|
|
2714
2714
|
const t = s, e = O(!1);
|
|
2715
|
-
|
|
2715
|
+
ot(() => {
|
|
2716
2716
|
e.value = !0;
|
|
2717
2717
|
});
|
|
2718
2718
|
const o = O(null), n = O(null), a = O(null), { isOpen: r, open: l, close: i } = pn({
|
|
@@ -2720,7 +2720,7 @@ const Bt = Symbol("hover-card"), St = /* @__PURE__ */ A({
|
|
|
2720
2720
|
closeDelay: t.closeDelay,
|
|
2721
2721
|
initiallyOpened: t.initiallyOpened
|
|
2722
2722
|
});
|
|
2723
|
-
|
|
2723
|
+
ct(Bt, {
|
|
2724
2724
|
isOpen: r,
|
|
2725
2725
|
open: l,
|
|
2726
2726
|
close: i
|
|
@@ -2798,7 +2798,7 @@ const Bt = Symbol("hover-card"), St = /* @__PURE__ */ A({
|
|
|
2798
2798
|
]),
|
|
2799
2799
|
_: 3
|
|
2800
2800
|
}),
|
|
2801
|
-
e.value ? (p(), K(
|
|
2801
|
+
e.value ? (p(), K(at, {
|
|
2802
2802
|
key: 0,
|
|
2803
2803
|
to: "body"
|
|
2804
2804
|
}, [
|
|
@@ -2929,12 +2929,12 @@ const yn = {
|
|
|
2929
2929
|
};
|
|
2930
2930
|
function bn(s) {
|
|
2931
2931
|
return {
|
|
2932
|
-
none: "rounded-none",
|
|
2933
|
-
sm: "rounded-sm",
|
|
2934
|
-
md: "rounded",
|
|
2935
|
-
lg: "rounded-lg",
|
|
2936
|
-
xl: "rounded-xl",
|
|
2937
|
-
full: "rounded-full"
|
|
2932
|
+
none: "cstu-rounded-none",
|
|
2933
|
+
sm: "cstu-rounded-sm",
|
|
2934
|
+
md: "cstu-rounded",
|
|
2935
|
+
lg: "cstu-rounded-lg",
|
|
2936
|
+
xl: "cstu-rounded-xl",
|
|
2937
|
+
full: "cstu-rounded-full"
|
|
2938
2938
|
}[s];
|
|
2939
2939
|
}
|
|
2940
2940
|
const vn = ["data-active"], Tn = /* @__PURE__ */ A({
|
|
@@ -2955,13 +2955,13 @@ const vn = ["data-active"], Tn = /* @__PURE__ */ A({
|
|
|
2955
2955
|
emits: ["close", "update:open"],
|
|
2956
2956
|
setup(s, { emit: t }) {
|
|
2957
2957
|
const e = s, o = t, n = O(e.open), a = O(0), r = O(null), l = g(() => N(e.size, "dropdown")), i = g(() => bn(e.radius)), c = g(() => ({
|
|
2958
|
-
"bottom-full mb-2": e.placement === "top",
|
|
2959
|
-
"mt-2": e.placement === "bottom"
|
|
2958
|
+
"cstu-bottom-full cstu-mb-2": e.placement === "top",
|
|
2959
|
+
"cstu-mt-2": e.placement === "bottom"
|
|
2960
2960
|
}));
|
|
2961
2961
|
function d() {
|
|
2962
2962
|
n.value = !1, o("close"), o("update:open", !1);
|
|
2963
2963
|
}
|
|
2964
|
-
|
|
2964
|
+
ct("dropdownClose", d);
|
|
2965
2965
|
function f() {
|
|
2966
2966
|
e.disabled || (n.value ? (n.value = !1, o("close"), o("update:open", !1)) : (n.value = !0, o("update:open", !0), setTimeout(() => {
|
|
2967
2967
|
var h, m;
|
|
@@ -2983,11 +2983,11 @@ const vn = ["data-active"], Tn = /* @__PURE__ */ A({
|
|
|
2983
2983
|
}, [
|
|
2984
2984
|
v("button", {
|
|
2985
2985
|
type: "button",
|
|
2986
|
-
class: C(["cstu-text-gray-500 cstu-inline-flex cstu-overflow-hidden cstu-text-ellipsis cstu-whitespace-pre cstu-justify-between cstu-items-center cstu-w-full
|
|
2986
|
+
class: C(["cstu-text-gray-500 cstu-inline-flex cstu-overflow-hidden cstu-text-ellipsis cstu-whitespace-pre cstu-justify-between cstu-items-center cstu-w-full focus:cstu-outline-none", [
|
|
2987
2987
|
i.value,
|
|
2988
2988
|
l.value,
|
|
2989
2989
|
u.buttonClasses,
|
|
2990
|
-
{ "pointer-events-none": u.disabled },
|
|
2990
|
+
{ "cstu-pointer-events-none": u.disabled },
|
|
2991
2991
|
`${u.buttonClasses ? u.buttonClasses : "cstu-border cstu-border-gray-400/20 hover:cstu-bg-gray-100/50 hover:cstu-border-gray-400/25 "}`
|
|
2992
2992
|
]]),
|
|
2993
2993
|
"aria-expanded": "true",
|
|
@@ -3008,16 +3008,16 @@ const vn = ["data-active"], Tn = /* @__PURE__ */ A({
|
|
|
3008
3008
|
], 2)) : B("", !0)
|
|
3009
3009
|
], 2),
|
|
3010
3010
|
he(ke, {
|
|
3011
|
-
"enter-active-class": "transition ease-out duration-100",
|
|
3012
|
-
"enter-from-class": "transform opacity-0 scale-95",
|
|
3013
|
-
"enter-to-class": "transform opacity-100 scale-100",
|
|
3014
|
-
"leave-active-class": "transition ease-in duration-75",
|
|
3015
|
-
"leave-from-class": "transform opacity-100 scale-100",
|
|
3016
|
-
"leave-to-class": "transform opacity-0 scale-95"
|
|
3011
|
+
"enter-active-class": "cstu-transition cstu-ease-out cstu-duration-100",
|
|
3012
|
+
"enter-from-class": "cstu-transform cstu-opacity-0 cstu-scale-95",
|
|
3013
|
+
"enter-to-class": "cstu-transform cstu-opacity-100 cstu-scale-100",
|
|
3014
|
+
"leave-active-class": "cstu-transition cstu-ease-in cstu-duration-75",
|
|
3015
|
+
"leave-from-class": "cstu-transform cstu-opacity-100 cstu-scale-100",
|
|
3016
|
+
"leave-to-class": "cstu-transform cstu-opacity-0 cstu-scale-95"
|
|
3017
3017
|
}, {
|
|
3018
3018
|
default: ne(() => [
|
|
3019
3019
|
fe(v("div", {
|
|
3020
|
-
class: C(["max-h-72 px-[12px] py-[13px] min-w-[225px] overflow-y-auto origin-top-left absolute left-0 w-full rounded-lg cstu-shadow-custom bg-white focus:outline-none z-50", [
|
|
3020
|
+
class: C(["cstu-max-h-72 cstu-px-[12px] cstu-py-[13px] cstu-min-w-[225px] cstu-overflow-y-auto cstu-origin-top-left cstu-absolute cstu-left-0 cstu-w-full cstu-rounded-lg cstu-shadow-custom cstu-bg-white focus:cstu-outline-none cstu-z-50", [
|
|
3021
3021
|
c.value,
|
|
3022
3022
|
u.dropdownClasses,
|
|
3023
3023
|
i.value
|
|
@@ -3052,11 +3052,12 @@ const vn = ["data-active"], Tn = /* @__PURE__ */ A({
|
|
|
3052
3052
|
disabled: { type: Boolean, default: !1 },
|
|
3053
3053
|
closeOnClick: { type: Boolean, default: !0 },
|
|
3054
3054
|
class: { default: "" },
|
|
3055
|
-
selected: { type: Boolean, default: !1 }
|
|
3055
|
+
selected: { type: Boolean, default: !1 },
|
|
3056
|
+
size: { default: "md" }
|
|
3056
3057
|
},
|
|
3057
3058
|
emits: ["click"],
|
|
3058
3059
|
setup(s, { emit: t }) {
|
|
3059
|
-
const e = s, o = t, n =
|
|
3060
|
+
const e = s, o = t, n = it("dropdownClose", () => {
|
|
3060
3061
|
}), a = g(() => e.class);
|
|
3061
3062
|
function r() {
|
|
3062
3063
|
e.disabled || (e.closeOnClick && n(), o("click"));
|
|
@@ -3065,9 +3066,10 @@ const vn = ["data-active"], Tn = /* @__PURE__ */ A({
|
|
|
3065
3066
|
role: "menuitem",
|
|
3066
3067
|
tabindex: "-1",
|
|
3067
3068
|
class: C([
|
|
3068
|
-
"block cursor-pointer hover:cstu-bg-blue-50 active:cstu-bg-blue-50 rounded-lg",
|
|
3069
|
-
|
|
3070
|
-
|
|
3069
|
+
"cstu-block cstu-cursor-pointer hover:cstu-bg-blue-50 active:cstu-bg-blue-50 cstu-rounded-lg",
|
|
3070
|
+
M(Ne)(e.size),
|
|
3071
|
+
"cstu-py-[5.5px] cstu-pr-[13.5px] cstu-pl-[10.5px]",
|
|
3072
|
+
{ "cstu-cursor-not-allowed cstu-bg-gray-100": l.disabled },
|
|
3071
3073
|
{ "cstu-bg-blue-50": l.selected },
|
|
3072
3074
|
a.value
|
|
3073
3075
|
]),
|
|
@@ -3094,10 +3096,10 @@ const vn = ["data-active"], Tn = /* @__PURE__ */ A({
|
|
|
3094
3096
|
role: "listitem",
|
|
3095
3097
|
tabindex: "-1",
|
|
3096
3098
|
class: C([
|
|
3097
|
-
"block cursor-pointer rounded-lg",
|
|
3098
|
-
"py-[5.5px] pr-[13.5px] pl-[10.5px]",
|
|
3099
|
+
"cstu-block cstu-cursor-pointer cstu-rounded-lg",
|
|
3100
|
+
"cstu-py-[5.5px] cstu-pr-[13.5px] cstu-pl-[10.5px]",
|
|
3099
3101
|
{ "hover:cstu-bg-blue-50 active:cstu-bg-blue-50": !r.disabled },
|
|
3100
|
-
{ "cursor-not-allowed bg-gray-100 ": r.disabled },
|
|
3102
|
+
{ "cstu-cursor-not-allowed cstu-bg-gray-100 ": r.disabled },
|
|
3101
3103
|
{ [r.selectedClass || "cstu-bg-blue-50"]: r.selected && !r.disabled },
|
|
3102
3104
|
n.value
|
|
3103
3105
|
]),
|