@zohodesk/dot 1.0.0-beta.208 → 1.0.0-beta.209
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/README.md +5 -0
- package/es/ActionButton/ActionButton.js +10 -6
- package/es/ActionButton/ActionButton.module.css +1 -0
- package/es/Link/Link.js +1 -1
- package/es/alert/AlertLookup/AlertLookup.js +8 -4
- package/es/version2/lookup/AlertLookup/AlertLookup.js +8 -4
- package/lib/ActionButton/ActionButton.js +10 -6
- package/lib/ActionButton/ActionButton.module.css +1 -0
- package/lib/Link/Link.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.js +8 -4
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +8 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.0.0-beta.209
|
|
6
|
+
|
|
7
|
+
- ActionButton => removeChildrenTooltip prop added , Loader Bg Fixed for Primary Palette
|
|
8
|
+
- AlertLookup,AlertLookup v2 => onEsc Prop added
|
|
9
|
+
|
|
5
10
|
# 1.0.0-beta.208
|
|
6
11
|
|
|
7
12
|
- Read-only and disable class and style added in All Fields like TextBoxField, MultiSelect Field etc..
|
|
@@ -46,7 +46,8 @@ export class ActionButton extends React.Component {
|
|
|
46
46
|
dropBoxClass,
|
|
47
47
|
isBoxPaddingNeed,
|
|
48
48
|
getContainerRef,
|
|
49
|
-
getTargetRef
|
|
49
|
+
getTargetRef,
|
|
50
|
+
removeChildrenTooltip
|
|
50
51
|
} = this.props;
|
|
51
52
|
return /*#__PURE__*/React.createElement(Container, {
|
|
52
53
|
alignBox: "row",
|
|
@@ -64,7 +65,8 @@ export class ActionButton extends React.Component {
|
|
|
64
65
|
size: "medium",
|
|
65
66
|
customClass: {
|
|
66
67
|
customButton: style.btn
|
|
67
|
-
}
|
|
68
|
+
},
|
|
69
|
+
text: text
|
|
68
70
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
69
71
|
flexible: true,
|
|
70
72
|
onClick: onClick,
|
|
@@ -86,9 +88,9 @@ export class ActionButton extends React.Component {
|
|
|
86
88
|
}) : null, text ? /*#__PURE__*/React.createElement(Box, {
|
|
87
89
|
shrink: true,
|
|
88
90
|
className: style.txt,
|
|
89
|
-
"data-title": text
|
|
91
|
+
"data-title": removeChildrenTooltip ? null : text
|
|
90
92
|
}, text) : null)), subText ? /*#__PURE__*/React.createElement(Box, {
|
|
91
|
-
"data-title": subText,
|
|
93
|
+
"data-title": removeChildrenTooltip ? null : subText,
|
|
92
94
|
className: style.subTxt
|
|
93
95
|
}, subText) : null)), children ? /*#__PURE__*/React.createElement(Box, {
|
|
94
96
|
onClick: onClick ? !onHover && this.handleTogglePopup : undefined,
|
|
@@ -130,7 +132,8 @@ ActionButton.defaultProps = {
|
|
|
130
132
|
dropBoxClass: '',
|
|
131
133
|
arrowBoxSize: 'medium',
|
|
132
134
|
isBoxPaddingNeed: true,
|
|
133
|
-
palette: 'primaryFilled'
|
|
135
|
+
palette: 'primaryFilled',
|
|
136
|
+
removeChildrenTooltip: false
|
|
134
137
|
};
|
|
135
138
|
ActionButton.propTypes = {
|
|
136
139
|
arrowBoxDataId: PropTypes.string,
|
|
@@ -157,7 +160,8 @@ ActionButton.propTypes = {
|
|
|
157
160
|
subText: PropTypes.string,
|
|
158
161
|
text: PropTypes.string,
|
|
159
162
|
getContainerRef: PropTypes.func,
|
|
160
|
-
getTargetRef: PropTypes.func
|
|
163
|
+
getTargetRef: PropTypes.func,
|
|
164
|
+
removeChildrenTooltip: PropTypes.bool
|
|
161
165
|
};
|
|
162
166
|
ActionButton.docs = {
|
|
163
167
|
componentGroup: 'Atom'
|
package/es/Link/Link.js
CHANGED
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import style from './Link.module.css';
|
|
6
|
-
import LinkContext from './LinkContext
|
|
6
|
+
import LinkContext from './LinkContext';
|
|
7
7
|
export default class Link extends React.Component {
|
|
8
8
|
constructor(props, context) {
|
|
9
9
|
super(props, context);
|
|
@@ -39,12 +39,14 @@ export default class AlertLookup extends Component {
|
|
|
39
39
|
let {
|
|
40
40
|
onSubmitClick,
|
|
41
41
|
onCancelClick,
|
|
42
|
-
isActive
|
|
42
|
+
isActive,
|
|
43
|
+
onEsc,
|
|
44
|
+
onClose
|
|
43
45
|
} = this.props;
|
|
44
46
|
|
|
45
47
|
if (e.keyCode === 27 && isActive) {
|
|
46
48
|
e && e.preventDefault && e.preventDefault();
|
|
47
|
-
onCancelClick && onCancelClick(e);
|
|
49
|
+
onEsc == 'close' ? onClose && onClose(e) : onCancelClick && onCancelClick(e);
|
|
48
50
|
} else if (e.keyCode === 13 && isActive) {
|
|
49
51
|
e && e.preventDefault && e.preventDefault();
|
|
50
52
|
onSubmitClick && onSubmitClick(e);
|
|
@@ -169,7 +171,8 @@ AlertLookup.propTypes = {
|
|
|
169
171
|
AlertHeaderProps: PropTypes.object,
|
|
170
172
|
PrimaryButtonProps: PropTypes.object,
|
|
171
173
|
SecondaryButtonProps: PropTypes.object
|
|
172
|
-
})
|
|
174
|
+
}),
|
|
175
|
+
onEsc: PropTypes.oneOf(['close', 'cancel'])
|
|
173
176
|
};
|
|
174
177
|
AlertLookup.defaultProps = {
|
|
175
178
|
isActive: false,
|
|
@@ -181,7 +184,8 @@ AlertLookup.defaultProps = {
|
|
|
181
184
|
dataId: 'alertPopup',
|
|
182
185
|
customClass: '',
|
|
183
186
|
isDefaultFocus: true,
|
|
184
|
-
customProps: {}
|
|
187
|
+
customProps: {},
|
|
188
|
+
onEsc: 'cancel'
|
|
185
189
|
};
|
|
186
190
|
|
|
187
191
|
if (false) {
|
|
@@ -62,12 +62,14 @@ export default class AlertLookup extends Component {
|
|
|
62
62
|
let {
|
|
63
63
|
onSubmitClick,
|
|
64
64
|
onCancelClick,
|
|
65
|
-
isActive
|
|
65
|
+
isActive,
|
|
66
|
+
onEsc,
|
|
67
|
+
onClose
|
|
66
68
|
} = this.props;
|
|
67
69
|
|
|
68
70
|
if (e.keyCode === 27 && isActive) {
|
|
69
71
|
e && e.preventDefault && e.preventDefault();
|
|
70
|
-
onCancelClick && onCancelClick(e);
|
|
72
|
+
onEsc == 'close' ? onClose && onClose(e) : onCancelClick && onCancelClick(e);
|
|
71
73
|
} else if (e.keyCode === 13 && isActive) {
|
|
72
74
|
e && e.preventDefault && e.preventDefault();
|
|
73
75
|
onSubmitClick && onSubmitClick(e);
|
|
@@ -227,7 +229,8 @@ AlertLookup.propTypes = {
|
|
|
227
229
|
align: PropTypes.oneOf(['top', 'vertical']),
|
|
228
230
|
childAnimationName: PropTypes.oneOf(['expand', 'flyDown']),
|
|
229
231
|
isHtmlContent: PropTypes.bool,
|
|
230
|
-
scroll: PropTypes.oneOf(['horizontal', 'vertical', 'both'])
|
|
232
|
+
scroll: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
|
|
233
|
+
onEsc: PropTypes.oneOf(['close', 'cancel'])
|
|
231
234
|
};
|
|
232
235
|
AlertLookup.defaultProps = {
|
|
233
236
|
isActive: false,
|
|
@@ -239,7 +242,8 @@ AlertLookup.defaultProps = {
|
|
|
239
242
|
align: 'top',
|
|
240
243
|
childAnimationName: 'flyDown',
|
|
241
244
|
isHtmlContent: false,
|
|
242
|
-
scroll: ''
|
|
245
|
+
scroll: '',
|
|
246
|
+
onEsc: 'cancel'
|
|
243
247
|
};
|
|
244
248
|
|
|
245
249
|
if (false) {
|
|
@@ -97,7 +97,8 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
97
97
|
dropBoxClass = _this$props2.dropBoxClass,
|
|
98
98
|
isBoxPaddingNeed = _this$props2.isBoxPaddingNeed,
|
|
99
99
|
getContainerRef = _this$props2.getContainerRef,
|
|
100
|
-
getTargetRef = _this$props2.getTargetRef
|
|
100
|
+
getTargetRef = _this$props2.getTargetRef,
|
|
101
|
+
removeChildrenTooltip = _this$props2.removeChildrenTooltip;
|
|
101
102
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
102
103
|
alignBox: "row",
|
|
103
104
|
isCover: false,
|
|
@@ -114,7 +115,8 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
114
115
|
size: "medium",
|
|
115
116
|
customClass: {
|
|
116
117
|
customButton: _ActionButtonModule["default"].btn
|
|
117
|
-
}
|
|
118
|
+
},
|
|
119
|
+
text: text
|
|
118
120
|
})) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
119
121
|
flexible: true,
|
|
120
122
|
onClick: onClick,
|
|
@@ -136,9 +138,9 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
136
138
|
}) : null, text ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
137
139
|
shrink: true,
|
|
138
140
|
className: _ActionButtonModule["default"].txt,
|
|
139
|
-
"data-title": text
|
|
141
|
+
"data-title": removeChildrenTooltip ? null : text
|
|
140
142
|
}, text) : null)), subText ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
141
|
-
"data-title": subText,
|
|
143
|
+
"data-title": removeChildrenTooltip ? null : subText,
|
|
142
144
|
className: _ActionButtonModule["default"].subTxt
|
|
143
145
|
}, subText) : null)), children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
144
146
|
onClick: onClick ? !onHover && this.handleTogglePopup : undefined,
|
|
@@ -184,7 +186,8 @@ ActionButton.defaultProps = {
|
|
|
184
186
|
dropBoxClass: '',
|
|
185
187
|
arrowBoxSize: 'medium',
|
|
186
188
|
isBoxPaddingNeed: true,
|
|
187
|
-
palette: 'primaryFilled'
|
|
189
|
+
palette: 'primaryFilled',
|
|
190
|
+
removeChildrenTooltip: false
|
|
188
191
|
};
|
|
189
192
|
ActionButton.propTypes = {
|
|
190
193
|
arrowBoxDataId: _propTypes["default"].string,
|
|
@@ -211,7 +214,8 @@ ActionButton.propTypes = {
|
|
|
211
214
|
subText: _propTypes["default"].string,
|
|
212
215
|
text: _propTypes["default"].string,
|
|
213
216
|
getContainerRef: _propTypes["default"].func,
|
|
214
|
-
getTargetRef: _propTypes["default"].func
|
|
217
|
+
getTargetRef: _propTypes["default"].func,
|
|
218
|
+
removeChildrenTooltip: _propTypes["default"].bool
|
|
215
219
|
};
|
|
216
220
|
ActionButton.docs = {
|
|
217
221
|
componentGroup: 'Atom'
|
package/lib/Link/Link.js
CHANGED
|
@@ -13,7 +13,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _LinkModule = _interopRequireDefault(require("./Link.module.css"));
|
|
15
15
|
|
|
16
|
-
var _LinkContext = _interopRequireDefault(require("./LinkContext
|
|
16
|
+
var _LinkContext = _interopRequireDefault(require("./LinkContext"));
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
@@ -88,11 +88,13 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
88
88
|
var _this$props = this.props,
|
|
89
89
|
onSubmitClick = _this$props.onSubmitClick,
|
|
90
90
|
onCancelClick = _this$props.onCancelClick,
|
|
91
|
-
isActive = _this$props.isActive
|
|
91
|
+
isActive = _this$props.isActive,
|
|
92
|
+
onEsc = _this$props.onEsc,
|
|
93
|
+
onClose = _this$props.onClose;
|
|
92
94
|
|
|
93
95
|
if (e.keyCode === 27 && isActive) {
|
|
94
96
|
e && e.preventDefault && e.preventDefault();
|
|
95
|
-
onCancelClick && onCancelClick(e);
|
|
97
|
+
onEsc == 'close' ? onClose && onClose(e) : onCancelClick && onCancelClick(e);
|
|
96
98
|
} else if (e.keyCode === 13 && isActive) {
|
|
97
99
|
e && e.preventDefault && e.preventDefault();
|
|
98
100
|
onSubmitClick && onSubmitClick(e);
|
|
@@ -222,7 +224,8 @@ AlertLookup.propTypes = {
|
|
|
222
224
|
AlertHeaderProps: _propTypes["default"].object,
|
|
223
225
|
PrimaryButtonProps: _propTypes["default"].object,
|
|
224
226
|
SecondaryButtonProps: _propTypes["default"].object
|
|
225
|
-
})
|
|
227
|
+
}),
|
|
228
|
+
onEsc: _propTypes["default"].oneOf(['close', 'cancel'])
|
|
226
229
|
};
|
|
227
230
|
AlertLookup.defaultProps = {
|
|
228
231
|
isActive: false,
|
|
@@ -234,7 +237,8 @@ AlertLookup.defaultProps = {
|
|
|
234
237
|
dataId: 'alertPopup',
|
|
235
238
|
customClass: '',
|
|
236
239
|
isDefaultFocus: true,
|
|
237
|
-
customProps: {}
|
|
240
|
+
customProps: {},
|
|
241
|
+
onEsc: 'cancel'
|
|
238
242
|
};
|
|
239
243
|
|
|
240
244
|
if (false) {
|
|
@@ -114,11 +114,13 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
114
114
|
var _this$props = this.props,
|
|
115
115
|
onSubmitClick = _this$props.onSubmitClick,
|
|
116
116
|
onCancelClick = _this$props.onCancelClick,
|
|
117
|
-
isActive = _this$props.isActive
|
|
117
|
+
isActive = _this$props.isActive,
|
|
118
|
+
onEsc = _this$props.onEsc,
|
|
119
|
+
onClose = _this$props.onClose;
|
|
118
120
|
|
|
119
121
|
if (e.keyCode === 27 && isActive) {
|
|
120
122
|
e && e.preventDefault && e.preventDefault();
|
|
121
|
-
onCancelClick && onCancelClick(e);
|
|
123
|
+
onEsc == 'close' ? onClose && onClose(e) : onCancelClick && onCancelClick(e);
|
|
122
124
|
} else if (e.keyCode === 13 && isActive) {
|
|
123
125
|
e && e.preventDefault && e.preventDefault();
|
|
124
126
|
onSubmitClick && onSubmitClick(e);
|
|
@@ -289,7 +291,8 @@ AlertLookup.propTypes = {
|
|
|
289
291
|
align: _propTypes["default"].oneOf(['top', 'vertical']),
|
|
290
292
|
childAnimationName: _propTypes["default"].oneOf(['expand', 'flyDown']),
|
|
291
293
|
isHtmlContent: _propTypes["default"].bool,
|
|
292
|
-
scroll: _propTypes["default"].oneOf(['horizontal', 'vertical', 'both'])
|
|
294
|
+
scroll: _propTypes["default"].oneOf(['horizontal', 'vertical', 'both']),
|
|
295
|
+
onEsc: _propTypes["default"].oneOf(['close', 'cancel'])
|
|
293
296
|
};
|
|
294
297
|
AlertLookup.defaultProps = {
|
|
295
298
|
isActive: false,
|
|
@@ -301,7 +304,8 @@ AlertLookup.defaultProps = {
|
|
|
301
304
|
align: 'top',
|
|
302
305
|
childAnimationName: 'flyDown',
|
|
303
306
|
isHtmlContent: false,
|
|
304
|
-
scroll: ''
|
|
307
|
+
scroll: '',
|
|
308
|
+
onEsc: 'cancel'
|
|
305
309
|
};
|
|
306
310
|
|
|
307
311
|
if (false) {
|