@youcan/celeste 0.6.49 → 0.6.50
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 +310 -98
- package/dist/cjs/chunks/counter-input.vue_vue_type_style_index_0_lang.js +70 -0
- package/dist/cjs/chunks/index.js +684 -0
- package/dist/cjs/counter-input.js +3 -0
- package/dist/cjs/index.js +9 -0
- package/dist/cjs/modal-header.js +1 -1
- package/dist/cjs/radio-group-card.js +110 -0
- package/dist/cjs/radio-group-label.js +109 -0
- package/dist/components/counter-input/counter-input.d.ts +17 -0
- package/dist/components/counter-input/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/radio-group/index.d.ts +4 -0
- package/dist/components/radio-group/radio-group-card.d.ts +34 -0
- package/dist/components/radio-group/radio-group-label.d.ts +29 -0
- package/dist/es/button.js +1 -1
- package/dist/es/checkbox-card.js +1 -1
- package/dist/es/checkbox-label.js +1 -1
- package/dist/es/chunks/counter-input.vue_vue_type_style_index_0_lang.js +71 -0
- package/dist/es/chunks/index.js +754 -70
- package/dist/es/chunks/index3.js +1 -1
- package/dist/es/chunks/radio-group-item.vue_vue_type_style_index_0_lang.js +1 -1
- package/dist/es/chunks/switch.vue_vue_type_style_index_0_lang.js +1 -1
- package/dist/es/combobox-group.js +1 -1
- package/dist/es/combobox-input.js +1 -1
- package/dist/es/combobox-item.js +1 -1
- package/dist/es/combobox-list.js +1 -1
- package/dist/es/combobox-root.js +1 -1
- package/dist/es/combobox-separator.js +1 -1
- package/dist/es/combobox-trigger.js +1 -1
- package/dist/es/command-group.js +1 -1
- package/dist/es/command-input.js +1 -1
- package/dist/es/command-item.js +1 -1
- package/dist/es/command-list.js +1 -1
- package/dist/es/command-root.js +1 -1
- package/dist/es/command-separator.js +1 -1
- package/dist/es/compact-button.js +1 -1
- package/dist/es/context-menu-item.js +1 -1
- package/dist/es/counter-input.js +4 -0
- package/dist/es/digit-input-group.js +1 -1
- package/dist/es/digit-input-slot.js +1 -1
- package/dist/es/digit-input.js +1 -1
- package/dist/es/dropdown-menu-content.js +1 -1
- package/dist/es/dropdown-menu-group.js +1 -1
- package/dist/es/dropdown-menu-item.js +1 -1
- package/dist/es/dropdown-menu-label.js +1 -1
- package/dist/es/dropdown-menu-separator.js +1 -1
- package/dist/es/dropdown-menu-sub-content.js +1 -1
- package/dist/es/dropdown-menu-sub-trigger.js +1 -1
- package/dist/es/dropdown-menu-trigger.js +1 -1
- package/dist/es/dropdown-menu.js +1 -1
- package/dist/es/dropdown.js +1 -1
- package/dist/es/fancy-button.js +1 -1
- package/dist/es/index.js +48 -39
- package/dist/es/label.js +1 -1
- package/dist/es/link-button.js +1 -1
- package/dist/es/modal-content.js +1 -1
- package/dist/es/modal-header.js +2 -2
- package/dist/es/popover-content.js +1 -1
- package/dist/es/popover-trigger.js +1 -1
- package/dist/es/progress-bar.js +1 -1
- package/dist/es/progress-circle.js +1 -1
- package/dist/es/radio-group-card.js +111 -0
- package/dist/es/radio-group-label.js +110 -0
- package/dist/es/scroll-bar.js +1 -1
- package/dist/es/segmented-control-item.js +1 -1
- package/dist/es/segmented-control.js +1 -1
- package/dist/es/select-content.js +1 -1
- package/dist/es/select-item.js +1 -1
- package/dist/es/select-trigger.js +1 -1
- package/dist/es/select-value.js +1 -1
- package/dist/es/social-button.js +1 -1
- package/dist/es/tab-menu-content.js +1 -1
- package/dist/es/tab-menu-item.js +1 -1
- package/dist/es/tab-menu-list.js +1 -1
- package/dist/es/tab-menu.js +1 -1
- package/dist/es/tag.js +1 -1
- package/dist/es/text-input.js +1 -1
- package/dist/es/tooltip.js +1 -1
- package/package.json +3 -3
- package/src/components/counter-input/counter-input.vue +131 -0
- package/src/components/counter-input/index.ts +2 -0
- package/src/components/counter-input/stories/counter-input.stories.ts +149 -0
- package/src/components/digit-input/stories/digit-input.stories.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/modal/modal-header.vue +1 -1
- package/src/components/radio-group/index.ts +6 -0
- package/src/components/radio-group/radio-group-card.vue +221 -0
- package/src/components/radio-group/radio-group-label.vue +108 -0
- package/src/components/radio-group/stories/radio-group-card.stories.ts +297 -0
- package/src/components/radio-group/stories/radio-group.stories.ts +25 -15
- package/src/components/text-input/stories/text-input.stories.ts +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -22,6 +22,7 @@ const comboboxSeparator = require("./combobox-separator.js");
|
|
|
22
22
|
const comboboxTrigger = require("./combobox-trigger.js");
|
|
23
23
|
const combobox = require("./combobox.js");
|
|
24
24
|
const contentDivider_vue_vue_type_style_index_0_lang = require("./chunks/content-divider.vue_vue_type_style_index_0_lang.js");
|
|
25
|
+
const counterInput_vue_vue_type_style_index_0_lang = require("./chunks/counter-input.vue_vue_type_style_index_0_lang.js");
|
|
25
26
|
const digitInputGroup = require("./digit-input-group.js");
|
|
26
27
|
const digitInputSlot = require("./digit-input-slot.js");
|
|
27
28
|
const digitInput = require("./digit-input.js");
|
|
@@ -52,7 +53,9 @@ const popoverTrigger = require("./popover-trigger.js");
|
|
|
52
53
|
const popover_vue_vue_type_script_setup_true_lang = require("./chunks/popover.js");
|
|
53
54
|
const progressBar = require("./progress-bar.js");
|
|
54
55
|
const progressCircle = require("./progress-circle.js");
|
|
56
|
+
const radioGroupCard = require("./radio-group-card.js");
|
|
55
57
|
const radioGroupItem_vue_vue_type_style_index_0_lang = require("./chunks/radio-group-item.vue_vue_type_style_index_0_lang.js");
|
|
58
|
+
const radioGroupLabel = require("./radio-group-label.js");
|
|
56
59
|
const radioGroup_vue_vue_type_style_index_0_lang = require("./chunks/radio-group.vue_vue_type_style_index_0_lang.js");
|
|
57
60
|
const richEditor = require("./rich-editor.js");
|
|
58
61
|
const scrollArea_vue_vue_type_script_setup_true_lang = require("./chunks/scroll-area.js");
|
|
@@ -105,6 +108,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
105
108
|
CompactButton: compactButton,
|
|
106
109
|
ContentDivider: contentDivider_vue_vue_type_style_index_0_lang._sfc_main,
|
|
107
110
|
ContextMenuItem: contextMenuItem,
|
|
111
|
+
CounterInput: counterInput_vue_vue_type_style_index_0_lang._sfc_main,
|
|
108
112
|
DigitInput: digitInput,
|
|
109
113
|
DigitInputGroup: digitInputGroup,
|
|
110
114
|
DigitInputSlot: digitInputSlot,
|
|
@@ -137,7 +141,9 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
137
141
|
ProgressBar: progressBar,
|
|
138
142
|
ProgressCircle: progressCircle,
|
|
139
143
|
RadioGroup: radioGroup_vue_vue_type_style_index_0_lang._sfc_main,
|
|
144
|
+
RadioGroupCard: radioGroupCard,
|
|
140
145
|
RadioGroupItem: radioGroupItem_vue_vue_type_style_index_0_lang._sfc_main,
|
|
146
|
+
RadioGroupLabel: radioGroupLabel,
|
|
141
147
|
RichEditor: richEditor,
|
|
142
148
|
ScrollArea: scrollArea_vue_vue_type_script_setup_true_lang._sfc_main,
|
|
143
149
|
SegmentedControl: segmentedControl,
|
|
@@ -246,6 +252,7 @@ exports.ComboboxSeparator = comboboxSeparator;
|
|
|
246
252
|
exports.ComboboxTrigger = comboboxTrigger;
|
|
247
253
|
exports.Combobox = combobox;
|
|
248
254
|
exports.ContentDivider = contentDivider_vue_vue_type_style_index_0_lang._sfc_main;
|
|
255
|
+
exports.CounterInput = counterInput_vue_vue_type_style_index_0_lang._sfc_main;
|
|
249
256
|
exports.DigitInputGroup = digitInputGroup;
|
|
250
257
|
exports.DigitInputSlot = digitInputSlot;
|
|
251
258
|
exports.DigitInput = digitInput;
|
|
@@ -276,7 +283,9 @@ exports.PopoverTrigger = popoverTrigger;
|
|
|
276
283
|
exports.Popover = popover_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
277
284
|
exports.ProgressBar = progressBar;
|
|
278
285
|
exports.ProgressCircle = progressCircle;
|
|
286
|
+
exports.RadioGroupCard = radioGroupCard;
|
|
279
287
|
exports.RadioGroupItem = radioGroupItem_vue_vue_type_style_index_0_lang._sfc_main;
|
|
288
|
+
exports.RadioGroupLabel = radioGroupLabel;
|
|
280
289
|
exports.RadioGroup = radioGroup_vue_vue_type_style_index_0_lang._sfc_main;
|
|
281
290
|
exports.RichEditor = richEditor;
|
|
282
291
|
exports.ScrollArea = scrollArea_vue_vue_type_script_setup_true_lang._sfc_main;
|
package/dist/cjs/modal-header.js
CHANGED
|
@@ -77,5 +77,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
const modalHeader = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
80
|
+
const modalHeader = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-9d299b40"]]);
|
|
81
81
|
module.exports = modalHeader;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _hoisted_1 = { class: "celeste-radio-card-content" };
|
|
8
|
+
const _hoisted_2 = { role: "presentation" };
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
role: "presentation",
|
|
11
|
+
class: "celeste-radio-card-row"
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
14
|
+
__name: "radio-group-card",
|
|
15
|
+
props: {
|
|
16
|
+
for: {},
|
|
17
|
+
asChild: { type: Boolean },
|
|
18
|
+
as: {},
|
|
19
|
+
required: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
class: {}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Oh), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
28
|
+
"aria-required": _ctx.required,
|
|
29
|
+
"aria-disabled": _ctx.disabled,
|
|
30
|
+
class: Mo.unref(clsx.clsx)("celeste-radio-card", props.class, {
|
|
31
|
+
"celeste-radio-card-disabled": _ctx.disabled
|
|
32
|
+
})
|
|
33
|
+
}), {
|
|
34
|
+
default: Mo.withCtx(() => [
|
|
35
|
+
_ctx.$slots.image || _ctx.$slots.icon ? (Mo.openBlock(), Mo.createElementBlock("div", {
|
|
36
|
+
key: 0,
|
|
37
|
+
role: "presentation",
|
|
38
|
+
class: Mo.normalizeClass(["celeste-radio-card-preview", [_ctx.$slots.image ? "celeste-radio-card-preview-image" : "celeste-radio-card-preview-icon"]])
|
|
39
|
+
}, [
|
|
40
|
+
_ctx.$slots.image ? (Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, { key: 0 }, [
|
|
41
|
+
_cache[0] || (_cache[0] = Mo.createElementVNode("i", {
|
|
42
|
+
class: "celeste-radio-card-preview-fallback",
|
|
43
|
+
"i-celeste-image-circle-fill": ""
|
|
44
|
+
}, null, -1)),
|
|
45
|
+
Mo.renderSlot(_ctx.$slots, "image", { class: "i-celeste-image-circle-fill?bg" }, void 0, true)
|
|
46
|
+
], 64)) : _ctx.$slots.icon ? Mo.renderSlot(_ctx.$slots, "icon", { key: 1 }, void 0, true) : Mo.createCommentVNode("", true)
|
|
47
|
+
], 2)) : Mo.createCommentVNode("", true),
|
|
48
|
+
Mo.createElementVNode("div", _hoisted_1, [
|
|
49
|
+
Mo.createElementVNode("div", _hoisted_2, [
|
|
50
|
+
Mo.createElementVNode("div", _hoisted_3, [
|
|
51
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
52
|
+
as: "span",
|
|
53
|
+
class: "celeste-radio-card-label"
|
|
54
|
+
}, {
|
|
55
|
+
default: Mo.withCtx(() => [
|
|
56
|
+
Mo.renderSlot(_ctx.$slots, "label", {}, void 0, true)
|
|
57
|
+
]),
|
|
58
|
+
_: 3
|
|
59
|
+
}),
|
|
60
|
+
_ctx.$slots.sublabel ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
61
|
+
key: 0,
|
|
62
|
+
as: "span",
|
|
63
|
+
class: "celeste-radio-card-sublabel"
|
|
64
|
+
}, {
|
|
65
|
+
default: Mo.withCtx(() => [
|
|
66
|
+
Mo.renderSlot(_ctx.$slots, "sublabel", {}, void 0, true)
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
})) : Mo.createCommentVNode("", true),
|
|
70
|
+
_ctx.$slots.badge ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
71
|
+
key: 1,
|
|
72
|
+
"as-child": "",
|
|
73
|
+
class: "celeste-radio-card-badge"
|
|
74
|
+
}, {
|
|
75
|
+
default: Mo.withCtx(() => [
|
|
76
|
+
Mo.renderSlot(_ctx.$slots, "badge", { disabled: _ctx.disabled }, void 0, true)
|
|
77
|
+
]),
|
|
78
|
+
_: 3
|
|
79
|
+
})) : Mo.createCommentVNode("", true)
|
|
80
|
+
])
|
|
81
|
+
]),
|
|
82
|
+
_ctx.$slots.description ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
83
|
+
key: 0,
|
|
84
|
+
as: "span",
|
|
85
|
+
class: "celeste-radio-card-description"
|
|
86
|
+
}, {
|
|
87
|
+
default: Mo.withCtx(() => [
|
|
88
|
+
Mo.renderSlot(_ctx.$slots, "description", {}, void 0, true)
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
})) : Mo.createCommentVNode("", true)
|
|
92
|
+
]),
|
|
93
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
94
|
+
disabled: _ctx.disabled,
|
|
95
|
+
"as-child": "",
|
|
96
|
+
class: "celeste-radio-card-radio"
|
|
97
|
+
}, {
|
|
98
|
+
default: Mo.withCtx(() => [
|
|
99
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, ["disabled"])
|
|
103
|
+
]),
|
|
104
|
+
_: 3
|
|
105
|
+
}, 16, ["aria-required", "aria-disabled", "class"]);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const radioGroupCard = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-c0db864b"]]);
|
|
110
|
+
module.exports = radioGroupCard;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _hoisted_1 = { role: "presentation" };
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
role: "presentation",
|
|
10
|
+
class: "celeste-radio-label-row"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_3 = {
|
|
13
|
+
role: "presentation",
|
|
14
|
+
class: "celeste-radio-label-content"
|
|
15
|
+
};
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
17
|
+
__name: "radio-group-label",
|
|
18
|
+
props: {
|
|
19
|
+
for: {},
|
|
20
|
+
asChild: { type: Boolean },
|
|
21
|
+
as: {},
|
|
22
|
+
required: { type: Boolean },
|
|
23
|
+
disabled: { type: Boolean },
|
|
24
|
+
class: {}
|
|
25
|
+
},
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Oh), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
31
|
+
"aria-required": _ctx.required,
|
|
32
|
+
"aria-disabled": _ctx.disabled,
|
|
33
|
+
class: Mo.unref(clsx.clsx)("celeste-radio-label", props.class)
|
|
34
|
+
}), {
|
|
35
|
+
default: Mo.withCtx(() => [
|
|
36
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
37
|
+
"as-child": "",
|
|
38
|
+
class: "celeste-radio-label-radio"
|
|
39
|
+
}, {
|
|
40
|
+
default: Mo.withCtx(() => [
|
|
41
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
42
|
+
]),
|
|
43
|
+
_: 3
|
|
44
|
+
}),
|
|
45
|
+
Mo.createElementVNode("div", _hoisted_1, [
|
|
46
|
+
Mo.createElementVNode("div", _hoisted_2, [
|
|
47
|
+
Mo.createElementVNode("div", null, [
|
|
48
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
49
|
+
as: "span",
|
|
50
|
+
class: "celeste-radio-label-label"
|
|
51
|
+
}, {
|
|
52
|
+
default: Mo.withCtx(() => [
|
|
53
|
+
Mo.renderSlot(_ctx.$slots, "label", {}, void 0, true)
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}),
|
|
57
|
+
_ctx.$slots.sublabel ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
58
|
+
key: 0,
|
|
59
|
+
as: "span",
|
|
60
|
+
class: "celeste-radio-label-sublabel"
|
|
61
|
+
}, {
|
|
62
|
+
default: Mo.withCtx(() => [
|
|
63
|
+
Mo.renderSlot(_ctx.$slots, "sublabel", {}, void 0, true)
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
})) : Mo.createCommentVNode("", true)
|
|
67
|
+
]),
|
|
68
|
+
_ctx.$slots.badge ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
69
|
+
key: 0,
|
|
70
|
+
"as-child": "",
|
|
71
|
+
class: "celeste-radio-label-badge"
|
|
72
|
+
}, {
|
|
73
|
+
default: Mo.withCtx(() => [
|
|
74
|
+
Mo.renderSlot(_ctx.$slots, "badge", {}, void 0, true)
|
|
75
|
+
]),
|
|
76
|
+
_: 3
|
|
77
|
+
})) : Mo.createCommentVNode("", true)
|
|
78
|
+
]),
|
|
79
|
+
Mo.createElementVNode("div", _hoisted_3, [
|
|
80
|
+
_ctx.$slots.description ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
81
|
+
key: 0,
|
|
82
|
+
as: "span",
|
|
83
|
+
class: "celeste-radio-label-description"
|
|
84
|
+
}, {
|
|
85
|
+
default: Mo.withCtx(() => [
|
|
86
|
+
Mo.renderSlot(_ctx.$slots, "description", {}, void 0, true)
|
|
87
|
+
]),
|
|
88
|
+
_: 3
|
|
89
|
+
})) : Mo.createCommentVNode("", true),
|
|
90
|
+
_ctx.$slots.linkButton ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
91
|
+
key: 1,
|
|
92
|
+
"as-child": "",
|
|
93
|
+
class: "celeste-radio-label-link-button"
|
|
94
|
+
}, {
|
|
95
|
+
default: Mo.withCtx(() => [
|
|
96
|
+
Mo.renderSlot(_ctx.$slots, "linkButton", {}, void 0, true)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
})) : Mo.createCommentVNode("", true)
|
|
100
|
+
])
|
|
101
|
+
])
|
|
102
|
+
]),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 16, ["aria-required", "aria-disabled", "class"]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
const radioGroupLabel = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-32cb773e"]]);
|
|
109
|
+
module.exports = radioGroupLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { NumberFieldRootProps } from 'radix-vue';
|
|
3
|
+
type __VLS_Props = NumberFieldRootProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
size?: 'xs' | 'sm' | 'md';
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (val: number) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
size: "xs" | "sm" | "md";
|
|
14
|
+
hasError: boolean;
|
|
15
|
+
defaultValue: number;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
export * from './radio-group-card';
|
|
2
|
+
export { default as RadioGroupCard } from './radio-group-card';
|
|
1
3
|
export * from './radio-group-item';
|
|
2
4
|
export { default as RadioGroupItem } from './radio-group-item';
|
|
5
|
+
export * from './radio-group-label';
|
|
6
|
+
export { default as RadioGroupLabel } from './radio-group-label';
|
|
3
7
|
export * from './radio-group';
|
|
4
8
|
export { default as RadioGroup } from './radio-group';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LabelProps } from 'radix-vue';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = LabelProps & {
|
|
4
|
+
required?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
class?: HTMLAttributes['class'];
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
image?(_: {
|
|
12
|
+
class: string;
|
|
13
|
+
}): any;
|
|
14
|
+
icon?(_: {}): any;
|
|
15
|
+
label?(_: {}): any;
|
|
16
|
+
sublabel?(_: {}): any;
|
|
17
|
+
badge?(_: {
|
|
18
|
+
disabled: boolean | undefined;
|
|
19
|
+
}): any;
|
|
20
|
+
description?(_: {}): any;
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: any;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
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, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { LabelProps } from 'radix-vue';
|
|
3
|
+
type __VLS_Props = LabelProps & {
|
|
4
|
+
required?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
class?: HTMLAttributes['class'];
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
label?(_: {}): any;
|
|
13
|
+
sublabel?(_: {}): any;
|
|
14
|
+
badge?(_: {}): any;
|
|
15
|
+
description?(_: {}): any;
|
|
16
|
+
linkButton?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: any;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
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, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
package/dist/es/button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { l as O } from "./chunks/index.js";
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "button",
|
package/dist/es/checkbox-card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, normalizeClass, Fragment, createElementVNode, renderSlot, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { X as Oh, l as O } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = { class: "celeste-checkbox-card-content" };
|
|
7
7
|
const _hoisted_2 = { role: "presentation" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, createElementVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { X as Oh, l as O } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = { role: "presentation" };
|
|
7
7
|
const _hoisted_2 = {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode } from "vue";
|
|
2
|
+
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
3
|
+
import { c as clsx } from "./clsx.js";
|
|
4
|
+
import { x as xe, m as my, g as gy, h as hy, f as yy } from "./index.js";
|
|
5
|
+
import CompactButton from "../compact-button.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "counter-input",
|
|
8
|
+
props: {
|
|
9
|
+
defaultValue: { default: 0 },
|
|
10
|
+
modelValue: {},
|
|
11
|
+
min: {},
|
|
12
|
+
max: {},
|
|
13
|
+
step: {},
|
|
14
|
+
formatOptions: {},
|
|
15
|
+
locale: {},
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
required: { type: Boolean },
|
|
18
|
+
name: {},
|
|
19
|
+
id: {},
|
|
20
|
+
asChild: { type: Boolean },
|
|
21
|
+
as: {},
|
|
22
|
+
class: {},
|
|
23
|
+
size: { default: "md" },
|
|
24
|
+
hasError: { type: Boolean, default: false }
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const emits = __emit;
|
|
30
|
+
const delegatedProps = useDelegatedProps(props, "class");
|
|
31
|
+
const forwarded = xe(delegatedProps, emits);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createBlock(unref(my), mergeProps(unref(forwarded), {
|
|
34
|
+
"has-error": _ctx.hasError,
|
|
35
|
+
class: unref(clsx)("celeste-counter-input-wrapper", props.class)
|
|
36
|
+
}), {
|
|
37
|
+
default: withCtx(() => [
|
|
38
|
+
createVNode(unref(gy), {
|
|
39
|
+
"as-child": "",
|
|
40
|
+
class: "celeste-counter-input-decrement"
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [
|
|
43
|
+
createVNode(CompactButton, {
|
|
44
|
+
variant: "ghost",
|
|
45
|
+
icon: "i-celeste-subtract-line"
|
|
46
|
+
})
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}),
|
|
50
|
+
createVNode(unref(hy), { class: "celeste-counter-input" }),
|
|
51
|
+
createVNode(unref(yy), {
|
|
52
|
+
"as-child": "",
|
|
53
|
+
class: "celeste-counter-input-increment"
|
|
54
|
+
}, {
|
|
55
|
+
default: withCtx(() => [
|
|
56
|
+
createVNode(CompactButton, {
|
|
57
|
+
variant: "ghost",
|
|
58
|
+
icon: "i-celeste-add-line"
|
|
59
|
+
})
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 16, ["has-error", "class"]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
_sfc_main as _
|
|
71
|
+
};
|