@appartmint/mint 1.2.2 → 1.2.4
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 +85 -44
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css +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 +70 -70
- 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/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 +14 -14
- 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 +77 -77
- 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 +39 -39
- package/dist/js/imports/util/window.d.ts +11 -11
- package/dist/js/index.d.ts +9 -9
- package/dist/js/index.js +351 -351
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scss/imports/_index.scss +10 -10
- package/src/scss/imports/components/_cards.scss +1 -1
- package/src/scss/imports/components/_index.scss +16 -16
- package/src/scss/imports/global/_grid.scss +9 -0
- package/src/scss/imports/global/_icons.scss +6 -6
- package/src/scss/imports/global/_index.scss +2 -0
- package/src/scss/imports/global/_structure.scss +9 -0
- package/src/scss/imports/util/_index.scss +9 -9
- package/src/ts/imports/enums/side.ts +9 -9
- package/src/ts/imports/models/color.ts +96 -96
- package/src/ts/imports/util/display.ts +72 -72
- package/src/ts/imports/util/event.ts +93 -93
- package/src/ts/imports/util/math.ts +17 -17
- package/src/ts/imports/util/window.ts +14 -14
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Math functions for the util library
|
|
3
|
-
*/
|
|
4
|
-
export abstract class MintMath {
|
|
5
|
-
/**
|
|
6
|
-
* Get a random integer between min and max
|
|
7
|
-
* @param max Maximum value to return
|
|
8
|
-
* @param min Minimum value to return (default is 0)
|
|
9
|
-
* @returns a random integer between min and max
|
|
10
|
-
*/
|
|
11
|
-
static randomInt (max: number, min: number = 0): number {
|
|
12
|
-
min = Math.ceil(min);
|
|
13
|
-
max = Math.floor(max);
|
|
14
|
-
return Math.floor(Math.random() * (max - min) + min);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
export default MintMath;
|
|
1
|
+
/**
|
|
2
|
+
* Math functions for the util library
|
|
3
|
+
*/
|
|
4
|
+
export abstract class MintMath {
|
|
5
|
+
/**
|
|
6
|
+
* Get a random integer between min and max
|
|
7
|
+
* @param max Maximum value to return
|
|
8
|
+
* @param min Minimum value to return (default is 0)
|
|
9
|
+
* @returns a random integer between min and max
|
|
10
|
+
*/
|
|
11
|
+
static randomInt (max: number, min: number = 0): number {
|
|
12
|
+
min = Math.ceil(min);
|
|
13
|
+
max = Math.floor(max);
|
|
14
|
+
return Math.floor(Math.random() * (max - min) + min);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default MintMath;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Functions related to the browser window.
|
|
3
|
-
*/
|
|
4
|
-
export 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
|
-
const decimal: number = document.body.getBoundingClientRect().width % 1;
|
|
11
|
-
return window.innerWidth + decimal;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export default MintWindow;
|
|
1
|
+
/**
|
|
2
|
+
* Functions related to the browser window.
|
|
3
|
+
*/
|
|
4
|
+
export 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
|
+
const decimal: number = document.body.getBoundingClientRect().width % 1;
|
|
11
|
+
return window.innerWidth + decimal;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export default MintWindow;
|