@redsift/charts 10.3.0-alpha.5 → 10.3.0-alpha.6
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/CONTRIBUTING.md +0 -4
- package/index.d.ts +1 -1
- package/index.js +187 -237
- package/index.js.map +1 -1
- package/package.json +2 -2
package/CONTRIBUTING.md
CHANGED
|
@@ -137,9 +137,6 @@ import { BadgeProps } from './types';
|
|
|
137
137
|
|
|
138
138
|
const COMPONENT_NAME = 'Badge';
|
|
139
139
|
const CLASSNAME = 'redsift-badge';
|
|
140
|
-
const DEFAULT_PROPS: Partial<BadgeProps> = {
|
|
141
|
-
// default values
|
|
142
|
-
};
|
|
143
140
|
|
|
144
141
|
/**
|
|
145
142
|
* The Badge component.
|
|
@@ -162,7 +159,6 @@ export const Badge: Comp<BadgeProps, HTMLDivElement> = forwardRef((props, ref) =
|
|
|
162
159
|
);
|
|
163
160
|
});
|
|
164
161
|
Badge.className = CLASSNAME;
|
|
165
|
-
Badge.defaultProps = DEFAULT_PROPS;
|
|
166
162
|
Badge.displayName = COMPONENT_NAME;
|
|
167
163
|
```
|
|
168
164
|
|
package/index.d.ts
CHANGED
|
@@ -413,7 +413,7 @@ interface DataPointProps<T> extends Omit<ComponentProps<'g'>, 'onClick' | 'scale
|
|
|
413
413
|
/** State from which the component should start the animation, if any. */
|
|
414
414
|
previousData?: T;
|
|
415
415
|
/** Role. Will be set to 'button' if onClick is provided. If 'option', then the component becomes selectable. */
|
|
416
|
-
role?: 'button' | 'link' | 'option';
|
|
416
|
+
role?: 'img' | 'button' | 'link' | 'option';
|
|
417
417
|
/** Theme. */
|
|
418
418
|
theme?: Theme;
|
|
419
419
|
/** Tooltip variant. */
|