@zohodesk/dot 1.0.0-temp-115 → 1.0.0-temp-116

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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.0.0-beta.243
6
+
7
+ - NewStar => Position and Font Size Increase Isse Solved
8
+
5
9
  # 1.0.0-beta.242
6
10
 
7
11
  - `Accesssility`- Screen Reader fix.
@@ -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 from 'react';
2
3
  import { defaultProps } from './props/defaultProps';
3
4
  import { propTypes } from './props/propTypes';
@@ -79,7 +80,8 @@ export default class IconButton extends React.Component {
79
80
  isNeedEffect,
80
81
  needButtonTag,
81
82
  a11y,
82
- dataIsHtml
83
+ dataIsHtml,
84
+ customProps
83
85
  } = this.props;
84
86
  let {
85
87
  isPressed
@@ -97,7 +99,7 @@ export default class IconButton extends React.Component {
97
99
  hoverType: hoverType,
98
100
  isDisabled: isDisabled,
99
101
  isNeedEffect: isNeedEffect
100
- }, /*#__PURE__*/React.createElement(Container, {
102
+ }, /*#__PURE__*/React.createElement(Container, _extends({
101
103
  "aria-label": ariaLabel,
102
104
  "aria-haspopup": ariaHaspopup,
103
105
  "aria-expanded": ariaExpanded,
@@ -121,7 +123,7 @@ export default class IconButton extends React.Component {
121
123
  onFocus: this.triggerMouseOver,
122
124
  onBlur: this.onBlur,
123
125
  disabled: isDisabled
124
- }, iconName ? /*#__PURE__*/React.createElement(Icon, {
126
+ }, customProps), iconName ? /*#__PURE__*/React.createElement(Icon, {
125
127
  isBold: isBold,
126
128
  size: iconSize,
127
129
  name: iconName,
@@ -11,5 +11,6 @@ export const defaultProps = {
11
11
  isNeedEffect: true,
12
12
  needButtonTag: true,
13
13
  a11y: {},
14
- dataIsHtml: false
14
+ dataIsHtml: false,
15
+ customProps: {}
15
16
  };
@@ -27,5 +27,6 @@ export const propTypes = {
27
27
  ariaControls: PropTypes.string,
28
28
  ariaLabelledby: PropTypes.string
29
29
  }),
30
- dataIsHtml: PropTypes.bool
30
+ dataIsHtml: PropTypes.bool,
31
+ customProps: PropTypes.object
31
32
  };
@@ -13,36 +13,38 @@ export default class NewStar extends React.Component {
13
13
  } = this.props;
14
14
  let alignPosition = {
15
15
  topRight: {
16
- className: style.topRight,
17
- align: 'right',
18
- alignBox: 'row',
19
- reverse: 'wrap'
16
+ className: style.topRight
17
+ // align: 'right',
18
+ // alignBox: 'row',
19
+ // reverse: 'wrap'
20
20
  },
21
+
21
22
  topLeft: {
22
- className: style.topLeft,
23
- align: 'left',
24
- alignBox: 'row',
25
- reverse: 'wrap'
23
+ className: style.topLeft
24
+ // align: 'left',
25
+ // alignBox: 'row',
26
+ // reverse: 'wrap'
26
27
  },
28
+
27
29
  bottomLeft: {
28
- className: style.bottomLeft,
29
- align: 'left',
30
- alignBox: 'column-reverse',
31
- reverse: 'wrap'
30
+ className: style.bottomLeft
31
+ // align: 'left',
32
+ // alignBox: 'column-reverse',
33
+ // reverse: 'wrap'
32
34
  },
35
+
33
36
  bottomRight: {
34
- className: style.bottomRight,
35
- align: 'right',
36
- alignBox: 'column',
37
- reverse: 'wrap-reverse'
37
+ className: style.bottomRight
38
+ // align: 'right',
39
+ // alignBox: 'column',
40
+ // reverse: 'wrap-reverse'
38
41
  }
39
42
  };
43
+
40
44
  return /*#__PURE__*/React.createElement(Container, {
41
- alignBox: alignPosition[position].alignBox,
45
+ alignBox: "row",
42
46
  isCover: false,
43
- className: `${style.star} ${alignPosition[position].className} ${customClass}`,
44
- wrap: alignPosition[position].reverse,
45
- align: alignPosition[position].align
47
+ className: `${style.star} ${alignPosition[position].className} ${customClass}`
46
48
  }, /*#__PURE__*/React.createElement(Icon, {
47
49
  name: "ZD-snippetStar",
48
50
  iconClass: `${style[palette]} ${style.starOne}`,
@@ -1,6 +1,5 @@
1
1
  .star {
2
2
  position: absolute;
3
-
4
3
  height: var(--zd_size20);
5
4
  width: var(--zd_size21);
6
5
  }
@@ -48,9 +47,15 @@
48
47
  transform: translate(-45%, 45%);
49
48
  left: 0;
50
49
  }
50
+
51
+ .stars {
52
+ position: absolute;
53
+ }
54
+
51
55
  [dir=ltr] .stars {
52
56
  animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
53
57
  }
58
+
54
59
  [dir=rtl] .stars {
55
60
  animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
56
61
  }
@@ -85,6 +90,66 @@
85
90
  animation-delay: 1s;
86
91
  }
87
92
 
93
+ .topLeft .starOne{top:0}
94
+
95
+ [dir=ltr] .topLeft .starOne{
96
+ left:0}
97
+
98
+ [dir=rtl] .topLeft .starOne{right:0}
99
+ .topLeft .starTwo{top:0}
100
+ [dir=ltr] .topLeft .starTwo{
101
+ left:10px}
102
+ [dir=rtl] .topLeft .starTwo{right:10px}
103
+ .topLeft .starThree{top:10px}
104
+ [dir=ltr] .topLeft .starThree{
105
+ left:0}
106
+ [dir=rtl] .topLeft .starThree{right:0}
107
+
108
+ .topRight .starOne{top:0}
109
+
110
+ [dir=ltr] .topRight .starOne{
111
+ right:0}
112
+
113
+ [dir=rtl] .topRight .starOne{left:0}
114
+ .topRight .starTwo{top:0}
115
+ [dir=ltr] .topRight .starTwo{
116
+ right:10px}
117
+ [dir=rtl] .topRight .starTwo{left:10px}
118
+ .topRight .starThree{top:10px}
119
+ [dir=ltr] .topRight .starThree{
120
+ right:0}
121
+ [dir=rtl] .topRight .starThree{left:0}
122
+
123
+ .bottomLeft .starOne{bottom:0}
124
+
125
+ [dir=ltr] .bottomLeft .starOne{
126
+ left:0}
127
+
128
+ [dir=rtl] .bottomLeft .starOne{right:0}
129
+ .bottomLeft .starTwo{bottom:0}
130
+ [dir=ltr] .bottomLeft .starTwo{
131
+ left:10px}
132
+ [dir=rtl] .bottomLeft .starTwo{right:10px}
133
+ .bottomLeft .starThree{bottom:10px}
134
+ [dir=ltr] .bottomLeft .starThree{
135
+ left:0}
136
+ [dir=rtl] .bottomLeft .starThree{right:0}
137
+
138
+ .bottomRight .starOne{bottom:0}
139
+
140
+ [dir=ltr] .bottomRight .starOne{
141
+ right:0}
142
+
143
+ [dir=rtl] .bottomRight .starOne{left:0}
144
+ .bottomRight .starTwo{bottom:0}
145
+ [dir=ltr] .bottomRight .starTwo{
146
+ right:10px}
147
+ [dir=rtl] .bottomRight .starTwo{left:10px}
148
+ .bottomRight .starThree{bottom:10px}
149
+ [dir=ltr] .bottomRight .starThree{
150
+ right:0}
151
+ [dir=rtl] .bottomRight .starThree{left:0}
152
+
88
153
  @keyframes twinkle {
89
154
  0% {
90
155
  opacity: 0.5;
@@ -14,6 +14,7 @@ var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components
14
14
  var _RippleEffect = _interopRequireDefault(require("@zohodesk/components/lib/RippleEffect/RippleEffect"));
15
15
  var _IconButtonModule = _interopRequireDefault(require("./IconButton.module.css"));
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+ 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); }
17
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
19
  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); } }
19
20
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -109,7 +110,8 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
109
110
  isNeedEffect = _this$props4.isNeedEffect,
110
111
  needButtonTag = _this$props4.needButtonTag,
111
112
  a11y = _this$props4.a11y,
112
- dataIsHtml = _this$props4.dataIsHtml;
113
+ dataIsHtml = _this$props4.dataIsHtml,
114
+ customProps = _this$props4.customProps;
113
115
  var isPressed = this.state.isPressed;
114
116
  var ariaHaspopup = a11y.ariaHaspopup,
115
117
  ariaExpanded = a11y.ariaExpanded,
@@ -122,7 +124,7 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
122
124
  hoverType: hoverType,
123
125
  isDisabled: isDisabled,
124
126
  isNeedEffect: isNeedEffect
125
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
127
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
126
128
  "aria-label": ariaLabel,
127
129
  "aria-haspopup": ariaHaspopup,
128
130
  "aria-expanded": ariaExpanded,
@@ -146,7 +148,7 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
146
148
  onFocus: this.triggerMouseOver,
147
149
  onBlur: this.onBlur,
148
150
  disabled: isDisabled
149
- }, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
151
+ }, customProps), iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
150
152
  isBold: isBold,
