@agilekit/ui 0.1.0-alpha.26 → 0.1.0-alpha.28

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.
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ export interface IButtonGroupItem {
3
+ value: string;
4
+ label?: string;
5
+ disabled?: boolean;
6
+ startIcon?: React.ReactNode;
7
+ endIcon?: React.ReactNode;
8
+ onClick?(event: React.MouseEvent<HTMLButtonElement>): void;
9
+ }
10
+ export interface IButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
11
+ items: IButtonGroupItem[];
12
+ selectedValues: string[];
13
+ onSelectionChange: (values: string[]) => void;
14
+ selectionMode: 'single' | 'multiple';
15
+ type?: 'primary' | 'secondary' | 'success' | 'danger' | 'subtle';
16
+ size?: 'small' | 'medium' | 'large' | 'xlarge';
17
+ outline?: boolean;
18
+ orientation?: 'horizontal' | 'vertical';
19
+ disabled?: boolean;
20
+ fullWidth?: boolean;
21
+ }
22
+ declare const ButtonGroup: React.FC<IButtonGroupProps>;
23
+ export default ButtonGroup;
@@ -0,0 +1,2 @@
1
+ export { default as ButtonGroup } from './ButtonGroup';
2
+ export type { IButtonGroupItem, IButtonGroupProps } from './ButtonGroup';
@@ -11,6 +11,7 @@ export { default as AppProvider } from './components/AppProvider/AppProvider';
11
11
  export { default as Avatar } from './components/Avatar/Avatar';
12
12
  export { default as Box } from './components/Box/Box';
13
13
  export { default as Button } from './components/Button/Button';
14
+ export { default as ButtonGroup } from './components/ButtonGroup/ButtonGroup';
14
15
  export { default as Breadcrumb } from './components/Breadcrumb/Breadcrumb';
15
16
  export { default as Calendar } from './components/Calendar/Calendar';
16
17
  export { default as Card } from './components/Card/Card';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilekit/ui",
3
- "version": "0.1.0-alpha.26",
3
+ "version": "0.1.0-alpha.28",
4
4
  "description": "Agile's product component library",
5
5
  "author": "Michael de Lima Alves <michaelalves@outlook.com>",
6
6
  "license": "MIT",
@@ -70,6 +70,8 @@
70
70
  "react-select": "^5.4.0"
71
71
  },
72
72
  "devDependencies": {
73
+ "@mdi/js": "^7.4.47",
74
+ "@mdi/react": "^1.6.1",
73
75
  "@babel/core": "^7.21.3",
74
76
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
75
77
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",