@volverjs/ui-vue 0.0.6-beta.7 → 0.0.7-beta.1
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 +3 -5
- package/auto-imports.d.ts +2 -0
- package/dist/components/VvAccordion/VvAccordion.es.js +220 -4
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +8 -8
- package/dist/components/VvAccordion/index.d.ts +1 -4
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +221 -8
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +6 -6
- package/dist/components/VvAccordionGroup/index.d.ts +2 -5
- package/dist/components/VvAction/VvAction.es.js +12 -8
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +4 -4
- package/dist/components/VvAction/index.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +661 -0
- package/dist/components/VvAlert/VvAlert.umd.js +1 -0
- package/dist/components/VvAlert/VvAlert.vue.d.ts +104 -0
- package/dist/components/VvAlert/index.d.ts +95 -0
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +799 -0
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -0
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +89 -0
- package/dist/components/VvAlertGroup/index.d.ts +55 -0
- package/dist/components/VvAvatar/VvAvatar.es.js +3 -3
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +2 -2
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +3 -3
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +2 -2
- package/dist/components/VvBadge/VvBadge.es.js +3 -3
- package/dist/components/VvBadge/VvBadge.vue.d.ts +2 -2
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +3 -3
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +3 -3
- package/dist/components/VvButton/VvButton.es.js +14 -10
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +13 -13
- package/dist/components/VvButton/index.d.ts +2 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +3 -3
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +4 -4
- package/dist/components/VvCard/VvCard.es.js +221 -2
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +5 -5
- package/dist/components/VvCheckbox/VvCheckbox.es.js +3 -3
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +18 -18
- package/dist/components/VvCheckbox/index.d.ts +3 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +3 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +16 -16
- package/dist/components/VvCheckboxGroup/index.d.ts +3 -3
- package/dist/components/VvCombobox/VvCombobox.es.js +65 -60
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +56 -44
- package/dist/components/VvCombobox/index.d.ts +13 -7
- package/dist/components/VvDialog/VvDialog.es.js +19 -14
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +7 -7
- package/dist/components/VvDialog/index.d.ts +2 -2
- package/dist/components/VvDropdown/VvDropdown.es.js +22 -23
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +16 -16
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +4 -4
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +2 -2
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +4 -4
- package/dist/components/VvDropdown/index.d.ts +1 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +17 -11
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +9 -5
- package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +3 -3
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +12 -8
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +1 -1
- package/dist/components/VvInputText/VvInputClearAction.d.ts +2 -2
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +5 -5
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +30 -30
- package/dist/components/VvInputText/index.d.ts +5 -5
- package/dist/components/VvNav/VvNav.es.js +12 -8
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
- package/dist/components/VvNavItemTitle/VvNavItemTitle.vue.d.ts +1 -1
- package/dist/components/VvNavSeparator/VvNavSeparator.d.ts +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +3 -3
- package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +3 -3
- package/dist/components/VvRadio/VvRadio.vue.d.ts +18 -18
- package/dist/components/VvRadio/index.d.ts +3 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +3 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +16 -16
- package/dist/components/VvRadioGroup/index.d.ts +3 -3
- package/dist/components/VvSelect/VvSelect.es.js +3 -3
- package/dist/components/VvSelect/VvSelect.vue.d.ts +26 -26
- package/dist/components/VvSelect/index.d.ts +4 -4
- package/dist/components/VvTab/VvTab.es.js +12 -8
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +3 -3
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +24 -24
- package/dist/components/VvTextarea/index.d.ts +3 -3
- package/dist/components/VvTooltip/VvTooltip.es.js +3 -3
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +2 -2
- package/dist/components/common/HintSlot.d.ts +1 -1
- package/dist/components/index.es.js +773 -769
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useInjectAlert.d.ts +9 -0
- package/dist/composables/alert/useProvideAlert.d.ts +10 -0
- package/dist/composables/dropdown/useInjectDropdown.d.ts +17 -16
- package/dist/composables/dropdown/useProvideDropdown.d.ts +7 -3
- package/dist/composables/useVolver.d.ts +1 -2
- package/dist/constants.d.ts +33 -4
- package/dist/directives/index.es.js +3 -3
- package/dist/directives/v-tooltip.es.js +3 -3
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +16 -16
- package/dist/resolvers/unplugin.es.js +6 -3
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/Accordion/Accordion.settings.d.ts +18 -17
- package/dist/stories/Accordion/Accordion.stories.d.ts +7 -0
- package/dist/stories/Accordion/AccordionSlots.stories.d.ts +7 -0
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +23 -4
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +134 -0
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +894 -0
- package/dist/stories/Alert/Alert.settings.d.ts +105 -0
- package/dist/stories/Alert/Alert.stories.d.ts +9 -0
- package/dist/stories/Alert/Alert.test.d.ts +2 -0
- package/dist/stories/Alert/AlertModifiers.stories.d.ts +13 -0
- package/dist/stories/Alert/AlertSlots.stories.d.ts +10 -0
- package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +97 -0
- package/dist/stories/AlertGroup/AlertGroup.stories.d.ts +8 -0
- package/dist/stories/AlertGroup/AlertGroup.test.d.ts +2 -0
- package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +14 -0
- package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +8 -0
- package/dist/stories/Avatar/Avatar.settings.d.ts +2 -33
- package/dist/stories/Avatar/Avatar.stories.d.ts +7 -0
- package/dist/stories/Avatar/AvatarBadge.stories.d.ts +6 -0
- package/dist/stories/Avatar/AvatarModifiers.stories.d.ts +13 -0
- package/dist/stories/Avatar/AvatarSlots.stories.d.ts +6 -0
- package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +0 -6
- package/dist/stories/AvatarGroup/AvatarGroup.stories.d.ts +6 -0
- package/dist/stories/AvatarGroup/AvatarGroupModifiers.stories.d.ts +7 -0
- package/dist/stories/AvatarGroup/AvatarGroupSlotDefault.stories.d.ts +6 -0
- package/dist/stories/Badge/Badge.settings.d.ts +0 -3
- package/dist/stories/Badge/Badge.stories.d.ts +7 -0
- package/dist/stories/Badge/BadgeSlots.stories.d.ts +6 -0
- package/dist/stories/Breadcrumb/Breadcrumb.stories.d.ts +7 -0
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +1 -1
- package/dist/stories/Breadcrumb/BreadcrumbSlots.stories.d.ts +6 -0
- package/dist/stories/Button/Button.settings.d.ts +1 -18
- package/dist/stories/Button/Button.stories.d.ts +6 -0
- package/dist/stories/Button/ButtonIcon.stories.d.ts +10 -0
- package/dist/stories/Button/ButtonLink.stories.d.ts +7 -0
- package/dist/stories/Button/ButtonLoading.stories.d.ts +8 -0
- package/dist/stories/Button/ButtonModifiers.stories.d.ts +17 -0
- package/dist/stories/Button/ButtonSlots.stories.d.ts +9 -0
- package/dist/stories/Button/ButtonState.stories.d.ts +8 -0
- package/dist/stories/Button/ButtonToggle.stories.d.ts +9 -0
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +0 -4
- package/dist/stories/ButtonGroup/ButtonGroup.stories.d.ts +6 -0
- package/dist/stories/ButtonGroup/ButtonGroupModifiers.stories.d.ts +8 -0
- package/dist/stories/ButtonGroup/ButtonGroupSlots.stories.d.ts +6 -0
- package/dist/stories/ButtonGroup/ButtonGroupToggle.stories.d.ts +8 -0
- package/dist/stories/Card/Card.settings.d.ts +0 -3
- package/dist/stories/Card/Card.stories.d.ts +6 -0
- package/dist/stories/Card/CardSlots.stories.d.ts +9 -0
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +1 -21
- package/dist/stories/Checkbox/Checkbox.stories.d.ts +13 -0
- package/dist/stories/Checkbox/CheckboxBinary.stories.d.ts +7 -0
- package/dist/stories/Checkbox/CheckboxSlots.stories.d.ts +7 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -27
- package/dist/stories/CheckboxGroup/CheckboxGroup.stories.d.ts +12 -0
- package/dist/stories/CheckboxGroup/CheckboxGroupOptions.stories.d.ts +8 -0
- package/dist/stories/CheckboxGroup/CheckboxGroupSlots.stories.d.ts +7 -0
- package/dist/stories/Combobox/Combobox.settings.d.ts +2 -54
- package/dist/stories/Combobox/Combobox.stories.d.ts +21 -0
- package/dist/stories/Combobox/ComboboxIconPosition.stories.d.ts +8 -0
- package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +8 -0
- package/dist/stories/Combobox/ComboboxOptions.stories.d.ts +9 -0
- package/dist/stories/Combobox/ComboboxSlots.stories.d.ts +10 -0
- package/dist/stories/Dialog/Dialog.settings.d.ts +1 -1
- package/dist/stories/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/stories/Dialog/DialogSlots.stories.d.ts +8 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +1 -1
- package/dist/stories/Dropdown/Dropdown.stories.d.ts +9 -0
- package/dist/stories/Dropdown/DropdownContextmenuDirective.stories.d.ts +6 -0
- package/dist/stories/Dropdown/DropdownMultilevel.stories.d.ts +6 -0
- package/dist/stories/Dropdown/DropdownSlots.stories.d.ts +8 -0
- package/dist/stories/Icon/Icon.settings.d.ts +1 -3
- package/dist/stories/Icon/Icon.stories.d.ts +8 -0
- package/dist/stories/Icon/IconsCollection.stories.d.ts +6 -0
- package/dist/stories/InputText/InputText.settings.d.ts +1 -74
- package/dist/stories/InputText/InputText.stories.d.ts +15 -0
- package/dist/stories/InputText/InputTextIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputText/InputTextLength.stories.d.ts +10 -0
- package/dist/stories/InputText/InputTextMinMax.stories.d.ts +9 -0
- package/dist/stories/InputText/InputTextSlots.stories.d.ts +8 -0
- package/dist/stories/InputText/InputTextType.stories.d.ts +18 -0
- package/dist/stories/Nav/Nav.settings.d.ts +0 -3
- package/dist/stories/Nav/Nav.stories.d.ts +6 -0
- package/dist/stories/Nav/NavModifiers.stories.d.ts +9 -0
- package/dist/stories/Progress/Progress.settings.d.ts +0 -6
- package/dist/stories/Progress/Progress.stories.d.ts +7 -0
- package/dist/stories/Radio/Radio.settings.d.ts +1 -19
- package/dist/stories/Radio/Radio.stories.d.ts +11 -0
- package/dist/stories/Radio/RadioSlots.stories.d.ts +7 -0
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -27
- package/dist/stories/RadioGroup/RadioGroup.stories.d.ts +12 -0
- package/dist/stories/RadioGroup/RadioGroupOptions.stories.d.ts +8 -0
- package/dist/stories/RadioGroup/RadioGroupSlots.stories.d.ts +7 -0
- package/dist/stories/Select/Select.settings.d.ts +1 -47
- package/dist/stories/Select/Select.stories.d.ts +15 -0
- package/dist/stories/Select/SelectIconPosition.stories.d.ts +8 -0
- package/dist/stories/Select/SelectOptions.stories.d.ts +9 -0
- package/dist/stories/Select/SelectSlots.stories.d.ts +8 -0
- package/dist/stories/Tab/Tab.stories.d.ts +6 -0
- package/dist/stories/Textarea/Textarea.settings.d.ts +1 -43
- package/dist/stories/Textarea/Textarea.stories.d.ts +14 -0
- package/dist/stories/Textarea/TextareaLength.stories.d.ts +10 -0
- package/dist/stories/Textarea/TextareaSlots.stories.d.ts +8 -0
- package/dist/stories/Textarea/TextareatIconPosition.stories.d.ts +8 -0
- package/dist/stories/Tooltip/Tooltip.settings.d.ts +2 -39
- package/dist/stories/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/stories/Tooltip/TooltipDirective.stories.d.ts +10 -0
- package/dist/stories/argTypes.d.ts +5 -125
- package/package.json +66 -49
- 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/index.ts +2 -4
- package/src/components/VvAccordionGroup/index.ts +3 -4
- package/src/components/VvAction/VvAction.vue +1 -1
- package/src/components/VvAlert/VvAlert.vue +54 -0
- package/src/components/VvAlert/index.ts +162 -0
- package/src/components/VvAlertGroup/VvAlertGroup.vue +34 -0
- package/src/components/VvAlertGroup/index.ts +122 -0
- package/src/components/VvCard/index.ts +3 -1
- package/src/components/VvCombobox/VvCombobox.vue +22 -26
- package/src/components/VvCombobox/index.ts +9 -3
- package/src/components/VvDialog/VvDialog.vue +11 -7
- package/src/components/VvDialog/index.ts +2 -2
- package/src/components/VvDropdown/VvDropdown.vue +8 -4
- package/src/components/VvDropdown/VvDropdownItem.vue +2 -2
- package/src/composables/alert/useInjectAlert.ts +8 -0
- package/src/composables/alert/useProvideAlert.ts +23 -0
- package/src/composables/dropdown/useInjectDropdown.ts +3 -28
- package/src/composables/dropdown/useProvideDropdown.ts +14 -15
- package/src/composables/useVolver.ts +1 -2
- package/src/constants.ts +42 -4
- package/src/props/index.ts +3 -3
- package/src/resolvers/unplugin.ts +6 -3
- package/src/stories/Accordion/Accordion.settings.ts +18 -7
- package/src/stories/Accordion/Accordion.stories.ts +45 -0
- package/src/stories/Accordion/AccordionSlots.stories.ts +29 -0
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +22 -0
- package/src/stories/AccordionGroup/AccordionGroup.stories.ts +62 -0
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +53 -0
- package/src/stories/Alert/Alert.settings.ts +110 -0
- package/src/stories/Alert/Alert.stories.ts +60 -0
- package/src/stories/Alert/Alert.test.ts +95 -0
- package/src/stories/Alert/AlertModifiers.stories.ts +77 -0
- package/src/stories/Alert/AlertSlots.stories.ts +74 -0
- package/src/stories/AlertGroup/AlertGroup.settings.ts +110 -0
- package/src/stories/AlertGroup/AlertGroup.stories.ts +50 -0
- package/src/stories/AlertGroup/AlertGroup.test.ts +76 -0
- package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +103 -0
- package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +67 -0
- package/src/stories/Avatar/Avatar.settings.ts +7 -6
- package/src/stories/Avatar/Avatar.stories.ts +42 -0
- package/src/stories/Avatar/Avatar.test.ts +1 -1
- package/src/stories/Avatar/AvatarBadge.stories.ts +36 -0
- package/src/stories/Avatar/AvatarModifiers.stories.ts +100 -0
- package/src/stories/Avatar/AvatarSlots.stories.ts +34 -0
- package/src/stories/AvatarGroup/AvatarGroup.stories.ts +35 -0
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +31 -0
- package/src/stories/AvatarGroup/{AvatarGroupSlotDefault.stories.mdx → AvatarGroupSlotDefault.stories.ts} +24 -30
- package/src/stories/Badge/Badge.stories.ts +43 -0
- package/src/stories/Badge/BadgeSlots.stories.ts +23 -0
- package/src/stories/Breadcrumb/Breadcrumb.stories.ts +41 -0
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +1 -1
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +37 -0
- package/src/stories/Button/Button.settings.ts +2 -11
- package/src/stories/Button/Button.stories.ts +38 -0
- package/src/stories/Button/ButtonIcon.stories.ts +67 -0
- package/src/stories/Button/ButtonLink.stories.ts +40 -0
- package/src/stories/Button/ButtonLoading.stories.ts +41 -0
- package/src/stories/Button/ButtonModifiers.stories.ts +158 -0
- package/src/stories/Button/ButtonSlots.stories.ts +87 -0
- package/src/stories/Button/ButtonState.stories.ts +42 -0
- package/src/stories/Button/ButtonToggle.stories.ts +52 -0
- package/src/stories/ButtonGroup/ButtonGroup.stories.ts +39 -0
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +39 -0
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +38 -0
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +41 -0
- package/src/stories/Card/Card.stories.ts +46 -0
- package/src/stories/Card/CardSlots.stories.ts +81 -0
- package/src/stories/Checkbox/Checkbox.settings.ts +0 -2
- package/src/stories/Checkbox/Checkbox.stories.ts +97 -0
- package/src/stories/Checkbox/CheckboxBinary.stories.ts +33 -0
- package/src/stories/Checkbox/CheckboxSlots.stories.ts +31 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +87 -0
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +53 -0
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +47 -0
- package/src/stories/Combobox/Combobox.settings.ts +3 -23
- package/src/stories/Combobox/Combobox.stories.ts +176 -0
- package/src/stories/Combobox/Combobox.test.ts +2 -2
- package/src/stories/Combobox/ComboboxIconPosition.stories.ts +43 -0
- package/src/stories/Combobox/ComboboxMultiple.stories.ts +41 -0
- package/src/stories/Combobox/ComboboxOptions.stories.ts +78 -0
- package/src/stories/Combobox/ComboboxSlots.stories.ts +104 -0
- package/src/stories/Dialog/Dialog.settings.ts +1 -1
- package/src/stories/Dialog/Dialog.stories.ts +51 -0
- package/src/stories/Dialog/Dialog.test.ts +2 -2
- package/src/stories/Dialog/DialogSlots.stories.ts +39 -0
- package/src/stories/Dropdown/Dropdown.stories.ts +107 -0
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +49 -0
- package/src/stories/Dropdown/DropdownMultilevel.stories.ts +61 -0
- package/src/stories/Dropdown/DropdownSlots.stories.ts +95 -0
- package/src/stories/Icon/Icon.settings.ts +1 -0
- package/src/stories/Icon/Icon.stories.ts +48 -0
- package/src/stories/Icon/IconsCollection.stories.ts +53 -0
- package/src/stories/InputText/InputText.settings.ts +3 -39
- package/src/stories/InputText/InputText.stories.ts +121 -0
- package/src/stories/InputText/InputTextIconPosition.stories.ts +43 -0
- package/src/stories/InputText/InputTextLength.stories.ts +58 -0
- package/src/stories/InputText/InputTextMinMax.stories.ts +51 -0
- package/src/stories/InputText/InputTextSlots.stories.ts +39 -0
- package/src/stories/InputText/InputTextType.stories.ts +119 -0
- package/src/stories/Nav/Nav.stories.ts +33 -0
- package/src/stories/Nav/NavModifiers.stories.ts +47 -0
- package/src/stories/Progress/Progress.settings.ts +0 -3
- package/src/stories/Progress/Progress.stories.ts +41 -0
- package/src/stories/Radio/Radio.stories.ts +81 -0
- package/src/stories/Radio/RadioSlots.stories.ts +31 -0
- package/src/stories/RadioGroup/RadioGroup.stories.ts +88 -0
- package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +53 -0
- package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +47 -0
- package/src/stories/Select/Select.settings.ts +0 -5
- package/src/stories/Select/Select.stories.ts +113 -0
- package/src/stories/Select/SelectIconPosition.stories.ts +43 -0
- package/src/stories/Select/SelectOptions.stories.ts +77 -0
- package/src/stories/Select/SelectSlots.stories.ts +39 -0
- package/src/stories/Tab/Tab.stories.ts +70 -0
- package/src/stories/Textarea/Textarea.settings.ts +0 -8
- package/src/stories/Textarea/Textarea.stories.ts +107 -0
- package/src/stories/Textarea/TextareaLength.stories.ts +58 -0
- package/src/stories/Textarea/TextareaSlots.stories.ts +39 -0
- package/src/stories/Textarea/TextareatIconPosition.stories.ts +43 -0
- package/src/stories/Tooltip/Tooltip.settings.ts +4 -4
- package/src/stories/Tooltip/Tooltip.stories.ts +40 -0
- package/src/stories/Tooltip/TooltipDirective.stories.ts +68 -0
- package/src/stories/argTypes.ts +5 -59
- package/src/stories/Accordion/Accordion.stories.mdx +0 -45
- package/src/stories/Accordion/AccordionSlots.stories.mdx +0 -58
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +0 -58
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +0 -59
- package/src/stories/Avatar/Avatar.stories.mdx +0 -40
- package/src/stories/Avatar/AvatarBadge.stories.mdx +0 -41
- package/src/stories/Avatar/AvatarModifiers.stories.mdx +0 -87
- package/src/stories/Avatar/AvatarSlotDefault.stories.mdx +0 -29
- package/src/stories/AvatarGroup/AvatarGroup.stories.mdx +0 -30
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.mdx +0 -24
- package/src/stories/Badge/Badge.stories.mdx +0 -51
- package/src/stories/Badge/BadgeSlots.stories.mdx +0 -20
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +0 -50
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +0 -43
- package/src/stories/Button/Button.stories.mdx +0 -35
- package/src/stories/Button/ButtonIcon.stories.mdx +0 -153
- package/src/stories/Button/ButtonLink.stories.mdx +0 -72
- package/src/stories/Button/ButtonLoading.stories.mdx +0 -108
- package/src/stories/Button/ButtonModifiers.stories.mdx +0 -257
- package/src/stories/Button/ButtonSlots.stories.mdx +0 -116
- package/src/stories/Button/ButtonState.stories.mdx +0 -66
- package/src/stories/Button/ButtonToggle.stories.mdx +0 -112
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +0 -37
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.mdx +0 -52
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +0 -37
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +0 -73
- package/src/stories/Card/Card.stories.mdx +0 -40
- package/src/stories/Card/CardSlots.stories.mdx +0 -98
- package/src/stories/Checkbox/Checkbox.stories.mdx +0 -164
- package/src/stories/Checkbox/CheckboxBinary.stories.mdx +0 -68
- package/src/stories/Checkbox/CheckboxSlots.stories.mdx +0 -46
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +0 -135
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.mdx +0 -100
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +0 -68
- package/src/stories/Combobox/Combobox.stories.mdx +0 -324
- package/src/stories/Combobox/ComboboxIconPosition.stories.mdx +0 -78
- package/src/stories/Combobox/ComboboxMultiple.stories.mdx +0 -73
- package/src/stories/Combobox/ComboboxOptions.stories.mdx +0 -135
- package/src/stories/Combobox/ComboboxSlots.stories.mdx +0 -153
- package/src/stories/Dialog/Dialog.stories.mdx +0 -56
- package/src/stories/Dialog/DialogSlots.stories.mdx +0 -63
- package/src/stories/Dropdown/Dropdown.stories.mdx +0 -124
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.mdx +0 -41
- package/src/stories/Dropdown/DropdownMultilevel.stories.mdx +0 -56
- package/src/stories/Dropdown/DropdownSlots.stories.mdx +0 -114
- package/src/stories/Icon/Icon.stories.mdx +0 -91
- package/src/stories/Icon/IconsCollection.stories.mdx +0 -69
- package/src/stories/InputText/InputText.stories.mdx +0 -211
- package/src/stories/InputText/InputTextIconPosition.stories.mdx +0 -78
- package/src/stories/InputText/InputTextLength.stories.mdx +0 -110
- package/src/stories/InputText/InputTextMinMax.stories.mdx +0 -112
- package/src/stories/InputText/InputTextSlots.stories.mdx +0 -69
- package/src/stories/InputText/InputTextType.stories.mdx +0 -259
- package/src/stories/Nav/Nav.stories.mdx +0 -28
- package/src/stories/Nav/NavModifiers.stories.mdx +0 -48
- package/src/stories/Progress/Progress.stories.mdx +0 -30
- package/src/stories/Radio/Radio.stories.mdx +0 -128
- package/src/stories/Radio/RadioSlots.stories.mdx +0 -46
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +0 -135
- package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +0 -100
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +0 -68
- package/src/stories/Select/Select.stories.mdx +0 -196
- package/src/stories/Select/SelectIconPosition.stories.mdx +0 -78
- package/src/stories/Select/SelectOptions.stories.mdx +0 -135
- package/src/stories/Select/SelectSlots.stories.mdx +0 -48
- package/src/stories/Tab/Tab.stories.mdx +0 -65
- package/src/stories/Textarea/Textarea.stories.mdx +0 -187
- package/src/stories/Textarea/TextareaLength.stories.mdx +0 -110
- package/src/stories/Textarea/TextareaSlots.stories.mdx +0 -69
- package/src/stories/Textarea/TextareatIconPosition.stories.mdx +0 -78
- package/src/stories/Tooltip/Tooltip.stories.mdx +0 -102
- package/src/stories/Tooltip/TooltipDirective.stories.mdx +0 -99
|
@@ -5,8 +5,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
5
5
|
default: "text";
|
|
6
6
|
validator: (value: import("../VvInputText").InputType) => boolean;
|
|
7
7
|
};
|
|
8
|
-
min: (StringConstructor |
|
|
9
|
-
max: (StringConstructor |
|
|
8
|
+
min: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
9
|
+
max: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
10
10
|
step: {
|
|
11
11
|
type: (StringConstructor | NumberConstructor)[];
|
|
12
12
|
default: number;
|
|
@@ -83,7 +83,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
83
83
|
label: (StringConstructor | NumberConstructor)[];
|
|
84
84
|
floating: BooleanConstructor;
|
|
85
85
|
icon: {
|
|
86
|
-
type: (
|
|
86
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
87
87
|
};
|
|
88
88
|
iconPosition: {
|
|
89
89
|
type: globalThis.PropType<"before" | "after">;
|
|
@@ -107,9 +107,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
107
107
|
default: string;
|
|
108
108
|
};
|
|
109
109
|
invalid: BooleanConstructor;
|
|
110
|
-
invalidLabel: (
|
|
110
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
111
111
|
valid: BooleanConstructor;
|
|
112
|
-
validLabel: (
|
|
112
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
113
113
|
readonly: BooleanConstructor;
|
|
114
114
|
disabled: BooleanConstructor;
|
|
115
115
|
tabindex: {
|
|
@@ -135,8 +135,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
135
135
|
default: "text";
|
|
136
136
|
validator: (value: import("../VvInputText").InputType) => boolean;
|
|
137
137
|
};
|
|
138
|
-
min: (StringConstructor |
|
|
139
|
-
max: (StringConstructor |
|
|
138
|
+
min: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
139
|
+
max: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
140
140
|
step: {
|
|
141
141
|
type: (StringConstructor | NumberConstructor)[];
|
|
142
142
|
default: number;
|
|
@@ -213,7 +213,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
213
213
|
label: (StringConstructor | NumberConstructor)[];
|
|
214
214
|
floating: BooleanConstructor;
|
|
215
215
|
icon: {
|
|
216
|
-
type: (
|
|
216
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
217
217
|
};
|
|
218
218
|
iconPosition: {
|
|
219
219
|
type: globalThis.PropType<"before" | "after">;
|
|
@@ -237,9 +237,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
237
237
|
default: string;
|
|
238
238
|
};
|
|
239
239
|
invalid: BooleanConstructor;
|
|
240
|
-
invalidLabel: (
|
|
240
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
241
241
|
valid: BooleanConstructor;
|
|
242
|
-
validLabel: (
|
|
242
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
243
243
|
readonly: BooleanConstructor;
|
|
244
244
|
disabled: BooleanConstructor;
|
|
245
245
|
tabindex: {
|
|
@@ -260,11 +260,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
260
260
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
261
261
|
}, {
|
|
262
262
|
disabled: boolean;
|
|
263
|
+
floating: boolean;
|
|
263
264
|
type: import("../VvInputText").InputType;
|
|
264
265
|
mask: string;
|
|
265
|
-
|
|
266
|
+
tabindex: string | number;
|
|
266
267
|
required: boolean;
|
|
267
268
|
iconPosition: "before" | "after";
|
|
269
|
+
autofocus: boolean;
|
|
268
270
|
loading: boolean;
|
|
269
271
|
loadingLabel: string;
|
|
270
272
|
multiple: boolean;
|
|
@@ -272,9 +274,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
272
274
|
hintLabel: string;
|
|
273
275
|
invalid: boolean;
|
|
274
276
|
valid: boolean;
|
|
275
|
-
tabindex: string | number;
|
|
276
277
|
autocomplete: string;
|
|
277
|
-
autofocus: boolean;
|
|
278
278
|
step: string | number;
|
|
279
279
|
iconShowPassword: string;
|
|
280
280
|
iconHidePassword: string;
|
|
@@ -291,8 +291,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
291
291
|
autoWidth: boolean;
|
|
292
292
|
hideActions: boolean;
|
|
293
293
|
count: string | boolean;
|
|
294
|
-
}>, {
|
|
295
|
-
before
|
|
294
|
+
}, {}>, {
|
|
295
|
+
before?(_: {
|
|
296
296
|
valid: boolean;
|
|
297
297
|
invalid: boolean;
|
|
298
298
|
modelValue: string | number | undefined;
|
|
@@ -300,8 +300,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
300
300
|
stepUp: () => void;
|
|
301
301
|
stepDown: () => void;
|
|
302
302
|
clear: () => void;
|
|
303
|
-
})
|
|
304
|
-
default
|
|
303
|
+
}): any;
|
|
304
|
+
default?(_: {
|
|
305
305
|
valid: boolean;
|
|
306
306
|
invalid: boolean;
|
|
307
307
|
modelValue: string | number | undefined;
|
|
@@ -309,8 +309,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
309
309
|
stepUp: () => void;
|
|
310
310
|
stepDown: () => void;
|
|
311
311
|
clear: () => void;
|
|
312
|
-
})
|
|
313
|
-
after
|
|
312
|
+
}): any;
|
|
313
|
+
after?(_: {
|
|
314
314
|
valid: boolean;
|
|
315
315
|
invalid: boolean;
|
|
316
316
|
modelValue: string | number | undefined;
|
|
@@ -318,8 +318,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
318
318
|
stepUp: () => void;
|
|
319
319
|
stepDown: () => void;
|
|
320
320
|
clear: () => void;
|
|
321
|
-
})
|
|
322
|
-
count
|
|
321
|
+
}): any;
|
|
322
|
+
count?(_: {
|
|
323
323
|
valid: boolean;
|
|
324
324
|
invalid: boolean;
|
|
325
325
|
modelValue: string | number | undefined;
|
|
@@ -327,31 +327,31 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
327
327
|
stepUp: () => void;
|
|
328
328
|
stepDown: () => void;
|
|
329
329
|
clear: () => void;
|
|
330
|
-
})
|
|
331
|
-
hint
|
|
330
|
+
}): any;
|
|
331
|
+
hint?(_: {
|
|
332
332
|
modelValue: any;
|
|
333
333
|
valid: boolean;
|
|
334
334
|
invalid: boolean;
|
|
335
335
|
loading: boolean;
|
|
336
|
-
})
|
|
337
|
-
loading
|
|
336
|
+
}): any;
|
|
337
|
+
loading?(_: {
|
|
338
338
|
modelValue: any;
|
|
339
339
|
valid: boolean;
|
|
340
340
|
invalid: boolean;
|
|
341
341
|
loading: boolean;
|
|
342
|
-
})
|
|
343
|
-
valid
|
|
342
|
+
}): any;
|
|
343
|
+
valid?(_: {
|
|
344
344
|
modelValue: any;
|
|
345
345
|
valid: boolean;
|
|
346
346
|
invalid: boolean;
|
|
347
347
|
loading: boolean;
|
|
348
|
-
})
|
|
349
|
-
invalid
|
|
348
|
+
}): any;
|
|
349
|
+
invalid?(_: {
|
|
350
350
|
modelValue: any;
|
|
351
351
|
valid: boolean;
|
|
352
352
|
invalid: boolean;
|
|
353
353
|
loading: boolean;
|
|
354
|
-
})
|
|
354
|
+
}): any;
|
|
355
355
|
}>;
|
|
356
356
|
export default _default;
|
|
357
357
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -45,13 +45,13 @@ export declare const VvInputTextProps: {
|
|
|
45
45
|
* Available for input types: date, month, week, time, datetime-local, number, range.
|
|
46
46
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
|
|
47
47
|
*/
|
|
48
|
-
min: (StringConstructor |
|
|
48
|
+
min: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
49
49
|
/**
|
|
50
50
|
* Maximum value
|
|
51
51
|
* Available for input types: date, month, week, time, datetime-local, number, range.
|
|
52
52
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
|
|
53
53
|
*/
|
|
54
|
-
max: (StringConstructor |
|
|
54
|
+
max: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
55
55
|
/**
|
|
56
56
|
* Incremental values that are valid
|
|
57
57
|
* Available for input types: date, month, week, time, datetime-local and number
|
|
@@ -199,7 +199,7 @@ export declare const VvInputTextProps: {
|
|
|
199
199
|
label: (StringConstructor | NumberConstructor)[];
|
|
200
200
|
floating: BooleanConstructor;
|
|
201
201
|
icon: {
|
|
202
|
-
type: (
|
|
202
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
203
203
|
};
|
|
204
204
|
iconPosition: {
|
|
205
205
|
type: PropType<"before" | "after">;
|
|
@@ -223,9 +223,9 @@ export declare const VvInputTextProps: {
|
|
|
223
223
|
default: string;
|
|
224
224
|
};
|
|
225
225
|
invalid: BooleanConstructor;
|
|
226
|
-
invalidLabel: (
|
|
226
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
227
227
|
valid: BooleanConstructor;
|
|
228
|
-
validLabel: (
|
|
228
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
229
229
|
readonly: BooleanConstructor;
|
|
230
230
|
disabled: BooleanConstructor;
|
|
231
231
|
tabindex: {
|
|
@@ -43,8 +43,12 @@ var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
|
43
43
|
return AnchorTarget2;
|
|
44
44
|
})(AnchorTarget || {});
|
|
45
45
|
const INJECTION_KEY_VOLVER = Symbol.for("volver");
|
|
46
|
-
const INJECTION_KEY_DROPDOWN_TRIGGER = Symbol.for(
|
|
47
|
-
|
|
46
|
+
const INJECTION_KEY_DROPDOWN_TRIGGER = Symbol.for(
|
|
47
|
+
"dropdownTrigger"
|
|
48
|
+
);
|
|
49
|
+
const INJECTION_KEY_DROPDOWN_ACTION = Symbol.for(
|
|
50
|
+
"dropdownAction"
|
|
51
|
+
);
|
|
48
52
|
const LinkProps = {
|
|
49
53
|
/**
|
|
50
54
|
* The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
|
|
@@ -193,11 +197,11 @@ const ModifiersProps = {
|
|
|
193
197
|
default: false
|
|
194
198
|
},
|
|
195
199
|
/**
|
|
196
|
-
*
|
|
200
|
+
* Keep open dropdown on click outside
|
|
197
201
|
*/
|
|
198
|
-
|
|
202
|
+
keepOpen: {
|
|
199
203
|
type: Boolean,
|
|
200
|
-
default:
|
|
204
|
+
default: false
|
|
201
205
|
},
|
|
202
206
|
/**
|
|
203
207
|
* Autofocus first item on dropdown open
|
|
@@ -255,11 +259,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
255
259
|
...__default__,
|
|
256
260
|
props: VvActionProps,
|
|
257
261
|
emits: VvActionEvents,
|
|
258
|
-
setup(__props, { expose, emit }) {
|
|
262
|
+
setup(__props, { expose: __expose, emit }) {
|
|
259
263
|
const props = __props;
|
|
260
264
|
const volver = useVolver();
|
|
261
265
|
const element = ref(null);
|
|
262
|
-
|
|
266
|
+
__expose({ $el: element });
|
|
263
267
|
const {
|
|
264
268
|
reference: dropdownTriggerReference,
|
|
265
269
|
bus: dropdownEventBus,
|
|
@@ -294,7 +298,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
294
298
|
const toReturn = {
|
|
295
299
|
...dropdownAria == null ? void 0 : dropdownAria.value,
|
|
296
300
|
"aria-pressed": pressed.value ? true : void 0,
|
|
297
|
-
role
|
|
301
|
+
role: role == null ? void 0 : role.value
|
|
298
302
|
};
|
|
299
303
|
switch (hasTag.value) {
|
|
300
304
|
case ActionTag.a:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNav=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNav=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),r=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(r||{}),l=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(l||{});const a=Symbol.for("volver"),i=Symbol.for("dropdownTrigger"),s=Symbol.for("dropdownAction"),u={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(l).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:Boolean},c={active:Boolean},v={pressed:Boolean},f={label:[String,Number]},p={modifiers:[String,Array]};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const m={...d,...f,...v,...c,...u,type:{type:String,default:n.button,validator:e=>Object.values(n).includes(e)}},b={...p,items:{type:Array,required:!0,default:()=>[]}},k=m;const y=e.defineComponent({name:"VvAction",props:k,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:n}){const l=t,u=e.inject(a),d=e.ref(null);o({$el:d});const{reference:c,bus:v,aria:f,expanded:p}=e.inject(i,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const m=e.computed((()=>l.pressed||(null==p?void 0:p.value))),{role:b}=e.inject(s,{}),k=e.computed((()=>{switch(!0){case l.disabled:return r.button;case void 0!==l.to:return(null==u?void 0:u.nuxt)?r.nuxtLink:r.routerLink;case void 0!==l.href:return r.a;default:return r.button}})),y=e.computed((()=>{const e={...null==f?void 0:f.value,"aria-pressed":!!m.value||void 0,role:null==b?void 0:b.value};switch(k.value){case r.a:return{...e,href:l.href,target:l.target,rel:l.rel};case r.routerLink:case r.nuxtLink:return{...e,to:l.to,target:l.target};default:return{...e,type:l.type,disabled:l.disabled}}})),g=e=>{l.disabled?e.preventDefault():(null==v||v.emit("click",e),n("click",e))},_=e=>{null==v||v.emit("mouseover",e),n("mouseover",e)},B=e=>{null==v||v.emit("mouseleave",e),n("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k)),e.mergeProps(e.unref(y),{ref_key:"element",ref:d,class:{active:t.active,pressed:e.unref(m),disabled:t.disabled},onClickPassive:g,onMouseoverPassive:_,onMouseleavePassive:B}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}});const g={class:"vv-nav__menu",role:"menu","aria-busy":"true"};return e.defineComponent({__name:"VvNav",props:b,emits:["click"],setup(t,{emit:o}){const n=t,{modifiers:r,items:l}=e.toRefs(n),a=e.ref(null),i=function(t,o,n){return e.computed((()=>{const r={[t]:!0},l="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return l&&Array.isArray(l)&&l.forEach((e=>{e&&(r[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{r[`${t}--${o}`]=e.unref(n.value[o])})),r}))}("vv-nav",r),s=e.computed((()=>l.value.map(((e,t)=>({...e,id:e.id||`nav-item_${t}`})))));return(t,n)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(i))},[e.createElementVNode("ul",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(t=>(e.openBlock(),e.createElementBlock("li",{key:t.id,class:"vv-nav__item",role:"presentation"},[e.createVNode(y,e.mergeProps({disabled:t.disabled,to:t.to,href:t.href,tabindex:0},{class:[{current:e.unref(a)==t.id,disabled:t.disabled},"vv-nav__item-label"]},e.toHandlers(t.on||{}),{onClick:e=>{var n;(n=t).disabled||(o("click",n),a.value=n.id)}}),{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.title),1)])),_:2},1040,["class","onClick"])])))),128))])],2))}})}));
|
|
@@ -2,5 +2,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2
2
|
title: StringConstructor;
|
|
3
3
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
4
|
title: StringConstructor;
|
|
5
|
-
}>>, {}>;
|
|
5
|
+
}>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -183,11 +183,11 @@ const ModifiersProps = {
|
|
|
183
183
|
default: false
|
|
184
184
|
},
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Keep open dropdown on click outside
|
|
187
187
|
*/
|
|
188
|
-
|
|
188
|
+
keepOpen: {
|
|
189
189
|
type: Boolean,
|
|
190
|
-
default:
|
|
190
|
+
default: false
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
193
|
* Autofocus first item on dropdown open
|
|
@@ -241,11 +241,11 @@ const IdProps = {
|
|
|
241
241
|
default: false
|
|
242
242
|
},
|
|
243
243
|
/**
|
|
244
|
-
*
|
|
244
|
+
* Keep open dropdown on click outside
|
|
245
245
|
*/
|
|
246
|
-
|
|
246
|
+
keepOpen: {
|
|
247
247
|
type: Boolean,
|
|
248
|
-
default:
|
|
248
|
+
default: false
|
|
249
249
|
},
|
|
250
250
|
/**
|
|
251
251
|
* Autofocus first item on dropdown open
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
2
|
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
3
|
-
modelValue: (
|
|
3
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
4
4
|
loading: BooleanConstructor;
|
|
5
5
|
loadingLabel: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -15,9 +15,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
invalid: BooleanConstructor;
|
|
18
|
-
invalidLabel: (
|
|
18
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
19
19
|
valid: BooleanConstructor;
|
|
20
|
-
validLabel: (
|
|
20
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
21
21
|
tabindex: {
|
|
22
22
|
type: (StringConstructor | NumberConstructor)[];
|
|
23
23
|
default: number;
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
29
|
id: (StringConstructor | NumberConstructor)[];
|
|
30
30
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
32
|
-
modelValue: (
|
|
32
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
33
33
|
loading: BooleanConstructor;
|
|
34
34
|
loadingLabel: {
|
|
35
35
|
type: StringConstructor;
|
|
@@ -44,9 +44,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
46
|
invalid: BooleanConstructor;
|
|
47
|
-
invalidLabel: (
|
|
47
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
48
48
|
valid: BooleanConstructor;
|
|
49
|
-
validLabel: (
|
|
49
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
50
50
|
tabindex: {
|
|
51
51
|
type: (StringConstructor | NumberConstructor)[];
|
|
52
52
|
default: number;
|
|
@@ -60,41 +60,41 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
60
60
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
disabled: boolean;
|
|
63
|
+
tabindex: string | number;
|
|
63
64
|
loading: boolean;
|
|
64
65
|
loadingLabel: string;
|
|
65
66
|
readonly: boolean;
|
|
66
67
|
hintLabel: string;
|
|
67
68
|
invalid: boolean;
|
|
68
69
|
valid: boolean;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
default: (_: {
|
|
70
|
+
}, {}>, {
|
|
71
|
+
default?(_: {
|
|
72
72
|
value: any;
|
|
73
|
-
})
|
|
74
|
-
hint
|
|
73
|
+
}): any;
|
|
74
|
+
hint?(_: {
|
|
75
75
|
modelValue: any;
|
|
76
76
|
valid: boolean;
|
|
77
77
|
invalid: boolean;
|
|
78
78
|
loading: boolean;
|
|
79
|
-
})
|
|
80
|
-
loading
|
|
79
|
+
}): any;
|
|
80
|
+
loading?(_: {
|
|
81
81
|
modelValue: any;
|
|
82
82
|
valid: boolean;
|
|
83
83
|
invalid: boolean;
|
|
84
84
|
loading: boolean;
|
|
85
|
-
})
|
|
86
|
-
valid
|
|
85
|
+
}): any;
|
|
86
|
+
valid?(_: {
|
|
87
87
|
modelValue: any;
|
|
88
88
|
valid: boolean;
|
|
89
89
|
invalid: boolean;
|
|
90
90
|
loading: boolean;
|
|
91
|
-
})
|
|
92
|
-
invalid
|
|
91
|
+
}): any;
|
|
92
|
+
invalid?(_: {
|
|
93
93
|
modelValue: any;
|
|
94
94
|
valid: boolean;
|
|
95
95
|
invalid: boolean;
|
|
96
96
|
loading: boolean;
|
|
97
|
-
})
|
|
97
|
+
}): any;
|
|
98
98
|
}>;
|
|
99
99
|
export default _default;
|
|
100
100
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,7 +2,7 @@ import type { ExtractPropTypes, Ref } from 'vue';
|
|
|
2
2
|
import type { InputGroupState } from '../../types/group';
|
|
3
3
|
export declare const VvRadioProps: {
|
|
4
4
|
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
5
|
-
modelValue: (
|
|
5
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
6
6
|
loading: BooleanConstructor;
|
|
7
7
|
loadingLabel: {
|
|
8
8
|
type: StringConstructor;
|
|
@@ -17,9 +17,9 @@ export declare const VvRadioProps: {
|
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
invalid: BooleanConstructor;
|
|
20
|
-
invalidLabel: (
|
|
20
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
21
21
|
valid: BooleanConstructor;
|
|
22
|
-
validLabel: (
|
|
22
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
23
23
|
tabindex: {
|
|
24
24
|
type: (StringConstructor | NumberConstructor)[];
|
|
25
25
|
default: number;
|
|
@@ -458,11 +458,11 @@ const IdProps = {
|
|
|
458
458
|
default: false
|
|
459
459
|
},
|
|
460
460
|
/**
|
|
461
|
-
*
|
|
461
|
+
* Keep open dropdown on click outside
|
|
462
462
|
*/
|
|
463
|
-
|
|
463
|
+
keepOpen: {
|
|
464
464
|
type: Boolean,
|
|
465
|
-
default:
|
|
465
|
+
default: false
|
|
466
466
|
},
|
|
467
467
|
/**
|
|
468
468
|
* Autofocus first item on dropdown open
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Option } from '../../types/generic';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
-
modelValue: (SymbolConstructor |
|
|
3
|
+
modelValue: (SymbolConstructor | ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
4
4
|
name: {
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
required: boolean;
|
|
@@ -36,11 +36,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
36
|
default: string;
|
|
37
37
|
};
|
|
38
38
|
invalid: BooleanConstructor;
|
|
39
|
-
invalidLabel: (
|
|
39
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
40
40
|
valid: BooleanConstructor;
|
|
41
|
-
validLabel: (
|
|
41
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
42
42
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
-
modelValue: (SymbolConstructor |
|
|
43
|
+
modelValue: (SymbolConstructor | ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
44
44
|
name: {
|
|
45
45
|
type: StringConstructor;
|
|
46
46
|
required: boolean;
|
|
@@ -76,9 +76,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
76
76
|
default: string;
|
|
77
77
|
};
|
|
78
78
|
invalid: BooleanConstructor;
|
|
79
|
-
invalidLabel: (
|
|
79
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
80
80
|
valid: BooleanConstructor;
|
|
81
|
-
validLabel: (
|
|
81
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
82
82
|
}>> & {
|
|
83
83
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
84
84
|
}, {
|
|
@@ -94,32 +94,32 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
94
94
|
labelKey: string | Function;
|
|
95
95
|
valueKey: string | Function;
|
|
96
96
|
disabledKey: string | Function;
|
|
97
|
-
}>, {
|
|
98
|
-
default
|
|
99
|
-
hint
|
|
97
|
+
}, {}>, {
|
|
98
|
+
default?(_: {}): any;
|
|
99
|
+
hint?(_: {
|
|
100
100
|
modelValue: any;
|
|
101
101
|
valid: boolean;
|
|
102
102
|
invalid: boolean;
|
|
103
103
|
loading: boolean;
|
|
104
|
-
})
|
|
105
|
-
loading
|
|
104
|
+
}): any;
|
|
105
|
+
loading?(_: {
|
|
106
106
|
modelValue: any;
|
|
107
107
|
valid: boolean;
|
|
108
108
|
invalid: boolean;
|
|
109
109
|
loading: boolean;
|
|
110
|
-
})
|
|
111
|
-
valid
|
|
110
|
+
}): any;
|
|
111
|
+
valid?(_: {
|
|
112
112
|
modelValue: any;
|
|
113
113
|
valid: boolean;
|
|
114
114
|
invalid: boolean;
|
|
115
115
|
loading: boolean;
|
|
116
|
-
})
|
|
117
|
-
invalid
|
|
116
|
+
}): any;
|
|
117
|
+
invalid?(_: {
|
|
118
118
|
modelValue: any;
|
|
119
119
|
valid: boolean;
|
|
120
120
|
invalid: boolean;
|
|
121
121
|
loading: boolean;
|
|
122
|
-
})
|
|
122
|
+
}): any;
|
|
123
123
|
}>;
|
|
124
124
|
export default _default;
|
|
125
125
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const VvRadioGroupProps: {
|
|
2
|
-
modelValue: (SymbolConstructor |
|
|
2
|
+
modelValue: (SymbolConstructor | ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
3
3
|
name: {
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
required: boolean;
|
|
@@ -35,8 +35,8 @@ export declare const VvRadioGroupProps: {
|
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
37
|
invalid: BooleanConstructor;
|
|
38
|
-
invalidLabel: (
|
|
38
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
39
39
|
valid: BooleanConstructor;
|
|
40
|
-
validLabel: (
|
|
40
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
41
41
|
};
|
|
42
42
|
export declare const VvRadioGroupEvents: string[];
|
|
@@ -608,11 +608,11 @@ const IdProps = {
|
|
|
608
608
|
default: false
|
|
609
609
|
},
|
|
610
610
|
/**
|
|
611
|
-
*
|
|
611
|
+
* Keep open dropdown on click outside
|
|
612
612
|
*/
|
|
613
|
-
|
|
613
|
+
keepOpen: {
|
|
614
614
|
type: Boolean,
|
|
615
|
-
default:
|
|
615
|
+
default: false
|
|
616
616
|
},
|
|
617
617
|
/**
|
|
618
618
|
* Autofocus first item on dropdown open
|