@ssa-ui-kit/core 2.0.0 → 2.1.1

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/dist/components/Badge/Badge.d.ts +1 -1
  2. package/dist/components/Button/fixtures.d.ts +8 -8
  3. package/dist/components/Charts/PieChart/PieChart.d.ts +1 -0
  4. package/dist/components/Charts/PieChart/PieChartLegendMarker.d.ts +1 -1
  5. package/dist/components/Charts/SegmentedPieChart/SegmentedPieChart.d.ts +5 -1
  6. package/dist/components/Charts/SegmentedPieChart/hooks/useData.d.ts +2 -1
  7. package/dist/components/Field/FieldControl.d.ts +7 -0
  8. package/dist/components/Field/FieldDescription.d.ts +4 -0
  9. package/dist/components/Field/FieldError.d.ts +4 -0
  10. package/dist/components/Field/FieldLabel.d.ts +5 -0
  11. package/dist/components/Field/FieldProvider.d.ts +16 -0
  12. package/dist/components/Field/FieldRoot.d.ts +6 -0
  13. package/dist/components/Field/FieldSuccess.d.ts +4 -0
  14. package/dist/components/Field/index.d.ts +5 -0
  15. package/dist/components/Field/index.parts.d.ts +6 -0
  16. package/dist/components/FiltersMultiSelect/FiltersMultiSelect.d.ts +24 -0
  17. package/dist/components/FiltersMultiSelect/FiltersMultiSelectProvider.d.ts +9 -0
  18. package/dist/components/FiltersMultiSelect/components/FilterBadge.d.ts +11 -0
  19. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectEmpty.d.ts +5 -0
  20. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectOption.d.ts +7 -0
  21. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectOptions.d.ts +4 -0
  22. package/dist/components/FiltersMultiSelect/index.d.ts +5 -0
  23. package/dist/components/FiltersMultiSelect/useFiltersMultiSelect.d.ts +32 -0
  24. package/dist/components/Icon/icons/CheckCircleInverted.d.ts +3 -0
  25. package/dist/components/Icon/icons/MinusCircle.d.ts +3 -0
  26. package/dist/components/Icon/icons/MinusCircleInverted.d.ts +3 -0
  27. package/dist/components/Icon/icons/PlusCircle.d.ts +3 -0
  28. package/dist/components/Icon/icons/PlusCircleInverted.d.ts +3 -0
  29. package/dist/components/Icon/icons/all.d.ts +5 -0
  30. package/dist/components/Icon/icons/iconsList.d.ts +1 -1
  31. package/dist/components/NestedTable/components/NestedTableCell.d.ts +2 -1
  32. package/dist/components/NestedTable/components/NestedTableCellSubHeader.d.ts +2 -1
  33. package/dist/components/NestedTable/components/NestedTableRow.d.ts +2 -1
  34. package/dist/components/index.d.ts +2 -0
  35. package/dist/index.js +947 -73
  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
