@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.
@@ -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,9 @@
1
+ export type Data = {
2
+ id: string;
3
+ data: {
4
+ x: string;
5
+ y: number;
6
+ custom_data?: string;
7
+ }[];
8
+ };
9
+ export declare const data: Data;
@@ -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,2 @@
1
+ import { SentimentChartProps } from "./_types";
2
+ export declare const SentimentChart: ({ data, width, height, margin, tooltip, i18n, }: SentimentChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -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
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "3.1.2-nav-beta",
3
+ "version": "3.1.2-sentiment-beta",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",