@volverjs/ui-vue 0.0.10-beta.5 → 0.0.10-beta.7

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.
Files changed (56) hide show
  1. package/dist/Volver.d.ts +1 -0
  2. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +4 -4
  3. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +4 -4
  4. package/dist/components/VvAction/VvAction.vue.d.ts +4 -4
  5. package/dist/components/VvAlert/VvAlert.vue.d.ts +4 -4
  6. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +4 -4
  7. package/dist/components/VvButton/VvButton.vue.d.ts +15 -9
  8. package/dist/components/VvButton/index.d.ts +2 -2
  9. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +4 -4
  10. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +5 -5
  11. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +4 -4
  12. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  13. package/dist/components/VvCombobox/VvCombobox.es.js +9 -5
  14. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  15. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +14 -14
  16. package/dist/components/VvCombobox/index.d.ts +11 -6
  17. package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
  18. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +19 -5
  19. package/dist/components/VvDropdown/index.d.ts +1 -1
  20. package/dist/components/VvInputText/VvInputText.vue.d.ts +6 -6
  21. package/dist/components/VvNav/VvNav.vue.d.ts +7 -7
  22. package/dist/components/VvNav/index.d.ts +1 -1
  23. package/dist/components/VvRadio/VvRadio.vue.d.ts +5 -5
  24. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +4 -4
  25. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  26. package/dist/components/VvSelect/VvSelect.vue.d.ts +8 -8
  27. package/dist/components/VvSelect/index.d.ts +1 -1
  28. package/dist/components/VvTab/VvTab.vue.d.ts +4 -4
  29. package/dist/components/VvTextarea/VvTextarea.es.js +1 -1
  30. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  31. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +7 -7
  32. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +3 -3
  33. package/dist/components/VvTooltip/index.d.ts +1 -1
  34. package/dist/components/index.es.js +10 -6
  35. package/dist/components/index.umd.js +1 -1
  36. package/dist/icons.es.js +3 -3
  37. package/dist/icons.umd.js +1 -1
  38. package/dist/props/index.d.ts +1 -1
  39. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +45 -10
  40. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +301 -52
  41. package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
  42. package/dist/stories/Tab/Tab.settings.d.ts +2 -15
  43. package/dist/types/generic.d.ts +1 -2
  44. package/dist/types/index.d.ts +5 -0
  45. package/package.json +28 -28
  46. package/src/Volver.ts +1 -0
  47. package/src/assets/icons/detailed.json +1 -1
  48. package/src/assets/icons/normal.json +1 -1
  49. package/src/assets/icons/simple.json +1 -1
  50. package/src/components/VvCombobox/VvCombobox.vue +8 -4
  51. package/src/components/VvCombobox/index.ts +4 -0
  52. package/src/components/VvTextarea/VvTextarea.vue +1 -1
  53. package/src/stories/Combobox/Combobox.settings.ts +8 -0
  54. package/src/stories/Tab/Tab.settings.ts +2 -2
  55. package/src/types/generic.ts +2 -3
  56. package/src/types/index.ts +5 -0
@@ -87,9 +87,13 @@
87
87
  searchText,
88
88
  computed(() => Number(props.debounceSearch)),
89
89
  )
90
- watch(debouncedSearchText, () =>
91
- emit('change:search', debouncedSearchText.value),
92
- )
90
+ watch(debouncedSearchText, () => {
91
+ emit('update:search', debouncedSearchText.value)
92
+ /**
93
+ * @deprecated change:search should not be used, use update:search instead
94
+ */
95
+ emit('change:search', debouncedSearchText.value)
96
+ })
93
97
 
94
98
  // expanded
95
99
  const expanded = ref(false)
@@ -173,7 +177,7 @@
173
177
  valid: valid.value,
174
178
  invalid: invalid.value,
175
179
  dirty: isDirty.value,
176
- focus: focused.value,
180
+ focus: focused.value || focusedWithin.value || expanded.value,
177
181
  floating: floating.value,
178
182
  badges: props.badges,
179
183
  })),
@@ -20,6 +20,10 @@ import type { Option } from '../../types/generic'
20
20
 
21
21
  export const VvComboboxEvents = [
22
22
  'update:modelValue',
23
+ 'update:search',
24
+ /**
25
+ * @deprecated change:search should not be used, use update:search instead
26
+ */
23
27
  'change:search',
24
28
  'focus',
25
29
  'blur',
@@ -117,7 +117,7 @@
117
117
  'icon-after': hasIconAfter.value,
118
118
  floating: props.floating && !isEmpty(props.label),
119
119
  dirty: isDirty.value,
120
- focused: focused.value,
120
+ focus: focused.value,
121
121
  resizable: props.resizable,
122
122
  })),
123
123
  )
@@ -392,4 +392,12 @@ export const argTypes = {
392
392
  },
393
393
  },
394
394
  },
395
+ 'update:search': {
396
+ table: {
397
+ category: 'Events',
398
+ type: {
399
+ summary: 'string',
400
+ },
401
+ },
402
+ },
395
403
  }
@@ -1,4 +1,4 @@
1
- import type { Meta } from '@storybook/vue3'
1
+ import type { ArgTypes, Meta } from '@storybook/vue3'
2
2
  import type { VvTab } from '@/components'
3
3
  import { VvTabProps } from '@/components/VvTab'
4
4
 
@@ -25,7 +25,7 @@ export const defaultArgs: Meta<typeof VvTab>['args'] = {
25
25
  ],
26
26
  }
27
27
 
28
- export const defaultArgTypes = {
28
+ export const defaultArgTypes: ArgTypes = {
29
29
  tabId: {
30
30
  description: 'Slot by tab-id',
31
31
  control: {
@@ -1,6 +1,5 @@
1
1
  export type Nullable<T> = T | null | undefined
2
2
 
3
- export type Option = {
4
- options?: Option[],
5
- [key: string]: unknown,
3
+ export type Option = Record<string | number | symbol, unknown> & {
4
+ options?: Option[]
6
5
  }
@@ -0,0 +1,5 @@
1
+ export * from './alert'
2
+ export * from './floating-ui'
3
+ export * from './generic'
4
+ export * from './group'
5
+ export * from './nav'