-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Card, Section): add
outset
property for moderate layout breakout
- Loading branch information
1 parent
4a8880f
commit f893f2d
Showing
27 changed files
with
229 additions
and
35 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
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
Binary file modified
BIN
-7.5 KB
(60%)
...rd/__tests__/__image_snapshots__/card-for-sbanken-have-to-match-border.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-139 Bytes
(99%)
...ests__/__image_snapshots__/card-for-sbanken-have-to-match-nested-cards.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.5 KB
...rd/__tests__/__image_snapshots__/card-for-sbanken-have-to-match-outset.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.85 KB
(60%)
...ts/card/__tests__/__image_snapshots__/card-for-ui-have-to-match-border.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+242 Bytes
(100%)
...d/__tests__/__image_snapshots__/card-for-ui-have-to-match-nested-cards.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11 KB
...ts/card/__tests__/__image_snapshots__/card-for-ui-have-to-match-outset.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.49 KB
(58%)
...__image_snapshots__/card-small-screen-for-sbanken-have-to-match-border.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+26 Bytes
(100%)
...e_snapshots__/card-small-screen-for-sbanken-have-to-match-nested-cards.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.4 KB
...__image_snapshots__/card-small-screen-for-sbanken-have-to-match-outset.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.51 KB
(61%)
...ts__/__image_snapshots__/card-small-screen-for-ui-have-to-match-border.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+213 Bytes
(100%)
..._image_snapshots__/card-small-screen-for-ui-have-to-match-nested-cards.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11 KB
...ts__/__image_snapshots__/card-small-screen-for-ui-have-to-match-outset.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
59 changes: 59 additions & 0 deletions
59
packages/dnb-eufemia/src/components/section/SectionDocs.ts
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,59 @@ | ||
import { PropertiesTableProps } from '../../shared/types' | ||
|
||
export const SectionProperties: PropertiesTableProps = { | ||
variant: { | ||
doc: 'Defines the semantic purpose and subsequently the style of the visual helper. Will take precedence over the style_type property.', | ||
type: 'string', | ||
status: 'optional', | ||
}, | ||
breakout: { | ||
doc: 'Use `true` to enable a fullscreen breakout look. Supports also media query breakpoints like `{ small: boolean }`. Defaults to `true`.', | ||
type: 'boolean', | ||
status: 'optional', | ||
}, | ||
outset: { | ||
doc: 'Define if the Card should break out negatively on larger screens. You can not use `breakout` and `outset` together. Defaults to `false`.', | ||
type: 'boolean', | ||
status: 'optional', | ||
}, | ||
outline: { | ||
doc: "Define a custom border color. If `true` is given, `color-black-8` is used. Use a Eufemia color. Supports also media query breakpoints like `{ small: 'black-8' }`.", | ||
type: 'string', | ||
status: 'optional', | ||
}, | ||
roundedCorner: { | ||
doc: 'Use `true` to enable rounded corners (border-radius). Supports also media query breakpoints like `{ small: boolean }`. Defaults to `false`.', | ||
type: 'boolean', | ||
status: 'optional', | ||
}, | ||
backgroundColor: { | ||
doc: "Define a custom background color, instead of a variant. Use a Eufemia color. Supports also media query breakpoints like `{ small: 'white' }`.", | ||
type: 'string', | ||
status: 'optional', | ||
}, | ||
dropShadow: { | ||
doc: 'Use `true` to show the default Eufemia DropShadow. Supports also media query breakpoints like `{ small: true }`.', | ||
type: 'boolean', | ||
status: 'optional', | ||
}, | ||
textColor: { | ||
doc: "Define a custom text color to compliment the backgroundColor. Use a Eufemia color. Supports also media query breakpoints like `{ small: 'black-80' }`.", | ||
type: 'string', | ||
status: 'optional', | ||
}, | ||
innerSpace: { | ||
doc: "Will add a padding around the content. Supports also media query breakpoints like `{small: { top: 'medium' }}`.", | ||
type: 'string', | ||
status: 'optional', | ||
}, | ||
innerRef: { | ||
doc: 'By providing a React Ref we can get the internally used element (DOM). E.g. `inner_ref={myRef}` by using `React.createRef()` or `React.useRef()`.', | ||
type: 'React.Ref', | ||
status: 'optional', | ||
}, | ||
'[Space](/uilib/layout/space/properties)': { | ||
doc: 'Spacing properties like `top` or `bottom` are supported.', | ||
type: ['string', 'object'], | ||
status: 'optional', | ||
}, | ||
} |
Oops, something went wrong.