@progress/kendo-react-ripple 7.0.1 → 7.0.2-develop.2

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/Ripple.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
- import * as PropTypes from 'prop-types';
6
+ import PropTypes from 'prop-types';
7
7
  /**
8
8
  * Represents the KendoReact Ripple component.
9
9
  *
@@ -2,7 +2,4 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- (function(t,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react"),require("prop-types"),require("@progress/kendo-ripple"),require("@progress/kendo-licensing")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","@progress/kendo-ripple","@progress/kendo-licensing"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t.KendoReactRipple={},t.React,t.PropTypes,t.KendoRipple,t.KendoLicensing))})(this,function(t,i,d,m,u){"use strict";"use client";function r(n){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(s,e,o.get?o:{enumerable:!0,get:()=>n[e]})}}return s.default=n,Object.freeze(s)}const p=r(i),f=r(d),l=r(u),c={name:"@progress/kendo-react-ripple",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class a extends p.PureComponent{constructor(s){if(super(s),this._element=null,this.removeListeners=()=>{},this.registerListeners=()=>{const e=this._element;this.removeListeners();const o=m.register(e,[{selector:".k-button:not(li)"},{selector:".k-list>.k-item,.k-list>.k-list-item",options:{global:!0}},{selector:".k-checkbox-label,.k-radio-label"},{selector:".k-checkbox,.k-radio",options:{events:["focusin","animationend","click"]}}]);this.removeListeners=o},typeof l<"u")l.validatePackage(c);else{let e=`License activation failed for ${c.name}
6
- `;e+=`The @progress/kendo-licensing script is not loaded.
7
- `,e+=`See ${c.licensingDocsUrl} for more information.
8
- `,console.warn(e)}}componentDidMount(){this.registerListeners()}componentDidUpdate(){const{disabled:s}=this.props;s?this.removeListeners():this.registerListeners()}componentWillUnmount(){this.removeListeners()}render(){const s=this.props.className?"k-ripple-container "+this.props.className:"k-ripple-container";return p.createElement("span",{className:s,ref:e=>{this._element=e}},this.props.children)}}a.propTypes={disabled:f.bool},t.Ripple=a,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
5
+ (function(e,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("react"),require("prop-types"),require("@progress/kendo-ripple"),require("@progress/kendo-react-common")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","@progress/kendo-ripple","@progress/kendo-react-common"],r):(e=typeof globalThis<"u"?globalThis:e||self,r(e.KendoReactRipple={},e.React,e.PropTypes,e.KendoRipple,e.KendoReactCommon))})(this,function(e,r,p,l,a){"use strict";"use client";function d(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const i=d(r),m={name:"@progress/kendo-react-ripple",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class c extends i.PureComponent{constructor(t){super(t),this._element=null,this.removeListeners=()=>{},this.registerListeners=()=>{const s=this._element;this.removeListeners();const n=l.register(s,[{selector:".k-button:not(li)"},{selector:".k-list>.k-item,.k-list>.k-list-item",options:{global:!0}},{selector:".k-checkbox-label,.k-radio-label"},{selector:".k-checkbox,.k-radio",options:{events:["focusin","animationend","click"]}}]);this.removeListeners=n},a.validatePackage(m)}componentDidMount(){this.registerListeners()}componentDidUpdate(){const{disabled:t}=this.props;t?this.removeListeners():this.registerListeners()}componentWillUnmount(){this.removeListeners()}render(){const t=this.props.className?"k-ripple-container "+this.props.className:"k-ripple-container";return i.createElement("span",{className:t,ref:s=>{this._element=s}},this.props.children)}}c.propTypes={disabled:p.bool},e.Ripple=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/index.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export * from './index';
package/index.js CHANGED
@@ -2,7 +2,4 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),p=require("prop-types"),m=require("@progress/kendo-ripple"),d=require("@progress/kendo-licensing");function i(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const e in s)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(s,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>s[e]})}}return t.default=s,Object.freeze(t)}const r=i(a),u=i(p),c=i(d),o={name:"@progress/kendo-react-ripple",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class l extends r.PureComponent{constructor(t){if(super(t),this._element=null,this.removeListeners=()=>{},this.registerListeners=()=>{const e=this._element;this.removeListeners();const n=m.register(e,[{selector:".k-button:not(li)"},{selector:".k-list>.k-item,.k-list>.k-list-item",options:{global:!0}},{selector:".k-checkbox-label,.k-radio-label"},{selector:".k-checkbox,.k-radio",options:{events:["focusin","animationend","click"]}}]);this.removeListeners=n},typeof c<"u")c.validatePackage(o);else{let e=`License activation failed for ${o.name}
6
- `;e+=`The @progress/kendo-licensing script is not loaded.
7
- `,e+=`See ${o.licensingDocsUrl} for more information.
8
- `,console.warn(e)}}componentDidMount(){this.registerListeners()}componentDidUpdate(){const{disabled:t}=this.props;t?this.removeListeners():this.registerListeners()}componentWillUnmount(){this.removeListeners()}render(){const t=this.props.className?"k-ripple-container "+this.props.className:"k-ripple-container";return r.createElement("span",{className:t,ref:e=>{this._element=e}},this.props.children)}}l.propTypes={disabled:u.bool};exports.Ripple=l;
5
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),c=require("prop-types"),l=require("@progress/kendo-ripple"),a=require("@progress/kendo-react-common");function p(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const r=p(i),m={name:"@progress/kendo-react-ripple",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class n extends r.PureComponent{constructor(e){super(e),this._element=null,this.removeListeners=()=>{},this.registerListeners=()=>{const t=this._element;this.removeListeners();const o=l.register(t,[{selector:".k-button:not(li)"},{selector:".k-list>.k-item,.k-list>.k-list-item",options:{global:!0}},{selector:".k-checkbox-label,.k-radio-label"},{selector:".k-checkbox,.k-radio",options:{events:["focusin","animationend","click"]}}]);this.removeListeners=o},a.validatePackage(m)}componentDidMount(){this.registerListeners()}componentDidUpdate(){const{disabled:e}=this.props;e?this.removeListeners():this.registerListeners()}componentWillUnmount(){this.removeListeners()}render(){const e=this.props.className?"k-ripple-container "+this.props.className:"k-ripple-container";return r.createElement("span",{className:e,ref:t=>{this._element=t}},this.props.children)}}n.propTypes={disabled:c.bool};exports.Ripple=n;
package/index.mjs CHANGED
@@ -3,25 +3,25 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";
6
- import * as o from "react";
7
- import * as n from "prop-types";
8
- import { register as l } from "@progress/kendo-ripple";
9
- import * as i from "@progress/kendo-licensing";
10
- const t = {
6
+ import * as s from "react";
7
+ import r from "prop-types";
8
+ import { register as i } from "@progress/kendo-ripple";
9
+ import { validatePackage as n } from "@progress/kendo-react-common";
10
+ const c = {
11
11
  name: "@progress/kendo-react-ripple",
12
12
  productName: "KendoReact",
13
13
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
14
- publishDate: 1702377211,
14
+ publishDate: 1702631851,
15
15
  version: "",
16
16
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
17
17
  };
18
- class c extends o.PureComponent {
19
- constructor(s) {
20
- if (super(s), this._element = null, this.removeListeners = () => {
18
+ class l extends s.PureComponent {
19
+ constructor(e) {
20
+ super(e), this._element = null, this.removeListeners = () => {
21
21
  }, this.registerListeners = () => {
22
- const e = this._element;
22
+ const t = this._element;
23
23
  this.removeListeners();
24
- const r = l(e, [
24
+ const o = i(t, [
25
25
  { selector: ".k-button:not(li)" },
26
26
  { selector: ".k-list>.k-item,.k-list>.k-list-item", options: { global: !0 } },
27
27
  { selector: ".k-checkbox-label,.k-radio-label" },
@@ -32,16 +32,8 @@ class c extends o.PureComponent {
32
32
  }
33
33
  }
34
34
  ]);
35
- this.removeListeners = r;
36
- }, typeof i < "u")
37
- i.validatePackage(t);
38
- else {
39
- let e = `License activation failed for ${t.name}
40
- `;
41
- e += `The @progress/kendo-licensing script is not loaded.
42
- `, e += `See ${t.licensingDocsUrl} for more information.
43
- `, console.warn(e);
44
- }
35
+ this.removeListeners = o;
36
+ }, n(c);
45
37
  }
46
38
  /**
47
39
  * @hidden
@@ -53,8 +45,8 @@ class c extends o.PureComponent {
53
45
  * @hidden
54
46
  */
