@bikdotai/bik-component-library 0.0.163 → 0.0.165

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @boilertown/react-ui-boilerplate
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 93e5422: First release ever!
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/arrow_down.svg.js"),s=require("../../assets/icons/arrow_up.svg.js"),r=require("../../assets/icons/info.svg.js"),n=require("../tag/Tag.js"),a=require("../template-context-mapper/utils/getFormattedMonthDate.js"),o=require("../tooltips/Tooltip.js"),l=require("../TypographyStyle.js"),c=require("./CommonStyles.js");const d=r=>{let{percent:n,direction:o,timeline:c,customRange:d}=r;const g="negative"===o?i.default:s.default,y="negative"===o?t.COLORS.background.negative.vibrant:"positive"===o?t.COLORS.background.positive.vibrant:t.COLORS.content.placeholder,h="today"===c?"vs yesterday":"yesterday"===c?"vs 1 day before":"7 days"===c?"vs last 7 days":"30 days"===c?"vs last 30 days":"custom"===c&&d?(()=>{if(!d)return"";const e=Math.abs(d[1].getTime()-d[0].getTime()),t=Math.ceil(e/864e5),i=d[0].getTime()-864e5,s=new Date(i-1e3*t*3600*24),r=new Date(i);return`vs ${a.getFormattedMonthDate(s)} - ${a.getFormattedMonthDate(r)}`})():"";return e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"row"}},{children:["number"==typeof n&&e.jsx(g,{color:y,height:20,width:20,style:{marginRight:2}}),"number"==typeof n&&o&&e.jsxs(l.TitleSmall,Object.assign({style:{color:y}},{children:["neutral"===o?0:n,"%"]})),c&&e.jsx(l.Caption,Object.assign({style:{marginLeft:4,color:t.COLORS.content.placeholder}},{children:h}))]}))};exports.AnalyticsTrend=i=>{let{title:s,value:a,trendPercent:g,type:y="horizontal",timeline:h,customRange:u,tooltip:p,card:m=!0,rightSeparator:j=!1,size:v="big",share:b=!1,formatVal:x,prefixSymbol:O}=i;const f="big"===v?l.TitleLarge:l.TitleMedium,R=void 0!==g?g<0?"negative":0===g?"neutral":"positive":void 0,T=void 0!==g?b?Math.round(g):Math.abs(Math.round(g)):void 0;return e.jsx(c.AnalyticsTrendContainer,Object.assign({card:m},{children:e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:4,borderRightWidth:j?1:0,borderRightColor:t.COLORS.stroke.primary,borderRightStyle:"solid",paddingLeft:m?0:24,paddingRight:m?0:24,height:"100%"}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"}},{children:[e.jsx(l.BodySecondary,Object.assign({style:{color:t.COLORS.content.secondary}},{children:s})),p&&e.jsx(o.Tooltip,Object.assign({body:p,placement:"right",width:300},{children:e.jsx("div",Object.assign({style:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:e.jsx(r.default,{color:t.COLORS.content.inactive,height:16,width:16})}))}))]})),e.jsxs("div",Object.assign({style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},b?{justifyContent:"space-between"}:{})},{children:[e.jsx(f,Object.assign({style:{color:t.COLORS.content.primary}},{children:void 0===a?"--":"number"==typeof a&&x?`${null!=O?O:""}${new Intl.NumberFormat("en-IN",{}).format(a)}`:`${null!=O?O:""}${a}`})),"horizontal"===y&&!b&&e.jsx(d,{timeline:h,customRange:u,percent:T,direction:R}),b&&void 0!==T&&e.jsx(n.Tag,{tagText:`${T} %`,theme:"light",type:"neutral"})]})),"vertical"===y&&!b&&e.jsx("div",Object.assign({style:{marginTop:12}},{children:e.jsx(d,{timeline:h,customRange:u,percent:T,direction:R})}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/arrow_down.svg.js"),s=require("../../assets/icons/arrow_up.svg.js"),r=require("../../assets/icons/info.svg.js"),n=require("../tag/Tag.js"),a=require("../template-context-mapper/utils/getFormattedMonthDate.js"),o=require("../tooltips/Tooltip.js"),l=require("../TypographyStyle.js"),c=require("./CommonStyles.js");const d=r=>{let{percent:n,direction:o,timeline:c,customRange:d}=r;const g="negative"===o?i.default:s.default,y="negative"===o?t.COLORS.background.negative.vibrant:"positive"===o?t.COLORS.background.positive.vibrant:t.COLORS.content.placeholder,h="today"===c?"vs yesterday":"yesterday"===c?"vs 1 day before":"7 days"===c?"vs last 7 days":"30 days"===c?"vs last 30 days":"custom"===c&&d?(()=>{if(!d)return"";const e=Math.abs(d[1].getTime()-d[0].getTime()),t=Math.ceil(e/864e5),i=d[0].getTime()-864e5,s=d[0].getTime()-1e3*t*3600*24,r=new Date(s),n=new Date(i);return`vs ${a.getFormattedMonthDate(r)} - ${a.getFormattedMonthDate(n)}`})():"";return e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"row"}},{children:["number"==typeof n&&e.jsx(g,{color:y,height:20,width:20,style:{marginRight:2}}),"number"==typeof n&&o&&e.jsxs(l.TitleSmall,Object.assign({style:{color:y}},{children:["neutral"===o?0:n,"%"]})),c&&e.jsx(l.Caption,Object.assign({style:{marginLeft:4,color:t.COLORS.content.placeholder}},{children:h}))]}))};exports.AnalyticsTrend=i=>{let{title:s,value:a,trendPercent:g,type:y="horizontal",timeline:h,customRange:u,tooltip:p,card:m=!0,rightSeparator:j=!1,size:v="big",share:b=!1,formatVal:x,prefixSymbol:O}=i;const f="big"===v?l.TitleLarge:l.TitleMedium,R=void 0!==g?g<0?"negative":0===g?"neutral":"positive":void 0,T=void 0!==g?b?Math.round(g):Math.abs(Math.round(g)):void 0;return e.jsx(c.AnalyticsTrendContainer,Object.assign({card:m},{children:e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:4,borderRightWidth:j?1:0,borderRightColor:t.COLORS.stroke.primary,borderRightStyle:"solid",paddingLeft:m?0:24,paddingRight:m?0:24,height:"100%"}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"}},{children:[e.jsx(l.BodySecondary,Object.assign({style:{color:t.COLORS.content.secondary}},{children:s})),p&&e.jsx(o.Tooltip,Object.assign({body:p,placement:"right",width:300},{children:e.jsx("div",Object.assign({style:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:e.jsx(r.default,{color:t.COLORS.content.inactive,height:16,width:16})}))}))]})),e.jsxs("div",Object.assign({style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},b?{justifyContent:"space-between"}:{})},{children:[e.jsx(f,Object.assign({style:{color:t.COLORS.content.primary}},{children:void 0===a?"--":"number"==typeof a&&x?`${null!=O?O:""}${new Intl.NumberFormat("en-IN",{}).format(a)}`:`${null!=O?O:""}${a}`})),"horizontal"===y&&!b&&e.jsx(d,{timeline:h,customRange:u,percent:T,direction:R}),b&&void 0!==T&&e.jsx(n.Tag,{tagText:`${T} %`,theme:"light",type:"neutral"})]})),"vertical"===y&&!b&&e.jsx("div",Object.assign({style:{marginTop:12}},{children:e.jsx(d,{timeline:h,customRange:u,percent:T,direction:R})}))]}))}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("../../assets/icons/Bik_logo.svg.js"),n=require("react"),s=require("../../constants/Theme.js"),t=require("./SidebarStyles.js"),a=require("./SimpleSidebar.js");const o=i=>{const{icon:n,isActive:t,activeStateIcon:a,hoverStateIcon:o,isHovered:l}=i,r=n,c=a,d=o;return e.jsx(e.Fragment,{children:t?e.jsx(c,{width:20,height:20}):l?e.jsx(d,{width:20,height:20,color:s.COLORS.surface.standard}):e.jsx(r,{width:20,height:20,color:s.COLORS.surface.standard})})};exports.BikSidebar=s=>{const{logoSvg:l,allMenuList:r,activeMainMenu:c,activeSubMenu:d,onClickingMainMenu:u,onClickingSubMenu:v,onClickingAccessUpgradePanel:h}=s,[m,g]=n.useState(c),[j,k]=n.useState(),[S,x]=n.useState(d);return n.useEffect((()=>{g(c)}),[c]),n.useEffect((()=>{x(d)}),[d]),e.jsxs(t.SideBarContainer,{children:[e.jsx("div",Object.assign({className:"bik-header-logo",onClick:()=>{},onKeyDown:()=>{},"aria-hidden":"true"},{children:l||e.jsx(i.default,{})})),e.jsx(t.SibeBarMenuItem,{children:null==r?void 0:r.map(((i,s)=>{var t,l,r;return e.jsxs(n.Fragment,{children:[e.jsx("div",Object.assign({className:"main--sidebar",onClick:()=>{var e;k(void 0),g(i),u(i),(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.length)?x(null==i?void 0:i.children[0]):x({})},onMouseOver:()=>{k(i)},onMouseEnter:()=>{k(i)},onMouseLeave:()=>{var e;!(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.length)&&k(void 0)},onFocus:()=>{console.log(";")},"aria-hidden":"true"},{children:e.jsxs("div",Object.assign({className:`sidebar-menu-item ${(null==m?void 0:m.key)==i.key?" main-menu-active-class":""} ${i.isLastSticky?"sticky-menu-int":""} ${i.is2ndLastSticky?"sticky-menu":""}\n ${i.key==(null==j?void 0:j.key)?"sidebar-menu-item-hover":""}`},{children:[e.jsx(o,{icon:i.icon,isActive:i.key==(null==m?void 0:m.key),activeStateIcon:null!==(t=i.activeIcon)&&void 0!==t?t:{},hoverStateIcon:null!==(l=i.hoverIcon)&&void 0!==l?l:{},isHovered:i.key==(null==j?void 0:j.key)}),e.jsx("div",Object.assign({className:"menu-item-container"},{children:e.jsx("p",Object.assign({className:"menu-item-text "+((null==i?void 0:i.key)===(null==m?void 0:m.key)?"active-menu-item-text":"")},{children:i.displayName}))}))]}),s)}),s),e.jsx(e.Fragment,{children:(null===(r=null==j?void 0:j.children)||void 0===r?void 0:r.length)&&e.jsx(a.SimpleSidebar,{menuList:null==j?void 0:j.children,activeMenu:S,onMouseLeaveOnMenu:()=>k(void 0),left:88,postion:"fixed",header:j.displayName,theme:"brand",showAccessUpgradePanel:j.showAccessUpgradePanel,onMenuClick:e=>{x(e),g(j),k(void 0),v(e)},onUpgrade:h})})]},s)}))})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("../../assets/icons/Bik_logo.svg.js"),n=require("react"),s=require("../../constants/Theme.js"),t=require("./SidebarStyles.js"),o=require("./SimpleSidebar.js");const a=i=>{const{icon:n,isActive:t,activeStateIcon:o,hoverStateIcon:a,isHovered:l}=i,r=n,d=o,c=a;return e.jsx(e.Fragment,{children:t?e.jsx(d,{width:20,height:20}):l?e.jsx(c,{width:20,height:20,color:s.COLORS.surface.standard}):e.jsx(r,{width:20,height:20,color:s.COLORS.surface.standard})})};exports.BikSidebar=s=>{const{logoSvg:l,allMenuList:r,activeMainMenu:d,activeSubMenu:c,onClickingMainMenu:u,onClickingSubMenu:v,onClickingAccessUpgradePanel:h}=s,[m,g]=n.useState(d),[j,k]=n.useState(),[S,x]=n.useState(c);return n.useEffect((()=>{g(d)}),[d]),n.useEffect((()=>{x(c)}),[c]),e.jsxs(t.SideBarContainer,{children:[e.jsx("div",Object.assign({className:"bik-header-logo",onClick:()=>{},onKeyDown:()=>{},"aria-hidden":"true"},{children:l||e.jsx(i.default,{})})),e.jsx(t.SibeBarMenuItem,{children:null==r?void 0:r.map(((i,s)=>{var t,l,r,d,c;return e.jsxs(n.Fragment,{children:[e.jsx("div",Object.assign({id:(null===(l=null===(t=i.displayName)||void 0===t?void 0:t.split(" "))||void 0===l?void 0:l.join(""))||i.key.toString(),className:"main--sidebar",onClick:()=>{var e;k(void 0),g(i),u(i),(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.length)?x(null==i?void 0:i.children[0]):x({})},onMouseOver:()=>{k(i)},onMouseEnter:()=>{k(i)},onMouseLeave:()=>{var e;!(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.length)&&k(void 0)},onFocus:()=>{console.log(";")},"aria-hidden":"true"},{children:e.jsxs("div",Object.assign({className:`sidebar-menu-item ${(null==m?void 0:m.key)==i.key?" main-menu-active-class":""} ${i.isLastSticky?"sticky-menu-int":""} ${i.is2ndLastSticky?"sticky-menu":""}\n ${i.key==(null==j?void 0:j.key)?"sidebar-menu-item-hover":""}`},{children:[e.jsx(a,{icon:i.icon,isActive:i.key==(null==m?void 0:m.key),activeStateIcon:null!==(r=i.activeIcon)&&void 0!==r?r:{},hoverStateIcon:null!==(d=i.hoverIcon)&&void 0!==d?d:{},isHovered:i.key==(null==j?void 0:j.key)}),e.jsx("div",Object.assign({className:"menu-item-container"},{children:e.jsx("p",Object.assign({className:"menu-item-text "+((null==i?void 0:i.key)===(null==m?void 0:m.key)?"active-menu-item-text":"")},{children:i.displayName}))}))]}),s)}),s),e.jsx(e.Fragment,{children:(null===(c=null==j?void 0:j.children)||void 0===c?void 0:c.length)&&e.jsx(o.SimpleSidebar,{menuList:null==j?void 0:j.children,activeMenu:S,onMouseLeaveOnMenu:()=>k(void 0),left:88,postion:"fixed",header:j.displayName,theme:"brand",showAccessUpgradePanel:j.showAccessUpgradePanel,onMenuClick:e=>{x(e),g(j),k(void 0),v(e)},onUpgrade:h})})]},s)}))})]})};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface CarouselProps {
3
3
  pages: Array<React.FunctionComponent<React.SVGAttributes<SVGElement>> | any>;
4
+ onComplete: () => void;
4
5
  }
5
6
  export declare const CarouselSecondary: React.FC<CarouselProps>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/chevronLeft.svg.js"),r=require("../../assets/icons/chevronRight.svg.js"),s=require("react"),n=require("../button/Button.js"),o=require("./CarouselSecondary.style.js");exports.CarouselSecondary=i=>{let{pages:u}=i;const[a,c]=s.useState(0),l=s.useRef(null);return s.useEffect((()=>{l.current&&l.current.scrollTo({left:l.current.offsetWidth*a,behavior:"smooth"})}),[a]),e.jsxs(o.CarouselContainer,{children:[e.jsx(o.CarouselBody,Object.assign({ref:l},{children:u.map(((t,r)=>e.jsx(o.CarouselPage,Object.assign({isActive:r===a},{children:t}),r)))})),e.jsxs(o.CarouselFooter,{children:[e.jsx(n.Button,{buttonText:"Back",buttonType:"tertiaryGray",onClick:()=>{c((e=>0===e?u.length-1:e-1))},size:"medium",LeadingIcon:t.default}),e.jsx(o.PageIndicator,{children:u.map(((t,r)=>e.jsx(o.Indicator,{isActive:r===a,onClick:()=>{c(r)}},r)))}),e.jsx(n.Button,{buttonText:"Next",buttonType:"tertiaryGray",onClick:()=>{c((e=>e===u.length-1?0:e+1))},size:"medium",TrailingIcon:r.default})]})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/chevronLeft.svg.js"),r=require("../../assets/icons/chevronRight.svg.js"),s=require("react"),n=require("../button/Button.js"),o=require("./CarouselSecondary.style.js");exports.CarouselSecondary=i=>{let{pages:a,onComplete:u}=i;const[c,l]=s.useState(0),d=s.useRef(null);return s.useEffect((()=>{d.current&&d.current.scrollTo({left:d.current.offsetWidth*c,behavior:"smooth"})}),[c]),e.jsxs(o.CarouselContainer,{children:[e.jsx(o.CarouselBody,Object.assign({ref:d},{children:a.map(((t,r)=>e.jsx(o.CarouselPage,Object.assign({isActive:r===c},{children:t}),r)))})),e.jsxs(o.CarouselFooter,{children:[e.jsx(n.Button,{buttonText:"Back",buttonType:"tertiaryGray",onClick:()=>{l((e=>0===e?e:e-1))},size:"medium",LeadingIcon:t.default,disabled:!c}),e.jsx(o.PageIndicator,{children:a.map(((t,r)=>e.jsx(o.Indicator,{isActive:r===c,onClick:()=>{l(r)}},r)))}),e.jsx(n.Button,{buttonText:c===a.length-1?"Get started":"Next",buttonType:"tertiaryGray",onClick:()=>{l((e=>e===a.length-1?e:e+1)),c===a.length-1&&u()},size:"medium",TrailingIcon:r.default})]})]})};
@@ -1,11 +1,11 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),o=require("./CurtainHelper.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const r=t(e).default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("./CurtainHelper.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const r=o(e).default.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
5
5
  padding: 8px 16px;
6
- background-color: ${e=>o.COLOR_CONFIG_MAP[e.mode][e.type].backgroundColor};
7
- border-top: ${e=>e.strokeAtTop?"1px solid "+o.COLOR_CONFIG_MAP[e.mode][e.type].strokeColor:0};
8
- border-bottom: ${e=>e.strokeAtBottom?"1px solid "+o.COLOR_CONFIG_MAP[e.mode][e.type].strokeColor:0};
6
+ background: ${e=>t.COLOR_CONFIG_MAP[e.mode][e.type].backgroundColor};
7
+ border-top: ${e=>e.strokeAtTop?"1px solid "+t.COLOR_CONFIG_MAP[e.mode][e.type].strokeColor:0};
8
+ border-bottom: ${e=>e.strokeAtBottom?"1px solid "+t.COLOR_CONFIG_MAP[e.mode][e.type].strokeColor:0};
9
9
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
10
10
  width: 100%;
11
11
  position: absolute;
@@ -3,7 +3,8 @@ export declare enum CURTAIN_TYPES {
3
3
  WARNING = "Warning",
4
4
  POSITIVE = "Positive",
5
5
  NEUTRAL = "Neutral",
6
- SPECIAL = "Special"
6
+ SPECIAL = "Special",
7
+ MANIFEST = "Manifest"
7
8
  }
8
9
  export declare enum CURTAIN_MODE {
9
10
  LIGHT = "LIGHT",
@@ -36,6 +37,11 @@ export declare const COLOR_CONFIG_MAP: {
36
37
  textColor: string;
37
38
  crossIconColor: string;
38
39
  };
40
+ Manifest: {
41
+ backgroundColor: string;
42
+ textColor: string;
43
+ crossIconColor: string;
44
+ };
39
45
  };
40
46
  LIGHT: {
41
47
  Negative: {
@@ -68,5 +74,10 @@ export declare const COLOR_CONFIG_MAP: {
68
74
  crossIconColor: string;
69
75
  strokeColor: string;
70
76
  };
77
+ Manifest: {
78
+ backgroundColor: string;
79
+ textColor: string;
80
+ crossIconColor: string;
81
+ };
71
82
  };
72
83
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o,r,t=require("../../constants/Theme.js");exports.CURTAIN_TYPES=void 0,(o=exports.CURTAIN_TYPES||(exports.CURTAIN_TYPES={})).NEGATIVE="Negative",o.WARNING="Warning",o.POSITIVE="Positive",o.NEUTRAL="Neutral",o.SPECIAL="Special",exports.CURTAIN_MODE=void 0,(r=exports.CURTAIN_MODE||(exports.CURTAIN_MODE={})).LIGHT="LIGHT",r.DARK="DARK";const e={[exports.CURTAIN_MODE.DARK]:{[exports.CURTAIN_TYPES.NEGATIVE]:{backgroundColor:t.COLORS.background.negative.vibrant,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard},[exports.CURTAIN_TYPES.WARNING]:{backgroundColor:t.COLORS.background.warning.vibrant,textColor:t.COLORS.content.primary,crossIconColor:t.COLORS.content.secondary},[exports.CURTAIN_TYPES.POSITIVE]:{backgroundColor:t.COLORS.background.positive.vibrant,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard},[exports.CURTAIN_TYPES.NEUTRAL]:{backgroundColor:t.COLORS.background.inverse,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard},[exports.CURTAIN_TYPES.SPECIAL]:{backgroundColor:t.COLORS.background.inverse,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard}},[exports.CURTAIN_MODE.LIGHT]:{[exports.CURTAIN_TYPES.NEGATIVE]:{backgroundColor:t.COLORS.background.negative.light,textColor:t.COLORS.content.negative,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.negative.lightAlt},[exports.CURTAIN_TYPES.WARNING]:{backgroundColor:t.COLORS.background.warning.light,textColor:t.COLORS.content.warning,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.warning.lightAlt},[exports.CURTAIN_TYPES.POSITIVE]:{backgroundColor:t.COLORS.background.positive.light,textColor:t.COLORS.content.positive,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.positive.lightAlt},[exports.CURTAIN_TYPES.NEUTRAL]:{backgroundColor:t.COLORS.surface.subdued,textColor:t.COLORS.content.secondary,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.primary},[exports.CURTAIN_TYPES.SPECIAL]:{backgroundColor:t.COLORS.background.brandLight,textColor:t.COLORS.content.primary,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.brandLightAlt}}};exports.COLOR_CONFIG_MAP=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o,r,t=require("../../constants/Theme.js");exports.CURTAIN_TYPES=void 0,(o=exports.CURTAIN_TYPES||(exports.CURTAIN_TYPES={})).NEGATIVE="Negative",o.WARNING="Warning",o.POSITIVE="Positive",o.NEUTRAL="Neutral",o.SPECIAL="Special",o.MANIFEST="Manifest",exports.CURTAIN_MODE=void 0,(r=exports.CURTAIN_MODE||(exports.CURTAIN_MODE={})).LIGHT="LIGHT",r.DARK="DARK";const e={[exports.CURTAIN_MODE.DARK]:{[exports.CURTAIN_TYPES.NEGATIVE]:{backgroundColor:t.COLORS.background.negative.vibrant,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard},[exports.CURTAIN_TYPES.WARNING]:{backgroundColor:t.COLORS.background.warning.vibrant,textColor:t.COLORS.content.primary,crossIconColor:t.COLORS.content.secondary},[exports.CURTAIN_TYPES.POSITIVE]:{backgroundColor:t.COLORS.background.positive.vibrant,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard},[exports.CURTAIN_TYPES.NEUTRAL]:{backgroundColor:t.COLORS.background.inverse,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard},[exports.CURTAIN_TYPES.SPECIAL]:{backgroundColor:t.COLORS.background.inverse,textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard},[exports.CURTAIN_TYPES.MANIFEST]:{backgroundColor:"linear-gradient(90.05deg, #743979 1.22%, #526DCA 99.95%)",textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard}},[exports.CURTAIN_MODE.LIGHT]:{[exports.CURTAIN_TYPES.NEGATIVE]:{backgroundColor:t.COLORS.background.negative.light,textColor:t.COLORS.content.negative,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.negative.lightAlt},[exports.CURTAIN_TYPES.WARNING]:{backgroundColor:t.COLORS.background.warning.light,textColor:t.COLORS.content.warning,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.warning.lightAlt},[exports.CURTAIN_TYPES.POSITIVE]:{backgroundColor:t.COLORS.background.positive.light,textColor:t.COLORS.content.positive,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.positive.lightAlt},[exports.CURTAIN_TYPES.NEUTRAL]:{backgroundColor:t.COLORS.surface.subdued,textColor:t.COLORS.content.secondary,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.primary},[exports.CURTAIN_TYPES.SPECIAL]:{backgroundColor:t.COLORS.background.brandLight,textColor:t.COLORS.content.primary,crossIconColor:t.COLORS.content.secondary,strokeColor:t.COLORS.stroke.brandLightAlt},[exports.CURTAIN_TYPES.MANIFEST]:{backgroundColor:"linear-gradient(90.05deg, #743979 1.22%, #526DCA 99.95%)",textColor:t.COLORS.surface.standard,crossIconColor:t.COLORS.surface.standard}}};exports.COLOR_CONFIG_MAP=e;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as i}from"../../constants/Theme.js";import r from"../../assets/icons/arrow_down.svg.js";import n from"../../assets/icons/arrow_up.svg.js";import o from"../../assets/icons/info.svg.js";import{Tag as s}from"../tag/Tag.js";import{getFormattedMonthDate as a}from"../template-context-mapper/utils/getFormattedMonthDate.js";import{Tooltip as l}from"../tooltips/Tooltip.js";import{BodySecondary as c,TitleSmall as d,Caption as g,TitleLarge as m,TitleMedium as p}from"../TypographyStyle.js";import{AnalyticsTrendContainer as h}from"./CommonStyles.js";const y=r=>{let{title:n,value:a,trendPercent:d,type:g="horizontal",timeline:y,customRange:v,tooltip:f,card:u=!0,rightSeparator:j=!1,size:x="big",share:w=!1,formatVal:O,prefixSymbol:R}=r;const T="big"===x?m:p,D=void 0!==d?d<0?"negative":0===d?"neutral":"positive":void 0,$=void 0!==d?w?Math.round(d):Math.abs(Math.round(d)):void 0;return e(h,Object.assign({card:u},{children:t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:4,borderRightWidth:j?1:0,borderRightColor:i.stroke.primary,borderRightStyle:"solid",paddingLeft:u?0:24,paddingRight:u?0:24,height:"100%"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"}},{children:[e(c,Object.assign({style:{color:i.content.secondary}},{children:n})),f&&e(l,Object.assign({body:f,placement:"right",width:300},{children:e("div",Object.assign({style:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:e(o,{color:i.content.inactive,height:16,width:16})}))}))]})),t("div",Object.assign({style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},w?{justifyContent:"space-between"}:{})},{children:[e(T,Object.assign({style:{color:i.content.primary}},{children:void 0===a?"--":"number"==typeof a&&O?`${null!=R?R:""}${new Intl.NumberFormat("en-IN",{}).format(a)}`:`${null!=R?R:""}${a}`})),"horizontal"===g&&!w&&e(b,{timeline:y,customRange:v,percent:$,direction:D}),w&&void 0!==$&&e(s,{tagText:`${$} %`,theme:"light",type:"neutral"})]})),"vertical"===g&&!w&&e("div",Object.assign({style:{marginTop:12}},{children:e(b,{timeline:y,customRange:v,percent:$,direction:D})}))]}))}))},b=o=>{let{percent:s,direction:l,timeline:c,customRange:m}=o;const p="negative"===l?r:n,h="negative"===l?i.background.negative.vibrant:"positive"===l?i.background.positive.vibrant:i.content.placeholder,y="today"===c?"vs yesterday":"yesterday"===c?"vs 1 day before":"7 days"===c?"vs last 7 days":"30 days"===c?"vs last 30 days":"custom"===c&&m?(()=>{if(!m)return"";const e=Math.abs(m[1].getTime()-m[0].getTime()),t=Math.ceil(e/864e5),i=m[0].getTime()-864e5,r=new Date(i-1e3*t*3600*24),n=new Date(i);return`vs ${a(r)} - ${a(n)}`})():"";return t("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"row"}},{children:["number"==typeof s&&e(p,{color:h,height:20,width:20,style:{marginRight:2}}),"number"==typeof s&&l&&t(d,Object.assign({style:{color:h}},{children:["neutral"===l?0:s,"%"]})),c&&e(g,Object.assign({style:{marginLeft:4,color:i.content.placeholder}},{children:y}))]}))};export{y as AnalyticsTrend};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as i}from"../../constants/Theme.js";import r from"../../assets/icons/arrow_down.svg.js";import n from"../../assets/icons/arrow_up.svg.js";import o from"../../assets/icons/info.svg.js";import{Tag as s}from"../tag/Tag.js";import{getFormattedMonthDate as a}from"../template-context-mapper/utils/getFormattedMonthDate.js";import{Tooltip as l}from"../tooltips/Tooltip.js";import{BodySecondary as c,TitleSmall as d,Caption as g,TitleLarge as m,TitleMedium as p}from"../TypographyStyle.js";import{AnalyticsTrendContainer as h}from"./CommonStyles.js";const y=r=>{let{title:n,value:a,trendPercent:d,type:g="horizontal",timeline:y,customRange:v,tooltip:f,card:u=!0,rightSeparator:j=!1,size:x="big",share:w=!1,formatVal:O,prefixSymbol:T}=r;const R="big"===x?m:p,D=void 0!==d?d<0?"negative":0===d?"neutral":"positive":void 0,$=void 0!==d?w?Math.round(d):Math.abs(Math.round(d)):void 0;return e(h,Object.assign({card:u},{children:t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:4,borderRightWidth:j?1:0,borderRightColor:i.stroke.primary,borderRightStyle:"solid",paddingLeft:u?0:24,paddingRight:u?0:24,height:"100%"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"}},{children:[e(c,Object.assign({style:{color:i.content.secondary}},{children:n})),f&&e(l,Object.assign({body:f,placement:"right",width:300},{children:e("div",Object.assign({style:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:e(o,{color:i.content.inactive,height:16,width:16})}))}))]})),t("div",Object.assign({style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},w?{justifyContent:"space-between"}:{})},{children:[e(R,Object.assign({style:{color:i.content.primary}},{children:void 0===a?"--":"number"==typeof a&&O?`${null!=T?T:""}${new Intl.NumberFormat("en-IN",{}).format(a)}`:`${null!=T?T:""}${a}`})),"horizontal"===g&&!w&&e(b,{timeline:y,customRange:v,percent:$,direction:D}),w&&void 0!==$&&e(s,{tagText:`${$} %`,theme:"light",type:"neutral"})]})),"vertical"===g&&!w&&e("div",Object.assign({style:{marginTop:12}},{children:e(b,{timeline:y,customRange:v,percent:$,direction:D})}))]}))}))},b=o=>{let{percent:s,direction:l,timeline:c,customRange:m}=o;const p="negative"===l?r:n,h="negative"===l?i.background.negative.vibrant:"positive"===l?i.background.positive.vibrant:i.content.placeholder,y="today"===c?"vs yesterday":"yesterday"===c?"vs 1 day before":"7 days"===c?"vs last 7 days":"30 days"===c?"vs last 30 days":"custom"===c&&m?(()=>{if(!m)return"";const e=Math.abs(m[1].getTime()-m[0].getTime()),t=Math.ceil(e/864e5),i=m[0].getTime()-864e5,r=m[0].getTime()-1e3*t*3600*24,n=new Date(r),o=new Date(i);return`vs ${a(n)} - ${a(o)}`})():"";return t("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"row"}},{children:["number"==typeof s&&e(p,{color:h,height:20,width:20,style:{marginRight:2}}),"number"==typeof s&&l&&t(d,Object.assign({style:{color:h}},{children:["neutral"===l?0:s,"%"]})),c&&e(g,Object.assign({style:{marginLeft:4,color:i.content.placeholder}},{children:y}))]}))};export{y as AnalyticsTrend};
@@ -1 +1 @@
1
- import{jsxs as e,jsx as i,Fragment as n}from"react/jsx-runtime";import o from"../../assets/icons/Bik_logo.svg.js";import{useState as l,useEffect as t,Fragment as a}from"react";import{COLORS as c}from"../../constants/Theme.js";import{SideBarContainer as s,SibeBarMenuItem as d}from"./SidebarStyles.js";import{SimpleSidebar as r}from"./SimpleSidebar.js";const v=c=>{const{logoSvg:v,allMenuList:m,activeMainMenu:h,activeSubMenu:g,onClickingMainMenu:k,onClickingSubMenu:y,onClickingAccessUpgradePanel:p}=c,[b,M]=l(h),[S,j]=l(),[f,N]=l(g);return t((()=>{M(h)}),[h]),t((()=>{N(g)}),[g]),e(s,{children:[i("div",Object.assign({className:"bik-header-logo",onClick:()=>{},onKeyDown:()=>{},"aria-hidden":"true"},{children:v||i(o,{})})),i(d,{children:null==m?void 0:m.map(((o,l)=>{var t,c,s;return e(a,{children:[i("div",Object.assign({className:"main--sidebar",onClick:()=>{var e;j(void 0),M(o),k(o),(null===(e=null==o?void 0:o.children)||void 0===e?void 0:e.length)?N(null==o?void 0:o.children[0]):N({})},onMouseOver:()=>{j(o)},onMouseEnter:()=>{j(o)},onMouseLeave:()=>{var e;!(null===(e=null==o?void 0:o.children)||void 0===e?void 0:e.length)&&j(void 0)},onFocus:()=>{console.log(";")},"aria-hidden":"true"},{children:e("div",Object.assign({className:`sidebar-menu-item ${(null==b?void 0:b.key)==o.key?" main-menu-active-class":""} ${o.isLastSticky?"sticky-menu-int":""} ${o.is2ndLastSticky?"sticky-menu":""}\n ${o.key==(null==S?void 0:S.key)?"sidebar-menu-item-hover":""}`},{children:[i(u,{icon:o.icon,isActive:o.key==(null==b?void 0:b.key),activeStateIcon:null!==(t=o.activeIcon)&&void 0!==t?t:{},hoverStateIcon:null!==(c=o.hoverIcon)&&void 0!==c?c:{},isHovered:o.key==(null==S?void 0:S.key)}),i("div",Object.assign({className:"menu-item-container"},{children:i("p",Object.assign({className:"menu-item-text "+((null==o?void 0:o.key)===(null==b?void 0:b.key)?"active-menu-item-text":"")},{children:o.displayName}))}))]}),l)}),l),i(n,{children:(null===(s=null==S?void 0:S.children)||void 0===s?void 0:s.length)&&i(r,{menuList:null==S?void 0:S.children,activeMenu:f,onMouseLeaveOnMenu:()=>j(void 0),left:88,postion:"fixed",header:S.displayName,theme:"brand",showAccessUpgradePanel:S.showAccessUpgradePanel,onMenuClick:e=>{N(e),M(S),j(void 0),y(e)},onUpgrade:p})})]},l)}))})]})},u=e=>{const{icon:o,isActive:l,activeStateIcon:t,hoverStateIcon:a,isHovered:s}=e,d=o,r=a;return i(n,{children:l?i(t,{width:20,height:20}):i(s?r:d,{width:20,height:20,color:c.surface.standard})})};export{v as BikSidebar};
1
+ import{jsxs as e,jsx as i,Fragment as n}from"react/jsx-runtime";import o from"../../assets/icons/Bik_logo.svg.js";import{useState as l,useEffect as t,Fragment as a}from"react";import{COLORS as d}from"../../constants/Theme.js";import{SideBarContainer as s,SibeBarMenuItem as c}from"./SidebarStyles.js";import{SimpleSidebar as r}from"./SimpleSidebar.js";const v=d=>{const{logoSvg:v,allMenuList:m,activeMainMenu:h,activeSubMenu:g,onClickingMainMenu:k,onClickingSubMenu:y,onClickingAccessUpgradePanel:p}=d,[b,M]=l(h),[S,j]=l(),[f,N]=l(g);return t((()=>{M(h)}),[h]),t((()=>{N(g)}),[g]),e(s,{children:[i("div",Object.assign({className:"bik-header-logo",onClick:()=>{},onKeyDown:()=>{},"aria-hidden":"true"},{children:v||i(o,{})})),i(c,{children:null==m?void 0:m.map(((o,l)=>{var t,d,s,c,v;return e(a,{children:[i("div",Object.assign({id:(null===(d=null===(t=o.displayName)||void 0===t?void 0:t.split(" "))||void 0===d?void 0:d.join(""))||o.key.toString(),className:"main--sidebar",onClick:()=>{var e;j(void 0),M(o),k(o),(null===(e=null==o?void 0:o.children)||void 0===e?void 0:e.length)?N(null==o?void 0:o.children[0]):N({})},onMouseOver:()=>{j(o)},onMouseEnter:()=>{j(o)},onMouseLeave:()=>{var e;!(null===(e=null==o?void 0:o.children)||void 0===e?void 0:e.length)&&j(void 0)},onFocus:()=>{console.log(";")},"aria-hidden":"true"},{children:e("div",Object.assign({className:`sidebar-menu-item ${(null==b?void 0:b.key)==o.key?" main-menu-active-class":""} ${o.isLastSticky?"sticky-menu-int":""} ${o.is2ndLastSticky?"sticky-menu":""}\n ${o.key==(null==S?void 0:S.key)?"sidebar-menu-item-hover":""}`},{children:[i(u,{icon:o.icon,isActive:o.key==(null==b?void 0:b.key),activeStateIcon:null!==(s=o.activeIcon)&&void 0!==s?s:{},hoverStateIcon:null!==(c=o.hoverIcon)&&void 0!==c?c:{},isHovered:o.key==(null==S?void 0:S.key)}),i("div",Object.assign({className:"menu-item-container"},{children:i("p",Object.assign({className:"menu-item-text "+((null==o?void 0:o.key)===(null==b?void 0:b.key)?"active-menu-item-text":"")},{children:o.displayName}))}))]}),l)}),l),i(n,{children:(null===(v=null==S?void 0:S.children)||void 0===v?void 0:v.length)&&i(r,{menuList:null==S?void 0:S.children,activeMenu:f,onMouseLeaveOnMenu:()=>j(void 0),left:88,postion:"fixed",header:S.displayName,theme:"brand",showAccessUpgradePanel:S.showAccessUpgradePanel,onMenuClick:e=>{N(e),M(S),j(void 0),y(e)},onUpgrade:p})})]},l)}))})]})},u=e=>{const{icon:o,isActive:l,activeStateIcon:t,hoverStateIcon:a,isHovered:s}=e,c=o,r=a;return i(n,{children:l?i(t,{width:20,height:20}):i(s?r:c,{width:20,height:20,color:d.surface.standard})})};export{v as BikSidebar};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface CarouselProps {
3
3
  pages: Array<React.FunctionComponent<React.SVGAttributes<SVGElement>> | any>;
4
+ onComplete: () => void;
4
5
  }
