@zohodesk/dot 1.0.0-temp-124 → 1.0.0-temp-125

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.
@@ -27,8 +27,7 @@ export default class AvatarStatus extends React.Component {
27
27
  customTextClass,
28
28
  statusTitle,
29
29
  customProps,
30
- dataSelectorId,
31
- needDefaultBorder
30
+ dataSelectorId
32
31
  } = this.props;
33
32
  let {
34
33
  AvatarStatusProps = {},
@@ -53,7 +52,6 @@ export default class AvatarStatus extends React.Component {
53
52
  initial: initial,
54
53
  shape: shape,
55
54
  needTitle: needTitle,
56
- needDefaultBorder: needDefaultBorder,
57
55
  needBorder: needBorder
58
56
  }, AvatarProps)), /*#__PURE__*/React.createElement("span", {
59
57
  "data-title": statusTitle,
@@ -6,7 +6,5 @@ export const defaultProps = {
6
6
  palette: 'info',
7
7
  statusTitle: '',
8
8
  customProps: {},
9
- dataSelectorId: 'avatarStatus',
10
- needDefaultBorder: false,
11
- needBorder: false
9
+ dataSelectorId: 'avatarStatus'
12
10
  };
@@ -13,8 +13,6 @@ export const propTypes = {
13
13
  size: PropTypes.string,
14
14
  src: PropTypes.string,
15
15
  state: PropTypes.string,
16
- needDefaultBorder: PropTypes.bool,
17
- needBorder: PropTypes.bool,
18
16
  statusTitle: PropTypes.string,
19
17
  textPalette: PropTypes.oneOf(['white', 'black']),
20
18
  title: PropTypes.string,
@@ -22,8 +22,7 @@ export default class AvatarWithTeam extends React.Component {
22
22
  teamClassName,
23
23
  borderOnActive,
24
24
  customProps,
25
- dataSelectorId,
26
- teamBorderActive
25
+ dataSelectorId
27
26
  } = this.props;
28
27
  let {
29
28
  AvatarWithTeamProps = {},
@@ -82,7 +81,7 @@ export default class AvatarWithTeam extends React.Component {
82
81
  customClass: {
83
82
  customAvatar: customTextClass
84
83
  },
85
- borderOnActive: teamBorderActive
84
+ borderOnActive: borderOnActive
86
85
  }, AvatarTeam2Props))) : null);
87
86
  }
88
87
  }
@@ -4,6 +4,5 @@ export const defaultProps = {
4
4
  teamClassName: '',
5
5
  borderOnActive: false,
6
6
  customProps: {},
7
- dataSelectorId: 'avatarWithTeam',
8
- teamBorderActive: true
7
+ dataSelectorId: 'avatarWithTeam'
9
8
  };
@@ -14,7 +14,6 @@ export const propTypes = {
14
14
  textPalette: PropTypes.oneOf(['white', 'black']),
15
15
  title: PropTypes.string,
16
16
  borderOnActive: PropTypes.bool,
17
- teamBorderActive: PropTypes.bool,
18
17
  customProps: PropTypes.shape({
19
18
  AvatarWithTeamProps: PropTypes.object,
20
19
  Avatar1Props: PropTypes.object,
@@ -1,3 +1,4 @@
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); }
1
2
  import React, { Component } from 'react';
2
3
  import { defaultProps } from './props/defaultProps';
3
4
  import { propTypes } from './props/propTypes';
@@ -30,9 +31,10 @@ export default class AvatarFlip extends Component {
30
31
  tourId,
31
32
  iconSize,
32
33
  isFilledCheckbox,
33
- channelTitle
34
+ channelTitle,
35
+ customProps
34
36
  } = this.props;
35
- return /*#__PURE__*/React.createElement(FlipCard, {
37
+ return /*#__PURE__*/React.createElement(FlipCard, _extends({
36
38
  id: id,
37
39
  action: action,
38
40
  name: name,
@@ -61,7 +63,7 @@ export default class AvatarFlip extends Component {
61
63
  tourId: tourId,
62
64
  isFilledCheckbox: isFilledCheckbox,
63
65
  channelTitle: channelTitle
64
- });
66
+ }, customProps));
65
67
  }
66
68
  }
67
69
  AvatarFlip.propTypes = propTypes;
