@zohodesk/dot 1.0.0-beta.204 → 1.0.0-beta.205
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 +7 -0
- package/es/Appearance/dark/mode/dotDarkMode.module.css +520 -536
- package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/es/Appearance/default/mode/dotDefaultMode.module.css +520 -536
- package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/es/FreezeLayer/docs/FreezeLayer__dark.docs.js +2 -2
- package/es/FreezeLayer/docs/FreezeLayer__default.docs.js +2 -2
- package/es/Loader/docs/Loader__default.docs.js +1 -1
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +6 -6
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -2
- package/es/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +1 -1
- package/es/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +1 -1
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +2 -2
- package/es/list/DotNew/DotNew.module.css +4 -4
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -5
- package/lib/ActionButton/ActionButton.js +3 -3
- package/lib/ActionButton/docs/ActionButton__default.docs.js +3 -3
- package/lib/AlphabeticList/AlphabeticList.js +3 -3
- package/lib/AlphabeticList/docs/AlphabeticList__default.docs.js +3 -3
- package/lib/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +3 -3
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +520 -536
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +520 -536
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/lib/Attachment/Attachment.js +3 -3
- package/lib/Attachment/docs/Attachment__default.docs.js +3 -3
- package/lib/ChannelIcon/ChannelIcon.js +3 -3
- package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +3 -3
- package/lib/Drawer/Drawer.js +3 -3
- package/lib/Drawer/docs/Drawer__default.docs.js +3 -3
- package/lib/Drawer/docs/Drawer__multiDrawer.docs.js +3 -3
- package/lib/Drawer/docs/Drawer__noFreeze.docs.js +3 -3
- package/lib/Drawer/docs/Drawer__withModal.docs.js +3 -3
- package/lib/ExternalLink/ExternalLink.js +3 -3
- package/lib/ExternalLink/docs/ExternalLink__default.docs.js +3 -3
- package/lib/FlipCard/FlipCard.js +3 -3
- package/lib/FlipCard/docs/FlipCard__default.docs.js +3 -3
- package/lib/FormAction/FormAction.js +3 -3
- package/lib/FormAction/docs/FormAction__default.docs.js +3 -3
- package/lib/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +5 -5
- package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +5 -5
- package/lib/IconButton/IconButton.js +3 -3
- package/lib/IconButton/docs/IconButton__default.docs.js +3 -3
- package/lib/Image/Image.js +3 -3
- package/lib/Image/docs/Image__default.docs.js +3 -3
- package/lib/ImportantNotes/ImportantNotes.js +3 -3
- package/lib/ImportantNotes/docs/ImportantNotes__default.docs.js +3 -3
- package/lib/Link/Link.js +3 -3
- package/lib/Link/docs/Link__default.docs.js +3 -3
- package/lib/Loader/Loader.js +3 -3
- package/lib/Loader/docs/Loader__default.docs.js +4 -4
- package/lib/Message/Message.js +3 -3
- package/lib/Message/docs/Message__default.docs.js +3 -3
- package/lib/MessageBanner/MessageBanner.js +3 -3
- package/lib/MessageBanner/docs/MessageBanner__default.docs.js +3 -3
- package/lib/NewStar/NewStar.js +3 -3
- package/lib/NewStar/docs/NewStar__default.docs.js +3 -3
- package/lib/PlusIcon/PlusIcon.js +3 -3
- package/lib/PlusIcon/docs/PlusIcon__default.docs.js +3 -3
- package/lib/Provider.js +3 -3
- package/lib/ToastMessage/ToastMessage.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +3 -3
- package/lib/ToastMessage/docs/ToastMessage__information.docs.js +3 -3
- package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +3 -3
- package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +3 -3
- package/lib/ToastMessage/docs/ToastMessage__success.docs.js +3 -3
- package/lib/Upload/Upload.js +3 -3
- package/lib/Upload/docs/Upload__default.docs.js +3 -3
- package/lib/actions/AutoClose.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +3 -3
- package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +3 -3
- package/lib/alert/AlertLookup/AlertLookup.js +3 -3
- package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +3 -3
- package/lib/avatar/AvatarClose/AvatarClose.js +3 -3
- package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +3 -3
- package/lib/avatar/AvatarCollision/AvatarCollision.js +3 -3
- package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +3 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.js +3 -3
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +3 -3
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +3 -3
- package/lib/avatar/AvatarStatus/AvatarStatus.js +3 -3
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +3 -3
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +3 -3
- package/lib/avatar/AvatarThread/AvatarThread.js +3 -3
- package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +3 -3
- package/lib/avatar/AvatarUser/AvatarUser.js +3 -3
- package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +3 -3
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -3
- package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +3 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +3 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +6 -6
- package/lib/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +3 -3
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -3
- package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +3 -3
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +3 -3
- package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +3 -3
- package/lib/emptystate/EditionPage/EditionPage.js +3 -3
- package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +3 -3
- package/lib/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +3 -3
- package/lib/errorstate/LinkText/LinkText.js +3 -3
- package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +3 -3
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +3 -3
- package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +3 -3
- package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +3 -3
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -3
- package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +3 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +3 -3
- package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +3 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +3 -3
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +3 -3
- package/lib/errorstate/WillBack/WillBack.js +3 -3
- package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +3 -3
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -3
- package/lib/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +3 -3
- package/lib/form/fields/CurrencyField/CurrencyField.js +3 -3
- package/lib/form/fields/DateField/DateField.js +3 -3
- package/lib/form/fields/DateField/docs/DateField__default.docs.js +3 -3
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +3 -3
- package/lib/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +3 -3
- package/lib/form/fields/PhoneField/PhoneField.js +3 -3
- package/lib/form/fields/PhoneField/docs/PhoneField__default.docs.js +3 -3
- package/lib/form/fields/RadioField/RadioField.js +3 -3
- package/lib/form/fields/SelectField/SelectField.js +3 -3
- package/lib/form/fields/SelectField/docs/SelectField__default.docs.js +3 -3
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +6 -5
- package/lib/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +3 -3
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +3 -3
- package/lib/form/fields/TextEditor/TextEditor.js +4 -4
- package/lib/form/fields/TextEditorField/TextEditorField.js +3 -3
- package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +4 -4
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +4 -4
- package/lib/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/form/fields/TextareaField/docs/TextareaField__default.docs.js +3 -3
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +3 -3
- package/lib/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +3 -3
- package/lib/form/layout/Field/Field.js +3 -3
- package/lib/form/layout/Field/docs/Field__default.docs.js +3 -3
- package/lib/form/layout/Section/Section.js +3 -3
- package/lib/form/layout/Section/docs/Section__default.docs.js +3 -3
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +3 -3
- package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +3 -3
- package/lib/layout/SetupDetailLayout/index.js +1 -1
- package/lib/layout/SubtabLayout/SubtabLayout.js +3 -3
- package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +3 -3
- package/lib/layout/SubtabLayout/index.js +1 -1
- package/lib/list/AvatarFlip/AvatarFlip.js +3 -3
- package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +3 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.js +3 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +2 -2
- package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +3 -3
- package/lib/list/Comment/Comment.js +3 -3
- package/lib/list/Comment/docs/Comment__default.docs.js +3 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -3
- package/lib/list/Dot/Dot.js +3 -3
- package/lib/list/DotNew/DotNew.js +3 -3
- package/lib/list/DotNew/DotNew.module.css +4 -4
- package/lib/list/DotNew/docs/DotNew__default.docs.js +3 -3
- package/lib/list/GridStencils/GridStencils.js +3 -3
- package/lib/list/GridStencils/docs/GridStencils__default.docs.js +3 -3
- package/lib/list/Icons/AddNewIcon.js +3 -3
- package/lib/list/Icons/CompleteIcon.js +3 -3
- package/lib/list/Icons/DeleteIcon.js +3 -3
- package/lib/list/Icons/EditIcon.js +3 -3
- package/lib/list/Icons/FloatingIcons.js +3 -3
- package/lib/list/Icons/ReadUnreadIcon.js +3 -3
- package/lib/list/Icons/SmartIcon.js +3 -3
- package/lib/list/Icons/docs/FloatingIcons__default.docs.js +3 -3
- package/lib/list/ListLayout/ListLayout.js +3 -3
- package/lib/list/ListLayout/docs/ListLayout__default.docs.js +3 -3
- package/lib/list/ListStencils/ListStencils.js +3 -3
- package/lib/list/ListStencils/docs/ListStencils__default.docs.js +3 -3
- package/lib/list/SecondaryText/AccountName.js +3 -3
- package/lib/list/SecondaryText/ContactName.js +3 -3
- package/lib/list/SecondaryText/DepartmentText.js +3 -3
- package/lib/list/SecondaryText/Email.js +3 -3
- package/lib/list/SecondaryText/HappinessRating.js +3 -3
- package/lib/list/SecondaryText/PhoneNumber.js +3 -3
- package/lib/list/SecondaryText/PriorityText.js +3 -3
- package/lib/list/SecondaryText/SecondaryText.js +3 -3
- package/lib/list/SecondaryText/StatusText.js +3 -3
- package/lib/list/SecondaryText/TicketId.js +3 -3
- package/lib/list/SecondaryText/Website.js +3 -3
- package/lib/list/SecondaryText/docs/ContactName__default.docs.js +3 -3
- package/lib/list/SecondryPanel/SecondryPanel.js +3 -3
- package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +3 -3
- package/lib/list/SentimentStatus/SentimentStatus.js +3 -3
- package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +3 -3
- package/lib/list/Subject/Subject.js +3 -3
- package/lib/list/Subject/docs/Subject__default.docs.js +3 -3
- package/lib/list/TagNew/TagNew.js +3 -3
- package/lib/list/TagNew/docs/TagNew__default.docs.js +3 -3
- package/lib/list/Thread/Thread.js +3 -3
- package/lib/list/Thread/docs/Thread__default.docs.js +3 -3
- package/lib/list/UserTime/UserTime.js +3 -3
- package/lib/list/UserTime/docs/UserTime__default.docs.js +3 -3
- package/lib/list/status/StatusDropdown/StatusDropdown.js +3 -3
- package/lib/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +3 -3
- package/lib/list/status/StatusListItem/StatusListItem.js +3 -3
- package/lib/list/status/StatusListItem/docs/StatusListItem__default.docs.js +3 -3
- package/lib/lookup/EmptyPage/EmptyPage.js +3 -3
- package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +3 -3
- package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +3 -3
- package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +3 -3
- package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +3 -3
- package/lib/lookup/Lookup/Lookup.js +3 -3
- package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +3 -3
- package/lib/lookup/Lookup/docs/Lookup__default.docs.js +3 -3
- package/lib/lookup/Section/Section.js +3 -3
- package/lib/lookup/header/Close/Close.js +3 -3
- package/lib/lookup/header/Close/docs/Close__default.docs.js +3 -3
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +3 -3
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +3 -3
- package/lib/lookup/header/Search/Search.js +3 -3
- package/lib/lookup/header/Search/docs/Search__default.docs.js +3 -3
- package/lib/lookup/header/TicketHeader/TicketHeader.js +3 -3
- package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +3 -3
- package/lib/lookup/header/Title/Title.js +3 -3
- package/lib/lookup/header/Title/docs/Title__default.docs.js +3 -3
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +3 -3
- package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +3 -3
- package/lib/setup/header/Button/Button.js +3 -3
- package/lib/setup/header/Button/docs/Button__default.docs.js +3 -3
- package/lib/setup/header/Link/Link.js +3 -3
- package/lib/setup/header/Link/docs/Link__default.docs.js +3 -3
- package/lib/setup/header/Search/Search.js +3 -3
- package/lib/setup/header/Search/docs/Search__default.docs.js +3 -3
- package/lib/setup/header/Views/Views.js +3 -3
- package/lib/setup/header/Views/docs/Views__default.docs.js +3 -3
- package/lib/setup/helptips/Description/Description.js +3 -3
- package/lib/setup/helptips/Description/docs/Description__default.docs.js +3 -3
- package/lib/setup/helptips/Link/Link.js +3 -3
- package/lib/setup/helptips/Link/docs/Link__default.docs.js +3 -3
- package/lib/setup/helptips/ListGroup/ListGroup.js +3 -3
- package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +3 -3
- package/lib/setup/helptips/Title/Title.js +3 -3
- package/lib/setup/helptips/Title/docs/Title__default.docs.js +3 -3
- package/lib/setup/table/Table/Table.js +3 -3
- package/lib/setup/table/Table/docs/Table__default.docs.js +3 -3
- package/lib/setup/table/TableBody/TableBody.js +3 -3
- package/lib/setup/table/TableData/TableData.js +3 -3
- package/lib/setup/table/TableHead/TableHead.js +3 -3
- package/lib/setup/table/TableRow/TableRow.js +3 -3
- package/lib/setup/table/Text/Text.js +3 -3
- package/lib/setup/table/Text/docs/Text__default.docs.js +3 -3
- package/lib/svg/PlusIcon.js +3 -3
- package/lib/svg/SnippetIcon.js +3 -3
- package/lib/svg/TemplateIcon.js +3 -3
- package/lib/svg/docs/SVG__default.docs.js +3 -3
- package/lib/utils/General.js +1 -1
- package/lib/version2/AlertClose/AlertClose.js +3 -3
- package/lib/version2/AlertClose/docs/AlertClose__default.docs.js +3 -3
- package/lib/version2/GlobalNotification/GlobalNotification.js +3 -3
- package/lib/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +3 -3
- package/lib/version2/alertIcons/AlarmAlertIcon.js +3 -3
- package/lib/version2/alertIcons/AlertIcons.js +3 -3
- package/lib/version2/alertIcons/DangerAlertIcon.js +3 -3
- package/lib/version2/alertIcons/ErrorAlertIcon.js +3 -3
- package/lib/version2/alertIcons/InfoAlertIcon.js +3 -3
- package/lib/version2/alertIcons/NotificationAlertIcon.js +3 -3
- package/lib/version2/alertIcons/SuccessAlertIcon.js +3 -3
- package/lib/version2/alertIcons/WarningAlertIcon.js +3 -3
- package/lib/version2/alertIcons/docs/AlertIcons__default.docs.js +3 -3
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/lib/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +3 -3
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -3
- package/lib/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +3 -3
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -3
- package/lib/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +3 -3
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/lib/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +3 -3
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -3
- package/lib/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +3 -3
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -3
- package/lib/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +3 -3
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +3 -3
- package/lib/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +3 -3
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +3 -3
- package/lib/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +3 -3
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -5
- package/lib/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +3 -3
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +3 -3
- package/lib/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +3 -3
- package/package.json +10 -6
- package/preprocess/dotAppearanceColors.js +71 -0
- package/preprocess/dotThemeColors.js +98 -0
- package/preprocess/index.js +2 -0
- package/preprocess/json/dotAppearanceVariableJson.js +1908 -0
- package/preprocess/json/dotThemeVariableJson.js +90 -0
- package/src/Appearance/dark/mode/dotDarkMode.module.css +520 -536
- package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/src/Appearance/default/mode/dotDefaultMode.module.css +520 -536
- package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/src/FreezeLayer/docs/FreezeLayer__dark.docs.js +2 -2
- package/src/FreezeLayer/docs/FreezeLayer__default.docs.js +2 -2
- package/src/Loader/docs/Loader__default.docs.js +1 -1
- package/src/deprecated/SelectDropdown/SelectDropdown.module.css +6 -6
- package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -2
- package/src/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +1 -1
- package/src/form/fields/TextEditor/TextEditor.js +1 -1
- package/src/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +1 -1
- package/src/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/src/list/BluePrintStatus/BluePrintStatus.module.css +2 -2
- package/src/list/DotNew/DotNew.module.css +4 -4
- package/src/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -39,9 +39,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
39
39
|
|
|
40
40
|
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); } }
|
|
41
41
|
|
|
42
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43
43
|
|
|
44
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
44
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
45
45
|
|
|
46
46
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
47
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
23
23
|
|
|
24
24
|
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); } }
|
|
25
25
|
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
27
|
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
30
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[dir=rtl] .container {
|
|
19
19
|
transform-origin: left center;
|
|
20
20
|
}
|
|
21
|
-
.globalNotify {
|
|
21
|
+
.globalNotify {
|
|
22
22
|
max-width: var(--zd_size490);
|
|
23
23
|
min-width: var(--zd_size394);
|
|
24
24
|
}
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
/* Container Style */
|
|
63
63
|
.message {
|
|
64
64
|
position: relative;
|
|
65
|
-
color: var(--
|
|
65
|
+
color: var(--zd_smoke18);
|
|
66
66
|
font-size: var(--zd_font_size11);
|
|
67
67
|
composes: dotted textCap from '~@zohodesk/components/lib/common/common.module.css';
|
|
68
68
|
height: var(--zd_size33);
|
|
69
69
|
transition: padding var(--zd_transition3), height var(--zd_transition3);
|
|
70
|
-
border-top: 1px solid var(--
|
|
70
|
+
border-top: 1px solid var(--zd_smoke1);
|
|
71
71
|
cursor: pointer;
|
|
72
72
|
}
|
|
73
73
|
[dir=ltr] .message {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
padding: var(--zd_size10) var(--zd_size76) var(--zd_size10) var(--zd_size20);
|
|
78
78
|
}
|
|
79
79
|
.message:hover {
|
|
80
|
-
background: var(--
|
|
80
|
+
background: var(--zd_alabaster);
|
|
81
81
|
}
|
|
82
82
|
/* Section */
|
|
83
83
|
.section {
|
|
@@ -104,4 +104,3 @@
|
|
|
104
104
|
overflow: hidden;
|
|
105
105
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
106
106
|
}
|
|
107
|
-
|
package/lib/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
23
23
|
|
|
24
24
|
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); } }
|
|
25
25
|
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
27
|
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
30
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -29,9 +29,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
29
29
|
|
|
30
30
|
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); } }
|
|
31
31
|
|
|
32
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
32
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
33
|
|
|
34
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
34
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
35
|
|
|
36
36
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
25
25
|
|
|
26
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
27
|
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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
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
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
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.205",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"jsnext:main": "es/index.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"build:dev": "npm run clean && npm run build:es --module:mode=dev -- -w",
|
|
18
18
|
"rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
|
|
19
19
|
"prepare": "npm run init && npm run build && npm run build:es && npm run rtl",
|
|
20
|
-
"init": "npm run clean",
|
|
20
|
+
"init": "npm run clean && npm run build:variables",
|
|
21
|
+
"build:variables": "node ./preprocess/index",
|
|
21
22
|
"lint": "react-cli lint",
|
|
22
23
|
"lintAll": "react-cli lint ./src",
|
|
23
24
|
"lintAllFix": "npm run lintAll --eslint:fix=true",
|
|
@@ -32,9 +33,9 @@
|
|
|
32
33
|
"velocity-react": "^1.4.3",
|
|
33
34
|
"@zohodesk/variables": "1.0.0-beta.25",
|
|
34
35
|
"@zohodesk/i18n": "^1.0.0-beta.7",
|
|
35
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
36
|
+
"@zohodesk/components": "1.0.0-alpha-223",
|
|
36
37
|
"@zohodesk/icons": "1.0.0-beta.85",
|
|
37
|
-
"@zohodesk/svg": "1.0.0-beta.
|
|
38
|
+
"@zohodesk/svg": "1.0.0-beta.38",
|
|
38
39
|
"@zohodesk/virtualizer": "1.0.3",
|
|
39
40
|
"react-sortable-hoc": "^0.8.3"
|
|
40
41
|
},
|
|
@@ -42,11 +43,14 @@
|
|
|
42
43
|
"velocity-react": "^1.4.3",
|
|
43
44
|
"@zohodesk/variables": "^1.0.0-beta.25",
|
|
44
45
|
"@zohodesk/i18n": "^1.0.0-beta.7",
|
|
45
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
46
|
+
"@zohodesk/components": "1.0.0-alpha-223",
|
|
46
47
|
"@zohodesk/icons": "^1.0.0-beta.85",
|
|
47
|
-
"@zohodesk/svg": "^1.0.0-beta.
|
|
48
|
+
"@zohodesk/svg": "^1.0.0-beta.38"
|
|
48
49
|
},
|
|
49
50
|
"react-cli": {
|
|
51
|
+
"preprocessor": {
|
|
52
|
+
"runner": "preprocess/index.js"
|
|
53
|
+
},
|
|
50
54
|
"app": {
|
|
51
55
|
"removePropTypes": {
|
|
52
56
|
"removeImport": true
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var { dotAppearanceVariables } = require('./json/dotAppearanceVariableJson');
|
|
2
|
+
let fs = require('fs');
|
|
3
|
+
let path = require('path');
|
|
4
|
+
let baseFolder = 'Appearance';
|
|
5
|
+
let mode = ['default', 'dark'];
|
|
6
|
+
let modeFiles = [];
|
|
7
|
+
mode.forEach(mode => {
|
|
8
|
+
let modeFilesString = `../src/${baseFolder}/${mode}/mode/dot${
|
|
9
|
+
capitalizeFirstLetter(mode)
|
|
10
|
+
}Mode.module.css`;
|
|
11
|
+
modeFiles.push(path.join(__dirname, modeFilesString));
|
|
12
|
+
});
|
|
13
|
+
let files = modeFiles;
|
|
14
|
+
|
|
15
|
+
function capitalizeFirstLetter(string) {
|
|
16
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function generate(mode) {
|
|
20
|
+
let exportVariables = [];
|
|
21
|
+
let counter = 0;
|
|
22
|
+
let newLine = '';
|
|
23
|
+
dotAppearanceVariables.map(dotVariable => {
|
|
24
|
+
let commentName = dotVariable[3];
|
|
25
|
+
counting = counter++;
|
|
26
|
+
if (counting != 0) {
|
|
27
|
+
newLine = `\n\t`;
|
|
28
|
+
}
|
|
29
|
+
if (mode == 'default') {
|
|
30
|
+
let dotDefaultColors = dotVariable[1][1];
|
|
31
|
+
|
|
32
|
+
colorsResult = [
|
|
33
|
+
`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors};`
|
|
34
|
+
];
|
|
35
|
+
exportVariables.push(
|
|
36
|
+
commentName ? `${newLine}\n\t/* ${commentName} */` : '',
|
|
37
|
+
colorsResult
|
|
38
|
+
);
|
|
39
|
+
} else if (mode == 'dark') {
|
|
40
|
+
let dotDarkColors = dotVariable[2][1];
|
|
41
|
+
|
|
42
|
+
colorsResult = [
|
|
43
|
+
`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors};`
|
|
44
|
+
];
|
|
45
|
+
exportVariables.push(
|
|
46
|
+
commentName ? `${newLine}\n\t/* ${commentName} */` : '',
|
|
47
|
+
colorsResult
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return exportVariables.join('');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let arrayIndexCounter = 0;
|
|
55
|
+
mode.forEach(mode => {
|
|
56
|
+
let fileString = files[arrayIndexCounter];
|
|
57
|
+
// let splitPath = fileString.split(/\\/g);
|
|
58
|
+
let getMode = mode;
|
|
59
|
+
if (mode == 'default') {
|
|
60
|
+
blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
|
|
61
|
+
} else if (mode == 'dark') {
|
|
62
|
+
blueSelector = ', :global(.blueDarkTheme) [data-desk-theme="blue"]';
|
|
63
|
+
}
|
|
64
|
+
fs.writeFileSync(
|
|
65
|
+
fileString,
|
|
66
|
+
`[data-mode='${getMode}']${blueSelector} {${generate(
|
|
67
|
+
getMode
|
|
68
|
+
)}\n}`
|
|
69
|
+
);
|
|
70
|
+
arrayIndexCounter++;
|
|
71
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var { dotThemeVariables } = require('./json/dotThemeVariableJson');
|
|
2
|
+
let fs = require('fs');
|
|
3
|
+
let path = require('path');
|
|
4
|
+
let baseFolder = 'Appearance';
|
|
5
|
+
let mode = ['default', 'dark'];
|
|
6
|
+
let themes = ['blue', 'green', 'orange', 'red', 'yellow'];
|
|
7
|
+
let themeFiles = [];
|
|
8
|
+
mode.forEach(mode => {
|
|
9
|
+
themes.forEach(theme => {
|
|
10
|
+
let themeFilesString = `../src/${baseFolder}/${mode}/themes/${theme}/${
|
|
11
|
+
theme + capitalizeFirstLetter(mode)
|
|
12
|
+
}DotTheme.module.css`;
|
|
13
|
+
themeFiles.push(path.join(__dirname, themeFilesString));
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
let files = themeFiles;
|
|
17
|
+
|
|
18
|
+
function capitalizeFirstLetter(string) {
|
|
19
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function generate(mode, theme) {
|
|
23
|
+
let exportVariables = [];
|
|
24
|
+
let counter = 0;
|
|
25
|
+
let newLine = '';
|
|
26
|
+
dotThemeVariables.map(dotVariable => {
|
|
27
|
+
let commentName = dotVariable[3];
|
|
28
|
+
counting = counter++;
|
|
29
|
+
if (counting != 0) {
|
|
30
|
+
newLine = `\n\t`;
|
|
31
|
+
}
|
|
32
|
+
if (mode == 'default') {
|
|
33
|
+
let dotDefaultColors = dotVariable[1][1];
|
|
34
|
+
let colorsResult = '';
|
|
35
|
+
if (theme == 'blue') {
|
|
36
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[0]};`];
|
|
37
|
+
} else if (theme == 'green') {
|
|
38
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[1]};`];
|
|
39
|
+
} else if (theme == 'orange') {
|
|
40
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[2]};`];
|
|
41
|
+
} else if (theme == 'red') {
|
|
42
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[3]};`];
|
|
43
|
+
} else if (theme == 'yellow') {
|
|
44
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[4]};`];
|
|
45
|
+
}
|
|
46
|
+
exportVariables.push(
|
|
47
|
+
commentName ? `${newLine}\n\t/* ${commentName} */` : '',
|
|
48
|
+
colorsResult
|
|
49
|
+
);
|
|
50
|
+
} else if (mode == 'dark') {
|
|
51
|
+
let dotDarkColors = dotVariable[2][1];
|
|
52
|
+
let colorsResult = '';
|
|
53
|
+
if (theme == 'blue') {
|
|
54
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[0]};`];
|
|
55
|
+
} else if (theme == 'green') {
|
|
56
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[1]};`];
|
|
57
|
+
} else if (theme == 'orange') {
|
|
58
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[2]};`];
|
|
59
|
+
} else if (theme == 'red') {
|
|
60
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[3]};`];
|
|
61
|
+
} else if (theme == 'yellow') {
|
|
62
|
+
colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[4]};`];
|
|
63
|
+
}
|
|
64
|
+
exportVariables.push(
|
|
65
|
+
commentName ? `${newLine}\n\t/* ${commentName} */` : '',
|
|
66
|
+
colorsResult
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return exportVariables.join('');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
let arrayIndexCounter = 0;
|
|
74
|
+
mode.forEach(mode => {
|
|
75
|
+
themes.forEach(theme => {
|
|
76
|
+
let fileString = files[arrayIndexCounter];
|
|
77
|
+
// let splitPath = fileString.split(/\\/g);
|
|
78
|
+
let getMode = mode;
|
|
79
|
+
let getTheme = theme;
|
|
80
|
+
if (theme == 'blue') {
|
|
81
|
+
if (mode == 'default') {
|
|
82
|
+
blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
|
|
83
|
+
} else if (mode == 'dark') {
|
|
84
|
+
blueSelector = ', :global(.blueDarkTheme) [data-desk-theme="blue"]';
|
|
85
|
+
}
|
|
86
|
+
} else {
|
|
87
|
+
blueSelector = '';
|
|
88
|
+
}
|
|
89
|
+
fs.writeFileSync(
|
|
90
|
+
fileString,
|
|
91
|
+
`[data-mode='${getMode}'][data-theme='${getTheme}']${blueSelector} {${generate(
|
|
92
|
+
getMode,
|
|
93
|
+
getTheme
|
|
94
|
+
)}\n}`
|
|
95
|
+
);
|
|
96
|
+
arrayIndexCounter++;
|
|
97
|
+
});
|
|
98
|
+
});
|