@enact/limestone 1.9.3 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/.github/workflows/ci-reusable.yml +2 -2
  2. package/Alert/Alert.d.ts +9 -0
  3. package/Alert/Alert.js +35 -4
  4. package/Alert/Alert.module.css +12 -1
  5. package/Alert/tests/Alert-specs.js +91 -0
  6. package/Button/tests/Button-specs.js +26 -0
  7. package/CHANGELOG.md +34 -0
  8. package/Card/Card.d.ts +4 -4
  9. package/Card/Card.js +7 -8
  10. package/Card/tests/Card-specs.js +39 -5
  11. package/CheckboxItem/CheckboxItem.js +6 -4
  12. package/Chips/Chip.js +12 -6
  13. package/Chips/Chips.js +12 -6
  14. package/Chips/tests/Chip-specs.js +25 -5
  15. package/Chips/tests/Chips-specs.js +12 -2
  16. package/ColorPicker/ColorPicker.js +27 -25
  17. package/ContextualPopupDecorator/ContextualPopupDecorator.js +32 -22
  18. package/DayPicker/DaySelectorDecorator.js +12 -7
  19. package/Dropdown/Dropdown.module.css +4 -0
  20. package/Dropdown/DropdownList.js +74 -53
  21. package/FlexiblePopupPanels/useNavButtonFocus.js +7 -10
  22. package/Heading/Heading.d.ts +1 -1
  23. package/Heading/Heading.js +2 -2
  24. package/Icon/Icon.d.ts +1 -0
  25. package/Icon/Icon.js +1 -0
  26. package/Icon/IconList.js +2 -0
  27. package/IconItem/IconItem.module.css +3 -3
  28. package/IconItem/tests/IconItem-specs.js +30 -1
  29. package/Image/Image.js +6 -4
  30. package/Input/Input.js +12 -1
  31. package/Input/InputField.js +75 -24
  32. package/Input/InputField.module.css +262 -45
  33. package/Input/InputFieldDecoratorIcon.js +1 -0
  34. package/Input/InputFieldSpotlightDecorator.js +53 -8
  35. package/Input/index.d.ts +105 -93
  36. package/Input/tests/Input-specs.js +26 -0
  37. package/Input/tests/InputField-specs.js +149 -3
  38. package/Input/tests/InputPopup-specs.js +1 -1
  39. package/KeyGuide/KeyGuide.js +29 -27
  40. package/MediaOverlay/tests/MediaOverlay-specs.js +29 -0
  41. package/MediaPlayer/tests/util-specs.js +4 -1
  42. package/PageViews/PageViews.js +134 -69
  43. package/PageViews/PageViews.module.css +3 -0
  44. package/PageViews/PageViewsRouter.js +91 -42
  45. package/PageViews/tests/PageViews-specs.js +87 -0
  46. package/Panels/Header.js +6 -4
  47. package/Popup/Popup.js +5 -4
  48. package/PopupTabLayout/PopupTabLayout.js +11 -9
  49. package/RadioItem/RadioItem.js +7 -5
  50. package/Scroller/EditableWrapper.js +17 -14
  51. package/Scroller/Scroller.js +11 -10
  52. package/Scroller/useThemeScroller.js +3 -3
  53. package/Slider/Slider.d.ts +4 -0
  54. package/Slider/Slider.js +40 -16
  55. package/Slider/Slider.module.css +150 -0
  56. package/Slider/SliderBehaviorDecorator.js +16 -14
  57. package/Slider/tests/Slider-specs.js +51 -0
  58. package/Slider/utils.js +23 -7
  59. package/Spinner/Spinner.js +10 -8
  60. package/TabLayout/RefocusDecorator.js +14 -12
  61. package/TabLayout/tests/TabGroup-specs.js +1 -1
  62. package/ThemeDecorator/AccessibilityDecorator.js +12 -11
  63. package/ThemeDecorator/I18nFontDecorator.js +6 -4
  64. package/ThemeDecorator/ThemeDecorator.d.ts +7 -0
  65. package/ThemeDecorator/ThemeDecorator.js +24 -9
  66. package/TimePicker/TimePickerBase.js +5 -3
  67. package/TooltipDecorator/TooltipDecorator.js +12 -7
  68. package/TooltipDecorator/tests/useTooltip-specs.js +5 -2
  69. package/VideoPlayer/VideoPlayer.js +25 -24
  70. package/VirtualList/VirtualList.js +20 -18
  71. package/VirtualList/useSpotlight.js +1 -1
  72. package/fonts/Limestone_Icons.ttf +0 -0
  73. package/internal/AsyncRenderChildren/AsyncRenderChildren.js +9 -5
  74. package/internal/AsyncRenderChildren/tests/AsyncRenderChildren-specs.js +4 -1
  75. package/internal/DateTime/DateTimeDecorator.js +5 -4
  76. package/internal/Panels/PanelsRouter.js +35 -29
  77. package/internal/Panels/useAutoFocus.js +10 -6
  78. package/internal/Panels/useFocusOnTransition.js +4 -3
  79. package/internal/Picker/Picker.js +7 -5
  80. package/internal/Picker/SpottablePicker.js +15 -13
  81. package/internal/SharedStateDecorator/SharedStateDecorator.js +6 -4
  82. package/package.json +14 -11
  83. package/styles/colors.less +1 -0
  84. package/styles/variables.less +1 -1
  85. package/useScroll/HoverToScroll.js +15 -12
  86. package/useScroll/Scrollbar.js +14 -10
  87. package/useScroll/ScrollbarPlaceholder.js +3 -5
  88. package/useScroll/ScrollbarTrack.js +7 -5
  89. package/useScroll/useEvent.js +7 -2
  90. package/useScroll/useScroll.js +10 -2
