@appartmint/mint 0.15.2 → 0.15.3

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.
Files changed (45) hide show
  1. package/README.md +3 -3
  2. package/dist/css/mint.css +69 -2
  3. package/dist/css/mint.css.map +1 -1
  4. package/dist/css/mint.min.css +1 -1
  5. package/dist/css/mint.min.css.map +1 -1
  6. package/dist/js/imports/components/header.d.ts +124 -124
  7. package/dist/js/imports/enum.d.ts +9 -9
  8. package/dist/js/imports/models/color.d.ts +31 -31
  9. package/dist/js/imports/models/item.d.ts +69 -69
  10. package/dist/js/imports/util/display.d.ts +6 -6
  11. package/dist/js/imports/util/event.d.ts +6 -6
  12. package/dist/js/imports/util/icon.d.ts +28 -28
  13. package/dist/js/imports/util/list.d.ts +22 -22
  14. package/dist/js/imports/util/math.d.ts +13 -13
  15. package/dist/js/imports/util/object.d.ts +73 -73
  16. package/dist/js/imports/util/scroll.d.ts +18 -18
  17. package/dist/js/imports/util/selectors.d.ts +121 -121
  18. package/dist/js/imports/util/settings.d.ts +38 -38
  19. package/dist/js/imports/util/text.d.ts +20 -20
  20. package/dist/js/imports/util/window.d.ts +6 -6
  21. package/dist/js/index.d.ts +24 -24
  22. package/dist/js/index.js +344 -344
  23. package/dist/js/index.js.map +1 -1
  24. package/dist/js/index.min.js.map +1 -1
  25. package/dist/js/util.d.ts +77 -77
  26. package/dist/js/util.js +67 -67
  27. package/dist/js/util.js.map +1 -1
  28. package/dist/js/util.min.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/scss/imports/_index.scss +8 -8
  31. package/src/scss/imports/components/_header.scss +3 -1
  32. package/src/scss/imports/components/_index.scss +7 -7
  33. package/src/scss/imports/global/_icons.scss +6 -6
  34. package/src/scss/imports/global/_index.scss +1 -0
  35. package/src/scss/imports/global/_inputs.scss +62 -0
  36. package/src/scss/imports/global/_structure.scss +8 -2
  37. package/src/scss/imports/global/_themes.scss +4 -0
  38. package/src/scss/imports/util/_index.scss +8 -8
  39. package/src/scss/imports/util/_vars.scss +1 -1
  40. package/src/ts/imports/enum.ts +9 -9
  41. package/src/ts/imports/models/color.ts +96 -96
  42. package/src/ts/imports/util/display.ts +6 -6
  43. package/src/ts/imports/util/event.ts +7 -7
  44. package/src/ts/imports/util/math.ts +17 -17
  45. package/src/ts/imports/util/window.ts +6 -6
