@zohodesk/dot 1.0.0-beta.241 → 1.0.0-beta.243

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,25 @@
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 Issue Solved.
8
+
9
+ - **MessageBanner** - `Night` and `Dark` mode issue fix.
10
+
11
+ - **IconButton** - customProps support.
12
+
13
+ - **ToggleDropdDown** - Screen Reader fix.
14
+
15
+ - **ListLayout** - Focus Indication fix.
16
+
17
+ # 1.0.0-beta.242
18
+
19
+ - `Accesssility`- Screen Reader fix.
20
+
21
+ # 1.0.0-beta.241
22
+
23
+ - **Drawer, Lookup** - Focus scope navigation support.
5
24
 
6
25
  # 1.0.0-beta.240
7
26
 
@@ -328,7 +328,7 @@
328
328
  --zdt_message_close_text: var(--zd_dark6);
329
329
 
330
330
  /* message banner */
331
- --zdt_messagebanner_text: var(--dot_platinum);
331
+ --zdt_messagebanner_text: var(--dot_black);
332
332
  --zdt_messagebanner_link_text: var(--zdt_cta_primary_text);
333
333
  --zdt_messagebanner_close_text: var(--zd_smoke18);
334
334
  --zdt_messagebanner_close_hover_bg: #ececc6;
@@ -328,7 +328,7 @@
328
328
  --zdt_message_close_text: var(--zd_dark6);
329
329
 
330
330
  /* message banner */
331
- --zdt_messagebanner_text: var(--dot_platinum);
331
+ --zdt_messagebanner_text: var(--dot_black);
332
332
  --zdt_messagebanner_link_text: var(--zdt_cta_primary_text);
333
333
  --zdt_messagebanner_close_text: var(--zd_smoke18);
334
334
  --zdt_messagebanner_close_hover_bg: #ececc6;
@@ -8,6 +8,7 @@ import { Container, Box } from '@zohodesk/components/lib/Layout';
8
8
  import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
9
9
  import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
10
10
  import style from './ActionButton.module.css';
11
+ import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
11
12
  export class ActionButton extends React.Component {
12
13
  constructor(props) {
13
14
  super(props);
@@ -72,8 +73,10 @@ export class ActionButton extends React.Component {
72
73
  flexible: true,
73
74
  onClick: onClick,
74
75
  dataId: dataId,
75
- className: `${style.contentBox} ${style[palette + 'Btn']} ${style[size + '_btnBox']} ${children ? style.contentBoxBdr : style.contentBoxBdrRds} ${style.clickable} ${innerClassName} `,
76
- "data-title": dataTitle
76
+ className: `${btnStyle.buttonReset} ${style.contentBox} ${style[palette + 'Btn']} ${style[size + '_btnBox']} ${children ? style.contentBoxBdr : style.contentBoxBdrRds} ${style.clickable} ${innerClassName} `,
77
+ "data-title": dataTitle,
78
+ tagName: "button",
79
+ tabIndex: "0"
77
80
  }, /*#__PURE__*/React.createElement(Container, {
78
81
  align: "both"
79
82
  }, /*#__PURE__*/React.createElement(Box, {
@@ -97,9 +100,10 @@ export class ActionButton extends React.Component {
97
100
  onClick: onClick ? !onHover && this.handleTogglePopup : undefined,
98
101
  onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
99
102
  onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
100
- className: `${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
103
+ className: `${btnStyle.buttonReset} ${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
101
104
  dataId: arrowBoxDataId,
102
- tabIndex: "0"
105
+ tabIndex: "0",
106
+ tagName: "button"
103
107
  }, /*#__PURE__*/React.createElement(Container, {
104
108
  align: "both"
105
109
  }, /*#__PURE__*/React.createElement(Icon, {
@@ -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;
@@ -711,7 +711,8 @@ export class ToggleDropDown extends Component {
711
711
  palette: palette,
712
712
  a11y: {
713
713
  role: isSearch ? 'option' : 'menuitem',
714
- ariaSelected: selectedId === item[idName]
714
+ ariaSelected: selectedId === item[idName],
715
+ ariaLabel: item[keyName]
715
716
  }
716
717
  }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
717
718
  key: listIndex,
@@ -732,7 +733,8 @@ export class ToggleDropDown extends Component {
732
733
  palette: palette,
733
734
  a11y: {
734
735
  role: isSearch ? 'option' : 'menuitem',
735
- ariaSelected: selectedId === item[idName]
736
+ ariaSelected: selectedId === item[idName],
737
+ ariaLabel: item[keyName]
736
738
  }
737
739
  }, ListItemProps));
738
740
  }));
@@ -778,7 +780,8 @@ export class ToggleDropDown extends Component {
778
780
  palette: palette,
779
781
  a11y: {
780
782
  role: isSearch ? 'option' : 'menuitem',
781
- ariaSelected: selectedId === item[idName]
783
+ ariaSelected: selectedId === item[idName],
784
+ ariaLabel: item[keyName]
782
785
  }
783
786
  }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
784
787
  key: listIndex,
@@ -799,7 +802,8 @@ export class ToggleDropDown extends Component {
799
802
  palette: palette,
800
803
  a11y: {
801
804
  role: isSearch ? 'option' : 'menuitem',
802
- ariaSelected: selectedId === item[idName]
805
+ ariaSelected: selectedId === item[idName],
806
+ ariaLabel: item[keyName]
803
807
  }
804
808
  }, ListItemProps)));
805
809
  }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
