@salutejs/plasma-core 1.226.1-next-sbcom.0 → 1.227.0-dev.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/__helpers/IconPlaceholder.js +6 -9
- package/__helpers/index.js +1 -1
- package/collectPackageInfo.js +4 -4
- package/components/Badge/Badge.js +30 -103
- package/components/Badge/index.js +1 -1
- package/components/Basebox/Basebox.js +33 -42
- package/components/Basebox/index.js +1 -1
- package/components/Button/Button.js +28 -67
- package/components/Button/Button.mixins.js +22 -76
- package/components/Button/Button.props.js +5 -5
- package/components/Button/createButton.js +14 -145
- package/components/Button/index.js +4 -4
- package/components/Card/Card.js +34 -162
- package/components/Card/CardBody.js +4 -4
- package/components/Card/CardContent.js +14 -23
- package/components/Card/CardMedia.js +20 -91
- package/components/Card/CardPrice.js +18 -60
- package/components/Card/CardTypography.js +43 -52
- package/components/Card/index.js +5 -5
- package/components/Carousel/Carousel.js +46 -64
- package/components/Carousel/CarouselItem.js +21 -93
- package/components/Carousel/hooks.js +62 -121
- package/components/Carousel/index.js +3 -3
- package/components/Carousel/utils.js +59 -73
- package/components/Fade/Fade.js +6 -9
- package/components/Fade/index.js +1 -1
- package/components/Field/Field.js +48 -63
- package/components/Field/Field.statuses.js +3 -3
- package/components/Field/index.js +2 -2
- package/components/Image/Image.js +34 -115
- package/components/Image/index.js +1 -1
- package/components/Input/Input.js +7 -7
- package/components/Input/Input.mixins.js +9 -12
- package/components/Input/index.js +1 -1
- package/components/ModalBase/ModalBase.js +22 -100
- package/components/ModalBase/ModalBaseContext.js +6 -9
- package/components/ModalBase/ModalOverlay.js +28 -111
- package/components/ModalBase/hooks.js +15 -43
- package/components/ModalBase/index.js +2 -2
- package/components/PaginationDots/PaginationDot.js +11 -17
- package/components/PaginationDots/PaginationDots.js +4 -7
- package/components/PaginationDots/index.js +3 -3
- package/components/PaginationDots/usePaginationDots.js +10 -11
- package/components/Popup/Popup.js +52 -205
- package/components/Popup/index.js +1 -1
- package/components/PopupBase/PopupBase.js +35 -169
- package/components/PopupBase/PopupBaseContext.js +26 -86
- package/components/PopupBase/PopupBaseRoot.js +31 -169
- package/components/PopupBase/hooks.js +23 -97
- package/components/PopupBase/index.js +3 -3
- package/components/PopupBase/utils.js +32 -78
- package/components/Price/Price.js +15 -90
- package/components/Price/index.js +1 -1
- package/components/RadioGroup/RadioGroup.js +6 -127
- package/components/RadioGroup/index.js +1 -1
- package/components/SSRProvider/SSRProvider.js +4 -5
- package/components/SSRProvider/index.js +1 -1
- package/components/Skeleton/LineSkeleton.js +23 -95
- package/components/Skeleton/RectSkeleton.js +20 -93
- package/components/Skeleton/Skeleton.js +2 -2
- package/components/Skeleton/TextSkeleton.js +11 -55
- package/components/Skeleton/index.js +3 -3
- package/components/Slider/Double.js +52 -203
- package/components/Slider/Handle.js +28 -158
- package/components/Slider/Single.js +29 -177
- package/components/Slider/Slider.js +5 -7
- package/components/Slider/SliderBase.js +39 -48
- package/components/Slider/ThumbBase.js +19 -95
- package/components/Slider/index.js +3 -3
- package/components/Slider/utils.js +2 -2
- package/components/Spinner/Spinner.js +28 -100
- package/components/Spinner/SpinnerSvg.js +9 -78
- package/components/Spinner/index.js +1 -1
- package/components/Switch/Switch.js +49 -220
- package/components/Switch/index.js +1 -1
- package/components/Tabs/TabItem.js +33 -168
- package/components/Tabs/Tabs.js +32 -170
- package/components/Tabs/TabsContext.js +12 -42
- package/components/Tabs/createTabsController.js +33 -168
- package/components/Tabs/index.js +4 -4
- package/components/TextArea/TextArea.js +20 -30
- package/components/TextArea/index.js +1 -1
- package/components/TextField/index.js +3 -3
- package/components/Toast/Toast.js +15 -16
- package/components/Toast/ToastContext.js +4 -8
- package/components/Toast/ToastController.js +44 -101
- package/components/Toast/ToastProvider.js +37 -142
- package/components/Toast/index.js +3 -3
- package/components/Toast/useToast.js +6 -6
- package/components/Typography/Body.js +18 -18
- package/components/Typography/Button.js +13 -13
- package/components/Typography/Caption.js +8 -8
- package/components/Typography/Display.js +18 -18
- package/components/Typography/Footnote.js +13 -13
- package/components/Typography/Headline.js +43 -43
- package/components/Typography/Paragraph.js +24 -24
- package/components/Typography/Underline.js +8 -8
- package/es/__helpers/IconPlaceholder.js +5 -8
- package/es/collectPackageInfo.js +3 -3
- package/es/components/Badge/Badge.js +27 -100
- package/es/components/Basebox/Basebox.js +28 -37
- package/es/components/Button/Button.js +24 -63
- package/es/components/Button/Button.mixins.js +19 -73
- package/es/components/Button/Button.props.js +3 -3
- package/es/components/Button/createButton.js +12 -143
- package/es/components/Card/Card.js +29 -157
- package/es/components/Card/CardBody.js +2 -2
- package/es/components/Card/CardContent.js +12 -21
- package/es/components/Card/CardMedia.js +17 -88
- package/es/components/Card/CardPrice.js +13 -55
- package/es/components/Card/CardTypography.js +43 -52
- package/es/components/Carousel/Carousel.js +45 -63
- package/es/components/Carousel/CarouselItem.js +18 -90
- package/es/components/Carousel/hooks.js +58 -117
- package/es/components/Carousel/utils.js +58 -72
- package/es/components/Fade/Fade.js +5 -8
- package/es/components/Field/Field.js +44 -59
- package/es/components/Field/Field.statuses.js +4 -4
- package/es/components/Image/Image.js +31 -112
- package/es/components/Input/Input.js +4 -4
- package/es/components/Input/Input.mixins.js +6 -9
- package/es/components/ModalBase/ModalBase.js +16 -94
- package/es/components/ModalBase/ModalBaseContext.js +6 -9
- package/es/components/ModalBase/ModalOverlay.js +23 -106
- package/es/components/ModalBase/hooks.js +12 -40
- package/es/components/PaginationDots/PaginationDot.js +9 -15
- package/es/components/PaginationDots/PaginationDots.js +3 -6
- package/es/components/PaginationDots/usePaginationDots.js +9 -10
- package/es/components/Popup/Popup.js +48 -201
- package/es/components/PopupBase/PopupBase.js +27 -161
- package/es/components/PopupBase/PopupBaseContext.js +25 -85
- package/es/components/PopupBase/PopupBaseRoot.js +26 -164
- package/es/components/PopupBase/hooks.js +21 -95
- package/es/components/PopupBase/utils.js +31 -77
- package/es/components/Price/Price.js +12 -87
- package/es/components/RadioGroup/RadioGroup.js +5 -126
- package/es/components/SSRProvider/SSRProvider.js +3 -4
- package/es/components/Skeleton/LineSkeleton.js +18 -90
- package/es/components/Skeleton/RectSkeleton.js +16 -89
- package/es/components/Skeleton/Skeleton.js +2 -2
- package/es/components/Skeleton/TextSkeleton.js +7 -51
- package/es/components/Slider/Double.js +49 -200
- package/es/components/Slider/Handle.js +23 -153
- package/es/components/Slider/Single.js +26 -174
- package/es/components/Slider/Slider.js +2 -4
- package/es/components/Slider/SliderBase.js +36 -45
- package/es/components/Slider/ThumbBase.js +16 -92
- package/es/components/Slider/index.js +1 -1
- package/es/components/Slider/utils.js +2 -2
- package/es/components/Spinner/Spinner.js +23 -95
- package/es/components/Spinner/SpinnerSvg.js +8 -77
- package/es/components/Switch/Switch.js +45 -216
- package/es/components/Tabs/TabItem.js +28 -163
- package/es/components/Tabs/Tabs.js +28 -166
- package/es/components/Tabs/TabsContext.js +11 -41
- package/es/components/Tabs/createTabsController.js +28 -163
- package/es/components/TextArea/TextArea.js +18 -28
- package/es/components/Toast/Toast.js +10 -11
- package/es/components/Toast/ToastContext.js +3 -7
- package/es/components/Toast/ToastController.js +38 -95
- package/es/components/Toast/ToastProvider.js +34 -139
- package/es/components/Toast/useToast.js +4 -4
- package/es/components/Typography/Body.js +15 -15
- package/es/components/Typography/Button.js +10 -10
- package/es/components/Typography/Caption.js +5 -5
- package/es/components/Typography/Display.js +15 -15
- package/es/components/Typography/Footnote.js +10 -10
- package/es/components/Typography/Headline.js +40 -40
- package/es/components/Typography/Paragraph.js +21 -21
- package/es/components/Typography/Underline.js +5 -5
- package/es/hocs/withAutoFocus.js +8 -78
- package/es/hocs/withSkeleton.js +5 -10
- package/es/hooks/useDebouncedFunction.js +4 -36
- package/es/hooks/useFocusTrap.js +18 -21
- package/es/hooks/useForkRef.js +3 -3
- package/es/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/es/hooks/useResizeObserver.js +8 -8
- package/es/hooks/useUniqId.js +6 -52
- package/es/mixins/addFocus.js +17 -22
- package/es/mixins/applyDisabled.js +6 -9
- package/es/mixins/applyEllipsis.js +2 -4
- package/es/mixins/applyMaxLines.js +3 -6
- package/es/mixins/applyNoSelect.js +2 -4
- package/es/mixins/applyOutline.js +2 -4
- package/es/mixins/applyRoundness.js +4 -7
- package/es/mixins/applyScrollSnap.js +4 -7
- package/es/mixins/applySkeletonGradient.js +6 -9
- package/es/mixins/applyView.js +2 -5
- package/es/mixins/blur.js +2 -5
- package/es/mixins/shadows.js +1 -1
- package/es/tokens/colors.js +48 -48
- package/es/tokens/typography.js +18 -18
- package/es/utils/__tests__/formatters.test.js +2 -2
- package/es/utils/animatedScrollTo.js +24 -34
- package/es/utils/canUseDOM.js +1 -1
- package/es/utils/extractTextFrom.js +3 -7
- package/es/utils/focusManager.js +40 -47
- package/es/utils/formatCurrency.js +4 -4
- package/es/utils/formatters.js +6 -14
- package/es/utils/react.js +4 -4
- package/es/utils/roundness.js +2 -4
- package/es/utils/scopeTab.js +5 -5
- package/es/utils/setRef.js +1 -1
- package/es/utils/tabbable.js +16 -25
- package/es/utils/toCssSize.js +1 -3
- package/es/utils/transformStyles.js +5 -60
- package/hocs/index.js +2 -2
- package/hocs/withAutoFocus.js +9 -79
- package/hocs/withSkeleton.js +8 -13
- package/hooks/index.js +6 -6
- package/hooks/useDebouncedFunction.js +5 -37
- package/hooks/useFocusTrap.js +22 -25
- package/hooks/useForkRef.js +5 -5
- package/hooks/useIsomorphicLayoutEffect.js +3 -3
- package/hooks/useResizeObserver.js +9 -9
- package/hooks/useUniqId.js +8 -54
- package/mixins/addFocus.js +19 -24
- package/mixins/applyDisabled.js +7 -10
- package/mixins/applyEllipsis.js +3 -5
- package/mixins/applyMaxLines.js +4 -7
- package/mixins/applyNoSelect.js +3 -5
- package/mixins/applyOutline.js +3 -5
- package/mixins/applyRoundness.js +5 -8
- package/mixins/applyScrollSnap.js +5 -8
- package/mixins/applySkeletonGradient.js +8 -11
- package/mixins/applyView.js +3 -6
- package/mixins/blur.js +2 -5
- package/mixins/index.js +11 -11
- package/mixins/shadows.js +1 -1
- package/package.json +13 -18
- package/tokens/colors.js +48 -48
- package/tokens/typography.js +18 -18
- package/utils/__tests__/formatters.test.js +3 -3
- package/utils/animatedScrollTo.js +24 -34
- package/utils/canUseDOM.js +1 -1
- package/utils/extractTextFrom.js +4 -8
- package/utils/focusManager.js +41 -48
- package/utils/formatCurrency.js +4 -4
- package/utils/formatters.js +6 -14
- package/utils/index.js +10 -10
- package/utils/react.js +7 -7
- package/utils/roundness.js +2 -4
- package/utils/scopeTab.js +6 -6
- package/utils/setRef.js +1 -1
- package/utils/tabbable.js +16 -25
- package/utils/toCssSize.js +1 -3
- package/utils/transformStyles.js +5 -60
package/components/Tabs/Tabs.js
CHANGED
|
@@ -19,31 +19,10 @@ _export(exports, {
|
|
|
19
19
|
return Tabs;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
function _array_like_to_array(arr, len) {
|
|
27
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
28
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
29
|
-
return arr2;
|
|
30
|
-
}
|
|
31
|
-
function _array_with_holes(arr) {
|
|
32
|
-
if (Array.isArray(arr)) return arr;
|
|
33
|
-
}
|
|
34
|
-
function _define_property(obj, key, value) {
|
|
35
|
-
if (key in obj) {
|
|
36
|
-
Object.defineProperty(obj, key, {
|
|
37
|
-
value: value,
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
obj[key] = value;
|
|
44
|
-
}
|
|
45
|
-
return obj;
|
|
46
|
-
}
|
|
22
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
23
|
+
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
|
|
24
|
+
const _mixins = require("../../mixins");
|
|
25
|
+
const _TabItem = require("./TabItem");
|
|
47
26
|
function _interop_require_default(obj) {
|
|
48
27
|
return obj && obj.__esModule ? obj : {
|
|
49
28
|
default: obj
|
|
@@ -90,158 +69,41 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
90
69
|
}
|
|
91
70
|
return newObj;
|
|
92
71
|
}
|
|
93
|
-
|
|
94
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
95
|
-
}
|
|
96
|
-
function _iterable_to_array_limit(arr, i) {
|
|
97
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
98
|
-
if (_i == null) return;
|
|
99
|
-
var _arr = [];
|
|
100
|
-
var _n = true;
|
|
101
|
-
var _d = false;
|
|
102
|
-
var _s, _e;
|
|
103
|
-
try {
|
|
104
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
105
|
-
_arr.push(_s.value);
|
|
106
|
-
if (i && _arr.length === i) break;
|
|
107
|
-
}
|
|
108
|
-
} catch (err) {
|
|
109
|
-
_d = true;
|
|
110
|
-
_e = err;
|
|
111
|
-
} finally{
|
|
112
|
-
try {
|
|
113
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
114
|
-
} finally{
|
|
115
|
-
if (_d) throw _e;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return _arr;
|
|
119
|
-
}
|
|
120
|
-
function _non_iterable_rest() {
|
|
121
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
122
|
-
}
|
|
123
|
-
function _object_spread(target) {
|
|
124
|
-
for(var i = 1; i < arguments.length; i++){
|
|
125
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
126
|
-
var ownKeys = Object.keys(source);
|
|
127
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
128
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
129
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
130
|
-
}));
|
|
131
|
-
}
|
|
132
|
-
ownKeys.forEach(function(key) {
|
|
133
|
-
_define_property(target, key, source[key]);
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
return target;
|
|
137
|
-
}
|
|
138
|
-
function _object_without_properties(source, excluded) {
|
|
139
|
-
if (source == null) return {};
|
|
140
|
-
var target = {}, sourceKeys, key, i;
|
|
141
|
-
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
142
|
-
sourceKeys = Reflect.ownKeys(source);
|
|
143
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
144
|
-
key = sourceKeys[i];
|
|
145
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
146
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
147
|
-
target[key] = source[key];
|
|
148
|
-
}
|
|
149
|
-
return target;
|
|
150
|
-
}
|
|
151
|
-
target = _object_without_properties_loose(source, excluded);
|
|
152
|
-
if (Object.getOwnPropertySymbols) {
|
|
153
|
-
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
154
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
155
|
-
key = sourceKeys[i];
|
|
156
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
157
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
158
|
-
target[key] = source[key];
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
return target;
|
|
162
|
-
}
|
|
163
|
-
function _object_without_properties_loose(source, excluded) {
|
|
164
|
-
if (source == null) return {};
|
|
165
|
-
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
166
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
167
|
-
key = sourceKeys[i];
|
|
168
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
169
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
170
|
-
target[key] = source[key];
|
|
171
|
-
}
|
|
172
|
-
return target;
|
|
173
|
-
}
|
|
174
|
-
function _sliced_to_array(arr, i) {
|
|
175
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
176
|
-
}
|
|
177
|
-
function _to_array(arr) {
|
|
178
|
-
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
179
|
-
}
|
|
180
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
181
|
-
if (!o) return;
|
|
182
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
183
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
184
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
185
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
186
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
187
|
-
}
|
|
188
|
-
var StyledTabs = _styledcomponents.default.div.withConfig({
|
|
72
|
+
const StyledTabs = _styledcomponents.default.div.withConfig({
|
|
189
73
|
displayName: "Tabs__StyledTabs",
|
|
190
74
|
componentId: "sc-c62b2a-0"
|
|
191
75
|
})([
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
],
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
]);
|
|
199
|
-
});
|
|
200
|
-
var StyledWrapper = _styledcomponents.default.div.withConfig({
|
|
76
|
+
`position:relative;display:inline-flex;align-items:center;box-sizing:border-box;flex-wrap:nowrap;justify-content:stretch;padding:0;margin:0;width:max-content;list-style-type:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);`,
|
|
77
|
+
` gap:inherit;`
|
|
78
|
+
], ({ stretch = false })=>!stretch && (0, _styledcomponents.css)([
|
|
79
|
+
`margin:0 var(--tabs-margin);`
|
|
80
|
+
]));
|
|
81
|
+
const StyledWrapper = _styledcomponents.default.div.withConfig({
|
|
201
82
|
displayName: "Tabs__StyledWrapper",
|
|
202
83
|
componentId: "sc-c62b2a-1"
|
|
203
84
|
})([
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
], StyledTabs, _mixins.applyDisabled,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
],
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
var disabled = param.disabled;
|
|
225
|
-
return disabled && (0, _styledcomponents.css)([
|
|
226
|
-
"cursor:not-allowed;"
|
|
227
|
-
]);
|
|
228
|
-
});
|
|
229
|
-
var Tabs = /*#__PURE__*/ _react.default.forwardRef(function(_0, _1) {
|
|
230
|
-
var _ref = [
|
|
231
|
-
_0,
|
|
232
|
-
_1
|
|
233
|
-
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), _ref_role = _ref2.role, role = _ref_role === void 0 ? 'tablist' : _ref_role, as = _ref2.as, children = _ref2.children, stretch = _ref2.stretch, rest = _object_without_properties(_ref2, [
|
|
234
|
-
"role",
|
|
235
|
-
"as",
|
|
236
|
-
"children",
|
|
237
|
-
"stretch"
|
|
238
|
-
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
239
|
-
return /*#__PURE__*/ _react.default.createElement(StyledWrapper, _object_spread({
|
|
240
|
-
stretch: stretch
|
|
241
|
-
}, rest), /*#__PURE__*/ _react.default.createElement(StyledTabs, {
|
|
85
|
+
`overflow-x:auto;margin-left:calc(var(--tab-focus-border-size) * -1);margin-top:calc(var(--tab-focus-border-size) * -2);padding:var(--tab-focus-border-size);transform:translateY(var(--tab-focus-border-size));&::-webkit-scrollbar{display:none;}`,
|
|
86
|
+
`{`,
|
|
87
|
+
`}`,
|
|
88
|
+
` `,
|
|
89
|
+
` `,
|
|
90
|
+
`{`,
|
|
91
|
+
`}gap:0.125rem;`
|
|
92
|
+
], StyledTabs, _mixins.applyDisabled, ({ stretch })=>stretch && (0, _styledcomponents.css)([
|
|
93
|
+
`width:100%;`,
|
|
94
|
+
`{width:100%;}`,
|
|
95
|
+
`{flex:1 1 calc((100% / 4) - 0.125rem);}`
|
|
96
|
+
], StyledTabs, _TabItem.StyledTabItem), ({ stretch = false })=>!stretch && (0, _styledcomponents.css)([
|
|
97
|
+
`margin-left:calc(var(--tabs-margin) * -1 + var(--tab-focus-border-size) * -1);margin-right:calc(var(--tabs-margin) * -1);`
|
|
98
|
+
]), _TabItem.StyledTabItem, ({ disabled })=>disabled && (0, _styledcomponents.css)([
|
|
99
|
+
`cursor:not-allowed;`
|
|
100
|
+
]));
|
|
101
|
+
const Tabs = /*#__PURE__*/ _react.default.forwardRef(({ role = 'tablist', as, children, stretch, ...rest }, ref)=>/*#__PURE__*/ _react.default.createElement(StyledWrapper, {
|
|
102
|
+
stretch: stretch,
|
|
103
|
+
...rest
|
|
104
|
+
}, /*#__PURE__*/ _react.default.createElement(StyledTabs, {
|
|
242
105
|
as: as,
|
|
243
106
|
ref: ref,
|
|
244
107
|
role: role,
|
|
245
108
|
stretch: stretch
|
|
246
|
-
}, children));
|
|
247
|
-
});
|
|
109
|
+
}, children)));
|
|
@@ -16,26 +16,7 @@ _export(exports, {
|
|
|
16
16
|
return TabsContext;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
function _class_call_check(instance, Constructor) {
|
|
21
|
-
if (!(instance instanceof Constructor)) {
|
|
22
|
-
throw new TypeError("Cannot call a class as a function");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function _defineProperties(target, props) {
|
|
26
|
-
for(var i = 0; i < props.length; i++){
|
|
27
|
-
var descriptor = props[i];
|
|
28
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
29
|
-
descriptor.configurable = true;
|
|
30
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
31
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
35
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
36
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
37
|
-
return Constructor;
|
|
38
|
-
}
|
|
19
|
+
const _react = require("react");
|
|
39
20
|
function _define_property(obj, key, value) {
|
|
40
21
|
if (key in obj) {
|
|
41
22
|
Object.defineProperty(obj, key, {
|
|
@@ -49,27 +30,16 @@ function _define_property(obj, key, value) {
|
|
|
49
30
|
}
|
|
50
31
|
return obj;
|
|
51
32
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
class TabItemRefs {
|
|
34
|
+
register(ref) {
|
|
35
|
+
this.items.push(ref);
|
|
36
|
+
return this.items.length - 1;
|
|
37
|
+
}
|
|
38
|
+
unregister(ref) {
|
|
39
|
+
this.items.splice(this.items.indexOf(ref), 1);
|
|
40
|
+
}
|
|
41
|
+
constructor(){
|
|
56
42
|
_define_property(this, "items", []);
|
|
57
43
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
key: "register",
|
|
61
|
-
value: function register(ref) {
|
|
62
|
-
this.items.push(ref);
|
|
63
|
-
return this.items.length - 1;
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
key: "unregister",
|
|
68
|
-
value: function unregister(ref) {
|
|
69
|
-
this.items.splice(this.items.indexOf(ref), 1);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]);
|
|
73
|
-
return TabItemRefs;
|
|
74
|
-
}();
|
|
75
|
-
var TabsContext = /*#__PURE__*/ (0, _react.createContext)(null);
|
|
44
|
+
}
|
|
45
|
+
const TabsContext = /*#__PURE__*/ (0, _react.createContext)(null);
|
|
@@ -8,32 +8,11 @@ Object.defineProperty(exports, "createTabsController", {
|
|
|
8
8
|
return createTabsController;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function _array_like_to_array(arr, len) {
|
|
17
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
18
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
19
|
-
return arr2;
|
|
20
|
-
}
|
|
21
|
-
function _array_with_holes(arr) {
|
|
22
|
-
if (Array.isArray(arr)) return arr;
|
|
23
|
-
}
|
|
24
|
-
function _define_property(obj, key, value) {
|
|
25
|
-
if (key in obj) {
|
|
26
|
-
Object.defineProperty(obj, key, {
|
|
27
|
-
value: value,
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true
|
|
31
|
-
});
|
|
32
|
-
} else {
|
|
33
|
-
obj[key] = value;
|
|
34
|
-
}
|
|
35
|
-
return obj;
|
|
36
|
-
}
|
|
11
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
|
+
const _hooks = require("../../hooks");
|
|
13
|
+
const _TabsContext = require("./TabsContext");
|
|
14
|
+
const _Tabs = require("./Tabs");
|
|
15
|
+
const _TabItem = require("./TabItem");
|
|
37
16
|
function _getRequireWildcardCache(nodeInterop) {
|
|
38
17
|
if (typeof WeakMap !== "function") return null;
|
|
39
18
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -75,101 +54,6 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
75
54
|
}
|
|
76
55
|
return newObj;
|
|
77
56
|
}
|
|
78
|
-
function _iterable_to_array(iter) {
|
|
79
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
80
|
-
}
|
|
81
|
-
function _iterable_to_array_limit(arr, i) {
|
|
82
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
83
|
-
if (_i == null) return;
|
|
84
|
-
var _arr = [];
|
|
85
|
-
var _n = true;
|
|
86
|
-
var _d = false;
|
|
87
|
-
var _s, _e;
|
|
88
|
-
try {
|
|
89
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
90
|
-
_arr.push(_s.value);
|
|
91
|
-
if (i && _arr.length === i) break;
|
|
92
|
-
}
|
|
93
|
-
} catch (err) {
|
|
94
|
-
_d = true;
|
|
95
|
-
_e = err;
|
|
96
|
-
} finally{
|
|
97
|
-
try {
|
|
98
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
99
|
-
} finally{
|
|
100
|
-
if (_d) throw _e;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return _arr;
|
|
104
|
-
}
|
|
105
|
-
function _non_iterable_rest() {
|
|
106
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
107
|
-
}
|
|
108
|
-
function _object_spread(target) {
|
|
109
|
-
for(var i = 1; i < arguments.length; i++){
|
|
110
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
111
|
-
var ownKeys = Object.keys(source);
|
|
112
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
113
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
114
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
115
|
-
}));
|
|
116
|
-
}
|
|
117
|
-
ownKeys.forEach(function(key) {
|
|
118
|
-
_define_property(target, key, source[key]);
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
return target;
|
|
122
|
-
}
|
|
123
|
-
function _object_without_properties(source, excluded) {
|
|
124
|
-
if (source == null) return {};
|
|
125
|
-
var target = {}, sourceKeys, key, i;
|
|
126
|
-
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
127
|
-
sourceKeys = Reflect.ownKeys(source);
|
|
128
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
129
|
-
key = sourceKeys[i];
|
|
130
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
131
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
132
|
-
target[key] = source[key];
|
|
133
|
-
}
|
|
134
|
-
return target;
|
|
135
|
-
}
|
|
136
|
-
target = _object_without_properties_loose(source, excluded);
|
|
137
|
-
if (Object.getOwnPropertySymbols) {
|
|
138
|
-
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
139
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
140
|
-
key = sourceKeys[i];
|
|
141
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
142
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
143
|
-
target[key] = source[key];
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return target;
|
|
147
|
-
}
|
|
148
|
-
function _object_without_properties_loose(source, excluded) {
|
|
149
|
-
if (source == null) return {};
|
|
150
|
-
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
151
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
152
|
-
key = sourceKeys[i];
|
|
153
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
154
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
155
|
-
target[key] = source[key];
|
|
156
|
-
}
|
|
157
|
-
return target;
|
|
158
|
-
}
|
|
159
|
-
function _sliced_to_array(arr, i) {
|
|
160
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
161
|
-
}
|
|
162
|
-
function _to_array(arr) {
|
|
163
|
-
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
164
|
-
}
|
|
165
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
166
|
-
if (!o) return;
|
|
167
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
168
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
169
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
170
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
171
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
172
|
-
}
|
|
173
57
|
var Keys = /*#__PURE__*/ function(Keys) {
|
|
174
58
|
Keys[Keys["end"] = 35] = "end";
|
|
175
59
|
Keys[Keys["home"] = 36] = "home";
|
|
@@ -177,47 +61,31 @@ var Keys = /*#__PURE__*/ function(Keys) {
|
|
|
177
61
|
Keys[Keys["right"] = 39] = "right";
|
|
178
62
|
return Keys;
|
|
179
63
|
}(Keys || {});
|
|
180
|
-
function createTabsController() {
|
|
181
|
-
var ListComponent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _Tabs.Tabs, ItemComponent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _TabItem.TabItem;
|
|
64
|
+
function createTabsController(ListComponent = _Tabs.Tabs, ItemComponent = _TabItem.TabItem) {
|
|
182
65
|
// eslint-disable-next-line prefer-arrow-callback
|
|
183
|
-
return /*#__PURE__*/ (0, _react.forwardRef)(function TabsController(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
"index",
|
|
190
|
-
"autoscroll",
|
|
191
|
-
"onIndexChange"
|
|
192
|
-
]), _rest1 = _sliced_to_array(_rest, 1), outerRef = _rest1[0];
|
|
193
|
-
var disabled = rest.disabled;
|
|
194
|
-
var refs = (0, _react.useMemo)(function() {
|
|
195
|
-
return new _TabsContext.TabItemRefs();
|
|
196
|
-
}, []);
|
|
197
|
-
var innerRef = (0, _react.useRef)(null);
|
|
198
|
-
var ref = (0, _hooks.useForkRef)(outerRef, innerRef);
|
|
199
|
-
var onItemFocus = (0, _react.useCallback)(function(event) {
|
|
200
|
-
var _innerRef_current;
|
|
66
|
+
return /*#__PURE__*/ (0, _react.forwardRef)(function TabsController({ items, index, autoscroll, onIndexChange, ...rest }, outerRef) {
|
|
67
|
+
const { disabled } = rest;
|
|
68
|
+
const refs = (0, _react.useMemo)(()=>new _TabsContext.TabItemRefs(), []);
|
|
69
|
+
const innerRef = (0, _react.useRef)(null);
|
|
70
|
+
const ref = (0, _hooks.useForkRef)(outerRef, innerRef);
|
|
71
|
+
const onItemFocus = (0, _react.useCallback)((event)=>{
|
|
201
72
|
if (disabled) {
|
|
202
73
|
return;
|
|
203
74
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
});
|
|
207
|
-
var focusItem = refs.items[focusIndex];
|
|
75
|
+
const focusIndex = refs.items.findIndex((itemRef)=>itemRef.current === event.target);
|
|
76
|
+
const focusItem = refs.items[focusIndex];
|
|
208
77
|
if (focusIndex === index) {
|
|
209
78
|
return;
|
|
210
79
|
}
|
|
211
|
-
onIndexChange
|
|
212
|
-
|
|
213
|
-
if (autoscroll && parent &&
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
var marginRight = Number.parseInt(style.marginRight, 10);
|
|
80
|
+
onIndexChange?.(focusIndex);
|
|
81
|
+
const parent = innerRef.current?.parentNode;
|
|
82
|
+
if (autoscroll && parent && focusItem?.current) {
|
|
83
|
+
const { x, width } = focusItem.current?.getBoundingClientRect();
|
|
84
|
+
const { x: parentX, width: parentWidth } = parent.getBoundingClientRect();
|
|
85
|
+
const relativeX = x - parentX;
|
|
86
|
+
const style = window.getComputedStyle(parent);
|
|
87
|
+
const marginLeft = Number.parseInt(style.marginLeft, 10);
|
|
88
|
+
const marginRight = Number.parseInt(style.marginRight, 10);
|
|
221
89
|
if (relativeX < -marginLeft) {
|
|
222
90
|
parent.scrollLeft += relativeX + marginLeft;
|
|
223
91
|
return;
|
|
@@ -233,13 +101,13 @@ function createTabsController() {
|
|
|
233
101
|
onIndexChange,
|
|
234
102
|
disabled
|
|
235
103
|
]);
|
|
236
|
-
|
|
104
|
+
const onKeyDown = (0, _react.useCallback)((event)=>{
|
|
237
105
|
if (disabled) {
|
|
238
106
|
return;
|
|
239
107
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
108
|
+
const minIndex = 0;
|
|
109
|
+
const maxIndex = refs.items.length - 1;
|
|
110
|
+
let nextIndex;
|
|
243
111
|
switch(event.keyCode){
|
|
244
112
|
case 35:
|
|
245
113
|
nextIndex = maxIndex;
|
|
@@ -257,9 +125,8 @@ function createTabsController() {
|
|
|
257
125
|
return;
|
|
258
126
|
}
|
|
259
127
|
if (nextIndex !== index) {
|
|
260
|
-
var _refs_items_nextIndex_current;
|
|
261
128
|
event.preventDefault();
|
|
262
|
-
|
|
129
|
+
refs.items[nextIndex].current?.focus();
|
|
263
130
|
}
|
|
264
131
|
}, [
|
|
265
132
|
index,
|
|
@@ -268,19 +135,17 @@ function createTabsController() {
|
|
|
268
135
|
]);
|
|
269
136
|
return /*#__PURE__*/ _react.default.createElement(_TabsContext.TabsContext.Provider, {
|
|
270
137
|
value: refs
|
|
271
|
-
}, /*#__PURE__*/ _react.default.createElement(ListComponent,
|
|
138
|
+
}, /*#__PURE__*/ _react.default.createElement(ListComponent, {
|
|
272
139
|
ref: ref,
|
|
273
|
-
onKeyDown: onKeyDown
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return /*#__PURE__*/ _react.default.createElement(ItemComponent, {
|
|
140
|
+
onKeyDown: onKeyDown,
|
|
141
|
+
...rest
|
|
142
|
+
}, items.map(({ label, contentLeft }, i)=>/*#__PURE__*/ _react.default.createElement(ItemComponent, {
|
|
277
143
|
key: i,
|
|
278
144
|
isActive: i === index,
|
|
279
145
|
tabIndex: !disabled && i === index ? 0 : -1,
|
|
280
146
|
contentLeft: contentLeft,
|
|
281
147
|
onFocus: onItemFocus,
|
|
282
148
|
disabled: disabled
|
|
283
|
-
}, label);
|
|
284
|
-
})));
|
|
149
|
+
}, label))));
|
|
285
150
|
});
|
|
286
151
|
}
|
package/components/Tabs/index.js
CHANGED
|
@@ -28,7 +28,7 @@ _export(exports, {
|
|
|
28
28
|
return _createTabsController.createTabsController;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
const _createTabsController = require("./createTabsController");
|
|
32
|
+
const _TabsContext = require("./TabsContext");
|
|
33
|
+
const _Tabs = require("./Tabs");
|
|
34
|
+
const _TabItem = require("./TabItem");
|
|
@@ -16,8 +16,8 @@ _export(exports, {
|
|
|
16
16
|
return applyTextAreaCssProperties;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
|
|
20
|
+
const _Inputmixins = require("../Input/Input.mixins");
|
|
21
21
|
function _getRequireWildcardCache(nodeInterop) {
|
|
22
22
|
if (typeof WeakMap !== "function") return null;
|
|
23
23
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -59,37 +59,27 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
59
59
|
}
|
|
60
60
|
return newObj;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var computedWidth = !Number.isNaN(Number(width)) ? "".concat(width, "rem") : width;
|
|
62
|
+
const applyTextAreaCssProperties = ({ height, width })=>{
|
|
63
|
+
const computedHeight = !Number.isNaN(Number(height)) ? `${height}rem` : height;
|
|
64
|
+
const computedWidth = !Number.isNaN(Number(width)) ? `${width}rem` : width;
|
|
66
65
|
return (0, _styledcomponents.css)([
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
`--plasma-textarea-height:`,
|
|
67
|
+
`;--plasma-textarea-width:`,
|
|
68
|
+
`;`
|
|
70
69
|
], computedHeight, computedWidth);
|
|
71
70
|
};
|
|
72
|
-
|
|
71
|
+
const TextArea = _styledcomponents.default.textarea.withConfig({
|
|
73
72
|
displayName: "TextArea",
|
|
74
73
|
componentId: "sc-c2e61f4e-0"
|
|
75
74
|
})([
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
], _Inputmixins.applyInputStyles, applyTextAreaCssProperties,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return cols ? 'unset' : 'var(--plasma-textarea-width, 100%)';
|
|
88
|
-
}, function(param) {
|
|
89
|
-
var resize = param.resize, cols = param.cols;
|
|
90
|
-
return (0, _styledcomponents.css)([
|
|
91
|
-
"",
|
|
92
|
-
" ",
|
|
93
|
-
""
|
|
94
|
-
], resize && "resize: ".concat(resize, ";"), resize !== 'both' && resize !== 'horizontal' && !cols && 'min-width: var(--plasma-textarea-width, 100%); max-width: var(--plasma-textarea-width, 100%)');
|
|
95
|
-
});
|
|
75
|
+
``,
|
|
76
|
+
` `,
|
|
77
|
+
` display:block;min-height:3.5rem;height:`,
|
|
78
|
+
`;width:`,
|
|
79
|
+
`;`,
|
|
80
|
+
``
|
|
81
|
+
], _Inputmixins.applyInputStyles, applyTextAreaCssProperties, ({ rows })=>rows ? 'unset' : 'var(--plasma-textarea-height, 9.375rem)', ({ cols })=>cols ? 'unset' : 'var(--plasma-textarea-width, 100%)', ({ resize, cols })=>(0, _styledcomponents.css)([
|
|
82
|
+
``,
|
|
83
|
+
` `,
|
|
84
|
+
``
|
|
85
|
+
], resize && `resize: ${resize};`, resize !== 'both' && resize !== 'horizontal' && !cols && 'min-width: var(--plasma-textarea-width, 100%); max-width: var(--plasma-textarea-width, 100%)'));
|
|
@@ -28,6 +28,6 @@ _export(exports, {
|
|
|
28
28
|
return _TextArea.TextArea;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const _Field = require("../Field");
|
|
32
|
+
const _Input = require("../Input");
|
|
33
|
+
const _TextArea = require("../TextArea");
|