@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,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 { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -127,7 +125,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
127
125
|
"data-title": isDisabled ? title : null
|
|
128
126
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
129
127
|
flexible: true
|
|
130
|
-
}, /*#__PURE__*/React.createElement(TextBox,
|
|
128
|
+
}, /*#__PURE__*/React.createElement(TextBox, { ...this.props,
|
|
131
129
|
dataId: dataId,
|
|
132
130
|
size: size,
|
|
133
131
|
variant: variant,
|
|
@@ -155,7 +153,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
155
153
|
isScrollPrevent: isScrollPrevent,
|
|
156
154
|
customClass: customTextBox,
|
|
157
155
|
customProps: TextBoxProps
|
|
158
|
-
}))
|
|
156
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
159
157
|
className: `${style.iconContainer} ${customTBoxIcon}`
|
|
160
158
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
161
159
|
alignBox: "row"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* textboxicon default variables */
|
|
3
|
-
--textboxicon_line_height:
|
|
3
|
+
--textboxicon_line_height: 1px;
|
|
4
4
|
--textboxicon_line_color: var(--zdt_textboxicon_default_line_bg);
|
|
5
5
|
|
|
6
6
|
/* textboxicon icon default variables */
|
|
7
|
-
--textboxicon_icon_margin: 0
|
|
7
|
+
--textboxicon_icon_margin: 0 5px;
|
|
8
8
|
--textboxicon_icon_cursor: pointer;
|
|
9
9
|
--textboxicon_icon_color: var(--zdt_textboxicon_default_icon);
|
|
10
10
|
}
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
}
|
|
15
15
|
.disabled,.readonly {
|
|
16
16
|
--textboxicon_icon_cursor: not-allowed;
|
|
17
|
-
}
|
|
18
|
-
.disabled, .readonly {
|
|
19
17
|
cursor: not-allowed;
|
|
20
18
|
}
|
|
21
19
|
.icon {
|
|
@@ -24,7 +22,6 @@
|
|
|
24
22
|
cursor: var(--textboxicon_icon_cursor);
|
|
25
23
|
}
|
|
26
24
|
.iconContainer {
|
|
27
|
-
/* css:theme-validation:ignore */
|
|
28
25
|
color: var(--textboxicon_icon_color);
|
|
29
26
|
}
|
|
30
27
|
.effect:hover .iconContainer,
|
|
@@ -36,26 +33,17 @@
|
|
|
36
33
|
}
|
|
37
34
|
.line {
|
|
38
35
|
position: absolute;
|
|
39
|
-
bottom: 0
|
|
36
|
+
bottom: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
right: 0;
|
|
40
39
|
/* Variable:Ignore */
|
|
41
40
|
min-height: 1px;
|
|
42
41
|
transition: var(--zd_transition2);
|
|
43
|
-
height: var(--textboxicon_line_height);
|
|
44
42
|
transform: perspective(1px);
|
|
45
|
-
|
|
46
|
-
[dir=ltr] .line {
|
|
47
|
-
left: 0 ;
|
|
48
|
-
right: 0 ;
|
|
49
|
-
}
|
|
50
|
-
[dir=rtl] .line {
|
|
51
|
-
right: 0 ;
|
|
52
|
-
left: 0 ;
|
|
43
|
+
height: var(--textboxicon_line_height);
|
|
53
44
|
}
|
|
54
45
|
.line,
|
|
55
46
|
.borderColor_default {
|
|
56
|
-
/* css:theme-validation:ignore */
|
|
57
|
-
}
|
|
58
|
-
.line, .borderColor_default {
|
|
59
47
|
background-color: var(--textboxicon_line_color);
|
|
60
48
|
}
|
|
61
49
|
.borderColor_transparent {
|
package/es/Textarea/Textarea.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
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -87,12 +85,12 @@ export default class Textarea extends React.Component {
|
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes[resize]] : style[resizes.none]} ${animated ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect}` : `${style.basic}`;
|
|
90
|
-
return /*#__PURE__*/React.createElement("textarea",
|
|
88
|
+
return /*#__PURE__*/React.createElement("textarea", {
|
|
91
89
|
"aria-label": ariaLabel,
|
|
92
90
|
"aria-labelledby": ariaLabelledby,
|
|
93
91
|
className: `${customClass} ${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${classList} ${style[`borderColor_${borderColor}`]}`,
|
|
94
|
-
placeholder: placeHolder
|
|
95
|
-
|
|
92
|
+
placeholder: placeHolder,
|
|
93
|
+
...options,
|
|
96
94
|
"data-id": dataId,
|
|
97
95
|
"data-test-id": dataId,
|
|
98
96
|
maxLength: maxLength,
|
|
@@ -104,7 +102,7 @@ export default class Textarea extends React.Component {
|
|
|
104
102
|
value: text,
|
|
105
103
|
id: htmlId,
|
|
106
104
|
"data-selector-id": dataSelectorId
|
|
107
|
-
})
|
|
105
|
+
});
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
}
|
|
@@ -4,14 +4,15 @@
|
|
|
4
4
|
--textarea_border_color: none;
|
|
5
5
|
--textarea_cursor: text;
|
|
6
6
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
7
|
-
--textarea_font_size:
|
|
7
|
+
--textarea_font_size: 14px;
|
|
8
8
|
--textarea_line_height: 1.5712;
|
|
9
|
-
--textarea_padding:
|
|
10
|
-
--textarea_height:
|
|
9
|
+
--textarea_padding: 2px 0;
|
|
10
|
+
--textarea_height: 30px;
|
|
11
11
|
|
|
12
12
|
/* textarea placeholder default variable */
|
|
13
13
|
--textarea_placeholder_text_color: var(--zdt_textarea_placeholder_text);
|
|
14
14
|
}
|
|
15
|
+
|
|
15
16
|
.basic {
|
|
16
17
|
composes: varClass;
|
|
17
18
|
-webkit-appearance: none;
|
|
@@ -19,128 +20,151 @@
|
|
|
19
20
|
appearance: none;
|
|
20
21
|
outline: 0;
|
|
21
22
|
letter-spacing: 0.1px;
|
|
22
|
-
/* css:theme-validation:ignore */
|
|
23
|
-
color: var(--textarea_text_color);
|
|
24
23
|
cursor: var(--textarea_cursor);
|
|
24
|
+
color: var(--textarea_text_color);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
.basic,
|
|
28
|
+
.noBorder {
|
|
27
29
|
border-width: var(--textarea_border_width);
|
|
28
30
|
}
|
|
31
|
+
|
|
29
32
|
.basic::placeholder {
|
|
30
|
-
/* css:theme-validation:ignore */
|
|
31
33
|
color: var(--textarea_placeholder_text_color);
|
|
32
34
|
}
|
|
35
|
+
|
|
33
36
|
.basic::-webkit-placeholder {
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
37
|
color: var(--textarea_placeholder_text_color);
|
|
36
38
|
}
|
|
39
|
+
|
|
37
40
|
.basic::-moz-placeholder {
|
|
38
|
-
/* css:theme-validation:ignore */
|
|
39
41
|
color: var(--textarea_placeholder_text_color);
|
|
40
42
|
}
|
|
43
|
+
|
|
41
44
|
.basic::-ms-placeholder {
|
|
42
|
-
/* css:theme-validation:ignore */
|
|
43
45
|
color: var(--textarea_placeholder_text_color);
|
|
44
46
|
}
|
|
47
|
+
|
|
45
48
|
.basic:disabled {
|
|
46
49
|
--textarea_cursor: not-allowed;
|
|
47
50
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
48
51
|
}
|
|
52
|
+
|
|
49
53
|
.readonly {
|
|
50
54
|
--textarea_cursor: not-allowed;
|
|
51
55
|
}
|
|
56
|
+
|
|
52
57
|
.resizeX {
|
|
53
58
|
composes: resizeX from '../common/common.module.css';
|
|
54
59
|
}
|
|
60
|
+
|
|
55
61
|
.resizeY {
|
|
56
62
|
composes: resizeY from '../common/common.module.css';
|
|
57
63
|
}
|
|
64
|
+
|
|
58
65
|
.noresize {
|
|
59
66
|
composes: resizenone from '../common/common.module.css';
|
|
60
67
|
}
|
|
68
|
+
|
|
61
69
|
.resizeboth {
|
|
62
70
|
composes: resizeboth from '../common/common.module.css';
|
|
63
71
|
}
|
|
72
|
+
|
|
64
73
|
/* css:lineheight-validation:ignore */
|
|
65
74
|
.container {
|
|
66
75
|
composes: basic;
|
|
67
76
|
transition: border var(--zd_transition2) linear 0s,
|
|
68
77
|
height var(--zd_transition2) linear 0s;
|
|
78
|
+
-webkit-transition: border var(--zd_transition2) linear 0s,
|
|
79
|
+
height var(--zd_transition2) linear 0s;
|
|
69
80
|
-moz-transition: border var(--zd_transition2) linear 0s,
|
|
70
81
|
height var(--zd_transition2) linear 0s;
|
|
71
|
-
width: 100
|
|
72
|
-
max-width: 100
|
|
73
|
-
min-width:
|
|
82
|
+
width: 100%;
|
|
83
|
+
max-width: 100%;
|
|
84
|
+
min-width: 100px;
|
|
85
|
+
border-style: solid;
|
|
74
86
|
font-size: var(--textarea_font_size);
|
|
75
87
|
line-height: var(--textarea_line_height);
|
|
76
|
-
/* css:theme-validation:ignore */
|
|
77
|
-
height: var(--textarea_height);
|
|
78
|
-
-webkit-transition: border var(--zd_transition2) linear 0s,
|
|
79
|
-
height var(--zd_transition2) linear 0s;
|
|
80
|
-
border-style: solid;
|
|
81
88
|
background-color: var(--zdt_textarea_default_bg);
|
|
82
89
|
border-color: var(--textarea_border_color);
|
|
83
90
|
padding: var(--textarea_padding);
|
|
91
|
+
height: var(--textarea_height);
|
|
84
92
|
}
|
|
93
|
+
|
|
85
94
|
.needBorder {
|
|
86
95
|
--textarea_border_width: 0 0 1px 0;
|
|
87
96
|
}
|
|
97
|
+
|
|
88
98
|
.borderColor_transparent {
|
|
89
99
|
--textarea_border_color: var(--zdt_textarea_transparent_border);
|
|
90
100
|
}
|
|
101
|
+
|
|
91
102
|
.borderColor_default {
|
|
92
103
|
--textarea_border_color: var(--zdt_textarea_default_border);
|
|
93
104
|
}
|
|
105
|
+
|
|
94
106
|
.effect:hover {
|
|
95
107
|
--textarea_border_color: var(--zdt_textarea_hover_border);
|
|
96
108
|
}
|
|
109
|
+
|
|
97
110
|
.effect:focus {
|
|
98
111
|
--textarea_border_color: var(--zdt_textarea_focus_border);
|
|
99
112
|
}
|
|
113
|
+
|
|
100
114
|
.xsmall,
|
|
101
115
|
.xmedium {
|
|
102
116
|
vertical-align: middle;
|
|
103
117
|
}
|
|
118
|
+
|
|
104
119
|
.xsmall {
|
|
105
|
-
--textarea_font_size:
|
|
106
|
-
--textarea_padding:
|
|
107
|
-
--textarea_height:
|
|
120
|
+
--textarea_font_size: 14px;
|
|
121
|
+
--textarea_padding: 4px 0 2px;
|
|
122
|
+
--textarea_height: 28px;
|
|
108
123
|
--textarea_line_height: 1.3572;
|
|
109
124
|
}
|
|
125
|
+
|
|
110
126
|
.xmedium {
|
|
111
|
-
--textarea_font_size:
|
|
112
|
-
--textarea_padding:
|
|
113
|
-
--textarea_height:
|
|
127
|
+
--textarea_font_size: 13px;
|
|
128
|
+
--textarea_padding: 4px 0 2px;
|
|
129
|
+
--textarea_height: 25px;
|
|
114
130
|
--textarea_line_height: 1.3077;
|
|
115
131
|
}
|
|
132
|
+
|
|
116
133
|
.small {
|
|
117
|
-
--textarea_height:
|
|
118
|
-
--textarea_padding:
|
|
134
|
+
--textarea_height: 30px;
|
|
135
|
+
--textarea_padding: 2px 0;
|
|
119
136
|
}
|
|
137
|
+
|
|
120
138
|
.smallanimated:focus,
|
|
121
139
|
.xsmallanimated:focus,
|
|
122
140
|
.xmediumanimated:focus {
|
|
123
|
-
--textarea_height:
|
|
141
|
+
--textarea_height: 70px;
|
|
124
142
|
}
|
|
143
|
+
|
|
125
144
|
.medium {
|
|
126
|
-
--textarea_height:
|
|
127
|
-
--textarea_padding:
|
|
145
|
+
--textarea_height: 88px;
|
|
146
|
+
--textarea_padding: 2px;
|
|
128
147
|
}
|
|
148
|
+
|
|
129
149
|
.large {
|
|
130
|
-
--textarea_height:
|
|
131
|
-
--textarea_padding:
|
|
150
|
+
--textarea_height: 45px;
|
|
151
|
+
--textarea_padding: 2px;
|
|
132
152
|
}
|
|
153
|
+
|
|
133
154
|
.largeanimated:focus {
|
|
134
|
-
--textarea_height:
|
|
155
|
+
--textarea_height: 220px;
|
|
135
156
|
}
|
|
157
|
+
|
|
136
158
|
.xlarge {
|
|
137
|
-
--textarea_height:
|
|
159
|
+
--textarea_height: 184px;
|
|
138
160
|
}
|
|
161
|
+
|
|
139
162
|
.default {
|
|
140
163
|
font-family: var(--zd_regular);
|
|
141
|
-
--textarea_text_color: var(--
|
|
164
|
+
--textarea_text_color: var(--zdt_base_color);
|
|
142
165
|
}
|
|
166
|
+
|
|
143
167
|
.primary {
|
|
144
168
|
composes: semibold from '../common/common.module.css';
|
|
145
|
-
--textarea_text_color: var(--
|
|
146
|
-
}
|
|
169
|
+
--textarea_text_color: var(--zdt_base_color);
|
|
170
|
+
}
|
|
@@ -2,29 +2,26 @@
|
|
|
2
2
|
position: fixed;
|
|
3
3
|
z-index: 9999999;
|
|
4
4
|
/*Hook for editor alert*/
|
|
5
|
+
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
5
6
|
pointer-events: none;
|
|
6
7
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
7
8
|
border-radius: var(--zd_size4);
|
|
8
|
-
}[dir=ltr] .tooltiptext {
|
|
9
|
-
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
10
|
-
}[dir=rtl] .tooltiptext {
|
|
11
|
-
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
.tooltipcont {
|
|
12
|
+
background-color: var(--zdt_tooltip_default_bg);
|
|
15
13
|
color: var(--zdt_tooltip_default_text);
|
|
16
|
-
|
|
14
|
+
padding: 0 10px;
|
|
15
|
+
font-size: 13px;
|
|
17
16
|
font-family: var(--zd_semibold);
|
|
18
17
|
word-break: break-word;
|
|
19
|
-
max-width: var(--zd_size420) ;
|
|
20
|
-
line-height: 1.5385;
|
|
21
|
-
min-height: var(--zd_size24) ;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
background-color: var(--zdt_tooltip_default_bg);
|
|
24
|
-
padding: 0 var(--zd_size10) ;
|
|
25
18
|
border-style: solid;
|
|
26
19
|
border-color: transparent;
|
|
27
20
|
border-radius: var(--zd_size4);
|
|
21
|
+
max-width: 420px;
|
|
22
|
+
line-height: 1.5385;
|
|
23
|
+
min-height: 24px;
|
|
24
|
+
overflow: hidden;
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
.tooltipWrapCont {
|
|
@@ -34,10 +31,12 @@
|
|
|
34
31
|
.tooltipNormalCont {
|
|
35
32
|
white-space: normal;
|
|
36
33
|
}
|
|
34
|
+
|
|
35
|
+
/*rtl:begin:ignore*/
|
|
37
36
|
.tooltiparrow {
|
|
38
37
|
content: '';
|
|
39
38
|
position: absolute;
|
|
40
|
-
top: 0
|
|
39
|
+
top: 0;
|
|
41
40
|
border-top-left-radius: 3px;
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -100,6 +99,8 @@
|
|
|
100
99
|
.arrowRight {
|
|
101
100
|
transform: rotate(135deg) translateY(50%);
|
|
102
101
|
}
|
|
102
|
+
|
|
103
|
+
/*rtl:end:ignore*/
|
|
103
104
|
@keyframes tooltip-grow {
|
|
104
105
|
from {
|
|
105
106
|
opacity: 0;
|
|
@@ -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 { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -86,14 +84,15 @@ export default class VelocityAnimationGroup extends React.Component {
|
|
|
86
84
|
delay: exitDelay ? exitDelay : 0,
|
|
87
85
|
display: 'none'
|
|
88
86
|
};
|
|
89
|
-
return /*#__PURE__*/React.createElement(VelocityTransitionGroup,
|
|
87
|
+
return /*#__PURE__*/React.createElement(VelocityTransitionGroup, {
|
|
90
88
|
enter: enterAnimation,
|
|
91
89
|
leave: exitAnimation,
|
|
92
90
|
component: component && component,
|
|
93
91
|
runOnMount: runOnMount,
|
|
94
92
|
enterHideStyle: enterHideStyle,
|
|
95
|
-
enterShowStyle: enterShowStyle
|
|
96
|
-
|
|
93
|
+
enterShowStyle: enterShowStyle,
|
|
94
|
+
...childProps
|
|
95
|
+
}, isActive ? children : null);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
}
|