@@ -92,6 +92,10 @@ __webpack_require__.d(__webpack_exports__, {
92
92
  DropdownOptions: () => (/* reexport */ DropdownOptions_DropdownOptions),
93
93
  DropdownToggle: () => (/* reexport */ DropdownToggle_DropdownToggle),
94
94
  Filters: () => (/* reexport */ Filters),
95
+ FiltersMultiSelect: () => (/* reexport */ FiltersMultiSelect),
96
+ FiltersMultiSelectEmpty: () => (/* reexport */ FiltersMultiSelectEmpty),
97
+ FiltersMultiSelectOption: () => (/* reexport */ FiltersMultiSelectOption),
98
+ FiltersMultiSelectOptions: () => (/* reexport */ FiltersMultiSelectOptions),
95
99
  Form: () => (/* reexport */ Form_Form),
96
100
  FormAction: () => (/* reexport */ FormAction_FormAction),
97
101
  FormCheckbox: () => (/* reexport */ FormCheckbox_FormCheckbox),
@@ -129,6 +133,7 @@ __webpack_require__.d(__webpack_exports__, {
129
133
  PaginationContext: () => (/* reexport */ PaginationContext),
130
134
  PaginationContextProvider: () => (/* reexport */ PaginationContextProvider),
131
135
  PieChart: () => (/* reexport */ PieChart),
136
+ PieChartComponent: () => (/* reexport */ PieChartComponent),
132
137
  PieChartLegend: () => (/* reexport */ PieChartLegend),
133
138
  Popover: () => (/* reexport */ Popover),
134
139
  PopoverClose: () => (/* reexport */ PopoverClose),
@@ -154,6 +159,7 @@ __webpack_require__.d(__webpack_exports__, {
154
159
  SearchBoxInput: () => (/* reexport */ SearchBoxInput),
155
160
  SearchBoxWrapper: () => (/* reexport */ SearchBoxWrapper),
156
161
  SegmentedPieChart: () => (/* reexport */ SegmentedPieChart),
162
+ SegmentedPieChartComponent: () => (/* reexport */ SegmentedPieChartComponent),
157
163
  SimpleChartTooltip: () => (/* reexport */ SimpleChartTooltip),
158
164
  Step: () => (/* reexport */ Step_Step),
159
165
  StepConnector: () => (/* reexport */ StepConnector_StepConnector),
@@ -223,6 +229,8 @@ __webpack_require__.d(__webpack_exports__, {
223
229
  styles: () => (/* reexport */ Tooltip_styles_namespaceObject),
224
230
  useAccordionGroupContext: () => (/* reexport */ useAccordionGroupContext),
225
231
  useCollapsibleNavBarContext: () => (/* reexport */ useCollapsibleNavBarContext),
232
+ useFieldContext: () => (/* reexport */ useFieldContext),
233
+ useFilterMultiSelect: () => (/* reexport */ useFilterMultiSelect),
226
234
  useFullscreenMode: () => (/* reexport */ useFullscreenMode),
227
235
  useNestedTableRowContext: () => (/* reexport */ useNestedTableRowContext),
228
236
  usePaginationContext: () => (/* reexport */ usePaginationContext),
@@ -331,6 +339,22 @@ __webpack_require__.d(Plus_namespaceObject, {
331
339
  Plus: () => (Plus)
332
340
  });
333
341
 
342
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/PlusCircle.tsx
343
+ var PlusCircle_namespaceObject = {};
344
+ __webpack_require__.r(PlusCircle_namespaceObject);
345
+ __webpack_require__.d(PlusCircle_namespaceObject, {
346
+ ICON_NAME: () => (PlusCircle_ICON_NAME),
347
+ PlusCircle: () => (PlusCircle)
348
+ });
349
+
350
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/PlusCircleInverted.tsx
351
+ var PlusCircleInverted_namespaceObject = {};
352
+ __webpack_require__.r(PlusCircleInverted_namespaceObject);
353
+ __webpack_require__.d(PlusCircleInverted_namespaceObject, {
354
+ ICON_NAME: () => (PlusCircleInverted_ICON_NAME),
355
+ PlusCircleInverted: () => (PlusCircleInverted)
356
+ });
357
+
334
358
  // NAMESPACE OBJECT: ./src/components/Icon/icons/Minus.tsx
335
359
  var Minus_namespaceObject = {};
336
360
  __webpack_require__.r(Minus_namespaceObject);
@@ -339,6 +363,22 @@ __webpack_require__.d(Minus_namespaceObject, {
339
363
  Minus: () => (Minus)
340
364
  });
341
365
 
366
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/MinusCircle.tsx
367
+ var MinusCircle_namespaceObject = {};
368
+ __webpack_require__.r(MinusCircle_namespaceObject);
369
+ __webpack_require__.d(MinusCircle_namespaceObject, {
370
+ ICON_NAME: () => (MinusCircle_ICON_NAME),
371
+ MinusCircle: () => (MinusCircle)
372
+ });
373
+
374
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/MinusCircleInverted.tsx
375
+ var MinusCircleInverted_namespaceObject = {};
376
+ __webpack_require__.r(MinusCircleInverted_namespaceObject);
377
+ __webpack_require__.d(MinusCircleInverted_namespaceObject, {
378
+ ICON_NAME: () => (MinusCircleInverted_ICON_NAME),
379
+ MinusCircleInverted: () => (MinusCircleInverted)
380
+ });
381
+
342
382
  // NAMESPACE OBJECT: ./src/components/Icon/icons/Cross.tsx
343
383
  var Cross_namespaceObject = {};
344
384
  __webpack_require__.r(Cross_namespaceObject);
@@ -363,6 +403,14 @@ __webpack_require__.d(CheckCircle_namespaceObject, {
363
403
  ICON_NAME: () => (CheckCircle_ICON_NAME)
364
404
  });
365
405
 
406
+ // NAMESPACE OBJECT: ./src/components/Icon/icons/CheckCircleInverted.tsx
407
+ var CheckCircleInverted_namespaceObject = {};
408
+ __webpack_require__.r(CheckCircleInverted_namespaceObject);
409
+ __webpack_require__.d(CheckCircleInverted_namespaceObject, {
410
+ CheckCircleInverted: () => (CheckCircleInverted),
411
+ ICON_NAME: () => (CheckCircleInverted_ICON_NAME)
412
+ });
413
+
366
414
  // NAMESPACE OBJECT: ./src/components/Icon/icons/More.tsx
367
415
  var More_namespaceObject = {};
368
416
  __webpack_require__.r(More_namespaceObject);
@@ -750,6 +798,7 @@ __webpack_require__.d(all_namespaceObject, {
750
798
  Chart: () => (Chart_namespaceObject),
751
799
  Check: () => (Check_namespaceObject),
752
800
  CheckCircle: () => (CheckCircle_namespaceObject),
801
+ CheckCircleInverted: () => (CheckCircleInverted_namespaceObject),
753
802
  Circle: () => (Circle_namespaceObject),
754
803
  Circular: () => (Circular_namespaceObject),
755
804
  Clock: () => (Clock_namespaceObject),
@@ -774,11 +823,15 @@ __webpack_require__.d(all_namespaceObject, {
774
823
  Measurements: () => (Measurements_namespaceObject),
775
824
  Message: () => (Message_namespaceObject),
776
825
  Minus: () => (Minus_namespaceObject),
826
+ MinusCircle: () => (MinusCircle_namespaceObject),
827
+ MinusCircleInverted: () => (MinusCircleInverted_namespaceObject),
777
828
  More: () => (More_namespaceObject),
778
829
  MoreVertical: () => (MoreVertical_namespaceObject),
779
830
  Notification: () => (Notification_namespaceObject),
780
831
  Pages: () => (Pages_namespaceObject),
781
832
  Plus: () => (Plus_namespaceObject),
833
+ PlusCircle: () => (PlusCircle_namespaceObject),
834
+ PlusCircleInverted: () => (PlusCircleInverted_namespaceObject),
782
835
  RadioOn: () => (RadioOn_namespaceObject),
783
836
  Report: () => (Report_namespaceObject),
784
837
  Robot: () => (Robot_namespaceObject),
@@ -921,14 +974,22 @@ const main = {
921
974
  // #656567
922
975
  redLighter: 'rgba(242, 136, 142, 1)',
923
976
  // #f2888e
977
+ redLighter6: 'rgba(242, 136, 142, 0.06)',
978
+ // #f2888e
924
979
  redLighter40: 'rgba(242, 136, 142, 0.4)',
925
980
  // #f2888e
926
981
  red: 'rgba(235, 117, 86, 1)',
927
982
  // #eb7556
983
+ red6: 'rgba(235, 117, 86, 0.06)',
984
+ // #eb7556
985
+ redDark: 'rgba(229, 53, 14, 1)',
986
+ // #e5350e
928
987
  red40: 'rgba(235, 117, 86, 0.4)',
929
988
  // #eb7556
930
989
  greenLighter: 'rgba(137, 217, 150, 1)',
931
990
  // #89d996
991
+ greenLighter6: 'rgba(137, 217, 150, 0.06)',
992
+ // #89d996
932
993
  greenLighter20: 'rgba(137, 217, 150, 0.2)',
933
994
  // #89d996
934
995
  greenLighter40: 'rgba(137, 217, 150, 0.4)',
@@ -937,6 +998,8 @@ const main = {
937
998
  // #89d996
938
999
  green: 'rgba(82, 197, 135, 1)',
939
1000
  // #52c587
1001
+ green6: 'rgba(82, 197, 135, 0.06)',
1002
+ // #52c587
940
1003
  green20: 'rgba(82, 197, 135, 0.2)',
941
1004
  // #52c587
942
1005
  green40: 'rgba(82, 197, 135, 0.4)',
@@ -1007,6 +1070,8 @@ const main = {
1007
1070
  // #9c7aeb
1008
1071
  blue: 'rgba(65, 120, 225, 1)',
1009
1072
  // #4178e1
1073
+ blue6: 'rgba(65, 120, 225, 0.06)',
1074
+ // #4178e1
1010
1075
  blue20: 'rgba(65, 120, 225, 0.2)',
1011
1076
  // #4178e1
1012
1077
  blueDark: 'rgba(36, 101, 227, 1)',
@@ -1019,6 +1084,8 @@ const main = {
1019
1084
  // #A6D5F4
1020
1085
  blueLighter: 'rgba(117, 153, 222, 1)',
1021
1086
  // #7599de
1087
+ blueLighter6: 'rgba(117, 153, 222, 0.06)',
1088
+ // #7599de
1022
1089
  blueLighter20: 'rgba(117, 153, 222, 0.2)',
1023
1090
  // #7599de
1024
1091
  blueLighter40: 'rgba(117, 153, 222, 0.4)',
@@ -1047,6 +1114,8 @@ const main = {
1047
1114
  //#0745bd
1048
1115
  blueRoyal: 'rgba(72, 125, 225, 1)',
1049
1116
  //#487de1
1117
+ blueRoyal6: 'rgba(72, 125, 225, 0.06)',
1118
+ //#487DE1
1050
1119
  blueRoyal12: 'rgba(72, 125, 225, 0.12)',
1051
1120
  //#487DE1
1052
1121
  dangerShades300: 'rgb(253, 128, 122)',
@@ -1159,11 +1228,12 @@ const Badge = /*#__PURE__*/external_react_default().forwardRef(function Badge({
1159
1228
  children,
1160
1229
  ...props
1161
1230
  }, ref) {
1231
+ const sizeProps = mapSizes[size];
1162
1232
  return (0,jsx_runtime_namespaceObject.jsx)(Badge_BadgeBase, {
1163
1233
  ref: ref,
1164
1234
  css: [color in mapColors ? mapColors[color] : {
1165
1235
  background: color
1166
- }, mapSizes[size], true ? "" : 0, true ? "" : 0],
1236
+ }, sizeProps, true ? "" : 0, true ? "" : 0],
1167
1237
  ...props,
1168
1238
  children: children ? children : null
1169
1239
  });
@@ -1729,6 +1799,59 @@ const Plus = ({
1729
1799
  })]
1730
1800
  });
1731
1801
  const Plus_ICON_NAME = 'plus';
1802
+ ;// ./src/components/Icon/icons/PlusCircle.tsx
1803
+
1804
+ const PlusCircle = ({
1805
+ fill = '#000',
1806
+ size = 24,
1807
+ tooltip = 'Plus circle',
1808
+ ...props
1809
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1810
+ width: `${size}px`,
1811
+ height: `${size}px`,
1812
+ viewBox: "0 0 20 20",
1813
+ fill: "none",
1814
+ xmlns: "http://www.w3.org/2000/svg",
1815
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1816
+ ...props,
1817
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1818
+ children: tooltip
1819
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1820
+ 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",
1821
+ fill: fill
1822
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1823
+ 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",
1824
+ fillRule: "evenodd",
1825
+ clipRule: "evenodd",
1826
+ fill: fill
1827
+ })]
1828
+ });
1829
+ const PlusCircle_ICON_NAME = 'plus-circle';
1830
+ ;// ./src/components/Icon/icons/PlusCircleInverted.tsx
1831
+
1832
+ const PlusCircleInverted = ({
1833
+ fill = '#000',
1834
+ size = 24,
1835
+ tooltip = 'Plus circle inverted',
1836
+ ...props
1837
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1838
+ width: `${size}px`,
1839
+ height: `${size}px`,
1840
+ viewBox: "0 0 20 20",
1841
+ fill: "none",
1842
+ xmlns: "http://www.w3.org/2000/svg",
1843
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1844
+ ...props,
1845
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1846
+ children: tooltip
1847
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1848
+ 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",
1849
+ fillRule: "evenodd",
1850
+ clipRule: "evenodd",
1851
+ fill: fill
1852
+ })]
1853
+ });
1854
+ const PlusCircleInverted_ICON_NAME = 'plus-circle-inverted';
1732
1855
  ;// ./src/components/Icon/icons/Minus.tsx
1733
1856
 
1734
1857
  const Minus = ({
@@ -1755,6 +1878,59 @@ const Minus = ({
1755
1878
  })]
1756
1879
  });
1757
1880
  const Minus_ICON_NAME = 'minus';
1881
+ ;// ./src/components/Icon/icons/MinusCircle.tsx
1882
+
1883
+ const MinusCircle = ({
1884
+ fill = '#000',
1885
+ size = 24,
1886
+ tooltip = 'Minus circle',
1887
+ ...props
1888
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1889
+ width: `${size}px`,
1890
+ height: `${size}px`,
1891
+ viewBox: "0 0 20 20",
1892
+ fill: "none",
1893
+ xmlns: "http://www.w3.org/2000/svg",
1894
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1895
+ ...props,
1896
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1897
+ children: tooltip
1898
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1899
+ 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",
1900
+ fill: fill
1901
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1902
+ 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",
1903
+ fillRule: "evenodd",
1904
+ clipRule: "evenodd",
1905
+ fill: fill
1906
+ })]
1907
+ });
1908
+ const MinusCircle_ICON_NAME = 'minus-circle';
1909
+ ;// ./src/components/Icon/icons/MinusCircleInverted.tsx
1910
+
1911
+ const MinusCircleInverted = ({
1912
+ fill = '#000',
1913
+ size = 24,
1914
+ tooltip = 'Minus circle inverted',
1915
+ ...props
1916
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
1917
+ width: `${size}px`,
1918
+ height: `${size}px`,
1919
+ viewBox: "0 0 20 20",
1920
+ fill: "none",
1921
+ xmlns: "http://www.w3.org/2000/svg",
1922
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1923
+ ...props,
1924
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
1925
+ children: tooltip
1926
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
1927
+ 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",
1928
+ fillRule: "evenodd",
1929
+ clipRule: "evenodd",
1930
+ fill: fill
1931
+ })]
1932
+ });
1933
+ const MinusCircleInverted_ICON_NAME = 'minus-circle-inverted';
1758
1934
  ;// ./src/components/Icon/icons/Cross.tsx
1759
1935
 
1760
1936
  const Cross = ({
@@ -1844,6 +2020,35 @@ const CheckCircle = ({
1844
2020
  })]
1845
2021
  });
