@progress/kendo-react-notification 13.4.0-develop.2 → 13.4.0-develop.3

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 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 class Notification extends React.Component<NotificationProps> {
123
+ export declare const Notification: {
124
+ (props: NotificationProps): React.JSX.Element;
125
+ displayName: string;
112
126
  /**
113
127
  * @hidden
114
128
  */
115
- static propTypes: {
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 f=require("react"),e=require("prop-types"),u=require("@progress/kendo-react-common"),r=require("@progress/kendo-svg-icons");function m(i){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(c,t,n.get?n:{enumerable:!0,get:()=>i[t]})}}return c.default=i,Object.freeze(c)}const o=m(f),y="Close",d={success:"check-outline",error:"x-outline",info:"info-circle",warning:"exclamation-circle"},b={success:r.checkOutlineIcon,error:r.xOutlineIcon,info:r.infoCircleIcon,warning:r.exclamationCircleIcon},s=class s extends o.Component{render(){const{onClose:c,className:t,closable:n=s.defaultProps.closable,type:a=s.defaultProps.type}=this.props;return o.createElement("div",{dir:this.props.dir,className:"k-notification"+(t?` ${t}`:"")+(a.style==="none"?"":` k-notification-${a.style}`)+(n?" k-notification-closable":""),style:this.props.style},a.icon&&o.createElement(u.IconWrap,{className:"k-notification-status",name:d[a.style],icon:b[a.style]}),o.createElement("div",{className:"k-notification-content"},this.props.children),n&&o.createElement("span",{className:"k-notification-actions"},o.createElement("span",{className:"k-notification-action k-notification-close-action",title:y,onClick:p=>{c&&c.call(void 0,{target:this,syntheticEvent:p,nativeEvent:p.nativeEvent})},...typeof n!="boolean"?n:{}},o.createElement(u.IconWrap,{name:"x",icon:r.xIcon}))))}};s.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},s.defaultProps={closable:!1,type:{style:"none",icon:!0}};let l=s;exports.Notification=l;
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 t from "react";
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 p, infoCircleIcon as m, xOutlineIcon as f, checkOutlineIcon as y, xIcon as u } from "@progress/kendo-svg-icons";
12
- const d = "Close", h = {
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
- }, b = {
18
- success: y,
19
- error: f,
20
- info: m,
21
- warning: p
22
- }, o = class o extends t.Component {
23
- /**
24
- * @hidden
25
- */
26
- render() {
27
- const {
28
- onClose: c,
29
- className: i,
30
- closable: s = o.defaultProps.closable,
31
- type: n = o.defaultProps.type
32
- } = this.props;
33
- return /* @__PURE__ */ t.createElement(
34
- "div",
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
- dir: this.props.dir,
37
- className: "k-notification" + (i ? ` ${i}` : "") + (n.style === "none" ? "" : ` k-notification-${n.style}`) + (s ? " k-notification-closable" : ""),
38
- style: this.props.style
39
- },
40
- n.icon && /* @__PURE__ */ t.createElement(
41
- l,
42
- {
43
- className: "k-notification-status",
44
- name: h[n.style],
45
- icon: b[n.style]
46
- }
47
- ),
48
- /* @__PURE__ */ t.createElement("div", { className: "k-notification-content" }, this.props.children),
49
- s && /* @__PURE__ */ t.createElement("span", { className: "k-notification-actions" }, /* @__PURE__ */ t.createElement(
50
- "span",
51
- {
52
- className: "k-notification-action k-notification-close-action",
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
- /* @__PURE__ */ t.createElement(l, { name: "x", icon: u })
64
- ))
65
- );
66
- }
63
+ ...typeof n != "boolean" ? n : {}
64
+ },
65
+ /* @__PURE__ */ o.createElement(l, { name: "x", icon: E })
66
+ ))
67
+ );
67
68
  };
68
- o.propTypes = {
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
- r as Notification
94
+ i as Notification,
95
+ r as notificationDefaultProps
100
96
  };
@@ -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 class NotificationGroup extends React.Component<NotificationGroupProps> {
41
- /**
42
- * @hidden
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
+ };
@@ -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 l=require("react"),a=require("prop-types");function i(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,c.get?c:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=i(l),n=class n extends o.Component{render(){const{style:r={},className:e}=this.props;return o.createElement("div",{className:"k-notification-group"+(e?` ${e}`:""),style:{alignItems:"center",flexWrap:"wrap",...r}},this.props.children)}};n.propTypes={className:a.string,style:a.object};let s=n;exports.NotificationGroup=s;
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;
@@ -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 t from "react";
9
- import r from "prop-types";
10
- const e = class e extends t.Component {
11
- /**
12
- * @hidden
13
- */
14
- render() {
15
- const { style: a = {}, className: s } = this.props;
16
- return /* @__PURE__ */ t.createElement(
17
- "div",
18
- {
19
- className: "k-notification-group" + (s ? ` ${s}` : ""),
20
- style: {
21
- alignItems: "center",
22
- flexWrap: "wrap",
23
- ...a
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
- e.propTypes = {
31
- className: r.string,
32
- style: r.object
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
- p as NotificationGroup
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,n,s){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var c=i(t);const r={success:"check-outline",error:"x-outline",info:"info-circle",warning:"exclamation-circle"},a={success:s.checkOutlineIcon,error:s.xOutlineIcon,info:s.infoCircleIcon,warning:s.exclamationCircleIcon},l=class e extends c.Component{render(){const{onClose:t,className:o,closable:i=e.defaultProps.closable,type:l=e.defaultProps.type}=this.props;return c.createElement("div",{dir:this.props.dir,className:"k-notification"+(o?` ${o}`:"")+("none"===l.style?"":` k-notification-${l.style}`)+(i?" k-notification-closable":""),style:this.props.style},l.icon&&c.createElement(n.IconWrap,{className:"k-notification-status",name:r[l.style],icon:a[l.style]}),c.createElement("div",{className:"k-notification-content"},this.props.children),i&&c.createElement("span",{className:"k-notification-actions"},c.createElement("span",{className:"k-notification-action k-notification-close-action",title:"Close",onClick:e=>{t&&t.call(void 0,{target:this,syntheticEvent:e,nativeEvent:e.nativeEvent})},..."boolean"!=typeof i?i:{}},c.createElement(n.IconWrap,{name:"x",icon:s.xIcon}))))}};l.propTypes={className:o.string,closable:o.oneOfType([o.bool,o.object]),dir:o.string,style:o.object,type:o.shape({style:o.oneOf(["base","secondary","success","error","light","inverse","primary","tertiary","warning","info","dark"]),icon:o.bool}),onClose:o.func},l.defaultProps={closable:!1,type:{style:"none",icon:!0}};let p=l;const f=class extends c.Component{render(){const{style:e={},className:t}=this.props;return c.createElement("div",{className:"k-notification-group"+(t?` ${t}`:""),style:{alignItems:"center",flexWrap:"wrap",...e}},this.props.children)}};f.propTypes={className:o.string,style:o.object};let d=f;e.Notification=p,e.NotificationGroup=d});
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});
@@ -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.2',
11
+ version: '13.4.0-develop.3',
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.2",
3
+ "version": "13.4.0-develop.3",
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.2",
29
+ "@progress/kendo-react-common": "13.4.0-develop.3",
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": 1770288006,
57
+ "publishDate": 1770312174,
58
58
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
59
59
  }
60
60
  },