@owp/core 2.5.61 → 2.5.63
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/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index17.js +2 -5
- package/dist/_virtual/index17.js.map +1 -1
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index20.js +5 -2
- package/dist/_virtual/index20.js.map +1 -1
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +73 -33
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpPageCarded/OwpPageCarded.js +10 -10
- package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js +5 -5
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js.map +1 -1
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js +1 -1
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js.map +1 -1
- package/dist/components/OwpPageContent/OwpPageContent.js +3 -3
- package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
- package/dist/components/{OwpPageTitle/OwpPageTitle.js → OwpPageContent/internal/PageTitle.js} +7 -7
- package/dist/components/OwpPageContent/internal/PageTitle.js.map +1 -0
- package/dist/components/OwpTable/OwpDataTable.js +98 -98
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +70 -68
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/internal/OwpTableBase.js +47 -38
- package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +11 -8
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
- package/dist/components/OwpTextField/OwpBarcodeInputField.js +50 -0
- package/dist/components/OwpTextField/OwpBarcodeInputField.js.map +1 -0
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +301 -284
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +811 -745
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +631 -580
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/components/{OwpHidden/OwpHidden.js → internal/Hidden.js} +9 -9
- package/dist/components/internal/Hidden.js.map +1 -0
- package/dist/components/{OwpScrollbars/OwpScrollbars.js → internal/Scrollbars.js} +6 -6
- package/dist/components/internal/Scrollbars.js.map +1 -0
- package/dist/configs/defaultConfig.js +248 -159
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/gridTheme.js +85 -61
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/tableTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +57 -54
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +50 -47
- package/dist/contexts/OwpDialogsContext.js.map +1 -0
- package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.js +3 -3
- package/dist/contexts/OwpDialogsProvider.js.map +1 -0
- package/dist/{components/OwpStyleProvider → contexts}/OwpStyleProvider.js +2 -2
- package/dist/contexts/OwpStyleProvider.js.map +1 -0
- package/dist/contexts/OwpUiProvider.js +22 -22
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js → contexts/internal/AutoLogoutDialog.js} +4 -4
- package/dist/contexts/internal/AutoLogoutDialog.js.map +1 -0
- package/dist/{components/OwpPageLockLoading/OwpPageLockLoading.js → contexts/internal/PageLockLoading.js} +11 -11
- package/dist/contexts/internal/PageLockLoading.js.map +1 -0
- package/dist/{components/OwpSnackbarContent/OwpSnackbarContent.js → contexts/internal/SnackbarContent.js} +26 -26
- package/dist/contexts/internal/SnackbarContent.js.map +1 -0
- package/dist/contexts.js +10 -6
- package/dist/contexts.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +270 -256
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +195 -191
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewColorField.js +185 -188
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewControls.js +213 -206
- package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js +238 -148
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
- package/dist/features/themePreview/configs/grid.js +3 -59
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/configs/presets.js +90 -52
- package/dist/features/themePreview/configs/presets.js.map +1 -1
- package/dist/features/themePreview/configs/settings.js +51 -27
- package/dist/features/themePreview/configs/settings.js.map +1 -1
- package/dist/features/themePreview/configs/table.js +8 -5
- package/dist/features/themePreview/configs/table.js.map +1 -1
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +26 -11
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -1
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +25 -11
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +250 -209
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
- package/dist/features/themePreview/hooks/useThemePreview.js +373 -274
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +79 -63
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewExport.js +1 -1
- package/dist/features/themePreview/utils/themePreviewSettings.js +258 -170
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
- package/dist/hooks/useOwpDialogs.js +1 -1
- package/dist/index.js +89 -107
- package/dist/index.js.map +1 -1
- package/dist/layout/Layout.js +18 -18
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js +11 -11
- package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
- package/dist/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.js → layout/components/navigation/internal/NavLinkAdapter.js} +25 -25
- package/dist/layout/components/navigation/internal/NavLinkAdapter.js.map +1 -0
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +15 -15
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +6 -6
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +4 -4
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toolbar/ToolbarLayout.js +29 -29
- package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
- package/dist/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.js → layout/components/toolbar/internal/PageBreadcrumb.js} +9 -9
- package/dist/layout/components/toolbar/internal/PageBreadcrumb.js.map +1 -0
- package/dist/{components/OwpPageSkeleton/OwpPageSkeleton.js → layout/internal/PageSkeleton.js} +9 -9
- package/dist/layout/internal/PageSkeleton.js.map +1 -0
- package/dist/{components/OwpSuspense/OwpSuspense.js → layout/internal/Suspense.js} +37 -37
- package/dist/layout/internal/Suspense.js.map +1 -0
- package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/{OwpPageTitle/OwpPageTitle.d.ts → OwpPageContent/internal/PageTitle.d.ts} +3 -3
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +5 -2
- package/dist/types/components/OwpTextField/OwpBarcodeInputField.d.ts +15 -0
- package/dist/types/components/OwpTextField/index.d.ts +1 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +9 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +8 -1
- package/dist/types/components/{OwpHidden/OwpHidden.d.ts → internal/Hidden.d.ts} +4 -4
- package/dist/types/components/{OwpScrollbars/OwpScrollbars.d.ts → internal/Scrollbars.d.ts} +7 -7
- package/dist/types/configs/defaultConfig.d.ts +4 -4
- package/dist/types/constants/gridTheme.d.ts +24 -0
- package/dist/types/constants/tableTheme.d.ts +1 -0
- package/dist/types/constants/treeGrid.d.ts +8 -2
- package/dist/types/contexts/index.d.ts +2 -0
- package/dist/types/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts → contexts/internal/AutoLogoutDialog.d.ts} +2 -2
- package/dist/types/contexts/internal/PageLockLoading.d.ts +7 -0
- package/dist/types/contexts/internal/SnackbarContent.d.ts +3 -0
- package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +4 -5
- package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +38 -2
- package/dist/types/features/themePreview/configs/grid.d.ts +14 -0
- package/dist/types/features/themePreview/configs/presets.d.ts +4 -2
- package/dist/types/features/themePreview/configs/settings.d.ts +40 -0
- package/dist/types/features/themePreview/configs/table.d.ts +2 -0
- package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +2 -0
- package/dist/types/hooks/usePageLockLoading.d.ts +3 -3
- package/dist/types/index.d.ts +1 -10
- package/dist/types/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts → layout/components/navigation/internal/NavLinkAdapter.d.ts} +3 -3
- package/dist/types/layout/internal/PageSkeleton.d.ts +6 -0
- package/dist/types/layout/internal/Suspense.d.ts +13 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +30 -1
- package/dist/types/types/OwpMuiThemeTypes.d.ts +16 -0
- package/dist/types/types/OwpTableThemeTypes.d.ts +2 -0
- package/dist/types/types/PageLockLoadingTypes.d.ts +9 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/utils/treeGridUtil.js +44 -38
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js.map +0 -1
- package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js +0 -38
- package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js.map +0 -1
- package/dist/components/OwpDialogsProvider/OwpDialogsContext.js.map +0 -1
- package/dist/components/OwpDialogsProvider/OwpDialogsProvider.js.map +0 -1
- package/dist/components/OwpHidden/OwpHidden.js.map +0 -1
- package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +0 -1
- package/dist/components/OwpPageBreadcrumb/OwpPageBreadcrumb.js.map +0 -1
- package/dist/components/OwpPageLockLoading/OwpPageLockLoading.js.map +0 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js.map +0 -1
- package/dist/components/OwpPageTitle/OwpPageTitle.js.map +0 -1
- package/dist/components/OwpScrollbars/OwpScrollbars.js.map +0 -1
- package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +0 -1
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +0 -1
- package/dist/components/OwpSuspense/OwpSuspense.js.map +0 -1
- package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js +0 -66
- package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js.map +0 -1
- package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js +0 -49
- package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js.map +0 -1
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowBackIosNew.js +0 -9
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowBackIosNew.js.map +0 -1
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowForwardIos.js +0 -9
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowForwardIos.js.map +0 -1
- package/dist/types/components/OwpAutoLogoutDialog/index.d.ts +0 -1
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInput.d.ts +0 -1
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +0 -7
- package/dist/types/components/OwpBarcodeInput/index.d.ts +0 -1
- package/dist/types/components/OwpDialogsProvider/index.d.ts +0 -1
- package/dist/types/components/OwpHidden/index.d.ts +0 -2
- package/dist/types/components/OwpNavLinkAdapter/index.d.ts +0 -2
- package/dist/types/components/OwpPageBreadcrumb/index.d.ts +0 -2
- package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +0 -15
- package/dist/types/components/OwpPageLockLoading/index.d.ts +0 -1
- package/dist/types/components/OwpPageSkeleton/OwpPageSkeleton.d.ts +0 -6
- package/dist/types/components/OwpPageSkeleton/index.d.ts +0 -1
- package/dist/types/components/OwpPageTitle/index.d.ts +0 -1
- package/dist/types/components/OwpScrollbars/index.d.ts +0 -1
- package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +0 -3
- package/dist/types/components/OwpStyleProvider/index.d.ts +0 -2
- package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +0 -16
- package/dist/types/components/OwpSuspense/index.d.ts +0 -1
- package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +0 -20
- package/dist/types/components/OwpZoomImageSlider/index.d.ts +0 -1
- package/dist/types/components/OwpZoomImageSlider/internal/ZoomImage.d.ts +0 -7
- /package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.js +0 -0
- /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.d.ts +0 -0
- /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.d.ts +0 -0
- /package/dist/types/{components/OwpStyleProvider → contexts}/OwpStyleProvider.d.ts +0 -0
- /package/dist/types/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts → layout/components/toolbar/internal/PageBreadcrumb.d.ts} +0 -0
|
@@ -1,52 +1,55 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { defaultSnackbarTheme as
|
|
5
|
-
import { defaultTableTheme as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Typography as i, ButtonBase as
|
|
12
|
-
import { alpha as n, darken as
|
|
13
|
-
import { owpDayjs as
|
|
14
|
-
import { closeSnackbar as
|
|
15
|
-
import { useRef as
|
|
16
|
-
import { getPaletteValue as
|
|
17
|
-
import { ThemePreviewGridPreviewTable as
|
|
18
|
-
import { snackbarPreviewIconByVariant as
|
|
19
|
-
import { merge as
|
|
20
|
-
const
|
|
21
|
-
function
|
|
1
|
+
var er = Object.defineProperty;
|
|
2
|
+
var C = (k, z) => er(k, "name", { value: z, configurable: !0 });
|
|
3
|
+
import { jsx as o, jsxs as c } from "../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { defaultSnackbarTheme as rr, defaultSnackbarProviderProps as N, snackbarVariantKeys as or } from "../configs/snackbar.js";
|
|
5
|
+
import { defaultTableTheme as ar } from "../configs/table.js";
|
|
6
|
+
import nr from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js";
|
|
7
|
+
import tr from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MenuRounded.js";
|
|
8
|
+
import Ne from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/NavigateNext.js";
|
|
9
|
+
import cr from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Search.js";
|
|
10
|
+
import ir from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js";
|
|
11
|
+
import { Typography as i, ButtonBase as lr, CircularProgress as dr } from "@mui/material";
|
|
12
|
+
import { alpha as n, darken as mr } from "@mui/material/styles";
|
|
13
|
+
import { owpDayjs as sr } from "../../../dayjs.js";
|
|
14
|
+
import { closeSnackbar as br } from "notistack";
|
|
15
|
+
import { useRef as ur, useDeferredValue as vr, useMemo as t, useEffect as hr, Fragment as fr } from "react";
|
|
16
|
+
import { getPaletteValue as r, previewChromeBorder as H, getPreviewContrastColor as He, createThemePreviewVersionKey as p, gridPreviewBodyBackground as pr, gridPreviewBodyText as xr, getThemePreviewStyleValue as ze, snackbarPreviewMessageByVariant as kr, getPreviewSectionOrder as yr, navbarPreviewItems as wr, themePreviewReadonlyTreeGridId as Pr, themePreviewEditableTreeGridId as Sr } from "./themePreviewCanvas.shared.js";
|
|
17
|
+
import { ThemePreviewGridPreviewTable as gr, ThemePreviewTablesSection as Tr, ThemePreviewGridSection as Br, ThemePreviewSearchHeaderSection as Cr, ThemePreviewSnackbarsSection as Nr, ThemePreviewButtonsSection as Hr, ThemePreviewCommonSection as zr } from "./ThemePreviewCanvasSections.js";
|
|
18
|
+
import { snackbarPreviewIconByVariant as Ir } from "./themePreviewCanvas.icons.js";
|
|
19
|
+
import { merge as Ie } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
|
|
20
|
+
const $r = "#ff4d2d", Wr = "rgba(255, 77, 45, 0.14)";
|
|
21
|
+
function Qr({
|
|
22
22
|
activeSection: k,
|
|
23
|
-
isLoading:
|
|
23
|
+
isLoading: z = !1,
|
|
24
24
|
settings: e
|
|
25
25
|
}) {
|
|
26
|
-
var
|
|
27
|
-
const
|
|
28
|
-
() =>
|
|
26
|
+
var Se, ge, Te, Be, Ce;
|
|
27
|
+
const I = ur([]), m = vr(k), M = !1, R = t(
|
|
28
|
+
() => Ie(
|
|
29
29
|
{},
|
|
30
|
-
|
|
30
|
+
ar,
|
|
31
31
|
e.theme.main.table
|
|
32
32
|
),
|
|
33
33
|
[e.theme.main.table]
|
|
34
|
-
),
|
|
35
|
-
|
|
36
|
-
b || "#111827"
|
|
37
|
-
), ze = n(q, l === "dark" ? 0.72 : 0.64), J = n(
|
|
38
|
-
h,
|
|
39
|
-
l === "dark" ? 0.2 : 0.12
|
|
40
|
-
), Q = n(h, l === "dark" ? 0.42 : 0.28), X = n(
|
|
41
|
-
y,
|
|
34
|
+
), s = e.theme.toolbar.palette.mode, E = r(e, "toolbar", "background.default"), $e = r(e, "toolbar", "background.paper"), y = r(e, "toolbar", "text.primary"), We = r(e, "toolbar", "divider"), w = r(e, "toolbar", "common.white"), Ae = r(e, "toolbar", "common.black"), F = n(w, s === "dark" ? 0.06 : 0.78), K = n(w, s === "dark" ? 0.1 : 0.62), Y = n(w, s === "dark" ? 0.05 : 0.54), l = e.theme.navbar.palette.mode, $ = r(e, "navbar", "background.default"), W = r(e, "navbar", "divider") || H, b = r(e, "navbar", "text.primary"), U = r(e, "navbar", "text.secondary"), v = r(e, "navbar", "secondary.main"), P = r(e, "navbar", "secondary.dark") || v, _ = He($, b || "#111827"), De = n(_, l === "dark" ? 0.72 : 0.64), L = n(v, l === "dark" ? 0.2 : 0.12), Z = n(v, l === "dark" ? 0.42 : 0.28), q = n(
|
|
35
|
+
P,
|
|
42
36
|
l === "dark" ? 0.22 : 0.14
|
|
43
|
-
),
|
|
44
|
-
|
|
37
|
+
), J = n(
|
|
38
|
+
P,
|
|
45
39
|
l === "dark" ? 0.56 : 0.36
|
|
46
|
-
),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
), Q = v, X = U || n(b, l === "dark" ? 0.78 : 0.72), Oe = n(v, l === "dark" ? 0.22 : 0.12), Ve = mr($, l === "dark" ? 0.08 : 0.05), je = U || n(b, l === "dark" ? 0.78 : 0.62), A = r(e, "main", "background.default"), S = r(e, "main", "background.paper"), ee = r(e, "main", "text.primary"), re = r(e, "main", "text.secondary"), oe = r(e, "main", "button.primary.main") || r(e, "main", "primary.main"), ae = r(e, "main", "button.primary.contrastText") || r(e, "main", "primary.contrastText"), ne = r(e, "main", "button.secondary.main") || r(e, "main", "secondary.main"), te = r(e, "main", "button.secondary.contrastText") || r(e, "main", "secondary.contrastText"), ce = r(e, "main", "button.success.main") || r(e, "main", "success.main"), ie = r(e, "main", "button.success.contrastText") || r(e, "main", "success.contrastText"), le = r(e, "main", "button.info.main") || r(e, "main", "info.main"), de = r(e, "main", "button.info.contrastText") || r(e, "main", "info.contrastText"), me = r(e, "main", "button.warning.main") || r(e, "main", "warning.main"), se = r(e, "main", "button.warning.contrastText") || r(e, "main", "warning.contrastText"), be = r(e, "main", "button.error.main") || r(e, "main", "error.main"), ue = r(e, "main", "button.error.contrastText") || r(e, "main", "error.contrastText"), D = e.theme.main.grid, g = t(
|
|
41
|
+
() => p(e.theme.main.table),
|
|
42
|
+
[e.theme.main.table]
|
|
43
|
+
), ve = t(
|
|
44
|
+
() => p(e.theme.main.grid),
|
|
45
|
+
[e.theme.main.grid]
|
|
46
|
+
), O = t(
|
|
47
|
+
() => p({
|
|
48
|
+
palette: e.theme.main.palette ?? {},
|
|
49
|
+
table: e.theme.main.table ?? {}
|
|
50
|
+
}),
|
|
51
|
+
[e.theme.main.palette, e.theme.main.table]
|
|
52
|
+
), he = "#586980", V = "#ffffff", fe = "14px", pe = "13px", xe = ((Se = D == null ? void 0 : D.body) == null ? void 0 : Se.backgroundColor) ?? pr, ke = n(V, 0.22), ye = n(xr, 0.14), h = t(
|
|
50
53
|
() => ({
|
|
51
54
|
...e,
|
|
52
55
|
theme: {
|
|
@@ -56,253 +59,257 @@ function _r({
|
|
|
56
59
|
}
|
|
57
60
|
}),
|
|
58
61
|
[e]
|
|
59
|
-
),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
), we = t(
|
|
63
|
+
() => p(h.theme.main),
|
|
64
|
+
[h.theme.main]
|
|
65
|
+
), T = t(
|
|
62
66
|
() => ({
|
|
63
67
|
owpSettings: {
|
|
64
|
-
current:
|
|
65
|
-
defaults:
|
|
66
|
-
initial:
|
|
68
|
+
current: h,
|
|
69
|
+
defaults: h,
|
|
70
|
+
initial: h
|
|
67
71
|
}
|
|
68
72
|
}),
|
|
69
|
-
[
|
|
70
|
-
),
|
|
71
|
-
() => `OWP-${
|
|
72
|
-
[
|
|
73
|
-
),
|
|
73
|
+
[h]
|
|
74
|
+
), j = sr().format("YYYY-MM-DD"), Ge = t(
|
|
75
|
+
() => `OWP-${j.replace(/-/g, "")}-001`,
|
|
76
|
+
[j]
|
|
77
|
+
), f = t(
|
|
74
78
|
() => ({
|
|
75
|
-
backgroundColor:
|
|
76
|
-
border: `1px solid ${
|
|
79
|
+
backgroundColor: S,
|
|
80
|
+
border: `1px solid ${H}`
|
|
77
81
|
}),
|
|
78
|
-
[
|
|
79
|
-
),
|
|
82
|
+
[S]
|
|
83
|
+
), Me = m === "navbar" ? "navbar" : m === "toolbar" ? "toolbar" : "main", Re = z || m !== k, Ee = t(
|
|
80
84
|
() => ({
|
|
81
|
-
backgroundColor:
|
|
82
|
-
borderColor:
|
|
83
|
-
boxShadow: `inset 0 1px 0 ${
|
|
85
|
+
backgroundColor: F,
|
|
86
|
+
borderColor: K,
|
|
87
|
+
boxShadow: `inset 0 1px 0 ${Y}`
|
|
84
88
|
}),
|
|
85
|
-
[
|
|
86
|
-
),
|
|
89
|
+
[F, K, Y]
|
|
90
|
+
), Fe = t(
|
|
87
91
|
() => ({
|
|
88
|
-
backgroundColor:
|
|
89
|
-
borderColor:
|
|
90
|
-
color:
|
|
92
|
+
backgroundColor: L,
|
|
93
|
+
borderColor: Z,
|
|
94
|
+
color: Q,
|
|
91
95
|
transition: "background-color 160ms ease, border-color 160ms ease, color 160ms ease",
|
|
92
96
|
"&:hover, &:focus-visible, &:active": {
|
|
93
|
-
backgroundColor:
|
|
94
|
-
borderColor:
|
|
95
|
-
color:
|
|
97
|
+
backgroundColor: q,
|
|
98
|
+
borderColor: J,
|
|
99
|
+
color: P
|
|
96
100
|
}
|
|
97
101
|
}),
|
|
98
102
|
[
|
|
99
|
-
re,
|
|
100
|
-
y,
|
|
101
|
-
J,
|
|
102
103
|
Q,
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
P,
|
|
105
|
+
L,
|
|
106
|
+
Z,
|
|
107
|
+
q,
|
|
108
|
+
J
|
|
105
109
|
]
|
|
106
|
-
),
|
|
110
|
+
), B = t(
|
|
107
111
|
() => [
|
|
108
|
-
{ label: "
|
|
109
|
-
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
{ label: "primary", color: oe, contrastColor: ae },
|
|
113
|
+
{
|
|
114
|
+
label: "secondary",
|
|
115
|
+
color: ne,
|
|
116
|
+
contrastColor: te
|
|
117
|
+
},
|
|
118
|
+
{ label: "info", color: le, contrastColor: de },
|
|
119
|
+
{ label: "warning", color: me, contrastColor: se },
|
|
120
|
+
{ label: "error", color: be, contrastColor: ue },
|
|
121
|
+
{ label: "success", color: ce, contrastColor: ie }
|
|
122
|
+
].map((a) => ({
|
|
123
|
+
...a,
|
|
124
|
+
previewContrastColor: a.contrastColor || He(a.color, "#ffffff")
|
|
115
125
|
})),
|
|
116
126
|
[
|
|
117
|
-
|
|
127
|
+
oe,
|
|
128
|
+
ae,
|
|
129
|
+
ne,
|
|
130
|
+
te,
|
|
131
|
+
be,
|
|
132
|
+
ue,
|
|
118
133
|
le,
|
|
119
|
-
|
|
134
|
+
de,
|
|
120
135
|
ce,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
ie
|
|
136
|
+
ie,
|
|
137
|
+
me,
|
|
138
|
+
se
|
|
125
139
|
]
|
|
126
|
-
),
|
|
127
|
-
() =>
|
|
140
|
+
), Pe = e.snackbar ?? rr, u = t(
|
|
141
|
+
() => Ie({}, N, e.snackbarProviderProps),
|
|
128
142
|
[e.snackbarProviderProps]
|
|
129
|
-
),
|
|
130
|
-
(
|
|
131
|
-
),
|
|
132
|
-
() =>
|
|
133
|
-
const d =
|
|
143
|
+
), Ke = ((ge = u.anchorOrigin) == null ? void 0 : ge.horizontal) ?? N.anchorOrigin.horizontal, Ye = ((Te = u.anchorOrigin) == null ? void 0 : Te.vertical) ?? N.anchorOrigin.vertical, Ue = u.maxSnack ?? N.maxSnack, _e = ze((Be = u.style) == null ? void 0 : Be.fontSize), Le = ze(
|
|
144
|
+
(Ce = u.style) == null ? void 0 : Ce.lineHeight
|
|
145
|
+
), Ze = t(
|
|
146
|
+
() => or.map((a) => {
|
|
147
|
+
const d = Pe[a];
|
|
134
148
|
return {
|
|
135
149
|
actionHoverColor: n(
|
|
136
150
|
d.color,
|
|
137
|
-
|
|
151
|
+
a === "default" ? 0.18 : 0.16
|
|
138
152
|
),
|
|
139
153
|
backgroundColor: d.backgroundColor,
|
|
140
154
|
color: d.color,
|
|
141
|
-
icon:
|
|
142
|
-
key:
|
|
143
|
-
message:
|
|
155
|
+
icon: Ir[a],
|
|
156
|
+
key: a,
|
|
157
|
+
message: kr[a]
|
|
144
158
|
};
|
|
145
159
|
}),
|
|
146
|
-
[
|
|
147
|
-
),
|
|
148
|
-
() =>
|
|
149
|
-
[
|
|
150
|
-
),
|
|
160
|
+
[Pe]
|
|
161
|
+
), qe = t(
|
|
162
|
+
() => yr(m),
|
|
163
|
+
[m]
|
|
164
|
+
), Je = t(
|
|
151
165
|
() => ({
|
|
152
|
-
common:
|
|
153
|
-
buttons:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
warning: C
|
|
158
|
-
}),
|
|
159
|
-
grid: "grid",
|
|
160
|
-
searchHeader: V,
|
|
161
|
-
snackbars: x({
|
|
166
|
+
common: we,
|
|
167
|
+
buttons: p(B),
|
|
168
|
+
grid: ve,
|
|
169
|
+
searchHeader: O,
|
|
170
|
+
snackbars: p({
|
|
162
171
|
provider: e.snackbarProviderProps,
|
|
163
172
|
snackbar: e.snackbar
|
|
164
173
|
}),
|
|
165
|
-
tables:
|
|
174
|
+
tables: g
|
|
166
175
|
}),
|
|
167
176
|
[
|
|
168
177
|
B,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
C,
|
|
173
|
-
V,
|
|
178
|
+
we,
|
|
179
|
+
ve,
|
|
180
|
+
O,
|
|
174
181
|
e.snackbar,
|
|
175
182
|
e.snackbarProviderProps,
|
|
176
|
-
|
|
183
|
+
g
|
|
177
184
|
]
|
|
178
|
-
),
|
|
179
|
-
() => /* @__PURE__ */
|
|
180
|
-
|
|
185
|
+
), Qe = t(
|
|
186
|
+
() => /* @__PURE__ */ o(
|
|
187
|
+
gr,
|
|
181
188
|
{
|
|
182
|
-
gridBodyBorder:
|
|
183
|
-
layoutPreviewGridCellBackground:
|
|
184
|
-
layoutPreviewGridCellFontSize:
|
|
185
|
-
layoutPreviewGridHeaderBackground:
|
|
186
|
-
layoutPreviewGridHeaderBorder:
|
|
187
|
-
layoutPreviewGridHeaderColor:
|
|
188
|
-
layoutPreviewGridHeaderFontSize:
|
|
189
|
+
gridBodyBorder: ye,
|
|
190
|
+
layoutPreviewGridCellBackground: xe,
|
|
191
|
+
layoutPreviewGridCellFontSize: pe,
|
|
192
|
+
layoutPreviewGridHeaderBackground: he,
|
|
193
|
+
layoutPreviewGridHeaderBorder: ke,
|
|
194
|
+
layoutPreviewGridHeaderColor: V,
|
|
195
|
+
layoutPreviewGridHeaderFontSize: fe
|
|
189
196
|
}
|
|
190
197
|
),
|
|
191
198
|
[
|
|
199
|
+
ye,
|
|
200
|
+
xe,
|
|
201
|
+
pe,
|
|
192
202
|
he,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
ve,
|
|
197
|
-
M,
|
|
198
|
-
se
|
|
203
|
+
ke,
|
|
204
|
+
V,
|
|
205
|
+
fe
|
|
199
206
|
]
|
|
200
207
|
);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}),
|
|
208
|
+
hr(() => () => {
|
|
209
|
+
I.current.forEach((a) => {
|
|
210
|
+
br(a);
|
|
211
|
+
}), I.current = [];
|
|
205
212
|
}, []);
|
|
206
|
-
const
|
|
207
|
-
switch (
|
|
213
|
+
const Xe = /* @__PURE__ */ C((a) => {
|
|
214
|
+
switch (a) {
|
|
208
215
|
case "common":
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
|
|
216
|
+
return /* @__PURE__ */ o(
|
|
217
|
+
zr,
|
|
211
218
|
{
|
|
212
|
-
buttonPreviewItems:
|
|
213
|
-
mainTextSecondary:
|
|
214
|
-
mainThemePreviewStoreState:
|
|
215
|
-
previewSectionCardSx:
|
|
219
|
+
buttonPreviewItems: B,
|
|
220
|
+
mainTextSecondary: re,
|
|
221
|
+
mainThemePreviewStoreState: T,
|
|
222
|
+
previewSectionCardSx: f
|
|
216
223
|
}
|
|
217
224
|
);
|
|
218
225
|
case "buttons":
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
|
|
226
|
+
return /* @__PURE__ */ o(
|
|
227
|
+
Hr,
|
|
221
228
|
{
|
|
222
|
-
buttonPreviewItems:
|
|
223
|
-
mainTextSecondary:
|
|
224
|
-
previewSectionCardSx:
|
|
229
|
+
buttonPreviewItems: B,
|
|
230
|
+
mainTextSecondary: re,
|
|
231
|
+
previewSectionCardSx: f
|
|
225
232
|
}
|
|
226
233
|
);
|
|
227
234
|
case "snackbars":
|
|
228
|
-
return /* @__PURE__ */
|
|
229
|
-
|
|
235
|
+
return /* @__PURE__ */ o(
|
|
236
|
+
Nr,
|
|
230
237
|
{
|
|
231
|
-
previewSectionCardSx:
|
|
232
|
-
previewSnackbarKeysRef:
|
|
233
|
-
snackbarAnchorOrigin:
|
|
234
|
-
snackbarAutoHideDuration:
|
|
235
|
-
snackbarPreviewAnchorHorizontal:
|
|
236
|
-
snackbarPreviewAnchorVertical:
|
|
237
|
-
snackbarPreviewFontSize:
|
|
238
|
-
snackbarPreviewItems:
|
|
239
|
-
snackbarPreviewLineHeight:
|
|
240
|
-
snackbarPreviewMaxSnack:
|
|
238
|
+
previewSectionCardSx: f,
|
|
239
|
+
previewSnackbarKeysRef: I,
|
|
240
|
+
snackbarAnchorOrigin: u.anchorOrigin,
|
|
241
|
+
snackbarAutoHideDuration: u.autoHideDuration,
|
|
242
|
+
snackbarPreviewAnchorHorizontal: Ke,
|
|
243
|
+
snackbarPreviewAnchorVertical: Ye,
|
|
244
|
+
snackbarPreviewFontSize: _e,
|
|
245
|
+
snackbarPreviewItems: Ze,
|
|
246
|
+
snackbarPreviewLineHeight: Le,
|
|
247
|
+
snackbarPreviewMaxSnack: Ue
|
|
241
248
|
}
|
|
242
249
|
);
|
|
243
250
|
case "searchHeader":
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
|
|
251
|
+
return /* @__PURE__ */ o(
|
|
252
|
+
Cr,
|
|
246
253
|
{
|
|
247
|
-
activeSection:
|
|
248
|
-
gridPreviewTable:
|
|
249
|
-
mainBackground:
|
|
250
|
-
mainPaper:
|
|
251
|
-
mainText:
|
|
252
|
-
mainThemePreviewStoreState:
|
|
253
|
-
previewSectionCardSx:
|
|
254
|
-
searchHeaderPreviewDate:
|
|
255
|
-
searchHeaderPreviewNumber:
|
|
256
|
-
searchHeaderPreviewVersionKey:
|
|
257
|
-
tablePreviewCanTableRadiusZero:
|
|
258
|
-
tableTheme:
|
|
259
|
-
tableThemePreviewVersionKey:
|
|
254
|
+
activeSection: m === "navbar" || m === "toolbar" ? m : "main",
|
|
255
|
+
gridPreviewTable: Qe,
|
|
256
|
+
mainBackground: A,
|
|
257
|
+
mainPaper: S,
|
|
258
|
+
mainText: ee,
|
|
259
|
+
mainThemePreviewStoreState: T,
|
|
260
|
+
previewSectionCardSx: f,
|
|
261
|
+
searchHeaderPreviewDate: j,
|
|
262
|
+
searchHeaderPreviewNumber: Ge,
|
|
263
|
+
searchHeaderPreviewVersionKey: O,
|
|
264
|
+
tablePreviewCanTableRadiusZero: M,
|
|
265
|
+
tableTheme: R,
|
|
266
|
+
tableThemePreviewVersionKey: g
|
|
260
267
|
}
|
|
261
268
|
);
|
|
262
269
|
case "grid":
|
|
263
|
-
return /* @__PURE__ */
|
|
264
|
-
|
|
270
|
+
return /* @__PURE__ */ o(
|
|
271
|
+
Br,
|
|
265
272
|
{
|
|
266
|
-
editableThemePreviewGridId:
|
|
267
|
-
mainThemePreviewStoreState:
|
|
268
|
-
previewSectionCardSx:
|
|
269
|
-
readonlyThemePreviewGridId:
|
|
273
|
+
editableThemePreviewGridId: Sr,
|
|
274
|
+
mainThemePreviewStoreState: T,
|
|
275
|
+
previewSectionCardSx: f,
|
|
276
|
+
readonlyThemePreviewGridId: Pr
|
|
270
277
|
}
|
|
271
278
|
);
|
|
272
279
|
case "tables":
|
|
273
|
-
return /* @__PURE__ */
|
|
274
|
-
|
|
280
|
+
return /* @__PURE__ */ o(
|
|
281
|
+
Tr,
|
|
275
282
|
{
|
|
276
|
-
mainThemePreviewStoreState:
|
|
277
|
-
previewSectionCardSx:
|
|
278
|
-
tablePreviewCanTableRadiusZero:
|
|
279
|
-
tableTheme:
|
|
280
|
-
tableThemePreviewVersionKey:
|
|
283
|
+
mainThemePreviewStoreState: T,
|
|
284
|
+
previewSectionCardSx: f,
|
|
285
|
+
tablePreviewCanTableRadiusZero: M,
|
|
286
|
+
tableTheme: R,
|
|
287
|
+
tableThemePreviewVersionKey: g
|
|
281
288
|
}
|
|
282
289
|
);
|
|
283
290
|
default:
|
|
284
291
|
return null;
|
|
285
292
|
}
|
|
286
|
-
}, "renderPreviewSection"),
|
|
293
|
+
}, "renderPreviewSection"), G = /* @__PURE__ */ C((a, d, x = 0) => Me === a ? /* @__PURE__ */ o(
|
|
287
294
|
"div",
|
|
288
295
|
{
|
|
289
296
|
"aria-hidden": !0,
|
|
290
297
|
className: "pointer-events-none absolute z-[2]",
|
|
291
298
|
style: {
|
|
292
299
|
inset: d,
|
|
293
|
-
border: `4px solid ${
|
|
294
|
-
borderRadius:
|
|
295
|
-
boxShadow: `0 0 0 1px ${
|
|
300
|
+
border: `4px solid ${$r}`,
|
|
301
|
+
borderRadius: x,
|
|
302
|
+
boxShadow: `0 0 0 1px ${Wr}`
|
|
296
303
|
}
|
|
297
304
|
}
|
|
298
305
|
) : null, "renderHighlightOverlay");
|
|
299
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ o("div", { className: "flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ c(
|
|
300
307
|
"div",
|
|
301
308
|
{
|
|
302
309
|
className: "grid min-h-0 flex-1 grid-cols-[224px_minmax(0,1fr)] grid-rows-[76px_minmax(0,1fr)] overflow-hidden rounded-lg border border-solid",
|
|
303
310
|
style: {
|
|
304
|
-
backgroundColor:
|
|
305
|
-
borderColor:
|
|
311
|
+
backgroundColor: A,
|
|
312
|
+
borderColor: H
|
|
306
313
|
},
|
|
307
314
|
children: [
|
|
308
315
|
/* @__PURE__ */ c(
|
|
@@ -310,55 +317,55 @@ function _r({
|
|
|
310
317
|
{
|
|
311
318
|
className: "col-span-2 relative flex items-center justify-between px-20",
|
|
312
319
|
style: {
|
|
313
|
-
backgroundColor:
|
|
314
|
-
backgroundImage: `linear-gradient(180deg, ${
|
|
315
|
-
borderBottom: `1px solid ${
|
|
316
|
-
boxShadow: `inset 0 1px 0 ${n(
|
|
317
|
-
color:
|
|
320
|
+
backgroundColor: E,
|
|
321
|
+
backgroundImage: `linear-gradient(180deg, ${E} 0%, ${$e} 100%)`,
|
|
322
|
+
borderBottom: `1px solid ${We}`,
|
|
323
|
+
boxShadow: `inset 0 1px 0 ${n(w, s === "dark" ? 0.06 : 0.82)}, 0 4px 16px ${n(Ae, s === "dark" ? 0.18 : 0.05)}`,
|
|
324
|
+
color: y
|
|
318
325
|
},
|
|
319
326
|
children: [
|
|
320
|
-
|
|
321
|
-
/* @__PURE__ */
|
|
327
|
+
G("toolbar", 0, 0),
|
|
328
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-12", children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
322
329
|
/* @__PURE__ */ c(
|
|
323
330
|
"div",
|
|
324
331
|
{
|
|
325
332
|
className: "flex items-center gap-2",
|
|
326
333
|
style: {
|
|
327
|
-
color: n(
|
|
334
|
+
color: n(y, s === "dark" ? 0.72 : 0.64)
|
|
328
335
|
},
|
|
329
336
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ o(i, { variant: "caption", children: "OWP" }),
|
|
338
|
+
/* @__PURE__ */ o(Ne, { sx: { fontSize: 18 } }),
|
|
339
|
+
/* @__PURE__ */ o(i, { variant: "caption", children: "Theme Preview" })
|
|
333
340
|
]
|
|
334
341
|
}
|
|
335
342
|
),
|
|
336
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ o(i, { variant: "subtitle1", fontWeight: 700, children: "Toolbar" })
|
|
337
344
|
] }) }),
|
|
338
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ o("div", { className: "pointer-events-none absolute left-1/2 top-1/2 flex w-full max-w-[520px] -translate-x-1/2 -translate-y-1/2 justify-center px-12 text-center", children: /* @__PURE__ */ c(
|
|
339
346
|
i,
|
|
340
347
|
{
|
|
341
348
|
variant: "body2",
|
|
342
349
|
sx: {
|
|
343
|
-
color: n(
|
|
350
|
+
color: n(y, s === "dark" ? 0.92 : 0.84),
|
|
344
351
|
fontSize: 13,
|
|
345
352
|
fontWeight: 700
|
|
346
353
|
},
|
|
347
354
|
children: [
|
|
348
355
|
"로그인 화면 배경색은 Toolbar",
|
|
349
356
|
" ",
|
|
350
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ o(Ne, { sx: { mx: 0.25, fontSize: 18, verticalAlign: "middle" } }),
|
|
351
358
|
" ",
|
|
352
359
|
"Background Default 색상을 따라갑니다."
|
|
353
360
|
]
|
|
354
361
|
}
|
|
355
362
|
) }),
|
|
356
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-8", children: [cr, ir].map((a, d) => /* @__PURE__ */ o(
|
|
357
364
|
"div",
|
|
358
365
|
{
|
|
359
366
|
className: "flex h-32 w-32 items-center justify-center rounded-[10px] border border-solid",
|
|
360
|
-
style:
|
|
361
|
-
children: /* @__PURE__ */
|
|
367
|
+
style: Ee,
|
|
368
|
+
children: /* @__PURE__ */ o(a, { sx: { color: y, fontSize: 18 } })
|
|
362
369
|
},
|
|
363
370
|
`${d}`
|
|
364
371
|
)) })
|
|
@@ -370,67 +377,67 @@ function _r({
|
|
|
370
377
|
{
|
|
371
378
|
className: "relative flex min-h-0 flex-col",
|
|
372
379
|
style: {
|
|
373
|
-
backgroundColor:
|
|
374
|
-
borderRight: `1px solid ${
|
|
380
|
+
backgroundColor: $,
|
|
381
|
+
borderRight: `1px solid ${W}`,
|
|
375
382
|
color: b
|
|
376
383
|
},
|
|
377
384
|
children: [
|
|
378
|
-
|
|
385
|
+
G("navbar", 0, 0),
|
|
379
386
|
/* @__PURE__ */ c(
|
|
380
387
|
"div",
|
|
381
388
|
{
|
|
382
389
|
className: "flex items-center justify-between gap-8 px-16 py-14",
|
|
383
390
|
style: {
|
|
384
|
-
borderBottom: `1px solid ${
|
|
391
|
+
borderBottom: `1px solid ${W}`
|
|
385
392
|
},
|
|
386
393
|
children: [
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-10", children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
395
|
+
/* @__PURE__ */ o(
|
|
389
396
|
i,
|
|
390
397
|
{
|
|
391
398
|
variant: "subtitle2",
|
|
392
399
|
fontWeight: 700,
|
|
393
400
|
sx: {
|
|
394
|
-
color:
|
|
401
|
+
color: _
|
|
395
402
|
},
|
|
396
403
|
children: "Navbar"
|
|
397
404
|
}
|
|
398
405
|
),
|
|
399
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ o(i, { variant: "caption", sx: { color: De }, children: "Navigation" })
|
|
400
407
|
] }) }),
|
|
401
|
-
/* @__PURE__ */
|
|
402
|
-
|
|
408
|
+
/* @__PURE__ */ o(
|
|
409
|
+
lr,
|
|
403
410
|
{
|
|
404
411
|
"aria-label": "navbar menu",
|
|
405
412
|
className: "flex h-28 w-28 items-center justify-center rounded-[10px] border border-solid",
|
|
406
|
-
sx:
|
|
407
|
-
children: /* @__PURE__ */
|
|
413
|
+
sx: Fe,
|
|
414
|
+
children: /* @__PURE__ */ o(tr, { sx: { color: "inherit", fontSize: 16 } })
|
|
408
415
|
}
|
|
409
416
|
)
|
|
410
417
|
]
|
|
411
418
|
}
|
|
412
419
|
),
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
const
|
|
415
|
-
return /* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ o("div", { className: "flex flex-1 flex-col gap-4 px-10 py-10", children: wr.map((a, d) => {
|
|
421
|
+
const x = d === 1;
|
|
422
|
+
return /* @__PURE__ */ o(
|
|
416
423
|
"div",
|
|
417
424
|
{
|
|
418
425
|
className: "rounded-lg px-12 py-10",
|
|
419
426
|
style: {
|
|
420
|
-
backgroundColor:
|
|
421
|
-
color:
|
|
427
|
+
backgroundColor: x ? Oe : "transparent",
|
|
428
|
+
color: x ? v : X
|
|
422
429
|
},
|
|
423
|
-
children: /* @__PURE__ */
|
|
430
|
+
children: /* @__PURE__ */ o(i, { variant: "body2", fontWeight: x ? 700 : 500, children: a })
|
|
424
431
|
},
|
|
425
|
-
|
|
432
|
+
a
|
|
426
433
|
);
|
|
427
434
|
}) }),
|
|
428
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ o(
|
|
429
436
|
"div",
|
|
430
437
|
{
|
|
431
438
|
className: "px-12 py-12",
|
|
432
439
|
style: {
|
|
433
|
-
borderTop: `1px solid ${
|
|
440
|
+
borderTop: `1px solid ${W}`
|
|
434
441
|
},
|
|
435
442
|
children: /* @__PURE__ */ c(
|
|
436
443
|
"div",
|
|
@@ -438,19 +445,19 @@ function _r({
|
|
|
438
445
|
className: "flex min-h-[56px] items-center gap-12 rounded-lg px-8 py-8",
|
|
439
446
|
style: { color: b },
|
|
440
447
|
children: [
|
|
441
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ o(
|
|
442
449
|
"div",
|
|
443
450
|
{
|
|
444
451
|
className: "flex h-36 w-36 shrink-0 items-center justify-center rounded-full",
|
|
445
452
|
style: {
|
|
446
|
-
backgroundColor:
|
|
447
|
-
color:
|
|
453
|
+
backgroundColor: Ve,
|
|
454
|
+
color: je
|
|
448
455
|
},
|
|
449
|
-
children: /* @__PURE__ */
|
|
456
|
+
children: /* @__PURE__ */ o(i, { sx: { fontSize: 18, fontWeight: 700, lineHeight: 1 }, children: "관" })
|
|
450
457
|
}
|
|
451
458
|
),
|
|
452
459
|
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
453
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ o(
|
|
454
461
|
i,
|
|
455
462
|
{
|
|
456
463
|
className: "truncate",
|
|
@@ -464,12 +471,12 @@ function _r({
|
|
|
464
471
|
children: "Impix"
|
|
465
472
|
}
|
|
466
473
|
),
|
|
467
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ o(
|
|
468
475
|
i,
|
|
469
476
|
{
|
|
470
477
|
className: "truncate",
|
|
471
478
|
sx: {
|
|
472
|
-
color:
|
|
479
|
+
color: X,
|
|
473
480
|
fontSize: 14,
|
|
474
481
|
fontWeight: 500,
|
|
475
482
|
letterSpacing: "-0.02em",
|
|
@@ -479,7 +486,14 @@ function _r({
|
|
|
479
486
|
}
|
|
480
487
|
)
|
|
481
488
|
] }),
|
|
482
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ o(
|
|
490
|
+
"div",
|
|
491
|
+
{
|
|
492
|
+
className: "flex shrink-0 items-center justify-center",
|
|
493
|
+
style: { color: b },
|
|
494
|
+
children: /* @__PURE__ */ o(nr, { sx: { fontSize: 16 } })
|
|
495
|
+
}
|
|
496
|
+
)
|
|
483
497
|
]
|
|
484
498
|
}
|
|
485
499
|
)
|
|
@@ -493,26 +507,26 @@ function _r({
|
|
|
493
507
|
{
|
|
494
508
|
className: "relative flex min-h-0 flex-col gap-14 overflow-y-auto overflow-x-hidden p-14",
|
|
495
509
|
style: {
|
|
496
|
-
backgroundColor:
|
|
497
|
-
color:
|
|
510
|
+
backgroundColor: A,
|
|
511
|
+
color: ee
|
|
498
512
|
},
|
|
499
513
|
children: [
|
|
500
|
-
|
|
501
|
-
|
|
514
|
+
G("main", 8),
|
|
515
|
+
Re ? /* @__PURE__ */ o(
|
|
502
516
|
"div",
|
|
503
517
|
{
|
|
504
518
|
className: "absolute inset-14 z-10 flex items-center justify-center rounded-lg",
|
|
505
519
|
style: {
|
|
506
|
-
backgroundColor: n(
|
|
507
|
-
border: `1px solid ${
|
|
520
|
+
backgroundColor: n(S, 0.88),
|
|
521
|
+
border: `1px solid ${H}`
|
|
508
522
|
},
|
|
509
523
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center gap-10", children: [
|
|
510
|
-
/* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ o(dr, { color: "secondary", size: 34, thickness: 4.5 }),
|
|
525
|
+
/* @__PURE__ */ o(i, { variant: "body2", color: "text.secondary", fontWeight: 700, children: "로딩 중..." })
|
|
512
526
|
] })
|
|
513
527
|
}
|
|
514
528
|
) : null,
|
|
515
|
-
|
|
529
|
+
qe.map((a) => /* @__PURE__ */ o(fr, { children: Xe(a) }, `${a}-${Je[a]}`))
|
|
516
530
|
]
|
|
517
531
|
}
|
|
518
532
|
)
|
|
@@ -520,8 +534,8 @@ function _r({
|
|
|
520
534
|
}
|
|
521
535
|
) });
|
|
522
536
|
}
|
|
523
|
-
|
|
537
|
+
C(Qr, "ThemePreviewCanvas");
|
|
524
538
|
export {
|
|
525
|
-
|
|
539
|
+
Qr as ThemePreviewCanvas
|
|
526
540
|
};
|
|
527
541
|
//# sourceMappingURL=ThemePreviewCanvas.js.map
|