@yenio-pld/blocks 1.2.0-rc.4 → 1.2.0-rc.6

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/index.js CHANGED
@@ -2853,32 +2853,39 @@ function CountryPicker({
2853
2853
  /* @__PURE__ */ jsx(Combobox.Portal, { children: /* @__PURE__ */ jsx(
2854
2854
  Combobox.Positioner,
2855
2855
  {
2856
- className: "isolate z-50 outline-none",
2856
+ className: "pointer-events-auto isolate z-[60] outline-none",
2857
2857
  sideOffset: 4,
2858
2858
  children: /* @__PURE__ */ jsxs(
2859
2859
  Combobox.Popup,
2860
2860
  {
2861
2861
  className: cn(
2862
- "z-50 max-h-60 w-(--anchor-width) min-w-[16rem] overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10",
2862
+ "pointer-events-auto z-[60] max-h-60 w-(--anchor-width) min-w-[16rem] overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10",
2863
2863
  "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95"
2864
2864
  ),
2865
2865
  children: [
2866
2866
  /* @__PURE__ */ jsx(Combobox.Empty, { className: "px-3 py-2 text-sm text-muted-foreground", children: labels.noResults }),
2867
- /* @__PURE__ */ jsx(Combobox.List, { className: "max-h-60 overflow-y-auto p-1 outline-none", children: (item) => /* @__PURE__ */ jsxs(
2868
- Combobox.Item,
2867
+ /* @__PURE__ */ jsx(
2868
+ Combobox.List,
2869
2869
  {
2870
- value: item,
2871
- className: cn(
2872
- "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-none select-none",
2873
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground"
2874
- ),
2875
- children: [
2876
- /* @__PURE__ */ jsx(Combobox.ItemIndicator, { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4", "aria-hidden": true }) }),
2877
- /* @__PURE__ */ jsx("span", { children: item.label })
2878
- ]
2879
- },
2880
- item.value
2881
- ) })
2870
+ className: "max-h-60 overflow-y-auto p-1 outline-none",
2871
+ onWheel: (event) => event.stopPropagation(),
2872
+ children: (item) => /* @__PURE__ */ jsxs(
2873
+ Combobox.Item,
2874
+ {
2875
+ value: item,
2876
+ className: cn(
2877
+ "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-none select-none",
2878
+ "data-highlighted:bg-accent data-highlighted:text-accent-foreground"
2879
+ ),
2880
+ children: [
2881
+ /* @__PURE__ */ jsx(Combobox.ItemIndicator, { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4", "aria-hidden": true }) }),
2882
+ /* @__PURE__ */ jsx("span", { children: item.label })
2883
+ ]
2884
+ },
2885
+ item.value
2886
+ )
2887
+ }
2888
+ )
2882
2889
  ]
2883
2890
  }
2884
2891
  )
@@ -4949,7 +4956,7 @@ function LegalMarkdown({ markdown, className }) {
4949
4956
  // src/theme-init.ts
4950
4957
  var THEME_STORAGE_KEY = "theme";
4951
4958
  var THEME_INIT_SCRIPT_ID = "yenio-theme-init";
4952
- var THEME_INIT_SCRIPT = `(function(){var t="light";var s;try{s=localStorage.getItem("${THEME_STORAGE_KEY}")}catch(e){}if(s==="dark"||s==="light"){t=s}else{try{if(window.matchMedia("(prefers-color-scheme: dark)").matches)t="dark"}catch(e){}}var r=document.documentElement;r.classList.add(t);r.style.colorScheme=t})();`;
4959
+ var THEME_INIT_SCRIPT = `(function(){var t="light";var s;try{s=localStorage.getItem("${THEME_STORAGE_KEY}")}catch(e){}if(s==="dark"||s==="light"){t=s}else{try{if(window.matchMedia("(prefers-color-scheme: dark)").matches)t="dark"}catch(e){}}var r=document.documentElement;r.classList.add(t);r.style.colorScheme=t;var themeColors={light:null,dark:null};function captureThemeColors(){try{var metas=document.querySelectorAll('meta[name="theme-color"]');for(var i=0;i<metas.length;i++){var m=metas[i];var media=(m.getAttribute("media")||"").toLowerCase();var c=m.getAttribute("content");if(!c)continue;if(media.indexOf("dark")!==-1)themeColors.dark=c;else if(media.indexOf("light")!==-1)themeColors.light=c}}catch(e){}}function resolvedTheme(){if(r.classList.contains("dark"))return"dark";if(r.classList.contains("light"))return"light";return t}function syncThemeColor(){try{var metas=document.querySelectorAll('meta[name="theme-color"]');if(!metas.length)return;if(!themeColors.light&&!themeColors.dark)captureThemeColors();var theme=resolvedTheme();var color=themeColors[theme];if(!color){for(var i=0;i<metas.length;i++){var media=metas[i].getAttribute("media")||"";if(media.indexOf(theme)!==-1){color=metas[i].getAttribute("content");break}}}if(!color)return;for(var j=0;j<metas.length;j++){metas[j].setAttribute("content",color);metas[j].setAttribute("media","all")}}catch(e){}}syncThemeColor();try{new MutationObserver(function(){syncThemeColor()}).observe(r,{attributes:true,attributeFilter:["class"]})}catch(e){}})();`;
4953
4960
  var DEFAULT_AUDIT_TIMELINE_LABELS = {
4954
4961
  emptyTitle: "No events",
4955
4962
  emptyDescription: "Audited activity will appear here.",