151
153
  size: iconSize,
152
154
  name: iconName,
@@ -17,6 +17,7 @@ var defaultProps = {
17
17
  isNeedEffect: true,
18
18
  needButtonTag: true,
19
19
  a11y: {},
20
- dataIsHtml: false
20
+ dataIsHtml: false,
21
+ customProps: {}
21
22
  };
22
23
  exports.defaultProps = defaultProps;
@@ -33,5 +33,5 @@ var propTypes = (_propTypes = {
33
33
  ariaLabel: _propTypes2["default"].string,
34
34
  ariaControls: _propTypes2["default"].string,
35
35
  ariaLabelledby: _propTypes2["default"].string
36
- })), _defineProperty(_propTypes, "dataIsHtml", _propTypes2["default"].bool), _propTypes);
36
+ })), _defineProperty(_propTypes, "dataIsHtml", _propTypes2["default"].bool), _defineProperty(_propTypes, "customProps", _propTypes2["default"].object), _propTypes);
37
37
  exports.propTypes = propTypes;
@@ -38,36 +38,38 @@ var NewStar = /*#__PURE__*/function (_React$Component) {
38
38
  position = _this$props.position;
39
39
  var alignPosition = {
40
40
  topRight: {
41
- className: _NewStarModule["default"].topRight,
42
- align: 'right',
43
- alignBox: 'row',
44
- reverse: 'wrap'
41
+ className: _NewStarModule["default"].topRight
42
+ // align: 'right',
43
+ // alignBox: 'row',
44
+ // reverse: 'wrap'
45
45
  },
46
+
46
47
  topLeft: {
47
- className: _NewStarModule["default"].topLeft,
48
- align: 'left',
49
- alignBox: 'row',
50
- reverse: 'wrap'
48
+ className: _NewStarModule["default"].topLeft
49
+ // align: 'left',
50
+ // alignBox: 'row',
51
+ // reverse: 'wrap'
51
52
  },
53
+
52
54
  bottomLeft: {
53
- className: _NewStarModule["default"].bottomLeft,
54
- align: 'left',
55
- alignBox: 'column-reverse',
56
- reverse: 'wrap'
55
+ className: _NewStarModule["default"].bottomLeft
56
+ // align: 'left',
57
+ // alignBox: 'column-reverse',
58
+ // reverse: 'wrap'
57
59
  },
60
+
58
61
  bottomRight: {
59
- className: _NewStarModule["default"].bottomRight,
60
- align: 'right',
61
- alignBox: 'column',
62
- reverse: 'wrap-reverse'
62
+ className: _NewStarModule["default"].bottomRight
63
+ // align: 'right',
64
+ // alignBox: 'column',
65
+ // reverse: 'wrap-reverse'
63
66
  }
64
67
  };
68
+
65
69
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
66
- alignBox: alignPosition[position].alignBox,
70
+ alignBox: "row",
67
71
  isCover: false,
68
- className: "".concat(_NewStarModule["default"].star, " ").concat(alignPosition[position].className, " ").concat(customClass),
69
- wrap: alignPosition[position].reverse,
70
- align: alignPosition[position].align
72
+ className: "".concat(_NewStarModule["default"].star, " ").concat(alignPosition[position].className, " ").concat(customClass)
71
73
  }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
