cisse-vue-ui 0.8.3 → 0.8.4
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/{CheckboxGroup.vue_vue_type_script_setup_true_lang-N4oS_DJD.js → CheckboxGroup.vue_vue_type_script_setup_true_lang-B190Yija.js} +71 -71
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-B190Yija.js.map +1 -0
- package/dist/{CheckboxGroup.vue_vue_type_script_setup_true_lang-DuJr8cz3.cjs → CheckboxGroup.vue_vue_type_script_setup_true_lang-BC86pBlY.cjs} +70 -70
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BC86pBlY.cjs.map +1 -0
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-DoJKvn30.cjs → Dropdown.vue_vue_type_script_setup_true_lang-BAKGRZIb.cjs} +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-DoJKvn30.cjs.map → Dropdown.vue_vue_type_script_setup_true_lang-BAKGRZIb.cjs.map} +1 -1
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-A9Ax6iob.js → Dropdown.vue_vue_type_script_setup_true_lang-GLCX7E3C.js} +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-A9Ax6iob.js.map → Dropdown.vue_vue_type_script_setup_true_lang-GLCX7E3C.js.map} +1 -1
- package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-CcOgc2Y_.js → FilterTabs.vue_vue_type_script_setup_true_lang-BmJHgkBs.js} +2 -2
- package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-CcOgc2Y_.js.map → FilterTabs.vue_vue_type_script_setup_true_lang-BmJHgkBs.js.map} +1 -1
- package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-jW6Ikbvy.cjs → FilterTabs.vue_vue_type_script_setup_true_lang-DYxh-wFx.cjs} +2 -2
- package/dist/{FilterTabs.vue_vue_type_script_setup_true_lang-jW6Ikbvy.cjs.map → FilterTabs.vue_vue_type_script_setup_true_lang-DYxh-wFx.cjs.map} +1 -1
- package/dist/{PageHero.vue_vue_type_script_setup_true_lang-rbvfGvll.cjs → PageHero.vue_vue_type_script_setup_true_lang-BqwBJlv0.cjs} +2 -2
- package/dist/{PageHero.vue_vue_type_script_setup_true_lang-rbvfGvll.cjs.map → PageHero.vue_vue_type_script_setup_true_lang-BqwBJlv0.cjs.map} +1 -1
- package/dist/{PageHero.vue_vue_type_script_setup_true_lang-Gvocjdqh.js → PageHero.vue_vue_type_script_setup_true_lang-by-P5wIB.js} +2 -2
- package/dist/{PageHero.vue_vue_type_script_setup_true_lang-Gvocjdqh.js.map → PageHero.vue_vue_type_script_setup_true_lang-by-P5wIB.js.map} +1 -1
- package/dist/cisse-vue-ui.css +4 -4
- package/dist/components/core/index.cjs +2 -2
- package/dist/components/core/index.js +2 -2
- package/dist/components/form/Combobox.stories.d.ts +2 -0
- package/dist/components/form/Combobox.vue.d.ts +4 -0
- package/dist/components/form/DatePicker.stories.d.ts +2 -0
- package/dist/components/form/DatePicker.vue.d.ts +4 -0
- package/dist/components/form/FormSelect.stories.d.ts +2 -0
- package/dist/components/form/FormSelect.vue.d.ts +4 -0
- package/dist/components/form/InputWrapper.stories.d.ts +1 -0
- package/dist/components/form/InputWrapper.vue.d.ts +6 -3
- package/dist/components/form/TagsInput.stories.d.ts +1 -0
- package/dist/components/form/TagsInput.vue.d.ts +3 -3
- package/dist/components/form/TextArea.stories.d.ts +3 -1
- package/dist/components/form/TextArea.vue.d.ts +4 -0
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/index.cjs +4 -4
- package/dist/components/index.js +4 -4
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/composables/index.cjs +3 -1
- package/dist/composables/index.cjs.map +1 -1
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.js +3 -1
- package/dist/composables/index.js.map +1 -1
- package/dist/composables/useInputStyles.d.ts +32 -0
- package/dist/composables/useInputStyles.test.d.ts +1 -0
- package/dist/{index-CDDUEkXf.js → index-CyL_6V7D.js} +5 -5
- package/dist/index-CyL_6V7D.js.map +1 -0
- package/dist/{index-5dQNEzd8.cjs → index-LFQFhClN.cjs} +5 -5
- package/dist/{index-5dQNEzd8.cjs.map → index-LFQFhClN.cjs.map} +1 -1
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/{useDropdown-DK4c5JGL.cjs → useDropdown-HI7ABBLe.cjs} +5 -4
- package/dist/{useDropdown-DK4c5JGL.cjs.map → useDropdown-HI7ABBLe.cjs.map} +1 -1
- package/dist/{useDropdown-De0cKI83.js → useDropdown-XITCE_SM.js} +5 -4
- package/dist/{useDropdown-De0cKI83.js.map → useDropdown-XITCE_SM.js.map} +1 -1
- package/dist/useInputStyles-BFTJdXHL.js +127 -0
- package/dist/useInputStyles-BFTJdXHL.js.map +1 -0
- package/dist/useInputStyles-DMfvW6N5.cjs +126 -0
- package/dist/useInputStyles-DMfvW6N5.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-DuJr8cz3.cjs.map +0 -1
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-N4oS_DJD.js.map +0 -1
- package/dist/index-CDDUEkXf.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, renderSlot, createTextVNode, toDisplayString, useSlots, computed, normalizeClass, createCommentVNode, createBlock, unref, mergeModels, useModel, withCtx, withDirectives, createElementVNode, mergeProps, vModelDynamic, ref, watch, createVNode, Teleport, Transition, normalizeStyle, vModelText, Fragment, renderList, nextTick, withModifiers, withKeys, vShow, createSlots, onMounted, TransitionGroup } from "vue";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, renderSlot, createTextVNode, toDisplayString, useSlots, computed, toRef, normalizeClass, createCommentVNode, createBlock, unref, mergeModels, useModel, withCtx, withDirectives, createElementVNode, mergeProps, vModelDynamic, ref, watch, createVNode, Teleport, Transition, normalizeStyle, vModelText, Fragment, renderList, nextTick, withModifiers, withKeys, vShow, createSlots, onMounted, TransitionGroup } from "vue";
|
|
2
2
|
import { u as useId } from "./useId-xeHj7rkg.js";
|
|
3
3
|
import { Icon } from "@iconify/vue";
|
|
4
|
-
import { u as useDropdown } from "./useDropdown-
|
|
4
|
+
import { u as useDropdown } from "./useDropdown-XITCE_SM.js";
|
|
5
|
+
import { u as useInputStyles } from "./useInputStyles-BFTJdXHL.js";
|
|
5
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
7
|
import { o as onClickOutside, a as useDebounceFn, _ as _sfc_main$v } from "./index-SNefWfX0.js";
|
|
7
8
|
import { _ as _sfc_main$u } from "./Button.vue_vue_type_script_setup_true_lang-CBYr0Z2_.js";
|
|
@@ -64,33 +65,22 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
64
65
|
size: { default: "md" },
|
|
65
66
|
invalid: { type: Boolean },
|
|
66
67
|
disabled: { type: Boolean },
|
|
68
|
+
focused: { type: Boolean },
|
|
67
69
|
wrapperClass: {}
|
|
68
70
|
},
|
|
69
71
|
setup(__props, { expose: __expose }) {
|
|
70
72
|
const props = __props;
|
|
71
73
|
const slots = useSlots();
|
|
72
|
-
const hasLeftIcon = computed(() => props.icon || slots.icon);
|
|
73
|
-
const hasRightContent = computed(() => props.iconRight || slots.actions);
|
|
74
|
-
const inputClass =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"dark:focus:border-primary-500 dark:focus:ring-primary-500 dark:focus:bg-slate-600",
|
|
83
|
-
"dark:disabled:bg-slate-800 dark:disabled:text-gray-500",
|
|
84
|
-
// Padding based on icons/actions
|
|
85
|
-
hasLeftIcon.value ? "pl-10" : "pl-4",
|
|
86
|
-
hasRightContent.value ? "pr-10" : "pr-4",
|
|
87
|
-
// Size
|
|
88
|
-
props.size === "sm" && "py-2 text-xs",
|
|
89
|
-
props.size === "md" && "py-3 text-sm",
|
|
90
|
-
props.size === "lg" && "py-4 text-base",
|
|
91
|
-
// Invalid state
|
|
92
|
-
props.invalid && "border-red-500 focus:border-red-500 focus:ring-red-500 dark:border-red-500"
|
|
93
|
-
]);
|
|
74
|
+
const hasLeftIcon = computed(() => !!props.icon || !!slots.icon);
|
|
75
|
+
const hasRightContent = computed(() => !!props.iconRight || !!slots.actions);
|
|
76
|
+
const { inputClass, iconClass } = useInputStyles({
|
|
77
|
+
disabled: toRef(props, "disabled"),
|
|
78
|
+
invalid: toRef(props, "invalid"),
|
|
79
|
+
focused: toRef(props, "focused"),
|
|
80
|
+
size: toRef(props, "size"),
|
|
81
|
+
hasLeftIcon,
|
|
82
|
+
hasRightIcon: hasRightContent
|
|
83
|
+
});
|
|
94
84
|
__expose({ inputClass });
|
|
95
85
|
return (_ctx, _cache) => {
|
|
96
86
|
return openBlock(), createElementBlock("div", {
|
|
@@ -101,18 +91,18 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
101
91
|
__props.icon ? (openBlock(), createBlock(unref(Icon), {
|
|
102
92
|
key: 0,
|
|
103
93
|
icon: __props.icon,
|
|
104
|
-
class:
|
|
105
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
94
|
+
class: normalizeClass(unref(iconClass))
|
|
95
|
+
}, null, 8, ["icon", "class"])) : createCommentVNode("", true)
|
|
106
96
|
])
|
|
107
97
|
])) : createCommentVNode("", true),
|
|
108
|
-
renderSlot(_ctx.$slots, "default", { inputClass: inputClass
|
|
98
|
+
renderSlot(_ctx.$slots, "default", { inputClass: unref(inputClass) }),
|
|
109
99
|
hasRightContent.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
110
100
|
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
111
101
|
__props.iconRight ? (openBlock(), createBlock(unref(Icon), {
|
|
112
102
|
key: 0,
|
|
113
103
|
icon: __props.iconRight,
|
|
114
|
-
class: "
|
|
115
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
104
|
+
class: normalizeClass([unref(iconClass), "pointer-events-none"])
|
|
105
|
+
}, null, 8, ["icon", "class"])) : createCommentVNode("", true)
|
|
116
106
|
])
|
|
117
107
|
])) : createCommentVNode("", true)
|
|
118
108
|
], 2);
|
|
@@ -214,7 +204,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
214
204
|
teleport: { type: Boolean, default: true },
|
|
215
205
|
searchable: { type: Boolean, default: false },
|
|
216
206
|
noResultsText: { default: "No results found" },
|
|
217
|
-
triggerClass: {}
|
|
207
|
+
triggerClass: {},
|
|
208
|
+
size: { default: "md" }
|
|
218
209
|
}, {
|
|
219
210
|
"modelValue": { type: [String, Number, Boolean, null] },
|
|
220
211
|
"modelModifiers": {}
|
|
@@ -309,12 +300,17 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
309
300
|
watch(searchQuery, () => {
|
|
310
301
|
highlightedIndex.value = 0;
|
|
311
302
|
});
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
303
|
+
const hasValue = computed(() => !!selectedOption.value);
|
|
304
|
+
const { triggerClass } = useInputStyles({
|
|
305
|
+
disabled: computed(() => props.disabled),
|
|
306
|
+
focused: isOpen,
|
|
307
|
+
hasValue,
|
|
308
|
+
size: toRef(props, "size")
|
|
317
309
|
});
|
|
310
|
+
const triggerClasses = computed(() => [
|
|
311
|
+
...triggerClass.value,
|
|
312
|
+
props.triggerClass
|
|
313
|
+
]);
|
|
318
314
|
return (_ctx, _cache) => {
|
|
319
315
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
320
316
|
createElementVNode("button", {
|
|
@@ -752,7 +748,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
752
748
|
minDate: {},
|
|
753
749
|
maxDate: {},
|
|
754
750
|
teleport: { type: Boolean, default: true },
|
|
755
|
-
id: {}
|
|
751
|
+
id: {},
|
|
752
|
+
size: { default: "md" }
|
|
756
753
|
}, {
|
|
757
754
|
"modelValue": { default: null },
|
|
758
755
|
"modelModifiers": {}
|
|
@@ -865,6 +862,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
865
862
|
});
|
|
866
863
|
return formatter.format(date);
|
|
867
864
|
};
|
|
865
|
+
const hasValue = computed(() => !!modelValue.value);
|
|
866
|
+
const { triggerClass } = useInputStyles({
|
|
867
|
+
disabled: computed(() => props.disabled),
|
|
868
|
+
focused: isOpen,
|
|
869
|
+
hasValue,
|
|
870
|
+
size: toRef(props, "size")
|
|
871
|
+
});
|
|
868
872
|
return (_ctx, _cache) => {
|
|
869
873
|
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
870
874
|
createElementVNode("button", {
|
|
@@ -876,11 +880,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
876
880
|
"aria-expanded": unref(isOpen),
|
|
877
881
|
"aria-haspopup": "dialog",
|
|
878
882
|
"aria-controls": calendarId.value,
|
|
879
|
-
class: normalizeClass(
|
|
880
|
-
"flex w-full items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm text-left transition",
|
|
881
|
-
__props.disabled ? "cursor-not-allowed border-gray-200 bg-gray-50 text-gray-500 dark:border-gray-800 dark:bg-gray-950" : unref(isOpen) ? "border-primary ring-2 ring-primary/20 bg-white dark:bg-gray-900" : "border-gray-300 bg-white hover:border-gray-400 dark:border-gray-700 dark:bg-gray-900",
|
|
882
|
-
modelValue.value ? "text-gray-900 dark:text-white" : "text-gray-400 dark:text-gray-500"
|
|
883
|
-
]),
|
|
883
|
+
class: normalizeClass(unref(triggerClass)),
|
|
884
884
|
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
885
885
|
(...args) => unref(toggle) && unref(toggle)(...args))
|
|
886
886
|
}, [
|
|
@@ -1653,7 +1653,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1653
1653
|
noResultsText: { default: "No results found" },
|
|
1654
1654
|
name: {},
|
|
1655
1655
|
id: {},
|
|
1656
|
-
teleport: { type: [String, Boolean], default: false }
|
|
1656
|
+
teleport: { type: [String, Boolean], default: false },
|
|
1657
|
+
size: { default: "md" }
|
|
1657
1658
|
},
|
|
1658
1659
|
emits: ["update:modelValue"],
|
|
1659
1660
|
setup(__props, { emit: __emit }) {
|
|
@@ -1732,6 +1733,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1732
1733
|
search.value = "";
|
|
1733
1734
|
}
|
|
1734
1735
|
});
|
|
1736
|
+
const hasValue = computed(() => selectedOptions.value.length > 0);
|
|
1737
|
+
const { triggerClass } = useInputStyles({
|
|
1738
|
+
disabled: computed(() => props.disabled),
|
|
1739
|
+
focused: isOpen,
|
|
1740
|
+
hasValue,
|
|
1741
|
+
size: toRef(props, "size")
|
|
1742
|
+
});
|
|
1735
1743
|
return (_ctx, _cache) => {
|
|
1736
1744
|
return openBlock(), createElementBlock("div", {
|
|
1737
1745
|
ref_key: "containerRef",
|
|
@@ -1743,11 +1751,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1743
1751
|
"aria-expanded": isOpen.value,
|
|
1744
1752
|
"aria-haspopup": "listbox",
|
|
1745
1753
|
"aria-controls": listboxId.value,
|
|
1746
|
-
class: normalizeClass([
|
|
1747
|
-
"flex min-h-[42px] w-full cursor-pointer items-center rounded-lg border bg-white px-3 py-2 transition-colors",
|
|
1748
|
-
"dark:bg-gray-900",
|
|
1749
|
-
__props.disabled ? "cursor-not-allowed border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800" : isOpen.value ? "border-primary ring-2 ring-primary/20" : "border-gray-300 hover:border-gray-400 dark:border-gray-600 dark:hover:border-gray-500"
|
|
1750
|
-
]),
|
|
1754
|
+
class: normalizeClass(["cursor-pointer", ...unref(triggerClass)]),
|
|
1751
1755
|
onClick: openDropdown
|
|
1752
1756
|
}, [
|
|
1753
1757
|
!isOpen.value ? (openBlock(), createElementBlock("span", {
|
|
@@ -2511,12 +2515,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2511
2515
|
createElementVNode("button", {
|
|
2512
2516
|
type: "button",
|
|
2513
2517
|
disabled: __props.disabled,
|
|
2514
|
-
class: "p-1 rounded hover:bg-gray-100 dark:hover:bg-
|
|
2518
|
+
class: "p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
2515
2519
|
onClick: toggleVisibility
|
|
2516
2520
|
}, [
|
|
2517
2521
|
createVNode(unref(Icon), {
|
|
2518
2522
|
icon: showPassword.value ? "lucide:eye-off" : "lucide:eye",
|
|
2519
|
-
class: "size-
|
|
2523
|
+
class: "size-4 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"
|
|
2520
2524
|
}, null, 8, ["icon"])
|
|
2521
2525
|
], 8, _hoisted_2$6)
|
|
2522
2526
|
]),
|
|
@@ -3539,12 +3543,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3539
3543
|
if (props.max !== void 0) return modelValue.value.length < props.max;
|
|
3540
3544
|
return true;
|
|
3541
3545
|
});
|
|
3546
|
+
const { wrapperClass } = useInputStyles({
|
|
3547
|
+
disabled: toRef(props, "disabled"),
|
|
3548
|
+
size: toRef(props, "size")
|
|
3549
|
+
});
|
|
3542
3550
|
const sizeClasses = computed(() => ({
|
|
3543
|
-
wrapper: {
|
|
3544
|
-
sm: "min-h-9 py-1.5 px-2 gap-1",
|
|
3545
|
-
md: "min-h-11 py-2 px-3 gap-1.5",
|
|
3546
|
-
lg: "min-h-13 py-2.5 px-4 gap-2"
|
|
3547
|
-
}[props.size],
|
|
3548
3551
|
tag: {
|
|
3549
3552
|
sm: "text-xs px-2 py-0.5",
|
|
3550
3553
|
md: "text-sm px-2.5 py-1",
|
|
@@ -3593,14 +3596,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3593
3596
|
__expose({ focus: focusInput });
|
|
3594
3597
|
return (_ctx, _cache) => {
|
|
3595
3598
|
return openBlock(), createElementBlock("div", {
|
|
3596
|
-
class: normalizeClass(
|
|
3597
|
-
"flex flex-wrap items-center rounded-xl border transition-all cursor-text",
|
|
3598
|
-
"bg-gray-50 dark:bg-slate-700",
|
|
3599
|
-
"border-gray-200 dark:border-slate-600",
|
|
3600
|
-
"focus-within:border-primary-500 focus-within:ring-2 focus-within:ring-primary-500 focus-within:bg-white dark:focus-within:bg-slate-600",
|
|
3601
|
-
__props.disabled && "opacity-50 cursor-not-allowed",
|
|
3602
|
-
sizeClasses.value.wrapper
|
|
3603
|
-
]),
|
|
3599
|
+
class: normalizeClass(unref(wrapperClass)),
|
|
3604
3600
|
onClick: focusInput
|
|
3605
3601
|
}, [
|
|
3606
3602
|
createVNode(TransitionGroup, {
|
|
@@ -3648,7 +3644,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3648
3644
|
required: __props.required && modelValue.value.length === 0,
|
|
3649
3645
|
class: [
|
|
3650
3646
|
"flex-1 min-w-20 bg-transparent border-none focus:outline-none",
|
|
3651
|
-
"text-gray-
|
|
3647
|
+
"text-gray-800 dark:text-gray-200 placeholder-gray-400 dark:placeholder-gray-500",
|
|
3648
|
+
__props.disabled && "text-gray-500 dark:text-gray-500",
|
|
3652
3649
|
sizeClasses.value.input
|
|
3653
3650
|
]
|
|
3654
3651
|
}, _ctx.$attrs, {
|
|
@@ -3661,7 +3658,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3661
3658
|
};
|
|
3662
3659
|
}
|
|
3663
3660
|
});
|
|
3664
|
-
const TagsInput = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
3661
|
+
const TagsInput = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-46cfbdf1"]]);
|
|
3665
3662
|
const _hoisted_1$1 = {
|
|
3666
3663
|
key: 0,
|
|
3667
3664
|
class: "text-red-500 ml-1"
|
|
@@ -3687,7 +3684,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3687
3684
|
rows: { default: 3 },
|
|
3688
3685
|
maxLength: {},
|
|
3689
3686
|
showCount: { type: Boolean, default: false },
|
|
3690
|
-
resize: { default: "vertical" }
|
|
3687
|
+
resize: { default: "vertical" },
|
|
3688
|
+
size: { default: "md" }
|
|
3691
3689
|
},
|
|
3692
3690
|
emits: ["update:modelValue"],
|
|
3693
3691
|
setup(__props, { emit: __emit }) {
|
|
@@ -3697,6 +3695,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3697
3695
|
var _a;
|
|
3698
3696
|
return ((_a = props.modelValue) == null ? void 0 : _a.length) ?? 0;
|
|
3699
3697
|
});
|
|
3698
|
+
const { inputClass } = useInputStyles({
|
|
3699
|
+
disabled: toRef(props, "disabled"),
|
|
3700
|
+
invalid: computed(() => !!props.error),
|
|
3701
|
+
size: toRef(props, "size")
|
|
3702
|
+
});
|
|
3700
3703
|
const resizeClass = computed(() => {
|
|
3701
3704
|
switch (props.resize) {
|
|
3702
3705
|
case "none":
|
|
@@ -3738,12 +3741,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3738
3741
|
rows: __props.rows,
|
|
3739
3742
|
maxlength: __props.maxLength,
|
|
3740
3743
|
class: normalizeClass([
|
|
3741
|
-
|
|
3742
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0",
|
|
3744
|
+
unref(inputClass),
|
|
3743
3745
|
resizeClass.value,
|
|
3744
|
-
__props.label || _ctx.$slots.label ? "mt-2" : ""
|
|
3745
|
-
__props.error ? "border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-500/20" : "border-gray-200 dark:border-slate-600 focus:border-primary-500 focus:ring-primary-500/20",
|
|
3746
|
-
__props.disabled ? "bg-gray-50 dark:bg-slate-800 text-gray-400 cursor-not-allowed" : "bg-white dark:bg-slate-700 text-gray-900 dark:text-white"
|
|
3746
|
+
__props.label || _ctx.$slots.label ? "mt-2" : ""
|
|
3747
3747
|
]),
|
|
3748
3748
|
onInput: handleInput
|
|
3749
3749
|
}, null, 42, _hoisted_2),
|
|
@@ -3898,4 +3898,4 @@ export {
|
|
|
3898
3898
|
_sfc_main$3 as y,
|
|
3899
3899
|
_sfc_main$1 as z
|
|
3900
3900
|
};
|
|
3901
|
-
//# sourceMappingURL=CheckboxGroup.vue_vue_type_script_setup_true_lang-
|
|
3901
|
+
//# sourceMappingURL=CheckboxGroup.vue_vue_type_script_setup_true_lang-B190Yija.js.map
|