@volverjs/ui-vue 0.0.10-beta.47 → 0.0.10-beta.48
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/README.md +2 -2
- package/auto-imports.d.ts +19 -11
- package/bin/icons.js +1 -0
- package/dist/components/VvAccordion/VvAccordion.es.js +4 -5
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +8 -11
- package/dist/components/VvAccordion/index.d.ts +2 -2
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +45 -46
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +11 -13
- package/dist/components/VvAccordionGroup/index.d.ts +2 -2
- package/dist/components/VvAction/VvAction.vue.d.ts +8 -10
- package/dist/components/VvAction/index.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +158 -161
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +20 -22
- package/dist/components/VvAlert/index.d.ts +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +271 -274
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +9 -11
- package/dist/components/VvAlertGroup/index.d.ts +2 -2
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +6 -6
- package/dist/components/VvAvatar/index.d.ts +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +21 -22
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +6 -6
- package/dist/components/VvAvatarGroup/index.d.ts +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +6 -6
- package/dist/components/VvBadge/index.d.ts +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +23 -23
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +19 -19
- package/dist/components/VvBreadcrumb/index.d.ts +1 -1
- package/dist/components/VvButton/VvButton.es.js +313 -314
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +14 -16
- package/dist/components/VvButton/index.d.ts +9 -9
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +2 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +6 -8
- package/dist/components/VvButtonGroup/index.d.ts +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +6 -6
- package/dist/components/VvCard/index.d.ts +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +186 -187
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +11 -13
- package/dist/components/VvCheckbox/index.d.ts +7 -7
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -191
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +11 -13
- package/dist/components/VvCheckboxGroup/index.d.ts +2 -2
- package/dist/components/VvCombobox/VvCombobox.es.js +1864 -1865
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +72 -291
- package/dist/components/VvCombobox/index.d.ts +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +7 -9
- package/dist/components/VvDialog/index.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +9 -10
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +51 -51
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +22 -16
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +4 -4
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +4 -4
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +6 -6
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +2 -2
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +2 -2
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +2 -2
- package/dist/components/VvIcon/VvIcon.vue.d.ts +2 -23
- package/dist/components/VvInputFile/VvInputFile.es.js +651 -652
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +19 -19
- package/dist/components/VvInputFile/index.d.ts +4 -4
- package/dist/components/VvInputText/VvInputClearAction.d.ts +10 -6
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +11 -7
- package/dist/components/VvInputText/VvInputStepAction.d.ts +10 -6
- package/dist/components/VvInputText/VvInputText.es.js +715 -716
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +30 -32
- package/dist/components/VvInputText/index.d.ts +1 -1
- package/dist/components/VvNav/VvNav.es.js +5 -5
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +8 -10
- package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
- package/dist/components/VvNav/index.d.ts +2 -2
- package/dist/components/VvProgress/VvProgress.vue.d.ts +6 -6
- package/dist/components/VvProgress/index.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +186 -187
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +10 -12
- package/dist/components/VvRadio/index.d.ts +5 -5
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +190 -191
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +11 -13
- package/dist/components/VvRadioGroup/index.d.ts +2 -2
- package/dist/components/VvSelect/VvSelect.es.js +337 -338
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +20 -131
- package/dist/components/VvSelect/index.d.ts +7 -7
- package/dist/components/VvTab/VvTab.es.js +18 -18
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +6 -8
- package/dist/components/VvTab/index.d.ts +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +292 -293
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +14 -16
- package/dist/components/VvTextarea/index.d.ts +3 -3
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +8 -8
- package/dist/components/common/HintSlot.d.ts +6 -6
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.es.js +2760 -2763
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +4 -4
- package/dist/composables/alert/{useProvideAlert.d.ts → useAlertProvide.d.ts} +1 -1
- package/dist/composables/dropdown/useDropdownContextmenu.d.ts +18 -0
- package/dist/composables/dropdown/{useProvideDropdown.d.ts → useDropdownProvide.d.ts} +6 -6
- package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +17 -0
- package/dist/composables/group/{useInjectedGroupState.d.ts → useGroupStateInject.d.ts} +1 -1
- package/dist/composables/group/{useProvideGroupState.d.ts → useGroupStateProvide.d.ts} +2 -2
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/index.es.js +87 -3
- package/dist/composables/index.umd.js +1 -1
- package/dist/composables/useComponentFocus.d.ts +1 -1
- package/dist/composables/useOptions.d.ts +1 -1
- package/dist/composables/usePersistence.d.ts +1 -1
- package/dist/composables/useUniqueId.d.ts +1 -1
- package/dist/constants.d.ts +3 -3
- package/dist/directives/index.d.ts +2 -2
- package/dist/directives/index.es.js +145 -39
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-contextmenu.es.js +137 -31
- package/dist/directives/v-contextmenu.umd.js +1 -1
- package/dist/icons.d.ts +17 -17
- package/dist/icons.es.js +424 -424
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +4 -4
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +178 -474
- package/dist/stories/Alert/Alert.settings.d.ts +1 -1
- package/dist/stories/Alert/AlertModifiers.stories.d.ts +1 -1
- package/dist/stories/Alert/AlertSlots.stories.d.ts +1 -1
- package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +1 -1
- package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +1 -1
- package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +1 -1
- package/dist/stories/Button/Button.settings.d.ts +1 -1
- package/dist/stories/Combobox/Combobox.settings.d.ts +1 -1
- package/dist/stories/Nav/Nav.settings.d.ts +1 -1
- package/dist/stories/Tab/Tab.settings.d.ts +1 -1
- package/dist/types/floating-ui.d.ts +1 -1
- package/dist/types/group.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/DomUtilities.d.ts +1 -0
- package/package.json +41 -41
- package/src/Volver.ts +3 -3
- 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 +5 -5
- package/src/components/VvAccordion/index.ts +2 -2
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +5 -5
- package/src/components/VvAction/VvAction.vue +1 -1
- package/src/components/VvAlert/VvAlert.vue +1 -1
- package/src/components/VvAlert/index.ts +1 -1
- package/src/components/VvAlertGroup/VvAlertGroup.vue +1 -1
- package/src/components/VvAlertGroup/index.ts +3 -3
- package/src/components/VvAvatarGroup/VvAvatarGroup.vue +1 -1
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +2 -2
- package/src/components/VvBreadcrumb/index.ts +1 -1
- package/src/components/VvButton/VvButton.vue +3 -3
- package/src/components/VvButton/index.ts +4 -4
- package/src/components/VvButtonGroup/VvButtonGroup.vue +3 -3
- package/src/components/VvCheckbox/VvCheckbox.vue +2 -2
- package/src/components/VvCheckbox/index.ts +2 -2
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +2 -2
- package/src/components/VvCombobox/VvCombobox.vue +9 -9
- package/src/components/VvCombobox/index.ts +15 -15
- package/src/components/VvDropdown/VvDropdown.vue +19 -19
- package/src/components/VvDropdown/VvDropdownAction.vue +1 -1
- package/src/components/VvDropdown/VvDropdownItem.vue +1 -1
- package/src/components/VvDropdown/VvDropdownOption.vue +1 -1
- package/src/components/VvDropdown/index.ts +2 -2
- package/src/components/VvIcon/VvIcon.vue +2 -2
- package/src/components/VvInputFile/VvInputFile.vue +7 -7
- package/src/components/VvInputFile/index.ts +7 -7
- package/src/components/VvInputText/VvInputPasswordAction.ts +1 -1
- package/src/components/VvInputText/VvInputText.vue +19 -19
- package/src/components/VvInputText/VvInputTextActions.ts +4 -4
- package/src/components/VvInputText/index.ts +2 -2
- package/src/components/VvNav/VvNav.vue +1 -1
- package/src/components/VvRadio/VvRadio.vue +1 -1
- package/src/components/VvRadio/index.ts +2 -2
- package/src/components/VvRadioGroup/VvRadioGroup.vue +2 -2
- package/src/components/VvSelect/VvSelect.vue +6 -6
- package/src/components/VvSelect/index.ts +12 -12
- package/src/components/VvTab/VvTab.vue +2 -2
- package/src/components/VvTab/index.ts +1 -1
- package/src/components/VvTextarea/VvTextarea.vue +1 -1
- package/src/components/common/HintSlot.ts +14 -14
- package/src/components/index.ts +1 -1
- package/src/composables/alert/useAlert.ts +2 -2
- package/src/composables/alert/{useProvideAlert.ts → useAlertProvide.ts} +2 -2
- package/src/composables/dropdown/useDropdownContextmenu.ts +22 -0
- package/src/composables/dropdown/{useProvideDropdown.ts → useDropdownProvide.ts} +9 -9
- package/src/composables/dropdown/useDropdownVirtualElement.ts +53 -0
- package/src/composables/group/{useInjectedGroupState.ts → useGroupStateInject.ts} +2 -2
- package/src/composables/group/{useProvideGroupState.ts → useGroupStateProvide.ts} +2 -2
- package/src/composables/index.ts +2 -0
- package/src/composables/useBlurhash.ts +2 -2
- package/src/composables/useOptions.ts +1 -1
- package/src/composables/usePersistence.ts +1 -1
- package/src/composables/useTextCount.ts +2 -2
- package/src/composables/useUniqueId.ts +2 -3
- package/src/constants.ts +5 -5
- package/src/directives/index.ts +2 -2
- package/src/directives/v-contextmenu.ts +21 -29
- package/src/directives/v-tooltip.ts +2 -2
- package/src/icons.ts +2 -2
- package/src/index.ts +1 -1
- package/src/props/index.ts +7 -7
- package/src/resolvers/unplugin.ts +5 -5
- package/src/stories/Accordion/Accordion.stories.ts +2 -2
- package/src/stories/Accordion/Accordion.test.ts +1 -1
- package/src/stories/Accordion/AccordionSlots.stories.ts +2 -2
- package/src/stories/AccordionGroup/AccordionGroup.stories.ts +2 -2
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +1 -1
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +3 -3
- package/src/stories/Alert/Alert.settings.ts +1 -1
- package/src/stories/Alert/Alert.stories.ts +2 -2
- package/src/stories/Alert/Alert.test.ts +1 -1
- package/src/stories/Alert/AlertModifiers.stories.ts +2 -2
- package/src/stories/Alert/AlertSlots.stories.ts +2 -2
- package/src/stories/AlertGroup/AlertGroup.stories.ts +2 -2
- package/src/stories/AlertGroup/AlertGroup.test.ts +3 -3
- package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +2 -2
- package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +2 -2
- package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +2 -2
- package/src/stories/Avatar/Avatar.stories.ts +2 -2
- package/src/stories/Avatar/Avatar.test.ts +1 -1
- package/src/stories/Avatar/AvatarBadge.stories.ts +1 -1
- package/src/stories/Avatar/AvatarModifiers.stories.ts +2 -2
- package/src/stories/Avatar/AvatarSlots.stories.ts +2 -2
- package/src/stories/AvatarGroup/AvatarGroup.stories.ts +2 -2
- package/src/stories/AvatarGroup/AvatarGroup.test.ts +1 -1
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +2 -2
- package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.ts +3 -3
- package/src/stories/Badge/Badge.stories.ts +2 -2
- package/src/stories/Badge/Badge.test.ts +1 -1
- package/src/stories/Badge/BadgeSlots.stories.ts +2 -2
- package/src/stories/Blurhash/BlurhashComposable.stories.ts +37 -117
- package/src/stories/Breadcrumb/Breadcrumb.stories.ts +2 -2
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +5 -5
- package/src/stories/Button/Button.settings.ts +3 -3
- package/src/stories/Button/Button.stories.ts +2 -2
- package/src/stories/Button/Button.test.ts +1 -1
- package/src/stories/Button/ButtonIcon.stories.ts +2 -2
- package/src/stories/Button/ButtonLink.stories.ts +2 -2
- package/src/stories/Button/ButtonLoading.stories.ts +2 -2
- package/src/stories/Button/ButtonModifiers.stories.ts +2 -2
- package/src/stories/Button/ButtonSlots.stories.ts +3 -3
- package/src/stories/Button/ButtonState.stories.ts +2 -2
- package/src/stories/Button/ButtonToggle.stories.ts +2 -2
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +2 -2
- package/src/stories/ButtonGroup/ButtonGroup.stories.ts +2 -2
- package/src/stories/ButtonGroup/ButtonGroup.test.ts +1 -1
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +2 -2
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +2 -2
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +2 -2
- package/src/stories/Card/Card.stories.ts +2 -2
- package/src/stories/Card/Card.test.ts +1 -1
- package/src/stories/Card/CardSlots.stories.ts +2 -2
- package/src/stories/Checkbox/Checkbox.stories.ts +2 -2
- package/src/stories/Checkbox/Checkbox.test.ts +1 -1
- package/src/stories/Checkbox/CheckboxBinary.stories.ts +2 -2
- package/src/stories/Checkbox/CheckboxSlots.stories.ts +2 -2
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +2 -2
- package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +2 -2
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +2 -2
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +3 -3
- package/src/stories/Combobox/Combobox.settings.ts +9 -9
- package/src/stories/Combobox/Combobox.stories.ts +2 -2
- package/src/stories/Combobox/Combobox.test.ts +2 -2
- package/src/stories/Combobox/ComboboxIconPosition.stories.ts +2 -2
- package/src/stories/Combobox/ComboboxMultiple.stories.ts +2 -2
- package/src/stories/Combobox/ComboboxOptions.stories.ts +2 -2
- package/src/stories/Combobox/ComboboxSlots.stories.ts +3 -3
- package/src/stories/Dialog/Dialog.stories.ts +2 -2
- package/src/stories/Dialog/Dialog.test.ts +1 -1
- package/src/stories/Dialog/DialogModifiers.stories.ts +2 -2
- package/src/stories/Dialog/DialogSlots.stories.ts +2 -2
- package/src/stories/Dropdown/Dropdown.settings.ts +1 -1
- package/src/stories/Dropdown/Dropdown.stories.ts +4 -4
- package/src/stories/Dropdown/Dropdown.test.ts +1 -1
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +3 -4
- package/src/stories/Dropdown/DropdownMultilevel.stories.ts +4 -4
- package/src/stories/Dropdown/DropdownSlots.stories.ts +4 -4
- package/src/stories/Icon/Icon.settings.ts +1 -1
- package/src/stories/Icon/Icon.stories.ts +2 -2
- package/src/stories/Icon/IconsCollection.stories.ts +3 -3
- package/src/stories/InputFile/InputFile.settings.ts +1 -1
- package/src/stories/InputFile/InputFile.stories.ts +1 -1
- package/src/stories/InputFile/InputFileDropArea.stories.ts +2 -2
- package/src/stories/InputFile/InputFileIconPosition.stories.ts +2 -2
- package/src/stories/InputFile/InputFileSlots.stories.ts +2 -2
- package/src/stories/InputText/InputText.settings.ts +2 -2
- package/src/stories/InputText/InputText.stories.ts +2 -2
- package/src/stories/InputText/InputText.test.ts +2 -2
- package/src/stories/InputText/InputTextIconPosition.stories.ts +2 -2
- package/src/stories/InputText/InputTextLength.stories.ts +2 -2
- package/src/stories/InputText/InputTextMask.stories.ts +2 -2
- package/src/stories/InputText/InputTextMinMax.stories.ts +2 -2
- package/src/stories/InputText/InputTextSlots.stories.ts +2 -2
- package/src/stories/InputText/InputTextType.stories.ts +2 -2
- package/src/stories/Nav/Nav.settings.ts +1 -1
- package/src/stories/Nav/Nav.stories.ts +2 -2
- package/src/stories/Nav/Nav.test.ts +1 -1
- package/src/stories/Nav/NavModifiers.stories.ts +2 -2
- package/src/stories/Progress/Progress.stories.ts +2 -2
- package/src/stories/Progress/Progress.test.ts +2 -2
- package/src/stories/Radio/Radio.stories.ts +2 -2
- package/src/stories/Radio/Radio.test.ts +1 -1
- package/src/stories/Radio/RadioSlots.stories.ts +2 -2
- package/src/stories/RadioGroup/RadioGroup.stories.ts +2 -2
- package/src/stories/RadioGroup/RadioGroup.test.ts +2 -2
- package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +2 -2
- package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +3 -3
- package/src/stories/Select/Select.settings.ts +10 -10
- package/src/stories/Select/Select.stories.ts +2 -2
- package/src/stories/Select/Select.test.ts +1 -1
- package/src/stories/Select/SelectIconPosition.stories.ts +2 -2
- package/src/stories/Select/SelectOptions.stories.ts +2 -2
- package/src/stories/Select/SelectSlots.stories.ts +2 -2
- package/src/stories/Tab/Tab.settings.ts +1 -1
- package/src/stories/Tab/Tab.stories.ts +1 -1
- package/src/stories/Tab/Tab.test.ts +1 -1
- package/src/stories/Textarea/Textarea.settings.ts +1 -1
- package/src/stories/Textarea/Textarea.stories.ts +2 -2
- package/src/stories/Textarea/Textarea.test.ts +1 -1
- package/src/stories/Textarea/TextareaLength.stories.ts +2 -2
- package/src/stories/Textarea/TextareaSlots.stories.ts +2 -2
- package/src/stories/Textarea/TextareatIconPosition.stories.ts +2 -2
- package/src/stories/Tooltip/Tooltip.stories.ts +3 -3
- package/src/stories/Tooltip/Tooltip.test.ts +1 -1
- package/src/stories/Tooltip/TooltipDirective.stories.ts +3 -3
- package/src/test/expect.ts +3 -3
- package/src/test/types.d.ts +2 -2
- package/src/types/floating-ui.ts +1 -1
- package/src/types/group.ts +1 -1
- package/src/types/index.ts +2 -2
- package/src/utils/DomUtilities.ts +15 -0
- package/src/utils/ObjectUtilities.ts +4 -4
- package/src/workers/blurhash.ts +1 -1
- package/dist/composables/alert/{useInjectAlert.d.ts → useAlerInject.d.ts} +0 -0
- package/dist/composables/dropdown/{useInjectDropdown.d.ts → useDropdownInject.d.ts} +0 -0
- package/src/assets/icons/normal/{dulicate.svg → duplicate.svg} +0 -0
- package/src/composables/alert/{useInjectAlert.ts → useAlerInject.ts} +0 -0
- package/src/composables/dropdown/{useInjectDropdown.ts → useDropdownInject.ts} +1 -1
|
@@ -1,39 +1,31 @@
|
|
|
1
|
+
import type VvDropdown from '@/components/VvDropdown/VvDropdown.vue'
|
|
1
2
|
import type { Directive, DirectiveBinding } from 'vue'
|
|
3
|
+
import { useDropdownContextmenu } from '@/composables'
|
|
2
4
|
|
|
3
5
|
const contextmenu: Directive = {
|
|
4
|
-
beforeUpdate(el
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return {
|
|
10
|
-
width: 0,
|
|
11
|
-
height: 0,
|
|
12
|
-
x: clientX.value,
|
|
13
|
-
y: clientY.value,
|
|
14
|
-
top: clientY.value,
|
|
15
|
-
left: clientX.value,
|
|
16
|
-
right: clientX.value,
|
|
17
|
-
bottom: clientY.value,
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
}
|
|
21
|
-
if (binding.value?.init) {
|
|
22
|
-
binding.value.init?.(virtualEl)
|
|
23
|
-
}
|
|
6
|
+
beforeUpdate(el, binding: DirectiveBinding) {
|
|
7
|
+
const { onContextmenu, onScroll, getBoundingClientRect } = useDropdownContextmenu(binding as unknown as Ref<typeof VvDropdown>)
|
|
8
|
+
binding.value.init({
|
|
9
|
+
getBoundingClientRect,
|
|
10
|
+
})
|
|
24
11
|
el.addEventListener(
|
|
25
12
|
'contextmenu',
|
|
26
|
-
|
|
27
|
-
if (binding.value?.show) {
|
|
28
|
-
ev.preventDefault()
|
|
29
|
-
clientX.value = ev.clientX
|
|
30
|
-
clientY.value = ev.clientY
|
|
31
|
-
binding.value.show?.()
|
|
32
|
-
return false
|
|
33
|
-
}
|
|
34
|
-
},
|
|
13
|
+
onContextmenu,
|
|
35
14
|
false,
|
|
36
15
|
)
|
|
16
|
+
const scrollContainerEl = findScrollContainer(binding.value.$el)
|
|
17
|
+
if (scrollContainerEl) {
|
|
18
|
+
scrollContainerEl.addEventListener('scroll', onScroll)
|
|
19
|
+
}
|
|
20
|
+
el.additionalData = { onContextmenu, onScroll, scrollContainerEl }
|
|
21
|
+
},
|
|
22
|
+
beforeUnmount(el) {
|
|
23
|
+
if (el?.additionalData?.onContextmenu) {
|
|
24
|
+
el.removeEventListener('contextmenu', el.additionalData.onContextmenu)
|
|
25
|
+
}
|
|
26
|
+
if (el?.additionalData?.onScroll && el?.additionalData?.scrollContainerEl) {
|
|
27
|
+
el.additionalData.scrollContainerEl.removeEventListener('scroll', el.additionalData.onScroll)
|
|
28
|
+
}
|
|
37
29
|
},
|
|
38
30
|
}
|
|
39
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { render, type Directive, type DirectiveBinding } from 'vue'
|
|
2
|
-
import VvTooltip from '../components/VvTooltip/VvTooltip.vue'
|
|
3
1
|
import type { Side } from '../constants'
|
|
2
|
+
import { type Directive, type DirectiveBinding, render } from 'vue'
|
|
3
|
+
import VvTooltip from '../components/VvTooltip/VvTooltip.vue'
|
|
4
4
|
|
|
5
5
|
const tooltip: Directive = (() => {
|
|
6
6
|
return {
|
package/src/icons.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import normal from './assets/icons/normal.json'
|
|
2
1
|
import detailed from './assets/icons/detailed.json'
|
|
2
|
+
import normal from './assets/icons/normal.json'
|
|
3
3
|
import simple from './assets/icons/simple.json'
|
|
4
4
|
|
|
5
5
|
export default [normal, detailed, simple]
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { detailed, normal, simple }
|
package/src/index.ts
CHANGED
package/src/props/index.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Option } from '@/types/generic'
|
|
3
|
-
import type { NavItem } from '@/types/nav'
|
|
1
|
+
import type { VvIconProps } from '@/components/VvIcon'
|
|
4
2
|
import type {
|
|
5
3
|
AutoPlacementOptions,
|
|
6
4
|
FlipOptions,
|
|
@@ -8,16 +6,18 @@ import type {
|
|
|
8
6
|
ShiftOptions,
|
|
9
7
|
SizeOptions,
|
|
10
8
|
} from '@/types/floating-ui'
|
|
9
|
+
import type { Option } from '@/types/generic'
|
|
10
|
+
import type { NavItem } from '@/types/nav'
|
|
11
|
+
import type { PropType } from 'vue'
|
|
11
12
|
import {
|
|
13
|
+
ActionTag,
|
|
14
|
+
ButtonType,
|
|
12
15
|
Placement,
|
|
13
|
-
Strategy,
|
|
14
16
|
Position,
|
|
15
17
|
Side,
|
|
16
|
-
ButtonType,
|
|
17
|
-
ActionTag,
|
|
18
18
|
StorageType,
|
|
19
|
+
Strategy,
|
|
19
20
|
} from '@/constants'
|
|
20
|
-
import type { VvIconProps } from '@/components/VvIcon'
|
|
21
21
|
|
|
22
22
|
export const LinkProps = {
|
|
23
23
|
/**
|
|
@@ -88,9 +88,9 @@ const getSideEffects = function (kebabName: string, importStyle?: ImportStyle) {
|
|
|
88
88
|
if (styleNames) {
|
|
89
89
|
styleNames.forEach((name) => {
|
|
90
90
|
sideEffects.push(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
`@volverjs/style/${
|
|
92
|
+
importStyle === 'scss' ? 'scss/' : ''
|
|
93
|
+
}components/${name}`,
|
|
94
94
|
)
|
|
95
95
|
})
|
|
96
96
|
}
|
|
@@ -121,8 +121,8 @@ export function VolverResolver({
|
|
|
121
121
|
return
|
|
122
122
|
}
|
|
123
123
|
const kebabName = kebabCase(name).replace(
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
`${prefix}-`,
|
|
125
|
+
`${VOLVER_PREFIX}-`,
|
|
126
126
|
)
|
|
127
127
|
|
|
128
128
|
if (ignore && ignore.includes(kebabName)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Accordion.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Accordion.settings'
|
|
4
2
|
import VvAccordion from '@/components/VvAccordion/VvAccordion.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Accordion.settings'
|
|
4
|
+
import { defaultTest } from './Accordion.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAccordion> = {
|
|
7
7
|
title: 'Components/Accordion',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
4
3
|
import { sleep } from '@/test/sleep'
|
|
4
|
+
import { within } from '@storybook/test'
|
|
5
5
|
|
|
6
6
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
7
7
|
const element = (await within(canvasElement).findByTestId(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default as AccordionDefault } from './Accordion.stories'
|
|
3
|
-
import { defaultArgs } from './Accordion.settings'
|
|
4
2
|
import VvAccordion from '@/components/VvAccordion/VvAccordion.vue'
|
|
3
|
+
import { defaultArgs } from './Accordion.settings'
|
|
4
|
+
import { Default as AccordionDefault } from './Accordion.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAccordion> = {
|
|
7
7
|
title: 'Components/Accordion/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './AccordionGroup.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './AccordionGroup.settings'
|
|
4
2
|
import VvAccordionGroup from '@/components/VvAccordionGroup/VvAccordionGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './AccordionGroup.settings'
|
|
4
|
+
import { defaultTest } from './AccordionGroup.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAccordionGroup> = {
|
|
7
7
|
title: 'Components/AccordionGroup',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
4
3
|
import { sleep } from '@/test/sleep'
|
|
4
|
+
import { within } from '@storybook/test'
|
|
5
5
|
|
|
6
6
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
7
7
|
const element = await within(canvasElement).findByTestId('element')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defaultTest } from './AccordionGroup.test'
|
|
2
|
-
import { defaultArgs, argTypes } from './AccordionGroup.settings'
|
|
3
|
-
import meta, { type Story } from './AccordionGroup.stories'
|
|
4
1
|
import VvAccordion from '@/components/VvAccordion/VvAccordion.vue'
|
|
5
2
|
import VvAccordionGroup from '@/components/VvAccordionGroup/VvAccordionGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './AccordionGroup.settings'
|
|
4
|
+
import meta, { type Story } from './AccordionGroup.stories'
|
|
5
|
+
import { defaultTest } from './AccordionGroup.test'
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
...meta,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { VvAlert } from '@/components'
|
|
1
2
|
import type { ArgTypes, Meta } from '@storybook/vue3'
|
|
2
3
|
import { IconArgTypes, ModifiersArgTypes } from '../argTypes'
|
|
3
|
-
import type { VvAlert } from '@/components'
|
|
4
4
|
|
|
5
5
|
export const defaultArgs: Meta<typeof VvAlert>['args'] = {
|
|
6
6
|
title: 'Alert title!',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Alert.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Alert.settings'
|
|
4
2
|
import VvAlert from '@/components/VvAlert/VvAlert.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Alert.settings'
|
|
4
|
+
import { defaultTest } from './Alert.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAlert> = {
|
|
7
7
|
title: 'Components/Alert',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
3
|
+
import { within } from '@storybook/test'
|
|
4
4
|
|
|
5
5
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
6
6
|
const element = await within(canvasElement).findByTestId('element')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Alert.settings'
|
|
3
|
-
import { Default, type Story } from './Alert.stories'
|
|
4
2
|
import VvAlert from '@/components/VvAlert/VvAlert.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Alert.settings'
|
|
4
|
+
import { Default, type Story } from './Alert.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAlert> = {
|
|
7
7
|
title: 'Components/Alert/Modifiers',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Alert.settings'
|
|
3
|
-
import { Default as DefaultStory, type Story } from './Alert.stories'
|
|
4
2
|
import VvAlert from '@/components/VvAlert/VvAlert.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Alert.settings'
|
|
4
|
+
import { Default as DefaultStory, type Story } from './Alert.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAlert> = {
|
|
7
7
|
title: 'Components/Alert/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './AlertGroup.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './AlertGroup.settings'
|
|
4
2
|
import VvAlertGroup from '@/components/VvAlertGroup/VvAlertGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './AlertGroup.settings'
|
|
4
|
+
import { defaultTest } from './AlertGroup.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAlertGroup> = {
|
|
7
7
|
title: 'Components/AlertGroup',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { userEvent, within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
3
|
+
import { userEvent, within } from '@storybook/test'
|
|
4
4
|
|
|
5
5
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
6
6
|
const element = await within(canvasElement).findByTestId('element')
|
|
@@ -44,7 +44,7 @@ export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
|
44
44
|
|
|
45
45
|
if (args.inline && args.block) {
|
|
46
46
|
expect(element).toHaveClass(
|
|
47
|
-
|
|
47
|
+
`vv-alert-group--${args.block}-${args.inline}`,
|
|
48
48
|
)
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -77,7 +77,7 @@ export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
|
77
77
|
const button = element as HTMLElement
|
|
78
78
|
await userEvent.click(button)
|
|
79
79
|
expect(alertGroupList.lastElementChild).toHaveClass(
|
|
80
|
-
|
|
80
|
+
`vv-alert--${button.id}`,
|
|
81
81
|
)
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './AlertGroup.settings'
|
|
3
|
-
import { Default, type Story } from './AlertGroup.stories'
|
|
4
2
|
import VvAlertGroup from '@/components/VvAlertGroup/VvAlertGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './AlertGroup.settings'
|
|
4
|
+
import { Default, type Story } from './AlertGroup.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAlertGroup> = {
|
|
7
7
|
title: 'Components/AlertGroup/Position',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './AlertGroup.settings'
|
|
3
|
-
import { Default as DefaultStory, type Story } from './AlertGroup.stories'
|
|
4
2
|
import VvAlertGroup from '@/components/VvAlertGroup/VvAlertGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './AlertGroup.settings'
|
|
4
|
+
import { Default as DefaultStory, type Story } from './AlertGroup.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAlertGroup> = {
|
|
7
7
|
title: 'Components/AlertGroup/Slots',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './AlertGroup.settings'
|
|
3
|
-
import { Default as DefaultStory, type Story } from './AlertGroup.stories'
|
|
4
2
|
import VvAlertGroup from '@/components/VvAlertGroup/VvAlertGroup.vue'
|
|
5
3
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
6
4
|
import { useAlert } from '@/composables/alert/useAlert'
|
|
5
|
+
import { argTypes, defaultArgs } from './AlertGroup.settings'
|
|
6
|
+
import { Default as DefaultStory, type Story } from './AlertGroup.stories'
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof VvAlertGroup> = {
|
|
9
9
|
title: 'Composables/useAlert',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from '../Avatar/Avatar.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Avatar.settings'
|
|
4
2
|
import VvAvatar from '@/components/VvAvatar/VvAvatar.vue'
|
|
3
|
+
import { defaultTest } from '../Avatar/Avatar.test'
|
|
4
|
+
import { argTypes, defaultArgs } from './Avatar.settings'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAvatar> = {
|
|
7
7
|
title: 'Components/Avatar',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
3
|
+
import { within } from '@storybook/test'
|
|
4
4
|
|
|
5
5
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
6
6
|
const element = await within(canvasElement).findByTestId('element')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Replace vue3 with vue if you are using Storybook for Vue 2
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { defaultArgs, argTypes } from './Avatar.settings'
|
|
4
3
|
import VvAvatar from '@/components/VvAvatar/VvAvatar.vue'
|
|
5
4
|
import VvBadge from '@/components/VvBadge/VvBadge.vue'
|
|
5
|
+
import { argTypes, defaultArgs } from './Avatar.settings'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvAvatar> = {
|
|
8
8
|
title: 'Components/Avatar/Badge',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from '../Avatar/Avatar.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Avatar.settings'
|
|
4
2
|
import VvAvatar from '@/components/VvAvatar/VvAvatar.vue'
|
|
3
|
+
import { defaultTest } from '../Avatar/Avatar.test'
|
|
4
|
+
import { argTypes, defaultArgs } from './Avatar.settings'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAvatar> = {
|
|
7
7
|
title: 'Components/Avatar/Modifiers',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from '../Avatar/Avatar.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Avatar.settings'
|
|
4
2
|
import VvAvatar from '@/components/VvAvatar/VvAvatar.vue'
|
|
3
|
+
import { defaultTest } from '../Avatar/Avatar.test'
|
|
4
|
+
import { argTypes, defaultArgs } from './Avatar.settings'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAvatar> = {
|
|
7
7
|
title: 'Components/Avatar/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './AvatarGroup.settings'
|
|
3
|
-
import { defaultTest } from './AvatarGroup.test'
|
|
4
2
|
import VvAvatarGroup from '@/components/VvAvatarGroup/VvAvatarGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './AvatarGroup.settings'
|
|
4
|
+
import { defaultTest } from './AvatarGroup.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAvatarGroup> = {
|
|
7
7
|
title: 'Components/AvatarGroup',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
3
|
+
import { within } from '@storybook/test'
|
|
4
4
|
|
|
5
5
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
6
6
|
const element = await within(canvasElement).findByTestId('element')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './AvatarGroup.settings'
|
|
3
|
-
import { Default } from './AvatarGroup.stories'
|
|
4
2
|
import VvAvatarGroup from '@/components/VvAvatarGroup/VvAvatarGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './AvatarGroup.settings'
|
|
4
|
+
import { Default } from './AvatarGroup.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvAvatarGroup> = {
|
|
7
7
|
title: 'Components/AvatarGroup/Modifiers',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './AvatarGroup.settings'
|
|
3
|
-
import { defaultTest } from './AvatarGroup.test'
|
|
4
|
-
import VvAvatarGroup from '@/components/VvAvatarGroup/VvAvatarGroup.vue'
|
|
5
2
|
import VvAvatar from '@/components/VvAvatar/VvAvatar.vue'
|
|
3
|
+
import VvAvatarGroup from '@/components/VvAvatarGroup/VvAvatarGroup.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './AvatarGroup.settings'
|
|
5
|
+
import { defaultTest } from './AvatarGroup.test'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvAvatarGroup> = {
|
|
8
8
|
title: 'Components/AvatarGroup/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Badge.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Badge.settings'
|
|
4
2
|
import VvBadge from '@/components/VvBadge/VvBadge.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Badge.settings'
|
|
4
|
+
import { defaultTest } from './Badge.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvBadge> = {
|
|
7
7
|
title: 'Components/Badge',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
3
|
+
import { within } from '@storybook/test'
|
|
4
4
|
|
|
5
5
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
6
6
|
const badge = await within(canvasElement).findByTestId('element')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Badge.settings'
|
|
3
|
-
import { Default as DefaultStory } from './Badge.stories'
|
|
4
2
|
import VvBadge from '@/components/VvBadge/VvBadge.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Badge.settings'
|
|
4
|
+
import { Default as DefaultStory } from './Badge.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvBadge> = {
|
|
7
7
|
title: 'Components/Badge/Slots',
|