-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(merge): conflict again with cwc 2.1.0 (#11240)
### Related Ticket(s) Closes # {{Provide issue number link(s) to the related ticket(s) that this pull request addresses}} ### Description {{Add a human-readable description / detail summary of what the PR is changing and any details around how and why}} {{If applicable, include a screenshot indicating an example or examples of what the PR is changing in the application}} ### Changelog **New** - {{new thing}} **Changed** - {{changed thing}} **Removed** - {{removed thing}} <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information
1 parent
6514729
commit a285c4d
Showing
18 changed files
with
194 additions
and
81 deletions.
There are no files selected for viewing
Binary file added
BIN
+6.95 MB
.yarn/cache/@carbon-icons-react-npm-11.33.0-4f49841774-beb78e827e.zip
Binary file not shown.
Binary file renamed
BIN
+1.38 MB
...eact-npm-1.45.0-538bcdbc48-f412e129b7.zip → ...eact-npm-1.46.0-5b5d8e05f5-7a7805f58a.zip
Binary file not shown.
Binary file not shown.
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
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
52 changes: 52 additions & 0 deletions
52
packages/carbon-web-components/src/components/slug/slug-story.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,52 @@ | ||
import { Props, Description } from '@storybook/addon-docs/blocks'; | ||
import { cdnJs, cdnCss } from '../../globals/internal/storybook-cdn'; | ||
|
||
# Slug | ||
|
||
> 💡 Check our | ||
> [CodeSandbox](https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/feat/cwc-v2/packages/carbon-web-components/examples/codesandbox/basic/components/slug) | ||
> example implementation. | ||
[![Edit carbon-web-components](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/feat/cwc-v2/packages/carbon-web-components/examples/codesandbox/basic/components/slug) | ||
|
||
The slug is a component alerting the user of generated AI content. | ||
|
||
## Getting started | ||
|
||
Here's a quick example to get you started. | ||
|
||
### JS (via import) | ||
|
||
```javascript | ||
import '@carbon/web-components/es/components/slug/index.js'; | ||
``` | ||
|
||
<Description markdown={`${cdnJs({ components: ['slug'] })}`} /> | ||
<Description markdown={`${cdnCss()}`} /> | ||
|
||
### HTML | ||
|
||
```html | ||
<cds-slug size="mini" alignment="bottom-left"> | ||
<div slot="body-text"> | ||
<p class="secondary">AI Explained</p> | ||
<h1>84%</h1> | ||
<p class="secondary bold">Confidence score</p> | ||
<p class="secondary"> | ||
Lorem ipsum dolor sit amet, di os consectetur adipiscing elit, sed do | ||
eiusmod tempor incididunt ut fsil labore et dolore magna aliqua. | ||
</p> | ||
<hr /> | ||
<p class="secondary">Model type</p> | ||
<p class="bold">Foundation model</p> | ||
</div> | ||
</cds-slug> | ||
``` | ||
|
||
## `<cds-slug>` attributes, properties and events | ||
|
||
Note: For `boolean` attributes, `true` means simply setting the attribute (e.g. | ||
`<cds-slug revert-active>`) and `false` means not setting the attribute (e.g. | ||
`<cds-slug>` without `revertActive` attribute). | ||
|
||
<Props of="cds-slug" /> |
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.