
* Update to new design theme (#1631) * Update macaw to 0.3.0 (#1623) * Update macaw to 0.3 * Use proper pagination component * Fix type errors * Remove leftover import * Remove variant and color from confirm button * Remove alias * Update macaw * Fix button type * Random fixes (#1633) * Improve layout components * Use colored svgs * Minor fixes * Fix autocomplete loaders * Fix padding * Fix button variant * Remove codegen file * Fixes after bumping macaw to 0.3 part 2 (#1638) * Fix various visual bugs * Fix type errors * Bump macaw * Random fixes part 3 (#1647) * wip * Fix mismatched paddings * Fix actions container padding * Put story in the right directory * Fix shipping zone picker * Fix minor visual bugs * Remove unused imports * Move styles to separate file * Random fixes part 4 (#1641) * Fix various visual bugs * Fix type errors * Fix last table item padding * Add outline on hover * Fix spaces * Fix spaces * Remove dead code * Fix elevation * Remove dead code * Fix shadows * Add outline to expand button * Fix spacing * Fix spacings * Fix selectable tables hover * Use proper delete icon * Fix ConfirmButtonTransitionState imports * Update src/apps/components/CustomApps/CustomApps.tsx Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io> Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io> * Rework error page (#1670) * Remake error page * Fix types * Update error id styles * Fix types * Login page rework (#1703) * Rework login page * Remove outline * Fix logo and footer placement * Sort imports * Random fixes part 5 (#1669) * Fix text color in dark mode * Update password reset pages (#1714) * Update password reset pages * Update src/auth/components/ResetPasswordPage/ResetPasswordPage.tsx Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> * Fix collection page * Update dark mode logo * Bring back "create app" button * Fix spacings * Fix selects * Fix login e2e test * Fix not found page displaying * Update selector * Add missing package * Let dropdown overflow through card * Fix scroll * Fix scroll * Fix overflow on grid element * Fix e2e tests * Fix data-test-id * Update snapshots * Update messages * Update macaw * Update snapshots * Use stable macaw version Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> * Update to new design theme (#1631) * Update macaw to 0.3.0 (#1623) * Update macaw to 0.3 * Use proper pagination component * Fix type errors * Remove leftover import * Remove variant and color from confirm button * Remove alias * Update macaw * Fix button type * Random fixes (#1633) * Improve layout components * Use colored svgs * Minor fixes * Fix autocomplete loaders * Fix padding * Fix button variant * Remove codegen file * Fixes after bumping macaw to 0.3 part 2 (#1638) * Fix various visual bugs * Fix type errors * Bump macaw * Random fixes part 3 (#1647) * wip * Fix mismatched paddings * Fix actions container padding * Put story in the right directory * Fix shipping zone picker * Fix minor visual bugs * Remove unused imports * Move styles to separate file * Random fixes part 4 (#1641) * Fix various visual bugs * Fix type errors * Fix last table item padding * Add outline on hover * Fix spaces * Fix spaces * Remove dead code * Fix elevation * Remove dead code * Fix shadows * Add outline to expand button * Fix spacing * Fix spacings * Fix selectable tables hover * Use proper delete icon * Fix ConfirmButtonTransitionState imports * Update src/apps/components/CustomApps/CustomApps.tsx Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io> Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io> * Rework error page (#1670) * Remake error page * Fix types * Update error id styles * Fix types * Login page rework (#1703) * Rework login page * Remove outline * Fix logo and footer placement * Sort imports * Random fixes part 5 (#1669) * Fix text color in dark mode * Update password reset pages (#1714) * Update password reset pages * Update src/auth/components/ResetPasswordPage/ResetPasswordPage.tsx Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> * Fix collection page * Update dark mode logo * Bring back "create app" button * Fix spacings * Fix selects * Fix login e2e test * Fix not found page displaying * Update selector * Add missing package * Let dropdown overflow through card * Fix scroll * Fix scroll * Fix overflow on grid element * Fix e2e tests * Fix data-test-id * Update snapshots * Update messages * Update macaw * Update snapshots * Use stable macaw version Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> * Fix visual bugs and artifacts * Fix dropdown menus being clipped (#1762) * wip * Fix clipped select menus * Remove unused import * Fix spacing * Fix tests * Fix select content appearing under dialogs (#1777) * Fix type errors * Fix bulk delete button placement * Fix filter arrow buttons * Fix messages * Remove backling from pages list * Move status above events * Update messages and snapshots Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
212 lines
4.6 KiB
TypeScript
212 lines
4.6 KiB
TypeScript
import { makeStyles } from "@saleor/macaw-ui";
|
|
|
|
export const useStyles = makeStyles(
|
|
theme => ({
|
|
[theme.breakpoints.up("lg")]: {
|
|
colName: {
|
|
"&&": {
|
|
width: "auto"
|
|
}
|
|
}
|
|
},
|
|
alignRight: {
|
|
textAlign: "right"
|
|
},
|
|
apps: {
|
|
marginBottom: theme.spacing(4)
|
|
},
|
|
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(3),
|
|
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)
|
|
},
|
|
customApps: {
|
|
marginBottom: theme.spacing(4)
|
|
},
|
|
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: {
|
|
"& svg": {
|
|
marginRight: theme.spacing()
|
|
},
|
|
"& span": {
|
|
fontWeight: 500
|
|
},
|
|
alignItems: "center",
|
|
color: theme.palette.text.primary,
|
|
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,
|
|
marginTop: theme.spacing(1)
|
|
},
|
|
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
|
|
},
|
|
activateButton: {
|
|
"& img": {
|
|
marginRight: theme.spacing(1)
|
|
}
|
|
}
|
|
}),
|
|
{ name: "AppList" }
|
|
);
|