-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(slice-machine-ui): update List component
- Loading branch information
Showing
11 changed files
with
212 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,77 @@ | ||
import { colors, sprinkles, vars } from "@prismicio/editor-ui"; | ||
import { style } from "@vanilla-extract/css"; | ||
|
||
import * as windowStyles from "../Window/Window.css"; | ||
|
||
const flex = sprinkles({ all: "unset", display: "flex" }); | ||
|
||
export const root = style([flex, sprinkles({ flexDirection: "column" })]); | ||
const row = style([flex, sprinkles({ flexDirection: "row" })]); | ||
|
||
export const header = style([ | ||
export const root = style([ | ||
flex, | ||
sprinkles({ | ||
borderColor: colors.grey6, | ||
borderRadius: 6, | ||
borderStyle: "solid", | ||
borderWidth: 1, | ||
flexDirection: "column", | ||
overflowX: "hidden", | ||
}), | ||
{ | ||
selectors: { | ||
[`:is(${windowStyles.root}, ${windowStyles.tabsContent}) > &`]: { | ||
borderRadius: vars.borderRadius[0], | ||
borderStyle: vars.borderStyle.none, | ||
}, | ||
}, | ||
}, | ||
]); | ||
|
||
const child = style([ | ||
row, | ||
sprinkles({ | ||
alignItems: "center", | ||
backgroundColor: colors.grey2, | ||
borderBottomColor: colors.grey6, | ||
borderBottomStyle: "solid", | ||
borderBottomWidth: 1, | ||
boxSizing: "border-box", | ||
flexDirection: "row", | ||
gap: 8, | ||
height: 48, | ||
paddingLeft: 16, | ||
paddingRight: 8, | ||
}), | ||
{ ":last-child": { borderBottomColor: vars.color.transparent } }, | ||
]); | ||
|
||
export const header = style([ | ||
child, | ||
sprinkles({ | ||
backgroundColor: colors.grey2, | ||
borderBottomStyle: "solid", | ||
gap: 8, | ||
paddingLeft: 16, | ||
}), | ||
{ | ||
selectors: { | ||
[`${root}:last-child > &`]: { borderBottomColor: vars.color.transparent }, | ||
[`${windowStyles.tabsContent} > ${root} > &:not(:first-child)`]: { | ||
marginTop: vars.space[16], | ||
}, | ||
}, | ||
}, | ||
]); | ||
|
||
export const headerActions = style([ | ||
row, | ||
sprinkles({ | ||
alignItems: "center", | ||
flexGrow: 1, | ||
gap: 8, | ||
justifyContent: "end", | ||
}), | ||
]); | ||
|
||
export const item = style([ | ||
child, | ||
sprinkles({ | ||
backgroundColor: colors.grey1, | ||
borderBottomStyle: "dashed", | ||
paddingLeft: 12, | ||
}), | ||
]); |
Oops, something went wrong.