@enact/limestone 1.10.1 → 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.
Files changed (122) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE.md +1 -0
  2. package/ActionGuide/ActionGuide.d.ts +1 -1
  3. package/ActionGuide/ActionGuide.module.css +3 -0
  4. package/Alert/Alert.d.ts +9 -0
  5. package/Alert/Alert.js +63 -21
  6. package/Alert/Alert.module.css +41 -9
  7. package/Alert/AlertImage.module.css +5 -1
  8. package/Alert/tests/Alert-specs.js +6 -2
  9. package/BodyText/BodyText.d.ts +1 -1
  10. package/BodyText/BodyText.js +14 -9
  11. package/BodyText/BodyText.module.css +1 -1
  12. package/Button/Button.d.ts +3 -3
  13. package/Button/Button.module.css +14 -28
  14. package/CHANGELOG.md +48 -1
  15. package/Card/Card.d.ts +81 -9
  16. package/Card/Card.js +321 -84
  17. package/Card/Card.module.css +171 -20
  18. package/Card/tests/Card-specs.js +100 -0
  19. package/Checkbox/Checkbox.d.ts +2 -2
  20. package/Checkbox/Checkbox.module.css +2 -9
  21. package/CheckboxItem/CheckboxItem.d.ts +8 -1
  22. package/CheckboxItem/CheckboxItem.js +39 -12
  23. package/CheckboxItem/CheckboxItem.module.css +228 -4
  24. package/Chips/Chip.module.css +2 -2
  25. package/ContextualMenuDecorator/ContextualMenuDecorator.d.ts +2 -2
  26. package/ContextualPopupDecorator/ContextualPopup.module.css +1 -1
  27. package/ContextualPopupDecorator/ContextualPopupDecorator.js +2 -4
  28. package/ContextualPopupDecorator/tests/ContextualPopupDecorator-specs.js +39 -2
  29. package/Dropdown/Dropdown.d.ts +2 -2
  30. package/Dropdown/Dropdown.module.css +7 -7
  31. package/FixedPopupPanels/FixedPopupPanels.d.ts +2 -2
  32. package/FlexiblePopupPanels/FlexiblePopupPanels.module.css +15 -3
  33. package/FlexiblePopupPanels/index.d.ts +2 -2
  34. package/FormCheckboxItem/FormCheckboxItem.d.ts +1 -1
  35. package/FormCheckboxItem/FormCheckboxItem.js +1 -0
  36. package/FormCheckboxItem/FormCheckboxItem.module.css +1 -1
  37. package/Heading/Heading.d.ts +2 -2
  38. package/Icon/Icon.d.ts +22 -1
  39. package/Icon/Icon.js +21 -0
  40. package/Icon/IconList.js +43 -1
  41. package/IconItem/IconItem.d.ts +2 -2
  42. package/IconItem/IconItem.module.css +11 -14
  43. package/Image/Image.d.ts +1 -1
  44. package/Image/Image.module.css +1 -1
  45. package/ImageItem/ImageItem.d.ts +2 -2
  46. package/ImageItem/ImageItem.js +3 -16
  47. package/ImageItem/ImageItem.module.css +105 -97
  48. package/ImageItem/tests/ImageItem-specs.js +6 -5
  49. package/Input/Input.module.css +8 -7
  50. package/Input/InputField.module.css +4 -4
  51. package/Input/index.d.ts +1 -1
  52. package/Input/tests/Input-specs.js +2 -2
  53. package/Input/tests/InputField-specs.js +1 -1
  54. package/Item/Item.d.ts +2 -2
  55. package/Item/Item.module.css +27 -15
  56. package/KeyGuide/KeyGuide.d.ts +2 -2
  57. package/MediaOverlay/MediaOverlay.d.ts +2 -2
  58. package/MediaOverlay/MediaOverlay.module.css +2 -5
  59. package/MediaPlayer/MediaSlider.module.css +1 -0
  60. package/MediaPlayer/Times.module.css +1 -1
  61. package/MediaPlayer/index.d.ts +2 -2
  62. package/PageViews/PageViews.module.css +2 -1
  63. package/Panels/Header.module.css +40 -28
  64. package/Panels/Panel.module.css +1 -1
  65. package/Panels/index.d.ts +1 -1
  66. package/Picker/Picker.d.ts +1 -1
  67. package/Popup/Popup.module.css +4 -1
  68. package/PopupTabLayout/PopupTabLayout.d.ts +6 -6
  69. package/PopupTabLayout/PopupTabLayout.module.css +6 -6
  70. package/ProgressBar/ProgressBar.d.ts +1 -1
  71. package/ProgressBar/ProgressBar.module.css +12 -12
  72. package/ProgressBar/ProgressBarTooltip.module.css +7 -7
  73. package/ProgressButton/ProgressButton.d.ts +2 -2
  74. package/QuickGuidePanels/QuickGuidePanels.module.css +1 -1
  75. package/RadioItem/RadioItem.d.ts +1 -1
  76. package/RadioItem/RadioItem.module.css +18 -20
  77. package/Scroller/Scroller.d.ts +12 -0
  78. package/Scroller/Scroller.js +15 -0
  79. package/Scroller/tests/Scroller-specs.js +29 -0
  80. package/Scroller/useThemeScroller.js +22 -2
  81. package/Slider/Slider.d.ts +1 -1
  82. package/Slider/Slider.module.css +539 -300
  83. package/Spinner/Spinner.d.ts +1 -1
  84. package/Spinner/Spinner.module.css +2 -2
  85. package/Steps/Steps.d.ts +1 -1
  86. package/Steps/Steps.js +12 -6
  87. package/Steps/Steps.module.css +16 -2
  88. package/Switch/Switch.module.css +2 -5
  89. package/SwitchItem/SwitchItem.d.ts +1 -1
  90. package/TabLayout/RefocusDecorator.js +1 -1
  91. package/TabLayout/TabGroup.module.css +12 -6
  92. package/TabLayout/TabLayout.js +4 -0
  93. package/ThemeDecorator/ThemeDecorator.d.ts +1 -1
  94. package/ThemeDecorator/ThemeDecorator.module.css +22 -1
  95. package/TooltipDecorator/Tooltip.js +68 -7
  96. package/TooltipDecorator/Tooltip.module.css +40 -23
  97. package/TooltipDecorator/TooltipDecorator.d.ts +52 -0
  98. package/TooltipDecorator/TooltipDecorator.js +42 -0
  99. package/TooltipDecorator/TooltipLabel.js +67 -14
  100. package/TooltipDecorator/tests/TooltipDecorator-specs.js +46 -0
  101. package/TooltipDecorator/useTooltip.js +14 -2
  102. package/VideoPlayer/MediaTitle.module.css +1 -1
  103. package/VirtualList/VirtualList.d.ts +24 -0
  104. package/VirtualList/VirtualList.js +30 -0
  105. package/VirtualList/tests/stickTo-specs.js +115 -0
  106. package/VirtualList/tests/useEvent-specs.js +39 -0
  107. package/VirtualList/useEvent.js +45 -10
  108. package/VirtualList/useThemeVirtualList.js +20 -2
  109. package/WizardPanels/WizardPanels.module.css +1 -1
  110. package/fonts/Limestone_Icons.ttf +0 -0
  111. package/internal/DateComponentPicker/DateComponentPicker.module.css +3 -3
  112. package/internal/Picker/Picker.js +8 -10
  113. package/internal/Picker/Picker.module.css +74 -141
  114. package/package.json +11 -14
  115. package/styles/color-mixins.less +4 -60
  116. package/styles/colors-game.less +5 -5
  117. package/styles/colors.less +9 -10
  118. package/styles/mixins.less +0 -46
  119. package/styles/motion-mixins.less +16 -7
  120. package/styles/motions.less +2 -2
  121. package/styles/variables.less +71 -46
  122. 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;
