remoraid 2.41.1 → 2.41.3
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 +400 -399
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +400 -399
- package/dist/jsonforms/index.cjs +408 -407
- package/dist/jsonforms/index.js +408 -407
- package/dist/modals/index.cjs +5 -5
- package/dist/modals/index.js +5 -5
- package/dist/server/index.cjs +15 -15
- package/dist/server/index.js +15 -15
- package/package.json +1 -1
package/dist/core/index.cjs
CHANGED
|
@@ -5552,7 +5552,7 @@ module.exports = __toCommonJS(exports_core);
|
|
|
5552
5552
|
// src/core/components/RemoraidProvider/WidgetsProvider/index.tsx
|
|
5553
5553
|
var import_lodash = __toESM(require_lodash());
|
|
5554
5554
|
var import_react = __toESM(require("react"));
|
|
5555
|
-
var
|
|
5555
|
+
var jsx_runtime = require("react/jsx-runtime");
|
|
5556
5556
|
var getDefaultWidgetContext = (configuration) => {
|
|
5557
5557
|
const mergedConfiguration = import_lodash.merge({ name: configuration.widgetId, selected: true }, configuration.initialValues);
|
|
5558
5558
|
return { ...mergedConfiguration, hidden: !mergedConfiguration.selected };
|
|
@@ -5701,7 +5701,7 @@ function WidgetsProvider({
|
|
|
5701
5701
|
}
|
|
5702
5702
|
}));
|
|
5703
5703
|
};
|
|
5704
|
-
return /* @__PURE__ */
|
|
5704
|
+
return /* @__PURE__ */ jsx_runtime.jsx(widgetsContext.Provider, {
|
|
5705
5705
|
value: {
|
|
5706
5706
|
widgets,
|
|
5707
5707
|
activeWidget,
|
|
@@ -5716,7 +5716,7 @@ function WidgetsProvider({
|
|
|
5716
5716
|
hideWidget
|
|
5717
5717
|
},
|
|
5718
5718
|
children
|
|
5719
|
-
}
|
|
5719
|
+
});
|
|
5720
5720
|
}
|
|
5721
5721
|
|
|
5722
5722
|
// src/core/lib/types.ts
|
|
@@ -5864,7 +5864,7 @@ var import_react4 = __toESM(require("react"));
|
|
|
5864
5864
|
// src/core/components/RemoraidProvider/HydrationStatusProvider/index.tsx
|
|
5865
5865
|
var import_core = require("@mantine/core");
|
|
5866
5866
|
var import_react3 = require("react");
|
|
5867
|
-
var
|
|
5867
|
+
var jsx_runtime2 = require("react/jsx-runtime");
|
|
5868
5868
|
var defaultHydrationStatus = {
|
|
5869
5869
|
hasHydrated: false,
|
|
5870
5870
|
ensureHydration: () => {
|
|
@@ -5890,15 +5890,15 @@ function HydrationStatusProvider({
|
|
|
5890
5890
|
import_react3.useEffect(() => {
|
|
5891
5891
|
setHasHydrated(true);
|
|
5892
5892
|
}, []);
|
|
5893
|
-
return /* @__PURE__ */
|
|
5893
|
+
return /* @__PURE__ */ jsx_runtime2.jsx(hydrationStatusContext.Provider, {
|
|
5894
5894
|
value: hydrationStatus,
|
|
5895
5895
|
children
|
|
5896
|
-
}
|
|
5896
|
+
});
|
|
5897
5897
|
}
|
|
5898
5898
|
|
|
5899
5899
|
// src/core/components/RemoraidProvider/ThemeProvider/index.tsx
|
|
5900
5900
|
var import_lodash2 = __toESM(require_lodash());
|
|
5901
|
-
var
|
|
5901
|
+
var jsx_runtime3 = require("react/jsx-runtime");
|
|
5902
5902
|
var defaultTransitionDurations = {
|
|
5903
5903
|
["short" /* Short */]: 200,
|
|
5904
5904
|
["medium" /* Medium */]: 350,
|
|
@@ -6007,10 +6007,10 @@ function ThemeProvider({
|
|
|
6007
6007
|
entries.forEach(([key]) => root.style.removeProperty(key));
|
|
6008
6008
|
};
|
|
6009
6009
|
}, [remoraidTheme]);
|
|
6010
|
-
return /* @__PURE__ */
|
|
6010
|
+
return /* @__PURE__ */ jsx_runtime3.jsx(themeContext.Provider, {
|
|
6011
6011
|
value: remoraidTheme,
|
|
6012
6012
|
children
|
|
6013
|
-
}
|
|
6013
|
+
});
|
|
6014
6014
|
}
|
|
6015
6015
|
|
|
6016
6016
|
// src/core/components/RemoraidProvider/index.tsx
|
|
@@ -6023,7 +6023,7 @@ var import_react6 = require("react");
|
|
|
6023
6023
|
var import_lodash3 = __toESM(require_lodash());
|
|
6024
6024
|
var import_react5 = require("react");
|
|
6025
6025
|
var import_react_cookie = require("react-cookie");
|
|
6026
|
-
var
|
|
6026
|
+
var jsx_runtime4 = require("react/jsx-runtime");
|
|
6027
6027
|
var createUserExperienceContext = (defaultUserExperience) => import_react5.createContext({
|
|
6028
6028
|
userExperience: defaultUserExperience,
|
|
6029
6029
|
updateUserExperience: () => {},
|
|
@@ -6056,7 +6056,7 @@ function UserExperienceProviderWrapper({
|
|
|
6056
6056
|
setProcessedCookie(true);
|
|
6057
6057
|
}
|
|
6058
6058
|
}, [cookies]);
|
|
6059
|
-
return /* @__PURE__ */
|
|
6059
|
+
return /* @__PURE__ */ jsx_runtime4.jsx(context.Provider, {
|
|
6060
6060
|
value: {
|
|
6061
6061
|
userExperience,
|
|
6062
6062
|
updateUserExperience,
|
|
@@ -6064,11 +6064,11 @@ function UserExperienceProviderWrapper({
|
|
|
6064
6064
|
initialUserExperience
|
|
6065
6065
|
},
|
|
6066
6066
|
children
|
|
6067
|
-
}
|
|
6067
|
+
});
|
|
6068
6068
|
}
|
|
6069
6069
|
|
|
6070
6070
|
// src/core/components/RemoraidProvider/CoreUserExperienceProvider/index.tsx
|
|
6071
|
-
var
|
|
6071
|
+
var jsx_runtime5 = require("react/jsx-runtime");
|
|
6072
6072
|
var defaultUserExperience = {
|
|
6073
6073
|
showWelcomeMessage: true,
|
|
6074
6074
|
navbar: { hiddenPages: [], mode: "responsive" /* Responsive */ }
|
|
@@ -6098,19 +6098,19 @@ function CoreUserExperienceProvider({
|
|
|
6098
6098
|
}
|
|
6099
6099
|
return true;
|
|
6100
6100
|
};
|
|
6101
|
-
return /* @__PURE__ */
|
|
6101
|
+
return /* @__PURE__ */ jsx_runtime5.jsx(UserExperienceProviderWrapper, {
|
|
6102
6102
|
context: coreUserExperienceContext,
|
|
6103
6103
|
isValidUserExperience,
|
|
6104
6104
|
cookieName: cookieName ?? defaultUserExperienceCookieName,
|
|
6105
6105
|
defaultUserExperience,
|
|
6106
6106
|
initialValue,
|
|
6107
6107
|
children
|
|
6108
|
-
}
|
|
6108
|
+
});
|
|
6109
6109
|
}
|
|
6110
6110
|
|
|
6111
6111
|
// src/core/components/RemoraidProvider/LayoutsProvider/index.tsx
|
|
6112
6112
|
var import_react7 = require("react");
|
|
6113
|
-
var
|
|
6113
|
+
var jsx_runtime6 = require("react/jsx-runtime");
|
|
6114
6114
|
var defaultLayoutsContext = {
|
|
6115
6115
|
layouts: {},
|
|
6116
6116
|
setLayouts: () => {}
|
|
@@ -6123,41 +6123,41 @@ function LayoutsProvider({
|
|
|
6123
6123
|
children
|
|
6124
6124
|
}) {
|
|
6125
6125
|
const [layouts, setLayouts] = import_react7.useState({});
|
|
6126
|
-
return /* @__PURE__ */
|
|
6126
|
+
return /* @__PURE__ */ jsx_runtime6.jsx(layoutsContext.Provider, {
|
|
6127
6127
|
value: { layouts, setLayouts },
|
|
6128
6128
|
children
|
|
6129
|
-
}
|
|
6129
|
+
});
|
|
6130
6130
|
}
|
|
6131
6131
|
|
|
6132
6132
|
// src/core/components/RemoraidProvider/index.tsx
|
|
6133
|
-
var
|
|
6133
|
+
var jsx_runtime7 = require("react/jsx-runtime");
|
|
6134
6134
|
function RemoraidProvider({
|
|
6135
6135
|
children,
|
|
6136
6136
|
theme,
|
|
6137
6137
|
initialUserExperience,
|
|
6138
6138
|
componentsProps
|
|
6139
6139
|
}) {
|
|
6140
|
-
return /* @__PURE__ */
|
|
6140
|
+
return /* @__PURE__ */ jsx_runtime7.jsx(import_react_cookie2.CookiesProvider, {
|
|
6141
6141
|
...componentsProps?.CookiesProvider,
|
|
6142
|
-
children: /* @__PURE__ */
|
|
6142
|
+
children: /* @__PURE__ */ jsx_runtime7.jsx(HydrationStatusProvider, {
|
|
6143
6143
|
...componentsProps?.HydrationStatusProviderProps,
|
|
6144
|
-
children: /* @__PURE__ */
|
|
6144
|
+
children: /* @__PURE__ */ jsx_runtime7.jsx(ThemeProvider, {
|
|
6145
6145
|
theme,
|
|
6146
6146
|
...componentsProps?.ThemeProvider,
|
|
6147
|
-
children: /* @__PURE__ */
|
|
6147
|
+
children: /* @__PURE__ */ jsx_runtime7.jsx(CoreUserExperienceProvider, {
|
|
6148
6148
|
initialValue: initialUserExperience,
|
|
6149
6149
|
...componentsProps?.CoreUserExperienceProvider,
|
|
6150
|
-
children: /* @__PURE__ */
|
|
6150
|
+
children: /* @__PURE__ */ jsx_runtime7.jsx(WidgetsProvider, {
|
|
6151
6151
|
...componentsProps?.WidgetsProvider,
|
|
6152
|
-
children: /* @__PURE__ */
|
|
6152
|
+
children: /* @__PURE__ */ jsx_runtime7.jsx(LayoutsProvider, {
|
|
6153
6153
|
...componentsProps?.LayoutsProviderProps,
|
|
6154
6154
|
children
|
|
6155
|
-
}
|
|
6156
|
-
}
|
|
6157
|
-
}
|
|
6158
|
-
}
|
|
6159
|
-
}
|
|
6160
|
-
}
|
|
6155
|
+
})
|
|
6156
|
+
})
|
|
6157
|
+
})
|
|
6158
|
+
})
|
|
6159
|
+
})
|
|
6160
|
+
});
|
|
6161
6161
|
}
|
|
6162
6162
|
// src/core/components/AppShell/index.tsx
|
|
6163
6163
|
var import_core13 = require("@mantine/core");
|
|
@@ -6165,7 +6165,7 @@ var import_core13 = require("@mantine/core");
|
|
|
6165
6165
|
// src/core/components/AppShell/AppProvider/index.tsx
|
|
6166
6166
|
var import_react8 = require("react");
|
|
6167
6167
|
var import_lodash4 = __toESM(require_lodash());
|
|
6168
|
-
var
|
|
6168
|
+
var jsx_runtime8 = require("react/jsx-runtime");
|
|
6169
6169
|
var defaultAppContext = {
|
|
6170
6170
|
name: "Hello, World!",
|
|
6171
6171
|
nav: [],
|
|
@@ -6181,10 +6181,10 @@ function AppProvider({
|
|
|
6181
6181
|
appContext: appContextProp,
|
|
6182
6182
|
children
|
|
6183
6183
|
}) {
|
|
6184
|
-
return /* @__PURE__ */
|
|
6184
|
+
return /* @__PURE__ */ jsx_runtime8.jsx(appContext.Provider, {
|
|
6185
6185
|
value: import_lodash4.merge(defaultAppContext, appContextProp),
|
|
6186
6186
|
children
|
|
6187
|
-
}
|
|
6187
|
+
});
|
|
6188
6188
|
}
|
|
6189
6189
|
|
|
6190
6190
|
// src/core/components/AppShell/index.tsx
|
|
@@ -6225,7 +6225,7 @@ function clsx() {
|
|
|
6225
6225
|
var clsx_default = clsx;
|
|
6226
6226
|
|
|
6227
6227
|
// src/core/components/Page/PageContainer/index.tsx
|
|
6228
|
-
var
|
|
6228
|
+
var jsx_runtime9 = require("react/jsx-runtime");
|
|
6229
6229
|
function PageContainer({
|
|
6230
6230
|
children,
|
|
6231
6231
|
p = 0,
|
|
@@ -6233,7 +6233,7 @@ function PageContainer({
|
|
|
6233
6233
|
componentsProps
|
|
6234
6234
|
}) {
|
|
6235
6235
|
const theme = useRemoraidTheme();
|
|
6236
|
-
return /* @__PURE__ */
|
|
6236
|
+
return /* @__PURE__ */ jsx_runtime9.jsx(import_core3.Container, {
|
|
6237
6237
|
size: theme.containerSize,
|
|
6238
6238
|
p,
|
|
6239
6239
|
w: "100%",
|
|
@@ -6241,7 +6241,7 @@ function PageContainer({
|
|
|
6241
6241
|
...componentsProps?.container,
|
|
6242
6242
|
className: clsx_default("remoraid-page-container", componentsProps?.container?.className),
|
|
6243
6243
|
children
|
|
6244
|
-
}
|
|
6244
|
+
});
|
|
6245
6245
|
}
|
|
6246
6246
|
|
|
6247
6247
|
// src/core/components/FrameLayout/index.tsx
|
|
@@ -6262,7 +6262,7 @@ class InvalidComponentUsageError extends Error {
|
|
|
6262
6262
|
|
|
6263
6263
|
// src/core/components/FrameLayout/Element/index.tsx
|
|
6264
6264
|
var import_lodash5 = __toESM(require_lodash());
|
|
6265
|
-
var
|
|
6265
|
+
var jsx_runtime10 = require("react/jsx-runtime");
|
|
6266
6266
|
var layoutElementContext = import_react9.createContext(null);
|
|
6267
6267
|
var useFrameLayoutElement = () => {
|
|
6268
6268
|
return import_react9.useContext(layoutElementContext);
|
|
@@ -6295,28 +6295,28 @@ function Element2({
|
|
|
6295
6295
|
if (section === "left" /* Left */ || section === "right" /* Right */) {
|
|
6296
6296
|
containerProps.h = "100%";
|
|
6297
6297
|
}
|
|
6298
|
-
const element = includePageContainer ? /* @__PURE__ */
|
|
6298
|
+
const element = includePageContainer ? /* @__PURE__ */ jsx_runtime10.jsx(PageContainer, {
|
|
6299
6299
|
p: 0,
|
|
6300
6300
|
hidden,
|
|
6301
6301
|
...componentsProps?.PageContainer,
|
|
6302
6302
|
children
|
|
6303
|
-
}
|
|
6304
|
-
return /* @__PURE__ */
|
|
6303
|
+
}) : children;
|
|
6304
|
+
return /* @__PURE__ */ jsx_runtime10.jsx(import_core4.Portal, {
|
|
6305
6305
|
target: layout.sections[section],
|
|
6306
|
-
children: /* @__PURE__ */
|
|
6306
|
+
children: /* @__PURE__ */ jsx_runtime10.jsx(layoutElementContext.Provider, {
|
|
6307
6307
|
value: { layoutType: "frame" /* Frame */, section },
|
|
6308
|
-
children: includeContainer ? /* @__PURE__ */
|
|
6308
|
+
children: includeContainer ? /* @__PURE__ */ jsx_runtime10.jsx(import_core4.Box, {
|
|
6309
6309
|
"data-hidden": hidden,
|
|
6310
6310
|
...import_lodash5.merge(containerProps, componentsProps?.container),
|
|
6311
6311
|
className: clsx_default("remoraid-frame-layout-element", containerProps?.className, componentsProps?.container?.className),
|
|
6312
6312
|
children: element
|
|
6313
|
-
}
|
|
6314
|
-
}
|
|
6315
|
-
}
|
|
6313
|
+
}) : element
|
|
6314
|
+
})
|
|
6315
|
+
});
|
|
6316
6316
|
}
|
|
6317
6317
|
|
|
6318
6318
|
// src/core/components/FrameLayout/index.tsx
|
|
6319
|
-
var
|
|
6319
|
+
var jsx_runtime11 = require("react/jsx-runtime");
|
|
6320
6320
|
var layoutContext = import_react10.createContext(null);
|
|
6321
6321
|
var useFrameLayout = () => {
|
|
6322
6322
|
return import_react10.useContext(layoutContext);
|
|
@@ -6376,7 +6376,7 @@ function FrameLayout({
|
|
|
6376
6376
|
["content" /* Content */]: n
|
|
6377
6377
|
}));
|
|
6378
6378
|
}, [setSections]);
|
|
6379
|
-
const contentSection = /* @__PURE__ */
|
|
6379
|
+
const contentSection = /* @__PURE__ */ jsx_runtime11.jsx(import_core5.Stack, {
|
|
6380
6380
|
ref: contentSectionRef,
|
|
6381
6381
|
h: "100%",
|
|
6382
6382
|
gap: gutter,
|
|
@@ -6384,16 +6384,16 @@ function FrameLayout({
|
|
|
6384
6384
|
...componentsProps?.sectionContainers?.["content" /* Content */],
|
|
6385
6385
|
className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-content-section", componentsProps?.sectionContainers?.["content" /* Content */]?.className),
|
|
6386
6386
|
children
|
|
6387
|
-
}
|
|
6387
|
+
});
|
|
6388
6388
|
const layoutContextValue = import_react10.useMemo(() => ({
|
|
6389
6389
|
type: "frame" /* Frame */,
|
|
6390
6390
|
sections: defaultSections,
|
|
6391
6391
|
...layout,
|
|
6392
6392
|
layoutId
|
|
6393
6393
|
}), [layout?.sections, defaultSections, layoutId]);
|
|
6394
|
-
return /* @__PURE__ */
|
|
6394
|
+
return /* @__PURE__ */ jsx_runtime11.jsx(layoutContext.Provider, {
|
|
6395
6395
|
value: layoutContextValue,
|
|
6396
|
-
children: /* @__PURE__ */
|
|
6396
|
+
children: /* @__PURE__ */ jsx_runtime11.jsxs(import_core5.Group, {
|
|
6397
6397
|
gap: 0,
|
|
6398
6398
|
h: "100%",
|
|
6399
6399
|
w: "100%",
|
|
@@ -6404,7 +6404,7 @@ function FrameLayout({
|
|
|
6404
6404
|
},
|
|
6405
6405
|
className: clsx_default("remoraid-frame-layout", componentsProps?.horizontalContainer?.className),
|
|
6406
6406
|
children: [
|
|
6407
|
-
/* @__PURE__ */
|
|
6407
|
+
/* @__PURE__ */ jsx_runtime11.jsx(import_core5.Group, {
|
|
6408
6408
|
ref: leftSectionRef,
|
|
6409
6409
|
h: "100%",
|
|
6410
6410
|
wrap: "nowrap",
|
|
@@ -6412,36 +6412,36 @@ function FrameLayout({
|
|
|
6412
6412
|
pr: 0,
|
|
6413
6413
|
...componentsProps?.sectionContainers?.["left" /* Left */],
|
|
6414
6414
|
className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-left-section", componentsProps?.sectionContainers?.["left" /* Left */]?.className)
|
|
6415
|
-
}
|
|
6416
|
-
/* @__PURE__ */
|
|
6415
|
+
}),
|
|
6416
|
+
/* @__PURE__ */ jsx_runtime11.jsxs(import_core5.Stack, {
|
|
6417
6417
|
h: "100%",
|
|
6418
6418
|
flex: 1,
|
|
6419
6419
|
gap: 0,
|
|
6420
6420
|
...componentsProps?.verticalContainer,
|
|
6421
6421
|
className: clsx_default("remoraid-frame-layout-vertical-container", componentsProps?.verticalContainer?.className),
|
|
6422
6422
|
children: [
|
|
6423
|
-
/* @__PURE__ */
|
|
6423
|
+
/* @__PURE__ */ jsx_runtime11.jsx(import_core5.Stack, {
|
|
6424
6424
|
ref: topSectionRef,
|
|
6425
6425
|
gap: gutter,
|
|
6426
6426
|
flex: 0,
|
|
6427
6427
|
...componentsProps?.sectionContainers?.["top" /* Top */],
|
|
6428
6428
|
className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-top-section", componentsProps?.sectionContainers?.["top" /* Top */]?.className)
|
|
6429
|
-
}
|
|
6430
|
-
includeScrollArea ? /* @__PURE__ */
|
|
6429
|
+
}),
|
|
6430
|
+
includeScrollArea ? /* @__PURE__ */ jsx_runtime11.jsx(import_core5.ScrollArea, {
|
|
6431
6431
|
flex: 1,
|
|
6432
6432
|
...componentsProps?.ScrollArea,
|
|
6433
6433
|
children: contentSection
|
|
6434
|
-
}
|
|
6435
|
-
/* @__PURE__ */
|
|
6434
|
+
}) : contentSection,
|
|
6435
|
+
/* @__PURE__ */ jsx_runtime11.jsx(import_core5.Stack, {
|
|
6436
6436
|
ref: bottomSectionRef,
|
|
6437
6437
|
gap: gutter,
|
|
6438
6438
|
flex: 0,
|
|
6439
6439
|
...componentsProps?.sectionContainers?.["bottom" /* Bottom */],
|
|
6440
6440
|
className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-bottom-section", componentsProps?.sectionContainers?.["bottom" /* Bottom */]?.className)
|
|
6441
|
-
}
|
|
6441
|
+
})
|
|
6442
6442
|
]
|
|
6443
|
-
}
|
|
6444
|
-
/* @__PURE__ */
|
|
6443
|
+
}),
|
|
6444
|
+
/* @__PURE__ */ jsx_runtime11.jsx(import_core5.Group, {
|
|
6445
6445
|
ref: rightSectionRef,
|
|
6446
6446
|
h: "100%",
|
|
6447
6447
|
gap: gutter,
|
|
@@ -6449,17 +6449,17 @@ function FrameLayout({
|
|
|
6449
6449
|
wrap: "nowrap",
|
|
6450
6450
|
...componentsProps?.sectionContainers?.["right" /* Right */],
|
|
6451
6451
|
className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-right-section", componentsProps?.sectionContainers?.["right" /* Right */]?.className)
|
|
6452
|
-
}
|
|
6452
|
+
})
|
|
6453
6453
|
]
|
|
6454
|
-
}
|
|
6455
|
-
}
|
|
6454
|
+
})
|
|
6455
|
+
});
|
|
6456
6456
|
}
|
|
6457
6457
|
var FrameLayout_default = Object.assign(FrameLayout, {
|
|
6458
6458
|
Element: Element2
|
|
6459
6459
|
});
|
|
6460
6460
|
|
|
6461
6461
|
// src/core/components/AppShell/Footer/FooterMinimal/index.tsx
|
|
6462
|
-
var
|
|
6462
|
+
var jsx_runtime12 = require("react/jsx-runtime");
|
|
6463
6463
|
function FooterMinimal({
|
|
6464
6464
|
icon: Icon2 = import_icons_react2.IconPennant,
|
|
6465
6465
|
componentsProps
|
|
@@ -6470,24 +6470,24 @@ function FooterMinimal({
|
|
|
6470
6470
|
footer: { position }
|
|
6471
6471
|
}
|
|
6472
6472
|
} = useAppShellUserExperience();
|
|
6473
|
-
const content = /* @__PURE__ */
|
|
6473
|
+
const content = /* @__PURE__ */ jsx_runtime12.jsx(PageContainer, {
|
|
6474
6474
|
...componentsProps?.container,
|
|
6475
|
-
children: /* @__PURE__ */
|
|
6476
|
-
children: /* @__PURE__ */
|
|
6475
|
+
children: /* @__PURE__ */ jsx_runtime12.jsx(import_core6.Center, {
|
|
6476
|
+
children: /* @__PURE__ */ jsx_runtime12.jsx(Icon2, {
|
|
6477
6477
|
color: "var(--mantine-color-default-border)",
|
|
6478
6478
|
...theme.componentsProps.icons.huge,
|
|
6479
6479
|
...componentsProps?.icon
|
|
6480
|
-
}
|
|
6481
|
-
}
|
|
6482
|
-
}
|
|
6480
|
+
})
|
|
6481
|
+
})
|
|
6482
|
+
});
|
|
6483
6483
|
if (position === "bottom" /* Bottom */) {
|
|
6484
|
-
return /* @__PURE__ */
|
|
6484
|
+
return /* @__PURE__ */ jsx_runtime12.jsx(FrameLayout_default.Element, {
|
|
6485
6485
|
section: position,
|
|
6486
6486
|
includeContainer: true,
|
|
6487
6487
|
...componentsProps?.layoutElement,
|
|
6488
6488
|
componentsProps: import_lodash6.merge({ container: { style: { order: -50 } } }, componentsProps?.layoutElement?.componentsProps),
|
|
6489
6489
|
children: content
|
|
6490
|
-
}
|
|
6490
|
+
});
|
|
6491
6491
|
}
|
|
6492
6492
|
if (position === "content" /* Content */) {
|
|
6493
6493
|
return content;
|
|
@@ -6496,7 +6496,7 @@ function FooterMinimal({
|
|
|
6496
6496
|
}
|
|
6497
6497
|
|
|
6498
6498
|
// src/core/components/AppShell/Footer/index.tsx
|
|
6499
|
-
var
|
|
6499
|
+
var jsx_runtime13 = require("react/jsx-runtime");
|
|
6500
6500
|
var supportedFooterPositions = {
|
|
6501
6501
|
["minimal" /* Minimal */]: [
|
|
6502
6502
|
null,
|
|
@@ -6510,9 +6510,9 @@ var defaultFooterPositions = {
|
|
|
6510
6510
|
function Footer({ componentsProps }) {
|
|
6511
6511
|
const { footerVariant } = useRemoraidApp();
|
|
6512
6512
|
if (footerVariant === "minimal" /* Minimal */) {
|
|
6513
|
-
return /* @__PURE__ */
|
|
6513
|
+
return /* @__PURE__ */ jsx_runtime13.jsx(FooterMinimal, {
|
|
6514
6514
|
...componentsProps?.FooterMinimal
|
|
6515
|
-
}
|
|
6515
|
+
});
|
|
6516
6516
|
}
|
|
6517
6517
|
return null;
|
|
6518
6518
|
}
|
|
@@ -6532,7 +6532,7 @@ var import_lodash8 = __toESM(require_lodash());
|
|
|
6532
6532
|
var import_core7 = require("@mantine/core");
|
|
6533
6533
|
var import_navigation = require("next/navigation");
|
|
6534
6534
|
var import_react11 = require("react");
|
|
6535
|
-
var
|
|
6535
|
+
var jsx_runtime14 = require("react/jsx-runtime");
|
|
6536
6536
|
function NavigationMenu({
|
|
6537
6537
|
target,
|
|
6538
6538
|
elements,
|
|
@@ -6543,13 +6543,13 @@ function NavigationMenu({
|
|
|
6543
6543
|
const mantineTheme = import_core7.useMantineTheme();
|
|
6544
6544
|
const pathname = import_navigation.usePathname();
|
|
6545
6545
|
const router = import_navigation.useRouter();
|
|
6546
|
-
const item = (element) => /* @__PURE__ */
|
|
6546
|
+
const item = (element) => /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Transition, {
|
|
6547
6547
|
mounted: element.mounted ?? true,
|
|
6548
6548
|
...componentsProps?.transition,
|
|
6549
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
6550
|
-
leftSection: element.icon ? /* @__PURE__ */
|
|
6549
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Menu.Item, {
|
|
6550
|
+
leftSection: element.icon ? /* @__PURE__ */ jsx_runtime14.jsx(element.icon, {
|
|
6551
6551
|
...theme.componentsProps.icons.small
|
|
6552
|
-
}
|
|
6552
|
+
}) : undefined,
|
|
6553
6553
|
c: element.type === "anchor" /* Anchor */ && element.href === pathname ? mantineTheme.primaryColor : undefined,
|
|
6554
6554
|
onClick: (e) => {
|
|
6555
6555
|
if (element.type === "anchor" /* Anchor */) {
|
|
@@ -6561,35 +6561,35 @@ function NavigationMenu({
|
|
|
6561
6561
|
},
|
|
6562
6562
|
style: transitionStyle,
|
|
6563
6563
|
children: element.label
|
|
6564
|
-
}
|
|
6565
|
-
}
|
|
6564
|
+
})
|
|
6565
|
+
});
|
|
6566
6566
|
const targetElement = import_react11.isValidElement(target) ? target : item(target);
|
|
6567
6567
|
if (elements === undefined || elements.length === 0) {
|
|
6568
6568
|
return targetElement;
|
|
6569
6569
|
}
|
|
6570
|
-
return /* @__PURE__ */
|
|
6570
|
+
return /* @__PURE__ */ jsx_runtime14.jsxs(import_core7.Menu, {
|
|
6571
6571
|
trigger: "click-hover",
|
|
6572
6572
|
...componentsProps?.Menu,
|
|
6573
6573
|
children: [
|
|
6574
|
-
/* @__PURE__ */
|
|
6575
|
-
children: /* @__PURE__ */
|
|
6574
|
+
/* @__PURE__ */ jsx_runtime14.jsx(import_core7.Menu.Target, {
|
|
6575
|
+
children: /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Box, {
|
|
6576
6576
|
children: targetElement
|
|
6577
|
-
}
|
|
6578
|
-
}
|
|
6579
|
-
/* @__PURE__ */
|
|
6577
|
+
})
|
|
6578
|
+
}),
|
|
6579
|
+
/* @__PURE__ */ jsx_runtime14.jsxs(import_core7.Menu.Dropdown, {
|
|
6580
6580
|
children: [
|
|
6581
|
-
label !== undefined && /* @__PURE__ */
|
|
6581
|
+
label !== undefined && /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Menu.Label, {
|
|
6582
6582
|
children: label
|
|
6583
|
-
}
|
|
6584
|
-
elements.map((element, i) => /* @__PURE__ */
|
|
6583
|
+
}),
|
|
6584
|
+
elements.map((element, i) => /* @__PURE__ */ jsx_runtime14.jsx(NavigationMenu, {
|
|
6585
6585
|
target: item(element),
|
|
6586
6586
|
elements: element.children,
|
|
6587
6587
|
componentsProps
|
|
6588
|
-
}, `navigation-menu-${i}
|
|
6588
|
+
}, `navigation-menu-${i}`))
|
|
6589
6589
|
]
|
|
6590
|
-
}
|
|
6590
|
+
})
|
|
6591
6591
|
]
|
|
6592
|
-
}
|
|
6592
|
+
});
|
|
6593
6593
|
}
|
|
6594
6594
|
|
|
6595
6595
|
// src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/index.tsx
|
|
@@ -6600,7 +6600,7 @@ var import_core8 = require("@mantine/core");
|
|
|
6600
6600
|
var import_icons_react3 = require("@tabler/icons-react");
|
|
6601
6601
|
var import_react12 = require("react");
|
|
6602
6602
|
var import_lodash7 = __toESM(require_lodash());
|
|
6603
|
-
var
|
|
6603
|
+
var jsx_runtime15 = require("react/jsx-runtime");
|
|
6604
6604
|
var defaultRemoraidButtonSize = "sm";
|
|
6605
6605
|
function RemoraidButton({
|
|
6606
6606
|
label,
|
|
@@ -6613,7 +6613,7 @@ function RemoraidButton({
|
|
|
6613
6613
|
loading,
|
|
6614
6614
|
variant = "default",
|
|
6615
6615
|
mounted = true,
|
|
6616
|
-
icon:
|
|
6616
|
+
icon: iconProp,
|
|
6617
6617
|
iconSize: iconSizeProp,
|
|
6618
6618
|
clickTransformation = "default" /* Default */,
|
|
6619
6619
|
componentsProps
|
|
@@ -6623,9 +6623,10 @@ function RemoraidButton({
|
|
|
6623
6623
|
const breakpoint = breakpointProp ?? theme.breakpoints.buttonCollapse;
|
|
6624
6624
|
const collapsed = collapsedProp ?? false;
|
|
6625
6625
|
const iconSize = iconSizeProp ?? getDefaultButtonIconSize(size);
|
|
6626
|
-
const
|
|
6626
|
+
const Icon3 = iconProp ?? import_icons_react3.IconClick;
|
|
6627
|
+
const iconElement = import_react12.isValidElement(Icon3) ? Icon3 : /* @__PURE__ */ jsx_runtime15.jsx(Icon3, {
|
|
6627
6628
|
...import_lodash7.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6628
|
-
}
|
|
6629
|
+
});
|
|
6629
6630
|
const clickTransformationClassNames = {
|
|
6630
6631
|
["default" /* Default */]: null,
|
|
6631
6632
|
["none" /* None */]: "remoraid-button-none",
|
|
@@ -6636,18 +6637,18 @@ function RemoraidButton({
|
|
|
6636
6637
|
["tiltRight" /* TiltRight */]: "remoraid-button-tilt-right"
|
|
6637
6638
|
};
|
|
6638
6639
|
const clickTransformationClass = clickTransformationClassNames[clickTransformation];
|
|
6639
|
-
return /* @__PURE__ */
|
|
6640
|
+
return /* @__PURE__ */ jsx_runtime15.jsx(import_core8.Transition, {
|
|
6640
6641
|
mounted,
|
|
6641
6642
|
transition: "fade",
|
|
6642
6643
|
duration: theme.transitionDurations.short,
|
|
6643
6644
|
timingFunction: "ease",
|
|
6644
6645
|
...componentsProps?.transition,
|
|
6645
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
6646
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime15.jsxs(jsx_runtime15.Fragment, {
|
|
6646
6647
|
children: [
|
|
6647
|
-
/* @__PURE__ */
|
|
6648
|
+
/* @__PURE__ */ jsx_runtime15.jsx(import_core8.Tooltip, {
|
|
6648
6649
|
label,
|
|
6649
6650
|
...componentsProps?.tooltip,
|
|
6650
|
-
children: /* @__PURE__ */
|
|
6651
|
+
children: /* @__PURE__ */ jsx_runtime15.jsx(import_core8.ActionIcon, {
|
|
6651
6652
|
"aria-label": label,
|
|
6652
6653
|
variant,
|
|
6653
6654
|
onClick,
|
|
@@ -6661,15 +6662,15 @@ function RemoraidButton({
|
|
|
6661
6662
|
style: import_lodash7.merge(transitionStyle, componentsProps?.button?.style, componentsProps?.ActionIcon?.style),
|
|
6662
6663
|
className: clsx_default(clickTransformationClass, componentsProps?.ActionIcon?.className, componentsProps?.button?.className),
|
|
6663
6664
|
children: iconElement
|
|
6664
|
-
}
|
|
6665
|
-
}
|
|
6666
|
-
/* @__PURE__ */
|
|
6665
|
+
})
|
|
6666
|
+
}),
|
|
6667
|
+
/* @__PURE__ */ jsx_runtime15.jsx(import_core8.Button, {
|
|
6667
6668
|
onClick,
|
|
6668
6669
|
loading,
|
|
6669
6670
|
variant,
|
|
6670
6671
|
size,
|
|
6671
6672
|
color,
|
|
6672
|
-
leftSection:
|
|
6673
|
+
leftSection: iconProp !== undefined ? iconElement : undefined,
|
|
6673
6674
|
...componentsProps?.button,
|
|
6674
6675
|
...componentsProps?.Button,
|
|
6675
6676
|
visibleFrom: !responsive ? undefined : breakpoint,
|
|
@@ -6677,14 +6678,14 @@ function RemoraidButton({
|
|
|
6677
6678
|
style: import_lodash7.merge(transitionStyle, componentsProps?.button?.style, componentsProps?.Button?.style),
|
|
6678
6679
|
className: clsx_default(clickTransformationClass, componentsProps?.Button?.className, componentsProps?.button?.className),
|
|
6679
6680
|
children: label
|
|
6680
|
-
}
|
|
6681
|
+
})
|
|
6681
6682
|
]
|
|
6682
|
-
}
|
|
6683
|
-
}
|
|
6683
|
+
})
|
|
6684
|
+
});
|
|
6684
6685
|
}
|
|
6685
6686
|
|
|
6686
6687
|
// src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/index.tsx
|
|
6687
|
-
var
|
|
6688
|
+
var jsx_runtime16 = require("react/jsx-runtime");
|
|
6688
6689
|
function NavbarMinimalContent({
|
|
6689
6690
|
orientation,
|
|
6690
6691
|
maxElements,
|
|
@@ -6718,7 +6719,7 @@ function NavbarMinimalContent({
|
|
|
6718
6719
|
const buttonClickTransformation = orientation === "horizontal" /* Horizontal */ ? "tiltRight" /* TiltRight */ : "default" /* Default */;
|
|
6719
6720
|
const logoButtonSize = componentsProps?.logoButton?.size ?? componentsProps?.button?.size ?? defaultRemoraidButtonSize;
|
|
6720
6721
|
const logoIconSize = getDefaultButtonIconSize(logoButtonSize);
|
|
6721
|
-
const logoButton = app.logo ? /* @__PURE__ */
|
|
6722
|
+
const logoButton = app.logo ? /* @__PURE__ */ jsx_runtime16.jsx(RemoraidButton, {
|
|
6722
6723
|
label: app.name,
|
|
6723
6724
|
variant: "subtle",
|
|
6724
6725
|
icon: app.logo({
|
|
@@ -6743,10 +6744,10 @@ function NavbarMinimalContent({
|
|
|
6743
6744
|
componentsProps?.button?.onClick?.(e);
|
|
6744
6745
|
componentsProps?.logoButton?.onClick?.(e);
|
|
6745
6746
|
}
|
|
6746
|
-
}
|
|
6747
|
-
const button = (element, key) => /* @__PURE__ */
|
|
6747
|
+
}) : undefined;
|
|
6748
|
+
const button = (element, key) => /* @__PURE__ */ jsx_runtime16.jsx(NavigationMenu, {
|
|
6748
6749
|
label: element.label,
|
|
6749
|
-
target: /* @__PURE__ */
|
|
6750
|
+
target: /* @__PURE__ */ jsx_runtime16.jsx(RemoraidButton, {
|
|
6750
6751
|
mounted: element.mounted,
|
|
6751
6752
|
label: element.label,
|
|
6752
6753
|
icon: element.icon,
|
|
@@ -6774,13 +6775,13 @@ function NavbarMinimalContent({
|
|
|
6774
6775
|
}
|
|
6775
6776
|
componentsProps?.button?.onClick?.(e);
|
|
6776
6777
|
}
|
|
6777
|
-
}
|
|
6778
|
+
}),
|
|
6778
6779
|
elements: element.children,
|
|
6779
6780
|
...componentsProps?.NavigationMenu,
|
|
6780
6781
|
componentsProps: import_lodash8.merge({
|
|
6781
6782
|
Menu: { position: floatingPosition }
|
|
6782
6783
|
}, componentsProps?.NavigationMenu?.componentsProps)
|
|
6783
|
-
}, key
|
|
6784
|
+
}, key);
|
|
6784
6785
|
const elements = [
|
|
6785
6786
|
...app.nav,
|
|
6786
6787
|
...getDefaultNavigationElements({ colorScheme, setColorScheme })
|
|
@@ -6789,11 +6790,11 @@ function NavbarMinimalContent({
|
|
|
6789
6790
|
const staticElements = elements.filter((element) => element.static);
|
|
6790
6791
|
const staticButtons = staticElements.sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0)).map((element, i) => button(element, `static-nav-element-${i}`));
|
|
6791
6792
|
const collapseStaticElements = staticElements.length > 1;
|
|
6792
|
-
const staticMenuButton = collapseStaticElements ? /* @__PURE__ */
|
|
6793
|
+
const staticMenuButton = collapseStaticElements ? /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Box, {
|
|
6793
6794
|
hiddenFrom: collapseStaticElementsBreakpoint,
|
|
6794
|
-
children: /* @__PURE__ */
|
|
6795
|
+
children: /* @__PURE__ */ jsx_runtime16.jsx(NavigationMenu, {
|
|
6795
6796
|
elements: staticElements,
|
|
6796
|
-
target: /* @__PURE__ */
|
|
6797
|
+
target: /* @__PURE__ */ jsx_runtime16.jsx(RemoraidButton, {
|
|
6797
6798
|
label: "Static elements",
|
|
6798
6799
|
icon: import_icons_react4.IconDots,
|
|
6799
6800
|
responsive: buttonResponsive,
|
|
@@ -6807,56 +6808,56 @@ function NavbarMinimalContent({
|
|
|
6807
6808
|
w: orientation === "vertical" /* Vertical */ ? "100%" : undefined
|
|
6808
6809
|
}
|
|
6809
6810
|
}, componentsProps?.button?.componentsProps)
|
|
6810
|
-
}
|
|
6811
|
+
}),
|
|
6811
6812
|
...componentsProps?.NavigationMenu,
|
|
6812
6813
|
componentsProps: import_lodash8.merge({
|
|
6813
6814
|
Menu: { position: floatingPosition }
|
|
6814
6815
|
}, componentsProps?.NavigationMenu?.componentsProps)
|
|
6815
|
-
}
|
|
6816
|
-
}
|
|
6817
|
-
return /* @__PURE__ */
|
|
6816
|
+
})
|
|
6817
|
+
}) : null;
|
|
6818
|
+
return /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Paper, {
|
|
6818
6819
|
bg: theme.transparentBackground,
|
|
6819
6820
|
h: "100%",
|
|
6820
6821
|
p: "md",
|
|
6821
6822
|
shadow: "md",
|
|
6822
6823
|
...componentsProps?.container,
|
|
6823
|
-
children: orientation === "vertical" /* Vertical */ ? /* @__PURE__ */
|
|
6824
|
+
children: orientation === "vertical" /* Vertical */ ? /* @__PURE__ */ jsx_runtime16.jsxs(import_core9.Stack, {
|
|
6824
6825
|
h: "100%",
|
|
6825
6826
|
children: [
|
|
6826
6827
|
logoButton,
|
|
6827
|
-
/* @__PURE__ */
|
|
6828
|
+
/* @__PURE__ */ jsx_runtime16.jsx(import_core9.ScrollArea, {
|
|
6828
6829
|
flex: 1,
|
|
6829
|
-
children: /* @__PURE__ */
|
|
6830
|
+
children: /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Stack, {
|
|
6830
6831
|
children: buttons
|
|
6831
|
-
}
|
|
6832
|
-
}
|
|
6833
|
-
/* @__PURE__ */
|
|
6832
|
+
})
|
|
6833
|
+
}),
|
|
6834
|
+
/* @__PURE__ */ jsx_runtime16.jsx(import_core9.Stack, {
|
|
6834
6835
|
visibleFrom: collapseStaticElements ? collapseStaticElementsBreakpoint : undefined,
|
|
6835
6836
|
children: staticButtons
|
|
6836
|
-
}
|
|
6837
|
+
}),
|
|
6837
6838
|
staticMenuButton
|
|
6838
6839
|
]
|
|
6839
|
-
}
|
|
6840
|
+
}) : /* @__PURE__ */ jsx_runtime16.jsxs(import_core9.Group, {
|
|
6840
6841
|
wrap: "nowrap",
|
|
6841
6842
|
children: [
|
|
6842
6843
|
logoButton,
|
|
6843
|
-
/* @__PURE__ */
|
|
6844
|
+
/* @__PURE__ */ jsx_runtime16.jsx(import_core9.ScrollArea, {
|
|
6844
6845
|
flex: 1,
|
|
6845
6846
|
style: { contain: "inline-size" },
|
|
6846
|
-
children: /* @__PURE__ */
|
|
6847
|
+
children: /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Group, {
|
|
6847
6848
|
wrap: "nowrap",
|
|
6848
6849
|
children: buttons
|
|
6849
|
-
}
|
|
6850
|
-
}
|
|
6851
|
-
/* @__PURE__ */
|
|
6850
|
+
})
|
|
6851
|
+
}),
|
|
6852
|
+
/* @__PURE__ */ jsx_runtime16.jsx(import_core9.Group, {
|
|
6852
6853
|
wrap: "nowrap",
|
|
6853
6854
|
visibleFrom: collapseStaticElements ? collapseStaticElementsBreakpoint : undefined,
|
|
6854
6855
|
children: staticButtons
|
|
6855
|
-
}
|
|
6856
|
+
}),
|
|
6856
6857
|
staticMenuButton
|
|
6857
6858
|
]
|
|
6858
|
-
}
|
|
6859
|
-
}
|
|
6859
|
+
})
|
|
6860
|
+
});
|
|
6860
6861
|
}
|
|
6861
6862
|
|
|
6862
6863
|
// src/core/components/AppShell/Navbar/NavbarMinimal/index.tsx
|
|
@@ -6871,7 +6872,7 @@ var import_core12 = require("@mantine/core");
|
|
|
6871
6872
|
var import_core10 = require("@mantine/core");
|
|
6872
6873
|
var import_icons_react5 = require("@tabler/icons-react");
|
|
6873
6874
|
var import_lodash9 = __toESM(require_lodash());
|
|
6874
|
-
var
|
|
6875
|
+
var jsx_runtime17 = require("react/jsx-runtime");
|
|
6875
6876
|
function ControlButton({
|
|
6876
6877
|
icon: Icon4 = import_icons_react5.IconClick,
|
|
6877
6878
|
mounted = true,
|
|
@@ -6884,17 +6885,17 @@ function ControlButton({
|
|
|
6884
6885
|
componentsProps
|
|
6885
6886
|
}) {
|
|
6886
6887
|
const theme = useRemoraidTheme();
|
|
6887
|
-
return /* @__PURE__ */
|
|
6888
|
+
return /* @__PURE__ */ jsx_runtime17.jsx(import_core10.Transition, {
|
|
6888
6889
|
mounted,
|
|
6889
6890
|
transition: "fade",
|
|
6890
6891
|
duration: theme.transitionDurations.short,
|
|
6891
6892
|
timingFunction: "ease",
|
|
6892
6893
|
...componentsProps?.transition,
|
|
6893
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
6894
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime17.jsx(import_core10.Tooltip, {
|
|
6894
6895
|
label: tooltip,
|
|
6895
6896
|
disabled: !Boolean(tooltip),
|
|
6896
6897
|
...componentsProps?.tooltip,
|
|
6897
|
-
children: /* @__PURE__ */
|
|
6898
|
+
children: /* @__PURE__ */ jsx_runtime17.jsx(import_core10.ActionIcon, {
|
|
6898
6899
|
"data-control-button": true,
|
|
6899
6900
|
size,
|
|
6900
6901
|
color,
|
|
@@ -6905,12 +6906,12 @@ function ControlButton({
|
|
|
6905
6906
|
order,
|
|
6906
6907
|
...import_lodash9.merge(transitionStyle, componentsProps?.button?.style)
|
|
6907
6908
|
},
|
|
6908
|
-
children: /* @__PURE__ */
|
|
6909
|
+
children: /* @__PURE__ */ jsx_runtime17.jsx(Icon4, {
|
|
6909
6910
|
...import_lodash9.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6910
|
-
}
|
|
6911
|
-
}
|
|
6912
|
-
}
|
|
6913
|
-
}
|
|
6911
|
+
})
|
|
6912
|
+
})
|
|
6913
|
+
})
|
|
6914
|
+
});
|
|
6914
6915
|
}
|
|
6915
6916
|
|
|
6916
6917
|
// src/core/components/Controls/index.tsx
|
|
@@ -6918,7 +6919,7 @@ var import_react13 = require("react");
|
|
|
6918
6919
|
var import_core11 = require("@mantine/core");
|
|
6919
6920
|
var import_icons_react6 = require("@tabler/icons-react");
|
|
6920
6921
|
var import_lodash10 = __toESM(require_lodash());
|
|
6921
|
-
var
|
|
6922
|
+
var jsx_runtime18 = require("react/jsx-runtime");
|
|
6922
6923
|
function Controls({
|
|
6923
6924
|
groupRef,
|
|
6924
6925
|
mounted = true,
|
|
@@ -6976,14 +6977,14 @@ function Controls({
|
|
|
6976
6977
|
const handlePointerUp = (e) => {
|
|
6977
6978
|
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
6978
6979
|
};
|
|
6979
|
-
return /* @__PURE__ */
|
|
6980
|
+
return /* @__PURE__ */ jsx_runtime18.jsx(import_core11.Transition, {
|
|
6980
6981
|
mounted,
|
|
6981
6982
|
keepMounted: true,
|
|
6982
6983
|
transition: "pop",
|
|
6983
6984
|
duration: theme.transitionDurations.short,
|
|
6984
6985
|
timingFunction: "ease",
|
|
6985
6986
|
...componentsProps?.transition,
|
|
6986
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
6987
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime18.jsx(import_core11.Paper, {
|
|
6987
6988
|
ref: containerRef,
|
|
6988
6989
|
pos: "absolute",
|
|
6989
6990
|
p: gutter,
|
|
@@ -6999,33 +7000,33 @@ function Controls({
|
|
|
6999
7000
|
...import_lodash10.merge(transitionStyle, componentsProps?.container?.style)
|
|
7000
7001
|
},
|
|
7001
7002
|
className: clsx_default("remoraid-controls", componentsProps?.container?.className),
|
|
7002
|
-
children: /* @__PURE__ */
|
|
7003
|
+
children: /* @__PURE__ */ jsx_runtime18.jsxs(import_core11.Group, {
|
|
7003
7004
|
gap: gutter,
|
|
7004
7005
|
ref: groupRef,
|
|
7005
7006
|
wrap: "nowrap",
|
|
7006
7007
|
...componentsProps?.group,
|
|
7007
7008
|
className: clsx_default("remoraid-controls-group", componentsProps?.group?.className),
|
|
7008
7009
|
children: [
|
|
7009
|
-
/* @__PURE__ */
|
|
7010
|
+
/* @__PURE__ */ jsx_runtime18.jsx(import_icons_react6.IconGripHorizontal, {
|
|
7010
7011
|
...import_lodash10.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
|
|
7011
|
-
}
|
|
7012
|
+
}),
|
|
7012
7013
|
children,
|
|
7013
7014
|
additionalButtons && additionalButtons.map((button, i) => {
|
|
7014
7015
|
if (isValidElementOfType(ControlButton, button)) {
|
|
7015
7016
|
return button;
|
|
7016
7017
|
}
|
|
7017
|
-
return /* @__PURE__ */
|
|
7018
|
+
return /* @__PURE__ */ jsx_runtime18.jsx(ControlButton, {
|
|
7018
7019
|
...button
|
|
7019
|
-
}, i
|
|
7020
|
+
}, i);
|
|
7020
7021
|
})
|
|
7021
7022
|
]
|
|
7022
|
-
}
|
|
7023
|
-
}
|
|
7024
|
-
}
|
|
7023
|
+
})
|
|
7024
|
+
})
|
|
7025
|
+
});
|
|
7025
7026
|
}
|
|
7026
7027
|
|
|
7027
7028
|
// src/core/components/Pinnable/index.tsx
|
|
7028
|
-
var
|
|
7029
|
+
var jsx_runtime19 = require("react/jsx-runtime");
|
|
7029
7030
|
function Pinnable({
|
|
7030
7031
|
layoutType: layoutTypeProp,
|
|
7031
7032
|
section,
|
|
@@ -7045,7 +7046,7 @@ function Pinnable({
|
|
|
7045
7046
|
if (layout && layout.type !== layoutType) {
|
|
7046
7047
|
throw new TypeError(`Prop 'layoutId' in '${Pinnable.name}' refers to a layout of type ${layout.type}, expected ${layoutType}. Leave 'layoutId' undefined, if you want to use the layout in '${AppShell_default.name}' as reference layout.`);
|
|
7047
7048
|
}
|
|
7048
|
-
const controlButton = import_react14.useMemo(() => /* @__PURE__ */
|
|
7049
|
+
const controlButton = import_react14.useMemo(() => /* @__PURE__ */ jsx_runtime19.jsx(ControlButton, {
|
|
7049
7050
|
icon: pinned ? import_icons_react7.IconPinnedOff : import_icons_react7.IconPin,
|
|
7050
7051
|
tooltip: pinned ? "Unpin" : "Pin",
|
|
7051
7052
|
color: "green",
|
|
@@ -7055,8 +7056,8 @@ function Pinnable({
|
|
|
7055
7056
|
setPinned((prev) => !prev);
|
|
7056
7057
|
componentsProps?.button?.onClick?.(e);
|
|
7057
7058
|
}
|
|
7058
|
-
}
|
|
7059
|
-
const element = /* @__PURE__ */
|
|
7059
|
+
}), [pinned, componentsProps?.button]);
|
|
7060
|
+
const element = /* @__PURE__ */ jsx_runtime19.jsxs(import_core12.Box, {
|
|
7060
7061
|
pos: "relative",
|
|
7061
7062
|
ref: containerRef,
|
|
7062
7063
|
"data-hidden": hidden,
|
|
@@ -7064,17 +7065,17 @@ function Pinnable({
|
|
|
7064
7065
|
...componentsProps?.container,
|
|
7065
7066
|
className: clsx_default("remoraid-pinnable", componentsProps?.container?.className),
|
|
7066
7067
|
children: [
|
|
7067
|
-
controlsContainer === undefined ? /* @__PURE__ */
|
|
7068
|
+
controlsContainer === undefined ? /* @__PURE__ */ jsx_runtime19.jsx(Controls, {
|
|
7068
7069
|
dragContainerRef: containerRef,
|
|
7069
7070
|
...componentsProps?.controls,
|
|
7070
7071
|
children: controlButton
|
|
7071
|
-
}
|
|
7072
|
+
}) : controlsContainer !== null && /* @__PURE__ */ jsx_runtime19.jsx(import_core12.Portal, {
|
|
7072
7073
|
target: controlsContainer,
|
|
7073
7074
|
children: controlButton
|
|
7074
|
-
}
|
|
7075
|
+
}),
|
|
7075
7076
|
children
|
|
7076
7077
|
]
|
|
7077
|
-
}
|
|
7078
|
+
});
|
|
7078
7079
|
import_react14.useEffect(() => {
|
|
7079
7080
|
onPinnedValueChange?.(pinned);
|
|
7080
7081
|
}, [pinned]);
|
|
@@ -7082,19 +7083,19 @@ function Pinnable({
|
|
|
7082
7083
|
return null;
|
|
7083
7084
|
}
|
|
7084
7085
|
if (pinned && layoutType === "frame" /* Frame */) {
|
|
7085
|
-
return /* @__PURE__ */
|
|
7086
|
+
return /* @__PURE__ */ jsx_runtime19.jsx(FrameLayout_default.Element, {
|
|
7086
7087
|
layoutId,
|
|
7087
7088
|
section,
|
|
7088
7089
|
hidden,
|
|
7089
7090
|
...componentsProps?.layoutElement,
|
|
7090
7091
|
children: element
|
|
7091
|
-
}
|
|
7092
|
+
});
|
|
7092
7093
|
}
|
|
7093
7094
|
return element;
|
|
7094
7095
|
}
|
|
7095
7096
|
|
|
7096
7097
|
// src/core/components/AppShell/Navbar/NavbarMinimal/index.tsx
|
|
7097
|
-
var
|
|
7098
|
+
var jsx_runtime20 = require("react/jsx-runtime");
|
|
7098
7099
|
function NavbarMinimal({
|
|
7099
7100
|
pinnable = true,
|
|
7100
7101
|
componentsProps
|
|
@@ -7112,7 +7113,7 @@ function NavbarMinimal({
|
|
|
7112
7113
|
setHover(false);
|
|
7113
7114
|
};
|
|
7114
7115
|
if (position === "left" /* Left */ || position === "right" /* Right */) {
|
|
7115
|
-
return /* @__PURE__ */
|
|
7116
|
+
return /* @__PURE__ */ jsx_runtime20.jsx(FrameLayout_default.Element, {
|
|
7116
7117
|
section: position,
|
|
7117
7118
|
includeContainer: true,
|
|
7118
7119
|
...componentsProps?.layoutElement,
|
|
@@ -7123,19 +7124,19 @@ function NavbarMinimal({
|
|
|
7123
7124
|
}
|
|
7124
7125
|
}
|
|
7125
7126
|
}, componentsProps?.layoutElement?.componentsProps),
|
|
7126
|
-
children: /* @__PURE__ */
|
|
7127
|
+
children: /* @__PURE__ */ jsx_runtime20.jsx(NavbarMinimalContent, {
|
|
7127
7128
|
orientation: "vertical" /* Vertical */,
|
|
7128
7129
|
...componentsProps?.content
|
|
7129
|
-
}
|
|
7130
|
-
}
|
|
7130
|
+
})
|
|
7131
|
+
});
|
|
7131
7132
|
}
|
|
7132
7133
|
if (position === "top" /* Top */ || position === "bottom" /* Bottom */) {
|
|
7133
|
-
const content = /* @__PURE__ */
|
|
7134
|
+
const content = /* @__PURE__ */ jsx_runtime20.jsx(NavbarMinimalContent, {
|
|
7134
7135
|
orientation: "horizontal" /* Horizontal */,
|
|
7135
7136
|
...componentsProps?.content
|
|
7136
|
-
}
|
|
7137
|
+
});
|
|
7137
7138
|
if (pinnable) {
|
|
7138
|
-
return /* @__PURE__ */
|
|
7139
|
+
return /* @__PURE__ */ jsx_runtime20.jsx(PageContainer, {
|
|
7139
7140
|
...componentsProps?.container,
|
|
7140
7141
|
componentsProps: {
|
|
7141
7142
|
...componentsProps?.container?.componentsProps,
|
|
@@ -7144,7 +7145,7 @@ function NavbarMinimal({
|
|
|
7144
7145
|
className: clsx_default("hide-if-empty", componentsProps?.container?.componentsProps?.container?.className)
|
|
7145
7146
|
}
|
|
7146
7147
|
},
|
|
7147
|
-
children: /* @__PURE__ */
|
|
7148
|
+
children: /* @__PURE__ */ jsx_runtime20.jsx(Pinnable, {
|
|
7148
7149
|
section: position,
|
|
7149
7150
|
initialValue: true,
|
|
7150
7151
|
...componentsProps?.Pinnable,
|
|
@@ -7181,26 +7182,26 @@ function NavbarMinimal({
|
|
|
7181
7182
|
}
|
|
7182
7183
|
}, componentsProps?.Pinnable?.componentsProps),
|
|
7183
7184
|
children: content
|
|
7184
|
-
}
|
|
7185
|
-
}
|
|
7185
|
+
})
|
|
7186
|
+
});
|
|
7186
7187
|
}
|
|
7187
7188
|
return content;
|
|
7188
7189
|
}
|
|
7189
7190
|
if (position === "content" /* Content */) {
|
|
7190
|
-
return /* @__PURE__ */
|
|
7191
|
+
return /* @__PURE__ */ jsx_runtime20.jsx(PageContainer, {
|
|
7191
7192
|
...componentsProps?.container,
|
|
7192
|
-
children: /* @__PURE__ */
|
|
7193
|
+
children: /* @__PURE__ */ jsx_runtime20.jsx(NavbarMinimalContent, {
|
|
7193
7194
|
orientation: "horizontal" /* Horizontal */,
|
|
7194
7195
|
...componentsProps?.content
|
|
7195
|
-
}
|
|
7196
|
-
}
|
|
7196
|
+
})
|
|
7197
|
+
});
|
|
7197
7198
|
}
|
|
7198
7199
|
return null;
|
|
7199
7200
|
}
|
|
7200
7201
|
|
|
7201
7202
|
// src/core/components/AppShell/Navbar/index.tsx
|
|
7202
7203
|
var import_icons_react8 = require("@tabler/icons-react");
|
|
7203
|
-
var
|
|
7204
|
+
var jsx_runtime21 = require("react/jsx-runtime");
|
|
7204
7205
|
var supportedNavbarPositions = {
|
|
7205
7206
|
["minimal" /* Minimal */]: [
|
|
7206
7207
|
null,
|
|
@@ -7251,9 +7252,9 @@ var getDefaultNavigationElements = ({
|
|
|
7251
7252
|
function Navbar({ componentsProps }) {
|
|
7252
7253
|
const { navbarVariant } = useRemoraidApp();
|
|
7253
7254
|
if (navbarVariant === "minimal" /* Minimal */) {
|
|
7254
|
-
return /* @__PURE__ */
|
|
7255
|
+
return /* @__PURE__ */ jsx_runtime21.jsx(NavbarMinimal, {
|
|
7255
7256
|
...componentsProps?.NavbarMinimal
|
|
7256
|
-
}
|
|
7257
|
+
});
|
|
7257
7258
|
}
|
|
7258
7259
|
return null;
|
|
7259
7260
|
}
|
|
@@ -7262,7 +7263,7 @@ var Navbar_default = Object.assign(Navbar, {
|
|
|
7262
7263
|
});
|
|
7263
7264
|
|
|
7264
7265
|
// src/core/components/AppShell/AppShellUserExperienceProvider/index.tsx
|
|
7265
|
-
var
|
|
7266
|
+
var jsx_runtime22 = require("react/jsx-runtime");
|
|
7266
7267
|
var defaultAppShellUserExperience = {
|
|
7267
7268
|
navbar: {
|
|
7268
7269
|
position: null,
|
|
@@ -7299,7 +7300,7 @@ function AppShellUserExperienceProvider({
|
|
|
7299
7300
|
}
|
|
7300
7301
|
return true;
|
|
7301
7302
|
};
|
|
7302
|
-
return /* @__PURE__ */
|
|
7303
|
+
return /* @__PURE__ */ jsx_runtime22.jsx(UserExperienceProviderWrapper, {
|
|
7303
7304
|
context: appShellUserExperienceContext,
|
|
7304
7305
|
isValidUserExperience,
|
|
7305
7306
|
cookieName: cookieName ?? defaultAppShellUserExperienceCookieName,
|
|
@@ -7313,11 +7314,11 @@ function AppShellUserExperienceProvider({
|
|
|
7313
7314
|
}
|
|
7314
7315
|
}, initialValue),
|
|
7315
7316
|
children
|
|
7316
|
-
}
|
|
7317
|
+
});
|
|
7317
7318
|
}
|
|
7318
7319
|
|
|
7319
7320
|
// src/core/components/AppShell/index.tsx
|
|
7320
|
-
var
|
|
7321
|
+
var jsx_runtime23 = require("react/jsx-runtime");
|
|
7321
7322
|
var remoraidAppShellLayoutId = "remoraid-app-shell";
|
|
7322
7323
|
function AppShell({
|
|
7323
7324
|
gutter,
|
|
@@ -7327,32 +7328,32 @@ function AppShell({
|
|
|
7327
7328
|
children
|
|
7328
7329
|
}) {
|
|
7329
7330
|
const theme = useRemoraidTheme();
|
|
7330
|
-
return /* @__PURE__ */
|
|
7331
|
+
return /* @__PURE__ */ jsx_runtime23.jsx(AppProvider, {
|
|
7331
7332
|
appContext: appContext2,
|
|
7332
7333
|
...componentsProps?.AppProvider,
|
|
7333
|
-
children: /* @__PURE__ */
|
|
7334
|
+
children: /* @__PURE__ */ jsx_runtime23.jsx(AppShellUserExperienceProvider, {
|
|
7334
7335
|
...componentsProps?.AppShellUserExperienceProvider,
|
|
7335
7336
|
initialValue: import_lodash13.merge(initialUserExperience, componentsProps?.AppShellUserExperienceProvider?.initialValue),
|
|
7336
|
-
children: /* @__PURE__ */
|
|
7337
|
+
children: /* @__PURE__ */ jsx_runtime23.jsx(import_core13.Box, {
|
|
7337
7338
|
h: "100vh",
|
|
7338
7339
|
...componentsProps?.container,
|
|
7339
|
-
children: /* @__PURE__ */
|
|
7340
|
+
children: /* @__PURE__ */ jsx_runtime23.jsxs(FrameLayout_default, {
|
|
7340
7341
|
layoutId: remoraidAppShellLayoutId,
|
|
7341
7342
|
gutter: gutter ?? theme.primaryGutter,
|
|
7342
7343
|
...componentsProps?.layout,
|
|
7343
7344
|
children: [
|
|
7344
|
-
/* @__PURE__ */
|
|
7345
|
+
/* @__PURE__ */ jsx_runtime23.jsx(Navbar_default, {
|
|
7345
7346
|
...componentsProps?.navbar
|
|
7346
|
-
}
|
|
7347
|
+
}),
|
|
7347
7348
|
children,
|
|
7348
|
-
/* @__PURE__ */
|
|
7349
|
+
/* @__PURE__ */ jsx_runtime23.jsx(Footer_default, {
|
|
7349
7350
|
...componentsProps?.footer
|
|
7350
|
-
}
|
|
7351
|
+
})
|
|
7351
7352
|
]
|
|
7352
|
-
}
|
|
7353
|
-
}
|
|
7354
|
-
}
|
|
7355
|
-
}
|
|
7353
|
+
})
|
|
7354
|
+
})
|
|
7355
|
+
})
|
|
7356
|
+
});
|
|
7356
7357
|
}
|
|
7357
7358
|
var AppShell_default = Object.assign(AppShell, {
|
|
7358
7359
|
Navbar: Navbar_default,
|
|
@@ -7365,7 +7366,7 @@ var import_core16 = require("@mantine/core");
|
|
|
7365
7366
|
var import_core14 = require("@mantine/core");
|
|
7366
7367
|
var import_react17 = __toESM(require("react"));
|
|
7367
7368
|
var import_navigation3 = require("next/navigation");
|
|
7368
|
-
var
|
|
7369
|
+
var jsx_runtime24 = require("react/jsx-runtime");
|
|
7369
7370
|
var pageContext = import_react17.default.createContext(null);
|
|
7370
7371
|
var usePage = () => {
|
|
7371
7372
|
return import_react17.useContext(pageContext);
|
|
@@ -7388,18 +7389,18 @@ function Page({
|
|
|
7388
7389
|
}
|
|
7389
7390
|
}
|
|
7390
7391
|
}, []);
|
|
7391
|
-
return /* @__PURE__ */
|
|
7392
|
+
return /* @__PURE__ */ jsx_runtime24.jsx(pageContext.Provider, {
|
|
7392
7393
|
value: { name: name ?? pathname, pageId, ...config },
|
|
7393
|
-
children: /* @__PURE__ */
|
|
7394
|
+
children: /* @__PURE__ */ jsx_runtime24.jsx(PageContainer, {
|
|
7394
7395
|
...componentsProps?.PageContainer,
|
|
7395
|
-
children: /* @__PURE__ */
|
|
7396
|
+
children: /* @__PURE__ */ jsx_runtime24.jsx(import_core14.Stack, {
|
|
7396
7397
|
gap: gap ?? theme.primaryGutter,
|
|
7397
7398
|
...componentsProps?.Stack,
|
|
7398
7399
|
className: clsx_default("remoraid-page", componentsProps?.Stack?.className),
|
|
7399
7400
|
children
|
|
7400
|
-
}
|
|
7401
|
-
}
|
|
7402
|
-
}
|
|
7401
|
+
})
|
|
7402
|
+
})
|
|
7403
|
+
});
|
|
7403
7404
|
}
|
|
7404
7405
|
|
|
7405
7406
|
// src/core/components/WidgetSelectionHeader/index.tsx
|
|
@@ -7408,7 +7409,7 @@ var import_react18 = require("react");
|
|
|
7408
7409
|
|
|
7409
7410
|
// src/core/components/ScrollableChipGroup/index.tsx
|
|
7410
7411
|
var import_core15 = require("@mantine/core");
|
|
7411
|
-
var
|
|
7412
|
+
var jsx_runtime25 = require("react/jsx-runtime");
|
|
7412
7413
|
function ScrollableChipGroup({
|
|
7413
7414
|
value,
|
|
7414
7415
|
ref,
|
|
@@ -7417,30 +7418,30 @@ function ScrollableChipGroup({
|
|
|
7417
7418
|
componentsProps,
|
|
7418
7419
|
children
|
|
7419
7420
|
}) {
|
|
7420
|
-
return /* @__PURE__ */
|
|
7421
|
+
return /* @__PURE__ */ jsx_runtime25.jsx(import_core15.ScrollArea, {
|
|
7421
7422
|
ref,
|
|
7422
7423
|
...componentsProps?.ScrollArea,
|
|
7423
7424
|
style: { contain: "inline-size", ...componentsProps?.ScrollArea?.style },
|
|
7424
|
-
children: /* @__PURE__ */
|
|
7425
|
+
children: /* @__PURE__ */ jsx_runtime25.jsx(import_core15.Chip.Group, {
|
|
7425
7426
|
value,
|
|
7426
7427
|
onChange,
|
|
7427
7428
|
...componentsProps?.chipGroup,
|
|
7428
7429
|
multiple: true,
|
|
7429
|
-
children: /* @__PURE__ */
|
|
7430
|
+
children: /* @__PURE__ */ jsx_runtime25.jsx(import_core15.Flex, {
|
|
7430
7431
|
justify: "flex-start",
|
|
7431
7432
|
align: "center",
|
|
7432
7433
|
gap,
|
|
7433
7434
|
h: "auto",
|
|
7434
7435
|
...componentsProps?.container,
|
|
7435
7436
|
children
|
|
7436
|
-
}
|
|
7437
|
-
}
|
|
7438
|
-
}
|
|
7437
|
+
})
|
|
7438
|
+
})
|
|
7439
|
+
});
|
|
7439
7440
|
}
|
|
7440
7441
|
|
|
7441
7442
|
// src/core/components/WidgetSelectionHeader/index.tsx
|
|
7442
7443
|
var import_lodash14 = __toESM(require_lodash());
|
|
7443
|
-
var
|
|
7444
|
+
var jsx_runtime26 = require("react/jsx-runtime");
|
|
7444
7445
|
function WidgetSelectionHeader({
|
|
7445
7446
|
title,
|
|
7446
7447
|
pinnableSection = "top" /* Top */,
|
|
@@ -7471,7 +7472,7 @@ function WidgetSelectionHeader({
|
|
|
7471
7472
|
const scrollAreaRef = import_react18.useRef(null);
|
|
7472
7473
|
const widgets = widgetsContext2.widgets[page.pageId] ?? {};
|
|
7473
7474
|
const selectedWidgets = Object.entries(widgets).reduce((t, [widgetId, widget]) => widget?.selected ? [...t, widgetId] : t, []);
|
|
7474
|
-
const element = /* @__PURE__ */
|
|
7475
|
+
const element = /* @__PURE__ */ jsx_runtime26.jsxs(import_core16.Flex, {
|
|
7475
7476
|
justify: "flex-start",
|
|
7476
7477
|
align: "center",
|
|
7477
7478
|
gap: "md",
|
|
@@ -7490,15 +7491,15 @@ function WidgetSelectionHeader({
|
|
|
7490
7491
|
},
|
|
7491
7492
|
className: clsx_default(!pinnableSection ? "remoraid-non-widget-segment" : undefined, !pinnableSection ? "remoraid-segment" : undefined, componentsProps?.container?.className),
|
|
7492
7493
|
children: [
|
|
7493
|
-
/* @__PURE__ */
|
|
7494
|
+
/* @__PURE__ */ jsx_runtime26.jsx(import_core16.Text, {
|
|
7494
7495
|
size: "md",
|
|
7495
7496
|
...componentsProps?.title,
|
|
7496
7497
|
children: title ?? page.name
|
|
7497
|
-
}
|
|
7498
|
-
/* @__PURE__ */
|
|
7498
|
+
}),
|
|
7499
|
+
/* @__PURE__ */ jsx_runtime26.jsx(import_core16.Divider, {
|
|
7499
7500
|
orientation: "vertical"
|
|
7500
|
-
}
|
|
7501
|
-
isPageRegistered(page.pageId) && /* @__PURE__ */
|
|
7501
|
+
}),
|
|
7502
|
+
isPageRegistered(page.pageId) && /* @__PURE__ */ jsx_runtime26.jsx(ScrollableChipGroup, {
|
|
7502
7503
|
value: selectedWidgets,
|
|
7503
7504
|
ref: scrollAreaRef,
|
|
7504
7505
|
...componentsProps?.ScrollableChipGroup,
|
|
@@ -7511,21 +7512,21 @@ function WidgetSelectionHeader({
|
|
|
7511
7512
|
if (!widget) {
|
|
7512
7513
|
return;
|
|
7513
7514
|
}
|
|
7514
|
-
return /* @__PURE__ */
|
|
7515
|
+
return /* @__PURE__ */ jsx_runtime26.jsxs(import_core16.Menu, {
|
|
7515
7516
|
trigger: "hover",
|
|
7516
7517
|
...componentsProps?.widgetMenu,
|
|
7517
7518
|
children: [
|
|
7518
|
-
/* @__PURE__ */
|
|
7519
|
-
children: /* @__PURE__ */
|
|
7520
|
-
children: /* @__PURE__ */
|
|
7519
|
+
/* @__PURE__ */ jsx_runtime26.jsx(import_core16.Menu.Target, {
|
|
7520
|
+
children: /* @__PURE__ */ jsx_runtime26.jsx(import_core16.Box, {
|
|
7521
|
+
children: /* @__PURE__ */ jsx_runtime26.jsx(import_core16.Chip, {
|
|
7521
7522
|
variant: selectedWidgets.includes(widgetId) ? "filled" : "outline",
|
|
7522
7523
|
color: activeWidget === widgetId ? mantineTheme.primaryColor : "gray",
|
|
7523
7524
|
value: widgetId,
|
|
7524
7525
|
size: "sm",
|
|
7525
7526
|
disabled: disabledWidgets?.includes(widgetId),
|
|
7526
|
-
icon: /* @__PURE__ */
|
|
7527
|
+
icon: /* @__PURE__ */ jsx_runtime26.jsx(import_icons_react9.IconCheck, {
|
|
7527
7528
|
...theme.componentsProps.icons.extraSmall
|
|
7528
|
-
}
|
|
7529
|
+
}),
|
|
7529
7530
|
...componentsProps?.Chip,
|
|
7530
7531
|
styles: import_lodash14.merge({
|
|
7531
7532
|
label: {
|
|
@@ -7534,41 +7535,41 @@ function WidgetSelectionHeader({
|
|
|
7534
7535
|
}, componentsProps?.Chip?.styles),
|
|
7535
7536
|
id: `remoraid-widget-selection-header-chip-${widgetId}`,
|
|
7536
7537
|
children: widget.name
|
|
7537
|
-
}
|
|
7538
|
-
}
|
|
7539
|
-
}
|
|
7540
|
-
/* @__PURE__ */
|
|
7538
|
+
})
|
|
7539
|
+
})
|
|
7540
|
+
}),
|
|
7541
|
+
/* @__PURE__ */ jsx_runtime26.jsxs(import_core16.Menu.Dropdown, {
|
|
7541
7542
|
children: [
|
|
7542
|
-
/* @__PURE__ */
|
|
7543
|
-
leftSection: /* @__PURE__ */
|
|
7543
|
+
/* @__PURE__ */ jsx_runtime26.jsx(import_core16.Menu.Item, {
|
|
7544
|
+
leftSection: /* @__PURE__ */ jsx_runtime26.jsx(import_icons_react9.IconNavigation, {
|
|
7544
7545
|
...theme.componentsProps.icons.small
|
|
7545
|
-
}
|
|
7546
|
+
}),
|
|
7546
7547
|
onClick: () => {
|
|
7547
7548
|
scrollToWidget(widgetId);
|
|
7548
7549
|
handleLeave();
|
|
7549
7550
|
},
|
|
7550
7551
|
disabled: !widget.selected,
|
|
7551
7552
|
children: "Scroll to widget"
|
|
7552
|
-
}
|
|
7553
|
-
/* @__PURE__ */
|
|
7554
|
-
leftSection: /* @__PURE__ */
|
|
7553
|
+
}),
|
|
7554
|
+
/* @__PURE__ */ jsx_runtime26.jsx(import_core16.Menu.Item, {
|
|
7555
|
+
leftSection: /* @__PURE__ */ jsx_runtime26.jsx(import_icons_react9.IconFocus, {
|
|
7555
7556
|
...theme.componentsProps.icons.small
|
|
7556
|
-
}
|
|
7557
|
+
}),
|
|
7557
7558
|
onClick: () => {
|
|
7558
7559
|
updateWidgetSelectionBulk(page.pageId, [widgetId]);
|
|
7559
7560
|
handleLeave();
|
|
7560
7561
|
},
|
|
7561
7562
|
disabled: selectedWidgets.length === 1 && selectedWidgets.includes(widgetId),
|
|
7562
7563
|
children: "Isolate widget"
|
|
7563
|
-
}
|
|
7564
|
+
})
|
|
7564
7565
|
]
|
|
7565
|
-
}
|
|
7566
|
+
})
|
|
7566
7567
|
]
|
|
7567
|
-
}, widgetId
|
|
7568
|
+
}, widgetId);
|
|
7568
7569
|
})
|
|
7569
|
-
}
|
|
7570
|
+
})
|
|
7570
7571
|
]
|
|
7571
|
-
}
|
|
7572
|
+
});
|
|
7572
7573
|
import_react18.useEffect(() => {
|
|
7573
7574
|
if (!activeWidget) {
|
|
7574
7575
|
return;
|
|
@@ -7589,7 +7590,7 @@ function WidgetSelectionHeader({
|
|
|
7589
7590
|
});
|
|
7590
7591
|
}, [activeWidget]);
|
|
7591
7592
|
if (pinnableSection) {
|
|
7592
|
-
return /* @__PURE__ */
|
|
7593
|
+
return /* @__PURE__ */ jsx_runtime26.jsx(Pinnable, {
|
|
7593
7594
|
section: pinnableSection,
|
|
7594
7595
|
initialValue: initiallyPinned,
|
|
7595
7596
|
...componentsProps?.Pinnable,
|
|
@@ -7626,7 +7627,7 @@ function WidgetSelectionHeader({
|
|
|
7626
7627
|
}
|
|
7627
7628
|
},
|
|
7628
7629
|
children: element
|
|
7629
|
-
}
|
|
7630
|
+
});
|
|
7630
7631
|
}
|
|
7631
7632
|
return element;
|
|
7632
7633
|
}
|
|
@@ -7636,7 +7637,7 @@ var import_react19 = __toESM(require("react"));
|
|
|
7636
7637
|
|
|
7637
7638
|
// src/core/components/BadgeMinimal/index.tsx
|
|
7638
7639
|
var import_core17 = require("@mantine/core");
|
|
7639
|
-
var
|
|
7640
|
+
var jsx_runtime27 = require("react/jsx-runtime");
|
|
7640
7641
|
function BadgeMinimal({
|
|
7641
7642
|
label,
|
|
7642
7643
|
tooltip,
|
|
@@ -7644,17 +7645,17 @@ function BadgeMinimal({
|
|
|
7644
7645
|
componentsProps
|
|
7645
7646
|
}) {
|
|
7646
7647
|
const theme = useRemoraidTheme();
|
|
7647
|
-
return /* @__PURE__ */
|
|
7648
|
+
return /* @__PURE__ */ jsx_runtime27.jsx(import_core17.Transition, {
|
|
7648
7649
|
mounted,
|
|
7649
7650
|
transition: "fade",
|
|
7650
7651
|
duration: theme.transitionDurations.short,
|
|
7651
7652
|
timingFunction: "ease",
|
|
7652
7653
|
...componentsProps?.transition,
|
|
7653
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
7654
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime27.jsx(import_core17.Tooltip, {
|
|
7654
7655
|
label: tooltip,
|
|
7655
7656
|
disabled: !Boolean(tooltip),
|
|
7656
7657
|
...componentsProps?.tooltip,
|
|
7657
|
-
children: /* @__PURE__ */
|
|
7658
|
+
children: /* @__PURE__ */ jsx_runtime27.jsx(import_core17.Badge, {
|
|
7658
7659
|
variant: "default",
|
|
7659
7660
|
...componentsProps?.badge,
|
|
7660
7661
|
style: {
|
|
@@ -7663,14 +7664,14 @@ function BadgeMinimal({
|
|
|
7663
7664
|
...componentsProps?.badge?.style
|
|
7664
7665
|
},
|
|
7665
7666
|
children: label
|
|
7666
|
-
}
|
|
7667
|
-
}
|
|
7668
|
-
}
|
|
7667
|
+
})
|
|
7668
|
+
})
|
|
7669
|
+
});
|
|
7669
7670
|
}
|
|
7670
7671
|
|
|
7671
7672
|
// src/core/components/BadgeGroup/index.tsx
|
|
7672
7673
|
var import_lodash15 = __toESM(require_lodash());
|
|
7673
|
-
var
|
|
7674
|
+
var jsx_runtime28 = require("react/jsx-runtime");
|
|
7674
7675
|
var react = require("react");
|
|
7675
7676
|
function BadgeGroup({
|
|
7676
7677
|
badges: badgesProp,
|
|
@@ -7691,27 +7692,27 @@ function BadgeGroup({
|
|
|
7691
7692
|
key: i
|
|
7692
7693
|
});
|
|
7693
7694
|
});
|
|
7694
|
-
return /* @__PURE__ */
|
|
7695
|
+
return /* @__PURE__ */ jsx_runtime28.jsxs(jsx_runtime28.Fragment, {
|
|
7695
7696
|
children: [
|
|
7696
|
-
/* @__PURE__ */
|
|
7697
|
+
/* @__PURE__ */ jsx_runtime28.jsx(import_core18.Group, {
|
|
7697
7698
|
gap,
|
|
7698
7699
|
wrap: "nowrap",
|
|
7699
7700
|
visibleFrom: numVisibleBadges > 1 ? breakpoint : undefined,
|
|
7700
7701
|
...componentsProps?.container,
|
|
7701
7702
|
className: clsx_default("hide-if-empty", componentsProps?.container?.className),
|
|
7702
7703
|
children: badgesElement
|
|
7703
|
-
}
|
|
7704
|
-
/* @__PURE__ */
|
|
7704
|
+
}),
|
|
7705
|
+
/* @__PURE__ */ jsx_runtime28.jsx(import_core18.Transition, {
|
|
7705
7706
|
mounted: numVisibleBadges > 1,
|
|
7706
7707
|
transition: "fade",
|
|
7707
7708
|
duration: theme.transitionDurations.short,
|
|
7708
7709
|
timingFunction: "ease",
|
|
7709
7710
|
...componentsProps?.cumulativeBadgeTransition,
|
|
7710
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
7711
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime28.jsxs(import_core18.HoverCard, {
|
|
7711
7712
|
...componentsProps?.HoverCard,
|
|
7712
7713
|
children: [
|
|
7713
|
-
/* @__PURE__ */
|
|
7714
|
-
children: /* @__PURE__ */
|
|
7714
|
+
/* @__PURE__ */ jsx_runtime28.jsx(import_core18.HoverCard.Target, {
|
|
7715
|
+
children: /* @__PURE__ */ jsx_runtime28.jsxs(import_core18.Badge, {
|
|
7715
7716
|
hiddenFrom: breakpoint,
|
|
7716
7717
|
variant: "dot",
|
|
7717
7718
|
...componentsProps?.cumulativeBadge,
|
|
@@ -7723,26 +7724,26 @@ function BadgeGroup({
|
|
|
7723
7724
|
numVisibleBadges,
|
|
7724
7725
|
" badges"
|
|
7725
7726
|
]
|
|
7726
|
-
}
|
|
7727
|
-
}
|
|
7728
|
-
/* @__PURE__ */
|
|
7727
|
+
})
|
|
7728
|
+
}),
|
|
7729
|
+
/* @__PURE__ */ jsx_runtime28.jsx(import_core18.HoverCard.Dropdown, {
|
|
7729
7730
|
p: gap,
|
|
7730
|
-
children: /* @__PURE__ */
|
|
7731
|
+
children: /* @__PURE__ */ jsx_runtime28.jsx(import_core18.Stack, {
|
|
7731
7732
|
gap,
|
|
7732
7733
|
...componentsProps?.hoverContainer,
|
|
7733
7734
|
children: badgesElement
|
|
7734
|
-
}
|
|
7735
|
-
}
|
|
7735
|
+
})
|
|
7736
|
+
})
|
|
7736
7737
|
]
|
|
7737
|
-
}
|
|
7738
|
-
}
|
|
7738
|
+
})
|
|
7739
|
+
})
|
|
7739
7740
|
]
|
|
7740
|
-
}
|
|
7741
|
+
});
|
|
7741
7742
|
}
|
|
7742
7743
|
// src/core/components/AlertMinimal/index.tsx
|
|
7743
7744
|
var import_core19 = require("@mantine/core");
|
|
7744
7745
|
var import_lodash16 = __toESM(require_lodash());
|
|
7745
|
-
var
|
|
7746
|
+
var jsx_runtime29 = require("react/jsx-runtime");
|
|
7746
7747
|
function AlertMinimal({
|
|
7747
7748
|
category,
|
|
7748
7749
|
children,
|
|
@@ -7759,35 +7760,35 @@ function AlertMinimal({
|
|
|
7759
7760
|
iconSize = "small" /* Small */,
|
|
7760
7761
|
componentsProps
|
|
7761
7762
|
} = import_lodash16.merge({}, theme.componentsProps.alerts[category], props);
|
|
7762
|
-
return /* @__PURE__ */
|
|
7763
|
+
return /* @__PURE__ */ jsx_runtime29.jsx(import_core19.Transition, {
|
|
7763
7764
|
mounted,
|
|
7764
7765
|
transition: "fade",
|
|
7765
7766
|
duration: theme.transitionDurations.short,
|
|
7766
7767
|
timingFunction: "ease",
|
|
7767
7768
|
...componentsProps?.transition,
|
|
7768
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
7769
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime29.jsxs(import_core19.Alert, {
|
|
7769
7770
|
title,
|
|
7770
7771
|
color,
|
|
7771
7772
|
variant: "light",
|
|
7772
7773
|
onClose,
|
|
7773
7774
|
withCloseButton: onClose !== undefined,
|
|
7774
|
-
icon: Icon4 ? /* @__PURE__ */
|
|
7775
|
+
icon: Icon4 ? /* @__PURE__ */ jsx_runtime29.jsx(Icon4, {
|
|
7775
7776
|
...import_lodash16.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
7776
|
-
}
|
|
7777
|
+
}) : undefined,
|
|
7777
7778
|
style: import_lodash16.merge(transitionStyle, componentsProps?.alert?.style),
|
|
7778
7779
|
children: [
|
|
7779
7780
|
text,
|
|
7780
7781
|
children
|
|
7781
7782
|
]
|
|
7782
|
-
}
|
|
7783
|
-
}
|
|
7783
|
+
})
|
|
7784
|
+
});
|
|
7784
7785
|
}
|
|
7785
7786
|
// src/core/components/Widget/WidgetWrapper/index.tsx
|
|
7786
7787
|
var import_core20 = require("@mantine/core");
|
|
7787
7788
|
var import_react20 = require("react");
|
|
7788
7789
|
var import_icons_react10 = require("@tabler/icons-react");
|
|
7789
7790
|
var import_lodash17 = __toESM(require_lodash());
|
|
7790
|
-
var
|
|
7791
|
+
var jsx_runtime30 = require("react/jsx-runtime");
|
|
7791
7792
|
function WidgetWrapper({
|
|
7792
7793
|
config,
|
|
7793
7794
|
mt = 0,
|
|
@@ -7826,7 +7827,7 @@ function WidgetWrapper({
|
|
|
7826
7827
|
updateActiveWidget(null);
|
|
7827
7828
|
};
|
|
7828
7829
|
const mounted = Boolean(widget?.selected);
|
|
7829
|
-
let element = /* @__PURE__ */
|
|
7830
|
+
let element = /* @__PURE__ */ jsx_runtime30.jsx(import_core20.Transition, {
|
|
7830
7831
|
mounted,
|
|
7831
7832
|
transition: "fade-left",
|
|
7832
7833
|
duration: theme.transitionDurations.medium,
|
|
@@ -7838,7 +7839,7 @@ function WidgetWrapper({
|
|
|
7838
7839
|
}
|
|
7839
7840
|
componentsProps?.transition?.onExited?.();
|
|
7840
7841
|
},
|
|
7841
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
7842
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime30.jsxs(import_core20.Paper, {
|
|
7842
7843
|
ref: containerRef,
|
|
7843
7844
|
p: "md",
|
|
7844
7845
|
shadow: "md",
|
|
@@ -7861,12 +7862,12 @@ function WidgetWrapper({
|
|
|
7861
7862
|
className: clsx_default("remoraid-segment", componentsProps?.container?.className),
|
|
7862
7863
|
id: config.widgetId,
|
|
7863
7864
|
children: [
|
|
7864
|
-
/* @__PURE__ */
|
|
7865
|
+
/* @__PURE__ */ jsx_runtime30.jsx(Controls, {
|
|
7865
7866
|
dragContainerRef: containerRef,
|
|
7866
7867
|
groupRef: controlsContainerRef,
|
|
7867
7868
|
mounted: activeWidget === config.widgetId,
|
|
7868
7869
|
...componentsProps?.controls,
|
|
7869
|
-
children: /* @__PURE__ */
|
|
7870
|
+
children: /* @__PURE__ */ jsx_runtime30.jsx(ControlButton, {
|
|
7870
7871
|
mounted: withCloseButton,
|
|
7871
7872
|
icon: import_icons_react10.IconX,
|
|
7872
7873
|
tooltip: "Hide widget",
|
|
@@ -7888,14 +7889,14 @@ function WidgetWrapper({
|
|
|
7888
7889
|
handleLeave(e);
|
|
7889
7890
|
componentsProps?.closeButton?.onClick?.(e);
|
|
7890
7891
|
}
|
|
7891
|
-
}
|
|
7892
|
-
}
|
|
7892
|
+
})
|
|
7893
|
+
}),
|
|
7893
7894
|
children
|
|
7894
7895
|
]
|
|
7895
|
-
}
|
|
7896
|
-
}
|
|
7896
|
+
})
|
|
7897
|
+
});
|
|
7897
7898
|
if (pinnableSection !== undefined) {
|
|
7898
|
-
element = /* @__PURE__ */
|
|
7899
|
+
element = /* @__PURE__ */ jsx_runtime30.jsx(Pinnable, {
|
|
7899
7900
|
section: pinnableSection,
|
|
7900
7901
|
controlsContainer,
|
|
7901
7902
|
hidden: Boolean(widget?.hidden),
|
|
@@ -7916,7 +7917,7 @@ function WidgetWrapper({
|
|
|
7916
7917
|
}
|
|
7917
7918
|
},
|
|
7918
7919
|
children: element
|
|
7919
|
-
}
|
|
7920
|
+
});
|
|
7920
7921
|
}
|
|
7921
7922
|
import_react20.useEffect(() => {
|
|
7922
7923
|
if (!page) {
|
|
@@ -7932,7 +7933,7 @@ function WidgetWrapper({
|
|
|
7932
7933
|
var import_core21 = require("@mantine/core");
|
|
7933
7934
|
var import_react21 = require("react");
|
|
7934
7935
|
var import_lodash18 = __toESM(require_lodash());
|
|
7935
|
-
var
|
|
7936
|
+
var jsx_runtime31 = require("react/jsx-runtime");
|
|
7936
7937
|
var react2 = require("react");
|
|
7937
7938
|
function Widget({
|
|
7938
7939
|
id,
|
|
@@ -7955,7 +7956,7 @@ function Widget({
|
|
|
7955
7956
|
const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
|
|
7956
7957
|
const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
|
|
7957
7958
|
const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
|
|
7958
|
-
return /* @__PURE__ */
|
|
7959
|
+
return /* @__PURE__ */ jsx_runtime31.jsx(WidgetWrapper, {
|
|
7959
7960
|
config: {
|
|
7960
7961
|
widgetId: id,
|
|
7961
7962
|
...config,
|
|
@@ -7967,49 +7968,49 @@ function Widget({
|
|
|
7967
7968
|
mt,
|
|
7968
7969
|
...componentsProps?.wrapper,
|
|
7969
7970
|
pinnableSection: pinnableSection ?? componentsProps?.wrapper?.pinnableSection,
|
|
7970
|
-
children: /* @__PURE__ */
|
|
7971
|
+
children: /* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Stack, {
|
|
7971
7972
|
gap: "md",
|
|
7972
7973
|
mih: 0,
|
|
7973
7974
|
...componentsProps?.contentContainer,
|
|
7974
7975
|
children: [
|
|
7975
|
-
/* @__PURE__ */
|
|
7976
|
+
/* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Group, {
|
|
7976
7977
|
justify: "space-between",
|
|
7977
7978
|
wrap: "nowrap",
|
|
7978
7979
|
children: [
|
|
7979
|
-
/* @__PURE__ */
|
|
7980
|
+
/* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Stack, {
|
|
7980
7981
|
gap: 4,
|
|
7981
7982
|
children: [
|
|
7982
|
-
/* @__PURE__ */
|
|
7983
|
+
/* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Group, {
|
|
7983
7984
|
gap: badgesGap,
|
|
7984
7985
|
wrap: "nowrap",
|
|
7985
7986
|
children: [
|
|
7986
|
-
/* @__PURE__ */
|
|
7987
|
+
/* @__PURE__ */ jsx_runtime31.jsx(import_core21.Title, {
|
|
7987
7988
|
order: 1,
|
|
7988
7989
|
size: "h2",
|
|
7989
7990
|
lineClamp: 1,
|
|
7990
7991
|
...componentsProps?.title,
|
|
7991
7992
|
children: title ?? id
|
|
7992
|
-
}
|
|
7993
|
-
badges !== undefined && /* @__PURE__ */
|
|
7993
|
+
}),
|
|
7994
|
+
badges !== undefined && /* @__PURE__ */ jsx_runtime31.jsx(BadgeGroup, {
|
|
7994
7995
|
badges,
|
|
7995
7996
|
gap: badgesGap,
|
|
7996
7997
|
...componentsProps?.badgeGroup
|
|
7997
|
-
}
|
|
7998
|
+
})
|
|
7998
7999
|
]
|
|
7999
|
-
}
|
|
8000
|
-
/* @__PURE__ */
|
|
8000
|
+
}),
|
|
8001
|
+
/* @__PURE__ */ jsx_runtime31.jsx(import_core21.Transition, {
|
|
8001
8002
|
mounted: Boolean(description),
|
|
8002
|
-
children: (transitionStyle) => /* @__PURE__ */
|
|
8003
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Text, {
|
|
8003
8004
|
size: "sm",
|
|
8004
8005
|
c: "dimmed",
|
|
8005
8006
|
...componentsProps?.description,
|
|
8006
8007
|
style: import_lodash18.merge(transitionStyle, componentsProps?.description?.style),
|
|
8007
8008
|
children: description
|
|
8008
|
-
}
|
|
8009
|
-
}
|
|
8009
|
+
})
|
|
8010
|
+
})
|
|
8010
8011
|
]
|
|
8011
|
-
}
|
|
8012
|
-
/* @__PURE__ */
|
|
8012
|
+
}),
|
|
8013
|
+
/* @__PURE__ */ jsx_runtime31.jsx(import_core21.Group, {
|
|
8013
8014
|
gap: buttonsGap,
|
|
8014
8015
|
wrap: "nowrap",
|
|
8015
8016
|
children: buttons !== undefined && buttons.map((button, i) => {
|
|
@@ -8021,15 +8022,15 @@ function Widget({
|
|
|
8021
8022
|
key: i
|
|
8022
8023
|
});
|
|
8023
8024
|
})
|
|
8024
|
-
}
|
|
8025
|
+
})
|
|
8025
8026
|
]
|
|
8026
|
-
}
|
|
8027
|
-
/* @__PURE__ */
|
|
8028
|
-
children: /* @__PURE__ */
|
|
8027
|
+
}),
|
|
8028
|
+
/* @__PURE__ */ jsx_runtime31.jsx(import_core21.Box, {
|
|
8029
|
+
children: /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Divider, {
|
|
8029
8030
|
...componentsProps?.divider
|
|
8030
|
-
}
|
|
8031
|
-
}
|
|
8032
|
-
/* @__PURE__ */
|
|
8031
|
+
})
|
|
8032
|
+
}),
|
|
8033
|
+
/* @__PURE__ */ jsx_runtime31.jsx(import_core21.Stack, {
|
|
8033
8034
|
align: "stretch",
|
|
8034
8035
|
gap: alertsGap,
|
|
8035
8036
|
...componentsProps?.alertsContainer,
|
|
@@ -8043,45 +8044,45 @@ function Widget({
|
|
|
8043
8044
|
key: i
|
|
8044
8045
|
});
|
|
8045
8046
|
})
|
|
8046
|
-
}
|
|
8047
|
-
(loading || import_react21.Children.toArray(children).length > 0) && /* @__PURE__ */
|
|
8047
|
+
}),
|
|
8048
|
+
(loading || import_react21.Children.toArray(children).length > 0) && /* @__PURE__ */ jsx_runtime31.jsx(import_core21.ScrollArea.Autosize, {
|
|
8048
8049
|
flex: 1,
|
|
8049
8050
|
...componentsProps?.childrenContainer,
|
|
8050
8051
|
className: clsx_default("remoraid-widget-children-container", componentsProps?.childrenContainer?.className),
|
|
8051
|
-
children: loading ? /* @__PURE__ */
|
|
8052
|
-
children: /* @__PURE__ */
|
|
8052
|
+
children: loading ? /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Center, {
|
|
8053
|
+
children: /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Loader, {
|
|
8053
8054
|
...componentsProps?.loader
|
|
8054
|
-
}
|
|
8055
|
-
}
|
|
8056
|
-
}
|
|
8055
|
+
})
|
|
8056
|
+
}) : children
|
|
8057
|
+
})
|
|
8057
8058
|
]
|
|
8058
|
-
}
|
|
8059
|
-
}
|
|
8059
|
+
})
|
|
8060
|
+
});
|
|
8060
8061
|
}
|
|
8061
8062
|
// src/core/components/NotFoundPage/index.tsx
|
|
8062
8063
|
var import_navigation4 = require("next/navigation");
|
|
8063
|
-
var
|
|
8064
|
+
var jsx_runtime32 = require("react/jsx-runtime");
|
|
8064
8065
|
function NotFoundPage({
|
|
8065
8066
|
children,
|
|
8066
8067
|
message,
|
|
8067
8068
|
componentsProps
|
|
8068
8069
|
}) {
|
|
8069
8070
|
const pathname = import_navigation4.usePathname();
|
|
8070
|
-
return /* @__PURE__ */
|
|
8071
|
+
return /* @__PURE__ */ jsx_runtime32.jsxs(Page, {
|
|
8071
8072
|
name: "Not Found",
|
|
8072
8073
|
...componentsProps?.page,
|
|
8073
8074
|
children: [
|
|
8074
|
-
/* @__PURE__ */
|
|
8075
|
+
/* @__PURE__ */ jsx_runtime32.jsx(AlertMinimal, {
|
|
8075
8076
|
category: "negative" /* Negative */,
|
|
8076
8077
|
title: "404 - Page Not Found",
|
|
8077
8078
|
children: message ?? `Could not find page ${pathname}.`
|
|
8078
|
-
}
|
|
8079
|
+
}),
|
|
8079
8080
|
children
|
|
8080
8081
|
]
|
|
8081
|
-
}
|
|
8082
|
+
});
|
|
8082
8083
|
}
|
|
8083
8084
|
// src/core/components/EnvironmentShell/index.tsx
|
|
8084
|
-
var
|
|
8085
|
+
var jsx_runtime33 = require("react/jsx-runtime");
|
|
8085
8086
|
var EnvironmentShellVariant;
|
|
8086
8087
|
((EnvironmentShellVariant2) => {
|
|
8087
8088
|
EnvironmentShellVariant2["Alert"] = "alert";
|
|
@@ -8098,22 +8099,22 @@ function EnvironmentShell({
|
|
|
8098
8099
|
}) {
|
|
8099
8100
|
const undefinedKeys = Object.keys(environment).filter((key) => environment[key] === undefined);
|
|
8100
8101
|
const defaultMessage = `Components could not be rendered because the following environment variable${undefinedKeys.length > 1 ? "s" : ""} are not specified: ${undefinedKeys.join(", ")}.`;
|
|
8101
|
-
const alertElement = /* @__PURE__ */
|
|
8102
|
+
const alertElement = /* @__PURE__ */ jsx_runtime33.jsx(AlertMinimal, {
|
|
8102
8103
|
mounted: undefinedKeys.length > 0,
|
|
8103
8104
|
title: `Please specify environment variable${undefinedKeys.length > 1 ? "s" : ""}`,
|
|
8104
8105
|
category: "negative" /* Negative */,
|
|
8105
8106
|
text: message ?? defaultMessage,
|
|
8106
8107
|
...componentsProps?.alert
|
|
8107
|
-
}
|
|
8108
|
+
});
|
|
8108
8109
|
if (undefinedKeys.length === 0) {
|
|
8109
8110
|
return children;
|
|
8110
8111
|
}
|
|
8111
8112
|
if (variant === "alert" /* Alert */) {
|
|
8112
8113
|
if (includeAlertContainer) {
|
|
8113
|
-
return /* @__PURE__ */
|
|
8114
|
+
return /* @__PURE__ */ jsx_runtime33.jsx(PageContainer, {
|
|
8114
8115
|
...componentsProps?.alertContainer,
|
|
8115
8116
|
children: alertElement
|
|
8116
|
-
}
|
|
8117
|
+
});
|
|
8117
8118
|
}
|
|
8118
8119
|
return alertElement;
|
|
8119
8120
|
}
|
|
@@ -8129,14 +8130,14 @@ var import_icons_react12 = require("@tabler/icons-react");
|
|
|
8129
8130
|
// src/core/components/SettingsWidget/SaveButton/index.tsx
|
|
8130
8131
|
var import_icons_react11 = require("@tabler/icons-react");
|
|
8131
8132
|
var import_core22 = require("@mantine/core");
|
|
8132
|
-
var
|
|
8133
|
+
var jsx_runtime34 = require("react/jsx-runtime");
|
|
8133
8134
|
function SaveButton({
|
|
8134
8135
|
onSaveChanges,
|
|
8135
8136
|
insideContainer,
|
|
8136
8137
|
componentsProps
|
|
8137
8138
|
}) {
|
|
8138
8139
|
const settingsWidgetOptions = useSettingsWidgetContext();
|
|
8139
|
-
const button = /* @__PURE__ */
|
|
8140
|
+
const button = /* @__PURE__ */ jsx_runtime34.jsx(RemoraidButton, {
|
|
8140
8141
|
label: "Save Changes",
|
|
8141
8142
|
icon: import_icons_react11.IconDeviceFloppy,
|
|
8142
8143
|
onClick: onSaveChanges,
|
|
@@ -8149,21 +8150,21 @@ function SaveButton({
|
|
|
8149
8150
|
...componentsProps?.button?.componentsProps?.button
|
|
8150
8151
|
}
|
|
8151
8152
|
}
|
|
8152
|
-
}
|
|
8153
|
+
});
|
|
8153
8154
|
if (insideContainer !== false) {
|
|
8154
|
-
return /* @__PURE__ */
|
|
8155
|
+
return /* @__PURE__ */ jsx_runtime34.jsx(import_core22.Group, {
|
|
8155
8156
|
w: "100%",
|
|
8156
8157
|
justify: "flex-end",
|
|
8157
8158
|
mt: "md",
|
|
8158
8159
|
...componentsProps?.container,
|
|
8159
8160
|
children: button
|
|
8160
|
-
}
|
|
8161
|
+
});
|
|
8161
8162
|
}
|
|
8162
8163
|
return button;
|
|
8163
8164
|
}
|
|
8164
8165
|
|
|
8165
8166
|
// src/core/components/SettingsWidget/index.tsx
|
|
8166
|
-
var
|
|
8167
|
+
var jsx_runtime35 = require("react/jsx-runtime");
|
|
8167
8168
|
var defaultSettingsWidgetContext = {};
|
|
8168
8169
|
var settingsWidgetContext = import_react22.createContext(defaultSettingsWidgetContext);
|
|
8169
8170
|
var useSettingsWidgetContext = () => {
|
|
@@ -8176,9 +8177,9 @@ function SettingsWidget({
|
|
|
8176
8177
|
custom,
|
|
8177
8178
|
widgetProps
|
|
8178
8179
|
}) {
|
|
8179
|
-
return /* @__PURE__ */
|
|
8180
|
+
return /* @__PURE__ */ jsx_runtime35.jsx(settingsWidgetContext.Provider, {
|
|
8180
8181
|
value: { custom, unsavedChanges },
|
|
8181
|
-
children: /* @__PURE__ */
|
|
8182
|
+
children: /* @__PURE__ */ jsx_runtime35.jsx(Widget, {
|
|
8182
8183
|
title: "Settings",
|
|
8183
8184
|
id: "settings",
|
|
8184
8185
|
...widgetProps,
|
|
@@ -8206,8 +8207,8 @@ function SettingsWidget({
|
|
|
8206
8207
|
...widgetProps?.badges ?? []
|
|
8207
8208
|
],
|
|
8208
8209
|
children
|
|
8209
|
-
}
|
|
8210
|
-
}
|
|
8210
|
+
})
|
|
8211
|
+
});
|
|
8211
8212
|
}
|
|
8212
8213
|
var SettingsWidget_default = Object.assign(SettingsWidget, {
|
|
8213
8214
|
SaveButton
|
|
@@ -8218,31 +8219,31 @@ var import_core24 = require("@mantine/core");
|
|
|
8218
8219
|
|
|
8219
8220
|
// src/core/components/SettingsWidget/SettingsTable/Row/index.tsx
|
|
8220
8221
|
var import_core23 = require("@mantine/core");
|
|
8221
|
-
var
|
|
8222
|
+
var jsx_runtime36 = require("react/jsx-runtime");
|
|
8222
8223
|
function Row({
|
|
8223
8224
|
children,
|
|
8224
8225
|
label
|
|
8225
8226
|
}) {
|
|
8226
8227
|
const options = useSettingsTableOptions();
|
|
8227
|
-
return /* @__PURE__ */
|
|
8228
|
+
return /* @__PURE__ */ jsx_runtime36.jsxs(import_core23.Table.Tr, {
|
|
8228
8229
|
children: [
|
|
8229
|
-
/* @__PURE__ */
|
|
8230
|
+
/* @__PURE__ */ jsx_runtime36.jsx(import_core23.Table.Th, {
|
|
8230
8231
|
w: options.leftColumnWidth,
|
|
8231
|
-
children: /* @__PURE__ */
|
|
8232
|
+
children: /* @__PURE__ */ jsx_runtime36.jsx(import_core23.Text, {
|
|
8232
8233
|
size: "sm",
|
|
8233
8234
|
children: label
|
|
8234
|
-
}
|
|
8235
|
-
}
|
|
8236
|
-
/* @__PURE__ */
|
|
8235
|
+
})
|
|
8236
|
+
}),
|
|
8237
|
+
/* @__PURE__ */ jsx_runtime36.jsx(import_core23.Table.Td, {
|
|
8237
8238
|
py: "xs",
|
|
8238
8239
|
children
|
|
8239
|
-
}
|
|
8240
|
+
})
|
|
8240
8241
|
]
|
|
8241
|
-
}
|
|
8242
|
+
});
|
|
8242
8243
|
}
|
|
8243
8244
|
|
|
8244
8245
|
// src/core/components/SettingsWidget/SettingsTable/index.tsx
|
|
8245
|
-
var
|
|
8246
|
+
var jsx_runtime37 = require("react/jsx-runtime");
|
|
8246
8247
|
var defaultSettingsTableOptions = {
|
|
8247
8248
|
leftColumnWidth: "38.2%"
|
|
8248
8249
|
};
|
|
@@ -8256,20 +8257,20 @@ function SettingsTable({
|
|
|
8256
8257
|
}) {
|
|
8257
8258
|
const children = asChildrenOfType(Row, childrenProp, "Check children passed to 'SettingsTable' component.");
|
|
8258
8259
|
const theme = useRemoraidTheme();
|
|
8259
|
-
return /* @__PURE__ */
|
|
8260
|
+
return /* @__PURE__ */ jsx_runtime37.jsx(settingsTableOptionsContext.Provider, {
|
|
8260
8261
|
value: {
|
|
8261
8262
|
leftColumnWidth: leftColumnWidth ?? defaultSettingsTableOptions.leftColumnWidth
|
|
8262
8263
|
},
|
|
8263
|
-
children: /* @__PURE__ */
|
|
8264
|
+
children: /* @__PURE__ */ jsx_runtime37.jsx(import_core24.Table, {
|
|
8264
8265
|
bg: theme.transparentBackground,
|
|
8265
8266
|
withTableBorder: true,
|
|
8266
8267
|
variant: "vertical",
|
|
8267
8268
|
layout: "fixed",
|
|
8268
|
-
children: /* @__PURE__ */
|
|
8269
|
+
children: /* @__PURE__ */ jsx_runtime37.jsx(import_core24.Table.Tbody, {
|
|
8269
8270
|
children
|
|
8270
|
-
}
|
|
8271
|
-
}
|
|
8272
|
-
}
|
|
8271
|
+
})
|
|
8272
|
+
})
|
|
8273
|
+
});
|
|
8273
8274
|
}
|
|
8274
8275
|
var SettingsTable_default = Object.assign(SettingsTable, {
|
|
8275
8276
|
Row
|
|
@@ -8277,7 +8278,7 @@ var SettingsTable_default = Object.assign(SettingsTable, {
|
|
|
8277
8278
|
// src/core/components/NavbarSettingsWidget/index.tsx
|
|
8278
8279
|
var import_lodash19 = __toESM(require_lodash());
|
|
8279
8280
|
var import_core25 = require("@mantine/core");
|
|
8280
|
-
var
|
|
8281
|
+
var jsx_runtime38 = require("react/jsx-runtime");
|
|
8281
8282
|
var defaultNavbarSettingsWidgetId = "navbar-settings";
|
|
8282
8283
|
function NavbarSettingsWidget({
|
|
8283
8284
|
additionalRows: additionalRowsProp,
|
|
@@ -8299,7 +8300,7 @@ function NavbarSettingsWidget({
|
|
|
8299
8300
|
["right" /* Right */]: "Right",
|
|
8300
8301
|
["content" /* Content */]: "Content section"
|
|
8301
8302
|
};
|
|
8302
|
-
return /* @__PURE__ */
|
|
8303
|
+
return /* @__PURE__ */ jsx_runtime38.jsx(SettingsWidget_default, {
|
|
8303
8304
|
widgetProps: {
|
|
8304
8305
|
id: defaultNavbarSettingsWidgetId,
|
|
8305
8306
|
title: "Navbar Settings",
|
|
@@ -8312,12 +8313,12 @@ function NavbarSettingsWidget({
|
|
|
8312
8313
|
}));
|
|
8313
8314
|
},
|
|
8314
8315
|
custom: !import_lodash19.isEqual(userExperience.navbar, initialUserExperience.navbar),
|
|
8315
|
-
children: /* @__PURE__ */
|
|
8316
|
+
children: /* @__PURE__ */ jsx_runtime38.jsxs(SettingsTable_default, {
|
|
8316
8317
|
...componentsProps?.table,
|
|
8317
8318
|
children: [
|
|
8318
|
-
/* @__PURE__ */
|
|
8319
|
+
/* @__PURE__ */ jsx_runtime38.jsx(SettingsTable_default.Row, {
|
|
8319
8320
|
label: "Select navbar position",
|
|
8320
|
-
children: /* @__PURE__ */
|
|
8321
|
+
children: /* @__PURE__ */ jsx_runtime38.jsx(import_core25.Select, {
|
|
8321
8322
|
value: userExperience.navbar.position ?? "hidden",
|
|
8322
8323
|
data: app.navbarVariant === null ? [] : supportedNavbarPositions[app.navbarVariant].map((position) => ({
|
|
8323
8324
|
value: position ?? "hidden",
|
|
@@ -8335,11 +8336,11 @@ function NavbarSettingsWidget({
|
|
|
8335
8336
|
}
|
|
8336
8337
|
}));
|
|
8337
8338
|
}
|
|
8338
|
-
}
|
|
8339
|
-
}, "select-navbar-position"
|
|
8340
|
-
/* @__PURE__ */
|
|
8339
|
+
})
|
|
8340
|
+
}, "select-navbar-position"),
|
|
8341
|
+
/* @__PURE__ */ jsx_runtime38.jsx(SettingsTable_default.Row, {
|
|
8341
8342
|
label: "Select navbar mode",
|
|
8342
|
-
children: /* @__PURE__ */
|
|
8343
|
+
children: /* @__PURE__ */ jsx_runtime38.jsx(import_core25.Select, {
|
|
8343
8344
|
value: userExperience.navbar.mode,
|
|
8344
8345
|
data: Object.values(NavbarMode).map((mode) => ({
|
|
8345
8346
|
value: mode,
|
|
@@ -8354,24 +8355,24 @@ function NavbarSettingsWidget({
|
|
|
8354
8355
|
navbar: { ...prev.navbar, mode: newValue }
|
|
8355
8356
|
}));
|
|
8356
8357
|
}
|
|
8357
|
-
}
|
|
8358
|
-
}, "select-navbar-mode"
|
|
8358
|
+
})
|
|
8359
|
+
}, "select-navbar-mode"),
|
|
8359
8360
|
additionalRows && additionalRows.map((row, i) => {
|
|
8360
8361
|
if (isValidElementOfType(SettingsTable_default.Row, row)) {
|
|
8361
8362
|
return row;
|
|
8362
8363
|
}
|
|
8363
|
-
return /* @__PURE__ */
|
|
8364
|
+
return /* @__PURE__ */ jsx_runtime38.jsx(SettingsTable_default.Row, {
|
|
8364
8365
|
...row
|
|
8365
|
-
}, i
|
|
8366
|
+
}, i);
|
|
8366
8367
|
})
|
|
8367
8368
|
]
|
|
8368
|
-
}
|
|
8369
|
-
}
|
|
8369
|
+
})
|
|
8370
|
+
});
|
|
8370
8371
|
}
|
|
8371
8372
|
// src/core/components/FooterSettingsWidget/index.tsx
|
|
8372
8373
|
var import_lodash20 = __toESM(require_lodash());
|
|
8373
8374
|
var import_core26 = require("@mantine/core");
|
|
8374
|
-
var
|
|
8375
|
+
var jsx_runtime39 = require("react/jsx-runtime");
|
|
8375
8376
|
var defaultFooterSettingsWidgetId = "footer-settings";
|
|
8376
8377
|
function FooterSettingsWidget({
|
|
8377
8378
|
additionalRows: additionalRowsProp,
|
|
@@ -8388,7 +8389,7 @@ function FooterSettingsWidget({
|
|
|
8388
8389
|
["right" /* Right */]: "Right",
|
|
8389
8390
|
["content" /* Content */]: "Content section"
|
|
8390
8391
|
};
|
|
8391
|
-
return /* @__PURE__ */
|
|
8392
|
+
return /* @__PURE__ */ jsx_runtime39.jsx(SettingsWidget_default, {
|
|
8392
8393
|
widgetProps: {
|
|
8393
8394
|
id: defaultFooterSettingsWidgetId,
|
|
8394
8395
|
title: "Footer Settings",
|
|
@@ -8401,12 +8402,12 @@ function FooterSettingsWidget({
|
|
|
8401
8402
|
}));
|
|
8402
8403
|
},
|
|
8403
8404
|
custom: !import_lodash20.isEqual(userExperience.footer, initialUserExperience.footer),
|
|
8404
|
-
children: /* @__PURE__ */
|
|
8405
|
+
children: /* @__PURE__ */ jsx_runtime39.jsxs(SettingsTable_default, {
|
|
8405
8406
|
...componentsProps?.table,
|
|
8406
8407
|
children: [
|
|
8407
|
-
/* @__PURE__ */
|
|
8408
|
+
/* @__PURE__ */ jsx_runtime39.jsx(SettingsTable_default.Row, {
|
|
8408
8409
|
label: "Select footer position",
|
|
8409
|
-
children: /* @__PURE__ */
|
|
8410
|
+
children: /* @__PURE__ */ jsx_runtime39.jsx(import_core26.Select, {
|
|
8410
8411
|
value: userExperience.footer.position ?? "hidden",
|
|
8411
8412
|
data: app.footerVariant === null ? [] : supportedFooterPositions[app.footerVariant].map((position) => ({
|
|
8412
8413
|
value: position ?? "hidden",
|
|
@@ -8424,23 +8425,23 @@ function FooterSettingsWidget({
|
|
|
8424
8425
|
}
|
|
8425
8426
|
}));
|
|
8426
8427
|
}
|
|
8427
|
-
}
|
|
8428
|
-
}, "select-footer-position"
|
|
8428
|
+
})
|
|
8429
|
+
}, "select-footer-position"),
|
|
8429
8430
|
additionalRows && additionalRows.map((row, i) => {
|
|
8430
8431
|
if (isValidElementOfType(SettingsTable_default.Row, row)) {
|
|
8431
8432
|
return row;
|
|
8432
8433
|
}
|
|
8433
|
-
return /* @__PURE__ */
|
|
8434
|
+
return /* @__PURE__ */ jsx_runtime39.jsx(SettingsTable_default.Row, {
|
|
8434
8435
|
...row
|
|
8435
|
-
}, i
|
|
8436
|
+
}, i);
|
|
8436
8437
|
})
|
|
8437
8438
|
]
|
|
8438
|
-
}
|
|
8439
|
-
}
|
|
8439
|
+
})
|
|
8440
|
+
});
|
|
8440
8441
|
}
|
|
8441
8442
|
// src/core/components/ContextClusterProvider/index.tsx
|
|
8442
8443
|
var import_react24 = __toESM(require("react"));
|
|
8443
|
-
var
|
|
8444
|
+
var jsx_runtime40 = require("react/jsx-runtime");
|
|
8444
8445
|
var createContextCluster = (generalDefaultValue, staticIds) => {
|
|
8445
8446
|
const isStaticId = (id) => {
|
|
8446
8447
|
if (staticIds?.find((staticId) => staticId === id)) {
|
|
@@ -8475,15 +8476,15 @@ function ContextClusterProvider({
|
|
|
8475
8476
|
values = {},
|
|
8476
8477
|
children
|
|
8477
8478
|
}) {
|
|
8478
|
-
return Object.entries(cluster.contexts).reduceRight((t, [id, context]) => context ? /* @__PURE__ */
|
|
8479
|
+
return Object.entries(cluster.contexts).reduceRight((t, [id, context]) => context ? /* @__PURE__ */ jsx_runtime40.jsx(context.Provider, {
|
|
8479
8480
|
value: values[id] ?? cluster.defaultValues[id] ?? cluster.generalDefaultValue,
|
|
8480
8481
|
children: t
|
|
8481
|
-
}
|
|
8482
|
+
}) : t, children);
|
|
8482
8483
|
}
|
|
8483
8484
|
// src/core/components/InputWrapperScrollArea/index.tsx
|
|
8484
8485
|
var import_core27 = require("@mantine/core");
|
|
8485
8486
|
var import_react25 = require("react");
|
|
8486
|
-
var
|
|
8487
|
+
var jsx_runtime41 = require("react/jsx-runtime");
|
|
8487
8488
|
function InputWrapperScrollArea({
|
|
8488
8489
|
children,
|
|
8489
8490
|
label,
|
|
@@ -8495,7 +8496,7 @@ function InputWrapperScrollArea({
|
|
|
8495
8496
|
}) {
|
|
8496
8497
|
const theme = useRemoraidTheme();
|
|
8497
8498
|
const [isHovering, setIsHovering] = import_react25.useState(false);
|
|
8498
|
-
return /* @__PURE__ */
|
|
8499
|
+
return /* @__PURE__ */ jsx_runtime41.jsx(import_core27.Input.Wrapper, {
|
|
8499
8500
|
label,
|
|
8500
8501
|
error,
|
|
8501
8502
|
onMouseEnter: () => setIsHovering(true),
|
|
@@ -8503,7 +8504,7 @@ function InputWrapperScrollArea({
|
|
|
8503
8504
|
description,
|
|
8504
8505
|
withAsterisk: required,
|
|
8505
8506
|
...componentsProps?.container,
|
|
8506
|
-
children: /* @__PURE__ */
|
|
8507
|
+
children: /* @__PURE__ */ jsx_runtime41.jsx(import_core27.Paper, {
|
|
8507
8508
|
shadow: "none",
|
|
8508
8509
|
p: 0,
|
|
8509
8510
|
mt: Boolean(description) ? 4 : 0,
|
|
@@ -8514,16 +8515,16 @@ function InputWrapperScrollArea({
|
|
|
8514
8515
|
transition: "border-color .1s",
|
|
8515
8516
|
borderColor: error ? "var(--mantine-color-error)" : isHovering ? "var(--mantine-primary-color-filled)" : undefined
|
|
8516
8517
|
},
|
|
8517
|
-
children: /* @__PURE__ */
|
|
8518
|
+
children: /* @__PURE__ */ jsx_runtime41.jsx(import_core27.ScrollArea, {
|
|
8518
8519
|
mah,
|
|
8519
8520
|
px: "md",
|
|
8520
8521
|
flex: 1,
|
|
8521
8522
|
...componentsProps?.ScrollArea,
|
|
8522
|
-
children: /* @__PURE__ */
|
|
8523
|
+
children: /* @__PURE__ */ jsx_runtime41.jsx(import_core27.Box, {
|
|
8523
8524
|
...componentsProps?.childrenContainer,
|
|
8524
8525
|
children
|
|
8525
|
-
}
|
|
8526
|
-
}
|
|
8527
|
-
}
|
|
8528
|
-
}
|
|
8526
|
+
})
|
|
8527
|
+
})
|
|
8528
|
+
})
|
|
8529
|
+
});
|
|
8529
8530
|
}
|