@elicecontents/content-ui 1.0.0 → 1.0.1-layoutupdate.0

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.
@@ -2,6 +2,10 @@ import React from "react";
2
2
  export interface LayoutFooterPagingProps {
3
3
  currentPage: number;
4
4
  totalPage: number;
5
+ onPrev?: () => void;
6
+ onNext?: () => void;
7
+ allowPrev?: boolean;
8
+ allowNext?: boolean;
5
9
  }
6
10
  declare const LayoutFooterPaging: React.FC<LayoutFooterPagingProps>;
7
11
  export default LayoutFooterPaging;
@@ -5,12 +5,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _styled = require('@emotion/styled/base');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var material = require('@mui/material');
8
+ var useAIDTMediaQuery = require('../../../hooks/useAIDTMediaQuery.js');
9
+ var PaginationButton = require('../../pagination-button/PaginationButton.js');
8
10
 
9
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
12
 
11
13
  var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
12
14
 
13
15
  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)."; }
16
+ var FooterContainer = /*#__PURE__*/_styled__default.default("div", {
17
+ target: "ecog5a42"
18
+ })("production" === "production" ? {
19
+ name: "vw5qh8",
20
+ styles: "display:flex;align-items:center;justify-content:center;gap:12px"
21
+ } : {
22
+ name: "vw5qh8",
23
+ styles: "display:flex;align-items:center;justify-content:center;gap:12px",
24
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
+ });
14
26
  var FooterPagination = /*#__PURE__*/_styled__default.default(material.Typography, {
15
27
  target: "ecog5a41"
16
28
  })("production" === "production" ? {
@@ -29,17 +41,35 @@ var StyledCurrentPage = /*#__PURE__*/_styled__default.default("span", {
29
41
  }, ";");
30
42
  var LayoutFooterPaging = function LayoutFooterPaging(_ref2) {
31
43
  var currentPage = _ref2.currentPage,
32
- totalPage = _ref2.totalPage;
44
+ totalPage = _ref2.totalPage,
45
+ onPrev = _ref2.onPrev,
46
+ onNext = _ref2.onNext,
47
+ _ref2$allowPrev = _ref2.allowPrev,
48
+ allowPrev = _ref2$allowPrev === void 0 ? true : _ref2$allowPrev,
49
+ _ref2$allowNext = _ref2.allowNext,
50
+ allowNext = _ref2$allowNext === void 0 ? true : _ref2$allowNext;
33
51
  var theme = material.useTheme();
34
- return jsxRuntime.jsxs(FooterPagination, {
35
- variant: "pagination",
36
- sx: {
37
- color: "#D8D8E2"
38
- },
39
- children: [jsxRuntime.jsx(StyledCurrentPage, {
40
- fontColor: theme.palette.primary.main,
41
- children: currentPage
42
- }), " ", "/ ", totalPage]
52
+ var _useAIDTMediaQuery = useAIDTMediaQuery.default(),
53
+ isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
54
+ return jsxRuntime.jsxs(FooterContainer, {
55
+ children: [isMiniTablet && jsxRuntime.jsx(PaginationButton.default, {
56
+ left: true,
57
+ onClick: onPrev,
58
+ disabled: !allowPrev
59
+ }), jsxRuntime.jsxs(FooterPagination, {
60
+ variant: "pagination",
61
+ sx: {
62
+ color: "#D8D8E2"
63
+ },
64
+ children: [jsxRuntime.jsx(StyledCurrentPage, {
65
+ fontColor: theme.palette.primary.main,
66
+ children: currentPage
67
+ }), " ", "/ ", totalPage]
68
+ }), isMiniTablet && jsxRuntime.jsx(PaginationButton.default, {
69
+ right: true,
70
+ onClick: onNext,
71
+ disabled: !allowNext
72
+ })]
43
73
  });
44
74
  };
45
75
 
@@ -16,24 +16,29 @@ var StyledTitle = /*#__PURE__*/_styled__default.default(material.Stack, {
16
16
  })("flex-shrink:0;width:fit-content;background-color:", function (_ref) {
17
17
  var bgColor = _ref.bgColor;
18
18
  return bgColor;
19
- }, ";position:relative;top:auto;box-sizing:border-box;padding-top:17px;border-radius:0 0 26px 26px;");
19
+ }, ";position:relative;top:auto;height:68px;box-sizing:border-box;padding-top:17px;border-radius:0 0 26px 26px;");
20
20
  var Title = /*#__PURE__*/_styled__default.default(material.Typography, {
21
21
  target: "e1to23d40"
22
22
  })("production" === "production" ? {
23
- name: "v13ytb",
24
- styles: "border-top:1px dashed #fff;height:100%;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff"
23
+ name: "kefn72",
24
+ styles: "border-top:1px dashed #fff;height:35px;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff"
25
25
  } : {
26
- name: "v13ytb",
27
- styles: "border-top:1px dashed #fff;height:100%;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff",
26
+ name: "kefn72",
27
+ styles: "border-top:1px dashed #fff;height:35px;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff",
28
28
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
29
29
  });
30
30
  var LayoutHeaderTitle = function LayoutHeaderTitle(_ref2) {
31
31
  var children = _ref2.children,
32
32
  titleComponent = _ref2.titleComponent;
33
33
  var theme = material.useTheme();
34
+ if (titleComponent) {
35
+ return jsxRuntime.jsx(jsxRuntime.Fragment, {
36
+ children: titleComponent
37
+ });
38
+ }
34
39
  return jsxRuntime.jsx(StyledTitle, {
35
40
  bgColor: theme.palette.secondary.main,
36
- children: titleComponent ? titleComponent : typeof children === "string" ? jsxRuntime.jsx(Title, {
41
+ children: typeof children === "string" ? jsxRuntime.jsx(Title, {
37
42
  variant: "h1",
38
43
  children: children
39
44
  }) : children
@@ -7,23 +7,22 @@ export interface EliceLayoutProps {
7
7
  allowNext?: boolean;
8
8
  }
9
9
  declare const EliceLayout: (({ children, onPrev, onNext, allowPrev, allowNext }: EliceLayoutProps) => import("react/jsx-runtime").JSX.Element) & {
10
- HeaderContainer: ({ children, height }: {
10
+ HeaderContainer: ({ children }: {
11
11
  children: React.ReactNode;
12
- height?: string | undefined;
13
12
  }) => import("react/jsx-runtime").JSX.Element;
14
13
  HeaderTitle: ({ children, titleComponent }: import("./Header").LayoutHeaderTitleProps) => JSX.Element;
15
14
  HeaderSubTitle: ({ children }: import("./Header").LayoutHeaderSubTitleProps) => JSX.Element;
16
- Subtitle: ({ children, height }: {
15
+ Subtitle: ({ children }: {
17
16
  children: React.ReactNode;
18
- height?: string | undefined;
19
17
  }) => import("react/jsx-runtime").JSX.Element;
20
- Content: ({ children, height }: {
18
+ ContentContainer: ({ children }: {
21
19
  children: React.ReactNode;
22
- height?: string | undefined;
23
20
  }) => import("react/jsx-runtime").JSX.Element;
24
- FooterContainer: ({ children, height }: {
21
+ Content: ({ children }: {
22
+ children: React.ReactNode;
23
+ }) => import("react/jsx-runtime").JSX.Element;
24
+ FooterContainer: ({ children }: {
25
25
  children: React.ReactNode;
26
- height?: string | undefined;
27
26
  }) => import("react/jsx-runtime").JSX.Element;
28
27
  FooterPaging: React.FC<import("./Footer").LayoutFooterPagingProps>;
29
28
  FooterSubmit: React.FC<{}>;
@@ -2,112 +2,196 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
5
6
  var _styled = require('@emotion/styled/base');
6
7
  var jsxRuntime = require('react/jsx-runtime');
8
+ var React = require('react');
7
9
  var material = require('@mui/material');
8
10
  var useAIDTMediaQuery = require('../../hooks/useAIDTMediaQuery.js');
11
+ var ScrollMoreIcon = require('../../icons/ScrollMoreIcon.js');
9
12
  var LayoutPagination = require('./layout-pagination/LayoutPagination.js');
10
- var LayoutHeaderSubTitle = require('./Header/LayoutHeaderSubTitle.js');
11
- var LayoutHeaderTitle = require('./Header/LayoutHeaderTitle.js');
12
13
  var LayoutFooterPaging = require('./Footer/LayoutFooterPaging.js');
13
14
  var LayoutFooterSubmit = require('./Footer/LayoutFooterSubmit.js');
15
+ var LayoutHeaderSubTitle = require('./Header/LayoutHeaderSubTitle.js');
16
+ var LayoutHeaderTitle = require('./Header/LayoutHeaderTitle.js');
14
17
 
15
18
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
16
19
 
17
20
  var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
21
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
22
 
23
+ 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
+ var EliceLayoutContext = React__default.default.createContext(undefined);
19
25
  var MainContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
20
- target: "efnp08i4"
21
- })("width:100%;height:100%;background:#fff;padding:", function (_ref) {
26
+ target: "efnp08i6"
27
+ })("width:100%;height:calc(100vh - 112px);display:flex;flex-direction:column;padding:", function (_ref) {
22
28
  var isMiniTablet = _ref.isMiniTablet;
23
29
  return isMiniTablet ? "0 20px" : "0 40px";
24
- }, ";box-sizing:border-box;position:relative;");
30
+ }, ";box-sizing:border-box;position:relative;overflow-y:none;");
25
31
  var _HeaderContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
26
- target: "efnp08i3"
27
- })("height:", function (_ref2) {
28
- var height = _ref2.height;
29
- return height || "74px";
30
- }, ";width:100%;background:#fff;justify-content:space-between;flex-direction:row;align-items:center;");
32
+ target: "efnp08i5"
33
+ })("production" === "production" ? {
34
+ name: "14ia2gs",
35
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
36
+ } : {
37
+ name: "14ia2gs",
38
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
39
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
+ });
41
+ var _FooterContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
42
+ target: "efnp08i4"
43
+ })("production" === "production" ? {
44
+ name: "1mz0nio",
45
+ styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row"
46
+ } : {
47
+ name: "1mz0nio",
48
+ styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row",
49
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
50
+ });
31
51
  var SubtitleContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
52
+ target: "efnp08i3"
53
+ })("height:80px;width:100%;padding:20px 40px;display:flex;background-color:", function (_ref2) {
54
+ var isSticky = _ref2.isSticky;
55
+ return isSticky ? "#fff" : "none";
56
+ }, ";position:", function (_ref3) {
57
+ var isSticky = _ref3.isSticky;
58
+ return isSticky ? "sticky" : "none";
59
+ }, ";top:", function (_ref4) {
60
+ var isSticky = _ref4.isSticky;
61
+ return isSticky ? "0" : "auto";
62
+ }, ";left:0;z-index:10;transition:all 0.2s ease-in-out;box-shadow:", function (_ref5) {
63
+ var isSticky = _ref5.isSticky;
64
+ return isSticky ? "0 2px 5px rgba(0, 0, 0, 0.1)" : "none";
65
+ }, ";");
66
+ var _ContentContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
32
67
  target: "efnp08i2"
33
- })("height:", function (_ref3) {
34
- var height = _ref3.height;
35
- return height || "80px";
36
- }, ";width:100%;padding:20px 40px;background-color:#f7f7f7;margin-top:18px;margin-bottom:14px;display:flex;align-items:center;");
37
- var ContentContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
68
+ })("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 (_ref6) {
69
+ var theme = _ref6.theme;
70
+ return theme.palette.primary.main;
71
+ }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref7) {
72
+ var theme = _ref7.theme;
73
+ return theme.palette.grey[300];
74
+ }, ";border-radius:4px;}");
75
+ var ScrollMoreButton = /*#__PURE__*/_styled__default.default(material.Button, {
38
76
  target: "efnp08i1"
39
- })("height:", function (_ref4) {
40
- var height = _ref4.height;
41
- return height || "100%";
42
- }, ";width:100%;background-color:#fff;");
43
- var _FooterContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
77
+ })("production" === "production" ? {
78
+ name: "qkrk8u",
79
+ styles: "position:absolute;bottom:20px;right:46px;border-radius:50%;min-width:36px;height:36px;padding:0;z-index:20"
80
+ } : {
81
+ name: "qkrk8u",
82
+ styles: "position:absolute;bottom:20px;right:46px;border-radius:50%;min-width:36px;height:36px;padding:0;z-index:20",
83
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
84
+ });
85
+ var _Content = /*#__PURE__*/_styled__default.default(material.Stack, {
44
86
  target: "efnp08i0"
45
- })("height:", function (_ref5) {
46
- var height = _ref5.height;
47
- return height || "92px";
48
- }, ";width:100%;background:#fff;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row;");
49
- var EliceLayout = Object.assign(function (_ref6) {
50
- var children = _ref6.children,
51
- onPrev = _ref6.onPrev,
52
- onNext = _ref6.onNext,
53
- allowPrev = _ref6.allowPrev,
54
- allowNext = _ref6.allowNext;
55
- var theme = material.useTheme();
87
+ })("production" === "production" ? {
88
+ name: "e7007z",
89
+ styles: "flex:1;width:100%;max-height:610px;min-height:0"
90
+ } : {
91
+ name: "e7007z",
92
+ styles: "flex:1;width:100%;max-height:610px;min-height:0",
93
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
94
+ });
95
+ var EliceLayout = Object.assign(function (_ref8) {
96
+ var children = _ref8.children,
97
+ onPrev = _ref8.onPrev,
98
+ onNext = _ref8.onNext,
99
+ allowPrev = _ref8.allowPrev,
100
+ allowNext = _ref8.allowNext;
56
101
  var _useAIDTMediaQuery = useAIDTMediaQuery.default(),
102
+ isTablet = _useAIDTMediaQuery.isTablet,
57
103
  isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
58
- return jsxRuntime.jsxs(MainContainer, {
59
- bgColor: theme.palette.background["default"],
60
- isMiniTablet: isMiniTablet,
61
- children: [jsxRuntime.jsx(LayoutPagination.default, {
62
- onPrev: onPrev,
63
- onNext: onNext,
64
- allowPrev: allowPrev,
65
- allowNext: allowNext
66
- }), children]
104
+ var _React$useState = React__default.default.useState(false),
105
+ _React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
106
+ isScrollActive = _React$useState2[0],
107
+ setIsScrollActive = _React$useState2[1];
108
+ return jsxRuntime.jsx(EliceLayoutContext.Provider, {
109
+ value: {
110
+ isScrollActive: isScrollActive,
111
+ setIsScrollActive: setIsScrollActive
112
+ },
113
+ children: jsxRuntime.jsxs(MainContainer, {
114
+ isMiniTablet: isMiniTablet,
115
+ children: [!isTablet && jsxRuntime.jsx(LayoutPagination.default, {
116
+ onPrev: onPrev,
117
+ onNext: onNext,
118
+ allowPrev: allowPrev,
119
+ allowNext: allowNext
120
+ }), children]
121
+ })
67
122
  });
68
123
  }, {
69
- // 헤더 height 조절 가능
70
- HeaderContainer: function HeaderContainer(_ref7) {
71
- var children = _ref7.children,
72
- height = _ref7.height;
124
+ HeaderContainer: function HeaderContainer(_ref9) {
125
+ var children = _ref9.children;
73
126
  return jsxRuntime.jsx(_HeaderContainer, {
74
- height: height,
75
127
  children: children
76
128
  });
77
129
  },
78
130
  HeaderTitle: LayoutHeaderTitle.default,
79
131
  HeaderSubTitle: LayoutHeaderSubTitle.default,
80
- // 서브타이틀 height 조절 가능
81
- Subtitle: function Subtitle(_ref8) {
82
- var children = _ref8.children,
83
- height = _ref8.height;
132
+ Subtitle: function Subtitle(_ref10) {
133
+ var children = _ref10.children;
134
+ var context = React__default.default.useContext(EliceLayoutContext);
135
+ if (!context) {
136
+ throw new Error("EliceLayout components must be used within an EliceLayout provider.");
137
+ }
138
+ var isScrollActive = context.isScrollActive;
84
139
  return jsxRuntime.jsx(SubtitleContainer, {
85
- height: height,
140
+ isSticky: isScrollActive,
86
141
  children: children
87
142
  });
88
143
  },
89
- // Content height 조절 가능
90
- Content: function Content(_ref9) {
91
- var children = _ref9.children,
92
- height = _ref9.height;
93
- var _useAIDTMediaQuery2 = useAIDTMediaQuery.default(),
94
- isMobile = _useAIDTMediaQuery2.isMobile,
95
- isMiniTablet = _useAIDTMediaQuery2.isMiniTablet,
96
- isTablet = _useAIDTMediaQuery2.isTablet,
97
- isNotebook = _useAIDTMediaQuery2.isNotebook;
98
- // 화면 크기에 따라 기본 Content 높이 설정 (props가 없을 경우)
99
- var defaultHeight = isMobile ? "473px" : isMiniTablet ? "354px" : isTablet ? "410px" : isNotebook ? "510px" : "610px";
100
- return jsxRuntime.jsx(ContentContainer, {
101
- height: height || defaultHeight,
102
- children: children
144
+ ContentContainer: function ContentContainer(_ref11) {
145
+ var children = _ref11.children;
146
+ var theme = material.useTheme();
147
+ var contentRef = React__default.default.useRef(null);
148
+ var context = React__default.default.useContext(EliceLayoutContext);
149
+ if (!context) {
150
+ throw new Error("EliceLayout components must be used within an EliceLayout provider.");
151
+ }
152
+ var isScrollActive = context.isScrollActive,
153
+ setIsScrollActive = context.setIsScrollActive;
154
+ React__default.default.useEffect(function () {
155
+ var handleScroll = function handleScroll() {
156
+ if (contentRef.current) {
157
+ var scrollTop = contentRef.current.scrollTop;
158
+ setIsScrollActive(scrollTop > 10);
159
+ }
160
+ };
161
+ var element = contentRef.current;
162
+ if (element) {
163
+ element.addEventListener("scroll", handleScroll);
164
+ handleScroll();
165
+ }
166
+ return function () {
167
+ if (element) {
168
+ element.removeEventListener("scroll", handleScroll);
169
+ }
170
+ };
171
+ }, []);
172
+ return jsxRuntime.jsxs(_ContentContainer, {
173
+ ref: contentRef,
174
+ theme: theme,
175
+ children: [children, !isScrollActive && jsxRuntime.jsx(ScrollMoreButton, {
176
+ children: jsxRuntime.jsx(ScrollMoreIcon.default, {
177
+ size: 32,
178
+ color: "white"
179
+ })
180
+ })]
181
+ });
182
+ },
183
+ Content: function Content(_ref12) {
184
+ var children = _ref12.children;
185
+ return jsxRuntime.jsx(_Content, {
186
+ children: jsxRuntime.jsx(material.Typography, {
187
+ variant: "body1",
188
+ children: children
189
+ })
103
190
  });
104
191
  },
105
- // 푸터 height 조절 가능
106
- FooterContainer: function FooterContainer(_ref10) {
107
- var children = _ref10.children,
108
- height = _ref10.height;
192
+ FooterContainer: function FooterContainer(_ref13) {
193
+ var children = _ref13.children;
109
194
  return jsxRuntime.jsx(_FooterContainer, {
110
- height: height,
111
195
  children: children
112
196
  });
113
197
  },
@@ -14,11 +14,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
14
14
  var PaginationWrapper = /*#__PURE__*/_styled__default.default("div", {
15
15
  target: "e8oep9n0"
16
16
  })("production" === "production" ? {
17
- name: "ekcpux",
18
- styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;transform:translateY(-50%)"
17
+ name: "1m30dfz",
18
+ styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;z-index:100;transform:translateY(-50%)"
19
19
  } : {
20
- name: "ekcpux",
21
- styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;transform:translateY(-50%)",
20
+ name: "1m30dfz",
21
+ styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;z-index:100;transform:translateY(-50%)",
22
22
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
23
  });
24
24
  var LayoutPagination = function LayoutPagination(_ref) {
@@ -23,7 +23,7 @@ var EliceSubButton = React.forwardRef(function (_a, ref) {
23
23
  disabled: disabled,
24
24
  sx: {
25
25
  width: isTablet ? '100%' : 'fit-content',
26
- height: '56px',
26
+ height: '52px',
27
27
  borderRadius: isTablet ? 0 : '16px',
28
28
  padding: '8px 12px',
29
29
  backgroundColor: bluepurple.bluepurple[100],
@@ -0,0 +1,7 @@
1
+ import { IconProps } from "./_types";
2
+ interface ScrollMoreIconProps extends IconProps {
3
+ bgColor?: string;
4
+ arrowColor?: string;
5
+ }
6
+ declare const ScrollMoreIcon: ({ size, bgColor, arrowColor, ...other }: ScrollMoreIconProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ScrollMoreIcon;
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ var ScrollMoreIcon = function ScrollMoreIcon(_a) {
9
+ var _a$size = _a.size,
10
+ size = _a$size === void 0 ? 36 : _a$size,
11
+ _a$bgColor = _a.bgColor,
12
+ bgColor = _a$bgColor === void 0 ? "#7D89C2" : _a$bgColor,
13
+ _a$arrowColor = _a.arrowColor,
14
+ arrowColor = _a$arrowColor === void 0 ? "white" : _a$arrowColor,
15
+ other = tslib.__rest(_a, ["size", "bgColor", "arrowColor"]);
16
+ return jsxRuntime.jsxs("svg", Object.assign({
17
+ width: size,
18
+ height: size,
19
+ viewBox: "0 0 36 36",
20
+ fill: "none",
21
+ xmlns: "http://www.w3.org/2000/svg"
22
+ }, other, {
23
+ children: [jsxRuntime.jsx("rect", {
24
+ width: "36",
25
+ height: "36",
26
+ rx: "16",
27
+ fill: bgColor
28
+ }), jsxRuntime.jsx("path", {
29
+ d: "M17.1914 22.4336L12.6914 17.9336C12.375 17.6172 12.2695 17.125 12.4453 16.7031C12.6211 16.2812 13.043 16 13.5 16H22.5C22.957 16 23.3438 16.2812 23.5195 16.7031C23.6953 17.125 23.5898 17.6172 23.2734 17.9336L18.7734 22.4336C18.3516 22.8906 17.6133 22.8906 17.1914 22.4336Z",
30
+ fill: arrowColor
31
+ })]
32
+ }));
33
+ };
34
+
35
+ exports.default = ScrollMoreIcon;
@@ -1,4 +1,3 @@
1
- export { default as EliceImage } from './AdaptiveImage/AdaptiveImage.js';
2
1
  export { default as EliceAIFeedback } from './AI-feedback/AIFeedback.js';
3
2
  export { default as EliceBadge } from './badge/Badge.js';
4
3
  export { default as EliceButton } from './button/Button.js';
@@ -14,4 +13,5 @@ export { default as EliceTable } from './table/Table.js';
14
13
  export { default as EliceTextarea } from './textarea/Textarea.js';
15
14
  export { default as EliceTooltip } from './tooltip/Tooltip.js';
16
15
  export { default as AIDTTypography } from './AIDTTypography/AIDTTypography.js';
16
+ export { default as EliceImage } from './AdaptiveImage/AdaptiveImage.js';
17
17
  export { default as EliceSubButton } from './subtitle-button/SubtitleButton.js';
@@ -2,6 +2,10 @@ import React from "react";
2
2
  export interface LayoutFooterPagingProps {
3
3
  currentPage: number;
4
4
  totalPage: number;
5
+ onPrev?: () => void;
6
+ onNext?: () => void;
7
+ allowPrev?: boolean;
8
+ allowNext?: boolean;
5
9
  }
6
10
  declare const LayoutFooterPaging: React.FC<LayoutFooterPagingProps>;
7
11
  export default LayoutFooterPaging;
@@ -1,8 +1,20 @@
1
1
  import _styled from '@emotion/styled/base';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { Typography, useTheme } from '@mui/material';
4
+ import useAIDTMediaQuery from '../../../hooks/useAIDTMediaQuery.js';
5
+ import PaginationButton from '../../pagination-button/PaginationButton.js';
4
6
 
5
7
  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)."; }
8
+ var FooterContainer = /*#__PURE__*/_styled("div", {
9
+ target: "ecog5a42"
10
+ })("production" === "production" ? {
11
+ name: "vw5qh8",
12
+ styles: "display:flex;align-items:center;justify-content:center;gap:12px"
13
+ } : {
14
+ name: "vw5qh8",
15
+ styles: "display:flex;align-items:center;justify-content:center;gap:12px",
16
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
17
+ });
6
18
  var FooterPagination = /*#__PURE__*/_styled(Typography, {
7
19
  target: "ecog5a41"
8
20
  })("production" === "production" ? {
@@ -21,17 +33,35 @@ var StyledCurrentPage = /*#__PURE__*/_styled("span", {
21
33
  }, ";");
22
34
  var LayoutFooterPaging = function LayoutFooterPaging(_ref2) {
23
35
  var currentPage = _ref2.currentPage,
24
- totalPage = _ref2.totalPage;
36
+ totalPage = _ref2.totalPage,
37
+ onPrev = _ref2.onPrev,
38
+ onNext = _ref2.onNext,
39
+ _ref2$allowPrev = _ref2.allowPrev,
40
+ allowPrev = _ref2$allowPrev === void 0 ? true : _ref2$allowPrev,
41
+ _ref2$allowNext = _ref2.allowNext,
42
+ allowNext = _ref2$allowNext === void 0 ? true : _ref2$allowNext;
25
43
  var theme = useTheme();
26
- return jsxs(FooterPagination, {
27
- variant: "pagination",
28
- sx: {
29
- color: "#D8D8E2"
30
- },
31
- children: [jsx(StyledCurrentPage, {
32
- fontColor: theme.palette.primary.main,
33
- children: currentPage
34
- }), " ", "/ ", totalPage]
44
+ var _useAIDTMediaQuery = useAIDTMediaQuery(),
45
+ isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
46
+ return jsxs(FooterContainer, {
47
+ children: [isMiniTablet && jsx(PaginationButton, {
48
+ left: true,
49
+ onClick: onPrev,
50
+ disabled: !allowPrev
51
+ }), jsxs(FooterPagination, {
52
+ variant: "pagination",
53
+ sx: {
54
+ color: "#D8D8E2"
55
+ },
56
+ children: [jsx(StyledCurrentPage, {
57
+ fontColor: theme.palette.primary.main,
58
+ children: currentPage
59
+ }), " ", "/ ", totalPage]
60
+ }), isMiniTablet && jsx(PaginationButton, {
61
+ right: true,
62
+ onClick: onNext,
63
+ disabled: !allowNext
64
+ })]
35
65
  });
36
66
  };
37
67
 
@@ -1,5 +1,5 @@
1
1
  import _styled from '@emotion/styled/base';
2
- import { jsx } from 'react/jsx-runtime';
2
+ import { jsx, Fragment } from 'react/jsx-runtime';
3
3
  import { Typography, useTheme, Stack } from '@mui/material';
4
4
 
5
5
  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)."; }
@@ -8,24 +8,29 @@ var StyledTitle = /*#__PURE__*/_styled(Stack, {
8
8
  })("flex-shrink:0;width:fit-content;background-color:", function (_ref) {
9
9
  var bgColor = _ref.bgColor;
10
10
  return bgColor;
11
- }, ";position:relative;top:auto;box-sizing:border-box;padding-top:17px;border-radius:0 0 26px 26px;");
11
+ }, ";position:relative;top:auto;height:68px;box-sizing:border-box;padding-top:17px;border-radius:0 0 26px 26px;");
12
12
  var Title = /*#__PURE__*/_styled(Typography, {
13
13
  target: "e1to23d40"
14
14
  })("production" === "production" ? {
15
- name: "v13ytb",
16
- styles: "border-top:1px dashed #fff;height:100%;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff"
15
+ name: "kefn72",
16
+ styles: "border-top:1px dashed #fff;height:35px;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff"
17
17
  } : {
18
- name: "v13ytb",
19
- styles: "border-top:1px dashed #fff;height:100%;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff",
18
+ name: "kefn72",
19
+ styles: "border-top:1px dashed #fff;height:35px;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff",
20
20
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
21
21
  });
22
22
  var LayoutHeaderTitle = function LayoutHeaderTitle(_ref2) {
23
23
  var children = _ref2.children,
24
24
  titleComponent = _ref2.titleComponent;
25
25
  var theme = useTheme();
26
+ if (titleComponent) {
27
+ return jsx(Fragment, {
28
+ children: titleComponent
29
+ });
30
+ }
26
31
  return jsx(StyledTitle, {
27
32
  bgColor: theme.palette.secondary.main,
28
- children: titleComponent ? titleComponent : typeof children === "string" ? jsx(Title, {
33
+ children: typeof children === "string" ? jsx(Title, {
29
34
  variant: "h1",
30
35
  children: children
31
36
  }) : children
@@ -7,23 +7,22 @@ export interface EliceLayoutProps {
7
7
  allowNext?: boolean;
8
8
  }
9
9
  declare const EliceLayout: (({ children, onPrev, onNext, allowPrev, allowNext }: EliceLayoutProps) => import("react/jsx-runtime").JSX.Element) & {
10
- HeaderContainer: ({ children, height }: {
10
+ HeaderContainer: ({ children }: {
11
11
  children: React.ReactNode;
12
- height?: string | undefined;
13
12
  }) => import("react/jsx-runtime").JSX.Element;
14
13
  HeaderTitle: ({ children, titleComponent }: import("./Header").LayoutHeaderTitleProps) => JSX.Element;
15
14
  HeaderSubTitle: ({ children }: import("./Header").LayoutHeaderSubTitleProps) => JSX.Element;
16
- Subtitle: ({ children, height }: {
15
+ Subtitle: ({ children }: {
17
16
  children: React.ReactNode;
18
- height?: string | undefined;
19
17
  }) => import("react/jsx-runtime").JSX.Element;
20
- Content: ({ children, height }: {
18
+ ContentContainer: ({ children }: {
21
19
  children: React.ReactNode;
22
- height?: string | undefined;
23
20
  }) => import("react/jsx-runtime").JSX.Element;
24
- FooterContainer: ({ children, height }: {
21
+ Content: ({ children }: {
22
+ children: React.ReactNode;
23
+ }) => import("react/jsx-runtime").JSX.Element;
24
+ FooterContainer: ({ children }: {
25
25
  children: React.ReactNode;
26
- height?: string | undefined;
27
26
  }) => import("react/jsx-runtime").JSX.Element;
28
27
  FooterPaging: React.FC<import("./Footer").LayoutFooterPagingProps>;
29
28
  FooterSubmit: React.FC<{}>;
@@ -1,105 +1,188 @@
1
+ import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
1
2
  import _styled from '@emotion/styled/base';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { useTheme, Stack } from '@mui/material';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
+ import React from 'react';
5
+ import { Stack, Button, Typography, useTheme } from '@mui/material';
4
6
  import useAIDTMediaQuery from '../../hooks/useAIDTMediaQuery.js';
7
+ import ScrollMoreIcon from '../../icons/ScrollMoreIcon.js';
5
8
  import LayoutPagination from './layout-pagination/LayoutPagination.js';
6
- import LayoutHeaderSubTitle from './Header/LayoutHeaderSubTitle.js';
7
- import LayoutHeaderTitle from './Header/LayoutHeaderTitle.js';
8
9
  import LayoutFooterPaging from './Footer/LayoutFooterPaging.js';
9
10
  import LayoutFooterSubmit from './Footer/LayoutFooterSubmit.js';
11
+ import LayoutHeaderSubTitle from './Header/LayoutHeaderSubTitle.js';
12
+ import LayoutHeaderTitle from './Header/LayoutHeaderTitle.js';
10
13
 
14
+ 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)."; }
15
+ var EliceLayoutContext = React.createContext(undefined);
11
16
  var MainContainer = /*#__PURE__*/_styled(Stack, {
12
- target: "efnp08i4"
13
- })("width:100%;height:100%;background:#fff;padding:", function (_ref) {
17
+ target: "efnp08i6"
18
+ })("width:100%;height:calc(100vh - 112px);display:flex;flex-direction:column;padding:", function (_ref) {
14
19
  var isMiniTablet = _ref.isMiniTablet;
15
20
  return isMiniTablet ? "0 20px" : "0 40px";
16
- }, ";box-sizing:border-box;position:relative;");
21
+ }, ";box-sizing:border-box;position:relative;overflow-y:none;");
17
22
  var _HeaderContainer = /*#__PURE__*/_styled(Stack, {
18
- target: "efnp08i3"
19
- })("height:", function (_ref2) {
20
- var height = _ref2.height;
21
- return height || "74px";
22
- }, ";width:100%;background:#fff;justify-content:space-between;flex-direction:row;align-items:center;");
23
+ target: "efnp08i5"
24
+ })("production" === "production" ? {
25
+ name: "14ia2gs",
26
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
27
+ } : {
28
+ name: "14ia2gs",
29
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
30
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
31
+ });
32
+ var _FooterContainer = /*#__PURE__*/_styled(Stack, {
33
+ target: "efnp08i4"
34
+ })("production" === "production" ? {
35
+ name: "1mz0nio",
36
+ styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row"
37
+ } : {
38
+ name: "1mz0nio",
39
+ styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row",
40
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
41
+ });
23
42
  var SubtitleContainer = /*#__PURE__*/_styled(Stack, {
43
+ target: "efnp08i3"
44
+ })("height:80px;width:100%;padding:20px 40px;display:flex;background-color:", function (_ref2) {
45
+ var isSticky = _ref2.isSticky;
46
+ return isSticky ? "#fff" : "none";
47
+ }, ";position:", function (_ref3) {
48
+ var isSticky = _ref3.isSticky;
49
+ return isSticky ? "sticky" : "none";
50
+ }, ";top:", function (_ref4) {
51
+ var isSticky = _ref4.isSticky;
52
+ return isSticky ? "0" : "auto";
53
+ }, ";left:0;z-index:10;transition:all 0.2s ease-in-out;box-shadow:", function (_ref5) {
54
+ var isSticky = _ref5.isSticky;
55
+ return isSticky ? "0 2px 5px rgba(0, 0, 0, 0.1)" : "none";
56
+ }, ";");
57
+ var _ContentContainer = /*#__PURE__*/_styled(Stack, {
24
58
  target: "efnp08i2"
25
- })("height:", function (_ref3) {
26
- var height = _ref3.height;
27
- return height || "80px";
28
- }, ";width:100%;padding:20px 40px;background-color:#f7f7f7;margin-top:18px;margin-bottom:14px;display:flex;align-items:center;");
29
- var ContentContainer = /*#__PURE__*/_styled(Stack, {
59
+ })("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 (_ref6) {
60
+ var theme = _ref6.theme;
61
+ return theme.palette.primary.main;
62
+ }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref7) {
63
+ var theme = _ref7.theme;
64
+ return theme.palette.grey[300];
65
+ }, ";border-radius:4px;}");
66
+ var ScrollMoreButton = /*#__PURE__*/_styled(Button, {
30
67
  target: "efnp08i1"
31
- })("height:", function (_ref4) {
32
- var height = _ref4.height;
33
- return height || "100%";
34
- }, ";width:100%;background-color:#fff;");
35
- var _FooterContainer = /*#__PURE__*/_styled(Stack, {
68
+ })("production" === "production" ? {
69
+ name: "qkrk8u",
70
+ styles: "position:absolute;bottom:20px;right:46px;border-radius:50%;min-width:36px;height:36px;padding:0;z-index:20"
71
+ } : {
72
+ name: "qkrk8u",
73
+ styles: "position:absolute;bottom:20px;right:46px;border-radius:50%;min-width:36px;height:36px;padding:0;z-index:20",
74
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
75
+ });
76
+ var _Content = /*#__PURE__*/_styled(Stack, {
36
77
  target: "efnp08i0"
37
- })("height:", function (_ref5) {
38
- var height = _ref5.height;
39
- return height || "92px";
40
- }, ";width:100%;background:#fff;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row;");
41
- var EliceLayout = Object.assign(function (_ref6) {
42
- var children = _ref6.children,
43
- onPrev = _ref6.onPrev,
44
- onNext = _ref6.onNext,
45
- allowPrev = _ref6.allowPrev,
46
- allowNext = _ref6.allowNext;
47
- var theme = useTheme();
78
+ })("production" === "production" ? {
79
+ name: "e7007z",
80
+ styles: "flex:1;width:100%;max-height:610px;min-height:0"
81
+ } : {
82
+ name: "e7007z",
83
+ styles: "flex:1;width:100%;max-height:610px;min-height:0",
84
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
85
+ });
86
+ var EliceLayout = Object.assign(function (_ref8) {
87
+ var children = _ref8.children,
88
+ onPrev = _ref8.onPrev,
89
+ onNext = _ref8.onNext,
90
+ allowPrev = _ref8.allowPrev,
91
+ allowNext = _ref8.allowNext;
48
92
  var _useAIDTMediaQuery = useAIDTMediaQuery(),
93
+ isTablet = _useAIDTMediaQuery.isTablet,
49
94
  isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
50
- return jsxs(MainContainer, {
51
- bgColor: theme.palette.background["default"],
52
- isMiniTablet: isMiniTablet,
53
- children: [jsx(LayoutPagination, {
54
- onPrev: onPrev,
55
- onNext: onNext,
56
- allowPrev: allowPrev,
57
- allowNext: allowNext
58
- }), children]
95
+ var _React$useState = React.useState(false),
96
+ _React$useState2 = _slicedToArray(_React$useState, 2),
97
+ isScrollActive = _React$useState2[0],
98
+ setIsScrollActive = _React$useState2[1];
99
+ return jsx(EliceLayoutContext.Provider, {
100
+ value: {
101
+ isScrollActive: isScrollActive,
102
+ setIsScrollActive: setIsScrollActive
103
+ },
104
+ children: jsxs(MainContainer, {
105
+ isMiniTablet: isMiniTablet,
106
+ children: [!isTablet && jsx(LayoutPagination, {
107
+ onPrev: onPrev,
108
+ onNext: onNext,
109
+ allowPrev: allowPrev,
110
+ allowNext: allowNext
111
+ }), children]
112
+ })
59
113
  });
60
114
  }, {
61
- // 헤더 height 조절 가능
62
- HeaderContainer: function HeaderContainer(_ref7) {
63
- var children = _ref7.children,
64
- height = _ref7.height;
115
+ HeaderContainer: function HeaderContainer(_ref9) {
116
+ var children = _ref9.children;
65
117
  return jsx(_HeaderContainer, {
66
- height: height,
67
118
  children: children
68
119
  });
69
120
  },
70
121
  HeaderTitle: LayoutHeaderTitle,
71
122
  HeaderSubTitle: LayoutHeaderSubTitle,
72
- // 서브타이틀 height 조절 가능
73
- Subtitle: function Subtitle(_ref8) {
74
- var children = _ref8.children,
75
- height = _ref8.height;
123
+ Subtitle: function Subtitle(_ref10) {
124
+ var children = _ref10.children;
125
+ var context = React.useContext(EliceLayoutContext);
126
+ if (!context) {
127
+ throw new Error("EliceLayout components must be used within an EliceLayout provider.");
128
+ }
129
+ var isScrollActive = context.isScrollActive;
76
130
  return jsx(SubtitleContainer, {
77
- height: height,
131
+ isSticky: isScrollActive,
78
132
  children: children
79
133
  });
80
134
  },
81
- // Content height 조절 가능
82
- Content: function Content(_ref9) {
83
- var children = _ref9.children,
84
- height = _ref9.height;
85
- var _useAIDTMediaQuery2 = useAIDTMediaQuery(),
86
- isMobile = _useAIDTMediaQuery2.isMobile,
87
- isMiniTablet = _useAIDTMediaQuery2.isMiniTablet,
88
- isTablet = _useAIDTMediaQuery2.isTablet,
89
- isNotebook = _useAIDTMediaQuery2.isNotebook;
90
- // 화면 크기에 따라 기본 Content 높이 설정 (props가 없을 경우)
91
- var defaultHeight = isMobile ? "473px" : isMiniTablet ? "354px" : isTablet ? "410px" : isNotebook ? "510px" : "610px";
92
- return jsx(ContentContainer, {
93
- height: height || defaultHeight,
94
- children: children
135
+ ContentContainer: function ContentContainer(_ref11) {
136
+ var children = _ref11.children;
137
+ var theme = useTheme();
138
+ var contentRef = React.useRef(null);
139
+ var context = React.useContext(EliceLayoutContext);
140
+ if (!context) {
141
+ throw new Error("EliceLayout components must be used within an EliceLayout provider.");
142
+ }
143
+ var isScrollActive = context.isScrollActive,
144
+ setIsScrollActive = context.setIsScrollActive;
145
+ React.useEffect(function () {
146
+ var handleScroll = function handleScroll() {
147
+ if (contentRef.current) {
148
+ var scrollTop = contentRef.current.scrollTop;
149
+ setIsScrollActive(scrollTop > 10);
150
+ }
151
+ };
152
+ var element = contentRef.current;
153
+ if (element) {
154
+ element.addEventListener("scroll", handleScroll);
155
+ handleScroll();
156
+ }
157
+ return function () {
158
+ if (element) {
159
+ element.removeEventListener("scroll", handleScroll);
160
+ }
161
+ };
162
+ }, []);
163
+ return jsxs(_ContentContainer, {
164
+ ref: contentRef,
165
+ theme: theme,
166
+ children: [children, !isScrollActive && jsx(ScrollMoreButton, {
167
+ children: jsx(ScrollMoreIcon, {
168
+ size: 32,
169
+ color: "white"
170
+ })
171
+ })]
172
+ });
173
+ },
174
+ Content: function Content(_ref12) {
175
+ var children = _ref12.children;
176
+ return jsx(_Content, {
177
+ children: jsx(Typography, {
178
+ variant: "body1",
179
+ children: children
180
+ })
95
181
  });
96
182
  },
97
- // 푸터 height 조절 가능
98
- FooterContainer: function FooterContainer(_ref10) {
99
- var children = _ref10.children,
100
- height = _ref10.height;
183
+ FooterContainer: function FooterContainer(_ref13) {
184
+ var children = _ref13.children;
101
185
  return jsx(_FooterContainer, {
102
- height: height,
103
186
  children: children
104
187
  });
105
188
  },
@@ -6,11 +6,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
6
6
  var PaginationWrapper = /*#__PURE__*/_styled("div", {
7
7
  target: "e8oep9n0"
8
8
  })("production" === "production" ? {
9
- name: "ekcpux",
10
- styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;transform:translateY(-50%)"
9
+ name: "1m30dfz",
10
+ styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;z-index:100;transform:translateY(-50%)"
11
11
  } : {
12
- name: "ekcpux",
13
- styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;transform:translateY(-50%)",
12
+ name: "1m30dfz",
13
+ styles: "position:absolute;top:50%;left:10px;width:calc(100% - 20px);display:flex;justify-content:space-between;align-items:center;z-index:100;transform:translateY(-50%)",
14
14
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15
15
  });
16
16
  var LayoutPagination = function LayoutPagination(_ref) {
@@ -19,7 +19,7 @@ var EliceSubButton = forwardRef(function (_a, ref) {
19
19
  disabled: disabled,
20
20
  sx: {
21
21
  width: isTablet ? '100%' : 'fit-content',
22
- height: '56px',
22
+ height: '52px',
23
23
  borderRadius: isTablet ? 0 : '16px',
24
24
  padding: '8px 12px',
25
25
  backgroundColor: bluepurple[100],
@@ -0,0 +1,7 @@
1
+ import { IconProps } from "./_types";
2
+ interface ScrollMoreIconProps extends IconProps {
3
+ bgColor?: string;
4
+ arrowColor?: string;
5
+ }
6
+ declare const ScrollMoreIcon: ({ size, bgColor, arrowColor, ...other }: ScrollMoreIconProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ScrollMoreIcon;
@@ -0,0 +1,31 @@
1
+ import { __rest } from 'tslib';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+
4
+ var ScrollMoreIcon = function ScrollMoreIcon(_a) {
5
+ var _a$size = _a.size,
6
+ size = _a$size === void 0 ? 36 : _a$size,
7
+ _a$bgColor = _a.bgColor,
8
+ bgColor = _a$bgColor === void 0 ? "#7D89C2" : _a$bgColor,
9
+ _a$arrowColor = _a.arrowColor,
10
+ arrowColor = _a$arrowColor === void 0 ? "white" : _a$arrowColor,
11
+ other = __rest(_a, ["size", "bgColor", "arrowColor"]);
12
+ return jsxs("svg", Object.assign({
13
+ width: size,
14
+ height: size,
15
+ viewBox: "0 0 36 36",
16
+ fill: "none",
17
+ xmlns: "http://www.w3.org/2000/svg"
18
+ }, other, {
19
+ children: [jsx("rect", {
20
+ width: "36",
21
+ height: "36",
22
+ rx: "16",
23
+ fill: bgColor
24
+ }), jsx("path", {
25
+ d: "M17.1914 22.4336L12.6914 17.9336C12.375 17.6172 12.2695 17.125 12.4453 16.7031C12.6211 16.2812 13.043 16 13.5 16H22.5C22.957 16 23.3438 16.2812 23.5195 16.7031C23.6953 17.125 23.5898 17.6172 23.2734 17.9336L18.7734 22.4336C18.3516 22.8906 17.6133 22.8906 17.1914 22.4336Z",
26
+ fill: arrowColor
27
+ })]
28
+ }));
29
+ };
30
+
31
+ export { ScrollMoreIcon as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elicecontents/content-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-layoutupdate.0",
4
4
  "description": "A set of UI components for creating content of Elice",
5
5
  "author": "Elice <contact@elice.io>",
6
6
  "license": "UNLICENSED",