@elicecontents/content-ui 0.0.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.
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +95 -0
- package/cjs/assets/AIAvatar.png.js +7 -0
- package/cjs/breakpoints/breakpoints.d.ts +21 -0
- package/cjs/breakpoints/breakpoints.js +20 -0
- package/cjs/breakpoints/index.d.ts +1 -0
- package/cjs/breakpoints/index.js +7 -0
- package/cjs/components/AI-feedback/AIFeedback.d.ts +4 -0
- package/cjs/components/AI-feedback/AIFeedback.js +36 -0
- package/cjs/components/AI-feedback/index.d.ts +1 -0
- package/cjs/components/AI-feedback/index.js +7 -0
- package/cjs/components/AIDTTypography/AIDTTypography.d.ts +11 -0
- package/cjs/components/AIDTTypography/AIDTTypography.js +30 -0
- package/cjs/components/AIDTTypography/index.d.ts +1 -0
- package/cjs/components/AIDTTypography/index.js +7 -0
- package/cjs/components/AdaptiveImage/AdaptiveImage.d.ts +11 -0
- package/cjs/components/AdaptiveImage/AdaptiveImage.js +64 -0
- package/cjs/components/AdaptiveImage/index.d.ts +1 -0
- package/cjs/components/AdaptiveImage/index.js +7 -0
- package/cjs/components/answer-feedback/AnswerFeedback.d.ts +5 -0
- package/cjs/components/answer-feedback/AnswerFeedback.js +25 -0
- package/cjs/components/answer-feedback/Correct.d.ts +2 -0
- package/cjs/components/answer-feedback/Correct.js +77 -0
- package/cjs/components/answer-feedback/Incorrect.d.ts +2 -0
- package/cjs/components/answer-feedback/Incorrect.js +114 -0
- package/cjs/components/answer-feedback/index.d.ts +2 -0
- package/cjs/components/answer-feedback/index.js +7 -0
- package/cjs/components/badge/Badge.d.ts +7 -0
- package/cjs/components/badge/Badge.js +33 -0
- package/cjs/components/badge/index.d.ts +2 -0
- package/cjs/components/badge/index.js +7 -0
- package/cjs/components/button/Button.d.ts +7 -0
- package/cjs/components/button/Button.js +37 -0
- package/cjs/components/button/index.d.ts +2 -0
- package/cjs/components/button/index.js +7 -0
- package/cjs/components/chat/AssistantAvatar.d.ts +2 -0
- package/cjs/components/chat/AssistantAvatar.js +162 -0
- package/cjs/components/chat/Chat.d.ts +14 -0
- package/cjs/components/chat/Chat.js +168 -0
- package/cjs/components/chat/UserAvatar.d.ts +2 -0
- package/cjs/components/chat/UserAvatar.js +173 -0
- package/cjs/components/chat/index.d.ts +2 -0
- package/cjs/components/chat/index.js +7 -0
- package/cjs/components/dialog/Dialog.d.ts +11 -0
- package/cjs/components/dialog/Dialog.js +117 -0
- package/cjs/components/dialog/index.d.ts +2 -0
- package/cjs/components/dialog/index.js +7 -0
- package/cjs/components/dotted-pagination/DottedPagination.d.ts +8 -0
- package/cjs/components/dotted-pagination/DottedPagination.js +67 -0
- package/cjs/components/dotted-pagination/index.d.ts +2 -0
- package/cjs/components/dotted-pagination/index.js +7 -0
- package/cjs/components/icon-button/IconButton.d.ts +7 -0
- package/cjs/components/icon-button/IconButton.js +31 -0
- package/cjs/components/icon-button/index.d.ts +2 -0
- package/cjs/components/icon-button/index.js +7 -0
- package/cjs/components/index.d.ts +18 -0
- package/cjs/components/index.js +37 -0
- package/cjs/components/layout/Layout.d.ts +16 -0
- package/cjs/components/layout/Layout.js +197 -0
- package/cjs/components/layout/bg_pattern.png.js +7 -0
- package/cjs/components/layout/index.d.ts +2 -0
- package/cjs/components/layout/index.js +7 -0
- package/cjs/components/question/Question.d.ts +7 -0
- package/cjs/components/question/Question.js +54 -0
- package/cjs/components/question/index.d.ts +2 -0
- package/cjs/components/question/index.js +7 -0
- package/cjs/components/selection/Selection.d.ts +13 -0
- package/cjs/components/selection/Selection.js +111 -0
- package/cjs/components/selection/index.d.ts +2 -0
- package/cjs/components/selection/index.js +7 -0
- package/cjs/components/table/Table.d.ts +11 -0
- package/cjs/components/table/Table.js +155 -0
- package/cjs/components/table/index.d.ts +2 -0
- package/cjs/components/table/index.js +7 -0
- package/cjs/components/textarea/Textarea.d.ts +3 -0
- package/cjs/components/textarea/Textarea.js +58 -0
- package/cjs/components/textarea/index.d.ts +1 -0
- package/cjs/components/textarea/index.js +7 -0
- package/cjs/components/tokenColorTemporary.d.ts +23 -0
- package/cjs/components/tokenColorTemporary.js +40 -0
- package/cjs/components/tooltip/Tooltip.d.ts +11 -0
- package/cjs/components/tooltip/Tooltip.js +128 -0
- package/cjs/components/tooltip/index.d.ts +2 -0
- package/cjs/components/tooltip/index.js +7 -0
- package/cjs/icons/ArrowLeft.d.ts +6 -0
- package/cjs/icons/ArrowLeft.js +28 -0
- package/cjs/icons/ArrowRight.d.ts +6 -0
- package/cjs/icons/ArrowRight.js +35 -0
- package/cjs/icons/Close.d.ts +6 -0
- package/cjs/icons/Close.js +28 -0
- package/cjs/icons/Micro.d.ts +6 -0
- package/cjs/icons/Micro.js +44 -0
- package/cjs/icons/Reset.d.ts +6 -0
- package/cjs/icons/Reset.js +28 -0
- package/cjs/icons/SelectedCheckbox.d.ts +4 -0
- package/cjs/icons/SelectedCheckbox.js +25 -0
- package/cjs/icons/SelectedRadio.d.ts +4 -0
- package/cjs/icons/SelectedRadio.js +23 -0
- package/cjs/icons/Send.d.ts +6 -0
- package/cjs/icons/Send.js +31 -0
- package/cjs/icons/UnselectedCheckbox.d.ts +4 -0
- package/cjs/icons/UnselectedCheckbox.js +25 -0
- package/cjs/icons/UnselectedRadio.d.ts +4 -0
- package/cjs/icons/UnselectedRadio.js +23 -0
- package/cjs/icons/index.d.ts +10 -0
- package/cjs/icons/index.js +25 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +63 -0
- package/cjs/palettes/_typing.d.ts +9 -0
- package/cjs/palettes/eliceDefault.d.ts +2 -0
- package/cjs/palettes/eliceDefault.js +154 -0
- package/cjs/palettes/index.d.ts +3 -0
- package/cjs/palettes/index.js +11 -0
- package/cjs/palettes/miraeN.d.ts +2 -0
- package/cjs/palettes/miraeN.js +154 -0
- package/cjs/palettes/types.d.ts +21 -0
- package/cjs/palettes/visang.d.ts +2 -0
- package/cjs/palettes/visang.js +154 -0
- package/cjs/theme/AIDTTheme.d.ts +3 -0
- package/cjs/theme/AIDTTheme.js +29 -0
- package/cjs/theme/_base.d.ts +2 -0
- package/cjs/theme/_base.js +20 -0
- package/cjs/theme/createAIDTTheme.d.ts +25 -0
- package/cjs/theme/createAIDTTheme.js +49 -0
- package/cjs/theme/index.d.ts +1 -0
- package/cjs/theme/index.js +7 -0
- package/cjs/tokens/breakpoints/breakpoints.d.ts +10 -0
- package/cjs/tokens/breakpoints/breakpoints.js +14 -0
- package/cjs/tokens/breakpoints/index.d.ts +1 -0
- package/cjs/tokens/breakpoints/index.js +7 -0
- package/cjs/tokens/colors/_typing.d.ts +7 -0
- package/cjs/tokens/colors/bluepurple.d.ts +2 -0
- package/cjs/tokens/colors/bluepurple.js +18 -0
- package/cjs/tokens/colors/bluesky.d.ts +2 -0
- package/cjs/tokens/colors/bluesky.js +18 -0
- package/cjs/tokens/colors/common.d.ts +9 -0
- package/cjs/tokens/colors/common.js +15 -0
- package/cjs/tokens/colors/gray.d.ts +2 -0
- package/cjs/tokens/colors/gray.js +18 -0
- package/cjs/tokens/colors/green.d.ts +2 -0
- package/cjs/tokens/colors/green.js +18 -0
- package/cjs/tokens/colors/index.d.ts +10 -0
- package/cjs/tokens/colors/index.js +25 -0
- package/cjs/tokens/colors/mint.d.ts +2 -0
- package/cjs/tokens/colors/mint.js +18 -0
- package/cjs/tokens/colors/orange.d.ts +2 -0
- package/cjs/tokens/colors/orange.js +18 -0
- package/cjs/tokens/colors/pink.d.ts +2 -0
- package/cjs/tokens/colors/pink.js +18 -0
- package/cjs/tokens/colors/purple.d.ts +2 -0
- package/cjs/tokens/colors/purple.js +18 -0
- package/cjs/tokens/colors/yellow.d.ts +2 -0
- package/cjs/tokens/colors/yellow.js +18 -0
- package/cjs/tokens/index.d.ts +4 -0
- package/cjs/tokens/index.js +29 -0
- package/cjs/typography/index.d.ts +2 -0
- package/cjs/typography/index.js +9 -0
- package/cjs/typography/typography.d.ts +165 -0
- package/cjs/typography/typography.js +184 -0
- package/cjs/typography/typographyFontFamily.d.ts +5 -0
- package/cjs/typography/typographyFontFamily.js +8 -0
- package/es/_virtual/_rollupPluginBabelHelpers.js +81 -0
- package/es/assets/AIAvatar.png.js +3 -0
- package/es/breakpoints/breakpoints.d.ts +21 -0
- package/es/breakpoints/breakpoints.js +18 -0
- package/es/breakpoints/index.d.ts +1 -0
- package/es/breakpoints/index.js +1 -0
- package/es/components/AI-feedback/AIFeedback.d.ts +4 -0
- package/es/components/AI-feedback/AIFeedback.js +32 -0
- package/es/components/AI-feedback/index.d.ts +1 -0
- package/es/components/AI-feedback/index.js +1 -0
- package/es/components/AIDTTypography/AIDTTypography.d.ts +11 -0
- package/es/components/AIDTTypography/AIDTTypography.js +26 -0
- package/es/components/AIDTTypography/index.d.ts +1 -0
- package/es/components/AIDTTypography/index.js +1 -0
- package/es/components/AdaptiveImage/AdaptiveImage.d.ts +11 -0
- package/es/components/AdaptiveImage/AdaptiveImage.js +56 -0
- package/es/components/AdaptiveImage/index.d.ts +1 -0
- package/es/components/AdaptiveImage/index.js +1 -0
- package/es/components/answer-feedback/AnswerFeedback.d.ts +5 -0
- package/es/components/answer-feedback/AnswerFeedback.js +21 -0
- package/es/components/answer-feedback/Correct.d.ts +2 -0
- package/es/components/answer-feedback/Correct.js +73 -0
- package/es/components/answer-feedback/Incorrect.d.ts +2 -0
- package/es/components/answer-feedback/Incorrect.js +110 -0
- package/es/components/answer-feedback/index.d.ts +2 -0
- package/es/components/answer-feedback/index.js +1 -0
- package/es/components/badge/Badge.d.ts +7 -0
- package/es/components/badge/Badge.js +29 -0
- package/es/components/badge/index.d.ts +2 -0
- package/es/components/badge/index.js +1 -0
- package/es/components/button/Button.d.ts +7 -0
- package/es/components/button/Button.js +33 -0
- package/es/components/button/index.d.ts +2 -0
- package/es/components/button/index.js +1 -0
- package/es/components/chat/AssistantAvatar.d.ts +2 -0
- package/es/components/chat/AssistantAvatar.js +158 -0
- package/es/components/chat/Chat.d.ts +14 -0
- package/es/components/chat/Chat.js +160 -0
- package/es/components/chat/UserAvatar.d.ts +2 -0
- package/es/components/chat/UserAvatar.js +169 -0
- package/es/components/chat/index.d.ts +2 -0
- package/es/components/chat/index.js +1 -0
- package/es/components/dialog/Dialog.d.ts +11 -0
- package/es/components/dialog/Dialog.js +113 -0
- package/es/components/dialog/index.d.ts +2 -0
- package/es/components/dialog/index.js +1 -0
- package/es/components/dotted-pagination/DottedPagination.d.ts +8 -0
- package/es/components/dotted-pagination/DottedPagination.js +63 -0
- package/es/components/dotted-pagination/index.d.ts +2 -0
- package/es/components/dotted-pagination/index.js +1 -0
- package/es/components/icon-button/IconButton.d.ts +7 -0
- package/es/components/icon-button/IconButton.js +27 -0
- package/es/components/icon-button/index.d.ts +2 -0
- package/es/components/icon-button/index.js +1 -0
- package/es/components/index.d.ts +18 -0
- package/es/components/index.js +16 -0
- package/es/components/layout/Layout.d.ts +16 -0
- package/es/components/layout/Layout.js +188 -0
- package/es/components/layout/bg_pattern.png.js +3 -0
- package/es/components/layout/index.d.ts +2 -0
- package/es/components/layout/index.js +1 -0
- package/es/components/question/Question.d.ts +7 -0
- package/es/components/question/Question.js +46 -0
- package/es/components/question/index.d.ts +2 -0
- package/es/components/question/index.js +1 -0
- package/es/components/selection/Selection.d.ts +13 -0
- package/es/components/selection/Selection.js +103 -0
- package/es/components/selection/index.d.ts +2 -0
- package/es/components/selection/index.js +1 -0
- package/es/components/table/Table.d.ts +11 -0
- package/es/components/table/Table.js +147 -0
- package/es/components/table/index.d.ts +2 -0
- package/es/components/table/index.js +1 -0
- package/es/components/textarea/Textarea.d.ts +3 -0
- package/es/components/textarea/Textarea.js +50 -0
- package/es/components/textarea/index.d.ts +1 -0
- package/es/components/textarea/index.js +1 -0
- package/es/components/tokenColorTemporary.d.ts +23 -0
- package/es/components/tokenColorTemporary.js +22 -0
- package/es/components/tooltip/Tooltip.d.ts +11 -0
- package/es/components/tooltip/Tooltip.js +120 -0
- package/es/components/tooltip/index.d.ts +2 -0
- package/es/components/tooltip/index.js +1 -0
- package/es/icons/ArrowLeft.d.ts +6 -0
- package/es/icons/ArrowLeft.js +24 -0
- package/es/icons/ArrowRight.d.ts +6 -0
- package/es/icons/ArrowRight.js +31 -0
- package/es/icons/Close.d.ts +6 -0
- package/es/icons/Close.js +24 -0
- package/es/icons/Micro.d.ts +6 -0
- package/es/icons/Micro.js +40 -0
- package/es/icons/Reset.d.ts +6 -0
- package/es/icons/Reset.js +24 -0
- package/es/icons/SelectedCheckbox.d.ts +4 -0
- package/es/icons/SelectedCheckbox.js +21 -0
- package/es/icons/SelectedRadio.d.ts +4 -0
- package/es/icons/SelectedRadio.js +19 -0
- package/es/icons/Send.d.ts +6 -0
- package/es/icons/Send.js +27 -0
- package/es/icons/UnselectedCheckbox.d.ts +4 -0
- package/es/icons/UnselectedCheckbox.js +21 -0
- package/es/icons/UnselectedRadio.d.ts +4 -0
- package/es/icons/UnselectedRadio.js +19 -0
- package/es/icons/index.d.ts +10 -0
- package/es/icons/index.js +10 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +30 -0
- package/es/palettes/_typing.d.ts +9 -0
- package/es/palettes/eliceDefault.d.ts +2 -0
- package/es/palettes/eliceDefault.js +152 -0
- package/es/palettes/index.d.ts +3 -0
- package/es/palettes/index.js +3 -0
- package/es/palettes/miraeN.d.ts +2 -0
- package/es/palettes/miraeN.js +152 -0
- package/es/palettes/types.d.ts +21 -0
- package/es/palettes/visang.d.ts +2 -0
- package/es/palettes/visang.js +152 -0
- package/es/theme/AIDTTheme.d.ts +3 -0
- package/es/theme/AIDTTheme.js +27 -0
- package/es/theme/_base.d.ts +2 -0
- package/es/theme/_base.js +18 -0
- package/es/theme/createAIDTTheme.d.ts +25 -0
- package/es/theme/createAIDTTheme.js +47 -0
- package/es/theme/index.d.ts +1 -0
- package/es/theme/index.js +1 -0
- package/es/tokens/breakpoints/breakpoints.d.ts +10 -0
- package/es/tokens/breakpoints/breakpoints.js +12 -0
- package/es/tokens/breakpoints/index.d.ts +1 -0
- package/es/tokens/breakpoints/index.js +1 -0
- package/es/tokens/colors/_typing.d.ts +7 -0
- package/es/tokens/colors/bluepurple.d.ts +2 -0
- package/es/tokens/colors/bluepurple.js +16 -0
- package/es/tokens/colors/bluesky.d.ts +2 -0
- package/es/tokens/colors/bluesky.js +16 -0
- package/es/tokens/colors/common.d.ts +9 -0
- package/es/tokens/colors/common.js +13 -0
- package/es/tokens/colors/gray.d.ts +2 -0
- package/es/tokens/colors/gray.js +16 -0
- package/es/tokens/colors/green.d.ts +2 -0
- package/es/tokens/colors/green.js +16 -0
- package/es/tokens/colors/index.d.ts +10 -0
- package/es/tokens/colors/index.js +10 -0
- package/es/tokens/colors/mint.d.ts +2 -0
- package/es/tokens/colors/mint.js +16 -0
- package/es/tokens/colors/orange.d.ts +2 -0
- package/es/tokens/colors/orange.js +16 -0
- package/es/tokens/colors/pink.d.ts +2 -0
- package/es/tokens/colors/pink.js +16 -0
- package/es/tokens/colors/purple.d.ts +2 -0
- package/es/tokens/colors/purple.js +16 -0
- package/es/tokens/colors/yellow.d.ts +2 -0
- package/es/tokens/colors/yellow.js +16 -0
- package/es/tokens/index.d.ts +4 -0
- package/es/tokens/index.js +13 -0
- package/es/typography/index.d.ts +2 -0
- package/es/typography/index.js +2 -0
- package/es/typography/typography.d.ts +165 -0
- package/es/typography/typography.js +182 -0
- package/es/typography/typographyFontFamily.d.ts +5 -0
- package/es/typography/typographyFontFamily.js +6 -0
- package/package.json +58 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _styled = require('@emotion/styled/base');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var material = require('@mui/material');
|
|
8
|
+
var tokenColorTemporary = require('../tokenColorTemporary.js');
|
|
9
|
+
var SelectedCheckbox = require('../../icons/SelectedCheckbox.js');
|
|
10
|
+
var UnselectedCheckbox = require('../../icons/UnselectedCheckbox.js');
|
|
11
|
+
var SelectedRadio = require('../../icons/SelectedRadio.js');
|
|
12
|
+
var UnselectedRadio = require('../../icons/UnselectedRadio.js');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
|
+
|
|
16
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
17
|
+
|
|
18
|
+
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)."; }
|
|
19
|
+
var EliceToggleButton = /*#__PURE__*/_styled__default.default(material.ToggleButton, {
|
|
20
|
+
target: "el6845u0"
|
|
21
|
+
})("production" === "production" ? {
|
|
22
|
+
name: "hq7xwg",
|
|
23
|
+
styles: "border:none;border-radius:1.25rem!important"
|
|
24
|
+
} : {
|
|
25
|
+
name: "hq7xwg",
|
|
26
|
+
styles: "border:none;border-radius:1.25rem!important",
|
|
27
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
+
});
|
|
29
|
+
var EliceSelection = function EliceSelection(_ref) {
|
|
30
|
+
var type = _ref.type,
|
|
31
|
+
options = _ref.options,
|
|
32
|
+
value = _ref.value,
|
|
33
|
+
setValue = _ref.setValue,
|
|
34
|
+
_ref$orientation = _ref.orientation,
|
|
35
|
+
orientation = _ref$orientation === void 0 ? 'vertical' : _ref$orientation,
|
|
36
|
+
disabled = _ref.disabled;
|
|
37
|
+
var theme = material.useTheme();
|
|
38
|
+
var handleSelectionChange = function handleSelectionChange(event, newValue) {
|
|
39
|
+
if (!newValue || disabled) return;
|
|
40
|
+
setValue(function (prevState) {
|
|
41
|
+
if (type === 'checkbox' && Array.isArray(prevState)) {
|
|
42
|
+
var newValuesArray = Array.isArray(newValue) ? newValue : [newValue]; // ✅ newValue가 배열인지 확인
|
|
43
|
+
var updatedValues = prevState.filter(function (v) {
|
|
44
|
+
return !newValuesArray.includes(v);
|
|
45
|
+
}) // 기존 선택된 값에서 제거
|
|
46
|
+
.concat(newValuesArray.filter(function (v) {
|
|
47
|
+
return !prevState.includes(v);
|
|
48
|
+
})); // 새로운 값 추가
|
|
49
|
+
return updatedValues;
|
|
50
|
+
} else {
|
|
51
|
+
return Array.isArray(newValue) ? [newValue[0]] : [newValue]; // ✅ `radio` 모드는 단일 값 변경
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
return jsxRuntime.jsx(material.ToggleButtonGroup, {
|
|
56
|
+
orientation: orientation,
|
|
57
|
+
value: value,
|
|
58
|
+
exclusive: type === 'radio',
|
|
59
|
+
onChange: handleSelectionChange,
|
|
60
|
+
sx: {
|
|
61
|
+
backgroundColor: 'transparent',
|
|
62
|
+
gap: '1rem',
|
|
63
|
+
'> button': {
|
|
64
|
+
padding: '0 !important',
|
|
65
|
+
'&:hover': {
|
|
66
|
+
backgroundColor: 'transparent !important'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
'.Mui-selected': {
|
|
70
|
+
backgroundColor: 'transparent !important',
|
|
71
|
+
boxShadow: 'none !important'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
children: options.map(function (option) {
|
|
75
|
+
var isSelected = value.includes(option.value);
|
|
76
|
+
return jsxRuntime.jsx(EliceToggleButton, {
|
|
77
|
+
value: option.value,
|
|
78
|
+
children: jsxRuntime.jsxs(material.Stack, {
|
|
79
|
+
direction: "row",
|
|
80
|
+
border: "1px solid",
|
|
81
|
+
borderColor: isSelected ? theme.palette.secondary.main : tokenColorTemporary.gray300Color,
|
|
82
|
+
borderRadius: "1.25rem",
|
|
83
|
+
padding: "1rem",
|
|
84
|
+
gap: "0.75rem",
|
|
85
|
+
height: "4rem",
|
|
86
|
+
width: "22rem",
|
|
87
|
+
maxWidth: "100%",
|
|
88
|
+
boxSizing: "border-box",
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
bgcolor: disabled ? tokenColorTemporary.gray100Color : '#ffffff',
|
|
91
|
+
children: [isSelected && type === 'checkbox' && jsxRuntime.jsx(SelectedCheckbox.default, {
|
|
92
|
+
color: theme.palette.secondary.main
|
|
93
|
+
}), !isSelected && type === 'checkbox' && jsxRuntime.jsx(UnselectedCheckbox.default, {
|
|
94
|
+
color: tokenColorTemporary.gray300Color
|
|
95
|
+
}), isSelected && type === 'radio' && jsxRuntime.jsx(SelectedRadio.default, {
|
|
96
|
+
color: theme.palette.secondary.main
|
|
97
|
+
}), !isSelected && type === 'radio' && jsxRuntime.jsx(UnselectedRadio.default, {
|
|
98
|
+
color: tokenColorTemporary.gray300Color
|
|
99
|
+
}), jsxRuntime.jsx(material.Stack, {
|
|
100
|
+
color: isSelected ? theme.palette.secondary.main : disabled ? tokenColorTemporary.textQuaternaryColor : tokenColorTemporary.textTeriaryColor,
|
|
101
|
+
fontSize: "1.375rem",
|
|
102
|
+
fontWeight: 700,
|
|
103
|
+
children: option.content
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
}, option.value);
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
exports.default = EliceSelection;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DottedPaginationProps } from '../dotted-pagination/DottedPagination';
|
|
2
|
+
export type EiceTableProps = {
|
|
3
|
+
type?: 'default' | 'single';
|
|
4
|
+
rows: object[];
|
|
5
|
+
columnNames: string[];
|
|
6
|
+
tableTitleProps?: any;
|
|
7
|
+
tableValueProps?: any;
|
|
8
|
+
pagination?: DottedPaginationProps;
|
|
9
|
+
};
|
|
10
|
+
declare const EliceTable: ({ type, rows, columnNames, tableTitleProps, tableValueProps, pagination, }: EiceTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default EliceTable;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _styled = require('@emotion/styled/base');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var material = require('@mui/material');
|
|
8
|
+
var DottedPagination = require('../dotted-pagination/DottedPagination.js');
|
|
9
|
+
var tokenColorTemporary = require('../tokenColorTemporary.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
14
|
+
|
|
15
|
+
var StyledScrollBarStack = /*#__PURE__*/_styled__default.default(material.Stack, {
|
|
16
|
+
target: "eb6djt00"
|
|
17
|
+
})("width:fit-content;max-width:100%;position:relative;overflow-x:auto;box-sizing:border-box;border-radius:1.375rem;gap:0;::-webkit-scrollbar{height:0.25rem;}::-webkit-scrollbar-track{background:", function (props) {
|
|
18
|
+
var _a;
|
|
19
|
+
return (_a = props.scrollbarTrackColor) !== null && _a !== void 0 ? _a : tokenColorTemporary.gray200Color;
|
|
20
|
+
}, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb{background:", function (props) {
|
|
21
|
+
var _a;
|
|
22
|
+
return (_a = props.scrollbarThumbColor) !== null && _a !== void 0 ? _a : tokenColorTemporary.main300Color;
|
|
23
|
+
}, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb:hover{background:", function (props) {
|
|
24
|
+
var _a;
|
|
25
|
+
return (_a = props.scrollbarHoverColor) !== null && _a !== void 0 ? _a : tokenColorTemporary.main400Color;
|
|
26
|
+
}, ";}");
|
|
27
|
+
var EliceTable = function EliceTable(_ref) {
|
|
28
|
+
var _ref$type = _ref.type,
|
|
29
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
30
|
+
rows = _ref.rows,
|
|
31
|
+
columnNames = _ref.columnNames,
|
|
32
|
+
tableTitleProps = _ref.tableTitleProps,
|
|
33
|
+
tableValueProps = _ref.tableValueProps,
|
|
34
|
+
pagination = _ref.pagination;
|
|
35
|
+
var theme = material.useTheme();
|
|
36
|
+
if (type === 'default') {
|
|
37
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
38
|
+
gap: "2.5rem",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
children: [jsxRuntime.jsx(StyledScrollBarStack, {
|
|
41
|
+
scrollbarThumbColor: theme.palette.primary.main,
|
|
42
|
+
scrollbarHoverColor: theme.palette.secondary.main,
|
|
43
|
+
border: "1px solid ".concat(tokenColorTemporary.gray50Color),
|
|
44
|
+
children: jsxRuntime.jsxs(material.Table, {
|
|
45
|
+
children: [jsxRuntime.jsx(material.TableHead, {
|
|
46
|
+
style: {
|
|
47
|
+
backgroundColor: theme.palette.primary.light
|
|
48
|
+
},
|
|
49
|
+
children: jsxRuntime.jsx(material.TableRow, {
|
|
50
|
+
children: columnNames.map(function (name, index) {
|
|
51
|
+
return jsxRuntime.jsx(material.TableCell, Object.assign({
|
|
52
|
+
align: "center",
|
|
53
|
+
style: {
|
|
54
|
+
height: '3.625rem',
|
|
55
|
+
minWidth: '13.5rem',
|
|
56
|
+
padding: '1rem',
|
|
57
|
+
boxSizing: 'border-box',
|
|
58
|
+
borderBottom: "1px solid ".concat(theme.palette.secondary.main),
|
|
59
|
+
borderRight: index < columnNames.length - 1 ? "1px solid ".concat(theme.palette.secondary.main) : 'none',
|
|
60
|
+
fontSize: '1rem',
|
|
61
|
+
fontWeight: 700,
|
|
62
|
+
color: theme.palette.primary.dark
|
|
63
|
+
}
|
|
64
|
+
}, tableTitleProps, {
|
|
65
|
+
children: name
|
|
66
|
+
}));
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
}), jsxRuntime.jsx(material.TableBody, {
|
|
70
|
+
children: rows.map(function (row, index) {
|
|
71
|
+
return jsxRuntime.jsx(material.TableRow, {
|
|
72
|
+
children: Object.values(row).map(function (value, index) {
|
|
73
|
+
return jsxRuntime.jsx(material.TableCell, Object.assign({
|
|
74
|
+
component: "th",
|
|
75
|
+
scope: "row",
|
|
76
|
+
align: "center",
|
|
77
|
+
style: {
|
|
78
|
+
height: '3.625rem',
|
|
79
|
+
minWidth: '13.5rem',
|
|
80
|
+
padding: '1rem',
|
|
81
|
+
boxSizing: 'border-box',
|
|
82
|
+
borderBottom: "1px solid ".concat(theme.palette.secondary.main),
|
|
83
|
+
borderRight: index < Object.values(row).length - 1 ? "1px solid ".concat(theme.palette.secondary.main) : 'none',
|
|
84
|
+
fontSize: '1rem',
|
|
85
|
+
fontWeight: 500,
|
|
86
|
+
color: tokenColorTemporary.textTeriaryColor
|
|
87
|
+
}
|
|
88
|
+
}, tableValueProps, {
|
|
89
|
+
children: value
|
|
90
|
+
}));
|
|
91
|
+
})
|
|
92
|
+
}, "row".concat(index));
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
})
|
|
96
|
+
}), pagination && jsxRuntime.jsx(DottedPagination.default, Object.assign({}, pagination))]
|
|
97
|
+
});
|
|
98
|
+
} else {
|
|
99
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
100
|
+
direction: "row",
|
|
101
|
+
boxSizing: "border-box",
|
|
102
|
+
borderRadius: "1.375rem",
|
|
103
|
+
border: "1px solid ".concat(theme.palette.secondary.main),
|
|
104
|
+
overflow: "hidden",
|
|
105
|
+
width: "fit-content",
|
|
106
|
+
children: [jsxRuntime.jsx(material.Stack, {
|
|
107
|
+
gap: 0,
|
|
108
|
+
style: {
|
|
109
|
+
backgroundColor: theme.palette.primary.light
|
|
110
|
+
},
|
|
111
|
+
children: columnNames.map(function (name, index) {
|
|
112
|
+
return jsxRuntime.jsx(material.TableCell, Object.assign({
|
|
113
|
+
align: "center",
|
|
114
|
+
style: {
|
|
115
|
+
height: '3.625rem',
|
|
116
|
+
minWidth: '13.5rem',
|
|
117
|
+
padding: '1rem',
|
|
118
|
+
boxSizing: 'border-box',
|
|
119
|
+
borderRight: "1px solid ".concat(theme.palette.secondary.main),
|
|
120
|
+
borderBottom: index < columnNames.length - 1 ? "1px solid ".concat(theme.palette.secondary.main) : 'none',
|
|
121
|
+
fontSize: '1rem',
|
|
122
|
+
fontWeight: 700,
|
|
123
|
+
color: theme.palette.primary.dark
|
|
124
|
+
}
|
|
125
|
+
}, tableTitleProps, {
|
|
126
|
+
children: name
|
|
127
|
+
}));
|
|
128
|
+
})
|
|
129
|
+
}), jsxRuntime.jsx(material.Stack, {
|
|
130
|
+
gap: 0,
|
|
131
|
+
children: Object.values(rows[0]).map(function (value, index) {
|
|
132
|
+
return jsxRuntime.jsx(material.TableCell, Object.assign({
|
|
133
|
+
component: "th",
|
|
134
|
+
scope: "row",
|
|
135
|
+
align: "center",
|
|
136
|
+
style: {
|
|
137
|
+
height: '3.625rem',
|
|
138
|
+
minWidth: '13.5rem',
|
|
139
|
+
padding: '1rem',
|
|
140
|
+
boxSizing: 'border-box',
|
|
141
|
+
borderBottom: index < Object.values(rows[0]).length - 1 ? "1px solid ".concat(theme.palette.secondary.main) : 'none',
|
|
142
|
+
fontSize: '1rem',
|
|
143
|
+
fontWeight: 500,
|
|
144
|
+
color: tokenColorTemporary.textTeriaryColor
|
|
145
|
+
}
|
|
146
|
+
}, tableValueProps, {
|
|
147
|
+
children: value
|
|
148
|
+
}));
|
|
149
|
+
})
|
|
150
|
+
})]
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
exports.default = EliceTable;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _styled = require('@emotion/styled/base');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var material = require('@mui/material');
|
|
9
|
+
var tokenColorTemporary = require('../tokenColorTemporary.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
14
|
+
|
|
15
|
+
var StyledTextareaContainer = /*#__PURE__*/_styled__default.default(material.Stack, {
|
|
16
|
+
target: "eo1d81o1"
|
|
17
|
+
})("border:1px solid ", function (props) {
|
|
18
|
+
var _a;
|
|
19
|
+
return (_a = props.borderColor) !== null && _a !== void 0 ? _a : tokenColorTemporary.main200Color;
|
|
20
|
+
}, ";border-radius:1.5rem;padding:1.375rem 1.5rem;");
|
|
21
|
+
var StyledTextarea = /*#__PURE__*/_styled__default.default(material.Input, {
|
|
22
|
+
target: "eo1d81o0"
|
|
23
|
+
})("width:100%;border:none!important;background-color:#ffffff;font-size:", function (props) {
|
|
24
|
+
return props.fontSize;
|
|
25
|
+
}, ";font-weight:", function (props) {
|
|
26
|
+
return props.fontWeight;
|
|
27
|
+
}, ";line-height:", function (props) {
|
|
28
|
+
return props.lineHeight;
|
|
29
|
+
}, ";outline:none;resize:none;color:", function (props) {
|
|
30
|
+
var _a;
|
|
31
|
+
return (_a = props.fontColor) !== null && _a !== void 0 ? _a : tokenColorTemporary.secondaryColor;
|
|
32
|
+
}, ";::placeholder{color:", function (props) {
|
|
33
|
+
var _a;
|
|
34
|
+
return (_a = props.fontColor) !== null && _a !== void 0 ? _a : tokenColorTemporary.gray300Color;
|
|
35
|
+
}, ";}::before{border:none;}:hover{::before{border:none!important;}}::after{border-bottom:none!important;}");
|
|
36
|
+
var EliceTextarea = function EliceTextarea(_a) {
|
|
37
|
+
var _b, _c, _d;
|
|
38
|
+
var _a$rows = _a.rows,
|
|
39
|
+
rows = _a$rows === void 0 ? 5 : _a$rows,
|
|
40
|
+
_a$placeholder = _a.placeholder,
|
|
41
|
+
placeholder = _a$placeholder === void 0 ? 'Placeholder...' : _a$placeholder,
|
|
42
|
+
rest = tslib.__rest(_a, ["rows", "placeholder"]);
|
|
43
|
+
var theme = material.useTheme();
|
|
44
|
+
return jsxRuntime.jsx(StyledTextareaContainer, {
|
|
45
|
+
borderColor: theme.palette.secondary.main,
|
|
46
|
+
children: jsxRuntime.jsx(StyledTextarea, Object.assign({
|
|
47
|
+
multiline: true,
|
|
48
|
+
rows: rows,
|
|
49
|
+
placeholder: placeholder,
|
|
50
|
+
fontColor: theme.palette.secondary.main,
|
|
51
|
+
fontWeight: (_b = theme.typography.body1.fontWeight) !== null && _b !== void 0 ? _b : '700',
|
|
52
|
+
fontSize: (_c = theme.typography.body1.fontSize) !== null && _c !== void 0 ? _c : '1.375rem',
|
|
53
|
+
lineHeight: (_d = theme.typography.body1.lineHeight) !== null && _d !== void 0 ? _d : '1.925rem'
|
|
54
|
+
}, rest))
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports.default = EliceTextarea;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EliceTextarea } from './Textarea';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const primaryColor = "#5D6BB3";
|
|
2
|
+
export declare const secondaryColor = "#0A379B";
|
|
3
|
+
export declare const blackColor = "#031234";
|
|
4
|
+
export declare const main50Color = "#F4F6FF";
|
|
5
|
+
export declare const main100Color = "#DFE1F0";
|
|
6
|
+
export declare const main200Color = "#BEC4E1";
|
|
7
|
+
export declare const main300Color = "#9EA6D1";
|
|
8
|
+
export declare const main400Color = "#7D89C2";
|
|
9
|
+
export declare const main950Color = "#072567";
|
|
10
|
+
export declare const gray50Color = "#FAFAFD";
|
|
11
|
+
export declare const gray100Color = "#F3F4FA";
|
|
12
|
+
export declare const gray200Color = "#F1F1F6";
|
|
13
|
+
export declare const gray300Color = "#D8D8E2";
|
|
14
|
+
export declare const gray400Color = "#9B9BA9";
|
|
15
|
+
export declare const textPrimaryColor = "#1E1E1E";
|
|
16
|
+
export declare const textSecondaryColor = "#363643";
|
|
17
|
+
export declare const textTeriaryColor = "#525265";
|
|
18
|
+
export declare const textQuaternaryColor = "#9FA0B1";
|
|
19
|
+
export declare const quaternaryColor = "#9FA0B1";
|
|
20
|
+
export declare const point3Color = "#8F68F6";
|
|
21
|
+
export declare const KeyElementaryBg = "#9BCAFF";
|
|
22
|
+
export declare const KeyMiddleBg = "#B2B2B2";
|
|
23
|
+
export declare const KeyHighBg = "#0A379B";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// This is using token colors of blue-purple theme of Elice UI Content
|
|
4
|
+
// https://www.figma.com/design/dtsncp7RSV7wMqPf3jiCvf/Design-System?node-id=51-10973&node-type=SECTION&t=gCjy5t3c42ojVpyW-0
|
|
5
|
+
// TODO: apply theme;
|
|
6
|
+
var secondaryColor = '#0A379B';
|
|
7
|
+
var main200Color = '#BEC4E1';
|
|
8
|
+
var main300Color = '#9EA6D1';
|
|
9
|
+
var main400Color = '#7D89C2';
|
|
10
|
+
var gray50Color = '#FAFAFD';
|
|
11
|
+
var gray100Color = '#F3F4FA';
|
|
12
|
+
var gray200Color = '#F1F1F6';
|
|
13
|
+
var gray300Color = '#D8D8E2';
|
|
14
|
+
var gray400Color = '#9B9BA9';
|
|
15
|
+
var textPrimaryColor = '#1E1E1E';
|
|
16
|
+
var textSecondaryColor = '#363643';
|
|
17
|
+
var textTeriaryColor = '#525265';
|
|
18
|
+
var textQuaternaryColor = '#9FA0B1';
|
|
19
|
+
var point3Color = '#8F68F6';
|
|
20
|
+
var KeyElementaryBg = '#9BCAFF';
|
|
21
|
+
var KeyMiddleBg = '#B2B2B2';
|
|
22
|
+
var KeyHighBg = '#0A379B';
|
|
23
|
+
|
|
24
|
+
exports.KeyElementaryBg = KeyElementaryBg;
|
|
25
|
+
exports.KeyHighBg = KeyHighBg;
|
|
26
|
+
exports.KeyMiddleBg = KeyMiddleBg;
|
|
27
|
+
exports.gray100Color = gray100Color;
|
|
28
|
+
exports.gray200Color = gray200Color;
|
|
29
|
+
exports.gray300Color = gray300Color;
|
|
30
|
+
exports.gray400Color = gray400Color;
|
|
31
|
+
exports.gray50Color = gray50Color;
|
|
32
|
+
exports.main200Color = main200Color;
|
|
33
|
+
exports.main300Color = main300Color;
|
|
34
|
+
exports.main400Color = main400Color;
|
|
35
|
+
exports.point3Color = point3Color;
|
|
36
|
+
exports.secondaryColor = secondaryColor;
|
|
37
|
+
exports.textPrimaryColor = textPrimaryColor;
|
|
38
|
+
exports.textQuaternaryColor = textQuaternaryColor;
|
|
39
|
+
exports.textSecondaryColor = textSecondaryColor;
|
|
40
|
+
exports.textTeriaryColor = textTeriaryColor;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TooltipProps } from '@mui/material';
|
|
2
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
3
|
+
export interface EliceTooltipProps extends TooltipProps {
|
|
4
|
+
title: string | ReactNode;
|
|
5
|
+
isControl?: boolean;
|
|
6
|
+
children: ReactElement<any, any>;
|
|
7
|
+
initOpen?: boolean;
|
|
8
|
+
triggerAction?: 'default' | 'click';
|
|
9
|
+
}
|
|
10
|
+
declare const EliceTooltip: ({ title, initOpen, isControl, placement, triggerAction, children, ...rest }: EliceTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default EliceTooltip;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var _styled = require('@emotion/styled/base');
|
|
7
|
+
var tslib = require('tslib');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
var React = require('react');
|
|
10
|
+
var material = require('@mui/material');
|
|
11
|
+
var tokenColorTemporary = require('../tokenColorTemporary.js');
|
|
12
|
+
var Close = require('../../icons/Close.js');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
|
+
|
|
16
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
17
|
+
|
|
18
|
+
var StyledScrollBar = /*#__PURE__*/_styled__default.default(material.Typography, {
|
|
19
|
+
target: "e1h4eaj70"
|
|
20
|
+
})("::-webkit-scrollbar{width:0.5rem;}::-webkit-scrollbar-track{display:none;}::-webkit-scrollbar-thumb{background:", tokenColorTemporary.main300Color, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb:hover{background:", tokenColorTemporary.main400Color, ";}");
|
|
21
|
+
var EliceTooltip = function EliceTooltip(_a) {
|
|
22
|
+
var title = _a.title,
|
|
23
|
+
_a$initOpen = _a.initOpen,
|
|
24
|
+
initOpen = _a$initOpen === void 0 ? false : _a$initOpen,
|
|
25
|
+
isControl = _a.isControl,
|
|
26
|
+
_a$placement = _a.placement,
|
|
27
|
+
placement = _a$placement === void 0 ? 'left' : _a$placement,
|
|
28
|
+
_a$triggerAction = _a.triggerAction,
|
|
29
|
+
triggerAction = _a$triggerAction === void 0 ? 'default' : _a$triggerAction,
|
|
30
|
+
children = _a.children,
|
|
31
|
+
rest = tslib.__rest(_a, ["title", "initOpen", "isControl", "placement", "triggerAction", "children"]);
|
|
32
|
+
var theme = material.useTheme();
|
|
33
|
+
var slotProps = {
|
|
34
|
+
tooltip: {
|
|
35
|
+
style: {
|
|
36
|
+
backgroundColor: theme.palette.primary.main,
|
|
37
|
+
borderRadius: '1rem',
|
|
38
|
+
padding: '0.75rem',
|
|
39
|
+
maxWidth: '15.7rem',
|
|
40
|
+
maxHeight: '16rem'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
arrow: {
|
|
44
|
+
style: {
|
|
45
|
+
color: theme.palette.primary.main,
|
|
46
|
+
fontSize: '0.75rem'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var _useState = React.useState(initOpen),
|
|
51
|
+
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
|
52
|
+
open = _useState2[0],
|
|
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);
|
|
67
|
+
}
|
|
68
|
+
}), jsxRuntime.jsx(StyledScrollBar, {
|
|
69
|
+
style: {
|
|
70
|
+
maxHeight: '15rem',
|
|
71
|
+
overflowY: 'auto'
|
|
72
|
+
},
|
|
73
|
+
children: jsxRuntime.jsx(material.Typography, {
|
|
74
|
+
variant: "subtitle2",
|
|
75
|
+
children: title
|
|
76
|
+
})
|
|
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
|
+
children: children
|
|
101
|
+
})
|
|
102
|
+
})) : jsxRuntime.jsx(material.Tooltip, Object.assign({
|
|
103
|
+
arrow: true,
|
|
104
|
+
title: jsxRuntime.jsx(StyledScrollBar, {
|
|
105
|
+
style: {
|
|
106
|
+
fontWeight: 700,
|
|
107
|
+
fontSize: '1.375rem',
|
|
108
|
+
maxHeight: '15rem',
|
|
109
|
+
overflowY: 'auto'
|
|
110
|
+
},
|
|
111
|
+
children: jsxRuntime.jsx(material.Typography, {
|
|
112
|
+
variant: "subtitle2",
|
|
113
|
+
children: title
|
|
114
|
+
})
|
|
115
|
+
}),
|
|
116
|
+
placement: placement,
|
|
117
|
+
slotProps: slotProps
|
|
118
|
+
}, rest, {
|
|
119
|
+
children: jsxRuntime.jsx(material.Stack, {
|
|
120
|
+
position: "relative",
|
|
121
|
+
width: "fit-content",
|
|
122
|
+
height: "fit-content",
|
|
123
|
+
children: children
|
|
124
|
+
})
|
|
125
|
+
}));
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
exports.default = EliceTooltip;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 ArrowLeft = function ArrowLeft(_a) {
|
|
9
|
+
var _a$size = _a.size,
|
|
10
|
+
size = _a$size === void 0 ? 16 : _a$size,
|
|
11
|
+
_a$color = _a.color,
|
|
12
|
+
color = _a$color === void 0 ? 'currentColor' : _a$color,
|
|
13
|
+
other = tslib.__rest(_a, ["size", "color"]);
|
|
14
|
+
return jsxRuntime.jsx("svg", Object.assign({
|
|
15
|
+
height: size,
|
|
16
|
+
width: size,
|
|
17
|
+
viewBox: "0 0 16 16",
|
|
18
|
+
fill: "none",
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
+
}, other, {
|
|
21
|
+
children: jsxRuntime.jsx("path", {
|
|
22
|
+
d: "M10.4986 2.3535C10.6938 2.15826 11.0104 2.15827 11.2056 2.35352L11.4414 2.58924C11.6366 2.7845 11.6366 3.1011 11.4413 3.29636L6.60933 8.12799L11.4414 12.9599C11.6366 13.1551 11.6366 13.4717 11.4414 13.667L11.2057 13.9027C11.0104 14.0979 10.6938 14.0979 10.4986 13.9027L5.19526 8.59939C4.95494 8.35934 4.93645 7.98118 5.1398 7.71965L5.2 7.65133L10.4986 2.3535Z",
|
|
23
|
+
fill: color
|
|
24
|
+
})
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.default = ArrowLeft;
|