@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.
Files changed (133) 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 +7 -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 +22 -1
  12. package/Button/Button.d.ts +3 -3
  13. package/Button/Button.module.css +81 -63
  14. package/CHANGELOG.md +87 -0
  15. package/Card/Card.d.ts +81 -9
  16. package/Card/Card.js +324 -84
  17. package/Card/Card.module.css +200 -25
  18. package/Card/tests/Card-specs.js +100 -0
  19. package/Checkbox/Checkbox.d.ts +2 -2
  20. package/Checkbox/Checkbox.module.css +2 -5
  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 +5 -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/Heading/Heading.module.css +16 -0
  39. package/Icon/Icon.d.ts +22 -1
  40. package/Icon/Icon.js +21 -0
  41. package/Icon/Icon.module.css +12 -0
  42. package/Icon/IconList.js +43 -1
  43. package/IconItem/IconItem.d.ts +2 -2
  44. package/IconItem/IconItem.module.css +27 -14
  45. package/Image/Image.d.ts +1 -1
  46. package/Image/Image.module.css +1 -1
  47. package/ImageItem/ImageItem.d.ts +2 -2
  48. package/ImageItem/ImageItem.js +3 -16
  49. package/ImageItem/ImageItem.module.css +122 -97
  50. package/ImageItem/tests/ImageItem-specs.js +6 -5
  51. package/Input/Input.module.css +33 -16
  52. package/Input/InputField.module.css +22 -4
  53. package/Input/index.d.ts +1 -1
  54. package/Input/tests/Input-specs.js +2 -2
  55. package/Input/tests/InputField-specs.js +1 -1
  56. package/Item/Item.d.ts +2 -2
  57. package/Item/Item.module.css +29 -16
  58. package/KeyGuide/KeyGuide.d.ts +2 -2
  59. package/KeyGuide/KeyGuide.module.css +10 -0
  60. package/MediaOverlay/MediaOverlay.d.ts +2 -2
  61. package/MediaOverlay/MediaOverlay.module.css +18 -9
  62. package/MediaPlayer/MediaControls.module.css +3 -0
  63. package/MediaPlayer/MediaSlider.module.css +1 -0
  64. package/MediaPlayer/Times.module.css +5 -1
  65. package/MediaPlayer/index.d.ts +2 -2
  66. package/PageViews/PageViews.module.css +6 -1
  67. package/Panels/Header.module.css +74 -56
  68. package/Panels/Panel.module.css +1 -1
  69. package/Panels/index.d.ts +1 -1
  70. package/Picker/Picker.d.ts +1 -1
  71. package/Popup/Popup.module.css +4 -1
  72. package/PopupTabLayout/PopupTabLayout.d.ts +6 -6
  73. package/PopupTabLayout/PopupTabLayout.module.css +24 -6
  74. package/ProgressBar/ProgressBar.d.ts +1 -1
  75. package/ProgressBar/ProgressBar.module.css +12 -12
  76. package/ProgressBar/ProgressBarTooltip.module.css +7 -7
  77. package/ProgressButton/ProgressButton.d.ts +2 -2
  78. package/QuickGuidePanels/QuickGuidePanels.module.css +1 -1
  79. package/RadioItem/RadioItem.d.ts +1 -1
  80. package/RadioItem/RadioItem.module.css +21 -18
  81. package/Scroller/EditableWrapper.js +2 -1
  82. package/Scroller/Scroller.d.ts +12 -0
  83. package/Scroller/Scroller.js +15 -0
  84. package/Scroller/Scroller.module.css +10 -0
  85. package/Scroller/tests/Scroller-specs.js +120 -2
  86. package/Scroller/useThemeScroller.js +25 -2
  87. package/Slider/Slider.d.ts +1 -1
  88. package/Slider/Slider.module.css +539 -303
  89. package/Spinner/Spinner.d.ts +1 -1
  90. package/Spinner/Spinner.module.css +2 -2
  91. package/Steps/Steps.d.ts +1 -1
  92. package/Steps/Steps.js +12 -6
  93. package/Steps/Steps.module.css +19 -2
  94. package/Switch/Switch.module.css +17 -6
  95. package/SwitchItem/SwitchItem.d.ts +1 -1
  96. package/TabLayout/RefocusDecorator.js +1 -1
  97. package/TabLayout/TabGroup.module.css +13 -7
  98. package/TabLayout/TabLayout.js +4 -0
  99. package/ThemeDecorator/ThemeDecorator.d.ts +1 -1
  100. package/ThemeDecorator/ThemeDecorator.module.css +22 -1
  101. package/TimePicker/TimePicker.module.css +3 -0
  102. package/TooltipDecorator/Tooltip.js +68 -7
  103. package/TooltipDecorator/Tooltip.module.css +44 -23
  104. package/TooltipDecorator/TooltipDecorator.d.ts +52 -0
  105. package/TooltipDecorator/TooltipDecorator.js +42 -0
  106. package/TooltipDecorator/TooltipLabel.js +67 -14
  107. package/TooltipDecorator/tests/TooltipDecorator-specs.js +46 -0
  108. package/TooltipDecorator/useTooltip.js +14 -2
  109. package/VideoPlayer/Feedback.module.css +3 -0
  110. package/VideoPlayer/FeedbackTooltip.module.css +7 -0
  111. package/VideoPlayer/MediaTitle.module.css +9 -1
  112. package/VirtualList/VirtualList.d.ts +24 -0
  113. package/VirtualList/VirtualList.js +30 -0
  114. package/VirtualList/tests/stickTo-specs.js +115 -0
  115. package/VirtualList/tests/useEvent-specs.js +39 -0
  116. package/VirtualList/useEvent.js +45 -10
  117. package/VirtualList/useThemeVirtualList.js +20 -2
  118. package/WizardPanels/WizardPanels.module.css +1 -1
  119. package/fonts/Limestone_Icons.ttf +0 -0
  120. package/internal/DateComponentPicker/DateComponentPicker.module.css +3 -3
  121. package/internal/DateTime/DateTime.module.css +3 -0
  122. package/internal/Picker/Picker.js +8 -10
  123. package/internal/Picker/Picker.module.css +92 -137
  124. package/package.json +14 -17
  125. package/styles/color-mixins.less +4 -60
  126. package/styles/colors-game.less +5 -5
  127. package/styles/colors.less +9 -10
  128. package/styles/mixins.less +0 -46
  129. package/styles/motion-mixins.less +16 -7
  130. package/styles/motions.less +2 -2
  131. package/styles/variables.less +186 -69
  132. package/useScroll/ScrollbarPlaceholder.js +8 -3
  133. package/useScroll/useScroll.js +3 -1
