Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add DefinitionList and HelpMark #1731

Merged
merged 8 commits into from
Oct 15, 2024
Merged

feat: add DefinitionList and HelpMark #1731

merged 8 commits into from
Oct 15, 2024

Conversation

Raubzeug
Copy link
Contributor

@Raubzeug Raubzeug commented Aug 2, 2024

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

@Raubzeug Raubzeug force-pushed the add-definition-list branch from 82c4a7e to 02cb48e Compare October 1, 2024 09:33
CODEOWNERS Outdated Show resolved Hide resolved
src/components/DefinitionList/DefinitionList.scss Outdated Show resolved Hide resolved
src/components/DefinitionList/DefinitionList.scss Outdated Show resolved Hide resolved
src/components/DefinitionList/README.md Outdated Show resolved Hide resolved
src/components/DefinitionList/types.ts Outdated Show resolved Hide resolved
CODEOWNERS Outdated Show resolved Hide resolved
src/components/DefinitionList/DefinitionList.tsx Outdated Show resolved Hide resolved
src/components/DefinitionList/DefinitionList.tsx Outdated Show resolved Hide resolved
src/components/DefinitionList/README.md Outdated Show resolved Hide resolved
src/components/HelpMark/HelpMark.tsx Outdated Show resolved Hide resolved
src/components/HelpMark/HelpMark.tsx Outdated Show resolved Hide resolved
src/components/HelpMark/README.md Outdated Show resolved Hide resolved
src/components/HelpMark/README.md Outdated Show resolved Hide resolved
src/components/HelpMark/__stories__/HelpMark.stories.tsx Outdated Show resolved Hide resolved
if (isItem) {
normalizedItems.push(item);
} else {
warnOnce('Only <DefinitionList.Item> components is allowed inside <DefinitionList>');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
warnOnce('Only <DefinitionList.Item> components is allowed inside <DefinitionList>');
warnOnce('[DefinitionList] Only <DefinitionList.Item> components is allowed as children');

@@ -0,0 +1,2 @@
export {DefinitionList} from './DefinitionList';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's reexport DefinitionListItem component as well. There might be issues with dot notation in Next.js applications


## Properties

| Property | Type | Required | Default | Description |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use columns in this order and names: Name, Description, Type, Default, no Required column, Type and Default should be center aligned

@Raubzeug Raubzeug requested a review from amje October 15, 2024 11:01
@Raubzeug Raubzeug merged commit c587116 into main Oct 15, 2024
6 checks passed
@Raubzeug Raubzeug deleted the add-definition-list branch October 15, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants