@bikdotai/bik-component-library 0.0.721 → 0.0.723

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.
@@ -1,11 +1,10 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/react/jsx-runtime.js"),t=require("react"),s=require("styled-components"),a=require("../../../assets/icons/Idea.svg.js"),i=require("../../../assets/icons/AiEdit.svg.js"),r=require("../../../assets/icons/HelpIcon.svg.js"),n=require("../../../constants/Theme.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(t);const d=o(s).default.div`
2
- background: linear-gradient(135deg, #FEF4F6 0%, #ffffff 100%);
3
- border: 1px solid ${e=>`${e.accent}33`};
4
- padding: 16px 18px 20px;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/react/jsx-runtime.js"),t=require("react"),s=require("styled-components"),a=require("../../../assets/icons/Idea.svg.js"),i=require("../../../assets/icons/AiEdit.svg.js"),r=require("../../../assets/icons/HelpIcon.svg.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=n(s).default.div`
2
+ background: linear-gradient(92.69deg, rgba(255, 230, 238, 0.5) 0.37%, rgba(255, 240, 231, 0.5) 100%);
3
+ padding: 24px;
5
4
  border-radius: 16px;
6
5
  border-bottom-left-radius: 6px;
7
6
  width: clamp(260px, 70vw, 340px);
8
- min-height: 140px;
7
+ min-height: 108px;
9
8
  margin-right: auto;
10
9
  font-size: 14px;
11
10
  color: #1f2937;
@@ -62,9 +61,9 @@
62
61
  }
63
62
 
64
63
  .shimmer-line {
65
- height: 6px;
66
- border-radius: 999px;
67
- background: ${n.COLORS.stroke.ai.lightAlt};
64
+ height: 10px;
65
+ border-radius: 20px;
66
+ background: linear-gradient(92.69deg, #FEBAD2 0.37%, #FDD1B9 100%);
68
67
  position: relative;
69
68
  overflow: hidden;
70
69
  animation: shimmerAppear 0.4s ease forwards;
@@ -145,4 +144,4 @@
145
144
  transform: translateY(0);
146
145
  }
147
146
  }
