@owp/core 2.5.18 → 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.
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +4 -4
- package/dist/_virtual/index17.js +4 -4
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpPageContent/OwpPageContent.js +14 -12
- package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
- package/dist/components/OwpPageTitle/OwpPageTitle.js +37 -35
- package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
- package/dist/components/OwpPicker/OwpDatePicker.js +339 -102
- package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpDateRangePicker.js +87 -82
- package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpTimePicker.js +494 -236
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/constants/index.js +6 -5
- package/dist/components/OwpPicker/constants/index.js.map +1 -1
- package/dist/components/OwpPicker/internal/DatePickerInput.js +71 -47
- package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
- package/dist/components/OwpSection/OwpSection.js +84 -62
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +42 -40
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +307 -270
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +267 -276
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +262 -182
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/constants/gridTheme.js +7 -6
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +32 -31
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +28 -27
- package/dist/features/themePreview/configs/grid.js +3 -1
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +10 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.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/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- 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
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpPageContent/OwpPageContent.d.ts +3 -1
- package/dist/types/components/OwpPageTitle/OwpPageTitle.d.ts +3 -1
- package/dist/types/components/OwpPicker/constants/index.d.ts +1 -0
- package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +7 -0
- package/dist/types/components/OwpSection/OwpSection.d.ts +3 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
- package/dist/types/constants/gridTheme.d.ts +2 -0
- package/dist/types/constants/treeGrid.d.ts +2 -1
- package/dist/types/features/themePreview/configs/grid.d.ts +2 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +2 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +1 -0
- package/dist/types/utils/treeGridUtil.d.ts +15 -3
- package/dist/utils/treeGridUtil.js +193 -147
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +69 -67
- package/package.json +1 -1
package/dist/_virtual/index15.js
CHANGED
package/dist/_virtual/index16.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index16.js.map
|
package/dist/_virtual/index17.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var o =
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index17.js.map
|
package/dist/_virtual/index18.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var o =
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index18.js.map
|
package/dist/_virtual/index19.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index19.js.map
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var n = (e, o) =>
|
|
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
|
|
5
|
-
import { OwpPageTitle as
|
|
6
|
-
const
|
|
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
|
|
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
|
-
|
|
16
|
+
m && /* @__PURE__ */ r("div", { className: "OwpPageContent-header sticky", children: [
|
|
16
17
|
/* @__PURE__ */ l(
|
|
17
|
-
|
|
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(
|
|
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
|
-
|
|
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":";;;;;
|
|
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
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
11
|
-
|
|
11
|
+
r,
|
|
12
|
+
l,
|
|
13
|
+
n,
|
|
12
14
|
f
|
|
13
15
|
]);
|
|
14
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ c(
|
|
15
17
|
"div",
|
|
16
18
|
{
|
|
17
|
-
ref:
|
|
18
|
-
className:
|
|
19
|
+
ref: t,
|
|
20
|
+
className: i(
|
|
19
21
|
"min-h-[44px] w-full",
|
|
20
|
-
|
|
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
|
-
|
|
25
|
+
m && /* @__PURE__ */ c(
|
|
24
26
|
"div",
|
|
25
27
|
{
|
|
26
|
-
ref:
|
|
27
|
-
className:
|
|
28
|
+
ref: x,
|
|
29
|
+
className: i(
|
|
28
30
|
"flex shrink-0 items-center gap-12 whitespace-nowrap",
|
|
29
|
-
|
|
31
|
+
a ? "order-1 self-start" : "col-start-1"
|
|
30
32
|
),
|
|
31
33
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
39
|
+
d && /* @__PURE__ */ s(
|
|
38
40
|
"div",
|
|
39
41
|
{
|
|
40
|
-
ref:
|
|
41
|
-
className:
|
|
42
|
+
ref: p,
|
|
43
|
+
className: i(
|
|
42
44
|
"flex max-w-full",
|
|
43
|
-
|
|
45
|
+
a ? "order-2 self-end justify-end" : "col-start-2 justify-self-center"
|
|
44
46
|
),
|
|
45
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ c(
|
|
46
48
|
"div",
|
|
47
49
|
{
|
|
48
|
-
className:
|
|
50
|
+
className: i(
|
|
49
51
|
"flex max-w-full items-center gap-12",
|
|
50
|
-
|
|
52
|
+
a ? "flex-wrap justify-end" : "flex-nowrap justify-center"
|
|
51
53
|
),
|
|
52
54
|
children: [
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
62
|
+
n && /* @__PURE__ */ s(
|
|
61
63
|
"div",
|
|
62
64
|
{
|
|
63
|
-
ref:
|
|
64
|
-
className:
|
|
65
|
+
ref: u,
|
|
66
|
+
className: i(
|
|
65
67
|
"flex max-w-full justify-end",
|
|
66
|
-
|
|
68
|
+
a ? "order-3 self-end" : "col-start-3 justify-self-end"
|
|
67
69
|
),
|
|
68
|
-
children:
|
|
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
|
-
|
|
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":"
|
|
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;"}
|