@bikdotai/bik-component-library 0.0.105 → 0.0.107
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/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/components/accordion/Accordion.d.ts +10 -0
- package/dist/cjs/components/accordion/Accordion.style.d.ts +6 -0
- package/dist/cjs/components/accordion/Accordion.style.js +28 -0
- package/dist/cjs/components/accordion/AccordionArrow.d.ts +3 -0
- package/dist/cjs/components/accordion/AccordionArrow.js +1 -0
- package/dist/cjs/components/accordion/index.d.ts +1 -0
- package/dist/cjs/components/colourInput/ColourInput.d.ts +8 -0
- package/dist/cjs/components/colourInput/ColourInput.js +1 -0
- package/dist/cjs/components/colourInput/ColourInput.styled.d.ts +9 -0
- package/dist/cjs/components/colourInput/ColourInput.styled.js +1 -0
- package/dist/cjs/components/colourInput/index.d.ts +1 -0
- package/dist/cjs/components/file-uploader/FileUploader.d.ts +4 -0
- package/dist/cjs/components/file-uploader/FileUploaderStyle.d.ts +7 -0
- package/dist/cjs/components/file-uploader/FileUploaderStyle.js +166 -0
- package/dist/cjs/components/file-uploader/Models.d.ts +34 -0
- package/dist/cjs/components/file-uploader/index.d.ts +1 -0
- package/dist/cjs/components/file-uploader/useMockUrlUpload.d.ts +8 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/lodash.debounce/index.js +1 -0
- package/dist/esm/_virtual/_commonjsHelpers.js +1 -0
- package/dist/esm/components/accordion/Accordion.d.ts +10 -0
- package/dist/esm/components/accordion/Accordion.style.d.ts +6 -0
- package/dist/esm/components/accordion/Accordion.style.js +28 -0
- package/dist/esm/components/accordion/AccordionArrow.d.ts +3 -0
- package/dist/esm/components/accordion/AccordionArrow.js +1 -0
- package/dist/esm/components/accordion/index.d.ts +1 -0
- package/dist/esm/components/colourInput/ColourInput.d.ts +8 -0
- package/dist/esm/components/colourInput/ColourInput.js +1 -0
- package/dist/esm/components/colourInput/ColourInput.styled.d.ts +9 -0
- package/dist/esm/components/colourInput/ColourInput.styled.js +1 -0
- package/dist/esm/components/colourInput/index.d.ts +1 -0
- package/dist/esm/components/file-uploader/FileUploader.d.ts +4 -0
- package/dist/esm/components/file-uploader/FileUploaderStyle.d.ts +7 -0
- package/dist/esm/components/file-uploader/FileUploaderStyle.js +166 -0
- package/dist/esm/components/file-uploader/Models.d.ts +34 -0
- package/dist/esm/components/file-uploader/index.d.ts +1 -0
- package/dist/esm/components/file-uploader/useMockUrlUpload.d.ts +8 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/lodash.debounce/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};exports.commonjsGlobal=e;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface AccordionProps {
|
|
3
|
+
header: string;
|
|
4
|
+
caption: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
width?: string;
|
|
7
|
+
contentMargin?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const BikAccordion: React.FC<AccordionProps>;
|
|
10
|
+
export default BikAccordion;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";var e=require("styled-components"),i=require("../../constants/Theme.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}n(e).default.div`
|
|
2
|
+
width: ${e=>(null==e?void 0:e.width)||"100%"};
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
.accordion {
|
|
6
|
+
&__overview {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 4px;
|
|
10
|
+
padding: 24px;
|
|
11
|
+
&__header {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
}
|
|
17
|
+
:hover {
|
|
18
|
+
background: ${i.COLORS.surface.subdued};
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&__content {
|
|
23
|
+
${e=>e.isActive?{margin:(null==e?void 0:e.contentMargin)||"0px"}:{}};
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
max-height: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const t=r(require("react")).default.forwardRef(((r,t)=>e.jsx("div",Object.assign({ref:t,className:"d-flex align-items-center"},{children:e.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M7.7071 10.7071C7.07713 10.0771 7.5233 9 8.41421 9H15.5858C16.4767 9 16.9228 10.0771 16.2929 10.7071L12.7071 14.2929C12.3166 14.6834 11.6834 14.6834 11.2929 14.2929L7.7071 10.7071Z",fill:"currentColor"})}))}))));t.displayName="BikAccordionArrow",exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Accordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../node_modules/lodash.debounce/index.js"),o=require("react"),t=require("./ColourInput.styled.js"),n=require("../TypographyStyle.js"),s=require("../../constants/Theme.js");exports.ColourInput=l=>{const u=o.useCallback(r.default((e=>{l.onValueChange(e)}),100),[]);return e.jsxs("div",Object.assign({className:"buttonColorCustom"},{children:[l.headingText&&e.jsx(n.BodySecondary,{children:l.headingText}),e.jsxs(t.ColorInputContainer,{children:[e.jsx("div",Object.assign({style:{fontWeight:400,fontSize:16,lineHeight:24,color:s.DEFAULT_THEME.colorsV2.content.primary}},{children:"Colour"})),e.jsx(t.StyledColorInput,{type:"color",onChange:e=>{u(e.target.value)},value:l.value})]})]}))};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ColorInputContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const StyledColorInput: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),e=require("../../constants/Theme.js");function t(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}var d=t(c);const l=d.default("div","production"===process.env.NODE_ENV?{target:"e1n3hesw1"}:{target:"e1n3hesw1",label:"ColorInputContainer"})("margin-top:8px;display:flex;min-height:unset;flex-direction:row;align-items:center;padding:20px 18px;flex:1;gap:16px;width:100%;height:48px;background:",e.DEFAULT_THEME.colorsV2.surface.standard,";border:1px solid ",e.DEFAULT_THEME.colorsV2.stroke.primary,";border-radius:4px;justify-content:space-between;"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbG91cklucHV0LnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRThDIiwiZmlsZSI6IkNvbG91cklucHV0LnN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCB7IERFRkFVTFRfVEhFTUUgfSBmcm9tIFwiLi4vLi4vY29uc3RhbnRzL1RoZW1lXCI7XHJcbmV4cG9ydCBjb25zdCBDb2xvcklucHV0Q29udGFpbmVyID0gc3R5bGVkLmRpdiBgXG5cdG1hcmdpbi10b3A6IDhweDtcblx0ZGlzcGxheTogZmxleDtcblx0bWluLWhlaWdodDogdW5zZXQ7XG5cdGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cdHBhZGRpbmc6IDIwcHggMThweDtcblx0ZmxleDogMTtcblx0Z2FwOiAxNnB4O1xuXHR3aWR0aDogMTAwJTtcblx0aGVpZ2h0OiA0OHB4O1xuXHRiYWNrZ3JvdW5kOiAke0RFRkFVTFRfVEhFTUUuY29sb3JzVjIuc3VyZmFjZS5zdGFuZGFyZH07XG5cdGJvcmRlcjogMXB4IHNvbGlkICR7REVGQVVMVF9USEVNRS5jb2xvcnNWMi5zdHJva2UucHJpbWFyeX07XG5cdGJvcmRlci1yYWRpdXM6IDRweDtcblx0anVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuYDtcclxuZXhwb3J0IGNvbnN0IFN0eWxlZENvbG9ySW5wdXQgPSBzdHlsZWQuaW5wdXQgYFxuXHRwYWRkaW5nOiAwO1xuXHRib3JkZXI6ICNlMGUwZTAgMXB4IHNvbGlkO1xuXHR3aWR0aDogMzJweDtcblx0aGVpZ2h0OiAzMnB4O1xuXHRib3JkZXItcmFkaXVzOiA1MCU7XG5cdG92ZXJmbG93OiBoaWRkZW47XG5cdCY6aG92ZXIge1xuXHRcdGN1cnNvcjogcG9pbnRlcjtcblx0fVxuXHQ6Oi13ZWJraXQtY29sb3Itc3dhdGNoIHtcblx0XHRib3JkZXItY29sb3I6IHRyYW5zcGFyZW50O1xuXHR9XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1Db2xvdXJJbnB1dC5zdHlsZWQuanMubWFwIl19 */")),b=d.default("input","production"===process.env.NODE_ENV?{target:"e1n3hesw0"}:{target:"e1n3hesw0",label:"StyledColorInput"})("production"===process.env.NODE_ENV?{name:"18k7jrl",styles:"padding:0;border:#e0e0e0 1px solid;width:32px;height:32px;border-radius:50%;overflow:hidden;&:hover{cursor:pointer;}::-webkit-color-swatch{border-color:transparent;}"}:{name:"18k7jrl",styles:"padding:0;border:#e0e0e0 1px solid;width:32px;height:32px;border-radius:50%;overflow:hidden;&:hover{cursor:pointer;}::-webkit-color-swatch{border-color:transparent;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbG91cklucHV0LnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0I2QyIsImZpbGUiOiJDb2xvdXJJbnB1dC5zdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5pbXBvcnQgeyBERUZBVUxUX1RIRU1FIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5leHBvcnQgY29uc3QgQ29sb3JJbnB1dENvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRtYXJnaW4tdG9wOiA4cHg7XG5cdGRpc3BsYXk6IGZsZXg7XG5cdG1pbi1oZWlnaHQ6IHVuc2V0O1xuXHRmbGV4LWRpcmVjdGlvbjogcm93O1xuXHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRwYWRkaW5nOiAyMHB4IDE4cHg7XG5cdGZsZXg6IDE7XG5cdGdhcDogMTZweDtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogNDhweDtcblx0YmFja2dyb3VuZDogJHtERUZBVUxUX1RIRU1FLmNvbG9yc1YyLnN1cmZhY2Uuc3RhbmRhcmR9O1xuXHRib3JkZXI6IDFweCBzb2xpZCAke0RFRkFVTFRfVEhFTUUuY29sb3JzVjIuc3Ryb2tlLnByaW1hcnl9O1xuXHRib3JkZXItcmFkaXVzOiA0cHg7XG5cdGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbmA7XHJcbmV4cG9ydCBjb25zdCBTdHlsZWRDb2xvcklucHV0ID0gc3R5bGVkLmlucHV0IGBcblx0cGFkZGluZzogMDtcblx0Ym9yZGVyOiAjZTBlMGUwIDFweCBzb2xpZDtcblx0d2lkdGg6IDMycHg7XG5cdGhlaWdodDogMzJweDtcblx0Ym9yZGVyLXJhZGl1czogNTAlO1xuXHRvdmVyZmxvdzogaGlkZGVuO1xuXHQmOmhvdmVyIHtcblx0XHRjdXJzb3I6IHBvaW50ZXI7XG5cdH1cblx0Ojotd2Via2l0LWNvbG9yLXN3YXRjaCB7XG5cdFx0Ym9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDtcblx0fVxuYDtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Q29sb3VySW5wdXQuc3R5bGVkLmpzLm1hcCJdfQ== */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}});exports.ColorInputContainer=l,exports.StyledColorInput=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ColourInput';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const FileUploaderStyle: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
showProgressBar: boolean;
|
|
3
|
+
width?: string | undefined;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const FileUploadedStyle: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
width?: string | undefined;
|
|
7
|
+
}, never>;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";var e=require("styled-components"),i=require("../../constants/Theme.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e);r.default.div`
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 440px;
|
|
4
|
+
border: 1px dashed ${i.COLORS.stroke.primary};
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
gap: 24px;
|
|
7
|
+
align-items: cneter;
|
|
8
|
+
background-color: ${i.COLORS.surface.subdued};
|
|
9
|
+
.fileUploader {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
padding: 24px;
|
|
13
|
+
gap: 32px;
|
|
14
|
+
&__header {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
gap: 8px;
|
|
20
|
+
&__icon {
|
|
21
|
+
cursor: default;
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 80px;
|
|
24
|
+
height: 80px;
|
|
25
|
+
background-color: ${i.COLORS.background.base};
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
&__title {
|
|
31
|
+
cursor: default;
|
|
32
|
+
display: flex;
|
|
33
|
+
width: calc(100% - 24px);
|
|
34
|
+
justify-content: center;
|
|
35
|
+
padding-top: 8px;
|
|
36
|
+
}
|
|
37
|
+
&__caption {
|
|
38
|
+
cursor: default;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&__body {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: 16px;
|
|
45
|
+
&__divider {
|
|
46
|
+
display: flex;
|
|
47
|
+
.left {
|
|
48
|
+
border-top: 1px solid ${i.COLORS.stroke.primary};
|
|
49
|
+
flex-grow: 1;
|
|
50
|
+
margin-top: 8px;
|
|
51
|
+
margin-right: 8px;
|
|
52
|
+
}
|
|
53
|
+
.right {
|
|
54
|
+
border-top: 1px solid ${i.COLORS.stroke.primary};
|
|
55
|
+
flex-grow: 1;
|
|
56
|
+
margin-top: 8px;
|
|
57
|
+
margin-left: 8px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&__upload {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 40px;
|
|
65
|
+
border: 1px solid ${i.COLORS.content.brand};
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
label {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
.file-uploader {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
color: ${i.COLORS.content.brand};
|
|
79
|
+
gap: 10px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&__cancel-button {
|
|
84
|
+
align-self: center;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.fileUploadError {
|
|
90
|
+
height: 36px;
|
|
91
|
+
width: 100%;
|
|
92
|
+
position: relative;
|
|
93
|
+
}
|
|
94
|
+
`,r.default.div`
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
height: 100%;
|
|
98
|
+
width: 440px;
|
|
99
|
+
border: 1px dashed ${i.COLORS.stroke.primary};
|
|
100
|
+
border-radius: 4px;
|
|
101
|
+
gap: 24px;
|
|
102
|
+
align-items: cneter;
|
|
103
|
+
background-color: ${i.COLORS.surface.subdued};
|
|
104
|
+
padding: 60px 16px;
|
|
105
|
+
.fileUploaded {
|
|
106
|
+
width: 100%;
|
|
107
|
+
&__header {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
width: 100%;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
gap: 16px;
|
|
114
|
+
&__icon {
|
|
115
|
+
display: flex;
|
|
116
|
+
width: 80px;
|
|
117
|
+
height: 80px;
|
|
118
|
+
background-color: ${i.COLORS.background.positive.vibrant};
|
|
119
|
+
border-radius: 50%;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
&__body {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
width: 100%;
|
|
128
|
+
gap: 24px;
|
|
129
|
+
&__file-detail {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
height: 56px;
|
|
133
|
+
background-color: ${i.COLORS.surface.standard};
|
|
134
|
+
border: 1px solid ${i.COLORS.stroke.primary};
|
|
135
|
+
border-radius: 4px;
|
|
136
|
+
align-items: center;
|
|
137
|
+
padding: 16px;
|
|
138
|
+
gap: 12px;
|
|
139
|
+
&__icon {
|
|
140
|
+
display: flex;
|
|
141
|
+
width: fit-content;
|
|
142
|
+
}
|
|
143
|
+
&__name {
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
}
|
|
148
|
+
&__size {
|
|
149
|
+
display: flex;
|
|
150
|
+
margin-left: auto;
|
|
151
|
+
width: fit-content;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
&__buttons {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: row;
|
|
157
|
+
gap: 12px;
|
|
158
|
+
&__edit,
|
|
159
|
+
&__done {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex: 1;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface FileMetaData {
|
|
2
|
+
fileId: string;
|
|
3
|
+
fileName: string;
|
|
4
|
+
fileSize: string;
|
|
5
|
+
fileType: string;
|
|
6
|
+
fileUrl: string;
|
|
7
|
+
uploadType: 'URL' | 'FileUpload';
|
|
8
|
+
uploadDate: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface FileUploadRules {
|
|
11
|
+
allowedFormats: string;
|
|
12
|
+
allowedSize: {
|
|
13
|
+
[key: string]: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface FileUploaderInterface {
|
|
17
|
+
onFileUpload: (file: File, metaData: FileMetaData) => void;
|
|
18
|
+
fileUploadRules: FileUploadRules;
|
|
19
|
+
onError: (error: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface FileMetaFromUrl {
|
|
22
|
+
type: string;
|
|
23
|
+
size: number;
|
|
24
|
+
}
|
|
25
|
+
export interface FileUploaderProps {
|
|
26
|
+
uploadFile?: (file: File, fileName: string) => Promise<string>;
|
|
27
|
+
getFileMetaFromUrl?: (url: string) => Promise<FileMetaFromUrl>;
|
|
28
|
+
fileUploadRules: FileUploadRules;
|
|
29
|
+
onError: (error: string) => void;
|
|
30
|
+
uploadProgress: number;
|
|
31
|
+
onCancel: () => void;
|
|
32
|
+
onSuccess: (file: File, fileMeta: FileMetaData) => void;
|
|
33
|
+
fileName?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FileUploader';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FileMetaFromUrl } from "./Models";
|
|
2
|
+
interface URLUploadOptions {
|
|
3
|
+
getFileMetaFromUrl: (url: string) => Promise<FileMetaFromUrl>;
|
|
4
|
+
error?: string;
|
|
5
|
+
success?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const useMockUrlUpload: () => URLUploadOptions;
|
|
8
|
+
export default useMockUrlUpload;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -43,3 +43,6 @@ export * from './components/WhatsAppTextEditor';
|
|
|
43
43
|
export * from './helpers';
|
|
44
44
|
export * from './components/card-selection-modal';
|
|
45
45
|
export * from './components/image-cropper';
|
|
46
|
+
export * from './components/accordion';
|
|
47
|
+
export * from './components/file-uploader';
|
|
48
|
+
export * from './components/colourInput';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/template-preview/constants/regexPatterns.js"),t=require("./utils/StringUtils.js"),r=require("./constants/Theme.js"),o=require("./components/checkBox/CheckBox.js"),n=require("./components/list-item/ListItem.js"),p=require("./components/pagination/Pagination.js"),i=require("./components/radioButton/RadioButton.js"),s=require("./components/toaster/Toaster.js"),a=require("./components/tooltips/Tooltip.js"),u=require("./components/spinner/Spinner.js"),l=require("./components/stepper/Stepper.js"),c=require("./components/tag/Tag.js"),d=require("./components/icon-button/IconButton.js"),m=require("./components/template-preview/TemplatePreview.js"),T=require("./components/template-preview/WhatsApp/WhatsAppLikePreview.js"),x=require("./components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js"),A=require("./components/template-preview/helpers/SmsTemplateHelper.js"),P=require("./components/template-preview/helpers/WhatsAppFormatToHTML.js"),O=require("./components/template-preview/helpers/VariableEditorHelper.js"),S=require("./components/template-preview/models/TemplateMeta.js"),y=require("./components/template-context-mapper/TemplateContextMapper.js"),E=require("./components/template-context-mapper/utils/getDataFromTemplateComponent.js"),C=require("./components/template-context-mapper/utils/validateIsUrl.js"),g=require("./components/fab-menu/FABMenu.js"),B=require("./components/floating-action-button/FloatingActionButton.js"),R=require("./components/floating-action-button/FloatingActionButton.styles.js"),j=require("./components/image-compress/ImageCompress.js"),b=require("./components/TypographyStyle.js"),_=require("./components/button/Button.js"),I=require("./components/progress-bar/ProgressBarComponent.js"),q=require("./components/QueryBuilder/QueryBuilder.js"),h=require("./components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js"),f=require("./components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js"),M=require("./components/QueryBuilder/redux/queryBuilder.reducer.js"),N=require("./components/QueryBuilder/redux/queryBuilderCache.reducer.js"),w=require("./components/QueryBuilder/types/QueryBuilderOperator.type.js"),L=require("./components/modals/styledModal.js"),D=require("./components/dropdown/Dropdown.js"),v=require("./components/dropdown/DropdownPopover/index.js"),F=require("./components/dropdown/OpenedDropdown/components/OpennedDropdown.js"),k=require("./components/dropdown/MenuItem/MenuItem.js"),U=require("./components/analytics-card/AnalyticsCard.js"),W=require("./components/analytics-card/AnalyticsCard.styled.js"),H=require("./components/input/Input.js"),G=require("./components/analytics-chips-and-dropdowns/AnalyticsChip.js"),V=require("./components/analytics-chips-and-dropdowns/AnalyticsDropdown.js"),Q=require("./components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js"),Y=require("./components/avatar/Avatar.js"),K=require("./components/alerts/Alert.js"),Z=require("./components/alerts/AlertHelper.js"),X=require("./components/thumbnail/Thumbnail.js"),z=require("./components/curtain/Curtain.js"),J=require("./components/datePicker/DatePicker.js"),$=require("./components/switch/Switch.js"),ee=require("./components/plans/SubscriptionPlan.js"),te=require("./components/plans/SubscriptionPlanSelector.js"),re=require("./components/tabs/Tabs.js"),oe=require("./components/shimmer/ShimmerComponent/BikShimmer.js"),ne=require("./components/TablePagination/TablePagination.js"),pe=require("./components/TablePagination/TablePaginationCard.js"),ie=require("./components/states-modal/StateModalComponent.js"),se=require("./components/states-modal/DeleteConfirmationModal.js"),ae=require("./components/states/StateComponent.js"),ue=require("./components/WhatsAppTextEditor/WhatsAppTextEditor.js"),le=require("./components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js"),ce=require("./helpers/BaseWhatsappContentLang.helper.js"),de=require("./components/card-selection-modal/CardSelectionModal.js"),me=require("./components/image-cropper/BikImageCropper.js"),Te=require("./components/image-cropper/BikImagePipeline/BikImagePipeline.js");exports.regexPatterns=e,exports.StringUtils=t.default,exports.BASE_COLORS=r.BASE_COLORS,exports.COLORS=r.COLORS,exports.DEFAULT_THEME=r.DEFAULT_THEME,exports.FONTS=r.FONTS,exports.CheckBox=o.CheckBox,exports.ListItem=n.ListItem,exports.Pagination=p.Pagination,exports.RadioButton=i.RadioButton,exports.Toaster=s.Toaster,exports.Tooltip=a.Tooltip,exports.Spinner=u.Spinner,exports.Stepper=l.Stepper,exports.Tag=c.Tag,exports.IconButton=d.IconButton,exports.TemplatePreview=m.TemplatePreview,exports.WhatsappLikePreview=T.WhatsappLikePreview,exports.WhatsappLikePreviewV2=x.WhatsappLikePreviewV2,exports.renderVariableUIForPreview=A.renderVariableUIForPreview,exports.WhatsAppFormatToHTML=P.WhatsAppFormatToHTML,exports.VariableEditorHelper=O.VariableEditorHelper,Object.defineProperty(exports,"ACTIONS_TYPES",{enumerable:!0,get:function(){return S.ACTIONS_TYPES}}),exports.CUSTOM_URL_NAME=S.CUSTOM_URL_NAME,Object.defineProperty(exports,"HEADER_TYPES",{enumerable:!0,get:function(){return S.HEADER_TYPES}}),Object.defineProperty(exports,"TEMPLATE_EDITOR",{enumerable:!0,get:function(){return S.TEMPLATE_EDITOR}}),Object.defineProperty(exports,"TEMPLATE_STATUS",{enumerable:!0,get:function(){return S.TEMPLATE_STATUS}}),exports.TemplateContextMapper=y.TemplateContextMapper,exports.getAllDataFromTemplateComponent=E.getAllDataFromTemplateComponent,exports.validateIsUrl=C.validateIsUrl,exports.FABMenu=g.FABMenu,exports.FloatingActionButton=B.FloatingActionButton,Object.defineProperty(exports,"DROP_POSITION",{enumerable:!0,get:function(){return R.DROP_POSITION}}),exports.DropdownToggleContainer=R.DropdownToggleContainer,Object.defineProperty(exports,"FAB_POSITION",{enumerable:!0,get:function(){return R.FAB_POSITION}}),exports.FloatingActionButtonContainer=R.FloatingActionButtonContainer,exports.FloatingActionButtonOuterContainer=R.FloatingActionButtonOuterContainer,Object.defineProperty(exports,"MENU_ALIGNMENT",{enumerable:!0,get:function(){return R.MENU_ALIGNMENT}}),exports.StyledDropdown=R.StyledDropdown,exports.TooltipStyled=R.TooltipStyled,exports.ImageService=j.ImageService,exports.BodyCaption=b.BodyCaption,exports.BodyLarge=b.BodyLarge,exports.BodyPrimary=b.BodyPrimary,exports.BodyPrimaryLink=b.BodyPrimaryLink,exports.BodyRegular=b.BodyRegular,exports.BodySecondary=b.BodySecondary,exports.BodySecondaryLink=b.BodySecondaryLink,exports.BodyTiny=b.BodyTiny,exports.ButtonLarge=b.ButtonLarge,exports.ButtonRegular=b.ButtonRegular,exports.Caption=b.Caption,exports.Display=b.Display,exports.SubHeading=b.SubHeading,exports.TitleLarge=b.TitleLarge,exports.TitleMedium=b.TitleMedium,exports.TitleRegular=b.TitleRegular,exports.TitleSmall=b.TitleSmall,exports.Button=_.Button,exports.ProgressBarComponent=I.ProgressBarComponent,exports.ProgressCompletedBar=I.ProgressCompletedBar,exports.QueryBuilder=q.QueryBuilder,exports.BaseQueryBuilderNode=h.BaseQueryBuilderNode,exports.PropertyNode=f.PropertyNode,exports.PropertyNodeHeadless=f.PropertyNodeHeadless,exports.queryBuilderSlice=M.queryBuilderSlice,exports.queryBuilderCacheSlice=N.queryBuilderCacheSlice,Object.defineProperty(exports,"AD_STRING_OPERATORS",{enumerable:!0,get:function(){return w.AD_STRING_OPERATORS}}),Object.defineProperty(exports,"ANY_AD_OPERATORS",{enumerable:!0,get:function(){return w.ANY_AD_OPERATORS}}),Object.defineProperty(exports,"ANY_IG_OPERATORS",{enumerable:!0,get:function(){return w.ANY_IG_OPERATORS}}),Object.defineProperty(exports,"BOOLEAN_OPERATORS",{enumerable:!0,get:function(){return w.BOOLEAN_OPERATORS}}),Object.defineProperty(exports,"DATE_OPERATORS",{enumerable:!0,get:function(){return w.DATE_OPERATORS}}),Object.defineProperty(exports,"EVENT_VALUES",{enumerable:!0,get:function(){return w.EVENT_VALUES}}),Object.defineProperty(exports,"FREQUENCY_OPERATORS",{enumerable:!0,get:function(){return w.FREQUENCY_OPERATORS}}),Object.defineProperty(exports,"ICE_BREAKER_OPERATORS",{enumerable:!0,get:function(){return w.ICE_BREAKER_OPERATORS}}),Object.defineProperty(exports,"IG_STRING_OPERATORS",{enumerable:!0,get:function(){return w.IG_STRING_OPERATORS}}),Object.defineProperty(exports,"INTEGER_OPERATORS",{enumerable:!0,get:function(){return w.INTEGER_OPERATORS}}),Object.defineProperty(exports,"REACTION_OPERATORS",{enumerable:!0,get:function(){return w.REACTION_OPERATORS}}),Object.defineProperty(exports,"SPECIFIC_IG_OPERATORS",{enumerable:!0,get:function(){return w.SPECIFIC_IG_OPERATORS}}),Object.defineProperty(exports,"STRING_OPERATORS",{enumerable:!0,get:function(){return w.STRING_OPERATORS}}),exports.StyledModal=L.StyledModal,exports.Dropdown=D.Dropdown,exports.DropdownPopover=v.DropdownPopover,exports.OpenedDropdown=F.OpenedDropdown,exports.MenuItemDropdown=k.MenuItemDropdown,exports.AnalyticsCard=U.AnalyticsCard,exports.AnalyticsContainer=W.AnalyticsContainer,exports.CardDataContainer=W.CardDataContainer,exports.Input=H.Input,exports.AnalyticsChip=G.AnalyticsChip,exports.AnalyticsDropdown=V.AnalyticsDropdown,exports.EachItem=V.EachItem,exports.AnalyticsMultiChip=Q.AnalyticsMultiChip,exports.AVATAR_SIZE_VS_ICON_SIZE_MAP=Y.AVATAR_SIZE_VS_ICON_SIZE_MAP,exports.Avatar=Y.Avatar,exports.BACKGROUND_VS_TEXT_COLOR_MAP=Y.BACKGROUND_VS_TEXT_COLOR_MAP,exports.Alert=K.Alert,Object.defineProperty(exports,"ALERT_TYPES",{enumerable:!0,get:function(){return Z.ALERT_TYPES}}),exports.COLOR_CONFIG_MAP=Z.COLOR_CONFIG_MAP,Object.defineProperty(exports,"RATIO",{enumerable:!0,get:function(){return X.RATIO}}),exports.Thumbnail=X.Thumbnail,exports.Curtain=z.Curtain,exports.DatePicker=J.DatePicker,exports.Loader=$.Loader,exports.Switch=$.Switch,exports.SwitchContainer=$.SwitchContainer,exports.Thumb=$.Thumb,exports.SubscriptionPlan=ee.SubscriptionPlan,exports.SubscriptionPlanSelector=te.SubscriptionPlanSelector,exports.TabItemComponent=re.TabItemComponent,exports.Tabs=re.Tabs,exports.BikShimmer=oe.BikShimmer,exports.TablePagination=ne.TablePagination,exports.TablePaginationCard=pe.TablePaginationCard,exports.TablePaginationCardStyled=pe.TablePaginationCardStyled,exports.StateModalComponent=ie.StateModalComponent,exports.DeleteConfirmationModal=se.DeleteConfirmationModal,Object.defineProperty(exports,"ButtonActions",{enumerable:!0,get:function(){return ae.ButtonActions}}),Object.defineProperty(exports,"ButtonTypes",{enumerable:!0,get:function(){return ae.ButtonTypes}}),exports.StateComponent=ae.StateComponent,Object.defineProperty(exports,"StateInterface",{enumerable:!0,get:function(){return ae.StateInterface}}),exports.WhatsAppTextEditor=ue.WhatsAppTextEditor,Object.defineProperty(exports,"EditorActionTypes",{enumerable:!0,get:function(){return le.EditorActionTypes}}),exports.WhatsAppTextEditorHeader=le.WhatsAppTextEditorHeader,exports.BaseWhatsappContentLangHelper=ce.BaseWhatsappContentLangHelper,exports.CardSelectionModal=de.CardSelectionModal,exports.BikImageCropper=me.BikImageCropper,exports.BikImagePipeline=Te.BikImagePipeline;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/template-preview/constants/regexPatterns.js"),t=require("./utils/StringUtils.js"),r=require("./constants/Theme.js"),o=require("./components/checkBox/CheckBox.js"),n=require("./components/list-item/ListItem.js"),p=require("./components/pagination/Pagination.js"),i=require("./components/radioButton/RadioButton.js"),s=require("./components/toaster/Toaster.js"),a=require("./components/tooltips/Tooltip.js"),u=require("./components/spinner/Spinner.js"),l=require("./components/stepper/Stepper.js"),c=require("./components/tag/Tag.js"),d=require("./components/icon-button/IconButton.js"),m=require("./components/template-preview/TemplatePreview.js"),T=require("./components/template-preview/WhatsApp/WhatsAppLikePreview.js"),x=require("./components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js"),A=require("./components/template-preview/helpers/SmsTemplateHelper.js"),P=require("./components/template-preview/helpers/WhatsAppFormatToHTML.js"),O=require("./components/template-preview/helpers/VariableEditorHelper.js"),S=require("./components/template-preview/models/TemplateMeta.js"),y=require("./components/template-context-mapper/TemplateContextMapper.js"),E=require("./components/template-context-mapper/utils/getDataFromTemplateComponent.js"),C=require("./components/template-context-mapper/utils/validateIsUrl.js"),g=require("./components/fab-menu/FABMenu.js"),j=require("./components/floating-action-button/FloatingActionButton.js"),B=require("./components/floating-action-button/FloatingActionButton.styles.js"),R=require("./components/image-compress/ImageCompress.js"),b=require("./components/TypographyStyle.js"),_=require("./components/button/Button.js"),I=require("./components/progress-bar/ProgressBarComponent.js"),q=require("./components/QueryBuilder/QueryBuilder.js"),h=require("./components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js"),f=require("./components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js"),w=require("./components/QueryBuilder/redux/queryBuilder.reducer.js"),M=require("./components/QueryBuilder/redux/queryBuilderCache.reducer.js"),N=require("./components/QueryBuilder/types/QueryBuilderOperator.type.js"),L=require("./components/modals/styledModal.js"),D=require("./components/dropdown/Dropdown.js"),v=require("./components/dropdown/DropdownPopover/index.js"),F=require("./components/dropdown/OpenedDropdown/components/OpennedDropdown.js"),k=require("./components/dropdown/MenuItem/MenuItem.js"),U=require("./components/analytics-card/AnalyticsCard.js"),H=require("./components/analytics-card/AnalyticsCard.styled.js"),W=require("./components/input/Input.js"),G=require("./components/analytics-chips-and-dropdowns/AnalyticsChip.js"),V=require("./components/analytics-chips-and-dropdowns/AnalyticsDropdown.js"),Q=require("./components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js"),Y=require("./components/avatar/Avatar.js"),K=require("./components/alerts/Alert.js"),Z=require("./components/alerts/AlertHelper.js"),X=require("./components/thumbnail/Thumbnail.js"),z=require("./components/curtain/Curtain.js"),J=require("./components/datePicker/DatePicker.js"),$=require("./components/switch/Switch.js"),ee=require("./components/plans/SubscriptionPlan.js"),te=require("./components/plans/SubscriptionPlanSelector.js"),re=require("./components/tabs/Tabs.js"),oe=require("./components/shimmer/ShimmerComponent/BikShimmer.js"),ne=require("./components/TablePagination/TablePagination.js"),pe=require("./components/TablePagination/TablePaginationCard.js"),ie=require("./components/states-modal/StateModalComponent.js"),se=require("./components/states-modal/DeleteConfirmationModal.js"),ae=require("./components/states/StateComponent.js"),ue=require("./components/WhatsAppTextEditor/WhatsAppTextEditor.js"),le=require("./components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js"),ce=require("./helpers/BaseWhatsappContentLang.helper.js"),de=require("./components/card-selection-modal/CardSelectionModal.js"),me=require("./components/image-cropper/BikImageCropper.js"),Te=require("./components/image-cropper/BikImagePipeline/BikImagePipeline.js");require("react/jsx-runtime"),require("react"),require("./components/accordion/Accordion.style.js"),require("./components/accordion/AccordionArrow.js"),require("./components/curtain/CurtainHelper.js"),require("./components/file-uploader/FileUploaderStyle.js");var xe=require("./components/colourInput/ColourInput.js");exports.regexPatterns=e,exports.StringUtils=t.default,exports.BASE_COLORS=r.BASE_COLORS,exports.COLORS=r.COLORS,exports.DEFAULT_THEME=r.DEFAULT_THEME,exports.FONTS=r.FONTS,exports.CheckBox=o.CheckBox,exports.ListItem=n.ListItem,exports.Pagination=p.Pagination,exports.RadioButton=i.RadioButton,exports.Toaster=s.Toaster,exports.Tooltip=a.Tooltip,exports.Spinner=u.Spinner,exports.Stepper=l.Stepper,exports.Tag=c.Tag,exports.IconButton=d.IconButton,exports.TemplatePreview=m.TemplatePreview,exports.WhatsappLikePreview=T.WhatsappLikePreview,exports.WhatsappLikePreviewV2=x.WhatsappLikePreviewV2,exports.renderVariableUIForPreview=A.renderVariableUIForPreview,exports.WhatsAppFormatToHTML=P.WhatsAppFormatToHTML,exports.VariableEditorHelper=O.VariableEditorHelper,Object.defineProperty(exports,"ACTIONS_TYPES",{enumerable:!0,get:function(){return S.ACTIONS_TYPES}}),exports.CUSTOM_URL_NAME=S.CUSTOM_URL_NAME,Object.defineProperty(exports,"HEADER_TYPES",{enumerable:!0,get:function(){return S.HEADER_TYPES}}),Object.defineProperty(exports,"TEMPLATE_EDITOR",{enumerable:!0,get:function(){return S.TEMPLATE_EDITOR}}),Object.defineProperty(exports,"TEMPLATE_STATUS",{enumerable:!0,get:function(){return S.TEMPLATE_STATUS}}),exports.TemplateContextMapper=y.TemplateContextMapper,exports.getAllDataFromTemplateComponent=E.getAllDataFromTemplateComponent,exports.validateIsUrl=C.validateIsUrl,exports.FABMenu=g.FABMenu,exports.FloatingActionButton=j.FloatingActionButton,Object.defineProperty(exports,"DROP_POSITION",{enumerable:!0,get:function(){return B.DROP_POSITION}}),exports.DropdownToggleContainer=B.DropdownToggleContainer,Object.defineProperty(exports,"FAB_POSITION",{enumerable:!0,get:function(){return B.FAB_POSITION}}),exports.FloatingActionButtonContainer=B.FloatingActionButtonContainer,exports.FloatingActionButtonOuterContainer=B.FloatingActionButtonOuterContainer,Object.defineProperty(exports,"MENU_ALIGNMENT",{enumerable:!0,get:function(){return B.MENU_ALIGNMENT}}),exports.StyledDropdown=B.StyledDropdown,exports.TooltipStyled=B.TooltipStyled,exports.ImageService=R.ImageService,exports.BodyCaption=b.BodyCaption,exports.BodyLarge=b.BodyLarge,exports.BodyPrimary=b.BodyPrimary,exports.BodyPrimaryLink=b.BodyPrimaryLink,exports.BodyRegular=b.BodyRegular,exports.BodySecondary=b.BodySecondary,exports.BodySecondaryLink=b.BodySecondaryLink,exports.BodyTiny=b.BodyTiny,exports.ButtonLarge=b.ButtonLarge,exports.ButtonRegular=b.ButtonRegular,exports.Caption=b.Caption,exports.Display=b.Display,exports.SubHeading=b.SubHeading,exports.TitleLarge=b.TitleLarge,exports.TitleMedium=b.TitleMedium,exports.TitleRegular=b.TitleRegular,exports.TitleSmall=b.TitleSmall,exports.Button=_.Button,exports.ProgressBarComponent=I.ProgressBarComponent,exports.ProgressCompletedBar=I.ProgressCompletedBar,exports.QueryBuilder=q.QueryBuilder,exports.BaseQueryBuilderNode=h.BaseQueryBuilderNode,exports.PropertyNode=f.PropertyNode,exports.PropertyNodeHeadless=f.PropertyNodeHeadless,exports.queryBuilderSlice=w.queryBuilderSlice,exports.queryBuilderCacheSlice=M.queryBuilderCacheSlice,Object.defineProperty(exports,"AD_STRING_OPERATORS",{enumerable:!0,get:function(){return N.AD_STRING_OPERATORS}}),Object.defineProperty(exports,"ANY_AD_OPERATORS",{enumerable:!0,get:function(){return N.ANY_AD_OPERATORS}}),Object.defineProperty(exports,"ANY_IG_OPERATORS",{enumerable:!0,get:function(){return N.ANY_IG_OPERATORS}}),Object.defineProperty(exports,"BOOLEAN_OPERATORS",{enumerable:!0,get:function(){return N.BOOLEAN_OPERATORS}}),Object.defineProperty(exports,"DATE_OPERATORS",{enumerable:!0,get:function(){return N.DATE_OPERATORS}}),Object.defineProperty(exports,"EVENT_VALUES",{enumerable:!0,get:function(){return N.EVENT_VALUES}}),Object.defineProperty(exports,"FREQUENCY_OPERATORS",{enumerable:!0,get:function(){return N.FREQUENCY_OPERATORS}}),Object.defineProperty(exports,"ICE_BREAKER_OPERATORS",{enumerable:!0,get:function(){return N.ICE_BREAKER_OPERATORS}}),Object.defineProperty(exports,"IG_STRING_OPERATORS",{enumerable:!0,get:function(){return N.IG_STRING_OPERATORS}}),Object.defineProperty(exports,"INTEGER_OPERATORS",{enumerable:!0,get:function(){return N.INTEGER_OPERATORS}}),Object.defineProperty(exports,"REACTION_OPERATORS",{enumerable:!0,get:function(){return N.REACTION_OPERATORS}}),Object.defineProperty(exports,"SPECIFIC_IG_OPERATORS",{enumerable:!0,get:function(){return N.SPECIFIC_IG_OPERATORS}}),Object.defineProperty(exports,"STRING_OPERATORS",{enumerable:!0,get:function(){return N.STRING_OPERATORS}}),exports.StyledModal=L.StyledModal,exports.Dropdown=D.Dropdown,exports.DropdownPopover=v.DropdownPopover,exports.OpenedDropdown=F.OpenedDropdown,exports.MenuItemDropdown=k.MenuItemDropdown,exports.AnalyticsCard=U.AnalyticsCard,exports.AnalyticsContainer=H.AnalyticsContainer,exports.CardDataContainer=H.CardDataContainer,exports.Input=W.Input,exports.AnalyticsChip=G.AnalyticsChip,exports.AnalyticsDropdown=V.AnalyticsDropdown,exports.EachItem=V.EachItem,exports.AnalyticsMultiChip=Q.AnalyticsMultiChip,exports.AVATAR_SIZE_VS_ICON_SIZE_MAP=Y.AVATAR_SIZE_VS_ICON_SIZE_MAP,exports.Avatar=Y.Avatar,exports.BACKGROUND_VS_TEXT_COLOR_MAP=Y.BACKGROUND_VS_TEXT_COLOR_MAP,exports.Alert=K.Alert,Object.defineProperty(exports,"ALERT_TYPES",{enumerable:!0,get:function(){return Z.ALERT_TYPES}}),exports.COLOR_CONFIG_MAP=Z.COLOR_CONFIG_MAP,Object.defineProperty(exports,"RATIO",{enumerable:!0,get:function(){return X.RATIO}}),exports.Thumbnail=X.Thumbnail,exports.Curtain=z.Curtain,exports.DatePicker=J.DatePicker,exports.Loader=$.Loader,exports.Switch=$.Switch,exports.SwitchContainer=$.SwitchContainer,exports.Thumb=$.Thumb,exports.SubscriptionPlan=ee.SubscriptionPlan,exports.SubscriptionPlanSelector=te.SubscriptionPlanSelector,exports.TabItemComponent=re.TabItemComponent,exports.Tabs=re.Tabs,exports.BikShimmer=oe.BikShimmer,exports.TablePagination=ne.TablePagination,exports.TablePaginationCard=pe.TablePaginationCard,exports.TablePaginationCardStyled=pe.TablePaginationCardStyled,exports.StateModalComponent=ie.StateModalComponent,exports.DeleteConfirmationModal=se.DeleteConfirmationModal,Object.defineProperty(exports,"ButtonActions",{enumerable:!0,get:function(){return ae.ButtonActions}}),Object.defineProperty(exports,"ButtonTypes",{enumerable:!0,get:function(){return ae.ButtonTypes}}),exports.StateComponent=ae.StateComponent,Object.defineProperty(exports,"StateInterface",{enumerable:!0,get:function(){return ae.StateInterface}}),exports.WhatsAppTextEditor=ue.WhatsAppTextEditor,Object.defineProperty(exports,"EditorActionTypes",{enumerable:!0,get:function(){return le.EditorActionTypes}}),exports.WhatsAppTextEditorHeader=le.WhatsAppTextEditorHeader,exports.BaseWhatsappContentLangHelper=ce.BaseWhatsappContentLangHelper,exports.CardSelectionModal=de.CardSelectionModal,exports.BikImageCropper=me.BikImageCropper,exports.BikImagePipeline=Te.BikImagePipeline,exports.ColourInput=xe.ColourInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../_virtual/_commonjsHelpers.js"),e="Expected a function",n=NaN,o="[object Symbol]",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt,a="object"==typeof t.commonjsGlobal&&t.commonjsGlobal&&t.commonjsGlobal.Object===Object&&t.commonjsGlobal,l="object"==typeof self&&self&&self.Object===Object&&self,s=a||l||Function("return this")(),v=Object.prototype.toString,m=Math.max,p=Math.min,b=function(){return s.Date.now()};function j(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&v.call(t)==o}(t))return n;if(j(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=j(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var a=u.test(t);return a||f.test(t)?c(t.slice(2),a?2:8):i.test(t)?n:+t}var d=function(t,n,o){var r,i,u,f,c,a,l=0,s=!1,v=!1,d=!0;if("function"!=typeof t)throw new TypeError(e);function O(e){var n=r,o=i;return r=i=void 0,l=e,f=t.apply(o,n)}function x(t){var e=t-a;return void 0===a||e>=n||e<0||v&&t-l>=u}function g(){var t=b();if(x(t))return h(t);c=setTimeout(g,function(t){var e=n-(t-a);return v?p(e,u-(t-l)):e}(t))}function h(t){return c=void 0,d&&r?O(t):(r=i=void 0,f)}function T(){var t=b(),e=x(t);if(r=arguments,i=this,a=t,e){if(void 0===c)return function(t){return l=t,c=setTimeout(g,n),s?O(t):f}(a);if(v)return c=setTimeout(g,n),O(a)}return void 0===c&&(c=setTimeout(g,n)),f}return n=y(n)||0,j(o)&&(s=!!o.leading,u=(v="maxWait"in o)?m(y(o.maxWait)||0,n):u,d="trailing"in o?!!o.trailing:d),T.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=a=i=c=void 0},T.flush=function(){return void 0===c?f:h(b())},T};exports.default=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};export{e as commonjsGlobal};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface AccordionProps {
|
|
3
|
+
header: string;
|
|
4
|
+
caption: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
width?: string;
|
|
7
|
+
contentMargin?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const BikAccordion: React.FC<AccordionProps>;
|
|
10
|
+
export default BikAccordion;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import e from"styled-components";import{COLORS as i}from"../../constants/Theme.js";e.div`
|
|
2
|
+
width: ${e=>(null==e?void 0:e.width)||"100%"};
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
.accordion {
|
|
6
|
+
&__overview {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 4px;
|
|
10
|
+
padding: 24px;
|
|
11
|
+
&__header {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
}
|
|
17
|
+
:hover {
|
|
18
|
+
background: ${i.surface.subdued};
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&__content {
|
|
23
|
+
${e=>e.isActive?{margin:(null==e?void 0:e.contentMargin)||"0px"}:{}};
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
max-height: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import r from"react";const i=r.forwardRef(((r,i)=>e("div",Object.assign({ref:i,className:"d-flex align-items-center"},{children:e("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M7.7071 10.7071C7.07713 10.0771 7.5233 9 8.41421 9H15.5858C16.4767 9 16.9228 10.0771 16.2929 10.7071L12.7071 14.2929C12.3166 14.6834 11.6834 14.6834 11.2929 14.2929L7.7071 10.7071Z",fill:"currentColor"})}))}))));i.displayName="BikAccordionArrow";export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Accordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as o,jsx as e}from"react/jsx-runtime";import t from"../../node_modules/lodash.debounce/index.js";import{useCallback as r}from"react";import{ColorInputContainer as n,StyledColorInput as i}from"./ColourInput.styled.js";import{BodySecondary as l}from"../TypographyStyle.js";import{DEFAULT_THEME as s}from"../../constants/Theme.js";const a=a=>{const m=r(t((o=>{a.onValueChange(o)}),100),[]);return o("div",Object.assign({className:"buttonColorCustom"},{children:[a.headingText&&e(l,{children:a.headingText}),o(n,{children:[e("div",Object.assign({style:{fontWeight:400,fontSize:16,lineHeight:24,color:s.colorsV2.content.primary}},{children:"Colour"})),e(i,{type:"color",onChange:o=>{m(o.target.value)},value:a.value})]})]}))};export{a as ColourInput};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ColorInputContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const StyledColorInput: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import c from"@emotion/styled/base";import{DEFAULT_THEME as e}from"../../constants/Theme.js";const d=c("div","production"===process.env.NODE_ENV?{target:"e1n3hesw1"}:{target:"e1n3hesw1",label:"ColorInputContainer"})("margin-top:8px;display:flex;min-height:unset;flex-direction:row;align-items:center;padding:20px 18px;flex:1;gap:16px;width:100%;height:48px;background:",e.colorsV2.surface.standard,";border:1px solid ",e.colorsV2.stroke.primary,";border-radius:4px;justify-content:space-between;"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbG91cklucHV0LnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRThDIiwiZmlsZSI6IkNvbG91cklucHV0LnN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCB7IERFRkFVTFRfVEhFTUUgfSBmcm9tIFwiLi4vLi4vY29uc3RhbnRzL1RoZW1lXCI7XHJcbmV4cG9ydCBjb25zdCBDb2xvcklucHV0Q29udGFpbmVyID0gc3R5bGVkLmRpdiBgXG5cdG1hcmdpbi10b3A6IDhweDtcblx0ZGlzcGxheTogZmxleDtcblx0bWluLWhlaWdodDogdW5zZXQ7XG5cdGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cdHBhZGRpbmc6IDIwcHggMThweDtcblx0ZmxleDogMTtcblx0Z2FwOiAxNnB4O1xuXHR3aWR0aDogMTAwJTtcblx0aGVpZ2h0OiA0OHB4O1xuXHRiYWNrZ3JvdW5kOiAke0RFRkFVTFRfVEhFTUUuY29sb3JzVjIuc3VyZmFjZS5zdGFuZGFyZH07XG5cdGJvcmRlcjogMXB4IHNvbGlkICR7REVGQVVMVF9USEVNRS5jb2xvcnNWMi5zdHJva2UucHJpbWFyeX07XG5cdGJvcmRlci1yYWRpdXM6IDRweDtcblx0anVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuYDtcclxuZXhwb3J0IGNvbnN0IFN0eWxlZENvbG9ySW5wdXQgPSBzdHlsZWQuaW5wdXQgYFxuXHRwYWRkaW5nOiAwO1xuXHRib3JkZXI6ICNlMGUwZTAgMXB4IHNvbGlkO1xuXHR3aWR0aDogMzJweDtcblx0aGVpZ2h0OiAzMnB4O1xuXHRib3JkZXItcmFkaXVzOiA1MCU7XG5cdG92ZXJmbG93OiBoaWRkZW47XG5cdCY6aG92ZXIge1xuXHRcdGN1cnNvcjogcG9pbnRlcjtcblx0fVxuXHQ6Oi13ZWJraXQtY29sb3Itc3dhdGNoIHtcblx0XHRib3JkZXItY29sb3I6IHRyYW5zcGFyZW50O1xuXHR9XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1Db2xvdXJJbnB1dC5zdHlsZWQuanMubWFwIl19 */")),t=c("input","production"===process.env.NODE_ENV?{target:"e1n3hesw0"}:{target:"e1n3hesw0",label:"StyledColorInput"})("production"===process.env.NODE_ENV?{name:"18k7jrl",styles:"padding:0;border:#e0e0e0 1px solid;width:32px;height:32px;border-radius:50%;overflow:hidden;&:hover{cursor:pointer;}::-webkit-color-swatch{border-color:transparent;}"}:{name:"18k7jrl",styles:"padding:0;border:#e0e0e0 1px solid;width:32px;height:32px;border-radius:50%;overflow:hidden;&:hover{cursor:pointer;}::-webkit-color-swatch{border-color:transparent;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbG91cklucHV0LnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0I2QyIsImZpbGUiOiJDb2xvdXJJbnB1dC5zdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5pbXBvcnQgeyBERUZBVUxUX1RIRU1FIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5leHBvcnQgY29uc3QgQ29sb3JJbnB1dENvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRtYXJnaW4tdG9wOiA4cHg7XG5cdGRpc3BsYXk6IGZsZXg7XG5cdG1pbi1oZWlnaHQ6IHVuc2V0O1xuXHRmbGV4LWRpcmVjdGlvbjogcm93O1xuXHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRwYWRkaW5nOiAyMHB4IDE4cHg7XG5cdGZsZXg6IDE7XG5cdGdhcDogMTZweDtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogNDhweDtcblx0YmFja2dyb3VuZDogJHtERUZBVUxUX1RIRU1FLmNvbG9yc1YyLnN1cmZhY2Uuc3RhbmRhcmR9O1xuXHRib3JkZXI6IDFweCBzb2xpZCAke0RFRkFVTFRfVEhFTUUuY29sb3JzVjIuc3Ryb2tlLnByaW1hcnl9O1xuXHRib3JkZXItcmFkaXVzOiA0cHg7XG5cdGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbmA7XHJcbmV4cG9ydCBjb25zdCBTdHlsZWRDb2xvcklucHV0ID0gc3R5bGVkLmlucHV0IGBcblx0cGFkZGluZzogMDtcblx0Ym9yZGVyOiAjZTBlMGUwIDFweCBzb2xpZDtcblx0d2lkdGg6IDMycHg7XG5cdGhlaWdodDogMzJweDtcblx0Ym9yZGVyLXJhZGl1czogNTAlO1xuXHRvdmVyZmxvdzogaGlkZGVuO1xuXHQmOmhvdmVyIHtcblx0XHRjdXJzb3I6IHBvaW50ZXI7XG5cdH1cblx0Ojotd2Via2l0LWNvbG9yLXN3YXRjaCB7XG5cdFx0Ym9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDtcblx0fVxuYDtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Q29sb3VySW5wdXQuc3R5bGVkLmpzLm1hcCJdfQ== */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}});export{d as ColorInputContainer,t as StyledColorInput};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ColourInput';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const FileUploaderStyle: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
showProgressBar: boolean;
|
|
3
|
+
width?: string | undefined;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const FileUploadedStyle: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
width?: string | undefined;
|
|
7
|
+
}, never>;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import e from"styled-components";import{COLORS as i}from"../../constants/Theme.js";e.div`
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 440px;
|
|
4
|
+
border: 1px dashed ${i.stroke.primary};
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
gap: 24px;
|
|
7
|
+
align-items: cneter;
|
|
8
|
+
background-color: ${i.surface.subdued};
|
|
9
|
+
.fileUploader {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
padding: 24px;
|
|
13
|
+
gap: 32px;
|
|
14
|
+
&__header {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
gap: 8px;
|
|
20
|
+
&__icon {
|
|
21
|
+
cursor: default;
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 80px;
|
|
24
|
+
height: 80px;
|
|
25
|
+
background-color: ${i.background.base};
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
&__title {
|
|
31
|
+
cursor: default;
|
|
32
|
+
display: flex;
|
|
33
|
+
width: calc(100% - 24px);
|
|
34
|
+
justify-content: center;
|
|
35
|
+
padding-top: 8px;
|
|
36
|
+
}
|
|
37
|
+
&__caption {
|
|
38
|
+
cursor: default;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&__body {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: 16px;
|
|
45
|
+
&__divider {
|
|
46
|
+
display: flex;
|
|
47
|
+
.left {
|
|
48
|
+
border-top: 1px solid ${i.stroke.primary};
|
|
49
|
+
flex-grow: 1;
|
|
50
|
+
margin-top: 8px;
|
|
51
|
+
margin-right: 8px;
|
|
52
|
+
}
|
|
53
|
+
.right {
|
|
54
|
+
border-top: 1px solid ${i.stroke.primary};
|
|
55
|
+
flex-grow: 1;
|
|
56
|
+
margin-top: 8px;
|
|
57
|
+
margin-left: 8px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&__upload {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 40px;
|
|
65
|
+
border: 1px solid ${i.content.brand};
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
label {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
.file-uploader {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
color: ${i.content.brand};
|
|
79
|
+
gap: 10px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&__cancel-button {
|
|
84
|
+
align-self: center;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.fileUploadError {
|
|
90
|
+
height: 36px;
|
|
91
|
+
width: 100%;
|
|
92
|
+
position: relative;
|
|
93
|
+
}
|
|
94
|
+
`,e.div`
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
height: 100%;
|
|
98
|
+
width: 440px;
|
|
99
|
+
border: 1px dashed ${i.stroke.primary};
|
|
100
|
+
border-radius: 4px;
|
|
101
|
+
gap: 24px;
|
|
102
|
+
align-items: cneter;
|
|
103
|
+
background-color: ${i.surface.subdued};
|
|
104
|
+
padding: 60px 16px;
|
|
105
|
+
.fileUploaded {
|
|
106
|
+
width: 100%;
|
|
107
|
+
&__header {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
width: 100%;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
gap: 16px;
|
|
114
|
+
&__icon {
|
|
115
|
+
display: flex;
|
|
116
|
+
width: 80px;
|
|
117
|
+
height: 80px;
|
|
118
|
+
background-color: ${i.background.positive.vibrant};
|
|
119
|
+
border-radius: 50%;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
&__body {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
width: 100%;
|
|
128
|
+
gap: 24px;
|
|
129
|
+
&__file-detail {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
height: 56px;
|
|
133
|
+
background-color: ${i.surface.standard};
|
|
134
|
+
border: 1px solid ${i.stroke.primary};
|
|
135
|
+
border-radius: 4px;
|
|
136
|
+
align-items: center;
|
|
137
|
+
padding: 16px;
|
|
138
|
+
gap: 12px;
|
|
139
|
+
&__icon {
|
|
140
|
+
display: flex;
|
|
141
|
+
width: fit-content;
|
|
142
|
+
}
|
|
143
|
+
&__name {
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
}
|
|
148
|
+
&__size {
|
|
149
|
+
display: flex;
|
|
150
|
+
margin-left: auto;
|
|
151
|
+
width: fit-content;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
&__buttons {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: row;
|
|
157
|
+
gap: 12px;
|
|
158
|
+
&__edit,
|
|
159
|
+
&__done {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex: 1;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface FileMetaData {
|
|
2
|
+
fileId: string;
|
|
3
|
+
fileName: string;
|
|
4
|
+
fileSize: string;
|
|
5
|
+
fileType: string;
|
|
6
|
+
fileUrl: string;
|
|
7
|
+
uploadType: 'URL' | 'FileUpload';
|
|
8
|
+
uploadDate: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface FileUploadRules {
|
|
11
|
+
allowedFormats: string;
|
|
12
|
+
allowedSize: {
|
|
13
|
+
[key: string]: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface FileUploaderInterface {
|
|
17
|
+
onFileUpload: (file: File, metaData: FileMetaData) => void;
|
|
18
|
+
fileUploadRules: FileUploadRules;
|
|
19
|
+
onError: (error: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface FileMetaFromUrl {
|
|
22
|
+
type: string;
|
|
23
|
+
size: number;
|
|
24
|
+
}
|
|
25
|
+
export interface FileUploaderProps {
|
|
26
|
+
uploadFile?: (file: File, fileName: string) => Promise<string>;
|
|
27
|
+
getFileMetaFromUrl?: (url: string) => Promise<FileMetaFromUrl>;
|
|
28
|
+
fileUploadRules: FileUploadRules;
|
|
29
|
+
onError: (error: string) => void;
|
|
30
|
+
uploadProgress: number;
|
|
31
|
+
onCancel: () => void;
|
|
32
|
+
onSuccess: (file: File, fileMeta: FileMetaData) => void;
|
|
33
|
+
fileName?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FileUploader';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FileMetaFromUrl } from "./Models";
|
|
2
|
+
interface URLUploadOptions {
|
|
3
|
+
getFileMetaFromUrl: (url: string) => Promise<FileMetaFromUrl>;
|
|
4
|
+
error?: string;
|
|
5
|
+
success?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const useMockUrlUpload: () => URLUploadOptions;
|
|
8
|
+
export default useMockUrlUpload;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -43,3 +43,6 @@ export * from './components/WhatsAppTextEditor';
|
|
|
43
43
|
export * from './helpers';
|
|
44
44
|
export * from './components/card-selection-modal';
|
|
45
45
|
export * from './components/image-cropper';
|
|
46
|
+
export * from './components/accordion';
|
|
47
|
+
export * from './components/file-uploader';
|
|
48
|
+
export * from './components/colourInput';
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"./components/template-preview/constants/regexPatterns.js";export{o as regexPatterns};export{default as StringUtils}from"./utils/StringUtils.js";export{BASE_COLORS,COLORS,DEFAULT_THEME,FONTS}from"./constants/Theme.js";export{CheckBox}from"./components/checkBox/CheckBox.js";export{ListItem}from"./components/list-item/ListItem.js";export{Pagination}from"./components/pagination/Pagination.js";export{RadioButton}from"./components/radioButton/RadioButton.js";export{Toaster}from"./components/toaster/Toaster.js";export{Tooltip}from"./components/tooltips/Tooltip.js";export{Spinner}from"./components/spinner/Spinner.js";export{Stepper}from"./components/stepper/Stepper.js";export{Tag}from"./components/tag/Tag.js";export{IconButton}from"./components/icon-button/IconButton.js";export{TemplatePreview}from"./components/template-preview/TemplatePreview.js";export{WhatsappLikePreview}from"./components/template-preview/WhatsApp/WhatsAppLikePreview.js";export{WhatsappLikePreviewV2}from"./components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js";export{renderVariableUIForPreview}from"./components/template-preview/helpers/SmsTemplateHelper.js";export{WhatsAppFormatToHTML}from"./components/template-preview/helpers/WhatsAppFormatToHTML.js";export{VariableEditorHelper}from"./components/template-preview/helpers/VariableEditorHelper.js";export{ACTIONS_TYPES,CUSTOM_URL_NAME,HEADER_TYPES,TEMPLATE_EDITOR,TEMPLATE_STATUS}from"./components/template-preview/models/TemplateMeta.js";export{TemplateContextMapper}from"./components/template-context-mapper/TemplateContextMapper.js";export{getAllDataFromTemplateComponent}from"./components/template-context-mapper/utils/getDataFromTemplateComponent.js";export{validateIsUrl}from"./components/template-context-mapper/utils/validateIsUrl.js";export{FABMenu}from"./components/fab-menu/FABMenu.js";export{FloatingActionButton}from"./components/floating-action-button/FloatingActionButton.js";export{DROP_POSITION,DropdownToggleContainer,FAB_POSITION,FloatingActionButtonContainer,FloatingActionButtonOuterContainer,MENU_ALIGNMENT,StyledDropdown,TooltipStyled}from"./components/floating-action-button/FloatingActionButton.styles.js";export{ImageService}from"./components/image-compress/ImageCompress.js";export{BodyCaption,BodyLarge,BodyPrimary,BodyPrimaryLink,BodyRegular,BodySecondary,BodySecondaryLink,BodyTiny,ButtonLarge,ButtonRegular,Caption,Display,SubHeading,TitleLarge,TitleMedium,TitleRegular,TitleSmall}from"./components/TypographyStyle.js";export{Button}from"./components/button/Button.js";export{ProgressBarComponent,ProgressCompletedBar}from"./components/progress-bar/ProgressBarComponent.js";export{QueryBuilder}from"./components/QueryBuilder/QueryBuilder.js";export{BaseQueryBuilderNode}from"./components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";export{PropertyNode,PropertyNodeHeadless}from"./components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js";export{queryBuilderSlice}from"./components/QueryBuilder/redux/queryBuilder.reducer.js";export{queryBuilderCacheSlice}from"./components/QueryBuilder/redux/queryBuilderCache.reducer.js";export{AD_STRING_OPERATORS,ANY_AD_OPERATORS,ANY_IG_OPERATORS,BOOLEAN_OPERATORS,DATE_OPERATORS,EVENT_VALUES,FREQUENCY_OPERATORS,ICE_BREAKER_OPERATORS,IG_STRING_OPERATORS,INTEGER_OPERATORS,REACTION_OPERATORS,SPECIFIC_IG_OPERATORS,STRING_OPERATORS}from"./components/QueryBuilder/types/QueryBuilderOperator.type.js";export{StyledModal}from"./components/modals/styledModal.js";export{Dropdown}from"./components/dropdown/Dropdown.js";export{DropdownPopover}from"./components/dropdown/DropdownPopover/index.js";export{OpenedDropdown}from"./components/dropdown/OpenedDropdown/components/OpennedDropdown.js";export{MenuItemDropdown}from"./components/dropdown/MenuItem/MenuItem.js";export{AnalyticsCard}from"./components/analytics-card/AnalyticsCard.js";export{AnalyticsContainer,CardDataContainer}from"./components/analytics-card/AnalyticsCard.styled.js";export{Input}from"./components/input/Input.js";export{AnalyticsChip}from"./components/analytics-chips-and-dropdowns/AnalyticsChip.js";export{AnalyticsDropdown,EachItem}from"./components/analytics-chips-and-dropdowns/AnalyticsDropdown.js";export{AnalyticsMultiChip}from"./components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js";export{AVATAR_SIZE_VS_ICON_SIZE_MAP,Avatar,BACKGROUND_VS_TEXT_COLOR_MAP}from"./components/avatar/Avatar.js";export{Alert}from"./components/alerts/Alert.js";export{ALERT_TYPES,COLOR_CONFIG_MAP}from"./components/alerts/AlertHelper.js";export{RATIO,Thumbnail}from"./components/thumbnail/Thumbnail.js";export{Curtain}from"./components/curtain/Curtain.js";export{DatePicker}from"./components/datePicker/DatePicker.js";export{Loader,Switch,SwitchContainer,Thumb}from"./components/switch/Switch.js";export{SubscriptionPlan}from"./components/plans/SubscriptionPlan.js";export{SubscriptionPlanSelector}from"./components/plans/SubscriptionPlanSelector.js";export{TabItemComponent,Tabs}from"./components/tabs/Tabs.js";export{BikShimmer}from"./components/shimmer/ShimmerComponent/BikShimmer.js";export{TablePagination}from"./components/TablePagination/TablePagination.js";export{TablePaginationCard,TablePaginationCardStyled}from"./components/TablePagination/TablePaginationCard.js";export{StateModalComponent}from"./components/states-modal/StateModalComponent.js";export{DeleteConfirmationModal}from"./components/states-modal/DeleteConfirmationModal.js";export{ButtonActions,ButtonTypes,StateComponent,StateInterface}from"./components/states/StateComponent.js";export{WhatsAppTextEditor}from"./components/WhatsAppTextEditor/WhatsAppTextEditor.js";export{EditorActionTypes,WhatsAppTextEditorHeader}from"./components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js";export{BaseWhatsappContentLangHelper}from"./helpers/BaseWhatsappContentLang.helper.js";export{CardSelectionModal}from"./components/card-selection-modal/CardSelectionModal.js";export{BikImageCropper}from"./components/image-cropper/BikImageCropper.js";export{BikImagePipeline}from"./components/image-cropper/BikImagePipeline/BikImagePipeline.js";
|
|
1
|
+
import*as o from"./components/template-preview/constants/regexPatterns.js";export{o as regexPatterns};export{default as StringUtils}from"./utils/StringUtils.js";export{BASE_COLORS,COLORS,DEFAULT_THEME,FONTS}from"./constants/Theme.js";export{CheckBox}from"./components/checkBox/CheckBox.js";export{ListItem}from"./components/list-item/ListItem.js";export{Pagination}from"./components/pagination/Pagination.js";export{RadioButton}from"./components/radioButton/RadioButton.js";export{Toaster}from"./components/toaster/Toaster.js";export{Tooltip}from"./components/tooltips/Tooltip.js";export{Spinner}from"./components/spinner/Spinner.js";export{Stepper}from"./components/stepper/Stepper.js";export{Tag}from"./components/tag/Tag.js";export{IconButton}from"./components/icon-button/IconButton.js";export{TemplatePreview}from"./components/template-preview/TemplatePreview.js";export{WhatsappLikePreview}from"./components/template-preview/WhatsApp/WhatsAppLikePreview.js";export{WhatsappLikePreviewV2}from"./components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js";export{renderVariableUIForPreview}from"./components/template-preview/helpers/SmsTemplateHelper.js";export{WhatsAppFormatToHTML}from"./components/template-preview/helpers/WhatsAppFormatToHTML.js";export{VariableEditorHelper}from"./components/template-preview/helpers/VariableEditorHelper.js";export{ACTIONS_TYPES,CUSTOM_URL_NAME,HEADER_TYPES,TEMPLATE_EDITOR,TEMPLATE_STATUS}from"./components/template-preview/models/TemplateMeta.js";export{TemplateContextMapper}from"./components/template-context-mapper/TemplateContextMapper.js";export{getAllDataFromTemplateComponent}from"./components/template-context-mapper/utils/getDataFromTemplateComponent.js";export{validateIsUrl}from"./components/template-context-mapper/utils/validateIsUrl.js";export{FABMenu}from"./components/fab-menu/FABMenu.js";export{FloatingActionButton}from"./components/floating-action-button/FloatingActionButton.js";export{DROP_POSITION,DropdownToggleContainer,FAB_POSITION,FloatingActionButtonContainer,FloatingActionButtonOuterContainer,MENU_ALIGNMENT,StyledDropdown,TooltipStyled}from"./components/floating-action-button/FloatingActionButton.styles.js";export{ImageService}from"./components/image-compress/ImageCompress.js";export{BodyCaption,BodyLarge,BodyPrimary,BodyPrimaryLink,BodyRegular,BodySecondary,BodySecondaryLink,BodyTiny,ButtonLarge,ButtonRegular,Caption,Display,SubHeading,TitleLarge,TitleMedium,TitleRegular,TitleSmall}from"./components/TypographyStyle.js";export{Button}from"./components/button/Button.js";export{ProgressBarComponent,ProgressCompletedBar}from"./components/progress-bar/ProgressBarComponent.js";export{QueryBuilder}from"./components/QueryBuilder/QueryBuilder.js";export{BaseQueryBuilderNode}from"./components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";export{PropertyNode,PropertyNodeHeadless}from"./components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js";export{queryBuilderSlice}from"./components/QueryBuilder/redux/queryBuilder.reducer.js";export{queryBuilderCacheSlice}from"./components/QueryBuilder/redux/queryBuilderCache.reducer.js";export{AD_STRING_OPERATORS,ANY_AD_OPERATORS,ANY_IG_OPERATORS,BOOLEAN_OPERATORS,DATE_OPERATORS,EVENT_VALUES,FREQUENCY_OPERATORS,ICE_BREAKER_OPERATORS,IG_STRING_OPERATORS,INTEGER_OPERATORS,REACTION_OPERATORS,SPECIFIC_IG_OPERATORS,STRING_OPERATORS}from"./components/QueryBuilder/types/QueryBuilderOperator.type.js";export{StyledModal}from"./components/modals/styledModal.js";export{Dropdown}from"./components/dropdown/Dropdown.js";export{DropdownPopover}from"./components/dropdown/DropdownPopover/index.js";export{OpenedDropdown}from"./components/dropdown/OpenedDropdown/components/OpennedDropdown.js";export{MenuItemDropdown}from"./components/dropdown/MenuItem/MenuItem.js";export{AnalyticsCard}from"./components/analytics-card/AnalyticsCard.js";export{AnalyticsContainer,CardDataContainer}from"./components/analytics-card/AnalyticsCard.styled.js";export{Input}from"./components/input/Input.js";export{AnalyticsChip}from"./components/analytics-chips-and-dropdowns/AnalyticsChip.js";export{AnalyticsDropdown,EachItem}from"./components/analytics-chips-and-dropdowns/AnalyticsDropdown.js";export{AnalyticsMultiChip}from"./components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js";export{AVATAR_SIZE_VS_ICON_SIZE_MAP,Avatar,BACKGROUND_VS_TEXT_COLOR_MAP}from"./components/avatar/Avatar.js";export{Alert}from"./components/alerts/Alert.js";export{ALERT_TYPES,COLOR_CONFIG_MAP}from"./components/alerts/AlertHelper.js";export{RATIO,Thumbnail}from"./components/thumbnail/Thumbnail.js";export{Curtain}from"./components/curtain/Curtain.js";export{DatePicker}from"./components/datePicker/DatePicker.js";export{Loader,Switch,SwitchContainer,Thumb}from"./components/switch/Switch.js";export{SubscriptionPlan}from"./components/plans/SubscriptionPlan.js";export{SubscriptionPlanSelector}from"./components/plans/SubscriptionPlanSelector.js";export{TabItemComponent,Tabs}from"./components/tabs/Tabs.js";export{BikShimmer}from"./components/shimmer/ShimmerComponent/BikShimmer.js";export{TablePagination}from"./components/TablePagination/TablePagination.js";export{TablePaginationCard,TablePaginationCardStyled}from"./components/TablePagination/TablePaginationCard.js";export{StateModalComponent}from"./components/states-modal/StateModalComponent.js";export{DeleteConfirmationModal}from"./components/states-modal/DeleteConfirmationModal.js";export{ButtonActions,ButtonTypes,StateComponent,StateInterface}from"./components/states/StateComponent.js";export{WhatsAppTextEditor}from"./components/WhatsAppTextEditor/WhatsAppTextEditor.js";export{EditorActionTypes,WhatsAppTextEditorHeader}from"./components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js";export{BaseWhatsappContentLangHelper}from"./helpers/BaseWhatsappContentLang.helper.js";export{CardSelectionModal}from"./components/card-selection-modal/CardSelectionModal.js";export{BikImageCropper}from"./components/image-cropper/BikImageCropper.js";export{BikImagePipeline}from"./components/image-cropper/BikImagePipeline/BikImagePipeline.js";import"react/jsx-runtime";import"react";import"./components/accordion/Accordion.style.js";import"./components/accordion/AccordionArrow.js";import"./components/curtain/CurtainHelper.js";import"./components/file-uploader/FileUploaderStyle.js";export{ColourInput}from"./components/colourInput/ColourInput.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{commonjsGlobal as t}from"../../_virtual/_commonjsHelpers.js";var e="Expected a function",n=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,v=a||s||Function("return this")(),l=Object.prototype.toString,p=Math.max,m=Math.min,b=function(){return v.Date.now()};function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function d(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&l.call(t)==r}(t))return n;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var a=u.test(t);return a||f.test(t)?c(t.slice(2),a?2:8):o.test(t)?n:+t}var j=function(t,n,r){var i,o,u,f,c,a,s=0,v=!1,l=!1,j=!0;if("function"!=typeof t)throw new TypeError(e);function O(e){var n=i,r=o;return i=o=void 0,s=e,f=t.apply(r,n)}function g(t){var e=t-a;return void 0===a||e>=n||e<0||l&&t-s>=u}function h(){var t=b();if(g(t))return x(t);c=setTimeout(h,function(t){var e=n-(t-a);return l?m(e,u-(t-s)):e}(t))}function x(t){return c=void 0,j&&i?O(t):(i=o=void 0,f)}function T(){var t=b(),e=g(t);if(i=arguments,o=this,a=t,e){if(void 0===c)return function(t){return s=t,c=setTimeout(h,n),v?O(t):f}(a);if(l)return c=setTimeout(h,n),O(a)}return void 0===c&&(c=setTimeout(h,n)),f}return n=d(n)||0,y(r)&&(v=!!r.leading,u=(l="maxWait"in r)?p(d(r.maxWait)||0,n):u,j="trailing"in r?!!r.trailing:j),T.cancel=function(){void 0!==c&&clearTimeout(c),s=0,i=a=o=c=void 0},T.flush=function(){return void 0===c?f:x(b())},T};export{j as default};
|