From c873b14bf24572d944cfe1a42c26e7117e415886 Mon Sep 17 00:00:00 2001 From: Inna Atanasova <39598672+InnaAtanasova@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:10:41 -0400 Subject: [PATCH] fix(styles): add AI Notice [ci visual] (#5573) --- packages/styles/src/fundamental-styles.scss | 8 ++--- packages/styles/src/textarea.scss | 15 ++++++++ .../Patterns/ai-notice/ai-notice.example.html | 31 +++++++++++++++++ .../Patterns/ai-notice/ai-notice.stories.js | 26 ++++++++++++++ .../tests/__snapshots__/styles.test.ts.snap | 34 +++++++++++++++++++ 5 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 packages/styles/stories/AI/Patterns/ai-notice/ai-notice.example.html create mode 100644 packages/styles/stories/AI/Patterns/ai-notice/ai-notice.stories.js diff --git a/packages/styles/src/fundamental-styles.scss b/packages/styles/src/fundamental-styles.scss index 5719021168..e987f2afd0 100644 --- a/packages/styles/src/fundamental-styles.scss +++ b/packages/styles/src/fundamental-styles.scss @@ -1,6 +1,9 @@ /* Do not modify manually, this file is being generated by workspace-plugins:sync-components executor */ @import './action-bar'; @import './action-sheet'; +@import './ai-busy-indicator'; +@import './ai-loading-bar'; +@import './ai-text'; @import './alert'; @import './avatar-group'; @import './avatar'; @@ -74,6 +77,7 @@ @import './popover'; @import './product-switch'; @import './progress-indicator'; +@import './prompt-input'; @import './quick-view'; @import './radio'; @import './rating-indicator'; @@ -112,7 +116,3 @@ @import './vertical-nav'; @import './wizard'; @import './btp/avatar'; -@import '.prompt-input'; -@import '.ai-busy-indicator'; -@import '.ai-loading-bar'; -@import '.ai-text'; diff --git a/packages/styles/src/textarea.scss b/packages/styles/src/textarea.scss index e1872d649d..29016f26eb 100644 --- a/packages/styles/src/textarea.scss +++ b/packages/styles/src/textarea.scss @@ -85,6 +85,21 @@ $block: #{$fd-namespace}-textarea; } } + &-counter-container { + @include fd-reset(); + + @include fd-flex() { + align-items: center; + }; + + padding-block: 0.375rem 0.5rem; + + .#{$block}-counter { + padding-block: 0; + margin-inline-start: auto; + } + } + &--ai { position: relative; diff --git a/packages/styles/stories/AI/Patterns/ai-notice/ai-notice.example.html b/packages/styles/stories/AI/Patterns/ai-notice/ai-notice.example.html new file mode 100644 index 0000000000..b630f88b83 --- /dev/null +++ b/packages/styles/stories/AI/Patterns/ai-notice/ai-notice.example.html @@ -0,0 +1,31 @@ +
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum eligendi quae recusandae rem illum? Vel minus corrupti in numquam qui eius totam! 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.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum eligendi quae recusandae rem illum? Vel minus corrupti in numquam qui eius totam! 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.
+