@ssa-ui-kit/core 2.0.0 → 2.1.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 (38) hide show
  1. package/LICENSE +21 -21
  2. package/dist/components/Badge/Badge.d.ts +1 -1
  3. package/dist/components/Button/fixtures.d.ts +8 -8
  4. package/dist/components/Charts/PieChart/PieChart.d.ts +1 -0
  5. package/dist/components/Charts/PieChart/PieChartLegendMarker.d.ts +1 -1
  6. package/dist/components/Charts/SegmentedPieChart/SegmentedPieChart.d.ts +5 -1
  7. package/dist/components/Charts/SegmentedPieChart/hooks/useData.d.ts +2 -1
  8. package/dist/components/Field/FieldControl.d.ts +7 -0
  9. package/dist/components/Field/FieldDescription.d.ts +4 -0
  10. package/dist/components/Field/FieldError.d.ts +4 -0
  11. package/dist/components/Field/FieldLabel.d.ts +5 -0
  12. package/dist/components/Field/FieldProvider.d.ts +12 -0
  13. package/dist/components/Field/FieldRoot.d.ts +6 -0
  14. package/dist/components/Field/FieldSuccess.d.ts +4 -0
  15. package/dist/components/Field/index.d.ts +5 -0
  16. package/dist/components/Field/index.parts.d.ts +6 -0
  17. package/dist/components/FiltersMultiSelect/FiltersMultiSelect.d.ts +24 -0
  18. package/dist/components/FiltersMultiSelect/FiltersMultiSelectProvider.d.ts +9 -0
  19. package/dist/components/FiltersMultiSelect/components/FilterBadge.d.ts +11 -0
  20. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectEmpty.d.ts +5 -0
  21. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectOption.d.ts +7 -0
  22. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectOptions.d.ts +4 -0
  23. package/dist/components/FiltersMultiSelect/index.d.ts +5 -0
  24. package/dist/components/FiltersMultiSelect/useFiltersMultiSelect.d.ts +32 -0
  25. package/dist/components/Icon/icons/CheckCircleInverted.d.ts +3 -0
  26. package/dist/components/Icon/icons/MinusCircle.d.ts +3 -0
  27. package/dist/components/Icon/icons/MinusCircleInverted.d.ts +3 -0
  28. package/dist/components/Icon/icons/PlusCircle.d.ts +3 -0
  29. package/dist/components/Icon/icons/PlusCircleInverted.d.ts +3 -0
  30. package/dist/components/Icon/icons/all.d.ts +5 -0
  31. package/dist/components/Icon/icons/iconsList.d.ts +1 -1
  32. package/dist/components/index.d.ts +2 -0
  33. package/dist/contexts/Translation/TranslationContext.d.ts +1 -1
  34. package/dist/contexts/Translation/types.d.ts +1 -1
  35. package/dist/index.js +1073 -128
  36. package/dist/index.js.map +1 -1
  37. package/dist/types/emotion.d.ts +8 -0
  38. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -91,7 +91,18 @@ __webpack_require__.d(__webpack_exports__, {
91
91
  DropdownOption: () => (/* reexport */ DropdownOption_DropdownOption),
92
92
  DropdownOptions: () => (/* reexport */ DropdownOptions_DropdownOptions),
93
93
  DropdownToggle: () => (/* reexport */ DropdownToggle_DropdownToggle),
94
+ FieldControlProps: () => (/* reexport */ FieldControl_namespaceObject.FieldControlProps),
95
+ FieldLabelProps: () => (/* reexport */ FieldLabel_namespaceObject.FieldLabelProps),
96
+ FieldProps: () => (/* reexport */ FieldRoot_namespaceObject.FieldRootProps),
97
+ Filter: () => (/* reexport */ useFiltersMultiSelect_namespaceObject.Filter),
94
98
  Filters: () => (/* reexport */ Filters),
99
+ FiltersMultiSelect: () => (/* reexport */ FiltersMultiSelect),
100
+ FiltersMultiSelectEmpty: () => (/* reexport */ FiltersMultiSelectEmpty),
101
+ FiltersMultiSelectEmptyProps: () => (/* reexport */ FiltersMultiSelectEmpty_namespaceObject.FiltersMultiSelectEmptyProps),
102
+ FiltersMultiSelectOption: () => (/* reexport */ FiltersMultiSelectOption),
103
+ FiltersMultiSelectOptionProps: () => (/* reexport */ FiltersMultiSelectOption_namespaceObject.FiltersMultiSelectOptionProps),
104
+ FiltersMultiSelectOptions: () => (/* reexport */ FiltersMultiSelectOptions),
105
+ FiltersMultiSelectProps: () => (/* reexport */ FiltersMultiSelect_namespaceObject.FiltersMultiSelectProps),
95
106
  Form: () => (/* reexport */ Form_Form),
96
107
  FormAction: () => (/* reexport */ FormAction_FormAction),
97
108
  FormCheckbox: () => (/* reexport */ FormCheckbox_FormCheckbox),
@@ -129,6 +140,7 @@ __webpack_require__.d(__webpack_exports__, {
129
140
  PaginationContext: () => (/* reexport */ PaginationContext),
130
141
  PaginationContextProvider: () => (/* reexport */ PaginationContextProvider),
131
142
  PieChart: () => (/* reexport */ PieChart),
143
+ PieChartComponent: () => (/* reexport */ PieChartComponent),
132
144
  PieChartLegend: () => (/* reexport */ PieChartLegend),
133
145
  Popover: () => (/* reexport */ Popover),
134
146
  PopoverClose: () => (/* reexport */ PopoverClose),
@@ -154,6 +166,8 @@ __webpack_require__.d(__webpack_exports__, {
154
166
  SearchBoxInput: () => (/* reexport */ SearchBoxInput),
155
167
  SearchBoxWrapper: () => (/* reexport */ SearchBoxWrapper),
156
168
  SegmentedPieChart: () => (/* reexport */ SegmentedPieChart),
169
+ SegmentedPieChartComponent: () => (/* reexport */ SegmentedPieChartComponent),
170
+ SelectedFilter: () => (/* reexport */ useFiltersMultiSelect_namespaceObject.SelectedFilter),
157
171
  SimpleChartTooltip: () => (/* reexport */ SimpleChartTooltip),
158
172
  Step: () => (/* reexport */ Step_Step),
159
173
  StepConnector: () => (/* reexport */ StepConnector_StepConnector),
@@ -223,6 +237,8 @@ __webpack_require__.d(__webpack_exports__, {
223
237
  styles: () => (/* reexport */ Tooltip_styles_namespaceObject),
224
238
  useAccordionGroupContext: () => (/* reexport */ useAccordionGroupContext),
225
239
  useCollapsibleNavBarContext: () => (/* reexport */ useCollapsibleNavBarContext),
240
+ useFieldContext: () => (/* reexport */ useFieldContext),
241
+ useFilterMultiSelect: () => (/* reexport */ useFilterMultiSelect),
226
242
  useFullscreenMode: () => (/* reexport */ useFullscreenMode),
227
243
  useNestedTableRowContext: () => (/* reexport */ useNestedTableRowContext),
228
244
  usePaginationContext: () => (/* reexport */ usePaginationContext),
@@ -331,6 +347,22 @@ __webpack_require__.d(Plus_namespaceObject, {
331
347
  Plus: () => (Plus)
332
348
  });
333
349
 
350
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/PlusCircle.tsx
351
+ var PlusCircle_namespaceObject = {};
352
+ __webpack_require__.r(PlusCircle_namespaceObject);
353
+ __webpack_require__.d(PlusCircle_namespaceObject, {
354
+ ICON_NAME: () => (PlusCircle_ICON_NAME),
355
+ PlusCircle: () => (PlusCircle)
356
+ });
357
+
358
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/PlusCircleInverted.tsx
359
+ var PlusCircleInverted_namespaceObject = {};
360
+ __webpack_require__.r(PlusCircleInverted_namespaceObject);
361
+ __webpack_require__.d(PlusCircleInverted_namespaceObject, {
362
+ ICON_NAME: () => (PlusCircleInverted_ICON_NAME),
363
+ PlusCircleInverted: () => (PlusCircleInverted)
364
+ });
365
+
334
366
  // NAMESPACE OBJECT: ./src/components/Icon/icons/Minus.tsx
335
367
  var Minus_namespaceObject = {};
336
368
  __webpack_require__.r(Minus_namespaceObject);
@@ -339,6 +371,22 @@ __webpack_require__.d(Minus_namespaceObject, {
339
371
  Minus: () => (Minus)
340
372
  });
341
373
 
374
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/MinusCircle.tsx
375
+ var MinusCircle_namespaceObject = {};
376
+ __webpack_require__.r(MinusCircle_namespaceObject);
377
+ __webpack_require__.d(MinusCircle_namespaceObject, {
378
+ ICON_NAME: () => (MinusCircle_ICON_NAME),
379
+ MinusCircle: () => (MinusCircle)
380
+ });
381
+
382
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/MinusCircleInverted.tsx
383
+ var MinusCircleInverted_namespaceObject = {};
384
+ __webpack_require__.r(MinusCircleInverted_namespaceObject);
385
+ __webpack_require__.d(MinusCircleInverted_namespaceObject, {
386
+ ICON_NAME: () => (MinusCircleInverted_ICON_NAME),
387
+ MinusCircleInverted: () => (MinusCircleInverted)
388
+ });
389
+
342
390
  // NAMESPACE OBJECT: ./src/components/Icon/icons/Cross.tsx
343
391
  var Cross_namespaceObject = {};
344
392
  __webpack_require__.r(Cross_namespaceObject);
@@ -363,6 +411,14 @@ __webpack_require__.d(CheckCircle_namespaceObject, {
363
411
  ICON_NAME: () => (CheckCircle_ICON_NAME)
364
412
  });
365
413
 
414
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/CheckCircleInverted.tsx
415
+ var CheckCircleInverted_namespaceObject = {};
416
+ __webpack_require__.r(CheckCircleInverted_namespaceObject);
417
+ __webpack_require__.d(CheckCircleInverted_namespaceObject, {
418
+ CheckCircleInverted: () => (CheckCircleInverted),
419
+ ICON_NAME: () => (CheckCircleInverted_ICON_NAME)
420
+ });
421
+
366
422
  // NAMESPACE OBJECT: ./src/components/Icon/icons/More.tsx
367
423
  var More_namespaceObject = {};
368
424
  __webpack_require__.r(More_namespaceObject);
@@ -750,6 +806,7 @@ __webpack_require__.d(all_namespaceObject, {
750
806
  Chart: () => (Chart_namespaceObject),
751
807
  Check: () => (Check_namespaceObject),
752
808
  CheckCircle: () => (CheckCircle_namespaceObject),
809
+ CheckCircleInverted: () => (CheckCircleInverted_namespaceObject),
753
810
  Circle: () => (Circle_namespaceObject),
754
811
  Circular: () => (Circular_namespaceObject),
755
812
  Clock: () => (Clock_namespaceObject),
@@ -774,11 +831,15 @@ __webpack_require__.d(all_namespaceObject, {
774
831
  Measurements: () => (Measurements_namespaceObject),
775
832
  Message: () => (Message_namespaceObject),
776
833
  Minus: () => (Minus_namespaceObject),
834
+ MinusCircle: () => (MinusCircle_namespaceObject),
835
+ MinusCircleInverted: () => (MinusCircleInverted_namespaceObject),
777
836
  More: () => (More_namespaceObject),
778
837
  MoreVertical: () => (MoreVertical_namespaceObject),
779
838
  Notification: () => (Notification_namespaceObject),
780
839
  Pages: () => (Pages_namespaceObject),
781
840
  Plus: () => (Plus_namespaceObject),
841
+ PlusCircle: () => (PlusCircle_namespaceObject),
842
+ PlusCircleInverted: () => (PlusCircleInverted_namespaceObject),
782
843
  RadioOn: () => (RadioOn_namespaceObject),
783
844
  Report: () => (Report_namespaceObject),
784
845
  Robot: () => (Robot_namespaceObject),
@@ -827,6 +888,55 @@ __webpack_require__.d(Tooltip_styles_namespaceObject, {
827
888
  small: () => (Tooltip_styles_small)
828
889
  });
829
890
 
891
+ // NAMESPACE OBJECT: ./src/components/Field/FieldRoot.tsx
892
+ var FieldRoot_namespaceObject = {};
893
+ __webpack_require__.r(FieldRoot_namespaceObject);
894
+ __webpack_require__.d(FieldRoot_namespaceObject, {
895
+ X: () => (FieldRoot)
896
+ });
897
+
898
+ // NAMESPACE OBJECT: ./src/components/Field/FieldLabel.tsx
899
+ var FieldLabel_namespaceObject = {};
900
+ __webpack_require__.r(FieldLabel_namespaceObject);
901
+ __webpack_require__.d(FieldLabel_namespaceObject, {
902
+ d: () => (FieldLabel)
903
+ });
904
+
905
+ // NAMESPACE OBJECT: ./src/components/Field/FieldControl.tsx
906
+ var FieldControl_namespaceObject = {};
907
+ __webpack_require__.r(FieldControl_namespaceObject);
908
+ __webpack_require__.d(FieldControl_namespaceObject, {
909
+ s: () => (FieldControl)
910
+ });
911
+
912
+ // NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/useFiltersMultiSelect.tsx
913
+ var useFiltersMultiSelect_namespaceObject = {};
914
+ __webpack_require__.r(useFiltersMultiSelect_namespaceObject);
915
+ __webpack_require__.d(useFiltersMultiSelect_namespaceObject, {
916
+ j: () => (useFilterMultiSelect)
917
+ });
918
+
919
+ // NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/components/FiltersMultiSelectEmpty.tsx
920
+ var FiltersMultiSelectEmpty_namespaceObject = {};
921
+ __webpack_require__.r(FiltersMultiSelectEmpty_namespaceObject);
922
+ __webpack_require__.d(FiltersMultiSelectEmpty_namespaceObject, {
923
+ S: () => (FiltersMultiSelectEmpty)
924
+ });
925
+
926
+ // NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/FiltersMultiSelect.tsx
927
+ var FiltersMultiSelect_namespaceObject = {};
928
+ __webpack_require__.r(FiltersMultiSelect_namespaceObject);
929
+ __webpack_require__.d(FiltersMultiSelect_namespaceObject, {
930
+ p: () => (FiltersMultiSelect)
931
+ });
932
+
933
+ // NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/components/FiltersMultiSelectOption.tsx
934
+ var FiltersMultiSelectOption_namespaceObject = {};
935
+ __webpack_require__.r(FiltersMultiSelectOption_namespaceObject);
936
+ __webpack_require__.d(FiltersMultiSelectOption_namespaceObject, {
937
+ u: () => (FiltersMultiSelectOption)
938
+ });
939
+
830
940
  // NAMESPACE OBJECT: ./src/components/Charts/PieChart/colorPalettes.ts
831
941
  var colorPalettes_namespaceObject = {};
832
942
  __webpack_require__.r(colorPalettes_namespaceObject);
@@ -921,14 +1031,22 @@ const main = {
921
1031
  // #656567
922
1032
  redLighter: 'rgba(242, 136, 142, 1)',
923
1033
  // #f2888e
1034
+ redLighter6: 'rgba(242, 136, 142, 0.06)',
1035
+ // #f2888e
924
1036
  redLighter40: 'rgba(242, 136, 142, 0.4)',
925
1037
  // #f2888e
926
1038
  red: 'rgba(235, 117, 86, 1)',
927
1039
  // #eb7556
1040
+ red6: 'rgba(235, 117, 86, 0.06)',
1041
+ // #eb7556
1042
+ redDark: 'rgba(229, 53, 14, 1)',
1043
+ // #e5350e
928
1044
  red40: 'rgba(235, 117, 86, 0.4)',
929
1045
  // #eb7556
930
1046
  greenLighter: 'rgba(137, 217, 150, 1)',
931
1047
  // #89d996
1048
+ greenLighter6: 'rgba(137, 217, 150, 0.06)',
1049
+ // #89d996
932
1050
  greenLighter20: 'rgba(137, 217, 150, 0.2)',
933
1051
  // #89d996
934
1052
  greenLighter40: 'rgba(137, 217, 150, 0.4)',
@@ -937,6 +1055,8 @@ const main = {
937
1055
  // #89d996
938
1056
  green: 'rgba(82, 197, 135, 1)',
939
1057
  // #52c587
1058
+ green6: 'rgba(82, 197, 135, 0.06)',
1059
+ // #52c587
940
1060
  green20: 'rgba(82, 197, 135, 0.2)',
941
1061
  // #52c587
942
1062
  green40: 'rgba(82, 197, 135, 0.4)',
@@ -1007,6 +1127,8 @@ const main = {
1007
1127
  // #9c7aeb
1008
1128
  blue: 'rgba(65, 120, 225, 1)',
1009
1129
  // #4178e1
1130
+ blue6: 'rgba(65, 120, 225, 0.06)',
1131
+ // #4178e1
1010
1132
  blue20: 'rgba(65, 120, 225, 0.2)',
1011
1133
  // #4178e1
1012
1134
  blueDark: 'rgba(36, 101, 227, 1)',
@@ -1019,6 +1141,8 @@ const main = {
1019
1141
  // #A6D5F4
1020
1142
  blueLighter: 'rgba(117, 153, 222, 1)',
1021
1143
  // #7599de
1144
+ blueLighter6: 'rgba(117, 153, 222, 0.06)',
1145
+ // #7599de
1022
1146
  blueLighter20: 'rgba(117, 153, 222, 0.2)',
1023
1147
  // #7599de
1024
1148
  blueLighter40: 'rgba(117, 153, 222, 0.4)',
@@ -1047,6 +1171,8 @@ const main = {
1047
1171
  //#0745bd
1048
1172
  blueRoyal: 'rgba(72, 125, 225, 1)',
1049
1173
  //#487de1
1174
+ blueRoyal6: 'rgba(72, 125, 225, 0.06)',
1175
+ //#487DE1
1050
1176
  blueRoyal12: 'rgba(72, 125, 225, 0.12)',
1051
1177
  //#487DE1
1052
1178
  dangerShades300: 'rgb(253, 128, 122)',
@@ -1159,11 +1285,12 @@ const Badge = /*#__PURE__*/external_react_default().forwardRef(function Badge({
1159
1285
  children,
1160
1286
  ...props
1161
1287
  }, ref) {
1288
+ const sizeProps = mapSizes[size];
1162
1289
  return (0,jsx_runtime_namespaceObject.jsx)(Badge_BadgeBase, {
1163
1290
  ref: ref,
1164
1291
  css: [color in mapColors ? mapColors[color] : {
1165
1292
  background: color
1166
- }, mapSizes[size], true ? "" : 0, true ? "" : 0],
1293
+ }, sizeProps, true ? "" : 0, true ? "" : 0],
1167
1294
  ...props,
1168
1295
  children: children ? children : null
1169
1296
  });
@@ -1729,6 +1856,59 @@ const Plus = ({
1729
1856
  })]
1730
1857
  });
1731
1858
  const Plus_ICON_NAME = 'plus';
1859
+ ;// ./src/components/Icon/icons/PlusCircle.tsx
1860
+
1861
+ const PlusCircle = ({
1862
+ fill = '#000',
1863
+ size = 24,
1864
+ tooltip = 'Plus circle',
1865
+ ...props
1866
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1867
+ width: `${size}px`,
1868
+ height: `${size}px`,
1869
+ viewBox: "0 0 20 20",
1870
+ fill: "none",
1871
+ xmlns: "http://www.w3.org/2000/svg",
1872
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1873
+ ...props,
1874
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1875
+ children: tooltip
1876
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1877
+ d: "M5.96667 9.99999C5.96667 9.61339 6.28008 9.29999 6.66667 9.29999H9.30005V6.66667C9.30005 6.28008 9.61345 5.96667 10 5.96667C10.3866 5.96667 10.7 6.28008 10.7 6.66667V9.29999H13.3333C13.7199 9.29999 14.0333 9.61339 14.0333 9.99999C14.0333 10.3866 13.7199 10.7 13.3333 10.7H10.7V13.3333C10.7 13.7199 10.3866 14.0333 10 14.0333C9.61345 14.0333 9.30005 13.7199 9.30005 13.3333V10.7H6.66667C6.28008 10.7 5.96667 10.3866 5.96667 9.99999Z",
1878
+ fill: fill
1879
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1880
+ d: "M0.966675 10C0.966675 5.03008 5.03008 0.966675 10 0.966675C14.9699 0.966675 19.0333 5.03008 19.0333 10C19.0333 14.9699 14.9699 19.0333 10 19.0333C5.03008 19.0333 0.966675 14.9699 0.966675 10ZM10 2.36667C5.80327 2.36667 2.36667 5.80327 2.36667 10C2.36667 14.1967 5.80327 17.6333 10 17.6333C14.1967 17.6333 17.6333 14.1967 17.6333 10C17.6333 5.80327 14.1967 2.36667 10 2.36667Z",
1881
+ fillRule: "evenodd",
1882
+ clipRule: "evenodd",
1883
+ fill: fill
1884
+ })]
1885
+ });
1886
+ const PlusCircle_ICON_NAME = 'plus-circle';
1887
+ ;// ./src/components/Icon/icons/PlusCircleInverted.tsx
1888
+
1889
+ const PlusCircleInverted = ({
1890
+ fill = '#000',
1891
+ size = 24,
1892
+ tooltip = 'Plus circle inverted',
1893
+ ...props
1894
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1895
+ width: `${size}px`,
1896
+ height: `${size}px`,
1897
+ viewBox: "0 0 20 20",
1898
+ fill: "none",
1899
+ xmlns: "http://www.w3.org/2000/svg",
1900
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1901
+ ...props,
1902
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1903
+ children: tooltip
1904
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1905
+ d: "M1.66663 10C1.66663 5.40835 5.40829 1.66669 9.99996 1.66669C14.5916 1.66669 18.3333 5.40835 18.3333 10C18.3333 14.5917 14.5916 18.3334 9.99996 18.3334C5.40829 18.3334 1.66663 14.5917 1.66663 10ZM9.99996 13.9584C10.3416 13.9584 10.625 13.675 10.625 13.3334V10.625H13.3333C13.675 10.625 13.9583 10.3417 13.9583 10C13.9583 9.65835 13.675 9.37502 13.3333 9.37502H10.625V6.66669C10.625 6.32502 10.3416 6.04169 9.99996 6.04169C9.65829 6.04169 9.37496 6.32502 9.37496 6.66669V9.37502H6.66663C6.32496 9.37502 6.04163 9.65835 6.04163 10C6.04163 10.3417 6.32496 10.625 6.66663 10.625H9.37496V13.3334C9.37496 13.675 9.65829 13.9584 9.99996 13.9584Z",
1906
+ fillRule: "evenodd",
1907
+ clipRule: "evenodd",
1908
+ fill: fill
1909
+ })]
1910
+ });
1911
+ const PlusCircleInverted_ICON_NAME = 'plus-circle-inverted';
1732
1912
  ;// ./src/components/Icon/icons/Minus.tsx
1733
1913
 
1734
1914
  const Minus = ({
@@ -1755,6 +1935,59 @@ const Minus = ({
1755
1935
  })]
1756
1936
  });
1757
1937
  const Minus_ICON_NAME = 'minus';
1938
+ ;// ./src/components/Icon/icons/MinusCircle.tsx
1939
+
1940
+ const MinusCircle = ({
1941
+ fill = '#000',
1942
+ size = 24,
1943
+ tooltip = 'Minus circle',
1944
+ ...props
1945
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1946
+ width: `${size}px`,
1947
+ height: `${size}px`,
1948
+ viewBox: "0 0 20 20",
1949
+ fill: "none",
1950
+ xmlns: "http://www.w3.org/2000/svg",
1951
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1952
+ ...props,
1953
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1954
+ children: tooltip
1955
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1956
+ d: "M5.8999 10C5.8999 9.61341 6.2133 9.30001 6.5999 9.30001H13.2666C13.6532 9.30001 13.9666 9.61341 13.9666 10C13.9666 10.3866 13.6532 10.7 13.2666 10.7H6.5999C6.2133 10.7 5.8999 10.3866 5.8999 10Z",
1957
+ fill: fill
1958
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1959
+ d: "M0.899902 10C0.899902 5.03008 4.9633 0.966675 9.93324 0.966675C14.9032 0.966675 18.9666 5.03008 18.9666 10C18.9666 14.9699 14.9032 19.0333 9.93324 19.0333C4.9633 19.0333 0.899902 14.9699 0.899902 10ZM9.93324 2.36667C5.7365 2.36667 2.2999 5.80327 2.2999 10C2.2999 14.1967 5.7365 17.6333 9.93324 17.6333C14.13 17.6333 17.5666 14.1967 17.5666 10C17.5666 5.80327 14.13 2.36667 9.93324 2.36667Z",
1960
+ fillRule: "evenodd",
1961
+ clipRule: "evenodd",
1962
+ fill: fill
1963
+ })]
1964
+ });
1965
+ const MinusCircle_ICON_NAME = 'minus-circle';
1966
+ ;// ./src/components/Icon/icons/MinusCircleInverted.tsx
1967
+
1968
+ const MinusCircleInverted = ({
1969
+ fill = '#000',
1970
+ size = 24,
1971
+ tooltip = 'Minus circle inverted',
1972
+ ...props
1973
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1974
+ width: `${size}px`,
1975
+ height: `${size}px`,
1976
+ viewBox: "0 0 20 20",
1977
+ fill: "none",
1978
+ xmlns: "http://www.w3.org/2000/svg",
1979
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1980
+ ...props,
1981
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1982
+ children: tooltip
1983
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1984
+ d: "M1.66663 10C1.66663 5.40835 5.40829 1.66669 9.99996 1.66669C14.5916 1.66669 18.3333 5.40835 18.3333 10C18.3333 14.5917 14.5916 18.3334 9.99996 18.3334C5.40829 18.3334 1.66663 14.5917 1.66663 10ZM5.97496 10C5.97496 10.3417 6.25829 10.625 6.59996 10.625H13.2666C13.6166 10.625 13.8916 10.3417 13.8916 10C13.8916 9.65835 13.6083 9.37502 13.2666 9.37502H6.59996C6.25829 9.37502 5.97496 9.65835 5.97496 10Z",
1985
+ fillRule: "evenodd",
1986
+ clipRule: "evenodd",
1987
+ fill: fill
1988
+ })]
1989
+ });
1990
+ const MinusCircleInverted_ICON_NAME = 'minus-circle-inverted';
1758
1991
  ;// ./src/components/Icon/icons/Cross.tsx
1759
1992
 
1760
1993
  const Cross = ({
@@ -1844,6 +2077,35 @@ const CheckCircle = ({
1844
2077
  })]
1845
2078
  });
