@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.cjs CHANGED
@@ -2874,32 +2874,39 @@ function CountryPicker({
2874
2874
  /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
2875
2875
  combobox_js.Combobox.Positioner,
2876
2876
  {
2877
- className: "isolate z-50 outline-none",
2877
+ className: "pointer-events-auto isolate z-[60] outline-none",
2878
2878
  sideOffset: 4,
2879
2879
  children: /* @__PURE__ */ jsxRuntime.jsxs(
2880
2880
  combobox_js.Combobox.Popup,
2881
2881
  {
2882
2882
  className: cn(
2883
- "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",
2883
+ "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",
2884
2884
  "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95"
2885
2885
  ),
2886
2886
  children: [
2887
2887
  /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Empty, { className: "px-3 py-2 text-sm text-muted-foreground", children: labels.noResults }),
2888
- /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.List, { className: "max-h-60 overflow-y-auto p-1 outline-none", children: (item) => /* @__PURE__ */ jsxRuntime.jsxs(
2889
- combobox_js.Combobox.Item,
2888
+ /* @__PURE__ */ jsxRuntime.jsx(
2889
+ combobox_js.Combobox.List,
2890
2890
  {
2891
- value: item,
2892
- className: cn(
2893
- "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-none select-none",
2894
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground"
2895
- ),
2896
- children: [
2897
- /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.ItemIndicator, { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4", "aria-hidden": true }) }),
2898
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label })
2899
- ]
2900
- },
2901
- item.value
2902
- ) })
2891
+ className: "max-h-60 overflow-y-auto p-1 outline-none",
2892
+ onWheel: (event) => event.stopPropagation(),
2893
+ children: (item) => /* @__PURE__ */ jsxRuntime.jsxs(
2894
+ combobox_js.Combobox.Item,
2895
+ {
2896
+ value: item,
2897
+ className: cn(
2898
+ "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-none select-none",
2899
+ "data-highlighted:bg-accent data-highlighted:text-accent-foreground"
2900
+ ),
2901
+ children: [
2902
+ /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.ItemIndicator, { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4", "aria-hidden": true }) }),
2903
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label })
2904
+ ]
2905
+ },
2906
+ item.value
2907
+ )
2908
+ }
2909
+ )
2903
2910
  ]
2904
2911
  }
2905
2912
  )
@@ -4970,7 +4977,7 @@ function LegalMarkdown({ markdown, className }) {
4970
4977
  // src/theme-init.ts
4971
4978
  var THEME_STORAGE_KEY = "theme";
4972
4979
  var THEME_INIT_SCRIPT_ID = "yenio-theme-init";
4973
- 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})();`;
4980
+ 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){}})();`;
4974
4981
  var DEFAULT_AUDIT_TIMELINE_LABELS = {
4975
4982
  emptyTitle: "No events",
4976
4983
  emptyDescription: "Audited activity will appear here.",