@sisense/sdk-shared-ui 2.0.0 → 2.1.1
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-Da5cnPID.cjs +3 -0
- package/dist/{Breadcrumbs-D4b_GQtd.js → Breadcrumbs-qJmt9n6B.js} +53 -53
- package/dist/Button-RoXZvXZf.cjs +1 -0
- package/dist/{Button-APrD1mzX.js → Button-Y7DwfxdO.js} +40 -40
- package/dist/{ButtonBase-BS1IFUdV.cjs → ButtonBase-CISYuRKV.cjs} +1 -1
- package/dist/{ButtonBase-DOZfyNZL.js → ButtonBase-UWHDpyst.js} +1 -1
- package/dist/{Checkbox-DFOHQKnj.js → Checkbox-BNkk6YDz.js} +43 -43
- package/dist/Checkbox-DpGUO-Li.cjs +1 -0
- package/dist/{Icon-YfaQM06u.js → Icon-JQpFT2bY.js} +12 -12
- package/dist/Icon-KwS2TWVq.cjs +1 -0
- package/dist/Portal-CtJkkaJ7.cjs +1 -0
- package/dist/{Portal-CLHtBz5i.js → Portal-DUw3q8Mq.js} +3 -3
- package/dist/{SvgIcon-DRiOiPzl.js → SvgIcon-5KhsYNcu.js} +1 -1
- package/dist/SvgIcon-DXzFs5aw.cjs +1 -0
- package/dist/{TablePagination-DMqJ2TDQ.js → TablePagination-CgaKWA2r.js} +455 -455
- package/dist/{TablePagination-DxCn_NpI.cjs → TablePagination-baLnBUNn.cjs} +12 -12
- package/dist/{Tooltip-DAxLCXwu.js → Tooltip-BpA4opI3.js} +154 -154
- package/dist/Tooltip-Dcsip2Zy.cjs +7 -0
- package/dist/Typography-BDMqUlbg.cjs +1 -0
- package/dist/{Typography-V0qAux0_.js → Typography-pY0gGUzu.js} +42 -42
- package/dist/{createSvgIcon-BFO1uNry.js → createSvgIcon-B28x3Jky.js} +1 -1
- package/dist/{createSvgIcon-BECoGUSX.cjs → createSvgIcon-KaV60kcg.cjs} +1 -1
- package/dist/emotion-cache-provider-C66nBUtN.cjs +114 -0
- package/dist/{ThemeProvider-idCYeHSk.js → emotion-cache-provider-CsTOkc-k.js} +1854 -1567
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/lib/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/lib/Button/Button.cjs +1 -1
- package/dist/lib/Button/Button.d.ts.map +1 -1
- package/dist/lib/Button/Button.js +2 -2
- package/dist/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lib/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lib/Icon/Icon.cjs +1 -1
- package/dist/lib/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.js +1 -1
- package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -1
- package/dist/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lib/TablePagination/TablePagination.d.ts.map +1 -1
- package/dist/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lib/Typography/Typography.cjs +1 -1
- package/dist/lib/Typography/Typography.d.ts.map +1 -1
- package/dist/lib/Typography/Typography.js +2 -2
- package/dist/lib/common/emotion-cache-provider.d.ts +11 -0
- package/dist/lib/common/emotion-cache-provider.d.ts.map +1 -0
- package/dist/lib/themes/themes.cjs +1 -1
- package/dist/lib/themes/themes.js +1 -1
- package/dist/package.json +3 -1
- package/dist/{useSlotProps-DHNviH4P.js → useSlotProps-BxlgPyQJ.js} +1 -1
- package/dist/useSlotProps-DS82uuM_.cjs +1 -0
- package/dist/{useTheme-CNirH-1O.js → useTheme-CzEManLl.js} +1 -1
- package/dist/useTheme-DmoPdQRb.cjs +1 -0
- package/package.json +3 -1
- package/dist/Breadcrumbs-DHLUMk5g.cjs +0 -3
- package/dist/Button-DOVMisTd.cjs +0 -1
- package/dist/Checkbox-Ckp-O85I.cjs +0 -1
- package/dist/Icon-gOwM-Vrv.cjs +0 -1
- package/dist/Portal-DCkmwdyF.cjs +0 -1
- package/dist/SvgIcon-DwrPxEJR.cjs +0 -1
- package/dist/ThemeProvider-CLfPqpv1.cjs +0 -114
- package/dist/Tooltip-_QBcDSPT.cjs +0 -7
- package/dist/Typography-qWhZXZhp.cjs +0 -1
- package/dist/useSlotProps-1DAAbdYI.cjs +0 -1
- package/dist/useTheme-CKptR5QM.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const y=require("react/jsx-runtime"),p=require("./ThemeProvider-CLfPqpv1.cjs"),b=require("react"),r=require("./index-B-zZeebW.cjs"),H=require("./useTheme-CKptR5QM.cjs"),C=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),w=require("./lib/themes/themes.cjs");function B(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const M=B(b),_=t=>{var n;const o={systemProps:{},otherProps:{}},e=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??p.defaultSxConfig;return Object.keys(t).forEach(i=>{e[i]?o.systemProps[i]=t[i]:o.otherProps[i]=t[i]}),o};function E(t){const{sx:o,...e}=t,{systemProps:n,otherProps:i}=_(e);let s;return Array.isArray(o)?s=[n,...o]:typeof o=="function"?s=(...l)=>{const a=o(...l);return p.isPlainObject(a)?{...n,...a}:n}:s={...n,...o},{...i,sx:s}}function d({styles:t,themeId:o,defaultTheme:e={}}){const n=H.useTheme(e),i=typeof t=="function"?t(o&&n[o]||n):t;return y.jsx(p.GlobalStyles,{styles:i})}process.env.NODE_ENV!=="production"&&(d.propTypes={defaultTheme:r.PropTypes.object,styles:r.PropTypes.oneOfType([r.PropTypes.array,r.PropTypes.func,r.PropTypes.number,r.PropTypes.object,r.PropTypes.string,r.PropTypes.bool]),themeId:r.PropTypes.string});function S(t){return y.jsx(d,{...t,defaultTheme:p.defaultTheme,themeId:p.THEME_ID})}process.env.NODE_ENV!=="production"&&(S.propTypes={styles:r.PropTypes.oneOfType([r.PropTypes.array,r.PropTypes.func,r.PropTypes.number,r.PropTypes.object,r.PropTypes.string,r.PropTypes.bool])});function N(t){return function(e){return y.jsx(S,{styles:typeof t=="function"?n=>t({theme:n,...e}):t})}}function D(){return E}function R(t){return p.generateUtilityClass("MuiTypography",t)}p.generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},q=D(),V=t=>{const{align:o,gutterBottom:e,noWrap:n,paragraph:i,variant:s,classes:l}=t,a={root:["root",s,t.align!=="inherit"&&`align${p.capitalize(o)}`,e&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return p.composeClasses(a,R,l)},A=p.styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.variant&&o[e.variant],e.align!=="inherit"&&o[`align${p.capitalize(e.align)}`],e.noWrap&&o.noWrap,e.gutterBottom&&o.gutterBottom,e.paragraph&&o.paragraph]}})(p.memoTheme(({theme:t})=>{var o;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,n])=>e!=="inherit"&&n&&typeof n=="object").map(([e,n])=>({props:{variant:e},style:n})),...Object.entries(t.palette).filter(C.createSimplePaletteValueFilter()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(((o=t.palette)==null?void 0:o.text)||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${p.capitalize(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}})),P={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},g=M.forwardRef(function(o,e){const{color:n,...i}=p.useDefaultProps({props:o,name:"MuiTypography"}),s=!$[n],l=q({...i,...s&&{color:n}}),{align:a="inherit",className:h,component:f,gutterBottom:j=!1,noWrap:O=!1,paragraph:u=!1,variant:c="body1",variantMapping:T=P,...x}=l,m={...l,align:a,color:n,className:h,component:f,gutterBottom:j,noWrap:O,paragraph:u,variant:c,variantMapping:T},W=f||(u?"p":T[c]||P[c])||"span",z=V(m);return y.jsx(A,{as:W,ref:e,className:p.clsx(z.root,h),...x,ownerState:m,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...x.style}})});process.env.NODE_ENV!=="production"&&(g.propTypes={align:r.PropTypes.oneOf(["center","inherit","justify","left","right"]),children:r.PropTypes.node,classes:r.PropTypes.object,className:r.PropTypes.string,color:r.PropTypes.oneOfType([r.PropTypes.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.PropTypes.string]),component:r.PropTypes.elementType,gutterBottom:r.PropTypes.bool,noWrap:r.PropTypes.bool,paragraph:r.PropTypes.bool,style:r.PropTypes.object,sx:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object]),variant:r.PropTypes.oneOfType([r.PropTypes.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.PropTypes.string]),variantMapping:r.PropTypes.object});const v=p.createTheme$1({components:{MuiTypography:{variants:[{props:{variant:"titleHero"},style:{fontWeight:600,fontSize:30,lineHeight:"36px",letterSpacing:-.5}},{props:{variant:"titleBig"},style:{fontWeight:400,fontSize:21,lineHeight:"24px",letterSpacing:-.2}},{props:{variant:"titleMedium"},style:{fontWeight:600,fontSize:"18px",lineHeight:"24px"}},{props:{variant:"titleSmall"},style:{fontWeight:600,fontSize:"15px",lineHeight:"20px"}},{props:{variant:"subTitle"},style:{fontWeight:700,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.2px"}},{props:{variant:"bodyLabel"},style:{fontWeight:400,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.1px"}},{props:{variant:"laccent"},style:{fontWeight:600,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.1px"}},{props:{variant:"bodyParagraph"},style:{fontWeight:400,fontSize:"13px",lineHeight:"18px"}},{props:{variant:"paccent"},style:{fontWeight:600,fontSize:"13px",lineHeight:"18px"}},{props:{variant:"bodyUI"},style:{fontWeight:400,fontSize:"13px",lineHeight:"20px",letterSpacing:"0.3px"}},{props:{variant:"overline"},style:{fontWeight:400,fontSize:"11px",lineHeight:"16px",letterSpacing:"1.5px"}},{props:{variant:"caption"},style:{fontWeight:700,fontSize:"11px",lineHeight:"14px",letterSpacing:"0.5px"}},{props:{variant:"annotation"},style:{fontWeight:400,fontSize:"11px",lineHeight:"16px",letterSpacing:"0.3px"}},{props:{variant:"code"},style:{fontFamily:"Hack",fontWeight:400,fontSize:"13px",lineHeight:"20px"}}],styleOverrides:{root:{display:"inline-block",fontFamily:"Open Sans",color:w.siColors.StTextColors.content,"::first-letter":{textTransform:"capitalize"}}}}}}),U=b.forwardRef(({children:t,theme:o=v,dataTestId:e,...n},i)=>y.jsx(p.ThemeProvider,{theme:o,children:y.jsx(g,{ref:i,...n,"data-testid":e,children:t})}));exports.Typography=U;exports.Typography$1=g;exports.globalCss=N;exports.typographyTheme=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./ThemeProvider-CLfPqpv1.cjs"),R=require("./useTimeout-DwkOFF8P.cjs");function S(n){return typeof n=="string"}function E(n,c,e){return n===void 0||S(n)?c:{...c,ownerState:{...c.ownerState,...e}}}function H(n,c=[]){if(n===void 0)return{};const e={};return Object.keys(n).filter(t=>t.match(/^on[A-Z]/)&&typeof n[t]=="function"&&!c.includes(t)).forEach(t=>{e[t]=n[t]}),e}function v(n){if(n===void 0)return{};const c={};return Object.keys(n).filter(e=>!(e.match(/^on[A-Z]/)&&typeof n[e]=="function")).forEach(e=>{c[e]=n[e]}),c}function k(n){const{getSlotProps:c,additionalProps:e,externalSlotProps:t,externalForwardedProps:s,className:l}=n;if(!c){const h=a.clsx(e==null?void 0:e.className,l,s==null?void 0:s.className,t==null?void 0:t.className),N={...e==null?void 0:e.style,...s==null?void 0:s.style,...t==null?void 0:t.style},g={...e,...s,...t};return h.length>0&&(g.className=h),Object.keys(N).length>0&&(g.style=N),{props:g,internalRef:void 0}}const u=H({...s,...t}),m=v(t),r=v(s),f=c(u),y=a.clsx(f==null?void 0:f.className,e==null?void 0:e.className,l,s==null?void 0:s.className,t==null?void 0:t.className),i={...f==null?void 0:f.style,...e==null?void 0:e.style,...s==null?void 0:s.style,...t==null?void 0:t.style},o={...f,...e,...r,...m};return y.length>0&&(o.className=y),Object.keys(i).length>0&&(o.style=i),{props:o,internalRef:f.ref}}function O(n,c,e){return typeof n=="function"?n(c,e):n}function C(n){var i;const{elementType:c,externalSlotProps:e,ownerState:t,skipResolvingSlotProps:s=!1,...l}=n,u=s?{}:O(e,t),{props:m,internalRef:r}=k({...l,externalSlotProps:u}),f=R.useForkRef(r,u==null?void 0:u.ref,(i=n.additionalProps)==null?void 0:i.ref);return E(c,{...m,ref:f},t)}exports.appendOwnerState=E;exports.extractEventHandlers=H;exports.mergeSlotProps=k;exports.resolveComponentProps=O;exports.useSlotProps=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./ThemeProvider-CLfPqpv1.cjs"),t=e.createTheme();function r(s=t){return e.useTheme(s)}exports.useTheme=r;
|