@acusti/dropdown 0.50.1 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Dropdown.js CHANGED
@@ -128,9 +128,11 @@ const clearItemElementsState = (itemElements) => {
128
128
  const setActiveItem = ({
129
129
  dropdownElement,
130
130
  element,
131
+ event,
131
132
  index,
132
133
  indexAddend,
133
134
  isExactMatch,
135
+ onActiveItem,
134
136
  text
135
137
  }) => {
136
138
  const items = getItemElements(dropdownElement);
@@ -151,11 +153,7 @@ const setActiveItem = ({
151
153
  } else {
152
154
  nextActiveIndex += indexAddend;
153
155
  }
154
- if (nextActiveIndex < 0) {
155
- nextActiveIndex = 0;
156
- } else if (nextActiveIndex > lastIndex) {
157
- nextActiveIndex = lastIndex;
158
- }
156
+ nextActiveIndex = Math.max(0, Math.min(nextActiveIndex, lastIndex));
159
157
  } else if (typeof text === "string") {
160
158
  if (!text) {
161
159
  clearItemElementsState(itemElements);
@@ -176,46 +174,52 @@ const setActiveItem = ({
176
174
  nextActiveIndex = itemTexts.findIndex((itemText) => itemText === bestMatch);
177
175
  }
178
176
  }
179
- if (nextActiveIndex === -1 || nextActiveIndex === currentActiveIndex) return;
180
- clearItemElementsState(itemElements);
181
177
  const nextActiveItem = items[nextActiveIndex];
182
- if (nextActiveItem != null) {
183
- nextActiveItem.setAttribute("data-ukt-active", "");
184
- let {
185
- parentElement
186
- } = nextActiveItem;
187
- let scrollableParent = null;
188
- while (!scrollableParent && parentElement && parentElement !== dropdownElement) {
189
- const isScrollable = parentElement.scrollHeight > parentElement.clientHeight + 15;
190
- if (isScrollable) {
191
- scrollableParent = parentElement;
192
- } else {
193
- parentElement = parentElement.parentElement;
194
- }
178
+ if (nextActiveItem == null || nextActiveIndex === currentActiveIndex) return;
179
+ clearItemElementsState(itemElements);
180
+ nextActiveItem.setAttribute("data-ukt-active", "");
181
+ const label = nextActiveItem.innerText;
182
+ const value = nextActiveItem.dataset.uktValue ?? label;
183
+ onActiveItem?.({
184
+ element: nextActiveItem,
185
+ event,
186
+ label,
187
+ value
188
+ });
189
+ let {
190
+ parentElement
191
+ } = nextActiveItem;
192
+ let scrollableParent = null;
193
+ while (!scrollableParent && parentElement && parentElement !== dropdownElement) {
194
+ const isScrollable = parentElement.scrollHeight > parentElement.clientHeight + 15;
195
+ if (isScrollable) {
196
+ scrollableParent = parentElement;
197
+ } else {
198
+ parentElement = parentElement.parentElement;
195
199
  }
196
- if (scrollableParent) {
197
- const parentRect = scrollableParent.getBoundingClientRect();
198
- const itemRect = nextActiveItem.getBoundingClientRect();
199
- const isAboveTop = itemRect.top < parentRect.top;
200
- const isBelowBottom = itemRect.bottom > parentRect.bottom;
201
- if (isAboveTop || isBelowBottom) {
202
- let {
203
- scrollTop
204
- } = scrollableParent;
205
- if (isAboveTop) {
206
- scrollTop -= parentRect.top - itemRect.top;
207
- } else {
208
- scrollTop += itemRect.bottom - parentRect.bottom;
209
- }
210
- scrollableParent.scrollTop = scrollTop;
200
+ }
201
+ if (scrollableParent) {
202
+ const parentRect = scrollableParent.getBoundingClientRect();
203
+ const itemRect = nextActiveItem.getBoundingClientRect();
204
+ const isAboveTop = itemRect.top < parentRect.top;
205
+ const isBelowBottom = itemRect.bottom > parentRect.bottom;
206
+ if (isAboveTop || isBelowBottom) {
207
+ let {
208
+ scrollTop
209
+ } = scrollableParent;
210
+ if (isAboveTop) {
211
+ scrollTop -= parentRect.top - itemRect.top;
212
+ } else {
213
+ scrollTop += itemRect.bottom - parentRect.bottom;
211
214
  }
215
+ scrollableParent.scrollTop = scrollTop;
212
216
  }
213
217
  }
214
218
  };
215
219
  const CHILDREN_ERROR = "@acusti/dropdown requires either 1 child (the dropdown body) or 2 children: the dropdown trigger and the dropdown body.";
216
220
  const TEXT_INPUT_SELECTOR = "input:not([type=radio]):not([type=checkbox]):not([type=range]),textarea";
217
221
  function Dropdown(t0) {
218
- const $ = c(99);
222
+ const $ = c(102);
219
223
  const {
220
224
  allowCreate,
221
225
  allowEmpty: t1,
@@ -230,6 +234,7 @@ function Dropdown(t0) {
230
234
  minHeightBody: t4,
231
235
  minWidthBody: t5,
232
236
  name,
237
+ onActiveItem,
233
238
  onClick,
234
239
  onClose,
235
240
  onMouseDown,
@@ -428,7 +433,7 @@ function Dropdown(t0) {
428
433
  }
429
434
  const handleMouseMove = t12;
430
435
  let t13;
431
- if ($[19] !== dropdownElement) {
436
+ if ($[19] !== dropdownElement || $[20] !== onActiveItem) {
432
437
  t13 = (event_0) => {
433
438
  if (!hasItemsRef.current) {
434
439
  return;
@@ -450,20 +455,23 @@ function Dropdown(t0) {
450
455
  if (itemElement === element_0) {
451
456
  setActiveItem({
452
457
  dropdownElement,
453
- element: element_0
458
+ element: element_0,
459
+ event: event_0,
460
+ onActiveItem
454
461
  });
455
462
  return;
456
463
  }
457
464
  }
458
465
  };
459
466
  $[19] = dropdownElement;
460
- $[20] = t13;
467
+ $[20] = onActiveItem;
468
+ $[21] = t13;
461
469
  } else {
462
- t13 = $[20];
470
+ t13 = $[21];
463
471
  }
464
472
  const handleMouseOver = t13;
465
473
  let t14;
466
- if ($[21] !== dropdownElement) {
474
+ if ($[22] !== dropdownElement) {
467
475
  t14 = (event_1) => {
468
476
  if (!hasItemsRef.current) {
469
477
  return;
@@ -478,14 +486,14 @@ function Dropdown(t0) {
478
486
  }
479
487
  delete activeItem.dataset.uktActive;
480
488
  };
481
- $[21] = dropdownElement;
482
- $[22] = t14;
489
+ $[22] = dropdownElement;
490
+ $[23] = t14;
483
491
  } else {
484
- t14 = $[22];
492
+ t14 = $[23];
485
493
  }
486
494
  const handleMouseOut = t14;
487
495
  let t15;
488
- if ($[23] !== onMouseDown) {
496
+ if ($[24] !== onMouseDown) {
489
497
  t15 = (event_2) => {
490
498
  if (onMouseDown) {
491
499
  onMouseDown(event_2);
@@ -504,14 +512,14 @@ function Dropdown(t0) {
504
512
  isOpeningTimerRef.current = null;
505
513
  }, 1e3);
506
514
  };
507
- $[23] = onMouseDown;
508
- $[24] = t15;
515
+ $[24] = onMouseDown;
516
+ $[25] = t15;
509
517
  } else {
510
- t15 = $[24];
518
+ t15 = $[25];
511
519
  }
512
520
  const handleMouseDown = t15;
513
521
  let t16;
514
- if ($[25] !== handleSubmitItem || $[26] !== onMouseUp) {
522
+ if ($[26] !== handleSubmitItem || $[27] !== onMouseUp) {
515
523
  t16 = (event_3) => {
516
524
  if (onMouseUp) {
517
525
  onMouseUp(event_3);
@@ -531,15 +539,15 @@ function Dropdown(t0) {
531
539
  }
532
540
  handleSubmitItem(event_3);
533
541
  };
534
- $[25] = handleSubmitItem;
535
- $[26] = onMouseUp;
536
- $[27] = t16;
542
+ $[26] = handleSubmitItem;
543
+ $[27] = onMouseUp;
544
+ $[28] = t16;
537
545
  } else {
538
- t16 = $[27];
546
+ t16 = $[28];
539
547
  }
540
548
  const handleMouseUp = t16;
541
549
  let t17;
542
- if ($[28] !== dropdownElement || $[29] !== handleSubmitItem) {
550
+ if ($[29] !== dropdownElement || $[30] !== handleSubmitItem || $[31] !== onActiveItem) {
543
551
  t17 = (event_4) => {
544
552
  const {
545
553
  altKey,
@@ -582,7 +590,9 @@ function Dropdown(t0) {
582
590
  }
583
591
  setActiveItem({
584
592
  dropdownElement,
593
+ event: event_4,
585
594
  isExactMatch: allowCreateRef.current,
595
+ onActiveItem,
586
596
  text: enteredCharactersRef.current
587
597
  });
588
598
  if (clearEnteredCharactersTimerRef.current) {
@@ -612,12 +622,16 @@ function Dropdown(t0) {
612
622
  if (altKey || metaKey) {
613
623
  setActiveItem({
614
624
  dropdownElement,
615
- index: 0
625
+ event: event_4,
626
+ index: 0,
627
+ onActiveItem
616
628
  });
617
629
  } else {
618
630
  setActiveItem({
619
631
  dropdownElement,
620
- indexAddend: -1
632
+ event: event_4,
633
+ indexAddend: -1,
634
+ onActiveItem
621
635
  });
622
636
  }
623
637
  return;
@@ -627,39 +641,44 @@ function Dropdown(t0) {
627
641
  if (altKey || metaKey) {
628
642
  setActiveItem({
629
643
  dropdownElement,
630
- index: -1
644
+ event: event_4,
645
+ index: -1,
646
+ onActiveItem
631
647
  });
632
648
  } else {
633
649
  setActiveItem({
634
650
  dropdownElement,
635
- indexAddend: 1
651
+ event: event_4,
652
+ indexAddend: 1,
653
+ onActiveItem
636
654
  });
637
655
  }
638
656
  return;
639
657
  }
640
658
  }
641
659
  };
642
- $[28] = dropdownElement;
643
- $[29] = handleSubmitItem;
644
- $[30] = t17;
660
+ $[29] = dropdownElement;
661
+ $[30] = handleSubmitItem;
662
+ $[31] = onActiveItem;
663
+ $[32] = t17;
645
664
  } else {
646
- t17 = $[30];
665
+ t17 = $[32];
647
666
  }
648
667
  const handleKeyDown = t17;
649
668
  let t18;
650
- if ($[31] !== handleKeyDown) {
669
+ if ($[33] !== handleKeyDown) {
651
670
  t18 = {
652
671
  ignoreUsedKeyboardEvents: false,
653
672
  onKeyDown: handleKeyDown
654
673
  };
655
- $[31] = handleKeyDown;
656
- $[32] = t18;
674
+ $[33] = handleKeyDown;
675
+ $[34] = t18;
657
676
  } else {
658
- t18 = $[32];
677
+ t18 = $[34];
659
678
  }
660
679
  useKeyboardEvents(t18);
661
680
  let t19;
662
- if ($[33] !== isOpenOnMount) {
681
+ if ($[35] !== isOpenOnMount || $[36] !== onActiveItem) {
663
682
  t19 = (ref) => {
664
683
  setDropdownElement(ref);
665
684
  if (!ref) {
@@ -742,7 +761,9 @@ function Dropdown(t0) {
742
761
  }
743
762
  setActiveItem({
744
763
  dropdownElement: ref,
764
+ event: event_5,
745
765
  isExactMatch: allowCreateRef.current,
766
+ onActiveItem,
746
767
  text: enteredCharactersRef.current
747
768
  });
748
769
  };
@@ -763,79 +784,80 @@ function Dropdown(t0) {
763
784
  }
764
785
  };
765
786
  };
766
- $[33] = isOpenOnMount;
767
- $[34] = t19;
787
+ $[35] = isOpenOnMount;
788
+ $[36] = onActiveItem;
789
+ $[37] = t19;
768
790
  } else {
769
- t19 = $[34];
791
+ t19 = $[37];
770
792
  }
771
793
  const handleRef = t19;
772
794
  if (!isValidElement(trigger)) {
773
795
  if (isSearchable) {
774
796
  const t202 = value ?? "";
775
797
  let t212;
776
- if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
798
+ if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
777
799
  t212 = () => setIsOpen(true);
778
- $[35] = t212;
800
+ $[38] = t212;
779
801
  } else {
780
- t212 = $[35];
802
+ t212 = $[38];
781
803
  }
782
804
  let t222;
783
- if ($[36] !== disabled || $[37] !== name || $[38] !== placeholder || $[39] !== t202 || $[40] !== tabIndex) {
805
+ if ($[39] !== disabled || $[40] !== name || $[41] !== placeholder || $[42] !== t202 || $[43] !== tabIndex) {
784
806
  t222 = /* @__PURE__ */ jsx("input", { autoComplete: "off", className: TRIGGER_CLASS_NAME, defaultValue: t202, disabled, name, onFocus: t212, placeholder, ref: inputElementRef, tabIndex, type: "text" });
785
- $[36] = disabled;
786
- $[37] = name;
787
- $[38] = placeholder;
788
- $[39] = t202;
789
- $[40] = tabIndex;
790
- $[41] = t222;
807
+ $[39] = disabled;
808
+ $[40] = name;
809
+ $[41] = placeholder;
810
+ $[42] = t202;
811
+ $[43] = tabIndex;
812
+ $[44] = t222;
791
813
  } else {
792
- t222 = $[41];
814
+ t222 = $[44];
793
815
  }
794
816
  trigger = t222;
795
817
  } else {
796
818
  let t202;
797
- if ($[42] !== trigger) {
798
- t202 = /* @__PURE__ */ jsx("button", { className: TRIGGER_CLASS_NAME, tabIndex: 0, children: trigger });
799
- $[42] = trigger;
800
- $[43] = t202;
819
+ if ($[45] !== trigger) {
820
+ t202 = /* @__PURE__ */ jsx("button", { className: TRIGGER_CLASS_NAME, tabIndex: 0, type: "button", children: trigger });
821
+ $[45] = trigger;
822
+ $[46] = t202;
801
823
  } else {
802
- t202 = $[43];
824
+ t202 = $[46];
803
825
  }
804
826
  trigger = t202;
805
827
  }
806
828
  }
807
829
  if (label) {
808
830
  let t202;
809
- if ($[44] !== label) {
831
+ if ($[47] !== label) {
810
832
  t202 = /* @__PURE__ */ jsx("div", { className: LABEL_TEXT_CLASS_NAME, children: label });
811
- $[44] = label;
812
- $[45] = t202;
833
+ $[47] = label;
834
+ $[48] = t202;
813
835
  } else {
814
- t202 = $[45];
836
+ t202 = $[48];
815
837
  }
816
838
  let t212;
817
- if ($[46] !== t202 || $[47] !== trigger) {
839
+ if ($[49] !== t202 || $[50] !== trigger) {
818
840
  t212 = /* @__PURE__ */ jsxs("label", { className: LABEL_CLASS_NAME, children: [
819
841
  t202,
820
842
  trigger
821
843
  ] });
822
- $[46] = t202;
823
- $[47] = trigger;
824
- $[48] = t212;
844
+ $[49] = t202;
845
+ $[50] = trigger;
846
+ $[51] = t212;
825
847
  } else {
826
- t212 = $[48];
848
+ t212 = $[51];
827
849
  }
828
850
  trigger = t212;
829
851
  }
830
852
  const dropdownRect = useBoundingClientRect(dropdownElement);
831
853
  const dropdownBodyRect = useBoundingClientRect(dropdownBodyElement);
832
854
  let t20;
833
- if ($[49] !== dropdownBodyElement) {
855
+ if ($[52] !== dropdownBodyElement) {
834
856
  t20 = getBoundingAncestor(dropdownBodyElement);
835
- $[49] = dropdownBodyElement;
836
- $[50] = t20;
857
+ $[52] = dropdownBodyElement;
858
+ $[53] = t20;
837
859
  } else {
838
- t20 = $[50];
860
+ t20 = $[53];
839
861
  }
840
862
  const boundingElement = t20;
841
863
  const boundingElementRect = useBoundingClientRect(boundingElement);
@@ -845,67 +867,67 @@ function Dropdown(t0) {
845
867
  const maxHeightUp = dropdownBodyRect.bottom - boundingElementRect.top;
846
868
  const maxHeightDown = boundingElementRect.bottom - dropdownBodyRect.top;
847
869
  let t212;
848
- if ($[51] !== dropdownBodyRect.top || $[52] !== dropdownRect.top || $[53] !== maxHeightDown || $[54] !== maxHeightUp) {
870
+ if ($[54] !== dropdownBodyRect.top || $[55] !== dropdownRect.top || $[56] !== maxHeightDown || $[57] !== maxHeightUp) {
849
871
  t212 = Math.round(dropdownBodyRect.top > dropdownRect.top ? maxHeightDown : maxHeightUp);
850
- $[51] = dropdownBodyRect.top;
851
- $[52] = dropdownRect.top;
852
- $[53] = maxHeightDown;
853
- $[54] = maxHeightUp;
854
- $[55] = t212;
872
+ $[54] = dropdownBodyRect.top;
873
+ $[55] = dropdownRect.top;
874
+ $[56] = maxHeightDown;
875
+ $[57] = maxHeightUp;
876
+ $[58] = t212;
855
877
  } else {
856
- t212 = $[55];
878
+ t212 = $[58];
857
879
  }
858
880
  maxHeight = t212;
859
881
  const maxWidthLeft = dropdownBodyRect.right - boundingElementRect.left;
860
882
  const maxWidthRight = boundingElementRect.right - dropdownBodyRect.left;
861
883
  let t222;
862
- if ($[56] !== dropdownBodyRect.left || $[57] !== dropdownRect.left || $[58] !== maxWidthLeft || $[59] !== maxWidthRight) {
884
+ if ($[59] !== dropdownBodyRect.left || $[60] !== dropdownRect.left || $[61] !== maxWidthLeft || $[62] !== maxWidthRight) {
863
885
  t222 = Math.round(dropdownBodyRect.left > dropdownRect.left ? maxWidthRight : maxWidthLeft);
864
- $[56] = dropdownBodyRect.left;
865
- $[57] = dropdownRect.left;
866
- $[58] = maxWidthLeft;
867
- $[59] = maxWidthRight;
868
- $[60] = t222;
886
+ $[59] = dropdownBodyRect.left;
887
+ $[60] = dropdownRect.left;
888
+ $[61] = maxWidthLeft;
889
+ $[62] = maxWidthRight;
890
+ $[63] = t222;
869
891
  } else {
870
- t222 = $[60];
892
+ t222 = $[63];
871
893
  }
872
894
  maxWidth = t222;
873
895
  }
874
896
  let t21;
875
- if ($[61] !== maxHeight || $[62] !== minHeightBody) {
897
+ if ($[64] !== maxHeight || $[65] !== minHeightBody) {
876
898
  t21 = maxHeight != null && maxHeight > minHeightBody ? {
877
899
  [BODY_MAX_HEIGHT_VAR]: `calc(${maxHeight}px - var(--uktdd-body-buffer))`
878
900
  } : null;
879
- $[61] = maxHeight;
880
- $[62] = minHeightBody;
881
- $[63] = t21;
901
+ $[64] = maxHeight;
902
+ $[65] = minHeightBody;
903
+ $[66] = t21;
882
904
  } else {
883
- t21 = $[63];
905
+ t21 = $[66];
884
906
  }
885
907
  let t22;
886
- if ($[64] !== maxWidth || $[65] !== minWidthBody) {
908
+ if ($[67] !== maxWidth || $[68] !== minWidthBody) {
887
909
  t22 = maxWidth != null && maxWidth > minWidthBody ? {
888
910
  [BODY_MAX_WIDTH_VAR]: `calc(${maxWidth}px - var(--uktdd-body-buffer))`
889
911
  } : null;
890
- $[64] = maxWidth;
891
- $[65] = minWidthBody;
892
- $[66] = t22;
912
+ $[67] = maxWidth;
913
+ $[68] = minWidthBody;
914
+ $[69] = t22;
893
915
  } else {
894
- t22 = $[66];
916
+ t22 = $[69];
895
917
  }
896
918
  let t23;
897
- if ($[67] !== styleFromProps || $[68] !== t21 || $[69] !== t22) {
919
+ if ($[70] !== styleFromProps || $[71] !== t21 || $[72] !== t22) {
898
920
  t23 = {
899
921
  ...styleFromProps,
900
922
  ...t21,
901
923
  ...t22
902
924
  };
903
- $[67] = styleFromProps;
904
- $[68] = t21;
905
- $[69] = t22;
906
- $[70] = t23;
925
+ $[70] = styleFromProps;
926
+ $[71] = t21;
927
+ $[72] = t22;
928
+ $[73] = t23;
907
929
  } else {
908
- t23 = $[70];
930
+ t23 = $[73];
909
931
  }
910
932
  const style = t23;
911
933
  const anchorStyles = `[data-ukt-id="${id}"] > :first-child {
@@ -915,80 +937,80 @@ function Dropdown(t0) {
915
937
  position-anchor: --uktdd-anchor${id};
916
938
  }`;
917
939
  let t24;
918
- if ($[71] === Symbol.for("react.memo_cache_sentinel")) {
940
+ if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
919
941
  t24 = /* @__PURE__ */ jsx(Style, { href: "@acusti/dropdown/Dropdown", children: STYLES });
920
- $[71] = t24;
942
+ $[74] = t24;
921
943
  } else {
922
- t24 = $[71];
944
+ t24 = $[74];
923
945
  }
924
946
  const t25 = `@acusti/dropdown/Dropdown/${id}`;
925
947
  let t26;
926
- if ($[72] !== anchorStyles || $[73] !== t25) {
948
+ if ($[75] !== anchorStyles || $[76] !== t25) {
927
949
  t26 = /* @__PURE__ */ jsx(Style, { href: t25, children: anchorStyles });
928
- $[72] = anchorStyles;
929
- $[73] = t25;
930
- $[74] = t26;
950
+ $[75] = anchorStyles;
951
+ $[76] = t25;
952
+ $[77] = t26;
931
953
  } else {
932
- t26 = $[74];
954
+ t26 = $[77];
933
955
  }
934
956
  let t27;
935
- if ($[75] !== className || $[76] !== disabled || $[77] !== isOpen || $[78] !== isSearchable) {
957
+ if ($[78] !== className || $[79] !== disabled || $[80] !== isOpen || $[81] !== isSearchable) {
936
958
  t27 = clsx(ROOT_CLASS_NAME, className, {
937
959
  disabled,
938
960
  "is-open": isOpen,
939
961
  "is-searchable": isSearchable
940
962
  });
941
- $[75] = className;
942
- $[76] = disabled;
943
- $[77] = isOpen;
944
- $[78] = isSearchable;
945
- $[79] = t27;
963
+ $[78] = className;
964
+ $[79] = disabled;
965
+ $[80] = isOpen;
966
+ $[81] = isSearchable;
967
+ $[82] = t27;
946
968
  } else {
947
- t27 = $[79];
969
+ t27 = $[82];
948
970
  }
949
971
  let t28;
950
- if ($[80] !== children || $[81] !== childrenCount || $[82] !== isOpen) {
972
+ if ($[83] !== children || $[84] !== childrenCount || $[85] !== isOpen) {
951
973
  t28 = isOpen ? /* @__PURE__ */ jsx("div", { className: BODY_CLASS_NAME, ref: setDropdownBodyElement, children: childrenCount > 1 ? children[1] : children }) : null;
952
- $[80] = children;
953
- $[81] = childrenCount;
954
- $[82] = isOpen;
955
- $[83] = t28;
974
+ $[83] = children;
975
+ $[84] = childrenCount;
976
+ $[85] = isOpen;
977
+ $[86] = t28;
956
978
  } else {
957
- t28 = $[83];
979
+ t28 = $[86];
958
980
  }
959
981
  let t29;
960
- if ($[84] !== handleMouseDown || $[85] !== handleMouseOut || $[86] !== handleMouseOver || $[87] !== handleMouseUp || $[88] !== handleRef || $[89] !== id || $[90] !== onClick || $[91] !== style || $[92] !== t27 || $[93] !== t28 || $[94] !== trigger) {
982
+ if ($[87] !== handleMouseDown || $[88] !== handleMouseOut || $[89] !== handleMouseOver || $[90] !== handleMouseUp || $[91] !== handleRef || $[92] !== id || $[93] !== onClick || $[94] !== style || $[95] !== t27 || $[96] !== t28 || $[97] !== trigger) {
961
983
  t29 = /* @__PURE__ */ jsxs("div", { className: t27, "data-ukt-id": id, onClick, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseOut: handleMouseOut, onMouseOver: handleMouseOver, onMouseUp: handleMouseUp, ref: handleRef, style, children: [
962
984
  trigger,
963
985
  t28
964
986
  ] });
965
- $[84] = handleMouseDown;
966
- $[85] = handleMouseOut;
967
- $[86] = handleMouseOver;
968
- $[87] = handleMouseUp;
969
- $[88] = handleRef;
970
- $[89] = id;
971
- $[90] = onClick;
972
- $[91] = style;
973
- $[92] = t27;
974
- $[93] = t28;
975
- $[94] = trigger;
976
- $[95] = t29;
987
+ $[87] = handleMouseDown;
988
+ $[88] = handleMouseOut;
989
+ $[89] = handleMouseOver;
990
+ $[90] = handleMouseUp;
991
+ $[91] = handleRef;
992
+ $[92] = id;
993
+ $[93] = onClick;
994
+ $[94] = style;
995
+ $[95] = t27;
996
+ $[96] = t28;
997
+ $[97] = trigger;
998
+ $[98] = t29;
977
999
  } else {
978
- t29 = $[95];
1000
+ t29 = $[98];
979
1001
  }
980
1002
  let t30;
981
- if ($[96] !== t26 || $[97] !== t29) {
1003
+ if ($[99] !== t26 || $[100] !== t29) {
982
1004
  t30 = /* @__PURE__ */ jsxs(Fragment, { children: [
983
1005
  t24,
984
1006
  t26,
985
1007
  t29
986
1008
  ] });
987
- $[96] = t26;
988
- $[97] = t29;
989
- $[98] = t30;
1009
+ $[99] = t26;
1010
+ $[100] = t29;
1011
+ $[101] = t30;
990
1012
  } else {
991
- t30 = $[98];
1013
+ t30 = $[101];
992
1014
  }
993
1015
  return t30;
994
1016
  }