@cleartrip/ct-design-theme
Advanced tools
Comparing version 3.14.0-beta-mevc.0 to 3.14.0
@@ -1,2 +0,2 @@ | ||
"use strict";var r=require("tslib"),o=require("@cleartrip/ct-design-tokens"),l=require("styled-components"),e=require("react/jsx-runtime"),a=require("react"),s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};var c={enabled:{stroke:o.colors.neutral900},disabled:{stroke:o.colors.neutral500}},t={color:{text:{primary:o.colors.neutral900,secondary:o.colors.brandText,tertiary:o.colors.neutral500,heading:o.colors.neutral900,subHeading:o.colors.neutral700,disabled:o.colors.disabledText,success:o.colors.successText,alert:o.colors.alertText,warning:o.colors.warningText,link:o.colors.linkText,brand:o.colors.brandText,neutral:o.colors.neutral100,link2:o.colors.link2,margarita:o.colors.margarita750,primary2:o.colors.grapetini900,secondary2:o.colors.blue100,grapetini900:o.colors.grapetini900},button:{outlinedPrimaryLabel:o.colors.neutral900,outlinedPrimaryBorder:o.colors.neutral900,outlinedPrimaryBg:o.colors.neutral100,outlinedSecondaryLabel:o.colors.brand,outlinedSecondaryBorder:o.colors.brand,outlinedSecondaryBg:o.colors.neutral100,outlinedTertiaryLabel:o.colors.link,outlinedTertiaryBorder:o.colors.link,outlinedTertiaryBg:o.colors.neutral100,outlinedDisabledLabel:o.colors.disabledText,outlinedDisabledBg:o.colors.neutral300,containedPrimaryLabel:o.colors.neutral100,containedPrimaryBg:o.colors.neutral900,containedSecondaryLabel:o.colors.neutral100,containedSecondaryBg:o.colors.brand,containedTertiaryLabel:o.colors.neutral100,containedTertiaryBg:o.colors.link,containedDisabledLabel:o.colors.disabledText,containedDisabledBg:o.colors.neutral300,containedNeutralLabel:o.colors.neutral900,containedNeutralBg:o.colors.neutral100,hover:function(r){var l;return((l={})[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.brand]=o.colors.bgPrimaryHover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.link2]=o.colors.link2Hover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l)[r]}},chip:{nonSelectedPrimaryLabel:o.colors.neutral900,disabledPrimaryLabel:o.colors.disabledText,selectedPrimaryLabel:o.colors.neutral900,selectedPrimaryBorder:o.colors.neutral900,selectedPrimaryBg:o.colors.neutral300},dropdown:{shadow:o.colors.shadow},tab:{nonSelectedPrimaryLabel:o.colors.neutral700,selectedPrimaryLabel:o.colors.neutral900},sidenav:{primaryBg:o.colors.neutral900,selectedTabBg:o.colors.highlightBg},tooltip:{primaryBg:o.colors.neutral900},background:{primary:o.colors.neutral900,secondary:o.colors.brand,tertiary:o.colors.link,brand:o.colors.brand,brandLightBg:o.colors.brandBg,link:o.colors.link,link2:o.colors.link2,linkLightBg:o.colors.linkBg,success:o.colors.success,successLightBg:o.colors.successBg,alert:o.colors.alert,alertLightBg:o.colors.alertBg,warning:o.colors.warning,warningLightBg:o.colors.warningBg,neutral:o.colors.neutral100,disabled:o.colors.neutral300,disabledSecondaryLight:o.colors.neutral350,disabledSecondary:o.colors.neutral400,disabledDark:o.colors.disabled100,defaultDark:o.colors.neutral700,defaultDarkest:o.colors.neutral900},border:{primary:o.colors.neutral900,secondary:o.colors.brand,tertiary:o.colors.link,brand:o.colors.brand,neutral:o.colors.neutral900,link:o.colors.link,default:o.colors.line,defaultDark:o.colors.neutral700,disabled:o.colors.neutral500,disabledDark:o.colors.disabled100,warning:o.colors.warning},spinner:{primary:o.colors.neutral700,primaryBg:o.colors.alertBg},shimmer:{disabledLight:o.colors.disabledLight,disabledDark:o.colors.disabled250},coupon:{primaryBg:o.colors.blue100},alert:{success:o.colors.successBg,warning:o.colors.alertBg,info:o.colors.blue100,error:o.colors.orange100,neutral:o.colors.neutral100},badge:{curacao:o.colors.curacao250,curacao900:o.colors.curacao900,pinaColada:o.colors.pinaColada250,margarita250:o.colors.margarita250,default:o.colors.neutral300,green:o.colors.successBg,margarita100:o.colors.margarita100,yellow:o.colors.alertBg,orange100:o.colors.orange100,orange250:o.colors.orange250,orange500:o.colors.orange500,red:o.colors.warningBg,green500:o.colors.success500,green600:o.colors.success600,purple100:o.colors.purple100,purple250:o.colors.purple250,gray100:o.colors.gray100,gray250:o.colors.gray250,aqua100:o.colors.aqua100,aqua250:o.colors.aqua250,black:o.colors.black,link:o.colors.link,blue100:o.colors.blue100,blue900:o.colors.blue900,neutral100:o.colors.neutral100},counter:c,calendar:{accent:o.colors.neutral900,background:o.colors.neutral300,selected:o.colors.neutral900}},elevation:r.__assign({},o.elevation),border:r.__assign({},o.border),spacing:r.__assign({},o.spacing),typography:r.__assign({},o.typography),size:r.__assign({},o.size),transitions:{duration:s,easing:n,create:function(r,o){void 0===r&&(r=["all"]),void 0===o&&(o={});var l=o.duration,e=void 0===l?s.standard:l,a=o.easing,c=void 0===a?n.easeInOut:a,t=o.delay,i=void 0===t?0:t;return(Array.isArray(r)?r:[r]).map((function(r){return"".concat(r," ").concat("string"==typeof e?e:"".concat(e,"ms")," ").concat(c," ").concat("string"==typeof i?i:"".concat(i,"ms"))})).join(",")},getAutoHeightDuration:function(r){if(!r)return 0;var o=r/36;return Math.round(10*(4+15*Math.pow(o,.25)+o/5))}},zIndex:{drawer:1200,modal:1300,popOver:1300,tooltip:1500,sideNav:100,toolbar:50,bottomSheet:100}},i=r.__assign({},t),u=r.__assign(r.__assign({},t),{color:r.__assign(r.__assign({},t.color),{text:r.__assign(r.__assign({},t.color.text),{secondary:o.colors.link2,tertiary:o.colors.neutral500}),button:r.__assign(r.__assign({},t.color.button),{outlinedPrimaryLabel:o.colors.link2,outlinedPrimaryBorder:o.colors.link2,outlinedPrimaryBg:o.colors.neutral100,outlinedSecondaryLabel:o.colors.neutral900,outlinedSecondaryBorder:o.colors.neutral900,outlinedSecondaryBg:o.colors.neutral100,outlinedTertiaryLabel:o.colors.brand,outlinedTertiaryBorder:o.colors.brand,outlinedTertiaryBg:o.colors.neutral100,outlinedDisabledLabel:o.colors.disabledText,outlinedDisabledBg:o.colors.neutral300,containedPrimaryLabel:o.colors.neutral100,containedPrimaryBg:o.colors.link2,containedSecondaryLabel:o.colors.neutral100,containedSecondaryBg:o.colors.neutral900,containedTertiaryLabel:o.colors.neutral100,containedTertiaryBg:o.colors.brand,containedDisabledLabel:o.colors.disabledText,containedDisabledBg:o.colors.neutral300,hover:function(r){var l;return((l={})[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.brand]=o.colors.bgPrimaryHover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.link2]=o.colors.link2Hover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l)[r]}}),chip:r.__assign(r.__assign({},t.color.chip),{selectedPrimaryLabel:o.colors.link2,selectedPrimaryBorder:o.colors.link2,selectedPrimaryBg:o.colors.linkBg}),tab:r.__assign(r.__assign({},t.color.tab),{nonSelectedPrimaryLabel:o.colors.neutral900,selectedPrimaryLabel:o.colors.link2}),background:r.__assign(r.__assign({},t.color.background),{primary:o.colors.link2,secondary:o.colors.neutral900,tertiary:o.colors.brand}),border:r.__assign(r.__assign({},t.color.border),{primary:o.colors.link2,secondary:o.colors.neutral900,tertiary:o.colors.brand}),spinner:{primary:o.colors.link2,primaryBg:o.colors.alertBg},calendar:{accent:"",background:"",selected:o.colors.link2}})}),d={enabled:{stroke:o.colors.bluePrimary500},disabled:{stroke:o.colors.neutral500}},b=r.__assign(r.__assign({},t),{color:r.__assign(r.__assign({},t.color),{text:r.__assign(r.__assign({},t.color.text),{link:o.colors.bluePrimary500}),button:r.__assign(r.__assign({},t.color.button),{outlinedPrimaryLabel:o.colors.primaryNeutral900,outlinedPrimaryBg:o.colors.neutral100,containedPrimaryLabel:o.colors.neutral100,containedPrimaryBg:o.colors.bluePrimary500,containedSecondaryLabel:o.colors.primaryNeutral900,containedSecondaryBg:o.colors.yellowSecondary,hover:function(r){var l;return((l={})[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.brand]=o.colors.bgPrimaryHover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.link2]=o.colors.link2Hover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l)[r]}}),chip:r.__assign(r.__assign({},t.color.chip),{selectedPrimaryLabel:o.colors.link2,selectedPrimaryBorder:o.colors.link2,selectedPrimaryBg:o.colors.linkBg,nonSelectedPrimaryLabel:o.colors.neutral900}),tab:r.__assign(r.__assign({},t.color.tab),{nonSelectedPrimaryLabel:o.colors.neutral900,selectedPrimaryLabel:o.colors.bluePrimary500}),background:r.__assign(r.__assign({},t.color.background),{primary:o.colors.bluePrimary500,secondary:o.colors.neutral900,tertiary:o.colors.brand,linkLightBg:o.colors.blueSecondary}),border:r.__assign(r.__assign({},t.color.border),{primary:o.colors.bluePrimary500,brand:o.colors.bluePrimary500}),spinner:{primary:o.colors.link2,primaryBg:o.colors.alertBg},counter:d,calendar:{accent:o.colors.bluePrimary500,background:o.colors.blueSecondary,selected:o.colors.bluePrimary500}})}),g=a.createContext({theme:i,platform:"mobile"}),y=function(o){var a=o.children,s=o.theme,n=void 0===s?"B2C":s,c=o.platform,t=void 0===c?"mobile":c,d=function(r){switch(r){case"B2C":default:return i;case"B2B":return u;case"FK":return b}}(n);return e.jsx(g.Provider,r.__assign({value:{theme:d,platform:t}},{children:e.jsx(l.ThemeProvider,r.__assign({theme:d},{children:e.jsx(e.Fragment,{children:a})}))}))};y.defaultProps={children:null};exports.B2BTheme=u,exports.B2CTheme=i,exports.BaseTheme=t,exports.FKTheme=b,exports.ThemeContext=g,exports.ThemeProvider=y,exports.useTheme=function(){return(a.useContext(g)||{theme:i}).theme},exports.useThemeContext=function(){return a.useContext(g)}; | ||
"use strict";var r=require("tslib"),o=require("@cleartrip/ct-design-tokens"),l=require("styled-components"),e=require("react/jsx-runtime"),a=require("react"),s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};var c={enabled:{stroke:o.colors.neutral900},disabled:{stroke:o.colors.neutral500}},t={color:{text:{primary:o.colors.neutral900,secondary:o.colors.brandText,tertiary:o.colors.neutral500,heading:o.colors.neutral900,subHeading:o.colors.neutral700,disabled:o.colors.disabledText,success:o.colors.successText,alert:o.colors.alertText,warning:o.colors.warningText,link:o.colors.linkText,brand:o.colors.brandText,neutral:o.colors.neutral100,link2:o.colors.link2,margarita:o.colors.margarita750,primary2:o.colors.grapetini900,secondary2:o.colors.blue100},button:{outlinedPrimaryLabel:o.colors.neutral900,outlinedPrimaryBorder:o.colors.neutral900,outlinedPrimaryBg:o.colors.neutral100,outlinedSecondaryLabel:o.colors.brand,outlinedSecondaryBorder:o.colors.brand,outlinedSecondaryBg:o.colors.neutral100,outlinedTertiaryLabel:o.colors.link,outlinedTertiaryBorder:o.colors.link,outlinedTertiaryBg:o.colors.neutral100,outlinedDisabledLabel:o.colors.disabledText,outlinedDisabledBg:o.colors.neutral300,containedPrimaryLabel:o.colors.neutral100,containedPrimaryBg:o.colors.neutral900,containedSecondaryLabel:o.colors.neutral100,containedSecondaryBg:o.colors.brand,containedTertiaryLabel:o.colors.neutral100,containedTertiaryBg:o.colors.link,containedDisabledLabel:o.colors.disabledText,containedDisabledBg:o.colors.neutral300,containedNeutralLabel:o.colors.neutral900,containedNeutralBg:o.colors.neutral100,hover:function(r){var l;return((l={})[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.brand]=o.colors.bgPrimaryHover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.link2]=o.colors.link2Hover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l)[r]}},chip:{nonSelectedPrimaryLabel:o.colors.neutral900,disabledPrimaryLabel:o.colors.disabledText,selectedPrimaryLabel:o.colors.neutral900,selectedPrimaryBorder:o.colors.neutral900,selectedPrimaryBg:o.colors.neutral300},dropdown:{shadow:o.colors.shadow},tab:{nonSelectedPrimaryLabel:o.colors.neutral700,selectedPrimaryLabel:o.colors.neutral900},sidenav:{primaryBg:o.colors.neutral900,selectedTabBg:o.colors.highlightBg},tooltip:{primaryBg:o.colors.neutral900},background:{primary:o.colors.neutral900,secondary:o.colors.brand,tertiary:o.colors.link,brand:o.colors.brand,brandLightBg:o.colors.brandBg,link:o.colors.link,link2:o.colors.link2,linkLightBg:o.colors.linkBg,success:o.colors.success,successLightBg:o.colors.successBg,alert:o.colors.alert,alertLightBg:o.colors.alertBg,warning:o.colors.warning,warningLightBg:o.colors.warningBg,neutral:o.colors.neutral100,disabled:o.colors.neutral300,disabledSecondaryLight:o.colors.neutral350,disabledSecondary:o.colors.neutral400,disabledDark:o.colors.disabled100,defaultDark:o.colors.neutral700,defaultDarkest:o.colors.neutral900},border:{primary:o.colors.neutral900,secondary:o.colors.brand,tertiary:o.colors.link,brand:o.colors.brand,neutral:o.colors.neutral900,link:o.colors.link,default:o.colors.line,defaultDark:o.colors.neutral700,disabled:o.colors.neutral500,disabledDark:o.colors.disabled100,warning:o.colors.warning,divider:o.colors.neutral300},spinner:{primary:o.colors.neutral700,primaryBg:o.colors.alertBg},shimmer:{disabledLight:o.colors.disabledLight,disabledDark:o.colors.disabled250},coupon:{primaryBg:o.colors.blue100},alert:{success:o.colors.successBg,warning:o.colors.alertBg,info:o.colors.blue100,error:o.colors.orange100,neutral:o.colors.neutral100},badge:{curacao:o.colors.curacao250,curacao900:o.colors.curacao900,pinaColada:o.colors.pinaColada250,margarita250:o.colors.margarita250,default:o.colors.neutral300,green:o.colors.successBg,margarita100:o.colors.margarita100,yellow:o.colors.alertBg,orange100:o.colors.orange100,orange250:o.colors.orange250,orange500:o.colors.orange500,red:o.colors.warningBg,green500:o.colors.success500,green600:o.colors.success600,purple100:o.colors.purple100,purple250:o.colors.purple250,gray100:o.colors.gray100,gray250:o.colors.gray250,aqua100:o.colors.aqua100,aqua250:o.colors.aqua250,black:o.colors.black,link:o.colors.link,blue100:o.colors.blue100,blue900:o.colors.blue900,neutral100:o.colors.neutral100},counter:c,calendar:{accent:o.colors.neutral900,background:o.colors.neutral300,selected:o.colors.neutral900}},elevation:r.__assign({},o.elevation),border:r.__assign({},o.border),spacing:r.__assign({},o.spacing),typography:r.__assign({},o.typography),size:r.__assign({},o.size),transitions:{duration:s,easing:n,create:function(r,o){void 0===r&&(r=["all"]),void 0===o&&(o={});var l=o.duration,e=void 0===l?s.standard:l,a=o.easing,c=void 0===a?n.easeInOut:a,t=o.delay,i=void 0===t?0:t;return(Array.isArray(r)?r:[r]).map((function(r){return"".concat(r," ").concat("string"==typeof e?e:"".concat(e,"ms")," ").concat(c," ").concat("string"==typeof i?i:"".concat(i,"ms"))})).join(",")},getAutoHeightDuration:function(r){if(!r)return 0;var o=r/36;return Math.round(10*(4+15*Math.pow(o,.25)+o/5))}},zIndex:{drawer:1200,modal:1300,popOver:1300,tooltip:1500,sideNav:100,toolbar:50,bottomSheet:100}},i=r.__assign({},t),u=r.__assign(r.__assign({},t),{color:r.__assign(r.__assign({},t.color),{text:r.__assign(r.__assign({},t.color.text),{secondary:o.colors.link2,tertiary:o.colors.neutral500}),button:r.__assign(r.__assign({},t.color.button),{outlinedPrimaryLabel:o.colors.link2,outlinedPrimaryBorder:o.colors.link2,outlinedPrimaryBg:o.colors.neutral100,outlinedSecondaryLabel:o.colors.neutral900,outlinedSecondaryBorder:o.colors.neutral900,outlinedSecondaryBg:o.colors.neutral100,outlinedTertiaryLabel:o.colors.brand,outlinedTertiaryBorder:o.colors.brand,outlinedTertiaryBg:o.colors.neutral100,outlinedDisabledLabel:o.colors.disabledText,outlinedDisabledBg:o.colors.neutral300,containedPrimaryLabel:o.colors.neutral100,containedPrimaryBg:o.colors.link2,containedSecondaryLabel:o.colors.neutral100,containedSecondaryBg:o.colors.neutral900,containedTertiaryLabel:o.colors.neutral100,containedTertiaryBg:o.colors.brand,containedDisabledLabel:o.colors.disabledText,containedDisabledBg:o.colors.neutral300,hover:function(r){var l;return((l={})[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.brand]=o.colors.bgPrimaryHover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.link2]=o.colors.link2Hover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l)[r]}}),chip:r.__assign(r.__assign({},t.color.chip),{selectedPrimaryLabel:o.colors.link2,selectedPrimaryBorder:o.colors.link2,selectedPrimaryBg:o.colors.linkBg}),tab:r.__assign(r.__assign({},t.color.tab),{nonSelectedPrimaryLabel:o.colors.neutral900,selectedPrimaryLabel:o.colors.link2}),background:r.__assign(r.__assign({},t.color.background),{primary:o.colors.link2,secondary:o.colors.neutral900,tertiary:o.colors.brand}),border:r.__assign(r.__assign({},t.color.border),{primary:o.colors.link2,secondary:o.colors.neutral900,tertiary:o.colors.brand,divider:o.colors.line}),spinner:{primary:o.colors.link2,primaryBg:o.colors.alertBg},calendar:{accent:"",background:"",selected:o.colors.link2}})}),d={enabled:{stroke:o.colors.bluePrimary500},disabled:{stroke:o.colors.neutral500}},b=r.__assign(r.__assign({},t),{color:r.__assign(r.__assign({},t.color),{text:r.__assign(r.__assign({},t.color.text),{link:o.colors.bluePrimary500}),button:r.__assign(r.__assign({},t.color.button),{outlinedPrimaryLabel:o.colors.primaryNeutral900,outlinedPrimaryBg:o.colors.neutral100,containedPrimaryLabel:o.colors.neutral100,containedPrimaryBg:o.colors.bluePrimary500,containedSecondaryLabel:o.colors.primaryNeutral900,containedSecondaryBg:o.colors.yellowSecondary,hover:function(r){var l;return((l={})[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.brand]=o.colors.bgPrimaryHover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.link2]=o.colors.link2Hover,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.neutral900]=o.colors.neutral900,l[o.colors.neutral100]=o.colors.neutral100,l[o.colors.disabledText]=o.colors.disabledText,l[o.colors.neutral300]=o.colors.neutral300,l)[r]}}),chip:r.__assign(r.__assign({},t.color.chip),{selectedPrimaryLabel:o.colors.link2,selectedPrimaryBorder:o.colors.link2,selectedPrimaryBg:o.colors.linkBg,nonSelectedPrimaryLabel:o.colors.neutral900}),tab:r.__assign(r.__assign({},t.color.tab),{nonSelectedPrimaryLabel:o.colors.neutral900,selectedPrimaryLabel:o.colors.bluePrimary500}),background:r.__assign(r.__assign({},t.color.background),{primary:o.colors.bluePrimary500,secondary:o.colors.neutral900,tertiary:o.colors.brand,linkLightBg:o.colors.blueSecondary}),border:r.__assign(r.__assign({},t.color.border),{primary:o.colors.bluePrimary500,brand:o.colors.bluePrimary500}),spinner:{primary:o.colors.link2,primaryBg:o.colors.alertBg},counter:d,calendar:{accent:o.colors.bluePrimary500,background:o.colors.blueSecondary,selected:o.colors.bluePrimary500}})}),g=a.createContext({theme:i,platform:"mobile"}),y=function(o){var a=o.children,s=o.theme,n=void 0===s?"B2C":s,c=o.platform,t=void 0===c?"mobile":c,d=function(r){switch(r){case"B2C":default:return i;case"B2B":return u;case"FK":return b}}(n);return e.jsx(g.Provider,r.__assign({value:{theme:d,platform:t}},{children:e.jsx(l.ThemeProvider,r.__assign({theme:d},{children:e.jsx(e.Fragment,{children:a})}))}))};y.defaultProps={children:null};exports.B2BTheme=u,exports.B2CTheme=i,exports.BaseTheme=t,exports.FKTheme=b,exports.ThemeContext=g,exports.ThemeProvider=y,exports.useTheme=function(){return(a.useContext(g)||{theme:i}).theme},exports.useThemeContext=function(){return a.useContext(g)}; | ||
//# sourceMappingURL=ct-design-theme.browser.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import{__assign as e}from"tslib";import{colors as r,elevation as a,border as n,spacing as t,typography as l,size as i}from"@cleartrip/ct-design-tokens";import{ThemeProvider as u}from"styled-components";import{jsx as d,Fragment as o}from"react/jsx-runtime";import{createContext as c,useContext as b}from"react";var s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},g={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};var y={enabled:{stroke:r.neutral900},disabled:{stroke:r.neutral500}},m={color:{text:{primary:r.neutral900,secondary:r.brandText,tertiary:r.neutral500,heading:r.neutral900,subHeading:r.neutral700,disabled:r.disabledText,success:r.successText,alert:r.alertText,warning:r.warningText,link:r.linkText,brand:r.brandText,neutral:r.neutral100,link2:r.link2,margarita:r.margarita750,primary2:r.grapetini900,secondary2:r.blue100,grapetini900:r.grapetini900},button:{outlinedPrimaryLabel:r.neutral900,outlinedPrimaryBorder:r.neutral900,outlinedPrimaryBg:r.neutral100,outlinedSecondaryLabel:r.brand,outlinedSecondaryBorder:r.brand,outlinedSecondaryBg:r.neutral100,outlinedTertiaryLabel:r.link,outlinedTertiaryBorder:r.link,outlinedTertiaryBg:r.neutral100,outlinedDisabledLabel:r.disabledText,outlinedDisabledBg:r.neutral300,containedPrimaryLabel:r.neutral100,containedPrimaryBg:r.neutral900,containedSecondaryLabel:r.neutral100,containedSecondaryBg:r.brand,containedTertiaryLabel:r.neutral100,containedTertiaryBg:r.link,containedDisabledLabel:r.disabledText,containedDisabledBg:r.neutral300,containedNeutralLabel:r.neutral900,containedNeutralBg:r.neutral100,hover:function(e){var a;return((a={})[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.brand]=r.bgPrimaryHover,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a[r.neutral100]=r.neutral100,a[r.link2]=r.link2Hover,a[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a)[e]}},chip:{nonSelectedPrimaryLabel:r.neutral900,disabledPrimaryLabel:r.disabledText,selectedPrimaryLabel:r.neutral900,selectedPrimaryBorder:r.neutral900,selectedPrimaryBg:r.neutral300},dropdown:{shadow:r.shadow},tab:{nonSelectedPrimaryLabel:r.neutral700,selectedPrimaryLabel:r.neutral900},sidenav:{primaryBg:r.neutral900,selectedTabBg:r.highlightBg},tooltip:{primaryBg:r.neutral900},background:{primary:r.neutral900,secondary:r.brand,tertiary:r.link,brand:r.brand,brandLightBg:r.brandBg,link:r.link,link2:r.link2,linkLightBg:r.linkBg,success:r.success,successLightBg:r.successBg,alert:r.alert,alertLightBg:r.alertBg,warning:r.warning,warningLightBg:r.warningBg,neutral:r.neutral100,disabled:r.neutral300,disabledSecondaryLight:r.neutral350,disabledSecondary:r.neutral400,disabledDark:r.disabled100,defaultDark:r.neutral700,defaultDarkest:r.neutral900},border:{primary:r.neutral900,secondary:r.brand,tertiary:r.link,brand:r.brand,neutral:r.neutral900,link:r.link,default:r.line,defaultDark:r.neutral700,disabled:r.neutral500,disabledDark:r.disabled100,warning:r.warning},spinner:{primary:r.neutral700,primaryBg:r.alertBg},shimmer:{disabledLight:r.disabledLight,disabledDark:r.disabled250},coupon:{primaryBg:r.blue100},alert:{success:r.successBg,warning:r.alertBg,info:r.blue100,error:r.orange100,neutral:r.neutral100},badge:{curacao:r.curacao250,curacao900:r.curacao900,pinaColada:r.pinaColada250,margarita250:r.margarita250,default:r.neutral300,green:r.successBg,margarita100:r.margarita100,yellow:r.alertBg,orange100:r.orange100,orange250:r.orange250,orange500:r.orange500,red:r.warningBg,green500:r.success500,green600:r.success600,purple100:r.purple100,purple250:r.purple250,gray100:r.gray100,gray250:r.gray250,aqua100:r.aqua100,aqua250:r.aqua250,black:r.black,link:r.link,blue100:r.blue100,blue900:r.blue900,neutral100:r.neutral100},counter:y,calendar:{accent:r.neutral900,background:r.neutral300,selected:r.neutral900}},elevation:e({},a),border:e({},n),spacing:e({},t),typography:e({},l),size:e({},i),transitions:{duration:s,easing:g,create:function(e,r){void 0===e&&(e=["all"]),void 0===r&&(r={});var a=r.duration,n=void 0===a?s.standard:a,t=r.easing,l=void 0===t?g.easeInOut:t,i=r.delay,u=void 0===i?0:i;return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof n?n:"".concat(n,"ms")," ").concat(l," ").concat("string"==typeof u?u:"".concat(u,"ms"))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var r=e/36;return Math.round(10*(4+15*Math.pow(r,.25)+r/5))}},zIndex:{drawer:1200,modal:1300,popOver:1300,tooltip:1500,sideNav:100,toolbar:50,bottomSheet:100}},p=e({},m),B=e(e({},m),{color:e(e({},m.color),{text:e(e({},m.color.text),{secondary:r.link2,tertiary:r.neutral500}),button:e(e({},m.color.button),{outlinedPrimaryLabel:r.link2,outlinedPrimaryBorder:r.link2,outlinedPrimaryBg:r.neutral100,outlinedSecondaryLabel:r.neutral900,outlinedSecondaryBorder:r.neutral900,outlinedSecondaryBg:r.neutral100,outlinedTertiaryLabel:r.brand,outlinedTertiaryBorder:r.brand,outlinedTertiaryBg:r.neutral100,outlinedDisabledLabel:r.disabledText,outlinedDisabledBg:r.neutral300,containedPrimaryLabel:r.neutral100,containedPrimaryBg:r.link2,containedSecondaryLabel:r.neutral100,containedSecondaryBg:r.neutral900,containedTertiaryLabel:r.neutral100,containedTertiaryBg:r.brand,containedDisabledLabel:r.disabledText,containedDisabledBg:r.neutral300,hover:function(e){var a;return((a={})[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.brand]=r.bgPrimaryHover,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a[r.neutral100]=r.neutral100,a[r.link2]=r.link2Hover,a[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a)[e]}}),chip:e(e({},m.color.chip),{selectedPrimaryLabel:r.link2,selectedPrimaryBorder:r.link2,selectedPrimaryBg:r.linkBg}),tab:e(e({},m.color.tab),{nonSelectedPrimaryLabel:r.neutral900,selectedPrimaryLabel:r.link2}),background:e(e({},m.color.background),{primary:r.link2,secondary:r.neutral900,tertiary:r.brand}),border:e(e({},m.color.border),{primary:r.link2,secondary:r.neutral900,tertiary:r.brand}),spinner:{primary:r.link2,primaryBg:r.alertBg},calendar:{accent:"",background:"",selected:r.link2}})}),k={enabled:{stroke:r.bluePrimary500},disabled:{stroke:r.neutral500}},P=e(e({},m),{color:e(e({},m.color),{text:e(e({},m.color.text),{link:r.bluePrimary500}),button:e(e({},m.color.button),{outlinedPrimaryLabel:r.primaryNeutral900,outlinedPrimaryBg:r.neutral100,containedPrimaryLabel:r.neutral100,containedPrimaryBg:r.bluePrimary500,containedSecondaryLabel:r.primaryNeutral900,containedSecondaryBg:r.yellowSecondary,hover:function(e){var a;return((a={})[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.brand]=r.bgPrimaryHover,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a[r.neutral100]=r.neutral100,a[r.link2]=r.link2Hover,a[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a)[e]}}),chip:e(e({},m.color.chip),{selectedPrimaryLabel:r.link2,selectedPrimaryBorder:r.link2,selectedPrimaryBg:r.linkBg,nonSelectedPrimaryLabel:r.neutral900}),tab:e(e({},m.color.tab),{nonSelectedPrimaryLabel:r.neutral900,selectedPrimaryLabel:r.bluePrimary500}),background:e(e({},m.color.background),{primary:r.bluePrimary500,secondary:r.neutral900,tertiary:r.brand,linkLightBg:r.blueSecondary}),border:e(e({},m.color.border),{primary:r.bluePrimary500,brand:r.bluePrimary500}),spinner:{primary:r.link2,primaryBg:r.alertBg},counter:k,calendar:{accent:r.bluePrimary500,background:r.blueSecondary,selected:r.bluePrimary500}})}),h=c({theme:p,platform:"mobile"}),L=function(r){var a=r.children,n=r.theme,t=void 0===n?"B2C":n,l=r.platform,i=void 0===l?"mobile":l,c=function(e){switch(e){case"B2C":default:return p;case"B2B":return B;case"FK":return P}}(t);return d(h.Provider,e({value:{theme:c,platform:i}},{children:d(u,e({theme:c},{children:d(o,{children:a})}))}))};L.defaultProps={children:null};var T=function(){return(b(h)||{theme:p}).theme},v=function(){return b(h)};export{B as B2BTheme,p as B2CTheme,m as BaseTheme,P as FKTheme,h as ThemeContext,L as ThemeProvider,T as useTheme,v as useThemeContext}; | ||
import{__assign as e}from"tslib";import{colors as r,elevation as a,border as n,spacing as t,typography as l,size as i}from"@cleartrip/ct-design-tokens";import{ThemeProvider as d}from"styled-components";import{jsx as u,Fragment as o}from"react/jsx-runtime";import{createContext as c,useContext as b}from"react";var s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},g={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};var y={enabled:{stroke:r.neutral900},disabled:{stroke:r.neutral500}},m={color:{text:{primary:r.neutral900,secondary:r.brandText,tertiary:r.neutral500,heading:r.neutral900,subHeading:r.neutral700,disabled:r.disabledText,success:r.successText,alert:r.alertText,warning:r.warningText,link:r.linkText,brand:r.brandText,neutral:r.neutral100,link2:r.link2,margarita:r.margarita750,primary2:r.grapetini900,secondary2:r.blue100},button:{outlinedPrimaryLabel:r.neutral900,outlinedPrimaryBorder:r.neutral900,outlinedPrimaryBg:r.neutral100,outlinedSecondaryLabel:r.brand,outlinedSecondaryBorder:r.brand,outlinedSecondaryBg:r.neutral100,outlinedTertiaryLabel:r.link,outlinedTertiaryBorder:r.link,outlinedTertiaryBg:r.neutral100,outlinedDisabledLabel:r.disabledText,outlinedDisabledBg:r.neutral300,containedPrimaryLabel:r.neutral100,containedPrimaryBg:r.neutral900,containedSecondaryLabel:r.neutral100,containedSecondaryBg:r.brand,containedTertiaryLabel:r.neutral100,containedTertiaryBg:r.link,containedDisabledLabel:r.disabledText,containedDisabledBg:r.neutral300,containedNeutralLabel:r.neutral900,containedNeutralBg:r.neutral100,hover:function(e){var a;return((a={})[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.brand]=r.bgPrimaryHover,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a[r.neutral100]=r.neutral100,a[r.link2]=r.link2Hover,a[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a)[e]}},chip:{nonSelectedPrimaryLabel:r.neutral900,disabledPrimaryLabel:r.disabledText,selectedPrimaryLabel:r.neutral900,selectedPrimaryBorder:r.neutral900,selectedPrimaryBg:r.neutral300},dropdown:{shadow:r.shadow},tab:{nonSelectedPrimaryLabel:r.neutral700,selectedPrimaryLabel:r.neutral900},sidenav:{primaryBg:r.neutral900,selectedTabBg:r.highlightBg},tooltip:{primaryBg:r.neutral900},background:{primary:r.neutral900,secondary:r.brand,tertiary:r.link,brand:r.brand,brandLightBg:r.brandBg,link:r.link,link2:r.link2,linkLightBg:r.linkBg,success:r.success,successLightBg:r.successBg,alert:r.alert,alertLightBg:r.alertBg,warning:r.warning,warningLightBg:r.warningBg,neutral:r.neutral100,disabled:r.neutral300,disabledSecondaryLight:r.neutral350,disabledSecondary:r.neutral400,disabledDark:r.disabled100,defaultDark:r.neutral700,defaultDarkest:r.neutral900},border:{primary:r.neutral900,secondary:r.brand,tertiary:r.link,brand:r.brand,neutral:r.neutral900,link:r.link,default:r.line,defaultDark:r.neutral700,disabled:r.neutral500,disabledDark:r.disabled100,warning:r.warning,divider:r.neutral300},spinner:{primary:r.neutral700,primaryBg:r.alertBg},shimmer:{disabledLight:r.disabledLight,disabledDark:r.disabled250},coupon:{primaryBg:r.blue100},alert:{success:r.successBg,warning:r.alertBg,info:r.blue100,error:r.orange100,neutral:r.neutral100},badge:{curacao:r.curacao250,curacao900:r.curacao900,pinaColada:r.pinaColada250,margarita250:r.margarita250,default:r.neutral300,green:r.successBg,margarita100:r.margarita100,yellow:r.alertBg,orange100:r.orange100,orange250:r.orange250,orange500:r.orange500,red:r.warningBg,green500:r.success500,green600:r.success600,purple100:r.purple100,purple250:r.purple250,gray100:r.gray100,gray250:r.gray250,aqua100:r.aqua100,aqua250:r.aqua250,black:r.black,link:r.link,blue100:r.blue100,blue900:r.blue900,neutral100:r.neutral100},counter:y,calendar:{accent:r.neutral900,background:r.neutral300,selected:r.neutral900}},elevation:e({},a),border:e({},n),spacing:e({},t),typography:e({},l),size:e({},i),transitions:{duration:s,easing:g,create:function(e,r){void 0===e&&(e=["all"]),void 0===r&&(r={});var a=r.duration,n=void 0===a?s.standard:a,t=r.easing,l=void 0===t?g.easeInOut:t,i=r.delay,d=void 0===i?0:i;return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof n?n:"".concat(n,"ms")," ").concat(l," ").concat("string"==typeof d?d:"".concat(d,"ms"))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var r=e/36;return Math.round(10*(4+15*Math.pow(r,.25)+r/5))}},zIndex:{drawer:1200,modal:1300,popOver:1300,tooltip:1500,sideNav:100,toolbar:50,bottomSheet:100}},p=e({},m),B=e(e({},m),{color:e(e({},m.color),{text:e(e({},m.color.text),{secondary:r.link2,tertiary:r.neutral500}),button:e(e({},m.color.button),{outlinedPrimaryLabel:r.link2,outlinedPrimaryBorder:r.link2,outlinedPrimaryBg:r.neutral100,outlinedSecondaryLabel:r.neutral900,outlinedSecondaryBorder:r.neutral900,outlinedSecondaryBg:r.neutral100,outlinedTertiaryLabel:r.brand,outlinedTertiaryBorder:r.brand,outlinedTertiaryBg:r.neutral100,outlinedDisabledLabel:r.disabledText,outlinedDisabledBg:r.neutral300,containedPrimaryLabel:r.neutral100,containedPrimaryBg:r.link2,containedSecondaryLabel:r.neutral100,containedSecondaryBg:r.neutral900,containedTertiaryLabel:r.neutral100,containedTertiaryBg:r.brand,containedDisabledLabel:r.disabledText,containedDisabledBg:r.neutral300,hover:function(e){var a;return((a={})[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.brand]=r.bgPrimaryHover,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a[r.neutral100]=r.neutral100,a[r.link2]=r.link2Hover,a[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a)[e]}}),chip:e(e({},m.color.chip),{selectedPrimaryLabel:r.link2,selectedPrimaryBorder:r.link2,selectedPrimaryBg:r.linkBg}),tab:e(e({},m.color.tab),{nonSelectedPrimaryLabel:r.neutral900,selectedPrimaryLabel:r.link2}),background:e(e({},m.color.background),{primary:r.link2,secondary:r.neutral900,tertiary:r.brand}),border:e(e({},m.color.border),{primary:r.link2,secondary:r.neutral900,tertiary:r.brand,divider:r.line}),spinner:{primary:r.link2,primaryBg:r.alertBg},calendar:{accent:"",background:"",selected:r.link2}})}),k={enabled:{stroke:r.bluePrimary500},disabled:{stroke:r.neutral500}},P=e(e({},m),{color:e(e({},m.color),{text:e(e({},m.color.text),{link:r.bluePrimary500}),button:e(e({},m.color.button),{outlinedPrimaryLabel:r.primaryNeutral900,outlinedPrimaryBg:r.neutral100,containedPrimaryLabel:r.neutral100,containedPrimaryBg:r.bluePrimary500,containedSecondaryLabel:r.primaryNeutral900,containedSecondaryBg:r.yellowSecondary,hover:function(e){var a;return((a={})[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.brand]=r.bgPrimaryHover,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a[r.neutral100]=r.neutral100,a[r.link2]=r.link2Hover,a[r.neutral100]=r.neutral100,a[r.neutral900]=r.neutral900,a[r.neutral100]=r.neutral100,a[r.disabledText]=r.disabledText,a[r.neutral300]=r.neutral300,a)[e]}}),chip:e(e({},m.color.chip),{selectedPrimaryLabel:r.link2,selectedPrimaryBorder:r.link2,selectedPrimaryBg:r.linkBg,nonSelectedPrimaryLabel:r.neutral900}),tab:e(e({},m.color.tab),{nonSelectedPrimaryLabel:r.neutral900,selectedPrimaryLabel:r.bluePrimary500}),background:e(e({},m.color.background),{primary:r.bluePrimary500,secondary:r.neutral900,tertiary:r.brand,linkLightBg:r.blueSecondary}),border:e(e({},m.color.border),{primary:r.bluePrimary500,brand:r.bluePrimary500}),spinner:{primary:r.link2,primaryBg:r.alertBg},counter:k,calendar:{accent:r.bluePrimary500,background:r.blueSecondary,selected:r.bluePrimary500}})}),h=c({theme:p,platform:"mobile"}),L=function(r){var a=r.children,n=r.theme,t=void 0===n?"B2C":n,l=r.platform,i=void 0===l?"mobile":l,c=function(e){switch(e){case"B2C":default:return p;case"B2B":return B;case"FK":return P}}(t);return u(h.Provider,e({value:{theme:c,platform:i}},{children:u(d,e({theme:c},{children:u(o,{children:a})}))}))};L.defaultProps={children:null};var T=function(){return(b(h)||{theme:p}).theme},v=function(){return b(h)};export{B as B2BTheme,p as B2CTheme,m as BaseTheme,P as FKTheme,h as ThemeContext,L as ThemeProvider,T as useTheme,v as useThemeContext}; | ||
//# sourceMappingURL=ct-design-theme.browser.esm.js.map |
@@ -98,3 +98,2 @@ 'use strict'; | ||
secondary2: ctDesignTokens.colors.blue100, | ||
grapetini900: ctDesignTokens.colors.grapetini900, | ||
}, | ||
@@ -181,2 +180,3 @@ button: { | ||
warning: ctDesignTokens.colors.warning, | ||
divider: ctDesignTokens.colors.neutral300, | ||
}, | ||
@@ -272,3 +272,3 @@ spinner: { | ||
}; | ||
var B2BTheme = tslib.__assign(tslib.__assign({}, BaseTheme), { color: tslib.__assign(tslib.__assign({}, BaseTheme.color), { text: tslib.__assign(tslib.__assign({}, BaseTheme.color.text), { secondary: ctDesignTokens.colors.link2, tertiary: ctDesignTokens.colors.neutral500 }), button: tslib.__assign(tslib.__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.link2, outlinedPrimaryBorder: ctDesignTokens.colors.link2, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, outlinedSecondaryLabel: ctDesignTokens.colors.neutral900, outlinedSecondaryBorder: ctDesignTokens.colors.neutral900, outlinedSecondaryBg: ctDesignTokens.colors.neutral100, outlinedTertiaryLabel: ctDesignTokens.colors.brand, outlinedTertiaryBorder: ctDesignTokens.colors.brand, outlinedTertiaryBg: ctDesignTokens.colors.neutral100, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, outlinedDisabledBg: ctDesignTokens.colors.neutral300, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.link2, containedSecondaryLabel: ctDesignTokens.colors.neutral100, containedSecondaryBg: ctDesignTokens.colors.neutral900, containedTertiaryLabel: ctDesignTokens.colors.neutral100, containedTertiaryBg: ctDesignTokens.colors.brand, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedDisabledBg: ctDesignTokens.colors.neutral300, hover: hover$1 }), chip: tslib.__assign(tslib.__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg }), tab: tslib.__assign(tslib.__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.link2 }), background: tslib.__assign(tslib.__assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), border: tslib.__assign(tslib.__assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), spinner: { | ||
var B2BTheme = tslib.__assign(tslib.__assign({}, BaseTheme), { color: tslib.__assign(tslib.__assign({}, BaseTheme.color), { text: tslib.__assign(tslib.__assign({}, BaseTheme.color.text), { secondary: ctDesignTokens.colors.link2, tertiary: ctDesignTokens.colors.neutral500 }), button: tslib.__assign(tslib.__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.link2, outlinedPrimaryBorder: ctDesignTokens.colors.link2, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, outlinedSecondaryLabel: ctDesignTokens.colors.neutral900, outlinedSecondaryBorder: ctDesignTokens.colors.neutral900, outlinedSecondaryBg: ctDesignTokens.colors.neutral100, outlinedTertiaryLabel: ctDesignTokens.colors.brand, outlinedTertiaryBorder: ctDesignTokens.colors.brand, outlinedTertiaryBg: ctDesignTokens.colors.neutral100, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, outlinedDisabledBg: ctDesignTokens.colors.neutral300, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.link2, containedSecondaryLabel: ctDesignTokens.colors.neutral100, containedSecondaryBg: ctDesignTokens.colors.neutral900, containedTertiaryLabel: ctDesignTokens.colors.neutral100, containedTertiaryBg: ctDesignTokens.colors.brand, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedDisabledBg: ctDesignTokens.colors.neutral300, hover: hover$1 }), chip: tslib.__assign(tslib.__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg }), tab: tslib.__assign(tslib.__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.link2 }), background: tslib.__assign(tslib.__assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), border: tslib.__assign(tslib.__assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand, divider: ctDesignTokens.colors.line }), spinner: { | ||
primary: ctDesignTokens.colors.link2, | ||
@@ -275,0 +275,0 @@ primaryBg: ctDesignTokens.colors.alertBg, |
@@ -96,3 +96,2 @@ import { __assign } from 'tslib'; | ||
secondary2: colors.blue100, | ||
grapetini900: colors.grapetini900, | ||
}, | ||
@@ -179,2 +178,3 @@ button: { | ||
warning: colors.warning, | ||
divider: colors.neutral300, | ||
}, | ||
@@ -270,3 +270,3 @@ spinner: { | ||
}; | ||
var B2BTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { secondary: colors.link2, tertiary: colors.neutral500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: colors.link2, outlinedPrimaryBorder: colors.link2, outlinedPrimaryBg: colors.neutral100, outlinedSecondaryLabel: colors.neutral900, outlinedSecondaryBorder: colors.neutral900, outlinedSecondaryBg: colors.neutral100, outlinedTertiaryLabel: colors.brand, outlinedTertiaryBorder: colors.brand, outlinedTertiaryBg: colors.neutral100, outlinedDisabledLabel: colors.disabledText, outlinedDisabledBg: colors.neutral300, containedPrimaryLabel: colors.neutral100, containedPrimaryBg: colors.link2, containedSecondaryLabel: colors.neutral100, containedSecondaryBg: colors.neutral900, containedTertiaryLabel: colors.neutral100, containedTertiaryBg: colors.brand, containedDisabledLabel: colors.disabledText, containedDisabledBg: colors.neutral300, hover: hover$1 }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: colors.link2, selectedPrimaryBorder: colors.link2, selectedPrimaryBg: colors.linkBg }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: colors.neutral900, selectedPrimaryLabel: colors.link2 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: colors.link2, secondary: colors.neutral900, tertiary: colors.brand }), border: __assign(__assign({}, BaseTheme.color.border), { primary: colors.link2, secondary: colors.neutral900, tertiary: colors.brand }), spinner: { | ||
var B2BTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { secondary: colors.link2, tertiary: colors.neutral500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: colors.link2, outlinedPrimaryBorder: colors.link2, outlinedPrimaryBg: colors.neutral100, outlinedSecondaryLabel: colors.neutral900, outlinedSecondaryBorder: colors.neutral900, outlinedSecondaryBg: colors.neutral100, outlinedTertiaryLabel: colors.brand, outlinedTertiaryBorder: colors.brand, outlinedTertiaryBg: colors.neutral100, outlinedDisabledLabel: colors.disabledText, outlinedDisabledBg: colors.neutral300, containedPrimaryLabel: colors.neutral100, containedPrimaryBg: colors.link2, containedSecondaryLabel: colors.neutral100, containedSecondaryBg: colors.neutral900, containedTertiaryLabel: colors.neutral100, containedTertiaryBg: colors.brand, containedDisabledLabel: colors.disabledText, containedDisabledBg: colors.neutral300, hover: hover$1 }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: colors.link2, selectedPrimaryBorder: colors.link2, selectedPrimaryBg: colors.linkBg }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: colors.neutral900, selectedPrimaryLabel: colors.link2 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: colors.link2, secondary: colors.neutral900, tertiary: colors.brand }), border: __assign(__assign({}, BaseTheme.color.border), { primary: colors.link2, secondary: colors.neutral900, tertiary: colors.brand, divider: colors.line }), spinner: { | ||
primary: colors.link2, | ||
@@ -273,0 +273,0 @@ primaryBg: colors.alertBg, |
@@ -127,3 +127,2 @@ (function (global, factory) { | ||
secondary2: ctDesignTokens.colors.blue100, | ||
grapetini900: ctDesignTokens.colors.grapetini900, | ||
}, | ||
@@ -210,2 +209,3 @@ button: { | ||
warning: ctDesignTokens.colors.warning, | ||
divider: ctDesignTokens.colors.neutral300, | ||
}, | ||
@@ -301,3 +301,3 @@ spinner: { | ||
}; | ||
var B2BTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { secondary: ctDesignTokens.colors.link2, tertiary: ctDesignTokens.colors.neutral500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.link2, outlinedPrimaryBorder: ctDesignTokens.colors.link2, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, outlinedSecondaryLabel: ctDesignTokens.colors.neutral900, outlinedSecondaryBorder: ctDesignTokens.colors.neutral900, outlinedSecondaryBg: ctDesignTokens.colors.neutral100, outlinedTertiaryLabel: ctDesignTokens.colors.brand, outlinedTertiaryBorder: ctDesignTokens.colors.brand, outlinedTertiaryBg: ctDesignTokens.colors.neutral100, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, outlinedDisabledBg: ctDesignTokens.colors.neutral300, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.link2, containedSecondaryLabel: ctDesignTokens.colors.neutral100, containedSecondaryBg: ctDesignTokens.colors.neutral900, containedTertiaryLabel: ctDesignTokens.colors.neutral100, containedTertiaryBg: ctDesignTokens.colors.brand, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedDisabledBg: ctDesignTokens.colors.neutral300, hover: hover$1 }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.link2 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), border: __assign(__assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), spinner: { | ||
var B2BTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { secondary: ctDesignTokens.colors.link2, tertiary: ctDesignTokens.colors.neutral500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.link2, outlinedPrimaryBorder: ctDesignTokens.colors.link2, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, outlinedSecondaryLabel: ctDesignTokens.colors.neutral900, outlinedSecondaryBorder: ctDesignTokens.colors.neutral900, outlinedSecondaryBg: ctDesignTokens.colors.neutral100, outlinedTertiaryLabel: ctDesignTokens.colors.brand, outlinedTertiaryBorder: ctDesignTokens.colors.brand, outlinedTertiaryBg: ctDesignTokens.colors.neutral100, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, outlinedDisabledBg: ctDesignTokens.colors.neutral300, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.link2, containedSecondaryLabel: ctDesignTokens.colors.neutral100, containedSecondaryBg: ctDesignTokens.colors.neutral900, containedTertiaryLabel: ctDesignTokens.colors.neutral100, containedTertiaryBg: ctDesignTokens.colors.brand, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedDisabledBg: ctDesignTokens.colors.neutral300, hover: hover$1 }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.link2 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), border: __assign(__assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand, divider: ctDesignTokens.colors.line }), spinner: { | ||
primary: ctDesignTokens.colors.link2, | ||
@@ -304,0 +304,0 @@ primaryBg: ctDesignTokens.colors.alertBg, |
@@ -20,3 +20,2 @@ declare const B2CTheme: { | ||
secondary2: string; | ||
grapetini900: string; | ||
}; | ||
@@ -103,2 +102,3 @@ button: { | ||
warning: string; | ||
divider: string; | ||
}; | ||
@@ -105,0 +105,0 @@ spinner: { |
@@ -25,3 +25,2 @@ import 'styled-components'; | ||
secondary2: string; | ||
grapetini900: string; | ||
}; | ||
@@ -108,2 +107,3 @@ button: { | ||
warning: string; | ||
divider: string; | ||
}; | ||
@@ -110,0 +110,0 @@ spinner: { |
{ | ||
"name": "@cleartrip/ct-design-theme", | ||
"version": "3.14.0-beta-mevc.0", | ||
"version": "3.14.0", | ||
"description": "", | ||
@@ -18,3 +18,3 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@cleartrip/ct-design-tokens": "3.14.0-beta-mevc.0" | ||
"@cleartrip/ct-design-tokens": "3.14.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1696
2
194747
+ Added@cleartrip/ct-design-tokens@3.14.0(transitive)
- Removed@cleartrip/ct-design-tokens@3.14.0-beta-mevc.0(transitive)