@bikdotai/bik-component-library 0.0.275-beta.1 → 0.0.276
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/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
- package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +1 -0
- package/dist/cjs/components/modals/Modal.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.d.ts +0 -1
- package/dist/cjs/components/side-modal/SideModal.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.style.d.ts +1 -3
- package/dist/cjs/components/side-modal/SideModal.style.js +1 -1
- package/dist/cjs/components/stepper/WorkingStepper.d.ts +1 -0
- package/dist/cjs/components/toaster/Toaster.js +1 -1
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
- package/dist/esm/components/bik-layout/FeatureModal.js +1 -1
- package/dist/esm/components/bik-layout/MockMenus.d.ts +1 -0
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/side-modal/SideModal.d.ts +0 -1
- package/dist/esm/components/side-modal/SideModal.js +1 -1
- package/dist/esm/components/side-modal/SideModal.style.d.ts +1 -3
- package/dist/esm/components/side-modal/SideModal.style.js +16 -16
- package/dist/esm/components/stepper/WorkingStepper.d.ts +1 -0
- package/dist/esm/components/toaster/Toaster.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as s}from"react/jsx-runtime";import{COLORS as o}from"../../constants/Theme.js";import n from"../../assets/icons/cross.svg.js";import{Button as i}from"../button/Button.js";import{TitleMedium as r,BodyPrimary as a}from"../TypographyStyle.js";import{FeatureModalContainer as c,InnerModalContainer as l}from"./CommonStyles.js";const d=d=>{const{zIndex:m,disableCross:u=!1,otherContent:h,onClickingCross:p,onUpgrade:b,title:g,subTitle:j,showBookADemo:f,demoLink:y}=d,k=g||"Upgrade to access this feature",C=j||"This feature is not included in the current plan. Upgrade to get access and use this feature.";return e(c,Object.assign({zIndex:m},{children:[!u&&t("div",Object.assign({className:"cross-button",onClick:()=>p(),"aria-hidden":"true"},{children:t(n,{height:20,width:20,color:o.surface.subdued})})),t(l,{children:h?t(s,{children:h}):e("div",Object.assign({className:"content-layout"},{children:[e("div",{children:[t(r,Object.assign({className:"title-color"},{children:k})),t(a,Object.assign({className:"title-color mt-8"},{children:C}))]}),e("div",Object.assign({className:"cta-buttons"},{children:[f&&t(i,{buttonText:"Book a demo",buttonType:"secondary",size:"large",inverse:!0,onClick:()=>{window.open(y,"_blank")}}),t(i,{buttonText:"Upgrade plan",buttonType:"primary",size:"large",inverse:!0,onClick:()=>b?b():""})]}))]}))})]}))};export{d as FeatureModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,Fragment as n,jsxs as s}from"react/jsx-runtime";import{RootContainer as e,CentralContainer as t,CloseButtonContainer as i}from"./modal.styled.js";import{COLORS as r}from"../../constants/Theme.js";import l from"../../assets/icons/cross.svg.js";const c=c=>{var d;return o(n,{children:c.open&&o(e,Object.assign({zIndex:c.zIndex||
|
|
1
|
+
import{jsx as o,Fragment as n,jsxs as s}from"react/jsx-runtime";import{RootContainer as e,CentralContainer as t,CloseButtonContainer as i}from"./modal.styled.js";import{COLORS as r}from"../../constants/Theme.js";import l from"../../assets/icons/cross.svg.js";const c=c=>{var d;return o(n,{children:c.open&&o(e,Object.assign({zIndex:c.zIndex||1,onClick:o=>{c.closeOnOutsideClick&&c.onClose?c.onClose():o.stopPropagation()}},{children:o(t,Object.assign({style:Object.assign({},null!==(d=c.centralContainerStyles)&&void 0!==d?d:{}),onClick:o=>{o.stopPropagation()},width:c.width},{children:s(n,{children:[!(null==c?void 0:c.hideCrossButton)&&o(i,Object.assign({onClick:()=>c.onClose&&c.onClose()},{children:o(l,{height:20,width:20,color:r.content.secondary})})),c.children]})}))}))})};export{c as Modal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import
|
|
1
|
+
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import i from"../../assets/icons/cross.svg.js";import{Button as n}from"../button/Button.js";import{TitleMedium as s}from"../TypographyStyle.js";import{SideModalStyle as c,SideModalContainer as m,SideModalHeader as d,SideModalBody as l,SideModalFooter as a,FooterButtonWrapper as h}from"./SideModal.style.js";const p=p=>r.createPortal(o(c,{children:t(m,{children:[t(d,{children:[o(s,{children:p.header}),!p.hideCrossButton&&o(i,{width:24,height:24,onClick:p.onClose})]}),o(l,{children:p.children}),t(a,Object.assign({footerDirection:p.footerDirection},{children:[t(h,Object.assign({footerDirection:p.footerDirection},{children:[o(n,Object.assign({},p.saveButtonProps)),o(n,Object.assign({},p.cancelButtonProps))]})),p.footerCustomComponent?p.footerCustomComponent:o(e,{})]}))]})}),document.body);export{p as SideModal};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export declare const SideModalStyle: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
-
zIndex?: number | undefined;
|
|
3
|
-
}, never>;
|
|
1
|
+
export declare const SideModalStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
2
|
export declare const SideModalContainer: import("styled-components").StyledComponent<"div", any, {
|
|
5
3
|
width?: string | undefined;
|
|
6
4
|
}, never>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from"styled-components";import{COLORS as t}from"../../constants/Theme.js";const e=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
5
|
-
z-index:
|
|
5
|
+
z-index: 11;
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
8
|
background-color: rgba(0, 0, 0, 0.4);
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: flex-end;
|
|
12
|
-
`,o=
|
|
12
|
+
`,o=i.div`
|
|
13
13
|
height: 100%;
|
|
14
|
-
width: ${
|
|
15
|
-
background: ${
|
|
14
|
+
width: ${i=>i.width||"566px"};
|
|
15
|
+
background: ${t.surface.standard};
|
|
16
16
|
position: relative;
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
19
|
-
`,r=
|
|
19
|
+
`,r=i.div`
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 60px;
|
|
22
22
|
position: sticky;
|
|
@@ -25,30 +25,30 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
25
25
|
flex-direction: row;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: space-between;
|
|
28
|
-
background: ${
|
|
28
|
+
background: ${t.surface.standard};
|
|
29
29
|
padding: 0px 24px;
|
|
30
|
-
border-bottom: 1px solid ${
|
|
30
|
+
border-bottom: 1px solid ${t.stroke.primary};
|
|
31
31
|
svg:hover {
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
34
|
-
`,d=
|
|
34
|
+
`,d=i.div`
|
|
35
35
|
overflow-y: auto;
|
|
36
36
|
padding: 24px;
|
|
37
37
|
height: calc(100% - 120px);
|
|
38
|
-
`,n=
|
|
38
|
+
`,n=i.div`
|
|
39
39
|
height: 60px;
|
|
40
40
|
width: 100%;
|
|
41
41
|
position: sticky;
|
|
42
42
|
bottom: 0;
|
|
43
43
|
display: flex;
|
|
44
|
-
flex-direction: ${
|
|
44
|
+
flex-direction: ${i=>i.footerDirection||"row"};
|
|
45
45
|
justify-content: space-between;
|
|
46
46
|
align-items: center;
|
|
47
|
-
background: ${
|
|
48
|
-
border-top: 1px solid ${
|
|
47
|
+
background: ${t.surface.standard};
|
|
48
|
+
border-top: 1px solid ${t.stroke.primary};
|
|
49
49
|
padding: 0px 24px;
|
|
50
|
-
`,p=
|
|
50
|
+
`,p=i.div`
|
|
51
51
|
display: flex;
|
|
52
|
-
flex-direction: ${
|
|
52
|
+
flex-direction: ${i=>i.footerDirection||"row"};
|
|
53
53
|
gap: 8px;
|
|
54
|
-
`;export{p as FooterButtonWrapper,d as SideModalBody,o as SideModalContainer,n as SideModalFooter,r as SideModalHeader,
|
|
54
|
+
`;export{p as FooterButtonWrapper,d as SideModalBody,o as SideModalContainer,n as SideModalFooter,r as SideModalHeader,e as SideModalStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as o,jsxs as e}from"react/jsx-runtime";import n from"../../assets/icons/cross.svg.js";import{useEffect as i}from"react";import
|
|
1
|
+
import{jsx as t,Fragment as o,jsxs as e}from"react/jsx-runtime";import n from"../../assets/icons/cross.svg.js";import{useEffect as i}from"react";import{ToastContainer as s,toast as r}from"react-toastify";import{ToasterStyled as l}from"./Toaster.styled.js";import{BodyPrimary as u,ButtonRegular as a}from"../TypographyStyle.js";import{COLORS as c}from"../../constants/Theme.js";const d=o=>{const e="default"===o.type?c.content.secondary:c.content.secondaryInverse;return t("div",Object.assign({tabIndex:0,role:"button",style:{width:20,display:"flex",margin:"auto",cursor:"pointer"},onClick:o.closeToast,onKeyDown:t=>{"Enter"===t.key&&o.closeToast()}},{children:t(n,{height:20,width:20,color:e})}))},h=n=>{const i="default"===n.type?c.stroke.primary:"success"===n.type?c.background.positive.vibrant:"error"===n.type?c.background.negative.vibrant:"warning"===n.type?c.background.warning.vibrant:c.background.inverseLight;return t(o,{children:e("div",Object.assign({style:{display:"flex",flexGrow:1,borderRight:n.hideCloseButton?"unset":`1px solid ${i}`}},{children:[t("div",Object.assign({style:{flexGrow:1,marginRight:n.showButton?16:n.hideCloseButton?0:12}},{children:t(u,Object.assign({color:"inherit"},{children:n.toastText}))})),n.showButton&&t(a,Object.assign({style:{marginRight:n.hideCloseButton?0:12,marginTop:"auto",marginBottom:"auto",display:"flex",cursor:"pointer"},onClick:n.onButtonClick,color:"default"===n.type?c.content.brand:"inherit"},{children:n.buttonText}))]}))})},p=o=>(i((()=>{var e,n,i,s,l,u;void 0!==o.hideLeftIcon||o.leftIcon?r(t(h,{toastText:o.text,type:o.type||"info",buttonText:null===(e=o.buttonProps)||void 0===e?void 0:e.buttonText,showButton:null===(n=o.buttonProps)||void 0===n?void 0:n.showButton,onButtonClick:null===(i=o.buttonProps)||void 0===i?void 0:i.onButtonClick,hideCloseButton:o.hideCloseButton}),{onClose:o.onCloseToast?o.onCloseToast:()=>({}),icon:t=>!1!==o.hideLeftIcon&&(o.leftIcon?o.leftIcon:null),type:o.type,closeButton:!o.hideCloseButton&&t(d,{type:o.type||"default"})}):r(t(h,{toastText:o.text,type:o.type||"info",buttonText:null===(s=o.buttonProps)||void 0===s?void 0:s.buttonText,showButton:null===(l=o.buttonProps)||void 0===l?void 0:l.showButton,onButtonClick:null===(u=o.buttonProps)||void 0===u?void 0:u.onButtonClick,hideCloseButton:o.hideCloseButton}),{onClose:o.onCloseToast?o.onCloseToast:()=>({}),type:o.type,closeButton:!o.hideCloseButton&&t(d,{type:o.type||"info"})})}),[]),t(l,Object.assign({width:o.width,height:o.height},{children:t(s,{position:o.position||"top-right",closeOnClick:o.closeOnClick||!1,hideProgressBar:o.hideProgressBar||!1,draggable:!1,autoClose:o.autoClose||!1,theme:"colored"})})));export{p as Toaster};
|