Skip to content

Commit

Permalink
fix: builtin controls component types
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Dec 19, 2022
1 parent 041922c commit 98d0713
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
4 changes: 2 additions & 2 deletions packages/histoire-controls/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ export const components = {
HstSlider,
HstTextarea,
HstSelect,
HstRadio,
HstJson,
HstColorShades,
HstTokenList,
HstTokenGrid,
HstCopyIcon,
HstRadio,
HstJson,
}

export * from './types'
4 changes: 2 additions & 2 deletions packages/histoire-plugin-svelte/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface Hst {
Button: typeof SvelteComponentTyped
ButtonGroup: typeof SvelteComponentTyped<{
value: string
options: HstControlOption[]
options: (string | HstControlOption)[]
title?: string
}>
Checkbox: typeof SvelteComponentTyped<{
Expand All @@ -69,7 +69,7 @@ export interface Hst {
}>
CheckboxList: typeof SvelteComponentTyped<{
value: string[]
options: HstControlOption[]
options: (string | HstControlOption)[]
title?: string
}>
Text: typeof SvelteComponentTyped<{
Expand Down
36 changes: 20 additions & 16 deletions packages/histoire-plugin-vue/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ import type {
Variant,
} from '@histoire/shared'
import type {
HstButton,
HstButtonGroup,
HstCheckbox,
HstCheckboxList,
HstText,
HstTextarea,
HstNumber,
HstTokenGrid,
HstTokenList,
HstColorShades,
HstSlider,
HstTextarea,
HstSelect,
HstButton,
HstButtonGroup,
HstCheckboxList,
HstRadio,
HstJson,
HstSlider,
HstColorShades,
HstTokenList,
HstTokenGrid,
HstCopyIcon,
} from '@histoire/controls'

// Utils
Expand Down Expand Up @@ -138,18 +140,20 @@ declare module '@vue/runtime-core' {
Story: typeof VueStoryComponent
Variant: typeof VueVariantComponent
// Controls
HstButton: typeof HstButton
HstButtonGroup: typeof HstButtonGroup
HstCheckbox: typeof HstCheckbox
HstCheckboxList: typeof HstCheckboxList
HstText: typeof HstText
HstTextarea: typeof HstTextarea
HstNumber: typeof HstNumber
HstTokenGrid: typeof HstTokenGrid
HstTokenList: typeof HstTokenList
HstColorShades: typeof HstColorShades
HstSlider: typeof HstSlider
HstTextarea: typeof HstTextarea
HstSelect: typeof HstSelect
HstButton: typeof HstButton
HstButtonGroup: typeof HstButtonGroup
HstCheckboxList: typeof HstCheckboxList
HstRadio: typeof HstRadio
HstJson: typeof HstJson
HstSlider: typeof HstSlider
HstColorShades: typeof HstColorShades
HstTokenList: typeof HstTokenList
HstTokenGrid: typeof HstTokenGrid
HstCopyIcon: typeof HstCopyIcon
}
}

0 comments on commit 98d0713

Please sign in to comment.