@owp/core 2.5.62 → 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.
Files changed (183) hide show
  1. package/dist/_virtual/index17.js +2 -5
  2. package/dist/_virtual/index17.js.map +1 -1
  3. package/dist/_virtual/index18.js +4 -4
  4. package/dist/_virtual/index19.js +4 -4
  5. package/dist/_virtual/index20.js +5 -2
  6. package/dist/_virtual/index20.js.map +1 -1
  7. package/dist/_virtual/index3.js +2 -2
  8. package/dist/_virtual/index4.js +2 -2
  9. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +73 -33
  10. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
  11. package/dist/components/OwpPageCarded/OwpPageCarded.js +10 -10
  12. package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
  13. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js +5 -5
  14. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js.map +1 -1
  15. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js +1 -1
  16. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js.map +1 -1
  17. package/dist/components/OwpPageContent/OwpPageContent.js +3 -3
  18. package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
  19. package/dist/components/{OwpPageTitle/OwpPageTitle.js → OwpPageContent/internal/PageTitle.js} +7 -7
  20. package/dist/components/OwpPageContent/internal/PageTitle.js.map +1 -0
  21. package/dist/components/OwpTable/OwpDataTable.js +98 -98
  22. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  23. package/dist/components/OwpTable/OwpFieldTable.js +70 -68
  24. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  25. package/dist/components/OwpTable/internal/OwpTableBase.js +47 -38
  26. package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
  27. package/dist/components/OwpTable/internal/defaultTableStyle.js +11 -8
  28. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
  29. package/dist/components/OwpTextField/OwpBarcodeInputField.js +50 -0
  30. package/dist/components/OwpTextField/OwpBarcodeInputField.js.map +1 -0
  31. package/dist/components/{OwpHidden/OwpHidden.js → internal/Hidden.js} +9 -9
  32. package/dist/components/internal/Hidden.js.map +1 -0
  33. package/dist/components/{OwpScrollbars/OwpScrollbars.js → internal/Scrollbars.js} +6 -6
  34. package/dist/components/internal/Scrollbars.js.map +1 -0
  35. package/dist/configs/defaultConfig.js +248 -159
  36. package/dist/configs/defaultConfig.js.map +1 -1
  37. package/dist/constants/tableTheme.js.map +1 -1
  38. package/dist/contexts/OwpDialogsContext.js.map +1 -0
  39. package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.js +3 -3
  40. package/dist/contexts/OwpDialogsProvider.js.map +1 -0
  41. package/dist/{components/OwpStyleProvider → contexts}/OwpStyleProvider.js +2 -2
  42. package/dist/contexts/OwpStyleProvider.js.map +1 -0
  43. package/dist/contexts/OwpUiProvider.js +22 -22
  44. package/dist/contexts/OwpUiProvider.js.map +1 -1
  45. package/dist/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js → contexts/internal/AutoLogoutDialog.js} +4 -4
  46. package/dist/contexts/internal/AutoLogoutDialog.js.map +1 -0
  47. package/dist/{components/OwpPageLockLoading/OwpPageLockLoading.js → contexts/internal/PageLockLoading.js} +11 -11
  48. package/dist/contexts/internal/PageLockLoading.js.map +1 -0
  49. package/dist/{components/OwpSnackbarContent/OwpSnackbarContent.js → contexts/internal/SnackbarContent.js} +26 -26
  50. package/dist/contexts/internal/SnackbarContent.js.map +1 -0
  51. package/dist/contexts.js +10 -6
  52. package/dist/contexts.js.map +1 -1
  53. package/dist/features/themePreview/components/ThemePreviewCanvas.js +268 -255
  54. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
  55. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +109 -107
  56. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
  57. package/dist/features/themePreview/components/ThemePreviewColorField.js +185 -188
  58. package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
  59. package/dist/features/themePreview/components/ThemePreviewControls.js +213 -206
  60. package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
  61. package/dist/features/themePreview/components/themePreviewCanvas.shared.js +140 -128
  62. package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
  63. package/dist/features/themePreview/configs/presets.js +90 -52
  64. package/dist/features/themePreview/configs/presets.js.map +1 -1
  65. package/dist/features/themePreview/configs/settings.js +51 -27
  66. package/dist/features/themePreview/configs/settings.js.map +1 -1
  67. package/dist/features/themePreview/configs/table.js +8 -5
  68. package/dist/features/themePreview/configs/table.js.map +1 -1
  69. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +250 -209
  70. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
  71. package/dist/features/themePreview/hooks/useThemePreview.js +373 -274
  72. package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
  73. package/dist/features/themePreview/utils/themePreviewDefinitions.js +57 -59
  74. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  75. package/dist/features/themePreview/utils/themePreviewExport.js +1 -1
  76. package/dist/features/themePreview/utils/themePreviewSettings.js +258 -170
  77. package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
  78. package/dist/hooks/useOwpDialogs.js +1 -1
  79. package/dist/index.js +89 -107
  80. package/dist/index.js.map +1 -1
  81. package/dist/layout/Layout.js +18 -18
  82. package/dist/layout/Layout.js.map +1 -1
  83. package/dist/layout/components/navbar/style/NavbarStyle.js +1 -1
  84. package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
  85. package/dist/layout/components/navbar/style/NavbarStyleContent.js +11 -11
  86. package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
  87. package/dist/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.js → layout/components/navigation/internal/NavLinkAdapter.js} +25 -25
  88. package/dist/layout/components/navigation/internal/NavLinkAdapter.js.map +1 -0
  89. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +15 -15
  90. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +6 -6
  91. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +4 -4
  92. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  93. package/dist/layout/components/toolbar/ToolbarLayout.js +29 -29
  94. package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
  95. package/dist/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.js → layout/components/toolbar/internal/PageBreadcrumb.js} +9 -9
  96. package/dist/layout/components/toolbar/internal/PageBreadcrumb.js.map +1 -0
  97. package/dist/{components/OwpPageSkeleton/OwpPageSkeleton.js → layout/internal/PageSkeleton.js} +9 -9
  98. package/dist/layout/internal/PageSkeleton.js.map +1 -0
  99. package/dist/{components/OwpSuspense/OwpSuspense.js → layout/internal/Suspense.js} +37 -37
  100. package/dist/layout/internal/Suspense.js.map +1 -0
  101. package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
  102. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  103. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  104. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  105. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
  106. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  107. package/dist/owp-app.css +1 -1
  108. package/dist/types/components/{OwpPageTitle/OwpPageTitle.d.ts → OwpPageContent/internal/PageTitle.d.ts} +3 -3
  109. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +5 -2
  110. package/dist/types/components/OwpTextField/OwpBarcodeInputField.d.ts +15 -0
  111. package/dist/types/components/OwpTextField/index.d.ts +1 -0
  112. package/dist/types/components/{OwpHidden/OwpHidden.d.ts → internal/Hidden.d.ts} +4 -4
  113. package/dist/types/components/{OwpScrollbars/OwpScrollbars.d.ts → internal/Scrollbars.d.ts} +7 -7
  114. package/dist/types/configs/defaultConfig.d.ts +4 -4
  115. package/dist/types/constants/tableTheme.d.ts +1 -0
  116. package/dist/types/contexts/index.d.ts +2 -0
  117. package/dist/types/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts → contexts/internal/AutoLogoutDialog.d.ts} +2 -2
  118. package/dist/types/contexts/internal/PageLockLoading.d.ts +7 -0
  119. package/dist/types/contexts/internal/SnackbarContent.d.ts +3 -0
  120. package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +4 -5
  121. package/dist/types/features/themePreview/configs/presets.d.ts +4 -2
  122. package/dist/types/features/themePreview/configs/settings.d.ts +26 -0
  123. package/dist/types/features/themePreview/configs/table.d.ts +2 -0
  124. package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +2 -0
  125. package/dist/types/hooks/usePageLockLoading.d.ts +3 -3
  126. package/dist/types/index.d.ts +1 -10
  127. package/dist/types/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts → layout/components/navigation/internal/NavLinkAdapter.d.ts} +3 -3
  128. package/dist/types/layout/internal/PageSkeleton.d.ts +6 -0
  129. package/dist/types/layout/internal/Suspense.d.ts +13 -0
  130. package/dist/types/types/OwpMuiThemeTypes.d.ts +16 -0
  131. package/dist/types/types/OwpTableThemeTypes.d.ts +2 -0
  132. package/dist/types/types/PageLockLoadingTypes.d.ts +9 -0
  133. package/dist/types/types/index.d.ts +1 -0
  134. package/package.json +1 -1
  135. package/dist/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js.map +0 -1
  136. package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js +0 -38
  137. package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js.map +0 -1
  138. package/dist/components/OwpDialogsProvider/OwpDialogsContext.js.map +0 -1
  139. package/dist/components/OwpDialogsProvider/OwpDialogsProvider.js.map +0 -1
  140. package/dist/components/OwpHidden/OwpHidden.js.map +0 -1
  141. package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +0 -1
  142. package/dist/components/OwpPageBreadcrumb/OwpPageBreadcrumb.js.map +0 -1
  143. package/dist/components/OwpPageLockLoading/OwpPageLockLoading.js.map +0 -1
  144. package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js.map +0 -1
  145. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +0 -1
  146. package/dist/components/OwpScrollbars/OwpScrollbars.js.map +0 -1
  147. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +0 -1
  148. package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +0 -1
  149. package/dist/components/OwpSuspense/OwpSuspense.js.map +0 -1
  150. package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js +0 -66
  151. package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js.map +0 -1
  152. package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js +0 -49
  153. package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js.map +0 -1
  154. 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
  155. 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
  156. 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
  157. 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
  158. package/dist/types/components/OwpAutoLogoutDialog/index.d.ts +0 -1
  159. package/dist/types/components/OwpBarcodeInput/OwpBarcodeInput.d.ts +0 -1
  160. package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +0 -7
  161. package/dist/types/components/OwpBarcodeInput/index.d.ts +0 -1
  162. package/dist/types/components/OwpDialogsProvider/index.d.ts +0 -1
  163. package/dist/types/components/OwpHidden/index.d.ts +0 -2
  164. package/dist/types/components/OwpNavLinkAdapter/index.d.ts +0 -2
  165. package/dist/types/components/OwpPageBreadcrumb/index.d.ts +0 -2
  166. package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +0 -15
  167. package/dist/types/components/OwpPageLockLoading/index.d.ts +0 -1
  168. package/dist/types/components/OwpPageSkeleton/OwpPageSkeleton.d.ts +0 -6
  169. package/dist/types/components/OwpPageSkeleton/index.d.ts +0 -1
  170. package/dist/types/components/OwpPageTitle/index.d.ts +0 -1
  171. package/dist/types/components/OwpScrollbars/index.d.ts +0 -1
  172. package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +0 -3
  173. package/dist/types/components/OwpStyleProvider/index.d.ts +0 -2
  174. package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +0 -16
  175. package/dist/types/components/OwpSuspense/index.d.ts +0 -1
  176. package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +0 -20
  177. package/dist/types/components/OwpZoomImageSlider/index.d.ts +0 -1
  178. package/dist/types/components/OwpZoomImageSlider/internal/ZoomImage.d.ts +0 -7
  179. /package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.js +0 -0
  180. /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.d.ts +0 -0
  181. /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.d.ts +0 -0
  182. /package/dist/types/{components/OwpStyleProvider → contexts}/OwpStyleProvider.d.ts +0 -0
  183. /package/dist/types/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts → layout/components/toolbar/internal/PageBreadcrumb.d.ts} +0 -0
