-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support CSS gap in Box, use it for spacing in Stack, Inline, Co…
…lumns (#739) * Add CSS gap support to the Box component * Use CSS gap to power Inline's spacing between elements * Use CSS gap to power Stack's spacing between elements * Use CSS gap to power Column's spacing between elements * Fix tests * Fix columns issue * Prepare v17.9.0 release See #739
- Loading branch information
Showing
27 changed files
with
228 additions
and
566 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 +1 @@ | ||
{"generatedAt":1672993602281,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"8.17.0"},"typescriptOptions":{"check":true,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"features":{"interactionsDebugger":true},"storybookVersion":"^6.5.3","language":"typescript","storybookPackages":{"@storybook/addon-knobs":{"version":"6.3.1"},"@storybook/addon-links":{"version":"6.5.3"},"@storybook/addons":{"version":"6.5.3"},"@storybook/jest":{"version":"0.0.10"},"@storybook/react":{"version":"6.5.3"},"@storybook/testing-library":{"version":"0.0.13"}},"framework":{"name":"react"},"addons":{"@storybook/addon-postcss":{"version":"2.0.0"},"@storybook/addon-actions":{"version":"6.5.3"},"@storybook/addon-docs":{"options":{"configureJSX":true},"version":"6.5.3"},"@storybook/addon-controls":{"version":"6.5.3"},"@geometricpanda/storybook-addon-badges":{"version":"0.2.2"},"@storybook/addon-interactions":{"version":"6.5.15"}}} | ||
{"generatedAt":1673359515103,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"8.19.2"},"typescriptOptions":{"check":true,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"features":{"interactionsDebugger":true},"storybookVersion":"^6.5.3","language":"typescript","storybookPackages":{"@storybook/addon-knobs":{"version":"6.3.1"},"@storybook/addon-links":{"version":"6.5.3"},"@storybook/addons":{"version":"6.5.3"},"@storybook/jest":{"version":"0.0.10"},"@storybook/react":{"version":"6.5.3"},"@storybook/testing-library":{"version":"0.0.13"}},"framework":{"name":"react"},"addons":{"@storybook/addon-postcss":{"version":"2.0.0"},"@storybook/addon-actions":{"version":"6.5.3"},"@storybook/addon-docs":{"options":{"configureJSX":true},"version":"6.5.3"},"@storybook/addon-controls":{"version":"6.5.3"},"@geometricpanda/storybook-addon-badges":{"version":"0.2.2"},"@storybook/addon-interactions":{"version":"6.5.15"}}} |
4 changes: 2 additions & 2 deletions
4
docs/vendors~main.f29a14be.iframe.bundle.js → docs/vendors~main.aa3d7dfc.iframe.bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"email": "[email protected]", | ||
"url": "http://doist.com" | ||
}, | ||
"version": "17.8.1", | ||
"version": "17.9.0", | ||
"license": "MIT", | ||
"homepage": "https://github.com/Doist/reactist#readme", | ||
"repository": { | ||
|
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
.gap-none { | ||
gap: 0px; | ||
} | ||
.gap-xsmall { | ||
gap: var(--reactist-spacing-xsmall); | ||
} | ||
.gap-small { | ||
gap: var(--reactist-spacing-small); | ||
} | ||
.gap-medium { | ||
gap: var(--reactist-spacing-medium); | ||
} | ||
.gap-large { | ||
gap: var(--reactist-spacing-large); | ||
} | ||
.gap-xlarge { | ||
gap: var(--reactist-spacing-xlarge); | ||
} | ||
.gap-xxlarge { | ||
gap: var(--reactist-spacing-xxlarge); | ||
} | ||
|
||
/* gap for tablet */ | ||
@media (min-width: 768px /* --reactist-breakpoint-tablet */) { | ||
.tablet-gap-none { | ||
gap: 0px; | ||
} | ||
.tablet-gap-xsmall { | ||
gap: var(--reactist-spacing-xsmall); | ||
} | ||
.tablet-gap-small { | ||
gap: var(--reactist-spacing-small); | ||
} | ||
.tablet-gap-medium { | ||
gap: var(--reactist-spacing-medium); | ||
} | ||
.tablet-gap-large { | ||
gap: var(--reactist-spacing-large); | ||
} | ||
.tablet-gap-xlarge { | ||
gap: var(--reactist-spacing-xlarge); | ||
} | ||
.tablet-gap-xxlarge { | ||
gap: var(--reactist-spacing-xxlarge); | ||
} | ||
} | ||
|
||
/* gap for desktop */ | ||
@media (min-width: 992px /* --reactist-breakpoint-desktop */) { | ||
.desktop-gap-none { | ||
gap: 0px; | ||
} | ||
.desktop-gap-xsmall { | ||
gap: var(--reactist-spacing-xsmall); | ||
} | ||
.desktop-gap-small { | ||
gap: var(--reactist-spacing-small); | ||
} | ||
.desktop-gap-medium { | ||
gap: var(--reactist-spacing-medium); | ||
} | ||
.desktop-gap-large { | ||
gap: var(--reactist-spacing-large); | ||
} | ||
.desktop-gap-xlarge { | ||
gap: var(--reactist-spacing-xlarge); | ||
} | ||
.desktop-gap-xxlarge { | ||
gap: var(--reactist-spacing-xxlarge); | ||
} | ||
} |
Oops, something went wrong.