@bikdotai/bik-component-library 0.0.763-beta.36 → 0.0.763-beta.38

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 (203) hide show
  1. package/dist/cjs/assets/icons/DocsIcon.d.ts +6 -0
  2. package/dist/cjs/assets/icons/DoubtIcon.d.ts +6 -0
  3. package/dist/cjs/assets/icons/EditLabel.d.ts +7 -0
  4. package/dist/cjs/assets/icons/EditLabel.js +1 -0
  5. package/dist/cjs/assets/icons/Icons.stories.d.ts +31 -0
  6. package/dist/cjs/assets/icons/NotesIcon.d.ts +6 -0
  7. package/dist/cjs/assets/icons/StepsIcon.d.ts +6 -0
  8. package/dist/cjs/assets/icons/StoreIcon.d.ts +6 -0
  9. package/dist/cjs/assets/icons/ThreeColumnsIcon.d.ts +6 -0
  10. package/dist/cjs/assets/icons/docs.svg.js +1 -0
  11. package/dist/cjs/assets/icons/doubt.svg.js +1 -0
  12. package/dist/cjs/assets/icons/index.d.ts +7 -0
  13. package/dist/cjs/assets/icons/notes.svg.js +1 -0
  14. package/dist/cjs/assets/icons/steps.svg.js +1 -0
  15. package/dist/cjs/assets/icons/store.svg.js +1 -0
  16. package/dist/cjs/assets/icons/three-columns.svg.js +1 -0
  17. package/dist/cjs/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  18. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  19. package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  20. package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  21. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  22. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  23. package/dist/cjs/components/QueryBuilder/helpers/SegmentValidator.d.ts +26 -6
  24. package/dist/cjs/components/QueryBuilder/helpers/SegmentValidator.js +1 -0
  25. package/dist/cjs/components/SearchFilter/components/DatePickerButton.js +1 -1
  26. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  27. package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
  28. package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
  29. package/dist/cjs/components/TablePagination/TablePaginationCard.d.ts +1 -1
  30. package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.d.ts +3 -3
  31. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +1 -1
  32. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.d.ts +2 -2
  33. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  34. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +5 -5
  35. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  36. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.d.ts +3 -3
  37. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +4 -0
  38. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  39. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.d.ts +8 -8
  40. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.d.ts +1 -1
  41. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.d.ts +5 -5
  42. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.d.ts +5 -5
  43. package/dist/cjs/components/banner/Banner.styled.d.ts +20 -20
  44. package/dist/cjs/components/bik-layout/CommonStyles.d.ts +17 -17
  45. package/dist/cjs/components/bik-layout/MockMenus.d.ts +0 -1
  46. package/dist/cjs/components/button/Button.styled.d.ts +1 -1
  47. package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.d.ts +2 -2
  48. package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.d.ts +6 -6
  49. package/dist/cjs/components/checkList/CheckList.styled.d.ts +1 -1
  50. package/dist/cjs/components/code-block/CodeBlock.js +1 -1
  51. package/dist/cjs/components/colourInput/ColourInput.styled.d.ts +2 -2
  52. package/dist/cjs/components/country-code-picker/CountryCodePicker.js +1 -1
  53. package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.d.ts +2 -2
  54. package/dist/cjs/components/country-code-picker/CountryPicker.js +1 -1
  55. package/dist/cjs/components/country-code-picker/CountryPicker.styled.d.ts +2 -2
  56. package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
  57. package/dist/cjs/components/custom-date-time/CustomDateTime.styled.d.ts +1 -1
  58. package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  59. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.styled.d.ts +2 -2
  60. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.styled.d.ts +2 -2
  61. package/dist/cjs/components/dashboard-review-popup/components/Form.styled.d.ts +6 -6
  62. package/dist/cjs/components/datePicker/DatePicker.styled.d.ts +4 -4
  63. package/dist/cjs/components/datePicker/TimePicker.js +1 -1
  64. package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  65. package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
  66. package/dist/cjs/components/discount-modal/DiscountModal.styled.d.ts +5 -5
  67. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  68. package/dist/cjs/components/discount-modal/DynamicCoupon/MinimumRequirementComponent.js +1 -1
  69. package/dist/cjs/components/dropdown/Dropdown.d.ts +0 -1
  70. package/dist/cjs/components/dropdown/Dropdown.js +1 -1
  71. package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -1
  72. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  73. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.d.ts +0 -6
  74. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +4 -34
  75. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.d.ts +0 -2
  76. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  77. package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.d.ts +0 -1
  78. package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  79. package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -1
  80. package/dist/cjs/components/dropdown/type.d.ts +0 -6
  81. package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -1
  82. package/dist/cjs/components/input/Input.styled.d.ts +4 -4
  83. package/dist/cjs/components/keywords-input/KeywordsInput.styled.d.ts +1 -1
  84. package/dist/cjs/components/list-item/ListItem.styled.d.ts +1 -1
  85. package/dist/cjs/components/modals/modal.styled.d.ts +4 -4
  86. package/dist/cjs/components/pagination/Pagination.styled.d.ts +1 -1
  87. package/dist/cjs/components/plans/DurationSelectorStyles.d.ts +1 -1
  88. package/dist/cjs/components/plans/SubscriptionPlanSelector.d.ts +2 -2
  89. package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +2 -2
  90. package/dist/cjs/components/product-picker/ProductPicker.styled.d.ts +2 -2
  91. package/dist/cjs/components/progress-bar/ProgressBarComponent.d.ts +1 -1
  92. package/dist/cjs/components/radioList/RadioList.styled.d.ts +1 -1
  93. package/dist/cjs/components/sample-button/SampleButton.styled.d.ts +1 -1
  94. package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -2
  95. package/dist/cjs/components/switch/Switch.d.ts +3 -3
  96. package/dist/cjs/components/tabs/Tabs.styles.d.ts +5 -5
  97. package/dist/cjs/components/tag/Tag.styled.d.ts +1 -1
  98. package/dist/cjs/components/testimonial-card/TestimonialCard.style.d.ts +9 -9
  99. package/dist/cjs/components/toaster/Toaster.js +1 -1
  100. package/dist/cjs/components/toaster/Toaster.styled.d.ts +1 -1
  101. package/dist/cjs/index.js +1 -1
  102. package/dist/esm/assets/icons/DocsIcon.d.ts +6 -0
  103. package/dist/esm/assets/icons/DoubtIcon.d.ts +6 -0
  104. package/dist/esm/assets/icons/EditLabel.d.ts +7 -0
  105. package/dist/esm/assets/icons/EditLabel.js +1 -0
  106. package/dist/esm/assets/icons/Icons.stories.d.ts +31 -0
  107. package/dist/esm/assets/icons/NotesIcon.d.ts +6 -0
  108. package/dist/esm/assets/icons/StepsIcon.d.ts +6 -0
  109. package/dist/esm/assets/icons/StoreIcon.d.ts +6 -0
  110. package/dist/esm/assets/icons/ThreeColumnsIcon.d.ts +6 -0
  111. package/dist/esm/assets/icons/docs.svg.js +1 -0
  112. package/dist/esm/assets/icons/doubt.svg.js +1 -0
  113. package/dist/esm/assets/icons/index.d.ts +7 -0
  114. package/dist/esm/assets/icons/notes.svg.js +1 -0
  115. package/dist/esm/assets/icons/steps.svg.js +1 -0
  116. package/dist/esm/assets/icons/store.svg.js +1 -0
  117. package/dist/esm/assets/icons/three-columns.svg.js +1 -0
  118. package/dist/esm/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  119. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  120. package/dist/esm/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  121. package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  122. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  123. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  124. package/dist/esm/components/QueryBuilder/helpers/SegmentValidator.d.ts +26 -6
  125. package/dist/esm/components/QueryBuilder/helpers/SegmentValidator.js +1 -0
  126. package/dist/esm/components/SearchFilter/components/DatePickerButton.js +1 -1
  127. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  128. package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
  129. package/dist/esm/components/TablePagination/TablePagination.js +1 -1
  130. package/dist/esm/components/TablePagination/TablePaginationCard.d.ts +1 -1
  131. package/dist/esm/components/WhatsAppTextEditor/CustomEditor.styled.d.ts +3 -3
  132. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +1 -1
  133. package/dist/esm/components/analytics-card/AnalyticsCard.styled.d.ts +2 -2
  134. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  135. package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +5 -5
  136. package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  137. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.d.ts +3 -3
  138. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +4 -0
  139. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  140. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.d.ts +8 -8
  141. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.d.ts +1 -1
  142. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.d.ts +5 -5
  143. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.d.ts +5 -5
  144. package/dist/esm/components/banner/Banner.styled.d.ts +20 -20
  145. package/dist/esm/components/bik-layout/CommonStyles.d.ts +17 -17
  146. package/dist/esm/components/bik-layout/MockMenus.d.ts +0 -1
  147. package/dist/esm/components/button/Button.styled.d.ts +1 -1
  148. package/dist/esm/components/card-selection-modal/CardSelectionModal.styled.d.ts +2 -2
  149. package/dist/esm/components/carousel-secondary/CarouselSecondary.style.d.ts +6 -6
  150. package/dist/esm/components/checkList/CheckList.styled.d.ts +1 -1
  151. package/dist/esm/components/code-block/CodeBlock.js +1 -1
  152. package/dist/esm/components/colourInput/ColourInput.styled.d.ts +2 -2
  153. package/dist/esm/components/country-code-picker/CountryCodePicker.js +1 -1
  154. package/dist/esm/components/country-code-picker/CountryCodePicker.styled.d.ts +2 -2
  155. package/dist/esm/components/country-code-picker/CountryPicker.js +1 -1
  156. package/dist/esm/components/country-code-picker/CountryPicker.styled.d.ts +2 -2
  157. package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
  158. package/dist/esm/components/custom-date-time/CustomDateTime.styled.d.ts +1 -1
  159. package/dist/esm/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  160. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.styled.d.ts +2 -2
  161. package/dist/esm/components/dashboard-review-popup/components/FiveStar.styled.d.ts +2 -2
  162. package/dist/esm/components/dashboard-review-popup/components/Form.styled.d.ts +6 -6
  163. package/dist/esm/components/datePicker/DatePicker.styled.d.ts +4 -4
  164. package/dist/esm/components/datePicker/TimePicker.js +1 -1
  165. package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  166. package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
  167. package/dist/esm/components/discount-modal/DiscountModal.styled.d.ts +5 -5
  168. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  169. package/dist/esm/components/discount-modal/DynamicCoupon/MinimumRequirementComponent.js +1 -1
  170. package/dist/esm/components/dropdown/Dropdown.d.ts +0 -1
  171. package/dist/esm/components/dropdown/Dropdown.js +1 -1
  172. package/dist/esm/components/dropdown/DropdownPopover/index.js +1 -1
  173. package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  174. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.d.ts +0 -6
  175. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +6 -36
  176. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.d.ts +0 -2
  177. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  178. package/dist/esm/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.d.ts +0 -1
  179. package/dist/esm/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  180. package/dist/esm/components/dropdown/hooks/useDropdown.js +1 -1
  181. package/dist/esm/components/dropdown/type.d.ts +0 -6
  182. package/dist/esm/components/dropdown-button/DropdownButton.js +1 -1
  183. package/dist/esm/components/input/Input.styled.d.ts +4 -4
  184. package/dist/esm/components/keywords-input/KeywordsInput.styled.d.ts +1 -1
  185. package/dist/esm/components/list-item/ListItem.styled.d.ts +1 -1
  186. package/dist/esm/components/modals/modal.styled.d.ts +4 -4
  187. package/dist/esm/components/pagination/Pagination.styled.d.ts +1 -1
  188. package/dist/esm/components/plans/DurationSelectorStyles.d.ts +1 -1
  189. package/dist/esm/components/plans/SubscriptionPlanSelector.d.ts +2 -2
  190. package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +2 -2
  191. package/dist/esm/components/product-picker/ProductPicker.styled.d.ts +2 -2
  192. package/dist/esm/components/progress-bar/ProgressBarComponent.d.ts +1 -1
  193. package/dist/esm/components/radioList/RadioList.styled.d.ts +1 -1
  194. package/dist/esm/components/sample-button/SampleButton.styled.d.ts +1 -1
  195. package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -2
  196. package/dist/esm/components/switch/Switch.d.ts +3 -3
  197. package/dist/esm/components/tabs/Tabs.styles.d.ts +5 -5
  198. package/dist/esm/components/tag/Tag.styled.d.ts +1 -1
  199. package/dist/esm/components/testimonial-card/TestimonialCard.style.d.ts +9 -9
  200. package/dist/esm/components/toaster/Toaster.js +1 -1
  201. package/dist/esm/components/toaster/Toaster.styled.d.ts +1 -1
  202. package/dist/esm/index.js +1 -1
  203. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const LegendContainer: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const LegendColor: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  } & {
10
10
  color: string;
11
11
  newStyle?: boolean | undefined;
@@ -13,7 +13,7 @@ export declare const LegendColor: import("@emotion/styled").StyledComponent<{
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
14
  export declare const LegendWrapper: import("@emotion/styled").StyledComponent<{
15
15
  theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any> | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
17
  } & {
18
18
  position?: string | undefined;
19
19
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -16,6 +16,10 @@ export interface HeatMapInputInterface {
16
16
  heatBoxWidth?: number;
17
17
  heatBoxHeight?: number;
18
18
  isLooseFit?: boolean;
19
+ /**
20
+ * If true, xLabels are center-aligned. Defaults to false (left-aligned).
21
+ */
22
+ centerAlignXLabels?: boolean;
19
23
  }
20
24
  export declare enum HEAT {
21
25
  LOW = 0,
@@ -1 +1 @@
1
- import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import{useState as o,useEffect as c}from"react";import{Tooltip as r}from"../../../tooltips/Tooltip.js";import{TitleMedium as l,BodyCaption as i,Caption as s,BodyTiny as a}from"../../../TypographyStyle.js";import{COLORS as d}from"../../../../constants/Theme.js";import{HeatBoxStyled as h,LegendContainer as H,LegendItem as m,HeatBoxLegend as p,LegendValue as E,LegendLabels as O,LegendCaption as I,HeatBox as b}from"./HeatMapStyled.js";var g,L;!function(e){e[e.ABSOLUTE=0]="ABSOLUTE",e[e.RELATIVE=1]="RELATIVE"}(g||(g={})),function(e){e[e.LOW=0]="LOW",e[e.MEDIUM=1]="MEDIUM",e[e.HIGH=2]="HIGH",e[e.HIGHEST=3]="HIGHEST"}(L||(L={}));const j={[L.LOW]:"#EBDBFF",[L.MEDIUM]:"#D2AEFF",[L.HIGH]:"#9E77ED",[L.HIGHEST]:"#5E07BB"},y=e=>{if(e>=1e3){const t=e/1e3;return`${Math.round(10*t)/10}K`}return e.toString()},M=M=>{let{title:T,xLabels:u,yLabels:f,values:G,heatType:S,absolutHeatValues:B,showAbsoluteValuesOnLegend:U,hideXLabels:D,customComponent:x,heatBoxWidth:W,heatBoxHeight:A,isLooseFit:F}=M;const[v,V]=o(),_=F?{display:"flex",justifyContent:"center",alignItems:"center"}:{};return c((()=>{const e=Math.max(...G.flat()),t=Math.min(...G.flat());V(G.map((n=>n.map((n=>((e,t,n,o,c)=>{if(t===g.ABSOLUTE)return e<=n[0]?L.LOW:e<=n[1]?L.MEDIUM:e<=n[2]?L.HIGH:L.HIGHEST;{const t=(c-o)/4;return e<=o+t?L.LOW:e<=o+2*t?L.MEDIUM:e<=o+3*t?L.HIGH:L.HIGHEST}})(n,S,B||[],t,e))))))}),[G,B,S]),v?n(h,Object.assign({isLooseFit:F},{children:[n("div",Object.assign({className:"top-container"},{children:[n("div",Object.assign({className:"top-container__heading"},{children:[e(l,Object.assign({style:{color:d.content.primary}},{children:T})),x]})),e("div",Object.assign({className:"top-container__legend"},{children:e(H,{children:S===g.ABSOLUTE&&U&&B&&B.length>=3?n(t,{children:[n(m,{children:[e(p,{color:j[L.LOW]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:y(B[0])}))})]}),n(m,{children:[e(p,{color:j[L.MEDIUM]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:y(B[1])}))})]}),n(m,{children:[e(p,{color:j[L.HIGH]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:y(B[2])}))})]}),n(m,{children:[e(p,{color:j[L.HIGHEST]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:B[3]?y(B[3]):y(B[2])+"+"}))})]})]}):n(O,{children:[e(I,{children:e(s,{children:"Less"})}),e(p,{color:j[L.LOW]}),e(p,{color:j[L.MEDIUM]}),e(p,{color:j[L.HIGH]}),e(p,{color:j[L.HIGHEST]}),e(I,{children:e(s,{children:"More"})})]})})}))]})),e("table",Object.assign({style:_},{children:n("tbody",{children:[f.map(((t,o)=>n("tr",{children:[e("td",{children:e(a,Object.assign({style:{color:d.content.placeholder}},{children:t}))}),u.map(((t,n)=>e("td",{children:e(r,Object.assign({body:y(G[o][n]),placement:"bottom"},{children:e(b,{color:j[v[o][n]],heatBoxWidth:W,heatBoxHeight:A})}))},t)))]},t))),!D&&n("tr",{children:[e("th",{}),u.map((t=>e("th",{children:e(a,Object.assign({style:{color:d.content.placeholder}},{children:t}))},t)))]})]})}))]})):e(t,{})};export{L as HEAT,j as HEAT_COLORS,g as HEAT_GRADING_TYPE,M as HeatMap};
1
+ import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import{useState as o,useEffect as c}from"react";import{Tooltip as r}from"../../../tooltips/Tooltip.js";import{TitleMedium as l,BodyCaption as i,Caption as s,BodyTiny as a}from"../../../TypographyStyle.js";import{COLORS as d}from"../../../../constants/Theme.js";import{HeatBoxStyled as h,LegendContainer as H,LegendItem as m,HeatBoxLegend as p,LegendValue as E,LegendLabels as g,LegendCaption as O,HeatBox as b}from"./HeatMapStyled.js";var I,y;!function(e){e[e.ABSOLUTE=0]="ABSOLUTE",e[e.RELATIVE=1]="RELATIVE"}(I||(I={})),function(e){e[e.LOW=0]="LOW",e[e.MEDIUM=1]="MEDIUM",e[e.HIGH=2]="HIGH",e[e.HIGHEST=3]="HIGHEST"}(y||(y={}));const L={[y.LOW]:"#EBDBFF",[y.MEDIUM]:"#D2AEFF",[y.HIGH]:"#9E77ED",[y.HIGHEST]:"#5E07BB"},j=e=>{if(e>=1e3){const t=e/1e3;return`${Math.round(10*t)/10}K`}return e.toString()},M=M=>{let{title:T,xLabels:u,yLabels:f,values:G,heatType:S,absolutHeatValues:B,showAbsoluteValuesOnLegend:x,hideXLabels:A,customComponent:U,heatBoxWidth:D,heatBoxHeight:W,isLooseFit:v,centerAlignXLabels:F=!1}=M;const[V,_]=o(),N=v?{display:"flex",justifyContent:"center",alignItems:"center"}:{};return c((()=>{const e=Math.max(...G.flat()),t=Math.min(...G.flat());_(G.map((n=>n.map((n=>((e,t,n,o,c)=>{if(t===I.ABSOLUTE)return e<=n[0]?y.LOW:e<=n[1]?y.MEDIUM:e<=n[2]?y.HIGH:y.HIGHEST;{const t=(c-o)/4;return e<=o+t?y.LOW:e<=o+2*t?y.MEDIUM:e<=o+3*t?y.HIGH:y.HIGHEST}})(n,S,B||[],t,e))))))}),[G,B,S]),V?n(h,Object.assign({isLooseFit:v},{children:[n("div",Object.assign({className:"top-container"},{children:[n("div",Object.assign({className:"top-container__heading"},{children:[e(l,Object.assign({style:{color:d.content.primary}},{children:T})),U]})),e("div",Object.assign({className:"top-container__legend"},{children:e(H,{children:S===I.ABSOLUTE&&x&&B&&B.length>=3?n(t,{children:[n(m,{children:[e(p,{color:L[y.LOW]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:j(B[0])}))})]}),n(m,{children:[e(p,{color:L[y.MEDIUM]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:j(B[1])}))})]}),n(m,{children:[e(p,{color:L[y.HIGH]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:j(B[2])}))})]}),n(m,{children:[e(p,{color:L[y.HIGHEST]}),e(E,{children:e(i,Object.assign({color:d.content.secondary},{children:B[3]?j(B[3]):j(B[2])+"+"}))})]})]}):n(g,{children:[e(O,{children:e(s,{children:"Less"})}),e(p,{color:L[y.LOW]}),e(p,{color:L[y.MEDIUM]}),e(p,{color:L[y.HIGH]}),e(p,{color:L[y.HIGHEST]}),e(O,{children:e(s,{children:"More"})})]})})}))]})),e("table",Object.assign({style:N},{children:n("tbody",{children:[f.map(((t,o)=>n("tr",{children:[e("td",{children:e(a,Object.assign({style:{color:d.content.placeholder}},{children:t}))}),u.map(((t,n)=>e("td",{children:e(r,Object.assign({body:j(G[o][n]),placement:"bottom"},{children:e(b,{color:L[V[o][n]],heatBoxWidth:D,heatBoxHeight:W})}))},t)))]},t))),!A&&n("tr",{children:[e("th",{}),u.map((t=>e("th",Object.assign({style:F?{textAlign:"center"}:void 0},{children:e(a,Object.assign({style:F?{color:d.content.placeholder,textAlign:"center",display:"block",width:"100%"}:{color:d.content.placeholder}},{children:t}))}),t)))]})]})}))]})):e(t,{})};export{y as HEAT,L as HEAT_COLORS,I as HEAT_GRADING_TYPE,M as HeatMap};
@@ -1,40 +1,40 @@
1
1
  /// <reference types="react" />
