@varlet/ui 2.7.5 → 2.8.0-alpha.1676441771603

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.
Files changed (47) hide show
  1. package/README.md +3 -1
  2. package/README.zh-CN.md +6 -4
  3. package/es/app-bar/AppBar.mjs +30 -6
  4. package/es/app-bar/appBar.css +1 -1
  5. package/es/app-bar/props.mjs +6 -0
  6. package/es/badge/Badge.mjs +3 -2
  7. package/es/cell/Cell.mjs +59 -31
  8. package/es/cell/cell.css +1 -1
  9. package/es/cell/props.mjs +11 -0
  10. package/es/collapse/Collapse.mjs +2 -2
  11. package/es/ellipsis/Ellipsis.mjs +106 -0
  12. package/es/ellipsis/EllipsisSfc.css +0 -0
  13. package/es/ellipsis/ellipsis.css +1 -0
  14. package/es/ellipsis/index.mjs +8 -0
  15. package/es/ellipsis/props.mjs +16 -0
  16. package/es/ellipsis/style/index.mjs +4 -0
  17. package/es/index.bundle.mjs +13 -1
  18. package/es/index.mjs +11 -1
  19. package/es/paper/Paper.mjs +55 -0
  20. package/es/paper/PaperSfc.css +0 -0
  21. package/es/paper/index.mjs +9 -0
  22. package/es/paper/paper.css +1 -0
  23. package/es/paper/props.mjs +28 -0
  24. package/es/paper/style/index.mjs +4 -0
  25. package/es/ripple/index.mjs +2 -2
  26. package/es/style.css +1 -1
  27. package/es/style.mjs +2 -0
  28. package/es/tabs/Tabs.mjs +5 -4
  29. package/es/themes/dark/index.mjs +2 -1
  30. package/es/themes/dark/paper.mjs +3 -0
  31. package/es/tooltip/Tooltip.mjs +6 -1
  32. package/es/tooltip/props.mjs +4 -0
  33. package/es/tooltip/tooltip.css +1 -1
  34. package/es/varlet.esm.js +7577 -7328
  35. package/highlight/web-types.en-US.json +179 -2
  36. package/highlight/web-types.zh-CN.json +179 -2
  37. package/lib/style.css +1 -1
  38. package/lib/varlet.cjs.js +5703 -5410
  39. package/package.json +5 -5
  40. package/types/appBar.d.ts +2 -0
  41. package/types/cell.d.ts +4 -1
  42. package/types/ellipsis.d.ts +23 -0
  43. package/types/index.d.ts +4 -0
  44. package/types/paper.d.ts +25 -0
  45. package/types/tooltip.d.ts +1 -0
  46. package/umd/style.css +1 -1
  47. package/umd/varlet.js +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.7.5",
3
+ "version": "2.8.0-alpha.1676441771603",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -46,8 +46,8 @@
46
46
  "@popperjs/core": "^2.11.6",
47
47
  "dayjs": "^1.10.4",
48
48
  "decimal.js": "^10.2.1",
49
- "@varlet/icons": "2.7.5",
50
- "@varlet/shared": "2.7.5"
49
+ "@varlet/shared": "2.8.0-alpha.1676441771603",
50
+ "@varlet/icons": "2.8.0-alpha.1676441771603"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/jest": "^26.0.15",
@@ -62,8 +62,8 @@
62
62
  "typescript": "^4.4.4",
63
63
  "vue": "3.2.25",
64
64
  "vue-router": "4.0.12",
65
- "@varlet/cli": "2.7.5",
66
- "@varlet/touch-emulator": "2.7.5"
65
+ "@varlet/cli": "2.8.0-alpha.1676441771603",
66
+ "@varlet/touch-emulator": "2.8.0-alpha.1676441771603"
67
67
  },