@@ -50,8 +50,7 @@ var AvatarStatus = /*#__PURE__*/function (_React$Component) {
50
50
  customTextClass = _this$props.customTextClass,
51
51
  statusTitle = _this$props.statusTitle,
52
52
  customProps = _this$props.customProps,
53
- dataSelectorId = _this$props.dataSelectorId,
54
- needDefaultBorder = _this$props.needDefaultBorder;
53
+ dataSelectorId = _this$props.dataSelectorId;
55
54
  var _customProps$AvatarSt = customProps.AvatarStatusProps,
56
55
  AvatarStatusProps = _customProps$AvatarSt === void 0 ? {} : _customProps$AvatarSt,
57
56
  _customProps$AvatarPr = customProps.AvatarProps,
@@ -75,7 +74,6 @@ var AvatarStatus = /*#__PURE__*/function (_React$Component) {
75
74
  initial: initial,
76
75
  shape: shape,
77
76
  needTitle: needTitle,
78
- needDefaultBorder: needDefaultBorder,
79
77
  needBorder: needBorder
80
78
  }, AvatarProps)), /*#__PURE__*/_react["default"].createElement("span", {
81
79
  "data-title": statusTitle,
@@ -12,8 +12,6 @@ var defaultProps = {
12
12
  palette: 'info',
13
13
  statusTitle: '',
14
14
  customProps: {},
15
- dataSelectorId: 'avatarStatus',
16
- needDefaultBorder: false,
17
- needBorder: false
15
+ dataSelectorId: 'avatarStatus'
18
16
  };
19
17
  exports.defaultProps = defaultProps;
@@ -4,27 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.propTypes = void 0;
7
- var _propTypes2 = _interopRequireDefault(require("prop-types"));
8
- var _propTypes;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
- var propTypes = (_propTypes = {
12
- className: _propTypes2["default"].string,
13
- customTextClass: _propTypes2["default"].string,
14
- dataId: _propTypes2["default"].string,
15
- initial: _propTypes2["default"].string,
16
- name: _propTypes2["default"].string,
17
- needBorder: _propTypes2["default"].bool,
18
- needTitle: _propTypes2["default"].bool,
19
- onClick: _propTypes2["default"].func,
20
- palette: _propTypes2["default"].oneOf(['primary', 'secondary', 'info', 'default']),
21
- shape: _propTypes2["default"].string,
22
- size: _propTypes2["default"].string,
23
- src: _propTypes2["default"].string,
24
- state: _propTypes2["default"].string,
25
- needDefaultBorder: _propTypes2["default"].bool
26
- }, _defineProperty(_propTypes, "needBorder", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusTitle", _propTypes2["default"].string), _defineProperty(_propTypes, "textPalette", _propTypes2["default"].oneOf(['white', 'black'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "dataSelectorId", _propTypes2["default"].string), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
27
- AvatarStatusProps: _propTypes2["default"].object,
28
- AvatarProps: _propTypes2["default"].object
29
- })), _propTypes);
9
+ var propTypes = {
10
+ className: _propTypes["default"].string,
11
+ customTextClass: _propTypes["default"].string,
12
+ dataId: _propTypes["default"].string,
13
+ initial: _propTypes["default"].string,
14
+ name: _propTypes["default"].string,
15
+ needBorder: _propTypes["default"].bool,
16
+ needTitle: _propTypes["default"].bool,
17
+ onClick: _propTypes["default"].func,
18
+ palette: _propTypes["default"].oneOf(['primary', 'secondary', 'info', 'default']),
19
+ shape: _propTypes["default"].string,
20
+ size: _propTypes["default"].string,
21
+ src: _propTypes["default"].string,
22
+ state: _propTypes["default"].string,
23
+ statusTitle: _propTypes["default"].string,
24
+ textPalette: _propTypes["default"].oneOf(['white', 'black']),
25
+ title: _propTypes["default"].string,
26
+ dataSelectorId: _propTypes["default"].string,
27
+ customProps: _propTypes["default"].shape({
28
+ AvatarStatusProps: _propTypes["default"].object,
29
+ AvatarProps: _propTypes["default"].object
30
+ })
31
+ };
30
32
  exports.propTypes = propTypes;
@@ -24,7 +24,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
24
24
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26
26
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
- /**** Methods ****/var AvatarUser = /*#__PURE__*/function (_React$Component) {
27
+ /**** Methods ****/
28
+ var AvatarUser = /*#__PURE__*/function (_React$Component) {
28
29
  _inherits(AvatarUser, _React$Component);
29
30
  var _super = _createSuper(AvatarUser);
30
31
  function AvatarUser() {
@@ -49,8 +49,7 @@ var AvatarWithTeam = /*#__PURE__*/function (_React$Component) {
49
49
  teamClassName = _this$props.teamClassName,
50
50
  borderOnActive = _this$props.borderOnActive,
51
51
  customProps = _this$props.customProps,
52
- dataSelectorId = _this$props.dataSelectorId,
53
- teamBorderActive = _this$props.teamBorderActive;
52
+ dataSelectorId = _this$props.dataSelectorId;
54
53
  var _customProps$AvatarWi = customProps.AvatarWithTeamProps,
55
54
  AvatarWithTeamProps = _customProps$AvatarWi === void 0 ? {} : _customProps$AvatarWi,
56
55
  _customProps$Avatar1P = customProps.Avatar1Props,
@@ -111,7 +110,7 @@ var AvatarWithTeam = /*#__PURE__*/function (_React$Component) {
111
110
  customClass: {
112
111
  customAvatar: customTextClass
113
112
  },
114
- borderOnActive: teamBorderActive
113
+ borderOnActive: borderOnActive
115
114
  }, AvatarTeam2Props))) : null);
