@varlet/ui 2.8.1 → 2.8.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": "2.8.1",
3
+ "version": "2.8.2",
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.8.1",
50
- "@varlet/shared": "2.8.1"
49
+ "@varlet/icons": "2.8.2",
50
+ "@varlet/shared": "2.8.2"
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.8.1",
66
- "@varlet/touch-emulator": "2.8.1"
65
+ "@varlet/cli": "2.8.2",
66
+ "@varlet/touch-emulator": "2.8.2"
67
67
  },
68
68
  "browserslist": [
69
69
  "Chrome >= 54",
@@ -0,0 +1,25 @@
1
+ import { VNode } from 'vue'
2
+ import { VarComponent, BasicAttributes, Type as ButtonGroupType, Size as ButtonGroupSize } from './varComponent'
3
+
4
+ export declare const buttonGroupProps: Record<string, any>
5
+
6
+ export type ButtonGroupMode = 'normal' | 'text' | 'outline'
7
+
8
+ export interface ButtonGroupProps extends BasicAttributes {
9
+ type?: ButtonGroupType
10
+ size?: ButtonGroupSize
11
+ color?: string
12
+ textColor?: string
13
+ mode?: ButtonGroupMode
14
+ vertical?: boolean
15
+ }
16
+
17
+ export class ButtonGroup extends VarComponent {
18
+ $props: ButtonGroupProps
19
+
20
+ $slots: {
21
+ default(): VNode[]
22
+ }
23
+ }
24
+
25
+ export class _ButtonGroupComponent extends ButtonGroup {}
package/types/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './bottomNavigationItem'
14
14
  export * from './breadcrumb'
15
15
  export * from './breadcrumbs'
16
16
  export * from './button'
17
+ export * from './buttonGroup'
17
18
  export * from './card'
18
19
  export * from './cell'
19
20
  export * from './checkbox'
@@ -94,6 +95,7 @@ declare module 'vue' {
94
95
  VarBreadcrumb: typeof import('@varlet/ui')['_BreadcrumbComponent']
95
96
  VarBreadcrumbs: typeof import('@varlet/ui')['_BreadcrumbsComponent']
96
97
  VarButton: typeof import('@varlet/ui')['_ButtonComponent']
98
+ VarButtonGroup: typeof import('@varlet/ui')['_ButtonGroupComponent']
97
99
  VarCard: typeof import('@varlet/ui')['_CardComponent']
98
100
  VarCell: typeof import('@varlet/ui')['_CellComponent']
99
101
  VarCheckbox: typeof import('@varlet/ui')['_CheckboxComponent']