@varlet/ui 3.16.0-alpha.1778310023051 → 3.16.0-alpha.1778498431663
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/card/Card.mjs +26 -4
- package/es/card/card.css +1 -1
- package/es/card/props.mjs +2 -0
- package/es/card/style/index.mjs +1 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/paper/Paper.mjs +23 -6
- package/es/paper/paper.css +1 -1
- package/es/paper/props.mjs +2 -0
- package/es/paper/style/index.mjs +1 -0
- package/es/themes/md3-dark/card.mjs +1 -0
- package/es/themes/md3-dark/paper.mjs +1 -0
- package/es/themes/md3-light/card.mjs +1 -0
- package/es/themes/md3-light/paper.mjs +1 -0
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +3439 -3406
- package/highlight/web-types.en-US.json +37 -1
- package/highlight/web-types.zh-CN.json +37 -1
- package/lib/varlet.cjs.js +52 -9
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/types/card.d.ts +4 -0
- package/types/paper.d.ts +4 -0
- package/types/styleVars.d.ts +2 -0
- package/umd/varlet.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.16.0-alpha.
|
|
3
|
+
"version": "3.16.0-alpha.1778498431663",
|
|
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-alpha.
|
|
48
|
-
"@varlet/shared": "3.16.0-alpha.
|
|
49
|
-
"@varlet/use": "3.16.0-alpha.
|
|
47
|
+
"@varlet/icons": "3.16.0-alpha.1778498431663",
|
|
48
|
+
"@varlet/shared": "3.16.0-alpha.1778498431663",
|
|
49
|
+
"@varlet/use": "3.16.0-alpha.1778498431663"
|
|
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/cli": "3.16.0-alpha.
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
65
|
+
"@varlet/cli": "3.16.0-alpha.1778498431663",
|
|
66
|
+
"@varlet/touch-emulator": "3.16.0-alpha.1778498431663",
|
|
67
|
+
"@varlet/ui": "3.16.0-alpha.1778498431663"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/card.d.ts
CHANGED
|
@@ -9,8 +9,12 @@ export type CardLayout = 'row' | 'column'
|
|
|
9
9
|
|
|
10
10
|
export type CardVariant = 'standard' | 'outlined' | 'filled'
|
|
11
11
|
|
|
12
|
+
export type CardSurface = 'low'
|
|
13
|
+
|
|
12
14
|
export interface CardProps extends BasicAttributes {
|
|
13
15
|
variant?: CardVariant
|
|
16
|
+
surface?: CardSurface
|
|
17
|
+
hoverable?: boolean
|
|
14
18
|
src?: string
|
|
15
19
|
fit?: CardFit
|
|
16
20
|
imageHeight?: string | number
|
package/types/paper.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { BasicAttributes, ListenerProp, SetPropsDefaults, VarComponent } from '.
|
|
|
3
3
|
|
|
4
4
|
export declare const paperProps: Record<keyof PaperProps, any>
|
|
5
5
|
|
|
6
|
+
export type PaperSurface = 'low'
|
|
7
|
+
|
|
6
8
|
export interface PaperProps extends BasicAttributes {
|
|
7
9
|
elevation?: boolean | number | string
|
|
8
10
|
ripple?: boolean
|
|
@@ -11,6 +13,8 @@ export interface PaperProps extends BasicAttributes {
|
|
|
11
13
|
height?: string | number
|
|
12
14
|
round?: boolean
|
|
13
15
|
inline?: boolean
|
|
16
|
+
surface?: PaperSurface
|
|
17
|
+
hoverable?: boolean
|
|
14
18
|
onClick?: ListenerProp<(e: Event) => void>
|
|
15
19
|
}
|
|
16
20
|
|
package/types/styleVars.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ interface BaseStyleVars {
|
|
|
158
158
|
'--button-normal-font-size'?: string
|
|
159
159
|
'--button-large-font-size'?: string
|
|
160
160
|
'--card-background'?: string
|
|
161
|
+
'--card-surface-low-background'?: string
|
|
161
162
|
'--card-filled-background'?: string
|
|
162
163
|
'--card-padding'?: string
|
|
163
164
|
'--card-border-radius'?: string
|
|
@@ -522,6 +523,7 @@ interface BaseStyleVars {
|
|
|
522
523
|
'--pagination-size-padding'?: string
|
|
523
524
|
'--pagination-quick-jumper-margin'?: string
|
|
524
525
|
'--paper-background'?: string
|
|
526
|
+
'--paper-surface-low-background'?: string
|
|
525
527
|
'--paper-border-radius'?: string
|
|
526
528
|
'--picker-background'?: string
|
|
527
529
|
'--picker-toolbar-height'?: string
|