2
2
  export declare const HeatBoxStyled: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
6
  isLooseFit?: boolean | undefined;
7
7
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
8
  export declare const HeatBox: import("@emotion/styled").StyledComponent<{
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any> | undefined;
10
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
11
  } & {
12
12
  heatBoxHeight?: number | undefined;
13
13
  heatBoxWidth?: number | undefined;
14
14
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
15
  export declare const HeatBoxLegend: import("@emotion/styled").StyledComponent<{
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
17
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
18
  } & {
19
19
  color: string;
20
20
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
21
  export declare const LegendContainer: import("@emotion/styled").StyledComponent<{
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
- as?: import("react").ElementType<any> | undefined;
23
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
24
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
25
  export declare const LegendItem: import("@emotion/styled").StyledComponent<{
26
26
  theme?: import("@emotion/react").Theme | undefined;
27
- as?: import("react").ElementType<any> | undefined;
27
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
28
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
29
29
  export declare const LegendValue: import("@emotion/styled").StyledComponent<{
30
30
  theme?: import("@emotion/react").Theme | undefined;
31
- as?: import("react").ElementType<any> | undefined;
31
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
32
32
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
33
  export declare const LegendLabels: import("@emotion/styled").StyledComponent<{
34
34
  theme?: import("@emotion/react").Theme | undefined;
35
- as?: import("react").ElementType<any> | undefined;
35
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
36
36
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
37
37
  export declare const LegendCaption: import("@emotion/styled").StyledComponent<{
38
38
  theme?: import("@emotion/react").Theme | undefined;
39
- as?: import("react").ElementType<any> | undefined;
39
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
40
40
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -10,5 +10,5 @@ export interface HeatMapVerticalInputInterface {
10
10
  export declare const HeatMapVertical: React.FC<HeatMapVerticalInputInterface>;
11
11
  export declare const HeatBoxStyled: import("@emotion/styled").StyledComponent<{
12
12
  theme?: import("@emotion/react").Theme | undefined;
13
- as?: React.ElementType<any> | undefined;
13
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
14
14
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,25 +1,25 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Container: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
6
  separator?: boolean | undefined;
7
7
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
8
  export declare const Row: import("@emotion/styled").StyledComponent<{
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any> | undefined;
10
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
12
  export declare const Column: import("@emotion/styled").StyledComponent<{
13
13
  theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
15
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
16
  export declare const StyledChip: import("@emotion/styled").StyledComponent<{
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
19
  } & {
20
20
  type: 'positive' | 'neutral' | 'negative';
21
21
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
22
  export declare const StyledBarContainer: import("@emotion/styled").StyledComponent<{
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
- as?: import("react").ElementType<any> | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
25
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,25 +1,25 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Container: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
6
  separator?: boolean | undefined;
7
7
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
8
  export declare const Row: import("@emotion/styled").StyledComponent<{
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any> | undefined;
10
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
12
  export declare const Column: import("@emotion/styled").StyledComponent<{
13
13
  theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
15
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
16
  export declare const StyledChip: import("@emotion/styled").StyledComponent<{
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
19
  } & {
20
20
  type: 'positive' | 'neutral' | 'negative';
21
21
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
22
  export declare const StyledBarContainer: import("@emotion/styled").StyledComponent<{
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
- as?: import("react").ElementType<any> | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
25
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,87 +1,87 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CardBannerWrapper: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const CardBannerContent: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export declare const CardBannerIconsWrapper: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
14
  export declare const CardBannerButtonWrapper: import("@emotion/styled").StyledComponent<{
15
15
  theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any> | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
17
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
18
  export declare const CompanyImageWrapper: import("@emotion/styled").StyledComponent<{
19
19
  theme?: import("@emotion/react").Theme | undefined;
20
- as?: import("react").ElementType<any> | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
21
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
22
  export declare const ButtonWrapper: import("@emotion/styled").StyledComponent<{
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
- as?: import("react").ElementType<any> | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
25
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
26
  export declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
27
27
  theme?: import("@emotion/react").Theme | undefined;
28
- as?: import("react").ElementType<any> | undefined;
28
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
29
29
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
30
30
  export declare const CardWrapper: import("@emotion/styled").StyledComponent<{
31
31
  theme?: import("@emotion/react").Theme | undefined;
32
- as?: import("react").ElementType<any> | undefined;
32
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
33
33
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
34
34
  export declare const CardFooterWrapper: import("@emotion/styled").StyledComponent<{
35
35
  theme?: import("@emotion/react").Theme | undefined;
36
- as?: import("react").ElementType<any> | undefined;
36
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
37
37
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
38
38
  export declare const CardImageWrapper: import("@emotion/styled").StyledComponent<{
39
39
  theme?: import("@emotion/react").Theme | undefined;
40
- as?: import("react").ElementType<any> | undefined;
40
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
41
41
  } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
42
42
  theme?: import("@emotion/react").Theme | undefined;
43
43
  }, {}, {}>;
44
44
  export declare const CardButtonWrapper: import("@emotion/styled").StyledComponent<{
45
45
  theme?: import("@emotion/react").Theme | undefined;
46
- as?: import("react").ElementType<any> | undefined;
46
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
47
47
  } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
48
48
  theme?: import("@emotion/react").Theme | undefined;
49
49
  }, {}, {}>;
50
50
  export declare const BannerContainer: import("@emotion/styled").StyledComponent<{
51
51
  theme?: import("@emotion/react").Theme | undefined;
52
- as?: import("react").ElementType<any> | undefined;
52
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
53
53
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
54
54
  export declare const MainContentWrapper: import("@emotion/styled").StyledComponent<{
55
55
  theme?: import("@emotion/react").Theme | undefined;
56
- as?: import("react").ElementType<any> | undefined;
56
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
57
57
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
58
58
  export declare const TextWrapper: import("@emotion/styled").StyledComponent<{
59
59
  theme?: import("@emotion/react").Theme | undefined;
60
- as?: import("react").ElementType<any> | undefined;
60
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
61
61
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
62
62
  export declare const TagWrapper: import("@emotion/styled").StyledComponent<{
63
63
  theme?: import("@emotion/react").Theme | undefined;
64
- as?: import("react").ElementType<any> | undefined;
64
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
65
65
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
66
66
  export declare const BottomButtonWrapper: import("@emotion/styled").StyledComponent<{
67
67
  theme?: import("@emotion/react").Theme | undefined;
68
- as?: import("react").ElementType<any> | undefined;
68
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
69
69
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
70
70
  export declare const BannerWithImageContainer: import("@emotion/styled").StyledComponent<{
71
71
  theme?: import("@emotion/react").Theme | undefined;
72
- as?: import("react").ElementType<any> | undefined;
72
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
73
73
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
74
74
  export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
75
75
  theme?: import("@emotion/react").Theme | undefined;
76
- as?: import("react").ElementType<any> | undefined;
76
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
77
77
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
78
78
  export declare const BannerImageWrapper: import("@emotion/styled").StyledComponent<{
79
79
  theme?: import("@emotion/react").Theme | undefined;
80
- as?: import("react").ElementType<any> | undefined;
80
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
81
81
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
82
82
  export declare const BannerWithImageButtonWrapper: import("@emotion/styled").StyledComponent<{
83
83
  theme?: import("@emotion/react").Theme | undefined;
84
- as?: import("react").ElementType<any> | undefined;
84
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
85
85
  } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
86
86
  theme?: import("@emotion/react").Theme | undefined;
87
87
  }, {}, {}>;
@@ -1,43 +1,43 @@
1
1
  /// <reference types="react" />
2
2
  export declare const GlobalContainer: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const LoaderWrapper: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export declare const LoadingMessageWrapper: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
14
  export declare const BikLayoutContainer: import("@emotion/styled").StyledComponent<{
15
15
  theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any> | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
17
  } & {
18
18
  type?: "overflow-within" | "overflow-body" | undefined;
19
19
  backgroundColor?: string | undefined;
20
20
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
21
  export declare const BikHeaderWrapper: import("@emotion/styled").StyledComponent<{
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
- as?: import("react").ElementType<any> | undefined;
23
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
24
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
25
  export declare const BikHeaderContainer: import("@emotion/styled").StyledComponent<{
26
26
  theme?: import("@emotion/react").Theme | undefined;
27
- as?: import("react").ElementType<any> | undefined;
27
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
28
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
29
29
  export declare const MenuInnerContainer: import("@emotion/styled").StyledComponent<{
30
30
  theme?: import("@emotion/react").Theme | undefined;
31
- as?: import("react").ElementType<any> | undefined;
31
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
32
32
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
- export declare const ProfileDropdownToggleContainer: import("@emotion/styled").StyledComponent<import("react-bootstrap/esm/helpers").Omit<any, import("react-bootstrap/esm/helpers").BsPrefixProps<import("react").ElementType<any>> & import("react-bootstrap/esm/DropdownToggle").DropdownToggleProps> & import("react-bootstrap/esm/helpers").BsPrefixProps<import("react").ElementType<any>> & import("react-bootstrap/esm/DropdownToggle").DropdownToggleProps & {
33
+ export declare const ProfileDropdownToggleContainer: import("@emotion/styled").StyledComponent<import("react-bootstrap/esm/helpers").Omit<any, import("react-bootstrap/esm/helpers").BsPrefixProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & import("react-bootstrap/esm/DropdownToggle").DropdownToggleProps> & import("react-bootstrap/esm/helpers").BsPrefixProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & import("react-bootstrap/esm/DropdownToggle").DropdownToggleProps & {
34
34
  children?: import("react").ReactNode;
35
35
  } & {
36
36
  theme?: import("@emotion/react").Theme | undefined;
37
37
  }, {}, {}>;
38
38
  export declare const ProfileDropdownInnerContainer: import("@emotion/styled").StyledComponent<{
39
39
  theme?: import("@emotion/react").Theme | undefined;
40
- as?: import("react").ElementType<any> | undefined;
40
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
41
41
  } & {
42
42
  isDropdownOpen: boolean;
43
43
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -55,24 +55,24 @@ export declare const UserNameTitleSmall: import("@emotion/styled").StyledCompone
55
55
  }, {}, {}>;
56
56
  export declare const UserAvatarContainer: import("@emotion/styled").StyledComponent<{
57
57
  theme?: import("@emotion/react").Theme | undefined;
58
- as?: import("react").ElementType<any> | undefined;
58
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
59
59
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
60
60
  export declare const StyledTooltip: import("@emotion/styled").StyledComponent<import("react-bootstrap").TooltipProps & import("react").RefAttributes<HTMLDivElement> & {
61
61
  theme?: import("@emotion/react").Theme | undefined;
62
62
  }, {}, {}>;
63
63
  export declare const UserInfoContainer: import("@emotion/styled").StyledComponent<{
64
64
  theme?: import("@emotion/react").Theme | undefined;
65
- as?: import("react").ElementType<any> | undefined;
65
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
66
66
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
67
67
  export declare const StatusContainer: import("@emotion/styled").StyledComponent<{
68
68
  theme?: import("@emotion/react").Theme | undefined;
69
- as?: import("react").ElementType<any> | undefined;
69
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
70
70
  } & {
71
71
  isAvailable: boolean;
72
72
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
73
73
  export declare const UserStatusContainer: import("@emotion/styled").StyledComponent<{
74
74
  theme?: import("@emotion/react").Theme | undefined;
75
- as?: import("react").ElementType<any> | undefined;
75
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
76
76
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
77
77
  export declare const StyledBodyCaption: import("@emotion/styled").StyledComponent<{
78
78
  [x: string]: any;
@@ -90,7 +90,7 @@ export declare const StyledBodyCaption: import("@emotion/styled").StyledComponen
90
90
  }, {}, {}>;
91
91
  export declare const FeatureModalContainer: import("@emotion/styled").StyledComponent<{
92
92
  theme?: import("@emotion/react").Theme | undefined;
93
- as?: import("react").ElementType<any> | undefined;
93
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
94
94
  } & {
95
95
  zIndex?: number | undefined;
96
96
  resetHeight?: boolean | undefined;
@@ -98,13 +98,13 @@ export declare const FeatureModalContainer: import("@emotion/styled").StyledComp
98
98
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
99
99
  export declare const InnerModalContainer: import("@emotion/styled").StyledComponent<{
100
100
  theme?: import("@emotion/react").Theme | undefined;
101
- as?: import("react").ElementType<any> | undefined;
101
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
102
102
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
103
103
  export declare const RelativeModalContainer: import("@emotion/styled").StyledComponent<{
104
104
  theme?: import("@emotion/react").Theme | undefined;
105
- as?: import("react").ElementType<any> | undefined;
105
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
106
106
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
107
107
  export declare const FeatureModalV2Container: import("@emotion/styled").StyledComponent<{
108
108
  theme?: import("@emotion/react").Theme | undefined;
109
- as?: import("react").ElementType<any> | undefined;
109
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
110
110
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Menus: ({
3
2
  displayName: string;
4
3
  key: number;
@@ -2,7 +2,7 @@
2
2
  import { Size, Type } from './model';
3
3
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  size: Size;
8
8
  buttonType: Type;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledCardContainer: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const StyledCard: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -2,35 +2,35 @@
2
2
  import { CarouselVersion } from './model';
3
3
  export declare const CarouselContainer: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  version?: CarouselVersion | undefined;
8
8
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
9
  export declare const CarouselBody: import("@emotion/styled").StyledComponent<{
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
12
  } & {
13
13
  textAlign: string | undefined;
14
14
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
15
  export declare const CarouselPage: import("@emotion/styled").StyledComponent<{
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
17
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
18
  } & {
19
19
  isActive: boolean;
20
20
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
21
  export declare const CarouselFooter: import("@emotion/styled").StyledComponent<{
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
- as?: import("react").ElementType<any> | undefined;
23
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
24
  } & {
25
25
  version?: CarouselVersion | undefined;
26
26
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
27
27
  export declare const PageIndicator: import("@emotion/styled").StyledComponent<{
28
28
  theme?: import("@emotion/react").Theme | undefined;
29
- as?: import("react").ElementType<any> | undefined;
29
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
30
30
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
31
31
  export declare const Indicator: import("@emotion/styled").StyledComponent<{
32
32
  theme?: import("@emotion/react").Theme | undefined;
33
- as?: import("react").ElementType<any> | undefined;
33
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
34
34
  } & {
35
35
  isActive: boolean;
36
36
  version?: CarouselVersion | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CheckListStyled: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1 +1 @@
1
- import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as i,Fragment as o}from"react/jsx-runtime";import{useState as r,useEffect as d}from"react";import{toast as s}from"react-toastify";import{Container as c,Header as n,TitleSection as a,Title as l,LanguageBadge as m,CopyButton as h,CodeContainer as p,LineNumbers as g,Code as f}from"./CodeBlock.styled.js";import{highlightCode as u}from"./CodeBlockHelper.js";import{CodeLanguage as b}from"./types.js";const j=j=>{let{code:v="",language:y=b.JAVASCRIPT,title:C="",hideLineNumbers:x=!1,maxHeight:O="400px",maxWidth:M,theme:H="dark",hideHeader:k=!1,hideCopy:_=!1}=j;const[L,T]=r(!1),[w,B]=r(v);d((()=>{let t=!0;return e(void 0,void 0,void 0,(function*(){try{const e=yield import(`./languageSpecificFormatting/${y}_file.ts`);if((null==e?void 0:e.format)&&t)return void B(e.format(v))}catch(e){}t&&B(v)})),()=>{t=!1}}),[v,y]);const F=w.split("\n");return t(c,Object.assign({themeMode:H,maxWidth:M},{children:[!k&&t(n,Object.assign({themeMode:H},{children:[t(a,{children:[!!C&&C&&i(l,Object.assign({themeMode:H},{children:C})),i(m,Object.assign({bg:(S=y,{javascript:"#FEC02D",python:"#3776ab",java:"#ed8b00",css:"#1572b6",html:"#e34c26",json:"#000000"}[S.toLowerCase()]||("dark"===H?"#6e7681":"#656d76")),color:(e=>{const t={javascript:"#000"};return(null==t?void 0:t[e.toLowerCase()])||"#fff"})(y)},{children:y}))]}),!_&&i(h,Object.assign({themeMode:H,onClick:()=>e(void 0,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(v),T(!0),s.success("Code copied to clipboard!",{position:"top-right",autoClose:2e3,hideProgressBar:!0}),setTimeout((()=>T(!1)),2e3)}catch(e){s.error("Failed to copy code",{position:"top-right",autoClose:2e3})}}))},{children:i(o,L?{children:"✓ Copied"}:{children:"Copy"})}))]})),t(p,Object.assign({maxHeight:O},{children:[!x&&i(g,Object.assign({themeMode:H},{children:F.map(((e,t)=>i("div",{children:t+1},t)))})),i(f,Object.assign({themeMode:H},{children:F.map(((e,t)=>i("div",{style:{minHeight:e.trim()?"20px":"0px"},dangerouslySetInnerHTML:{__html:u(e,y,H)||"&nbsp;"}},t)))}))]}))]}));var S};export{j as CodeBlock};
1
+ import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as o,Fragment as i}from"react/jsx-runtime";import{useState as r,useEffect as s}from"react";import{Toaster as c}from"../toaster/Toaster.js";import{Container as d,Header as n,TitleSection as a,Title as l,LanguageBadge as m,CopyButton as h,CodeContainer as p,LineNumbers as g,Code as u}from"./CodeBlock.styled.js";import{highlightCode as j}from"./CodeBlockHelper.js";import{CodeLanguage as b}from"./types.js";const f=f=>{let{code:v="",language:y=b.JAVASCRIPT,title:C="",hideLineNumbers:x=!1,maxHeight:O="400px",maxWidth:M,theme:H="dark",hideHeader:T=!1,hideCopy:k=!1}=f;const[_,L]=r(!1),[w,B]=r(!1),[F,S]=r("success"),[A,I]=r(v);s((()=>{let t=!0;return e(void 0,void 0,void 0,(function*(){try{const e=yield import(`./languageSpecificFormatting/${y}_file.ts`);if((null==e?void 0:e.format)&&t)return void I(e.format(v))}catch(e){}t&&I(v)})),()=>{t=!1}}),[v,y]);const P=A.split("\n");return t(d,Object.assign({themeMode:H,maxWidth:M},{children:[!T&&t(n,Object.assign({themeMode:H},{children:[t(a,{children:[!!C&&C&&o(l,Object.assign({themeMode:H},{children:C})),o(m,Object.assign({bg:(W=y,{javascript:"#FEC02D",python:"#3776ab",java:"#ed8b00",css:"#1572b6",html:"#e34c26",json:"#000000"}[W.toLowerCase()]||("dark"===H?"#6e7681":"#656d76")),color:(e=>{const t={javascript:"#000"};return(null==t?void 0:t[e.toLowerCase()])||"#fff"})(y)},{children:y}))]}),!k&&o(h,Object.assign({themeMode:H,onClick:()=>e(void 0,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(v),L(!0),S("success"),B(!0),setTimeout((()=>L(!1)),2e3)}catch(e){S("error"),B(!0)}}))},{children:o(i,_?{children:"✓ Copied"}:{children:"Copy"})}))]})),t(p,Object.assign({maxHeight:O},{children:[!x&&o(g,Object.assign({themeMode:H},{children:P.map(((e,t)=>o("div",{children:t+1},t)))})),o(u,Object.assign({themeMode:H},{children:P.map(((e,t)=>o("div",{style:{minHeight:e.trim()?"20px":"0px"},dangerouslySetInnerHTML:{__html:j(e,y,H)||"&nbsp;"}},t)))}))]})),w&&o(c,{text:"success"===F?"Code copied to clipboard!":"Failed to copy code",autoClose:2e3,type:F,hideProgressBar:!0,onCloseToast:()=>B(!1)})]}));var W};export{f as CodeBlock};
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ColorInputContainer: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const StyledColorInput: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
@@ -1 +1 @@
1
- import{jsx as o,jsxs as e}from"react/jsx-runtime";import t from"../../assets/icons/chevronDown.svg.js";import{useState as n,useEffect as r}from"react";import{CountriesData as d}from"./CountryCodePicker.modal.js";import{StyledCountryPickerWrapper as s,StyledCountryPickerOption as i}from"./CountryCodePicker.styled.js";import{DropdownPopover as l}from"../dropdown/DropdownPopover/index.js";import"../dropdown/Dropdown.js";import"../dropdown/ChipDropdown.js";import"../zeroState/ZeroState.js";import{BodySecondary as c}from"../TypographyStyle.js";import{COLORS as p}from"../../constants/Theme.js";import"../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../checkBox/CheckBox.styled.js";import"../list-item/ListItem.js";import"../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../button/Button.js";import"../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../icon-button/IconButton.js";import"../input/Input.js";import"../dropdown/MenuItem/MenuItem.js";const m=m=>{var a,u,y,h,j,v,w;const[g,C]=n(null!==(a=m.selectedCountry)&&void 0!==a?a:{name:"India",dial:"+91",code:"IN"}),b=`https://flagcdn.com/${null===(u=g.code)||void 0===u?void 0:u.toLowerCase()}.svg`;r((()=>{m.selectedCountry&&C(m.selectedCountry)}),[null===(y=m.selectedCountry)||void 0===y?void 0:y.code]);return o(l,Object.assign({version:m.version,isSearchable:!0,width:null!==(h=m.popoverWidth)&&void 0!==h?h:"200px",placement:null!==(j=m.placement)&&void 0!==j?j:"bottom-start",strategy:null!==(v=m.placementStrategy)&&void 0!==v?v:"absolute",options:d.map((t=>{var n,r,d,s;const l=`https://flagcdn.com/${null===(n=t.code)||void 0===n?void 0:n.toLowerCase()}.svg`;return{value:t.code,label:t.dial,searchKey:t.name,customComponent:e(i,{children:[!m.hideFlagImage&&o("img",{src:l,className:"country-flag__option",alt:t.name}),e(c,Object.assign({style:null!==(r=m.countryTextStyle)&&void 0!==r?r:{}},{children:[o("span",Object.assign({style:{color:null!==(d=m.codeColor)&&void 0!==d?d:p.text.primary}},{children:t.code}))," ",o("span",Object.assign({style:{color:null!==(s=m.dialColor)&&void 0!==s?s:p.text.primary}},{children:t.dial}))]}))]}),selected:g.code===t.code}})),disabled:m.disabled,onSelect:o=>{const e=d.filter((e=>e.code===o.value));C(e[0]),m.onCountrySelect(e[0])}},{children:e(s,Object.assign({height:m.height,style:m.containerStyles,onClick:()=>{var o;console.log("hello"),null===(o=m.onDropdownClick)||void 0===o||o.call(m)}},{children:[e("div",Object.assign({className:"content__wrapper"},{children:[!m.hideFlagImage&&o("img",{src:b,className:"country-flag__selected-option",alt:g.name}),o(c,Object.assign({style:null!==(w=m.countryTextStyle)&&void 0!==w?w:{}},{children:g.dial}))]})),o(t,{width:24,height:24,color:p.content.primary})]}))}))};export{m as CountryCodePicker};
1
+ import{jsx as o,jsxs as e}from"react/jsx-runtime";import t from"../../assets/icons/chevronDown.svg.js";import{useState as n,useEffect as r}from"react";import{CountriesData as d}from"./CountryCodePicker.modal.js";import{StyledCountryPickerWrapper as s,StyledCountryPickerOption as i}from"./CountryCodePicker.styled.js";import{DropdownPopover as l}from"../dropdown/DropdownPopover/index.js";import"../dropdown/Dropdown.js";import"../dropdown/ChipDropdown.js";import"../zeroState/ZeroState.js";import"lodash/debounce";import{BodySecondary as c}from"../TypographyStyle.js";import{COLORS as p}from"../../constants/Theme.js";import"../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../checkBox/CheckBox.styled.js";import"../list-item/ListItem.js";import"../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../button/Button.js";import"../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../icon-button/IconButton.js";import"../input/Input.js";import"../dropdown/MenuItem/MenuItem.js";const m=m=>{var a,u,y,h,j,v,w;const[g,C]=n(null!==(a=m.selectedCountry)&&void 0!==a?a:{name:"India",dial:"+91",code:"IN"}),b=`https://flagcdn.com/${null===(u=g.code)||void 0===u?void 0:u.toLowerCase()}.svg`;r((()=>{m.selectedCountry&&C(m.selectedCountry)}),[null===(y=m.selectedCountry)||void 0===y?void 0:y.code]);return o(l,Object.assign({version:m.version,isSearchable:!0,width:null!==(h=m.popoverWidth)&&void 0!==h?h:"200px",placement:null!==(j=m.placement)&&void 0!==j?j:"bottom-start",strategy:null!==(v=m.placementStrategy)&&void 0!==v?v:"absolute",options:d.map((t=>{var n,r,d,s;const l=`https://flagcdn.com/${null===(n=t.code)||void 0===n?void 0:n.toLowerCase()}.svg`;return{value:t.code,label:t.dial,searchKey:t.name,customComponent:e(i,{children:[!m.hideFlagImage&&o("img",{src:l,className:"country-flag__option",alt:t.name}),e(c,Object.assign({style:null!==(r=m.countryTextStyle)&&void 0!==r?r:{}},{children:[o("span",Object.assign({style:{color:null!==(d=m.codeColor)&&void 0!==d?d:p.text.primary}},{children:t.code}))," ",o("span",Object.assign({style:{color:null!==(s=m.dialColor)&&void 0!==s?s:p.text.primary}},{children:t.dial}))]}))]}),selected:g.code===t.code}})),disabled:m.disabled,onSelect:o=>{const e=d.filter((e=>e.code===o.value));C(e[0]),m.onCountrySelect(e[0])}},{children:e(s,Object.assign({height:m.height,style:m.containerStyles,onClick:()=>{var o;console.log("hello"),null===(o=m.onDropdownClick)||void 0===o||o.call(m)}},{children:[e("div",Object.assign({className:"content__wrapper"},{children:[!m.hideFlagImage&&o("img",{src:b,className:"country-flag__selected-option",alt:g.name}),o(c,Object.assign({style:null!==(w=m.countryTextStyle)&&void 0!==w?w:{}},{children:g.dial}))]})),o(t,{width:24,height:24,color:p.content.primary})]}))}))};export{m as CountryCodePicker};
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledCountryPickerOption: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const StyledCountryPickerWrapper: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  } & {
10
10
  height?: string | undefined;
11
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1 +1 @@
1
- import{jsxs as o,jsx as e,Fragment as t}from"react/jsx-runtime";import n from"../../assets/icons/chevronDown.svg.js";import{useState as r,useMemo as s}from"react";import{CountriesData as d}from"./CountryCodePicker.modal.js";import{StyledCountryOption as i,StyledCountryPickerContainer as c}from"./CountryPicker.styled.js";import{DropdownPopover as p}from"../dropdown/DropdownPopover/index.js";import"../dropdown/Dropdown.js";import"../dropdown/ChipDropdown.js";import"../zeroState/ZeroState.js";import{BodySecondary as l}from"../TypographyStyle.js";import{COLORS as m}from"../../constants/Theme.js";import"../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../checkBox/CheckBox.styled.js";import"../list-item/ListItem.js";import"../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../button/Button.js";import"../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../icon-button/IconButton.js";import"../input/Input.js";import"../dropdown/MenuItem/MenuItem.js";const a=a=>{let{version:u,onCountrySelect:y,selectedCountry:h,popoverWidth:j="300px",height:w,placement:g="bottom-start",placementStrategy:v="absolute",disabled:b=!1,hideFlagImage:O=!1,containerStyles:f,placeholder:C="Select a country",showCountryCode:D=!0,countryTextStyle:S,onDropdownClick:x}=a;var I;const[k,B]=r(h),M=null!=h?h:k,L=M?`https://flagcdn.com/${null===(I=M.code)||void 0===I?void 0:I.toLowerCase()}.svg`:void 0,N=s((()=>d.map((t=>{var n;const r=`https://flagcdn.com/${null===(n=t.code)||void 0===n?void 0:n.toLowerCase()}.svg`;return{value:t.code,label:t.name,searchKey:t.name,customComponent:o(i,{children:[!O&&e("img",{src:r,className:"country-flag",alt:t.name}),o("div",Object.assign({className:"country-info"},{children:[e(l,Object.assign({style:Object.assign({color:m.text.primary},S)},{children:t.name})),D&&e(l,Object.assign({style:{color:m.text.secondary,fontSize:"12px"}},{children:t.code}))]}))]}),selected:(null==M?void 0:M.code)===t.code}}))),[null==M?void 0:M.code,O,D,S]);return e(p,Object.assign({version:u,isSearchable:!0,width:j,placement:g,strategy:v,options:N,disabled:b,onSelect:o=>(o=>{const e=d.find((e=>e.code===o.value));e&&(void 0===h&&B(e),y(e))})(o)},{children:o(c,Object.assign({height:w,style:f,onClick:x,disabled:b},{children:[e("div",Object.assign({className:"content__wrapper"},{children:M?o(t,{children:[!O&&L&&e("img",{src:L,className:"country-flag",alt:M.name}),e(l,Object.assign({style:S},{children:M.name}))]}):e(l,Object.assign({style:Object.assign({color:m.text.disabled},S)},{children:C}))})),e(n,{width:24,height:24,color:b?m.text.disabled:m.content.primary})]}))}))};export{a as CountryPicker};
1
+ import{jsxs as o,jsx as e,Fragment as t}from"react/jsx-runtime";import n from"../../assets/icons/chevronDown.svg.js";import{useState as r,useMemo as s}from"react";import{CountriesData as d}from"./CountryCodePicker.modal.js";import{StyledCountryOption as i,StyledCountryPickerContainer as c}from"./CountryPicker.styled.js";import{DropdownPopover as p}from"../dropdown/DropdownPopover/index.js";import"../dropdown/Dropdown.js";import"../dropdown/ChipDropdown.js";import"../zeroState/ZeroState.js";import"lodash/debounce";import{BodySecondary as l}from"../TypographyStyle.js";import{COLORS as m}from"../../constants/Theme.js";import"../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../checkBox/CheckBox.styled.js";import"../list-item/ListItem.js";import"../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../button/Button.js";import"../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../icon-button/IconButton.js";import"../input/Input.js";import"../dropdown/MenuItem/MenuItem.js";const a=a=>{let{version:u,onCountrySelect:h,selectedCountry:y,popoverWidth:j="300px",height:w,placement:g="bottom-start",placementStrategy:b="absolute",disabled:v=!1,hideFlagImage:O=!1,containerStyles:f,placeholder:C="Select a country",showCountryCode:D=!0,countryTextStyle:S,onDropdownClick:x}=a;var I;const[k,B]=r(y),M=null!=y?y:k,L=M?`https://flagcdn.com/${null===(I=M.code)||void 0===I?void 0:I.toLowerCase()}.svg`:void 0,N=s((()=>d.map((t=>{var n;const r=`https://flagcdn.com/${null===(n=t.code)||void 0===n?void 0:n.toLowerCase()}.svg`;return{value:t.code,label:t.name,searchKey:t.name,customComponent:o(i,{children:[!O&&e("img",{src:r,className:"country-flag",alt:t.name}),o("div",Object.assign({className:"country-info"},{children:[e(l,Object.assign({style:Object.assign({color:m.text.primary},S)},{children:t.name})),D&&e(l,Object.assign({style:{color:m.text.secondary,fontSize:"12px"}},{children:t.code}))]}))]}),selected:(null==M?void 0:M.code)===t.code}}))),[null==M?void 0:M.code,O,D,S]);return e(p,Object.assign({version:u,isSearchable:!0,width:j,placement:g,strategy:b,options:N,disabled:v,onSelect:o=>(o=>{const e=d.find((e=>e.code===o.value));e&&(void 0===y&&B(e),h(e))})(o)},{children:o(c,Object.assign({height:w,style:f,onClick:x,disabled:v},{children:[e("div",Object.assign({className:"content__wrapper"},{children:M?o(t,{children:[!O&&L&&e("img",{src:L,className:"country-flag",alt:M.name}),e(l,Object.assign({style:S},{children:M.name}))]}):e(l,Object.assign({style:Object.assign({color:m.text.disabled},S)},{children:C}))})),e(n,{width:24,height:24,color:v?m.text.disabled:m.content.primary})]}))}))};export{a as CountryPicker};
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledCountryOption: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const StyledCountryPickerContainer: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  } & {
10
10
  height?: string | undefined;
11
11
  disabled?: boolean | undefined;