@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.6.0-alpha.1728498016952",
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-alpha.1728498016952",
52
- "@varlet/shared": "3.6.0-alpha.1728498016952",
53
- "@varlet/use": "3.6.0-alpha.1728498016952"
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-alpha.1728498016952",
70
- "@varlet/touch-emulator": "3.6.0-alpha.1728498016952",
71
- "@varlet/ui": "3.6.0-alpha.1728498016952"
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",
@@ -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
@@ -7,6 +7,7 @@ export interface CodeProps extends BasicAttributes {
7
7
  language?: string
8
8
  theme?: string
9
9
  wordWrap?: boolean
10
+ trim?: boolean
10
11
  }
11
12
 
12
13
  export class Code extends VarComponent {
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']
@@ -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