@youcan/celeste 0.6.21 → 0.6.23
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 +396 -419
- package/dist/cjs/color-picker.js +1 -2
- package/dist/cjs/combobox-input.js +4 -8
- package/dist/cjs/combobox-list.js +3 -2
- package/dist/cjs/combobox-trigger.js +2 -1
- package/dist/cjs/combobox.js +29 -23
- package/dist/cjs/index.js +0 -3
- package/dist/cjs/text-input-affix.js +1 -2
- package/dist/cjs/text-input-button.js +2 -3
- package/dist/cjs/text-input.js +81 -4
- package/dist/components/combobox/combobox.d.ts +1 -0
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/text-input/index.d.ts +0 -2
- package/dist/components/text-input/text-input-affix.d.ts +1 -4
- package/dist/components/text-input/text-input.d.ts +6 -1
- package/dist/es/color-picker.js +1 -2
- package/dist/es/combobox-input.js +5 -9
- package/dist/es/combobox-list.js +3 -2
- package/dist/es/combobox-trigger.js +2 -1
- package/dist/es/combobox.js +30 -24
- package/dist/es/index.js +3 -6
- package/dist/es/text-input-affix.js +1 -2
- package/dist/es/text-input-button.js +2 -3
- package/dist/es/text-input.js +82 -5
- package/package.json +3 -3
- package/src/components/combobox/combobox-input.vue +3 -2
- package/src/components/combobox/combobox-list.vue +15 -35
- package/src/components/combobox/combobox-trigger.vue +1 -0
- package/src/components/combobox/combobox.vue +9 -4
- package/src/components/text-input/index.ts +0 -3
- package/src/components/text-input/stories/text-input.stories.ts +142 -45
- package/src/components/text-input/text-input-affix.vue +5 -12
- package/src/components/text-input/text-input-button.vue +8 -3
- package/src/components/text-input/text-input.vue +129 -64
- package/dist/cjs/text-input-icon.js +0 -29
- package/dist/components/text-input/text-input-icon.d.ts +0 -10
- package/dist/es/text-input-icon.js +0 -30
- package/src/components/text-input/text-input-icon.vue +0 -37
package/dist/cjs/color-picker.js
CHANGED
|
@@ -21,8 +21,7 @@ const selectTrigger = require("./select-trigger.js");
|
|
|
21
21
|
const selectValue = require("./select-value.js");
|
|
22
22
|
const select_vue_vue_type_script_setup_true_lang = require("./chunks/select.js");
|
|
23
23
|
;/* empty css */
|
|
24
|
-
|
|
25
|
-
;/* empty css */
|
|
24
|
+
require("./text-input-button.js");
|
|
26
25
|
const textInput = require("./text-input.js");
|
|
27
26
|
const alphaSlider_vue_vue_type_script_setup_true_lang = require("./chunks/alpha-slider.js");
|
|
28
27
|
const colorArea = require("./color-area.js");
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.js");
|
|
4
4
|
const index = require("./chunks/index.js");
|
|
5
|
-
const textInputIcon = require("./text-input-icon.js");
|
|
6
5
|
const textInput = require("./text-input.js");
|
|
7
6
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
7
|
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
@@ -49,12 +48,9 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
49
48
|
readonly: !props.searchable,
|
|
50
49
|
style: !props.searchable ? "opacity: 0; height: 1px; padding: 0; border: none;" : ""
|
|
51
50
|
}), {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
icon: "i-celeste-search-2-line"
|
|
56
|
-
})) : Mo.createCommentVNode("", true)
|
|
57
|
-
]),
|
|
51
|
+
leadingIcon: Mo.withCtx(() => _cache[1] || (_cache[1] = [
|
|
52
|
+
Mo.createElementVNode("i", { "i-celeste-search-2-line": "" }, null, -1)
|
|
53
|
+
])),
|
|
58
54
|
_: 1
|
|
59
55
|
}, 16, ["modelValue", "readonly", "style"])
|
|
60
56
|
]),
|
|
@@ -63,5 +59,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
63
59
|
};
|
|
64
60
|
}
|
|
65
61
|
});
|
|
66
|
-
const ComboboxInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
62
|
+
const ComboboxInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-bd59a65e"]]);
|
|
67
63
|
module.exports = ComboboxInput;
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
12
12
|
dismissable: { type: Boolean },
|
|
13
13
|
side: {},
|
|
14
14
|
sideOffset: { default: 4 },
|
|
15
|
-
align: { default: "
|
|
15
|
+
align: { default: "center" },
|
|
16
16
|
alignOffset: {},
|
|
17
17
|
avoidCollisions: { type: Boolean },
|
|
18
18
|
collisionBoundary: {},
|
|
@@ -40,6 +40,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
40
40
|
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.nm), null, {
|
|
41
41
|
default: Mo.withCtx(() => [
|
|
42
42
|
Mo.createVNode(Mo.unref(index.Xv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
43
|
+
"force-mount": "",
|
|
43
44
|
class: Mo.unref(clsx.clsx)("celeste-dropdown-content", props.class)
|
|
44
45
|
}), {
|
|
45
46
|
default: Mo.withCtx(() => [
|
|
@@ -58,5 +59,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
|
-
const ComboboxList = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
62
|
+
const ComboboxList = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-8e15332e"]]);
|
|
62
63
|
module.exports = ComboboxList;
|
|
@@ -24,6 +24,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
24
24
|
const forwarded = index.At(delegatedProps);
|
|
25
25
|
return (_ctx, _cache) => {
|
|
26
26
|
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Uv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
27
|
+
type: "button",
|
|
27
28
|
tabindex: "0",
|
|
28
29
|
class: Mo.unref(clsx.clsx)(
|
|
29
30
|
"celeste-dropdown-anchor-trigger",
|
|
@@ -42,5 +43,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
|
-
const ComboboxTrigger = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
46
|
+
const ComboboxTrigger = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-43f9e53e"]]);
|
|
46
47
|
module.exports = ComboboxTrigger;
|
package/dist/cjs/combobox.js
CHANGED
|
@@ -12,24 +12,28 @@ const comboboxRoot_vue_vue_type_script_setup_true_lang = require("./chunks/combo
|
|
|
12
12
|
const comboboxSeparator = require("./combobox-separator.js");
|
|
13
13
|
const comboboxTrigger = require("./combobox-trigger.js");
|
|
14
14
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
15
|
-
const _hoisted_1 = {
|
|
16
|
-
const _hoisted_2 = {
|
|
15
|
+
const _hoisted_1 = {
|
|
17
16
|
key: 0,
|
|
18
|
-
class: "celeste-dropdown-anchor-trigger-prefix
|
|
17
|
+
class: "celeste-dropdown-anchor-trigger-prefix"
|
|
19
18
|
};
|
|
19
|
+
const _hoisted_2 = { class: "celeste-dropdown-anchor-trigger-prefix-selected" };
|
|
20
20
|
const _hoisted_3 = { key: 1 };
|
|
21
21
|
const _hoisted_4 = ["src"];
|
|
22
22
|
const _hoisted_5 = {
|
|
23
|
-
key:
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "celeste-dropdown-anchor-trigger-prefix"
|
|
25
|
+
};
|
|
26
|
+
const _hoisted_6 = {
|
|
27
|
+
key: 2,
|
|
24
28
|
class: "celeste-dropdown-input"
|
|
25
29
|
};
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
30
|
+
const _hoisted_7 = { key: 0 };
|
|
31
|
+
const _hoisted_8 = { key: 1 };
|
|
32
|
+
const _hoisted_9 = {
|
|
29
33
|
key: 2,
|
|
30
34
|
class: "celeste-input-badge"
|
|
31
35
|
};
|
|
32
|
-
const
|
|
36
|
+
const _hoisted_10 = ["src"];
|
|
33
37
|
const __default__ = {
|
|
34
38
|
inheritAttrs: false
|
|
35
39
|
};
|
|
@@ -41,10 +45,11 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
41
45
|
valueBy: {},
|
|
42
46
|
placeholder: { default: "Select" },
|
|
43
47
|
type: {},
|
|
44
|
-
size: { default: "
|
|
48
|
+
size: { default: "md" },
|
|
45
49
|
emptyLabel: {},
|
|
46
50
|
badgeProps: {},
|
|
47
51
|
searchable: { type: Boolean },
|
|
52
|
+
class: {},
|
|
48
53
|
modelValue: {},
|
|
49
54
|
defaultValue: {},
|
|
50
55
|
open: { type: Boolean },
|
|
@@ -77,6 +82,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
77
82
|
emptyLabel,
|
|
78
83
|
badgeProps,
|
|
79
84
|
searchable,
|
|
85
|
+
class: _class,
|
|
80
86
|
...delegated
|
|
81
87
|
} = props;
|
|
82
88
|
return delegated;
|
|
@@ -119,11 +125,12 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
119
125
|
Mo.createVNode(comboboxTrigger, {
|
|
120
126
|
type: _ctx.type,
|
|
121
127
|
filled: !!model.value,
|
|
122
|
-
size: _ctx.size
|
|
128
|
+
size: _ctx.size,
|
|
129
|
+
class: Mo.normalizeClass(props.class)
|
|
123
130
|
}, {
|
|
124
131
|
default: Mo.withCtx(() => [
|
|
125
|
-
Mo.
|
|
126
|
-
|
|
132
|
+
model.value && !Array.isArray(model.value) && (model.value.icon || model.value.image) ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_1, [
|
|
133
|
+
Mo.createElementVNode("div", _hoisted_2, [
|
|
127
134
|
model.value.icon ? (Mo.openBlock(), Mo.createElementBlock("i", {
|
|
128
135
|
key: 0,
|
|
129
136
|
class: Mo.normalizeClass(model.value.icon)
|
|
@@ -137,14 +144,13 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
137
144
|
}, null, 8, _hoisted_4)
|
|
138
145
|
], true)
|
|
139
146
|
])) : Mo.createCommentVNode("", true)
|
|
140
|
-
])
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
mergedBadgeProps.value && _ctx.badgeProps ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_8, [
|
|
147
|
+
])
|
|
148
|
+
])) : _ctx.$slots.prefix ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_5, [
|
|
149
|
+
Mo.renderSlot(_ctx.$slots, "prefix", { class: "celeste-dropdown-anchor-trigger-prefix-default" }, void 0, true)
|
|
150
|
+
])) : Mo.createCommentVNode("", true),
|
|
151
|
+
_ctx.type !== "inline" ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_6, [
|
|
152
|
+
_ctx.multiple ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_7, Mo.toDisplayString(_ctx.placeholder), 1)) : (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_8, Mo.toDisplayString(model.value && !Array.isArray(model.value) ? model.value.label : props.placeholder), 1)),
|
|
153
|
+
mergedBadgeProps.value && _ctx.badgeProps ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_9, [
|
|
148
154
|
Mo.createVNode(badge, Mo.normalizeProps(Mo.guardReactiveProps(mergedBadgeProps.value)), null, 16)
|
|
149
155
|
])) : Mo.createCommentVNode("", true)
|
|
150
156
|
])) : Mo.createCommentVNode("", true),
|
|
@@ -153,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
153
159
|
], -1))
|
|
154
160
|
]),
|
|
155
161
|
_: 3
|
|
156
|
-
}, 8, ["type", "filled", "size"])
|
|
162
|
+
}, 8, ["type", "filled", "size", "class"])
|
|
157
163
|
]),
|
|
158
164
|
_: 3
|
|
159
165
|
}),
|
|
@@ -196,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
196
202
|
src: option.image,
|
|
197
203
|
alt: "option",
|
|
198
204
|
class: "celeste-dropdown-item-image"
|
|
199
|
-
}, null, 8,
|
|
205
|
+
}, null, 8, _hoisted_10)) : Mo.createCommentVNode("", true)
|
|
200
206
|
]),
|
|
201
207
|
_: 2
|
|
202
208
|
}, 1032, ["label", "sublabel", "description", "checkbox", "value", "selected"]);
|
|
@@ -213,5 +219,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
213
219
|
};
|
|
214
220
|
}
|
|
215
221
|
});
|
|
216
|
-
const combobox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
222
|
+
const combobox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-268c7202"]]);
|
|
217
223
|
module.exports = combobox;
|
package/dist/cjs/index.js
CHANGED
|
@@ -65,7 +65,6 @@ const tabMenuList = require("./tab-menu-list.js");
|
|
|
65
65
|
const tabMenu = require("./tab-menu.js");
|
|
66
66
|
const textInputAffix = require("./text-input-affix.js");
|
|
67
67
|
const textInputButton = require("./text-input-button.js");
|
|
68
|
-
const textInputIcon = require("./text-input-icon.js");
|
|
69
68
|
const textInput = require("./text-input.js");
|
|
70
69
|
const textarea = require("./textarea.js");
|
|
71
70
|
const tooltip = require("./tooltip.js");
|
|
@@ -137,7 +136,6 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
137
136
|
TextInput: textInput,
|
|
138
137
|
TextInputAffix: textInputAffix,
|
|
139
138
|
TextInputButton: textInputButton,
|
|
140
|
-
TextInputIcon: textInputIcon,
|
|
141
139
|
Textarea: textarea,
|
|
142
140
|
Tooltip: tooltip
|
|
143
141
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -213,7 +211,6 @@ exports.TabMenuList = tabMenuList;
|
|
|
213
211
|
exports.TabMenu = tabMenu;
|
|
214
212
|
exports.TextInputAffix = textInputAffix;
|
|
215
213
|
exports.TextInputButton = textInputButton;
|
|
216
|
-
exports.TextInputIcon = textInputIcon;
|
|
217
214
|
exports.TextInput = textInput;
|
|
218
215
|
exports.Textarea = textarea;
|
|
219
216
|
exports.Tooltip = tooltip;
|
|
@@ -8,7 +8,6 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
8
8
|
__name: "text-input-affix",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
11
|
-
variant: { default: "prefix" },
|
|
12
11
|
inline: { type: Boolean },
|
|
13
12
|
asKbd: { type: Boolean }
|
|
14
13
|
},
|
|
@@ -24,5 +23,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
24
23
|
};
|
|
25
24
|
}
|
|
26
25
|
});
|
|
27
|
-
const textInputAffix = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
26
|
+
const textInputAffix = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-2d8a1dbc"]]);
|
|
28
27
|
module.exports = textInputAffix;
|
|
@@ -3,7 +3,6 @@ const Mo = require("vue");
|
|
|
3
3
|
const button = require("./button.js");
|
|
4
4
|
const useDelegatedProps = require("./use-delegated-props.js");
|
|
5
5
|
const clsx = require("./chunks/clsx.js");
|
|
6
|
-
;/* empty css */
|
|
7
6
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
7
|
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
9
8
|
__name: "text-input-button",
|
|
@@ -28,5 +27,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
29
|
});
|
|
31
|
-
const
|
|
32
|
-
module.exports =
|
|
30
|
+
const TextInputButton = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-7d21364e"]]);
|
|
31
|
+
module.exports = TextInputButton;
|
package/dist/cjs/text-input.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const Mo = require("vue");
|
|
3
|
+
const crypto = require("./crypto.js");
|
|
3
4
|
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const textInputButton = require("./text-input-button.js");
|
|
4
7
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
5
|
-
const _hoisted_1 = ["size", "has-error"];
|
|
6
|
-
const _hoisted_2 = ["type"];
|
|
8
|
+
const _hoisted_1 = ["for", "size", "has-error"];
|
|
9
|
+
const _hoisted_2 = ["id", "type"];
|
|
7
10
|
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
11
|
__name: "text-input",
|
|
9
12
|
props: /* @__PURE__ */ Mo.mergeModels({
|
|
@@ -17,15 +20,52 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
17
20
|
emits: ["update:modelValue"],
|
|
18
21
|
setup(__props) {
|
|
19
22
|
const props = __props;
|
|
23
|
+
const id = Mo.computed(() => props.id || crypto.uid());
|
|
20
24
|
const modelValue = Mo.useModel(__props, "modelValue");
|
|
25
|
+
const showClearButton = Mo.computed(() => {
|
|
26
|
+
return props.type === "search" && modelValue.value && String(modelValue.value).length > 0;
|
|
27
|
+
});
|
|
28
|
+
function clearInput() {
|
|
29
|
+
modelValue.value = "";
|
|
30
|
+
}
|
|
21
31
|
return (_ctx, _cache) => {
|
|
22
32
|
return Mo.openBlock(), Mo.createElementBlock("label", {
|
|
33
|
+
for: id.value,
|
|
23
34
|
size: _ctx.size,
|
|
24
35
|
role: "presentation",
|
|
25
36
|
"has-error": _ctx.hasError,
|
|
26
37
|
class: Mo.normalizeClass(Mo.unref(clsx.clsx)("celeste-text-input-wrapper", props.class))
|
|
27
38
|
}, [
|
|
39
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
40
|
+
"as-child": "",
|
|
41
|
+
class: "celeste-text-input-icon celeste-text-input-leading-icon"
|
|
42
|
+
}, {
|
|
43
|
+
default: Mo.withCtx(() => [
|
|
44
|
+
Mo.renderSlot(_ctx.$slots, "leadingIcon", {}, void 0, true)
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
}),
|
|
48
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
49
|
+
"as-child": "",
|
|
50
|
+
class: "celeste-text-input-node celeste-text-input-leading-node"
|
|
51
|
+
}, {
|
|
52
|
+
default: Mo.withCtx(() => [
|
|
53
|
+
Mo.renderSlot(_ctx.$slots, "leadingNode", {}, void 0, true)
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}),
|
|
57
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
58
|
+
inline: "",
|
|
59
|
+
"as-child": "",
|
|
60
|
+
class: "celeste-text-input-inline-node celeste-text-input-leading-inline-node"
|
|
61
|
+
}, {
|
|
62
|
+
default: Mo.withCtx(() => [
|
|
63
|
+
Mo.renderSlot(_ctx.$slots, "leadingInlineNode", {}, void 0, true)
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}),
|
|
28
67
|
Mo.withDirectives(Mo.createElementVNode("input", Mo.mergeProps({
|
|
68
|
+
id: id.value,
|
|
29
69
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
30
70
|
}, _ctx.$attrs, {
|
|
31
71
|
type: _ctx.type,
|
|
@@ -33,10 +73,47 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
33
73
|
}), null, 16, _hoisted_2), [
|
|
34
74
|
[Mo.vModelDynamic, modelValue.value]
|
|
35
75
|
]),
|
|
36
|
-
Mo.
|
|
76
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
77
|
+
"as-child": "",
|
|
78
|
+
class: "celeste-text-input-icon celeste-text-input-trailing-icon"
|
|
79
|
+
}, {
|
|
80
|
+
default: Mo.withCtx(() => [
|
|
81
|
+
Mo.renderSlot(_ctx.$slots, "trailingIcon", {}, void 0, true)
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}),
|
|
85
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
86
|
+
"as-child": "",
|
|
87
|
+
class: "celeste-text-input-node celeste-text-input-trailing-node"
|
|
88
|
+
}, {
|
|
89
|
+
default: Mo.withCtx(() => [
|
|
90
|
+
Mo.renderSlot(_ctx.$slots, "trailingNode", {}, void 0, true)
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}),
|
|
94
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
95
|
+
inline: "",
|
|
96
|
+
"as-child": "",
|
|
97
|
+
class: "celeste-text-input-inline-node celeste-text-input-trailing-inline-node"
|
|
98
|
+
}, {
|
|
99
|
+
default: Mo.withCtx(() => [
|
|
100
|
+
showClearButton.value ? (Mo.openBlock(), Mo.createBlock(textInputButton, {
|
|
101
|
+
key: 0,
|
|
102
|
+
type: "button",
|
|
103
|
+
"aria-label": "Clear search",
|
|
104
|
+
onClick: clearInput
|
|
105
|
+
}, {
|
|
106
|
+
default: Mo.withCtx(() => _cache[1] || (_cache[1] = [
|
|
107
|
+
Mo.createElementVNode("i", { class: "i-celeste-close-line" }, null, -1)
|
|
108
|
+
])),
|
|
109
|
+
_: 1
|
|
110
|
+
})) : Mo.renderSlot(_ctx.$slots, "trailingInlineNode", { key: 1 }, void 0, true)
|
|
111
|
+
]),
|
|
112
|
+
_: 3
|
|
113
|
+
})
|
|
37
114
|
], 10, _hoisted_1);
|
|
38
115
|
};
|
|
39
116
|
}
|
|
40
117
|
});
|
|
41
|
-
const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
118
|
+
const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-db633aec"]]);
|
|
42
119
|
module.exports = TextInput;
|
|
@@ -10,6 +10,7 @@ export interface ComboboxPropsType extends ComboboxRootProps {
|
|
|
10
10
|
emptyLabel?: string;
|
|
11
11
|
badgeProps?: BadgeProps;
|
|
12
12
|
searchable?: boolean;
|
|
13
|
+
class?: string;
|
|
13
14
|
}
|
|
14
15
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
16
|
"update:modelValue": (value: import('node_modules/radix-vue/dist/Combobox/ComboboxRoot').AcceptableValue) => any;
|
|
@@ -33,10 +33,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
33
33
|
size: "xs" | "sm" | "md";
|
|
34
34
|
type: "normal" | "compact" | "inline" | "compact-input";
|
|
35
35
|
disabled: boolean;
|
|
36
|
-
position: "top" | "bottom";
|
|
37
36
|
multiple: boolean;
|
|
38
37
|
placeholder: string;
|
|
39
38
|
searchable: boolean;
|
|
39
|
+
position: "top" | "bottom";
|
|
40
40
|
align: "start" | "end" | "center";
|
|
41
41
|
emptyLabel: string;
|
|
42
42
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
@@ -2,7 +2,5 @@ export * from './text-input-affix';
|
|
|
2
2
|
export { default as TextInputAffix } from './text-input-affix';
|
|
3
3
|
export * from './text-input-button';
|
|
4
4
|
export { default as TextInputButton } from './text-input-button';
|
|
5
|
-
export * from './text-input-icon';
|
|
6
|
-
export { default as TextInputIcon } from './text-input-icon';
|
|
7
5
|
export * from './text-input';
|
|
8
6
|
export { default as TextInput } from './text-input';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
class?: HTMLAttributes['class'];
|
|
4
|
-
variant?: 'prefix' | 'suffix';
|
|
5
4
|
inline?: boolean;
|
|
6
5
|
asKbd?: boolean;
|
|
7
6
|
};
|
|
@@ -14,9 +13,7 @@ declare function __VLS_template(): {
|
|
|
14
13
|
rootEl: HTMLSpanElement;
|
|
15
14
|
};
|
|
16
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
-
variant: "prefix" | "suffix";
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
20
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
18
|
export default _default;
|
|
22
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -17,7 +17,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
17
17
|
type: "text" | "email" | "password" | "search" | "tel" | "url";
|
|
18
18
|
hasError: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>, {
|
|
20
|
-
|
|
20
|
+
leadingIcon?(_: {}): any;
|
|
21
|
+
leadingNode?(_: {}): any;
|
|
22
|
+
leadingInlineNode?(_: {}): any;
|
|
23
|
+
trailingIcon?(_: {}): any;
|
|
24
|
+
trailingNode?(_: {}): any;
|
|
25
|
+
trailingInlineNode?(_: {}): any;
|
|
21
26
|
}>;
|
|
22
27
|
export default _default;
|
|
23
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/es/color-picker.js
CHANGED
|
@@ -20,8 +20,7 @@ import SelectTrigger from "./select-trigger.js";
|
|
|
20
20
|
import SelectValue from "./select-value.js";
|
|
21
21
|
import { _ as _sfc_main$3 } from "./chunks/select.js";
|
|
22
22
|
/* empty css */
|
|
23
|
-
|
|
24
|
-
/* empty css */
|
|
23
|
+
import "./text-input-button.js";
|
|
25
24
|
import TextInput from "./text-input.js";
|
|
26
25
|
import { _ as _sfc_main$2 } from "./chunks/alpha-slider.js";
|
|
27
26
|
import ColorArea from "./color-area.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode,
|
|
1
|
+
import { defineComponent, mergeModels, useModel, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, createElementVNode } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
import { D as Wv } from "./chunks/index.js";
|
|
4
|
-
import TextInputIcon from "./text-input-icon.js";
|
|
5
4
|
import TextInput from "./text-input.js";
|
|
6
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -48,12 +47,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
47
|
readonly: !props.searchable,
|
|
49
48
|
style: !props.searchable ? "opacity: 0; height: 1px; padding: 0; border: none;" : ""
|
|
50
49
|
}), {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
icon: "i-celeste-search-2-line"
|
|
55
|
-
})) : createCommentVNode("", true)
|
|
56
|
-
]),
|
|
50
|
+
leadingIcon: withCtx(() => _cache[1] || (_cache[1] = [
|
|
51
|
+
createElementVNode("i", { "i-celeste-search-2-line": "" }, null, -1)
|
|
52
|
+
])),
|
|
57
53
|
_: 1
|
|
58
54
|
}, 16, ["modelValue", "readonly", "style"])
|
|
59
55
|
]),
|
|
@@ -62,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
58
|
};
|
|
63
59
|
}
|
|
64
60
|
});
|
|
65
|
-
const ComboboxInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
61
|
+
const ComboboxInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bd59a65e"]]);
|
|
66
62
|
export {
|
|
67
63
|
ComboboxInput as default
|
|
68
64
|
};
|
package/dist/es/combobox-list.js
CHANGED
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
dismissable: { type: Boolean },
|
|
12
12
|
side: {},
|
|
13
13
|
sideOffset: { default: 4 },
|
|
14
|
-
align: { default: "
|
|
14
|
+
align: { default: "center" },
|
|
15
15
|
alignOffset: {},
|
|
16
16
|
avoidCollisions: { type: Boolean },
|
|
17
17
|
collisionBoundary: {},
|
|
@@ -39,6 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
return openBlock(), createBlock(unref(nm), null, {
|
|
40
40
|
default: withCtx(() => [
|
|
41
41
|
createVNode(unref(Xv), mergeProps(unref(forwarded), {
|
|
42
|
+
"force-mount": "",
|
|
42
43
|
class: unref(clsx)("celeste-dropdown-content", props.class)
|
|
43
44
|
}), {
|
|
44
45
|
default: withCtx(() => [
|
|
@@ -57,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
});
|
|
60
|
-
const ComboboxList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
61
|
+
const ComboboxList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e15332e"]]);
|
|
61
62
|
export {
|
|
62
63
|
ComboboxList as default
|
|
63
64
|
};
|
|
@@ -23,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
const forwarded = At(delegatedProps);
|
|
24
24
|
return (_ctx, _cache) => {
|
|
25
25
|
return openBlock(), createBlock(unref(Uv), mergeProps(unref(forwarded), {
|
|
26
|
+
type: "button",
|
|
26
27
|
tabindex: "0",
|
|
27
28
|
class: unref(clsx)(
|
|
28
29
|
"celeste-dropdown-anchor-trigger",
|
|
@@ -41,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
|
-
const ComboboxTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
45
|
+
const ComboboxTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-43f9e53e"]]);
|
|
45
46
|
export {
|
|
46
47
|
ComboboxTrigger as default
|
|
47
48
|
};
|