-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(styles): add AI Notice [ci visual] (#5573)
- Loading branch information
1 parent
b2f16a4
commit c873b14
Showing
5 changed files
with
110 additions
and
4 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
31 changes: 31 additions & 0 deletions
31
packages/styles/stories/AI/Patterns/ai-notice/ai-notice.example.html
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,31 @@ | ||
<h4>For Joule</h4> | ||
<div> | ||
<label class="fd-form-label">Created with <a href="#" class="fd-link" tabindex="0"><span class="fd-link__content">Joule</span></a>. Verify results before using them.</label> | ||
</div> | ||
<br> | ||
<h4>For SAP Business AI</h4> | ||
<div> | ||
<label class="fd-form-label fd-form-label--required" aria-required="true">Created with <a href="#" class="fd-link" tabindex="0"><span class="fd-link__content">SAP Business AI</span></a>. Verify results before using them.</label> | ||
</div> | ||
|
||
<br> | ||
<h4>With Text Area</h4> | ||
<div style="max-width: 80%;"> | ||
<div class="fd-form-item"> | ||
<div class="fd-form-item__label-container"> | ||
<label class="fd-form-label" for="textarea-ai-1">How will you measure this goal? </label> | ||
<button class="fd-button"> | ||
<i class="sap-icon--ai"></i> | ||
<span class="fd-button__text">Revise</span> | ||
<i class="sap-icon--slim-arrow-down"></i> | ||
</button> | ||
</div> | ||
<div role="textbox" contenteditable="true" aria-multiline="true" class="fd-textarea fd-textarea--ai is-information" id="textarea-ai-1" placeholder="Write something here" rows="5"><p class="fd-ai-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum eligendi quae recusandae rem illum? <mark>Vel minus corrupti in numquam qui eius totam!</mark> Sequi aut molestiae minus inventore. Sapiente, officia possimus. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dignissimos fugiat quas cum, voluptas consequuntur totam aliquam illum aspernatur corrupti consectetur sint eaque sequi magni alias aliquid saepe quod ab voluptates.</p> | ||
</div> | ||
<div class="fd-textarea-counter-container"> | ||
<label class="fd-form-label">Created with <a href="#" class="fd-link" tabindex="0"><span class="fd-link__content">Joule</span></a>. Verify results before using them.</label> | ||
<div class="fd-textarea-counter">150 characters left</div> | ||
</div> | ||
|
||
</div> | ||
</div> |
26 changes: 26 additions & 0 deletions
26
packages/styles/stories/AI/Patterns/ai-notice/ai-notice.stories.js
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,26 @@ | ||
import aiNoticeExampleHtml from "./ai-notice.example.html?raw"; | ||
|
||
import '../../../../src/textarea.scss'; | ||
import '../../../../src/form-item.scss'; | ||
import '../../../../src/button.scss'; | ||
import '../../../../src/icon.scss'; | ||
import '../../../../src/form-label.scss'; | ||
import '../../../../src/link.scss'; | ||
import '../../../../src/ai-text.scss'; | ||
|
||
export default { | ||
title: 'AI/Patterns/Notice', | ||
parameters: { | ||
description: `The "AI Notice" pattern provides clear references about the quality and reliability of AI-generated results in written text. It is an essential part of the broader "messaging patterns" associated with AI services and integrates with other AI interaction patterns like explainability and feedback. This pattern helps users understand the trustworthiness of AI-generated content, enhancing transparency and confidence. It's especially useful in environments where AI-generated information is key, such as collaborative platforms, educational tools, content creation apps, and informational websites. | ||
<br><b>Note: The component is in an experimental state.</b>`, | ||
tags: ['ai', 'experimental'] | ||
} | ||
}; | ||
export const AINotice = () => aiNoticeExampleHtml; | ||
AINotice.parameters = { | ||
docs: { | ||
description: { | ||
story: `` | ||
} | ||
} | ||
}; |
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