@appartmint/mint 0.13.2 → 0.13.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 (39) hide show
  1. package/README.md +3 -3
  2. package/dist/css/mint.css.map +1 -1
  3. package/dist/css/mint.min.css.map +1 -1
  4. package/dist/js/imports/components/header.d.ts +122 -122
  5. package/dist/js/imports/enum.d.ts +9 -9
  6. package/dist/js/imports/models/color.d.ts +31 -31
  7. package/dist/js/imports/models/item.d.ts +69 -69
  8. package/dist/js/imports/util/display.d.ts +6 -6
  9. package/dist/js/imports/util/event.d.ts +6 -6
  10. package/dist/js/imports/util/icon.d.ts +28 -28
  11. package/dist/js/imports/util/list.d.ts +12 -12
  12. package/dist/js/imports/util/math.d.ts +13 -13
  13. package/dist/js/imports/util/object.d.ts +58 -58
  14. package/dist/js/imports/util/selectors.d.ts +145 -145
  15. package/dist/js/imports/util/settings.d.ts +52 -52
  16. package/dist/js/imports/util/text.d.ts +16 -16
  17. package/dist/js/imports/util/window.d.ts +6 -6
  18. package/dist/js/index.d.ts +23 -23
  19. package/dist/js/index.js +329 -329
  20. package/dist/js/index.js.map +1 -1
  21. package/dist/js/index.min.js.map +1 -1
  22. package/dist/js/util.d.ts +77 -77
  23. package/dist/js/util.js +150 -150
  24. package/dist/js/util.js.map +1 -1
  25. package/dist/js/util.min.js.map +1 -1
  26. package/package.json +2 -2
  27. package/src/scss/imports/_index.scss +8 -8
  28. package/src/scss/imports/components/_embed.scss +63 -63
  29. package/src/scss/imports/components/_index.scss +7 -7
  30. package/src/scss/imports/global/_icons.scss +6 -6
  31. package/src/scss/imports/util/_index.scss +8 -8
  32. package/src/ts/imports/enum.ts +9 -9
  33. package/src/ts/imports/models/color.ts +96 -96
  34. package/src/ts/imports/util/display.ts +6 -6
  35. package/src/ts/imports/util/event.ts +7 -7
  36. package/src/ts/imports/util/list.ts +19 -19
  37. package/src/ts/imports/util/math.ts +17 -17
  38. package/src/ts/imports/util/window.ts +6 -6
  39. package/src/ts/index.ts +33 -33
@@ -1,59 +1,59 @@
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): Object;
39
- /**
40
- * @alias mintObject.filterKeys
41
- */
42
- static filter(object: any, keys: string[]): Object;
43
- /**
44
- * Filters an object by its keys
45
- * @param object - the object to filter
46
- * @param keys - the keys to keep
47
- * @returns - the filtered object
48
- */
49
- static filterKeys(object: any, keys: string[]): Object;
50
- /**
51
- * Filters an object by its values
52
- * @param object - the object to filter
53
- * @param values - the values to keep
54
- * @returns - the filtered object
55
- */
56
- static filterValues(object: any, values: any[]): Object;
57
- }
58
- 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): Object;
39
+ /**
40
+ * @alias mintObject.filterKeys
41
+ */
42
+ static filter(object: any, keys: string[]): Object;
43
+ /**
44
+ * Filters an object by its keys
45
+ * @param object - the object to filter
46
+ * @param keys - the keys to keep
47
+ * @returns - the filtered object
48
+ */
49
+ static filterKeys(object: any, keys: string[]): Object;
50
+ /**
51
+ * Filters an object by its values
52
+ * @param object - the object to filter
53
+ * @param values - the values to keep
54
+ * @returns - the filtered object
55
+ */
56
+ static filterValues(object: any, values: any[]): Object;
57
+ }
58
+ export default mintObject;
59
59
  //# sourceMappingURL=object.d.ts.map