148
- `,c=[{icon:a.default,text:"Analyzing your questions...",gradient:"linear-gradient(135deg, #f97316 0%, #fb5f08 100%)",accent:"#fb5f08"},{icon:i.default,text:"Gathering insights...",gradient:"linear-gradient(135deg, #3b82f6 0%, #2563eb 100%)",accent:"#2563eb"},{icon:r.default,text:"Crafting the perfect response...",gradient:"linear-gradient(135deg, #f97316 0%, #fb5f08 100%)",accent:"#fb5f08"}];exports.default=()=>{const[s,a]=t.useState(0);t.useEffect((()=>{const e=window.setInterval((()=>{a((e=>(e+1)%c.length))}),1800);return()=>window.clearInterval(e)}),[]);const i=c[s];return e.jsxRuntimeExports.jsxs(d,Object.assign({gradient:i.gradient,accent:i.accent,role:"status","aria-live":"polite"},{children:[l.default.createElement(i.icon,{className:"icon-svg",width:24,height:24}),e.jsxRuntimeExports.jsxs("div",Object.assign({className:"bubble-content"},{children:[e.jsxRuntimeExports.jsx("div",Object.assign({className:"status-text"},{children:i.text})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"dots"},{children:[0,1,2,3,4].map((t=>e.jsxRuntimeExports.jsx("span",{className:"dot",style:{animationDelay:.15*t+"s"}},t)))})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"shimmer-group"},{children:[60,80,45].map(((t,s)=>e.jsxRuntimeExports.jsx("div",Object.assign({className:"shimmer-line",style:{width:`${t}%`,animationDelay:.25+.12*s+"s"}},{children:e.jsxRuntimeExports.jsx("span",{className:"shimmer-highlight"})}),t)))}))]}))]}))};
147
+ `,l=[{icon:a.default,text:"Analyzing your questions..."},{icon:i.default,text:"Gathering insights..."},{icon:r.default,text:"Crafting the perfect response..."}];exports.default=()=>{const[s,a]=t.useState(0);t.useEffect((()=>{const e=window.setInterval((()=>{a((e=>(e+1)%l.length))}),1800);return()=>window.clearInterval(e)}),[]);const i=l[s];return e.jsxRuntimeExports.jsxs(o,Object.assign({role:"status","aria-live":"polite"},{children:[e.jsxRuntimeExports.jsx(i.icon,{height:24,width:24}),e.jsxRuntimeExports.jsxs("div",Object.assign({className:"bubble-content"},{children:[e.jsxRuntimeExports.jsx("div",Object.assign({className:"status-text"},{children:i.text})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"dots"},{children:[0,1,2,3,4].map((t=>e.jsxRuntimeExports.jsx("span",{className:"dot",style:{animationDelay:.15*t+"s"}},t)))})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"shimmer-group"},{children:[70,85,50].map(((t,s)=>e.jsxRuntimeExports.jsx("div",Object.assign({className:"shimmer-line",style:{width:`${t}%`,animationDelay:.25+.12*s+"s"}},{children:e.jsxRuntimeExports.jsx("span",{className:"shimmer-highlight"})}),t)))}))]}))]}))};
@@ -22,6 +22,7 @@ export type StateComponentProps = {
22
22
  states: StateInterface;
23
23
  heading: string;
24
24
  subline: string;
25
+ errorText?: string;
25
26
  icon?: JSX.Element;
26
27
  isButtonEnabled: boolean;
27
28
  type?: ButtonTypes;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e,s,n=require("../../node_modules/react/jsx-runtime.js"),r=require("../../constants/Theme.js"),o=require("../../assets/icons/errorIcon.svg.js"),i=require("../../assets/icons/retryIcon.svg.js"),a=require("../../assets/icons/successIcon.svg.js"),x=require("../../assets/icons/warningIcon.svg.js"),c=require("../../assets/icons/state_icon.svg.js"),u=require("../button/Button.js"),p=require("../spinner/Spinner.js"),j=require("../TypographyStyle.js"),d=require("./StateComponent.styled.js");exports.StateInterface=void 0,(t=exports.StateInterface||(exports.StateInterface={})).SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.LOADING="loading",t.RETRY="retry",t.INFO="info",exports.ButtonActions=void 0,(e=exports.ButtonActions||(exports.ButtonActions={})).CANCEL="cancel",e.OTHER="other",exports.ButtonTypes=void 0,(s=exports.ButtonTypes||(exports.ButtonTypes={})).SINGLE="SINGLE",s.DOUBLE="DOUBLE";exports.StateComponent=t=>{var e;const s=()=>l==exports.StateInterface.SUCCESS?n.jsxRuntimeExports.jsx(a.default,{}):l==exports.StateInterface.WARNING?n.jsxRuntimeExports.jsx(x.default,{}):l==exports.StateInterface.ERROR?n.jsxRuntimeExports.jsx(o.default,{}):l===exports.StateInterface.LOADING?n.jsxRuntimeExports.jsx(p.Spinner,{size:"large"}):l===exports.StateInterface.RETRY?n.jsxRuntimeExports.jsx(i.default,{}):l==exports.StateInterface.INFO?n.jsxRuntimeExports.jsx(c.default,{}):void 0,{states:l,heading:R,subline:m,icon:E=s(),isButtonEnabled:S,type:h,buttonText:g,buttonType:y,onButtonClick:I,leadingIcon:B,width:O,headerImage:L,iconWidth:T,iconHeight:C,closeButtonType:b,secondaryButtonText:f,"data-test":A}=t;return n.jsxRuntimeExports.jsxs(d.StateComponentContainer,Object.assign({width:O,"data-test":A},{children:[n.jsxRuntimeExports.jsx(d.StateIcon,Object.assign({iconWidth:T,iconHeight:C},{children:L?n.jsxRuntimeExports.jsx("img",{src:L,width:"100%",height:"auto",alt:""}):E})),n.jsxRuntimeExports.jsxs(d.StateHeading,Object.assign({size:t.size},{children:["SMALL"===t.size&&n.jsxRuntimeExports.jsx(j.TitleRegular,{children:R}),"SMALL"!==t.size&&n.jsxRuntimeExports.jsx(j.TitleMedium,{children:R})]})),n.jsxRuntimeExports.jsxs(d.StateSubline,{children:["SMALL"!==t.size&&n.jsxRuntimeExports.jsx(j.BodyPrimary,Object.assign({color:r.COLORS.content.secondary},{children:m})),"SMALL"===t.size&&n.jsxRuntimeExports.jsx(j.BodySecondary,Object.assign({color:r.COLORS.content.secondary},{children:m}))]}),null!==(e=t.children)&&void 0!==e?e:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),S&&n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:n.jsxRuntimeExports.jsxs(d.ButtonContainer,Object.assign({size:t.size},{children:[h==exports.ButtonTypes.DOUBLE&&n.jsxRuntimeExports.jsx(u.Button,{"data-test":`${A}-cancel`,onClick:()=>I&&I(exports.ButtonActions.CANCEL),buttonType:b||"secondary",buttonText:f||"Cancel",matchParentWidth:!0}),n.jsxRuntimeExports.jsx(u.Button,{"data-test":`${A}-primary`,onClick:()=>I&&I(exports.ButtonActions.OTHER),buttonType:null!=y?y:"primary",LeadingIcon:B,buttonText:null!=g?g:"Retry",matchParentWidth:!0})]}))})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e,s,n=require("../../node_modules/react/jsx-runtime.js"),r=require("../../constants/Theme.js"),o=require("../../assets/icons/errorIcon.svg.js"),i=require("../../assets/icons/retryIcon.svg.js"),a=require("../../assets/icons/state_icon.svg.js"),x=require("../../assets/icons/successIcon.svg.js"),c=require("../../assets/icons/warningIcon.svg.js"),u=require("../button/Button.js"),p=require("../spinner/Spinner.js"),j=require("../TypographyStyle.js"),d=require("./StateComponent.styled.js");exports.StateInterface=void 0,(t=exports.StateInterface||(exports.StateInterface={})).SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.LOADING="loading",t.RETRY="retry",t.INFO="info",exports.ButtonActions=void 0,(e=exports.ButtonActions||(exports.ButtonActions={})).CANCEL="cancel",e.OTHER="other",exports.ButtonTypes=void 0,(s=exports.ButtonTypes||(exports.ButtonTypes={})).SINGLE="SINGLE",s.DOUBLE="DOUBLE";exports.StateComponent=t=>{var e;const s=()=>l==exports.StateInterface.SUCCESS?n.jsxRuntimeExports.jsx(x.default,{}):l==exports.StateInterface.WARNING?n.jsxRuntimeExports.jsx(c.default,{}):l==exports.StateInterface.ERROR?n.jsxRuntimeExports.jsx(o.default,{}):l===exports.StateInterface.LOADING?n.jsxRuntimeExports.jsx(p.Spinner,{size:"large"}):l===exports.StateInterface.RETRY?n.jsxRuntimeExports.jsx(i.default,{}):l==exports.StateInterface.INFO?n.jsxRuntimeExports.jsx(a.default,{}):void 0,{states:l,heading:R,subline:m,errorText:E,icon:S=s(),isButtonEnabled:g,type:h,buttonText:y,buttonType:I,onButtonClick:O,leadingIcon:B,width:T,headerImage:L,iconWidth:C,iconHeight:b,closeButtonType:f,secondaryButtonText:A,"data-test":v}=t;return n.jsxRuntimeExports.jsxs(d.StateComponentContainer,Object.assign({width:T,"data-test":v},{children:[n.jsxRuntimeExports.jsx(d.StateIcon,Object.assign({iconWidth:C,iconHeight:b},{children:L?n.jsxRuntimeExports.jsx("img",{src:L,width:"100%",height:"auto",alt:""}):S})),n.jsxRuntimeExports.jsxs(d.StateHeading,Object.assign({size:t.size},{children:["SMALL"===t.size&&n.jsxRuntimeExports.jsx(j.TitleRegular,{children:R}),"SMALL"!==t.size&&n.jsxRuntimeExports.jsx(j.TitleMedium,{children:R})]})),n.jsxRuntimeExports.jsxs(d.StateSubline,{children:["SMALL"!==t.size&&n.jsxRuntimeExports.jsx(j.BodyPrimary,Object.assign({color:r.COLORS.content.secondary},{children:m})),"SMALL"===t.size&&n.jsxRuntimeExports.jsx(j.BodySecondary,Object.assign({color:r.COLORS.content.secondary},{children:m})),E&&n.jsxRuntimeExports.jsx(j.BodySecondary,Object.assign({color:r.COLORS.content.negative,style:{marginTop:8,whiteSpace:"pre-line"}},{children:E}))]}),null!==(e=t.children)&&void 0!==e?e:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),g&&n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:n.jsxRuntimeExports.jsxs(d.ButtonContainer,Object.assign({size:t.size},{children:[h==exports.ButtonTypes.DOUBLE&&n.jsxRuntimeExports.jsx(u.Button,{"data-test":`${v}-cancel`,onClick:()=>O&&O(exports.ButtonActions.CANCEL),buttonType:f||"secondary",buttonText:A||"Cancel",matchParentWidth:!0}),n.jsxRuntimeExports.jsx(u.Button,{"data-test":`${v}-primary`,onClick:()=>O&&O(exports.ButtonActions.OTHER),buttonType:null!=I?I:"primary",LeadingIcon:B,buttonText:null!=y?y:"Retry",matchParentWidth:!0})]}))})]}))};
