Skip to content

Commit

Permalink
feat(Kbd): fix config imports
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 16, 2023
1 parent 686ac70 commit b0e70f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/components/kbd/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import plugin from 'tailwindcss/plugin'
import { defu } from 'defu'
import { type PluginOption, defaultPluginOptions } from '../../options'
import { type KbdPluginConfig, defaultConfig, key } from './kbd.config'
import { type KbdConfig, defaultConfig, key } from './kbd.config'

export default plugin.withOptions(
function (options: PluginOption) {
Expand All @@ -12,7 +12,7 @@ export default plugin.withOptions(
}

return function ({ addComponents, theme }) {
const config = theme(`shurikenUi.${key}`) satisfies KbdPluginConfig
const config = theme(`shurikenUi.${key}`) satisfies KbdConfig

addComponents({
[`.${prefix}kbd`]: {
Expand Down
2 changes: 2 additions & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type { InputPluginConfig } from './plugins/components/input/input.config'
import type { InputFilePluginConfig } from './plugins/components/input-file/input-file.config'
import type { InputFileRegularPluginConfig } from './plugins/components/input-file-regular/input-file-regular.config'
import type { InputNumberPluginConfig } from './plugins/components/input-number/input-number.config'
import type { KbdPluginConfig } from './plugins/components/kbd/kbd.config'
import type { LabelPluginConfig } from './plugins/components/label/label.config'
import type { LinkPluginConfig } from './plugins/components/link/link.config'
import type { ListPluginConfig } from './plugins/components/list/list.config'
Expand Down Expand Up @@ -83,6 +84,7 @@ type ShurikenUIPlugins = AccordionPluginConfig &
InputFilePluginConfig &
InputFileRegularPluginConfig &
InputNumberPluginConfig &
KbdPluginConfig &
LabelPluginConfig &
LinkPluginConfig &
ListPluginConfig &
Expand Down

0 comments on commit b0e70f0

Please sign in to comment.