@@ -1,74 +1,79 @@
1
- var ae = Object.defineProperty;
2
- var s = (r, d) => ae(r, "name", { value: d, configurable: !0 });
3
- import { jsx as o, jsxs as h } 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 { Divider as Z, MenuItem as W, ButtonBase as se, Typography as x, Paper as A, TextField as q, Box as de, IconButton as ce, FormControlLabel as ue, Checkbox as he } from "@mui/material";
5
- import me 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/RestartAltOutlined.js";
6
- import { createTheme as fe, ThemeProvider as pe } from "@mui/material/styles";
7
- import { useState as be, useRef as Ce, useMemo as B, useEffect as ge } from "react";
8
- import { toolbarCuratedPresetKeys as ve, designSystemPresetKeys as xe } from "../configs/presets.js";
9
- import { ThemePreviewColorField as J } from "./ThemePreviewColorField.js";
10
- import { getThemePreviewPresetOptionsByMode as ye, THEME_PREVIEW_CUSTOM_PRESET_KEY as O, isThemePreviewCustomSection as ke, getThemePreviewPaletteValue as R } from "../utils/themePreviewSettings.js";
11
- import { themePreviewFieldGroupsBySection as Pe, themePreviewSectionOptions as ee } from "../utils/themePreviewDefinitions.js";
12
- import { deriveThemePreviewPaletteGroupValues as we } from "../utils/color.js";
13
- function Te(r) {
14
- return r.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/^./, (d) => d.toUpperCase());
15
- }
16
- s(Te, "getThemePreviewFieldClusterLabel");
1
+ var se = Object.defineProperty;
2
+ var d = (r, a) => se(r, "name", { value: a, configurable: !0 });
3
+ import { jsx as o, jsxs as m } 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 { Divider as q, MenuItem as z, ButtonBase as de, Typography as x, Paper as G, TextField as J, Box as ce, IconButton as ue, FormControlLabel as he, Checkbox as me } from "@mui/material";
5
+ import fe 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/RestartAltOutlined.js";
6
+ import { createTheme as pe, ThemeProvider as be } from "@mui/material/styles";
7
+ import { useState as Ce, useRef as ge, useMemo as B, useEffect as ve } from "react";
8
+ import { toolbarCuratedPresetKeys as xe, designSystemPresetKeys as Pe } from "../configs/presets.js";
9
+ import { ThemePreviewColorField as O } from "./ThemePreviewColorField.js";
10
+ import { getThemePreviewPresetOptionsByMode as ke, THEME_PREVIEW_CUSTOM_PRESET_KEY as Q, isThemePreviewCustomSection as ye, getThemePreviewPaletteValue as M } from "../utils/themePreviewSettings.js";
11
+ import { themePreviewFieldGroupsBySection as we, themePreviewSectionOptions as re } from "../utils/themePreviewDefinitions.js";
12
+ import { deriveThemePreviewPaletteGroupValues as Te } from "../utils/color.js";
17
13
  function Be(r) {
18
- const d = r.find((f) => f.path.endsWith(".main")), p = r.find((f) => f.path.endsWith(".light")), m = r.find((f) => f.path.endsWith(".dark")), c = r.find((f) => f.path.endsWith(".contrastText"));
19
- return !d || !p && !m && !c ? null : {
20
- mainPath: d.path,
21
- lightPath: p == null ? void 0 : p.path,
22
- darkPath: m == null ? void 0 : m.path,
23
- contrastTextPath: c == null ? void 0 : c.path
24
- };
14
+ return r.replace(/\./g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/\b[a-z]/g, (a) => a.toUpperCase());
25
15
  }