@@ -60,11 +88,18 @@
60
88
  width: 3rem;
61
89
  height: 3rem;
62
90
  line-height: 3rem;
91
+ --icon-size: 3rem;
63
92
  }
64
93
  .imageItem:global(.largeText).vertical .imageIcon {
65
94
  width: 3.3rem;
66
95
  height: 3.3rem;
67
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
+ }
68
103
  .imageItem.vertical.fullImage {
69
104
  border-radius: 0;
70
105
  padding: var(--primitive-spacing-60);
@@ -90,37 +125,6 @@
90
125
  padding: var(--primitive-spacing-24) var(--primitive-spacing-24) var(--primitive-spacing-30);
91
126
  margin: 0 var(--primitive-spacing-36) var(--primitive-spacing-30) var(--primitive-spacing-36);
92
127
  }
93
- .imageItem.vertical .selectionContainer {
94
- background-color: transparent;
95
- pointer-events: none;
96
- top: 0;
97
- right: 0;
98
- bottom: 0;
99
- left: 0;
100
- position: absolute;
101
- display: flex;
102
- align-items: center;
103
- justify-content: center;
104
- }
105
- .imageItem.vertical .selectionContainer::after {
106
- content: '';
107
- position: absolute;
108
- top: 0;
109
- right: 0;
110
- bottom: 0;
111
- left: 0;
112
- border-width: 0.125rem;
113
- border-style: solid;
114
- }
115
- .imageItem.vertical .selectionContainer .selectionIcon {
116
- position: relative;
117
- display: block;
118
- border-radius: var(--semantic-radius-full);
119
- margin: 0;
120
- width: 2.5rem;
121
- height: 2.5rem;
122
- line-height: 2.5rem;
123
- }
124
128
  .imageItem.vertical .captions {
125
129
  align-items: center;
126
130
  margin-top: var(--primitive-spacing-30);
@@ -139,6 +143,12 @@
139
143
  .imageItem.vertical .placeholderLabel {
140
144
  height: 1.375rem;
141
145
  }
146
+ .imageItem.vertical .selectionIcon {
147
+ width: 2.5rem;
148
+ height: 2.5rem;
149
+ line-height: 2.5rem;
150
+ --icon-size: 2.5rem;
151
+ }
142
152
  .imageItem.horizontal {
143
153
  padding: var(--primitive-spacing-30) 1rem;
144
154
  align-items: center;
@@ -162,12 +172,10 @@
162
172
  height: 5rem;
163
173
  }
164
174
  .imageItem.horizontal .selectionIcon {
165
- margin-left: var(--primitive-spacing-12);
166
- margin-right: var(--primitive-spacing-48);
167
- }
168
- :global(.enact-locale-right-to-left) .imageItem.horizontal .selectionIcon {
169
- margin-left: var(--primitive-spacing-48);
170
- margin-right: var(--primitive-spacing-12);
175
+ width: 1.25rem;
176
+ height: 1.25rem;
177
+ line-height: 1.25rem;
178
+ --icon-size: 1.25rem;
171
179
  }
172
180
  .imageItem:global(.neutral)::before {
173
181
  opacity: 0;
@@ -196,7 +204,7 @@
196
204
  .imageItem:global(.neutral).selected .selectionContainer::after {
197
205
  border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
198
206
  }
199
- .imageItem:global(.neutral).selected.vertical .selectionIcon {
207
+ .imageItem:global(.neutral).selected .selectionIcon {
200
208
  background-color: var(--semantic-color-surface-highlight);
201
209
  color: var(--semantic-color-on-surface-white);
202
210
  }
@@ -254,6 +262,11 @@
254
262
  :global(.spotlight-input-mouse) .imageItem:global(.neutral):global(.spottable):focus .label {
255
263
  color: var(--semantic-color-on-surface-sub-focused);
256
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
+ }
257
270
  :global(.spotlight-input-key) .imageItem:global(.neutral):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
258
271
  :global(.spotlight-input-mouse) .imageItem:global(.neutral):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
259
272
  border-color: var(--semantic-color-stroke-main-focused);
@@ -263,11 +276,6 @@
263
276
  transform: scale(1.1);
264
277
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
265
278
  }
266
- :global(.spotlight-input-key) .imageItem:global(.neutral):global(.spottable):focus.vertical.selected .selectionIcon,
267
- :global(.spotlight-input-mouse) .imageItem:global(.neutral):global(.spottable):focus.vertical.selected .selectionIcon {
268
- background-color: var(--semantic-color-surface-highlight);
269
- color: var(--semantic-color-on-surface-white);
270
- }
271
279
  :global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active {
272
280
  color: var(--semantic-color-on-surface-main-focused);
273
281
  }
@@ -293,6 +301,10 @@
293
301
  :global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active .label {
294
302
  color: var(--semantic-color-on-surface-sub-focused);
295
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
+ }
296
308
  :global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active.vertical.fullImage .selectionContainer::after {
297
309
  border-color: var(--semantic-color-stroke-main-focused);
298
310
  }
@@ -300,10 +312,6 @@
300
312
  transform: scale(1.1);
301
313
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
302
314
  }
303
- :global(.spotlight-input-touch) .imageItem:global(.neutral):global(.spottable):active.vertical.selected .selectionIcon {
304
- background-color: var(--semantic-color-surface-highlight);
305
- color: var(--semantic-color-on-surface-white);
306
- }
307
315
  :global(.noAnimation) .imageItem:global(.neutral).vertical.fullImage .image {
308
316
  transition: none;
309
317
  }
@@ -348,7 +356,7 @@
348
356
  :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).selected .selectionContainer::after {
349
357
  border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
350
358
  }
