@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/Heading/Heading.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Type definitions for limestone/Heading
|
|
2
2
|
|
|
3
|
-
import { MarqueeDecoratorProps as limestone_Marquee_MarqueeDecoratorProps } from "limestone/Marquee";
|
|
4
|
-
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "limestone/Skinnable";
|
|
3
|
+
import { MarqueeDecoratorProps as limestone_Marquee_MarqueeDecoratorProps } from "@enact/limestone/Marquee";
|
|
4
|
+
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "@enact/limestone/Skinnable";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
7
|
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
@@ -93,6 +93,10 @@
|
|
|
93
93
|
:global(.enact-locale-vi) .heading.subtitle {
|
|
94
94
|
font-size: 1rem;
|
|
95
95
|
}
|
|
96
|
+
.heading.subtitle:global(.largeText) {
|
|
97
|
+
font-size: 1.375rem;
|
|
98
|
+
line-height: 1.75rem;
|
|
99
|
+
}
|
|
96
100
|
.heading.large {
|
|
97
101
|
font-family: "Limestone";
|
|
98
102
|
font-weight: var(--primitive-font-weight-semibold);
|
|
@@ -136,6 +140,18 @@
|
|
|
136
140
|
margin-bottom: 0;
|
|
137
141
|
min-height: 0;
|
|
138
142
|
}
|
|
143
|
+
.heading:global(.largeText).large {
|
|
144
|
+
font-size: var(--primitive-font-size-86);
|
|
145
|
+
}
|
|
146
|
+
.heading:global(.largeText).medium {
|
|
147
|
+
font-size: var(--primitive-font-size-80);
|
|
148
|
+
}
|
|
149
|
+
.heading:global(.largeText).small {
|
|
150
|
+
font-size: var(--primitive-font-size-66);
|
|
151
|
+
}
|
|
152
|
+
.heading:global(.largeText).tiny {
|
|
153
|
+
font-size: var(--primitive-font-size-58);
|
|
154
|
+
}
|
|
139
155
|
.heading:global(.neutral) {
|
|
140
156
|
color: var(--semantic-color-on-background-main);
|
|
141
157
|
}
|
package/Icon/Icon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Type definitions for limestone/Icon
|
|
2
2
|
|
|
3
|
-
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "limestone/Skinnable";
|
|
3
|
+
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "@enact/limestone/Skinnable";
|
|
4
4
|
import { IconProps as ui_Icon_IconProps } from "@enact/ui/Icon";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
@@ -366,6 +366,27 @@ filexls
|
|
|
366
366
|
subtitleru
|
|
367
367
|
f1
|
|
368
368
|
mypageru
|
|
369
|
+
smartmode
|
|
370
|
+
databackup
|
|
371
|
+
deleteviewinginfo
|
|
372
|
+
lgmembers
|
|
373
|
+
manage
|
|
374
|
+
pay
|
|
375
|
+
paymentmethod
|
|
376
|
+
productregistration
|
|
377
|
+
purchased
|
|
378
|
+
rate
|
|
379
|
+
report
|
|
380
|
+
security
|
|
381
|
+
subscriptions
|
|
382
|
+
terminatemyaccount
|
|
383
|
+
update
|
|
384
|
+
usagecare
|
|
385
|
+
voucher
|
|
386
|
+
filter
|
|
387
|
+
ezsetting
|
|
388
|
+
fitness
|
|
389
|
+
auracast2
|
|
369
390
|
};
|
|
370
391
|
```
|
|
371
392
|
*/
|
package/Icon/Icon.js
CHANGED
|
@@ -513,6 +513,27 @@ var IconBase = exports.IconBase = (0, _kind["default"])({
|
|
|
513
513
|
* subtitleru
|
|
514
514
|
* f1
|
|
515
515
|
* mypageru
|
|
516
|
+
* smartmode
|
|
517
|
+
* databackup
|
|
518
|
+
* deleteviewinginfo
|
|
519
|
+
* lgmembers
|
|
520
|
+
* manage
|
|
521
|
+
* pay
|
|
522
|
+
* paymentmethod
|
|
523
|
+
* productregistration
|
|
524
|
+
* purchased
|
|
525
|
+
* rate
|
|
526
|
+
* report
|
|
527
|
+
* security
|
|
528
|
+
* subscriptions
|
|
529
|
+
* terminatemyaccount
|
|
530
|
+
* update
|
|
531
|
+
* usagecare
|
|
532
|
+
* voucher
|
|
533
|
+
* filter
|
|
534
|
+
* ezsetting
|
|
535
|
+
* fitness
|
|
536
|
+
* auracast2
|
|
516
537
|
};
|
|
517
538
|
* ```
|
|
518
539
|
*
|
package/Icon/Icon.module.css
CHANGED
|
@@ -24,6 +24,18 @@
|
|
|
24
24
|
.icon.tiny {
|
|
25
25
|
--icon-size: 1.25rem;
|
|
26
26
|
}
|
|
27
|
+
.icon:global(.largeText).large {
|
|
28
|
+
--icon-size: 2.1rem;
|
|
29
|
+
}
|
|
30
|
+
.icon:global(.largeText).medium {
|
|
31
|
+
--icon-size: 1.95rem;
|
|
32
|
+
}
|
|
33
|
+
.icon:global(.largeText).small {
|
|
34
|
+
--icon-size: 1.8rem;
|
|
35
|
+
}
|
|
36
|
+
.icon:global(.largeText).tiny {
|
|
37
|
+
--icon-size: 1.5rem;
|
|
38
|
+
}
|
|
27
39
|
.icon.dingbat {
|
|
28
40
|
font-family: "LG Icons";
|
|
29
41
|
}
|
package/Icon/IconList.js
CHANGED
|
@@ -633,5 +633,47 @@ var _default = exports["default"] = {
|
|
|
633
633
|
// subtitleru
|
|
634
634
|
f1: 0x0F01F8,
|
|
635
635
|
// f1
|
|
636
|
-
mypageru: 0x0F01F7
|
|
636
|
+
mypageru: 0x0F01F7,
|
|
637
|
+
// mypageru
|
|
638
|
+
smartmode: 0x0F01FA,
|
|
639
|
+
// smartmode
|
|
640
|
+
databackup: 0x0F01FB,
|
|
641
|
+
// data_backup
|
|
642
|
+
deleteviewinginfo: 0x0F01FC,
|
|
643
|
+
// delete_viewing_info
|
|
644
|
+
lgmembers: 0x0F01FD,
|
|
645
|
+
// LG_Members
|
|
646
|
+
manage: 0x0F01FE,
|
|
647
|
+
// manage
|
|
648
|
+
pay: 0x0F01FF,
|
|
649
|
+
// pay
|
|
650
|
+
paymentmethod: 0x0F0200,
|
|
651
|
+
// payment_method
|
|
652
|
+
productregistration: 0x0F0201,
|
|
653
|
+
// product_registration
|
|
654
|
+
purchased: 0x0F0202,
|
|
655
|
+
// purchased
|
|
656
|
+
rate: 0x0F0203,
|
|
657
|
+
// rate
|
|
658
|
+
report: 0x0F0204,
|
|
659
|
+
// report
|
|
660
|
+
security: 0x0F0205,
|
|
661
|
+
// security
|
|
662
|
+
subscriptions: 0x0F0206,
|
|
663
|
+
// subscriptions
|
|
664
|
+
terminatemyaccount: 0x0F0207,
|
|
665
|
+
// terminate_my_account
|
|
666
|
+
update: 0x0F0208,
|
|
667
|
+
// update
|
|
668
|
+
usagecare: 0x0F0209,
|
|
669
|
+
// usage_care
|
|
670
|
+
voucher: 0x0F020A,
|
|
671
|
+
// voucher
|
|
672
|
+
filter: 0x0F020B,
|
|
673
|
+
// filter
|
|
674
|
+
ezsetting: 0x0F020C,
|
|
675
|
+
// ez_setting
|
|
676
|
+
fitness: 0x0F020D,
|
|
677
|
+
// Fitness
|
|
678
|
+
auracast2: 0x0F020E // Auracast
|
|
637
679
|
};
|
package/IconItem/IconItem.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Type definitions for limestone/IconItem
|
|
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 * as React from "react";
|
|
7
7
|
|
|
8
8
|
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
@@ -34,8 +34,8 @@ Animations properties
|
|
|
34
34
|
--lime-bounce-motion-easing-function: var(--lime-default-motion-easing-function);
|
|
35
35
|
--lime-focus-in-motion-easing-function: var(--lime-EIO-motion-easing-function);
|
|
36
36
|
--lime-focus-out-motion-easing-function: var(--lime-EO-motion-easing-function);
|
|
37
|
-
--lime-press-motion-easing-function: var(--lime-
|
|
38
|
-
--lime-release-motion-easing-function: var(--lime-
|
|
37
|
+
--lime-press-motion-easing-function: var(--lime-EO-motion-easing-function);
|
|
38
|
+
--lime-release-motion-easing-function: var(--lime-EIO-motion-easing-function);
|
|
39
39
|
/* ---------------------------------------
|
|
40
40
|
Keyframes names
|
|
41
41
|
------------------------------------------ */
|
|
@@ -76,9 +76,6 @@ Keyframes
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
/* ---------------------------------------
|
|
79
|
-
Motion Variables
|
|
80
|
-
------------------------------------------ */
|
|
81
|
-
/* ---------------------------------------
|
|
82
79
|
Motion Mixins
|
|
83
80
|
------------------------------------------ */
|
|
84
81
|
.iconItem {
|
|
@@ -139,7 +136,7 @@ Motion Mixins
|
|
|
139
136
|
}
|
|
140
137
|
:global(.spotlight-input-key) .iconItem:global(.spottable):focus,
|
|
141
138
|
:global(.spotlight-input-mouse) .iconItem:global(.spottable):focus {
|
|
142
|
-
transform: scale(1.
|
|
139
|
+
transform: scale(1.2);
|
|
143
140
|
transition: transform var(--lime-focus-in-motion-duration) var(--lime-focus-in-motion-easing-function);
|
|
144
141
|
}
|
|
145
142
|
:global(.spotlight-input-key) .iconItem:global(.spottable):focus.labelOnFocus .label,
|
|
@@ -153,7 +150,7 @@ Motion Mixins
|
|
|
153
150
|
visibility: visible;
|
|
154
151
|
}
|
|
155
152
|
:global(.spotlight-input-touch) .iconItem:global(.spottable):active {
|
|
156
|
-
transform: scale(1.
|
|
153
|
+
transform: scale(1.2);
|
|
157
154
|
transition: transform var(--lime-focus-in-motion-duration) var(--lime-focus-in-motion-easing-function);
|
|
158
155
|
}
|
|
159
156
|
:global(.spotlight-input-touch) .iconItem:global(.spottable):active.labelOnFocus .label,
|
|
@@ -167,26 +164,42 @@ Motion Mixins
|
|
|
167
164
|
:global(.spotlight-input-mouse) .iconItem:not([disabled]):global(.spottable):focus.pressed,
|
|
168
165
|
:global(.spotlight-input-key) .iconItem:not([disabled]):global(.spottable):focus:active,
|
|
169
166
|
:global(.spotlight-input-mouse) .iconItem:not([disabled]):global(.spottable):focus:active {
|
|
170
|
-
transform: scale(1.
|
|
167
|
+
transform: scale(1.1);
|
|
171
168
|
transition: transform var(--lime-press-motion-duration) var(--lime-press-motion-easing-function);
|
|
172
169
|
}
|
|
173
|
-
:global(.spotlight-input-key) .iconItem:not([disabled]):global(.spottable):focus:not(
|
|
174
|
-
:global(.spotlight-input-mouse) .iconItem:not([disabled]):global(.spottable):focus:not(
|
|
175
|
-
transform: scale(1.
|
|
170
|
+
:global(.spotlight-input-key) .iconItem:not([disabled]):global(.spottable):focus:not(.pressed),
|
|
171
|
+
:global(.spotlight-input-mouse) .iconItem:not([disabled]):global(.spottable):focus:not(.pressed) {
|
|
172
|
+
transform: scale(1.2);
|
|
176
173
|
transition: transform var(--lime-release-motion-duration) var(--lime-release-motion-easing-function);
|
|
177
174
|
}
|
|
178
175
|
:global(.spotlight-input-touch) .iconItem:not([disabled]):global(.spottable):active.pressed,
|
|
179
176
|
:global(.spotlight-input-touch) .iconItem:not([disabled]):global(.spottable):active:active {
|
|
180
|
-
transform: scale(1.
|
|
177
|
+
transform: scale(1.1);
|
|
181
178
|
transition: transform var(--lime-press-motion-duration) var(--lime-press-motion-easing-function);
|
|
182
179
|
}
|
|
183
|
-
:global(.spotlight-input-touch) .iconItem:not([disabled]):global(.spottable):active:not(
|
|
184
|
-
transform: scale(1.
|
|
180
|
+
:global(.spotlight-input-touch) .iconItem:not([disabled]):global(.spottable):active:not(.pressed) {
|
|
181
|
+
transform: scale(1.2);
|
|
185
182
|
transition: transform var(--lime-release-motion-duration) var(--lime-release-motion-easing-function);
|
|
186
183
|
}
|
|
187
184
|
:global(.noAnimation) .iconItem {
|
|
188
185
|
transition: none;
|
|
189
186
|
}
|
|
187
|
+
.iconItem:global(.largeText).hasTitle {
|
|
188
|
+
height: calc( 5.33333rem + 1.45833rem + 24px);
|
|
189
|
+
}
|
|
190
|
+
.iconItem:global(.largeText) .icon {
|
|
191
|
+
height: 3.04167rem;
|
|
192
|
+
width: 3.04167rem;
|
|
193
|
+
line-height: 3.04167rem;
|
|
194
|
+
}
|
|
195
|
+
.iconItem:global(.largeText) .label {
|
|
196
|
+
font-size: var(--primitive-font-size-50);
|
|
197
|
+
line-height: 1.33333rem;
|
|
198
|
+
}
|
|
199
|
+
.iconItem:global(.largeText) .title {
|
|
200
|
+
font-size: var(--primitive-font-size-58);
|
|
201
|
+
line-height: 1.45833rem;
|
|
202
|
+
}
|
|
190
203
|
.iconItem:global(.neutral).bordered .content {
|
|
191
204
|
border-color: var(--semantic-color-stroke-white);
|
|
192
205
|
}
|
package/Image/Image.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Type definitions for limestone/Image
|
|
2
2
|
|
|
3
|
-
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "limestone/Skinnable";
|
|
3
|
+
import { SkinnableProps as limestone_Skinnable_SkinnableProps } from "@enact/limestone/Skinnable";
|
|
4
4
|
import { ImageProps as ui_Image_ImageProps } from "@enact/ui/Image";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
package/Image/Image.module.css
CHANGED
package/ImageItem/ImageItem.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Type definitions for limestone/ImageItem
|
|
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 { ImageItemProps as ui_ImageItem_ImageItemProps } from "@enact/ui/ImageItem";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
|
package/ImageItem/ImageItem.js
CHANGED
|
@@ -12,7 +12,6 @@ var _Layout = require("@enact/ui/Layout");
|
|
|
12
12
|
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _compose = _interopRequireDefault(require("ramda/src/compose"));
|
|
14
14
|
var _$L = _interopRequireDefault(require("../internal/$L"));
|
|
15
|
-
var _Checkbox = require("../Checkbox");
|
|
16
15
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
17
16
|
var _Image = _interopRequireDefault(require("../Image"));
|
|
18
17
|
var _AsyncRenderChildren = _interopRequireDefault(require("../internal/AsyncRenderChildren"));
|
|
@@ -44,8 +43,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
44
43
|
* @exports ImageItemBase
|
|
45
44
|
* @exports ImageItemDecorator
|
|
46
45
|
*/
|
|
47
|
-
var Checkbox = (0, _Skinnable["default"])(_Checkbox.CheckboxBase);
|
|
48
|
-
Checkbox.displayName = 'Checkbox';
|
|
49
46
|
var defaultPlaceholder = 'data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC' + '9zdmciPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHN0cm9rZT0iIzU1NSIgZmlsbD0iI2FhYSIg' + 'ZmlsbC1vcGFjaXR5PSIwLjIiIHN0cm9rZS1vcGFjaXR5PSIwLjgiIHN0cm9rZS13aWR0aD0iNiIgLz48L3N2Zz' + '4NCg==';
|
|
50
47
|
|
|
51
48
|
/**
|
|
@@ -294,22 +291,14 @@ var ImageItemBase = exports.ImageItemBase = (0, _kind["default"])({
|
|
|
294
291
|
},
|
|
295
292
|
selectionComponent: function selectionComponent(_ref4) {
|
|
296
293
|
var css = _ref4.css,
|
|
297
|
-
orientation = _ref4.orientation,
|
|
298
|
-
selected = _ref4.selected,
|
|
299
294
|
SelectionComponent = _ref4.selectionComponent;
|
|
300
295
|
if (SelectionComponent) {
|
|
301
296
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectionComponent, {});
|
|
302
|
-
} else
|
|
297
|
+
} else {
|
|
303
298
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon["default"], {
|
|
304
299
|
className: css.selectionIcon,
|
|
305
300
|
children: "checkmark"
|
|
306
301
|
});
|
|
307
|
-
} else {
|
|
308
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Checkbox, {
|
|
309
|
-
className: css.selectionIcon,
|
|
310
|
-
selected: selected,
|
|
311
|
-
size: "tiny"
|
|
312
|
-
});
|
|
313
302
|
}
|
|
314
303
|
}
|
|
315
304
|
},
|
|
@@ -320,7 +309,6 @@ var ImageItemBase = exports.ImageItemBase = (0, _kind["default"])({
|
|
|
320
309
|
SelectionComponent = _ref5.selectionComponent,
|
|
321
310
|
showSelection = _ref5.showSelection,
|
|
322
311
|
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
323
|
-
var isSlotBefore = orientation === 'horizontal' && showSelection;
|
|
324
312
|
delete rest.centered;
|
|
325
313
|
delete rest.imageIconComponent;
|
|
326
314
|
delete rest.imageIconSrc;
|
|
@@ -332,12 +320,11 @@ var ImageItemBase = exports.ImageItemBase = (0, _kind["default"])({
|
|
|
332
320
|
disabled: disabled,
|
|
333
321
|
orientation: orientation,
|
|
334
322
|
imageComponent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image["default"], {
|
|
335
|
-
children:
|
|
323
|
+
children: showSelection ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
336
324
|
className: css.selectionContainer,
|
|
337
325
|
children: SelectionComponent
|
|
338
326
|
}) : null
|
|
339
|
-
})
|
|
340
|
-
slotBefore: isSlotBefore && SelectionComponent
|
|
327
|
+
})
|
|
341
328
|
}));
|
|
342
329
|
}
|
|
343
330
|
});
|