@@ -167,7 +167,9 @@ const TagsMultiSelectField = props => {
167
167
  };
168
168
  }, []);
169
169
  return /*#__PURE__*/React.createElement("div", {
170
- className: `${isDisabled ? fieldStyle.disabled : isReadOnly ? fieldStyle.readonly : ''}`
170
+ className: `${isDisabled ? fieldStyle.disabled : isReadOnly ? fieldStyle.readonly : ''}`,
171
+ tabIndex: "0",
172
+ "aria-label": `${labelName}`
171
173
  }, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
172
174
  ePhiData: ePhiData,
173
175
  alignContainer: "baseline",
@@ -42,6 +42,7 @@ export default class ListLayout extends Component {
42
42
  "data-title": dataTitle,
43
43
  tabIndex: "0",
44
44
  role: role,
45
+ "data-a11y-inside-focus": true,
45
46
  "aria-label": ariaLabel,
46
47
  "aria-setsize": ariaSetsize,
47
48
  "aria-posinset": ariaPosinset
@@ -15,6 +15,7 @@ var _Layout = require("@zohodesk/components/lib/Layout");
15
15
  var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox"));
16
16
  var _CssProvider = _interopRequireDefault(require("@zohodesk/components/lib/Provider/CssProvider"));
17
17
  var _ActionButtonModule = _interopRequireDefault(require("./ActionButton.module.css"));
18
+ var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
18
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
21
  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); } }
@@ -97,8 +98,10 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
97
98
  flexible: true,
98
99
  onClick: onClick,
99
100
  dataId: dataId,
100
- className: "".concat(_ActionButtonModule["default"].contentBox, " ").concat(_ActionButtonModule["default"][palette + 'Btn'], " ").concat(_ActionButtonModule["default"][size + '_btnBox'], " ").concat(children ? _ActionButtonModule["default"].contentBoxBdr : _ActionButtonModule["default"].contentBoxBdrRds, " ").concat(_ActionButtonModule["default"].clickable, " ").concat(innerClassName, " "),
101
- "data-title": dataTitle
101
+ className: "".concat(_semanticButtonModule["default"].buttonReset, " ").concat(_ActionButtonModule["default"].contentBox, " ").concat(_ActionButtonModule["default"][palette + 'Btn'], " ").concat(_ActionButtonModule["default"][size + '_btnBox'], " ").concat(children ? _ActionButtonModule["default"].contentBoxBdr : _ActionButtonModule["default"].contentBoxBdrRds, " ").concat(_ActionButtonModule["default"].clickable, " ").concat(innerClassName, " "),
102
+ "data-title": dataTitle,
103
+ tagName: "button",
104
+ tabIndex: "0"
102
105
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
103
106
  align: "both"
104
107
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
@@ -122,9 +125,10 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
122
125
  onClick: onClick ? !onHover && this.handleTogglePopup : undefined,
123
126
  onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
124
127
  onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
125
- className: "".concat(_ActionButtonModule["default"][arrowBoxSize + '_arrowBox'], " ").concat(_ActionButtonModule["default"][palette + 'Arw'], " ").concat(_ActionButtonModule["default"].arrowWrapper, " ").concat(isPopupOpen ? _ActionButtonModule["default"].arrowActive : ''),
128
+ className: "".concat(_semanticButtonModule["default"].buttonReset, " ").concat(_ActionButtonModule["default"][arrowBoxSize + '_arrowBox'], " ").concat(_ActionButtonModule["default"][palette + 'Arw'], " ").concat(_ActionButtonModule["default"].arrowWrapper, " ").concat(isPopupOpen ? _ActionButtonModule["default"].arrowActive : ''),
126
129
  dataId: arrowBoxDataId,
127
- tabIndex: "0"
130
+ tabIndex: "0",
131
+ tagName: "button"
128
132
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
129
133
  align: "both"
130
134
  }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
