@enact/ui 4.5.2 → 4.5.4
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/AnnounceDecorator/Announce.js +1 -40
- package/AnnounceDecorator/AnnounceDecorator.js +3 -21
- package/AnnounceDecorator/tests/Announce-specs.js +2 -7
- package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +2 -6
- package/AnnounceDecorator/tests/useAnnounce-specs.js +8 -19
- package/AnnounceDecorator/useAnnounce.js +0 -6
- package/BodyText/BodyText.js +6 -26
- package/BodyText/tests/BodyText-specs.js +0 -19
- package/Button/Button.js +26 -56
- package/Button/tests/Button-specs.js +0 -26
- package/CHANGELOG.md +10 -0
- package/Cancelable/Cancelable.js +8 -47
- package/Cancelable/cancelHandler.js +5 -12
- package/Cancelable/modalHandler.js +3 -11
- package/Cancelable/tests/Cancelable-specs.js +3 -57
- package/Changeable/Changeable.js +2 -34
- package/Changeable/tests/Changeable-specs.js +20 -66
- package/ComponentOverride/ComponentOverride.js +1 -13
- package/FloatingLayer/FloatingLayer.js +17 -73
- package/FloatingLayer/FloatingLayerContainer.js +0 -15
- package/FloatingLayer/FloatingLayerDecorator.js +4 -17
- package/FloatingLayer/Scrim.js +9 -53
- package/FloatingLayer/index.js +0 -4
- package/FloatingLayer/tests/FloatingLayer-specs.js +8 -22
- package/FloatingLayer/tests/Scrim-specs.js +0 -9
- package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +0 -13
- package/FloatingLayer/useFloatingLayer.js +3 -14
- package/FloatingLayer/useFloatingLayerDecorator.js +3 -11
- package/ForwardRef/ForwardRef.js +1 -10
- package/GridListImageItem/GridListImageItem.js +17 -50
- package/Group/Group.js +4 -35
- package/Group/GroupItem.js +15 -32
- package/Group/tests/Group-specs.js +0 -32
- package/Heading/Heading.js +7 -35
- package/Heading/tests/Heading-specs.js +81 -14
- package/Icon/Icon.js +14 -48
- package/Icon/tests/Icon-specs.js +0 -22
- package/IconButton/IconButton.js +12 -50
- package/IconButton/tests/IconButton-specs.js +0 -7
- package/Image/Image.js +16 -45
- package/Image/tests/Image-specs.js +0 -14
- package/ImageItem/ImageItem.js +17 -46
- package/ImageItem/tests/ImageItem-specs.js +0 -25
- package/Item/Item.js +8 -32
- package/Item/tests/Item-specs.js +0 -24
- package/LabeledIcon/LabeledIcon.js +19 -50
- package/LabeledIcon/tests/LabeledIcon-specs.js +0 -14
- package/Layout/Cell.js +11 -37
- package/Layout/Layout.js +14 -37
- package/Layout/tests/Layout-specs.js +10 -39
- package/Marquee/MarqueeBase.js +29 -63
- package/Marquee/MarqueeController.js +11 -72
- package/Marquee/MarqueeDecorator.js +62 -196
- package/Marquee/index.js +1 -5
- package/Marquee/tests/Marquee-specs.js +258 -87
- package/Measurable/Measurable.js +12 -34
- package/Measurable/tests/Measurable-specs.js +115 -0
- package/Media/Media.js +15 -65
- package/Media/tests/Media-specs.js +168 -0
- package/Placeholder/PlaceholderControllerDecorator.js +7 -43
- package/Placeholder/PlaceholderDecorator.js +7 -38
- package/Placeholder/index.js +0 -4
- package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +25 -0
- package/Placeholder/tests/PlaceholderDecorator-specs.js +28 -0
- package/ProgressBar/ProgressBar.js +13 -44
- package/ProgressBar/tests/ProgressBar-specs.js +0 -17
- package/RadioDecorator/RadioControllerDecorator.js +1 -29
- package/RadioDecorator/RadioDecorator.js +4 -42
- package/RadioDecorator/tests/RadioDecorator-specs.js +12 -49
- package/Repeater/Repeater.js +9 -33
- package/Repeater/tests/Repeater-specs.js +0 -38
- package/Resizable/Resizable.js +7 -35
- package/Resizable/tests/Resizable-specs.js +34 -0
- package/Routable/Link.js +8 -44
- package/Routable/Routable.js +10 -33
- package/Routable/Route.js +0 -6
- package/Routable/Router.js +13 -56
- package/Routable/tests/Routable-specs.js +7 -33
- package/Routable/tests/Router-specs.js +18 -44
- package/Routable/useLink.js +4 -8
- package/Routable/util.js +18 -24
- package/Scrollable/ScrollAnimator.js +49 -65
- package/Scrollable/ScrollThumb.js +2 -13
- package/Scrollable/Scrollable.js +179 -386
- package/Scrollable/ScrollableNative.js +188 -391
- package/Scrollable/Scrollbar.js +28 -100
- package/Scroller/Scroller.js +15 -39
- package/Scroller/ScrollerBasic.js +34 -89
- package/Scroller/UiScrollerBase.js +31 -84
- package/Skinnable/Skinnable.js +11 -38
- package/Skinnable/tests/Skinnable-specs.js +3 -74
- package/Skinnable/tests/useSkins-specs.js +1 -13
- package/Skinnable/tests/util-specs.js +0 -14
- package/Skinnable/useSkins.js +8 -15
- package/Skinnable/util.js +9 -20
- package/Slider/Knob.js +5 -24
- package/Slider/PositionDecorator.js +16 -54
- package/Slider/Slider.js +26 -64
- package/Slider/tests/Slider-specs.js +94 -7
- package/Slider/utils.js +0 -2
- package/SlotItem/SlotItem.js +15 -41
- package/SlotItem/tests/SlotItem-specs.js +0 -5
- package/Slottable/Slottable.js +4 -12
- package/Slottable/tests/Slottable-specs.js +19 -46
- package/Slottable/tests/useSlots-specs.js +27 -65
- package/Slottable/useSlots.js +8 -33
- package/Spinner/Spinner.js +15 -42
- package/Spinner/tests/Spinner-specs.js +0 -15
- package/ToggleIcon/ToggleIcon.js +10 -36
- package/ToggleIcon/tests/ToggleIcon-specs.js +0 -16
- package/ToggleItem/ToggleItem.js +15 -52
- package/ToggleItem/tests/ToggleItem-specs.js +0 -30
- package/Toggleable/Toggle.js +1 -15
- package/Toggleable/Toggleable.js +12 -45
- package/Toggleable/tests/Toggleable-specs.js +28 -96
- package/Toggleable/useToggle.js +3 -19
- package/Touchable/ClickAllow.js +5 -14
- package/Touchable/Drag.js +16 -54
- package/Touchable/Flick.js +11 -42
- package/Touchable/Hold.js +21 -68
- package/Touchable/Touch.js +37 -65
- package/Touchable/Touchable.js +32 -71
- package/Touchable/config.js +8 -22
- package/Touchable/tests/Touchable-specs.js +270 -119
- package/Touchable/tests/useTouch-specs.js +6 -80
- package/Touchable/useTouch.js +17 -34
- package/Transition/Transition.js +37 -118
- package/Transition/tests/Transition-specs.js +20 -60
- package/ViewManager/Arranger.js +10 -22
- package/ViewManager/TransitionGroup.js +31 -106
- package/ViewManager/View.js +35 -91
- package/ViewManager/ViewManager.js +19 -83
- package/ViewManager/tests/View-specs.js +0 -17
- package/ViewManager/tests/ViewManager-specs.js +236 -305
- package/ViewManager/tests/test-utils.js +0 -8
- package/VirtualList/UiVirtualListBase.js +256 -406
- package/VirtualList/VirtualList.js +29 -69
- package/VirtualList/VirtualListBase.js +0 -3
- package/VirtualList/VirtualListBasic.js +270 -428
- package/VirtualList/tests/VirtualList-specs.js +9 -37
- package/internal/IdProvider/IdProvider.js +7 -21
- package/internal/IdProvider/Provider.js +4 -17
- package/internal/IdProvider/tests/IdProvider-specs.js +44 -0
- package/internal/IdProvider/tests/useId-specs.js +7 -22
- package/internal/IdProvider/useId.js +0 -6
- package/internal/Pure/Pure.js +3 -30
- package/internal/Pure/tests/Pure-specs.js +88 -0
- package/internal/localized-fonts/localized-fonts.js +33 -62
- package/internal/localized-fonts/tests/localized-fonts-specs.js +33 -0
- package/internal/selection/selection.js +1 -6
- package/internal/selection/tests/selection-specs.js +6 -4
- package/internal/validators/tests/validators-specs.js +80 -0
- package/internal/validators/validators.js +14 -34
- package/package.json +8 -2
- package/resolution/ResolutionDecorator.js +4 -40
- package/resolution/index.js +0 -7
- package/resolution/resolution.js +42 -80
- package/resolution/tests/ResolutionDecorator-specs.js +4 -11
- package/resolution/tests/resolution-specs.js +2 -2
- package/useControlledState/tests/useControlledState-specs.js +15 -46
- package/useControlledState/useControlledState.js +11 -22
- package/useScroll/ScrollAnimator.js +49 -65
- package/useScroll/Scrollbar.js +22 -58
- package/useScroll/ScrollbarTrack.js +3 -19
- package/useScroll/useScroll.js +325 -502
- package/useScroll/utilDOM.js +8 -14
- package/useScroll/utilEvent.js +0 -4
package/Item/Item.js
CHANGED
|
@@ -4,37 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = exports.ItemDecorator = exports.ItemBase = exports.Item = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("@enact/core/internal/prop-types"));
|
|
9
|
-
|
|
10
8
|
var _kind = _interopRequireDefault(require("@enact/core/kind"));
|
|
11
|
-
|
|
12
9
|
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
var _compose = _interopRequireDefault(require("ramda/src/compose"));
|
|
15
|
-
|
|
16
11
|
var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
17
|
-
|
|
18
12
|
var _ForwardRef = _interopRequireDefault(require("../ForwardRef"));
|
|
19
|
-
|
|
20
13
|
var _ItemModule = _interopRequireDefault(require("./Item.module.css"));
|
|
21
|
-
|
|
22
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
|
|
24
15
|
var _excluded = ["component", "componentRef", "disabled", "children"];
|
|
25
|
-
|
|
26
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
-
|
|
28
17
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
-
|
|
30
18
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
|
-
|
|
32
19
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
|
-
|
|
34
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
35
|
-
|
|
36
21
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
37
|
-
|
|
38
22
|
/**
|
|
39
23
|
* A basic list item component structure without any behaviors applied to it.
|
|
40
24
|
*
|
|
@@ -47,9 +31,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
47
31
|
*/
|
|
48
32
|
var ItemBase = (0, _kind["default"])({
|
|
49
33
|
name: 'ui:Item',
|
|
50
|
-
propTypes:
|
|
51
|
-
/** @lends ui/Item.ItemBase.prototype */
|
|
52
|
-
{
|
|
34
|
+
propTypes: /** @lends ui/Item.ItemBase.prototype */{
|
|
53
35
|
/**
|
|
54
36
|
* The node to be displayed as the main content of the item.
|
|
55
37
|
*
|
|
@@ -57,7 +39,6 @@ var ItemBase = (0, _kind["default"])({
|
|
|
57
39
|
* @public
|
|
58
40
|
*/
|
|
59
41
|
children: _propTypes2["default"].node,
|
|
60
|
-
|
|
61
42
|
/**
|
|
62
43
|
* The type of component to use to render the item. May be a DOM node name (e.g 'div',
|
|
63
44
|
* 'span', etc.) or a custom component.
|
|
@@ -67,7 +48,6 @@ var ItemBase = (0, _kind["default"])({
|
|
|
67
48
|
* @public
|
|
68
49
|
*/
|
|
69
50
|
component: _propTypes["default"].renderable,
|
|
70
|
-
|
|
71
51
|
/**
|
|
72
52
|
* Called with a reference to [component]{@link ui/Item.ItemBase#component}
|
|
73
53
|
*
|
|
@@ -75,7 +55,6 @@ var ItemBase = (0, _kind["default"])({
|
|
|
75
55
|
* @private
|
|
76
56
|
*/
|
|
77
57
|
componentRef: _propTypes["default"].ref,
|
|
78
|
-
|
|
79
58
|
/**
|
|
80
59
|
* Customizes the component by mapping the supplied collection of CSS class names to the
|
|
81
60
|
* corresponding internal elements and states of this component.
|
|
@@ -89,7 +68,6 @@ var ItemBase = (0, _kind["default"])({
|
|
|
89
68
|
* @public
|
|
90
69
|
*/
|
|
91
70
|
css: _propTypes2["default"].object,
|
|
92
|
-
|
|
93
71
|
/**
|
|
94
72
|
* Applies a disabled state to the item.
|
|
95
73
|
*
|
|
@@ -98,7 +76,6 @@ var ItemBase = (0, _kind["default"])({
|
|
|
98
76
|
* @public
|
|
99
77
|
*/
|
|
100
78
|
disabled: _propTypes2["default"].bool,
|
|
101
|
-
|
|
102
79
|
/**
|
|
103
80
|
* Applies inline styling to the item.
|
|
104
81
|
*
|
|
@@ -120,7 +97,7 @@ var ItemBase = (0, _kind["default"])({
|
|
|
120
97
|
computed: {
|
|
121
98
|
className: function className(_ref) {
|
|
122
99
|
var inline = _ref.inline,
|
|
123
|
-
|
|
100
|
+
styler = _ref.styler;
|
|
124
101
|
return styler.append({
|
|
125
102
|
inline: inline
|
|
126
103
|
});
|
|
@@ -128,11 +105,10 @@ var ItemBase = (0, _kind["default"])({
|
|
|
128
105
|
},
|
|
129
106
|
render: function render(_ref2) {
|
|
130
107
|
var Component = _ref2.component,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
108
|
+
componentRef = _ref2.componentRef,
|
|
109
|
+
disabled = _ref2.disabled,
|
|
110
|
+
children = _ref2.children,
|
|
111
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
136
112
|
delete rest.inline;
|
|
137
113
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, _objectSpread(_objectSpread({
|
|
138
114
|
ref: componentRef
|
|
@@ -143,6 +119,7 @@ var ItemBase = (0, _kind["default"])({
|
|
|
143
119
|
}));
|
|
144
120
|
}
|
|
145
121
|
});
|
|
122
|
+
|
|
146
123
|
/**
|
|
147
124
|
* A higher-order component that adds touch support to the component it wraps.
|
|
148
125
|
*
|
|
@@ -152,11 +129,11 @@ var ItemBase = (0, _kind["default"])({
|
|
|
152
129
|
* @mixes ui/Touchable.Touchable
|
|
153
130
|
* @public
|
|
154
131
|
*/
|
|
155
|
-
|
|
156
132
|
exports.ItemBase = ItemBase;
|
|
157
133
|
var ItemDecorator = (0, _compose["default"])((0, _ForwardRef["default"])({
|
|
158
134
|
prop: 'componentRef'
|
|
159
135
|
}), _Touchable["default"]);
|
|
136
|
+
|
|
160
137
|
/**
|
|
161
138
|
* A minimally-styled ready-to-use list item component with touch support.
|
|
162
139
|
*
|
|
@@ -168,7 +145,6 @@ var ItemDecorator = (0, _compose["default"])((0, _ForwardRef["default"])({
|
|
|
168
145
|
* @ui
|
|
169
146
|
* @public
|
|
170
147
|
*/
|
|
171
|
-
|
|
172
148
|
exports.ItemDecorator = ItemDecorator;
|
|
173
149
|
var Item = ItemDecorator(ItemBase);
|
|
174
150
|
exports.Item = Item;
|
package/Item/tests/Item-specs.js
CHANGED
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("@testing-library/jest-dom");
|
|
4
|
-
|
|
5
4
|
var _react = require("@testing-library/react");
|
|
6
|
-
|
|
7
5
|
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
|
8
|
-
|
|
9
6
|
var _Item = _interopRequireDefault(require("../Item"));
|
|
10
|
-
|
|
11
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
|
|
13
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
|
|
15
9
|
var tap = function tap(node) {
|
|
16
10
|
_react.fireEvent.mouseDown(node);
|
|
17
|
-
|
|
18
11
|
_react.fireEvent.mouseUp(node);
|
|
19
12
|
};
|
|
20
|
-
|
|
21
13
|
describe('Item', function () {
|
|
22
14
|
test('should render an item', function () {
|
|
23
15
|
(0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Item["default"], {
|
|
24
16
|
children: "I am an item"
|
|
25
17
|
}));
|
|
26
|
-
|
|
27
18
|
var actual = _react.screen.getByText('I am an item');
|
|
28
|
-
|
|
29
19
|
expect(actual).toBeInTheDocument();
|
|
30
20
|
});
|
|
31
21
|
test('should render a disabled item', function () {
|
|
@@ -33,9 +23,7 @@ describe('Item', function () {
|
|
|
33
23
|
disabled: true,
|
|
34
24
|
children: "I am a disabled item"
|
|
35
25
|
}));
|
|
36
|
-
|
|
37
26
|
var actual = _react.screen.getByText('I am a disabled item');
|
|
38
|
-
|
|
39
27
|
expect(actual).toHaveAttribute('disabled');
|
|
40
28
|
});
|
|
41
29
|
test('should render an inline item', function () {
|
|
@@ -43,9 +31,7 @@ describe('Item', function () {
|
|
|
43
31
|
inline: true,
|
|
44
32
|
children: "I am an inline item"
|
|
45
33
|
}));
|
|
46
|
-
|
|
47
34
|
var actual = _react.screen.getByText('I am an inline item');
|
|
48
|
-
|
|
49
35
|
var expected = 'inline';
|
|
50
36
|
expect(actual).toHaveClass(expected);
|
|
51
37
|
});
|
|
@@ -56,9 +42,7 @@ describe('Item', function () {
|
|
|
56
42
|
onTap: handleClick,
|
|
57
43
|
children: "I am a normal item"
|
|
58
44
|
}));
|
|
59
|
-
|
|
60
45
|
var item = _react.screen.getByText('I am a normal item');
|
|
61
|
-
|
|
62
46
|
tap(item);
|
|
63
47
|
var expected = 1;
|
|
64
48
|
expect(handleClick).toHaveBeenCalledTimes(expected);
|
|
@@ -70,9 +54,7 @@ describe('Item', function () {
|
|
|
70
54
|
onTap: handleClick,
|
|
71
55
|
children: "I am a disabled item"
|
|
72
56
|
}));
|
|
73
|
-
|
|
74
57
|
var item = _react.screen.getByText('I am a disabled item');
|
|
75
|
-
|
|
76
58
|
tap(item);
|
|
77
59
|
expect(handleClick).not.toHaveBeenCalled();
|
|
78
60
|
});
|
|
@@ -82,11 +64,8 @@ describe('Item', function () {
|
|
|
82
64
|
onClick: handleClick,
|
|
83
65
|
children: "I am a normal Item"
|
|
84
66
|
}));
|
|
85
|
-
|
|
86
67
|
var item = _react.screen.getByText('I am a normal Item');
|
|
87
|
-
|
|
88
68
|
_userEvent["default"].click(item);
|
|
89
|
-
|
|
90
69
|
var expected = 1;
|
|
91
70
|
expect(handleClick).toHaveBeenCalledTimes(expected);
|
|
92
71
|
});
|
|
@@ -97,11 +76,8 @@ describe('Item', function () {
|
|
|
97
76
|
onClick: handleClick,
|
|
98
77
|
children: "I am a disabled Item"
|
|
99
78
|
}));
|
|
100
|
-
|
|
101
79
|
var item = _react.screen.getByText('I am a disabled Item');
|
|
102
|
-
|
|
103
80
|
_userEvent["default"].click(item);
|
|
104
|
-
|
|
105
81
|
expect(handleClick).not.toHaveBeenCalled();
|
|
106
82
|
});
|
|
107
83
|
});
|
|
@@ -4,43 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = exports.LabeledIconDecorator = exports.LabeledIconBase = exports.LabeledIcon = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("@enact/core/internal/prop-types"));
|
|
9
|
-
|
|
10
8
|
var _kind = _interopRequireDefault(require("@enact/core/kind"));
|
|
11
|
-
|
|
12
9
|
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
var _compose = _interopRequireDefault(require("ramda/src/compose"));
|
|
15
|
-
|
|
16
11
|
var _react = require("react");
|
|
17
|
-
|
|
18
12
|
var _ComponentOverride = _interopRequireDefault(require("../ComponentOverride"));
|
|
19
|
-
|
|
20
13
|
var _ForwardRef = _interopRequireDefault(require("../ForwardRef"));
|
|
21
|
-
|
|
22
14
|
var _Layout = require("../Layout");
|
|
23
|
-
|
|
24
15
|
var _Slottable = _interopRequireDefault(require("../Slottable"));
|
|
25
|
-
|
|
26
16
|
var _LabeledIconModule = _interopRequireDefault(require("./LabeledIcon.module.css"));
|
|
27
|
-
|
|
28
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
|
-
|
|
30
18
|
var _excluded = ["css", "children", "componentRef", "disabled", "flip", "icon", "iconComponent", "orientation", "size"];
|
|
31
|
-
|
|
32
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
-
|
|
34
20
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
|
-
|
|
36
21
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
37
|
-
|
|
38
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
-
|
|
40
23
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
|
-
|
|
42
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
|
-
|
|
44
25
|
/**
|
|
45
26
|
* An icon component with a label.
|
|
46
27
|
*
|
|
@@ -51,9 +32,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
51
32
|
*/
|
|
52
33
|
var LabeledIconBase = (0, _kind["default"])({
|
|
53
34
|
name: 'ui:LabeledIcon',
|
|
54
|
-
propTypes:
|
|
55
|
-
/** @lends ui/LabeledIcon.LabeledIconBase.prototype */
|
|
56
|
-
{
|
|
35
|
+
propTypes: /** @lends ui/LabeledIcon.LabeledIconBase.prototype */{
|
|
57
36
|
/**
|
|
58
37
|
* The label.
|
|
59
38
|
*
|
|
@@ -64,7 +43,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
64
43
|
* @public
|
|
65
44
|
*/
|
|
66
45
|
children: _propTypes2["default"].node,
|
|
67
|
-
|
|
68
46
|
/**
|
|
69
47
|
* Called with a reference to the root component.
|
|
70
48
|
*
|
|
@@ -75,7 +53,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
75
53
|
* @public
|
|
76
54
|
*/
|
|
77
55
|
componentRef: _propTypes["default"].ref,
|
|
78
|
-
|
|
79
56
|
/**
|
|
80
57
|
* Customizes the component by mapping the supplied collection of CSS class names to the
|
|
81
58
|
* corresponding internal elements and states of this component.
|
|
@@ -100,7 +77,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
100
77
|
* @public
|
|
101
78
|
*/
|
|
102
79
|
css: _propTypes2["default"].object,
|
|
103
|
-
|
|
104
80
|
/**
|
|
105
81
|
* Disables the component and becomes non-interactive.
|
|
106
82
|
*
|
|
@@ -109,7 +85,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
109
85
|
* @public
|
|
110
86
|
*/
|
|
111
87
|
disabled: _propTypes2["default"].bool,
|
|
112
|
-
|
|
113
88
|
/**
|
|
114
89
|
* Flip the icon horizontally, vertically or both.
|
|
115
90
|
*
|
|
@@ -117,7 +92,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
117
92
|
* @public
|
|
118
93
|
*/
|
|
119
94
|
flip: _propTypes2["default"].string,
|
|
120
|
-
|
|
121
95
|
/**
|
|
122
96
|
* The icon.
|
|
123
97
|
*
|
|
@@ -128,7 +102,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
128
102
|
* @public
|
|
129
103
|
*/
|
|
130
104
|
icon: _propTypes["default"].renderableOverride,
|
|
131
|
-
|
|
132
105
|
/**
|
|
133
106
|
* The component used to render the `icon`.
|
|
134
107
|
*
|
|
@@ -139,7 +112,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
139
112
|
* @type {Component}
|
|
140
113
|
*/
|
|
141
114
|
iconComponent: _propTypes["default"].component,
|
|
142
|
-
|
|
143
115
|
/**
|
|
144
116
|
* Enables this component to be used in an "inline" context.
|
|
145
117
|
*
|
|
@@ -151,7 +123,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
151
123
|
* @public
|
|
152
124
|
*/
|
|
153
125
|
inline: _propTypes2["default"].bool,
|
|
154
|
-
|
|
155
126
|
/**
|
|
156
127
|
* The position of the label in relation to the icon element.
|
|
157
128
|
*
|
|
@@ -170,7 +141,6 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
170
141
|
* @public
|
|
171
142
|
*/
|
|
172
143
|
labelPosition: _propTypes2["default"].oneOf(['above', 'after', 'before', 'below', 'left', 'right']),
|
|
173
|
-
|
|
174
144
|
/**
|
|
175
145
|
* The size of the icon.
|
|
176
146
|
*
|
|
@@ -194,8 +164,8 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
194
164
|
computed: {
|
|
195
165
|
className: function className(_ref) {
|
|
196
166
|
var inline = _ref.inline,
|
|
197
|
-
|
|
198
|
-
|
|
167
|
+
labelPosition = _ref.labelPosition,
|
|
168
|
+
styler = _ref.styler;
|
|
199
169
|
return styler.append(labelPosition, {
|
|
200
170
|
inline: inline
|
|
201
171
|
});
|
|
@@ -208,35 +178,34 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
208
178
|
},
|
|
209
179
|
render: function render(_ref3) {
|
|
210
180
|
var css = _ref3.css,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
181
|
+
children = _ref3.children,
|
|
182
|
+
componentRef = _ref3.componentRef,
|
|
183
|
+
disabled = _ref3.disabled,
|
|
184
|
+
flip = _ref3.flip,
|
|
185
|
+
icon = _ref3.icon,
|
|
186
|
+
Icon = _ref3.iconComponent,
|
|
187
|
+
orientation = _ref3.orientation,
|
|
188
|
+
size = _ref3.size,
|
|
189
|
+
rest = _objectWithoutProperties(_ref3, _excluded);
|
|
221
190
|
delete rest.inline;
|
|
222
|
-
var iconClassName = css.icon;
|
|
191
|
+
var iconClassName = css.icon;
|
|
192
|
+
|
|
193
|
+
// Rearrange the props to support custom JSX components
|
|
223
194
|
// `icon` is normally passed to `iconComponent` as children, but if `icon` is instead a
|
|
224
195
|
// rendered JSX component, it should become a child of `Cell.icon` and iconComponent should
|
|
225
196
|
// use Cell's default value. We must also reposition the `icon` class
|
|
226
|
-
|
|
227
197
|
if ( /*#__PURE__*/(0, _react.isValidElement)(icon)) {
|
|
228
198
|
icon = (0, _ComponentOverride["default"])({
|
|
229
199
|
component: icon,
|
|
230
200
|
className: iconClassName,
|
|
231
201
|
disabled: disabled,
|
|
232
202
|
size: size
|
|
233
|
-
});
|
|
203
|
+
});
|
|
204
|
+
// Removing size and iconComponent from CellBase
|
|
234
205
|
// eslint-disable-next-line no-undefined
|
|
235
|
-
|
|
236
206
|
size = Icon = undefined;
|
|
237
207
|
iconClassName = null;
|
|
238
208
|
}
|
|
239
|
-
|
|
240
209
|
delete rest.inline;
|
|
241
210
|
delete rest.labelPosition;
|
|
242
211
|
return _Layout.LayoutBase.inline(_objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -267,6 +236,7 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
267
236
|
}));
|
|
268
237
|
}
|
|
269
238
|
});
|
|
239
|
+
|
|
270
240
|
/**
|
|
271
241
|
* A higher-order component that adds [slot]{@link ui/Slottable.Slottable} support to [LabeledIconBase]{@link ui/LabeledIcon.LabeledIconBase}
|
|
272
242
|
*
|
|
@@ -275,13 +245,13 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
275
245
|
* @mixes ui/Slottable.Slottable
|
|
276
246
|
* @public
|
|
277
247
|
*/
|
|
278
|
-
|
|
279
248
|
exports.LabeledIconBase = LabeledIconBase;
|
|
280
249
|
var LabeledIconDecorator = (0, _compose["default"])((0, _ForwardRef["default"])({
|
|
281
250
|
prop: 'componentRef'
|
|
282
251
|
}), (0, _Slottable["default"])({
|
|
283
252
|
slots: ['icon']
|
|
284
253
|
}));
|
|
254
|
+
|
|
285
255
|
/**
|
|
286
256
|
* An icon component with a label without any behaviors applied to it.
|
|
287
257
|
*
|
|
@@ -300,7 +270,6 @@ var LabeledIconDecorator = (0, _compose["default"])((0, _ForwardRef["default"])(
|
|
|
300
270
|
* @ui
|
|
301
271
|
* @public
|
|
302
272
|
*/
|
|
303
|
-
|
|
304
273
|
exports.LabeledIconDecorator = LabeledIconDecorator;
|
|
305
274
|
var LabeledIcon = LabeledIconDecorator(LabeledIconBase);
|
|
306
275
|
exports.LabeledIcon = LabeledIcon;
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("@testing-library/jest-dom");
|
|
4
|
-
|
|
5
4
|
var _react = require("@testing-library/react");
|
|
6
|
-
|
|
7
5
|
var _LabeledIcon = _interopRequireDefault(require("../LabeledIcon"));
|
|
8
|
-
|
|
9
6
|
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
10
|
-
|
|
11
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
|
|
13
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
|
|
15
9
|
var iconName = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
16
10
|
"data-testid": "iconName",
|
|
17
11
|
children: "anIconName"
|
|
18
12
|
});
|
|
19
13
|
var iconLabel = 'A real label';
|
|
20
|
-
|
|
21
14
|
var iconComponent = function iconComponent(_ref) {
|
|
22
15
|
var children = _ref.children;
|
|
23
16
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
17
|
children: children
|
|
25
18
|
});
|
|
26
19
|
};
|
|
27
|
-
|
|
28
20
|
describe('LabeledIcon Specs', function () {
|
|
29
21
|
test('should insert the icon source into the icon when using the prop approach', function () {
|
|
30
22
|
(0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_LabeledIcon["default"], {
|
|
@@ -32,9 +24,7 @@ describe('LabeledIcon Specs', function () {
|
|
|
32
24
|
iconComponent: iconComponent,
|
|
33
25
|
children: iconLabel
|
|
34
26
|
}));
|
|
35
|
-
|
|
36
27
|
var icon = _react.screen.getByTestId('iconName');
|
|
37
|
-
|
|
38
28
|
var expected = 'anIconName';
|
|
39
29
|
expect(icon).toHaveClass('icon');
|
|
40
30
|
expect(icon.textContent).toBe(expected);
|
|
@@ -46,9 +36,7 @@ describe('LabeledIcon Specs', function () {
|
|
|
46
36
|
children: iconName
|
|
47
37
|
}), iconLabel]
|
|
48
38
|
}));
|
|
49
|
-
|
|
50
39
|
var icon = _react.screen.getByTestId('iconName');
|
|
51
|
-
|
|
52
40
|
var expected = 'anIconName';
|
|
53
41
|
expect(icon).toHaveClass('icon');
|
|
54
42
|
expect(icon.textContent).toBe(expected);
|
|
@@ -63,9 +51,7 @@ describe('LabeledIcon Specs', function () {
|
|
|
63
51
|
})
|
|
64
52
|
}), iconLabel]
|
|
65
53
|
}));
|
|
66
|
-
|
|
67
54
|
var customIcon = _react.screen.getByTestId('customIcon');
|
|
68
|
-
|
|
69
55
|
expect(customIcon).toBeInTheDocument();
|
|
70
56
|
});
|
|
71
57
|
test('should return a DOM node reference for `componentRef`', function () {
|
package/Layout/Cell.js
CHANGED
|
@@ -4,38 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.toFlexAlign = exports["default"] = exports.CellDecorator = exports.CellBase = exports.Cell = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("@enact/core/internal/prop-types"));
|
|
9
|
-
|
|
10
8
|
var _kind = _interopRequireDefault(require("@enact/core/kind"));
|
|
11
|
-
|
|
12
9
|
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
var _ForwardRef = _interopRequireDefault(require("../ForwardRef"));
|
|
15
|
-
|
|
16
11
|
var _resolution = _interopRequireDefault(require("../resolution"));
|
|
17
|
-
|
|
18
12
|
var _LayoutModule = _interopRequireDefault(require("./Layout.module.css"));
|
|
19
|
-
|
|
20
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
14
|
var _excluded = ["component", "componentRef"];
|
|
23
|
-
|
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
|
-
|
|
28
17
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
-
|
|
30
18
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
-
|
|
32
19
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
|
-
|
|
34
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
35
|
-
|
|
36
21
|
var toFlexAlign = function toFlexAlign(align) {
|
|
37
22
|
return align === 'end' && 'flex-end' || align === 'start' && 'flex-start' || align;
|
|
38
23
|
};
|
|
24
|
+
|
|
39
25
|
/**
|
|
40
26
|
* A stateless component that provides a space for your content in a
|
|
41
27
|
* [Layout]{@link ui/Layout.Layout}, without [CellDecorator](ui/Layout.CellDecorator) applied.
|
|
@@ -45,14 +31,10 @@ var toFlexAlign = function toFlexAlign(align) {
|
|
|
45
31
|
* @ui
|
|
46
32
|
* @public
|
|
47
33
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
34
|
exports.toFlexAlign = toFlexAlign;
|
|
51
35
|
var CellBase = (0, _kind["default"])({
|
|
52
36
|
name: 'Cell',
|
|
53
|
-
propTypes:
|
|
54
|
-
/** @lends ui/Layout.CellBase.prototype */
|
|
55
|
-
{
|
|
37
|
+
propTypes: /** @lends ui/Layout.CellBase.prototype */{
|
|
56
38
|
/**
|
|
57
39
|
* The alignment of `Cell`.
|
|
58
40
|
*
|
|
@@ -67,7 +49,6 @@ var CellBase = (0, _kind["default"])({
|
|
|
67
49
|
* @public
|
|
68
50
|
*/
|
|
69
51
|
align: _propTypes2["default"].string,
|
|
70
|
-
|
|
71
52
|
/**
|
|
72
53
|
* Any valid [Node]{@link /docs/developer-guide/glossary/#node} that should be positioned in this `Cell`.
|
|
73
54
|
*
|
|
@@ -75,7 +56,6 @@ var CellBase = (0, _kind["default"])({
|
|
|
75
56
|
* @public
|
|
76
57
|
*/
|
|
77
58
|
children: _propTypes2["default"].any,
|
|
78
|
-
|
|
79
59
|
/**
|
|
80
60
|
* The type of component to use to render as the `Cell`. May be a DOM node name (e.g 'div',
|
|
81
61
|
* 'span', etc.) or a custom component.
|
|
@@ -85,7 +65,6 @@ var CellBase = (0, _kind["default"])({
|
|
|
85
65
|
* @public
|
|
86
66
|
*/
|
|
87
67
|
component: _propTypes["default"].renderable,
|
|
88
|
-
|
|
89
68
|
/**
|
|
90
69
|
* Called with a reference to the root component.
|
|
91
70
|
*
|
|
@@ -96,7 +75,6 @@ var CellBase = (0, _kind["default"])({
|
|
|
96
75
|
* @public
|
|
97
76
|
*/
|
|
98
77
|
componentRef: _propTypes["default"].ref,
|
|
99
|
-
|
|
100
78
|
/**
|
|
101
79
|
* Sizes `Cell` to its contents.
|
|
102
80
|
*
|
|
@@ -111,7 +89,6 @@ var CellBase = (0, _kind["default"])({
|
|
|
111
89
|
* @public
|
|
112
90
|
*/
|
|
113
91
|
shrink: _propTypes2["default"].bool,
|
|
114
|
-
|
|
115
92
|
/**
|
|
116
93
|
* Sets the desired size of the Cell using any valid CSS measurement value.
|
|
117
94
|
*
|
|
@@ -144,8 +121,8 @@ var CellBase = (0, _kind["default"])({
|
|
|
144
121
|
computed: {
|
|
145
122
|
className: function className(_ref) {
|
|
146
123
|
var shrink = _ref.shrink,
|
|
147
|
-
|
|
148
|
-
|
|
124
|
+
size = _ref.size,
|
|
125
|
+
styler = _ref.styler;
|
|
149
126
|
return styler.append({
|
|
150
127
|
shrink: shrink,
|
|
151
128
|
grow: !shrink && !size
|
|
@@ -153,12 +130,11 @@ var CellBase = (0, _kind["default"])({
|
|
|
153
130
|
},
|
|
154
131
|
style: function style(_ref2) {
|
|
155
132
|
var align = _ref2.align,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
133
|
+
shrink = _ref2.shrink,
|
|
134
|
+
size = _ref2.size,
|
|
135
|
+
_style = _ref2.style;
|
|
159
136
|
if (typeof size === 'number') size = _resolution["default"].unit(_resolution["default"].scale(size), 'rem');
|
|
160
137
|
var cellSize = size;
|
|
161
|
-
|
|
162
138
|
if (!size) {
|
|
163
139
|
if (shrink) {
|
|
164
140
|
cellSize = '100%';
|
|
@@ -166,7 +142,6 @@ var CellBase = (0, _kind["default"])({
|
|
|
166
142
|
cellSize = 'none';
|
|
167
143
|
}
|
|
168
144
|
}
|
|
169
|
-
|
|
170
145
|
return _objectSpread(_objectSpread({}, _style), {}, {
|
|
171
146
|
alignSelf: toFlexAlign(align),
|
|
172
147
|
flexBasis: shrink ? null : size,
|
|
@@ -177,9 +152,8 @@ var CellBase = (0, _kind["default"])({
|
|
|
177
152
|
},
|
|
178
153
|
render: function render(_ref3) {
|
|
179
154
|
var Component = _ref3.component,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
155
|
+
componentRef = _ref3.componentRef,
|
|
156
|
+
rest = _objectWithoutProperties(_ref3, _excluded);
|
|
183
157
|
delete rest.align;
|
|
184
158
|
delete rest.shrink;
|
|
185
159
|
delete rest.size;
|
|
@@ -188,6 +162,7 @@ var CellBase = (0, _kind["default"])({
|
|
|
188
162
|
}, rest));
|
|
189
163
|
}
|
|
190
164
|
});
|
|
165
|
+
|
|
191
166
|
/**
|
|
192
167
|
* Applies Cell behaviors.
|
|
193
168
|
*
|
|
@@ -196,11 +171,11 @@ var CellBase = (0, _kind["default"])({
|
|
|
196
171
|
* @mixes ui/ForwardRef.ForwardRef
|
|
197
172
|
* @public
|
|
198
173
|
*/
|
|
199
|
-
|
|
200
174
|
exports.CellBase = CellBase;
|
|
201
175
|
var CellDecorator = (0, _ForwardRef["default"])({
|
|
202
176
|
prop: 'componentRef'
|
|
203
177
|
});
|
|
178
|
+
|
|
204
179
|
/**
|
|
205
180
|
* A stateless component that provides a space for your content in a
|
|
206
181
|
* [Layout]{@link ui/Layout.Layout}.
|
|
@@ -213,7 +188,6 @@ var CellDecorator = (0, _ForwardRef["default"])({
|
|
|
213
188
|
* @ui
|
|
214
189
|
* @public
|
|
215
190
|
*/
|
|
216
|
-
|
|
217
191
|
exports.CellDecorator = CellDecorator;
|
|
218
192
|
var Cell = CellDecorator(CellBase);
|
|
219
193
|
exports.Cell = Cell;
|