remoraid 2.26.4 → 2.28.2

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.
@@ -5481,6 +5481,7 @@ __export(exports_core, {
5481
5481
  getCssVars: () => getCssVars,
5482
5482
  defaultUserExperienceCookieName: () => defaultUserExperienceCookieName,
5483
5483
  defaultUserExperience: () => defaultUserExperience,
5484
+ defaultTransitionDurations: () => defaultTransitionDurations,
5484
5485
  defaultSettingsWidgetOptions: () => defaultSettingsWidgetContext,
5485
5486
  defaultSettingsTableOptions: () => defaultSettingsTableOptions,
5486
5487
  defaultNavbarSettingsWidgetId: () => defaultNavbarSettingsWidgetId,
@@ -5514,6 +5515,7 @@ __export(exports_core, {
5514
5515
  NavbarVariant: () => NavbarVariant,
5515
5516
  NavbarSettingsWidget: () => NavbarSettingsWidget,
5516
5517
  LayoutType: () => LayoutType,
5518
+ InputWrapperScrollArea: () => InputWrapperScrollArea,
5517
5519
  HydrationStatusProvider: () => HydrationStatusProvider,
5518
5520
  FrameLayoutSection: () => FrameLayoutSection,
5519
5521
  FrameLayout: () => FrameLayout_default,
@@ -5840,13 +5842,14 @@ function HydrationStatusProvider({
5840
5842
  // src/core/components/RemoraidProvider/ThemeProvider/index.tsx
5841
5843
  var import_lodash2 = __toESM(require_lodash());
5842
5844
  var jsx_dev_runtime3 = require("react/jsx-dev-runtime");
5845
+ var defaultTransitionDurations = {
5846
+ ["short" /* Short */]: 200,
5847
+ ["medium" /* Medium */]: 350,
5848
+ ["long" /* Long */]: 500
5849
+ };
5843
5850
  var createRemoraidTheme = (customTheme, dependencies) => {
5844
5851
  const { mantineTheme, colorScheme } = dependencies ?? {};
5845
- const transitionDurations = import_lodash2.merge({
5846
- ["short" /* Short */]: 200,
5847
- ["medium" /* Medium */]: 350,
5848
- ["long" /* Long */]: 500
5849
- }, customTheme?.transitionDurations);
5852
+ const transitionDurations = import_lodash2.merge(defaultTransitionDurations, customTheme?.transitionDurations);
5850
5853
  const transparentBackground = customTheme?.transparentBackground ?? (mantineTheme && colorScheme ? colorScheme === "dark" ? import_core2.rgba(mantineTheme.colors.dark[8], 0.8) : import_core2.rgba(mantineTheme.white, 0.8) : undefined);
5851
5854
  let spacingPx;
5852
5855
  if (mantineTheme && colorScheme) {
@@ -5901,30 +5904,6 @@ var createRemoraidTheme = (customTheme, dependencies) => {
5901
5904
  size: 12,
5902
5905
  stroke: 2.6
5903
5906
  }
5904
- },
5905
- ScrollArea: {
5906
- scrollbarSize: 8,
5907
- scrollHideDelay: 20,
5908
- type: "hover",
5909
- styles: { thumb: { zIndex: 5 } }
5910
- },
5911
- HoverCard: {
5912
- withArrow: true,
5913
- transitionProps: {
5914
- duration: transitionDurations.short
5915
- }
5916
- },
5917
- Tooltip: {
5918
- withArrow: true,
5919
- transitionProps: {
5920
- duration: transitionDurations.short
5921
- }
5922
- },
5923
- Menu: {
5924
- withArrow: true,
5925
- transitionProps: {
5926
- duration: transitionDurations.short
5927
- }
5928
5907
  }
5929
5908
  }
5930
5909
  };
@@ -6170,7 +6149,6 @@ function NavbarLink({
6170
6149
  href,
6171
6150
  indicator
6172
6151
  }) {
6173
- const theme = useRemoraidTheme();
6174
6152
  const [isHoveringRoleIndicator, setIsHoveringRoleIndicator] = import_react9.useState(false);
6175
6153
  const iconProps = {
6176
6154
  size: iconSize,
@@ -6179,7 +6157,6 @@ function NavbarLink({
6179
6157
  const Icon2 = icon ?? import_icons_react2.IconLink;
6180
6158
  if (!href) {
6181
6159
  return /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(import_core3.Tooltip, {
6182
- ...theme.componentsProps.Tooltip,
6183
6160
  label,
6184
6161
  position: "right",
6185
6162
  children: /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(import_core3.UnstyledButton, {
@@ -6207,7 +6184,6 @@ function NavbarLink({
6207
6184
  }, undefined, false, undefined, this)
6208
6185
  }, undefined, false, undefined, this);
6209
6186
  return /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(import_core3.Tooltip, {
6210
- ...theme.componentsProps.Tooltip,
6211
6187
  label,
6212
6188
  position: "right",
6213
6189
  children: indicator === undefined ? button : /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(import_core3.Indicator, {
@@ -6454,7 +6430,6 @@ function Element2({
6454
6430
  }
6455
6431
 
6456
6432
  // src/core/components/FrameLayout/index.tsx
6457
- var import_lodash5 = __toESM(require_lodash());
6458
6433
  var jsx_dev_runtime13 = require("react/jsx-dev-runtime");
6459
6434
  var layoutContext = import_react10.createContext(null);
6460
6435
  var useFrameLayout = () => {
@@ -6467,7 +6442,6 @@ function FrameLayout({
6467
6442
  componentsProps,
6468
6443
  children
6469
6444
  }) {
6470
- const theme = useRemoraidTheme();
6471
6445
  const { layouts, setLayouts } = useLayouts();
6472
6446
  const layout = layouts[layoutId];
6473
6447
  const defaultSections = import_react10.useMemo(() => ({
@@ -6569,7 +6543,7 @@ function FrameLayout({
6569
6543
  }, undefined, false, undefined, this),
6570
6544
  includeScrollArea ? /* @__PURE__ */ jsx_dev_runtime13.jsxDEV(import_core7.ScrollArea, {
6571
6545
  flex: 1,
6572
- ...import_lodash5.merge({}, theme.componentsProps.ScrollArea, componentsProps?.ScrollArea),
6546
+ ...componentsProps?.ScrollArea,
6573
6547
  children: contentSection
6574
6548
  }, undefined, false, undefined, this) : contentSection,
6575
6549
  /* @__PURE__ */ jsx_dev_runtime13.jsxDEV(import_core7.Stack, {
@@ -6599,7 +6573,7 @@ var FrameLayout_default = Object.assign(FrameLayout, {
6599
6573
  });
6600
6574
 
6601
6575
  // src/core/components/AppShell/index.tsx
6602
- var import_lodash6 = __toESM(require_lodash());
6576
+ var import_lodash5 = __toESM(require_lodash());
6603
6577
  var jsx_dev_runtime14 = require("react/jsx-dev-runtime");
6604
6578
  var remoraidAppShellLayoutId = "remoraid-app-shell";
6605
6579
  var defaultAppShellNavbarPositions = { ["minimal" /* Minimal */]: "left" /* Left */ };
@@ -6652,13 +6626,13 @@ function AppShell({
6652
6626
  navbarPosition !== null && /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(FrameLayout_default.Element, {
6653
6627
  section: navbarPosition,
6654
6628
  includeContainer: false,
6655
- ...import_lodash6.merge(navbarLayoutElementProps, componentsProps?.navbarLayoutElement),
6629
+ ...import_lodash5.merge(navbarLayoutElementProps, componentsProps?.navbarLayoutElement),
6656
6630
  children: navbar
6657
6631
  }, undefined, false, undefined, this),
6658
6632
  children,
6659
6633
  footerPosition !== null && /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(FrameLayout_default.Element, {
6660
6634
  section: footerPosition,
6661
- ...import_lodash6.merge(footerLayoutElementProps, componentsProps?.footerLayoutElement),
6635
+ ...import_lodash5.merge(footerLayoutElementProps, componentsProps?.footerLayoutElement),
6662
6636
  children: footer
6663
6637
  }, undefined, false, undefined, this)
6664
6638
  ]
@@ -6720,7 +6694,6 @@ var import_react14 = require("react");
6720
6694
 
6721
6695
  // src/core/components/ScrollableChipGroup/index.tsx
6722
6696
  var import_core10 = require("@mantine/core");
6723
- var import_lodash7 = __toESM(require_lodash());
6724
6697
  var jsx_dev_runtime16 = require("react/jsx-dev-runtime");
6725
6698
  function ScrollableChipGroup({
6726
6699
  value,
@@ -6730,10 +6703,10 @@ function ScrollableChipGroup({
6730
6703
  componentsProps,
6731
6704
  children
6732
6705
  }) {
6733
- const theme = useRemoraidTheme();
6734
6706
  return /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core10.ScrollArea, {
6735
6707
  ref,
6736
- ...import_lodash7.merge({}, theme.componentsProps.ScrollArea, { style: { contain: "inline-size" } }, componentsProps?.ScrollArea),
6708
+ ...componentsProps?.ScrollArea,
6709
+ style: { contain: "inline-size", ...componentsProps?.ScrollArea?.style },
6737
6710
  children: /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core10.Chip.Group, {
6738
6711
  value,
6739
6712
  onChange,
@@ -6752,7 +6725,7 @@ function ScrollableChipGroup({
6752
6725
  }
6753
6726
 
6754
6727
  // src/core/components/WidgetSelectionHeader/index.tsx
6755
- var import_lodash10 = __toESM(require_lodash());
6728
+ var import_lodash8 = __toESM(require_lodash());
6756
6729
 
6757
6730
  // src/core/components/Pinnable/index.tsx
6758
6731
  var import_react13 = require("react");
@@ -6762,7 +6735,7 @@ var import_core13 = require("@mantine/core");
6762
6735
  // src/core/components/Controls/ControlButton/index.tsx
6763
6736
  var import_core11 = require("@mantine/core");
6764
6737
  var import_icons_react4 = require("@tabler/icons-react");
6765
- var import_lodash8 = __toESM(require_lodash());
6738
+ var import_lodash6 = __toESM(require_lodash());
6766
6739
  var jsx_dev_runtime17 = require("react/jsx-dev-runtime");
6767
6740
  function ControlButton({
6768
6741
  icon: Icon3 = import_icons_react4.IconClick,
@@ -6783,7 +6756,9 @@ function ControlButton({
6783
6756
  timingFunction: "ease",
6784
6757
  ...componentsProps?.transition,
6785
6758
  children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core11.Tooltip, {
6786
- ...import_lodash8.merge({}, theme.componentsProps.Tooltip, { label: tooltip, disabled: !Boolean(tooltip) }, componentsProps?.tooltip),
6759
+ label: tooltip,
6760
+ disabled: !Boolean(tooltip),
6761
+ ...componentsProps?.tooltip,
6787
6762
  children: /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core11.ActionIcon, {
6788
6763
  "data-control-button": true,
6789
6764
  size,
@@ -6793,10 +6768,10 @@ function ControlButton({
6793
6768
  ...componentsProps?.button,
6794
6769
  style: {
6795
6770
  order,
6796
- ...import_lodash8.merge(transitionStyle, componentsProps?.button?.style)
6771
+ ...import_lodash6.merge(transitionStyle, componentsProps?.button?.style)
6797
6772
  },
6798
6773
  children: /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(Icon3, {
6799
- ...import_lodash8.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
6774
+ ...import_lodash6.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
6800
6775
  }, undefined, false, undefined, this)
6801
6776
  }, undefined, false, undefined, this)
6802
6777
  }, undefined, false, undefined, this)
@@ -6807,7 +6782,7 @@ function ControlButton({
6807
6782
  var import_react12 = require("react");
6808
6783
  var import_core12 = require("@mantine/core");
6809
6784
  var import_icons_react5 = require("@tabler/icons-react");
6810
- var import_lodash9 = __toESM(require_lodash());
6785
+ var import_lodash7 = __toESM(require_lodash());
6811
6786
  var jsx_dev_runtime18 = require("react/jsx-dev-runtime");
6812
6787
  function Controls({
6813
6788
  groupRef,
@@ -6886,7 +6861,7 @@ function Controls({
6886
6861
  style: {
6887
6862
  right: pos.x,
6888
6863
  top: pos.y,
6889
- ...import_lodash9.merge(transitionStyle, componentsProps?.container?.style)
6864
+ ...import_lodash7.merge(transitionStyle, componentsProps?.container?.style)
6890
6865
  },
6891
6866
  className: clsx_default("remoraid-controls", componentsProps?.container?.className),
6892
6867
  children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core12.Group, {
@@ -6897,7 +6872,7 @@ function Controls({
6897
6872
  className: clsx_default("remoraid-controls-group", componentsProps?.group?.className),
6898
6873
  children: [
6899
6874
  /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_icons_react5.IconGripHorizontal, {
6900
- ...import_lodash9.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
6875
+ ...import_lodash7.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
6901
6876
  }, undefined, false, undefined, this),
6902
6877
  children,
6903
6878
  additionalButtons && additionalButtons.map((button, i) => {
@@ -7046,13 +7021,14 @@ function WidgetSelectionHeader({
7046
7021
  updateWidgetSelectionBulk(page.pageId, value);
7047
7022
  componentsProps?.ScrollableChipGroup?.onChange?.(value);
7048
7023
  },
7049
- componentsProps: import_lodash10.merge({ ScrollArea: { flex: 1 } }, componentsProps?.ScrollableChipGroup?.componentsProps),
7024
+ componentsProps: import_lodash8.merge({ ScrollArea: { flex: 1 } }, componentsProps?.ScrollableChipGroup?.componentsProps),
7050
7025
  children: Object.entries(widgets).map(([widgetId, widget]) => {
7051
7026
  if (!widget) {
7052
7027
  return;
7053
7028
  }
7054
7029
  return /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core14.Menu, {
7055
- ...import_lodash10.merge({}, theme.componentsProps.Menu, { trigger: "hover" }, componentsProps?.widgetMenu),
7030
+ trigger: "hover",
7031
+ ...componentsProps?.widgetMenu,
7056
7032
  children: [
7057
7033
  /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core14.Menu.Target, {
7058
7034
  children: /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core14.Box, {
@@ -7066,7 +7042,7 @@ function WidgetSelectionHeader({
7066
7042
  ...theme.componentsProps.icons.small
7067
7043
  }, undefined, false, undefined, this),
7068
7044
  ...componentsProps?.Chip,
7069
- styles: import_lodash10.merge({
7045
+ styles: import_lodash8.merge({
7070
7046
  label: {
7071
7047
  transition: "background-color var(--remoraid-transition-duration-short)"
7072
7048
  }
@@ -7175,7 +7151,6 @@ var import_react15 = __toESM(require("react"));
7175
7151
 
7176
7152
  // src/core/components/BadgeMinimal/index.tsx
7177
7153
  var import_core15 = require("@mantine/core");
7178
- var import_lodash11 = __toESM(require_lodash());
7179
7154
  var jsx_dev_runtime21 = require("react/jsx-dev-runtime");
7180
7155
  function BadgeMinimal({
7181
7156
  label,
@@ -7191,7 +7166,9 @@ function BadgeMinimal({
7191
7166
  timingFunction: "ease",
7192
7167
  ...componentsProps?.transition,
7193
7168
  children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core15.Tooltip, {
7194
- ...import_lodash11.merge({}, theme.componentsProps.Tooltip, { label: tooltip, disabled: !Boolean(tooltip) }, componentsProps?.tooltip),
7169
+ label: tooltip,
7170
+ disabled: !Boolean(tooltip),
7171
+ ...componentsProps?.tooltip,
7195
7172
  children: /* @__PURE__ */ jsx_dev_runtime21.jsxDEV(import_core15.Badge, {
7196
7173
  variant: "default",
7197
7174
  ...componentsProps?.badge,
@@ -7207,7 +7184,7 @@ function BadgeMinimal({
7207
7184
  }
7208
7185
 
7209
7186
  // src/core/components/BadgeGroup/index.tsx
7210
- var import_lodash12 = __toESM(require_lodash());
7187
+ var import_lodash9 = __toESM(require_lodash());
7211
7188
  var jsx_dev_runtime22 = require("react/jsx-dev-runtime");
7212
7189
  var react = require("react");
7213
7190
  function BadgeGroup({
@@ -7246,7 +7223,7 @@ function BadgeGroup({
7246
7223
  timingFunction: "ease",
7247
7224
  ...componentsProps?.cumulativeBadgeTransition,
7248
7225
  children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core16.HoverCard, {
7249
- ...import_lodash12.merge({}, theme.componentsProps.HoverCard, componentsProps?.HoverCard),
7226
+ ...componentsProps?.HoverCard,
7250
7227
  children: [
7251
7228
  /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core16.HoverCard.Target, {
7252
7229
  children: /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core16.Badge, {
@@ -7255,7 +7232,7 @@ function BadgeGroup({
7255
7232
  ...componentsProps?.cumulativeBadge,
7256
7233
  style: {
7257
7234
  cursor: "pointer",
7258
- ...import_lodash12.merge(transitionStyle, componentsProps?.cumulativeBadge?.style)
7235
+ ...import_lodash9.merge(transitionStyle, componentsProps?.cumulativeBadge?.style)
7259
7236
  },
7260
7237
  children: [
7261
7238
  numVisibleBadges,
@@ -7279,7 +7256,7 @@ function BadgeGroup({
7279
7256
  }
7280
7257
  // src/core/components/AlertMinimal/index.tsx
7281
7258
  var import_core17 = require("@mantine/core");
7282
- var import_lodash13 = __toESM(require_lodash());
7259
+ var import_lodash10 = __toESM(require_lodash());
7283
7260
  var jsx_dev_runtime23 = require("react/jsx-dev-runtime");
7284
7261
  function AlertMinimal({
7285
7262
  category,
@@ -7296,7 +7273,7 @@ function AlertMinimal({
7296
7273
  icon: Icon3,
7297
7274
  iconSize = "medium" /* Medium */,
7298
7275
  componentsProps
7299
- } = import_lodash13.merge({}, theme.componentsProps.alerts[category], props);
7276
+ } = import_lodash10.merge({}, theme.componentsProps.alerts[category], props);
7300
7277
  return /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core17.Transition, {
7301
7278
  mounted,
7302
7279
  transition: "fade",
@@ -7310,9 +7287,9 @@ function AlertMinimal({
7310
7287
  onClose,
7311
7288
  withCloseButton: onClose !== undefined,
7312
7289
  icon: Icon3 ? /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(Icon3, {
7313
- ...import_lodash13.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
7290
+ ...import_lodash10.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
7314
7291
  }, undefined, false, undefined, this) : undefined,
7315
- style: import_lodash13.merge(transitionStyle, componentsProps?.alert?.style),
7292
+ style: import_lodash10.merge(transitionStyle, componentsProps?.alert?.style),
7316
7293
  children: [
7317
7294
  text,
7318
7295
  children
@@ -7323,7 +7300,7 @@ function AlertMinimal({
7323
7300
  // src/core/components/RemoraidButton/index.tsx
7324
7301
  var import_core18 = require("@mantine/core");
7325
7302
  var import_icons_react8 = require("@tabler/icons-react");
7326
- var import_lodash14 = __toESM(require_lodash());
7303
+ var import_lodash11 = __toESM(require_lodash());
7327
7304
  var jsx_dev_runtime24 = require("react/jsx-dev-runtime");
7328
7305
  function RemoraidButton({
7329
7306
  label,
@@ -7347,7 +7324,7 @@ function RemoraidButton({
7347
7324
  const Icon4 = iconProp ?? import_icons_react8.IconClick;
7348
7325
  const theme = useRemoraidTheme();
7349
7326
  const iconElement = /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Icon4, {
7350
- ...import_lodash14.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
7327
+ ...import_lodash11.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
7351
7328
  }, undefined, false, undefined, this);
7352
7329
  return /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core18.Transition, {
7353
7330
  mounted,
@@ -7358,7 +7335,8 @@ function RemoraidButton({
7358
7335
  children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(jsx_dev_runtime24.Fragment, {
7359
7336
  children: [
7360
7337
  /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core18.Tooltip, {
7361
- ...import_lodash14.merge({}, theme.componentsProps.Tooltip, { label }, componentsProps?.tooltip),
7338
+ label,
7339
+ ...componentsProps?.tooltip,
7362
7340
  children: /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core18.ActionIcon, {
7363
7341
  "aria-label": label,
7364
7342
  variant,
@@ -7402,7 +7380,7 @@ function RemoraidButton({
7402
7380
  var import_core19 = require("@mantine/core");
7403
7381
  var import_react16 = require("react");
7404
7382
  var import_icons_react9 = require("@tabler/icons-react");
7405
- var import_lodash15 = __toESM(require_lodash());
7383
+ var import_lodash12 = __toESM(require_lodash());
7406
7384
  var jsx_dev_runtime25 = require("react/jsx-dev-runtime");
7407
7385
  function WidgetWrapper({
7408
7386
  config,
@@ -7473,7 +7451,7 @@ function WidgetWrapper({
7473
7451
  }
7474
7452
  componentsProps?.container?.onMouseLeave?.(e);
7475
7453
  },
7476
- style: import_lodash15.merge(transitionStyle, { flexDirection: "column" }, componentsProps?.container?.style),
7454
+ style: import_lodash12.merge(transitionStyle, { flexDirection: "column" }, componentsProps?.container?.style),
7477
7455
  className: clsx_default("remoraid-segment", componentsProps?.container?.className),
7478
7456
  id: config.widgetId,
7479
7457
  children: [
@@ -7557,7 +7535,6 @@ function WidgetWrapper({
7557
7535
  }
7558
7536
  // src/core/components/Widget/index.tsx
7559
7537
  var import_core20 = require("@mantine/core");
7560
- var import_lodash16 = __toESM(require_lodash());
7561
7538
  var jsx_dev_runtime26 = require("react/jsx-dev-runtime");
7562
7539
  var react2 = require("react");
7563
7540
  function Widget({
@@ -7577,7 +7554,6 @@ function Widget({
7577
7554
  const buttons = buttonsProp?.map((button) => asElementOrPropsOfType(RemoraidButton, button, "Check the 'buttons' property of this widget."));
7578
7555
  const alerts = alertsProp?.map((alert) => asElementOrPropsOfType(AlertMinimal, alert, "Check the 'alerts' property of this widget."));
7579
7556
  const badges = badgesProp?.map((badge) => asElementOrPropsOfType(BadgeMinimal, badge, "Check the 'badges' property of this widget."));
7580
- const theme = useRemoraidTheme();
7581
7557
  const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
7582
7558
  const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
7583
7559
  const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
@@ -7656,7 +7632,8 @@ function Widget({
7656
7632
  })
7657
7633
  }, undefined, false, undefined, this),
7658
7634
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.ScrollArea.Autosize, {
7659
- ...import_lodash16.merge(theme.componentsProps.ScrollArea, { flex: 1 }, componentsProps?.childrenContainer),
7635
+ flex: 1,
7636
+ ...componentsProps?.childrenContainer,
7660
7637
  children: loading ? /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Center, {
7661
7638
  children: /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(import_core20.Loader, {
7662
7639
  ...componentsProps?.loader
@@ -7884,7 +7861,7 @@ var SettingsTable_default = Object.assign(SettingsTable, {
7884
7861
  Row
7885
7862
  });
7886
7863
  // src/core/components/NavbarSettingsWidget/index.tsx
7887
- var import_lodash17 = __toESM(require_lodash());
7864
+ var import_lodash13 = __toESM(require_lodash());
7888
7865
  var import_core24 = require("@mantine/core");
7889
7866
  var import_icons_react12 = require("@tabler/icons-react");
7890
7867
  var jsx_dev_runtime33 = require("react/jsx-dev-runtime");
@@ -7910,7 +7887,7 @@ function NavbarSettingsWidget({
7910
7887
  navbar: initialUserExperience.navbar
7911
7888
  }));
7912
7889
  },
7913
- custom: !import_lodash17.isEqual(userExperience.navbar, initialUserExperience.navbar),
7890
+ custom: !import_lodash13.isEqual(userExperience.navbar, initialUserExperience.navbar),
7914
7891
  children: /* @__PURE__ */ jsx_dev_runtime33.jsxDEV(SettingsTable_default, {
7915
7892
  ...componentsProps?.table,
7916
7893
  children: [
@@ -8000,3 +7977,45 @@ function ContextClusterProvider({
8000
7977
  children: t
8001
7978
  }, undefined, false, undefined, this) : t, children);
8002
7979
  }
7980
+ // src/core/components/InputWrapperScrollArea/index.tsx
7981
+ var import_core25 = require("@mantine/core");
7982
+ var import_react20 = require("react");
7983
+ var jsx_dev_runtime35 = require("react/jsx-dev-runtime");
7984
+ function InputWrapperScrollArea({
7985
+ children,
7986
+ label,
7987
+ mah,
7988
+ error,
7989
+ componentsProps
7990
+ }) {
7991
+ const theme = useRemoraidTheme();
7992
+ const [isHovering, setIsHovering] = import_react20.useState(false);
7993
+ return /* @__PURE__ */ jsx_dev_runtime35.jsxDEV(import_core25.Input.Wrapper, {
7994
+ label,
7995
+ error,
7996
+ onMouseEnter: () => setIsHovering(true),
7997
+ onMouseLeave: () => setIsHovering(false),
7998
+ ...componentsProps?.container,
7999
+ children: /* @__PURE__ */ jsx_dev_runtime35.jsxDEV(import_core25.Paper, {
8000
+ shadow: "none",
8001
+ p: 0,
8002
+ withBorder: true,
8003
+ display: "flex",
8004
+ bg: theme.transparentBackground,
8005
+ style: {
8006
+ transition: "border-color .1s",
8007
+ borderColor: error ? "var(--mantine-color-error)" : isHovering ? "var(--mantine-primary-color-filled)" : undefined
8008
+ },
8009
+ children: /* @__PURE__ */ jsx_dev_runtime35.jsxDEV(import_core25.ScrollArea, {
8010
+ mah,
8011
+ px: "md",
8012
+ flex: 1,
8013
+ ...componentsProps?.ScrollArea,
8014
+ children: /* @__PURE__ */ jsx_dev_runtime35.jsxDEV(import_core25.Box, {
8015
+ ...componentsProps?.childrenContainer,
8016
+ children
8017
+ }, undefined, false, undefined, this)
8018
+ }, undefined, false, undefined, this)
8019
+ }, undefined, false, undefined, this)
8020
+ }, undefined, false, undefined, this);
8021
+ }
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren as PropsWithChildren6, ReactNode as ReactNode7 } from "react";
2
- import { HoverCardProps, MantineBreakpoint, MantineColorScheme, MantineSize, MantineTheme, MenuProps, ScrollAreaProps, TooltipProps } from "@mantine/core";
2
+ import { MantineBreakpoint, MantineColorScheme, MantineSize, MantineTheme } from "@mantine/core";
3
3
  import { Icon as Icon2, IconProps as IconProps2 } from "@tabler/icons-react";
4
4
  import { ImageProps } from "next/image";
5
5
  import React2, { Dispatch, ReactNode as ReactNode2, SetStateAction } from "react";
@@ -116,10 +116,6 @@ interface RemoraidTheme {
116
116
  componentsProps: {
117
117
  icons: Record<RemoraidIconSize, Partial<IconProps2>>
118
118
  alerts: Record<AlertCategory, Omit<Partial<AlertMinimalProps>, "category">>
119
- ScrollArea: Partial<ScrollAreaProps>
120
- HoverCard: Partial<HoverCardProps>
121
- Tooltip: Partial<TooltipProps>
122
- Menu: Partial<MenuProps>
123
119
  };
124
120
  }
125
121
  interface RemoraidThemeDependencies {
@@ -183,6 +179,7 @@ declare const useWidgets: () => WidgetsContext;
183
179
  declare const useWidget: (pageId: string, widgetId: string) => WidgetContext | null;
184
180
  interface WidgetsProviderProps {}
185
181
  import { PartialDeep as PartialDeep2 } from "type-fest";
182
+ declare const defaultTransitionDurations: RemoraidTheme["transitionDurations"];
186
183
  declare const createRemoraidTheme: (customTheme?: PartialDeep2<RemoraidTheme>, dependencies?: Partial<RemoraidThemeDependencies>) => RemoraidTheme;
187
184
  declare const getCssVars: (theme: RemoraidTheme) => Record<string, string>;
188
185
  declare const useRemoraidTheme: () => RemoraidTheme;
@@ -302,7 +299,7 @@ declare const asElementOrPropsOfType: <
302
299
  >(type: T, elementOrProps: ReactElement | P, additionalErrorMessage?: string) => ElementOrPropsOfType<T, P>;
303
300
  declare const getDefaultButtonIconSize: (buttonSize: MantineSize2) => RemoraidIconSize;
304
301
  declare const scrollToWidget: (widgetId: string) => void;
305
- import { GroupProps as GroupProps2, MantineSize as MantineSize4, ScrollAreaProps as ScrollAreaProps2, StackProps } from "@mantine/core";
302
+ import { GroupProps as GroupProps2, MantineSize as MantineSize4, ScrollAreaProps, StackProps } from "@mantine/core";
306
303
  import { ComponentProps as ComponentProps2, PropsWithChildren as PropsWithChildren10, ReactNode as ReactNode13 } from "react";
307
304
  import { PropsWithChildren as PropsWithChildren9, ReactNode as ReactNode12 } from "react";
308
305
  import { BoxProps } from "@mantine/core";
@@ -343,7 +340,7 @@ interface FrameLayoutProps {
343
340
  [FrameLayoutSection.Bottom]?: Partial<StackProps>
344
341
  [FrameLayoutSection.Content]?: Partial<StackProps>
345
342
  }
346
- ScrollArea?: Partial<ScrollAreaProps2>
343
+ ScrollArea?: Partial<ScrollAreaProps>
347
344
  };
348
345
  }
349
346
  declare function FrameLayout({ layoutId, includeScrollArea, gutter, componentsProps, children }: PropsWithChildren10<FrameLayoutProps>): ReactNode13;
@@ -415,9 +412,9 @@ declare function UserExperienceProviderWrapper<T extends UserExperience>({ child
415
412
  declare const defaultUserExperience: CoreUserExperience;
416
413
  declare const defaultUserExperienceCookieName = "remoraid-core-user-experience";
417
414
  declare const useRemoraidUserExperience: () => UserExperienceContext<CoreUserExperience>;
418
- import { ChipProps, FlexProps as FlexProps2, MenuProps as MenuProps2, TextProps } from "@mantine/core";
415
+ import { ChipProps, FlexProps as FlexProps2, MenuProps, TextProps } from "@mantine/core";
419
416
  import { ReactNode as ReactNode21 } from "react";
420
- import { ChipGroupProps, FlexProps, MantineSize as MantineSize5, ScrollAreaProps as ScrollAreaProps3 } from "@mantine/core";
417
+ import { ChipGroupProps, FlexProps, MantineSize as MantineSize5, ScrollAreaProps as ScrollAreaProps2 } from "@mantine/core";
421
418
  import { PropsWithChildren as PropsWithChildren14, ReactNode as ReactNode17, RefObject } from "react";
422
419
  interface ScrollableChipGroupProps {
423
420
  value: string[];
@@ -427,13 +424,13 @@ interface ScrollableChipGroupProps {
427
424
  componentsProps?: {
428
425
  chipGroup?: Partial<ChipGroupProps<true>>
429
426
  container?: Partial<FlexProps>
430
- ScrollArea?: Partial<ScrollAreaProps3>
427
+ ScrollArea?: Partial<ScrollAreaProps2>
431
428
  };
432
429
  }
433
430
  declare function ScrollableChipGroup2({ value, ref, onChange, gap, componentsProps, children }: PropsWithChildren14<ScrollableChipGroupProps>): ReactNode17;
434
431
  import { ComponentProps as ComponentProps5, PropsWithChildren as PropsWithChildren15, ReactNode as ReactNode20 } from "react";
435
432
  import { Box } from "@mantine/core";
436
- import { ActionIcon as ActionIcon2, ActionIconProps, TooltipProps as TooltipProps2, TransitionProps as TransitionProps2 } from "@mantine/core";
433
+ import { ActionIcon as ActionIcon2, ActionIconProps, TooltipProps, TransitionProps as TransitionProps2 } from "@mantine/core";
437
434
  import { Icon as Icon4, IconProps as IconProps4 } from "@tabler/icons-react";
438
435
  import { ComponentProps as ComponentProps4, ReactNode as ReactNode18 } from "react";
439
436
  interface ControlButtonProps {
@@ -447,7 +444,7 @@ interface ControlButtonProps {
447
444
  order?: number;
448
445
  componentsProps?: {
449
446
  transition?: Partial<TransitionProps2>
450
- tooltip?: Partial<TooltipProps2>
447
+ tooltip?: Partial<TooltipProps>
451
448
  button?: Partial<ActionIconProps>
452
449
  icon?: Partial<IconProps4>
453
450
  };
@@ -495,7 +492,7 @@ interface WidgetSelectionHeaderProps {
495
492
  disabledWidgets?: string[];
496
493
  componentsProps?: {
497
494
  container?: Partial<FlexProps2>
498
- widgetMenu?: Partial<MenuProps2>
495
+ widgetMenu?: Partial<MenuProps>
499
496
  title?: Partial<TextProps>
500
497
  ScrollableChipGroup?: Partial<ScrollableChipGroupProps>
501
498
  Chip?: Partial<ChipProps>
@@ -503,9 +500,9 @@ interface WidgetSelectionHeaderProps {
503
500
  };
504
501
  }
505
502
  declare function WidgetSelectionHeader({ title, pinnableSection, initiallyPinned, disabledWidgets, componentsProps }: WidgetSelectionHeaderProps): ReactNode21;
506
- import { BadgeProps as BadgeProps2, GroupProps as GroupProps4, HoverCardProps as HoverCardProps2, MantineBreakpoint as MantineBreakpoint2, MantineSize as MantineSize7, StackProps as StackProps2, TransitionProps as TransitionProps5 } from "@mantine/core";
503
+ import { BadgeProps as BadgeProps2, GroupProps as GroupProps4, HoverCardProps, MantineBreakpoint as MantineBreakpoint2, MantineSize as MantineSize7, StackProps as StackProps2, TransitionProps as TransitionProps5 } from "@mantine/core";
507
504
  import { ReactNode as ReactNode23 } from "react";
508
- import { BadgeProps, TooltipProps as TooltipProps3, TransitionProps as TransitionProps4 } from "@mantine/core";
505
+ import { BadgeProps, TooltipProps as TooltipProps2, TransitionProps as TransitionProps4 } from "@mantine/core";
509
506
  import { ReactNode as ReactNode22 } from "react";
510
507
  interface BadgeMinimalProps {
511
508
  label: string;
@@ -514,7 +511,7 @@ interface BadgeMinimalProps {
514
511
  componentsProps?: {
515
512
  badge?: BadgeProps
516
513
  transition?: Partial<Omit<TransitionProps4, "mounted">>
517
- tooltip?: TooltipProps3
514
+ tooltip?: TooltipProps2
518
515
  };
519
516
  }
520
517
  declare function BadgeMinimal({ label, tooltip, mounted, componentsProps }: BadgeMinimalProps): ReactNode22;
@@ -524,14 +521,14 @@ interface BadgeGroupProps {
524
521
  breakpoint?: MantineBreakpoint2;
525
522
  componentsProps?: {
526
523
  container?: Partial<Omit<GroupProps4, "visibleFrom">>
527
- HoverCard?: Partial<HoverCardProps2>
524
+ HoverCard?: Partial<HoverCardProps>
528
525
  hoverContainer?: Partial<StackProps2>
529
526
  cumulativeBadge?: Partial<Omit<BadgeProps2, "hiddenFrom">>
530
527
  cumulativeBadgeTransition?: Partial<TransitionProps5>
531
528
  };
532
529
  }
533
530
  declare function BadgeGroup({ badges: badgesProp, gap, breakpoint: breakpointProp, componentsProps }: BadgeGroupProps): ReactNode23;
534
- import { ActionIconProps as ActionIconProps2, ActionIconVariant, ButtonProps, ButtonVariant, MantineBreakpoint as MantineBreakpoint3, MantineColor, MantineSize as MantineSize8, TooltipProps as TooltipProps4, TransitionProps as TransitionProps6 } from "@mantine/core";
531
+ import { ActionIconProps as ActionIconProps2, ActionIconVariant, ButtonProps, ButtonVariant, MantineBreakpoint as MantineBreakpoint3, MantineColor, MantineSize as MantineSize8, TooltipProps as TooltipProps3, TransitionProps as TransitionProps6 } from "@mantine/core";
535
532
  import { Icon as Icon5, IconProps as IconProps6 } from "@tabler/icons-react";
536
533
  import { ReactNode as ReactNode24 } from "react";
537
534
  type RemoraidButtonDefaultResponsivity = true;
@@ -549,7 +546,7 @@ interface ExplicitRemoraidButtonProps<Responsive extends boolean> {
549
546
  variant?: Extract<ButtonVariant, ActionIconVariant>;
550
547
  mounted?: TransitionProps6["mounted"];
551
548
  componentsProps?: {
552
- tooltip?: Partial<TooltipProps4>
549
+ tooltip?: Partial<TooltipProps3>
553
550
  icon?: Partial<IconProps6>
554
551
  button?: Omit<Partial<Common<ButtonProps, ActionIconProps2>>, "variant" | "onClick" | "size" | "color" | "loading">
555
552
  transition?: Partial<Omit<TransitionProps6, "mounted">>
@@ -712,4 +709,17 @@ declare function ContextClusterProvider<
712
709
  Context,
713
710
  StaticID extends string = never
714
711
  >({ cluster, values, children }: PropsWithChildren23<ContextClusterProviderProps<Context, StaticID>>): ReactNode35;
715
- export { useWidgets, useWidget, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayout, scrollToWidget, remoraidAppShellLayoutId, isValidElementOfType, getElementTypeName, getDefaultWidgetContext, getDefaultButtonIconSize, getCssVars, defaultUserExperienceCookieName, defaultUserExperience, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultNavbarSettingsWidgetId, defaultLayoutsContext, defaultAppShellNavbarPositions, defaultAppShellFooterPositions, defaultAppContext, createUserExperienceContext, createRemoraidTheme, createContextCluster, co, asElementOrPropsOfType, asElementOfType, asChildrenOfType, WidgetsProviderProps, WidgetsContext, WidgetWrapperProps, WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetContext, WidgetConfiguration, Widget, UserExperienceProviderWrapperProps, UserExperienceProviderWrapper, UserExperienceProviderProps, UserExperienceContext, UserExperience, TransitionDuration, ThemeProviderProps, StaticRemoraidAppContext, SettingsWidgetSaveButtonProps, SettingsWidgetProps, SettingsWidgetContext, _default3 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default4 as SettingsTable, ScrollableChipGroupProps as ScrollbleChipGroupProps, ScrollableChipGroup2 as ScrollableChipGroup, RemoraidUser, RemoraidThemeDependencies, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, RemoraidIconSize, RemoraidButtonProps, RemoraidButtonDefaultResponsivity, RemoraidButton, RemoraidBreakpoint, RemoraidAuthContext, RemoraidAppContext, PropsWithChildrenOfType, PrimitiveUserExperience, PinnableProps, PinnableDefaultLayoutType, Pinnable2 as Pinnable, PageProps, PageContainerProps, PageContainer2 as PageContainer, PageConfiguration, Page, OptionalIfExtends, Optional, NotFoundPageProps, NotFoundPage, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarMinimalProps, LayoutsProviderProps, LayoutsContext, LayoutType, LayoutSection, LayoutContext, HydrationStatusProviderProps, HydrationStatusProvider, HydrationStatus, FrameLayoutSection, FrameLayoutProps, FrameLayoutElementProps, _default as FrameLayout, FooterVariant, FooterMinimalProps, EnvironmentShellVariant, EnvironmentShellProps, EnvironmentShell, ElementOrPropsOfType, ElementOfType, DefaultNavbarVariant, DefaultFooterVariant, CustomAppVariables, CoreUserExperience, ControlsProps, Controls, ControlButtonProps, ControlButton, ContextClusterProviderProps, ContextClusterProvider, ContextCluster, Common, ChildrenOfType, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellNavbarVariant, AppShellNavbarPosition, AppShellFooterVariant, AppShellFooterPosition, _default2 as AppShell, AppProviderProps, AppProvider2 as AppProvider, AppLogo, AppContextProps, AlertMinimalProps, AlertMinimal, AlertCategory };
712
+ import { BoxProps as BoxProps3, InputWrapperProps, ScrollAreaProps as ScrollAreaProps3 } from "@mantine/core";
713
+ import { PropsWithChildren as PropsWithChildren24, ReactNode as ReactNode36 } from "react";
714
+ interface InputWrapperScrollAreaProps {
715
+ label?: string;
716
+ mah?: number;
717
+ error?: ReactNode36;
718
+ componentsProps?: {
719
+ container?: Partial<InputWrapperProps>
720
+ ScrollArea?: Partial<ScrollAreaProps3>
721
+ childrenContainer?: Partial<BoxProps3>
722
+ };
723
+ }
724
+ declare function InputWrapperScrollArea({ children, label, mah, error, componentsProps }: PropsWithChildren24<InputWrapperScrollAreaProps>): ReactNode36;
725
+ export { useWidgets, useWidget, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayout, scrollToWidget, remoraidAppShellLayoutId, isValidElementOfType, getElementTypeName, getDefaultWidgetContext, getDefaultButtonIconSize, getCssVars, defaultUserExperienceCookieName, defaultUserExperience, defaultTransitionDurations, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultNavbarSettingsWidgetId, defaultLayoutsContext, defaultAppShellNavbarPositions, defaultAppShellFooterPositions, defaultAppContext, createUserExperienceContext, createRemoraidTheme, createContextCluster, co, asElementOrPropsOfType, asElementOfType, asChildrenOfType, WidgetsProviderProps, WidgetsContext, WidgetWrapperProps, WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetContext, WidgetConfiguration, Widget, UserExperienceProviderWrapperProps, UserExperienceProviderWrapper, UserExperienceProviderProps, UserExperienceContext, UserExperience, TransitionDuration, ThemeProviderProps, StaticRemoraidAppContext, SettingsWidgetSaveButtonProps, SettingsWidgetProps, SettingsWidgetContext, _default3 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default4 as SettingsTable, ScrollableChipGroupProps, ScrollableChipGroup2 as ScrollableChipGroup, RemoraidUser, RemoraidThemeDependencies, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, RemoraidIconSize, RemoraidButtonProps, RemoraidButtonDefaultResponsivity, RemoraidButton, RemoraidBreakpoint, RemoraidAuthContext, RemoraidAppContext, PropsWithChildrenOfType, PrimitiveUserExperience, PinnableProps, PinnableDefaultLayoutType, Pinnable2 as Pinnable, PageProps, PageContainerProps, PageContainer2 as PageContainer, PageConfiguration, Page, OptionalIfExtends, Optional, NotFoundPageProps, NotFoundPage, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarMinimalProps, LayoutsProviderProps, LayoutsContext, LayoutType, LayoutSection, LayoutContext, InputWrapperScrollAreaProps, InputWrapperScrollArea, HydrationStatusProviderProps, HydrationStatusProvider, HydrationStatus, FrameLayoutSection, FrameLayoutProps, FrameLayoutElementProps, _default as FrameLayout, FooterVariant, FooterMinimalProps, EnvironmentShellVariant, EnvironmentShellProps, EnvironmentShell, ElementOrPropsOfType, ElementOfType, DefaultNavbarVariant, DefaultFooterVariant, CustomAppVariables, CoreUserExperience, ControlsProps, Controls, ControlButtonProps, ControlButton, ContextClusterProviderProps, ContextClusterProvider, ContextCluster, Common, ChildrenOfType, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellNavbarVariant, AppShellNavbarPosition, AppShellFooterVariant, AppShellFooterPosition, _default2 as AppShell, AppProviderProps, AppProvider2 as AppProvider, AppLogo, AppContextProps, AlertMinimalProps, AlertMinimal, AlertCategory };