@volverjs/ui-vue 0.0.1-beta.6 → 0.0.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/LICENSE +21 -0
- package/README.md +101 -7
- package/bin/icons.cjs +73 -0
- package/bin/icons.js +75 -0
- package/dist/{DesignSystem.d.ts → Volver.d.ts} +22 -18
- package/dist/components/VvAccordion/VvAccordion.es.js +165 -0
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -0
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +32 -97
- package/dist/components/VvAccordion/index.d.ts +46 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +243 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +77 -151
- package/dist/components/VvAccordionGroup/{VvAccordionGroup.d.ts → index.d.ts} +30 -13
- package/dist/components/VvBadge/VvBadge.es.js +62 -0
- package/dist/components/VvBadge/VvBadge.umd.js +1 -0
- package/dist/components/VvBadge/VvBadge.vue.d.ts +13 -54
- package/dist/components/VvBadge/{VvBadge.d.ts → index.d.ts} +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +93 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +33 -107
- package/dist/components/VvBreadcrumb/{VvBreadcrumb.d.ts → index.d.ts} +2 -3
- package/dist/components/VvButton/VvButton.es.js +427 -0
- package/dist/components/VvButton/VvButton.umd.js +1 -0
- package/dist/components/VvButton/VvButton.vue.d.ts +108 -199
- package/dist/components/VvButton/index.d.ts +132 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +108 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +89 -183
- package/dist/components/VvButtonGroup/index.d.ts +54 -0
- package/dist/components/VvCard/VvCard.es.js +77 -0
- package/dist/components/VvCard/VvCard.umd.js +1 -0
- package/dist/components/VvCard/VvCard.vue.d.ts +16 -61
- package/dist/components/VvCard/{VvCard.d.ts → index.d.ts} +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +357 -0
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -0
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +74 -0
- package/dist/components/VvCheckbox/index.d.ts +54 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +435 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +82 -0
- package/dist/components/VvCheckboxGroup/index.d.ts +32 -0
- package/dist/components/VvCombobox/VvCombobox.es.js +594 -0
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -0
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +153 -0
- package/dist/components/{VvSelect/VvSelect.d.ts → VvCombobox/index.d.ts} +33 -36
- package/dist/components/VvDialog/VvDialog.es.js +200 -0
- package/dist/components/VvDialog/VvDialog.umd.js +1 -0
- package/dist/components/VvDialog/VvDialog.vue.d.ts +28 -132
- package/dist/components/VvDialog/{VvDialog.d.ts → index.d.ts} +2 -6
- package/dist/components/VvDropdown/VvDropdown.es.js +218 -0
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -0
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +41 -147
- package/dist/components/VvDropdown/index.d.ts +37 -0
- package/dist/components/VvIcon/VvIcon.es.js +124 -0
- package/dist/components/VvIcon/VvIcon.umd.js +1 -0
- package/dist/components/VvIcon/VvIcon.vue.d.ts +36 -150
- package/dist/components/VvIcon/{VvIcon.d.ts → index.d.ts} +9 -0
- package/dist/components/VvInputText/VvInputClearAction.d.ts +36 -0
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +56 -0
- package/dist/components/VvInputText/VvInputStepAction.d.ts +37 -0
- package/dist/components/VvInputText/VvInputText.es.js +764 -0
- package/dist/components/VvInputText/VvInputText.umd.js +1 -0
- package/dist/components/VvInputText/VvInputText.vue.d.ts +214 -256
- package/dist/components/VvInputText/VvInputTextActions.d.ts +3 -0
- package/dist/components/VvInputText/index.d.ts +182 -0
- package/dist/components/VvProgress/VvProgress.es.js +71 -0
- package/dist/components/VvProgress/VvProgress.umd.js +1 -0
- package/dist/components/VvProgress/VvProgress.vue.d.ts +20 -107
- package/dist/components/VvProgress/index.d.ts +30 -0
- package/dist/components/VvRadio/VvRadio.es.js +320 -0
- package/dist/components/VvRadio/VvRadio.umd.js +1 -0
- package/dist/components/VvRadio/VvRadio.vue.d.ts +55 -125
- package/dist/components/VvRadio/index.d.ts +40 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +398 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +56 -238
- package/dist/components/VvRadioGroup/index.d.ts +32 -0
- package/dist/components/VvSelect/VvSelect.es.js +415 -0
- package/dist/components/VvSelect/VvSelect.umd.js +1 -0
- package/dist/components/VvSelect/VvSelect.vue.d.ts +112 -262
- package/dist/components/VvSelect/index.d.ts +96 -0
- package/dist/components/VvTextarea/VvTextarea.es.js +463 -0
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -0
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +147 -273
- package/dist/components/VvTextarea/index.d.ts +102 -0
- package/dist/components/common/HintSlot.d.ts +12 -6
- package/dist/components/index.d.ts +19 -12
- package/dist/components/index.es.js +2309 -0
- package/dist/components/index.umd.js +1 -0
- package/dist/composables/group/types/IAccordionGroupState.d.ts +3 -4
- package/dist/composables/group/types/IButtonGroupState.d.ts +5 -11
- package/dist/composables/group/types/IGroupState.d.ts +3 -6
- package/dist/composables/group/types/IInputGroup.d.ts +1 -4
- package/dist/composables/group/useInjectedGroupState.d.ts +4 -4
- package/dist/composables/group/useProvideGroupState.d.ts +2 -2
- package/dist/composables/useComponentFocus.d.ts +4 -0
- package/dist/composables/{icons/useComponentIcons.d.ts → useComponentIcons.d.ts} +8 -1
- package/dist/composables/useDebouncedInput.d.ts +2 -0
- package/dist/composables/useModifiers.d.ts +3 -2
- package/dist/composables/useOptions.d.ts +6 -0
- package/dist/composables/useTextCount.d.ts +10 -0
- package/dist/constants.d.ts +4 -4
- package/dist/icons.d.ts +1881 -0
- package/dist/icons.es.js +12 -14
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.es.js +2350 -0
- package/dist/index.umd.js +1 -0
- package/dist/props/index.d.ts +322 -13
- package/dist/resolvers/unplugin.d.ts +27 -0
- package/dist/resolvers/unplugin.es.js +40 -0
- package/dist/resolvers/unplugin.umd.js +1 -0
- package/dist/stories/Accordion/Accordion.settings.d.ts +63 -0
- package/dist/stories/Accordion/Accordion.test.d.ts +2 -0
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +58 -0
- package/dist/stories/AccordionGroup/AccordionGroup.test.d.ts +2 -0
- package/dist/stories/Badge/Badge.settings.d.ts +32 -0
- package/dist/stories/Badge/Badge.test.d.ts +2 -0
- package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +29 -0
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +2 -0
- package/dist/stories/Button/Button.settings.d.ts +200 -0
- package/dist/stories/Button/Button.test.d.ts +1 -10
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +38 -0
- package/dist/stories/ButtonGroup/ButtonGroup.test.d.ts +2 -0
- package/dist/stories/Card/Card.settings.d.ts +70 -0
- package/dist/stories/Card/Card.test.d.ts +2 -0
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +165 -0
- package/dist/stories/Checkbox/Checkbox.test.d.ts +2 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +164 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.test.d.ts +2 -0
- package/dist/stories/Combobox/Combobox.settings.d.ts +267 -0
- package/dist/stories/Combobox/Combobox.test.d.ts +2 -0
- package/dist/stories/Dialog/Dialog.settings.d.ts +55 -0
- package/dist/stories/Dialog/Dialog.test.d.ts +2 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +75 -0
- package/dist/stories/Dropdown/Dropdown.test.d.ts +2 -0
- package/dist/stories/Icon/Icon.settings.d.ts +74 -0
- package/dist/stories/InputText/InputText.settings.d.ts +445 -0
- package/dist/stories/InputText/InputText.test.d.ts +2 -0
- package/dist/stories/Progress/Progress.settings.d.ts +38 -0
- package/dist/stories/Progress/Progress.test.d.ts +2 -0
- package/dist/stories/Radio/Radio.settings.d.ts +139 -0
- package/dist/stories/Radio/Radio.test.d.ts +2 -0
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +164 -0
- package/dist/stories/RadioGroup/RadioGroup.test.d.ts +2 -0
- package/dist/stories/Select/Select.settings.d.ts +265 -0
- package/dist/stories/Select/Select.test.d.ts +2 -0
- package/dist/stories/Textarea/Textarea.settings.d.ts +336 -0
- package/dist/stories/Textarea/Textarea.test.d.ts +2 -0
- package/dist/stories/argTypes.d.ts +793 -0
- package/dist/test/expect.d.ts +3 -0
- package/dist/test/options.d.ts +1 -0
- package/dist/test/sleep.d.ts +1 -0
- package/dist/utils/ObjectUtilities.d.ts +82 -95
- package/env.d.ts +1 -0
- package/package.json +198 -124
- package/src/{DesignSystem.ts → Volver.ts} +57 -29
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordion/VvAccordion.vue +94 -78
- package/src/components/VvAccordion/index.ts +72 -0
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +93 -53
- package/src/components/VvAccordionGroup/{VvAccordionGroup.ts → index.ts} +18 -14
- package/src/components/VvBadge/VvBadge.vue +17 -8
- package/src/components/VvBadge/index.ts +6 -0
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +26 -24
- package/src/components/VvBreadcrumb/{VvBreadcrumb.ts → index.ts} +1 -2
- package/src/components/VvButton/VvButton.vue +174 -154
- package/src/components/VvButton/index.ts +171 -0
- package/src/components/VvButtonGroup/VvButtonGroup.vue +76 -48
- package/src/components/VvButtonGroup/index.ts +19 -0
- package/src/components/VvCard/VvCard.vue +20 -22
- package/src/components/VvCard/{VvCard.ts → index.ts} +1 -1
- package/src/components/VvCheckbox/VvCheckbox.vue +172 -0
- package/src/components/VvCheckbox/index.ts +60 -0
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +85 -0
- package/src/components/VvCheckboxGroup/index.ts +5 -0
- package/src/components/VvCombobox/VvCombobox.vue +227 -0
- package/src/components/VvCombobox/index.ts +82 -0
- package/src/components/VvDialog/VvDialog.vue +69 -67
- package/src/components/VvDialog/index.ts +10 -0
- package/src/components/VvDropdown/VvDropdown.vue +112 -114
- package/src/components/VvDropdown/index.ts +25 -0
- package/src/components/VvIcon/README.md +64 -0
- package/src/components/VvIcon/VvIcon.vue +122 -107
- package/src/components/VvIcon/{VvIcon.ts → index.ts} +17 -8
- package/src/components/VvInputText/VvInputClearAction.ts +53 -0
- package/src/components/VvInputText/VvInputPasswordAction.ts +70 -0
- package/src/components/VvInputText/VvInputStepAction.ts +49 -0
- package/src/components/VvInputText/VvInputText.vue +293 -252
- package/src/components/VvInputText/VvInputTextActions.ts +100 -0
- package/src/components/VvInputText/index.ts +140 -0
- package/src/components/VvProgress/VvProgress.vue +29 -29
- package/src/components/VvProgress/index.ts +32 -0
- package/src/components/VvRadio/VvRadio.vue +90 -119
- package/src/components/VvRadio/index.ts +40 -0
- package/src/components/VvRadioGroup/VvRadioGroup.vue +76 -69
- package/src/components/VvRadioGroup/index.ts +5 -0
- package/src/components/VvSelect/VvSelect.vue +165 -186
- package/src/components/VvSelect/index.ts +74 -0
- package/src/components/VvTextarea/VvTextarea.vue +188 -180
- package/src/components/VvTextarea/index.ts +50 -0
- package/src/components/common/HintSlot.ts +169 -121
- package/src/components/index.ts +19 -12
- package/src/composables/group/types/IAccordionGroupState.ts +3 -4
- package/src/composables/group/types/IButtonGroupState.ts +5 -11
- package/src/composables/group/types/IGroupState.ts +4 -6
- package/src/composables/group/types/IInputGroup.ts +1 -4
- package/src/composables/group/useInjectedGroupState.ts +21 -33
- package/src/composables/group/useProvideGroupState.ts +5 -7
- package/src/composables/useComponentFocus.ts +17 -0
- package/src/composables/useComponentIcons.ts +96 -0
- package/src/composables/useDebouncedInput.ts +25 -0
- package/src/composables/useModifiers.ts +58 -14
- package/src/composables/useOptions.ts +31 -0
- package/src/composables/useTextCount.ts +57 -0
- package/src/constants.ts +5 -7
- package/src/directives/{.README → .gitkeep} +0 -0
- package/src/icons.ts +7 -0
- package/src/index.ts +12 -5
- package/src/props/index.ts +204 -15
- package/src/resolvers/unplugin.ts +103 -0
- package/src/shims.d.ts +13 -0
- package/src/stories/Accordion/Accordion.settings.ts +46 -0
- package/src/stories/Accordion/Accordion.stories.mdx +21 -21
- package/src/stories/Accordion/Accordion.test.ts +61 -0
- package/src/stories/Accordion/AccordionSlots.stories.mdx +46 -70
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +55 -0
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +24 -27
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +50 -0
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +56 -0
- package/src/stories/Badge/Badge.settings.ts +26 -0
- package/src/stories/Badge/Badge.stories.mdx +36 -24
- package/src/stories/Badge/Badge.test.ts +12 -0
- package/src/stories/Badge/BadgeSlots.stories.mdx +20 -0
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +41 -0
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +32 -29
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +50 -0
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +43 -0
- package/src/stories/Button/Button.settings.ts +150 -0
- package/src/stories/Button/Button.stories.mdx +20 -54
- package/src/stories/Button/Button.test.ts +35 -46
- package/src/stories/Button/ButtonIcon.stories.mdx +139 -29
- package/src/stories/Button/ButtonLink.stories.mdx +58 -111
- package/src/stories/Button/ButtonLoading.stories.mdx +89 -62
- package/src/stories/Button/ButtonModifiers.stories.mdx +198 -121
- package/src/stories/Button/ButtonSlots.stories.mdx +83 -95
- package/src/stories/Button/ButtonState.stories.mdx +75 -0
- package/src/stories/Button/ButtonToggle.stories.mdx +50 -0
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +28 -0
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +16 -18
- package/src/stories/ButtonGroup/ButtonGroup.test.ts +35 -0
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.mdx +52 -0
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +45 -114
- package/src/stories/Card/Card.settings.ts +55 -0
- package/src/stories/Card/Card.stories.mdx +27 -11
- package/src/stories/Card/Card.test.ts +23 -0
- package/src/stories/Card/CardSlots.stories.mdx +80 -24
- package/src/stories/Checkbox/Checkbox.settings.ts +43 -0
- package/src/stories/Checkbox/Checkbox.stories.mdx +163 -0
- package/src/stories/Checkbox/Checkbox.test.ts +81 -0
- package/src/stories/Checkbox/CheckboxBinary.stories.mdx +68 -0
- package/src/stories/Checkbox/CheckboxSlots.stories.mdx +46 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +15 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +134 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +83 -0
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.mdx +100 -0
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +67 -0
- package/src/stories/Combobox/Combobox.settings.ts +122 -0
- package/src/stories/Combobox/Combobox.stories.mdx +153 -0
- package/src/stories/Combobox/Combobox.test.ts +96 -0
- package/src/stories/Combobox/ComboboxMultiple.stories.mdx +74 -0
- package/src/stories/Combobox/ComboboxOptions.stories.mdx +100 -0
- package/src/stories/Combobox/ComboboxSlots.stories.mdx +48 -0
- package/src/stories/Dialog/Dialog.settings.ts +45 -0
- package/src/stories/Dialog/Dialog.stories.mdx +42 -16
- package/src/stories/Dialog/Dialog.test.ts +69 -0
- package/src/stories/Dialog/DialogSlots.stories.mdx +63 -0
- package/src/stories/Dropdown/Dropdown.settings.ts +42 -0
- package/src/stories/Dropdown/Dropdown.stories.mdx +85 -29
- package/src/stories/Dropdown/Dropdown.test.ts +43 -0
- package/src/stories/Dropdown/DropdownOptions.stories.mdx +87 -67
- package/src/stories/Icon/Icon.settings.ts +72 -0
- package/src/stories/Icon/Icon.stories.mdx +76 -59
- package/src/stories/Icon/IconsCollection.stories.mdx +68 -0
- package/src/stories/InputText/InputText.settings.ts +221 -0
- package/src/stories/InputText/InputText.stories.mdx +142 -69
- package/src/stories/InputText/InputText.test.ts +125 -0
- package/src/stories/InputText/InputTextIconPosition.stories.mdx +63 -16
- package/src/stories/InputText/InputTextLength.stories.mdx +110 -0
- package/src/stories/InputText/InputTextMinMax.stories.mdx +112 -0
- package/src/stories/InputText/InputTextSlots.stories.mdx +61 -22
- package/src/stories/InputText/InputTextType.stories.mdx +207 -29
- package/src/stories/Progress/Progress.settings.ts +33 -0
- package/src/stories/Progress/Progress.stories.mdx +12 -14
- package/src/stories/Progress/Progress.test.ts +9 -0
- package/src/stories/Radio/Radio.settings.ts +15 -0
- package/src/stories/Radio/Radio.stories.mdx +102 -42
- package/src/stories/Radio/Radio.test.ts +70 -0
- package/src/stories/Radio/RadioSlots.stories.mdx +39 -22
- package/src/stories/RadioGroup/RadioGroup.settings.ts +15 -0
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +115 -54
- package/src/stories/RadioGroup/RadioGroup.test.ts +83 -0
- package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +83 -41
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +49 -144
- package/src/stories/Select/Select.settings.ts +100 -0
- package/src/stories/Select/Select.stories.mdx +113 -33
- package/src/stories/Select/Select.test.ts +82 -0
- package/src/stories/Select/SelectOptions.stories.mdx +91 -69
- package/src/stories/Select/SelectSlots.stories.mdx +48 -0
- package/src/stories/Textarea/Textarea.settings.ts +96 -0
- package/src/stories/Textarea/Textarea.stories.mdx +160 -58
- package/src/stories/Textarea/Textarea.test.ts +90 -0
- package/src/stories/Textarea/TextareaLength.stories.mdx +110 -0
- package/src/stories/Textarea/TextareaSlots.stories.mdx +61 -23
- package/src/stories/Textarea/TextareatIconPosition.stories.mdx +78 -0
- package/src/stories/argTypes.ts +433 -0
- package/src/test/expect.ts +27 -6
- package/src/test/options.ts +17 -0
- package/src/test/sleep.ts +2 -0
- package/src/test/types.d.ts +14 -0
- package/src/types/generic.d.ts +5 -0
- package/src/utils/ObjectUtilities.ts +253 -244
- package/dist/components/VvAccordion/VvAccordion.d.ts +0 -32
- package/dist/components/VvAccordion/useAccordionProps.d.ts +0 -16
- package/dist/components/VvAccordion/vv-accordion.es.js +0 -262
- package/dist/components/VvAccordion/vv-accordion.umd.js +0 -1
- package/dist/components/VvAccordionGroup/vv-accordion-group.es.js +0 -315
- package/dist/components/VvAccordionGroup/vv-accordion-group.umd.js +0 -1
- package/dist/components/VvBadge/vv-badge.es.js +0 -18
- package/dist/components/VvBadge/vv-badge.umd.js +0 -1
- package/dist/components/VvBreadcrumb/vv-breadcrumb.es.js +0 -206
- package/dist/components/VvBreadcrumb/vv-breadcrumb.umd.js +0 -1
- package/dist/components/VvButton/VvButton.d.ts +0 -115
- package/dist/components/VvButton/useButtonGroupProps.d.ts +0 -23
- package/dist/components/VvButton/vv-button.es.js +0 -424
- package/dist/components/VvButton/vv-button.umd.js +0 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.d.ts +0 -57
- package/dist/components/VvButtonGroup/vv-button-group.es.js +0 -210
- package/dist/components/VvButtonGroup/vv-button-group.umd.js +0 -1
- package/dist/components/VvCard/vv-card.es.js +0 -188
- package/dist/components/VvCard/vv-card.umd.js +0 -1
- package/dist/components/VvCheck/VvCheck.d.ts +0 -47
- package/dist/components/VvCheck/VvCheck.vue.d.ts +0 -165
- package/dist/components/VvCheck/useCheckProps.d.ts +0 -16
- package/dist/components/VvCheck/vv-check.es.js +0 -321
- package/dist/components/VvCheck/vv-check.umd.js +0 -1
- package/dist/components/VvCheckGroup/VvCheckGroup.d.ts +0 -65
- package/dist/components/VvCheckGroup/VvCheckGroup.vue.d.ts +0 -272
- package/dist/components/VvCheckGroup/vv-check-group.es.js +0 -434
- package/dist/components/VvCheckGroup/vv-check-group.umd.js +0 -2
- package/dist/components/VvDialog/constants.d.ts +0 -5
- package/dist/components/VvDialog/vv-dialog.es.js +0 -315
- package/dist/components/VvDialog/vv-dialog.umd.js +0 -1
- package/dist/components/VvDropdown/VvDropdown.d.ts +0 -52
- package/dist/components/VvDropdown/vv-dropdown.es.js +0 -236
- package/dist/components/VvDropdown/vv-dropdown.umd.js +0 -1
- package/dist/components/VvIcon/vv-icon.es.js +0 -229
- package/dist/components/VvIcon/vv-icon.umd.js +0 -1
- package/dist/components/VvInputText/VvInputText.d.ts +0 -59
- package/dist/components/VvInputText/constants.d.ts +0 -55
- package/dist/components/VvInputText/useInputNumber.d.ts +0 -16
- package/dist/components/VvInputText/useInputPassword.d.ts +0 -16
- package/dist/components/VvInputText/vv-input-text.es.js +0 -596
- package/dist/components/VvInputText/vv-input-text.umd.js +0 -2
- package/dist/components/VvNativeSelect/VvNativeSelect.d.ts +0 -70
- package/dist/components/VvNativeSelect/VvNativeSelect.vue.d.ts +0 -228
- package/dist/components/VvNativeSelect/vv-native-select.es.js +0 -395
- package/dist/components/VvNativeSelect/vv-native-select.umd.js +0 -2
- package/dist/components/VvProgress/VvProgress.d.ts +0 -29
- package/dist/components/VvProgress/vv-progress.es.js +0 -185
- package/dist/components/VvProgress/vv-progress.umd.js +0 -1
- package/dist/components/VvRadio/VvRadio.d.ts +0 -22
- package/dist/components/VvRadio/useRadioProps.d.ts +0 -15
- package/dist/components/VvRadio/vv-radio.es.js +0 -309
- package/dist/components/VvRadio/vv-radio.umd.js +0 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.d.ts +0 -54
- package/dist/components/VvRadioGroup/vv-radio-group.es.js +0 -423
- package/dist/components/VvRadioGroup/vv-radio-group.umd.js +0 -2
- package/dist/components/VvSelect/vv-select.es.js +0 -427
- package/dist/components/VvSelect/vv-select.umd.js +0 -2
- package/dist/components/VvTextarea/VvTextarea.d.ts +0 -67
- package/dist/components/VvTextarea/constants.d.ts +0 -19
- package/dist/components/VvTextarea/vv-textarea.es.js +0 -472
- package/dist/components/VvTextarea/vv-textarea.umd.js +0 -2
- package/dist/composables/focus/useComponentFocus.d.ts +0 -7
- package/dist/composables/options/useOptions.d.ts +0 -5
- package/dist/stories/Icon/IconList.vue.d.ts +0 -44
- package/dist/ui-vue.es.js +0 -2985
- package/dist/ui-vue.umd.js +0 -2
- package/src/assets/icons/index.js +0 -7
- package/src/components/VvAccordion/VvAccordion.ts +0 -34
- package/src/components/VvAccordion/useAccordionProps.ts +0 -45
- package/src/components/VvBadge/VvBadge.ts +0 -4
- package/src/components/VvButton/VvButton.ts +0 -117
- package/src/components/VvButton/useButtonGroupProps.ts +0 -51
- package/src/components/VvButtonGroup/VvButtonGroup.ts +0 -37
- package/src/components/VvCheck/VvCheck.ts +0 -48
- package/src/components/VvCheck/VvCheck.vue +0 -149
- package/src/components/VvCheck/useCheckProps.ts +0 -41
- package/src/components/VvCheckGroup/VvCheckGroup.ts +0 -34
- package/src/components/VvCheckGroup/VvCheckGroup.vue +0 -84
- package/src/components/VvDialog/VvDialog.ts +0 -17
- package/src/components/VvDialog/constants.ts +0 -5
- package/src/components/VvDropdown/VvDropdown.ts +0 -46
- package/src/components/VvInputText/VvInputText.ts +0 -49
- package/src/components/VvInputText/constants.ts +0 -34
- package/src/components/VvInputText/useInputNumber.ts +0 -40
- package/src/components/VvInputText/useInputPassword.ts +0 -38
- package/src/components/VvNativeSelect/VvNativeSelect.ts +0 -70
- package/src/components/VvNativeSelect/VvNativeSelect.vue +0 -106
- package/src/components/VvProgress/VvProgress.ts +0 -28
- package/src/components/VvRadio/VvRadio.ts +0 -25
- package/src/components/VvRadio/useRadioProps.ts +0 -40
- package/src/components/VvRadioGroup/VvRadioGroup.ts +0 -25
- package/src/components/VvSelect/VvSelect.ts +0 -91
- package/src/components/VvTextarea/VvTextarea.ts +0 -55
- package/src/components/VvTextarea/constants.ts +0 -14
- package/src/composables/focus/useComponentFocus.ts +0 -22
- package/src/composables/icons/useComponentIcons.ts +0 -52
- package/src/composables/options/useOptions.ts +0 -27
- package/src/stories/Accordion/AccordionBordered.stories.mdx +0 -26
- package/src/stories/Accordion/AccordionIconRight.stories.mdx +0 -32
- package/src/stories/Accordion/accordionTest.js +0 -36
- package/src/stories/AccordionGroup/Accordion.stories.mdx +0 -42
- package/src/stories/AccordionGroup/AccordionItems.stories.mdx +0 -51
- package/src/stories/AccordionGroup/accordionGroupTest.js +0 -51
- package/src/stories/Badge/BadgeColor.stories.mdx +0 -54
- package/src/stories/Badge/BadgeDot.stories.mdx +0 -20
- package/src/stories/Badge/BadgeTest.js +0 -21
- package/src/stories/Breadcrumb/BreadcrumbMultiline.stories.mdx +0 -41
- package/src/stories/Button/ButtonBadge.stories.mdx +0 -34
- package/src/stories/Button/ButtonIconPosition.stories.mdx +0 -106
- package/src/stories/Button/ButtonVariant.stories.mdx +0 -205
- package/src/stories/Button/test.js +0 -41
- package/src/stories/ButtonGroup/ButtonGroupAction.stories.mdx +0 -83
- package/src/stories/ButtonGroup/ButtonGroupActionQuiet.stories.mdx +0 -50
- package/src/stories/ButtonGroup/ButtonGroupBlock.stories.mdx +0 -40
- package/src/stories/ButtonGroup/ButtonGroupCompact.stories.mdx +0 -38
- package/src/stories/ButtonGroup/ButtonGroupRounded.stories.mdx +0 -77
- package/src/stories/ButtonGroup/ButtonGroupTest.js +0 -61
- package/src/stories/ButtonGroup/ButtonGroupVertical.stories.mdx +0 -38
- package/src/stories/Card/CardVariant.stories.mdx +0 -37
- package/src/stories/Check/Check.stories.mdx +0 -62
- package/src/stories/Check/CheckBinary.stories.mdx +0 -80
- package/src/stories/Check/CheckDisabled.stories.mdx +0 -30
- package/src/stories/Check/CheckError.stories.mdx +0 -64
- package/src/stories/Check/CheckErrorTests.js +0 -72
- package/src/stories/Check/CheckHintLabel.stories.mdx +0 -30
- package/src/stories/Check/CheckPropertyTest.js +0 -101
- package/src/stories/Check/CheckReadonly.stories.mdx +0 -30
- package/src/stories/Check/CheckSlots.stories.mdx +0 -51
- package/src/stories/Check/CheckSwitch.stories.mdx +0 -30
- package/src/stories/CheckGroup/CheckGroup.stories.mdx +0 -69
- package/src/stories/CheckGroup/CheckGroupDisabled.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupError.stories.mdx +0 -28
- package/src/stories/CheckGroup/CheckGroupHintLabel.stories.mdx +0 -27
- package/src/stories/CheckGroup/CheckGroupLabel.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupOptionLabel.stories.mdx +0 -48
- package/src/stories/CheckGroup/CheckGroupOptionValue.stories.mdx +0 -48
- package/src/stories/CheckGroup/CheckGroupOptions.stories.mdx +0 -40
- package/src/stories/CheckGroup/CheckGroupReadonly.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupSlots.stories.mdx +0 -152
- package/src/stories/CheckGroup/CheckGroupValid.stories.mdx +0 -28
- package/src/stories/CheckGroup/CheckGroupVertical.stories.mdx +0 -26
- package/src/stories/Dialog/DialogAutoClose.stories.mdx +0 -18
- package/src/stories/Dialog/DialogSize.stories.mdx +0 -36
- package/src/stories/Dropdown/DropdownDisabled.stories.mdx +0 -25
- package/src/stories/Dropdown/DropdownLabelNoResults.stories.mdx +0 -25
- package/src/stories/Dropdown/DropdownMaxValues.stories.mdx +0 -26
- package/src/stories/Dropdown/DropdownMultiple.stories.mdx +0 -56
- package/src/stories/Dropdown/DropdownUseObject.stories.mdx +0 -58
- package/src/stories/Icon/IconList.vue +0 -34
- package/src/stories/Icon/IconPrefix.stories.mdx +0 -79
- package/src/stories/Icon/IconRemote.stories.mdx +0 -39
- package/src/stories/Icon/IconTest.js +0 -27
- package/src/stories/Icon/IconsList.stories.mdx +0 -35
- package/src/stories/InputText/InputTextAutocomplete.stories.mdx +0 -15
- package/src/stories/InputText/InputTextAutofocus.stories.mdx +0 -20
- package/src/stories/InputText/InputTextDisabled.stories.mdx +0 -19
- package/src/stories/InputText/InputTextError.stories.mdx +0 -19
- package/src/stories/InputText/InputTextFloating.stories.mdx +0 -20
- package/src/stories/InputText/InputTextHintLabel.stories.mdx +0 -18
- package/src/stories/InputText/InputTextIcon.stories.mdx +0 -18
- package/src/stories/InputText/InputTextLabel.stories.mdx +0 -15
- package/src/stories/InputText/InputTextLoading.stories.mdx +0 -19
- package/src/stories/InputText/InputTextMax.stories.mdx +0 -31
- package/src/stories/InputText/InputTextMaxLength.stories.mdx +0 -15
- package/src/stories/InputText/InputTextMin.stories.mdx +0 -31
- package/src/stories/InputText/InputTextMinLength.stories.mdx +0 -15
- package/src/stories/InputText/InputTextPlaceholder.stories.mdx +0 -15
- package/src/stories/InputText/InputTextReadonly.stories.mdx +0 -19
- package/src/stories/InputText/InputTextStep.stories.mdx +0 -31
- package/src/stories/InputText/InputTextValid.stories.mdx +0 -19
- package/src/stories/NativeSelect/NativeSelect.stories.mdx +0 -53
- package/src/stories/NativeSelect/NativeSelectDisabled.stories.mdx +0 -32
- package/src/stories/NativeSelect/NativeSelectError.stories.mdx +0 -36
- package/src/stories/NativeSelect/NativeSelectHintLabel.stories.mdx +0 -34
- package/src/stories/NativeSelect/NativeSelectIconLeftRight.stories.mdx +0 -42
- package/src/stories/NativeSelect/NativeSelectLoading.stories.mdx +0 -27
- package/src/stories/NativeSelect/NativeSelectOptions.stories.mdx +0 -78
- package/src/stories/NativeSelect/NativeSelectReadonly.stories.mdx +0 -34
- package/src/stories/NativeSelect/NativeSelectUseObject.stories.mdx +0 -66
- package/src/stories/NativeSelect/NativeSelectValid.stories.mdx +0 -36
- package/src/stories/NativeSelect/NativeSelectValueKey.stories.mdx +0 -66
- package/src/stories/Progress/ProgressDeterminate.stories.mdx +0 -19
- package/src/stories/Radio/RadioDisabled.stories.mdx +0 -30
- package/src/stories/Radio/RadioError.stories.mdx +0 -64
- package/src/stories/Radio/RadioHintLabel.stories.mdx +0 -30
- package/src/stories/Radio/RadioTest.js +0 -89
- package/src/stories/RadioGroup/RadioGroupDisabled.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupError.stories.mdx +0 -31
- package/src/stories/RadioGroup/RadioGroupHintLabel.stories.mdx +0 -28
- package/src/stories/RadioGroup/RadioGroupLabel.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupOptionLabel.stories.mdx +0 -65
- package/src/stories/RadioGroup/RadioGroupOptionValue.stories.mdx +0 -65
- package/src/stories/RadioGroup/RadioGroupReadonly.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupValid.stories.mdx +0 -31
- package/src/stories/RadioGroup/RadioGroupVertical.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioOptionsTest.js +0 -78
- package/src/stories/RadioGroup/RadioPropertyTest.js +0 -131
- package/src/stories/RadioGroup/RadioSlotsTest.js +0 -20
- package/src/stories/Select/SelectDisabled.stories.mdx +0 -32
- package/src/stories/Select/SelectMaxValues.stories.mdx +0 -33
- package/src/stories/Select/SelectMultiple.stories.mdx +0 -64
- package/src/stories/Select/SelectSearchable.stories.mdx +0 -80
- package/src/stories/Select/SelectSeparator.stories.mdx +0 -64
- package/src/stories/Select/SelectUseObject.stories.mdx +0 -66
- package/src/stories/Textarea/TextareaAutocomplete.stories.mdx +0 -15
- package/src/stories/Textarea/TextareaAutofocus.stories.mdx +0 -20
- package/src/stories/Textarea/TextareaDisabled.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaError.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaFloating.stories.mdx +0 -20
- package/src/stories/Textarea/TextareaHintLabel.stories.mdx +0 -18
- package/src/stories/Textarea/TextareaIcon.stories.mdx +0 -18
- package/src/stories/Textarea/TextareaIconPosition.stories.mdx +0 -31
- package/src/stories/Textarea/TextareaLabel.stories.mdx +0 -15
- package/src/stories/Textarea/TextareaLoading.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaMaxLength.stories.mdx +0 -15
- package/src/stories/Textarea/TextareaMinLength.stories.mdx +0 -15
- package/src/stories/Textarea/TextareaPlaceholder.stories.mdx +0 -15
- package/src/stories/Textarea/TextareaReadonly.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaRowsCols.stories.mdx +0 -31
- package/src/stories/Textarea/TextareaValid.stories.mdx +0 -19
- package/src/stories/stories.scss +0 -24
- package/src/stories/volver-ui-vue.stories.mdx +0 -71
- package/src/types/.README +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 volverjs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
[](https://volverjs.github.io/ui-vue)
|
|
4
4
|
|
|
5
5
|
## @volverjs/ui-vue
|
|
6
6
|
|
|
7
|
-
`vue` `components` `
|
|
8
|
-
`input` `button` `
|
|
7
|
+
`vue` `components` `component-library` `design-system` \
|
|
8
|
+
`input` `button` `accordion` `badge` `combobox` `breadcrumb` `dialog`\
|
|
9
|
+
`checkbox` `radio` `textarea` `badge`
|
|
9
10
|
|
|
10
11
|
<br>
|
|
11
12
|
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
|
|
14
15
|
<br>
|
|
15
16
|
|
|
16
|
-
[](https://24consulting.it)
|
|
17
18
|
|
|
18
19
|
<br>
|
|
19
20
|
|
|
@@ -21,12 +22,105 @@
|
|
|
21
22
|
|
|
22
23
|
## Install
|
|
23
24
|
|
|
25
|
+
`@volverjs/ui-vue` is closely linked to [`@volverjs/style`](https://volverjs.github.io/style/) and is neeeded to style components.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# pnpm
|
|
29
|
+
pnpm add @volverjs/style @volverjs/ui-vue
|
|
30
|
+
|
|
31
|
+
# yarn
|
|
32
|
+
yarn add @volverjs/style @volverjs/ui-vue
|
|
33
|
+
|
|
34
|
+
# npm
|
|
35
|
+
npm install @volverjs/style @volverjs/ui-vue --save
|
|
24
36
|
```
|
|
25
|
-
|
|
37
|
+
|
|
38
|
+
<br />
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
Install the plugin in your `main.ts` file.
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
import { createApp } from 'vue'
|
|
46
|
+
import App from './App.vue'
|
|
47
|
+
|
|
48
|
+
// import @volverjs/ui-vue plugin
|
|
49
|
+
import { VolverPlugin } from '@volverjs/ui-vue'
|
|
50
|
+
// import @volverjs/ui-vue icons collections
|
|
51
|
+
import iconsCollections from '@volverjs/ui-vue/icons'
|
|
52
|
+
/*
|
|
53
|
+
* import @volverjs/style reset and props
|
|
54
|
+
* for scss support you can import the scss files
|
|
55
|
+
* import '@volverjs/style/scss/reset'
|
|
56
|
+
* import '@volverjs/style/scss/props'
|
|
57
|
+
*/
|
|
58
|
+
import '@volverjs/style/reset'
|
|
59
|
+
import '@volverjs/style/props'
|
|
60
|
+
|
|
61
|
+
const app = createApp(App).mount('#app')
|
|
62
|
+
|
|
63
|
+
// install the plugin
|
|
64
|
+
app.use(VolverPlugin, {
|
|
65
|
+
iconsCollections
|
|
66
|
+
})
|
|
26
67
|
```
|
|
27
68
|
|
|
28
|
-
|
|
69
|
+
Than you can import components and use them in your templates.
|
|
29
70
|
|
|
30
71
|
```html
|
|
31
|
-
<
|
|
72
|
+
<script setup lang="ts">
|
|
73
|
+
import { VvButton } from '@volverjs/ui-vue'
|
|
74
|
+
/*
|
|
75
|
+
* import the component style
|
|
76
|
+
* for scss support you can import the scss file
|
|
77
|
+
* import '@volverjs/style/scss/vv-button'
|
|
78
|
+
*/
|
|
79
|
+
import '@volverjs/style/vv-button'
|
|
80
|
+
</script>
|
|
81
|
+
|
|
82
|
+
<template>
|
|
83
|
+
<VvButton label="Button" />
|
|
84
|
+
</template>
|
|
32
85
|
```
|
|
86
|
+
|
|
87
|
+
## Icons Collections
|
|
88
|
+
|
|
89
|
+
`@volverjs/ui-vue` comes with a set of icons with different levels of details. You can use them by importing `@volverjs/ui-vue/icons`.
|
|
90
|
+
|
|
91
|
+
To learn more about icons collections, check [icons documentation](src/components/VvIcon/README.md).
|
|
92
|
+
|
|
93
|
+
## Unplugin Resolver
|
|
94
|
+
|
|
95
|
+
You can use `@volverjs/ui-vue` with [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) to automatically import components and styles.
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
// vite.config.ts
|
|
99
|
+
import { defineConfig } from 'vite'
|
|
100
|
+
import Components from 'unplugin-vue-components/vite'
|
|
101
|
+
import { VolverResolver } from '@volverjs/ui-vue/resolvers/unplugin'
|
|
102
|
+
|
|
103
|
+
export default defineConfig({
|
|
104
|
+
// ...
|
|
105
|
+
plugins: [
|
|
106
|
+
// ...
|
|
107
|
+
Components({
|
|
108
|
+
resolvers: [
|
|
109
|
+
VolverResolver({
|
|
110
|
+
// enable/disable import of style
|
|
111
|
+
// default: false
|
|
112
|
+
importStyle: 'css' // or 'scss'
|
|
113
|
+
})
|
|
114
|
+
]
|
|
115
|
+
})
|
|
116
|
+
]
|
|
117
|
+
})
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Documentation
|
|
121
|
+
|
|
122
|
+
To learn more about `@volverjs/ui-vue`, check [its documentation](https://volverjs.github.io/ui-vue).
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
[MIT](http://opensource.org/licenses/MIT)
|
package/bin/icons.cjs
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
(function(global, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("fs"), require("yargs"), require("yargs/helpers"), require("@iconify/tools"), require("path"), require("@iconify/utils")) : typeof define === "function" && define.amd ? define(["exports", "fs", "yargs", "yargs/helpers", "@iconify/tools", "path", "@iconify/utils"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["generate-icons"] = {}, global.fileSystem, global.yargs, global.helpers, global.tools, global.path, global.utils));
|
|
3
|
+
})(this, function(exports2, fileSystem, yargs, helpers, tools, path, utils) {
|
|
4
|
+
"use strict";
|
|
5
|
+
function getAllFiles(dirPath, objectFiles = {}, prefix = "iconify") {
|
|
6
|
+
const files = fileSystem.readdirSync(dirPath);
|
|
7
|
+
files.forEach(function(file) {
|
|
8
|
+
if (fileSystem.statSync(dirPath + "/" + file).isDirectory()) {
|
|
9
|
+
objectFiles = getAllFiles(dirPath + "/" + file, objectFiles, file);
|
|
10
|
+
} else {
|
|
11
|
+
if (file.includes(".svg")) {
|
|
12
|
+
objectFiles[prefix] ? objectFiles[prefix].push(path.join(dirPath, "/", file)) : objectFiles[prefix] = [path.join(dirPath, "/", file)];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
return objectFiles;
|
|
17
|
+
}
|
|
18
|
+
async function generateIcons(prefix, files, destPath2) {
|
|
19
|
+
const iconSet = tools.blankIconSet(prefix);
|
|
20
|
+
for (const file of files) {
|
|
21
|
+
const content = await fileSystem.promises.readFile(file, {
|
|
22
|
+
encoding: "utf-8"
|
|
23
|
+
});
|
|
24
|
+
const svg = new tools.SVG(content);
|
|
25
|
+
await tools.cleanupSVG(svg);
|
|
26
|
+
await tools.parseColors(svg, {
|
|
27
|
+
defaultColor: "currentColor",
|
|
28
|
+
callback: (attr, colorStr, color) => {
|
|
29
|
+
return !color || tools.isEmptyColor(color) ? colorStr : "currentColor";
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
await tools.runSVGO(svg);
|
|
33
|
+
const fileName = file.replace(/^.*[\\/]/, "").split(".")[0].replace(/ /g, "-").replace(/[^a-z0-9-]/gi, "");
|
|
34
|
+
iconSet.fromSVG(fileName, svg);
|
|
35
|
+
}
|
|
36
|
+
const iconifyJson = iconSet.export();
|
|
37
|
+
try {
|
|
38
|
+
utils.validateIconSet(iconifyJson);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
throw new Error(
|
|
41
|
+
`Icon set is not valid: ${error == null ? void 0 : error.message}`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
fileSystem.writeFileSync(
|
|
45
|
+
`${destPath2}/${iconifyJson.prefix}.json`,
|
|
46
|
+
JSON.stringify(iconifyJson)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function createIconifyJsonFiles(srcPath2, destPath2) {
|
|
50
|
+
const objectFiles = getAllFiles(srcPath2);
|
|
51
|
+
if (!Object.keys(objectFiles).length) {
|
|
52
|
+
console.error(`There are no files in ${srcPath2}`);
|
|
53
|
+
} else {
|
|
54
|
+
Object.keys(objectFiles).forEach((prefix) => {
|
|
55
|
+
generateIcons(prefix, objectFiles[prefix], destPath2);
|
|
56
|
+
console.info(`Icons generated in: ${destPath2}/${prefix}.json
|
|
57
|
+
`);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const argv = yargs(helpers.hideBin(process.argv)).argv;
|
|
62
|
+
const srcPath = argv.srcPath;
|
|
63
|
+
const destPath = argv.destPath || srcPath;
|
|
64
|
+
if (!srcPath || !destPath) {
|
|
65
|
+
console.error(
|
|
66
|
+
"Please specify the srcPath and destPath with --srcPath and --destPath"
|
|
67
|
+
);
|
|
68
|
+
process.exit();
|
|
69
|
+
}
|
|
70
|
+
createIconifyJsonFiles(srcPath, destPath);
|
|
71
|
+
exports2.createIconifyJsonFiles = createIconifyJsonFiles;
|
|
72
|
+
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
73
|
+
});
|
package/bin/icons.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import fileSystem from "fs";
|
|
2
|
+
import yargs from "yargs";
|
|
3
|
+
import { hideBin } from "yargs/helpers";
|
|
4
|
+
import { blankIconSet, SVG, cleanupSVG, parseColors, isEmptyColor, runSVGO } from "@iconify/tools";
|
|
5
|
+
import path from "path";
|
|
6
|
+
import { validateIconSet } from "@iconify/utils";
|
|
7
|
+
function getAllFiles(dirPath, objectFiles = {}, prefix = "iconify") {
|
|
8
|
+
const files = fileSystem.readdirSync(dirPath);
|
|
9
|
+
files.forEach(function(file) {
|
|
10
|
+
if (fileSystem.statSync(dirPath + "/" + file).isDirectory()) {
|
|
11
|
+
objectFiles = getAllFiles(dirPath + "/" + file, objectFiles, file);
|
|
12
|
+
} else {
|
|
13
|
+
if (file.includes(".svg")) {
|
|
14
|
+
objectFiles[prefix] ? objectFiles[prefix].push(path.join(dirPath, "/", file)) : objectFiles[prefix] = [path.join(dirPath, "/", file)];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
return objectFiles;
|
|
19
|
+
}
|
|
20
|
+
async function generateIcons(prefix, files, destPath2) {
|
|
21
|
+
const iconSet = blankIconSet(prefix);
|
|
22
|
+
for (const file of files) {
|
|
23
|
+
const content = await fileSystem.promises.readFile(file, {
|
|
24
|
+
encoding: "utf-8"
|
|
25
|
+
});
|
|
26
|
+
const svg = new SVG(content);
|
|
27
|
+
await cleanupSVG(svg);
|
|
28
|
+
await parseColors(svg, {
|
|
29
|
+
defaultColor: "currentColor",
|
|
30
|
+
callback: (attr, colorStr, color) => {
|
|
31
|
+
return !color || isEmptyColor(color) ? colorStr : "currentColor";
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
await runSVGO(svg);
|
|
35
|
+
const fileName = file.replace(/^.*[\\/]/, "").split(".")[0].replace(/ /g, "-").replace(/[^a-z0-9-]/gi, "");
|
|
36
|
+
iconSet.fromSVG(fileName, svg);
|
|
37
|
+
}
|
|
38
|
+
const iconifyJson = iconSet.export();
|
|
39
|
+
try {
|
|
40
|
+
validateIconSet(iconifyJson);
|
|
41
|
+
} catch (error) {
|
|
42
|
+
throw new Error(
|
|
43
|
+
`Icon set is not valid: ${error == null ? void 0 : error.message}`
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
fileSystem.writeFileSync(
|
|
47
|
+
`${destPath2}/${iconifyJson.prefix}.json`,
|
|
48
|
+
JSON.stringify(iconifyJson)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function createIconifyJsonFiles(srcPath2, destPath2) {
|
|
52
|
+
const objectFiles = getAllFiles(srcPath2);
|
|
53
|
+
if (!Object.keys(objectFiles).length) {
|
|
54
|
+
console.error(`There are no files in ${srcPath2}`);
|
|
55
|
+
} else {
|
|
56
|
+
Object.keys(objectFiles).forEach((prefix) => {
|
|
57
|
+
generateIcons(prefix, objectFiles[prefix], destPath2);
|
|
58
|
+
console.info(`Icons generated in: ${destPath2}/${prefix}.json
|
|
59
|
+
`);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const argv = yargs(hideBin(process.argv)).argv;
|
|
64
|
+
const srcPath = argv.srcPath;
|
|
65
|
+
const destPath = argv.destPath || srcPath;
|
|
66
|
+
if (!srcPath || !destPath) {
|
|
67
|
+
console.error(
|
|
68
|
+
"Please specify the srcPath and destPath with --srcPath and --destPath"
|
|
69
|
+
);
|
|
70
|
+
process.exit();
|
|
71
|
+
}
|
|
72
|
+
createIconifyJsonFiles(srcPath, destPath);
|
|
73
|
+
export {
|
|
74
|
+
createIconifyJsonFiles
|
|
75
|
+
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { type IconifyIcon, type IconifyJSON } from '@iconify/vue';
|
|
2
|
-
import type {
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
$ds: typeof DesignSystem.prototype;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
interface IDesignSystemParams {
|
|
1
|
+
import { type IconifyIcon, type IconifyJSON, type PartialIconifyAPIConfig } from '@iconify/vue';
|
|
2
|
+
import type { Plugin } from 'vue';
|
|
3
|
+
export declare const VOLVER_PREFIX = "ds";
|
|
4
|
+
interface IVolverParams {
|
|
9
5
|
/**
|
|
10
6
|
* If true set "fetchOptions" with credentials: 'include'
|
|
11
7
|
*/
|
|
@@ -19,8 +15,12 @@ interface IDesignSystemParams {
|
|
|
19
15
|
* This collections will be added during plugin install
|
|
20
16
|
*/
|
|
21
17
|
iconsCollections?: IconifyJSON[];
|
|
18
|
+
/**
|
|
19
|
+
* Set true inside nuxt
|
|
20
|
+
*/
|
|
21
|
+
nuxt?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface IVolver extends IVolverParams {
|
|
24
24
|
/**
|
|
25
25
|
* @param {String} src Icon source path (url)
|
|
26
26
|
* @param {RequestInit} options
|
|
@@ -40,6 +40,13 @@ export interface IDesignSystem extends IDesignSystemParams {
|
|
|
40
40
|
* @returns {Boolean} true on success, false if something is wrong with data
|
|
41
41
|
*/
|
|
42
42
|
addIcon(name: string, data: IconifyIcon): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Add custom config for provider
|
|
45
|
+
* @param {String} provider
|
|
46
|
+
* @param {PartialIconifyAPIConfig} customConfig
|
|
47
|
+
* @returns {Boolean} true on success, false if something is wrong with data
|
|
48
|
+
*/
|
|
49
|
+
addAPIProvider(provider: string, customConfig: PartialIconifyAPIConfig): boolean;
|
|
43
50
|
/**
|
|
44
51
|
* Current provider
|
|
45
52
|
*/
|
|
@@ -49,19 +56,16 @@ export interface IDesignSystem extends IDesignSystemParams {
|
|
|
49
56
|
*/
|
|
50
57
|
iconsCollections: IconifyJSON[];
|
|
51
58
|
}
|
|
52
|
-
export
|
|
59
|
+
export declare class Volver implements IVolver {
|
|
53
60
|
fetchOptions: RequestInit;
|
|
54
61
|
iconsCollections: IconifyJSON[];
|
|
55
62
|
provider: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* Vue.use() hook
|
|
59
|
-
* @param {App} Vue
|
|
60
|
-
* @param {Object} options
|
|
61
|
-
*/
|
|
62
|
-
install(app: App): void;
|
|
63
|
+
nuxt: boolean;
|
|
64
|
+
constructor({ fetchWithCredentials, fetchOptions, iconsCollections, nuxt, }?: IVolverParams);
|
|
63
65
|
addCollection(collection: IconifyJSON, providerName?: string): boolean;
|
|
64
66
|
addIcon(name: string, data: IconifyIcon): boolean;
|
|
67
|
+
addAPIProvider(provider: string, customConfig: PartialIconifyAPIConfig): boolean;
|
|
65
68
|
fetchIcon(src: string, options?: RequestInit): Promise<string | undefined>;
|
|
66
69
|
}
|
|
67
|
-
|
|
70
|
+
declare const VolverPlugin: Plugin;
|
|
71
|
+
export default VolverPlugin;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { unref as r, computed as v, inject as $, toRef as k, toRefs as S, defineComponent as j, useAttrs as I, ref as B, openBlock as P, createElementBlock as z, normalizeClass as D, withModifiers as E, createElementVNode as A, renderSlot as C, normalizeProps as b, guardReactiveProps as g, createTextVNode as O, toDisplayString as R } from "vue";
|
|
2
|
+
import { useToggle as M } from "@vueuse/core";
|
|
3
|
+
import { nanoid as Z } from "nanoid";
|
|
4
|
+
function L(o) {
|
|
5
|
+
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(r(o));
|
|
6
|
+
}
|
|
7
|
+
function V(o) {
|
|
8
|
+
var e, a;
|
|
9
|
+
if (o)
|
|
10
|
+
return (a = (e = o.match(
|
|
11
|
+
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
12
|
+
)) == null ? void 0 : e.join("-")) == null ? void 0 : a.toLowerCase();
|
|
13
|
+
}
|
|
14
|
+
function N(o, e) {
|
|
15
|
+
const a = { [`${o}`]: !0 };
|
|
16
|
+
return {
|
|
17
|
+
bemCssClasses: v(() => Object.keys(e).reduce((t, l) => {
|
|
18
|
+
const s = r(e[l]) || !1;
|
|
19
|
+
if (!s)
|
|
20
|
+
return t;
|
|
21
|
+
if (l === "modifiers") {
|
|
22
|
+
const f = Array.isArray(s) ? s : s.split(" ");
|
|
23
|
+
return {
|
|
24
|
+
...t,
|
|
25
|
+
...f.reduce(
|
|
26
|
+
(i, c) => ({
|
|
27
|
+
...i,
|
|
28
|
+
[`${o}--${V(c)}`]: !0
|
|
29
|
+
}),
|
|
30
|
+
{}
|
|
31
|
+
)
|
|
32
|
+
};
|
|
33
|
+
} else
|
|
34
|
+
return {
|
|
35
|
+
...t,
|
|
36
|
+
[`${o}--${V(l)}`]: s
|
|
37
|
+
};
|
|
38
|
+
}, a) || {})
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function T(o) {
|
|
42
|
+
const e = $(o, void 0), a = v(() => !L(e));
|
|
43
|
+
function u(t, l, s) {
|
|
44
|
+
if (e != null && e.value) {
|
|
45
|
+
const i = r(e.value)[t];
|
|
46
|
+
return v({
|
|
47
|
+
get() {
|
|
48
|
+
return i == null ? void 0 : i.value;
|
|
49
|
+
},
|
|
50
|
+
set(c) {
|
|
51
|
+
i.value = c;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
const f = k(l, t);
|
|
56
|
+
return v({
|
|
57
|
+
get() {
|
|
58
|
+
return f.value;
|
|
59
|
+
},
|
|
60
|
+
set(i) {
|
|
61
|
+
s && s(`update:${t}`, i);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
group: e,
|
|
67
|
+
isInGroup: a,
|
|
68
|
+
getGroupOrLocalRef: u
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
const U = "VV_ACCORDION_GROUP", x = {
|
|
72
|
+
name: String,
|
|
73
|
+
title: String,
|
|
74
|
+
content: String,
|
|
75
|
+
modelValue: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: void 0
|
|
78
|
+
},
|
|
79
|
+
modifiers: [String, Array],
|
|
80
|
+
disabled: Boolean
|
|
81
|
+
}, q = ["update:modelValue"];
|
|
82
|
+
function F(o, e) {
|
|
83
|
+
const { group: a, isInGroup: u, getGroupOrLocalRef: t } = T(U), { title: l, content: s } = S(o), f = t("modelValue", o, e), i = t("disabled", o), c = t("collapse", o), n = t("modifiers", o);
|
|
84
|
+
return {
|
|
85
|
+
modelValue: f,
|
|
86
|
+
disabled: i,
|
|
87
|
+
isInGroup: u,
|
|
88
|
+
group: a,
|
|
89
|
+
collapse: c,
|
|
90
|
+
modifiers: n,
|
|
91
|
+
title: l,
|
|
92
|
+
content: s
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const H = ["id", "open"], J = ["aria-controls", "aria-expanded"], K = ["aria-hidden"], Q = {
|
|
96
|
+
name: "VvAccordion"
|
|
97
|
+
}, ee = /* @__PURE__ */ j({
|
|
98
|
+
...Q,
|
|
99
|
+
props: x,
|
|
100
|
+
emits: q,
|
|
101
|
+
setup(o, { emit: e }) {
|
|
102
|
+
const a = o, u = I(), t = a.name || (u == null ? void 0 : u.id) || Z(), {
|
|
103
|
+
modifiers: l,
|
|
104
|
+
title: s,
|
|
105
|
+
content: f,
|
|
106
|
+
disabled: i,
|
|
107
|
+
collapse: c,
|
|
108
|
+
modelValue: n,
|
|
109
|
+
isInGroup: _
|
|
110
|
+
} = F(a, e), y = B(!1), m = v({
|
|
111
|
+
get: () => _.value ? c.value && Array.isArray(n.value) ? n.value.includes(t) : n.value === t : n.value === void 0 ? y.value : n.value,
|
|
112
|
+
set: (d) => {
|
|
113
|
+
if (_.value) {
|
|
114
|
+
if (c.value && Array.isArray(n.value)) {
|
|
115
|
+
if (d) {
|
|
116
|
+
n.value.push(t);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
n.value = n.value.filter(
|
|
120
|
+
(p) => p !== t
|
|
121
|
+
);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
n.value = d ? t : null;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (n.value === void 0 && typeof d == "boolean") {
|
|
128
|
+
y.value = d;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
n.value = d;
|
|
132
|
+
}
|
|
133
|
+
}), { bemCssClasses: h } = N("vv-accordion", {
|
|
134
|
+
modifiers: l,
|
|
135
|
+
disabled: i
|
|
136
|
+
}), G = M(m);
|
|
137
|
+
return (d, p) => (P(), z("details", {
|
|
138
|
+
id: r(t),
|
|
139
|
+
class: D(r(h)),
|
|
140
|
+
open: r(m),
|
|
141
|
+
onClick: p[0] || (p[0] = E((W) => r(G)(), ["prevent"]))
|
|
142
|
+
}, [
|
|
143
|
+
A("summary", {
|
|
144
|
+
"aria-controls": r(t),
|
|
145
|
+
"aria-expanded": r(m),
|
|
146
|
+
class: "vv-collapse__summary"
|
|
147
|
+
}, [
|
|
148
|
+
C(d.$slots, "summary", b(g({ open: r(m) })), () => [
|
|
149
|
+
O(R(r(s)), 1)
|
|
150
|
+
])
|
|
151
|
+
], 8, J),
|
|
152
|
+
A("div", {
|
|
153
|
+
"aria-hidden": !r(m),
|
|
154
|
+
class: "vv-collapse__content"
|
|
155
|
+
}, [
|
|
156
|
+
C(d.$slots, "details", b(g({ open: r(m) })), () => [
|
|
157
|
+
O(R(r(f)), 1)
|
|
158
|
+
])
|
|
159
|
+
], 8, K)
|
|
160
|
+
], 10, H));
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
export {
|
|
164
|
+
ee as default
|
|
165
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("vue"),require("@vueuse/core"),require("nanoid")):typeof define=="function"&&define.amd?define(["vue","@vueuse/core","nanoid"],m):(e=typeof globalThis<"u"?globalThis:e||self,e.VvAccordion=m(e.vue,e.core,e.nanoid))})(this,function(e,m,g){"use strict";function b(r){return(n=>n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0)(e.unref(r))}function _(r){var n,a;if(r)return(a=(n=r.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:n.join("-"))==null?void 0:a.toLowerCase()}function V(r,n){const a={[`${r}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(n).reduce((t,c)=>{const s=e.unref(n[c])||!1;if(!s)return t;if(c==="modifiers"){const f=Array.isArray(s)?s:s.split(" ");return{...t,...f.reduce((i,l)=>({...i,[`${r}--${_(l)}`]:!0}),{})}}else return{...t,[`${r}--${_(c)}`]:s}},a)||{})}}function h(r){const n=e.inject(r,void 0),a=e.computed(()=>!b(n));function d(t,c,s){if(n!=null&&n.value){const i=e.unref(n.value)[t];return e.computed({get(){return i==null?void 0:i.value},set(l){i.value=l}})}const f=e.toRef(c,t);return e.computed({get(){return f.value},set(i){s&&s(`update:${t}`,i)}})}return{group:n,isInGroup:a,getGroupOrLocalRef:d}}const O="VV_ACCORDION_GROUP",R={name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},modifiers:[String,Array],disabled:Boolean},G=["update:modelValue"];function S(r,n){const{group:a,isInGroup:d,getGroupOrLocalRef:t}=h(O),{title:c,content:s}=e.toRefs(r),f=t("modelValue",r,n),i=t("disabled",r),l=t("collapse",r),o=t("modifiers",r);return{modelValue:f,disabled:i,isInGroup:d,group:a,collapse:l,modifiers:o,title:c,content:s}}const $=["id","open"],j=["aria-controls","aria-expanded"],k=["aria-hidden"],P={name:"VvAccordion"};return e.defineComponent({...P,props:R,emits:G,setup(r,{emit:n}){const a=r,d=e.useAttrs(),t=a.name||(d==null?void 0:d.id)||g.nanoid(),{modifiers:c,title:s,content:f,disabled:i,collapse:l,modelValue:o,isInGroup:A}=S(a,n),C=e.ref(!1),p=e.computed({get:()=>A.value?l.value&&Array.isArray(o.value)?o.value.includes(t):o.value===t:o.value===void 0?C.value:o.value,set:u=>{if(A.value){if(l.value&&Array.isArray(o.value)){if(u){o.value.push(t);return}o.value=o.value.filter(y=>y!==t);return}o.value=u?t:null;return}if(o.value===void 0&&typeof u=="boolean"){C.value=u;return}o.value=u}}),{bemCssClasses:I}=V("vv-accordion",{modifiers:c,disabled:i}),z=m.useToggle(p);return(u,y)=>(e.openBlock(),e.createElementBlock("details",{id:e.unref(t),class:e.normalizeClass(e.unref(I)),open:e.unref(p),onClick:y[0]||(y[0]=e.withModifiers(D=>e.unref(z)(),["prevent"]))},[e.createElementVNode("summary",{"aria-controls":e.unref(t),"aria-expanded":e.unref(p),class:"vv-collapse__summary"},[e.renderSlot(u.$slots,"summary",e.normalizeProps(e.guardReactiveProps({open:e.unref(p)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(s)),1)])],8,j),e.createElementVNode("div",{"aria-hidden":!e.unref(p),class:"vv-collapse__content"},[e.renderSlot(u.$slots,"details",e.normalizeProps(e.guardReactiveProps({open:e.unref(p)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(f)),1)])],8,k)],10,$))}})});
|
|
@@ -1,104 +1,39 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{
|
|
6
|
-
open: boolean;
|
|
7
|
-
iconRight: boolean;
|
|
8
|
-
bordered: boolean;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
title: StringConstructor;
|
|
12
|
-
content: StringConstructor;
|
|
13
|
-
open: BooleanConstructor;
|
|
14
|
-
iconRight: BooleanConstructor;
|
|
15
|
-
bordered: BooleanConstructor;
|
|
16
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
17
|
-
disabled: BooleanConstructor;
|
|
18
|
-
}>> & {
|
|
19
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
20
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "open" | "iconRight" | "bordered" | "disabled">;
|
|
21
|
-
$attrs: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
$refs: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
};
|
|
27
|
-
$slots: Readonly<{
|
|
28
|
-
[name: string]: import("vue").Slot | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
31
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
32
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
33
|
-
$el: any;
|
|
34
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
title: StringConstructor;
|
|
36
|
-
content: StringConstructor;
|
|
37
|
-
open: BooleanConstructor;
|
|
38
|
-
iconRight: BooleanConstructor;
|
|
39
|
-
bordered: BooleanConstructor;
|
|
40
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
41
|
-
disabled: BooleanConstructor;
|
|
42
|
-
}>> & {
|
|
43
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
44
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, {
|
|
45
|
-
open: boolean;
|
|
46
|
-
iconRight: boolean;
|
|
47
|
-
bordered: boolean;
|
|
48
|
-
disabled: boolean;
|
|
49
|
-
}, {}, string> & {
|
|
50
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
63
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
64
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
65
|
-
};
|
|
66
|
-
$forceUpdate: () => void;
|
|
67
|
-
$nextTick: typeof import("vue").nextTick;
|
|
68
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
69
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
-
title: StringConstructor;
|
|
71
|
-
content: StringConstructor;
|
|
72
|
-
open: BooleanConstructor;
|
|
73
|
-
iconRight: BooleanConstructor;
|
|
74
|
-
bordered: BooleanConstructor;
|
|
75
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
76
|
-
disabled: BooleanConstructor;
|
|
77
|
-
}>> & {
|
|
78
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
79
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
80
|
-
__isFragment?: undefined;
|
|
81
|
-
__isTeleport?: undefined;
|
|
82
|
-
__isSuspense?: undefined;
|
|
83
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
name: StringConstructor;
|
|
84
3
|
title: StringConstructor;
|
|
85
4
|
content: StringConstructor;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
modifiers: (ArrayConstructor | StringConstructor)[];
|
|
10
|
+
disabled: BooleanConstructor;
|
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
name: StringConstructor;
|
|
13
|
+
title: StringConstructor;
|
|
14
|
+
content: StringConstructor;
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
modifiers: (ArrayConstructor | StringConstructor)[];
|
|
90
20
|
disabled: BooleanConstructor;
|
|
91
21
|
}>> & {
|
|
92
22
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
|
|
95
|
-
iconRight: boolean;
|
|
96
|
-
bordered: boolean;
|
|
23
|
+
}, {
|
|
24
|
+
modelValue: boolean;
|
|
97
25
|
disabled: boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
26
|
+
}>, {
|
|
27
|
+
summary: (_: {
|
|
28
|
+
open: boolean;
|
|
29
|
+
}) => any;
|
|
30
|
+
details: (_: {
|
|
31
|
+
open: boolean;
|
|
32
|
+
}) => any;
|
|
33
|
+
}>;
|
|
104
34
|
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|