@bikdotai/bik-component-library 0.0.440-2 → 0.0.440-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/alert.svg.js"),s=require("../../constants/Theme.js"),n=require("../modals/styledModal.js"),l=require("../TypographyStyle.js"),r=require("./AccessTokenTroubleshootDialog.styles.js");const o=t=>{let{info:s,hideBullet:n,last:o}=t;return e.jsxs(r.EachStep,Object.assign({last:o},{children:[!n&&e.jsx(r.BulletWrapper,{children:e.jsx(r.Bullet,{})}),e.jsx(l.BodyCaption,{
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/alert.svg.js"),s=require("../../constants/Theme.js"),n=require("../modals/styledModal.js"),l=require("../TypographyStyle.js"),r=require("./AccessTokenTroubleshootDialog.styles.js");const o=t=>{let{info:s,hideBullet:n,last:o}=t;return e.jsxs(r.EachStep,Object.assign({last:o},{children:[!n&&e.jsx(r.BulletWrapper,{children:e.jsx(r.Bullet,{})}),e.jsx(l.BodyCaption,{dangerouslySetInnerHTML:{__html:s}})]}))};exports.AccessTokenTroubleshootDialog=i=>{let{onCancel:a,titleIconContainerStyles:c,isModalOpen:d,title:h,desc:j,primaryButton:u,TitleIcon:y,stepsDetails:x,titleIconColor:p,content:g}=i;return e.jsxs(n.StyledModal,Object.assign({open:!!d,primaryButton:u?Object.assign({},u):void 0,secondaryButton:{buttonText:"Cancel",onClick:a,buttonType:"tertiaryGray"},onClose:a},{children:[e.jsxs(r.Header,{children:[e.jsx(r.IconContainer,Object.assign({style:Object.assign({},c)},{children:y?e.jsx(y,{width:18,height:18,color:p}):e.jsx(t.default,{width:18,height:18,color:s.COLORS.content.negative})})),e.jsx(l.TitleMedium,{children:h})]}),e.jsx(r.Description,{children:e.jsx(l.BodySecondary,{dangerouslySetInnerHTML:{__html:j}})}),e.jsxs(r.StepsContainer,{children:[x&&!!x.length&&e.jsxs(e.Fragment,{children:[e.jsx(l.TitleSmall,{children:"Follow the steps:"}),x.map(((t,s)=>e.jsx(o,{info:t.info,hideBullet:t.hideBullet,last:x.length-1===s},s)))]}),g&&e.jsx(l.BodySecondary,{dangerouslySetInnerHTML:{__html:g}})]})]}))};
|
package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e,Fragment as n}from"react/jsx-runtime";import o from"../../assets/icons/alert.svg.js";import{COLORS as l}from"../../constants/Theme.js";import{StyledModal as r}from"../modals/styledModal.js";import{TitleMedium as
|
|
1
|
+
import{jsxs as t,jsx as e,Fragment as n}from"react/jsx-runtime";import o from"../../assets/icons/alert.svg.js";import{COLORS as l}from"../../constants/Theme.js";import{StyledModal as r}from"../modals/styledModal.js";import{TitleMedium as s,BodySecondary as i,TitleSmall as c,BodyCaption as a}from"../TypographyStyle.js";import{Header as h,IconContainer as d,Description as m,StepsContainer as p,EachStep as g,BulletWrapper as y,Bullet as u}from"./AccessTokenTroubleshootDialog.styles.js";const j=n=>{let{info:o,hideBullet:l,last:r}=n;return t(g,Object.assign({last:r},{children:[!l&&e(y,{children:e(u,{})}),e(a,{dangerouslySetInnerHTML:{__html:o}})]}))},T=a=>{let{onCancel:g,titleIconContainerStyles:y,isModalOpen:u,title:T,desc:f,primaryButton:b,TitleIcon:B,stepsDetails:C,titleIconColor:I,content:O}=a;return t(r,Object.assign({open:!!u,primaryButton:b?Object.assign({},b):void 0,secondaryButton:{buttonText:"Cancel",onClick:g,buttonType:"tertiaryGray"},onClose:g},{children:[t(h,{children:[e(d,Object.assign({style:Object.assign({},y)},{children:B?e(B,{width:18,height:18,color:I}):e(o,{width:18,height:18,color:l.content.negative})})),e(s,{children:T})]}),e(m,{children:e(i,{dangerouslySetInnerHTML:{__html:f}})}),t(p,{children:[C&&!!C.length&&t(n,{children:[e(c,{children:"Follow the steps:"}),C.map(((t,n)=>e(j,{info:t.info,hideBullet:t.hideBullet,last:C.length-1===n},n)))]}),O&&e(i,{dangerouslySetInnerHTML:{__html:O}})]})]}))};export{T as AccessTokenTroubleshootDialog};
|