@appquality/unguess-design-system 3.1.2-nav-beta → 3.1.2-sentiment-beta
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/.github/dependabot.yml +11 -11
- package/CHANGELOG.md +32 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +461 -118
- package/build/stories/charts/_types.d.ts +3 -3
- package/build/stories/charts/sentiment/_data.d.ts +9 -0
- package/build/stories/charts/sentiment/_types.d.ts +31 -0
- package/build/stories/charts/sentiment/index.d.ts +2 -0
- package/build/stories/charts/sentiment/index.stories.d.ts +5 -0
- package/build/stories/navigation/sidebar/index.stories.d.ts +0 -4
- package/build/stories/theme/components.d.ts +4 -9
- package/build/stories/theme/index.d.ts +4 -9
- package/package.json +1 -1
- package/yarn-error.log +0 -13958
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
export type ChartTooltipFunction = ({ value, label, data, }: {
|
|
3
|
-
value: number;
|
|
3
|
+
value: string | number;
|
|
4
4
|
label: string | number;
|
|
5
|
-
data?: Record<string, string | number | undefined>;
|
|
5
|
+
data?: Record<string, string | number | ReactNode | undefined>;
|
|
6
6
|
}) => React.ReactNode;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChartTooltipFunction } from "../_types";
|
|
2
|
+
type SentimentData = {
|
|
3
|
+
id: string;
|
|
4
|
+
data: {
|
|
5
|
+
x: string;
|
|
6
|
+
y?: number;
|
|
7
|
+
custom_data?: string;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
10
|
+
export interface SentimentChartProps {
|
|
11
|
+
data: SentimentData;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
margin?: {
|
|
15
|
+
top?: number;
|
|
16
|
+
right?: number;
|
|
17
|
+
bottom?: number;
|
|
18
|
+
left?: number;
|
|
19
|
+
};
|
|
20
|
+
tooltip?: ChartTooltipFunction;
|
|
21
|
+
i18n?: {
|
|
22
|
+
sentimentsValues: {
|
|
23
|
+
veryPositive: string;
|
|
24
|
+
positive: string;
|
|
25
|
+
neutral: string;
|
|
26
|
+
negative: string;
|
|
27
|
+
veryNegative: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SentimentChartProps } from "./_types";
|
|
2
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SentimentChartProps>;
|
|
3
|
+
export declare const WithCustomTooltip: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SentimentChartProps>;
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, SentimentChartProps>;
|
|
5
|
+
export default _default;
|
|
@@ -2,9 +2,5 @@ import { SidebarArgs } from "./_types";
|
|
|
2
2
|
interface SidebarStoryArgs extends SidebarArgs {
|
|
3
3
|
}
|
|
4
4
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SidebarStoryArgs>;
|
|
5
|
-
export declare const SingleProject: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SidebarStoryArgs>;
|
|
6
|
-
export declare const MultipleWorkspaces: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SidebarStoryArgs>;
|
|
7
|
-
export declare const WithTokens: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SidebarStoryArgs>;
|
|
8
|
-
export declare const WithAll: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SidebarStoryArgs>;
|
|
9
5
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, SidebarArgs>;
|
|
10
6
|
export default _default;
|
|
@@ -96,16 +96,11 @@ export declare const components: {
|
|
|
96
96
|
"&:hover"?: {
|
|
97
97
|
borderColor: string | undefined;
|
|
98
98
|
color: string | undefined;
|
|
99
|
-
backgroundColor: string;
|
|
100
|
-
"& svg"?: undefined;
|
|
101
|
-
} | {
|
|
102
|
-
backgroundColor: string;
|
|
103
|
-
color: string | undefined;
|
|
104
|
-
borderColor?: undefined;
|
|
99
|
+
backgroundColor: string | undefined;
|
|
105
100
|
"& svg"?: undefined;
|
|
106
101
|
} | {
|
|
107
102
|
backgroundColor: string | undefined;
|
|
108
|
-
color: string;
|
|
103
|
+
color: string | undefined;
|
|
109
104
|
borderColor?: undefined;
|
|
110
105
|
"& svg"?: undefined;
|
|
111
106
|
} | {
|
|
@@ -148,13 +143,13 @@ export declare const components: {
|
|
|
148
143
|
"&:hover"?: {
|
|
149
144
|
borderColor: string | undefined;
|
|
150
145
|
color: string | undefined;
|
|
151
|
-
backgroundColor: string;
|
|
146
|
+
backgroundColor: string | undefined;
|
|
152
147
|
} | {
|
|
153
148
|
backgroundColor: string | undefined;
|
|
154
149
|
borderColor?: undefined;
|
|
155
150
|
color?: undefined;
|
|
156
151
|
} | {
|
|
157
|
-
backgroundColor: string;
|
|
152
|
+
backgroundColor: string | undefined;
|
|
158
153
|
color: string | undefined;
|
|
159
154
|
borderColor?: undefined;
|
|
160
155
|
} | {
|
|
@@ -300,16 +300,11 @@ declare const theme: {
|
|
|
300
300
|
"&:hover"?: {
|
|
301
301
|
borderColor: string | undefined;
|
|
302
302
|
color: string | undefined;
|
|
303
|
-
backgroundColor: string;
|
|
304
|
-
"& svg"?: undefined;
|
|
305
|
-
} | {
|
|
306
|
-
backgroundColor: string;
|
|
307
|
-
color: string | undefined;
|
|
308
|
-
borderColor?: undefined;
|
|
303
|
+
backgroundColor: string | undefined;
|
|
309
304
|
"& svg"?: undefined;
|
|
310
305
|
} | {
|
|
311
306
|
backgroundColor: string | undefined;
|
|
312
|
-
color: string;
|
|
307
|
+
color: string | undefined;
|
|
313
308
|
borderColor?: undefined;
|
|
314
309
|
"& svg"?: undefined;
|
|
315
310
|
} | {
|
|
@@ -352,13 +347,13 @@ declare const theme: {
|
|
|
352
347
|
"&:hover"?: {
|
|
353
348
|
borderColor: string | undefined;
|
|
354
349
|
color: string | undefined;
|
|
355
|
-
backgroundColor: string;
|
|
350
|
+
backgroundColor: string | undefined;
|
|
356
351
|
} | {
|
|
357
352
|
backgroundColor: string | undefined;
|
|
358
353
|
borderColor?: undefined;
|
|
359
354
|
color?: undefined;
|
|
360
355
|
} | {
|
|
361
|
-
backgroundColor: string;
|
|
356
|
+
backgroundColor: string | undefined;
|
|
362
357
|
color: string | undefined;
|
|
363
358
|
borderColor?: undefined;
|
|
364
359
|
} | {
|