@bikdotai/bik-component-library 0.0.537-beta.10 → 0.0.537-beta.115

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.
Files changed (83) hide show
  1. package/dist/cjs/assets/icons/graph.svg.js +1 -0
  2. package/dist/cjs/assets/icons/sparkle.svg.js +1 -0
  3. package/dist/cjs/assets/icons/sync.svg.js +1 -0
  4. package/dist/cjs/components/TypographyStyle.d.ts +17 -0
  5. package/dist/cjs/components/TypographyStyle.js +82 -19
  6. package/dist/cjs/components/ai-modals/ActivateBikAI.d.ts +8 -0
  7. package/dist/cjs/components/ai-modals/ActivateBikAI.js +1 -0
  8. package/dist/cjs/components/ai-modals/AiCreditsExhausted.d.ts +8 -0
  9. package/dist/cjs/components/ai-modals/AiCreditsExhausted.js +1 -0
  10. package/dist/cjs/components/ai-modals/AiCreditsLow.d.ts +7 -0
  11. package/dist/cjs/components/ai-modals/AiCreditsLow.js +1 -0
  12. package/dist/cjs/components/ai-modals/AiSyncProgress.d.ts +8 -0
  13. package/dist/cjs/components/ai-modals/AiSyncProgress.js +1 -0
  14. package/dist/cjs/components/ai-modals/index.d.ts +4 -0
  15. package/dist/cjs/components/button/Button.js +1 -1
  16. package/dist/cjs/components/button/model.d.ts +1 -1
  17. package/dist/cjs/components/button/themes.d.ts +2 -2
  18. package/dist/cjs/components/button/themes.js +1 -1
  19. package/dist/cjs/components/carousel-preview/CarouselPreview.d.ts +0 -1
  20. package/dist/cjs/components/carousel-preview/CarouselPreview.js +1 -1
  21. package/dist/cjs/components/carousel-preview/CarouselPreview.style.d.ts +0 -1
  22. package/dist/cjs/components/carousel-preview/CarouselPreview.style.js +3 -5
  23. package/dist/cjs/components/icon-button/IconButton.styled.js +1 -1
  24. package/dist/cjs/components/icon-button/model.d.ts +1 -1
  25. package/dist/cjs/components/icon-button/theme.js +1 -1
  26. package/dist/cjs/components/progress-bar/ProgressBarComponent.js +1 -1
  27. package/dist/cjs/components/tag/Tag.js +1 -1
  28. package/dist/cjs/components/tag/Tag.styled.js +1 -1
  29. package/dist/cjs/components/tag/model.d.ts +11 -1
  30. package/dist/cjs/components/tag/model.js +1 -1
  31. package/dist/cjs/components/tag/themes.d.ts +1 -1
  32. package/dist/cjs/components/tag/themes.js +1 -1
  33. package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.d.ts +1 -3
  34. package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js +3 -7
  35. package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.d.ts +0 -1
  36. package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  37. package/dist/cjs/components/template-preview/TemplatePreview.d.ts +1 -2
  38. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  39. package/dist/cjs/hooks/useOutside.js +1 -1
  40. package/dist/cjs/index.d.ts +1 -0
  41. package/dist/cjs/index.js +1 -1
  42. package/dist/esm/assets/icons/graph.svg.js +1 -0
  43. package/dist/esm/assets/icons/sparkle.svg.js +1 -0
  44. package/dist/esm/assets/icons/sync.svg.js +1 -0
  45. package/dist/esm/components/TypographyStyle.d.ts +17 -0
  46. package/dist/esm/components/TypographyStyle.js +84 -21
  47. package/dist/esm/components/ai-modals/ActivateBikAI.d.ts +8 -0
  48. package/dist/esm/components/ai-modals/ActivateBikAI.js +1 -0
  49. package/dist/esm/components/ai-modals/AiCreditsExhausted.d.ts +8 -0
  50. package/dist/esm/components/ai-modals/AiCreditsExhausted.js +1 -0
  51. package/dist/esm/components/ai-modals/AiCreditsLow.d.ts +7 -0
  52. package/dist/esm/components/ai-modals/AiCreditsLow.js +1 -0
  53. package/dist/esm/components/ai-modals/AiSyncProgress.d.ts +8 -0
  54. package/dist/esm/components/ai-modals/AiSyncProgress.js +1 -0
  55. package/dist/esm/components/ai-modals/index.d.ts +4 -0
  56. package/dist/esm/components/button/Button.js +1 -1
  57. package/dist/esm/components/button/model.d.ts +1 -1
  58. package/dist/esm/components/button/themes.d.ts +2 -2
  59. package/dist/esm/components/button/themes.js +1 -1
  60. package/dist/esm/components/carousel-preview/CarouselPreview.d.ts +0 -1
  61. package/dist/esm/components/carousel-preview/CarouselPreview.js +1 -1
  62. package/dist/esm/components/carousel-preview/CarouselPreview.style.d.ts +0 -1
  63. package/dist/esm/components/carousel-preview/CarouselPreview.style.js +4 -6
  64. package/dist/esm/components/icon-button/IconButton.styled.js +1 -1
  65. package/dist/esm/components/icon-button/model.d.ts +1 -1
  66. package/dist/esm/components/icon-button/theme.js +1 -1
  67. package/dist/esm/components/progress-bar/ProgressBarComponent.js +1 -1
  68. package/dist/esm/components/tag/Tag.js +1 -1
  69. package/dist/esm/components/tag/Tag.styled.js +1 -1
  70. package/dist/esm/components/tag/model.d.ts +11 -1
  71. package/dist/esm/components/tag/model.js +1 -1
  72. package/dist/esm/components/tag/themes.d.ts +1 -1
  73. package/dist/esm/components/tag/themes.js +1 -1
  74. package/dist/esm/components/template-preview/EmailTemplatePreview.styled.d.ts +1 -3
  75. package/dist/esm/components/template-preview/EmailTemplatePreview.styled.js +16 -20
  76. package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.d.ts +0 -1
  77. package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  78. package/dist/esm/components/template-preview/TemplatePreview.d.ts +1 -2
  79. package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
  80. package/dist/esm/hooks/useOutside.js +1 -1
  81. package/dist/esm/index.d.ts +1 -0
  82. package/dist/esm/index.js +1 -1
  83. package/package.json +1 -1
@@ -28,7 +28,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
28
28
  overflow: hidden;
29
29
  display: -webkit-box;
30
30
  -webkit-line-clamp: ${e=>e.numberOfLines};
31
- `,f=e.div`
31
+ `,a=e.div`
32
32
  font-family: Inter;
33
33
  color: ${e=>e.color||i.text.primary};
34
34
  font-weight: ${t.title4.fontWeight};
@@ -38,7 +38,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
38
38
  overflow: hidden;
39
39
  display: -webkit-box;
40
40
  -webkit-line-clamp: ${e=>e.numberOfLines};
41
- `,a=e.div`
41
+ `,f=e.div`
42
42
  font-family: Inter;
43
43
  color: ${e=>e.color||i.text.primary};
44
44
  font-weight: ${t.titleRegular.fontWeight};
@@ -58,7 +58,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
58
58
  overflow: hidden;
59
59
  display: -webkit-box;
60
60
  -webkit-line-clamp: ${e=>e.numberOfLines};
61
- `,h=e.div`
61
+ `,d=e.div`
62
62
  font-family: Inter;
63
63
  color: ${e=>e.color||i.text.primary};
64
64
  font-weight: ${t.display.fontWeight};
@@ -68,7 +68,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
68
68
  overflow: hidden;
69
69
  display: -webkit-box;
70
70
  -webkit-line-clamp: ${e=>e.numberOfLines};
71
- `,d=e.div`
71
+ `,c=e.div`
72
72
  font-family: Inter;
73
73
  color: ${e=>e.color||i.text.primary};
74
74
  font-weight: ${t.bodyPrimary.fontWeight};
@@ -78,7 +78,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
78
78
  overflow: hidden;
79
79
  display: -webkit-box;
80
80
  -webkit-line-clamp: ${e=>e.numberOfLines};
81
- `,c=e.div`
81
+ `,h=e.div`
82
82
  font-family: Inter;
83
83
  color: ${e=>e.color||i.text.primary};
84
84
  font-weight: ${t.bodyPrimary.fontWeight};
@@ -88,7 +88,17 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
88
88
  overflow: hidden;
89
89
  display: -webkit-box;
90
90
  -webkit-line-clamp: ${e=>e.numberOfLines};
91
- `,$=e.div`
91
+ `,g=e.div`
92
+ font-family: Inter;
93
+ color: ${e=>e.color||i.text.primary};
94
+ font-weight: ${t.bodySecondary.fontWeight};
95
+ font-size: ${o(t.bodySecondary.fontSize)};
96
+ line-height: ${o(t.bodySecondary.lineHeight)};
97
+ -webkit-box-orient: vertical;
98
+ overflow: hidden;
99
+ display: -webkit-box;
100
+ -webkit-line-clamp: ${e=>e.numberOfLines};
101
+ `,w=e.div`
92
102
  font-family: Inter;
93
103
  color: ${e=>e.color||i.text.primary};
94
104
  font-weight: ${t.bodySecondary.fontWeight};
@@ -98,17 +108,23 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
98
108
  overflow: hidden;
99
109
  display: -webkit-box;
100
110
  -webkit-line-clamp: ${e=>e.numberOfLines};
101
- `,g=e(c)`
111
+ z-index: 1;
112
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
113
+ -webkit-background-clip: text;
114
+ -webkit-text-fill-color: transparent;
115
+ background-clip: text;
116
+ text-fill-color: transparent;
117
+ `,$=e(h)`
102
118
  text-decoration: underline;
103
119
  color: ${i.content.brand};
104
120
  text-decoration-color: ${i.content.brand};
105
121
  cursor: pointer;
106
- `,w=e($)`
122
+ `,m=e(g)`
107
123
  text-decoration: underline;
