@foris/avocado-not-front 0.19.0 → 0.20.0
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/dist/avocado-not-front.es.js +25083 -25042
- package/dist/avocado-not-front.umd.js +148 -148
- package/dist/components/chart/Chart.d.ts +7 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/hooks/useAction.d.ts +4 -1
- package/dist/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components.type.d.ts +36 -19
- package/dist/types/componentsCore.type.d.ts +5 -0
- package/package.json +3 -3
- package/dist/components/dynamic-chart/DynamicChart.d.ts +0 -7
- /package/dist/components/{dynamic-chart → chart}/chart.constants.d.ts +0 -0
- /package/dist/components/{dynamic-chart → chart}/chart.types.d.ts +0 -0
- /package/dist/components/{dynamic-chart → chart}/charts/AreaChart.d.ts +0 -0
- /package/dist/components/{dynamic-chart → chart}/charts/BarChart.d.ts +0 -0
- /package/dist/components/{dynamic-chart → chart}/charts/LineChart.d.ts +0 -0
- /package/dist/components/{dynamic-chart → chart}/charts/PieChart.d.ts +0 -0
- /package/dist/components/{dynamic-chart → chart}/charts/index.d.ts +0 -0
|
@@ -6,7 +6,7 @@ import Checkbox from './checkbox/Checkbox';
|
|
|
6
6
|
import CodeEditor from './code-editor/CodeEditor';
|
|
7
7
|
import ContentWrapper from './content-wrapper/ContentWrapper';
|
|
8
8
|
import Divider from './divider/Divider';
|
|
9
|
-
import
|
|
9
|
+
import Chart from './chart/Chart';
|
|
10
10
|
import Header from './header/Header';
|
|
11
11
|
import Modal from './modal/Modal';
|
|
12
12
|
import OverlayRenderer from './overlay-renderer/OverlayRenderer';
|
|
@@ -17,4 +17,4 @@ import Switch from './switch/Switch';
|
|
|
17
17
|
import Table from './table/Table';
|
|
18
18
|
import TextField from './text-field/TextField';
|
|
19
19
|
import Toast from './toast/Toast';
|
|
20
|
-
export { Body, Breadcrumbs, Button, CardNotification, Checkbox, CodeEditor, ContentWrapper, Divider,
|
|
20
|
+
export { Body, Breadcrumbs, Button, CardNotification, Checkbox, CodeEditor, ContentWrapper, Divider, Chart, Header, Modal, OverlayRenderer, RoundButton, Select, Spacing, Switch, Table, TextField, Toast, };
|
|
@@ -6,6 +6,9 @@ import { NextUIResponseData } from '../types/builder.type';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const useAction: () => {
|
|
8
8
|
getNextUI: (userFlow: string, pageHash: string, entries: any, responseKey: string) => Promise<AxiosResponse<NextUIResponseData, any>>;
|
|
9
|
-
fetchDataSource: (dataSource: NotFrontDataSource, userFlow: string, showLoading?: boolean) => Promise<AxiosResponse<any, any> |
|
|
9
|
+
fetchDataSource: (dataSource: NotFrontDataSource, userFlow: string, showLoading?: boolean) => Promise<AxiosResponse<any, any> | {
|
|
10
|
+
status: number;
|
|
11
|
+
data: {};
|
|
12
|
+
} | undefined>;
|
|
10
13
|
fetchAndGetNextUI: (userFlow: string, pageHash: string, entries: any, responseKey: string, dataSource: NotFrontDataSource) => Promise<AxiosResponse<NextUIResponseData, any> | undefined>;
|
|
11
14
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._body_14tsv_1{padding:2rem 2.75rem;width:100%}._body_content_14tsv_5{display:flex;flex-direction:column;gap:.75rem;margin:0 auto;max-width:1440px}._cardNotificationNotFront_t7pln_1{max-width:50%}@media (max-width: 992px){._cardNotificationNotFront_t7pln_1{max-width:100%}}._codeEditor_7ct2r_1:not(:first-child){margin:1rem 0 0}._codeEditor_label_7ct2r_4{color:var(--color-neutral-90);display:block;font-family:Roboto,sans-serif;font-size:.75rem;font-weight:700;line-height:.875rem;margin:0 0 .5rem}._codeEditor_input_7ct2r_13{border-radius:.25rem;overflow:hidden;border:1px solid var(--color-neutral-30)}._contentWrapper_12gyy_1{max-width:1440px}._contentWrapper_12gyy_1._contentWrapper__centered_12gyy_4{margin:0 auto}._dividerNotFront_tze3j_1{margin:1.25rem 0}._header_1lcyj_1{padding:1.5rem 2.75rem;background-color:var(--color-gray-80)}._header_content_1lcyj_5{display:flex;flex-direction:column;gap:.75rem}._selectNotFront_1yw9q_1{max-width:364px}@media (max-width: 992px){._selectNotFront_1yw9q_1{max-width:364px}}._spacing_19hqa_1._spacing__xxs_19hqa_1{margin:.25rem 0 0}._spacing_19hqa_1._spacing__xs_19hqa_4{margin:.5rem 0 0}._spacing_19hqa_1._spacing__sm_19hqa_7{margin:.75rem 0 0}._spacing_19hqa_1._spacing__md_19hqa_10{margin:1rem 0 0}._spacing_19hqa_1._spacing__lg_19hqa_13{margin:1.25rem 0 0}._spacing_19hqa_1._spacing__xl_19hqa_16{margin:1.5rem 0 0}._spacing_19hqa_1._spacing__xxl_19hqa_19{margin:2rem 0 0}._spacing_19hqa_1._spacing__xxxl_19hqa_22{margin:2.75rem 0 0}._tableSkeleton_1621g_1{display:flex;flex-direction:column;gap:.5rem}._textFieldNotFront_cps4i_1{max-width:364px}@media (max-width: 992px){._textFieldNotFront_cps4i_1{max-width:364px}}
|
|
1
|
+
._body_14tsv_1{padding:2rem 2.75rem;width:100%}._body_content_14tsv_5{display:flex;flex-direction:column;gap:.75rem;margin:0 auto;max-width:1440px}._cardNotificationNotFront_t7pln_1{max-width:50%}@media (max-width: 992px){._cardNotificationNotFront_t7pln_1{max-width:100%}}._codeEditor_7ct2r_1:not(:first-child){margin:1rem 0 0}._codeEditor_label_7ct2r_4{color:var(--color-neutral-90);display:block;font-family:Roboto,sans-serif;font-size:.75rem;font-weight:700;line-height:.875rem;margin:0 0 .5rem}._codeEditor_input_7ct2r_13{border-radius:.25rem;overflow:hidden;border:1px solid var(--color-neutral-30)}._contentWrapper_12gyy_1{max-width:1440px}._contentWrapper_12gyy_1._contentWrapper__centered_12gyy_4{margin:0 auto}._dividerNotFront_tze3j_1{margin:1.25rem 0}._header_1lcyj_1{padding:1.5rem 2.75rem;background-color:var(--color-gray-80)}._header_content_1lcyj_5{display:flex;flex-direction:column;gap:.75rem}._modalContent_1piho_1{overflow:auto;max-height:50vh}@media (max-width: 992px){._modalContent_1piho_1{overflow:auto;max-height:70vh}}._selectNotFront_1yw9q_1{max-width:364px}@media (max-width: 992px){._selectNotFront_1yw9q_1{max-width:364px}}._spacing_19hqa_1._spacing__xxs_19hqa_1{margin:.25rem 0 0}._spacing_19hqa_1._spacing__xs_19hqa_4{margin:.5rem 0 0}._spacing_19hqa_1._spacing__sm_19hqa_7{margin:.75rem 0 0}._spacing_19hqa_1._spacing__md_19hqa_10{margin:1rem 0 0}._spacing_19hqa_1._spacing__lg_19hqa_13{margin:1.25rem 0 0}._spacing_19hqa_1._spacing__xl_19hqa_16{margin:1.5rem 0 0}._spacing_19hqa_1._spacing__xxl_19hqa_19{margin:2rem 0 0}._spacing_19hqa_1._spacing__xxxl_19hqa_22{margin:2.75rem 0 0}._tableSkeleton_1621g_1{display:flex;flex-direction:column;gap:.5rem}._textFieldNotFront_cps4i_1{max-width:364px}@media (max-width: 992px){._textFieldNotFront_cps4i_1{max-width:364px}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps, CardNotificationProps, CheckboxProps, DividerProps, HeadingProps, RoundButtonProps, SelectProps, SwitchProps, TableProps, TextFieldProps, TextProps, ModalProps } from '../../../avocado-suite';
|
|
2
|
-
import { NotFrontActionType, NotFrontBaseProps, NotFrontDataSource, NotFrontDataSourceSelect, NotFrontDataSourceTable, NotFrontDependency } from './componentsCore.type';
|
|
2
|
+
import { NotFrontActionType, NotFrontBaseProps, NotFrontDataSource, NotFrontDataSourceChart, NotFrontDataSourceSelect, NotFrontDataSourceTable, NotFrontDependency } from './componentsCore.type';
|
|
3
3
|
/**
|
|
4
4
|
* Represents a single breadcrumb item for the NotFront component
|
|
5
5
|
*/
|
|
@@ -66,6 +66,39 @@ export interface ButtonNotFrontProps extends NotFrontBaseProps, ButtonProps {
|
|
|
66
66
|
*/
|
|
67
67
|
dependencies?: NotFrontDependency[];
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Interface for the props used in the CardNotificationNotFront component.
|
|
71
|
+
*/
|
|
72
|
+
export interface CardNotificationNotFrontProps extends NotFrontBaseProps, CardNotificationProps {
|
|
73
|
+
component: 'cardNotification';
|
|
74
|
+
/**
|
|
75
|
+
* The content to be displayed inside the CardNotification component.
|
|
76
|
+
* This property is optional and represents the main text or message of the notification.
|
|
77
|
+
*/
|
|
78
|
+
content?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated Use `content` instead.
|
|
81
|
+
* This property will be removed in the future once the backend stops sending it.
|
|
82
|
+
* Currently kept for backward compatibility with existing implementations.
|
|
83
|
+
*/
|
|
84
|
+
description?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Interface for the props used in the ChartNotFront component.
|
|
88
|
+
*/
|
|
89
|
+
export interface ChartNotFrontProps extends NotFrontBaseProps {
|
|
90
|
+
component: 'chart';
|
|
91
|
+
/** Chart type */
|
|
92
|
+
type: 'area' | 'bar' | 'line' | 'pie';
|
|
93
|
+
/** Data source to load data for chart. */
|
|
94
|
+
dataSource: NotFrontDataSourceChart;
|
|
95
|
+
/** Chart data */
|
|
96
|
+
data: any;
|
|
97
|
+
/** Key for the x-axis */
|
|
98
|
+
xKey: string;
|
|
99
|
+
/** Keys for the y-axis */
|
|
100
|
+
yKeys: string[];
|
|
101
|
+
}
|
|
69
102
|
/**
|
|
70
103
|
* Interface for the props used in the CheckboxNotFront component.
|
|
71
104
|
*/
|
|
@@ -92,23 +125,6 @@ export interface CheckboxNotFrontProps extends NotFrontBaseProps, CheckboxProps
|
|
|
92
125
|
*/
|
|
93
126
|
dependencies?: NotFrontDependency[];
|
|
94
127
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Interface for the props used in the CardNotificationNotFront component.
|
|
97
|
-
*/
|
|
98
|
-
export interface CardNotificationNotFrontProps extends NotFrontBaseProps, CardNotificationProps {
|
|
99
|
-
component: 'cardNotification';
|
|
100
|
-
/**
|
|
101
|
-
* The content to be displayed inside the CardNotification component.
|
|
102
|
-
* This property is optional and represents the main text or message of the notification.
|
|
103
|
-
*/
|
|
104
|
-
content?: string;
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated Use `content` instead.
|
|
107
|
-
* This property will be removed in the future once the backend stops sending it.
|
|
108
|
-
* Currently kept for backward compatibility with existing implementations.
|
|
109
|
-
*/
|
|
110
|
-
description?: string;
|
|
111
|
-
}
|
|
112
128
|
/**
|
|
113
129
|
* Interface for the props used in the CodeEditorNotFront component.
|
|
114
130
|
*/
|
|
@@ -347,7 +363,7 @@ export interface ToastNotFrontProps extends NotFrontBaseProps {
|
|
|
347
363
|
/**
|
|
348
364
|
* Union type representing all possible NotFront component prop types.
|
|
349
365
|
*/
|
|
350
|
-
export type NotFrontComponent = BreadcrumbsNotFrontProps | ButtonNotFrontProps | CardNotificationNotFrontProps | CheckboxNotFrontProps | CodeEditorNotFrontProps | DividerNotFrontProps | HeadingNotFrontProps | ModalNotFrontProps | RoundButtonNotFrontProps | SelectNotFrontProps | SpacingNotFrontProps | SwitchNotFrontProps | TableNotFrontProps | TextFieldNotFrontProps | TextNotFrontProps | ToastNotFrontProps;
|
|
366
|
+
export type NotFrontComponent = BreadcrumbsNotFrontProps | ButtonNotFrontProps | CardNotificationNotFrontProps | ChartNotFrontProps | CheckboxNotFrontProps | CodeEditorNotFrontProps | DividerNotFrontProps | HeadingNotFrontProps | ModalNotFrontProps | RoundButtonNotFrontProps | SelectNotFrontProps | SpacingNotFrontProps | SwitchNotFrontProps | TableNotFrontProps | TextFieldNotFrontProps | TextNotFrontProps | ToastNotFrontProps;
|
|
351
367
|
/**
|
|
352
368
|
* Mapping of component identifiers (as strings) to their corresponding prop types.
|
|
353
369
|
*/
|
|
@@ -355,6 +371,7 @@ export type NotFrontComponentTypeMap = {
|
|
|
355
371
|
breadcrumbs: BreadcrumbsNotFrontProps;
|
|
356
372
|
button: ButtonNotFrontProps;
|
|
357
373
|
cardNotification: CardNotificationNotFrontProps;
|
|
374
|
+
chart: ChartNotFrontProps;
|
|
358
375
|
checkbox: CheckboxNotFrontProps;
|
|
359
376
|
code: CodeEditorNotFrontProps;
|
|
360
377
|
divider: DividerNotFrontProps;
|
|
@@ -30,6 +30,10 @@ interface MapperDataItem {
|
|
|
30
30
|
}
|
|
31
31
|
type MapperDataValue = string | MapperDataItem;
|
|
32
32
|
export type DataSourceMapperData = Record<string, MapperDataValue>;
|
|
33
|
+
export interface ChartDataSource {
|
|
34
|
+
jsonPathData: string;
|
|
35
|
+
mapperData: DataSourceMapperData;
|
|
36
|
+
}
|
|
33
37
|
export interface TableDataSource {
|
|
34
38
|
jsonPathData: string;
|
|
35
39
|
mapperData: DataSourceMapperData;
|
|
@@ -39,6 +43,7 @@ export interface TableDataSource {
|
|
|
39
43
|
totalPages?: string;
|
|
40
44
|
};
|
|
41
45
|
}
|
|
46
|
+
export type NotFrontDataSourceChart = NotFrontDataSource & ChartDataSource;
|
|
42
47
|
export type NotFrontDataSourceSelect = NotFrontDataSource & SelectDataSource;
|
|
43
48
|
export type NotFrontDataSourceTable = NotFrontDataSource & TableDataSource;
|
|
44
49
|
export interface NotFrontDependency {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/avocado-not-front",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"react-select-async-paginate": "0.7.3",
|
|
31
31
|
"recharts": "3.1.0",
|
|
32
32
|
"zustand": "4.5.4",
|
|
33
|
-
"@foris/avocado-
|
|
33
|
+
"@foris/avocado-suite": "0.36.0",
|
|
34
34
|
"@foris/avocado-icons": "1.15.0",
|
|
35
|
-
"@foris/avocado-
|
|
35
|
+
"@foris/avocado-core": "0.10.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@testing-library/jest-dom": "6.4.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|