@elicecontents/content-ui 1.0.19 → 1.0.20-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,8 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
6
4
  var _styled = require('@emotion/styled/base');
5
+ var tslib = require('tslib');
7
6
  var jsxRuntime = require('react/jsx-runtime');
8
7
  var React = require('react');
9
8
  var material = require('@mui/material');
@@ -22,7 +21,76 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
22
21
 
23
22
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
24
23
  var EliceLayoutContext = React__default.default.createContext(undefined);
25
- var EliceLayout = Object.assign(function (_ref) {
24
+ /**
25
+ * @summary Alpha of Design System. Wrapper of MUI Box
26
+ * */
27
+ var Box = React__default.default.forwardRef(function Box(_a, ref) {
28
+ var component = _a.component,
29
+ step = _a.step,
30
+ sx = _a.sx,
31
+ props = tslib.__rest(_a, ["component", "step", "sx"]);
32
+ var stepSx = Object.assign(Object.assign({}, step !== undefined ? {
33
+ '--fluid-size': "var(--step-".concat(step, ")"),
34
+ '& *:not([class*=Typography]):not([class*=Typography] *)': {
35
+ 'font-size': 'var(--fluid-size)'
36
+ }
37
+ } : {}), sx);
38
+ return jsxRuntime.jsx(material.Box, Object.assign({
39
+ ref: ref,
40
+ component: component,
41
+ sx: stepSx
42
+ }, props));
43
+ });
44
+ /**
45
+ * @summary Alpha of Design System. Wrapper of MUI Stack
46
+ * */
47
+ var Stack = React__default.default.forwardRef(function Stack(_a, ref) {
48
+ var component = _a.component,
49
+ step = _a.step,
50
+ sx = _a.sx,
51
+ props = tslib.__rest(_a, ["component", "step", "sx"]);
52
+ var stepSx = Object.assign(Object.assign({}, step !== undefined ? {
53
+ '--fluid-size': "var(--step-".concat(step, ")"),
54
+ '& *:not([class*=Typography]):not([class*=Typography] *)': {
55
+ 'font-size': 'var(--fluid-size)'
56
+ }
57
+ } : {}), sx);
58
+ return jsxRuntime.jsx(material.Stack, Object.assign({
59
+ ref: ref,
60
+ // FIXME: delete any in React 19.
61
+ component: component,
62
+ sx: stepSx
63
+ }, props));
64
+ });
65
+ var fontSizeMap = {
66
+ h1: '1em',
67
+ subtitle1: '1.3em',
68
+ subtitle2: '1.2em',
69
+ subtitle3: '1em',
70
+ body1: '1em',
71
+ buttoninput: '1em',
72
+ pagination: '1.6em'
73
+ };
74
+ /**
75
+ * @summary Alpha of Design System. Wrapper of MUI Typography
76
+ * */
77
+ function Typography(_a) {
78
+ var _b;
79
+ var step = _a.step,
80
+ sx = _a.sx,
81
+ props = tslib.__rest(_a, ["step", "sx"]);
82
+ var variantFontSize = props.variant && Object.hasOwn(fontSizeMap, props.variant) ? fontSizeMap[props.variant] : fontSizeMap['body1'];
83
+ var stepSx = {
84
+ '&:is([class*="Typography"])': Object.assign(Object.assign({}, sx !== null && sx !== void 0 ? sx : {}), {
85
+ '--fluid-size': "var(--step-".concat(step !== null && step !== void 0 ? step : 0, ")"),
86
+ fontSize: (_b = sx === null || sx === void 0 ? void 0 : sx.fontSize) !== null && _b !== void 0 ? _b : variantFontSize
87
+ })
88
+ };
89
+ return jsxRuntime.jsx(material.Typography, Object.assign({
90
+ sx: stepSx
91
+ }, props));
92
+ }
93
+ var Layout = function Layout(_ref) {
26
94
  var children = _ref.children,
27
95
  onPrev = _ref.onPrev,
28
96
  onNext = _ref.onNext,
@@ -61,205 +129,190 @@ var EliceLayout = Object.assign(function (_ref) {
61
129
  }), children]
62
130
  })
