@zohodesk/dot 1.2.3 → 1.3.0
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/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +13 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/index.html +1 -1
- package/es/Drawer/Drawer.js +13 -12
- package/es/lookup/Lookup/Lookup.js +10 -10
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
- package/es/v1/Attachment/Attachment.js +1 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +16 -16
- package/es/v1/FlipCard/FlipCard.js +4 -4
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +1 -1
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +1 -1
- package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
- package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
- package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
- package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
- package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
- package/es/v1/form/fields/DateField/DateField.js +131 -162
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
- package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
- package/es/v1/form/fields/RadioField/RadioField.js +2 -2
- package/es/v1/form/fields/SelectField/SelectField.js +3 -3
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
- package/es/v1/list/Comment/Comment.js +25 -32
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
- package/es/v1/list/Dot/Dot.js +9 -16
- package/es/v1/list/DotNew/DotNew.js +11 -18
- package/es/v1/list/GridStencils/GridStencils.js +21 -24
- package/es/v1/list/Icons/AddNewIcon.js +19 -22
- package/es/v1/list/Icons/CompleteIcon.js +21 -24
- package/es/v1/list/Icons/DeleteIcon.js +22 -25
- package/es/v1/list/Icons/EditIcon.js +22 -25
- package/es/v1/list/Icons/FloatingIcons.js +12 -19
- package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
- package/es/v1/list/Icons/SmartIcon.js +20 -23
- package/es/v1/list/ListLayout/ListLayout.js +54 -68
- package/es/v1/list/ListStencils/ListStencils.js +28 -31
- package/es/v1/list/SecondaryText/AccountName.js +1 -1
- package/es/v1/list/SecondaryText/ContactName.js +1 -1
- package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
- package/es/v1/list/Thread/Thread.js +1 -1
- package/es/v1/list/UserTime/UserTime.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +14 -13
- package/es/v1/lookup/Section/Section.js +1 -1
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/v1/lookup/header/Search/Search.js +3 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/es/v1/setup/header/Button/Button.js +1 -1
- package/es/v1/setup/header/Link/Link.js +1 -1
- package/es/v1/setup/header/Search/Search.js +1 -1
- package/es/v1/setup/table/Table/Table.js +1 -1
- package/es/v1/setup/table/TableBody/TableBody.js +1 -1
- package/es/v1/setup/table/TableData/TableData.js +1 -1
- package/es/v1/setup/table/TableHead/TableHead.js +1 -1
- package/es/v1/setup/table/TableRow/TableRow.js +1 -1
- package/lib/Drawer/Drawer.js +18 -17
- package/lib/lookup/Lookup/Lookup.js +15 -15
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +2 -4
- package/lib/v1/Attachment/Attachment.js +1 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +21 -21
- package/lib/v1/FlipCard/FlipCard.js +4 -4
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +1 -1
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +1 -1
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +1 -1
- package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
- package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
- package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
- package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +107 -159
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +152 -193
- package/lib/v1/form/fields/DateField/DateField.js +140 -206
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +168 -228
- package/lib/v1/form/fields/PhoneField/PhoneField.js +150 -193
- package/lib/v1/form/fields/RadioField/RadioField.js +2 -2
- package/lib/v1/form/fields/SelectField/SelectField.js +3 -3
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
- package/lib/v1/list/Comment/Comment.js +24 -69
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
- package/lib/v1/list/Dot/Dot.js +9 -54
- package/lib/v1/list/DotNew/DotNew.js +11 -56
- package/lib/v1/list/GridStencils/GridStencils.js +21 -62
- package/lib/v1/list/Icons/AddNewIcon.js +19 -60
- package/lib/v1/list/Icons/CompleteIcon.js +21 -62
- package/lib/v1/list/Icons/DeleteIcon.js +22 -63
- package/lib/v1/list/Icons/EditIcon.js +22 -63
- package/lib/v1/list/Icons/FloatingIcons.js +17 -62
- package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
- package/lib/v1/list/Icons/SmartIcon.js +20 -65
- package/lib/v1/list/ListLayout/ListLayout.js +53 -116
- package/lib/v1/list/ListStencils/ListStencils.js +33 -72
- package/lib/v1/list/SecondaryText/AccountName.js +1 -1
- package/lib/v1/list/SecondaryText/ContactName.js +1 -1
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
- package/lib/v1/list/Thread/Thread.js +1 -1
- package/lib/v1/list/UserTime/UserTime.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/lib/v1/lookup/Lookup/Lookup.js +20 -18
- package/lib/v1/lookup/Section/Section.js +1 -1
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/v1/lookup/header/Search/Search.js +3 -3
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/lib/v1/setup/header/Button/Button.js +1 -1
- package/lib/v1/setup/header/Link/Link.js +1 -1
- package/lib/v1/setup/header/Search/Search.js +1 -1
- package/lib/v1/setup/table/Table/Table.js +1 -1
- package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
- package/lib/v1/setup/table/TableData/TableData.js +1 -1
- package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
- package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
- package/package.json +11 -11
- package/result.json +1 -1
- package/es/v1/errorstate/LinkText/LinkText.js +0 -29
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
- package/es/v1/errorstate/WillBack/WillBack.js +0 -75
- package/es/v1/errorstate/index.js +0 -8
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/version2/index.js +0 -12
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
- package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
- package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
- package/lib/v1/errorstate/index.js +0 -71
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/version2/index.js +0 -58
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
- /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = EditIcon;
|
|
9
7
|
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
@@ -15,68 +13,29 @@ var _IconsModule = _interopRequireDefault(require("../../../list/Icons/Icons.mod
|
|
|
15
13
|
|
|
16
14
|
var _icons = require("@zohodesk/icons");
|
|
17
15
|
|
|
18
|
-
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/es/semantic/Button/semanticButton.module.css"));
|
|
19
17
|
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
function EditIcon(props) {
|
|
21
|
+
var onClick = props.onClick,
|
|
22
|
+
dataId = props.dataId,
|
|
23
|
+
dataTitle = props.dataTitle,
|
|
24
|
+
iconClass = props.iconClass,
|
|
25
|
+
iconSize = props.iconSize,
|
|
26
|
+
className = props.className;
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
28
|
+
onClick: onClick,
|
|
29
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
30
|
+
"data-id": dataId,
|
|
31
|
+
"data-test-id": dataId,
|
|
32
|
+
"data-title": dataTitle,
|
|
33
|
+
"aria-label": dataTitle
|
|
34
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
35
|
+
name: "ZD-GN-edit",
|
|
36
|
+
iconClass: iconClass ? iconClass : '',
|
|
37
|
+
size: iconSize
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
37
40
|
|
|
38
|
-
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; } }
|
|
39
|
-
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
var EditIcon = /*#__PURE__*/function (_React$Component) {
|
|
43
|
-
_inherits(EditIcon, _React$Component);
|
|
44
|
-
|
|
45
|
-
var _super = _createSuper(EditIcon);
|
|
46
|
-
|
|
47
|
-
function EditIcon() {
|
|
48
|
-
_classCallCheck(this, EditIcon);
|
|
49
|
-
|
|
50
|
-
return _super.apply(this, arguments);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
_createClass(EditIcon, [{
|
|
54
|
-
key: "render",
|
|
55
|
-
value: function render() {
|
|
56
|
-
var _this$props = this.props,
|
|
57
|
-
onClick = _this$props.onClick,
|
|
58
|
-
dataId = _this$props.dataId,
|
|
59
|
-
dataTitle = _this$props.dataTitle,
|
|
60
|
-
iconClass = _this$props.iconClass,
|
|
61
|
-
iconSize = _this$props.iconSize,
|
|
62
|
-
className = _this$props.className;
|
|
63
|
-
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
64
|
-
onClick: onClick,
|
|
65
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
66
|
-
"data-id": dataId,
|
|
67
|
-
"data-test-id": dataId,
|
|
68
|
-
"data-title": dataTitle,
|
|
69
|
-
"aria-label": dataTitle
|
|
70
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
71
|
-
name: "ZD-GN-edit",
|
|
72
|
-
iconClass: iconClass ? iconClass : '',
|
|
73
|
-
size: iconSize
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
}]);
|
|
77
|
-
|
|
78
|
-
return EditIcon;
|
|
79
|
-
}(_react["default"].Component);
|
|
80
|
-
|
|
81
|
-
exports["default"] = EditIcon;
|
|
82
41
|
EditIcon.propTypes = _propTypes.EditIcon_propTypes;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = FloatingIcons;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/Icons/props/defaultProps");
|
|
13
11
|
|
|
@@ -17,67 +15,24 @@ var _IconsModule = _interopRequireDefault(require("../../../list/Icons/Icons.mod
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
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); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
-
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
-
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
|
+
function FloatingIcons(props) {
|
|
19
|
+
var _props$children = props.children,
|
|
20
|
+
children = _props$children === void 0 ? [] : _props$children,
|
|
21
|
+
iconClass = props.iconClass;
|
|
37
22
|
|
|
38
|
-
|
|
23
|
+
var icons = _react["default"].Children.toArray(children).filter(function (o) {
|
|
24
|
+
return o;
|
|
25
|
+
});
|
|
39
26
|
|
|
40
|
-
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
28
|
+
className: "".concat(_IconsModule["default"].container)
|
|
29
|
+
}, icons.map(function (child) {
|
|
30
|
+
return /*#__PURE__*/_react["default"].cloneElement(child, {
|
|
31
|
+
iconClass: iconClass
|
|
32
|
+
});
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
41
35
|
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var FloatingIcons = /*#__PURE__*/function (_Component) {
|
|
45
|
-
_inherits(FloatingIcons, _Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(FloatingIcons);
|
|
48
|
-
|
|
49
|
-
function FloatingIcons(props) {
|
|
50
|
-
_classCallCheck(this, FloatingIcons);
|
|
51
|
-
|
|
52
|
-
return _super.call(this, props);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(FloatingIcons, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
_this$props$children = _this$props.children,
|
|
60
|
-
children = _this$props$children === void 0 ? [] : _this$props$children,
|
|
61
|
-
iconClass = _this$props.iconClass;
|
|
62
|
-
|
|
63
|
-
var icons = _react["default"].Children.toArray(children).filter(function (o) {
|
|
64
|
-
return o;
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
68
|
-
className: "".concat(_IconsModule["default"].container)
|
|
69
|
-
}, icons.map(function (child) {
|
|
70
|
-
return /*#__PURE__*/_react["default"].cloneElement(child, {
|
|
71
|
-
iconClass: iconClass
|
|
72
|
-
});
|
|
73
|
-
}));
|
|
74
|
-
}
|
|
75
|
-
}]);
|
|
76
|
-
|
|
77
|
-
return FloatingIcons;
|
|
78
|
-
}(_react.Component);
|
|
79
|
-
|
|
80
|
-
exports["default"] = FloatingIcons;
|
|
81
36
|
FloatingIcons.propTypes = _propTypes.FloatingIcons_propTypes;
|
|
82
37
|
FloatingIcons.defaultProps = _defaultProps.FloatingIcons_defaultProps; // if (__DOCS__) {
|
|
83
38
|
// FloatingIcons.docs = {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = ReadUnreadIcon;
|
|
9
7
|
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
@@ -15,73 +13,34 @@ var _propTypes = require("../../../list/Icons/props/propTypes");
|
|
|
15
13
|
|
|
16
14
|
var _icons = require("@zohodesk/icons");
|
|
17
15
|
|
|
18
|
-
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/es/semantic/Button/semanticButton.module.css"));
|
|
19
17
|
|
|
20
18
|
var _IconsModule = _interopRequireDefault(require("../../../list/Icons/Icons.module.css"));
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
function ReadUnreadIcon(props) {
|
|
23
|
+
var onClick = props.onClick,
|
|
24
|
+
dataId = props.dataId,
|
|
25
|
+
dataTitle = props.dataTitle,
|
|
26
|
+
iconClassName = props.iconClassName,
|
|
27
|
+
iconClass = props.iconClass,
|
|
28
|
+
className = props.className,
|
|
29
|
+
isRead = props.isRead,
|
|
30
|
+
iconSize = props.iconSize;
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
32
|
+
onClick: onClick,
|
|
33
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
34
|
+
"data-id": dataId,
|
|
35
|
+
"data-test-id": dataId,
|
|
36
|
+
"data-title": dataTitle,
|
|
37
|
+
"aria-label": dataTitle
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
39
|
+
name: isRead ? 'ZD-GN-read' : 'ZD-GN-unread',
|
|
40
|
+
size: iconSize,
|
|
41
|
+
iconClass: "".concat(iconClassName ? iconClassName : '', " ").concat(iconClass ? iconClass : '')
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
39
44
|
|
|
40
|
-
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; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var ReadUnreadIcon = /*#__PURE__*/function (_React$Component) {
|
|
45
|
-
_inherits(ReadUnreadIcon, _React$Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(ReadUnreadIcon);
|
|
48
|
-
|
|
49
|
-
function ReadUnreadIcon() {
|
|
50
|
-
_classCallCheck(this, ReadUnreadIcon);
|
|
51
|
-
|
|
52
|
-
return _super.apply(this, arguments);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(ReadUnreadIcon, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
onClick = _this$props.onClick,
|
|
60
|
-
dataId = _this$props.dataId,
|
|
61
|
-
dataTitle = _this$props.dataTitle,
|
|
62
|
-
iconClassName = _this$props.iconClassName,
|
|
63
|
-
iconClass = _this$props.iconClass,
|
|
64
|
-
className = _this$props.className,
|
|
65
|
-
isRead = _this$props.isRead,
|
|
66
|
-
iconSize = _this$props.iconSize;
|
|
67
|
-
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
68
|
-
onClick: onClick,
|
|
69
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
70
|
-
"data-id": dataId,
|
|
71
|
-
"data-test-id": dataId,
|
|
72
|
-
"data-title": dataTitle,
|
|
73
|
-
"aria-label": dataTitle
|
|
74
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
75
|
-
name: isRead ? 'ZD-GN-read' : 'ZD-GN-unread',
|
|
76
|
-
size: iconSize,
|
|
77
|
-
iconClass: "".concat(iconClassName ? iconClassName : '', " ").concat(iconClass ? iconClass : '')
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
}]);
|
|
81
|
-
|
|
82
|
-
return ReadUnreadIcon;
|
|
83
|
-
}(_react["default"].Component);
|
|
84
|
-
|
|
85
|
-
exports["default"] = ReadUnreadIcon;
|
|
86
45
|
ReadUnreadIcon.defaultProps = _defaultProps.ReadUnreadIcon_defaultProps;
|
|
87
46
|
ReadUnreadIcon.propTypes = _propTypes.ReadUnreadIcon_propTypes;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = SmartIcon;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _propTypes = require("../../../list/Icons/props/propTypes");
|
|
13
11
|
|
|
@@ -15,69 +13,26 @@ var _IconsModule = _interopRequireDefault(require("../../../list/Icons/Icons.mod
|
|
|
15
13
|
|
|
16
14
|
var _icons = require("@zohodesk/icons");
|
|
17
15
|
|
|
18
|
-
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/es/semantic/Button/semanticButton.module.css"));
|
|
19
17
|
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
function SmartIcon(props) {
|
|
21
|
+
var onClick = props.onClick,
|
|
22
|
+
dataId = props.dataId,
|
|
23
|
+
dataTitle = props.dataTitle,
|
|
24
|
+
iconClass = props.iconClass,
|
|
25
|
+
className = props.className;
|
|
26
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
27
|
+
onClick: onClick,
|
|
28
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
29
|
+
"data-id": dataId,
|
|
30
|
+
"data-test-id": dataId,
|
|
31
|
+
"data-title": dataTitle
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
33
|
+
name: "ZD-TK-peek",
|
|
34
|
+
iconClass: iconClass ? iconClass : ''
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
39
37
|
|
|
40
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
|
-
|
|
42
|
-
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; } }
|
|
43
|
-
|
|
44
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
|
-
|
|
46
|
-
var SmartIcon = /*#__PURE__*/function (_Component) {
|
|
47
|
-
_inherits(SmartIcon, _Component);
|
|
48
|
-
|
|
49
|
-
var _super = _createSuper(SmartIcon);
|
|
50
|
-
|
|
51
|
-
function SmartIcon() {
|
|
52
|
-
_classCallCheck(this, SmartIcon);
|
|
53
|
-
|
|
54
|
-
return _super.apply(this, arguments);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
_createClass(SmartIcon, [{
|
|
58
|
-
key: "render",
|
|
59
|
-
value: function render() {
|
|
60
|
-
var _this$props = this.props,
|
|
61
|
-
onClick = _this$props.onClick,
|
|
62
|
-
dataId = _this$props.dataId,
|
|
63
|
-
dataTitle = _this$props.dataTitle,
|
|
64
|
-
iconClass = _this$props.iconClass,
|
|
65
|
-
className = _this$props.className;
|
|
66
|
-
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
67
|
-
onClick: onClick,
|
|
68
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
69
|
-
"data-id": dataId,
|
|
70
|
-
"data-test-id": dataId,
|
|
71
|
-
"data-title": dataTitle
|
|
72
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
73
|
-
name: "ZD-TK-peek",
|
|
74
|
-
iconClass: iconClass ? iconClass : ''
|
|
75
|
-
}));
|
|
76
|
-
}
|
|
77
|
-
}]);
|
|
78
|
-
|
|
79
|
-
return SmartIcon;
|
|
80
|
-
}(_react.Component);
|
|
81
|
-
|
|
82
|
-
exports["default"] = SmartIcon;
|
|
83
38
|
SmartIcon.propTypes = _propTypes.SmartIcon_propTypes;
|
|
@@ -1,142 +1,79 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports
|
|
6
|
+
exports.Column = Column;
|
|
7
|
+
exports["default"] = ListLayout;
|
|
9
8
|
|
|
10
|
-
var _react =
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
|
|
12
11
|
var _defaultProps = require("../../../list/ListLayout/props/defaultProps");
|
|
13
12
|
|
|
14
13
|
var _propTypes = require("../../../list/ListLayout/props/propTypes");
|
|
15
14
|
|
|
16
|
-
var _Layout = require("@zohodesk/components/
|
|
15
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
16
|
|
|
18
17
|
var _ListLayoutModule = _interopRequireDefault(require("../../../list/ListLayout/ListLayout.module.css"));
|
|
19
18
|
|
|
20
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
20
|
|
|
22
|
-
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); }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
21
|
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); }
|
|
27
22
|
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
23
|
+
function ListLayout(props) {
|
|
24
|
+
var children = props.children,
|
|
25
|
+
className = props.className,
|
|
26
|
+
needHover = props.needHover,
|
|
27
|
+
align = props.align,
|
|
28
|
+
view = props.view,
|
|
29
|
+
containerClass = props.containerClass,
|
|
30
|
+
isActive = props.isActive,
|
|
31
|
+
onClick = props.onClick,
|
|
32
|
+
onMouseLeave = props.onMouseLeave,
|
|
33
|
+
dataId = props.dataId,
|
|
34
|
+
dataTitle = props.dataTitle,
|
|
35
|
+
a11y = props.a11y,
|
|
36
|
+
isHovered = props.isHovered,
|
|
37
|
+
onMouseEnter = props.onMouseEnter,
|
|
38
|
+
needPointer = props.needPointer,
|
|
39
|
+
isKeyboardActive = props.isKeyboardActive;
|
|
40
|
+
var _a11y$role = a11y.role,
|
|
41
|
+
role = _a11y$role === void 0 ? 'listitem' : _a11y$role,
|
|
42
|
+
ariaLabel = a11y.ariaLabel,
|
|
43
|
+
ariaPosinset = a11y.ariaPosinset,
|
|
44
|
+
ariaSetsize = a11y.ariaSetsize;
|
|
45
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
46
|
+
className: "".concat(_ListLayoutModule["default"].container, " ").concat(containerClass, " ").concat(needHover ? _ListLayoutModule["default"].listHover : '', " ").concat(isActive ? _ListLayoutModule["default"].active : '', " ").concat(_ListLayoutModule["default"][view], " ").concat(onClick && needPointer ? _ListLayoutModule["default"].cursorPointer : '', " ").concat(isHovered ? _ListLayoutModule["default"].hoveredStyle : '', " ").concat(isKeyboardActive ? _ListLayoutModule["default"].keyboardActive : '', " "),
|
|
47
|
+
onClick: onClick,
|
|
48
|
+
onMouseEnter: onMouseEnter,
|
|
49
|
+
onMouseLeave: onMouseLeave,
|
|
50
|
+
"data-id": dataId,
|
|
51
|
+
"data-test-id": dataId,
|
|
52
|
+
"data-title": dataTitle,
|
|
53
|
+
tabIndex: "0",
|
|
54
|
+
role: role,
|
|
55
|
+
"data-a11y-inset-focus": true,
|
|
56
|
+
"aria-label": ariaLabel,
|
|
57
|
+
"aria-setsize": ariaSetsize,
|
|
58
|
+
"aria-posinset": ariaPosinset
|
|
59
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
60
|
+
alignBox: "row",
|
|
61
|
+
align: align,
|
|
62
|
+
className: "".concat(_ListLayoutModule["default"].innerContainer, " ").concat(className ? className : '')
|
|
63
|
+
}, children));
|
|
64
|
+
}
|
|
47
65
|
|
|
48
|
-
var ListLayout = /*#__PURE__*/function (_Component) {
|
|
49
|
-
_inherits(ListLayout, _Component);
|
|
50
|
-
|
|
51
|
-
var _super = _createSuper(ListLayout);
|
|
52
|
-
|
|
53
|
-
function ListLayout(props) {
|
|
54
|
-
_classCallCheck(this, ListLayout);
|
|
55
|
-
|
|
56
|
-
return _super.call(this, props);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
_createClass(ListLayout, [{
|
|
60
|
-
key: "render",
|
|
61
|
-
value: function render() {
|
|
62
|
-
var _this$props = this.props,
|
|
63
|
-
children = _this$props.children,
|
|
64
|
-
className = _this$props.className,
|
|
65
|
-
needHover = _this$props.needHover,
|
|
66
|
-
align = _this$props.align,
|
|
67
|
-
view = _this$props.view,
|
|
68
|
-
containerClass = _this$props.containerClass,
|
|
69
|
-
isActive = _this$props.isActive,
|
|
70
|
-
onClick = _this$props.onClick,
|
|
71
|
-
onMouseLeave = _this$props.onMouseLeave,
|
|
72
|
-
dataId = _this$props.dataId,
|
|
73
|
-
dataTitle = _this$props.dataTitle,
|
|
74
|
-
a11y = _this$props.a11y,
|
|
75
|
-
isHovered = _this$props.isHovered,
|
|
76
|
-
onMouseEnter = _this$props.onMouseEnter,
|
|
77
|
-
needPointer = _this$props.needPointer,
|
|
78
|
-
isKeyboardActive = _this$props.isKeyboardActive;
|
|
79
|
-
var _a11y$role = a11y.role,
|
|
80
|
-
role = _a11y$role === void 0 ? 'listitem' : _a11y$role,
|
|
81
|
-
ariaLabel = a11y.ariaLabel,
|
|
82
|
-
ariaPosinset = a11y.ariaPosinset,
|
|
83
|
-
ariaSetsize = a11y.ariaSetsize;
|
|
84
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
-
className: "".concat(_ListLayoutModule["default"].container, " ").concat(containerClass, " ").concat(needHover ? _ListLayoutModule["default"].listHover : '', " ").concat(isActive ? _ListLayoutModule["default"].active : '', " ").concat(_ListLayoutModule["default"][view], " ").concat(onClick && needPointer ? _ListLayoutModule["default"].cursorPointer : '', " ").concat(isHovered ? _ListLayoutModule["default"].hoveredStyle : '', " ").concat(isKeyboardActive ? _ListLayoutModule["default"].keyboardActive : '', " "),
|
|
86
|
-
onClick: onClick,
|
|
87
|
-
onMouseEnter: onMouseEnter,
|
|
88
|
-
onMouseLeave: onMouseLeave,
|
|
89
|
-
"data-id": dataId,
|
|
90
|
-
"data-test-id": dataId,
|
|
91
|
-
"data-title": dataTitle,
|
|
92
|
-
tabIndex: "0",
|
|
93
|
-
role: role,
|
|
94
|
-
"data-a11y-inset-focus": true,
|
|
95
|
-
"aria-label": ariaLabel,
|
|
96
|
-
"aria-setsize": ariaSetsize,
|
|
97
|
-
"aria-posinset": ariaPosinset
|
|
98
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
99
|
-
alignBox: "row",
|
|
100
|
-
align: align,
|
|
101
|
-
className: "".concat(_ListLayoutModule["default"].innerContainer, " ").concat(className ? className : '')
|
|
102
|
-
}, children));
|
|
103
|
-
}
|
|
104
|
-
}]);
|
|
105
|
-
|
|
106
|
-
return ListLayout;
|
|
107
|
-
}(_react.Component);
|
|
108
|
-
|
|
109
|
-
exports["default"] = ListLayout;
|
|
110
66
|
ListLayout.propTypes = _propTypes.ListLayout_propTypes;
|
|
111
67
|
ListLayout.defaultProps = _defaultProps.ListLayout_defaultProps;
|
|
112
68
|
|
|
113
|
-
|
|
114
|
-
|
|
69
|
+
function Column(props) {
|
|
70
|
+
var children = props.children,
|
|
71
|
+
className = props.className;
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, _extends({
|
|
73
|
+
className: "".concat(className ? className : '')
|
|
74
|
+
}, props), children);
|
|
75
|
+
}
|
|
115
76
|
|
|
116
|
-
var _super2 = _createSuper(Column);
|
|
117
|
-
|
|
118
|
-
function Column(props) {
|
|
119
|
-
_classCallCheck(this, Column);
|
|
120
|
-
|
|
121
|
-
return _super2.call(this, props);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
_createClass(Column, [{
|
|
125
|
-
key: "render",
|
|
126
|
-
value: function render() {
|
|
127
|
-
var _this$props2 = this.props,
|
|
128
|
-
children = _this$props2.children,
|
|
129
|
-
className = _this$props2.className;
|
|
130
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, _extends({
|
|
131
|
-
className: "".concat(className ? className : '')
|
|
132
|
-
}, this.props), children);
|
|
133
|
-
}
|
|
134
|
-
}]);
|
|
135
|
-
|
|
136
|
-
return Column;
|
|
137
|
-
}(_react.Component);
|
|
138
|
-
|
|
139
|
-
exports.Column = Column;
|
|
140
77
|
Column.propTypes = _propTypes.Column_propTypes; // if (__DOCS__) {
|
|
141
78
|
// ListLayout.docs = {
|
|
142
79
|
// folderName: 'List',
|