-
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 #10 from askorama/feature/orm-1501
Feature/ORM-1501
- Loading branch information
Showing
10 changed files
with
127 additions
and
29 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,2 @@ | ||
export const LIGTH_THEME_BG = '#fbfbfb' | ||
export const DARK_THEME_BG = '#050505' |
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 |
---|---|---|
@@ -1,19 +1,51 @@ | ||
import { spread } from '@open-wc/lit-helpers' | ||
import type { StoryObj, Meta } from '@storybook/web-components' | ||
import type { Components } from 'ui-stencil' | ||
import { html } from 'lit-html' | ||
import { DARK_THEME_BG, LIGTH_THEME_BG } from '../constants' | ||
type Story = StoryObj<Components.SearchBox> | ||
|
||
const meta: Meta<Components.SearchBox> = { | ||
title: 'Public/SearchBox', | ||
component: 'search-box', | ||
argTypes: { | ||
colorScheme: { | ||
options: ['light', 'dark', 'system'], | ||
defaultValue: 'light', | ||
control: { type: 'radio' }, | ||
}, | ||
}, | ||
} | ||
export default meta | ||
|
||
// const Template = ({ colorScheme, ...args }, context) => { | ||
// // todo: I'd like to programatically update parameters background value of colorScheme changes and vice versa | ||
// console.log('colorScheme', colorScheme) | ||
// console.log('args', args.themeConfig) | ||
|
||
// return html` | ||
// <search-box ${spread(args)} color-scheme=${colorScheme}></search-box> | ||
// ` | ||
// } | ||
|
||
export const SearchBox: Story = { | ||
// render: Template, | ||
args: { | ||
open: true, | ||
facetProperty: 'category', | ||
resultMap: { | ||
description: 'title', | ||
}, | ||
colorScheme: 'light', | ||
themeConfig: { | ||
colors: { | ||
light: { | ||
'--text-color-primary': 'purple', | ||
}, | ||
dark: { | ||
'--text-color-primary': 'pink', | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
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
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