Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### BREAKING CHANGES
- Remove Children API support from Menu component @miroslavstastny ([#111](https://github.com/stardust-ui/react/pull/111))

### Features

- Add Menu `iconOnly`, MenuItem `iconOnly` and `icon` props @miroslavstastny ([#73](https://github.com/stardust-ui/react/pull/73))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const items = [
{ key: 'events', content: 'Upcoming Events' },
]

class MenuExampleShorthand extends React.Component {
render() {
return <Menu defaultActiveIndex={0} items={items} />
}
}
const MenuExample = () => <Menu defaultActiveIndex={0} items={items} />

export default MenuExampleShorthand
export default MenuExample
30 changes: 0 additions & 30 deletions docs/src/examples/components/Menu/Types/MenuExample.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const items = [
{ key: 'events', content: 'Upcoming Events' },
]

class MenuExamplePrimaryShorthand extends React.Component {
render() {
return <Menu defaultActiveIndex={0} items={items} type="primary" />
}
}
const MenuExamplePrimary = () => <Menu defaultActiveIndex={0} items={items} type="primary" />

export default MenuExamplePrimaryShorthand
export default MenuExamplePrimary
39 changes: 0 additions & 39 deletions docs/src/examples/components/Menu/Types/MenuExamplePrimary.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const items = [
{ key: 'events', content: 'Upcoming Events' },
]

class MenuExampleVerticalShorthand extends React.Component {
render() {
return <Menu defaultActiveIndex={0} items={items} vertical />
}
}
const MenuExampleVertical = () => <Menu defaultActiveIndex={0} items={items} vertical />

export default MenuExampleVerticalShorthand
export default MenuExampleVertical
39 changes: 0 additions & 39 deletions docs/src/examples/components/Menu/Types/MenuExampleVertical.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions docs/src/examples/components/Menu/Types/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const Types = () => (
examplePath="components/Menu/Types/MenuExample"
/>
<ComponentExample
title="Default Primary"
description="A menu can point to show its relationship to nearby content."
title="Primary"
description="A menu can adjust its appearance to emphasize its contents."
examplePath="components/Menu/Types/MenuExamplePrimary"
/>
<ComponentExample
title="Vertical Menu"
title="Vertical"
description="A vertical menu displays elements vertically."
examplePath="components/Menu/Types/MenuExampleVertical"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const items = [
{ key: 'events', content: 'Upcoming Events' },
]

class MenuExamplePillsShorthand extends React.Component {
render() {
return <Menu defaultActiveIndex={0} items={items} shape="pills" />
}
}
const MenuExamplePills = () => <Menu defaultActiveIndex={0} items={items} shape="pills" />

export default MenuExamplePillsShorthand
export default MenuExamplePills

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ const items = [
{ key: 'events', content: 'Upcoming Events' },
]

class MenuExamplePillsPrimaryShorthand extends React.Component {
render() {
return <Menu defaultActiveIndex={0} items={items} shape="pills" type="primary" />
}
}
const MenuExamplePillsPrimary = () => (
<Menu defaultActiveIndex={0} items={items} shape="pills" type="primary" />
)

export default MenuExamplePillsPrimaryShorthand
export default MenuExamplePillsPrimary

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ const items = [
{ key: 'events', content: 'Upcoming Events' },
]

class MenuExamplePillsPrimaryVerticalShorthand extends React.Component {
render() {
return <Menu defaultActiveIndex={0} items={items} shape="pills" type="primary" vertical />
}
}
const MenuExamplePillsPrimaryVertical = () => (
<Menu defaultActiveIndex={0} items={items} shape="pills" type="primary" vertical />
)

export default MenuExamplePillsPrimaryVerticalShorthand
export default MenuExamplePillsPrimaryVertical

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ const items = [
{ key: 'events', content: 'Upcoming Events' },
]

class MenuExamplePillsVerticalShorthand extends React.Component {
render() {
return <Menu defaultActiveIndex={0} items={items} shape="pills" vertical />
}
}
const MenuExamplePillsVertical = () => (
<Menu defaultActiveIndex={0} items={items} shape="pills" vertical />
)

export default MenuExamplePillsVerticalShorthand
export default MenuExamplePillsVertical

This file was deleted.

Loading