Skip to content

Commit

Permalink
fix(deps): update export type's deps (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liumingxun authored Sep 13, 2024
1 parent 4015f6f commit 8cb3a67
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion example/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ${
<input type="radio" ${idx === 0 ? 'checked' : ''} name="theme-radios" class="radio theme-controller" value="${theme}"/>
</label>
</div>`,
).join('\n')}
).join('\n')}
</div>
`
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
"peerDependencies": {
"daisyui": "^4.10.2"
},
"dependencies": {
"@catppuccin/palette": "^1.1.1"
},
"devDependencies": {
"@antfu/eslint-config": "^3.0.0",
"@catppuccin/palette": "^1.1.1",
"eslint": "^8.1.1",
"tsup": "^8.0.2",
"typescript": "^5.4.5",
Expand Down
22 changes: 18 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AccentName, FlavorName, MonochromaticName } from '@catppuccin/palette'
import { flavorEntries } from '@catppuccin/palette'
import type { AccentName, FlavorName, MonochromaticName } from '@catppuccin/palette'
import type { CustomTheme } from 'daisyui'

const themeKeys = [
Expand Down Expand Up @@ -100,5 +100,5 @@ function createFlavor(theme: FlavorName, options?: CustomColorOptions | AccentNa
return daisyTheme
}

export type { FlavorName, AccentName, MonochromaticName }
export type { AccentName, FlavorName, MonochromaticName }
export default createFlavor
6 changes: 3 additions & 3 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, expectTypeOf, it } from 'vitest'
import type { CustomTheme } from 'daisyui'
import { flavors } from '@catppuccin/palette'
import themes from 'daisyui/src/theming/themes'
import { describe, expect, expectTypeOf, it } from 'vitest'
import type { FlavorName } from '@catppuccin/palette'
import { flavors } from '@catppuccin/palette'
import type { CustomTheme } from 'daisyui'
import catppuccin from '../src'

describe('daisyui', () => {
Expand Down

0 comments on commit 8cb3a67

Please sign in to comment.