351
- :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).selected.vertical .selectionIcon {
359
+ :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).selected .selectionIcon {
352
360
  background-color: var(--semantic-color-surface-highlight);
353
361
  color: var(--semantic-color-on-surface-white);
354
362
  }
@@ -406,6 +414,11 @@
406
414
  :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus .label {
407
415
  color: var(--semantic-color-on-surface-sub-focused);
408
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
+ }
409
422
  :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
410
423
  :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
411
424
  border-color: var(--semantic-color-stroke-main-focused);
@@ -415,11 +428,6 @@
415
428
  transform: scale(1.1);
416
429
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
417
430
  }
418
- :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.selected .selectionIcon,
419
- :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):focus.vertical.selected .selectionIcon {
420
- background-color: var(--semantic-color-surface-highlight);
421
- color: var(--semantic-color-on-surface-white);
422
- }
423
431
  :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active {
424
432
  color: var(--semantic-color-on-surface-main-focused);
425
433
  }
@@ -445,6 +453,10 @@
445
453
  :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active .label {
446
454
  color: var(--semantic-color-on-surface-sub-focused);
447
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
+ }
448
460
  :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active.vertical.fullImage .selectionContainer::after {
449
461
  border-color: var(--semantic-color-stroke-main-focused);
450
462
  }
