@enact/limestone 1.3.0 → 1.9.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/.github/workflows/ci-branch.yml +21 -0
- package/.github/workflows/ci-pull-request.yml +16 -0
- package/.github/workflows/ci-reusable.yml +73 -0
- package/ActionGuide/ActionGuide.d.ts +5 -4
- package/ActionGuide/ActionGuide.module.css +1 -1
- package/Alert/Alert.d.ts +4 -2
- package/Alert/Alert.js +4 -1
- package/Alert/Alert.module.css +36 -0
- package/BodyText/BodyText.d.ts +5 -4
- package/BodyText/BodyText.module.css +7 -7
- package/Button/Button.d.ts +17 -12
- package/Button/Button.js +1 -1
- package/Button/Button.module.css +195 -268
- package/CHANGELOG.md +226 -0
- package/Card/Card.d.ts +36 -8
- package/Card/Card.js +157 -20
- package/Card/Card.module.css +277 -58
- package/Card/tests/Card-specs.js +30 -0
- package/Checkbox/Checkbox.d.ts +8 -7
- package/Checkbox/Checkbox.js +3 -1
- package/Checkbox/Checkbox.module.css +213 -120
- package/Checkbox/tests/Checkbox-specs.js +1 -1
- package/CheckboxItem/CheckboxItem.d.ts +22 -7
- package/CheckboxItem/CheckboxItem.js +69 -4
- package/Chips/Chip.js +60 -7
- package/Chips/Chip.module.css +3 -3
- package/Chips/Chips.js +26 -12
- package/Chips/Chips.module.css +1 -1
- package/Chips/tests/Chip-specs.js +19 -9
- package/Chips/tests/Chips-specs.js +19 -19
- package/ContextualMenuDecorator/ContextualMenuDecorator.d.ts +4 -5
- package/ContextualPopupDecorator/ContextualPopup.module.css +34 -34
- package/ContextualPopupDecorator/ContextualPopupDecorator.js +557 -549
- package/DatePicker/DatePicker.d.ts +4 -5
- package/DayPicker/DayPicker.d.ts +8 -7
- package/Dropdown/Dropdown.d.ts +11 -13
- package/Dropdown/Dropdown.module.css +9 -9
- package/Dropdown/DropdownList.js +16 -11
- package/FixedPopupPanels/FixedPopupPanels.d.ts +4 -2
- package/FixedPopupPanels/FixedPopupPanels.module.css +18 -18
- package/FlexiblePopupPanels/FlexiblePopupPanels.module.css +23 -23
- package/FormCheckboxItem/FormCheckboxItem.d.ts +5 -4
- package/Heading/Heading.d.ts +8 -7
- package/Heading/Heading.module.css +5 -5
- package/Icon/Icon.d.ts +14 -4
- package/Icon/Icon.js +48 -2
- package/Icon/Icon.module.css +1 -1
- package/Icon/IconList.js +25 -1
- package/IconItem/IconItem.d.ts +13 -12
- package/IconItem/IconItem.js +15 -0
- package/IconItem/IconItem.module.css +107 -1
- package/Image/Image.d.ts +5 -4
- package/ImageItem/ImageItem.d.ts +11 -10
- package/ImageItem/ImageItem.js +37 -31
- package/ImageItem/ImageItem.module.css +30 -30
- package/ImageItem/tests/ImageItem-specs.js +3 -10
- package/Input/Input.js +9 -2
- package/Input/Input.module.css +37 -8
- package/Input/InputField.js +5 -1
- package/Input/InputField.module.css +17 -2
- package/Input/InputFieldSpotlightDecorator.js +213 -229
- package/Input/index.d.ts +15 -18
- package/Input/tests/InputField-specs.js +21 -0
- package/Item/Item.d.ts +16 -9
- package/Item/Item.js +20 -2
- package/Item/Item.module.css +1 -1
- package/KeyGuide/KeyGuide.d.ts +8 -7
- package/KeyGuide/KeyGuide.module.css +25 -1
- package/Marquee/Marquee.d.ts +2 -4
- package/MediaOverlay/MediaOverlay.d.ts +12 -11
- package/MediaOverlay/MediaOverlay.js +43 -21
- package/MediaOverlay/MediaOverlay.module.css +114 -15
- package/MediaPlayer/MediaControls.js +195 -13
- package/MediaPlayer/MediaControls.module.css +3 -2
- package/MediaPlayer/MediaSlider.module.css +7 -20
- package/MediaPlayer/index.d.ts +59 -7
- package/PageViews/PageViews.js +165 -80
- package/PageViews/PageViewsRouter.js +9 -0
- package/PageViews/tests/PageViews-specs.js +84 -0
- package/Panels/Header.js +48 -30
- package/Panels/Header.module.css +83 -31
- package/Panels/Panel.module.css +1 -1
- package/Panels/index.d.ts +7 -8
- package/Picker/Picker.d.ts +4 -5
- package/Picker/Picker.module.css +2 -2
- package/Popup/Popup.js +242 -240
- package/Popup/Popup.module.css +24 -24
- package/PopupTabLayout/PopupTabLayout.d.ts +5 -7
- package/PopupTabLayout/PopupTabLayout.js +15 -9
- package/PopupTabLayout/PopupTabLayout.module.css +53 -16
- package/PopupTabLayout/PopupTabLayoutStateContext.js +8 -0
- package/ProgressBar/ProgressBar.d.ts +5 -4
- package/ProgressBar/ProgressBarTooltip.module.css +12 -12
- package/ProgressButton/ProgressButton.d.ts +4 -5
- package/QuickGuidePanels/QuickGuidePanels.module.css +2 -2
- package/RadioItem/RadioItem.d.ts +18 -5
- package/RadioItem/RadioItem.js +67 -2
- package/RadioItem/RadioItem.module.css +36 -36
- package/RangePicker/RangePicker.module.css +2 -2
- package/Scroller/EditableWrapper.js +11 -4
- package/Scroller/Scroller.d.ts +20 -16
- package/Scroller/Scroller.js +9 -3
- package/Scroller/Scroller.module.css +4 -4
- package/Slider/Slider.d.ts +16 -14
- package/Slider/Slider.js +37 -4
- package/Slider/Slider.module.css +314 -91
- package/Slider/tests/Slider-specs.js +2 -1
- package/Spinner/Spinner.d.ts +5 -4
- package/Spinner/Spinner.module.css +9 -9
- package/Steps/Steps.d.ts +5 -4
- package/Steps/Steps.js +9 -5
- package/Switch/Switch.d.ts +8 -7
- package/Switch/Switch.module.css +100 -13
- package/SwitchItem/SwitchItem.d.ts +9 -6
- package/TabLayout/RefocusDecorator.js +15 -9
- package/TabLayout/TabGroup.js +3 -2
- package/TabLayout/TabGroup.module.css +2 -2
- package/TabLayout/TabLayout.d.ts +6 -0
- package/TabLayout/TabLayout.js +11 -1
- package/TabLayout/TabLayout.module.css +18 -0
- package/TabLayout/tests/TabLayout-specs.js +52 -0
- package/ThemeDecorator/ThemeDecorator.d.ts +9 -10
- package/ThemeDecorator/fontGenerator.js +1 -1
- package/ThemeDecorator/screenTypes.json +1 -0
- package/TimePicker/TimePicker.module.css +1 -1
- package/TooltipDecorator/Tooltip.module.css +1 -2
- package/TooltipDecorator/tests/util-specs.js +12 -0
- package/TooltipDecorator/useTooltip.js +1 -1
- package/TooltipDecorator/util.js +18 -11
- package/VideoPlayer/Feedback.js +3 -0
- package/VideoPlayer/Feedback.module.css +5 -9
- package/VideoPlayer/FeedbackIcons.js +1 -1
- package/VideoPlayer/FeedbackTooltip.module.css +55 -11
- package/VideoPlayer/VideoPlayer.d.ts +44 -18
- package/VideoPlayer/VideoPlayer.js +128 -23
- package/VideoPlayer/VideoPlayer.module.css +28 -11
- package/VirtualList/VirtualList.d.ts +9 -2
- package/VirtualList/VirtualList.js +31 -6
- package/VirtualList/tests/VirtualGridList-translate-specs.js +3 -0
- package/VirtualList/tests/VirtualList-specs.js +28 -1
- package/VirtualList/tests/VirtualList-translate-specs.js +4 -1
- package/VirtualList/tests/useEvent-specs.js +39 -0
- package/VirtualList/useEvent.js +45 -10
- package/VirtualList/useThemeVirtualList.js +3 -0
- package/WizardPanels/WizardPanels.module.css +2 -2
- package/WizardPanels/index.d.ts +4 -2
- package/fonts/Limestone_Icons.ttf +0 -0
- package/internal/$L/$L.js +3 -3
- package/internal/DateComponentPicker/DateComponentPicker.module.css +2 -2
- package/internal/DateTime/DateTime.module.css +1 -0
- package/internal/Panels/PanelsRouter.js +16 -5
- package/internal/Picker/Picker.module.css +2 -2
- package/internal/SharedStateDecorator/SharedStateDecorator.js +76 -99
- package/internal/validators/validators.js +21 -2
- package/package.json +14 -14
- package/styles/colors-highcontrast.less +9 -1
- package/styles/colors.less +11 -7
- package/styles/motion-mixins.less +66 -0
- package/styles/motions.less +78 -0
- package/styles/variables.less +176 -150
- package/useScroll/HoverToScroll.js +8 -5
- package/useScroll/ScrollbarTrack.module.css +8 -8
- package/useScroll/useEvent.js +7 -1
- package/useScroll/useScroll.js +2 -0
- package/useScroll/useScroll.module.css +6 -6
- package/.travis.yml +0 -40
|
@@ -27,6 +27,14 @@ var keyDownUp = function keyDownUp(keyCode) {
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
+
var keyDownRepeat = function keyDownRepeat(keyCode) {
|
|
31
|
+
return function (elm) {
|
|
32
|
+
return _react.fireEvent.keyDown(elm, {
|
|
33
|
+
keyCode: keyCode,
|
|
34
|
+
repeat: true
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
};
|
|
30
38
|
var pressLeftKey = keyDownUp(37);
|
|
31
39
|
var pressRightKey = keyDownUp(39);
|
|
32
40
|
var pressUpKey = keyDownUp(38);
|
|
@@ -148,6 +156,37 @@ describe('VirtualList useEvent', function () {
|
|
|
148
156
|
expect(spy).toHaveBeenCalled();
|
|
149
157
|
global.Element.prototype.scrollTo = scrollToFn;
|
|
150
158
|
});
|
|
159
|
+
test('should handle repeat keydown on first VirtualList entry without error', function () {
|
|
160
|
+
(0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_VirtualList["default"], {
|
|
161
|
+
clientSize: clientSize,
|
|
162
|
+
dataSize: dataSize,
|
|
163
|
+
itemRenderer: renderItem,
|
|
164
|
+
itemSize: itemSize
|
|
165
|
+
}));
|
|
166
|
+
var list = _react.screen.getByRole('list');
|
|
167
|
+
var item0 = list.children.item(0).children.item(0);
|
|
168
|
+
focus(item0);
|
|
169
|
+
expect(currentFocusIndex).toBe(0);
|
|
170
|
+
keyDownRepeat(40)(item0);
|
|
171
|
+
expect(currentFocusIndex).toBe(0);
|
|
172
|
+
});
|
|
173
|
+
test('should handle repeat keydown when data-index jumps unexpectedly without error', function () {
|
|
174
|
+
(0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_VirtualList["default"], {
|
|
175
|
+
clientSize: clientSize,
|
|
176
|
+
dataSize: dataSize,
|
|
177
|
+
itemRenderer: renderItem,
|
|
178
|
+
itemSize: itemSize
|
|
179
|
+
}));
|
|
180
|
+
var list = _react.screen.getByRole('list');
|
|
181
|
+
var item0 = list.children.item(0).children.item(0);
|
|
182
|
+
var item1 = list.children.item(1).children.item(0);
|
|
183
|
+
focus(item0);
|
|
184
|
+
pressDownKey(item0);
|
|
185
|
+
expect(currentFocusIndex).toBe(1);
|
|
186
|
+
item1.dataset.index = '20';
|
|
187
|
+
keyDownRepeat(40)(item1);
|
|
188
|
+
expect(currentFocusIndex).toBe(1);
|
|
189
|
+
});
|
|
151
190
|
test('should scroll by page-down key', function () {
|
|
152
191
|
var spy = jest.fn(function () {});
|
|
153
192
|
var scrollToFn = global.Element.prototype.scrollTo;
|
package/VirtualList/useEvent.js
CHANGED
|
@@ -28,13 +28,14 @@ var isDown = (0, _keymap.is)('down'),
|
|
|
28
28
|
// should return -1 if index is not a number or a negative value
|
|
29
29
|
return number >= 0 ? number : -1;
|
|
30
30
|
};
|
|
31
|
-
var prevKeyDownIndex = -1;
|
|
32
31
|
var useEventKey = exports.useEventKey = function useEventKey(props, instances, context) {
|
|
33
32
|
// Mutable value
|
|
34
33
|
|
|
35
34
|
var mutableRef = (0, _react.useRef)({
|
|
36
35
|
fn: null
|
|
37
36
|
});
|
|
37
|
+
var prevKeyDownIndexRef = (0, _react.useRef)(-1);
|
|
38
|
+
var hasProcessedKeyDownRef = (0, _react.useRef)(false);
|
|
38
39
|
|
|
39
40
|
// Functions
|
|
40
41
|
|
|
@@ -121,6 +122,7 @@ var useEventKey = exports.useEventKey = function useEventKey(props, instances, c
|
|
|
121
122
|
var handle5WayKeyUp = context.handle5WayKeyUp,
|
|
122
123
|
handleDirectionKeyDown = context.handleDirectionKeyDown,
|
|
123
124
|
handlePageUpDownKeyDown = context.handlePageUpDownKeyDown,
|
|
125
|
+
resetAccelerator = context.resetAccelerator,
|
|
124
126
|
spotlightAcceleratorProcessKey = context.spotlightAcceleratorProcessKey;
|
|
125
127
|
function handleKeyDown(ev) {
|
|
126
128
|
var keyCode = ev.keyCode,
|
|
@@ -163,15 +165,50 @@ var useEventKey = exports.useEventKey = function useEventKey(props, instances, c
|
|
|
163
165
|
isRightMovement = _getNextIndex.isRightMovement,
|
|
164
166
|
isWrapped = _getNextIndex.isWrapped,
|
|
165
167
|
nextIndex = _getNextIndex.nextIndex;
|
|
168
|
+
var _scrollContentHandle$2 = scrollContentHandle.current,
|
|
169
|
+
dimensionToExtent = _scrollContentHandle$2.dimensionToExtent,
|
|
170
|
+
isPrimaryDirectionVertical = _scrollContentHandle$2.isPrimaryDirectionVertical;
|
|
171
|
+
|
|
172
|
+
// VirtualList recycles DOM nodes during scroll. If a node gets reused for a different index
|
|
173
|
+
// while browser focus stays on it, target.dataset.index reflects the new (wrong) index.
|
|
174
|
+
// Detect this by checking if the index jumped unnaturally during key repeat.
|
|
175
|
+
var isForwardKey = isPrimaryDirectionVertical ? isDownKey : isRightMovement;
|
|
176
|
+
var isBackwardKey = isPrimaryDirectionVertical ? isUpKey : isLeftMovement;
|
|
177
|
+
var isOutdatedIndex = repeat && prevKeyDownIndexRef.current !== -1 && (isForwardKey && (prevKeyDownIndexRef.current > index || index > prevKeyDownIndexRef.current + dimensionToExtent) || isBackwardKey && (prevKeyDownIndexRef.current < index || index < prevKeyDownIndexRef.current - dimensionToExtent));
|
|
178
|
+
|
|
179
|
+
// Block the first repeat event when entering VirtualList from outside with acceleration.
|
|
180
|
+
// prevKeyDownIndexRef is -1 only on first entry; a repeat here means key was held before entering.
|
|
181
|
+
var isFirstEntryRepeat = repeat && !hasProcessedKeyDownRef.current;
|
|
182
|
+
if (isFirstEntryRepeat) {
|
|
183
|
+
ev.preventDefault();
|
|
184
|
+
ev.stopPropagation();
|
|
185
|
+
resetAccelerator();
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (isOutdatedIndex) {
|
|
189
|
+
ev.preventDefault();
|
|
190
|
+
ev.stopPropagation();
|
|
191
|
+
resetAccelerator();
|
|
192
|
+
var correctedNextIndex = isForwardKey ? prevKeyDownIndexRef.current + dimensionToExtent : prevKeyDownIndexRef.current - dimensionToExtent;
|
|
193
|
+
if (correctedNextIndex >= 0 && correctedNextIndex < props.dataSize) {
|
|
194
|
+
var currentItemNode = instances.itemRefs.current[prevKeyDownIndexRef.current % scrollContentHandle.current.state.numOfItems];
|
|
195
|
+
var correctedTarget = currentItemNode && parseInt(currentItemNode.dataset.index) === prevKeyDownIndexRef.current ? currentItemNode : target;
|
|
196
|
+
handleDirectionKeyDown(ev, 'acceleratedKeyDown', {
|
|
197
|
+
isWrapped: false,
|
|
198
|
+
keyCode: keyCode,
|
|
199
|
+
nextIndex: correctedNextIndex,
|
|
200
|
+
repeat: repeat,
|
|
201
|
+
target: correctedTarget
|
|
202
|
+
});
|
|
203
|
+
prevKeyDownIndexRef.current = correctedNextIndex;
|
|
204
|
+
}
|
|
205
|
+
// At list boundary: keep prevKeyDownIndexRef.current unchanged so next event stays recoverable
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
166
208
|
if (nextIndex >= 0) {
|
|
167
209
|
// if the candidate is another item
|
|
168
210
|
ev.preventDefault();
|
|
169
211
|
ev.stopPropagation();
|
|
170
|
-
if (repeat && prevKeyDownIndex !== -1 && (isDownKey && prevKeyDownIndex > index || isUpKey && prevKeyDownIndex < index)) {
|
|
171
|
-
// Ignore keyEvent from item with wrong data-index (Workaround for data-index bug)
|
|
172
|
-
// Sometimes keyDown event occurs before the data-index updated, it causes reverse focus change
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
212
|
if (props.scrollContainerHandle && props.scrollContainerHandle.current) {
|
|
176
213
|
props.scrollContainerHandle.current.lastInputType = 'arrowKey';
|
|
177
214
|
}
|
|
@@ -188,9 +225,6 @@ var useEventKey = exports.useEventKey = function useEventKey(props, instances, c
|
|
|
188
225
|
focusableScrollbar = props.focusableScrollbar,
|
|
189
226
|
isHorizontalScrollbarVisible = props.isHorizontalScrollbarVisible,
|
|
190
227
|
isVerticalScrollbarVisible = props.isVerticalScrollbarVisible;
|
|
191
|
-
var _scrollContentHandle$2 = scrollContentHandle.current,
|
|
192
|
-
dimensionToExtent = _scrollContentHandle$2.dimensionToExtent,
|
|
193
|
-
isPrimaryDirectionVertical = _scrollContentHandle$2.isPrimaryDirectionVertical;
|
|
194
228
|
var column = index % dimensionToExtent;
|
|
195
229
|
var row = (index - column) % dataSize / dimensionToExtent;
|
|
196
230
|
var directions = {};
|
|
@@ -236,7 +270,8 @@ var useEventKey = exports.useEventKey = function useEventKey(props, instances, c
|
|
|
236
270
|
}
|
|
237
271
|
}
|
|
238
272
|
}
|
|
239
|
-
|
|
273
|
+
prevKeyDownIndexRef.current = index;
|
|
274
|
+
hasProcessedKeyDownRef.current = true;
|
|
240
275
|
if (isLeaving) {
|
|
241
276
|
handleDirectionKeyDown(ev, 'keyLeave');
|
|
242
277
|
}
|
|
@@ -99,6 +99,9 @@ var useSpottable = function useSpottable(props, instances) {
|
|
|
99
99
|
handle5WayKeyUp: function handle5WayKeyUp() {
|
|
100
100
|
SpotlightAccelerator.reset();
|
|
101
101
|
},
|
|
102
|
+
resetAccelerator: function resetAccelerator() {
|
|
103
|
+
SpotlightAccelerator.reset();
|
|
104
|
+
},
|
|
102
105
|
spotlightAcceleratorProcessKey: function spotlightAcceleratorProcessKey(ev) {
|
|
103
106
|
return SpotlightAccelerator.processKey(ev, nop);
|
|
104
107
|
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
.wizardPanels .steps {
|
|
5
5
|
height: 1.25rem;
|
|
6
6
|
line-height: 1.25rem;
|
|
7
|
-
margin-top: calc(
|
|
7
|
+
margin-top: calc(var(--primitive-spacing-84) * -1);
|
|
8
8
|
}
|
|
9
9
|
.wizardPanels .content {
|
|
10
|
-
margin: var(--primitive-spacing-60)
|
|
10
|
+
margin: var(--primitive-spacing-60) NaNrem - NaNrem - var(--primitive-spacing-36)));
|
|
11
11
|
}
|
|
12
12
|
.wizardPanels .footer {
|
|
13
13
|
text-align: center;
|
package/WizardPanels/index.d.ts
CHANGED
|
@@ -6,8 +6,10 @@ import * as React from "react";
|
|
|
6
6
|
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
7
7
|
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
8
8
|
|
|
9
|
-
export interface WizardPanelsProps
|
|
10
|
-
|
|
9
|
+
export interface WizardPanelsProps extends Merge<
|
|
10
|
+
WizardPanelsBaseProps,
|
|
11
|
+
ui_Changeable_ChangeableProps
|
|
12
|
+
> {
|
|
11
13
|
/**
|
|
12
14
|
* Called when the back button is pressed.
|
|
13
15
|
*
|
|
Binary file
|
package/internal/$L/$L.js
CHANGED
|
@@ -15,7 +15,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
18
|
-
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); } /* global
|
|
18
|
+
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); } /* global ILIB_LIMESTONE_PATH */
|
|
19
19
|
// The ilib.ResBundle for the active locale used by $L
|
|
20
20
|
var resBundle;
|
|
21
21
|
|
|
@@ -37,8 +37,8 @@ function getResBundle() {
|
|
|
37
37
|
*/
|
|
38
38
|
function createResBundle(options) {
|
|
39
39
|
var opts = options;
|
|
40
|
-
if (typeof
|
|
41
|
-
opts.basePath =
|
|
40
|
+
if (typeof ILIB_LIMESTONE_PATH !== 'undefined') {
|
|
41
|
+
opts.basePath = ILIB_LIMESTONE_PATH;
|
|
42
42
|
}
|
|
43
43
|
if (!opts.onLoad) return;
|
|
44
44
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.dateComponentPicker {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
text-align: center;
|
|
4
|
-
margin: 0
|
|
4
|
+
margin: 0 var(--primitive-spacing-24);
|
|
5
5
|
vertical-align: inherit;
|
|
6
6
|
}
|
|
7
7
|
.dateComponentPicker .label {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:global(.enact-locale-non-latin) .dateComponentPicker .label {
|
|
21
21
|
font-family: "Limestone";
|
|
22
22
|
font-weight: var(--primitive-font-weight-light);
|
|
23
|
-
font-size:
|
|
23
|
+
font-size: var(--primitive-font-size-54);
|
|
24
24
|
font-style: normal;
|
|
25
25
|
}
|
|
26
26
|
:global(.enact-locale-km) .dateComponentPicker .label {
|
|
@@ -13,7 +13,7 @@ var _useAutoFocus = _interopRequireDefault(require("./useAutoFocus"));
|
|
|
13
13
|
var _useFocusOnTransition2 = _interopRequireDefault(require("./useFocusOnTransition"));
|
|
14
14
|
var _useToggleRole2 = _interopRequireDefault(require("./useToggleRole"));
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
var _excluded = ["children", "componentRef", "data-spotlight-id", "index", "onTransition", "onWillTransition", "rtl", "subtitle", "title"],
|
|
16
|
+
var _excluded = ["autoFocus", "children", "componentRef", "data-spotlight-id", "index", "onTransition", "onWillTransition", "rtl", "subtitle", "title"],
|
|
17
17
|
_excluded2 = ["onWillTransition"];
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
19
|
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; }
|
|
@@ -67,7 +67,9 @@ var defaultConfig = {
|
|
|
67
67
|
*/
|
|
68
68
|
var PanelsRouter = exports.PanelsRouter = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) {
|
|
69
69
|
var PanelsProvider = function PanelsProvider(_ref) {
|
|
70
|
-
var
|
|
70
|
+
var _ref$autoFocus = _ref.autoFocus,
|
|
71
|
+
autoFocus = _ref$autoFocus === void 0 ? 'default-element' : _ref$autoFocus,
|
|
72
|
+
children = _ref.children,
|
|
71
73
|
componentRef = _ref.componentRef,
|
|
72
74
|
spotlightId = _ref['data-spotlight-id'],
|
|
73
75
|
_ref$index = _ref.index,
|
|
@@ -87,11 +89,11 @@ var PanelsRouter = exports.PanelsRouter = (0, _hoc["default"])(defaultConfig, fu
|
|
|
87
89
|
var _useToggleRole = (0, _useToggleRole2["default"])(),
|
|
88
90
|
a11yRef = _useToggleRole.ref,
|
|
89
91
|
a11yOnWillTransition = _useToggleRole.onWillTransition;
|
|
90
|
-
var
|
|
91
|
-
autoFocus:
|
|
92
|
+
var autoFocusRef = (0, _useAutoFocus["default"])({
|
|
93
|
+
autoFocus: autoFocus,
|
|
92
94
|
hideChildren: panel == null
|
|
93
95
|
});
|
|
94
|
-
var ref = (0, _useChainRefs["default"])(
|
|
96
|
+
var ref = (0, _useChainRefs["default"])(autoFocusRef, a11yRef, componentRef);
|
|
95
97
|
var _useReverseTransition = useReverseTransition(index, rtl),
|
|
96
98
|
reverseTransition = _useReverseTransition.reverseTransition,
|
|
97
99
|
prevIndex = _useReverseTransition.prevIndex;
|
|
@@ -139,6 +141,15 @@ var PanelsRouter = exports.PanelsRouter = (0, _hoc["default"])(defaultConfig, fu
|
|
|
139
141
|
});
|
|
140
142
|
};
|
|
141
143
|
PanelsProvider.propTypes = /** @lends limestone/internal/Panels.PanelsRouter.prototype */{
|
|
144
|
+
/**
|
|
145
|
+
* Sets the strategy used to automatically focus an element within the Panels upon render.
|
|
146
|
+
* When set to 'none', focus is not set only on the first render.
|
|
147
|
+
*
|
|
148
|
+
* @type {('default-element'|'last-focused'|'none'|String)}
|
|
149
|
+
* @default 'default-element'
|
|
150
|
+
* @private
|
|
151
|
+
*/
|
|
152
|
+
autoFocus: _propTypes2["default"].string,
|
|
142
153
|
/**
|
|
143
154
|
* Obtains a reference to the root node.
|
|
144
155
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
vertical-align: bottom;
|
|
3
3
|
position: relative;
|
|
4
4
|
text-align: center;
|
|
5
|
-
margin: 0
|
|
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
|
|
198
|
+
margin: 0.1875rem var(--primitive-spacing-36);
|
|
199
199
|
padding: 0 0.375rem;
|
|
200
200
|
}
|
|
201
201
|
.picker.joined.vertical .valueWrapper {
|
|
@@ -12,19 +12,15 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
|
|
|
12
12
|
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
13
|
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
14
|
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
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
16
|
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
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
function
|
|
26
|
-
function
|
|
27
|
-
function
|
|
17
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
18
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
|
+
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."); }
|
|
20
|
+
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; } }
|
|
21
|
+
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; }
|
|
22
|
+
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; } }
|
|
23
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
28
24
|
var SharedState = exports.SharedState = /*#__PURE__*/(0, _react.createContext)(null);
|
|
29
25
|
var defaultConfig = {
|
|
30
26
|
idProp: 'id',
|
|
@@ -60,100 +56,80 @@ var defaultConfig = {
|
|
|
60
56
|
* @private
|
|
61
57
|
*/
|
|
62
58
|
var SharedStateDecorator = exports.SharedStateDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wrapped) {
|
|
63
|
-
var _Class;
|
|
64
59
|
var idProp = config.idProp,
|
|
65
60
|
updateOnMount = config.updateOnMount;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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);
|
|
61
|
+
|
|
62
|
+
// eslint-disable-next-line no-shadow
|
|
63
|
+
var SharedStateDecorator = function SharedStateDecorator(props) {
|
|
64
|
+
var context = (0, _react.useContext)(SharedState);
|
|
65
|
+
var data = (0, _react.useRef)({});
|
|
66
|
+
var _useState = (0, _react.useState)(false),
|
|
67
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
68
|
+
setUpdateOnMountState = _useState2[1];
|
|
69
|
+
var isUpdatable = (0, _react.useCallback)(function () {
|
|
70
|
+
var id = props[idProp],
|
|
71
|
+
noSharedState = props.noSharedState;
|
|
72
|
+
return !noSharedState && (id || id === 0);
|
|
73
|
+
}, [props]);
|
|
74
|
+
var initSharedState = (0, _react.useCallback)(function () {
|
|
75
|
+
return {
|
|
76
|
+
set: function set(key, value) {
|
|
77
|
+
var id = props[idProp];
|
|
78
|
+
if (isUpdatable()) {
|
|
79
|
+
data.current[id] = data.current[id] || {};
|
|
80
|
+
data.current[id][key] = value;
|
|
137
81
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
82
|
+
},
|
|
83
|
+
get: function get(key) {
|
|
84
|
+
var id = props[idProp];
|
|
85
|
+
return isUpdatable() && data.current[id] ? data.current[id][key] : null;
|
|
86
|
+
},
|
|
87
|
+
"delete": function _delete(key) {
|
|
88
|
+
var id = props[idProp];
|
|
89
|
+
if (isUpdatable() && data.current[id]) {
|
|
90
|
+
delete data.current[id][key];
|
|
142
91
|
}
|
|
143
92
|
}
|
|
93
|
+
};
|
|
94
|
+
}, [isUpdatable, props]);
|
|
95
|
+
var loadFromContext = (0, _react.useCallback)(function () {
|
|
96
|
+
var id = props[idProp],
|
|
97
|
+
noSharedState = props.noSharedState;
|
|
98
|
+
if (!noSharedState && context && context.get) {
|
|
99
|
+
var contextData = context.get(id);
|
|
100
|
+
if (contextData) {
|
|
101
|
+
data.current = contextData;
|
|
102
|
+
} else {
|
|
103
|
+
context.set(id, data.current);
|
|
104
|
+
}
|
|
105
|
+
if (updateOnMount) {
|
|
106
|
+
setUpdateOnMountState(true);
|
|
107
|
+
}
|
|
144
108
|
}
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
109
|
+
}, [context, props]);
|
|
110
|
+
var sharedState = (0, _react.useRef)(initSharedState());
|
|
111
|
+
var prevProps = (0, _react.useRef)(props);
|
|
112
|
+
(0, _react.useEffect)(function () {
|
|
113
|
+
loadFromContext();
|
|
114
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
|
+
}, []);
|
|
116
|
+
(0, _react.useEffect)(function () {
|
|
117
|
+
if (!prevProps.current.noSharedState && props.noSharedState) {
|
|
118
|
+
data.current = {};
|
|
119
|
+
} else if (prevProps.current.noSharedState && !props.noSharedState) {
|
|
120
|
+
loadFromContext();
|
|
154
121
|
}
|
|
155
|
-
|
|
156
|
-
|
|
122
|
+
prevProps.current = props;
|
|
123
|
+
}, [loadFromContext, props]);
|
|
124
|
+
var wrappedComponentProps = Object.assign({}, (_objectDestructuringEmpty(props), props));
|
|
125
|
+
delete wrappedComponentProps.noSharedState;
|
|
126
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SharedState, {
|
|
127
|
+
value: sharedState.current,
|
|
128
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapped, _objectSpread({}, wrappedComponentProps))
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
SharedStateDecorator.displayName = 'SharedStateDecorator';
|
|
132
|
+
SharedStateDecorator.propTypes = {
|
|
157
133
|
/**
|
|
158
134
|
* Prevents the component from setting or restoring any framework shared state.
|
|
159
135
|
*
|
|
@@ -162,6 +138,7 @@ var SharedStateDecorator = exports.SharedStateDecorator = (0, _hoc["default"])(d
|
|
|
162
138
|
* @public
|
|
163
139
|
*/
|
|
164
140
|
noSharedState: _propTypes["default"].bool
|
|
165
|
-
}
|
|
141
|
+
};
|
|
142
|
+
return SharedStateDecorator;
|
|
166
143
|
});
|
|
167
144
|
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
|
|
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
|
+
"version": "1.9.4",
|
|
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.
|
|
43
|
-
"@enact/i18n": "^5.
|
|
44
|
-
"@enact/spotlight": "^5.
|
|
45
|
-
"@enact/ui": "^5.
|
|
46
|
-
"@enact/webos": "^5.
|
|
47
|
-
"@enovaui/core-tokens": "^0.
|
|
48
|
-
"@enovaui/webos-tokens": "^0.
|
|
42
|
+
"@enact/core": "^5.4.3",
|
|
43
|
+
"@enact/i18n": "^5.4.3",
|
|
44
|
+
"@enact/spotlight": "^5.4.3",
|
|
45
|
+
"@enact/ui": "^5.4.3",
|
|
46
|
+
"@enact/webos": "^5.4.3",
|
|
47
|
+
"@enovaui/core-tokens": "^0.14.0",
|
|
48
|
+
"@enovaui/webos-tokens": "^0.14.0",
|
|
49
49
|
"classnames": "^2.5.1",
|
|
50
|
-
"ilib": "^14.
|
|
50
|
+
"ilib": "^14.22.0",
|
|
51
51
|
"invariant": "^2.2.4",
|
|
52
52
|
"prop-types": "^15.8.1",
|
|
53
|
-
"ramda": "^0.
|
|
54
|
-
"react": "^19.
|
|
55
|
-
"react-dom": "^19.
|
|
53
|
+
"ramda": "^0.32.0",
|
|
54
|
+
"react": "^19.2.7",
|
|
55
|
+
"react-dom": "^19.2.7",
|
|
56
56
|
"warning": "^4.0.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vue-template-compiler": "@vue/compiler-sfc@3.4.31"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@enact/docs-utils": "^0.4.
|
|
67
|
-
"@enact/ui-test-utils": "^
|
|
66
|
+
"@enact/docs-utils": "^0.4.17",
|
|
67
|
+
"@enact/ui-test-utils": "^4.0.2"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// UI Conceptual Colors
|
|
9
9
|
// ---------------------------------------
|
|
10
10
|
|
|
11
|
-
@lime-overlay-outline-color:
|
|
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;
|