@varlet/ui 3.20.7 → 3.20.9

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 (42) hide show
  1. package/es/auto-complete/AutoComplete.mjs +2 -1
  2. package/es/auto-complete/props.mjs +4 -0
  3. package/es/index.bundle.mjs +1 -1
  4. package/es/index.mjs +1 -1
  5. package/es/menu/Menu.mjs +1 -0
  6. package/es/menu/menu.css +1 -1
  7. package/es/menu/props.mjs +4 -0
  8. package/es/menu-select/MenuChildren.mjs +10 -9
  9. package/es/menu-select/MenuSelect.mjs +13 -3
  10. package/es/menu-select/menuSelect.css +1 -1
  11. package/es/menu-select/props.mjs +1 -0
  12. package/es/select/Select.mjs +8 -2
  13. package/es/select/props.mjs +4 -0
  14. package/es/select/select.css +1 -1
  15. package/es/snackbar/core.mjs +59 -15
  16. package/es/snackbar/index.mjs +1 -0
  17. package/es/snackbar/props.mjs +1 -0
  18. package/es/snackbar/snackbar.css +1 -1
  19. package/es/snackbar/style/index.mjs +1 -1
  20. package/es/themes/dark/menu.mjs +2 -1
  21. package/es/themes/dark/menuSelect.mjs +2 -1
  22. package/es/themes/dark/select.mjs +1 -0
  23. package/es/themes/md3-dark/menu.mjs +2 -1
  24. package/es/themes/md3-dark/menuSelect.mjs +1 -0
  25. package/es/themes/md3-dark/select.mjs +1 -0
  26. package/es/themes/md3-light/menu.mjs +2 -1
  27. package/es/themes/md3-light/menuSelect.mjs +1 -0
  28. package/es/themes/md3-light/select.mjs +1 -0
  29. package/es/varlet.css +1 -1
  30. package/es/varlet.esm.js +4872 -4791
  31. package/highlight/web-types.en-US.json +46 -1
  32. package/highlight/web-types.zh-CN.json +51 -6
  33. package/lib/varlet.cjs.js +224 -145
  34. package/lib/varlet.css +1 -1
  35. package/package.json +10 -10
  36. package/types/autoComplete.d.ts +3 -0
  37. package/types/menu.d.ts +3 -0
  38. package/types/menuSelect.d.ts +3 -0
  39. package/types/select.d.ts +5 -2
  40. package/types/snackbar.d.ts +2 -0
  41. package/types/styleVars.d.ts +5 -0
  42. package/umd/varlet.js +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.20.7",
3
+ "version": "3.20.9",
4
4
  "description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
