@enact/limestone 1.10.0 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- package/ActionGuide/ActionGuide.d.ts +1 -1
- package/ActionGuide/ActionGuide.module.css +7 -0
- package/Alert/Alert.d.ts +9 -0
- package/Alert/Alert.js +63 -21
- package/Alert/Alert.module.css +41 -9
- package/Alert/AlertImage.module.css +5 -1
- package/Alert/tests/Alert-specs.js +6 -2
- package/BodyText/BodyText.d.ts +1 -1
- package/BodyText/BodyText.js +14 -9
- package/BodyText/BodyText.module.css +22 -1
- package/Button/Button.d.ts +3 -3
- package/Button/Button.module.css +81 -63
- package/CHANGELOG.md +87 -0
- package/Card/Card.d.ts +81 -9
- package/Card/Card.js +324 -84
- package/Card/Card.module.css +200 -25
- package/Card/tests/Card-specs.js +100 -0
- package/Checkbox/Checkbox.d.ts +2 -2
- package/Checkbox/Checkbox.module.css +2 -5
- package/CheckboxItem/CheckboxItem.d.ts +8 -1
- package/CheckboxItem/CheckboxItem.js +39 -12
- package/CheckboxItem/CheckboxItem.module.css +228 -4
- package/Chips/Chip.module.css +5 -2
- package/ContextualMenuDecorator/ContextualMenuDecorator.d.ts +2 -2
- package/ContextualPopupDecorator/ContextualPopup.module.css +1 -1
- package/ContextualPopupDecorator/ContextualPopupDecorator.js +2 -4
- package/ContextualPopupDecorator/tests/ContextualPopupDecorator-specs.js +39 -2
- package/Dropdown/Dropdown.d.ts +2 -2
- package/Dropdown/Dropdown.module.css +7 -7
- package/FixedPopupPanels/FixedPopupPanels.d.ts +2 -2
- package/FlexiblePopupPanels/FlexiblePopupPanels.module.css +15 -3
- package/FlexiblePopupPanels/index.d.ts +2 -2
- package/FormCheckboxItem/FormCheckboxItem.d.ts +1 -1
- package/FormCheckboxItem/FormCheckboxItem.js +1 -0
- package/FormCheckboxItem/FormCheckboxItem.module.css +1 -1
- package/Heading/Heading.d.ts +2 -2
- package/Heading/Heading.module.css +16 -0
- package/Icon/Icon.d.ts +22 -1
- package/Icon/Icon.js +21 -0
- package/Icon/Icon.module.css +12 -0
- package/Icon/IconList.js +43 -1
- package/IconItem/IconItem.d.ts +2 -2
- package/IconItem/IconItem.module.css +27 -14
- package/Image/Image.d.ts +1 -1
- package/Image/Image.module.css +1 -1
- package/ImageItem/ImageItem.d.ts +2 -2
- package/ImageItem/ImageItem.js +3 -16
- package/ImageItem/ImageItem.module.css +122 -97
- package/ImageItem/tests/ImageItem-specs.js +6 -5
- package/Input/Input.module.css +33 -16
- package/Input/InputField.module.css +22 -4
- package/Input/index.d.ts +1 -1
- package/Input/tests/Input-specs.js +2 -2
- package/Input/tests/InputField-specs.js +1 -1
- package/Item/Item.d.ts +2 -2
- package/Item/Item.module.css +29 -16
- package/KeyGuide/KeyGuide.d.ts +2 -2
- package/KeyGuide/KeyGuide.module.css +10 -0
- package/MediaOverlay/MediaOverlay.d.ts +2 -2
- package/MediaOverlay/MediaOverlay.module.css +18 -9
- package/MediaPlayer/MediaControls.module.css +3 -0
- package/MediaPlayer/MediaSlider.module.css +1 -0
- package/MediaPlayer/Times.module.css +5 -1
- package/MediaPlayer/index.d.ts +2 -2
- package/PageViews/PageViews.module.css +6 -1
- package/Panels/Header.module.css +74 -56
- package/Panels/Panel.module.css +1 -1
- package/Panels/index.d.ts +1 -1
- package/Picker/Picker.d.ts +1 -1
- package/Popup/Popup.module.css +4 -1
- package/PopupTabLayout/PopupTabLayout.d.ts +6 -6
- package/PopupTabLayout/PopupTabLayout.module.css +24 -6
- package/ProgressBar/ProgressBar.d.ts +1 -1
- package/ProgressBar/ProgressBar.module.css +12 -12
- package/ProgressBar/ProgressBarTooltip.module.css +7 -7
- package/ProgressButton/ProgressButton.d.ts +2 -2
- package/QuickGuidePanels/QuickGuidePanels.module.css +1 -1
- package/RadioItem/RadioItem.d.ts +1 -1
- package/RadioItem/RadioItem.module.css +21 -18
- package/Scroller/EditableWrapper.js +2 -1
- package/Scroller/Scroller.d.ts +12 -0
- package/Scroller/Scroller.js +15 -0
- package/Scroller/Scroller.module.css +10 -0
- package/Scroller/tests/Scroller-specs.js +120 -2
- package/Scroller/useThemeScroller.js +25 -2
- package/Slider/Slider.d.ts +1 -1
- package/Slider/Slider.module.css +539 -303
- package/Spinner/Spinner.d.ts +1 -1
- package/Spinner/Spinner.module.css +2 -2
- package/Steps/Steps.d.ts +1 -1
- package/Steps/Steps.js +12 -6
- package/Steps/Steps.module.css +19 -2
- package/Switch/Switch.module.css +17 -6
- package/SwitchItem/SwitchItem.d.ts +1 -1
- package/TabLayout/RefocusDecorator.js +1 -1
- package/TabLayout/TabGroup.module.css +13 -7
- package/TabLayout/TabLayout.js +4 -0
- package/ThemeDecorator/ThemeDecorator.d.ts +1 -1
- package/ThemeDecorator/ThemeDecorator.module.css +22 -1
- package/TimePicker/TimePicker.module.css +3 -0
- package/TooltipDecorator/Tooltip.js +68 -7
- package/TooltipDecorator/Tooltip.module.css +44 -23
- package/TooltipDecorator/TooltipDecorator.d.ts +52 -0
- package/TooltipDecorator/TooltipDecorator.js +42 -0
- package/TooltipDecorator/TooltipLabel.js +67 -14
- package/TooltipDecorator/tests/TooltipDecorator-specs.js +46 -0
- package/TooltipDecorator/useTooltip.js +14 -2
- package/VideoPlayer/Feedback.module.css +3 -0
- package/VideoPlayer/FeedbackTooltip.module.css +7 -0
- package/VideoPlayer/MediaTitle.module.css +9 -1
- package/VirtualList/VirtualList.d.ts +24 -0
- package/VirtualList/VirtualList.js +30 -0
- package/VirtualList/tests/stickTo-specs.js +115 -0
- package/VirtualList/tests/useEvent-specs.js +39 -0
- package/VirtualList/useEvent.js +45 -10
- package/VirtualList/useThemeVirtualList.js +20 -2
- package/WizardPanels/WizardPanels.module.css +1 -1
- package/fonts/Limestone_Icons.ttf +0 -0
- package/internal/DateComponentPicker/DateComponentPicker.module.css +3 -3
- package/internal/DateTime/DateTime.module.css +3 -0
- package/internal/Picker/Picker.js +8 -10
- package/internal/Picker/Picker.module.css +92 -137
- package/package.json +14 -17
- package/styles/color-mixins.less +4 -60
- package/styles/colors-game.less +5 -5
- package/styles/colors.less +9 -10
- package/styles/mixins.less +0 -46
- package/styles/motion-mixins.less +16 -7
- package/styles/motions.less +2 -2
- package/styles/variables.less +186 -69
- package/useScroll/ScrollbarPlaceholder.js +8 -3
- package/useScroll/useScroll.js +3 -1
package/styles/colors.less
CHANGED
|
@@ -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-
|
|
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-
|
|
375
|
-
@lime-slider-track-active-focused-color: var(--semantic-color-surface-
|
|
376
|
-
@lime-slider-handle-color: var(--semantic-color-surface-
|
|
377
|
-
@lime-slider-handle-colorPicker-
|
|
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-
|
|
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;
|
package/styles/mixins.less
CHANGED
|
@@ -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
|
+
}
|
package/styles/motions.less
CHANGED
|
@@ -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-
|
|
44
|
-
--lime-release-motion-easing-function: var(--lime-
|
|
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
|