-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace
ExpandableText
with web component
- Loading branch information
Showing
12 changed files
with
865 additions
and
778 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
83 changes: 0 additions & 83 deletions
83
packages/main/src/components/ExpandableText/ExpandableText.cy.tsx
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
packages/main/src/components/ExpandableText/ExpandableText.module.css
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
packages/main/src/components/ExpandableText/ExpandableText.stories.tsx
This file was deleted.
Oops, something went wrong.
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
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
6 changes: 3 additions & 3 deletions
6
...ponents/ExpandableText/ExpandableText.mdx → ...ponents/ExpandableText/ExpandableText.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
29 changes: 29 additions & 0 deletions
29
packages/main/src/webComponents/ExpandableText/ExpandableText.stories.tsx
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,29 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import ExpandableTextOverflowMode from '@ui5/webcomponents/dist/types/ExpandableTextOverflowMode.js'; | ||
import TextEmptyIndicatorMode from '@ui5/webcomponents/dist/types/TextEmptyIndicatorMode.js'; | ||
import { ExpandableText } from './index.js'; | ||
|
||
const meta = { | ||
title: 'Data Display / ExpandableText', | ||
component: ExpandableText, | ||
argTypes: { | ||
text: { control: 'text' }, | ||
maxCharacters: { control: 'number' }, | ||
children: { control: { disable: true } }, | ||
showOverflowInPopover: { control: { disable: true } } | ||
//todo: uncomment once white-space can be applied w/o addCustomCSS | ||
// renderWhitespace: { control: { disable: true } } | ||
}, | ||
args: { | ||
emptyIndicatorMode: TextEmptyIndicatorMode.Off, | ||
overflowMode: ExpandableTextOverflowMode.InPlace, | ||
text: ` If "renderWhitespace" is set to true, there will be thirteen white spaces in front and after this sentence. Lorem ipsum dolor st amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat`, | ||
maxCharacters: 100 | ||
}, | ||
tags: ['package:@ui5/webcomponents'] | ||
} satisfies Meta<typeof ExpandableText>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = {}; |
Oops, something went wrong.