1846
2022
  const CheckCircle_ICON_NAME = 'check-circle';
2023
+ ;// ./src/components/Icon/icons/CheckCircleInverted.tsx
2024
+
2025
+ const CheckCircleInverted = ({
2026
+ fill = '#000',
2027
+ size = 24,
2028
+ tooltip = 'Check circle inverted',
2029
+ ...props
2030
+ }) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
2031
+ width: `${size}px`,
2032
+ height: `${size}px`,
2033
+ viewBox: "0 0 20 20",
2034
+ fill: "none",
2035
+ xmlns: "http://www.w3.org/2000/svg",
2036
+ ...props,
2037
+ children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
2038
+ children: tooltip
2039
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
2040
+ fillRule: "evenodd",
2041
+ clipRule: "evenodd",
2042
+ 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",
2043
+ fill: fill
2044
+ }), (0,jsx_runtime_namespaceObject.jsx)("path", {
2045
+ fillRule: "evenodd",
2046
+ clipRule: "evenodd",
2047
+ 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",
2048
+ fill: fill
2049
+ })]
2050
+ });
2051
+ const CheckCircleInverted_ICON_NAME = 'check-circle-inverted';
1847
2052
  ;// ./src/components/Icon/icons/More.tsx
1848
2053
 
1849
2054
  const More = ({
@@ -3443,6 +3648,16 @@ const Report_ICON_NAME = 'report';
3443
3648
 
3444
3649
 
3445
3650
 
3651
+
3652
+
3653
+
3654
+
3655
+
3656
+
3657
+
3658
+
3659
+
3660
+
3446
3661
 
3447
3662
 
3448
3663
 
@@ -5673,8 +5888,8 @@ const PieChartBase = /*#__PURE__*/base_default()("div", true ? {
5673
5888
  const PieChartTextBase = /*#__PURE__*/base_default()("div", true ? {
5674
5889
  target: "eq9zdmm0"
5675
5890
  } : 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%"
5891
+ name: "1e5nn9x",
5892
+ 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
5893
  } : 0);
5679
5894
  ;// ./src/components/Charts/PieChart/styles.ts
5680
5895
 
@@ -9638,6 +9853,13 @@ const DatePickerInner = ({
9638
9853
  const DatePicker = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(DatePickerInner);
9639
9854
  ;// ./src/components/DatePicker/index.ts
9640
9855
 
9856
+ ;// ./src/components/Field/FieldProvider.ts
9857
+
9858
+ const [FieldProvider, useFieldContext] = (0,hooks_namespaceObject.createSafeContext)('useFieldContext must be used within a FieldProvider');
9859
+ ;// ./src/components/Field/index.ts
9860
+
9861
+
9862
+
9641
9863
  ;// ./src/components/TableFilters/styles.ts
9642
9864
  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
9865
 
@@ -10540,6 +10762,641 @@ const Filters = ({
10540
10762
  };
10541
10763
  ;// ./src/components/Filters/index.ts
10542
10764
 
10765
+ ;// ./src/components/Field/FieldRoot.tsx
10766
+
10767
+
10768
+ const FieldRoot = ({
10769
+ children,
10770
+ ...props
10771
+ }) => {
10772
+ const {
10773
+ disabled = false,
10774
+ status = 'basic',
10775
+ forwardFocus = true,
10776
+ ...divProps
10777
+ } = props;
10778
+ return (0,jsx_runtime_namespaceObject.jsx)("div", {
10779
+ ...divProps,
10780
+ children: (0,jsx_runtime_namespaceObject.jsx)(FieldProvider, {
10781
+ value: {
10782
+ disabled,
10783
+ status,
10784
+ forwardFocus
10785
+ },
10786
+ children: children
10787
+ })
10788
+ });
10789
+ };
10790
+ ;// ./src/components/Field/FieldLabel.tsx
10791
+
10792
+
10793
+
10794
+ const FieldLabel = ({
10795
+ children,
10796
+ ...props
10797
+ }) => {
10798
+ const ctx = useFieldContext();
10799
+ return (0,jsx_runtime_namespaceObject.jsx)(Label_Label, {
10800
+ isDisabled: ctx.disabled,
10801
+ ...props,
10802
+ children: children
10803
+ });
10804
+ };
10805
+ ;// ./src/components/Field/FieldControl.tsx
10806
+
10807
+
10808
+
10809
+
10810
+ const FieldControlBase = /*#__PURE__*/base_default()("div", true ? {
10811
+ target: "e1lr2tz0"
10812
+ } : 0)("display:flex;align-items:center;min-height:44px;height:auto;border-radius:8px;overflow:hidden;border:1px solid ", ({
10813
+ status,
10814
+ theme
10815
+ }) => {
10816
+ if (status === 'error') return theme.colors.red;
10817
+ if (status === 'success') return theme.colors.greenLighter;
10818
+ return theme.colors.grey;
10819
+ }, ";background:", ({
10820
+ disabled,
10821
+ theme
10822
+ }) => disabled ? theme.colors.greyLighter : theme.colors.white, ";&>*{background:transparent;}&:active,&:hover{background:", ({
10823
+ disabled,
10824
+ theme
10825
+ }) => disabled ? theme.colors.greyLighter : theme.colors.white, ";box-shadow:none;}&:hover{cursor:", ({
10826
+ disabled
10827
+ }) => disabled ? 'default' : 'pointer', ";}&:focus-within,&:active{border-color:", ({
10828
+ status,
10829
+ disabled,
10830
+ theme
10831
+ }) => {
10832
+ if (disabled) return theme.colors.grey;
10833
+ if (status === 'error') return theme.colors.red;
10834
+ if (status === 'success') return theme.colors.greenLighter;
10835
+ return theme.colors.blueRoyal;
10836
+ }, ";}" + ( true ? "" : 0));
10837
+ const isForwardRefComponent = component => {
10838
+ if (typeof component.type === 'object' && component.type.$$typeof?.toString() === 'Symbol(react.forward_ref)') {
10839
+ return true;
10840
+ }
10841
+ return false;
10842
+ };
10843
+ const FieldControl = /*#__PURE__*/external_react_default().forwardRef(function FieldControl({
10844
+ children,
10845
+ controlRef,
10846
+ ...props
10847
+ }, ref) {
10848
+ const ctx = useFieldContext();
10849
+ const baseProps = {
10850
+ ...props,
10851
+ ...ctx
10852
+ };
10853
+ const internalRef = (0,external_react_namespaceObject.useRef)(null);
10854
+ let _children = typeof children === 'function' ? children(ctx) : children;
10855
+ if (ctx.forwardFocus && /*#__PURE__*/(0,external_react_namespaceObject.isValidElement)(_children) && isForwardRefComponent(_children)) {
10856
+ const setRef = defaultRef => element => {
10857
+ internalRef.current = element;
10858
+ if (defaultRef) {
10859
+ if (typeof defaultRef === 'function') {
10860
+ defaultRef(element);
10861
+ } else {
10862
+ defaultRef.current = element;
10863
+ }
10864
+ }
10865
+ };
10866
+ _children = /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(_children, {
10867
+ ref: setRef(children.ref)
10868
+ });
10869
+ }
10870
+ return (0,jsx_runtime_namespaceObject.jsx)(FieldControlBase, {
10871
+ ...baseProps,
10872
+ ref: ref,
10873
+ onClick: event => {
10874
+ baseProps.onClick?.(event);
10875
+ if (controlRef) {
10876
+ controlRef.current?.focus?.();
10877
+ } else if (internalRef.current) {
10878
+ internalRef.current?.focus?.();
10879
+ }
10880
+ },
10881
+ children: _children
10882
+ });
10883
+ });
10884
+ ;// ./src/components/Field/FieldDescription.tsx
10885
+
10886
+
10887
+
10888
+ const FieldDescription = ({
10889
+ children
10890
+ }) => {
10891
+ const ctx = useFieldContext();
10892
+ if (ctx.status !== 'basic') {
10893
+ return null;
10894
+ }
10895
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10896
+ status: "basic",
10897
+ children: children
10898
+ });
10899
+ };
10900
+ ;// ./src/components/Field/FieldError.tsx
10901
+
10902
+
10903
+
10904
+ const FieldError = ({
10905
+ children
10906
+ }) => {
10907
+ const ctx = useFieldContext();
10908
+ if (ctx.status !== 'error') {
10909
+ return null;
10910
+ }
10911
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10912
+ status: "error",
10913
+ children: children
10914
+ });
10915
+ };
10916
+ ;// ./src/components/Field/FieldSuccess.tsx
10917
+
10918
+
10919
+
10920
+ const FieldSuccess = ({
10921
+ children
10922
+ }) => {
10923
+ const ctx = useFieldContext();
10924
+ if (ctx.status !== 'success') {
10925
+ return null;
10926
+ }
10927
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10928
+ status: "success",
10929
+ children: children
10930
+ });
10931
+ };
10932
+ ;// ./src/components/FiltersMultiSelect/useFiltersMultiSelect.tsx
10933
+
10934
+ function useFilterMultiSelect({
10935
+ opened,
10936
+ defaultOpened,
10937
+ selectedFilters,
10938
+ defaultSelectedFilters,
10939
+ search,
10940
+ defaultSearch,
10941
+ onChange,
10942
+ onOpenedChange,
10943
+ onDropdownClose,
10944
+ onDropdownOpen,
10945
+ onSearchChange
10946
+ } = {}) {
10947
+ const [_opened, setOpened] = (0,hooks_namespaceObject.useUncontrolled)({
10948
+ value: opened,
10949
+ defaultValue: defaultOpened,
10950
+ finalValue: false,
10951
+ onChange: onOpenedChange
10952
+ });
10953
+ const [_selectedFilters, setSelectedFilters] = (0,hooks_namespaceObject.useUncontrolled)({
10954
+ value: selectedFilters,
10955
+ defaultValue: defaultSelectedFilters,
10956
+ finalValue: [],
10957
+ onChange
10958
+ });
10959
+ const [_search, setSearch] = (0,hooks_namespaceObject.useUncontrolled)({
10960
+ value: search,
10961
+ defaultValue: defaultSearch,
10962
+ finalValue: '',
10963
+ onChange: onSearchChange
10964
+ });
10965
+ const toggleDropdown = open => {
10966
+ const _open = open ?? !_opened;
10967
+ setOpened(_open);
10968
+ if (_open) {
10969
+ onDropdownOpen?.();
10970
+ } else {
10971
+ onDropdownClose?.();
10972
+ }
10973
+ };
10974
+ const selectFilters = (...filters) => {
10975
+ const filtersArray = Array.isArray(filters) ? filters : [filters];
10976
+ const newFilters = [..._selectedFilters];
10977
+ filtersArray.forEach(filter => {
10978
+ const index = newFilters.findIndex(f => f.id === filter.id);
10979
+ if (index === -1) {
10980
+ newFilters.push(filter);
10981
+ } else if (newFilters[index].type !== filter.type) {
10982
+ newFilters[index] = filter;
10983
+ }
10984
+ });
10985
+ setSelectedFilters(newFilters);
10986
+ };
10987
+ const unselectFilters = (...filters) => {
10988
+ const filtersArray = Array.isArray(filters) ? filters : [filters];
10989
+ const newFilters = _selectedFilters.filter(f => !filtersArray.includes(f));
10990
+ setSelectedFilters(newFilters);
10991
+ };
10992
+ const isSelected = id => _selectedFilters.find(f => f.id === id);
10993
+ return {
10994
+ opened: _opened,
10995
+ selectedFilters: _selectedFilters,
10996
+ search: _search,
10997
+ toggleDropdown,
10998
+ selectFilters,
10999
+ unselectFilters,
11000
+ isSelected,
11001
+ setSearch
11002
+ };
11003
+ }
11004
+ ;// ./src/components/FiltersMultiSelect/FiltersMultiSelectProvider.tsx
11005
+
11006
+ const [FiltersMultiSelectProvider, useFiltersMultiSelectContext] = (0,hooks_namespaceObject.createSafeContext)('useFiltersMultiSelect must be used within a FiltersMultiSelectProvider');
11007
+ ;// ./src/components/FiltersMultiSelect/components/FilterBadge.tsx
11008
+
11009
+
11010
+
11011
+
11012
+
11013
+ const FilterBadge = ({
11014
+ type,
11015
+ disabled,
11016
+ className,
11017
+ withRemoveButton,
11018
+ onRemove,
11019
+ children
11020
+ }) => {
11021
+ const theme = (0,react_namespaceObject.useTheme)();
11022
+ const colors = {
11023
+ include: {
11024
+ light: theme.colors.greenLighter,
11025
+ main: theme.colors.green,
11026
+ text: theme.colors.greenDark
11027
+ },
11028
+ exclude: {
11029
+ light: theme.colors.redLighter,
11030
+ main: theme.colors.red,
11031
+ text: theme.colors.redDark
11032
+ },
11033
+ group: {
11034
+ light: theme.colors.blueLighter,
11035
+ main: theme.colors.blue,
11036
+ text: theme.colors.blue
11037
+ }
11038
+ };
11039
+ const mixTarget = disabled ? theme.colors.greyLighter : theme.colors.white;
11040
+ const mixIfDisabled = color => disabled ? `color-mix(in srgb, ${color}, ${mixTarget})` : color;
11041
+ return (0,jsx_runtime_namespaceObject.jsxs)(Badge_Badge, {
11042
+ className: className,
11043
+ "data-filter-type": type,
11044
+ 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),
11045
+ children: [children, withRemoveButton && (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
11046
+ variant: "tertiary",
11047
+ isDisabled: disabled,
11048
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
11049
+ padding: 0,
11050
+ cursor: disabled ? 'default' : 'pointer'
11051
+ }, true ? "" : 0, true ? "" : 0),
11052
+ onClick: e => {
11053
+ e.stopPropagation();
11054
+ onRemove?.();
11055
+ },
11056
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11057
+ name: "cross",
11058
+ role: "button",
11059
+ size: 12
11060
+ })
11061
+ })]
11062
+ });
11063
+ };
11064
+ ;// ./src/components/FiltersMultiSelect/components/FiltersMultiSelectEmpty.tsx
11065
+
11066
+ 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)."; }
11067
+
11068
+ const FiltersMultiSelectEmptyBase = /*#__PURE__*/base_default()("div", true ? {
11069
+ target: "e1ldbojn0"
11070
+ } : 0)( true ? {
11071
+ name: "var55v",
11072
+ styles: "padding:12px;text-align:center;font-weight:500;font-size:13.33px"
11073
+ } : 0);
11074
+ const FiltersMultiSelectEmpty = ({
11075
+ children,
11076
+ ...props
11077
+ }) => (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiSelectEmptyBase, {
11078
+ ...props,
11079
+ children: children
11080
+ });
11081
+ ;// ./src/components/FiltersMultiSelect/FiltersMultiSelect.tsx
11082
+
11083
+ 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)."; }
11084
+
11085
+
11086
+
11087
+
11088
+
11089
+
11090
+
11091
+
11092
+
11093
+
11094
+
11095
+
11096
+
11097
+
11098
+ var FiltersMultiSelect_ref = true ? {
11099
+ name: "w1nxbg",
11100
+ styles: "padding:6px 14px"
11101
+ } : 0;
11102
+ var FiltersMultiSelect_ref2 = true ? {
11103
+ name: "1a5utpy",
11104
+ styles: "gap:8px;flex-wrap:wrap;flex-grow:1"
11105
+ } : 0;
11106
+ var FiltersMultiSelect_ref3 = true ? {
11107
+ name: "chpy5q",
11108
+ styles: "with:auto;border:0 !important;padding:2px 0;height:32px;border-radius:0"
11109
+ } : 0;
11110
+ var FiltersMultiSelect_ref4 = true ? {
11111
+ name: "2f908b",
11112
+ styles: "& path{stroke-width:1;}"
11113
+ } : 0;
11114
+ var FiltersMultiSelect_ref5 = true ? {
11115
+ name: "1d3w5wq",
11116
+ styles: "width:100%"
11117
+ } : 0;
11118
+ const FiltersMultiSelect = ({
11119
+ children,
11120
+ description,
11121
+ disabled,
11122
+ emptyNode: controlledEmptyNode,
11123
+ error,
11124
+ icon,
11125
+ inputProps,
11126
+ label,
11127
+ placeholder,
11128
+ searchable = true,
11129
+ selectedFilters: controlledSelectedFilters,
11130
+ status,
11131
+ store: controlledStore,
11132
+ success,
11133
+ badgeClassName,
11134
+ inputClassName,
11135
+ wrapperClassName,
11136
+ onChange,
11137
+ register
11138
+ }) => {
11139
+ const id = (0,external_react_namespaceObject.useId)();
11140
+ const [wrapperRef] = (0,hooks_namespaceObject.useResizeObserver)();
11141
+ const inputRef = (0,external_react_namespaceObject.useRef)(null);
11142
+ const uncontrolledStore = useFilterMultiSelect({
11143
+ selectedFilters: controlledSelectedFilters,
11144
+ onChange
11145
+ });
11146
+ const store = controlledStore || uncontrolledStore;
11147
+ const {
11148
+ selectedFilters
11149
+ } = store;
11150
+ const emptyNode = controlledEmptyNode || (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiSelectEmpty, {
11151
+ children: "No Items Found"
11152
+ });
11153
+ return (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiSelectProvider, {
11154
+ value: {
11155
+ store,
11156
+ emptyNode
11157
+ },
11158
+ children: (0,jsx_runtime_namespaceObject.jsxs)(FieldRoot, {
11159
+ disabled: disabled,
11160
+ status: status,
11161
+ children: [label && (0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
11162
+ htmlFor: `formElement-search-${id}`,
11163
+ children: label
11164
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldControl, {
11165
+ controlRef: inputRef,
11166
+ children: (0,jsx_runtime_namespaceObject.jsxs)(Popover, {
11167
+ floatingOptions: {
11168
+ onOpenChange: (open, event, reason) => {
11169
+ if (disabled) return;
11170
+ if (reason === 'click' && event?.target === wrapperRef.current || ['outside-press', 'escape-key'].includes(reason || '')) {
11171
+ store.toggleDropdown(open);
11172
+ }
11173
+ },
11174
+ open: store.opened
11175
+ },
11176
+ children: [(0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
11177
+ asChild: true,
11178
+ children: (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
11179
+ css: FiltersMultiSelect_ref,
11180
+ ref: wrapperRef,
11181
+ className: wrapperClassName,
11182
+ children: [(0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
11183
+ css: FiltersMultiSelect_ref2,
11184
+ children: [icon, selectedFilters.map(filter => (0,jsx_runtime_namespaceObject.jsx)(FilterBadge, {
11185
+ className: badgeClassName,
11186
+ type: filter.type,
11187
+ disabled: disabled,
11188
+ withRemoveButton: true,
11189
+ onRemove: () => store.unselectFilters(filter),
11190
+ children: filter.label
11191
+ }, filter.id)), searchable && (0,jsx_runtime_namespaceObject.jsx)(Input_Input, {
11192
+ className: inputClassName,
11193
+ name: `search-${id}`,
11194
+ register: register,
11195
+ placeholder: placeholder,
11196
+ disabled: disabled,
11197
+ status: "custom",
11198
+ inputProps: {
11199
+ onChange: e => store.setSearch(e.target.value),
11200
+ onFocus: () => store.toggleDropdown(true),
11201
+ onKeyUp: e => {
11202
+ if (e.key === 'Escape') {
11203
+ inputRef.current?.blur();
11204
+ }
11205
+ },
11206
+ autoComplete: 'off',
11207
+ ...inputProps
11208
+ },
11209
+ ref: inputRef,
11210
+ wrapperClassName: /*#__PURE__*/(0,css_namespaceObject.css)( true ? {
11211
+ name: "1sblf6",
11212
+ styles: "width:auto!important;flex-grow:1"
11213
+ } : 0),
11214
+ css: FiltersMultiSelect_ref3
11215
+ })]
11216
+ }), (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
11217
+ "data-testid": "clear-all-filters",
11218
+ variant: "tertiary",
11219
+ isDisabled: disabled,
11220
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
11221
+ height: '32px',
11222
+ display: disabled || !store.selectedFilters.length ? 'none' : 'inline-flex',
11223
+ cursor: disabled ? 'default' : 'pointer'
11224
+ }, true ? "" : 0, true ? "" : 0),
11225
+ onClick: () => store.unselectFilters(...store.selectedFilters),
11226
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11227
+ name: "cross",
11228
+ role: "button",
11229
+ size: 12,
11230
+ css: FiltersMultiSelect_ref4
11231
+ })
11232
+ }), store.opened ? (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11233
+ name: "carrot-up",
11234
+ size: 12
11235
+ }) : (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11236
+ name: "carrot-down",
11237
+ size: 12
11238
+ })]
11239
+ })
11240
+ }), (0,jsx_runtime_namespaceObject.jsx)(PopoverContent, {
11241
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
11242
+ width: wrapperRef.current?.clientWidth,
11243
+ zIndex: 100
11244
+ }, true ? "" : 0, true ? "" : 0),
11245
+ isFocusManagerDisabled: true,
11246
+ children: (0,jsx_runtime_namespaceObject.jsx)(PopoverDescription, {
11247
+ css: FiltersMultiSelect_ref5,
11248
+ children: children
11249
+ })
11250
+ })]
11251
+ })
11252
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldDescription, {
11253
+ children: description
11254
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldError, {
11255
+ children: error
11256
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldSuccess, {
11257
+ children: success
11258
+ })]
11259
+ })
11260
+ });
11261
+ };
11262
+ ;// ./src/components/FiltersMultiSelect/components/FiltersMultiSelectOption.tsx
11263
+
11264
+ 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)."; }
11265
+
11266
+
11267
+
11268
+
11269
+
11270
+ const FiltersMultiSelectOptionBase = /*#__PURE__*/base_default()("div", true ? {
11271
+ target: "e1a919p41"
11272
+ } : 0)("padding:12px;height:42px;font-weight:500;font-size:13.33px;display:flex;align-items:center;justify-content:space-between;&:hover{background:", ({
11273
+ theme
11274
+ }) => theme.colors.blueRoyal6, ";}" + ( true ? "" : 0));
11275
+ const FilterButton = /*#__PURE__*/base_default()(Button_Button, true ? {
11276
+ target: "e1a919p40"
11277
+ } : 0)( true ? {
11278
+ name: "hgien2",
11279
+ styles: "padding:0 4px;&:not(:disabled):hover{svg{path{stroke-width:2;}}}"
11280
+ } : 0);
11281
+ var FiltersMultiSelectOption_ref = true ? {
11282
+ name: "1eoy87d",
11283
+ styles: "display:flex;justify-content:space-between"
11284
+ } : 0;
11285
+ const FiltersMultiSelectOption = ({
11286
+ filter,
11287
+ children,
11288
+ selected
11289
+ }) => {
11290
+ const theme = (0,react_namespaceObject.useTheme)();
11291
+ const {
11292
+ store
11293
+ } = useFiltersMultiSelectContext();
11294
+ const {
11295
+ id,
11296
+ label,
11297
+ group
11298
+ } = filter;
11299
+ const selectedFilter = store.isSelected(filter.id);
11300
+ const selectFilters = type => {
11301
+ store.selectFilters({
11302
+ id,
11303
+ label,
11304
+ type
11305
+ });
11306
+ };
11307
+ const getIconName = type => {
11308
+ let iconName;
11309
+ switch (type) {
11310
+ case 'group':
11311
+ iconName = 'check-circle';
11312
+ break;
11313
+ case 'include':
11314
+ iconName = 'plus-circle';
11315
+ break;
11316
+ case 'exclude':
11317
+ iconName = 'minus-circle';
11318
+ break;
11319
+ }
11320
+ if (selectedFilter?.type === type) {
11321
+ iconName += '-inverted';
11322
+ }
11323
+ return iconName;
11324
+ };
11325
+ const Controls = () => (0,jsx_runtime_namespaceObject.jsx)("div", {
11326
+ css: FiltersMultiSelectOption_ref,
11327
+ children: group ? (0,jsx_runtime_namespaceObject.jsx)(FilterButton, {
11328
+ variant: "tertiary",
11329
+ isDisabled: selectedFilter?.type === 'group',
11330
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11331
+ name: getIconName('group'),
11332
+ color: theme.colors.blue,
11333
+ size: 20,
11334
+ tooltip: "Add filter group"
11335
+ }),
11336
+ onClick: () => selectFilters('group')
11337
+ }) : (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
11338
+ children: [(0,jsx_runtime_namespaceObject.jsx)(FilterButton, {
11339
+ variant: "tertiary",
11340
+ isDisabled: selectedFilter?.type === 'include',
11341
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11342
+ name: getIconName('include'),
11343
+ color: theme.colors.greenDark,
11344
+ size: 20,
11345
+ tooltip: "Add include filter"
11346
+ }),
11347
+ onClick: () => selectFilters('include')
11348
+ }), (0,jsx_runtime_namespaceObject.jsx)(FilterButton, {
11349
+ variant: "tertiary",
11350
+ isDisabled: selectedFilter?.type === 'exclude',
11351
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
11352
+ name: getIconName('exclude'),
11353
+ color: theme.colors.redDark,
11354
+ size: 20,
11355
+ tooltip: "Add exclude filter"
11356
+ }),
11357
+ onClick: () => selectFilters('exclude')
11358
+ })]
11359
+ })
11360
+ });
11361
+ return (0,jsx_runtime_namespaceObject.jsxs)(FiltersMultiSelectOptionBase, {
11362
+ "aria-selected": selected ?? !!selectedFilter,
11363
+ role: "option",
11364
+ children: [(0,jsx_runtime_namespaceObject.jsx)("span", {
11365
+ css: true,
11366
+ children: children
11367
+ }), (0,jsx_runtime_namespaceObject.jsx)(Controls, {})]
11368
+ });
11369
+ };
11370
+ ;// ./src/components/FiltersMultiSelect/components/FiltersMultiSelectOptions.tsx
11371
+
11372
+
11373
+
11374
+
11375
+ const FiltersMultiselectOptionsBase = /*#__PURE__*/base_default()("div", true ? {
11376
+ target: "e4b1h580"
11377
+ } : 0)("display:flex;flex-direction:column;background:", ({
11378
+ theme
11379
+ }) => theme.colors.white, ";border-radius:8px;overflow:hidden;box-shadow:-4px 4px 14px 0 ", ({
11380
+ theme
11381
+ }) => theme.colors.greyDarker14, ";" + ( true ? "" : 0));
11382
+ const FiltersMultiSelectOptions = ({
11383
+ children,
11384
+ ...props
11385
+ }) => {
11386
+ const ctx = useFiltersMultiSelectContext();
11387
+ const childrenArray = external_react_default().Children.toArray(children).filter(Boolean);
11388
+ return (0,jsx_runtime_namespaceObject.jsx)(FiltersMultiselectOptionsBase, {
11389
+ role: "listbox",
11390
+ ...props,
11391
+ children: childrenArray.length ? childrenArray : ctx.emptyNode
11392
+ });
11393
+ };
11394
+ ;// ./src/components/FiltersMultiSelect/index.ts
11395
+
11396
+
11397
+
11398
+
11399
+
10543
11400
  ;// ./src/components/Icon/index.ts