63
131
  });
64
- }, {
65
- HeaderContainer: function HeaderContainer(_ref2) {
66
- var children = _ref2.children,
67
- sx = _ref2.sx;
68
- return jsxRuntime.jsx(_HeaderContainer, {
69
- sx: sx,
70
- children: children
132
+ };
133
+ var HeaderContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
134
+ target: "efnp08i6"
135
+ })("production" === "production" ? {
136
+ name: "14ia2gs",
137
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
138
+ } : {
139
+ name: "14ia2gs",
140
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
141
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
142
+ });
143
+ var HeaderContainer = function HeaderContainer(_ref2) {
144
+ var children = _ref2.children,
145
+ sx = _ref2.sx;
146
+ return jsxRuntime.jsx(HeaderContainerInner, {
147
+ sx: sx,
148
+ children: children
149
+ });
150
+ };
151
+ var HeaderTitle = LayoutHeaderTitle.default;
152
+ var HeaderSubTitle = LayoutHeaderSubTitle.default;
153
+ var ContentContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
154
+ target: "efnp08i5"
155
+ })("flex:1;width:100%;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
156
+ var theme = _ref3.theme;
157
+ return theme.palette.primary.main;
158
+ }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref4) {
159
+ var theme = _ref4.theme;
160
+ return theme.palette.grey[300];
161
+ }, ";border-radius:4px;}");
162
+ var ContentContainer = function ContentContainer(_ref5) {
163
+ var children = _ref5.children,
164
+ sx = _ref5.sx,
165
+ _ref5$scrollbarPostio = _ref5.scrollbarPostion,
166
+ scrollbarPostion = _ref5$scrollbarPostio === void 0 ? 10 : _ref5$scrollbarPostio;
167
+ var theme = material.useTheme();
168
+ var contentRef = React__default.default.useRef(null);
169
+ var context = React__default.default.useContext(EliceLayoutContext);
170
+ if (!context) {
171
+ throw new Error("EliceLayout components must be used within an EliceLayout provider.");
172
+ }
173
+ var isScrollActive = context.isScrollActive,
174
+ setIsScrollActive = context.setIsScrollActive,
175
+ enableScrollTracking = context.enableScrollTracking;
176
+ var _React$useState3 = React__default.default.useState(false),
177
+ _React$useState4 = _rollupPluginBabelHelpers.slicedToArray(_React$useState3, 2),
178
+ hasScroll = _React$useState4[0],
179
+ setHasScroll = _React$useState4[1];
180
+ var scrollTopRef = React__default.default.useRef(0);
181
+ var scrollBarRef = React__default.default.useRef(null);
182
+ React__default.default.useEffect(function () {
183
+ if (!enableScrollTracking) return;
184
+ var element = contentRef.current;
185
+ if (!element) return;
186
+ var handleScroll = function handleScroll() {
187
+ setIsScrollActive(element.scrollTop > 10);
188
+ };
189
+ element.addEventListener('scroll', handleScroll);
190
+ return function () {
191
+ element.removeEventListener('scroll', handleScroll);
192
+ };
193
+ }, [enableScrollTracking, setIsScrollActive]);
194
+ // ✅ 2. 스크롤 위치 계산용 useEffect (커스텀 스크롤바용)
195
+ React__default.default.useEffect(function () {
196
+ var el = contentRef.current;
197
+ if (!el) return;
198
+ var updateScrollBar = function updateScrollBar() {
199
+ var scrollTop = el.scrollTop,
200
+ scrollHeight = el.scrollHeight,
201
+ clientHeight = el.clientHeight;
202
+ // 상태로 관리하지 않고 직접 반영
203
+ scrollTopRef.current = scrollTop;
204
+ var thumbHeight = clientHeight / scrollHeight * clientHeight;
205
+ var top = scrollTop / scrollHeight * clientHeight;
206
+ if (scrollBarRef.current) {
207
+ scrollBarRef.current.style.height = "".concat(thumbHeight, "px");
208
+ scrollBarRef.current.style.top = "".concat(top, "px");
209
+ }
210
+ setHasScroll(scrollHeight > clientHeight);
211
+ };
212
+ el.addEventListener('scroll', updateScrollBar);
213
+ requestAnimationFrame(function () {
214
+ if (el.scrollHeight > el.clientHeight) {
215
+ el.scrollTop = 1; // 👉 살짝 움직여줌
216
+ el.scrollTop = 0; // 👉 바로 다시 원위치
217
+ updateScrollBar(); // 👉 thumb도 즉시 업데이트
218
+ }
71
219
  });
72
- },
73
- HeaderTitle: LayoutHeaderTitle.default,
74
- HeaderSubTitle: LayoutHeaderSubTitle.default,
75
- ContentContainer: function ContentContainer(_ref3) {
76
- var children = _ref3.children,
77
- sx = _ref3.sx,
78
- _ref3$scrollbarPostio = _ref3.scrollbarPostion,
79
- scrollbarPostion = _ref3$scrollbarPostio === void 0 ? 10 : _ref3$scrollbarPostio;
80
- var theme = material.useTheme();
81
- var contentRef = React__default.default.useRef(null);
82
- var context = React__default.default.useContext(EliceLayoutContext);
83
- if (!context) {
84
- throw new Error("EliceLayout components must be used within an EliceLayout provider.");
85
- }
86
- var isScrollActive = context.isScrollActive,
87
- setIsScrollActive = context.setIsScrollActive,
88
- enableScrollTracking = context.enableScrollTracking;
89
- var _React$useState3 = React__default.default.useState(false),
90
- _React$useState4 = _rollupPluginBabelHelpers.slicedToArray(_React$useState3, 2),
91
- hasScroll = _React$useState4[0],
92
- setHasScroll = _React$useState4[1];
93
- var scrollTopRef = React__default.default.useRef(0);
94
- var scrollBarRef = React__default.default.useRef(null);
95
- React__default.default.useEffect(function () {
96
- if (!enableScrollTracking) return;
97
- var element = contentRef.current;
98
- if (!element) return;
99
- var handleScroll = function handleScroll() {
100
- setIsScrollActive(element.scrollTop > 10);
101
- };
102
- element.addEventListener('scroll', handleScroll);
103
- return function () {
104
- element.removeEventListener('scroll', handleScroll);
105
- };
106
- }, [enableScrollTracking, setIsScrollActive]);
107
- // ✅ 2. 스크롤 위치 계산용 useEffect (커스텀 스크롤바용)
108
- React__default.default.useEffect(function () {
109
- var el = contentRef.current;
110
- if (!el || !('ResizeObserver' in window)) return;
111
- var observer = new ResizeObserver(function () {
112
- var scrollHeight = el.scrollHeight,
113
- clientHeight = el.clientHeight;
114
- setHasScroll(scrollHeight > clientHeight);
115
- });
116
- var updateScrollBar = function updateScrollBar() {
117
- var scrollTop = el.scrollTop,
118
- scrollHeight = el.scrollHeight,
119
- clientHeight = el.clientHeight;
120
- // 상태로 관리하지 않고 직접 반영
121
- scrollTopRef.current = scrollTop;
122
- var thumbHeight = clientHeight / scrollHeight * clientHeight;
123
- var top = scrollTop / scrollHeight * clientHeight;
124
- if (scrollBarRef.current) {
125
- scrollBarRef.current.style.height = "".concat(thumbHeight, "px");
126
- scrollBarRef.current.style.top = "".concat(top, "px");
127
- }
128
- setHasScroll(scrollHeight > clientHeight);
129
- };
130
- el.addEventListener('scroll', updateScrollBar);
131
- observer.observe(el);
132
- requestAnimationFrame(function () {
133
- if (el.scrollHeight > el.clientHeight) {
134
- el.scrollTop = 1; // 👉 살짝 움직여줌
135
- el.scrollTop = 0; // 👉 바로 다시 원위치
136
- updateScrollBar(); // 👉 thumb도 즉시 업데이트
220
+ return function () {
221
+ return el.removeEventListener('scroll', updateScrollBar);
222
+ };
223
+ }, []);
224
+ return jsxRuntime.jsxs(Stack, {
225
+ sx: {
226
+ position: 'relative',
227
+ height: '100%'
228
+ },
229
+ children: [jsxRuntime.jsxs(ContentContainerInner, {
230
+ ref: contentRef,
231
+ theme: theme,
232
+ flex: 1,
233
+ sx: Object.assign(Object.assign({}, sx), {
234
+ scrollbarWidth: 'none',
235
+ msOverflowStyle: 'none',
236
+ '&::-webkit-scrollbar': {
237
+ display: 'none'
137
238
  }
138
- });
139
- return function () {
140
- el.removeEventListener('scroll', updateScrollBar);
141
- observer.disconnect();
142
- };
143
- }, []);
144
- return jsxRuntime.jsxs(material.Stack, {
145
- sx: {
146
- position: 'relative',
239
+ }),
240
+ children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsxRuntime.jsx(ScrollMoreButton, {
241
+ children: jsxRuntime.jsx(ScrollMoreIcon.default, {
242
+ size: 32,
243
+ color: "white",
244
+ bgOpacity: 0.5
245
+ })
246
+ })]
247
+ }), hasScroll && jsxRuntime.jsx("div", {
248
+ style: {
249
+ position: 'absolute',
250
+ top: 0,
251
+ right: "".concat(-1 * scrollbarPostion, "px"),
252
+ width: '8px',
147
253
  height: '100%',
148
- width: '100%',
149
- flex: 1,
150
- maxWidth: '1200px'
254
+ backgroundColor: '#eee',
255
+ borderRadius: '4px'
151
256
  },
152
- children: [jsxRuntime.jsxs(_ContentContainer, {
153
- ref: contentRef,
154
- theme: theme,
155
- flex: 1,
156
- sx: Object.assign(Object.assign({}, sx), {
157
- scrollbarWidth: 'none',
158
- msOverflowStyle: 'none',
159
- '&::-webkit-scrollbar': {
160
- display: 'none'
161
- }
162
- }),
163
- children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsxRuntime.jsx(ScrollMoreButton, {
164
- children: jsxRuntime.jsx(ScrollMoreIcon.default, {
165
- size: 32,
166
- color: "white",
167
- bgOpacity: 0.5
168
- })
169
- })]
170
- }), hasScroll && jsxRuntime.jsx("div", {
257
+ children: jsxRuntime.jsx("div", {
258
+ ref: scrollBarRef,
171
259
  style: {
260
+ width: '100%',
261
+ backgroundColor: theme.palette.primary.main,
262
+ borderRadius: '4px',
172
263
  position: 'absolute',
173
- top: 0,
174
- right: "".concat(-1 * scrollbarPostion, "px"),
175
- width: '8px',
176
- height: '100%',
177
- backgroundColor: '#eee',
178
- borderRadius: '4px'
179
- },
180
- children: jsxRuntime.jsx("div", {
181
- ref: scrollBarRef,
182
- style: {
183
- width: '100%',
184
- backgroundColor: theme.palette.primary.main,
185
- borderRadius: '4px',
186
- position: 'absolute',
187
- transition: 'top 0.01s linear'
188
- }
189
- })
190
- })]
191
- });
192
- },
193
- Subtitle: function Subtitle(_ref4) {
194
- var children = _ref4.children,
195
- _ref4$alignment = _ref4.alignment,
196
- alignment = _ref4$alignment === void 0 ? "left" : _ref4$alignment,
197
- _ref4$justifyContent = _ref4.justifyContent,
198
- justifyContent = _ref4$justifyContent === void 0 ? "flex-start" : _ref4$justifyContent,
199
- sx = _ref4.sx;
200
- var context = React__default.default.useContext(EliceLayoutContext);
201
- if (!context) {
202
- throw new Error("EliceLayout components must be used within an EliceLayout provider.");
203
- }
204
- var isScrollActive = context.isScrollActive,
205
- enableScrollTracking = context.enableScrollTracking;
206
- return jsxRuntime.jsx(SubtitleContainer, {
207
- isSticky: enableScrollTracking && isScrollActive,
208
- alignment: alignment,
209
- justifyContent: justifyContent,
210
- sx: sx,
211
- children: children
212
- });
213
- },
214
- Content: function Content(_ref5) {
215
- var children = _ref5.children,
216
- _ref5$alignment = _ref5.alignment,
217
- alignment = _ref5$alignment === void 0 ? "left" : _ref5$alignment,
218
- _ref5$justifyContent = _ref5.justifyContent,
219
- justifyContent = _ref5$justifyContent === void 0 ? "flex-start" : _ref5$justifyContent,
220
- sx = _ref5.sx;
221
- return jsxRuntime.jsx(_Content, {
222
- alignment: alignment,
223
- justifyContent: justifyContent,
224
- sx: sx,
225
- children: children
226
- });
227
- },
228
- FooterContainer: function FooterContainer(_ref6) {
229
- var children = _ref6.children,
230
- sx = _ref6.sx;
231
- return jsxRuntime.jsx(_FooterContainer, {
232
- sx: sx,
233
- children: children
234
- });
235
- },
236
- FooterPaging: LayoutFooterPaging.default,
237
- FooterSubmit: LayoutFooterSubmit.default
238
- });
239
- var MainContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
240
- target: "efnp08i6"
241
- })("width:100%;height:100vh;justify-content:center;align-items:center;display:flex;flex-direction:column;padding:", function (_ref7) {
242
- var isMiniTablet = _ref7.isMiniTablet;
243
- return isMiniTablet ? "0 20px" : "0 40px";
244
- }, ";box-sizing:border-box;position:relative;background-image:", function (_ref8) {
245
- var backgroundImage = _ref8.backgroundImage;
246
- return backgroundImage ? "url(".concat(backgroundImage, ")") : "none";
247
- }, ";background-size:cover;background-position:center;background-color:", function (_ref9) {
248
- var backgroundColor = _ref9.backgroundColor;
249
- return backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : "#fff";
250
- }, ";overflow-y:hidden;");
251
- var _HeaderContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
252
- target: "efnp08i5"
253
- })("production" === "production" ? {
254
- name: "gwvfyq",
255
- styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row"
256
- } : {
257
- name: "gwvfyq",
258
- styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row",
259
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
260
- });
261
- var _FooterContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
264
+ transition: 'top 0.01s linear'
265
+ }
266
+ })
267
+ })]
268
+ });
269
+ };
270
+ var Subtitle = function Subtitle(_ref6) {
271
+ var children = _ref6.children,
272
+ _ref6$alignment = _ref6.alignment,
273
+ alignment = _ref6$alignment === void 0 ? "left" : _ref6$alignment,
274
+ _ref6$justifyContent = _ref6.justifyContent,
275
+ justifyContent = _ref6$justifyContent === void 0 ? "flex-start" : _ref6$justifyContent,
276
+ sx = _ref6.sx;
277
+ var context = React__default.default.useContext(EliceLayoutContext);
278
+ if (!context) {
279
+ throw new Error("EliceLayout components must be used within an EliceLayout provider.");
280
+ }
281
+ var isScrollActive = context.isScrollActive,
282
+ enableScrollTracking = context.enableScrollTracking;
283
+ return jsxRuntime.jsx(SubtitleContainer, {
284
+ isSticky: enableScrollTracking && isScrollActive,
285
+ alignment: alignment,
286
+ justifyContent: justifyContent,
287
+ sx: sx,
288
+ children: children
289
+ });
290
+ };
291
+ var ContentInner = /*#__PURE__*/_styled__default.default(Stack, {
262
292
  target: "efnp08i4"
293
+ })("flex:1;width:100%;min-height:0;display:flex;text-align:", function (_ref7) {
294
+ var alignment = _ref7.alignment;
295
+ return alignment;
296
+ }, ";justify-content:", function (_ref8) {
297
+ var justifyContent = _ref8.justifyContent;
298
+ return justifyContent;
299
+ }, ";");
300
+ var Content = function Content(_ref9) {
301
+ var children = _ref9.children,
302
+ _ref9$alignment = _ref9.alignment,
303
+ alignment = _ref9$alignment === void 0 ? "left" : _ref9$alignment,
304
+ _ref9$justifyContent = _ref9.justifyContent,
305
+ justifyContent = _ref9$justifyContent === void 0 ? "flex-start" : _ref9$justifyContent,
306
+ sx = _ref9.sx;
307
+ return jsxRuntime.jsx(ContentInner, {
308
+ alignment: alignment,
309
+ justifyContent: justifyContent,
310
+ sx: sx,
311
+ children: children
312
+ });
313
+ };
314
+ var FooterContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
315
+ target: "efnp08i3"
263
316
  })("production" === "production" ? {
264
317
  name: "304f34",
265
318
  styles: "height:92px;width:100%;max-width:1200px;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row"
@@ -268,38 +321,51 @@ var _FooterContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
268
321
  styles: "height:92px;width:100%;max-width:1200px;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row",
269
322
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
270
323
  });