@@ -1,11 +1,10 @@
1
- import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t,{useState as a,useEffect as s}from"react";import i from"styled-components";import r from"../../../assets/icons/Idea.svg.js";import n from"../../../assets/icons/AiEdit.svg.js";import o from"../../../assets/icons/HelpIcon.svg.js";import{COLORS as l}from"../../../constants/Theme.js";const m=i.div`
2
- background: linear-gradient(135deg, #FEF4F6 0%, #ffffff 100%);
3
- border: 1px solid ${e=>`${e.accent}33`};
4
- padding: 16px 18px 20px;
1
+ import{j as e}from"../../../node_modules/react/jsx-runtime.js";import{useState as t,useEffect as s}from"react";import a from"styled-components";import i from"../../../assets/icons/Idea.svg.js";import r from"../../../assets/icons/AiEdit.svg.js";import n from"../../../assets/icons/HelpIcon.svg.js";const o=a.div`
2
+ background: linear-gradient(92.69deg, rgba(255, 230, 238, 0.5) 0.37%, rgba(255, 240, 231, 0.5) 100%);
3
+ padding: 24px;
5
4
  border-radius: 16px;
6
5
  border-bottom-left-radius: 6px;
7
6
  width: clamp(260px, 70vw, 340px);
8
- min-height: 140px;
7
+ min-height: 108px;
9
8
  margin-right: auto;