1846
2079
  const CheckCircle_ICON_NAME = 'check-circle';
2080
+ ;// ./src/components/Icon/icons/CheckCircleInverted.tsx
2081
+
2082
+ const CheckCircleInverted = ({
2083
+ fill = '#000',
2084
+ size = 24,
2085
+ tooltip = 'Check circle inverted',
2086
+ ...props
2087
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
2088
+ width: `${size}px`,
2089
+ height: `${size}px`,
2090
+ viewBox: "0 0 20 20",
2091
+ fill: "none",
2092
+ xmlns: "http://www.w3.org/2000/svg",
2093
+ ...props,
2094
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
2095
+ children: tooltip
2096
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
2097
+ fillRule: "evenodd",
2098
+ clipRule: "evenodd",
2099
+ d: "M0.966675 10C0.966675 5.03008 5.03008 0.966675 10 0.966675C14.9699 0.966675 19.0333 5.03008 19.0333 10C19.0333 14.9699 14.9699 19.0333 10 19.0333C5.03008 19.0333 0.966675 14.9699 0.966675 10ZM10 2.36667C5.80327 2.36667 2.36667 5.80327 2.36667 10C2.36667 14.1967 5.80327 17.6333 10 17.6333C14.1967 17.6333 17.6333 14.1967 17.6333 10C17.6333 5.80327 14.1967 2.36667 10 2.36667Z",
2100
+ fill: fill
2101
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
2102
+ fillRule: "evenodd",
2103
+ clipRule: "evenodd",
2104
+ d: "M2.36667 10C2.36667 5.80327 5.80327 2.36667 10 2.36667C14.1967 2.36667 17.6333 5.80327 17.6333 10C17.6333 14.1967 14.1967 17.6333 10 17.6333C5.80327 17.6333 2.36667 14.1967 2.36667 10ZM14.037 7.14705C14.3102 7.42066 14.3098 7.86388 14.0362 8.137L9.31117 12.8537C9.03773 13.1266 8.59486 13.1264 8.32166 12.8532L5.96333 10.4949C5.68996 10.2215 5.68996 9.77831 5.96333 9.50495C6.23669 9.23158 6.67991 9.23158 6.95328 9.50495L8.81707 11.3687L13.0471 7.14618C13.3207 6.87305 13.7639 6.87344 14.037 7.14705Z",
2105
+ fill: fill
2106
+ })]
2107
+ });
2108
+ const CheckCircleInverted_ICON_NAME = 'check-circle-inverted';
1847
2109
  ;// ./src/components/Icon/icons/More.tsx
