@semcore/notice 16.1.12-prerelease.1 → 17.0.0-prerelease.17
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/CHANGELOG.md +6 -0
- package/README.md +4 -4
- package/lib/cjs/Notice.js +160 -177
- package/lib/cjs/Notice.js.map +1 -1
- package/lib/cjs/NoticeSmart.js +27 -38
- package/lib/cjs/NoticeSmart.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +5 -5
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +16 -16
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/Notice.js +152 -170
- package/lib/es6/Notice.js.map +1 -1
- package/lib/es6/NoticeSmart.js +22 -33
- package/lib/es6/NoticeSmart.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +15 -15
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/Notice.mjs +150 -153
- package/lib/esm/NoticeSmart.mjs +25 -30
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +1 -1
- package/lib/types/index.d.ts +2 -21
- package/package.json +9 -9
package/lib/types/index.d.ts
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import type { FadeInOutProps } from '@semcore/
|
|
1
|
+
import type { FadeInOutProps, Box, BoxProps } from '@semcore/base-components';
|
|
2
2
|
import type Button from '@semcore/button';
|
|
3
|
-
import type { PropGetterFn,
|
|
4
|
-
import type { Box, BoxProps } from '@semcore/flex-box';
|
|
5
|
-
import type { IconProps } from '@semcore/icon';
|
|
3
|
+
import type { PropGetterFn, Intergalactic } from '@semcore/core';
|
|
6
4
|
import type { Text } from '@semcore/typography';
|
|
7
5
|
|
|
8
6
|
export type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';
|
|
9
|
-
export type NoticeUse = 'primary' | 'secondary';
|
|
10
7
|
|
|
11
|
-
/** @deprecated */
|
|
12
|
-
export interface INoticeProps extends NoticeProps, UnknownProperties {}
|
|
13
8
|
export type NoticeProps = BoxProps &
|
|
14
9
|
FadeInOutProps & {
|
|
15
10
|
/** Property for managing visibility of Notice */
|
|
16
11
|
hidden?: boolean;
|
|
17
|
-
/** Notice type
|
|
18
|
-
* @deprecated since version ^4.1.0
|
|
19
|
-
*/
|
|
20
|
-
use?: NoticeUse;
|
|
21
12
|
/**
|
|
22
13
|
* Notice theme
|
|
23
14
|
* @default info
|
|
@@ -31,20 +22,14 @@ export type NoticeProps = BoxProps &
|
|
|
31
22
|
locale?: string;
|
|
32
23
|
};
|
|
33
24
|
|
|
34
|
-
/** @deprecated */
|
|
35
|
-
export interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}
|
|
36
25
|
export type NoticeLabelProps = BoxProps & {
|
|
37
26
|
theme?: NoticeTheme;
|
|
38
27
|
};
|
|
39
28
|
|
|
40
|
-
/** @deprecated */
|
|
41
|
-
export interface INoticeContext extends NoticeContext, UnknownProperties {}
|
|
42
29
|
export type NoticeContext = {
|
|
43
30
|
getLabelProps: PropGetterFn;
|
|
44
31
|
};
|
|
45
32
|
|
|
46
|
-
/** @deprecated */
|
|
47
|
-
export interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}
|
|
48
33
|
export type NoticeSmartProps = NoticeProps & {
|
|
49
34
|
/**
|
|
50
35
|
* A custom element for additional information
|
|
@@ -76,10 +61,6 @@ declare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext>
|
|
|
76
61
|
Content: typeof Box;
|
|
77
62
|
Title: typeof Text;
|
|
78
63
|
Text: typeof Text;
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated Use Notice.Close instead of Notice.CloseIcon
|
|
81
|
-
*/
|
|
82
|
-
CloseIcon: Intergalactic.Component<'div', IconProps>;
|
|
83
64
|
Close: typeof Button;
|
|
84
65
|
};
|
|
85
66
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/notice",
|
|
3
3
|
"description": "Semrush Notice Component",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "17.0.0-prerelease.17",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,15 +14,13 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "16.0.
|
|
18
|
-
"@semcore/
|
|
19
|
-
"@semcore/
|
|
20
|
-
"@semcore/animation": "16.0.7",
|
|
21
|
-
"@semcore/flex-box": "16.0.11",
|
|
22
|
-
"@semcore/typography": "16.3.2-prerelease.1"
|
|
17
|
+
"@semcore/button": "^16.0.13-prerelease.17",
|
|
18
|
+
"@semcore/notice-global": "16.1.12",
|
|
19
|
+
"@semcore/typography": "^16.3.3-prerelease.17"
|
|
23
20
|
},
|
|
24
21
|
"peerDependencies": {
|
|
25
|
-
"@semcore/base-components": "^
|
|
22
|
+
"@semcore/base-components": "^17.0.0-prerelease.17",
|
|
23
|
+
"@semcore/icon": "^16.7.2-prerelease.17"
|
|
26
24
|
},
|
|
27
25
|
"repository": {
|
|
28
26
|
"type": "git",
|
|
@@ -30,7 +28,9 @@
|
|
|
30
28
|
"directory": "semcore/notice"
|
|
31
29
|
},
|
|
32
30
|
"devDependencies": {
|
|
33
|
-
"@semcore/core": "
|
|
31
|
+
"@semcore/core": "17.0.0-prerelease.17",
|
|
32
|
+
"@semcore/base-components": "17.0.0-prerelease.17",
|
|
33
|
+
"@semcore/icon": "16.7.2-prerelease.17",
|
|
34
34
|
"@semcore/testing-utils": "1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|