116
115
  }
117
116
  }]);
@@ -10,7 +10,6 @@ var defaultProps = {
10
10
  teamClassName: '',
11
11
  borderOnActive: false,
12
12
  customProps: {},
13
- dataSelectorId: 'avatarWithTeam',
14
- teamBorderActive: true
13
+ dataSelectorId: 'avatarWithTeam'
15
14
  };
16
15
  exports.defaultProps = defaultProps;
@@ -21,7 +21,6 @@ var propTypes = {
21
21
  textPalette: _propTypes["default"].oneOf(['white', 'black']),
22
22
  title: _propTypes["default"].string,
23
23
  borderOnActive: _propTypes["default"].bool,
24
- teamBorderActive: _propTypes["default"].bool,
25
24
  customProps: _propTypes["default"].shape({
26
25
  AvatarWithTeamProps: _propTypes["default"].object,
27
26
  Avatar1Props: _propTypes["default"].object,
@@ -27,7 +27,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
27
27
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
28
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
29
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
- /* eslint-disable react/no-deprecated */var TextEditorWrapper = /*#__PURE__*/function (_Component) {
30
+ /* eslint-disable react/no-deprecated */
31
+ var TextEditorWrapper = /*#__PURE__*/function (_Component) {
31
32
  _inherits(TextEditorWrapper, _Component);
32
33
  var _super = _createSuper(TextEditorWrapper);
33
34
  function TextEditorWrapper(props) {
@@ -13,6 +13,7 @@ var _AvatarFlipModule = _interopRequireDefault(require("./AvatarFlip.module.css"
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
15
  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; }
16
+ 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); }
16
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
18
  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); } }
18
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -58,8 +59,9 @@ var AvatarFlip = /*#__PURE__*/function (_Component) {
58
59
  tourId = _this$props.tourId,
59
60
  iconSize = _this$props.iconSize,
60
61
  isFilledCheckbox = _this$props.isFilledCheckbox,
61
- channelTitle = _this$props.channelTitle;
62
- return /*#__PURE__*/_react["default"].createElement(_FlipCard["default"], {
62
+ channelTitle = _this$props.channelTitle,
63
+ customProps = _this$props.customProps;
64
+ return /*#__PURE__*/_react["default"].createElement(_FlipCard["default"], _extends({
63
65
  id: id,
64
66
  action: action,
65
67
  name: name,
@@ -88,7 +90,7 @@ var AvatarFlip = /*#__PURE__*/function (_Component) {
88
90
  tourId: tourId,
89
91
  isFilledCheckbox: isFilledCheckbox,
90
92
  channelTitle: channelTitle
91
- });
93
+ }, customProps));
92
94
  }
93
95
  }]);
94
96
  return AvatarFlip;
@@ -25,7 +25,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
25
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
26
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
27
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
- /*eslint-disable react/forbid-component-props */var Lookup = /*#__PURE__*/function (_Component) {
28
+ /*eslint-disable react/forbid-component-props */
29
+ var Lookup = /*#__PURE__*/function (_Component) {
29
30
  _inherits(Lookup, _Component);
30
31
  var _super = _createSuper(Lookup);
31
32
  function Lookup(props) {
@@ -27,7 +27,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
27
27
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
28
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
29
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
- /*eslint-disable react/forbid-component-props */var ModuleHeader = /*#__PURE__*/function (_PureComponent) {
30
+ /*eslint-disable react/forbid-component-props */
31
+ var ModuleHeader = /*#__PURE__*/function (_PureComponent) {
31
32
  _inherits(ModuleHeader, _PureComponent);
32
33
  var _super = _createSuper(ModuleHeader);
33
34
  function ModuleHeader() {
@@ -29,7 +29,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
29
29
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
30
30
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
31
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
32
- /* eslint-disable react/forbid-component-props */var TicketHeader = /*#__PURE__*/function (_Component) {
32
+ /* eslint-disable react/forbid-component-props */
33
+ var TicketHeader = /*#__PURE__*/function (_Component) {
33
34
  _inherits(TicketHeader, _Component);
34
35
  var _super = _createSuper(TicketHeader);
35
36
  function TicketHeader() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-124",
3
+ "version": "1.0.0-temp-125",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,