@ubnt/store.core 9.20.0-alpha.2 → 9.20.0-alpha.3

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 (44) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/assets/attention.svg +5 -5
  3. package/lib/assets/attention2.svg +5 -5
  4. package/lib/assets/icons/wizard/plus.svg.js +1 -1
  5. package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
  6. package/lib/assets/minus4.svg +8 -8
  7. package/lib/assets/minus5.svg +8 -8
  8. package/lib/assets/plus.svg +4 -22
  9. package/lib/assets/plus2.svg +22 -4
  10. package/lib/assets/plus5.svg +9 -9
  11. package/lib/assets/plus6.svg +9 -9
  12. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  13. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  14. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  15. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  16. package/lib/components/Header/ProHeader/ProHeader.js +12 -6
  17. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  18. package/lib/components/Header/ProHeader/ProHeader.mjs +13 -7
  19. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  20. package/lib/components/ProductWizard/ProductWizard.js +1 -1
  21. package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
  22. package/lib/components/QuantityInput/QuantityInput.js +1 -1
  23. package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
  24. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  25. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  26. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  27. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  28. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  29. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  30. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  31. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  32. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  33. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  34. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  35. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  36. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  37. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  38. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  39. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  40. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  41. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  42. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  43. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  44. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@
6
6
 
7
7
  ## Releases
8
8
 
9
+ ### 9.20.0-alpha.3
10
+
11
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) search input adjustments
12
+
9
13
  ### 9.20.0-alpha.2
10
14
 
11
15
  - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix pro mobile menu top level actions
@@ -1,6 +1,6 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
- <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
- <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
- <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
+ <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
+ <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
+ <circle cx="8" cy="9.5" r="0.5" fill="white"/>
6
6
  </svg>
@@ -1,6 +1,6 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
- <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
- <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
- <circle cx="8" cy="9.5" r="0.5" fill="white"/>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
+ <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
+ <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
+ <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
6
6
  </svg>
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var plus = require("../../plus.svg");
6
+ var plus = require("../../plus2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../plus.svg";
2
- export { default } from "../../plus.svg";
1
+ export * from "../../plus2.svg";
2
+ export { default } from "../../plus2.svg";
3
3
  //# sourceMappingURL=plus.svg.mjs.map
@@ -1,15 +1,15 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15898)">
4
- <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
1
+ <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
+ <g clip-path="url(#clip0_658_406)">
4
+ <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_426_15898)">
8
- <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
7
+ <g mask="url(#mask0_658_406)">
8
+ <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_426_15898">
12
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
11
+ <clipPath id="clip0_658_406">
12
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
- <g clip-path="url(#clip0_658_406)">
4
- <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15898)">
4
+ <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_658_406)">
8
- <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
7
+ <g mask="url(#mask0_426_15898)">
8
+ <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_658_406">
12
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
11
+ <clipPath id="clip0_426_15898">
12
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,22 +1,4 @@
1
- <svg
2
- width="10"
3
- height="10"
4
- viewBox="0 0 10 10"
5
- fill="none"
6
- xmlns="http://www.w3.org/2000/svg"
7
- >
8
- <rect
9
- y="4.5"
10
- width="10"
11
- height="1"
12
- fill="#838691"
13
- />
14
- <rect
15
- x="4.5"
16
- y="10"
17
- width="10"
18
- height="1"
19
- transform="rotate(-90 4.5 10)"
20
- fill="#838691"
21
- />
22
- </svg>
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none"
2
+ xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8 0.453333 7.54667 0 7 0C6.45333 0 6 0.453333 6 1V6H1C0.453333 6 0 6.45333 0 7C0 7.54667 0.453333 8 1 8H6V13C6 13.5467 6.45333 14 7 14C7.54667 14 8 13.5467 8 13V8H13C13.5467 8 14 7.54667 14 7C14 6.45333 13.5467 6 13 6H8V1Z" fill="currentColor"/>
4
+ </svg>
@@ -1,4 +1,22 @@
1
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none"
2
- xmlns="http://www.w3.org/2000/svg">
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8 0.453333 7.54667 0 7 0C6.45333 0 6 0.453333 6 1V6H1C0.453333 6 0 6.45333 0 7C0 7.54667 0.453333 8 1 8H6V13C6 13.5467 6.45333 14 7 14C7.54667 14 8 13.5467 8 13V8H13C13.5467 8 14 7.54667 14 7C14 6.45333 13.5467 6 13 6H8V1Z" fill="currentColor"/>
4
- </svg>
1
+ <svg
2
+ width="10"
3
+ height="10"
4
+ viewBox="0 0 10 10"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <rect
9
+ y="4.5"
10
+ width="10"
11
+ height="1"
12
+ fill="#838691"
13
+ />
14
+ <rect
15
+ x="4.5"
16
+ y="10"
17
+ width="10"
18
+ height="1"
19
+ transform="rotate(-90 4.5 10)"
20
+ fill="#838691"
21
+ />
22
+ </svg>
@@ -1,16 +1,16 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15903)">
4
- <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
- <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
1
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
+ <g clip-path="url(#clip0_658_411)">
4
+ <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
+ <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_426_15903)">
9
- <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
8
+ <g mask="url(#mask0_658_411)">
9
+ <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_426_15903">
13
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
12
+ <clipPath id="clip0_658_411">
13
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
- <g clip-path="url(#clip0_658_411)">
4
- <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
- <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15903)">
4
+ <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
+ <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_658_411)">
9
- <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
8
+ <g mask="url(#mask0_426_15903)">
9
+ <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_658_411">
13
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
12
+ <clipPath id="clip0_426_15903">
13
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -5,7 +5,7 @@ require('../../StyleableSvgImage/index.js');
5
5
  require('../assets/plus.svg.js');
