@varlet/ui 3.2.13 → 3.2.14
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/action-sheet/style/index.mjs +1 -1
- package/es/app-bar/AppBar.mjs +111 -77
- package/es/app-bar/props.mjs +2 -1
- package/es/avatar/avatar.css +1 -1
- package/es/bottom-navigation/BottomNavigation.mjs +2 -1
- package/es/bottom-navigation-item/bottomNavigationItem.css +1 -1
- package/es/checkbox/Checkbox.mjs +3 -3
- package/es/checkbox-group/style/index.mjs +3 -0
- package/es/collapse-item/collapseItem.css +1 -1
- package/es/ellipsis/ellipsis.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/link/link.css +1 -1
- package/es/paper/paper.css +1 -1
- package/es/radio/Radio.mjs +1 -1
- package/es/radio-group/RadioGroup.mjs +22 -4
- package/es/radio-group/RadioGroupOption.mjs +45 -0
- package/es/radio-group/props.mjs +9 -0
- package/es/radio-group/style/index.mjs +4 -0
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style-provider/index.mjs +25 -7
- package/es/style.css +1 -1
- package/es/swipe/Swipe.mjs +25 -5
- package/es/swipe-item/SwipeItem.mjs +15 -8
- package/es/swipe-item/swipeItem.css +1 -1
- package/es/varlet.esm.js +5253 -5142
- package/highlight/web-types.en-US.json +37 -1
- package/highlight/web-types.zh-CN.json +37 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +1017 -876
- package/package.json +7 -7
- package/types/appBar.d.ts +1 -0
- package/types/radio.d.ts +5 -1
- package/types/radioGroup.d.ts +14 -1
- package/types/styleVars.d.ts +17 -801
- package/umd/varlet.js +8 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@popperjs/core": "^2.11.6",
|
|
49
49
|
"dayjs": "^1.10.4",
|
|
50
50
|
"decimal.js": "^10.2.1",
|
|
51
|
-
"@varlet/
|
|
52
|
-
"@varlet/
|
|
53
|
-
"@varlet/
|
|
51
|
+
"@varlet/use": "3.2.14",
|
|
52
|
+
"@varlet/icons": "3.2.14",
|
|
53
|
+
"@varlet/shared": "3.2.14"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@vue/runtime-core": "3.4.21",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"typescript": "^5.1.5",
|
|
67
67
|
"vue": "3.4.21",
|
|
68
68
|
"vue-router": "4.2.0",
|
|
69
|
-
"@varlet/
|
|
70
|
-
"@varlet/
|
|
71
|
-
"@varlet/
|
|
69
|
+
"@varlet/touch-emulator": "3.2.14",
|
|
70
|
+
"@varlet/cli": "3.2.14",
|
|
71
|
+
"@varlet/ui": "3.2.14"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "varlet-cli dev",
|
package/types/appBar.d.ts
CHANGED
package/types/radio.d.ts
CHANGED
|
@@ -22,13 +22,17 @@ export interface RadioProps extends BasicAttributes {
|
|
|
22
22
|
'onUpdate:modelValue'?: ListenerProp<(value: any) => void>
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export interface RadioData {
|
|
26
|
+
checked: boolean
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
export class Radio extends VarComponent {
|
|
26
30
|
static setPropsDefaults: SetPropsDefaults<RadioProps>
|
|
27
31
|
|
|
28
32
|
$props: RadioProps
|
|
29
33
|
|
|
30
34
|
$slots: {
|
|
31
|
-
default(): VNode[]
|
|
35
|
+
default(data: RadioData): VNode[]
|
|
32
36
|
'checked-icon'(): VNode[]
|
|
33
37
|
'unchecked-icon'(): VNode[]
|
|
34
38
|
}
|
package/types/radioGroup.d.ts
CHANGED
|
@@ -5,17 +5,30 @@ import {
|
|
|
5
5
|
ListenerProp,
|
|
6
6
|
SetPropsDefaults,
|
|
7
7
|
} from './varComponent'
|
|
8
|
-
import { VNode } from 'vue'
|
|
8
|
+
import { VNode, VNodeChild } from 'vue'
|
|
9
9
|
|
|
10
10
|
export declare const radioGroupProps: Record<keyof RadioGroupProps, any>
|
|
11
11
|
|
|
12
12
|
export type RadioGroupValidateTrigger = 'onChange'
|
|
13
13
|
|
|
14
|
+
export type RadioGroupOptionLabelRender = (option: CheckboxGroupOption, checked: boolean) => VNodeChild
|
|
15
|
+
|
|
16
|
+
export interface RadioGroupOption {
|
|
17
|
+
label?: string | VNode | RadioGroupOptionLabelRender
|
|
18
|
+
value?: any
|
|
19
|
+
disabled?: boolean
|
|
20
|
+
|
|
21
|
+
[key: PropertyKey]: any
|
|
22
|
+
}
|
|
23
|
+
|
|
14
24
|
export { RadioGroupDirection }
|
|
15
25
|
|
|
16
26
|
export interface RadioGroupProps extends BasicAttributes {
|
|
17
27
|
modelValue?: any
|
|
18
28
|
direction?: RadioGroupDirection
|
|
29
|
+
options?: Array<RadioGroupOption>
|
|
30
|
+
labelKey?: string
|
|
31
|
+
valueKey?: string
|
|
19
32
|
validateTrigger?: Array<RadioGroupValidateTrigger>
|
|
20
33
|
rules?: Array<(value: any) => any>
|
|
21
34
|
onChange?: ListenerProp<(value: any) => void>
|