@solostylist/ui-kit 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-Dw3PEYF5.js → palettes-CJLuEy1m.js} +163 -163
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +184 -2
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/s-checkbox.js +18 -19
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +80 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
- package/dist/s-dialog-message/s-dialog-message.js +31 -32
- package/dist/s-empty/s-empty.js +13 -14
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/s-file-icon.js +87 -88
- package/dist/s-flex-box/s-flex-box.js +11 -12
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +9 -10
- package/dist/s-icon-button/s-icon-button.js +15 -16
- package/dist/s-image-comparison/s-image-comparison.js +29 -31
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +266 -2
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-label/s-label.js +26 -27
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +150 -2
- package/dist/s-lazy-image/s-lazy-image.js +17 -18
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +5 -2
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-nav-item/s-nav-item.js +16 -16
- package/dist/s-nav-items/index.js +2 -2
- package/dist/s-nav-items/s-nav-items.js +167 -2
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +85 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-quantity-input/index.js +1 -1
- package/dist/s-quantity-input/s-quantity-input.js +246 -2
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
- package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/s-select-list.js +47 -50
- package/dist/s-skeleton/s-skeleton.js +16 -17
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +48 -2
- package/dist/s-tabs/s-tabs.js +48 -50
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
- package/dist/s-text-editor/s-text-editor.js +25 -26
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +60 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.js +22 -22
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +18 -19
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/field-label-styles.js +19 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +14 -13
- package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +1 -0
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.js +3 -2
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.js +14 -13
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +1 -1
- package/dist/Add-COc9VdNg.js +0 -6
- package/dist/ArrowUpward-D88i2k4q.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DgIFcM44.js +0 -534
- package/dist/ButtonBase-DxKtpFYs.js +0 -747
- package/dist/Checkbox-BoZu9z2l.js +0 -152
- package/dist/ChevronRight-BxsM4W78.js +0 -6
- package/dist/Close-o4HFfK0I.js +0 -6
- package/dist/Collapse-zgIFP5Sj.js +0 -266
- package/dist/ContentCopy-5unyTYXy.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-CAry6lVf.js +0 -450
- package/dist/Download-DtvoRwpl.js +0 -6
- package/dist/ExpandMore-Ba5bg6s-.js +0 -6
- package/dist/Favorite-B_GsElm0.js +0 -6
- package/dist/FormControl-BxmM9UP6.js +0 -221
- package/dist/FormControlLabel-DzgppcC_.js +0 -173
- package/dist/Grow-zRRuwUl-.js +0 -121
- package/dist/InfoOutlined-VC7X46pc.js +0 -6
- package/dist/List-CnGIAXAS.js +0 -103
- package/dist/ListContext-B1HQt3OD.js +0 -6
- package/dist/Menu-C4Zabc9U.js +0 -504
- package/dist/MenuItem-rXJfQzDC.js +0 -223
- package/dist/MenuList-DDV8J-yd.js +0 -407
- package/dist/Modal-jAiibALV.js +0 -707
- package/dist/Paper-ixxCeml9.js +0 -115
- package/dist/Popper-CVYyMS3c.js +0 -1350
- package/dist/Portal-AnyvFRC4.js +0 -53
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-UMc4dV4G.js +0 -158
- package/dist/SwitchBase-D7zqrstO.js +0 -198
- package/dist/Tooltip-DbCd6rgF.js +0 -447
- package/dist/Typography-yXjc7kVP.js +0 -168
- package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
- package/dist/appendOwnerState-CELpvdMz.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-B_4y84Ba.js +0 -43
- package/dist/avatar-BHuZu3DN.js +0 -10
- package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
- package/dist/capitalize-CccCFNpQ.js +0 -5
- package/dist/checkbox-BKMZEVU5.js +0 -88
- package/dist/checkboxClasses-CEsqS4sc.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-DGZSe4Nt.js +0 -16
- package/dist/colorManipulator-DmUjcif3.js +0 -129
- package/dist/contains-WOhYaq1E.js +0 -16
- package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
- package/dist/createSvgIcon-B0SZlJF1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/field-label-styles-BOyhp6gw.js +0 -50
- package/dist/formLabelClasses-B0Fa-86T.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/iconButtonClasses-CkciZuIe.js +0 -27
- package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
- package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
- package/dist/integerPropType-Disnft4a.js +0 -27
- package/dist/isEventHandler-8dPdzK9U.js +0 -7
- package/dist/isFocusVisible-Y7157FQS.js +0 -35
- package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
- package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
- package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
- package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
- package/dist/outlinedInputClasses-DECY98u0.js +0 -17
- package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-B8nlrdFc.js +0 -487
- package/dist/s-carousel-Dnjke4JQ.js +0 -1353
- package/dist/s-chat-input-DCS0mJE4.js +0 -419
- package/dist/s-chat-message-9oollJJq.js +0 -315
- package/dist/s-chips-WqGdqHW9.js +0 -176
- package/dist/s-code-block-DzGoGg5e.js +0 -658
- package/dist/s-comment-message-C6kfgRjv.js +0 -191
- package/dist/s-data-table-B1TGVupB.js +0 -805
- package/dist/s-date-picker-BpX4HmBp.js +0 -656
- package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
- package/dist/s-dialog-BLiyjLkx.js +0 -123
- package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
- package/dist/s-image-viewer-DNIEYdtL.js +0 -269
- package/dist/s-language-switcher-D-1nywT3.js +0 -251
- package/dist/s-link-CAMTGfd9.js +0 -234
- package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
- package/dist/s-nav-items-BUp7DddG.js +0 -327
- package/dist/s-no-ssr-D8tPdDfh.js +0 -25
- package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
- package/dist/s-quantity-input-mYCixlJc.js +0 -246
- package/dist/s-review-DSXXtWlL.js +0 -272
- package/dist/s-select-dwY2DYa9.js +0 -204
- package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
- package/dist/s-switch-B8bZAzLh.js +0 -307
- package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
- package/dist/s-text-field-BM4qk0mf.js +0 -51
- package/dist/s-theme-switch-BLMz1_m2.js +0 -60
- package/dist/s-tip-ty41ePQm.js +0 -62
- package/dist/selectClasses-DoUlWfzV.js +0 -22
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-C8D4AsMj.js +0 -20
- package/dist/switchClasses-eiq1bkQN.js +0 -23
- package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
- package/dist/toggle-button-Cxi5CfXC.js +0 -104
- package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
- package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
- package/dist/typographyClasses-BLM3NmYd.js +0 -31
- package/dist/useControlled-BeB0W_Ui.js +0 -5
- package/dist/useControlled-C4QJnpiR.js +0 -29
- package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEventCallback-CVqMfiG_.js +0 -14
- package/dist/useForkRef-CKneCEtr.js +0 -29
- package/dist/useFormControl-iWLrn7Ek.js +0 -18
- package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
- package/dist/useSlot-iIu8ek6E.js +0 -83
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-BI9yq95N.js +0 -19
- package/dist/useThemeProps-Cr28OQu3.js +0 -13
- package/dist/utils-oJyTAkZY.js +0 -214
- package/dist/warning-CNkSZkq6.js +0 -98
- package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
- /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,2 +1,148 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { actionHoverMedia as e, getFocusVisibleStyle as t } from "../theme/components/action-styles.js";
|
|
2
|
+
import { getImageInputFiles as n } from "./utils.js";
|
|
3
|
+
import { SIconButton as r } from "../s-icon-button/s-icon-button.js";
|
|
4
|
+
import i, { useEffect as a } from "react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { Box as c, ButtonBase as l } from "@mui/material";
|
|
7
|
+
import u from "@mui/icons-material/AddPhotoAlternate";
|
|
8
|
+
import d from "@mui/icons-material/Close";
|
|
9
|
+
//#region lib/s-tool-bar/tool-bar-image-input.tsx
|
|
10
|
+
var f = i.memo(({ input: f, value: p, onChange: m, disabled: h }) => {
|
|
11
|
+
let g = i.useRef(null), [_, v] = i.useState([]), y = f.multiple ?? !1, b = f.maxImages ?? 5;
|
|
12
|
+
a(() => {
|
|
13
|
+
let e = [];
|
|
14
|
+
return v(((t) => {
|
|
15
|
+
if (!t) return [];
|
|
16
|
+
let n = Array.isArray(t) ? t : [t], r = [], i = /* @__PURE__ */ new Map();
|
|
17
|
+
return n.forEach((t) => {
|
|
18
|
+
if (t instanceof File) {
|
|
19
|
+
let n = URL.createObjectURL(t);
|
|
20
|
+
e.push(n);
|
|
21
|
+
let a = `file:${t.name}:${t.size}:${t.lastModified}`, o = i.get(a) ?? 0;
|
|
22
|
+
i.set(a, o + 1), r.push({
|
|
23
|
+
key: o > 0 ? `${a}:${o}` : a,
|
|
24
|
+
src: n
|
|
25
|
+
});
|
|
26
|
+
} else if (typeof t == "string") {
|
|
27
|
+
let e = `url:${t}`, n = i.get(e) ?? 0;
|
|
28
|
+
i.set(e, n + 1), r.push({
|
|
29
|
+
key: n > 0 ? `${e}:${n}` : e,
|
|
30
|
+
src: t
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}), r;
|
|
34
|
+
})(p)), () => {
|
|
35
|
+
e.forEach((e) => URL.revokeObjectURL(e));
|
|
36
|
+
};
|
|
37
|
+
}, [p]);
|
|
38
|
+
let x = (e) => {
|
|
39
|
+
let t = e.target.files;
|
|
40
|
+
if (!(!t || t.length === 0)) {
|
|
41
|
+
if (y) {
|
|
42
|
+
let r = n(p), i = Array.from(t).slice(0, b - r.length);
|
|
43
|
+
m(e, [...r, ...i], i[0]);
|
|
44
|
+
} else m(e, t[0], t[0]);
|
|
45
|
+
e.target.value = "";
|
|
46
|
+
}
|
|
47
|
+
}, S = (e, t) => {
|
|
48
|
+
if (e.stopPropagation(), y && Array.isArray(p)) {
|
|
49
|
+
let n = p.filter((e, n) => n !== t);
|
|
50
|
+
m(e, n.length > 0 ? n : null);
|
|
51
|
+
} else m(e, null);
|
|
52
|
+
}, C = () => {
|
|
53
|
+
h || y && _.length >= b || g.current?.click();
|
|
54
|
+
}, w = y && _.length < b;
|
|
55
|
+
return /* @__PURE__ */ s(c, {
|
|
56
|
+
sx: {
|
|
57
|
+
display: "flex",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
gap: .75
|
|
60
|
+
},
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ o("input", {
|
|
63
|
+
type: "file",
|
|
64
|
+
accept: "image/*",
|
|
65
|
+
...f.slotProps?.image ?? {},
|
|
66
|
+
ref: g,
|
|
67
|
+
multiple: y,
|
|
68
|
+
onChange: x,
|
|
69
|
+
disabled: h,
|
|
70
|
+
style: { display: "none" }
|
|
71
|
+
}),
|
|
72
|
+
_.map((t, n) => /* @__PURE__ */ s(c, {
|
|
73
|
+
sx: {
|
|
74
|
+
width: 50,
|
|
75
|
+
height: 50,
|
|
76
|
+
border: 1,
|
|
77
|
+
borderColor: h ? "action.disabled" : "divider",
|
|
78
|
+
borderRadius: 1,
|
|
79
|
+
display: "flex",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
justifyContent: "center",
|
|
82
|
+
cursor: h ? "not-allowed" : "default",
|
|
83
|
+
position: "relative",
|
|
84
|
+
overflow: "hidden",
|
|
85
|
+
"& .SToolBar-removeImageOverlay": { opacity: 1 },
|
|
86
|
+
"&:focus-within .SToolBar-removeImageOverlay": { opacity: 1 },
|
|
87
|
+
[e]: {
|
|
88
|
+
"& .SToolBar-removeImageOverlay": { opacity: 0 },
|
|
89
|
+
"&:hover .SToolBar-removeImageOverlay, &:focus-within .SToolBar-removeImageOverlay": { opacity: 1 }
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
children: [/* @__PURE__ */ o(c, {
|
|
93
|
+
component: "img",
|
|
94
|
+
src: t.src,
|
|
95
|
+
alt: `Preview ${n + 1}`,
|
|
96
|
+
sx: {
|
|
97
|
+
width: "100%",
|
|
98
|
+
height: "100%",
|
|
99
|
+
objectFit: "cover"
|
|
100
|
+
}
|
|
101
|
+
}), !h && /* @__PURE__ */ o(c, {
|
|
102
|
+
className: "SToolBar-removeImageOverlay",
|
|
103
|
+
sx: (e) => ({
|
|
104
|
+
position: "absolute",
|
|
105
|
+
inset: 0,
|
|
106
|
+
display: "flex",
|
|
107
|
+
alignItems: "center",
|
|
108
|
+
justifyContent: "center",
|
|
109
|
+
pointerEvents: "none",
|
|
110
|
+
transition: e.transitions.create("opacity", { duration: e.transitions.duration.shorter }),
|
|
111
|
+
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
112
|
+
}),
|
|
113
|
+
children: /* @__PURE__ */ o(r, {
|
|
114
|
+
"aria-label": `Remove image ${n + 1}`,
|
|
115
|
+
onClick: (e) => S(e, n),
|
|
116
|
+
size: "small",
|
|
117
|
+
sx: { pointerEvents: "auto" },
|
|
118
|
+
variant: "overlay",
|
|
119
|
+
children: /* @__PURE__ */ o(d, { fontSize: "small" })
|
|
120
|
+
})
|
|
121
|
+
})]
|
|
122
|
+
}, t.key)),
|
|
123
|
+
(_.length === 0 || w) && /* @__PURE__ */ o(l, {
|
|
124
|
+
"aria-label": "Add image",
|
|
125
|
+
disabled: h,
|
|
126
|
+
onClick: C,
|
|
127
|
+
sx: (e) => ({
|
|
128
|
+
width: 50,
|
|
129
|
+
height: 50,
|
|
130
|
+
border: 1,
|
|
131
|
+
borderColor: h ? "action.disabled" : "divider",
|
|
132
|
+
borderRadius: 1,
|
|
133
|
+
color: h ? "action.disabled" : "action.active",
|
|
134
|
+
display: "flex",
|
|
135
|
+
alignItems: "center",
|
|
136
|
+
justifyContent: "center",
|
|
137
|
+
transition: e.transitions.create(["background-color", "border-color"], { duration: e.transitions.duration.shorter }),
|
|
138
|
+
"@media (hover: hover) and (pointer: fine)": { "&:hover": { bgcolor: "action.hover" } },
|
|
139
|
+
"&.Mui-focusVisible": t(e),
|
|
140
|
+
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
141
|
+
}),
|
|
142
|
+
children: /* @__PURE__ */ o(u, { sx: { fontSize: 20 } })
|
|
143
|
+
})
|
|
144
|
+
]
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
//#endregion
|
|
148
|
+
export { f as ImageInput };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import i from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { SSelect as t } from "../s-select/s-select.js";
|
|
3
|
+
import { ImageInput as n } from "./tool-bar-image-input.js";
|
|
4
|
+
import r from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Box as o, Slider as s, TextField as c, Typography as l, outlinedInputClasses as u } from "@mui/material";
|
|
7
|
+
import { mergeSlotProps as d } from "@mui/material/utils";
|
|
8
8
|
//#region lib/s-tool-bar/tool-bar-inputs.tsx
|
|
9
|
-
var f =
|
|
10
|
-
let { slotProps:
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
value:
|
|
13
|
-
onChange: (e) =>
|
|
14
|
-
onFocus:
|
|
15
|
-
onBlur:
|
|
9
|
+
var f = r.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: a, disabled: o }) => {
|
|
10
|
+
let { slotProps: s, ...l } = e.slotProps?.textarea ?? {};
|
|
11
|
+
return /* @__PURE__ */ i(c, {
|
|
12
|
+
value: t ?? "",
|
|
13
|
+
onChange: (e) => n(e, e.target.value),
|
|
14
|
+
onFocus: r,
|
|
15
|
+
onBlur: a,
|
|
16
16
|
placeholder: e.placeholder ?? e.label,
|
|
17
|
-
disabled:
|
|
17
|
+
disabled: o,
|
|
18
18
|
multiline: !0,
|
|
19
19
|
minRows: e.minRows ?? 2,
|
|
20
20
|
maxRows: e.maxRows ?? 5,
|
|
21
21
|
fullWidth: !0,
|
|
22
22
|
variant: "outlined",
|
|
23
|
-
...
|
|
23
|
+
...l,
|
|
24
24
|
slotProps: {
|
|
25
|
-
...
|
|
26
|
-
htmlInput:
|
|
27
|
-
input:
|
|
25
|
+
...s,
|
|
26
|
+
htmlInput: d(s?.htmlInput, { "aria-label": e.label }),
|
|
27
|
+
input: d(s?.input, { sx: {
|
|
28
28
|
backgroundColor: "transparent",
|
|
29
29
|
border: "none",
|
|
30
30
|
padding: 0,
|
|
31
|
-
[`&.${
|
|
31
|
+
[`&.${u.focused}`]: { outline: "none" },
|
|
32
32
|
"& fieldset": { border: "none" },
|
|
33
33
|
"&:hover fieldset": { border: "none" },
|
|
34
34
|
"&.Mui-focused fieldset": { border: "none" }
|
|
35
35
|
} })
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
}), p =
|
|
38
|
+
}), p = r.memo((e) => /* @__PURE__ */ i(l, {
|
|
39
39
|
variant: "subtitle2",
|
|
40
40
|
sx: {
|
|
41
41
|
whiteSpace: "nowrap",
|
|
@@ -44,25 +44,25 @@ var f = i.memo(({ input: e, value: n, onChange: r, onFocus: i, onBlur: o, disabl
|
|
|
44
44
|
width: "100% !important"
|
|
45
45
|
},
|
|
46
46
|
children: e.label
|
|
47
|
-
})), m =
|
|
48
|
-
let { slotProps:
|
|
49
|
-
return /* @__PURE__ */ o
|
|
47
|
+
})), m = r.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: s, disabled: l }) => {
|
|
48
|
+
let { slotProps: u, ...f } = e.slotProps?.number ?? {};
|
|
49
|
+
return /* @__PURE__ */ a(o, {
|
|
50
50
|
sx: {
|
|
51
51
|
width: 80,
|
|
52
52
|
display: "flex",
|
|
53
53
|
flexDirection: "column"
|
|
54
54
|
},
|
|
55
|
-
children: [/* @__PURE__ */
|
|
55
|
+
children: [/* @__PURE__ */ i(p, { label: e.label }), /* @__PURE__ */ i(c, {
|
|
56
56
|
type: "number",
|
|
57
|
-
value: typeof
|
|
58
|
-
onChange: (e) =>
|
|
59
|
-
onFocus:
|
|
60
|
-
onBlur:
|
|
61
|
-
disabled:
|
|
57
|
+
value: typeof t == "number" ? t : "",
|
|
58
|
+
onChange: (e) => n(e, Number(e.target.value)),
|
|
59
|
+
onFocus: r,
|
|
60
|
+
onBlur: s,
|
|
61
|
+
disabled: l,
|
|
62
62
|
...f,
|
|
63
63
|
slotProps: {
|
|
64
|
-
...
|
|
65
|
-
htmlInput:
|
|
64
|
+
...u,
|
|
65
|
+
htmlInput: d(u?.htmlInput, {
|
|
66
66
|
"aria-label": e.label,
|
|
67
67
|
min: e.min,
|
|
68
68
|
max: e.max,
|
|
@@ -71,18 +71,18 @@ var f = i.memo(({ input: e, value: n, onChange: r, onFocus: i, onBlur: o, disabl
|
|
|
71
71
|
}
|
|
72
72
|
})]
|
|
73
73
|
});
|
|
74
|
-
}), h =
|
|
74
|
+
}), h = r.memo(({ input: e, value: n, onChange: r, onFocus: s, onBlur: c, disabled: l }) => {
|
|
75
75
|
let { inputProps: u, ...d } = e.slotProps?.select ?? {};
|
|
76
|
-
return /* @__PURE__ */ o
|
|
76
|
+
return /* @__PURE__ */ a(o, {
|
|
77
77
|
sx: {
|
|
78
78
|
width: 180,
|
|
79
79
|
display: "flex",
|
|
80
80
|
flexDirection: "column"
|
|
81
81
|
},
|
|
82
|
-
children: [/* @__PURE__ */
|
|
83
|
-
value:
|
|
84
|
-
onChange: (e) =>
|
|
85
|
-
onFocus:
|
|
82
|
+
children: [/* @__PURE__ */ i(p, { label: e.label }), /* @__PURE__ */ i(t, {
|
|
83
|
+
value: n ?? "",
|
|
84
|
+
onChange: (e) => r(e, e.target.value),
|
|
85
|
+
onFocus: s,
|
|
86
86
|
onBlur: c,
|
|
87
87
|
disabled: l,
|
|
88
88
|
placeholder: e.placeholder,
|
|
@@ -98,33 +98,33 @@ var f = i.memo(({ input: e, value: n, onChange: r, onFocus: i, onBlur: o, disabl
|
|
|
98
98
|
}
|
|
99
99
|
})]
|
|
100
100
|
});
|
|
101
|
-
}), g =
|
|
101
|
+
}), g = r.memo(({ input: t, value: n, onChange: r, onFocus: c, onBlur: u, disabled: d }) => {
|
|
102
102
|
let { sx: f, ...m } = t.slotProps?.slider ?? {};
|
|
103
|
-
return /* @__PURE__ */ o
|
|
103
|
+
return /* @__PURE__ */ a(o, {
|
|
104
104
|
sx: {
|
|
105
105
|
width: 160,
|
|
106
106
|
display: "flex",
|
|
107
107
|
flexDirection: "column"
|
|
108
108
|
},
|
|
109
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ i(p, { label: t.label }), /* @__PURE__ */ a(o, {
|
|
110
110
|
sx: {
|
|
111
111
|
display: "flex",
|
|
112
112
|
alignItems: "center",
|
|
113
113
|
height: 36
|
|
114
114
|
},
|
|
115
|
-
children: [/* @__PURE__ */
|
|
115
|
+
children: [/* @__PURE__ */ i(s, {
|
|
116
116
|
"aria-label": t.label,
|
|
117
117
|
value: typeof n == "number" ? n : t.min ?? 0,
|
|
118
118
|
onChange: (e, t) => r(e, t),
|
|
119
|
-
onMouseDown:
|
|
120
|
-
onMouseUp:
|
|
119
|
+
onMouseDown: c,
|
|
120
|
+
onMouseUp: u,
|
|
121
121
|
disabled: d,
|
|
122
122
|
min: t.min ?? 0,
|
|
123
123
|
max: t.max ?? 100,
|
|
124
124
|
step: t.step ?? 1,
|
|
125
125
|
...m,
|
|
126
126
|
sx: [{ flex: 1 }, ...e(f)]
|
|
127
|
-
}), /* @__PURE__ */
|
|
127
|
+
}), /* @__PURE__ */ i(l, {
|
|
128
128
|
variant: "body2",
|
|
129
129
|
sx: {
|
|
130
130
|
minWidth: 60,
|
|
@@ -136,11 +136,11 @@ var f = i.memo(({ input: e, value: n, onChange: r, onFocus: i, onBlur: o, disabl
|
|
|
136
136
|
});
|
|
137
137
|
}), _ = (e) => {
|
|
138
138
|
switch (e.input.type) {
|
|
139
|
-
case "textarea": return /* @__PURE__ */
|
|
140
|
-
case "number": return /* @__PURE__ */
|
|
141
|
-
case "slider": return /* @__PURE__ */
|
|
142
|
-
case "select": return /* @__PURE__ */
|
|
143
|
-
case "image": return /* @__PURE__ */
|
|
139
|
+
case "textarea": return /* @__PURE__ */ i(f, { ...e });
|
|
140
|
+
case "number": return /* @__PURE__ */ i(m, { ...e });
|
|
141
|
+
case "slider": return /* @__PURE__ */ i(g, { ...e });
|
|
142
|
+
case "select": return /* @__PURE__ */ i(h, { ...e });
|
|
143
|
+
case "image": return /* @__PURE__ */ i(n, {
|
|
144
144
|
input: e.input,
|
|
145
145
|
value: e.value,
|
|
146
146
|
onChange: e.onChange,
|
|
@@ -148,18 +148,18 @@ var f = i.memo(({ input: e, value: n, onChange: r, onFocus: i, onBlur: o, disabl
|
|
|
148
148
|
});
|
|
149
149
|
default: return null;
|
|
150
150
|
}
|
|
151
|
-
}, v =
|
|
151
|
+
}, v = r.memo(({ input: e, value: t, disabled: n, onChange: r, onFocus: a, onBlur: s }) => e.renderInput ? /* @__PURE__ */ i(o, { children: e.renderInput({
|
|
152
152
|
value: t,
|
|
153
153
|
onChange: r,
|
|
154
|
-
onFocus:
|
|
155
|
-
onBlur:
|
|
154
|
+
onFocus: a,
|
|
155
|
+
onBlur: s,
|
|
156
156
|
disabled: n
|
|
157
|
-
}) }) : /* @__PURE__ */
|
|
157
|
+
}) }) : /* @__PURE__ */ i(_, {
|
|
158
158
|
input: e,
|
|
159
159
|
value: t,
|
|
160
160
|
onChange: r,
|
|
161
|
-
onFocus:
|
|
162
|
-
onBlur:
|
|
161
|
+
onFocus: a,
|
|
162
|
+
onBlur: s,
|
|
163
163
|
disabled: n
|
|
164
164
|
}));
|
|
165
165
|
//#endregion
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import { SNavItem as t } from "../s-nav-item/s-nav-item.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { ButtonBase as a, Typography as o, styled as s, useThemeProps as c } from "@mui/material";
|
|
6
|
+
import l from "@mui/utils/appendOwnerState";
|
|
7
7
|
//#region lib/s-tool-item/s-tool-item.tsx
|
|
8
|
-
var u =
|
|
8
|
+
var u = s("li", {
|
|
9
9
|
name: "SToolItem",
|
|
10
10
|
slot: "Root",
|
|
11
11
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
12
|
-
})({}), d =
|
|
12
|
+
})({}), d = s(t, {
|
|
13
13
|
name: "SToolItem",
|
|
14
14
|
slot: "Root",
|
|
15
15
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -17,12 +17,12 @@ var u = c("li", {
|
|
|
17
17
|
function f(e, t) {
|
|
18
18
|
return typeof e == "function" ? e(t) : e;
|
|
19
19
|
}
|
|
20
|
-
var p =
|
|
21
|
-
let
|
|
22
|
-
props:
|
|
20
|
+
var p = n.forwardRef(function(t, n) {
|
|
21
|
+
let s = c({
|
|
22
|
+
props: t,
|
|
23
23
|
name: "SToolItem"
|
|
24
|
-
}), { disabled: p = !1, expanded: m = !1, icon: h, onClick: g, primary: _, selected: v = !1, slotProps: y, slots: b, sx: x, ...S } =
|
|
25
|
-
...
|
|
24
|
+
}), { disabled: p = !1, expanded: m = !1, icon: h, onClick: g, primary: _, selected: v = !1, slotProps: y, slots: b, sx: x, ...S } = s, C = {
|
|
25
|
+
...s,
|
|
26
26
|
disabled: p,
|
|
27
27
|
expanded: m,
|
|
28
28
|
selected: v
|
|
@@ -30,37 +30,37 @@ var p = r.forwardRef(function(n, r) {
|
|
|
30
30
|
O?.(e), e.defaultPrevented || g?.(e);
|
|
31
31
|
};
|
|
32
32
|
if (m) {
|
|
33
|
-
let
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
let t = l(b?.button, D, C), i = l(b?.primary, T ?? {}, C);
|
|
34
|
+
return /* @__PURE__ */ r(d, {
|
|
35
35
|
...S,
|
|
36
36
|
disabled: p,
|
|
37
37
|
icon: h,
|
|
38
38
|
onClick: k,
|
|
39
39
|
ownerState: C,
|
|
40
40
|
primary: _,
|
|
41
|
-
ref:
|
|
41
|
+
ref: n,
|
|
42
42
|
selected: v,
|
|
43
43
|
slots: {
|
|
44
44
|
button: b?.button,
|
|
45
45
|
primary: b?.primary
|
|
46
46
|
},
|
|
47
47
|
slotProps: {
|
|
48
|
-
button:
|
|
49
|
-
primary:
|
|
48
|
+
button: t,
|
|
49
|
+
primary: i
|
|
50
50
|
},
|
|
51
51
|
sx: [{ cursor: p ? "not-allowed" : void 0 }, ...e(x)]
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
let A = b?.button ??
|
|
55
|
-
return /* @__PURE__ */
|
|
54
|
+
let A = b?.button ?? a, j = b?.primary ?? o, { sx: M, ...N } = D, { sx: P, ...F } = T ?? {}, I = l(b?.button, N, C), L = l(b?.primary, F, C), R = typeof _ == "string" ? _ : void 0;
|
|
55
|
+
return /* @__PURE__ */ r(u, {
|
|
56
56
|
...S,
|
|
57
57
|
ownerState: C,
|
|
58
|
-
ref:
|
|
58
|
+
ref: n,
|
|
59
59
|
sx: [{
|
|
60
60
|
cursor: p ? "not-allowed" : void 0,
|
|
61
61
|
display: "block"
|
|
62
62
|
}, ...e(x)],
|
|
63
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ i(A, {
|
|
64
64
|
...I,
|
|
65
65
|
"aria-current": v ? "page" : void 0,
|
|
66
66
|
"aria-label": R,
|
|
@@ -97,7 +97,7 @@ var p = r.forwardRef(function(n, r) {
|
|
|
97
97
|
"&.Mui-disabled": { color: "text.disabled" },
|
|
98
98
|
"& svg": { flexShrink: 0 }
|
|
99
99
|
}, ...e(M)],
|
|
100
|
-
children: [h, /* @__PURE__ */
|
|
100
|
+
children: [h, /* @__PURE__ */ r(j, {
|
|
101
101
|
component: "span",
|
|
102
102
|
variant: "caption",
|
|
103
103
|
...L,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import { SOverlayScrollbar as t } from "../s-overlay-scrollbar/s-overlay-scrollbar.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Box as a, styled as o, useThemeProps as s } from "@mui/material";
|
|
6
|
+
import c from "@mui/utils/appendOwnerState";
|
|
7
7
|
//#region lib/s-two-pane-layout/s-two-pane-layout.tsx
|
|
8
8
|
var l = () => ({
|
|
9
9
|
display: "flex",
|
|
@@ -39,32 +39,32 @@ var l = () => ({
|
|
|
39
39
|
}), m = ({ ownerState: e, theme: t }) => ({
|
|
40
40
|
padding: t.spacing(2),
|
|
41
41
|
...!e.scrollContent && { height: "100%" }
|
|
42
|
-
}), h =
|
|
42
|
+
}), h = o(a, {
|
|
43
43
|
name: "STwoPaneLayout",
|
|
44
44
|
slot: "Root",
|
|
45
45
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
46
|
-
})(l), g =
|
|
46
|
+
})(l), g = o(a, {
|
|
47
47
|
name: "STwoPaneLayout",
|
|
48
48
|
slot: "Sidebar"
|
|
49
|
-
})(u), ee =
|
|
49
|
+
})(u), ee = o(a, {
|
|
50
50
|
name: "STwoPaneLayout",
|
|
51
51
|
slot: "SidebarHeader"
|
|
52
|
-
})(d), _ =
|
|
52
|
+
})(d), _ = o(a, {
|
|
53
53
|
name: "STwoPaneLayout",
|
|
54
54
|
slot: "SidebarViewport"
|
|
55
|
-
})(f), v =
|
|
55
|
+
})(f), v = o(t, {
|
|
56
56
|
name: "STwoPaneLayout",
|
|
57
57
|
slot: "SidebarScroller"
|
|
58
|
-
})({}), y =
|
|
58
|
+
})({}), y = o(a, {
|
|
59
59
|
name: "STwoPaneLayout",
|
|
60
60
|
slot: "Content"
|
|
61
|
-
})(p), te =
|
|
61
|
+
})(p), te = o(a, {
|
|
62
62
|
name: "STwoPaneLayout",
|
|
63
63
|
slot: "ContentHeader"
|
|
64
|
-
})(d), ne =
|
|
64
|
+
})(d), ne = o(a, {
|
|
65
65
|
name: "STwoPaneLayout",
|
|
66
66
|
slot: "ContentViewport"
|
|
67
|
-
})(m), b =
|
|
67
|
+
})(m), b = o(t, {
|
|
68
68
|
name: "STwoPaneLayout",
|
|
69
69
|
slot: "ContentScroller"
|
|
70
70
|
})({});
|
|
@@ -84,9 +84,9 @@ function C(e, t, n) {
|
|
|
84
84
|
theme: e
|
|
85
85
|
}) : void 0;
|
|
86
86
|
}
|
|
87
|
-
var w =
|
|
88
|
-
let l =
|
|
89
|
-
props:
|
|
87
|
+
var w = n.forwardRef(function(t, o) {
|
|
88
|
+
let l = s({
|
|
89
|
+
props: t,
|
|
90
90
|
name: "STwoPaneLayout"
|
|
91
91
|
}), { children: w, contentHeader: T, disableDivider: E = !1, scrollContent: D = !1, scrollSidebar: O = !0, sidebar: k, sidebarHeader: A, sidebarPosition: j = "left", sidebarWidth: M = 280, slotProps: N, slots: P, sx: F, ...I } = l, L = {
|
|
92
92
|
...l,
|
|
@@ -95,62 +95,62 @@ var w = r.forwardRef(function(n, s) {
|
|
|
95
95
|
scrollSidebar: O,
|
|
96
96
|
sidebarPosition: j,
|
|
97
97
|
sidebarWidth: M
|
|
98
|
-
}, R = P?.sidebar ?? g, z = P?.sidebarHeader ?? ee, B = P?.sidebarViewport ?? _, V = P?.sidebarScroller ?? v, H = P?.content ?? y, U = P?.contentHeader ?? te, W = P?.contentViewport ?? ne, G = P?.contentScroller ?? b, K = S(
|
|
98
|
+
}, R = P?.sidebar ?? g, z = P?.sidebarHeader ?? ee, B = P?.sidebarViewport ?? _, V = P?.sidebarScroller ?? v, H = P?.content ?? y, U = P?.contentHeader ?? te, W = P?.contentViewport ?? ne, G = P?.contentScroller ?? b, K = S(c(P?.sidebar, x(N?.sidebar, L) ?? {}, L)), q = S(c(P?.sidebarHeader, x(N?.sidebarHeader, L) ?? {}, L)), J = S(c(P?.sidebarViewport, x(N?.sidebarViewport, L) ?? {}, L)), Y = S(c(P?.content, x(N?.content, L) ?? {}, L)), X = S(c(P?.contentHeader, x(N?.contentHeader, L) ?? {}, L)), Z = S(c(P?.contentViewport, x(N?.contentViewport, L) ?? {}, L)), re = c(P?.sidebarScroller, x(N?.sidebarScroller, L) ?? {}, L), ie = c(P?.contentScroller, x(N?.contentScroller, L) ?? {}, L), Q = /* @__PURE__ */ i(R, {
|
|
99
99
|
...K.other,
|
|
100
100
|
...!P?.sidebar && { ownerState: L },
|
|
101
101
|
sx: [...e(C(P?.sidebar, u, L)), ...e(K.sx)],
|
|
102
|
-
children: [A == null ? null : /* @__PURE__ */
|
|
102
|
+
children: [A == null ? null : /* @__PURE__ */ r(z, {
|
|
103
103
|
...q.other,
|
|
104
104
|
...!P?.sidebarHeader && { ownerState: L },
|
|
105
105
|
sx: [...e(C(P?.sidebarHeader, d, L)), ...e(q.sx)],
|
|
106
106
|
children: A
|
|
107
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ r(a, {
|
|
108
108
|
sx: {
|
|
109
109
|
flex: 1,
|
|
110
110
|
minHeight: 0,
|
|
111
111
|
overflow: "hidden"
|
|
112
112
|
},
|
|
113
|
-
children: O ? /* @__PURE__ */
|
|
113
|
+
children: O ? /* @__PURE__ */ r(V, {
|
|
114
114
|
...re,
|
|
115
115
|
...!P?.sidebarScroller && { ownerState: L },
|
|
116
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ r(B, {
|
|
117
117
|
...J.other,
|
|
118
118
|
...!P?.sidebarViewport && { ownerState: L },
|
|
119
119
|
sx: [...e(C(P?.sidebarViewport, f, L)), ...e(J.sx)],
|
|
120
120
|
children: k
|
|
121
121
|
})
|
|
122
|
-
}) : /* @__PURE__ */
|
|
122
|
+
}) : /* @__PURE__ */ r(B, {
|
|
123
123
|
...J.other,
|
|
124
124
|
...!P?.sidebarViewport && { ownerState: L },
|
|
125
125
|
sx: [...e(C(P?.sidebarViewport, f, L)), ...e(J.sx)],
|
|
126
126
|
children: k
|
|
127
127
|
})
|
|
128
128
|
})]
|
|
129
|
-
}), $ = /* @__PURE__ */
|
|
129
|
+
}), $ = /* @__PURE__ */ i(H, {
|
|
130
130
|
...Y.other,
|
|
131
131
|
...!P?.content && { ownerState: L },
|
|
132
132
|
sx: [...e(C(P?.content, p, L)), ...e(Y.sx)],
|
|
133
|
-
children: [T == null ? null : /* @__PURE__ */
|
|
133
|
+
children: [T == null ? null : /* @__PURE__ */ r(U, {
|
|
134
134
|
...X.other,
|
|
135
135
|
...!P?.contentHeader && { ownerState: L },
|
|
136
136
|
sx: [...e(C(P?.contentHeader, d, L)), ...e(X.sx)],
|
|
137
137
|
children: T
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ r(a, {
|
|
139
139
|
sx: {
|
|
140
140
|
flex: 1,
|
|
141
141
|
minHeight: 0,
|
|
142
142
|
overflow: "hidden"
|
|
143
143
|
},
|
|
144
|
-
children: D ? /* @__PURE__ */
|
|
144
|
+
children: D ? /* @__PURE__ */ r(G, {
|
|
145
145
|
...ie,
|
|
146
146
|
...!P?.contentScroller && { ownerState: L },
|
|
147
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ r(W, {
|
|
148
148
|
...Z.other,
|
|
149
149
|
...!P?.contentViewport && { ownerState: L },
|
|
150
150
|
sx: [...e(C(P?.contentViewport, m, L)), ...e(Z.sx)],
|
|
151
151
|
children: w
|
|
152
152
|
})
|
|
153
|
-
}) : /* @__PURE__ */
|
|
153
|
+
}) : /* @__PURE__ */ r(W, {
|
|
154
154
|
...Z.other,
|
|
155
155
|
...!P?.contentViewport && { ownerState: L },
|
|
156
156
|
sx: [...e(C(P?.contentViewport, m, L)), ...e(Z.sx)],
|
|
@@ -158,12 +158,12 @@ var w = r.forwardRef(function(n, s) {
|
|
|
158
158
|
})
|
|
159
159
|
})]
|
|
160
160
|
});
|
|
161
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ r(h, {
|
|
162
162
|
...I,
|
|
163
163
|
ownerState: L,
|
|
164
|
-
ref:
|
|
164
|
+
ref: o,
|
|
165
165
|
sx: e(F),
|
|
166
|
-
children: j === "left" ? /* @__PURE__ */
|
|
166
|
+
children: j === "left" ? /* @__PURE__ */ i(n.Fragment, { children: [Q, $] }) : /* @__PURE__ */ i(n.Fragment, { children: [$, Q] })
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
w.displayName = "STwoPaneLayout";
|