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.
- package/dist/core/index.cjs +90 -71
- package/dist/core/index.d.ts +30 -20
- package/dist/core/index.js +95 -71
- package/dist/jsonforms/index.cjs +145 -166
- package/dist/jsonforms/index.js +102 -118
- package/dist/modals/index.cjs +4 -4
- package/dist/modals/index.js +6 -6
- package/dist/server/index.cjs +5474 -0
- package/dist/server/index.d.ts +5 -3
- package/dist/server/index.js +5478 -0
- package/package.json +1 -1
package/dist/core/index.js
CHANGED
|
@@ -5760,13 +5760,14 @@ function HydrationStatusProvider({
|
|
|
5760
5760
|
// src/core/components/RemoraidProvider/ThemeProvider/index.tsx
|
|
5761
5761
|
var import_lodash2 = __toESM(require_lodash(), 1);
|
|
5762
5762
|
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
5763
|
+
var defaultTransitionDurations = {
|
|
5764
|
+
["short" /* Short */]: 200,
|
|
5765
|
+
["medium" /* Medium */]: 350,
|
|
5766
|
+
["long" /* Long */]: 500
|
|
5767
|
+
};
|
|
5763
5768
|
var createRemoraidTheme = (customTheme, dependencies) => {
|
|
5764
5769
|
const { mantineTheme, colorScheme } = dependencies ?? {};
|
|
5765
|
-
const transitionDurations = import_lodash2.merge(
|
|
5766
|
-
["short" /* Short */]: 200,
|
|
5767
|
-
["medium" /* Medium */]: 350,
|
|
5768
|
-
["long" /* Long */]: 500
|
|
5769
|
-
}, customTheme?.transitionDurations);
|
|
5770
|
+
const transitionDurations = import_lodash2.merge(defaultTransitionDurations, customTheme?.transitionDurations);
|
|
5770
5771
|
const transparentBackground = customTheme?.transparentBackground ?? (mantineTheme && colorScheme ? colorScheme === "dark" ? rgba(mantineTheme.colors.dark[8], 0.8) : rgba(mantineTheme.white, 0.8) : undefined);
|
|
5771
5772
|
let spacingPx;
|
|
5772
5773
|
if (mantineTheme && colorScheme) {
|
|
@@ -5821,30 +5822,6 @@ var createRemoraidTheme = (customTheme, dependencies) => {
|
|
|
5821
5822
|
size: 12,
|
|
5822
5823
|
stroke: 2.6
|
|
5823
5824
|
}
|
|
5824
|
-
},
|
|
5825
|
-
ScrollArea: {
|
|
5826
|
-
scrollbarSize: 8,
|
|
5827
|
-
scrollHideDelay: 20,
|
|
5828
|
-
type: "hover",
|
|
5829
|
-
styles: { thumb: { zIndex: 5 } }
|
|
5830
|
-
},
|
|
5831
|
-
HoverCard: {
|
|
5832
|
-
withArrow: true,
|
|
5833
|
-
transitionProps: {
|
|
5834
|
-
duration: transitionDurations.short
|
|
5835
|
-
}
|
|
5836
|
-
},
|
|
5837
|
-
Tooltip: {
|
|
5838
|
-
withArrow: true,
|
|
5839
|
-
transitionProps: {
|
|
5840
|
-
duration: transitionDurations.short
|
|
5841
|
-
}
|
|
5842
|
-
},
|
|
5843
|
-
Menu: {
|
|
5844
|
-
withArrow: true,
|
|
5845
|
-
transitionProps: {
|
|
5846
|
-
duration: transitionDurations.short
|
|
5847
|
-
}
|
|
5848
5825
|
}
|
|
5849
5826
|
}
|
|
5850
5827
|
};
|
|
@@ -6113,7 +6090,6 @@ function NavbarLink({
|
|
|
6113
6090
|
href,
|
|
6114
6091
|
indicator
|
|
6115
6092
|
}) {
|
|
6116
|
-
const theme = useRemoraidTheme();
|
|
6117
6093
|
const [isHoveringRoleIndicator, setIsHoveringRoleIndicator] = useState5(false);
|
|
6118
6094
|
const iconProps = {
|
|
6119
6095
|
size: iconSize,
|
|
@@ -6122,7 +6098,6 @@ function NavbarLink({
|
|
|
6122
6098
|
const Icon2 = icon ?? IconLink;
|
|
6123
6099
|
if (!href) {
|
|
6124
6100
|
return /* @__PURE__ */ jsxDEV9(Tooltip, {
|
|
6125
|
-
...theme.componentsProps.Tooltip,
|
|
6126
6101
|
label,
|
|
6127
6102
|
position: "right",
|
|
6128
6103
|
children: /* @__PURE__ */ jsxDEV9(UnstyledButton, {
|
|
@@ -6150,7 +6125,6 @@ function NavbarLink({
|
|
|
6150
6125
|
}, undefined, false, undefined, this)
|
|
6151
6126
|
}, undefined, false, undefined, this);
|
|
6152
6127
|
return /* @__PURE__ */ jsxDEV9(Tooltip, {
|
|
6153
|
-
...theme.componentsProps.Tooltip,
|
|
6154
6128
|
label,
|
|
6155
6129
|
position: "right",
|
|
6156
6130
|
children: indicator === undefined ? button : /* @__PURE__ */ jsxDEV9(Indicator, {
|
|
@@ -6406,7 +6380,6 @@ function Element2({
|
|
|
6406
6380
|
}
|
|
6407
6381
|
|
|
6408
6382
|
// src/core/components/FrameLayout/index.tsx
|
|
6409
|
-
var import_lodash5 = __toESM(require_lodash(), 1);
|
|
6410
6383
|
import { jsxDEV as jsxDEV13 } from "react/jsx-dev-runtime";
|
|
6411
6384
|
var layoutContext = createContext5(null);
|
|
6412
6385
|
var useFrameLayout = () => {
|
|
@@ -6419,7 +6392,6 @@ function FrameLayout({
|
|
|
6419
6392
|
componentsProps,
|
|
6420
6393
|
children
|
|
6421
6394
|
}) {
|
|
6422
|
-
const theme = useRemoraidTheme();
|
|
6423
6395
|
const { layouts, setLayouts } = useLayouts();
|
|
6424
6396
|
const layout = layouts[layoutId];
|
|
6425
6397
|
const defaultSections = useMemo3(() => ({
|
|
@@ -6521,7 +6493,7 @@ function FrameLayout({
|
|
|
6521
6493
|
}, undefined, false, undefined, this),
|
|
6522
6494
|
includeScrollArea ? /* @__PURE__ */ jsxDEV13(ScrollArea, {
|
|
6523
6495
|
flex: 1,
|
|
6524
|
-
...
|
|
6496
|
+
...componentsProps?.ScrollArea,
|
|
6525
6497
|
children: contentSection
|
|
6526
6498
|
}, undefined, false, undefined, this) : contentSection,
|
|
6527
6499
|
/* @__PURE__ */ jsxDEV13(Stack2, {
|
|
@@ -6551,7 +6523,7 @@ var FrameLayout_default = Object.assign(FrameLayout, {
|
|
|
6551
6523
|
});
|
|
6552
6524
|
|
|
6553
6525
|
// src/core/components/AppShell/index.tsx
|
|
6554
|
-
var
|
|
6526
|
+
var import_lodash5 = __toESM(require_lodash(), 1);
|
|
6555
6527
|
import { jsxDEV as jsxDEV14 } from "react/jsx-dev-runtime";
|
|
6556
6528
|
var remoraidAppShellLayoutId = "remoraid-app-shell";
|
|
6557
6529
|
var defaultAppShellNavbarPositions = { ["minimal" /* Minimal */]: "left" /* Left */ };
|
|
@@ -6604,13 +6576,13 @@ function AppShell({
|
|
|
6604
6576
|
navbarPosition !== null && /* @__PURE__ */ jsxDEV14(FrameLayout_default.Element, {
|
|
6605
6577
|
section: navbarPosition,
|
|
6606
6578
|
includeContainer: false,
|
|
6607
|
-
...
|
|
6579
|
+
...import_lodash5.merge(navbarLayoutElementProps, componentsProps?.navbarLayoutElement),
|
|
6608
6580
|
children: navbar
|
|
6609
6581
|
}, undefined, false, undefined, this),
|
|
6610
6582
|
children,
|
|
6611
6583
|
footerPosition !== null && /* @__PURE__ */ jsxDEV14(FrameLayout_default.Element, {
|
|
6612
6584
|
section: footerPosition,
|
|
6613
|
-
...
|
|
6585
|
+
...import_lodash5.merge(footerLayoutElementProps, componentsProps?.footerLayoutElement),
|
|
6614
6586
|
children: footer
|
|
6615
6587
|
}, undefined, false, undefined, this)
|
|
6616
6588
|
]
|
|
@@ -6687,7 +6659,6 @@ import {
|
|
|
6687
6659
|
Flex as Flex2,
|
|
6688
6660
|
ScrollArea as ScrollArea2
|
|
6689
6661
|
} from "@mantine/core";
|
|
6690
|
-
var import_lodash7 = __toESM(require_lodash(), 1);
|
|
6691
6662
|
import { jsxDEV as jsxDEV16 } from "react/jsx-dev-runtime";
|
|
6692
6663
|
function ScrollableChipGroup({
|
|
6693
6664
|
value,
|
|
@@ -6697,10 +6668,10 @@ function ScrollableChipGroup({
|
|
|
6697
6668
|
componentsProps,
|
|
6698
6669
|
children
|
|
6699
6670
|
}) {
|
|
6700
|
-
const theme = useRemoraidTheme();
|
|
6701
6671
|
return /* @__PURE__ */ jsxDEV16(ScrollArea2, {
|
|
6702
6672
|
ref,
|
|
6703
|
-
...
|
|
6673
|
+
...componentsProps?.ScrollArea,
|
|
6674
|
+
style: { contain: "inline-size", ...componentsProps?.ScrollArea?.style },
|
|
6704
6675
|
children: /* @__PURE__ */ jsxDEV16(Chip.Group, {
|
|
6705
6676
|
value,
|
|
6706
6677
|
onChange,
|
|
@@ -6719,7 +6690,7 @@ function ScrollableChipGroup({
|
|
|
6719
6690
|
}
|
|
6720
6691
|
|
|
6721
6692
|
// src/core/components/WidgetSelectionHeader/index.tsx
|
|
6722
|
-
var
|
|
6693
|
+
var import_lodash8 = __toESM(require_lodash(), 1);
|
|
6723
6694
|
|
|
6724
6695
|
// src/core/components/Pinnable/index.tsx
|
|
6725
6696
|
import {
|
|
@@ -6737,7 +6708,7 @@ import {
|
|
|
6737
6708
|
Transition
|
|
6738
6709
|
} from "@mantine/core";
|
|
6739
6710
|
import { IconClick } from "@tabler/icons-react";
|
|
6740
|
-
var
|
|
6711
|
+
var import_lodash6 = __toESM(require_lodash(), 1);
|
|
6741
6712
|
import { jsxDEV as jsxDEV17 } from "react/jsx-dev-runtime";
|
|
6742
6713
|
function ControlButton({
|
|
6743
6714
|
icon: Icon3 = IconClick,
|
|
@@ -6758,7 +6729,9 @@ function ControlButton({
|
|
|
6758
6729
|
timingFunction: "ease",
|
|
6759
6730
|
...componentsProps?.transition,
|
|
6760
6731
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV17(Tooltip2, {
|
|
6761
|
-
|
|
6732
|
+
label: tooltip,
|
|
6733
|
+
disabled: !Boolean(tooltip),
|
|
6734
|
+
...componentsProps?.tooltip,
|
|
6762
6735
|
children: /* @__PURE__ */ jsxDEV17(ActionIcon, {
|
|
6763
6736
|
"data-control-button": true,
|
|
6764
6737
|
size,
|
|
@@ -6768,10 +6741,10 @@ function ControlButton({
|
|
|
6768
6741
|
...componentsProps?.button,
|
|
6769
6742
|
style: {
|
|
6770
6743
|
order,
|
|
6771
|
-
...
|
|
6744
|
+
...import_lodash6.merge(transitionStyle, componentsProps?.button?.style)
|
|
6772
6745
|
},
|
|
6773
6746
|
children: /* @__PURE__ */ jsxDEV17(Icon3, {
|
|
6774
|
-
...
|
|
6747
|
+
...import_lodash6.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6775
6748
|
}, undefined, false, undefined, this)
|
|
6776
6749
|
}, undefined, false, undefined, this)
|
|
6777
6750
|
}, undefined, false, undefined, this)
|
|
@@ -6786,7 +6759,7 @@ import {
|
|
|
6786
6759
|
Transition as Transition2
|
|
6787
6760
|
} from "@mantine/core";
|
|
6788
6761
|
import { IconGripHorizontal } from "@tabler/icons-react";
|
|
6789
|
-
var
|
|
6762
|
+
var import_lodash7 = __toESM(require_lodash(), 1);
|
|
6790
6763
|
import { jsxDEV as jsxDEV18 } from "react/jsx-dev-runtime";
|
|
6791
6764
|
function Controls({
|
|
6792
6765
|
groupRef,
|
|
@@ -6865,7 +6838,7 @@ function Controls({
|
|
|
6865
6838
|
style: {
|
|
6866
6839
|
right: pos.x,
|
|
6867
6840
|
top: pos.y,
|
|
6868
|
-
...
|
|
6841
|
+
...import_lodash7.merge(transitionStyle, componentsProps?.container?.style)
|
|
6869
6842
|
},
|
|
6870
6843
|
className: clsx_default("remoraid-controls", componentsProps?.container?.className),
|
|
6871
6844
|
children: /* @__PURE__ */ jsxDEV18(Group3, {
|
|
@@ -6876,7 +6849,7 @@ function Controls({
|
|
|
6876
6849
|
className: clsx_default("remoraid-controls-group", componentsProps?.group?.className),
|
|
6877
6850
|
children: [
|
|
6878
6851
|
/* @__PURE__ */ jsxDEV18(IconGripHorizontal, {
|
|
6879
|
-
...
|
|
6852
|
+
...import_lodash7.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
|
|
6880
6853
|
}, undefined, false, undefined, this),
|
|
6881
6854
|
children,
|
|
6882
6855
|
additionalButtons && additionalButtons.map((button, i) => {
|
|
@@ -7025,13 +6998,14 @@ function WidgetSelectionHeader({
|
|
|
7025
6998
|
updateWidgetSelectionBulk(page.pageId, value);
|
|
7026
6999
|
componentsProps?.ScrollableChipGroup?.onChange?.(value);
|
|
7027
7000
|
},
|
|
7028
|
-
componentsProps:
|
|
7001
|
+
componentsProps: import_lodash8.merge({ ScrollArea: { flex: 1 } }, componentsProps?.ScrollableChipGroup?.componentsProps),
|
|
7029
7002
|
children: Object.entries(widgets).map(([widgetId, widget]) => {
|
|
7030
7003
|
if (!widget) {
|
|
7031
7004
|
return;
|
|
7032
7005
|
}
|
|
7033
7006
|
return /* @__PURE__ */ jsxDEV20(Menu, {
|
|
7034
|
-
|
|
7007
|
+
trigger: "hover",
|
|
7008
|
+
...componentsProps?.widgetMenu,
|
|
7035
7009
|
children: [
|
|
7036
7010
|
/* @__PURE__ */ jsxDEV20(Menu.Target, {
|
|
7037
7011
|
children: /* @__PURE__ */ jsxDEV20(Box4, {
|
|
@@ -7045,7 +7019,7 @@ function WidgetSelectionHeader({
|
|
|
7045
7019
|
...theme.componentsProps.icons.small
|
|
7046
7020
|
}, undefined, false, undefined, this),
|
|
7047
7021
|
...componentsProps?.Chip,
|
|
7048
|
-
styles:
|
|
7022
|
+
styles: import_lodash8.merge({
|
|
7049
7023
|
label: {
|
|
7050
7024
|
transition: "background-color var(--remoraid-transition-duration-short)"
|
|
7051
7025
|
}
|
|
@@ -7164,7 +7138,6 @@ import {
|
|
|
7164
7138
|
Tooltip as Tooltip3,
|
|
7165
7139
|
Transition as Transition3
|
|
7166
7140
|
} from "@mantine/core";
|
|
7167
|
-
var import_lodash11 = __toESM(require_lodash(), 1);
|
|
7168
7141
|
import { jsxDEV as jsxDEV21 } from "react/jsx-dev-runtime";
|
|
7169
7142
|
function BadgeMinimal({
|
|
7170
7143
|
label,
|
|
@@ -7180,7 +7153,9 @@ function BadgeMinimal({
|
|
|
7180
7153
|
timingFunction: "ease",
|
|
7181
7154
|
...componentsProps?.transition,
|
|
7182
7155
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV21(Tooltip3, {
|
|
7183
|
-
|
|
7156
|
+
label: tooltip,
|
|
7157
|
+
disabled: !Boolean(tooltip),
|
|
7158
|
+
...componentsProps?.tooltip,
|
|
7184
7159
|
children: /* @__PURE__ */ jsxDEV21(Badge, {
|
|
7185
7160
|
variant: "default",
|
|
7186
7161
|
...componentsProps?.badge,
|
|
@@ -7196,7 +7171,7 @@ function BadgeMinimal({
|
|
|
7196
7171
|
}
|
|
7197
7172
|
|
|
7198
7173
|
// src/core/components/BadgeGroup/index.tsx
|
|
7199
|
-
var
|
|
7174
|
+
var import_lodash9 = __toESM(require_lodash(), 1);
|
|
7200
7175
|
import { jsxDEV as jsxDEV22, Fragment as Fragment2 } from "react/jsx-dev-runtime";
|
|
7201
7176
|
import { createElement } from "react";
|
|
7202
7177
|
function BadgeGroup({
|
|
@@ -7235,7 +7210,7 @@ function BadgeGroup({
|
|
|
7235
7210
|
timingFunction: "ease",
|
|
7236
7211
|
...componentsProps?.cumulativeBadgeTransition,
|
|
7237
7212
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV22(HoverCard, {
|
|
7238
|
-
...
|
|
7213
|
+
...componentsProps?.HoverCard,
|
|
7239
7214
|
children: [
|
|
7240
7215
|
/* @__PURE__ */ jsxDEV22(HoverCard.Target, {
|
|
7241
7216
|
children: /* @__PURE__ */ jsxDEV22(Badge2, {
|
|
@@ -7244,7 +7219,7 @@ function BadgeGroup({
|
|
|
7244
7219
|
...componentsProps?.cumulativeBadge,
|
|
7245
7220
|
style: {
|
|
7246
7221
|
cursor: "pointer",
|
|
7247
|
-
...
|
|
7222
|
+
...import_lodash9.merge(transitionStyle, componentsProps?.cumulativeBadge?.style)
|
|
7248
7223
|
},
|
|
7249
7224
|
children: [
|
|
7250
7225
|
numVisibleBadges,
|
|
@@ -7268,7 +7243,7 @@ function BadgeGroup({
|
|
|
7268
7243
|
}
|
|
7269
7244
|
// src/core/components/AlertMinimal/index.tsx
|
|
7270
7245
|
import { Alert, Transition as Transition5 } from "@mantine/core";
|
|
7271
|
-
var
|
|
7246
|
+
var import_lodash10 = __toESM(require_lodash(), 1);
|
|
7272
7247
|
import { jsxDEV as jsxDEV23 } from "react/jsx-dev-runtime";
|
|
7273
7248
|
function AlertMinimal({
|
|
7274
7249
|
category,
|
|
@@ -7285,7 +7260,7 @@ function AlertMinimal({
|
|
|
7285
7260
|
icon: Icon3,
|
|
7286
7261
|
iconSize = "medium" /* Medium */,
|
|
7287
7262
|
componentsProps
|
|
7288
|
-
} =
|
|
7263
|
+
} = import_lodash10.merge({}, theme.componentsProps.alerts[category], props);
|
|
7289
7264
|
return /* @__PURE__ */ jsxDEV23(Transition5, {
|
|
7290
7265
|
mounted,
|
|
7291
7266
|
transition: "fade",
|
|
@@ -7299,9 +7274,9 @@ function AlertMinimal({
|
|
|
7299
7274
|
onClose,
|
|
7300
7275
|
withCloseButton: onClose !== undefined,
|
|
7301
7276
|
icon: Icon3 ? /* @__PURE__ */ jsxDEV23(Icon3, {
|
|
7302
|
-
...
|
|
7277
|
+
...import_lodash10.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
7303
7278
|
}, undefined, false, undefined, this) : undefined,
|
|
7304
|
-
style:
|
|
7279
|
+
style: import_lodash10.merge(transitionStyle, componentsProps?.alert?.style),
|
|
7305
7280
|
children: [
|
|
7306
7281
|
text,
|
|
7307
7282
|
children
|
|
@@ -7317,7 +7292,7 @@ import {
|
|
|
7317
7292
|
Transition as Transition6
|
|
7318
7293
|
} from "@mantine/core";
|
|
7319
7294
|
import { IconClick as IconClick2 } from "@tabler/icons-react";
|
|
7320
|
-
var
|
|
7295
|
+
var import_lodash11 = __toESM(require_lodash(), 1);
|
|
7321
7296
|
import { jsxDEV as jsxDEV24, Fragment as Fragment3 } from "react/jsx-dev-runtime";
|
|
7322
7297
|
function RemoraidButton({
|
|
7323
7298
|
label,
|
|
@@ -7341,7 +7316,7 @@ function RemoraidButton({
|
|
|
7341
7316
|
const Icon4 = iconProp ?? IconClick2;
|
|
7342
7317
|
const theme = useRemoraidTheme();
|
|
7343
7318
|
const iconElement = /* @__PURE__ */ jsxDEV24(Icon4, {
|
|
7344
|
-
...
|
|
7319
|
+
...import_lodash11.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
7345
7320
|
}, undefined, false, undefined, this);
|
|
7346
7321
|
return /* @__PURE__ */ jsxDEV24(Transition6, {
|
|
7347
7322
|
mounted,
|
|
@@ -7352,7 +7327,8 @@ function RemoraidButton({
|
|
|
7352
7327
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV24(Fragment3, {
|
|
7353
7328
|
children: [
|
|
7354
7329
|
/* @__PURE__ */ jsxDEV24(Tooltip4, {
|
|
7355
|
-
|
|
7330
|
+
label,
|
|
7331
|
+
...componentsProps?.tooltip,
|
|
7356
7332
|
children: /* @__PURE__ */ jsxDEV24(ActionIcon2, {
|
|
7357
7333
|
"aria-label": label,
|
|
7358
7334
|
variant,
|
|
@@ -7401,7 +7377,7 @@ import {
|
|
|
7401
7377
|
useState as useState9
|
|
7402
7378
|
} from "react";
|
|
7403
7379
|
import { IconX } from "@tabler/icons-react";
|
|
7404
|
-
var
|
|
7380
|
+
var import_lodash12 = __toESM(require_lodash(), 1);
|
|
7405
7381
|
import { jsxDEV as jsxDEV25 } from "react/jsx-dev-runtime";
|
|
7406
7382
|
function WidgetWrapper({
|
|
7407
7383
|
config,
|
|
@@ -7472,7 +7448,7 @@ function WidgetWrapper({
|
|
|
7472
7448
|
}
|
|
7473
7449
|
componentsProps?.container?.onMouseLeave?.(e);
|
|
7474
7450
|
},
|
|
7475
|
-
style:
|
|
7451
|
+
style: import_lodash12.merge(transitionStyle, { flexDirection: "column" }, componentsProps?.container?.style),
|
|
7476
7452
|
className: clsx_default("remoraid-segment", componentsProps?.container?.className),
|
|
7477
7453
|
id: config.widgetId,
|
|
7478
7454
|
children: [
|
|
@@ -7565,7 +7541,6 @@ import {
|
|
|
7565
7541
|
Box as Box5,
|
|
7566
7542
|
ScrollArea as ScrollArea3
|
|
7567
7543
|
} from "@mantine/core";
|
|
7568
|
-
var import_lodash16 = __toESM(require_lodash(), 1);
|
|
7569
7544
|
import { jsxDEV as jsxDEV26 } from "react/jsx-dev-runtime";
|
|
7570
7545
|
import { createElement as createElement2 } from "react";
|
|
7571
7546
|
function Widget({
|
|
@@ -7585,7 +7560,6 @@ function Widget({
|
|
|
7585
7560
|
const buttons = buttonsProp?.map((button) => asElementOrPropsOfType(RemoraidButton, button, "Check the 'buttons' property of this widget."));
|
|
7586
7561
|
const alerts = alertsProp?.map((alert) => asElementOrPropsOfType(AlertMinimal, alert, "Check the 'alerts' property of this widget."));
|
|
7587
7562
|
const badges = badgesProp?.map((badge) => asElementOrPropsOfType(BadgeMinimal, badge, "Check the 'badges' property of this widget."));
|
|
7588
|
-
const theme = useRemoraidTheme();
|
|
7589
7563
|
const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
|
|
7590
7564
|
const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
|
|
7591
7565
|
const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
|
|
@@ -7664,7 +7638,8 @@ function Widget({
|
|
|
7664
7638
|
})
|
|
7665
7639
|
}, undefined, false, undefined, this),
|
|
7666
7640
|
/* @__PURE__ */ jsxDEV26(ScrollArea3.Autosize, {
|
|
7667
|
-
|
|
7641
|
+
flex: 1,
|
|
7642
|
+
...componentsProps?.childrenContainer,
|
|
7668
7643
|
children: loading ? /* @__PURE__ */ jsxDEV26(Center, {
|
|
7669
7644
|
children: /* @__PURE__ */ jsxDEV26(Loader, {
|
|
7670
7645
|
...componentsProps?.loader
|
|
@@ -7892,7 +7867,7 @@ var SettingsTable_default = Object.assign(SettingsTable, {
|
|
|
7892
7867
|
Row
|
|
7893
7868
|
});
|
|
7894
7869
|
// src/core/components/NavbarSettingsWidget/index.tsx
|
|
7895
|
-
var
|
|
7870
|
+
var import_lodash13 = __toESM(require_lodash(), 1);
|
|
7896
7871
|
import { Chip as Chip3, Group as Group7 } from "@mantine/core";
|
|
7897
7872
|
import { IconLink as IconLink2 } from "@tabler/icons-react";
|
|
7898
7873
|
import { jsxDEV as jsxDEV33 } from "react/jsx-dev-runtime";
|
|
@@ -7918,7 +7893,7 @@ function NavbarSettingsWidget({
|
|
|
7918
7893
|
navbar: initialUserExperience.navbar
|
|
7919
7894
|
}));
|
|
7920
7895
|
},
|
|
7921
|
-
custom: !
|
|
7896
|
+
custom: !import_lodash13.isEqual(userExperience.navbar, initialUserExperience.navbar),
|
|
7922
7897
|
children: /* @__PURE__ */ jsxDEV33(SettingsTable_default, {
|
|
7923
7898
|
...componentsProps?.table,
|
|
7924
7899
|
children: [
|
|
@@ -8008,6 +7983,53 @@ function ContextClusterProvider({
|
|
|
8008
7983
|
children: t
|
|
8009
7984
|
}, undefined, false, undefined, this) : t, children);
|
|
8010
7985
|
}
|
|
7986
|
+
// src/core/components/InputWrapperScrollArea/index.tsx
|
|
7987
|
+
import {
|
|
7988
|
+
Box as Box6,
|
|
7989
|
+
Input,
|
|
7990
|
+
Paper as Paper4,
|
|
7991
|
+
ScrollArea as ScrollArea4
|
|
7992
|
+
} from "@mantine/core";
|
|
7993
|
+
import { useState as useState10 } from "react";
|
|
7994
|
+
import { jsxDEV as jsxDEV35 } from "react/jsx-dev-runtime";
|
|
7995
|
+
function InputWrapperScrollArea({
|
|
7996
|
+
children,
|
|
7997
|
+
label,
|
|
7998
|
+
mah,
|
|
7999
|
+
error,
|
|
8000
|
+
componentsProps
|
|
8001
|
+
}) {
|
|
8002
|
+
const theme = useRemoraidTheme();
|
|
8003
|
+
const [isHovering, setIsHovering] = useState10(false);
|
|
8004
|
+
return /* @__PURE__ */ jsxDEV35(Input.Wrapper, {
|
|
8005
|
+
label,
|
|
8006
|
+
error,
|
|
8007
|
+
onMouseEnter: () => setIsHovering(true),
|
|
8008
|
+
onMouseLeave: () => setIsHovering(false),
|
|
8009
|
+
...componentsProps?.container,
|
|
8010
|
+
children: /* @__PURE__ */ jsxDEV35(Paper4, {
|
|
8011
|
+
shadow: "none",
|
|
8012
|
+
p: 0,
|
|
8013
|
+
withBorder: true,
|
|
8014
|
+
display: "flex",
|
|
8015
|
+
bg: theme.transparentBackground,
|
|
8016
|
+
style: {
|
|
8017
|
+
transition: "border-color .1s",
|
|
8018
|
+
borderColor: error ? "var(--mantine-color-error)" : isHovering ? "var(--mantine-primary-color-filled)" : undefined
|
|
8019
|
+
},
|
|
8020
|
+
children: /* @__PURE__ */ jsxDEV35(ScrollArea4, {
|
|
8021
|
+
mah,
|
|
8022
|
+
px: "md",
|
|
8023
|
+
flex: 1,
|
|
8024
|
+
...componentsProps?.ScrollArea,
|
|
8025
|
+
children: /* @__PURE__ */ jsxDEV35(Box6, {
|
|
8026
|
+
...componentsProps?.childrenContainer,
|
|
8027
|
+
children
|
|
8028
|
+
}, undefined, false, undefined, this)
|
|
8029
|
+
}, undefined, false, undefined, this)
|
|
8030
|
+
}, undefined, false, undefined, this)
|
|
8031
|
+
}, undefined, false, undefined, this);
|
|
8032
|
+
}
|
|
8011
8033
|
export {
|
|
8012
8034
|
useWidgets,
|
|
8013
8035
|
useWidget,
|
|
@@ -8030,6 +8052,7 @@ export {
|
|
|
8030
8052
|
getCssVars,
|
|
8031
8053
|
defaultUserExperienceCookieName,
|
|
8032
8054
|
defaultUserExperience,
|
|
8055
|
+
defaultTransitionDurations,
|
|
8033
8056
|
defaultSettingsWidgetContext as defaultSettingsWidgetOptions,
|
|
8034
8057
|
defaultSettingsTableOptions,
|
|
8035
8058
|
defaultNavbarSettingsWidgetId,
|
|
@@ -8063,6 +8086,7 @@ export {
|
|
|
8063
8086
|
NavbarVariant,
|
|
8064
8087
|
NavbarSettingsWidget,
|
|
8065
8088
|
LayoutType,
|
|
8089
|
+
InputWrapperScrollArea,
|
|
8066
8090
|
HydrationStatusProvider,
|
|
8067
8091
|
FrameLayoutSection,
|
|
8068
8092
|
FrameLayout_default as FrameLayout,
|