Skip to content

Commit 52df962

Browse files
committed
feat: re-export all types in index.ts
1 parent 634da81 commit 52df962

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"homepage": "https://materializecss.github.io/materialize/",
66
"version": "2.0.2-alpha",
77
"main": "dist/js/materialize.js",
8+
"module": "src/index.ts",
89
"style": "dist/css/materialize.css",
910
"sass": "sass/materialize.scss",
10-
"typings": "dist/src/global.d.ts",
11+
"typings": "dist/src/index.d.ts",
1112
"license": "MIT",
1213
"repository": {
1314
"type": "git",

src/global.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,4 @@ export class M {
111111
M.Tooltip.init(registry.Tooltip, {});
112112
M.FloatingActionButton.init(registry.FloatingActionButton, {});
113113
}
114-
}
115-
116-
export default M;
114+
}

src/index.ts

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
export * from './global';
2+
export { Autocomplete } from './autocomplete';
3+
export { FloatingActionButton } from './buttons';
4+
export { Cards } from './cards';
5+
export { Carousel } from './carousel';
6+
export { CharacterCounter } from './characterCounter';
7+
export { Chips } from './chips';
8+
export { Collapsible } from './collapsible';
9+
export { Datepicker } from './datepicker';
10+
export { Dropdown } from './dropdown';
11+
export { Forms } from './forms';
12+
export { Materialbox } from './materialbox';
13+
export { Modal } from './modal';
14+
export { Parallax } from './parallax';
15+
export { Pushpin } from './pushpin';
16+
export { ScrollSpy } from './scrollspy';
17+
export { FormSelect } from './select';
18+
export { Sidenav } from './sidenav';
19+
export { Slider } from './slider';
20+
export { Tabs } from './tabs';
21+
export { TapTarget } from './tapTarget';
22+
export { Timepicker } from './timepicker';
23+
export { Toast } from './toasts';
24+
export { Tooltip } from './tooltip';
25+
export { Waves } from './waves';
26+
export { Range } from './range';

0 commit comments

Comments
 (0)