@appartmint/mint 1.3.1 → 1.3.2
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.
- package/README.md +3 -3
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/dist/js/imports/components/header.d.ts +124 -124
- package/dist/js/imports/components/index.d.ts +4 -4
- package/dist/js/imports/enums/index.d.ts +4 -4
- package/dist/js/imports/enums/side.d.ts +9 -9
- package/dist/js/imports/index.d.ts +7 -7
- package/dist/js/imports/models/color.d.ts +31 -31
- package/dist/js/imports/models/file.d.ts +20 -20
- package/dist/js/imports/models/index.d.ts +9 -9
- package/dist/js/imports/models/item.d.ts +74 -74
- package/dist/js/imports/models/minify.d.ts +11 -11
- package/dist/js/imports/models/page.d.ts +17 -17
- package/dist/js/imports/models/recaptcha.d.ts +8 -8
- package/dist/js/imports/util/async.d.ts +10 -10
- package/dist/js/imports/util/display.d.ts +24 -24
- package/dist/js/imports/util/event.d.ts +40 -40
- package/dist/js/imports/util/icon.d.ts +28 -28
- package/dist/js/imports/util/index.d.ts +15 -15
- package/dist/js/imports/util/list.d.ts +22 -22
- package/dist/js/imports/util/math.d.ts +13 -13
- package/dist/js/imports/util/object.d.ts +82 -82
- package/dist/js/imports/util/scroll.d.ts +22 -22
- package/dist/js/imports/util/selectors.d.ts +121 -121
- package/dist/js/imports/util/settings.d.ts +38 -38
- package/dist/js/imports/util/text.d.ts +45 -45
- package/dist/js/imports/util/window.d.ts +11 -11
- package/dist/js/index.d.ts +9 -9
- package/dist/js/index.js +362 -362
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/package.json +2 -2
- package/src/scss/imports/global/_icons.scss +6 -6
|
@@ -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,46 +1,46 @@
|
|
|
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 text - The string to slugify
|
|
8
|
-
* @returns The slugified string
|
|
9
|
-
*/
|
|
10
|
-
static slug(text?: string): string;
|
|
11
|
-
/**
|
|
12
|
-
* Generate a title from a slug
|
|
13
|
-
* @param slug - The slug to generate a title from
|
|
14
|
-
* @returns The title
|
|
15
|
-
*/
|
|
16
|
-
static unslug(slug: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* Format a phone number
|
|
19
|
-
* @param phone - The phone number to format
|
|
20
|
-
* @returns The formatted phone number
|
|
21
|
-
*/
|
|
22
|
-
static phone(phone?: string | number): string;
|
|
23
|
-
/**
|
|
24
|
-
* Pluralize the given word
|
|
25
|
-
*/
|
|
26
|
-
static plural(word: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* Capitalize the first letter of the given word
|
|
29
|
-
*/
|
|
30
|
-
static titleCase(text: string): string;
|
|
31
|
-
/**
|
|
32
|
-
* Copies the provided text to the clipboard
|
|
33
|
-
* @param text - the text to copy
|
|
34
|
-
* @returns - true if the text was successfully copied to the clipboard; else false
|
|
35
|
-
*/
|
|
36
|
-
static copyText(text: string): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Tests the validity of an email address
|
|
39
|
-
* @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}
|
|
40
|
-
* @param text - the string to test
|
|
41
|
-
* @returns - true if the given string is an email address; false if not
|
|
42
|
-
*/
|
|
43
|
-
static isEmail(text: string): boolean;
|
|
44
|
-
}
|
|
45
|
-
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 text - The string to slugify
|
|
8
|
+
* @returns The slugified string
|
|
9
|
+
*/
|
|
10
|
+
static slug(text?: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Generate a title from a slug
|
|
13
|
+
* @param slug - The slug to generate a title from
|
|
14
|
+
* @returns The title
|
|
15
|
+
*/
|
|
16
|
+
static unslug(slug: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Format a phone number
|
|
19
|
+
* @param phone - The phone number to format
|
|
20
|
+
* @returns The formatted phone number
|
|
21
|
+
*/
|
|
22
|
+
static phone(phone?: string | number): string;
|
|
23
|
+
/**
|
|
24
|
+
* Pluralize the given word
|
|
25
|
+
*/
|
|
26
|
+
static plural(word: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Capitalize the first letter of the given word
|
|
29
|
+
*/
|
|
30
|
+
static titleCase(text: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Copies the provided text to the clipboard
|
|
33
|
+
* @param text - the text to copy
|
|
34
|
+
* @returns - true if the text was successfully copied to the clipboard; else false
|
|
35
|
+
*/
|
|
36
|
+
static copyText(text: string): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Tests the validity of an email address
|
|
39
|
+
* @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}
|
|
40
|
+
* @param text - the string to test
|
|
41
|
+
* @returns - true if the given string is an email address; false if not
|
|
42
|
+
*/
|
|
43
|
+
static isEmail(text: string): boolean;
|
|
44
|
+
}
|
|
45
|
+
export default MintText;
|
|
46
46
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Functions related to the browser window.
|
|
3
|
-
*/
|
|
4
|
-
export declare abstract class MintWindow {
|
|
5
|
-
/**
|
|
6
|
-
* Returns the width of the window, including fractional pixels
|
|
7
|
-
* @returns the width of the window
|
|
8
|
-
*/
|
|
9
|
-
static width(): number;
|
|
10
|
-
}
|
|
11
|
-
export default MintWindow;
|
|
1
|
+
/**
|
|
2
|
+
* Functions related to the browser window.
|
|
3
|
+
*/
|
|
4
|
+
export declare abstract class MintWindow {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the width of the window, including fractional pixels
|
|
7
|
+
* @returns the width of the window
|
|
8
|
+
*/
|
|
9
|
+
static width(): number;
|
|
10
|
+
}
|
|
11
|
+
export default MintWindow;
|
|
12
12
|
//# sourceMappingURL=window.d.ts.map
|
package/dist/js/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A library for building responsive web applications.
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Exports
|
|
8
|
-
*/
|
|
9
|
-
export * from './imports';
|
|
1
|
+
/**
|
|
2
|
+
* A library for building responsive web applications.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Exports
|
|
8
|
+
*/
|
|
9
|
+
export * from './imports';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|