-
Notifications
You must be signed in to change notification settings - Fork 0
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 #22 from askorama/feature/orm-1581
Feature/ORM-1581
- Loading branch information
Showing
53 changed files
with
1,219 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { StoryObj, Meta } from '@storybook/web-components' | ||
import type { Components } from '@orama/wc-components' | ||
import { spread } from '@open-wc/lit-helpers' | ||
import { html } from 'lit-html' | ||
|
||
const meta: Meta<Components.OramaText> = { | ||
title: 'Components/Internal/Modal', | ||
tags: ['autodocs'], | ||
} satisfies Meta | ||
|
||
export default meta | ||
type Story = StoryObj<Components.OramaModal> | ||
|
||
const Template = (content: string) => (args) => | ||
html` | ||
<orama-modal ${spread(args)}> | ||
<div style="padding: 20px;"> | ||
<orama-text as='h2' styled-as='p' bold>Modal Title</orama-text> | ||
<orama-text>${content}</orama-text> | ||
</div> | ||
</orama-modal> | ||
` | ||
|
||
export const Modal: Story = { | ||
render: Template( | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec elit lacinia tincidunt. Nullam nec purus nec elit lacinia tincidunt.', | ||
), | ||
args: { | ||
open: true, | ||
}, | ||
} |
31 changes: 31 additions & 0 deletions
31
apps/storybook/stories/internal/orama-sliding-panel.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,31 @@ | ||
import type { StoryObj, Meta } from '@storybook/web-components' | ||
import type { Components } from '@orama/wc-components' | ||
import { spread } from '@open-wc/lit-helpers' | ||
import { html } from 'lit-html' | ||
|
||
const meta: Meta<Components.OramaText> = { | ||
title: 'Components/Internal/Sliding Panel', | ||
tags: ['autodocs'], | ||
} satisfies Meta | ||
|
||
export default meta | ||
type Story = StoryObj<Components.OramaSlidingPanel> | ||
|
||
const Template = (content: string) => (args) => | ||
html` | ||
<orama-sliding-panel ${spread(args)}> | ||
<div style="padding: 20px;"> | ||
<orama-text as='h2' styled-as='p' bold>Sliding Panel Title</orama-text> | ||
<orama-text>${content}</orama-text> | ||
</div> | ||
</orama-sliding-panel> | ||
` | ||
|
||
export const Panel: Story = { | ||
render: Template( | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec elit lacinia tincidunt. Nullam nec purus nec elit lacinia tincidunt.', | ||
), | ||
args: { | ||
open: true, | ||
}, | ||
} |
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
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
Oops, something went wrong.