@@ -452,10 +464,6 @@
452
464
  transform: scale(1.1);
453
465
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
454
466
  }
455
- :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast):global(.spottable):active.vertical.selected .selectionIcon {
456
- background-color: var(--semantic-color-surface-highlight);
457
- color: var(--semantic-color-on-surface-white);
458
- }
459
467
  :global(.noAnimation) :global(.enact-a11y-high-contrast) .imageItem:global(.neutral):global(.highContrast).vertical.fullImage .image {
460
468
  transition: none;
461
469
  }
@@ -500,7 +508,7 @@
500
508
  .imageItem:global(.light).selected .selectionContainer::after {
501
509
  border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
502
510
  }
503
- .imageItem:global(.light).selected.vertical .selectionIcon {
511
+ .imageItem:global(.light).selected .selectionIcon {
504
512
  background-color: var(--semantic-color-surface-highlight);
505
513
  color: var(--semantic-color-on-surface-white);
506
514
  }
@@ -558,6 +566,11 @@
558
566
  :global(.spotlight-input-mouse) .imageItem:global(.light):global(.spottable):focus .label {
559
567
  color: var(--semantic-color-on-surface-sub-focused);
560
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
+ }
561
574
  :global(.spotlight-input-key) .imageItem:global(.light):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
562
575
  :global(.spotlight-input-mouse) .imageItem:global(.light):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
563
576
  border-color: var(--semantic-color-stroke-main-focused);
@@ -567,11 +580,6 @@
567
580
  transform: scale(1.1);
568
581
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
569
582
  }
570
- :global(.spotlight-input-key) .imageItem:global(.light):global(.spottable):focus.vertical.selected .selectionIcon,
571
- :global(.spotlight-input-mouse) .imageItem:global(.light):global(.spottable):focus.vertical.selected .selectionIcon {
572
- background-color: var(--semantic-color-surface-highlight);
573
- color: var(--semantic-color-on-surface-white);
574
- }
575
583
  :global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active {
576
584
  color: var(--semantic-color-on-surface-main-focused);
577
585
  }
