@varlet/ui 3.2.12 → 3.2.14-alpha.1717685185218
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/README.md +4 -0
- package/README.zh-CN.md +4 -0
- 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/cell/cell.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 +6 -4
- package/es/swipe-item/SwipeItem.mjs +8 -6
- package/es/varlet.esm.js +4512 -4411
- 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 +993 -875
- 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 +4 -6
- 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-alpha.1717685185218",
|
|
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/icons": "3.2.
|
|
52
|
-
"@varlet/shared": "3.2.
|
|
53
|
-
"@varlet/use": "3.2.
|
|
51
|
+
"@varlet/icons": "3.2.14-alpha.1717685185218",
|
|
52
|
+
"@varlet/shared": "3.2.14-alpha.1717685185218",
|
|
53
|
+
"@varlet/use": "3.2.14-alpha.1717685185218"
|
|
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/touch-emulator": "3.2.
|
|
69
|
+
"@varlet/cli": "3.2.14-alpha.1717685185218",
|
|
70
|
+
"@varlet/ui": "3.2.14-alpha.1717685185218",
|
|
71
|
+
"@varlet/touch-emulator": "3.2.14-alpha.1717685185218"
|
|
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>
|
package/types/styleVars.d.ts
CHANGED
|
@@ -427,8 +427,6 @@ export interface StyleVars {
|
|
|
427
427
|
collapseItemMarginTop?: string
|
|
428
428
|
'--collapse-disable-color'?: string
|
|
429
429
|
collapseDisableColor?: string
|
|
430
|
-
'--collapse-divider-top'?: string
|
|
431
|
-
collapseDividerTop?: string
|
|
432
430
|
'--collapse-border-top'?: string
|
|
433
431
|
collapseBorderTop?: string
|
|
434
432
|
'--countdown-text-color'?: string
|
|
@@ -495,14 +493,14 @@ export interface StyleVars {
|
|
|
495
493
|
datePickerTitleDateRangeFontSize?: string
|
|
496
494
|
'--date-picker-title-date-justify-content'?: string
|
|
497
495
|
datePickerTitleDateJustifyContent?: string
|
|
498
|
-
'--date-picker-
|
|
499
|
-
|
|
496
|
+
'--date-picker-header-arrow-filter'?: string
|
|
497
|
+
datePickerHeaderArrowFilter?: string
|
|
500
498
|
'--date-picker-body-background-color'?: string
|
|
501
499
|
datePickerBodyBackgroundColor?: string
|
|
502
500
|
'--date-picker-body-height'?: string
|
|
503
501
|
datePickerBodyHeight?: string
|
|
504
|
-
'--date-picker-
|
|
505
|
-
|
|
502
|
+
'--date-picker-body-padding'?: string
|
|
503
|
+
datePickerBodyPadding?: string
|
|
506
504
|
'--date-picker-header-padding'?: string
|
|
507
505
|
datePickerHeaderPadding?: string
|
|
508
506
|
'--date-picker-actions-padding'?: string
|