@zohodesk/dot 1.0.0-temp-131 → 1.0.0-temp-133
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 +20 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +289 -289
- package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +9 -9
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +283 -283
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +291 -291
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +9 -9
- package/es/ActionButton/ActionButton.js +1 -1
- package/es/Attachment/Attachment.js +1 -1
- package/es/AttachmentViewer/AttachmentViewer.js +1 -1
- package/es/ChannelIcon/ChannelIcon.js +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/FreezeLayer/FreezeLayer.js +61 -114
- package/es/FreezeLayer/css/cssJSLogic.js +23 -0
- package/es/FreezeLayer/index.js +2 -0
- package/es/FreezeLayer/props/defaultProps.js +1 -0
- package/es/FreezeLayer/props/propTypes.js +1 -0
- package/es/FreezeLayer/useFreezeLayer.js +50 -0
- package/es/IconButton/IconButton.js +1 -1
- package/es/ImportantNotes/ImportantNotes.js +1 -1
- package/es/Message/Message.js +1 -1
- package/es/MessageBanner/MessageBanner.js +1 -1
- package/es/NewStar/NewStar.js +1 -1
- package/es/ToastMessage/ToastMessage.js +1 -1
- package/es/Upload/Upload.js +1 -1
- package/es/alert/AlertHeader/AlertHeader.js +1 -1
- package/es/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/avatar/AvatarIcon/AvatarIcon.js +1 -1
- package/es/avatar/AvatarStatus/AvatarStatus.js +3 -1
- package/es/avatar/AvatarStatus/props/defaultProps.js +3 -1
- package/es/avatar/AvatarStatus/props/propTypes.js +2 -0
- package/es/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -2
- package/es/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/es/avatar/AvatarWithTeam/props/propTypes.js +1 -0
- package/es/deprecated/FreezeLayer/FreezeLayer.js +128 -0
- package/es/deprecated/FreezeLayer/props/defaultProps.js +8 -0
- package/es/deprecated/FreezeLayer/props/propTypes.js +17 -0
- package/es/deprecated/SelectDropdown/SelectDropdown.js +1 -1
- package/es/docs/formDocs.js +1 -16
- package/es/docs/generalDocs.js +1 -107
- package/es/docs/lookupDocs.js +1 -35
- package/es/docs/setupDocs.js +1 -15
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +1 -1
- package/es/form/fields/FieldContainer/FieldContainer.js +1 -1
- package/es/form/fields/PhoneField/PhoneField.js +1 -1
- package/es/form/fields/ValidationMessage/ValidationMessage.js +1 -1
- package/es/index.js +0 -3
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/es/list/AvatarFlip/AvatarFlip.js +4 -2
- package/es/list/AvatarFlip/props/defaultProps.js +2 -1
- package/es/list/AvatarFlip/props/propTypes.js +2 -1
- package/es/list/BluePrintStatus/BluePrintStatus.js +1 -1
- package/es/list/Comment/Comment.js +1 -1
- package/es/list/Icons/AddNewIcon.js +1 -1
- package/es/list/Icons/CompleteIcon.js +1 -1
- package/es/list/Icons/DeleteIcon.js +1 -1
- package/es/list/Icons/EditIcon.js +1 -1
- package/es/list/Icons/ReadUnreadIcon.js +1 -1
- package/es/list/Icons/SmartIcon.js +1 -1
- package/es/list/SecondaryText/ContactName.js +1 -1
- package/es/list/SentimentStatus/SentimentStatus.js +1 -1
- package/es/list/Thread/Thread.js +1 -1
- package/es/list/UserTime/UserTime.js +1 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +1 -1
- package/es/lookup/header/Search/Search.js +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/es/setup/header/Link/Link.js +1 -1
- package/es/setup/header/Search/Search.js +1 -1
- package/es/setup/header/Views/Views.js +1 -1
- package/es/version2/AlertClose/AlertClose.js +1 -1
- package/lib/ActionButton/ActionButton.js +3 -3
- package/lib/Attachment/Attachment.js +3 -3
- package/lib/AttachmentViewer/AttachmentViewer.js +3 -3
- package/lib/ChannelIcon/ChannelIcon.js +3 -3
- package/lib/Drawer/Drawer.js +2 -2
- package/lib/FreezeLayer/FreezeLayer.js +58 -141
- package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -0
- package/lib/FreezeLayer/css/cssJSLogic.js +22 -0
- package/lib/FreezeLayer/index.js +20 -0
- package/lib/FreezeLayer/props/defaultProps.js +1 -0
- package/lib/FreezeLayer/props/propTypes.js +1 -0
- package/lib/FreezeLayer/useFreezeLayer.js +73 -0
- package/lib/IconButton/IconButton.js +2 -2
- package/lib/ImportantNotes/ImportantNotes.js +2 -2
- package/lib/Message/Message.js +3 -3
- package/lib/MessageBanner/MessageBanner.js +2 -2
- package/lib/NewStar/NewStar.js +4 -4
- package/lib/ToastMessage/ToastMessage.js +5 -5
- package/lib/Upload/Upload.js +3 -3
- package/lib/alert/AlertHeader/AlertHeader.js +2 -2
- package/lib/avatar/AvatarClose/AvatarClose.js +2 -2
- package/lib/avatar/AvatarCollision/AvatarCollision.js +2 -2
- package/lib/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/avatar/AvatarStatus/AvatarStatus.js +3 -1
- package/lib/avatar/AvatarStatus/props/defaultProps.js +3 -1
- package/lib/avatar/AvatarStatus/props/propTypes.js +22 -24
- package/lib/avatar/AvatarThread/AvatarThread.js +2 -2
- package/lib/avatar/AvatarUser/AvatarUser.js +5 -5
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -2
- package/lib/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarWithTeam/props/propTypes.js +1 -0
- package/lib/deprecated/FreezeLayer/FreezeLayer.js +161 -0
- package/lib/deprecated/FreezeLayer/FreezeLayer.module.css +42 -0
- package/lib/deprecated/FreezeLayer/props/defaultProps.js +15 -0
- package/lib/deprecated/FreezeLayer/props/propTypes.js +25 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +2 -2
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -3
- package/lib/form/fields/FieldContainer/FieldContainer.js +3 -3
- package/lib/form/fields/PhoneField/PhoneField.js +2 -2
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +6 -6
- package/lib/list/AvatarFlip/AvatarFlip.js +4 -2
- package/lib/list/AvatarFlip/props/defaultProps.js +2 -1
- package/lib/list/AvatarFlip/props/propTypes.js +2 -1
- package/lib/list/BluePrintStatus/BluePrintStatus.js +2 -2
- package/lib/list/Comment/Comment.js +2 -2
- package/lib/list/Icons/AddNewIcon.js +2 -2
- package/lib/list/Icons/CompleteIcon.js +2 -2
- package/lib/list/Icons/DeleteIcon.js +2 -2
- package/lib/list/Icons/EditIcon.js +2 -2
- package/lib/list/Icons/ReadUnreadIcon.js +2 -2
- package/lib/list/Icons/SmartIcon.js +2 -2
- package/lib/list/SecondaryText/ContactName.js +2 -2
- package/lib/list/SentimentStatus/SentimentStatus.js +2 -2
- package/lib/list/Thread/Thread.js +2 -2
- package/lib/list/UserTime/UserTime.js +8 -8
- package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/list/status/StatusListItem/StatusListItem.js +2 -2
- package/lib/lookup/header/Search/Search.js +4 -4
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +2 -2
- package/lib/setup/header/Link/Link.js +2 -2
- package/lib/setup/header/Search/Search.js +2 -2
- package/lib/setup/header/Views/Views.js +3 -3
- package/lib/version2/AlertClose/AlertClose.js +2 -2
- package/package.json +7 -7
- /package/es/FreezeLayer/{FreezeLayer.module.css → css/FreezeLayer.module.css} +0 -0
- /package/{lib → es/deprecated}/FreezeLayer/FreezeLayer.module.css +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AddNewIcon_propTypes } from './props/propTypes';
|
|
3
|
-
import Icon from '@zohodesk/icons
|
|
3
|
+
import { Icon } from '@zohodesk/icons';
|
|
4
4
|
import style from './Icons.module.css';
|
|
5
5
|
export default class AddNewIcon extends React.Component {
|
|
6
6
|
render() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CompleteIcon_propTypes } from './props/propTypes';
|
|
3
|
-
import Icon from '@zohodesk/icons
|
|
3
|
+
import { Icon } from '@zohodesk/icons';
|
|
4
4
|
import style from './Icons.module.css';
|
|
5
5
|
export default class CompleteIcon extends React.Component {
|
|
6
6
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DeleteComponent_propTypes } from './props/propTypes';
|
|
3
3
|
import style from './Icons.module.css';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
export default class DeleteComponent extends React.Component {
|
|
6
6
|
render() {
|
|
7
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditIcon_propTypes } from './props/propTypes';
|
|
3
3
|
import style from './Icons.module.css';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
export default class EditIcon extends React.Component {
|
|
6
6
|
render() {
|
|
7
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ReadUnreadIcon_defaultProps } from './props/defaultProps';
|
|
3
3
|
import { ReadUnreadIcon_propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import style from './Icons.module.css';
|
|
6
6
|
export default class ReadUnreadIcon extends React.Component {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { SmartIcon_propTypes } from './props/propTypes';
|
|
3
3
|
import style from './Icons.module.css';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
export default class SmartIcon extends Component {
|
|
6
6
|
render() {
|
|
7
7
|
let {
|
|
@@ -5,7 +5,7 @@ import { ContactName_propTypes } from './props/propTypes';
|
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
import Link from '../../Link/Link';
|
|
7
7
|
import SentimentStatus from '../SentimentStatus/SentimentStatus';
|
|
8
|
-
import Icon from '@zohodesk/icons
|
|
8
|
+
import { Icon } from '@zohodesk/icons';
|
|
9
9
|
import style from './SecondaryText.module.css';
|
|
10
10
|
export default class ContactName extends Component {
|
|
11
11
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { propTypes } from './props/propTypes';
|
|
3
3
|
import style from './SentimentStatus.module.css';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
export default class SentimentStatus extends React.Component {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
super(props);
|
package/es/list/Thread/Thread.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
6
6
|
import style from './Thread.module.css';
|
|
7
7
|
export default class Thread extends Component {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import { Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
import { UserTimeDiffFormat } from '@zohodesk/i18n';
|
|
7
7
|
import style from './UserTime.module.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import Popup from '@zohodesk/components/lib/Popup/Popup';
|
|
6
6
|
import { Box, Container } from '@zohodesk/components/lib/Layout';
|
|
7
7
|
import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
|
|
@@ -5,7 +5,7 @@ import { defaultProps } from './props/defaultProps';
|
|
|
5
5
|
import { propTypes } from './props/propTypes';
|
|
6
6
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
7
7
|
/**** Components ****/
|
|
8
|
-
import Icon from '@zohodesk/icons
|
|
8
|
+
import { Icon } from '@zohodesk/icons';
|
|
9
9
|
import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
|
|
10
10
|
/**** CSS ****/
|
|
11
11
|
import style from './StatusListItem.module.css';
|
|
@@ -9,7 +9,7 @@ import { Search_propTypes, SearchUI_propTypes } from './props/propTypes';
|
|
|
9
9
|
/** * Components ** */
|
|
10
10
|
import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
11
11
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
12
|
-
import Icon from '@zohodesk/icons
|
|
12
|
+
import { Icon } from '@zohodesk/icons';
|
|
13
13
|
import ToggleDropDown from '../../../dropdown/ToggleDropDown/ToggleDropDown';
|
|
14
14
|
|
|
15
15
|
/** * Methods ** */
|
|
@@ -13,7 +13,7 @@ import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/Respon
|
|
|
13
13
|
import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
14
14
|
|
|
15
15
|
/**** Icons ****/
|
|
16
|
-
import Icon from '@zohodesk/icons
|
|
16
|
+
import { Icon } from '@zohodesk/icons';
|
|
17
17
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
18
18
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
19
19
|
import style from './ViewDropDown.module.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import { Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
import ExternalLink from '../../../ExternalLink/ExternalLink';
|
|
7
7
|
import style from './HeaderLink.module.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
|
|
6
6
|
import style from './Search.module.css';
|
|
7
7
|
export default class Search extends React.Component {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
4
|
import style from './Views.module.css';
|
|
5
|
-
import Icon from '@zohodesk/icons
|
|
5
|
+
import { Icon } from '@zohodesk/icons';
|
|
6
6
|
export default class Views extends React.Component {
|
|
7
7
|
constructor(props) {
|
|
8
8
|
super(props);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*** Libraries ***/
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
import style from './AlertClose.module.css';
|
|
7
7
|
export default class AlertClose extends PureComponent {
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _defaultProps = require("./props/defaultProps");
|
|
10
10
|
var _propTypes = require("./props/propTypes");
|
|
11
11
|
var _Popup = _interopRequireDefault(require("@zohodesk/components/lib/Popup/Popup"));
|
|
12
|
-
var
|
|
12
|
+
var _icons = require("@zohodesk/icons");
|
|
13
13
|
var _Button = _interopRequireDefault(require("@zohodesk/components/lib/Button/Button"));
|
|
14
14
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
15
15
|
var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox"));
|
|
@@ -111,7 +111,7 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
111
111
|
isCover: false,
|
|
112
112
|
alignBox: "row",
|
|
113
113
|
align: "vertical"
|
|
114
|
-
}, iconName ? /*#__PURE__*/_react["default"].createElement(
|
|
114
|
+
}, iconName ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
115
115
|
name: iconName,
|
|
116
116
|
size: iconSize,
|
|
117
117
|
iconClass: "".concat(_ActionButtonModule["default"].iconClr, " ").concat(text ? _ActionButtonModule["default"].iconMrgn : '')
|
|
@@ -133,7 +133,7 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
133
133
|
dataSelectorId: "".concat(dataSelectorId, "_arrowButton")
|
|
134
134
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
135
135
|
align: "both"
|
|
136
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
137
137
|
name: "ZD-down",
|
|
138
138
|
size: "6",
|
|
139
139
|
iconClass: _ActionButtonModule["default"].arrow
|
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _defaultProps = require("./props/defaultProps");
|
|
10
10
|
var _propTypes = require("./props/propTypes");
|
|
11
|
-
var
|
|
11
|
+
var _icons = require("@zohodesk/icons");
|
|
12
12
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
13
13
|
var _Link = _interopRequireDefault(require("../Link/Link"));
|
|
14
14
|
var _AttachmentModule = _interopRequireDefault(require("./Attachment.module.css"));
|
|
@@ -61,7 +61,7 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
|
|
|
61
61
|
className: _AttachmentModule["default"].attachleft
|
|
62
62
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
63
63
|
align: "both"
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
65
65
|
name: iconName,
|
|
66
66
|
iconClass: _AttachmentModule["default"].attachIcon
|
|
67
67
|
}))) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -96,7 +96,7 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
|
|
|
96
96
|
className: _AttachmentModule["default"].attachDownload,
|
|
97
97
|
title: downloadTitle,
|
|
98
98
|
hasReload: true
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
100
100
|
name: "ZD-downloadNew",
|
|
101
101
|
iconClass: _AttachmentModule["default"].downIcon
|
|
102
102
|
})) : null);
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _defaultProps = require("./props/defaultProps");
|
|
10
10
|
var _propTypes = require("./props/propTypes");
|
|
11
11
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
12
|
-
var
|
|
12
|
+
var _icons = require("@zohodesk/icons");
|
|
13
13
|
var _Avatar = _interopRequireDefault(require("@zohodesk/components/lib/Avatar/Avatar"));
|
|
14
14
|
var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
|
|
15
15
|
var _IdProvider = require("@zohodesk/components/lib/Provider/IdProvider");
|
|
@@ -450,7 +450,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
450
450
|
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
451
451
|
className: _AttachmentViewerModule["default"].btn,
|
|
452
452
|
"aria-label": i18nKeys.previousText
|
|
453
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
453
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
454
454
|
name: "ZD-arrowLeft3",
|
|
455
455
|
iconClass: _AttachmentViewerModule["default"].arrow,
|
|
456
456
|
dataId: "leftAttachNav",
|
|
@@ -472,7 +472,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
472
472
|
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
473
473
|
className: _AttachmentViewerModule["default"].btn,
|
|
474
474
|
"aria-label": i18nKeys.nextText
|
|
475
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
475
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
476
476
|
name: "ZD-arrowRight3",
|
|
477
477
|
iconClass: _AttachmentViewerModule["default"].arrow,
|
|
478
478
|
dataId: "rightAttachNav",
|
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _defaultProps = require("./props/defaultProps");
|
|
10
10
|
var _propTypes = require("./props/propTypes");
|
|
11
|
-
var
|
|
11
|
+
var _icons = require("@zohodesk/icons");
|
|
12
12
|
var _Avatar = _interopRequireDefault(require("@zohodesk/components/lib/Avatar/Avatar"));
|
|
13
13
|
var _AvatarIcon = _interopRequireDefault(require("../avatar/AvatarIcon/AvatarIcon"));
|
|
14
14
|
var _ChannelIconMapping = require("../utils/ChannelIconMapping");
|
|
@@ -95,7 +95,7 @@ var ChannelIcon = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
customClass: customTextClass,
|
|
96
96
|
needTitle: title,
|
|
97
97
|
title: title
|
|
98
|
-
}) : /*#__PURE__*/_react["default"].createElement(
|
|
98
|
+
}) : /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
99
99
|
name: iconName,
|
|
100
100
|
size: iconSize,
|
|
101
101
|
iconClass: "".concat(iconClass ? iconClass : '', " ").concat(_ChannelIconModule["default"].iconStyle, " ").concat(name && action ? _ChannelIconModule["default"]["".concat(name.toLowerCase(), "_").concat(action.toLowerCase())] : ''),
|
|
@@ -104,7 +104,7 @@ var ChannelIcon = /*#__PURE__*/function (_Component) {
|
|
|
104
104
|
}), topicIcon ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
105
105
|
className: "".concat(_ChannelIconModule["default"].thread, " ").concat(needTopicBorder ? _ChannelIconModule["default"].threadBorder : '', " ").concat(topicClass ? topicClass : ''),
|
|
106
106
|
"data-title": topicIconTitle
|
|
107
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
108
108
|
name: topicIcon,
|
|
109
109
|
size: topicIconSize,
|
|
110
110
|
iconClass: _ChannelIconModule["default"]["topic_".concat(topicIconColor)] ? "".concat(_ChannelIconModule["default"].topicIcon, " ").concat(_ChannelIconModule["default"]["topic_".concat(topicIconColor)]) : '',
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -16,7 +16,7 @@ var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/componen
|
|
|
16
16
|
var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
|
|
17
17
|
var _Heading = _interopRequireDefault(require("@zohodesk/components/lib/Heading/Heading"));
|
|
18
18
|
var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
|
|
19
|
-
var
|
|
19
|
+
var _icons = require("@zohodesk/icons");
|
|
20
20
|
var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider");
|
|
21
21
|
var _DrawerModule = _interopRequireDefault(require("./Drawer.module.css"));
|
|
22
22
|
var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
|
|
@@ -82,7 +82,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
|
|
|
82
82
|
hoverType: "border",
|
|
83
83
|
isBold: isIconBold,
|
|
84
84
|
title: iconTitle
|
|
85
|
-
}) : /*#__PURE__*/_react["default"].createElement(
|
|
85
|
+
}) : /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
86
86
|
name: iconName,
|
|
87
87
|
size: iconSize,
|
|
88
88
|
onClick: onIconClick,
|
|
@@ -1,155 +1,72 @@
|
|
|
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
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports["default"] =
|
|
8
|
-
var _react =
|
|
6
|
+
exports["default"] = FreezeLayer;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
8
|
var _defaultProps = require("./props/defaultProps");
|
|
10
9
|
var _propTypes = require("./props/propTypes");
|
|
11
10
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
11
|
+
var _utils = require("@zohodesk/components/es/utils/");
|
|
12
12
|
var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup"));
|
|
13
|
-
var _FreezeLayerModule = _interopRequireDefault(require("./FreezeLayer.module.css"));
|
|
14
13
|
var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider");
|
|
15
|
-
var
|
|
14
|
+
var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
|
|
15
|
+
var _useFreezeLayer2 = _interopRequireDefault(require("./useFreezeLayer"));
|
|
16
|
+
var _FreezeLayerModule = _interopRequireDefault(require("./css/FreezeLayer.module.css"));
|
|
16
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
});
|
|
70
|
-
this.enableFreeze();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: "componentDidUpdate",
|
|
75
|
-
value: function componentDidUpdate(prevProps) {
|
|
76
|
-
var _this2 = this;
|
|
77
|
-
var isActive = this.props.isActive;
|
|
78
|
-
if (isActive != prevProps.isActive) {
|
|
79
|
-
if (isActive) {
|
|
80
|
-
this.enableFreeze();
|
|
81
|
-
this.setState({
|
|
82
|
-
isActive: true
|
|
83
|
-
}, function () {
|
|
84
|
-
_this2.setState({
|
|
85
|
-
isChildActive: true
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
} else {
|
|
89
|
-
this.disableFreeze();
|
|
90
|
-
this.setState({
|
|
91
|
-
isChildActive: false
|
|
92
|
-
}, function () {
|
|
93
|
-
_this2.setState({
|
|
94
|
-
isActive: false
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}, {
|
|
101
|
-
key: "componentWillUnmount",
|
|
102
|
-
value: function componentWillUnmount() {
|
|
103
|
-
this.disableFreeze();
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
key: "render",
|
|
107
|
-
value: function render() {
|
|
108
|
-
var _this$props = this.props,
|
|
109
|
-
children = _this$props.children,
|
|
110
|
-
align = _this$props.align,
|
|
111
|
-
childAnimationName = _this$props.childAnimationName,
|
|
112
|
-
palette = _this$props.palette,
|
|
113
|
-
onClick = _this$props.onClick,
|
|
114
|
-
animationName = _this$props.animationName,
|
|
115
|
-
zIndex = _this$props.zIndex,
|
|
116
|
-
runOnMount = _this$props.runOnMount,
|
|
117
|
-
forwardRef = _this$props.forwardRef,
|
|
118
|
-
isSvgMask = _this$props.isSvgMask,
|
|
119
|
-
customClass = _this$props.customClass,
|
|
120
|
-
needAutoZindex = _this$props.needAutoZindex;
|
|
121
|
-
var _this$state = this.state,
|
|
122
|
-
isActive = _this$state.isActive,
|
|
123
|
-
isChildActive = _this$state.isChildActive;
|
|
124
|
-
return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
125
|
-
name: animationName && animationName,
|
|
126
|
-
isActive: isActive,
|
|
127
|
-
runOnMount: runOnMount
|
|
128
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
-
style: isActive && needAutoZindex ? {
|
|
130
|
-
zIndex: "".concat(this.getNextIndex())
|
|
131
|
-
} : {},
|
|
132
|
-
className: "\n ".concat(_FreezeLayerModule["default"].container, " ").concat(customClass, " ").concat(_FreezeLayerModule["default"]["index".concat(zIndex)], " ").concat(!isSvgMask ? _FreezeLayerModule["default"][palette] : '', "\n "),
|
|
133
|
-
onClick: onClick ? onClick : null,
|
|
134
|
-
ref: forwardRef
|
|
135
|
-
}, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
136
|
-
name: childAnimationName,
|
|
137
|
-
isActive: isChildActive,
|
|
138
|
-
enterDelay: palette === 'plain' ? 0 : 300,
|
|
139
|
-
component: _Layout.Container,
|
|
140
|
-
alignBox: "row",
|
|
141
|
-
align: align,
|
|
142
|
-
dataId: "reactFreezeLayer"
|
|
143
|
-
}, children) : isSvgMask ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children) : /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
144
|
-
alignBox: "row",
|
|
145
|
-
align: align,
|
|
146
|
-
dataId: "reactFreezeLayer"
|
|
147
|
-
}, children))));
|
|
148
|
-
}
|
|
149
|
-
}]);
|
|
150
|
-
return FreezeLayer;
|
|
151
|
-
}(_react.Component);
|
|
152
|
-
exports["default"] = FreezeLayer;
|
|
18
|
+
function FreezeLayer(props) {
|
|
19
|
+
var propsActive = props.isActive,
|
|
20
|
+
children = props.children,
|
|
21
|
+
align = props.align,
|
|
22
|
+
childAnimationName = props.childAnimationName,
|
|
23
|
+
palette = props.palette,
|
|
24
|
+
onClick = props.onClick,
|
|
25
|
+
animationName = props.animationName,
|
|
26
|
+
runOnMount = props.runOnMount,
|
|
27
|
+
forwardRef = props.forwardRef,
|
|
28
|
+
isSvgMask = props.isSvgMask,
|
|
29
|
+
needAutoZindex = props.needAutoZindex,
|
|
30
|
+
customStyle = props.customStyle;
|
|
31
|
+
var finalStyle = (0, _utils.mergeStyle)(_FreezeLayerModule["default"], customStyle);
|
|
32
|
+
var _cssJSLogic = (0, _cssJSLogic2["default"])({
|
|
33
|
+
props: props,
|
|
34
|
+
style: finalStyle
|
|
35
|
+
}),
|
|
36
|
+
freezeClass = _cssJSLogic.freezeClass;
|
|
37
|
+
var getNextIndex = (0, _ZindexProvider.useZIndex)();
|
|
38
|
+
var _useFreezeLayer = (0, _useFreezeLayer2["default"])({
|
|
39
|
+
isActive: propsActive,
|
|
40
|
+
onClick: onClick
|
|
41
|
+
}),
|
|
42
|
+
isActive = _useFreezeLayer.isActive,
|
|
43
|
+
isChildActive = _useFreezeLayer.isChildActive,
|
|
44
|
+
handleClick = _useFreezeLayer.handleClick;
|
|
45
|
+
return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
46
|
+
name: animationName && animationName,
|
|
47
|
+
isActive: isActive,
|
|
48
|
+
runOnMount: runOnMount
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
style: isActive && needAutoZindex ? {
|
|
51
|
+
zIndex: "".concat(getNextIndex())
|
|
52
|
+
} : {},
|
|
53
|
+
className: freezeClass,
|
|
54
|
+
onClick: handleClick,
|
|
55
|
+
ref: forwardRef
|
|
56
|
+
}, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
57
|
+
name: childAnimationName,
|
|
58
|
+
isActive: isChildActive,
|
|
59
|
+
enterDelay: palette === 'plain' ? 0 : 300,
|
|
60
|
+
component: _Layout.Container,
|
|
61
|
+
alignBox: "row",
|
|
62
|
+
align: align,
|
|
63
|
+
dataId: "reactFreezeLayer"
|
|
64
|
+
}, children) : isSvgMask ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children) : /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
65
|
+
alignBox: "row",
|
|
66
|
+
align: align,
|
|
67
|
+
dataId: "reactFreezeLayer"
|
|
68
|
+
}, children))));
|
|
69
|
+
}
|
|
153
70
|
FreezeLayer.propTypes = _propTypes.propTypes;
|
|
154
71
|
FreezeLayer.defaultProps = _defaultProps.defaultProps;
|
|
155
72
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
top: 0;
|
|
3
|
+
bottom: 0;
|
|
4
|
+
position: absolute;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}[dir=ltr] .container {
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
}[dir=rtl] .container {
|
|
10
|
+
right: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
}
|
|
13
|
+
.default {
|
|
14
|
+
background-color: var(--zdt_freezelayer_default_bg);
|
|
15
|
+
}
|
|
16
|
+
.dark {
|
|
17
|
+
background-color: var(--zdt_freezelayer_dark_bg);
|
|
18
|
+
}
|
|
19
|
+
.darkLight {
|
|
20
|
+
background-color: var(--zdt_freezelayer_darklight_bg);
|
|
21
|
+
}
|
|
22
|
+
.plain {
|
|
23
|
+
background-color: var(--zdt_freezelayer_plain_bg);
|
|
24
|
+
}
|
|
25
|
+
.snow {
|
|
26
|
+
background-color: var(--zdt_freezelayer_snow_bg);
|
|
27
|
+
}
|
|
28
|
+
.index3 {
|
|
29
|
+
z-index: 3;
|
|
30
|
+
}
|
|
31
|
+
.index5 {
|
|
32
|
+
z-index: 5;
|
|
33
|
+
}
|
|
34
|
+
.index7 {
|
|
35
|
+
z-index: 7;
|
|
36
|
+
}
|
|
37
|
+
.index10 {
|
|
38
|
+
z-index: 10;
|
|
39
|
+
}
|
|
40
|
+
.delay {
|
|
41
|
+
transition-delay: var(--zd_transition2);
|
|
42
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = cssJSLogic;
|
|
7
|
+
var _utils = require("@zohodesk/components/es/utils");
|
|
8
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function cssJSLogic(_ref) {
|
|
10
|
+
var _compileClassNames;
|
|
11
|
+
var props = _ref.props,
|
|
12
|
+
style = _ref.style;
|
|
13
|
+
var zIndex = props.zIndex,
|
|
14
|
+
palette = props.palette,
|
|
15
|
+
isSvgMask = props.isSvgMask,
|
|
16
|
+
customClass = props.customClass;
|
|
17
|
+
var zIndexClass = "index".concat(zIndex);
|
|
18
|
+
var freezeClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.container, true), _defineProperty(_compileClassNames, customClass, !!customClass), _defineProperty(_compileClassNames, style[zIndexClass], !!zIndex), _defineProperty(_compileClassNames, style[palette], !isSvgMask && !!palette), _compileClassNames));
|
|
19
|
+
return {
|
|
20
|
+
freezeClass: freezeClass
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "FreezeLayer", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _FreezeLayer["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "FreezeLayerPropTypes", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _propTypes["default"];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _FreezeLayer = _interopRequireDefault(require("./FreezeLayer"));
|
|
19
|
+
var _propTypes = _interopRequireDefault(require("./props/propTypes"));
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|