@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.2.12",
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.12",
52
- "@varlet/shared": "3.2.12",
53
- "@varlet/use": "3.2.12"
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/ui": "3.2.12",
70
- "@varlet/cli": "3.2.12",
71
- "@varlet/touch-emulator": "3.2.12"
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
@@ -16,6 +16,7 @@ export interface AppBarProps extends BasicAttributes {
16
16
  imageLinearGradient?: string
17
17
  safeAreaTop?: boolean
18
18
  fixed?: boolean
19
+ placeholder?: boolean
19
20
  zIndex?: number | string
20
21
  }
21
22
 
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
  }
@@ -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>
@@ -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-body-padding'?: string
499
- datePickerBodyPadding?: string
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-header-arrow-filter'?: string
505
- datePickerHeaderArrowFilter?: string
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