analytica-frontend-lib 1.2.21 → 1.2.23
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/AlertManager/index.css +20 -3
- package/dist/AlertManager/index.css.map +1 -1
- package/dist/AlertManagerView/index.js +382 -159
- package/dist/AlertManagerView/index.js.map +1 -1
- package/dist/AlertManagerView/index.mjs +381 -159
- package/dist/AlertManagerView/index.mjs.map +1 -1
- package/dist/EmptyState/index.d.mts +65 -0
- package/dist/EmptyState/index.d.ts +65 -0
- package/dist/EmptyState/index.js +185 -0
- package/dist/EmptyState/index.js.map +1 -0
- package/dist/EmptyState/index.mjs +162 -0
- package/dist/EmptyState/index.mjs.map +1 -0
- package/dist/Radio/index.d.mts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Table/index.d.mts +23 -24
- package/dist/Table/index.d.ts +23 -24
- package/dist/Table/index.js +363 -140
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/index.mjs +358 -136
- package/dist/Table/index.mjs.map +1 -1
- package/dist/TableProvider/index.css +20 -3
- package/dist/TableProvider/index.css.map +1 -1
- package/dist/TableProvider/index.d.mts +1 -1
- package/dist/TableProvider/index.d.ts +1 -1
- package/dist/TableProvider/index.js +861 -629
- package/dist/TableProvider/index.js.map +1 -1
- package/dist/TableProvider/index.mjs +772 -541
- package/dist/TableProvider/index.mjs.map +1 -1
- package/dist/{TableProvider-CDcL1tDj.d.mts → TableProvider-BnAnv3OV.d.mts} +51 -4
- package/dist/{TableProvider-D4Ak7ofz.d.ts → TableProvider-GfPlLqzg.d.ts} +51 -4
- package/dist/index.css +20 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1361 -1279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1318 -1238
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +20 -3
- package/dist/styles.css.map +1 -1
- package/package.json +2 -1
|
@@ -92,6 +92,49 @@ interface PaginationConfig {
|
|
|
92
92
|
/** Total pages (if known from backend) */
|
|
93
93
|
totalPages?: number;
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Empty state configuration
|
|
97
|
+
*/
|
|
98
|
+
interface EmptyStateConfig {
|
|
99
|
+
/** Custom component to render when table is empty (no data and no search active) */
|
|
100
|
+
component?: ReactNode;
|
|
101
|
+
/** Image to display in empty state (path from project) */
|
|
102
|
+
image?: string;
|
|
103
|
+
/** Title text for empty state */
|
|
104
|
+
title?: string;
|
|
105
|
+
/** Description text for empty state */
|
|
106
|
+
description?: string;
|
|
107
|
+
/** Button text for empty state action (optional) */
|
|
108
|
+
buttonText?: string;
|
|
109
|
+
/** Icon to display on button (optional) */
|
|
110
|
+
buttonIcon?: ReactNode;
|
|
111
|
+
/** Callback when empty state button is clicked */
|
|
112
|
+
onButtonClick?: () => void;
|
|
113
|
+
/** Button variant (solid, outline, or link) */
|
|
114
|
+
buttonVariant?: 'solid' | 'outline' | 'link';
|
|
115
|
+
/** Button action color (primary, positive, or negative) */
|
|
116
|
+
buttonAction?: 'primary' | 'positive' | 'negative';
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Loading state configuration
|
|
120
|
+
*/
|
|
121
|
+
interface LoadingStateConfig {
|
|
122
|
+
/** Custom component to render when table is loading */
|
|
123
|
+
component?: ReactNode;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* No search result state configuration
|
|
127
|
+
*/
|
|
128
|
+
interface NoSearchResultConfig {
|
|
129
|
+
/** Custom component to render when search returns no results */
|
|
130
|
+
component?: ReactNode;
|
|
131
|
+
/** Title for no search result state */
|
|
132
|
+
title?: string;
|
|
133
|
+
/** Description for no search result state */
|
|
134
|
+
description?: string;
|
|
135
|
+
/** Image to display in no search result state */
|
|
136
|
+
image?: string;
|
|
137
|
+
}
|
|
95
138
|
/**
|
|
96
139
|
* Table components exposed via render prop
|
|
97
140
|
*/
|
|
@@ -131,8 +174,12 @@ interface TableProviderProps<T = Record<string, unknown>> {
|
|
|
131
174
|
readonly paginationConfig?: PaginationConfig;
|
|
132
175
|
/** Search placeholder text */
|
|
133
176
|
readonly searchPlaceholder?: string;
|
|
134
|
-
/**
|
|
135
|
-
readonly
|
|
177
|
+
/** Empty state configuration (when table is empty with no search) */
|
|
178
|
+
readonly emptyState?: EmptyStateConfig;
|
|
179
|
+
/** Loading state configuration (when table is loading) */
|
|
180
|
+
readonly loadingState?: LoadingStateConfig;
|
|
181
|
+
/** No search result state configuration (when search returns no results) */
|
|
182
|
+
readonly noSearchResultState?: NoSearchResultConfig;
|
|
136
183
|
/** Key field name to use for unique row identification (recommended for better performance) */
|
|
137
184
|
readonly rowKey?: keyof T;
|
|
138
185
|
/** Callback when any parameter changes */
|
|
@@ -187,6 +234,6 @@ interface TableProviderProps<T = Record<string, unknown>> {
|
|
|
187
234
|
* />
|
|
188
235
|
* ```
|
|
189
236
|
*/
|
|
190
|
-
declare function TableProvider<T extends Record<string, unknown>>({ data, headers, loading, variant, enableSearch, enableFilters, enableTableSort, enablePagination, enableRowClick, initialFilters, paginationConfig, searchPlaceholder,
|
|
237
|
+
declare function TableProvider<T extends Record<string, unknown>>({ data, headers, loading, variant, enableSearch, enableFilters, enableTableSort, enablePagination, enableRowClick, initialFilters, paginationConfig, searchPlaceholder, emptyState, loadingState, noSearchResultState, rowKey, onParamsChange, onRowClick, children, }: TableProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
191
238
|
|
|
192
|
-
export { type ColumnConfig as C, type FilterConfig as F, type PaginationConfig as P, TableProvider as T, type UseTableFilterOptions as U, type UseTableFilterReturn as a, type TableParams as b, type TableProviderProps as c, type TableComponents as d, useTableFilter as u };
|
|
239
|
+
export { type ColumnConfig as C, type EmptyStateConfig as E, type FilterConfig as F, type LoadingStateConfig as L, type NoSearchResultConfig as N, type PaginationConfig as P, TableProvider as T, type UseTableFilterOptions as U, type UseTableFilterReturn as a, type TableParams as b, type TableProviderProps as c, type TableComponents as d, useTableFilter as u };
|
|
@@ -92,6 +92,49 @@ interface PaginationConfig {
|
|
|
92
92
|
/** Total pages (if known from backend) */
|
|
93
93
|
totalPages?: number;
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Empty state configuration
|
|
97
|
+
*/
|
|
98
|
+
interface EmptyStateConfig {
|
|
99
|
+
/** Custom component to render when table is empty (no data and no search active) */
|
|
100
|
+
component?: ReactNode;
|
|
101
|
+
/** Image to display in empty state (path from project) */
|
|
102
|
+
image?: string;
|
|
103
|
+
/** Title text for empty state */
|
|
104
|
+
title?: string;
|
|
105
|
+
/** Description text for empty state */
|
|
106
|
+
description?: string;
|
|
107
|
+
/** Button text for empty state action (optional) */
|
|
108
|
+
buttonText?: string;
|
|
109
|
+
/** Icon to display on button (optional) */
|
|
110
|
+
buttonIcon?: ReactNode;
|
|
111
|
+
/** Callback when empty state button is clicked */
|
|
112
|
+
onButtonClick?: () => void;
|
|
113
|
+
/** Button variant (solid, outline, or link) */
|
|
114
|
+
buttonVariant?: 'solid' | 'outline' | 'link';
|
|
115
|
+
/** Button action color (primary, positive, or negative) */
|
|
116
|
+
buttonAction?: 'primary' | 'positive' | 'negative';
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Loading state configuration
|
|
120
|
+
*/
|
|
121
|
+
interface LoadingStateConfig {
|
|
122
|
+
/** Custom component to render when table is loading */
|
|
123
|
+
component?: ReactNode;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* No search result state configuration
|
|
127
|
+
*/
|
|
128
|
+
interface NoSearchResultConfig {
|
|
129
|
+
/** Custom component to render when search returns no results */
|
|
130
|
+
component?: ReactNode;
|
|
131
|
+
/** Title for no search result state */
|
|
132
|
+
title?: string;
|
|
133
|
+
/** Description for no search result state */
|
|
134
|
+
description?: string;
|
|
135
|
+
/** Image to display in no search result state */
|
|
136
|
+
image?: string;
|
|
137
|
+
}
|
|
95
138
|
/**
|
|
96
139
|
* Table components exposed via render prop
|
|
97
140
|
*/
|
|
@@ -131,8 +174,12 @@ interface TableProviderProps<T = Record<string, unknown>> {
|
|
|
131
174
|
readonly paginationConfig?: PaginationConfig;
|
|
132
175
|
/** Search placeholder text */
|
|
133
176
|
readonly searchPlaceholder?: string;
|
|
134
|
-
/**
|
|
135
|
-
readonly
|
|
177
|
+
/** Empty state configuration (when table is empty with no search) */
|
|
178
|
+
readonly emptyState?: EmptyStateConfig;
|
|
179
|
+
/** Loading state configuration (when table is loading) */
|
|
180
|
+
readonly loadingState?: LoadingStateConfig;
|
|
181
|
+
/** No search result state configuration (when search returns no results) */
|
|
182
|
+
readonly noSearchResultState?: NoSearchResultConfig;
|
|
136
183
|
/** Key field name to use for unique row identification (recommended for better performance) */
|
|
137
184
|
readonly rowKey?: keyof T;
|
|
138
185
|
/** Callback when any parameter changes */
|
|
@@ -187,6 +234,6 @@ interface TableProviderProps<T = Record<string, unknown>> {
|
|
|
187
234
|
* />
|
|
188
235
|
* ```
|
|
189
236
|
*/
|
|
190
|
-
declare function TableProvider<T extends Record<string, unknown>>({ data, headers, loading, variant, enableSearch, enableFilters, enableTableSort, enablePagination, enableRowClick, initialFilters, paginationConfig, searchPlaceholder,
|
|
237
|
+
declare function TableProvider<T extends Record<string, unknown>>({ data, headers, loading, variant, enableSearch, enableFilters, enableTableSort, enablePagination, enableRowClick, initialFilters, paginationConfig, searchPlaceholder, emptyState, loadingState, noSearchResultState, rowKey, onParamsChange, onRowClick, children, }: TableProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
191
238
|
|
|
192
|
-
export { type ColumnConfig as C, type FilterConfig as F, type PaginationConfig as P, TableProvider as T, type UseTableFilterOptions as U, type UseTableFilterReturn as a, type TableParams as b, type TableProviderProps as c, type TableComponents as d, useTableFilter as u };
|
|
239
|
+
export { type ColumnConfig as C, type EmptyStateConfig as E, type FilterConfig as F, type LoadingStateConfig as L, type NoSearchResultConfig as N, type PaginationConfig as P, TableProvider as T, type UseTableFilterOptions as U, type UseTableFilterReturn as a, type TableParams as b, type TableProviderProps as c, type TableComponents as d, useTableFilter as u };
|
package/dist/index.css
CHANGED
|
@@ -908,6 +908,9 @@
|
|
|
908
908
|
.h-\[122px\] {
|
|
909
909
|
height: 122px;
|
|
910
910
|
}
|
|
911
|
+
.h-\[150px\] {
|
|
912
|
+
height: 150px;
|
|
913
|
+
}
|
|
911
914
|
.h-\[152px\] {
|
|
912
915
|
height: 152px;
|
|
913
916
|
}
|
|
@@ -1016,6 +1019,9 @@
|
|
|
1016
1019
|
.min-h-\[600px\] {
|
|
1017
1020
|
min-height: 600px;
|
|
1018
1021
|
}
|
|
1022
|
+
.min-h-\[705px\] {
|
|
1023
|
+
min-height: 705px;
|
|
1024
|
+
}
|
|
1019
1025
|
.min-h-full {
|
|
1020
1026
|
min-height: 100%;
|
|
1021
1027
|
}
|
|
@@ -1124,6 +1130,9 @@
|
|
|
1124
1130
|
.w-\[160px\] {
|
|
1125
1131
|
width: 160px;
|
|
1126
1132
|
}
|
|
1133
|
+
.w-\[170px\] {
|
|
1134
|
+
width: 170px;
|
|
1135
|
+
}
|
|
1127
1136
|
.w-\[180px\] {
|
|
1128
1137
|
width: 180px;
|
|
1129
1138
|
}
|
|
@@ -2984,9 +2993,6 @@
|
|
|
2984
2993
|
.py-8 {
|
|
2985
2994
|
padding-block: calc(var(--spacing) * 8);
|
|
2986
2995
|
}
|
|
2987
|
-
.py-12 {
|
|
2988
|
-
padding-block: calc(var(--spacing) * 12);
|
|
2989
|
-
}
|
|
2990
2996
|
.py-\[17px\] {
|
|
2991
2997
|
padding-block: 17px;
|
|
2992
2998
|
}
|
|
@@ -3138,6 +3144,9 @@
|
|
|
3138
3144
|
.text-\[8px\] {
|
|
3139
3145
|
font-size: 8px;
|
|
3140
3146
|
}
|
|
3147
|
+
.text-\[18px\] {
|
|
3148
|
+
font-size: 18px;
|
|
3149
|
+
}
|
|
3141
3150
|
.leading-4 {
|
|
3142
3151
|
--tw-leading: calc(var(--spacing) * 4);
|
|
3143
3152
|
line-height: calc(var(--spacing) * 4);
|
|
@@ -3178,6 +3187,14 @@
|
|
|
3178
3187
|
--tw-leading: 23px;
|
|
3179
3188
|
line-height: 23px;
|
|
3180
3189
|
}
|
|
3190
|
+
.leading-\[27px\] {
|
|
3191
|
+
--tw-leading: 27px;
|
|
3192
|
+
line-height: 27px;
|
|
3193
|
+
}
|
|
3194
|
+
.leading-\[35px\] {
|
|
3195
|
+
--tw-leading: 35px;
|
|
3196
|
+
line-height: 35px;
|
|
3197
|
+
}
|
|
3181
3198
|
.leading-\[42px\] {
|
|
3182
3199
|
--tw-leading: 42px;
|
|
3183
3200
|
line-height: 42px;
|