@youcan/celeste 0.6.20 → 0.6.22
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 +346 -357
- package/dist/cjs/color-picker.js +1 -2
- package/dist/cjs/combobox-input.js +4 -8
- 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.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.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 -19
- package/src/components/text-input/text-input-button.vue +8 -3
- package/src/components/text-input/text-input.vue +133 -61
- 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;
|
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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, mergeProps, unref, withCtx, createVNode,
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, mergeProps, unref, withCtx, createVNode, normalizeClass, createElementBlock, createElementVNode, createCommentVNode, renderSlot, normalizeProps, guardReactiveProps, toDisplayString, createSlots, createTextVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { x as xe } from "./chunks/index.js";
|
|
3
3
|
import Badge from "./badge.js";
|
|
4
4
|
import { _ as _sfc_main$2 } from "./chunks/combobox-anchor.js";
|
|
@@ -11,24 +11,28 @@ import { _ as _sfc_main$1 } from "./chunks/combobox-root.js";
|
|
|
11
11
|
import ComboboxSeparator from "./combobox-separator.js";
|
|
12
12
|
import ComboboxTrigger from "./combobox-trigger.js";
|
|
13
13
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
14
|
-
const _hoisted_1 = {
|
|
15
|
-
const _hoisted_2 = {
|
|
14
|
+
const _hoisted_1 = {
|
|
16
15
|
key: 0,
|
|
17
|
-
class: "celeste-dropdown-anchor-trigger-prefix
|
|
16
|
+
class: "celeste-dropdown-anchor-trigger-prefix"
|
|
18
17
|
};
|
|
18
|
+
const _hoisted_2 = { class: "celeste-dropdown-anchor-trigger-prefix-selected" };
|
|
19
19
|
const _hoisted_3 = { key: 1 };
|
|
20
20
|
const _hoisted_4 = ["src"];
|
|
21
21
|
const _hoisted_5 = {
|
|
22
|
-
key:
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "celeste-dropdown-anchor-trigger-prefix"
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_6 = {
|
|
26
|
+
key: 2,
|
|
23
27
|
class: "celeste-dropdown-input"
|
|
24
28
|
};
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
29
|
+
const _hoisted_7 = { key: 0 };
|
|
30
|
+
const _hoisted_8 = { key: 1 };
|
|
31
|
+
const _hoisted_9 = {
|
|
28
32
|
key: 2,
|
|
29
33
|
class: "celeste-input-badge"
|
|
30
34
|
};
|
|
31
|
-
const
|
|
35
|
+
const _hoisted_10 = ["src"];
|
|
32
36
|
const __default__ = {
|
|
33
37
|
inheritAttrs: false
|
|
34
38
|
};
|
|
@@ -40,10 +44,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
44
|
valueBy: {},
|
|
41
45
|
placeholder: { default: "Select" },
|
|
42
46
|
type: {},
|
|
43
|
-
size: { default: "
|
|
47
|
+
size: { default: "md" },
|
|
44
48
|
emptyLabel: {},
|
|
45
49
|
badgeProps: {},
|
|
46
50
|
searchable: { type: Boolean },
|
|
51
|
+
class: {},
|
|
47
52
|
modelValue: {},
|
|
48
53
|
defaultValue: {},
|
|
49
54
|
open: { type: Boolean },
|
|
@@ -76,6 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
81
|
emptyLabel,
|
|
77
82
|
badgeProps,
|
|
78
83
|
searchable,
|
|
84
|
+
class: _class,
|
|
79
85
|
...delegated
|
|
80
86
|
} = props;
|
|
81
87
|
return delegated;
|
|
@@ -118,11 +124,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
124
|
createVNode(ComboboxTrigger, {
|
|
119
125
|
type: _ctx.type,
|
|
120
126
|
filled: !!model.value,
|
|
121
|
-
size: _ctx.size
|
|
127
|
+
size: _ctx.size,
|
|
128
|
+
class: normalizeClass(props.class)
|
|
122
129
|
}, {
|
|
123
130
|
default: withCtx(() => [
|
|
124
|
-
|
|
125
|
-
|
|
131
|
+
model.value && !Array.isArray(model.value) && (model.value.icon || model.value.image) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
132
|
+
createElementVNode("div", _hoisted_2, [
|
|
126
133
|
model.value.icon ? (openBlock(), createElementBlock("i", {
|
|
127
134
|
key: 0,
|
|
128
135
|
class: normalizeClass(model.value.icon)
|
|
@@ -136,14 +143,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
143
|
}, null, 8, _hoisted_4)
|
|
137
144
|
], true)
|
|
138
145
|
])) : createCommentVNode("", true)
|
|
139
|
-
])
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
mergedBadgeProps.value && _ctx.badgeProps ? (openBlock(), createElementBlock("span", _hoisted_8, [
|
|
146
|
+
])
|
|
147
|
+
])) : _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
148
|
+
renderSlot(_ctx.$slots, "prefix", { class: "celeste-dropdown-anchor-trigger-prefix-default" }, void 0, true)
|
|
149
|
+
])) : createCommentVNode("", true),
|
|
150
|
+
_ctx.type !== "inline" ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
151
|
+
_ctx.multiple ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(_ctx.placeholder), 1)) : (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(model.value && !Array.isArray(model.value) ? model.value.label : props.placeholder), 1)),
|
|
152
|
+
mergedBadgeProps.value && _ctx.badgeProps ? (openBlock(), createElementBlock("span", _hoisted_9, [
|
|
147
153
|
createVNode(Badge, normalizeProps(guardReactiveProps(mergedBadgeProps.value)), null, 16)
|
|
148
154
|
])) : createCommentVNode("", true)
|
|
149
155
|
])) : createCommentVNode("", true),
|
|
@@ -152,7 +158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
158
|
], -1))
|
|
153
159
|
]),
|
|
154
160
|
_: 3
|
|
155
|
-
}, 8, ["type", "filled", "size"])
|
|
161
|
+
}, 8, ["type", "filled", "size", "class"])
|
|
156
162
|
]),
|
|
157
163
|
_: 3
|
|
158
164
|
}),
|
|
@@ -195,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
195
201
|
src: option.image,
|
|
196
202
|
alt: "option",
|
|
197
203
|
class: "celeste-dropdown-item-image"
|
|
198
|
-
}, null, 8,
|
|
204
|
+
}, null, 8, _hoisted_10)) : createCommentVNode("", true)
|
|
199
205
|
]),
|
|
200
206
|
_: 2
|
|
201
207
|
}, 1032, ["label", "sublabel", "description", "checkbox", "value", "selected"]);
|
|
@@ -212,7 +218,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
212
218
|
};
|
|
213
219
|
}
|
|
214
220
|
});
|
|
215
|
-
const combobox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
221
|
+
const combobox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-268c7202"]]);
|
|
216
222
|
export {
|
|
217
223
|
combobox as default
|
|
218
224
|
};
|
package/dist/es/index.js
CHANGED
|
@@ -62,8 +62,7 @@ import tabMenuItem from "./tab-menu-item.js";
|
|
|
62
62
|
import tabMenuList from "./tab-menu-list.js";
|
|
63
63
|
import tabMenu from "./tab-menu.js";
|
|
64
64
|
import textInputAffix from "./text-input-affix.js";
|
|
65
|
-
import
|
|
66
|
-
import TextInputIcon from "./text-input-icon.js";
|
|
65
|
+
import TextInputButton from "./text-input-button.js";
|
|
67
66
|
import TextInput from "./text-input.js";
|
|
68
67
|
import textarea from "./textarea.js";
|
|
69
68
|
import Tooltip from "./tooltip.js";
|
|
@@ -134,8 +133,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
134
133
|
TabMenuList: tabMenuList,
|
|
135
134
|
TextInput,
|
|
136
135
|
TextInputAffix: textInputAffix,
|
|
137
|
-
TextInputButton
|
|
138
|
-
TextInputIcon,
|
|
136
|
+
TextInputButton,
|
|
139
137
|
Textarea: textarea,
|
|
140
138
|
Tooltip
|
|
141
139
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -213,8 +211,7 @@ export {
|
|
|
213
211
|
tabMenuList as TabMenuList,
|
|
214
212
|
TextInput,
|
|
215
213
|
textInputAffix as TextInputAffix,
|
|
216
|
-
|
|
217
|
-
TextInputIcon,
|
|
214
|
+
TextInputButton,
|
|
218
215
|
textarea as Textarea,
|
|
219
216
|
Tooltip
|
|
220
217
|
};
|
|
@@ -7,7 +7,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
__name: "text-input-affix",
|
|
8
8
|
props: {
|
|
9
9
|
class: {},
|
|
10
|
-
variant: { default: "prefix" },
|
|
11
10
|
inline: { type: Boolean },
|
|
12
11
|
asKbd: { type: Boolean }
|
|
13
12
|
},
|
|
@@ -23,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
const textInputAffix = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
25
|
+
const textInputAffix = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2d8a1dbc"]]);
|
|
27
26
|
export {
|
|
28
27
|
textInputAffix as default
|
|
29
28
|
};
|
|
@@ -2,7 +2,6 @@ import { defineComponent, openBlock, createBlock, mergeProps, unref, withCtx, re
|
|
|
2
2
|
import Button from "./button.js";
|
|
3
3
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
4
4
|
import { c as clsx } from "./chunks/clsx.js";
|
|
5
|
-
/* empty css */
|
|
6
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "text-input-button",
|
|
@@ -27,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
|
-
const
|
|
29
|
+
const TextInputButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7d21364e"]]);
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
TextInputButton as default
|
|
33
32
|
};
|