@bikdotai/bik-component-library 0.0.840-tools-beta.5 → 0.0.841-beta.0

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 (185) hide show
  1. package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js +1 -1
  2. package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
  3. package/dist/cjs/components/SearchFilter/index.js +1 -1
  4. package/dist/cjs/components/SearchFilter/index.js.map +1 -1
  5. package/dist/cjs/components/agent-builder/constants/tools.js.map +1 -1
  6. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -1
  7. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.js.map +1 -1
  8. package/dist/cjs/components/avatar/Avatar.js +1 -1
  9. package/dist/cjs/components/avatar/Avatar.js.map +1 -1
  10. package/dist/cjs/components/avatar/Avatar.styled.js +12 -4
  11. package/dist/cjs/components/avatar/Avatar.styled.js.map +1 -1
  12. package/dist/cjs/components/button/themes.js +11 -11
  13. package/dist/cjs/components/button/themes.js.map +1 -1
  14. package/dist/cjs/components/card-selector/CardSelector.js +1 -1
  15. package/dist/cjs/components/card-selector/CardSelector.js.map +1 -1
  16. package/dist/cjs/components/card-selector/CardSelectorGroup.js +1 -1
  17. package/dist/cjs/components/card-selector/CardSelectorGroup.js.map +1 -1
  18. package/dist/cjs/components/carousel/carousel.js +2 -2
  19. package/dist/cjs/components/carousel/carousel.js.map +1 -1
  20. package/dist/cjs/components/checkBox/CheckBox.js +1 -1
  21. package/dist/cjs/components/checkBox/CheckBox.js.map +1 -1
  22. package/dist/cjs/components/code-block/CodeBlock.js +2 -2
  23. package/dist/cjs/components/code-block/CodeBlock.js.map +1 -1
  24. package/dist/cjs/components/colourInput/ColourInput.js +1 -1
  25. package/dist/cjs/components/colourInput/ColourInput.js.map +1 -1
  26. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  27. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js.map +1 -1
  28. package/dist/cjs/components/dot-pulse/DotPulse.js +3 -3
  29. package/dist/cjs/components/dot-pulse/DotPulse.js.map +1 -1
  30. package/dist/cjs/components/dropShadow/DropShadow.js +1 -1
  31. package/dist/cjs/components/dropShadow/DropShadow.js.map +1 -1
  32. package/dist/cjs/components/dropdown/ChipInput.js +1 -1
  33. package/dist/cjs/components/dropdown/ChipInput.js.map +1 -1
  34. package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -1
  35. package/dist/cjs/components/dropdown/DropdownPopover/index.js.map +1 -1
  36. package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -1
  37. package/dist/cjs/components/dropdown-button/DropdownButton.js.map +1 -1
  38. package/dist/cjs/components/floater/floater.js +1 -1
  39. package/dist/cjs/components/floater/floater.js.map +1 -1
  40. package/dist/cjs/components/input/Input.js +1 -1
  41. package/dist/cjs/components/input/Input.js.map +1 -1
  42. package/dist/cjs/components/modals/styledModal.js +2 -2
  43. package/dist/cjs/components/modals/styledModal.js.map +1 -1
  44. package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -1
  45. package/dist/cjs/components/multi-level-dropdown/MenuItem.js.map +1 -1
  46. package/dist/cjs/components/pagination/Pagination.js +1 -1
  47. package/dist/cjs/components/pagination/Pagination.js.map +1 -1
  48. package/dist/cjs/components/progress-bar/CircularProgressBar.js +1 -1
  49. package/dist/cjs/components/progress-bar/CircularProgressBar.js.map +1 -1
  50. package/dist/cjs/components/progress-bar/ProgressBarComponent.js +2 -2
  51. package/dist/cjs/components/progress-bar/ProgressBarComponent.js.map +1 -1
  52. package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js +17 -17
  53. package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js.map +1 -1
  54. package/dist/cjs/components/radioButton/RadioButton.js +1 -1
  55. package/dist/cjs/components/radioButton/RadioButton.js.map +1 -1
  56. package/dist/cjs/components/radioList/RadioList.js +1 -1
  57. package/dist/cjs/components/radioList/RadioList.js.map +1 -1
  58. package/dist/cjs/components/searchBar/searchBar.js +1 -1
  59. package/dist/cjs/components/searchBar/searchBar.js.map +1 -1
  60. package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
  61. package/dist/cjs/components/shimmer-image/ShimmerImage.js.map +1 -1
  62. package/dist/cjs/components/side-modal/SideModal.js +1 -1
  63. package/dist/cjs/components/side-modal/SideModal.js.map +1 -1
  64. package/dist/cjs/components/spinner/Spinner.js +3 -3
  65. package/dist/cjs/components/spinner/Spinner.js.map +1 -1
  66. package/dist/cjs/components/star-rating/Star.js +1 -1
  67. package/dist/cjs/components/star-rating/Star.js.map +1 -1
  68. package/dist/cjs/components/star-rating/StarRating.js +2 -2
  69. package/dist/cjs/components/star-rating/StarRating.js.map +1 -1
  70. package/dist/cjs/components/states/StateComponent.js +1 -1
  71. package/dist/cjs/components/states/StateComponent.js.map +1 -1
  72. package/dist/cjs/components/stepper/Stepper.js +1 -1
  73. package/dist/cjs/components/stepper/Stepper.js.map +1 -1
  74. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  75. package/dist/cjs/components/template-preview/TemplatePreview.js.map +1 -1
  76. package/dist/cjs/components/testimonial-card/TestimonialCard.js +1 -1
  77. package/dist/cjs/components/testimonial-card/TestimonialCard.js.map +1 -1
  78. package/dist/cjs/components/thumbnail/Thumbnail.js +1 -1
  79. package/dist/cjs/components/thumbnail/Thumbnail.js.map +1 -1
  80. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
  81. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js.map +1 -1
  82. package/dist/cjs/components/zeroState/ZeroState.js +3 -3
  83. package/dist/cjs/components/zeroState/ZeroState.js.map +1 -1
  84. package/dist/cjs/icons/Media/Visual/FormkitNeutral.js +2 -0
  85. package/dist/cjs/icons/Media/Visual/FormkitNeutral.js.map +1 -0
  86. package/dist/cjs/icons/Media/Visual/FormkitSad.js +2 -0
  87. package/dist/cjs/icons/Media/Visual/FormkitSad.js.map +1 -0
  88. package/dist/cjs/icons/index.js +1 -1
  89. package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js +66 -61
  90. package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
  91. package/dist/esm/components/SearchFilter/index.js +11 -10
  92. package/dist/esm/components/SearchFilter/index.js.map +1 -1
  93. package/dist/esm/components/agent-builder/constants/tools.js.map +1 -1
  94. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.js +11 -10
  95. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.js.map +1 -1
  96. package/dist/esm/components/avatar/Avatar.d.ts +2 -1
  97. package/dist/esm/components/avatar/Avatar.js +34 -24
  98. package/dist/esm/components/avatar/Avatar.js.map +1 -1
  99. package/dist/esm/components/avatar/Avatar.styled.d.ts +1 -0
  100. package/dist/esm/components/avatar/Avatar.styled.js +17 -8
  101. package/dist/esm/components/avatar/Avatar.styled.js.map +1 -1
  102. package/dist/esm/components/button/themes.d.ts +1 -0
  103. package/dist/esm/components/button/themes.js +61 -51
  104. package/dist/esm/components/button/themes.js.map +1 -1
  105. package/dist/esm/components/card-selector/CardSelector.js +11 -9
  106. package/dist/esm/components/card-selector/CardSelector.js.map +1 -1
  107. package/dist/esm/components/card-selector/CardSelectorGroup.js +1 -0
  108. package/dist/esm/components/card-selector/CardSelectorGroup.js.map +1 -1
  109. package/dist/esm/components/carousel/carousel.js +8 -8
  110. package/dist/esm/components/carousel/carousel.js.map +1 -1
  111. package/dist/esm/components/checkBox/CheckBox.js +8 -5
  112. package/dist/esm/components/checkBox/CheckBox.js.map +1 -1
  113. package/dist/esm/components/code-block/CodeBlock.js +14 -14
  114. package/dist/esm/components/code-block/CodeBlock.js.map +1 -1
  115. package/dist/esm/components/colourInput/ColourInput.js +11 -10
  116. package/dist/esm/components/colourInput/ColourInput.js.map +1 -1
  117. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js +28 -21
  118. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js.map +1 -1
  119. package/dist/esm/components/dot-pulse/DotPulse.js +15 -15
  120. package/dist/esm/components/dot-pulse/DotPulse.js.map +1 -1
  121. package/dist/esm/components/dropShadow/DropShadow.js +6 -6
  122. package/dist/esm/components/dropShadow/DropShadow.js.map +1 -1
  123. package/dist/esm/components/dropdown/ChipInput.js +10 -9
  124. package/dist/esm/components/dropdown/ChipInput.js.map +1 -1
  125. package/dist/esm/components/dropdown/DropdownPopover/index.js +26 -25
  126. package/dist/esm/components/dropdown/DropdownPopover/index.js.map +1 -1
  127. package/dist/esm/components/dropdown-button/DropdownButton.js +13 -13
  128. package/dist/esm/components/dropdown-button/DropdownButton.js.map +1 -1
  129. package/dist/esm/components/floater/floater.js +14 -13
  130. package/dist/esm/components/floater/floater.js.map +1 -1
  131. package/dist/esm/components/input/Input.js +35 -34
  132. package/dist/esm/components/input/Input.js.map +1 -1
  133. package/dist/esm/components/input/Input.model.d.ts +1 -0
  134. package/dist/esm/components/modals/styledModal.js +6 -5
  135. package/dist/esm/components/modals/styledModal.js.map +1 -1
  136. package/dist/esm/components/multi-level-dropdown/MenuItem.js +28 -27
  137. package/dist/esm/components/multi-level-dropdown/MenuItem.js.map +1 -1
  138. package/dist/esm/components/pagination/Pagination.js +7 -7
  139. package/dist/esm/components/pagination/Pagination.js.map +1 -1
  140. package/dist/esm/components/progress-bar/CircularProgressBar.js +61 -50
  141. package/dist/esm/components/progress-bar/CircularProgressBar.js.map +1 -1
  142. package/dist/esm/components/progress-bar/ProgressBarComponent.js +14 -13
  143. package/dist/esm/components/progress-bar/ProgressBarComponent.js.map +1 -1
  144. package/dist/esm/components/progress-bar-v2/ProgressBarV2.js +57 -39
  145. package/dist/esm/components/progress-bar-v2/ProgressBarV2.js.map +1 -1
  146. package/dist/esm/components/radioButton/RadioButton.js +10 -9
  147. package/dist/esm/components/radioButton/RadioButton.js.map +1 -1
  148. package/dist/esm/components/radioList/RadioList.js +28 -19
  149. package/dist/esm/components/radioList/RadioList.js.map +1 -1
  150. package/dist/esm/components/searchBar/searchBar.js +11 -10
  151. package/dist/esm/components/searchBar/searchBar.js.map +1 -1
  152. package/dist/esm/components/shimmer-image/ShimmerImage.js +19 -18
  153. package/dist/esm/components/shimmer-image/ShimmerImage.js.map +1 -1
  154. package/dist/esm/components/side-modal/SideModal.js +13 -5
  155. package/dist/esm/components/side-modal/SideModal.js.map +1 -1
  156. package/dist/esm/components/spinner/Spinner.js +19 -11
  157. package/dist/esm/components/spinner/Spinner.js.map +1 -1
  158. package/dist/esm/components/star-rating/Star.d.ts +1 -0
  159. package/dist/esm/components/star-rating/Star.js +32 -27
  160. package/dist/esm/components/star-rating/Star.js.map +1 -1
  161. package/dist/esm/components/star-rating/StarRating.js +17 -16
  162. package/dist/esm/components/star-rating/StarRating.js.map +1 -1
  163. package/dist/esm/components/states/StateComponent.js +47 -30
  164. package/dist/esm/components/states/StateComponent.js.map +1 -1
  165. package/dist/esm/components/stepper/Stepper.js +24 -16
  166. package/dist/esm/components/stepper/Stepper.js.map +1 -1
  167. package/dist/esm/components/template-preview/TemplatePreview.js +41 -40
  168. package/dist/esm/components/template-preview/TemplatePreview.js.map +1 -1
  169. package/dist/esm/components/testimonial-card/TestimonialCard.js +5 -4
  170. package/dist/esm/components/testimonial-card/TestimonialCard.js.map +1 -1
  171. package/dist/esm/components/thumbnail/Thumbnail.js +3 -3
  172. package/dist/esm/components/thumbnail/Thumbnail.js.map +1 -1
  173. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +19 -18
  174. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js.map +1 -1
  175. package/dist/esm/components/zeroState/ZeroState.js +20 -13
  176. package/dist/esm/components/zeroState/ZeroState.js.map +1 -1
  177. package/dist/esm/icons/Media/Visual/FormkitNeutral.js +58 -0
  178. package/dist/esm/icons/Media/Visual/FormkitNeutral.js.map +1 -0
  179. package/dist/esm/icons/Media/Visual/FormkitSad.js +61 -0
  180. package/dist/esm/icons/Media/Visual/FormkitSad.js.map +1 -0
  181. package/dist/esm/icons/Media/Visual/index.d.ts +2 -0
  182. package/dist/esm/icons/index.d.ts +25 -25
  183. package/dist/esm/icons/index.js +420 -416
  184. package/dist/esm/icons/index.js.map +1 -1
  185. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