@@ -1,74 +1,74 @@
1
- /**
2
- * Object functions for the util library
3
- */
4
- export declare abstract class mintObject {
5
- /**
6
- * Returns true if the provided objects have the same entries
7
- */
8
- static isSimilar(obj1: any, obj2: any): boolean;
9
- /**
10
- * Returns true if the first object has at least the same
11
- * entries as the second object
12
- * @param superset - the object to check
13
- * @param subset - the object whose entries are required
14
- * @returns - true if the first object is a superset of the second
15
- * @recursive
16
- */
17
- static isSuperset(superset: any, subset: any): boolean;
18
- /**
19
- * Removes object entries by key
20
- * @alias mintObject.removeKeys
21
- * @param object - the object to remove entries from
22
- * @param keys - the keys to remove
23
- */
24
- static remove(object: any, keys: string[]): Object;
25
- /**
26
- * Removes object entries by key
27
- * @param object - the object to remove entries from
28
- * @param keys - the keys to remove
29
- */
30
- static removeKeys(object: any, keys: string[]): any;
31
- /**
32
- * Removes object entries by value
33
- */
34
- static removeValues(object: any, values: any[]): any;
35
- /**
36
- * Sorts an object's entries alphabetically by key
37
- */
38
- static sort(object: any, compareFn?: (a: string, b: string) => number): any;
39
- /**
40
- * Sorts an object's entries alphabetically by key
41
- */
42
- static sortKeys(object: any, compareFn?: (a: string, b: string) => number): any;
43
- /**
44
- * Sorts an object's entries alphabetically by value
45
- */
46
- static sortValues(object: any, compareFn: (a: any, b: any) => number): any;
47
- /**
48
- * @alias mintObject.filterKeys
49
- */
50
- static filter(object: any, keys: string[]): Object;
51
- /**
52
- * Filters an object by its keys
53
- * @param object - the object to filter
54
- * @param keys - the keys to keep
55
- * @returns - the filtered object
56
- */
57
- static filterKeys(object: any, keys: string[]): Object;
58
- /**
59
- * Filters an object by its values
60
- * @param object - the object to filter
61
- * @param values - the values to keep
62
- * @returns - the filtered object
63
- */
64
- static filterValues(object: any, values: any[]): Object;
65
- /**
66
- * Update two sets of objects
67
- * @param original - the original object
68
- * @param update - the object to update the original with
69
- * @returns - the original objects with updated data from the update
70
- */
71
- static updateArray(original: any[], update?: any[], key?: string): any;
72
- }
73
- export default mintObject;
1
+ /**
2
+ * Object functions for the util library
3
+ */
4
+ export declare abstract class mintObject {
5
+ /**
6
+ * Returns true if the provided objects have the same entries
7
+ */
8
+ static isSimilar(obj1: any, obj2: any): boolean;
9
+ /**
10
+ * Returns true if the first object has at least the same
11
+ * entries as the second object
12
+ * @param superset - the object to check
13
+ * @param subset - the object whose entries are required
14
+ * @returns - true if the first object is a superset of the second
15
+ * @recursive
16
+ */
17
+ static isSuperset(superset: any, subset: any): boolean;
18
+ /**
19
+ * Removes object entries by key
20
+ * @alias mintObject.removeKeys
21
+ * @param object - the object to remove entries from
22
+ * @param keys - the keys to remove
23
+ */
24
+ static remove(object: any, keys: string[]): Object;
25
+ /**
26
+ * Removes object entries by key
27
+ * @param object - the object to remove entries from
28
+ * @param keys - the keys to remove
29
+ */
30
+ static removeKeys(object: any, keys: string[]): any;
31
+ /**
32
+ * Removes object entries by value
33
+ */
34
+ static removeValues(object: any, values: any[]): any;
35
+ /**
36
+ * Sorts an object's entries alphabetically by key
37
+ */
38
+ static sort(object: any, compareFn?: (a: string, b: string) => number): any;
39
+ /**
40
+ * Sorts an object's entries alphabetically by key
41
+ */
42
+ static sortKeys(object: any, compareFn?: (a: string, b: string) => number): any;
43
+ /**
44
+ * Sorts an object's entries alphabetically by value
45
+ */
46
+ static sortValues(object: any, compareFn: (a: any, b: any) => number): any;
47
+ /**
48
+ * @alias mintObject.filterKeys
49
+ */
50
+ static filter(object: any, keys: string[]): Object;
51
+ /**
52
+ * Filters an object by its keys
53
+ * @param object - the object to filter
54
+ * @param keys - the keys to keep
55
+ * @returns - the filtered object
56
+ */
57
+ static filterKeys(object: any, keys: string[]): Object;
58
+ /**
59
+ * Filters an object by its values
60
+ * @param object - the object to filter
61
+ * @param values - the values to keep
62
+ * @returns - the filtered object
63
+ */
64
+ static filterValues(object: any, values: any[]): Object;
65
+ /**
66
+ * Update two sets of objects
67
+ * @param original - the original object
68
+ * @param update - the object to update the original with
69
+ * @returns - the original objects with updated data from the update
70
+ */
71
+ static updateArray(original: any[], update?: any[], key?: string): any;
72
+ }
73
+ export default mintObject;
74
74
  //# sourceMappingURL=object.d.ts.map
@@ -1,19 +1,19 @@
1
- /**
2
- * Scroll functions
3
- */
4
- export declare abstract class mintScroll {
5
- /**
6
- * Scroll to the top of the page
7
- */
8
- static toTop(): void;
9
- /**
10
- * Scroll to the bottom of the page
11
- */
12
- static toBottom(): void;
13
- /**
14
- * Show visible elements
15
- */
16
- static showElements(): void;
17
- }
18
- export default mintScroll;
1
+ /**
2
+ * Scroll functions
3
+ */
4
+ export declare abstract class mintScroll {
5
+ /**
6
+ * Scroll to the top of the page
7
+ */
8
+ static toTop(): void;
9
+ /**
10
+ * Scroll to the bottom of the page
11
+ */
12
+ static toBottom(): void;
13
+ /**
14
+ * Show visible elements
15
+ */
16
+ static showElements(): void;
17
+ }
18
+ export default mintScroll;
19
19
  //# sourceMappingURL=scroll.d.ts.map