55
47
  componentDidUpdate() {
56
- const { disabled: s } = this.props;
57
- s ? this.removeListeners() : this.registerListeners();
48
+ const { disabled: e } = this.props;
49
+ e ? this.removeListeners() : this.registerListeners();
58
50
  }
59
51
  /**
60
52
  * @hidden
@@ -66,22 +58,22 @@ class c extends o.PureComponent {
66
58
  * @hidden
67
59
  */
68
60
  render() {
69
- const s = this.props.className ? "k-ripple-container " + this.props.className : "k-ripple-container";
70
- return /* @__PURE__ */ o.createElement(
61
+ const e = this.props.className ? "k-ripple-container " + this.props.className : "k-ripple-container";
62
+ return /* @__PURE__ */ s.createElement(
71
63
  "span",
72
64
  {
73
- className: s,
74
- ref: (e) => {
75
- this._element = e;
65
+ className: e,
66
+ ref: (t) => {
67
+ this._element = t;
76
68
  }
77
69
  },
78
70
  this.props.children
79
71
  );
80
72
  }
81
73
  }
82
- c.propTypes = {
83
- disabled: n.bool
74
+ l.propTypes = {
75
+ disabled: r.bool
84
76
  };
85
77
  export {
86
- c as Ripple
78
+ l as Ripple
87
79
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-ripple",
3
- "version": "7.0.1",
3
+ "version": "7.0.2-develop.2",
4
4
  "description": "React Ripple provides the Material ink ripple effect. KendoReact Ripple package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -10,14 +10,20 @@
10
10
  "types": "./index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
- "import": "./index.mjs",
14
- "require": "./index.js"
13
+ "import": {
14
+ "types": "./index.d.mts",
15
+ "default": "./index.mjs"
16
+ },
17
+ "require": {
18
+ "types": "./index.d.ts",
19
+ "default": "./index.js"
20
+ }
15
21
  }
16
22
  },
17
23
  "sideEffects": false,
18
24
  "peerDependencies": {
19
- "@progress/kendo-licensing": "^1.3.0",
20
- "@progress/kendo-react-common": "7.0.1",
25
+ "@progress/kendo-licensing": "^1.3.4",
26
+ "@progress/kendo-react-common": "7.0.2-develop.2",
21
27
  "@progress/kendo-ripple": "^1.0.1",
22
28
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
23
29
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"