@wello-dev/core 1.0.6 → 1.0.7

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 (35) hide show
  1. package/dist/{chunk-QCMTAQSP.js → chunk-2MVQG2PQ.js} +6 -3
  2. package/dist/{chunk-QCMTAQSP.js.map → chunk-2MVQG2PQ.js.map} +1 -1
  3. package/dist/{chunk-2WHZJI3S.js → chunk-3IKAVFR3.js} +2 -2
  4. package/dist/{chunk-DRSBB5T4.js → chunk-4E45SQMX.js} +2 -2
  5. package/dist/{chunk-FSR3OEUP.js → chunk-EME4ROPE.js} +4 -4
  6. package/dist/{chunk-RVFCTNPD.js → chunk-JXRN4MGT.js} +2 -2
  7. package/dist/{chunk-XBLREJCR.js → chunk-LGL6XP6C.js} +11 -6
  8. package/dist/chunk-LGL6XP6C.js.map +1 -0
  9. package/dist/{chunk-NH26XE7T.js → chunk-N76DWAX4.js} +2 -2
  10. package/dist/{chunk-A76QHCP5.js → chunk-OYUQO4ZT.js} +2 -2
  11. package/dist/{chunk-BZPG4NZ6.js → chunk-WVYAE5MT.js} +2 -2
  12. package/dist/{chunk-YRKCM3OL.js → chunk-XG7ZGCBW.js} +7 -6
  13. package/dist/{chunk-YRKCM3OL.js.map → chunk-XG7ZGCBW.js.map} +1 -1
  14. package/dist/components/ColorPicker/ColorInput.js +3 -3
  15. package/dist/components/Combobox/Combobox.js +3 -3
  16. package/dist/components/Combobox/Select.js +4 -4
  17. package/dist/components/Combobox/TagsInput.js +4 -4
  18. package/dist/components/Menu/Menu.js +3 -3
  19. package/dist/components/PhoneInput/PhoneInput.js +5 -5
  20. package/dist/components/Popover/Popover.js +2 -2
  21. package/dist/components/Tooltip/Tooltip.js +2 -2
  22. package/dist/index.cjs +19 -10
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.js +99 -99
  25. package/dist/shadcn/Floating.js +5 -5
  26. package/dist/styles.css +36 -3
  27. package/package.json +1 -1
  28. package/dist/chunk-XBLREJCR.js.map +0 -1
  29. /package/dist/{chunk-2WHZJI3S.js.map → chunk-3IKAVFR3.js.map} +0 -0
  30. /package/dist/{chunk-DRSBB5T4.js.map → chunk-4E45SQMX.js.map} +0 -0
  31. /package/dist/{chunk-FSR3OEUP.js.map → chunk-EME4ROPE.js.map} +0 -0
  32. /package/dist/{chunk-RVFCTNPD.js.map → chunk-JXRN4MGT.js.map} +0 -0
  33. /package/dist/{chunk-NH26XE7T.js.map → chunk-N76DWAX4.js.map} +0 -0
  34. /package/dist/{chunk-A76QHCP5.js.map → chunk-OYUQO4ZT.js.map} +0 -0
  35. /package/dist/{chunk-BZPG4NZ6.js.map → chunk-WVYAE5MT.js.map} +0 -0
@@ -5,18 +5,18 @@ import {
5
5
  matchesPhoneStartingNumber,
6
6
  normalizeStartingNumber,
7
7
  resolvePhoneCountry
8
- } from "../../chunk-XBLREJCR.js";
8
+ } from "../../chunk-LGL6XP6C.js";
9
9
  import "../../chunk-TVOR2RGE.js";
10
- import "../../chunk-RVFCTNPD.js";
10
+ import "../../chunk-JXRN4MGT.js";
11
11
  import "../../chunk-DHAMBKCR.js";
12
- import "../../chunk-BZPG4NZ6.js";
12
+ import "../../chunk-WVYAE5MT.js";
13
13
  import "../../chunk-JJXJXOZ7.js";
14
14
  import "../../chunk-DCC7EE67.js";
15
15
  import "../../chunk-57ZKN6G3.js";
16
16
  import "../../chunk-YFBYWNYF.js";
17
17
  import "../../chunk-ZJZUNSCO.js";
18
- import "../../chunk-YRKCM3OL.js";
19
- import "../../chunk-QCMTAQSP.js";
18
+ import "../../chunk-XG7ZGCBW.js";
19
+ import "../../chunk-2MVQG2PQ.js";
20
20
  import "../../chunk-AZ4WBNXD.js";
21
21
  import "../../chunk-2TFJ4SMR.js";
22
22
  import "../../chunk-H4D7LXZL.js";
@@ -4,8 +4,8 @@ import {
4
4
  PopoverDropdown,
5
5
  PopoverTarget,
6
6
  usePopoverContext
7
- } from "../../chunk-YRKCM3OL.js";
8
- import "../../chunk-QCMTAQSP.js";
7
+ } from "../../chunk-XG7ZGCBW.js";
8
+ import "../../chunk-2MVQG2PQ.js";
9
9
  import "../../chunk-AZ4WBNXD.js";
10
10
  import "../../chunk-2TFJ4SMR.js";
11
11
  import "../../chunk-H4D7LXZL.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  Tooltip,