@@ -133,16 +133,14 @@
133
133
  @lime-checkbox-border-selected-focused-color: @lime-checkbox-border-selected-color;
134
134
  @lime-checkbox-border-selected-disabled-color: @lime-checkbox-border-selected-color;
135
135
  @lime-checkbox-border-selected-disabled-focused-color: @lime-checkbox-border-selected-color;
136
- @lime-checkbox-border-disabled-color: @lime-checkbox-border-color;
137
- @lime-checkbox-border-disabled-focused-color: @lime-checkbox-border-focused-color;
138
136
  @lime-checkbox-border-indeterminate-color: var(--semantic-color-stroke-selection-inactive);
139
137
  @lime-checkbox-border-indeterminate-focused-color: var(--semantic-color-stroke-selection-inactive-focused);
140
- @lime-checkbox-border-indeterminate-disabled-color: @lime-checkbox-border-indeterminate-color;
141
- @lime-checkbox-border-indeterminate-disabled-focused-color: @lime-checkbox-border-indeterminate-focused-color;
142
138
 
143
139
  // CheckboxItem
144
140
  // ---------------------------------------
145
141
  @lime-checkboxitem-item-container-selected-color: transparent;
142
+ @lime-checkboxitem-form-label-main-focused-color: var(--semantic-color-on-background-main);
143
+ @lime-checkboxitem-form-label-main-disabled-focused-color: inherit;
146
144
 
147
145
  // ContextualPopup
148
146
  // ---------------------------------------
