-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement BasePrimitive for Box, Stack and HGrid (#3003)
* feat: Implemented baseprimitive in box * refactor: segmented box-features into classes * feat: Implemented baseprimitive margin css * refactor: Correctly allow box with no children when no asChild is used * refactor: Implement BasePrimitive on Stack/HGrid, addef as-prop for hgrid * typo: Rename constant to a more 'content' nameing convention * bug: Fix slot-import * 🚧 --__ac-r-m.* * bug: Fixed nesting of className * feat: BasePrimitive now supports auto * memo: Changeset * bug: Added margin auto support for marginBlock * refactor: Redo naming of base props * bug: Typo * bug: Wrong css-token reference for pi and pb * Update @navikt/core/react/src/layout/base/BasePrimitive.tsx Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> * Update @navikt/core/react/src/layout/base/BasePrimitive.tsx Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> * bug: Removed static padding representation * Update @navikt/core/react/src/layout/base/BasePrimitive.tsx Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> * refactor: Renamed AsChildProps used in Primitives * bug: Re-added fallback to padding/margin when using a subset of breakpoints for inline/block * Update @navikt/core/react/src/layout/base/BasePrimitive.stories.tsx Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> * memo: JSDoc * refactor: Removed undefined as-props from docgen --------- Co-authored-by: Julian Nymark <julian.nymark@nav.no> Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
- Loading branch information
1 parent
cb304d0
commit b38789b
Showing
16 changed files
with
569 additions
and
247 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,6 @@ | ||
--- | ||
"@navikt/ds-react": minor | ||
"@navikt/ds-css": minor | ||
--- | ||
|
||
Primitives: Added support for padding, paddingInline, paddingBlock, margin, marginInline, marginBlock, width, minWidth, maxWidth, height, minHeight, maxHeight, position, inset, top, right, left, bottom, overflow, overflowX, overflowY, flexBasis, flexGrow, flexShrink to Box, HGrid and Stack. |
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
Oops, something went wrong.