@sisense/sdk-shared-ui 1.28.0 → 1.30.0
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/dist/Breadcrumbs-B46ViOSv.cjs +3 -0
- package/dist/Breadcrumbs-CQNCIJ2Y.js +301 -0
- package/dist/Button-CoMaroSC.cjs +1 -0
- package/dist/Button-D5ZAS_sd.js +569 -0
- package/dist/ButtonBase-Camgk6s8.cjs +74 -0
- package/dist/{createSvgIcon-CXJWSg3i.js → ButtonBase-DPVWpC8-.js} +331 -350
- package/dist/{Checkbox-CrbGw8d7.js → Checkbox-3bG1OLg3.js} +21 -18
- package/dist/Checkbox-oJOn5Vb9.cjs +1 -0
- package/dist/{Icon-B1V-T6UH.cjs → Icon-CqoYg88-.cjs} +1 -1
- package/dist/{Icon-Cs6oGRgo.js → Icon-D0uZg6iJ.js} +31 -10
- package/dist/{SvgIcon-SnObJHZS.cjs → SvgIcon-Dg-EBYZz.cjs} +1 -1
- package/dist/{SvgIcon-LwOuESoH.js → SvgIcon-DsAvI5iY.js} +1 -1
- package/dist/{TablePagination-B8I5QURH.js → TablePagination-DUkJaWJG.js} +2133 -2304
- package/dist/TablePagination-Yp8eKLZB.cjs +15 -0
- package/dist/{ThemeProvider-aq1EWT1u.js → ThemeProvider-BCsnqK18.js} +1198 -1154
- package/dist/ThemeProvider-BjBWRt7C.cjs +114 -0
- package/dist/{Tooltip-vVc6Lxew.js → Tooltip-B0-7TF8b.js} +15 -13
- package/dist/Tooltip-DE1hlnS3.cjs +7 -0
- package/dist/{Typography-C891hjk2.js → Typography-BGFgTnYN.js} +3 -2
- package/dist/{Typography-vldQClJj.cjs → Typography-CGsd6zC4.cjs} +1 -1
- package/dist/createSvgIcon-DDrcw4wZ.cjs +1 -0
- package/dist/createSvgIcon-rAujRRtd.js +17 -0
- package/dist/deepmerge-BuAjuQR6.cjs +17 -0
- package/dist/deepmerge-DNqbOtFI.js +177 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +30 -24
- package/dist/integerPropType-B8hl-7D0.js +180 -0
- package/dist/integerPropType-BGlNA6vX.cjs +17 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.js +7 -0
- package/dist/lib/Breadcrumbs/index.d.ts +5 -0
- package/dist/lib/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts +4 -0
- package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/themes/index.d.ts +2 -0
- package/dist/lib/Breadcrumbs/themes/index.d.ts.map +1 -0
- package/dist/lib/Button/Button.cjs +1 -0
- package/dist/lib/Button/Button.d.ts +10 -0
- package/dist/lib/Button/Button.d.ts.map +1 -0
- package/dist/lib/Button/Button.js +7 -0
- package/dist/lib/Button/index.d.ts +5 -0
- package/dist/lib/Button/index.d.ts.map +1 -0
- package/dist/lib/Button/themes/buttonsTheme.d.ts +11 -0
- package/dist/lib/Button/themes/buttonsTheme.d.ts.map +1 -0
- package/dist/lib/Button/themes/index.d.ts +2 -0
- package/dist/lib/Button/themes/index.d.ts.map +1 -0
- package/dist/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +2 -2
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.cjs +1 -1
- package/dist/lib/Icon/Icon.d.ts +1 -1
- package/dist/lib/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.js +1 -1
- package/dist/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lib/Typography/Typography.cjs +1 -1
- package/dist/lib/Typography/Typography.js +2 -2
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/package.json +18 -1
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-7x9FkqBW.js +720 -0
- package/dist/useSlot-B_P_o-pz.cjs +1 -0
- package/dist/useSlotProps-BpXHXb21.js +102 -0
- package/dist/useSlotProps-COvANhgg.cjs +1 -0
- package/dist/{useTheme-DJmNR5EL.cjs → useTheme-BN6DGaDZ.cjs} +1 -1
- package/dist/{useTheme-CtIZL8WJ.js → useTheme-eCVqNAnk.js} +1 -1
- package/dist/useTimeout-BG7TPjEm.js +92 -0
- package/dist/useTimeout-DQN9lwd_.cjs +2 -0
- package/package.json +18 -1
- package/dist/Checkbox-Dy9BTXfS.cjs +0 -1
- package/dist/TablePagination-DH0TZ21v.cjs +0 -31
- package/dist/ThemeProvider-sqppyE-5.cjs +0 -114
- package/dist/Tooltip-Dokek6y8.cjs +0 -7
- package/dist/TransitionGroupContext-BlR3HYBG.cjs +0 -4
- package/dist/TransitionGroupContext-Ci_clMyv.js +0 -120
- package/dist/createSvgIcon-DF4qzIJY.cjs +0 -74
- package/dist/useSlot-BfQr8KCN.js +0 -803
- package/dist/useSlot-C3-OaWva.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const I=require("react"),f=require("./TransitionGroupContext-BlR3HYBG.cjs"),i=require("./index-B-zZeebW.cjs"),H=require("./ThemeProvider-sqppyE-5.cjs"),me=require("./useTheme-DJmNR5EL.cjs"),Te=require("react/jsx-runtime"),he=require("./setPrototypeOf-BmHXYjK5.cjs"),L=require("react-dom");function Y(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const d=Y(I),ge=Y(L);function xe(e){const{prototype:a={}}=e;return!!a.isReactComponent}function ee(e,a,r,o,n){const t=e[a],s=n||a;if(t==null||typeof window>"u")return null;let u;const p=t.type;return typeof p=="function"&&!xe(p)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${o} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const z=f.chainPropTypes(i.PropTypes.element,ee);z.isRequired=f.chainPropTypes(i.PropTypes.element.isRequired,ee);function te(e,a,r,o,n){if(process.env.NODE_ENV==="production")return null;const t=e[a],s=n||a;return t==null?null:t&&t.nodeType!==1?new Error(`Invalid ${o} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Pe(e){return e&&e.ownerDocument||document}let B=0;function ve(e){const[a,r]=d.useState(e),o=e||a;return d.useEffect(()=>{a==null&&(B+=1,r(`mui-${B}`))},[a]),o}const be={...d},K=be.useId;function Ne(e){if(K!==void 0){const a=K();return e??a}return ve(e)}function Re(e){return typeof e=="string"}function ne(e,a,r){return e===void 0||Re(e)?a:{...a,ownerState:{...a.ownerState,...r}}}function oe(e,a=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!a.includes(o)).forEach(o=>{r[o]=e[o]}),r}function J(e){if(e===void 0)return{};const a={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{a[r]=e[r]}),a}function re(e){const{getSlotProps:a,additionalProps:r,externalSlotProps:o,externalForwardedProps:n,className:t}=e;if(!a){const g=H.clsx(r==null?void 0:r.className,t,n==null?void 0:n.className,o==null?void 0:o.className),x={...r==null?void 0:r.style,...n==null?void 0:n.style,...o==null?void 0:o.style},m={...r,...n,...o};return g.length>0&&(m.className=g),Object.keys(x).length>0&&(m.style=x),{props:m,internalRef:void 0}}const s=oe({...n,...o}),u=J(o),p=J(n),c=a(s),E=H.clsx(c==null?void 0:c.className,r==null?void 0:r.className,t,n==null?void 0:n.className,o==null?void 0:o.className),y={...c==null?void 0:c.style,...r==null?void 0:r.style,...n==null?void 0:n.style,...o==null?void 0:o.style},T={...c,...r,...p,...u};return E.length>0&&(T.className=E),Object.keys(y).length>0&&(T.style=y),{props:T,internalRef:c.ref}}function ie(e,a,r){return typeof e=="function"?e(a,r):e}function Oe(e){var y;const{elementType:a,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:n=!1,...t}=e,s=n?{}:ie(r,o),{props:u,internalRef:p}=re({...t,externalSlotProps:s}),c=f.useForkRef(p,s==null?void 0:s.ref,(y=e.additionalProps)==null?void 0:y.ref);return ne(a,{...u,ref:c},o)}function Z(e){var a;return parseInt(d.version,10)>=19?((a=e==null?void 0:e.props)==null?void 0:a.ref)||null:(e==null?void 0:e.ref)||null}function se(){const e=me.useTheme(H.defaultTheme);return process.env.NODE_ENV!=="production"&&d.useDebugValue(e),e[H.THEME_ID]||e}const Q={disabled:!1};var De=process.env.NODE_ENV!=="production"?i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.shape({enter:i.PropTypes.number,exit:i.PropTypes.number,appear:i.PropTypes.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.shape({enter:i.PropTypes.string,exit:i.PropTypes.string,active:i.PropTypes.string}),i.PropTypes.shape({enter:i.PropTypes.string,enterDone:i.PropTypes.string,enterActive:i.PropTypes.string,exit:i.PropTypes.string,exitDone:i.PropTypes.string,exitActive:i.PropTypes.string})]);var Se=function(a){return a.scrollTop},M="unmounted",N="exited",R="entering",k="entered",F="exiting",h=function(e){f._inheritsLoose(a,e);function a(o,n){var t;t=e.call(this,o,n)||this;var s=n,u=s&&!s.isMounting?o.enter:o.appear,p;return t.appearStatus=null,o.in?u?(p=N,t.appearStatus=R):p=k:o.unmountOnExit||o.mountOnEnter?p=M:p=N,t.state={status:p},t.nextCallback=null,t}a.getDerivedStateFromProps=function(n,t){var s=n.in;return s&&t.status===M?{status:N}:null};var r=a.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var t=null;if(n!==this.props){var s=this.state.status;this.props.in?s!==R&&s!==k&&(t=R):(s===R||s===k)&&(t=F)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,t,s,u;return t=s=u=n,n!=null&&typeof n!="number"&&(t=n.exit,s=n.enter,u=n.appear!==void 0?n.appear:s),{exit:t,enter:s,appear:u}},r.updateStatus=function(n,t){if(n===void 0&&(n=!1),t!==null)if(this.cancelNextCallback(),t===R){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);s&&Se(s)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===N&&this.setState({status:M})},r.performEnter=function(n){var t=this,s=this.props.enter,u=this.context?this.context.isMounting:n,p=this.props.nodeRef?[u]:[L.findDOMNode(this),u],c=p[0],E=p[1],y=this.getTimeouts(),T=u?y.appear:y.enter;if(!n&&!s||Q.disabled){this.safeSetState({status:k},function(){t.props.onEntered(c)});return}this.props.onEnter(c,E),this.safeSetState({status:R},function(){t.props.onEntering(c,E),t.onTransitionEnd(T,function(){t.safeSetState({status:k},function(){t.props.onEntered(c,E)})})})},r.performExit=function(){var n=this,t=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:L.findDOMNode(this);if(!t||Q.disabled){this.safeSetState({status:N},function(){n.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:F},function(){n.props.onExiting(u),n.onTransitionEnd(s.exit,function(){n.safeSetState({status:N},function(){n.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,t){t=this.setNextCallback(t),this.setState(n,t)},r.setNextCallback=function(n){var t=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,t.nextCallback=null,n(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(n,t){this.setNextCallback(t);var s=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this),u=n==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=p[0],E=p[1];this.props.addEndListener(c,E)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===M)return null;var t=this.props,s=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var u=he._objectWithoutPropertiesLoose(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(f.TransitionGroupContext.Provider,{value:null},typeof s=="function"?s(n,u):I.cloneElement(I.Children.only(s),u))},a}(I.Component);h.contextType=f.TransitionGroupContext;h.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.PropTypes.shape({current:typeof Element>"u"?i.PropTypes.any:function(e,a,r,o,n,t){var s=e[a];return i.PropTypes.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,a,r,o,n,t)}}),children:i.PropTypes.oneOfType([i.PropTypes.func.isRequired,i.PropTypes.element.isRequired]).isRequired,in:i.PropTypes.bool,mountOnEnter:i.PropTypes.bool,unmountOnExit:i.PropTypes.bool,appear:i.PropTypes.bool,enter:i.PropTypes.bool,exit:i.PropTypes.bool,timeout:function(a){var r=De;a.addEndListener||(r=r.isRequired);for(var o=arguments.length,n=new Array(o>1?o-1:0),t=1;t<o;t++)n[t-1]=arguments[t];return r.apply(void 0,[a].concat(n))},addEndListener:i.PropTypes.func,onEnter:i.PropTypes.func,onEntering:i.PropTypes.func,onEntered:i.PropTypes.func,onExit:i.PropTypes.func,onExiting:i.PropTypes.func,onExited:i.PropTypes.func}:{};function C(){}h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:C,onEntering:C,onEntered:C,onExit:C,onExiting:C,onExited:C};h.UNMOUNTED=M;h.EXITED=N;h.ENTERING=R;h.ENTERED=k;h.EXITING=F;const ae=e=>e.scrollTop;function W(e,a){const{timeout:r,easing:o,style:n={}}=e;return{duration:n.transitionDuration??(typeof r=="number"?r:r[a.mode]||0),easing:n.transitionTimingFunction??(typeof o=="object"?o[a.mode]:o),delay:n.transitionDelay}}function X(e){return`scale(${e}, ${e**2})`}const Ce={entering:{opacity:1,transform:X(1)},entered:{opacity:1,transform:"none"}},U=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),G=d.forwardRef(function(a,r){const{addEndListener:o,appear:n=!0,children:t,easing:s,in:u,onEnter:p,onEntered:c,onEntering:E,onExit:y,onExited:T,onExiting:g,style:x,timeout:m="auto",TransitionComponent:j=h,...$}=a,_=f.useTimeout(),w=d.useRef(),O=se(),q=d.useRef(null),ue=f.useForkRef(q,Z(t),r),D=l=>v=>{if(l){const b=q.current;v===void 0?l(b):l(b,v)}},pe=D(E),ce=D((l,v)=>{ae(l);const{duration:b,delay:A,easing:P}=W({style:x,timeout:m,easing:s},{mode:"enter"});let S;m==="auto"?(S=O.transitions.getAutoHeightDuration(l.clientHeight),w.current=S):S=b,l.style.transition=[O.transitions.create("opacity",{duration:S,delay:A}),O.transitions.create("transform",{duration:U?S:S*.666,delay:A,easing:P})].join(","),p&&p(l,v)}),le=D(c),fe=D(g),de=D(l=>{const{duration:v,delay:b,easing:A}=W({style:x,timeout:m,easing:s},{mode:"exit"});let P;m==="auto"?(P=O.transitions.getAutoHeightDuration(l.clientHeight),w.current=P):P=v,l.style.transition=[O.transitions.create("opacity",{duration:P,delay:b}),O.transitions.create("transform",{duration:U?P:P*.666,delay:U?b:b||P*.333,easing:A})].join(","),l.style.opacity=0,l.style.transform=X(.75),y&&y(l)}),Ee=D(T),ye=l=>{m==="auto"&&_.start(w.current||0,l),o&&o(q.current,l)};return Te.jsx(j,{appear:n,in:u,nodeRef:q,onEnter:ce,onEntered:le,onEntering:pe,onExit:de,onExited:Ee,onExiting:fe,addEndListener:ye,timeout:m==="auto"?null:m,...$,children:(l,v)=>d.cloneElement(t,{style:{opacity:0,transform:X(.75),visibility:l==="exited"&&!u?"hidden":void 0,...Ce[l],...x,...t.props.style},ref:ue,...v})})});process.env.NODE_ENV!=="production"&&(G.propTypes={addEndListener:i.PropTypes.func,appear:i.PropTypes.bool,children:z.isRequired,easing:i.PropTypes.oneOfType([i.PropTypes.shape({enter:i.PropTypes.string,exit:i.PropTypes.string}),i.PropTypes.string]),in:i.PropTypes.bool,onEnter:i.PropTypes.func,onEntered:i.PropTypes.func,onEntering:i.PropTypes.func,onExit:i.PropTypes.func,onExited:i.PropTypes.func,onExiting:i.PropTypes.func,style:i.PropTypes.object,timeout:i.PropTypes.oneOfType([i.PropTypes.oneOf(["auto"]),i.PropTypes.number,i.PropTypes.shape({appear:i.PropTypes.number,enter:i.PropTypes.number,exit:i.PropTypes.number})])});G&&(G.muiSupportAuto=!0);function ke(e){return typeof e=="function"?e():e}const V=d.forwardRef(function(a,r){const{children:o,container:n,disablePortal:t=!1}=a,[s,u]=d.useState(null),p=f.useForkRef(d.isValidElement(o)?Z(o):null,r);if(f.useEnhancedEffect(()=>{t||u(ke(n)||document.body)},[n,t]),f.useEnhancedEffect(()=>{if(s&&!t)return f.setRef(r,s),()=>{f.setRef(r,null)}},[r,s,t]),t){if(d.isValidElement(o)){const c={ref:p};return d.cloneElement(o,c)}return o}return s&&ge.createPortal(o,s)});process.env.NODE_ENV!=="production"&&(V.propTypes={children:i.PropTypes.node,container:i.PropTypes.oneOfType([te,i.PropTypes.func]),disablePortal:i.PropTypes.bool});process.env.NODE_ENV!=="production"&&(V.propTypes=H.exactProp(V.propTypes));function we(e,a){const{className:r,elementType:o,ownerState:n,externalForwardedProps:t,internalForwardedProps:s,...u}=a,{component:p,slots:c={[e]:void 0},slotProps:E={[e]:void 0},...y}=t,T=c[e]||o,g=ie(E[e],n),{props:{component:x,...m},internalRef:j}=re({className:r,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),$=f.useForkRef(j,g==null?void 0:g.ref,a.ref),_=e==="root"?x||p:x,w=ne(T,{...e==="root"&&!p&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...m,..._&&{as:_},ref:$},n);return[T,w]}exports.Grow=G;exports.HTMLElementType=te;exports.Portal=V;exports.Transition=h;exports.elementAcceptingRef=z;exports.extractEventHandlers=oe;exports.getReactElementRef=Z;exports.getTransitionProps=W;exports.ownerDocument=Pe;exports.reflow=ae;exports.useId=Ne;exports.useSlot=we;exports.useSlotProps=Oe;exports.useTheme=se;
|