@semcore/notice 17.2.2-prerelease.1 → 17.2.2-prerelease.11
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/lib/cjs/Notice.type.js.map +1 -1
- package/lib/es6/Notice.type.js.map +1 -1
- package/lib/types/Notice.d.ts +1 -0
- package/lib/types/Notice.d.ts.map +1 -0
- package/lib/types/Notice.type.d.ts +8 -7
- package/lib/types/Notice.type.d.ts.map +1 -0
- package/lib/types/NoticeSmart.d.ts +1 -0
- package/lib/types/NoticeSmart.d.ts.map +1 -0
- package/lib/types/NoticeSmart.type.d.ts +1 -0
- package/lib/types/NoticeSmart.type.d.ts.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +1 -0
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notice.type.js","names":[],"sources":["../../src/Notice.type.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Notice.type.js","names":[],"sources":["../../src/Notice.type.ts"],"sourcesContent":["import type { NSAnimation, NSBox } from '@semcore/base-components';\nimport type { NSButton } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Text } from '@semcore/typography';\n\nimport type { LocalizedMessaged } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSNotice {\n type Theme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\n type Props = NSBox.Props &\n NSAnimation.FadeInOut.Props & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /**\n * Notice theme\n * @default info\n */\n theme?: NSNotice.Theme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n };\n type DefaultProps = {\n theme: 'info';\n i18n: LocalizedMessaged;\n locale: 'en';\n };\n type Ctx = {\n getLabelProps?: PropGetterFn;\n };\n\n namespace Label {\n type Props = NSBox.Props & {\n theme?: NSNotice.Theme;\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n namespace Actions {\n type Component = NSBox.Component;\n }\n\n namespace Content {\n type Component = NSBox.Component;\n }\n\n namespace Title {\n type Component = typeof Text;\n }\n\n namespace Text {\n type Component = typeof Text;\n }\n\n namespace Close {\n type Component = NSButton.Component;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Label: Label.Component;\n Actions: Actions.Component;\n Content: Content.Component;\n Title: Title.Component;\n Text: Text.Component;\n Close: Close.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type NoticeTheme = NSNotice.Theme;\n/** @deprecated It will be removed in v18. */\nexport type NoticeProps = NSNotice.Props;\n/** @deprecated It will be removed in v18. */\nexport type NoticeLabelProps = NSNotice.Label.Props;\n/** @deprecated It will be removed in v18. */\nexport type NoticeContext = NSNotice.Ctx;\n\nexport type { NSNotice };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notice.type.js","names":[],"sources":["../../src/Notice.type.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Notice.type.js","names":[],"sources":["../../src/Notice.type.ts"],"sourcesContent":["import type { NSAnimation, NSBox } from '@semcore/base-components';\nimport type { NSButton } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Text } from '@semcore/typography';\n\nimport type { LocalizedMessaged } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSNotice {\n type Theme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\n type Props = NSBox.Props &\n NSAnimation.FadeInOut.Props & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /**\n * Notice theme\n * @default info\n */\n theme?: NSNotice.Theme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n };\n type DefaultProps = {\n theme: 'info';\n i18n: LocalizedMessaged;\n locale: 'en';\n };\n type Ctx = {\n getLabelProps?: PropGetterFn;\n };\n\n namespace Label {\n type Props = NSBox.Props & {\n theme?: NSNotice.Theme;\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n namespace Actions {\n type Component = NSBox.Component;\n }\n\n namespace Content {\n type Component = NSBox.Component;\n }\n\n namespace Title {\n type Component = typeof Text;\n }\n\n namespace Text {\n type Component = typeof Text;\n }\n\n namespace Close {\n type Component = NSButton.Component;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Label: Label.Component;\n Actions: Actions.Component;\n Content: Content.Component;\n Title: Title.Component;\n Text: Text.Component;\n Close: Close.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type NoticeTheme = NSNotice.Theme;\n/** @deprecated It will be removed in v18. */\nexport type NoticeProps = NSNotice.Props;\n/** @deprecated It will be removed in v18. */\nexport type NoticeLabelProps = NSNotice.Label.Props;\n/** @deprecated It will be removed in v18. */\nexport type NoticeContext = NSNotice.Ctx;\n\nexport type { NSNotice };\n"],"mappings":"","ignoreList":[]}
|
package/lib/types/Notice.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notice.d.ts","sourceRoot":"","sources":["../../src/Notice.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAwK9C;;;;GAIG;AACH,QAAA,MAAM,MAAM,oBAUV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type
|
|
1
|
+
import type { NSAnimation, NSBox } from '@semcore/base-components';
|
|
2
|
+
import type { NSButton } from '@semcore/button';
|
|
3
3
|
import type { PropGetterFn, Intergalactic } from '@semcore/core';
|
|
4
4
|
import type { Text } from '@semcore/typography';
|
|
5
5
|
import type { LocalizedMessaged } from './translations/__intergalactic-dynamic-locales';
|
|
6
6
|
declare namespace NSNotice {
|
|
7
7
|
type Theme = 'danger' | 'warning' | 'success' | 'info' | 'muted';
|
|
8
|
-
type Props =
|
|
8
|
+
type Props = NSBox.Props & NSAnimation.FadeInOut.Props & {
|
|
9
9
|
/** Property for managing visibility of Notice */
|
|
10
10
|
hidden?: boolean;
|
|
11
11
|
/**
|
|
@@ -29,16 +29,16 @@ declare namespace NSNotice {
|
|
|
29
29
|
getLabelProps?: PropGetterFn;
|
|
30
30
|
};
|
|
31
31
|
namespace Label {
|
|
32
|
-
type Props =
|
|
32
|
+
type Props = NSBox.Props & {
|
|
33
33
|
theme?: NSNotice.Theme;
|
|
34
34
|
};
|
|
35
35
|
type Component = Intergalactic.Component<'div', Props>;
|
|
36
36
|
}
|
|
37
37
|
namespace Actions {
|
|
38
|
-
type Component =
|
|
38
|
+
type Component = NSBox.Component;
|
|
39
39
|
}
|
|
40
40
|
namespace Content {
|
|
41
|
-
type Component =
|
|
41
|
+
type Component = NSBox.Component;
|
|
42
42
|
}
|
|
43
43
|
namespace Title {
|
|
44
44
|
type Component = typeof Text;
|
|
@@ -47,7 +47,7 @@ declare namespace NSNotice {
|
|
|
47
47
|
type Component = typeof Text;
|
|
48
48
|
}
|
|
49
49
|
namespace Close {
|
|
50
|
-
type Component =
|
|
50
|
+
type Component = NSButton.Component;
|
|
51
51
|
}
|
|
52
52
|
type Component = Intergalactic.Component<'div', Props, Ctx> & {
|
|
53
53
|
Label: Label.Component;
|
|
@@ -67,3 +67,4 @@ export type NoticeLabelProps = NSNotice.Label.Props;
|
|
|
67
67
|
/** @deprecated It will be removed in v18. */
|
|
68
68
|
export type NoticeContext = NSNotice.Ctx;
|
|
69
69
|
export type { NSNotice };
|
|
70
|
+
//# sourceMappingURL=Notice.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notice.type.d.ts","sourceRoot":"","sources":["../../src/Notice.type.ts"],"names":[],"mappings":"AAAA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":3,"file":"NoticeSmart.type.d.ts","sourceRoot":"","sources":["../../src/NoticeSmart.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,WAAW,aAAa,CAAC;IAC9B,KAAK,KAAK,GAAG,QAAQ,CAAC,KAAK,GAAG;QAC5B;;WAEG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAExB;;WAEG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAExB;;WAEG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAE1B,gCAAgC;QAChC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB;;WAEG;QACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAC;KACjD,CAAC;IACF,KAAK,YAAY,GAAG;QAClB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,KAAK,SAAS,GAAG,CACf,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,aAAa,CAChD,aAAa,CAAC,eAAe,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EACjE,UAAU,CACX,KACE,aAAa,CAAC,eAAe,CAAC,yBAAyB,GAC1D,aAAa,CAAC,eAAe,CAAC,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;CACxE;AAED,6CAA6C;AAC7C,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,KAAK,CAAC;AAEnD,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAe,MAAM,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.d.ts","sourceRoot":"","sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/notice",
|
|
3
3
|
"description": "Semrush Notice Component",
|
|
4
|
-
"version": "17.2.2-prerelease.
|
|
4
|
+
"version": "17.2.2-prerelease.11",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "^17.2.
|
|
18
|
-
"@semcore/typography": "^17.2.1"
|
|
17
|
+
"@semcore/button": "^17.2.2-prerelease.11",
|
|
18
|
+
"@semcore/typography": "^17.2.1-prerelease.11"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@semcore/base-components": "^17.2.
|
|
22
|
-
"@semcore/icon": "^17.
|
|
21
|
+
"@semcore/base-components": "^17.2.2-prerelease.11",
|
|
22
|
+
"@semcore/icon": "^17.3.0-prerelease.11"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"directory": "semcore/notice"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@semcore/
|
|
31
|
-
"@semcore/core": "17.2.1",
|
|
30
|
+
"@semcore/core": "17.3.1-prerelease.11",
|
|
32
31
|
"@semcore/testing-utils": "1.0.0",
|
|
33
|
-
"@semcore/
|
|
32
|
+
"@semcore/base-components": "17.2.2-prerelease.11",
|
|
33
|
+
"@semcore/icon": "17.3.0-prerelease.11"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "pnpm semcore-builder && pnpm vite build"
|