@semcore/notice-bubble 4.6.6 → 4.6.7
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/lib/cjs/NoticeBubble.js +11 -11
- package/lib/cjs/index.d.js +10 -0
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/NoticeBubble.js +11 -11
- package/lib/es6/index.d.js +7 -0
- package/lib/es6/index.d.js.map +1 -1
- package/lib/types/index.d.ts +24 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/cjs/NoticeBubble.js
CHANGED
|
@@ -61,20 +61,20 @@ var style = (
|
|
|
61
61
|
/*__reshadow_css_start__*/
|
|
62
62
|
_core.sstyled.insert(
|
|
63
63
|
/*__inner_css_start__*/
|
|
64
|
-
"@keyframes
|
|
64
|
+
"@keyframes enter_1rhk1{0%{transform:translate(100%,0)}to{transform:translate(0,0)}}@keyframes exit_1rhk1{0%{opacity:1}to{opacity:0}}.___SInfo_1rhk1_gg_,.___SView_1rhk1_gg_,.___SWarning_1rhk1_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x, 12px);padding:var(--intergalactic-spacing-3x, 12px) calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-1x, 4px)) var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-3x, 12px);width:100%;border-radius:var(--intergalactic-popper-rounded, 6px);overflow:hidden;box-sizing:border-box}.___SInfo_1rhk1_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SWarning_1rhk1_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SDismiss_1rhk1_gg_,.___SMessage_1rhk1_gg_{color:var(--intergalactic-text-primary-invert, #ffffff)}.___SMessage_1rhk1_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-100, 133%)}.___SDismiss_1rhk1_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:var(--intergalactic-spacing-2x, 8px)}@media (hover:hover){.___SDismiss_1rhk1_gg_:hover{color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}}.___SAction_1rhk1_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}.___SNoticeBubble_1rhk1_gg_{width:300px;position:fixed;z-index:var(--intergalactic-z-index-notice-bubble, 999);right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1rhk1_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}"
|
|
65
65
|
/*__inner_css_end__*/
|
|
66
|
-
, "
|
|
66
|
+
, "1rhk1_gg_")
|
|
67
67
|
/*__reshadow_css_end__*/
|
|
68
68
|
, {
|
|
69
|
-
"__SInfo": "
|
|
70
|
-
"__SWarning": "
|
|
71
|
-
"__SView": "
|
|
72
|
-
"__SMessage": "
|
|
73
|
-
"__SDismiss": "
|
|
74
|
-
"__SAction": "
|
|
75
|
-
"__SNoticeBubble": "
|
|
76
|
-
"@enter": "
|
|
77
|
-
"@exit": "
|
|
69
|
+
"__SInfo": "___SInfo_1rhk1_gg_",
|
|
70
|
+
"__SWarning": "___SWarning_1rhk1_gg_",
|
|
71
|
+
"__SView": "___SView_1rhk1_gg_",
|
|
72
|
+
"__SMessage": "___SMessage_1rhk1_gg_",
|
|
73
|
+
"__SDismiss": "___SDismiss_1rhk1_gg_",
|
|
74
|
+
"__SAction": "___SAction_1rhk1_gg_",
|
|
75
|
+
"__SNoticeBubble": "___SNoticeBubble_1rhk1_gg_",
|
|
76
|
+
"@enter": "enter_1rhk1",
|
|
77
|
+
"@exit": "exit_1rhk1"
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
var Notices = function Notices(props) {
|
package/lib/cjs/index.d.js
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
6
|
+
|
|
7
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
8
|
+
|
|
9
|
+
var NoticeBubbleManager = /*#__PURE__*/(0, _createClass2["default"])(function NoticeBubbleManager() {
|
|
10
|
+
(0, _classCallCheck2["default"])(this, NoticeBubbleManager);
|
|
11
|
+
});
|
|
2
12
|
//# sourceMappingURL=index.d.js.map
|
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n locale?: string;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (props: object) => {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update: (uid: string, props: object) => boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove: (uid: string) => boolean;\n}\n\ndeclare const NoticeBubble: <T>(props: INoticeBubbleInfoProps & T) => ReturnEl;\ndeclare const NoticeBubbleWarning: <T>(props: INoticeBubbleWarningProps & T) => ReturnEl;\ndeclare const NoticeBubbleContainer: (<T>(\n props: CProps<INoticeBubbleContainerProps & T>,\n) => ReturnEl) & {\n Info: typeof NoticeBubble;\n Warning: typeof NoticeBubbleWarning;\n};\ndeclare
|
|
1
|
+
{"version":3,"file":"index.d.js","names":["NoticeBubbleManager"],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n locale?: string;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (props: object) => {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update: (uid: string, props: object) => boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove: (uid: string) => boolean;\n}\n\ndeclare const NoticeBubble: <T>(props: INoticeBubbleInfoProps & T) => ReturnEl;\ndeclare const NoticeBubbleWarning: <T>(props: INoticeBubbleWarningProps & T) => ReturnEl;\ndeclare const NoticeBubbleContainer: (<T>(\n props: CProps<INoticeBubbleContainerProps & T>,\n) => ReturnEl) & {\n Info: typeof NoticeBubble;\n Warning: typeof NoticeBubbleWarning;\n};\ndeclare class NoticeBubbleManager implements INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add(props: object): {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update(uid: string, props: object): boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove(uid: string): boolean;\n}\n\nexport { NoticeBubbleContainer, NoticeBubble, NoticeBubbleWarning, NoticeBubbleManager };\nexport default NoticeBubbleManager;\n"],"mappings":";;;;;;;;IAqFcA,mB"}
|
package/lib/es6/NoticeBubble.js
CHANGED
|
@@ -30,20 +30,20 @@ var style = (
|
|
|
30
30
|
/*__reshadow_css_start__*/
|
|
31
31
|
_sstyled.insert(
|
|
32
32
|
/*__inner_css_start__*/
|
|
33
|
-
"@keyframes
|
|
33
|
+
"@keyframes enter_1rhk1{0%{transform:translate(100%,0)}to{transform:translate(0,0)}}@keyframes exit_1rhk1{0%{opacity:1}to{opacity:0}}.___SInfo_1rhk1_gg_,.___SView_1rhk1_gg_,.___SWarning_1rhk1_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x, 12px);padding:var(--intergalactic-spacing-3x, 12px) calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-1x, 4px)) var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-3x, 12px);width:100%;border-radius:var(--intergalactic-popper-rounded, 6px);overflow:hidden;box-sizing:border-box}.___SInfo_1rhk1_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SWarning_1rhk1_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SDismiss_1rhk1_gg_,.___SMessage_1rhk1_gg_{color:var(--intergalactic-text-primary-invert, #ffffff)}.___SMessage_1rhk1_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-100, 133%)}.___SDismiss_1rhk1_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:var(--intergalactic-spacing-2x, 8px)}@media (hover:hover){.___SDismiss_1rhk1_gg_:hover{color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}}.___SAction_1rhk1_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}.___SNoticeBubble_1rhk1_gg_{width:300px;position:fixed;z-index:var(--intergalactic-z-index-notice-bubble, 999);right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1rhk1_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}"
|
|
34
34
|
/*__inner_css_end__*/
|
|
35
|
-
, "
|
|
35
|
+
, "1rhk1_gg_")
|
|
36
36
|
/*__reshadow_css_end__*/
|
|
37
37
|
, {
|
|
38
|
-
"__SInfo": "
|
|
39
|
-
"__SWarning": "
|
|
40
|
-
"__SView": "
|
|
41
|
-
"__SMessage": "
|
|
42
|
-
"__SDismiss": "
|
|
43
|
-
"__SAction": "
|
|
44
|
-
"__SNoticeBubble": "
|
|
45
|
-
"@enter": "
|
|
46
|
-
"@exit": "
|
|
38
|
+
"__SInfo": "___SInfo_1rhk1_gg_",
|
|
39
|
+
"__SWarning": "___SWarning_1rhk1_gg_",
|
|
40
|
+
"__SView": "___SView_1rhk1_gg_",
|
|
41
|
+
"__SMessage": "___SMessage_1rhk1_gg_",
|
|
42
|
+
"__SDismiss": "___SDismiss_1rhk1_gg_",
|
|
43
|
+
"__SAction": "___SAction_1rhk1_gg_",
|
|
44
|
+
"__SNoticeBubble": "___SNoticeBubble_1rhk1_gg_",
|
|
45
|
+
"@enter": "enter_1rhk1",
|
|
46
|
+
"@exit": "exit_1rhk1"
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
var Notices = function Notices(props) {
|
package/lib/es6/index.d.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
+
|
|
4
|
+
var NoticeBubbleManager = /*#__PURE__*/_createClass(function NoticeBubbleManager() {
|
|
5
|
+
_classCallCheck(this, NoticeBubbleManager);
|
|
6
|
+
});
|
|
7
|
+
|
|
1
8
|
export {};
|
|
2
9
|
//# sourceMappingURL=index.d.js.map
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n locale?: string;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (props: object) => {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update: (uid: string, props: object) => boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove: (uid: string) => boolean;\n}\n\ndeclare const NoticeBubble: <T>(props: INoticeBubbleInfoProps & T) => ReturnEl;\ndeclare const NoticeBubbleWarning: <T>(props: INoticeBubbleWarningProps & T) => ReturnEl;\ndeclare const NoticeBubbleContainer: (<T>(\n props: CProps<INoticeBubbleContainerProps & T>,\n) => ReturnEl) & {\n Info: typeof NoticeBubble;\n Warning: typeof NoticeBubbleWarning;\n};\ndeclare
|
|
1
|
+
{"version":3,"file":"index.d.js","names":["NoticeBubbleManager"],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n locale?: string;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n /** Enables animation on first rendering\n * @default false\n */\n initialAnimation?: boolean;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (props: object) => {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update: (uid: string, props: object) => boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove: (uid: string) => boolean;\n}\n\ndeclare const NoticeBubble: <T>(props: INoticeBubbleInfoProps & T) => ReturnEl;\ndeclare const NoticeBubbleWarning: <T>(props: INoticeBubbleWarningProps & T) => ReturnEl;\ndeclare const NoticeBubbleContainer: (<T>(\n props: CProps<INoticeBubbleContainerProps & T>,\n) => ReturnEl) & {\n Info: typeof NoticeBubble;\n Warning: typeof NoticeBubbleWarning;\n};\ndeclare class NoticeBubbleManager implements INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add(props: object): {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update(uid: string, props: object): boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove(uid: string): boolean;\n}\n\nexport { NoticeBubbleContainer, NoticeBubble, NoticeBubbleWarning, NoticeBubbleManager };\nexport default NoticeBubbleManager;\n"],"mappings":";;;IAqFcA,mB"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -83,7 +83,30 @@ declare const NoticeBubbleContainer: (<T>(
|
|
|
83
83
|
Info: typeof NoticeBubble;
|
|
84
84
|
Warning: typeof NoticeBubbleWarning;
|
|
85
85
|
};
|
|
86
|
-
declare
|
|
86
|
+
declare class NoticeBubbleManager implements INoticeBubbleManager {
|
|
87
|
+
/**
|
|
88
|
+
* Adding a notice.
|
|
89
|
+
* Takes the props properties of NoticeBubble.
|
|
90
|
+
* Returns an object with the uid and the update, remove functions.
|
|
91
|
+
* */
|
|
92
|
+
add(props: object): {
|
|
93
|
+
uid: string;
|
|
94
|
+
update: (props: object) => boolean;
|
|
95
|
+
remove: () => boolean;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Updates the notice by uid.
|
|
99
|
+
* Takes the uid-unique identifier and the props-properties of NoticeBubble.
|
|
100
|
+
* Returns a successful or unsuccessful update.
|
|
101
|
+
* */
|
|
102
|
+
update(uid: string, props: object): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Deletes the notice by uid.
|
|
105
|
+
* Takes an uid-unique identifier.
|
|
106
|
+
* Returns a successful or unsuccessful deletion.
|
|
107
|
+
* */
|
|
108
|
+
remove(uid: string): boolean;
|
|
109
|
+
}
|
|
87
110
|
|
|
88
111
|
export { NoticeBubbleContainer, NoticeBubble, NoticeBubbleWarning, NoticeBubbleManager };
|
|
89
112
|
export default NoticeBubbleManager;
|