2
  import y from "../../assets/icons/info.svg.js";
3
- import { BASE_COLORS as r } from "../../constants/Theme.js";
3
+ import { BASE_COLORS as t } from "../../constants/Theme.js";
4
4
  import { BodyCaption as C, TitleLarge as f } from "../TypographyStyle.js";
5
5
  import { AnalyticsChipChannelFooter as g } from "./AnalyticsChipChannelFooter.js";
6
6
  import { AnalyticsChipContainer as x } from "./CommonStyles.js";
@@ -10,11 +10,11 @@ const L = (e) => {
10
10
  title: n,
11
11
  primaryValue: a,
12
12
  titleColor: c,
13
- captionColor: s = r.grayscale[700],
14
- backgroundColor: p = r.grayscale[50],
15
- width: m = "224.67px",
16
- extraJSX: h,
17
- tooltipContent: t,
13
+ captionColor: s = t.grayscale[700],
14
+ backgroundColor: p = t.grayscale[50],
15
+ width: h = "224.67px",
16
+ extraJSX: m,
17
+ tooltipContent: r,
18
18
  channelConfig: i,
19
19
  style: d
20
20
  } = e;
@@ -23,22 +23,23 @@ const L = (e) => {
23
23
  {
24
24
  style: d ?? {},
25
25
  backgroundColor: p,
26
- width: m,
26
+ width: h,
27
27
  children: [
28
28
  /* @__PURE__ */ l("div", { className: "sub--container", children: [
29
29
  /* @__PURE__ */ o(C, { style: { color: s }, children: n }),
30
- t && /* @__PURE__ */ o(u, { body: t, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
30
+ r && /* @__PURE__ */ o(u, { body: r, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
31
31
  y,
32
32
  {
33
+ "data-test": "analytics-chip-tooltip-icon",
33
34
  height: 14.67,
34
35
  width: 14.67,
35
- color: r.grayscale[500]
36
+ color: t.grayscale[500]
36
37
  }
37
38
  ) }) })
38
39
  ] }),
39
40
  /* @__PURE__ */ o(f, { style: { color: c }, children: a }),
40
41
  i && /* @__PURE__ */ o(g, { channelConfig: i }),
41
- h
42
+ m
42
43
  ]
43
44
  }