@@ -1,146 +1,146 @@
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
- * Frequently-used ids
60
- */
61
- static ids: {
62
- [key: string]: string | {
63
- [key: string]: string;
64
- };
65
- };
66
- /**
67
- * Classes
68
- */
69
- static classes: {
70
- [key: string]: string | {
71
- [key: string]: string;
72
- };
73
- };
74
- /**
75
- * Adds the library prefix to the beginning of the provided string
76
- * @param base - the string to be prefixed
77
- * @returns - the provided string prefixed with the library name
78
- */
79
- static prefix(base: string): string;
80
- /**
81
- * Adds two dashes to the beginning of the provided string
82
- * @param base - the string to be prefixed
83
- * @returns - the provided string prefixed with two dashes
84
- */
85
- static cssPrefix(base: string): string;
86
- /**
87
- * Turns the provided string into a CSS variable call
88
- * @param base - the name of the CSS variable to call
89
- * @returns - the CSS variable call for the provided string
90
- */
91
- static cssVar(base: string): string;
92
- /**
93
- * Negates the provided CSS selector
94
- * @param base - the CSS selector to negate
95
- * @returns - the negated CSS selector
96
- */
97
- static neg(base: string): string;
98
- /**
99
- * Generates a class CSS selector
100
- * @param base - the name of the class to generate
101
- * @returns - the generated CSS selector
102
- */
103
- static class(base: string): string;
104
- /**
105
- * Generates an id CSS selector
106
- * @param base - the name of the id to generate
107
- * @returns - the generated CSS selector
108
- */
109
- static id(base: string): string;
110
- /**
111
- * Generates an aria-controls CSS selector
112
- * @param id - the id of the controlled element
113
- * @returns - the generated CSS selector
114
- */
115
- static controls(id?: string | null): string;
116
- /**
117
- * Generates an aria-expanded CSS selector
118
- * @param bool - whether the element is expanded or not
119
- * @returns - the generated CSS selector
120
- */
121
- static expanded(bool?: boolean | null): string;
122
- /**
123
- * Returns the id of the requested element
124
- */
125
- static getId(id?: string): string;
126
- /**
127
- * Returns the class of the requested element
128
- */
129
- static getClass(className?: string, classGroup?: string): string;
130
- /**
131
- * Returns a NodeList of HTMLElements within the given element that are focusable
132
- * @param el - the element whose focusable children will be returned
133
- * @returns - the elements within the given element that are focusable
134
- */
135
- static getFocusables(el?: HTMLElement): HTMLElement[];
136
- /**
137
- * Returns true if an element is focusable and false if not,
138
- * based on styles (i.e. a parent has display: none;)
139
- * NOTE: Still need to determine what other styles may make an element un-focusable
140
- * @param el - the element
141
- * @returns - true if the element is focusable; false if not
142
- */
143
- static isFocusable(el: HTMLElement): boolean;
144
- }
145
- 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
+ * Frequently-used ids
60
+ */
61
+ static ids: {
62
+ [key: string]: string | {
63
+ [key: string]: string;
64
+ };
65
+ };
66
+ /**
67
+ * Classes
68
+ */
69
+ static classes: {
70
+ [key: string]: string | {
71
+ [key: string]: string;
72
+ };
73
+ };
74
+ /**
75
+ * Adds the library prefix to the beginning of the provided string
76
+ * @param base - the string to be prefixed
77
+ * @returns - the provided string prefixed with the library name
78
+ */
79
+ static prefix(base: string): string;
80
+ /**
81
+ * Adds two dashes to the beginning of the provided string
82
+ * @param base - the string to be prefixed
83
+ * @returns - the provided string prefixed with two dashes
84
+ */
85
+ static cssPrefix(base: string): string;
86
+ /**
87
+ * Turns the provided string into a CSS variable call
88
+ * @param base - the name of the CSS variable to call
89
+ * @returns - the CSS variable call for the provided string
90
+ */
91
+ static cssVar(base: string): string;
92
+ /**
93
+ * Negates the provided CSS selector
94
+ * @param base - the CSS selector to negate
95
+ * @returns - the negated CSS selector
96
+ */
97
+ static neg(base: string): string;
98
+ /**
99
+ * Generates a class CSS selector
100
+ * @param base - the name of the class to generate
101
+ * @returns - the generated CSS selector
102
+ */
103
+ static class(base: string): string;
104
+ /**
105
+ * Generates an id CSS selector
106
+ * @param base - the name of the id to generate
107
+ * @returns - the generated CSS selector
108
+ */
109
+ static id(base: string): string;
110
+ /**
111
+ * Generates an aria-controls CSS selector
112
+ * @param id - the id of the controlled element
113
+ * @returns - the generated CSS selector
114
+ */
115
+ static controls(id?: string | null): string;
116
+ /**
117
+ * Generates an aria-expanded CSS selector
118
+ * @param bool - whether the element is expanded or not
119
+ * @returns - the generated CSS selector
120
+ */
121
+ static expanded(bool?: boolean | null): string;
122
+ /**
123
+ * Returns the id of the requested element
124
+ */
125
+ static getId(id?: string): string;
126
+ /**
127
+ * Returns the class of the requested element
128
+ */
129
+ static getClass(className?: string, classGroup?: string): string;
130
+ /**
131
+ * Returns a NodeList of HTMLElements within the given element that are focusable
132
+ * @param el - the element whose focusable children will be returned
133
+ * @returns - the elements within the given element that are focusable
134
+ */
135
+ static getFocusables(el?: HTMLElement): HTMLElement[];
136
+ /**
137
+ * Returns true if an element is focusable and false if not,
138
+ * based on styles (i.e. a parent has display: none;)
139
+ * NOTE: Still need to determine what other styles may make an element un-focusable
140
+ * @param el - the element
141
+ * @returns - true if the element is focusable; false if not
142
+ */
143
+ static isFocusable(el: HTMLElement): boolean;
144
+ }
145
+ export default mintSelectors;
146
146
  //# sourceMappingURL=selectors.d.ts.map