271
- var SubtitleContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
272
- target: "efnp08i3"
273
- })("height:80px;width:100%;max-width:1200px;padding:20px 40px;display:flex;align-items:", function (_ref10) {
274
- var alignment = _ref10.alignment;
324
+ var FooterContainer = function FooterContainer(_ref10) {
325
+ var children = _ref10.children,
326
+ sx = _ref10.sx;
327
+ return jsxRuntime.jsx(FooterContainerInner, {
328
+ sx: sx,
329
+ children: children
330
+ });
331
+ };
332
+ var FooterPaging = LayoutFooterPaging.default;
333
+ var FooterSubmit = LayoutFooterSubmit.default;
334
+ var MainContainer = /*#__PURE__*/_styled__default.default(Stack, {
335
+ target: "efnp08i2"
336
+ })("width:100%;height:100vh;justify-content:center;align-items:center;display:flex;flex-direction:column;padding:", function (_ref11) {
337
+ var isMiniTablet = _ref11.isMiniTablet;
338
+ return isMiniTablet ? "0 20px" : "0 40px";
339
+ }, ";box-sizing:border-box;position:relative;background-image:", function (_ref12) {
340
+ var backgroundImage = _ref12.backgroundImage;
341
+ return backgroundImage ? "url(".concat(backgroundImage, ")") : "none";
342
+ }, ";background-size:cover;background-position:center;background-color:", function (_ref13) {
343
+ var backgroundColor = _ref13.backgroundColor;
344
+ return backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : "#fff";
345
+ }, ";overflow-y:hidden;");
346
+ var SubtitleContainer = /*#__PURE__*/_styled__default.default(Stack, {
347
+ target: "efnp08i1"
348
+ })("height:80px;width:100%;max-width:1200px;padding:20px 40px;display:flex;align-items:", function (_ref14) {
349
+ var alignment = _ref14.alignment;
275
350
  return alignment;
276
- }, ";justify-content:", function (_ref11) {
277
- var justifyContent = _ref11.justifyContent;
351
+ }, ";justify-content:", function (_ref15) {
352
+ var justifyContent = _ref15.justifyContent;
278
353
  return justifyContent;
279
- }, ";background-color:", function (_ref12) {
280
- var isSticky = _ref12.isSticky;
354
+ }, ";background-color:", function (_ref16) {
355
+ var isSticky = _ref16.isSticky;
281
356
  return isSticky ? "#fff" : "none";
282
- }, ";position:", function (_ref13) {
283
- var isSticky = _ref13.isSticky;
357
+ }, ";position:", function (_ref17) {
358
+ var isSticky = _ref17.isSticky;
284
359
  return isSticky ? "sticky" : "relative";
285
- }, ";top:", function (_ref14) {
286
- var isSticky = _ref14.isSticky;
360
+ }, ";top:", function (_ref18) {
361
+ var isSticky = _ref18.isSticky;
287
362
  return isSticky ? "0" : "auto";
288
- }, ";left:0;z-index:10;transition:all 0.2s ease-in-out;box-shadow:", function (_ref15) {
289
- var isSticky = _ref15.isSticky;
363
+ }, ";left:0;z-index:10;transition:all 0.2s ease-in-out;box-shadow:", function (_ref19) {
364
+ var isSticky = _ref19.isSticky;
290
365
  return isSticky ? "0 2px 5px rgba(0, 0, 0, 0.1)" : "none";
291
366
  }, ";");
292
- var _ContentContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
293
- target: "efnp08i2"
294
- })("flex:1;width:100%;max-width:1200px;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref16) {
295
- var theme = _ref16.theme;
296
- return theme.palette.primary.main;
297
- }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref17) {
298
- var theme = _ref17.theme;
299
- return theme.palette.grey[300];
300
- }, ";border-radius:4px;}");
301
367
  var ScrollMoreButton = /*#__PURE__*/_styled__default.default(material.Button, {
302
- target: "efnp08i1"
368
+ target: "efnp08i0"
303
369
  })("production" === "production" ? {
304
370
  name: "qkrk8u",
305
371
  styles: "position:absolute;bottom:20px;right:46px;border-radius:50%;min-width:36px;height:36px;padding:0;z-index:20"
@@ -308,14 +374,17 @@ var ScrollMoreButton = /*#__PURE__*/_styled__default.default(material.Button, {
308
374
  styles: "position:absolute;bottom:20px;right:46px;border-radius:50%;min-width:36px;height:36px;padding:0;z-index:20",
309
375
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
310
376
  });
311
- var _Content = /*#__PURE__*/_styled__default.default(material.Stack, {
312
- target: "efnp08i0"
313
- })("flex:1;width:100%;min-height:0;display:flex;text-align:", function (_ref18) {
314
- var alignment = _ref18.alignment;
315
- return alignment;
316
- }, ";justify-content:", function (_ref19) {
317
- var justifyContent = _ref19.justifyContent;
318
- return justifyContent;
319
- }, ";");
320
377
 
321
- exports.default = EliceLayout;
378
+ exports.Box = Box;
379
+ exports.Content = Content;
380
+ exports.ContentContainer = ContentContainer;
381
+ exports.FooterContainer = FooterContainer;
382
+ exports.FooterPaging = FooterPaging;
383
+ exports.FooterSubmit = FooterSubmit;
384
+ exports.HeaderContainer = HeaderContainer;
385
+ exports.HeaderSubTitle = HeaderSubTitle;
386
+ exports.HeaderTitle = HeaderTitle;
387
+ exports.Layout = Layout;
388
+ exports.Stack = Stack;
389
+ exports.Subtitle = Subtitle;
390
+ exports.Typography = Typography;
@@ -1,2 +1,34 @@
1
- export { default as EliceLayout } from './Layout';
1
+ /// <reference types="react" />
2
+ export { Layout, HeaderContainer, HeaderTitle, HeaderSubTitle, ContentContainer, Content, FooterContainer, FooterPaging, FooterSubmit, Box, Stack, Typography, } from './Layout';
3
+ export declare const EliceLayout: (({ children, onPrev, onNext, allowPrev, allowNext, backgroundImage, backgroundColor, onlyPage, enableScrollTracking, sx }: import("./Layout").EliceLayoutProps) => import("react/jsx-runtime").JSX.Element) & {
4
+ HeaderContainer: ({ children, sx }: {
5
+ children: import("react").ReactNode;
6
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ HeaderTitle: ({ children, titleComponent, sx }: import("./Header").LayoutHeaderTitleProps) => JSX.Element;
9
+ HeaderSubTitle: ({ children, sx }: import("./Header").LayoutHeaderSubTitleProps) => JSX.Element;
10
+ Subtitle: ({ children, alignment, justifyContent, sx }: {
11
+ children: import("react").ReactNode;
12
+ alignment?: ("center" | "right" | "left") | undefined;
13
+ justifyContent?: string | undefined;
14
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
+ ContentContainer: ({ children, sx, scrollbarPostion }: {
17
+ children: import("react").ReactNode;
18
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
19
+ scrollbarPostion?: number | undefined;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ Content: ({ children, alignment, justifyContent, sx, }: {
22
+ children: import("react").ReactNode;
23
+ alignment?: ("center" | "right" | "left") | undefined;
24
+ justifyContent?: string | undefined;
25
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
26
+ }) => import("react/jsx-runtime").JSX.Element;
27
+ FooterContainer: ({ children, sx }: {
28
+ children: import("react").ReactNode;
29
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
30
+ }) => import("react/jsx-runtime").JSX.Element;
31
+ FooterPaging: import("react").FC<import("./Footer").LayoutFooterPagingProps>;
32
+ FooterSubmit: ({ isRollback, isSubmit, disableRollback, disableSubmit, submitText, rollbackText, onSubmit, onRollback, sx, }: import("./Footer").LayoutFooterSubmitProps) => import("react/jsx-runtime").JSX.Element;
33
+ };
2
34
  export type { EliceLayoutProps } from './Layout';
@@ -2,6 +2,28 @@
2
2
 
3
3
  var Layout = require('./Layout.js');
4
4
 
5
+ var EliceLayout = Object.assign(Layout.Layout, {
6
+ HeaderContainer: Layout.HeaderContainer,
7
+ HeaderTitle: Layout.HeaderTitle,
8
+ HeaderSubTitle: Layout.HeaderSubTitle,
9
+ Subtitle: Layout.Subtitle,
10
+ ContentContainer: Layout.ContentContainer,
11
+ Content: Layout.Content,
12
+ FooterContainer: Layout.FooterContainer,
13
+ FooterPaging: Layout.FooterPaging,
14
+ FooterSubmit: Layout.FooterSubmit
15
+ });
5
16
 
6
-
7
- exports.EliceLayout = Layout.default;
17
+ exports.Box = Layout.Box;
18
+ exports.Content = Layout.Content;
19
+ exports.ContentContainer = Layout.ContentContainer;
20
+ exports.FooterContainer = Layout.FooterContainer;
21
+ exports.FooterPaging = Layout.FooterPaging;
22
+ exports.FooterSubmit = Layout.FooterSubmit;
23
+ exports.HeaderContainer = Layout.HeaderContainer;
24
+ exports.HeaderSubTitle = Layout.HeaderSubTitle;
25
+ exports.HeaderTitle = Layout.HeaderTitle;
26
+ exports.Layout = Layout.Layout;
27
+ exports.Stack = Layout.Stack;
28
+ exports.Typography = Layout.Typography;
29
+ exports.EliceLayout = EliceLayout;