freemium-ui 2.0.121 → 2.0.122

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/lib/index.cjs.js CHANGED
@@ -1060,28 +1060,27 @@ dark_mild:"#0b0c0d",dark_normal:"#141617",dark_bold:"#191a1c"}
1060
1060
  let n=t,r=e.replace(/^#/,"")
1061
1061
  ;8===e.length||4===e.length?(n=parseInt(e.slice(-2),16)/255,
1062
1062
  r=e.slice(0,-2)):3===r.length&&(r=r.replace(/(.)/g,"$1$1"))
1063
- ;const[o,a,i]=[0,2,4].map((e=>parseInt(r.slice(e,e+2),16)))
1064
- ;return`rgba(${o}, ${a}, ${i}, ${n.toFixed(2)})`},Lo={popover:900,dropdown:900,
1065
- mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,
1066
- snackbar:1400,tooltip:1500},Vo={mode:"light",direction:"ltr",breakpoints:{
1067
- keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},
1068
- unit:"px"},colors:{common:{black:Ho.black,white:Ho.white,accent:_o.A800},text:{
1069
- link:_o.A800,primary:So.E900,secondary:So.S700,disabled:So.S400,
1070
- placeholder:So.S300,error:_o.P800,inverse:Ho.white,semantic:{success:_o.J500,
1071
- warning:_o.C500,error:_o.P500,info:_o.A500}},fill:{base:So.S25,medium:So.S50,
1072
- dark:So.S100,surface:Ho.white,inverse:So.E900,hover:So.S50,disabled:So.S50,
1073
- hilight:_o.A50},semantic:{error:{bg:_o.P50,border:_o.P100},warning:{bg:_o.C50,
1074
- border:_o.C100},info:{bg:_o.A50,border:_o.A100},success:{bg:_o.J50,
1075
- border:_o.J100}},border:{light:So.S50,normal:So.S100,divider:So.S100,
1076
- hover:So.S300,active:_o.A800,disabled:So.S50,error:_o.P800},shadow:So.E900,
1077
- scrim:So.E900},typography:{fontFamily:Do,fontWeight:{bold:700,"semi-bold":600,
1078
- regular:400},primary:{fontSize:"14px",fontWeight:400,lineHeight:1.5},secondary:{
1079
- fontSize:"12px",fontWeight:400,lineHeight:1.5},heading:{fontSize:"16px",
1080
- fontWeight:400,lineHeight:1.25},heading1:{fontSize:"44px",fontWeight:400,
1081
- lineHeight:1.25},heading2:{fontSize:"32px",fontWeight:400,lineHeight:1.25},
1082
- heading3:{fontSize:"24px",fontWeight:400,lineHeight:1.25},heading4:{
1083
- fontSize:"18px",fontWeight:400,lineHeight:1.25},caption:{fontSize:"12px",
1084
- fontWeight:400,lineHeight:1}},
1063
+ ;return`rgba(${parseInt(r.substring(0,2)||"00",16)||0}, ${parseInt(r.substring(2,4)||"00",16)||0}, ${parseInt(r.substring(4,6)||"00",16)||0}, ${n.toFixed(2)})`
1064
+ },Lo={popover:900,dropdown:900,mobileStepper:1e3,fab:1050,speedDial:1050,
1065
+ appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Vo={mode:"light",
1066
+ direction:"ltr",breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,
1067
+ sm:600,md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{black:Ho.black,
1068
+ white:Ho.white,accent:_o.A800},text:{link:_o.A800,primary:So.E900,
1069
+ secondary:So.S700,disabled:So.S400,placeholder:So.S300,error:_o.P800,
1070
+ inverse:Ho.white,semantic:{success:_o.J500,warning:_o.C500,error:_o.P500,
1071
+ info:_o.A500}},fill:{base:So.S25,medium:So.S50,dark:So.S100,surface:Ho.white,
1072
+ inverse:So.E900,hover:So.S50,disabled:So.S50,hilight:_o.A50},semantic:{error:{
1073
+ bg:_o.P50,border:_o.P100},warning:{bg:_o.C50,border:_o.C100},info:{bg:_o.A50,
1074
+ border:_o.A100},success:{bg:_o.J50,border:_o.J100}},border:{light:So.S50,
1075
+ normal:So.S100,divider:So.S100,hover:So.S300,active:_o.A800,disabled:So.S50,
1076
+ error:_o.P800},shadow:So.E900,scrim:So.E900},typography:{fontFamily:Do,
1077
+ fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{fontSize:"14px",
1078
+ fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",fontWeight:400,
1079
+ lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,lineHeight:1.25},
1080
+ heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},heading2:{
1081
+ fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{fontSize:"24px",
1082
+ fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",fontWeight:400,
1083
+ lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,lineHeight:1}},
1085
1084
  shadows:["none",`0px 2px 1px -1px ${Ao(Ho.black,.2)},0px 1px 1px 0px ${Ao(Ho.black,.14)},0px 1px 3px 0px ${Ao(Ho.black,.12)}`,`0px 3px 1px -2px ${Ao(Ho.black,.2)},0px 2px 2px 0px ${Ao(Ho.black,.14)},0px 1px 5px 0px ${Ao(Ho.black,.12)}`,`0px 3px 3px -2px ${Ao(Ho.black,.2)},0px 3px 4px 0px ${Ao(Ho.black,.14)},0px 1px 8px 0px ${Ao(Ho.black,.12)}`],
1086
1085
  transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
1087
1086
  easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
package/lib/index.d.ts CHANGED
@@ -1616,7 +1616,7 @@ interface FreemiumUiButtonTheme {
1616
1616
  disabledBackgroundTo: string;
1617
1617
  }
1618
1618
  interface FreemiumUiTheme {
1619
- mode: 'light' | 'dark' | 'dew-light' | 'dew-dark';
1619
+ mode: 'light' | 'dark';
1620
1620
  direction: 'ltr' | 'rtl';
1621
1621
  breakpoints: Breakpoints;
1622
1622
  colors: Colors;
package/lib/index.js CHANGED
@@ -1052,28 +1052,27 @@ dark_mild:"#0b0c0d",dark_normal:"#141617",dark_bold:"#191a1c"}
1052
1052
  let n=t,r=e.replace(/^#/,"")
1053
1053
  ;8===e.length||4===e.length?(n=parseInt(e.slice(-2),16)/255,
1054
1054
  r=e.slice(0,-2)):3===r.length&&(r=r.replace(/(.)/g,"$1$1"))
1055
- ;const[o,a,i]=[0,2,4].map((e=>parseInt(r.slice(e,e+2),16)))
1056
- ;return`rgba(${o}, ${a}, ${i}, ${n.toFixed(2)})`},Jo={popover:900,dropdown:900,
1057
- mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,
1058
- snackbar:1400,tooltip:1500},Qo={mode:"light",direction:"ltr",breakpoints:{
1059
- keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},
1060
- unit:"px"},colors:{common:{black:qo.black,white:qo.white,accent:Ko.A800},text:{
1061
- link:Ko.A800,primary:Go.E900,secondary:Go.S700,disabled:Go.S400,
1062
- placeholder:Go.S300,error:Ko.P800,inverse:qo.white,semantic:{success:Ko.J500,
1063
- warning:Ko.C500,error:Ko.P500,info:Ko.A500}},fill:{base:Go.S25,medium:Go.S50,
1064
- dark:Go.S100,surface:qo.white,inverse:Go.E900,hover:Go.S50,disabled:Go.S50,
1065
- hilight:Ko.A50},semantic:{error:{bg:Ko.P50,border:Ko.P100},warning:{bg:Ko.C50,
1066
- border:Ko.C100},info:{bg:Ko.A50,border:Ko.A100},success:{bg:Ko.J50,
1067
- border:Ko.J100}},border:{light:Go.S50,normal:Go.S100,divider:Go.S100,
1068
- hover:Go.S300,active:Ko.A800,disabled:Go.S50,error:Ko.P800},shadow:Go.E900,
1069
- scrim:Go.E900},typography:{fontFamily:Zo,fontWeight:{bold:700,"semi-bold":600,
1070
- regular:400},primary:{fontSize:"14px",fontWeight:400,lineHeight:1.5},secondary:{
1071
- fontSize:"12px",fontWeight:400,lineHeight:1.5},heading:{fontSize:"16px",
1072
- fontWeight:400,lineHeight:1.25},heading1:{fontSize:"44px",fontWeight:400,
1073
- lineHeight:1.25},heading2:{fontSize:"32px",fontWeight:400,lineHeight:1.25},
1074
- heading3:{fontSize:"24px",fontWeight:400,lineHeight:1.25},heading4:{
1075
- fontSize:"18px",fontWeight:400,lineHeight:1.25},caption:{fontSize:"12px",
1076
- fontWeight:400,lineHeight:1}},
1055
+ ;return`rgba(${parseInt(r.substring(0,2)||"00",16)||0}, ${parseInt(r.substring(2,4)||"00",16)||0}, ${parseInt(r.substring(4,6)||"00",16)||0}, ${n.toFixed(2)})`
1056
+ },Jo={popover:900,dropdown:900,mobileStepper:1e3,fab:1050,speedDial:1050,
1057
+ appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Qo={mode:"light",
1058
+ direction:"ltr",breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,
1059
+ sm:600,md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{black:qo.black,
1060
+ white:qo.white,accent:Ko.A800},text:{link:Ko.A800,primary:Go.E900,
1061
+ secondary:Go.S700,disabled:Go.S400,placeholder:Go.S300,error:Ko.P800,
1062
+ inverse:qo.white,semantic:{success:Ko.J500,warning:Ko.C500,error:Ko.P500,
1063
+ info:Ko.A500}},fill:{base:Go.S25,medium:Go.S50,dark:Go.S100,surface:qo.white,
1064
+ inverse:Go.E900,hover:Go.S50,disabled:Go.S50,hilight:Ko.A50},semantic:{error:{
1065
+ bg:Ko.P50,border:Ko.P100},warning:{bg:Ko.C50,border:Ko.C100},info:{bg:Ko.A50,
1066
+ border:Ko.A100},success:{bg:Ko.J50,border:Ko.J100}},border:{light:Go.S50,
1067
+ normal:Go.S100,divider:Go.S100,hover:Go.S300,active:Ko.A800,disabled:Go.S50,
1068
+ error:Ko.P800},shadow:Go.E900,scrim:Go.E900},typography:{fontFamily:Zo,
1069
+ fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{fontSize:"14px",
1070
+ fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",fontWeight:400,
1071
+ lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,lineHeight:1.25},
1072
+ heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},heading2:{
1073
+ fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{fontSize:"24px",
1074
+ fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",fontWeight:400,
1075
+ lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,lineHeight:1}},
1077
1076
  shadows:["none",`0px 2px 1px -1px ${Xo(qo.black,.2)},0px 1px 1px 0px ${Xo(qo.black,.14)},0px 1px 3px 0px ${Xo(qo.black,.12)}`,`0px 3px 1px -2px ${Xo(qo.black,.2)},0px 2px 2px 0px ${Xo(qo.black,.14)},0px 1px 5px 0px ${Xo(qo.black,.12)}`,`0px 3px 3px -2px ${Xo(qo.black,.2)},0px 3px 4px 0px ${Xo(qo.black,.14)},0px 1px 8px 0px ${Xo(qo.black,.12)}`],
1078
1077
  transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
1079
1078
  easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.121",
3
+ "version": "2.0.122",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.121",
3
+ "version": "2.0.122",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.js",