68
68
  "browserslist": [
69
69
  "Chrome >= 54",
package/types/appBar.d.ts CHANGED
@@ -12,6 +12,8 @@ export interface AppBarProps extends BasicAttributes {
12
12
  titlePosition?: AppBarTitlePosition
13
13
  elevation?: boolean
14
14
  round?: boolean
15
+ image?: string
16
+ imageLinearGradient?: string
15
17
  }
16
18
 
17
19
  export class AppBar extends VarComponent {
package/types/cell.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { VarComponent, BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
2
2
  import { VNode } from 'vue'
3
3
 
4
4
  export declare const cellProps: Record<string, any>
@@ -8,10 +8,13 @@ export interface CellProps extends BasicAttributes {
8
8
  icon?: string
9
9
  description?: string
10
10
  border?: boolean
11
+ borderOffset?: number | string
11
12
  iconClass?: string
12
13
  titleClass?: string
13
14
  descriptionClass?: string
14
15
  extraClass?: string
16
+ ripple?: boolean
17
+ onClick?: ListenerProp<(e: Event) => void>
15
18
  }
16
19
 
17
20
  export class Cell extends VarComponent {
@@ -0,0 +1,23 @@
1
+ import { TooltipProps } from './tooltip'
2
+ import { VarComponent, BasicAttributes } from './varComponent'
3
+
4
+ export declare const ellipsisProps: Record<string, any>
5
+
6
+ export type EllipsisExpandTrigger = 'click'
7
+
8
+ export interface EllipsisProps extends BasicAttributes {
9
+ expandTrigger?: EllipsisExpandTrigger
10
+ lineClamp?: string | number
11
+ tooltip?: boolean | TooltipProps
12
+ }
13
+
14
+ export class Ellipsis extends VarComponent {
15
+ $props: EllipsisProps
16
+
17
+ $slots: {
18
+ default(): VNode[]
19
+ 'tooltip-content'(): VNode[]
20
+ }
21
+ }
22
+
23
+ export class _EllipsisComponent extends Ellipsis {}
package/types/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export * from './counter'
25
25
  export * from './datePicker'
26
26
  export * from './dialog'
27
27
  export * from './divider'
28
+ export * from './ellipsis'
28
29
  export * from './form'
29
30
  export * from './formDetails'
30
31
  export * from './icon'
@@ -43,6 +44,7 @@ export * from './menu'
43
44
  export * from './option'
44
45
  export * from './overlay'
45
46
  export * from './pagination'
47
+ export * from './paper'
46
48
  export * from './picker'
47
49
  export * from './popup'
48
50
  export * from './progress'
@@ -101,6 +103,7 @@ declare module 'vue' {
101
103
  VarDatePicker: typeof import('@varlet/ui')['_DatePickerComponent']
102
104
  VarDialog: typeof import('@varlet/ui')['_DialogComponent']
103
105
  VarDivider: typeof import('@varlet/ui')['_DividerComponent']
106
+ VarEllipsis: typeof import('@varlet/ui')['_EllipsisComponent']
104
107
  VarForm: typeof import('@varlet/ui')['_FormComponent']
105
108
  VarFormDetails: typeof import('@varlet/ui')['_FormDetailsComponent']
106
109
  VarIcon: typeof import('@varlet/ui')['_IconComponent']
@@ -119,6 +122,7 @@ declare module 'vue' {
119
122
  VarOption: typeof import('@varlet/ui')['_OptionComponent']
120
123
  VarOverlay: typeof import('@varlet/ui')['_OverlayComponent']
121
124
  VarPagination: typeof import('@varlet/ui')['_PaginationComponent']
125
+ VarPaper: typeof import('@varlet/ui')['_PaperComponent']
122
126
  VarPicker: typeof import('@varlet/ui')['_PickerComponent']
123
127
  VarPopup: typeof import('@varlet/ui')['_PopupComponent']
124
128
  VarProgress: typeof import('@varlet/ui')['_ProgressComponent']
@@ -0,0 +1,25 @@
1
+ import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
2
+ import { VNode } from 'vue'
3
+
4
+ export declare const paperProps: Record<string, any>
5
+
6
+ export interface PaperProps extends BasicAttributes {
7
+ elevation?: string | number
8
+ ripple?: boolean
9
+ radius?: string | number
10
+ width?: string | number
11
+ height?: string | number
12
+ round?: boolean
13
+ inline?: boolean
14
+ onClick?: ListenerProp<(e: Event) => void>
15
+ }
16
+
17
+ export class Paper extends VarComponent {
18
+ $props: PaperProps
19
+
20
+ $slots: {
21
+ default(): VNode[]
22
+ }
23
+ }
24
+
25
+ export class _PaperComponent extends Paper {}
@@ -23,6 +23,7 @@ export interface TooltipProps extends BasicAttributes {
23
23
  offsetX?: string | number
24
24
  offsetY?: string | number
25
25
  teleport?: TeleportProps['to']
26
+ sameWidth?: boolean
26
27
  onOpen?: ListenerProp<() => void>
27
28
  onOpened?: ListenerProp<() => void>
28
29
  onClose?: ListenerProp<() => void>