@owp/core 2.5.17 → 2.5.19

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 (89) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index16.js +4 -4
  6. package/dist/_virtual/index17.js +4 -4
  7. package/dist/_virtual/index18.js +4 -4
  8. package/dist/_virtual/index19.js +4 -4
  9. package/dist/components/OwpPageContent/OwpPageContent.js +14 -12
  10. package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
  11. package/dist/components/OwpPageTitle/OwpPageTitle.js +37 -35
  12. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
  13. package/dist/components/OwpPicker/OwpDatePicker.js +339 -102
  14. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  15. package/dist/components/OwpPicker/OwpDateRangePicker.js +87 -82
  16. package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
  17. package/dist/components/OwpPicker/OwpTimePicker.js +494 -220
  18. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  19. package/dist/components/OwpPicker/constants/index.js +6 -5
  20. package/dist/components/OwpPicker/constants/index.js.map +1 -1
  21. package/dist/components/OwpPicker/internal/DatePickerInput.js +71 -47
  22. package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
  23. package/dist/components/OwpSection/OwpSection.js +84 -62
  24. package/dist/components/OwpSection/OwpSection.js.map +1 -1
  25. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +42 -40
  26. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
  27. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +273 -224
  28. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  29. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +476 -105
  30. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  31. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +317 -245
  32. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  33. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +315 -151
  34. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  35. package/dist/constants/gridTheme.js +9 -7
  36. package/dist/constants/gridTheme.js.map +1 -1
  37. package/dist/constants/treeGrid.js +37 -35
  38. package/dist/constants/treeGrid.js.map +1 -1
  39. package/dist/constants.js +25 -23
  40. package/dist/features/themePreview/configs/grid.js +3 -1
  41. package/dist/features/themePreview/configs/grid.js.map +1 -1
  42. package/dist/features/themePreview/utils/themePreviewDefinitions.js +10 -0
  43. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  44. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  45. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  46. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  47. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  48. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  49. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  50. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  51. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  52. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  53. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  54. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  55. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  56. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  57. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  58. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  59. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  60. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  61. package/dist/owp-app.css +1 -1
  62. package/dist/types/components/OwpPageContent/OwpPageContent.d.ts +3 -1
  63. package/dist/types/components/OwpPageTitle/OwpPageTitle.d.ts +3 -1
  64. package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +3 -1
  65. package/dist/types/components/OwpPicker/constants/index.d.ts +1 -0
  66. package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +7 -0
  67. package/dist/types/components/OwpSection/OwpSection.d.ts +3 -1
  68. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +6 -6
  69. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +3 -0
  70. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +33 -7
  71. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
  72. package/dist/types/constants/gridTheme.d.ts +4 -0
  73. package/dist/types/constants/treeGrid.d.ts +3 -1
  74. package/dist/types/features/themePreview/configs/grid.d.ts +2 -0
  75. package/dist/types/features/themePreview/configs/settings.d.ts +2 -0
  76. package/dist/types/types/OwpGridThemeTypes.d.ts +2 -0
  77. package/dist/types/utils/index.d.ts +0 -1
  78. package/dist/types/utils/treeGridUtil.d.ts +42 -3
  79. package/dist/utils/treeGridUtil.js +220 -119
  80. package/dist/utils/treeGridUtil.js.map +1 -1
  81. package/dist/utils.js +90 -86
  82. package/dist/utils.js.map +1 -1
  83. package/package.json +1 -1
  84. package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js +0 -84
  85. package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js.map +0 -1
  86. package/dist/types/components/OwpTreeGrid/internal/treeGridColumnEditRules.d.ts +0 -60
  87. package/dist/types/utils/normalizeTimeToHourMinute.d.ts +0 -11
  88. package/dist/utils/normalizeTimeToHourMinute.js +0 -34
  89. package/dist/utils/normalizeTimeToHourMinute.js.map +0 -1
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var r = {};
2
2
  export {
3
- a as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index10.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var a = {};
2
2
  export {
3
- r as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index12.js.map
@@ -1,5 +1,5 @@
1
- var e = {};
1
+ var r = {};
2
2
  export {
3
- e as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index13.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var e = {};
2
2
  export {
3
- r as __exports
3
+ e as __exports
4
4
  };
5
5
  //# sourceMappingURL=index14.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
2
+ import { __require as t } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js";
3
+ var o = t();
4
+ const m = /* @__PURE__ */ r(o);
5
5
  export {
6
- s as default
6
+ m as default
7
7
  };
8
8
  //# sourceMappingURL=index16.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as t } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js";
3
- var o = t();
4
- const m = /* @__PURE__ */ r(o);
2
+ import { __require as e } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js";
3
+ var o = e();
4
+ const s = /* @__PURE__ */ r(o);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };
8
8
  //# sourceMappingURL=index17.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as e } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js";
3
- var o = e();
4
- const s = /* @__PURE__ */ r(o);
2
+ import { __require as t } from "../node_modules/.pnpm/react-autosuggest@10.1.0_react@19.2.4/node_modules/react-autosuggest/dist/index.js";
3
+ var o = t();
4
+ const i = /* @__PURE__ */ r(o);
5
5
  export {
6
- s as default
6
+ i as default
7
7
  };
8
8
  //# sourceMappingURL=index18.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as t } from "../node_modules/.pnpm/react-autosuggest@10.1.0_react@19.2.4/node_modules/react-autosuggest/dist/index.js";
3
- var o = t();
4
- const i = /* @__PURE__ */ r(o);
2
+ import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
+ var p = /* @__PURE__ */ o();
4
+ const s = /* @__PURE__ */ r(p);
5
5
  export {
6
- i as default
6
+ s as default
7
7
  };
8
8
  //# sourceMappingURL=index19.js.map
@@ -1,33 +1,35 @@
1
- var m = Object.defineProperty;
2
- var n = (e, o) => m(e, "name", { value: o, configurable: !0 });
1
+ var c = Object.defineProperty;
2
+ var n = (e, o) => c(e, "name", { value: o, configurable: !0 });
3
3
  import { jsxs as r, jsx as l } 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 c } from "@mui/material";
5
- import { OwpPageTitle as t } from "../OwpPageTitle/OwpPageTitle.js";
6
- const g = /* @__PURE__ */ n(({
4
+ import { Divider as t } from "@mui/material";
5
+ import { OwpPageTitle as f } from "../OwpPageTitle/OwpPageTitle.js";
6
+ const u = /* @__PURE__ */ n(({
7
7
  title: e,
8
8
  leftSlot: o,
9
9
  centerSlot: a,
10
10
  actions: s,
11
- children: d
11
+ children: d,
12
+ loading: i
12
13
  }) => {
13
- const i = !!(e != null && e !== "" || o || a || s);
14
+ const m = !!(e != null && e !== "" || o || a || s);
14
15
  return /* @__PURE__ */ r("div", { className: "OwpPageContent-root flex h-full w-full flex-col", children: [
15
- i && /* @__PURE__ */ r("div", { className: "OwpPageContent-header sticky", children: [
16
+ m && /* @__PURE__ */ r("div", { className: "OwpPageContent-header sticky", children: [
16
17
  /* @__PURE__ */ l(
17
- t,
18
+ f,
18
19
  {
19
20
  title: e,
20
21
  leftSlot: o,
21
22
  centerSlot: a,
22
- actions: s
23
+ actions: s,
24
+ loading: i
23
25
  }
24
26
  ),
25
- /* @__PURE__ */ l(c, { className: "my-12" })
27
+ /* @__PURE__ */ l(t, { className: "my-12" })
26
28
  ] }),
27
29
  /* @__PURE__ */ l("div", { className: "OwpPageContent-body flex min-h-0 flex-1 flex-col", children: d })
28
30
  ] });
29
31
  }, "OwpPageContent");
30
32
  export {
31
- g as OwpPageContent
33
+ u as OwpPageContent
32
34
  };
33
35
  //# sourceMappingURL=OwpPageContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OwpPageContent.js","sources":["../../../src/components/OwpPageContent/OwpPageContent.tsx"],"sourcesContent":["import { Divider } from '@mui/material';\nimport type { ReactNode } from 'react';\nimport { OwpPageTitle } from '../OwpPageTitle';\n\ninterface OwpPageContentProps {\n title?: ReactNode;\n leftSlot?: ReactNode;\n centerSlot?: ReactNode;\n actions?: ReactNode;\n children?: ReactNode;\n}\n\n/**\n * OwpPageContent 컴포넌트\n * @param title 제목\n * @param leftSlot leftSlot 값\n * @param centerSlot centerSlot 값\n * @param actions 액션 영역\n * @param children 하위 콘텐츠\n */\nconst OwpPageContent = ({\n title,\n leftSlot,\n centerSlot,\n actions,\n children,\n}: OwpPageContentProps) => {\n const hasTitle = title !== undefined && title !== null && title !== '';\n const shouldRenderHeader = Boolean(hasTitle || leftSlot || centerSlot || actions);\n\n return (\n <div className=\"OwpPageContent-root flex h-full w-full flex-col\">\n {shouldRenderHeader && (\n <div className=\"OwpPageContent-header sticky\">\n <OwpPageTitle\n title={title}\n leftSlot={leftSlot}\n centerSlot={centerSlot}\n actions={actions}\n />\n <Divider className=\"my-12\" />\n </div>\n )}\n <div className=\"OwpPageContent-body flex min-h-0 flex-1 flex-col\">{children}</div>\n </div>\n );\n};\n\nexport { OwpPageContent };\n"],"names":["OwpPageContent","__name","title","leftSlot","centerSlot","actions","children","shouldRenderHeader","jsxs","jsx","OwpPageTitle","Divider"],"mappings":";;;;;AAoBA,MAAMA,IAAiB,gBAAAC,EAAA,CAAC;AAAA,EACtB,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,MAA2B;AAEzB,QAAMC,IAAqB,GADaL,KAAU,QAAQA,MAAU,MACrBC,KAAYC,KAAcC;AAEzE,SACE,gBAAAG,EAAC,OAAA,EAAI,WAAU,mDACZ,UAAA;AAAA,IAAAD,KACC,gBAAAC,EAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAAR;AAAA,UACA,UAAAC;AAAA,UACA,YAAAC;AAAA,UACA,SAAAC;AAAA,QAAA;AAAA,MAAA;AAAA,MAEF,gBAAAI,EAACE,GAAA,EAAQ,WAAU,QAAA,CAAQ;AAAA,IAAA,GAC7B;AAAA,IAEF,gBAAAF,EAAC,OAAA,EAAI,WAAU,oDAAoD,UAAAH,EAAA,CAAS;AAAA,EAAA,GAC9E;AAEJ,GA1BuB;"}
1
+ {"version":3,"file":"OwpPageContent.js","sources":["../../../src/components/OwpPageContent/OwpPageContent.tsx"],"sourcesContent":["import { Divider } from '@mui/material';\nimport type { ReactNode } from 'react';\nimport { OwpPageTitle } from '../OwpPageTitle';\n\ninterface OwpPageContentProps {\n title?: ReactNode;\n leftSlot?: ReactNode;\n centerSlot?: ReactNode;\n actions?: ReactNode;\n children?: ReactNode;\n loading?: boolean;\n}\n\n/**\n * OwpPageContent 컴포넌트\n * @param title 제목\n * @param leftSlot leftSlot 값\n * @param centerSlot centerSlot 값\n * @param actions 액션 영역\n * @param children 하위 콘텐츠\n * @param loading 로딩 상태\n */\nconst OwpPageContent = ({\n title,\n leftSlot,\n centerSlot,\n actions,\n children,\n loading,\n}: OwpPageContentProps) => {\n const hasTitle = title !== undefined && title !== null && title !== '';\n const shouldRenderHeader = Boolean(hasTitle || leftSlot || centerSlot || actions);\n\n return (\n <div className=\"OwpPageContent-root flex h-full w-full flex-col\">\n {shouldRenderHeader && (\n <div className=\"OwpPageContent-header sticky\">\n <OwpPageTitle\n title={title}\n leftSlot={leftSlot}\n centerSlot={centerSlot}\n actions={actions}\n loading={loading}\n />\n <Divider className=\"my-12\" />\n </div>\n )}\n <div className=\"OwpPageContent-body flex min-h-0 flex-1 flex-col\">{children}</div>\n </div>\n );\n};\n\nexport { OwpPageContent };\n"],"names":["OwpPageContent","__name","title","leftSlot","centerSlot","actions","children","loading","shouldRenderHeader","jsxs","jsx","OwpPageTitle","Divider"],"mappings":";;;;;AAsBA,MAAMA,IAAiB,gBAAAC,EAAA,CAAC;AAAA,EACtB,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AACF,MAA2B;AAEzB,QAAMC,IAAqB,GADaN,KAAU,QAAQA,MAAU,MACrBC,KAAYC,KAAcC;AAEzE,SACE,gBAAAI,EAAC,OAAA,EAAI,WAAU,mDACZ,UAAA;AAAA,IAAAD,KACC,gBAAAC,EAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAAT;AAAA,UACA,UAAAC;AAAA,UACA,YAAAC;AAAA,UACA,SAAAC;AAAA,UACA,SAAAE;AAAA,QAAA;AAAA,MAAA;AAAA,MAEF,gBAAAG,EAACE,GAAA,EAAQ,WAAU,QAAA,CAAQ;AAAA,IAAA,GAC7B;AAAA,IAEF,gBAAAF,EAAC,OAAA,EAAI,WAAU,oDAAoD,UAAAJ,EAAA,CAAS;AAAA,EAAA,GAC9E;AAEJ,GA5BuB;"}
@@ -1,71 +1,73 @@
1
- var u = Object.defineProperty;
2
- var c = (e, s) => u(e, "name", { value: s, configurable: !0 });
3
- import { jsxs as n, jsx as a } 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 { clsx as l } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
5
- import h 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/Fitbit.js";
6
- import { useHeaderWrapState as w } from "../../hooks/useHeaderWrapState.js";
7
- const R = /* @__PURE__ */ c(({ title: e, leftSlot: s, centerSlot: i, actions: f }) => {
8
- const d = e != null && e !== "", m = !!(s || i), { containerRef: o, titleRef: t, slotsRef: x, actionsRef: p, isWrapped: r } = w([
1
+ var h = Object.defineProperty;
2
+ var o = (e, r) => h(e, "name", { value: r, configurable: !0 });
3
+ import { jsxs as c, jsx as s } 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 { clsx as i } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
5
+ import w 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/Fitbit.js";
6
+ import { CircularProgress as N } from "@mui/material";
7
+ import { useHeaderWrapState as y } from "../../hooks/useHeaderWrapState.js";
8
+ const P = /* @__PURE__ */ o(({ title: e, leftSlot: r, centerSlot: l, actions: n, loading: f }) => {
9
+ const m = e != null && e !== "", d = !!(r || l), { containerRef: t, titleRef: x, slotsRef: p, actionsRef: u, isWrapped: a } = y([
9
10
  e,
10
- s,
11
- i,
11
+ r,
12
+ l,
13
+ n,
12
14
  f
13
15
  ]);
14
- return /* @__PURE__ */ n(
16
+ return /* @__PURE__ */ c(
15
17
  "div",
16
18
  {
17
- ref: o,
18
- className: l(
19
+ ref: t,
20
+ className: i(
19
21
  "min-h-[44px] w-full",
20
- r ? "flex flex-col gap-8" : "grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-12 gap-y-8"
22
+ a ? "flex flex-col gap-8" : "grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-12 gap-y-8"
21
23
  ),
22
24
  children: [
23
- d && /* @__PURE__ */ n(
25
+ m && /* @__PURE__ */ c(
24
26
  "div",
25
27
  {
26
- ref: t,
27
- className: l(
28
+ ref: x,
29
+ className: i(
28
30
  "flex shrink-0 items-center gap-12 whitespace-nowrap",
29
- r ? "order-1 self-start" : "col-start-1"
31
+ a ? "order-1 self-start" : "col-start-1"
30
32
  ),
31
33
  children: [
32
- /* @__PURE__ */ a(h, { className: "shrink-0", sx: { fontSize: 32, color: "secondary.main" } }),
33
- /* @__PURE__ */ a("h5", { className: "shrink-0 whitespace-nowrap text-3xl font-medium", children: e })
34
+ f ? /* @__PURE__ */ s(N, { className: "shrink-0", size: 32, sx: { color: "secondary.main" } }) : /* @__PURE__ */ s(w, { className: "shrink-0", sx: { fontSize: 32, color: "secondary.main" } }),
35
+ /* @__PURE__ */ s("h5", { className: "shrink-0 whitespace-nowrap text-3xl font-medium", children: e })
34
36
  ]
35
37
  }
36
38
  ),
37
- m && /* @__PURE__ */ a(
39
+ d && /* @__PURE__ */ s(
38
40
  "div",
39
41
  {
40
- ref: x,
41
- className: l(
42
+ ref: p,
43
+ className: i(
42
44
  "flex max-w-full",
43
- r ? "order-2 self-end justify-end" : "col-start-2 justify-self-center"
45
+ a ? "order-2 self-end justify-end" : "col-start-2 justify-self-center"
44
46
  ),
45
- children: /* @__PURE__ */ n(
47
+ children: /* @__PURE__ */ c(
46
48
  "div",
47
49
  {
48
- className: l(
50
+ className: i(
49
51
  "flex max-w-full items-center gap-12",
50
- r ? "flex-wrap justify-end" : "flex-nowrap justify-center"
52
+ a ? "flex-wrap justify-end" : "flex-nowrap justify-center"
51
53
  ),
52
54
  children: [
53
- s && /* @__PURE__ */ a("div", { className: "max-w-full", children: s }),
54
- i && /* @__PURE__ */ a("div", { className: "max-w-full", children: i })
55
+ r && /* @__PURE__ */ s("div", { className: "max-w-full", children: r }),
56
+ l && /* @__PURE__ */ s("div", { className: "max-w-full", children: l })
55
57
  ]
56
58
  }
57
59
  )
58
60
  }
59
61
  ),
60
- f && /* @__PURE__ */ a(
62
+ n && /* @__PURE__ */ s(
61
63
  "div",
62
64
  {
63
- ref: p,
64
- className: l(
65
+ ref: u,
66
+ className: i(
65
67
  "flex max-w-full justify-end",
66
- r ? "order-3 self-end" : "col-start-3 justify-self-end"
68
+ a ? "order-3 self-end" : "col-start-3 justify-self-end"
67
69
  ),
68
- children: f
70
+ children: n
69
71
  }
70
72
  )
71
73
  ]
@@ -73,6 +75,6 @@ const R = /* @__PURE__ */ c(({ title: e, leftSlot: s, centerSlot: i, actions: f
73
75
  );
74
76
  }, "OwpPageTitle");
75
77
  export {
76
- R as OwpPageTitle
78
+ P as OwpPageTitle
77
79
  };
78
80
  //# sourceMappingURL=OwpPageTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OwpPageTitle.js","sources":["../../../src/components/OwpPageTitle/OwpPageTitle.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport FitbitIcon from '@mui/icons-material/Fitbit';\nimport type { ReactNode } from 'react';\nimport { useHeaderWrapState } from '@/hooks/useHeaderWrapState';\n\ninterface OwpPageTitleProps {\n title?: ReactNode;\n leftSlot?: ReactNode;\n centerSlot?: ReactNode;\n actions?: ReactNode;\n}\n\n/**\n * OwpPageTitle 컴포넌트\n * @param title 제목\n * @param leftSlot leftSlot 값\n * @param centerSlot centerSlot 값\n * @param actions 액션 영역\n */\nconst OwpPageTitle = ({ title, leftSlot, centerSlot, actions }: OwpPageTitleProps) => {\n const hasTitle = title !== undefined && title !== null && title !== '';\n const hasSlots = Boolean(leftSlot || centerSlot);\n const { containerRef, titleRef, slotsRef, actionsRef, isWrapped } = useHeaderWrapState([\n title,\n leftSlot,\n centerSlot,\n actions,\n ]);\n\n return (\n <div\n ref={containerRef}\n className={clsx(\n 'min-h-[44px] w-full',\n isWrapped\n ? 'flex flex-col gap-8'\n : 'grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-12 gap-y-8',\n )}\n >\n {hasTitle && (\n <div\n ref={titleRef}\n className={clsx(\n 'flex shrink-0 items-center gap-12 whitespace-nowrap',\n isWrapped ? 'order-1 self-start' : 'col-start-1',\n )}\n >\n <FitbitIcon className=\"shrink-0\" sx={{ fontSize: 32, color: 'secondary.main' }} />\n <h5 className=\"shrink-0 whitespace-nowrap text-3xl font-medium\">{title}</h5>\n </div>\n )}\n {hasSlots && (\n <div\n ref={slotsRef}\n className={clsx(\n 'flex max-w-full',\n isWrapped ? 'order-2 self-end justify-end' : 'col-start-2 justify-self-center',\n )}\n >\n <div\n className={clsx(\n 'flex max-w-full items-center gap-12',\n isWrapped ? 'flex-wrap justify-end' : 'flex-nowrap justify-center',\n )}\n >\n {leftSlot && <div className=\"max-w-full\">{leftSlot}</div>}\n {centerSlot && <div className=\"max-w-full\">{centerSlot}</div>}\n </div>\n </div>\n )}\n {actions && (\n <div\n ref={actionsRef}\n className={clsx(\n 'flex max-w-full justify-end',\n isWrapped ? 'order-3 self-end' : 'col-start-3 justify-self-end',\n )}\n >\n {actions}\n </div>\n )}\n </div>\n );\n};\n\nexport { OwpPageTitle };\n"],"names":["OwpPageTitle","__name","title","leftSlot","centerSlot","actions","hasTitle","hasSlots","containerRef","titleRef","slotsRef","actionsRef","isWrapped","useHeaderWrapState","jsxs","clsx","jsx","FitbitIcon"],"mappings":";;;;;;AAmBA,MAAMA,IAAe,gBAAAC,EAAA,CAAC,EAAE,OAAAC,GAAO,UAAAC,GAAU,YAAAC,GAAY,SAAAC,QAAiC;AACpF,QAAMC,IAAkCJ,KAAU,QAAQA,MAAU,IAC9DK,IAAW,GAAQJ,KAAYC,IAC/B,EAAE,cAAAI,GAAc,UAAAC,GAAU,UAAAC,GAAU,YAAAC,GAAY,WAAAC,EAAA,IAAcC,EAAmB;AAAA,IACrFX;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA,CACD;AAED,SACE,gBAAAS;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKN;AAAA,MACL,WAAWO;AAAA,QACT;AAAA,QACAH,IACI,wBACA;AAAA,MAAA;AAAA,MAGL,UAAA;AAAA,QAAAN,KACC,gBAAAQ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAKL;AAAA,YACL,WAAWM;AAAA,cACT;AAAA,cACAH,IAAY,uBAAuB;AAAA,YAAA;AAAA,YAGrC,UAAA;AAAA,cAAA,gBAAAI,EAACC,GAAA,EAAW,WAAU,YAAW,IAAI,EAAE,UAAU,IAAI,OAAO,iBAAA,EAAiB,CAAG;AAAA,cAChF,gBAAAD,EAAC,MAAA,EAAG,WAAU,mDAAmD,UAAAd,EAAA,CAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAG1EK,KACC,gBAAAS;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAKN;AAAA,YACL,WAAWK;AAAA,cACT;AAAA,cACAH,IAAY,iCAAiC;AAAA,YAAA;AAAA,YAG/C,UAAA,gBAAAE;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAWC;AAAA,kBACT;AAAA,kBACAH,IAAY,0BAA0B;AAAA,gBAAA;AAAA,gBAGvC,UAAA;AAAA,kBAAAT,KAAY,gBAAAa,EAAC,OAAA,EAAI,WAAU,cAAc,UAAAb,GAAS;AAAA,kBAClDC,KAAc,gBAAAY,EAAC,OAAA,EAAI,WAAU,cAAc,UAAAZ,EAAA,CAAW;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACzD;AAAA,QAAA;AAAA,QAGHC,KACC,gBAAAW;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAKL;AAAA,YACL,WAAWI;AAAA,cACT;AAAA,cACAH,IAAY,qBAAqB;AAAA,YAAA;AAAA,YAGlC,UAAAP;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAIR,GAhEqB;"}
1
+ {"version":3,"file":"OwpPageTitle.js","sources":["../../../src/components/OwpPageTitle/OwpPageTitle.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport FitbitIcon from '@mui/icons-material/Fitbit';\nimport { CircularProgress } from '@mui/material';\nimport type { ReactNode } from 'react';\nimport { useHeaderWrapState } from '@/hooks/useHeaderWrapState';\n\ninterface OwpPageTitleProps {\n title?: ReactNode;\n leftSlot?: ReactNode;\n centerSlot?: ReactNode;\n actions?: ReactNode;\n loading?: boolean;\n}\n\n/**\n * OwpPageTitle 컴포넌트\n * @param title 제목\n * @param leftSlot leftSlot 값\n * @param centerSlot centerSlot 값\n * @param actions 액션 영역\n * @param loading 로딩 상태\n */\nconst OwpPageTitle = ({ title, leftSlot, centerSlot, actions, loading }: OwpPageTitleProps) => {\n const hasTitle = title !== undefined && title !== null && title !== '';\n const hasSlots = Boolean(leftSlot || centerSlot);\n const { containerRef, titleRef, slotsRef, actionsRef, isWrapped } = useHeaderWrapState([\n title,\n leftSlot,\n centerSlot,\n actions,\n loading,\n ]);\n\n return (\n <div\n ref={containerRef}\n className={clsx(\n 'min-h-[44px] w-full',\n isWrapped\n ? 'flex flex-col gap-8'\n : 'grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-12 gap-y-8',\n )}\n >\n {hasTitle && (\n <div\n ref={titleRef}\n className={clsx(\n 'flex shrink-0 items-center gap-12 whitespace-nowrap',\n isWrapped ? 'order-1 self-start' : 'col-start-1',\n )}\n >\n {loading ? (\n <CircularProgress className=\"shrink-0\" size={32} sx={{ color: 'secondary.main' }} />\n ) : (\n <FitbitIcon className=\"shrink-0\" sx={{ fontSize: 32, color: 'secondary.main' }} />\n )}\n <h5 className=\"shrink-0 whitespace-nowrap text-3xl font-medium\">{title}</h5>\n </div>\n )}\n {hasSlots && (\n <div\n ref={slotsRef}\n className={clsx(\n 'flex max-w-full',\n isWrapped ? 'order-2 self-end justify-end' : 'col-start-2 justify-self-center',\n )}\n >\n <div\n className={clsx(\n 'flex max-w-full items-center gap-12',\n isWrapped ? 'flex-wrap justify-end' : 'flex-nowrap justify-center',\n )}\n >\n {leftSlot && <div className=\"max-w-full\">{leftSlot}</div>}\n {centerSlot && <div className=\"max-w-full\">{centerSlot}</div>}\n </div>\n </div>\n )}\n {actions && (\n <div\n ref={actionsRef}\n className={clsx(\n 'flex max-w-full justify-end',\n isWrapped ? 'order-3 self-end' : 'col-start-3 justify-self-end',\n )}\n >\n {actions}\n </div>\n )}\n </div>\n );\n};\n\nexport { OwpPageTitle };\n"],"names":["OwpPageTitle","__name","title","leftSlot","centerSlot","actions","loading","hasTitle","hasSlots","containerRef","titleRef","slotsRef","actionsRef","isWrapped","useHeaderWrapState","jsxs","clsx","jsx","CircularProgress","FitbitIcon"],"mappings":";;;;;;;AAsBA,MAAMA,IAAe,gBAAAC,EAAA,CAAC,EAAE,OAAAC,GAAO,UAAAC,GAAU,YAAAC,GAAY,SAAAC,GAAS,SAAAC,QAAiC;AAC7F,QAAMC,IAAkCL,KAAU,QAAQA,MAAU,IAC9DM,IAAW,GAAQL,KAAYC,IAC/B,EAAE,cAAAK,GAAc,UAAAC,GAAU,UAAAC,GAAU,YAAAC,GAAY,WAAAC,EAAA,IAAcC,EAAmB;AAAA,IACrFZ;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA,CACD;AAED,SACE,gBAAAS;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKN;AAAA,MACL,WAAWO;AAAA,QACT;AAAA,QACAH,IACI,wBACA;AAAA,MAAA;AAAA,MAGL,UAAA;AAAA,QAAAN,KACC,gBAAAQ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAKL;AAAA,YACL,WAAWM;AAAA,cACT;AAAA,cACAH,IAAY,uBAAuB;AAAA,YAAA;AAAA,YAGpC,UAAA;AAAA,cAAAP,IACC,gBAAAW,EAACC,KAAiB,WAAU,YAAW,MAAM,IAAI,IAAI,EAAE,OAAO,iBAAA,EAAiB,CAAG,IAElF,gBAAAD,EAACE,GAAA,EAAW,WAAU,YAAW,IAAI,EAAE,UAAU,IAAI,OAAO,iBAAA,EAAiB,CAAG;AAAA,cAElF,gBAAAF,EAAC,MAAA,EAAG,WAAU,mDAAmD,UAAAf,EAAA,CAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAG1EM,KACC,gBAAAS;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAKN;AAAA,YACL,WAAWK;AAAA,cACT;AAAA,cACAH,IAAY,iCAAiC;AAAA,YAAA;AAAA,YAG/C,UAAA,gBAAAE;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAWC;AAAA,kBACT;AAAA,kBACAH,IAAY,0BAA0B;AAAA,gBAAA;AAAA,gBAGvC,UAAA;AAAA,kBAAAV,KAAY,gBAAAc,EAAC,OAAA,EAAI,WAAU,cAAc,UAAAd,GAAS;AAAA,kBAClDC,KAAc,gBAAAa,EAAC,OAAA,EAAI,WAAU,cAAc,UAAAb,EAAA,CAAW;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACzD;AAAA,QAAA;AAAA,QAGHC,KACC,gBAAAY;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAKL;AAAA,YACL,WAAWI;AAAA,cACT;AAAA,cACAH,IAAY,qBAAqB;AAAA,YAAA;AAAA,YAGlC,UAAAR;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAIR,GArEqB;"}