5
6
  export declare const CarouselSecondary: React.FC<CarouselProps>;
@@ -1 +1 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"../../assets/icons/chevronLeft.svg.js";import o from"../../assets/icons/chevronRight.svg.js";import{useState as i,useRef as n,useEffect as s}from"react";import{Button as c}from"../button/Button.js";import{CarouselContainer as m,CarouselBody as a,CarouselPage as l,CarouselFooter as u,PageIndicator as h,Indicator as p}from"./CarouselSecondary.style.js";const f=f=>{let{pages:d}=f;const[g,b]=i(0),y=n(null);return s((()=>{y.current&&y.current.scrollTo({left:y.current.offsetWidth*g,behavior:"smooth"})}),[g]),t(m,{children:[e(a,Object.assign({ref:y},{children:d.map(((t,r)=>e(l,Object.assign({isActive:r===g},{children:t}),r)))})),t(u,{children:[e(c,{buttonText:"Back",buttonType:"tertiaryGray",onClick:()=>{b((t=>0===t?d.length-1:t-1))},size:"medium",LeadingIcon:r}),e(h,{children:d.map(((t,r)=>e(p,{isActive:r===g,onClick:()=>{b(r)}},r)))}),e(c,{buttonText:"Next",buttonType:"tertiaryGray",onClick:()=>{b((t=>t===d.length-1?0:t+1))},size:"medium",TrailingIcon:o})]})]})};export{f as CarouselSecondary};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"../../assets/icons/chevronLeft.svg.js";import o from"../../assets/icons/chevronRight.svg.js";import{useState as n,useRef as i,useEffect as s}from"react";import{Button as c}from"../button/Button.js";import{CarouselContainer as l,CarouselBody as a,CarouselPage as m,CarouselFooter as u,PageIndicator as h,Indicator as d}from"./CarouselSecondary.style.js";const p=p=>{let{pages:f,onComplete:g}=p;const[b,y]=n(0),j=i(null);return s((()=>{j.current&&j.current.scrollTo({left:j.current.offsetWidth*b,behavior:"smooth"})}),[b]),t(l,{children:[e(a,Object.assign({ref:j},{children:f.map(((t,r)=>e(m,Object.assign({isActive:r===b},{children:t}),r)))})),t(u,{children:[e(c,{buttonText:"Back",buttonType:"tertiaryGray",onClick:()=>{y((t=>0===t?t:t-1))},size:"medium",LeadingIcon:r,disabled:!b}),e(h,{children:f.map(((t,r)=>e(d,{isActive:r===b,onClick:()=>{y(r)}},r)))}),e(c,{buttonText:b===f.length-1?"Get started":"Next",buttonType:"tertiaryGray",onClick:()=>{y((t=>t===f.length-1?t:t+1)),b===f.length-1&&g()},size:"medium",TrailingIcon:o})]})]})};export{p as CarouselSecondary};
@@ -3,7 +3,7 @@ import o from"styled-components";import{COLOR_CONFIG_MAP as t}from"./CurtainHelp
3
3
  justify-content: center;
