@mekari/pixel3-radio 0.0.4 → 0.0.5
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/{chunk-K5EBKT3H.mjs → chunk-XSYT67DT.mjs} +6 -4
- package/dist/index.js +5 -3
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/radio.js +5 -3
- package/dist/radio.mjs +1 -1
- package/package.json +5 -4
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-PXWY2WNA.mjs";
|
|
5
5
|
|
|
6
6
|
// src/radio.tsx
|
|
7
|
-
import { isVNode as _isVNode, createVNode as _createVNode } from "vue";
|
|
7
|
+
import { isVNode as _isVNode, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
|
8
8
|
import { defineComponent } from "vue";
|
|
9
9
|
import { useFormControlContext } from "@mekari/pixel3-form-control";
|
|
10
10
|
import { MpText } from "@mekari/pixel3-text";
|
|
@@ -17,9 +17,11 @@ var MpRadio = defineComponent({
|
|
|
17
17
|
name: "MpRadio",
|
|
18
18
|
props: radioProps,
|
|
19
19
|
emits: ["click", "change", "update:isChecked", "update:modelValue"],
|
|
20
|
+
inheritAttrs: false,
|
|
20
21
|
setup(props, {
|
|
21
22
|
slots,
|
|
22
|
-
emit
|
|
23
|
+
emit,
|
|
24
|
+
attrs
|
|
23
25
|
}) {
|
|
24
26
|
const classes = radioSlotRecipe();
|
|
25
27
|
const sharedClasses = sharedSlotRecipe();
|
|
@@ -61,7 +63,7 @@ var MpRadio = defineComponent({
|
|
|
61
63
|
"aria-disabled": (formControlProp == null ? void 0 : formControlProp.value.isDisabled) || isDisabled,
|
|
62
64
|
"aria-invalid": (formControlProp == null ? void 0 : formControlProp.value.isInvalid) || isInvalid,
|
|
63
65
|
"aria-readonly": (formControlProp == null ? void 0 : formControlProp.value.isReadOnly) || isReadOnly
|
|
64
|
-
}, [_createVNode("input", {
|
|
66
|
+
}, [_createVNode("input", _mergeProps({
|
|
65
67
|
"id": id,
|
|
66
68
|
"class": sharedClasses.hidden,
|
|
67
69
|
"type": "radio",
|
|
@@ -71,7 +73,7 @@ var MpRadio = defineComponent({
|
|
|
71
73
|
"disabled": (formControlProp == null ? void 0 : formControlProp.value.isDisabled) || isDisabled ? true : void 0,
|
|
72
74
|
"onChange": onChange,
|
|
73
75
|
"onClick": onClick
|
|
74
|
-
}, null), _createVNode("div", {
|
|
76
|
+
}, attrs), null), _createVNode("div", {
|
|
75
77
|
"class": classes.control
|
|
76
78
|
}, [_createVNode("div", {
|
|
77
79
|
"style": {
|
package/dist/index.js
CHANGED
|
@@ -70,9 +70,11 @@ var MpRadio = (0, import_vue2.defineComponent)({
|
|
|
70
70
|
name: "MpRadio",
|
|
71
71
|
props: radioProps,
|
|
72
72
|
emits: ["click", "change", "update:isChecked", "update:modelValue"],
|
|
73
|
+
inheritAttrs: false,
|
|
73
74
|
setup(props, {
|
|
74
75
|
slots,
|
|
75
|
-
emit
|
|
76
|
+
emit,
|
|
77
|
+
attrs
|
|
76
78
|
}) {
|
|
77
79
|
const classes = (0, import_recipes.radioSlotRecipe)();
|
|
78
80
|
const sharedClasses = (0, import_recipes.sharedSlotRecipe)();
|
|
@@ -114,7 +116,7 @@ var MpRadio = (0, import_vue2.defineComponent)({
|
|
|
114
116
|
"aria-disabled": (formControlProp == null ? void 0 : formControlProp.value.isDisabled) || isDisabled,
|
|
115
117
|
"aria-invalid": (formControlProp == null ? void 0 : formControlProp.value.isInvalid) || isInvalid,
|
|
116
118
|
"aria-readonly": (formControlProp == null ? void 0 : formControlProp.value.isReadOnly) || isReadOnly
|
|
117
|
-
}, [(0, import_vue.createVNode)("input", {
|
|
119
|
+
}, [(0, import_vue.createVNode)("input", (0, import_vue.mergeProps)({
|
|
118
120
|
"id": id,
|
|
119
121
|
"class": sharedClasses.hidden,
|
|
120
122
|
"type": "radio",
|
|
@@ -124,7 +126,7 @@ var MpRadio = (0, import_vue2.defineComponent)({
|
|
|
124
126
|
"disabled": (formControlProp == null ? void 0 : formControlProp.value.isDisabled) || isDisabled ? true : void 0,
|
|
125
127
|
"onChange": onChange,
|
|
126
128
|
"onClick": onClick
|
|
127
|
-
}, null), (0, import_vue.createVNode)("div", {
|
|
129
|
+
}, attrs), null), (0, import_vue.createVNode)("div", {
|
|
128
130
|
"class": classes.control
|
|
129
131
|
}, [(0, import_vue.createVNode)("div", {
|
|
130
132
|
"style": {
|
package/dist/index.mjs
CHANGED
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/radio.props.ts":{"bytes":434,"imports":[],"format":"esm"},"src/radio.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/radio.props.ts":{"bytes":434,"imports":[],"format":"esm"},"src/radio.tsx":{"bytes":3368,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-form-control","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/radio.props.ts","kind":"import-statement","original":"./modules/radio.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":119,"imports":[{"path":"src/radio.tsx","kind":"import-statement","original":"./radio"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-form-control","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":119},"src/radio.tsx":{"bytesInOutput":3716},"src/modules/radio.props.ts":{"bytesInOutput":325}},"bytes":5234},"dist/radio.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-form-control","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/radio.tsx","inputs":{"src/radio.tsx":{"bytesInOutput":3841},"src/modules/radio.props.ts":{"bytesInOutput":325}},"bytes":5223},"dist/modules/radio.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/radio.props.ts","inputs":{"src/modules/radio.props.ts":{"bytesInOutput":474}},"bytes":1408}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/radio.props.ts":{"bytes":434,"imports":[],"format":"esm"},"src/radio.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/radio.props.ts":{"bytes":434,"imports":[],"format":"esm"},"src/radio.tsx":{"bytes":3368,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-form-control","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/radio.props.ts","kind":"import-statement","original":"./modules/radio.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":119,"imports":[{"path":"src/radio.tsx","kind":"import-statement","original":"./radio"}],"format":"esm"}},"outputs":{"dist/index.mjs":{"imports":[{"path":"dist/chunk-XSYT67DT.mjs","kind":"import-statement"},{"path":"dist/chunk-PXWY2WNA.mjs","kind":"import-statement"}],"exports":["MpRadio"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":103},"dist/radio.mjs":{"imports":[{"path":"dist/chunk-XSYT67DT.mjs","kind":"import-statement"},{"path":"dist/chunk-PXWY2WNA.mjs","kind":"import-statement"}],"exports":["MpRadio"],"entryPoint":"src/radio.tsx","inputs":{},"bytes":103},"dist/chunk-XSYT67DT.mjs":{"imports":[{"path":"dist/chunk-PXWY2WNA.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-form-control","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["MpRadio"],"inputs":{"src/radio.tsx":{"bytesInOutput":3530}},"bytes":3634},"dist/modules/radio.props.mjs":{"imports":[{"path":"dist/chunk-PXWY2WNA.mjs","kind":"import-statement"}],"exports":["radioProps"],"entryPoint":"src/modules/radio.props.ts","inputs":{},"bytes":79},"dist/chunk-PXWY2WNA.mjs":{"imports":[],"exports":["__name","radioProps"],"inputs":{"src/modules/radio.props.ts":{"bytesInOutput":325}},"bytes":521}}}
|
package/dist/radio.js
CHANGED
|
@@ -68,9 +68,11 @@ var MpRadio = (0, import_vue2.defineComponent)({
|
|
|
68
68
|
name: "MpRadio",
|
|
69
69
|
props: radioProps,
|
|
70
70
|
emits: ["click", "change", "update:isChecked", "update:modelValue"],
|
|
71
|
+
inheritAttrs: false,
|
|
71
72
|
setup(props, {
|
|
72
73
|
slots,
|
|
73
|
-
emit
|
|
74
|
+
emit,
|
|
75
|
+
attrs
|
|
74
76
|
}) {
|
|
75
77
|
const classes = (0, import_recipes.radioSlotRecipe)();
|
|
76
78
|
const sharedClasses = (0, import_recipes.sharedSlotRecipe)();
|
|
@@ -112,7 +114,7 @@ var MpRadio = (0, import_vue2.defineComponent)({
|
|
|
112
114
|
"aria-disabled": (formControlProp == null ? void 0 : formControlProp.value.isDisabled) || isDisabled,
|
|
113
115
|
"aria-invalid": (formControlProp == null ? void 0 : formControlProp.value.isInvalid) || isInvalid,
|
|
114
116
|
"aria-readonly": (formControlProp == null ? void 0 : formControlProp.value.isReadOnly) || isReadOnly
|
|
115
|
-
}, [(0, import_vue.createVNode)("input", {
|
|
117
|
+
}, [(0, import_vue.createVNode)("input", (0, import_vue.mergeProps)({
|
|
116
118
|
"id": id,
|
|
117
119
|
"class": sharedClasses.hidden,
|
|
118
120
|
"type": "radio",
|
|
@@ -122,7 +124,7 @@ var MpRadio = (0, import_vue2.defineComponent)({
|
|
|
122
124
|
"disabled": (formControlProp == null ? void 0 : formControlProp.value.isDisabled) || isDisabled ? true : void 0,
|
|
123
125
|
"onChange": onChange,
|
|
124
126
|
"onClick": onClick
|
|
125
|
-
}, null), (0, import_vue.createVNode)("div", {
|
|
127
|
+
}, attrs), null), (0, import_vue.createVNode)("div", {
|
|
126
128
|
"class": classes.control
|
|
127
129
|
}, [(0, import_vue.createVNode)("div", {
|
|
128
130
|
"style": {
|
package/dist/radio.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-radio",
|
|
3
3
|
"description": "Radio component for mekari pixel 3",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@mekari/pixel3-
|
|
12
|
-
"@mekari/pixel3-
|
|
13
|
-
"@mekari/pixel3-styled-system": "0.0.3"
|
|
11
|
+
"@mekari/pixel3-form-control": "0.0.5",
|
|
12
|
+
"@mekari/pixel3-text": "0.0.5",
|
|
13
|
+
"@mekari/pixel3-styled-system": "0.0.3",
|
|
14
|
+
"@mekari/pixel3-utils": "0.0.4"
|
|
14
15
|
},
|
|
15
16
|
"peerDependencies": {
|
|
16
17
|
"vue": "^3.4.9"
|