@ssa-ui-kit/core 2.1.1 → 2.2.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 (37) hide show
  1. package/LICENSE +21 -21
  2. package/dist/components/DatePicker/hooks/useDatePicker.d.ts +3 -0
  3. package/dist/components/DatePicker/styles.d.ts +9 -0
  4. package/dist/components/DatePicker/types.d.ts +10 -1
  5. package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -0
  6. package/dist/components/DateRangePicker/constants.d.ts +7 -0
  7. package/dist/components/DateRangePicker/index.d.ts +1 -0
  8. package/dist/components/DateRangePicker/types.d.ts +41 -0
  9. package/dist/components/Drawer/DrawerCloseButton.d.ts +5 -0
  10. package/dist/components/Drawer/DrawerContent.d.ts +3 -0
  11. package/dist/components/Drawer/DrawerHeader.d.ts +4 -0
  12. package/dist/components/Drawer/DrawerOverlay.d.ts +4 -0
  13. package/dist/components/Drawer/DrawerPortal.d.ts +2 -0
  14. package/dist/components/Drawer/DrawerProvider.d.ts +8 -0
  15. package/dist/components/Drawer/DrawerRoot.d.ts +6 -0
  16. package/dist/components/Drawer/DrawerTitle.d.ts +4 -0
  17. package/dist/components/Drawer/index.d.ts +2 -0
  18. package/dist/components/Drawer/index.parts.d.ts +7 -0
  19. package/dist/components/Drawer/useDrawer.d.ts +48 -0
  20. package/dist/components/Field/FieldProvider.d.ts +1 -5
  21. package/dist/components/Field/FieldRoot.d.ts +1 -0
  22. package/dist/components/Field/index.d.ts +1 -1
  23. package/dist/components/FiltersMultiSelect/FiltersMultiSelect.d.ts +3 -2
  24. package/dist/components/FormHelperText/types.d.ts +1 -1
  25. package/dist/components/Input/InputBase.d.ts +2 -0
  26. package/dist/components/Input/types.d.ts +2 -0
  27. package/dist/components/NestedTable/WithNestedTableRow.d.ts +2 -3
  28. package/dist/components/NestedTable/types.d.ts +0 -3
  29. package/dist/components/Typeahead/Typeahead.context.d.ts +1 -1
  30. package/dist/components/Typeahead/useTypeahead.d.ts +1 -1
  31. package/dist/components/index.d.ts +2 -0
  32. package/dist/contexts/Translation/TranslationContext.d.ts +1 -1
  33. package/dist/contexts/Translation/types.d.ts +1 -1
  34. package/dist/index.js +1172 -383
  35. package/dist/index.js.map +1 -1
  36. package/dist/types/emotion.d.ts +1 -0
  37. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -85,12 +85,15 @@ __webpack_require__.d(__webpack_exports__, {
85
85
  CollapsibleNavBarProvider: () => (/* reexport */ CollapsibleNavBarProvider),
86
86
  ColorPicker: () => (/* reexport */ ColorPicker_ColorPicker),
87
87
  DatePicker: () => (/* reexport */ DatePicker),
88
+ DateRangePicker: () => (/* reexport */ DateRangePicker),
89
+ Drawer: () => (/* reexport */ index_parts_namespaceObject),
88
90
  Dropdown: () => (/* reexport */ Dropdown_Dropdown),
89
91
  DropdownArrow: () => (/* reexport */ DropdownArrow_DropdownArrow),
90
92
  DropdownBase: () => (/* reexport */ components_DropdownBase_DropdownBase),
91
93
  DropdownOption: () => (/* reexport */ DropdownOption_DropdownOption),
92
94
  DropdownOptions: () => (/* reexport */ DropdownOptions_DropdownOptions),
93
95
  DropdownToggle: () => (/* reexport */ DropdownToggle_DropdownToggle),
96
+ Field: () => (/* reexport */ Field_index_parts_namespaceObject),
94
97
  Filters: () => (/* reexport */ Filters),
95
98
  FiltersMultiSelect: () => (/* reexport */ FiltersMultiSelect),
96
99
  FiltersMultiSelectEmpty: () => (/* reexport */ FiltersMultiSelectEmpty),
@@ -202,6 +205,7 @@ __webpack_require__.d(__webpack_exports__, {
202
205
  TypeaheadOption: () => (/* reexport */ TypeaheadOption_TypeaheadOption),
203
206
  TypeaheadOptions: () => (/* reexport */ TypeaheadOptions),
204
207
  Typography: () => (/* reexport */ Typography_Typography),
208
+ UseDrawerOptions: () => (/* reexport */ useDrawer_namespaceObject.UseDrawerOptions),
205
209
  UserProfile: () => (/* reexport */ UserProfile),
206
210
  WidgetCard: () => (/* reexport */ WidgetCard),
207
211
  WidgetCardBase: () => (/* reexport */ WidgetCardBase),
@@ -229,6 +233,7 @@ __webpack_require__.d(__webpack_exports__, {
229
233
  styles: () => (/* reexport */ Tooltip_styles_namespaceObject),
230
234
  useAccordionGroupContext: () => (/* reexport */ useAccordionGroupContext),
231
235
  useCollapsibleNavBarContext: () => (/* reexport */ useCollapsibleNavBarContext),
236
+ useDrawer: () => (/* reexport */ useDrawer),
232
237
  useFieldContext: () => (/* reexport */ useFieldContext),
233
238
  useFilterMultiSelect: () => (/* reexport */ useFilterMultiSelect),
234
239
  useFullscreenMode: () => (/* reexport */ useFullscreenMode),
@@ -880,6 +885,38 @@ __webpack_require__.d(Tooltip_styles_namespaceObject, {
880
885
  small: () => (Tooltip_styles_small)
881
886
  });
882
887
 
888
+ // NAMESPACE OBJECT: ./src/components/Drawer/useDrawer.tsx
889
+ var useDrawer_namespaceObject = {};
890
+ __webpack_require__.r(useDrawer_namespaceObject);
891
+ __webpack_require__.d(useDrawer_namespaceObject, {
892
+ b: () => (useDrawer)
893
+ });
894
+
895
+ // NAMESPACE OBJECT: ./src/components/Drawer/index.parts.ts
896
+ var index_parts_namespaceObject = {};
897
+ __webpack_require__.r(index_parts_namespaceObject);
898
+ __webpack_require__.d(index_parts_namespaceObject, {
899
+ CloseButton: () => (DrawerCloseButton),
900
+ Content: () => (DrawerContent),
901
+ Header: () => (DrawerHeader),
902
+ Overlay: () => (DrawerOverlay),
903
+ Portal: () => (DrawerPortal),
904
+ Root: () => (Drawer),
905
+ Title: () => (DrawerTitle)
906
+ });
907
+
908
+ // NAMESPACE OBJECT: ./src/components/Field/index.parts.ts
909
+ var Field_index_parts_namespaceObject = {};
910
+ __webpack_require__.r(Field_index_parts_namespaceObject);
911
+ __webpack_require__.d(Field_index_parts_namespaceObject, {
912
+ Control: () => (FieldControl),
913
+ Description: () => (FieldDescription),
914
+ Error: () => (FieldError),
915
+ Label: () => (FieldLabel),
916
+ Root: () => (FieldRoot),
917
+ Success: () => (FieldSuccess)
918
+ });
919
+
883
920
  // NAMESPACE OBJECT: ./src/components/Charts/PieChart/colorPalettes.ts
884
921
  var colorPalettes_namespaceObject = {};
885
922
  __webpack_require__.r(colorPalettes_namespaceObject);
@@ -1116,6 +1153,8 @@ const main = {
1116
1153
  //#487de1
1117
1154
  blueRoyal6: 'rgba(72, 125, 225, 0.06)',
1118
1155
  //#487DE1
1156
+ blueRoyal16: 'rgba(72, 125, 225, 0.16)',
1157
+ //#487DE1
1119
1158
  blueRoyal12: 'rgba(72, 125, 225, 0.12)',
1120
1159
  //#487DE1
1121
1160
  dangerShades300: 'rgb(253, 128, 122)',
@@ -4072,16 +4111,16 @@ function Dropdown_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to s
4072
4111
 
4073
4112
 
4074
4113
 
4075
- /**
4076
- * The structure of the component:
4077
- *
4078
- * Dropdown
4079
- * DropdownToggle
4080
- * DropdownOptions
4081
- * DropdownOption
4082
- *
4083
- * Aria attributes are set according to
4084
- * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
4114
+ /**
4115
+ * The structure of the component:
4116
+ *
4117
+ * Dropdown
4118
+ * DropdownToggle
4119
+ * DropdownOptions
4120
+ * DropdownOption
4121
+ *
4122
+ * Aria attributes are set according to
4123
+ * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
4085
4124
  **/
4086
4125
 
4087
4126
  const DropdownBase = /*#__PURE__*/base_default()("div", true ? {
@@ -4496,8 +4535,9 @@ const InputBase = /*#__PURE__*/base_default()("input", true ? {
4496
4535
  } : 0)("flex:1;background:", ({
4497
4536
  theme
4498
4537
  }) => theme.colors.white, ";border-radius:12px;background-origin:border-box;background-clip:padding-box,border-box;border:", ({
4538
+ showBorders,
4499
4539
  theme
4500
- }) => `1px solid ${theme.colors.grey}`, ";color:", ({
4540
+ }) => showBorders ? `1px solid ${theme.colors.grey}` : 'none', ";color:", ({
4501
4541
  theme
4502
4542
  }) => theme.colors.greyDarker, ";width:100%;height:44px;padding:14px;font-weight:400;font-size:0.875rem;line-height:1rem;&::placeholder{color:", ({
4503
4543
  theme
@@ -4508,8 +4548,9 @@ const InputBase = /*#__PURE__*/base_default()("input", true ? {
4508
4548
  }) => theme.colors.greyLighter, ";&::placeholder{color:", ({
4509
4549
  theme
4510
4550
  }) => theme.colors.grey, ";}&:disabled,&:disabled:hover{border:", ({
4551
+ showBorders,
4511
4552
  theme
4512
- }) => `1px solid ${theme.colors.grey}`, ";background-image:none;}}" + ( true ? "" : 0));
4553
+ }) => showBorders ? `1px solid ${theme.colors.grey}` : 'none', ";background-image:none;}}" + ( true ? "" : 0));
4513
4554
  ;// ./src/components/Input/InputGroup.tsx
4514
4555
 
4515
4556
  const InputGroup = /*#__PURE__*/base_default()("div", true ? {
@@ -4529,7 +4570,7 @@ const basic = theme => /*#__PURE__*/(0,react_namespaceObject.css)({
4529
4570
  borderColor: theme.colors.greyDarker80
4530
4571
  },
4531
4572
  '&:focus': {
4532
- borderColor: `2px solid ${theme.colors.blueRoyal}`
4573
+ borderColor: theme.colors.blueRoyal
4533
4574
  }
4534
4575
  }
4535
4576
  }, true ? "" : 0, true ? "" : 0);
@@ -4658,6 +4699,8 @@ const InputInner = ({
4658
4699
  maxLength,
4659
4700
  helperText,
4660
4701
  showHelperText = false,
4702
+ showStatusIcon = true,
4703
+ showBorders = true,
4661
4704
  register,
4662
4705
  onKeyUp
4663
4706
  }, inputRef) => {
@@ -4667,7 +4710,7 @@ const InputInner = ({
4667
4710
  }
4668
4711
  }, []);
4669
4712
  const [countChar, setCountChar] = external_react_default().useState(0);
4670
- const showStatusIcon = () => !disabled && !endElement;
4713
+ const showStatusIconByProps = !disabled && !endElement && showStatusIcon;
4671
4714
  const registerResult = register?.(name, validationSchema);
4672
4715
  const handleCount = e => {
4673
4716
  setCountChar(e.currentTarget.value.length);
@@ -4688,6 +4731,7 @@ const InputInner = ({
4688
4731
  }) : null, (0,jsx_runtime_namespaceObject.jsx)(InputBase, {
4689
4732
  type: type,
4690
4733
  id: `formElement-${name}`,
4734
+ showBorders: showBorders,
4691
4735
  placeholder: placeholder,
4692
4736
  disabled: disabled,
4693
4737
  css: /*#__PURE__*/(0,react_namespaceObject.css)({
@@ -4700,9 +4744,9 @@ const InputInner = ({
4700
4744
  ...registerResult,
4701
4745
  onBlur: handleBlur,
4702
4746
  ref: (0,external_floating_ui_react_namespaceObject.useMergeRefs)([registerResult?.ref, inputRef])
4703
- }), status === 'error' && showStatusIcon() ? (0,jsx_runtime_namespaceObject.jsx)(InputStatusError, {
4747
+ }), status === 'error' && showStatusIconByProps ? (0,jsx_runtime_namespaceObject.jsx)(InputStatusError, {
4704
4748
  errorTooltip: errorTooltip
4705
- }) : null, status === 'success' && showStatusIcon() ? (0,jsx_runtime_namespaceObject.jsx)(InputStatusSuccess, {
4749
+ }) : null, status === 'success' && showStatusIconByProps ? (0,jsx_runtime_namespaceObject.jsx)(InputStatusSuccess, {
4706
4750
  successTooltip: successTooltip
4707
4751
  }) : null, endElement ? (0,jsx_runtime_namespaceObject.jsx)("div", {
4708
4752
  css: styles_endElement,
@@ -5185,16 +5229,16 @@ const DropdownPlaceholderLabel = /*#__PURE__*/base_default()("div", true ? {
5185
5229
  styles: "white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
5186
5230
  } : 0);
5187
5231
 
5188
- /**
5189
- * The structure of the component:
5190
- *
5191
- * MultipleDropdown
5192
- * DropdownToggle
5193
- * MultipleDropdownOptions
5194
- * DropdownOption
5195
- *
5196
- * Aria attributes are set according to
5197
- * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
5232
+ /**
5233
+ * The structure of the component:
5234
+ *
5235
+ * MultipleDropdown
5236
+ * DropdownToggle
5237
+ * MultipleDropdownOptions
5238
+ * DropdownOption
5239
+ *
5240
+ * Aria attributes are set according to
5241
+ * https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
5198
5242
  **/
5199
5243
  function MultipleDropdownInner({
5200
5244
  selectedItems = [],
@@ -5439,8 +5483,8 @@ const NavToggle = ({
5439
5483
 
5440
5484
 
5441
5485
 
5442
- /**
5443
- * UI Component that shows the navigation bar
5486
+ /**
5487
+ * UI Component that shows the navigation bar
5444
5488
  */
5445
5489
  const NavBar = ({
5446
5490
  items
@@ -6690,12 +6734,12 @@ const ProgressVertical = ({
6690
6734
  /* harmony default export */ const ProgressVertical_ProgressVertical = (ProgressVertical);
6691
6735
  ;// ./src/components/ResponsiveImage/ResponsiveImage.tsx
6692
6736
 
6693
- /**
6694
- * A simple wrapper over the `<img />` tag.
6695
- *
6696
- * Don't forget to adjust Device Pixel Ratio in DevTools
6697
- * when testing srcSet, and use Hard Reload to force the
6698
- * browser to load an image of another resolution.
6737
+ /**
6738
+ * A simple wrapper over the `<img />` tag.
6739
+ *
6740
+ * Don't forget to adjust Device Pixel Ratio in DevTools
6741
+ * when testing srcSet, and use Hard Reload to force the
6742
+ * browser to load an image of another resolution.
6699
6743
  * */
6700
6744
  const ResponsiveImage = ({
6701
6745
  src,
@@ -7106,12 +7150,12 @@ const TabBarBase = /*#__PURE__*/base_default()("div", true ? {
7106
7150
  target: "e1hg26v10"
7107
7151
  } : 0)( true ? "" : 0);
7108
7152
 
7109
- /**
7110
- * This component doesn't show contents of the selected tab,
7111
- * however it accepts a required `renderContent()` render
7112
- * prop and stores it into the Context. This lets the parent
7113
- * component to decide where to render the contents of the
7114
- * selected tab.
7153
+ /**
7154
+ * This component doesn't show contents of the selected tab,
7155
+ * however it accepts a required `renderContent()` render
7156
+ * prop and stores it into the Context. This lets the parent
7157
+ * component to decide where to render the contents of the
7158
+ * selected tab.
7115
7159
  * */
7116
7160
  const TabBar = ({
7117
7161
  children
@@ -7428,13 +7472,13 @@ const useTooltipContext = () => {
7428
7472
 
7429
7473
 
7430
7474
 
7431
- /*
7432
- * <Tooltip>
7433
- * <TooltipTrigger>
7434
- * <Button />
7435
- * </TooltipTrigger>
7436
- * <TooltipContent>Tooltip</TooltipContent>
7437
- * </Tooltip>
7475
+ /*
7476
+ * <Tooltip>
7477
+ * <TooltipTrigger>
7478
+ * <Button />
7479
+ * </TooltipTrigger>
7480
+ * <TooltipContent>Tooltip</TooltipContent>
7481
+ * </Tooltip>
7438
7482
  * */
7439
7483
  const Tooltip = ({
7440
7484
  children,
@@ -7908,9 +7952,9 @@ var CardList_ref = true ? {
7908
7952
  name: "1fgo50s",
7909
7953
  styles: "list-style:none;padding:0;li{margin-bottom:15px;}"
7910
7954
  } : 0;
7911
- /**
7912
- *
7913
- * UI Component that renders a list of items with a custom render function
7955
+ /**
7956
+ *
7957
+ * UI Component that renders a list of items with a custom render function
7914
7958
  */
7915
7959
  const CardList = ({
7916
7960
  title,
@@ -8780,8 +8824,8 @@ const SCREEN_SIZES = {
8780
8824
 
8781
8825
 
8782
8826
 
8783
- /**
8784
- * UI Component that shows the collapsible navigation bar
8827
+ /**
8828
+ * UI Component that shows the collapsible navigation bar
8785
8829
  */
8786
8830
 
8787
8831
  const CollapsibleNavBar = ({
@@ -8873,7 +8917,9 @@ const external_luxon_namespaceObject = require("luxon");
8873
8917
 
8874
8918
  const DaysViewCell = /*#__PURE__*/base_default()(Wrapper_Wrapper, true ? {
8875
8919
  target: "e19kqgld2"
8876
- } : 0)("width:40px;height:40px;justify-content:center;font-size:14px;font-weight:500;border-radius:6px;border:", ({
8920
+ } : 0)("position:relative;width:40px;height:40px;justify-content:center;font-size:14px;font-weight:500;border-radius:", ({
8921
+ isHighlighted
8922
+ }) => isHighlighted ? 0 : '6px', ";border:", ({
8877
8923
  theme,
8878
8924
  isCalendarDateNow
8879
8925
  }) => isCalendarDateNow ? `1px solid ${theme.colors.greyFocused}` : 'none', ";color:", ({
@@ -8882,46 +8928,96 @@ const DaysViewCell = /*#__PURE__*/base_default()(Wrapper_Wrapper, true ? {
8882
8928
  }) => isCalendarDateSelected ? theme.colors.white : theme.colors.greyDarker, ";background:", ({
8883
8929
  theme,
8884
8930
  isCalendarDateSelected
8885
- }) => isCalendarDateSelected ? `linear-gradient(247deg, ${theme.colors.blueLighter} 14.71%, ${theme.colors.blue} 85.29%)` : 'none', ";cursor:pointer;user-select:none;&[aria-disabled='true']{color:", ({
8931
+ }) => isCalendarDateSelected && `linear-gradient(247deg, ${theme.colors.blueLighter} 14.71%, ${theme.colors.blue} 85.29%)`, ";cursor:pointer;user-select:none;&[aria-disabled='true']{color:", ({
8886
8932
  theme
8887
- }) => theme.colors.grey, ";cursor:default;pointer-events:none;}&[aria-disabled='false']:hover{background:", ({
8933
+ }) => theme.colors.grey, ";cursor:default;pointer-events:none;}&[aria-disabled='false']{background:", ({
8934
+ theme,
8935
+ isCalendarDateSelected,
8936
+ isHighlighted
8937
+ }) => isHighlighted && !isCalendarDateSelected && theme.colors.blueRoyal16, ";&:hover{background:", ({
8888
8938
  theme
8889
8939
  }) => theme.colors.greyLighter, ";color:", ({
8890
8940
  theme
8891
- }) => theme.colors.greyDarker, ";}&:hover{border:", ({
8941
+ }) => theme.colors.greyDarker, ";}&::before{content:'';display:", ({
8942
+ isCalendarFirstDateSelected,
8943
+ isCalendarSecondDateSelected
8944
+ }) => isCalendarFirstDateSelected || isCalendarSecondDateSelected ? 'block' : 'none', ";position:absolute;width:10px;height:40px;left:", ({
8945
+ isCalendarFirstDateSelected
8946
+ }) => isCalendarFirstDateSelected ? '0' : 'auto', ";right:", ({
8947
+ isCalendarSecondDateSelected
8948
+ }) => isCalendarSecondDateSelected ? '0' : 'auto', ";z-index:-1;background:", ({
8949
+ theme
8950
+ }) => theme.colors.blueRoyal16, ";}}&:hover{border:", ({
8892
8951
  theme,
8893
8952
  isCalendarDateNow
8894
8953
  }) => isCalendarDateNow && `1px solid ${theme.colors.greyFocused}`, ";}" + ( true ? "" : 0));
8895
8954
  const YearsViewCell = /*#__PURE__*/base_default()("div", true ? {
8896
8955
  target: "e19kqgld1"
8897
- } : 0)("display:flex;justify-content:center;align-items:center;width:70px;height:40px;border-radius:6px;font-size:14px;font-weight:500px;user-select:none;cursor:pointer;color:", ({
8956
+ } : 0)("display:flex;justify-content:center;position:relative;align-items:center;width:70px;height:40px;border-radius:", ({
8957
+ isCalendarFirstDateSelected,
8958
+ isCalendarSecondDateSelected
8959
+ }) => isCalendarFirstDateSelected || isCalendarSecondDateSelected ? '6px' : 0, ";font-size:14px;font-weight:500px;user-select:none;cursor:pointer;color:", ({
8898
8960
  theme,
8899
- isCalendarYear
8900
- }) => isCalendarYear && theme.colors.white, ";background:", ({
8961
+ isCalendarYear,
8962
+ isCalendarSecondDateSelected
8963
+ }) => (isCalendarYear || isCalendarSecondDateSelected) && theme.colors.white, ";background:", ({
8901
8964
  theme,
8965
+ isCalendarYear,
8966
+ isCalendarSecondDateSelected
8967
+ }) => isCalendarYear || isCalendarSecondDateSelected ? `linear-gradient(247.37deg, ${theme.colors.blueLighter} 14.71%, ${theme.colors.blue} 85.29%)` : 'none', ";background:", ({
8968
+ theme,
8969
+ isHighlighted,
8902
8970
  isCalendarYear
8903
- }) => isCalendarYear ? `linear-gradient(247.37deg, ${theme.colors.blueLighter} 14.71%, ${theme.colors.blue} 85.29%)` : 'none', ";&:hover{background:", ({
8971
+ }) => isHighlighted && !isCalendarYear && theme.colors.blueRoyal16, ";&:hover{background:", ({
8904
8972
  theme
8905
8973
  }) => theme.colors.greyLighter, ";color:", ({
8906
8974
  theme
8907
- }) => theme.colors.greyDarker, ";}" + ( true ? "" : 0));
8975
+ }) => theme.colors.greyDarker, ";}&::before{content:'';display:", ({
8976
+ isCalendarFirstDateSelected,
8977
+ isCalendarSecondDateSelected
8978
+ }) => isCalendarFirstDateSelected || isCalendarSecondDateSelected ? 'block' : 'none', ";position:absolute;width:10px;height:40px;left:", ({
8979
+ isCalendarSecondDateSelected
8980
+ }) => isCalendarSecondDateSelected ? '0' : 'auto', ";right:", ({
8981
+ isCalendarFirstDateSelected
8982
+ }) => isCalendarFirstDateSelected ? '0' : 'auto', ";z-index:-1;background:", ({
8983
+ theme
8984
+ }) => theme.colors.blueRoyal16, ";}" + ( true ? "" : 0));
8908
8985
  const MonthsViewCell = /*#__PURE__*/base_default()("div", true ? {
8909
8986
  target: "e19kqgld0"
8910
- } : 0)("display:flex;justify-content:center;align-items:center;width:99px;height:40px;border-radius:6px;font-size:14px;font-weight:500px;cursor:pointer;color:", ({
8987
+ } : 0)("display:flex;justify-content:center;position:relative;align-items:center;width:99px;height:40px;border-radius:", ({
8988
+ isCalendarFirstDateSelected,
8989
+ isCalendarSecondDateSelected
8990
+ }) => isCalendarFirstDateSelected || isCalendarSecondDateSelected ? '6px' : 0, ";font-size:14px;font-weight:500;cursor:pointer;color:", ({
8911
8991
  theme,
8912
- isCalendarMonth
8913
- }) => isCalendarMonth && theme.colors.white, ";user-select:none;background:", ({
8992
+ isCalendarMonth,
8993
+ isCalendarSecondDateSelected
8994
+ }) => (isCalendarMonth || isCalendarSecondDateSelected) && theme.colors.white, ";user-select:none;background:", ({
8914
8995
  theme,
8915
- isCalendarMonth
8916
- }) => isCalendarMonth ? `linear-gradient(247.37deg, ${theme.colors.blueLighter} 14.71%, ${theme.colors.blue} 85.29%)` : 'none', ";&[aria-disabled='true']{cursor:default;pointer-events:none;color:", ({
8996
+ isCalendarMonth,
8997
+ isCalendarSecondDateSelected
8998
+ }) => isCalendarMonth || isCalendarSecondDateSelected ? `linear-gradient(247.37deg, ${theme.colors.blueLighter} 14.71%, ${theme.colors.blue} 85.29%)` : 'none', ";&[aria-disabled='true']{cursor:default;pointer-events:none;color:", ({
8917
8999
  theme
8918
9000
  }) => theme.colors.greyDarker, ";background:", ({
8919
9001
  theme
8920
- }) => theme.colors.grey, ";}&[aria-disabled='false']:hover{background:", ({
9002
+ }) => theme.colors.grey, ";}&[aria-disabled='false']{background:", ({
9003
+ theme,
9004
+ isHighlighted,
9005
+ isCalendarMonth,
9006
+ isCalendarSecondDateSelected
9007
+ }) => isHighlighted && !isCalendarMonth && !isCalendarSecondDateSelected && theme.colors.blueRoyal16, ";&:hover{background:", ({
8921
9008
  theme
8922
9009
  }) => theme.colors.greyLighter, ";color:", ({
8923
9010
  theme
8924
- }) => theme.colors.greyDarker, ";}" + ( true ? "" : 0));
9011
+ }) => theme.colors.greyDarker, ";}&::before{content:'';display:", ({
9012
+ isCalendarFirstDateSelected,
9013
+ isCalendarSecondDateSelected
9014
+ }) => isCalendarFirstDateSelected || isCalendarSecondDateSelected ? 'block' : 'none', ";position:absolute;width:10px;height:40px;left:", ({
9015
+ isCalendarSecondDateSelected
9016
+ }) => isCalendarSecondDateSelected ? '0' : 'auto', ";right:", ({
9017
+ isCalendarFirstDateSelected
9018
+ }) => isCalendarFirstDateSelected ? '0' : 'auto', ";z-index:-1;background:", ({
9019
+ theme
9020
+ }) => theme.colors.blueRoyal16, ";}}" + ( true ? "" : 0));
8925
9021
  ;// ./src/components/DatePicker/utils/dates.ts
8926
9022
 
8927
9023
  const getDaysForCalendarMonth = date => {
@@ -9080,6 +9176,12 @@ const useDatePicker = ({
9080
9176
  });
9081
9177
  const [isLoading, setLoading] = (0,external_react_namespaceObject.useState)(true);
9082
9178
  const [dateTime, setDateTime] = (0,external_react_namespaceObject.useState)();
9179
+ const [lastChangedDate, setLastChangedDate] = (0,external_react_namespaceObject.useState)(undefined);
9180
+ const [dateTimeForChangeEvent, setDateTimeForChangeEvent] = (0,external_react_namespaceObject.useState)(undefined);
9181
+ const [currentError, setCurrentError] = (0,external_react_namespaceObject.useState)({
9182
+ date: null,
9183
+ error: null
9184
+ });
9083
9185
  const [isOpen, setIsOpen] = (0,external_react_namespaceObject.useState)(false);
9084
9186
  const splittedFormat = format.split('/');
9085
9187
  const [formatIndexes, setFormatIndexes] = (0,external_react_namespaceObject.useState)({
@@ -9108,6 +9210,31 @@ const useDatePicker = ({
9108
9210
  month: dateMinParts[formatIndexes['month']],
9109
9211
  day: dateMinParts[formatIndexes['day']]
9110
9212
  });
9213
+ const safeOnChange = newDateTime => {
9214
+ const _newDateTime = newDateTime ? newDateTime.startOf('day') : undefined;
9215
+ const _dateTimeForChangeEvent = dateTimeForChangeEvent ? dateTimeForChangeEvent.startOf('day') : undefined;
9216
+ if (_newDateTime?.toMillis() !== _dateTimeForChangeEvent?.toMillis()) {
9217
+ setDateTimeForChangeEvent(newDateTime);
9218
+ if (_newDateTime) {
9219
+ setLastChangedDate(_newDateTime.toJSDate());
9220
+ onChange?.(_newDateTime.toJSDate());
9221
+ } else {
9222
+ setLastChangedDate(undefined);
9223
+ onChange?.();
9224
+ }
9225
+ }
9226
+ };
9227
+
9228
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9229
+ const safeOnError = (date, error) => {
9230
+ if (currentError.date !== date && currentError.error !== error) {
9231
+ setCurrentError({
9232
+ date,
9233
+ error
9234
+ });
9235
+ onError?.(date, error);
9236
+ }
9237
+ };
9111
9238
  const processValue = newValue => {
9112
9239
  const newDateTime = typeof newValue === 'string' && newValue.length === 10 ? external_luxon_namespaceObject.DateTime.fromFormat(newValue, luxonFormat) : undefined;
9113
9240
  if (!newDateTime?.isValid) {
@@ -9118,8 +9245,8 @@ const useDatePicker = ({
9118
9245
  shouldFocus: true
9119
9246
  });
9120
9247
  setDateTime(undefined);
9121
- onChange?.();
9122
- onError?.(newValue, errorMessage);
9248
+ safeOnChange();
9249
+ safeOnError?.(newValue, errorMessage);
9123
9250
  } else if (newDateTime !== undefined) {
9124
9251
  if (newDateTime < dateMinDT || newDateTime > dateMaxDT) {
9125
9252
  const errorMessage = OUT_OF_RANGE;
@@ -9129,23 +9256,25 @@ const useDatePicker = ({
9129
9256
  shouldFocus: true
9130
9257
  });
9131
9258
  setDateTime(undefined);
9132
- onError?.(newValue, errorMessage);
9133
- onChange?.();
9259
+ safeOnError?.(newValue, errorMessage);
9260
+ safeOnChange();
9134
9261
  } else {
9135
9262
  setDateTime(newDateTime);
9136
9263
  clearErrors();
9137
- onError?.(null);
9138
- onChange?.(newDateTime.toJSDate());
9264
+ safeOnError?.(null);
9265
+ safeOnChange?.(newDateTime);
9139
9266
  }
9140
9267
  }
9141
9268
  };
9142
9269
  const handleBlur = event => {
9143
9270
  event.preventDefault();
9144
9271
  const blurredValue = event.currentTarget.value;
9145
- processValue(blurredValue);
9272
+ if (blurredValue.length > 0) {
9273
+ processValue(blurredValue);
9274
+ }
9146
9275
  };
9147
9276
  (0,external_react_namespaceObject.useEffect)(() => {
9148
- if (typeof inputValue === 'string' && inputValue.length < 10) {
9277
+ if (typeof inputValue === 'string' && inputValue.length && inputValue.length < 10) {
9149
9278
  setIsOpen(false);
9150
9279
  setTimeout(() => {
9151
9280
  maskInputRef.current.focus();
@@ -9239,6 +9368,9 @@ const useDatePicker = ({
9239
9368
  calendarViewDateTime,
9240
9369
  maskInputRef,
9241
9370
  calendarType,
9371
+ lastChangedDate,
9372
+ luxonFormat,
9373
+ safeOnChange,
9242
9374
  setCalendarType,
9243
9375
  setCalendarViewDateTime,
9244
9376
  setDateTime,
@@ -9261,6 +9393,7 @@ const DatePickerContext = /*#__PURE__*/(0,external_react_namespaceObject.createC
9261
9393
  inputRef: {
9262
9394
  current: null
9263
9395
  },
9396
+ inputProps: {},
9264
9397
  isOpen: false,
9265
9398
  calendarType: 'days',
9266
9399
  inputValue: undefined,
@@ -9301,6 +9434,11 @@ const DatePickerProvider = ({
9301
9434
  restHook.handleBlur(e);
9302
9435
  rest.onBlur?.(e);
9303
9436
  };
9437
+ (0,external_react_namespaceObject.useEffect)(() => {
9438
+ if (typeof rest.isOpenToggle === 'boolean') {
9439
+ restHook.setIsOpen(current => !current);
9440
+ }
9441
+ }, [rest.isOpenToggle]);
9304
9442
  return (0,jsx_runtime_namespaceObject.jsx)(DatePickerContext.Provider, {
9305
9443
  value: {
9306
9444
  ...rest,
@@ -9344,16 +9482,23 @@ const DaysView = () => {
9344
9482
  calendarViewDateTime,
9345
9483
  dateMinDT,
9346
9484
  dateMaxDT,
9485
+ lastChangedDate,
9486
+ highlightDates,
9347
9487
  setCalendarViewDateTime,
9348
9488
  setDateTime,
9349
9489
  setIsOpen,
9350
- onChange
9490
+ safeOnChange
9351
9491
  } = useDatePickerContext();
9352
9492
  const selectedDateTime = dateTime?.toFormat('D');
9353
9493
  const currentDate = calendarViewDateTime?.toJSDate();
9354
9494
  const currentMonth = currentDate?.getMonth();
9355
9495
  const dates = getDaysForCalendarMonth(currentDate);
9356
9496
  const nowDate = external_luxon_namespaceObject.DateTime.fromJSDate(new Date()).toFormat('D');
9497
+ const isHighlightEnabled = !!highlightDates?.enabled;
9498
+ const {
9499
+ otherDate
9500
+ } = highlightDates || {};
9501
+ const otherDateDT = otherDate && external_luxon_namespaceObject.DateTime.fromJSDate(otherDate);
9357
9502
  const handleDaySelect = event => {
9358
9503
  const {
9359
9504
  target
@@ -9366,7 +9511,7 @@ const DaysView = () => {
9366
9511
  });
9367
9512
  setCalendarViewDateTime(newDate);
9368
9513
  setDateTime(newDate);
9369
- onChange?.(newDate?.toJSDate());
9514
+ safeOnChange?.(newDate);
9370
9515
  setIsOpen(false);
9371
9516
  }
9372
9517
  };
@@ -9387,8 +9532,14 @@ const DaysView = () => {
9387
9532
  const calendarMonth = currentDate.getMonth();
9388
9533
  const ariaLabel = currentDT.toLocaleString(external_luxon_namespaceObject.DateTime.DATE_HUGE);
9389
9534
  const isCalendarDateNow = nowDate === calendarDate;
9390
- const isCalendarDateSelected = selectedDateTime === calendarDate;
9391
9535
  const isCalendarMonth = currentMonth === calendarMonth;
9536
+ const isCalendarFirstDateSelected = calendarDate === selectedDateTime;
9537
+ const isCalendarSecondDateSelected = calendarDate === otherDateDT?.toFormat('D');
9538
+ const isCalendarDateSelected = isCalendarFirstDateSelected || isCalendarSecondDateSelected;
9539
+ let isHighlightDate = false;
9540
+ if (isHighlightEnabled && lastChangedDate && otherDateDT && dateTime) {
9541
+ isHighlightDate = highlightDates.mode === 'dateTo' ? otherDateDT < currentDT && currentDT < dateTime : dateTime < currentDT && currentDT < otherDateDT;
9542
+ }
9392
9543
  let isAriaDisabled = false;
9393
9544
  if (dateMinDT && dateMaxDT) {
9394
9545
  isAriaDisabled = currentDT < dateMinDT || currentDT > dateMaxDT || !isCalendarMonth;
@@ -9405,6 +9556,9 @@ const DaysView = () => {
9405
9556
  "aria-label": ariaLabel,
9406
9557
  isCalendarDateNow: isCalendarDateNow,
9407
9558
  isCalendarDateSelected: isCalendarDateSelected,
9559
+ isCalendarFirstDateSelected: isCalendarFirstDateSelected,
9560
+ isCalendarSecondDateSelected: isCalendarSecondDateSelected,
9561
+ isHighlighted: isHighlightDate,
9408
9562
  children: calendarDay
9409
9563
  }, `day-${currentDate.getFullYear()}-${currentDate.getMonth()}-${currentDate.getDate()}-${index}`);
9410
9564
  })
@@ -9425,14 +9579,22 @@ var MonthsView_ref = true ? {
9425
9579
  } : 0;
9426
9580
  const MonthsView = () => {
9427
9581
  const {
9582
+ dateTime,
9428
9583
  calendarViewDateTime,
9429
9584
  dateMinDT,
9430
9585
  dateMaxDT,
9586
+ lastChangedDate,
9587
+ highlightDates,
9431
9588
  setCalendarType,
9432
9589
  setDateTime,
9433
9590
  setCalendarViewDateTime,
9434
9591
  onMonthChange
9435
9592
  } = useDatePickerContext();
9593
+ const isHighlightEnabled = !!highlightDates?.enabled;
9594
+ const {
9595
+ otherDate
9596
+ } = highlightDates || {};
9597
+ const otherDateDT = otherDate && external_luxon_namespaceObject.DateTime.fromJSDate(otherDate);
9436
9598
  const handleMonthSelect = event => {
9437
9599
  const {
9438
9600
  target
@@ -9467,10 +9629,19 @@ const MonthsView = () => {
9467
9629
  const isMinMonthReached = dateMinDT ? currentMonthDT.month < dateMinDT.month && currentMonthDT.year === dateMinDT.year : false;
9468
9630
  const isMaxMonthReached = dateMaxDT ? currentMonthDT.month > dateMaxDT.month && currentMonthDT.year === dateMaxDT.year : false;
9469
9631
  const isAriaDisabled = isMinMonthReached || isMaxMonthReached;
9632
+ const isCalendarFirstDateSelected = currentMonthDT.toFormat('yyyy-MM') === dateTime?.toFormat('yyyy-MM');
9633
+ const isCalendarSecondDateSelected = currentMonthDT.toFormat('yyyy-MM') === otherDateDT?.toFormat('yyyy-MM');
9634
+ let isHighlightDate = false;
9635
+ if (isHighlightEnabled && lastChangedDate && otherDateDT && dateTime) {
9636
+ isHighlightDate = highlightDates.mode === 'dateTo' ? otherDateDT < currentMonthDT && currentMonthDT < dateTime : dateTime < currentMonthDT && currentMonthDT < otherDateDT;
9637
+ }
9470
9638
  return (0,jsx_runtime_namespaceObject.jsx)(MonthsViewCell, {
9471
9639
  isCalendarMonth: isCalendarMonth,
9472
9640
  "aria-disabled": isAriaDisabled,
9473
9641
  "aria-label": `${month}, ${calendarViewDateTime?.year}`,
9642
+ isCalendarFirstDateSelected: isCalendarFirstDateSelected,
9643
+ isCalendarSecondDateSelected: isCalendarSecondDateSelected,
9644
+ isHighlighted: isHighlightDate,
9474
9645
  children: month
9475
9646
  }, month);
9476
9647
  })
@@ -9484,16 +9655,20 @@ function YearsView_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to
9484
9655
 
9485
9656
 
9486
9657
 
9658
+
9487
9659
  var YearsView_ref = true ? {
9488
9660
  name: "1n393qe",
9489
9661
  styles: "flex-wrap:wrap;overflow-y:auto;height:280px;align-content:flex-start"
9490
9662
  } : 0;
9491
9663
  const YearsView = () => {
9492
9664
  const {
9665
+ dateTime,
9493
9666
  calendarViewDateTime,
9494
9667
  dateMinParts,
9495
9668
  dateMaxParts,
9496
9669
  formatIndexes,
9670
+ lastChangedDate,
9671
+ highlightDates,
9497
9672
  setCalendarType,
9498
9673
  setCalendarViewDateTime,
9499
9674
  setDateTime,
@@ -9504,6 +9679,11 @@ const YearsView = () => {
9504
9679
  yearsFrom: dateMinParts[formatIndexes['year']],
9505
9680
  yearsCount: dateMaxParts[formatIndexes['year']] - dateMinParts[formatIndexes['year']] + 1
9506
9681
  });
9682
+ const isHighlightEnabled = !!highlightDates?.enabled;
9683
+ const {
9684
+ otherDate
9685
+ } = highlightDates || {};
9686
+ const otherDateDT = otherDate && external_luxon_namespaceObject.DateTime.fromJSDate(otherDate);
9507
9687
  (0,external_react_namespaceObject.useEffect)(() => {
9508
9688
  if (calendarViewDateTime && wrapper.current) {
9509
9689
  wrapper.current.querySelector('[aria-current=date]')?.scrollIntoView({
@@ -9537,8 +9717,17 @@ const YearsView = () => {
9537
9717
  if (isCalendarYear) {
9538
9718
  additionalProps['aria-current'] = 'date';
9539
9719
  }
9720
+ const isCalendarFirstDateSelected = year.toString() === dateTime?.toFormat('yyyy');
9721
+ const isCalendarSecondDateSelected = year.toString() === otherDateDT?.toFormat('yyyy');
9722
+ let isHighlightDate = false;
9723
+ if (isHighlightEnabled && lastChangedDate && otherDateDT && dateTime) {
9724
+ isHighlightDate = highlightDates.mode === 'dateTo' ? otherDateDT.year < year && year < dateTime.year : dateTime.year < year && year < otherDateDT.year;
9725
+ }
9540
9726
  return (0,jsx_runtime_namespaceObject.jsx)(YearsViewCell, {
9541
9727
  isCalendarYear: isCalendarYear,
9728
+ isCalendarFirstDateSelected: isCalendarFirstDateSelected,
9729
+ isCalendarSecondDateSelected: isCalendarSecondDateSelected,
9730
+ isHighlighted: isHighlightDate,
9542
9731
  ...additionalProps,
9543
9732
  children: year
9544
9733
  }, `year-${year}`);
@@ -9738,11 +9927,17 @@ const DatePickerTrigger = () => {
9738
9927
  label,
9739
9928
  openCalendarMode,
9740
9929
  inputRef,
9930
+ inputProps,
9741
9931
  disabled,
9742
9932
  helperText,
9933
+ showCalendarIcon,
9743
9934
  onBlur: handleBlur,
9744
9935
  setIsOpen
9745
9936
  } = useDatePickerContext();
9937
+ const {
9938
+ inputProps: inputElementProps,
9939
+ ...restInputProps
9940
+ } = inputProps || {};
9746
9941
  const formContext = (0,external_react_hook_form_namespaceObject.useFormContext)(); // Using FormProvider from react-hook-form
9747
9942
  const useFormResult = (0,external_react_hook_form_namespaceObject.useForm)();
9748
9943
  const theme = (0,react_namespaceObject.useTheme)();
@@ -9763,25 +9958,29 @@ const DatePickerTrigger = () => {
9763
9958
  if (openCalendarMode === 'both' || openCalendarMode === 'input' && tagName === 'input' || openCalendarMode === 'icon' && tagName === 'button') {
9764
9959
  toggleOpen();
9765
9960
  }
9961
+ if (e.currentTarget instanceof HTMLInputElement) {
9962
+ inputProps?.inputProps?.onClick?.(e);
9963
+ }
9766
9964
  };
9767
9965
  return (0,jsx_runtime_namespaceObject.jsxs)((external_react_default()).Fragment, {
9768
9966
  children: [label && (0,jsx_runtime_namespaceObject.jsx)(Label_Label, {
9769
- htmlFor: `field-${name}`,
9967
+ htmlFor: name,
9770
9968
  children: label
9771
9969
  }), (0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
9772
9970
  asChild: true,
9773
9971
  children: (0,jsx_runtime_namespaceObject.jsx)(Input_Input, {
9774
9972
  name: name,
9775
9973
  placeholder: format,
9776
- showHelperText: true,
9777
9974
  ref: inputRef,
9778
9975
  disabled: disabled,
9779
9976
  register: register,
9780
9977
  inputProps: {
9781
9978
  onBlur: handleBlur,
9782
9979
  onClick: handleToggleOpen,
9783
- id: `field-${name}`,
9784
- 'data-testid': 'datepicker-input'
9980
+ id: inputProps?.inputProps?.id || name,
9981
+ 'data-testid': 'datepicker-input',
9982
+ autoComplete: 'off',
9983
+ ...inputElementProps
9785
9984
  },
9786
9985
  errors: fieldError,
9787
9986
  status: fieldStatus,
@@ -9790,7 +9989,7 @@ const DatePickerTrigger = () => {
9790
9989
  name: "lhoo11",
9791
9990
  styles: "&>span::first-letter{text-transform:uppercase;}"
9792
9991
  } : 0),
9793
- endElement: (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
9992
+ endElement: showCalendarIcon ? (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
9794
9993
  endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
9795
9994
  name: "calendar",
9796
9995
  size: 16,
@@ -9808,7 +10007,8 @@ const DatePickerTrigger = () => {
9808
10007
  display: 'none'
9809
10008
  }
9810
10009
  }, true ? "" : 0, true ? "" : 0)
9811
- })
10010
+ }) : undefined,
10011
+ ...restInputProps
9812
10012
  })
9813
10013
  })]
9814
10014
  });
@@ -9842,11 +10042,15 @@ const DatePickerContent = () => {
9842
10042
  const DatePickerInner = ({
9843
10043
  format = DEFAULT_MASK_FORMAT,
9844
10044
  openCalendarMode = 'icon',
10045
+ showCalendarIcon = true,
10046
+ isOpenToggle,
9845
10047
  ...rest
9846
10048
  }, inputRef) => (0,jsx_runtime_namespaceObject.jsx)(DatePickerProvider, {
9847
10049
  format: format,
9848
10050
  openCalendarMode: openCalendarMode,
9849
10051
  inputRef: inputRef,
10052
+ showCalendarIcon: showCalendarIcon,
10053
+ isOpenToggle: isOpenToggle,
9850
10054
  ...rest,
9851
10055
  children: (0,jsx_runtime_namespaceObject.jsx)(DatePickerContent, {})
9852
10056
  });
@@ -9856,128 +10060,877 @@ const DatePicker = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(Da
9856
10060
  ;// ./src/components/Field/FieldProvider.ts
9857
10061
 
9858
10062
  const [FieldProvider, useFieldContext] = (0,hooks_namespaceObject.createSafeContext)('useFieldContext must be used within a FieldProvider');
9859
- ;// ./src/components/Field/index.ts
9860
-
9861
-
10063
+ ;// ./src/components/Field/FieldRoot.tsx
9862
10064
 
9863
- ;// ./src/components/TableFilters/styles.ts
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)."; }
9865
10065
 
9866
- const tableFilterPopoverContentStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)("border:1px solid ", theme.colors.greyDropdownMain, ";border-radius:20px;padding:20px 20px 14px 18px;width:340px;background:", theme.colors.white, ";z-index:1;" + ( true ? "" : 0), true ? "" : 0);
9867
- const tableFilterDividerStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)("border:1px solid ", theme.colors.greyDropdownMain, ";width:calc(100% + 38px);margin:22px auto 14px -19px;" + ( true ? "" : 0), true ? "" : 0);
9868
- const baseButtonStyle = true ? {
9869
- name: "jk3zq0",
9870
- styles: "padding:0 14px;height:38px;border-radius:5px;font-size:14px;font-weight:600;&:hover{box-shadow:none;}"
9871
- } : 0;
9872
- ;// ./src/components/TableFilters/TableFilterTrigger.tsx
9873
10066
 
10067
+ const FieldRoot = ({
10068
+ children,
10069
+ ...props
10070
+ }) => {
10071
+ const {
10072
+ disabled = false,
10073
+ status = 'basic',
10074
+ forwardFocus = true,
10075
+ asChild = false,
10076
+ ...divProps
10077
+ } = props;
10078
+ const Wrapper = asChild ? external_react_namespaceObject.Fragment : 'div';
10079
+ const wrapperProps = asChild ? {} : divProps;
10080
+ return (0,jsx_runtime_namespaceObject.jsx)(Wrapper, {
10081
+ ...wrapperProps,
10082
+ children: (0,jsx_runtime_namespaceObject.jsx)(FieldProvider, {
10083
+ value: {
10084
+ disabled,
10085
+ status,
10086
+ forwardFocus
10087
+ },
10088
+ children: children
10089
+ })
10090
+ });
10091
+ };
10092
+ ;// ./src/components/Field/FieldLabel.tsx
9874
10093
 
9875
10094
 
9876
10095
 
9877
- const filterButtonStyles = count => theme => /*#__PURE__*/(0,react_namespaceObject.css)("height:40px;color:", theme.colors.greyDisabled, ";background:", theme.colors.white, ";border:1px solid ", theme.colors.greyDropdownMain, ";border-radius:6.5px;padding:0 11px 0 13px;font-size:14px;letter-spacing:normal;gap:5px;user-select:none;&::before{display:block;content:'\"Filter\"';content:", count ? '"More"' : '"Filter"', ";}@media screen and (min-width: 900px){&::before{content:'More';}}&:hover{border-color:", theme.colors.greyDropdownFocused, ";}&:active{border-color:", theme.colors.blueNotification, ";}&:disabled{background:", theme.colors.grey, ";}" + ( true ? "" : 0), true ? "" : 0);
9878
- const TableFilterTrigger = ({
10096
+ const FieldLabel = ({
9879
10097
  children,
9880
- count,
9881
- ...rest
10098
+ ...props
9882
10099
  }) => {
9883
- const theme = (0,react_namespaceObject.useTheme)();
9884
- return (0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
9885
- variant: "custom",
9886
- css: filterButtonStyles(count),
9887
- endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
9888
- name: "filter",
9889
- color: theme.colors.greyFilterIcon,
9890
- size: 20
9891
- }),
9892
- ...rest,
10100
+ const ctx = useFieldContext();
10101
+ return (0,jsx_runtime_namespaceObject.jsx)(Label_Label, {
10102
+ isDisabled: ctx.disabled,
10103
+ ...props,
9893
10104
  children: children
9894
10105
  });
9895
10106
  };
9896
- ;// ./src/components/TableFilters/TableFilterTriggerWithNotification.tsx
9897
- function TableFilterTriggerWithNotification_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)."; }
10107
+ ;// ./src/components/Field/FieldControl.tsx
9898
10108
 
9899
10109
 
9900
10110
 
9901
10111
 
9902
- var TableFilterTriggerWithNotification_ref = true ? {
9903
- name: "3e57yb",
9904
- styles: "width:16px;height:16px;min-width:16px;display:flex;justify-content:center;align-items:center"
9905
- } : 0;
9906
- const TableFilterTriggerWithNotification = ({
9907
- children,
9908
- count,
9909
- visible = true
10112
+ const FieldControlBase = /*#__PURE__*/base_default()("div", true ? {
10113
+ target: "e1lr2tz0"
10114
+ } : 0)("display:flex;align-items:center;min-height:44px;height:auto;border-radius:8px;overflow:hidden;border:1px solid ", ({
10115
+ status,
10116
+ theme
9910
10117
  }) => {
9911
- const theme = (0,react_namespaceObject.useTheme)();
9912
- const css = {
9913
- display: visible ? 'flex' : 'none'
10118
+ if (status === 'error') return theme.colors.red;
10119
+ if (status === 'success') return theme.colors.greenLighter;
10120
+ return theme.colors.grey;
10121
+ }, ";background:", ({
10122
+ disabled,
10123
+ theme
10124
+ }) => disabled ? theme.colors.greyLighter : theme.colors.white, ";&>*{background:transparent;}&:active,&:hover{background:", ({
10125
+ disabled,
10126
+ theme
10127
+ }) => disabled ? theme.colors.greyLighter : theme.colors.white, ";box-shadow:none;}&:hover{cursor:", ({
10128
+ disabled
10129
+ }) => disabled ? 'default' : 'pointer', ";}&:focus-within,&:active{border-color:", ({
10130
+ status,
10131
+ disabled,
10132
+ theme
10133
+ }) => {
10134
+ if (disabled) return theme.colors.grey;
10135
+ if (status === 'error') return theme.colors.red;
10136
+ if (status === 'success') return theme.colors.greenLighter;
10137
+ return theme.colors.blueRoyal;
10138
+ }, ";}" + ( true ? "" : 0));
10139
+ const isForwardRefComponent = component => {
10140
+ if (typeof component.type === 'object' && component.type.$$typeof?.toString() === 'Symbol(react.forward_ref)') {
10141
+ return true;
10142
+ }
10143
+ return false;
10144
+ };
10145
+ const FieldControl = /*#__PURE__*/external_react_default().forwardRef(function FieldControl({
10146
+ children,
10147
+ controlRef,
10148
+ ...props
10149
+ }, ref) {
10150
+ const ctx = useFieldContext();
10151
+ const baseProps = {
10152
+ ...props,
10153
+ ...ctx
9914
10154
  };
9915
- if (count) {
9916
- css.background = theme.colors.blueDropdownWithSelectedItems;
9917
- css.borderColor = theme.colors.blueDropdownWithSelectedItemsBorder;
10155
+ const internalRef = (0,external_react_namespaceObject.useRef)(null);
10156
+ let _children = typeof children === 'function' ? children(ctx) : children;
10157
+ if (ctx.forwardFocus && /*#__PURE__*/(0,external_react_namespaceObject.isValidElement)(_children) && isForwardRefComponent(_children)) {
10158
+ const setRef = defaultRef => element => {
10159
+ internalRef.current = element;
10160
+ if (defaultRef) {
10161
+ if (typeof defaultRef === 'function') {
10162
+ defaultRef(element);
10163
+ } else {
10164
+ defaultRef.current = element;
10165
+ }
10166
+ }
10167
+ };
10168
+ _children = /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(_children, {
10169
+ ref: setRef(children.ref)
10170
+ });
9918
10171
  }
9919
- return (0,jsx_runtime_namespaceObject.jsxs)(TableFilterTrigger, {
9920
- css: css,
9921
- count: count,
9922
- children: [children, count ? (0,jsx_runtime_namespaceObject.jsx)(MultipleDropdownNotification_MultipleDropdownNotification, {
9923
- as: 'div',
9924
- css: TableFilterTriggerWithNotification_ref,
9925
- "data-testid": 'trigger-notification',
9926
- children: count
9927
- }) : '']
10172
+ return (0,jsx_runtime_namespaceObject.jsx)(FieldControlBase, {
10173
+ ...baseProps,
10174
+ ref: ref,
10175
+ onClick: event => {
10176
+ baseProps.onClick?.(event);
10177
+ if (controlRef) {
10178
+ controlRef.current?.focus?.();
10179
+ } else if (internalRef.current) {
10180
+ internalRef.current?.focus?.();
10181
+ }
10182
+ },
10183
+ children: _children
9928
10184
  });
9929
- };
9930
- ;// ./src/components/TableFilters/TableFiltersAccordion.tsx
9931
-
9932
-
9933
-
9934
- const TableFiltersAccordion = props => (0,jsx_runtime_namespaceObject.jsx)(Accordion, {
9935
- ...props,
9936
- css: /*#__PURE__*/(0,react_namespaceObject.css)({
9937
- display: props.isHidden ? 'none' : 'flex',
9938
- padding: '10px 0',
9939
- '&:last-child': {
9940
- paddingBottom: 0
9941
- }
9942
- }, true ? "" : 0, true ? "" : 0)
9943
10185
  });
9944
- ;// ./src/components/TableFilters/TableFiltersAccordionContent.tsx
9945
-
10186
+ ;// ./src/components/Field/FieldDescription.tsx
9946
10187
 
9947
10188
 
9948
- const TableFiltersAccordionContent = ({
9949
- isOpened,
9950
- children,
9951
- ...rest
9952
- }) => (0,jsx_runtime_namespaceObject.jsx)(AccordionContent, {
9953
- ...rest,
9954
- isOpened: isOpened,
9955
- css: /*#__PURE__*/(0,react_namespaceObject.css)({
9956
- padding: isOpened ? '18px 3px 5px 3px' : 0
9957
- }, true ? "" : 0, true ? "" : 0),
9958
- children: children
9959
- });
9960
- ;// ./src/components/TableFilters/TableFilterCheckbox.tsx
9961
10189
 
10190
+ const FieldDescription = ({
10191
+ children
10192
+ }) => {
10193
+ const ctx = useFieldContext();
10194
+ if (ctx.status !== 'basic') {
10195
+ return null;
10196
+ }
10197
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10198
+ status: "basic",
10199
+ children: children
10200
+ });
10201
+ };
10202
+ ;// ./src/components/Field/FieldError.tsx
9962
10203
 
9963
10204
 
9964
10205
 
9965
- const getStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)("margin:0 0 14px;& span{margin-left:16px;color:", theme.colors.greyDisabled, ";user-select:none;}& input+div{border-radius:2px;&::before{border-radius:2px;}}", checkboxStyles.blueInput(theme), ";" + ( true ? "" : 0), true ? "" : 0);
9966
- const TableFilterCheckbox = props => {
9967
- const theme = (0,react_namespaceObject.useTheme)();
9968
- const styles = getStyles(theme);
9969
- return (0,jsx_runtime_namespaceObject.jsx)(Checkbox_Checkbox, {
9970
- ...props,
9971
- css: styles
10206
+ const FieldError = ({
10207
+ children
10208
+ }) => {
10209
+ const ctx = useFieldContext();
10210
+ if (ctx.status !== 'error') {
10211
+ return null;
10212
+ }
10213
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10214
+ status: "error",
10215
+ children: children
9972
10216
  });
9973
10217
  };
9974
- ;// ./src/components/Popover/PopoverClose.tsx
9975
-
10218
+ ;// ./src/components/Field/FieldSuccess.tsx
9976
10219
 
9977
10220
 
9978
10221
 
9979
- const PopoverClose = /*#__PURE__*/external_react_namespaceObject.forwardRef(function PopoverClose(props, ref) {
9980
- const {
10222
+ const FieldSuccess = ({
10223
+ children
10224
+ }) => {
10225
+ const ctx = useFieldContext();
10226
+ if (ctx.status !== 'success') {
10227
+ return null;
10228
+ }
10229
+ return (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
10230
+ status: "success",
10231
+ children: children
10232
+ });
10233
+ };
10234
+ ;// ./src/components/DateRangePicker/constants.ts
10235
+ const constants_DEFAULT_MASK_FORMAT = 'mm/dd/yyyy';
10236
+ const constants_DEFAULT_MASK = '__/__/____';
10237
+ const constants_MONTHS = (/* unused pure expression or super */ null && (['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']));
10238
+ const constants_DATE_MIN = '01/01/1900';
10239
+ const constants_DATE_MAX = '01/01/2150';
10240
+ const constants_OUT_OF_RANGE = 'The date is out of the defined range';
10241
+ const constants_INVALID_DATE = 'Invalid date';
10242
+ ;// ./src/components/DateRangePicker/DateRangePicker.tsx
10243
+
10244
+ function DateRangePicker_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)."; }
10245
+
10246
+
10247
+
10248
+
10249
+
10250
+
10251
+
10252
+ // keep the same place for datepicker (from / to)
10253
+ // don't close the datepicker while switching between from / to
10254
+ // add errors (date to less than date from...)
10255
+ // add a logic to reset date to when date to less than date from
10256
+ // create subcomponents
10257
+ // hover daterange effect for the datepicker (from design)
10258
+
10259
+ var DateRangePicker_ref = true ? {
10260
+ name: "mwgsbg",
10261
+ styles: "& input{border:none !important;}"
10262
+ } : 0;
10263
+ var DateRangePicker_ref2 = true ? {
10264
+ name: "jpxugn",
10265
+ styles: "margin:0 14px"
10266
+ } : 0;
10267
+ var DateRangePicker_ref3 = true ? {
10268
+ name: "ud49p1",
10269
+ styles: "color:inherit;&::first-letter{text-transform:uppercase;}"
10270
+ } : 0;
10271
+ const DateRangePicker = ({
10272
+ format = constants_DEFAULT_MASK_FORMAT,
10273
+ openCalendarMode = 'both',
10274
+ name,
10275
+ label,
10276
+ value,
10277
+ defaultValue,
10278
+ ...rest
10279
+ }) => {
10280
+ const theme = (0,react_namespaceObject.useTheme)();
10281
+ // const [_value, _setValue] = useState(value || []);
10282
+ const formContext = (0,external_react_hook_form_namespaceObject.useFormContext)();
10283
+ const [currentStatus, setCurrentStatus] = (0,external_react_namespaceObject.useState)(rest.status);
10284
+ const errorsFrom = formContext.formState.errors[`${name}From`]?.message;
10285
+ const errorsTo = formContext.formState.errors[`${name}To`]?.message;
10286
+ const errorMessage = [errorsFrom, errorsTo].filter(Boolean);
10287
+ const {
10288
+ disabled
10289
+ } = rest;
10290
+ const [fromOpenToggle, setFromOpenToggle] = (0,external_react_namespaceObject.useState)();
10291
+ const [toOpenToggle, setToOpenToggle] = (0,external_react_namespaceObject.useState)();
10292
+ const [changedDate, setChangedDate] = (0,external_react_namespaceObject.useState)([null, null]);
10293
+ const [lastFocusedElement, setLastFocusedElement] = (0,external_react_namespaceObject.useState)('from');
10294
+ const [valueFrom, valueTo] = value || [];
10295
+ const [defaultValueFrom, defaultValueTo] = defaultValue || [];
10296
+ const datepickerFromRef = (0,external_react_namespaceObject.useRef)(null);
10297
+ const datepickerToRef = (0,external_react_namespaceObject.useRef)(null);
10298
+
10299
+ // const datepickerFromAdditionalProps = {};
10300
+ // const datepickerToAdditionalProps = {};
10301
+
10302
+ // useEffect(() => {
10303
+ // _setValue(value || []);
10304
+ // }, [value]);
10305
+
10306
+ (0,external_react_namespaceObject.useEffect)(() => {
10307
+ setCurrentStatus(rest.status);
10308
+ }, [rest.status]);
10309
+ (0,external_react_namespaceObject.useEffect)(() => {
10310
+ if (errorMessage.length) {
10311
+ setCurrentStatus('error');
10312
+ } else {
10313
+ setCurrentStatus(rest.status || 'basic');
10314
+ }
10315
+ }, [errorMessage]);
10316
+ const toggleOpen = () => {
10317
+ if (lastFocusedElement === 'from') {
10318
+ setFromOpenToggle(current => !current);
10319
+ setTimeout(() => datepickerFromRef.current?.focus(), 5);
10320
+ } else {
10321
+ setToOpenToggle(current => !current);
10322
+ setTimeout(() => datepickerToRef.current?.focus(), 5);
10323
+ }
10324
+ };
10325
+ const handleToggleOpen = e => {
10326
+ const tagName = e.currentTarget.tagName.toLowerCase();
10327
+ if (openCalendarMode === 'both' || openCalendarMode === 'input' && tagName === 'input' || openCalendarMode === 'icon' && tagName === 'button') {
10328
+ toggleOpen();
10329
+ }
10330
+ if (tagName === 'input' && rest.inputProps?.inputProps?.onClick) {
10331
+ rest.inputProps.inputProps.onClick(e);
10332
+ }
10333
+ };
10334
+ const handleFocus = e => {
10335
+ const {
10336
+ name
10337
+ } = e.currentTarget;
10338
+ setLastFocusedElement(name.endsWith('From') ? 'from' : 'to');
10339
+ rest.inputProps?.inputProps?.onFocus?.(e);
10340
+ };
10341
+ const onChangeFrom = date => {
10342
+ const newDate = date || null;
10343
+ if (newDate !== changedDate?.[0]) {
10344
+ const changedData = [newDate, changedDate ? changedDate[1] : null];
10345
+ setChangedDate(changedData);
10346
+ if (!changedDate?.[1]) {
10347
+ setLastFocusedElement('to');
10348
+ setToOpenToggle(true);
10349
+ }
10350
+ rest.onChange?.(changedData);
10351
+ }
10352
+ };
10353
+ const onChangeTo = date => {
10354
+ const newDate = date || null;
10355
+ if (changedDate[0] && newDate) {
10356
+ const selectedDateFromDT = external_luxon_namespaceObject.DateTime.fromJSDate(changedDate[0]);
10357
+ const selectedDateToDT = external_luxon_namespaceObject.DateTime.fromJSDate(newDate);
10358
+ if (selectedDateFromDT > selectedDateToDT) {
10359
+ const changedData = [newDate, null];
10360
+ setChangedDate(changedData);
10361
+
10362
+ // const dateStr = DateTime.fromJSDate(newDate).toFormat(
10363
+ // format.replace('mm', 'MM'),
10364
+ // );
10365
+ // _setValue([dateStr, _value[1] === undefined ? '' : undefined]);
10366
+ // _setValue([dateStr, undefined]);
10367
+ datepickerToRef.current?.focus();
10368
+ rest.onChange?.(changedData);
10369
+ return;
10370
+ }
10371
+ }
10372
+ if (newDate !== changedDate?.[1]) {
10373
+ const changedData = [changedDate ? changedDate[0] : null, newDate];
10374
+ setChangedDate(changedData);
10375
+ datepickerToRef.current?.focus();
10376
+ rest.onChange?.(changedData);
10377
+ }
10378
+ };
10379
+
10380
+ // TODO: change status dynamically
10381
+ return (0,jsx_runtime_namespaceObject.jsxs)(FieldRoot, {
10382
+ status: currentStatus,
10383
+ disabled: rest.disabled,
10384
+ children: [(0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
10385
+ htmlFor: lastFocusedElement === 'from' ? `${name}From` : `${name}To`,
10386
+ children: label
10387
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldControl, {
10388
+ children: (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
10389
+ css: DateRangePicker_ref,
10390
+ children: [(0,jsx_runtime_namespaceObject.jsx)(DatePicker, {
10391
+ format: format,
10392
+ openCalendarMode: openCalendarMode,
10393
+ isOpenToggle: fromOpenToggle,
10394
+ name: `${name}From`,
10395
+ value: valueFrom,
10396
+ defaultValue: defaultValueFrom,
10397
+ label: '',
10398
+ showCalendarIcon: false,
10399
+ ...rest,
10400
+ ref: datepickerFromRef,
10401
+ onChange: onChangeFrom,
10402
+ highlightDates: {
10403
+ enabled: true,
10404
+ mode: 'dateFrom',
10405
+ otherDate: changedDate[1]
10406
+ },
10407
+ inputProps: {
10408
+ showStatusIcon: false,
10409
+ ...rest.inputProps,
10410
+ inputProps: {
10411
+ ...rest.inputProps?.inputProps,
10412
+ onFocus: handleFocus,
10413
+ onClick: handleToggleOpen
10414
+ }
10415
+ }
10416
+ }), (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
10417
+ name: "carrot-right",
10418
+ size: 18,
10419
+ color: theme.colors.greyDarker80,
10420
+ css: DateRangePicker_ref2
10421
+ }), (0,jsx_runtime_namespaceObject.jsx)(DatePicker, {
10422
+ format: format,
10423
+ openCalendarMode: openCalendarMode,
10424
+ isOpenToggle: toOpenToggle,
10425
+ name: `${name}To`,
10426
+ value: valueTo,
10427
+ defaultValue: defaultValueTo,
10428
+ label: '',
10429
+ showCalendarIcon: false,
10430
+ ...rest,
10431
+ ref: datepickerToRef,
10432
+ onChange: onChangeTo,
10433
+ highlightDates: {
10434
+ enabled: true,
10435
+ mode: 'dateTo',
10436
+ otherDate: changedDate[0]
10437
+ },
10438
+ inputProps: {
10439
+ showStatusIcon: false,
10440
+ ...rest.inputProps,
10441
+ inputProps: {
10442
+ ...rest.inputProps?.inputProps,
10443
+ onFocus: handleFocus,
10444
+ onClick: handleToggleOpen
10445
+ }
10446
+ }
10447
+ }), (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
10448
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
10449
+ name: "calendar",
10450
+ size: 16,
10451
+ color: disabled ? theme.colors.grey : theme.colors.greyDarker
10452
+ }),
10453
+ "data-testid": 'daterangepicker-button',
10454
+ onClick: handleToggleOpen,
10455
+ variant: "tertiary",
10456
+ "aria-label": "Calendar",
10457
+ isDisabled: disabled,
10458
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
10459
+ padding: 0,
10460
+ margin: '0 8px 0 14px',
10461
+ cursor: openCalendarMode === 'input' || disabled ? 'default' : 'pointer',
10462
+ '&:focus::before': {
10463
+ display: 'none'
10464
+ }
10465
+ }, true ? "" : 0, true ? "" : 0)
10466
+ })]
10467
+ })
10468
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldDescription, {
10469
+ children: rest.helperText
10470
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldError, {
10471
+ children: errorMessage ? errorMessage.map((error, index) => (0,jsx_runtime_namespaceObject.jsx)("span", {
10472
+ css: DateRangePicker_ref3,
10473
+ children: error
10474
+ }, `error-${index}`)) : rest.helperText
10475
+ }), (0,jsx_runtime_namespaceObject.jsx)(FieldSuccess, {
10476
+ children: rest.helperText
10477
+ })]
10478
+ });
10479
+ };
10480
+ ;// ./src/components/DateRangePicker/index.ts
10481
+
10482
+ ;// ./src/components/Drawer/DrawerProvider.tsx
10483
+
10484
+ const [DrawerProvider, useDrawerContext] = (0,hooks_namespaceObject.createSafeContext)('useDrawer must be used within a DrawerProvider');
10485
+ ;// ./src/components/Drawer/useDrawer.tsx
10486
+
10487
+
10488
+
10489
+ const useDrawer = ({
10490
+ opened,
10491
+ duration = 200,
10492
+ defaultOpened,
10493
+ dismissable = false,
10494
+ position = 'left',
10495
+ title,
10496
+ withCloseButton = false,
10497
+ onOpenChange
10498
+ } = {}) => {
10499
+ const [_opened, setOpened] = (0,hooks_namespaceObject.useUncontrolled)({
10500
+ value: opened,
10501
+ defaultValue: defaultOpened,
10502
+ finalValue: false,
10503
+ onChange: onOpenChange
10504
+ });
10505
+ const [portalNode, setPortalNode] = (0,external_react_namespaceObject.useState)(null);
10506
+ const toggle = open => {
10507
+ const _open = open ?? !_opened;
10508
+ setOpened(_open);
10509
+ };
10510
+ const {
10511
+ context,
10512
+ refs
10513
+ } = (0,external_floating_ui_react_namespaceObject.useFloating)({
10514
+ open: _opened,
10515
+ onOpenChange: setOpened
10516
+ });
10517
+ const transition = (0,external_floating_ui_react_namespaceObject.useTransitionStatus)(context, {
10518
+ duration
10519
+ });
10520
+ const dismiss = (0,external_floating_ui_react_namespaceObject.useDismiss)(context, {
10521
+ enabled: dismissable
10522
+ });
10523
+ const click = (0,external_floating_ui_react_namespaceObject.useClick)(context);
10524
+ const interactions = (0,external_floating_ui_react_namespaceObject.useInteractions)([dismiss, click]);
10525
+ return {
10526
+ opened: _opened,
10527
+ dismissable,
10528
+ position,
10529
+ duration,
10530
+ floatingContext: context,
10531
+ interactions,
10532
+ transition,
10533
+ title,
10534
+ withCloseButton,
10535
+ portalNode,
10536
+ setFloating: refs.setFloating,
10537
+ setPortalNode,
10538
+ toggle
10539
+ };
10540
+ };
10541
+ ;// ./src/components/Drawer/DrawerRoot.tsx
10542
+
10543
+
10544
+
10545
+ const Drawer = ({
10546
+ children,
10547
+ store: controlledStore,
10548
+ ...drawerProps
10549
+ }) => {
10550
+ const uncontrolledStore = useDrawer(drawerProps);
10551
+ const store = controlledStore || uncontrolledStore;
10552
+ if (!store.transition.isMounted) {
10553
+ return null;
10554
+ }
10555
+ return (0,jsx_runtime_namespaceObject.jsx)(DrawerProvider, {
10556
+ value: {
10557
+ store
10558
+ },
10559
+ children: children
10560
+ });
10561
+ };
10562
+ ;// ./src/components/Drawer/DrawerOverlay.tsx
10563
+
10564
+
10565
+
10566
+
10567
+ const StyledFloatingOverlay = /*#__PURE__*/base_default()(external_floating_ui_react_namespaceObject.FloatingOverlay, true ? {
10568
+ shouldForwardProp: propName => !propName.startsWith('$'),
10569
+ target: "ebw2uwr0"
10570
+ } : 0)("transition-property:opacity;transition-duration:", ({
10571
+ $duration
10572
+ }) => $duration, "ms;transition-timing-function:ease;opacity:", ({
10573
+ $transitionStatus
10574
+ }) => $transitionStatus === 'close' ? 0 : 1, ";", ({
10575
+ $inPortal
10576
+ }) => !$inPortal && `
10577
+ overflow: hidden !important;
10578
+ position: absolute !important;
10579
+ `, " pointer-events:", ({
10580
+ $dismissable
10581
+ }) => $dismissable ? 'auto' : 'none', ";" + ( true ? "" : 0));
10582
+ const DrawerOverlay = ({
10583
+ children,
10584
+ ...props
10585
+ }) => {
10586
+ const ctx = useDrawerContext();
10587
+ const {
10588
+ duration,
10589
+ dismissable,
10590
+ transition,
10591
+ portalNode
10592
+ } = ctx.store;
10593
+ const inPortal = portalNode !== null;
10594
+ return (0,jsx_runtime_namespaceObject.jsx)(StyledFloatingOverlay, {
10595
+ $inPortal: inPortal,
10596
+ $duration: duration,
10597
+ $dismissable: dismissable,
10598
+ $transitionStatus: transition.status,
10599
+ ...props,
10600
+ children: children
10601
+ });
10602
+ };
10603
+ ;// ./src/components/Drawer/DrawerPortal.tsx
10604
+
10605
+
10606
+
10607
+
10608
+ const DrawerPortal = ({
10609
+ children,
10610
+ ...props
10611
+ }) => {
10612
+ const ctx = useDrawerContext();
10613
+ const portalNode = (0,external_floating_ui_react_namespaceObject.useFloatingPortalNode)();
10614
+ (0,external_react_namespaceObject.useEffect)(() => {
10615
+ ctx.store.setPortalNode(portalNode);
10616
+ return () => ctx.store.setPortalNode(null);
10617
+ }, [portalNode]);
10618
+ return (0,jsx_runtime_namespaceObject.jsx)(external_floating_ui_react_namespaceObject.FloatingPortal, {
10619
+ root: portalNode,
10620
+ ...props,
10621
+ children: children
10622
+ });
10623
+ };
10624
+ ;// ./src/components/Drawer/DrawerHeader.tsx
10625
+
10626
+ function DrawerHeader_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)."; }
10627
+
10628
+
10629
+ const StyledDrawerHeader = /*#__PURE__*/base_default()("header", true ? {
10630
+ target: "e1boxa1c0"
10631
+ } : 0)( true ? {
10632
+ name: "loooz6",
10633
+ styles: "position:sticky;top:0;display:flex;align-items:center;justify-content:space-between"
10634
+ } : 0);
10635
+ const DrawerHeader = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerHeader({
10636
+ children,
10637
+ ...props
10638
+ }, ref) {
10639
+ return (0,jsx_runtime_namespaceObject.jsx)(StyledDrawerHeader, {
10640
+ ref: ref,
10641
+ ...props,
10642
+ children: children
10643
+ });
10644
+ });
10645
+ ;// ./src/components/Drawer/DrawerTitle.tsx
10646
+
10647
+ function DrawerTitle_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)."; }
10648
+
10649
+
10650
+ const StyledDrawerTitle = /*#__PURE__*/base_default()("h2", true ? {
10651
+ target: "e1cuo4pw0"
10652
+ } : 0)( true ? {
10653
+ name: "10bzkug",
10654
+ styles: "font-weight:600;font-size:20px;text-align:center"
10655
+ } : 0);
10656
+ const DrawerTitle = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerTitle({
10657
+ children,
10658
+ ...props
10659
+ }, ref) {
10660
+ return (0,jsx_runtime_namespaceObject.jsx)(StyledDrawerTitle, {
10661
+ ref: ref,
10662
+ ...props,
10663
+ children: children
10664
+ });
10665
+ });
10666
+ ;// ./src/components/Drawer/DrawerCloseButton.tsx
10667
+
10668
+
10669
+
10670
+
10671
+
10672
+
10673
+
10674
+ const StyledDrawerCloseButton = /*#__PURE__*/base_default()(Button_Button, true ? {
10675
+ target: "evbyx180"
10676
+ } : 0)("margin-inline-start:auto;padding:0;display:inline-flex;align-items:center;justify-content:center;height:32px;width:32px;background:", ({
10677
+ theme
10678
+ }) => theme.colors.greyFocused, ";" + ( true ? "" : 0));
10679
+ const notReachable = _ => _;
10680
+ const getIconName = position => {
10681
+ switch (position) {
10682
+ case 'top':
10683
+ return 'carrot-up';
10684
+ case 'bottom':
10685
+ return 'carrot-down';
10686
+ case 'left':
10687
+ return 'carrot-left';
10688
+ case 'right':
10689
+ return 'carrot-right';
10690
+ default:
10691
+ return notReachable(position);
10692
+ }
10693
+ };
10694
+ const DrawerCloseButton = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerCloseButton({
10695
+ children,
10696
+ ...props
10697
+ }, ref) {
10698
+ const theme = (0,react_namespaceObject.useTheme)();
10699
+ const ctx = useDrawerContext();
10700
+ const iconName = getIconName(ctx.store.position);
10701
+ return (0,jsx_runtime_namespaceObject.jsx)(StyledDrawerCloseButton, {
10702
+ "data-testid": "drawer-close-button",
10703
+ startIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
10704
+ name: iconName,
10705
+ size: 18,
10706
+ color: theme.colors.greyDarker
10707
+ }),
10708
+ ref: ref,
10709
+ onClick: () => ctx.store.toggle(false),
10710
+ ...props,
10711
+ children: children
10712
+ });
10713
+ });
10714
+ ;// ./src/components/Drawer/DrawerContent.tsx
10715
+
10716
+
10717
+
10718
+
10719
+
10720
+
10721
+
10722
+
10723
+ const ContentWrapper = /*#__PURE__*/base_default()("div", true ? {
10724
+ target: "eoa7lk01"
10725
+ } : 0)("display:flex;justify-content:", ({
10726
+ position
10727
+ }) => position === 'left' ? 'flex-start' : 'flex-end', ";align-items:", ({
10728
+ position
10729
+ }) => position === 'top' ? 'flex-start' : 'flex-end', ";height:100%;" + ( true ? "" : 0));
10730
+ const getBorderStyle = (position, color) => {
10731
+ const borders = {
10732
+ left: `border-right: 1px solid ${color};`,
10733
+ right: `border-left: 1px solid ${color};`,
10734
+ top: `border-bottom: 1px solid ${color};`,
10735
+ bottom: `border-top: 1px solid ${color};`
10736
+ };
10737
+ return borders[position];
10738
+ };
10739
+ const getTransform = (position, open) => {
10740
+ const closedTransforms = {
10741
+ left: 'translateX(-100%)',
10742
+ right: 'translateX(100%)',
10743
+ top: 'translateY(-100%)',
10744
+ bottom: 'translateY(100%)'
10745
+ };
10746
+ return open ? 'translate(0)' : closedTransforms[position];
10747
+ };
10748
+ const StyledDrawerContent = /*#__PURE__*/base_default()("div", true ? {
10749
+ target: "eoa7lk00"
10750
+ } : 0)("flex:1;background-color:#f4f5f9;height:100%;pointer-events:auto;transition:transform ", ({
10751
+ duration
10752
+ }) => duration, "ms ease-in-out;", ({
10753
+ position,
10754
+ theme
10755
+ }) => getBorderStyle(position, theme.colors.greyFocused), " transform:", ({
10756
+ position
10757
+ }) => getTransform(position, false), ";&[data-transition='open']{transform:", ({
10758
+ position
10759
+ }) => getTransform(position, true), ";}" + ( true ? "" : 0));
10760
+ const DrawerContent = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerContent({
10761
+ children,
10762
+ ...props
10763
+ }, ref) {
10764
+ const ctx = useDrawerContext();
10765
+ const {
10766
+ title,
10767
+ withCloseButton,
10768
+ position,
10769
+ duration,
10770
+ transition,
10771
+ interactions,
10772
+ setFloating
10773
+ } = ctx.store;
10774
+ const mergedRef = (0,external_floating_ui_react_namespaceObject.useMergeRefs)([setFloating, ref]);
10775
+ const hasHeader = !!title || withCloseButton;
10776
+ return (0,jsx_runtime_namespaceObject.jsx)(ContentWrapper, {
10777
+ position: position,
10778
+ children: (0,jsx_runtime_namespaceObject.jsxs)(StyledDrawerContent, {
10779
+ ref: mergedRef,
10780
+ "data-transition": transition.status,
10781
+ "data-position": position,
10782
+ position: position,
10783
+ duration: duration,
10784
+ ...interactions.getFloatingProps(props),
10785
+ children: [hasHeader && (0,jsx_runtime_namespaceObject.jsxs)(DrawerHeader, {
10786
+ children: [title && (0,jsx_runtime_namespaceObject.jsx)(DrawerTitle, {
10787
+ children: title
10788
+ }), withCloseButton && (0,jsx_runtime_namespaceObject.jsx)(DrawerCloseButton, {})]
10789
+ }), children]
10790
+ })
10791
+ });
10792
+ });
10793
+ ;// ./src/components/Drawer/index.parts.ts
10794
+
10795
+
10796
+
10797
+
10798
+
10799
+
10800
+
10801
+ ;// ./src/components/Drawer/index.ts
10802
+
10803
+
10804
+
10805
+ ;// ./src/components/Field/index.parts.ts
10806
+
10807
+
10808
+
10809
+
10810
+
10811
+
10812
+ ;// ./src/components/Field/index.ts
10813
+
10814
+
10815
+
10816
+ ;// ./src/components/TableFilters/styles.ts
10817
+ 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)."; }
10818
+
10819
+ const tableFilterPopoverContentStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)("border:1px solid ", theme.colors.greyDropdownMain, ";border-radius:20px;padding:20px 20px 14px 18px;width:340px;background:", theme.colors.white, ";z-index:1;" + ( true ? "" : 0), true ? "" : 0);
10820
+ const tableFilterDividerStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)("border:1px solid ", theme.colors.greyDropdownMain, ";width:calc(100% + 38px);margin:22px auto 14px -19px;" + ( true ? "" : 0), true ? "" : 0);
10821
+ const baseButtonStyle = true ? {
10822
+ name: "jk3zq0",
10823
+ styles: "padding:0 14px;height:38px;border-radius:5px;font-size:14px;font-weight:600;&:hover{box-shadow:none;}"
10824
+ } : 0;
10825
+ ;// ./src/components/TableFilters/TableFilterTrigger.tsx
10826
+
10827
+
10828
+
10829
+
10830
+ const filterButtonStyles = count => theme => /*#__PURE__*/(0,react_namespaceObject.css)("height:40px;color:", theme.colors.greyDisabled, ";background:", theme.colors.white, ";border:1px solid ", theme.colors.greyDropdownMain, ";border-radius:6.5px;padding:0 11px 0 13px;font-size:14px;letter-spacing:normal;gap:5px;user-select:none;&::before{display:block;content:'\"Filter\"';content:", count ? '"More"' : '"Filter"', ";}@media screen and (min-width: 900px){&::before{content:'More';}}&:hover{border-color:", theme.colors.greyDropdownFocused, ";}&:active{border-color:", theme.colors.blueNotification, ";}&:disabled{background:", theme.colors.grey, ";}" + ( true ? "" : 0), true ? "" : 0);
10831
+ const TableFilterTrigger = ({
10832
+ children,
10833
+ count,
10834
+ ...rest
10835
+ }) => {
10836
+ const theme = (0,react_namespaceObject.useTheme)();
10837
+ return (0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
10838
+ variant: "custom",
10839
+ css: filterButtonStyles(count),
10840
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
10841
+ name: "filter",
10842
+ color: theme.colors.greyFilterIcon,
10843
+ size: 20
10844
+ }),
10845
+ ...rest,
10846
+ children: children
10847
+ });
10848
+ };
10849
+ ;// ./src/components/TableFilters/TableFilterTriggerWithNotification.tsx
10850
+ function TableFilterTriggerWithNotification_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)."; }
10851
+
10852
+
10853
+
10854
+
10855
+ var TableFilterTriggerWithNotification_ref = true ? {
10856
+ name: "3e57yb",
10857
+ styles: "width:16px;height:16px;min-width:16px;display:flex;justify-content:center;align-items:center"
10858
+ } : 0;
10859
+ const TableFilterTriggerWithNotification = ({
10860
+ children,
10861
+ count,
10862
+ visible = true
10863
+ }) => {
10864
+ const theme = (0,react_namespaceObject.useTheme)();
10865
+ const css = {
10866
+ display: visible ? 'flex' : 'none'
10867
+ };
10868
+ if (count) {
10869
+ css.background = theme.colors.blueDropdownWithSelectedItems;
10870
+ css.borderColor = theme.colors.blueDropdownWithSelectedItemsBorder;
10871
+ }
10872
+ return (0,jsx_runtime_namespaceObject.jsxs)(TableFilterTrigger, {
10873
+ css: css,
10874
+ count: count,
10875
+ children: [children, count ? (0,jsx_runtime_namespaceObject.jsx)(MultipleDropdownNotification_MultipleDropdownNotification, {
10876
+ as: 'div',
10877
+ css: TableFilterTriggerWithNotification_ref,
10878
+ "data-testid": 'trigger-notification',
10879
+ children: count
10880
+ }) : '']
10881
+ });
10882
+ };
10883
+ ;// ./src/components/TableFilters/TableFiltersAccordion.tsx
10884
+
10885
+
10886
+
10887
+ const TableFiltersAccordion = props => (0,jsx_runtime_namespaceObject.jsx)(Accordion, {
10888
+ ...props,
10889
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
10890
+ display: props.isHidden ? 'none' : 'flex',
10891
+ padding: '10px 0',
10892
+ '&:last-child': {
10893
+ paddingBottom: 0
10894
+ }
10895
+ }, true ? "" : 0, true ? "" : 0)
10896
+ });
10897
+ ;// ./src/components/TableFilters/TableFiltersAccordionContent.tsx
10898
+
10899
+
10900
+
10901
+ const TableFiltersAccordionContent = ({
10902
+ isOpened,
10903
+ children,
10904
+ ...rest
10905
+ }) => (0,jsx_runtime_namespaceObject.jsx)(AccordionContent, {
10906
+ ...rest,
10907
+ isOpened: isOpened,
10908
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
10909
+ padding: isOpened ? '18px 3px 5px 3px' : 0
10910
+ }, true ? "" : 0, true ? "" : 0),
10911
+ children: children
10912
+ });
10913
+ ;// ./src/components/TableFilters/TableFilterCheckbox.tsx
10914
+
10915
+
10916
+
10917
+
10918
+ const getStyles = theme => /*#__PURE__*/(0,react_namespaceObject.css)("margin:0 0 14px;& span{margin-left:16px;color:", theme.colors.greyDisabled, ";user-select:none;}& input+div{border-radius:2px;&::before{border-radius:2px;}}", checkboxStyles.blueInput(theme), ";" + ( true ? "" : 0), true ? "" : 0);
10919
+ const TableFilterCheckbox = props => {
10920
+ const theme = (0,react_namespaceObject.useTheme)();
10921
+ const styles = getStyles(theme);
10922
+ return (0,jsx_runtime_namespaceObject.jsx)(Checkbox_Checkbox, {
10923
+ ...props,
10924
+ css: styles
10925
+ });
10926
+ };
10927
+ ;// ./src/components/Popover/PopoverClose.tsx
10928
+
10929
+
10930
+
10931
+
10932
+ const PopoverClose = /*#__PURE__*/external_react_namespaceObject.forwardRef(function PopoverClose(props, ref) {
10933
+ const {
9981
10934
  setOpen
9982
10935
  } = usePopoverContext();
9983
10936
  return (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
@@ -10762,173 +11715,6 @@ const Filters = ({
10762
11715
  };
10763
11716
  ;// ./src/components/Filters/index.ts
10764
11717
 
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
11718
  ;// ./src/components/FiltersMultiSelect/useFiltersMultiSelect.tsx
10933
11719
 
10934
11720
  function useFilterMultiSelect({
@@ -11090,11 +11876,6 @@ function FiltersMultiSelect_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have
11090
11876
 
11091
11877
 
11092
11878
 
11093
-
11094
-
11095
-
11096
-
11097
-
11098
11879
  var FiltersMultiSelect_ref = true ? {
11099
11880
  name: "w1nxbg",
11100
11881
  styles: "padding:6px 14px"
@@ -11122,6 +11903,7 @@ const FiltersMultiSelect = ({
11122
11903
  emptyNode: controlledEmptyNode,
11123
11904
  error,
11124
11905
  icon,
11906
+ fieldProps,
11125
11907
  inputProps,
11126
11908
  label,
11127
11909
  placeholder,
@@ -11158,6 +11940,7 @@ const FiltersMultiSelect = ({
11158
11940
  children: (0,jsx_runtime_namespaceObject.jsxs)(FieldRoot, {
11159
11941
  disabled: disabled,
11160
11942
  status: status,
11943
+ ...fieldProps,
11161
11944
  children: [label && (0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
11162
11945
  htmlFor: `formElement-search-${id}`,
11163
11946
  children: label
@@ -11628,8 +12411,12 @@ const NestedTableRow = ({
11628
12411
  background: theme.colors.greyLighter60
11629
12412
  } : {};
11630
12413
  const notSubHeaderCSS = !isSubHeader && isCollapsed ? {
11631
- height: 0,
11632
- maxHeight: 0
12414
+ maxHeight: 0,
12415
+ padding: 0,
12416
+ '& td': {
12417
+ maxHeight: 0,
12418
+ padding: 0
12419
+ }
11633
12420
  } : {};
11634
12421
  return (0,jsx_runtime_namespaceObject.jsxs)(TableRow_TableRow, {
11635
12422
  css: /*#__PURE__*/(0,react_namespaceObject.css)({
@@ -13142,29 +13929,29 @@ const BarLineComplexChartView = ({
13142
13929
  debouncedFn();
13143
13930
  };
13144
13931
  const handleHover = () => {
13145
- /**
13146
- * Show tooltip on hover
13147
- * event: Readonly<Plotly.PlotHoverEvent>
13148
- * - event = {}
13149
- * - points:
13150
- * Array<{
13151
- * bbox: { x0: number; x1: number; y0: number; y1: number; };
13152
- * curveNumber: number;
13153
- * data: Plotly.Data;
13154
- * fullData: Plotly.Data;
13155
- * label: number;
13156
- * pointIndex: number;
13157
- * pointNumber: number;
13158
- * value: number;
13159
- * x: number;
13160
- * y: number;
13161
- * xaxis: string;
13162
- * yaxis: string;
13163
- * }>
13164
- * - xaxes: Array<{}>
13165
- * - xvals: Array<number>
13166
- * - yaxes: Array<{}>
13167
- * - yvals: Array<number>
13932
+ /**
13933
+ * Show tooltip on hover
13934
+ * event: Readonly<Plotly.PlotHoverEvent>
13935
+ * - event = {}
13936
+ * - points:
13937
+ * Array<{
13938
+ * bbox: { x0: number; x1: number; y0: number; y1: number; };
13939
+ * curveNumber: number;
13940
+ * data: Plotly.Data;
13941
+ * fullData: Plotly.Data;
13942
+ * label: number;
13943
+ * pointIndex: number;
13944
+ * pointNumber: number;
13945
+ * value: number;
13946
+ * x: number;
13947
+ * y: number;
13948
+ * xaxis: string;
13949
+ * yaxis: string;
13950
+ * }>
13951
+ * - xaxes: Array<{}>
13952
+ * - xvals: Array<number>
13953
+ * - yaxes: Array<{}>
13954
+ * - yvals: Array<number>
13168
13955
  */
13169
13956
  setIsOpen(false);
13170
13957
  };
@@ -14340,14 +15127,14 @@ var Typeahead_ref = true ? {
14340
15127
  name: "1d3w5wq",
14341
15128
  styles: "width:100%"
14342
15129
  } : 0;
14343
- /**
14344
- * The structure of the component:
14345
- * - TypeaheadTrigger
14346
- * - TypeaheadOptions
14347
- * - FormHelperText
14348
- *
14349
- * Aria attributes are set according to
14350
- * https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
15130
+ /**
15131
+ * The structure of the component:
15132
+ * - TypeaheadTrigger
15133
+ * - TypeaheadOptions
15134
+ * - FormHelperText
15135
+ *
15136
+ * Aria attributes are set according to
15137
+ * https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
14351
15138
  **/
14352
15139
  const Typeahead = ({
14353
15140
  name = 'typeahead-search',
@@ -14509,7 +15296,7 @@ const styles_ResetBtnStyles = true ? {
14509
15296
  name: "2hrei",
14510
15297
  styles: "padding:0;height:auto;background:none;&:focus,&:hover{border:none;background:none;box-shadow:none;&::before{border:none;}}"
14511
15298
  } : 0;
14512
- const ContentWrapper = theme => /*#__PURE__*/(0,react_namespaceObject.css)("width:224px;background:", theme.colors.greyPopoverLight, ";border-radius:20px;box-shadow:0px 4px 15px 0px ", theme.colors.black25, ";" + ( true ? "" : 0), true ? "" : 0);
15299
+ const styles_ContentWrapper = theme => /*#__PURE__*/(0,react_namespaceObject.css)("width:224px;background:", theme.colors.greyPopoverLight, ";border-radius:20px;box-shadow:0px 4px 15px 0px ", theme.colors.black25, ";" + ( true ? "" : 0), true ? "" : 0);
14513
15300
  const UserInfo = true ? {
14514
15301
  name: "fwy071",
14515
15302
  styles: "gap:2px;width:100%;padding:10px"
@@ -14547,7 +15334,7 @@ const UserProfile = ({
14547
15334
  css: styles_ResetBtnStyles,
14548
15335
  children: trigger
14549
15336
  }), (0,jsx_runtime_namespaceObject.jsxs)(PopoverContent, {
14550
- css: ContentWrapper,
15337
+ css: styles_ContentWrapper,
14551
15338
  className: className,
14552
15339
  children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
14553
15340
  css: UserInfo,
@@ -14780,6 +15567,8 @@ const WithVisibleUpToLG = (Component, styles) => {
14780
15567
 
14781
15568
 
14782
15569
 
15570
+
15571
+
14783
15572
 
14784
15573
 
14785
15574