@itcase/ui 1.8.152 → 1.8.154
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/{Group_cjs_CLE5_jDA.js → Group_cjs_BxbmyFvN.js} +2 -2
- package/dist/{Group_es_ZTwafPX1.js → Group_es_p5hBFgw4.js} +2 -2
- package/dist/cjs/components/AvatarStack.js +1 -1
- package/dist/cjs/components/Flex.js +6 -6
- package/dist/cjs/components/Grid.js +7 -7
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Modal.js +7 -3
- package/dist/cjs/components/Notification/stories/__mock__.js +4 -0
- package/dist/cjs/components/Notification.js +3 -3
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/context/Notifications.js +17 -24
- package/dist/components/AvatarStack.js +1 -1
- package/dist/components/Flex.js +6 -6
- package/dist/components/Grid.js +7 -7
- package/dist/components/Group.js +1 -1
- package/dist/components/Modal.js +7 -3
- package/dist/components/Notification/stories/__mock__.js +4 -0
- package/dist/components/Notification.js +3 -3
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/context/Notifications.js +17 -24
- package/dist/css/styles/bundle.css +9730 -0
- package/dist/css/styles/print/print.css +20 -0
- package/dist/types/components/Notification/stories/__mock__/index.d.ts +1 -0
- package/dist/types/components/Warning/Warning.interface.d.ts +4 -4
- package/dist/types/context/Notifications.d.ts +2 -2
- package/dist/types/context/Notifications.interface.d.ts +8 -6
- package/package.json +6 -6
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@media screen {
|
|
2
|
+
.print {
|
|
3
|
+
height: auto !important;
|
|
4
|
+
overflow: auto !important;
|
|
5
|
+
display: none !important;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@media print {
|
|
10
|
+
.no-print,
|
|
11
|
+
.no-print * {
|
|
12
|
+
height: 0 !important;
|
|
13
|
+
display: none !important;
|
|
14
|
+
}
|
|
15
|
+
.print {
|
|
16
|
+
height: auto !important;
|
|
17
|
+
overflow: auto !important;
|
|
18
|
+
display: block !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { CSSProperties, ElementType } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, BorderColorProps, FillProps,
|
|
2
|
+
import { AppearanceKeysDefault, BorderColorProps, FillProps, ItemFillProps, ShapeProps, SizePXProps, TextColorProps, TextSizeProps, TextWeightProps } from '@itcase/types';
|
|
3
3
|
interface WarningThemeColor {
|
|
4
4
|
borderColor?: BorderColorProps;
|
|
5
5
|
descriptionTextColor: TextColorProps;
|
|
6
6
|
descriptionTextSize: TextSizeProps;
|
|
7
7
|
fill?: FillProps;
|
|
8
8
|
iconAfter: ElementType;
|
|
9
|
-
iconAfterFillIcon:
|
|
9
|
+
iconAfterFillIcon: ItemFillProps;
|
|
10
10
|
iconAfterSize: SizePXProps;
|
|
11
11
|
iconAfterSrc: string;
|
|
12
12
|
iconBefore: ElementType;
|
|
13
13
|
iconBeforeFill: FillProps;
|
|
14
|
-
iconBeforeFillIcon:
|
|
14
|
+
iconBeforeFillIcon: ItemFillProps;
|
|
15
15
|
iconBeforeSize: SizePXProps;
|
|
16
16
|
iconBeforeSrc: string;
|
|
17
17
|
labelTextColor?: TextColorProps;
|
|
@@ -38,4 +38,4 @@ interface WarningProps {
|
|
|
38
38
|
style?: CSSProperties;
|
|
39
39
|
isSkeleton?: boolean;
|
|
40
40
|
}
|
|
41
|
-
export {
|
|
41
|
+
export { WarningConfig, WarningProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Id, SimpleCallback } from '@itcase/types';
|
|
2
|
-
import type { CreatedNotification, NotificationsProviderProps } from './Notifications.interface';
|
|
2
|
+
import type { CreatedNotification, Notification, NotificationsProviderProps } from './Notifications.interface';
|
|
3
3
|
declare function NotificationsProvider(props: NotificationsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function useNotifications():
|
|
4
|
+
declare function useNotifications(): Notification[];
|
|
5
5
|
declare function useNotificationsAPI(): {
|
|
6
6
|
hideNotifications: (targetId: Id) => void;
|
|
7
7
|
showNotification: (notification: string | CreatedNotification, onClose?: SimpleCallback) => void;
|
|
@@ -4,34 +4,36 @@ interface Notification {
|
|
|
4
4
|
id: Id;
|
|
5
5
|
_closeTimeout?: ReturnType<typeof setTimeout>;
|
|
6
6
|
after: React.ReactNode;
|
|
7
|
+
appearance?: string;
|
|
7
8
|
buttonLabel: string;
|
|
8
9
|
closeByTime: number | false;
|
|
9
10
|
closeIcon?: string;
|
|
11
|
+
closeIconAppearance?: string;
|
|
10
12
|
closeIconSrc?: string;
|
|
11
|
-
float?: boolean;
|
|
12
|
-
global?: boolean;
|
|
13
13
|
status: 'error' | 'info' | 'success' | 'warning';
|
|
14
14
|
text: string;
|
|
15
15
|
textColor: string;
|
|
16
16
|
title: string;
|
|
17
|
-
|
|
17
|
+
type?: 'float' | 'global' | 'toast';
|
|
18
|
+
isLoading: boolean;
|
|
18
19
|
onClickButton?: () => void;
|
|
19
20
|
onClose?: () => void;
|
|
20
21
|
}
|
|
21
22
|
interface CreatedNotification {
|
|
22
23
|
id?: Notification['id'];
|
|
23
24
|
after?: Notification['after'];
|
|
25
|
+
appearance?: Notification['appearance'];
|
|
24
26
|
buttonLabel?: Notification['buttonLabel'];
|
|
25
27
|
closeByTime?: Notification['closeByTime'];
|
|
26
28
|
closeIcon?: Notification['closeIcon'];
|
|
29
|
+
closeIconAppearance?: Notification['closeIconAppearance'];
|
|
27
30
|
closeIconSrc?: Notification['closeIconSrc'];
|
|
28
|
-
float?: Notification['float'];
|
|
29
|
-
global?: Notification['global'];
|
|
30
31
|
status?: Notification['status'];
|
|
31
32
|
text?: Notification['text'];
|
|
32
33
|
textColor?: Notification['textColor'];
|
|
33
34
|
title?: Notification['title'];
|
|
34
|
-
|
|
35
|
+
type?: Notification['type'];
|
|
36
|
+
isLoading?: Notification['isLoading'];
|
|
35
37
|
onClickButton?: Notification['onClickButton'];
|
|
36
38
|
onClose?: Notification['onClose'];
|
|
37
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.154",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"@itcase/common": "^1.2.32",
|
|
105
105
|
"@itcase/icons": "^1.2.23",
|
|
106
106
|
"@itcase/storybook-config": "^1.2.13",
|
|
107
|
-
"@itcase/tokens-am": "^1.1.
|
|
108
|
-
"@itcase/tokens-baikal": "^1.1.
|
|
107
|
+
"@itcase/tokens-am": "^1.1.21",
|
|
108
|
+
"@itcase/tokens-baikal": "^1.1.21",
|
|
109
109
|
"@itcase/tokens-palette": "^1.1.20",
|
|
110
110
|
"clsx": "^2.1.1",
|
|
111
111
|
"date-fns": "^4.1.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"react-dom": "^18.3.1",
|
|
122
122
|
"react-indiana-drag-scroll": "^3.0.3-alpha",
|
|
123
123
|
"react-inlinesvg": "^4.2.0",
|
|
124
|
-
"react-modal-sheet": "5.2.
|
|
124
|
+
"react-modal-sheet": "5.2.1",
|
|
125
125
|
"react-modern-drawer": "^1.4.0",
|
|
126
126
|
"react-otp-input": "^3.1.1",
|
|
127
127
|
"react-paginate": "^8.3.0",
|
|
@@ -143,11 +143,11 @@
|
|
|
143
143
|
"@itcase/lint": "^1.1.67",
|
|
144
144
|
"@itcase/types": "^1.0.45",
|
|
145
145
|
"@rollup/plugin-alias": "^5.1.1",
|
|
146
|
-
"@rollup/plugin-babel": "^6.0
|
|
146
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
147
147
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
148
148
|
"@rollup/plugin-image": "^3.0.3",
|
|
149
149
|
"@rollup/plugin-json": "^6.1.0",
|
|
150
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
150
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
151
151
|
"@rollup/plugin-terser": "^0.4.4",
|
|
152
152
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
153
153
|
"@semantic-release/changelog": "^6.0.3",
|