1848
2110
 
1849
2111
  const More = ({
@@ -3443,6 +3705,16 @@ const Report_ICON_NAME = 'report';
3443
3705
 
3444
3706
 
3445
3707
 
3708
+
3709
+
3710
+
3711
+
3712
+
3713
+
3714
+
3715
+
3716
+
3717
+
3446
3718
 
3447
3719
 
3448
3720
 
@@ -3857,16 +4129,16 @@ function Dropdown_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to s
3857
4129
 
3858
4130
 
3859
4131
 
3860
- /**
3861
- * The structure of the component:
3862
- *
3863
- * Dropdown
3864
- * DropdownToggle
3865
- * DropdownOptions
3866
- * DropdownOption
3867
- *
3868
- * Aria attributes are set according to
3869
- * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
4132
+ /**
4133
+ * The structure of the component:
4134
+ *
4135
+ * Dropdown
4136
+ * DropdownToggle
4137
+ * DropdownOptions
4138
+ * DropdownOption
4139
+ *
4140
+ * Aria attributes are set according to
4141
+ * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
3870
4142
  **/
3871
4143
 
3872
4144
  const DropdownBase = /*#__PURE__*/base_default()("div", true ? {
@@ -4970,16 +5242,16 @@ const DropdownPlaceholderLabel = /*#__PURE__*/base_default()("div", true ? {
4970
5242
  styles: "white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
4971
5243
  } : 0);
4972
5244
 
4973
- /**
4974
- * The structure of the component:
4975
- *
4976
- * MultipleDropdown
4977
- * DropdownToggle
4978
- * MultipleDropdownOptions
4979
- * DropdownOption
4980
- *
4981
- * Aria attributes are set according to
4982
- * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
5245
+ /**
5246
+ * The structure of the component:
5247
+ *
5248
+ * MultipleDropdown
5249
+ * DropdownToggle
5250
+ * MultipleDropdownOptions
5251
+ * DropdownOption
5252
+ *
5253
+ * Aria attributes are set according to
5254
+ * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
4983
5255
  **/
4984
5256
  function MultipleDropdownInner({
4985
5257
  selectedItems = [],
@@ -5224,8 +5496,8 @@ const NavToggle = ({
5224
5496
 
5225
5497
 
5226
5498
 
5227
- /**
5228
- * UI Component that shows the navigation bar
5499
+ /**
5500
+ * UI Component that shows the navigation bar
5229
5501
  */
5230
5502
  const NavBar = ({
5231
5503
  items
@@ -5673,8 +5945,8 @@ const PieChartBase = /*#__PURE__*/base_default()("div", true ? {
5673
5945
  const PieChartTextBase = /*#__PURE__*/base_default()("div", true ? {
5674
5946
  target: "eq9zdmm0"
5675
5947
  } : 0)( true ? {
5676
- name: "boy8rj",
5677
- styles: "position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;width:calc(100% - 34px);height:calc(100% - 34px);left:17px;top:17px;border-radius:50%"
5948
+ name: "1e5nn9x",
5949
+ styles: "position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;width:calc(100% - 34px);height:calc(100% - 34px);left:17px;top:17px;border-radius:50%;pointer-events:none"
5678
5950
  } : 0);
5679
5951
  ;// ./src/components/Charts/PieChart/styles.ts
5680
5952
 
@@ -6475,12 +6747,12 @@ const ProgressVertical = ({
6475
6747
  /* harmony default export */ const ProgressVertical_ProgressVertical = (ProgressVertical);
6476
6748
  ;// ./src/components/ResponsiveImage/ResponsiveImage.tsx
6477
6749
 
6478
- /**
6479
- * A simple wrapper over the `<img />` tag.
6480
- *
6481
- * Don't forget to adjust Device Pixel Ratio in DevTools
6482
- * when testing srcSet, and use Hard Reload to force the
6483
- * browser to load an image of another resolution.
6750
+ /**
6751
+ * A simple wrapper over the `<img />` tag.
6752
+ *
6753
+ * Don't forget to adjust Device Pixel Ratio in DevTools
6754
+ * when testing srcSet, and use Hard Reload to force the
6755
+ * browser to load an image of another resolution.
6484
6756
  * */
6485
6757
  const ResponsiveImage = ({
6486
6758
  src,
@@ -6891,12 +7163,12 @@ const TabBarBase = /*#__PURE__*/base_default()("div", true ? {
6891
7163
  target: "e1hg26v10"
6892
7164
  } : 0)( true ? "" : 0);
6893
7165
 
6894
- /**
6895
- * This component doesn't show contents of the selected tab,
6896
- * however it accepts a required `renderContent()` render
6897
- * prop and stores it into the Context. This lets the parent
6898
- * component to decide where to render the contents of the
6899
- * selected tab.
7166
+ /**
7167
+ * This component doesn't show contents of the selected tab,
7168
+ * however it accepts a required `renderContent()` render
7169
+ * prop and stores it into the Context. This lets the parent
7170
+ * component to decide where to render the contents of the
7171
+ * selected tab.
6900
7172
  * */
6901
7173
  const TabBar = ({
6902
7174
  children
@@ -7213,13 +7485,13 @@ const useTooltipContext = () => {
7213
7485
 
7214
7486
 
7215
7487
 
7216
- /*
7217
- * <Tooltip>
7218
- * <TooltipTrigger>
7219
- * <Button />
7220
- * </TooltipTrigger>
7221
- * <TooltipContent>Tooltip</TooltipContent>
7222
- * </Tooltip>
7488
+ /*
7489
+ * <Tooltip>
7490
+ * <TooltipTrigger>
7491
+ * <Button />
7492
+ * </TooltipTrigger>
7493
+ * <TooltipContent>Tooltip</TooltipContent>
7494
+ * </Tooltip>
7223
7495
  * */
7224
7496
  const Tooltip = ({
7225
7497
  children,
@@ -7693,9 +7965,9 @@ var CardList_ref = true ? {
7693
7965
  name: "1fgo50s",
7694
7966
  styles: "list-style:none;padding:0;li{margin-bottom:15px;}"
7695
7967
  } : 0;
7696
- /**
7697
- *
7698
- * UI Component that renders a list of items with a custom render function
7968
+ /**
7969
+ *
7970
+ * UI Component that renders a list of items with a custom render function
7699
7971
  */
7700
7972
  const CardList = ({
7701
7973
  title,
@@ -8565,8 +8837,8 @@ const SCREEN_SIZES = {
8565
8837
 
8566
8838
 
8567
8839
 
8568
- /**
8569
- * UI Component that shows the collapsible navigation bar
8840
+ /**
8841
+ * UI Component that shows the collapsible navigation bar
8570
8842
  */
8571
8843
 
8572
8844
  const CollapsibleNavBar = ({
@@ -9638,6 +9910,135 @@ const DatePickerInner = ({
9638
9910
  const DatePicker = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(DatePickerInner);
9639
9911
  ;// ./src/components/DatePicker/index.ts
9640
9912
 
9913
+ ;// ./src/components/Field/FieldProvider.ts
9914
+
9915
+ const [FieldProvider, useFieldContext] = (0,hooks_namespaceObject.createSafeContext)('useFieldContext must be used within a FieldProvider');
9916
+ ;// ./src/components/Field/FieldRoot.tsx
9917
+
9918
+
9919
+ const FieldRoot = ({
9920
+ children,
9921
+ ...props
9922
+ }) => {
9923
+ const {
9924
+ disabled = false,
9925
+ status = 'basic',
9926
+ forwardFocus = true,
9927
+ ...divProps
9928
+ } = props;
9929
+ return (0,jsx_runtime_namespaceObject.jsx)("div", {
9930
+ ...divProps,
9931
+ children: (0,jsx_runtime_namespaceObject.jsx)(FieldProvider, {
9932
+ value: {
9933
+ disabled,
9934
+ status,
9935
+ forwardFocus
9936
+ },
9937
+ children: children
9938
+ })
9939
+ });
9940
+ };
9941
+ ;// ./src/components/Field/FieldLabel.tsx
9942
+
9943
+
9944
+
9945
+ const FieldLabel = ({
9946
+ children,
9947
+ ...props
9948
+ }) => {
9949
+ const ctx = useFieldContext();
9950
+ return (0,jsx_runtime_namespaceObject.jsx)(Label_Label, {
9951
+ isDisabled: ctx.disabled,
9952
+ ...props,
9953
+ children: children
9954
+ });
9955
+ };
9956
+ ;// ./src/components/Field/FieldControl.tsx
9957
+
9958
+
9959
+
9960
+
9961
+ const FieldControlBase = /*#__PURE__*/base_default()("div", true ? {
9962
+ target: "e1lr2tz0"
9963
+ } : 0)("display:flex;align-items:center;min-height:44px;height:auto;border-radius:8px;overflow:hidden;border:1px solid ", ({
9964
+ status,
9965
+ theme
9966
+ }) => {
9967
+ if (status === 'error') return theme.colors.red;
9968
+ if (status === 'success') return theme.colors.greenLighter;
9969
+ return theme.colors.grey;
9970
+ }, ";background:", ({
9971
+ disabled,
9972
+ theme
9973
+ }) => disabled ? theme.colors.greyLighter : theme.colors.white, ";&>*{background:transparent;}&:active,&:hover{background:", ({
9974
+ disabled,
9975
+ theme
9976
+ }) => disabled ? theme.colors.greyLighter : theme.colors.white, ";box-shadow:none;}&:hover{cursor:", ({
9977
+ disabled
9978
+ }) => disabled ? 'default' : 'pointer', ";}&:focus-within,&:active{border-color:", ({
9979
+ status,
9980
+ disabled,
9981
+ theme
9982
+ }) => {
9983
+ if (disabled) return theme.colors.grey;
9984
+ if (status === 'error') return theme.colors.red;
9985
+ if (status === 'success') return theme.colors.greenLighter;
9986
+ return theme.colors.blueRoyal;
9987
+ }, ";}" + ( true ? "" : 0));
9988
+ const isForwardRefComponent = component => {
9989
+ if (typeof component.type === 'object' && component.type.$$typeof?.toString() === 'Symbol(react.forward_ref)') {
9990
+ return true;
9991
+ }
9992
+ return false;
9993
+ };
9994
+ const FieldControl = /*#__PURE__*/external_react_default().forwardRef(function FieldControl({
9995
+ children,
9996
+ controlRef,
9997
+ ...props
9998
+ }, ref) {
9999
+ const ctx = useFieldContext();
10000
+ const baseProps = {
10001
+ ...props,
10002
+ ...ctx
10003
+ };
10004
+ const internalRef = (0,external_react_namespaceObject.useRef)(null);
10005
+ let _children = typeof children === 'function' ? children(ctx) : children;
10006
+ if (ctx.forwardFocus && /*#__PURE__*/(0,external_react_namespaceObject.isValidElement)(_children) && isForwardRefComponent(_children)) {
10007
+ const setRef = defaultRef => element => {
10008
+ internalRef.current = element;
10009
+ if (defaultRef) {
10010
+ if (typeof defaultRef === 'function') {
10011
+ defaultRef(element);
10012
+ } else {
10013
+ defaultRef.current = element;
10014
+ }
10015
+ }
10016
+ };
10017
+ _children = /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(_children, {
10018
+ ref: setRef(children.ref)
10019
+ });
10020
+ }
10021
+ return (0,jsx_runtime_namespaceObject.jsx)(FieldControlBase, {
10022
+ ...baseProps,
10023
+ ref: ref,
10024
+ onClick: event => {
10025
+ baseProps.onClick?.(event);
10026
+ if (controlRef) {
10027
+ controlRef.current?.focus?.();
10028
+ } else if (internalRef.current) {
10029
+ internalRef.current?.focus?.();
10030
+ }
10031
+ },
10032
+ children: _children
10033
+ });
10034
+ });
10035
+ ;// ./src/components/Field/index.ts
10036
+
10037
+
10038
+
10039
+
10040
+
10041
+
9641
10042
  ;// ./src/components/TableFilters/styles.ts
9642
10043
  function TableFilters_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9643
10044
 
@@ -10540,6 +10941,522 @@ const Filters = ({
10540
10941
  };
10541
10942
  ;// ./src/components/Filters/index.ts
10542
10943
 
10944
+ ;// ./src/components/Field/FieldDescription.tsx
10945
+
10946
+
10947
+
10948
+ const FieldDescription = ({
10949
+ children
10950
+ }) => {
10951
+ const ctx = useFieldContext();
10952
+ if (ctx.status !== 'basic') {
10953
+ return null;
10954
+ }
10955
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10956
+ status: "basic",
10957
+ children: children
10958
+ });
10959
+ };
10960
+ ;// ./src/components/Field/FieldError.tsx
10961
+
10962
+
10963
+
10964
+ const FieldError = ({
10965
+ children
10966
+ }) => {
10967
+ const ctx = useFieldContext();
10968
+ if (ctx.status !== 'error') {
10969
+ return null;
10970
+ }
10971
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10972
+ status: "error",
10973
+ children: children
10974
+ });
10975
+ };
10976
+ ;// ./src/components/Field/FieldSuccess.tsx
10977
+
10978
+
10979
+
10980
+ const FieldSuccess = ({
10981
+ children
10982
+ }) => {
10983
+ const ctx = useFieldContext();
10984
+ if (ctx.status !== 'success') {
10985
+ return null;
10986
+ }
10987
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10988
+ status: "success",
10989
+ children: children
10990
+ });
10991
+ };
10992
+ ;// ./src/components/FiltersMultiSelect/useFiltersMultiSelect.tsx
10993
+
10994
+ function useFilterMultiSelect({
10995
+ opened,
10996
+ defaultOpened,
10997
+ selectedFilters,
10998
+ defaultSelectedFilters,
10999
+ search,
11000
+ defaultSearch,
11001
+ onChange,
11002
+ onOpenedChange,
11003
+ onDropdownClose,
11004
+ onDropdownOpen,
11005
+ onSearchChange
11006
+ } = {}) {
11007
+ const [_opened, setOpened] = (0,hooks_namespaceObject.useUncontrolled)({
11008
+ value: opened,
11009
+ defaultValue: defaultOpened,
11010
+ finalValue: false,
11011
+ onChange: onOpenedChange
11012
+ });
11013
+ const [_selectedFilters, setSelectedFilters] = (0,hooks_namespaceObject.useUncontrolled)({
11014
+ value: selectedFilters,
11015
+ defaultValue: defaultSelectedFilters,
11016
+ finalValue: [],
11017
+ onChange
11018
+ });
11019
+ const [_search, setSearch] = (0,hooks_namespaceObject.useUncontrolled)({
11020
+ value: search,
11021
+ defaultValue: defaultSearch,
11022
+ finalValue: '',
11023
+ onChange: onSearchChange
11024
+ });
11025
+ const toggleDropdown = open => {
11026
+ const _open = open ?? !_opened;
11027
+ setOpened(_open);
11028
+ if (_open) {
11029
+ onDropdownOpen?.();
11030
+ } else {
11031
+ onDropdownClose?.();
11032
+ }
11033
+ };
11034
+ const selectFilters = (...filters) => {
11035
+ const filtersArray = Array.isArray(filters) ? filters : [filters];
11036
+ const newFilters = [..._selectedFilters];
11037
+ filtersArray.forEach(filter => {
11038
+ const index = newFilters.findIndex(f => f.id === filter.id);
11039
+ if (index === -1) {
11040
+ newFilters.push(filter);
11041
+ } else if (newFilters[index].type !== filter.type) {
11042
+ newFilters[index] = filter;
11043
+ }
11044
+ });
11045
+ setSelectedFilters(newFilters);
11046
+ };
11047
+ const unselectFilters = (...filters) => {
11048
+ const filtersArray = Array.isArray(filters) ? filters : [filters];
11049
+ const newFilters = _selectedFilters.filter(f => !filtersArray.includes(f));
11050
+ setSelectedFilters(newFilters);
11051
+ };
11052
+ const isSelected = id => _selectedFilters.find(f => f.id === id);
11053
+ return {
11054
+ opened: _opened,
11055
+ selectedFilters: _selectedFilters,
11056
+ search: _search,
11057
+ toggleDropdown,
11058
+ selectFilters,
11059
+ unselectFilters,
11060
+ isSelected,
11061
+ setSearch
11062
+ };
11063
+ }
11064
+ ;// ./src/components/FiltersMultiSelect/FiltersMultiSelectProvider.tsx
11065
+
11066
+ const [FiltersMultiSelectProvider, useFiltersMultiSelectContext] = (0,hooks_namespaceObject.createSafeContext)('useFiltersMultiSelect must be used within a FiltersMultiSelectProvider');
11067
+ ;// ./src/components/FiltersMultiSelect/components/FilterBadge.tsx
11068
+
11069
+
11070
+
11071
+
11072
+
11073
+ const FilterBadge = ({
11074
+ type,
11075
+ disabled,
11076
+ className,
11077
+ withRemoveButton,
11078
+ onRemove,
11079
+ children
11080
+ }) => {
11081
+ const theme = (0,react_namespaceObject.useTheme)();
11082
+ const colors = {
11083
+ include: {
11084
+ light: theme.colors.greenLighter,
11085
+ main: theme.colors.green,
11086
+ text: theme.colors.greenDark
11087
+ },
11088
+ exclude: {
11089
+ light: theme.colors.redLighter,
11090
+ main: theme.colors.red,
11091
+ text: theme.colors.redDark
11092
+ },
11093
+ group: {
11094
+ light: theme.colors.blueLighter,
11095
+ main: theme.colors.blue,
11096
+ text: theme.colors.blue
11097
+ }
11098
+ };
11099
+ const mixTarget = disabled ? theme.colors.greyLighter : theme.colors.white;
11100
+ const mixIfDisabled = color => disabled ? `color-mix(in srgb, ${color}, ${mixTarget})` : color;
11101
+ return (0,jsx_runtime_namespaceObject.jsxs)(Badge_Badge, {
11102
+ className: className,
11103
+ "data-filter-type": type,
11104
+ css: /*#__PURE__*/(0,react_namespaceObject.css)("cursor:default;font-weight:500;font-size:14px;display:flex;align-items:center;gap:10px;padding:0 12px;height:32px;border-radius:24px;border:1px solid transparent;box-shadow:none;background:linear-gradient(\n 295.98deg,\n color-mix(in srgb, ", colors[type].light, " 6%, ", mixTarget, ") 16.38%,\n color-mix(in srgb, ", colors[type].main, " 6%, ", mixTarget, ") 83.62%\n ) padding-box,linear-gradient(\n 295.98deg,\n ", mixIfDisabled(colors[type].light), " 16.38%,\n ", mixIfDisabled(colors[type].main), " 83.62%\n ) border-box;color:", mixIfDisabled(colors[type].text), ";& svg{path{stroke:", mixIfDisabled(colors[type].text), ";stroke-width:1;}}" + ( true ? "" : 0), true ? "" : 0),
11105
+ children: [children, withRemoveButton && (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
11106
+ variant: "tertiary",
11107
+ isDisabled: disabled,
11108
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
11109
+ padding: 0,
11110
+ cursor: disabled ? 'default' : 'pointer'
11111
+ }, true ? "" : 0, true ? "" : 0),
11112
+ onClick: e => {
11113
+ e.stopPropagation();
11114
+ onRemove?.();
11115
+ },
11116
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11117
+ name: "cross",
11118
+ role: "button",
11119
+ size: 12
11120
+ })
11121
+ })]
11122
+ });
11123
+ };
11124
+ ;// ./src/components/FiltersMultiSelect/components/FiltersMultiSelectEmpty.tsx
11125
+
11126
+ function FiltersMultiSelectEmpty_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11127
+
11128
+ const FiltersMultiSelectEmptyBase = /*#__PURE__*/base_default()("div", true ? {
11129
+ target: "e1ldbojn0"
11130
+ } : 0)( true ? {
11131
+ name: "var55v",
11132
+ styles: "padding:12px;text-align:center;font-weight:500;font-size:13.33px"
11133
+ } : 0);
11134
+ const FiltersMultiSelectEmpty = ({
11135
+ children,
11136
+ ...props
11137
+ }) => (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiSelectEmptyBase, {
11138
+ ...props,
11139
+ children: children
11140
+ });
11141
+ ;// ./src/components/FiltersMultiSelect/FiltersMultiSelect.tsx
11142
+
11143
+ function FiltersMultiSelect_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11144
+
11145
+
11146
+
11147
+
11148
+
11149
+
11150
+
11151
+
11152
+
11153
+
11154
+
11155
+
11156
+
11157
+
11158
+ var FiltersMultiSelect_ref = true ? {
11159
+ name: "w1nxbg",
11160
+ styles: "padding:6px 14px"
11161
+ } : 0;
11162
+ var FiltersMultiSelect_ref2 = true ? {
11163
+ name: "1a5utpy",
11164
+ styles: "gap:8px;flex-wrap:wrap;flex-grow:1"
11165
+ } : 0;
11166
+ var FiltersMultiSelect_ref3 = true ? {
11167
+ name: "chpy5q",
11168
+ styles: "with:auto;border:0 !important;padding:2px 0;height:32px;border-radius:0"
11169
+ } : 0;
11170
+ var FiltersMultiSelect_ref4 = true ? {
11171
+ name: "2f908b",
11172
+ styles: "& path{stroke-width:1;}"
11173
+ } : 0;
11174
+ var FiltersMultiSelect_ref5 = true ? {
11175
+ name: "1d3w5wq",
11176
+ styles: "width:100%"
11177
+ } : 0;
11178
+ const FiltersMultiSelect = ({
11179
+ children,
11180
+ description,
11181
+ disabled,
11182
+ emptyNode: controlledEmptyNode,
11183
+ error,
11184
+ icon,
11185
+ inputProps,
11186
+ label,
11187
+ placeholder,
11188
+ searchable = true,
11189
+ selectedFilters: controlledSelectedFilters,
11190
+ status,
11191
+ store: controlledStore,
11192
+ success,
11193
+ badgeClassName,
11194
+ inputClassName,
11195
+ wrapperClassName,
11196
+ onChange,
11197
+ register
11198
+ }) => {
11199
+ const id = (0,external_react_namespaceObject.useId)();
11200
+ const [wrapperRef] = (0,hooks_namespaceObject.useResizeObserver)();
11201
+ const inputRef = (0,external_react_namespaceObject.useRef)(null);
11202
+ const uncontrolledStore = useFilterMultiSelect({
11203
+ selectedFilters: controlledSelectedFilters,
11204
+ onChange
11205
+ });
11206
+ const store = controlledStore || uncontrolledStore;
11207
+ const {
11208
+ selectedFilters
11209
+ } = store;
11210
+ const emptyNode = controlledEmptyNode || (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiSelectEmpty, {
11211
+ children: "No Items Found"
11212
+ });
11213
+ return (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiSelectProvider, {
11214
+ value: {
11215
+ store,
11216
+ emptyNode
11217
+ },
11218
+ children: (0,jsx_runtime_namespaceObject.jsxs)(FieldRoot, {
11219
+ disabled: disabled,
11220
+ status: status,
11221
+ children: [label && (0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
11222
+ htmlFor: `formElement-search-${id}`,
11223
+ children: label
11224
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldControl, {
11225
+ controlRef: inputRef,
11226
+ children: (0,jsx_runtime_namespaceObject.jsxs)(Popover, {
11227
+ floatingOptions: {
11228
+ onOpenChange: (open, event, reason) => {
11229
+ if (disabled) return;
11230
+ if (reason === 'click' && event?.target === wrapperRef.current || ['outside-press', 'escape-key'].includes(reason || '')) {
11231
+ store.toggleDropdown(open);
11232
+ }
11233
+ },
11234
+ open: store.opened
11235
+ },
11236
+ children: [(0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
11237
+ asChild: true,
11238
+ children: (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
11239
+ css: FiltersMultiSelect_ref,
11240
+ ref: wrapperRef,
11241
+ className: wrapperClassName,
11242
+ children: [(0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
11243
+ css: FiltersMultiSelect_ref2,
11244
+ children: [icon, selectedFilters.map(filter => (0,jsx_runtime_namespaceObject.jsx)(FilterBadge, {
11245
+ className: badgeClassName,
11246
+ type: filter.type,
11247
+ disabled: disabled,
11248
+ withRemoveButton: true,
11249
+ onRemove: () => store.unselectFilters(filter),
11250
+ children: filter.label
11251
+ }, filter.id)), searchable && (0,jsx_runtime_namespaceObject.jsx)(Input_Input, {
11252
+ className: inputClassName,
11253
+ name: `search-${id}`,
11254
+ register: register,
11255
+ placeholder: placeholder,
11256
+ disabled: disabled,
11257
+ status: "custom",
11258
+ inputProps: {
11259
+ onChange: e => store.setSearch(e.target.value),
11260
+ onFocus: () => store.toggleDropdown(true),
11261
+ onKeyUp: e => {
11262
+ if (e.key === 'Escape') {
11263
+ inputRef.current?.blur();
11264
+ }
11265
+ },
11266
+ autoComplete: 'off',
11267
+ ...inputProps
11268
+ },
11269
+ ref: inputRef,
11270
+ wrapperClassName: /*#__PURE__*/(0,css_namespaceObject.css)( true ? {
11271
+ name: "1sblf6",
11272
+ styles: "width:auto!important;flex-grow:1"
11273
+ } : 0),
11274
+ css: FiltersMultiSelect_ref3
11275
+ })]
11276
+ }), (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
11277
+ "data-testid": "clear-all-filters",
11278
+ variant: "tertiary",
11279
+ isDisabled: disabled,
11280
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
11281
+ height: '32px',
11282
+ display: disabled || !store.selectedFilters.length ? 'none' : 'inline-flex',
11283
+ cursor: disabled ? 'default' : 'pointer'
11284
+ }, true ? "" : 0, true ? "" : 0),
11285
+ onClick: () => store.unselectFilters(...store.selectedFilters),
11286
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11287
+ name: "cross",
11288
+ role: "button",
11289
+ size: 12,
11290
+ css: FiltersMultiSelect_ref4
11291
+ })
11292
+ }), store.opened ? (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11293
+ name: "carrot-up",
11294
+ size: 12
11295
+ }) : (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11296
+ name: "carrot-down",
11297
+ size: 12
11298
+ })]
11299
+ })
11300
+ }), (0,jsx_runtime_namespaceObject.jsx)(PopoverContent, {
11301
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
11302
+ width: wrapperRef.current?.clientWidth,
11303
+ zIndex: 100
11304
+ }, true ? "" : 0, true ? "" : 0),
11305
+ isFocusManagerDisabled: true,
11306
+ children: (0,jsx_runtime_namespaceObject.jsx)(PopoverDescription, {
11307
+ css: FiltersMultiSelect_ref5,
11308
+ children: children
11309
+ })
11310
+ })]
11311
+ })
11312
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldDescription, {
11313
+ children: description
11314
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldError, {
11315
+ children: error
11316
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldSuccess, {
11317
+ children: success
11318
+ })]
11319
+ })
11320
+ });
11321
+ };
11322
+ ;// ./src/components/FiltersMultiSelect/components/FiltersMultiSelectOption.tsx
11323
+
11324
+ function FiltersMultiSelectOption_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11325
+
11326
+
11327
+
11328
+
11329
+
11330
+ const FiltersMultiSelectOptionBase = /*#__PURE__*/base_default()("div", true ? {
11331
+ target: "e1a919p41"
11332
+ } : 0)("padding:12px;height:42px;font-weight:500;font-size:13.33px;display:flex;align-items:center;justify-content:space-between;&:hover{background:", ({
11333
+ theme
11334
+ }) => theme.colors.blueRoyal6, ";}" + ( true ? "" : 0));
11335
+ const FilterButton = /*#__PURE__*/base_default()(Button_Button, true ? {
11336
+ target: "e1a919p40"
11337
+ } : 0)( true ? {
11338
+ name: "hgien2",
11339
+ styles: "padding:0 4px;&:not(:disabled):hover{svg{path{stroke-width:2;}}}"
11340
+ } : 0);
11341
+ var FiltersMultiSelectOption_ref = true ? {
11342
+ name: "1eoy87d",
11343
+ styles: "display:flex;justify-content:space-between"
11344
+ } : 0;
11345
+ const FiltersMultiSelectOption = ({
11346
+ filter,
11347
+ children,
11348
+ selected
11349
+ }) => {
11350
+ const theme = (0,react_namespaceObject.useTheme)();
11351
+ const {
11352
+ store
11353
+ } = useFiltersMultiSelectContext();
11354
+ const {
11355
+ id,
11356
+ label,
11357
+ group
11358
+ } = filter;
11359
+ const selectedFilter = store.isSelected(filter.id);
11360
+ const selectFilters = type => {
11361
+ store.selectFilters({
11362
+ id,
11363
+ label,
11364
+ type
11365
+ });
11366
+ };
11367
+ const getIconName = type => {
11368
+ let iconName;
11369
+ switch (type) {
11370
+ case 'group':
11371
+ iconName = 'check-circle';
11372
+ break;
11373
+ case 'include':
11374
+ iconName = 'plus-circle';
11375
+ break;
11376
+ case 'exclude':
11377
+ iconName = 'minus-circle';
11378
+ break;
11379
+ }
11380
+ if (selectedFilter?.type === type) {
11381
+ iconName += '-inverted';
11382
+ }
11383
+ return iconName;
11384
+ };
11385
+ const Controls = () => (0,jsx_runtime_namespaceObject.jsx)("div", {
11386
+ css: FiltersMultiSelectOption_ref,
11387
+ children: group ? (0,jsx_runtime_namespaceObject.jsx)(FilterButton, {
11388
+ variant: "tertiary",
11389
+ isDisabled: selectedFilter?.type === 'group',
11390
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11391
+ name: getIconName('group'),
11392
+ color: theme.colors.blue,
11393
+ size: 20,
11394
+ tooltip: "Add filter group"
11395
+ }),
11396
+ onClick: () => selectFilters('group')
11397
+ }) : (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
11398
+ children: [(0,jsx_runtime_namespaceObject.jsx)(FilterButton, {
11399
+ variant: "tertiary",
11400
+ isDisabled: selectedFilter?.type === 'include',
11401
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11402
+ name: getIconName('include'),
11403
+ color: theme.colors.greenDark,
11404
+ size: 20,
11405
+ tooltip: "Add include filter"
11406
+ }),
11407
+ onClick: () => selectFilters('include')
11408
+ }), (0,jsx_runtime_namespaceObject.jsx)(FilterButton, {
11409
+ variant: "tertiary",
11410
+ isDisabled: selectedFilter?.type === 'exclude',
11411
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11412
+ name: getIconName('exclude'),
11413
+ color: theme.colors.redDark,
11414
+ size: 20,
11415
+ tooltip: "Add exclude filter"
11416
+ }),
11417
+ onClick: () => selectFilters('exclude')
11418
+ })]
11419
+ })
11420
+ });
11421
+ return (0,jsx_runtime_namespaceObject.jsxs)(FiltersMultiSelectOptionBase, {
11422
+ "aria-selected": selected ?? !!selectedFilter,
11423
+ role: "option",
11424
+ children: [(0,jsx_runtime_namespaceObject.jsx)("span", {
11425
+ css: true,
11426
+ children: children
11427
+ }), (0,jsx_runtime_namespaceObject.jsx)(Controls, {})]
11428
+ });
11429
+ };
11430
+ ;// ./src/components/FiltersMultiSelect/components/FiltersMultiSelectOptions.tsx
11431
+
11432
+
11433
+
11434
+
11435
+ const FiltersMultiselectOptionsBase = /*#__PURE__*/base_default()("div", true ? {
11436
+ target: "e4b1h580"
11437
+ } : 0)("display:flex;flex-direction:column;background:", ({
11438
+ theme
11439
+ }) => theme.colors.white, ";border-radius:8px;overflow:hidden;box-shadow:-4px 4px 14px 0 ", ({
11440
+ theme
11441
+ }) => theme.colors.greyDarker14, ";" + ( true ? "" : 0));
11442
+ const FiltersMultiSelectOptions = ({
11443
+ children,
11444
+ ...props
11445
+ }) => {
11446
+ const ctx = useFiltersMultiSelectContext();
11447
+ const childrenArray = external_react_default().Children.toArray(children).filter(Boolean);
11448
+ return (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiselectOptionsBase, {
11449
+ role: "listbox",
11450
+ ...props,
11451
+ children: childrenArray.length ? childrenArray : ctx.emptyNode
11452
+ });
11453
+ };
11454
+ ;// ./src/components/FiltersMultiSelect/index.ts
11455
+
11456
+
11457
+
11458
+
11459
+
10543
11460
  ;// ./src/components/Icon/index.ts
10544
11461
 
10545
11462
 
@@ -11643,62 +12560,79 @@ const LegendItem = ({
11643
12560
  ;// ./src/components/Charts/SegmentedPieChart/hooks/useData.ts
11644
12561
 
11645
12562
 
12563
+
11646
12564
  const useData = ({
11647
12565
  data,
11648
12566
  pieChartColors = defaultPieChartColors,
11649
- legendValueRoundingDigits
12567
+ legendValueRoundingDigits,
12568
+ legendBackgrounds
11650
12569
  }) => {
11651
- let calculatedTotalAmount = 0;
11652
- const dataLocal = Array.isArray(data) ? data : [];
11653
- const pieChartColorsLocal = Array.isArray(pieChartColors) ? pieChartColors : [[]];
11654
- dataLocal?.forEach(item => {
11655
- calculatedTotalAmount += Number(item.value);
11656
- });
12570
+ const {
12571
+ isFullscreenMode
12572
+ } = useFullscreenMode();
12573
+ const safeData = Array.isArray(data) ? data : [];
12574
+ const safeColors = Array.isArray(pieChartColors) ? pieChartColors : [[]];
12575
+ const totalAmount = safeData.reduce((acc, item) => acc + Number(item.value), 0);
12576
+ const getRoundingDigits = item => (0,utils_namespaceObject.propOr)(legendValueRoundingDigits, 'legendValueRoundingDigits')(item);
11657
12577
  const balanceDataForTheGraph = [];
11658
12578
  const balanceDataForTheLegend = [];
11659
- dataLocal?.forEach((item, itemIndex) => {
11660
- const mainPercentage = Number(item.value) * 100 / calculatedTotalAmount;
11661
- const newMainItem = {
11662
- value: item.value,
12579
+ safeData.forEach((item, itemIndex) => {
12580
+ const mainValue = Number(item.value);
12581
+ const mainPercentage = totalAmount ? mainValue * 100 / totalAmount : 0;
12582
+ const mainSlice = {
12583
+ value: mainValue,
11663
12584
  label: item.label,
11664
12585
  percentage: mainPercentage,
11665
12586
  mainId: Number(item.id),
11666
- mainValue: item.value,
12587
+ mainValue,
11667
12588
  legendLabel: item.legendLabel,
11668
12589
  legendValue: item.legendValue,
11669
- legendValueRoundingDigits: (0,utils_namespaceObject.propOr)(legendValueRoundingDigits, 'legendValueRoundingDigits')(item),
11670
- color: pieChartColorsLocal?.[itemIndex]?.[0],
12590
+ legendValueRoundingDigits: getRoundingDigits(item),
12591
+ color: safeColors?.[itemIndex]?.[0],
11671
12592
  id: `${itemIndex}0`
11672
12593
  };
11673
- balanceDataForTheLegend.push(newMainItem);
11674
- if (item.parts?.length) {
11675
- item.parts?.filter(part => !!part.value).forEach((part, partIndex) => {
11676
- const partPercentage = part.value * 100 / calculatedTotalAmount;
11677
- balanceDataForTheGraph.push({
11678
- value: part.value,
11679
- label: item.label,
11680
- percentage: mainPercentage,
11681
- mainId: Number(item.id),
11682
- mainValue: item.value,
11683
- legendLabel: item.legendLabel,
11684
- legendValue: item.legendValue,
11685
- legendValueRoundingDigits: (0,utils_namespaceObject.propOr)(legendValueRoundingDigits, 'legendValueRoundingDigits')(item),
11686
- color: pieChartColorsLocal?.[itemIndex]?.[partIndex],
11687
- id: `${itemIndex}${partIndex}`,
11688
- partIndex,
11689
- partLabel: part.label,
11690
- partPercentage: Number(partPercentage),
11691
- partValue: part.value,
11692
- partLegendValue: part.legendValue
11693
- });
11694
- });
12594
+ const partedSlices = (item.parts || []).filter(part => !!part.value).map((part, partIndex) => {
12595
+ const partValue = Number(part.value);
12596
+ const partPercentage = totalAmount ? partValue * 100 / totalAmount : 0;
12597
+ return {
12598
+ value: partValue,
12599
+ label: `${item.label}, ${part.label}`,
12600
+ percentage: partPercentage,
12601
+ mainId: Number(item.id),
12602
+ mainValue: Number(item.value),
12603
+ legendLabel: item.legendLabel,
12604
+ legendValue: part.legendValue,
12605
+ legendValueRoundingDigits: getRoundingDigits(item),
12606
+ color: safeColors?.[itemIndex]?.[partIndex],
12607
+ id: `${itemIndex}${partIndex}`,
12608
+ partIndex,
12609
+ partLabel: part.label,
12610
+ partPercentage,
12611
+ partValue,
12612
+ partLegendValue: part.legendValue
12613
+ };
12614
+ });
12615
+ if (partedSlices.length) {
12616
+ balanceDataForTheGraph.push(...partedSlices);
12617
+ } else {
12618
+ balanceDataForTheGraph.push(mainSlice);
12619
+ }
12620
+ if (isFullscreenMode && partedSlices.length) {
12621
+ balanceDataForTheLegend.push(...partedSlices);
11695
12622
  } else {
11696
- balanceDataForTheGraph.push(newMainItem);
12623
+ balanceDataForTheLegend.push(mainSlice);
11697
12624
  }
11698
12625
  });
12626
+ let legendColors;
12627
+ if (isFullscreenMode) {
12628
+ legendColors = balanceDataForTheLegend.map(item => item.color);
12629
+ } else {
12630
+ legendColors = legendBackgrounds || [];
12631
+ }
11699
12632
  return {
11700
12633
  balanceDataForTheGraph,
11701
- balanceDataForTheLegend
12634
+ balanceDataForTheLegend,
12635
+ legendColors
11702
12636
  };
11703
12637
  };
11704
12638
  ;// ./src/components/Charts/SegmentedPieChart/SegmentedPieChart.tsx
@@ -11710,6 +12644,7 @@ function SegmentedPieChart_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have t
11710
12644
 
11711
12645
 
11712
12646
 
12647
+
11713
12648
  var SegmentedPieChart_ref = true ? {
11714
12649
  name: "1h72o96",
11715
12650
  styles: "h6{font-weight:700;}"
@@ -11718,11 +12653,7 @@ var SegmentedPieChart_ref2 = true ? {
11718
12653
  name: "fddz1h",
11719
12654
  styles: "width:10px;height:10px"
11720
12655
  } : 0;
11721
- var SegmentedPieChart_ref3 = true ? {
11722
- name: "14q9ynm",
11723
- styles: "width:400px;margin:40px 120px"
11724
- } : 0;
11725
- const SegmentedPieChart = ({
12656
+ const SegmentedPieChartComponent = ({
11726
12657
  data,
11727
12658
  pieChartProps,
11728
12659
  pieChartLegendProps,
@@ -11741,13 +12672,18 @@ const SegmentedPieChart = ({
11741
12672
  renderTitleTooltipContent
11742
12673
  }) => {
11743
12674
  const theme = (0,react_namespaceObject.useTheme)();
12675
+ const {
12676
+ isFullscreenMode
12677
+ } = useFullscreenMode();
11744
12678
  const {
11745
12679
  balanceDataForTheGraph,
11746
- balanceDataForTheLegend
12680
+ balanceDataForTheLegend,
12681
+ legendColors
11747
12682
  } = useData({
11748
12683
  data,
11749
12684
  legendValueRoundingDigits,
11750
- pieChartColors
12685
+ pieChartColors,
12686
+ legendBackgrounds
11751
12687
  });
11752
12688
  return (0,jsx_runtime_namespaceObject.jsx)(SegmentedPieChartProvider, {
11753
12689
  legendPercentageRoundingDigits: legendPercentageRoundingDigits,
@@ -11761,10 +12697,16 @@ const SegmentedPieChart = ({
11761
12697
  currency: currency,
11762
12698
  renderTitleTooltipContent: renderTitleTooltipContent,
11763
12699
  tooltipConfig: tooltipConfig,
11764
- children: (0,jsx_runtime_namespaceObject.jsx)(PieChart, {
12700
+ children: (0,jsx_runtime_namespaceObject.jsx)(PieChartComponent, {
11765
12701
  data: balanceDataForTheGraph,
11766
12702
  animate: true,
11767
- css: SegmentedPieChart_ref3,
12703
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
12704
+ ...(isFullscreenMode ? {
12705
+ padding: '20px'
12706
+ } : {
12707
+ margin: '40px 120px'
12708
+ })
12709
+ }, true ? "" : 0, true ? "" : 0),
11768
12710
  isInteractive: true,
11769
12711
  activeInnerRadiusOffset: 0,
11770
12712
  activeOuterRadiusOffset: 0,
@@ -11775,7 +12717,7 @@ const SegmentedPieChart = ({
11775
12717
  ...pieChartProps,
11776
12718
  children: (0,jsx_runtime_namespaceObject.jsx)(PieChartLegend, {
11777
12719
  data: balanceDataForTheLegend,
11778
- backgroundColors: legendBackgrounds,
12720
+ backgroundColors: legendColors,
11779
12721
  renderValue: props => (0,jsx_runtime_namespaceObject.jsx)(LegendItem, {
11780
12722
  ...props,
11781
12723
  legendValueRoundingDigits: props.legendValueRoundingDigits
@@ -11788,6 +12730,7 @@ const SegmentedPieChart = ({
11788
12730
  })
11789
12731
  });
11790
12732
  };
12733
+ const SegmentedPieChart = WithFullscreenMode(SegmentedPieChartComponent);
11791
12734
  ;// ./src/components/Charts/SegmentedPieChart/index.ts
11792
12735
 
11793
12736
  ;// ./src/components/Charts/BarLineComplexChart/colorPalette.ts
@@ -12270,29 +13213,29 @@ const BarLineComplexChartView = ({
12270
13213
  debouncedFn();
12271
13214
  };
12272
13215
  const handleHover = () => {
12273
- /**
12274
- * Show tooltip on hover
12275
- * event: Readonly<Plotly.PlotHoverEvent>
12276
- * - event = {}
12277
- * - points:
12278
- * Array<{
12279
- * bbox: { x0: number; x1: number; y0: number; y1: number; };
12280
- * curveNumber: number;
12281
- * data: Plotly.Data;
12282
- * fullData: Plotly.Data;
12283
- * label: number;
12284
- * pointIndex: number;
12285
- * pointNumber: number;
12286
- * value: number;
12287
- * x: number;
12288
- * y: number;
12289
- * xaxis: string;
12290
- * yaxis: string;
12291
- * }>
12292
- * - xaxes: Array<{}>
12293
- * - xvals: Array<number>
12294
- * - yaxes: Array<{}>
12295
- * - yvals: Array<number>
13216
+ /**
13217
+ * Show tooltip on hover
13218
+ * event: Readonly<Plotly.PlotHoverEvent>
13219
+ * - event = {}
13220
+ * - points:
13221
+ * Array<{
13222
+ * bbox: { x0: number; x1: number; y0: number; y1: number; };
13223
+ * curveNumber: number;
13224
+ * data: Plotly.Data;
13225
+ * fullData: Plotly.Data;
13226
+ * label: number;
13227
+ * pointIndex: number;
13228
+ * pointNumber: number;
13229
+ * value: number;
13230
+ * x: number;
13231
+ * y: number;
13232
+ * xaxis: string;
13233
+ * yaxis: string;
13234
+ * }>
13235
+ * - xaxes: Array<{}>
13236
+ * - xvals: Array<number>
13237
+ * - yaxes: Array<{}>
13238
+ * - yvals: Array<number>
12296
13239
  */
12297
13240
  setIsOpen(false);
12298
13241
  };
@@ -13468,14 +14411,14 @@ var Typeahead_ref = true ? {
13468
14411
  name: "1d3w5wq",
13469
14412
  styles: "width:100%"
13470
14413
  } : 0;
13471
- /**
13472
- * The structure of the component:
13473
- * - TypeaheadTrigger
13474
- * - TypeaheadOptions
13475
- * - FormHelperText
13476
- *
13477
- * Aria attributes are set according to
13478
- * https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
14414
+ /**
14415
+ * The structure of the component:
14416
+ * - TypeaheadTrigger
14417
+ * - TypeaheadOptions
14418
+ * - FormHelperText
14419
+ *
14420
+ * Aria attributes are set according to
14421
+ * https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
13479
14422
  **/
13480
14423
  const Typeahead = ({
13481
14424
  name = 'typeahead-search',
@@ -13906,6 +14849,8 @@ const WithVisibleUpToLG = (Component, styles) => {
13906
14849
 
13907
14850
 
13908
14851
 
14852
+
14853
+
13909
14854
 
13910
14855
 
13911
14856