@elicecontents/content-ui 1.0.11 → 1.0.12-rc.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.
@@ -36,10 +36,12 @@ var EliceModal = function EliceModal(props) {
36
36
  }, props.sx),
37
37
  children: [iconClose && jsxRuntime.jsx(material.Stack, {
38
38
  display: "flex",
39
+ position: "relative",
39
40
  justifyContent: "flex-end",
41
+ zIndex: 1200,
40
42
  alignItems: "flex-end",
43
+ onClick: handleClose,
41
44
  children: jsxRuntime.jsx(HighlightOffIcon__default.default, {
42
- onClick: handleClose,
43
45
  sx: {
44
46
  width: '2.7rem',
45
47
  height: '2.7rem',
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import { type ButtonProps } from '@mui/material';
3
3
  export interface EliceButtonProps extends ButtonProps {
4
4
  children?: React.ReactNode;
5
+ textColor?: string;
6
+ bgColor?: string;
5
7
  }
6
8
  declare const EliceButton: React.ForwardRefExoticComponent<Omit<EliceButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
9
  export default EliceButton;
@@ -13,10 +13,14 @@ var EliceButton = React.forwardRef(function (_a, ref) {
13
13
  _a$variant = _a.variant,
14
14
  variant = _a$variant === void 0 ? 'contained' : _a$variant,
15
15
  disabled = _a.disabled,
16
- rest = tslib.__rest(_a, ["children", "variant", "disabled"]);
16
+ textColor = _a.textColor,
17
+ bgColor = _a.bgColor,
18
+ rest = tslib.__rest(_a, ["children", "variant", "disabled", "textColor", "bgColor"]);
17
19
  var theme = material.useTheme();
18
20
  var _useAIDTMediaQuery = useAIDTMediaQuery.default(),
19
21
  isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
22
+ var resolvedColor = textColor !== null && textColor !== void 0 ? textColor : disabled ? theme.palette.text.disabled : variant === 'outlined' ? theme.palette.primary.main : theme.palette.common.white;
23
+ var resolvedBgColor = bgColor !== null && bgColor !== void 0 ? bgColor : variant === 'outlined' ? theme.palette.common.white : disabled ? theme.palette.grey[300] : theme.palette.primary.main;
20
24
  return jsxRuntime.jsx(material.Button, Object.assign({
21
25
  ref: ref,
22
26
  variant: variant,
@@ -26,8 +30,8 @@ var EliceButton = React.forwardRef(function (_a, ref) {
26
30
  height: isMiniTablet ? '42px' : '56px',
27
31
  borderRadius: isMiniTablet ? '12px' : '16px',
28
32
  padding: isMiniTablet ? '8px 12px' : '12px 20px',
29
- color: disabled ? theme.palette.text.disabled : variant === 'outlined' ? theme.palette.primary.main : theme.palette.common.white,
30
- backgroundColor: variant === 'outlined' ? theme.palette.common.white : disabled ? theme.palette.grey[300] : theme.palette.primary.main,
33
+ color: resolvedColor,
34
+ backgroundColor: resolvedBgColor,
31
35
  fontFamily: 'inherit'
32
36
  }
33
37
  }, rest, {
@@ -24,7 +24,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
24
24
  var EliceLayoutContext = React__default.default.createContext(undefined);
25
25
  var MainContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
26
26
  target: "efnp08i6"
27
- })("width:100%;height:100vh;max-width:1280px;display:flex;flex-direction:column;padding:", function (_ref) {
27
+ })("width:100%;height:100vh;justify-content:center;align-items:center;display:flex;flex-direction:column;padding:", function (_ref) {
28
28
  var isMiniTablet = _ref.isMiniTablet;
29
29
  return isMiniTablet ? "0 20px" : "0 40px";
30
30
  }, ";box-sizing:border-box;position:relative;background-image:", function (_ref2) {
@@ -37,26 +37,26 @@ var MainContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
37
37
  var _HeaderContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
38
38
  target: "efnp08i5"
39
39
  })("production" === "production" ? {
40
- name: "14ia2gs",
41
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
40
+ name: "gwvfyq",
41
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row"
42
42
  } : {
43
- name: "14ia2gs",
44
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
43
+ name: "gwvfyq",
44
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row",
45
45
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
46
46
  });
47
47
  var _FooterContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
48
48
  target: "efnp08i4"
49
49
  })("production" === "production" ? {
50
- name: "1mz0nio",
51
- styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row"
50
+ name: "304f34",
51
+ styles: "height:92px;width:100%;max-width:1200px;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row"
52
52
  } : {
53
- name: "1mz0nio",
54
- styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row",
53
+ name: "304f34",
54
+ styles: "height:92px;width:100%;max-width:1200px;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row",
55
55
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
56
56
  });
57
57
  var SubtitleContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
58
58
  target: "efnp08i3"
59
- })("height:80px;width:100%;padding:20px 40px;display:flex;align-items:", function (_ref4) {
59
+ })("height:80px;width:100%;max-width:1200px;padding:20px 40px;display:flex;align-items:", function (_ref4) {
60
60
  var alignment = _ref4.alignment;
61
61
  return alignment;
62
62
  }, ";justify-content:", function (_ref5) {
@@ -77,7 +77,7 @@ var SubtitleContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
77
77
  }, ";");
78
78
  var _ContentContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
79
79
  target: "efnp08i2"
80
- })("flex:1;width:100%;max-height:calc(100vh - 74px - 92px);max-width:1200px;overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref10) {
80
+ })("flex:1;width:100%;max-width:1200px;max-height:calc(100vh - 74px - 92px);max-width:1200px;overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref10) {
81
81
  var theme = _ref10.theme;
82
82
  return theme.palette.primary.main;
83
83
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref11) {
@@ -6,11 +6,14 @@ export interface EliceRecorderStepProps {
6
6
  onTransform?: () => void;
7
7
  type?: RecorderType;
8
8
  visualType?: SoundVisualizerVariant;
9
+ isReadyVisual?: boolean;
9
10
  onRecord?: () => void;
11
+ onResume?: () => void;
12
+ onPause?: () => void;
10
13
  closeRecorder?: () => void;
11
14
  onTranscribingChange?: (value: boolean) => void;
12
15
  isLoadingMessage?: boolean;
13
16
  forcedStep?: RecorderStep;
14
17
  }
15
- declare const EliceRecorderStep: ({ onAudioReady, onTransform, visualType, onRecord, type, onTranscribingChange, forcedStep, closeRecorder, }: EliceRecorderStepProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const EliceRecorderStep: ({ onAudioReady, onTransform, visualType, onRecord, type, isReadyVisual, onResume, onPause, onTranscribingChange, forcedStep, closeRecorder, }: EliceRecorderStepProps) => import("react/jsx-runtime").JSX.Element;
16
19
  export default EliceRecorderStep;
@@ -28,6 +28,10 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
28
28
  onRecord = _ref.onRecord,
29
29
  _ref$type = _ref.type,
30
30
  type = _ref$type === void 0 ? "notNeed" : _ref$type,
31
+ _ref$isReadyVisual = _ref.isReadyVisual,
32
+ isReadyVisual = _ref$isReadyVisual === void 0 ? false : _ref$isReadyVisual,
33
+ onResume = _ref.onResume,
34
+ onPause = _ref.onPause,
31
35
  onTranscribingChange = _ref.onTranscribingChange,
32
36
  forcedStep = _ref.forcedStep,
33
37
  closeRecorder = _ref.closeRecorder;
@@ -68,9 +72,11 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
68
72
  };
69
73
  }();
70
74
  var handlePause = function handlePause() {
75
+ onPause === null || onPause === void 0 ? void 0 : onPause();
71
76
  pauseRecording();
72
77
  };
73
78
  var handleResume = function handleResume() {
79
+ onResume === null || onResume === void 0 ? void 0 : onResume();
74
80
  resumeRecording();
75
81
  };
76
82
  var handleStop = function handleStop() {
@@ -98,7 +104,7 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
98
104
  variant: visualType,
99
105
  onClickRecord: handleStart
100
106
  }) : jsxRuntime.jsxs(StyledVisualizerBox, {
101
- children: [jsxRuntime.jsx(SoundVisualizer.SoundVisualizer, {
107
+ children: [!isReadyVisual && jsxRuntime.jsx(SoundVisualizer.SoundVisualizer, {
102
108
  analyser: recorderState.analyser,
103
109
  variant: visualType,
104
110
  bgColor: theme.palette.common.white
@@ -133,7 +139,7 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
133
139
  children: "\uC77C\uC2DC \uC815\uC9C0"
134
140
  })]
135
141
  }), jsxRuntime.jsxs(StyledRecorderButton, {
136
- onClick: type == "needPause" || type === "allNeed" ? handleStop : handleOnlySubmit,
142
+ onClick: type == "needPause" || type === "allNeed" || type == "needWaiting" ? handleStop : handleOnlySubmit,
137
143
  step: currentStep,
138
144
  theme: theme,
139
145
  children: [jsxRuntime.jsx(Recording.default, {}), jsxRuntime.jsx(material.Typography, {
@@ -51,22 +51,70 @@ var EliceTooltip = function EliceTooltip(_a) {
51
51
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
52
52
  open = _useState2[0],
53
53
  setOpen = _useState2[1];
54
- return isControl ? jsxRuntime.jsx(material.Tooltip, Object.assign({
55
- arrow: true,
56
- title: jsxRuntime.jsxs(material.Stack, {
57
- direction: "row",
58
- gap: "0.625rem",
59
- children: [jsxRuntime.jsx(Close.default, {
60
- style: {
61
- opacity: 0.7,
62
- flexShrink: 0,
63
- cursor: 'pointer'
64
- },
65
- onClick: function onClick() {
66
- return setOpen(false);
54
+ return isControl ? jsxRuntime.jsx(material.ClickAwayListener, {
55
+ onClickAway: function onClickAway() {
56
+ return setOpen(false);
57
+ },
58
+ children: jsxRuntime.jsx(material.Tooltip, Object.assign({
59
+ arrow: true,
60
+ title: jsxRuntime.jsxs(material.Stack, {
61
+ direction: "row",
62
+ gap: "0.625rem",
63
+ children: [jsxRuntime.jsx(Close.default, {
64
+ style: {
65
+ opacity: 0.7,
66
+ flexShrink: 0,
67
+ cursor: 'pointer'
68
+ },
69
+ onClick: function onClick() {
70
+ return setOpen(false);
71
+ }
72
+ }), jsxRuntime.jsx(StyledScrollBar, {
73
+ style: {
74
+ maxHeight: '15rem',
75
+ overflowY: 'auto'
76
+ },
77
+ children: jsxRuntime.jsx(material.Typography, {
78
+ variant: "subtitle2",
79
+ children: title
80
+ })
81
+ })]
82
+ }),
83
+ placement: placement,
84
+ open: open,
85
+ onOpen: function onOpen() {
86
+ if (triggerAction === 'default') {
87
+ setOpen(true);
88
+ }
89
+ },
90
+ onClick: function onClick() {
91
+ if (triggerAction === 'click') {
92
+ setOpen(true);
67
93
  }
68
- }), jsxRuntime.jsx(StyledScrollBar, {
94
+ },
95
+ slotProps: slotProps,
96
+ style: {
97
+ cursor: triggerAction === 'click' ? 'pointer' : 'auto'
98
+ }
99
+ }, rest, {
100
+ children: jsxRuntime.jsx(material.Stack, {
101
+ position: "relative",
102
+ width: "fit-content",
103
+ height: "fit-content",
104
+ whiteSpace: "pre-wrap",
105
+ children: children
106
+ })
107
+ }))
108
+ }) : jsxRuntime.jsx(material.ClickAwayListener, {
109
+ onClickAway: function onClickAway() {
110
+ return setOpen(false);
111
+ },
112
+ children: jsxRuntime.jsx(material.Tooltip, Object.assign({
113
+ arrow: true,
114
+ title: jsxRuntime.jsx(StyledScrollBar, {
69
115
  style: {
116
+ fontWeight: 700,
117
+ fontSize: '1.375rem',
70
118
  maxHeight: '15rem',
71
119
  overflowY: 'auto'
72
120
  },
@@ -74,56 +122,18 @@ var EliceTooltip = function EliceTooltip(_a) {
74
122
  variant: "subtitle2",
75
123
  children: title
76
124
  })
77
- })]
78
- }),
79
- placement: placement,
80
- open: open,
81
- onOpen: function onOpen() {
82
- if (triggerAction === 'default') {
83
- setOpen(true);
84
- }
85
- },
86
- onClick: function onClick() {
87
- if (triggerAction === 'click') {
88
- setOpen(true);
89
- }
90
- },
91
- slotProps: slotProps,
92
- style: {
93
- cursor: triggerAction === 'click' ? 'pointer' : 'auto'
94
- }
95
- }, rest, {
96
- children: jsxRuntime.jsx(material.Stack, {
97
- position: "relative",
98
- width: "fit-content",
99
- height: "fit-content",
100
- whiteSpace: "pre-wrap",
101
- children: children
102
- })
103
- })) : jsxRuntime.jsx(material.Tooltip, Object.assign({
104
- arrow: true,
105
- title: jsxRuntime.jsx(StyledScrollBar, {
106
- style: {
107
- fontWeight: 700,
108
- fontSize: '1.375rem',
109
- maxHeight: '15rem',
110
- overflowY: 'auto'
111
- },
112
- children: jsxRuntime.jsx(material.Typography, {
113
- variant: "subtitle2",
114
- children: title
125
+ }),
126
+ placement: placement,
127
+ slotProps: slotProps
128
+ }, rest, {
129
+ children: jsxRuntime.jsx(material.Stack, {
130
+ position: "relative",
131
+ width: "fit-content",
132
+ height: "fit-content",
133
+ children: children
115
134
  })
116
- }),
117
- placement: placement,
118
- slotProps: slotProps
119
- }, rest, {
120
- children: jsxRuntime.jsx(material.Stack, {
121
- position: "relative",
122
- width: "fit-content",
123
- height: "fit-content",
124
- children: children
125
- })
126
- }));
135
+ }))
136
+ });
127
137
  };
128
138
 
129
139
  exports.default = EliceTooltip;
@@ -1 +1 @@
1
- export * from './useAIDTMediaQuery';
1
+ export { default as useAIDTMediaQuery } from './useAIDTMediaQuery';
@@ -1,4 +1,7 @@
1
1
  'use strict';
2
2
 
3
- require('@mui/material');
3
+ var useAIDTMediaQuery = require('./useAIDTMediaQuery.js');
4
4
 
5
+
6
+
7
+ exports.useAIDTMediaQuery = useAIDTMediaQuery.default;
package/cjs/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './types/theme-augmentation';
1
2
  export * from './components';
2
3
  export * from './theme';
3
4
  export * from './tokens';
package/cjs/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ require('@mui/material/styles');
3
4
  var AIFeedback = require('./components/AI-feedback/AIFeedback.js');
4
5
  var Badge = require('./components/badge/Badge.js');
5
6
  var Button = require('./components/button/Button.js');
@@ -48,7 +49,7 @@ var Recording = require('./icons/Recording.js');
48
49
  var ReadyRecord = require('./icons/ReadyRecord.js');
49
50
  var RecordPlay = require('./icons/RecordPlay.js');
50
51
  var SendArrow = require('./icons/SendArrow.js');
51
- require('@mui/material');
52
+ var useAIDTMediaQuery = require('./hooks/useAIDTMediaQuery.js');
52
53
  var mint = require('./tokens/colors/mint.js');
53
54
  var bluepurple = require('./tokens/colors/bluepurple.js');
54
55
  var gray = require('./tokens/colors/gray.js');
@@ -110,6 +111,7 @@ exports.Recording = Recording.default;
110
111
  exports.ReadyRecord = ReadyRecord.default;
111
112
  exports.RecordPlay = RecordPlay.default;
112
113
  exports.SendArrow = SendArrow.default;
114
+ exports.useAIDTMediaQuery = useAIDTMediaQuery.default;
113
115
  exports.mint = mint.mint;
114
116
  exports.bluepurple = bluepurple.bluepurple;
115
117
  exports.gray = gray.gray;
@@ -1,80 +1,3 @@
1
- /// <reference types="react" />
2
- import type { PaletteMode, PaletteOptions, Theme } from '@mui/material';
3
- import type { TypographyFontFamilyType } from '../typography';
4
- declare module '@mui/material/styles' {
5
- interface TypographyVariants {
6
- pagination: React.CSSProperties;
7
- buttoninput: React.CSSProperties;
8
- }
9
- interface CommonColors {
10
- white: string;
11
- black: string;
12
- text: {
13
- primary: string;
14
- secondary: string;
15
- teritary: string;
16
- inverse: string;
17
- };
18
- point: {
19
- point1: string;
20
- point2: string;
21
- point3: string;
22
- point4: string;
23
- };
24
- red: {
25
- 50: string;
26
- 100: string;
27
- 200: string;
28
- 600: string;
29
- 900: string;
30
- };
31
- green: {
32
- 50: string;
33
- 100: string;
34
- 200: string;
35
- 600: string;
36
- 900: string;
37
- opacity: {
38
- 15: string;
39
- };
40
- };
41
- yellow: {
42
- 200: string;
43
- 900: string;
44
- opacity: {
45
- '200-30': string;
46
- '900-30': string;
47
- '900-60': string;
48
- };
49
- };
50
- }
51
- }
52
- declare module '@mui/material/Typography' {
53
- interface TypographyPropsVariantOverrides {
54
- pagination: true;
55
- buttoninput: true;
56
- }
57
- }
58
- export interface MuiPalette {
59
- light: PaletteOptions;
60
- dark: PaletteOptions;
61
- }
62
- export type AIDTPalettePublisher = 'elice' | 'type1' | 'type2';
63
- export type AIDTPaletteSubject = 'korean' | 'computerScience' | 'english' | 'socialStudy' | 'math' | 'science';
64
- export type AIDTPaletteLevel = 'elementary' | 'middle' | 'high';
65
- export interface SurfaceColor {
66
- border: string;
67
- }
68
- export interface CreateAIDTThemeProps {
69
- paletteMode?: PaletteMode;
70
- palettePublisher?: AIDTPalettePublisher;
71
- paletteSubject?: AIDTPaletteSubject;
72
- paletteLevel?: AIDTPaletteLevel;
73
- typographyFontFamily: TypographyFontFamilyType;
74
- }
75
- export type CreateAIDTTheme = (props?: CreateAIDTThemeProps) => Theme;
76
- /**
77
- * Create AIDT Theme according to PaletteName, pallettPublisher, pallettSubject, pallettLevel
78
- **/
79
- declare const createAIDTTheme: ({ paletteMode, palettePublisher, paletteSubject, paletteLevel, typographyFontFamily, }: CreateAIDTThemeProps) => Theme;
1
+ import type { CreateAIDTThemeProps } from '../types/theme.types';
2
+ declare const createAIDTTheme: ({ paletteMode, palettePublisher, paletteSubject, paletteLevel, typographyFontFamily, }: CreateAIDTThemeProps) => import("@mui/material").Theme;
80
3
  export { createAIDTTheme };
@@ -7,9 +7,6 @@ var _base = require('./_base.js');
7
7
  var AIDTTheme = require('./AIDTTheme.js');
8
8
  var breakpoints = require('../breakpoints/breakpoints.js');
9
9
 
10
- /**
11
- * Create AIDT Theme according to PaletteName, pallettPublisher, pallettSubject, pallettLevel
12
- **/
13
10
  var createAIDTTheme = function createAIDTTheme(_ref) {
14
11
  var _ref$paletteMode = _ref.paletteMode,
15
12
  paletteMode = _ref$paletteMode === void 0 ? 'light' : _ref$paletteMode,
@@ -7,7 +7,8 @@ var common = Object.freeze({
7
7
  primary: '#1E1E1E',
8
8
  secondary: '#363643',
9
9
  teritary: '#525265',
10
- inverse: '#ffffff'
10
+ inverse: '#ffffff',
11
+ quaternary: '#9FA0B1'
11
12
  },
12
13
  point: {
13
14
  point1: '#BB7CF5',
@@ -0,0 +1,60 @@
1
+ /// <reference types="react" />
2
+ import '@mui/material/styles';
3
+ declare module '@mui/material/styles' {
4
+ interface TypographyVariants {
5
+ pagination: React.CSSProperties;
6
+ buttoninput: React.CSSProperties;
7
+ }
8
+ interface TypographyVariantsOptions {
9
+ pagination?: React.CSSProperties;
10
+ buttoninput?: React.CSSProperties;
11
+ }
12
+ interface CommonColors {
13
+ white: string;
14
+ black: string;
15
+ text: {
16
+ primary: string;
17
+ secondary: string;
18
+ teritary: string;
19
+ inverse: string;
20
+ };
21
+ point: {
22
+ point1: string;
23
+ point2: string;
24
+ point3: string;
25
+ point4: string;
26
+ };
27
+ red: {
28
+ 50: string;
29
+ 100: string;
30
+ 200: string;
31
+ 600: string;
32
+ 900: string;
33
+ };
34
+ green: {
35
+ 50: string;
36
+ 100: string;
37
+ 200: string;
38
+ 600: string;
39
+ 900: string;
40
+ opacity: {
41
+ 15: string;
42
+ };
43
+ };
44
+ yellow: {
45
+ 200: string;
46
+ 900: string;
47
+ opacity: {
48
+ '200-30': string;
49
+ '900-30': string;
50
+ '900-60': string;
51
+ };
52
+ };
53
+ }
54
+ }
55
+ declare module '@mui/material/Typography' {
56
+ interface TypographyPropsVariantOverrides {
57
+ pagination: true;
58
+ buttoninput: true;
59
+ }
60
+ }
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import type { PaletteMode, PaletteOptions, Theme } from '@mui/material';
3
+ import type { TypographyFontFamilyType } from '../typography';
4
+ export interface TypographyVariantsExtension {
5
+ pagination: React.CSSProperties;
6
+ buttoninput: React.CSSProperties;
7
+ }
8
+ export interface CommonColors {
9
+ white: string;
10
+ black: string;
11
+ text: {
12
+ primary: string;
13
+ secondary: string;
14
+ teritary: string;
15
+ inverse: string;
16
+ };
17
+ point: {
18
+ point1: string;
19
+ point2: string;
20
+ point3: string;
21
+ point4: string;
22
+ };
23
+ red: {
24
+ 50: string;
25
+ 100: string;
26
+ 200: string;
27
+ 600: string;
28
+ 900: string;
29
+ };
30
+ green: {
31
+ 50: string;
32
+ 100: string;
33
+ 200: string;
34
+ 600: string;
35
+ 900: string;
36
+ opacity: {
37
+ 15: string;
38
+ };
39
+ };
40
+ yellow: {
41
+ 200: string;
42
+ 900: string;
43
+ opacity: {
44
+ '200-30': string;
45
+ '900-30': string;
46
+ '900-60': string;
47
+ };
48
+ };
49
+ }
50
+ export interface MuiPalette {
51
+ light: PaletteOptions;
52
+ dark: PaletteOptions;
53
+ }
54
+ export type AIDTPalettePublisher = 'elice' | 'type1' | 'type2';
55
+ export type AIDTPaletteSubject = 'korean' | 'computerScience' | 'english' | 'socialStudy' | 'math' | 'science';
56
+ export type AIDTPaletteLevel = 'elementary' | 'middle' | 'high';
57
+ export interface SurfaceColor {
58
+ border: string;
59
+ }
60
+ export interface CreateAIDTThemeProps {
61
+ paletteMode?: PaletteMode;
62
+ palettePublisher?: AIDTPalettePublisher;
63
+ paletteSubject?: AIDTPaletteSubject;
64
+ paletteLevel?: AIDTPaletteLevel;
65
+ typographyFontFamily: TypographyFontFamilyType;
66
+ }
67
+ export type CreateAIDTTheme = (props?: CreateAIDTThemeProps) => Theme;
@@ -28,10 +28,12 @@ var EliceModal = function EliceModal(props) {
28
28
  }, props.sx),
29
29
  children: [iconClose && jsx(Stack, {
30
30
  display: "flex",
31
+ position: "relative",
31
32
  justifyContent: "flex-end",
33
+ zIndex: 1200,
32
34
  alignItems: "flex-end",
35
+ onClick: handleClose,
33
36
  children: jsx(HighlightOffIcon, {
34
- onClick: handleClose,
35
37
  sx: {
36
38
  width: '2.7rem',
37
39
  height: '2.7rem',
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import { type ButtonProps } from '@mui/material';
3
3
  export interface EliceButtonProps extends ButtonProps {
4
4
  children?: React.ReactNode;
5
+ textColor?: string;
6
+ bgColor?: string;
5
7
  }
6
8
  declare const EliceButton: React.ForwardRefExoticComponent<Omit<EliceButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
9
  export default EliceButton;
@@ -9,10 +9,14 @@ var EliceButton = forwardRef(function (_a, ref) {
9
9
  _a$variant = _a.variant,
10
10
  variant = _a$variant === void 0 ? 'contained' : _a$variant,
11
11
  disabled = _a.disabled,
12
- rest = __rest(_a, ["children", "variant", "disabled"]);
12
+ textColor = _a.textColor,
13
+ bgColor = _a.bgColor,
14
+ rest = __rest(_a, ["children", "variant", "disabled", "textColor", "bgColor"]);
13
15
  var theme = useTheme();
14
16
  var _useAIDTMediaQuery = useAIDTMediaQuery(),
15
17
  isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
18
+ var resolvedColor = textColor !== null && textColor !== void 0 ? textColor : disabled ? theme.palette.text.disabled : variant === 'outlined' ? theme.palette.primary.main : theme.palette.common.white;
19
+ var resolvedBgColor = bgColor !== null && bgColor !== void 0 ? bgColor : variant === 'outlined' ? theme.palette.common.white : disabled ? theme.palette.grey[300] : theme.palette.primary.main;
16
20
  return jsx(Button, Object.assign({
17
21
  ref: ref,
18
22
  variant: variant,
@@ -22,8 +26,8 @@ var EliceButton = forwardRef(function (_a, ref) {
22
26
  height: isMiniTablet ? '42px' : '56px',
23
27
  borderRadius: isMiniTablet ? '12px' : '16px',
24
28
  padding: isMiniTablet ? '8px 12px' : '12px 20px',
25
- color: disabled ? theme.palette.text.disabled : variant === 'outlined' ? theme.palette.primary.main : theme.palette.common.white,
26
- backgroundColor: variant === 'outlined' ? theme.palette.common.white : disabled ? theme.palette.grey[300] : theme.palette.primary.main,
29
+ color: resolvedColor,
30
+ backgroundColor: resolvedBgColor,
27
31
  fontFamily: 'inherit'
28
32
  }
29
33
  }, rest, {
@@ -15,7 +15,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
15
15
  var EliceLayoutContext = React.createContext(undefined);
16
16
  var MainContainer = /*#__PURE__*/_styled(Stack, {
17
17
  target: "efnp08i6"
18
- })("width:100%;height:100vh;max-width:1280px;display:flex;flex-direction:column;padding:", function (_ref) {
18
+ })("width:100%;height:100vh;justify-content:center;align-items:center;display:flex;flex-direction:column;padding:", function (_ref) {
19
19
  var isMiniTablet = _ref.isMiniTablet;
20
20
  return isMiniTablet ? "0 20px" : "0 40px";
21
21
  }, ";box-sizing:border-box;position:relative;background-image:", function (_ref2) {
@@ -28,26 +28,26 @@ var MainContainer = /*#__PURE__*/_styled(Stack, {
28
28
  var _HeaderContainer = /*#__PURE__*/_styled(Stack, {
29
29
  target: "efnp08i5"
30
30
  })("production" === "production" ? {
31
- name: "14ia2gs",
32
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
31
+ name: "gwvfyq",
32
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row"
33
33
  } : {
34
- name: "14ia2gs",
35
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
34
+ name: "gwvfyq",
35
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row",
36
36
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
37
37
  });
38
38
  var _FooterContainer = /*#__PURE__*/_styled(Stack, {
39
39
  target: "efnp08i4"
40
40
  })("production" === "production" ? {
41
- name: "1mz0nio",
42
- styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row"
41
+ name: "304f34",
42
+ styles: "height:92px;width:100%;max-width:1200px;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row"
43
43
  } : {
44
- name: "1mz0nio",
45
- styles: "height:92px;width:100%;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row",
44
+ name: "304f34",
45
+ styles: "height:92px;width:100%;max-width:1200px;padding:18px 0;align-items:center;justify-content:space-between;flex-direction:row",
46
46
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
47
47
  });
48
48
  var SubtitleContainer = /*#__PURE__*/_styled(Stack, {
49
49
  target: "efnp08i3"
50
- })("height:80px;width:100%;padding:20px 40px;display:flex;align-items:", function (_ref4) {
50
+ })("height:80px;width:100%;max-width:1200px;padding:20px 40px;display:flex;align-items:", function (_ref4) {
51
51
  var alignment = _ref4.alignment;
52
52
  return alignment;
53
53
  }, ";justify-content:", function (_ref5) {
@@ -68,7 +68,7 @@ var SubtitleContainer = /*#__PURE__*/_styled(Stack, {
68
68
  }, ";");
69
69
  var _ContentContainer = /*#__PURE__*/_styled(Stack, {
70
70
  target: "efnp08i2"
71
- })("flex:1;width:100%;max-height:calc(100vh - 74px - 92px);max-width:1200px;overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref10) {
71
+ })("flex:1;width:100%;max-width:1200px;max-height:calc(100vh - 74px - 92px);max-width:1200px;overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref10) {
72
72
  var theme = _ref10.theme;
73
73
  return theme.palette.primary.main;
74
74
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref11) {
@@ -6,11 +6,14 @@ export interface EliceRecorderStepProps {
6
6
  onTransform?: () => void;
7
7
  type?: RecorderType;
8
8
  visualType?: SoundVisualizerVariant;
9
+ isReadyVisual?: boolean;
9
10
  onRecord?: () => void;
11
+ onResume?: () => void;
12
+ onPause?: () => void;
10
13
  closeRecorder?: () => void;
11
14
  onTranscribingChange?: (value: boolean) => void;
12
15
  isLoadingMessage?: boolean;
13
16
  forcedStep?: RecorderStep;
14
17
  }
15
- declare const EliceRecorderStep: ({ onAudioReady, onTransform, visualType, onRecord, type, onTranscribingChange, forcedStep, closeRecorder, }: EliceRecorderStepProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const EliceRecorderStep: ({ onAudioReady, onTransform, visualType, onRecord, type, isReadyVisual, onResume, onPause, onTranscribingChange, forcedStep, closeRecorder, }: EliceRecorderStepProps) => import("react/jsx-runtime").JSX.Element;
16
19
  export default EliceRecorderStep;
@@ -19,6 +19,10 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
19
19
  onRecord = _ref.onRecord,
20
20
  _ref$type = _ref.type,
21
21
  type = _ref$type === void 0 ? "notNeed" : _ref$type,
22
+ _ref$isReadyVisual = _ref.isReadyVisual,
23
+ isReadyVisual = _ref$isReadyVisual === void 0 ? false : _ref$isReadyVisual,
24
+ onResume = _ref.onResume,
25
+ onPause = _ref.onPause,
22
26
  onTranscribingChange = _ref.onTranscribingChange,
23
27
  forcedStep = _ref.forcedStep,
24
28
  closeRecorder = _ref.closeRecorder;
@@ -59,9 +63,11 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
59
63
  };
60
64
  }();
61
65
  var handlePause = function handlePause() {
66
+ onPause === null || onPause === void 0 ? void 0 : onPause();
62
67
  pauseRecording();
63
68
  };
64
69
  var handleResume = function handleResume() {
70
+ onResume === null || onResume === void 0 ? void 0 : onResume();
65
71
  resumeRecording();
66
72
  };
67
73
  var handleStop = function handleStop() {
@@ -89,7 +95,7 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
89
95
  variant: visualType,
90
96
  onClickRecord: handleStart
91
97
  }) : jsxs(StyledVisualizerBox, {
92
- children: [jsx(SoundVisualizer, {
98
+ children: [!isReadyVisual && jsx(SoundVisualizer, {
93
99
  analyser: recorderState.analyser,
94
100
  variant: visualType,
95
101
  bgColor: theme.palette.common.white
@@ -124,7 +130,7 @@ var EliceRecorderStep = function EliceRecorderStep(_ref) {
124
130
  children: "\uC77C\uC2DC \uC815\uC9C0"
125
131
  })]
126
132
  }), jsxs(StyledRecorderButton, {
127
- onClick: type == "needPause" || type === "allNeed" ? handleStop : handleOnlySubmit,
133
+ onClick: type == "needPause" || type === "allNeed" || type == "needWaiting" ? handleStop : handleOnlySubmit,
128
134
  step: currentStep,
129
135
  theme: theme,
130
136
  children: [jsx(Recording, {}), jsx(Typography, {
@@ -3,7 +3,7 @@ import _styled from '@emotion/styled/base';
3
3
  import { __rest } from 'tslib';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
5
5
  import { useState } from 'react';
6
- import { useTheme, Tooltip, Stack, Typography } from '@mui/material';
6
+ import { useTheme, ClickAwayListener, Tooltip, Stack, Typography } from '@mui/material';
7
7
  import { main300Color, main400Color } from '../tokenColorTemporary.js';
8
8
  import Close from '../../icons/Close.js';
9
9
 
@@ -43,22 +43,70 @@ var EliceTooltip = function EliceTooltip(_a) {
43
43
  _useState2 = _slicedToArray(_useState, 2),
44
44
  open = _useState2[0],
45
45
  setOpen = _useState2[1];
46
- return isControl ? jsx(Tooltip, Object.assign({
47
- arrow: true,
48
- title: jsxs(Stack, {
49
- direction: "row",
50
- gap: "0.625rem",
51
- children: [jsx(Close, {
52
- style: {
53
- opacity: 0.7,
54
- flexShrink: 0,
55
- cursor: 'pointer'
56
- },
57
- onClick: function onClick() {
58
- return setOpen(false);
46
+ return isControl ? jsx(ClickAwayListener, {
47
+ onClickAway: function onClickAway() {
48
+ return setOpen(false);
49
+ },
50
+ children: jsx(Tooltip, Object.assign({
51
+ arrow: true,
52
+ title: jsxs(Stack, {
53
+ direction: "row",
54
+ gap: "0.625rem",
55
+ children: [jsx(Close, {
56
+ style: {
57
+ opacity: 0.7,
58
+ flexShrink: 0,
59
+ cursor: 'pointer'
60
+ },
61
+ onClick: function onClick() {
62
+ return setOpen(false);
63
+ }
64
+ }), jsx(StyledScrollBar, {
65
+ style: {
66
+ maxHeight: '15rem',
67
+ overflowY: 'auto'
68
+ },
69
+ children: jsx(Typography, {
70
+ variant: "subtitle2",
71
+ children: title
72
+ })
73
+ })]
74
+ }),
75
+ placement: placement,
76
+ open: open,
77
+ onOpen: function onOpen() {
78
+ if (triggerAction === 'default') {
79
+ setOpen(true);
80
+ }
81
+ },
82
+ onClick: function onClick() {
83
+ if (triggerAction === 'click') {
84
+ setOpen(true);
59
85
  }
60
- }), jsx(StyledScrollBar, {
86
+ },
87
+ slotProps: slotProps,
88
+ style: {
89
+ cursor: triggerAction === 'click' ? 'pointer' : 'auto'
90
+ }
91
+ }, rest, {
92
+ children: jsx(Stack, {
93
+ position: "relative",
94
+ width: "fit-content",
95
+ height: "fit-content",
96
+ whiteSpace: "pre-wrap",
97
+ children: children
98
+ })
99
+ }))
100
+ }) : jsx(ClickAwayListener, {
101
+ onClickAway: function onClickAway() {
102
+ return setOpen(false);
103
+ },
104
+ children: jsx(Tooltip, Object.assign({
105
+ arrow: true,
106
+ title: jsx(StyledScrollBar, {
61
107
  style: {
108
+ fontWeight: 700,
109
+ fontSize: '1.375rem',
62
110
  maxHeight: '15rem',
63
111
  overflowY: 'auto'
64
112
  },
@@ -66,56 +114,18 @@ var EliceTooltip = function EliceTooltip(_a) {
66
114
  variant: "subtitle2",
67
115
  children: title
68
116
  })
69
- })]
70
- }),
71
- placement: placement,
72
- open: open,
73
- onOpen: function onOpen() {
74
- if (triggerAction === 'default') {
75
- setOpen(true);
76
- }
77
- },
78
- onClick: function onClick() {
79
- if (triggerAction === 'click') {
80
- setOpen(true);
81
- }
82
- },
83
- slotProps: slotProps,
84
- style: {
85
- cursor: triggerAction === 'click' ? 'pointer' : 'auto'
86
- }
87
- }, rest, {
88
- children: jsx(Stack, {
89
- position: "relative",
90
- width: "fit-content",
91
- height: "fit-content",
92
- whiteSpace: "pre-wrap",
93
- children: children
94
- })
95
- })) : jsx(Tooltip, Object.assign({
96
- arrow: true,
97
- title: jsx(StyledScrollBar, {
98
- style: {
99
- fontWeight: 700,
100
- fontSize: '1.375rem',
101
- maxHeight: '15rem',
102
- overflowY: 'auto'
103
- },
104
- children: jsx(Typography, {
105
- variant: "subtitle2",
106
- children: title
117
+ }),
118
+ placement: placement,
119
+ slotProps: slotProps
120
+ }, rest, {
121
+ children: jsx(Stack, {
122
+ position: "relative",
123
+ width: "fit-content",
124
+ height: "fit-content",
125
+ children: children
107
126
  })
108
- }),
109
- placement: placement,
110
- slotProps: slotProps
111
- }, rest, {
112
- children: jsx(Stack, {
113
- position: "relative",
114
- width: "fit-content",
115
- height: "fit-content",
116
- children: children
117
- })
118
- }));
127
+ }))
128
+ });
119
129
  };
120
130
 
121
131
  export { EliceTooltip as default };
@@ -1 +1 @@
1
- export * from './useAIDTMediaQuery';
1
+ export { default as useAIDTMediaQuery } from './useAIDTMediaQuery';
package/es/hooks/index.js CHANGED
@@ -1 +1 @@
1
- import '@mui/material';
1
+ export { default as useAIDTMediaQuery } from './useAIDTMediaQuery.js';
package/es/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './types/theme-augmentation';
1
2
  export * from './components';
2
3
  export * from './theme';
3
4
  export * from './tokens';
package/es/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import '@mui/material/styles';
1
2
  export { default as EliceAIFeedback } from './components/AI-feedback/AIFeedback.js';
2
3
  export { default as EliceBadge } from './components/badge/Badge.js';
3
4
  export { default as EliceButton } from './components/button/Button.js';
@@ -42,6 +43,7 @@ export { default as Recording } from './icons/Recording.js';
42
43
  export { default as ReadyRecord } from './icons/ReadyRecord.js';
43
44
  export { default as RecordPlay } from './icons/RecordPlay.js';
44
45
  export { default as SendArrow } from './icons/SendArrow.js';
46
+ export { default as useAIDTMediaQuery } from './hooks/useAIDTMediaQuery.js';
45
47
  export { RecorderProvider } from './components/recorder-step/RecorderContext.js';
46
48
  export { createAIDTTheme } from './theme/createAIDTTheme.js';
47
49
  export { mint } from './tokens/colors/mint.js';
@@ -1,80 +1,3 @@
1
- /// <reference types="react" />
2
- import type { PaletteMode, PaletteOptions, Theme } from '@mui/material';
3
- import type { TypographyFontFamilyType } from '../typography';
4
- declare module '@mui/material/styles' {
5
- interface TypographyVariants {
6
- pagination: React.CSSProperties;
7
- buttoninput: React.CSSProperties;
8
- }
9
- interface CommonColors {
10
- white: string;
11
- black: string;
12
- text: {
13
- primary: string;
14
- secondary: string;
15
- teritary: string;
16
- inverse: string;
17
- };
18
- point: {
19
- point1: string;
20
- point2: string;
21
- point3: string;
22
- point4: string;
23
- };
24
- red: {
25
- 50: string;
26
- 100: string;
27
- 200: string;
28
- 600: string;
29
- 900: string;
30
- };
31
- green: {
32
- 50: string;
33
- 100: string;
34
- 200: string;
35
- 600: string;
36
- 900: string;
37
- opacity: {
38
- 15: string;
39
- };
40
- };
41
- yellow: {
42
- 200: string;
43
- 900: string;
44
- opacity: {
45
- '200-30': string;
46
- '900-30': string;
47
- '900-60': string;
48
- };
49
- };
50
- }
51
- }
52
- declare module '@mui/material/Typography' {
53
- interface TypographyPropsVariantOverrides {
54
- pagination: true;
55
- buttoninput: true;
56
- }
57
- }
58
- export interface MuiPalette {
59
- light: PaletteOptions;
60
- dark: PaletteOptions;
61
- }
62
- export type AIDTPalettePublisher = 'elice' | 'type1' | 'type2';
63
- export type AIDTPaletteSubject = 'korean' | 'computerScience' | 'english' | 'socialStudy' | 'math' | 'science';
64
- export type AIDTPaletteLevel = 'elementary' | 'middle' | 'high';
65
- export interface SurfaceColor {
66
- border: string;
67
- }
68
- export interface CreateAIDTThemeProps {
69
- paletteMode?: PaletteMode;
70
- palettePublisher?: AIDTPalettePublisher;
71
- paletteSubject?: AIDTPaletteSubject;
72
- paletteLevel?: AIDTPaletteLevel;
73
- typographyFontFamily: TypographyFontFamilyType;
74
- }
75
- export type CreateAIDTTheme = (props?: CreateAIDTThemeProps) => Theme;
76
- /**
77
- * Create AIDT Theme according to PaletteName, pallettPublisher, pallettSubject, pallettLevel
78
- **/
79
- declare const createAIDTTheme: ({ paletteMode, palettePublisher, paletteSubject, paletteLevel, typographyFontFamily, }: CreateAIDTThemeProps) => Theme;
1
+ import type { CreateAIDTThemeProps } from '../types/theme.types';
2
+ declare const createAIDTTheme: ({ paletteMode, palettePublisher, paletteSubject, paletteLevel, typographyFontFamily, }: CreateAIDTThemeProps) => import("@mui/material").Theme;
80
3
  export { createAIDTTheme };
@@ -5,9 +5,6 @@ import { getThemeColors } from './AIDTTheme.js';
5
5
  import { AIDTBreakpoints } from '../breakpoints/breakpoints.js';
6
6
  import { common } from '../tokens/colors/common.js';
7
7
 
8
- /**
9
- * Create AIDT Theme according to PaletteName, pallettPublisher, pallettSubject, pallettLevel
10
- **/
11
8
  var createAIDTTheme = function createAIDTTheme(_ref) {
12
9
  var _ref$paletteMode = _ref.paletteMode,
13
10
  paletteMode = _ref$paletteMode === void 0 ? 'light' : _ref$paletteMode,
@@ -5,7 +5,8 @@ var common = Object.freeze({
5
5
  primary: '#1E1E1E',
6
6
  secondary: '#363643',
7
7
  teritary: '#525265',
8
- inverse: '#ffffff'
8
+ inverse: '#ffffff',
9
+ quaternary: '#9FA0B1'
9
10
  },
10
11
  point: {
11
12
  point1: '#BB7CF5',
@@ -0,0 +1,60 @@
1
+ /// <reference types="react" />
2
+ import '@mui/material/styles';
3
+ declare module '@mui/material/styles' {
4
+ interface TypographyVariants {
5
+ pagination: React.CSSProperties;
6
+ buttoninput: React.CSSProperties;
7
+ }
8
+ interface TypographyVariantsOptions {
9
+ pagination?: React.CSSProperties;
10
+ buttoninput?: React.CSSProperties;
11
+ }
12
+ interface CommonColors {
13
+ white: string;
14
+ black: string;
15
+ text: {
16
+ primary: string;
17
+ secondary: string;
18
+ teritary: string;
19
+ inverse: string;
20
+ };
21
+ point: {
22
+ point1: string;
23
+ point2: string;
24
+ point3: string;
25
+ point4: string;
26
+ };
27
+ red: {
28
+ 50: string;
29
+ 100: string;
30
+ 200: string;
31
+ 600: string;
32
+ 900: string;
33
+ };
34
+ green: {
35
+ 50: string;
36
+ 100: string;
37
+ 200: string;
38
+ 600: string;
39
+ 900: string;
40
+ opacity: {
41
+ 15: string;
42
+ };
43
+ };
44
+ yellow: {
45
+ 200: string;
46
+ 900: string;
47
+ opacity: {
48
+ '200-30': string;
49
+ '900-30': string;
50
+ '900-60': string;
51
+ };
52
+ };
53
+ }
54
+ }
55
+ declare module '@mui/material/Typography' {
56
+ interface TypographyPropsVariantOverrides {
57
+ pagination: true;
58
+ buttoninput: true;
59
+ }
60
+ }
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import type { PaletteMode, PaletteOptions, Theme } from '@mui/material';
3
+ import type { TypographyFontFamilyType } from '../typography';
4
+ export interface TypographyVariantsExtension {
5
+ pagination: React.CSSProperties;
6
+ buttoninput: React.CSSProperties;
7
+ }
8
+ export interface CommonColors {
9
+ white: string;
10
+ black: string;
11
+ text: {
12
+ primary: string;
13
+ secondary: string;
14
+ teritary: string;
15
+ inverse: string;
16
+ };
17
+ point: {
18
+ point1: string;
19
+ point2: string;
20
+ point3: string;
21
+ point4: string;
22
+ };
23
+ red: {
24
+ 50: string;
25
+ 100: string;
26
+ 200: string;
27
+ 600: string;
28
+ 900: string;
29
+ };
30
+ green: {
31
+ 50: string;
32
+ 100: string;
33
+ 200: string;
34
+ 600: string;
35
+ 900: string;
36
+ opacity: {
37
+ 15: string;
38
+ };
39
+ };
40
+ yellow: {
41
+ 200: string;
42
+ 900: string;
43
+ opacity: {
44
+ '200-30': string;
45
+ '900-30': string;
46
+ '900-60': string;
47
+ };
48
+ };
49
+ }
50
+ export interface MuiPalette {
51
+ light: PaletteOptions;
52
+ dark: PaletteOptions;
53
+ }
54
+ export type AIDTPalettePublisher = 'elice' | 'type1' | 'type2';
55
+ export type AIDTPaletteSubject = 'korean' | 'computerScience' | 'english' | 'socialStudy' | 'math' | 'science';
56
+ export type AIDTPaletteLevel = 'elementary' | 'middle' | 'high';
57
+ export interface SurfaceColor {
58
+ border: string;
59
+ }
60
+ export interface CreateAIDTThemeProps {
61
+ paletteMode?: PaletteMode;
62
+ palettePublisher?: AIDTPalettePublisher;
63
+ paletteSubject?: AIDTPaletteSubject;
64
+ paletteLevel?: AIDTPaletteLevel;
65
+ typographyFontFamily: TypographyFontFamilyType;
66
+ }
67
+ export type CreateAIDTTheme = (props?: CreateAIDTThemeProps) => Theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elicecontents/content-ui",
3
- "version": "1.0.11",
3
+ "version": "1.0.12-rc.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",