10544
11401
 
10545
11402
 
@@ -10794,8 +11651,6 @@ const NestedTableRow = ({
10794
11651
 
10795
11652
 
10796
11653
 
10797
-
10798
-
10799
11654
  const WithNestedTableRow = ({
10800
11655
  children
10801
11656
  }) => {
@@ -10806,33 +11661,24 @@ const WithNestedTableRow = ({
10806
11661
  return external_react_namespaceObject.Children.map(children, (child, index) => {
10807
11662
  if (/*#__PURE__*/(0,external_react_namespaceObject.isValidElement)(child)) {
10808
11663
  const isSubHeader = index === 0;
10809
- if (child.type === TableRow_TableRow || child.type === NestedTableRow) {
10810
- const classNames = [];
10811
- if (isSubHeader) {
10812
- classNames.push('first-row');
10813
- }
10814
- if (isCollapsed) {
10815
- classNames.push('collapsed');
10816
- }
10817
- return (0,jsx_runtime_namespaceObject.jsx)(NestedTableRowProvider, {
10818
- isCollapsed: isCollapsed,
10819
- isSubHeader: isSubHeader,
10820
- childRowsCount: childRowsCount,
10821
- children: /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
10822
- className: classNames.length > 0 ? classNames.join(' ') : undefined,
10823
- onClick: childRowsCount > 1 ? () => {
10824
- setIsCollapsed(currentState => !currentState);
10825
- } : undefined
10826
- })
10827
- });
11664
+ const classNames = [];
11665
+ if (isSubHeader) {
11666
+ classNames.push('first-row');
11667
+ }
11668
+ if (isCollapsed) {
11669
+ classNames.push('collapsed');
10828
11670
  }
10829
11671
  return (0,jsx_runtime_namespaceObject.jsx)(NestedTableRowProvider, {
10830
11672
  isCollapsed: isCollapsed,
10831
11673
  isSubHeader: isSubHeader,
10832
11674
  childRowsCount: childRowsCount,
10833
11675
  children: /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
11676
+ className: classNames.length > 0 ? classNames.join(' ') : undefined,
10834
11677
  isCollapsed,
10835
- childRowsCount
11678
+ childRowsCount,
11679
+ onClick: childRowsCount > 1 ? () => {
11680
+ setIsCollapsed(currentState => !currentState);
11681
+ } : undefined
10836
11682
  })
10837
11683
  });
10838
11684
  }
@@ -11643,62 +12489,79 @@ const LegendItem = ({
11643
12489
  ;// ./src/components/Charts/SegmentedPieChart/hooks/useData.ts
11644
12490
 
11645
12491
 
12492
+
11646
12493
  const useData = ({
11647
12494
  data,
11648
12495
  pieChartColors = defaultPieChartColors,
11649
- legendValueRoundingDigits
12496
+ legendValueRoundingDigits,
12497
+ legendBackgrounds
11650
12498
  }) => {
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
- });
12499
+ const {
12500
+ isFullscreenMode
12501
+ } = useFullscreenMode();
12502
+ const safeData = Array.isArray(data) ? data : [];
12503
+ const safeColors = Array.isArray(pieChartColors) ? pieChartColors : [[]];
12504
+ const totalAmount = safeData.reduce((acc, item) => acc + Number(item.value), 0);
12505
+ const getRoundingDigits = item => (0,utils_namespaceObject.propOr)(legendValueRoundingDigits, 'legendValueRoundingDigits')(item);
11657
12506
  const balanceDataForTheGraph = [];
11658
12507
  const balanceDataForTheLegend = [];
11659
- dataLocal?.forEach((item, itemIndex) => {
11660
- const mainPercentage = Number(item.value) * 100 / calculatedTotalAmount;
11661
- const newMainItem = {
11662
- value: item.value,
12508
+ safeData.forEach((item, itemIndex) => {
12509
+ const mainValue = Number(item.value);
12510
+ const mainPercentage = totalAmount ? mainValue * 100 / totalAmount : 0;
12511
+ const mainSlice = {
12512
+ value: mainValue,
11663
12513
  label: item.label,
11664
12514
  percentage: mainPercentage,
11665
12515
  mainId: Number(item.id),
11666
- mainValue: item.value,
12516
+ mainValue,
11667
12517
  legendLabel: item.legendLabel,
11668
12518
  legendValue: item.legendValue,
11669
- legendValueRoundingDigits: (0,utils_namespaceObject.propOr)(legendValueRoundingDigits, 'legendValueRoundingDigits')(item),
11670
- color: pieChartColorsLocal?.[itemIndex]?.[0],
12519
+ legendValueRoundingDigits: getRoundingDigits(item),
12520
+ color: safeColors?.[itemIndex]?.[0],
11671
12521
  id: `${itemIndex}0`
11672
12522
  };
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
- });
12523
+ const partedSlices = (item.parts || []).filter(part => !!part.value).map((part, partIndex) => {
12524
+ const partValue = Number(part.value);
12525
+ const partPercentage = totalAmount ? partValue * 100 / totalAmount : 0;
12526
+ return {
12527
+ value: partValue,
12528
+ label: `${item.label}, ${part.label}`,
12529
+ percentage: partPercentage,
12530
+ mainId: Number(item.id),
12531
+ mainValue: Number(item.value),
12532
+ legendLabel: item.legendLabel,
12533
+ legendValue: part.legendValue,
12534
+ legendValueRoundingDigits: getRoundingDigits(item),
12535
+ color: safeColors?.[itemIndex]?.[partIndex],
12536
+ id: `${itemIndex}${partIndex}`,
12537
+ partIndex,
12538
+ partLabel: part.label,
12539
+ partPercentage,
12540
+ partValue,
12541
+ partLegendValue: part.legendValue
12542
+ };
12543
+ });
12544
+ if (partedSlices.length) {
12545
+ balanceDataForTheGraph.push(...partedSlices);
12546
+ } else {
12547
+ balanceDataForTheGraph.push(mainSlice);
12548
+ }
12549
+ if (isFullscreenMode && partedSlices.length) {
12550
+ balanceDataForTheLegend.push(...partedSlices);
11695
12551
  } else {
11696
- balanceDataForTheGraph.push(newMainItem);
12552
+ balanceDataForTheLegend.push(mainSlice);
11697
12553
  }
11698
12554
  });
12555
+ let legendColors;
12556
+ if (isFullscreenMode) {
12557
+ legendColors = balanceDataForTheLegend.map(item => item.color);
12558
+ } else {
12559
+ legendColors = legendBackgrounds || [];
12560
+ }
11699
12561
  return {
11700
12562
  balanceDataForTheGraph,
11701
- balanceDataForTheLegend
12563
+ balanceDataForTheLegend,
12564
+ legendColors
11702
12565
  };
11703
12566
  };
11704
12567
  ;// ./src/components/Charts/SegmentedPieChart/SegmentedPieChart.tsx
@@ -11710,6 +12573,7 @@ function SegmentedPieChart_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have t
11710
12573
 
11711
12574
 
11712
12575
 
12576
+
11713
12577
  var SegmentedPieChart_ref = true ? {
11714
12578
  name: "1h72o96",
11715
12579
  styles: "h6{font-weight:700;}"
@@ -11718,11 +12582,7 @@ var SegmentedPieChart_ref2 = true ? {
11718
12582
  name: "fddz1h",
11719
12583
  styles: "width:10px;height:10px"
11720
12584
  } : 0;
11721
- var SegmentedPieChart_ref3 = true ? {
11722
- name: "14q9ynm",
11723
- styles: "width:400px;margin:40px 120px"
11724
- } : 0;
11725
- const SegmentedPieChart = ({
12585
+ const SegmentedPieChartComponent = ({
11726
12586
  data,
11727
12587
  pieChartProps,
11728
12588
  pieChartLegendProps,
@@ -11741,13 +12601,18 @@ const SegmentedPieChart = ({
11741
12601
  renderTitleTooltipContent
11742
12602
  }) => {
11743
12603
  const theme = (0,react_namespaceObject.useTheme)();
12604
+ const {
12605
+ isFullscreenMode
12606
+ } = useFullscreenMode();
11744
12607
  const {
11745
12608
  balanceDataForTheGraph,
11746
- balanceDataForTheLegend
12609
+ balanceDataForTheLegend,
12610
+ legendColors
11747
12611
  } = useData({
11748
12612
  data,
11749
12613
  legendValueRoundingDigits,
11750
- pieChartColors
12614
+ pieChartColors,
12615
+ legendBackgrounds
11751
12616
  });
11752
12617
  return (0,jsx_runtime_namespaceObject.jsx)(SegmentedPieChartProvider, {
11753
12618
  legendPercentageRoundingDigits: legendPercentageRoundingDigits,
@@ -11761,10 +12626,16 @@ const SegmentedPieChart = ({
11761
12626
  currency: currency,
11762
12627
  renderTitleTooltipContent: renderTitleTooltipContent,
11763
12628
  tooltipConfig: tooltipConfig,
11764
- children: (0,jsx_runtime_namespaceObject.jsx)(PieChart, {
12629
+ children: (0,jsx_runtime_namespaceObject.jsx)(PieChartComponent, {
11765
12630
  data: balanceDataForTheGraph,
11766
12631
  animate: true,
11767
- css: SegmentedPieChart_ref3,
12632
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
12633
+ ...(isFullscreenMode ? {
12634
+ padding: '20px'
12635
+ } : {
12636
+ margin: '40px 120px'
12637
+ })
12638
+ }, true ? "" : 0, true ? "" : 0),
11768
12639
  isInteractive: true,
11769
12640
  activeInnerRadiusOffset: 0,
11770
12641
  activeOuterRadiusOffset: 0,
@@ -11775,7 +12646,7 @@ const SegmentedPieChart = ({
11775
12646
  ...pieChartProps,
11776
12647
  children: (0,jsx_runtime_namespaceObject.jsx)(PieChartLegend, {
11777
12648
  data: balanceDataForTheLegend,
11778
- backgroundColors: legendBackgrounds,
12649
+ backgroundColors: legendColors,
11779
12650
  renderValue: props => (0,jsx_runtime_namespaceObject.jsx)(LegendItem, {
11780
12651
  ...props,
11781
12652
  legendValueRoundingDigits: props.legendValueRoundingDigits
@@ -11788,6 +12659,7 @@ const SegmentedPieChart = ({
11788
12659
  })
11789
12660
  });
11790
12661
  };
12662
+ const SegmentedPieChart = WithFullscreenMode(SegmentedPieChartComponent);
11791
12663
  ;// ./src/components/Charts/SegmentedPieChart/index.ts
11792
12664
 
11793
12665
  ;// ./src/components/Charts/BarLineComplexChart/colorPalette.ts
@@ -13906,6 +14778,8 @@ const WithVisibleUpToLG = (Component, styles) => {
13906
14778
 
13907
14779
 
13908
14780
 
14781
+
14782
+
13909
14783
 
13910
14784
 
13911
14785