@kep-platform/basic-component 0.0.2 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/dist/@types/index.d.ts +61 -0
  2. package/dist/@types/styled-components.d.ts +9 -0
  3. package/dist/@types/theme.d.ts +38 -0
  4. package/dist/BoxShadowBox/BoxShadowBox.d.ts +8 -0
  5. package/dist/BoxShadowBox/BoxShadowBox.js +14 -0
  6. package/dist/BoxShadowBox/index.d.ts +1 -0
  7. package/dist/BoxShadowBox/index.js +1 -0
  8. package/dist/Button/Button.d.ts +12 -0
  9. package/dist/Button/Button.js +86 -0
  10. package/dist/Button/index.d.ts +1 -0
  11. package/dist/Button/index.js +1 -0
  12. package/dist/Columns/Columns.d.ts +24 -0
  13. package/dist/Columns/Columns.js +126 -0
  14. package/dist/Columns/index.d.ts +1 -0
  15. package/dist/Columns/index.js +1 -0
  16. package/dist/Flex/flex.d.ts +14 -0
  17. package/dist/Flex/flex.js +29 -0
  18. package/dist/Flex/index.d.ts +1 -0
  19. package/dist/Flex/index.js +1 -0
  20. package/dist/Grid/Col.d.ts +8 -0
  21. package/dist/Grid/Col.js +12 -0
  22. package/dist/Grid/Row.d.ts +6 -0
  23. package/dist/Grid/Row.js +55 -0
  24. package/dist/Grid/index.d.ts +2 -0
  25. package/dist/Grid/index.js +2 -0
  26. package/dist/Indent/Indent.d.ts +7 -0
  27. package/dist/Indent/Indent.js +25 -0
  28. package/dist/Indent/index.d.ts +1 -0
  29. package/dist/Indent/index.js +1 -0
  30. package/dist/List/List.d.ts +19 -0
  31. package/dist/List/List.js +41 -0
  32. package/dist/List/index.d.ts +1 -0
  33. package/dist/List/index.js +1 -0
  34. package/dist/Menu/Menu.d.ts +14 -0
  35. package/dist/Menu/Menu.js +107 -0
  36. package/dist/Menu/index.d.ts +3 -0
  37. package/dist/Menu/index.js +2 -0
  38. package/dist/Pagination/Pagination.d.ts +7 -0
  39. package/dist/Pagination/Pagination.js +44 -0
  40. package/dist/Pagination/index.d.ts +1 -0
  41. package/dist/Pagination/index.js +1 -0
  42. package/dist/PopupBox/PopupBox.d.ts +12 -0
  43. package/dist/PopupBox/PopupBox.js +12 -0
  44. package/dist/PopupBox/index.d.ts +1 -0
  45. package/dist/PopupBox/index.js +1 -0
  46. package/dist/Select/Select.d.ts +13 -0
  47. package/dist/Select/Select.js +121 -0
  48. package/dist/Select/index.d.ts +1 -0
  49. package/dist/Select/index.js +1 -0
  50. package/dist/Space/Space.d.ts +11 -0
  51. package/dist/Space/Space.js +39 -0
  52. package/dist/Space/index.d.ts +1 -0
  53. package/dist/Space/index.js +1 -0
  54. package/dist/Spin/Spin.d.ts +6 -0
  55. package/dist/Spin/Spin.js +16 -0
  56. package/dist/Spin/index.d.ts +1 -0
  57. package/dist/Spin/index.js +1 -0
  58. package/dist/Table/Table.d.ts +17 -0
  59. package/dist/Table/Table.js +243 -0
  60. package/dist/Table/index.d.ts +1 -0
  61. package/dist/Table/index.js +1 -0
  62. package/dist/Tag/Tag.d.ts +7 -0
  63. package/dist/Tag/Tag.js +16 -0
  64. package/dist/Tree/BOMTree.d.ts +3 -0
  65. package/dist/Tree/BOMTree.js +111 -0
  66. package/dist/Tree/MainProperties.d.ts +12 -0
  67. package/dist/Tree/MainProperties.js +23 -0
  68. package/dist/Tree/Tree.d.ts +20 -0
  69. package/dist/Tree/Tree.js +253 -0
  70. package/dist/Tree/TreeNode.d.ts +20 -0
  71. package/dist/Tree/TreeNode.js +147 -0
  72. package/dist/Tree/index.d.ts +3 -0
  73. package/dist/Tree/index.js +3 -0
  74. package/dist/__consts/theme.d.ts +81 -0
  75. package/dist/__consts/theme.js +88 -0
  76. package/dist/__consts/unit.d.ts +1 -0
  77. package/dist/__consts/unit.js +1 -0
  78. package/dist/__styles/GlobalStyles.d.ts +6 -0
  79. package/dist/__styles/GlobalStyles.js +6 -0
  80. package/dist/__styles/index.d.ts +1 -0
  81. package/dist/__styles/index.js +1 -0
  82. package/dist/index.d.ts +14 -1
  83. package/dist/index.js +14 -1
  84. package/package.json +11 -2
  85. package/dist/Foo/index.d.ts +0 -5
  86. package/dist/Foo/index.js +0 -5
