@elicecontents/content-ui 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/cjs/components/Modal/Modal.d.ts +9 -0
  2. package/cjs/components/Modal/Modal.js +58 -0
  3. package/cjs/components/Modal/index.d.ts +2 -0
  4. package/cjs/components/Modal/index.js +7 -0
  5. package/cjs/components/answer-feedback/Correct.js +2 -2
  6. package/cjs/components/answer-feedback/Incorrect.js +2 -2
  7. package/cjs/components/chat/Chat.d.ts +4 -2
  8. package/cjs/components/chat/Chat.js +61 -52
  9. package/cjs/components/index.d.ts +1 -0
  10. package/cjs/components/index.js +2 -0
  11. package/cjs/components/layout/Footer/LayoutFooterPaging.js +23 -24
  12. package/cjs/components/layout/Footer/LayoutFooterSubmit.d.ts +7 -2
  13. package/cjs/components/layout/Footer/LayoutFooterSubmit.js +11 -3
  14. package/cjs/components/layout/Footer/index.d.ts +1 -0
  15. package/cjs/components/layout/Layout.d.ts +3 -2
  16. package/cjs/components/layout/Layout.js +50 -54
  17. package/cjs/components/layout/layout-pagination/LayoutPagination.js +4 -4
  18. package/cjs/components/pagination-button/PaginationButton.d.ts +1 -0
  19. package/cjs/components/pagination-button/PaginationButton.js +35 -14
  20. package/cjs/components/question/Question.js +7 -7
  21. package/cjs/components/tokenColorTemporary.js +2 -2
  22. package/cjs/icons/ReadyRecord.d.ts +6 -0
  23. package/cjs/icons/ReadyRecord.js +33 -0
  24. package/cjs/icons/RecordPause.d.ts +3 -0
  25. package/cjs/icons/RecordPause.js +30 -0
  26. package/cjs/icons/RecordPlay.d.ts +3 -0
  27. package/cjs/icons/RecordPlay.js +28 -0
  28. package/cjs/icons/Recording.d.ts +5 -0
  29. package/cjs/icons/Recording.js +37 -0
  30. package/cjs/icons/index.d.ts +4 -0
  31. package/cjs/icons/index.js +8 -0
  32. package/cjs/index.js +10 -0
  33. package/es/components/Modal/Modal.d.ts +9 -0
  34. package/es/components/Modal/Modal.js +50 -0
  35. package/es/components/Modal/index.d.ts +2 -0
  36. package/es/components/Modal/index.js +1 -0
  37. package/es/components/answer-feedback/Correct.js +2 -2
  38. package/es/components/answer-feedback/Incorrect.js +2 -2
  39. package/es/components/chat/Chat.d.ts +4 -2
  40. package/es/components/chat/Chat.js +61 -52
  41. package/es/components/index.d.ts +1 -0
  42. package/es/components/index.js +1 -0
  43. package/es/components/layout/Footer/LayoutFooterPaging.js +24 -25
  44. package/es/components/layout/Footer/LayoutFooterSubmit.d.ts +7 -2
  45. package/es/components/layout/Footer/LayoutFooterSubmit.js +11 -3
  46. package/es/components/layout/Footer/index.d.ts +1 -0
  47. package/es/components/layout/Layout.d.ts +3 -2
  48. package/es/components/layout/Layout.js +50 -54
  49. package/es/components/layout/layout-pagination/LayoutPagination.js +4 -4
  50. package/es/components/pagination-button/PaginationButton.d.ts +1 -0
  51. package/es/components/pagination-button/PaginationButton.js +35 -14
  52. package/es/components/question/Question.js +8 -8
  53. package/es/components/tokenColorTemporary.js +2 -2
  54. package/es/icons/ReadyRecord.d.ts +6 -0
  55. package/es/icons/ReadyRecord.js +29 -0
  56. package/es/icons/RecordPause.d.ts +3 -0
  57. package/es/icons/RecordPause.js +26 -0
  58. package/es/icons/RecordPlay.d.ts +3 -0
  59. package/es/icons/RecordPlay.js +24 -0
  60. package/es/icons/Recording.d.ts +5 -0
  61. package/es/icons/Recording.js +33 -0
  62. package/es/icons/index.d.ts +4 -0
  63. package/es/icons/index.js +4 -0
  64. package/es/index.js +5 -0
  65. package/package.json +1 -1
@@ -13,67 +13,72 @@ import Send from '../../icons/Send.js';
13
13
 
14
14
  var StyledChatContainer = /*#__PURE__*/_styled(Stack, {
15
15
  target: "e1i7zt3"
16
- })("height:fit-content;max-height:100%;min-width:30rem;max-width:100%;border:2px solid ", function (_ref) {
17
- var theme = _ref.theme;
16
+ })("height:fit-content;max-height:100%;height:", function (_ref) {
17
+ var height = _ref.height;
18
+ return height;
19
+ }, ";min-width:30rem;max-width:100%;border:2px solid ", function (_ref2) {
20
+ var theme = _ref2.theme;
18
21
  return theme.palette.grey[300];
19
22
  }, ";border-radius:1.5rem;padding:1.5rem;gap:1.75rem;");
