@zohodesk/components 1.0.0-temp-197 → 1.0.0-temp-199
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/propValidation_report.html +1 -1
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +2 -2
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/Button/Button.js +4 -4
- package/es/Button/css/Button.module.css +6 -22
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +1 -1
- package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/DateTime/DateTime.module.css +8 -11
- package/es/DateTime/DateWidget.module.css +38 -38
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -11
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropBox/css/DropBox.module.css +1 -1
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/Heading/Heading.module.css +4 -4
- package/es/Label/Label.js +2 -2
- package/es/Layout/Layout.module.css +335 -335
- package/es/ListItem/ListItem.js +2 -2
- package/es/ListItem/ListItem.module.css +85 -18
- package/es/ListItem/ListItemWithAvatar.js +3 -3
- package/es/ListItem/ListItemWithIcon.js +2 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
- package/es/MultiSelect/AdvancedMultiSelect.js +2 -1
- package/es/MultiSelect/MultiSelect.js +12 -7
- package/es/MultiSelect/SelectedOptions.module.css +15 -15
- package/es/MultiSelect/Suggestions.js +8 -4
- package/es/MultiSelect/props/defaultProps.js +8 -5
- package/es/MultiSelect/props/propTypes.js +6 -3
- package/es/Popup/PositionMapping.json +73 -73
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/es/Ribbon/Ribbon.module.css +6 -6
- package/es/RippleEffect/RippleEffect.module.css +92 -92
- package/es/Select/GroupSelect.js +7 -2
- package/es/Select/Select.module.css +134 -134
- package/es/Select/SelectWithAvatar.js +7 -2
- package/es/Select/SelectWithIcon.js +7 -2
- package/es/Select/props/defaultProps.js +6 -3
- package/es/Select/props/propTypes.js +6 -3
- package/es/Stencils/Stencils.module.css +96 -96
- package/es/Switch/Switch.module.css +1 -2
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +3 -3
- package/es/Tooltip/Tooltip.module.css +140 -143
- package/es/common/a11y.module.css +3 -3
- package/es/common/animation.module.css +624 -624
- package/es/common/avatarsizes.module.css +48 -48
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +40 -40
- package/es/{deprecated → common}/boxShadow.module.css +33 -33
- package/es/common/common.module.css +524 -524
- package/es/common/reset.module.css +13 -13
- package/es/common/transition.module.css +146 -146
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/v1/AppContainer/AppContainer.js +1 -0
- package/es/v1/Card/Card.js +4 -4
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/v1/Tab/Tabs.js +11 -11
- package/es/v1/Tab/v1TabContent.module.css +4 -4
- package/es/v1/Tab/v1Tabs.module.css +3 -3
- package/es/v1/Typography/css/Typography.module.css +380 -380
- package/install.md +10 -10
- package/lib/AppContainer/AppContainer.js +2 -0
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +2 -2
- package/lib/AvatarTeam/AvatarTeam.js +7 -7
- package/lib/Button/Button.js +4 -4
- package/lib/Button/css/Button.module.css +6 -22
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Buttongroup/Buttongroup.module.css +1 -1
- package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +20 -20
- package/lib/DateTime/DateTime.module.css +8 -11
- package/lib/DateTime/DateWidget.module.css +38 -38
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -11
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropBox/css/DropBox.module.css +1 -1
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/Heading/Heading.module.css +4 -4
- package/lib/Layout/Layout.module.css +335 -335
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +85 -18
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/AdvancedMultiSelect.js +3 -1
- package/lib/MultiSelect/MultiSelect.js +13 -8
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/MultiSelect/Suggestions.js +8 -4
- package/lib/MultiSelect/props/defaultProps.js +8 -5
- package/lib/MultiSelect/props/propTypes.js +8 -6
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/lib/Ribbon/Ribbon.module.css +6 -6
- package/lib/RippleEffect/RippleEffect.module.css +92 -92
- package/lib/Select/GroupSelect.js +8 -3
- package/lib/Select/Select.module.css +134 -134
- package/lib/Select/SelectWithAvatar.js +8 -3
- package/lib/Select/SelectWithIcon.js +8 -3
- package/lib/Select/props/defaultProps.js +5 -3
- package/lib/Select/props/propTypes.js +6 -3
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Switch/Switch.module.css +1 -2
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/Tabs.js +11 -11
- package/lib/Tab/Tabs.module.css +3 -3
- package/lib/Tooltip/Tooltip.module.css +140 -143
- package/lib/common/a11y.module.css +3 -3
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +48 -48
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/{deprecated → common}/boxShadow.module.css +33 -33
- package/lib/common/common.module.css +524 -524
- package/lib/common/reset.module.css +13 -13
- package/lib/common/transition.module.css +146 -146
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/v1/AppContainer/AppContainer.js +2 -0
- package/lib/v1/Card/Card.js +4 -4
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/lib/v1/Tab/Tabs.js +11 -11
- package/lib/v1/Tab/v1TabContent.module.css +4 -4
- package/lib/v1/Tab/v1Tabs.module.css +3 -3
- package/lib/v1/Typography/css/Typography.module.css +380 -380
- package/package.json +7 -11
- package/postPublish.js +8 -8
- package/prePublish.js +70 -70
- package/react-cli.config.js +23 -23
- package/result.json +1 -1
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
.input {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.small {
|
|
6
|
-
max-height: var(--zd_size200) ;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.medium {
|
|
10
|
-
max-height: var(--zd_size350) ;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.large {
|
|
14
|
-
max-height: var(--zd_size400) ;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.emptyState {
|
|
18
|
-
font-size: var(--zd_font_size14) ;
|
|
19
|
-
color: var(--zdt_select_emptystate_text);
|
|
20
|
-
composes: semibold from '../common/common.module.css';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.box_small .emptyState {
|
|
24
|
-
padding: var(--zd_size12) var(--zd_size6) ;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.box_medium .emptyState {
|
|
28
|
-
padding: var(--zd_size12) var(--zd_size15) ;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.hide {
|
|
32
|
-
composes: vishidden from '../common/common.module.css';
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.container {
|
|
36
|
-
position: relative;
|
|
37
|
-
}
|
|
38
|
-
/* css:lineheight-validation:ignore */
|
|
39
|
-
.arrowIcon {
|
|
40
|
-
height: var(--zd_size8) ;
|
|
41
|
-
line-height: var(--zd_size8);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.small.search {
|
|
45
|
-
padding: 0 var(--zd_size5) ;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.medium.search {
|
|
49
|
-
padding: var(--zd_size3) var(--zd_size20) 0 ;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.title {
|
|
53
|
-
margin-bottom: var(--zd_size6) ;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.groupTitle {
|
|
57
|
-
margin: var(--zd_size6) 0 ;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.listItemContainer {
|
|
61
|
-
padding: var(--zd_size10) 0 ;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.responsivelistItemContainer {
|
|
65
|
-
padding: var(--zd_size10) 0 0 ;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.readonly {
|
|
69
|
-
--textboxicon_icon_cursor: not-allowed;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.transparentContainer .arrowIcon {
|
|
73
|
-
opacity: 0;
|
|
74
|
-
visibility: hidden;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.transparentContainer:hover .arrowIcon {
|
|
78
|
-
opacity: 1;
|
|
79
|
-
visibility: visible;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.disable {
|
|
83
|
-
color: var(--zdt_select_disable_text);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.leftIcon {
|
|
87
|
-
position: absolute;
|
|
88
|
-
top: 0 ;
|
|
89
|
-
bottom: 0 ;
|
|
90
|
-
width: var(--zd_size30) ;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
[dir=ltr] .leftIcon {
|
|
94
|
-
left: 0 ;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
[dir=rtl] .leftIcon {
|
|
98
|
-
right: 0 ;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
[dir=ltr] .iconSelect {
|
|
102
|
-
padding-left: var(--zd_size30) ;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
[dir=rtl] .iconSelect {
|
|
106
|
-
padding-right: var(--zd_size30) ;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.dropBoxList {
|
|
110
|
-
padding: var(--zd_size10) 0 ;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.responsivedropBoxList {
|
|
114
|
-
padding: var(--zd_size10) 0 0 0 ;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.rotate {
|
|
118
|
-
transform: rotateX(180deg);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.iconOnHoverStyle .arrowIcon,
|
|
122
|
-
.iconOnHoverReadonly .arrowIcon,
|
|
123
|
-
.iconOnHoverReadonly:hover .arrowIcon {
|
|
124
|
-
opacity: 0;
|
|
125
|
-
visibility: hidden;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.iconOnHoverStyle:hover .arrowIcon {
|
|
129
|
-
opacity: 1;
|
|
130
|
-
visibility: visible;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.loader {
|
|
134
|
-
padding: var(--zd_size10) ;
|
|
1
|
+
.input {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.small {
|
|
6
|
+
max-height: var(--zd_size200) ;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.medium {
|
|
10
|
+
max-height: var(--zd_size350) ;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.large {
|
|
14
|
+
max-height: var(--zd_size400) ;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.emptyState {
|
|
18
|
+
font-size: var(--zd_font_size14) ;
|
|
19
|
+
color: var(--zdt_select_emptystate_text);
|
|
20
|
+
composes: semibold from '../common/common.module.css';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.box_small .emptyState {
|
|
24
|
+
padding: var(--zd_size12) var(--zd_size6) ;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.box_medium .emptyState {
|
|
28
|
+
padding: var(--zd_size12) var(--zd_size15) ;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.hide {
|
|
32
|
+
composes: vishidden from '../common/common.module.css';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.container {
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
/* css:lineheight-validation:ignore */
|
|
39
|
+
.arrowIcon {
|
|
40
|
+
height: var(--zd_size8) ;
|
|
41
|
+
line-height: var(--zd_size8);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.small.search {
|
|
45
|
+
padding: 0 var(--zd_size5) ;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.medium.search {
|
|
49
|
+
padding: var(--zd_size3) var(--zd_size20) 0 ;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.title {
|
|
53
|
+
margin-bottom: var(--zd_size6) ;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.groupTitle {
|
|
57
|
+
margin: var(--zd_size6) 0 ;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.listItemContainer {
|
|
61
|
+
padding: var(--zd_size10) 0 ;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.responsivelistItemContainer {
|
|
65
|
+
padding: var(--zd_size10) 0 0 ;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.readonly {
|
|
69
|
+
--textboxicon_icon_cursor: not-allowed;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.transparentContainer .arrowIcon {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
visibility: hidden;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.transparentContainer:hover .arrowIcon {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
visibility: visible;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.disable {
|
|
83
|
+
color: var(--zdt_select_disable_text);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.leftIcon {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 0 ;
|
|
89
|
+
bottom: 0 ;
|
|
90
|
+
width: var(--zd_size30) ;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[dir=ltr] .leftIcon {
|
|
94
|
+
left: 0 ;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[dir=rtl] .leftIcon {
|
|
98
|
+
right: 0 ;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[dir=ltr] .iconSelect {
|
|
102
|
+
padding-left: var(--zd_size30) ;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[dir=rtl] .iconSelect {
|
|
106
|
+
padding-right: var(--zd_size30) ;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.dropBoxList {
|
|
110
|
+
padding: var(--zd_size10) 0 ;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.responsivedropBoxList {
|
|
114
|
+
padding: var(--zd_size10) 0 0 0 ;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.rotate {
|
|
118
|
+
transform: rotateX(180deg);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.iconOnHoverStyle .arrowIcon,
|
|
122
|
+
.iconOnHoverReadonly .arrowIcon,
|
|
123
|
+
.iconOnHoverReadonly:hover .arrowIcon {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
visibility: hidden;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.iconOnHoverStyle:hover .arrowIcon {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
visibility: visible;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.loader {
|
|
134
|
+
padding: var(--zd_size10) ;
|
|
135
135
|
}
|
|
@@ -51,6 +51,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
51
51
|
|
|
52
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
53
53
|
|
|
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
|
+
|
|
54
56
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
55
57
|
|
|
56
58
|
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); } }
|
|
@@ -208,7 +210,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
208
210
|
htmlId = _this$props.htmlId,
|
|
209
211
|
needEffect = _this$props.needEffect,
|
|
210
212
|
isLoading = _this$props.isLoading,
|
|
211
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
213
|
+
dataSelectorId = _this$props.dataSelectorId,
|
|
214
|
+
customProps = _this$props.customProps;
|
|
215
|
+
var _customProps$suggesti = customProps.suggestionsProps,
|
|
216
|
+
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
212
217
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
213
218
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
214
219
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -341,7 +346,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
341
346
|
a11y: {
|
|
342
347
|
role: 'heading'
|
|
343
348
|
}
|
|
344
|
-
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
349
|
+
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
345
350
|
activeId: selectedId,
|
|
346
351
|
suggestions: suggestions,
|
|
347
352
|
getRef: _this2.suggestionItemRef,
|
|
@@ -357,7 +362,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
357
362
|
ariaParentRole: 'listbox',
|
|
358
363
|
role: 'option'
|
|
359
364
|
}
|
|
360
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
365
|
+
}, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
361
366
|
isLoading: isFetchingOptions,
|
|
362
367
|
options: options,
|
|
363
368
|
searchString: searchStr,
|
|
@@ -45,6 +45,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
45
45
|
|
|
46
46
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
47
47
|
|
|
48
|
+
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); }
|
|
49
|
+
|
|
48
50
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
49
51
|
|
|
50
52
|
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); } }
|
|
@@ -410,7 +412,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
410
412
|
i18nKeys = _this$props7.i18nKeys,
|
|
411
413
|
htmlId = _this$props7.htmlId,
|
|
412
414
|
isLoading = _this$props7.isLoading,
|
|
413
|
-
dataSelectorId = _this$props7.dataSelectorId
|
|
415
|
+
dataSelectorId = _this$props7.dataSelectorId,
|
|
416
|
+
customProps = _this$props7.customProps;
|
|
417
|
+
var _customProps$listItem = customProps.listItemProps,
|
|
418
|
+
listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
|
|
414
419
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
415
420
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
416
421
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -536,7 +541,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
536
541
|
var iconName = options.iconName,
|
|
537
542
|
iconSize = options.iconSize,
|
|
538
543
|
iconColor = options.iconColor;
|
|
539
|
-
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
544
|
+
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
|
|
540
545
|
key: options[idKey],
|
|
541
546
|
value: options[valueKey],
|
|
542
547
|
size: "medium",
|
|
@@ -560,7 +565,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
560
565
|
ariaSelected: selectedId === options[idKey],
|
|
561
566
|
ariaLabel: options[valueKey]
|
|
562
567
|
}
|
|
563
|
-
});
|
|
568
|
+
}, listItemProps));
|
|
564
569
|
})) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
565
570
|
isLoading: isFetchingOptions,
|
|
566
571
|
options: options,
|
|
@@ -80,7 +80,8 @@ var GroupSelect_defaultProps = {
|
|
|
80
80
|
isSearchClearOnClose: true,
|
|
81
81
|
i18nKeys: {},
|
|
82
82
|
iconOnHover: false,
|
|
83
|
-
isLoading: false
|
|
83
|
+
isLoading: false,
|
|
84
|
+
customProps: {}
|
|
84
85
|
};
|
|
85
86
|
exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
|
|
86
87
|
var SelectWithAvatar_defaultProps = {
|
|
@@ -105,7 +106,8 @@ var SelectWithAvatar_defaultProps = {
|
|
|
105
106
|
isSearchClearOnClose: true,
|
|
106
107
|
i18nKeys: {},
|
|
107
108
|
needEffect: true,
|
|
108
|
-
isLoading: false
|
|
109
|
+
isLoading: false,
|
|
110
|
+
customProps: {}
|
|
109
111
|
};
|
|
110
112
|
exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
|
|
111
113
|
var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
@@ -117,5 +119,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
|
117
119
|
needListBorder: false,
|
|
118
120
|
needSearch: false,
|
|
119
121
|
boxSize: 'default'
|
|
120
|
-
}, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _SelectWithIcon_defau);
|
|
122
|
+
}, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _SelectWithIcon_defau);
|
|
121
123
|
exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;
|
|
@@ -186,7 +186,8 @@ var GroupSelect_propTypes = {
|
|
|
186
186
|
}),
|
|
187
187
|
isLoading: _propTypes["default"].bool,
|
|
188
188
|
dataSelectorId: _propTypes["default"].string,
|
|
189
|
-
isDefaultSelectValue: _propTypes["default"].bool
|
|
189
|
+
isDefaultSelectValue: _propTypes["default"].bool,
|
|
190
|
+
customProps: _propTypes["default"].string
|
|
190
191
|
};
|
|
191
192
|
exports.GroupSelect_propTypes = GroupSelect_propTypes;
|
|
192
193
|
|
|
@@ -249,7 +250,8 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
|
|
|
249
250
|
htmlId: _propTypes["default"].string,
|
|
250
251
|
needEffect: _propTypes["default"].bool,
|
|
251
252
|
isLoading: _propTypes["default"].bool,
|
|
252
|
-
dataSelectorId: _propTypes["default"].string
|
|
253
|
+
dataSelectorId: _propTypes["default"].string,
|
|
254
|
+
customProps: _propTypes["default"].string
|
|
253
255
|
});
|
|
254
256
|
|
|
255
257
|
exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
|
|
@@ -305,6 +307,7 @@ var SelectWithIcon_propTypes = {
|
|
|
305
307
|
searchBoxSize: _propTypes["default"].string,
|
|
306
308
|
needResponsive: _propTypes["default"].bool,
|
|
307
309
|
boxSize: _propTypes["default"].string,
|
|
308
|
-
emptyMessage: _propTypes["default"].string
|
|
310
|
+
emptyMessage: _propTypes["default"].string,
|
|
311
|
+
customProps: _propTypes["default"].string
|
|
309
312
|
};
|
|
310
313
|
exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
.varClass {
|
|
2
|
-
/* stencils default variables */
|
|
3
|
-
--stencil_height: var(--zd_size9);
|
|
4
|
-
--stencil_width: 100%;
|
|
5
|
-
--stencil_border_radius: 5px;
|
|
6
|
-
}
|
|
7
|
-
.container {
|
|
8
|
-
composes: varClass;
|
|
9
|
-
height: var(--stencil_height);
|
|
10
|
-
width: var(--stencil_width);
|
|
11
|
-
border-radius: var(--stencil_border_radius);
|
|
12
|
-
}
|
|
13
|
-
.stencil {
|
|
14
|
-
background-size: 800px 1px;
|
|
15
|
-
}
|
|
16
|
-
[dir=ltr] .stencil {
|
|
17
|
-
animation-name: placeHolderShimmer-ltr ;
|
|
18
|
-
animation-fill-mode: forwards;
|
|
19
|
-
animation-iteration-count: infinite;
|
|
20
|
-
animation-duration: var(--zd_transition10);
|
|
21
|
-
animation-timing-function: linear;
|
|
22
|
-
}
|
|
23
|
-
[dir=rtl] .stencil {
|
|
24
|
-
animation-name: placeHolderShimmer-rtl ;
|
|
25
|
-
animation-fill-mode: forwards;
|
|
26
|
-
animation-iteration-count: infinite;
|
|
27
|
-
animation-duration: var(--zd_transition10);
|
|
28
|
-
animation-timing-function: linear;
|
|
29
|
-
}
|
|
30
|
-
@keyframes placeHolderShimmer-ltr {
|
|
31
|
-
0% {
|
|
32
|
-
background-position: calc(var(--zd_size468) * -1) 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
100% {
|
|
36
|
-
background-position: var(--zd_size468) 0;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
@keyframes placeHolderShimmer-rtl {
|
|
40
|
-
0% {
|
|
41
|
-
background-position: calc(100% - (var(--zd_size468) * -1)) 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
100% {
|
|
45
|
-
background-position: var(--zd_size468) 100%;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.rectangular {
|
|
50
|
-
composes: stencil;
|
|
51
|
-
--stencil_height: var(--zd_size9);
|
|
52
|
-
--stencil_border_radius: 5px;
|
|
53
|
-
}
|
|
54
|
-
.primary {
|
|
55
|
-
background-color: var(--zdt_stencil_primary_bg);
|
|
56
|
-
background-image: var(--zdt_stencil_primary_gradient_bg);
|
|
57
|
-
}
|
|
58
|
-
.secondary {
|
|
59
|
-
background-color: var(--zdt_stencil_secondary_bg);
|
|
60
|
-
background-image: var(--zdt_stencil_secondary_gradient_bg);
|
|
61
|
-
}
|
|
62
|
-
.dark {
|
|
63
|
-
background-color: var(--zdt_stencil_dark_bg);
|
|
64
|
-
background-image: var(--zdt_stencil_dark_gradient_bg);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.small {
|
|
68
|
-
--stencil_width: var(--zd_size110);
|
|
69
|
-
}
|
|
70
|
-
.default {
|
|
71
|
-
--stencil_width: 100%;
|
|
72
|
-
}
|
|
73
|
-
.medium {
|
|
74
|
-
--stencil_width: var(--zd_size170);
|
|
75
|
-
}
|
|
76
|
-
.large {
|
|
77
|
-
--stencil_width: var(--zd_size220);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.circle {
|
|
81
|
-
composes: stencil;
|
|
82
|
-
--stencil_border_radius: 50%;
|
|
83
|
-
}
|
|
84
|
-
.clarge {
|
|
85
|
-
--stencil_width: var(--zd_size42);
|
|
86
|
-
--stencil_height: var(--zd_size42);
|
|
87
|
-
}
|
|
88
|
-
.cmedium,
|
|
89
|
-
.cdefault {
|
|
90
|
-
--stencil_width: var(--zd_size30);
|
|
91
|
-
--stencil_height: var(--zd_size30);
|
|
92
|
-
}
|
|
93
|
-
.csmall {
|
|
94
|
-
--stencil_width: var(--zd_size20);
|
|
95
|
-
--stencil_height: var(--zd_size20);
|
|
96
|
-
}
|
|
1
|
+
.varClass {
|
|
2
|
+
/* stencils default variables */
|
|
3
|
+
--stencil_height: var(--zd_size9);
|
|
4
|
+
--stencil_width: 100%;
|
|
5
|
+
--stencil_border_radius: 5px;
|
|
6
|
+
}
|
|
7
|
+
.container {
|
|
8
|
+
composes: varClass;
|
|
9
|
+
height: var(--stencil_height);
|
|
10
|
+
width: var(--stencil_width);
|
|
11
|
+
border-radius: var(--stencil_border_radius);
|
|
12
|
+
}
|
|
13
|
+
.stencil {
|
|
14
|
+
background-size: 800px 1px;
|
|
15
|
+
}
|
|
16
|
+
[dir=ltr] .stencil {
|
|
17
|
+
animation-name: placeHolderShimmer-ltr ;
|
|
18
|
+
animation-fill-mode: forwards;
|
|
19
|
+
animation-iteration-count: infinite;
|
|
20
|
+
animation-duration: var(--zd_transition10);
|
|
21
|
+
animation-timing-function: linear;
|
|
22
|
+
}
|
|
23
|
+
[dir=rtl] .stencil {
|
|
24
|
+
animation-name: placeHolderShimmer-rtl ;
|
|
25
|
+
animation-fill-mode: forwards;
|
|
26
|
+
animation-iteration-count: infinite;
|
|
27
|
+
animation-duration: var(--zd_transition10);
|
|
28
|
+
animation-timing-function: linear;
|
|
29
|
+
}
|
|
30
|
+
@keyframes placeHolderShimmer-ltr {
|
|
31
|
+
0% {
|
|
32
|
+
background-position: calc(var(--zd_size468) * -1) 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
background-position: var(--zd_size468) 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@keyframes placeHolderShimmer-rtl {
|
|
40
|
+
0% {
|
|
41
|
+
background-position: calc(100% - (var(--zd_size468) * -1)) 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
100% {
|
|
45
|
+
background-position: var(--zd_size468) 100%;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.rectangular {
|
|
50
|
+
composes: stencil;
|
|
51
|
+
--stencil_height: var(--zd_size9);
|
|
52
|
+
--stencil_border_radius: 5px;
|
|
53
|
+
}
|
|
54
|
+
.primary {
|
|
55
|
+
background-color: var(--zdt_stencil_primary_bg);
|
|
56
|
+
background-image: var(--zdt_stencil_primary_gradient_bg);
|
|
57
|
+
}
|
|
58
|
+
.secondary {
|
|
59
|
+
background-color: var(--zdt_stencil_secondary_bg);
|
|
60
|
+
background-image: var(--zdt_stencil_secondary_gradient_bg);
|
|
61
|
+
}
|
|
62
|
+
.dark {
|
|
63
|
+
background-color: var(--zdt_stencil_dark_bg);
|
|
64
|
+
background-image: var(--zdt_stencil_dark_gradient_bg);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.small {
|
|
68
|
+
--stencil_width: var(--zd_size110);
|
|
69
|
+
}
|
|
70
|
+
.default {
|
|
71
|
+
--stencil_width: 100%;
|
|
72
|
+
}
|
|
73
|
+
.medium {
|
|
74
|
+
--stencil_width: var(--zd_size170);
|
|
75
|
+
}
|
|
76
|
+
.large {
|
|
77
|
+
--stencil_width: var(--zd_size220);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.circle {
|
|
81
|
+
composes: stencil;
|
|
82
|
+
--stencil_border_radius: 50%;
|
|
83
|
+
}
|
|
84
|
+
.clarge {
|
|
85
|
+
--stencil_width: var(--zd_size42);
|
|
86
|
+
--stencil_height: var(--zd_size42);
|
|
87
|
+
}
|
|
88
|
+
.cmedium,
|
|
89
|
+
.cdefault {
|
|
90
|
+
--stencil_width: var(--zd_size30);
|
|
91
|
+
--stencil_height: var(--zd_size30);
|
|
92
|
+
}
|
|
93
|
+
.csmall {
|
|
94
|
+
--stencil_width: var(--zd_size20);
|
|
95
|
+
--stencil_height: var(--zd_size20);
|
|
96
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* switch circle default variables */
|
|
7
7
|
--switch_circle_bg_color: var(--zdt_switch_circle_bg);
|
|
8
8
|
--switch_circle_border_radius: 50px;
|
|
9
|
-
--switch_cricle_box_shadow: var(--
|
|
9
|
+
--switch_cricle_box_shadow: var(--zd_bs_switch_default);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.container {
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.checked+.label {
|
|
52
|
-
/* css:validation:ignore */
|
|
53
52
|
box-shadow: inset 0 0 0 var(--zd_size10) var(--switch_on_bg_color);
|
|
54
53
|
}
|
|
55
54
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $Id$ */
|
|
2
|
-
.container {
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
1
|
+
/* $Id$ */
|
|
2
|
+
.container {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
package/lib/Tab/Tabs.js
CHANGED
|
@@ -195,9 +195,9 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
|
|
|
195
195
|
tabKeys = _this$state.tabKeys;
|
|
196
196
|
|
|
197
197
|
if (prevProps.children && children) {
|
|
198
|
-
/**
|
|
199
|
-
* To recalculate the dimensions of tabs we are checking the children length.
|
|
200
|
-
* and also checking the tab id and their order.
|
|
198
|
+
/**
|
|
199
|
+
* To recalculate the dimensions of tabs we are checking the children length.
|
|
200
|
+
* and also checking the tab id and their order.
|
|
201
201
|
*/
|
|
202
202
|
var newTabKeys = [];
|
|
203
203
|
|
|
@@ -382,14 +382,14 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
|
|
|
382
382
|
});
|
|
383
383
|
|
|
384
384
|
if (selectedTabDimension > totalDimension) {
|
|
385
|
-
/* let { align } = this.props;
|
|
386
|
-
let newDim = `${remConvert(totalDimension)}rem`;
|
|
387
|
-
let newTabs;
|
|
388
|
-
if (align === 'vertical') {
|
|
389
|
-
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
|
|
390
|
-
} else {
|
|
391
|
-
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
|
|
392
|
-
}
|
|
385
|
+
/* let { align } = this.props;
|
|
386
|
+
let newDim = `${remConvert(totalDimension)}rem`;
|
|
387
|
+
let newTabs;
|
|
388
|
+
if (align === 'vertical') {
|
|
389
|
+
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
|
|
390
|
+
} else {
|
|
391
|
+
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
|
|
392
|
+
}
|
|
393
393
|
mainTabs = newTabs; */
|
|
394
394
|
this.setMaxDim(totalDimension);
|
|
395
395
|
}
|