@webiny/app-admin 0.0.0-mt-1
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/LICENSE +21 -0
- package/README.md +21 -0
- package/assets/icons/add-18px.svg +3 -0
- package/assets/icons/arrow_drop_down-24px.svg +4 -0
- package/assets/icons/attach_file_black_24dp.svg +1 -0
- package/assets/icons/baseline-menu-24px.svg +4 -0
- package/assets/icons/baseline-notification_important-24px.svg +4 -0
- package/assets/icons/baseline-security-24px.svg +4 -0
- package/assets/icons/filter-24px.svg +8 -0
- package/assets/icons/github-brands.svg +1 -0
- package/assets/icons/highlight-24px.svg +1 -0
- package/assets/icons/icon-community.svg +16 -0
- package/assets/icons/icon-documentation.svg +16 -0
- package/assets/icons/info.svg +1 -0
- package/assets/icons/insert_drive_file-24px.svg +1 -0
- package/assets/icons/insert_photo-24px.svg +1 -0
- package/assets/icons/label-24px.svg +1 -0
- package/assets/icons/round-account_circle-24px.svg +1 -0
- package/assets/icons/round-add-24px.svg +16 -0
- package/assets/icons/round-arrow_drop_down-24px.svg +1 -0
- package/assets/icons/round-chevron_right-24px.svg +12 -0
- package/assets/icons/round-feedback-24px.svg +54 -0
- package/assets/icons/round-help-24px.svg +1 -0
- package/assets/icons/round-invert_colors-24px.svg +52 -0
- package/assets/icons/round-keyboard_arrow_down-24px.svg +16 -0
- package/assets/icons/round-keyboard_arrow_up-24px.svg +16 -0
- package/assets/icons/round-lock_open-24px.svg +60 -0
- package/assets/icons/round-more_vert-24px.svg +12 -0
- package/assets/icons/round-open_in_new-24px.svg +44 -0
- package/assets/icons/round-settings-24px.svg +4 -0
- package/assets/icons/search-24px.svg +20 -0
- package/assets/icons/slack-logo.svg +1 -0
- package/assets/icons/today-24px.svg +1 -0
- package/assets/icons/touch_app.svg +1 -0
- package/assets/images/arr.png +0 -0
- package/assets/images/arr_2.png +0 -0
- package/assets/images/header_bg.jpg +0 -0
- package/assets/images/icons.png +0 -0
- package/assets/images/icons_retina.png +0 -0
- package/assets/images/logo.png +0 -0
- package/assets/images/logo_orange.png +0 -0
- package/assets/images/public/bg-login.png +0 -0
- package/assets/images/public/favicon.ico +0 -0
- package/assets/images/public/logo_orange.png +0 -0
- package/assets/images/public/preloader_2.png +0 -0
- package/assets/images/swich.png +0 -0
- package/assets/images/table_img.jpg +0 -0
- package/assets/images/webiny-logo.svg +20 -0
- package/assets/images/webiny-orange-logo.svg +20 -0
- package/components/AdminLayout.d.ts +7 -0
- package/components/AdminLayout.js +35 -0
- package/components/AppInstaller/Sidebar.d.ts +7 -0
- package/components/AppInstaller/Sidebar.js +158 -0
- package/components/AppInstaller/assets/sign-in-divider.svg +19 -0
- package/components/AppInstaller/index.d.ts +5 -0
- package/components/AppInstaller/index.js +134 -0
- package/components/AppInstaller/styled.d.ts +7 -0
- package/components/AppInstaller/styled.js +73 -0
- package/components/AppInstaller/useInstaller.d.ts +11 -0
- package/components/AppInstaller/useInstaller.js +279 -0
- package/components/EmptyView.d.ts +8 -0
- package/components/EmptyView.js +56 -0
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.d.ts +5 -0
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.js +35 -0
- package/components/FileManager/BottomInfoBar/UploadStatus.d.ts +5 -0
- package/components/FileManager/BottomInfoBar/UploadStatus.js +47 -0
- package/components/FileManager/BottomInfoBar.d.ts +3 -0
- package/components/FileManager/BottomInfoBar.js +42 -0
- package/components/FileManager/DropFilesHere.d.ts +8 -0
- package/components/FileManager/DropFilesHere.js +58 -0
- package/components/FileManager/File.d.ts +18 -0
- package/components/FileManager/File.js +129 -0
- package/components/FileManager/FileDetails/Name.d.ts +6 -0
- package/components/FileManager/FileDetails/Name.js +113 -0
- package/components/FileManager/FileDetails/Tags.d.ts +6 -0
- package/components/FileManager/FileDetails/Tags.js +241 -0
- package/components/FileManager/FileDetails.d.ts +23 -0
- package/components/FileManager/FileDetails.js +392 -0
- package/components/FileManager/FileManagerContext.d.ts +23 -0
- package/components/FileManager/FileManagerContext.js +174 -0
- package/components/FileManager/FileManagerView.d.ts +23 -0
- package/components/FileManager/FileManagerView.js +632 -0
- package/components/FileManager/LeftSidebar.d.ts +8 -0
- package/components/FileManager/LeftSidebar.js +95 -0
- package/components/FileManager/NoPermissionView.d.ts +3 -0
- package/components/FileManager/NoPermissionView.js +70 -0
- package/components/FileManager/NoResults.d.ts +2 -0
- package/components/FileManager/NoResults.js +13 -0
- package/components/FileManager/getFileTypePlugin.d.ts +1 -0
- package/components/FileManager/getFileTypePlugin.js +27 -0
- package/components/FileManager/getFileUploader.d.ts +2 -0
- package/components/FileManager/getFileUploader.js +10 -0
- package/components/FileManager/graphql.d.ts +6 -0
- package/components/FileManager/graphql.js +17 -0
- package/components/FileManager/icons/content_copy-black-24px.svg +1 -0
- package/components/FileManager/icons/delete.svg +12 -0
- package/components/FileManager/icons/privacy_tip-24px.svg +10 -0
- package/components/FileManager/icons/round-check_box-24px.svg +4 -0
- package/components/FileManager/icons/round-check_box_outline_blank-24px.svg +4 -0
- package/components/FileManager/icons/round-cloud_download-24px.svg +4 -0
- package/components/FileManager/icons/round-cloud_upload-24px.svg +4 -0
- package/components/FileManager/icons/round-description-24px.svg +4 -0
- package/components/FileManager/icons/round-edit-24px.svg +4 -0
- package/components/FileManager/icons/round-info-24px.svg +4 -0
- package/components/FileManager/icons/round-label-24px.svg +4 -0
- package/components/FileManager/icons/round-more_vert-24px.svg +4 -0
- package/components/FileManager/icons/round-search-24px.svg +20 -0
- package/components/FileManager/outputFileSelectionError.d.ts +2 -0
- package/components/FileManager/outputFileSelectionError.js +39 -0
- package/components/FileManager.d.ts +18 -0
- package/components/FileManager.js +133 -0
- package/components/FloatingActionButton.d.ts +3 -0
- package/components/FloatingActionButton.js +17 -0
- package/components/MultiImageUpload.d.ts +4 -0
- package/components/MultiImageUpload.js +20 -0
- package/components/OverlayLayout/OverlayLayout.d.ts +25 -0
- package/components/OverlayLayout/OverlayLayout.js +159 -0
- package/components/OverlayLayout/icons/close.svg +13 -0
- package/components/OverlayLayout/icons/navigate_before.svg +16 -0
- package/components/OverlayLayout/index.d.ts +1 -0
- package/components/OverlayLayout/index.js +1 -0
- package/components/Permissions/Permissions.d.ts +7 -0
- package/components/Permissions/Permissions.js +37 -0
- package/components/Permissions/StyledComponents.d.ts +6 -0
- package/components/Permissions/StyledComponents.js +19 -0
- package/components/Permissions/index.d.ts +2 -0
- package/components/Permissions/index.js +2 -0
- package/components/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/components/RichTextEditor/RichTextEditor.js +15 -0
- package/components/RichTextEditor/index.d.ts +2 -0
- package/components/RichTextEditor/index.js +2 -0
- package/components/RichTextEditor/styles.scss +64 -0
- package/components/RichTextEditor/tools/header/index.d.ts +228 -0
- package/components/RichTextEditor/tools/header/index.js +731 -0
- package/components/RichTextEditor/tools/header/styles.scss +48 -0
- package/components/RichTextEditor/tools/image/index.d.ts +97 -0
- package/components/RichTextEditor/tools/image/index.js +257 -0
- package/components/RichTextEditor/tools/image/styles.scss +90 -0
- package/components/RichTextEditor/tools/image/svgs.d.ts +6 -0
- package/components/RichTextEditor/tools/image/svgs.js +5 -0
- package/components/RichTextEditor/tools/image/tunes.d.ts +58 -0
- package/components/RichTextEditor/tools/image/tunes.js +134 -0
- package/components/RichTextEditor/tools/image/ui.d.ts +111 -0
- package/components/RichTextEditor/tools/image/ui.js +281 -0
- package/components/RichTextEditor/tools/paragraph/index.d.ts +211 -0
- package/components/RichTextEditor/tools/paragraph/index.js +520 -0
- package/components/RichTextEditor/tools/paragraph/styles.scss +29 -0
- package/components/RichTextEditor/tools/textColor/index.d.ts +58 -0
- package/components/RichTextEditor/tools/textColor/index.js +232 -0
- package/components/RichTextEditor/tools/textColor/styles.scss +21 -0
- package/components/RichTextEditor/tools/utils.d.ts +19 -0
- package/components/RichTextEditor/tools/utils.js +24 -0
- package/components/SearchUI.d.ts +8 -0
- package/components/SearchUI.js +59 -0
- package/components/SimpleForm/SimpleForm.d.ts +21 -0
- package/components/SimpleForm/SimpleForm.js +75 -0
- package/components/SimpleForm/index.d.ts +1 -0
- package/components/SimpleForm/index.js +1 -0
- package/components/SimpleUI/InputField.d.ts +9 -0
- package/components/SimpleUI/InputField.js +97 -0
- package/components/SingleImageUpload.d.ts +25 -0
- package/components/SingleImageUpload.js +102 -0
- package/components/SplitView/SplitView.d.ts +10 -0
- package/components/SplitView/SplitView.js +76 -0
- package/components/SplitView/index.d.ts +1 -0
- package/components/SplitView/index.js +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/hooks/useConfirmationDialog.d.ts +10 -0
- package/hooks/useConfirmationDialog.js +47 -0
- package/hooks/useDialog.d.ts +5 -0
- package/hooks/useDialog.js +27 -0
- package/hooks/useSnackbar.d.ts +4 -0
- package/hooks/useSnackbar.js +25 -0
- package/package.json +101 -0
- package/plugins/FileManagerFileTypePlugin.d.ts +33 -0
- package/plugins/FileManagerFileTypePlugin.js +46 -0
- package/plugins/MenuPlugin.d.ts +20 -0
- package/plugins/MenuPlugin.js +41 -0
- package/plugins/PermissionRendererPlugin.d.ts +22 -0
- package/plugins/PermissionRendererPlugin.js +41 -0
- package/plugins/fileManager/fileDefault.d.ts +3 -0
- package/plugins/fileManager/fileDefault.js +20 -0
- package/plugins/fileManager/fileImage/DeleteAction.d.ts +3 -0
- package/plugins/fileManager/fileImage/DeleteAction.js +62 -0
- package/plugins/fileManager/fileImage/EditAction.d.ts +9 -0
- package/plugins/fileManager/fileImage/EditAction.js +143 -0
- package/plugins/fileManager/fileImage/index.d.ts +3 -0
- package/plugins/fileManager/fileImage/index.js +29 -0
- package/plugins/fileManager/icons/edit.svg +17 -0
- package/plugins/fileManager/icons/round-description-24px.svg +1 -0
- package/plugins/fileManager/index.d.ts +2 -0
- package/plugins/fileManager/index.js +3 -0
- package/plugins/globalSearch/SearchBar.d.ts +3 -0
- package/plugins/globalSearch/SearchBar.js +241 -0
- package/plugins/globalSearch/SearchBarDropdown.d.ts +5 -0
- package/plugins/globalSearch/SearchBarDropdown.js +82 -0
- package/plugins/globalSearch/icons/round-search-24px.svg +20 -0
- package/plugins/globalSearch/index.d.ts +8 -0
- package/plugins/globalSearch/index.js +30 -0
- package/plugins/globalSearch/styled.d.ts +9 -0
- package/plugins/globalSearch/styled.js +115 -0
- package/plugins/index.d.ts +6 -0
- package/plugins/index.js +8 -0
- package/plugins/logo/Logo.d.ts +22 -0
- package/plugins/logo/Logo.js +108 -0
- package/plugins/logo/index.d.ts +5 -0
- package/plugins/logo/index.js +32 -0
- package/plugins/menu/documentation.d.ts +4 -0
- package/plugins/menu/documentation.js +16 -0
- package/plugins/menu/fileManager.d.ts +4 -0
- package/plugins/menu/fileManager.js +64 -0
- package/plugins/menu/index.d.ts +6 -0
- package/plugins/menu/index.js +24 -0
- package/plugins/menu/renderers/MenuGroupRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuGroupRenderer.js +126 -0
- package/plugins/menu/renderers/MenuLinkRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuLinkRenderer.js +52 -0
- package/plugins/menu/renderers/MenuSectionItemRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuSectionItemRenderer.js +77 -0
- package/plugins/menu/renderers/MenuSectionRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuSectionRenderer.js +51 -0
- package/plugins/menu/slack.d.ts +4 -0
- package/plugins/menu/slack.js +16 -0
- package/plugins/menu/source.d.ts +4 -0
- package/plugins/menu/source.js +16 -0
- package/plugins/uiLayoutRenderer/index.d.ts +3 -0
- package/plugins/uiLayoutRenderer/index.js +63 -0
- package/plugins/userMenu/UserMenuElement.d.ts +7 -0
- package/plugins/userMenu/UserMenuElement.js +43 -0
- package/plugins/userMenu/UserMenuRenderer.d.ts +6 -0
- package/plugins/userMenu/UserMenuRenderer.js +47 -0
- package/plugins/userMenu/index.d.ts +4 -0
- package/plugins/userMenu/index.js +16 -0
- package/styles/material-theme-assignments.scss +333 -0
- package/styles/material.scss +74 -0
- package/styles/theme.scss +43 -0
- package/styles.scss +2 -0
- package/types.d.ts +100 -0
- package/types.js +1 -0
- package/ui/UIElement.d.ts +2 -0
- package/ui/UIElement.js +1 -0
- package/ui/UILayout.d.ts +1 -0
- package/ui/UILayout.js +1 -0
- package/ui/UIRenderer.d.ts +2 -0
- package/ui/UIRenderer.js +1 -0
- package/ui/UIView.d.ts +2 -0
- package/ui/UIView.js +1 -0
- package/ui/elements/AccordionElement.d.ts +27 -0
- package/ui/elements/AccordionElement.js +86 -0
- package/ui/elements/ButtonElement.d.ts +24 -0
- package/ui/elements/ButtonElement.js +78 -0
- package/ui/elements/ButtonGroupElement.d.ts +6 -0
- package/ui/elements/ButtonGroupElement.js +48 -0
- package/ui/elements/GenericElement.d.ts +1 -0
- package/ui/elements/GenericElement.js +1 -0
- package/ui/elements/LabelElement.d.ts +16 -0
- package/ui/elements/LabelElement.js +47 -0
- package/ui/elements/NavigationMenuElement.d.ts +32 -0
- package/ui/elements/NavigationMenuElement.js +158 -0
- package/ui/elements/PanelElement.d.ts +3 -0
- package/ui/elements/PanelElement.js +17 -0
- package/ui/elements/PlaceholderElement.d.ts +5 -0
- package/ui/elements/PlaceholderElement.js +30 -0
- package/ui/elements/SmallButtonElement.d.ts +6 -0
- package/ui/elements/SmallButtonElement.js +47 -0
- package/ui/elements/TypographyElement.d.ts +13 -0
- package/ui/elements/TypographyElement.js +49 -0
- package/ui/elements/ViewElement.d.ts +1 -0
- package/ui/elements/ViewElement.js +1 -0
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +6 -0
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +44 -0
- package/ui/elements/form/DynamicFieldsetElement.d.ts +42 -0
- package/ui/elements/form/DynamicFieldsetElement.js +127 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +4 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js +24 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +7 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +72 -0
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +13 -0
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +95 -0
- package/ui/elements/form/FileManagerElement/styled.d.ts +14 -0
- package/ui/elements/form/FileManagerElement/styled.js +106 -0
- package/ui/elements/form/FileManagerElement.d.ts +24 -0
- package/ui/elements/form/FileManagerElement.js +91 -0
- package/ui/elements/form/FormElement.d.ts +21 -0
- package/ui/elements/form/FormElement.js +45 -0
- package/ui/elements/form/FormFieldElement.d.ts +55 -0
- package/ui/elements/form/FormFieldElement.js +183 -0
- package/ui/elements/form/HiddenElement.d.ts +6 -0
- package/ui/elements/form/HiddenElement.js +49 -0
- package/ui/elements/form/InputElement.d.ts +6 -0
- package/ui/elements/form/InputElement.js +55 -0
- package/ui/elements/form/PasswordElement.d.ts +6 -0
- package/ui/elements/form/PasswordElement.js +50 -0
- package/ui/elements/form/README.md +2 -0
- package/ui/elements/form/SelectElement.d.ts +15 -0
- package/ui/elements/form/SelectElement.js +71 -0
- package/ui/elements/form/TextareaElement.d.ts +15 -0
- package/ui/elements/form/TextareaElement.js +56 -0
- package/ui/views/AdminView/ContentElement.d.ts +4 -0
- package/ui/views/AdminView/ContentElement.js +62 -0
- package/ui/views/AdminView/HeaderElement.d.ts +13 -0
- package/ui/views/AdminView/HeaderElement.js +111 -0
- package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionCenterElement.js +42 -0
- package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionLeftElement.js +42 -0
- package/ui/views/AdminView/HeaderSectionRightElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionRightElement.js +42 -0
- package/ui/views/AdminView/components/Dialog.d.ts +2 -0
- package/ui/views/AdminView/components/Dialog.js +40 -0
- package/ui/views/AdminView/components/Hamburger.d.ts +3 -0
- package/ui/views/AdminView/components/Hamburger.js +25 -0
- package/ui/views/AdminView/components/Snackbar.d.ts +3 -0
- package/ui/views/AdminView/components/Snackbar.js +28 -0
- package/ui/views/AdminView.d.ts +12 -0
- package/ui/views/AdminView.js +90 -0
- package/ui/views/FormView/FormContainerElement.d.ts +12 -0
- package/ui/views/FormView/FormContainerElement.js +51 -0
- package/ui/views/FormView/FormContentElement.d.ts +3 -0
- package/ui/views/FormView/FormContentElement.js +17 -0
- package/ui/views/FormView/FormFooterElement.d.ts +6 -0
- package/ui/views/FormView/FormFooterElement.js +49 -0
- package/ui/views/FormView/FormHeaderElement.d.ts +14 -0
- package/ui/views/FormView/FormHeaderElement.js +81 -0
- package/ui/views/FormView.d.ts +40 -0
- package/ui/views/FormView.js +160 -0
- package/ui/views/NavigationView/ContentElement.d.ts +10 -0
- package/ui/views/NavigationView/ContentElement.js +86 -0
- package/ui/views/NavigationView/FooterElement.d.ts +13 -0
- package/ui/views/NavigationView/FooterElement.js +57 -0
- package/ui/views/NavigationView/HeaderElement.d.ts +16 -0
- package/ui/views/NavigationView/HeaderElement.js +66 -0
- package/ui/views/NavigationView/NavigationViewRenderer.d.ts +6 -0
- package/ui/views/NavigationView/NavigationViewRenderer.js +38 -0
- package/ui/views/NavigationView/Styled.d.ts +7 -0
- package/ui/views/NavigationView/Styled.js +47 -0
- package/ui/views/NavigationView/legacyMenu.d.ts +22 -0
- package/ui/views/NavigationView/legacyMenu.js +1 -0
- package/ui/views/NavigationView/useNavigation.d.ts +6 -0
- package/ui/views/NavigationView/useNavigation.js +22 -0
- package/ui/views/NavigationView.d.ts +26 -0
- package/ui/views/NavigationView.js +204 -0
- package/ui/views/OverlayView/ContentElement.d.ts +6 -0
- package/ui/views/OverlayView/ContentElement.js +42 -0
- package/ui/views/OverlayView/HeaderElement.d.ts +24 -0
- package/ui/views/OverlayView/HeaderElement.js +115 -0
- package/ui/views/OverlayView/HeaderTitleElement.d.ts +13 -0
- package/ui/views/OverlayView/HeaderTitleElement.js +54 -0
- package/ui/views/OverlayView/useOverlayView.d.ts +6 -0
- package/ui/views/OverlayView/useOverlayView.js +38 -0
- package/ui/views/OverlayView.d.ts +31 -0
- package/ui/views/OverlayView.js +176 -0
- package/ui/views/SplitView/SplitViewPanelElement.d.ts +11 -0
- package/ui/views/SplitView/SplitViewPanelElement.js +72 -0
- package/ui/views/SplitView.d.ts +21 -0
- package/ui/views/SplitView.js +142 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
@use "~@material/top-app-bar/_mixins.scss" as topAppBar;
|
|
2
|
+
@use "~@material/elevation/mixins" as elevation;
|
|
3
|
+
@use "~@material/button/mixins" as button;
|
|
4
|
+
@use "~@material/icon-button/mixins" as iconButton;
|
|
5
|
+
@use "~@material/drawer/mixins" as drawer;
|
|
6
|
+
@use "~@material/tab-bar/mixins" as tabBar;
|
|
7
|
+
@use "~@material/tab/mixins" as tab;
|
|
8
|
+
@use "~@material/tab-indicator/mixins" as tabIndicator;
|
|
9
|
+
@use "~@material/list/mixins" as list;
|
|
10
|
+
@use "~@material/switch/mixins" as switch;
|
|
11
|
+
@use "~@material/textfield/mixins" as textfield;
|
|
12
|
+
@use "~@material/select/mixins" as select;
|
|
13
|
+
@use "~@material/checkbox/mixins" as checkbox;
|
|
14
|
+
@use "~@material/radio/mixins" as radio;
|
|
15
|
+
@use "~@material/snackbar/mixins" as snackbar;
|
|
16
|
+
|
|
17
|
+
// top app bar should use theme-surface as the fill color
|
|
18
|
+
.mdc-top-app-bar {
|
|
19
|
+
@include topAppBar.mdc-top-app-bar-fill-color($mdc-theme-surface);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.mdc-top-app-bar.primary {
|
|
23
|
+
@include topAppBar.mdc-top-app-bar-fill-color($mdc-theme-primary);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// elevation should use theme-surface as fill color so it can be used as surface
|
|
27
|
+
.mdc-elevation--z1 {
|
|
28
|
+
@include elevation.mdc-elevation(1, $mdc-theme-on-surface);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.mdc-elevation--z2 {
|
|
32
|
+
@include elevation.mdc-elevation(2, $mdc-theme-on-surface);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mdc-elevation--z3 {
|
|
36
|
+
@include elevation.mdc-elevation(3, $mdc-theme-on-surface);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mdc-elevation--z1,
|
|
40
|
+
.mdc-elevation--z2,
|
|
41
|
+
.mdc-elevation--z3,
|
|
42
|
+
.mdc-elevation--z4,
|
|
43
|
+
.mdc-elevation--z5,
|
|
44
|
+
.mdc-elevation--z6,
|
|
45
|
+
.mdc-elevation--z7,
|
|
46
|
+
.mdc-elevation--z8,
|
|
47
|
+
.mdc-elevation--z9 {
|
|
48
|
+
background-color: $mdc-theme-surface;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// button styles
|
|
52
|
+
.mdc-button {
|
|
53
|
+
@include button.mdc-button-shape-radius(2px);
|
|
54
|
+
.mdc-button__label {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// set icon colors
|
|
61
|
+
.mdc-icon,
|
|
62
|
+
.mdc-icon-button {
|
|
63
|
+
@include iconButton.mdc-icon-button-ink-color($mdc-theme-text-secondary-on-background);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// drawer
|
|
67
|
+
.mcd-drawer {
|
|
68
|
+
@include drawer.mdc-drawer-title-ink-color($mdc-theme-text-primary-on-background);
|
|
69
|
+
@include drawer.mdc-drawer-subtitle-ink-color($mdc-theme-text-primary-on-background);
|
|
70
|
+
@include drawer.mdc-drawer-item-icon-ink-color($mdc-theme-text-primary-on-background);
|
|
71
|
+
@include drawer.mdc-drawer-item-text-ink-color($mdc-theme-text-primary-on-background);
|
|
72
|
+
@include drawer.mdc-drawer-surface-fill-color($mdc-theme-surface);
|
|
73
|
+
@include drawer.mdc-drawer-item-shape-radius(0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// fix for drawer positioning
|
|
77
|
+
.mdc-drawer {
|
|
78
|
+
background-color: $mdc-theme-surface;
|
|
79
|
+
&.mdc-drawer--modal.mdc-drawer--open {
|
|
80
|
+
top: 0;
|
|
81
|
+
background-color: $mdc-theme-surface;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// fix drawer display so we can have a nice drawer footer
|
|
86
|
+
.mdc-drawer--modal.mdc-drawer--open {
|
|
87
|
+
display: flex;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// tabs
|
|
91
|
+
.mdc-tab-bar {
|
|
92
|
+
@include tabBar.mdc-tab-bar-width("100%");
|
|
93
|
+
|
|
94
|
+
.mdc-tab {
|
|
95
|
+
@include tab.mdc-tab-fixed-width("100px");
|
|
96
|
+
@include tab.mdc-tab-text-label-color($mdc-theme-text-primary-on-background);
|
|
97
|
+
@include tab.mdc-tab-icon-color($mdc-theme-text-primary-on-background);
|
|
98
|
+
|
|
99
|
+
// fixes tab width
|
|
100
|
+
flex: 1 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mdc-tab-indicator {
|
|
104
|
+
@include tabIndicator.mdc-tab-indicator-underline-color($mdc-theme-primary);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// list
|
|
109
|
+
.mdc-list {
|
|
110
|
+
@include list.mdc-list-item-primary-text-ink-color($mdc-theme-text-primary-on-background);
|
|
111
|
+
@include list.mdc-list-item-secondary-text-ink-color($mdc-theme-text-secondary-on-background);
|
|
112
|
+
@include list.mdc-list-item-graphic-ink-color($mdc-theme-text-secondary-on-background);
|
|
113
|
+
@include list.mdc-list-item-meta-ink-color($mdc-theme-text-secondary-on-background);
|
|
114
|
+
@include list.mdc-list-divider-color($mdc-theme-on-background);
|
|
115
|
+
@include list.mdc-list-group-subheader-ink-color($mdc-theme-text-primary-on-background);
|
|
116
|
+
@include list.mdc-list-item-shape-radius(0);
|
|
117
|
+
|
|
118
|
+
.mdc-list-item {
|
|
119
|
+
color: $mdc-theme-text-primary-on-background;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.mdc-list-item:hover,
|
|
123
|
+
.mdc-list-item::after,
|
|
124
|
+
.mdc-list-item::before {
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
}
|
|
127
|
+
&:not(.mdc-list--non-interactive) {
|
|
128
|
+
.mdc-list-item:hover {
|
|
129
|
+
background-color: $mdc-theme-text-hint-on-dark;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
}
|
|
132
|
+
.mdc-list-item::after,
|
|
133
|
+
.mdc-list-item::before {
|
|
134
|
+
background-color: $mdc-theme-text-primary-on-background;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// switch
|
|
140
|
+
.mdc-switch {
|
|
141
|
+
@include switch.mdc-switch-toggled-off-track-color($mdc-theme-on-surface);
|
|
142
|
+
margin-left: 5px;
|
|
143
|
+
margin-right: 10px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// menu
|
|
147
|
+
.mdc-menu {
|
|
148
|
+
background-color: $mdc-theme-surface;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/*
|
|
152
|
+
Fix the width of input components when inside grids
|
|
153
|
+
*/
|
|
154
|
+
.mdc-text-field {
|
|
155
|
+
width: 100%;
|
|
156
|
+
@include textfield.mdc-text-field-shape-radius(0);
|
|
157
|
+
@include textfield.mdc-text-field-textarea-shape-radius(0);
|
|
158
|
+
@include textfield.mdc-text-field-fill-color($mdc-theme-on-background);
|
|
159
|
+
@include textfield.mdc-text-field-label-color($mdc-theme-text-primary-on-background);
|
|
160
|
+
@include textfield.mdc-text-field-ink-color($mdc-theme-on-surface);
|
|
161
|
+
&.mdc-text-field--textarea {
|
|
162
|
+
textarea {
|
|
163
|
+
padding-top: 25px;
|
|
164
|
+
}
|
|
165
|
+
.mdc-floating-label.mdc-floating-label {
|
|
166
|
+
margin-left: 11px;
|
|
167
|
+
top: 35px;
|
|
168
|
+
}
|
|
169
|
+
&.--focused {
|
|
170
|
+
.mdc-floating-label.mdc-floating-label {
|
|
171
|
+
top: 0px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
&.mdc-text-field--disabled {
|
|
176
|
+
background-color: $mdc-theme-background;
|
|
177
|
+
opacity: 0.55;
|
|
178
|
+
.mdc-text-field__input {
|
|
179
|
+
color: $mdc-theme-text-primary-on-background;
|
|
180
|
+
&::placeholder {
|
|
181
|
+
color: $mdc-theme-text-primary-on-background;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
.mdc-text-field__input {
|
|
186
|
+
width: 100%;
|
|
187
|
+
resize: none;
|
|
188
|
+
//border: 1px solid $mdc-theme-on-background;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// textfield helper - color fix
|
|
193
|
+
.mdc-text-field-helper-text {
|
|
194
|
+
margin-left: 2px !important;
|
|
195
|
+
color: $mdc-theme-text-secondary-on-background;
|
|
196
|
+
&--error {
|
|
197
|
+
color: $webiny-theme-dark-primary !important;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// dialog
|
|
202
|
+
.mdc-dialog {
|
|
203
|
+
z-index: 20;
|
|
204
|
+
.mdc-dialog__container {
|
|
205
|
+
width: 100%;
|
|
206
|
+
}
|
|
207
|
+
.mdc-dialog__surface {
|
|
208
|
+
border-radius: 0px;
|
|
209
|
+
max-width: 875px;
|
|
210
|
+
position: relative;
|
|
211
|
+
.mdc-dialog__title {
|
|
212
|
+
background-color: $mdc-theme-secondary;
|
|
213
|
+
padding-bottom: 20px;
|
|
214
|
+
font-size: 1.4rem;
|
|
215
|
+
font-weight: 600;
|
|
216
|
+
color: $mdc-theme-on-secondary;
|
|
217
|
+
}
|
|
218
|
+
.mdc-dialog__content {
|
|
219
|
+
color: $mdc-theme-text-primary-on-background;
|
|
220
|
+
max-height: 70vh;
|
|
221
|
+
overflow: auto;
|
|
222
|
+
margin-top: 0;
|
|
223
|
+
padding-top: 24px;
|
|
224
|
+
background-color: $mdc-theme-surface;
|
|
225
|
+
|
|
226
|
+
// add options for when tabs are inside the body
|
|
227
|
+
> .webiny-ui-tabs {
|
|
228
|
+
margin: -24px;
|
|
229
|
+
> .mdc-tab-bar {
|
|
230
|
+
position: absolute;
|
|
231
|
+
z-index: 10;
|
|
232
|
+
@include tabBar.mdc-tab-bar-width(100%);
|
|
233
|
+
background-color: $mdc-theme-secondary;
|
|
234
|
+
.mdc-tab {
|
|
235
|
+
@include tab.mdc-tab-text-label-color($mdc-theme-on-secondary);
|
|
236
|
+
@include tab.mdc-tab-icon-color($mdc-theme-on-secondary);
|
|
237
|
+
@include tab.mdc-tab-fixed-width(100px);
|
|
238
|
+
justify-content: flex-start;
|
|
239
|
+
font-weight: 600;
|
|
240
|
+
}
|
|
241
|
+
.mdc-tab-indicator {
|
|
242
|
+
padding-bottom: 5px;
|
|
243
|
+
margin-top: -1px;
|
|
244
|
+
@include tabIndicator.mdc-tab-indicator-underline-color($mdc-theme-on-secondary);
|
|
245
|
+
background-color: $mdc-theme-secondary;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
> .webiny-ui-tabs__content {
|
|
249
|
+
padding-top: 50px;
|
|
250
|
+
padding-bottom: 25px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
.mdc-dialog__actions {
|
|
255
|
+
border-top: 1px solid $mdc-theme-on-background;
|
|
256
|
+
background-color: $mdc-theme-surface;
|
|
257
|
+
padding: 24px;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
&.mdc-dialog--open .mdc-dialog__scrim {
|
|
261
|
+
opacity: 0.7;
|
|
262
|
+
background-color: var(--mdc-theme-on-surface);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// select
|
|
267
|
+
.mdc-select {
|
|
268
|
+
width: 100%;
|
|
269
|
+
@include select.mdc-select-ink-color($mdc-theme-text-primary-on-background);
|
|
270
|
+
@include select.mdc-select-label-color($mdc-theme-text-secondary-on-background);
|
|
271
|
+
@include select.mdc-select-bottom-line-color($mdc-theme-text-secondary-on-background);
|
|
272
|
+
@include select.mdc-select-hover-bottom-line-color($mdc-theme-text-primary-on-background);
|
|
273
|
+
@include select.mdc-select-container-fill-color($mdc-theme-on-background);
|
|
274
|
+
@include select.mdc-select-shape-radius(0);
|
|
275
|
+
@include select.mdc-select-outline-shape-radius(2);
|
|
276
|
+
|
|
277
|
+
/*
|
|
278
|
+
Fix for select box appearance. For some reason browser prefix css attributes are striped away.
|
|
279
|
+
*/
|
|
280
|
+
.mdc-select__native-control {
|
|
281
|
+
-webkit-appearance: none;
|
|
282
|
+
-moz-appearance: none;
|
|
283
|
+
border-radius: 2px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&.mdc-select--box {
|
|
287
|
+
border-radius: 2px;
|
|
288
|
+
.mdc-select__native-control {
|
|
289
|
+
padding-top: 10px;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.mdc-select__dropdown-icon {
|
|
294
|
+
bottom: 50%;
|
|
295
|
+
transform: translateY(50%);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// checkbox
|
|
300
|
+
.mdc-checkbox {
|
|
301
|
+
@include checkbox.mdc-checkbox-container-colors("text-secondary-on-background");
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// radio button
|
|
305
|
+
.mdc-radio {
|
|
306
|
+
@include radio.mdc-radio-unchecked-stroke-color("text-secondary-on-background");
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// snackbar
|
|
310
|
+
.mdc-snackbar {
|
|
311
|
+
@include snackbar.mdc-snackbar-shape-radius(2px);
|
|
312
|
+
@include snackbar.mdc-snackbar-z-index(1000);
|
|
313
|
+
}
|
|
314
|
+
.mdc-snackbar__action:not(:disabled) {
|
|
315
|
+
color: var(--mdc-theme-primary);
|
|
316
|
+
&::before {
|
|
317
|
+
background-color: var(--mdc-theme-primary);
|
|
318
|
+
}
|
|
319
|
+
&::after {
|
|
320
|
+
background-color: var(--mdc-theme-primary);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// when grid is inside another grid cell, child grid should not have any padding
|
|
325
|
+
.mdc-layout-grid {
|
|
326
|
+
> .mdc-layout-grid__inner {
|
|
327
|
+
> .mdc-layout-grid__cell {
|
|
328
|
+
> .mdc-layout-grid {
|
|
329
|
+
padding: 0;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@use "~@material/theme/mixins" as themeMixins;
|
|
2
|
+
|
|
3
|
+
// material variables
|
|
4
|
+
$mdc-theme-primary: $webiny-theme-light-primary;
|
|
5
|
+
$mdc-theme-on-primary: $webiny-theme-light-on-primary;
|
|
6
|
+
$mdc-theme-secondary: $webiny-theme-light-secondary;
|
|
7
|
+
$mdc-theme-on-secondary: $webiny-theme-light-on-secondary;
|
|
8
|
+
$mdc-theme-surface: $webiny-theme-light-surface;
|
|
9
|
+
$mdc-theme-on-surface: $webiny-theme-light-on-surface;
|
|
10
|
+
$mdc-theme-background: $webiny-theme-light-background;
|
|
11
|
+
$mdc-theme-on-background: $webiny-theme-light-on-background;
|
|
12
|
+
$mdc-theme-text-primary-on-background: $webiny-theme-light-text-primary-on-background !global;
|
|
13
|
+
$mdc-theme-text-secondary-on-background: $webiny-theme-light-text-secondary-on-background;
|
|
14
|
+
$mdc-theme-text-hint-on-dark: $webiny-theme-light-text-hint-on-dark;
|
|
15
|
+
$mdc-typography-font-family: $webiny-theme-typography-font-family;
|
|
16
|
+
|
|
17
|
+
@import "~material-components-web/material-components-web.scss";
|
|
18
|
+
@import "material-theme-assignments.scss";
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
background-color: $mdc-theme-background;
|
|
22
|
+
min-height: 100vh;
|
|
23
|
+
|
|
24
|
+
// assign all the sass variables in css variables
|
|
25
|
+
--mdc-theme-primary: #{$mdc-theme-primary};
|
|
26
|
+
--mdc-theme-secondary: #{$mdc-theme-secondary};
|
|
27
|
+
--mdc-theme-background: #{$mdc-theme-background};
|
|
28
|
+
--mdc-theme-surface: #{$mdc-theme-surface};
|
|
29
|
+
--mdc-theme-on-primary: #{$mdc-theme-on-primary};
|
|
30
|
+
--mdc-theme-on-secondary: #{$mdc-theme-on-secondary};
|
|
31
|
+
--mdc-theme-on-surface: #{$mdc-theme-on-surface};
|
|
32
|
+
--mdc-theme-on-background: #{$mdc-theme-on-background};
|
|
33
|
+
--mdc-theme-text-primary-on-background: #{$mdc-theme-text-primary-on-background};
|
|
34
|
+
--mdc-theme-text-secondary-on-background: #{$mdc-theme-text-secondary-on-background};
|
|
35
|
+
--mdc-theme-text-hint-on-dark: #{$mdc-theme-text-hint-on-dark};
|
|
36
|
+
--mdc-theme-caret-down: #{$webiny-theme-light-caret-down};
|
|
37
|
+
|
|
38
|
+
font-family: "Source Sans Pro";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
body.dark-theme {
|
|
42
|
+
$mdc-theme-primary: $webiny-theme-dark-primary;
|
|
43
|
+
$mdc-theme-on-primary: $webiny-theme-dark-on-primary;
|
|
44
|
+
$mdc-theme-secondary: $webiny-theme-dark-secondary;
|
|
45
|
+
$mdc-theme-on-secondary: $webiny-theme-dark-on-secondary;
|
|
46
|
+
$mdc-theme-surface: $webiny-theme-dark-surface;
|
|
47
|
+
$mdc-theme-on-surface: $webiny-theme-dark-on-surface;
|
|
48
|
+
$mdc-theme-background: $webiny-theme-dark-background;
|
|
49
|
+
$mdc-theme-on-background: $webiny-theme-dark-on-background;
|
|
50
|
+
$mdc-theme-text-secondary-on-background: $webiny-theme-dark-text-secondary-on-background;
|
|
51
|
+
$mdc-theme-text-primary-on-background: $webiny-theme-dark-text-primary-on-background;
|
|
52
|
+
$mdc-theme-text-hint-on-dark: $webiny-theme-dark-text-hint-on-dark;
|
|
53
|
+
|
|
54
|
+
@include themeMixins.mdc-theme-prop("on-primary", $webiny-theme-dark-text-primary-on-background);
|
|
55
|
+
|
|
56
|
+
background-color: $mdc-theme-background;
|
|
57
|
+
|
|
58
|
+
// assign all the sass variables in css variables
|
|
59
|
+
--mdc-theme-primary: #{$mdc-theme-primary};
|
|
60
|
+
--mdc-theme-secondary: #{$mdc-theme-secondary};
|
|
61
|
+
--mdc-theme-background: #{$mdc-theme-background};
|
|
62
|
+
--mdc-theme-surface: #{$mdc-theme-surface};
|
|
63
|
+
--mdc-theme-on-primary: #{$mdc-theme-on-primary};
|
|
64
|
+
--mdc-theme-on-secondary: #{$mdc-theme-on-secondary};
|
|
65
|
+
--mdc-theme-on-surface: #{$mdc-theme-on-surface};
|
|
66
|
+
--mdc-theme-on-background: #{$mdc-theme-on-background};
|
|
67
|
+
--mdc-theme-text-primary-on-background: #{$mdc-theme-text-primary-on-background};
|
|
68
|
+
--mdc-theme-text-secondary-on-background: #{$mdc-theme-text-secondary-on-background};
|
|
69
|
+
--mdc-theme-text-hint-on-dark: #{$mdc-theme-text-hint-on-dark};
|
|
70
|
+
--mdc-theme-caret-down: #{$webiny-theme-dark-caret-down};
|
|
71
|
+
|
|
72
|
+
@import "~@material/textfield/mdc-text-field";
|
|
73
|
+
@import "material-theme-assignments.scss";
|
|
74
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// webiny light theme
|
|
2
|
+
$webiny-theme-light-primary: #fa5723 !default;
|
|
3
|
+
$webiny-theme-light-secondary: #00ccb0 !default;
|
|
4
|
+
$webiny-theme-light-background: #f2f2f2 !default;
|
|
5
|
+
$webiny-theme-light-surface: #fff !default;
|
|
6
|
+
$webiny-theme-light-on-primary: #ffffff !default;
|
|
7
|
+
$webiny-theme-light-on-secondary: #ffffff !default;
|
|
8
|
+
$webiny-theme-light-on-surface: #000000 !default;
|
|
9
|
+
$webiny-theme-light-on-background: rgba(212, 212, 212, 0.5) !default;
|
|
10
|
+
$webiny-theme-light-text-primary-on-background: rgba(0, 0, 0, 0.87);
|
|
11
|
+
$webiny-theme-light-text-secondary-on-background: rgba(0, 0, 0, 0.54);
|
|
12
|
+
$webiny-theme-light-text-hint-on-dark: rgba(255, 255, 255, 0.5);
|
|
13
|
+
$webiny-theme-light-caret-down: url("data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23000000%22%20fill-rule%3D%22evenodd%22%20opacity%3D%220.54%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E");
|
|
14
|
+
|
|
15
|
+
// webiny dark theme
|
|
16
|
+
$webiny-theme-dark-primary: #fa5723 !default;
|
|
17
|
+
$webiny-theme-dark-secondary: #00ccb0 !default;
|
|
18
|
+
$webiny-theme-dark-background: #121212 !default;
|
|
19
|
+
$webiny-theme-dark-surface: #242424 !default;
|
|
20
|
+
$webiny-theme-dark-on-primary: #ffffff !default;
|
|
21
|
+
$webiny-theme-dark-on-secondary: #ffffff !default;
|
|
22
|
+
$webiny-theme-dark-on-surface: #ffffff !default;
|
|
23
|
+
$webiny-theme-dark-on-background: rgba(255, 255, 255, 0.15) !default;
|
|
24
|
+
$webiny-theme-dark-text-primary-on-background: rgba(255, 255, 255, 0.87);
|
|
25
|
+
$webiny-theme-dark-text-secondary-on-background: rgba(255, 255, 255, 0.54);
|
|
26
|
+
$webiny-theme-dark-text-hint-on-dark: rgba(255, 255, 255, 0.15);
|
|
27
|
+
$webiny-theme-dark-caret-down: url("data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22evenodd%22%20opacity%3D%220.54%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E");
|
|
28
|
+
|
|
29
|
+
// webiny typography
|
|
30
|
+
$webiny-theme-typography-font-family: "Source Sans Pro" !default;
|
|
31
|
+
|
|
32
|
+
// import required fonts
|
|
33
|
+
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700|Open+Sans:300,400,600,700|Source+Code+Pro:400,700");
|
|
34
|
+
//@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700|Open+Sans:300,400,600,700|Source+Code+Pro:400,700");
|
|
35
|
+
|
|
36
|
+
body {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
a {
|
|
41
|
+
color: var(--webiny-theme-color-primary, #ee896b);
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
}
|
package/styles.scss
ADDED
package/types.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
import { Plugin } from "@webiny/plugins/types";
|
|
3
|
+
import { ApolloClient } from "apollo-client";
|
|
4
|
+
import { ItemProps, MenuProps, SectionProps } from "./ui/views/NavigationView/legacyMenu";
|
|
5
|
+
declare type RenderParams = {
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare type AdminGlobalSearchPlugin = Plugin & {
|
|
9
|
+
type: "admin-global-search";
|
|
10
|
+
label: string;
|
|
11
|
+
route: string;
|
|
12
|
+
search?: {
|
|
13
|
+
operator?: "and" | "or";
|
|
14
|
+
fields?: Array<string>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare type AdminGlobalSearchPreventHotkeyPlugin = Plugin & {
|
|
18
|
+
type: "admin-global-search-prevent-hotkey";
|
|
19
|
+
preventOpen(e: React.KeyboardEvent): boolean | void;
|
|
20
|
+
};
|
|
21
|
+
export declare type AdminDrawerFooterMenuPlugin = Plugin & {
|
|
22
|
+
type: "admin-drawer-footer-menu";
|
|
23
|
+
render(params: any): React.ReactElement;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* LEGACY TYPE. Only for backwards compatibility.
|
|
27
|
+
*/
|
|
28
|
+
export declare type AdminMenuLogoPlugin = Plugin & {
|
|
29
|
+
name: "admin-menu-logo";
|
|
30
|
+
type: "admin-menu-logo";
|
|
31
|
+
render(): React.ReactElement;
|
|
32
|
+
};
|
|
33
|
+
export declare type AdminHeaderUserMenuPlugin = Plugin & {
|
|
34
|
+
type: "admin-header-user-menu";
|
|
35
|
+
render(): React.ReactElement;
|
|
36
|
+
};
|
|
37
|
+
export declare type AdminHeaderUserMenuHandlePlugin = Plugin & {
|
|
38
|
+
name: "admin-header-user-menu-handle";
|
|
39
|
+
type: "admin-header-user-menu-handle";
|
|
40
|
+
render(): React.ReactElement;
|
|
41
|
+
};
|
|
42
|
+
export declare type AdminHeaderUserMenuUserInfoPlugin = Plugin & {
|
|
43
|
+
type: "admin-header-user-menu-user-info";
|
|
44
|
+
render(): React.ReactElement;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Enables adding custom menu sections and items in the main menu, located on the left side of the screen.
|
|
48
|
+
* @see https://docs.webiny.com/docs/webiny-apps/admin/development/plugins-reference/app#admin-menu
|
|
49
|
+
*/
|
|
50
|
+
export declare type AdminMenuPlugin = Plugin & {
|
|
51
|
+
type: "admin-menu";
|
|
52
|
+
render(props: {
|
|
53
|
+
Menu: React.ComponentType<MenuProps>;
|
|
54
|
+
Section: React.ComponentType<SectionProps>;
|
|
55
|
+
Item: React.ComponentType<ItemProps>;
|
|
56
|
+
}): React.ReactNode;
|
|
57
|
+
order?: number;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Enables adding custom header elements to the right side of the top bar.
|
|
61
|
+
* @see https://docs.webiny.com/docs/webiny-apps/admin/development/plugins-reference/app#admin-header-right
|
|
62
|
+
*/
|
|
63
|
+
export declare type AdminHeaderRightPlugin = Plugin & {
|
|
64
|
+
type: "admin-header-right";
|
|
65
|
+
render(params: RenderParams): React.ReactNode;
|
|
66
|
+
};
|
|
67
|
+
export declare type AdminFileManagerFileTypePlugin = Plugin & {
|
|
68
|
+
type: "admin-file-manager-file-type";
|
|
69
|
+
types?: string[];
|
|
70
|
+
render({ file }: {
|
|
71
|
+
file: any;
|
|
72
|
+
}): React.ReactNode;
|
|
73
|
+
fileDetails?: {
|
|
74
|
+
actions: Array<React.FunctionComponent | React.Component>;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare type AdminInstallationPlugin = Plugin & {
|
|
78
|
+
type: "admin-installation";
|
|
79
|
+
getInstalledVersion(params: {
|
|
80
|
+
client: ApolloClient<object>;
|
|
81
|
+
}): Promise<string>;
|
|
82
|
+
title: string;
|
|
83
|
+
dependencies?: string[];
|
|
84
|
+
secure: boolean;
|
|
85
|
+
render({ onInstalled }: {
|
|
86
|
+
onInstalled: any;
|
|
87
|
+
}): React.ReactNode;
|
|
88
|
+
upgrades?: {
|
|
89
|
+
version: string;
|
|
90
|
+
getComponent(): React.ComponentType<{
|
|
91
|
+
onInstalled: () => void;
|
|
92
|
+
}>;
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
export declare type AdminAppPermissionRendererPlugin = Plugin & {
|
|
96
|
+
type: "admin-app-permissions-renderer";
|
|
97
|
+
system?: boolean;
|
|
98
|
+
render(params: any): ReactElement;
|
|
99
|
+
};
|
|
100
|
+
export {};
|
package/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/ui/UIElement.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UIElement, UIElementPlugin } from "@webiny/ui-composer/UIElement";
|
package/ui/UILayout.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UILayout, UILayoutPlugin } from "@webiny/ui-composer/UILayout";
|
package/ui/UILayout.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UILayout, UILayoutPlugin } from "@webiny/ui-composer/UILayout";
|
package/ui/UIRenderer.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UIRenderer } from "@webiny/ui-composer/UIRenderer";
|
package/ui/UIView.d.ts
ADDED
package/ui/UIView.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UIView, UIViewComponent, UIViewPlugin } from "@webiny/ui-composer/UIView";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UIElement, UIElementConfig } from "../UIElement";
|
|
3
|
+
interface GetterWithProps<TProps, T> {
|
|
4
|
+
(props: TProps): T;
|
|
5
|
+
}
|
|
6
|
+
interface Item<TProps = any> extends UIElementConfig {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
icon: React.ReactElement;
|
|
11
|
+
open?: boolean | GetterWithProps<TProps, boolean>;
|
|
12
|
+
}
|
|
13
|
+
export declare class AccordionItemElement extends UIElement<Item> {
|
|
14
|
+
constructor(id: any, config: Item);
|
|
15
|
+
setTitle(title: string): void;
|
|
16
|
+
setDescription(description: string): void;
|
|
17
|
+
render(props: any): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
interface Config extends UIElementConfig {
|
|
20
|
+
items: Item[];
|
|
21
|
+
}
|
|
22
|
+
export declare class AccordionElement extends UIElement<Config> {
|
|
23
|
+
constructor(id: any, config: Config);
|
|
24
|
+
getAccordionItemElement(id: string): AccordionItemElement;
|
|
25
|
+
render(props: any): JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export {};
|