@youcan/celeste 0.6.53 → 0.6.55
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/celeste.css +874 -1348
- package/dist/cjs/chunks/index2.js +28 -0
- package/dist/cjs/color-picker.js +6 -4
- package/dist/cjs/color-swatch.js +3 -3
- package/dist/cjs/file-upload-area.js +280 -0
- package/dist/cjs/index.js +15 -9
- package/dist/components/color-picker/color-picker.d.ts +2 -0
- package/dist/components/color-picker/color-swatch.d.ts +1 -2
- package/dist/components/combobox/combobox-list.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +2 -2
- package/dist/components/file-upload/file-upload-area.d.ts +43 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/popover/popover-content.d.ts +2 -2
- package/dist/es/chunks/index2.js +30 -2
- package/dist/es/color-picker.js +6 -4
- package/dist/es/color-swatch.js +3 -3
- package/dist/es/file-upload-area.js +281 -0
- package/dist/es/index.js +66 -60
- package/package.json +9 -9
- package/src/components/color-picker/color-picker.vue +4 -0
- package/src/components/color-picker/color-swatch.vue +1 -2
- package/src/components/file-upload/file-upload-area.vue +229 -0
- package/src/components/file-upload/index.ts +2 -0
- package/src/components/file-upload/stories/file-upload-area.stories.ts +76 -0
- package/src/components/index.ts +1 -1
- package/dist/cjs/context-menu-item.js +0 -134
- package/dist/cjs/dropdown-item.js +0 -99
- package/dist/cjs/dropdown.js +0 -290
- package/dist/components/dropdown/context-menu-item.d.ts +0 -39
- package/dist/components/dropdown/dropdown-item.d.ts +0 -30
- package/dist/components/dropdown/dropdown.d.ts +0 -55
- package/dist/components/dropdown/index.d.ts +0 -6
- package/dist/es/context-menu-item.js +0 -135
- package/dist/es/dropdown-item.js +0 -100
- package/dist/es/dropdown.js +0 -291
- package/src/components/dropdown/context-menu-item.vue +0 -317
- package/src/components/dropdown/dropdown-item.vue +0 -184
- package/src/components/dropdown/dropdown.vue +0 -650
- package/src/components/dropdown/index.ts +0 -8
- package/src/components/dropdown/stories/context-menu-item.stories.ts +0 -51
- package/src/components/dropdown/stories/dropdown-item.stories.ts +0 -33
- package/src/components/dropdown/stories/dropdown.stories.ts +0 -53
package/dist/es/color-picker.js
CHANGED
|
@@ -40,12 +40,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
label: { default: "Pick Color" },
|
|
41
41
|
class: {},
|
|
42
42
|
formats: { default: () => ["hex", "rgb", "hsl", "hsb"] },
|
|
43
|
-
defaultFormat: {}
|
|
43
|
+
defaultFormat: {},
|
|
44
|
+
colorSwatchLabel: { default: "Recommended Colors" }
|
|
44
45
|
},
|
|
45
46
|
emits: ["update:modelValue"],
|
|
46
47
|
setup(__props, { emit: __emit }) {
|
|
47
48
|
useCssVars((_ctx) => ({
|
|
48
|
-
"
|
|
49
|
+
"6559ad05": _ctx.modelValue
|
|
49
50
|
}));
|
|
50
51
|
const props = __props;
|
|
51
52
|
const emit = __emit;
|
|
@@ -496,8 +497,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
496
497
|
key: 1,
|
|
497
498
|
modelValue: unref(tinyColorRef),
|
|
498
499
|
"onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => isRef(tinyColorRef) ? tinyColorRef.value = $event : null),
|
|
500
|
+
label: _ctx.colorSwatchLabel,
|
|
499
501
|
hue: hueRef.value
|
|
500
|
-
}, null, 8, ["modelValue", "hue"]))
|
|
502
|
+
}, null, 8, ["modelValue", "label", "hue"]))
|
|
501
503
|
])
|
|
502
504
|
], 16)
|
|
503
505
|
]),
|
|
@@ -509,7 +511,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
509
511
|
};
|
|
510
512
|
}
|
|
511
513
|
});
|
|
512
|
-
const colorPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
514
|
+
const colorPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8814818c"]]);
|
|
513
515
|
export {
|
|
514
516
|
colorPicker as default
|
|
515
517
|
};
|
package/dist/es/color-swatch.js
CHANGED
|
@@ -10,14 +10,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
__name: "color-swatch",
|
|
11
11
|
props: {
|
|
12
12
|
modelValue: {},
|
|
13
|
-
label: {
|
|
13
|
+
label: {},
|
|
14
14
|
swatch: { default: () => DEFAULT_SWATCH },
|
|
15
15
|
defaultColor: {}
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
18
|
setup(__props, { emit: __emit }) {
|
|
19
19
|
useCssVars((_ctx) => ({
|
|
20
|
-
"
|
|
20
|
+
"608e7b2a": activeSwatchColorBg.value
|
|
21
21
|
}));
|
|
22
22
|
const props = __props;
|
|
23
23
|
const emit = __emit;
|
|
@@ -54,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
const ColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
57
|
+
const ColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e0b25a98"]]);
|
|
58
58
|
export {
|
|
59
59
|
ColorSwatch as default
|
|
60
60
|
};
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { shallowRef, computed, toValue, unref, defineComponent, mergeModels, useModel, useTemplateRef, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, createBlock, withCtx, mergeProps } from "vue";
|
|
2
|
+
import Button from "./button.js";
|
|
3
|
+
import { i as isClient, t as toArray, w as watchImmediate, a as tryOnScopeDispose, b as isObject } from "./chunks/index2.js";
|
|
4
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
5
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
|
+
const defaultWindow = isClient ? window : void 0;
|
|
7
|
+
function unrefElement(elRef) {
|
|
8
|
+
var _a;
|
|
9
|
+
const plain = toValue(elRef);
|
|
10
|
+
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
11
|
+
}
|
|
12
|
+
function useEventListener(...args) {
|
|
13
|
+
const cleanups = [];
|
|
14
|
+
const cleanup = () => {
|
|
15
|
+
cleanups.forEach((fn) => fn());
|
|
16
|
+
cleanups.length = 0;
|
|
17
|
+
};
|
|
18
|
+
const register = (el, event, listener, options) => {
|
|
19
|
+
el.addEventListener(event, listener, options);
|
|
20
|
+
return () => el.removeEventListener(event, listener, options);
|
|
21
|
+
};
|
|
22
|
+
const firstParamTargets = computed(() => {
|
|
23
|
+
const test = toArray(toValue(args[0])).filter((e) => e != null);
|
|
24
|
+
return test.every((e) => typeof e !== "string") ? test : void 0;
|
|
25
|
+
});
|
|
26
|
+
const stopWatch = watchImmediate(
|
|
27
|
+
() => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
return [
|
|
30
|
+
(_b = (_a = firstParamTargets.value) == null ? void 0 : _a.map((e) => unrefElement(e))) != null ? _b : [defaultWindow].filter((e) => e != null),
|
|
31
|
+
toArray(toValue(firstParamTargets.value ? args[1] : args[0])),
|
|
32
|
+
toArray(unref(firstParamTargets.value ? args[2] : args[1])),
|
|
33
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
34
|
+
toValue(firstParamTargets.value ? args[3] : args[2])
|
|
35
|
+
];
|
|
36
|
+
},
|
|
37
|
+
([raw_targets, raw_events, raw_listeners, raw_options]) => {
|
|
38
|
+
cleanup();
|
|
39
|
+
if (!(raw_targets == null ? void 0 : raw_targets.length) || !(raw_events == null ? void 0 : raw_events.length) || !(raw_listeners == null ? void 0 : raw_listeners.length))
|
|
40
|
+
return;
|
|
41
|
+
const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;
|
|
42
|
+
cleanups.push(
|
|
43
|
+
...raw_targets.flatMap(
|
|
44
|
+
(el) => raw_events.flatMap(
|
|
45
|
+
(event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
},
|
|
50
|
+
{ flush: "post" }
|
|
51
|
+
);
|
|
52
|
+
const stop = () => {
|
|
53
|
+
stopWatch();
|
|
54
|
+
cleanup();
|
|
55
|
+
};
|
|
56
|
+
tryOnScopeDispose(cleanup);
|
|
57
|
+
return stop;
|
|
58
|
+
}
|
|
59
|
+
function useDropZone(target, options = {}) {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
const isOverDropZone = shallowRef(false);
|
|
62
|
+
const files = shallowRef(null);
|
|
63
|
+
let counter = 0;
|
|
64
|
+
let isValid = true;
|
|
65
|
+
if (isClient) {
|
|
66
|
+
const _options = typeof options === "function" ? { onDrop: options } : options;
|
|
67
|
+
const multiple = (_a = _options.multiple) != null ? _a : true;
|
|
68
|
+
const preventDefaultForUnhandled = (_b = _options.preventDefaultForUnhandled) != null ? _b : false;
|
|
69
|
+
const getFiles = (event) => {
|
|
70
|
+
var _a2, _b2;
|
|
71
|
+
const list = Array.from((_b2 = (_a2 = event.dataTransfer) == null ? void 0 : _a2.files) != null ? _b2 : []);
|
|
72
|
+
return list.length === 0 ? null : multiple ? list : [list[0]];
|
|
73
|
+
};
|
|
74
|
+
const checkDataTypes = (types) => {
|
|
75
|
+
const dataTypes = unref(_options.dataTypes);
|
|
76
|
+
if (typeof dataTypes === "function")
|
|
77
|
+
return dataTypes(types);
|
|
78
|
+
if (!(dataTypes == null ? void 0 : dataTypes.length))
|
|
79
|
+
return true;
|
|
80
|
+
if (types.length === 0)
|
|
81
|
+
return false;
|
|
82
|
+
return types.every(
|
|
83
|
+
(type) => dataTypes.some((allowedType) => type.includes(allowedType))
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
const checkValidity = (items) => {
|
|
87
|
+
const types = Array.from(items != null ? items : []).map((item) => item.type);
|
|
88
|
+
const dataTypesValid = checkDataTypes(types);
|
|
89
|
+
const multipleFilesValid = multiple || items.length <= 1;
|
|
90
|
+
return dataTypesValid && multipleFilesValid;
|
|
91
|
+
};
|
|
92
|
+
const isSafari = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window);
|
|
93
|
+
const handleDragEvent = (event, eventType) => {
|
|
94
|
+
var _a2, _b2, _c, _d, _e, _f;
|
|
95
|
+
const dataTransferItemList = (_a2 = event.dataTransfer) == null ? void 0 : _a2.items;
|
|
96
|
+
isValid = (_b2 = dataTransferItemList && checkValidity(dataTransferItemList)) != null ? _b2 : false;
|
|
97
|
+
if (preventDefaultForUnhandled) {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
}
|
|
100
|
+
if (!isSafari() && !isValid) {
|
|
101
|
+
if (event.dataTransfer) {
|
|
102
|
+
event.dataTransfer.dropEffect = "none";
|
|
103
|
+
}
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
event.preventDefault();
|
|
107
|
+
if (event.dataTransfer) {
|
|
108
|
+
event.dataTransfer.dropEffect = "copy";
|
|
109
|
+
}
|
|
110
|
+
const currentFiles = getFiles(event);
|
|
111
|
+
switch (eventType) {
|
|
112
|
+
case "enter":
|
|
113
|
+
counter += 1;
|
|
114
|
+
isOverDropZone.value = true;
|
|
115
|
+
(_c = _options.onEnter) == null ? void 0 : _c.call(_options, null, event);
|
|
116
|
+
break;
|
|
117
|
+
case "over":
|
|
118
|
+
(_d = _options.onOver) == null ? void 0 : _d.call(_options, null, event);
|
|
119
|
+
break;
|
|
120
|
+
case "leave":
|
|
121
|
+
counter -= 1;
|
|
122
|
+
if (counter === 0)
|
|
123
|
+
isOverDropZone.value = false;
|
|
124
|
+
(_e = _options.onLeave) == null ? void 0 : _e.call(_options, null, event);
|
|
125
|
+
break;
|
|
126
|
+
case "drop":
|
|
127
|
+
counter = 0;
|
|
128
|
+
isOverDropZone.value = false;
|
|
129
|
+
if (isValid) {
|
|
130
|
+
files.value = currentFiles;
|
|
131
|
+
(_f = _options.onDrop) == null ? void 0 : _f.call(_options, currentFiles, event);
|
|
132
|
+
}
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
useEventListener(target, "dragenter", (event) => handleDragEvent(event, "enter"));
|
|
137
|
+
useEventListener(target, "dragover", (event) => handleDragEvent(event, "over"));
|
|
138
|
+
useEventListener(target, "dragleave", (event) => handleDragEvent(event, "leave"));
|
|
139
|
+
useEventListener(target, "drop", (event) => handleDragEvent(event, "drop"));
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
files,
|
|
143
|
+
isOverDropZone
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
const _hoisted_1 = ["data-over-drop-zone"];
|
|
147
|
+
const _hoisted_2 = { class: "celeste-file-upload-area-content" };
|
|
148
|
+
const _hoisted_3 = { class: "celeste-file-upload-area-label" };
|
|
149
|
+
const _hoisted_4 = {
|
|
150
|
+
key: 0,
|
|
151
|
+
class: "celeste-file-upload-area-description"
|
|
152
|
+
};
|
|
153
|
+
const _hoisted_5 = ["multiple", "accept"];
|
|
154
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
155
|
+
__name: "file-upload-area",
|
|
156
|
+
props: /* @__PURE__ */ mergeModels({
|
|
157
|
+
label: { default: "Choose a file or drag & drop it here." },
|
|
158
|
+
description: { default: "JPEG, PNG, PDF, and MP4 formats, up to 50 MB." },
|
|
159
|
+
labelOnDrop: { default: "Drop file to upload" },
|
|
160
|
+
triggerLabel: { default: "Browse Files" },
|
|
161
|
+
maxSize: { default: 2e3 },
|
|
162
|
+
maxFiles: { default: 5 },
|
|
163
|
+
multiple: { type: Boolean, default: false },
|
|
164
|
+
icon: { default: "i-celeste-upload-cloud-2-line" },
|
|
165
|
+
accept: {},
|
|
166
|
+
onTriggerClick: {},
|
|
167
|
+
class: {}
|
|
168
|
+
}, {
|
|
169
|
+
"modelValue": { default: [] },
|
|
170
|
+
"modelModifiers": {}
|
|
171
|
+
}),
|
|
172
|
+
emits: /* @__PURE__ */ mergeModels(["error"], ["update:modelValue"]),
|
|
173
|
+
setup(__props, { emit: __emit }) {
|
|
174
|
+
const props = __props;
|
|
175
|
+
const emit = __emit;
|
|
176
|
+
const files = useModel(__props, "modelValue");
|
|
177
|
+
const dropZoneRef = useTemplateRef("dropZoneRef");
|
|
178
|
+
const { isOverDropZone } = useDropZone(dropZoneRef, { onDrop });
|
|
179
|
+
function handleUpload(e) {
|
|
180
|
+
const input = e.target;
|
|
181
|
+
const newFiles = Array.from(input.files ?? []);
|
|
182
|
+
const filesToProcess = newFiles.slice(0, props.maxFiles);
|
|
183
|
+
const rejectedFiles = newFiles.slice(props.maxFiles);
|
|
184
|
+
if (rejectedFiles.length > 0) {
|
|
185
|
+
emit("error", {
|
|
186
|
+
message: "Files exceeded upload limit",
|
|
187
|
+
type: "count",
|
|
188
|
+
files: rejectedFiles
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
const validFiles = filesToProcess.filter(isValidFile);
|
|
192
|
+
files.value = [...validFiles];
|
|
193
|
+
}
|
|
194
|
+
function onDrop(droppedFiles) {
|
|
195
|
+
if (!(droppedFiles == null ? void 0 : droppedFiles.length))
|
|
196
|
+
return;
|
|
197
|
+
const filesToProcess = droppedFiles.slice(0, props.maxFiles);
|
|
198
|
+
const rejectedFiles = droppedFiles.slice(props.maxFiles);
|
|
199
|
+
if (rejectedFiles.length > 0) {
|
|
200
|
+
emit("error", {
|
|
201
|
+
message: "Files exceeded upload limit",
|
|
202
|
+
type: "count",
|
|
203
|
+
files: rejectedFiles
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
const validFiles = filesToProcess.filter(isValidFile);
|
|
207
|
+
files.value = [...validFiles];
|
|
208
|
+
}
|
|
209
|
+
function isValidFile(file) {
|
|
210
|
+
var _a;
|
|
211
|
+
const maxBytes = props.maxSize * 1024;
|
|
212
|
+
if (file.size > maxBytes) {
|
|
213
|
+
emit("error", {
|
|
214
|
+
message: `File too large: ${file.name}`,
|
|
215
|
+
type: "size",
|
|
216
|
+
files: [file]
|
|
217
|
+
});
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
const acceptableTypes = ((_a = props.accept) == null ? void 0 : _a.split(",")) ?? [];
|
|
221
|
+
if (acceptableTypes.length > 0 && !acceptableTypes.includes(file.type)) {
|
|
222
|
+
emit("error", {
|
|
223
|
+
message: "Unsupported type",
|
|
224
|
+
type: "type",
|
|
225
|
+
files: [file]
|
|
226
|
+
});
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
return true;
|
|
230
|
+
}
|
|
231
|
+
function handleTriggerClick(e) {
|
|
232
|
+
if (props.onTriggerClick) {
|
|
233
|
+
e.preventDefault();
|
|
234
|
+
props.onTriggerClick();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return (_ctx, _cache) => {
|
|
238
|
+
return openBlock(), createElementBlock("label", {
|
|
239
|
+
ref_key: "dropZoneRef",
|
|
240
|
+
ref: dropZoneRef,
|
|
241
|
+
class: normalizeClass(unref(clsx)(
|
|
242
|
+
"celeste-file-upload-area",
|
|
243
|
+
props.class
|
|
244
|
+
)),
|
|
245
|
+
"data-over-drop-zone": unref(isOverDropZone)
|
|
246
|
+
}, [
|
|
247
|
+
createElementVNode("i", {
|
|
248
|
+
class: normalizeClass(_ctx.icon)
|
|
249
|
+
}, null, 2),
|
|
250
|
+
createElementVNode("div", _hoisted_2, [
|
|
251
|
+
createElementVNode("span", _hoisted_3, toDisplayString(unref(isOverDropZone) ? _ctx.labelOnDrop : _ctx.label), 1),
|
|
252
|
+
!unref(isOverDropZone) ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true)
|
|
253
|
+
]),
|
|
254
|
+
!unref(isOverDropZone) ? (openBlock(), createBlock(Button, {
|
|
255
|
+
key: 0,
|
|
256
|
+
"as-child": "",
|
|
257
|
+
intent: "neutral",
|
|
258
|
+
variant: "stroke",
|
|
259
|
+
size: "xs",
|
|
260
|
+
class: "celeste-file-upload-area-trigger",
|
|
261
|
+
onClick: handleTriggerClick
|
|
262
|
+
}, {
|
|
263
|
+
default: withCtx(() => [
|
|
264
|
+
createElementVNode("span", null, toDisplayString(_ctx.triggerLabel), 1)
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})) : createCommentVNode("", true),
|
|
268
|
+
createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
269
|
+
type: "file",
|
|
270
|
+
multiple: _ctx.multiple,
|
|
271
|
+
accept: _ctx.accept,
|
|
272
|
+
onChange: handleUpload
|
|
273
|
+
}), null, 16, _hoisted_5)
|
|
274
|
+
], 10, _hoisted_1);
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
const fileUploadArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e8a873e"]]);
|
|
279
|
+
export {
|
|
280
|
+
fileUploadArea as default
|
|
281
|
+
};
|
package/dist/es/index.js
CHANGED
|
@@ -8,8 +8,13 @@ import LinkButton from "./link-button.js";
|
|
|
8
8
|
import socialButton from "./social-button.js";
|
|
9
9
|
import checkboxCard from "./checkbox-card.js";
|
|
10
10
|
import checkboxLabel from "./checkbox-label.js";
|
|
11
|
-
import { _ as _sfc_main } from "./chunks/checkbox.vue_vue_type_style_index_0_lang.js";
|
|
12
|
-
import { _ as _sfc_main
|
|
11
|
+
import { _ as _sfc_main$1 } from "./chunks/checkbox.vue_vue_type_style_index_0_lang.js";
|
|
12
|
+
import { _ as _sfc_main } from "./chunks/alpha-slider.js";
|
|
13
|
+
import ColorArea from "./color-area.js";
|
|
14
|
+
import colorPicker from "./color-picker.js";
|
|
15
|
+
import ColorSwatch from "./color-swatch.js";
|
|
16
|
+
import HueSlider from "./hue-slider.js";
|
|
17
|
+
import { _ as _sfc_main$2 } from "./chunks/combobox-anchor.js";
|
|
13
18
|
import ComboboxEmpty from "./combobox-empty.js";
|
|
14
19
|
import ComboboxGroup from "./combobox-group.js";
|
|
15
20
|
import ComboboxInput from "./combobox-input.js";
|
|
@@ -19,14 +24,11 @@ import ComboboxRoot from "./combobox-root.js";
|
|
|
19
24
|
import ComboboxSeparator from "./combobox-separator.js";
|
|
20
25
|
import ComboboxTrigger from "./combobox-trigger.js";
|
|
21
26
|
import combobox from "./combobox.js";
|
|
22
|
-
import { _ as _sfc_main$
|
|
23
|
-
import { _ as _sfc_main$
|
|
27
|
+
import { _ as _sfc_main$3 } from "./chunks/content-divider.vue_vue_type_style_index_0_lang.js";
|
|
28
|
+
import { _ as _sfc_main$4 } from "./chunks/counter-input.vue_vue_type_style_index_0_lang.js";
|
|
24
29
|
import digitInputGroup from "./digit-input-group.js";
|
|
25
30
|
import digitInputSlot from "./digit-input-slot.js";
|
|
26
31
|
import digitInput from "./digit-input.js";
|
|
27
|
-
import contextMenuItem from "./context-menu-item.js";
|
|
28
|
-
import DropdownItem from "./dropdown-item.js";
|
|
29
|
-
import dropdown from "./dropdown.js";
|
|
30
32
|
import dropdownMenuContent from "./dropdown-menu-content.js";
|
|
31
33
|
import dropdownMenuGroup from "./dropdown-menu-group.js";
|
|
32
34
|
import dropdownMenuItem from "./dropdown-menu-item.js";
|
|
@@ -34,44 +36,44 @@ import dropdownMenuLabel from "./dropdown-menu-label.js";
|
|
|
34
36
|
import dropdownMenuSeparator from "./dropdown-menu-separator.js";
|
|
35
37
|
import dropdownMenuSubContent from "./dropdown-menu-sub-content.js";
|
|
36
38
|
import dropdownMenuSubTrigger from "./dropdown-menu-sub-trigger.js";
|
|
37
|
-
import { _ as _sfc_main$
|
|
39
|
+
import { _ as _sfc_main$5 } from "./chunks/dropdown-menu-sub.js";
|
|
38
40
|
import dropdownMenuTrigger from "./dropdown-menu-trigger.js";
|
|
39
41
|
import dropdownMenu from "./dropdown-menu.js";
|
|
40
42
|
import hintText from "./hint-text.js";
|
|
41
43
|
import Label from "./label.js";
|
|
42
44
|
import modalBody from "./modal-body.js";
|
|
43
|
-
import { _ as _sfc_main$
|
|
45
|
+
import { _ as _sfc_main$7 } from "./chunks/modal-close.js";
|
|
44
46
|
import modalContent from "./modal-content.js";
|
|
45
47
|
import modalFooter from "./modal-footer.js";
|
|
46
48
|
import modalHeader from "./modal-header.js";
|
|
47
|
-
import { _ as _sfc_main$
|
|
48
|
-
import { _ as _sfc_main$
|
|
49
|
+
import { _ as _sfc_main$8 } from "./chunks/modal-trigger.js";
|
|
50
|
+
import { _ as _sfc_main$6 } from "./chunks/modal.js";
|
|
49
51
|
import PopoverContent from "./popover-content.js";
|
|
50
52
|
import PopoverTrigger from "./popover-trigger.js";
|
|
51
|
-
import { _ as _sfc_main$
|
|
53
|
+
import { _ as _sfc_main$9 } from "./chunks/popover.js";
|
|
52
54
|
import progressBar from "./progress-bar.js";
|
|
53
55
|
import progressCircle from "./progress-circle.js";
|
|
54
56
|
import radioGroupCard from "./radio-group-card.js";
|
|
55
|
-
import { _ as _sfc_main$
|
|
57
|
+
import { _ as _sfc_main$b } from "./chunks/radio-group-item.vue_vue_type_style_index_0_lang.js";
|
|
56
58
|
import radioGroupLabel from "./radio-group-label.js";
|
|
57
|
-
import { _ as _sfc_main$
|
|
59
|
+
import { _ as _sfc_main$a } from "./chunks/radio-group.vue_vue_type_style_index_0_lang.js";
|
|
58
60
|
import richEditor from "./rich-editor.js";
|
|
59
|
-
import { _ as _sfc_main$
|
|
61
|
+
import { _ as _sfc_main$c } from "./chunks/scroll-area.js";
|
|
60
62
|
import segmentedControlItem from "./segmented-control-item.js";
|
|
61
63
|
import segmentedControl from "./segmented-control.js";
|
|
62
64
|
import SelectContent from "./select-content.js";
|
|
63
|
-
import { _ as _sfc_main$
|
|
65
|
+
import { _ as _sfc_main$e } from "./chunks/select-group.js";
|
|
64
66
|
import SelectIcon from "./select-icon.js";
|
|
65
67
|
import SelectItem from "./select-item.js";
|
|
66
68
|
import selectLabel from "./select-label.js";
|
|
67
69
|
import selectSeparator from "./select-separator.js";
|
|
68
70
|
import SelectTrigger from "./select-trigger.js";
|
|
69
71
|
import SelectValue from "./select-value.js";
|
|
70
|
-
import { _ as _sfc_main$
|
|
71
|
-
import { _ as _sfc_main$
|
|
72
|
+
import { _ as _sfc_main$d } from "./chunks/select.js";
|
|
73
|
+
import { _ as _sfc_main$f } from "./chunks/slider.vue_vue_type_style_index_0_lang.js";
|
|
72
74
|
import SonnerAlert from "./sonner-alert.js";
|
|
73
|
-
import { _ as _sfc_main$
|
|
74
|
-
import { _ as _sfc_main$
|
|
75
|
+
import { _ as _sfc_main$g, t as toast$1 } from "./chunks/sonner.js";
|
|
76
|
+
import { _ as _sfc_main$h } from "./chunks/switch.vue_vue_type_style_index_0_lang.js";
|
|
75
77
|
import tabMenuContent from "./tab-menu-content.js";
|
|
76
78
|
import tabMenuItem from "./tab-menu-item.js";
|
|
77
79
|
import tabMenuList from "./tab-menu-list.js";
|
|
@@ -88,13 +90,17 @@ import { markRaw } from "vue";
|
|
|
88
90
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89
91
|
__proto__: null,
|
|
90
92
|
Alert,
|
|
93
|
+
AlphaSlider: _sfc_main,
|
|
91
94
|
Badge,
|
|
92
95
|
Button,
|
|
93
|
-
Checkbox: _sfc_main,
|
|
96
|
+
Checkbox: _sfc_main$1,
|
|
94
97
|
CheckboxCard: checkboxCard,
|
|
95
98
|
CheckboxLabel: checkboxLabel,
|
|
99
|
+
ColorArea,
|
|
100
|
+
ColorPicker: colorPicker,
|
|
101
|
+
ColorSwatch,
|
|
96
102
|
Combobox: combobox,
|
|
97
|
-
ComboboxAnchor: _sfc_main$
|
|
103
|
+
ComboboxAnchor: _sfc_main$2,
|
|
98
104
|
ComboboxEmpty,
|
|
99
105
|
ComboboxGroup,
|
|
100
106
|
ComboboxInput,
|
|
@@ -104,63 +110,61 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
104
110
|
ComboboxSeparator,
|
|
105
111
|
ComboboxTrigger,
|
|
106
112
|
CompactButton,
|
|
107
|
-
ContentDivider: _sfc_main$
|
|
108
|
-
|
|
109
|
-
CounterInput: _sfc_main$3,
|
|
113
|
+
ContentDivider: _sfc_main$3,
|
|
114
|
+
CounterInput: _sfc_main$4,
|
|
110
115
|
DigitInput: digitInput,
|
|
111
116
|
DigitInputGroup: digitInputGroup,
|
|
112
117
|
DigitInputSlot: digitInputSlot,
|
|
113
|
-
Dropdown: dropdown,
|
|
114
|
-
DropdownItem,
|
|
115
118
|
DropdownMenu: dropdownMenu,
|
|
116
119
|
DropdownMenuContent: dropdownMenuContent,
|
|
117
120
|
DropdownMenuGroup: dropdownMenuGroup,
|
|
118
121
|
DropdownMenuItem: dropdownMenuItem,
|
|
119
122
|
DropdownMenuLabel: dropdownMenuLabel,
|
|
120
123
|
DropdownMenuSeparator: dropdownMenuSeparator,
|
|
121
|
-
DropdownMenuSub: _sfc_main$
|
|
124
|
+
DropdownMenuSub: _sfc_main$5,
|
|
122
125
|
DropdownMenuSubContent: dropdownMenuSubContent,
|
|
123
126
|
DropdownMenuSubTrigger: dropdownMenuSubTrigger,
|
|
124
127
|
DropdownMenuTrigger: dropdownMenuTrigger,
|
|
125
128
|
FancyButton: fancyButton,
|
|
126
129
|
HintText: hintText,
|
|
130
|
+
HueSlider,
|
|
127
131
|
Label,
|
|
128
132
|
LinkButton,
|
|
129
|
-
Modal: _sfc_main$
|
|
133
|
+
Modal: _sfc_main$6,
|
|
130
134
|
ModalBody: modalBody,
|
|
131
|
-
ModalClose: _sfc_main$
|
|
135
|
+
ModalClose: _sfc_main$7,
|
|
132
136
|
ModalContent: modalContent,
|
|
133
137
|
ModalFooter: modalFooter,
|
|
134
138
|
ModalHeader: modalHeader,
|
|
135
|
-
ModalTrigger: _sfc_main$
|
|
136
|
-
Popover: _sfc_main$
|
|
139
|
+
ModalTrigger: _sfc_main$8,
|
|
140
|
+
Popover: _sfc_main$9,
|
|
137
141
|
PopoverContent,
|
|
138
142
|
PopoverTrigger,
|
|
139
143
|
ProgressBar: progressBar,
|
|
140
144
|
ProgressCircle: progressCircle,
|
|
141
|
-
RadioGroup: _sfc_main$
|
|
145
|
+
RadioGroup: _sfc_main$a,
|
|
142
146
|
RadioGroupCard: radioGroupCard,
|
|
143
|
-
RadioGroupItem: _sfc_main$
|
|
147
|
+
RadioGroupItem: _sfc_main$b,
|
|
144
148
|
RadioGroupLabel: radioGroupLabel,
|
|
145
149
|
RichEditor: richEditor,
|
|
146
|
-
ScrollArea: _sfc_main$
|
|
150
|
+
ScrollArea: _sfc_main$c,
|
|
147
151
|
SegmentedControl: segmentedControl,
|
|
148
152
|
SegmentedControlItem: segmentedControlItem,
|
|
149
|
-
Select: _sfc_main$
|
|
153
|
+
Select: _sfc_main$d,
|
|
150
154
|
SelectContent,
|
|
151
|
-
SelectGroup: _sfc_main$
|
|
155
|
+
SelectGroup: _sfc_main$e,
|
|
152
156
|
SelectIcon,
|
|
153
157
|
SelectItem,
|
|
154
158
|
SelectLabel: selectLabel,
|
|
155
159
|
SelectSeparator: selectSeparator,
|
|
156
160
|
SelectTrigger,
|
|
157
161
|
SelectValue,
|
|
158
|
-
Slider: _sfc_main$
|
|
162
|
+
Slider: _sfc_main$f,
|
|
159
163
|
SocialButton: socialButton,
|
|
160
|
-
Sonner: _sfc_main$
|
|
164
|
+
Sonner: _sfc_main$g,
|
|
161
165
|
SonnerAlert,
|
|
162
166
|
StatusBadge: statusBadge,
|
|
163
|
-
Switch: _sfc_main$
|
|
167
|
+
Switch: _sfc_main$h,
|
|
164
168
|
TabMenu: tabMenu,
|
|
165
169
|
TabMenuContent: tabMenuContent,
|
|
166
170
|
TabMenuItem: tabMenuItem,
|
|
@@ -230,15 +234,19 @@ const Celeste = {
|
|
|
230
234
|
};
|
|
231
235
|
export {
|
|
232
236
|
Alert,
|
|
237
|
+
_sfc_main as AlphaSlider,
|
|
233
238
|
Badge,
|
|
234
239
|
Button,
|
|
235
240
|
COLOR_NUMBER_VALIDATION_PATTERN,
|
|
236
241
|
Celeste,
|
|
237
|
-
_sfc_main as Checkbox,
|
|
242
|
+
_sfc_main$1 as Checkbox,
|
|
238
243
|
checkboxCard as CheckboxCard,
|
|
239
244
|
checkboxLabel as CheckboxLabel,
|
|
245
|
+
ColorArea,
|
|
246
|
+
colorPicker as ColorPicker,
|
|
247
|
+
ColorSwatch,
|
|
240
248
|
combobox as Combobox,
|
|
241
|
-
_sfc_main$
|
|
249
|
+
_sfc_main$2 as ComboboxAnchor,
|
|
242
250
|
ComboboxEmpty,
|
|
243
251
|
ComboboxGroup,
|
|
244
252
|
ComboboxInput,
|
|
@@ -248,65 +256,63 @@ export {
|
|
|
248
256
|
ComboboxSeparator,
|
|
249
257
|
ComboboxTrigger,
|
|
250
258
|
CompactButton,
|
|
251
|
-
_sfc_main$
|
|
252
|
-
|
|
253
|
-
_sfc_main$3 as CounterInput,
|
|
259
|
+
_sfc_main$3 as ContentDivider,
|
|
260
|
+
_sfc_main$4 as CounterInput,
|
|
254
261
|
DEFAULT_SWATCH,
|
|
255
262
|
digitInput as DigitInput,
|
|
256
263
|
digitInputGroup as DigitInputGroup,
|
|
257
264
|
digitInputSlot as DigitInputSlot,
|
|
258
|
-
dropdown as Dropdown,
|
|
259
|
-
DropdownItem,
|
|
260
265
|
dropdownMenu as DropdownMenu,
|
|
261
266
|
dropdownMenuContent as DropdownMenuContent,
|
|
262
267
|
dropdownMenuGroup as DropdownMenuGroup,
|
|
263
268
|
dropdownMenuItem as DropdownMenuItem,
|
|
264
269
|
dropdownMenuLabel as DropdownMenuLabel,
|
|
265
270
|
dropdownMenuSeparator as DropdownMenuSeparator,
|
|
266
|
-
_sfc_main$
|
|
271
|
+
_sfc_main$5 as DropdownMenuSub,
|
|
267
272
|
dropdownMenuSubContent as DropdownMenuSubContent,
|
|
268
273
|
dropdownMenuSubTrigger as DropdownMenuSubTrigger,
|
|
269
274
|
dropdownMenuTrigger as DropdownMenuTrigger,
|
|
270
275
|
fancyButton as FancyButton,
|
|
271
276
|
HEX_VALIDATION_PATTERN,
|
|
272
277
|
hintText as HintText,
|
|
278
|
+
HueSlider,
|
|
273
279
|
Label,
|
|
274
280
|
LinkButton,
|
|
275
|
-
_sfc_main$
|
|
281
|
+
_sfc_main$6 as Modal,
|
|
276
282
|
modalBody as ModalBody,
|
|
277
|
-
_sfc_main$
|
|
283
|
+
_sfc_main$7 as ModalClose,
|
|
278
284
|
modalContent as ModalContent,
|
|
279
285
|
modalFooter as ModalFooter,
|
|
280
286
|
modalHeader as ModalHeader,
|
|
281
|
-
_sfc_main$
|
|
282
|
-
_sfc_main$
|
|
287
|
+
_sfc_main$8 as ModalTrigger,
|
|
288
|
+
_sfc_main$9 as Popover,
|
|
283
289
|
PopoverContent,
|
|
284
290
|
PopoverTrigger,
|
|
285
291
|
progressBar as ProgressBar,
|
|
286
292
|
progressCircle as ProgressCircle,
|
|
287
|
-
_sfc_main$
|
|
293
|
+
_sfc_main$a as RadioGroup,
|
|
288
294
|
radioGroupCard as RadioGroupCard,
|
|
289
|
-
_sfc_main$
|
|
295
|
+
_sfc_main$b as RadioGroupItem,
|
|
290
296
|
radioGroupLabel as RadioGroupLabel,
|
|
291
297
|
richEditor as RichEditor,
|
|
292
|
-
_sfc_main$
|
|
298
|
+
_sfc_main$c as ScrollArea,
|
|
293
299
|
segmentedControl as SegmentedControl,
|
|
294
300
|
segmentedControlItem as SegmentedControlItem,
|
|
295
|
-
_sfc_main$
|
|
301
|
+
_sfc_main$d as Select,
|
|
296
302
|
SelectContent,
|
|
297
|
-
_sfc_main$
|
|
303
|
+
_sfc_main$e as SelectGroup,
|
|
298
304
|
SelectIcon,
|
|
299
305
|
SelectItem,
|
|
300
306
|
selectLabel as SelectLabel,
|
|
301
307
|
selectSeparator as SelectSeparator,
|
|
302
308
|
SelectTrigger,
|
|
303
309
|
SelectValue,
|
|
304
|
-
_sfc_main$
|
|
310
|
+
_sfc_main$f as Slider,
|
|
305
311
|
socialButton as SocialButton,
|
|
306
|
-
_sfc_main$
|
|
312
|
+
_sfc_main$g as Sonner,
|
|
307
313
|
SonnerAlert,
|
|
308
314
|
statusBadge as StatusBadge,
|
|
309
|
-
_sfc_main$
|
|
315
|
+
_sfc_main$h as Switch,
|
|
310
316
|
tabMenu as TabMenu,
|
|
311
317
|
tabMenuContent as TabMenuContent,
|
|
312
318
|
tabMenuItem as TabMenuItem,
|