10
9
  font-size: 14px;
11
10
  color: #1f2937;
@@ -62,9 +61,9 @@ import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t,{useStat
62
61
  }
63
62
 
64
63
  .shimmer-line {
65
- height: 6px;
66
- border-radius: 999px;
67
- background: ${l.stroke.ai.lightAlt};
64
+ height: 10px;
65
+ border-radius: 20px;
66
+ background: linear-gradient(92.69deg, #FEBAD2 0.37%, #FDD1B9 100%);
68
67
  position: relative;
69
68
  overflow: hidden;
70
69
  animation: shimmerAppear 0.4s ease forwards;
@@ -145,4 +144,4 @@ import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t,{useStat
145
144
  transform: translateY(0);
146
145
  }
147
146
  }
148
- `,c=[{icon:r,text:"Analyzing your questions...",gradient:"linear-gradient(135deg, #f97316 0%, #fb5f08 100%)",accent:"#fb5f08"},{icon:n,text:"Gathering insights...",gradient:"linear-gradient(135deg, #3b82f6 0%, #2563eb 100%)",accent:"#2563eb"},{icon:o,text:"Crafting the perfect response...",gradient:"linear-gradient(135deg, #f97316 0%, #fb5f08 100%)",accent:"#fb5f08"}],d=()=>{const[i,r]=a(0);s((()=>{const e=window.setInterval((()=>{r((e=>(e+1)%c.length))}),1800);return()=>window.clearInterval(e)}),[]);const n=c[i];return e.jsxs(m,Object.assign({gradient:n.gradient,accent:n.accent,role:"status","aria-live":"polite"},{children:[t.createElement(n.icon,{className:"icon-svg",width:24,height:24}),e.jsxs("div",Object.assign({className:"bubble-content"},{children:[e.jsx("div",Object.assign({className:"status-text"},{children:n.text})),e.jsx("div",Object.assign({className:"dots"},{children:[0,1,2,3,4].map((t=>e.jsx("span",{className:"dot",style:{animationDelay:.15*t+"s"}},t)))})),e.jsx("div",Object.assign({className:"shimmer-group"},{children:[60,80,45].map(((t,a)=>e.jsx("div",Object.assign({className:"shimmer-line",style:{width:`${t}%`,animationDelay:.25+.12*a+"s"}},{children:e.jsx("span",{className:"shimmer-highlight"})}),t)))}))]}))]}))};export{d as default};
147
+ `,l=[{icon:i,text:"Analyzing your questions..."},{icon:r,text:"Gathering insights..."},{icon:n,text:"Crafting the perfect response..."}],m=()=>{const[a,i]=t(0);s((()=>{const e=window.setInterval((()=>{i((e=>(e+1)%l.length))}),1800);return()=>window.clearInterval(e)}),[]);const r=l[a];return e.jsxs(o,Object.assign({role:"status","aria-live":"polite"},{children:[e.jsx(r.icon,{height:24,width:24}),e.jsxs("div",Object.assign({className:"bubble-content"},{children:[e.jsx("div",Object.assign({className:"status-text"},{children:r.text})),e.jsx("div",Object.assign({className:"dots"},{children:[0,1,2,3,4].map((t=>e.jsx("span",{className:"dot",style:{animationDelay:.15*t+"s"}},t)))})),e.jsx("div",Object.assign({className:"shimmer-group"},{children:[70,85,50].map(((t,s)=>e.jsx("div",Object.assign({className:"shimmer-line",style:{width:`${t}%`,animationDelay:.25+.12*s+"s"}},{children:e.jsx("span",{className:"shimmer-highlight"})}),t)))}))]}))]}))};export{m as default};
@@ -22,6 +22,7 @@ export type StateComponentProps = {
22
22
  states: StateInterface;
23
23
  heading: string;
24
24
  subline: string;
25
+ errorText?: string;
25
26
  icon?: JSX.Element;
26
27
  isButtonEnabled: boolean;
27
28
  type?: ButtonTypes;
@@ -1 +1 @@
1
- import{j as s}from"../../node_modules/react/jsx-runtime.js";import{COLORS as t}from"../../constants/Theme.js";import n from"../../assets/icons/errorIcon.svg.js";import e from"../../assets/icons/retryIcon.svg.js";import o from"../../assets/icons/successIcon.svg.js";import i from"../../assets/icons/warningIcon.svg.js";import r from"../../assets/icons/state_icon.svg.js";import{Button as c}from"../button/Button.js";import{Spinner as a}from"../spinner/Spinner.js";import{TitleRegular as j,TitleMedium as d,BodyPrimary as l,BodySecondary as m}from"../TypographyStyle.js";import{StateComponentContainer as h,StateIcon as g,StateHeading as x,StateSubline as u,ButtonContainer as p}from"./StateComponent.styled.js";var y,L,O;!function(s){s.SUCCESS="success",s.ERROR="error",s.WARNING="warning",s.LOADING="loading",s.RETRY="retry",s.INFO="info"}(y||(y={})),function(s){s.CANCEL="cancel",s.OTHER="other"}(L||(L={})),function(s){s.SINGLE="SINGLE",s.DOUBLE="DOUBLE"}(O||(O={}));const E=E=>{var b;const f=()=>I==y.SUCCESS?s.jsx(o,{}):I==y.WARNING?s.jsx(i,{}):I==y.ERROR?s.jsx(n,{}):I===y.LOADING?s.jsx(a,{size:"large"}):I===y.RETRY?s.jsx(e,{}):I==y.INFO?s.jsx(r,{}):void 0,{states:I,heading:R,subline:S,icon:T=f(),isButtonEnabled:C,type:N,buttonText:A,buttonType:v,onButtonClick:z,leadingIcon:B,width:G,headerImage:W,iconWidth:w,iconHeight:D,closeButtonType:U,secondaryButtonText:F,"data-test":H}=E;return s.jsxs(h,Object.assign({width:G,"data-test":H},{children:[s.jsx(g,Object.assign({iconWidth:w,iconHeight:D},{children:W?s.jsx("img",{src:W,width:"100%",height:"auto",alt:""}):T})),s.jsxs(x,Object.assign({size:E.size},{children:["SMALL"===E.size&&s.jsx(j,{children:R}),"SMALL"!==E.size&&s.jsx(d,{children:R})]})),s.jsxs(u,{children:["SMALL"!==E.size&&s.jsx(l,Object.assign({color:t.content.secondary},{children:S})),"SMALL"===E.size&&s.jsx(m,Object.assign({color:t.content.secondary},{children:S}))]}),null!==(b=E.children)&&void 0!==b?b:s.jsx(s.Fragment,{}),C&&s.jsx(s.Fragment,{children:s.jsxs(p,Object.assign({size:E.size},{children:[N==O.DOUBLE&&s.jsx(c,{"data-test":`${H}-cancel`,onClick:()=>z&&z(L.CANCEL),buttonType:U||"secondary",buttonText:F||"Cancel",matchParentWidth:!0}),s.jsx(c,{"data-test":`${H}-primary`,onClick:()=>z&&z(L.OTHER),buttonType:null!=v?v:"primary",LeadingIcon:B,buttonText:null!=A?A:"Retry",matchParentWidth:!0})]}))})]}))};export{L as ButtonActions,O as ButtonTypes,E as StateComponent,y as StateInterface};
1
+ import{j as t}from"../../node_modules/react/jsx-runtime.js";import{COLORS as s}from"../../constants/Theme.js";import e from"../../assets/icons/errorIcon.svg.js";import n from"../../assets/icons/retryIcon.svg.js";import o from"../../assets/icons/state_icon.svg.js";import i from"../../assets/icons/successIcon.svg.js";import r from"../../assets/icons/warningIcon.svg.js";import{Button as c}from"../button/Button.js";import{Spinner as a}from"../spinner/Spinner.js";import{TitleRegular as j,TitleMedium as l,BodyPrimary as d,BodySecondary as m}from"../TypographyStyle.js";import{StateComponentContainer as h,StateIcon as g,StateHeading as x,StateSubline as p,ButtonContainer as u}from"./StateComponent.styled.js";var y,L,O;!function(t){t.SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.LOADING="loading",t.RETRY="retry",t.INFO="info"}(y||(y={})),function(t){t.CANCEL="cancel",t.OTHER="other"}(L||(L={})),function(t){t.SINGLE="SINGLE",t.DOUBLE="DOUBLE"}(O||(O={}));const b=b=>{var E;const S=()=>T==y.SUCCESS?t.jsx(i,{}):T==y.WARNING?t.jsx(r,{}):T==y.ERROR?t.jsx(e,{}):T===y.LOADING?t.jsx(a,{size:"large"}):T===y.RETRY?t.jsx(n,{}):T==y.INFO?t.jsx(o,{}):void 0,{states:T,heading:f,subline:I,errorText:R,icon:C=S(),isButtonEnabled:N,type:v,buttonText:A,buttonType:z,onButtonClick:B,leadingIcon:w,width:G,headerImage:W,iconWidth:D,iconHeight:U,closeButtonType:F,secondaryButtonText:H,"data-test":M}=b;return t.jsxs(h,Object.assign({width:G,"data-test":M},{children:[t.jsx(g,Object.assign({iconWidth:D,iconHeight:U},{children:W?t.jsx("img",{src:W,width:"100%",height:"auto",alt:""}):C})),t.jsxs(x,Object.assign({size:b.size},{children:["SMALL"===b.size&&t.jsx(j,{children:f}),"SMALL"!==b.size&&t.jsx(l,{children:f})]})),t.jsxs(p,{children:["SMALL"!==b.size&&t.jsx(d,Object.assign({color:s.content.secondary},{children:I})),"SMALL"===b.size&&t.jsx(m,Object.assign({color:s.content.secondary},{children:I})),R&&t.jsx(m,Object.assign({color:s.content.negative,style:{marginTop:8,whiteSpace:"pre-line"}},{children:R}))]}),null!==(E=b.children)&&void 0!==E?E:t.jsx(t.Fragment,{}),N&&t.jsx(t.Fragment,{children:t.jsxs(u,Object.assign({size:b.size},{children:[v==O.DOUBLE&&t.jsx(c,{"data-test":`${M}-cancel`,onClick:()=>B&&B(L.CANCEL),buttonType:F||"secondary",buttonText:H||"Cancel",matchParentWidth:!0}),t.jsx(c,{"data-test":`${M}-primary`,onClick:()=>B&&B(L.OTHER),buttonType:null!=z?z:"primary",LeadingIcon:w,buttonText:null!=A?A:"Retry",matchParentWidth:!0})]}))})]}))};export{L as ButtonActions,O as ButtonTypes,b as StateComponent,y as StateInterface};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.721",
3
+ "version": "0.0.723",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",