@volverjs/ui-vue 0.0.10-beta.22 → 0.0.10-beta.24
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/components/VvAccordion/VvAccordion.es.js +119 -79
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +18 -4
- package/dist/components/VvAccordion/index.d.ts +4 -8
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +250 -119
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +18 -6
- package/dist/components/VvAccordionGroup/index.d.ts +3 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +1 -1
- package/dist/components/VvButton/VvButton.es.js +92 -98
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +7 -7
- package/dist/components/VvButton/index.d.ts +11 -11
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +7 -13
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +3 -3
- package/dist/components/VvCheckbox/VvCheckbox.es.js +81 -87
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +6 -6
- package/dist/components/VvCheckbox/index.d.ts +2 -2
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +15 -29
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +5 -5
- package/dist/components/VvCombobox/VvCombobox.es.js +13 -16
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +11 -11
- package/dist/components/VvCombobox/index.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +5 -5
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +1 -1
- package/dist/components/VvDropdown/index.d.ts +1 -1
- package/dist/components/VvInputFile/VvInputFile.es.js +199 -169
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +55 -9
- package/dist/components/VvInputFile/index.d.ts +24 -3
- package/dist/components/VvInputText/VvInputClearAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +6 -6
- package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +64 -70
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +6 -6
- package/dist/components/VvRadio/index.d.ts +6 -6
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +15 -29
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +5 -5
- package/dist/components/VvSelect/VvSelect.vue.d.ts +8 -8
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +5 -5
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +3 -3
- package/dist/components/VvTooltip/index.d.ts +1 -1
- package/dist/components/index.es.js +478 -324
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useInjectAlert.d.ts +1 -6
- package/dist/composables/group/useInjectedGroupState.d.ts +4 -5
- package/dist/composables/group/useProvideGroupState.d.ts +3 -3
- package/dist/constants.d.ts +6 -10
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +1 -1
- package/dist/resolvers/unplugin.es.js +3 -2
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +38 -14
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +259 -101
- package/dist/types/group.d.ts +37 -15
- package/package.json +37 -36
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordion/VvAccordion.vue +119 -56
- package/src/components/VvAccordion/index.ts +8 -23
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +140 -41
- package/src/components/VvAccordionGroup/index.ts +3 -1
- package/src/components/VvButton/index.ts +7 -12
- package/src/components/VvButtonGroup/VvButtonGroup.vue +1 -2
- package/src/components/VvCheckbox/index.ts +2 -2
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +1 -2
- package/src/components/VvInputFile/VvInputFile.vue +72 -47
- package/src/components/VvInputFile/index.ts +22 -3
- package/src/components/VvRadio/index.ts +5 -5
- package/src/components/VvRadioGroup/VvRadioGroup.vue +1 -2
- package/src/composables/group/useInjectedGroupState.ts +20 -16
- package/src/composables/group/useProvideGroupState.ts +10 -15
- package/src/constants.ts +19 -14
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +15 -9
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +1 -1
- package/src/types/group.ts +22 -14
package/dist/types/group.d.ts
CHANGED
|
@@ -1,37 +1,59 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
* State shared for a group of elements
|
|
4
|
-
*/
|
|
5
|
-
export default interface GroupState {
|
|
6
|
-
[itemKey: string]: Ref<unknown> | unknown | undefined;
|
|
7
|
-
key: string | number | symbol;
|
|
8
|
-
}
|
|
2
|
+
import type { Emitter } from 'mitt';
|
|
9
3
|
/**
|
|
10
4
|
* State shared in a group of inputs
|
|
11
5
|
*/
|
|
12
|
-
export
|
|
6
|
+
export type InputGroupState = {
|
|
7
|
+
modelValue: Ref<unknown>;
|
|
13
8
|
readonly: Ref<boolean>;
|
|
14
9
|
disabled: Ref<boolean>;
|
|
15
10
|
valid: Ref<boolean>;
|
|
16
11
|
invalid: Ref<boolean>;
|
|
17
|
-
}
|
|
12
|
+
};
|
|
18
13
|
/**
|
|
19
14
|
* State shared in a group of buttons
|
|
20
15
|
*/
|
|
21
|
-
export
|
|
16
|
+
export type ButtonGroupState = {
|
|
22
17
|
modelValue: Ref<string | number | boolean | (string | number | boolean)[] | undefined>;
|
|
23
18
|
disabled: Ref<boolean>;
|
|
24
19
|
toggle: Ref<boolean>;
|
|
25
20
|
multiple: Ref<boolean>;
|
|
26
21
|
unselectable: Ref<boolean>;
|
|
27
22
|
modifiers: Ref<string | string[] | undefined>;
|
|
28
|
-
}
|
|
23
|
+
};
|
|
29
24
|
/**
|
|
30
25
|
* State shared in a group of accordions
|
|
31
26
|
*/
|
|
32
|
-
export
|
|
33
|
-
|
|
27
|
+
export type AccordionGroupBusEvents = {
|
|
28
|
+
toggle: {
|
|
29
|
+
name: string;
|
|
30
|
+
value: boolean;
|
|
31
|
+
};
|
|
32
|
+
register: {
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
unregister: {
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
expand: {
|
|
39
|
+
name?: string | string[];
|
|
40
|
+
};
|
|
41
|
+
collapse: {
|
|
42
|
+
name?: string | string[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type AccordionGroupState = {
|
|
34
46
|
disabled: Ref<boolean>;
|
|
35
47
|
modifiers: Ref<string[] | string | undefined>;
|
|
36
|
-
|
|
37
|
-
}
|
|
48
|
+
bus: Emitter<AccordionGroupBusEvents>;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* State shared in a group of alerts
|
|
52
|
+
*/
|
|
53
|
+
export type AlertGroupBusEvents = {
|
|
54
|
+
close: string;
|
|
55
|
+
};
|
|
56
|
+
export type AlertGroupState = {
|
|
57
|
+
name?: Ref<string | undefined>;
|
|
58
|
+
bus?: Emitter<AlertGroupBusEvents>;
|
|
59
|
+
};
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/volverjs/ui-vue/issues"
|
|
21
21
|
},
|
|
22
|
-
"version": "0.0.10-beta.
|
|
22
|
+
"version": "0.0.10-beta.24",
|
|
23
23
|
"packageManager": "pnpm@8.7.0",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"main": "./dist/Volver.umd.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"*.d.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@floating-ui/vue": "^1.0.
|
|
38
|
+
"@floating-ui/vue": "^1.0.4",
|
|
39
39
|
"@iconify/tools": "^4.0.0",
|
|
40
40
|
"@iconify/vue": "^4.1.1",
|
|
41
|
-
"@vueuse/core": "^10.7.
|
|
41
|
+
"@vueuse/core": "^10.7.2",
|
|
42
42
|
"blurhash": "^2.0.5",
|
|
43
43
|
"comlink": "^4.4.1",
|
|
44
44
|
"jsdom": "^23.2.0",
|
|
@@ -46,8 +46,9 @@
|
|
|
46
46
|
"pica": "^9.0.1",
|
|
47
47
|
"ts-dot-prop": "^2.1.3",
|
|
48
48
|
"uid": "^2.0.2",
|
|
49
|
-
"vue": "^3.4.
|
|
50
|
-
"vue-imask": "^7.3.0"
|
|
49
|
+
"vue": "^3.4.15",
|
|
50
|
+
"vue-imask": "^7.3.0",
|
|
51
|
+
"vuedraggable": "^4.1.0"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
54
|
"@volverjs/style": "0.*"
|
|
@@ -57,68 +58,68 @@
|
|
|
57
58
|
"@babel/preset-env": "^7.23.8",
|
|
58
59
|
"@babel/preset-typescript": "^7.23.3",
|
|
59
60
|
"@iconify/types": "^2.0.0",
|
|
60
|
-
"@iconify/utils": "^2.1.
|
|
61
|
+
"@iconify/utils": "^2.1.15",
|
|
61
62
|
"@mdx-js/react": "^3.0.0",
|
|
62
|
-
"@rushstack/eslint-patch": "^1.
|
|
63
|
-
"@storybook/addon-a11y": "^7.6.
|
|
64
|
-
"@storybook/addon-actions": "^7.6.
|
|
65
|
-
"@storybook/addon-docs": "^7.6.
|
|
66
|
-
"@storybook/addon-essentials": "^7.6.
|
|
67
|
-
"@storybook/addon-interactions": "^7.6.
|
|
68
|
-
"@storybook/addon-links": "^7.6.
|
|
69
|
-
"@storybook/channel-postmessage": "^7.6.
|
|
70
|
-
"@storybook/channel-websocket": "^7.6.
|
|
71
|
-
"@storybook/cli": "^7.6.
|
|
72
|
-
"@storybook/client-api": "^7.6.
|
|
73
|
-
"@storybook/client-logger": "^7.6.
|
|
74
|
-
"@storybook/core-common": "^7.6.
|
|
63
|
+
"@rushstack/eslint-patch": "^1.7.0",
|
|
64
|
+
"@storybook/addon-a11y": "^7.6.10",
|
|
65
|
+
"@storybook/addon-actions": "^7.6.10",
|
|
66
|
+
"@storybook/addon-docs": "^7.6.10",
|
|
67
|
+
"@storybook/addon-essentials": "^7.6.10",
|
|
68
|
+
"@storybook/addon-interactions": "^7.6.10",
|
|
69
|
+
"@storybook/addon-links": "^7.6.10",
|
|
70
|
+
"@storybook/channel-postmessage": "^7.6.10",
|
|
71
|
+
"@storybook/channel-websocket": "^7.6.10",
|
|
72
|
+
"@storybook/cli": "^7.6.10",
|
|
73
|
+
"@storybook/client-api": "^7.6.10",
|
|
74
|
+
"@storybook/client-logger": "^7.6.10",
|
|
75
|
+
"@storybook/core-common": "^7.6.10",
|
|
75
76
|
"@storybook/jest": "^0.2.3",
|
|
76
|
-
"@storybook/preview-api": "^7.6.
|
|
77
|
-
"@storybook/preview-web": "^7.6.
|
|
77
|
+
"@storybook/preview-api": "^7.6.10",
|
|
78
|
+
"@storybook/preview-web": "^7.6.10",
|
|
78
79
|
"@storybook/test-runner": "^0.16.0",
|
|
79
80
|
"@storybook/testing-library": "^0.2.2",
|
|
80
|
-
"@storybook/vue3": "^7.6.
|
|
81
|
-
"@storybook/vue3-vite": "^7.6.
|
|
81
|
+
"@storybook/vue3": "^7.6.10",
|
|
82
|
+
"@storybook/vue3-vite": "^7.6.10",
|
|
82
83
|
"@tsconfig/node18": "^18.2.2",
|
|
83
84
|
"@types/jest-axe": "^3.5.9",
|
|
84
85
|
"@types/jsdom": "^21.1.6",
|
|
85
|
-
"@types/node": "^20.
|
|
86
|
+
"@types/node": "^20.11.5",
|
|
86
87
|
"@types/pica": "^9.0.4",
|
|
87
|
-
"@types/react": "^18.2.
|
|
88
|
+
"@types/react": "^18.2.48",
|
|
88
89
|
"@types/yargs": "^17.0.32",
|
|
89
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
90
|
+
"@vitejs/plugin-vue": "^5.0.3",
|
|
90
91
|
"@volverjs/style": "0.1.12-beta.15",
|
|
91
|
-
"@vue/compiler-sfc": "^3.4.
|
|
92
|
+
"@vue/compiler-sfc": "^3.4.15",
|
|
92
93
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
93
94
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
94
95
|
"@vue/test-utils": "^2.4.3",
|
|
95
96
|
"@vue/tsconfig": "^0.5.1",
|
|
96
|
-
"change-case": "^5.4.
|
|
97
|
+
"change-case": "^5.4.2",
|
|
97
98
|
"chokidar": "^3.5.3",
|
|
98
99
|
"eslint": "^8.56.0",
|
|
99
100
|
"eslint-config-prettier": "^9.1.0",
|
|
100
|
-
"eslint-mdx": "^3.1.
|
|
101
|
-
"eslint-plugin-mdx": "^3.1.
|
|
102
|
-
"eslint-plugin-prettier": "^5.1.
|
|
101
|
+
"eslint-mdx": "^3.1.5",
|
|
102
|
+
"eslint-plugin-mdx": "^3.1.5",
|
|
103
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
103
104
|
"eslint-plugin-storybook": "^0.6.15",
|
|
104
|
-
"eslint-plugin-vue": "^9.
|
|
105
|
+
"eslint-plugin-vue": "^9.20.1",
|
|
105
106
|
"glob": "7.2.3",
|
|
106
107
|
"jest-axe": "^8.0.0",
|
|
107
108
|
"jest-diff": "^29.7.0",
|
|
108
109
|
"jest-get-type": "^29.6.3",
|
|
109
110
|
"jsdom": "^23.2.0",
|
|
110
111
|
"npm-run-all": "^4.1.5",
|
|
111
|
-
"prettier": "^3.
|
|
112
|
+
"prettier": "^3.2.4",
|
|
112
113
|
"pretty-format": "^29.7.0",
|
|
113
114
|
"react": "^18.2.0",
|
|
114
115
|
"react-dom": "^18.2.0",
|
|
115
116
|
"remark": "^15.0.1",
|
|
116
|
-
"sass": "^1.
|
|
117
|
-
"storybook": "^7.6.
|
|
117
|
+
"sass": "^1.70.0",
|
|
118
|
+
"storybook": "^7.6.10",
|
|
118
119
|
"storybook-addon-markdown-docs": "^2.0.0",
|
|
119
120
|
"storybook-dark-mode": "^3.0.3",
|
|
120
121
|
"storybook-version": "^0.1.1",
|
|
121
|
-
"terser": "^5.
|
|
122
|
+
"terser": "^5.27.0",
|
|
122
123
|
"ts-node": "^10.9.2",
|
|
123
124
|
"typescript": "~5.3.3",
|
|
124
125
|
"unplugin-auto-import": "^0.17.3",
|