44
45
  );
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsChip.js","sources":["../../../../src/components/analytics-chips-and-dropdowns/AnalyticsChip.tsx"],"sourcesContent":["import Info from '@src/assets/icons/info.svg';\nimport React from 'react';\nimport { Tooltip } from '@src/components/tooltips';\nimport { BASE_COLORS } from '@src/constants/Theme';\nimport { BodyCaption, TitleLarge } from '../TypographyStyle';\nimport { AnalyticsChipInterface } from './AnalyticsChip.model';\nimport { AnalyticsChipChannelFooter } from './AnalyticsChipChannelFooter';\nimport { AnalyticsChipContainer } from './CommonStyles';\n\nexport const AnalyticsChip: React.FC<AnalyticsChipInterface> = (props) => {\n\tconst {\n\t\ttitle,\n\t\tprimaryValue,\n\t\ttitleColor,\n\t\tcaptionColor = BASE_COLORS.grayscale[700],\n\t\tbackgroundColor = BASE_COLORS.grayscale[50],\n\t\twidth = '224.67px',\n\t\textraJSX,\n\t\ttooltipContent,\n\t\tchannelConfig,\n\t\tstyle,\n\t} = props;\n\treturn (\n\t\t<AnalyticsChipContainer\n\t\t\tstyle={style ?? {}}\n\t\t\tbackgroundColor={backgroundColor}\n\t\t\twidth={width}\n\t\t>\n\t\t\t<div className=\"sub--container\">\n\t\t\t\t<BodyCaption style={{ color: captionColor }}>{title}</BodyCaption>\n\t\t\t\t{tooltipContent && (\n\t\t\t\t\t<Tooltip body={tooltipContent}>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<Info\n\t\t\t\t\t\t\t\theight={14.67}\n\t\t\t\t\t\t\t\twidth={14.67}\n\t\t\t\t\t\t\t\tcolor={BASE_COLORS.grayscale[500]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</Tooltip>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t<TitleLarge style={{ color: titleColor }}>{primaryValue}</TitleLarge>\n\t\t\t{channelConfig && (\n\t\t\t\t<AnalyticsChipChannelFooter channelConfig={channelConfig} />\n\t\t\t)}\n\t\t\t{extraJSX}\n\t\t</AnalyticsChipContainer>\n\t);\n};\n"],"names":["AnalyticsChip","props","title","primaryValue","titleColor","captionColor","BASE_COLORS","backgroundColor","width","extraJSX","tooltipContent","channelConfig","style","jsxs","AnalyticsChipContainer","jsx","BodyCaption","Tooltip","Info","TitleLarge","AnalyticsChipChannelFooter"],"mappings":";;;;;;;AASO,MAAMA,IAAkD,CAACC,MAAU;AACzE,QAAM;AAAA,IACL,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC,IAAeC,EAAY,UAAU,GAAG;AAAA,IACxC,iBAAAC,IAAkBD,EAAY,UAAU,EAAE;AAAA,IAC1C,OAAAE,IAAQ;AAAA,IACR,UAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,EAAA,IACGX;AACJ,SACC,gBAAAY;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,OAAOF,KAAS,CAAA;AAAA,MAChB,iBAAAL;AAAA,MACA,OAAAC;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAK,EAAC,OAAA,EAAI,WAAU,kBACd,UAAA;AAAA,UAAA,gBAAAE,EAACC,KAAY,OAAO,EAAE,OAAOX,EAAA,GAAiB,UAAAH,GAAM;AAAA,UACnDQ,KACA,gBAAAK,EAACE,GAAA,EAAQ,MAAMP,GACd,4BAAC,OAAA,EACA,UAAA,gBAAAK;AAAA,YAACG;AAAAA,YAAA;AAAA,cACA,QAAQ;AAAA,cACR,OAAO;AAAA,cACP,OAAOZ,EAAY,UAAU,GAAG;AAAA,YAAA;AAAA,UAAA,GAElC,EAAA,CACD;AAAA,QAAA,GAEF;AAAA,0BACCa,GAAA,EAAW,OAAO,EAAE,OAAOf,EAAA,GAAe,UAAAD,GAAa;AAAA,QACvDQ,KACA,gBAAAI,EAACK,GAAA,EAA2B,eAAAT,EAAA,CAA8B;AAAA,QAE1DF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
1
+ {"version":3,"file":"AnalyticsChip.js","sources":["../../../../src/components/analytics-chips-and-dropdowns/AnalyticsChip.tsx"],"sourcesContent":["import Info from '@src/assets/icons/info.svg';\nimport React from 'react';\nimport { Tooltip } from '@src/components/tooltips';\nimport { BASE_COLORS } from '@src/constants/Theme';\nimport { BodyCaption, TitleLarge } from '../TypographyStyle';\nimport { AnalyticsChipInterface } from './AnalyticsChip.model';\nimport { AnalyticsChipChannelFooter } from './AnalyticsChipChannelFooter';\nimport { AnalyticsChipContainer } from './CommonStyles';\n\nexport const AnalyticsChip: React.FC<AnalyticsChipInterface> = (props) => {\n\tconst {\n\t\ttitle,\n\t\tprimaryValue,\n\t\ttitleColor,\n\t\tcaptionColor = BASE_COLORS.grayscale[700],\n\t\tbackgroundColor = BASE_COLORS.grayscale[50],\n\t\twidth = '224.67px',\n\t\textraJSX,\n\t\ttooltipContent,\n\t\tchannelConfig,\n\t\tstyle,\n\t} = props;\n\treturn (\n\t\t<AnalyticsChipContainer\n\t\t\tstyle={style ?? {}}\n\t\t\tbackgroundColor={backgroundColor}\n\t\t\twidth={width}\n\t\t>\n\t\t\t<div className=\"sub--container\">\n\t\t\t\t<BodyCaption style={{ color: captionColor }}>{title}</BodyCaption>\n\t\t\t\t{tooltipContent && (\n\t\t\t\t\t<Tooltip body={tooltipContent}>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<Info\n\t\t\t\t\t\t\t\tdata-test=\"analytics-chip-tooltip-icon\"\n\t\t\t\t\t\t\t\theight={14.67}\n\t\t\t\t\t\t\t\twidth={14.67}\n\t\t\t\t\t\t\t\tcolor={BASE_COLORS.grayscale[500]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</Tooltip>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t<TitleLarge style={{ color: titleColor }}>{primaryValue}</TitleLarge>\n\t\t\t{channelConfig && (\n\t\t\t\t<AnalyticsChipChannelFooter channelConfig={channelConfig} />\n\t\t\t)}\n\t\t\t{extraJSX}\n\t\t</AnalyticsChipContainer>\n\t);\n};\n"],"names":["AnalyticsChip","props","title","primaryValue","titleColor","captionColor","BASE_COLORS","backgroundColor","width","extraJSX","tooltipContent","channelConfig","style","jsxs","AnalyticsChipContainer","jsx","BodyCaption","Tooltip","Info","TitleLarge","AnalyticsChipChannelFooter"],"mappings":";;;;;;;AASO,MAAMA,IAAkD,CAACC,MAAU;AACzE,QAAM;AAAA,IACL,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC,IAAeC,EAAY,UAAU,GAAG;AAAA,IACxC,iBAAAC,IAAkBD,EAAY,UAAU,EAAE;AAAA,IAC1C,OAAAE,IAAQ;AAAA,IACR,UAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,EAAA,IACGX;AACJ,SACC,gBAAAY;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,OAAOF,KAAS,CAAA;AAAA,MAChB,iBAAAL;AAAA,MACA,OAAAC;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAK,EAAC,OAAA,EAAI,WAAU,kBACd,UAAA;AAAA,UAAA,gBAAAE,EAACC,KAAY,OAAO,EAAE,OAAOX,EAAA,GAAiB,UAAAH,GAAM;AAAA,UACnDQ,KACA,gBAAAK,EAACE,GAAA,EAAQ,MAAMP,GACd,4BAAC,OAAA,EACA,UAAA,gBAAAK;AAAA,YAACG;AAAAA,YAAA;AAAA,cACA,aAAU;AAAA,cACV,QAAQ;AAAA,cACR,OAAO;AAAA,cACP,OAAOZ,EAAY,UAAU,GAAG;AAAA,YAAA;AAAA,UAAA,GAElC,EAAA,CACD;AAAA,QAAA,GAEF;AAAA,0BACCa,GAAA,EAAW,OAAO,EAAE,OAAOf,EAAA,GAAe,UAAAD,GAAa;AAAA,QACvDQ,KACA,gBAAAI,EAACK,GAAA,EAA2B,eAAAT,EAAA,CAA8B;AAAA,QAE1DF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
@@ -45,6 +45,7 @@ export declare const enum MESSAGE_CHANNELS {
45
45
  SMTP = "smtp",
46
46
  FACEBOOK_CATALOG = "facebook-catalog",
47
47
  TASKS = "tasks",
48
- BIK_LIVECHAT = "livechat"
48
+ BIK_LIVECHAT = "livechat",
49
+ VOICE = "voice"
49
50
  }
50
51
  export declare const Avatar: React.FC<AvatarProps>;
@@ -1,16 +1,17 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as R } from "react";
3
- import { TitleMedium as k, TitleSmall as A, SubHeading as w, BodyTiny as x } from "../TypographyStyle.js";
3
+ import { TitleMedium as k, TitleSmall as w, SubHeading as A, BodyTiny as O } from "../TypographyStyle.js";
4
4
  import { COLORS as i } from "../../constants/Theme.js";
5
- import O from "../../assets/icons/bik_livechat.svg.js";
5
+ import x from "../../assets/icons/bik_livechat.svg.js";
6
6
  import u from "../../assets/icons/email-channel.svg.js";
7
7
  import d from "../../assets/icons/facebook_channel.svg.js";
8
8
  import z from "../../assets/icons/gmail.svg.js";
9
9
  import C from "../../assets/icons/instagram-channel.svg.js";
10
- import L from "../../assets/icons/task.svg.js";
10
+ import P from "../../assets/icons/task.svg.js";
11
11
  import U from "../../assets/icons/whatsapp_color.svg.js";
12
- import { AvatarStyle as B } from "./Avatar.styled.js";
13
- import { SIZE as a, AVATAR_TYPES as r, AVATAR_BACKGROUND as s, AVATAR_SIZE_MAP as l } from "./AvatarHelper.js";
12
+ import { AvatarStyle as B, PhoneIconWrapper as L } from "./Avatar.styled.js";
13
+ import { SIZE as a, AVATAR_TYPES as r, AVATAR_BACKGROUND as s, AVATAR_SIZE_MAP as h } from "./AvatarHelper.js";
14
+ import F from "../../icons/Informational/Communication/Phone.js";
14
15
  const n = {
15
16
  [a.EXTRA_SMALL]: 10,
16
17
  [a.SMALL]: 16,
@@ -22,32 +23,32 @@ const n = {
22
23
  [s.DARK]: i.surface.standard,
23
24
  [s.BRAND]: i.background.inverseLight
24
25
  };
25
- var P = /* @__PURE__ */ ((t) => (t.INSTAGRAM = "instagram", t.MESSENGER = "messenger", t.WHATSAPP = "whatsapp", t.GMAIL = "gmail", t.LIVECHAT = "livechat", t.GOOGLE_BUSINESS_CHAT = "gbm", t.SHOPIFY = "shopify", t.FACEBOOK = "facebook", t.EMAIL = "email", t.SMTP = "smtp", t.FACEBOOK_CATALOG = "facebook-catalog", t.TASKS = "tasks", t.BIK_LIVECHAT = "livechat", t))(P || {});
26
- const J = (t) => {
27
- const [h, f] = R(!1), g = () => {
28
- const o = (t.name || "").split(".").join(" ").split(" ").map((v) => v.charAt(0).toUpperCase()).slice(0, 2).join(""), c = b[t.background];
29
- return t.size === a.LARGE ? /* @__PURE__ */ e(k, { style: { color: c }, children: o }) : t.size === a.MEDIUM ? /* @__PURE__ */ e(A, { style: { color: c }, children: o }) : t.size === a.SMALL ? /* @__PURE__ */ e(w, { style: { color: c }, children: o }) : /* @__PURE__ */ e(x, { style: { color: c, fontSize: "6.667px", lineHeight: "8px" }, children: o });
30
- }, I = () => t.useNameFallback && (!t.photoUrl || h) && t.name ? /* @__PURE__ */ e("div", { children: g() }) : t.useNameFallback && t.photoUrl && !h ? /* @__PURE__ */ e(
26
+ var V = /* @__PURE__ */ ((t) => (t.INSTAGRAM = "instagram", t.MESSENGER = "messenger", t.WHATSAPP = "whatsapp", t.GMAIL = "gmail", t.LIVECHAT = "livechat", t.GOOGLE_BUSINESS_CHAT = "gbm", t.SHOPIFY = "shopify", t.FACEBOOK = "facebook", t.EMAIL = "email", t.SMTP = "smtp", t.FACEBOOK_CATALOG = "facebook-catalog", t.TASKS = "tasks", t.BIK_LIVECHAT = "livechat", t.VOICE = "voice", t))(V || {});
27
+ const H = (t) => {
28
+ const [l, I] = R(!1), g = () => {
29
+ const o = (t.name || "").split(".").join(" ").split(" ").map((T) => T.charAt(0).toUpperCase()).slice(0, 2).join(""), c = b[t.background];
30
+ return t.size === a.LARGE ? /* @__PURE__ */ e(k, { style: { color: c }, children: o }) : t.size === a.MEDIUM ? /* @__PURE__ */ e(w, { style: { color: c }, children: o }) : t.size === a.SMALL ? /* @__PURE__ */ e(A, { style: { color: c }, children: o }) : /* @__PURE__ */ e(O, { style: { color: c, fontSize: "6.667px", lineHeight: "8px" }, children: o });
31
+ }, f = () => t.useNameFallback && (!t.photoUrl || l) && t.name ? /* @__PURE__ */ e("div", { children: g() }) : t.useNameFallback && t.photoUrl && !l ? /* @__PURE__ */ e(
31
32
  "img",
32
33
  {
33
34
  alt: "",
34
- width: l[t.size],
35
- height: l[t.size],
35
+ width: h[t.size],
36
+ height: h[t.size],
36
37
  style: {
37
38
  borderRadius: t?.borderRadius || "50%",
38
39
  objectFit: "contain"
39
40
  },
40
41
  src: t.photoUrl,
41
42
  onError: () => {
42
- f(!0);
43
+ I(!0);
43
44
  }
44
45
  }
45
46
  ) : /* @__PURE__ */ e(
46
47
  "img",
47
48
  {
48
49
  alt: "",
49
- width: l[t.size],
50
- height: l[t.size],
50
+ width: h[t.size],
51
+ height: h[t.size],
51
52
  style: {
52
53
  borderRadius: t?.borderRadius || "50%",
53
54
  objectFit: "contain"
@@ -73,11 +74,20 @@ const J = (t) => {
73
74
  case "gmail":
74
75
  return /* @__PURE__ */ e(z, { width: 11, height: 11 });
75
76
  case "tasks":
76
- return /* @__PURE__ */ e(L, { width: 11, height: 11 });
77
+ return /* @__PURE__ */ e(P, { width: 11, height: 11 });
77
78
  case "livechat":
78
- return /* @__PURE__ */ e(O, { width: 11, height: 11 });
79
+ return /* @__PURE__ */ e(x, { width: 11, height: 11 });
80
+ case "voice":
81
+ return /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(
82
+ F,
83
+ {
84
+ width: 8,
85
+ height: 8,
86
+ color: i.content.secondaryInverse
87
+ }
88
+ ) });
79
89
  }
80
- }, T = () => t.status ? /* @__PURE__ */ e(
90
+ }, v = () => t.status ? /* @__PURE__ */ e(
81
91
  "div",
82
92
  {
83
93
  style: {
@@ -98,11 +108,11 @@ const J = (t) => {
98
108
  /* @__PURE__ */ m(
99
109
  B,
100
110
  {
101
- type: t.type === r.IMAGE && (h || !t.photoUrl) && t.useNameFallback && t.name ? r.INITIALS : t.type,
111
+ type: t.type === r.IMAGE && (l || !t.photoUrl) && t.useNameFallback && t.name ? r.INITIALS : t.type,
102
112
  size: t.size,
103
113
  background: t.background,
104
114
  children: [
105
- t.type === r.IMAGE && I(),
115
+ t.type === r.IMAGE && f(),
106
116
  t.type === r.INITIALS && /* @__PURE__ */ e("div", { children: g() }),
107
117
  t.type === r.ICON && t.icon && /* @__PURE__ */ e(
108
118
  t.icon,
@@ -150,7 +160,7 @@ const J = (t) => {
150
160
  backgroundColor: i.surface.standard,
151
161
  alignItems: "center"
152
162
  },
153
- children: T()
163
+ children: v()
154
164
  }
155
165
  )
156
166
  ]
@@ -159,8 +169,8 @@ const J = (t) => {
159
169
  };
160
170
  export {
161
171
  n as AVATAR_SIZE_VS_ICON_SIZE_MAP,
162
- J as Avatar,
172
+ H as Avatar,
163
173
  b as BACKGROUND_VS_TEXT_COLOR_MAP,
164
- P as MESSAGE_CHANNELS
174
+ V as MESSAGE_CHANNELS
165
175
  };
166
176
  //# sourceMappingURL=Avatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.js","sources":["../../../../src/components/avatar/Avatar.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport {\n\tBodyTiny,\n\tSubHeading,\n\tTitleMedium,\n\tTitleSmall,\n} from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\nimport BikLivechatIcon from '../../assets/icons/bik_livechat.svg';\nimport EmailIcon from '../../assets/icons/email-channel.svg';\nimport FacebookIcon from '../../assets/icons/facebook_channel.svg';\nimport GmailIcon from '../../assets/icons/gmail.svg';\nimport InstagramIcon from '../../assets/icons/instagram-channel.svg';\nimport TaskIcon from '../../assets/icons/task.svg';\nimport WhatsappIcon from '../../assets/icons/whatsapp_color.svg';\nimport { AvatarStyle } from './Avatar.styled';\nimport {\n\tAVATAR_BACKGROUND,\n\tAVATAR_SIZE_MAP,\n\tAVATAR_TYPES,\n\tSIZE,\n} from './AvatarHelper';\n\nexport const AVATAR_SIZE_VS_ICON_SIZE_MAP = {\n\t[SIZE.EXTRA_SMALL]: 10,\n\t[SIZE.SMALL]: 16,\n\t[SIZE.MEDIUM]: 20,\n\t[SIZE.LARGE]: 32,\n};\n\nexport const BACKGROUND_VS_TEXT_COLOR_MAP = {\n\t[AVATAR_BACKGROUND.LIGHT]: COLORS.content.secondary,\n\t[AVATAR_BACKGROUND.WHITE]: COLORS.content.secondary,\n\t[AVATAR_BACKGROUND.DARK]: COLORS.surface.standard,\n\t[AVATAR_BACKGROUND.BRAND]: COLORS.background.inverseLight,\n};\n\nexport type AvatarProps = {\n\ttype: AVATAR_TYPES;\n\tsize: SIZE;\n\tbackground: AVATAR_BACKGROUND;\n\tname?: string;\n\tphotoUrl?: string;\n\ticon?: React.FC<{ width: number; height: number; color: string }>;\n\tuseNameFallback?: boolean;\n\tchannelName?: MESSAGE_CHANNELS;\n\tborderRadius?: string;\n\tinboxSettings?: {\n\t\tisSelected: boolean;\n\t\tisComments: boolean;\n\t};\n\tstatus?: 'ONLINE' | 'OFFLINE' | 'AWAY';\n};\n\nexport const enum MESSAGE_CHANNELS {\n\tINSTAGRAM = 'instagram',\n\tMESSENGER = 'messenger',\n\tWHATSAPP = 'whatsapp',\n\tGMAIL = 'gmail',\n\tLIVECHAT = 'livechat',\n\tGOOGLE_BUSINESS_CHAT = 'gbm',\n\tSHOPIFY = 'shopify',\n\tFACEBOOK = 'facebook',\n\tEMAIL = 'email',\n\tSMTP = 'smtp',\n\tFACEBOOK_CATALOG = 'facebook-catalog',\n\tTASKS = 'tasks',\n\tBIK_LIVECHAT = 'livechat',\n}\n\nexport const Avatar: React.FC<AvatarProps> = (props) => {\n\tconst [imgError, setImgError] = useState<boolean>(false);\n\n\tconst getInitials = () => {\n\t\tconst initials = (props.name || '')\n\t\t\t.split('.')\n\t\t\t.join(' ')\n\t\t\t.split(' ')\n\t\t\t.map((e) => e.charAt(0).toUpperCase())\n\t\t\t.slice(0, 2)\n\t\t\t.join('');\n\n\t\tconst color = BACKGROUND_VS_TEXT_COLOR_MAP[props.background];\n\n\t\tif (props.size === SIZE.LARGE) {\n\t\t\treturn <TitleMedium style={{ color }}>{initials}</TitleMedium>;\n\t\t}\n\t\tif (props.size === SIZE.MEDIUM) {\n\t\t\treturn <TitleSmall style={{ color }}>{initials}</TitleSmall>;\n\t\t}\n\t\tif (props.size === SIZE.SMALL) {\n\t\t\treturn <SubHeading style={{ color }}>{initials}</SubHeading>;\n\t\t}\n\t\t// EXTRA_SMALL: 6.667px / 8px per Figma. BodyTiny's 10px/12px is too large\n\t\t// for the 16px circle (leaves 2px padding instead of the intended 4px).\n\t\treturn (\n\t\t\t<BodyTiny style={{ color, fontSize: '6.667px', lineHeight: '8px' }}>\n\t\t\t\t{initials}\n\t\t\t</BodyTiny>\n\t\t);\n\t};\n\n\tconst getImageBlock = () => {\n\t\tif (props.useNameFallback && (!props.photoUrl || imgError) && props.name) {\n\t\t\treturn <div>{getInitials()}</div>;\n\t\t}\n\t\tif (props.useNameFallback && props.photoUrl && !imgError) {\n\t\t\treturn (\n\t\t\t\t<img\n\t\t\t\t\talt=\"\"\n\t\t\t\t\twidth={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\t\theight={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tborderRadius: props?.borderRadius || '50%',\n\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t}}\n\t\t\t\t\tsrc={props.photoUrl}\n\t\t\t\t\tonError={() => {\n\t\t\t\t\t\tsetImgError(true);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<img\n\t\t\t\talt=\"\"\n\t\t\t\twidth={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\theight={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\tstyle={{\n\t\t\t\t\tborderRadius: props?.borderRadius || '50%',\n\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t}}\n\t\t\t\tsrc={props.photoUrl}\n\t\t\t/>\n\t\t);\n\t};\n\n\tconst getChannelIcon = () => {\n\t\tswitch (props.channelName) {\n\t\t\tcase MESSAGE_CHANNELS.EMAIL:\n\t\t\t\treturn <EmailIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.SMTP:\n\t\t\t\treturn <EmailIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.FACEBOOK:\n\t\t\t\treturn <FacebookIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.FACEBOOK_CATALOG:\n\t\t\t\treturn <FacebookIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.MESSENGER:\n\t\t\t\treturn <FacebookIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.INSTAGRAM:\n\t\t\t\treturn <InstagramIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.WHATSAPP:\n\t\t\t\treturn <WhatsappIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.GMAIL:\n\t\t\t\treturn <GmailIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.TASKS:\n\t\t\t\treturn <TaskIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.BIK_LIVECHAT:\n\t\t\t\treturn <BikLivechatIcon width={11} height={11} />;\n\t\t}\n\t};\n\n\tconst getOnlineStatusIcon = () => {\n\t\treturn props.status ? (\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\tprops.status === 'ONLINE'\n\t\t\t\t\t\t\t? COLORS.special.whatsapp.brand\n\t\t\t\t\t\t\t: COLORS.content.inactive,\n\t\t\t\t\twidth: '8px',\n\t\t\t\t\theight: '8px',\n\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t}}\n\t\t\t></div>\n\t\t) : null;\n\t};\n\n\tconst getPropsType = () => {\n\t\tif (\n\t\t\tprops.type === AVATAR_TYPES.IMAGE &&\n\t\t\t(imgError || !props.photoUrl) &&\n\t\t\tprops.useNameFallback &&\n\t\t\tprops.name\n\t\t) {\n\t\t\treturn AVATAR_TYPES.INITIALS;\n\t\t}\n\n\t\treturn props.type;\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tposition: 'relative',\n\t\t\t}}\n\t\t>\n\t\t\t<AvatarStyle\n\t\t\t\ttype={getPropsType()}\n\t\t\t\tsize={props.size}\n\t\t\t\tbackground={props.background}\n\t\t\t>\n\t\t\t\t{props.type === AVATAR_TYPES.IMAGE && getImageBlock()}\n\t\t\t\t{props.type === AVATAR_TYPES.INITIALS && <div>{getInitials()}</div>}\n\t\t\t\t{props.type === AVATAR_TYPES.ICON && props.icon && (\n\t\t\t\t\t<props.icon\n\t\t\t\t\t\twidth={AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size]}\n\t\t\t\t\t\theight={AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size]}\n\t\t\t\t\t\tcolor={BACKGROUND_VS_TEXT_COLOR_MAP[props.background]}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</AvatarStyle>\n\t\t\t{props.inboxSettings && (\n\t\t\t\t<div\n\t\t\t\t\tdata-test=\"avatar-inbox-badge\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\tleft: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\ttop: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\twidth: 14,\n\t\t\t\t\t\theight: 14,\n\t\t\t\t\t\tborderRadius: props?.borderRadius || '50%',\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\tbackgroundColor: props.inboxSettings.isSelected\n\t\t\t\t\t\t\t? props.inboxSettings.isComments\n\t\t\t\t\t\t\t\t? COLORS.content.primary\n\t\t\t\t\t\t\t\t: COLORS.background.brandLight\n\t\t\t\t\t\t\t: props.inboxSettings.isComments\n\t\t\t\t\t\t\t? COLORS.content.primary\n\t\t\t\t\t\t\t: COLORS.surface.standard,\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{getChannelIcon()}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{props.status && (\n\t\t\t\t<div\n\t\t\t\t\tdata-test=\"avatar-status-indicator\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\tleft: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\ttop: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\twidth: 11,\n\t\t\t\t\t\theight: 11,\n\t\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\tbackgroundColor: COLORS.surface.standard,\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{getOnlineStatusIcon()}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n"],"names":["AVATAR_SIZE_VS_ICON_SIZE_MAP","SIZE","BACKGROUND_VS_TEXT_COLOR_MAP","AVATAR_BACKGROUND","COLORS","MESSAGE_CHANNELS","Avatar","props","imgError","setImgError","useState","getInitials","initials","e","color","TitleMedium","TitleSmall","SubHeading","jsx","BodyTiny","getImageBlock","AVATAR_SIZE_MAP","getChannelIcon","EmailIcon","FacebookIcon","InstagramIcon","WhatsappIcon","GmailIcon","TaskIcon","BikLivechatIcon","getOnlineStatusIcon","jsxs","AvatarStyle","AVATAR_TYPES"],"mappings":";;;;;;;;;;;;;AAuBO,MAAMA,IAA+B;AAAA,EAC3C,CAACC,EAAK,WAAW,GAAG;AAAA,EACpB,CAACA,EAAK,KAAK,GAAG;AAAA,EACd,CAACA,EAAK,MAAM,GAAG;AAAA,EACf,CAACA,EAAK,KAAK,GAAG;AACf,GAEaC,IAA+B;AAAA,EAC3C,CAACC,EAAkB,KAAK,GAAGC,EAAO,QAAQ;AAAA,EAC1C,CAACD,EAAkB,KAAK,GAAGC,EAAO,QAAQ;AAAA,EAC1C,CAACD,EAAkB,IAAI,GAAGC,EAAO,QAAQ;AAAA,EACzC,CAACD,EAAkB,KAAK,GAAGC,EAAO,WAAW;AAC9C;AAmBO,IAAWC,sBAAAA,OACjBA,EAAA,YAAY,aACZA,EAAA,YAAY,aACZA,EAAA,WAAW,YACXA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,uBAAuB,OACvBA,EAAA,UAAU,WACVA,EAAA,WAAW,YACXA,EAAA,QAAQ,SACRA,EAAA,OAAO,QACPA,EAAA,mBAAmB,oBACnBA,EAAA,QAAQ,SACRA,EAAA,eAAe,YAbEA,IAAAA,KAAA,CAAA,CAAA;AAgBX,MAAMC,IAAgC,CAACC,MAAU;AACvD,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAkB,EAAK,GAEjDC,IAAc,MAAM;AACzB,UAAMC,KAAYL,EAAM,QAAQ,IAC9B,MAAM,GAAG,EACT,KAAK,GAAG,EACR,MAAM,GAAG,EACT,IAAI,CAACM,MAAMA,EAAE,OAAO,CAAC,EAAE,YAAA,CAAa,EACpC,MAAM,GAAG,CA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;AAAA,YACA,aAAU;AAAA,YACV,OAAO;AAAA,cACN,UAAU;AAAA,cACV,MAAMlB,EAA6BO,EAAM,IAAI,IAAI;AAAA,cACjD,KAAKP,EAA6BO,EAAM,IAAI,IAAI;AAAA,cAChD,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,cAAc;AAAA,cACd,SAAS;AAAA,cACT,gBAAgB;AAAA,cAChB,iBAAiBH,EAAO,QAAQ;AAAA,cAChC,YAAY;AAAA,YAAA;AAAA,YAGZ,UAAA0B,EAAA;AAAA,UAAoB;AAAA,QAAA;AAAA,MACtB;AAAA,IAAA;AAAA,EAAA;AAIJ;"}
1
+ {"version":3,"file":"Avatar.js","sources":["../../../../src/components/avatar/Avatar.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Phone as PhoneIcon } from '@src/icons';\nimport {\n\tBodyTiny,\n\tSubHeading,\n\tTitleMedium,\n\tTitleSmall,\n} from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\nimport BikLivechatIcon from '../../assets/icons/bik_livechat.svg';\nimport EmailIcon from '../../assets/icons/email-channel.svg';\nimport FacebookIcon from '../../assets/icons/facebook_channel.svg';\nimport GmailIcon from '../../assets/icons/gmail.svg';\nimport InstagramIcon from '../../assets/icons/instagram-channel.svg';\nimport TaskIcon from '../../assets/icons/task.svg';\nimport WhatsappIcon from '../../assets/icons/whatsapp_color.svg';\nimport { AvatarStyle, PhoneIconWrapper } from './Avatar.styled';\nimport {\n\tAVATAR_BACKGROUND,\n\tAVATAR_SIZE_MAP,\n\tAVATAR_TYPES,\n\tSIZE,\n} from './AvatarHelper';\n\nexport const AVATAR_SIZE_VS_ICON_SIZE_MAP = {\n\t[SIZE.EXTRA_SMALL]: 10,\n\t[SIZE.SMALL]: 16,\n\t[SIZE.MEDIUM]: 20,\n\t[SIZE.LARGE]: 32,\n};\n\nexport const BACKGROUND_VS_TEXT_COLOR_MAP = {\n\t[AVATAR_BACKGROUND.LIGHT]: COLORS.content.secondary,\n\t[AVATAR_BACKGROUND.WHITE]: COLORS.content.secondary,\n\t[AVATAR_BACKGROUND.DARK]: COLORS.surface.standard,\n\t[AVATAR_BACKGROUND.BRAND]: COLORS.background.inverseLight,\n};\n\nexport type AvatarProps = {\n\ttype: AVATAR_TYPES;\n\tsize: SIZE;\n\tbackground: AVATAR_BACKGROUND;\n\tname?: string;\n\tphotoUrl?: string;\n\ticon?: React.FC<{ width: number; height: number; color: string }>;\n\tuseNameFallback?: boolean;\n\tchannelName?: MESSAGE_CHANNELS;\n\tborderRadius?: string;\n\tinboxSettings?: {\n\t\tisSelected: boolean;\n\t\tisComments: boolean;\n\t};\n\tstatus?: 'ONLINE' | 'OFFLINE' | 'AWAY';\n};\n\nexport const enum MESSAGE_CHANNELS {\n\tINSTAGRAM = 'instagram',\n\tMESSENGER = 'messenger',\n\tWHATSAPP = 'whatsapp',\n\tGMAIL = 'gmail',\n\tLIVECHAT = 'livechat',\n\tGOOGLE_BUSINESS_CHAT = 'gbm',\n\tSHOPIFY = 'shopify',\n\tFACEBOOK = 'facebook',\n\tEMAIL = 'email',\n\tSMTP = 'smtp',\n\tFACEBOOK_CATALOG = 'facebook-catalog',\n\tTASKS = 'tasks',\n\tBIK_LIVECHAT = 'livechat',\n\tVOICE = 'voice',\n}\n\nexport const Avatar: React.FC<AvatarProps> = (props) => {\n\tconst [imgError, setImgError] = useState<boolean>(false);\n\n\tconst getInitials = () => {\n\t\tconst initials = (props.name || '')\n\t\t\t.split('.')\n\t\t\t.join(' ')\n\t\t\t.split(' ')\n\t\t\t.map((e) => e.charAt(0).toUpperCase())\n\t\t\t.slice(0, 2)\n\t\t\t.join('');\n\n\t\tconst color = BACKGROUND_VS_TEXT_COLOR_MAP[props.background];\n\n\t\tif (props.size === SIZE.LARGE) {\n\t\t\treturn <TitleMedium style={{ color }}>{initials}</TitleMedium>;\n\t\t}\n\t\tif (props.size === SIZE.MEDIUM) {\n\t\t\treturn <TitleSmall style={{ color }}>{initials}</TitleSmall>;\n\t\t}\n\t\tif (props.size === SIZE.SMALL) {\n\t\t\treturn <SubHeading style={{ color }}>{initials}</SubHeading>;\n\t\t}\n\t\t// EXTRA_SMALL: 6.667px / 8px per Figma. BodyTiny's 10px/12px is too large\n\t\t// for the 16px circle (leaves 2px padding instead of the intended 4px).\n\t\treturn (\n\t\t\t<BodyTiny style={{ color, fontSize: '6.667px', lineHeight: '8px' }}>\n\t\t\t\t{initials}\n\t\t\t</BodyTiny>\n\t\t);\n\t};\n\n\tconst getImageBlock = () => {\n\t\tif (props.useNameFallback && (!props.photoUrl || imgError) && props.name) {\n\t\t\treturn <div>{getInitials()}</div>;\n\t\t}\n\t\tif (props.useNameFallback && props.photoUrl && !imgError) {\n\t\t\treturn (\n\t\t\t\t<img\n\t\t\t\t\talt=\"\"\n\t\t\t\t\twidth={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\t\theight={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tborderRadius: props?.borderRadius || '50%',\n\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t}}\n\t\t\t\t\tsrc={props.photoUrl}\n\t\t\t\t\tonError={() => {\n\t\t\t\t\t\tsetImgError(true);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<img\n\t\t\t\talt=\"\"\n\t\t\t\twidth={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\theight={AVATAR_SIZE_MAP[props.size]}\n\t\t\t\tstyle={{\n\t\t\t\t\tborderRadius: props?.borderRadius || '50%',\n\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t}}\n\t\t\t\tsrc={props.photoUrl}\n\t\t\t/>\n\t\t);\n\t};\n\n\tconst getChannelIcon = () => {\n\t\tswitch (props.channelName) {\n\t\t\tcase MESSAGE_CHANNELS.EMAIL:\n\t\t\t\treturn <EmailIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.SMTP:\n\t\t\t\treturn <EmailIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.FACEBOOK:\n\t\t\t\treturn <FacebookIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.FACEBOOK_CATALOG:\n\t\t\t\treturn <FacebookIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.MESSENGER:\n\t\t\t\treturn <FacebookIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.INSTAGRAM:\n\t\t\t\treturn <InstagramIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.WHATSAPP:\n\t\t\t\treturn <WhatsappIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.GMAIL:\n\t\t\t\treturn <GmailIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.TASKS:\n\t\t\t\treturn <TaskIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.BIK_LIVECHAT:\n\t\t\t\treturn <BikLivechatIcon width={11} height={11} />;\n\t\t\tcase MESSAGE_CHANNELS.VOICE:\n\t\t\t\treturn (\n\t\t\t\t\t<PhoneIconWrapper>\n\t\t\t\t\t\t<PhoneIcon\n\t\t\t\t\t\t\twidth={8}\n\t\t\t\t\t\t\theight={8}\n\t\t\t\t\t\t\tcolor={COLORS.content.secondaryInverse}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</PhoneIconWrapper>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tconst getOnlineStatusIcon = () => {\n\t\treturn props.status ? (\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\tprops.status === 'ONLINE'\n\t\t\t\t\t\t\t? COLORS.special.whatsapp.brand\n\t\t\t\t\t\t\t: COLORS.content.inactive,\n\t\t\t\t\twidth: '8px',\n\t\t\t\t\theight: '8px',\n\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t}}\n\t\t\t></div>\n\t\t) : null;\n\t};\n\n\tconst getPropsType = () => {\n\t\tif (\n\t\t\tprops.type === AVATAR_TYPES.IMAGE &&\n\t\t\t(imgError || !props.photoUrl) &&\n\t\t\tprops.useNameFallback &&\n\t\t\tprops.name\n\t\t) {\n\t\t\treturn AVATAR_TYPES.INITIALS;\n\t\t}\n\n\t\treturn props.type;\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tposition: 'relative',\n\t\t\t}}\n\t\t>\n\t\t\t<AvatarStyle\n\t\t\t\ttype={getPropsType()}\n\t\t\t\tsize={props.size}\n\t\t\t\tbackground={props.background}\n\t\t\t>\n\t\t\t\t{props.type === AVATAR_TYPES.IMAGE && getImageBlock()}\n\t\t\t\t{props.type === AVATAR_TYPES.INITIALS && <div>{getInitials()}</div>}\n\t\t\t\t{props.type === AVATAR_TYPES.ICON && props.icon && (\n\t\t\t\t\t<props.icon\n\t\t\t\t\t\twidth={AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size]}\n\t\t\t\t\t\theight={AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size]}\n\t\t\t\t\t\tcolor={BACKGROUND_VS_TEXT_COLOR_MAP[props.background]}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</AvatarStyle>\n\t\t\t{props.inboxSettings && (\n\t\t\t\t<div\n\t\t\t\t\tdata-test=\"avatar-inbox-badge\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\tleft: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\ttop: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\twidth: 14,\n\t\t\t\t\t\theight: 14,\n\t\t\t\t\t\tborderRadius: props?.borderRadius || '50%',\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\tbackgroundColor: props.inboxSettings.isSelected\n\t\t\t\t\t\t\t? props.inboxSettings.isComments\n\t\t\t\t\t\t\t\t? COLORS.content.primary\n\t\t\t\t\t\t\t\t: COLORS.background.brandLight\n\t\t\t\t\t\t\t: props.inboxSettings.isComments\n\t\t\t\t\t\t\t? COLORS.content.primary\n\t\t\t\t\t\t\t: COLORS.surface.standard,\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{getChannelIcon()}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{props.status && (\n\t\t\t\t<div\n\t\t\t\t\tdata-test=\"avatar-status-indicator\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\tleft: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\ttop: AVATAR_SIZE_VS_ICON_SIZE_MAP[props.size] + 'px',\n\t\t\t\t\t\twidth: 11,\n\t\t\t\t\t\theight: 11,\n\t\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\tbackgroundColor: COLORS.surface.standard,\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{getOnlineStatusIcon()}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n"],"names":["AVATAR_SIZE_VS_ICON_SIZE_MAP","SIZE","BACKGROUND_VS_TEXT_COLOR_MAP","AVATAR_BACKGROUND","COLORS","MESSAGE_CHANNELS","Avatar","props","imgError","setImgError","useState","getInitials","initials","e","color","TitleMedium","TitleSmall","SubHeading","jsx","BodyTiny","getImageBlock","AVATAR_SIZE_MAP","getChannelIcon","EmailIcon","FacebookIcon","InstagramIcon","WhatsappIcon","GmailIcon","TaskIcon","BikLivechatIcon","PhoneIconWrapper","PhoneIcon","getOnlineStatusIcon","jsxs","AvatarStyle","AVATAR_TYPES"],"mappings":";;;;;;;;;;;;;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;AAAA,cACV,MAAMlB,EAA6BO,EAAM,IAAI,IAAI;AAAA,cACjD,KAAKP,EAA6BO,EAAM,IAAI,IAAI;AAAA,cAChD,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,cAAc;AAAA,cACd,SAAS;AAAA,cACT,gBAAgB;AAAA,cAChB,iBAAiBH,EAAO,QAAQ;AAAA,cAChC,YAAY;AAAA,YAAA;AAAA,YAGZ,UAAA4B,EAAA;AAAA,UAAoB;AAAA,QAAA;AAAA,MACtB;AAAA,IAAA;AAAA,EAAA;AAIJ;"}
@@ -4,3 +4,4 @@ export declare const AvatarStyle: import('styled-components').StyledComponent<"d
4
4
  background: AVATAR_BACKGROUND;
5
5
  type: AVATAR_TYPES;
6
6
  }, never>;
7
+ export declare const PhoneIconWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,17 +1,26 @@
1
1
  import o from "styled-components";
2
- import { AVATAR_SIZE_MAP as d, AVATAR_TYPES as t, AVATAR_BACKGROUND as e } from "./AvatarHelper.js";
3
- import { COLORS as a } from "../../constants/Theme.js";
4
- const A = o.div`
5
- width: ${(r) => d[r.size] + "px"};
6
- height: ${(r) => d[r.size] + "px"};
2
+ import { AVATAR_SIZE_MAP as t, AVATAR_TYPES as d, AVATAR_BACKGROUND as n } from "./AvatarHelper.js";
3
+ import { COLORS as e } from "../../constants/Theme.js";
4
+ const s = o.div`
5
+ width: ${(r) => t[r.size] + "px"};
6
+ height: ${(r) => t[r.size] + "px"};
7
7
  display: flex;
8
8
  justify-content: center;
9
9
  align-items: center;
10
- background-color: ${(r) => r.type === t.IMAGE ? "null" : r.background === e.LIGHT ? a.background.base : r.background === e.WHITE ? a.surface.standard : r.background === e.BRAND ? a.background.brandLight : a.background.inverse};
11
- border: ${(r) => r.background === e.LIGHT || r.background === e.WHITE ? "1px solid " + a.stroke.primary : 0};
10
+ background-color: ${(r) => r.type === d.IMAGE ? "null" : r.background === n.LIGHT ? e.background.base : r.background === n.WHITE ? e.surface.standard : r.background === n.BRAND ? e.background.brandLight : e.background.inverse};
11
+ border: ${(r) => r.background === n.LIGHT || r.background === n.WHITE ? "1px solid " + e.stroke.primary : 0};
12
12
  border-radius: 50%;
13
+ `, u = o.div`
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ width: 11px;
18
+ height: 11px;
19
+ border-radius: 4px;
20
+ background-color: ${e.content.secondary};
13
21
  `;
14
22
  export {
15
- A as AvatarStyle
23
+ s as AvatarStyle,
24
+ u as PhoneIconWrapper
16
25
  };
17
26
  //# sourceMappingURL=Avatar.styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.styled.js","sources":["../../../../src/components/avatar/Avatar.styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {\n\tAVATAR_BACKGROUND,\n\tAVATAR_SIZE_MAP,\n\tAVATAR_TYPES,\n\tSIZE,\n} from '@src/components/avatar/AvatarHelper';\nimport { COLORS } from '@src/constants/Theme';\n\nexport const AvatarStyle = styled.div<{\n\tsize: SIZE;\n\tbackground: AVATAR_BACKGROUND;\n\ttype: AVATAR_TYPES;\n}>`\n\twidth: ${(props) => AVATAR_SIZE_MAP[props.size] + 'px'};\n\theight: ${(props) => AVATAR_SIZE_MAP[props.size] + 'px'};\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground-color: ${(props) =>\n\t\tprops.type === AVATAR_TYPES.IMAGE\n\t\t\t? 'null'\n\t\t\t: props.background === AVATAR_BACKGROUND.LIGHT\n\t\t\t? COLORS.background.base\n\t\t\t: props.background === AVATAR_BACKGROUND.WHITE\n\t\t\t? COLORS.surface.standard\n\t\t\t: props.background === AVATAR_BACKGROUND.BRAND\n\t\t\t? COLORS.background.brandLight\n\t\t\t: COLORS.background.inverse};\n\tborder: ${(props) =>\n\t\tprops.background === AVATAR_BACKGROUND.LIGHT ||\n\t\tprops.background === AVATAR_BACKGROUND.WHITE\n\t\t\t? '1px solid ' + COLORS.stroke.primary\n\t\t\t: 0};\n\tborder-radius: 50%;\n`;\n"],"names":["AvatarStyle","styled","props","AVATAR_SIZE_MAP","AVATAR_TYPES","AVATAR_BACKGROUND","COLORS"],"mappings":";;;AASO,MAAMA,IAAcC,EAAO;AAAA,UAKxB,CAACC,MAAUC,EAAgBD,EAAM,IAAI,IAAI,IAAI;AAAA,WAC5C,CAACA,MAAUC,EAAgBD,EAAM,IAAI,IAAI,IAAI;AAAA;AAAA;AAAA;AAAA,qBAInC,CAACA,MACpBA,EAAM,SAASE,EAAa,QACzB,SACAF,EAAM,eAAeG,EAAkB,QACvCC,EAAO,WAAW,OAClBJ,EAAM,eAAeG,EAAkB,QACvCC,EAAO,QAAQ,WACfJ,EAAM,eAAeG,EAAkB,QACvCC,EAAO,WAAW,aAClBA,EAAO,WAAW,OAAO;AAAA,WACnB,CAACJ,MACVA,EAAM,eAAeG,EAAkB,SACvCH,EAAM,eAAeG,EAAkB,QACpC,eAAeC,EAAO,OAAO,UAC7B,CAAC;AAAA;AAAA;"}
1
+ {"version":3,"file":"Avatar.styled.js","sources":["../../../../src/components/avatar/Avatar.styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {\n\tAVATAR_BACKGROUND,\n\tAVATAR_SIZE_MAP,\n\tAVATAR_TYPES,\n\tSIZE,\n} from '@src/components/avatar/AvatarHelper';\nimport { COLORS } from '@src/constants/Theme';\n\nexport const AvatarStyle = styled.div<{\n\tsize: SIZE;\n\tbackground: AVATAR_BACKGROUND;\n\ttype: AVATAR_TYPES;\n}>`\n\twidth: ${(props) => AVATAR_SIZE_MAP[props.size] + 'px'};\n\theight: ${(props) => AVATAR_SIZE_MAP[props.size] + 'px'};\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground-color: ${(props) =>\n\t\tprops.type === AVATAR_TYPES.IMAGE\n\t\t\t? 'null'\n\t\t\t: props.background === AVATAR_BACKGROUND.LIGHT\n\t\t\t? COLORS.background.base\n\t\t\t: props.background === AVATAR_BACKGROUND.WHITE\n\t\t\t? COLORS.surface.standard\n\t\t\t: props.background === AVATAR_BACKGROUND.BRAND\n\t\t\t? COLORS.background.brandLight\n\t\t\t: COLORS.background.inverse};\n\tborder: ${(props) =>\n\t\tprops.background === AVATAR_BACKGROUND.LIGHT ||\n\t\tprops.background === AVATAR_BACKGROUND.WHITE\n\t\t\t? '1px solid ' + COLORS.stroke.primary\n\t\t\t: 0};\n\tborder-radius: 50%;\n`;\n\nexport const PhoneIconWrapper = styled.div`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 11px;\n\theight: 11px;\n\tborder-radius: 4px;\n\tbackground-color: ${COLORS.content.secondary};\n`;\n"],"names":["AvatarStyle","styled","props","AVATAR_SIZE_MAP","AVATAR_TYPES","AVATAR_BACKGROUND","COLORS","PhoneIconWrapper"],"mappings":";;;AASO,MAAMA,IAAcC,EAAO;AAAA,UAKxB,CAACC,MAAUC,EAAgBD,EAAM,IAAI,IAAI,IAAI;AAAA,WAC5C,CAACA,MAAUC,EAAgBD,EAAM,IAAI,IAAI,IAAI;AAAA;AAAA;AAAA;AAAA,qBAInC,CAACA,MACpBA,EAAM,SAASE,EAAa,QACzB,SACAF,EAAM,eAAeG,EAAkB,QACvCC,EAAO,WAAW,OAClBJ,EAAM,eAAeG,EAAkB,QACvCC,EAAO,QAAQ,WACfJ,EAAM,eAAeG,EAAkB,QACvCC,EAAO,WAAW,aAClBA,EAAO,WAAW,OAAO;AAAA,WACnB,CAACJ,MACVA,EAAM,eAAeG,EAAkB,SACvCH,EAAM,eAAeG,EAAkB,QACpC,eAAeC,EAAO,OAAO,UAC7B,CAAC;AAAA;AAAA,GAIOC,IAAmBN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAOlBK,EAAO,QAAQ,SAAS;AAAA;"}
@@ -8,6 +8,7 @@ export declare const GetButtonTextComponent: (size: Size, type: Type, disabled?:
8
8
  color?: string | undefined;
9
9
  }, never>;
10
10
  export declare const getBorderColor: (type: Type, inverse?: boolean, error?: boolean) => string;
11
+ export declare const strokeStyle: (size: Size, color: string, width?: number) => string;
11
12
  export declare const getBorder: (version: '1.0' | '2.0' | '3.0', type: Type, size: Size, inverse?: boolean, error?: boolean) => string;
12
13
  export declare const getLinearGradientValue: (size: Size) => string;
13
14
  /**
@@ -1,13 +1,13 @@
1
1
  import { COLORS as r } from "../../constants/Theme.js";
2
- import { ButtonRegularAI as d, ButtonLargeAI as g, BodySecondary as l, BodyCaption as f, ButtonRegular as b, ButtonLarge as p } from "../TypographyStyle.js";
3
- const m = (t, n, e, a, o) => {
2
+ import { ButtonRegularAI as g, ButtonLargeAI as f, BodySecondary as l, BodyCaption as b, ButtonRegular as p, ButtonLarge as h } from "../TypographyStyle.js";
3
+ const y = (t, n, e, a, i) => {
4
4
  if (t === "special") return r.background.brandVeryLight;
5
5
  if (t === "secondaryGray") return "transparent";
6
6
  if (n === "chip")
7
7
  return t === "text" ? "transparent" : a ? r.surface.hovered : r.surface.subdued;
8
8
  switch (t) {
9
9
  case "primary":
10
- return o || (e ? r.background.warning.vibrant : r.background.inverseLight);
10
+ return i || (e ? r.background.warning.vibrant : r.background.inverseLight);
11
11
  case "destructive":
12
12
  return r.background.negative.vibrant;
13
13
  case "tertiary":
@@ -36,7 +36,7 @@ const m = (t, n, e, a, o) => {
36
36
  default:
37
37
  return e ? r.content.primaryInverse : r.stroke.brand;
38
38
  }
39
- }, y = (t) => t ? "rgba(255, 255, 255, 0.5)" : r.content.inactive, v = (t, n) => {
39
+ }, v = (t) => t ? "rgba(255, 255, 255, 0.5)" : r.content.inactive, B = (t, n) => {
40
40
  if (t === "text")
41
41
  return "0px";
42
42
  if (n === "xs")
@@ -70,27 +70,30 @@ const m = (t, n, e, a, o) => {
70
70
  default:
71
71
  return "14px 12px";
72
72
  }
73
- }, B = (t, n, e) => !e && n === "ai" ? t === "small" ? d : g : n === "dashRegular" ? l : t === "chip" || t === "xs" ? f : t === "small" ? b : p, s = (t, n, e) => e ? r.stroke.negative.vibrant : n ? r.surface.standard : t == "secondary" ? r.stroke.brand : r.content.placeholder, L = (t, n, e, a, o) => n == "text" ? "border: none;" : n === "special" ? `border: 1px solid ${r.stroke.brandLightAlt};` : n === "secondaryGray" ? `border: 1px solid ${r.stroke.primary};` : e === "chip" ? `border: ${t === "2.0" ? 0.5 : 1}px solid ${r.stroke.primary};` : a ? n === "secondary" ? `border: ${t === "2.0" ? 0.5 : 1}px solid ${s(
74
- n,
75
- a,
76
- o
77
- )};` : "border: none;" : n === "secondary" ? `border: ${t === "2.0" ? 0.5 : 1}px solid ${s(
78
- n,
79
- !1,
80
- o
81
- )};` : "border: none;", c = (t) => t === "medium" ? `5px,
73
+ }, L = (t, n, e) => !e && n === "ai" ? t === "small" ? g : f : n === "dashRegular" ? l : t === "chip" || t === "xs" ? b : t === "small" ? p : h, d = (t, n, e) => e ? r.stroke.negative.vibrant : n ? r.surface.standard : t == "secondary" ? r.stroke.brand : r.content.placeholder, o = (t, n, e = 1) => t === "xs" ? `box-shadow: inset 0 0 0 ${e}px ${n}; border: none;` : `border: ${e}px solid ${n};`, G = (t, n, e, a, i) => n == "text" ? "border: none;" : n === "special" ? o(e, r.stroke.brandLightAlt) : n === "secondaryGray" ? o(e, r.stroke.primary) : e === "chip" ? `border: ${t === "2.0" ? 0.5 : 1}px solid ${r.stroke.primary};` : a ? n === "secondary" ? o(
74
+ e,
75
+ d(n, a, i),
76
+ t === "2.0" ? 0.5 : 1
77
+ ) : "border: none;" : n === "secondary" ? o(
78
+ e,
79
+ d(n, !1, i),
80
+ t === "2.0" ? 0.5 : 1
81
+ ) : "border: none;", u = (t) => t === "medium" ? `5px,
82
82
  transparent 5px,
83
83
  transparent 10px` : `6px,
84
84
  transparent 6px,
85
- transparent 12px`, G = (t, n) => {
86
- const e = parseInt(t.replace("#", ""), 16), a = Math.round(2.55 * n), o = (e >> 16) - a, i = (e >> 8 & 255) - a, u = (e & 255) - a;
87
- return `#${(16777216 + (Math.max(o, 0) << 16) + (Math.max(i, 0) << 8) + Math.max(u, 0)).toString(16).slice(1)}`;
88
- }, x = (t, n) => {
89
- const e = parseInt(t.replace("#", ""), 16), a = Math.round(2.55 * n), o = (e >> 16) + a, i = (e >> 8 & 255) + a, u = (e & 255) + a;
90
- return `#${(16777216 + (Math.min(o, 255) << 16) + (Math.min(i, 255) << 8) + Math.min(u, 255)).toString(16).slice(1)}`;
91
- }, w = (t, n) => t === "ai" ? `background: ${r.surface.aiLight};` : t === "text" ? "background-color:transparent;" : t === "special" || t === "secondaryGray" ? "" : !n && t !== "primary" ? `background-color: #000000;
92
- opacity: 0.03;` : "", I = (t, n) => n ? "" : `text-decoration-line: underline;
93
- text-decoration-color: ${r.content.brand};`, M = (t, n) => n ? "" : t === "primary" ? `background-color: ${r.stroke.warning.lightAlt};` : "background-color: rgba(255, 255, 255, 0.1)", A = (t, n, e) => t === "special" ? `background-color: ${r.background.base}; border: 1px solid ${r.stroke.primary};` : t === "secondaryGray" ? `border: 1px solid ${r.stroke.primary};` : n === "chip" ? "background-color: transparent;" : t === "primary" || t === "destructive" ? e ? "background-color: rgba(255,255,255,0.3);" : `background-color: ${r.background.inactive};` : t === "secondary" ? e ? "border: 1px solid rgba(255, 255, 255, 0.5);" : `border: 1px solid ${r.stroke.primary};` : "", S = (t, n, e = s(t, !1)) => `
85
+ transparent 12px`, w = (t, n) => {
86
+ const e = parseInt(t.replace("#", ""), 16), a = Math.round(2.55 * n), i = (e >> 16) - a, c = (e >> 8 & 255) - a, s = (e & 255) - a;
87
+ return `#${(16777216 + (Math.max(i, 0) << 16) + (Math.max(c, 0) << 8) + Math.max(s, 0)).toString(16).slice(1)}`;
88
+ }, k = (t, n) => {
89
+ const e = parseInt(t.replace("#", ""), 16), a = Math.round(2.55 * n), i = (e >> 16) + a, c = (e >> 8 & 255) + a, s = (e & 255) + a;
90
+ return `#${(16777216 + (Math.min(i, 255) << 16) + (Math.min(c, 255) << 8) + Math.min(s, 255)).toString(16).slice(1)}`;
91
+ }, I = (t, n) => t === "ai" ? `background: ${r.surface.aiLight};` : t === "text" ? "background-color:transparent;" : t === "special" || t === "secondaryGray" ? "" : !n && t !== "primary" ? `background-color: #000000;
92
+ opacity: 0.03;` : "", M = (t, n) => n ? "" : `text-decoration-line: underline;
93
+ text-decoration-color: ${r.content.brand};`, S = (t, n) => n ? "" : t === "primary" ? `background-color: ${r.stroke.warning.lightAlt};` : "background-color: rgba(255, 255, 255, 0.1)", A = (t, n, e) => t === "special" ? `background-color: ${r.background.base}; ${o(
94
+ n,
95
+ r.stroke.primary
96
+ )}` : t === "secondaryGray" ? o(n, r.stroke.primary) : n === "chip" ? "background-color: transparent;" : t === "primary" || t === "destructive" ? e ? "background-color: rgba(255,255,255,0.3);" : `background-color: ${r.background.inactive};` : t === "secondary" ? e ? o(n, "rgba(255, 255, 255, 0.5)") : o(n, r.stroke.primary) : "", R = (t, n, e = d(t, !1)) => `
94
97
  .line-top {
95
98
  position: absolute;
96
99
  left: 0;
@@ -101,7 +104,7 @@ const m = (t, n, e, a, o) => {
101
104
  to right,
102
105
  ${e},
103
106
  ${e}
104
- ${c(n)}
107
+ ${u(n)}
105
108
  );
106
109
  }
107
110
  .line-right {
@@ -114,7 +117,7 @@ const m = (t, n, e, a, o) => {
114
117
  to bottom,
115
118
  ${e},
116
119
  ${e}
117
- ${c(n)}
120
+ ${u(n)}
118
121
  );
119
122
  }
120
123
  .line-bottom {
@@ -127,7 +130,7 @@ const m = (t, n, e, a, o) => {
127
130
  to right,
128
131
  ${e},
129
132
  ${e}
130
- ${c(n)}
133
+ ${u(n)}
131
134
  );
132
135
  }
133
136
  .line-left {
@@ -140,18 +143,24 @@ const m = (t, n, e, a, o) => {
140
143
  to bottom,
141
144
  ${e},
142
145
  ${e}
143
- ${c(n)}
146
+ ${u(n)}
144
147
  );
145
148
  }
146
- `, R = (t, n, e) => {
149
+ `, D = (t, n, e) => {
147
150
  if (t === "text")
148
151
  return `background-color: ${r.background.brandLight};
149
152
  text-decoration-line: underline;
150
153
  text-decoration-color: ${r.content.brand};`;
151
154
  if (t === "special")
152
- return `background-color: ${r.background.brandLight}; border: 1px solid ${r.stroke.brandLightAlt};`;
155
+ return `background-color: ${r.background.brandLight}; ${o(
156
+ n,
157
+ r.stroke.brandLightAlt
158
+ )}`;
153
159
  if (t === "secondaryGray")
154
- return `background-color: ${r.surface.hovered}; border: 1px solid ${r.stroke.primary};`;
160
+ return `background-color: ${r.surface.hovered}; ${o(
161
+ n,
162
+ r.stroke.primary
163
+ )}`;
155
164
  if (n === "chip")
156
165
  return `border: 1px solid ${r.stroke.brandLightAlt};
157
166
  background-color: ${r.background.brandLight};`;
@@ -161,13 +170,13 @@ const m = (t, n, e, a, o) => {
161
170
  ` : "box-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);";
162
171
  if (t === "secondary" || t === "tertiary" || t === "tertiaryGray" || t.startsWith("dash"))
163
172
  return e ? `background-color: ${r.background.inverseLight} !important;` : `background-color: ${r.background.brandLight};`;
164
- }, D = (t, n, e, a) => t === "special" ? `background-color: ${r.background.brandVeryLight};` : t === "secondaryGray" ? `background-color: ${r.surface.subdued};` : n === "chip" ? `background-color: ${r.background.base};` : t === "primary" ? a ? `background-color: ${x(
173
+ }, H = (t, n, e, a) => t === "special" ? `background-color: ${r.background.brandVeryLight};` : t === "secondaryGray" ? `background-color: ${r.surface.subdued};` : n === "chip" ? `background-color: ${r.background.base};` : t === "primary" ? a ? `background-color: ${k(
165
174
  a,
166
175
  50
167
- )};` : `background-color: ${e ? r.background.warning.vibrant : r.background.brandLight};` : t === "destructive" ? `background-color: ${r.background.negative.light};` : "background-color: transparent;", H = (t, n, e) => t === "special" ? `border: 1px solid ${r.stroke.brandLightAlt};` : t === "secondaryGray" ? `border: 1px solid ${r.stroke.primary};` : n === "chip" ? "border: none;" : t === "secondary" ? e ? `border: 1px solid ${r.content.secondary};` : `border: 1px solid ${r.stroke.brandLightAlt};` : "", C = (t, n) => t === "secondaryGray" ? r.content.secondary : n ? t === "primary" ? r.content.primary : r.content.primaryInverse : t === "destructive" ? r.content.negative : r.content.brand, T = (t, n, e, a, o, i) => {
176
+ )};` : `background-color: ${e ? r.background.warning.vibrant : r.background.brandLight};` : t === "destructive" ? `background-color: ${r.background.negative.light};` : "background-color: transparent;", C = (t, n, e) => t === "special" ? o(n, r.stroke.brandLightAlt) : t === "secondaryGray" ? o(n, r.stroke.primary) : n === "chip" ? "border: none;" : t === "secondary" ? e ? o(n, r.content.secondary) : o(n, r.stroke.brandLightAlt) : "", T = (t, n) => t === "secondaryGray" ? r.content.secondary : n ? t === "primary" ? r.content.primary : r.content.primaryInverse : t === "destructive" ? r.content.negative : r.content.brand, V = (t, n, e, a, i, c) => {
168
177
  if (t === "chip")
169
- return a ? r.content.inactive : i ? r.content.primary : r.content.secondary;
170
- if (o)
178
+ return a ? r.content.inactive : c ? r.content.primary : r.content.secondary;
179
+ if (i)
171
180
  return "transparent";
172
181
  if (n === "special")
173
182
  return a ? r.content.inactive : r.background.inverseLight;
@@ -183,25 +192,26 @@ const m = (t, n, e, a, o) => {
183
192
  return a ? r.content.inactive : r.content.secondary;
184
193
  };
185
194
  export {
186
- B as GetButtonTextComponent,
187
- C as SpinnerColorMap,
195
+ L as GetButtonTextComponent,
196
+ T as SpinnerColorMap,
188
197
  A as generateDisabledStyling,
189
- M as generateInverseHoverBackground,
190
- m as getBackgroundColor,
191
- L as getBorder,
192
- s as getBorderColor,
193
- T as getButtonIconColor,
194
- R as getClickEffect,
198
+ S as generateInverseHoverBackground,
199
+ y as getBackgroundColor,
200
+ G as getBorder,
201
+ d as getBorderColor,
202
+ V as getButtonIconColor,
203
+ D as getClickEffect,
195
204
  $ as getColor,
196
- S as getDashedBorderStyling,
197
- y as getDisabledTextColor,
198
- w as getHoverButtonBackground,
199
- G as getHoverButtonBackgroundCustom,
200
- I as getHoverButtonTextDecorationStyle,
201
- c as getLinearGradientValue,
202
- D as getLoadingBackground,
203
- H as getLoadingBorder,
204
- x as getLoadingButtonBackgroundCustom,
205
- v as getPadding
205
+ R as getDashedBorderStyling,
206
+ v as getDisabledTextColor,
207
+ I as getHoverButtonBackground,
208
+ w as getHoverButtonBackgroundCustom,
209
+ M as getHoverButtonTextDecorationStyle,
210
+ u as getLinearGradientValue,
211
+ H as getLoadingBackground,
212
+ C as getLoadingBorder,
213
+ k as getLoadingButtonBackgroundCustom,
214
+ B as getPadding,
215
+ o as strokeStyle
206
216
  };
207
217
  //# sourceMappingURL=themes.js.map