@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
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 image source.
135
+ * The primary badge.
92
136
  */
93
- primaryBadgeSrc?: string | object;
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 image source.
158
+ * The secondary badge.
104
159
  */
105
- secondaryBadgeSrc?: string | object;
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
  */