@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.
- package/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- package/ActionGuide/ActionGuide.d.ts +1 -1
- package/ActionGuide/ActionGuide.module.css +3 -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 +1 -1
- package/Button/Button.d.ts +3 -3
- package/Button/Button.module.css +14 -28
- package/CHANGELOG.md +48 -1
- package/Card/Card.d.ts +81 -9
- package/Card/Card.js +321 -84
- package/Card/Card.module.css +171 -20
- package/Card/tests/Card-specs.js +100 -0
- package/Checkbox/Checkbox.d.ts +2 -2
- package/Checkbox/Checkbox.module.css +2 -9
- 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 +2 -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/Icon/Icon.d.ts +22 -1
- package/Icon/Icon.js +21 -0
- package/Icon/IconList.js +43 -1
- package/IconItem/IconItem.d.ts +2 -2
- package/IconItem/IconItem.module.css +11 -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 +105 -97
- package/ImageItem/tests/ImageItem-specs.js +6 -5
- package/Input/Input.module.css +8 -7
- package/Input/InputField.module.css +4 -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 +27 -15
- package/KeyGuide/KeyGuide.d.ts +2 -2
- package/MediaOverlay/MediaOverlay.d.ts +2 -2
- package/MediaOverlay/MediaOverlay.module.css +2 -5
- package/MediaPlayer/MediaSlider.module.css +1 -0
- package/MediaPlayer/Times.module.css +1 -1
- package/MediaPlayer/index.d.ts +2 -2
- package/PageViews/PageViews.module.css +2 -1
- package/Panels/Header.module.css +40 -28
- 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 +6 -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 +18 -20
- package/Scroller/Scroller.d.ts +12 -0
- package/Scroller/Scroller.js +15 -0
- package/Scroller/tests/Scroller-specs.js +29 -0
- package/Scroller/useThemeScroller.js +22 -2
- package/Slider/Slider.d.ts +1 -1
- package/Slider/Slider.module.css +539 -300
- 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 +16 -2
- package/Switch/Switch.module.css +2 -5
- package/SwitchItem/SwitchItem.d.ts +1 -1
- package/TabLayout/RefocusDecorator.js +1 -1
- package/TabLayout/TabGroup.module.css +12 -6
- package/TabLayout/TabLayout.js +4 -0
- package/ThemeDecorator/ThemeDecorator.d.ts +1 -1
- package/ThemeDecorator/ThemeDecorator.module.css +22 -1
- package/TooltipDecorator/Tooltip.js +68 -7
- package/TooltipDecorator/Tooltip.module.css +40 -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/MediaTitle.module.css +1 -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/Picker/Picker.js +8 -10
- package/internal/Picker/Picker.module.css +74 -141
- package/package.json +11 -14
- 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 +71 -46
- package/useScroll/useScroll.js +3 -1
package/Card/Card.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Type definitions for limestone/Card
|
|
2
2
|
|
|
3
|
-
import { MarqueeControllerProps as limestone_Marquee_MarqueeControllerProps } from "limestone/Marquee";
|
|
3
|
+
import { MarqueeControllerProps as limestone_Marquee_MarqueeControllerProps } from "@enact/limestone/Marquee";
|
|
4
4
|
import { SpottableProps as spotlight_Spottable_SpottableProps } from "@enact/spotlight/Spottable";
|
|
5
|
-
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "limestone/Skinnable";
|
|
5
|
+
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "@enact/limestone/Skinnable";
|
|
6
6
|
import { CardProps as ui_Card_CardProps } from "@enact/ui/Card";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
|
|
@@ -21,6 +21,31 @@ a specific screenSize.
|
|
|
21
21
|
*/
|
|
22
22
|
"aria-label"?: string;
|
|
23
23
|
/**
|
|
24
|
+
* Sources for the image icon.
|
|
25
|
+
*
|
|
26
|
+
* An array of String values or Objects of values used to determine which image will appear on
|
|
27
|
+
a specific screenSize. This prop is only used when `orientation` is `'vertical'` .
|
|
28
|
+
*/
|
|
29
|
+
captionImageIconsSrc?: string[] | object[];
|
|
30
|
+
/**
|
|
31
|
+
* The size of the caption images.
|
|
32
|
+
*
|
|
33
|
+
* The following properties should be provided:
|
|
34
|
+
* * `height` - The height of the image
|
|
35
|
+
* * `width` - The width of the image
|
|
36
|
+
*/
|
|
37
|
+
captionImageSize?: object;
|
|
38
|
+
/**
|
|
39
|
+
* Determines whether the caption will overflow the card container or not.
|
|
40
|
+
It only applies when `orientation` is `'vertical'` and `captionOverlay` and `captionOverlayOnFocus` is `false` .
|
|
41
|
+
*/
|
|
42
|
+
captionOverflow?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Determines whether the caption will overflow the card container and show only on card focus.
|
|
45
|
+
It only applies when `orientation` is `'vertical'` and `captionOverlay` and `captionOverlayOnFocus` is `false` .
|
|
46
|
+
*/
|
|
47
|
+
captionOverflowOnFocus?: boolean;
|
|
48
|
+
/**
|
|
24
49
|
* Determines whether the caption will be placed over the image or not.
|
|
25
50
|
It only applies when `orientation` is `'vertical'` .
|
|
26
51
|
*/
|
|
@@ -34,6 +59,11 @@ It only applies when `orientation` is `'vertical'` .
|
|
|
34
59
|
* Centers the captions when `imageIconSrc` is not provided.
|
|
35
60
|
*/
|
|
36
61
|
centered?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Centers the title and `imageIconSrc` horizontally and vertically.
|
|
64
|
+
It only applies when `captionOverlay` or `captionOverlayOnFocus` is `true` .
|
|
65
|
+
*/
|
|
66
|
+
centeredTitle?: boolean;
|
|
37
67
|
/**
|
|
38
68
|
* The primary caption displayed with the image.
|
|
39
69
|
*/
|
|
@@ -47,6 +77,14 @@ corresponding internal elements and states of this component.
|
|
|
47
77
|
* Disables Card and becomes non-interactive.
|
|
48
78
|
*/
|
|
49
79
|
disabled?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Media's entire duration in seconds.
|
|
82
|
+
*/
|
|
83
|
+
duration?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Determines whether the `Duration` will be placed over the image or not.
|
|
86
|
+
*/
|
|
87
|
+
durationOverlay?: boolean;
|
|
50
88
|
/**
|
|
51
89
|
* Fits the image to its height and width and positions it on the center of the Card.
|
|
52
90
|
*/
|
|
@@ -63,10 +101,10 @@ When `orientation` is `'horizontal'` , this prop is always `true` and provi
|
|
|
63
101
|
/**
|
|
64
102
|
* Source for the image icon.
|
|
65
103
|
*
|
|
66
|
-
* String value or Object of values used to determine which image will appear on
|
|
67
|
-
a specific screenSize. This prop is only used when `orientation` is `'vertical'` .
|
|
104
|
+
* String value or element or Object of values used to determine which image will appear on
|
|
105
|
+
a specific screenSize. This prop is only used when `orientation` is `'vertical'` or `centeredTitle` is `true` .
|
|
68
106
|
*/
|
|
69
|
-
imageIconSrc?: string | object;
|
|
107
|
+
imageIconSrc?: string | object | JSX.Element;
|
|
70
108
|
/**
|
|
71
109
|
* The size of the image.
|
|
72
110
|
*
|
|
@@ -79,6 +117,12 @@ a specific screenSize. This prop is only used when `orientation` is `'vertica
|
|
|
79
117
|
* A secondary caption displayed with the image.
|
|
80
118
|
*/
|
|
81
119
|
label?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Icons to be included with the secondary caption.
|
|
122
|
+
*
|
|
123
|
+
* Typically, up to 3 icons are used.
|
|
124
|
+
*/
|
|
125
|
+
labelIcons?: JSX.Element | JSX.Element[];
|
|
82
126
|
/**
|
|
83
127
|
* The layout orientation of the component.
|
|
84
128
|
*/
|
|
@@ -88,29 +132,57 @@ a specific screenSize. This prop is only used when `orientation` is `'vertica
|
|
|
88
132
|
*/
|
|
89
133
|
placeholder?: string;
|
|
90
134
|
/**
|
|
91
|
-
* The primary badge
|
|
135
|
+
* The primary badge.
|
|
92
136
|
*/
|
|
93
|
-
|
|
137
|
+
primaryBadge?: JSX.Element | string;
|
|
138
|
+
/**
|
|
139
|
+
* The size of the primary badge. Can be a number or an object with specific dimensions.
|
|
140
|
+
The following properties should be provided for the object:
|
|
141
|
+
* * `height` - The height of the badge
|
|
142
|
+
* * `width` - The width of the badge
|
|
143
|
+
*/
|
|
144
|
+
primaryBadgeSize?: object | number;
|
|
94
145
|
/**
|
|
95
146
|
* The progress displayed inside the ProgressBar
|
|
96
147
|
*/
|
|
97
148
|
progress?: number;
|
|
149
|
+
/**
|
|
150
|
+
* Determines whether the `ProgressBar` will be placed over the image or not.
|
|
151
|
+
*/
|
|
152
|
+
progressBarOverlay?: boolean;
|
|
98
153
|
/**
|
|
99
154
|
* Set to `true` to display the image with rounded corners.
|
|
100
155
|
*/
|
|
101
156
|
roundedImage?: boolean;
|
|
102
157
|
/**
|
|
103
|
-
* The secondary badge
|
|
158
|
+
* The secondary badge.
|
|
104
159
|
*/
|
|
105
|
-
|
|
160
|
+
secondaryBadge?: JSX.Element | string;
|
|
161
|
+
/**
|
|
162
|
+
* The size of the secondary badge. Can be a number or an object with specific dimensions.
|
|
163
|
+
The following properties should be provided for the object:
|
|
164
|
+
* * `height` - The height of the badge
|
|
165
|
+
* * `width` - The width of the badge
|
|
166
|
+
*/
|
|
167
|
+
secondaryBadgeSize?: object | number;
|
|
106
168
|
/**
|
|
107
169
|
* A ternary caption displayed with the image.
|
|
108
170
|
*/
|
|
109
171
|
secondaryLabel?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Icons to be included with the ternary caption.
|
|
174
|
+
*
|
|
175
|
+
* Typically, up to 3 icons are used.
|
|
176
|
+
*/
|
|
177
|
+
secondaryLabelIcons?: JSX.Element | JSX.Element[];
|
|
110
178
|
/**
|
|
111
179
|
* Applies a selected visual effect to the image.
|
|
112
180
|
*/
|
|
113
181
|
selected?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Activates the 'Duration'.
|
|
184
|
+
*/
|
|
185
|
+
showDuration?: boolean;
|
|
114
186
|
/**
|
|
115
187
|
* Activates the 'ProgressBar'.
|
|
116
188
|
*/
|