108
124
  color: ${i.content.brand};
109
125
  text-decoration-color: ${i.content.brand};
110
126
  cursor: pointer;
111
- `,m=e.div`
127
+ `,y=e.div`
112
128
  font-family: Inter;
113
129
  color: ${e=>e.color||i.text.primary};
114
130
  font-weight: ${t.caption.fontWeight};
@@ -118,7 +134,23 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
118
134
  overflow: hidden;
119
135
  display: -webkit-box;
120
136
  -webkit-line-clamp: ${e=>e.numberOfLines};
121
- `,y=e.div`
137
+ `,p=e.div`
138
+ font-family: Inter;
139
+ color: ${e=>e.color||i.text.primary};
140
+ font-weight: ${t.caption.fontWeight};
141
+ font-size: ${o(t.caption.fontSize)};
142
+ line-height: ${o(t.caption.lineHeight)};
143
+ -webkit-box-orient: vertical;
144
+ overflow: hidden;
145
+ display: -webkit-box;
146
+ -webkit-line-clamp: ${e=>e.numberOfLines};
147
+ z-index: 1;
148
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
149
+ -webkit-background-clip: text;
150
+ -webkit-text-fill-color: transparent;
151
+ background-clip: text;
152
+ text-fill-color: transparent;
153
+ `,x=e.div`
122
154
  color: ${e=>e.color||i.text.primary};
123
155
  font-weight: ${t.tiny.fontWeight};
124
156
  font-size: ${o(t.tiny.fontSize)};
@@ -127,7 +159,22 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
127
159
  overflow: hidden;
128
160
  display: -webkit-box;
129
161
  -webkit-line-clamp: ${e=>e.numberOfLines};
130
- `,p=e.div`
162
+ `,s=e.div`
163
+ color: ${e=>e.color||i.text.primary};
164
+ font-weight: ${t.tiny.fontWeight};
165
+ font-size: ${o(t.tiny.fontSize)};
166
+ line-height: ${o(t.tiny.lineHeight)};
167
+ -webkit-box-orient: vertical;
168
+ overflow: hidden;
169
+ display: -webkit-box;
170
+ -webkit-line-clamp: ${e=>e.numberOfLines};
171
+ z-index: 1;
172
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
173
+ -webkit-background-clip: text;
174
+ -webkit-text-fill-color: transparent;
175
+ background-clip: text;
176
+ text-fill-color: transparent;
177
+ `,k=e.div`
131
178
  font-family: Inter;
132
179
  color: ${e=>e.color||i.text.primary};
133
180
  font-weight: ${t.buttonLarge.fontWeight};
@@ -137,7 +184,23 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
137
184
  overflow: hidden;
138
185
  display: -webkit-box;
139
186
  -webkit-line-clamp: ${e=>e.numberOfLines};
140
- `,s=e.div`
187
+ `,v=e.div`
188
+ font-family: Inter;
189
+ color: ${e=>e.color||i.text.primary};
190
+ font-weight: ${t.buttonLarge.fontWeight};
191
+ font-size: ${o(t.buttonLarge.fontSize)};
192
+ line-height: ${o(t.buttonLarge.lineHeight)};
193
+ -webkit-box-orient: vertical;
194
+ overflow: hidden;
195
+ display: -webkit-box;
196
+ -webkit-line-clamp: ${e=>e.numberOfLines};
197
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
198
+ z-index: 1;
199
+ -webkit-background-clip: text;
200
+ -webkit-text-fill-color: transparent;
201
+ background-clip: text;
202
+ text-fill-color: transparent;
203
+ `,u=e.div`
141
204
  font-family: Inter;
142
205
  color: ${e=>e.color||i.text.primary};
143
206
  font-weight: ${t.buttonRegular.fontWeight};
@@ -147,7 +210,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
147
210
  overflow: hidden;
148
211
  display: -webkit-box;
149
212
  -webkit-line-clamp: ${e=>e.numberOfLines};
150
- `,x=e.div`
213
+ `,z=e.div`
151
214
  font-family: Inter;
152
215
  color: ${e=>e.color||i.text.primary};
153
216
  font-weight: ${t.subHeading.fontWeight};
@@ -157,7 +220,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
157
220
  overflow: hidden;
158
221
  display: -webkit-box;
159
222
  -webkit-line-clamp: ${e=>e.numberOfLines};
160
- `,k=e.div`
223
+ `,L=e.div`
161
224
  font-family: Inter;
162
225
  color: ${e=>e.color||i.text.primary};
163
226
  font-weight: ${t.bodyRegular.fontWeight};
@@ -167,7 +230,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
167
230
  overflow: hidden;
168
231
  display: -webkit-box;
169
232
  -webkit-line-clamp: ${e=>e.numberOfLines};
170
- `,v=e.div`
233
+ `,S=e.div`
171
234
  font-family: Inter;
172
235
  color: ${i.text.primary};
173
236
  font-weight: ${t.caption.fontWeight};
@@ -177,7 +240,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
177
240
  overflow: hidden;
178
241
  display: -webkit-box;
179
242
  -webkit-line-clamp: ${e=>e.numberOfLines};
180
- `,u=e.div`
243
+ `,H=e.div`
181
244
  font-family: Inter;
182
245
  color: ${i.text.primary};
183
246
  font-weight: ${t.textPlaceholder.fontWeight};
@@ -187,7 +250,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
187
250
  overflow: hidden;
188
251
  display: -webkit-box;
189
252
  -webkit-line-clamp: ${e=>e.numberOfLines};
190
- `,z=e.div`
253
+ `,O=e.div`
191
254
  font-family: Inter;
192
255
  color: ${i.text.primary};
193
256
  font-weight: ${t.title4.fontWeight};
@@ -197,7 +260,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
197
260
  overflow: hidden;
198
261
  display: -webkit-box;
199
262
  -webkit-line-clamp: ${e=>e.numberOfLines};
200
- `,L=e.div`
263
+ `,W=e.div`
201
264
  font-family: Inter;
202
265
  color: ${i.text.primary};
203
266
  font-weight: ${t.bodySmall.fontWeight};
@@ -207,7 +270,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
207
270
  overflow: hidden;
208
271
  display: -webkit-box;
209
272
  -webkit-line-clamp: ${e=>e.numberOfLines};
210
- `,S=e.div`
273
+ `,I=e.div`
211
274
  font-family: Inter;
212
275
  color: ${i.text.primary};
213
276
  font-weight: ${t.captionBold.fontWeight};
@@ -217,7 +280,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
217
280
  overflow: hidden;
218
281
  display: -webkit-box;
219
282
  -webkit-line-clamp: ${e=>e.numberOfLines};
220
- `,H=e.div`
283
+ `,R=e.div`
221
284
  font-family: Inter;
222
285
  color: ${i.text.primary};
223
286
  font-weight: ${t.tiny.fontWeight};
@@ -227,4 +290,4 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
227
290
  overflow: hidden;
228
291
  display: -webkit-box;
229
292
  -webkit-line-clamp: ${e=>e.numberOfLines};
