@zohodesk/dot 1.0.0-beta.241 → 1.0.0-beta.242
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
|
@@ -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, {
|
|
@@ -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",
|
|
@@ -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"], {
|
|
@@ -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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.242",
|
|
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-alpha-
|
|
47
|
+
"@zohodesk/components": "1.0.0-alpha-255",
|
|
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-alpha-
|
|
58
|
+
"@zohodesk/components": "1.0.0-alpha-255",
|
|
59
59
|
"@zohodesk/icons": "1.0.0-beta.109",
|
|
60
60
|
"@zohodesk/svg": "1.0.0-beta.48",
|
|
61
61
|
"@zohodesk/a11y": "1.3.4"
|