@xsolla/xui-core 0.185.6 → 0.186.1

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/index.mjs CHANGED
@@ -4579,6 +4579,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
4579
4579
  maxWidth: 680,
4580
4580
  overlayColor: "rgba(0, 0, 0, 0.75)",
4581
4581
  portalPadding: 20,
4582
+ /** @deprecated Layering is contextual now; see OVERLAY_LAYER_BASE / useOverlayLayer. */
4582
4583
  zIndex: 1e3
4583
4584
  };
4584
4585
  },
@@ -4603,6 +4604,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
4603
4604
  stepperContentGap: 8,
4604
4605
  scrimColor: "rgba(0, 0, 0, 0.75)",
4605
4606
  animationDuration: 300,
4607
+ /** @deprecated Layering is contextual now; see MODAL_LAYER_STEP / useOverlayLayer. */
4606
4608
  zIndex: 1e3
4607
4609
  }),
4608
4610
  sidebar: () => ({
@@ -4629,6 +4631,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
4629
4631
  popoverMinWidth: 180,
4630
4632
  popoverMaxWidth: 240,
4631
4633
  popoverShadow: "0 2px 25px rgba(7, 7, 8, 0.15)",
4634
+ /** @deprecated Layering is contextual now; see useOverlayLayer / LAYER_OFFSET. */
4632
4635
  popoverZIndex: 1e3,
4633
4636
  transitionWidth: "0.25s ease-in-out",
4634
4637
  transitionFadeIn: "opacity 0.15s ease-in-out 0.1s",
@@ -4880,12 +4883,35 @@ var useIdFallback = () => {
4880
4883
  var useId = hasReactUseId ? React3.useId : useIdFallback;
4881
4884
  var ModalIdContext = createContext(null);
4882
4885
  var useModalId = () => useContext(ModalIdContext);
4886
+ var OVERLAY_LAYER_BASE = 1e3;
4887
+ var LAYER_OFFSET = {
4888
+ /** Trigger-anchored value lists: dropdown, select, multi-select, autocomplete. */
4889
+ popover: 200,
4890
+ /** context-menu and its consumers (status-dropdown). */
4891
+ menu: 100,
4892
+ /** tooltip, toggletip. */
4893
+ tooltip: 300
4894
+ };
4895
+ var MODAL_LAYER_STEP = 1e3;
4896
+ var TOAST_LAYER = 9999;
4897
+ var OverlayLayerContext = createContext(OVERLAY_LAYER_BASE);
4898
+ var OverlayLayerProvider = OverlayLayerContext.Provider;
4899
+ var useOverlayLayer = () => useContext(OverlayLayerContext);
4900
+ var ModalStackContext = createContext(0);
4901
+ var ModalStackProvider = ModalStackContext.Provider;
4902
+ var useModalStackDepth = () => useContext(ModalStackContext);
4883
4903
  export {
4884
4904
  DISPLAY_SCALE_STEPS,
4885
4905
  FontLoader,
4906
+ LAYER_OFFSET,
4886
4907
  MOBILE_MAX_WIDTH,
4908
+ MODAL_LAYER_STEP,
4887
4909
  ModalIdContext,
4910
+ ModalStackProvider,
4911
+ OVERLAY_LAYER_BASE,
4912
+ OverlayLayerProvider,
4888
4913
  SCALE_STEPS,
4914
+ TOAST_LAYER,
4889
4915
  TypographyStyleLoader,
4890
4916
  XUIProvider,
4891
4917
  breakpoints,
@@ -4919,6 +4945,8 @@ export {
4919
4945
  useDesignSystem,
4920
4946
  useId,
4921
4947
  useModalId,
4948
+ useModalStackDepth,
4949
+ useOverlayLayer,
4922
4950
  useResolvedTheme
4923
4951
  };
4924
4952
  //# sourceMappingURL=index.mjs.map