@@ -1,4 +1,5 @@
1
- .input {
1
+ .input,
2
+ .marqueeText {
2
3
  font-weight: var(--primitive-font-weight-regular);
3
4
  font-size: var(--primitive-font-size-60);
4
5
  font-style: normal;
@@ -14,67 +15,87 @@
14
15
  text-indent: 0.2em;
15
16
  max-width: 100%;
16
17
  }
17
- :global(.enact-locale-non-latin) .input {
18
+ :global(.enact-locale-non-latin) .input,
19
+ :global(.enact-locale-non-latin) .marqueeText {
18
20
  font-family: "Limestone";
19
21
  }
20
- :global(.enact-locale-non-latin) .input {
22
+ :global(.enact-locale-non-latin) .input,
23
+ :global(.enact-locale-non-latin) .marqueeText {
21
24
  font-family: "Limestone";
22
25
  font-weight: var(--primitive-font-weight-light);
23
26
  font-size: var(--primitive-font-size-54);
24
27
  font-style: normal;
25
28
  }
26
- :global(.enact-locale-km) .input {
29
+ :global(.enact-locale-km) .input,
30
+ :global(.enact-locale-km) .marqueeText {
27
31
  line-height: 1.7em;
28
32
  }
29
- :global(.enact-locale-si) .input {
33
+ :global(.enact-locale-si) .input,
34
+ :global(.enact-locale-si) .marqueeText {
30
35
  line-height: 1.7em;
31
36
  }
32
- :global(.enact-locale-th) .input {
37
+ :global(.enact-locale-th) .input,
38
+ :global(.enact-locale-th) .marqueeText {
33
39
  line-height: 1.7em;
34
40
  }
35
- :global(.enact-locale-vi) .input {
41
+ :global(.enact-locale-vi) .input,
42
+ :global(.enact-locale-vi) .marqueeText {
36
43
  line-height: 1.7em;
37
44
  }
38
- .input a:link {
45
+ .input a:link,
46
+ .marqueeText a:link {
39
47
  color: inherit;
40
48
  text-decoration: none;
41
49
  }
42
- .input a:visited {
50
+ .input a:visited,
51
+ .marqueeText a:visited {
43
52
  color: inherit;
44
53
  text-decoration: none;
45
54
  }
46
- .input a:hover {
55
+ .input a:hover,
56
+ .marqueeText a:hover {
47
57
  color: inherit;
48
58
  text-decoration: none;
49
59
  }
50
- .input a:active {
60
+ .input a:active,
61
+ .marqueeText a:active {
51
62
  color: inherit;
52
63
  text-decoration: none;
53
64
  }
54
- .input[type=number] {
65
+ .input[type=number],
66
+ .marqueeText[type=number] {
55
67
  appearance: textfield;
56
68
  }
57
69
  .input[type=number]::-webkit-inner-spin-button,
58
- .input[type=number]::-webkit-outer-spin-button {
70
+ .marqueeText[type=number]::-webkit-inner-spin-button,
71
+ .input[type=number]::-webkit-outer-spin-button,
72
+ .marqueeText[type=number]::-webkit-outer-spin-button {
59
73
  appearance: none;
60
74
  }
61
- .input[type=number]:hover {
75
+ .input[type=number]:hover,
76
+ .marqueeText[type=number]:hover {
62
77
  appearance: none;
63
78
  }
64
- .input[placeholder] {
79
+ .input[placeholder],
80
+ .marqueeText[placeholder] {
65
81
  text-overflow: ellipsis;
66
82
  }
67
83
  :global(.spotlight-input-key) .input:global(.spottable):focus,
68
- :global(.spotlight-input-mouse) .input:global(.spottable):focus {
84
+ :global(.spotlight-input-key) .marqueeText:global(.spottable):focus,
85
+ :global(.spotlight-input-mouse) .input:global(.spottable):focus,
86
+ :global(.spotlight-input-mouse) .marqueeText:global(.spottable):focus {
69
87
  cursor: text;
70
88
  }
71
- :global(.spotlight-input-touch) .input:global(.spottable):active {
89
+ :global(.spotlight-input-touch) .input:global(.spottable):active,
90
+ :global(.spotlight-input-touch) .marqueeText:global(.spottable):active {
72
91
  cursor: text;
73
92
  }
74
- .input[disabled] {
93
+ .input[disabled],
94
+ .marqueeText[disabled] {
75
95
  cursor: default;
76
96
  }
77
- :global(.enact-locale-right-to-left) .input {
97
+ :global(.enact-locale-right-to-left) .input,
98
+ :global(.enact-locale-right-to-left) .marqueeText {
78
99
  text-align: right;
79
100
  }
80
101
  .inputField {
@@ -112,7 +133,8 @@
112
133
  border-radius: var(--semantic-radius-button);
113
134
  }
114
135
  .inputField .input,
115
- .inputField .inputHighlight {
136
+ .inputField .inputHighlight,
137
+ .inputField .marqueeText {
116
138
  font-size: var(--primitive-font-size-78);
117
139
  font-weight: var(--primitive-font-weight-semibold);
118
140
  height: 3.5rem;
@@ -131,6 +153,10 @@
131
153
  .inputField .input.passwordtel {
132
154
  -webkit-text-security: disc;
133
155
  }
156
+ .inputField .marqueeText.passwordtel {
157
+ letter-spacing: var(--primitive-spacing-30);
158
+ -webkit-text-security: disc;
159
+ }
134
160
  .inputField .inputHighlight {
135
161
  position: absolute;
136
162
  top: 0;
@@ -141,22 +167,42 @@
141
167
  opacity: 0;
142
168
  z-index: -1;
143
169
  }
170
+ .inputField .inputWrapper {
171
+ position: relative;
172
+ flex-grow: 1;
173
+ display: flex;
174
+ align-items: center;
175
+ overflow: hidden;
176
+ }
177
+ .inputField .marqueeText {
178
+ position: absolute;
179
+ pointer-events: none;
180
+ display: flex;
181
+ }
182
+ .inputField .marqueeTextInner {
183
+ visibility: hidden;
184
+ }
185
+ .inputField .marqueeTextAnimate,
186
+ .inputField .marqueeTextWillAnimate {
187
+ visibility: visible;
188
+ }
144
189
  .inputField.large {
145
190
  padding: 0 var(--primitive-spacing-30);
146
191
  width: 32.5rem;
147
192
  }
148
- .inputField.large.hasIconBefore .input,
149
- .inputField.large.hasIconAfter .input {
193
+ .inputField.large.hasIconBefore .inputWrapper,
194
+ .inputField.large.hasIconAfter .inputWrapper {
150
195
  max-width: 28.875rem;
151
196
  }
152
- .inputField.large.hasIconBefore.inputField.large.hasIconAfter .input {
197
+ .inputField.large.hasIconBefore.inputField.large.hasIconAfter .inputWrapper {
153
198
  max-width: 26.5rem;
154
199
  }
155
200
  .inputField.small {
156
201
  height: 2.75rem;
157
202
  width: 25rem;
158
203
  }
159
- .inputField.small .input {
204
+ .inputField.small .input,
205
+ .inputField.small .marqueeText {
160
206
  font-size: var(--primitive-font-size-60);
161
207
  height: 2.75rem;
162
208
  line-height: 2.75rem;
@@ -165,11 +211,11 @@
165
211
  line-height: 2.75rem;
166
212
  height: 2.75rem;
167
213
  }
168
- .inputField.small.hasIconBefore .input,
169
- .inputField.small.hasIconAfter .input {
214
+ .inputField.small.hasIconBefore .inputWrapper,
215
+ .inputField.small.hasIconAfter .inputWrapper {
170
216
  max-width: 20.625rem;
171
217
  }
172
- .inputField.small.hasIconBefore.inputField.small.hasIconAfter .input {
218
+ .inputField.small.hasIconBefore.inputField.small.hasIconAfter .inputWrapper {
173
219
  max-width: 18.25rem;
174
220
  }
175
221
  .inputField.multiline {
@@ -207,6 +253,9 @@
207
253
  .inputField:global(.neutral) .input:focus-within::placeholder {
208
254
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
209
255
  }
256
+ .inputField:global(.neutral) .marqueeText.placeholderText {
257
+ color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
258
+ }
210
259
  .inputField:global(.neutral).invalid input {
211
260
  color: #ff0000;
212
261
  }
@@ -231,6 +280,18 @@
231
280
  :global(.spotlight-input-mouse) .inputField:global(.neutral):global(.spottable):focus .input::placeholder {
232
281
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
233
282
  }
283
+ :global(.spotlight-input-key) .inputField:global(.neutral):global(.spottable):focus .marqueeText.placeholderText,
284
+ :global(.spotlight-input-mouse) .inputField:global(.neutral):global(.spottable):focus .marqueeText.placeholderText {
285
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
286
+ }
287
+ :global(.spotlight-input-key) .inputField:global(.neutral):global(.spottable):focus .marqueeTextInner,
288
+ :global(.spotlight-input-mouse) .inputField:global(.neutral):global(.spottable):focus .marqueeTextInner {
289
+ visibility: visible;
290
+ }
291
+ :global(.spotlight-input-key) .inputField:global(.neutral):global(.spottable):focus.hasMarquee:not(.active) .input,
292
+ :global(.spotlight-input-mouse) .inputField:global(.neutral):global(.spottable):focus.hasMarquee:not(.active) .input {
293
+ opacity: 0;
294
+ }
234
295
  :global(.spotlight-input-touch) .inputField:global(.neutral):global(.spottable):active {
235
296
  color: var(--semantic-color-on-surface-main-focused);
236
297
  }
@@ -242,6 +303,15 @@
242
303
  :global(.spotlight-input-touch) .inputField:global(.neutral):global(.spottable):active .input::placeholder {
243
304
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
244
305
  }
306
+ :global(.spotlight-input-touch) .inputField:global(.neutral):global(.spottable):active .marqueeText.placeholderText {
307
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
308
+ }
309
+ :global(.spotlight-input-touch) .inputField:global(.neutral):global(.spottable):active .marqueeTextInner {
310
+ visibility: visible;
311
+ }
312
+ :global(.spotlight-input-touch) .inputField:global(.neutral):global(.spottable):active.hasMarquee:not(.active) .input {
313
+ opacity: 0;
314
+ }
245
315
  :global(.spotlight-input-key) :global(.noAnimation) .inputField:global(.neutral):global(.spottable):focus .bg,
246
316
  :global(.spotlight-input-mouse) :global(.noAnimation) .inputField:global(.neutral):global(.spottable):focus .bg {
247
317
  box-shadow: none;
@@ -265,7 +335,8 @@
265
335
  opacity: 0.585;
266
336
  opacity: 0.3;
267
337
  }
268
- .inputField:global(.neutral)[disabled] .input {
338
+ .inputField:global(.neutral)[disabled] .input,
339
+ .inputField:global(.neutral)[disabled] .marqueeText {
269
340
  color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
270
341
  }
271
342
  :global(.spotlight-input-key) .inputField:global(.neutral)[disabled]:global(.spottable):focus .bg,
@@ -274,14 +345,17 @@
274
345
  filter: unset;
275
346
  }
276
347
  :global(.spotlight-input-key) .inputField:global(.neutral)[disabled]:global(.spottable):focus .input,
277
- :global(.spotlight-input-mouse) .inputField:global(.neutral)[disabled]:global(.spottable):focus .input {
348
+ :global(.spotlight-input-mouse) .inputField:global(.neutral)[disabled]:global(.spottable):focus .input,
349
+ :global(.spotlight-input-key) .inputField:global(.neutral)[disabled]:global(.spottable):focus .marqueeText,
350
+ :global(.spotlight-input-mouse) .inputField:global(.neutral)[disabled]:global(.spottable):focus .marqueeText {
278
351
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
279
352
  }
280
353
  :global(.spotlight-input-touch) .inputField:global(.neutral)[disabled]:global(.spottable):active .bg {
281
354
  background-color: var(--semantic-color-surface-default-disabled-focused);
282
355
  filter: unset;
283
356
  }
284
- :global(.spotlight-input-touch) .inputField:global(.neutral)[disabled]:global(.spottable):active .input {
357
+ :global(.spotlight-input-touch) .inputField:global(.neutral)[disabled]:global(.spottable):active .input,
358
+ :global(.spotlight-input-touch) .inputField:global(.neutral)[disabled]:global(.spottable):active .marqueeText {
285
359
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
286
360
  }
287
361
  :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast) {
@@ -304,6 +378,9 @@
304
378
  :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast) .input:focus-within::placeholder {
305
379
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
306
380
  }
381
+ :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast) .marqueeText.placeholderText {
382
+ color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
383
+ }
307
384
  :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast).invalid input {
308
385
  color: #ff0000;
309
386
  }
@@ -328,6 +405,18 @@
328
405
  :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus .input::placeholder {
329
406
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
330
407
  }
408
+ :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus .marqueeText.placeholderText,
409
+ :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus .marqueeText.placeholderText {
410
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
411
+ }
412
+ :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus .marqueeTextInner,
413
+ :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus .marqueeTextInner {
414
+ visibility: visible;
415
+ }
416
+ :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus.hasMarquee:not(.active) .input,
417
+ :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus.hasMarquee:not(.active) .input {
418
+ opacity: 0;
419
+ }
331
420
  :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):active {
332
421
  color: var(--semantic-color-on-surface-main-focused);
333
422
  }
@@ -339,6 +428,15 @@
339
428
  :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):active .input::placeholder {
340
429
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
341
430
  }
431
+ :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):active .marqueeText.placeholderText {
432
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
433
+ }
434
+ :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):active .marqueeTextInner {
435
+ visibility: visible;
436
+ }
437
+ :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):active.hasMarquee:not(.active) .input {
438
+ opacity: 0;
439
+ }
342
440
  :global(.spotlight-input-key) :global(.noAnimation) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus .bg,
343
441
  :global(.spotlight-input-mouse) :global(.noAnimation) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast):global(.spottable):focus .bg {
344
442
  box-shadow: none;
@@ -362,7 +460,8 @@
362
460
  opacity: 0.585;
363
461
  opacity: 0.3;
364
462
  }
365
- :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled] .input {
463
+ :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled] .input,
464
+ :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled] .marqueeText {
366
465
  color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
367
466
  }
368
467
  :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):focus .bg,
@@ -371,14 +470,17 @@
371
470
  filter: unset;
372
471
  }
373
472
  :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):focus .input,
374
- :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):focus .input {
473
+ :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):focus .input,
474
+ :global(.spotlight-input-key) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):focus .marqueeText,
475
+ :global(.spotlight-input-mouse) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):focus .marqueeText {
375
476
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
376
477
  }
377
478
  :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):active .bg {
378
479
  background-color: var(--semantic-color-surface-default-disabled-focused);
379
480
  filter: unset;
380
481
  }
381
- :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):active .input {
482
+ :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):active .input,
483
+ :global(.spotlight-input-touch) :global(.enact-a11y-high-contrast) .inputField:global(.neutral):global(.highContrast)[disabled]:global(.spottable):active .marqueeText {
382
484
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
383
485
  }
384
486
  .inputField:global(.light) {
@@ -401,6 +503,9 @@
401
503
  .inputField:global(.light) .input:focus-within::placeholder {
402
504
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
403
505
  }
506
+ .inputField:global(.light) .marqueeText.placeholderText {
507
+ color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
508
+ }
404
509
  .inputField:global(.light).invalid input {
405
510
  color: #ff0000;
406
511
  }
@@ -425,6 +530,18 @@
425
530
  :global(.spotlight-input-mouse) .inputField:global(.light):global(.spottable):focus .input::placeholder {
426
531
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
427
532
  }
533
+ :global(.spotlight-input-key) .inputField:global(.light):global(.spottable):focus .marqueeText.placeholderText,
534
+ :global(.spotlight-input-mouse) .inputField:global(.light):global(.spottable):focus .marqueeText.placeholderText {
535
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
536
+ }
537
+ :global(.spotlight-input-key) .inputField:global(.light):global(.spottable):focus .marqueeTextInner,
538
+ :global(.spotlight-input-mouse) .inputField:global(.light):global(.spottable):focus .marqueeTextInner {
539
+ visibility: visible;
540
+ }
541
+ :global(.spotlight-input-key) .inputField:global(.light):global(.spottable):focus.hasMarquee:not(.active) .input,
542
+ :global(.spotlight-input-mouse) .inputField:global(.light):global(.spottable):focus.hasMarquee:not(.active) .input {
543
+ opacity: 0;
544
+ }
428
545
  :global(.spotlight-input-touch) .inputField:global(.light):global(.spottable):active {
429
546
  color: var(--semantic-color-on-surface-main-focused);
430
547
  }
@@ -436,6 +553,15 @@
436
553
  :global(.spotlight-input-touch) .inputField:global(.light):global(.spottable):active .input::placeholder {
437
554
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
438
555
  }
556
+ :global(.spotlight-input-touch) .inputField:global(.light):global(.spottable):active .marqueeText.placeholderText {
557
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
558
+ }
559
+ :global(.spotlight-input-touch) .inputField:global(.light):global(.spottable):active .marqueeTextInner {
560
+ visibility: visible;
561
+ }
562
+ :global(.spotlight-input-touch) .inputField:global(.light):global(.spottable):active.hasMarquee:not(.active) .input {
563
+ opacity: 0;
564
+ }
439
565
  :global(.spotlight-input-key) :global(.noAnimation) .inputField:global(.light):global(.spottable):focus .bg,
440
566
  :global(.spotlight-input-mouse) :global(.noAnimation) .inputField:global(.light):global(.spottable):focus .bg {
441
567
  box-shadow: none;
@@ -459,7 +585,8 @@
459
585
  opacity: 0.585;
460
586
  opacity: 0.3;
461
587
  }
462
- .inputField:global(.light)[disabled] .input {
588
+ .inputField:global(.light)[disabled] .input,
589
+ .inputField:global(.light)[disabled] .marqueeText {
463
590
  color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
464
591
  }
465
592
  :global(.spotlight-input-key) .inputField:global(.light)[disabled]:global(.spottable):focus .bg,
@@ -468,14 +595,17 @@
468
595
  filter: unset;
469
596
  }
470
597
  :global(.spotlight-input-key) .inputField:global(.light)[disabled]:global(.spottable):focus .input,
471
- :global(.spotlight-input-mouse) .inputField:global(.light)[disabled]:global(.spottable):focus .input {
598
+ :global(.spotlight-input-mouse) .inputField:global(.light)[disabled]:global(.spottable):focus .input,
599
+ :global(.spotlight-input-key) .inputField:global(.light)[disabled]:global(.spottable):focus .marqueeText,
600
+ :global(.spotlight-input-mouse) .inputField:global(.light)[disabled]:global(.spottable):focus .marqueeText {
472
601
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
473
602
  }
474
603
  :global(.spotlight-input-touch) .inputField:global(.light)[disabled]:global(.spottable):active .bg {
475
604
  background-color: var(--semantic-color-surface-default-disabled-focused);
476
605
  filter: unset;
477
606
  }
478
- :global(.spotlight-input-touch) .inputField:global(.light)[disabled]:global(.spottable):active .input {
607
+ :global(.spotlight-input-touch) .inputField:global(.light)[disabled]:global(.spottable):active .input,
608
+ :global(.spotlight-input-touch) .inputField:global(.light)[disabled]:global(.spottable):active .marqueeText {
479
609
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
480
610
  }
481
611
  .inputField:global(.game) {
@@ -501,6 +631,9 @@
501
631
  .inputField:global(.game) .input:focus-within::placeholder {
502
632
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
503
633
  }
634
+ .inputField:global(.game) .marqueeText.placeholderText {
635
+ color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
636
+ }
504
637
  .inputField:global(.game).invalid input {
505
638
  color: #ff0000;
506
639
  }
@@ -525,6 +658,18 @@
525
658
  :global(.spotlight-input-mouse) .inputField:global(.game):global(.spottable):focus .input::placeholder {
526
659
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
527
660
  }
661
+ :global(.spotlight-input-key) .inputField:global(.game):global(.spottable):focus .marqueeText.placeholderText,
662
+ :global(.spotlight-input-mouse) .inputField:global(.game):global(.spottable):focus .marqueeText.placeholderText {
663
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
664
+ }
665
+ :global(.spotlight-input-key) .inputField:global(.game):global(.spottable):focus .marqueeTextInner,
666
+ :global(.spotlight-input-mouse) .inputField:global(.game):global(.spottable):focus .marqueeTextInner {
667
+ visibility: visible;
668
+ }
669
+ :global(.spotlight-input-key) .inputField:global(.game):global(.spottable):focus.hasMarquee:not(.active) .input,
670
+ :global(.spotlight-input-mouse) .inputField:global(.game):global(.spottable):focus.hasMarquee:not(.active) .input {
671
+ opacity: 0;
672
+ }
528
673
  :global(.spotlight-input-touch) .inputField:global(.game):global(.spottable):active {
529
674
  color: var(--semantic-color-on-surface-main-focused);
530
675
  }
@@ -536,6 +681,15 @@
536
681
  :global(.spotlight-input-touch) .inputField:global(.game):global(.spottable):active .input::placeholder {
537
682
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
538
683
  }
684
+ :global(.spotlight-input-touch) .inputField:global(.game):global(.spottable):active .marqueeText.placeholderText {
685
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
686
+ }
687
+ :global(.spotlight-input-touch) .inputField:global(.game):global(.spottable):active .marqueeTextInner {
688
+ visibility: visible;
689
+ }
690
+ :global(.spotlight-input-touch) .inputField:global(.game):global(.spottable):active.hasMarquee:not(.active) .input {
691
+ opacity: 0;
692
+ }
539
693
  :global(.spotlight-input-key) :global(.noAnimation) .inputField:global(.game):global(.spottable):focus .bg,
540
694
  :global(.spotlight-input-mouse) :global(.noAnimation) .inputField:global(.game):global(.spottable):focus .bg {
541
695
  box-shadow: none;
@@ -559,7 +713,8 @@
559
713
  opacity: 0.585;
560
714
  opacity: 0.3;
561
715
  }
562
- .inputField:global(.game)[disabled] .input {
716
+ .inputField:global(.game)[disabled] .input,
717
+ .inputField:global(.game)[disabled] .marqueeText {
563
718
  color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
564
719
  }
565
720
  :global(.spotlight-input-key) .inputField:global(.game)[disabled]:global(.spottable):focus .bg,
@@ -568,14 +723,17 @@
568
723
  filter: unset;
569
724
  }
570
725
  :global(.spotlight-input-key) .inputField:global(.game)[disabled]:global(.spottable):focus .input,
571
- :global(.spotlight-input-mouse) .inputField:global(.game)[disabled]:global(.spottable):focus .input {
726
+ :global(.spotlight-input-mouse) .inputField:global(.game)[disabled]:global(.spottable):focus .input,
727
+ :global(.spotlight-input-key) .inputField:global(.game)[disabled]:global(.spottable):focus .marqueeText,
728
+ :global(.spotlight-input-mouse) .inputField:global(.game)[disabled]:global(.spottable):focus .marqueeText {
572
729
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
573
730
  }
574
731
  :global(.spotlight-input-touch) .inputField:global(.game)[disabled]:global(.spottable):active .bg {
575
732
  background-color: var(--semantic-color-surface-default-disabled-focused);
576
733
  filter: unset;
577
734
  }
578
- :global(.spotlight-input-touch) .inputField:global(.game)[disabled]:global(.spottable):active .input {
735
+ :global(.spotlight-input-touch) .inputField:global(.game)[disabled]:global(.spottable):active .input,
736
+ :global(.spotlight-input-touch) .inputField:global(.game)[disabled]:global(.spottable):active .marqueeText {
579
737
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
580
738
  }
581
739
  :global(.green) .inputField:global(.game) {
@@ -600,6 +758,9 @@
600
758
  :global(.green) .inputField:global(.game) .input:focus-within::placeholder {
601
759
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
602
760
  }
761
+ :global(.green) .inputField:global(.game) .marqueeText.placeholderText {
762
+ color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
763
+ }
603
764
  :global(.green) .inputField:global(.game).invalid input {
604
765
  color: #ff0000;
605
766
  }
@@ -624,6 +785,18 @@
624
785
  :global(.spotlight-input-mouse) :global(.green) .inputField:global(.game):global(.spottable):focus .input::placeholder {
625
786
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
626
787
  }
788
+ :global(.spotlight-input-key) :global(.green) .inputField:global(.game):global(.spottable):focus .marqueeText.placeholderText,
789
+ :global(.spotlight-input-mouse) :global(.green) .inputField:global(.game):global(.spottable):focus .marqueeText.placeholderText {
790
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
791
+ }
792
+ :global(.spotlight-input-key) :global(.green) .inputField:global(.game):global(.spottable):focus .marqueeTextInner,
793
+ :global(.spotlight-input-mouse) :global(.green) .inputField:global(.game):global(.spottable):focus .marqueeTextInner {
794
+ visibility: visible;
795
+ }
796
+ :global(.spotlight-input-key) :global(.green) .inputField:global(.game):global(.spottable):focus.hasMarquee:not(.active) .input,
797
+ :global(.spotlight-input-mouse) :global(.green) .inputField:global(.game):global(.spottable):focus.hasMarquee:not(.active) .input {
798
+ opacity: 0;
799
+ }
627
800
  :global(.spotlight-input-touch) :global(.green) .inputField:global(.game):global(.spottable):active {
628
801
  color: var(--semantic-color-on-surface-main-focused);
629
802
  }
@@ -635,6 +808,15 @@
635
808
  :global(.spotlight-input-touch) :global(.green) .inputField:global(.game):global(.spottable):active .input::placeholder {
636
809
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
637
810
  }
811
+ :global(.spotlight-input-touch) :global(.green) .inputField:global(.game):global(.spottable):active .marqueeText.placeholderText {
812
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
813
+ }
814
+ :global(.spotlight-input-touch) :global(.green) .inputField:global(.game):global(.spottable):active .marqueeTextInner {
815
+ visibility: visible;
816
+ }
817
+ :global(.spotlight-input-touch) :global(.green) .inputField:global(.game):global(.spottable):active.hasMarquee:not(.active) .input {
818
+ opacity: 0;
819
+ }
638
820
  :global(.spotlight-input-key) :global(.noAnimation) :global(.green) .inputField:global(.game):global(.spottable):focus .bg,
639
821
  :global(.spotlight-input-mouse) :global(.noAnimation) :global(.green) .inputField:global(.game):global(.spottable):focus .bg {
640
822
  box-shadow: none;
@@ -658,7 +840,8 @@
658
840
  opacity: 0.585;
659
841
  opacity: 0.3;
660
842
  }
661
- :global(.green) .inputField:global(.game)[disabled] .input {
843
+ :global(.green) .inputField:global(.game)[disabled] .input,
844
+ :global(.green) .inputField:global(.game)[disabled] .marqueeText {
662
845
  color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
663
846
  }
664
847
  :global(.spotlight-input-key) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):focus .bg,
@@ -667,14 +850,17 @@
667
850
  filter: unset;
668
851
  }
669
852
  :global(.spotlight-input-key) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):focus .input,
670
- :global(.spotlight-input-mouse) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):focus .input {
853
+ :global(.spotlight-input-mouse) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):focus .input,
854
+ :global(.spotlight-input-key) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):focus .marqueeText,
855
+ :global(.spotlight-input-mouse) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):focus .marqueeText {
671
856
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
672
857
  }
673
858
  :global(.spotlight-input-touch) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):active .bg {
674
859
  background-color: var(--semantic-color-surface-default-disabled-focused);
675
860
  filter: unset;
676
861
  }
677
- :global(.spotlight-input-touch) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):active .input {
862
+ :global(.spotlight-input-touch) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):active .input,
863
+ :global(.spotlight-input-touch) :global(.green) .inputField:global(.game)[disabled]:global(.spottable):active .marqueeText {
678
864
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
679
865
  }
680
866
  :global(.orange) .inputField:global(.game) {
@@ -699,6 +885,9 @@
699
885
  :global(.orange) .inputField:global(.game) .input:focus-within::placeholder {
700
886
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
701
887
  }
888
+ :global(.orange) .inputField:global(.game) .marqueeText.placeholderText {
889
+ color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
890
+ }
702
891
  :global(.orange) .inputField:global(.game).invalid input {
703
892
  color: #ff0000;
704
893
  }
@@ -723,6 +912,18 @@
723
912
  :global(.spotlight-input-mouse) :global(.orange) .inputField:global(.game):global(.spottable):focus .input::placeholder {
724
913
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
725
914
  }
915
+ :global(.spotlight-input-key) :global(.orange) .inputField:global(.game):global(.spottable):focus .marqueeText.placeholderText,
916
+ :global(.spotlight-input-mouse) :global(.orange) .inputField:global(.game):global(.spottable):focus .marqueeText.placeholderText {
917
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
918
+ }
919
+ :global(.spotlight-input-key) :global(.orange) .inputField:global(.game):global(.spottable):focus .marqueeTextInner,
920
+ :global(.spotlight-input-mouse) :global(.orange) .inputField:global(.game):global(.spottable):focus .marqueeTextInner {
921
+ visibility: visible;
922
+ }
923
+ :global(.spotlight-input-key) :global(.orange) .inputField:global(.game):global(.spottable):focus.hasMarquee:not(.active) .input,
924
+ :global(.spotlight-input-mouse) :global(.orange) .inputField:global(.game):global(.spottable):focus.hasMarquee:not(.active) .input {
925
+ opacity: 0;
926
+ }
726
927
  :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game):global(.spottable):active {
727
928
  color: var(--semantic-color-on-surface-main-focused);
728
929
  }
@@ -734,6 +935,15 @@
734
935
  :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game):global(.spottable):active .input::placeholder {
735
936
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
736
937
  }
938
+ :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game):global(.spottable):active .marqueeText.placeholderText {
939
+ color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
940
+ }
941
+ :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game):global(.spottable):active .marqueeTextInner {
942
+ visibility: visible;
943
+ }
944
+ :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game):global(.spottable):active.hasMarquee:not(.active) .input {
945
+ opacity: 0;
946
+ }
737
947
  :global(.spotlight-input-key) :global(.noAnimation) :global(.orange) .inputField:global(.game):global(.spottable):focus .bg,
738
948
  :global(.spotlight-input-mouse) :global(.noAnimation) :global(.orange) .inputField:global(.game):global(.spottable):focus .bg {
739
949
  box-shadow: none;
@@ -757,7 +967,8 @@
757
967
  opacity: 0.585;
758
968
  opacity: 0.3;
759
969
  }
760
- :global(.orange) .inputField:global(.game)[disabled] .input {
970
+ :global(.orange) .inputField:global(.game)[disabled] .input,
971
+ :global(.orange) .inputField:global(.game)[disabled] .marqueeText {
761
972
  color: color(from var(--semantic-color-on-surface-input-field) srgb r g b / 0.4);
762
973
  }
763
974
  :global(.spotlight-input-key) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):focus .bg,
@@ -766,13 +977,19 @@
766
977
  filter: unset;
767
978
  }
768
979
  :global(.spotlight-input-key) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):focus .input,
769
- :global(.spotlight-input-mouse) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):focus .input {
980
+ :global(.spotlight-input-mouse) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):focus .input,
981
+ :global(.spotlight-input-key) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):focus .marqueeText,
982
+ :global(.spotlight-input-mouse) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):focus .marqueeText {
770
983
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
771
984
  }
772
985
  :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):active .bg {
773
986
  background-color: var(--semantic-color-surface-default-disabled-focused);
774
987
  filter: unset;
775
988
  }
776
- :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):active .input {
989
+ :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):active .input,
990
+ :global(.spotlight-input-touch) :global(.orange) .inputField:global(.game)[disabled]:global(.spottable):active .marqueeText {
777
991
  color: color(from var(--semantic-color-on-surface-main-focused) srgb r g b / 0.4);
778
992
  }
993
+ .inputField.active .marqueeText {
994
+ display: none;
995
+ }
@@ -49,6 +49,7 @@ var InputDecoratorIconBase = exports.InputDecoratorIconBase = (0, _kind["default
49
49
  rest = _objectWithoutProperties(_ref, _excluded);
50
50
  delete rest.position;
51
51
  return children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon["default"], _objectSpread(_objectSpread({}, rest), {}, {
52
+ "data-input-icon": true,
52
53
  children: children
53
54
  })) : null;
54
55
  }