@appquality/unguess-design-system 3.1.2-beta.0 → 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/build/index.d.ts +1 -0
- package/build/index.js +421 -74
- package/build/stories/buttons/button/index.stories.d.ts +0 -1
- 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/dropdowns/select/index.stories.d.ts +0 -1
- package/build/stories/editor/index.stories.d.ts +0 -1
- package/build/stories/theme/index.d.ts +29 -13
- package/build/stories/tooltip/index.stories.d.ts +0 -1
- package/build/stories/typography/typescale/anchortag/index.stories.d.ts +0 -1
- package/build/stories/typography/typescale/index.stories.d.ts +0 -1
- package/package.json +2 -3
- package/yarn-error.log +0 -17994
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonArgs } from "./_types";
|
|
3
2
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
4
3
|
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
@@ -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;
|
|
@@ -204,6 +204,18 @@ declare const theme: {
|
|
|
204
204
|
xxxl: string;
|
|
205
205
|
};
|
|
206
206
|
components: {
|
|
207
|
+
"text.primary": () => {
|
|
208
|
+
color: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
"text.success": () => {
|
|
211
|
+
color: string | undefined;
|
|
212
|
+
};
|
|
213
|
+
"text.warning": () => {
|
|
214
|
+
color: string | undefined;
|
|
215
|
+
};
|
|
216
|
+
"text.danger": () => {
|
|
217
|
+
color: string | undefined;
|
|
218
|
+
};
|
|
207
219
|
"navigation.hoverableItem": ({ isCurrent }: {
|
|
208
220
|
isCurrent: boolean;
|
|
209
221
|
}) => {
|
|
@@ -288,36 +300,43 @@ declare const theme: {
|
|
|
288
300
|
"&:hover"?: {
|
|
289
301
|
borderColor: string | undefined;
|
|
290
302
|
color: string | undefined;
|
|
291
|
-
backgroundColor: string;
|
|
292
|
-
|
|
293
|
-
backgroundColor: string;
|
|
294
|
-
color: string | undefined;
|
|
295
|
-
borderColor?: undefined;
|
|
303
|
+
backgroundColor: string | undefined;
|
|
304
|
+
"& svg"?: undefined;
|
|
296
305
|
} | {
|
|
297
306
|
backgroundColor: string | undefined;
|
|
298
|
-
color: string;
|
|
307
|
+
color: string | undefined;
|
|
299
308
|
borderColor?: undefined;
|
|
309
|
+
"& svg"?: undefined;
|
|
300
310
|
} | {
|
|
301
311
|
backgroundColor: string;
|
|
312
|
+
color: string;
|
|
313
|
+
"& svg": {
|
|
314
|
+
color: string;
|
|
315
|
+
};
|
|
302
316
|
borderColor?: undefined;
|
|
303
|
-
color?: undefined;
|
|
304
317
|
} | undefined;
|
|
305
318
|
"&:active"?: {
|
|
306
319
|
borderColor: string | undefined;
|
|
307
320
|
color: string | undefined;
|
|
308
321
|
backgroundColor: string;
|
|
322
|
+
"& svg"?: undefined;
|
|
309
323
|
} | {
|
|
310
324
|
backgroundColor: string;
|
|
311
325
|
color: string | undefined;
|
|
312
326
|
borderColor?: undefined;
|
|
327
|
+
"& svg"?: undefined;
|
|
313
328
|
} | {
|
|
314
329
|
backgroundColor: string | undefined;
|
|
315
330
|
color: string;
|
|
316
331
|
borderColor?: undefined;
|
|
332
|
+
"& svg"?: undefined;
|
|
317
333
|
} | {
|
|
318
334
|
backgroundColor: string;
|
|
335
|
+
color: string;
|
|
336
|
+
"& svg": {
|
|
337
|
+
color: string;
|
|
338
|
+
};
|
|
319
339
|
borderColor?: undefined;
|
|
320
|
-
color?: undefined;
|
|
321
340
|
} | undefined;
|
|
322
341
|
borderColor?: string | undefined;
|
|
323
342
|
};
|
|
@@ -328,13 +347,13 @@ declare const theme: {
|
|
|
328
347
|
"&:hover"?: {
|
|
329
348
|
borderColor: string | undefined;
|
|
330
349
|
color: string | undefined;
|
|
331
|
-
backgroundColor: string;
|
|
350
|
+
backgroundColor: string | undefined;
|
|
332
351
|
} | {
|
|
333
352
|
backgroundColor: string | undefined;
|
|
334
353
|
borderColor?: undefined;
|
|
335
354
|
color?: undefined;
|
|
336
355
|
} | {
|
|
337
|
-
backgroundColor: string;
|
|
356
|
+
backgroundColor: string | undefined;
|
|
338
357
|
color: string | undefined;
|
|
339
358
|
borderColor?: undefined;
|
|
340
359
|
} | {
|
|
@@ -365,9 +384,6 @@ declare const theme: {
|
|
|
365
384
|
border: string;
|
|
366
385
|
};
|
|
367
386
|
chrome: any;
|
|
368
|
-
colors: {
|
|
369
|
-
primaryText: string;
|
|
370
|
-
};
|
|
371
387
|
notification: any;
|
|
372
388
|
};
|
|
373
389
|
shadows: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TooltipArgs } from "./_types";
|
|
3
2
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TooltipArgs>;
|
|
4
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const AnchorTag: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
3
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
4
3
|
[x: string]: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
3
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
4
3
|
[x: string]: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "3.1.2-beta
|
|
3
|
+
"version": "3.1.2-sentiment-beta",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"@nivo/waffle": "^0.80.0",
|
|
37
37
|
"@tiptap/extension-bubble-menu": "^2.0.0-beta.61",
|
|
38
38
|
"@tiptap/extension-character-count": "^2.0.0-beta.31",
|
|
39
|
-
"@tiptap/extension-link": "^2.0.4",
|
|
40
39
|
"@tiptap/extension-placeholder": "^2.0.0-beta.53",
|
|
41
40
|
"@tiptap/extension-typography": "^2.0.0-beta.22",
|
|
42
41
|
"@tiptap/pm": "^2.0.3",
|
|
@@ -91,8 +90,8 @@
|
|
|
91
90
|
"formik": "^2.2.9",
|
|
92
91
|
"prop-types": "^15.8.1",
|
|
93
92
|
"react": "^18.2.0",
|
|
94
|
-
"react-dom": "^18.2.0",
|
|
95
93
|
"react-scripts": "^5.0.1",
|
|
94
|
+
"react-dom": "^18.2.0",
|
|
96
95
|
"rimraf": "3.0.2",
|
|
97
96
|
"rollup": "~2.66",
|
|
98
97
|
"rollup-plugin-typescript2": "^0.34.1",
|