@@ -0,0 +1,253 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useMemo, useRef, useState } from 'react';
8
+ import styled, { css } from 'styled-components';
9
+ import { BoxShadowBox } from "../BoxShadowBox";
10
+ import { Column, Columns } from "../Columns";
11
+ import { DefaultColumnWidth } from "../Columns/Columns";
12
+ import { List } from "../List";
13
+ import { MainArea } from "./MainProperties";
14
+ import { MainProperty, TreeNodeController } from "./TreeNode";
15
+ var TreeContainer = styled.div.withConfig({
16
+ displayName: "TreeContainer",
17
+ componentId: "basic-component-347b__sc-n4lkq9-0"
18
+ })(["position:relative;overflow-x:auto;border:1px solid var(--kep-platform-color-border-secondary);border-width:", ";"], function (props) {
19
+ return props.bordered ? '1px' : 0;
20
+ });
21
+ var TreeBody = styled(List).withConfig({
22
+ displayName: "TreeBody",
23
+ componentId: "basic-component-347b__sc-n4lkq9-1"
24
+ })([""]);
25
+ var TreeHeader = styled.div.withConfig({
26
+ displayName: "TreeHeader",
27
+ componentId: "basic-component-347b__sc-n4lkq9-2"
28
+ })(["", " background-color:var(--kep-platform-header-bg);& ", ",& ", "{background-color:var(--kep-platform-header-bg);font-weight:600;position:sticky;}"], function (props) {
29
+ if (props.isFlex) {
30
+ return css(["width:100%;"]);
31
+ }
32
+ if (props.width) {
33
+ return css(["width:", "px;"], props.width);
34
+ }
35
+ }, Column, MainArea);
36
+ var rootLevel = 0;
37
+ var TreeGroupNode = styled.div.withConfig({
38
+ displayName: "TreeGroupNode",
39
+ componentId: "basic-component-347b__sc-n4lkq9-3"
40
+ })(["height:40px;line-height:40px;padding:0 16px;color:var(--kep-platform-color-primary);cursor:pointer;border:1px dotted var(--kep-platform-color-primary);"]);
41
+ var TreeNodeGroup = function TreeNodeGroup(props) {
42
+ var _useState = useState(false),
43
+ _useState2 = _slicedToArray(_useState, 2),
44
+ expanded = _useState2[0],
45
+ setExpanded = _useState2[1];
46
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TreeGroupNode, {
47
+ onClick: function onClick() {
48
+ return setExpanded(!expanded);
49
+ }
50
+ }, props.groupName, "\uFF1A", props.groupValue), expanded && props.children);
51
+ };
52
+ function groupTreeNodeByPropertyName(arr, propertyName, fieldNames) {
53
+ var grouped = arr.reduce(function (acc, obj) {
54
+ var key = obj[propertyName] || obj[fieldNames.key];
55
+ if (key) {
56
+ if (!acc[key]) {
57
+ acc[key] = [];
58
+ }
59
+ acc[key].push(obj);
60
+ } else {}
61
+ return acc;
62
+ }, {});
63
+ return grouped;
64
+ }
65
+ var Tree = function Tree(_ref) {
66
+ var treeData = _ref.treeData,
67
+ _ref$columns = _ref.columns,
68
+ columns = _ref$columns === void 0 ? [] : _ref$columns,
69
+ _ref$fieldNames = _ref.fieldNames,
70
+ fieldNames = _ref$fieldNames === void 0 ? {
71
+ key: 'key',
72
+ title: 'title',
73
+ children: 'children'
74
+ } : _ref$fieldNames,
75
+ treeTitle = _ref.title,
76
+ _ref$titleWidth = _ref.titleWidth,
77
+ titleWidth = _ref$titleWidth === void 0 ? 700 : _ref$titleWidth,
78
+ _ref$selectedKeys = _ref.selectedKeys,
79
+ selectedKeys = _ref$selectedKeys === void 0 ? [] : _ref$selectedKeys,
80
+ _ref$expandedKeys = _ref.expandedKeys,
81
+ expandedKeys = _ref$expandedKeys === void 0 ? [] : _ref$expandedKeys,
82
+ _ref$isFlex = _ref.isFlex,
83
+ isFlex = _ref$isFlex === void 0 ? true : _ref$isFlex,
84
+ _ref$onSelect = _ref.onSelect,
85
+ onSelect = _ref$onSelect === void 0 ? function () {} : _ref$onSelect,
86
+ _ref$onExpand = _ref.onExpand,
87
+ onExpand = _ref$onExpand === void 0 ? function () {} : _ref$onExpand,
88
+ contextMenuRender = _ref.contextMenuRender,
89
+ _ref$multiple = _ref.multiple,
90
+ multiple = _ref$multiple === void 0 ? false : _ref$multiple,
91
+ _ref$bordered = _ref.bordered,
92
+ bordered = _ref$bordered === void 0 ? false : _ref$bordered,
93
+ _ref$groupBy = _ref.groupBy,
94
+ groupBy = _ref$groupBy === void 0 ? null : _ref$groupBy;
95
+ /* 复用Columns组件显示行,构造一个类似表格头数据来适应Columns组件的数据结构 */
96
+ var treeHeaderRowData = useMemo(function () {
97
+ var data = {};
98
+ if (columns) columns.forEach(function (_ref2) {
99
+ var title = _ref2.title,
100
+ dataIndex = _ref2.dataIndex;
101
+ data[dataIndex] = title;
102
+ });
103
+ return data;
104
+ }, [columns, fieldNames]);
105
+
106
+ /* 如果columns存在而且长度大于0,则启用TableMode,用以展示节点属性 */
107
+ var isTableMode = useMemo(function () {
108
+ return columns && columns.length > 0;
109
+ }, [columns]);
110
+
111
+ /* 如果没有行宽,position:sticky就会存在问题,所以要计算出行的宽度,这样行内的Column的sticky才能生效 */
112
+ var rowWidth = useMemo(function () {
113
+ if (columns) return columns.reduce(function (pre, current) {
114
+ if (current.hideInTable) return pre;
115
+ return pre + (current.width || DefaultColumnWidth);
116
+ }, 0) + titleWidth;
117
+ }, [columns, titleWidth]);
118
+
119
+ /* format主要是为了兼容树节点主体结构的内容,简单来说就是正常树节点的title,把title视为一个Column(当然只在tableMode生效) */
120
+ /* 同时也要计算left和right的偏移量,因为很多时候fixed的Column可能不止一个 */
121
+ var formatColumns = useMemo(function () {
122
+ /* 用来计算sticky的偏移量,确定每个有fixed属性column的位置 */
123
+ var leftOffset = 0;
124
+ var rightOffset = 0;
125
+ var p;
126
+ var newColumns = [];
127
+ for (var i = 0; i < columns.length; i++) {
128
+ p = columns[i];
129
+ if (p.hideInTable) {
130
+ continue;
131
+ }
132
+ if (p.fixed === 'left') {
133
+ p.left = leftOffset + 'px';
134
+ leftOffset += p.width || DefaultColumnWidth;
135
+ }
136
+ if (p.fixed === 'right') {
137
+ p.right = rightOffset + 'px';
138
+ rightOffset += p.width || DefaultColumnWidth;
139
+ }
140
+ p.bordered = true;
141
+ newColumns.push(p);
142
+ }
143
+ return newColumns;
144
+ }, [columns, fieldNames]);
145
+ var treeNodeGroup = useMemo(function () {
146
+ if (groupBy) return groupTreeNodeByPropertyName(treeData, groupBy, fieldNames);
147
+ }, [treeData, groupBy]);
148
+ var groupByTitle = useMemo(function () {
149
+ var _columns$find;
150
+ return (_columns$find = columns.find(function (column) {
151
+ return column.dataIndex === groupBy;
152
+ })) === null || _columns$find === void 0 ? void 0 : _columns$find.title;
153
+ }, [columns, groupBy]);
154
+ var boxShadowBox = useRef(null);
155
+ /* 树组件的结构其实比较简单,就是一个树标题(TableMode下),然后树节点形成的列表 */
156
+ return /*#__PURE__*/React.createElement(TreeContainer, {
157
+ onScroll: function onScroll(e) {
158
+ var treeContainer = e.target;
159
+ if (boxShadowBox.current) {
160
+ if (treeContainer.scrollLeft === 0) {
161
+ boxShadowBox.current.style.opacity = '0';
162
+ } else {
163
+ boxShadowBox.current.style.opacity = '1';
164
+ }
165
+ boxShadowBox.current.style.left = treeContainer.scrollLeft + titleWidth + 'px';
166
+ }
167
+ },
168
+ bordered: bordered
169
+ }, isTableMode && !isFlex && /*#__PURE__*/React.createElement(BoxShadowBox, {
170
+ ref: boxShadowBox,
171
+ width: "10px",
172
+ height: "100%",
173
+ offsetLeft: "-999px"
174
+ }), isTableMode && /*#__PURE__*/React.createElement(TreeHeader, {
175
+ width: rowWidth,
176
+ isFlex: isFlex
177
+ }, /*#__PURE__*/React.createElement(MainProperty, {
178
+ mainWidth: titleWidth,
179
+ main: treeTitle,
180
+ property: /*#__PURE__*/React.createElement(Columns, {
181
+ columns: formatColumns,
182
+ leftBase: titleWidth,
183
+ rowData: treeHeaderRowData,
184
+ isFlex: isFlex
185
+ }),
186
+ isFlex: isFlex
187
+ })), /*#__PURE__*/React.createElement(TreeBody, {
188
+ direction: "column"
189
+ }, !treeNodeGroup && !groupBy && treeData.map(function (node) {
190
+ return /*#__PURE__*/React.createElement(TreeNodeController, {
191
+ key: node[fieldNames.key],
192
+ selectedKeys: selectedKeys,
193
+ onSelect: onSelect,
194
+ expandedKeys: expandedKeys,
195
+ onExpand: onExpand,
196
+ width: isTableMode && !isFlex ? rowWidth : undefined,
197
+ node: node,
198
+ fieldNames: fieldNames,
199
+ isFlex: isFlex,
200
+ isTableMode: !!isTableMode,
201
+ columns: columns,
202
+ multiple: multiple,
203
+ level: rootLevel,
204
+ mainWidth: titleWidth,
205
+ contextMenuRender: contextMenuRender
206
+ });
207
+ }), treeNodeGroup && groupBy && Object.keys(treeNodeGroup).map(function (key) {
208
+ var group = treeNodeGroup[key];
209
+ if (group.length < 2) {
210
+ return /*#__PURE__*/React.createElement(TreeNodeController, {
211
+ key: group[0][fieldNames.key],
212
+ selectedKeys: selectedKeys,
213
+ onSelect: onSelect,
214
+ expandedKeys: expandedKeys,
215
+ onExpand: onExpand,
216
+ width: isTableMode && !isFlex ? rowWidth : undefined,
217
+ node: group[0],
218
+ fieldNames: fieldNames,
219
+ isFlex: isFlex,
220
+ isTableMode: !!isTableMode,
221
+ columns: columns,
222
+ multiple: multiple,
223
+ level: rootLevel,
224
+ mainWidth: titleWidth,
225
+ contextMenuRender: contextMenuRender
226
+ });
227
+ }
228
+ return /*#__PURE__*/React.createElement(TreeNodeGroup, {
229
+ groupName: groupByTitle,
230
+ key: key,
231
+ groupValue: key
232
+ }, treeNodeGroup[key].map(function (node) {
233
+ return /*#__PURE__*/React.createElement(TreeNodeController, {
234
+ key: node[fieldNames.key],
235
+ selectedKeys: selectedKeys,
236
+ onSelect: onSelect,
237
+ expandedKeys: expandedKeys,
238
+ onExpand: onExpand,
239
+ width: isTableMode && !isFlex ? rowWidth : undefined,
240
+ node: node,
241
+ fieldNames: fieldNames,
242
+ isFlex: isFlex,
243
+ isTableMode: !!isTableMode,
244
+ columns: columns,
245
+ multiple: multiple,
246
+ level: rootLevel + 1,
247
+ mainWidth: titleWidth,
248
+ contextMenuRender: contextMenuRender
249
+ });
250
+ }));
251
+ })));
252
+ };
253
+ export default Tree;
@@ -0,0 +1,20 @@
1
+ import React, { Key } from 'react';
2
+ import { MainProperty } from './MainProperties';
3
+ export type TreeNodeControllerProps = {
4
+ node: TreeNodeType;
5
+ selectedKeys: Key[];
6
+ width?: number;
7
+ fieldNames: TreeFieldNames;
8
+ isFlex: boolean;
9
+ isTableMode: boolean;
10
+ columns: ColumnType[];
11
+ onSelect: onSelectHandler;
12
+ multiple: boolean;
13
+ level: number;
14
+ mainWidth?: number;
15
+ expandedKeys: Key[];
16
+ onExpand: onExpandHandler;
17
+ contextMenuRender?: (node: TreeNodeType) => MenuItem[];
18
+ };
19
+ export declare const TreeNodeController: React.FC<TreeNodeControllerProps>;
20
+ export { MainProperty };
@@ -0,0 +1,147 @@
1
+ import { CaretRightOutlined } from '@ant-design/icons';
2
+ import React, { useCallback, useMemo } from 'react';
3
+ import styled, { css } from 'styled-components';
4
+ import { Column, Columns } from "../Columns";
5
+ import { Flex, FlexItem } from "../Flex";
6
+ import { Indent } from "../Indent";
7
+ import { ListItem } from "../List";
8
+ import { Menu } from "../Menu";
9
+ import { MainArea, MainProperty } from "./MainProperties";
10
+ var ExpandedIcon = styled(CaretRightOutlined).withConfig({
11
+ displayName: "ExpandedIcon",
12
+ componentId: "basic-component-347b__sc-tzoomn-0"
13
+ })(["transition:transform 0.5s;display:block;user-select:none;", ";font-size:var(--kep-platform-font-size-sm);&:hover{color:var(--kep-platform-color-primary);}"], function (props) {
14
+ if (props.expanded) {
15
+ return css(["transform:rotate(90deg);"]);
16
+ }
17
+ });
18
+ var TreeNode = styled(ListItem).withConfig({
19
+ displayName: "TreeNode",
20
+ componentId: "basic-component-347b__sc-tzoomn-1"
21
+ })(["", " & ", ",& ", "{background-color:var(--kep-platform-color-bg-base);}&:hover{background-color:var(--kep-platform-color-bg-hover);& ", ",& ", "{background-color:var(--kep-platform-color-bg-hover);}& ", "{overflow-x:auto;& > ", "{width:auto;}}}", ""], function (props) {
22
+ if (props.width) {
23
+ return css(["width:", "px;"], props.width);
24
+ }
25
+ }, Column, MainArea, Column, MainArea, MainArea, Flex, function (props) {
26
+ if (props.selected) {
27
+ return css(["background-color:var(--kep-platform-color-bg-active) !important;color:var(--kep-platform-color-text-active) !important;& ", ",& ", "{background-color:var(--kep-platform-color-bg-active) !important;color:var(--kep-platform-color-text-active) !important;}& ", "{overflow-x:auto;& > ", "{width:auto;}}"], Column, MainArea, MainArea, Flex);
28
+ }
29
+ });
30
+ export var TreeNodeController = function TreeNodeController(_ref) {
31
+ var node = _ref.node,
32
+ _ref$selectedKeys = _ref.selectedKeys,
33
+ selectedKeys = _ref$selectedKeys === void 0 ? [] : _ref$selectedKeys,
34
+ width = _ref.width,
35
+ isTableMode = _ref.isTableMode,
36
+ fieldNames = _ref.fieldNames,
37
+ columns = _ref.columns,
38
+ isFlex = _ref.isFlex,
39
+ onSelect = _ref.onSelect,
40
+ multiple = _ref.multiple,
41
+ level = _ref.level,
42
+ mainWidth = _ref.mainWidth,
43
+ expandedKeys = _ref.expandedKeys,
44
+ onExpand = _ref.onExpand,
45
+ contextMenuRender = _ref.contextMenuRender;
46
+ /* 处理子节点缩进 */
47
+ var childLevel = useMemo(function () {
48
+ return level + 1;
49
+ }, [level]);
50
+ var selected = useMemo(function () {
51
+ return selectedKeys.includes(node[fieldNames.key]);
52
+ }, [selectedKeys, fieldNames, node]);
53
+ var expanded = useMemo(function () {
54
+ return expandedKeys.includes(node[fieldNames.key]);
55
+ }, [expandedKeys, fieldNames, node]);
56
+ var onClickNodeHandler = useCallback(function (e) {
57
+ if (multiple) {
58
+ if (selected) {
59
+ onSelect(selectedKeys.filter(function (key) {
60
+ return key !== node[fieldNames.key];
61
+ }), {
62
+ nativeEvent: e,
63
+ node: node,
64
+ selected: !selected
65
+ });
66
+ } else {
67
+ onSelect(selectedKeys.concat([node[fieldNames.key]]), {
68
+ nativeEvent: e,
69
+ node: node,
70
+ selected: !selected
71
+ });
72
+ }
73
+ } else {
74
+ onSelect(selected ? [] : [node[fieldNames.key]], {
75
+ nativeEvent: e,
76
+ node: node,
77
+ selected: !selected
78
+ });
79
+ }
80
+ }, [onSelect, selectedKeys, multiple, selected]);
81
+ var onClickExpandIconhandler = useCallback(function (e) {
82
+ if (expanded) {
83
+ onExpand(expandedKeys.filter(function (key) {
84
+ return key !== node[fieldNames.key];
85
+ }), {
86
+ nativeEvent: e,
87
+ node: node,
88
+ expanded: !expanded
89
+ });
90
+ } else {
91
+ onExpand(expandedKeys.concat([node[fieldNames.key]]), {
92
+ nativeEvent: e,
93
+ node: node,
94
+ expanded: !expanded
95
+ });
96
+ }
97
+ }, [expandedKeys, onExpand, expanded]);
98
+ var treeNode = /*#__PURE__*/React.createElement(TreeNode, {
99
+ selected: selectedKeys.includes(node[fieldNames.key]),
100
+ width: width,
101
+ onClick: onClickNodeHandler
102
+ }, /*#__PURE__*/React.createElement(MainProperty, {
103
+ isFlex: isFlex,
104
+ mainWidth: mainWidth,
105
+ main: /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(FlexItem, null, /*#__PURE__*/React.createElement(Indent, {
106
+ level: level
107
+ })), /*#__PURE__*/React.createElement(FlexItem, {
108
+ width: 24,
109
+ align: "center",
110
+ cursor: "pointer",
111
+ onClick: onClickExpandIconhandler
112
+ }, /*#__PURE__*/React.createElement(ExpandedIcon, {
113
+ expanded: expanded
114
+ })), /*#__PURE__*/React.createElement(FlexItem, {
115
+ flex: 1
116
+ }, node[fieldNames.title])),
117
+ property: isTableMode && /*#__PURE__*/React.createElement(Columns, {
118
+ columns: columns,
119
+ leftBase: mainWidth,
120
+ rowData: node,
121
+ isFlex: isFlex
122
+ })
123
+ }));
124
+ return /*#__PURE__*/React.createElement(React.Fragment, null, contextMenuRender && /*#__PURE__*/React.createElement(Menu.Popup, {
125
+ trigger: "contextmenu",
126
+ items: contextMenuRender(node)
127
+ }, treeNode), !contextMenuRender && treeNode, expanded && node.children.map(function (childNode) {
128
+ return /*#__PURE__*/React.createElement(TreeNodeController, {
129
+ width: width,
130
+ selectedKeys: selectedKeys,
131
+ key: childNode[fieldNames.key],
132
+ node: childNode,
133
+ fieldNames: fieldNames,
134
+ isFlex: isFlex,
135
+ isTableMode: isTableMode,
136
+ columns: columns,
137
+ onSelect: onSelect,
138
+ multiple: multiple,
139
+ level: childLevel,
140
+ mainWidth: mainWidth,
141
+ onExpand: onExpand,
142
+ expandedKeys: expandedKeys,
143
+ contextMenuRender: contextMenuRender
144
+ });
145
+ }));
146
+ };
147
+ export { MainProperty };
@@ -0,0 +1,3 @@
1
+ export * from './MainProperties';
2
+ export { default as Tree, type TreeProps } from './Tree';
3
+ export * from './TreeNode';
@@ -0,0 +1,3 @@
1
+ export * from "./MainProperties";
2
+ export { default as Tree } from "./Tree";
3
+ export * from "./TreeNode";
@@ -0,0 +1,81 @@
1
+ export declare const presetColors: {
2
+ magenta: {
3
+ color: string;
4
+ backgroundColor: string;
5
+ border: string;
6
+ };
7
+ red: {
8
+ color: string;
9
+ backgroundColor: string;
10
+ border: string;
11
+ };
12
+ volcano: {
13
+ color: string;
14
+ backgroundColor: string;
15
+ border: string;
16
+ };
17
+ orange: {
18
+ color: string;
19
+ backgroundColor: string;
20
+ border: string;
21
+ };
22
+ gold: {
23
+ color: string;
24
+ backgroundColor: string;
25
+ border: string;
26
+ };
27
+ green: {
28
+ color: string;
29
+ backgroundColor: string;
30
+ border: string;
31
+ };
32
+ blue: {
33
+ color: string;
34
+ backgroundColor: string;
35
+ border: string;
36
+ };
37
+ purple: {
38
+ color: string;
39
+ backgroundColor: string;
40
+ border: string;
41
+ };
42
+ };
43
+ declare const _default: {
44
+ primaryColor: string;
45
+ lightenPrimaryColor: string;
46
+ secondaryColor: string;
47
+ dangerColor: string;
48
+ lightenDangerColor: string;
49
+ backgroundColor: string;
50
+ paddingXS: string;
51
+ paddingSM: string;
52
+ padding: string;
53
+ paddingLG: string;
54
+ paddingXL: string;
55
+ gapXS: string;
56
+ gapSM: string;
57
+ gap: string;
58
+ gapLG: string;
59
+ marginXS: string;
60
+ marginSM: string;
61
+ margin: string;
62
+ marginLG: string;
63
+ marginXL: string;
64
+ fontSize: string;
65
+ fontSizeSM: string;
66
+ fontSizeLG: string;
67
+ color: string;
68
+ fontWeight: number;
69
+ fontWeightBold: number;
70
+ fontWeightBolder: number;
71
+ fontWeightLight: number;
72
+ fontWeightLighter: number;
73
+ borderRadiusSM: string;
74
+ borderRadius: string;
75
+ borderRadiusLG: string;
76
+ borderWidth: string;
77
+ borderColor: string;
78
+ defaultTagColor: string;
79
+ defaultTagBackgroundColor: string;
80
+ };
81
+ export default _default;
@@ -0,0 +1,88 @@
1
+ import Color from 'color';
2
+ export var presetColors = {
3
+ magenta: {
4
+ color: '#c41d7f',
5
+ backgroundColor: '#fff0f6',
6
+ border: '#ffadd2'
7
+ },
8
+ red: {
9
+ color: '#cf1322',
10
+ backgroundColor: '#fff1f0',
11
+ border: '#ffa39e'
12
+ },
13
+ volcano: {
14
+ color: '#d4380d',
15
+ backgroundColor: '#fff2e8',
16
+ border: '#ffbb96'
17
+ },
18
+ orange: {
19
+ color: '#d46b08',
20
+ backgroundColor: '#fff7e6',
21
+ border: '#ffd591'
22
+ },
23
+ gold: {
24
+ color: '#d48806',
25
+ backgroundColor: '#fffbe6',
26
+ border: '#ffe58f'
27
+ },
28
+ green: {
29
+ color: '#d48806',
30
+ backgroundColor: '#fffbe6',
31
+ border: '#ffe58f'
32
+ },
33
+ blue: {
34
+ color: '#d48806',
35
+ backgroundColor: '#fffbe6',
36
+ border: '#ffe58f'
37
+ },
38
+ purple: {
39
+ color: '#389e0d',
40
+ backgroundColor: '#f6ffed',
41
+ border: '#b7eb8f'
42
+ }
43
+ };
44
+ export default {
45
+ /* color */
46
+ primaryColor: '#1890ff',
47
+ lightenPrimaryColor: Color('#1890ff55').lighten(0.5).hex(),
48
+ secondaryColor: '#cccccc',
49
+ dangerColor: '#ff0000',
50
+ lightenDangerColor: Color('#f005').lighten(0.5).hex(),
51
+ backgroundColor: '#ffffff',
52
+ /* padding */
53
+ paddingXS: '0',
54
+ paddingSM: '0.25rem',
55
+ padding: '0.4rem',
56
+ paddingLG: '1rem',
57
+ paddingXL: '2rem',
58
+ /* gap */
59
+ gapXS: '1px',
60
+ gapSM: '2px',
61
+ gap: '4px',
62
+ gapLG: '8px',
63
+ /* margin */
64
+ marginXS: '0.25rem',
65
+ marginSM: '0.5rem',
66
+ margin: '1rem',
67
+ marginLG: '2rem',
68
+ marginXL: '4rem',
69
+ /* font */
70
+ fontSize: '1rem',
71
+ fontSizeSM: '0.75rem',
72
+ fontSizeLG: '1.5rem',
73
+ color: '#333333',
74
+ fontWeight: 400,
75
+ fontWeightBold: 500,
76
+ fontWeightBolder: 600,
77
+ fontWeightLight: 300,
78
+ fontWeightLighter: 200,
79
+ /* border */
80
+ borderRadiusSM: '0.2rem',
81
+ borderRadius: '0.4rem',
82
+ borderRadiusLG: '0.6rem',
83
+ borderWidth: '1px',
84
+ borderColor: '#ccc',
85
+ /* Tag */
86
+ defaultTagColor: 'rgba(0, 0, 0, 0.88)',
87
+ defaultTagBackgroundColor: '#fafafa'
88
+ };
@@ -0,0 +1 @@
1
+ export declare const lengthUnits: string[];
@@ -0,0 +1 @@
1
+ export var lengthUnits = ['px', 'em', 'rem', '%', 'vw', 'vh', 'vmin', 'vmax', 'cm', 'mm', 'in', 'pt', 'pc'];
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { type RuleSet } from 'styled-components';
3
+ declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & {
4
+ $css: RuleSet<object>;
5
+ }>;
6
+ export default GlobalStyles;
@@ -0,0 +1,6 @@
1
+ // GlobalStyles.js
2
+ import { createGlobalStyle } from 'styled-components';
3
+ var GlobalStyles = createGlobalStyle([":root{--kep-platform-black:#000000;--kep-platform-blue:#1677ff;--kep-platform-purple:#722ED1;--kep-platform-cyan:#13C2C2;--kep-platform-green:#52C41A;--kep-platform-magenta:#EB2F96;--kep-platform-pink:#eb2f96;--kep-platform-red:#F5222D;--kep-platform-orange:#FA8C16;--kep-platform-yellow:#FADB14;--kep-platform-volcano:#FA541C;--kep-platform-geekblue:#2F54EB;--kep-platform-gold:#FAAD14;--kep-platform-lime:#A0D911;--kep-platform-color-primary:#1677ff;--kep-platform-color-success:#52c41a;--kep-platform-color-warning:#faad14;--kep-platform-color-error:#ff4d4f;--kep-platform-color-info:#1677ff;--kep-platform-color-link:#1677ff;--kep-platform-color-text-base:#000;--kep-platform-color-bg-base:#fff;--kep-platform-blue-1:#e6f4ff;--kep-platform-blue-2:#bae0ff;--kep-platform-blue-3:#91caff;--kep-platform-blue-4:#69b1ff;--kep-platform-blue-5:#4096ff;--kep-platform-blue-6:#1677ff;--kep-platform-blue-7:#0958d9;--kep-platform-blue-8:#003eb3;--kep-platform-blue-9:#002c8c;--kep-platform-blue-10:#001d66;--kep-platform-purple-1:#f9f0ff;--kep-platform-purple-2:#efdbff;--kep-platform-purple-3:#d3adf7;--kep-platform-purple-4:#b37feb;--kep-platform-purple-5:#9254de;--kep-platform-purple-6:#722ed1;--kep-platform-purple-7:#531dab;--kep-platform-purple-8:#391085;--kep-platform-purple-9:#22075e;--kep-platform-purple-10:#120338;--kep-platform-cyan-1:#e6fffb;--kep-platform-cyan-2:#b5f5ec;--kep-platform-cyan-3:#87e8de;--kep-platform-cyan-4:#5cdbd3;--kep-platform-cyan-5:#36cfc9;--kep-platform-cyan-6:#13c2c2;--kep-platform-cyan-7:#08979c;--kep-platform-cyan-8:#006d75;--kep-platform-cyan-9:#00474f;--kep-platform-cyan-10:#002329;--kep-platform-green-1:#f6ffed;--kep-platform-green-2:#d9f7be;--kep-platform-green-3:#b7eb8f;--kep-platform-green-4:#95de64;--kep-platform-green-5:#73d13d;--kep-platform-green-6:#52c41a;--kep-platform-green-7:#389e0d;--kep-platform-green-8:#237804;--kep-platform-green-9:#135200;--kep-platform-green-10:#092b00;--kep-platform-magenta-1:#fff0f6;--kep-platform-magenta-2:#ffd6e7;--kep-platform-magenta-3:#ffadd2;--kep-platform-magenta-4:#ff85c0;--kep-platform-magenta-5:#f759ab;--kep-platform-magenta-6:#eb2f96;--kep-platform-magenta-7:#c41d7f;--kep-platform-magenta-8:#9e1068;--kep-platform-magenta-9:#780650;--kep-platform-magenta-10:#520339;--kep-platform-pink-1:#fff0f6;--kep-platform-pink-2:#ffd6e7;--kep-platform-pink-3:#ffadd2;--kep-platform-pink-4:#ff85c0;--kep-platform-pink-5:#f759ab;--kep-platform-pink-6:#eb2f96;--kep-platform-pink-7:#c41d7f;--kep-platform-pink-8:#9e1068;--kep-platform-pink-9:#780650;--kep-platform-pink-10:#520339;--kep-platform-red-1:#fff1f0;--kep-platform-red-2:#ffccc7;--kep-platform-red-3:#ffa39e;--kep-platform-red-4:#ff7875;--kep-platform-red-5:#ff4d4f;--kep-platform-red-6:#f5222d;--kep-platform-red-7:#cf1322;--kep-platform-red-8:#a8071a;--kep-platform-red-9:#820014;--kep-platform-red-10:#5c0011;--kep-platform-orange-1:#fff7e6;--kep-platform-orange-2:#ffe7ba;--kep-platform-orange-3:#ffd591;--kep-platform-orange-4:#ffc069;--kep-platform-orange-5:#ffa940;--kep-platform-orange-6:#fa8c16;--kep-platform-orange-7:#d46b08;--kep-platform-orange-8:#ad4e00;--kep-platform-orange-9:#873800;--kep-platform-orange-10:#612500;--kep-platform-yellow-1:#feffe6;--kep-platform-yellow-2:#ffffb8;--kep-platform-yellow-3:#fffb8f;--kep-platform-yellow-4:#fff566;--kep-platform-yellow-5:#ffec3d;--kep-platform-yellow-6:#fadb14;--kep-platform-yellow-7:#d4b106;--kep-platform-yellow-8:#ad8b00;--kep-platform-yellow-9:#876800;--kep-platform-yellow-10:#614700;--kep-platform-volcano-1:#fff2e8;--kep-platform-volcano-2:#ffd8bf;--kep-platform-volcano-3:#ffbb96;--kep-platform-volcano-4:#ff9c6e;--kep-platform-volcano-5:#ff7a45;--kep-platform-volcano-6:#fa541c;--kep-platform-volcano-7:#d4380d;--kep-platform-volcano-8:#ad2102;--kep-platform-volcano-9:#871400;--kep-platform-volcano-10:#610b00;--kep-platform-geekblue-1:#f0f5ff;--kep-platform-geekblue-2:#d6e4ff;--kep-platform-geekblue-3:#adc6ff;--kep-platform-geekblue-4:#85a5ff;--kep-platform-geekblue-5:#597ef7;--kep-platform-geekblue-6:#2f54eb;--kep-platform-geekblue-7:#1d39c4;--kep-platform-geekblue-8:#10239e;--kep-platform-geekblue-9:#061178;--kep-platform-geekblue-10:#030852;--kep-platform-gold-1:#fffbe6;--kep-platform-gold-2:#fff1b8;--kep-platform-gold-3:#ffe58f;--kep-platform-gold-4:#ffd666;--kep-platform-gold-5:#ffc53d;--kep-platform-gold-6:#faad14;--kep-platform-gold-7:#d48806;--kep-platform-gold-8:#ad6800;--kep-platform-gold-9:#874d00;--kep-platform-gold-10:#613400;--kep-platform-lime-1:#fcffe6;--kep-platform-lime-2:#f4ffb8;--kep-platform-lime-3:#eaff8f;--kep-platform-lime-4:#d3f261;--kep-platform-lime-5:#bae637;--kep-platform-lime-6:#a0d911;--kep-platform-lime-7:#7cb305;--kep-platform-lime-8:#5b8c00;--kep-platform-lime-9:#3f6600;--kep-platform-lime-10:#254000;--kep-platform-color-text:rgba(0,0,0,0.88);--kep-platform-color-text-active:var(--kep-platform-blue-6);--kep-platform-color-text-secondary:rgba(0,0,0,0.65);--kep-platform-color-text-tertiary:rgba(0,0,0,0.45);--kep-platform-color-text-quaternary:rgba(0,0,0,0.25);--kep-platform-color-fill:rgba(0,0,0,0.15);--kep-platform-color-fill-secondary:rgba(0,0,0,0.06);--kep-platform-color-fill-tertiary:rgba(0,0,0,0.04);--kep-platform-color-fill-quaternary:rgba(0,0,0,0.02);--kep-platform-color-bg-hover:#f7f7f7;--kep-platform-color-bg-layout:#f5f5f5;--kep-platform-color-bg-container:#ffffff;--kep-platform-color-bg-elevated:#ffffff;--kep-platform-color-bg-spotlight:rgba(0,0,0,0.85);--kep-platform-color-bg-blur:transparent;--kep-platform-color-border:#e4e9ec;--kep-platform-color-border-secondary:#f0f0f0;--kep-platform-color-primary-bg:#e6f4ff;--kep-platform-color-primary-bg-hover:#bae0ff;--kep-platform-color-primary-border:#91caff;--kep-platform-color-primary-border-hover:#69b1ff;--kep-platform-color-primary-hover:#4096ff;--kep-platform-color-primary-active:#0958d9;--kep-platform-color-primary-text-hover:#4096ff;--kep-platform-color-primary-text:#1677ff;--kep-platform-color-primary-text-active:#0958d9;--kep-platform-color-success-bg:#f6ffed;--kep-platform-color-success-bg-hover:#d9f7be;--kep-platform-color-success-border:#b7eb8f;--kep-platform-color-success-border-hover:#95de64;--kep-platform-color-success-hover:#95de64;--kep-platform-color-success-active:#389e0d;--kep-platform-color-success-text-hover:#73d13d;--kep-platform-color-success-text:#52c41a;--kep-platform-color-success-text-active:#389e0d;--kep-platform-color-error-bg:#fff2f0;--kep-platform-color-error-bg-hover:#fff1f0;--kep-platform-color-error-bg-active:#ffccc7;--kep-platform-color-error-border:#ffccc7;--kep-platform-color-error-border-hover:#ffa39e;--kep-platform-color-error-hover:#ff7875;--kep-platform-color-error-active:#d9363e;--kep-platform-color-error-text-hover:#ff7875;--kep-platform-color-error-text:#ff4d4f;--kep-platform-color-error-text-active:#d9363e;--kep-platform-color-warning-bg:#fffbe6;--kep-platform-color-warning-bg-hover:#fff1b8;--kep-platform-color-warning-border:#ffe58f;--kep-platform-color-warning-border-hover:#ffd666;--kep-platform-color-warning-hover:#ffd666;--kep-platform-color-warning-active:#d48806;--kep-platform-color-warning-text-hover:#ffc53d;--kep-platform-color-warning-text:#faad14;--kep-platform-color-warning-text-active:#d48806;--kep-platform-color-info-bg:#e6f4ff;--kep-platform-color-info-bg-hover:#bae0ff;--kep-platform-color-info-border:#91caff;--kep-platform-color-info-border-hover:#69b1ff;--kep-platform-color-info-hover:#69b1ff;--kep-platform-color-info-active:#0958d9;--kep-platform-color-info-text-hover:#4096ff;--kep-platform-color-info-text:#1677ff;--kep-platform-color-info-text-active:#0958d9;--kep-platform-color-link-hover:#69b1ff;--kep-platform-color-link-active:#0958d9;--kep-platform-color-bg-mask:rgba(0,0,0,0.45);--kep-platform-color-white:#fff;--kep-platform-color-fill-content:rgba(0,0,0,0.06);--kep-platform-color-fill-content-hover:rgba(0,0,0,0.15);--kep-platform-color-fill-alter:rgba(0,0,0,0.02);--kep-platform-color-bg-container-disabled:rgba(0,0,0,0.04);--kep-platform-color-border-bg:#ffffff;--kep-platform-color-scrollbar-thumb:var(--kep-platform-color-border);--kep-platform-color-scrollbar-thumb-hover:var(--kep-platform-color-primary-hover);--kep-platform-color-split:rgba(5,5,5,0.06);--kep-platform-color-table-border:#f0f0f0;--kep-platform-color-text-placeholder:rgba(0,0,0,0.25);--kep-platform-color-text-disabled:rgba(0,0,0,0.25);--kep-platform-color-text-heading:rgba(0,0,0,0.88);--kep-platform-color-text-label:rgba(0,0,0,0.65);--kep-platform-color-text-description:rgba(0,0,0,0.45);--kep-platform-color-text-light-solid:#fff;--kep-platform-color-highlight:#ff4d4f;--kep-platform-color-bg-text-hover:rgba(0,0,0,0.06);--kep-platform-color-bg-text-active:rgba(0,0,0,0.15);--kep-platform-color-icon:rgba(0,0,0,0.45);--kep-platform-color-icon-hover:rgba(0,0,0,0.88);--kep-platform-color-error-outline:rgba(255,38,5,0.06);--kep-platform-color-warning-outline:rgba(255,215,5,0.1);--kep-platform-control-item-bg-hover:rgba(0,0,0,0.04);--kep-platform-control-item-bg-active:#e6f4ff;--kep-platform-control-item-bg-active-hover:#bae0ff;--kep-platform-control-item-bg-active-disabled:rgba(0,0,0,0.15);--kep-platform-control-tmp-outline:rgba(0,0,0,0.02);--kep-platform-control-outline:rgba(5,145,255,0.1);--kep-platform-box-shadow:0 6px 16px 0 rgba(0,0,0,0.08),0 3px 6px -4px rgba(0,0,0,0.12),0 9px 28px 8px rgba(0,0,0,0.05);--kep-platform-box-shadow-inset:inset 10px 0 8px -8px rgba(0,0,0,0.08);--kep-platform-box-shadow-secondary:0 6px 16px 0 rgba(0,0,0,0.08),0 3px 6px -4px rgba(0,0,0,0.12),0 9px 28px 8px rgba(0,0,0,0.05);--kep-platform-box-shadow-tertiary:0 1px 2px 0 rgba(0,0,0,0.03),0 1px 6px -1px rgba(0,0,0,0.02),0 2px 4px 0 rgba(0,0,0,0.02);--kep-platform-box-shadow-popover-arrow:2px 2px 5px rgba(0,0,0,0.05);--kep-platform-box-shadow-card:0 1px 2px -2px rgba(0,0,0,0.16),0 3px 6px 0 rgba(0,0,0,0.12),0 5px 12px 4px rgba(0,0,0,0.09);--kep-platform-box-shadow-drawer-right:-6px 0 16px 0 rgba(0,0,0,0.08),-3px 0 6px -4px rgba(0,0,0,0.12),-9px 0 28px 8px rgba(0,0,0,0.05);--kep-platform-box-shadow-drawer-left:6px 0 16px 0 rgba(0,0,0,0.08),3px 0 6px -4px rgba(0,0,0,0.12),9px 0 28px 8px rgba(0,0,0,0.05);--kep-platform-box-shadow-drawer-up:0 6px 16px 0 rgba(0,0,0,0.08),0 3px 6px -4px rgba(0,0,0,0.12),0 9px 28px 8px rgba(0,0,0,0.05);--kep-platform-box-shadow-drawer-down:0 -6px 16px 0 rgba(0,0,0,0.08),0 -3px 6px -4px rgba(0,0,0,0.12),0 -9px 28px 8px rgba(0,0,0,0.05);--kep-platform-color-tree-node-hover:#fafafa;--kep-platform-color-bg-active:#e6f4ff;--kep-platform-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0,0,0,0.08);--kep-platform-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0,0,0,0.08);--kep-platform-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0,0,0,0.08);--kep-platform-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0,0,0,0.08);--kep-platform-header-bg:#fafafa;--kep-platform-color-scrollbar-track:#fafafa;--kep-platform-motion-ease-out-circ:cubic-bezier(0.08,0.82,0.17,1);--kep-platform-motion-ease-in-out-circ:cubic-bezier(0.78,0.14,0.15,0.86);--kep-platform-motion-ease-out:cubic-bezier(0.215,0.61,0.355,1);--kep-platform-motion-ease-in-out:cubic-bezier(0.645,0.045,0.355,1);--kep-platform-motion-ease-out-back:cubic-bezier(0.12,0.4,0.29,1.46);--kep-platform-motion-ease-in-back:cubic-bezier(0.71,-0.46,0.88,0.6);--kep-platform-motion-ease-in-quint:cubic-bezier(0.755,0.05,0.855,0.06);--kep-platform-motion-ease-out-quint:cubic-bezier(0.23,1,0.32,1);--kep-platform-motion-duration-fast:0.1s;--kep-platform-motion-duration-mid:0.2s;--kep-platform-motion-duration-slow:0.3s;--kep-platform-font-size:16px;--kep-platform-font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';--kep-platform-font-family-code:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace;--kep-platform-font-size-sm:14px;--kep-platform-font-size-lg:18px;--kep-platform-font-size-xl:20px;--kep-platform-font-size-heading-1:38px;--kep-platform-font-size-heading-2:30px;--kep-platform-font-size-heading-3:24px;--kep-platform-font-size-heading-4:20px;--kep-platform-font-size-heading-5:16px;--kep-platform-font-height:22px;--kep-platform-font-height-lg:24px;--kep-platform-font-height-sm:20px;--kep-platform-font-weight-base:400;--kep-platform-font-weight-strong:600;--kep-platform-link-decoration:none;--kep-platform-link-hover-decoration:none;--kep-platform-link-focus-decoration:none;--kep-platform-line-width:1px;--kep-platform-line-type:solid;--kep-platform-line-height:1.5714285714285714;--kep-platform-line-height-lg:1.5;--kep-platform-line-height-sm:1.6666666666666667;--kep-platform-line-height-heading-1:1.2105263157894737;--kep-platform-line-height-heading-2:1.2666666666666666;--kep-platform-line-height-heading-3:1.3333333333333333;--kep-platform-line-height-heading-4:1.4;--kep-platform-line-height-heading-5:1.5;--kep-platform-line-width-bold:2px;--kep-platform-font-size-icon:12px;--kep-platform-font-size-code:12px;--kep-platform-text-align:left;--kep-platform-border-radius:6px;--kep-platform-border-radius-xs:2px;--kep-platform-border-radius-sm:4px;--kep-platform-border-radius-lg:8px;--kep-platform-border-radius-outer:4px;--kep-platform-z-index-base:0;--kep-platform-z-index-popup-base:1000;--kep-platform-z-index-fixed:10;--kep-platform-opacity-loading:0.65;--kep-platform-control-padding-horizontal:12px;--kep-platform-control-padding-horizontal-sm:8px;--kep-platform-padding-xxs:4px;--kep-platform-padding-xs:8px;--kep-platform-padding-sm:12px;--kep-platform-padding:16px;--kep-platform-padding-md:20px;--kep-platform-padding-lg:24px;--kep-platform-padding-xl:32px;--kep-platform-padding-block-sm:0;--kep-platform-padding-block:4px;--kep-platform-padding-block-lg:7px;--kep-platform-padding-inline-sm:7px;--kep-platform-padding-inline:15px;--kep-platform-padding-inline-lg:15px;--kep-platform-padding-content-horizontal-lg:24px;--kep-platform-padding-content-vertical-lg:16px;--kep-platform-padding-content-horizontal:16px;--kep-platform-padding-content-vertical:12px;--kep-platform-padding-content-horizontal-sm:16px;--kep-platform-padding-content-vertical-sm:8px;--kep-platform-margin-xxxs:2px;--kep-platform-margin-xxs:4px;--kep-platform-margin-xs:8px;--kep-platform-margin-sm:12px;--kep-platform-margin:16px;--kep-platform-margin-md:20px;--kep-platform-margin-lg:24px;--kep-platform-margin-xl:32px;--kep-platform-margin-xxl:48px;--kep-platform-width-scrollbar:8px;--kep-platform-height-scrollbar:8px;--kep-platform-menu-item-height:40px;--kep-platform-menu-item-line-height:40px;}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:var(--kep-platform-font-family);font-size:var(--kep-platform-font-size);font-weight:var(--kep-platform-font-weight-base);line-height:var(--kep-platform-line-height);color:var(--kep-platform-color-text);text-align:var(--kep-platform-text-align);background-color:var(--kep-platform-color-bg-base);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:var(--kep-platform-black);}[tabindex='-1']:focus:not(:focus-visible){outline:0 !important;}hr{margin:--kep-platform-margin-sm 0;height:var(--kep-platform-line-width);color:var(--kep-platform-color-border);background-color:currentColor;border:0;}hr:not([size]){height:var(--kep-platform-line-width);}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0;font-family:var(--kep-platform-font-family);font-style:var(--kep-platform-link-decoration);font-weight:var(--kep-platform-font-weight-strong);line-height:var(--kep-platform-line-height);color:var(--kep-platform-color-text-secondary);}h1{font-size:var(--kep-platform-font-size-heading-1);}h2{font-size:var(--kep-platform-font-size-heading-2);}h3{font-size:var(--kep-platform-font-size-heading-3);}h4{font-size:var(--kep-platform-font-size-heading-4);}h5{font-size:var(--kep-platform-font-size-heading-5);}h6{font-size:var(--kep-platform-font-size-heading-6);}p{margin-top:0;margin-bottom:0 !important;}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none;}address{margin-bottom:1rem;font-style:normal;line-height:inherit;}ol,ul{padding-left:0;list-style:none;}ol,ul,dl{margin-top:0;margin-bottom:0;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}dt{font-weight:var(--kep-platform-font-weight-base);}dd{margin-bottom:0.5rem;margin-left:0;}blockquote{margin:0 0 1rem;}b,strong{font-weight:var(--kep-platform-font-weight-strong);}small{font-size:var(--kep-platform-font-size-sm);}sub,sup{position:relative;font-size:var(--kep-platform-font-size-sm);line-height:0;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}a{color:var(--kep-platform-color-link);text-decoration:var(--kep-platform-link-decoration);cursor:pointer;&:hover{color:var(--kep-platform-color-link-hover);text-decoration:--kep-platform-link-hover-decoration}}pre,code,kbd,samp{font-family:var(--kep-platform-font-family-code);font-size:var(--kep-platform-font-size-code);}pre{display:block;margin-top:0;margin-bottom:var(--kep-platform-margin);overflow:auto;font-size:var(--kep-platform-font-size-code);color:var(--kep-platform-color-text-label);code{font-size:inherit;color:inherit;word-break:normal;}}code{font-size:var(--kep-platform-font-size-code);color:var(--kep-platform-color-text-quaternary);word-wrap:break-word;a > &{color:inherit;}}figure{margin:0 0 1rem;}img{vertical-align:middle;}svg{overflow:hidden;vertical-align:middle;}table{border-collapse:collapse;}caption{padding-top:0.5rem;padding-bottom:0.5rem;color:var(--kep-platform-color-text-secondary);text-align:left;caption-side:bottom;}th{text-align:inherit;}label{display:inline-block;margin-bottom:0.5rem;}button{border-radius:0;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button,input{overflow:visible;}button,select{text-transform:none;}select{word-wrap:normal;}[list]::-webkit-calendar-picker-indicator{display:none;}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{appearance:button;&:not(:disabled){cursor:pointer;}}button:focus{outline:none;}input:focus{outline:none;}::-moz-focus-inner{padding:0;border-style:none;}input[type='date'],input[type='time'],input[type='datetime-local'],input[type='month']{appearance:textfield;}::-webkit-scrollbar{width:var(--kep-platform-width-scrollbar);height:var(--kep-platform-height-scrollbar);}::-webkit-scrollbar-track{border-radius:var(--kep-platform-border-radius);background-color:var(--kep-platform-color-scrollbar-track);}::-webkit-scrollbar-thumb{background-color:var(--kep-platform-color-scrollbar-thumb);border-radius:var(--kep-platform-border-radius);}::-webkit-scrollbar-thumb:hover{background-color:var(--kep-platform-color-scrollbar-thumb-hover);}textarea{overflow:auto;resize:vertical;}fieldset{min-width:0;padding:0;margin:0;border:0;}legend{float:left;width:100%;padding:0;margin-bottom:var(--kep-platform-margin);font-size:var(--kep-platform-font-size);font-weight:var(--kep-platform-font-weight-base);line-height:inherit;color:inherit;white-space:normal;}mark{padding:var(--kep-platform-padding-sm);background-color:var(--kep-platform-padding-sm);}progress{vertical-align:baseline;}::-webkit-datetime-edit{overflow:visible;line-height:0;}[type='search']{outline-offset:-2px;appearance:textfield;}::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-color-swatch-wrapper{padding:0;}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button;}output{display:inline-block;}summary{display:list-item;cursor:pointer;}template{display:none;}main{display:block;}[hidden]{display:none !important;}", ""], function (props) {
4
+ return props.$css;
5
+ });
6
+ export default GlobalStyles;
@@ -0,0 +1 @@
1
+ export { default as GlobalStyles } from './GlobalStyles';
@@ -0,0 +1 @@
1
+ export { default as GlobalStyles } from "./GlobalStyles";