Skip to content

Commit

Permalink
export options typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Applelo committed Feb 12, 2024
1 parent b790613 commit 05a7067
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 219 deletions.
2 changes: 1 addition & 1 deletion docs/guide/marquee.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const drag = new Drag('.c-drag', {
init: true, // [!code focus:6]
initEvents: true,
fill: false,
direction: 'left',
direction: 'right',
behavior: 'scroll',
duration: 1
})
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@compotes/root",
"type": "module",
"version": "0.9.0",
"version": "0.9.1",
"private": "true",
"packageManager": "pnpm@8.15.1",
"description": "Components library focused on accessibility/customization",
Expand Down Expand Up @@ -47,10 +47,10 @@
"eslint": "^8.56.0",
"playwright": "^1.41.2",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vite": "^5.1.1",
"vitepress": "1.0.0-rc.42",
"vitest": "^1.2.2",
"vue": "^3.4.15",
"vue": "^3.4.18",
"vue-tsc": "^1.8.27"
}
}
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "compotes",
"type": "module",
"version": "0.9.0",
"version": "0.9.1",
"packageManager": "pnpm@8.15.1",
"description": "Components library focused on accessibility/customization",
"author": "Applelo",
Expand Down Expand Up @@ -66,11 +66,11 @@
"tabbable": "^6.2.0"
},
"devDependencies": {
"@types/node": "^20.11.16",
"@types/node": "^20.11.17",
"fast-glob": "^3.3.2",
"lightningcss": "^1.23.0",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vite": "^5.1.1",
"vite-plugin-dts": "^3.7.2"
}
}
13 changes: 13 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type { CollapseOptions } from './components/collapse'
import type { DragOptions } from './components/drag'
import type { DrilldownOptions } from './components/drilldown'
import type { DropdownOptions } from './components/dropdown'
import type { MarqueeOptions } from './components/marquee'
import Collapse from './components/collapse'
import Drag from './components/drag'
import Drilldown from './components/drilldown'
Expand All @@ -8,6 +13,14 @@ import.meta.glob(['@css/*.css'], {
eager: true,
})

export type {
CollapseOptions,
DragOptions,
DrilldownOptions,
DropdownOptions,
MarqueeOptions,
}

export {
Collapse,
Drag,
Expand Down
Loading

0 comments on commit 05a7067

Please sign in to comment.