mithril-materialized 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
- import { FactoryComponent, Attributes, Vnode } from 'mithril';
2
- export interface IInternalPaginationOption extends IPaginationOption {
3
- active?: boolean;
4
- title: number | Vnode<any, any>;
5
- }
6
- export interface IPaginationOption extends Attributes {
7
- href: string;
8
- disabled?: boolean;
9
- }
10
- export interface IPaginationOptions extends Attributes {
11
- /**
12
- * How many items do we show
13
- * @default 9 or items.length, whatever is the smallest
14
- */
15
- size?: number;
16
- /** The active page index */
17
- curPage?: number;
18
- items: IPaginationOption[];
19
- }
20
- export declare const Pagination: FactoryComponent<IPaginationOptions>;
1
+ import { FactoryComponent, Attributes, Vnode } from 'mithril';
2
+ export interface IInternalPaginationOption extends IPaginationOption {
3
+ active?: boolean;
4
+ title: number | Vnode<any, any>;
5
+ }
6
+ export interface IPaginationOption extends Attributes {
7
+ href: string;
8
+ disabled?: boolean;
9
+ }
10
+ export interface IPaginationOptions extends Attributes {
11
+ /**
12
+ * How many items do we show
13
+ * @default 9 or items.length, whatever is the smallest
14
+ */
15
+ size?: number;
16
+ /** The active page index */
17
+ curPage?: number;
18
+ items: IPaginationOption[];
19
+ }
20
+ export declare const Pagination: FactoryComponent<IPaginationOptions>;
@@ -1,13 +1,13 @@
1
- /// <reference types="materialize-css" />
2
- import { FactoryComponent, Attributes } from 'mithril';
3
- export interface IParallax extends Partial<M.ParallaxOptions>, Attributes {
4
- /** Image source */
5
- src: string;
6
- }
7
- /**
8
- * Parallax component:
9
- * Parallax is an effect where the background content or image in this case,
10
- * is moved at a different speed than the foreground content while scrolling.
11
- * @see https://materializecss.com/parallax.html
12
- */
13
- export declare const Parallax: FactoryComponent<IParallax>;
1
+ /// <reference types="materialize-css" />
2
+ import { FactoryComponent, Attributes } from 'mithril';
3
+ export interface IParallax extends Partial<M.ParallaxOptions>, Attributes {
4
+ /** Image source */
5
+ src: string;
6
+ }
7
+ /**
8
+ * Parallax component:
9
+ * Parallax is an effect where the background content or image in this case,
10
+ * is moved at a different speed than the foreground content while scrolling.
11
+ * @see https://materializecss.com/parallax.html
12
+ */
13
+ export declare const Parallax: FactoryComponent<IParallax>;
package/dist/pickers.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- /// <reference types="materialize-css" />
2
- /// <reference types="materialize-css" />
3
- import { FactoryComponent } from 'mithril';
4
- import { IInputOptions } from './input-options';
5
- /** Component to pick a date */
6
- export declare const DatePicker: FactoryComponent<IInputOptions<Date> & Partial<M.DatepickerOptions>>;
7
- /** Component to pick a time */
8
- export declare const TimePicker: FactoryComponent<IInputOptions & Partial<M.TimepickerOptions>>;
1
+ /// <reference types="materialize-css" />
2
+ /// <reference types="materialize-css" />
3
+ import { FactoryComponent } from 'mithril';
4
+ import { IInputOptions } from './input-options';
5
+ /** Component to pick a date */
6
+ export declare const DatePicker: FactoryComponent<IInputOptions<Date> & Partial<M.DatepickerOptions>>;
7
+ /** Component to pick a time */
8
+ export declare const TimePicker: FactoryComponent<IInputOptions & Partial<M.TimepickerOptions>>;
package/dist/radio.d.ts CHANGED
@@ -1,37 +1,37 @@
1
- import m, { Attributes, Component } from 'mithril';
2
- import { IInputOption } from './option';
3
- export interface IRadioButtons<T extends string | number> extends Attributes {
4
- /** Element ID */
5
- id?: string;
6
- /** Optional title or label */
7
- label?: string;
8
- /** The options that you have */
9
- options: IInputOption<T>[];
10
- /** Event handler that is called when an option is changed */
11
- onchange: (id: T) => void;
12
- /** Selected id (in oninit lifecycle) */
13
- initialValue?: T;
14
- /** Selected id (in oninit and onupdate lifecycle) */
15
- checkedId?: T;
16
- /** Optional description */
17
- description?: string;
18
- /** If true, start on a new row */
19
- newRow?: boolean;
20
- /** If true, add a mandatory '*' after the label */
21
- isMandatory?: boolean;
22
- /** Optional CSS that is added to the input checkbox, e.g. if you add col s4, the items will be put inline */
23
- checkboxClass?: string;
24
- /** Disable the button */
25
- disabled?: boolean;
26
- }
27
- export interface IRadioButton<T extends string | number> extends Attributes {
28
- id: T;
29
- checked?: boolean;
30
- onchange: (id: T) => void;
31
- label: string;
32
- groupId: string;
33
- disabled?: boolean;
34
- }
35
- export declare const RadioButton: <T extends string | number>() => m.Component<IRadioButton<T>, {}>;
36
- /** Component to show a list of radio buttons, from which you can choose one. */
37
- export declare const RadioButtons: <T extends string | number>() => m.Component<IRadioButtons<T>, {}>;
1
+ import m, { Attributes, Component } from 'mithril';
2
+ import { IInputOption } from './option';
3
+ export interface IRadioButtons<T extends string | number> extends Attributes {
4
+ /** Element ID */
5
+ id?: string;
6
+ /** Optional title or label */
7
+ label?: string;
8
+ /** The options that you have */
9
+ options: IInputOption<T>[];
10
+ /** Event handler that is called when an option is changed */
11
+ onchange: (id: T) => void;
12
+ /** Selected id (in oninit lifecycle) */
13
+ initialValue?: T;
14
+ /** Selected id (in oninit and onupdate lifecycle) */
15
+ checkedId?: T;
16
+ /** Optional description */
17
+ description?: string;
18
+ /** If true, start on a new row */
19
+ newRow?: boolean;
20
+ /** If true, add a mandatory '*' after the label */
21
+ isMandatory?: boolean;
22
+ /** Optional CSS that is added to the input checkbox, e.g. if you add col s4, the items will be put inline */
23
+ checkboxClass?: string;
24
+ /** Disable the button */
25
+ disabled?: boolean;
26
+ }
27
+ export interface IRadioButton<T extends string | number> extends Attributes {
28
+ id: T;
29
+ checked?: boolean;
30
+ onchange: (id: T) => void;
31
+ label: string;
32
+ groupId: string;
33
+ disabled?: boolean;
34
+ }
35
+ export declare const RadioButton: <T extends string | number>() => m.Component<IRadioButton<T>, {}>;
36
+ /** Component to show a list of radio buttons, from which you can choose one. */
37
+ export declare const RadioButtons: <T extends string | number>() => m.Component<IRadioButtons<T>, {}>;
package/dist/select.d.ts CHANGED
@@ -1,45 +1,47 @@
1
- /// <reference types="materialize-css" />
2
- import m, { Attributes, Component } from 'mithril';
3
- import { IInputOption } from './option';
4
- export interface ISelectOptions<T extends string | number> extends Attributes, Partial<M.FormSelectOptions> {
5
- /** Options to select from */
6
- options: IInputOption<T>[];
7
- /** Called when the value is changed, either contains a single or all selected (checked) ids */
8
- onchange: (checkedIds: T[]) => void;
9
- /**
10
- * Selected id or ids (in case of multiple options). Processed in the oninit and onupdate lifecycle.
11
- * When the checkedId property changes (using a shallow compare), the selections are updated accordingly.
12
- */
13
- checkedId?: T | T[];
14
- /** Selected id or ids (in case of multiple options). Only processed in the oninit lifecycle. */
15
- initialValue?: T | T[];
16
- /** Select a single option or multiple options */
17
- multiple?: boolean;
18
- /** Optional label. */
19
- label?: string;
20
- /** Optional ID. */
21
- id?: string;
22
- /** Unique key for use of the element in an array. */
23
- key?: string | number;
24
- /** Add a a placeholder to the input field. */
25
- placeholder?: string;
26
- /** Add a description underneath the input field. */
27
- helperText?: string;
28
- /** Uses Materialize icons as a prefix or postfix. */
29
- iconName?: string;
30
- /** Sets the input field to disabled. */
31
- disabled?: boolean;
32
- /** Optional style information. */
33
- style?: string;
34
- /** If true, break to a new row */
35
- newRow?: boolean;
36
- /**
37
- * If true, add a mandatory * after the label (if any),
38
- * and add the required and aria-required attributes to the input element.
39
- */
40
- isMandatory?: boolean;
41
- /** Add the required and aria-required attributes to the input element */
42
- required?: boolean;
43
- }
44
- /** Component to select from a list of values in a dropdowns */
45
- export declare const Select: <T extends string | number>() => m.Component<ISelectOptions<T>, {}>;
1
+ /// <reference types="materialize-css" />
2
+ import m, { Attributes, Component } from 'mithril';
3
+ import { IInputOption } from './option';
4
+ export interface ISelectOptions<T extends string | number> extends Attributes, Partial<M.FormSelectOptions> {
5
+ /** Options to select from */
6
+ options: IInputOption<T>[];
7
+ /** Called when the value is changed, either contains a single or all selected (checked) ids */
8
+ onchange: (checkedIds: T[]) => void;
9
+ /**
10
+ * Selected id or ids (in case of multiple options). Processed in the oninit and onupdate lifecycle.
11
+ * When the checkedId property changes (using a shallow compare), the selections are updated accordingly.
12
+ */
13
+ checkedId?: T | T[];
14
+ /** Selected id or ids (in case of multiple options). Only processed in the oninit lifecycle. */
15
+ initialValue?: T | T[];
16
+ /** Select a single option or multiple options */
17
+ multiple?: boolean;
18
+ /** Optional label. */
19
+ label?: string;
20
+ /** Optional ID. */
21
+ id?: string;
22
+ /** Unique key for use of the element in an array. */
23
+ key?: string | number;
24
+ /** Add a a placeholder to the input field. */
25
+ placeholder?: string;
26
+ /** Add a description underneath the input field. */
27
+ helperText?: string;
28
+ /** Uses Materialize icons as a prefix or postfix. */
29
+ iconName?: string;
30
+ /** Sets the input field to disabled. */
31
+ disabled?: boolean;
32
+ /** Optional style information. */
33
+ style?: string;
34
+ /** If true, break to a new row */
35
+ newRow?: boolean;
36
+ /**
37
+ * If true, add a mandatory * after the label (if any),
38
+ * and add the required and aria-required attributes to the input element.
39
+ */
40
+ isMandatory?: boolean;
41
+ /** Add the required and aria-required attributes to the input element */
42
+ required?: boolean;
43
+ /** Enable the clear icon */
44
+ showClearButton?: boolean;
45
+ }
46
+ /** Component to select from a list of values in a dropdowns */
47
+ export declare const Select: <T extends string | number>() => m.Component<ISelectOptions<T>, {}>;
package/dist/switch.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { FactoryComponent } from 'mithril';
2
- import { IInputOptions } from './input-options';
3
- import './styles/switch.css';
4
- export interface ISwitchOptions extends Partial<IInputOptions<boolean>> {
5
- /** Left text label */
6
- left?: string;
7
- /** Right text label */
8
- right?: string;
9
- /** If checked is true, the switch is set in the right position. */
10
- checked?: boolean;
11
- }
12
- /** Component to display a switch with two values. */
13
- export declare const Switch: FactoryComponent<ISwitchOptions>;
1
+ import { FactoryComponent } from 'mithril';
2
+ import { IInputOptions } from './input-options';
3
+ import './styles/switch.css';
4
+ export interface ISwitchOptions extends Partial<IInputOptions<boolean>> {
5
+ /** Left text label */
6
+ left?: string;
7
+ /** Right text label */
8
+ right?: string;
9
+ /** If checked is true, the switch is set in the right position. */
10
+ checked?: boolean;
11
+ }
12
+ /** Component to display a switch with two values. */
13
+ export declare const Switch: FactoryComponent<ISwitchOptions>;
package/dist/tabs.d.ts CHANGED
@@ -1,45 +1,45 @@
1
- /// <reference types="materialize-css" />
2
- import { Vnode, FactoryComponent, Attributes } from 'mithril';
3
- /**
4
- * Link or anchor target may take 4 values:
5
- * - _blank: Opens the linked document in a new window or tab
6
- * - _self: Opens the linked document in the same frame as it was clicked (this is default)
7
- * - _parent: Opens the linked document in the parent frame
8
- * - _top: Opens the linked document in the full body of the window
9
- */
10
- export declare type AnchorTarget = '_blank' | '_self' | '_parent' | '_top';
11
- export interface ITabItem {
12
- /** Title of the tab */
13
- title: string;
14
- /** Vnode to render: may be empty in case of a using the tab as a hyperlink. */
15
- vnode?: Vnode<any, any>;
16
- /** ID of the tab element. Default the title in lowercase */
17
- id?: string;
18
- /** If the tab should be active */
19
- active?: boolean;
20
- /** If the tab should be disabled */
21
- disabled?: boolean;
22
- /** CSS class for the tab (li), default `.tab.col.s3` */
23
- className?: string;
24
- /** CSS class for the content (li), default `.tab.col.s3` */
25
- contentClass?: string;
26
- /**
27
- * By default, Materialize tabs will ignore their default anchor behaviour.
28
- * To force a tab to behave as a regular hyperlink, just specify the target property of that link.
29
- */
30
- target?: AnchorTarget;
31
- /** Only used in combination with a set target to make the tab act as a regular hyperlink. */
32
- href?: string;
33
- }
34
- export interface ITabs extends Partial<M.TabsOptions>, Attributes {
35
- /** Selected tab id */
36
- selectedTabId?: string;
37
- /**
38
- * Tab width, can be `auto` to use the width of the title,
39
- * `fill` to use all availabe space, or `fixed` to use a column size.
40
- */
41
- tabWidth?: 'auto' | 'fixed' | 'fill';
42
- /** List of tab items */
43
- tabs: ITabItem[];
44
- }
45
- export declare const Tabs: FactoryComponent<ITabs>;
1
+ /// <reference types="materialize-css" />
2
+ import { Vnode, FactoryComponent, Attributes } from 'mithril';
3
+ /**
4
+ * Link or anchor target may take 4 values:
5
+ * - _blank: Opens the linked document in a new window or tab
6
+ * - _self: Opens the linked document in the same frame as it was clicked (this is default)
7
+ * - _parent: Opens the linked document in the parent frame
8
+ * - _top: Opens the linked document in the full body of the window
9
+ */
10
+ export type AnchorTarget = '_blank' | '_self' | '_parent' | '_top';
11
+ export interface ITabItem {
12
+ /** Title of the tab */
13
+ title: string;
14
+ /** Vnode to render: may be empty in case of a using the tab as a hyperlink. */
15
+ vnode?: Vnode<any, any>;
16
+ /** ID of the tab element. Default the title in lowercase */
17
+ id?: string;
18
+ /** If the tab should be active */
19
+ active?: boolean;
20
+ /** If the tab should be disabled */
21
+ disabled?: boolean;
22
+ /** CSS class for the tab (li), default `.tab.col.s3` */
23
+ className?: string;
24
+ /** CSS class for the content (li), default `.tab.col.s3` */
25
+ contentClass?: string;
26
+ /**
27
+ * By default, Materialize tabs will ignore their default anchor behaviour.
28
+ * To force a tab to behave as a regular hyperlink, just specify the target property of that link.
29
+ */
30
+ target?: AnchorTarget;
31
+ /** Only used in combination with a set target to make the tab act as a regular hyperlink. */
32
+ href?: string;
33
+ }
34
+ export interface ITabs extends Partial<M.TabsOptions>, Attributes {
35
+ /** Selected tab id */
36
+ selectedTabId?: string;
37
+ /**
38
+ * Tab width, can be `auto` to use the width of the title,
39
+ * `fill` to use all availabe space, or `fixed` to use a column size.
40
+ */
41
+ tabWidth?: 'auto' | 'fixed' | 'fill';
42
+ /** List of tab items */
43
+ tabs: ITabItem[];
44
+ }
45
+ export declare const Tabs: FactoryComponent<ITabs>;
@@ -1,24 +1,24 @@
1
- import { Vnode, FactoryComponent, Attributes } from 'mithril';
2
- import './styles/timeline.css';
3
- export interface ITimelineItem {
4
- id?: string;
5
- title?: Vnode<any, any> | string;
6
- datetime: Date;
7
- iconName?: string;
8
- active?: boolean;
9
- content?: Vnode<any, any> | string;
10
- }
11
- export interface ITimeline extends Attributes {
12
- items: ITimelineItem[];
13
- /** When an item is selected, call this function */
14
- onSelect?: (ti: ITimelineItem) => void;
15
- /** Formatter for the dates, @default date/month/year in UTC */
16
- dateFormatter?: (d: Date) => string;
17
- /** Formatter for the time @default HH:mm in UTC */
18
- timeFormatter?: (d: Date) => string;
19
- }
20
- /**
21
- * A timeline component to generate a simple vertical timeline based on Codrops' Vertical Timeline.
22
- * @see https://tympanus.net/codrops/2013/05/02/vertical-timeline/
23
- */
24
- export declare const Timeline: FactoryComponent<ITimeline>;
1
+ import { Vnode, FactoryComponent, Attributes } from 'mithril';
2
+ import './styles/timeline.css';
3
+ export interface ITimelineItem {
4
+ id?: string;
5
+ title?: Vnode<any, any> | string;
6
+ datetime: Date;
7
+ iconName?: string;
8
+ active?: boolean;
9
+ content?: Vnode<any, any> | string;
10
+ }
11
+ export interface ITimeline extends Attributes {
12
+ items: ITimelineItem[];
13
+ /** When an item is selected, call this function */
14
+ onSelect?: (ti: ITimelineItem) => void;
15
+ /** Formatter for the dates, @default date/month/year in UTC */
16
+ dateFormatter?: (d: Date) => string;
17
+ /** Formatter for the time @default HH:mm in UTC */
18
+ timeFormatter?: (d: Date) => string;
19
+ }
20
+ /**
21
+ * A timeline component to generate a simple vertical timeline based on Codrops' Vertical Timeline.
22
+ * @see https://tympanus.net/codrops/2013/05/02/vertical-timeline/
23
+ */
24
+ export declare const Timeline: FactoryComponent<ITimeline>;
package/dist/utils.d.ts CHANGED
@@ -1,70 +1,70 @@
1
- import { IInputOptions } from './input-options';
2
- /**
3
- * Create a unique ID
4
- * @see https://stackoverflow.com/a/2117523/319711
5
- *
6
- * @returns id followed by 8 hexadecimal characters.
7
- */
8
- export declare const uniqueId: () => string;
9
- /**
10
- * Create a GUID
11
- * @see https://stackoverflow.com/a/2117523/319711
12
- *
13
- * @returns RFC4122 version 4 compliant GUID
14
- */
15
- export declare const uuid4: () => string;
16
- export declare const compose: <F extends (d: any) => any, T>(...functions: F[]) => (data: T) => T;
17
- export declare const map: <T>(f: (...args: any[]) => any) => (x: T[]) => unknown[];
18
- export declare const join: <T>(seperator: string) => (list: T[]) => string;
19
- /**
20
- * Convert camel case to snake case.
21
- *
22
- * @param {string} cc: Camel case string
23
- */
24
- export declare const camelToSnake: (cc: string) => string;
25
- /** Convert an object to a string of HTML attributes */
26
- export declare const toAttributeString: <T extends {
27
- [key: string]: any;
28
- }>(x?: T | undefined) => "" | T;
29
- /** Add the disabled attribute when required */
30
- export declare const disable: ({ disabled }: {
31
- disabled?: boolean | undefined;
32
- }) => "" | "[disabled]";
33
- /** Add the required and aria-required attribute when required */
34
- export declare const req: ({ required, isMandatory }: {
35
- required?: boolean | undefined;
36
- isMandatory?: boolean | undefined;
37
- }) => "" | "[required][aria-required=true]";
38
- /** Convert input options to a set of input attributes */
39
- export declare const toAttrs: <T>(o: IInputOptions<T>) => string;
40
- /** Check if a string or number is numeric. @see https://stackoverflow.com/a/9716488/319711 */
41
- export declare const isNumeric: (n: string | number) => boolean;
42
- export declare const pipe: (...fncs: ((x: any) => any)[]) => <T>(x: T) => T;
43
- /**
44
- * Pad left, default width 2 with a '0'
45
- *
46
- * @see http://stackoverflow.com/a/10073788/319711
47
- * @param {(string | number)} n
48
- * @param {number} [width=2]
49
- * @param {string} [z='0']
50
- * @returns
51
- */
52
- export declare const padLeft: (n: string | number, width?: number, z?: string) => string;
53
- /**
54
- * Swap two elements at index i and j.
55
- * Mutates the original array.
56
- *
57
- * @param arr array of items
58
- * @param i from index
59
- * @param j to index
60
- */
61
- export declare const swap: <T>(arr: T[], i: number, j: number) => void;
62
- /**
63
- * Move an element at index i to index j.
64
- * Mutates the original array.
65
- *
66
- * @param arr array of items
67
- * @param i from index
68
- * @param j to index
69
- */
70
- export declare const move: <T>(arr: T[], i: number, j: number) => void;
1
+ import { IInputOptions } from './input-options';
2
+ /**
3
+ * Create a unique ID
4
+ * @see https://stackoverflow.com/a/2117523/319711
5
+ *
6
+ * @returns id followed by 8 hexadecimal characters.
7
+ */
8
+ export declare const uniqueId: () => string;
9
+ /**
10
+ * Create a GUID
11
+ * @see https://stackoverflow.com/a/2117523/319711
12
+ *
13
+ * @returns RFC4122 version 4 compliant GUID
14
+ */
15
+ export declare const uuid4: () => string;
16
+ export declare const compose: <F extends (d: any) => any, T>(...functions: F[]) => (data: T) => T;
17
+ export declare const map: <T>(f: (...args: any[]) => any) => (x: T[]) => unknown[];
18
+ export declare const join: <T>(seperator: string) => (list: T[]) => string;
19
+ /**
20
+ * Convert camel case to snake case.
21
+ *
22
+ * @param {string} cc: Camel case string
23
+ */
24
+ export declare const camelToSnake: (cc: string) => string;
25
+ /** Convert an object to a string of HTML attributes */
26
+ export declare const toAttributeString: <T extends {
27
+ [key: string]: any;
28
+ }>(x?: T | undefined) => "" | T;
29
+ /** Add the disabled attribute when required */
30
+ export declare const disable: ({ disabled }: {
31
+ disabled?: boolean | undefined;
32
+ }) => "" | "[disabled]";
33
+ /** Add the required and aria-required attribute when required */
34
+ export declare const req: ({ required, isMandatory }: {
35
+ required?: boolean | undefined;
36
+ isMandatory?: boolean | undefined;
37
+ }) => "" | "[required][aria-required=true]";
38
+ /** Convert input options to a set of input attributes */
39
+ export declare const toAttrs: <T>(o: IInputOptions<T>) => string;
40
+ /** Check if a string or number is numeric. @see https://stackoverflow.com/a/9716488/319711 */
41
+ export declare const isNumeric: (n: string | number) => boolean;
42
+ export declare const pipe: (...fncs: ((x: any) => any)[]) => <T>(x: T) => T;
43
+ /**
44
+ * Pad left, default width 2 with a '0'
45
+ *
46
+ * @see http://stackoverflow.com/a/10073788/319711
47
+ * @param {(string | number)} n
48
+ * @param {number} [width=2]
49
+ * @param {string} [z='0']
50
+ * @returns
51
+ */
52
+ export declare const padLeft: (n: string | number, width?: number, z?: string) => string;
53
+ /**
54
+ * Swap two elements at index i and j.
55
+ * Mutates the original array.
56
+ *
57
+ * @param arr array of items
58
+ * @param i from index
59
+ * @param j to index
60
+ */
61
+ export declare const swap: <T>(arr: T[], i: number, j: number) => void;
62
+ /**
63
+ * Move an element at index i to index j.
64
+ * Mutates the original array.
65
+ *
66
+ * @param arr array of items
67
+ * @param i from index
68
+ * @param j to index
69
+ */
70
+ export declare const move: <T>(arr: T[], i: number, j: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mithril-materialized",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A materialize library for mithril.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -11,7 +11,7 @@
11
11
  "unpkg": "dist/index.umd.js",
12
12
  "types": "dist/index.d.ts",
13
13
  "scripts": {
14
- "build": "microbundle ./src/index.ts",
14
+ "build": "microbundle build ./src/index.ts",
15
15
  "dev": "microbundle watch ./src/index.ts",
16
16
  "start": "npm run dev",
17
17
  "clean": "rimraf dist node_modules/.cache",
@@ -39,12 +39,12 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/materialize-css": "^1.0.11",
42
- "@types/mithril": "^2.0.11",
42
+ "@types/mithril": "^2.0.14",
43
43
  "js-yaml": "^4.1.0",
44
- "microbundle": "^0.15.0",
45
- "rimraf": "^3.0.2",
46
- "tslib": "^2.4.0",
47
- "typedoc": "^0.22.18",
48
- "typescript": "^4.7.4"
44
+ "microbundle": "^0.15.1",
45
+ "rimraf": "^5.0.1",
46
+ "tslib": "^2.6.2",
47
+ "typedoc": "^0.25.1",
48
+ "typescript": "^5.2.2"
49
49
  }
50
50
  }