26
- s(Be, "getThemePreviewAutoDerivedFieldPaths");
16
+ d(Be, "getThemePreviewFieldClusterLabel");
17
+ function K(r) {
18
+ const [a, c] = r.split(".");
19
+ return a === "button" && c ? `${a}.${c}` : a ?? "";
20
+ }
21
+ d(K, "getThemePreviewFieldClusterPrefix");
27
22
  function Me(r) {
28
- const d = r.reduce(
29
- (t, u) => {
30
- const i = u.path.split(".")[0] ?? "";
31
- return i && (t[i] || (t[i] = []), t[i].push(u)), t;
23
+ const a = r.find((p) => p.path.endsWith(".main")), c = r.find((p) => p.path.endsWith(".light")), f = r.find((p) => p.path.endsWith(".dark")), u = r.find((p) => p.path.endsWith(".contrastText"));
24
+ return !a || !c && !f && !u ? null : {
25
+ mainPath: a.path,
26
+ lightPath: c == null ? void 0 : c.path,
27
+ darkPath: f == null ? void 0 : f.path,
28
+ contrastTextPath: u == null ? void 0 : u.path
29
+ };
30
+ }
31
+ d(Me, "getThemePreviewAutoDerivedFieldPaths");
32
+ function Fe(r) {
33
+ const a = r.reduce(
34
+ (t, h) => {
35
+ const i = K(h.path);
36
+ return i && (t[i] || (t[i] = []), t[i].push(h)), t;
32
37
  },
33
38
  {}
34
- ), p = Object.fromEntries(
35
- Object.entries(d).map(([t, u]) => [
39
+ ), c = Object.fromEntries(
40
+ Object.entries(a).map(([t, h]) => [
36
41
  t,
37
- u.length
42
+ h.length
38
43
  ])
39
- ), m = new Set(
40
- Object.entries(p).filter(([, t]) => t > 1).map(([t]) => t)
41
- ), c = r.some(
42
- (t) => !m.has(t.path.split(".")[0] ?? "")
44
+ ), f = new Set(
45
+ Object.entries(c).filter(([, t]) => t > 1).map(([t]) => t)
46
+ ), u = r.some(
47
+ (t) => !f.has(K(t.path))
43
48
  );
44
- if (!(m.size > 1 || c))
49
+ if (!(f.size > 1 || u))
45
50
  return r.map((t) => ({
46
51
  key: t.path,
47
52
  fields: [t]
48
53
  }));
49
- const F = /* @__PURE__ */ new Set();
50
- return r.reduce((t, u) => {
51
- const i = u.path.split(".")[0] ?? "";
52
- if (!m.has(i))
54
+ const S = /* @__PURE__ */ new Set();
55
+ return r.reduce((t, h) => {
56
+ const i = K(h.path);
57
+ if (!f.has(i))
53
58
  return t.push({
54
- key: u.path,
55
- fields: [u]
59
+ key: h.path,
60
+ fields: [h]
56
61
  }), t;
57
- if (F.has(i))
62
+ if (S.has(i))
58
63
  return t;
59
- F.add(i);
60
- const S = d[i] ?? [u];
64
+ S.add(i);
65
+ const E = a[i] ?? [h];
61
66
  return t.push({
62
67
  key: i,
63
- label: Te(i),
64
- fields: S,
65
- autoDerivedFieldPaths: Be(S) ?? void 0
68
+ label: Be(i),
69
+ fields: E,
70
+ autoDerivedFieldPaths: Me(E) ?? void 0
66
71
  }), t;
67
72
  }, []);
68
73
  }
69
- s(Me, "getThemePreviewFieldClusters");
70
- const Fe = Object.fromEntries(
71
- ee.map((r) => [r.key, r])
74
+ d(Fe, "getThemePreviewFieldClusters");
75
+ const Se = Object.fromEntries(
76
+ re.map((r) => [r.key, r])
72
77
  ), g = {
73
78
  active: {
74
79
  backgroundColor: "#1ea3e6",
@@ -82,25 +87,25 @@ const Fe = Object.fromEntries(
82
87
  descriptionColor: "#6b7280",
83
88
  textColor: "#111827"
84
89
  }
85
- }, M = "#d8dee8", Se = "#d1d7e0", Ee = "#f8fafc", D = "#ffffff", y = "#111827", v = "#6b7280", Q = "#ffffff", re = "#cbd5e1", Ne = "#94a3b8", z = "#1ea3e6", V = "#111827", Ie = "#f8fafc", We = "#f8fafc", ze = `특별한 경우가 아니면 연동 색상 편집은 권장하지 않습니다.
90
+ }, F = "#d8dee8", Ee = "#d1d7e0", Ne = "#f8fafc", D = "#ffffff", P = "#111827", v = "#6b7280", V = "#ffffff", oe = "#cbd5e1", Ie = "#94a3b8", $ = "#1ea3e6", X = "#111827", We = "#f8fafc", ze = "#f8fafc", $e = `특별한 경우가 아니면 연동 색상 편집은 권장하지 않습니다.
86
91
 
87
92
  Primary Main 값을 선택하면 Light, Dark, Contrast 값이 자동으로 채워집니다.
88
- 특수한 디자인 조정이 필요한 경우에만 직접 편집하세요.`, je = fe({
93
+ 특수한 디자인 조정이 필요한 경우에만 직접 편집하세요.`, je = pe({
89
94
  palette: {
90
95
  mode: "light",
91
96
  background: {
92
97
  default: D,
93
98
  paper: D
94
99
  },
95
- divider: M,
100
+ divider: F,
96
101
  primary: {
97
- main: z
102
+ main: $
98
103
  },
99
104
  secondary: {
100
- main: z
105
+ main: $
101
106
  },
102
107
  text: {
103
- primary: y,
108
+ primary: P,
104
109
  secondary: v
105
110
  }
106
111
  },
@@ -114,8 +119,8 @@ Primary Main 값을 선택하면 Light, Dark, Contrast 값이 자동으로 채
114
119
  fontSize: "1.3rem"
115
120
  }
116
121
  }
117
- }), Ke = {
118
- color: y,
122
+ }), Le = {
123
+ color: P,
119
124
  "& .MuiFormHelperText-root": {
120
125
  color: v
121
126
  },
@@ -126,22 +131,22 @@ Primary Main 값을 선택하면 Light, Dark, Contrast 값이 자동으로 채
126
131
  color: v
127
132
  },
128
133
  "& .MuiInputLabel-root.Mui-focused": {
129
- color: y
134
+ color: P
130
135
  },
131
136
  "& .MuiInputBase-input": {
132
- color: y
137
+ color: P
133
138
  },
134
139
  "& .MuiOutlinedInput-root": {
135
- backgroundColor: Q,
136
- color: y,
140
+ backgroundColor: V,
141
+ color: P,
137
142
  "& fieldset": {
138
- borderColor: re
143
+ borderColor: oe
139
144
  },
140
145
  "&:hover fieldset": {
141
- borderColor: Ne
146
+ borderColor: Ie
142
147
  },
143
148
  "&.Mui-focused fieldset": {
144
- borderColor: z,
149
+ borderColor: $,
145
150
  borderWidth: 1
146
151
  }
147
152
  },
@@ -149,71 +154,71 @@ Primary Main 값을 선택하면 Light, Dark, Contrast 값이 자동으로 채
149
154
  color: v
150
155
  },
151
156
  "& .MuiButton-outlined": {
152
- backgroundColor: Q,
153
- borderColor: V,
154
- color: y,
157
+ backgroundColor: V,
158
+ borderColor: X,
159
+ color: P,
155
160
  "&:hover": {
156
- backgroundColor: Ie,
157
- borderColor: V
161
+ backgroundColor: We,
162
+ borderColor: X
158
163
  }
159
164
  },
160
165
  "& .MuiCheckbox-root": {
161
166
  color: v
162
167
  },
163
168
  "& .MuiCheckbox-root.Mui-checked": {
164
- color: z
169
+ color: $
165
170
  },
166
171
  "& .MuiDivider-root": {
167
- borderColor: M
172
+ borderColor: F
168
173
  }
169
- }, Le = /* @__PURE__ */ new Set([
170
- ...ve,
171
- ...xe
172
- ]), X = /* @__PURE__ */ new Set(["tableFieldHeader", "tableFieldCell"]);
173
- function Je({
174
+ }, Ae = /* @__PURE__ */ new Set([
175
+ ...xe,
176
+ ...Pe
177
+ ]), ee = /* @__PURE__ */ new Set(["tableFieldHeader", "tableFieldCell"]);
178
+ function Oe({
174
179
  activeSection: r,
175
- presetOptions: d,
176
- selectedMode: p,
177
- selectedPresetKey: m,
178
- settings: c,
179
- resetVersion: f,
180
- onSectionChange: F,
180
+ presetOptions: a,
181
+ selectedMode: c,
182
+ selectedPresetKey: f,
183
+ settings: u,
184
+ resetVersion: p,
185
+ onSectionChange: S,
181
186
  onPaletteValueChange: t,
182
- onPaletteValuesChange: u,
187
+ onPaletteValuesChange: h,
183
188
  onPaletteValueReset: i,
184
- onPaletteValuesReset: S,
185
- onPresetKeyChange: oe,
186
- onPresetModeChange: te
189
+ onPaletteValuesReset: E,
190
+ onPresetKeyChange: te,
191
+ onPresetModeChange: le
187
192
  }) {
188
- const [le, ne] = be({}), j = Ce(null), E = !ke(r), b = E ? r : null, N = B(
189
- () => E && b ? ye(d, b, p) : [],
190
- [E, d, b, p]
191
- ), G = B(
193
+ const [ne, ae] = Ce({}), j = ge(null), N = !ye(r), C = N ? r : null, I = B(
194
+ () => N && C ? ke(a, C, c) : [],
195
+ [N, a, C, c]
196
+ ), H = B(
192
197
  () => {
193
198
  var e;
194
- return (e = N.find(
195
- (l) => !Le.has(l.key)
199
+ return (e = I.find(
200
+ (l) => !Ae.has(l.key)
196
201
  )) == null ? void 0 : e.key;
197
202
  },
198
- [N]
199
- ), H = Pe[r], I = B(
200
- () => H.map((e) => ({
203
+ [I]
204
+ ), U = we[r], W = B(
205
+ () => U.map((e) => ({
201
206
  ...e,
202
- fieldClusters: Me(e.fields)
207
+ fieldClusters: Fe(e.fields)
203
208
  })),
204
- [H]
205
- ), U = B(() => {
209
+ [U]
210
+ ), _ = B(() => {
206
211
  if (r !== "table")
207
212
  return [
208
213
  {
209
214
  key: r,
210
- fieldGroups: I
215
+ fieldGroups: W
211
216
  }
212
217
  ];
213
- const e = I.filter(
214
- (n) => X.has(n.key)
215
- ), l = I.filter(
216
- (n) => !X.has(n.key)
218
+ const e = W.filter(
219
+ (n) => ee.has(n.key)
220
+ ), l = W.filter(
221
+ (n) => !ee.has(n.key)
217
222
  );
218
223
  return [
219
224
  {
@@ -227,12 +232,12 @@ function Je({
227
232
  fieldGroups: l
228
233
  }
229
234
  ].filter((n) => n.fieldGroups.length > 0);
230
- }, [r, I]), K = Fe[r], ie = B(
231
- () => N.flatMap((e) => {
235
+ }, [r, W]), L = Se[r], ie = B(
236
+ () => I.flatMap((e) => {
232
237
  const l = [];
233
- return e.key === G && l.push(
238
+ return e.key === H && l.push(
234
239
  /* @__PURE__ */ o(
235
- Z,
240
+ q,
236
241
  {
237
242
  component: "li",
238
243
  role: "presentation",
@@ -247,103 +252,102 @@ function Je({
247
252
  "preset-legacy-divider"
248
253
  )
249
254
  ), l.push(
250
- /* @__PURE__ */ o(W, { value: e.key, children: e.label }, e.key)
255
+ /* @__PURE__ */ o(z, { value: e.key, children: e.label }, e.key)
251
256
  ), l;
252
257
  }),
253
- [G, N]
258
+ [H, I]
254
259
  );
255
- ge(() => {
260
+ ve(() => {
256
261
  j.current && (j.current.scrollTop = 0);
257
262
  }, [r]);
258
- const _ = /* @__PURE__ */ s((e, l, n) => {
259
- const k = R(c, e, "common.white") || "#FFFFFF", w = R(c, e, "common.black") || "#111827", a = we(n, {
263
+ const Y = /* @__PURE__ */ d((e, l, n) => {
264
+ const k = M(u, e, "common.white") || "#FFFFFF", w = M(u, e, "common.black") || "#111827", s = Te(n, {
260
265
  whiteTextColor: k,
261
266
  blackTextColor: w
262
267
  });
263
- return a ? [
264
- l.lightPath ? { path: l.lightPath, value: a.light } : null,
265
- l.darkPath ? { path: l.darkPath, value: a.dark } : null,
266
- l.contrastTextPath ? { path: l.contrastTextPath, value: a.contrastText } : null
267
- ].filter((L) => !!L) : [];
268
- }, "getAutoDerivedUpdates"), Y = /* @__PURE__ */ s((e) => {
268
+ return s ? [
269
+ l.lightPath ? { path: l.lightPath, value: s.light } : null,
270
+ l.darkPath ? { path: l.darkPath, value: s.dark } : null,
271
+ l.contrastTextPath ? { path: l.contrastTextPath, value: s.contrastText } : null
272
+ ].filter((A) => !!A) : [];
273
+ }, "getAutoDerivedUpdates"), Z = /* @__PURE__ */ d((e) => {
269
274
  const l = e.fieldClusters.flatMap(
270
275
  (n) => n.fields.map((k) => k.path)
271
276
  );
272
- return /* @__PURE__ */ h("div", { className: "flex flex-col gap-12", children: [
273
- e.label ? /* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-8", children: [
277
+ return /* @__PURE__ */ m("div", { className: "flex flex-col gap-12", children: [
278
+ e.label ? /* @__PURE__ */ m("div", { className: "flex items-center justify-between gap-8", children: [
274
279
  /* @__PURE__ */ o(x, { variant: "subtitle1", fontWeight: 700, children: e.label }),
275
280
  /* @__PURE__ */ o(
276
- ce,
281
+ ue,
277
282
  {
278
283
  size: "small",
279
284
  "aria-label": `${e.label} reset`,
280
- onClick: /* @__PURE__ */ s(() => {
281
- S(l);
285
+ onClick: /* @__PURE__ */ d(() => {
286
+ E(l);
282
287
  }, "onClick"),
283
288
  sx: {
284
- border: `1px solid ${re}`,
289
+ border: `1px solid ${oe}`,
285
290
  borderRadius: 1,
286
291
  color: v,
287
292
  p: 0.5
288
293
  },
289
- children: /* @__PURE__ */ o(me, { sx: { fontSize: 18 } })
294
+ children: /* @__PURE__ */ o(fe, { sx: { fontSize: 18 } })
290
295
  }
291
296
  )
292
297
  ] }) : null,
293
298
  /* @__PURE__ */ o("div", { className: "grid gap-12", children: e.fieldClusters.map((n) => {
294
299
  if (!n.label)
295
- return n.fields.map((C) => /* @__PURE__ */ o(
296
- J,
300
+ return n.fields.map((b) => /* @__PURE__ */ o(
301
+ O,
297
302
  {
298
- definition: C,
299
- resetVersion: f,
300
- sectionKey: r,
301
- settings: c,
303
+ definition: b,
304
+ resetVersion: p,
305
+ value: M(u, r, b.path),
302
306
  onChange: t,
303
307
  onReset: i
304
308
  },
305
- C.path
309
+ b.path
306
310
  ));
307
- const k = `${r}:${e.key}:${n.key}`, w = !!le[k], a = n.autoDerivedFieldPaths, L = !!(a && b);
308
- return /* @__PURE__ */ h(
309
- A,
311
+ const k = `${r}:${e.key}:${n.key}`, w = !!ne[k], s = n.autoDerivedFieldPaths, A = !!(s && C);
312
+ return /* @__PURE__ */ m(
313
+ G,
310
314
  {
311
315
  variant: "outlined",
312
316
  sx: {
313
- backgroundColor: Ee,
314
- borderColor: Se,
317
+ backgroundColor: Ne,
318
+ borderColor: Ee,
315
319
  display: "flex",
316
320
  flexDirection: "column",
317
321
  gap: 1.5,
318
322
  p: 1.5
319
323
  },
320
324
  children: [
321
- /* @__PURE__ */ h("div", { className: "flex items-start justify-between gap-12", children: [
325
+ /* @__PURE__ */ m("div", { className: "flex items-start justify-between gap-12", children: [
322
326
  /* @__PURE__ */ o(x, { variant: "body2", fontWeight: 700, children: n.label }),
323
- L ? /* @__PURE__ */ o(
324
- ue,
327
+ A ? /* @__PURE__ */ o(
328
+ he,
325
329
  {
326
330
  className: "m-0",
327
331
  control: /* @__PURE__ */ o(
328
- he,
332
+ me,
329
333
  {
330
334
  size: "small",
331
335
  checked: w,
332
- onChange: /* @__PURE__ */ s((C) => {
333
- const T = C.target.checked;
336
+ onChange: /* @__PURE__ */ d((b) => {
337
+ const T = b.target.checked;
334
338
  T && !window.confirm(
335
- ze
336
- ) || (ne((P) => ({
337
- ...P,
339
+ $e
340
+ ) || (ae((y) => ({
341
+ ...y,
338
342
  [k]: T
339
- })), !T && (!b || !a || u(
340
- _(
341
- b,
342
- a,
343
- R(
344
- c,
343
+ })), !T && (!C || !s || h(
344
+ Y(
345
+ C,
346
+ s,
347
+ M(
348
+ u,
345
349
  r,
346
- a.mainPath
350
+ s.mainPath
347
351
  )
348
352
  )
349
353
  )));
@@ -354,33 +358,36 @@ function Je({
354
358
  }
355
359
  ) : null
356
360
  ] }),
357
- /* @__PURE__ */ o("div", { className: "grid gap-12", children: n.fields.map((C) => {
358
- const T = a && b ? !w && C.path !== a.mainPath : !1;
361
+ /* @__PURE__ */ o("div", { className: "grid gap-12", children: n.fields.map((b) => {
362
+ const T = s && C ? !w && b.path !== s.mainPath : !1;
359
363
  return /* @__PURE__ */ o(
360
- J,
364
+ O,
361
365
  {
362
366
  disabled: T,
363
- definition: C,
364
- resetVersion: f,
365
- sectionKey: r,
366
- settings: c,
367
- onChange: /* @__PURE__ */ s((P, $) => {
368
- if (!a || !b || w || P !== a.mainPath) {
369
- t(P, $);
367
+ definition: b,
368
+ resetVersion: p,
369
+ value: M(
370
+ u,
371
+ r,
372
+ b.path
373
+ ),
374
+ onChange: /* @__PURE__ */ d((y, R) => {
375
+ if (!s || !C || w || y !== s.mainPath) {
376
+ t(y, R);
370
377
  return;
371
378
  }
372
- u([
373
- { path: P, value: $ },
374
- ..._(
375
- b,
376
- a,
377
- $
379
+ h([
380
+ { path: y, value: R },
381
+ ...Y(
382
+ C,
383
+ s,
384
+ R
378
385
  )
379
386
  ]);
380
387
  }, "onChange"),
381
388
  onReset: i
382
389
  },
383
- C.path
390
+ b.path
384
391
  );
385
392
  }) })
386
393
  ]
@@ -390,13 +397,13 @@ function Je({
390
397
  }) })
391
398
  ] }, e.key);
392
399
  }, "renderFieldGroup");
393
- return /* @__PURE__ */ o(pe, { theme: je, children: /* @__PURE__ */ h(de, { sx: Ke, className: "flex h-full min-h-0 flex-col gap-16", children: [
394
- /* @__PURE__ */ o("div", { className: "grid grid-cols-2 gap-12", children: ee.map((e) => {
400
+ return /* @__PURE__ */ o(be, { theme: je, children: /* @__PURE__ */ m(ce, { sx: Le, className: "flex h-full min-h-0 flex-col gap-16", children: [
401
+ /* @__PURE__ */ o("div", { className: "grid grid-cols-2 gap-12", children: re.map((e) => {
395
402
  const l = e.key === r;
396
403
  return /* @__PURE__ */ o(
397
- se,
404
+ de,
398
405
  {
399
- onClick: /* @__PURE__ */ s(() => F(e.key), "onClick"),
406
+ onClick: /* @__PURE__ */ d(() => S(e.key), "onClick"),
400
407
  className: "w-full rounded-lg text-left",
401
408
  sx: {
402
409
  alignItems: "flex-start",
@@ -405,7 +412,7 @@ function Je({
405
412
  color: l ? g.active.textColor : g.inactive.textColor,
406
413
  p: 2
407
414
  },
408
- children: /* @__PURE__ */ h("div", { className: "flex w-full flex-col gap-4", children: [
415
+ children: /* @__PURE__ */ m("div", { className: "flex w-full flex-col gap-4", children: [
409
416
  /* @__PURE__ */ o(x, { variant: "subtitle1", fontWeight: 600, children: e.label }),
410
417
  e.description ? /* @__PURE__ */ o(
411
418
  x,
@@ -422,45 +429,45 @@ function Je({
422
429
  e.key
423
430
  );
424
431
  }) }),
425
- /* @__PURE__ */ h(
426
- A,
432
+ /* @__PURE__ */ m(
433
+ G,
427
434
  {
428
435
  className: "flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg",
429
436
  sx: {
430
437
  backgroundColor: D,
431
- border: `1px solid ${M}`,
438
+ border: `1px solid ${F}`,
432
439
  boxShadow: "none"
433
440
  },
434
441
  children: [
435
- /* @__PURE__ */ o("div", { className: "flex items-center justify-between px-20 py-16", children: /* @__PURE__ */ h("div", { className: "flex min-w-0 flex-1 flex-col gap-14", children: [
436
- /* @__PURE__ */ o(x, { variant: "h6", sx: { color: y }, children: K == null ? void 0 : K.label }),
437
- E ? /* @__PURE__ */ h("div", { className: "grid gap-12 md:grid-cols-2", children: [
438
- /* @__PURE__ */ h(
439
- q,
442
+ /* @__PURE__ */ o("div", { className: "flex items-center justify-between px-20 py-16", children: /* @__PURE__ */ m("div", { className: "flex min-w-0 flex-1 flex-col gap-14", children: [
443
+ /* @__PURE__ */ o(x, { variant: "h6", sx: { color: P }, children: L == null ? void 0 : L.label }),
444
+ N ? /* @__PURE__ */ m("div", { className: "grid gap-12 md:grid-cols-2", children: [
445
+ /* @__PURE__ */ m(
446
+ J,
440
447
  {
441
448
  select: !0,
442
449
  label: "Mode",
443
- value: p,
444
- onChange: /* @__PURE__ */ s((e) => {
445
- te(e.target.value);
450
+ value: c,
451
+ onChange: /* @__PURE__ */ d((e) => {
452
+ le(e.target.value);
446
453
  }, "onChange"),
447
454
  children: [
448
- /* @__PURE__ */ o(W, { value: "light", children: "light" }),
449
- /* @__PURE__ */ o(W, { value: "dark", children: "dark" })
455
+ /* @__PURE__ */ o(z, { value: "light", children: "light" }),
456
+ /* @__PURE__ */ o(z, { value: "dark", children: "dark" })
450
457
  ]
451
458
  }
452
459
  ),
453
- /* @__PURE__ */ h(
454
- q,
460
+ /* @__PURE__ */ m(
461
+ J,
455
462
  {
456
463
  select: !0,
457
464
  label: "Preset",
458
- value: m,
459
- onChange: /* @__PURE__ */ s((e) => {
460
- oe(e.target.value);
465
+ value: f,
466
+ onChange: /* @__PURE__ */ d((e) => {
467
+ te(e.target.value);
461
468
  }, "onChange"),
462
469
  children: [
463
- m === O ? /* @__PURE__ */ o(W, { value: O, children: "custom" }) : null,
470
+ f === Q ? /* @__PURE__ */ o(z, { value: Q, children: "custom" }) : null,
464
471
  ie
465
472
  ]
466
473
  }
@@ -468,10 +475,10 @@ function Je({
468
475
  ] }) : null
469
476
  ] }) }),
470
477
  /* @__PURE__ */ o(
471
- Z,
478
+ q,
472
479
  {
473
480
  sx: {
474
- borderColor: M
481
+ borderColor: F
475
482
  }
476
483
  }
477
484
  ),
@@ -480,13 +487,13 @@ function Je({
480
487
  {
481
488
  ref: j,
482
489
  className: "flex min-h-0 flex-1 flex-col gap-20 overflow-y-auto px-20 py-20",
483
- children: U.map((e) => r === "table" && U.length > 1 ? /* @__PURE__ */ h(
484
- A,
490
+ children: _.map((e) => r === "table" && _.length > 1 ? /* @__PURE__ */ m(
491
+ G,
485
492
  {
486
493
  variant: "outlined",
487
494
  sx: {
488
- backgroundColor: We,
489
- borderColor: M,
495
+ backgroundColor: ze,
496
+ borderColor: F,
490
497
  boxShadow: "none",
491
498
  display: "flex",
492
499
  flexDirection: "column",
@@ -495,11 +502,11 @@ function Je({
495
502
  },
496
503
  children: [
497
504
  e.label ? /* @__PURE__ */ o(x, { variant: "subtitle1", fontWeight: 700, children: e.label }) : null,
498
- /* @__PURE__ */ o("div", { className: "grid gap-20", children: e.fieldGroups.map(Y) })
505
+ /* @__PURE__ */ o("div", { className: "grid gap-20", children: e.fieldGroups.map(Z) })
499
506
  ]
500
507
  },
501
508
  e.key
502
- ) : e.fieldGroups.map(Y))
509
+ ) : e.fieldGroups.map(Z))
503
510
  }
504
511
  )
505
512
  ]
@@ -507,8 +514,8 @@ function Je({
507
514
  )
508
515
  ] }) });
509
516
  }
510
- s(Je, "ThemePreviewControls");
517
+ d(Oe, "ThemePreviewControls");
511
518
  export {
512
- Je as ThemePreviewControls
519
+ Oe as ThemePreviewControls
513
520
  };
514
521
  //# sourceMappingURL=ThemePreviewControls.js.map