@@ -1,122 +1,122 @@
1
- /**
2
- * CSS-selector helpers
3
- * @public
4
- */
5
- export declare abstract class mintSelectors {
6
- /**
7
- * The library name that will be added as a prefix
8
- */
9
- static lib: string;
10
- /**
11
- * The prefix built from the library name
12
- */
13
- static pre: string;
14
- /**
15
- * CSS-selector for disabled elements
16
- */
17
- static disabled: string;
18
- /**
19
- * CSS-selector for elements with an aria-controls attribute
20
- */
21
- static hasControls: string;
22
- /**
23
- * CSS-selector for elements with an aria-expanded attribute
24
- */
25
- static hasExpanded: string;
26
- /**
27
- * CSS-selector for elements with an href attribute
28
- */
29
- static hasLink: string;
30
- /**
31
- * CSS-selector for elements with a routerLink attribute
32
- */
33
- static hasRouterLink: string;
34
- /**
35
- * CSS-selector for elements with an id attribute
36
- */
37
- static hasId: string;
38
- /**
39
- * CSS-selector for elements that aren't tabbable (i.e. tabindex is negative)
40
- */
41
- static notTabbable: string;
42
- /**
43
- * CSS-selector for elements that are tabbable (i.e. tabindex isn't negative)
44
- */
45
- static tabbable: string;
46
- /**
47
- * CSS-selector for elements that can receive focus
48
- */
49
- static focusable: string;
50
- /**
51
- * CSS-selector for submenu buttons
52
- */
53
- static subMenuButtons: string;
54
- /**
55
- * CSS-selector for submenus
56
- */
57
- static subMenu: string;
58
- /**
59
- * Adds the library prefix to the beginning of the provided string
60
- * @param base - the string to be prefixed
61
- * @returns - the provided string prefixed with the library name
62
- */
63
- static prefix(base: string): string;
64
- /**
65
- * Adds two dashes to the beginning of the provided string
66
- * @param base - the string to be prefixed
67
- * @returns - the provided string prefixed with two dashes
68
- */
69
- static cssPrefix(base: string): string;
70
- /**
71
- * Turns the provided string into a CSS variable call
72
- * @param base - the name of the CSS variable to call
73
- * @returns - the CSS variable call for the provided string
74
- */
75
- static cssVar(base: string): string;
76
- /**
77
- * Negates the provided CSS selector
78
- * @param base - the CSS selector to negate
79
- * @returns - the negated CSS selector
80
- */
81
- static neg(base: string): string;
82
- /**
83
- * Generates a class CSS selector
84
- * @param base - the name of the class to generate
85
- * @returns - the generated CSS selector
86
- */
87
- static class(base: string): string;
88
- /**
89
- * Generates an id CSS selector
90
- * @param base - the name of the id to generate
91
- * @returns - the generated CSS selector
92
- */
93
- static id(base: string): string;
94
- /**
95
- * Generates an aria-controls CSS selector
96
- * @param id - the id of the controlled element
97
- * @returns - the generated CSS selector
98
- */
99
- static controls(id?: string | null): string;
100
- /**
101
- * Generates an aria-expanded CSS selector
102
- * @param bool - whether the element is expanded or not
103
- * @returns - the generated CSS selector
104
- */
105
- static expanded(bool?: boolean | null): string;
106
- /**
107
- * Returns a NodeList of HTMLElements within the given element that are focusable
108
- * @param el - the element whose focusable children will be returned
109
- * @returns - the elements within the given element that are focusable
110
- */
111
- static getFocusables(el?: HTMLElement): HTMLElement[];
112
- /**
113
- * Returns true if an element is focusable and false if not,
114
- * based on styles (i.e. a parent has display: none;)
115
- * NOTE: Still need to determine what other styles may make an element un-focusable
116
- * @param el - the element
117
- * @returns - true if the element is focusable; false if not
118
- */
119
- static isFocusable(el: HTMLElement): boolean;
120
- }
121
- export default mintSelectors;
1
+ /**
2
+ * CSS-selector helpers
3
+ * @public
4
+ */
5
+ export declare abstract class mintSelectors {
6
+ /**
7
+ * The library name that will be added as a prefix
8
+ */
9
+ static lib: string;
10
+ /**
11
+ * The prefix built from the library name
12
+ */
13
+ static pre: string;
14
+ /**
15
+ * CSS-selector for disabled elements
16
+ */
17
+ static disabled: string;
18
+ /**
19
+ * CSS-selector for elements with an aria-controls attribute
20
+ */
21
+ static hasControls: string;
22
+ /**
23
+ * CSS-selector for elements with an aria-expanded attribute
24
+ */
25
+ static hasExpanded: string;
26
+ /**
27
+ * CSS-selector for elements with an href attribute
28
+ */
29
+ static hasLink: string;
30
+ /**
31
+ * CSS-selector for elements with a routerLink attribute
32
+ */
33
+ static hasRouterLink: string;
34
+ /**
35
+ * CSS-selector for elements with an id attribute
36
+ */
37
+ static hasId: string;
38
+ /**
39
+ * CSS-selector for elements that aren't tabbable (i.e. tabindex is negative)
40
+ */
41
+ static notTabbable: string;
42
+ /**
43
+ * CSS-selector for elements that are tabbable (i.e. tabindex isn't negative)
44
+ */
45
+ static tabbable: string;
46
+ /**
47
+ * CSS-selector for elements that can receive focus
48
+ */
49
+ static focusable: string;
50
+ /**
51
+ * CSS-selector for submenu buttons
52
+ */
53
+ static subMenuButtons: string;
54
+ /**
55
+ * CSS-selector for submenus
56
+ */
57
+ static subMenu: string;
58
+ /**
59
+ * Adds the library prefix to the beginning of the provided string
60
+ * @param base - the string to be prefixed
61
+ * @returns - the provided string prefixed with the library name
62
+ */
63
+ static prefix(base: string): string;
64
+ /**
65
+ * Adds two dashes to the beginning of the provided string
66
+ * @param base - the string to be prefixed
67
+ * @returns - the provided string prefixed with two dashes
68
+ */
69
+ static cssPrefix(base: string): string;
70
+ /**
71
+ * Turns the provided string into a CSS variable call
72
+ * @param base - the name of the CSS variable to call
73
+ * @returns - the CSS variable call for the provided string
74
+ */
75
+ static cssVar(base: string): string;
76
+ /**
77
+ * Negates the provided CSS selector
78
+ * @param base - the CSS selector to negate
79
+ * @returns - the negated CSS selector
80
+ */
81
+ static neg(base: string): string;
82
+ /**
83
+ * Generates a class CSS selector
84
+ * @param base - the name of the class to generate
85
+ * @returns - the generated CSS selector
86
+ */
87
+ static class(base: string): string;
88
+ /**
89
+ * Generates an id CSS selector
90
+ * @param base - the name of the id to generate
91
+ * @returns - the generated CSS selector
92
+ */
93
+ static id(base: string): string;
94
+ /**
95
+ * Generates an aria-controls CSS selector
96
+ * @param id - the id of the controlled element
97
+ * @returns - the generated CSS selector
98
+ */
99
+ static controls(id?: string | null): string;
100
+ /**
101
+ * Generates an aria-expanded CSS selector
102
+ * @param bool - whether the element is expanded or not
103
+ * @returns - the generated CSS selector
104
+ */
105
+ static expanded(bool?: boolean | null): string;
106
+ /**
107
+ * Returns a NodeList of HTMLElements within the given element that are focusable
108
+ * @param el - the element whose focusable children will be returned
109
+ * @returns - the elements within the given element that are focusable
110
+ */
111
+ static getFocusables(el?: HTMLElement): HTMLElement[];
112
+ /**
113
+ * Returns true if an element is focusable and false if not,
114
+ * based on styles (i.e. a parent has display: none;)
115
+ * NOTE: Still need to determine what other styles may make an element un-focusable
116
+ * @param el - the element
117
+ * @returns - true if the element is focusable; false if not
118
+ */
119
+ static isFocusable(el: HTMLElement): boolean;
120
+ }
121
+ export default mintSelectors;
122
122
  //# sourceMappingURL=selectors.d.ts.map
