Skip to content

Commit

Permalink
update styling system
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaLysiuk committed Jan 3, 2024
1 parent b564cd9 commit 8a27701
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
17 changes: 14 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@aexol-studio/hooks": "^0.1.28",
"@aexol-studio/styling-system": "^0.1.28",
"@aexol-studio/styling-system": "^0.2.6",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"color2k": "^1.2.4",
Expand Down Expand Up @@ -64,4 +64,4 @@
"@types/d3": "^7.4.0",
"@types/diff": "^5.0.2"
}
}
}
10 changes: 10 additions & 0 deletions packages/editor/src/Relation/PanZoom/ControlsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const ControlsBar: React.FC<{
labelPosition="start"
onChange={() => setCtrlToZoom(!ctrlToZoom)}
checked={ctrlToZoom}
wrapperCss={{ fontWeight: 400 }}
/>
<ZoomWrapper>
<IconWrapper
Expand All @@ -83,26 +84,30 @@ export const ControlsBar: React.FC<{
labelPosition="start"
onChange={() => setLibraryNodesOn(!libraryNodesOn)}
checked={libraryNodesOn}
wrapperCss={{ fontWeight: 400 }}
/>
)}
<Checkbox
label="fields"
labelPosition="start"
onChange={() => setFieldsOn(!fieldsOn)}
checked={fieldsOn}
wrapperCss={{ fontWeight: 400 }}
/>
<Checkbox
label="scalars"
disabled={!fieldsOn}
labelPosition="start"
onChange={() => setBaseTypesOn(!baseTypesOn)}
checked={fieldsOn ? baseTypesOn : false}
wrapperCss={{ fontWeight: 400 }}
/>
<Checkbox
label="inputs"
labelPosition="start"
onChange={() => setInputsOn(!inputsOn)}
checked={inputsOn}
wrapperCss={{ fontWeight: 400 }}
/>
<Tooltip title="Export to png" position="left-bottom">
<IconWrapper onClick={() => downloadPng()}>
Expand Down Expand Up @@ -182,3 +187,8 @@ const Menu = styled.div`
position: relative;
justify-content: flex-end;
`;

styled(Checkbox)`
label {
}
`;
3 changes: 3 additions & 0 deletions packages/editor/src/Relation/PanZoom/PanZoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export const PanZoom: React.FC<{
message:
"Schema is too big to be printed as a whole. Please focus some nodes or hide part of them before printing.",
variant: "error",
closeMethod: {
method: "closeManually",
},
});
return;
}
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/shared/dialogs/ImportSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export const ImportSchema: React.FC<{
label="Proxy to avoid CORS"
checked={proxyImport}
onChange={() => setProxyImport(!proxyImport)}
wrapperCss={{ fontWeight: 400 }}
/>
<Typography variant="caption">Headers</Typography>
</Stack>
Expand Down

0 comments on commit 8a27701

Please sign in to comment.