230
- `;export{m as BodyCaption,d as BodyLarge,c as BodyPrimary,g as BodyPrimaryLink,k as BodyRegular,$ as BodySecondary,w as BodySecondaryLink,L as BodySmall,y as BodyTiny,p as ButtonLarge,s as ButtonRegular,v as Caption,S as CaptionBold,h as Display,f as SmallRegular,x as SubHeading,u as TextPlaceholder,H as Tiny,z as TitleFour,l as TitleLarge,r as TitleMedium,a as TitleRegular,b as TitleSmall,n as TitleXlarge};
293
+ `;export{p as AiBodyCaption,s as AiBodyTiny,y as BodyCaption,c as BodyLarge,h as BodyPrimary,$ as BodyPrimaryLink,L as BodyRegular,g as BodySecondary,m as BodySecondaryLink,W as BodySmall,x as BodyTiny,k as ButtonLarge,v as ButtonLargeAI,u as ButtonRegular,w as ButtonRegularAI,S as Caption,I as CaptionBold,d as Display,a as SmallRegular,z as SubHeading,H as TextPlaceholder,R as Tiny,O as TitleFour,l as TitleLarge,r as TitleMedium,f as TitleRegular,b as TitleSmall,n as TitleXlarge};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const ActivateBikAi: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ onRightBtnClick: () => void;
6
+ onLeftBtnClick: () => void;
7
+ source: 'chatbot' | 'crm';
8
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as i}from"../../constants/Theme.js";import n from"../../assets/icons/graph.svg.js";import o from"../../assets/icons/sparkle.svg.js";import{Button as r}from"../button/Button.js";import{Modal as s}from"../modals/Modal.js";import{TitleMedium as c,TitleLarge as a,BodyPrimary as l}from"../TypographyStyle.js";const d=d=>{let{open:g,onModalClose:h,onRightBtnClick:p,onLeftBtnClick:y,source:u}=d;return e(s,Object.assign({open:g,centralContainerStyles:{height:"430px",width:"464px",borderRadius:"12px"},zIndex:40,onClose:h,closeOnOutsideClick:!0},{children:t("div",{children:[t("div",Object.assign({style:{height:"180px",width:"100%",backgroundColor:"rgba(142, 142, 142, 0.2)",display:"flex",justifyContent:"center",alignItems:"center",gap:"18px"}},{children:[e(n,{width:100,height:90}),e("div",Object.assign({style:{width:"302px"}},{children:e(c,"chatbot"===u?{children:"Unlock higher conversion and ease agent work with BIK.ai"}:{children:"Experience reduced Average Handling Time of your tickets with Bik.AI!"})}))]})),t("div",Object.assign({style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"16px",padding:"24px"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:"4px"}},{children:[e(a,{children:"Activate BIK AI"}),e(o,{width:32,height:32})]})),t("div","chatbot"===u?Object.assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e(l,Object.assign({color:"#888888"},{children:"Sync your Shopify Data to Bik.ai to supercharge it with"})),e(l,Object.assign({color:"#888888"},{children:"your store’s data to start personalizing it to your"})),e(l,Object.assign({color:"#888888"},{children:"customers!"}))]}):Object.assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e(l,Object.assign({color:"#888888"},{children:"Sync your Shopify Data to Bik.ai to supercharge it with "})),e(l,Object.assign({color:"#888888"},{children:"your store’s data to start responding to customer"})),e(l,Object.assign({color:"#888888"},{children:"queries right away!"}))]}))]})),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px",paddingBottom:"24px",paddingLeft:"24px",paddingRight:"24px"}},{children:[e(r,{buttonText:"Learn More",buttonType:"text",size:"large",onClick:y}),e(r,{buttonText:"Sync Shopify Data",size:"large",style:{backgroundColor:i.background.brand},onClick:p})]}))]})}))};export{d as ActivateBikAi};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const AiCreditsExhausted: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ body?: string;
6
+ onRightBtnClick: () => void;
7
+ onLeftBtnClick: () => void;
8
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as n}from"../../constants/Theme.js";import i from"../../assets/icons/alert_triangle.svg.js";import{Button as o}from"../button/Button.js";import{Modal as s}from"../modals/Modal.js";import{ProgressBarComponent as r}from"../progress-bar/ProgressBarComponent.js";import{TitleLarge as l,TitleRegular as c,BodySecondary as d,BodyPrimary as a}from"../TypographyStyle.js";const p=p=>{let{open:g,onModalClose:h,body:x,onRightBtnClick:m,onLeftBtnClick:y}=p;return e(s,Object.assign({open:g,centralContainerStyles:{width:"498px",height:"312px",borderRadius:"12px"},onClose:h,closeOnOutsideClick:!0,zIndex:40},{children:t("div",Object.assign({style:{padding:"24px",display:"flex",flexDirection:"column"}},{children:[e("div",Object.assign({style:{display:"flex",justifyContent:"center"}},{children:e(l,{children:"Free AI Credits Exhausted"})})),e("div",{style:{height:"24px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"}},{children:[e(i,{color:n.content.negative,width:20,height:20}),e("div",{style:{width:"8px"}}),e(c,{children:"0/100"}),e(d,Object.assign({color:n.content.secondary},{children:"Free Credits left"}))]})),e(r,{completed:100,isAnimated:!1,height:16,color:n.content.negative})]})),e("div",{style:{height:"24px"}}),e(a,Object.assign({color:n.content.secondary},{children:x||"Contact support to add credits to generate replies using AI, and enjoy continued AI assistance!"})),e("div",{style:{height:"44px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"}},{children:[e(o,{buttonText:"Learn More",buttonType:"text",size:"small",onClick:y}),e(o,{buttonText:"Contact Support",size:"small",style:{backgroundColor:n.background.brand},onClick:m})]}))]}))}))};export{p as AiCreditsExhausted};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const AiCreditsLow: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ onRightBtnClick: () => void;
6
+ onLeftBtnClick: () => void;
7
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as n}from"../../constants/Theme.js";import i from"../../assets/icons/alert_triangle.svg.js";import{Button as o}from"../button/Button.js";import{Modal as r}from"../modals/Modal.js";import{TitleLarge as s,BodyPrimary as l}from"../TypographyStyle.js";const d=d=>{let{open:c,onModalClose:a,onLeftBtnClick:p,onRightBtnClick:g}=d;return e(r,Object.assign({open:c,centralContainerStyles:{width:"498px",borderRadius:"12px"},onClose:a,closeOnOutsideClick:!0,zIndex:40},{children:t("div",Object.assign({style:{padding:"24px",display:"flex",flexDirection:"column",width:"100%"}},{children:[e("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center"}},{children:e("div",Object.assign({style:{backgroundColor:n.background.negative.light,width:"64px",height:"64px",padding:"12px",borderRadius:"40px"}},{children:e(i,{width:40,height:40,color:n.content.negative})}))})),e("div",{style:{height:"32px"}}),e(s,{children:"Your AI Credits are running low"}),e("div",{style:{height:"24px"}}),e(l,Object.assign({color:n.content.secondary},{children:"Recharge your credits now to ensure uninterrupted service."})),e("div",{style:{height:"12px"}}),e("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center"}},{children:e(l,Object.assign({color:n.content.secondary},{children:"Don’t let the growth stop. Add AI Credits"}))})),e("div",{style:{height:"32px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"}},{children:[e(o,{buttonText:"Close",buttonType:"text",size:"small",onClick:p}),e(o,{buttonText:"Contact Support",size:"small",style:{backgroundColor:n.background.brand},onClick:g})]}))]}))}))};export{d as AiCreditsLow};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const AiSyncProgress: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ completedPercent: number;
6
+ onRightBtnClick: () => void;
7
+ onLeftBtnClick: () => void;
8
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as i}from"../../constants/Theme.js";import o from"../../assets/icons/sync.svg.js";import{Button as n}from"../button/Button.js";import{Modal as s}from"../modals/Modal.js";import{ProgressBarComponent as l}from"../progress-bar/ProgressBarComponent.js";import{TitleLarge as r,BodyPrimary as c}from"../TypographyStyle.js";const a=a=>{let{open:d,onModalClose:p,completedPercent:m,onLeftBtnClick:h,onRightBtnClick:g}=a;return e(s,Object.assign({open:d,centralContainerStyles:{width:"498px",height:"324px",borderRadius:"12px"},onClose:p,closeOnOutsideClick:!0,zIndex:40},{children:t("div",Object.assign({style:{padding:"24px",display:"flex",flexDirection:"column"}},{children:[e("div",Object.assign({style:{display:"flex",justifyContent:"center"}},{children:e(r,{children:"Wait for Sync to complete"})})),e("div",{style:{height:"24px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:"12px"}},{children:[e(o,{width:24,height:24}),e(c,Object.assign({color:"#616161"},{children:"Syncing Shopify Store Data..."}))]})),e(l,{completed:m,isAnimated:!1,height:16,color:i.background.positive.vibrant})]})),e("div",{style:{height:"24px"}}),e(c,Object.assign({color:i.content.secondary},{children:"You can start replying with AI after sync is complete. In the meanwhile, learn how to leverage AI for maximum efficiency"})),e("div",{style:{height:"32px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"}},{children:[e(n,{buttonText:"Close",buttonType:"text",size:"small",onClick:h}),e(n,{buttonText:"Explore Bik.ai",size:"small",style:{backgroundColor:i.background.brand},onClick:g})]}))]}))}))};export{a as AiSyncProgress};
@@ -0,0 +1,4 @@
1
+ export * from './ActivateBikAI';
2
+ export * from './AiSyncProgress';
3
+ export * from './AiCreditsExhausted';
4
+ export * from './AiCreditsLow';
@@ -1 +1 @@
1
- import{__rest as e}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import a,{forwardRef as s}from"react";import{Spinner as r}from"../spinner/Spinner.js";import{Button as o,ButtonCustomDashedBorder as c}from"./Button.styled.js";import{getButtonIconColor as d,SpinnerColorMap as l,GetButtonTextComponent as m}from"./themes.js";const b=s(((s,b)=>{var{version:h,id:p,buttonType:g="primary",size:v="small",buttonText:u,disabled:j,IconComponent:N,LeadingIcon:y,TrailingIcon:O,isLoading:f,inverse:k,onClick:T,matchParentWidth:x,subtitle:I,darkMode:C,activated:L,error:z}=s,W=e(s,["version","id","buttonType","size","buttonText","disabled","IconComponent","LeadingIcon","TrailingIcon","isLoading","inverse","onClick","matchParentWidth","subtitle","darkMode","activated","error"]);const B=m(v,g),E="chip"===v?16:20,M={height:E,width:E,color:d(v,g,k,j,f,C),style:{display:"block"},className:"icon"};return t(o,Object.assign({"data-test":W["data-test"],version:h,onClick:f?()=>{}:T,ref:b,id:p,disabled:j,size:v,buttonType:g,isLoading:f,inverse:k,matchParentWidth:x,darkMode:C,activated:L,error:z},W,{children:i("div",Object.assign({className:"button-container"},{children:[g.startsWith("dash")&&t(c,{}),t("div",Object.assign({className:"overlay-container"},{children:f&&t(r,{className:"spinner",size:"small",color:l(g,k)})})),N&&t("div",Object.assign({className:"icon-component"},{children:a.createElement(N,M)})),y&&t("div",Object.assign({className:"icon-leading"},{children:a.createElement(y,M)})),u?i(B,Object.assign({className:"text"},{children:[u,t("div",Object.assign({className:"text-subtitle"},{children:I}))]})):t(n,{}),O&&t("div",Object.assign({className:"icon-trailing"},{children:a.createElement(O,M)}))]}))}))}));b.displayName="Button";export{b as Button};
1
+ import{__rest as e}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import s,{forwardRef as a}from"react";import{Spinner as r}from"../spinner/Spinner.js";import{Button as o,ButtonCustomDashedBorder as c}from"./Button.styled.js";import{getButtonIconColor as d,SpinnerColorMap as l,GetButtonTextComponent as m}from"./themes.js";const b=a(((a,b)=>{var{version:h,id:p,buttonType:g="primary",size:v="small",buttonText:u,disabled:j,IconComponent:y,LeadingIcon:N,TrailingIcon:x,isLoading:I,inverse:O,onClick:f,matchParentWidth:k,subtitle:T,darkMode:z,activated:C,error:L}=a,W=e(a,["version","id","buttonType","size","buttonText","disabled","IconComponent","LeadingIcon","TrailingIcon","isLoading","inverse","onClick","matchParentWidth","subtitle","darkMode","activated","error"]);const B=m(v,g,j),E="chip"===v?16:20,M={height:E,width:E,color:d(v,g,O,j,I,z),style:{display:"block"},className:"icon"};return t(o,Object.assign({"data-test":W["data-test"],version:h,onClick:I?()=>{}:f,ref:b,id:p,disabled:j,size:v,buttonType:g,isLoading:I,inverse:O,matchParentWidth:k,darkMode:z,activated:C,error:L},W,{children:i("div",Object.assign({className:"button-container"},{children:[g.startsWith("dash")&&t(c,{}),t("div",Object.assign({className:"overlay-container"},{children:I&&t(r,{className:"spinner",size:"small",color:l(g,O)})})),y&&t("div",Object.assign({className:"icon-component"},{children:s.createElement(y,M)})),N&&t("div",Object.assign({className:"icon-leading",style:{zIndex:1}},{children:s.createElement(N,M)})),u?i(B,Object.assign({className:"text"},{children:[u,t("div",Object.assign({className:"text-subtitle"},{children:T}))]})):t(n,{}),x&&t("div",Object.assign({className:"icon-trailing",style:{zIndex:1}},{children:s.createElement(x,M)}))]}))}))}));b.displayName="Button";export{b as Button};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export type Size = 'chip' | 'small' | 'medium' | 'large';
3
- export type Type = 'primary' | 'secondary' | 'tertiary' | 'tertiaryGray' | 'destructive' | 'dashBold' | 'dashRegular' | 'text';
3
+ export type Type = 'primary' | 'secondary' | 'tertiary' | 'tertiaryGray' | 'destructive' | 'dashBold' | 'dashRegular' | 'text' | 'ai';
4
4
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  'data-test'?: string;
6
6
  /**
@@ -3,14 +3,14 @@ export declare const getBackgroundColor: (type: Type, size: Size, inverse?: bool
3
3
  export declare const getColor: (type: Type, size: Size, inverse?: boolean, darkMode?: boolean) => string;
4
4
  export declare const getDisabledTextColor: (inverse?: boolean) => string;
5
5
  export declare const getPadding: (type: Type, size: Size) => "0px" | "4px 8px" | "6px 4px" | "6px 12px" | "10px 4px" | "10px 12px" | "14px 4px" | "14px 12px" | undefined;
6
- export declare const GetButtonTextComponent: (size: Size, type: Type) => import("styled-components").StyledComponent<"div", any, {
6
+ export declare const GetButtonTextComponent: (size: Size, type: Type, disabled?: boolean) => import("styled-components").StyledComponent<"div", any, {
7
7
  numberOfLines?: number | undefined;
8
8
  color?: string | undefined;
9
9
  }, never>;
10
10
  export declare const getBorderColor: (type: Type, inverse?: boolean, error?: boolean) => string;
11
11
  export declare const getBorder: (version: '1.0' | '2.0', type: Type, size: Size, inverse?: boolean, error?: boolean) => string;
12
12
  export declare const getLinearGradientValue: (size: Size) => string;
13
- export declare const getHoverButtonBackground: (type: Type, inverse?: boolean) => "" | "background-color:transparent;" | "background-color: #000000;\n\t\t\t\topacity: 0.03;";
13
+ export declare const getHoverButtonBackground: (type: Type, inverse?: boolean) => string;
14
14
  export declare const getHoverButtonTextDecorationStyle: (type: Type, disabled?: boolean) => string;
15
15
  export declare const generateInverseHoverBackground: (type: Type, disabled?: boolean) => string;
16
16
  export declare const generateDisabledStyling: (type: Type, size: Size, inverse?: boolean) => string;
@@ -1 +1 @@
1
- import{COLORS as t}from"../../constants/Theme.js";import{BodySecondary as r,BodyCaption as n,ButtonRegular as e,ButtonLarge as a}from"../TypographyStyle.js";const o=(r,n,e,a)=>{if("chip"===n)return"text"===r?"transparent":a?t.surface.hovered:t.surface.subdued;switch(r){case"primary":return e?t.background.warning.vibrant:t.background.inverseLight;case"destructive":return t.background.negative.vibrant;default:return"transparent"}},i=(r,n,e,a)=>{if("chip"===n)return"text"===r?e?t.content.inactive:t.content.brand:a?t.content.primary:t.content.secondary;switch(r){case"primary":return e?t.content.primary:t.content.primaryInverse;case"tertiaryGray":case"dashBold":case"dashRegular":return t.content.secondary;case"destructive":return t.content.primaryInverse;default:return e?t.content.primaryInverse:t.stroke.brand}},c=r=>r?"rgba(255, 255, 255, 0.5)":t.content.inactive,d=(t,r)=>{if("text"===t)return"0px";if("chip"===r)return"4px 8px";if("small"===r)switch(t){case"tertiary":case"tertiaryGray":return"6px 4px";default:return"6px 12px"}else if("medium"===r)switch(t){case"tertiary":case"tertiaryGray":return"10px 4px";default:return"10px 12px"}else if("large"===r)switch(t){case"tertiary":case"tertiaryGray":return"14px 4px";default:return"14px 12px"}},s=(t,o)=>"dashRegular"===o?r:"chip"===t?n:"small"===t?e:a,p=(r,n,e)=>e?t.stroke.negative.vibrant:n?t.surface.standard:"secondary"==r?t.stroke.brand:t.content.placeholder,b=(r,n,e,a,o)=>"text"==n?"border: none;":"chip"===e?`border: ${"2.0"===r?.5:1}px solid ${t.stroke.primary};`:a?"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${p(n,a,o)};`:"border: none;":"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${p(n,!1,o)};`:"border: none;",g=t=>"medium"===t?"5px,\n\t\ttransparent 5px,\n\t\ttransparent 10px":"6px,\n\t\ttransparent 6px,\n\t\ttransparent 12px",u=(t,r)=>"text"===t?"background-color:transparent;":r||"primary"===t?"":"background-color: #000000;\n\t\t\t\topacity: 0.03;",l=(r,n)=>n?"":`text-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`,h=(r,n)=>n?"":"primary"===r?`background-color: ${t.stroke.warning.lightAlt};`:"background-color: rgba(255, 255, 255, 0.1)",y=(r,n,e)=>"chip"===n?"background-color: transparent;":"primary"===r||"destructive"===r?e?"background-color: rgba(255,255,255,0.3);":`background-color: ${t.background.inactive};`:"secondary"===r?e?"border: 1px solid rgba(255, 255, 255, 0.5);":`border: 1px solid ${t.stroke.primary};`:"",x=function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p(t,!1);return`\n\t.line-top {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t.line-right {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t.line-bottom {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t.line-left {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t`},k=(r,n,e)=>"text"===r?`background-color: ${t.background.brandLight};\n\t\t\ttext-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`:"chip"===n?`border: 1px solid ${t.stroke.brandLightAlt};\n\t\tbackground-color: ${t.background.brandLight};`:"primary"===r||"destructive"===r?e?`background-color: ${t.background.warning.vibrant} !important;\n\t\t\tbox-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);\n\t\t\t`:"box-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);":"secondary"===r||"tertiary"===r||"tertiaryGray"===r||r.startsWith("dash")?e?`background-color: ${t.background.inverseLight} !important;`:`background-color: ${t.background.brandLight};`:void 0,m=(r,n,e)=>"chip"===n?`background-color: ${t.background.base};`:"primary"===r?`background-color: ${e?t.background.warning.vibrant:t.background.brandLight};`:"destructive"===r?`background-color: ${t.background.negative.light};`:"background-color: transparent;",v=(r,n,e)=>"chip"===n?"border: none;":"secondary"===r?e?`border: 1px solid ${t.content.secondary};`:`border: 1px solid ${t.stroke.brandLightAlt};`:"",$=(r,n)=>n?"primary"===r?t.content.primary:t.content.primaryInverse:"destructive"===r?t.content.negative:t.content.brand,f=(r,n,e,a,o,i)=>"chip"===r?a?t.content.inactive:i?t.content.primary:t.content.secondary:o?"transparent":"primary"===n||"destructive"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primary:a?t.content.inactive:t.content.primaryInverse:"secondary"===n||"tertiary"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primaryInverse:a?t.content.inactive:t.content.brand:"tertiaryGray"===n||n.startsWith("dash")?a?t.content.inactive:t.content.secondary:void 0;export{s as GetButtonTextComponent,$ as SpinnerColorMap,y as generateDisabledStyling,h as generateInverseHoverBackground,o as getBackgroundColor,b as getBorder,p as getBorderColor,f as getButtonIconColor,k as getClickEffect,i as getColor,x as getDashedBorderStyling,c as getDisabledTextColor,u as getHoverButtonBackground,l as getHoverButtonTextDecorationStyle,g as getLinearGradientValue,m as getLoadingBackground,v as getLoadingBorder,d as getPadding};
1
+ import{COLORS as t}from"../../constants/Theme.js";import{ButtonRegularAI as r,ButtonLargeAI as n,BodySecondary as e,BodyCaption as a,ButtonRegular as o,ButtonLarge as i}from"../TypographyStyle.js";const c=(r,n,e,a)=>{if("chip"===n)return"text"===r?"transparent":a?t.surface.hovered:t.surface.subdued;switch(r){case"primary":return e?t.background.warning.vibrant:t.background.inverseLight;case"destructive":return t.background.negative.vibrant;default:return"transparent"}},d=(r,n,e,a)=>{if("chip"===n)return"text"===r?e?t.content.inactive:t.content.brand:a?t.content.primary:t.content.secondary;switch(r){case"primary":return e?t.content.primary:t.content.primaryInverse;case"tertiaryGray":case"dashBold":case"dashRegular":return t.content.secondary;case"destructive":return t.content.primaryInverse;case"ai":return t.content.ai;default:return e?t.content.primaryInverse:t.stroke.brand}},s=r=>r?"rgba(255, 255, 255, 0.5)":t.content.inactive,p=(t,r)=>{if("text"===t)return"0px";if("chip"===r)return"4px 8px";if("small"===r)switch(t){case"tertiary":case"tertiaryGray":return"6px 4px";default:return"6px 12px"}else if("medium"===r)switch(t){case"tertiary":case"tertiaryGray":return"10px 4px";default:return"10px 12px"}else if("large"===r)switch(t){case"tertiary":case"tertiaryGray":return"14px 4px";default:return"14px 12px"}},b=(t,c,d)=>d||"ai"!==c?"dashRegular"===c?e:"chip"===t?a:"small"===t?o:i:"small"===t?r:n,g=(r,n,e)=>e?t.stroke.negative.vibrant:n?t.surface.standard:"secondary"==r?t.stroke.brand:t.content.placeholder,u=(r,n,e,a,o)=>"text"==n?"border: none;":"chip"===e?`border: ${"2.0"===r?.5:1}px solid ${t.stroke.primary};`:a?"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${g(n,a,o)};`:"border: none;":"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${g(n,!1,o)};`:"border: none;",l=t=>"medium"===t?"5px,\n\t\ttransparent 5px,\n\t\ttransparent 10px":"6px,\n\t\ttransparent 6px,\n\t\ttransparent 12px",h=(r,n)=>"ai"===r?`background: ${t.surface.aiLight};`:"text"===r?"background-color:transparent;":n||"primary"===r?"":"background-color: #000000;\n\t\t\t\topacity: 0.03;",y=(r,n)=>n?"":`text-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`,x=(r,n)=>n?"":"primary"===r?`background-color: ${t.stroke.warning.lightAlt};`:"background-color: rgba(255, 255, 255, 0.1)",k=(r,n,e)=>"chip"===n?"background-color: transparent;":"primary"===r||"destructive"===r?e?"background-color: rgba(255,255,255,0.3);":`background-color: ${t.background.inactive};`:"secondary"===r?e?"border: 1px solid rgba(255, 255, 255, 0.5);":`border: 1px solid ${t.stroke.primary};`:"",m=function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g(t,!1);return`\n\t.line-top {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t.line-right {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t.line-bottom {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t.line-left {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t`},v=(r,n,e)=>"text"===r?`background-color: ${t.background.brandLight};\n\t\t\ttext-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`:"chip"===n?`border: 1px solid ${t.stroke.brandLightAlt};\n\t\tbackground-color: ${t.background.brandLight};`:"primary"===r||"destructive"===r?e?`background-color: ${t.background.warning.vibrant} !important;\n\t\t\tbox-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);\n\t\t\t`:"box-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);":"secondary"===r||"tertiary"===r||"tertiaryGray"===r||r.startsWith("dash")?e?`background-color: ${t.background.inverseLight} !important;`:`background-color: ${t.background.brandLight};`:void 0,$=(r,n,e)=>"chip"===n?`background-color: ${t.background.base};`:"primary"===r?`background-color: ${e?t.background.warning.vibrant:t.background.brandLight};`:"destructive"===r?`background-color: ${t.background.negative.light};`:"background-color: transparent;",f=(r,n,e)=>"chip"===n?"border: none;":"secondary"===r?e?`border: 1px solid ${t.content.secondary};`:`border: 1px solid ${t.stroke.brandLightAlt};`:"",w=(r,n)=>n?"primary"===r?t.content.primary:t.content.primaryInverse:"destructive"===r?t.content.negative:t.content.brand,L=(r,n,e,a,o,i)=>"chip"===r?a?t.content.inactive:i?t.content.primary:t.content.secondary:o?"transparent":"primary"===n||"destructive"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primary:a?t.content.inactive:t.content.primaryInverse:"secondary"===n||"tertiary"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primaryInverse:a?t.content.inactive:t.content.brand:"tertiaryGray"===n||n.startsWith("dash")?a?t.content.inactive:t.content.secondary:void 0;export{b as GetButtonTextComponent,w as SpinnerColorMap,k as generateDisabledStyling,x as generateInverseHoverBackground,c as getBackgroundColor,u as getBorder,g as getBorderColor,L as getButtonIconColor,v as getClickEffect,d as getColor,m as getDashedBorderStyling,s as getDisabledTextColor,h as getHoverButtonBackground,y as getHoverButtonTextDecorationStyle,l as getLinearGradientValue,$ as getLoadingBackground,f as getLoadingBorder,p as getPadding};
@@ -14,5 +14,4 @@ export declare const CarouselPreview: React.ForwardRefExoticComponent<{
14
14
  removeBottomBorder?: boolean | undefined;
15
15
  borderRadius?: string | undefined;
16
16
  showArrows?: boolean | undefined;
17
- borderBottomRadius?: string | undefined;
18
17
  } & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import o from"react";import t from"react-slick";import{Container as n,CarouselSlickContainer as i}from"./CarouselPreview.style.js";import l from"./CarouselPreviewCard.js";import{useTemplateModalContext as s}from"../template-context-mapper/context/templateModalContext.js";import{CustomCarouselRightArrow as d,CustomCarouselLeftArrow as a}from"./CustomCarouselArrows.js";const u=o.forwardRef((o=>{let{channel:u,template:c,isPreview:m,removeBottomBorder:v,borderRadius:p,showArrows:w,borderBottomRadius:f}=o;var C,h,x;const g=null===(C=null==c?void 0:c.components)||void 0===C?void 0:C[1].cards,{sliderRef:b,selectedCarouselIndex:j,cardCount:P,setIsCarouselHovered:B}=s();return e(n,Object.assign({removeBottomBorder:v,borderRadius:p,borderBottomRadius:f},{children:[r(l,{channel:u,currentTemplate:c,carouselCardIndex:-1,isPreview:m,width:"77%"}),!!(null==g?void 0:g.length)&&r(i,Object.assign({cardCount:null!=P?P:0,selectedCarouselIndex:null!=j?j:-1,onMouseEnter:()=>null==B?void 0:B(!0),onMouseLeave:()=>null==B?void 0:B(!1)},{children:r(t,Object.assign({ref:b,swipeToSlide:!0,draggable:!0,swipe:!0,infinite:!1,focusOnSelect:!m,centerMode:!0,arrows:w,adaptiveHeight:!0,nextArrow:r(d,{isPreview:null!=m&&m}),prevArrow:r(a,{isPreview:null!=m&&m})},{children:null===(x=null===(h=null==c?void 0:c.components)||void 0===h?void 0:h[1].cards)||void 0===x?void 0:x.map(((e,o)=>{var t,n;const i={components:e.components,mapping:null===(n=null===(t=null==c?void 0:c.mapping)||void 0===t?void 0:t.cards)||void 0===n?void 0:n[o]};return r(l,{channel:u,currentTemplate:i,carouselCardIndex:o,isPreview:m,width:"100%"},o)}))}))}))]}))}));export{u as CarouselPreview};
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import o from"react";import n from"react-slick";import{Container as t,CarouselSlickContainer as l}from"./CarouselPreview.style.js";import i from"./CarouselPreviewCard.js";import{useTemplateModalContext as s}from"../template-context-mapper/context/templateModalContext.js";import{CustomCarouselRightArrow as d,CustomCarouselLeftArrow as a}from"./CustomCarouselArrows.js";const c=o.forwardRef((o=>{let{channel:c,template:u,isPreview:m,removeBottomBorder:v,borderRadius:p,showArrows:w}=o;var f,C,h;const x=null===(f=null==u?void 0:u.components)||void 0===f?void 0:f[1].cards,{sliderRef:g,selectedCarouselIndex:j,cardCount:P,setIsCarouselHovered:b}=s();return e(t,Object.assign({removeBottomBorder:v,borderRadius:p},{children:[r(i,{channel:c,currentTemplate:u,carouselCardIndex:-1,isPreview:m,width:"77%"}),!!(null==x?void 0:x.length)&&r(l,Object.assign({cardCount:null!=P?P:0,selectedCarouselIndex:null!=j?j:-1,onMouseEnter:()=>null==b?void 0:b(!0),onMouseLeave:()=>null==b?void 0:b(!1)},{children:r(n,Object.assign({ref:g,swipeToSlide:!0,draggable:!0,swipe:!0,infinite:!1,focusOnSelect:!m,centerMode:!0,arrows:w,adaptiveHeight:!0,nextArrow:r(d,{isPreview:null!=m&&m}),prevArrow:r(a,{isPreview:null!=m&&m})},{children:null===(h=null===(C=null==u?void 0:u.components)||void 0===C?void 0:C[1].cards)||void 0===h?void 0:h.map(((e,o)=>{var n,t;const l={components:e.components,mapping:null===(t=null===(n=null==u?void 0:u.mapping)||void 0===n?void 0:n.cards)||void 0===t?void 0:t[o]};return r(i,{channel:c,currentTemplate:l,carouselCardIndex:o,isPreview:m,width:"100%"},o)}))}))}))]}))}));export{c as CarouselPreview};
@@ -2,7 +2,6 @@ export declare const Container: import("styled-components").StyledComponent<"div
2
2
  showHeader?: boolean | undefined;
3
3
  removeBottomBorder?: boolean | undefined;
4
4
  borderRadius?: string | undefined;
5
- borderBottomRadius?: string | undefined;
6
5
  }, never>;
7
6
  export declare const CarouselSlickContainer: import("styled-components").StyledComponent<"div", any, {
8
7
  cardCount: number;
@@ -1,6 +1,6 @@
1
- import e from"styled-components";import{COLORS as r}from"../../constants/Theme.js";const o=e.div`
1
+ import e from"styled-components";import{COLORS as o}from"../../constants/Theme.js";const r=e.div`
2
2
  background-image: url('https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F341dba50-e84e-4457-b5b5-d9d8a0b95a73?alt=media&token=6fd32f23-8bb2-4980-bbee-bef39b38fd9f');
3
- border-color: ${r.stroke.primary};
3
+ border-color: ${o.stroke.primary};
4
4
  border-top-style: solid;
5
5
  border-bottom-style: ${e=>e.removeBottomBorder?"unset":"solid"};
6
6
  border-top-width: 1px;
@@ -11,9 +11,7 @@ import e from"styled-components";import{COLORS as r}from"../../constants/Theme.j
11
11
  position: relative;
12
12
  height: 500px;
13
13
  overflow-y: auto;
14
- border-radius: ${e=>{var r;return null!==(r=e.borderRadius)&&void 0!==r?r:"0px"}};
15
- border-bottom-right-radius: ${e=>{var r;return null!==(r=e.borderBottomRadius)&&void 0!==r?r:"0px"}};
16
- border-bottom-left-radius: ${e=>{var r;return null!==(r=e.borderBottomRadius)&&void 0!==r?r:"0px"}};
14
+ border-radius: ${e=>{var o;return null!==(o=e.borderRadius)&&void 0!==o?o:"0px"}};
17
15
  `,t=e.div`
18
16
  width: 100%;
19
17
 
@@ -85,4 +83,4 @@ import e from"styled-components";import{COLORS as r}from"../../constants/Theme.j
85
83
  flex-direction: column;
86
84
  margin-left: -49px;
87
85
  }
88
- `;export{t as CarouselSlickContainer,o as Container};
86
+ `;export{t as CarouselSlickContainer,r as Container};
@@ -1,3 +1,3 @@
1
1
  import t from"styled-components";import{COLORS as n}from"../../constants/Theme.js";import{generateBackgroundColor as o}from"./theme.js";const r=t.button`
2
- ${t=>`\n\tall: unset;\n\tcursor: pointer;\n\tpadding: 6px;\n\tborder-radius: 4px;\n\tflex-wrap: wrap;\n\t${t.bordered?`border: 1px solid ${n.stroke.primary};`:""}\n\t${t.isSelected?`\n\t\t\tbackground-color: ${o(t.iconButtonType)};\n\t\t\t\t`:"\n\t\t\t\t:hover {\n\t\t\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t\t\t}\n\t\t\t"}\n\t${t.disabled&&"\n\t\t\tcursor: not-allowed !important;\n\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t"}\n\n\t`}
2
+ ${t=>`\n\tall: unset;\n\tcursor: pointer;\n\tpadding: 6px;\n\tborder-radius: 4px;\n\tflex-wrap: wrap;\n\t${t.bordered&&"ai"!==t.iconButtonType?`border: 1px solid ${n.stroke.primary};`:""}\n\t${t.isSelected?`\n\t\t\tbackground: ${o(t.iconButtonType)};\n\t\t\t\t`:"\n\t\t\t\t:hover {\n\t\t\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t\t\t}\n\t\t\t"}\n\t${t.disabled&&"\n\t\t\tcursor: not-allowed !important;\n\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t"}\n\n\t`}
3
3
  `;export{r as IconButton};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type IconButtonType = 'default' | 'negative' | 'positive' | 'warning';
2
+ export type IconButtonType = 'default' | 'negative' | 'positive' | 'warning' | 'ai';
3
3
  export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  /**
5
5
  * Icon to render
@@ -1 +1 @@
1
- import{COLORS as t}from"../../constants/Theme.js";const n=(n,e,r)=>{if(e)return t.content.inactive;switch(n){case"default":return r?t.content.brand:t.content.primary;case"negative":return t.content.negative;case"positive":return t.content.positive;case"warning":return r?t.content.warning:t.content.primary;default:return t.content.primary}},e=n=>"default"===n?t.background.brandLight:"negative"===n?t.background.negative.light:"positive"===n?t.background.positive.light:t.background.warning.light;export{e as generateBackgroundColor,n as getIconColor};
1
+ import{COLORS as t}from"../../constants/Theme.js";const n=(n,e,r)=>{if(e)return t.content.inactive;switch(n){case"default":return r?t.content.brand:t.content.primary;case"negative":return t.content.negative;case"positive":return t.content.positive;case"warning":return r?t.content.warning:t.content.primary;default:return t.content.primary}},e=n=>"default"===n?t.background.brandLight:"negative"===n?t.background.negative.light:"positive"===n?t.background.positive.light:"ai"===n?t.surface.aiLight:t.background.warning.light;export{e as generateBackgroundColor,n as getIconColor};
@@ -1 +1 @@
1
- import c from"@emotion/styled/base";import{jsx as b}from"react/jsx-runtime";import{ProgressBar as o}from"react-bootstrap";import{COLORS as t}from"../../constants/Theme.js";const l=c=>b(I,Object.assign({color:c.color?c.color:t.content.brand},{children:b(o,{animated:c.isAnimated,now:c.completed,style:{height:`${c.height?c.height:8}px`}})})),I=c("div","production"===process.env.NODE_ENV?{target:"e17nsuvt0"}:{target:"e17nsuvt0",label:"ProgressCompletedBar"})("flex:50%;.progress-bar{background-color:",(c=>c.color),";}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2dyZXNzQmFyQ29tcG9uZW50LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPK0MiLCJmaWxlIjoiUHJvZ3Jlc3NCYXJDb21wb25lbnQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsganN4IGFzIF9qc3ggfSBmcm9tIFwicmVhY3QvanN4LXJ1bnRpbWVcIjtcclxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5pbXBvcnQgeyBQcm9ncmVzc0JhciB9IGZyb20gJ3JlYWN0LWJvb3RzdHJhcCc7XHJcbmltcG9ydCB7IENPTE9SUyB9IGZyb20gXCIuLi8uLi9jb25zdGFudHMvVGhlbWVcIjtcclxuZXhwb3J0IGNvbnN0IFByb2dyZXNzQmFyQ29tcG9uZW50ID0gKHByb3BzKSA9PiB7XHJcbiAgICByZXR1cm4gKF9qc3goUHJvZ3Jlc3NDb21wbGV0ZWRCYXIsIE9iamVjdC5hc3NpZ24oeyBjb2xvcjogcHJvcHMuY29sb3IgPyBwcm9wcy5jb2xvciA6IENPTE9SUy5jb250ZW50LmJyYW5kIH0sIHsgY2hpbGRyZW46IF9qc3goUHJvZ3Jlc3NCYXIsIHsgYW5pbWF0ZWQ6IHByb3BzLmlzQW5pbWF0ZWQsIG5vdzogcHJvcHMuY29tcGxldGVkLCBzdHlsZTogeyBoZWlnaHQ6IGAke3Byb3BzLmhlaWdodCA/IHByb3BzLmhlaWdodCA6IDh9cHhgIH0gfSkgfSkpKTtcclxufTtcclxuZXhwb3J0IGNvbnN0IFByb2dyZXNzQ29tcGxldGVkQmFyID0gc3R5bGVkLmRpdiBgXG5cdGZsZXg6IDUwJTtcblx0LnByb2dyZXNzLWJhciB7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogJHsocHJvcHMpID0+IHByb3BzLmNvbG9yfTtcblx0fVxuYDtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJvZ3Jlc3NCYXJDb21wb25lbnQuanMubWFwIl19 */"));export{l as ProgressBarComponent,I as ProgressCompletedBar};
1
+ import c from"@emotion/styled/base";import{jsx as b}from"react/jsx-runtime";import{ProgressBar as o}from"react-bootstrap";import{COLORS as t}from"../../constants/Theme.js";const I=c=>b(l,Object.assign({color:c.color?c.color:t.content.brand},{children:b(o,{animated:c.isAnimated,now:c.completed,style:{height:`${c.height?c.height:8}px`}})})),l=c("div","production"===process.env.NODE_ENV?{target:"e17nsuvt0"}:{target:"e17nsuvt0",label:"ProgressCompletedBar"})("flex:50%;.progress-bar{background:",(c=>c.color),";}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2dyZXNzQmFyQ29tcG9uZW50LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPK0MiLCJmaWxlIjoiUHJvZ3Jlc3NCYXJDb21wb25lbnQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsganN4IGFzIF9qc3ggfSBmcm9tIFwicmVhY3QvanN4LXJ1bnRpbWVcIjtcclxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5pbXBvcnQgeyBQcm9ncmVzc0JhciB9IGZyb20gJ3JlYWN0LWJvb3RzdHJhcCc7XHJcbmltcG9ydCB7IENPTE9SUyB9IGZyb20gXCIuLi8uLi9jb25zdGFudHMvVGhlbWVcIjtcclxuZXhwb3J0IGNvbnN0IFByb2dyZXNzQmFyQ29tcG9uZW50ID0gKHByb3BzKSA9PiB7XHJcbiAgICByZXR1cm4gKF9qc3goUHJvZ3Jlc3NDb21wbGV0ZWRCYXIsIE9iamVjdC5hc3NpZ24oeyBjb2xvcjogcHJvcHMuY29sb3IgPyBwcm9wcy5jb2xvciA6IENPTE9SUy5jb250ZW50LmJyYW5kIH0sIHsgY2hpbGRyZW46IF9qc3goUHJvZ3Jlc3NCYXIsIHsgYW5pbWF0ZWQ6IHByb3BzLmlzQW5pbWF0ZWQsIG5vdzogcHJvcHMuY29tcGxldGVkLCBzdHlsZTogeyBoZWlnaHQ6IGAke3Byb3BzLmhlaWdodCA/IHByb3BzLmhlaWdodCA6IDh9cHhgIH0gfSkgfSkpKTtcclxufTtcclxuZXhwb3J0IGNvbnN0IFByb2dyZXNzQ29tcGxldGVkQmFyID0gc3R5bGVkLmRpdiBgXG5cdGZsZXg6IDUwJTtcblx0LnByb2dyZXNzLWJhciB7XG5cdFx0YmFja2dyb3VuZDogJHsocHJvcHMpID0+IHByb3BzLmNvbG9yfTtcblx0fVxuYDtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJvZ3Jlc3NCYXJDb21wb25lbnQuanMubWFwIl19 */"));export{I as ProgressBarComponent,l as ProgressCompletedBar};
@@ -1 +1 @@
1
- import{jsx as i,jsxs as e}from"react/jsx-runtime";import n from"../../assets/icons/bik_ai_stars_icon.svg.js";import r from"react";import{BodyCaption as a}from"../TypographyStyle.js";import{ValidTagTypeMap as t}from"./model.js";import{Tag as s}from"./Tag.styled.js";import{getTagIconColor as c}from"./themes.js";const o=o=>{let{tagText:l,LeadingIcon:g,TrailingIcon:d,onLeadingIconClicked:m,leadingIconId:p,trailingIconId:j,onTrailingIconClicked:b,theme:h="light",type:u="neutral",variant:y="regular",version:O,cursor:f}=o;var v;let I=l,k=h,T=u;t[y][u]||(T="neutral"),"circle"===y&&(k="dark","number"==typeof I&&I>99&&(I="99+"));const w={height:16,width:16,color:c(h,T),style:{display:"block"}},N=()=>"ai"!==u||g?g:n;return i(s,Object.assign({cursor:f,theme:k,type:u,variant:y,version:O},{children:e("div",Object.assign({className:"container"},{children:[N()&&i("button",Object.assign({className:"icon-leading",onClick:m,id:`${p}-wrapper`||"leading-icon-wrapper"},{children:r.createElement(null!==(v=N())&&void 0!==v?v:"",Object.assign(Object.assign({},w),{id:p||"leading-icon"}))})),i(a,Object.assign({className:"text"},{children:I})),d&&i("button",Object.assign({className:"icon-trailing",onClick:b,id:`${j}-wrapper`||"trailing-icon-wrapper"},{children:r.createElement(d,Object.assign(Object.assign({},w),{id:j||"trailing-icon"}))}))]}))}))};o.displayName="Tag";export{o as Tag};
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import r from"../../assets/icons/bik_ai_stars_icon.svg.js";import n from"react";import{AiBodyTiny as t,AiBodyCaption as a,BodyTiny as s,BodyCaption as c}from"../TypographyStyle.js";import{ValidTagTypeMap as o}from"./model.js";import{Tag as l}from"./Tag.styled.js";import{getTagIconColor as d}from"./themes.js";const g=g=>{let{tagText:m,LeadingIcon:p,TrailingIcon:h,onLeadingIconClicked:j,leadingIconId:b,trailingIconId:u,onTrailingIconClicked:y,theme:O="light",type:f="neutral",variant:v="regular",version:I,cursor:T}=g;var k;let w=m;const N=O;let x=f;o[v][f]||(x="neutral"),"circle"===v&&"number"==typeof w&&w>99&&(w="99+");const C={height:"compressed"===v?11:16,width:"compressed"===v?11:16,color:d(O,x),style:{display:"block"}},_=()=>"ai"!==f||p?p:r;return e(l,Object.assign({cursor:T,theme:N,type:f,variant:v,version:I},{children:i("div",Object.assign({className:"container"},{children:[_()&&e("button",Object.assign({className:"icon-leading",onClick:j,id:`${b}-wrapper`||"leading-icon-wrapper"},{children:n.createElement(null!==(k=_())&&void 0!==k?k:"",Object.assign(Object.assign({},C),{id:b||"leading-icon"}))})),""!==w&&("ai"===f&&"light"===O?e("compressed"===v?t:a,{children:w}):e("compressed"===v?s:c,Object.assign({className:"text"},{children:w}))),h&&e("button",Object.assign({className:"icon-trailing",onClick:y,id:`${u}-wrapper`||"trailing-icon-wrapper"},{children:n.createElement(h,Object.assign(Object.assign({},C),{id:u||"trailing-icon"}))}))]}))}))};g.displayName="Tag";export{g as Tag};
@@ -1 +1 @@
1
- import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as t}from"./themes.js";const e=c("div","production"===process.env.NODE_ENV?{target:"e930jd90"}:{target:"e930jd90",label:"Tag"})("cursor:",(c=>{var l;return null!==(l=c.cursor)&&void 0!==l?l:"default"}),";",(c=>"regular"===c.variant?"display: block;\n\t\t min-height: 26px;\n\t\t":"min-height: 20px;")," .container{display:flex;align-items:center;gap:6px;padding:",(c=>l(c.variant)),";background:",(c=>b(c.theme,c.type)),";border-radius:",(c=>"regular"===c.variant?"4px":"12px"),";",(c=>"light"===c.theme&&`border: ${"2.0"===c.version?.5:1}px solid ${d(c.type)};`)," .text{color:",(c=>t(c.theme,c.type)),";}.icon-trailing{all:unset;display:flex;}.icon-leading{all:unset;display:flex;}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRhZy5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUU4QiIsImZpbGUiOiJUYWcuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgZ2VuZXJhdGVCb3JkZXIsIGdldEJhY2tncm91bmRDb2xvciwgZ2V0UGFkZGluZywgZ2V0VGV4dENvbG9yLCB9IGZyb20gJy4vdGhlbWVzJztcclxuZXhwb3J0IGNvbnN0IFRhZyA9IHN0eWxlZC5kaXYgYFxuXHRjdXJzb3I6ICR7KHByb3BzKSA9PiB7IHZhciBfYTsgcmV0dXJuIChfYSA9IHByb3BzLmN1cnNvcikgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDogJ2RlZmF1bHQnOyB9fTtcblx0JHsocHJvcHMpID0+IHByb3BzLnZhcmlhbnQgPT09ICdyZWd1bGFyJ1xyXG4gICAgPyBgZGlzcGxheTogYmxvY2s7XG5cdFx0ICAgICBtaW4taGVpZ2h0OiAyNnB4O1xuXHRcdGBcclxuICAgIDogYG1pbi1oZWlnaHQ6IDIwcHg7YH1cblx0LmNvbnRhaW5lciB7XG5cdFx0ZGlzcGxheTogZmxleDtcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRcdGdhcDogNnB4O1xuXHRcdHBhZGRpbmc6ICR7KHByb3BzKSA9PiBnZXRQYWRkaW5nKHByb3BzLnZhcmlhbnQpfTtcblxuXHRcdGJhY2tncm91bmQ6ICR7KHByb3BzKSA9PiBnZXRCYWNrZ3JvdW5kQ29sb3IocHJvcHMudGhlbWUsIHByb3BzLnR5cGUpfTtcblxuXHRcdGJvcmRlci1yYWRpdXM6ICR7KHByb3BzKSA9PiAocHJvcHMudmFyaWFudCA9PT0gJ3JlZ3VsYXInID8gJzRweCcgOiAnMTJweCcpfTtcblxuXHRcdCR7KHByb3BzKSA9PiBwcm9wcy50aGVtZSA9PT0gJ2xpZ2h0JyAmJlxyXG4gICAgYGJvcmRlcjogJHtwcm9wcy52ZXJzaW9uID09PSAnMi4wJyA/IDAuNSA6IDF9cHggc29saWQgJHtnZW5lcmF0ZUJvcmRlcihwcm9wcy50eXBlKX07YH1cblxuXHRcdC50ZXh0IHtcblx0XHRcdGNvbG9yOiAkeyhwcm9wcykgPT4gZ2V0VGV4dENvbG9yKHByb3BzLnRoZW1lLCBwcm9wcy50eXBlKX07XG5cdFx0fVxuXG5cdFx0Lmljb24tdHJhaWxpbmcge1xuXHRcdFx0YWxsOiB1bnNldDtcblx0XHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0fVxuXG5cdFx0Lmljb24tbGVhZGluZyB7XG5cdFx0XHRhbGw6IHVuc2V0O1xuXHRcdFx0ZGlzcGxheTogZmxleDtcblx0XHR9XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVRhZy5zdHlsZWQuanMubWFwIl19 */"));export{e as Tag};
1
+ import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as t}from"./themes.js";const e=c("div","production"===process.env.NODE_ENV?{target:"e930jd90"}:{target:"e930jd90",label:"Tag"})("cursor:",(c=>{var l;return null!==(l=c.cursor)&&void 0!==l?l:"default"}),";",(c=>"regular"===c.variant?"display: block;\n\t\t min-height: 26px;\n\t\t":"min-height: 20px;")," .container{display:flex;align-items:center;gap:6px;padding:",(c=>l(c.variant)),";background:",(c=>b(c.theme,c.type)),";border-radius:",(c=>"regular"===c.variant?"4px":"12px"),";",(c=>"light"===c.theme&&`border: ${"2.0"===c.version?.5:1}px solid ${d(c.type,c.theme)};`)," .text{color:",(c=>t(c.theme,c.type)),";}.icon-trailing{all:unset;display:flex;}.icon-leading{all:unset;display:flex;}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRhZy5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUU4QiIsImZpbGUiOiJUYWcuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgZ2VuZXJhdGVCb3JkZXIsIGdldEJhY2tncm91bmRDb2xvciwgZ2V0UGFkZGluZywgZ2V0VGV4dENvbG9yLCB9IGZyb20gJy4vdGhlbWVzJztcclxuZXhwb3J0IGNvbnN0IFRhZyA9IHN0eWxlZC5kaXYgYFxuXHRjdXJzb3I6ICR7KHByb3BzKSA9PiB7IHZhciBfYTsgcmV0dXJuIChfYSA9IHByb3BzLmN1cnNvcikgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDogJ2RlZmF1bHQnOyB9fTtcblx0JHsocHJvcHMpID0+IHByb3BzLnZhcmlhbnQgPT09ICdyZWd1bGFyJ1xyXG4gICAgPyBgZGlzcGxheTogYmxvY2s7XG5cdFx0ICAgICBtaW4taGVpZ2h0OiAyNnB4O1xuXHRcdGBcclxuICAgIDogYG1pbi1oZWlnaHQ6IDIwcHg7YH1cblx0LmNvbnRhaW5lciB7XG5cdFx0ZGlzcGxheTogZmxleDtcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRcdGdhcDogNnB4O1xuXHRcdHBhZGRpbmc6ICR7KHByb3BzKSA9PiBnZXRQYWRkaW5nKHByb3BzLnZhcmlhbnQpfTtcblxuXHRcdGJhY2tncm91bmQ6ICR7KHByb3BzKSA9PiBnZXRCYWNrZ3JvdW5kQ29sb3IocHJvcHMudGhlbWUsIHByb3BzLnR5cGUpfTtcblxuXHRcdGJvcmRlci1yYWRpdXM6ICR7KHByb3BzKSA9PiAocHJvcHMudmFyaWFudCA9PT0gJ3JlZ3VsYXInID8gJzRweCcgOiAnMTJweCcpfTtcblxuXHRcdCR7KHByb3BzKSA9PiBwcm9wcy50aGVtZSA9PT0gJ2xpZ2h0JyAmJlxyXG4gICAgYGJvcmRlcjogJHtwcm9wcy52ZXJzaW9uID09PSAnMi4wJyA/IDAuNSA6IDF9cHggc29saWQgJHtnZW5lcmF0ZUJvcmRlcihwcm9wcy50eXBlLCBwcm9wcy50aGVtZSl9O2B9XG5cblx0XHQudGV4dCB7XG5cdFx0XHRjb2xvcjogJHsocHJvcHMpID0+IGdldFRleHRDb2xvcihwcm9wcy50aGVtZSwgcHJvcHMudHlwZSl9O1xuXHRcdH1cblxuXHRcdC5pY29uLXRyYWlsaW5nIHtcblx0XHRcdGFsbDogdW5zZXQ7XG5cdFx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdH1cblxuXHRcdC5pY29uLWxlYWRpbmcge1xuXHRcdFx0YWxsOiB1bnNldDtcblx0XHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0fVxuXHR9XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1UYWcuc3R5bGVkLmpzLm1hcCJdfQ== */"));export{e as Tag};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { MouseEventHandler } from 'react';
3
3
  export type TagTheme = 'light' | 'dark';
4
- export type TagVariant = 'regular' | 'circle';
4
+ export type TagVariant = 'regular' | 'circle' | 'compressed';
5
5
  export type TagType = 'negative' | 'warning' | 'positive' | 'neutral' | 'white' | 'purple' | 'blue' | 'grey' | 'ai';
6
6
  export declare const ValidTagTypeMap: {
7
7
  regular: {
@@ -23,6 +23,16 @@ export declare const ValidTagTypeMap: {
23
23
  grey: boolean;
24
24
  ai: boolean;
25
25
  };
26
+ compressed: {
27
+ negative: boolean;
28
+ warning: boolean;
29
+ positive: boolean;
30
+ neutral: boolean;
31
+ white: boolean;
32
+ purple: boolean;
33
+ blue: boolean;
34
+ ai: boolean;
35
+ };
26
36
  };
27
37
  export interface TagProps extends React.BaseHTMLAttributes<HTMLDivElement> {
28
38
  /**
@@ -1 +1 @@
1
- const e={regular:{negative:!0,warning:!0,positive:!0,neutral:!0,white:!0,purple:!0,blue:!0,ai:!0},circle:{negative:!0,warning:!0,positive:!0,neutral:!0,blue:!0,grey:!0,ai:!0}};export{e as ValidTagTypeMap};
1
+ const e={regular:{negative:!0,warning:!0,positive:!0,neutral:!0,white:!0,purple:!0,blue:!0,ai:!0},circle:{negative:!0,warning:!0,positive:!0,neutral:!0,blue:!0,grey:!0,ai:!0},compressed:{negative:!0,warning:!0,positive:!0,neutral:!0,white:!0,purple:!0,blue:!0,ai:!0}};export{e as ValidTagTypeMap};
@@ -1,6 +1,6 @@
1
1
  import { TagTheme, TagType, TagVariant } from './model';
2
2
  export declare const getTagIconColor: (theme: TagTheme, type: TagType) => string;
3
3
  export declare const getTextColor: (theme: TagTheme, type: TagType) => string;
4
- export declare const generateBorder: (type: TagType) => string;
4
+ export declare const generateBorder: (type: TagType, theme: TagTheme) => string;
5
5
  export declare const getBackgroundColor: (theme: TagTheme | 'circle', type: TagType) => string;
6
6
  export declare const getPadding: (variant: TagVariant) => "4px 8px" | "2px 6px";
@@ -1 +1 @@
1
- import{COLORS as r}from"../../constants/Theme.js";const n={blue:{iconColor:{light:r.content.blue,dark:r.content.primaryInverse},textColor:{light:r.content.blue,dark:r.content.primaryInverse},border:r.stroke.blue.lightAlt,backgroundColor:{light:r.background.blue.light,dark:r.content.blue,circle:r.content.blue}},purple:{iconColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},textColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},border:r.stroke.brandLightAlt,backgroundColor:{light:r.background.brandLight,dark:r.background.inverse,circle:r.background.inverse}},negative:{iconColor:{light:r.content.negative,dark:r.content.primaryInverse},textColor:{light:r.content.negative,dark:r.content.primaryInverse},border:r.stroke.negative.lightAlt,backgroundColor:{light:r.background.negative.light,dark:r.background.negative.vibrant,circle:r.background.negative.vibrant}},positive:{iconColor:{light:r.content.positive,dark:r.content.primaryInverse},textColor:{light:r.content.positive,dark:r.content.primaryInverse},border:r.stroke.positive.lightAlt,backgroundColor:{light:r.background.positive.light,dark:r.background.positive.vibrant,circle:r.background.positive.vibrant}},warning:{iconColor:{light:r.content.warning,dark:r.content.primary},textColor:{light:r.content.warning,dark:r.content.primary},border:r.stroke.warning.lightAlt,backgroundColor:{light:r.background.warning.light,dark:r.background.warning.vibrant,circle:r.background.warning.vibrant}},neutral:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.background.inverse,circle:r.background.inverseLight}},white:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.standard,dark:r.background.inverse,circle:r.background.inverseLight}},grey:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.content.secondary,circle:r.content.secondary}},ai:{iconColor:{light:r.content.primaryInverse,dark:r.content.primaryInverse},textColor:{light:r.content.primaryInverse,dark:r.content.primaryInverse},border:"none",backgroundColor:{light:r.surface.ai,dark:r.surface.ai,circle:r.surface.ai}}},e=(r,e)=>n[e].iconColor[r],t=(r,e)=>n[e].textColor[r],o=r=>n[r].border,i=(r,e)=>n[e].backgroundColor[r],a=r=>"regular"===r?"4px 8px":"2px 6px";export{o as generateBorder,i as getBackgroundColor,a as getPadding,e as getTagIconColor,t as getTextColor};
1
+ import{COLORS as r}from"../../constants/Theme.js";const n={blue:{iconColor:{light:r.content.blue,dark:r.content.primaryInverse},textColor:{light:r.content.blue,dark:r.content.primaryInverse},border:r.stroke.blue.lightAlt,backgroundColor:{light:r.background.blue.light,dark:r.content.blue,circle:r.content.blue}},purple:{iconColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},textColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},border:r.stroke.brandLightAlt,backgroundColor:{light:r.background.brandLight,dark:r.background.inverse,circle:r.background.inverse}},negative:{iconColor:{light:r.content.negative,dark:r.content.primaryInverse},textColor:{light:r.content.negative,dark:r.content.primaryInverse},border:r.stroke.negative.lightAlt,backgroundColor:{light:r.background.negative.light,dark:r.background.negative.vibrant,circle:r.background.negative.vibrant}},positive:{iconColor:{light:r.content.positive,dark:r.content.primaryInverse},textColor:{light:r.content.positive,dark:r.content.primaryInverse},border:r.stroke.positive.lightAlt,backgroundColor:{light:r.background.positive.light,dark:r.background.positive.vibrant,circle:r.background.positive.vibrant}},warning:{iconColor:{light:r.content.warning,dark:r.content.primary},textColor:{light:r.content.warning,dark:r.content.primary},border:r.stroke.warning.lightAlt,backgroundColor:{light:r.background.warning.light,dark:r.background.warning.vibrant,circle:r.background.warning.vibrant}},neutral:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.background.inverse,circle:r.background.inverseLight}},white:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.standard,dark:r.background.inverse,circle:r.background.inverseLight}},grey:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.content.secondary,circle:r.content.secondary}},ai:{iconColor:{light:r.content.primaryInverse,dark:r.content.primaryInverse},textColor:{light:r.content.primaryInverse,dark:r.content.primaryInverse},border:"none",backgroundColor:{light:r.surface.aiLight,dark:r.surface.ai,circle:r.surface.ai}}},e=(r,e)=>n[e].iconColor[r],t=(r,e)=>n[e].textColor[r],o=(r,e)=>"ai"===r&&"light"===e?"rgba(254, 186, 210, 1)":n[r].border,i=(r,e)=>n[e].backgroundColor[r],a=r=>"regular"===r||"compressed"===r?"4px 8px":"2px 6px";export{o as generateBorder,i as getBackgroundColor,a as getPadding,e as getTagIconColor,t as getTextColor};
@@ -5,9 +5,7 @@ export declare const ImageContainer: import("styled-components").StyledComponent
5
5
  export declare const CardLoadingContainer: import("styled-components").StyledComponent<"div", any, {
6
6
  hideHeader?: boolean | undefined;
7
7
  }, never>;
8
- export declare const IframeContainer: import("styled-components").StyledComponent<"div", any, {
9
- borderBottomRadius?: string | undefined;
10
- }, never>;
8
+ export declare const IframeContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
11
9
  export declare const ViewButton: import("styled-components").StyledComponent<"div", any, {}, never>;
12
10
  export declare const EmailContainer: import("styled-components").StyledComponent<"div", any, {
13
11
  hideHeader?: boolean | undefined;