@varlet/ui 3.20.8 → 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.
- package/es/auto-complete/AutoComplete.mjs +2 -1
- package/es/auto-complete/props.mjs +4 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/menu/Menu.mjs +1 -0
- package/es/menu/menu.css +1 -1
- package/es/menu/props.mjs +4 -0
- package/es/menu-select/MenuChildren.mjs +10 -9
- package/es/menu-select/MenuSelect.mjs +13 -3
- package/es/menu-select/menuSelect.css +1 -1
- package/es/menu-select/props.mjs +1 -0
- package/es/select/Select.mjs +8 -2
- package/es/select/props.mjs +4 -0
- package/es/select/select.css +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/themes/dark/menu.mjs +2 -1
- package/es/themes/dark/menuSelect.mjs +2 -1
- package/es/themes/dark/select.mjs +1 -0
- package/es/themes/md3-dark/menu.mjs +2 -1
- package/es/themes/md3-dark/menuSelect.mjs +1 -0
- package/es/themes/md3-dark/select.mjs +1 -0
- package/es/themes/md3-light/menu.mjs +2 -1
- package/es/themes/md3-light/menuSelect.mjs +1 -0
- package/es/themes/md3-light/select.mjs +1 -0
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +2128 -2093
- package/highlight/web-types.en-US.json +37 -1
- package/highlight/web-types.zh-CN.json +37 -1
- package/lib/varlet.cjs.js +58 -24
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/types/autoComplete.d.ts +3 -0
- package/types/menu.d.ts +3 -0
- package/types/menuSelect.d.ts +3 -0
- package/types/select.d.ts +3 -0
- package/types/styleVars.d.ts +3 -0
- 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.
|
|
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,9 +44,9 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/
|
|
48
|
-
"@varlet/
|
|
49
|
-
"@varlet/use": "3.20.
|
|
47
|
+
"@varlet/shared": "3.20.9",
|
|
48
|
+
"@varlet/icons": "3.20.9",
|
|
49
|
+
"@varlet/use": "3.20.9"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^22.18.0",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.21",
|
|
63
63
|
"vue-router": "4.5.1",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
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"
|
package/types/autoComplete.d.ts
CHANGED
|
@@ -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
|
package/types/menuSelect.d.ts
CHANGED
|
@@ -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
|
package/types/styleVars.d.ts
CHANGED
|
@@ -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
|