6
6
  var AllFeaturesButton_styles = require('./AllFeaturesButton.styles.js');
7
7
  var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
8
- var PlusIcon = require("../../../assets/plus2.svg");
8
+ var PlusIcon = require("../../../assets/plus.svg");
9
9
  function _interopDefault(e) {
10
10
  return e && e.__esModule ? e : {
11
11
  default: e
@@ -3,7 +3,7 @@ import '../../StyleableSvgImage/index.mjs';
3
3
  import '../assets/plus.svg.mjs';
4
4
  import { StyledButton, InnerWrap } from './AllFeaturesButton.styles.mjs';
5
5
  import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
6
- import PlusIcon__default from "../../../assets/plus2.svg";
6
+ import PlusIcon__default from "../../../assets/plus.svg";
7
7
  "use strict";
8
8
  const AllFeaturesButton = ({
9
9
  className,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var PlusIcon = require("../../../assets/plus2.svg");
6
+ var PlusIcon = require("../../../assets/plus.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/plus2.svg";
2
- export { default } from "../../../assets/plus2.svg";
1
+ export * from "../../../assets/plus.svg";
2
+ export { default } from "../../../assets/plus.svg";
3
3
  //# sourceMappingURL=plus.svg.mjs.map
@@ -217,11 +217,13 @@ const ProHeader = react.memo(function ProHeader2({
217
217
  onSearchClick?.();
218
218
  }
219
219
  }, [activeModal, isMobile, onSearchClick, searchValue, setActiveModal, useInlineCategories]);
220
- reactUse.useEffectOnce(() => {
221
- if (searchValue) {
220
+ const [initialSearchValueHandled, setInitialSearchValueHandled] = react.useState(false);
221
+ react.useEffect(() => {
222
+ if (!initialSearchValueHandled && searchValue) {
222
223
  setActiveModal(types.ModalId.Search);
224
+ setInitialSearchValueHandled(true);
223
225
  }
224
- });
226
+ }, [initialSearchValueHandled, searchValue, setActiveModal]);
225
227
  const blurSearchInput = react.useCallback(() => {
226
228
  if (!searchInputRef || activeModal !== types.ModalId.Search) {
227
229
  return;
@@ -235,6 +237,10 @@ const ProHeader = react.memo(function ProHeader2({
235
237
  reactUse.useClickAway(rootRef, () => {
236
238
  onClickAwayFromSearchModal();
237
239
  }, ["click"]);
240
+ const handleSearchCancel = react.useCallback(() => {
241
+ setActiveModal(types.ModalId.Search);
242
+ onSearch?.("");
243
+ }, [onSearch, setActiveModal]);
238
244
  const handleSearchFocus = react.useCallback(() => {
239
245
  setSearchFocused(true);
240
246
  onSearchFocus?.();
@@ -443,14 +449,14 @@ const ProHeader = react.memo(function ProHeader2({
443
449
  })
444
450
  }), /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.CenterWrap, {
445
451
  hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN,
446
- children: [!useInlineCategories || activeModal === types.ModalId.Search ? /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
452
+ children: [!useInlineCategories || activeModal === types.ModalId.Search || !!searchValue ? /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
447
453
  setInputRef: setDesktopSearchInputRef,
448
454
  onValueChange: handleSearchValueChange,
449
455
  placeholder: searchPlaceholder,
450
456
  isSearchFocused: !!searchValue || isSearchFocused,
451
457
  value: searchValue || "",
452
458
  showCancel: !!searchValue,
453
- onCancelClick: () => onSearch?.(""),
459
+ onCancelClick: handleSearchCancel,
454
460
  width: 420,
455
461
  onFocus: handleSearchFocus,
456
462
  onBlur: handleSearchBlur,
@@ -666,7 +672,7 @@ const ProHeader = react.memo(function ProHeader2({
666
672
  isSearchFocused: !!searchValue || isSearchFocused,
667
673
  value: searchValue || "",
668
674
  showCancel: !!searchValue,
669
- onCancelClick: () => onSearch?.(""),
675
+ onCancelClick: handleSearchCancel,
670
676
  onFocus: handleSearchFocus,
671
677
  onBlur: handleSearchBlur,
672
678
  focusedWidth: searchFocusWidth