@@ -266,6 +264,7 @@
266
264
  @lime-item-label-sub-selected-color: var(--semantic-color-on-background-sub);
267
265
  @lime-item-container-selected-color: ~"color(from" var(--semantic-color-surface-default-translucent) ~"srgb r g b / 0.1)";
268
266
  @lime-item-container-disabled-focused-color: var(--semantic-color-surface-default-disabled-focused);
267
+ @lime-item-focus-background: '';
269
268
 
270
269
  // KeyGuide
271
270
  // ---------------------------------------
@@ -327,7 +326,7 @@
327
326
  // ---------------------------------------
328
327
  @lime-progressbar-track-color: ~"color(from" var(--semantic-color-surface-default-track) ~"srgb r g b / 0.7)";
329
328
  @lime-progressbar-track-buffer-color: ~"color(from" var(--semantic-color-surface-white) ~"srgb r g b / 0.5)";
330
- @lime-progressbar-track-active-color: var(--semantic-color-surface-accent);
329
+ @lime-progressbar-track-active-color: var(--semantic-color-surface-white);
331
330
  @lime-progressbar-track-active-focused-color: var(--semantic-color-surface-default-focused);
332
331
 
333
332
  // ProgressButton
@@ -371,13 +370,13 @@
371
370
  @lime-slider-min-max-color: var(--semantic-color-on-background-sub);
372
371
  @lime-slider-track-color: ~"color(from" var(--semantic-color-surface-default-track) ~"srgb r g b / 0.7)";
373
372
  @lime-slider-track-buffer-color: ~"color(from" var(--semantic-color-surface-white) ~"srgb r g b / 0.5)";
374
- @lime-slider-track-active-color: var(--semantic-color-surface-accent);
375
- @lime-slider-track-active-focused-color: var(--semantic-color-surface-accent);
376
- @lime-slider-handle-color: var(--semantic-color-surface-default-handle);
377
- @lime-slider-handle-colorPicker-focused-color: var(--semantic-color-surface-white);
373
+ @lime-slider-track-active-color: var(--semantic-color-surface-white);
374
+ @lime-slider-track-active-focused-color: var(--semantic-color-surface-white);
375
+ @lime-slider-handle-color: var(--semantic-color-surface-white);
376
+ @lime-slider-handle-colorPicker-outline-color: var(--semantic-color-surface-white);
378
377
  @lime-slider-handle-border-color: transparent;
379
378
  @lime-slider-handle-focused-border-color: @lime-slider-handle-border-color;
380
- @lime-slider-handle-focused-color: var(--semantic-color-surface-default-focused);
379
+ @lime-slider-handle-focused-color: var(--semantic-color-surface-white);
381
380
  @lime-slider-handle-disabled-color: transparent;
382
381
  @lime-slider-handle-focused-shadow: 0 24px 36px @lime-shadow-color;
383
382
  @lime-slider-disabled-bar-opacity: 0.3;
@@ -38,13 +38,6 @@
38
38
  }
39
39
  }
40
40
 
