@volverjs/ui-vue 0.0.2 → 0.0.3-beta.3
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/auto-imports.d.ts +289 -0
- package/dist/components/VvAccordion/VvAccordion.es.js +63 -131
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +2 -2
- package/dist/components/VvAccordion/index.d.ts +2 -2
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +97 -176
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +4 -4
- package/dist/components/VvAccordionGroup/index.d.ts +2 -2
- package/dist/components/VvBadge/VvBadge.es.js +16 -50
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +38 -45
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvButton/VvButton.es.js +170 -306
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +4 -4
- package/dist/components/VvButton/index.d.ts +3 -3
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +39 -84
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvCard/VvCard.es.js +26 -60
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +2 -2
- package/dist/components/VvCard/index.d.ts +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +144 -282
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +6 -6
- package/dist/components/VvCheckbox/index.d.ts +10 -4
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -346
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +7 -7
- package/dist/components/VvCheckboxGroup/index.d.ts +3 -3
- package/dist/components/VvCombobox/VvCombobox.es.js +330 -487
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +8 -8
- package/dist/components/VvCombobox/index.d.ts +4 -4
- package/dist/components/VvDialog/VvDialog.es.js +66 -102
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +61 -185
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +2 -2
- package/dist/components/VvDropdown/index.d.ts +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +30 -65
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +304 -407
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +10 -10
- package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
- package/dist/components/VvInputText/index.d.ts +5 -5
- package/dist/components/VvProgress/VvProgress.es.js +17 -51
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +110 -249
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +6 -6
- package/dist/components/VvRadio/index.d.ts +3 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +161 -318
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +7 -7
- package/dist/components/VvRadioGroup/index.d.ts +3 -3
- package/dist/components/VvSelect/VvSelect.es.js +200 -292
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +8 -8
- package/dist/components/VvSelect/index.d.ts +4 -4
- package/dist/components/VvTextarea/VvTextarea.es.js +196 -299
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +6 -6
- package/dist/components/VvTextarea/index.d.ts +3 -3
- package/dist/components/VvTooltip/VvTooltip.es.js +28 -0
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -0
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +23 -0
- package/dist/components/VvTooltip/index.d.ts +18 -0
- package/dist/components/common/HintSlot.d.ts +1 -1
- package/dist/components/index.es.js +1179 -1371
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
- package/dist/composables/useComponentFocus.d.ts +1 -1
- package/dist/composables/useComponentIcons.d.ts +1 -1
- package/dist/composables/useDebouncedInput.d.ts +1 -1
- package/dist/composables/useModifiers.d.ts +1 -1
- package/dist/composables/useTextCount.d.ts +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +1211 -1404
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +12 -12
- package/dist/stories/Tooltip/Tooltip.settings.d.ts +42 -0
- package/dist/stories/Tooltip/Tooltip.test.d.ts +2 -0
- package/dist/utils/ObjectUtilities.d.ts +1 -1
- package/package.json +27 -20
- 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 +0 -3
- package/src/components/VvAccordion/index.ts +1 -2
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +1 -3
- package/src/components/VvBadge/VvBadge.vue +0 -1
- package/src/components/VvButton/VvButton.vue +0 -3
- package/src/components/VvButton/index.ts +2 -10
- package/src/components/VvButtonGroup/VvButtonGroup.vue +0 -3
- package/src/components/VvCard/VvCard.vue +0 -1
- package/src/components/VvCheckbox/VvCheckbox.vue +0 -3
- package/src/components/VvCheckbox/index.ts +1 -2
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +0 -5
- package/src/components/VvCombobox/VvCombobox.vue +0 -7
- package/src/components/VvDialog/VvDialog.vue +1 -2
- package/src/components/VvDropdown/VvDropdown.vue +0 -4
- package/src/components/VvIcon/VvIcon.vue +0 -2
- package/src/components/VvInputText/VvInputClearAction.ts +0 -1
- package/src/components/VvInputText/VvInputPasswordAction.ts +0 -1
- package/src/components/VvInputText/VvInputStepAction.ts +0 -1
- package/src/components/VvInputText/VvInputText.vue +1 -16
- package/src/components/VvInputText/VvInputTextActions.ts +1 -1
- package/src/components/VvProgress/VvProgress.vue +0 -2
- package/src/components/VvRadio/VvRadio.vue +0 -3
- package/src/components/VvRadio/index.ts +0 -1
- package/src/components/VvRadioGroup/VvRadioGroup.vue +0 -5
- package/src/components/VvSelect/VvSelect.vue +1 -14
- package/src/components/VvTextarea/VvTextarea.vue +1 -15
- package/src/components/VvTooltip/VvTooltip.vue +17 -0
- package/src/components/VvTooltip/index.ts +21 -0
- package/src/components/common/HintSlot.ts +1 -11
- package/src/composables/group/types/IAccordionGroupState.ts +0 -1
- package/src/composables/group/types/IButtonGroupState.ts +0 -1
- package/src/composables/group/types/IInputGroup.ts +0 -1
- package/src/composables/group/useInjectedGroupState.ts +1 -2
- package/src/composables/group/useProvideGroupState.ts +0 -1
- package/src/composables/useComponentFocus.ts +1 -2
- package/src/composables/useComponentIcons.ts +1 -1
- package/src/composables/useDebouncedInput.ts +1 -1
- package/src/composables/useModifiers.ts +1 -2
- package/src/composables/useOptions.ts +0 -1
- package/src/composables/useTextCount.ts +1 -1
- package/src/stories/Accordion/Accordion.stories.mdx +1 -1
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +1 -1
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +1 -1
- package/src/stories/Badge/Badge.stories.mdx +1 -1
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +0 -1
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +1 -1
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +1 -1
- package/src/stories/Button/Button.stories.mdx +1 -1
- package/src/stories/Button/ButtonModifiers.stories.mdx +2 -2
- package/src/stories/Button/ButtonSlots.stories.mdx +3 -3
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +0 -1
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +1 -1
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +1 -1
- package/src/stories/Card/Card.stories.mdx +1 -1
- package/src/stories/Card/CardSlots.stories.mdx +1 -1
- package/src/stories/Checkbox/Checkbox.stories.mdx +1 -1
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +1 -1
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +1 -1
- package/src/stories/Combobox/Combobox.settings.ts +0 -1
- package/src/stories/Combobox/Combobox.stories.mdx +1 -1
- package/src/stories/Dialog/Dialog.stories.mdx +1 -1
- package/src/stories/Dropdown/Dropdown.settings.ts +0 -1
- package/src/stories/Dropdown/Dropdown.stories.mdx +1 -1
- package/src/stories/Icon/Icon.settings.ts +0 -1
- package/src/stories/Icon/Icon.stories.mdx +1 -1
- package/src/stories/Icon/IconsCollection.stories.mdx +1 -1
- package/src/stories/InputText/InputText.settings.ts +0 -1
- package/src/stories/InputText/InputText.stories.mdx +1 -1
- package/src/stories/Progress/Progress.stories.mdx +1 -1
- package/src/stories/Radio/Radio.stories.mdx +1 -1
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +1 -1
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +1 -1
- package/src/stories/Select/Select.settings.ts +0 -1
- package/src/stories/Select/Select.stories.mdx +1 -1
- package/src/stories/Textarea/Textarea.settings.ts +0 -1
- package/src/stories/Textarea/Textarea.stories.mdx +1 -1
- package/src/stories/Tooltip/Tooltip.settings.ts +25 -0
- package/src/stories/Tooltip/Tooltip.stories.mdx +98 -0
- package/src/stories/Tooltip/Tooltip.test.ts +49 -0
- package/src/utils/ObjectUtilities.ts +1 -1
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { computed, useAttrs, ref } from 'vue'
|
|
9
|
-
import { useToggle } from '@vueuse/core'
|
|
10
8
|
import { nanoid } from 'nanoid'
|
|
11
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
12
9
|
import {
|
|
13
10
|
VvAccordionEvents,
|
|
14
11
|
VvAccordionProps,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ExtractPropTypes, Ref } from 'vue'
|
|
2
2
|
import type IAccordionGroupState from '@/composables/group/types/IAccordionGroupState'
|
|
3
|
-
import { useInjectedGroupState } from '@/composables/group/useInjectedGroupState'
|
|
4
3
|
import { VV_ACCORDION_GROUP } from '@/constants'
|
|
5
4
|
|
|
6
5
|
export const VvAccordionProps = {
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import {
|
|
8
|
+
import type { Ref } from 'vue'
|
|
9
9
|
import type IAccordionGroupState from '@/composables/group/types/IAccordionGroupState'
|
|
10
10
|
import { VV_ACCORDION_GROUP } from '@/constants'
|
|
11
|
-
import { useProvideGroupState } from '@/composables/group/useProvideGroupState'
|
|
12
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
13
11
|
import VvAccordion from '@/components/VvAccordion/VvAccordion.vue'
|
|
14
12
|
import {
|
|
15
13
|
VvAccordionGroupProps,
|
|
@@ -5,11 +5,8 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { inject, useAttrs, useSlots, computed } from 'vue'
|
|
9
8
|
import { nanoid } from 'nanoid'
|
|
10
|
-
import { contains, equals } from '@/utils/ObjectUtilities'
|
|
11
9
|
import { type IVolver, VOLVER_PREFIX } from '@/Volver'
|
|
12
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
13
10
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
14
11
|
import {
|
|
15
12
|
ButtonIconPosition,
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Ref,
|
|
3
|
-
type PropType,
|
|
4
|
-
type ExtractPropTypes,
|
|
5
|
-
toRefs,
|
|
6
|
-
ref,
|
|
7
|
-
computed,
|
|
8
|
-
} from 'vue'
|
|
9
|
-
import { DisabledProps, ModifiersProps, UnselectableProps } from '@/props'
|
|
1
|
+
import type { Ref, PropType, ExtractPropTypes } from 'vue'
|
|
10
2
|
import type IButtonGroupState from '@/composables/group/types/IButtonGroupState'
|
|
11
|
-
import {
|
|
3
|
+
import { DisabledProps, ModifiersProps, UnselectableProps } from '@/props'
|
|
12
4
|
import { VV_BUTTON_GROUP } from '@/constants'
|
|
13
5
|
|
|
14
6
|
export enum ButtonIconPosition {
|
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import type IButtonGroupState from '@/composables/group/types/IButtonGroupState'
|
|
9
|
-
import { toRefs, watchEffect, computed } from 'vue'
|
|
10
9
|
import { VV_BUTTON_GROUP } from '@/constants'
|
|
11
|
-
import { useProvideGroupState } from '@/composables/group/useProvideGroupState'
|
|
12
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
13
10
|
import {
|
|
14
11
|
VvButtonGroupProps,
|
|
15
12
|
VvButtonGroupEvents,
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { computed, ref, useSlots, watchEffect, watch, onMounted } from 'vue'
|
|
9
8
|
import { nanoid } from 'nanoid'
|
|
10
|
-
import { contains, equals } from '@/utils/ObjectUtilities'
|
|
11
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
12
9
|
import {
|
|
13
10
|
VvCheckboxProps,
|
|
14
11
|
VvCheckboxEvents,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ExtractPropTypes, Ref } from 'vue'
|
|
2
2
|
import type { IInputGroupState } from '@/composables/group/types/IInputGroup'
|
|
3
|
-
import { useInjectedGroupState } from '@/composables/group/useInjectedGroupState'
|
|
4
3
|
import { CheckboxRadioProps } from '@/props'
|
|
5
4
|
import { VV_CHECK_GROUP } from '@/constants'
|
|
6
5
|
|
|
@@ -7,12 +7,7 @@
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import type { Option } from '@/types/generic'
|
|
9
9
|
import type { IInputGroupState } from '@/composables/group/types/IInputGroup'
|
|
10
|
-
import { useSlots, computed, toRefs } from 'vue'
|
|
11
10
|
import { VV_CHECK_GROUP } from '@/constants'
|
|
12
|
-
import { useVModel } from '@vueuse/core'
|
|
13
|
-
import { useProvideGroupState } from '@/composables/group/useProvideGroupState'
|
|
14
|
-
import { useOptions } from '@/composables/useOptions'
|
|
15
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
16
11
|
import { HintSlotFactory } from '@/components/common/HintSlot'
|
|
17
12
|
import VvCheckbox from '@/components/VvCheckbox/VvCheckbox.vue'
|
|
18
13
|
import {
|
|
@@ -5,14 +5,7 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { computed, ref, toRefs, useSlots, watch } from 'vue'
|
|
9
8
|
import { nanoid } from 'nanoid'
|
|
10
|
-
import { onClickOutside, refDebounced } from '@vueuse/core'
|
|
11
|
-
import { isEmpty } from '@/utils/ObjectUtilities'
|
|
12
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
13
|
-
import { useComponentIcon } from '@/composables/useComponentIcons'
|
|
14
|
-
import { useOptions } from '@/composables/useOptions'
|
|
15
|
-
import { useComponentFocus } from '@/composables/useComponentFocus'
|
|
16
9
|
import VvDropdown from '@/components/VvDropdown/VvDropdown.vue'
|
|
17
10
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
18
11
|
import VvSelect from '@/components/VvSelect/VvSelect.vue'
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import {
|
|
9
|
-
import { useVModel, onClickOutside } from '@vueuse/core'
|
|
8
|
+
import type { DialogHTMLAttributes } from 'vue'
|
|
10
9
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
11
10
|
import { VvDialogEvents, VvDialogProps } from '@/components/VvDialog'
|
|
12
11
|
|
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { computed, toRefs } from 'vue'
|
|
9
8
|
import { nanoid } from 'nanoid'
|
|
10
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
11
|
-
import { useOptions } from '@/composables/useOptions'
|
|
12
|
-
import { contains, equals, removeFromList } from '@/utils/ObjectUtilities'
|
|
13
9
|
import { VvDropdownProps } from '@/components/VvDropdown'
|
|
14
10
|
import type { Option } from '@/types/generic'
|
|
15
11
|
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { inject, toRefs, ref, computed } from 'vue'
|
|
9
8
|
import { Icon, addIcon, iconExists, type IconifyJSON } from '@iconify/vue'
|
|
10
9
|
import { type IVolver, VOLVER_PREFIX } from '@/Volver'
|
|
11
10
|
import { VvIconProps } from '@/components/VvIcon'
|
|
12
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
13
11
|
|
|
14
12
|
// props
|
|
15
13
|
const props = defineProps(VvIconProps)
|
|
@@ -5,24 +5,9 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import {
|
|
9
|
-
computed,
|
|
10
|
-
useSlots,
|
|
11
|
-
ref,
|
|
12
|
-
toRefs,
|
|
13
|
-
unref,
|
|
14
|
-
watch,
|
|
15
|
-
type InputHTMLAttributes,
|
|
16
|
-
} from 'vue'
|
|
17
|
-
import { useElementVisibility } from '@vueuse/core'
|
|
8
|
+
import type { InputHTMLAttributes } from 'vue'
|
|
18
9
|
import { nanoid } from 'nanoid'
|
|
19
|
-
import { isEmpty } from '@/utils/ObjectUtilities'
|
|
20
10
|
import HintSlotFactory from '@/components/common/HintSlot'
|
|
21
|
-
import { useComponentIcon } from '@/composables/useComponentIcons'
|
|
22
|
-
import { useComponentFocus } from '@/composables/useComponentFocus'
|
|
23
|
-
import { useDebouncedInput } from '@/composables/useDebouncedInput'
|
|
24
|
-
import { useTextCount } from '@/composables/useTextCount'
|
|
25
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
26
11
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
27
12
|
import VvInputTextActionsFactory from '@/components/VvInputText/VvInputTextActions'
|
|
28
13
|
import {
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { computed, ref, useSlots } from 'vue'
|
|
9
8
|
import { nanoid } from 'nanoid'
|
|
10
|
-
import { contains, equals } from '@/utils/ObjectUtilities'
|
|
11
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
12
9
|
import {
|
|
13
10
|
VvRadioProps,
|
|
14
11
|
VvRadioEvents,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes, Ref } from 'vue'
|
|
2
2
|
import type { IInputGroupState } from '@/composables/group/types/IInputGroup'
|
|
3
3
|
import { CheckboxRadioProps } from '@/props'
|
|
4
|
-
import { useInjectedGroupState } from '@/composables/group/useInjectedGroupState'
|
|
5
4
|
import { VV_RADIO_GROUP } from '@/constants'
|
|
6
5
|
|
|
7
6
|
export const VvRadioProps = CheckboxRadioProps
|
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import type { Option } from '@/types/generic'
|
|
9
9
|
import type { IInputGroupState } from '@/composables/group/types/IInputGroup'
|
|
10
|
-
import { useSlots, computed, toRefs } from 'vue'
|
|
11
|
-
import { useVModel } from '@vueuse/core'
|
|
12
|
-
import { useProvideGroupState } from '@/composables/group/useProvideGroupState'
|
|
13
|
-
import { useOptions } from '@/composables/useOptions'
|
|
14
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
15
10
|
import { VV_RADIO_GROUP } from '@/constants'
|
|
16
11
|
import { HintSlotFactory } from '@/components/common/HintSlot'
|
|
17
12
|
import VvRadio from '@/components/VvRadio/VvRadio.vue'
|
|
@@ -6,24 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import type { Option } from '@/types/generic'
|
|
9
|
-
import {
|
|
10
|
-
computed,
|
|
11
|
-
toRefs,
|
|
12
|
-
useSlots,
|
|
13
|
-
ref,
|
|
14
|
-
watch,
|
|
15
|
-
type SelectHTMLAttributes,
|
|
16
|
-
} from 'vue'
|
|
9
|
+
import type { SelectHTMLAttributes } from 'vue'
|
|
17
10
|
import { nanoid } from 'nanoid'
|
|
18
|
-
import { isEmpty } from '@/utils/ObjectUtilities'
|
|
19
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
20
|
-
import { useComponentIcon } from '@/composables/useComponentIcons'
|
|
21
|
-
import { useOptions } from '@/composables/useOptions'
|
|
22
|
-
import { useComponentFocus } from '@/composables/useComponentFocus'
|
|
23
11
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
24
12
|
import HintSlotFactory from '@/components/common/HintSlot'
|
|
25
13
|
import { VvSelectProps, VvSelectEmits } from '@/components/VvSelect'
|
|
26
|
-
import { useElementVisibility } from '@vueuse/core'
|
|
27
14
|
|
|
28
15
|
// props, emit and slots
|
|
29
16
|
const props = defineProps(VvSelectProps)
|
|
@@ -5,25 +5,11 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import {
|
|
9
|
-
computed,
|
|
10
|
-
useSlots,
|
|
11
|
-
ref,
|
|
12
|
-
toRefs,
|
|
13
|
-
watch,
|
|
14
|
-
type TextareaHTMLAttributes,
|
|
15
|
-
} from 'vue'
|
|
8
|
+
import type { TextareaHTMLAttributes } from 'vue'
|
|
16
9
|
import { nanoid } from 'nanoid'
|
|
17
|
-
import { isEmpty } from '@/utils/ObjectUtilities'
|
|
18
10
|
import HintSlotFactory from '@/components/common/HintSlot'
|
|
19
|
-
import { useComponentIcon } from '@/composables/useComponentIcons'
|
|
20
|
-
import { useComponentFocus } from '@/composables/useComponentFocus'
|
|
21
|
-
import { useDebouncedInput } from '@/composables/useDebouncedInput'
|
|
22
|
-
import { useTextCount } from '@/composables/useTextCount'
|
|
23
|
-
import { useBemModifiers } from '@/composables/useModifiers'
|
|
24
11
|
import VvIcon from '@/components/VvIcon/VvIcon.vue'
|
|
25
12
|
import { VvTextareaProps, VvTextareaEvents } from '@/components/VvTextarea'
|
|
26
|
-
import { useElementVisibility } from '@vueuse/core'
|
|
27
13
|
|
|
28
14
|
// props, emit and slots
|
|
29
15
|
const props = defineProps(VvTextareaProps)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { VvTooltipProps } from '@/components/VvTooltip'
|
|
3
|
+
|
|
4
|
+
const props = defineProps(VvTooltipProps)
|
|
5
|
+
const { modifiers } = toRefs(props)
|
|
6
|
+
|
|
7
|
+
// styles
|
|
8
|
+
const { bemCssClasses: tooltipClass } = useBemModifiers('vv-tooltip', {
|
|
9
|
+
modifiers
|
|
10
|
+
})
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<span :class="[tooltipClass, `vv-tooltip--${props.position}`]" role="tooltip" inert>
|
|
15
|
+
<slot />
|
|
16
|
+
</span>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ModifiersProps } from '@/props'
|
|
2
|
+
import type { PropType } from 'vue'
|
|
3
|
+
|
|
4
|
+
export enum TooltipPosition {
|
|
5
|
+
left = 'left',
|
|
6
|
+
right = 'right',
|
|
7
|
+
top = 'top',
|
|
8
|
+
bottom = 'bottom'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const VvTooltipProps = {
|
|
12
|
+
...ModifiersProps,
|
|
13
|
+
/**
|
|
14
|
+
* Define the tooltip position
|
|
15
|
+
* @default TooltipPosition.bottom
|
|
16
|
+
*/
|
|
17
|
+
position: {
|
|
18
|
+
type: String as PropType<TooltipPosition>,
|
|
19
|
+
default: TooltipPosition.bottom
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Component,
|
|
3
|
-
type ExtractPropTypes,
|
|
4
|
-
type Slots,
|
|
5
|
-
type Ref,
|
|
6
|
-
computed,
|
|
7
|
-
toRefs,
|
|
8
|
-
h,
|
|
9
|
-
} from 'vue'
|
|
10
|
-
import { toReactive } from '@vueuse/core'
|
|
11
|
-
import { isString, resolveFieldData, isEmpty } from '@/utils/ObjectUtilities'
|
|
1
|
+
import type { Component, ExtractPropTypes, Slots, Ref } from 'vue'
|
|
12
2
|
|
|
13
3
|
/**
|
|
14
4
|
* Merge errors from Array<string> to string errors separated from new line (\n)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useFocus, type MaybeElement, type MaybeElementRef } from '@vueuse/core'
|
|
1
|
+
import type { MaybeElement, MaybeElementRef } from '@vueuse/core'
|
|
3
2
|
|
|
4
3
|
export function useComponentFocus(
|
|
5
4
|
inputTemplateRef: MaybeElementRef<MaybeElement>,
|
|
@@ -21,7 +21,7 @@ export const Template = (args, { argTypes }) => ({
|
|
|
21
21
|
setup() {
|
|
22
22
|
return { args }
|
|
23
23
|
},
|
|
24
|
-
template:
|
|
24
|
+
template: /*html*/`<vv-accordion data-testId="element" v-bind="args" v-model="open">
|
|
25
25
|
<template #summary v-if="args.summary"><div v-html="args.summary"></div></template>
|
|
26
26
|
<template #details v-if="args.details"><div v-html="args.details"></div></template>
|
|
27
27
|
</vv-accordion>
|
|
@@ -21,7 +21,7 @@ export const Template = (args, { argTypes }) => ({
|
|
|
21
21
|
selected: null,
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
template:
|
|
24
|
+
template: /*html*/`<vv-accordion-group data-testId="element" v-bind="args" v-model="selected" />
|
|
25
25
|
<div class="mt-24">
|
|
26
26
|
Selected: <span data-testId="value">{{ selected }}</span>
|
|
27
27
|
</div>`,
|
|
@@ -42,7 +42,7 @@ import { defaultArgs, argTypes } from './AccordionGroup.settings'
|
|
|
42
42
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean turpis diam, tempor non sem ut, suscipit gravida mi.',
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
template:
|
|
45
|
+
template: /*html*/`<vv-accordion-group data-testId="element" v-bind="args" v-model="selected">
|
|
46
46
|
<vv-accordion name="a-1" data-testId="a-1" title="Details 1" :content="content" />
|
|
47
47
|
<vv-accordion name="a-2" title="Details 2" :content="content" />
|
|
48
48
|
<vv-accordion name="a-3" title="Details 3" :content="content" />
|
|
@@ -16,7 +16,7 @@ export const Template = (args, { argTypes }) => ({
|
|
|
16
16
|
setup() {
|
|
17
17
|
return { args }
|
|
18
18
|
},
|
|
19
|
-
template:
|
|
19
|
+
template: /*html*/`<vv-badge v-bind="args">
|
|
20
20
|
<template #default v-if="args.default"><span v-html="args.default"></span></template>
|
|
21
21
|
</vv-badge>`,
|
|
22
22
|
})
|
|
@@ -29,7 +29,7 @@ import { defaultArgs, argTypes } from './Breadcrumb.settings'
|
|
|
29
29
|
return { args }
|
|
30
30
|
},
|
|
31
31
|
components: { VvBreadcrumb, VvIcon },
|
|
32
|
-
template:
|
|
32
|
+
template: /*html*/`
|
|
33
33
|
<VvBreadcrumb v-bind="args">
|
|
34
34
|
<template #label="{route, index}">
|
|
35
35
|
<VvIcon v-if="index === 0" name="home" :aria-label="route.label" />
|
|
@@ -18,7 +18,7 @@ export const Template = (args) => ({
|
|
|
18
18
|
setup() {
|
|
19
19
|
return { args }
|
|
20
20
|
},
|
|
21
|
-
template:
|
|
21
|
+
template: /*html*/`<vv-button v-bind="args" v-model="value" name="my-button">
|
|
22
22
|
<template #before v-if="args.before"><div v-html="args.before"></div></template>
|
|
23
23
|
<template #default v-if="args.default"><div v-html="args.default"></div></template>
|
|
24
24
|
<template #after v-if="args.after"><div v-html="args.after"></div></template>
|
|
@@ -123,7 +123,7 @@ import { argTypes, defaultArgs } from './Button.settings'
|
|
|
123
123
|
setup() {
|
|
124
124
|
return { args }
|
|
125
125
|
},
|
|
126
|
-
template:
|
|
126
|
+
template: /*html*/`
|
|
127
127
|
<div class="bg-black p-md">
|
|
128
128
|
<vv-button v-bind="args" />
|
|
129
129
|
</div>
|
|
@@ -156,7 +156,7 @@ import { argTypes, defaultArgs } from './Button.settings'
|
|
|
156
156
|
setup() {
|
|
157
157
|
return { args }
|
|
158
158
|
},
|
|
159
|
-
template:
|
|
159
|
+
template: /*html*/`
|
|
160
160
|
<div class="bg-white p-md">
|
|
161
161
|
<vv-button v-bind="args" />
|
|
162
162
|
</div>
|
|
@@ -46,7 +46,7 @@ import { argTypes, defaultArgs } from './Button.settings'
|
|
|
46
46
|
return { args }
|
|
47
47
|
},
|
|
48
48
|
components: { VvButton, VvBadge },
|
|
49
|
-
template:
|
|
49
|
+
template: /*html*/`<vv-button v-bind="args">
|
|
50
50
|
<template #before>
|
|
51
51
|
<vv-badge value="12" modifiers="danger" />
|
|
52
52
|
</template>
|
|
@@ -77,7 +77,7 @@ import { argTypes, defaultArgs } from './Button.settings'
|
|
|
77
77
|
return { args }
|
|
78
78
|
},
|
|
79
79
|
components: { VvButton, VvBadge },
|
|
80
|
-
template:
|
|
80
|
+
template: /*html*/`<vv-button v-bind="args">
|
|
81
81
|
<template #after>
|
|
82
82
|
<vv-badge value="12" modifiers="danger" />
|
|
83
83
|
</template>
|
|
@@ -100,7 +100,7 @@ import { argTypes, defaultArgs } from './Button.settings'
|
|
|
100
100
|
setup() {
|
|
101
101
|
return { args }
|
|
102
102
|
},
|
|
103
|
-
template:
|
|
103
|
+
template: /*html*/`<vv-button v-bind="args">
|
|
104
104
|
<template #label>
|
|
105
105
|
Label <em class="italic">slot!</em>
|
|
106
106
|
</template>
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
ModifiersArgTypes,
|
|
4
4
|
UnselectableArgTypes,
|
|
5
5
|
} from '@/stories/argTypes'
|
|
6
|
-
import { propsToObject } from '@/utils/ObjectUtilities'
|
|
7
6
|
import { VvButtonGroupProps } from '@/components/VvButtonGroup'
|
|
8
7
|
import { argTypes as buttonArgTypes } from '../Button/Button.settings'
|
|
9
8
|
|
|
@@ -20,7 +20,7 @@ export const Template = (args, { argTypes }) => ({
|
|
|
20
20
|
setup() {
|
|
21
21
|
return { args }
|
|
22
22
|
},
|
|
23
|
-
template:
|
|
23
|
+
template: /*html*/`
|
|
24
24
|
<vv-button-group v-bind="args" v-model="value" data-testId="button-group">
|
|
25
25
|
<vv-button name="1a" data-testId="first-button">Button 1</vv-button>
|
|
26
26
|
<vv-button name="2b">Button 2</vv-button>
|
|
@@ -20,7 +20,7 @@ export const Template = (args, { argTypes }) => ({
|
|
|
20
20
|
setup() {
|
|
21
21
|
return { args }
|
|
22
22
|
},
|
|
23
|
-
template:
|
|
23
|
+
template: /*html*/`
|
|
24
24
|
<vv-button-group v-bind="args" v-model="value" data-testId="button-group">
|
|
25
25
|
<vv-button modifiers="primary" name="1a" data-testId="first-button">Button 1</vv-button>
|
|
26
26
|
<vv-button modifiers="secondary" name="2b">Button 2</vv-button>
|