@volverjs/ui-vue 0.0.10-beta.46 → 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 +661 -656
- 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 +2761 -2758
- 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 +17 -11
- 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,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Dialog.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Dialog.settings'
|
|
4
2
|
import VvDialog from '@/components/VvDialog/VvDialog.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Dialog.settings'
|
|
4
|
+
import { defaultTest } from './Dialog.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvDialog> = {
|
|
7
7
|
title: 'Components/Dialog',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { userEvent, 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 { userEvent, within } from '@storybook/test'
|
|
5
5
|
|
|
6
6
|
export async function defaultTest(
|
|
7
7
|
{ canvasElement, args }: PlayAttributes = {} as PlayAttributes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Dialog.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Dialog.settings'
|
|
4
2
|
import VvDialog from '@/components/VvDialog/VvDialog.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Dialog.settings'
|
|
4
|
+
import { Default } from './Dialog.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvDialog> = {
|
|
7
7
|
title: 'Components/Dialog/Modifiers',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Dialog.settings'
|
|
3
|
-
import { Default as DefaultStory } from './Dialog.stories'
|
|
4
2
|
import VvDialog from '@/components/VvDialog/VvDialog.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Dialog.settings'
|
|
4
|
+
import { Default as DefaultStory } from './Dialog.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvDialog> = {
|
|
7
7
|
title: 'Components/Dialog/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ArgTypes } from '@storybook/vue3'
|
|
2
|
-
import { DropdownArgTypes } from '../argTypes'
|
|
3
2
|
import { VvDropdownProps } from '@/components/VvDropdown'
|
|
4
3
|
import { DropdownRole } from '@/constants'
|
|
4
|
+
import { DropdownArgTypes } from '../argTypes'
|
|
5
5
|
|
|
6
6
|
export const defaultArgs = {
|
|
7
7
|
...propsToObject(VvDropdownProps),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref } from 'vue'
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
3
|
-
import
|
|
4
|
-
import { defaultArgs, argTypes } from './Dropdown.settings'
|
|
2
|
+
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
5
3
|
import VvDropdown from '@/components/VvDropdown/VvDropdown.vue'
|
|
6
4
|
import VvDropdownAction from '@/components/VvDropdown/VvDropdownAction.vue'
|
|
7
5
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
8
|
-
import
|
|
6
|
+
import { ref } from 'vue'
|
|
7
|
+
import { argTypes, defaultArgs } from './Dropdown.settings'
|
|
8
|
+
import { defaultTest } from './Dropdown.test'
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof VvDropdown> = {
|
|
11
11
|
title: 'Components/Dropdown',
|
|
@@ -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 }: PlayAttributes) {
|
|
7
7
|
const wrapper = await within(canvasElement).findByTestId('wrapper')
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ref } from 'vue'
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { defaultArgs, argTypes } from './Dropdown.settings'
|
|
4
2
|
import VvDropdown from '@/components/VvDropdown/VvDropdown.vue'
|
|
5
3
|
import VvDropdownAction from '@/components/VvDropdown/VvDropdownAction.vue'
|
|
6
4
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
5
|
+
import { argTypes, defaultArgs } from './Dropdown.settings'
|
|
7
6
|
|
|
8
7
|
const meta: Meta<typeof VvDropdown> = {
|
|
9
8
|
title: 'Directives/Contextmenu',
|
|
@@ -24,14 +23,14 @@ export const Default: Story = {
|
|
|
24
23
|
render: args => ({
|
|
25
24
|
components: { VvDropdown, VvDropdownAction, VvIcon },
|
|
26
25
|
setup() {
|
|
27
|
-
const dropdownEl =
|
|
26
|
+
const dropdownEl = useTemplateRef<typeof VvDropdown>('dropdownEl')
|
|
28
27
|
return { args, dropdownEl }
|
|
29
28
|
},
|
|
30
29
|
template: /* html */ `
|
|
31
30
|
<div v-contextmenu="dropdownEl" class="w-full h-320 bg-surface-1 flex items-center justify-center">
|
|
32
31
|
<div class="text-word-2 text-18 uppercase w-150 text-center">Right click context menu</div>
|
|
33
32
|
</div>
|
|
34
|
-
<vv-dropdown v-bind="args" ref="dropdownEl">
|
|
33
|
+
<vv-dropdown v-bind="args" ref="dropdownEl" placement="right-start">
|
|
35
34
|
<template #items>
|
|
36
35
|
<vv-dropdown-action>
|
|
37
36
|
<vv-icon name="add" /> Create
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref } from 'vue'
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
3
|
-
import
|
|
4
|
-
import { defaultArgs, argTypes } from './Dropdown.settings'
|
|
2
|
+
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
5
3
|
import VvDropdown from '@/components/VvDropdown/VvDropdown.vue'
|
|
6
4
|
import VvDropdownAction from '@/components/VvDropdown/VvDropdownAction.vue'
|
|
7
5
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
8
|
-
import
|
|
6
|
+
import { ref } from 'vue'
|
|
7
|
+
import { argTypes, defaultArgs } from './Dropdown.settings'
|
|
8
|
+
import { defaultTest } from './Dropdown.test'
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof VvDropdown> = {
|
|
11
11
|
title: 'Components/Dropdown/Multilevel',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref } from 'vue'
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { defaultTest } from './Dropdown.test'
|
|
4
|
-
import { defaultArgs, argTypes } from './Dropdown.settings'
|
|
5
2
|
import VvDropdown from '@/components/VvDropdown/VvDropdown.vue'
|
|
6
|
-
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
7
3
|
import VvDropdownAction from '@/components/VvDropdown/VvDropdownAction.vue'
|
|
4
|
+
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
5
|
+
import { ref } from 'vue'
|
|
6
|
+
import { argTypes, defaultArgs } from './Dropdown.settings'
|
|
7
|
+
import { defaultTest } from './Dropdown.test'
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof VvDropdown> = {
|
|
10
10
|
title: 'Components/Dropdown/Slots',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ArgTypes } from '@storybook/vue3'
|
|
2
|
-
import { VvIconPropsDefaults } from '@/components/VvIcon'
|
|
3
2
|
import normal from '@/assets/icons/normal.json'
|
|
3
|
+
import { VvIconPropsDefaults } from '@/components/VvIcon'
|
|
4
4
|
import { ModifiersArgTypes } from '@/stories/argTypes'
|
|
5
5
|
|
|
6
6
|
export const defaultArgs = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Icon.settings'
|
|
3
|
-
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
4
2
|
import NormalIcons from '@/assets/icons/normal.json'
|
|
3
|
+
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './Icon.settings'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvIcon> = {
|
|
7
7
|
title: 'Components/Icon',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref, watch } from 'vue'
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { defaultArgs, argTypes } from './Icon.settings'
|
|
4
|
-
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
5
2
|
import { icons as NormalIcons } from '@/assets/icons/normal.json'
|
|
3
|
+
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
4
|
+
import { ref, watch } from 'vue'
|
|
5
|
+
import { argTypes, defaultArgs } from './Icon.settings'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvIcon> = {
|
|
8
8
|
title: 'Components/Icon/Collection',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ArgTypes } from '@storybook/vue3'
|
|
2
|
-
import { HintArgTypes, ModifiersArgTypes } from '@/stories/argTypes'
|
|
3
2
|
import { VvInputFileProps } from '@/components/VvInputFile'
|
|
3
|
+
import { HintArgTypes, ModifiersArgTypes } from '@/stories/argTypes'
|
|
4
4
|
|
|
5
5
|
export const defaultArgs = {
|
|
6
6
|
...propsToObject(VvInputFileProps),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './InputFile.settings'
|
|
3
2
|
import VvInputFile from '@/components/VvInputFile/VvInputFile.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputFile.settings'
|
|
4
4
|
|
|
5
5
|
const meta: Meta = {
|
|
6
6
|
title: 'Components/InputFile',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default as DefaultStory } from './InputFile.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './InputFile.settings'
|
|
4
2
|
import VvInputFile from '@/components/VvInputFile/VvInputFile.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputFile.settings'
|
|
4
|
+
import { Default as DefaultStory } from './InputFile.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputFile> = {
|
|
7
7
|
title: 'Components/InputFile/DropArea',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './InputFile.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './InputFile.settings'
|
|
4
2
|
import VvInputFile from '@/components/VvInputFile/VvInputFile.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputFile.settings'
|
|
4
|
+
import { Default } from './InputFile.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputFile> = {
|
|
7
7
|
title: 'Components/InputFile/Icon',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default as DefaultStory } from './InputFile.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './InputFile.settings'
|
|
4
2
|
import VvInputFile from '@/components/VvInputFile/VvInputFile.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputFile.settings'
|
|
4
|
+
import { Default as DefaultStory } from './InputFile.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputFile> = {
|
|
7
7
|
title: 'Components/InputFile/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ArgTypes } from '@storybook/vue3'
|
|
2
|
-
import { HintArgTypes, InputTextareaArgTypes } from '@/stories/argTypes'
|
|
3
|
-
import { VvInputTextProps } from '@/components/VvInputText'
|
|
4
2
|
import normal from '@/assets/icons/normal.json'
|
|
3
|
+
import { VvInputTextProps } from '@/components/VvInputText'
|
|
4
|
+
import { HintArgTypes, InputTextareaArgTypes } from '@/stories/argTypes'
|
|
5
5
|
|
|
6
6
|
export const defaultArgs = {
|
|
7
7
|
...propsToObject(VvInputTextProps),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './InputText.settings'
|
|
3
|
-
import { defaultTest } from './InputText.test'
|
|
4
2
|
import VvInputText from '@/components/VvInputText/VvInputText.vue'
|
|
5
3
|
import { Position } from '@/constants'
|
|
4
|
+
import { argTypes, defaultArgs } from './InputText.settings'
|
|
5
|
+
import { defaultTest } from './InputText.test'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvInputText> = {
|
|
8
8
|
title: 'Components/InputText',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { within, userEvent } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
2
|
+
import { INPUT_TYPES, type InputType } from '@/components/VvInputText'
|
|
3
3
|
import { expect } from '@/test/expect'
|
|
4
4
|
import { sleep } from '@/test/sleep'
|
|
5
|
-
import {
|
|
5
|
+
import { userEvent, within } from '@storybook/test'
|
|
6
6
|
|
|
7
7
|
function valueByType(type: InputType, mask?: string, id?: string) {
|
|
8
8
|
if (mask) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './InputText.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './InputText.settings'
|
|
4
2
|
import VvInputText from '@/components/VvInputText/VvInputText.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputText.settings'
|
|
4
|
+
import { Default } from './InputText.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputText> = {
|
|
7
7
|
title: 'Components/InputText/Icon',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './InputText.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './InputText.settings'
|
|
4
2
|
import VvInputText from '@/components/VvInputText/VvInputText.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputText.settings'
|
|
4
|
+
import { Default } from './InputText.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputText> = {
|
|
7
7
|
title: 'Components/InputText/Length',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './InputText.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './InputText.settings'
|
|
4
2
|
import VvInputText from '@/components/VvInputText/VvInputText.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputText.settings'
|
|
4
|
+
import { Default } from './InputText.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputText> = {
|
|
7
7
|
title: 'Components/InputText/Mask',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './InputText.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './InputText.settings'
|
|
4
2
|
import VvInputText from '@/components/VvInputText/VvInputText.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputText.settings'
|
|
4
|
+
import { Default } from './InputText.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputText> = {
|
|
7
7
|
title: 'Components/InputText/MinMax',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './InputText.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './InputText.settings'
|
|
4
2
|
import VvInputText from '@/components/VvInputText/VvInputText.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputText.settings'
|
|
4
|
+
import { Default } from './InputText.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputText> = {
|
|
7
7
|
title: 'Components/InputText/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './InputText.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './InputText.settings'
|
|
4
2
|
import VvInputText from '@/components/VvInputText/VvInputText.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './InputText.settings'
|
|
4
|
+
import { Default } from './InputText.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvInputText> = {
|
|
7
7
|
title: 'Components/InputText/Type',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Nav.settings'
|
|
3
|
-
import { defaultTest } from './Nav.test'
|
|
4
2
|
import VvNav from '@/components/VvNav/VvNav.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Nav.settings'
|
|
4
|
+
import { defaultTest } from './Nav.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvNav> = {
|
|
7
7
|
title: 'Components/Nav',
|
|
@@ -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 './Nav.settings'
|
|
3
|
-
import { Default } from './Nav.stories'
|
|
4
2
|
import VvNav from '@/components/VvNav/VvNav.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Nav.settings'
|
|
4
|
+
import { Default } from './Nav.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvNav> = {
|
|
7
7
|
title: 'Components/Nav/Modifiers',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Progress.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Progress.settings'
|
|
4
2
|
import VvProgress from '@/components/VvProgress/VvProgress.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Progress.settings'
|
|
4
|
+
import { defaultTest } from './Progress.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvProgress> = {
|
|
7
7
|
title: 'Components/Progress',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
|
-
import { expect } from '@/test/expect'
|
|
3
1
|
import type { PlayAttributes } from '@/test/types'
|
|
2
|
+
import { expect } from '@/test/expect'
|
|
3
|
+
import { within } from '@storybook/test'
|
|
4
4
|
|
|
5
5
|
export async function defaultTest({ canvasElement }: PlayAttributes) {
|
|
6
6
|
const progress = await within(canvasElement).findByRole('progressbar')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Radio.settings'
|
|
3
|
-
import { defaultTest } from './Radio.test'
|
|
4
2
|
import VvRadio from '@/components/VvRadio/VvRadio.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Radio.settings'
|
|
4
|
+
import { defaultTest } from './Radio.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvRadio> = {
|
|
7
7
|
title: 'Components/Radio',
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Radio.settings'
|
|
3
|
-
import { Default as DefaultStory } from './Radio.stories'
|
|
4
2
|
import VvRadio from '@/components/VvRadio/VvRadio.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Radio.settings'
|
|
4
|
+
import { Default as DefaultStory } from './Radio.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvRadio> = {
|
|
7
7
|
title: 'Components/Radio/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './RadioGroup.settings'
|
|
3
|
-
import { defaultTest } from './RadioGroup.test'
|
|
4
2
|
import VvRadioGroup from '@/components/VvRadioGroup/VvRadioGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './RadioGroup.settings'
|
|
4
|
+
import { defaultTest } from './RadioGroup.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvRadioGroup> = {
|
|
7
7
|
title: 'Components/RadioGroup',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
3
2
|
import { expect } from '@/test/expect'
|
|
4
|
-
import { sleep } from '@/test/sleep'
|
|
5
3
|
import { getOptionValue } from '@/test/options'
|
|
4
|
+
import { sleep } from '@/test/sleep'
|
|
5
|
+
import { within } from '@storybook/test'
|
|
6
6
|
|
|
7
7
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
8
8
|
const element = await within(canvasElement).findByTestId('element')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './RadioGroup.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './RadioGroup.settings'
|
|
4
2
|
import VvRadioGroup from '@/components/VvRadioGroup/VvRadioGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './RadioGroup.settings'
|
|
4
|
+
import { Default } from './RadioGroup.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvRadioGroup> = {
|
|
7
7
|
title: 'Components/RadioGroup/Options',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './RadioGroup.settings'
|
|
3
|
-
import { defaultTest } from './RadioGroup.test'
|
|
4
|
-
import VvRadioGroup from '@/components/VvRadioGroup/VvRadioGroup.vue'
|
|
5
2
|
import VvRadio from '@/components/VvRadio/VvRadio.vue'
|
|
3
|
+
import VvRadioGroup from '@/components/VvRadioGroup/VvRadioGroup.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './RadioGroup.settings'
|
|
5
|
+
import { defaultTest } from './RadioGroup.test'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvRadioGroup> = {
|
|
8
8
|
title: 'Components/RadioGroup/Slots',
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { ArgTypes } from '@storybook/vue3'
|
|
2
|
+
import { VvSelectProps } from '@/components/VvSelect'
|
|
2
3
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
AutocompleteArgTypes,
|
|
5
|
+
AutofocusArgTypes,
|
|
6
|
+
DisabledArgTypes,
|
|
7
|
+
FloatingLabelArgTypes,
|
|
5
8
|
HintArgTypes,
|
|
9
|
+
IconArgTypes,
|
|
10
|
+
IdNameArgTypes,
|
|
11
|
+
InvalidArgTypes,
|
|
6
12
|
LoadingArgTypes,
|
|
7
|
-
DisabledArgTypes,
|
|
8
|
-
ReadonlyArgTypes,
|
|
9
13
|
ModifiersArgTypes,
|
|
10
14
|
OptionsArgTypes,
|
|
11
|
-
|
|
15
|
+
ReadonlyArgTypes,
|
|
12
16
|
TabindexArgTypes,
|
|
13
|
-
IdNameArgTypes,
|
|
14
|
-
FloatingLabelArgTypes,
|
|
15
17
|
UnselectableArgTypes,
|
|
16
|
-
|
|
17
|
-
AutocompleteArgTypes,
|
|
18
|
+
ValidArgTypes,
|
|
18
19
|
} from '@/stories/argTypes'
|
|
19
|
-
import { VvSelectProps } from '@/components/VvSelect'
|
|
20
20
|
|
|
21
21
|
export const defaultArgs = {
|
|
22
22
|
...propsToObject(VvSelectProps),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Select.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Select.settings'
|
|
4
2
|
import VvSelect from '@/components/VvSelect/VvSelect.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Select.settings'
|
|
4
|
+
import { defaultTest } from './Select.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvSelect> = {
|
|
7
7
|
title: 'Components/Select',
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Select.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './Select.settings'
|
|
4
2
|
import VvSelect from '@/components/VvSelect/VvSelect.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Select.settings'
|
|
4
|
+
import { Default } from './Select.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvSelect> = {
|
|
7
7
|
title: 'Components/Select/Icon',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Select.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './Select.settings'
|
|
4
2
|
import VvSelect from '@/components/VvSelect/VvSelect.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Select.settings'
|
|
4
|
+
import { Default } from './Select.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvSelect> = {
|
|
7
7
|
title: 'Components/Select/Options',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Select.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './Select.settings'
|
|
4
2
|
import VvSelect from '@/components/VvSelect/VvSelect.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Select.settings'
|
|
4
|
+
import { Default } from './Select.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvSelect> = {
|
|
7
7
|
title: 'Components/Select/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
import VvTab from '@/components/VvTab/VvTab.vue'
|
|
2
3
|
import { defaultArgs, defaultArgTypes } from './Tab.settings'
|
|
3
4
|
import { defaultTest } from './Tab.test'
|
|
4
|
-
import VvTab from '@/components/VvTab/VvTab.vue'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvTab> = {
|
|
7
7
|
title: 'Components/Tab',
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import type { ArgTypes } from '@storybook/vue3'
|
|
2
|
-
import { HintArgTypes, InputTextareaArgTypes } from '@/stories/argTypes'
|
|
3
2
|
import { VvTextareaProps } from '@/components/VvTextarea'
|
|
3
|
+
import { HintArgTypes, InputTextareaArgTypes } from '@/stories/argTypes'
|
|
4
4
|
|
|
5
5
|
export const defaultArgs = {
|
|
6
6
|
...propsToObject(VvTextareaProps),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Textarea.settings'
|
|
3
|
-
import { defaultTest } from './Textarea.test'
|
|
4
2
|
import VvTextarea from '@/components/VvTextarea/VvTextarea.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Textarea.settings'
|
|
4
|
+
import { defaultTest } from './Textarea.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvTextarea> = {
|
|
7
7
|
title: 'Components/Textarea',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { within, userEvent } 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 { userEvent, within } from '@storybook/test'
|
|
5
5
|
|
|
6
6
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
7
7
|
const element = await within(canvasElement).findByTestId('element')
|