@varlet/ui 3.16.0 → 3.16.2

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.16.0",
3
+ "version": "3.16.2",
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/icons": "3.16.0",
48
- "@varlet/shared": "3.16.0",
49
- "@varlet/use": "3.16.0"
47
+ "@varlet/icons": "3.16.2",
48
+ "@varlet/use": "3.16.2",
49
+ "@varlet/shared": "3.16.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^20.19.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/ui": "3.16.0",
66
- "@varlet/cli": "3.16.0",
67
- "@varlet/touch-emulator": "3.16.0"
65
+ "@varlet/ui": "3.16.2",
66
+ "@varlet/cli": "3.16.2",
67
+ "@varlet/touch-emulator": "3.16.2"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "vue": "^3.2.0"
package/types/card.d.ts CHANGED
@@ -11,10 +11,20 @@ export type CardVariant = 'standard' | 'outlined' | 'filled'
11
11
 
12
12
  export type CardSurface = 'low'
13
13
 
14
+ export interface CardRipple {
15
+ disabled?: boolean
16
+ color?: string
17
+ }
18
+
19
+ export interface CardHoverable {
20
+ disabled?: boolean
21
+ color?: string
22
+ }
23
+
14
24
  export interface CardProps extends BasicAttributes {
15
25
  variant?: CardVariant
16
26
  surface?: CardSurface
17
- hoverable?: boolean
27
+ hoverable?: boolean | CardHoverable
18
28
  src?: string
19
29
  fit?: CardFit
20
30
  imageHeight?: string | number
@@ -24,7 +34,7 @@ export interface CardProps extends BasicAttributes {
24
34
  subtitle?: string
25
35
  description?: string
26
36
  elevation?: boolean | number | string
27
- ripple?: boolean
37
+ ripple?: boolean | CardRipple
28
38
  layout?: CardLayout
29
39
  floating?: boolean
30
40
  floatingDuration?: number
@@ -4,6 +4,8 @@ export declare const hoverOverlayProps: Record<keyof HoverOverlayProps, any>
4
4
 
5
5
  export interface HoverOverlayProps extends BasicAttributes {
6
6
  hovering?: boolean
7
+ focusing?: boolean
8
+ color?: string
7
9
  }
8
10
 
9
11
  export class HoverOverlay extends VarComponent {
@@ -14,6 +14,8 @@ export type OtpInputType = 'digit' | 'text' | 'alphanumeric'
14
14
 
15
15
  export type OtpInputValidateTrigger = 'onInput' | 'onClick' | 'onPaste' | 'onComplete'
16
16
 
17
+ export type OtpInputAlign = 'start' | 'center' | 'end'
18
+
17
19
  export interface OtpInputProps extends BasicAttributes {
18
20
  modelValue?: string
19
21
  length?: string | number
@@ -30,6 +32,7 @@ export interface OtpInputProps extends BasicAttributes {
30
32
  readonly?: boolean
31
33
  autofocus?: boolean
32
34
  gutter?: string | number
35
+ align?: OtpInputAlign
33
36
  validateTrigger?: OtpInputValidateTrigger[]
34
37
  rules?: OtpInputRules
35
38
  allowPaste?: boolean
package/types/paper.d.ts CHANGED
@@ -5,16 +5,26 @@ export declare const paperProps: Record<keyof PaperProps, any>
5
5
 
6
6
  export type PaperSurface = 'low'
7
7
 
8
+ export interface PaperRipple {
9
+ disabled?: boolean
10
+ color?: string
11
+ }
12
+
13
+ export interface PaperHoverable {
14
+ disabled?: boolean
15
+ color?: string
16
+ }
17
+
8
18
  export interface PaperProps extends BasicAttributes {
9
19
  elevation?: boolean | number | string
10
- ripple?: boolean
20
+ ripple?: boolean | PaperRipple
11
21
  radius?: string | number
12
22
  width?: string | number
13
23
  height?: string | number
14
24
  round?: boolean
15
25
  inline?: boolean
16
26
  surface?: PaperSurface
17
- hoverable?: boolean
27
+ hoverable?: boolean | PaperHoverable
18
28
  onClick?: ListenerProp<(e: Event) => void>
19
29
  }
20
30