41
- .lime-item-icon-tap-area-adjust() {
42
- &.small > .small-icon-tap-area {
43
- left: -@lime-spotlight-outset;
44
- right: -@lime-spotlight-outset;
45
- }
46
- }
47
-
48
41
  .lime-word-break() {
49
42
  overflow-wrap: break-word;
50
43
  word-break: keep-all;
@@ -179,23 +172,6 @@
179
172
  //
180
173
  // Custom Text Size Mixins
181
174
  //
182
- // 1 arg: Shorthand for just setting the font size in custom-text mode
183
- .lime-custom-text-size(@latin-size) {
184
- .lime-custom-text({
185
- font-size: @latin-size;
186
- });
187
- }
188
- // 2 args: Shorthand for just setting the font size of both latin and non-latin in custom-text mode
189
- .lime-custom-text-size(@latin-size; @non-latin-size) {
190
- .lime-custom-text(
191
- {
192
- font-size: @latin-size;
193
- };
194
- {
195
- font-size: @non-latin-size;
196
- });
197
- }
198
-
199
175
  // 1 arg: Generic rule applicator, accepts an entire rule-set to add for large text mode
200
176
  .lime-custom-text(@lrules) when (isruleset(@lrules)) {
201
177
  &:global(.largeText) {
@@ -220,20 +196,6 @@
220
196
  // Text definitions
221
197
  //
222
198
 
223
- .lime-alert-title() {
224
- .lime-font(@lime-alert-font-family; @lime-non-latin-font-family-light);
225
- .enact-locale-line-height(@lime-alert-line-height; @lime-tallglyph-body-line-height);
226
- font-size: @lime-alert-title-font-size;
227
- font-weight: @lime-alert-font-weight;
228
- }
229
-
230
- .lime-alert-subtitle() {
231
- .lime-font(@lime-alert-font-family; @lime-non-latin-font-family-light);
232
- .enact-locale-line-height(@lime-alert-line-height);
233
- font-size: @lime-alert-subtitle-font-size;
234
- font-weight: @lime-alert-font-weight;
235
- }
236
-
237
199
  .lime-alert-overlay-content() {
238
200
  .lime-font(@lime-alert-font-family; @lime-non-latin-font-family-light);
239
201
  .enact-locale-line-height(@lime-alert-line-height; @lime-tallglyph-body-line-height);
@@ -292,14 +254,6 @@
292
254
  .font-kerning();
293
255
  }
294
256
 
295
- // Uses Webkit specific styles to have multi-line ellipsis
296
- .lime-multi-line-ellipsis(@lines) {
297
- overflow: hidden;
298
- display: -webkit-box;
299
- -webkit-line-clamp: @lines;
300
- -webkit-box-orient: vertical;
301
- }
302
-
303
257
  // Add an extension to the .enact-locale-line-height mixin defined in ~@ui which has defaults specific to limestone.
304
258
  //
305
259
  // Set line-height for normal and tallglyphs with 0, 1 or 2 arguments
@@ -2,12 +2,6 @@
2
2
  @import "./motions.less";
3
3
  @import "./mixins.less";
4
4
 
5
- /* ---------------------------------------
6
- Motion Variables
7
- ------------------------------------------ */
8
- @lime-bounce-motion: var(--lime-bounce-motion);
9
- @lime-check-motion: var(--lime-check-motion);
10
-
11
5
  /* ---------------------------------------
12
6
  Motion Mixins
13
7
  ------------------------------------------ */
@@ -63,4 +57,19 @@ Motion Mixins
63
57
  .lime-slider-release-motion() {
64
58
  transform: @lime-translate-center @lime-slider-release-transform;
65
59
  transition: transform var(--lime-release-motion-duration) var(--lime-release-motion-easing-function);
66
- }
60
+ }
61
+
62
+ .lime-iconitem-focus-in-motion() {
63
+ transform: @lime-iconitem-focus-transform;
64
+ transition: transform var(--lime-focus-in-motion-duration) var(--lime-focus-in-motion-easing-function);
65
+ }
66
+
67
+ .lime-iconitem-press-motion() {
68
+ transform: @lime-iconitem-pressed-transform;
69
+ transition: transform var(--lime-press-motion-duration) var(--lime-press-motion-easing-function);
70
+ }
71
+
72
+ .lime-iconitem-release-motion() {
73
+ transform: @lime-iconitem-release-transform;
74
+ transition: transform var(--lime-release-motion-duration) var(--lime-release-motion-easing-function);
75
+ }
@@ -40,8 +40,8 @@ Animations properties
40
40
  --lime-bounce-motion-easing-function: var(--lime-default-motion-easing-function);
41
41
  --lime-focus-in-motion-easing-function: var(--lime-EIO-motion-easing-function);
42
42
  --lime-focus-out-motion-easing-function: var(--lime-EO-motion-easing-function);
43
- --lime-press-motion-easing-function: var(--lime-EIO-motion-easing-function);
44
- --lime-release-motion-easing-function: var(--lime-EO-motion-easing-function);
43
+ --lime-press-motion-easing-function: var(--lime-EO-motion-easing-function);
44
+ --lime-release-motion-easing-function: var(--lime-EIO-motion-easing-function);
45
45
 
46
46
  /* ---------------------------------------
47
47
  Keyframes names