72
74
  name: "ZD-snippetStar",
73
75
  iconClass: "".concat(_NewStarModule["default"][palette], " ").concat(_NewStarModule["default"].starOne),
@@ -1,6 +1,5 @@
1
1
  .star {
2
2
  position: absolute;
3
-
4
3
  height: var(--zd_size20);
5
4
  width: var(--zd_size21);
6
5
  }
@@ -48,9 +47,15 @@
48
47
  transform: translate(-45%, 45%);
49
48
  left: 0;
50
49
  }
50
+
51
+ .stars {
52
+ position: absolute;
53
+ }
54
+
51
55
  [dir=ltr] .stars {
52
56
  animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
53
57
  }
58
+
54
59
  [dir=rtl] .stars {
55
60
  animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
56
61
  }
@@ -85,6 +90,66 @@
85
90
  animation-delay: 1s;
86
91
  }
87
92
 
93
+ .topLeft .starOne{top:0}
94
+
95
+ [dir=ltr] .topLeft .starOne{
96
+ left:0}
97
+
98
+ [dir=rtl] .topLeft .starOne{right:0}
99
+ .topLeft .starTwo{top:0}
100
+ [dir=ltr] .topLeft .starTwo{
101
+ left:10px}
102
+ [dir=rtl] .topLeft .starTwo{right:10px}
103
+ .topLeft .starThree{top:10px}
104
+ [dir=ltr] .topLeft .starThree{
105
+ left:0}
106
+ [dir=rtl] .topLeft .starThree{right:0}
107
+
108
+ .topRight .starOne{top:0}
109
+
110
+ [dir=ltr] .topRight .starOne{
111
+ right:0}
112
+
113
+ [dir=rtl] .topRight .starOne{left:0}
114
+ .topRight .starTwo{top:0}
115
+ [dir=ltr] .topRight .starTwo{
116
+ right:10px}
117
+ [dir=rtl] .topRight .starTwo{left:10px}
118
+ .topRight .starThree{top:10px}
119
+ [dir=ltr] .topRight .starThree{
120
+ right:0}
121
+ [dir=rtl] .topRight .starThree{left:0}
122
+
123
+ .bottomLeft .starOne{bottom:0}
124
+
125
+ [dir=ltr] .bottomLeft .starOne{
126
+ left:0}
127
+
128
+ [dir=rtl] .bottomLeft .starOne{right:0}
129
+ .bottomLeft .starTwo{bottom:0}
130
+ [dir=ltr] .bottomLeft .starTwo{
131
+ left:10px}
132
+ [dir=rtl] .bottomLeft .starTwo{right:10px}
133
+ .bottomLeft .starThree{bottom:10px}
134
+ [dir=ltr] .bottomLeft .starThree{
135
+ left:0}
136
+ [dir=rtl] .bottomLeft .starThree{right:0}
137
+
138
+ .bottomRight .starOne{bottom:0}
139
+
140
+ [dir=ltr] .bottomRight .starOne{
141
+ right:0}
142
+
143
+ [dir=rtl] .bottomRight .starOne{left:0}
144
+ .bottomRight .starTwo{bottom:0}
145
+ [dir=ltr] .bottomRight .starTwo{
146
+ right:10px}
147
+ [dir=rtl] .bottomRight .starTwo{left:10px}
148
+ .bottomRight .starThree{bottom:10px}
149
+ [dir=ltr] .bottomRight .starThree{
150
+ right:0}
151
+ [dir=rtl] .bottomRight .starThree{left:0}
152
+
88
153
  @keyframes twinkle {
89
154
  0% {
90
155
  opacity: 0.5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-115",
3
+ "version": "1.0.0-temp-116",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -44,7 +44,7 @@
44
44
  "velocity-react": "1.4.3",
45
45
  "@zohodesk/variables": "1.0.0-beta.29",
46
46
  "@zohodesk/i18n": "1.0.0-beta.7",
47
- "@zohodesk/components": "1.0.0-temp-114",
47
+ "@zohodesk/components": "1.0.0-temp-115",
48
48
  "@zohodesk/icons": "1.0.0-beta.109",
49
49
  "@zohodesk/svg": "1.0.0-beta.49",
50
50
  "@zohodesk/virtualizer": "1.0.3",
@@ -55,7 +55,7 @@
55
55
  "velocity-react": "1.4.3",
56
56
  "@zohodesk/variables": "1.0.0-beta.29",
57
57
  "@zohodesk/i18n": "1.0.0-beta.7",
58
- "@zohodesk/components": "1.0.0-temp-114",
58
+ "@zohodesk/components": "1.0.0-temp-115",
59
59
  "@zohodesk/icons": "1.0.0-beta.109",
60
60
  "@zohodesk/svg": "1.0.0-beta.48",
61
61
  "@zohodesk/a11y": "1.3.7"