4
4
  TooltipFloating
5
- } from "../../chunk-2WHZJI3S.js";
6
- import "../../chunk-QCMTAQSP.js";
5
+ } from "../../chunk-3IKAVFR3.js";
6
+ import "../../chunk-2MVQG2PQ.js";
7
7
  import "../../chunk-2TFJ4SMR.js";
8
8
  import "../../chunk-H4D7LXZL.js";
9
9
  import "../../chunk-CTBTEAD6.js";
package/dist/index.cjs CHANGED
@@ -5706,11 +5706,14 @@ function useFloating(options) {
5706
5706
  }, [opened, update2]);
5707
5707
  (0, import_react32.useEffect)(() => {
5708
5708
  if (!opened) return;
5709
- let frame = requestAnimationFrame(update2);
5709
+ let frame = 0;
5710
5710
  const onChange = () => {
5711
5711
  cancelAnimationFrame(frame);
5712
- frame = requestAnimationFrame(update2);
5712
+ frame = requestAnimationFrame(() => {
5713
+ frame = requestAnimationFrame(update2);
5714
+ });
5713
5715
  };
5716
+ onChange();
5714
5717
  window.addEventListener("scroll", onChange, true);
5715
5718
  window.addEventListener("resize", onChange);
5716
5719
  const observer = typeof ResizeObserver !== "undefined" ? new ResizeObserver(onChange) : null;
@@ -5905,13 +5908,14 @@ var PopoverDropdown = factory(({ children, className, style, ...others }, ref) =
5905
5908
  style: {
5906
5909
  ...transitionStyles2,
5907
5910
  ...dropdown.style,
5911
+ // transform (not top/left) — survives filter/mask containing blocks on ancestors
5912
+ // when a portal is briefly missing, and avoids inset shorthand fights.
5908
5913
  position: "fixed",
5909
- // Clear any inherited inset from host CSS so left/top win.
5910
- inset: "auto",
5911
- top: floating.y,
5912
- left: floating.x,
5914
+ top: 0,
5915
+ left: 0,
5913
5916
  right: "auto",
5914
5917
  bottom: "auto",
5918
+ transform: floating.ready ? `translate3d(${Math.round(floating.x)}px, ${Math.round(floating.y)}px, 0)` : "translate3d(-9999px, -9999px, 0)",
5915
5919
  width,
5916
5920
  zIndex: props.zIndex,
5917
5921
  // Invisible until measured, so it doesn't flash at 0,0.
@@ -9547,7 +9551,7 @@ var DEFAULT_PHONE_CODE = "20";
9547
9551
 
9548
9552
  // src/components/PhoneInput/PhoneInput.tsx
9549
9553
  var import_jsx_runtime68 = (
9550
- // Always LTR: flag then dial code (RTL pages were flipping to "966 | flag").
9554
+ // Match classic PhoneInput: dial code then flag (trigger + list). Isolated LTR so RTL pages don't reorder.
9551
9555
  require("react/jsx-runtime")
9552
9556
  );
9553
9557
  var DEFAULT_COUNTRIES = ALL_PHONE_COUNTRIES;
@@ -9683,8 +9687,8 @@ var PhoneInput = factory((_props, ref) => {
9683
9687
  if (fitted !== latest.current.phone) latest.current.setPhone(fitted);
9684
9688
  }, [countryCode]);
9685
9689
  const showCountry = (item) => renderCountry ? renderCountry(item) : /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { ...getStyles("codeValue"), dir: "ltr", children: [
9686
- typeof item.flag === "string" ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("img", { ...getStyles("flag"), src: item.flag, alt: item.name ?? "", onError: (event) => event.currentTarget.style.display = "none" }) : item.flag,
9687
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { ...getStyles("dialCode"), children: item.code })
9690
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { ...getStyles("dialCode"), children: item.code }),
9691
+ typeof item.flag === "string" ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("img", { ...getStyles("flag"), src: item.flag, alt: item.name ?? "", onError: (event) => event.currentTarget.style.display = "none" }) : item.flag
9688
9692
  ] });
9689
9693
  const toOption = (item) => ({ value: item.code, label: showCountry(item), searchText: `${item.name ?? ""} ${item.code}`, resolved: item });
9690
9694
  const hasMessage = (message) => message !== void 0 && message !== null && message !== false && message !== true && message !== "";
@@ -9709,8 +9713,13 @@ var PhoneInput = factory((_props, ref) => {
9709
9713
  "aria-label": codePlaceholder,
9710
9714
  ...selectProps,
9711
9715
  // PhoneInput wins these after selectProps — dial codes stay LTR and compact.
9712
- searchable: false,
9716
+ searchable: true,
9713
9717
  checkIconPosition: "right",
9718
+ // LTR trigger; chevron sits on the physical left like the old Mantine control.
9719
+ dir: "ltr",
9720
+ rightSectionWidth: "1.5rem",
9721
+ // Search box + ~5 country rows; still short enough that flip-to-top stays near the trigger.
9722
+ maxDropdownHeight: selectProps?.maxDropdownHeight ?? 280,
9714
9723
  classNames: {
9715
9724
  ...selectPropClassNames,
9716
9725
  dropdown: ["wello-PhoneInput-dropdown", selectPropClassNames.dropdown].filter(Boolean).join(" ")