@enact/ui 3.2.3 → 3.2.7
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/A11yDecorator/A11yDecorator.js +1 -1
- package/A11yDecorator/tests/A11yDecorator-specs.js +9 -9
- package/AnnounceDecorator/Announce.js +10 -8
- package/AnnounceDecorator/AnnounceDecorator.d.ts +1 -1
- package/AnnounceDecorator/AnnounceDecorator.js +10 -8
- package/AnnounceDecorator/tests/Announce-specs.js +3 -3
- package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +4 -4
- package/BodyText/BodyText.d.ts +3 -3
- package/BodyText/BodyText.js +1 -1
- package/BodyText/tests/BodyText-specs.js +11 -7
- package/Button/Button.d.ts +8 -8
- package/Button/Button.js +5 -5
- package/CHANGELOG.md +24 -0
- package/Cancelable/Cancelable.js +15 -11
- package/Cancelable/tests/Cancelable-specs.js +20 -20
- package/Changeable/Changeable.js +12 -8
- package/Changeable/tests/Changeable-specs.js +24 -22
- package/ComponentOverride/ComponentOverride.d.ts +1 -1
- package/ComponentOverride/ComponentOverride.js +1 -1
- package/FloatingLayer/FloatingLayer.js +12 -8
- package/FloatingLayer/FloatingLayerDecorator.js +15 -11
- package/FloatingLayer/Scrim.js +12 -8
- package/FloatingLayer/tests/FloatingLayer-specs.js +3 -3
- package/FloatingLayer/tests/Scrim-specs.js +2 -2
- package/ForwardRef/ForwardRef.js +4 -2
- package/GridListImageItem/GridListImageItem.d.ts +2 -2
- package/GridListImageItem/GridListImageItem.js +7 -7
- package/Group/Group.d.ts +4 -4
- package/Group/Group.js +1 -1
- package/Group/GroupItem.js +1 -1
- package/Group/tests/Group-specs.js +9 -9
- package/Heading/Heading.d.ts +3 -2
- package/Heading/Heading.js +1 -1
- package/Heading/tests/Heading-specs.js +4 -4
- package/Icon/Icon.d.ts +5 -5
- package/Icon/Icon.js +2 -2
- package/Icon/tests/Icon-specs.js +8 -8
- package/IconButton/IconButton.d.ts +6 -6
- package/IconButton/IconButton.js +12 -6
- package/Image/Image.d.ts +1 -1
- package/Image/Image.js +5 -3
- package/Image/tests/Image-specs.js +4 -4
- package/Item/Item.d.ts +2 -2
- package/Item/Item.js +1 -1
- package/Item/tests/Item-specs.js +4 -4
- package/LabeledIcon/LabeledIcon.d.ts +6 -6
- package/LabeledIcon/LabeledIcon.js +4 -2
- package/LabeledIcon/tests/LabeledIcon-specs.js +6 -6
- package/Layout/Cell.js +4 -2
- package/Layout/Layout.d.ts +22 -22
- package/Layout/Layout.js +4 -2
- package/Layout/tests/Layout-specs.js +19 -11
- package/Marquee/MarqueeBase.js +71 -39
- package/Marquee/MarqueeController.js +14 -8
- package/Marquee/MarqueeDecorator.js +15 -11
- package/Marquee/index.d.ts +85 -81
- package/Marquee/tests/Marquee-specs.js +61 -22
- package/Measurable/Measurable.js +20 -20
- package/Media/Media.d.ts +1 -1
- package/Media/Media.js +10 -6
- package/Placeholder/PlaceholderControllerDecorator.js +13 -11
- package/Placeholder/PlaceholderDecorator.js +11 -7
- package/ProgressBar/ProgressBar.d.ts +1 -1
- package/ProgressBar/ProgressBar.js +8 -6
- package/ProgressBar/tests/ProgressBar-specs.js +4 -4
- package/RadioDecorator/RadioControllerDecorator.js +13 -9
- package/RadioDecorator/RadioDecorator.js +10 -8
- package/RadioDecorator/tests/RadioDecorator-specs.js +23 -19
- package/Repeater/Repeater.d.ts +4 -3
- package/Repeater/Repeater.js +7 -5
- package/Repeater/tests/Repeater-specs.js +15 -15
- package/Resizable/Resizable.js +12 -10
- package/Routable/Link.js +4 -4
- package/Routable/Routable.d.ts +2 -2
- package/Routable/Routable.js +5 -3
- package/Routable/Router.js +13 -7
- package/Routable/tests/Router-specs.js +30 -30
- package/Scrollable/ScrollAnimator.js +1 -3
- package/Scrollable/ScrollThumb.js +1 -1
- package/Scrollable/Scrollable.js +30 -24
- package/Scrollable/ScrollableNative.js +30 -24
- package/Scrollable/Scrollbar.js +21 -17
- package/Scroller/Scroller.d.ts +3 -3
- package/Scroller/Scroller.js +21 -11
- package/Skinnable/Skinnable.js +3 -3
- package/Skinnable/tests/Skinnable-specs.js +34 -34
- package/Skinnable/util.js +1 -1
- package/Slider/Knob.js +1 -1
- package/Slider/PositionDecorator.js +12 -8
- package/Slider/Slider.d.ts +6 -6
- package/Slider/Slider.js +6 -4
- package/SlotItem/SlotItem.d.ts +4 -4
- package/SlotItem/SlotItem.js +3 -3
- package/Slottable/Slottable.js +4 -2
- package/Slottable/tests/Slottable-specs.js +25 -25
- package/Spinner/Spinner.d.ts +3 -3
- package/Spinner/Spinner.js +6 -6
- package/Spinner/tests/Spinner-specs.js +5 -5
- package/ToggleIcon/ToggleIcon.d.ts +3 -3
- package/ToggleIcon/ToggleIcon.js +1 -1
- package/ToggleIcon/tests/ToggleIcon-specs.js +4 -4
- package/ToggleItem/ToggleItem.d.ts +15 -13
- package/ToggleItem/ToggleItem.js +8 -4
- package/ToggleItem/tests/ToggleItem-specs.js +12 -8
- package/Toggleable/Toggleable.js +15 -9
- package/Toggleable/tests/Toggleable-specs.js +33 -31
- package/Touchable/ClickAllow.js +1 -3
- package/Touchable/Drag.js +3 -1
- package/Touchable/Flick.js +1 -3
- package/Touchable/Hold.js +5 -5
- package/Touchable/Touchable.d.ts +3 -3
- package/Touchable/Touchable.js +15 -9
- package/Touchable/config.js +4 -2
- package/Touchable/tests/Touchable-specs.js +18 -18
- package/Transition/Transition.d.ts +31 -29
- package/Transition/Transition.js +15 -9
- package/Transition/tests/Transition-specs.js +23 -15
- package/ViewManager/Arranger.js +3 -1
- package/ViewManager/TransitionGroup.js +11 -7
- package/ViewManager/View.js +12 -8
- package/ViewManager/ViewManager.d.ts +10 -10
- package/ViewManager/ViewManager.js +10 -6
- package/ViewManager/tests/View-specs.js +24 -24
- package/ViewManager/tests/ViewManager-specs.js +93 -89
- package/VirtualList/VirtualList.d.ts +9 -8
- package/VirtualList/VirtualList.js +4 -4
- package/VirtualList/VirtualListBase.js +40 -24
- package/VirtualList/tests/VirtualList-specs.js +13 -13
- package/internal/IdProvider/IdProvider.js +10 -6
- package/internal/Pure/Pure.js +10 -6
- package/internal/localized-fonts/localized-fonts.js +7 -3
- package/package.json +2 -2
- package/resolution/ResolutionDecorator.js +10 -6
- package/resolution/index.js +5 -1
- package/resolution/resolution.js +1 -1
- package/resolution/tests/ResolutionDecorator-specs.js +2 -2
package/Item/tests/Item-specs.js
CHANGED
|
@@ -15,7 +15,7 @@ var tap = function tap(node) {
|
|
|
15
15
|
|
|
16
16
|
describe('Item', function () {
|
|
17
17
|
test('should create an Item that is enabled by default', function () {
|
|
18
|
-
var item = (0, _enzyme.mount)(_react["default"].createElement(_Item["default"], null, "I am an Item"));
|
|
18
|
+
var item = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Item["default"], null, "I am an Item"));
|
|
19
19
|
var expected = 0;
|
|
20
20
|
var actual = item.find({
|
|
21
21
|
disabled: true
|
|
@@ -23,7 +23,7 @@ describe('Item', function () {
|
|
|
23
23
|
expect(actual).toBe(expected);
|
|
24
24
|
});
|
|
25
25
|
test('should have \'disabled\' HTML attribute when \'disabled=true\'', function () {
|
|
26
|
-
var item = (0, _enzyme.mount)(_react["default"].createElement(_Item["default"], {
|
|
26
|
+
var item = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Item["default"], {
|
|
27
27
|
disabled: true
|
|
28
28
|
}, "I am a disabled Item"));
|
|
29
29
|
var expected = 1;
|
|
@@ -33,7 +33,7 @@ describe('Item', function () {
|
|
|
33
33
|
describe('events', function () {
|
|
34
34
|
test('should call onTap when tapped', function () {
|
|
35
35
|
var handleClick = jest.fn();
|
|
36
|
-
var item = (0, _enzyme.mount)(_react["default"].createElement(_Item["default"], {
|
|
36
|
+
var item = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Item["default"], {
|
|
37
37
|
onTap: handleClick
|
|
38
38
|
}, "I am a normal Item"));
|
|
39
39
|
tap(item);
|
|
@@ -43,7 +43,7 @@ describe('Item', function () {
|
|
|
43
43
|
});
|
|
44
44
|
test('should not call onTap when tapped and disabled', function () {
|
|
45
45
|
var handleClick = jest.fn();
|
|
46
|
-
var item = (0, _enzyme.mount)(_react["default"].createElement(_Item["default"], {
|
|
46
|
+
var item = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Item["default"], {
|
|
47
47
|
disabled: true,
|
|
48
48
|
onTap: handleClick
|
|
49
49
|
}, "I am a disabled Item"));
|
|
@@ -22,8 +22,8 @@ corresponding internal Elements and states of this component.
|
|
|
22
22
|
* * `labeledIcon` - The root component class
|
|
23
23
|
* * `icon` - The icon component class
|
|
24
24
|
* * `iconCell` - Applied to the `iconComponent` directly, like `.icon` . If `icon` in a
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
React component, this class is applied to the container of the icon,
|
|
26
|
+
rather than the icon itself.
|
|
27
27
|
* * `label` - The label component class
|
|
28
28
|
* * `inline` - Applied when the inline prop is set
|
|
29
29
|
* * `above` - Applied when the labelPosition prop is set to above
|
|
@@ -61,7 +61,7 @@ also receive the `flip` and `size` props as set on the component.
|
|
|
61
61
|
* Enables this component to be used in an "inline" context.
|
|
62
62
|
*
|
|
63
63
|
* This is useful for when you have several of these components in a row and are not using a
|
|
64
|
-
|
|
64
|
+
[Layout] or flex-box configuration.
|
|
65
65
|
*/
|
|
66
66
|
inline?: boolean;
|
|
67
67
|
/**
|
|
@@ -82,7 +82,7 @@ also receive the `flip` and `size` props as set on the component.
|
|
|
82
82
|
* The size of the icon.
|
|
83
83
|
*
|
|
84
84
|
* Applies either the `small` or `large` CSS class which can be customized by
|
|
85
|
-
|
|
85
|
+
[theming] .
|
|
86
86
|
*/
|
|
87
87
|
size?: "large" | "small";
|
|
88
88
|
}
|
|
@@ -91,7 +91,7 @@ also receive the `flip` and `size` props as set on the component.
|
|
|
91
91
|
*/
|
|
92
92
|
|
|
93
93
|
export class LabeledIconBase extends React.Component<
|
|
94
|
-
|
|
94
|
+
Merge<React.HTMLProps<HTMLElement>, LabeledIconBaseProps>
|
|
95
95
|
> {}
|
|
96
96
|
|
|
97
97
|
export interface LabeledIconDecoratorProps
|
|
@@ -114,7 +114,7 @@ export interface LabeledIconProps
|
|
|
114
114
|
*/
|
|
115
115
|
|
|
116
116
|
export class LabeledIcon extends React.Component<
|
|
117
|
-
|
|
117
|
+
Merge<React.HTMLProps<HTMLElement>, LabeledIconProps>
|
|
118
118
|
> {}
|
|
119
119
|
|
|
120
120
|
export default LabeledIcon;
|
|
@@ -25,7 +25,9 @@ var _LabeledIconModule = _interopRequireDefault(require("./LabeledIcon.module.cs
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
|
|
28
|
-
function
|
|
28
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
+
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
29
31
|
|
|
30
32
|
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; }
|
|
31
33
|
|
|
@@ -230,7 +232,7 @@ var LabeledIconBase = (0, _kind["default"])({
|
|
|
230
232
|
shrink: true,
|
|
231
233
|
size: '100%',
|
|
232
234
|
className: css.iconCell,
|
|
233
|
-
children: Icon ? _react["default"].createElement(Icon, {
|
|
235
|
+
children: Icon ? /*#__PURE__*/_react["default"].createElement(Icon, {
|
|
234
236
|
className: iconClassName,
|
|
235
237
|
disabled: disabled,
|
|
236
238
|
flip: flip,
|
|
@@ -17,12 +17,12 @@ var iconLabel = 'A real label';
|
|
|
17
17
|
|
|
18
18
|
var iconComponent = function iconComponent(_ref) {
|
|
19
19
|
var children = _ref.children;
|
|
20
|
-
return _react["default"].createElement("div", null, children);
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, children);
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
describe('LabeledIcon Specs', function () {
|
|
24
24
|
test('should insert the icon source into the icon when using the prop approach', function () {
|
|
25
|
-
var labeledIcon = (0, _enzyme.mount)(_react["default"].createElement(_LabeledIcon["default"], {
|
|
25
|
+
var labeledIcon = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_LabeledIcon["default"], {
|
|
26
26
|
icon: iconName,
|
|
27
27
|
iconComponent: iconComponent
|
|
28
28
|
}, iconLabel));
|
|
@@ -31,17 +31,17 @@ describe('LabeledIcon Specs', function () {
|
|
|
31
31
|
expect(actual).toBe(expected);
|
|
32
32
|
});
|
|
33
33
|
test('should insert the icon source into the icon slot element', function () {
|
|
34
|
-
var labeledIcon = (0, _enzyme.mount)(_react["default"].createElement(_LabeledIcon["default"], {
|
|
34
|
+
var labeledIcon = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_LabeledIcon["default"], {
|
|
35
35
|
iconComponent: iconComponent
|
|
36
|
-
}, _react["default"].createElement("icon", null, iconName), iconLabel));
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement("icon", null, iconName), iconLabel));
|
|
37
37
|
var expected = iconName;
|
|
38
38
|
var actual = labeledIcon.find(".".concat(_LabeledIconModule["default"].icon)).first().text();
|
|
39
39
|
expect(actual).toBe(expected);
|
|
40
40
|
});
|
|
41
41
|
test('should insert custom icon components into the icon slot', function () {
|
|
42
|
-
var labeledIcon = (0, _enzyme.mount)(_react["default"].createElement(_LabeledIcon["default"], {
|
|
42
|
+
var labeledIcon = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_LabeledIcon["default"], {
|
|
43
43
|
iconComponent: iconComponent
|
|
44
|
-
}, _react["default"].createElement("icon", null, _react["default"].createElement(_Icon["default"], null, iconName)), iconLabel));
|
|
44
|
+
}, /*#__PURE__*/_react["default"].createElement("icon", null, /*#__PURE__*/_react["default"].createElement(_Icon["default"], null, iconName)), iconLabel));
|
|
45
45
|
var expected = 1;
|
|
46
46
|
var actual = labeledIcon.find(_Icon["default"]);
|
|
47
47
|
expect(actual).toHaveLength(expected);
|
package/Layout/Cell.js
CHANGED
|
@@ -25,7 +25,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
25
25
|
|
|
26
26
|
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; }
|
|
27
27
|
|
|
28
|
-
function
|
|
28
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
+
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
29
31
|
|
|
30
32
|
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; }
|
|
31
33
|
|
|
@@ -176,7 +178,7 @@ var CellBase = (0, _kind["default"])({
|
|
|
176
178
|
delete rest.align;
|
|
177
179
|
delete rest.shrink;
|
|
178
180
|
delete rest.size;
|
|
179
|
-
return _react["default"].createElement(Component, Object.assign({
|
|
181
|
+
return /*#__PURE__*/_react["default"].createElement(Component, Object.assign({
|
|
180
182
|
ref: componentRef
|
|
181
183
|
}, rest));
|
|
182
184
|
}
|
package/Layout/Layout.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ horizontally in the case of a vertical layout. `"start"` , `"center"` and
|
|
|
19
19
|
*/
|
|
20
20
|
align?: string;
|
|
21
21
|
/**
|
|
22
|
-
* Any valid
|
|
22
|
+
* Any valid [Node] that should be positioned in this `Cell` .
|
|
23
23
|
*/
|
|
24
24
|
children?: Any;
|
|
25
25
|
/**
|
|
@@ -33,14 +33,14 @@ horizontally in the case of a vertical layout. `"start"` , `"center"` and
|
|
|
33
33
|
* A `shrink` able cell will contract to its minimum size, according to the dimensions of its
|
|
34
34
|
contents. This is used when you want the size of this Cell's content to influence the
|
|
35
35
|
dimensions of this cell. `shrink` will not allow the contents of the Layout to be pushed
|
|
36
|
-
beyond its boundaries (overflowing). See the
|
|
36
|
+
beyond its boundaries (overflowing). See the [size] property
|
|
37
37
|
for more details.
|
|
38
38
|
*/
|
|
39
39
|
shrink?: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* Sets the desired size of the Cell using any valid CSS measurement value.
|
|
42
42
|
*
|
|
43
|
-
* When used in conjunction with
|
|
43
|
+
* When used in conjunction with [shrink] , the size will be
|
|
44
44
|
the maximum size, shrinking as necessary, to fit the content.
|
|
45
45
|
*
|
|
46
46
|
* E.g.
|
|
@@ -50,18 +50,18 @@ and will match your contents size if it's smaller
|
|
|
50
50
|
*
|
|
51
51
|
* This accepts any valid CSS measurement value string. If a numeric value is used, it will
|
|
52
52
|
be treated as a pixel value and converted to a
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
[relative unit] based on the rules of
|
|
54
|
+
[resolution independence] .
|
|
55
55
|
*/
|
|
56
56
|
size?: string | number;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* A stateless component that provides a space for your content in a
|
|
60
|
-
|
|
60
|
+
[Layout] , without applied.
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
63
|
export class CellBase extends React.Component<
|
|
64
|
-
|
|
64
|
+
Merge<React.HTMLProps<HTMLElement>, CellBaseProps>
|
|
65
65
|
> {}
|
|
66
66
|
|
|
67
67
|
export interface CellDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
|
|
@@ -73,7 +73,7 @@ export interface LayoutBaseProps {
|
|
|
73
73
|
/**
|
|
74
74
|
* The alignment of children.
|
|
75
75
|
*
|
|
76
|
-
* Aligns the children
|
|
76
|
+
* Aligns the children [Cells] vertically in the case of a horizontal
|
|
77
77
|
layout or horizontally in the case of a vertical layout. `"start"` , `"center"` and
|
|
78
78
|
`"end"` are the most commonly used, although all values of `align-items` are supported.
|
|
79
79
|
`"start"` refers to the top in a horizontal layout, and left in a vertical LTR layout
|
|
@@ -86,7 +86,7 @@ separated by a space.
|
|
|
86
86
|
*/
|
|
87
87
|
align?: string;
|
|
88
88
|
/**
|
|
89
|
-
* Only
|
|
89
|
+
* Only [Cell] components are supported as children.
|
|
90
90
|
*/
|
|
91
91
|
children?: Cell | Cell[];
|
|
92
92
|
/**
|
|
@@ -100,7 +100,7 @@ instead of carving out the entire horizontal space for itself.
|
|
|
100
100
|
*/
|
|
101
101
|
inline?: boolean;
|
|
102
102
|
/**
|
|
103
|
-
* The orientation of the `Layout` , i.e. how the children
|
|
103
|
+
* The orientation of the `Layout` , i.e. how the children [Cells] are
|
|
104
104
|
positioned on the screen. Must be either `'horizontal'` or `'vertical'` .
|
|
105
105
|
*/
|
|
106
106
|
orientation?: string;
|
|
@@ -118,9 +118,9 @@ additional lines are placed above/before the preceding line instead of below/aft
|
|
|
118
118
|
/**
|
|
119
119
|
* A container for `Cell` s.
|
|
120
120
|
*
|
|
121
|
-
* A stateless component that acts as a containing area for
|
|
121
|
+
* A stateless component that acts as a containing area for [Cells] to be
|
|
122
122
|
positioned in a row or a column (horizontally or vertically, respectively. It supports an
|
|
123
|
-
|
|
123
|
+
[orientation] property for laying-out its contents
|
|
124
124
|
( `Cells` ) in an organized, readable way.
|
|
125
125
|
*
|
|
126
126
|
* Example:
|
|
@@ -142,17 +142,17 @@ import css from './LayoutExample.less';
|
|
|
142
142
|
*/
|
|
143
143
|
|
|
144
144
|
export class LayoutBase extends React.Component<
|
|
145
|
-
|
|
145
|
+
Merge<React.HTMLProps<HTMLElement>, LayoutBaseProps>
|
|
146
146
|
> {}
|
|
147
147
|
|
|
148
148
|
export interface CellProps extends Merge<CellBaseProps, CellDecoratorProps> {}
|
|
149
149
|
/**
|
|
150
150
|
* A stateless component that provides a space for your content in a
|
|
151
|
-
|
|
151
|
+
[Layout] .
|
|
152
152
|
*/
|
|
153
153
|
|
|
154
154
|
export class Cell extends React.Component<
|
|
155
|
-
|
|
155
|
+
Merge<React.HTMLProps<HTMLElement>, CellProps>
|
|
156
156
|
> {}
|
|
157
157
|
|
|
158
158
|
export interface LayoutDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
|
|
@@ -165,9 +165,9 @@ export interface LayoutProps
|
|
|
165
165
|
/**
|
|
166
166
|
* A container for `Cell` s.
|
|
167
167
|
*
|
|
168
|
-
* A stateless component that acts as a containing area for
|
|
168
|
+
* A stateless component that acts as a containing area for [Cells] to be
|
|
169
169
|
positioned in a row or a column (horizontally or vertically, respectively. It supports an
|
|
170
|
-
|
|
170
|
+
[orientation] property for laying-out its contents
|
|
171
171
|
( `Cells` ) in an organized, readable way.
|
|
172
172
|
*
|
|
173
173
|
* Example:
|
|
@@ -189,14 +189,14 @@ import css from './LayoutExample.less';
|
|
|
189
189
|
*/
|
|
190
190
|
|
|
191
191
|
export class Layout extends React.Component<
|
|
192
|
-
|
|
192
|
+
Merge<React.HTMLProps<HTMLElement>, LayoutProps>
|
|
193
193
|
> {}
|
|
194
194
|
|
|
195
195
|
export interface ColumnProps
|
|
196
196
|
extends Merge<LayoutProps, ui_ForwardRef_ForwardRefProps> {}
|
|
197
197
|
/**
|
|
198
198
|
* Shorthand for `<Layout orientation="vertical">` , which positions its
|
|
199
|
-
|
|
199
|
+
[Cells] vertically.
|
|
200
200
|
* ```
|
|
201
201
|
┌────┐
|
|
202
202
|
├────┤
|
|
@@ -207,14 +207,14 @@ export interface ColumnProps
|
|
|
207
207
|
*/
|
|
208
208
|
|
|
209
209
|
export class Column extends React.Component<
|
|
210
|
-
|
|
210
|
+
Merge<React.HTMLProps<HTMLElement>, ColumnProps>
|
|
211
211
|
> {}
|
|
212
212
|
|
|
213
213
|
export interface RowProps
|
|
214
214
|
extends Merge<LayoutProps, ui_ForwardRef_ForwardRefProps> {}
|
|
215
215
|
/**
|
|
216
216
|
* Shorthand for `<Layout orientation="horizontal">` , which positions its
|
|
217
|
-
|
|
217
|
+
[Cells] horizontally.
|
|
218
218
|
* ```
|
|
219
219
|
┌─┬─┬─┬─┐
|
|
220
220
|
│ │ │ │ │
|
|
@@ -223,7 +223,7 @@ export interface RowProps
|
|
|
223
223
|
*/
|
|
224
224
|
|
|
225
225
|
export class Row extends React.Component<
|
|
226
|
-
|
|
226
|
+
Merge<React.HTMLProps<HTMLElement>, RowProps>
|
|
227
227
|
> {}
|
|
228
228
|
|
|
229
229
|
export default Layout;
|
package/Layout/Layout.js
CHANGED
|
@@ -43,7 +43,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
43
43
|
|
|
44
44
|
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; }
|
|
45
45
|
|
|
46
|
-
function
|
|
46
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
47
|
+
|
|
48
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
47
49
|
|
|
48
50
|
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; }
|
|
49
51
|
|
|
@@ -206,7 +208,7 @@ var LayoutBase = (0, _kind["default"])({
|
|
|
206
208
|
delete rest.inline;
|
|
207
209
|
delete rest.orientation;
|
|
208
210
|
delete rest.wrap;
|
|
209
|
-
return _react["default"].createElement(Component, Object.assign({
|
|
211
|
+
return /*#__PURE__*/_react["default"].createElement(Component, Object.assign({
|
|
210
212
|
ref: componentRef
|
|
211
213
|
}, rest));
|
|
212
214
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
var _react = _interopRequireDefault(require("react"));
|
|
4
6
|
|
|
5
7
|
var _enzyme = require("enzyme");
|
|
@@ -8,17 +10,23 @@ var _Layout = _interopRequireWildcard(require("../Layout"));
|
|
|
8
10
|
|
|
9
11
|
var _LayoutModule = _interopRequireDefault(require("../Layout.module.css"));
|
|
10
12
|
|
|
11
|
-
function
|
|
13
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
14
|
+
|
|
15
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
16
|
|
|
13
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
18
|
|
|
15
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; }
|
|
16
20
|
|
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
21
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
22
|
+
|
|
23
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24
|
+
|
|
25
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
26
|
|
|
19
|
-
function
|
|
27
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
28
|
|
|
21
|
-
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
29
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
22
30
|
|
|
23
31
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
32
|
|
|
@@ -30,18 +38,18 @@ describe('Layout Specs', function () {
|
|
|
30
38
|
resolved = _ref2[1];
|
|
31
39
|
|
|
32
40
|
test("should apply '".concat(resolved, "' style value given an align prop value of \"").concat(value, "\""), function () {
|
|
33
|
-
var wrapped = (0, _enzyme.mount)(_react["default"].createElement(_Layout["default"], {
|
|
41
|
+
var wrapped = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Layout["default"], {
|
|
34
42
|
align: value
|
|
35
|
-
}, _react["default"].createElement(_Layout.Cell, null, "Body")));
|
|
43
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Cell, null, "Body")));
|
|
36
44
|
var expected = resolved;
|
|
37
45
|
var actual = wrapped.find(".".concat(_LayoutModule["default"].layout)).prop('style').alignItems;
|
|
38
46
|
expect(actual).toContain(expected);
|
|
39
47
|
});
|
|
40
48
|
});
|
|
41
49
|
test('should apply a class for inline', function () {
|
|
42
|
-
var wrapped = (0, _enzyme.mount)(_react["default"].createElement(_Layout["default"], {
|
|
50
|
+
var wrapped = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Layout["default"], {
|
|
43
51
|
inline: true
|
|
44
|
-
}, _react["default"].createElement(_Layout.Cell, null, "Body")));
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Cell, null, "Body")));
|
|
45
53
|
var expected = true;
|
|
46
54
|
var actual = wrapped.find(".".concat(_LayoutModule["default"].layout)).hasClass(_LayoutModule["default"].inline);
|
|
47
55
|
expect(actual).toBe(expected);
|
|
@@ -57,7 +65,7 @@ describe('Layout Specs', function () {
|
|
|
57
65
|
test("should apply classes for ".concat(prop), function () {
|
|
58
66
|
var propValue = _defineProperty({}, prop, value);
|
|
59
67
|
|
|
60
|
-
var wrapped = (0, _enzyme.mount)(_react["default"].createElement(_Layout["default"], propValue, _react["default"].createElement(_Layout.Cell, null, "Body")));
|
|
68
|
+
var wrapped = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Layout["default"], propValue, /*#__PURE__*/_react["default"].createElement(_Layout.Cell, null, "Body")));
|
|
61
69
|
var expected = true;
|
|
62
70
|
var actual = wrapped.find(".".concat(_LayoutModule["default"].layout)).hasClass(_LayoutModule["default"][value]);
|
|
63
71
|
expect(actual).toBe(expected);
|
|
@@ -70,7 +78,7 @@ describe('Layout Specs', function () {
|
|
|
70
78
|
test("should apply a class for ".concat(prop), function () {
|
|
71
79
|
var props = _defineProperty({}, prop, true);
|
|
72
80
|
|
|
73
|
-
var wrapped = (0, _enzyme.mount)(_react["default"].createElement(_Layout.Cell, props, "Body"));
|
|
81
|
+
var wrapped = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Layout.Cell, props, "Body"));
|
|
74
82
|
var expected = true;
|
|
75
83
|
var actual = wrapped.find(".".concat(_LayoutModule["default"].cell)).hasClass(_LayoutModule["default"][prop]);
|
|
76
84
|
expect(actual).toBe(expected);
|
|
@@ -86,7 +94,7 @@ describe('Layout Specs', function () {
|
|
|
86
94
|
test("should apply flexBasis styles the size prop value ".concat(value), function () {
|
|
87
95
|
var propValue = _defineProperty({}, prop, value);
|
|
88
96
|
|
|
89
|
-
var wrapped = (0, _enzyme.mount)(_react["default"].createElement(_Layout["default"], null, _react["default"].createElement(_Layout.Cell, propValue, "Body")));
|
|
97
|
+
var wrapped = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Layout["default"], null, /*#__PURE__*/_react["default"].createElement(_Layout.Cell, propValue, "Body")));
|
|
90
98
|
var expected = value;
|
|
91
99
|
var actual = wrapped.find(".".concat(_LayoutModule["default"].cell)).prop('style').flexBasis;
|
|
92
100
|
expect(actual).toContain(expected);
|
package/Marquee/MarqueeBase.js
CHANGED
|
@@ -24,19 +24,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
24
24
|
var isEventSource = function isEventSource(ev) {
|
|
25
25
|
return ev.target === ev.currentTarget;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
var applyOffset = function applyOffset(node) {
|
|
29
|
-
if (!node || !global.IntersectionObserver) return;
|
|
30
|
-
var root = node.parentNode;
|
|
31
|
-
new global.IntersectionObserver(function (entries, observer) {
|
|
32
|
-
var left = entries[0].boundingClientRect.left;
|
|
33
|
-
var offset = Math.round(left) - left;
|
|
34
|
-
node.style.setProperty('--ui-marquee-offset', offset);
|
|
35
|
-
observer.disconnect();
|
|
36
|
-
}, {
|
|
37
|
-
root: root
|
|
38
|
-
}).observe(node);
|
|
39
|
-
};
|
|
40
27
|
/**
|
|
41
28
|
* Marquees the children of the component.
|
|
42
29
|
*
|
|
@@ -76,6 +63,15 @@ var MarqueeBase = (0, _kind["default"])({
|
|
|
76
63
|
*/
|
|
77
64
|
animating: _propTypes["default"].bool,
|
|
78
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Sets the value of the `aria-label` attribute for the wrapped component.
|
|
68
|
+
*
|
|
69
|
+
* @memberof ui/Marquee.MarqueeBase.prototype
|
|
70
|
+
* @type {String}
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
'aria-label': _propTypes["default"].string,
|
|
74
|
+
|
|
79
75
|
/**
|
|
80
76
|
* The text or a set of components that should be marqueed
|
|
81
77
|
*
|
|
@@ -186,6 +182,27 @@ var MarqueeBase = (0, _kind["default"])({
|
|
|
186
182
|
publicClassNames: true
|
|
187
183
|
},
|
|
188
184
|
handlers: {
|
|
185
|
+
applyOffset: function applyOffset(node, _ref) {
|
|
186
|
+
var distance = _ref.distance,
|
|
187
|
+
rtl = _ref.rtl,
|
|
188
|
+
spacing = _ref.spacing;
|
|
189
|
+
if (!node || !global.IntersectionObserver) return;
|
|
190
|
+
var root = node.parentNode;
|
|
191
|
+
new global.IntersectionObserver(function (entries, observer) {
|
|
192
|
+
var _entries$0$boundingCl = entries[0].boundingClientRect,
|
|
193
|
+
left = _entries$0$boundingCl.left,
|
|
194
|
+
right = _entries$0$boundingCl.right;
|
|
195
|
+
var _entries$0$rootBounds = entries[0].rootBounds,
|
|
196
|
+
rootLeft = _entries$0$rootBounds.left,
|
|
197
|
+
rootRight = _entries$0$rootBounds.right;
|
|
198
|
+
var textWidth = rtl ? rootRight - right : left - rootLeft;
|
|
199
|
+
var offset = distance - (textWidth + spacing);
|
|
200
|
+
node.style.setProperty('--ui-marquee-offset', offset);
|
|
201
|
+
observer.disconnect();
|
|
202
|
+
}, {
|
|
203
|
+
root: root
|
|
204
|
+
}).observe(node);
|
|
205
|
+
},
|
|
189
206
|
onMarqueeComplete: (0, _handle.handle)((0, _handle.forProp)('animating', true), isEventSource, _handle.stop, function (ev, props) {
|
|
190
207
|
return (0, _handle.forward)('onMarqueeComplete', {
|
|
191
208
|
type: 'onMarqueeComplete'
|
|
@@ -193,24 +210,38 @@ var MarqueeBase = (0, _kind["default"])({
|
|
|
193
210
|
})
|
|
194
211
|
},
|
|
195
212
|
computed: {
|
|
196
|
-
|
|
197
|
-
var
|
|
198
|
-
|
|
199
|
-
|
|
213
|
+
'aria-label': function ariaLabel(_ref2) {
|
|
214
|
+
var aria = _ref2['aria-label'],
|
|
215
|
+
children = _ref2.children,
|
|
216
|
+
distance = _ref2.distance,
|
|
217
|
+
willAnimate = _ref2.willAnimate;
|
|
218
|
+
|
|
219
|
+
if (aria == null && willAnimate && distance > 0) {
|
|
220
|
+
return _react["default"].Children.map(children, function (c) {
|
|
221
|
+
return typeof c === 'string' && c;
|
|
222
|
+
}).filter(Boolean).join(' ') || aria;
|
|
223
|
+
} else {
|
|
224
|
+
return aria;
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
clientClassName: function clientClassName(_ref3) {
|
|
228
|
+
var animating = _ref3.animating,
|
|
229
|
+
willAnimate = _ref3.willAnimate,
|
|
230
|
+
styler = _ref3.styler;
|
|
200
231
|
return styler.join({
|
|
201
232
|
animate: animating,
|
|
202
233
|
text: true,
|
|
203
234
|
willAnimate: willAnimate
|
|
204
235
|
});
|
|
205
236
|
},
|
|
206
|
-
clientStyle: function clientStyle(
|
|
207
|
-
var alignment =
|
|
208
|
-
animating =
|
|
209
|
-
distance =
|
|
210
|
-
overflow =
|
|
211
|
-
rtl =
|
|
212
|
-
spacing =
|
|
213
|
-
speed =
|
|
237
|
+
clientStyle: function clientStyle(_ref4) {
|
|
238
|
+
var alignment = _ref4.alignment,
|
|
239
|
+
animating = _ref4.animating,
|
|
240
|
+
distance = _ref4.distance,
|
|
241
|
+
overflow = _ref4.overflow,
|
|
242
|
+
rtl = _ref4.rtl,
|
|
243
|
+
spacing = _ref4.spacing,
|
|
244
|
+
speed = _ref4.speed;
|
|
214
245
|
// If the components content directionality doesn't match the context, we need to set it
|
|
215
246
|
// inline
|
|
216
247
|
var direction = rtl ? 'rtl' : 'ltr';
|
|
@@ -232,21 +263,22 @@ var MarqueeBase = (0, _kind["default"])({
|
|
|
232
263
|
|
|
233
264
|
return style;
|
|
234
265
|
},
|
|
235
|
-
duplicate: function duplicate(
|
|
236
|
-
var distance =
|
|
237
|
-
willAnimate =
|
|
266
|
+
duplicate: function duplicate(_ref5) {
|
|
267
|
+
var distance = _ref5.distance,
|
|
268
|
+
willAnimate = _ref5.willAnimate;
|
|
238
269
|
return willAnimate && distance > 0;
|
|
239
270
|
}
|
|
240
271
|
},
|
|
241
|
-
render: function render(
|
|
242
|
-
var
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
272
|
+
render: function render(_ref6) {
|
|
273
|
+
var applyOffset = _ref6.applyOffset,
|
|
274
|
+
children = _ref6.children,
|
|
275
|
+
clientClassName = _ref6.clientClassName,
|
|
276
|
+
clientRef = _ref6.clientRef,
|
|
277
|
+
clientStyle = _ref6.clientStyle,
|
|
278
|
+
css = _ref6.css,
|
|
279
|
+
duplicate = _ref6.duplicate,
|
|
280
|
+
onMarqueeComplete = _ref6.onMarqueeComplete,
|
|
281
|
+
rest = _objectWithoutProperties(_ref6, ["applyOffset", "children", "clientClassName", "clientRef", "clientStyle", "css", "duplicate", "onMarqueeComplete"]);
|
|
250
282
|
|
|
251
283
|
delete rest.alignment;
|
|
252
284
|
delete rest.animating;
|
|
@@ -257,12 +289,12 @@ var MarqueeBase = (0, _kind["default"])({
|
|
|
257
289
|
delete rest.spacing;
|
|
258
290
|
delete rest.speed;
|
|
259
291
|
delete rest.willAnimate;
|
|
260
|
-
return _react["default"].createElement("div", rest, _react["default"].createElement("div", {
|
|
292
|
+
return /*#__PURE__*/_react["default"].createElement("div", rest, /*#__PURE__*/_react["default"].createElement("div", {
|
|
261
293
|
className: clientClassName,
|
|
262
294
|
ref: clientRef,
|
|
263
295
|
style: clientStyle,
|
|
264
296
|
onTransitionEnd: onMarqueeComplete
|
|
265
|
-
}, children, duplicate ? _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("div", {
|
|
297
|
+
}, children, duplicate ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
266
298
|
className: css.spacing,
|
|
267
299
|
ref: applyOffset
|
|
268
300
|
}), children) : null));
|