-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Card): add new Card component (beta) (#2744)
Move it out from Layout.
- Loading branch information
1 parent
41bd72e
commit cf0d5b6
Showing
44 changed files
with
202 additions
and
160 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
packages/dnb-design-system-portal/src/docs/uilib/components/card.mdx
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,19 @@ | ||
--- | ||
title: 'Card' | ||
description: '`Card` is a block section element showing the white box with rounded gray borders, adding spacing automatically.' | ||
showTabs: true | ||
status: 'beta' | ||
tabs: | ||
- title: Info | ||
key: '/info' | ||
- title: Demos | ||
key: '/demos' | ||
- title: Properties | ||
key: '/properties' | ||
--- | ||
|
||
import Info from 'Docs/uilib/components/card/info' | ||
import Demos from 'Docs/uilib/components/card/demos' | ||
|
||
<Info /> | ||
<Demos /> |
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
File renamed without changes.
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
File renamed without changes.
24 changes: 0 additions & 24 deletions
24
packages/dnb-design-system-portal/src/docs/uilib/components/layout/Card.mdx
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import React from 'react' | |
import styled from '@emotion/styled' | ||
import ComponentBox from '../../../../shared/tags/ComponentBox' | ||
import MediaQuery from '@dnb/eufemia/src/shared/MediaQuery' | ||
import { Layout, Slider, Code, Button } from '@dnb/eufemia/src' | ||
import { Layout, Slider, Code, Button, Card } from '@dnb/eufemia/src' | ||
import { | ||
TestElement, | ||
Field, | ||
|
@@ -24,20 +24,20 @@ export const LayoutComponents = () => { | |
<Layout.Stack> | ||
<Form.MainHeading>Profile</Form.MainHeading> | ||
|
||
<Layout.Card stack> | ||
<Card stack> | ||
<Form.SubHeading>Name</Form.SubHeading> | ||
|
||
<Field.String label="Fornavn" value="John" /> | ||
<Field.String label="Etternavn" value="Smith" /> | ||
</Layout.Card> | ||
</Card> | ||
|
||
<Layout.Card stack> | ||
<Card stack> | ||
<Form.SubHeading>More information</Form.SubHeading> | ||
|
||
<Field.NationalIdentityNumber value="20058512345" /> | ||
<Field.Email value="[email protected]" /> | ||
<Field.PhoneNumber value="+47 98765432" /> | ||
</Layout.Card> | ||
</Card> | ||
</Layout.Stack> | ||
</ComponentBox> | ||
) | ||
|
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
Oops, something went wrong.