@bikdotai/bik-component-library 0.0.264-beta.9 → 0.0.264
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/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +1 -0
- package/dist/cjs/components/dropdown/Dropdown.js +1 -1
- package/dist/cjs/components/stepper/WorkingStepper.d.ts +1 -0
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +0 -3
- package/dist/cjs/components/template-context-mapper/modalElements/Body.js +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -2
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/bik-layout/MockMenus.d.ts +1 -0
- package/dist/esm/components/dropdown/Dropdown.js +1 -1
- package/dist/esm/components/stepper/WorkingStepper.d.ts +1 -0
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +0 -3
- package/dist/esm/components/template-context-mapper/modalElements/Body.js +5 -5
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -2
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.d.ts +0 -41
- package/dist/cjs/components/add-variableV2/AddVariableV2.js +0 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.d.ts +0 -6
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +0 -161
- package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.d.ts +0 -15
- package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js +0 -1
- package/dist/cjs/components/add-variableV2/backIcon.d.ts +0 -3
- package/dist/cjs/components/add-variableV2/backIcon.js +0 -1
- package/dist/cjs/components/add-variableV2/closeIcon.d.ts +0 -3
- package/dist/cjs/components/add-variableV2/closeIcon.js +0 -1
- package/dist/cjs/components/add-variableV2/icon-props.d.ts +0 -7
- package/dist/cjs/components/add-variableV2/index.d.ts +0 -1
- package/dist/cjs/components/add-variableV2/plusIcon.d.ts +0 -3
- package/dist/cjs/components/add-variableV2/plusIcon.js +0 -1
- package/dist/cjs/components/add-variableV2/rightFilled.d.ts +0 -2
- package/dist/cjs/components/add-variableV2/rightFilled.js +0 -1
- package/dist/cjs/components/add-variableV2/undoIcon.d.ts +0 -3
- package/dist/cjs/components/add-variableV2/undoIcon.js +0 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.d.ts +0 -41
- package/dist/esm/components/add-variableV2/AddVariableV2.js +0 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.d.ts +0 -6
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.js +0 -161
- package/dist/esm/components/add-variableV2/AddVariableV2SideModal.d.ts +0 -15
- package/dist/esm/components/add-variableV2/AddVariableV2SideModal.js +0 -1
- package/dist/esm/components/add-variableV2/backIcon.d.ts +0 -3
- package/dist/esm/components/add-variableV2/backIcon.js +0 -1
- package/dist/esm/components/add-variableV2/closeIcon.d.ts +0 -3
- package/dist/esm/components/add-variableV2/closeIcon.js +0 -1
- package/dist/esm/components/add-variableV2/icon-props.d.ts +0 -7
- package/dist/esm/components/add-variableV2/index.d.ts +0 -1
- package/dist/esm/components/add-variableV2/plusIcon.d.ts +0 -3
- package/dist/esm/components/add-variableV2/plusIcon.js +0 -1
- package/dist/esm/components/add-variableV2/rightFilled.d.ts +0 -2
- package/dist/esm/components/add-variableV2/rightFilled.js +0 -1
- package/dist/esm/components/add-variableV2/undoIcon.d.ts +0 -3
- package/dist/esm/components/add-variableV2/undoIcon.js +0 -1
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var o=e(require("styled-components"));const t=o.default.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 250;
|
|
4
|
-
*::-webkit-scrollbar {
|
|
5
|
-
display: none;
|
|
6
|
-
}
|
|
7
|
-
* {
|
|
8
|
-
-ms-overflow-style: none;
|
|
9
|
-
scrollbar-width: none;
|
|
10
|
-
}
|
|
11
|
-
.popup {
|
|
12
|
-
background: white;
|
|
13
|
-
width: 566px;
|
|
14
|
-
height: 100vh;
|
|
15
|
-
border-radius: 8px;
|
|
16
|
-
overflow-y: scroll;
|
|
17
|
-
.sticky__bar {
|
|
18
|
-
z-index: 10;
|
|
19
|
-
position: sticky;
|
|
20
|
-
top: 0;
|
|
21
|
-
background: white;
|
|
22
|
-
|
|
23
|
-
.header__bar {
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: space-between;
|
|
26
|
-
align-items: center;
|
|
27
|
-
padding: 24px 24px 16px 24px;
|
|
28
|
-
border-bottom: 1px solid var(--stroke-color-stroke-primary, #e0e0e0);
|
|
29
|
-
.add__variable {
|
|
30
|
-
font-family: 'Inter';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
font-size: 20px;
|
|
34
|
-
line-height: 24px;
|
|
35
|
-
|
|
36
|
-
color: #212121;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.search__bar {
|
|
41
|
-
padding: 24px 24px 8px 24px;
|
|
42
|
-
}
|
|
43
|
-
.nav__bar {
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
align-items: center;
|
|
47
|
-
border-bottom: 1px solid var(--stroke-color-stroke-primary, #e0e0e0);
|
|
48
|
-
background: var(--surface-color-surface-hovered, #f0f0f0);
|
|
49
|
-
padding: 10px 24px;
|
|
50
|
-
|
|
51
|
-
font-family: Inter;
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
font-style: normal;
|
|
54
|
-
|
|
55
|
-
line-height: 20px;
|
|
56
|
-
|
|
57
|
-
.left__nav {
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
gap: 8px;
|
|
61
|
-
color: var(--content-color-content-primary, #212121);
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
.right__nav {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
gap: 8px;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
color: var(--content-color-content-secondary, #616161);
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
hr {
|
|
75
|
-
margin: 0;
|
|
76
|
-
border: 0.2px solid #e0e0e0;
|
|
77
|
-
}
|
|
78
|
-
.wrapper {
|
|
79
|
-
padding: 4px 24px 16px 24px;
|
|
80
|
-
.search__bar {
|
|
81
|
-
padding-bottom: 16px;
|
|
82
|
-
input {
|
|
83
|
-
width: 100%;
|
|
84
|
-
padding: 6px 8px;
|
|
85
|
-
border: 1px solid #e0e0e0;
|
|
86
|
-
border-radius: 4px;
|
|
87
|
-
background-image: url('https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F5bc8962e-af88-4692-80f1-631ac4a5c6c7?alt=media&token=7931b07d-cb55-43aa-be75-9ddac4b8ddad');
|
|
88
|
-
background-repeat: no-repeat;
|
|
89
|
-
background-position: 95% 50%;
|
|
90
|
-
background-size: 20px 20px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
.heading__font {
|
|
94
|
-
font-family: 'Inter';
|
|
95
|
-
font-style: normal;
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
font-size: 16px;
|
|
98
|
-
line-height: 24px;
|
|
99
|
-
padding: 12px 0 0 0;
|
|
100
|
-
color: #212121;
|
|
101
|
-
}
|
|
102
|
-
.sub_heading__font {
|
|
103
|
-
font-family: 'Inter';
|
|
104
|
-
font-style: normal;
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
line-height: 24px;
|
|
107
|
-
color: #212121;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.items {
|
|
111
|
-
display: flex;
|
|
112
|
-
flex-wrap: wrap;
|
|
113
|
-
grid-gap: 8px;
|
|
114
|
-
.block {
|
|
115
|
-
display: block;
|
|
116
|
-
min-width: 100%;
|
|
117
|
-
flex-wrap: nowrap;
|
|
118
|
-
width: 430px;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
position: relative;
|
|
123
|
-
|
|
124
|
-
.bottom__padding {
|
|
125
|
-
background: white;
|
|
126
|
-
min-height: 30px;
|
|
127
|
-
width: 100%;
|
|
128
|
-
position: sticky;
|
|
129
|
-
z-index: 10;
|
|
130
|
-
bottom: 0px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
`;o.default.div`
|
|
134
|
-
.box {
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
padding: 6px 12px 6px 8px;
|
|
139
|
-
gap: 8px;
|
|
140
|
-
width: auto;
|
|
141
|
-
height: 32px;
|
|
142
|
-
|
|
143
|
-
background: ${e=>(null==e?void 0:e.isAvailable)?"#f0f0f0":"#fafafa"};
|
|
144
|
-
|
|
145
|
-
border: 1px solid #e0e0e0;
|
|
146
|
-
border-radius: 4px;
|
|
147
|
-
.icon {
|
|
148
|
-
color: ${e=>(null==e?void 0:e.isAvailable)?"#212121":"#bdbdbd"};
|
|
149
|
-
display: flex;
|
|
150
|
-
align-items: center;
|
|
151
|
-
}
|
|
152
|
-
.variable__name {
|
|
153
|
-
font-family: 'Inter';
|
|
154
|
-
font-style: normal;
|
|
155
|
-
font-weight: 400;
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
line-height: 20px;
|
|
158
|
-
color: ${e=>(null==e?void 0:e.isAvailable)?"#212121":"#bdbdbd"};
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
`,exports.AddVariableStyled=t;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VariableListInterfaceV2 } from "./AddVariableV2";
|
|
3
|
-
export interface VariableV2SideModalProps {
|
|
4
|
-
data: VariableListInterfaceV2[];
|
|
5
|
-
showVariable: any;
|
|
6
|
-
setShowVariable: any;
|
|
7
|
-
variableValue?: any;
|
|
8
|
-
setVariableValue?: any;
|
|
9
|
-
placeholder: string;
|
|
10
|
-
customTrigger?: any;
|
|
11
|
-
isSearchRequired?: boolean;
|
|
12
|
-
leftPosition?: number;
|
|
13
|
-
pickerSize?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const AddVariableV2SideModal: React.FC<VariableV2SideModalProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react-dom"),r=require("./AddVariableV2.js"),d=require("../side-modal/SideModal.style.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(a);exports.AddVariableV2SideModal=a=>i.default.createPortal(e.jsx(d.SideModalStyle,{children:e.jsx(d.SideModalContainer,{children:e.jsx(r.default,{data:a.data,showVariable:a.showVariable,setShowVariable:a.setShowVariable,placeholder:"Add a variable",customTrigger:a.customTrigger})})}),document.body);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=t=>{const{color:i,height:l,width:r}=t;return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:r||"16",height:l||"16",viewBox:"0 0 24 24",fill:"none"},{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L7.41421 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H7.41421L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z",fill:i||"#212121"})}))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=t=>{const{width:r,height:s}=t;return e.jsx(e.Fragment,{children:e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:r||"24",height:s||"24",viewBox:"0 0 24 24",fill:"none"},{children:e.jsx("path",{d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"#212121"})}))})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AddVariableV2SideModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=t=>{const{width:r,height:s,color:l}=t;return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",height:s||"20",width:r||"20",color:l||"#616161",className:"icon",style:{display:"block"}},{children:e.jsx("path",{fill:"currentColor",d:"M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V5Z"})}))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.RightFilled=()=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:e.jsx("g",Object.assign({id:"carat_right"},{children:e.jsx("path",{id:"shape",d:"M6 5.60941C6 5.01547 6.71809 4.71803 7.13807 5.138L9.5286 7.52853C9.78895 7.78888 9.78895 8.21099 9.5286 8.47134L7.13807 10.8619C6.7181 11.2818 6 10.9844 6 10.3905V5.60941Z",fill:"#212121"})}))}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=t=>{const{width:i,height:s}=t;return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:i||"20",height:s||"20",viewBox:"0 0 20 20",fill:"none"},{children:e.jsx("g",Object.assign({id:"arrow_undo"},{children:e.jsx("path",{id:"shape",fillRule:"evenodd",clipRule:"evenodd",d:"M6.42259 3.57757C6.74803 3.90301 6.74803 4.43065 6.42259 4.75609L5.34518 5.8335H12.5C15.2614 5.8335 17.5 8.07207 17.5 10.8335C17.5 13.5949 15.2614 15.8335 12.5 15.8335H6.66667C6.20643 15.8335 5.83333 15.4604 5.83333 15.0002C5.83333 14.5399 6.20643 14.1668 6.66667 14.1668H12.5C14.3409 14.1668 15.8333 12.6744 15.8333 10.8335C15.8333 8.99255 14.3409 7.50016 12.5 7.50016H5.34518L6.42259 8.57757C6.74803 8.90301 6.74803 9.43065 6.42259 9.75608C6.09715 10.0815 5.56951 10.0815 5.24408 9.75608L2.74408 7.25609C2.41864 6.93065 2.41864 6.40301 2.74408 6.07757L5.24408 3.57757C5.56951 3.25214 6.09715 3.25214 6.42259 3.57757Z",fill:"#616161"})}))}))};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface VariableListInterfaceV2 {
|
|
3
|
-
payloadVariables: PayloadVariables;
|
|
4
|
-
}
|
|
5
|
-
export interface PayloadVariables {
|
|
6
|
-
displayName: string;
|
|
7
|
-
description: string;
|
|
8
|
-
orderId: number;
|
|
9
|
-
variables?: any;
|
|
10
|
-
}
|
|
11
|
-
export interface Variable {
|
|
12
|
-
description?: string;
|
|
13
|
-
displayName: string;
|
|
14
|
-
actualValue: string;
|
|
15
|
-
variableType: string;
|
|
16
|
-
isAvailable: boolean;
|
|
17
|
-
isSubHeader?: boolean;
|
|
18
|
-
variables?: {
|
|
19
|
-
[key: string]: Variable;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface AddVariableProps {
|
|
23
|
-
data: VariableListInterfaceV2[];
|
|
24
|
-
showVariable: any;
|
|
25
|
-
setShowVariable: any;
|
|
26
|
-
variableValue?: any;
|
|
27
|
-
setVariableValue?: any;
|
|
28
|
-
placeholder: string;
|
|
29
|
-
customTrigger?: any;
|
|
30
|
-
isSearchRequired?: boolean;
|
|
31
|
-
leftPosition?: number;
|
|
32
|
-
pickerSize?: string;
|
|
33
|
-
}
|
|
34
|
-
type Props = AddVariableProps;
|
|
35
|
-
export interface VariableBoxProps {
|
|
36
|
-
item: Variable;
|
|
37
|
-
raw?: string;
|
|
38
|
-
parentKey?: string;
|
|
39
|
-
}
|
|
40
|
-
declare const AddVariableV2: React.FC<Props>;
|
|
41
|
-
export default AddVariableV2;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as a,jsxs as i,Fragment as e}from"react/jsx-runtime";import{useState as s,useEffect as l}from"react";import{AddVariableStyled as r}from"./AddVariableV2.styled.js";import c from"./backIcon.js";import d from"./closeIcon.js";import n from"./plusIcon.js";import{RightFilled as t}from"./rightFilled.js";import o from"./undoIcon.js";import{Button as b}from"../button/Button.js";import{IconButton as m}from"../icon-button/IconButton.js";import{SearchBar as p}from"../searchBar/searchBar.js";import{TitleSmall as v,BodyCaption as g}from"../TypographyStyle.js";const y=y=>{const{data:h}=y,[j,u]=s({}),[V,O]=s(),[N,_]=s(""),[f,k]=s("");l((()=>{const a={};h.forEach((i=>{a[i.payloadVariables.displayName]=[]})),O(a)}),[h]);const S=(a,i)=>{const e=h.find((a=>a.payloadVariables.displayName===i));if(e){let s=e.payloadVariables;a.forEach(((a,i)=>{s=s.variables[a]})),u((a=>Object.assign(Object.assign({},a),{[i]:s})))}},T=i=>a(b,{disabled:!i.item.isAvailable,size:"chip",LeadingIcon:i.item.isSubHeader?void 0:n,TrailingIcon:()=>i.item.isSubHeader?a("div",Object.assign({className:"icon-trailing",style:{display:"flex"}},{children:a(t,{})})):a(e,{}),buttonText:i.item.displayName}),I=(i,e)=>a("div",Object.assign({onClick:i.isSubHeader?()=>{const a=[...V[N],e];S(a,N),O((i=>Object.assign(Object.assign({},i),{[N]:a})))}:()=>{y.customTrigger?(y.customTrigger(i),y.setShowVariable(!1)):y.setVariableValue(i.actualValue)}},{children:a(T,{item:i})}));return a(r,Object.assign({id:"varList",onClick:a=>{a.stopPropagation()},pickerSize:y.pickerSize||"large"},{children:y.showVariable&&i("div",Object.assign({className:"popup"},{children:[i("div",Object.assign({className:"sticky__bar"},{children:[i("div",Object.assign({className:"header__bar"},{children:[a("div",Object.assign({className:"add__variable"},{children:"Add a new variable"})),a("div",Object.assign({className:"close__icon",style:{cursor:"pointer"},onClick:()=>{y.setShowVariable(!1)}},{children:a(d,{})}))]})),a("div",Object.assign({className:"search__bar"},{children:a(p,{width:"100%",isEnabled:!0,onChange:a=>{k(a)},onEnter:()=>{},placeholder:"Search...",variant:"default"})})),N&&V[N].length>0&&i("div",Object.assign({className:"nav__bar",style:{marginTop:8}},{children:[i("div",Object.assign({className:"left__nav"},{children:[a(m,{Icon:c,style:{color:"#919191",display:"flex"},onClick:()=>{const a=V[N].slice(0,-1);S(a,N),O((i=>Object.assign(Object.assign({},i),{[N]:a}))),a.length||_("")}}),i("div",Object.assign({className:"block"},{children:[a(v,{children:j[N].displayName}),j[N].description&&a(g,{children:j[N].description})]}))]})),i("div",Object.assign({className:"right__nav"},{children:[a(m,{Icon:o,style:{display:"flex"},onClick:()=>{S([],N),O((a=>Object.assign(Object.assign({},a),{[N]:[]}))),_("")}}),a("div",{children:"First page"})]}))]}))]})),a("div",Object.assign({className:"wrapper"},{children:a("div",Object.assign({className:"list__map"},{children:i("div",Object.assign({className:"items"},{children:[!N&&y.data.map(((s,l)=>{var r,c,d,n;let t=[];return f&&(t=Object.keys(s.payloadVariables.variables).filter((a=>{var i;return null===(i=s.payloadVariables.variables[a].displayName)||void 0===i?void 0:i.includes(f)}))),i(e,{children:[f?t.length>0?i("div",Object.assign({className:"block"},{children:[a("div",Object.assign({className:"heading__font"},{children:null===(r=null==s?void 0:s.payloadVariables)||void 0===r?void 0:r.displayName})),a(g,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null===(c=null==s?void 0:s.payloadVariables)||void 0===c?void 0:c.description}))]})):a(e,{}):i("div",Object.assign({className:"block"},{children:[a("div",Object.assign({className:"heading__font"},{children:null===(d=null==s?void 0:s.payloadVariables)||void 0===d?void 0:d.displayName})),a(g,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null===(n=null==s?void 0:s.payloadVariables)||void 0===n?void 0:n.description}))]})),Object.keys(s.payloadVariables.variables).map((i=>{var l;return f?(null===(l=s.payloadVariables.variables[i].displayName)||void 0===l?void 0:l.includes(f))?a("div",Object.assign({onClick:s.payloadVariables.variables[i].isSubHeader?()=>{const a=[...V[s.payloadVariables.displayName],i];S(a,s.payloadVariables.displayName),O((i=>Object.assign(Object.assign({},i),{[s.payloadVariables.displayName]:a}))),_(s.payloadVariables.displayName)}:()=>{y.customTrigger?(y.customTrigger(s.payloadVariables.variables[i]),y.setShowVariable(!1)):y.setVariableValue(s.payloadVariables.variables[i].actualValue)}},{children:a(T,{item:s.payloadVariables.variables[i]})})):a(e,{}):a("div",Object.assign({onClick:s.payloadVariables.variables[i].isSubHeader?()=>{const a=[...V[s.payloadVariables.displayName],i];S(a,s.payloadVariables.displayName),O((i=>Object.assign(Object.assign({},i),{[s.payloadVariables.displayName]:a}))),_(s.payloadVariables.displayName)}:()=>{y.customTrigger?(y.customTrigger(s.payloadVariables.variables[i]),y.setShowVariable(!1)):y.setVariableValue(s.payloadVariables.variables[i].actualValue)}},{children:a(T,{item:s.payloadVariables.variables[i]})}))}))]})})),N&&a("div",Object.assign({className:"list__map"},{children:a("div",Object.assign({className:"items",style:{marginTop:16}},{children:Object.keys(j[N].variables).map(((i,s)=>{var l;return f?(null===(l=j[N].variables[i].displayName)||void 0===l?void 0:l.includes(f))?I(j[N].variables[i],i):a(e,{}):I(j[N].variables[i],i)}))}))}))]}))}))})),a("div",{className:"bottom__padding"})]}))}))};export{y as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const AddVariableStyled: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
-
pickerSize: string;
|
|
3
|
-
}, never>;
|
|
4
|
-
export declare const VariableBoxStyled: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
-
isAvailable?: boolean | undefined;
|
|
6
|
-
}, never>;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import e from"styled-components";const o=e.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 250;
|
|
4
|
-
*::-webkit-scrollbar {
|
|
5
|
-
display: none;
|
|
6
|
-
}
|
|
7
|
-
* {
|
|
8
|
-
-ms-overflow-style: none;
|
|
9
|
-
scrollbar-width: none;
|
|
10
|
-
}
|
|
11
|
-
.popup {
|
|
12
|
-
background: white;
|
|
13
|
-
width: 566px;
|
|
14
|
-
height: 100vh;
|
|
15
|
-
border-radius: 8px;
|
|
16
|
-
overflow-y: scroll;
|
|
17
|
-
.sticky__bar {
|
|
18
|
-
z-index: 10;
|
|
19
|
-
position: sticky;
|
|
20
|
-
top: 0;
|
|
21
|
-
background: white;
|
|
22
|
-
|
|
23
|
-
.header__bar {
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: space-between;
|
|
26
|
-
align-items: center;
|
|
27
|
-
padding: 24px 24px 16px 24px;
|
|
28
|
-
border-bottom: 1px solid var(--stroke-color-stroke-primary, #e0e0e0);
|
|
29
|
-
.add__variable {
|
|
30
|
-
font-family: 'Inter';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
font-size: 20px;
|
|
34
|
-
line-height: 24px;
|
|
35
|
-
|
|
36
|
-
color: #212121;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.search__bar {
|
|
41
|
-
padding: 24px 24px 8px 24px;
|
|
42
|
-
}
|
|
43
|
-
.nav__bar {
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
align-items: center;
|
|
47
|
-
border-bottom: 1px solid var(--stroke-color-stroke-primary, #e0e0e0);
|
|
48
|
-
background: var(--surface-color-surface-hovered, #f0f0f0);
|
|
49
|
-
padding: 10px 24px;
|
|
50
|
-
|
|
51
|
-
font-family: Inter;
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
font-style: normal;
|
|
54
|
-
|
|
55
|
-
line-height: 20px;
|
|
56
|
-
|
|
57
|
-
.left__nav {
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
gap: 8px;
|
|
61
|
-
color: var(--content-color-content-primary, #212121);
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
.right__nav {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
gap: 8px;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
color: var(--content-color-content-secondary, #616161);
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
hr {
|
|
75
|
-
margin: 0;
|
|
76
|
-
border: 0.2px solid #e0e0e0;
|
|
77
|
-
}
|
|
78
|
-
.wrapper {
|
|
79
|
-
padding: 4px 24px 16px 24px;
|
|
80
|
-
.search__bar {
|
|
81
|
-
padding-bottom: 16px;
|
|
82
|
-
input {
|
|
83
|
-
width: 100%;
|
|
84
|
-
padding: 6px 8px;
|
|
85
|
-
border: 1px solid #e0e0e0;
|
|
86
|
-
border-radius: 4px;
|
|
87
|
-
background-image: url('https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F5bc8962e-af88-4692-80f1-631ac4a5c6c7?alt=media&token=7931b07d-cb55-43aa-be75-9ddac4b8ddad');
|
|
88
|
-
background-repeat: no-repeat;
|
|
89
|
-
background-position: 95% 50%;
|
|
90
|
-
background-size: 20px 20px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
.heading__font {
|
|
94
|
-
font-family: 'Inter';
|
|
95
|
-
font-style: normal;
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
font-size: 16px;
|
|
98
|
-
line-height: 24px;
|
|
99
|
-
padding: 12px 0 0 0;
|
|
100
|
-
color: #212121;
|
|
101
|
-
}
|
|
102
|
-
.sub_heading__font {
|
|
103
|
-
font-family: 'Inter';
|
|
104
|
-
font-style: normal;
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
line-height: 24px;
|
|
107
|
-
color: #212121;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.items {
|
|
111
|
-
display: flex;
|
|
112
|
-
flex-wrap: wrap;
|
|
113
|
-
grid-gap: 8px;
|
|
114
|
-
.block {
|
|
115
|
-
display: block;
|
|
116
|
-
min-width: 100%;
|
|
117
|
-
flex-wrap: nowrap;
|
|
118
|
-
width: 430px;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
position: relative;
|
|
123
|
-
|
|
124
|
-
.bottom__padding {
|
|
125
|
-
background: white;
|
|
126
|
-
min-height: 30px;
|
|
127
|
-
width: 100%;
|
|
128
|
-
position: sticky;
|
|
129
|
-
z-index: 10;
|
|
130
|
-
bottom: 0px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
`;e.div`
|
|
134
|
-
.box {
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
padding: 6px 12px 6px 8px;
|
|
139
|
-
gap: 8px;
|
|
140
|
-
width: auto;
|
|
141
|
-
height: 32px;
|
|
142
|
-
|
|
143
|
-
background: ${e=>(null==e?void 0:e.isAvailable)?"#f0f0f0":"#fafafa"};
|
|
144
|
-
|
|
145
|
-
border: 1px solid #e0e0e0;
|
|
146
|
-
border-radius: 4px;
|
|
147
|
-
.icon {
|
|
148
|
-
color: ${e=>(null==e?void 0:e.isAvailable)?"#212121":"#bdbdbd"};
|
|
149
|
-
display: flex;
|
|
150
|
-
align-items: center;
|
|
151
|
-
}
|
|
152
|
-
.variable__name {
|
|
153
|
-
font-family: 'Inter';
|
|
154
|
-
font-style: normal;
|
|
155
|
-
font-weight: 400;
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
line-height: 20px;
|
|
158
|
-
color: ${e=>(null==e?void 0:e.isAvailable)?"#212121":"#bdbdbd"};
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
`;export{o as AddVariableStyled};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VariableListInterfaceV2 } from "./AddVariableV2";
|
|
3
|
-
export interface VariableV2SideModalProps {
|
|
4
|
-
data: VariableListInterfaceV2[];
|
|
5
|
-
showVariable: any;
|
|
6
|
-
setShowVariable: any;
|
|
7
|
-
variableValue?: any;
|
|
8
|
-
setVariableValue?: any;
|
|
9
|
-
placeholder: string;
|
|
10
|
-
customTrigger?: any;
|
|
11
|
-
isSearchRequired?: boolean;
|
|
12
|
-
leftPosition?: number;
|
|
13
|
-
pickerSize?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const AddVariableV2SideModal: React.FC<VariableV2SideModalProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import a from"react-dom";import e from"./AddVariableV2.js";import{SideModalStyle as o,SideModalContainer as t}from"../side-modal/SideModal.style.js";const i=i=>a.createPortal(r(o,{children:r(t,{children:r(e,{data:i.data,showVariable:i.showVariable,setShowVariable:i.setShowVariable,placeholder:"Add a variable",customTrigger:i.customTrigger})})}),document.body);export{i as AddVariableV2SideModal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";const t=t=>{const{color:i,height:l,width:o}=t;return e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:o||"16",height:l||"16",viewBox:"0 0 24 24",fill:"none"},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L7.41421 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H7.41421L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z",fill:i||"#212121"})}))};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t,Fragment as e}from"react/jsx-runtime";const i=i=>{const{width:h,height:n}=i;return t(e,{children:t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:h||"24",height:n||"24",viewBox:"0 0 24 24",fill:"none"},{children:t("path",{d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"#212121"})}))})};export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AddVariableV2SideModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";const o=o=>{const{width:e,height:l,color:r}=o;return t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",height:l||"20",width:e||"20",color:r||"#616161",className:"icon",style:{display:"block"}},{children:t("path",{fill:"currentColor",d:"M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V5Z"})}))};export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";const t=()=>i("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:i("g",Object.assign({id:"carat_right"},{children:i("path",{id:"shape",d:"M6 5.60941C6 5.01547 6.71809 4.71803 7.13807 5.138L9.5286 7.52853C9.78895 7.78888 9.78895 8.21099 9.5286 8.47134L7.13807 10.8619C6.7181 11.2818 6 10.9844 6 10.3905V5.60941Z",fill:"#212121"})}))}));export{t as RightFilled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";const i=i=>{const{width:t,height:n}=i;return e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t||"20",height:n||"20",viewBox:"0 0 20 20",fill:"none"},{children:e("g",Object.assign({id:"arrow_undo"},{children:e("path",{id:"shape",fillRule:"evenodd",clipRule:"evenodd",d:"M6.42259 3.57757C6.74803 3.90301 6.74803 4.43065 6.42259 4.75609L5.34518 5.8335H12.5C15.2614 5.8335 17.5 8.07207 17.5 10.8335C17.5 13.5949 15.2614 15.8335 12.5 15.8335H6.66667C6.20643 15.8335 5.83333 15.4604 5.83333 15.0002C5.83333 14.5399 6.20643 14.1668 6.66667 14.1668H12.5C14.3409 14.1668 15.8333 12.6744 15.8333 10.8335C15.8333 8.99255 14.3409 7.50016 12.5 7.50016H5.34518L6.42259 8.57757C6.74803 8.90301 6.74803 9.43065 6.42259 9.75608C6.09715 10.0815 5.56951 10.0815 5.24408 9.75608L2.74408 7.25609C2.41864 6.93065 2.41864 6.40301 2.74408 6.07757L5.24408 3.57757C5.56951 3.25214 6.09715 3.25214 6.42259 3.57757Z",fill:"#616161"})}))}))};export{i as default};
|