@volverjs/ui-vue 0.0.10-beta.47 → 0.0.10-beta.49
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 +43 -43
- 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,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { ref } from 'vue'
|
|
3
2
|
import VvInputFile from '@/components/VvInputFile/VvInputFile.vue'
|
|
4
3
|
import { useBlurhash } from '@/composables/useBlurhash'
|
|
4
|
+
import { ref } from 'vue'
|
|
5
5
|
|
|
6
6
|
const meta: Meta = {
|
|
7
7
|
title: 'Composables/useBlurhash',
|
|
@@ -41,26 +41,29 @@ export const Default: StoryObj = {
|
|
|
41
41
|
file: {
|
|
42
42
|
immediate: true,
|
|
43
43
|
async handler(newValue) {
|
|
44
|
-
if (newValue?.size) {
|
|
45
|
-
this.imageUrl = URL.createObjectURL(newValue)
|
|
46
|
-
this.image = await this.loadImage(this.imageUrl)
|
|
47
|
-
this.blurhash = await this.encode(newValue)
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
44
|
+
if (!newValue?.size) {
|
|
50
45
|
this.image = null
|
|
51
46
|
this.imageUrl = ''
|
|
52
47
|
this.blurhash = ''
|
|
48
|
+
return
|
|
53
49
|
}
|
|
50
|
+
this.isLoading = true
|
|
51
|
+
this.imageUrl = URL.createObjectURL(newValue)
|
|
52
|
+
this.image = await this.loadImage(this.imageUrl)
|
|
53
|
+
this.blurhash = await this.encode(newValue)
|
|
54
|
+
this.isLoading = false
|
|
54
55
|
},
|
|
55
56
|
},
|
|
56
57
|
blurhash: {
|
|
57
58
|
async handler(newValue) {
|
|
58
59
|
if (this.image) {
|
|
60
|
+
this.isLoading = true
|
|
59
61
|
const blurhashDecoded = await this.decode(
|
|
60
62
|
newValue,
|
|
61
63
|
this.image.width,
|
|
62
64
|
this.image.height,
|
|
63
65
|
)
|
|
66
|
+
this.isLoading = false
|
|
64
67
|
|
|
65
68
|
if (this.canvas) {
|
|
66
69
|
this.canvas.width = this.image.width
|
|
@@ -78,119 +81,36 @@ export const Default: StoryObj = {
|
|
|
78
81
|
},
|
|
79
82
|
},
|
|
80
83
|
template: /* html */ `
|
|
81
|
-
<div class="w-full grid gap-md grid-cols-3
|
|
82
|
-
<div
|
|
83
|
-
<div class="text-
|
|
84
|
-
<vv-input-file v-model="file" name="input-file" modifiers="
|
|
84
|
+
<div class="w-full lg:w-10/12 xl:w-8/12 grid gap-md sm:grid-cols-3 mb-md">
|
|
85
|
+
<div>
|
|
86
|
+
<div class="text-lg font-bold mb-md">Upload</div>
|
|
87
|
+
<vv-input-file v-model="file" name="input-file" modifiers="square hidden" drop-area accept=".gif,.jpg,.jpeg,.png,image/gif,image/jpeg,image/png" />
|
|
88
|
+
</div>
|
|
89
|
+
<div v-if="image">
|
|
90
|
+
<div class="text-lg font-bold mb-md">Blurhash</div>
|
|
91
|
+
<div class="vv-skeleton bg-chessboard flex items-center relative aspect-square">
|
|
92
|
+
<div v-if="isLoading" class="vv-skeleton__item inset-0 absolute h-full"></div>
|
|
93
|
+
<canvas
|
|
94
|
+
v-show="blurhash"
|
|
95
|
+
ref="canvas"
|
|
96
|
+
class="w-full block object-cover"
|
|
97
|
+
:width="image.width"
|
|
98
|
+
:height="image.height" />
|
|
99
|
+
</div>
|
|
85
100
|
</div>
|
|
86
|
-
<div v-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
v-if="image"
|
|
98
|
-
class="w-150 h-150 block object-cover"
|
|
99
|
-
:class="{ 'vv-skeleton__item': isLoading }"
|
|
100
|
-
:src="imageUrl"
|
|
101
|
-
alt="image"
|
|
102
|
-
:width="image.width"
|
|
103
|
-
:height="image.height" />
|
|
104
|
-
</div>
|
|
105
|
-
</picture>
|
|
101
|
+
<div v-if="image">
|
|
102
|
+
<div class="text-lg font-bold mb-md">Original</div>
|
|
103
|
+
<div class="vv-skeleton bg-chessboard flex items-center relative aspect-square">
|
|
104
|
+
<div v-if="isLoading" class="vv-skeleton__item inset-0 absolute h-full"></div>
|
|
105
|
+
<img
|
|
106
|
+
class="w-full block h-auto"
|
|
107
|
+
:src="imageUrl"
|
|
108
|
+
alt="image"
|
|
109
|
+
:width="image.width"
|
|
110
|
+
:height="image.height" />
|
|
111
|
+
</div>
|
|
106
112
|
</div>
|
|
107
113
|
</div>
|
|
108
114
|
`,
|
|
109
115
|
}),
|
|
110
|
-
|
|
111
|
-
parameters: {
|
|
112
|
-
docs: {
|
|
113
|
-
source: {
|
|
114
|
-
type: 'code',
|
|
115
|
-
language: 'html',
|
|
116
|
-
code: /* html */ `
|
|
117
|
-
<div class="w-full grid gap-md grid-cols-3 h-150" :class="{ 'vv-skeleton': isLoading }">
|
|
118
|
-
<div class="w-150 h-150 col-span-1">
|
|
119
|
-
<div class="text-20 font-semibold mb-md">Upload image</div>
|
|
120
|
-
<vv-input-file v-model="file" name="input-file" modifiers="drop-area square hidden" accept=".gif,.jpg,.jpeg,.png,image/gif,image/jpeg,image/png" />
|
|
121
|
-
</div>
|
|
122
|
-
<div v-show="blurhash" class="h-150 col-span-2">
|
|
123
|
-
<picture class="flex gap-md justify-center">
|
|
124
|
-
<div>
|
|
125
|
-
<div class="text-20 font-semibold mb-md">Blurhash</div>
|
|
126
|
-
<canvas
|
|
127
|
-
ref="canvas"
|
|
128
|
-
class="w-150 h-150 block object-cover" />
|
|
129
|
-
</div>
|
|
130
|
-
<div>
|
|
131
|
-
<div class="text-20 font-semibold mb-md">Image</div>
|
|
132
|
-
<img
|
|
133
|
-
v-if="image"
|
|
134
|
-
class="w-150 h-150 block object-cover"
|
|
135
|
-
:class="{ 'vv-skeleton__item': isLoading }"
|
|
136
|
-
:src="imageUrl"
|
|
137
|
-
alt="image"
|
|
138
|
-
:width="image.width"
|
|
139
|
-
:height="image.height" />
|
|
140
|
-
</div>
|
|
141
|
-
</picture>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
|
|
145
|
-
<script setup lang='ts'>
|
|
146
|
-
import { useBlurhash } from '@volverjs/ui-vue/composables'
|
|
147
|
-
|
|
148
|
-
const { encode, decode, loadImage } = useBlurhash()
|
|
149
|
-
|
|
150
|
-
const isLoading = ref(false)
|
|
151
|
-
const file = ref({})
|
|
152
|
-
const canvas = ref()
|
|
153
|
-
const isImgLoaded = ref(false)
|
|
154
|
-
const blurhash = ref('')
|
|
155
|
-
const imageUrl = ref('')
|
|
156
|
-
const image = ref()
|
|
157
|
-
|
|
158
|
-
watch(file, async (newValue) => {
|
|
159
|
-
if (newValue?.size) {
|
|
160
|
-
this.imageUrl = URL.createObjectURL(newValue)
|
|
161
|
-
this.image = await this.loadImage(this.imageUrl)
|
|
162
|
-
this.blurhash = await this.encode(newValue)
|
|
163
|
-
} else {
|
|
164
|
-
this.image = null
|
|
165
|
-
this.imageUrl = ''
|
|
166
|
-
this.blurhash = ''
|
|
167
|
-
}
|
|
168
|
-
}, { immediate: true })
|
|
169
|
-
|
|
170
|
-
watch(blurhash, async (newValue) => {
|
|
171
|
-
if (this.image) {
|
|
172
|
-
const blurhashDecoded = await this.decode(
|
|
173
|
-
newValue,
|
|
174
|
-
this.image.width,
|
|
175
|
-
this.image.height,
|
|
176
|
-
)
|
|
177
|
-
|
|
178
|
-
if (this.canvas) {
|
|
179
|
-
this.canvas.width = this.image.width
|
|
180
|
-
this.canvas.height = this.image.height
|
|
181
|
-
const ctx = this.canvas.getContext('2d')
|
|
182
|
-
const imageData = ctx.createImageData(
|
|
183
|
-
this.canvas.width,
|
|
184
|
-
this.canvas.height,
|
|
185
|
-
)
|
|
186
|
-
imageData.data.set(blurhashDecoded)
|
|
187
|
-
ctx.putImageData(imageData, 0, 0)
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
})
|
|
191
|
-
</script>
|
|
192
|
-
`,
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
116
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Breadcrumb.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Breadcrumb.settings'
|
|
4
2
|
import VvBreadcrumb from '@/components/VvBreadcrumb/VvBreadcrumb.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Breadcrumb.settings'
|
|
4
|
+
import { defaultTest } from './Breadcrumb.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvBreadcrumb> = {
|
|
7
7
|
title: 'Components/Breadcrumb',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Breadcrumb.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Breadcrumb.settings'
|
|
4
2
|
import VvBreadcrumb from '@/components/VvBreadcrumb/VvBreadcrumb.vue'
|
|
5
3
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './Breadcrumb.settings'
|
|
5
|
+
import { defaultTest } from './Breadcrumb.test'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvBreadcrumb> = {
|
|
8
8
|
title: 'Components/Breadcrumb/Slots',
|
|
@@ -26,9 +26,9 @@ export const Label: Story = {
|
|
|
26
26
|
},
|
|
27
27
|
template: /* html */ `
|
|
28
28
|
<VvBreadcrumb v-bind="args">
|
|
29
|
-
<template #label="{
|
|
30
|
-
<VvIcon v-if="index === 0" name="home" :aria-label="
|
|
31
|
-
<template v-else>{{
|
|
29
|
+
<template #label="{index, label}">
|
|
30
|
+
<VvIcon v-if="index === 0" name="home" :aria-label="label" />
|
|
31
|
+
<template v-else>{{ label }}</template>
|
|
32
32
|
</template>
|
|
33
33
|
</VvBreadcrumb>
|
|
34
34
|
`,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { ArgTypes, Meta } from '@storybook/vue3'
|
|
2
1
|
import type { VvButton } from '@/components'
|
|
2
|
+
import type { ArgTypes, Meta } from '@storybook/vue3'
|
|
3
|
+
import normal from '@/assets/icons/normal.json'
|
|
3
4
|
import {
|
|
4
5
|
DefaultSlotArgTypes,
|
|
5
|
-
ModifiersArgTypes,
|
|
6
6
|
DisabledArgTypes,
|
|
7
7
|
LoadingArgTypes,
|
|
8
|
+
ModifiersArgTypes,
|
|
8
9
|
UnselectableArgTypes,
|
|
9
10
|
} from '@/stories/argTypes'
|
|
10
|
-
import normal from '@/assets/icons/normal.json'
|
|
11
11
|
|
|
12
12
|
export const defaultArgs: Meta<typeof VvButton>['args'] = {
|
|
13
13
|
label: 'Button',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Button.test'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
+
import { defaultTest } from './Button.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButton> = {
|
|
7
7
|
title: 'Components/Button',
|
|
@@ -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(
|
|
6
6
|
{ canvasElement, args }: PlayAttributes = {} as PlayAttributes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Button.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
+
import { Default } from './Button.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButton> = {
|
|
7
7
|
title: 'Components/Button/Icon',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Button.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
+
import { Default } from './Button.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButton> = {
|
|
7
7
|
title: 'Components/Button/Link',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Button.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
+
import { Default } from './Button.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButton> = {
|
|
7
7
|
title: 'Components/Button/Loading',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Button.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
+
import { Default } from './Button.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButton> = {
|
|
7
7
|
title: 'Components/Button/Modifiers',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default as DefaultStory } from './Button.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
-
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
5
2
|
import VvBadge from '@/components/VvBadge/VvBadge.vue'
|
|
3
|
+
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
5
|
+
import { Default as DefaultStory } from './Button.stories'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvButton> = {
|
|
8
8
|
title: 'Components/Button/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Button.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
+
import { Default } from './Button.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButton> = {
|
|
7
7
|
title: 'Components/Button/State',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Button.stories'
|
|
3
|
-
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Button.settings'
|
|
4
|
+
import { Default } from './Button.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButton> = {
|
|
7
7
|
title: 'Components/Button/Toggle',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ArgTypes } from '@storybook/vue3'
|
|
2
|
-
import {
|
|
2
|
+
import { VvButtonGroupProps } from '@/components/VvButtonGroup'
|
|
3
3
|
import {
|
|
4
4
|
DefaultSlotArgTypes,
|
|
5
5
|
ModifiersArgTypes,
|
|
6
6
|
UnselectableArgTypes,
|
|
7
7
|
} from '@/stories/argTypes'
|
|
8
|
-
import {
|
|
8
|
+
import { argTypes as buttonArgTypes } from '../Button/Button.settings'
|
|
9
9
|
|
|
10
10
|
export const defaultArgs = {
|
|
11
11
|
...propsToObject(VvButtonGroupProps),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './ButtonGroup.settings'
|
|
3
|
-
import { defaultTest } from './ButtonGroup.test'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
5
3
|
import VvButtonGroup from '@/components/VvButtonGroup/VvButtonGroup.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './ButtonGroup.settings'
|
|
5
|
+
import { defaultTest } from './ButtonGroup.test'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvButtonGroup> = {
|
|
8
8
|
title: 'Components/ButtonGroup',
|
|
@@ -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(
|
|
6
6
|
{ canvasElement, args }: PlayAttributes = {} as PlayAttributes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './ButtonGroup.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './ButtonGroup.settings'
|
|
4
2
|
import VvButtonGroup from '@/components/VvButtonGroup/VvButtonGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './ButtonGroup.settings'
|
|
4
|
+
import { Default } from './ButtonGroup.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButtonGroup> = {
|
|
7
7
|
title: 'Components/ButtonGroup/Modifiers',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './ButtonGroup.settings'
|
|
3
|
-
import { defaultTest } from './ButtonGroup.test'
|
|
4
2
|
import VvButton from '@/components/VvButton/VvButton.vue'
|
|
5
3
|
import VvButtonGroup from '@/components/VvButtonGroup/VvButtonGroup.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './ButtonGroup.settings'
|
|
5
|
+
import { defaultTest } from './ButtonGroup.test'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvButtonGroup> = {
|
|
8
8
|
title: 'Components/ButtonGroup/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './ButtonGroup.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './ButtonGroup.settings'
|
|
4
2
|
import VvButtonGroup from '@/components/VvButtonGroup/VvButtonGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './ButtonGroup.settings'
|
|
4
|
+
import { Default } from './ButtonGroup.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvButtonGroup> = {
|
|
7
7
|
title: 'Components/ButtonGroup/Toggle',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaulTest } from './Card.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Card.settings'
|
|
4
2
|
import VvCard from '@/components/VvCard/VvCard.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Card.settings'
|
|
4
|
+
import { defaulTest } from './Card.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCard> = {
|
|
7
7
|
title: 'Components/Card',
|
|
@@ -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 defaulTest({ canvasElement, args }: PlayAttributes) {
|
|
6
6
|
const element = await within(canvasElement).findByTestId('card')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaulTest } from './Card.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Card.settings'
|
|
4
2
|
import VvCard from '@/components/VvCard/VvCard.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Card.settings'
|
|
4
|
+
import { defaulTest } from './Card.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCard> = {
|
|
7
7
|
title: 'Components/Card/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Checkbox.settings'
|
|
3
|
-
import { defaultTest } from './Checkbox.test'
|
|
4
2
|
import VvCheckbox from '@/components/VvCheckbox/VvCheckbox.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Checkbox.settings'
|
|
4
|
+
import { defaultTest } from './Checkbox.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCheckbox> = {
|
|
7
7
|
title: 'Components/Checkbox',
|
|
@@ -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 './Checkbox.settings'
|
|
3
|
-
import { Default } from './Checkbox.stories'
|
|
4
2
|
import VvCheckbox from '@/components/VvCheckbox/VvCheckbox.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Checkbox.settings'
|
|
4
|
+
import { Default } from './Checkbox.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCheckbox> = {
|
|
7
7
|
title: 'Components/Checkbox/Binary',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Checkbox.settings'
|
|
3
|
-
import { Default as DefaultStory } from './Checkbox.stories'
|
|
4
2
|
import VvCheckbox from '@/components/VvCheckbox/VvCheckbox.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Checkbox.settings'
|
|
4
|
+
import { Default as DefaultStory } from './Checkbox.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCheckbox> = {
|
|
7
7
|
title: 'Components/Checkbox/Slots',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './CheckboxGroup.settings'
|
|
3
|
-
import { defaultTest } from './CheckboxGroup.test'
|
|
4
2
|
import VvCheckboxGroup from '@/components/VvCheckboxGroup/VvCheckboxGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './CheckboxGroup.settings'
|
|
4
|
+
import { defaultTest } from './CheckboxGroup.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCheckboxGroup> = {
|
|
7
7
|
title: 'Components/CheckboxGroup',
|
|
@@ -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 './CheckboxGroup.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './CheckboxGroup.settings'
|
|
4
2
|
import VvCheckboxGroup from '@/components/VvCheckboxGroup/VvCheckboxGroup.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './CheckboxGroup.settings'
|
|
4
|
+
import { Default } from './CheckboxGroup.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCheckboxGroup> = {
|
|
7
7
|
title: 'Components/CheckboxGroup/Options',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './CheckboxGroup.settings'
|
|
3
|
-
import { defaultTest } from './CheckboxGroup.test'
|
|
4
|
-
import VvCheckboxGroup from '@/components/VvCheckboxGroup/VvCheckboxGroup.vue'
|
|
5
2
|
import VvCheckbox from '@/components/VvCheckbox/VvCheckbox.vue'
|
|
3
|
+
import VvCheckboxGroup from '@/components/VvCheckboxGroup/VvCheckboxGroup.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './CheckboxGroup.settings'
|
|
5
|
+
import { defaultTest } from './CheckboxGroup.test'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof VvCheckboxGroup> = {
|
|
8
8
|
title: 'Components/CheckboxGroup/Slots',
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { ArgTypes, Meta } from '@storybook/vue3'
|
|
2
1
|
import type { VvCombobox } from '@/components'
|
|
2
|
+
import type { ArgTypes, Meta } from '@storybook/vue3'
|
|
3
|
+
import { VvComboboxProps } from '@/components/VvCombobox'
|
|
3
4
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
DisabledArgTypes,
|
|
6
|
+
DropdownArgTypes,
|
|
7
|
+
FloatingLabelArgTypes,
|
|
6
8
|
HintArgTypes,
|
|
9
|
+
IconArgTypes,
|
|
10
|
+
InvalidArgTypes,
|
|
7
11
|
LoadingArgTypes,
|
|
8
|
-
DisabledArgTypes,
|
|
9
|
-
ReadonlyArgTypes,
|
|
10
12
|
ModifiersArgTypes,
|
|
11
13
|
OptionsArgTypes,
|
|
12
|
-
|
|
14
|
+
ReadonlyArgTypes,
|
|
13
15
|
TabindexArgTypes,
|
|
14
|
-
FloatingLabelArgTypes,
|
|
15
16
|
UnselectableArgTypes,
|
|
16
|
-
|
|
17
|
+
ValidArgTypes,
|
|
17
18
|
} from '@/stories/argTypes'
|
|
18
|
-
import { VvComboboxProps } from '@/components/VvCombobox'
|
|
19
19
|
|
|
20
20
|
export const defaultArgs: Meta<typeof VvCombobox>['args'] = {
|
|
21
21
|
...propsToObject(VvComboboxProps),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultTest } from './Combobox.test'
|
|
3
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
4
2
|
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Combobox.settings'
|
|
4
|
+
import { defaultTest } from './Combobox.test'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCombobox> = {
|
|
7
7
|
title: 'Components/Combobox',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { within } from '@storybook/test'
|
|
2
1
|
import type { PlayAttributes } from '@/test/types'
|
|
2
|
+
import { defaultTest as selectDefaultTest } from '@/stories/Select/Select.test'
|
|
3
3
|
import { expect } from '@/test/expect'
|
|
4
4
|
import { sleep } from '@/test/sleep'
|
|
5
|
-
import {
|
|
5
|
+
import { within } from '@storybook/test'
|
|
6
6
|
|
|
7
7
|
export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
8
8
|
// native
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Combobox.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
4
2
|
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Combobox.settings'
|
|
4
|
+
import { Default } from './Combobox.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCombobox> = {
|
|
7
7
|
title: 'Components/Combobox/Icon',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
3
|
-
import { Default } from './Combobox.stories'
|
|
4
2
|
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Combobox.settings'
|
|
4
|
+
import { Default } from './Combobox.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCombobox> = {
|
|
7
7
|
title: 'Components/Combobox/Multiple',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import { Default } from './Combobox.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
4
2
|
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
+
import { argTypes, defaultArgs } from './Combobox.settings'
|
|
4
|
+
import { Default } from './Combobox.stories'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof VvCombobox> = {
|
|
7
7
|
title: 'Components/Combobox/Options',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
+
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
4
|
+
import { argTypes, defaultArgs } from './Combobox.settings'
|
|
2
5
|
import { Default } from './Combobox.stories'
|
|
3
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
4
6
|
import { defaultTest } from './Combobox.test'
|
|
5
|
-
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
6
|
-
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof VvCombobox> = {
|
|
9
9
|
title: 'Components/Combobox/Slots',
|