@progress/kendo-react-notification 13.4.0-develop.2 → 13.4.0-develop.4
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/Notification.d.ts +17 -17
- package/Notification.js +1 -1
- package/Notification.mjs +56 -60
- package/NotificationGroup.d.ts +13 -10
- package/NotificationGroup.js +1 -1
- package/NotificationGroup.mjs +24 -26
- package/dist/cdn/js/kendo-react-notification.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +3 -3
package/Notification.d.ts
CHANGED
|
@@ -105,14 +105,28 @@ export interface NotificationProps {
|
|
|
105
105
|
*/
|
|
106
106
|
onClose?: (event: NotificationEvent) => void;
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* The default props of the Notification component.
|
|
110
|
+
*
|
|
111
|
+
* @hidden
|
|
112
|
+
*/
|
|
113
|
+
export declare const notificationDefaultProps: {
|
|
114
|
+
closable: boolean;
|
|
115
|
+
type: {
|
|
116
|
+
style: "none";
|
|
117
|
+
icon: boolean;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
108
120
|
/**
|
|
109
121
|
* Represents the [KendoReact Notification component](https://www.telerik.com/kendo-react-ui/components/notification).
|
|
110
122
|
*/
|
|
111
|
-
export declare
|
|
123
|
+
export declare const Notification: {
|
|
124
|
+
(props: NotificationProps): React.JSX.Element;
|
|
125
|
+
displayName: string;
|
|
112
126
|
/**
|
|
113
127
|
* @hidden
|
|
114
128
|
*/
|
|
115
|
-
|
|
129
|
+
propTypes: {
|
|
116
130
|
className: PropTypes.Requireable<string>;
|
|
117
131
|
closable: PropTypes.Requireable<NonNullable<boolean | object | null | undefined>>;
|
|
118
132
|
dir: PropTypes.Requireable<string>;
|
|
@@ -123,18 +137,4 @@ export declare class Notification extends React.Component<NotificationProps> {
|
|
|
123
137
|
}>>;
|
|
124
138
|
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
125
139
|
};
|
|
126
|
-
|
|
127
|
-
* @hidden
|
|
128
|
-
*/
|
|
129
|
-
static defaultProps: {
|
|
130
|
-
closable: boolean;
|
|
131
|
-
type: {
|
|
132
|
-
style: string;
|
|
133
|
-
icon: boolean;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* @hidden
|
|
138
|
-
*/
|
|
139
|
-
render(): React.JSX.Element;
|
|
140
|
-
}
|
|
140
|
+
};
|
package/Notification.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),e=require("prop-types"),p=require("@progress/kendo-react-common"),a=require("@progress/kendo-svg-icons");function d(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(c,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return c.default=t,Object.freeze(c)}const o=d(b),g="Close",k={success:"check-outline",error:"x-outline",info:"info-circle",warning:"exclamation-circle"},N={success:a.checkOutlineIcon,error:a.xOutlineIcon,info:a.infoCircleIcon,warning:a.exclamationCircleIcon},f={closable:!1,type:{style:"none",icon:!0}},l=t=>{const{children:c,className:n,dir:s,style:y,closable:r=f.closable,type:i=f.type,onClose:u}=t;return o.createElement("div",{dir:s,className:"k-notification"+(n?` ${n}`:"")+(i.style==="none"?"":` k-notification-${i.style}`)+(r?" k-notification-closable":""),style:y},i.icon&&o.createElement(p.IconWrap,{className:"k-notification-status",name:k[i.style],icon:N[i.style]}),o.createElement("div",{className:"k-notification-content"},c),r&&o.createElement("span",{className:"k-notification-actions"},o.createElement("span",{className:"k-notification-action k-notification-close-action",title:g,onClick:m=>{u&&u({target:l,syntheticEvent:m,nativeEvent:m.nativeEvent})},...typeof r!="boolean"?r:{}},o.createElement(p.IconWrap,{name:"x",icon:a.xIcon}))))};l.displayName="Notification";l.propTypes={className:e.string,closable:e.oneOfType([e.bool,e.object]),dir:e.string,style:e.object,type:e.shape({style:e.oneOf(["base","secondary","success","error","light","inverse","primary","tertiary","warning","info","dark"]),icon:e.bool}),onClose:e.func};exports.Notification=l;exports.notificationDefaultProps=f;
|
package/Notification.mjs
CHANGED
|
@@ -5,67 +5,69 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
8
|
+
import * as o from "react";
|
|
9
9
|
import e from "prop-types";
|
|
10
10
|
import { IconWrap as l } from "@progress/kendo-react-common";
|
|
11
|
-
import { exclamationCircleIcon as
|
|
12
|
-
const d = "Close",
|
|
11
|
+
import { exclamationCircleIcon as u, infoCircleIcon as b, xOutlineIcon as k, checkOutlineIcon as N, xIcon as E } from "@progress/kendo-svg-icons";
|
|
12
|
+
const d = "Close", g = {
|
|
13
13
|
success: "check-outline",
|
|
14
14
|
error: "x-outline",
|
|
15
15
|
info: "info-circle",
|
|
16
16
|
warning: "exclamation-circle"
|
|
17
|
-
},
|
|
18
|
-
success:
|
|
19
|
-
error:
|
|
20
|
-
info:
|
|
21
|
-
warning:
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
}, v = {
|
|
18
|
+
success: N,
|
|
19
|
+
error: k,
|
|
20
|
+
info: b,
|
|
21
|
+
warning: u
|
|
22
|
+
}, r = {
|
|
23
|
+
closable: !1,
|
|
24
|
+
type: { style: "none", icon: !0 }
|
|
25
|
+
}, i = (f) => {
|
|
26
|
+
const {
|
|
27
|
+
children: m,
|
|
28
|
+
className: c,
|
|
29
|
+
dir: p,
|
|
30
|
+
style: y,
|
|
31
|
+
closable: n = r.closable,
|
|
32
|
+
type: t = r.type,
|
|
33
|
+
onClose: a
|
|
34
|
+
} = f;
|
|
35
|
+
return /* @__PURE__ */ o.createElement(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
dir: p,
|
|
39
|
+
className: "k-notification" + (c ? ` ${c}` : "") + (t.style === "none" ? "" : ` k-notification-${t.style}`) + (n ? " k-notification-closable" : ""),
|
|
40
|
+
style: y
|
|
41
|
+
},
|
|
42
|
+
t.icon && /* @__PURE__ */ o.createElement(
|
|
43
|
+
l,
|
|
35
44
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
title: d,
|
|
54
|
-
onClick: (a) => {
|
|
55
|
-
c && c.call(void 0, {
|
|
56
|
-
target: this,
|
|
57
|
-
syntheticEvent: a,
|
|
58
|
-
nativeEvent: a.nativeEvent
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
...typeof s != "boolean" ? s : {}
|
|
45
|
+
className: "k-notification-status",
|
|
46
|
+
name: g[t.style],
|
|
47
|
+
icon: v[t.style]
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ o.createElement("div", { className: "k-notification-content" }, m),
|
|
51
|
+
n && /* @__PURE__ */ o.createElement("span", { className: "k-notification-actions" }, /* @__PURE__ */ o.createElement(
|
|
52
|
+
"span",
|
|
53
|
+
{
|
|
54
|
+
className: "k-notification-action k-notification-close-action",
|
|
55
|
+
title: d,
|
|
56
|
+
onClick: (s) => {
|
|
57
|
+
a && a({
|
|
58
|
+
target: i,
|
|
59
|
+
syntheticEvent: s,
|
|
60
|
+
nativeEvent: s.nativeEvent
|
|
61
|
+
});
|
|
62
62
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
...typeof n != "boolean" ? n : {}
|
|
64
|
+
},
|
|
65
|
+
/* @__PURE__ */ o.createElement(l, { name: "x", icon: E })
|
|
66
|
+
))
|
|
67
|
+
);
|
|
67
68
|
};
|
|
68
|
-
|
|
69
|
+
i.displayName = "Notification";
|
|
70
|
+
i.propTypes = {
|
|
69
71
|
className: e.string,
|
|
70
72
|
closable: e.oneOfType([e.bool, e.object]),
|
|
71
73
|
dir: e.string,
|
|
@@ -87,14 +89,8 @@ o.propTypes = {
|
|
|
87
89
|
icon: e.bool
|
|
88
90
|
}),
|
|
89
91
|
onClose: e.func
|
|
90
|
-
}, o.defaultProps = {
|
|
91
|
-
closable: !1,
|
|
92
|
-
type: {
|
|
93
|
-
style: "none",
|
|
94
|
-
icon: !0
|
|
95
|
-
}
|
|
96
92
|
};
|
|
97
|
-
let r = o;
|
|
98
93
|
export {
|
|
99
|
-
|
|
94
|
+
i as Notification,
|
|
95
|
+
r as notificationDefaultProps
|
|
100
96
|
};
|
package/NotificationGroup.d.ts
CHANGED
|
@@ -34,19 +34,22 @@ export interface NotificationGroupProps {
|
|
|
34
34
|
*/
|
|
35
35
|
style?: React.CSSProperties;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* The default props of the NotificationGroup component.
|
|
39
|
+
*
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
export declare const notificationGroupDefaultProps: {
|
|
43
|
+
style: {};
|
|
44
|
+
};
|
|
37
45
|
/**
|
|
38
46
|
* Represents the [KendoReact NotificationGroup component](https://www.telerik.com/kendo-react-ui/components/notification/api/notificationgroup).
|
|
39
47
|
*/
|
|
40
|
-
export declare
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
static propTypes: {
|
|
48
|
+
export declare const NotificationGroup: {
|
|
49
|
+
(props: NotificationGroupProps): React.JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
propTypes: {
|
|
45
52
|
className: PropTypes.Requireable<string>;
|
|
46
53
|
style: PropTypes.Requireable<object>;
|
|
47
54
|
};
|
|
48
|
-
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
render(): React.JSX.Element;
|
|
52
|
-
}
|
|
55
|
+
};
|
package/NotificationGroup.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),i=require("prop-types");function s(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=s(c),a={style:{}},n=e=>{const{style:o=a.style,className:t,children:r}=e;return l.createElement("div",{className:"k-notification-group"+(t?` ${t}`:""),style:{alignItems:"center",flexWrap:"wrap",...o}},r)};n.displayName="NotificationGroup";n.propTypes={className:i.string,style:i.object};exports.NotificationGroup=n;exports.notificationGroupDefaultProps=a;
|
package/NotificationGroup.mjs
CHANGED
|
@@ -5,33 +5,31 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
this.props.children
|
|
27
|
-
);
|
|
28
|
-
}
|
|
8
|
+
import * as i from "react";
|
|
9
|
+
import e from "prop-types";
|
|
10
|
+
const p = {
|
|
11
|
+
style: {}
|
|
12
|
+
}, o = (s) => {
|
|
13
|
+
const { style: r = p.style, className: t, children: a } = s;
|
|
14
|
+
return /* @__PURE__ */ i.createElement(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
className: "k-notification-group" + (t ? ` ${t}` : ""),
|
|
18
|
+
style: {
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
flexWrap: "wrap",
|
|
21
|
+
...r
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
a
|
|
25
|
+
);
|
|
29
26
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
o.displayName = "NotificationGroup";
|
|
28
|
+
o.propTypes = {
|
|
29
|
+
className: e.string,
|
|
30
|
+
style: e.object
|
|
33
31
|
};
|
|
34
|
-
let p = e;
|
|
35
32
|
export {
|
|
36
|
-
|
|
33
|
+
o as NotificationGroup,
|
|
34
|
+
p as notificationGroupDefaultProps
|
|
37
35
|
};
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("@progress/kendo-react-common"),require("@progress/kendo-svg-icons")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-common","@progress/kendo-svg-icons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactNotification={},e.React,e.PropTypes,e.KendoReactCommon,e.KendoSvgIcons)}(this,function(e,t,o,
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("@progress/kendo-react-common"),require("@progress/kendo-svg-icons")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-common","@progress/kendo-svg-icons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactNotification={},e.React,e.PropTypes,e.KendoReactCommon,e.KendoSvgIcons)}(this,function(e,t,n,o,i){"use strict";function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var s=c(t);const a={success:"check-outline",error:"x-outline",info:"info-circle",warning:"exclamation-circle"},r={success:i.checkOutlineIcon,error:i.xOutlineIcon,info:i.infoCircleIcon,warning:i.exclamationCircleIcon},l={closable:!1,type:{style:"none",icon:!0}},p=e=>{const{children:t,className:n,dir:c,style:f,closable:y=l.closable,type:m=l.type,onClose:u}=e;return s.createElement("div",{dir:c,className:"k-notification"+(n?` ${n}`:"")+("none"===m.style?"":` k-notification-${m.style}`)+(y?" k-notification-closable":""),style:f},m.icon&&s.createElement(o.IconWrap,{className:"k-notification-status",name:a[m.style],icon:r[m.style]}),s.createElement("div",{className:"k-notification-content"},t),y&&s.createElement("span",{className:"k-notification-actions"},s.createElement("span",{className:"k-notification-action k-notification-close-action",title:"Close",onClick:e=>{u&&u({target:p,syntheticEvent:e,nativeEvent:e.nativeEvent})},..."boolean"!=typeof y?y:{}},s.createElement(o.IconWrap,{name:"x",icon:i.xIcon}))))};p.displayName="Notification",p.propTypes={className:n.string,closable:n.oneOfType([n.bool,n.object]),dir:n.string,style:n.object,type:n.shape({style:n.oneOf(["base","secondary","success","error","light","inverse","primary","tertiary","warning","info","dark"]),icon:n.bool}),onClose:n.func};const f={style:{}},y=e=>{const{style:t=f.style,className:n,children:o}=e;return s.createElement("div",{className:"k-notification-group"+(n?` ${n}`:""),style:{alignItems:"center",flexWrap:"wrap",...t}},o)};y.displayName="NotificationGroup",y.propTypes={className:n.string,style:n.object},e.Notification=p,e.NotificationGroup=y});
|
package/package-metadata.mjs
CHANGED
|
@@ -8,6 +8,6 @@ export const packageMetadata = Object.freeze({
|
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
10
|
publishDate: 0,
|
|
11
|
-
version: '13.4.0-develop.
|
|
11
|
+
version: '13.4.0-develop.4',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-notification",
|
|
3
|
-
"version": "13.4.0-develop.
|
|
3
|
+
"version": "13.4.0-develop.4",
|
|
4
4
|
"description": "React Notification renders a message to the user with information about the status of an app process. KendoReact Notification package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
-
"@progress/kendo-react-common": "13.4.0-develop.
|
|
29
|
+
"@progress/kendo-react-common": "13.4.0-develop.4",
|
|
30
30
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
31
31
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
32
32
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"package": {
|
|
55
55
|
"productName": "KendoReact",
|
|
56
56
|
"productCode": "KENDOUIREACT",
|
|
57
|
-
"publishDate":
|
|
57
|
+
"publishDate": 1770362965,
|
|
58
58
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
59
59
|
}
|
|
60
60
|
},
|