@@ -597,6 +605,10 @@
597
605
  :global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active .label {
598
606
  color: var(--semantic-color-on-surface-sub-focused);
599
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
+ }
600
612
  :global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active.vertical.fullImage .selectionContainer::after {
601
613
  border-color: var(--semantic-color-stroke-main-focused);
602
614
  }
@@ -604,10 +616,6 @@
604
616
  transform: scale(1.1);
605
617
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
606
618
  }
607
- :global(.spotlight-input-touch) .imageItem:global(.light):global(.spottable):active.vertical.selected .selectionIcon {
608
- background-color: var(--semantic-color-surface-highlight);
609
- color: var(--semantic-color-on-surface-white);
610
- }
611
619
  :global(.noAnimation) .imageItem:global(.light).vertical.fullImage .image {
612
620
  transition: none;
613
621
  }
@@ -657,7 +665,7 @@
657
665
  .imageItem:global(.game).selected .selectionContainer::after {
658
666
  border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
659
667
  }
660
- .imageItem:global(.game).selected.vertical .selectionIcon {
668
+ .imageItem:global(.game).selected .selectionIcon {
661
669
  background-color: var(--semantic-color-surface-highlight);
662
670
  color: var(--semantic-color-on-surface-white);
663
671
  }
@@ -715,6 +723,11 @@
715
723
  :global(.spotlight-input-mouse) .imageItem:global(.game):global(.spottable):focus .label {
716
724
  color: var(--semantic-color-on-surface-sub-focused);
717
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
+ }
718
731
  :global(.spotlight-input-key) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
719
732
  :global(.spotlight-input-mouse) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
720
733
  border-color: var(--semantic-color-stroke-main-focused);
@@ -724,11 +737,6 @@
724
737
  transform: scale(1.1);
725
738
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
726
739
  }
727
- :global(.spotlight-input-key) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon,
728
- :global(.spotlight-input-mouse) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon {
729
- background-color: var(--semantic-color-surface-highlight);
730
- color: var(--semantic-color-on-surface-white);
731
- }
732
740
  :global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active {
733
741
  color: var(--semantic-color-on-surface-main-focused);
734
742
  }
@@ -754,6 +762,10 @@
754
762
  :global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active .label {
755
763
  color: var(--semantic-color-on-surface-sub-focused);
756
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
+ }
757
769
  :global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active.vertical.fullImage .selectionContainer::after {
758
770
  border-color: var(--semantic-color-stroke-main-focused);
759
771
  }
@@ -761,10 +773,6 @@
761
773
  transform: scale(1.1);
762
774
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
763
775
  }
764
- :global(.spotlight-input-touch) .imageItem:global(.game):global(.spottable):active.vertical.selected .selectionIcon {
765
- background-color: var(--semantic-color-surface-highlight);
766
- color: var(--semantic-color-on-surface-white);
767
- }
768
776
  :global(.noAnimation) .imageItem:global(.game).vertical.fullImage .image {
769
777
  transition: none;
770
778
  }
@@ -813,7 +821,7 @@
813
821
  :global(.green) .imageItem:global(.game).selected .selectionContainer::after {
814
822
  border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
815
823
  }
816
- :global(.green) .imageItem:global(.game).selected.vertical .selectionIcon {
824
+ :global(.green) .imageItem:global(.game).selected .selectionIcon {
817
825
  background-color: var(--semantic-color-surface-highlight);
818
826
  color: var(--semantic-color-on-surface-white);
819
827
  }
@@ -871,6 +879,11 @@
871
879
  :global(.spotlight-input-mouse) :global(.green) .imageItem:global(.game):global(.spottable):focus .label {
872
880
  color: var(--semantic-color-on-surface-sub-focused);
873
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
+ }
874
887
  :global(.spotlight-input-key) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
875
888
  :global(.spotlight-input-mouse) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
876
889
  border-color: var(--semantic-color-stroke-main-focused);
@@ -880,11 +893,6 @@
880
893
  transform: scale(1.1);
881
894
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
882
895
  }
883
- :global(.spotlight-input-key) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon,
884
- :global(.spotlight-input-mouse) :global(.green) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon {
885
- background-color: var(--semantic-color-surface-highlight);
886
- color: var(--semantic-color-on-surface-white);
887
- }
888
896
  :global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active {
889
897
  color: var(--semantic-color-on-surface-main-focused);
890
898
  }
