@volverjs/ui-vue 0.0.10-beta.2 → 0.0.10-beta.21
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/LICENSE +1 -1
- package/README.md +98 -3
- package/auto-imports.d.ts +6 -2
- package/bin/icons.cjs +1 -1
- package/bin/icons.js +23 -16
- package/dist/Volver.d.ts +1 -1
- package/dist/components/VvAccordion/VvAccordion.es.js +70 -14
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +13 -6
- package/dist/components/VvAccordion/index.d.ts +4 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +117 -38
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +15 -8
- package/dist/components/VvAccordionGroup/index.d.ts +4 -1
- package/dist/components/VvAction/VvAction.es.js +58 -13
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +59 -12
- package/dist/components/VvAction/index.d.ts +25 -4
- package/dist/components/VvAlert/VvAlert.es.js +195 -152
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +18 -8
- package/dist/components/VvAlert/index.d.ts +9 -5
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +240 -174
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +13 -6
- package/dist/components/VvAlertGroup/index.d.ts +6 -2
- package/dist/components/VvAvatar/VvAvatar.es.js +54 -9
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +12 -4
- package/dist/components/VvAvatar/index.d.ts +4 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +111 -36
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +10 -3
- package/dist/components/VvAvatarGroup/index.d.ts +4 -1
- package/dist/components/VvBadge/VvBadge.es.js +73 -17
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +12 -4
- package/dist/components/VvBadge/index.d.ts +4 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +259 -49
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +27 -7
- package/dist/components/VvBreadcrumb/index.d.ts +6 -10
- package/dist/components/VvButton/VvButton.es.js +187 -141
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +101 -27
- package/dist/components/VvButton/index.d.ts +41 -14
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +69 -16
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +23 -10
- package/dist/components/VvButtonGroup/index.d.ts +8 -2
- package/dist/components/VvCard/VvCard.es.js +84 -25
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +12 -4
- package/dist/components/VvCard/index.d.ts +4 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +91 -22
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +104 -32
- package/dist/components/VvCheckbox/index.d.ts +45 -12
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +180 -67
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +100 -29
- package/dist/components/VvCheckboxGroup/index.d.ts +45 -12
- package/dist/components/VvCombobox/VvCombobox.es.js +758 -531
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +181 -108
- package/dist/components/VvCombobox/index.d.ts +53 -22
- package/dist/components/VvDialog/VvDialog.es.js +136 -141
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
- package/dist/components/VvDropdown/VvDropdown.es.js +121 -55
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +101 -75
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +72 -11
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +12 -4
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +26 -7
- package/dist/components/VvDropdown/index.d.ts +16 -11
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +82 -22
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +56 -8
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +76 -17
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +23 -96
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -66
- package/dist/components/VvIcon/index.d.ts +33 -48
- package/dist/components/VvInputFile/VvInputFile.es.js +1734 -0
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +313 -0
- package/dist/components/VvInputFile/index.d.ts +179 -0
- package/dist/components/VvInputText/VvInputClearAction.d.ts +7 -5
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +10 -8
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +331 -293
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +162 -55
- package/dist/components/VvInputText/index.d.ts +71 -29
- package/dist/components/VvNav/VvNav.es.js +151 -73
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +41 -14
- package/dist/components/VvNav/VvNavItem.vue.d.ts +9 -0
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +2 -0
- package/dist/components/VvNav/index.d.ts +5 -13
- package/dist/components/VvNavItem/VvNavItem.es.js +436 -0
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -0
- package/dist/components/VvNavSeparator/VvNavSeparator.es.js +24 -0
- package/dist/components/VvNavSeparator/VvNavSeparator.umd.js +1 -0
- package/dist/components/VvProgress/VvProgress.es.js +65 -14
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +10 -3
- package/dist/components/VvProgress/index.d.ts +4 -1
- package/dist/components/VvRadio/VvRadio.es.js +89 -21
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +102 -30
- package/dist/components/VvRadio/index.d.ts +44 -11
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +180 -66
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +100 -29
- package/dist/components/VvRadioGroup/index.d.ts +45 -12
- package/dist/components/VvSelect/VvSelect.es.js +248 -226
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +112 -39
- package/dist/components/VvSelect/index.d.ts +48 -14
- package/dist/components/VvTab/VvTab.es.js +256 -110
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +50 -13
- package/dist/components/VvTab/index.d.ts +13 -4
- package/dist/components/VvTextarea/VvTextarea.es.js +229 -212
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +155 -48
- package/dist/components/VvTextarea/index.d.ts +68 -19
- package/dist/components/VvTooltip/VvTooltip.es.js +72 -17
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +10 -3
- package/dist/components/VvTooltip/index.d.ts +4 -1
- package/dist/components/common/HintSlot.d.ts +1 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.es.js +2902 -1329
- 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.d.ts +1 -0
- package/dist/composables/index.es.js +88 -1
- package/dist/composables/index.umd.js +1 -1
- package/dist/composables/useBlurhash.d.ts +7 -0
- package/dist/composables/useComponentIcon.d.ts +9 -8
- package/dist/composables/useVolver.d.ts +1 -1
- package/dist/directives/index.d.ts +3 -5
- package/dist/directives/index.es.js +92 -31
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +90 -26
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +210 -210
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +81 -16
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +287 -73
- package/dist/resolvers/unplugin.d.ts +6 -1
- package/dist/resolvers/unplugin.es.js +78 -10
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +72 -84
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +623 -461
- package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +1 -1
- package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
- package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
- package/dist/stories/Icon/Icon.settings.d.ts +1 -0
- package/dist/stories/InputFile/InputFile.settings.d.ts +56 -0
- package/dist/stories/InputFile/InputFile.stories.d.ts +12 -0
- package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
- package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
- package/dist/stories/Tab/Tab.settings.d.ts +4 -37
- package/dist/types/alert.d.ts +13 -0
- package/dist/types/blurhash.d.ts +12 -0
- package/dist/types/floating-ui.d.ts +6 -0
- package/dist/types/generic.d.ts +4 -0
- package/dist/types/group.d.ts +37 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/input-file.d.ts +16 -0
- package/dist/types/nav.d.ts +18 -0
- package/dist/utils/ObjectUtilities.d.ts +0 -1
- package/dist/workers/blurhash.d.ts +1 -0
- package/package.json +97 -80
- package/src/Volver.ts +31 -20
- 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 +2 -2
- package/src/components/VvAction/VvAction.vue +5 -2
- package/src/components/VvAlert/index.ts +1 -3
- package/src/components/VvAlertGroup/index.ts +2 -1
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +20 -19
- package/src/components/VvBreadcrumb/index.ts +2 -8
- package/src/components/VvButton/VvButton.vue +6 -6
- package/src/components/VvButton/index.ts +2 -4
- package/src/components/VvCombobox/VvCombobox.vue +24 -16
- package/src/components/VvCombobox/index.ts +4 -0
- package/src/components/VvIcon/VvIcon.vue +2 -2
- package/src/components/VvIcon/index.ts +35 -48
- package/src/components/VvInputFile/VvInputFile.vue +365 -0
- package/src/components/VvInputFile/index.ts +116 -0
- package/src/components/VvInputText/VvInputClearAction.ts +10 -6
- package/src/components/VvInputText/VvInputPasswordAction.ts +13 -9
- package/src/components/VvInputText/VvInputText.vue +17 -18
- package/src/components/VvInputText/index.ts +7 -15
- package/src/components/VvNav/VvNav.vue +30 -50
- package/src/components/VvNav/VvNavItem.vue +18 -0
- package/src/components/VvNav/VvNavSeparator.vue +11 -0
- package/src/components/VvNav/index.ts +2 -15
- package/src/components/VvSelect/VvSelect.vue +5 -8
- package/src/components/VvTab/VvTab.vue +63 -35
- package/src/components/VvTab/index.ts +10 -4
- package/src/components/VvTextarea/VvTextarea.vue +6 -9
- package/src/components/index.ts +10 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/useBlurhash.ts +76 -0
- package/src/composables/useComponentIcon.ts +15 -14
- package/src/composables/useUniqueId.ts +2 -2
- package/src/directives/index.ts +3 -6
- package/src/directives/v-tooltip.ts +19 -10
- package/src/index.ts +3 -1
- package/src/props/index.ts +115 -27
- package/src/resolvers/unplugin.ts +24 -14
- package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +2 -2
- package/src/stories/Blurhash/BlurhashComposable.stories.ts +195 -0
- package/src/stories/Combobox/Combobox.settings.ts +8 -0
- package/src/stories/Icon/Icon.settings.ts +3 -3
- package/src/stories/InputFile/InputFile.settings.ts +36 -0
- package/src/stories/InputFile/InputFile.stories.ts +89 -0
- package/src/stories/InputFile/InputFileDropArea.stories.ts +56 -0
- package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
- package/src/stories/InputFile/InputFileSlots.stories.ts +33 -0
- package/src/stories/Nav/Nav.settings.ts +3 -4
- package/src/stories/Nav/Nav.test.ts +4 -15
- package/src/stories/Tab/Tab.settings.ts +9 -9
- package/src/stories/Tab/Tab.stories.ts +2 -2
- package/src/stories/Tab/Tab.test.ts +6 -14
- package/src/stories/argTypes.ts +1 -1
- package/src/types/blurhash.ts +21 -0
- package/src/types/generic.ts +6 -0
- package/src/types/index.ts +7 -0
- package/src/types/input-file.ts +18 -0
- package/src/types/nav.ts +20 -0
- package/src/utils/ObjectUtilities.ts +0 -11
- package/src/workers/blurhash.ts +9 -0
- package/dist/components/VvNav/VvNavItemTitle.vue.d.ts +0 -6
- package/dist/components/VvNav/VvNavSeparator.d.ts +0 -2
- package/dist/components/VvNavItemTitle/VvNavItemTitle.es.js +0 -19
- package/dist/components/VvNavItemTitle/VvNavItemTitle.umd.js +0 -1
- package/src/components/VvNav/VvNavItemTitle.vue +0 -11
- package/src/components/VvNav/VvNavSeparator.ts +0 -8
- package/src/types/generic.d.ts +0 -6
- /package/src/types/{alert.d.ts → alert.ts} +0 -0
- /package/src/types/{floating-ui.d.ts → floating-ui.ts} +0 -0
- /package/src/types/{group.d.ts → group.ts} +0 -0
|
@@ -22,6 +22,11 @@ export interface VolverResolverOptions {
|
|
|
22
22
|
* @default undefined
|
|
23
23
|
*/
|
|
24
24
|
ignore?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* cherry pick components from named exports
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
cherryPick?: boolean;
|
|
25
30
|
}
|
|
26
31
|
export declare const getStyleNames: (kebabName: string) => string[] | undefined;
|
|
27
32
|
/**
|
|
@@ -29,5 +34,5 @@ export declare const getStyleNames: (kebabName: string) => string[] | undefined;
|
|
|
29
34
|
*
|
|
30
35
|
* @link https://github.com/volverjs/ui-vue
|
|
31
36
|
*/
|
|
32
|
-
export declare function VolverResolver({ prefix, importStyle, directives, ignore, }?: VolverResolverOptions): ComponentResolver[];
|
|
37
|
+
export declare function VolverResolver({ prefix, importStyle, directives, ignore, cherryPick, }?: VolverResolverOptions): ComponentResolver[];
|
|
33
38
|
export {};
|
|
@@ -1,11 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const SPLIT_LOWER_UPPER_RE = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu");
|
|
2
|
+
const SPLIT_UPPER_UPPER_RE = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu");
|
|
3
|
+
const SPLIT_NUMBER_LOWER_RE = new RegExp("(\\d)(\\p{Ll})", "gu");
|
|
4
|
+
const SPLIT_LETTER_NUMBER_RE = new RegExp("(\\p{L})(\\d)", "gu");
|
|
5
|
+
const DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
|
|
6
|
+
const SPLIT_REPLACE_VALUE = "$1\0$2";
|
|
7
|
+
const DEFAULT_PREFIX_SUFFIX_CHARACTERS = "";
|
|
8
|
+
function split(value, options) {
|
|
9
|
+
let result = value.trim();
|
|
10
|
+
result = result.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
|
|
11
|
+
if (options == null ? void 0 : options.separateNumbers) {
|
|
12
|
+
result = result.replace(SPLIT_NUMBER_LOWER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_LETTER_NUMBER_RE, SPLIT_REPLACE_VALUE);
|
|
13
|
+
}
|
|
14
|
+
result = result.replace(DEFAULT_STRIP_REGEXP, "\0");
|
|
15
|
+
let start = 0;
|
|
16
|
+
let end = result.length;
|
|
17
|
+
while (result.charAt(start) === "\0")
|
|
18
|
+
start++;
|
|
19
|
+
if (start === end)
|
|
20
|
+
return [];
|
|
21
|
+
while (result.charAt(end - 1) === "\0")
|
|
22
|
+
end--;
|
|
23
|
+
return result.slice(start, end).split(/\0/g);
|
|
24
|
+
}
|
|
25
|
+
function noCase(input, options) {
|
|
26
|
+
const [prefix, value, suffix] = splitPrefixSuffix(input, options);
|
|
27
|
+
return prefix + split(value, options).map(lowerFactory(options == null ? void 0 : options.locale)).join((options == null ? void 0 : options.delimiter) ?? " ") + suffix;
|
|
28
|
+
}
|
|
29
|
+
function kebabCase(input, options) {
|
|
30
|
+
return noCase(input, { delimiter: "-", ...options });
|
|
31
|
+
}
|
|
32
|
+
function lowerFactory(locale) {
|
|
33
|
+
return locale === false ? (input) => input.toLowerCase() : (input) => input.toLocaleLowerCase(locale);
|
|
34
|
+
}
|
|
35
|
+
function splitPrefixSuffix(input, options) {
|
|
36
|
+
const prefixCharacters = (options == null ? void 0 : options.prefixCharacters) ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
37
|
+
const suffixCharacters = (options == null ? void 0 : options.suffixCharacters) ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
38
|
+
let prefixIndex = 0;
|
|
39
|
+
let suffixIndex = input.length;
|
|
40
|
+
while (prefixIndex < input.length) {
|
|
41
|
+
const char = input.charAt(prefixIndex);
|
|
42
|
+
if (!prefixCharacters.includes(char))
|
|
43
|
+
break;
|
|
44
|
+
prefixIndex++;
|
|
45
|
+
}
|
|
46
|
+
while (suffixIndex > prefixIndex) {
|
|
47
|
+
const index = suffixIndex - 1;
|
|
48
|
+
const char = input.charAt(index);
|
|
49
|
+
if (!suffixCharacters.includes(char))
|
|
50
|
+
break;
|
|
51
|
+
suffixIndex = index;
|
|
52
|
+
}
|
|
53
|
+
return [
|
|
54
|
+
input.slice(0, prefixIndex),
|
|
55
|
+
input.slice(prefixIndex, suffixIndex),
|
|
56
|
+
input.slice(suffixIndex)
|
|
57
|
+
];
|
|
5
58
|
}
|
|
6
59
|
const STYLE_EXCLUDE = ["vv-icon", "vv-action"];
|
|
7
60
|
const VOLVER_PREFIX = "vv";
|
|
8
|
-
const DIRECTIVES = ["v-tooltip"];
|
|
61
|
+
const DIRECTIVES = ["v-tooltip", "v-contextmenu"];
|
|
9
62
|
const getStyleNames = function(kebabName) {
|
|
10
63
|
if (STYLE_EXCLUDE.includes(kebabName)) {
|
|
11
64
|
return void 0;
|
|
@@ -61,7 +114,8 @@ function VolverResolver({
|
|
|
61
114
|
prefix = VOLVER_PREFIX,
|
|
62
115
|
importStyle,
|
|
63
116
|
directives,
|
|
64
|
-
ignore
|
|
117
|
+
ignore,
|
|
118
|
+
cherryPick
|
|
65
119
|
} = {}) {
|
|
66
120
|
return [
|
|
67
121
|
{
|
|
@@ -77,9 +131,16 @@ function VolverResolver({
|
|
|
77
131
|
if (ignore && ignore.includes(kebabName)) {
|
|
78
132
|
return;
|
|
79
133
|
}
|
|
134
|
+
if (cherryPick) {
|
|
135
|
+
return {
|
|
136
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
137
|
+
sideEffects: getSideEffects(kebabName, importStyle)
|
|
138
|
+
};
|
|
139
|
+
}
|
|
80
140
|
return {
|
|
81
|
-
from:
|
|
82
|
-
sideEffects: getSideEffects(kebabName, importStyle)
|
|
141
|
+
from: "@volverjs/ui-vue/components",
|
|
142
|
+
sideEffects: getSideEffects(kebabName, importStyle),
|
|
143
|
+
name
|
|
83
144
|
};
|
|
84
145
|
}
|
|
85
146
|
},
|
|
@@ -96,9 +157,16 @@ function VolverResolver({
|
|
|
96
157
|
if (ignore && ignore.includes(kebabName)) {
|
|
97
158
|
return;
|
|
98
159
|
}
|
|
160
|
+
if (cherryPick) {
|
|
161
|
+
return {
|
|
162
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
163
|
+
sideEffects: getSideEffects(kebabName, importStyle)
|
|
164
|
+
};
|
|
165
|
+
}
|
|
99
166
|
return {
|
|
100
|
-
from:
|
|
101
|
-
sideEffects: getSideEffects(kebabName, importStyle)
|
|
167
|
+
from: "@volverjs/ui-vue/directives",
|
|
168
|
+
sideEffects: getSideEffects(kebabName, importStyle),
|
|
169
|
+
name: `v${name}`
|
|
102
170
|
};
|
|
103
171
|
}
|
|
104
172
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(o
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).components={})}(this,(function(e){"use strict";const o=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),r=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),t=new RegExp("(\\d)(\\p{Ll})","gu"),n=new RegExp("(\\p{L})(\\d)","gu"),v=/[^\p{L}\d]+/giu,i="$1\0$2",c="";function u(e,u){const[s,l,p]=function(e,o){const r=(null==o?void 0:o.prefixCharacters)??c,t=(null==o?void 0:o.suffixCharacters)??c;let n=0,v=e.length;for(;n<e.length;){const o=e.charAt(n);if(!r.includes(o))break;n++}for(;v>n;){const o=v-1,r=e.charAt(o);if(!t.includes(r))break;v=o}return[e.slice(0,n),e.slice(n,v),e.slice(v)]}(e,u);return s+function(e,c){let u=e.trim();u=u.replace(o,i).replace(r,i),(null==c?void 0:c.separateNumbers)&&(u=u.replace(t,i).replace(n,i)),u=u.replace(v,"\0");let s=0,l=u.length;for(;"\0"===u.charAt(s);)s++;if(s===l)return[];for(;"\0"===u.charAt(l-1);)l--;return u.slice(s,l).split(/\0/g)}(l,u).map((d=null==u?void 0:u.locale,!1===d?e=>e.toLowerCase():e=>e.toLocaleLowerCase(d))).join((null==u?void 0:u.delimiter)??" ")+p;var d}function s(e,o){return u(e,{delimiter:"-",...o})}const l=["vv-icon","vv-action"],p=["v-tooltip","v-contextmenu"],d=function(e){if(!l.includes(e))return"vv-dropdown"===e?["vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-combobox"===e?["vv-select","vv-dropdown-option","vv-dropdown-optgroup","vv-dropdown","vv-dropdown-action"]:"vv-button-group"===e?["vv-button","vv-button-group"]:"vv-accordion-group"===e?["vv-accordion","vv-accordion-group"]:"vv-checkbox-group"===e?["vv-checkbox","vv-checkbox-group"]:"vv-radio-group"===e?["vv-radio","vv-radio-group"]:"vv-alert-group"===e?["vv-alert","vv-alert-group"]:"v-tooltip"===e?["vv-tooltip"]:[e]},f=function(e,o){const r=[];if(!o)return r;const t=d(e);return t&&t.forEach((e=>{r.push(`@volverjs/style/${"scss"===o?"scss/":""}components/${e}`)})),r};e.VolverResolver=function({prefix:e="vv",importStyle:o,directives:r,ignore:t,cherryPick:n}={}){return[{type:"component",resolve:r=>{if(!e||!r.toLowerCase().startsWith(e.toLowerCase()))return;const v=s(r).replace(`${e}-`,"vv-");return t&&t.includes(v)?void 0:n?{from:`@volverjs/ui-vue/${v}`,sideEffects:f(v,o)}:{from:"@volverjs/ui-vue/components",sideEffects:f(v,o),name:r}}},{type:"directive",resolve:e=>{if(!r)return;const v=`v-${s(e)}`;return!p.includes(v)||t&&t.includes(v)?void 0:n?{from:`@volverjs/ui-vue/${v}`,sideEffects:f(v,o)}:{from:"@volverjs/ui-vue/directives",sideEffects:f(v,o),name:`v${e}`}}}]},e.getStyleNames=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,83 +1,59 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
2
|
import VvAccordionGroup from '@/components/VvAccordionGroup/VvAccordionGroup.vue';
|
|
3
3
|
declare const _default: Meta<{
|
|
4
|
-
new (...args: any[]): {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
ref_key?: string | undefined;
|
|
22
|
-
readonly storeKey?: string | undefined;
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<globalThis.ExtractPropTypes<{
|
|
5
|
+
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
6
|
+
items: {
|
|
7
|
+
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
collapse: BooleanConstructor;
|
|
11
|
+
itemModifiers: {
|
|
12
|
+
type: globalThis.PropType<string | string[]>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
disabled: BooleanConstructor;
|
|
16
|
+
not: BooleanConstructor;
|
|
17
|
+
storeKey: StringConstructor;
|
|
18
|
+
modifiers: {
|
|
19
|
+
type: globalThis.PropType<string | string[]>;
|
|
20
|
+
default: undefined;
|
|
23
21
|
};
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
[x: string]: (...args: any[]) => void;
|
|
24
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
|
|
25
|
+
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
26
|
+
items: {
|
|
27
|
+
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
28
|
+
default: () => never[];
|
|
26
29
|
};
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
collapse: BooleanConstructor;
|
|
31
|
+
itemModifiers: {
|
|
32
|
+
type: globalThis.PropType<string | string[]>;
|
|
33
|
+
default: string;
|
|
29
34
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
$el: any;
|
|
37
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
39
|
-
items: {
|
|
40
|
-
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
41
|
-
default: () => never[];
|
|
42
|
-
};
|
|
43
|
-
collapse: BooleanConstructor;
|
|
44
|
-
itemModifiers: {
|
|
45
|
-
type: globalThis.PropType<string | string[]>;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
disabled: BooleanConstructor;
|
|
49
|
-
not: BooleanConstructor;
|
|
50
|
-
storeKey: StringConstructor;
|
|
51
|
-
modifiers: globalThis.PropType<string | string[]>;
|
|
52
|
-
}>> & {
|
|
53
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
54
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, {
|
|
55
|
-
disabled: boolean;
|
|
56
|
-
not: boolean;
|
|
57
|
-
collapse: boolean;
|
|
58
|
-
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
59
|
-
itemModifiers: string | string[];
|
|
60
|
-
}, {}, string, {}> & {
|
|
61
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
74
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
75
|
-
errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void)[]) | undefined;
|
|
35
|
+
disabled: BooleanConstructor;
|
|
36
|
+
not: BooleanConstructor;
|
|
37
|
+
storeKey: StringConstructor;
|
|
38
|
+
modifiers: {
|
|
39
|
+
type: globalThis.PropType<string | string[]>;
|
|
40
|
+
default: undefined;
|
|
76
41
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
42
|
+
}>>, {
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
modifiers: string | string[];
|
|
45
|
+
collapse: boolean;
|
|
46
|
+
not: boolean;
|
|
47
|
+
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
48
|
+
itemModifiers: string | string[];
|
|
49
|
+
}, true, {}, {}, {
|
|
50
|
+
P: {};
|
|
51
|
+
B: {};
|
|
52
|
+
D: {};
|
|
53
|
+
C: {};
|
|
54
|
+
M: {};
|
|
55
|
+
Defaults: {};
|
|
56
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
81
57
|
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
82
58
|
items: {
|
|
83
59
|
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
@@ -91,14 +67,22 @@ declare const _default: Meta<{
|
|
|
91
67
|
disabled: BooleanConstructor;
|
|
92
68
|
not: BooleanConstructor;
|
|
93
69
|
storeKey: StringConstructor;
|
|
94
|
-
modifiers:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
70
|
+
modifiers: {
|
|
71
|
+
type: globalThis.PropType<string | string[]>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
}>>, {}, {}, {}, {}, {
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
modifiers: string | string[];
|
|
77
|
+
collapse: boolean;
|
|
78
|
+
not: boolean;
|
|
79
|
+
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
80
|
+
itemModifiers: string | string[];
|
|
81
|
+
}>;
|
|
98
82
|
__isFragment?: undefined;
|
|
99
83
|
__isTeleport?: undefined;
|
|
100
84
|
__isSuspense?: undefined;
|
|
101
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
85
|
+
} & import("vue").ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
102
86
|
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
103
87
|
items: {
|
|
104
88
|
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
@@ -112,17 +96,21 @@ declare const _default: Meta<{
|
|
|
112
96
|
disabled: BooleanConstructor;
|
|
113
97
|
not: BooleanConstructor;
|
|
114
98
|
storeKey: StringConstructor;
|
|
115
|
-
modifiers:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
99
|
+
modifiers: {
|
|
100
|
+
type: globalThis.PropType<string | string[]>;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
104
|
+
[x: string]: (...args: any[]) => void;
|
|
105
|
+
}, string, {
|
|
119
106
|
disabled: boolean;
|
|
120
|
-
|
|
107
|
+
modifiers: string | string[];
|
|
121
108
|
collapse: boolean;
|
|
109
|
+
not: boolean;
|
|
122
110
|
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
123
111
|
itemModifiers: string | string[];
|
|
124
112
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
125
|
-
$slots: Partial<Record
|
|
113
|
+
$slots: Partial<Record<`header::${string}`, (_: any) => any>> & Partial<Record<`details::${string}`, (_: any) => any>> & {
|
|
126
114
|
default?(_: {}): any;
|
|
127
115
|
};
|
|
128
116
|
})>;
|