@befe/brick-comp-tabs 0.2.92
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/CHANGELOG.md +1155 -0
- package/README.md +3 -0
- package/es/index.css +3391 -0
- package/es/index.js +2 -0
- package/es/style.css +314 -0
- package/es/tab-pane.js +67 -0
- package/es/tabs-context.js +2 -0
- package/es/tabs.js +634 -0
- package/package.json +40 -0
- package/src/index.scss +6 -0
- package/src/index.tsx +2 -0
- package/src/style.scss +360 -0
- package/src/tab-pane.tsx +82 -0
- package/src/tabs-context.tsx +9 -0
- package/src/tabs.tsx +716 -0
- package/types/index.d.ts +2 -0
- package/types/tab-pane.d.ts +42 -0
- package/types/tabs-context.d.ts +6 -0
- package/types/tabs.d.ts +139 -0
package/es/index.js
ADDED
package/es/style.css
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
.brick-tabs,
|
|
2
|
+
.brick-tabs * {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
.brick-tabs {
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
.brick-tabs-container {
|
|
9
|
+
display: flex;
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 100%;
|
|
12
|
+
margin-bottom: 16px;
|
|
13
|
+
color: rgb(51, 51, 51);
|
|
14
|
+
}
|
|
15
|
+
.brick-tabs-container::after {
|
|
16
|
+
content: "";
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 100%;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
border-bottom: 1px solid rgb(224.4, 224.4, 224.4);
|
|
22
|
+
}
|
|
23
|
+
.brick-tabs-wrap {
|
|
24
|
+
position: relative;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
padding: 4px;
|
|
27
|
+
margin: -4px;
|
|
28
|
+
}
|
|
29
|
+
.brick-tabs-wrap ul {
|
|
30
|
+
display: inline-block;
|
|
31
|
+
padding: 0;
|
|
32
|
+
margin: 0;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
transition: transform 300ms cubic-bezier(0.19, 1, 0.22, 1);
|
|
35
|
+
}
|
|
36
|
+
.brick-tabs-tab {
|
|
37
|
+
display: inline-block;
|
|
38
|
+
position: relative;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
padding: 8px 16px;
|
|
41
|
+
list-style: none;
|
|
42
|
+
outline: none;
|
|
43
|
+
text-align: center;
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
border: 1px solid transparent;
|
|
46
|
+
}
|
|
47
|
+
.brick-tabs-tab-invisible {
|
|
48
|
+
visibility: hidden;
|
|
49
|
+
}
|
|
50
|
+
.brick-tabs-tab:focus-visible {
|
|
51
|
+
border-color: #4c84ff;
|
|
52
|
+
box-shadow: 0 0 0 2px rgb(219.3, 228.225, 255);
|
|
53
|
+
outline: none;
|
|
54
|
+
}
|
|
55
|
+
.brick-tabs-tab-active:not(.brick-tabs-tab-status-error) {
|
|
56
|
+
color: #4c84ff;
|
|
57
|
+
}
|
|
58
|
+
.brick-tabs-tab-disabled {
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
color: rgb(204, 204, 204);
|
|
61
|
+
}
|
|
62
|
+
.brick-tabs-tab-disabled:hover, .brick-tabs-tab-disabled:active {
|
|
63
|
+
color: rgb(204, 204, 204);
|
|
64
|
+
}
|
|
65
|
+
.brick-tabs-tab-disabled.brick-tabs-tab-active, .brick-tabs-tab-disabled.brick-tabs-tab-active:hover, .brick-tabs-tab-disabled.brick-tabs-tab-active:active {
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
color: rgb(183.6, 202.64, 255);
|
|
68
|
+
}
|
|
69
|
+
.brick-tabs-ellipsis {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
padding: 8px 8px;
|
|
72
|
+
}
|
|
73
|
+
.brick-tabs-ellipsis .brick-icon {
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
}
|
|
76
|
+
.brick-tabs-add {
|
|
77
|
+
display: inline-block;
|
|
78
|
+
padding-top: 11px;
|
|
79
|
+
padding-left: 11px;
|
|
80
|
+
padding-right: 11px;
|
|
81
|
+
line-height: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.brick-tabs-type-plain > .brick-tabs-container .brick-tabs-tab:not(.brick-tabs-tab-disabled):hover {
|
|
85
|
+
color: rgb(112.2, 155.04, 255);
|
|
86
|
+
}
|
|
87
|
+
.brick-tabs-type-plain > .brick-tabs-container .brick-tabs-tab:not(.brick-tabs-tab-disabled):active {
|
|
88
|
+
color: rgb(54.1875, 108.375, 216.75);
|
|
89
|
+
}
|
|
90
|
+
.brick-tabs-type-plain > .brick-tabs-container .brick-tabs-tab:not(.brick-tabs-tab-disabled):not(:active):focus-visible {
|
|
91
|
+
color: rgb(112.2, 155.04, 255);
|
|
92
|
+
}
|
|
93
|
+
.brick-tabs-type-plain > .brick-tabs-container .brick-tabs-tab-active {
|
|
94
|
+
border-bottom: 2px solid #4c84ff;
|
|
95
|
+
padding-bottom: 7px;
|
|
96
|
+
}
|
|
97
|
+
.brick-tabs-type-plain > .brick-tabs-container .brick-tabs-tab-active:focus-visible {
|
|
98
|
+
border-bottom-width: 2px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab,
|
|
102
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-ellipsis {
|
|
103
|
+
border: 1px solid rgb(224.4, 224.4, 224.4);
|
|
104
|
+
background-color: rgb(249.9, 249.9, 249.9);
|
|
105
|
+
}
|
|
106
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab {
|
|
107
|
+
padding-top: 8px;
|
|
108
|
+
}
|
|
109
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab + .brick-tabs-tab {
|
|
110
|
+
margin-left: -1px;
|
|
111
|
+
}
|
|
112
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab + .brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-active {
|
|
113
|
+
position: relative;
|
|
114
|
+
}
|
|
115
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab:hover {
|
|
116
|
+
background-color: rgb(244.8, 244.8, 244.8);
|
|
117
|
+
}
|
|
118
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab:focus-visible {
|
|
119
|
+
background-color: rgb(244.8, 244.8, 244.8);
|
|
120
|
+
border-color: #4c84ff;
|
|
121
|
+
}
|
|
122
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab:active {
|
|
123
|
+
background-color: rgb(237.15, 237.15, 237.15);
|
|
124
|
+
}
|
|
125
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab:first-child {
|
|
126
|
+
border-top-left-radius: 4px;
|
|
127
|
+
}
|
|
128
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab:last-child {
|
|
129
|
+
border-top-right-radius: 4px;
|
|
130
|
+
}
|
|
131
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-deletable {
|
|
132
|
+
padding-right: 0;
|
|
133
|
+
}
|
|
134
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-active {
|
|
135
|
+
border-top: 2px solid #4c84ff;
|
|
136
|
+
padding-top: 7px;
|
|
137
|
+
background-color: rgb(255, 255, 255);
|
|
138
|
+
border-bottom-color: rgb(255, 255, 255);
|
|
139
|
+
}
|
|
140
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-delete {
|
|
141
|
+
margin-left: 4px;
|
|
142
|
+
margin-right: -8px;
|
|
143
|
+
}
|
|
144
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-icon {
|
|
145
|
+
color: inherit;
|
|
146
|
+
margin-right: 4px;
|
|
147
|
+
}
|
|
148
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-error:not(.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled), .brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-error:not(.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled).brick-tab-active {
|
|
149
|
+
color: #e64552;
|
|
150
|
+
}
|
|
151
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-error:not(.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled):focus-visible, .brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-error:not(.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled).brick-tab-active:focus-visible {
|
|
152
|
+
border-color: #e64552;
|
|
153
|
+
}
|
|
154
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-error:not(.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled):focus-visible, .brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-error:not(.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled).brick-tab-active:focus-visible {
|
|
155
|
+
border-color: #e64552;
|
|
156
|
+
box-shadow: 0 0 0 2px rgb(255, 219.3, 219.895);
|
|
157
|
+
outline: none;
|
|
158
|
+
}
|
|
159
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-status-error:not(.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled) .brick-tabs-tab-status-icon {
|
|
160
|
+
color: currentColor;
|
|
161
|
+
}
|
|
162
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled {
|
|
163
|
+
background-color: rgb(249.9, 249.9, 249.9);
|
|
164
|
+
}
|
|
165
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-tab-disabled:hover {
|
|
166
|
+
background-color: rgb(249.9, 249.9, 249.9);
|
|
167
|
+
}
|
|
168
|
+
.brick-tabs-type-card > .brick-tabs-container .brick-tabs-ellipsis {
|
|
169
|
+
border-top-right-radius: 4px;
|
|
170
|
+
text-align: center;
|
|
171
|
+
}
|
|
172
|
+
.brick-tabs-type-card > .brick-tabs-container.brick-tabs-with-ellipsis .brick-tabs-wrap::after {
|
|
173
|
+
content: "";
|
|
174
|
+
position: absolute;
|
|
175
|
+
top: 0;
|
|
176
|
+
bottom: 0;
|
|
177
|
+
width: 36px;
|
|
178
|
+
pointer-events: none;
|
|
179
|
+
left: 0;
|
|
180
|
+
transform: translate(-100%);
|
|
181
|
+
box-shadow: inset -12px 0px 12px -12px rgba(0, 0, 0, 0.2);
|
|
182
|
+
}
|
|
183
|
+
.brick-tabs-type-card > .brick-tabs-container.brick-tabs-with-ellipsis .brick-tabs-wrap::after {
|
|
184
|
+
top: 4px;
|
|
185
|
+
bottom: 4px;
|
|
186
|
+
right: 0;
|
|
187
|
+
left: unset;
|
|
188
|
+
transform: unset;
|
|
189
|
+
}
|
|
190
|
+
.brick-tabs-type-card > .brick-tabs-container.brick-tabs-with-ellipsis .brick-tabs-tab:last-child {
|
|
191
|
+
border-radius: 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.brick-tabs-type-tag > .brick-tabs-container .brick-tabs-tab {
|
|
195
|
+
padding-top: 0;
|
|
196
|
+
padding-bottom: 0;
|
|
197
|
+
}
|
|
198
|
+
.brick-tabs-type-tag > .brick-tabs-container .brick-tabs-tab-active {
|
|
199
|
+
background-color: rgb(242.25, 245.225, 255);
|
|
200
|
+
}
|
|
201
|
+
.brick-tabs-type-tag > .brick-tabs-container .brick-tabs-tab:not(.brick-tabs-tab-disabled):hover {
|
|
202
|
+
color: rgb(112.2, 155.04, 255);
|
|
203
|
+
}
|
|
204
|
+
.brick-tabs-type-tag > .brick-tabs-container .brick-tabs-tab:not(.brick-tabs-tab-disabled):active {
|
|
205
|
+
color: rgb(54.1875, 108.375, 216.75);
|
|
206
|
+
}
|
|
207
|
+
.brick-tabs-type-tag > .brick-tabs-container .brick-tabs-tab:not(.brick-tabs-tab-disabled):not(:active):focus-visible {
|
|
208
|
+
color: rgb(112.2, 155.04, 255);
|
|
209
|
+
}
|
|
210
|
+
.brick-tabs-type-tag > .brick-tabs-container::after,
|
|
211
|
+
.brick-tabs-type-button-group-intensive > .brick-tabs-container::after,
|
|
212
|
+
.brick-tabs-type-button-group-important > .brick-tabs-container::after {
|
|
213
|
+
content: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.brick-tabs-size-sm {
|
|
217
|
+
font-size: 12px;
|
|
218
|
+
line-height: 18px;
|
|
219
|
+
}
|
|
220
|
+
.brick-tabs-size-sm .brick-tabs-tab {
|
|
221
|
+
min-width: 80px;
|
|
222
|
+
padding-left: 12px;
|
|
223
|
+
padding-right: 12px;
|
|
224
|
+
}
|
|
225
|
+
.brick-tabs-size-sm.brick-tabs-type-card .brick-tabs-add {
|
|
226
|
+
padding-top: 10px;
|
|
227
|
+
}
|
|
228
|
+
.brick-tabs-size-sm.brick-tabs-type-card .brick-tabs-ellipsis {
|
|
229
|
+
padding: 8px 11px;
|
|
230
|
+
}
|
|
231
|
+
.brick-tabs-size-sm.brick-tabs-type-card .brick-tabs-tab-delete {
|
|
232
|
+
margin-right: -4px;
|
|
233
|
+
}
|
|
234
|
+
.brick-tabs-size-sm.brick-tabs-type-tag .brick-tabs-wrap > ul {
|
|
235
|
+
line-height: 28px;
|
|
236
|
+
}
|
|
237
|
+
.brick-tabs-size-sm.brick-tabs-type-tag .brick-tabs-tab {
|
|
238
|
+
height: 28px;
|
|
239
|
+
min-width: 72px;
|
|
240
|
+
border-radius: 2px;
|
|
241
|
+
font-size: 12px;
|
|
242
|
+
}
|
|
243
|
+
.brick-tabs-size-sm.brick-tabs-type-tag .brick-tabs-tab + .brick-tabs-tab {
|
|
244
|
+
margin-left: 8px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.brick-tabs-size-md {
|
|
248
|
+
font-size: 14px;
|
|
249
|
+
line-height: 22px;
|
|
250
|
+
}
|
|
251
|
+
.brick-tabs-size-md .brick-tabs-tab {
|
|
252
|
+
min-width: 88px;
|
|
253
|
+
padding-left: 16px;
|
|
254
|
+
padding-right: 16px;
|
|
255
|
+
}
|
|
256
|
+
.brick-tabs-size-md.brick-tabs-type-card .brick-tabs-add {
|
|
257
|
+
padding-top: 11px;
|
|
258
|
+
}
|
|
259
|
+
.brick-tabs-size-md.brick-tabs-type-card .brick-tabs-ellipsis {
|
|
260
|
+
padding: 8px 13px;
|
|
261
|
+
}
|
|
262
|
+
.brick-tabs-size-md.brick-tabs-type-card .brick-tabs-tab-delete {
|
|
263
|
+
margin-right: -8px;
|
|
264
|
+
}
|
|
265
|
+
.brick-tabs-size-md.brick-tabs-type-tag .brick-tabs-wrap > ul {
|
|
266
|
+
line-height: 32px;
|
|
267
|
+
}
|
|
268
|
+
.brick-tabs-size-md.brick-tabs-type-tag .brick-tabs-tab {
|
|
269
|
+
height: 32px;
|
|
270
|
+
min-width: 88px;
|
|
271
|
+
border-radius: 4px;
|
|
272
|
+
font-size: 14px;
|
|
273
|
+
}
|
|
274
|
+
.brick-tabs-size-md.brick-tabs-type-tag .brick-tabs-tab + .brick-tabs-tab {
|
|
275
|
+
margin-left: 12px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.brick-tabs-ellipsis-dropdown-popper .brick-menu-item-content-inner .brick-tabs-tab-delete {
|
|
279
|
+
position: absolute;
|
|
280
|
+
display: inline-block;
|
|
281
|
+
top: 50%;
|
|
282
|
+
transform: translateY(-50%);
|
|
283
|
+
right: 12px;
|
|
284
|
+
}
|
|
285
|
+
.brick-tabs-ellipsis-dropdown-popper .brick-tabs-ellipsis-item-status-error.brick-menu-item:not(.brick-menu-item-selected, .brick-menu-item-disabled) > .brick-menu-item-content-in-cursor,
|
|
286
|
+
.brick-tabs-ellipsis-dropdown-popper .brick-tabs-ellipsis-item-status-error .brick-menu-item-content {
|
|
287
|
+
color: #e64552;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.brick-tabs-tab-pane-inactive {
|
|
291
|
+
display: none;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.brick-tabs {
|
|
295
|
+
z-index: 0;
|
|
296
|
+
}
|
|
297
|
+
.brick-tabs-container::after {
|
|
298
|
+
z-index: 0;
|
|
299
|
+
}
|
|
300
|
+
.brick-tabs-wrap {
|
|
301
|
+
z-index: 1;
|
|
302
|
+
}
|
|
303
|
+
.brick-tabs-ellipsis {
|
|
304
|
+
z-index: 2;
|
|
305
|
+
}
|
|
306
|
+
.brick-tabs-tab {
|
|
307
|
+
z-index: 0;
|
|
308
|
+
}
|
|
309
|
+
.brick-tabs-tab-active {
|
|
310
|
+
z-index: 1;
|
|
311
|
+
}
|
|
312
|
+
.brick-tabs-tab:focus-visible {
|
|
313
|
+
z-index: 2;
|
|
314
|
+
}
|
package/es/tab-pane.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
|
|
2
|
+
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
|
|
5
|
+
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
6
|
+
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
8
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
9
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
10
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
+
import { Component } from 'react';
|
|
13
|
+
// import * as PropTypes from 'prop-types'
|
|
14
|
+
import c from 'classnames';
|
|
15
|
+
import { isUndefined } from 'lodash-es';
|
|
16
|
+
import { TabsContext } from './tabs-context';
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
export var TabPane = /*#__PURE__*/function (_Component) {
|
|
19
|
+
_inherits(TabPane, _Component);
|
|
20
|
+
var _super = _createSuper(TabPane);
|
|
21
|
+
function TabPane() {
|
|
22
|
+
var _context;
|
|
23
|
+
var _this;
|
|
24
|
+
_classCallCheck(this, TabPane);
|
|
25
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
|
+
args[_key] = arguments[_key];
|
|
27
|
+
}
|
|
28
|
+
_this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "context", void 0);
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
_createClass(TabPane, [{
|
|
33
|
+
key: "className",
|
|
34
|
+
get: function get() {
|
|
35
|
+
var _ref = this.props,
|
|
36
|
+
className = _ref.className,
|
|
37
|
+
status = _ref.status;
|
|
38
|
+
return c('brick-tabs-tab-pane', "brick-tabs-tab-pane-".concat(this.isActive ? 'active' : 'inactive'), "brick-tabs-tab-pane-status-".concat(status), className);
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
key: "isActive",
|
|
42
|
+
get: function get() {
|
|
43
|
+
var activeId = this.context.activeId;
|
|
44
|
+
var id = this.props.id;
|
|
45
|
+
if (isUndefined(id) || isUndefined(activeId) || activeId === null) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return id === activeId;
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
key: "render",
|
|
52
|
+
value: function render() {
|
|
53
|
+
return /*#__PURE__*/_jsx("div", {
|
|
54
|
+
className: this.className,
|
|
55
|
+
children: this.props.children
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}]);
|
|
59
|
+
return TabPane;
|
|
60
|
+
}(Component);
|
|
61
|
+
_defineProperty(TabPane, "displayName", 'TabPane');
|
|
62
|
+
// static propTypes = {}
|
|
63
|
+
_defineProperty(TabPane, "defaultProps", {
|
|
64
|
+
className: '',
|
|
65
|
+
status: 'normal'
|
|
66
|
+
});
|
|
67
|
+
_defineProperty(TabPane, "contextType", TabsContext);
|