5
5
  "keywords": [
6
6
  "Vue3",
@@ -44,13 +44,13 @@
44
44
  "@popperjs/core": "^2.11.6",
45
45
  "dayjs": "^1.10.4",
46
46
  "decimal.js": "^10.2.1",
47
- "@varlet/shared": "3.20.7",
48
- "@varlet/icons": "3.20.7",
49
- "@varlet/use": "3.20.7"
47
+ "@varlet/shared": "3.20.9",
48
+ "@varlet/icons": "3.20.9",
49
+ "@varlet/use": "3.20.9"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/node": "^20.19.0",
53
- "@vitest/coverage-istanbul": "4.1.10",
52
+ "@types/node": "^22.18.0",
53
+ "@vitest/coverage-istanbul": "5.0.3",
54
54
  "@vue/runtime-core": "3.5.21",
55
55
  "@vue/test-utils": "2.4.6",
56
56
  "clipboard": "^2.0.6",
@@ -58,13 +58,13 @@
58
58
  "live-server": "^1.2.1",
59
59
  "shiki": "^1.21.0",
60
60
  "typescript": "5.6.3",
61
- "vitest": "4.1.10",
61
+ "vitest": "5.0.3",
62
62
  "vue": "3.5.21",
63
63
  "vue-router": "4.5.1",
64
64
  "zod": "^3.23.8",
65
- "@varlet/ui": "3.20.7",
66
- "@varlet/cli": "3.20.7",
67
- "@varlet/touch-emulator": "3.20.7"
65
+ "@varlet/ui": "3.20.9",
66
+ "@varlet/touch-emulator": "3.20.9",
67
+ "@varlet/cli": "3.20.9"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "vue": "^3.2.0"
@@ -18,6 +18,8 @@ export type AutoCompleteValidateTrigger = 'onFocus' | 'onBlur' | 'onChange' | 'o
18
18
 
19
19
  export type AutoCompleteSize = 'small' | 'normal'
20
20
 
21
+ export type AutoCompleteMenuRadius = 'normal' | 'large'
22
+
21
23
  export interface AutoCompleteOption {
22
24
  label?: AutoCompleteOptionLabel
23
25
  value?: any
@@ -34,6 +36,7 @@ export interface AutoCompleteProps extends BasicAttributes {
34
36
  line?: boolean
35
37
  size?: AutoCompleteSize
36
38
  variant?: AutoCompleteVariant
39
+ menuRadius?: AutoCompleteMenuRadius
37
40
  placeholder?: string
38
41
  hint?: boolean
39
42
  textColor?: string
package/types/menu.d.ts CHANGED
@@ -18,6 +18,8 @@ export type MenuPlacement =
18
18
  | 'cover-left'
19
19
  | 'cover-right'
20
20
 
21
+ export type MenuRadius = 'normal' | 'large'
22
+
21
23
  export type MenuTrigger = 'click' | 'hover' | 'manual'
22
24
 
23
25
  export type MenuStrategy = PositioningStrategy
@@ -25,6 +27,7 @@ export type MenuStrategy = PositioningStrategy
25
27
  export type MenuReference = string | HTMLElement
26
28
 
27
29
  export interface MenuProps extends BasicAttributes {
30
+ radius?: MenuRadius
28
31
  show?: boolean
29
32
  disabled?: boolean
30
33
  trigger?: MenuTrigger
@@ -24,6 +24,8 @@ export type MenuSelectStrategy = PositioningStrategy
24
24
 
25
25
  export type MenuSelectSize = 'normal' | 'mini' | 'small' | 'large'
26
26
 
27
+ export type MenuSelectRadius = 'normal' | 'large'
28
+
27
29
  export type MenuSelectReference = string | HTMLElement
28
30
 
29
31
  export type MenuSelectOptionLabelRender = (option: MenuSelectOption, checked: boolean) => VNodeChild
@@ -42,6 +44,7 @@ export interface MenuSelectProps extends BasicAttributes {
42
44
  modelValue?: any
43
45
  options?: MenuSelectOption[]
44
46
  size?: MenuSelectSize
47
+ radius?: MenuSelectRadius
45
48
  multiple?: boolean
46
49
  scrollable?: boolean
47
50
  closeOnSelect?: boolean
package/types/select.d.ts CHANGED
@@ -16,6 +16,8 @@ export type SelectTextAlign = 'left' | 'right' | 'center'
16
16
 
17
17
  export type SelectSize = 'small' | 'normal'
18
18
 
19
+ export type SelectMenuRadius = 'normal' | 'large'
20
+
19
21
  export type SelectOptionLabelRender = (option: SelectOption, checked: boolean) => VNodeChild
20
22
 
21
23
  export type SelectOptionLabel = string | VNode | SelectOptionLabelRender
@@ -37,6 +39,7 @@ export interface SelectProps extends BasicAttributes {
37
39
  valueKey?: string
38
40
  variant?: SelectVariant
39
41
  size?: SelectSize
42
+ menuRadius?: SelectMenuRadius
40
43
  placeholder?: string
41
44
  multiple?: boolean
42
45
  offsetY?: number | string
@@ -80,12 +83,12 @@ export class Select extends VarComponent {
80
83
  $props: SelectProps
81
84
 
82
85
  $slots: {
83
- 'selected'(): VNode[]
86
+ selected(): VNode[]
84
87
  'prepend-icon'(): VNode[]
85
88
  'clear-icon'(data: SelectClearIconData): VNode[]
86
89
  'append-icon'(): VNode[]
87
90
  'arrow-icon'(data: SelectArrowIconData): VNode[]
88
- 'empty'(): VNode[]
91
+ empty(): VNode[]
89
92
  }
90
93
 
91
94
  focus(): void
@@ -20,6 +20,7 @@ export interface SnackbarProps extends BasicAttributes {
20
20
  lockScroll?: boolean
21
21
  contentClass?: string
22
22
  duration?: number
23
+ progress?: boolean
23
24
  elevation?: boolean | string | number
24
25
  vertical?: boolean
25
26
  show?: boolean
@@ -52,6 +53,7 @@ export interface SnackbarOptions {
52
53
  icon?: string | VNode | (() => VNode)
53
54
  action?: string | VNode | (() => VNode)
54
55
  duration?: number
56
+ progress?: boolean
55
57
  elevation?: boolean | string | number
56
58
  contentClass?: string
57
59
  vertical?: boolean
@@ -533,9 +533,11 @@ interface BaseStyleVars {
533
533
  '--loading-bar-height'?: string
534
534
  '--menu-background-color'?: string
535
535
  '--menu-border-radius'?: string
536
+ '--menu-large-border-radius'?: string
536
537
  '--menu-select-menu-max-height'?: string
537
538
  '--menu-select-menu-padding'?: string
538
539
  '--menu-select-menu-border-radius'?: string
540
+ '--menu-select-menu-large-border-radius'?: string
539
541
  '--menu-select-menu-background-color'?: string
540
542
  '--menu-option-normal-height'?: string
541
543
  '--menu-option-small-height'?: string
@@ -696,6 +698,7 @@ interface BaseStyleVars {
696
698
  '--select-scroller-padding'?: string
697
699
  '--select-scroller-max-height'?: string
698
700
  '--select-scroller-border-radius'?: string
701
+ '--select-scroller-large-border-radius'?: string
699
702
  '--select-label-font-size'?: string
700
703
  '--select-chips-margin'?: string
701
704
  '--select-chips-padding'?: string
@@ -762,6 +765,8 @@ interface BaseStyleVars {
762
765
  '--snackbar-action-margin'?: string
763
766
  '--snackbar-icon-margin'?: string
764
767
  '--snackbar-vertical-action-margin'?: string
768
+ '--snackbar-progress-height'?: string
769
+ '--snackbar-progress-color'?: string
765
770
  '--space-size-mini-y'?: string
766
771
  '--space-size-mini-x'?: string
767
772
  '--space-size-small-y'?: string