@astral/ui 4.87.0 → 4.88.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/components/Alert/Alert.js +9 -5
- package/components/Alert/constants.d.ts +2 -0
- package/components/Alert/constants.js +2 -0
- package/components/Alert/styles.d.ts +1 -1
- package/components/Alert/styles.js +47 -193
- package/components/Alert/types.d.ts +7 -0
- package/components/Alert/useLogic/useLogic.d.ts +3 -2
- package/components/Alert/useLogic/useLogic.js +4 -2
- package/components/CollapsableAlert/CollapsableAlert.d.ts +6 -1
- package/components/CollapsableAlert/CollapsableAlert.js +1 -1
- package/components/DashboardAlert/DashboardAlert.d.ts +4 -0
- package/components/DashboardAlert/DashboardAlert.js +5 -1
- package/components/DashboardAlert/styles.js +13 -15
- package/components/DashboardAlert/types.d.ts +4 -1
- package/components/DashboardLayout/Main/Main.js +2 -2
- package/components/DashboardLayout/Main/styles.d.ts +4 -0
- package/components/DashboardLayout/Main/styles.js +7 -0
- package/components/PageAlert/PageAlert.d.ts +7 -0
- package/components/PageAlert/PageAlert.js +6 -2
- package/components/PageLayout/styles.js +4 -0
- package/components/Select/Select.js +1 -1
- package/components/Select/useLogic/useLogic.d.ts +1 -1
- package/components/TagsList/types.d.ts +2 -2
- package/components/TagsList/useLogic/useLogic.js +16 -10
- package/components/TagsList/utils/getKey/getKey.js +4 -4
- package/components/fileUploading/FileUploader/faker.d.ts +1 -1
- package/components/fileUploading/PreviewFileUploader/faker.d.ts +1 -1
- package/hook-form/EditableText/EditingForm/useLogic/useLogic.d.ts +1 -1
- package/node/components/Alert/Alert.js +8 -4
- package/node/components/Alert/constants.d.ts +2 -0
- package/node/components/Alert/constants.js +2 -0
- package/node/components/Alert/styles.d.ts +1 -1
- package/node/components/Alert/styles.js +48 -194
- package/node/components/Alert/types.d.ts +7 -0
- package/node/components/Alert/useLogic/useLogic.d.ts +3 -2
- package/node/components/Alert/useLogic/useLogic.js +4 -2
- package/node/components/CollapsableAlert/CollapsableAlert.d.ts +6 -1
- package/node/components/CollapsableAlert/CollapsableAlert.js +1 -1
- package/node/components/DashboardAlert/DashboardAlert.d.ts +4 -0
- package/node/components/DashboardAlert/DashboardAlert.js +5 -1
- package/node/components/DashboardAlert/styles.js +13 -15
- package/node/components/DashboardAlert/types.d.ts +4 -1
- package/node/components/DashboardLayout/Main/Main.js +1 -1
- package/node/components/DashboardLayout/Main/styles.d.ts +4 -0
- package/node/components/DashboardLayout/Main/styles.js +8 -1
- package/node/components/PageAlert/PageAlert.d.ts +7 -0
- package/node/components/PageAlert/PageAlert.js +6 -2
- package/node/components/PageLayout/styles.js +4 -0
- package/node/components/Select/Select.js +1 -1
- package/node/components/Select/useLogic/useLogic.d.ts +1 -1
- package/node/components/TagsList/types.d.ts +2 -2
- package/node/components/TagsList/useLogic/useLogic.js +16 -10
- package/node/components/TagsList/utils/getKey/getKey.js +4 -4
- package/node/components/fileUploading/FileUploader/faker.d.ts +1 -1
- package/node/components/fileUploading/PreviewFileUploader/faker.d.ts +1 -1
- package/node/hook-form/EditableText/EditingForm/useLogic/useLogic.d.ts +1 -1
- package/package.json +39 -39
- package/components/PageAlert/styles.d.ts +0 -7
- package/components/PageAlert/styles.js +0 -10
- package/node/components/PageAlert/styles.d.ts +0 -7
- package/node/components/PageAlert/styles.js +0 -13
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PageAlert = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const DashboardAlert_1 = require("../DashboardAlert");
|
|
6
6
|
/**
|
|
7
7
|
* Компонент отображения уведомления на странице приложения
|
|
8
|
+
*
|
|
9
|
+
* @deprecated Компонент будет удалён — планируется полный переход на {@link Alert}.
|
|
10
|
+
* Не используйте `PageAlert` в новом коде, вместо него используйте `Alert`.
|
|
11
|
+
* Подробнее — в разделе «DashboardAlert / PageAlert» V5 Migration Guide.
|
|
8
12
|
*/
|
|
9
13
|
const PageAlert = (props) => {
|
|
10
|
-
return (0, jsx_runtime_1.jsx)(
|
|
14
|
+
return (0, jsx_runtime_1.jsx)(DashboardAlert_1.DashboardAlert, { ...props });
|
|
11
15
|
};
|
|
12
16
|
exports.PageAlert = PageAlert;
|
|
@@ -7,12 +7,16 @@ exports.MobileAlertWrapper = styled_1.styled.div `
|
|
|
7
7
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
8
8
|
display: block;
|
|
9
9
|
|
|
10
|
+
margin: ${({ theme }) => theme.spacing(3, 4, 0, 4)};
|
|
11
|
+
|
|
10
12
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
11
13
|
}
|
|
12
14
|
`;
|
|
13
15
|
exports.DesktopAlertWrapper = styled_1.styled.div `
|
|
14
16
|
display: block;
|
|
15
17
|
|
|
18
|
+
margin-bottom: ${({ theme }) => theme.spacing(4)};
|
|
19
|
+
|
|
16
20
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
17
21
|
display: none;
|
|
18
22
|
}
|
|
@@ -40,7 +40,7 @@ const SelectInner = ({ required, getOptionLabel, placeholder, helperText, hideHe
|
|
|
40
40
|
const renderValue = (selectedOptions) => {
|
|
41
41
|
// Массив с выбранными опциями
|
|
42
42
|
if (Array.isArray(selectedOptions) && selectedOptions.length) {
|
|
43
|
-
return ((0, jsx_runtime_1.jsx)(TagsList_1.TagsList, { data: selectedOptions,
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)(TagsList_1.TagsList, { data: selectedOptions, getOptionLabel: getOptionLabel || ((optionLabel) => optionLabel), onChange: handleChangeArrayValue, onClick: openSelect }));
|
|
44
44
|
}
|
|
45
45
|
// Пустой массив или пустая строка
|
|
46
46
|
if ((Array.isArray(selectedOptions) || typeof selectedOptions === 'string') &&
|
|
@@ -13,7 +13,7 @@ export declare const useLogic: <TValue>({ value, onChange, children, open: exter
|
|
|
13
13
|
isSelectedAll: boolean | undefined;
|
|
14
14
|
isIndeterminate: boolean | undefined;
|
|
15
15
|
optionsLength: number | null;
|
|
16
|
-
handleChangeArrayValue: (inputValue:
|
|
16
|
+
handleChangeArrayValue: (inputValue: unknown[] | undefined) => void | undefined;
|
|
17
17
|
selectAllClassName: string | undefined;
|
|
18
18
|
findMenuItemsLabel: (nodes: ReactNode, selectedValue: TValue) => ReactNode;
|
|
19
19
|
isShowingPlaceholder: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent, type RefObject } from 'react';
|
|
2
|
-
export type TagValue = string | Record<string, unknown>;
|
|
2
|
+
export type TagValue = string | number | Record<string, unknown>;
|
|
3
3
|
export type TagsListProps<TData extends TagValue = TagValue> = {
|
|
4
4
|
/**
|
|
5
5
|
* Название класса, применяется к корневому компоненту
|
|
@@ -17,7 +17,7 @@ export type TagsListProps<TData extends TagValue = TagValue> = {
|
|
|
17
17
|
* Поле, используемое в качестве ключа списка.
|
|
18
18
|
* Если не передано, для генерации ключа будет использоваться getOptionLabel
|
|
19
19
|
*/
|
|
20
|
-
keyId?: TData extends
|
|
20
|
+
keyId?: TData extends object ? keyof TData : never;
|
|
21
21
|
/**
|
|
22
22
|
* Используется для определения строкового значения опции
|
|
23
23
|
*/
|
|
@@ -82,19 +82,25 @@ const useLogic = ({ data = [], keyId, getOptionLabel, onChange, inputContainerRe
|
|
|
82
82
|
resizeObserver.disconnect();
|
|
83
83
|
};
|
|
84
84
|
}, [data]);
|
|
85
|
+
/**
|
|
86
|
+
* Возвращает значение, по которому определяется идентичность тегов.
|
|
87
|
+
* Для примитивов сравнение идет по самому значению, keyId применим только к объектам
|
|
88
|
+
*/
|
|
89
|
+
const getComparableValue = (option) => {
|
|
90
|
+
if (typeof option !== 'object' || option === null) {
|
|
91
|
+
return option;
|
|
92
|
+
}
|
|
93
|
+
if (keyId) {
|
|
94
|
+
return option[keyId];
|
|
95
|
+
}
|
|
96
|
+
return getOptionLabel(option);
|
|
97
|
+
};
|
|
85
98
|
const getTagProps = (option) => {
|
|
86
99
|
const label = getOptionLabel(option);
|
|
87
100
|
const onDelete = () => {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
if (keyId) {
|
|
93
|
-
return value[keyId] !== option[keyId];
|
|
94
|
-
}
|
|
95
|
-
return getOptionLabel(value) !== getOptionLabel(option);
|
|
96
|
-
});
|
|
97
|
-
onChange(newValue.length ? newValue : []);
|
|
101
|
+
const deletedValue = getComparableValue(option);
|
|
102
|
+
const newValue = data.filter((value) => getComparableValue(value) !== deletedValue);
|
|
103
|
+
onChange(newValue);
|
|
98
104
|
};
|
|
99
105
|
return { label, shrinks: false, onDelete };
|
|
100
106
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getKey = void 0;
|
|
4
4
|
const getKey = (option, keyId, getOptionLabel) => {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const isObjectOption = typeof option === 'object' && option !== null;
|
|
6
|
+
if (!isObjectOption) {
|
|
7
|
+
return String(option);
|
|
7
8
|
}
|
|
8
9
|
if (keyId) {
|
|
9
|
-
|
|
10
|
-
return typeof key === 'number' ? key.toString() : key;
|
|
10
|
+
return String(option[keyId]);
|
|
11
11
|
}
|
|
12
12
|
return getOptionLabel(option).toString();
|
|
13
13
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
-
export declare const fakeFileUploadQuery: (formData: FormData, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2
|
+
export declare const fakeFileUploadQuery: (formData: FormData, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}, any>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
-
export declare const fakePreviewFileUploadQuery: (formData: FormData, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2
|
+
export declare const fakePreviewFileUploadQuery: (formData: FormData, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}, any>>;
|
|
@@ -5,7 +5,7 @@ type UseLogicParams<TValue> = EditingFormProps<TValue>;
|
|
|
5
5
|
export declare const useLogic: <TValue>({ initialValue, children, validate, onClose, onSubmit, }: UseLogicParams<TValue>) => {
|
|
6
6
|
formProps: {
|
|
7
7
|
form: import("react-hook-form").UseFormReturn<FormValues, any>;
|
|
8
|
-
onSubmit: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
|
|
8
|
+
onSubmit: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void | undefined>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.88.0",
|
|
4
4
|
"browser": "./index.js",
|
|
5
5
|
"main": "./node/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -34,156 +34,156 @@
|
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
37
|
-
"node": "./node/index.js",
|
|
38
37
|
"module": "./index.js",
|
|
39
38
|
"require": "./node/index.js",
|
|
40
39
|
"types": "./index.d.ts",
|
|
41
40
|
"default": "./index.js",
|
|
42
|
-
"import": "./index.js"
|
|
41
|
+
"import": "./index.js",
|
|
42
|
+
"node": "./node/index.js"
|
|
43
43
|
},
|
|
44
44
|
"./declarations": {
|
|
45
|
-
"node": "./node/declarations.js",
|
|
46
45
|
"module": "./declarations.js",
|
|
47
46
|
"require": "./node/declarations.js",
|
|
48
47
|
"types": "./declarations.d.ts",
|
|
49
48
|
"default": "./declarations.js",
|
|
50
|
-
"import": "./declarations.js"
|
|
49
|
+
"import": "./declarations.js",
|
|
50
|
+
"node": "./node/declarations.js"
|
|
51
51
|
},
|
|
52
52
|
"./server": {
|
|
53
|
-
"node": "./node/server/index.js",
|
|
54
53
|
"module": "./server/index.js",
|
|
55
54
|
"require": "./node/server/index.js",
|
|
56
55
|
"types": "./server/index.d.ts",
|
|
57
56
|
"default": "./server/index.js",
|
|
58
|
-
"import": "./server/index.js"
|
|
57
|
+
"import": "./server/index.js",
|
|
58
|
+
"node": "./node/server/index.js"
|
|
59
59
|
},
|
|
60
60
|
"./components/PdfViewer": {
|
|
61
|
-
"node": "./node/components/PdfViewer/index.js",
|
|
62
61
|
"module": "./components/PdfViewer/index.js",
|
|
63
62
|
"require": "./node/components/PdfViewer/index.js",
|
|
64
63
|
"types": "./components/PdfViewer/index.d.ts",
|
|
65
64
|
"default": "./components/PdfViewer/index.js",
|
|
66
|
-
"import": "./components/PdfViewer/index.js"
|
|
65
|
+
"import": "./components/PdfViewer/index.js",
|
|
66
|
+
"node": "./node/components/PdfViewer/index.js"
|
|
67
67
|
},
|
|
68
68
|
"./components/JsonViewer": {
|
|
69
|
-
"node": "./node/components/JsonViewer/index.js",
|
|
70
69
|
"module": "./components/JsonViewer/index.js",
|
|
71
70
|
"require": "./node/components/JsonViewer/index.js",
|
|
72
71
|
"types": "./components/JsonViewer/index.d.ts",
|
|
73
72
|
"default": "./components/JsonViewer/index.js",
|
|
74
|
-
"import": "./components/JsonViewer/index.js"
|
|
73
|
+
"import": "./components/JsonViewer/index.js",
|
|
74
|
+
"node": "./node/components/JsonViewer/index.js"
|
|
75
75
|
},
|
|
76
76
|
"./components/Notification": {
|
|
77
|
-
"node": "./node/components/Notification/index.js",
|
|
78
77
|
"module": "./components/Notification/index.js",
|
|
79
78
|
"require": "./node/components/Notification/index.js",
|
|
80
79
|
"types": "./components/Notification/index.d.ts",
|
|
81
80
|
"default": "./components/Notification/index.js",
|
|
82
|
-
"import": "./components/Notification/index.js"
|
|
81
|
+
"import": "./components/Notification/index.js",
|
|
82
|
+
"node": "./node/components/Notification/index.js"
|
|
83
83
|
},
|
|
84
84
|
"./components/LegacyNotification": {
|
|
85
|
-
"node": "./node/components/LegacyNotification/index.js",
|
|
86
85
|
"module": "./components/LegacyNotification/index.js",
|
|
87
86
|
"require": "./node/components/LegacyNotification/index.js",
|
|
88
87
|
"types": "./components/LegacyNotification/index.d.ts",
|
|
89
88
|
"default": "./components/LegacyNotification/index.js",
|
|
90
|
-
"import": "./components/LegacyNotification/index.js"
|
|
89
|
+
"import": "./components/LegacyNotification/index.js",
|
|
90
|
+
"node": "./node/components/LegacyNotification/index.js"
|
|
91
91
|
},
|
|
92
92
|
"./components/Banner": {
|
|
93
|
-
"node": "./node/components/Banner/index.js",
|
|
94
93
|
"module": "./components/Banner/index.js",
|
|
95
94
|
"require": "./node/components/Banner/index.js",
|
|
96
95
|
"types": "./components/Banner/index.d.ts",
|
|
97
96
|
"default": "./components/Banner/index.js",
|
|
98
|
-
"import": "./components/Banner/index.js"
|
|
97
|
+
"import": "./components/Banner/index.js",
|
|
98
|
+
"node": "./node/components/Banner/index.js"
|
|
99
99
|
},
|
|
100
100
|
"./components/unstable/ResizingDataGrid": {
|
|
101
|
-
"node": "./node/components/ResizingDataGrid/index.js",
|
|
102
101
|
"module": "./components/ResizingDataGrid/index.js",
|
|
103
102
|
"require": "./node/components/ResizingDataGrid/index.js",
|
|
104
103
|
"types": "./components/ResizingDataGrid/index.d.ts",
|
|
105
104
|
"default": "./components/ResizingDataGrid/index.js",
|
|
106
|
-
"import": "./components/ResizingDataGrid/index.js"
|
|
105
|
+
"import": "./components/ResizingDataGrid/index.js",
|
|
106
|
+
"node": "./node/components/ResizingDataGrid/index.js"
|
|
107
107
|
},
|
|
108
108
|
"./components/unstable/ResizingDataGridInfinite": {
|
|
109
|
-
"node": "./node/components/ResizingDataGridInfinite/index.js",
|
|
110
109
|
"module": "./components/ResizingDataGridInfinite/index.js",
|
|
111
110
|
"require": "./node/components/ResizingDataGridInfinite/index.js",
|
|
112
111
|
"types": "./components/ResizingDataGridInfinite/index.d.ts",
|
|
113
112
|
"default": "./components/ResizingDataGridInfinite/index.js",
|
|
114
|
-
"import": "./components/ResizingDataGridInfinite/index.js"
|
|
113
|
+
"import": "./components/ResizingDataGridInfinite/index.js",
|
|
114
|
+
"node": "./node/components/ResizingDataGridInfinite/index.js"
|
|
115
115
|
},
|
|
116
116
|
"./components/InfiniteTreeList": {
|
|
117
|
-
"node": "./node/components/InfiniteTreeList/index.js",
|
|
118
117
|
"module": "./components/InfiniteTreeList/index.js",
|
|
119
118
|
"require": "./node/components/InfiniteTreeList/index.js",
|
|
120
119
|
"types": "./components/InfiniteTreeList/index.d.ts",
|
|
121
120
|
"default": "./components/InfiniteTreeList/index.js",
|
|
122
|
-
"import": "./components/InfiniteTreeList/index.js"
|
|
121
|
+
"import": "./components/InfiniteTreeList/index.js",
|
|
122
|
+
"node": "./node/components/InfiniteTreeList/index.js"
|
|
123
123
|
},
|
|
124
124
|
"./components/RedesignBanner": {
|
|
125
|
-
"node": "./node/components/RedesignBanner/index.js",
|
|
126
125
|
"module": "./components/RedesignBanner/index.js",
|
|
127
126
|
"require": "./node/components/RedesignBanner/index.js",
|
|
128
127
|
"types": "./components/RedesignBanner/index.d.ts",
|
|
129
128
|
"default": "./components/RedesignBanner/index.js",
|
|
130
|
-
"import": "./components/RedesignBanner/index.js"
|
|
129
|
+
"import": "./components/RedesignBanner/index.js",
|
|
130
|
+
"node": "./node/components/RedesignBanner/index.js"
|
|
131
131
|
},
|
|
132
132
|
"./components/TreeAsyncAutocomplete": {
|
|
133
|
-
"node": "./node/components/TreeAsyncAutocomplete/index.js",
|
|
134
133
|
"module": "./components/TreeAsyncAutocomplete/index.js",
|
|
135
134
|
"require": "./node/components/TreeAsyncAutocomplete/index.js",
|
|
136
135
|
"types": "./components/TreeAsyncAutocomplete/index.d.ts",
|
|
137
136
|
"default": "./components/TreeAsyncAutocomplete/index.js",
|
|
138
|
-
"import": "./components/TreeAsyncAutocomplete/index.js"
|
|
137
|
+
"import": "./components/TreeAsyncAutocomplete/index.js",
|
|
138
|
+
"node": "./node/components/TreeAsyncAutocomplete/index.js"
|
|
139
139
|
},
|
|
140
140
|
"./components/TreeLikeAsyncAutocomplete": {
|
|
141
|
-
"node": "./node/components/TreeLikeAsyncAutocomplete/index.js",
|
|
142
141
|
"module": "./components/TreeLikeAsyncAutocomplete/index.js",
|
|
143
142
|
"require": "./node/components/TreeLikeAsyncAutocomplete/index.js",
|
|
144
143
|
"types": "./components/TreeLikeAsyncAutocomplete/index.d.ts",
|
|
145
144
|
"default": "./components/TreeLikeAsyncAutocomplete/index.js",
|
|
146
|
-
"import": "./components/TreeLikeAsyncAutocomplete/index.js"
|
|
145
|
+
"import": "./components/TreeLikeAsyncAutocomplete/index.js",
|
|
146
|
+
"node": "./node/components/TreeLikeAsyncAutocomplete/index.js"
|
|
147
147
|
},
|
|
148
148
|
"./components/CardGridInfinite": {
|
|
149
|
-
"node": "./node/components/CardGridInfinite/index.js",
|
|
150
149
|
"module": "./components/CardGridInfinite/index.js",
|
|
151
150
|
"require": "./node/components/CardGridInfinite/index.js",
|
|
152
151
|
"types": "./components/CardGridInfinite/index.d.ts",
|
|
153
152
|
"default": "./components/CardGridInfinite/index.js",
|
|
154
|
-
"import": "./components/CardGridInfinite/index.js"
|
|
153
|
+
"import": "./components/CardGridInfinite/index.js",
|
|
154
|
+
"node": "./node/components/CardGridInfinite/index.js"
|
|
155
155
|
},
|
|
156
156
|
"./*": {
|
|
157
|
-
"node": "./node/components/*/public.js",
|
|
158
157
|
"module": "./components/*/public.js",
|
|
159
158
|
"require": "./node/components/*/public.js",
|
|
160
159
|
"types": "./components/*/public.d.ts",
|
|
161
160
|
"default": "./components/*/public.js",
|
|
162
|
-
"import": "./components/*/public.js"
|
|
161
|
+
"import": "./components/*/public.js",
|
|
162
|
+
"node": "./node/components/*/public.js"
|
|
163
163
|
},
|
|
164
164
|
"./hook-form/*": {
|
|
165
|
-
"node": "./node/hook-form/*/public.js",
|
|
166
165
|
"module": "./hook-form/*/public.js",
|
|
167
166
|
"require": "./node/hook-form/*/public.js",
|
|
168
167
|
"types": "./hook-form/*/public.d.ts",
|
|
169
168
|
"default": "./hook-form/*/public.js",
|
|
170
|
-
"import": "./hook-form/*/public.js"
|
|
169
|
+
"import": "./hook-form/*/public.js",
|
|
170
|
+
"node": "./node/hook-form/*/public.js"
|
|
171
171
|
},
|
|
172
172
|
"./icons/*": {
|
|
173
|
-
"node": "./node/icons/*/public.js",
|
|
174
173
|
"module": "./icons/*/public.js",
|
|
175
174
|
"require": "./node/icons/*/public.js",
|
|
176
175
|
"types": "./icons/*/public.d.ts",
|
|
177
176
|
"default": "./icons/*/public.js",
|
|
178
|
-
"import": "./icons/*/public.js"
|
|
177
|
+
"import": "./icons/*/public.js",
|
|
178
|
+
"node": "./node/icons/*/public.js"
|
|
179
179
|
},
|
|
180
180
|
"./constants/*": {
|
|
181
|
-
"node": "./node/constants/*/public.js",
|
|
182
181
|
"module": "./constants/*/public.js",
|
|
183
182
|
"require": "./node/constants/*/public.js",
|
|
184
183
|
"types": "./constants/*/public.d.ts",
|
|
185
184
|
"default": "./constants/*/public.js",
|
|
186
|
-
"import": "./constants/*/public.js"
|
|
185
|
+
"import": "./constants/*/public.js",
|
|
186
|
+
"node": "./node/constants/*/public.js"
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
"author": "Astral.Soft",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledDashboardAlert: import("../styled").StyledComponent<Omit<import("../Alert").AlertProps, "title" | "display" | "slots" | "slotProps" | "actions"> & {
|
|
3
|
-
linkButtonProps?: import("../DashboardAlert/types").LinkButtonProps<import("react").ElementType> | undefined;
|
|
4
|
-
isShow?: boolean | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
}, {}, {}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { alertClassnames } from '../Alert';
|
|
2
|
-
import { DashboardAlert } from '../DashboardAlert';
|
|
3
|
-
import { styled } from '../styled';
|
|
4
|
-
export const StyledDashboardAlert = styled(DashboardAlert) `
|
|
5
|
-
&.${alertClassnames.root} {
|
|
6
|
-
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
7
|
-
margin: ${({ theme }) => theme.spacing(3, 4, 0, 4)};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledDashboardAlert: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../Alert").AlertProps, "title" | "display" | "slots" | "slotProps" | "actions"> & {
|
|
3
|
-
linkButtonProps?: import("../DashboardAlert/types").LinkButtonProps<import("react").ElementType> | undefined;
|
|
4
|
-
isShow?: boolean | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
}, {}, {}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StyledDashboardAlert = void 0;
|
|
4
|
-
const Alert_1 = require("../Alert");
|
|
5
|
-
const DashboardAlert_1 = require("../DashboardAlert");
|
|
6
|
-
const styled_1 = require("../styled");
|
|
7
|
-
exports.StyledDashboardAlert = (0, styled_1.styled)(DashboardAlert_1.DashboardAlert) `
|
|
8
|
-
&.${Alert_1.alertClassnames.root} {
|
|
9
|
-
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
10
|
-
margin: ${({ theme }) => theme.spacing(3, 4, 0, 4)};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`;
|