Skip to content

Commit

Permalink
feat: introduce subsectionheader
Browse files Browse the repository at this point in the history
  • Loading branch information
kostasdano committed Oct 26, 2023
1 parent e293dc9 commit ab9b32e
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 35 deletions.
6 changes: 3 additions & 3 deletions docs/GETTING_STARTED.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Meta } from '@storybook/addon-docs';
}}
/>

## 📦 Installation
<SubsectionHeader title="📦 Installation" />

```text
$ npm install @orfium/ictinus
Expand All @@ -27,7 +27,7 @@ Remember: this is a release candidate, we encourage you to lock version on insta
$ yarn add @orfium/ictinus@next
```

## 🔨 Usage
<SubsectionHeader title="🔨 Usage" />

1. Start by wrapping your App with ictinus `ThemeProvider` component like below

Expand All @@ -47,7 +47,7 @@ const App = () => (
import { Select, Button } from '@orfium/ictinus';
```

## ✨ Extra
<SubsectionHeader title="✨ Extra" />

### Theme usage

Expand Down
13 changes: 6 additions & 7 deletions docs/WELCOME.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,17 @@ atoms, molecules, organisms, templates and pages.

</p>

<br />
<br />

## What's Inside
<SubsectionHeader title="What's Inside" />

- [Getting Started](?path=/story/guide-getting-started--page)
- [Design Tokens](?path=/story/design-tokens-about--page)
- [Components](?path=/story/design-system-avatar--avatar-with-icon)
- [Components](?path=/docs/updated-components-avatar-avatar--overview)

<br />
<br />

## Our Mission

<br />
<SubsectionHeader title="Our Mission" />

### Documentation

Expand All @@ -58,3 +54,6 @@ across products and platforms.
### Team Enabling

We prioritize the needs of our teams, ensuring that our design system is accessible to everyone, regardless of their level of expertise. We provide training and support to ensure that our teams have the skills and knowledge they need to use the design system effectively

<br />
<br />
2 changes: 1 addition & 1 deletion docs/guides/BREAKPOINTS.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The breakpoints are used internally in various components to make them responsiv

Showing or hiding is based on the defined breakpoints as well. Our idea is based on the mobile-first principle which it shows how it works below.

## Defined breakpoints
<SubsectionHeader title="Defined breakpoints" />

| Breakpoint | min-width |
| ---------- | --------- |
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import Overview from '../../storybook/Overview';
]}
/>

## Variants
<SubsectionHeader title="Variants" />

### Avatar with icon

Expand Down
3 changes: 1 addition & 2 deletions src/components/Avatar/AvatarStack.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import AvatarStack from './AvatarStack';
import Stack from '../storyUtils/Stack';
import { BASE_SHADE } from '../../theme/palette';
import { FIGMA_URL } from '../../utils/common';
import SectionHeader from '../../storybook/SectionHeader';
import Overview from '../../storybook/Overview';

<Meta
Expand Down Expand Up @@ -61,7 +60,7 @@ import Overview from '../../storybook/Overview';

<Props of={AvatarStack} />

## Variants
<SubsectionHeader title="Variants" />

### Avatar Stack

Expand Down
2 changes: 1 addition & 1 deletion src/components/Box/Box.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import Overview from '../../storybook/Overview';

<Props of={Box} />

## Variants
<SubsectionHeader title="Variants" />

### Box Padding (All sides)

Expand Down
6 changes: 3 additions & 3 deletions src/components/Button/Button.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ import { getIconSelectorKnob } from '../../utils/stories';

<Props of={Button} />

## Variants
<SubsectionHeader title="Variants" />

### Button Types

Expand Down Expand Up @@ -300,10 +300,10 @@ Can be only combined with a right icon, not with a left icon at the same time.
</Story>
</Preview>

### Button Playground
### Playground

<Preview>
<Story name="Button Playground" parameters={{ decorators: [withKnobs] }}>
<Story name="Playground" parameters={{ decorators: [withKnobs] }}>
<Stack isVertical>
<Button
isBlock
Expand Down
2 changes: 1 addition & 1 deletion src/components/DropdownButton/DropdownButton.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import Overview from '../../storybook/Overview';
component.
</Tip>

## Variants
<SubsectionHeader title="Variants" />

### Button with DropdownButton

Expand Down
2 changes: 1 addition & 1 deletion src/components/IconButton/IconButton.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import Overview from '../../storybook/Overview';

<Tip>Upon hovering, it is recommended to always display a label tooltip for an icon button.</Tip>

## Variants
<SubsectionHeader title="Variants" />

### Types

Expand Down
14 changes: 7 additions & 7 deletions src/components/Link/Link.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ import Overview from '../../storybook/Overview';

<Props of={Link} />

## Variants
<SubsectionHeader title="Variants" />

### Style
### Link Styles

<Preview>
<Story name="Style">
<Story name="Link Styles">
<Stack isVertical>
<Link href="#">Primary</Link>
</Stack>
Expand All @@ -84,13 +84,13 @@ import Overview from '../../storybook/Overview';
</Story>
</Preview>

### Placement
### Link Placement

Inline: Used within a body of copy; always with underline text decoration for better discoverability <br/>
Block: Used without a body of copy; without underline text decoration

<Preview>
<Story name="Placement">
<Story name="Link Placement">
<Stack isVertical>
<div>
This is an{' '}
Expand All @@ -110,10 +110,10 @@ Block: Used without a body of copy; without underline text decoration
</Story>
</Preview>

### Sizes
### Link Sizes

<Preview>
<Story name="Sizes">
<Story name="Link Sizes">
<Stack isVertical>
<Link href="#" size={1}>
Size 1
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/stories/List.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const MyComponent = () => {

<Props of={List} />

## Variants
<SubsectionHeader title="Variants" />

### List

Expand Down
2 changes: 1 addition & 1 deletion src/components/List/stories/ListItem.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const MyComponent = () => {

<Props of={ListItem} />

## Variants
<SubsectionHeader title="Variants" />

### List Item Compilations

Expand Down
2 changes: 1 addition & 1 deletion src/components/List/stories/ListItemText.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const MyComponent = () => {

<Props of={ListItemText} />

## Variants
<SubsectionHeader title="Variants" />

### ListItemText normal

Expand Down
2 changes: 1 addition & 1 deletion src/components/List/stories/ListSection.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const MyComponent = () => {

<Props of={ListSection} />

## Variants
<SubsectionHeader title="Variants" />

### Normal ListSection

Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import Button from '../Button';
]}
/>

## Variants
<SubsectionHeader title="Variants" />

### Text Tooltip

Expand Down
4 changes: 1 addition & 3 deletions src/components/Typography/Typography.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ import Overview from '../../storybook/Overview';

<Props of={Typography} />

## Variants

### Variants
<SubsectionHeader title="Variants" />

General use of Typography based on available variants

Expand Down

0 comments on commit ab9b32e

Please sign in to comment.