@ambuj.bhaskar/react-component-library 0.18.2-alpha → 0.18.4-alpha
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/README.md +34 -155
- package/bin/cli.js +87 -87
- package/dist/index.cjs +161 -144
- package/dist/index.d.ts +31 -0
- package/dist/index.js +53285 -45436
- package/dist/index.umd.js +162 -145
- package/package.json +87 -87
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,8 @@ declare enum BadgeVariants {
|
|
|
84
84
|
MEDIUM = "m"
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
declare type BarChartVariant = "stacked" | "grouped";
|
|
88
|
+
|
|
87
89
|
declare type BlobType = {
|
|
88
90
|
detection?: {
|
|
89
91
|
image?: string;
|
|
@@ -138,6 +140,33 @@ export declare type ButtonProps = HTMLButtonProps & {
|
|
|
138
140
|
|
|
139
141
|
declare type ButtonVariant = "primary" | "secondary" | "tertiary" | "nav";
|
|
140
142
|
|
|
143
|
+
export declare const Chart: React.FC<ChartProps>;
|
|
144
|
+
|
|
145
|
+
declare type ChartData = {
|
|
146
|
+
labels: string[];
|
|
147
|
+
datasets: {
|
|
148
|
+
label: string;
|
|
149
|
+
data: number[];
|
|
150
|
+
color?: Color;
|
|
151
|
+
colors?: Color[];
|
|
152
|
+
}[];
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export declare type ChartProps = {
|
|
156
|
+
type: ChartType;
|
|
157
|
+
barVariant?: BarChartVariant;
|
|
158
|
+
lineVariant?: LineVariant;
|
|
159
|
+
lineTension?: number;
|
|
160
|
+
data: ChartData;
|
|
161
|
+
options?: any;
|
|
162
|
+
width?: string;
|
|
163
|
+
height?: string;
|
|
164
|
+
backgroundColor?: Color;
|
|
165
|
+
className?: string;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
declare type ChartType = "line" | "bar" | "doughnut" | "pie";
|
|
169
|
+
|
|
141
170
|
declare type Color = string;
|
|
142
171
|
|
|
143
172
|
export declare const CompactEventCard: React.FC<CompactEventCardPropsType>;
|
|
@@ -280,6 +309,8 @@ export declare type InputProps = HTMLInputProps & {
|
|
|
280
309
|
|
|
281
310
|
declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-end" | "left" | "right" | "baseline" | "first baseline" | "last baseline" | "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
282
311
|
|
|
312
|
+
declare type LineVariant = "fill" | "line";
|
|
313
|
+
|
|
283
314
|
export declare const Modal: default_2.FC<ModalProps>;
|
|
284
315
|
|
|
285
316
|
export declare interface ModalButtonProps {
|