@enact/limestone 1.3.0 → 1.10.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.
Files changed (200) hide show
  1. package/.github/workflows/ci-branch.yml +21 -0
  2. package/.github/workflows/ci-pull-request.yml +16 -0
  3. package/.github/workflows/ci-reusable.yml +73 -0
  4. package/ActionGuide/ActionGuide.d.ts +5 -4
  5. package/ActionGuide/ActionGuide.module.css +1 -1
  6. package/Alert/Alert.d.ts +13 -2
  7. package/Alert/Alert.js +39 -5
  8. package/Alert/Alert.module.css +48 -1
  9. package/Alert/tests/Alert-specs.js +91 -0
  10. package/BodyText/BodyText.d.ts +5 -4
  11. package/BodyText/BodyText.module.css +7 -7
  12. package/Button/Button.d.ts +17 -12
  13. package/Button/Button.js +1 -1
  14. package/Button/Button.module.css +195 -268
  15. package/Button/tests/Button-specs.js +26 -0
  16. package/CHANGELOG.md +254 -0
  17. package/Card/Card.d.ts +40 -12
  18. package/Card/Card.js +164 -28
  19. package/Card/Card.module.css +277 -58
  20. package/Card/tests/Card-specs.js +67 -3
  21. package/Checkbox/Checkbox.d.ts +8 -7
  22. package/Checkbox/Checkbox.js +3 -1
  23. package/Checkbox/Checkbox.module.css +213 -120
  24. package/Checkbox/tests/Checkbox-specs.js +1 -1
  25. package/CheckboxItem/CheckboxItem.d.ts +22 -7
  26. package/CheckboxItem/CheckboxItem.js +71 -4
  27. package/Chips/Chip.js +72 -13
  28. package/Chips/Chip.module.css +3 -3
  29. package/Chips/Chips.js +37 -17
  30. package/Chips/Chips.module.css +1 -1
  31. package/Chips/tests/Chip-specs.js +43 -13
  32. package/Chips/tests/Chips-specs.js +31 -21
  33. package/ColorPicker/ColorPicker.js +27 -25
  34. package/ContextualMenuDecorator/ContextualMenuDecorator.d.ts +4 -5
  35. package/ContextualPopupDecorator/ContextualPopup.module.css +34 -34
  36. package/ContextualPopupDecorator/ContextualPopupDecorator.js +567 -549
  37. package/DatePicker/DatePicker.d.ts +4 -5
  38. package/DayPicker/DayPicker.d.ts +8 -7
  39. package/DayPicker/DaySelectorDecorator.js +12 -7
  40. package/Dropdown/Dropdown.d.ts +11 -13
  41. package/Dropdown/Dropdown.module.css +13 -9
  42. package/Dropdown/DropdownList.js +80 -54
  43. package/FixedPopupPanels/FixedPopupPanels.d.ts +4 -2
  44. package/FixedPopupPanels/FixedPopupPanels.module.css +18 -18
  45. package/FlexiblePopupPanels/FlexiblePopupPanels.module.css +23 -23
  46. package/FlexiblePopupPanels/useNavButtonFocus.js +7 -10
  47. package/FormCheckboxItem/FormCheckboxItem.d.ts +5 -4
  48. package/Heading/Heading.d.ts +9 -8
  49. package/Heading/Heading.js +2 -2
  50. package/Heading/Heading.module.css +5 -5
  51. package/Icon/Icon.d.ts +15 -4
  52. package/Icon/Icon.js +49 -2
  53. package/Icon/Icon.module.css +1 -1
  54. package/Icon/IconList.js +27 -1
  55. package/IconItem/IconItem.d.ts +13 -12
  56. package/IconItem/IconItem.js +15 -0
  57. package/IconItem/IconItem.module.css +107 -1
  58. package/IconItem/tests/IconItem-specs.js +30 -1
  59. package/Image/Image.d.ts +5 -4
  60. package/Image/Image.js +6 -4
  61. package/ImageItem/ImageItem.d.ts +11 -10
  62. package/ImageItem/ImageItem.js +37 -31
  63. package/ImageItem/ImageItem.module.css +30 -30
  64. package/ImageItem/tests/ImageItem-specs.js +3 -10
  65. package/Input/Input.js +21 -3
  66. package/Input/Input.module.css +37 -8
  67. package/Input/InputField.js +79 -24
  68. package/Input/InputField.module.css +273 -41
  69. package/Input/InputFieldDecoratorIcon.js +1 -0
  70. package/Input/InputFieldSpotlightDecorator.js +257 -228
  71. package/Input/index.d.ts +120 -111
  72. package/Input/tests/Input-specs.js +26 -0
  73. package/Input/tests/InputField-specs.js +170 -3
  74. package/Input/tests/InputPopup-specs.js +1 -1
  75. package/Item/Item.d.ts +16 -9
  76. package/Item/Item.js +20 -2
  77. package/Item/Item.module.css +1 -1
  78. package/KeyGuide/KeyGuide.d.ts +8 -7
  79. package/KeyGuide/KeyGuide.js +29 -27
  80. package/KeyGuide/KeyGuide.module.css +25 -1
  81. package/Marquee/Marquee.d.ts +2 -4
  82. package/MediaOverlay/MediaOverlay.d.ts +12 -11
  83. package/MediaOverlay/MediaOverlay.js +43 -21
  84. package/MediaOverlay/MediaOverlay.module.css +114 -15
  85. package/MediaOverlay/tests/MediaOverlay-specs.js +29 -0
  86. package/MediaPlayer/MediaControls.js +195 -13
  87. package/MediaPlayer/MediaControls.module.css +3 -2
  88. package/MediaPlayer/MediaSlider.module.css +7 -20
  89. package/MediaPlayer/index.d.ts +59 -7
  90. package/MediaPlayer/tests/util-specs.js +4 -1
  91. package/PageViews/PageViews.js +232 -82
  92. package/PageViews/PageViews.module.css +3 -0
  93. package/PageViews/PageViewsRouter.js +100 -42
  94. package/PageViews/tests/PageViews-specs.js +171 -0
  95. package/Panels/Header.js +54 -34
  96. package/Panels/Header.module.css +83 -31
  97. package/Panels/Panel.module.css +1 -1
  98. package/Panels/index.d.ts +7 -8
  99. package/Picker/Picker.d.ts +4 -5
  100. package/Picker/Picker.module.css +2 -2
  101. package/Popup/Popup.js +245 -242
  102. package/Popup/Popup.module.css +24 -24
  103. package/PopupTabLayout/PopupTabLayout.d.ts +5 -7
  104. package/PopupTabLayout/PopupTabLayout.js +26 -18
  105. package/PopupTabLayout/PopupTabLayout.module.css +53 -16
  106. package/PopupTabLayout/PopupTabLayoutStateContext.js +8 -0
  107. package/ProgressBar/ProgressBar.d.ts +5 -4
  108. package/ProgressBar/ProgressBarTooltip.module.css +12 -12
  109. package/ProgressButton/ProgressButton.d.ts +4 -5
  110. package/QuickGuidePanels/QuickGuidePanels.module.css +2 -2
  111. package/RadioItem/RadioItem.d.ts +18 -5
  112. package/RadioItem/RadioItem.js +69 -2
  113. package/RadioItem/RadioItem.module.css +36 -36
  114. package/RangePicker/RangePicker.module.css +2 -2
  115. package/Scroller/EditableWrapper.js +28 -18
  116. package/Scroller/Scroller.d.ts +20 -16
  117. package/Scroller/Scroller.js +20 -13
  118. package/Scroller/Scroller.module.css +4 -4
  119. package/Scroller/useThemeScroller.js +3 -3
  120. package/Slider/Slider.d.ts +20 -14
  121. package/Slider/Slider.js +71 -14
  122. package/Slider/Slider.module.css +464 -91
  123. package/Slider/SliderBehaviorDecorator.js +16 -14
  124. package/Slider/tests/Slider-specs.js +53 -1
  125. package/Slider/utils.js +23 -7
  126. package/Spinner/Spinner.d.ts +5 -4
  127. package/Spinner/Spinner.js +10 -8
  128. package/Spinner/Spinner.module.css +9 -9
  129. package/Steps/Steps.d.ts +5 -4
  130. package/Steps/Steps.js +9 -5
  131. package/Switch/Switch.d.ts +8 -7
  132. package/Switch/Switch.module.css +100 -13
  133. package/SwitchItem/SwitchItem.d.ts +9 -6
  134. package/TabLayout/RefocusDecorator.js +26 -18
  135. package/TabLayout/TabGroup.js +3 -2
  136. package/TabLayout/TabGroup.module.css +2 -2
  137. package/TabLayout/TabLayout.d.ts +6 -0
  138. package/TabLayout/TabLayout.js +11 -1
  139. package/TabLayout/TabLayout.module.css +18 -0
  140. package/TabLayout/tests/TabGroup-specs.js +1 -1
  141. package/TabLayout/tests/TabLayout-specs.js +52 -0
  142. package/ThemeDecorator/AccessibilityDecorator.js +12 -11
  143. package/ThemeDecorator/I18nFontDecorator.js +6 -4
  144. package/ThemeDecorator/ThemeDecorator.d.ts +16 -10
  145. package/ThemeDecorator/ThemeDecorator.js +24 -9
  146. package/ThemeDecorator/fontGenerator.js +1 -1
  147. package/ThemeDecorator/screenTypes.json +1 -0
  148. package/TimePicker/TimePicker.module.css +1 -1
  149. package/TimePicker/TimePickerBase.js +5 -3
  150. package/TooltipDecorator/Tooltip.module.css +1 -2
  151. package/TooltipDecorator/TooltipDecorator.js +12 -7
  152. package/TooltipDecorator/tests/useTooltip-specs.js +5 -2
  153. package/TooltipDecorator/tests/util-specs.js +12 -0
  154. package/TooltipDecorator/useTooltip.js +1 -1
  155. package/TooltipDecorator/util.js +18 -11
  156. package/VideoPlayer/Feedback.js +3 -0
  157. package/VideoPlayer/Feedback.module.css +5 -9
  158. package/VideoPlayer/FeedbackIcons.js +1 -1
  159. package/VideoPlayer/FeedbackTooltip.module.css +55 -11
  160. package/VideoPlayer/VideoPlayer.d.ts +44 -18
  161. package/VideoPlayer/VideoPlayer.js +153 -47
  162. package/VideoPlayer/VideoPlayer.module.css +28 -11
  163. package/VirtualList/VirtualList.d.ts +9 -2
  164. package/VirtualList/VirtualList.js +51 -24
  165. package/VirtualList/tests/VirtualGridList-translate-specs.js +3 -0
  166. package/VirtualList/tests/VirtualList-specs.js +28 -1
  167. package/VirtualList/tests/VirtualList-translate-specs.js +4 -1
  168. package/VirtualList/useSpotlight.js +1 -1
  169. package/WizardPanels/WizardPanels.module.css +2 -2
  170. package/WizardPanels/index.d.ts +4 -2
  171. package/fonts/Limestone_Icons.ttf +0 -0
  172. package/internal/$L/$L.js +3 -3
  173. package/internal/AsyncRenderChildren/AsyncRenderChildren.js +9 -5
  174. package/internal/AsyncRenderChildren/tests/AsyncRenderChildren-specs.js +4 -1
  175. package/internal/DateComponentPicker/DateComponentPicker.module.css +2 -2
  176. package/internal/DateTime/DateTime.module.css +1 -0
  177. package/internal/DateTime/DateTimeDecorator.js +5 -4
  178. package/internal/Panels/PanelsRouter.js +48 -31
  179. package/internal/Panels/useAutoFocus.js +10 -6
  180. package/internal/Panels/useFocusOnTransition.js +4 -3
  181. package/internal/Picker/Picker.js +7 -5
  182. package/internal/Picker/Picker.module.css +2 -2
  183. package/internal/Picker/SpottablePicker.js +15 -13
  184. package/internal/SharedStateDecorator/SharedStateDecorator.js +78 -99
  185. package/internal/validators/validators.js +21 -2
  186. package/package.json +18 -15
  187. package/styles/colors-highcontrast.less +9 -1
  188. package/styles/colors.less +12 -7
  189. package/styles/motion-mixins.less +66 -0
  190. package/styles/motions.less +78 -0
  191. package/styles/variables.less +176 -150
  192. package/useScroll/HoverToScroll.js +23 -17
  193. package/useScroll/Scrollbar.js +14 -10
  194. package/useScroll/ScrollbarPlaceholder.js +3 -5
  195. package/useScroll/ScrollbarTrack.js +7 -5
  196. package/useScroll/ScrollbarTrack.module.css +8 -8
  197. package/useScroll/useEvent.js +14 -3
  198. package/useScroll/useScroll.js +12 -2
  199. package/useScroll/useScroll.module.css +6 -6
  200. package/.travis.yml +0 -40
