remoraid 2.18.43 → 2.19.4

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.
@@ -5872,7 +5872,8 @@ var createRemoraidTheme = (customTheme, dependencies) => {
5872
5872
  stroke: 3,
5873
5873
  ...customTheme?.iconProps?.tiny
5874
5874
  }
5875
- }
5875
+ },
5876
+ primaryGutter: "md"
5876
5877
  };
5877
5878
  };
5878
5879
  var themeContext = import_react4.default.createContext(createRemoraidTheme());
@@ -6526,7 +6527,7 @@ function AppShell({
6526
6527
  footerVariant: footerVariantProp,
6527
6528
  navbarPosition: navbarPositionProp,
6528
6529
  footerPosition: footerPositionProp,
6529
- gutter = "md",
6530
+ gutter,
6530
6531
  appContext: appContext2,
6531
6532
  componentsProps,
6532
6533
  children
@@ -6535,6 +6536,7 @@ function AppShell({
6535
6536
  const footerVariant = footerVariantProp ?? null;
6536
6537
  const navbarPosition = navbarPositionProp ?? (navbarVariant === null ? null : defaultAppShellNavbarPositions[navbarVariant]);
6537
6538
  const footerPosition = footerPositionProp ?? (footerVariant === null ? null : defaultAppShellFooterPositions[footerVariant]);
6539
+ const theme = useRemoraidTheme();
6538
6540
  let navbar;
6539
6541
  let footer;
6540
6542
  let navbarLayoutElementProps = {
@@ -6562,7 +6564,7 @@ function AppShell({
6562
6564
  ...componentsProps?.container,
6563
6565
  children: /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(FrameLayout_default, {
6564
6566
  layoutId: remoraidAppShellLayoutId,
6565
- gutter,
6567
+ gutter: gutter ?? theme.primaryGutter,
6566
6568
  ...componentsProps?.layout,
6567
6569
  children: [
6568
6570
  navbarPosition !== null && /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(FrameLayout_default.Element, {
@@ -6587,9 +6589,10 @@ var AppShell_default = Object.assign(AppShell, {
6587
6589
  FooterMinimal
6588
6590
  });
6589
6591
  // src/core/components/WidgetSelectionHeader/index.tsx
6590
- var import_core10 = require("@mantine/core");
6592
+ var import_core11 = require("@mantine/core");
6591
6593
 
6592
6594
  // src/core/components/Page/index.tsx
6595
+ var import_core9 = require("@mantine/core");
6593
6596
  var import_react11 = __toESM(require("react"));
6594
6597
  var import_navigation2 = require("next/navigation");
6595
6598
  var jsx_dev_runtime15 = require("react/jsx-dev-runtime");
@@ -6601,9 +6604,10 @@ function Page({
6601
6604
  children,
6602
6605
  name,
6603
6606
  config,
6604
- p = 0,
6607
+ gap,
6605
6608
  componentsProps
6606
6609
  }) {
6610
+ const theme = useRemoraidTheme();
6607
6611
  const pathname = import_navigation2.usePathname();
6608
6612
  const { isPageRegistered, registerPage } = useWidgets();
6609
6613
  const pageId = config?.pageId ?? pathname;
@@ -6617,9 +6621,13 @@ function Page({
6617
6621
  return /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(pageContext.Provider, {
6618
6622
  value: { name: name ?? pathname, pageId, ...config },
6619
6623
  children: /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(PageContainer, {
6620
- p,
6621
- componentsProps: { container: componentsProps?.container },
6622
- children
6624
+ ...componentsProps?.PageContainer,
6625
+ children: /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(import_core9.Stack, {
6626
+ gap: gap ?? theme.primaryGutter,
6627
+ ...componentsProps?.Stack,
6628
+ className: clsx_default("remoraid-page", componentsProps?.Stack?.className),
6629
+ children
6630
+ }, undefined, false, undefined, this)
6623
6631
  }, undefined, false, undefined, this)
6624
6632
  }, undefined, false, undefined, this);
6625
6633
  }
@@ -6628,7 +6636,7 @@ function Page({
6628
6636
  var import_icons_react4 = require("@tabler/icons-react");
6629
6637
 
6630
6638
  // src/core/components/ScrollableChipGroup/index.tsx
6631
- var import_core9 = require("@mantine/core");
6639
+ var import_core10 = require("@mantine/core");
6632
6640
  var jsx_dev_runtime16 = require("react/jsx-dev-runtime");
6633
6641
  function ScrollableChipGroup({
6634
6642
  value,
@@ -6637,17 +6645,17 @@ function ScrollableChipGroup({
6637
6645
  componentsProps,
6638
6646
  children: childrenProp
6639
6647
  }) {
6640
- const children = asChildrenOfType(import_core9.Chip, childrenProp, "Check children passed to 'ScrollableChipGroup' component.");
6648
+ const children = asChildrenOfType(import_core10.Chip, childrenProp, "Check children passed to 'ScrollableChipGroup' component.");
6641
6649
  const theme = useRemoraidTheme();
6642
- return /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core9.ScrollArea, {
6650
+ return /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core10.ScrollArea, {
6643
6651
  ...theme.scrollAreaProps,
6644
6652
  ...componentsProps?.scrollArea,
6645
- children: /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core9.Chip.Group, {
6653
+ children: /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core10.Chip.Group, {
6646
6654
  value,
6647
6655
  onChange,
6648
6656
  ...componentsProps?.chipGroup,
6649
6657
  multiple: true,
6650
- children: /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core9.Flex, {
6658
+ children: /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core10.Flex, {
6651
6659
  justify: "flex-start",
6652
6660
  align: "center",
6653
6661
  gap: gap ?? "xs",
@@ -6673,18 +6681,18 @@ function WidgetSelectionHeader({
6673
6681
  throw new InvalidComponentUsageError("WidgetSelectionHeader", "must be used as child of 'Page'.");
6674
6682
  }
6675
6683
  const widgets = widgetsContext2.widgets[page.pageId] ?? {};
6676
- return /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core10.Flex, {
6684
+ return /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core11.Flex, {
6677
6685
  justify: "flex-start",
6678
6686
  align: "center",
6679
6687
  gap: "xs",
6680
6688
  mt,
6681
6689
  children: [
6682
- /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core10.Text, {
6690
+ /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core11.Text, {
6683
6691
  size: "lg",
6684
6692
  fw: 400,
6685
6693
  children: title ?? page.name
6686
6694
  }, undefined, false, undefined, this),
6687
- /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core10.Divider, {
6695
+ /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core11.Divider, {
6688
6696
  orientation: "vertical"
6689
6697
  }, undefined, false, undefined, this),
6690
6698
  isPageRegistered(page.pageId) && /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(ScrollableChipGroup, {
@@ -6695,7 +6703,7 @@ function WidgetSelectionHeader({
6695
6703
  componentsProps: { scrollArea: { flex: 1 } },
6696
6704
  children: Object.keys(widgets).map((widgetId) => {
6697
6705
  const widget = widgets[widgetId] ?? getDefaultWidgetContext({ widgetId });
6698
- return /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core10.Chip, {
6706
+ return /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core11.Chip, {
6699
6707
  value: widgetId,
6700
6708
  size: "sm",
6701
6709
  disabled: disabledWidgets && disabledWidgets.includes(widgetId),
@@ -6710,11 +6718,11 @@ function WidgetSelectionHeader({
6710
6718
  }, undefined, true, undefined, this);
6711
6719
  }
6712
6720
  // src/core/components/BadgeGroup/index.tsx
6713
- var import_core12 = require("@mantine/core");
6721
+ var import_core13 = require("@mantine/core");
6714
6722
  var import_react12 = __toESM(require("react"));
6715
6723
 
6716
6724
  // src/core/components/BadgeMinimal/index.tsx
6717
- var import_core11 = require("@mantine/core");
6725
+ var import_core12 = require("@mantine/core");
6718
6726
  var jsx_dev_runtime18 = require("react/jsx-dev-runtime");
6719
6727
  function BadgeMinimal({
6720
6728
  label,
@@ -6723,17 +6731,17 @@ function BadgeMinimal({
6723
6731
  componentsProps
6724
6732
  }) {
6725
6733
  const theme = useRemoraidTheme();
6726
- return /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core11.Transition, {
6734
+ return /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core12.Transition, {
6727
6735
  mounted,
6728
6736
  transition: "fade",
6729
6737
  duration: theme.transitionDurations.short,
6730
6738
  timingFunction: "ease",
6731
6739
  ...componentsProps?.transition,
6732
- children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core11.Tooltip, {
6740
+ children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core12.Tooltip, {
6733
6741
  disabled: !tooltip,
6734
6742
  label: tooltip,
6735
6743
  ...componentsProps?.tooltip,
6736
- children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core11.Badge, {
6744
+ children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core12.Badge, {
6737
6745
  variant: "default",
6738
6746
  ...componentsProps?.badge,
6739
6747
  style: {
@@ -6761,7 +6769,7 @@ function BadgeGroup({
6761
6769
  const numVisibleBadges = badges.filter((badge) => isValidElementOfType(BadgeMinimal, badge) ? badge.props.mounted : badge.mounted !== false).length;
6762
6770
  return /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(jsx_dev_runtime19.Fragment, {
6763
6771
  children: [
6764
- /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core12.Group, {
6772
+ /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core13.Group, {
6765
6773
  gap: gap ?? "xs",
6766
6774
  wrap: "nowrap",
6767
6775
  visibleFrom: breakpoint ?? theme.breakpoints.badgeGroupCollapse,
@@ -6777,10 +6785,10 @@ function BadgeGroup({
6777
6785
  });
6778
6786
  })
6779
6787
  }, undefined, false, undefined, this),
6780
- /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core12.Tooltip, {
6788
+ /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core13.Tooltip, {
6781
6789
  label: `${numVisibleBadges} badge${numVisibleBadges === 1 ? "" : "s"}`,
6782
6790
  ...componentsProps?.tooltip,
6783
- children: /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core12.Badge, {
6791
+ children: /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core13.Badge, {
6784
6792
  hiddenFrom: breakpoint ?? theme.breakpoints.badgeGroupCollapse,
6785
6793
  hidden: numVisibleBadges === 0,
6786
6794
  variant: "light",
@@ -6794,7 +6802,7 @@ function BadgeGroup({
6794
6802
  }, undefined, true, undefined, this);
6795
6803
  }
6796
6804
  // src/core/components/AlertMinimal/index.tsx
6797
- var import_core13 = require("@mantine/core");
6805
+ var import_core14 = require("@mantine/core");
6798
6806
  var jsx_dev_runtime20 = require("react/jsx-dev-runtime");
6799
6807
  function AlertMinimal({
6800
6808
  title,
@@ -6808,13 +6816,13 @@ function AlertMinimal({
6808
6816
  children
6809
6817
  }) {
6810
6818
  const theme = useRemoraidTheme();
6811
- return /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core13.Transition, {
6819
+ return /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core14.Transition, {
6812
6820
  mounted: mounted !== false,
6813
6821
  transition: "fade",
6814
6822
  duration: theme.transitionDurations.short,
6815
6823
  timingFunction: "ease",
6816
6824
  ...componentsProps?.transition,
6817
- children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core13.Alert, {
6825
+ children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core14.Alert, {
6818
6826
  ...theme.alertProps[category],
6819
6827
  title: title ?? theme.alertProps[category].title,
6820
6828
  withCloseButton: onClose !== undefined,
@@ -6834,7 +6842,7 @@ function AlertMinimal({
6834
6842
  }, undefined, false, undefined, this);
6835
6843
  }
6836
6844
  // src/core/components/RemoraidButton/index.tsx
6837
- var import_core14 = require("@mantine/core");
6845
+ var import_core15 = require("@mantine/core");
6838
6846
  var import_icons_react5 = require("@tabler/icons-react");
6839
6847
  var import_react13 = require("react");
6840
6848
  var jsx_dev_runtime21 = require("react/jsx-dev-runtime");
@@ -6860,7 +6868,7 @@ function RemoraidButton({
6860
6868
  const theme = useRemoraidTheme();
6861
6869
  const iconProps = { ...theme.iconProps[iconSize], ...componentsProps?.icon };
6862
6870
  const iconElement = import_react13.createElement(icon, iconProps);
6863
- return /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core14.Transition, {
6871
+ return /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core15.Transition, {
6864
6872
  mounted,
6865
6873
  transition: "fade",
6866
6874
  duration: theme.transitionDurations.short,
@@ -6868,10 +6876,10 @@ function RemoraidButton({
6868
6876
  ...componentsProps?.transition,
6869
6877
  children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(jsx_dev_runtime21.Fragment, {
6870
6878
  children: [
6871
- /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core14.Tooltip, {
6879
+ /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core15.Tooltip, {
6872
6880
  label,
6873
6881
  ...componentsProps?.tooltip,
6874
- children: /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core14.ActionIcon, {
6882
+ children: /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core15.ActionIcon, {
6875
6883
  "aria-label": label,
6876
6884
  variant,
6877
6885
  onClick,
@@ -6889,7 +6897,7 @@ function RemoraidButton({
6889
6897
  children: iconElement
6890
6898
  }, undefined, false, undefined, this)
6891
6899
  }, undefined, false, undefined, this),
6892
- /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core14.Button, {
6900
+ /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core15.Button, {
6893
6901
  onClick,
6894
6902
  loading,
6895
6903
  variant,
@@ -6911,7 +6919,7 @@ function RemoraidButton({
6911
6919
  }, undefined, false, undefined, this);
6912
6920
  }
6913
6921
  // src/core/components/Controls/ControlButton/index.tsx
6914
- var import_core15 = require("@mantine/core");
6922
+ var import_core16 = require("@mantine/core");
6915
6923
  var import_icons_react6 = require("@tabler/icons-react");
6916
6924
  var jsx_dev_runtime22 = require("react/jsx-dev-runtime");
6917
6925
  function ControlButton({
@@ -6926,17 +6934,17 @@ function ControlButton({
6926
6934
  componentsProps
6927
6935
  }) {
6928
6936
  const theme = useRemoraidTheme();
6929
- return /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core15.Transition, {
6937
+ return /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core16.Transition, {
6930
6938
  mounted,
6931
6939
  transition: "pop-top-right",
6932
6940
  duration: theme.transitionDurations.short,
6933
6941
  timingFunction: "ease",
6934
6942
  ...componentsProps?.transition,
6935
- children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core15.Tooltip, {
6943
+ children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core16.Tooltip, {
6936
6944
  label: tooltip,
6937
6945
  disabled: !Boolean(tooltip),
6938
6946
  ...componentsProps?.tooltip,
6939
- children: /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core15.ActionIcon, {
6947
+ children: /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core16.ActionIcon, {
6940
6948
  "data-control-button": true,
6941
6949
  size,
6942
6950
  color,
@@ -6959,7 +6967,7 @@ function ControlButton({
6959
6967
 
6960
6968
  // src/core/components/Controls/index.tsx
6961
6969
  var import_react14 = require("react");
6962
- var import_core16 = require("@mantine/core");
6970
+ var import_core17 = require("@mantine/core");
6963
6971
  var import_icons_react7 = require("@tabler/icons-react");
6964
6972
  var import_lodash3 = __toESM(require_lodash());
6965
6973
  var jsx_dev_runtime23 = require("react/jsx-dev-runtime");
@@ -7020,14 +7028,14 @@ function Controls({
7020
7028
  const handlePointerUp = (e) => {
7021
7029
  e.currentTarget.releasePointerCapture(e.pointerId);
7022
7030
  };
7023
- return /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core16.Transition, {
7031
+ return /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core17.Transition, {
7024
7032
  mounted,
7025
7033
  keepMounted: true,
7026
7034
  transition: "pop",
7027
7035
  duration: theme.transitionDurations.short,
7028
7036
  timingFunction: "ease",
7029
7037
  ...componentsProps?.transition,
7030
- children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core16.Paper, {
7038
+ children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core17.Paper, {
7031
7039
  ref: containerRef,
7032
7040
  pos: "absolute",
7033
7041
  p: gutter,
@@ -7043,7 +7051,7 @@ function Controls({
7043
7051
  ...import_lodash3.merge(transitionStyle, componentsProps?.container?.style)
7044
7052
  },
7045
7053
  className: clsx_default("remoraid-controls", componentsProps?.container?.className),
7046
- children: /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core16.Group, {
7054
+ children: /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core17.Group, {
7047
7055
  gap: gutter,
7048
7056
  ref: groupRef,
7049
7057
  wrap: "nowrap",
@@ -7070,14 +7078,14 @@ function Controls({
7070
7078
  }, undefined, false, undefined, this);
7071
7079
  }
7072
7080
  // src/core/components/Widget/WidgetWrapper/index.tsx
7073
- var import_core18 = require("@mantine/core");
7081
+ var import_core19 = require("@mantine/core");
7074
7082
  var import_react16 = require("react");
7075
7083
  var import_icons_react9 = require("@tabler/icons-react");
7076
7084
 
7077
7085
  // src/core/components/Pinnable/index.tsx
7078
7086
  var import_react15 = require("react");
7079
7087
  var import_icons_react8 = require("@tabler/icons-react");
7080
- var import_core17 = require("@mantine/core");
7088
+ var import_core18 = require("@mantine/core");
7081
7089
  var jsx_dev_runtime24 = require("react/jsx-dev-runtime");
7082
7090
  function Pinnable({
7083
7091
  layoutType: layoutTypeProp,
@@ -7108,7 +7116,7 @@ function Pinnable({
7108
7116
  componentsProps?.button?.onClick?.(e);
7109
7117
  }
7110
7118
  }, undefined, false, undefined, this), [pinned, componentsProps?.button]);
7111
- const element = /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core17.Box, {
7119
+ const element = /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core18.Box, {
7112
7120
  pos: "relative",
7113
7121
  ref: containerRef,
7114
7122
  "data-hidden": hidden,
@@ -7119,7 +7127,7 @@ function Pinnable({
7119
7127
  dragContainerRef: containerRef,
7120
7128
  ...componentsProps?.controls,
7121
7129
  children: controlButton
7122
- }, undefined, false, undefined, this) : controlsContainer !== null && /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core17.Portal, {
7130
+ }, undefined, false, undefined, this) : controlsContainer !== null && /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core18.Portal, {
7123
7131
  target: controlsContainer,
7124
7132
  children: controlButton
7125
7133
  }, undefined, false, undefined, this),
@@ -7177,7 +7185,7 @@ function WidgetWrapper({
7177
7185
  const handleLeave = () => {
7178
7186
  updateActiveWidget(null);
7179
7187
  };
7180
- let element = /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(import_core18.Transition, {
7188
+ let element = /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(import_core19.Transition, {
7181
7189
  mounted,
7182
7190
  transition: "fade-left",
7183
7191
  duration: theme.transitionDurations.medium,
@@ -7187,7 +7195,7 @@ function WidgetWrapper({
7187
7195
  setHidden(true);
7188
7196
  componentsProps?.transition?.onExited?.();
7189
7197
  },
7190
- children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(import_core18.Paper, {
7198
+ children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(import_core19.Paper, {
7191
7199
  ref: containerRef,
7192
7200
  p: "md",
7193
7201
  shadow: "md",
@@ -7293,7 +7301,7 @@ function WidgetWrapper({
7293
7301
  return element;
7294
7302
  }
7295
7303
  // src/core/components/Widget/index.tsx
7296
- var import_core19 = require("@mantine/core");
7304
+ var import_core20 = require("@mantine/core");
7297
7305
  var jsx_dev_runtime26 = require("react/jsx-dev-runtime");
7298
7306
  var react2 = require("react");
7299
7307
  function Widget({
@@ -7329,15 +7337,15 @@ function Widget({
7329
7337
  ...componentsProps?.wrapper,
7330
7338
  pinnableSection: pinnableSection ?? componentsProps?.wrapper?.pinnableSection,
7331
7339
  children: [
7332
- /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Group, {
7340
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Group, {
7333
7341
  justify: "space-between",
7334
7342
  wrap: "nowrap",
7335
7343
  children: [
7336
- /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Group, {
7344
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Group, {
7337
7345
  gap: badgesGap,
7338
7346
  wrap: "nowrap",
7339
7347
  children: [
7340
- /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Title, {
7348
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Title, {
7341
7349
  order: 1,
7342
7350
  size: "h3",
7343
7351
  lineClamp: 1,
@@ -7350,7 +7358,7 @@ function Widget({
7350
7358
  }, undefined, false, undefined, this)
7351
7359
  ]
7352
7360
  }, undefined, true, undefined, this),
7353
- /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Group, {
7361
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Group, {
7354
7362
  gap: buttonsGap,
7355
7363
  wrap: "nowrap",
7356
7364
  children: buttons !== undefined && buttons.map((button, i) => {
@@ -7365,11 +7373,11 @@ function Widget({
7365
7373
  }, undefined, false, undefined, this)
7366
7374
  ]
7367
7375
  }, undefined, true, undefined, this),
7368
- /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Divider, {
7376
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Divider, {
7369
7377
  my: "md",
7370
7378
  ...componentsProps?.divider
7371
7379
  }, undefined, false, undefined, this),
7372
- /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Stack, {
7380
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Stack, {
7373
7381
  align: "stretch",
7374
7382
  gap: alertsGap,
7375
7383
  mb: alerts && alerts.length > 0 ? "md" : 0,
@@ -7384,8 +7392,8 @@ function Widget({
7384
7392
  });
7385
7393
  })
7386
7394
  }, undefined, false, undefined, this),
7387
- loading ? /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Center, {
7388
- children: /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core19.Loader, {
7395
+ loading ? /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Center, {
7396
+ children: /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Loader, {
7389
7397
  ...componentsProps?.loader
7390
7398
  }, undefined, false, undefined, this)
7391
7399
  }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(jsx_dev_runtime26.Fragment, {
@@ -7395,7 +7403,7 @@ function Widget({
7395
7403
  }, undefined, true, undefined, this);
7396
7404
  }
7397
7405
  // src/core/components/NotFoundPage/index.tsx
7398
- var import_core20 = require("@mantine/core");
7406
+ var import_core21 = require("@mantine/core");
7399
7407
  var import_navigation3 = require("next/navigation");
7400
7408
  var jsx_dev_runtime27 = require("react/jsx-dev-runtime");
7401
7409
  function NotFoundPage({
@@ -7409,7 +7417,7 @@ function NotFoundPage({
7409
7417
  name: "Not Found",
7410
7418
  ...componentsProps?.page,
7411
7419
  children: [
7412
- /* @__PURE__ */ jsx_dev_runtime27.jsxDEV(import_core20.Alert, {
7420
+ /* @__PURE__ */ jsx_dev_runtime27.jsxDEV(import_core21.Alert, {
7413
7421
  ...theme.alertProps.negative,
7414
7422
  title: "404 - Page Not Found",
7415
7423
  children: message ?? `Could not find page ${pathname}.`
@@ -7419,7 +7427,7 @@ function NotFoundPage({
7419
7427
  }, undefined, true, undefined, this);
7420
7428
  }
7421
7429
  // src/core/components/EnvironmentShell/index.tsx
7422
- var import_core21 = require("@mantine/core");
7430
+ var import_core22 = require("@mantine/core");
7423
7431
  var jsx_dev_runtime28 = require("react/jsx-dev-runtime");
7424
7432
  function EnvironmentShell({
7425
7433
  children,
@@ -7434,7 +7442,7 @@ function EnvironmentShell({
7434
7442
  const undefinedKeys = Object.keys(environment).filter((key) => environment[key] === undefined);
7435
7443
  const alertTitle = `Please Specify Environment Variable${undefinedKeys.length > 1 ? "s" : ""}`;
7436
7444
  const alertMessage = `Components could not be rendered because the following environment variables are not specified: ${undefinedKeys.join(", ")}.`;
7437
- const alert = /* @__PURE__ */ jsx_dev_runtime28.jsxDEV(import_core21.Alert, {
7445
+ const alert = /* @__PURE__ */ jsx_dev_runtime28.jsxDEV(import_core22.Alert, {
7438
7446
  ...theme.alertProps.neutral,
7439
7447
  title: alertTitle,
7440
7448
  m,
@@ -7460,7 +7468,7 @@ var import_icons_react11 = require("@tabler/icons-react");
7460
7468
 
7461
7469
  // src/core/components/SettingsWidget/SaveButton/index.tsx
7462
7470
  var import_icons_react10 = require("@tabler/icons-react");
7463
- var import_core22 = require("@mantine/core");
7471
+ var import_core23 = require("@mantine/core");
7464
7472
  var jsx_dev_runtime29 = require("react/jsx-dev-runtime");
7465
7473
  function SaveButton({
7466
7474
  onSaveChanges,
@@ -7483,7 +7491,7 @@ function SaveButton({
7483
7491
  }
7484
7492
  }, undefined, false, undefined, this);
7485
7493
  if (insideContainer !== false) {
7486
- return /* @__PURE__ */ jsx_dev_runtime29.jsxDEV(import_core22.Group, {
7494
+ return /* @__PURE__ */ jsx_dev_runtime29.jsxDEV(import_core23.Group, {
7487
7495
  w: "100%",
7488
7496
  justify: "flex-end",
7489
7497
  mt: "md",
@@ -7547,26 +7555,26 @@ var SettingsWidget_default = Object.assign(SettingsWidget, {
7547
7555
  });
7548
7556
  // src/core/components/SettingsWidget/SettingsTable/index.tsx
7549
7557
  var import_react18 = require("react");
7550
- var import_core24 = require("@mantine/core");
7558
+ var import_core25 = require("@mantine/core");
7551
7559
 
7552
7560
  // src/core/components/SettingsWidget/SettingsTable/Row/index.tsx
7553
- var import_core23 = require("@mantine/core");
7561
+ var import_core24 = require("@mantine/core");
7554
7562
  var jsx_dev_runtime31 = require("react/jsx-dev-runtime");
7555
7563
  function Row({
7556
7564
  children,
7557
7565
  label
7558
7566
  }) {
7559
7567
  const options = useSettingsTableOptions();
7560
- return /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core23.Table.Tr, {
7568
+ return /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core24.Table.Tr, {
7561
7569
  children: [
7562
- /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core23.Table.Th, {
7570
+ /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core24.Table.Th, {
7563
7571
  w: options.leftColumnWidth,
7564
- children: /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core23.Text, {
7572
+ children: /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core24.Text, {
7565
7573
  size: "sm",
7566
7574
  children: label
7567
7575
  }, undefined, false, undefined, this)
7568
7576
  }, undefined, false, undefined, this),
7569
- /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core23.Table.Td, {
7577
+ /* @__PURE__ */ jsx_dev_runtime31.jsxDEV(import_core24.Table.Td, {
7570
7578
  py: "xs",
7571
7579
  children
7572
7580
  }, undefined, false, undefined, this)
@@ -7593,12 +7601,12 @@ function SettingsTable({
7593
7601
  value: {
7594
7602
  leftColumnWidth: leftColumnWidth ?? defaultSettingsTableOptions.leftColumnWidth
7595
7603
  },
7596
- children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(import_core24.Table, {
7604
+ children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(import_core25.Table, {
7597
7605
  bg: theme.transparentBackground,
7598
7606
  withTableBorder: true,
7599
7607
  variant: "vertical",
7600
7608
  layout: "fixed",
7601
- children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(import_core24.Table.Tbody, {
7609
+ children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(import_core25.Table.Tbody, {
7602
7610
  children
7603
7611
  }, undefined, false, undefined, this)
7604
7612
  }, undefined, false, undefined, this)
@@ -7609,7 +7617,7 @@ var SettingsTable_default = Object.assign(SettingsTable, {
7609
7617
  });
7610
7618
  // src/core/components/NavbarSettingsWidget/index.tsx
7611
7619
  var import_lodash5 = __toESM(require_lodash());
7612
- var import_core25 = require("@mantine/core");
7620
+ var import_core26 = require("@mantine/core");
7613
7621
  var import_icons_react12 = require("@tabler/icons-react");
7614
7622
  var jsx_dev_runtime33 = require("react/jsx-dev-runtime");
7615
7623
  var defaultNavbarSettingsWidgetId = "navbar-settings";
@@ -7640,7 +7648,7 @@ function NavbarSettingsWidget({
7640
7648
  children: [
7641
7649
  /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(SettingsTable_default.Row, {
7642
7650
  label: "Select which pages you want to display or hide",
7643
- children: /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(import_core25.Chip.Group, {
7651
+ children: /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(import_core26.Chip.Group, {
7644
7652
  multiple: true,
7645
7653
  value: app.navigablePages.filter((p) => !userExperience.navbar.hiddenPages.includes(p.href)).map((p) => p.href),
7646
7654
  onChange: (newValue) => {
@@ -7652,10 +7660,10 @@ function NavbarSettingsWidget({
7652
7660
  }
7653
7661
  }));
7654
7662
  },
7655
- children: /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(import_core25.Group, {
7663
+ children: /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(import_core26.Group, {
7656
7664
  justify: "flex-start",
7657
7665
  gap: "xs",
7658
- children: app.navigablePages.map((p) => ({ ...p, icon: p.icon ?? import_icons_react12.IconLink })).map((p, i) => /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(import_core25.Chip, {
7666
+ children: app.navigablePages.map((p) => ({ ...p, icon: p.icon ?? import_icons_react12.IconLink })).map((p, i) => /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(import_core26.Chip, {
7659
7667
  value: p.href,
7660
7668
  icon: /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(p.icon, {
7661
7669
  ...theme.iconProps.tiny,
@@ -92,6 +92,7 @@ interface RemoraidTheme {
92
92
  transparentBackground?: string;
93
93
  primaryColor?: string;
94
94
  spacingPx?: Record<MantineSize, number>;
95
+ primaryGutter?: MantineSize | number;
95
96
  }
96
97
  interface RemoraidThemeDependencies {
97
98
  mantineTheme: MantineTheme;
@@ -556,18 +557,20 @@ interface WidgetProps {
556
557
  };
557
558
  }
558
559
  declare function Widget({ id, title, config, badges: badgesProp, buttons: buttonsProp, alerts: alertsProp, gaps, loading, mt, pinnableSection, componentsProps, children }: PropsWithChildren16<WidgetProps>): ReactNode25;
559
- import { ContainerProps as ContainerProps2 } from "@mantine/core";
560
+ import { ContainerProps as ContainerProps2, StackProps as StackProps3 } from "@mantine/core";
560
561
  import { PropsWithChildren as PropsWithChildren17, ReactNode as ReactNode26 } from "react";
561
562
  declare const usePage: () => PageConfiguration | null;
562
563
  interface PageProps {
563
564
  name?: string;
564
565
  config?: Partial<Omit<PageConfiguration, "name">>;
565
- p?: PageContainerProps["p"];
566
+ gap?: StackProps3["gap"];
566
567
  componentsProps?: {
567
568
  container?: ContainerProps2
569
+ PageContainer: Partial<PageContainerProps>
570
+ Stack?: Partial<StackProps3>
568
571
  };
569
572
  }
570
- declare function Page({ children, name, config, p, componentsProps }: PropsWithChildren17<PageProps>): ReactNode26;
573
+ declare function Page({ children, name, config, gap, componentsProps }: PropsWithChildren17<PageProps>): ReactNode26;
571
574
  import { PropsWithChildren as PropsWithChildren18, ReactNode as ReactNode27 } from "react";
572
575
  interface NotFoundPageProps {
573
576
  message?: string;
@@ -5799,7 +5799,8 @@ var createRemoraidTheme = (customTheme, dependencies) => {
5799
5799
  stroke: 3,
5800
5800
  ...customTheme?.iconProps?.tiny
5801
5801
  }
5802
- }
5802
+ },
5803
+ primaryGutter: "md"
5803
5804
  };
5804
5805
  };
5805
5806
  var themeContext = React3.createContext(createRemoraidTheme());
@@ -6485,7 +6486,7 @@ function AppShell({
6485
6486
  footerVariant: footerVariantProp,
6486
6487
  navbarPosition: navbarPositionProp,
6487
6488
  footerPosition: footerPositionProp,
6488
- gutter = "md",
6489
+ gutter,
6489
6490
  appContext: appContext2,
6490
6491
  componentsProps,
6491
6492
  children
@@ -6494,6 +6495,7 @@ function AppShell({
6494
6495
  const footerVariant = footerVariantProp ?? null;
6495
6496
  const navbarPosition = navbarPositionProp ?? (navbarVariant === null ? null : defaultAppShellNavbarPositions[navbarVariant]);
6496
6497
  const footerPosition = footerPositionProp ?? (footerVariant === null ? null : defaultAppShellFooterPositions[footerVariant]);
6498
+ const theme = useRemoraidTheme();
6497
6499
  let navbar;
6498
6500
  let footer;
6499
6501
  let navbarLayoutElementProps = {
@@ -6521,7 +6523,7 @@ function AppShell({
6521
6523
  ...componentsProps?.container,
6522
6524
  children: /* @__PURE__ */ jsxDEV14(FrameLayout_default, {
6523
6525
  layoutId: remoraidAppShellLayoutId,
6524
- gutter,
6526
+ gutter: gutter ?? theme.primaryGutter,
6525
6527
  ...componentsProps?.layout,
6526
6528
  children: [
6527
6529
  navbarPosition !== null && /* @__PURE__ */ jsxDEV14(FrameLayout_default.Element, {
@@ -6549,6 +6551,7 @@ var AppShell_default = Object.assign(AppShell, {
6549
6551
  import { Chip as Chip2, Divider as Divider2, Flex as Flex3, Text } from "@mantine/core";
6550
6552
 
6551
6553
  // src/core/components/Page/index.tsx
6554
+ import { Stack as Stack3 } from "@mantine/core";
6552
6555
  import React6, {
6553
6556
  useContext as useContext8,
6554
6557
  useEffect as useEffect3
@@ -6563,9 +6566,10 @@ function Page({
6563
6566
  children,
6564
6567
  name,
6565
6568
  config,
6566
- p = 0,
6569
+ gap,
6567
6570
  componentsProps
6568
6571
  }) {
6572
+ const theme = useRemoraidTheme();
6569
6573
  const pathname = usePathname2();
6570
6574
  const { isPageRegistered, registerPage } = useWidgets();
6571
6575
  const pageId = config?.pageId ?? pathname;
@@ -6579,9 +6583,13 @@ function Page({
6579
6583
  return /* @__PURE__ */ jsxDEV15(pageContext.Provider, {
6580
6584
  value: { name: name ?? pathname, pageId, ...config },
6581
6585
  children: /* @__PURE__ */ jsxDEV15(PageContainer, {
6582
- p,
6583
- componentsProps: { container: componentsProps?.container },
6584
- children
6586
+ ...componentsProps?.PageContainer,
6587
+ children: /* @__PURE__ */ jsxDEV15(Stack3, {
6588
+ gap: gap ?? theme.primaryGutter,
6589
+ ...componentsProps?.Stack,
6590
+ className: clsx_default("remoraid-page", componentsProps?.Stack?.className),
6591
+ children
6592
+ }, undefined, false, undefined, this)
6585
6593
  }, undefined, false, undefined, this)
6586
6594
  }, undefined, false, undefined, this);
6587
6595
  }
@@ -7298,7 +7306,7 @@ import {
7298
7306
  Group as Group5,
7299
7307
  Loader,
7300
7308
  Title,
7301
- Stack as Stack3
7309
+ Stack as Stack4
7302
7310
  } from "@mantine/core";
7303
7311
  import { jsxDEV as jsxDEV26, Fragment as Fragment4 } from "react/jsx-dev-runtime";
7304
7312
  import { createElement as createElement3 } from "react";
@@ -7375,7 +7383,7 @@ function Widget({
7375
7383
  my: "md",
7376
7384
  ...componentsProps?.divider
7377
7385
  }, undefined, false, undefined, this),
7378
- /* @__PURE__ */ jsxDEV26(Stack3, {
7386
+ /* @__PURE__ */ jsxDEV26(Stack4, {
7379
7387
  align: "stretch",
7380
7388
  gap: alertsGap,
7381
7389
  mb: alerts && alerts.length > 0 ? "md" : 0,
@@ -66,6 +66,13 @@
66
66
  }
67
67
  }
68
68
  }
69
+ .remoraid-page-container {
70
+ &:has(> .remoraid-page) {
71
+ &:not(:has(> .remoraid-page > :not([data-hidden="true"]))) {
72
+ display: none;
73
+ }
74
+ }
75
+ }
69
76
  [data-hidden="true"] {
70
77
  display: none;
71
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remoraid",
3
- "version": "2.18.43",
3
+ "version": "2.19.4",
4
4
  "author": "Konrad Goldammer",
5
5
  "repository": {
6
6
  "type": "git",