@zohodesk/components 1.2.20 → 1.2.21
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 +6 -0
- package/es/DateTime/DateTime.module.css +2 -2
- package/es/DateTime/YearView.module.css +1 -1
- package/es/Label/Label.module.css +6 -1
- package/es/ListItem/ListItem.module.css +1 -1
- package/es/Ribbon/Ribbon.module.css +49 -3
- package/es/Select/Select.js +10 -2
- package/es/Select/Select.module.css +27 -1
- package/es/Tab/Tab.module.css +3 -3
- package/es/TextBox/TextBox.js +8 -1
- package/es/TextBox/TextBox.module.css +45 -6
- package/es/TextBox/props/defaultProps.js +1 -0
- package/es/TextBox/props/propTypes.js +1 -0
- package/es/TextBoxIcon/TextBoxIcon.js +2 -0
- package/es/TextBoxIcon/props/defaultProps.js +1 -0
- package/es/TextBoxIcon/props/propTypes.js +1 -0
- package/es/Textarea/Textarea.module.css +4 -3
- package/es/Tooltip/Tooltip.js +4 -2
- package/es/Tooltip/Tooltip.module.css +1 -1
- package/es/v1/Card/Card.js +1 -1
- package/es/v1/CheckBox/CheckBox.js +1 -1
- package/es/v1/Select/Select.js +10 -2
- package/es/v1/Tab/Tab.js +1 -2
- package/es/v1/Tab/TabContent.js +1 -1
- package/es/v1/Tab/Tabs.js +182 -271
- package/es/v1/Tab/v1Tab.module.css +100 -0
- package/es/v1/Tab/v1TabContent.module.css +4 -0
- package/es/v1/Tab/v1Tabs.module.css +137 -0
- package/es/v1/TextBox/TextBox.js +8 -2
- package/es/v1/TextBox/props/defaultProps.js +1 -0
- package/es/v1/TextBox/props/propTypes.js +1 -0
- package/es/v1/TextBoxIcon/TextBoxIcon.js +3 -1
- package/es/v1/TextBoxIcon/props/defaultProps.js +1 -0
- package/es/v1/TextBoxIcon/props/propTypes.js +1 -0
- package/es/v1/Tooltip/Tooltip.js +4 -2
- package/lib/DateTime/DateTime.module.css +2 -2
- package/lib/DateTime/YearView.module.css +1 -1
- package/lib/Label/Label.module.css +6 -1
- package/lib/ListItem/ListItem.module.css +1 -1
- package/lib/Ribbon/Ribbon.module.css +49 -3
- package/lib/Select/Select.js +14 -2
- package/lib/Select/Select.module.css +27 -1
- package/lib/Tab/Tab.module.css +3 -3
- package/lib/TextBox/TextBox.js +9 -1
- package/lib/TextBox/TextBox.module.css +45 -6
- package/lib/TextBox/props/defaultProps.js +1 -0
- package/lib/TextBox/props/propTypes.js +1 -1
- package/lib/TextBoxIcon/TextBoxIcon.js +2 -0
- package/lib/TextBoxIcon/props/defaultProps.js +1 -0
- package/lib/TextBoxIcon/props/propTypes.js +1 -0
- package/lib/Textarea/Textarea.module.css +4 -3
- package/lib/Tooltip/Tooltip.js +4 -2
- package/lib/Tooltip/Tooltip.module.css +1 -1
- package/lib/v1/Card/Card.js +1 -1
- package/lib/v1/CheckBox/CheckBox.js +1 -1
- package/lib/v1/Select/Select.js +14 -2
- package/lib/v1/Tab/Tab.js +6 -6
- package/lib/v1/Tab/TabContent.js +2 -2
- package/lib/v1/Tab/Tabs.js +478 -567
- package/lib/v1/Tab/v1Tab.module.css +100 -0
- package/lib/v1/Tab/v1TabContent.module.css +4 -0
- package/lib/v1/Tab/v1Tabs.module.css +137 -0
- package/lib/v1/TextBox/TextBox.js +10 -2
- package/lib/v1/TextBox/props/defaultProps.js +1 -0
- package/lib/v1/TextBox/props/propTypes.js +1 -1
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +3 -1
- package/lib/v1/TextBoxIcon/props/defaultProps.js +1 -0
- package/lib/v1/TextBoxIcon/props/propTypes.js +1 -0
- package/lib/v1/Tooltip/Tooltip.js +4 -2
- package/package.json +9 -7
- package/result.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.tab {
|
|
2
|
+
text-transform: uppercase;
|
|
3
|
+
letter-spacing: 0.6px;
|
|
4
|
+
text-decoration: none;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
.vertical {
|
|
8
|
+
height: 100% ;
|
|
9
|
+
}
|
|
10
|
+
.horizontal {
|
|
11
|
+
width: 100% ;
|
|
12
|
+
max-width: 100% ;
|
|
13
|
+
}
|
|
14
|
+
.textContainer,
|
|
15
|
+
.tabText {
|
|
16
|
+
max-width: inherit ;
|
|
17
|
+
}
|
|
18
|
+
.tabText {
|
|
19
|
+
composes: dotted from '../../common/common.module.css';
|
|
20
|
+
}
|
|
21
|
+
.disabled {
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
}
|
|
24
|
+
.border {
|
|
25
|
+
border-bottom: 1px solid var(--zdt_tab_default_border);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.alpha,
|
|
29
|
+
.beta,
|
|
30
|
+
.delta {
|
|
31
|
+
transition: all var(--zd_transition2);
|
|
32
|
+
}
|
|
33
|
+
.alpha {
|
|
34
|
+
font-size: var(--zd_font_size11) ;
|
|
35
|
+
line-height: 3;
|
|
36
|
+
padding: 0 var(--zd_size18) ;
|
|
37
|
+
}
|
|
38
|
+
.tabAlpha {
|
|
39
|
+
composes: alpha;
|
|
40
|
+
color: var(--zdt_tab_alpha_text);
|
|
41
|
+
}
|
|
42
|
+
.alphaHover:hover {
|
|
43
|
+
color: var(--zdt_tab_alpha_hover_text);
|
|
44
|
+
background-color: var(--zdt_tab_alpha_hover_bg);
|
|
45
|
+
}
|
|
46
|
+
.alphaActive {
|
|
47
|
+
composes: alpha;
|
|
48
|
+
color: var(--zdt_tab_alpha_active_text);
|
|
49
|
+
}
|
|
50
|
+
.alphaActive_border, .betaActive_border {
|
|
51
|
+
border-color: var(--zdt_tab_alpha_active_border);
|
|
52
|
+
}
|
|
53
|
+
.deltaActive_border {
|
|
54
|
+
border-color: var(--zdt_tab_delta_active_border);
|
|
55
|
+
}
|
|
56
|
+
.beta {
|
|
57
|
+
font-size: var(--zd_font_size14) ;
|
|
58
|
+
line-height: 4.2857;
|
|
59
|
+
text-transform: capitalize;
|
|
60
|
+
padding: 0 var(--zd_size4) ;
|
|
61
|
+
}
|
|
62
|
+
[dir=ltr] .beta {
|
|
63
|
+
margin-right: var(--zd_size40) ;
|
|
64
|
+
}
|
|
65
|
+
[dir=rtl] .beta {
|
|
66
|
+
margin-left: var(--zd_size40) ;
|
|
67
|
+
}
|
|
68
|
+
.tabBeta {
|
|
69
|
+
composes: beta;
|
|
70
|
+
color: var(--zdt_tab_alpha_text);
|
|
71
|
+
}
|
|
72
|
+
.betaHover:hover {
|
|
73
|
+
color: var(--zdt_tab_alpha_hover_text);
|
|
74
|
+
}
|
|
75
|
+
.betaActive {
|
|
76
|
+
composes: beta;
|
|
77
|
+
color: var(--zdt_tab_alpha_hover_text);
|
|
78
|
+
}
|
|
79
|
+
.delta {
|
|
80
|
+
font-size: var(--zd_font_size11) ;
|
|
81
|
+
line-height: 3;
|
|
82
|
+
padding: 0 var(--zd_size4) ;
|
|
83
|
+
}
|
|
84
|
+
[dir=ltr] .delta {
|
|
85
|
+
margin-right: var(--zd_size10) ;
|
|
86
|
+
}
|
|
87
|
+
[dir=rtl] .delta {
|
|
88
|
+
margin-left: var(--zd_size10) ;
|
|
89
|
+
}
|
|
90
|
+
.tabDelta {
|
|
91
|
+
composes: delta;
|
|
92
|
+
color: var(--zdt_tab_alpha_text);
|
|
93
|
+
}
|
|
94
|
+
.deltaHover:hover {
|
|
95
|
+
color: var(--zdt_tab_alpha_active_text);
|
|
96
|
+
}
|
|
97
|
+
.deltaActive {
|
|
98
|
+
composes: delta;
|
|
99
|
+
color: var(--zdt_tab_alpha_active_text);
|
|
100
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.tab {
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 1;
|
|
4
|
+
--tab_position_gap: 22px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.alpha {
|
|
8
|
+
height: var(--zd_size35) ;
|
|
9
|
+
background-color: var(--zdt_tabs_alpha_bg);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[dir=ltr] .alpha_padding {
|
|
13
|
+
padding-left: var(--zd_size15) ;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[dir=rtl] .alpha_padding {
|
|
17
|
+
padding-right: var(--zd_size15) ;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.alpha_border {
|
|
21
|
+
border-width: 0 0 1px 0;
|
|
22
|
+
border-color: var(--zdt_tabs_alpha_border);
|
|
23
|
+
border-style: solid;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.alpha::after {
|
|
27
|
+
content: '';
|
|
28
|
+
position: absolute;
|
|
29
|
+
z-index: -2;
|
|
30
|
+
width: 76% ;
|
|
31
|
+
bottom: 0 ;
|
|
32
|
+
height: var(--zd_size10) ;
|
|
33
|
+
border-radius: 100px / 5px;
|
|
34
|
+
box-shadow: var(--zd_bs_tabs_shadow);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[dir=ltr] .alpha::after {
|
|
38
|
+
left: 12% ;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[dir=rtl] .alpha::after {
|
|
42
|
+
right: 12% ;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.alpha:before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
z-index: -1;
|
|
49
|
+
width: 100% ;
|
|
50
|
+
height: 100% ;
|
|
51
|
+
top: 0 ;
|
|
52
|
+
background: inherit;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[dir=ltr] .alpha:before {
|
|
56
|
+
left: 0 ;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[dir=rtl] .alpha:before {
|
|
60
|
+
right: 0 ;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.beta {
|
|
64
|
+
height: var(--zd_size61) ;
|
|
65
|
+
background-color: var(--zdt_tabs_alpha_bg);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[dir=ltr] .beta_padding {
|
|
69
|
+
padding-left: var(--zd_size13) ;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[dir=rtl] .beta_padding {
|
|
73
|
+
padding-right: var(--zd_size13) ;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.beta_border {
|
|
77
|
+
border-bottom: 1px solid var(--zdt_tabs_alpha_border);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.delta {
|
|
81
|
+
height: var(--zd_size35) ;
|
|
82
|
+
background-color: var(--zdt_tabs_alpha_bg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[dir=ltr] .delta_padding {
|
|
86
|
+
padding-left: var(--zd_size10) ;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[dir=rtl] .delta_padding {
|
|
90
|
+
padding-right: var(--zd_size10) ;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.delta_border {
|
|
94
|
+
border-bottom: 1px dotted var(--zdt_tabs_alpha_border);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.delta .highlight {
|
|
98
|
+
border-color: var(--zdt_tabs_delta_border);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.maxWidth {
|
|
102
|
+
max-width: 100% ;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.highlight {
|
|
106
|
+
position: absolute;
|
|
107
|
+
bottom: 0 ;
|
|
108
|
+
border-bottom: 1px solid var(--zdt_tabs_highlight_border);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.lineAnimate {
|
|
112
|
+
transition: transform var(--zd_transition3) linear;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.menu {
|
|
116
|
+
position: relative;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.menuBox {
|
|
121
|
+
max-height: var(--zd_size220) ;
|
|
122
|
+
}
|
|
123
|
+
.bottomRightToLeft,
|
|
124
|
+
.topRightToLeft,
|
|
125
|
+
.bottomCenterToLeft {
|
|
126
|
+
right: calc(var(--tab_position_gap) * -1);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.bottomLeftToRight,
|
|
130
|
+
.topLeftToRight,
|
|
131
|
+
.bottomCenterToRight {
|
|
132
|
+
left: calc(var(--tab_position_gap) * -1);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.hidden {
|
|
136
|
+
visibility: hidden;
|
|
137
|
+
}
|
package/es/v1/TextBox/TextBox.js
CHANGED
|
@@ -40,7 +40,8 @@ function TextBox(props) {
|
|
|
40
40
|
onFocus,
|
|
41
41
|
onBlur,
|
|
42
42
|
onChange,
|
|
43
|
-
inputRef
|
|
43
|
+
inputRef,
|
|
44
|
+
isScrollPrevent
|
|
44
45
|
} = props;
|
|
45
46
|
let {
|
|
46
47
|
ariaLabel,
|
|
@@ -106,6 +107,10 @@ function TextBox(props) {
|
|
|
106
107
|
onChange && !isReadOnly && onChange(value, e);
|
|
107
108
|
};
|
|
108
109
|
|
|
110
|
+
const handlePreventTextBoxScroll = () => {
|
|
111
|
+
this.inputEle.scrollLeft = 0;
|
|
112
|
+
};
|
|
113
|
+
|
|
109
114
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.border : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect} ${isFocus ? style.focus : ''}` : `${style.basic}`;
|
|
110
115
|
value = value === null || value === undefined ? '' : value;
|
|
111
116
|
return /*#__PURE__*/React.createElement("input", _extends({
|
|
@@ -123,7 +128,7 @@ function TextBox(props) {
|
|
|
123
128
|
"aria-activedescendant": ariaActivedescendant,
|
|
124
129
|
"aria-readonly": ariaReadonly,
|
|
125
130
|
"aria-multiselectable": ariaMultiselectable,
|
|
126
|
-
className: `${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${isClickable ? style.pointer : ''} ${classList} ${style[`borderColor_${borderColor}`]} ${customClass ? customClass : ''}`,
|
|
131
|
+
className: `${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${isClickable ? style.pointer : ''} ${classList} ${style[`borderColor_${borderColor}`]} ${isScrollPrevent ? style.inputDotted : ''} ${customClass ? customClass : ''}`,
|
|
127
132
|
"data-id": `${dataId}`,
|
|
128
133
|
"data-test-id": `${dataId}`,
|
|
129
134
|
"data-selector-id": dataSelectorId,
|
|
@@ -140,6 +145,7 @@ function TextBox(props) {
|
|
|
140
145
|
ref: handleRef,
|
|
141
146
|
type: type,
|
|
142
147
|
value: value,
|
|
148
|
+
onScroll: isScrollPrevent ? handlePreventTextBoxScroll : '',
|
|
143
149
|
onKeyPress: onKeyPress,
|
|
144
150
|
onMouseDown: onMouseDown
|
|
145
151
|
}, options.current, customProps));
|
|
@@ -49,7 +49,8 @@ export default function TextBoxIcon(props) {
|
|
|
49
49
|
customProps,
|
|
50
50
|
inputRef,
|
|
51
51
|
onFocus,
|
|
52
|
-
onBlur
|
|
52
|
+
onBlur,
|
|
53
|
+
isScrollPrevent
|
|
53
54
|
} = props;
|
|
54
55
|
const {
|
|
55
56
|
customTBoxWrap = '',
|
|
@@ -122,6 +123,7 @@ export default function TextBoxIcon(props) {
|
|
|
122
123
|
onKeyPress: onKeyPress,
|
|
123
124
|
onMouseDown: onMouseDown,
|
|
124
125
|
needBorder: false,
|
|
126
|
+
isScrollPrevent: isScrollPrevent,
|
|
125
127
|
customClass: customTextBox,
|
|
126
128
|
customProps: TextBoxProps
|
|
127
129
|
}))), /*#__PURE__*/React.createElement(Box, {
|
package/es/v1/Tooltip/Tooltip.js
CHANGED
|
@@ -154,8 +154,10 @@ export default class Tooltip extends React.Component {
|
|
|
154
154
|
if (title !== '' && title) {
|
|
155
155
|
titleDiv.setAttribute('data-title', title);
|
|
156
156
|
titleDiv.removeAttribute('title');
|
|
157
|
+
let isInputElementType = element.type === 'text';
|
|
158
|
+
let elementText = isInputElementType ? element.value : element.innerText;
|
|
157
159
|
|
|
158
|
-
if (element.nodeName !== 'I' &&
|
|
160
|
+
if (element.nodeName !== 'I' && elementText && elementText.trim() !== '') {
|
|
159
161
|
let isContentDotted = '';
|
|
160
162
|
|
|
161
163
|
if (element.scrollWidth !== 0) {
|
|
@@ -173,7 +175,7 @@ export default class Tooltip extends React.Component {
|
|
|
173
175
|
isContentDotted = offWidth < scrollWidth;
|
|
174
176
|
}
|
|
175
177
|
|
|
176
|
-
let originText =
|
|
178
|
+
let originText = elementText.replace(/\s/g, '').toLowerCase();
|
|
177
179
|
let tooltipText = title.replace(/\s/g, '').toLowerCase();
|
|
178
180
|
let isDefaultTooltip = element.hasAttribute('data-istitle') || element.hasAttribute('istitle') ? element.getAttribute('data-istitle') || element.getAttribute('istitle') : 'false';
|
|
179
181
|
isDefaultTooltip = isDefaultTooltip === 'true';
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.grid {
|
|
36
36
|
width: var(--zd_size28) ;
|
|
37
37
|
height: var(--zd_size28) ;
|
|
38
|
-
line-height:
|
|
38
|
+
line-height: 1.3846;
|
|
39
39
|
/* css:theme-validation:ignore */
|
|
40
40
|
text-align: center;
|
|
41
41
|
padding: var(--zd_size4) 0 ;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
.thMonYear {
|
|
74
74
|
font-size: var(--zd_font_size13) ;
|
|
75
|
-
line-height:
|
|
75
|
+
line-height: 1.8462;
|
|
76
76
|
color: var(--zdt_datetime_datestr_text);
|
|
77
77
|
composes: semibold;
|
|
78
78
|
display: initial
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
--label_text_color: var(--zdt_label_default_text);
|
|
5
5
|
--label_font_family: var(--zd_regular);
|
|
6
6
|
--label_cursor: default;
|
|
7
|
-
--label_line_height:
|
|
7
|
+
--label_line_height: 1.286;
|
|
8
8
|
}
|
|
9
|
+
/* css:lineheight-validation:ignore */
|
|
9
10
|
.label {
|
|
10
11
|
composes: varClass;
|
|
11
12
|
vertical-align: middle;
|
|
@@ -18,15 +19,19 @@
|
|
|
18
19
|
}
|
|
19
20
|
.xsmall {
|
|
20
21
|
--label_font_size: var(--zd_font_size12);
|
|
22
|
+
--label_line_height:1.5;
|
|
21
23
|
}
|
|
22
24
|
.small {
|
|
23
25
|
--label_font_size: var(--zd_font_size13);
|
|
26
|
+
--label_line_height:1.385;
|
|
24
27
|
}
|
|
25
28
|
.medium {
|
|
26
29
|
--label_font_size: var(--zd_font_size14);
|
|
30
|
+
--label_line_height:1.286;
|
|
27
31
|
}
|
|
28
32
|
.large {
|
|
29
33
|
--label_font_size: var(--zd_font_size26);
|
|
34
|
+
--label_line_height:0.6923;
|
|
30
35
|
composes: semibold from '../common/common.module.css';
|
|
31
36
|
}
|
|
32
37
|
.pointer {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
--ribbon_tag_before_border_width: 1px 0 0 1px ;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* css:lineheight-validation:ignore */
|
|
35
36
|
.basic {
|
|
36
37
|
composes: varClass;
|
|
37
38
|
position: relative;
|
|
@@ -215,7 +216,6 @@
|
|
|
215
216
|
composes: dotted from '../common/common.module.css';
|
|
216
217
|
display: block;
|
|
217
218
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
218
|
-
--ribbon_line_height: 20px;
|
|
219
219
|
--ribbon_text_transform: uppercase;
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -227,6 +227,22 @@
|
|
|
227
227
|
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
.flag.small {
|
|
231
|
+
--ribbon_line_height: 2.2223;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.flag.medium {
|
|
235
|
+
--ribbon_line_height: 1.8182;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.flag.large {
|
|
239
|
+
--ribbon_line_height: 1.5385;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.flag.xlarge {
|
|
243
|
+
--ribbon_line_height: 1.4286;
|
|
244
|
+
}
|
|
245
|
+
|
|
230
246
|
.flag::after {
|
|
231
247
|
position: absolute;
|
|
232
248
|
/* Variable:Ignore */
|
|
@@ -262,10 +278,25 @@
|
|
|
262
278
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
263
279
|
--ribbon_text_transform: uppercase;
|
|
264
280
|
--ribbon_padding: var(--zd_size6) var(--zd_size10);
|
|
265
|
-
--ribbon_line_height: 20px;
|
|
266
281
|
text-align: center;
|
|
267
282
|
}
|
|
268
283
|
|
|
284
|
+
.ribbon.small {
|
|
285
|
+
--ribbon_line_height: 2.2223;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.ribbon.medium {
|
|
289
|
+
--ribbon_line_height: 1.8182;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.ribbon.large {
|
|
293
|
+
--ribbon_line_height: 1.5385;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ribbon.xlarge {
|
|
297
|
+
--ribbon_line_height: 1.4286;
|
|
298
|
+
}
|
|
299
|
+
|
|
269
300
|
.ribbon::after,
|
|
270
301
|
.ribbon::before {
|
|
271
302
|
position: absolute;
|
|
@@ -373,7 +404,6 @@
|
|
|
373
404
|
.sticker {
|
|
374
405
|
display: block;
|
|
375
406
|
height: var(--zd_size18) ;
|
|
376
|
-
line-height: var(--zd_size11);
|
|
377
407
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
378
408
|
--ribbon_text_transform: uppercase;
|
|
379
409
|
text-align: center;
|
|
@@ -383,6 +413,22 @@
|
|
|
383
413
|
padding: var(--zd_size3) var(--zd_size10) ;
|
|
384
414
|
}
|
|
385
415
|
|
|
416
|
+
.sticker.small {
|
|
417
|
+
line-height: 1.2223;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.sticker.medium {
|
|
421
|
+
line-height: 1;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.sticker.large {
|
|
425
|
+
line-height: 0.8462;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.sticker.xlarge {
|
|
429
|
+
line-height: 0.7858;
|
|
430
|
+
}
|
|
431
|
+
|
|
386
432
|
.after,
|
|
387
433
|
.before {
|
|
388
434
|
position: absolute;
|
package/lib/Select/Select.js
CHANGED
|
@@ -53,6 +53,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
53
53
|
|
|
54
54
|
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); }
|
|
55
55
|
|
|
56
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
57
|
+
|
|
58
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
59
|
+
|
|
60
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61
|
+
|
|
56
62
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
63
|
|
|
58
64
|
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); } }
|
|
@@ -841,8 +847,11 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
841
847
|
htmlId: htmlId,
|
|
842
848
|
isFocus: isPopupReady,
|
|
843
849
|
autoComplete: autoComplete,
|
|
850
|
+
isScrollPrevent: true,
|
|
844
851
|
customProps: {
|
|
845
|
-
TextBoxProps:
|
|
852
|
+
TextBoxProps: _objectSpread({
|
|
853
|
+
'data-title': title || selected
|
|
854
|
+
}, TextBoxProps)
|
|
846
855
|
}
|
|
847
856
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
848
857
|
alignBox: "row",
|
|
@@ -890,7 +899,10 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
890
899
|
htmlId: htmlId,
|
|
891
900
|
autoComplete: autoComplete,
|
|
892
901
|
isFocus: isPopupReady,
|
|
893
|
-
|
|
902
|
+
isScrollPrevent: true,
|
|
903
|
+
customProps: _objectSpread({
|
|
904
|
+
'data-title': title || selected
|
|
905
|
+
}, TextBoxProps)
|
|
894
906
|
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
895
907
|
query: this.responsiveFunc,
|
|
896
908
|
responsiveId: "Helmet"
|
|
@@ -1,65 +1,84 @@
|
|
|
1
1
|
.input {
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.small {
|
|
5
6
|
max-height: var(--zd_size200) ;
|
|
6
7
|
}
|
|
8
|
+
|
|
7
9
|
.medium {
|
|
8
10
|
max-height: var(--zd_size350) ;
|
|
9
11
|
}
|
|
12
|
+
|
|
10
13
|
.large {
|
|
11
14
|
max-height: var(--zd_size400) ;
|
|
12
15
|
}
|
|
16
|
+
|
|
13
17
|
.emptyState {
|
|
14
18
|
font-size: var(--zd_font_size14) ;
|
|
15
19
|
color: var(--zdt_select_emptystate_text);
|
|
16
20
|
composes: semibold from '../common/common.module.css';
|
|
17
21
|
}
|
|
22
|
+
|
|
18
23
|
.box_small .emptyState {
|
|
19
24
|
padding: var(--zd_size12) var(--zd_size6) ;
|
|
20
25
|
}
|
|
26
|
+
|
|
21
27
|
.box_medium .emptyState {
|
|
22
28
|
padding: var(--zd_size12) var(--zd_size15) ;
|
|
23
29
|
}
|
|
30
|
+
|
|
24
31
|
.hide {
|
|
25
32
|
composes: vishidden from '../common/common.module.css';
|
|
26
33
|
}
|
|
34
|
+
|
|
27
35
|
.container {
|
|
28
36
|
position: relative;
|
|
29
37
|
}
|
|
38
|
+
/* css:lineheight-validation:ignore */
|
|
30
39
|
.arrowIcon {
|
|
31
40
|
height: var(--zd_size8) ;
|
|
32
41
|
line-height: var(--zd_size8);
|
|
33
42
|
}
|
|
43
|
+
|
|
34
44
|
.small.search {
|
|
35
45
|
padding: 0 var(--zd_size5) ;
|
|
36
46
|
}
|
|
47
|
+
|
|
37
48
|
.medium.search {
|
|
38
49
|
padding: var(--zd_size3) var(--zd_size20) 0 ;
|
|
39
50
|
}
|
|
51
|
+
|
|
40
52
|
.title {
|
|
41
53
|
margin-bottom: var(--zd_size6) ;
|
|
42
54
|
}
|
|
55
|
+
|
|
43
56
|
.groupTitle {
|
|
44
57
|
margin: var(--zd_size6) 0 ;
|
|
45
58
|
}
|
|
59
|
+
|
|
46
60
|
.listItemContainer {
|
|
47
61
|
padding: var(--zd_size10) 0 ;
|
|
48
62
|
}
|
|
63
|
+
|
|
49
64
|
.responsivelistItemContainer {
|
|
50
65
|
padding: var(--zd_size10) 0 0 ;
|
|
51
66
|
}
|
|
67
|
+
|
|
52
68
|
.readonly {
|
|
53
69
|
--textboxicon_icon_cursor: not-allowed;
|
|
54
70
|
}
|
|
71
|
+
|
|
55
72
|
.transparentContainer .arrowIcon {
|
|
56
73
|
opacity: 0;
|
|
57
74
|
visibility: hidden;
|
|
58
75
|
}
|
|
76
|
+
|
|
59
77
|
.transparentContainer:hover .arrowIcon {
|
|
60
78
|
opacity: 1;
|
|
61
79
|
visibility: visible;
|
|
62
80
|
}
|
|
81
|
+
|
|
63
82
|
.disable {
|
|
64
83
|
color: var(--zdt_select_disable_text);
|
|
65
84
|
}
|
|
@@ -78,9 +97,11 @@
|
|
|
78
97
|
[dir=rtl] .leftIcon {
|
|
79
98
|
right: 0 ;
|
|
80
99
|
}
|
|
100
|
+
|
|
81
101
|
[dir=ltr] .iconSelect {
|
|
82
102
|
padding-left: var(--zd_size30) ;
|
|
83
103
|
}
|
|
104
|
+
|
|
84
105
|
[dir=rtl] .iconSelect {
|
|
85
106
|
padding-right: var(--zd_size30) ;
|
|
86
107
|
}
|
|
@@ -88,22 +109,27 @@
|
|
|
88
109
|
.dropBoxList {
|
|
89
110
|
padding: var(--zd_size10) 0 ;
|
|
90
111
|
}
|
|
91
|
-
|
|
112
|
+
|
|
113
|
+
.responsivedropBoxList {
|
|
92
114
|
padding: var(--zd_size10) 0 0 0 ;
|
|
93
115
|
}
|
|
116
|
+
|
|
94
117
|
.rotate {
|
|
95
118
|
transform: rotateX(180deg);
|
|
96
119
|
}
|
|
120
|
+
|
|
97
121
|
.iconOnHoverStyle .arrowIcon,
|
|
98
122
|
.iconOnHoverReadonly .arrowIcon,
|
|
99
123
|
.iconOnHoverReadonly:hover .arrowIcon {
|
|
100
124
|
opacity: 0;
|
|
101
125
|
visibility: hidden;
|
|
102
126
|
}
|
|
127
|
+
|
|
103
128
|
.iconOnHoverStyle:hover .arrowIcon {
|
|
104
129
|
opacity: 1;
|
|
105
130
|
visibility: visible;
|
|
106
131
|
}
|
|
132
|
+
|
|
107
133
|
.loader {
|
|
108
134
|
padding: var(--zd_size10) ;
|
|
109
135
|
}
|