4
4
  align-items: center;
5
5
  padding: 8px 16px;
6
- background-color: ${o=>t[o.mode][o.type].backgroundColor};
6
+ background: ${o=>t[o.mode][o.type].backgroundColor};
7
7
  border-top: ${o=>o.strokeAtTop?"1px solid "+t[o.mode][o.type].strokeColor:0};
8
8
  border-bottom: ${o=>o.strokeAtBottom?"1px solid "+t[o.mode][o.type].strokeColor:0};
9
9
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
@@ -3,7 +3,8 @@ export declare enum CURTAIN_TYPES {
3
3
  WARNING = "Warning",
4
4
  POSITIVE = "Positive",
5
5
  NEUTRAL = "Neutral",
6
- SPECIAL = "Special"
6
+ SPECIAL = "Special",
7
+ MANIFEST = "Manifest"
7
8
  }
8
9
  export declare enum CURTAIN_MODE {
9
10
  LIGHT = "LIGHT",
@@ -36,6 +37,11 @@ export declare const COLOR_CONFIG_MAP: {
36
37
  textColor: string;
37
38
  crossIconColor: string;
38
39
  };
40
+ Manifest: {
41
+ backgroundColor: string;
42
+ textColor: string;
43
+ crossIconColor: string;
44
+ };
39
45
  };
