-
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.
chore(core:button): support for deprecated button
- revert removal of cds-inline-button which is deprecated in 6.0 for removal in 7.0 - update docs to reflect new component Signed-off-by: Cory Rylan <splintercode.cb@gmail.com>
- Loading branch information
Showing
7 changed files
with
45 additions
and
23 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
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,10 +1,17 @@ | ||
import { CdsButton as Button, CdsIconButton as IconButton } from '@cds/core/button'; | ||
import '@cds/core/button/register'; | ||
import { CdsButtonInline as InlineButton } from '@cds/core/button-inline'; | ||
import { createComponent } from '@lit-labs/react'; | ||
import * as React from 'react'; | ||
import { logReactVersion } from '../utils/index'; | ||
|
||
export const CdsButton = createComponent(React, 'cds-button', Button, {}, 'CdsButton'); | ||
export const CdsIconButton = createComponent(React, 'cds-icon-button', IconButton, {}, 'CdsIconButton'); | ||
|
||
/** | ||
* @deprecated | ||
* renamed to `cds-button-inline` in 6.0 to align to rest of the `cds-button-*` APIs | ||
*/ | ||
export const CdsInlineButton = createComponent(React, 'cds-inline-button', InlineButton, {}, 'CdsInlineButton'); | ||
|
||
logReactVersion(React); |