@@ -63,14 +63,15 @@ var isEnter = (0, _keymap.is)('enter');
63
63
  var isLeft = (0, _keymap.is)('left');
64
64
  var isRight = (0, _keymap.is)('right');
65
65
  var isUp = (0, _keymap.is)('up');
66
- var DivComponent = function DivComponent(_ref) {
67
- var ref = _ref.ref,
68
- rest = _objectWithoutProperties(_ref, _excluded);
66
+ var _DivComponent = function DivComponent(props) {
67
+ (0, _util.checkPropTypes)(_DivComponent, props);
68
+ var ref = props.ref,
69
+ rest = _objectWithoutProperties(props, _excluded);
69
70
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({
70
71
  ref: ref
71
72
  }, rest));
72
73
  };
73
- DivComponent.propTypes = {
74
+ _DivComponent.propTypes = {
74
75
  /**
75
76
  * Called with the reference to the current node.
76
77
  *
@@ -79,7 +80,7 @@ DivComponent.propTypes = {
79
80
  */
80
81
  ref: _propTypes["default"].ref
81
82
  };
82
- var Div = (0, _Touchable["default"])(DivComponent);
83
+ var Div = (0, _Touchable["default"])(_DivComponent);
83
84
  var SpottableDiv = (0, _Touchable["default"])((0, _ForwardRef["default"])({
84
85
  prop: 'containerRef'
85
86
  }, _SpottablePicker["default"]));
@@ -118,6 +119,7 @@ var allowedClassNames = ['picker', 'valueWrapper', 'joined', 'horizontal', 'vert
118
119
  * @private
119
120
  */
120
121
  var _PickerBase = function PickerBase(props) {
122
+ (0, _util.checkPropTypes)(_PickerBase, props);
121
123
  // Set to `true` onFocus and `false` onBlur to prevent setting aria-valuetext (which
122
124
  // will notify the user) when the component does not have focus
123
125
  var _useState = (0, _react.useState)(false),
@@ -2,7 +2,7 @@
2
2
  vertical-align: bottom;
3
3
  position: relative;
4
4
  text-align: center;
5
- margin: 0 0.75rem;
5
+ margin: 0 var(--primitive-spacing-36);
6
6
  }
7
7
  .picker .sizingPlaceholder,
8
8
  .picker .valueWrapper {
@@ -195,7 +195,7 @@
195
195
  .picker.joined.horizontal.arrow .decrementer {
196
196
  line-height: 2rem;
197
197
  height: 2.25rem;
198
- margin: 0.1875rem 0.75rem;
198
+ margin: 0.1875rem var(--primitive-spacing-36);
199
199
  padding: 0 0.375rem;
200
200
  }
201
201
  .picker.joined.vertical .valueWrapper {
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = exports.SpottablePicker = void 0;
7
7
  var _kind = _interopRequireDefault(require("@enact/core/kind"));
8
+ var _util = require("@enact/core/util");
8
9
  var _propTypes = _interopRequireDefault(require("@enact/core/internal/prop-types"));
9
10
  var _propTypes2 = _interopRequireDefault(require("prop-types"));
10
11
  var _Spottable = _interopRequireDefault(require("@enact/spotlight/Spottable"));
@@ -19,17 +20,18 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
19
20
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
21
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
21
22
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
22
- var DivComponent = function DivComponent(_ref) {
23
- var innerRef = _ref.innerRef,
24
- rest = _objectWithoutProperties(_ref, _excluded);
23
+ var _DivComponent = function DivComponent(props) {
24
+ (0, _util.checkPropTypes)(_DivComponent, props);
25
+ var innerRef = props.innerRef,
26
+ rest = _objectWithoutProperties(props, _excluded);
25
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, rest), {}, {
26
28
  ref: innerRef
27
29
  }));
28
30
  };
29
- DivComponent.propTypes = {
31
+ _DivComponent.propTypes = {
30
32
  innerRef: _propTypes["default"].ref
31
33
  };
32
- var Div = (0, _Spottable["default"])(DivComponent);
34
+ var Div = (0, _Spottable["default"])(_DivComponent);
33
35
  var SpottablePicker = exports.SpottablePicker = (0, _kind["default"])({
34
36
  name: 'SpottablePicker',
35
37
  propTypes: {
@@ -39,18 +41,18 @@ var SpottablePicker = exports.SpottablePicker = (0, _kind["default"])({
39
41
  pickerOrientation: _propTypes2["default"].string
40
42
  },
41
43
  computed: {
42
- selectionKeys: function selectionKeys(_ref2) {
43
- var changedBy = _ref2.changedBy,
44
- disabled = _ref2.disabled,
45
- pickerOrientation = _ref2.pickerOrientation;
44
+ selectionKeys: function selectionKeys(_ref) {
45
+ var changedBy = _ref.changedBy,
46
+ disabled = _ref.disabled,
47
+ pickerOrientation = _ref.pickerOrientation;
46
48
  if (disabled || pickerOrientation === 'horizontal' && changedBy === 'enter') return;
47
49
  return pickerOrientation === 'horizontal' ? [37, 39] : [38, 40];
48
50
  }
49
51
  },
50
- render: function render(_ref3) {
51
- var containerRef = _ref3.containerRef,
52
- selectionKeys = _ref3.selectionKeys,
53
- rest = _objectWithoutProperties(_ref3, _excluded2);
52
+ render: function render(_ref2) {
53
+ var containerRef = _ref2.containerRef,
54
+ selectionKeys = _ref2.selectionKeys,
55
+ rest = _objectWithoutProperties(_ref2, _excluded2);
54
56
  delete rest.changedBy;
55
57
  delete rest.pickerOrientation;
56
58
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Div, _objectSpread(_objectSpread({
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = exports.SharedStateDecorator = exports.SharedState = void 0;
7
7
  var _hoc = _interopRequireDefault(require("@enact/core/hoc"));
8
+ var _util = require("@enact/core/util");
8
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
10
  var _react = require("react");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
@@ -12,19 +13,15 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
12
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
15
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
- function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
16
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
18
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
20
17
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
- function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
23
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
24
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
18
+ function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
19
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
20
+ 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."); }
21
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
22
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
24
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
28
25
  var SharedState = exports.SharedState = /*#__PURE__*/(0, _react.createContext)(null);
29
26
  var defaultConfig = {
30
27
  idProp: 'id',
@@ -60,100 +57,81 @@ var defaultConfig = {
60
57
  * @private
61
58
  */
62
59
  var SharedStateDecorator = exports.SharedStateDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) {
63
- var _Class;
64
60
  var idProp = config.idProp,
65
61
  updateOnMount = config.updateOnMount;
66
- return _Class = /*#__PURE__*/function (_Component) {
67
- function _Class(props) {
68
- var _this;
69
- _classCallCheck(this, _Class);
70
- _this = _callSuper(this, _Class, [props]);
71
- _this.data = {};
72
- _this.sharedState = _this.initSharedState();
73
- _this.state = {
74
- updateOnMount: false
75
- };
76
- return _this;
77
- }
78
- _inherits(_Class, _Component);
79
- return _createClass(_Class, [{
80
- key: "componentDidMount",
81
- value: function componentDidMount() {
82
- this.loadFromContext();
83
- }
84
- }, {
85
- key: "componentDidUpdate",
86
- value: function componentDidUpdate(prevProps) {
87
- if (!prevProps.noSharedState && this.props.noSharedState) {
88
- this.data = {};
89
- } else if (prevProps.noSharedState && !this.props.noSharedState) {
90
- this.loadFromContext();
91
- }
92
- }
93
- }, {
94
- key: "isUpdateable",
95
- value: function isUpdateable() {
96
- var _this$props = this.props,
97
- id = _this$props[idProp],
98
- noSharedState = _this$props.noSharedState;
99
- return !noSharedState && (id || id === 0);
100
- }
101
- }, {
102
- key: "initSharedState",
103
- value: function initSharedState() {
104
- var _this2 = this;
105
- return {
106
- set: function set(key, value) {
107
- var id = _this2.props[idProp];
108
- if (_this2.isUpdateable()) {
109
- _this2.data[id] = _this2.data[id] || {};
110
- _this2.data[id][key] = value;
111
- }
112
- },
113
- get: function get(key) {
114
- var id = _this2.props[idProp];
115
- return _this2.isUpdateable() && _this2.data[id] ? _this2.data[id][key] : null;
116
- },
117
- "delete": function _delete(key) {
118
- var id = _this2.props[idProp];
119
- if (_this2.isUpdateable() && _this2.data[id]) {
120
- delete _this2.data[id][key];
121
- }
122
- }
123
- };
124
- }
125
- }, {
126
- key: "loadFromContext",
127
- value: function loadFromContext() {
128
- var _this$props2 = this.props,
129
- id = _this$props2[idProp],
130
- noSharedState = _this$props2.noSharedState;
131
- if (!noSharedState && this.context && this.context.get) {
132
- var data = this.context.get(id);
133
- if (data) {
134
- this.data = data;
135
- } else {
136
- this.context.set(id, this.data);
62
+
63
+ // eslint-disable-next-line no-shadow
64
+ var _SharedStateDecorator = function SharedStateDecorator(props) {
65
+ (0, _util.checkPropTypes)(_SharedStateDecorator, props);
66
+ var context = (0, _react.useContext)(SharedState);
67
+ var data = (0, _react.useRef)({});
68
+ var _useState = (0, _react.useState)(false),
69
+ _useState2 = _slicedToArray(_useState, 2),
70
+ setUpdateOnMountState = _useState2[1];
71
+ var isUpdatable = (0, _react.useCallback)(function () {
72
+ var id = props[idProp],
73
+ noSharedState = props.noSharedState;
74
+ return !noSharedState && (id || id === 0);
75
+ }, [props]);
76
+ var initSharedState = (0, _react.useCallback)(function () {
77
+ return {
78
+ set: function set(key, value) {
79
+ var id = props[idProp];
80
+ if (isUpdatable()) {
81
+ data.current[id] = data.current[id] || {};
82
+ data.current[id][key] = value;
137
83
  }
138
- if (updateOnMount) {
139
- this.setState({
140
- updateOnMount: true
141
- });
84
+ },
85
+ get: function get(key) {
86
+ var id = props[idProp];
87
+ return isUpdatable() && data.current[id] ? data.current[id][key] : null;
88
+ },
89
+ "delete": function _delete(key) {
90
+ var id = props[idProp];
91
+ if (isUpdatable() && data.current[id]) {
92
+ delete data.current[id][key];
142
93
  }
143
94
  }
95
+ };
96
+ }, [isUpdatable, props]);
97
+ var loadFromContext = (0, _react.useCallback)(function () {
98
+ var id = props[idProp],
99
+ noSharedState = props.noSharedState;
100
+ if (!noSharedState && context && context.get) {
101
+ var contextData = context.get(id);
102
+ if (contextData) {
103
+ data.current = contextData;
104
+ } else {
105
+ context.set(id, data.current);
106
+ }
107
+ if (updateOnMount) {
108
+ setUpdateOnMountState(true);
109
+ }
144
110
  }
145
- }, {
146
- key: "render",
147
- value: function render() {
148
- var props = Object.assign({}, (_objectDestructuringEmpty(this.props), this.props));
149
- delete props.noSharedState;
150
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(SharedState, {
151
- value: this.sharedState,
152
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapped, _objectSpread({}, props))
153
- });
111
+ }, [context, props]);
112
+ var sharedState = (0, _react.useRef)(initSharedState());
113
+ var prevProps = (0, _react.useRef)(props);
114
+ (0, _react.useEffect)(function () {
115
+ loadFromContext();
116
+ // eslint-disable-next-line react-hooks/exhaustive-deps
117
+ }, []);
118
+ (0, _react.useEffect)(function () {
119
+ if (!prevProps.current.noSharedState && props.noSharedState) {
120
+ data.current = {};
121
+ } else if (prevProps.current.noSharedState && !props.noSharedState) {
122
+ loadFromContext();
154
123
  }
155
- }]);
156
- }(_react.Component), _Class.displayName = 'SharedStateDecorator', _Class.contextType = SharedState, _Class.propTypes = {
124
+ prevProps.current = props;
125
+ }, [loadFromContext, props]);
126
+ var wrappedComponentProps = Object.assign({}, (_objectDestructuringEmpty(props), props));
127
+ delete wrappedComponentProps.noSharedState;
128
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SharedState, {
129
+ value: sharedState.current,
130
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapped, _objectSpread({}, wrappedComponentProps))
131
+ });
132
+ };
133
+ _SharedStateDecorator.displayName = 'SharedStateDecorator';
134
+ _SharedStateDecorator.propTypes = {
157
135
  /**
158
136
  * Prevents the component from setting or restoring any framework shared state.
159
137
  *
@@ -162,6 +140,7 @@ var SharedStateDecorator = exports.SharedStateDecorator = (0, _hoc["default"])(d
162
140
  * @public
163
141
  */
164
142
  noSharedState: _propTypes["default"].bool
165
- }, _Class;
143
+ };
144
+ return _SharedStateDecorator;
166
145
  });
167
146
  var _default = exports["default"] = SharedStateDecorator;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.warn = exports.validateSteppedOnce = exports.validateStepped = exports.validateRangeOnce = exports.validateRange = void 0;
6
+ exports.warning = exports.warn = exports.validateSteppedOnce = exports.validateStepped = exports.validateRangeOnce = exports.validateRange = void 0;
7
7
  /**
8
8
  * Exports various utilities for performing dev-time validations
9
9
  *
@@ -15,7 +15,7 @@ exports.warn = exports.validateSteppedOnce = exports.validateStepped = exports.v
15
15
  * Issues a warning to the console
16
16
  *
17
17
  * @function
18
- * @param {String} msg Event name
18
+ * @param {String} msg Event name
19
19
  *
20
20
  * @returns {undefined}
21
21
  * @memberof limestone/internal/validators
@@ -27,6 +27,25 @@ var warn = exports.warn = function warn(msg) {
27
27
  }
28
28
  };
29
29
 
30
+ /**
31
+ * Issues a warning to the console
32
+ *
33
+ * @function
34
+ * @param {Boolean} condition Condition for trigger
35
+ * @param {String} msg Event name
36
+ *
37
+ * @returns {undefined}
38
+ * @memberof limestone/internal/validators
39
+ * @private
40
+ */
41
+ var warning = exports.warning = function warning(condition, msg) {
42
+ if (process.env.NODE_ENV !== "production") {
43
+ if (typeof console !== 'undefined' && condition) {
44
+ console.warn('Warning: ' + msg); // eslint-disable-line no-console
45
+ }
46
+ }
47
+ };
48
+
30
49
  /**
31
50
  * Issues a warning to the console if `value` is not within the range
32
51
  * `min` to `max` or if `min` is less than `max`. In production mode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/limestone",
3
- "version": "1.3.0",
3
+ "version": "1.10.0",
4
4
  "description": "Large-screen/TV support library for Enact, containing a variety of UI components.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,20 +39,20 @@
39
39
  "screenTypes": "ThemeDecorator/screenTypes.json"
40
40
  },
41
41
  "dependencies": {
42
- "@enact/core": "^5.2.0",
43
- "@enact/i18n": "^5.2.0",
44
- "@enact/spotlight": "^5.2.0",
45
- "@enact/ui": "^5.2.0",
46
- "@enact/webos": "^5.2.0",
47
- "@enovaui/core-tokens": "^0.8.0",
48
- "@enovaui/webos-tokens": "^0.8.0",
42
+ "@enact/core": "^5.5.0",
43
+ "@enact/i18n": "^5.5.0",
44
+ "@enact/spotlight": "^5.5.0",
45
+ "@enact/ui": "^5.5.0",
46
+ "@enact/webos": "^5.5.0",
47
+ "@enovaui/core-tokens": "^0.15.0",
48
+ "@enovaui/webos-tokens": "^0.15.0",
49
49
  "classnames": "^2.5.1",
50
- "ilib": "^14.21.0 || ^14.21.0-webos1",
50
+ "ilib": "^14.21.3",
51
51
  "invariant": "^2.2.4",
52
52
  "prop-types": "^15.8.1",
53
- "ramda": "^0.31.3",
54
- "react": "^19.1.0",
55
- "react-dom": "^19.1.0",
53
+ "ramda": "^0.32.0",
54
+ "react": "^19.2.6",
55
+ "react-dom": "^19.2.6",
56
56
  "warning": "^4.0.3"
57
57
  },
58
58
  "peerDependencies": {
@@ -60,10 +60,13 @@
60
60
  },
61
61
  "overrides": {
62
62
  "autolinker": "^4.0.0",
63
- "vue-template-compiler": "@vue/compiler-sfc@3.4.31"
63
+ "vue-template-compiler": "@vue/compiler-sfc@3.4.31",
64
+ "prop-types": {
65
+ "react-is": "^19.2.3"
66
+ }
64
67
  },
65
68
  "devDependencies": {
66
- "@enact/docs-utils": "^0.4.13",
67
- "@enact/ui-test-utils": "^3.0.0"
69
+ "@enact/docs-utils": "^0.4.17",
70
+ "@enact/ui-test-utils": "^4.0.2"
68
71
  }
69
72
  }
@@ -8,7 +8,7 @@
8
8
  // UI Conceptual Colors
9
9
  // ---------------------------------------
10
10
 
11
- @lime-overlay-outline-color: #7c848b;
11
+ @lime-overlay-outline-color: var(--semantic-color-stroke-main);
12
12
  @lime-overlay-outline-style: solid;
13
13
 
14
14
  // ---------------------------------------
@@ -19,3 +19,11 @@
19
19
  // ---------------------------------------
20
20
  @lime-popup-bg-color: var(--semantic-color-background-overlay-default); // opaque
21
21
  @lime-popup-scrimtransparent-bg-color: var(--semantic-color-background-overlay-default); // opaque
22
+
23
+ // PopupTanLayout
24
+ // ---------------------------------------
25
+ @lime-popuptablayout-content-background-color: var(--semantic-color-background-overlay-default);
26
+
27
+ // KeyGuide
28
+ // ---------------------------------------
29
+ @lime-keyguide-outline-color: @lime-overlay-outline-color;
@@ -26,6 +26,7 @@
26
26
  // ---------------------------------------
27
27
  @lime-alert-overlay-bg-color: var(--semantic-color-background-popup-default);
28
28
  @lime-alert-overlay-bg-color-opacity: 1;
29
+ @lime-alert-overlay-button-bg-color: var(--semantic-color-surface-popup-default);
29
30
  @lime-alert-overlay-label-color: var(--semantic-color-on-background-popup-main);
30
31
  @lime-alert-overlay-label-sub-color: var(--semantic-color-on-background-popup-sub);
31
32
  @lime-alert-overlay-outline-style: none;
@@ -63,7 +64,6 @@
63
64
  // ---------------------------------------
64
65
  @lime-button-fill-label-color: var(--semantic-color-on-surface-main);
65
66
  @lime-button-fill-container-color: var(--semantic-color-surface-default);
66
- @lime-button-fill-icon-color: var(--semantic-color-on-surface-main);
67
67
  @lime-button-fill-label-focused-color: var(--semantic-color-on-surface-main-focused);
68
68
  @lime-button-fill-container-focused-color: var(--semantic-color-surface-default-focused);
69
69
  @lime-button-fill-icon-focused-color: @lime-button-fill-label-focused-color;
@@ -80,7 +80,6 @@
80
80
  @lime-button-outline-container-selected-color: ~"color(from" var(--semantic-color-surface-default-selected) ~"srgb r g b / 0.5)";
81
81
  @lime-button-outline-border-selected-color: var(--semantic-color-stroke-main-selected);
82
82
  @lime-button-transparent-label-color: var(--semantic-color-on-background-main);
83
- @lime-button-transparent-icon-color: @lime-button-transparent-label-color;
84
83
  @lime-button-transparent-label-focused-color: @lime-button-fill-label-focused-color;
85
84
  @lime-button-transparent-container-focused-color: @lime-button-fill-container-focused-color;
86
85
  @lime-button-transparent-icon-focused-color: @lime-button-fill-icon-focused-color;
@@ -98,7 +97,7 @@
98
97
  @lime-card-container-color: ~"color(from" var(--semantic-color-surface-default-translucent) ~"srgb r g b / 0.1)";
99
98
  @lime-card-selection-icon-color: transparent;
100
99
  @lime-card-selection-icon-selected-color: var(--semantic-color-on-surface-main-selected);
101
- @lime-card-selection-container-selected-color: var(--semantic-color-surface-accent);
100
+ @lime-card-selection-container-selected-color: var(--semantic-color-surface-highlight);
102
101
  @lime-card-border-selected-color: var(--semantic-color-stroke-main-selected);
103
102
  @lime-card-container-focused-color: var(--semantic-color-surface-default-focused);
104
103
  @lime-card-border-focused-color: var(--semantic-color-stroke-main-focused);
@@ -113,7 +112,7 @@
113
112
  // ---------------------------------------
114
113
  @lime-checkbox-container-color: transparent;
115
114
  @lime-checkbox-container-focused-color: @lime-checkbox-container-color;
116
- @lime-checkbox-container-selected-color: var(--semantic-color-surface-accent);
115
+ @lime-checkbox-container-selected-color: var(--semantic-color-surface-highlight);
117
116
  @lime-checkbox-container-selected-focused-color: @lime-checkbox-container-selected-color;
118
117
  @lime-checkbox-container-selected-disabled-color: @lime-checkbox-container-selected-color;
119
118
  @lime-checkbox-container-selected-disabled-focused-color: @lime-checkbox-container-selected-color;
@@ -215,7 +214,7 @@
215
214
  @lime-imageitem-selected-image-border-color: ~"color(from" var(--semantic-color-on-surface-main-selected) ~"srgb r g b / 0.7)";
216
215
  @lime-imageitem-selection-container-color: transparent;
217
216
  @lime-imageitem-selection-icon-color: transparent;
218
- @lime-imageitem-selection-container-selected-color: var(--semantic-color-surface-accent);
217
+ @lime-imageitem-selection-container-selected-color: var(--semantic-color-surface-highlight);
219
218
  @lime-imageitem-selection-icon-selected-color: var(--semantic-color-on-surface-white);
220
219
  @lime-imageitem-selection-container-focused-color: @lime-imageitem-selection-container-color;
221
220
  @lime-imageitem-selection-icon-focused-color: @lime-imageitem-selection-icon-color;
@@ -232,6 +231,7 @@
232
231
  @lime-input-fullscreen-dot-color: var(--semantic-color-on-surface-input-field);
233
232
  @lime-input-overlay-background-color: var(--semantic-color-background-popup-default);
234
233
  @lime-input-overlay-dot-color: var(--semantic-color-on-surface-popup-input-field);
234
+ @lime-input-overlay-button-bg-color: var(--semantic-color-surface-popup-default);
235
235
  @lime-input-dot-focused-color: var(--semantic-color-on-surface-main-focused);
236
236
  @lime-input-button-popup-transparent-icon-color: var(--semantic-color-on-background-popup-main);
237
237
  @lime-input-button-popup-transparent-label-color: var(--semantic-color-on-background-popup-main);
@@ -270,6 +270,7 @@
270
270
  // KeyGuide
271
271
  // ---------------------------------------
272
272
  @lime-keyguide-container-color: var(--semantic-color-surface-overlay-default);
273
+ @lime-keyguide-outline-color: transparent;
273
274
  @lime-keyguide-label-color: var(--semantic-color-on-surface-overlay-main);
274
275
  @lime-keyguide-icon-color: var(--semantic-color-on-surface-overlay-sub);
275
276
  @lime-keyguide-colordot-red-color: @lime-colorkey-icon-red;
@@ -345,7 +346,7 @@
345
346
  @lime-radioitem-item-container-selected-color: transparent;
346
347
  @lime-radioitem-container-color: transparent;
347
348
  @lime-radioitem-container-focused-color: transparent;
348
- @lime-radioitem-container-selected-color: var(--semantic-color-surface-accent);
349
+ @lime-radioitem-container-selected-color: var(--semantic-color-surface-highlight);
349
350
  @lime-radioitem-container-selected-focused-color: @lime-radioitem-container-selected-color;
350
351
  @lime-radioitem-border-color: var(--semantic-color-stroke-selection-inactive);
351
352
  @lime-radioitem-border-focused-color: var(--semantic-color-stroke-selection-inactive-focused);
@@ -367,11 +368,13 @@
367
368
 
368
369
  // Slider
369
370
  // ---------------------------------------
371
+ @lime-slider-min-max-color: var(--semantic-color-on-background-sub);
370
372
  @lime-slider-track-color: ~"color(from" var(--semantic-color-surface-default-track) ~"srgb r g b / 0.7)";
371
373
  @lime-slider-track-buffer-color: ~"color(from" var(--semantic-color-surface-white) ~"srgb r g b / 0.5)";
372
374
  @lime-slider-track-active-color: var(--semantic-color-surface-accent);
373
375
  @lime-slider-track-active-focused-color: var(--semantic-color-surface-accent);
374
376
  @lime-slider-handle-color: var(--semantic-color-surface-default-handle);
377
+ @lime-slider-handle-colorPicker-focused-color: var(--semantic-color-surface-white);
375
378
  @lime-slider-handle-border-color: transparent;
376
379
  @lime-slider-handle-focused-border-color: @lime-slider-handle-border-color;
377
380
  @lime-slider-handle-focused-color: var(--semantic-color-surface-default-focused);
@@ -384,7 +387,7 @@
384
387
  @lime-spinner-color: var(--semantic-color-on-background-main);
385
388
  @lime-spinner-head-color: @lime-spinner-color;
386
389
  @lime-spinner-empty-color: ~"color(from" @lime-spinner-color ~"srgb r g b / 0.2)";
387
- @lime-spinner-bg-color: var(--semantic-color-surface-default);
390
+ @lime-spinner-bg-color: var(--semantic-color-surface-spinner);
388
391
  @lime-spinner-label-color: var(--semantic-color-on-background-sub);
389
392
 
390
393
  // Steps
@@ -429,6 +432,8 @@
429
432
  @lime-video-player-bottom-bg-color: transparent;
430
433
  @lime-video-player-label-color: var(--semantic-color-on-background-main);
431
434
  @lime-video-player-scrim-gradient-color: linear-gradient(180deg, transparent 0%, #000 100%);
435
+ @lime-video-tooltip-background-color: ~"color(from" var(--semantic-color-surface-overlay-default) ~"srgb r g b / 0.5)";
436
+ @lime-video-tooltip-gradient-color: linear-gradient(180deg, transparent 0%, ~"color(from" var(--semantic-color-on-surface-black) ~"srgb r g b / 0.7)" 100%);
432
437
 
433
438
  // VirtualList
434
439
  // ---------------------------------------
@@ -0,0 +1,66 @@
1
+ // Motion Variables
2
+ @import "./motions.less";
3
+ @import "./mixins.less";
4
+
5
+ /* ---------------------------------------
6
+ Motion Variables
7
+ ------------------------------------------ */
8
+ @lime-bounce-motion: var(--lime-bounce-motion);
9
+ @lime-check-motion: var(--lime-check-motion);
10
+
11
+ /* ---------------------------------------
12
+ Motion Mixins
13
+ ------------------------------------------ */
14
+ .lime-toggle-motion(@offset: var(--lime-bounce-motion-offset-default-value), @duration: var(--lime-bounce-motion-duration)) {
15
+ animation: var(--lime-bounce-animation-name) @duration var(--lime-bounce-motion-easing-function);
16
+ --lime-bounce-motion-offset-value: @offset;
17
+ }
18
+
19
+ .lime-check-motion() {
20
+ &::after {
21
+ content: '';
22
+ position: absolute;
23
+ .position(0);
24
+ background-color: inherit;
25
+ animation: var(--lime-check-animation-name) var(--lime-check-motion-duration) forwards;
26
+ }
27
+ }
28
+
29
+ .lime-focus-in-motion() {
30
+ transform: @lime-focusexpand-focus-transform;
31
+ transition: transform var(--lime-focus-in-motion-duration) var(--lime-focus-in-motion-easing-function);
32
+ }
33
+
34
+ .lime-focus-out-motion() {
35
+ transition: transform var(--lime-focus-out-motion-duration) var(--lime-focus-out-motion-easing-function);
36
+ }
37
+
38
+ .lime-press-motion() {
39
+ transform: @lime-focusexpand-pressed-transform;
40
+ transition: transform var(--lime-press-motion-duration) var(--lime-press-motion-easing-function);
41
+ }
42
+
43
+ .lime-release-motion() {
44
+ transform: @lime-focusexpand-focus-transform;
45
+ transition: transform var(--lime-release-motion-duration) var(--lime-release-motion-easing-function);
46
+ }
47
+
48
+ .lime-slider-focus-in-motion() {
49
+ transform: @lime-translate-center @lime-slider-focusin-transform;
50
+ transition: transform var(--lime-focus-in-motion-duration) var(--lime-focus-in-motion-easing-function);
51
+ }
52
+
53
+ .lime-slider-focus-out-motion() {
54
+ transform: @lime-translate-center @lime-slider-focusout-transform;
55
+ transition: transform var(--lime-focus-out-motion-duration) var(--lime-focus-out-motion-easing-function);
56
+ }
57
+
58
+ .lime-slider-press-motion() {
59
+ transform: @lime-translate-center @lime-slider-press-transform;
60
+ transition: transform var(--lime-press-motion-duration) var(--lime-press-motion-easing-function);
61
+ }
62
+
63
+ .lime-slider-release-motion() {
64
+ transform: @lime-translate-center @lime-slider-release-transform;
65
+ transition: transform var(--lime-release-motion-duration) var(--lime-release-motion-easing-function);
66
+ }