Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-react-common

Package Overview
Dependencies
Maintainers
1
Versions
1225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-react-common - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1-develop.1

2

icons/SvgIcon.js

@@ -8,2 +8,2 @@ /**

*/
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),s=require("prop-types"),x=require("../classNames.js"),S=require("../unstyled/icons.js"),q=require("../unstyled/main.js");function R(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(l,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return l.default=e,Object.freeze(l)}const t=R(C),h=t.forwardRef((e,l)=>{const{children:o,className:r,svgClassName:N,icon:i,flip:d,id:z,tabIndex:I,size:m,style:a,svgStyle:p,themeColor:u,viewBox:f,name:T,onClick:M,...O}=e,g=t.useRef(null),v=q.useUnstyled(),w=v&&v.uSvgIcon;t.useImperativeHandle(l,()=>({element:g.current}));const y=t.useMemo(()=>i?i.name:c.icon,[i]),b=t.useMemo(()=>m||c.size,[m]),n=t.useMemo(()=>d||c.flip,[d]),P=t.useMemo(()=>f||c.viewBox,[f]),j=t.useMemo(()=>x.classNames(S.uSvgIcon.wrapper({c:w,iconNameProp:y,themeColor:u,flipH:n==="horizontal"||n==="both",flipV:n==="vertical"||n==="both",size:b}),r),[y,u,b,n,r]),B=t.useMemo(()=>e.width&&e.height?{width:e.width,height:e.height,...a}:e.width?{width:e.width,height:e.width,...a}:e.height?{width:e.height,height:e.height,...a}:{...a},[e.width,e.height,a]);return t.createElement("span",{className:x.classNames(S.uSvgIcon.svg({c:w,themeColor:u,flipH:n==="horizontal"||n==="both",flipV:n==="vertical"||n==="both"}),j),style:B,ref:g,onClick:M,"aria-hidden":!0},t.createElement("svg",{id:z,className:N,style:p,"aria-hidden":!0,tabIndex:I,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:P,dangerouslySetInnerHTML:i?{__html:i.content}:void 0,...O},i?void 0:o))});h.propTypes={style:s.object,classNames:s.string,children:s.any,icon:s.object,themeColor:s.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:s.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:s.oneOf(["default","horizontal","vertical","both"])};const c={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};h.displayName="KendoSvgIcon";exports.SvgIcon=h;
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),o=require("prop-types"),S=require("../classNames.js"),M=require("../unstyled/icons.js"),H=require("../unstyled/main.js");function R(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(l,s,r.get?r:{enumerable:!0,get:()=>e[s]})}}return l.default=e,Object.freeze(l)}const t=R(q),d=t.forwardRef((e,l)=>{const{children:s,className:r,svgClassName:N,icon:n,flip:f,id:p,tabIndex:z,size:g,style:a,svgStyle:I,themeColor:u,viewBox:v,name:_,onClick:P,...O}=e,w=t.useRef(null),y=H.useUnstyled(),h=y&&y.uSvgIcon;t.useImperativeHandle(l,()=>({element:w.current}));const b=t.useMemo(()=>n?n.name:c.icon,[n]),m=t.useMemo(()=>n?n.content:void 0,[n]),x=t.useMemo(()=>g||c.size,[g]),i=t.useMemo(()=>f||c.flip,[f]),j=t.useMemo(()=>v||c.viewBox,[v]),C=t.useMemo(()=>S.classNames(M.uSvgIcon.wrapper({c:h,iconNameProp:b,themeColor:u,flipH:i==="horizontal"||i==="both",flipV:i==="vertical"||i==="both",size:x}),r),[h,b,u,i,x,r]),B=t.useMemo(()=>e.width&&e.height?{width:e.width,height:e.height,...a}:e.width?{width:e.width,height:e.width,...a}:e.height?{width:e.height,height:e.height,...a}:{...a},[e.width,e.height,a]),T=t.useMemo(()=>m?{__html:m}:void 0,[m]);return t.createElement("span",{className:S.classNames(M.uSvgIcon.svg({c:h,themeColor:u,flipH:i==="horizontal"||i==="both",flipV:i==="vertical"||i==="both"}),C),style:B,ref:w,onClick:P,"aria-hidden":!0},t.createElement("svg",{id:p,className:N,style:I,"aria-hidden":!0,tabIndex:z,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:j,dangerouslySetInnerHTML:T,...O},n?void 0:s))});d.propTypes={style:o.object,classNames:o.string,children:o.any,icon:o.object,themeColor:o.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:o.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:o.oneOf(["default","horizontal","vertical","both"])};const c={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};d.displayName="KendoSvgIcon";exports.SvgIcon=d;
{
"name": "@progress/kendo-react-common",
"version": "9.0.0",
"version": "9.0.1-develop.1",
"description": "React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package",

@@ -5,0 +5,0 @@ "author": "Progress",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc