@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,110 +1,122 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
.disabled,
|
|
6
|
+
.readOnly {
|
|
5
7
|
cursor: not-allowed;
|
|
6
8
|
}
|
|
9
|
+
|
|
7
10
|
.container {
|
|
8
|
-
max-height:
|
|
11
|
+
max-height: 120px;
|
|
9
12
|
composes: oflowy from '../common/common.module.css';
|
|
10
13
|
}
|
|
14
|
+
|
|
11
15
|
.hasBorder {
|
|
12
|
-
transition: border var(--zd_transition2) linear 0s;
|
|
13
16
|
border-bottom-style: solid;
|
|
14
17
|
border-bottom-width: 1px;
|
|
18
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
15
19
|
}
|
|
20
|
+
|
|
16
21
|
.borderColor_transparent {
|
|
17
22
|
border-bottom-color: var(--zdt_multiselect_transparent_border);
|
|
18
23
|
}
|
|
24
|
+
|
|
19
25
|
.effect .borderColor_transparent:hover {
|
|
20
26
|
border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
|
|
21
27
|
}
|
|
28
|
+
|
|
22
29
|
.effect .borderColor_transparent.active {
|
|
23
30
|
border-bottom-color: var(--zdt_multiselect_transparent_active_border);
|
|
24
31
|
}
|
|
32
|
+
|
|
25
33
|
.borderColor_default {
|
|
26
34
|
border-bottom-color: var(--zdt_multiselect_default_border);
|
|
27
35
|
}
|
|
36
|
+
|
|
28
37
|
.effect .borderColor_default:hover {
|
|
29
38
|
border-bottom-color: var(--zdt_multiselect_default_hover_border);
|
|
30
39
|
}
|
|
40
|
+
|
|
31
41
|
.effect .borderColor_default.active {
|
|
32
42
|
border-bottom-color: var(--zdt_multiselect_default_active_border);
|
|
33
43
|
}
|
|
44
|
+
|
|
34
45
|
.borderColor_dark {
|
|
35
46
|
border-bottom-color: var(--zdt_multiselect_dark_border);
|
|
36
47
|
}
|
|
48
|
+
|
|
37
49
|
.effect .borderColor_dark:hover {
|
|
38
50
|
border-bottom-color: var(--zdt_multiselect_dark_hover_border);
|
|
39
51
|
}
|
|
52
|
+
|
|
40
53
|
.effect .borderColor_dark.active {
|
|
41
54
|
border-bottom-color: var(--zdt_multiselect_dark_active_border);
|
|
42
55
|
}
|
|
43
56
|
|
|
44
57
|
.container.medium {
|
|
45
|
-
padding-bottom:
|
|
58
|
+
padding-bottom: 8px;
|
|
46
59
|
}
|
|
47
60
|
|
|
48
61
|
.container.xmedium {
|
|
49
|
-
|
|
50
|
-
|
|
62
|
+
padding-bottom: 3px;
|
|
63
|
+
min-height: 30px;
|
|
51
64
|
}
|
|
52
65
|
|
|
53
66
|
.delete {
|
|
54
|
-
|
|
55
|
-
padding: var(--zd_size2) var(--zd_size6) ;
|
|
67
|
+
padding: 2px 6px;
|
|
56
68
|
cursor: pointer;
|
|
57
69
|
border: 0;
|
|
58
70
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
71
|
+
font: inherit;
|
|
59
72
|
}
|
|
73
|
+
|
|
60
74
|
.delete,
|
|
61
75
|
.defaultDelete {
|
|
62
76
|
color: var(--zdt_multiselect_delete_text);
|
|
63
77
|
}
|
|
78
|
+
|
|
64
79
|
.darkDelete {
|
|
65
80
|
color: var(--zdt_multiselect_darkdelete_text);
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
.delete:hover,
|
|
69
84
|
.defaultDelete:hover {
|
|
70
|
-
color: var(--
|
|
85
|
+
color: var(--zdt_base_color);
|
|
71
86
|
}
|
|
87
|
+
|
|
72
88
|
.darkDelete:hover {
|
|
73
89
|
color: var(--zdt_multiselect_darkdelete_hover_text);
|
|
74
90
|
}
|
|
91
|
+
|
|
75
92
|
.transparentContainer .delete {
|
|
76
93
|
opacity: 0;
|
|
77
94
|
visibility: hidden;
|
|
78
95
|
}
|
|
96
|
+
|
|
79
97
|
.transparentContainer:hover .delete {
|
|
80
98
|
opacity: 1;
|
|
81
99
|
visibility: visible;
|
|
82
100
|
}
|
|
83
101
|
|
|
84
102
|
.tag {
|
|
85
|
-
max-width: 100
|
|
103
|
+
max-width: 100%;
|
|
86
104
|
}
|
|
87
105
|
|
|
88
|
-
|
|
89
|
-
margin:
|
|
106
|
+
.container.xmedium .tag {
|
|
107
|
+
margin: 2px 10px 0 0;
|
|
90
108
|
}
|
|
91
109
|
|
|
92
|
-
|
|
93
|
-
margin:
|
|
110
|
+
.container.medium .tag {
|
|
111
|
+
margin: 5px 10px 0 0;
|
|
94
112
|
}
|
|
95
113
|
|
|
96
|
-
|
|
97
|
-
|
|
114
|
+
.responsiveParent {
|
|
115
|
+
width: 100%;
|
|
98
116
|
}
|
|
99
117
|
|
|
100
|
-
[dir=rtl] .container.medium .tag {
|
|
101
|
-
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
102
|
-
}
|
|
103
|
-
.responsiveParent{
|
|
104
|
-
width: 100% ;
|
|
105
|
-
}
|
|
106
118
|
.box {
|
|
107
|
-
background: var(--
|
|
119
|
+
background: var(--zdt_base_bg);
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
.selectAll:hover {
|
|
@@ -112,41 +124,43 @@
|
|
|
112
124
|
}
|
|
113
125
|
|
|
114
126
|
.small {
|
|
115
|
-
max-height:
|
|
127
|
+
max-height: 200px;
|
|
116
128
|
}
|
|
117
129
|
|
|
118
130
|
.medium {
|
|
119
|
-
max-height:
|
|
131
|
+
max-height: 350px;
|
|
120
132
|
}
|
|
121
133
|
|
|
122
134
|
.large {
|
|
123
|
-
max-height:
|
|
135
|
+
max-height: 400px;
|
|
124
136
|
}
|
|
125
137
|
|
|
126
138
|
.commonMessage {
|
|
127
|
-
font-size:
|
|
139
|
+
font-size: 14px;
|
|
128
140
|
composes: semibold from '../common/common.module.css';
|
|
129
|
-
padding:
|
|
141
|
+
padding: 12px 15px;
|
|
130
142
|
}
|
|
143
|
+
|
|
131
144
|
.default,
|
|
132
145
|
.dark {
|
|
133
146
|
composes: commonMessage;
|
|
134
147
|
}
|
|
148
|
+
|
|
135
149
|
.default,
|
|
136
150
|
.defaultBox {
|
|
137
151
|
color: var(--zdt_multiselect_message_text);
|
|
138
152
|
}
|
|
153
|
+
|
|
139
154
|
.dark,
|
|
140
155
|
.darkBox {
|
|
141
|
-
color: var(--zdt_multiselect_darkmsg_text);
|
|
142
|
-
}
|
|
143
|
-
.dark, .darkBox {
|
|
144
156
|
background: var(--zdt_multiselect_darkmsg_bg);
|
|
157
|
+
color: var(--zdt_multiselect_darkmsg_text);
|
|
145
158
|
}
|
|
146
159
|
|
|
147
160
|
.hide {
|
|
148
161
|
composes: vishidden from '../common/common.module.css';
|
|
149
162
|
}
|
|
163
|
+
|
|
150
164
|
.custmSpan {
|
|
151
165
|
display: inline-block;
|
|
152
166
|
vertical-align: middle;
|
|
@@ -154,51 +168,51 @@
|
|
|
154
168
|
overflow: hidden;
|
|
155
169
|
text-overflow: ellipsis;
|
|
156
170
|
white-space: nowrap;
|
|
157
|
-
max-width: 100
|
|
171
|
+
max-width: 100%;
|
|
158
172
|
visibility: hidden;
|
|
159
173
|
}
|
|
174
|
+
|
|
160
175
|
.custmSpanMedium {
|
|
161
|
-
height:
|
|
176
|
+
height: 35px;
|
|
162
177
|
}
|
|
178
|
+
|
|
163
179
|
.custmSpanXmedium {
|
|
164
|
-
height:
|
|
180
|
+
height: 28px;
|
|
165
181
|
}
|
|
182
|
+
|
|
166
183
|
.custmInputWrapper {
|
|
167
184
|
position: absolute;
|
|
168
|
-
top: 0
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
[dir=ltr] .custmInputWrapper {
|
|
172
|
-
left: 0 ;
|
|
173
|
-
}
|
|
174
|
-
[dir=rtl] .custmInputWrapper {
|
|
175
|
-
right: 0 ;
|
|
185
|
+
top: 0;
|
|
186
|
+
left: 0;
|
|
187
|
+
width: 100%;
|
|
176
188
|
}
|
|
189
|
+
|
|
177
190
|
.title {
|
|
178
|
-
margin-bottom:
|
|
191
|
+
margin-bottom: 6px;
|
|
179
192
|
}
|
|
193
|
+
|
|
180
194
|
.groupTitle {
|
|
181
|
-
margin:
|
|
195
|
+
margin: 6px 0;
|
|
182
196
|
}
|
|
197
|
+
|
|
183
198
|
.loader {
|
|
184
|
-
padding:
|
|
199
|
+
padding: 10px;
|
|
185
200
|
}
|
|
201
|
+
|
|
186
202
|
.iconContainer {
|
|
187
|
-
padding-top:
|
|
203
|
+
padding-top: 3px
|
|
188
204
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
[dir=rtl] .clearIconSpace {
|
|
193
|
-
padding-left: var(--zd_size37)
|
|
205
|
+
|
|
206
|
+
.clearIconSpace {
|
|
207
|
+
padding-right: 37px
|
|
194
208
|
}
|
|
195
209
|
|
|
196
210
|
.more {
|
|
197
|
-
font-size:
|
|
211
|
+
font-size: 14px;
|
|
198
212
|
color: var(--zdt_multiselect_more_text);
|
|
199
|
-
font-family: inherit;
|
|
200
213
|
cursor: pointer;
|
|
201
|
-
margin-top:
|
|
214
|
+
margin-top: 5px;
|
|
215
|
+
font-family: inherit;
|
|
202
216
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
203
217
|
border: 0;
|
|
204
|
-
}
|
|
218
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
.tag {
|
|
2
|
-
max-width: 100
|
|
2
|
+
max-width: 100%;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
margin: 0
|
|
4
|
+
.xmedium {
|
|
5
|
+
margin: 0 10px 2px 0;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
margin: 0 0
|
|
9
|
-
}
|
|
10
|
-
[dir=ltr] .medium {
|
|
11
|
-
margin: var(--zd_size5) var(--zd_size10) 0 0 ;
|
|
12
|
-
}
|
|
13
|
-
[dir=rtl] .medium {
|
|
14
|
-
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
7
|
+
.medium {
|
|
8
|
+
margin: 5px 10px 0 0;
|
|
15
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.popup {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
4
|
-
background-color: var(--dot_white);
|
|
3
|
+
background-color: var(--zdt_base_bg);
|
|
5
4
|
}
|
|
5
|
+
|
|
6
6
|
.target {
|
|
7
|
-
composes: offSelection from '../common/common.module.css';
|
|
8
7
|
cursor: pointer;
|
|
9
|
-
|
|
8
|
+
composes: offSelection from '../common/common.module.css';
|
|
9
|
+
}
|
package/lib/Radio/Radio.js
CHANGED
|
@@ -21,6 +21,8 @@ var _RadioModule = _interopRequireDefault(require("./Radio.module.css"));
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
+
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); }
|
|
25
|
+
|
|
24
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
27
|
|
|
26
28
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -53,6 +55,7 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
53
55
|
|
|
54
56
|
_this = _super.call(this, props);
|
|
55
57
|
_this.onChange = _this.onChange.bind(_assertThisInitialized(_this));
|
|
58
|
+
_this.handleGetRef = _this.handleGetRef.bind(_assertThisInitialized(_this));
|
|
56
59
|
return _this;
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -64,28 +67,38 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
64
67
|
value = _this$props.value;
|
|
65
68
|
onChange && onChange(value, e);
|
|
66
69
|
}
|
|
70
|
+
}, {
|
|
71
|
+
key: "handleGetRef",
|
|
72
|
+
value: function handleGetRef(ele) {
|
|
73
|
+
var _this$props2 = this.props,
|
|
74
|
+
getRef = _this$props2.getRef,
|
|
75
|
+
value = _this$props2.value;
|
|
76
|
+
getRef && getRef(ele, value);
|
|
77
|
+
}
|
|
67
78
|
}, {
|
|
68
79
|
key: "render",
|
|
69
80
|
value: function render() {
|
|
70
|
-
var _this$
|
|
71
|
-
id = _this$
|
|
72
|
-
name = _this$
|
|
73
|
-
value = _this$
|
|
74
|
-
checked = _this$
|
|
75
|
-
disabled = _this$
|
|
76
|
-
isReadOnly = _this$
|
|
77
|
-
palette = _this$
|
|
78
|
-
disabledTitle = _this$
|
|
79
|
-
title = _this$
|
|
80
|
-
text = _this$
|
|
81
|
-
labelPalette = _this$
|
|
82
|
-
size = _this$
|
|
83
|
-
labelSize = _this$
|
|
84
|
-
variant = _this$
|
|
85
|
-
active = _this$
|
|
86
|
-
isFilled = _this$
|
|
87
|
-
customClass = _this$
|
|
88
|
-
|
|
81
|
+
var _this$props3 = this.props,
|
|
82
|
+
id = _this$props3.id,
|
|
83
|
+
name = _this$props3.name,
|
|
84
|
+
value = _this$props3.value,
|
|
85
|
+
checked = _this$props3.checked,
|
|
86
|
+
disabled = _this$props3.disabled,
|
|
87
|
+
isReadOnly = _this$props3.isReadOnly,
|
|
88
|
+
palette = _this$props3.palette,
|
|
89
|
+
disabledTitle = _this$props3.disabledTitle,
|
|
90
|
+
title = _this$props3.title,
|
|
91
|
+
text = _this$props3.text,
|
|
92
|
+
labelPalette = _this$props3.labelPalette,
|
|
93
|
+
size = _this$props3.size,
|
|
94
|
+
labelSize = _this$props3.labelSize,
|
|
95
|
+
variant = _this$props3.variant,
|
|
96
|
+
active = _this$props3.active,
|
|
97
|
+
isFilled = _this$props3.isFilled,
|
|
98
|
+
customClass = _this$props3.customClass,
|
|
99
|
+
customProps = _this$props3.customProps,
|
|
100
|
+
children = _this$props3.children,
|
|
101
|
+
a11y = _this$props3.a11y;
|
|
89
102
|
var _customClass$customRa = customClass.customRadioWrap,
|
|
90
103
|
customRadioWrap = _customClass$customRa === void 0 ? '' : _customClass$customRa,
|
|
91
104
|
_customClass$customRa2 = customClass.customRadio,
|
|
@@ -97,13 +110,18 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
97
110
|
var ariaHidden = a11y.ariaHidden,
|
|
98
111
|
_a11y$role = a11y.role,
|
|
99
112
|
role = _a11y$role === void 0 ? 'radio' : _a11y$role,
|
|
113
|
+
tabIndex = a11y.tabIndex,
|
|
100
114
|
_a11y$ariaChecked = a11y.ariaChecked,
|
|
101
115
|
ariaChecked = _a11y$ariaChecked === void 0 ? checked : _a11y$ariaChecked,
|
|
102
116
|
ariaLabel = a11y.ariaLabel,
|
|
103
117
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
104
118
|
_a11y$ariaReadonly = a11y.ariaReadonly,
|
|
105
119
|
ariaReadonly = _a11y$ariaReadonly === void 0 ? isReadOnly || disabled ? true : false : _a11y$ariaReadonly;
|
|
106
|
-
|
|
120
|
+
var _customProps$Containe = customProps.ContainerProps,
|
|
121
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
|
|
122
|
+
_customProps$LabelPro = customProps.LabelProps,
|
|
123
|
+
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro;
|
|
124
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
107
125
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
108
126
|
isCover: false,
|
|
109
127
|
isInline: text ? false : true,
|
|
@@ -113,13 +131,14 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
113
131
|
"data-title": toolTip,
|
|
114
132
|
onClick: !isReadOnly && !disabled ? this.onChange : '',
|
|
115
133
|
"aria-checked": ariaChecked,
|
|
116
|
-
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
134
|
+
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : tabIndex || '0',
|
|
135
|
+
eleRef: this.handleGetRef,
|
|
117
136
|
role: role,
|
|
118
137
|
"aria-Hidden": ariaHidden,
|
|
119
138
|
"aria-label": ariaLabel,
|
|
120
139
|
"aria-labelledby": ariaLabelledby,
|
|
121
140
|
"aria-readonly": ariaReadonly
|
|
122
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
141
|
+
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
123
142
|
className: "".concat(_RadioModule["default"].radio, " ").concat(checked ? "".concat(_RadioModule["default"]["rdBox".concat(palette)]) : '', " \n ").concat(isReadOnly || disabled ? '' : "".concat(_RadioModule["default"]["hover".concat(palette)]), " ").concat(_RadioModule["default"][size], " ").concat(isFilled ? _RadioModule["default"].filled : '', " ").concat(_RadioModule["default"]["centerPath".concat(palette)], " ").concat(customRadio)
|
|
124
143
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
125
144
|
type: "hidden",
|
|
@@ -144,17 +163,17 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
144
163
|
}) : null))), text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
145
164
|
flexible: true,
|
|
146
165
|
className: _RadioModule["default"].text
|
|
147
|
-
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], {
|
|
166
|
+
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
148
167
|
text: text,
|
|
149
|
-
palette:
|
|
168
|
+
palette: labelPalette,
|
|
150
169
|
size: labelSize,
|
|
151
170
|
type: "title",
|
|
152
171
|
clipped: true,
|
|
153
172
|
dataId: "".concat(text, "_label"),
|
|
154
173
|
variant: variant,
|
|
155
174
|
title: toolTip ? toolTip : text,
|
|
156
|
-
customClass: "".concat(checked && active
|
|
157
|
-
})));
|
|
175
|
+
customClass: "".concat(checked && active ? "".concat(_RadioModule["default"]["".concat(palette, "checkedActive")]) : '', " \n ").concat(_RadioModule["default"]["".concat(palette, "Label")], " ").concat(accessMode, " ").concat(customLabel)
|
|
176
|
+
}, LabelProps))), children);
|
|
158
177
|
}
|
|
159
178
|
}]);
|
|
160
179
|
|
|
@@ -1,89 +1,104 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* radio default variables */
|
|
3
|
-
--radio_width:
|
|
4
|
-
--radio_height:
|
|
3
|
+
--radio_width: 16px;
|
|
4
|
+
--radio_height: 16px;
|
|
5
5
|
--radio_bg_color: none;
|
|
6
6
|
--radio_stroke_width: 2px;
|
|
7
7
|
--radio_stroke_color: var(--zdt_radio_default_stroke);
|
|
8
8
|
--radio_fill: none;
|
|
9
9
|
--radio_inner_stroke_width: 0;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
--radio_label_margin: 0 var(--zd_size6) 0 0;
|
|
10
|
+
--radio_label_margin: 0 0 0 6px
|
|
11
|
+
/*rtl: 0 6px 0 0*/
|
|
12
|
+
;
|
|
14
13
|
}
|
|
14
|
+
|
|
15
15
|
.container {
|
|
16
16
|
composes: varClass;
|
|
17
17
|
}
|
|
18
|
+
|
|
18
19
|
.pointer {
|
|
19
20
|
cursor: pointer;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
|
|
23
|
+
.readonly,
|
|
24
|
+
.disabled {
|
|
22
25
|
cursor: not-allowed;
|
|
23
26
|
}
|
|
27
|
+
|
|
28
|
+
.disabled {
|
|
29
|
+
opacity: 0.7
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
.radio {
|
|
25
33
|
composes: offSelection from '../common/common.module.css';
|
|
26
34
|
width: var(--radio_width);
|
|
27
35
|
height: var(--radio_height);
|
|
28
|
-
/* css:theme-validation:ignore */
|
|
29
|
-
stroke: var(--radio_stroke_color);
|
|
30
36
|
background: var(--radio_bg_color);
|
|
31
37
|
border-radius: 50%;
|
|
38
|
+
stroke: var(--radio_stroke_color);
|
|
32
39
|
}
|
|
40
|
+
|
|
33
41
|
.radio,
|
|
34
42
|
.centerPath {
|
|
35
43
|
fill: var(--radio_fill);
|
|
36
44
|
}
|
|
45
|
+
|
|
37
46
|
.filled {
|
|
38
|
-
--radio_bg_color: var(--
|
|
47
|
+
--radio_bg_color: var(--zdt_base_bg);
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
.medium {
|
|
42
|
-
--radio_width:
|
|
43
|
-
--radio_height:
|
|
51
|
+
--radio_width: 16px;
|
|
52
|
+
--radio_height: 16px;
|
|
44
53
|
}
|
|
54
|
+
|
|
45
55
|
.small {
|
|
46
|
-
--radio_width:
|
|
47
|
-
--radio_height:
|
|
56
|
+
--radio_width: 13px;
|
|
57
|
+
--radio_height: 13px;
|
|
48
58
|
}
|
|
59
|
+
|
|
49
60
|
.radioLabel {
|
|
50
|
-
font-size: 0
|
|
61
|
+
font-size: 0;
|
|
51
62
|
display: block;
|
|
52
63
|
}
|
|
64
|
+
|
|
53
65
|
.rdBox {
|
|
54
66
|
fill: none;
|
|
55
67
|
stroke-width: var(--radio_stroke_width);
|
|
56
68
|
stroke-linecap: round;
|
|
57
69
|
stroke: inherit;
|
|
58
70
|
}
|
|
71
|
+
|
|
59
72
|
.centerPath {
|
|
60
73
|
--radio_fill: inherit;
|
|
61
|
-
stroke-width: var(--radio_inner_stroke_width);
|
|
62
74
|
transform-origin: center;
|
|
75
|
+
stroke-width: var(--radio_inner_stroke_width);
|
|
63
76
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
[dir=rtl] .checked .centerPath {
|
|
77
|
+
|
|
78
|
+
.checked .centerPath {
|
|
68
79
|
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
69
80
|
}
|
|
81
|
+
|
|
70
82
|
.rdBoxprimary,
|
|
71
83
|
.hoverEfffect:hover .hoverprimary
|
|
84
|
+
|
|
72
85
|
/* .hoverEfffect:focus .hoverprimary */
|
|
73
|
-
{
|
|
86
|
+
{
|
|
74
87
|
--radio_stroke_color: var(--zdt_radio_primary_stroke);
|
|
75
88
|
}
|
|
76
89
|
|
|
77
90
|
.rdBoxdanger,
|
|
78
91
|
.hoverEfffect:hover .hoverdanger
|
|
92
|
+
|
|
79
93
|
/* .hoverEfffect:focus .hoverdanger */
|
|
80
|
-
|
|
94
|
+
{
|
|
81
95
|
--radio_stroke_color: var(--zdt_radio_danger_stroke);
|
|
82
96
|
}
|
|
83
97
|
|
|
84
98
|
.centerPathprimary {
|
|
85
99
|
--radio_fill: var(--zdt_radio_primary_fill);
|
|
86
100
|
}
|
|
101
|
+
|
|
87
102
|
.centerPathdanger {
|
|
88
103
|
--radio_fill: var(--zdt_radio_danger_fill);
|
|
89
104
|
}
|
|
@@ -103,11 +118,13 @@
|
|
|
103
118
|
.text {
|
|
104
119
|
margin: var(--radio_label_margin);
|
|
105
120
|
}
|
|
121
|
+
|
|
106
122
|
@keyframes circleAnimate {
|
|
107
123
|
0% {
|
|
108
124
|
transform: scale(0);
|
|
109
125
|
}
|
|
126
|
+
|
|
110
127
|
100% {
|
|
111
128
|
transform: scale(1);
|
|
112
129
|
}
|
|
113
|
-
}
|
|
130
|
+
}
|
|
@@ -1145,7 +1145,7 @@ exports[`Radio rendering the accessMode when disabled 1`] = `
|
|
|
1145
1145
|
data-test-id="boxComponent"
|
|
1146
1146
|
>
|
|
1147
1147
|
<label
|
|
1148
|
-
class="label title medium
|
|
1148
|
+
class="label title medium default font_default
|
|
1149
1149
|
dotted cursor
|
|
1150
1150
|
primaryLabel disabled "
|
|
1151
1151
|
data-id="RadioText_label"
|
|
@@ -1505,7 +1505,7 @@ exports[`Radio rendering the disabled is true 1`] = `
|
|
|
1505
1505
|
data-test-id="boxComponent"
|
|
1506
1506
|
>
|
|
1507
1507
|
<label
|
|
1508
|
-
class="label title medium
|
|
1508
|
+
class="label title medium default font_default
|
|
1509
1509
|
dotted cursor
|
|
1510
1510
|
undefined disabled "
|
|
1511
1511
|
data-id="RadioText_label"
|
|
@@ -1567,7 +1567,7 @@ exports[`Radio rendering the disabledTitle 1`] = `
|
|
|
1567
1567
|
data-test-id="boxComponent"
|
|
1568
1568
|
>
|
|
1569
1569
|
<label
|
|
1570
|
-
class="label title medium
|
|
1570
|
+
class="label title medium default font_default
|
|
1571
1571
|
dotted cursor
|
|
1572
1572
|
primaryLabel disabled "
|
|
1573
1573
|
data-id="RadioText_label"
|
|
@@ -14,6 +14,7 @@ var propTypes = {
|
|
|
14
14
|
checked: _propTypes["default"].bool,
|
|
15
15
|
disabled: _propTypes["default"].bool,
|
|
16
16
|
disabledTitle: _propTypes["default"].string,
|
|
17
|
+
getRef: _propTypes["default"].func,
|
|
17
18
|
id: _propTypes["default"].string,
|
|
18
19
|
isFilled: _propTypes["default"].bool,
|
|
19
20
|
isReadOnly: _propTypes["default"].bool,
|
|
@@ -30,14 +31,20 @@ var propTypes = {
|
|
|
30
31
|
customRadio: _propTypes["default"].string,
|
|
31
32
|
customLabel: _propTypes["default"].string
|
|
32
33
|
}),
|
|
34
|
+
customProps: _propTypes["default"].exact({
|
|
35
|
+
ContainerProps: _propTypes["default"].object,
|
|
36
|
+
LabelProps: _propTypes["default"].object
|
|
37
|
+
}),
|
|
33
38
|
a11y: _propTypes["default"].shape({
|
|
34
39
|
ariaChecked: _propTypes["default"].bool,
|
|
35
40
|
ariaHidden: _propTypes["default"].bool,
|
|
36
41
|
role: _propTypes["default"].string,
|
|
42
|
+
tabIndex: _propTypes["default"].oneOfType(_propTypes["default"].string, _propTypes["default"].number),
|
|
37
43
|
ariaLabelledby: _propTypes["default"].string,
|
|
38
44
|
ariaLabel: _propTypes["default"].string,
|
|
39
45
|
ariaReadonly: _propTypes["default"].bool
|
|
40
46
|
}),
|
|
47
|
+
children: _propTypes["default"].node,
|
|
41
48
|
onChange: _propTypes["default"].func,
|
|
42
49
|
text: _propTypes["default"].string
|
|
43
50
|
};
|