20
23
  var StyledScrollBarStack = /*#__PURE__*/_styled(Stack, {
21
24
  target: "e1i7zt2"
22
- })("flex:1;overflow-y:auto;border-radius:1.125rem;padding-right:1rem;::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref2) {
23
- var theme = _ref2.theme;
24
- return theme.palette.grey[200];
25
- }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb{background:", function (_ref3) {
25
+ })("flex:1;overflow-y:auto;border-radius:1.125rem;padding-right:1rem;::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref3) {
26
26
  var theme = _ref3.theme;
27
- return theme.palette.primary.main;
28
- }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb:hover{background:", function (_ref4) {
27
+ return theme.palette.grey[200];
28
+ }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb{background:", function (_ref4) {
29
29
  var theme = _ref4.theme;
30
+ return theme.palette.primary.main;
31
+ }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb:hover{background:", function (_ref5) {
32
+ var theme = _ref5.theme;
30
33
  return theme.palette.secondary.main;
31
34
  }, ";}");
32
35
  var StyledInput = /*#__PURE__*/_styled(Input, {
33
36
  target: "e1i7zt1"
34
- })("width:100%;height:100%;border:none!important;background-color:transparent;font-size:1.375rem;font-weight:700;outline:none;resize:none;color:", function (_ref5) {
35
- var theme = _ref5.theme;
36
- return theme.palette.secondary.main;
37
- }, ";::placeholder{color:", function (_ref6) {
37
+ })("width:100%;height:100%;border:none!important;background-color:transparent;font-size:1.375rem;font-weight:700;outline:none;resize:none;color:", function (_ref6) {
38
38
  var theme = _ref6.theme;
39
- return theme.palette.grey[300];
40
- }, ";}::before{border:none;}:hover{::before{border:none;}}::after{border-bottom:none!important;}::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref7) {
39
+ return theme.palette.secondary.main;
40
+ }, ";::placeholder{color:", function (_ref7) {
41
41
  var theme = _ref7.theme;
42
- return theme.palette.grey[200];
43
- }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb{background:", function (_ref8) {
42
+ return theme.palette.grey[300];
43
+ }, ";}::before{border:none;}:hover{::before{border:none;}}::after{border-bottom:none!important;}::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref8) {
44
44
  var theme = _ref8.theme;
45
- return theme.palette.primary.main;
46
- }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb:hover{background:", function (_ref9) {
45
+ return theme.palette.grey[200];
46
+ }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb{background:", function (_ref9) {
47
47
  var theme = _ref9.theme;
48
+ return theme.palette.primary.main;
49
+ }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb:hover{background:", function (_ref10) {
50
+ var theme = _ref10.theme;
48
51
  return theme.palette.secondary.main;
49
52
  }, ";}");
