@varlet/ui 3.6.0-alpha.1728498016952 → 3.6.0
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/alert/Alert.mjs +136 -0
- package/es/alert/AlertSfc.css +0 -0
- package/es/alert/alert.css +1 -0
- package/es/alert/index.mjs +9 -0
- package/es/alert/props.mjs +23 -0
- package/es/alert/style/index.mjs +5 -0
- package/es/code/Code.mjs +3 -3
- package/es/code/props.mjs +7 -7
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/themes/dark/alert.mjs +33 -0
- package/es/themes/dark/index.mjs +3 -2
- package/es/themes/md3-dark/alert.mjs +33 -0
- package/es/themes/md3-dark/index.mjs +3 -2
- package/es/themes/md3-light/alert.mjs +33 -0
- package/es/themes/md3-light/index.mjs +3 -2
- package/es/varlet.esm.js +4631 -4394
- package/highlight/web-types.en-US.json +115 -1
- package/highlight/web-types.zh-CN.json +115 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +1323 -1080
- package/package.json +7 -7
- package/types/alert.d.ts +35 -0
- package/types/code.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/styleVars.d.ts +28 -0
- package/umd/varlet.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.6.0
|
|
3
|
+
"version": "3.6.0",
|
|
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.6.0
|
|
52
|
-
"@varlet/shared": "3.6.0
|
|
53
|
-
"@varlet/use": "3.6.0
|
|
51
|
+
"@varlet/icons": "3.6.0",
|
|
52
|
+
"@varlet/shared": "3.6.0",
|
|
53
|
+
"@varlet/use": "3.6.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^18.7.18",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"vue": "3.4.21",
|
|
67
67
|
"vue-router": "4.2.0",
|
|
68
68
|
"zod": "^3.23.8",
|
|
69
|
-
"@varlet/cli": "3.6.0
|
|
70
|
-
"@varlet/
|
|
71
|
-
"@varlet/
|
|
69
|
+
"@varlet/cli": "3.6.0",
|
|
70
|
+
"@varlet/ui": "3.6.0",
|
|
71
|
+
"@varlet/touch-emulator": "3.6.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "varlet-cli dev",
|
package/types/alert.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VNode } from 'vue'
|
|
2
|
+
import { VarComponent, BasicAttributes, SetPropsDefaults, ListenerProp } from './varComponent'
|
|
3
|
+
|
|
4
|
+
export declare const alertProps: Record<keyof AlertProps, any>
|
|
5
|
+
|
|
6
|
+
export type AlertType = 'info' | 'success' | 'warning' | 'danger'
|
|
7
|
+
|
|
8
|
+
export type AlertVariant = 'tonal' | 'outlined' | 'standard'
|
|
9
|
+
|
|
10
|
+
export interface AlertProps extends BasicAttributes {
|
|
11
|
+
type?: AlertType
|
|
12
|
+
variant?: AlertVariant
|
|
13
|
+
color?: string
|
|
14
|
+
title?: string
|
|
15
|
+
message?: string
|
|
16
|
+
closeable?: boolean
|
|
17
|
+
elevation?: boolean | string | number
|
|
18
|
+
onClose?: ListenerProp<(e: Event) => void>
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class Alert extends VarComponent {
|
|
22
|
+
static setPropsDefaults: SetPropsDefaults<AlertProps>
|
|
23
|
+
|
|
24
|
+
$props: AlertProps
|
|
25
|
+
|
|
26
|
+
$slots: {
|
|
27
|
+
default(): VNode[]
|
|
28
|
+
content(): VNode[]
|
|
29
|
+
title(): VNode[]
|
|
30
|
+
icon(): VNode[]
|
|
31
|
+
'close-icon'(): VNode[]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class _AlertComponent extends Alert {}
|
package/types/code.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export const version: string
|
|
|
4
4
|
export const install: (app: App) => void
|
|
5
5
|
|
|
6
6
|
export * from './actionSheet'
|
|
7
|
+
export * from './alert'
|
|
7
8
|
export * from './appBar'
|
|
8
9
|
export * from './autoComplete'
|
|
9
10
|
export * from './avatar'
|
|
@@ -100,6 +101,7 @@ export * from './watermark'
|
|
|
100
101
|
declare module 'vue' {
|
|
101
102
|
export interface GlobalComponents {
|
|
102
103
|
VarActionSheet: typeof import('@varlet/ui')['_ActionSheetComponent']
|
|
104
|
+
VarAlert: typeof import('@varlet/ui')['_AlertComponent']
|
|
103
105
|
VarAppBar: typeof import('@varlet/ui')['_AppBarComponent']
|
|
104
106
|
VarAutoComplete: typeof import('@varlet/ui')['_AutoCompleteComponent']
|
|
105
107
|
VarAvatar: typeof import('@varlet/ui')['_AvatarComponent']
|
package/types/styleVars.d.ts
CHANGED
|
@@ -22,6 +22,34 @@ interface BaseStyleVars {
|
|
|
22
22
|
'--action-sheet-action-item-disabled-color'?: string
|
|
23
23
|
'--action-sheet-icon-margin'?: string
|
|
24
24
|
'--action-sheet-icon-size'?: string
|
|
25
|
+
'--alert-padding'?: string
|
|
26
|
+
'--alert-border-radius'?: string
|
|
27
|
+
'--alert-icon-size'?: string
|
|
28
|
+
'--alert-icon-margin'?: string
|
|
29
|
+
'--alert-close-icon-size'?: string
|
|
30
|
+
'--alert-close-icon-margin'?: string
|
|
31
|
+
'--alert-standard-info-text-color'?: string
|
|
32
|
+
'--alert-standard-danger-text-color'?: string
|
|
33
|
+
'--alert-standard-success-text-color'?: string
|
|
34
|
+
'--alert-standard-warning-text-color'?: string
|
|
35
|
+
'--alert-danger-background'?: string
|
|
36
|
+
'--alert-success-background'?: string
|
|
37
|
+
'--alert-warning-background'?: string
|
|
38
|
+
'--alert-info-background'?: string
|
|
39
|
+
'--alert-tonal-danger-background'?: string
|
|
40
|
+
'--alert-tonal-success-background'?: string
|
|
41
|
+
'--alert-tonal-warning-background'?: string
|
|
42
|
+
'--alert-tonal-info-background'?: string
|
|
43
|
+
'--alert-tonal-danger-text-color'?: string
|
|
44
|
+
'--alert-tonal-success-text-color'?: string
|
|
45
|
+
'--alert-tonal-warning-text-color'?: string
|
|
46
|
+
'--alert-tonal-info-text-color'?: string
|
|
47
|
+
'--alert-message-font-size'?: string
|
|
48
|
+
'--alert-title-font-size'?: string
|
|
49
|
+
'--alert-title-font-weight'?: string
|
|
50
|
+
'--alert-message-margin-top'?: string
|
|
51
|
+
'--alert-message-line-height'?: string
|
|
52
|
+
'--alert-title-line-height'?: string
|
|
25
53
|
'--app-bar-color'?: string
|
|
26
54
|
'--app-bar-text-color'?: string
|
|
27
55
|
'--app-bar-height'?: string
|