@enact/limestone 1.10.0 → 1.10.2
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/PULL_REQUEST_TEMPLATE.md +1 -0
- package/ActionGuide/ActionGuide.d.ts +1 -1
- package/ActionGuide/ActionGuide.module.css +7 -0
- package/Alert/Alert.d.ts +9 -0
- package/Alert/Alert.js +63 -21
- package/Alert/Alert.module.css +41 -9
- package/Alert/AlertImage.module.css +5 -1
- package/Alert/tests/Alert-specs.js +6 -2
- package/BodyText/BodyText.d.ts +1 -1
- package/BodyText/BodyText.js +14 -9
- package/BodyText/BodyText.module.css +22 -1
- package/Button/Button.d.ts +3 -3
- package/Button/Button.module.css +81 -63
- package/CHANGELOG.md +87 -0
- package/Card/Card.d.ts +81 -9
- package/Card/Card.js +324 -84
- package/Card/Card.module.css +200 -25
- package/Card/tests/Card-specs.js +100 -0
- package/Checkbox/Checkbox.d.ts +2 -2
- package/Checkbox/Checkbox.module.css +2 -5
- package/CheckboxItem/CheckboxItem.d.ts +8 -1
- package/CheckboxItem/CheckboxItem.js +39 -12
- package/CheckboxItem/CheckboxItem.module.css +228 -4
- package/Chips/Chip.module.css +5 -2
- package/ContextualMenuDecorator/ContextualMenuDecorator.d.ts +2 -2
- package/ContextualPopupDecorator/ContextualPopup.module.css +1 -1
- package/ContextualPopupDecorator/ContextualPopupDecorator.js +2 -4
- package/ContextualPopupDecorator/tests/ContextualPopupDecorator-specs.js +39 -2
- package/Dropdown/Dropdown.d.ts +2 -2
- package/Dropdown/Dropdown.module.css +7 -7
- package/FixedPopupPanels/FixedPopupPanels.d.ts +2 -2
- package/FlexiblePopupPanels/FlexiblePopupPanels.module.css +15 -3
- package/FlexiblePopupPanels/index.d.ts +2 -2
- package/FormCheckboxItem/FormCheckboxItem.d.ts +1 -1
- package/FormCheckboxItem/FormCheckboxItem.js +1 -0
- package/FormCheckboxItem/FormCheckboxItem.module.css +1 -1
- package/Heading/Heading.d.ts +2 -2
- package/Heading/Heading.module.css +16 -0
- package/Icon/Icon.d.ts +22 -1
- package/Icon/Icon.js +21 -0
- package/Icon/Icon.module.css +12 -0
- package/Icon/IconList.js +43 -1
- package/IconItem/IconItem.d.ts +2 -2
- package/IconItem/IconItem.module.css +27 -14
- package/Image/Image.d.ts +1 -1
- package/Image/Image.module.css +1 -1
- package/ImageItem/ImageItem.d.ts +2 -2
- package/ImageItem/ImageItem.js +3 -16
- package/ImageItem/ImageItem.module.css +122 -97
- package/ImageItem/tests/ImageItem-specs.js +6 -5
- package/Input/Input.module.css +33 -16
- package/Input/InputField.module.css +22 -4
- package/Input/index.d.ts +1 -1
- package/Input/tests/Input-specs.js +2 -2
- package/Input/tests/InputField-specs.js +1 -1
- package/Item/Item.d.ts +2 -2
- package/Item/Item.module.css +29 -16
- package/KeyGuide/KeyGuide.d.ts +2 -2
- package/KeyGuide/KeyGuide.module.css +10 -0
- package/MediaOverlay/MediaOverlay.d.ts +2 -2
- package/MediaOverlay/MediaOverlay.module.css +18 -9
- package/MediaPlayer/MediaControls.module.css +3 -0
- package/MediaPlayer/MediaSlider.module.css +1 -0
- package/MediaPlayer/Times.module.css +5 -1
- package/MediaPlayer/index.d.ts +2 -2
- package/PageViews/PageViews.module.css +6 -1
- package/Panels/Header.module.css +74 -56
- package/Panels/Panel.module.css +1 -1
- package/Panels/index.d.ts +1 -1
- package/Picker/Picker.d.ts +1 -1
- package/Popup/Popup.module.css +4 -1
- package/PopupTabLayout/PopupTabLayout.d.ts +6 -6
- package/PopupTabLayout/PopupTabLayout.module.css +24 -6
- package/ProgressBar/ProgressBar.d.ts +1 -1
- package/ProgressBar/ProgressBar.module.css +12 -12
- package/ProgressBar/ProgressBarTooltip.module.css +7 -7
- package/ProgressButton/ProgressButton.d.ts +2 -2
- package/QuickGuidePanels/QuickGuidePanels.module.css +1 -1
- package/RadioItem/RadioItem.d.ts +1 -1
- package/RadioItem/RadioItem.module.css +21 -18
- package/Scroller/EditableWrapper.js +2 -1
- package/Scroller/Scroller.d.ts +12 -0
- package/Scroller/Scroller.js +15 -0
- package/Scroller/Scroller.module.css +10 -0
- package/Scroller/tests/Scroller-specs.js +120 -2
- package/Scroller/useThemeScroller.js +25 -2
- package/Slider/Slider.d.ts +1 -1
- package/Slider/Slider.module.css +539 -303
- package/Spinner/Spinner.d.ts +1 -1
- package/Spinner/Spinner.module.css +2 -2
- package/Steps/Steps.d.ts +1 -1
- package/Steps/Steps.js +12 -6
- package/Steps/Steps.module.css +19 -2
- package/Switch/Switch.module.css +17 -6
- package/SwitchItem/SwitchItem.d.ts +1 -1
- package/TabLayout/RefocusDecorator.js +1 -1
- package/TabLayout/TabGroup.module.css +13 -7
- package/TabLayout/TabLayout.js +4 -0
- package/ThemeDecorator/ThemeDecorator.d.ts +1 -1
- package/ThemeDecorator/ThemeDecorator.module.css +22 -1
- package/TimePicker/TimePicker.module.css +3 -0
- package/TooltipDecorator/Tooltip.js +68 -7
- package/TooltipDecorator/Tooltip.module.css +44 -23
- package/TooltipDecorator/TooltipDecorator.d.ts +52 -0
- package/TooltipDecorator/TooltipDecorator.js +42 -0
- package/TooltipDecorator/TooltipLabel.js +67 -14
- package/TooltipDecorator/tests/TooltipDecorator-specs.js +46 -0
- package/TooltipDecorator/useTooltip.js +14 -2
- package/VideoPlayer/Feedback.module.css +3 -0
- package/VideoPlayer/FeedbackTooltip.module.css +7 -0
- package/VideoPlayer/MediaTitle.module.css +9 -1
- package/VirtualList/VirtualList.d.ts +24 -0
- package/VirtualList/VirtualList.js +30 -0
- package/VirtualList/tests/stickTo-specs.js +115 -0
- package/VirtualList/tests/useEvent-specs.js +39 -0
- package/VirtualList/useEvent.js +45 -10
- package/VirtualList/useThemeVirtualList.js +20 -2
- package/WizardPanels/WizardPanels.module.css +1 -1
- package/fonts/Limestone_Icons.ttf +0 -0
- package/internal/DateComponentPicker/DateComponentPicker.module.css +3 -3
- package/internal/DateTime/DateTime.module.css +3 -0
- package/internal/Picker/Picker.js +8 -10
- package/internal/Picker/Picker.module.css +92 -137
- package/package.json +14 -17
- package/styles/color-mixins.less +4 -60
- package/styles/colors-game.less +5 -5
- package/styles/colors.less +9 -10
- package/styles/mixins.less +0 -46
- package/styles/motion-mixins.less +16 -7
- package/styles/motions.less +2 -2
- package/styles/variables.less +186 -69
- package/useScroll/ScrollbarPlaceholder.js +8 -3
- package/useScroll/useScroll.js +3 -1
|
@@ -15,6 +15,34 @@
|
|
|
15
15
|
left: 0;
|
|
16
16
|
border-radius: var(--semantic-radius-button);
|
|
17
17
|
}
|
|
18
|
+
.imageItem .selectionContainer {
|
|
19
|
+
background-color: transparent;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
top: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
position: absolute;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
.imageItem .selectionContainer::after {
|
|
31
|
+
content: '';
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
right: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
border-width: 0.125rem;
|
|
38
|
+
border-style: solid;
|
|
39
|
+
}
|
|
40
|
+
.imageItem .selectionContainer .selectionIcon {
|
|
41
|
+
position: relative;
|
|
42
|
+
display: block;
|
|
43
|
+
border-radius: var(--semantic-radius-full);
|
|
44
|
+
margin: 0;
|
|
45
|
+
}
|
|
18
46
|
.imageItem .caption {
|
|
19
47
|
font-size: var(--primitive-font-size-60);
|
|
20
48
|
line-height: 1.75rem;
|
|
@@ -48,6 +76,30 @@
|
|
|
48
76
|
:global(.enact-locale-vi) .imageItem .label {
|
|
49
77
|
font-size: var(--primitive-font-size-36);
|
|
50
78
|
}
|
|
79
|
+
.imageItem:global(.largeText) .caption {
|
|
80
|
+
font-size: var(--primitive-font-size-72);
|
|
81
|
+
line-height: 2.08333rem;
|
|
82
|
+
}
|
|
83
|
+
.imageItem:global(.largeText) .label {
|
|
84
|
+
font-size: var(--primitive-font-size-58);
|
|
85
|
+
line-height: 1.45833rem;
|
|
86
|
+
}
|
|
87
|
+
.imageItem:global(.largeText).vertical .selectionContainer .selectionIcon {
|
|
88
|
+
width: 3rem;
|
|
89
|
+
height: 3rem;
|
|
90
|
+
line-height: 3rem;
|
|
91
|
+
--icon-size: 3rem;
|
|
92
|
+
}
|
|
93
|
+
.imageItem:global(.largeText).vertical .imageIcon {
|
|
94
|
+
width: 3.3rem;
|
|
95
|
+
height: 3.3rem;
|
|
96
|
+
}
|
|
97
|
+
.imageItem:global(.largeText).horizontal .selectionContainer .selectionIcon {
|
|
98
|
+
width: 1.5rem;
|
|
99
|
+
height: 1.5rem;
|
|
100
|
+
line-height: 1.5rem;
|
|
101
|
+
--icon-size: 1.5rem;
|
|
102
|
+
}
|
|
51
103
|
.imageItem.vertical.fullImage {
|
|
52
104
|
border-radius: 0;
|
|
53
105
|
padding: var(--primitive-spacing-60);
|
|
@@ -73,37 +125,6 @@
|
|
|
73
125
|
padding: var(--primitive-spacing-24) var(--primitive-spacing-24) var(--primitive-spacing-30);
|
|
74
126
|
margin: 0 var(--primitive-spacing-36) var(--primitive-spacing-30) var(--primitive-spacing-36);
|
|
75
127
|
}
|
|
76
|
-
.imageItem.vertical .selectionContainer {
|
|
77
|
-
background-color: transparent;
|
|
78
|
-
pointer-events: none;
|
|
79
|
-
top: 0;
|
|
80
|
-
right: 0;
|
|
81
|
-
bottom: 0;
|
|
82
|
-
left: 0;
|
|
83
|
-
position: absolute;
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
}
|
|
88
|
-
.imageItem.vertical .selectionContainer::after {
|
|
89
|
-
content: '';
|
|
90
|
-
position: absolute;
|
|
91
|
-
top: 0;
|
|
92
|
-
right: 0;
|
|
93
|
-
bottom: 0;
|
|
94
|
-
left: 0;
|
|
95
|
-
border-width: 0.125rem;
|
|
96
|
-
border-style: solid;
|
|
97
|
-
}
|
|
98
|
-
.imageItem.vertical .selectionContainer .selectionIcon {
|
|
99
|
-
position: relative;
|
|
100
|
-
display: block;
|
|
101
|
-
border-radius: var(--semantic-radius-full);
|
|
102
|
-
margin: 0;
|
|
103
|
-
width: 2.5rem;
|
|
104
|
-
height: 2.5rem;
|
|
105
|
-
line-height: 2.5rem;
|
|
106
|
-
}
|
|
107
128
|
.imageItem.vertical .captions {
|
|
108
129
|
align-items: center;
|
|
109
130
|
margin-top: var(--primitive-spacing-30);
|
|
@@ -122,6 +143,12 @@
|
|
|
122
143
|
.imageItem.vertical .placeholderLabel {
|
|
123
144
|
height: 1.375rem;
|
|
124
145
|
}
|
|
146
|
+
.imageItem.vertical .selectionIcon {
|
|
147
|
+
width: 2.5rem;
|
|
148
|
+
height: 2.5rem;
|
|
149
|
+
line-height: 2.5rem;
|
|
150
|
+
--icon-size: 2.5rem;
|
|
151
|
+
}
|
|
125
152
|
.imageItem.horizontal {
|
|
126
153
|
padding: var(--primitive-spacing-30) 1rem;
|
|
127
154
|
align-items: center;
|
|
@@ -145,12 +172,10 @@
|
|
|
145
172
|
height: 5rem;
|
|
146
173
|
}
|
|
147
174
|
.imageItem.horizontal .selectionIcon {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
:
|
|
152
|
-
margin-left: var(--primitive-spacing-48);
|
|
153
|
-
margin-right: var(--primitive-spacing-12);
|
|
175
|
+
width: 1.25rem;
|
|
176
|
+
height: 1.25rem;
|
|
177
|
+
line-height: 1.25rem;
|
|
178
|
+
--icon-size: 1.25rem;
|
|
154
179
|
}
|
|
155
180
|
.imageItem:global(.neutral)::before {
|
|
156
181
|
opacity: 0;
|
|
@@ -179,7 +204,7 @@
|
|
|
179
204
|
.imageItem:global(.neutral).selected .selectionContainer::after {
|
|
180
205
|
border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
|
|
181
206
|
}
|
|
182
|
-
.imageItem:global(.neutral).selected
|
|
207
|
+
.imageItem:global(.neutral).selected .selectionIcon {
|
|
183
208
|
background-color: var(--semantic-color-surface-highlight);
|
|
184
209
|
color: var(--semantic-color-on-surface-white);
|
|
185
210
|
}
|
|
@@ -237,6 +262,11 @@
|
|
|
237
262
|
:global(.spotlight-input-mouse) .imageItem:global(.neutral):global(.spottable):focus .label {
|
|
238
263
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
239
264
|
}
|
|
265
|
+
:global(.spotlight-input-key) .imageItem:global(.neutral):global(.spottable):focus.selected .selectionIcon,
|
|
266
|
+
:global(.spotlight-input-mouse) .imageItem:global(.neutral):global(.spottable):focus.selected .selectionIcon {
|
|
267
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
268
|
+
color: var(--semantic-color-on-surface-white);
|
|
269
|
+
}
|
|
240
270
|
:global(.spotlight-input-key) .imageItem:global(.neutral):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
|
|
241
271
|
:global(.spotlight-input-mouse) .imageItem:global(.neutral):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
|
|
242
272
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
@@ -246,11 +276,6 @@
|
|
|
246
276
|
transform: scale(1.1);
|
|
247
277
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
248
278
|
}
|
|
249
|
-
:global(.spotlight-input-key) .imageItem:global(.neutral):global(.spottable):focus.vertical.selected .selectionIcon,
|
|
250
|
-
:global(.spotlight-input-mouse) .imageItem:global(.neutral):global(.spottable):focus.vertical.selected .selectionIcon {
|
|
251
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
252
|
-
color: var(--semantic-color-on-surface-white);
|
|
253
|
-
}
|
|
254
279
|
:global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active {
|
|
255
280
|
color: var(--semantic-color-on-surface-main-focused);
|
|
256
281
|
}
|
|
@@ -276,6 +301,10 @@
|
|
|
276
301
|
:global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active .label {
|
|
277
302
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
278
303
|
}
|
|
304
|
+
:global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active.selected .selectionIcon {
|
|
305
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
306
|
+
color: var(--semantic-color-on-surface-white);
|
|
307
|
+
}
|
|
279
308
|
:global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active.vertical.fullImage .selectionContainer::after {
|
|
280
309
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
281
310
|
}
|
|
@@ -283,10 +312,6 @@
|
|
|
283
312
|
transform: scale(1.1);
|
|
284
313
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
285
314
|
}
|
|
286
|
-
:global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active.vertical.selected .selectionIcon {
|
|
287
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
288
|
-
color: var(--semantic-color-on-surface-white);
|
|
289
|
-
}
|
|
290
315
|
:global(.noAnimation) .imageItem:global(.neutral).vertical.fullImage .image {
|
|
291
316
|
transition: none;
|
|
292
317
|
}
|
|
@@ -331,7 +356,7 @@
|
|
|
331
356
|
:global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).selected .selectionContainer::after {
|
|
332
357
|
border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
|
|
333
358
|
}
|
|
334
|
-
:global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).selected
|
|
359
|
+
:global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).selected .selectionIcon {
|
|
335
360
|
background-color: var(--semantic-color-surface-highlight);
|
|
336
361
|
color: var(--semantic-color-on-surface-white);
|
|
337
362
|
}
|
|
@@ -389,6 +414,11 @@
|
|
|
389
414
|
:global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus .label {
|
|
390
415
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
391
416
|
}
|
|
417
|
+
:global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.selected .selectionIcon,
|
|
418
|
+
:global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.selected .selectionIcon {
|
|
419
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
420
|
+
color: var(--semantic-color-on-surface-white);
|
|
421
|
+
}
|
|
392
422
|
:global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
|
|
393
423
|
:global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
|
|
394
424
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
@@ -398,11 +428,6 @@
|
|
|
398
428
|
transform: scale(1.1);
|
|
399
429
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
400
430
|
}
|
|
401
|
-
:global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.selected .selectionIcon,
|
|
402
|
-
:global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.selected .selectionIcon {
|
|
403
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
404
|
-
color: var(--semantic-color-on-surface-white);
|
|
405
|
-
}
|
|
406
431
|
:global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active {
|
|
407
432
|
color: var(--semantic-color-on-surface-main-focused);
|
|
408
433
|
}
|
|
@@ -428,6 +453,10 @@
|
|
|
428
453
|
:global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active .label {
|
|
429
454
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
430
455
|
}
|
|
456
|
+
:global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active.selected .selectionIcon {
|
|
457
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
458
|
+
color: var(--semantic-color-on-surface-white);
|
|
459
|
+
}
|
|
431
460
|
:global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active.vertical.fullImage .selectionContainer::after {
|
|
432
461
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
433
462
|
}
|
|
@@ -435,10 +464,6 @@
|
|
|
435
464
|
transform: scale(1.1);
|
|
436
465
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
437
466
|
}
|
|
438
|
-
:global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active.vertical.selected .selectionIcon {
|
|
439
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
440
|
-
color: var(--semantic-color-on-surface-white);
|
|
441
|
-
}
|
|
442
467
|
:global(.noAnimation) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).vertical.fullImage .image {
|
|
443
468
|
transition: none;
|
|
444
469
|
}
|
|
@@ -483,7 +508,7 @@
|
|
|
483
508
|
.imageItem:global(.light).selected .selectionContainer::after {
|
|
484
509
|
border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
|
|
485
510
|
}
|
|
486
|
-
.imageItem:global(.light).selected
|
|
511
|
+
.imageItem:global(.light).selected .selectionIcon {
|
|
487
512
|
background-color: var(--semantic-color-surface-highlight);
|
|
488
513
|
color: var(--semantic-color-on-surface-white);
|
|
489
514
|
}
|
|
@@ -541,6 +566,11 @@
|
|
|
541
566
|
:global(.spotlight-input-mouse) .imageItem:global(.light):global(.spottable):focus .label {
|
|
542
567
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
543
568
|
}
|
|
569
|
+
:global(.spotlight-input-key) .imageItem:global(.light):global(.spottable):focus.selected .selectionIcon,
|
|
570
|
+
:global(.spotlight-input-mouse) .imageItem:global(.light):global(.spottable):focus.selected .selectionIcon {
|
|
571
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
572
|
+
color: var(--semantic-color-on-surface-white);
|
|
573
|
+
}
|
|
544
574
|
:global(.spotlight-input-key) .imageItem:global(.light):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
|
|
545
575
|
:global(.spotlight-input-mouse) .imageItem:global(.light):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
|
|
546
576
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
@@ -550,11 +580,6 @@
|
|
|
550
580
|
transform: scale(1.1);
|
|
551
581
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
552
582
|
}
|
|
553
|
-
:global(.spotlight-input-key) .imageItem:global(.light):global(.spottable):focus.vertical.selected .selectionIcon,
|
|
554
|
-
:global(.spotlight-input-mouse) .imageItem:global(.light):global(.spottable):focus.vertical.selected .selectionIcon {
|
|
555
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
556
|
-
color: var(--semantic-color-on-surface-white);
|
|
557
|
-
}
|
|
558
583
|
:global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active {
|
|
559
584
|
color: var(--semantic-color-on-surface-main-focused);
|
|
560
585
|
}
|
|
@@ -580,6 +605,10 @@
|
|
|
580
605
|
:global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active .label {
|
|
581
606
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
582
607
|
}
|
|
608
|
+
:global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active.selected .selectionIcon {
|
|
609
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
610
|
+
color: var(--semantic-color-on-surface-white);
|
|
611
|
+
}
|
|
583
612
|
:global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active.vertical.fullImage .selectionContainer::after {
|
|
584
613
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
585
614
|
}
|
|
@@ -587,10 +616,6 @@
|
|
|
587
616
|
transform: scale(1.1);
|
|
588
617
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
589
618
|
}
|
|
590
|
-
:global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active.vertical.selected .selectionIcon {
|
|
591
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
592
|
-
color: var(--semantic-color-on-surface-white);
|
|
593
|
-
}
|
|
594
619
|
:global(.noAnimation) .imageItem:global(.light).vertical.fullImage .image {
|
|
595
620
|
transition: none;
|
|
596
621
|
}
|
|
@@ -640,7 +665,7 @@
|
|
|
640
665
|
.imageItem:global(.game).selected .selectionContainer::after {
|
|
641
666
|
border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
|
|
642
667
|
}
|
|
643
|
-
.imageItem:global(.game).selected
|
|
668
|
+
.imageItem:global(.game).selected .selectionIcon {
|
|
644
669
|
background-color: var(--semantic-color-surface-highlight);
|
|
645
670
|
color: var(--semantic-color-on-surface-white);
|
|
646
671
|
}
|
|
@@ -698,6 +723,11 @@
|
|
|
698
723
|
:global(.spotlight-input-mouse) .imageItem:global(.game):global(.spottable):focus .label {
|
|
699
724
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
700
725
|
}
|
|
726
|
+
:global(.spotlight-input-key) .imageItem:global(.game):global(.spottable):focus.selected .selectionIcon,
|
|
727
|
+
:global(.spotlight-input-mouse) .imageItem:global(.game):global(.spottable):focus.selected .selectionIcon {
|
|
728
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
729
|
+
color: var(--semantic-color-on-surface-white);
|
|
730
|
+
}
|
|
701
731
|
:global(.spotlight-input-key) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
|
|
702
732
|
:global(.spotlight-input-mouse) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
|
|
703
733
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
@@ -707,11 +737,6 @@
|
|
|
707
737
|
transform: scale(1.1);
|
|
708
738
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
709
739
|
}
|
|
710
|
-
:global(.spotlight-input-key) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon,
|
|
711
|
-
:global(.spotlight-input-mouse) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon {
|
|
712
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
713
|
-
color: var(--semantic-color-on-surface-white);
|
|
714
|
-
}
|
|
715
740
|
:global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active {
|
|
716
741
|
color: var(--semantic-color-on-surface-main-focused);
|
|
717
742
|
}
|
|
@@ -737,6 +762,10 @@
|
|
|
737
762
|
:global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active .label {
|
|
738
763
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
739
764
|
}
|
|
765
|
+
:global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active.selected .selectionIcon {
|
|
766
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
767
|
+
color: var(--semantic-color-on-surface-white);
|
|
768
|
+
}
|
|
740
769
|
:global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active.vertical.fullImage .selectionContainer::after {
|
|
741
770
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
742
771
|
}
|
|
@@ -744,10 +773,6 @@
|
|
|
744
773
|
transform: scale(1.1);
|
|
745
774
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
746
775
|
}
|
|
747
|
-
:global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active.vertical.selected .selectionIcon {
|
|
748
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
749
|
-
color: var(--semantic-color-on-surface-white);
|
|
750
|
-
}
|
|
751
776
|
:global(.noAnimation) .imageItem:global(.game).vertical.fullImage .image {
|
|
752
777
|
transition: none;
|
|
753
778
|
}
|
|
@@ -796,7 +821,7 @@
|
|
|
796
821
|
:global(.green) .imageItem:global(.game).selected .selectionContainer::after {
|
|
797
822
|
border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
|
|
798
823
|
}
|
|
799
|
-
:global(.green) .imageItem:global(.game).selected
|
|
824
|
+
:global(.green) .imageItem:global(.game).selected .selectionIcon {
|
|
800
825
|
background-color: var(--semantic-color-surface-highlight);
|
|
801
826
|
color: var(--semantic-color-on-surface-white);
|
|
802
827
|
}
|
|
@@ -854,6 +879,11 @@
|
|
|
854
879
|
:global(.spotlight-input-mouse) :global(.green) .imageItem:global(.game):global(.spottable):focus .label {
|
|
855
880
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
856
881
|
}
|
|
882
|
+
:global(.spotlight-input-key) :global(.green) .imageItem:global(.game):global(.spottable):focus.selected .selectionIcon,
|
|
883
|
+
:global(.spotlight-input-mouse) :global(.green) .imageItem:global(.game):global(.spottable):focus.selected .selectionIcon {
|
|
884
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
885
|
+
color: var(--semantic-color-on-surface-white);
|
|
886
|
+
}
|
|
857
887
|
:global(.spotlight-input-key) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
|
|
858
888
|
:global(.spotlight-input-mouse) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
|
|
859
889
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
@@ -863,11 +893,6 @@
|
|
|
863
893
|
transform: scale(1.1);
|
|
864
894
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
865
895
|
}
|
|
866
|
-
:global(.spotlight-input-key) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon,
|
|
867
|
-
:global(.spotlight-input-mouse) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon {
|
|
868
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
869
|
-
color: var(--semantic-color-on-surface-white);
|
|
870
|
-
}
|
|
871
896
|
:global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active {
|
|
872
897
|
color: var(--semantic-color-on-surface-main-focused);
|
|
873
898
|
}
|
|
@@ -893,6 +918,10 @@
|
|
|
893
918
|
:global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active .label {
|
|
894
919
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
895
920
|
}
|
|
921
|
+
:global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active.selected .selectionIcon {
|
|
922
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
923
|
+
color: var(--semantic-color-on-surface-white);
|
|
924
|
+
}
|
|
896
925
|
:global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active.vertical.fullImage .selectionContainer::after {
|
|
897
926
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
898
927
|
}
|
|
@@ -900,10 +929,6 @@
|
|
|
900
929
|
transform: scale(1.1);
|
|
901
930
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
902
931
|
}
|
|
903
|
-
:global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active.vertical.selected .selectionIcon {
|
|
904
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
905
|
-
color: var(--semantic-color-on-surface-white);
|
|
906
|
-
}
|
|
907
932
|
:global(.noAnimation) :global(.green) .imageItem:global(.game).vertical.fullImage .image {
|
|
908
933
|
transition: none;
|
|
909
934
|
}
|
|
@@ -952,7 +977,7 @@
|
|
|
952
977
|
:global(.orange) .imageItem:global(.game).selected .selectionContainer::after {
|
|
953
978
|
border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
|
|
954
979
|
}
|
|
955
|
-
:global(.orange) .imageItem:global(.game).selected
|
|
980
|
+
:global(.orange) .imageItem:global(.game).selected .selectionIcon {
|
|
956
981
|
background-color: var(--semantic-color-surface-highlight);
|
|
957
982
|
color: var(--semantic-color-on-surface-white);
|
|
958
983
|
}
|
|
@@ -1010,6 +1035,11 @@
|
|
|
1010
1035
|
:global(.spotlight-input-mouse) :global(.orange) .imageItem:global(.game):global(.spottable):focus .label {
|
|
1011
1036
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
1012
1037
|
}
|
|
1038
|
+
:global(.spotlight-input-key) :global(.orange) .imageItem:global(.game):global(.spottable):focus.selected .selectionIcon,
|
|
1039
|
+
:global(.spotlight-input-mouse) :global(.orange) .imageItem:global(.game):global(.spottable):focus.selected .selectionIcon {
|
|
1040
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
1041
|
+
color: var(--semantic-color-on-surface-white);
|
|
1042
|
+
}
|
|
1013
1043
|
:global(.spotlight-input-key) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
|
|
1014
1044
|
:global(.spotlight-input-mouse) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
|
|
1015
1045
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
@@ -1019,11 +1049,6 @@
|
|
|
1019
1049
|
transform: scale(1.1);
|
|
1020
1050
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
1021
1051
|
}
|
|
1022
|
-
:global(.spotlight-input-key) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon,
|
|
1023
|
-
:global(.spotlight-input-mouse) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon {
|
|
1024
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
1025
|
-
color: var(--semantic-color-on-surface-white);
|
|
1026
|
-
}
|
|
1027
1052
|
:global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active {
|
|
1028
1053
|
color: var(--semantic-color-on-surface-main-focused);
|
|
1029
1054
|
}
|
|
@@ -1049,6 +1074,10 @@
|
|
|
1049
1074
|
:global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active .label {
|
|
1050
1075
|
color: var(--semantic-color-on-surface-sub-focused);
|
|
1051
1076
|
}
|
|
1077
|
+
:global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active.selected .selectionIcon {
|
|
1078
|
+
background-color: var(--semantic-color-surface-highlight);
|
|
1079
|
+
color: var(--semantic-color-on-surface-white);
|
|
1080
|
+
}
|
|
1052
1081
|
:global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active.vertical.fullImage .selectionContainer::after {
|
|
1053
1082
|
border-color: var(--semantic-color-stroke-main-focused);
|
|
1054
1083
|
}
|
|
@@ -1056,10 +1085,6 @@
|
|
|
1056
1085
|
transform: scale(1.1);
|
|
1057
1086
|
box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
|
|
1058
1087
|
}
|
|
1059
|
-
:global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active.vertical.selected .selectionIcon {
|
|
1060
|
-
background-color: var(--semantic-color-surface-highlight);
|
|
1061
|
-
color: var(--semantic-color-on-surface-white);
|
|
1062
|
-
}
|
|
1063
1088
|
:global(.noAnimation) :global(.orange) .imageItem:global(.game).vertical.fullImage .image {
|
|
1064
1089
|
transition: none;
|
|
1065
1090
|
}
|
|
@@ -194,14 +194,15 @@ describe('ImageItem', function () {
|
|
|
194
194
|
var actual = _react.screen.getAllByRole('img')[0].parentElement;
|
|
195
195
|
expect(actual).not.toHaveClass(expected);
|
|
196
196
|
});
|
|
197
|
-
test('should
|
|
197
|
+
test('should apply `selected` class when `showSelection` and `selected` props are true with horizontal layout', function () {
|
|
198
198
|
(0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageItem.ImageItemBase, {
|
|
199
199
|
orientation: "horizontal",
|
|
200
200
|
showSelection: true,
|
|
201
201
|
selected: true
|
|
202
202
|
}));
|
|
203
|
-
var
|
|
204
|
-
|
|
203
|
+
var expected = 'selected';
|
|
204
|
+
var actual = _react.screen.getAllByRole('img')[0].parentElement;
|
|
205
|
+
expect(actual).toHaveClass(expected);
|
|
205
206
|
});
|
|
206
207
|
test('should support `selectionComponent` prop with horizontal layout', function () {
|
|
207
208
|
(0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageItem.ImageItemBase, {
|
|
@@ -209,8 +210,8 @@ describe('ImageItem', function () {
|
|
|
209
210
|
selectionComponent: SelectionComponent,
|
|
210
211
|
showSelection: true
|
|
211
212
|
}));
|
|
212
|
-
var expected = '
|
|
213
|
-
var actual = _react.screen.getAllByRole('img')[0].
|
|
213
|
+
var expected = 'selectionContainer';
|
|
214
|
+
var actual = _react.screen.getAllByRole('img')[0].children.item(0);
|
|
214
215
|
expect(actual).toHaveClass(expected);
|
|
215
216
|
});
|
|
216
217
|
});
|
package/Input/Input.module.css
CHANGED
|
@@ -54,9 +54,6 @@
|
|
|
54
54
|
z-index: -1;
|
|
55
55
|
border-radius: var(--semantic-radius-button);
|
|
56
56
|
}
|
|
57
|
-
.inputPopup .inputArea {
|
|
58
|
-
text-align: center;
|
|
59
|
-
}
|
|
60
57
|
.inputPopup .numberCell {
|
|
61
58
|
justify-content: center;
|
|
62
59
|
align-items: center;
|
|
@@ -69,6 +66,9 @@
|
|
|
69
66
|
display: block;
|
|
70
67
|
margin: var(--primitive-spacing-60) auto 0 auto;
|
|
71
68
|
}
|
|
69
|
+
.inputPopup .inputArea {
|
|
70
|
+
text-align: center;
|
|
71
|
+
}
|
|
72
72
|
.inputPopup .inputArea .tooltip {
|
|
73
73
|
margin-top: var(--primitive-spacing-24);
|
|
74
74
|
}
|
|
@@ -80,6 +80,10 @@
|
|
|
80
80
|
.inputPopup .inputArea .contentArea {
|
|
81
81
|
/* Available for customization */
|
|
82
82
|
}
|
|
83
|
+
.inputPopup:global(.largeText) .tooltip .tooltipLabel {
|
|
84
|
+
font-size: var(--primitive-font-size-58);
|
|
85
|
+
line-height: 1.45833rem;
|
|
86
|
+
}
|
|
83
87
|
:global(.enact-locale-right-to-left) .inputPopup .keypad {
|
|
84
88
|
direction: ltr;
|
|
85
89
|
}
|
|
@@ -92,6 +96,9 @@
|
|
|
92
96
|
.inputPopup .keypad .key .icon {
|
|
93
97
|
font-size: var(--primitive-font-size-90);
|
|
94
98
|
}
|
|
99
|
+
.inputPopup .keypad .key .icon:global(.largeText) {
|
|
100
|
+
font-size: var(--primitive-font-size-108);
|
|
101
|
+
}
|
|
95
102
|
.inputPopup.fullscreen .back {
|
|
96
103
|
top: var(--primitive-spacing-108);
|
|
97
104
|
left: var(--primitive-spacing-132);
|
|
@@ -102,7 +109,7 @@
|
|
|
102
109
|
right: var(--primitive-spacing-132);
|
|
103
110
|
}
|
|
104
111
|
.inputPopup.fullscreen .inputBody {
|
|
105
|
-
padding: calc(var(--primitive-spacing-156) - var(--primitive-spacing-48))
|
|
112
|
+
padding: calc(var(--primitive-spacing-156) - var(--primitive-spacing-48)) calc(324px - var(--primitive-spacing-72)) 0 calc(324px - var(--primitive-spacing-72));
|
|
106
113
|
}
|
|
107
114
|
:global(.enact-orientation-portrait) .inputPopup.fullscreen .inputBody {
|
|
108
115
|
padding: calc(var(--primitive-spacing-96) - var(--primitive-spacing-48)) calc(var(--primitive-spacing-132) - var(--primitive-spacing-72)) 0 calc(var(--primitive-spacing-132) - var(--primitive-spacing-72));
|
|
@@ -152,9 +159,6 @@
|
|
|
152
159
|
:global(.enact-orientation-portrait) .inputPopup.fullscreen .keypad {
|
|
153
160
|
margin: var(--primitive-spacing-132) auto 0 auto;
|
|
154
161
|
}
|
|
155
|
-
:global(.enact-text-large) .inputPopup.fullscreen .keypad .key {
|
|
156
|
-
height: 4rem;
|
|
157
|
-
}
|
|
158
162
|
.inputPopup.fullscreen .buttonArea {
|
|
159
163
|
margin: 0;
|
|
160
164
|
display: flex;
|
|
@@ -173,16 +177,16 @@
|
|
|
173
177
|
max-width: 67.5rem;
|
|
174
178
|
}
|
|
175
179
|
.inputPopup.fullscreen:not(.number, .passwordnumber) .inputArea {
|
|
176
|
-
height: calc(100% -
|
|
180
|
+
height: calc(100% - 4.75rem - 18.25rem );
|
|
177
181
|
}
|
|
178
182
|
.inputPopup.fullscreen.number .inputArea,
|
|
179
183
|
.inputPopup.fullscreen.passwordnumber .inputArea {
|
|
180
|
-
height: calc(100% -
|
|
184
|
+
height: calc(100% - 4.75rem - 5rem );
|
|
181
185
|
margin: var(--primitive-spacing-120) 0 0 0;
|
|
182
186
|
}
|
|
183
187
|
.inputPopup.fullscreen.number .inputArea.withButtons,
|
|
184
188
|
.inputPopup.fullscreen.passwordnumber .inputArea.withButtons {
|
|
185
|
-
height: calc(100% -
|
|
189
|
+
height: calc(100% - 4.75rem - 6.25rem );
|
|
186
190
|
margin: var(--primitive-spacing-60) 0 0 0;
|
|
187
191
|
}
|
|
188
192
|
.inputPopup.overlay {
|
|
@@ -196,6 +200,7 @@
|
|
|
196
200
|
height: 2.5rem;
|
|
197
201
|
}
|
|
198
202
|
.inputPopup.overlay .title {
|
|
203
|
+
font-family: "Limestone Title", "Limestone";
|
|
199
204
|
margin: 0 var(--primitive-spacing-144) 0 var(--primitive-spacing-144);
|
|
200
205
|
font-size: var(--primitive-font-size-90);
|
|
201
206
|
}
|
|
@@ -241,12 +246,6 @@
|
|
|
241
246
|
justify-content: flex-end;
|
|
242
247
|
column-gap: var(--primitive-spacing-60);
|
|
243
248
|
}
|
|
244
|
-
:global(.enact-text-large) .inputPopup.overlay .keypad {
|
|
245
|
-
width: 14.5rem;
|
|
246
|
-
}
|
|
247
|
-
:global(.enact-text-large) .inputPopup.overlay .keypad .key {
|
|
248
|
-
height: 4rem;
|
|
249
|
-
}
|
|
250
249
|
.inputPopup.overlay .buttonArea {
|
|
251
250
|
align-items: center;
|
|
252
251
|
display: flex;
|
|
@@ -257,6 +256,24 @@
|
|
|
257
256
|
.inputPopup.overlay .tooltip .tooltipLabel {
|
|
258
257
|
max-width: 15.375rem;
|
|
259
258
|
}
|
|
259
|
+
.inputPopup:global(.largeText).fullscreen .numberCell.password {
|
|
260
|
+
font-size: var(--primitive-font-size-56);
|
|
261
|
+
}
|
|
262
|
+
.inputPopup:global(.largeText).fullscreen .joined {
|
|
263
|
+
font-size: var(--primitive-font-size-94);
|
|
264
|
+
}
|
|
265
|
+
.inputPopup:global(.largeText).fullscreen .joined.password {
|
|
266
|
+
font-size: var(--primitive-font-size-56);
|
|
267
|
+
}
|
|
268
|
+
.inputPopup:global(.largeText).overlay .numberCell.password {
|
|
269
|
+
font-size: var(--primitive-font-size-48);
|
|
270
|
+
}
|
|
271
|
+
.inputPopup:global(.largeText).overlay .joined {
|
|
272
|
+
font-size: var(--primitive-font-size-94);
|
|
273
|
+
}
|
|
274
|
+
.inputPopup:global(.largeText).overlay .joined.password {
|
|
275
|
+
font-size: var(--primitive-font-size-48);
|
|
276
|
+
}
|
|
260
277
|
.inputPopup:global(.neutral) {
|
|
261
278
|
background-color: var(--semantic-color-background-full-default);
|
|
262
279
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
font-size: var(--primitive-font-size-60);
|
|
5
5
|
font-style: normal;
|
|
6
6
|
font-family: "Limestone";
|
|
7
|
-
line-height: 1.
|
|
7
|
+
line-height: 1.34em;
|
|
8
8
|
padding: 0;
|
|
9
9
|
border: 0;
|
|
10
10
|
cursor: pointer;
|
|
@@ -232,6 +232,27 @@
|
|
|
232
232
|
.inputField .tooltip .tooltipLabel {
|
|
233
233
|
font-size: var(--primitive-font-size-48);
|
|
234
234
|
font-weight: var(--primitive-font-weight-semibold);
|
|
235
|
+
line-height: 1.25rem;
|
|
236
|
+
}
|
|
237
|
+
.inputField:global(.largeText) .input,
|
|
238
|
+
.inputField:global(.largeText) .inputHighlight,
|
|
239
|
+
.inputField:global(.largeText) .marqueeText {
|
|
240
|
+
font-size: var(--primitive-font-size-94);
|
|
241
|
+
}
|
|
242
|
+
.inputField:global(.largeText).small .input,
|
|
243
|
+
.inputField:global(.largeText).small .marqueeText {
|
|
244
|
+
font-size: var(--primitive-font-size-72);
|
|
245
|
+
line-height: 3.25rem;
|
|
246
|
+
}
|
|
247
|
+
.inputField:global(.largeText).small .inputHighlight {
|
|
248
|
+
line-height: 3.25rem;
|
|
249
|
+
}
|
|
250
|
+
.inputField:global(.largeText) .tooltip .tooltipLabel {
|
|
251
|
+
font-size: var(--primitive-font-size-58);
|
|
252
|
+
line-height: 1.45833rem;
|
|
253
|
+
}
|
|
254
|
+
.inputField.active .marqueeText {
|
|
255
|
+
display: none;
|
|
235
256
|
}
|
|
236
257
|
.inputField:global(.neutral) {
|
|
237
258
|
caret-color: var(--semantic-color-on-surface-accent);
|
|
@@ -990,6 +1011,3 @@
|
|
|
990
1011
|
:global(.spotlight-input-touch) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):active .marqueeText {
|
|
991
1012
|
color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
|
|
992
1013
|
}
|
|
993
|
-
.inputField.active .marqueeText {
|
|
994
|
-
display: none;
|
|
995
|
-
}
|
package/Input/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Type definitions for limestone/Input
|
|
2
2
|
|
|
3
3
|
import { ChangeableProps as ui_Changeable_ChangeableProps } from "@enact/ui/Changeable";
|
|
4
|
-
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "limestone/Skinnable";
|
|
4
|
+
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "@enact/limestone/Skinnable";
|
|
5
5
|
import { ToggleableProps as ui_Toggleable_ToggleableProps } from "@enact/ui/Toggleable";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { SpottableProps as spotlight_Spottable_SpottableProps } from "@enact/spotlight/Spottable";
|
|
@@ -352,7 +352,7 @@ describe('Input specs', function () {
|
|
|
352
352
|
invalidMessage: "Invalid"
|
|
353
353
|
})
|
|
354
354
|
}));
|
|
355
|
-
var invalidTextField = _react.screen.getByText('Invalid').parentElement.parentElement;
|
|
355
|
+
var invalidTextField = _react.screen.getByText('Invalid').parentElement.parentElement.parentElement;
|
|
356
356
|
var expected = 'tooltipLabel';
|
|
357
357
|
expect(invalidTextField).toHaveClass(expected);
|
|
358
358
|
});
|
|
@@ -377,7 +377,7 @@ describe('Input specs', function () {
|
|
|
377
377
|
invalid: true
|
|
378
378
|
})
|
|
379
379
|
}));
|
|
380
|
-
var invalidTextField = _react.screen.getByText('Please enter a valid value.').parentElement.parentElement;
|
|
380
|
+
var invalidTextField = _react.screen.getByText('Please enter a valid value.').parentElement.parentElement.parentElement;
|
|
381
381
|
var expected = 'tooltipLabel';
|
|
382
382
|
expect(invalidTextField).toHaveClass(expected);
|
|
383
383
|
});
|