@elicecontents/content-ui 0.0.0 → 1.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/README.ko.md +117 -0
- package/README.md +117 -0
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +8 -0
- package/cjs/components/button/Button.js +7 -3
- package/cjs/components/chat/Chat.js +4 -3
- package/cjs/components/dotted-pagination/DottedPagination.js +2 -1
- package/cjs/components/icon-button/IconButton.d.ts +5 -1
- package/cjs/components/icon-button/IconButton.js +13 -5
- package/cjs/components/index.d.ts +1 -0
- package/cjs/components/index.js +2 -0
- package/cjs/components/layout/Footer/LayoutFooterPaging.d.ts +7 -0
- package/cjs/components/layout/Footer/LayoutFooterPaging.js +46 -0
- package/cjs/components/layout/Footer/LayoutFooterSubmit.d.ts +3 -0
- package/cjs/components/layout/Footer/LayoutFooterSubmit.js +22 -0
- package/cjs/components/layout/Footer/index.d.ts +3 -0
- package/cjs/components/layout/Footer/index.js +9 -0
- package/cjs/components/layout/Header/LayoutHeaderSubTitle.d.ts +6 -0
- package/cjs/components/layout/Header/LayoutHeaderSubTitle.js +63 -0
- package/cjs/components/layout/Header/LayoutHeaderTitle.d.ts +7 -0
- package/cjs/components/layout/Header/LayoutHeaderTitle.js +43 -0
- package/cjs/components/layout/Header/index.d.ts +4 -0
- package/cjs/components/layout/Header/index.js +9 -0
- package/cjs/components/layout/Layout.d.ts +27 -12
- package/cjs/components/layout/Layout.js +97 -176
- package/cjs/components/layout/layout-pagination/LayoutPagination.d.ts +8 -0
- package/cjs/components/layout/layout-pagination/LayoutPagination.js +44 -0
- package/cjs/components/layout/layout-pagination/index.d.ts +2 -0
- package/cjs/components/layout/layout-pagination/index.js +7 -0
- package/cjs/components/pagination-button/PaginationButton.d.ts +9 -0
- package/cjs/components/pagination-button/PaginationButton.js +40 -0
- package/cjs/components/pagination-button/index.d.ts +1 -0
- package/cjs/components/pagination-button/index.js +7 -0
- package/cjs/components/selection/Selection.d.ts +2 -1
- package/cjs/components/selection/Selection.js +19 -14
- package/cjs/components/subtitle-button/SubtitleButton.d.ts +7 -0
- package/cjs/components/subtitle-button/SubtitleButton.js +45 -0
- package/cjs/components/subtitle-button/index.d.ts +1 -0
- package/cjs/components/subtitle-button/index.js +7 -0
- package/cjs/components/tokenColorTemporary.js +0 -4
- package/cjs/components/tooltip/Tooltip.js +1 -1
- package/cjs/hooks/index.d.ts +1 -0
- package/cjs/hooks/index.js +4 -0
- package/cjs/hooks/useAIDTMediaQuery.d.ts +8 -0
- package/cjs/hooks/useAIDTMediaQuery.js +24 -0
- package/cjs/icons/ArrowLeft.js +4 -4
- package/cjs/icons/ArrowRight.js +6 -13
- package/cjs/icons/MoreColumn.d.ts +3 -0
- package/cjs/icons/MoreColumn.js +28 -0
- package/cjs/icons/QuestionBubble.d.ts +3 -0
- package/cjs/icons/QuestionBubble.js +28 -0
- package/cjs/icons/SearchIcon.d.ts +3 -0
- package/cjs/icons/SearchIcon.js +28 -0
- package/cjs/icons/_types.d.ts +4 -0
- package/cjs/icons/index.d.ts +3 -0
- package/cjs/icons/index.js +6 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +29 -0
- package/cjs/theme/createAIDTTheme.d.ts +17 -0
- package/cjs/tokens/breakpoints/breakpoints.d.ts +1 -1
- package/cjs/tokens/breakpoints/breakpoints.js +1 -1
- package/cjs/typography/typography.d.ts +24 -112
- package/cjs/typography/typography.js +54 -135
- package/es/_virtual/_rollupPluginBabelHelpers.js +8 -1
- package/es/components/button/Button.js +7 -3
- package/es/components/icon-button/IconButton.d.ts +5 -1
- package/es/components/icon-button/IconButton.js +13 -5
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +2 -1
- package/es/components/layout/Footer/LayoutFooterPaging.d.ts +7 -0
- package/es/components/layout/Footer/LayoutFooterPaging.js +38 -0
- package/es/components/layout/Footer/LayoutFooterSubmit.d.ts +3 -0
- package/es/components/layout/Footer/LayoutFooterSubmit.js +18 -0
- package/es/components/layout/Footer/index.d.ts +3 -0
- package/es/components/layout/Footer/index.js +2 -0
- package/es/components/layout/Header/LayoutHeaderSubTitle.d.ts +6 -0
- package/es/components/layout/Header/LayoutHeaderSubTitle.js +54 -0
- package/es/components/layout/Header/LayoutHeaderTitle.d.ts +7 -0
- package/es/components/layout/Header/LayoutHeaderTitle.js +35 -0
- package/es/components/layout/Header/index.d.ts +4 -0
- package/es/components/layout/Header/index.js +2 -0
- package/es/components/layout/Layout.d.ts +27 -12
- package/es/components/layout/Layout.js +99 -177
- package/es/components/layout/layout-pagination/LayoutPagination.d.ts +8 -0
- package/es/components/layout/layout-pagination/LayoutPagination.js +36 -0
- package/es/components/layout/layout-pagination/index.d.ts +2 -0
- package/es/components/layout/layout-pagination/index.js +1 -0
- package/es/components/pagination-button/PaginationButton.d.ts +9 -0
- package/es/components/pagination-button/PaginationButton.js +31 -0
- package/es/components/pagination-button/index.d.ts +1 -0
- package/es/components/pagination-button/index.js +1 -0
- package/es/components/selection/Selection.d.ts +2 -1
- package/es/components/selection/Selection.js +16 -12
- package/es/components/subtitle-button/SubtitleButton.d.ts +7 -0
- package/es/components/subtitle-button/SubtitleButton.js +41 -0
- package/es/components/subtitle-button/index.d.ts +1 -0
- package/es/components/subtitle-button/index.js +1 -0
- package/es/components/tokenColorTemporary.js +1 -3
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.js +1 -0
- package/es/hooks/useAIDTMediaQuery.d.ts +8 -0
- package/es/hooks/useAIDTMediaQuery.js +20 -0
- package/es/icons/ArrowLeft.js +4 -4
- package/es/icons/ArrowRight.js +6 -13
- package/es/icons/MoreColumn.d.ts +3 -0
- package/es/icons/MoreColumn.js +24 -0
- package/es/icons/QuestionBubble.d.ts +3 -0
- package/es/icons/QuestionBubble.js +24 -0
- package/es/icons/SearchIcon.d.ts +3 -0
- package/es/icons/SearchIcon.js +24 -0
- package/es/icons/_types.d.ts +4 -0
- package/es/icons/index.d.ts +3 -0
- package/es/icons/index.js +3 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +14 -0
- package/es/theme/createAIDTTheme.d.ts +17 -0
- package/es/tokens/breakpoints/breakpoints.d.ts +1 -1
- package/es/tokens/breakpoints/breakpoints.js +1 -1
- package/es/typography/typography.d.ts +24 -112
- package/es/typography/typography.js +54 -135
- package/package.json +2 -1
- package/cjs/components/layout/bg_pattern.png.js +0 -7
- package/es/components/layout/bg_pattern.png.js +0 -3
|
@@ -12,12 +12,6 @@ var createAIDTTypography = function createAIDTTypography(fontFamily) {
|
|
|
12
12
|
fontWeight: 900,
|
|
13
13
|
fontDisplay: 'swap',
|
|
14
14
|
src: "url('https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/pretendard.css') format('woff2')"
|
|
15
|
-
}, {
|
|
16
|
-
fontFamily: 'Pretendard',
|
|
17
|
-
fontStyle: 'normal',
|
|
18
|
-
fontWeight: 800,
|
|
19
|
-
fontDisplay: 'swap',
|
|
20
|
-
src: "url('https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/Pretendard-Bold.min.css') format('woff2')"
|
|
21
15
|
}, {
|
|
22
16
|
fontFamily: 'Pretendard',
|
|
23
17
|
fontStyle: 'normal',
|
|
@@ -30,30 +24,12 @@ var createAIDTTypography = function createAIDTTypography(fontFamily) {
|
|
|
30
24
|
fontWeight: 500,
|
|
31
25
|
fontDisplay: 'swap',
|
|
32
26
|
src: "url('https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/Pretendard-Medium.min.css') format('woff2')"
|
|
33
|
-
}, {
|
|
34
|
-
fontFamily: 'Pretendard',
|
|
35
|
-
fontStyle: 'normal',
|
|
36
|
-
fontWeight: 400,
|
|
37
|
-
fontDisplay: 'swap',
|
|
38
|
-
src: "url('https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/Pretendard-Regular.min.css') format('woff2')"
|
|
39
|
-
}, {
|
|
40
|
-
fontFamily: 'Pretendard',
|
|
41
|
-
fontStyle: 'normal',
|
|
42
|
-
fontWeight: 300,
|
|
43
|
-
fontDisplay: 'swap',
|
|
44
|
-
src: "url('https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/Pretendard-Light.min.css') format('woff2')"
|
|
45
27
|
}, {
|
|
46
28
|
fontFamily: 'EliceDXNeolli',
|
|
47
29
|
fontStyle: 'normal',
|
|
48
30
|
fontWeight: 900,
|
|
49
31
|
fontDisplay: 'swap',
|
|
50
32
|
src: "url(https://cdn.jsdelivr.net/gh/fonts-archive/EliceDXNeolli/EliceDXNeolli-Bold.woff2) format('woff2')"
|
|
51
|
-
}, {
|
|
52
|
-
fontFamily: 'EliceDXNeolli',
|
|
53
|
-
fontStyle: 'normal',
|
|
54
|
-
fontWeight: 800,
|
|
55
|
-
fontDisplay: 'swap',
|
|
56
|
-
src: "url(https://cdn.jsdelivr.net/gh/fonts-archive/EliceDXNeolli/EliceDXNeolli-Bold.woff2) format('woff2')"
|
|
57
33
|
}, {
|
|
58
34
|
fontFamily: 'EliceDXNeolli',
|
|
59
35
|
fontStyle: 'normal',
|
|
@@ -66,118 +42,61 @@ var createAIDTTypography = function createAIDTTypography(fontFamily) {
|
|
|
66
42
|
fontWeight: 500,
|
|
67
43
|
fontDisplay: 'swap',
|
|
68
44
|
src: "url(https://cdn.jsdelivr.net/gh/fonts-archive/EliceDXNeolli/EliceDXNeolli-Medium.woff2) format('woff2')"
|
|
69
|
-
}, {
|
|
70
|
-
fontFamily: 'EliceDXNeolli',
|
|
71
|
-
fontStyle: 'normal',
|
|
72
|
-
fontWeight: 400,
|
|
73
|
-
fontDisplay: 'swap',
|
|
74
|
-
src: "url('https://cdn.jsdelivr.net/gh/fonts-archive/EliceDXNeolli/EliceDXNeolli-Medium.woff2') format('woff2')"
|
|
75
|
-
}, {
|
|
76
|
-
fontFamily: 'EliceDXNeolli',
|
|
77
|
-
fontStyle: 'normal',
|
|
78
|
-
fontWeight: 300,
|
|
79
|
-
fontDisplay: 'swap',
|
|
80
|
-
src: "url('https://cdn.jsdelivr.net/gh/fonts-archive/EliceDXNeolli/EliceDXNeolli-Light.woff2') format('woff2')"
|
|
81
45
|
}],
|
|
82
|
-
h1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(
|
|
83
|
-
fontSize: '
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
fontSize: '
|
|
88
|
-
}), "@media (max-width:
|
|
89
|
-
fontSize: '
|
|
90
|
-
}),
|
|
91
|
-
|
|
92
|
-
fontSize: '
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
fontSize: '
|
|
97
|
-
}), "@media (max-width:
|
|
98
|
-
fontSize: '
|
|
99
|
-
}),
|
|
100
|
-
|
|
101
|
-
fontSize: '
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
fontSize: '
|
|
106
|
-
}), "@media (max-width:
|
|
107
|
-
fontSize: '
|
|
108
|
-
}),
|
|
109
|
-
|
|
110
|
-
fontSize: '
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
fontSize: '
|
|
115
|
-
}), "@media (max-width:
|
|
116
|
-
fontSize: '
|
|
117
|
-
}),
|
|
118
|
-
|
|
119
|
-
fontSize: '
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
fontSize: '
|
|
124
|
-
}), "@media (max-width:
|
|
125
|
-
fontSize: '
|
|
126
|
-
}),
|
|
127
|
-
|
|
128
|
-
fontSize: '
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
fontSize: '
|
|
133
|
-
}), "@media (max-width:
|
|
134
|
-
fontSize: '
|
|
135
|
-
})
|
|
136
|
-
subtitle1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
137
|
-
fontSize: '1.25rem'
|
|
138
|
-
}, "@media (max-width:1279px)", {
|
|
139
|
-
fontSize: '1.2rem'
|
|
140
|
-
}), "@media (max-height:800px)", {
|
|
141
|
-
fontSize: '1.125rem'
|
|
142
|
-
}), "@media (max-width:1023px)", {
|
|
143
|
-
fontSize: '1.125rem'
|
|
144
|
-
}), "fontWeight", 800), "lineHeight", 1.4),
|
|
145
|
-
subtitle2: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
146
|
-
fontSize: '1.125rem'
|
|
147
|
-
}, "@media (max-width:1279px)", {
|
|
148
|
-
fontSize: '1.1rem'
|
|
149
|
-
}), "@media (max-height:800px)", {
|
|
150
|
-
fontSize: '1rem'
|
|
151
|
-
}), "@media (max-width:1023px)", {
|
|
152
|
-
fontSize: '1rem'
|
|
153
|
-
}), "fontWeight", 800), "lineHeight", 1.32),
|
|
154
|
-
body1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
155
|
-
fontSize: '1rem'
|
|
156
|
-
}, "@media (max-width:1279px)", {
|
|
157
|
-
fontSize: '1rem'
|
|
158
|
-
}), "@media (max-height:800px)", {
|
|
159
|
-
fontSize: '0.9375rem'
|
|
160
|
-
}), "@media (max-width:1023px)", {
|
|
161
|
-
fontSize: '0.9375rem'
|
|
162
|
-
}), "fontWeight", 500), "lineHeight", 1.48),
|
|
163
|
-
body2: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
164
|
-
fontSize: '0.875rem'
|
|
165
|
-
}, "@media (max-width:1279px)", {
|
|
166
|
-
fontSize: '0.875rem'
|
|
167
|
-
}), "@media (max-height:800px)", {
|
|
168
|
-
fontSize: '0.8125rem'
|
|
169
|
-
}), "@media (max-width:1023px)", {
|
|
170
|
-
fontSize: '0.8125rem'
|
|
171
|
-
}), "fontWeight", 500), "lineHeight", 1.4),
|
|
172
|
-
caption: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
173
|
-
fontSize: '0.75rem'
|
|
174
|
-
}, "@media (max-width:1279px)", {
|
|
175
|
-
fontSize: '0.75rem'
|
|
176
|
-
}), "@media (max-height:800px)", {
|
|
177
|
-
fontSize: '0.6875rem'
|
|
178
|
-
}), "@media (max-width:1023px)", {
|
|
179
|
-
fontSize: '0.6875rem'
|
|
180
|
-
}), "fontWeight", 500), "lineHeight", 1.32)
|
|
46
|
+
h1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
47
|
+
fontSize: '20px',
|
|
48
|
+
fontWeight: 700,
|
|
49
|
+
lineHeight: '140%'
|
|
50
|
+
}, "@media (max-width:1200px)", {
|
|
51
|
+
fontSize: '20px'
|
|
52
|
+
}), "@media (max-width:512px)", {
|
|
53
|
+
fontSize: '22px'
|
|
54
|
+
}),
|
|
55
|
+
subtitle1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
56
|
+
fontSize: '26px',
|
|
57
|
+
fontWeight: 700,
|
|
58
|
+
lineHeight: '140%'
|
|
59
|
+
}, "@media (max-width:1200px)", {
|
|
60
|
+
fontSize: '26px'
|
|
61
|
+
}), "@media (max-width:512px)", {
|
|
62
|
+
fontSize: '22px'
|
|
63
|
+
}),
|
|
64
|
+
subtitle2: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
65
|
+
fontSize: '20px',
|
|
66
|
+
fontWeight: 700,
|
|
67
|
+
lineHeight: '140%'
|
|
68
|
+
}, "@media (max-width:1200px)", {
|
|
69
|
+
fontSize: '20px'
|
|
70
|
+
}), "@media (max-width:512px)", {
|
|
71
|
+
fontSize: '16px'
|
|
72
|
+
}),
|
|
73
|
+
body1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
74
|
+
fontSize: '20px',
|
|
75
|
+
fontWeight: 500,
|
|
76
|
+
lineHeight: '140%'
|
|
77
|
+
}, "@media (max-width:1200px)", {
|
|
78
|
+
fontSize: '20px'
|
|
79
|
+
}), "@media (max-width:512px)", {
|
|
80
|
+
fontSize: '16px'
|
|
81
|
+
}),
|
|
82
|
+
buttoninput: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
83
|
+
fontSize: '20px',
|
|
84
|
+
fontWeight: 700,
|
|
85
|
+
lineHeight: '140%'
|
|
86
|
+
}, "@media (max-width:1200px)", {
|
|
87
|
+
fontSize: '20px'
|
|
88
|
+
}), "@media (max-width:512px)", {
|
|
89
|
+
fontSize: '16px'
|
|
90
|
+
}),
|
|
91
|
+
pagination: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
|
|
92
|
+
fontSize: '32px',
|
|
93
|
+
fontWeight: 900,
|
|
94
|
+
lineHeight: '140%'
|
|
95
|
+
}, "@media (max-width:1200px)", {
|
|
96
|
+
fontSize: '32px'
|
|
97
|
+
}), "@media (max-width:512px)", {
|
|
98
|
+
fontSize: '24px'
|
|
99
|
+
})
|
|
181
100
|
};
|
|
182
101
|
};
|
|
183
102
|
|
|
@@ -53,6 +53,13 @@ function _nonIterableSpread() {
|
|
|
53
53
|
function _slicedToArray(r, e) {
|
|
54
54
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
55
55
|
}
|
|
56
|
+
function _taggedTemplateLiteral(e, t) {
|
|
57
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
58
|
+
raw: {
|
|
59
|
+
value: Object.freeze(t)
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
56
63
|
function _toConsumableArray(r) {
|
|
57
64
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
58
65
|
}
|
|
@@ -78,4 +85,4 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
|
|
81
|
-
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _arrayWithoutHoles as arrayWithoutHoles, _defineProperty as defineProperty, _iterableToArray as iterableToArray, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _nonIterableSpread as nonIterableSpread, _slicedToArray as slicedToArray, _toConsumableArray as toConsumableArray, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey, _unsupportedIterableToArray as unsupportedIterableToArray };
|
|
88
|
+
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _arrayWithoutHoles as arrayWithoutHoles, _defineProperty as defineProperty, _iterableToArray as iterableToArray, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _nonIterableSpread as nonIterableSpread, _slicedToArray as slicedToArray, _taggedTemplateLiteral as taggedTemplateLiteral, _toConsumableArray as toConsumableArray, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey, _unsupportedIterableToArray as unsupportedIterableToArray };
|
|
@@ -2,6 +2,7 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useTheme, Button, Typography } from '@mui/material';
|
|
5
|
+
import useAIDTMediaQuery from '../../hooks/useAIDTMediaQuery.js';
|
|
5
6
|
|
|
6
7
|
var EliceButton = forwardRef(function (_a, ref) {
|
|
7
8
|
var children = _a.children,
|
|
@@ -10,21 +11,24 @@ var EliceButton = forwardRef(function (_a, ref) {
|
|
|
10
11
|
disabled = _a.disabled,
|
|
11
12
|
rest = __rest(_a, ["children", "variant", "disabled"]);
|
|
12
13
|
var theme = useTheme();
|
|
14
|
+
var _useAIDTMediaQuery = useAIDTMediaQuery(),
|
|
15
|
+
isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
|
|
13
16
|
return jsx(Button, Object.assign({
|
|
14
17
|
ref: ref,
|
|
15
18
|
variant: variant,
|
|
16
19
|
disabled: disabled,
|
|
17
20
|
sx: {
|
|
18
21
|
width: 'fit-content',
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
height: isMiniTablet ? '42px' : '56px',
|
|
23
|
+
borderRadius: isMiniTablet ? '12px' : '16px',
|
|
24
|
+
padding: isMiniTablet ? '8px 12px' : '12px 20px',
|
|
21
25
|
color: disabled ? theme.palette.text.disabled : variant === 'outlined' ? theme.palette.primary.main : theme.palette.common.white,
|
|
22
26
|
backgroundColor: variant === 'outlined' ? theme.palette.common.white : disabled ? theme.palette.grey[300] : theme.palette.primary.main,
|
|
23
27
|
fontFamily: 'inherit'
|
|
24
28
|
}
|
|
25
29
|
}, rest, {
|
|
26
30
|
children: jsx(Typography, {
|
|
27
|
-
variant: "
|
|
31
|
+
variant: "buttoninput",
|
|
28
32
|
children: children
|
|
29
33
|
})
|
|
30
34
|
}));
|
|
@@ -2,6 +2,10 @@ import { type IconButtonProps } from '@mui/material';
|
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
export interface EliceIconButtonProps extends IconButtonProps {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
borderRadius?: number;
|
|
5
9
|
}
|
|
6
|
-
declare const EliceIconButton: ({ children, disabled, ...rest }: EliceIconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const EliceIconButton: ({ children, disabled, backgroundColor, width, height, borderRadius, ...rest }: EliceIconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
export default EliceIconButton;
|
|
@@ -2,21 +2,29 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useTheme, IconButton } from '@mui/material';
|
|
4
4
|
import { gray400Color, gray300Color } from '../tokenColorTemporary.js';
|
|
5
|
+
import useAIDTMediaQuery from '../../hooks/useAIDTMediaQuery.js';
|
|
5
6
|
|
|
6
7
|
var EliceIconButton = function EliceIconButton(_a) {
|
|
7
8
|
var children = _a.children,
|
|
8
9
|
disabled = _a.disabled,
|
|
9
|
-
|
|
10
|
+
backgroundColor = _a.backgroundColor,
|
|
11
|
+
width = _a.width,
|
|
12
|
+
height = _a.height,
|
|
13
|
+
borderRadius = _a.borderRadius,
|
|
14
|
+
rest = __rest(_a, ["children", "disabled", "backgroundColor", "width", "height", "borderRadius"]);
|
|
10
15
|
var theme = useTheme();
|
|
16
|
+
var _useAIDTMediaQuery = useAIDTMediaQuery(),
|
|
17
|
+
isMiniTablet = _useAIDTMediaQuery.isMiniTablet;
|
|
11
18
|
return jsx(IconButton, Object.assign({
|
|
12
19
|
disabled: disabled,
|
|
13
20
|
style: {
|
|
14
21
|
flexShrink: 0,
|
|
15
|
-
height: '3.5rem',
|
|
16
|
-
width: '3.5rem',
|
|
22
|
+
height: height !== null && height !== void 0 ? height : '3.5rem',
|
|
23
|
+
width: width !== null && width !== void 0 ? width : '3.5rem',
|
|
17
24
|
boxSizing: 'border-box',
|
|
18
|
-
backgroundColor: disabled ? gray300Color : theme.palette.primary.main,
|
|
19
|
-
borderRadius: '1rem',
|
|
25
|
+
backgroundColor: disabled ? gray300Color : backgroundColor ? backgroundColor : theme.palette.primary.main,
|
|
26
|
+
borderRadius: borderRadius !== null && borderRadius !== void 0 ? borderRadius : '1rem',
|
|
27
|
+
padding: isMiniTablet ? 8 : 10,
|
|
20
28
|
color: disabled ? gray400Color : theme.palette.primary.light
|
|
21
29
|
}
|
|
22
30
|
}, rest, {
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { default as EliceImage } from './AdaptiveImage/AdaptiveImage.js';
|
|
1
2
|
export { default as EliceAIFeedback } from './AI-feedback/AIFeedback.js';
|
|
2
3
|
export { default as EliceBadge } from './badge/Badge.js';
|
|
3
4
|
export { default as EliceButton } from './button/Button.js';
|
|
@@ -13,4 +14,4 @@ export { default as EliceTable } from './table/Table.js';
|
|
|
13
14
|
export { default as EliceTextarea } from './textarea/Textarea.js';
|
|
14
15
|
export { default as EliceTooltip } from './tooltip/Tooltip.js';
|
|
15
16
|
export { default as AIDTTypography } from './AIDTTypography/AIDTTypography.js';
|
|
16
|
-
export { default as
|
|
17
|
+
export { default as EliceSubButton } from './subtitle-button/SubtitleButton.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Typography, useTheme } from '@mui/material';
|
|
4
|
+
|
|
5
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
6
|
+
var FooterPagination = /*#__PURE__*/_styled(Typography, {
|
|
7
|
+
target: "ecog5a41"
|
|
8
|
+
})("production" === "production" ? {
|
|
9
|
+
name: "17qwk4",
|
|
10
|
+
styles: "padding:0 32px"
|
|
11
|
+
} : {
|
|
12
|
+
name: "17qwk4",
|
|
13
|
+
styles: "padding:0 32px",
|
|
14
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15
|
+
});
|
|
16
|
+
var StyledCurrentPage = /*#__PURE__*/_styled("span", {
|
|
17
|
+
target: "ecog5a40"
|
|
18
|
+
})("color:", function (_ref) {
|
|
19
|
+
var fontColor = _ref.fontColor;
|
|
20
|
+
return fontColor;
|
|
21
|
+
}, ";");
|
|
22
|
+
var LayoutFooterPaging = function LayoutFooterPaging(_ref2) {
|
|
23
|
+
var currentPage = _ref2.currentPage,
|
|
24
|
+
totalPage = _ref2.totalPage;
|
|
25
|
+
var theme = useTheme();
|
|
26
|
+
return jsxs(FooterPagination, {
|
|
27
|
+
variant: "pagination",
|
|
28
|
+
sx: {
|
|
29
|
+
color: "#D8D8E2"
|
|
30
|
+
},
|
|
31
|
+
children: [jsx(StyledCurrentPage, {
|
|
32
|
+
fontColor: theme.palette.primary.main,
|
|
33
|
+
children: currentPage
|
|
34
|
+
}), " ", "/ ", totalPage]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { LayoutFooterPaging as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Stack } from '@mui/material';
|
|
3
|
+
import EliceButton from '../../button/Button.js';
|
|
4
|
+
|
|
5
|
+
var LayoutFooterSubmit = function LayoutFooterSubmit() {
|
|
6
|
+
return jsxs(Stack, {
|
|
7
|
+
direction: "row",
|
|
8
|
+
spacing: 1,
|
|
9
|
+
children: [jsx(EliceButton, {
|
|
10
|
+
variant: "outlined",
|
|
11
|
+
children: "\uB2E4\uC2DC\uD558\uAE30"
|
|
12
|
+
}), jsx(EliceButton, {
|
|
13
|
+
children: "\uC81C\uCD9C\uD558\uAE30"
|
|
14
|
+
})]
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { LayoutFooterSubmit as default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { taggedTemplateLiteral as _taggedTemplateLiteral, slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { Menu } from '@base-ui-components/react/menu';
|
|
5
|
+
import { styled, Stack } from '@mui/material';
|
|
6
|
+
import useAIDTMediaQuery from '../../../hooks/useAIDTMediaQuery.js';
|
|
7
|
+
import EliceIconButton from '../../icon-button/IconButton.js';
|
|
8
|
+
import MoreColumn from '../../../icons/MoreColumn.js';
|
|
9
|
+
import { bluepurple } from '../../../tokens/colors/bluepurple.js';
|
|
10
|
+
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
12
|
+
var StyledPopup = styled(Menu.Popup)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n min-width: 150px;\n background: transparent;\n padding-top: 10px;\n border-radius: 8px;\n"])));
|
|
13
|
+
var StyledMenuItem = styled(Menu.Item)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-direction: column;\n"])));
|
|
14
|
+
var StyledMoreTrigger = styled(Menu.Trigger)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border: none;\n background-color: #fff;\n padding: 0;\n"])));
|
|
15
|
+
var LayoutHeaderSubTitle = function LayoutHeaderSubTitle(_ref) {
|
|
16
|
+
var children = _ref.children;
|
|
17
|
+
var _useState = useState(false),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
menuOpen = _useState2[0],
|
|
20
|
+
setMenuOpen = _useState2[1];
|
|
21
|
+
var _useAIDTMediaQuery = useAIDTMediaQuery(),
|
|
22
|
+
isTablet = _useAIDTMediaQuery.isTablet; // ✅ 반응형 적용
|
|
23
|
+
return jsx(Stack, {
|
|
24
|
+
direction: "row",
|
|
25
|
+
spacing: 2,
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
children: isTablet ? jsxs(Menu.Root, {
|
|
28
|
+
open: menuOpen,
|
|
29
|
+
onOpenChange: setMenuOpen,
|
|
30
|
+
children: [jsx(StyledMoreTrigger, {
|
|
31
|
+
children: jsx(EliceIconButton, {
|
|
32
|
+
width: 48,
|
|
33
|
+
height: 48,
|
|
34
|
+
backgroundColor: bluepurple[100],
|
|
35
|
+
borderRadius: 12,
|
|
36
|
+
children: jsx(MoreColumn, {})
|
|
37
|
+
})
|
|
38
|
+
}), jsx(Menu.Portal, {
|
|
39
|
+
children: jsx(Menu.Positioner, {
|
|
40
|
+
align: "start",
|
|
41
|
+
children: jsxs(StyledPopup, {
|
|
42
|
+
children: [jsx(Menu.Arrow, {}), React.Children.map(children, function (child, index) {
|
|
43
|
+
return jsx(StyledMenuItem, {
|
|
44
|
+
children: child
|
|
45
|
+
}, index);
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
})]
|
|
50
|
+
}) : children
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { LayoutHeaderSubTitle as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface LayoutHeaderTitleProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
titleComponent?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const LayoutHeaderTitle: ({ children, titleComponent }: LayoutHeaderTitleProps) => JSX.Element;
|
|
7
|
+
export default LayoutHeaderTitle;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Typography, useTheme, Stack } from '@mui/material';
|
|
4
|
+
|
|
5
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
6
|
+
var StyledTitle = /*#__PURE__*/_styled(Stack, {
|
|
7
|
+
target: "e1to23d41"
|
|
8
|
+
})("flex-shrink:0;width:fit-content;background-color:", function (_ref) {
|
|
9
|
+
var bgColor = _ref.bgColor;
|
|
10
|
+
return bgColor;
|
|
11
|
+
}, ";position:relative;top:auto;box-sizing:border-box;padding-top:17px;border-radius:0 0 26px 26px;");
|
|
12
|
+
var Title = /*#__PURE__*/_styled(Typography, {
|
|
13
|
+
target: "e1to23d40"
|
|
14
|
+
})("production" === "production" ? {
|
|
15
|
+
name: "v13ytb",
|
|
16
|
+
styles: "border-top:1px dashed #fff;height:100%;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff"
|
|
17
|
+
} : {
|
|
18
|
+
name: "v13ytb",
|
|
19
|
+
styles: "border-top:1px dashed #fff;height:100%;display:flex;justify-content:center;padding:11px 24px;text-align:center;color:#fff",
|
|
20
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
|
+
});
|
|
22
|
+
var LayoutHeaderTitle = function LayoutHeaderTitle(_ref2) {
|
|
23
|
+
var children = _ref2.children,
|
|
24
|
+
titleComponent = _ref2.titleComponent;
|
|
25
|
+
var theme = useTheme();
|
|
26
|
+
return jsx(StyledTitle, {
|
|
27
|
+
bgColor: theme.palette.secondary.main,
|
|
28
|
+
children: titleComponent ? titleComponent : typeof children === "string" ? jsx(Title, {
|
|
29
|
+
variant: "h1",
|
|
30
|
+
children: children
|
|
31
|
+
}) : children
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { LayoutHeaderTitle as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as LayoutHeaderSubTitle } from './LayoutHeaderSubTitle';
|
|
2
|
+
export { default as LayoutHeaderTitle } from './LayoutHeaderTitle';
|
|
3
|
+
export type { LayoutHeaderSubTitleProps } from './LayoutHeaderSubTitle';
|
|
4
|
+
export type { LayoutHeaderTitleProps } from './LayoutHeaderTitle';
|
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface EliceLayoutProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
currentPage: number;
|
|
8
|
-
totalPage: number;
|
|
9
|
-
onReset?: VoidFunction;
|
|
10
|
-
onPrev?: VoidFunction;
|
|
11
|
-
onNext?: VoidFunction;
|
|
12
|
-
allowPre?: boolean;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
onPrev?: () => void;
|
|
5
|
+
onNext?: () => void;
|
|
6
|
+
allowPrev?: boolean;
|
|
13
7
|
allowNext?: boolean;
|
|
14
8
|
}
|
|
15
|
-
declare const EliceLayout: (
|
|
9
|
+
declare const EliceLayout: (({ children, onPrev, onNext, allowPrev, allowNext }: EliceLayoutProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
|
+
HeaderContainer: ({ children, height }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
height?: string | undefined;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
HeaderTitle: ({ children, titleComponent }: import("./Header").LayoutHeaderTitleProps) => JSX.Element;
|
|
15
|
+
HeaderSubTitle: ({ children }: import("./Header").LayoutHeaderSubTitleProps) => JSX.Element;
|
|
16
|
+
Subtitle: ({ children, height }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
height?: string | undefined;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
Content: ({ children, height }: {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
height?: string | undefined;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
FooterContainer: ({ children, height }: {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
height?: string | undefined;
|
|
27
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
FooterPaging: React.FC<import("./Footer").LayoutFooterPagingProps>;
|
|
29
|
+
FooterSubmit: React.FC<{}>;
|
|
30
|
+
};
|
|
16
31
|
export default EliceLayout;
|