@@ -910,6 +918,10 @@
910
918
  :global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active .label {
911
919
  color: var(--semantic-color-on-surface-sub-focused);
912
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
+ }
913
925
  :global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active.vertical.fullImage .selectionContainer::after {
914
926
  border-color: var(--semantic-color-stroke-main-focused);
915
927
  }
@@ -917,10 +929,6 @@
917
929
  transform: scale(1.1);
918
930
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
919
931
  }
920
- :global(.spotlight-input-touch) :global(.green) .imageItem:global(.game):global(.spottable):active.vertical.selected .selectionIcon {
921
- background-color: var(--semantic-color-surface-highlight);
922
- color: var(--semantic-color-on-surface-white);
923
- }
924
932
  :global(.noAnimation) :global(.green) .imageItem:global(.game).vertical.fullImage .image {
925
933
  transition: none;
926
934
  }
@@ -969,7 +977,7 @@
969
977
  :global(.orange) .imageItem:global(.game).selected .selectionContainer::after {
970
978
  border-color: color(from var(--semantic-color-on-surface-main-selected) srgb r g b / 0.7);
971
979
  }
972
- :global(.orange) .imageItem:global(.game).selected.vertical .selectionIcon {
980
+ :global(.orange) .imageItem:global(.game).selected .selectionIcon {
973
981
  background-color: var(--semantic-color-surface-highlight);
974
982
  color: var(--semantic-color-on-surface-white);
975
983
  }
@@ -1027,6 +1035,11 @@
1027
1035
  :global(.spotlight-input-mouse) :global(.orange) .imageItem:global(.game):global(.spottable):focus .label {
1028
1036
  color: var(--semantic-color-on-surface-sub-focused);
1029
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
+ }
1030
1043
  :global(.spotlight-input-key) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after,
1031
1044
  :global(.spotlight-input-mouse) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.fullImage .selectionContainer::after {
1032
1045
  border-color: var(--semantic-color-stroke-main-focused);
@@ -1036,11 +1049,6 @@
1036
1049
  transform: scale(1.1);
1037
1050
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
1038
1051
  }
1039
- :global(.spotlight-input-key) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon,
1040
- :global(.spotlight-input-mouse) :global(.orange) .imageItem:global(.game):global(.spottable):focus.vertical.selected .selectionIcon {
1041
- background-color: var(--semantic-color-surface-highlight);
1042
- color: var(--semantic-color-on-surface-white);
1043
- }
1044
1052
  :global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active {
1045
1053
  color: var(--semantic-color-on-surface-main-focused);
1046
1054
  }
@@ -1066,6 +1074,10 @@
1066
1074
  :global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active .label {
1067
1075
  color: var(--semantic-color-on-surface-sub-focused);
1068
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
+ }
1069
1081
  :global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active.vertical.fullImage .selectionContainer::after {
1070
1082
  border-color: var(--semantic-color-stroke-main-focused);
1071
1083
  }
@@ -1073,10 +1085,6 @@
1073
1085
  transform: scale(1.1);
1074
1086
  box-shadow: 0 0.75rem 0.75rem color(from var(--semantic-color-on-background-black) srgb r g b / 0.35);
1075
1087
  }
1076
- :global(.spotlight-input-touch) :global(.orange) .imageItem:global(.game):global(.spottable):active.vertical.selected .selectionIcon {
1077
- background-color: var(--semantic-color-surface-highlight);
1078
- color: var(--semantic-color-on-surface-white);
1079
- }
1080
1088
  :global(.noAnimation) :global(.orange) .imageItem:global(.game).vertical.fullImage .image {
1081
1089
  transition: none;
1082
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 be `checked` when `showSelection` and `selected` props are true with horizontal layout', function () {
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 actual = _react.screen.getAllByRole('checkbox')[0];
204
- expect(actual).toBeChecked();
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 = 'slotBefore';
213
- var actual = _react.screen.getAllByRole('img')[0].previousElementSibling;
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
  });
@@ -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
  }
@@ -109,7 +109,7 @@
109
109
  right: var(--primitive-spacing-132);
110
110
  }