@@ -1,39 +1,39 @@
1
- /**
2
- * Settings management
3
- * @public
4
- */
5
- export declare abstract class mintSettings {
6
- /**
7
- * Value added to all delay variables
8
- */
9
- static delayBase: number;
10
- /**
11
- * Value multiplied by delay variable index
12
- */
13
- static delayStep: number;
14
- /**
15
- * Delay variables
16
- */
17
- static delay: {
18
- [key: string]: number;
19
- };
20
- /**
21
- * Breakpoint variables
22
- */
23
- static break: {
24
- [key: string]: number;
25
- };
26
- /**
27
- * Update the provided settings variables
28
- * @param settings - Object of settings variables to update
29
- */
30
- static set(settings: {
31
- [key: string]: any;
32
- }): void;
33
- /**
34
- * Updates the delay variables based on `this.delayBase` and `this.delayStep`
35
- */
36
- protected static setDelay(): void;
37
- }
38
- export default mintSettings;
1
+ /**
2
+ * Settings management
3
+ * @public
4
+ */
5
+ export declare abstract class mintSettings {
6
+ /**
7
+ * Value added to all delay variables
8
+ */
9
+ static delayBase: number;
10
+ /**
11
+ * Value multiplied by delay variable index
12
+ */
13
+ static delayStep: number;
14
+ /**
15
+ * Delay variables
16
+ */
17
+ static delay: {
18
+ [key: string]: number;
19
+ };
20
+ /**
21
+ * Breakpoint variables
22
+ */
23
+ static break: {
24
+ [key: string]: number;
25
+ };
26
+ /**
27
+ * Update the provided settings variables
28
+ * @param settings - Object of settings variables to update
29
+ */
30
+ static set(settings: {
31
+ [key: string]: any;
32
+ }): void;
33
+ /**
34
+ * Updates the delay variables based on `this.delayBase` and `this.delayStep`
35
+ */
36
+ protected static setDelay(): void;
37
+ }
38
+ export default mintSettings;
39
39
  //# sourceMappingURL=settings.d.ts.map
