@volverjs/ui-vue 0.0.6-beta.6 → 0.0.6
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 +11 -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 +39 -29
- 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 +154 -101
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +46 -10
- package/dist/components/VvCheckbox/index.d.ts +8 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -104
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +44 -8
- package/dist/components/VvCheckboxGroup/index.d.ts +8 -3
- package/dist/components/VvCombobox/VvCombobox.es.js +271 -174
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +73 -37
- package/dist/components/VvCombobox/index.d.ts +13 -7
- package/dist/components/VvDialog/VvDialog.es.js +44 -33
- 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 +39 -25
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +21 -17
- 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.es.js +25 -19
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +3 -3
- package/dist/components/VvIcon/index.d.ts +2 -2
- 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 +165 -141
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +46 -22
- 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 +154 -101
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +46 -10
- package/dist/components/VvRadio/index.d.ts +8 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +190 -104
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +44 -8
- package/dist/components/VvRadioGroup/index.d.ts +8 -3
- package/dist/components/VvSelect/VvSelect.es.js +166 -140
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +42 -18
- 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 +163 -139
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +40 -16
- 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 +38 -12
- package/dist/components/index.es.js +1066 -768
- 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/useOptions.d.ts +2 -2
- 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 +38 -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 +68 -52
- 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/VvCheckbox/VvCheckbox.vue +23 -2
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +15 -2
- package/src/components/VvCombobox/VvCombobox.vue +41 -24
- 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 +23 -5
- package/src/components/VvDropdown/VvDropdownItem.vue +2 -2
- package/src/components/VvIcon/VvIcon.vue +37 -34
- package/src/components/VvIcon/index.ts +2 -2
- package/src/components/VvInputText/VvInputText.vue +26 -9
- package/src/components/VvRadio/VvRadio.vue +23 -2
- package/src/components/VvRadioGroup/VvRadioGroup.vue +15 -2
- package/src/components/VvSelect/VvSelect.vue +26 -9
- package/src/components/VvTextarea/VvTextarea.vue +26 -9
- package/src/components/common/HintSlot.ts +129 -170
- 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/useOptions.ts +9 -7
- package/src/composables/useVolver.ts +1 -2
- package/src/constants.ts +42 -4
- package/src/props/index.ts +5 -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
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from '@storybook/addon-docs'
|
|
2
|
-
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
-
import { defaultTest } from './Combobox.test'
|
|
4
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
5
|
-
|
|
6
|
-
<Meta
|
|
7
|
-
title="Components/Combobox"
|
|
8
|
-
component={VvCombobox}
|
|
9
|
-
args={defaultArgs}
|
|
10
|
-
argTypes={argTypes}
|
|
11
|
-
|
|
12
|
-
/>
|
|
13
|
-
|
|
14
|
-
export const Template = (args, { argTypes }) => ({
|
|
15
|
-
props: Object.keys(argTypes),
|
|
16
|
-
components: { VvCombobox },
|
|
17
|
-
setup() {
|
|
18
|
-
return { args }
|
|
19
|
-
},
|
|
20
|
-
data() {
|
|
21
|
-
return {
|
|
22
|
-
inputValue: undefined,
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
template: /*html*/ `
|
|
26
|
-
<vv-combobox v-bind="args" v-model="inputValue" :data-testData="inputValue" data-testId="element">
|
|
27
|
-
<template #dropdown::before v-if="args['dropdown::before']"><div class="flex" v-html="args['dropdown::before']"></div></template>
|
|
28
|
-
<template #dropdown::after v-if="args['dropdown::after']"><div class="flex" v-html="args['dropdown::after']"></div></template>
|
|
29
|
-
<template #before v-if="args.before"><div class="flex" v-html="args.before"></div></template>
|
|
30
|
-
<template #after v-if="args.after"><div class="flex" v-html="args.after"></div></template>
|
|
31
|
-
<template #hint v-if="args.hint"><span v-html="args.hint"></span></template>
|
|
32
|
-
</vv-combobox>
|
|
33
|
-
<div>Value: <span data-testId="value">{{inputValue}}</span></div>
|
|
34
|
-
`,
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
<Canvas>
|
|
38
|
-
<Story name="Default" play={defaultTest}>
|
|
39
|
-
{Template.bind()}
|
|
40
|
-
</Story>
|
|
41
|
-
</Canvas>
|
|
42
|
-
|
|
43
|
-
<Canvas>
|
|
44
|
-
<Story
|
|
45
|
-
name="Disabled"
|
|
46
|
-
play={defaultTest}
|
|
47
|
-
args={{ disabled: true }}
|
|
48
|
-
argTypes={{
|
|
49
|
-
disabled: {
|
|
50
|
-
control: {
|
|
51
|
-
disable: true,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
}}
|
|
55
|
-
>
|
|
56
|
-
{Template.bind()}
|
|
57
|
-
</Story>
|
|
58
|
-
</Canvas>
|
|
59
|
-
|
|
60
|
-
<Canvas>
|
|
61
|
-
<Story
|
|
62
|
-
name="Readonly"
|
|
63
|
-
play={defaultTest}
|
|
64
|
-
args={{ readonly: true }}
|
|
65
|
-
argTypes={{
|
|
66
|
-
readonly: {
|
|
67
|
-
control: {
|
|
68
|
-
disable: true,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
}}
|
|
72
|
-
>
|
|
73
|
-
{Template.bind()}
|
|
74
|
-
</Story>
|
|
75
|
-
</Canvas>
|
|
76
|
-
|
|
77
|
-
<Canvas>
|
|
78
|
-
<Story
|
|
79
|
-
name="Unselectable"
|
|
80
|
-
play={defaultTest}
|
|
81
|
-
args={{ unselectable: false }}
|
|
82
|
-
argTypes={{
|
|
83
|
-
unselectable: {
|
|
84
|
-
control: {
|
|
85
|
-
disable: true,
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
}}
|
|
89
|
-
>
|
|
90
|
-
{Template.bind()}
|
|
91
|
-
</Story>
|
|
92
|
-
</Canvas>
|
|
93
|
-
|
|
94
|
-
<Canvas>
|
|
95
|
-
<Story
|
|
96
|
-
name="Valid"
|
|
97
|
-
play={defaultTest}
|
|
98
|
-
args={{ valid: true, validLabel: 'Selected response is valid.' }}
|
|
99
|
-
argTypes={{
|
|
100
|
-
valid: {
|
|
101
|
-
control: {
|
|
102
|
-
disable: true,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
}}
|
|
106
|
-
>
|
|
107
|
-
{Template.bind()}
|
|
108
|
-
</Story>
|
|
109
|
-
</Canvas>
|
|
110
|
-
|
|
111
|
-
<Canvas>
|
|
112
|
-
<Story
|
|
113
|
-
name="Invalid"
|
|
114
|
-
play={defaultTest}
|
|
115
|
-
args={{ invalid: true, invalidLabel: 'This field is required.' }}
|
|
116
|
-
argTypes={{
|
|
117
|
-
invalid: {
|
|
118
|
-
control: {
|
|
119
|
-
disable: true,
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
}}
|
|
123
|
-
>
|
|
124
|
-
{Template.bind()}
|
|
125
|
-
</Story>
|
|
126
|
-
</Canvas>
|
|
127
|
-
|
|
128
|
-
<Canvas>
|
|
129
|
-
<Story
|
|
130
|
-
name="Hint"
|
|
131
|
-
play={defaultTest}
|
|
132
|
-
args={{ hintLabel: 'Please fill the input above.' }}
|
|
133
|
-
argTypes={{
|
|
134
|
-
hint: {
|
|
135
|
-
control: {
|
|
136
|
-
disable: true,
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
}}
|
|
140
|
-
>
|
|
141
|
-
{Template.bind()}
|
|
142
|
-
</Story>
|
|
143
|
-
</Canvas>
|
|
144
|
-
|
|
145
|
-
<Canvas>
|
|
146
|
-
<Story
|
|
147
|
-
name="Loading"
|
|
148
|
-
args={{
|
|
149
|
-
loading: true,
|
|
150
|
-
loadingLabel: 'Loading...',
|
|
151
|
-
}}
|
|
152
|
-
play={defaultTest}
|
|
153
|
-
>
|
|
154
|
-
{Template.bind()}
|
|
155
|
-
</Story>
|
|
156
|
-
</Canvas>
|
|
157
|
-
|
|
158
|
-
<Canvas>
|
|
159
|
-
<Story
|
|
160
|
-
name="Searchable"
|
|
161
|
-
play={defaultTest}
|
|
162
|
-
args={{ searchable: true, searchPlaceholder: 'Search...' }}
|
|
163
|
-
argTypes={{
|
|
164
|
-
searchable: {
|
|
165
|
-
control: {
|
|
166
|
-
disable: true,
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
}}
|
|
170
|
-
>
|
|
171
|
-
{Template.bind()}
|
|
172
|
-
</Story>
|
|
173
|
-
</Canvas>
|
|
174
|
-
|
|
175
|
-
<Canvas>
|
|
176
|
-
<Story
|
|
177
|
-
name="Floating"
|
|
178
|
-
play={defaultTest}
|
|
179
|
-
args={{ floating: true }}
|
|
180
|
-
argTypes={{
|
|
181
|
-
floating: {
|
|
182
|
-
control: {
|
|
183
|
-
disable: true,
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
}}
|
|
187
|
-
>
|
|
188
|
-
{Template.bind()}
|
|
189
|
-
</Story>
|
|
190
|
-
</Canvas>
|
|
191
|
-
|
|
192
|
-
<Canvas>
|
|
193
|
-
<Story
|
|
194
|
-
name="Native"
|
|
195
|
-
play={defaultTest}
|
|
196
|
-
args={{ native: true }}
|
|
197
|
-
argTypes={{
|
|
198
|
-
native: {
|
|
199
|
-
control: {
|
|
200
|
-
disable: true,
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
}}
|
|
204
|
-
>
|
|
205
|
-
{Template.bind()}
|
|
206
|
-
</Story>
|
|
207
|
-
</Canvas>
|
|
208
|
-
|
|
209
|
-
<Canvas>
|
|
210
|
-
<Story
|
|
211
|
-
name="Arrow"
|
|
212
|
-
args={{
|
|
213
|
-
arrow: true,
|
|
214
|
-
offset: 10,
|
|
215
|
-
triggerWidth: false,
|
|
216
|
-
placement: 'bottom-end',
|
|
217
|
-
dropdownModifiers: 'full-bleed rounded',
|
|
218
|
-
}}
|
|
219
|
-
argTypes={{
|
|
220
|
-
arrow: {
|
|
221
|
-
control: {
|
|
222
|
-
disable: true,
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
}}
|
|
226
|
-
play={defaultTest}
|
|
227
|
-
>
|
|
228
|
-
{Template.bind()}
|
|
229
|
-
</Story>
|
|
230
|
-
</Canvas>
|
|
231
|
-
|
|
232
|
-
<Canvas>
|
|
233
|
-
<Story
|
|
234
|
-
name="Badges"
|
|
235
|
-
args={{
|
|
236
|
-
badges: true,
|
|
237
|
-
multiple: true,
|
|
238
|
-
}}
|
|
239
|
-
argTypes={{
|
|
240
|
-
badges: {
|
|
241
|
-
control: {
|
|
242
|
-
disable: true,
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
}}
|
|
246
|
-
play={defaultTest}
|
|
247
|
-
>
|
|
248
|
-
{Template.bind()}
|
|
249
|
-
</Story>
|
|
250
|
-
</Canvas>
|
|
251
|
-
|
|
252
|
-
<Canvas>
|
|
253
|
-
<Story
|
|
254
|
-
name="Auto open"
|
|
255
|
-
args={{
|
|
256
|
-
autoOpen: true,
|
|
257
|
-
}}
|
|
258
|
-
argTypes={{
|
|
259
|
-
autoOpen: {
|
|
260
|
-
control: {
|
|
261
|
-
disable: true,
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
}}
|
|
265
|
-
play={defaultTest}
|
|
266
|
-
>
|
|
267
|
-
{Template.bind()}
|
|
268
|
-
</Story>
|
|
269
|
-
</Canvas>
|
|
270
|
-
|
|
271
|
-
<Canvas>
|
|
272
|
-
<Story
|
|
273
|
-
name="Auto close"
|
|
274
|
-
args={{
|
|
275
|
-
autoClose: true,
|
|
276
|
-
}}
|
|
277
|
-
argTypes={{
|
|
278
|
-
autoClose: {
|
|
279
|
-
control: {
|
|
280
|
-
disable: true,
|
|
281
|
-
},
|
|
282
|
-
},
|
|
283
|
-
}}
|
|
284
|
-
play={defaultTest}
|
|
285
|
-
>
|
|
286
|
-
{Template.bind()}
|
|
287
|
-
</Story>
|
|
288
|
-
</Canvas>
|
|
289
|
-
|
|
290
|
-
<Canvas>
|
|
291
|
-
<Story
|
|
292
|
-
name="Size"
|
|
293
|
-
args={{
|
|
294
|
-
'dropdown::before':
|
|
295
|
-
'<div class="bg-brand text-white flex-1 text-center uppercase">Before</div>',
|
|
296
|
-
'dropdown::after':
|
|
297
|
-
'<div class="bg-brand text-white flex-1 text-center uppercase">After</div>',
|
|
298
|
-
options: Array.from({ length: 30 }, (_, i) => ({
|
|
299
|
-
label: `Option ${i + 1}`,
|
|
300
|
-
value: String(i + 1),
|
|
301
|
-
})),
|
|
302
|
-
}}
|
|
303
|
-
argTypes={{
|
|
304
|
-
'dropdown::before': {
|
|
305
|
-
control: {
|
|
306
|
-
disable: true,
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
'dropdown::after': {
|
|
310
|
-
control: {
|
|
311
|
-
disable: true,
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
options: {
|
|
315
|
-
control: {
|
|
316
|
-
disable: true,
|
|
317
|
-
},
|
|
318
|
-
},
|
|
319
|
-
}}
|
|
320
|
-
play={defaultTest}
|
|
321
|
-
>
|
|
322
|
-
{Template.bind()}
|
|
323
|
-
</Story>
|
|
324
|
-
</Canvas>
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from '@storybook/addon-docs'
|
|
2
|
-
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
-
import { Template } from './Combobox.stories.mdx'
|
|
4
|
-
import { defaultTest } from './Combobox.test.ts'
|
|
5
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
6
|
-
|
|
7
|
-
<Meta
|
|
8
|
-
title="Components/Combobox/Icon"
|
|
9
|
-
component={VvCombobox}
|
|
10
|
-
args={defaultArgs}
|
|
11
|
-
argTypes={argTypes}
|
|
12
|
-
/>
|
|
13
|
-
|
|
14
|
-
<Canvas>
|
|
15
|
-
<Story
|
|
16
|
-
name="Default"
|
|
17
|
-
args={{
|
|
18
|
-
icon: 'heart',
|
|
19
|
-
}}
|
|
20
|
-
argTypes={{
|
|
21
|
-
icon: {
|
|
22
|
-
control: {
|
|
23
|
-
disable: true,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
}}
|
|
27
|
-
play={defaultTest}
|
|
28
|
-
>
|
|
29
|
-
{Template.bind()}
|
|
30
|
-
</Story>
|
|
31
|
-
</Canvas>
|
|
32
|
-
|
|
33
|
-
<Canvas>
|
|
34
|
-
<Story
|
|
35
|
-
name="After"
|
|
36
|
-
args={{
|
|
37
|
-
icon: 'heart',
|
|
38
|
-
iconPosition: 'after',
|
|
39
|
-
}}
|
|
40
|
-
argTypes={{
|
|
41
|
-
icon: {
|
|
42
|
-
control: {
|
|
43
|
-
disable: true,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
iconPosition: {
|
|
47
|
-
control: {
|
|
48
|
-
disable: true,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
}}
|
|
52
|
-
play={defaultTest}
|
|
53
|
-
>
|
|
54
|
-
{Template.bind()}
|
|
55
|
-
</Story>
|
|
56
|
-
</Canvas>
|
|
57
|
-
|
|
58
|
-
<Canvas>
|
|
59
|
-
<Story
|
|
60
|
-
name="Src"
|
|
61
|
-
args={{
|
|
62
|
-
icon: {
|
|
63
|
-
name: 'engineering',
|
|
64
|
-
src: 'https://raw.githubusercontent.com/google/material-design-icons/master/src/social/engineering/materialicons/24px.svg',
|
|
65
|
-
},
|
|
66
|
-
}}
|
|
67
|
-
argTypes={{
|
|
68
|
-
icon: {
|
|
69
|
-
control: {
|
|
70
|
-
disable: true,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
}}
|
|
74
|
-
play={defaultTest}
|
|
75
|
-
>
|
|
76
|
-
{Template.bind()}
|
|
77
|
-
</Story>
|
|
78
|
-
</Canvas>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from '@storybook/addon-docs'
|
|
2
|
-
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
-
import { defaultTest } from './Combobox.test'
|
|
4
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
5
|
-
import { Template } from './Combobox.stories.mdx'
|
|
6
|
-
|
|
7
|
-
<Meta
|
|
8
|
-
title="Components/Combobox/Multiple"
|
|
9
|
-
component={VvCombobox}
|
|
10
|
-
args={defaultArgs}
|
|
11
|
-
argTypes={argTypes}
|
|
12
|
-
/>
|
|
13
|
-
|
|
14
|
-
<Canvas>
|
|
15
|
-
<Story
|
|
16
|
-
name="Default"
|
|
17
|
-
play={defaultTest}
|
|
18
|
-
args={{ multiple: true }}
|
|
19
|
-
argTypes={{
|
|
20
|
-
multiple: {
|
|
21
|
-
control: {
|
|
22
|
-
disable: true,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
}}
|
|
26
|
-
>
|
|
27
|
-
{Template.bind()}
|
|
28
|
-
</Story>
|
|
29
|
-
</Canvas>
|
|
30
|
-
|
|
31
|
-
<Canvas>
|
|
32
|
-
<Story
|
|
33
|
-
name="Max values"
|
|
34
|
-
play={defaultTest}
|
|
35
|
-
args={{ multiple: true, maxValues: 2 }}
|
|
36
|
-
argTypes={{
|
|
37
|
-
multiple: {
|
|
38
|
-
control: {
|
|
39
|
-
disable: true,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
maxValues: {
|
|
43
|
-
control: {
|
|
44
|
-
disable: true,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
}}
|
|
48
|
-
>
|
|
49
|
-
{Template.bind()}
|
|
50
|
-
</Story>
|
|
51
|
-
</Canvas>
|
|
52
|
-
|
|
53
|
-
<Canvas>
|
|
54
|
-
<Story
|
|
55
|
-
name="Separator"
|
|
56
|
-
play={defaultTest}
|
|
57
|
-
args={{ multiple: true, separator: ' | ' }}
|
|
58
|
-
argTypes={{
|
|
59
|
-
multiple: {
|
|
60
|
-
control: {
|
|
61
|
-
disable: true,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
separator: {
|
|
65
|
-
control: {
|
|
66
|
-
disable: true,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
}}
|
|
70
|
-
>
|
|
71
|
-
{Template.bind()}
|
|
72
|
-
</Story>
|
|
73
|
-
</Canvas>
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs'
|
|
2
|
-
import VvCombobox from '@/components/VvCombobox/VvCombobox.vue'
|
|
3
|
-
import { Template } from './Combobox.stories.mdx'
|
|
4
|
-
import { defaultArgs, argTypes } from './Combobox.settings'
|
|
5
|
-
import { defaultTest } from './Combobox.test'
|
|
6
|
-
|
|
7
|
-
<Meta
|
|
8
|
-
title="Components/Combobox/Options"
|
|
9
|
-
component={VvCombobox}
|
|
10
|
-
args={defaultArgs}
|
|
11
|
-
argTypes={argTypes}
|
|
12
|
-
/>
|
|
13
|
-
|
|
14
|
-
<Canvas>
|
|
15
|
-
<Story
|
|
16
|
-
name="Array of Objects"
|
|
17
|
-
play={defaultTest}
|
|
18
|
-
argTypes={{
|
|
19
|
-
options: {
|
|
20
|
-
...argTypes.options,
|
|
21
|
-
control: {
|
|
22
|
-
disable: true,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
}}
|
|
26
|
-
args={{
|
|
27
|
-
options: [
|
|
28
|
-
{ value: 'first', label: 'First' },
|
|
29
|
-
{ value: 'second', label: 'Second' },
|
|
30
|
-
{ value: 'third', label: 'Third' },
|
|
31
|
-
],
|
|
32
|
-
}}
|
|
33
|
-
>
|
|
34
|
-
{Template.bind()}
|
|
35
|
-
</Story>
|
|
36
|
-
</Canvas>
|
|
37
|
-
|
|
38
|
-
<Canvas>
|
|
39
|
-
<Story
|
|
40
|
-
name="Option label key"
|
|
41
|
-
play={defaultTest}
|
|
42
|
-
argTypes={{
|
|
43
|
-
options: {
|
|
44
|
-
...argTypes.options,
|
|
45
|
-
control: {
|
|
46
|
-
disable: true,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
}}
|
|
50
|
-
args={{
|
|
51
|
-
labelKey: 'name',
|
|
52
|
-
options: [
|
|
53
|
-
{ value: 'first', name: 'First' },
|
|
54
|
-
{ value: 'second', name: 'Second' },
|
|
55
|
-
{ value: 'third', name: 'Third' },
|
|
56
|
-
],
|
|
57
|
-
}}
|
|
58
|
-
argTypes={{
|
|
59
|
-
labelKey: {
|
|
60
|
-
control: {
|
|
61
|
-
disable: true,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
}}
|
|
65
|
-
>
|
|
66
|
-
{Template.bind()}
|
|
67
|
-
</Story>
|
|
68
|
-
</Canvas>
|
|
69
|
-
|
|
70
|
-
<Canvas>
|
|
71
|
-
<Story
|
|
72
|
-
name="Option value key"
|
|
73
|
-
play={defaultTest}
|
|
74
|
-
argTypes={{
|
|
75
|
-
options: {
|
|
76
|
-
...argTypes.options,
|
|
77
|
-
control: {
|
|
78
|
-
disable: true,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
}}
|
|
82
|
-
args={{
|
|
83
|
-
valueKey: 'id',
|
|
84
|
-
options: [
|
|
85
|
-
{ id: 'first', label: 'First' },
|
|
86
|
-
{ id: 'second', label: 'Second' },
|
|
87
|
-
{ id: 'third', label: 'Third' },
|
|
88
|
-
],
|
|
89
|
-
}}
|
|
90
|
-
argTypes={{
|
|
91
|
-
options: {
|
|
92
|
-
valueKey: {
|
|
93
|
-
disable: true,
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
}}
|
|
97
|
-
>
|
|
98
|
-
{Template.bind()}
|
|
99
|
-
</Story>
|
|
100
|
-
</Canvas>
|
|
101
|
-
|
|
102
|
-
<Canvas>
|
|
103
|
-
<Story
|
|
104
|
-
name="Grouped options"
|
|
105
|
-
play={defaultTest}
|
|
106
|
-
argTypes={{
|
|
107
|
-
options: {
|
|
108
|
-
...argTypes.options,
|
|
109
|
-
control: {
|
|
110
|
-
disable: true,
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
}}
|
|
114
|
-
args={{
|
|
115
|
-
options: [
|
|
116
|
-
{
|
|
117
|
-
label: 'Group 1',
|
|
118
|
-
options: [
|
|
119
|
-
{ value: 'first', label: 'First' },
|
|
120
|
-
{ value: 'second', label: 'Second' },
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
label: 'Group 2',
|
|
125
|
-
options: [
|
|
126
|
-
{ value: 'third', label: 'Third' },
|
|
127
|
-
{ value: 'fourth', label: 'Fourth' },
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
}}
|
|
132
|
-
>
|
|
133
|
-
{Template.bind()}
|
|
134
|
-
</Story>
|
|
135
|
-
</Canvas>
|