50
53
  var StyledMessage = /*#__PURE__*/_styled(Typography, {
51
54
  target: "e1i7zt0"
52
- })("color:", function (_ref10) {
53
- var isAssistant = _ref10.isAssistant,
54
- theme = _ref10.theme;
55
+ })("color:", function (_ref11) {
56
+ var isAssistant = _ref11.isAssistant,
57
+ theme = _ref11.theme;
55
58
  return isAssistant ? theme.palette.text.secondary : theme.palette.secondary.main;
56
- }, ";font-size:1rem;font-weight:", function (_ref11) {
57
- var isAssistant = _ref11.isAssistant;
59
+ }, ";font-size:1rem;font-weight:", function (_ref12) {
60
+ var isAssistant = _ref12.isAssistant;
58
61
  return isAssistant ? 500 : 700;
59
- }, ";background-color:", function (_ref12) {
60
- var isAssistant = _ref12.isAssistant,
61
- theme = _ref12.theme;
62
+ }, ";background-color:", function (_ref13) {
63
+ var isAssistant = _ref13.isAssistant,
64
+ theme = _ref13.theme;
62
65
  return isAssistant ? theme.palette.grey[50] : theme.palette.primary.light;
63
- }, ";border-radius:1rem;padding:0.75rem;margin-bottom:16px;");
64
- var _EliceChat = function EliceChat(_ref13) {
65
- var _ref13$placeholder = _ref13.placeholder,
66
- placeholder = _ref13$placeholder === void 0 ? "AI와 대화를 시작해 보세요" : _ref13$placeholder,
67
- _ref13$messages = _ref13.messages,
68
- messages = _ref13$messages === void 0 ? [] : _ref13$messages,
69
- _ref13$content = _ref13.content,
70
- content = _ref13$content === void 0 ? "" : _ref13$content,
71
- onReset = _ref13.onReset,
72
- onSend = _ref13.onSend,
73
- _onChange = _ref13.onChange,
74
- onRecord = _ref13.onRecord,
75
- onTranscribingChange = _ref13.onTranscribingChange,
76
- isLoadingMessage = _ref13.isLoadingMessage;
66
+ }, ";border-radius:1rem;white-space:pre-wrap;padding:0.75rem;margin-bottom:16px;");
67
+ var _EliceChat = function EliceChat(_ref14) {
68
+ var _ref14$placeholder = _ref14.placeholder,
69
+ placeholder = _ref14$placeholder === void 0 ? "AI와 대화를 시작해 보세요" : _ref14$placeholder,
70
+ _ref14$messages = _ref14.messages,
71
+ messages = _ref14$messages === void 0 ? [] : _ref14$messages,
72
+ _ref14$content = _ref14.content,
73
+ content = _ref14$content === void 0 ? "" : _ref14$content,
74
+ onReset = _ref14.onReset,
75
+ onSend = _ref14.onSend,
76
+ _onChange = _ref14.onChange,
77
+ onRecord = _ref14.onRecord,
78
+ onTranscribingChange = _ref14.onTranscribingChange,
79
+ isLoadingMessage = _ref14.isLoadingMessage,
80
+ _ref14$height = _ref14.height,
81
+ height = _ref14$height === void 0 ? "100%" : _ref14$height;
77
82
  var theme = useTheme();
78
83
  var _useState = useState(content),
79
84
  _useState2 = _slicedToArray(_useState, 2),
@@ -95,6 +100,7 @@ var _EliceChat = function EliceChat(_ref13) {
95
100
  };
96
101
  return jsxs(StyledChatContainer, {
97
102
  theme: theme,
103
+ height: height,
98
104
  children: [jsx(_EliceChat.MessageList, {
99
105
  messages: messages,
100
106
  isLoadingMessage: isLoadingMessage,
@@ -114,13 +120,16 @@ var _EliceChat = function EliceChat(_ref13) {
114
120
  });
115
121
  };
116
122
  // ✅ 메시지 리스트 컴포넌트
117
- _EliceChat.MessageList = function (_ref14) {
118
- var messages = _ref14.messages,
119
- isLoadingMessage = _ref14.isLoadingMessage,
120
- scrollRef = _ref14.scrollRef;
123
+ _EliceChat.MessageList = function (_ref15) {
124
+ var messages = _ref15.messages,
125
+ isLoadingMessage = _ref15.isLoadingMessage,
126
+ scrollRef = _ref15.scrollRef,
127
+ _ref15$height = _ref15.height,
128
+ height = _ref15$height === void 0 ? "100%" : _ref15$height;
121
129
  var theme = useTheme();
122
130
  return jsx(StyledScrollBarStack, {
123
131
  theme: theme,
132
+ height: height,
124
133
  children: messages.length === 0 ? jsx(Typography, {
125
134
  color: theme.palette.text.disabled,
126
135
  fontSize: "2rem",
@@ -149,14 +158,14 @@ _EliceChat.MessageList = function (_ref14) {
149
158
  })
150
159
  });
151
160
  };
152
- _EliceChat.InputArea = function (_ref15) {
153
- var placeHolder = _ref15.placeHolder,
154
- value = _ref15.value,
155
- onChange = _ref15.onChange,
156
- onSend = _ref15.onSend,
157
- onReset = _ref15.onReset,
158
- onRecord = _ref15.onRecord,
159
- onTranscribingChange = _ref15.onTranscribingChange;
161
+ _EliceChat.InputArea = function (_ref16) {
162
+ var placeHolder = _ref16.placeHolder,
163
+ value = _ref16.value,
164
+ onChange = _ref16.onChange,
165
+ onSend = _ref16.onSend,
166
+ onReset = _ref16.onReset,
167
+ onRecord = _ref16.onRecord,
168
+ onTranscribingChange = _ref16.onTranscribingChange;
160
169
  var theme = useTheme();
161
170
  return jsxs(Stack, {
162
171
  direction: "row",
@@ -18,3 +18,4 @@ export * from './AIDTTypography';
18
18
  export * from './AdaptiveImage';
19
19
  export * from './subtitle-button';
20
20
  export * from './base-input';
21
+ export * from './Modal';
@@ -16,3 +16,4 @@ export { default as AIDTTypography } from './AIDTTypography/AIDTTypography.js';
16
16
  export { default as EliceImage } from './AdaptiveImage/AdaptiveImage.js';
17
17
  export { default as EliceSubButton } from './subtitle-button/SubtitleButton.js';
18
18
  export { default as BaseInput } from './base-input/BaseInput.js';
19
+ export { default as EliceModal } from './Modal/Modal.js';
@@ -1,6 +1,6 @@
1
1
  import _styled from '@emotion/styled/base';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { Typography, useTheme } from '@mui/material';
3
+ import { useTheme, Typography } from '@mui/material';
4
4
  import useAIDTMediaQuery from '../../../hooks/useAIDTMediaQuery.js';
5
5
  import PaginationButton from '../../pagination-button/PaginationButton.js';
6
6
 
@@ -17,50 +17,49 @@ var FooterContainer = /*#__PURE__*/_styled("div", {
17
17
  });
18
18
  var FooterPagination = /*#__PURE__*/_styled(Typography, {
19
19
  target: "ecog5a41"
20
- })("production" === "production" ? {
21
- name: "17qwk4",
22
- styles: "padding:0 32px"
23
- } : {
24
- name: "17qwk4",
25
- styles: "padding:0 32px",
26
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
27
- });
20
+ })("padding:", function (_ref) {
21
+ var isTablet = _ref.isTablet;
22
+ return isTablet ? "0 10px" : "0 32px";
23
+ }, ";white-space:nowrap;");
28
24
  var StyledCurrentPage = /*#__PURE__*/_styled("span", {
29
25
  target: "ecog5a40"
30
- })("color:", function (_ref) {
31
- var fontColor = _ref.fontColor;
26
+ })("color:", function (_ref2) {
27
+ var fontColor = _ref2.fontColor;
32
28
  return fontColor;
33
29
  }, ";");
34
- var LayoutFooterPaging = function LayoutFooterPaging(_ref2) {
35
- var currentPage = _ref2.currentPage,
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;
30
+ var LayoutFooterPaging = function LayoutFooterPaging(_ref3) {
31
+ var currentPage = _ref3.currentPage,
32
+ totalPage = _ref3.totalPage,
33
+ onPrev = _ref3.onPrev,
34
+ onNext = _ref3.onNext,
35
+ _ref3$allowPrev = _ref3.allowPrev,
36
+ allowPrev = _ref3$allowPrev === void 0 ? true : _ref3$allowPrev,
37
+ _ref3$allowNext = _ref3.allowNext,
38
+ allowNext = _ref3$allowNext === void 0 ? true : _ref3$allowNext;
43
39
  var theme = useTheme();
44
40
  var _useAIDTMediaQuery = useAIDTMediaQuery(),
45
- isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
41
+ isTablet = _useAIDTMediaQuery.isTablet;
46
42
  return jsxs(FooterContainer, {
47
- children: [isMiniTablet && jsx(PaginationButton, {
43
+ children: [isTablet && jsx(PaginationButton, {
48
44
  left: true,
49
45
  onClick: onPrev,
50
- disabled: !allowPrev
46
+ disabled: !allowPrev,
47
+ size: 28
51
48
  }), jsxs(FooterPagination, {
52
49
  variant: "pagination",
53
50
  sx: {
54
51
  color: "#D8D8E2"
55
52
  },
53
+ isTablet: isTablet,
56
54
  children: [jsx(StyledCurrentPage, {
57
55
  fontColor: theme.palette.primary.main,
58
56
  children: currentPage
59
57
  }), " ", "/ ", totalPage]
60
- }), isMiniTablet && jsx(PaginationButton, {
58
+ }), isTablet && jsx(PaginationButton, {
61
59
  right: true,
62
60
  onClick: onNext,
63
- disabled: !allowNext
61
+ disabled: !allowNext,
62
+ size: 28
64
63
  })]
65
64
  });
66
65
  };
@@ -1,3 +1,8 @@
1
- import React from "react";
2
- declare const LayoutFooterSubmit: React.FC;
1
+ export interface LayoutFooterSubmitProps {
2
+ isRollback?: boolean;
3
+ isSubmit?: boolean;
4
+ onRollback?: () => void;
5
+ onSubmit?: () => void;
6
+ }
7
+ declare const LayoutFooterSubmit: ({ isRollback, isSubmit, onSubmit, onRollback, }: LayoutFooterSubmitProps) => import("react/jsx-runtime").JSX.Element;
3
8
  export default LayoutFooterSubmit;
@@ -2,14 +2,22 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Stack } from '@mui/material';
3
3
  import EliceButton from '../../button/Button.js';
4
4
 
5
- var LayoutFooterSubmit = function LayoutFooterSubmit() {
5
+ var LayoutFooterSubmit = function LayoutFooterSubmit(_ref) {
6
+ var _ref$isRollback = _ref.isRollback,
7
+ isRollback = _ref$isRollback === void 0 ? false : _ref$isRollback,
8
+ _ref$isSubmit = _ref.isSubmit,
9
+ isSubmit = _ref$isSubmit === void 0 ? false : _ref$isSubmit,
10
+ onSubmit = _ref.onSubmit,
11
+ onRollback = _ref.onRollback;
6
12
  return jsxs(Stack, {
7
13
  direction: "row",
8
14
  spacing: 1,
9
- children: [jsx(EliceButton, {
15
+ children: [isRollback && jsx(EliceButton, {
10
16
  variant: "outlined",
17
+ onClick: onRollback,
11
18
  children: "\uB2E4\uC2DC\uD558\uAE30"
12
- }), jsx(EliceButton, {
19
+ }), isSubmit && jsx(EliceButton, {
20
+ onClick: onSubmit,
13
21
  children: "\uC81C\uCD9C\uD558\uAE30"
14
22
  })]
15
23
  });
@@ -1,3 +1,4 @@
1
1
  export { default as LayoutFooterPaging } from './LayoutFooterPaging';
2
2
  export { default as LayoutFooterSubmit } from './LayoutFooterSubmit';
3
3
  export type { LayoutFooterPagingProps } from './LayoutFooterPaging';
4
+ export type { LayoutFooterSubmitProps } from './LayoutFooterSubmit';
@@ -7,9 +7,10 @@ export interface EliceLayoutProps {
7
7
  onNext?: () => void;
8
8
  allowPrev?: boolean;
9
9
  allowNext?: boolean;
10
+ onlyPage?: boolean;
10
11
  }
11
12
  type Alignment = "left" | "center" | "right";
12
- declare const EliceLayout: (({ children, onPrev, onNext, allowPrev, allowNext, backgroundImage, backgroundColor }: EliceLayoutProps) => import("react/jsx-runtime").JSX.Element) & {
13
+ declare const EliceLayout: (({ children, onPrev, onNext, allowPrev, allowNext, backgroundImage, backgroundColor, onlyPage }: EliceLayoutProps) => import("react/jsx-runtime").JSX.Element) & {
13
14
  HeaderContainer: ({ children }: {
14
15
  children: React.ReactNode;
15
16
  }) => import("react/jsx-runtime").JSX.Element;
@@ -32,6 +33,6 @@ declare const EliceLayout: (({ children, onPrev, onNext, allowPrev, allowNext, b
32
33
  children: React.ReactNode;
33
34
  }) => import("react/jsx-runtime").JSX.Element;
34
35
  FooterPaging: React.FC<import("./Footer").LayoutFooterPagingProps>;
35
- FooterSubmit: React.FC<{}>;
36
+ FooterSubmit: ({ isRollback, isSubmit, onSubmit, onRollback, }: import("./Footer").LayoutFooterSubmitProps) => import("react/jsx-runtime").JSX.Element;
36
37
  };
37
38
  export default EliceLayout;
@@ -24,13 +24,7 @@ var MainContainer = /*#__PURE__*/_styled(Stack, {
24
24
  }, ";background-size:cover;background-position:center;background-color:", function (_ref3) {
25
25
  var backgroundColor = _ref3.backgroundColor;
26
26
  return backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : "#fff";
27
- }, ";overflow-y:hidden;background-image:", function (_ref4) {
28
- var backgroundImage = _ref4.backgroundImage;
29
- return backgroundImage ? "url(".concat(backgroundImage, ")") : "none";
30
- }, ";background-size:cover;background-position:center;background-color:", function (_ref5) {
31
- var backgroundColor = _ref5.backgroundColor;
32
- return backgroundColor || "#fff";
33
- }, ";");
27
+ }, ";overflow-y:hidden;");
34
28
  var _HeaderContainer = /*#__PURE__*/_styled(Stack, {
35
29
  target: "efnp08i5"
36
30
  })("production" === "production" ? {
@@ -53,32 +47,32 @@ var _FooterContainer = /*#__PURE__*/_styled(Stack, {
53
47
  });
54
48
  var SubtitleContainer = /*#__PURE__*/_styled(Stack, {
55
49
  target: "efnp08i3"
56
- })("height:80px;width:100%;padding:20px 40px;display:flex;align-items:", function (_ref6) {
57
- var alignment = _ref6.alignment;
50
+ })("height:80px;width:100%;padding:20px 40px;display:flex;align-items:", function (_ref4) {
51
+ var alignment = _ref4.alignment;
58
52
  return alignment;
59
- }, ";justify-content:", function (_ref7) {
60
- var justifyContent = _ref7.justifyContent;
53
+ }, ";justify-content:", function (_ref5) {
54
+ var justifyContent = _ref5.justifyContent;
61
55
  return justifyContent;
62
- }, ";background-color:", function (_ref8) {
63
- var isSticky = _ref8.isSticky;
56
+ }, ";background-color:", function (_ref6) {
57
+ var isSticky = _ref6.isSticky;
64
58
  return isSticky ? "#fff" : "none";
65
- }, ";position:", function (_ref9) {
66
- var isSticky = _ref9.isSticky;
59
+ }, ";position:", function (_ref7) {
60
+ var isSticky = _ref7.isSticky;
67
61
  return isSticky ? "sticky" : "relative";
68
- }, ";top:", function (_ref10) {
69
- var isSticky = _ref10.isSticky;
62
+ }, ";top:", function (_ref8) {
63
+ var isSticky = _ref8.isSticky;
70
64
  return isSticky ? "0" : "auto";
71
- }, ";left:0;z-index:10;transition:all 0.2s ease-in-out;box-shadow:", function (_ref11) {
72
- var isSticky = _ref11.isSticky;
65
+ }, ";left:0;z-index:10;transition:all 0.2s ease-in-out;box-shadow:", function (_ref9) {
66
+ var isSticky = _ref9.isSticky;
73
67
  return isSticky ? "0 2px 5px rgba(0, 0, 0, 0.1)" : "none";
74
68
  }, ";");
75
69
  var _ContentContainer = /*#__PURE__*/_styled(Stack, {
76
70
  target: "efnp08i2"
77
- })("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 (_ref12) {
78
- var theme = _ref12.theme;
71
+ })("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 (_ref10) {
72
+ var theme = _ref10.theme;
79
73
  return theme.palette.primary.main;
80
- }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref13) {
81
- var theme = _ref13.theme;
74
+ }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref11) {
75
+ var theme = _ref11.theme;
82
76
  return theme.palette.grey[300];
83
77
  }, ";border-radius:4px;}");
84
78
  var ScrollMoreButton = /*#__PURE__*/_styled(Button, {
@@ -93,21 +87,23 @@ var ScrollMoreButton = /*#__PURE__*/_styled(Button, {
93
87
  });
94
88
  var _Content = /*#__PURE__*/_styled(Stack, {
95
89
  target: "efnp08i0"
96
- })("flex:1;width:100%;min-height:0;text-align:", function (_ref14) {
97
- var alignment = _ref14.alignment;
90
+ })("flex:1;width:100%;min-height:0;text-align:", function (_ref12) {
91
+ var alignment = _ref12.alignment;
98
92
  return alignment;
99
- }, ";justify-content:", function (_ref15) {
100
- var justifyContent = _ref15.justifyContent;
93
+ }, ";justify-content:", function (_ref13) {
94
+ var justifyContent = _ref13.justifyContent;
101
95
  return justifyContent;
102
96
  }, ";");
103
- var EliceLayout = Object.assign(function (_ref16) {
104
- var children = _ref16.children,
105
- onPrev = _ref16.onPrev,
106
- onNext = _ref16.onNext,
107
- allowPrev = _ref16.allowPrev,
108
- allowNext = _ref16.allowNext,
109
- backgroundImage = _ref16.backgroundImage,
110
- backgroundColor = _ref16.backgroundColor;
97
+ var EliceLayout = Object.assign(function (_ref14) {
98
+ var children = _ref14.children,
99
+ onPrev = _ref14.onPrev,
100
+ onNext = _ref14.onNext,
101
+ allowPrev = _ref14.allowPrev,
102
+ allowNext = _ref14.allowNext,
103
+ backgroundImage = _ref14.backgroundImage,
104
+ backgroundColor = _ref14.backgroundColor,
105
+ _ref14$onlyPage = _ref14.onlyPage,
106
+ onlyPage = _ref14$onlyPage === void 0 ? false : _ref14$onlyPage;
111
107
  var _useAIDTMediaQuery = useAIDTMediaQuery(),
112
108
  isTablet = _useAIDTMediaQuery.isTablet,
113
109
  isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
@@ -124,7 +120,7 @@ var EliceLayout = Object.assign(function (_ref16) {
124
120
  isMiniTablet: isMiniTablet,
125
121
  backgroundImage: backgroundImage,
126
122
  backgroundColor: backgroundColor,
127
- children: [!isTablet && jsx(LayoutPagination, {
123
+ children: [!onlyPage && !isTablet && jsx(LayoutPagination, {
128
124
  onPrev: onPrev,
129
125
  onNext: onNext,
130
126
  allowPrev: allowPrev,
@@ -133,16 +129,16 @@ var EliceLayout = Object.assign(function (_ref16) {
133
129
  })
134
130
  });
135
131
  }, {
136
- HeaderContainer: function HeaderContainer(_ref17) {
137
- var children = _ref17.children;
132
+ HeaderContainer: function HeaderContainer(_ref15) {
133
+ var children = _ref15.children;
138
134
  return jsx(_HeaderContainer, {
139
135
  children: children
140
136
  });
141
137
  },
142
138
  HeaderTitle: LayoutHeaderTitle,
143
139
  HeaderSubTitle: LayoutHeaderSubTitle,
144
- ContentContainer: function ContentContainer(_ref18) {
145
- var children = _ref18.children;
140
+ ContentContainer: function ContentContainer(_ref16) {
141
+ var children = _ref16.children;
146
142
  var theme = useTheme();
147
143
  var contentRef = React.useRef(null);
148
144
  var context = React.useContext(EliceLayoutContext);
@@ -193,12 +189,12 @@ var EliceLayout = Object.assign(function (_ref16) {
193
189
  })]
194
190
  });
195
191
  },
196
- Subtitle: function Subtitle(_ref19) {
197
- var children = _ref19.children,
198
- _ref19$alignment = _ref19.alignment,
199
- alignment = _ref19$alignment === void 0 ? "left" : _ref19$alignment,
200
- _ref19$justifyContent = _ref19.justifyContent,
201
- justifyContent = _ref19$justifyContent === void 0 ? "flex-start" : _ref19$justifyContent;
192
+ Subtitle: function Subtitle(_ref17) {
193
+ var children = _ref17.children,
194
+ _ref17$alignment = _ref17.alignment,
195
+ alignment = _ref17$alignment === void 0 ? "left" : _ref17$alignment,
196
+ _ref17$justifyContent = _ref17.justifyContent,
197
+ justifyContent = _ref17$justifyContent === void 0 ? "flex-start" : _ref17$justifyContent;
202
198
  var context = React.useContext(EliceLayoutContext);
203
199
  if (!context) {
204
200
  throw new Error("EliceLayout components must be used within an EliceLayout provider.");
@@ -211,12 +207,12 @@ var EliceLayout = Object.assign(function (_ref16) {
211
207
  children: children
212
208
  });
213
209
  },
214
- Content: function Content(_ref20) {
215
- var children = _ref20.children,
216
- _ref20$alignment = _ref20.alignment,
217
- alignment = _ref20$alignment === void 0 ? "left" : _ref20$alignment,
218
- _ref20$justifyContent = _ref20.justifyContent,
219
- justifyContent = _ref20$justifyContent === void 0 ? "flex-start" : _ref20$justifyContent;
210
+ Content: function Content(_ref18) {
211
+ var children = _ref18.children,
212
+ _ref18$alignment = _ref18.alignment,
213
+ alignment = _ref18$alignment === void 0 ? "left" : _ref18$alignment,
214
+ _ref18$justifyContent = _ref18.justifyContent,
215
+ justifyContent = _ref18$justifyContent === void 0 ? "flex-start" : _ref18$justifyContent;
220
216
  return jsx(_Content, {
221
217
  alignment: alignment,
222
218
  justifyContent: justifyContent,
@@ -226,8 +222,8 @@ var EliceLayout = Object.assign(function (_ref16) {
226
222
  })
227
223
  });
228
224
  },
229
- FooterContainer: function FooterContainer(_ref21) {
230
- var children = _ref21.children;
225
+ FooterContainer: function FooterContainer(_ref19) {
226
+ var children = _ref19.children;
231
227
  return jsx(_FooterContainer, {
232
228
  children: children
233
229
  });
@@ -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: "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%)"
9
+ name: "1mp32h2",
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%);pointer-events:none"
11
11
  } : {
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%)",
12
+ name: "1mp32h2",
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%);pointer-events:none",
14
14
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15
15
  });
16
16
  var LayoutPagination = function LayoutPagination(_ref) {
@@ -4,6 +4,7 @@ interface PaginationButtonProps {
4
4
  right?: boolean;
5
5
  onClick?: () => void;
6
6
  disabled?: boolean;
7
+ size?: number;
7
8
  }
8
9
  declare const PaginationButton: React.FC<PaginationButtonProps>;
9
10
  export default PaginationButton;
@@ -1,30 +1,51 @@
1
1
  import _styled from '@emotion/styled/base';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import useAIDTMediaQuery from '../../hooks/useAIDTMediaQuery.js';
3
4
  import ArrowLeft from '../../icons/ArrowLeft.js';
4
5
  import ArrowRight from '../../icons/ArrowRight.js';
5
6
 
6
7
  var Button = /*#__PURE__*/_styled("button", {
7
8
  target: "e16dnw7i0"
8
- })("width:60px;height:60px;display:flex;align-items:center;justify-content:center;border:none;background-color:", function (_ref) {
9
- var disabled = _ref.disabled;
9
+ })("width:", function (_ref) {
10
+ var size = _ref.size;
11
+ return size ? "".concat(size, "px") : "60px";
12
+ }, ";height:", function (_ref2) {
13
+ var size = _ref2.size;
14
+ return size ? "".concat(size, "px") : "60px";
15
+ }, ";display:flex;align-items:center;justify-content:center;border:none;pointer-events:auto;background-color:", function (_ref3) {
16
+ var disabled = _ref3.disabled;
10
17
  return disabled ? "#ddd" : "#fff";
11
- }, ";border-radius:40px;box-shadow:0px 0px 1px 0px rgba(0, 0, 0, 0.40),0px 8px 10px 0px rgba(0, 0, 0, 0.05),0px 8px 30px 0px rgba(0, 0, 0, 0.12);border-radius:40px;cursor:", function (_ref2) {
12
- var disabled = _ref2.disabled;
18
+ }, ";border-radius:40px;box-shadow:", function (_ref4) {
19
+ var isTablet = _ref4.isTablet;
20
+ return isTablet ? "none" : "0px 0px 1px 0px rgba(0, 0, 0, 0.40), 0px 8px 10px 0px rgba(0, 0, 0, 0.05), 0px 8px 30px 0px rgba(0, 0, 0, 0.12)";
21
+ }, ";cursor:", function (_ref5) {
22
+ var disabled = _ref5.disabled;
13
23
  return disabled ? "not-allowed" : "pointer";
14
- }, ";&:hover{background-color:", function (_ref3) {
15
- var disabled = _ref3.disabled;
16
- return disabled ? "#ddd" : "#e0e0e0";
24
+ }, ";&:hover{background-color:", function (_ref6) {
25
+ var disabled = _ref6.disabled,
26
+ isTablet = _ref6.isTablet;
27
+ return isTablet ? disabled ? "#ddd" : "#e0e0e0" : "none";
17
28
  }, ";}");
18
- var PaginationButton = function PaginationButton(_ref4) {
19
- var left = _ref4.left,
20
- right = _ref4.right,
21
- onClick = _ref4.onClick,
22
- _ref4$disabled = _ref4.disabled,
23
- disabled = _ref4$disabled === void 0 ? false : _ref4$disabled;
29
+ var PaginationButton = function PaginationButton(_ref7) {
30
+ var left = _ref7.left,
31
+ right = _ref7.right,
32
+ onClick = _ref7.onClick,
33
+ _ref7$disabled = _ref7.disabled,
34
+ disabled = _ref7$disabled === void 0 ? false : _ref7$disabled,
35
+ size = _ref7.size;
36
+ var _useAIDTMediaQuery = useAIDTMediaQuery(),
37
+ isTablet = _useAIDTMediaQuery.isTablet;
38
+ console.log(isTablet);
24
39
  return jsxs(Button, {
25
40
  onClick: onClick,
26
41
  disabled: disabled,
27
- children: [left && jsx(ArrowLeft, {}), right && jsx(ArrowRight, {})]
42
+ isTablet: isTablet,
43
+ size: size,
44
+ children: [left && jsx(ArrowLeft, {
45
+ size: size
46
+ }), right && jsx(ArrowRight, {
47
+ size: size
48
+ })]
28
49
  });
29
50
  };
30
51
 
@@ -1,14 +1,14 @@
1
1
  import _styled from '@emotion/styled/base';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useTheme, Stack, Typography } from '@mui/material';
4
- import { point3Color, KeyElementaryBg } from '../tokenColorTemporary.js';
4
+ import { primaryColor, KeyElementaryBg } from '../tokenColorTemporary.js';
5
5
 
6
6
  var StyledMark = /*#__PURE__*/_styled(Stack, {
7
7
  target: "e7imhnw0"
8
8
  })("align-items:center;justify-content:center;flex-shrink:0;width:2.5rem;height:2.5rem;border-radius:50%;border-style:dashed;border-width:0.125rem;border-color:", function (props) {
9
9
  var _a;
10
- return (_a = props.borderColor) !== null && _a !== void 0 ? _a : point3Color;
11
- }, ";position:relative;::before{content:'';position:absolute;width:2rem;height:2rem;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:50%;background-color:", function (props) {
10
+ return (_a = props.borderColor) !== null && _a !== void 0 ? _a : primaryColor;
11
+ }, ";position:relative;::before{content:'';position:absolute;width:1.75rem;height:1.75rem;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:50%;background-color:", function (props) {
12
12
  var _a;
13
13
  return (_a = props.contentColor) !== null && _a !== void 0 ? _a : KeyElementaryBg;
14
14
  }, ";}");
@@ -21,12 +21,12 @@ var EliceQuestion = function EliceQuestion(_ref) {
21
21
  direction: "row",
22
22
  gap: "1rem",
23
23
  children: [jsx(StyledMark, {
24
- contentColor: theme.palette.primary.light,
24
+ contentColor: theme.palette.background["default"],
25
25
  borderColor: theme.palette.primary.main,
26
26
  children: jsxs(Typography, {
27
27
  fontWeight: 800,
28
- fontSize: "1.5rem",
29
- color: theme.palette.primary.main,
28
+ fontSize: "1.3rem",
29
+ color: primaryColor,
30
30
  position: "relative",
31
31
  children: ["Q", jsx("span", {
32
32
  style: {
@@ -36,8 +36,8 @@ var EliceQuestion = function EliceQuestion(_ref) {
36
36
  })]
37
37
  })
38
38
  }), jsx(Typography, {
39
- color: theme.palette.primary.main,
40
- variant: "h4",
39
+ color: theme.palette.grey[900],
40
+ variant: "subtitle1",
41
41
  children: question
42
42
  })]
43
43
  });