40
46
  LIGHT: {
41
47
  Negative: {
@@ -68,5 +74,10 @@ export declare const COLOR_CONFIG_MAP: {
68
74
  crossIconColor: string;
69
75
  strokeColor: string;
70
76
  };
77
+ Manifest: {
78
+ backgroundColor: string;
79
+ textColor: string;
80
+ crossIconColor: string;
81
+ };
71
82
  };
72
83
  };
@@ -1 +1 @@
1
- import{COLORS as o}from"../../constants/Theme.js";var r,n;!function(o){o.NEGATIVE="Negative",o.WARNING="Warning",o.POSITIVE="Positive",o.NEUTRAL="Neutral",o.SPECIAL="Special"}(r||(r={})),function(o){o.LIGHT="LIGHT",o.DARK="DARK"}(n||(n={}));const t={[n.DARK]:{[r.NEGATIVE]:{backgroundColor:o.background.negative.vibrant,textColor:o.surface.standard,crossIconColor:o.surface.standard},[r.WARNING]:{backgroundColor:o.background.warning.vibrant,textColor:o.content.primary,crossIconColor:o.content.secondary},[r.POSITIVE]:{backgroundColor:o.background.positive.vibrant,textColor:o.surface.standard,crossIconColor:o.surface.standard},[r.NEUTRAL]:{backgroundColor:o.background.inverse,textColor:o.surface.standard,crossIconColor:o.surface.standard},[r.SPECIAL]:{backgroundColor:o.background.inverse,textColor:o.surface.standard,crossIconColor:o.surface.standard}},[n.LIGHT]:{[r.NEGATIVE]:{backgroundColor:o.background.negative.light,textColor:o.content.negative,crossIconColor:o.content.secondary,strokeColor:o.stroke.negative.lightAlt},[r.WARNING]:{backgroundColor:o.background.warning.light,textColor:o.content.warning,crossIconColor:o.content.secondary,strokeColor:o.stroke.warning.lightAlt},[r.POSITIVE]:{backgroundColor:o.background.positive.light,textColor:o.content.positive,crossIconColor:o.content.secondary,strokeColor:o.stroke.positive.lightAlt},[r.NEUTRAL]:{backgroundColor:o.surface.subdued,textColor:o.content.secondary,crossIconColor:o.content.secondary,strokeColor:o.stroke.primary},[r.SPECIAL]:{backgroundColor:o.background.brandLight,textColor:o.content.primary,crossIconColor:o.content.secondary,strokeColor:o.stroke.brandLightAlt}}};export{t as COLOR_CONFIG_MAP,n as CURTAIN_MODE,r as CURTAIN_TYPES};
1
+ import{COLORS as o}from"../../constants/Theme.js";var r,n;!function(o){o.NEGATIVE="Negative",o.WARNING="Warning",o.POSITIVE="Positive",o.NEUTRAL="Neutral",o.SPECIAL="Special",o.MANIFEST="Manifest"}(r||(r={})),function(o){o.LIGHT="LIGHT",o.DARK="DARK"}(n||(n={}));const t={[n.DARK]:{[r.NEGATIVE]:{backgroundColor:o.background.negative.vibrant,textColor:o.surface.standard,crossIconColor:o.surface.standard},[r.WARNING]:{backgroundColor:o.background.warning.vibrant,textColor:o.content.primary,crossIconColor:o.content.secondary},[r.POSITIVE]:{backgroundColor:o.background.positive.vibrant,textColor:o.surface.standard,crossIconColor:o.surface.standard},[r.NEUTRAL]:{backgroundColor:o.background.inverse,textColor:o.surface.standard,crossIconColor:o.surface.standard},[r.SPECIAL]:{backgroundColor:o.background.inverse,textColor:o.surface.standard,crossIconColor:o.surface.standard},[r.MANIFEST]:{backgroundColor:"linear-gradient(90.05deg, #743979 1.22%, #526DCA 99.95%)",textColor:o.surface.standard,crossIconColor:o.surface.standard}},[n.LIGHT]:{[r.NEGATIVE]:{backgroundColor:o.background.negative.light,textColor:o.content.negative,crossIconColor:o.content.secondary,strokeColor:o.stroke.negative.lightAlt},[r.WARNING]:{backgroundColor:o.background.warning.light,textColor:o.content.warning,crossIconColor:o.content.secondary,strokeColor:o.stroke.warning.lightAlt},[r.POSITIVE]:{backgroundColor:o.background.positive.light,textColor:o.content.positive,crossIconColor:o.content.secondary,strokeColor:o.stroke.positive.lightAlt},[r.NEUTRAL]:{backgroundColor:o.surface.subdued,textColor:o.content.secondary,crossIconColor:o.content.secondary,strokeColor:o.stroke.primary},[r.SPECIAL]:{backgroundColor:o.background.brandLight,textColor:o.content.primary,crossIconColor:o.content.secondary,strokeColor:o.stroke.brandLightAlt},[r.MANIFEST]:{backgroundColor:"linear-gradient(90.05deg, #743979 1.22%, #526DCA 99.95%)",textColor:o.surface.standard,crossIconColor:o.surface.standard}}};export{t as COLOR_CONFIG_MAP,n as CURTAIN_MODE,r as CURTAIN_TYPES};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.163",
3
+ "version": "0.0.165",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",