@unizap/uniui 1.0.20 → 1.0.21

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.
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { CompColor } from '../../utils/ColorMap';
2
3
 
3
4
  export interface ToggleButtonOption {
4
5
  value: string;
@@ -12,7 +13,7 @@ export interface ToggleButtonGroupProps {
12
13
  options: ToggleButtonOption[];
13
14
  multiple?: boolean;
14
15
  size?: 'small' | 'medium' | 'large';
15
- color?: 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | string;
16
+ color?: CompColor;
16
17
  orientation?: 'horizontal' | 'vertical';
17
18
  className?: string;
18
19
  buttonClass?: string;
@@ -20,6 +20,7 @@ export { default as Rating } from './Rating';
20
20
  export { default as Carousel } from './Carousel';
21
21
  export { default as EmptyState } from './EmptyState';
22
22
  export { default as ToggleSwitch } from './ToggleSwitch';
23
+ export { default as ToggleButton } from './ToggleButtonGroup';
23
24
  export { default as Typography } from './Typography';
24
25
  export { default as Card } from './Card';
25
26
  export { default as Divider } from './Divider';