-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge renovate/rollup into renovate/update/tailwindcss-3.x
- Loading branch information
Showing
138 changed files
with
4,720 additions
and
5,631 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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,11 +1,23 @@ | ||
.stickerSheetSectionHeading { | ||
margin-bottom: var(--spacing-12); | ||
margin-bottom: var(--spacing-20); | ||
|
||
.stickerSheet + .stickerSheet & { | ||
margin-top: var(--spacing-lg); | ||
.stickerSheetContainer + .stickerSheetContainer & { | ||
margin-top: var(--spacing-40); | ||
} | ||
} | ||
|
||
.stickerSheetTable { | ||
margin-left: calc(-1 * var(--spacing-12)); | ||
.stickerSheet { | ||
max-width: fit-content; | ||
display: grid; | ||
gap: var(--spacing-24); | ||
} | ||
|
||
.stretch { | ||
max-width: unset; | ||
} | ||
|
||
.stickerSheetHeaders { | ||
display: grid; | ||
grid-template-columns: subgrid; | ||
grid-column: 1 / -1; | ||
} |
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
26 changes: 0 additions & 26 deletions
26
docs/components/StickerSheet/components/StickerSheetBody/StickerSheetBody.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
docs/components/StickerSheet/components/StickerSheetBody/index.ts
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/components/StickerSheet/components/StickerSheetCell/StickerSheetCell.module.scss
This file was deleted.
Oops, something went wrong.
13 changes: 3 additions & 10 deletions
13
docs/components/StickerSheet/components/StickerSheetCell/StickerSheetCell.tsx
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,19 +1,12 @@ | ||
import React, { TdHTMLAttributes } from "react" | ||
import classnames from "classnames" | ||
import styles from "./StickerSheetCell.module.scss" | ||
import React, { HTMLAttributes } from "react" | ||
|
||
export type StickerSheetCellProps = { | ||
children: React.ReactNode | ||
} & TdHTMLAttributes<HTMLTableCellElement> | ||
} & HTMLAttributes<HTMLDivElement> | ||
|
||
export const StickerSheetCell = ({ | ||
children, | ||
className, | ||
...restProps | ||
}: StickerSheetCellProps): JSX.Element => ( | ||
<td className={classnames(styles.stickerSheetCell, className)} {...restProps}> | ||
{children} | ||
</td> | ||
) | ||
}: StickerSheetCellProps): JSX.Element => <div {...restProps}>{children}</div> | ||
|
||
StickerSheetCell.displayName = "StickerSheet.Cell" |
File renamed without changes.
41 changes: 16 additions & 25 deletions
41
docs/components/StickerSheet/components/StickerSheetHeader/StickerSheetHeader.tsx
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,37 +1,28 @@ | ||
import React, { HTMLAttributes } from "react" | ||
import { StickerSheetTableHeading } from "../StickerSheetTableHeading" | ||
import classnames from "classnames" | ||
import styles from "./StickerSheetHeader.module.css" | ||
|
||
export type StickerSheetHeaderProps = { | ||
headings: string[] | ||
headingsWidth?: number | string | ||
children: React.ReactNode | ||
isReversed?: boolean | ||
hasVerticalHeadings?: boolean | ||
verticalHeadingsWidth?: number | string | ||
} & HTMLAttributes<HTMLTableSectionElement> | ||
} & HTMLAttributes<HTMLDivElement> | ||
|
||
export const StickerSheetHeader = ({ | ||
headings, | ||
headingsWidth, | ||
children, | ||
isReversed = false, | ||
hasVerticalHeadings = false, | ||
verticalHeadingsWidth = "7rem", | ||
className, | ||
...restProps | ||
}: StickerSheetHeaderProps): JSX.Element => ( | ||
<thead {...restProps}> | ||
<tr> | ||
{hasVerticalHeadings && <td style={{ width: verticalHeadingsWidth }} />} | ||
{headings.map(heading => ( | ||
<StickerSheetTableHeading | ||
key={heading} | ||
scope="col" | ||
isReversed={isReversed} | ||
style={{ width: headingsWidth }} | ||
> | ||
{heading} | ||
</StickerSheetTableHeading> | ||
))} | ||
</tr> | ||
</thead> | ||
<div | ||
className={classnames( | ||
styles.stickerSheetHeader, | ||
isReversed && styles.isReversed, | ||
className | ||
)} | ||
{...restProps} | ||
> | ||
{children} | ||
</div> | ||
) | ||
|
||
StickerSheetHeader.displayName = "StickerSheet.Header" |
File renamed without changes.
Oops, something went wrong.