@zohodesk/components 1.0.0-temp-190.2 → 1.0.0-temp-191
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/.cli/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +12 -5
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -29
- package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -29
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -29
- package/es/AppContainer/AppContainer.js +10 -9
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +4 -5
- package/es/Avatar/Avatar.module.css +22 -52
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +74 -66
- package/es/Button/Button.js +5 -6
- package/es/Button/css/Button.module.css +100 -162
- package/es/Buttongroup/Buttongroup.module.css +17 -52
- package/es/CheckBox/CheckBox.js +18 -8
- package/es/CheckBox/CheckBox.module.css +60 -37
- package/es/CheckBox/props/propTypes.js +1 -0
- package/es/DateTime/DateTime.module.css +57 -86
- package/es/DateTime/DateWidget.module.css +7 -11
- package/es/DateTime/YearView.module.css +21 -34
- package/es/DropBox/DropBox.js +10 -11
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
- package/es/DropBox/css/DropBox.module.css +6 -24
- package/es/DropDown/DropDown.js +2 -1
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +13 -19
- package/es/DropDown/DropDownItem.module.css +22 -43
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +23 -12
- package/es/Label/LabelColors.module.css +7 -1
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +6 -5
- package/es/ListItem/ListItem.js +4 -5
- package/es/ListItem/ListItem.module.css +87 -90
- package/es/ListItem/ListItemWithAvatar.js +4 -5
- package/es/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/ListItem/ListItemWithIcon.js +4 -5
- package/es/ListItem/ListItemWithRadio.js +4 -5
- package/es/Modal/Modal.js +4 -5
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
- package/es/MultiSelect/MultiSelect.module.css +69 -55
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/MultiSelect/SelectedOptions.js +6 -8
- package/es/MultiSelect/SelectedOptions.module.css +5 -11
- package/es/MultiSelect/Suggestions.js +6 -8
- package/es/PopOver/PopOver.module.css +4 -4
- package/es/Popup/Popup.js +3 -4
- package/es/Radio/Radio.js +25 -6
- package/es/Radio/Radio.module.css +40 -23
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/es/Radio/props/defaultProps.js +1 -0
- package/es/Radio/props/propTypes.js +7 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +64 -147
- package/es/RippleEffect/RippleEffect.module.css +27 -9
- package/es/Select/Select.js +4 -5
- package/es/Select/Select.module.css +22 -33
- package/es/Stencils/Stencils.module.css +14 -32
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +35 -32
- package/es/Tab/Tab.js +4 -5
- package/es/Tab/Tab.module.css +39 -28
- package/es/Tab/TabContentWrapper.js +4 -5
- package/es/Tab/TabWrapper.js +2 -4
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +29 -51
- package/es/Tag/Tag.module.css +91 -66
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +20 -36
- package/es/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/TextBoxIcon/TextBoxIcon.module.css +6 -18
- package/es/Textarea/Textarea.js +4 -6
- package/es/Textarea/Textarea.module.css +60 -36
- package/es/Tooltip/Tooltip.module.css +13 -12
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/common/animation.module.css +29 -227
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +15 -5
- package/es/common/common.module.css +36 -82
- package/es/common/customscroll.module.css +32 -29
- package/es/common/transition.module.css +10 -50
- package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/Animation/Animation.js +1 -1
- package/es/v1/AppContainer/AppContainer.js +10 -9
- package/es/v1/Avatar/Avatar.js +4 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +5 -6
- package/es/v1/Card/Card.js +1 -1
- package/es/v1/CheckBox/CheckBox.js +15 -9
- package/es/v1/CheckBox/props/propTypes.js +1 -0
- package/es/v1/DropBox/DropBox.js +10 -11
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/DropDown/DropDown.js +2 -1
- package/es/v1/ListItem/ListContainer.js +7 -6
- package/es/v1/ListItem/ListItem.js +4 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
- package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/v1/ListItem/ListItemWithIcon.js +4 -5
- package/es/v1/ListItem/ListItemWithRadio.js +4 -5
- package/es/v1/Modal/Modal.js +4 -5
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -10
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -6
- package/es/v1/MultiSelect/SelectedOptions.js +6 -8
- package/es/v1/MultiSelect/Suggestions.js +6 -8
- package/es/v1/MultiSelect/props/defaultProps.js +1 -1
- package/es/v1/Popup/Popup.js +3 -4
- package/es/v1/Radio/Radio.js +21 -6
- package/es/v1/Radio/props/defaultProps.js +1 -0
- package/es/v1/Radio/props/propTypes.js +7 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +3 -5
- package/es/v1/Select/GroupSelect.js +1 -1
- package/es/v1/Select/Select.js +5 -6
- package/es/v1/Select/SelectWithAvatar.js +5 -7
- package/es/v1/Select/SelectWithIcon.js +1 -1
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Select/props/propTypes.js +1 -3
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +4 -5
- package/es/v1/Tab/TabContentWrapper.js +4 -5
- package/es/v1/Tab/TabWrapper.js +2 -4
- package/es/v1/Tab/Tabs.js +18 -18
- package/es/v1/Tab/v1Tab.module.css +39 -28
- package/es/v1/Tab/v1Tabs.module.css +29 -51
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/v1/Textarea/Textarea.js +4 -6
- package/es/v1/Tooltip/Tooltip.js +1 -1
- package/es/v1/Typography/css/Typography.module.css +33 -39
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +22 -52
- package/lib/AvatarTeam/AvatarTeam.module.css +74 -66
- package/lib/Button/css/Button.module.css +100 -162
- package/lib/Buttongroup/Buttongroup.module.css +17 -52
- package/lib/CheckBox/CheckBox.js +34 -24
- package/lib/CheckBox/CheckBox.module.css +60 -37
- package/lib/CheckBox/props/propTypes.js +1 -0
- package/lib/DateTime/DateTime.module.css +57 -86
- package/lib/DateTime/DateWidget.module.css +7 -11
- package/lib/DateTime/YearView.module.css +21 -34
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
- package/lib/DropBox/css/DropBox.module.css +6 -24
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +13 -19
- package/lib/DropDown/DropDownItem.module.css +22 -43
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +23 -12
- package/lib/Label/LabelColors.module.css +7 -1
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +87 -90
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
- package/lib/MultiSelect/MultiSelect.module.css +69 -55
- package/lib/MultiSelect/SelectedOptions.module.css +5 -11
- package/lib/PopOver/PopOver.module.css +4 -4
- package/lib/Radio/Radio.js +45 -26
- package/lib/Radio/Radio.module.css +40 -23
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/lib/Radio/props/defaultProps.js +1 -0
- package/lib/Radio/props/propTypes.js +7 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +64 -147
- package/lib/RippleEffect/RippleEffect.module.css +27 -9
- package/lib/Select/Select.module.css +22 -33
- package/lib/Stencils/Stencils.module.css +14 -32
- package/lib/Switch/Switch.module.css +35 -32
- package/lib/Tab/Tab.module.css +39 -28
- package/lib/Tab/Tabs.module.css +29 -51
- package/lib/Tag/Tag.module.css +91 -66
- package/lib/TextBox/TextBox.module.css +20 -36
- package/lib/TextBoxIcon/TextBoxIcon.module.css +6 -18
- package/lib/Textarea/Textarea.module.css +60 -36
- package/lib/Tooltip/Tooltip.module.css +13 -12
- package/lib/common/animation.module.css +29 -227
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +15 -5
- package/lib/common/common.module.css +36 -82
- package/lib/common/customscroll.module.css +32 -29
- package/lib/common/transition.module.css +10 -50
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/Animation/Animation.js +1 -1
- package/lib/v1/Card/Card.js +1 -1
- package/lib/v1/CheckBox/CheckBox.js +7 -1
- package/lib/v1/CheckBox/props/propTypes.js +1 -0
- package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/lib/v1/ListItem/ListContainer.js +1 -1
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/props/defaultProps.js +1 -1
- package/lib/v1/Radio/Radio.js +22 -7
- package/lib/v1/Radio/props/defaultProps.js +1 -0
- package/lib/v1/Radio/props/propTypes.js +7 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/lib/v1/Select/GroupSelect.js +1 -1
- package/lib/v1/Select/Select.js +1 -1
- package/lib/v1/Select/SelectWithAvatar.js +4 -6
- package/lib/v1/Select/SelectWithIcon.js +1 -1
- package/lib/v1/Select/props/defaultProps.js +1 -1
- package/lib/v1/Select/props/propTypes.js +1 -3
- package/lib/v1/Tab/Tabs.js +2 -2
- package/lib/v1/Tab/v1Tab.module.css +39 -28
- package/lib/v1/Tab/v1Tabs.module.css +29 -51
- package/lib/v1/Tooltip/Tooltip.js +1 -1
- package/lib/v1/Typography/css/Typography.module.css +33 -39
- package/package.json +10 -10
- package/es/v1/Provider/AvatarSize.js +0 -13
- package/es/v1/Provider/Config.js +0 -18
- package/es/v1/Provider/CssProvider.js +0 -16
- package/es/v1/Provider/IdProvider.js +0 -66
- package/es/v1/Provider/LibraryContext.js +0 -37
- package/es/v1/Provider/LibraryContextInit.js +0 -3
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
- package/es/v1/Provider/ZindexProvider.js +0 -57
- package/es/v1/Provider/index.js +0 -4
- package/es/v1/Responsive/CustomResponsive.js +0 -195
- package/es/v1/Responsive/RefWrapper.js +0 -39
- package/es/v1/Responsive/ResizeComponent.js +0 -197
- package/es/v1/Responsive/ResizeObserver.js +0 -140
- package/es/v1/Responsive/Responsive.js +0 -194
- package/es/v1/Responsive/index.js +0 -9
- package/es/v1/Responsive/props/defaultProps.js +0 -13
- package/es/v1/Responsive/props/propTypes.js +0 -25
- package/lib/v1/Provider/AvatarSize.js +0 -24
- package/lib/v1/Provider/Config.js +0 -27
- package/lib/v1/Provider/CssProvider.js +0 -27
- package/lib/v1/Provider/IdProvider.js +0 -79
- package/lib/v1/Provider/LibraryContext.js +0 -76
- package/lib/v1/Provider/LibraryContextInit.js +0 -15
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
- package/lib/v1/Provider/ZindexProvider.js +0 -69
- package/lib/v1/Provider/index.js +0 -81
- package/lib/v1/Responsive/CustomResponsive.js +0 -242
- package/lib/v1/Responsive/RefWrapper.js +0 -57
- package/lib/v1/Responsive/ResizeComponent.js +0 -268
- package/lib/v1/Responsive/ResizeObserver.js +0 -168
- package/lib/v1/Responsive/Responsive.js +0 -274
- package/lib/v1/Responsive/index.js +0 -55
- package/lib/v1/Responsive/props/defaultProps.js +0 -23
- package/lib/v1/Responsive/props/propTypes.js +0 -39
- package/result.json +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* listitem default variables */
|
|
3
|
-
--listitem_text_color: var(--
|
|
4
|
-
--listitem_padding:
|
|
3
|
+
--listitem_text_color: var(--zdt_base_color);
|
|
4
|
+
--listitem_padding: 9px 20px;
|
|
5
5
|
--listitem_border_width: 0;
|
|
6
6
|
--listitem_border_color: var(--zdt_listitem_default_border);
|
|
7
|
+
--listitem_avatar_margin: 0 15px 0 0
|
|
8
|
+
/*rtl: 0 0 0 15px*/
|
|
9
|
+
;
|
|
7
10
|
--listitem_bg_color: var(--zdt_listitem_default_bg);
|
|
8
11
|
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
9
12
|
--listitem_height: auto;
|
|
@@ -14,89 +17,84 @@
|
|
|
14
17
|
|
|
15
18
|
/* listitem tick icon default variables */
|
|
16
19
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
17
|
-
}[dir=ltr] .varClass {
|
|
18
|
-
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
19
|
-
}[dir=rtl] .varClass {
|
|
20
|
-
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
21
20
|
}
|
|
21
|
+
|
|
22
22
|
.list {
|
|
23
23
|
composes: varClass;
|
|
24
24
|
position: relative;
|
|
25
25
|
list-style: none;
|
|
26
|
-
/* css:theme-validation:ignore */
|
|
27
26
|
color: var(--listitem_text_color);
|
|
28
|
-
font-size:
|
|
29
|
-
/* css:theme-validation:ignore */
|
|
30
|
-
height: var(--listitem_height);
|
|
31
|
-
min-height: var(--listitem_min_height);
|
|
32
|
-
text-decoration: none;
|
|
27
|
+
font-size: 13px;
|
|
33
28
|
padding: var(--listitem_padding);
|
|
34
29
|
border-width: var(--listitem_border_width);
|
|
35
30
|
border-style: solid;
|
|
36
31
|
border-color: var(--listitem_border_color);
|
|
32
|
+
height: var(--listitem_height);
|
|
33
|
+
min-height: var(--listitem_min_height);
|
|
37
34
|
cursor: pointer;
|
|
35
|
+
text-decoration: none;
|
|
38
36
|
}
|
|
37
|
+
|
|
39
38
|
.list,
|
|
40
39
|
.default,
|
|
41
40
|
.secondary {
|
|
42
|
-
/* css:theme-validation:ignore */
|
|
43
|
-
}
|
|
44
|
-
.list, .default, .secondary {
|
|
45
41
|
background-color: var(--listitem_bg_color);
|
|
46
42
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
|
|
44
|
+
.withBorder {
|
|
45
|
+
--listitem_border_width: 0 0 0 1px
|
|
46
|
+
/*rtl: 0 1px 0 0*/
|
|
47
|
+
;
|
|
52
48
|
}
|
|
49
|
+
|
|
53
50
|
.active {
|
|
54
51
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
55
52
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
|
|
54
|
+
.small {
|
|
55
|
+
--listitem_padding: 7px 3px 7px 5px
|
|
56
|
+
/*rtl: 7px 5px 7px 3px*/
|
|
57
|
+
;
|
|
61
58
|
}
|
|
59
|
+
|
|
62
60
|
.medium {
|
|
63
|
-
--listitem_padding:
|
|
64
|
-
--listitem_min_height:
|
|
61
|
+
--listitem_padding: 7px 20px;
|
|
62
|
+
--listitem_min_height: 35px;
|
|
65
63
|
}
|
|
64
|
+
|
|
66
65
|
.large {
|
|
67
|
-
--
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
--
|
|
71
|
-
}
|
|
72
|
-
[dir=rtl] .large {
|
|
73
|
-
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
|
|
66
|
+
--listitem_padding: 10px 3px 10px 25px
|
|
67
|
+
/*rtl: 10px 25px 10px 3px*/
|
|
68
|
+
;
|
|
69
|
+
--listitem_height: 48px;
|
|
74
70
|
}
|
|
71
|
+
|
|
75
72
|
.value,
|
|
76
73
|
.children {
|
|
77
74
|
composes: dotted from '../common/common.module.css';
|
|
78
75
|
}
|
|
79
|
-
|
|
76
|
+
|
|
77
|
+
.value,
|
|
78
|
+
.multiLineValue {
|
|
80
79
|
line-height: 1.5385;
|
|
81
80
|
}
|
|
82
|
-
|
|
81
|
+
|
|
82
|
+
.multiLineValue {
|
|
83
83
|
word-break: break-word;
|
|
84
84
|
composes: clamp from '../common/common.module.css'
|
|
85
85
|
}
|
|
86
|
+
|
|
86
87
|
.iconBox {
|
|
87
|
-
width:
|
|
88
|
+
width: 20px;
|
|
89
|
+
margin-right: 10px;
|
|
88
90
|
text-align: center;
|
|
89
91
|
}
|
|
90
|
-
|
|
91
|
-
margin-right: var(--zd_size10) ;
|
|
92
|
-
}
|
|
93
|
-
[dir=rtl] .iconBox {
|
|
94
|
-
margin-left: var(--zd_size10) ;
|
|
95
|
-
}
|
|
92
|
+
|
|
96
93
|
.iconBox,
|
|
97
94
|
.leftAvatar {
|
|
98
|
-
font-size: 0
|
|
95
|
+
font-size: 0;
|
|
99
96
|
}
|
|
97
|
+
|
|
100
98
|
.leftAvatar {
|
|
101
99
|
margin: var(--listitem_avatar_margin);
|
|
102
100
|
}
|
|
@@ -105,73 +103,76 @@
|
|
|
105
103
|
.primaryHover,
|
|
106
104
|
.secondaryHover,
|
|
107
105
|
.darkHover {
|
|
108
|
-
/* css:theme-validation:ignore */
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
112
106
|
background-color: var(--listitem_highlight_bg_color);
|
|
113
107
|
}
|
|
108
|
+
|
|
114
109
|
.activewithBorder {
|
|
110
|
+
--listitem_border_width: 0 0 0 1px
|
|
111
|
+
/*rtl: 0 1px 0 0*/
|
|
112
|
+
;
|
|
115
113
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
116
114
|
}
|
|
117
|
-
[dir=ltr] .activewithBorder {
|
|
118
|
-
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
119
|
-
}
|
|
120
|
-
[dir=rtl] .activewithBorder {
|
|
121
|
-
--listitem_border_width: 0 1px 0 0;
|
|
122
|
-
}
|
|
123
115
|
|
|
124
116
|
.defaultHover,
|
|
125
117
|
.defaultEffect:hover
|
|
118
|
+
|
|
126
119
|
/* .defaultEffect:focus */
|
|
127
|
-
{
|
|
120
|
+
{
|
|
128
121
|
--listitem_bg_color: var(--zdt_listitem_highlight_bg);
|
|
129
122
|
}
|
|
123
|
+
|
|
130
124
|
.primaryHover,
|
|
131
125
|
.primaryEffect:hover
|
|
126
|
+
|
|
132
127
|
/* .primaryEffect:focus */
|
|
133
|
-
|
|
128
|
+
{
|
|
134
129
|
--listitem_bg_color: var(--zdt_listitem_primary_bg);
|
|
135
130
|
--listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
|
|
136
131
|
}
|
|
132
|
+
|
|
137
133
|
.secondaryHover,
|
|
138
134
|
.secondaryEffect:hover
|
|
135
|
+
|
|
139
136
|
/* .secondaryEffect:focus */
|
|
140
|
-
{
|
|
137
|
+
{
|
|
141
138
|
--listitem_bg_color: var(--zdt_listitem_secondary_bg);
|
|
142
139
|
--listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
|
|
143
140
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
144
141
|
}
|
|
142
|
+
|
|
145
143
|
.darkHover,
|
|
146
144
|
.darkEffect:hover
|
|
145
|
+
|
|
147
146
|
/* .darkEffect:focus */
|
|
148
|
-
|
|
147
|
+
{
|
|
149
148
|
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
150
149
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
151
150
|
}
|
|
151
|
+
|
|
152
152
|
.activedefault,
|
|
153
153
|
.activeprimary,
|
|
154
154
|
.activesecondary,
|
|
155
155
|
.activedark {
|
|
156
|
-
/* css:theme-validation:ignore */
|
|
157
|
-
}
|
|
158
|
-
.activedefault, .activeprimary, .activesecondary, .activedark {
|
|
159
156
|
background-color: var(--listitem_active_bg_color);
|
|
160
157
|
}
|
|
158
|
+
|
|
161
159
|
.activedefault,
|
|
162
160
|
.activedefault:hover,
|
|
163
161
|
.activeprimary,
|
|
164
162
|
.activeprimary:hover {
|
|
165
163
|
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
166
164
|
}
|
|
165
|
+
|
|
167
166
|
.activesecondary {
|
|
168
167
|
--listitem_active_bg_color: var(--zdt_listitem_secondary_bg);
|
|
169
168
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
170
169
|
}
|
|
170
|
+
|
|
171
171
|
.dark {
|
|
172
172
|
--listitem_bg_color: var(--zdt_listitem_dark_bg);
|
|
173
173
|
--listitem_text_color: var(--zdt_listitem_dark_text);
|
|
174
174
|
}
|
|
175
|
+
|
|
175
176
|
.activedark {
|
|
176
177
|
--listitem_active_bg_color: var(--zdt_listitem_dark_active_bg);
|
|
177
178
|
}
|
|
@@ -180,47 +181,43 @@
|
|
|
180
181
|
.defaultTick,
|
|
181
182
|
.darkTick {
|
|
182
183
|
position: absolute;
|
|
183
|
-
/* css:theme-validation:ignore */
|
|
184
184
|
color: var(--listitem_tickicon_color);
|
|
185
|
+
right: 20px;
|
|
185
186
|
}
|
|
186
187
|
|
|
187
|
-
[dir=ltr] .tickIcon, [dir=ltr] .defaultTick, [dir=ltr] .darkTick {
|
|
188
|
-
right: var(--zd_size20) ;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
[dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
|
|
192
|
-
left: var(--zd_size20) ;
|
|
193
|
-
}
|
|
194
188
|
.defaultTick {
|
|
195
189
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
196
190
|
}
|
|
191
|
+
|
|
197
192
|
.darkTick {
|
|
198
193
|
--listitem_tickicon_color: var(--zdt_listitem_dark_tickicon);
|
|
199
194
|
}
|
|
200
|
-
|
|
195
|
+
|
|
196
|
+
.defaultTick>i {
|
|
201
197
|
display: block;
|
|
202
198
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
[dir=ltr] .mediumwithTick {
|
|
210
|
-
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
211
|
-
}
|
|
212
|
-
[dir=rtl] .mediumwithTick {
|
|
213
|
-
--listitem_padding: var(--zd_size7) var(--zd_size20) var(--zd_size7) var(--zd_size39);
|
|
199
|
+
|
|
200
|
+
.smallwithTick {
|
|
201
|
+
--listitem_padding: 7px 39px 7px 5px
|
|
202
|
+
/*rtl: 7px 5px 7px 39px*/
|
|
203
|
+
;
|
|
214
204
|
}
|
|
215
|
-
|
|
216
|
-
|
|
205
|
+
|
|
206
|
+
.mediumwithTick {
|
|
207
|
+
--listitem_padding: 7px 39px 7px 20px
|
|
208
|
+
/*rtl: 7px 20px 7px 39px*/
|
|
209
|
+
;
|
|
217
210
|
}
|
|
218
|
-
|
|
219
|
-
|
|
211
|
+
|
|
212
|
+
.largewithTick {
|
|
213
|
+
--listitem_padding: 10px 39px 10px 25px
|
|
214
|
+
/*rtl: 10px 25px 10px 39px*/
|
|
215
|
+
;
|
|
220
216
|
}
|
|
217
|
+
|
|
221
218
|
.responsiveHeight {
|
|
222
|
-
--listitem_min_height:
|
|
223
|
-
|
|
224
|
-
padding-
|
|
225
|
-
|
|
226
|
-
}
|
|
219
|
+
--listitem_min_height: 45px;
|
|
220
|
+
padding-top: 10px;
|
|
221
|
+
padding-bottom: 10px;
|
|
222
|
+
font-size: 15px;
|
|
223
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { Box } from '../Layout';
|
|
@@ -97,7 +95,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
97
95
|
} = listA11y;
|
|
98
96
|
let isDarkPalette = palette === 'dark';
|
|
99
97
|
let dataIdString = value ? value : dataId;
|
|
100
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
98
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
101
99
|
a11y: listA11y,
|
|
102
100
|
size: size,
|
|
103
101
|
palette: palette,
|
|
@@ -115,8 +113,9 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
115
113
|
eleRef: this.getRef,
|
|
116
114
|
disableTitle: disableTitle,
|
|
117
115
|
title: null,
|
|
118
|
-
customProps: ListItemProps
|
|
119
|
-
|
|
116
|
+
customProps: ListItemProps,
|
|
117
|
+
...ContainerProps
|
|
118
|
+
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
120
119
|
className: style.leftAvatar
|
|
121
120
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
122
121
|
name: name,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import ListContainer from './ListContainer';
|
|
5
3
|
import { ListItemWithCheckBoxDefaultProps } from './props/defaultProps';
|
|
@@ -76,7 +74,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
76
74
|
customCheckBox = '',
|
|
77
75
|
customLabel = ''
|
|
78
76
|
} = customClass;
|
|
79
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
77
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
80
78
|
a11y: listA11y,
|
|
81
79
|
size: size,
|
|
82
80
|
palette: palette,
|
|
@@ -92,8 +90,9 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
92
90
|
eleRef: this.getRef,
|
|
93
91
|
disableTitle: disableTitle,
|
|
94
92
|
title: null,
|
|
95
|
-
customProps: ListItemProps
|
|
96
|
-
|
|
93
|
+
customProps: ListItemProps,
|
|
94
|
+
...ContainerProps
|
|
95
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
97
96
|
className: style.iconBox
|
|
98
97
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
99
98
|
checked: checked,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { Box } from '../Layout';
|
|
@@ -87,7 +85,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
87
85
|
ariaHidden
|
|
88
86
|
} = listA11y;
|
|
89
87
|
let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
|
|
90
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
88
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
91
89
|
a11y: listA11y,
|
|
92
90
|
size: size,
|
|
93
91
|
palette: palette,
|
|
@@ -108,8 +106,9 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
108
106
|
eleRef: this.getRef,
|
|
109
107
|
disableTitle: disableTitle,
|
|
110
108
|
title: null,
|
|
111
|
-
customProps: ListItemProps
|
|
112
|
-
|
|
109
|
+
customProps: ListItemProps,
|
|
110
|
+
...ContainerProps
|
|
111
|
+
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
113
112
|
"aria-hidden": true,
|
|
114
113
|
className: style.iconBox,
|
|
115
114
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import Radio from '../Radio/Radio';
|
|
5
3
|
import { Box } from '../Layout';
|
|
@@ -77,7 +75,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
77
75
|
customRadio = '',
|
|
78
76
|
customRadioWrap = ''
|
|
79
77
|
} = customClass;
|
|
80
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
78
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
81
79
|
a11y: listA11y,
|
|
82
80
|
size: size,
|
|
83
81
|
palette: palette,
|
|
@@ -93,8 +91,9 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
93
91
|
eleRef: this.getRef,
|
|
94
92
|
disableTitle: disableTitle,
|
|
95
93
|
title: null,
|
|
96
|
-
customProps: ListItemProps
|
|
97
|
-
|
|
94
|
+
customProps: ListItemProps,
|
|
95
|
+
...ContainerProps
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
98
97
|
className: style.iconBox
|
|
99
98
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
100
99
|
checked: checked,
|
package/es/Modal/Modal.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import ReactDOM from 'react-dom';
|
|
@@ -131,9 +129,10 @@ export default class Modal extends React.Component {
|
|
|
131
129
|
|
|
132
130
|
if (isMounted) {
|
|
133
131
|
if (Element) {
|
|
134
|
-
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element,
|
|
135
|
-
ref: this.setRef
|
|
136
|
-
|
|
132
|
+
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, {
|
|
133
|
+
ref: this.setRef,
|
|
134
|
+
...elementProps
|
|
135
|
+
}), this.portalDiv);
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
return null;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { AdvancedMultiSelect_propTypes } from './props/propTypes';
|
|
@@ -488,7 +486,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
488
486
|
let {
|
|
489
487
|
tabletMode
|
|
490
488
|
} = _ref2;
|
|
491
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox,
|
|
489
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
492
490
|
animationStyle: animationStyle,
|
|
493
491
|
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
494
492
|
getRef: getContainerRef,
|
|
@@ -502,11 +500,11 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
502
500
|
a11y: {
|
|
503
501
|
role: 'listbox',
|
|
504
502
|
ariaMultiselectable: true
|
|
505
|
-
}
|
|
506
|
-
|
|
503
|
+
},
|
|
504
|
+
...DropBoxProps,
|
|
507
505
|
alignBox: "row",
|
|
508
506
|
isResponsivePadding: getFooter ? false : true
|
|
509
|
-
}
|
|
507
|
+
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
510
508
|
align: "both",
|
|
511
509
|
className: style.loader
|
|
512
510
|
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(Box, {
|
|
@@ -523,7 +521,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
523
521
|
shrink: true,
|
|
524
522
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
525
523
|
eleRef: this.suggestionContainerRef
|
|
526
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
524
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
527
525
|
suggestions: suggestions,
|
|
528
526
|
selectedOptions: allselectedOptionIds,
|
|
529
527
|
getRef: this.suggestionItemRef,
|
|
@@ -534,8 +532,9 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
534
532
|
listItemSize: listItemSize,
|
|
535
533
|
a11y: {
|
|
536
534
|
role: 'option'
|
|
537
|
-
}
|
|
538
|
-
|
|
535
|
+
},
|
|
536
|
+
...SuggestionsProps
|
|
537
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
539
538
|
isLoading: isFetchingOptions,
|
|
540
539
|
options: options,
|
|
541
540
|
searchString: searchStr,
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
.container{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
.container {
|
|
2
|
+
padding: 0 20px 12px 20px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.header {
|
|
6
|
+
padding-bottom: 4px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cardHeading {
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
color: var(--zdt_multiselect_res_title_text);
|
|
12
|
+
composes: bold dotted from '../../common/common.module.css'
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.buttonText {
|
|
16
|
+
font-size: 15px;
|
|
17
|
+
padding: 0;
|
|
18
|
+
composes: dotted from '../../common/common.module.css'
|
|
19
|
+
}
|