@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
|
@@ -5,16 +5,12 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.alpha {
|
|
8
|
-
height:
|
|
9
|
-
background-color: var(--
|
|
8
|
+
height: 35px;
|
|
9
|
+
background-color: var(--zdt_base_bg);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
padding-left:
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[dir=rtl] .alpha_padding {
|
|
17
|
-
padding-right: var(--zd_size15) ;
|
|
12
|
+
.alpha_padding {
|
|
13
|
+
padding-left: 15px;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
.alpha_border {
|
|
@@ -27,50 +23,32 @@
|
|
|
27
23
|
content: '';
|
|
28
24
|
position: absolute;
|
|
29
25
|
z-index: -2;
|
|
30
|
-
width: 76
|
|
31
|
-
bottom: 0
|
|
32
|
-
height:
|
|
26
|
+
width: 76%;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
height: 10px;
|
|
29
|
+
left: 12%;
|
|
33
30
|
border-radius: 100px / 5px;
|
|
34
31
|
box-shadow: var(--zd_bs_tabs_shadow);
|
|
35
32
|
}
|
|
36
33
|
|
|
37
|
-
[dir=ltr] .alpha::after {
|
|
38
|
-
left: 12% ;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
[dir=rtl] .alpha::after {
|
|
42
|
-
right: 12% ;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
34
|
.alpha:before {
|
|
46
35
|
content: '';
|
|
47
36
|
position: absolute;
|
|
48
37
|
z-index: -1;
|
|
49
|
-
width: 100
|
|
50
|
-
height: 100% ;
|
|
51
|
-
top: 0 ;
|
|
38
|
+
width: 100%;
|
|
52
39
|
background: inherit;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
left: 0 ;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[dir=rtl] .alpha:before {
|
|
60
|
-
right: 0 ;
|
|
40
|
+
height: 100%;
|
|
41
|
+
left: 0;
|
|
42
|
+
top: 0;
|
|
61
43
|
}
|
|
62
44
|
|
|
63
45
|
.beta {
|
|
64
|
-
height:
|
|
65
|
-
background-color: var(--
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[dir=ltr] .beta_padding {
|
|
69
|
-
padding-left: var(--zd_size13) ;
|
|
46
|
+
height: 61px;
|
|
47
|
+
background-color: var(--zdt_base_bg);
|
|
70
48
|
}
|
|
71
49
|
|
|
72
|
-
|
|
73
|
-
padding-
|
|
50
|
+
.beta_padding {
|
|
51
|
+
padding-left: 13px;
|
|
74
52
|
}
|
|
75
53
|
|
|
76
54
|
.beta_border {
|
|
@@ -78,16 +56,12 @@
|
|
|
78
56
|
}
|
|
79
57
|
|
|
80
58
|
.delta {
|
|
81
|
-
height:
|
|
82
|
-
background-color: var(--
|
|
59
|
+
height: 35px;
|
|
60
|
+
background-color: var(--zdt_base_bg);
|
|
83
61
|
}
|
|
84
62
|
|
|
85
|
-
|
|
86
|
-
padding-left:
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
[dir=rtl] .delta_padding {
|
|
90
|
-
padding-right: var(--zd_size10) ;
|
|
63
|
+
.delta_padding {
|
|
64
|
+
padding-left: 10px;
|
|
91
65
|
}
|
|
92
66
|
|
|
93
67
|
.delta_border {
|
|
@@ -99,12 +73,12 @@
|
|
|
99
73
|
}
|
|
100
74
|
|
|
101
75
|
.maxWidth {
|
|
102
|
-
max-width: 100
|
|
76
|
+
max-width: 100%;
|
|
103
77
|
}
|
|
104
78
|
|
|
105
79
|
.highlight {
|
|
106
80
|
position: absolute;
|
|
107
|
-
bottom: 0
|
|
81
|
+
bottom: 0;
|
|
108
82
|
border-bottom: 1px solid var(--zdt_tabs_highlight_border);
|
|
109
83
|
}
|
|
110
84
|
|
|
@@ -118,20 +92,24 @@
|
|
|
118
92
|
}
|
|
119
93
|
|
|
120
94
|
.menuBox {
|
|
121
|
-
max-height:
|
|
95
|
+
max-height: 220px;
|
|
122
96
|
}
|
|
97
|
+
|
|
98
|
+
/*rtl:begin:ignore*/
|
|
123
99
|
.bottomRightToLeft,
|
|
124
100
|
.topRightToLeft,
|
|
125
101
|
.bottomCenterToLeft {
|
|
126
|
-
right: calc(var(--tab_position_gap) * -1);
|
|
102
|
+
right: calc(var(--tab_position_gap) * -1);
|
|
127
103
|
}
|
|
128
104
|
|
|
129
105
|
.bottomLeftToRight,
|
|
130
106
|
.topLeftToRight,
|
|
131
107
|
.bottomCenterToRight {
|
|
132
|
-
left: calc(var(--tab_position_gap) * -1);
|
|
108
|
+
left: calc(var(--tab_position_gap) * -1);
|
|
133
109
|
}
|
|
134
110
|
|
|
111
|
+
/*rtl:end:ignore*/
|
|
112
|
+
|
|
135
113
|
.hidden {
|
|
136
114
|
visibility: hidden;
|
|
137
115
|
}
|
package/es/v1/TextBox/TextBox.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, { memo, useRef, useCallback } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -113,7 +111,7 @@ function TextBox(props) {
|
|
|
113
111
|
|
|
114
112
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.border : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect} ${isFocus ? style.focus : ''}` : `${style.basic}`;
|
|
115
113
|
value = value === null || value === undefined ? '' : value;
|
|
116
|
-
return /*#__PURE__*/React.createElement("input",
|
|
114
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
117
115
|
"aria-label": ariaLabel,
|
|
118
116
|
"aria-invalid": ariaInvalid,
|
|
119
117
|
"aria-autocomplete": ariaAutocomplete,
|
|
@@ -147,8 +145,10 @@ function TextBox(props) {
|
|
|
147
145
|
value: value,
|
|
148
146
|
onScroll: isScrollPrevent ? handlePreventTextBoxScroll : '',
|
|
149
147
|
onKeyPress: onKeyPress,
|
|
150
|
-
onMouseDown: onMouseDown
|
|
151
|
-
|
|
148
|
+
onMouseDown: onMouseDown,
|
|
149
|
+
...options.current,
|
|
150
|
+
...customProps
|
|
151
|
+
});
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
TextBox.defaultProps = defaultProps;
|
|
@@ -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, { useState, useRef, useCallback } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -98,7 +96,7 @@ export default function TextBoxIcon(props) {
|
|
|
98
96
|
"data-title": isDisabled ? title : null
|
|
99
97
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
100
98
|
flexible: true
|
|
101
|
-
}, /*#__PURE__*/React.createElement(TextBox,
|
|
99
|
+
}, /*#__PURE__*/React.createElement(TextBox, { ...props,
|
|
102
100
|
dataId: dataId,
|
|
103
101
|
size: size,
|
|
104
102
|
variant: variant,
|
|
@@ -126,7 +124,7 @@ export default function TextBoxIcon(props) {
|
|
|
126
124
|
isScrollPrevent: isScrollPrevent,
|
|
127
125
|
customClass: customTextBox,
|
|
128
126
|
customProps: TextBoxProps
|
|
129
|
-
}))
|
|
127
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
130
128
|
className: `${style.iconContainer} ${customTBoxIcon}`
|
|
131
129
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
132
130
|
alignBox: "row"
|
|
@@ -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, { useRef } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -72,12 +70,12 @@ export default function Textarea(props) {
|
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes.current[resize]] : style[resizes.current.none]} ${animated ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect}` : `${style.basic}`;
|
|
75
|
-
return /*#__PURE__*/React.createElement("textarea",
|
|
73
|
+
return /*#__PURE__*/React.createElement("textarea", {
|
|
76
74
|
"aria-label": ariaLabel,
|
|
77
75
|
"aria-labelledby": ariaLabelledby,
|
|
78
76
|
className: `${customClass} ${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${classList} ${style[`borderColor_${borderColor}`]}`,
|
|
79
|
-
placeholder: placeHolder
|
|
80
|
-
|
|
77
|
+
placeholder: placeHolder,
|
|
78
|
+
...options.current,
|
|
81
79
|
"data-id": dataId,
|
|
82
80
|
"data-test-id": dataId,
|
|
83
81
|
maxLength: maxLength,
|
|
@@ -89,7 +87,7 @@ export default function Textarea(props) {
|
|
|
89
87
|
value: text,
|
|
90
88
|
id: htmlId,
|
|
91
89
|
"data-selector-id": dataSelectorId
|
|
92
|
-
})
|
|
90
|
+
});
|
|
93
91
|
}
|
|
94
92
|
Textarea.defaultProps = defaultProps;
|
|
95
93
|
Textarea.propTypes = propTypes; // if (__DOCS__) {
|
package/es/v1/Tooltip/Tooltip.js
CHANGED
|
@@ -3,7 +3,7 @@ import { defaultProps } from './props/defaultProps';
|
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
4
|
import { getLibraryConfig } from '../../Provider/Config';
|
|
5
5
|
import style from '../../Tooltip/Tooltip.module.css';
|
|
6
|
-
import ResizeObserver from '
|
|
6
|
+
import ResizeObserver from '../../Responsive/ResizeObserver';
|
|
7
7
|
import selectn from 'selectn';
|
|
8
8
|
export default class Tooltip extends React.Component {
|
|
9
9
|
constructor(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.reset {
|
|
2
2
|
font-weight: initial;
|
|
3
|
-
margin: initial
|
|
4
|
-
padding: initial
|
|
3
|
+
margin: initial;
|
|
4
|
+
padding: initial;
|
|
5
5
|
}
|
|
6
6
|
.dotted{
|
|
7
7
|
composes: dotted from '../../../common/common.module.css';
|
|
@@ -50,18 +50,12 @@
|
|
|
50
50
|
.decoration_overline{
|
|
51
51
|
text-decoration: overline;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
.textalign_left{
|
|
54
54
|
text-align: left;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
.textalign_right{
|
|
57
57
|
text-align: right;
|
|
58
58
|
}
|
|
59
|
-
[dir=ltr] .textalign_right{
|
|
60
|
-
text-align: right;
|
|
61
|
-
}
|
|
62
|
-
[dir=rtl] .textalign_right{
|
|
63
|
-
text-align: left;
|
|
64
|
-
}
|
|
65
59
|
.textalign_center{
|
|
66
60
|
text-align: center;
|
|
67
61
|
}
|
|
@@ -144,91 +138,91 @@
|
|
|
144
138
|
/*...............Font Size Start.........*/
|
|
145
139
|
|
|
146
140
|
.size7{
|
|
147
|
-
font-size:
|
|
141
|
+
font-size: 7px;
|
|
148
142
|
}
|
|
149
143
|
.size8{
|
|
150
|
-
font-size:
|
|
144
|
+
font-size: 8px;
|
|
151
145
|
}
|
|
152
146
|
.size9{
|
|
153
|
-
font-size:
|
|
147
|
+
font-size: 9px;
|
|
154
148
|
}
|
|
155
149
|
.size10{
|
|
156
|
-
font-size:
|
|
150
|
+
font-size: 10px;
|
|
157
151
|
}
|
|
158
152
|
.size11{
|
|
159
|
-
font-size:
|
|
153
|
+
font-size: 11px;
|
|
160
154
|
}
|
|
161
155
|
.size12{
|
|
162
|
-
font-size:
|
|
156
|
+
font-size: 12px;
|
|
163
157
|
}
|
|
164
158
|
.size13{
|
|
165
|
-
font-size:
|
|
159
|
+
font-size: 13px;
|
|
166
160
|
}
|
|
167
161
|
.size14{
|
|
168
|
-
font-size:
|
|
162
|
+
font-size: 14px;
|
|
169
163
|
}
|
|
170
164
|
.size15{
|
|
171
|
-
font-size:
|
|
165
|
+
font-size: 15px;
|
|
172
166
|
}
|
|
173
167
|
.size16{
|
|
174
|
-
font-size:
|
|
168
|
+
font-size: 16px;
|
|
175
169
|
}
|
|
176
170
|
.size17{
|
|
177
|
-
font-size:
|
|
171
|
+
font-size: 17px;
|
|
178
172
|
}
|
|
179
173
|
.size18{
|
|
180
|
-
font-size:
|
|
174
|
+
font-size: 18px;
|
|
181
175
|
}
|
|
182
176
|
.size19{
|
|
183
|
-
font-size:
|
|
177
|
+
font-size: 19px;
|
|
184
178
|
}
|
|
185
179
|
.size20{
|
|
186
|
-
font-size:
|
|
180
|
+
font-size: 20px;
|
|
187
181
|
}
|
|
188
182
|
.size21{
|
|
189
|
-
font-size:
|
|
183
|
+
font-size: 21px;
|
|
190
184
|
}
|
|
191
185
|
.size22{
|
|
192
|
-
font-size:
|
|
186
|
+
font-size: 22px;
|
|
193
187
|
}
|
|
194
188
|
.size24{
|
|
195
|
-
font-size:
|
|
189
|
+
font-size: 24px;
|
|
196
190
|
}
|
|
197
191
|
.size25{
|
|
198
|
-
font-size:
|
|
192
|
+
font-size: 25px;
|
|
199
193
|
}
|
|
200
194
|
.size26{
|
|
201
|
-
font-size:
|
|
195
|
+
font-size: 26px;
|
|
202
196
|
}
|
|
203
197
|
.size28{
|
|
204
|
-
font-size:
|
|
198
|
+
font-size: 28px;
|
|
205
199
|
}
|
|
206
200
|
.size29{
|
|
207
|
-
font-size:
|
|
201
|
+
font-size: 29px;
|
|
208
202
|
}
|
|
209
203
|
.size30{
|
|
210
|
-
font-size:
|
|
204
|
+
font-size: 30px;
|
|
211
205
|
}
|
|
212
206
|
.size32{
|
|
213
|
-
font-size:
|
|
207
|
+
font-size: 32px;
|
|
214
208
|
}
|
|
215
209
|
.size34{
|
|
216
|
-
font-size:
|
|
210
|
+
font-size: 34px;
|
|
217
211
|
}
|
|
218
212
|
.size35{
|
|
219
|
-
font-size:
|
|
213
|
+
font-size: 35px;
|
|
220
214
|
}
|
|
221
215
|
.size36{
|
|
222
|
-
font-size:
|
|
216
|
+
font-size: 36px;
|
|
223
217
|
}
|
|
224
218
|
.size40{
|
|
225
|
-
font-size:
|
|
219
|
+
font-size: 40px;
|
|
226
220
|
}
|
|
227
221
|
.size50{
|
|
228
|
-
font-size:
|
|
222
|
+
font-size: 50px;
|
|
229
223
|
}
|
|
230
224
|
.sizeinherit{
|
|
231
|
-
font-size: inherit
|
|
225
|
+
font-size: inherit;
|
|
232
226
|
}
|
|
233
227
|
|
|
234
228
|
/*...............Font Size End.........*/
|
|
@@ -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, { useContext } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -81,14 +79,15 @@ export default function VelocityAnimationGroup(props) {
|
|
|
81
79
|
delay: exitDelay ? exitDelay : 0,
|
|
82
80
|
display: 'none'
|
|
83
81
|
};
|
|
84
|
-
return /*#__PURE__*/React.createElement(VelocityTransitionGroup,
|
|
82
|
+
return /*#__PURE__*/React.createElement(VelocityTransitionGroup, {
|
|
85
83
|
enter: enterAnimation,
|
|
86
84
|
leave: exitAnimation,
|
|
87
85
|
component: component && component,
|
|
88
86
|
runOnMount: runOnMount,
|
|
89
87
|
enterHideStyle: enterHideStyle,
|
|
90
|
-
enterShowStyle: enterShowStyle
|
|
91
|
-
|
|
88
|
+
enterShowStyle: enterShowStyle,
|
|
89
|
+
...childProps
|
|
90
|
+
}, isActive ? children : null);
|
|
92
91
|
}
|
|
93
92
|
VelocityAnimationGroup.defaultProps = { ...defaultProps,
|
|
94
93
|
component: React.Fragment
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* avatar default variables */
|
|
3
|
-
--avatar_text_color: var(--
|
|
4
|
-
--avatar_font_size:
|
|
5
|
-
--avatar_bg_color: var(--
|
|
3
|
+
--avatar_text_color: var(--zdt_base_color);
|
|
4
|
+
--avatar_font_size: 14px;
|
|
5
|
+
--avatar_bg_color: var(--zdt_base_bg);
|
|
6
6
|
--avatar_border_radius: 50%;
|
|
7
7
|
--avatar_border_width: 0;
|
|
8
8
|
--avatar_border_style: solid;
|
|
@@ -18,52 +18,35 @@
|
|
|
18
18
|
composes: dInflex alignVertical alignHorizontal from '../common/common.module.css';
|
|
19
19
|
vertical-align: middle;
|
|
20
20
|
font-size: var(--avatar_font_size);
|
|
21
|
-
/* css:theme-validation:ignore */
|
|
22
|
-
color: var(--avatar_text_color);
|
|
23
21
|
border-width: var(--avatar_border_width);
|
|
24
22
|
border-style: var(--avatar_border_style);
|
|
23
|
+
color: var(--avatar_text_color);
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
.border {
|
|
28
|
-
/* css:theme-validation:ignore */
|
|
29
27
|
border-color: var(--avatar_border_color);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
.borderOnHover:hover,
|
|
33
31
|
.borderOnActive {
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.borderOnHover:hover, .borderOnActive {
|
|
38
32
|
border-color: var(--avatar_border_hoverColor);
|
|
39
33
|
}
|
|
40
34
|
|
|
41
35
|
.avatar,
|
|
42
36
|
.primary {
|
|
43
|
-
/* css:theme-validation:ignore */
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.avatar, .primary {
|
|
47
37
|
background-color: var(--avatar_bg_color);
|
|
48
38
|
}
|
|
49
39
|
|
|
50
40
|
.shadow {
|
|
51
41
|
position: absolute;
|
|
52
|
-
height: 100
|
|
53
|
-
width: 100
|
|
54
|
-
top: 0
|
|
42
|
+
height: 100%;
|
|
43
|
+
width: 100%;
|
|
44
|
+
top: 0;
|
|
45
|
+
left: 0;
|
|
55
46
|
pointer-events: none;
|
|
56
47
|
border-radius: var(--avatar_border_radius);
|
|
57
48
|
}
|
|
58
49
|
|
|
59
|
-
[dir=ltr] .shadow {
|
|
60
|
-
left: 0 ;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
[dir=rtl] .shadow {
|
|
64
|
-
right: 0 ;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
50
|
.shadow.black {
|
|
68
51
|
box-shadow: var(--zd_bs_avatar_black);
|
|
69
52
|
}
|
|
@@ -72,7 +55,8 @@
|
|
|
72
55
|
box-shadow: var(--zd_bs_avatar_white);
|
|
73
56
|
}
|
|
74
57
|
|
|
75
|
-
.avatar,
|
|
58
|
+
.avatar,
|
|
59
|
+
.circle {
|
|
76
60
|
border-radius: var(--avatar_border_radius);
|
|
77
61
|
}
|
|
78
62
|
|
|
@@ -81,31 +65,17 @@
|
|
|
81
65
|
}
|
|
82
66
|
|
|
83
67
|
.image {
|
|
84
|
-
|
|
85
|
-
|
|
68
|
+
border-radius: var(--avatar_border_radius);
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
86
71
|
position: absolute;
|
|
87
|
-
top: 0
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
88
74
|
z-index: 0;
|
|
89
|
-
border-radius: var(--avatar_border_radius);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
[dir=ltr] .image {
|
|
93
|
-
left: 0 ;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
[dir=rtl] .image {
|
|
97
|
-
right: 0 ;
|
|
98
75
|
}
|
|
99
76
|
|
|
100
77
|
.animate {
|
|
101
78
|
composes: fadeIn modeForward from './../common/animation.module.css';
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
[dir=ltr] .animate {
|
|
105
|
-
animation-duration: var(--zd_transition2);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
[dir=rtl] .animate {
|
|
109
79
|
animation-duration: var(--zd_transition2);
|
|
110
80
|
}
|
|
111
81
|
|
|
@@ -153,31 +123,31 @@
|
|
|
153
123
|
}
|
|
154
124
|
|
|
155
125
|
.xxsmall {
|
|
156
|
-
--avatar_font_size:
|
|
126
|
+
--avatar_font_size: 8px;
|
|
157
127
|
}
|
|
158
128
|
|
|
159
129
|
.small {
|
|
160
|
-
--avatar_font_size:
|
|
130
|
+
--avatar_font_size: 9px;
|
|
161
131
|
}
|
|
162
132
|
|
|
163
133
|
.xsmall {
|
|
164
|
-
--avatar_font_size:
|
|
134
|
+
--avatar_font_size: 12px;
|
|
165
135
|
}
|
|
166
136
|
|
|
167
137
|
.medium {
|
|
168
|
-
--avatar_font_size:
|
|
138
|
+
--avatar_font_size: 14px;
|
|
169
139
|
}
|
|
170
140
|
|
|
171
141
|
.xmedium {
|
|
172
|
-
--avatar_font_size:
|
|
142
|
+
--avatar_font_size: 14px;
|
|
173
143
|
}
|
|
174
144
|
|
|
175
145
|
.large {
|
|
176
|
-
--avatar_font_size:
|
|
146
|
+
--avatar_font_size: 18px;
|
|
177
147
|
}
|
|
178
148
|
|
|
179
149
|
.xlarge {
|
|
180
|
-
--avatar_font_size:
|
|
150
|
+
--avatar_font_size: 28px;
|
|
181
151
|
}
|
|
182
152
|
|
|
183
153
|
.white {
|