@@ -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;
@@ -755,7 +755,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
755
755
  palette: palette,
756
756
  a11y: {
757
757
  role: isSearch ? 'option' : 'menuitem',
758
- ariaSelected: selectedId === item[idName]
758
+ ariaSelected: selectedId === item[idName],
759
+ ariaLabel: item[keyName]
759
760
  }
760
761
  }, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
761
762
  key: listIndex,
@@ -776,7 +777,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
776
777
  palette: palette,
777
778
  a11y: {
778
779
  role: isSearch ? 'option' : 'menuitem',
779
- ariaSelected: selectedId === item[idName]
780
+ ariaSelected: selectedId === item[idName],
781
+ ariaLabel: item[keyName]
780
782
  }
781
783
  }, ListItemProps));
782
784
  }));
@@ -822,7 +824,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
822
824
  palette: palette,
823
825
  a11y: {
824
826
  role: isSearch ? 'option' : 'menuitem',
825
- ariaSelected: selectedId === item[idName]
827
+ ariaSelected: selectedId === item[idName],
828
+ ariaLabel: item[keyName]
826
829
  }
827
830
  }, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
828
831
  key: listIndex,
@@ -843,7 +846,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
843
846
  palette: palette,
844
847
  a11y: {
845
848
  role: isSearch ? 'option' : 'menuitem',
846
- ariaSelected: selectedId === item[idName]
849
+ ariaSelected: selectedId === item[idName],
850
+ ariaLabel: item[keyName]
847
851
  }
848
852
  }, ListItemProps)));
849
853
  }), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
@@ -182,7 +182,9 @@ var TagsMultiSelectField = function TagsMultiSelectField(props) {
182
182
  };
183
183
  }, []);
184
184
  return /*#__PURE__*/_react["default"].createElement("div", {
185
- className: "".concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '')
185
+ className: "".concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
186
+ tabIndex: "0",
187
+ "aria-label": "".concat(labelName)
186
188
  }, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
187
189
  ePhiData: ePhiData,
188
190
  alignContainer: "baseline",
@@ -65,6 +65,7 @@ var ListLayout = /*#__PURE__*/function (_Component) {
65
65
  "data-title": dataTitle,
66
66
  tabIndex: "0",
67
67
  role: role,
68
+ "data-a11y-inside-focus": true,
68
69
  "aria-label": ariaLabel,
69
70
  "aria-setsize": ariaSetsize,
70
71
  "aria-posinset": ariaPosinset
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-beta.241",
3
+ "version": "1.0.0-beta.243",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -44,42 +44,54 @@
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-alpha-254",
47
+ "@zohodesk/components": "1.0.0-alpha-256",
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",
51
51
  "react-sortable-hoc": "^0.8.3",
52
- "@zohodesk/a11y": "1.3.4"
52
+ "@zohodesk/a11y": "1.3.7"
53
53
  },
54
54
  "peerDependencies": {
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-alpha-252",
58
+ "@zohodesk/components": "1.0.0-alpha-256",
59
59
  "@zohodesk/icons": "1.0.0-beta.109",
60
60
  "@zohodesk/svg": "1.0.0-beta.48",
61
- "@zohodesk/a11y": "1.3.4"
61
+ "@zohodesk/a11y": "1.3.7"
62
62
  },
63
63
  "react-cli": {
64
64
  "preprocess": {
65
65
  "runner": "./preprocess/index.js"
66
66
  },
67
- "app": {
68
- "removePropTypes": {
69
- "removeImport": true
67
+ "css": {
68
+ "plugins": {
69
+ "hasRTL": true
70
+ },
71
+ "exclude": {
72
+ "rtl": [
73
+ "@zohodesk/icons",
74
+ "@zohodesk/variables",
75
+ "@zohodesk/components",
76
+ "/jsapps/components/lib"
77
+ ]
70
78
  }
71
79
  },
72
80
  "docs": {
73
81
  "disableES5Transpile": true,
74
82
  "componentFolder": "./src",
75
83
  "cssUniqueness": "false",
76
- "rtlExclude": [
77
- "@zohodesk/icons",
78
- "@zohodesk/variables",
79
- "@zohodesk/components",
80
- "/jsapps/components/lib"
81
- ],
82
- "hasRTL": true,
84
+ "plugins": {
85
+ "hasRTL": true
86
+ },
87
+ "exclude": {
88
+ "rtl": [
89
+ "@zohodesk/icons",
90
+ "@zohodesk/variables",
91
+ "@zohodesk/components",
92
+ "/jsapps/components/lib"
93
+ ]
94
+ },
83
95
  "selectorReplace": {
84
96
  "before": [
85
97
  "data-mode"