@@ -1,53 +1,53 @@
1
- /**
2
- * Imports
3
- */
4
- import { mintSide } from '../enum';
5
- /**
6
- * Settings management
7
- * @public
8
- */
9
- export declare abstract class mintSettings {
10
- /**
11
- * Value added to all delay variables
12
- */
13
- static delayBase: number;
14
- /**
15
- * Value multiplied by delay variable index
16
- */
17
- static delayStep: number;
18
- /**
19
- * Delay variables
20
- */
21
- static delay: {
22
- [key: string]: number;
23
- };
24
- /**
25
- * Side of the window the mobile navbar enters from
26
- */
27
- static from?: mintSide;
28
- /**
29
- * Whether the navbar is fixed or not
30
- */
31
- static fixed?: boolean;
32
- /**
33
- * Update the provided settings variables
34
- * @param settings - Object of settings variables to update
35
- */
36
- static set(settings: {
37
- [key: string]: any;
38
- }): void;
39
- /**
40
- * Updates the delay variables based on `this.delayBase` and `this.delayStep`
41
- */
42
- protected static setDelay(): void;
43
- /**
44
- * Updates the direction the navbar enters from
45
- */
46
- protected static setFrom(from: mintSide): void;
47
- /**
48
- * Updates whether or not the navbar is fixed
49
- */
50
- protected static setFixed(fixed: boolean): void;
51
- }
52
- export default mintSettings;
1
+ /**
2
+ * Imports
3
+ */
4
+ import { mintSide } from '../enum';
5
+ /**
6
+ * Settings management
7
+ * @public
8
+ */
9
+ export declare abstract class mintSettings {
10
+ /**
11
+ * Value added to all delay variables
12
+ */
13
+ static delayBase: number;
14
+ /**
15
+ * Value multiplied by delay variable index
16
+ */
17
+ static delayStep: number;
18
+ /**
19
+ * Delay variables
20
+ */
21
+ static delay: {
22
+ [key: string]: number;
23
+ };
24
+ /**
25
+ * Side of the window the mobile navbar enters from
26
+ */
27
+ static from?: mintSide;
28
+ /**
29
+ * Whether the navbar is fixed or not
30
+ */
31
+ static fixed?: boolean;
32
+ /**
33
+ * Update the provided settings variables
34
+ * @param settings - Object of settings variables to update
35
+ */
36
+ static set(settings: {
37
+ [key: string]: any;
38
+ }): void;
39
+ /**
40
+ * Updates the delay variables based on `this.delayBase` and `this.delayStep`
41
+ */
42
+ protected static setDelay(): void;
43
+ /**
44
+ * Updates the direction the navbar enters from
45
+ */
46
+ protected static setFrom(from: mintSide): void;
47
+ /**
48
+ * Updates whether or not the navbar is fixed
49
+ */
50
+ protected static setFixed(fixed: boolean): void;
51
+ }
52
+ export default mintSettings;
53
53
  //# sourceMappingURL=settings.d.ts.map
@@ -1,17 +1,17 @@
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
- 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
+ export default mintText;
17
17
  //# 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,24 +1,24 @@
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 { mintText } from './imports/util/text';
20
- export { mintWindow } from './imports/util/window';
21
- export { mintSelectors } from './imports/util/selectors';
22
- export { mintSettings } from './imports/util/settings';
23
- 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 { mintText } from './imports/util/text';
20
+ export { mintWindow } from './imports/util/window';
21
+ export { mintSelectors } from './imports/util/selectors';
22
+ export { mintSettings } from './imports/util/settings';
23
+ export { mintUtil, default } from './util';
24
24
  //# sourceMappingURL=index.d.ts.map