saleor-dashboard/src/apps/styles.ts
AlicjaSzu 211b0b892d
Apps (#599)
* create Apps view

* create more app components, generate types and messages

* apps refactor, update snapshots

* show error message in tooltip  when app installation fail

* update apps components and view, add apps list to storybook

* update defaultMessages

* create app details view

* update AppListPage with Skeleton component

* create app activate/deactivate dialogs, create app details stories

* add AppHeader to AppDetailsPage

* update defaultMessages

* update AppDetails view and components after review

* create custom app details view

* refactor webhooks

* update webhooks fixtures

* update WebhookDetailsPage story

* update strings

* create CustomAppCreate view and components

* update AppListPage story

* create AppInstall view and page

* handle errors in AppInstall view

* update defaultMessages

* add AppInstallPage to storybook

* add status prop to MessageManager

* update defaultMessages

* remove service account section

* remove service account routes

* remove as operator from notify status

* add notifications for app installations

* update styles for deactivated app

* update app installations with local storage

* update defaultMessages

* AppInstall update

* dd delete button to ongoin installations table

* fix active installations condition

* fix error messages in AppsList

* update defaultMessages

* add iframe to AppDetailsPage

* create AppDetailsSettingsPage

* install macaw-ui

* apps styles clean up

* update schema, fixtures

* few apps updates

* WebhookCreate - fix onBack button name

* WebhookCreatePage story update

* rename apps table from external to thirdparty

* update defaultMessages

* fix test, update snapshots

* AppDetailsSettings - add token to headers

* fix first number in local apps query

* app details settings - use shop domain host

* add onSettingsRowClick to InstalledApps

* resolve conflicts

* update changelog and messages

* add noopener noreferrer do app privacy link

* update snapshots

* update snapshots

* updates after review

* update defaultMessages

* CustomAppDetails - add missing notify status
2020-07-22 12:54:15 +02:00

204 lines
4.4 KiB
TypeScript

import { makeStyles } from "@material-ui/core/styles";
export const useStyles = makeStyles(
theme => ({
[theme.breakpoints.up("lg")]: {
colName: {
"&&": {
width: "auto"
}
}
},
alignRight: {
textAlign: "right"
},
appContainer: {
marginBottom: theme.spacing(3)
},
appContent: {
"&:last-child": {
padding: "0!important"
},
padding: 0
},
appHeader: {
marginBottom: theme.spacing(3)
},
appHeaderLinks: {
"& img": {
marginRight: theme.spacing(1)
},
alignItems: "center",
display: "flex",
padding: theme.spacing(2, 0)
},
appName: {
color: theme.palette.primary.main
},
colAction: {
"&&": {
paddingRight: theme.spacing(1),
textAlign: "right"
},
textAlign: "right"
},
colInstallAction: {
"& > *": {
display: "inline-flex"
}
},
colName: {
paddingLeft: 0,
width: theme.spacing(30)
},
colSpinner: {
"& svg": {
textAlign: "right"
},
paddingLeft: theme.spacing(3),
paddingRight: theme.spacing(2)
},
customTooltip: {
"& > div": {
backgroundColor: theme.palette.error.main,
borderRadius: theme.spacing(1),
color: theme.palette.primary.contrastText,
padding: theme.spacing(2)
},
padding: "0!important"
},
error: {
"& svg": {
bottom: theme.spacing(0.2),
marginLeft: theme.spacing(0.6),
position: "relative"
},
color: theme.palette.error.main,
margin: theme.spacing(0, 1, 0.7, 0)
},
headerLinkContainer: {
"& span": {
fontWeight: 500
},
alignItems: "center",
display: "flex",
fontSize: theme.spacing(2),
fontWeight: 500,
lineHeight: 1.2,
marginRight: theme.spacing(3),
padding: 0,
textTransform: "none"
},
hr: {
border: "none",
borderTop: `1px solid ${theme.palette.divider}`,
height: 0,
marginBottom: 0,
marginTop: 0,
width: "100%"
},
installAppContainer: {
"& > div": {
position: "relative"
},
"& img": {
position: "relative"
},
display: "flex",
justifyContent: "space-between",
padding: theme.spacing(2, 0),
position: "relative",
width: theme.spacing(35)
},
installCard: {
"&:before": {
backgroundColor: theme.palette.divider,
content: "''",
height: 2,
position: "absolute",
top: "50%",
transform: "translateY(-50%)",
width: theme.spacing(30)
},
display: "flex",
justifyContent: "center",
position: "relative"
},
installIcon: {
alignItems: "center",
backgroundColor: theme.palette.divider,
border: `1px solid ${theme.palette.divider}`,
borderRadius: "50%",
display: "flex",
height: theme.spacing(9),
justifyContent: "center",
overflow: "hidden",
width: theme.spacing(9)
},
installPermissionTitle: {
fontWeight: 500
},
installPrivacyText: {
"& a": {
color: theme.palette.primary.main,
textDecoration: "none"
},
color: theme.palette.text.hint
},
installSaleorIcon: {
backgroundColor: theme.palette.secondary.main,
border: "none"
},
installSpacer: {
margin: theme.spacing(2, 0)
},
installText: {
color: theme.palette.primary.contrastText
},
linkContainer: {
fontWeight: 500,
marginTop: theme.spacing(1.5)
},
marketplaceContent: {
"& button": {
marginTop: theme.spacing(1)
},
"&:last-child": {
padding: theme.spacing(2, 3, 2, 3)
},
padding: theme.spacing(1)
},
permissionsContainer: {
"& li": {
"&:last-child": {
marginBottom: 0
},
marginBottom: theme.spacing(1)
},
paddingLeft: theme.spacing(2)
},
retryBtnCol: {
paddingRight: theme.spacing(1),
width: theme.spacing(14)
},
statusWrapper: {
display: "inline-block",
marginLeft: theme.spacing(2.5)
},
table: {
tableLayout: "fixed"
},
tableRow: {
cursor: "pointer"
},
text: {
color: theme.palette.text.secondary
},
title: {
flex: 1,
fontWeight: 500,
lineHeight: 1
}
}),
{ name: "AppList" }
);