111
111
  .inputPopup.fullscreen .inputBody {
112
- padding: calc(var(--primitive-spacing-156) - var(--primitive-spacing-48)) NaNrem - var(--primitive-spacing-72)) 0 NaNrem - var(--primitive-spacing-72));
112
+ padding: calc(var(--primitive-spacing-156) - var(--primitive-spacing-48)) calc(324px - var(--primitive-spacing-72)) 0 calc(324px - var(--primitive-spacing-72));
113
113
  }
114
114
  :global(.enact-orientation-portrait) .inputPopup.fullscreen .inputBody {
115
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));
@@ -177,16 +177,16 @@
177
177
  max-width: 67.5rem;
178
178
  }
179
179
  .inputPopup.fullscreen:not(.number, .passwordnumber) .inputArea {
180
- height: calc(100% - 4.75rem - 18.25rem );
180
+ height: calc(100% - 4.75rem - 18.25rem );
181
181
  }
182
182
  .inputPopup.fullscreen.number .inputArea,
183
183
  .inputPopup.fullscreen.passwordnumber .inputArea {
184
- height: calc(100% - 4.75rem - 5rem );
184
+ height: calc(100% - 4.75rem - 5rem );
185
185
  margin: var(--primitive-spacing-120) 0 0 0;
186
186
  }
187
187
  .inputPopup.fullscreen.number .inputArea.withButtons,
188
188
  .inputPopup.fullscreen.passwordnumber .inputArea.withButtons {
189
- height: calc(100% - 4.75rem - 6.25rem );
189
+ height: calc(100% - 4.75rem - 6.25rem );
190
190
  margin: var(--primitive-spacing-60) 0 0 0;
191
191
  }
192
192
  .inputPopup.overlay {
@@ -200,6 +200,7 @@
200
200
  height: 2.5rem;
201
201
  }
202
202
  .inputPopup.overlay .title {
203
+ font-family: "Limestone Title", "Limestone";
203
204
  margin: 0 var(--primitive-spacing-144) 0 var(--primitive-spacing-144);
204
205
  font-size: var(--primitive-font-size-90);
205
206
  }
@@ -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.4em;
7
+ line-height: 1.34em;
8
8
  padding: 0;
9
9
  border: 0;
10
10
  cursor: pointer;
@@ -251,6 +251,9 @@
251
251
  font-size: var(--primitive-font-size-58);
252
252
  line-height: 1.45833rem;
253
253
  }
254
+ .inputField.active .marqueeText {
255
+ display: none;
256
+ }
254
257
  .inputField:global(.neutral) {
255
258
  caret-color: var(--semantic-color-on-surface-accent);
256
259
  color: var(--semantic-color-on-surface-input-field);
@@ -1008,6 +1011,3 @@
1008
1011
  :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):active .marqueeText {
1009
1012
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
1010
1013
  }
1011
- .inputField.active .marqueeText {
1012
- display: none;
1013
- }
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
  });
@@ -259,7 +259,7 @@ describe('InputField Specs', function () {
259
259
  invalid: true,
260
260
  invalidMessage: "invalid message"
261
261
  }));
262
- var invalidText = _react.screen.getByText('invalid message').parentElement.parentElement;
262
+ var invalidText = _react.screen.getByText('invalid message').parentElement.parentElement.parentElement;
263
263
  var expected = 'tooltipLabel';
264
264
  expect(invalidText).toBeInTheDocument();
265
265
  expect(invalidText).toHaveClass(expected);
package/Item/Item.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  import { ItemDecoratorProps as ui_Item_ItemDecoratorProps } from "@enact/ui/Item";
4
4
  import { SlottableProps as ui_Slottable_SlottableProps } from "@enact/ui/Slottable";
5
5
  import { SpottableProps as spotlight_Spottable_SpottableProps } from "@enact/spotlight/Spottable";
6
- import { MarqueeControllerProps as limestone_Marquee_MarqueeControllerProps } from "limestone/Marquee";
7
- import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "limestone/Skinnable";
6
+ import { MarqueeControllerProps as limestone_Marquee_MarqueeControllerProps } from "@enact/limestone/Marquee";
7
+ import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "@enact/limestone/Skinnable";
8
8
  import { ItemBaseProps as ui_Item_ItemBaseProps } from "@enact/ui/Item";
9
9
  import * as React from "react";
10
10