@enact/ui 4.0.10 → 4.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
The following is a curated list of changes in the Enact ui module, newest changes on the top.
|
|
4
4
|
|
|
5
|
+
## [4.0.12] - 2022-09-16
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `ui/Marquee.MarqueeDecorator` to have proper spacing for bidirectional text
|
|
10
|
+
|
|
11
|
+
## [4.0.11] - 2022-04-25
|
|
12
|
+
|
|
13
|
+
No significant changes.
|
|
14
|
+
|
|
5
15
|
## [4.0.10] - 2022-04-05
|
|
6
16
|
|
|
7
17
|
No significant changes.
|
package/Marquee/MarqueeBase.js
CHANGED
|
@@ -288,14 +288,14 @@ var MarqueeBase = (0, _kind["default"])({
|
|
|
288
288
|
css = _ref6.css,
|
|
289
289
|
duplicate = _ref6.duplicate,
|
|
290
290
|
onMarqueeComplete = _ref6.onMarqueeComplete,
|
|
291
|
-
|
|
291
|
+
rtl = _ref6.rtl,
|
|
292
|
+
rest = _objectWithoutProperties(_ref6, ["applyOffset", "children", "clientClassName", "clientRef", "clientStyle", "css", "duplicate", "onMarqueeComplete", "rtl"]);
|
|
292
293
|
|
|
293
294
|
delete rest.alignment;
|
|
294
295
|
delete rest.animating;
|
|
295
296
|
delete rest.distance;
|
|
296
297
|
delete rest.onMarqueeComplete;
|
|
297
298
|
delete rest.overflow;
|
|
298
|
-
delete rest.rtl;
|
|
299
299
|
delete rest.spacing;
|
|
300
300
|
delete rest.speed;
|
|
301
301
|
delete rest.willAnimate;
|
|
@@ -309,7 +309,10 @@ var MarqueeBase = (0, _kind["default"])({
|
|
|
309
309
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
310
310
|
className: css.spacing,
|
|
311
311
|
ref: applyOffset
|
|
312
|
-
}),
|
|
312
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
313
|
+
dir: rtl ? 'rtl' : 'ltr',
|
|
314
|
+
children: children
|
|
315
|
+
})]
|
|
313
316
|
}) : null]
|
|
314
317
|
})
|
|
315
318
|
}));
|
package/Scrollable/Scrollbar.js
CHANGED
|
@@ -63,7 +63,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
63
63
|
|
|
64
64
|
var minThumbSize = 18,
|
|
65
65
|
// Size in pixels
|
|
66
|
-
|
|
66
|
+
nop = function nop() {},
|
|
67
|
+
thumbHidingDelay = 400; // in milliseconds
|
|
67
68
|
|
|
68
69
|
/*
|
|
69
70
|
* Set CSS Varaible value.
|
|
@@ -74,6 +75,7 @@ thumbHidingDelay = 400; // in milliseconds
|
|
|
74
75
|
* @param {String} value - CSS Variable value.
|
|
75
76
|
*/
|
|
76
77
|
|
|
78
|
+
|
|
77
79
|
var setCSSVariable = function setCSSVariable(element, variable, value) {
|
|
78
80
|
_reactDom["default"].findDOMNode(element).style.setProperty(variable, value); // eslint-disable-line react/no-find-dom-node
|
|
79
81
|
|
|
@@ -270,6 +272,8 @@ ScrollbarBase.propTypes =
|
|
|
270
272
|
vertical: _propTypes["default"].bool
|
|
271
273
|
};
|
|
272
274
|
ScrollbarBase.defaultProps = {
|
|
275
|
+
childRenderer: nop,
|
|
276
|
+
// eslint-disable-line react/default-props-match-prop-types
|
|
273
277
|
corner: false,
|
|
274
278
|
css: _ScrollbarModule["default"],
|
|
275
279
|
vertical: true
|
|
@@ -1375,6 +1375,8 @@ var VirtualListBaseFactory = function VirtualListBaseFactory(type) {
|
|
|
1375
1375
|
cbScrollTo: nop,
|
|
1376
1376
|
dataSize: 0,
|
|
1377
1377
|
direction: 'vertical',
|
|
1378
|
+
itemsRenderer: nop,
|
|
1379
|
+
// eslint-disable-line react/default-props-match-prop-types
|
|
1378
1380
|
overhang: 3,
|
|
1379
1381
|
pageScroll: false,
|
|
1380
1382
|
spacing: 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"description": "A collection of simplified unstyled cross-platform UI components for Enact",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@enact/core": "^4.0.
|
|
28
|
+
"@enact/core": "^4.0.12",
|
|
29
29
|
"classnames": "^2.2.5",
|
|
30
30
|
"direction": "^1.0.1",
|
|
31
31
|
"invariant": "^2.2.2",
|