-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from eccenca/feature/alignDevelopWith24.1.0Re…
…leaseBranch Align develop with current state of 24.1.0 release branch
- Loading branch information
Showing
19 changed files
with
995 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from "react"; | ||
import { LoremIpsum } from "react-lorem-ipsum"; | ||
import { Meta, StoryFn } from "@storybook/react"; | ||
|
||
import { Badge, ContentGroup, HtmlContentBlock, IconButton, Tag } from "../../../index"; | ||
|
||
export default { | ||
title: "Components/ContentGroup", | ||
component: ContentGroup, | ||
argTypes: { | ||
handlerToggleCollapse: { | ||
action: "toggle collapse", | ||
}, | ||
}, | ||
} as Meta<typeof ContentGroup>; | ||
|
||
const TemplateFull: StoryFn<typeof ContentGroup> = (args) => <ContentGroup {...args} />; | ||
|
||
export const BasicExample = TemplateFull.bind({}); | ||
BasicExample.args = { | ||
title: "Content group title", | ||
contextInfo: <Badge children={100} maxLength={3} intent={"warning"} title="Found warnings context." />, | ||
annotation: ( | ||
<Tag backgroundColor={"purple"} round> | ||
Context tag | ||
</Tag> | ||
), | ||
actionOptions: ( | ||
<> | ||
<IconButton name="item-remove" text="Example remove tooltip" disruptive /> | ||
</> | ||
), | ||
isCollapsed: false, | ||
handlerToggleCollapse: () => {}, | ||
borderMainConnection: true, | ||
borderSubConnection: ["red", "blue"], | ||
level: 1, | ||
minimumHeadlineLevel: 5, | ||
whitespaceSize: "small", | ||
description: "More context description by tooltip.", | ||
hideGroupDivider: false, | ||
children: ( | ||
<HtmlContentBlock> | ||
<LoremIpsum p={3} avgSentencesPerParagraph={4} random={false} /> | ||
</HtmlContentBlock> | ||
), | ||
}; |
Oops, something went wrong.