@@ -1,21 +1,21 @@
1
- /**
2
- * Functions for analyzing and manipulating text.
3
- */
4
- export declare abstract class mintText {
5
- /**
6
- * Generate a slug from a string
7
- * @param str - The string to slugify
8
- * @returns The slugified string
9
- */
10
- static slug(str: string): string;
11
- /**
12
- * Pluralize the given word
13
- */
14
- static pluralize(word: string): string;
15
- /**
16
- * Capitalize the first letter of the given word
17
- */
18
- static titleCase(text: string): string;
19
- }
20
- export default mintText;
1
+ /**
2
+ * Functions for analyzing and manipulating text.
3
+ */
4
+ export declare abstract class mintText {
5
+ /**
6
+ * Generate a slug from a string
7
+ * @param str - The string to slugify
8
+ * @returns The slugified string
9
+ */
10
+ static slug(str: string): string;
11
+ /**
12
+ * Pluralize the given word
13
+ */
14
+ static pluralize(word: string): string;
15
+ /**
16
+ * Capitalize the first letter of the given word
17
+ */
18
+ static titleCase(text: string): string;
19
+ }
20
+ export default mintText;
21
21
  //# sourceMappingURL=text.d.ts.map
@@ -1,7 +1,7 @@
1
- /**
2
- * Functions related to the browser window.
3
- */
4
- export declare abstract class mintWindow {
5
- }
6
- export default mintWindow;
1
+ /**
2
+ * Functions related to the browser window.
3
+ */
4
+ export declare abstract class mintWindow {
5
+ }
6
+ export default mintWindow;
7
7
  //# sourceMappingURL=window.d.ts.map
@@ -1,25 +1,25 @@
1
- /**
2
- * A library for building responsive web applications.
3
- *
4
- * @packageDocumentation
5
- */
6
- /**
7
- * Exports
8
- */
9
- export { mintSide } from './imports/enum';
10
- export { mintHeader } from './imports/components/header';
11
- export { mintColor } from './imports/models/color';
12
- export { mintItem } from './imports/models/item';
13
- export { mintDisplay } from './imports/util/display';
14
- export { mintEvent } from './imports/util/event';
15
- export { mintIcon } from './imports/util/icon';
16
- export { mintList } from './imports/util/list';
17
- export { mintMath } from './imports/util/math';
18
- export { mintObject } from './imports/util/object';
19
- export { mintScroll } from './imports/util/scroll';
20
- export { mintText } from './imports/util/text';
21
- export { mintWindow } from './imports/util/window';
22
- export { mintSelectors } from './imports/util/selectors';
23
- export { mintSettings } from './imports/util/settings';
24
- export { mintUtil, default } from './util';
1
+ /**
2
+ * A library for building responsive web applications.
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ /**
7
+ * Exports
8
+ */
9
+ export { mintSide } from './imports/enum';
10
+ export { mintHeader } from './imports/components/header';
11
+ export { mintColor } from './imports/models/color';
12
+ export { mintItem } from './imports/models/item';
13
+ export { mintDisplay } from './imports/util/display';
14
+ export { mintEvent } from './imports/util/event';
15
+ export { mintIcon } from './imports/util/icon';
16
+ export { mintList } from './imports/util/list';
17
+ export { mintMath } from './imports/util/math';
18
+ export { mintObject } from './imports/util/object';
19
+ export { mintScroll } from './imports/util/scroll';
20
+ export { mintText } from './imports/util/text';
21
+ export { mintWindow } from './imports/util/window';
22
+ export { mintSelectors } from './imports/util/selectors';
23
+ export { mintSettings } from './imports/util/settings';
24
+ export { mintUtil, default } from './util';
25
25
  //# sourceMappingURL=index.d.ts.map