@volverjs/ui-vue 0.0.10-beta.16 → 0.0.10-beta.18
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/auto-imports.d.ts +3 -2
- package/bin/icons.js +1 -1
- package/dist/Volver.d.ts +1 -1
- package/dist/components/VvAccordion/VvAccordion.es.js +2 -1
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +4 -2
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +2 -2
- package/dist/components/VvAction/VvAction.es.js +2 -1
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +3 -2
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +1 -1
- package/dist/components/VvAlert/index.d.ts +2 -2
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +5 -3
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +1 -1
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +2 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -1
- package/dist/components/VvButton/VvButton.es.js +5 -3
- 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 +3 -3
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +2 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +2 -1
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +7 -7
- package/dist/components/VvCheckbox/index.d.ts +3 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +4 -2
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +11 -6
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +3 -3
- package/dist/components/VvCombobox/index.d.ts +1 -1
- package/dist/components/VvDialog/VvDialog.es.js +60 -54
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +2 -1
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +1 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +2 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +1 -1
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -103
- package/dist/components/VvInputFile/VvInputFile.es.js +87 -57
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +1 -1
- package/dist/components/VvInputText/VvInputClearAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +48 -42
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +3 -3
- package/dist/components/VvInputText/index.d.ts +1 -1
- package/dist/components/VvNav/VvNav.es.js +7 -6
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +2 -1
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +2 -1
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +5 -5
- package/dist/components/VvRadio/index.d.ts +2 -2
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +4 -2
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +3 -3
- package/dist/components/VvRadioGroup/index.d.ts +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +3 -2
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +3 -3
- package/dist/components/VvSelect/index.d.ts +1 -1
- package/dist/components/VvTab/VvTab.es.js +9 -7
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +2 -2
- package/dist/components/VvTextarea/VvTextarea.es.js +3 -2
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +5 -5
- package/dist/components/VvTextarea/index.d.ts +2 -2
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +1 -1
- package/dist/components/index.es.js +266 -210
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +37 -4
- package/dist/composables/dropdown/useProvideDropdown.d.ts +1 -1
- package/dist/composables/index.es.js +14 -3
- package/dist/composables/index.umd.js +1 -1
- package/dist/directives/index.d.ts +3 -3
- package/dist/directives/index.es.js +3 -3
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +1 -1
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +6 -6
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +62 -0
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +5 -5
- package/dist/resolvers/unplugin.es.js +59 -6
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +59 -117
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +519 -661
- package/dist/utils/ObjectUtilities.d.ts +0 -1
- package/package.json +53 -53
- package/src/Volver.ts +9 -4
- 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/VvInputFile/VvInputFile.vue +33 -10
- package/src/directives/index.ts +3 -3
- package/src/resolvers/unplugin.ts +3 -13
- package/src/utils/ObjectUtilities.ts +0 -11
|
@@ -80,4 +80,3 @@ export declare function propsToObject(props: any): Record<string, unknown>;
|
|
|
80
80
|
* @return {object[]}
|
|
81
81
|
*/
|
|
82
82
|
export declare function filterArray<T = Record<string, unknown>>(list: T[], filter: T[] | string[], key: string): T[];
|
|
83
|
-
export declare function kebabCase(value: string): string | undefined;
|
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.18",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">= 16.x"
|
|
25
25
|
},
|
|
@@ -39,97 +39,97 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@floating-ui/vue": "^1.0.2",
|
|
42
|
-
"@iconify/tools": "^3.0.
|
|
42
|
+
"@iconify/tools": "^3.0.7",
|
|
43
43
|
"@iconify/vue": "^4.1.1",
|
|
44
|
-
"@vueuse/core": "^10.
|
|
44
|
+
"@vueuse/core": "^10.7.0",
|
|
45
45
|
"blurhash": "^2.0.5",
|
|
46
46
|
"comlink": "^4.4.1",
|
|
47
|
-
"jsdom": "^
|
|
47
|
+
"jsdom": "^23.0.1",
|
|
48
48
|
"mitt": "^3.0.1",
|
|
49
49
|
"pica": "^9.0.1",
|
|
50
50
|
"ts-dot-prop": "^2.1.3",
|
|
51
51
|
"uid": "^2.0.2",
|
|
52
|
-
"vue": "^3.3.
|
|
52
|
+
"vue": "^3.3.10",
|
|
53
53
|
"vue-imask": "^7.1.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@volverjs/style": "0.*"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.23.
|
|
60
|
-
"@babel/preset-env": "^7.23.
|
|
61
|
-
"@babel/preset-typescript": "^7.23.
|
|
59
|
+
"@babel/core": "^7.23.5",
|
|
60
|
+
"@babel/preset-env": "^7.23.5",
|
|
61
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
62
62
|
"@iconify/types": "^2.0.0",
|
|
63
|
-
"@iconify/utils": "^2.1.
|
|
64
|
-
"@mdx-js/react": "^
|
|
65
|
-
"@rushstack/eslint-patch": "^1.
|
|
66
|
-
"@storybook/addon-a11y": "^7.
|
|
67
|
-
"@storybook/addon-actions": "^7.
|
|
68
|
-
"@storybook/addon-docs": "^7.
|
|
69
|
-
"@storybook/addon-essentials": "^7.
|
|
70
|
-
"@storybook/addon-interactions": "^7.
|
|
71
|
-
"@storybook/addon-links": "^7.
|
|
72
|
-
"@storybook/channel-postmessage": "^7.
|
|
73
|
-
"@storybook/channel-websocket": "^7.
|
|
74
|
-
"@storybook/cli": "^7.
|
|
75
|
-
"@storybook/client-api": "^7.
|
|
76
|
-
"@storybook/client-logger": "^7.
|
|
77
|
-
"@storybook/core-common": "^7.
|
|
63
|
+
"@iconify/utils": "^2.1.12",
|
|
64
|
+
"@mdx-js/react": "^3.0.0",
|
|
65
|
+
"@rushstack/eslint-patch": "^1.6.0",
|
|
66
|
+
"@storybook/addon-a11y": "^7.6.3",
|
|
67
|
+
"@storybook/addon-actions": "^7.6.3",
|
|
68
|
+
"@storybook/addon-docs": "^7.6.3",
|
|
69
|
+
"@storybook/addon-essentials": "^7.6.3",
|
|
70
|
+
"@storybook/addon-interactions": "^7.6.3",
|
|
71
|
+
"@storybook/addon-links": "^7.6.3",
|
|
72
|
+
"@storybook/channel-postmessage": "^7.6.3",
|
|
73
|
+
"@storybook/channel-websocket": "^7.6.3",
|
|
74
|
+
"@storybook/cli": "^7.6.3",
|
|
75
|
+
"@storybook/client-api": "^7.6.3",
|
|
76
|
+
"@storybook/client-logger": "^7.6.3",
|
|
77
|
+
"@storybook/core-common": "^7.6.3",
|
|
78
78
|
"@storybook/jest": "^0.2.3",
|
|
79
|
-
"@storybook/preview-api": "^7.
|
|
80
|
-
"@storybook/preview-web": "^7.
|
|
81
|
-
"@storybook/test-runner": "^0.
|
|
79
|
+
"@storybook/preview-api": "^7.6.3",
|
|
80
|
+
"@storybook/preview-web": "^7.6.3",
|
|
81
|
+
"@storybook/test-runner": "^0.16.0",
|
|
82
82
|
"@storybook/testing-library": "^0.2.2",
|
|
83
|
-
"@storybook/vue3": "^7.
|
|
84
|
-
"@storybook/vue3-vite": "^7.
|
|
83
|
+
"@storybook/vue3": "^7.6.3",
|
|
84
|
+
"@storybook/vue3-vite": "^7.6.3",
|
|
85
85
|
"@tsconfig/node18": "^18.2.2",
|
|
86
|
-
"@types/jest-axe": "^3.5.
|
|
87
|
-
"@types/jsdom": "^21.1.
|
|
88
|
-
"@types/node": "^20.
|
|
89
|
-
"@types/pica": "^9.0.
|
|
90
|
-
"@types/react": "^18.2.
|
|
91
|
-
"@types/yargs": "^17.0.
|
|
92
|
-
"@vitejs/plugin-vue": "^4.
|
|
86
|
+
"@types/jest-axe": "^3.5.9",
|
|
87
|
+
"@types/jsdom": "^21.1.6",
|
|
88
|
+
"@types/node": "^20.10.3",
|
|
89
|
+
"@types/pica": "^9.0.4",
|
|
90
|
+
"@types/react": "^18.2.42",
|
|
91
|
+
"@types/yargs": "^17.0.32",
|
|
92
|
+
"@vitejs/plugin-vue": "^4.5.1",
|
|
93
93
|
"@volverjs/style": "0.1.12-beta.11",
|
|
94
|
-
"@vue/compiler-sfc": "^3.3.
|
|
94
|
+
"@vue/compiler-sfc": "^3.3.10",
|
|
95
95
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
96
96
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
97
|
-
"@vue/test-utils": "^2.4.
|
|
97
|
+
"@vue/test-utils": "^2.4.3",
|
|
98
98
|
"@vue/tsconfig": "^0.4.0",
|
|
99
|
-
"change-case": "^5.0
|
|
99
|
+
"change-case": "^5.3.0",
|
|
100
100
|
"chokidar": "^3.5.3",
|
|
101
|
-
"eslint": "^8.
|
|
102
|
-
"eslint-config-prettier": "^9.
|
|
101
|
+
"eslint": "^8.55.0",
|
|
102
|
+
"eslint-config-prettier": "^9.1.0",
|
|
103
103
|
"eslint-mdx": "^2.2.0",
|
|
104
104
|
"eslint-plugin-mdx": "^2.2.0",
|
|
105
105
|
"eslint-plugin-prettier": "^5.0.1",
|
|
106
106
|
"eslint-plugin-storybook": "^0.6.15",
|
|
107
|
-
"eslint-plugin-vue": "^9.
|
|
107
|
+
"eslint-plugin-vue": "^9.19.2",
|
|
108
108
|
"glob": "7.2.3",
|
|
109
109
|
"jest-axe": "^8.0.0",
|
|
110
110
|
"jest-diff": "^29.7.0",
|
|
111
111
|
"jest-get-type": "^29.6.3",
|
|
112
|
-
"jsdom": "^
|
|
112
|
+
"jsdom": "^23.0.1",
|
|
113
113
|
"npm-run-all": "^4.1.5",
|
|
114
|
-
"prettier": "^3.0
|
|
114
|
+
"prettier": "^3.1.0",
|
|
115
115
|
"pretty-format": "^29.7.0",
|
|
116
116
|
"react": "^18.2.0",
|
|
117
117
|
"react-dom": "^18.2.0",
|
|
118
118
|
"remark": "^15.0.1",
|
|
119
|
-
"sass": "^1.69.
|
|
120
|
-
"storybook": "^7.
|
|
119
|
+
"sass": "^1.69.5",
|
|
120
|
+
"storybook": "^7.6.3",
|
|
121
121
|
"storybook-addon-markdown-docs": "^2.0.0",
|
|
122
|
-
"storybook-dark-mode": "^3.0.
|
|
122
|
+
"storybook-dark-mode": "^3.0.3",
|
|
123
123
|
"storybook-version": "^0.1.1",
|
|
124
|
-
"terser": "^5.
|
|
124
|
+
"terser": "^5.25.0",
|
|
125
125
|
"ts-node": "^10.9.1",
|
|
126
|
-
"typescript": "~5.
|
|
127
|
-
"unplugin-auto-import": "^0.
|
|
128
|
-
"unplugin-vue-components": "^0.
|
|
129
|
-
"vite": "^
|
|
126
|
+
"typescript": "~5.3.2",
|
|
127
|
+
"unplugin-auto-import": "^0.17.2",
|
|
128
|
+
"unplugin-vue-components": "^0.26.0",
|
|
129
|
+
"vite": "^5.0.6",
|
|
130
130
|
"vite-plugin-eslint": "^1.8.1",
|
|
131
|
-
"vite-plugin-externalize-deps": "^0.
|
|
132
|
-
"vue-tsc": "^1.8.
|
|
131
|
+
"vite-plugin-externalize-deps": "^0.8.0",
|
|
132
|
+
"vue-tsc": "^1.8.25",
|
|
133
133
|
"yargs": "^17.7.2"
|
|
134
134
|
},
|
|
135
135
|
"typesVersions": {
|
package/src/Volver.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type { App, Component, Directive, Plugin, Ref } from 'vue'
|
|
1
2
|
import {
|
|
2
|
-
addCollection,
|
|
3
|
-
addIcon,
|
|
4
|
-
addAPIProvider,
|
|
5
3
|
type IconifyIcon,
|
|
6
4
|
type IconifyJSON,
|
|
7
5
|
type PartialIconifyAPIConfig,
|
|
6
|
+
addCollection,
|
|
7
|
+
addIcon,
|
|
8
|
+
addAPIProvider,
|
|
8
9
|
} from '@iconify/vue'
|
|
9
|
-
import
|
|
10
|
+
import { kebabCase } from 'change-case'
|
|
10
11
|
import { DEFAULT_ICONIFY_PROVIDER, INJECTION_KEY_VOLVER } from './constants'
|
|
11
12
|
|
|
12
13
|
export function useDefaultProps(
|
|
@@ -283,6 +284,10 @@ const VolverPlugin: Plugin = {
|
|
|
283
284
|
// register directives
|
|
284
285
|
if (options.directives) {
|
|
285
286
|
Object.entries(options.directives).forEach(([name, directive]) => {
|
|
287
|
+
const kebabName = kebabCase(name)
|
|
288
|
+
if (kebabName.startsWith('v-')) {
|
|
289
|
+
name = kebabName.substring(2).toLocaleLowerCase()
|
|
290
|
+
}
|
|
286
291
|
app.directive(name, directive)
|
|
287
292
|
})
|
|
288
293
|
}
|