@code-coaching/vuetiful 0.13.0 → 0.13.2
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/types/components/atoms/VRadio/VRadioDescription.test.d.ts +1 -0
- package/dist/types/components/atoms/VRadio/VRadioDescription.vue.d.ts +9 -3
- package/dist/types/components/atoms/VRadio/VRadioGroup.test.d.ts +1 -0
- package/dist/types/components/atoms/VRadio/VRadioGroup.vue.d.ts +24 -9
- package/dist/types/components/atoms/VRadio/VRadioItem.test.d.ts +1 -0
- package/dist/types/components/atoms/VRadio/VRadioItem.vue.d.ts +2 -2
- package/dist/types/components/atoms/VRadio/VRadioLabel.test.d.ts +1 -0
- package/dist/types/components/atoms/VRadio/VRadioLabel.vue.d.ts +3 -3
- package/dist/vuetiful.es.mjs +24 -13
- package/dist/vuetiful.umd.js +6 -6
- package/package.json +1 -1
- package/src/components/atoms/VRadio/VRadioDescription.test.ts +55 -0
- package/src/components/atoms/VRadio/VRadioDescription.vue +4 -1
- package/src/components/atoms/VRadio/VRadioGroup.test.ts +81 -0
- package/src/components/atoms/VRadio/VRadioGroup.vue +28 -17
- package/src/components/atoms/VRadio/VRadioItem.test.ts +183 -0
- package/src/components/atoms/VRadio/VRadioItem.vue +8 -8
- package/src/components/atoms/VRadio/VRadioLabel.test.ts +55 -0
- package/src/components/atoms/VRadio/VRadioLabel.vue +4 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
as:
|
|
2
|
+
as: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
3
6
|
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
-
as:
|
|
7
|
+
as: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
5
11
|
}>>, {
|
|
6
|
-
as:
|
|
12
|
+
as: string;
|
|
7
13
|
}>;
|
|
8
14
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
as:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
as: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
disabled: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
by: {
|
|
11
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
12
|
+
};
|
|
5
13
|
modelValue: any;
|
|
6
14
|
active: {
|
|
7
15
|
type: StringConstructor;
|
|
@@ -20,9 +28,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
28
|
default: string;
|
|
21
29
|
};
|
|
22
30
|
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
as:
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
as: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
by: {
|
|
40
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
41
|
+
};
|
|
26
42
|
modelValue: any;
|
|
27
43
|
active: {
|
|
28
44
|
type: StringConstructor;
|
|
@@ -43,9 +59,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
59
|
}>> & {
|
|
44
60
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
61
|
}, {
|
|
46
|
-
as:
|
|
47
|
-
disabled:
|
|
48
|
-
by: any;
|
|
62
|
+
as: string;
|
|
63
|
+
disabled: boolean;
|
|
49
64
|
modelValue: any;
|
|
50
65
|
active: string;
|
|
51
66
|
hover: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
value: {
|
|
3
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
3
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
value: {
|
|
8
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
}>>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
as: {
|
|
3
|
-
type:
|
|
3
|
+
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
as: {
|
|
8
|
-
type:
|
|
8
|
+
type: StringConstructor;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
}>>, {
|
|
12
|
-
as:
|
|
12
|
+
as: string;
|
|
13
13
|
}>;
|
|
14
14
|
export default _default;
|
package/dist/vuetiful.es.mjs
CHANGED
|
@@ -510,7 +510,10 @@ let Ee = defineComponent({ name: "RadioGroupOption", props: { as: { type: [Objec
|
|
|
510
510
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
511
511
|
__name: "VRadioDescription",
|
|
512
512
|
props: {
|
|
513
|
-
as:
|
|
513
|
+
as: {
|
|
514
|
+
type: String,
|
|
515
|
+
default: "p"
|
|
516
|
+
}
|
|
514
517
|
},
|
|
515
518
|
setup(__props) {
|
|
516
519
|
return (_ctx, _cache) => {
|
|
@@ -526,9 +529,17 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
526
529
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
527
530
|
__name: "VRadioGroup",
|
|
528
531
|
props: {
|
|
529
|
-
as:
|
|
530
|
-
|
|
531
|
-
|
|
532
|
+
as: {
|
|
533
|
+
type: String,
|
|
534
|
+
default: "div"
|
|
535
|
+
},
|
|
536
|
+
disabled: {
|
|
537
|
+
type: Boolean,
|
|
538
|
+
default: false
|
|
539
|
+
},
|
|
540
|
+
by: {
|
|
541
|
+
type: [String, Function]
|
|
542
|
+
},
|
|
532
543
|
modelValue: ke.props["modelValue"],
|
|
533
544
|
active: {
|
|
534
545
|
type: String,
|
|
@@ -560,7 +571,6 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
560
571
|
watch(
|
|
561
572
|
() => parentModelValue.value,
|
|
562
573
|
(newValue) => {
|
|
563
|
-
console.log("test: ", newValue);
|
|
564
574
|
emit("update:modelValue", newValue);
|
|
565
575
|
}
|
|
566
576
|
);
|
|
@@ -568,18 +578,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
568
578
|
provide("hover", props.hover);
|
|
569
579
|
return (_ctx, _cache) => {
|
|
570
580
|
return openBlock(), createBlock(unref(ke), {
|
|
571
|
-
|
|
572
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => parentModelValue.value = $event),
|
|
581
|
+
"data-test": "radio-group",
|
|
573
582
|
as: __props.as,
|
|
574
583
|
disabled: __props.disabled,
|
|
575
584
|
by: __props.by,
|
|
576
|
-
class: normalizeClass(`radio-group inline-flex gap-1 p-1 ${__props.background} ${__props.text} border-token border-surface-400-500-token rounded-container-token`)
|
|
585
|
+
class: normalizeClass(`radio-group inline-flex gap-1 p-1 ${__props.background} ${__props.text} border-token border-surface-400-500-token rounded-container-token`),
|
|
586
|
+
modelValue: parentModelValue.value,
|
|
587
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => parentModelValue.value = $event)
|
|
577
588
|
}, {
|
|
578
589
|
default: withCtx(() => [
|
|
579
590
|
renderSlot(_ctx.$slots, "default")
|
|
580
591
|
]),
|
|
581
592
|
_: 3
|
|
582
|
-
}, 8, ["
|
|
593
|
+
}, 8, ["as", "disabled", "by", "class", "modelValue"]);
|
|
583
594
|
};
|
|
584
595
|
}
|
|
585
596
|
});
|
|
@@ -587,13 +598,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
587
598
|
__name: "VRadioItem",
|
|
588
599
|
props: {
|
|
589
600
|
value: {
|
|
590
|
-
type: [String, Number],
|
|
601
|
+
type: [String, Number, Boolean, Object],
|
|
591
602
|
required: true
|
|
592
603
|
}
|
|
593
604
|
},
|
|
594
605
|
setup(__props) {
|
|
595
|
-
const active = inject("active")
|
|
596
|
-
const hover = inject("hover")
|
|
606
|
+
const active = inject("active");
|
|
607
|
+
const hover = inject("hover");
|
|
597
608
|
return (_ctx, _cache) => {
|
|
598
609
|
return openBlock(), createBlock(unref(Ee), { value: __props.value }, {
|
|
599
610
|
default: withCtx(({ checked, disabled }) => [
|
|
@@ -612,7 +623,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
612
623
|
__name: "VRadioLabel",
|
|
613
624
|
props: {
|
|
614
625
|
as: {
|
|
615
|
-
type:
|
|
626
|
+
type: String,
|
|
616
627
|
default: "p"
|
|
617
628
|
}
|
|
618
629
|
},
|