mimir-ui-kit 0.0.24 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +36 -11
- package/package.json +111 -91
- package/dist/assets/Button.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/InputPassword.css +0 -1
- package/dist/assets/OtpInput.css +0 -1
- package/dist/assets/fonts/11d5bc9f0cad36d1.woff2 +0 -0
- package/dist/assets/fonts/1a738bfdbc1e4d9d.woff +0 -0
- package/dist/assets/fonts/242d04bef81519ae.woff2 +0 -0
- package/dist/assets/fonts/3b9f59412b17ff93.woff +0 -0
- package/dist/assets/fonts/3cdd7fabbe89d2b9.woff +0 -0
- package/dist/assets/fonts/43b748f250df0f08.woff +0 -0
- package/dist/assets/fonts/585d10920d676fcd.woff2 +0 -0
- package/dist/assets/fonts/63611593e008a77c.woff2 +0 -0
- package/dist/assets/fonts/badaa6d1837432de.woff +0 -0
- package/dist/assets/fonts/cac2ba46e8c8adc9.woff2 +0 -0
- package/dist/assets/fonts/d080ae18fd04e52c.woff2 +0 -0
- package/dist/assets/fonts/e51d2feb30084bc2.woff2 +0 -0
- package/dist/assets/fonts/ee3db32f0aadef5d.woff2 +0 -0
- package/dist/assets/fonts/f4d681a788c6d497.woff2 +0 -0
- package/dist/assets/index.css +0 -1
- package/dist/components/Button/Button.d.ts +0 -84
- package/dist/components/Button/Button.js +0 -86
- package/dist/components/Button/constants.d.ts +0 -25
- package/dist/components/Button/constants.js +0 -35
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/index.js +0 -9
- package/dist/components/Button/types.d.ts +0 -14
- package/dist/components/Button/types.js +0 -1
- package/dist/components/Input/Input.d.ts +0 -63
- package/dist/components/Input/Input.js +0 -109
- package/dist/components/Input/constants.d.ts +0 -12
- package/dist/components/Input/constants.js +0 -18
- package/dist/components/Input/index.d.ts +0 -3
- package/dist/components/Input/index.js +0 -7
- package/dist/components/Input/types.d.ts +0 -11
- package/dist/components/Input/types.js +0 -1
- package/dist/components/InputPassword/InputPassword.d.ts +0 -12
- package/dist/components/InputPassword/InputPassword.js +0 -40
- package/dist/components/InputPassword/index.d.ts +0 -2
- package/dist/components/InputPassword/index.js +0 -4
- package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +0 -12
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +0 -38
- package/dist/components/InputPhoneNumber/index.d.ts +0 -2
- package/dist/components/InputPhoneNumber/index.js +0 -7
- package/dist/components/InputPhoneNumber/utils.d.ts +0 -2
- package/dist/components/InputPhoneNumber/utils.js +0 -26
- package/dist/components/OtpInput/OtpInput.d.ts +0 -23
- package/dist/components/OtpInput/OtpInput.js +0 -142
- package/dist/components/OtpInput/constants.d.ts +0 -3
- package/dist/components/OtpInput/constants.js +0 -8
- package/dist/components/OtpInput/index.d.ts +0 -1
- package/dist/components/OtpInput/index.js +0 -4
- package/dist/components/icons/Eye.d.ts +0 -1
- package/dist/components/icons/Eye.js +0 -35
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/icons/index.js +0 -4
- package/dist/components/index.d.ts +0 -7
- package/dist/components/index.js +0 -23
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +0 -6
- package/dist/hooks/useMediaQuery/constants.d.ts +0 -7
- package/dist/hooks/useMediaQuery/constants.js +0 -11
- package/dist/hooks/useMediaQuery/index.d.ts +0 -2
- package/dist/hooks/useMediaQuery/index.js +0 -6
- package/dist/hooks/useMediaQuery/useMediaQuery.d.ts +0 -14
- package/dist/hooks/useMediaQuery/useMediaQuery.js +0 -19
- package/dist/index-CweZ_OcN.js +0 -65
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -27
package/dist/hooks/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { useMediaQuery, EMediaQuery } from './useMediaQuery';
|
package/dist/hooks/index.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
var EMediaQuery = /* @__PURE__ */ ((EMediaQuery2) => {
|
2
|
-
EMediaQuery2["S"] = "(max-width: 767px)";
|
3
|
-
EMediaQuery2["M"] = "(max-width: 960px)";
|
4
|
-
EMediaQuery2["L"] = "(max-width: 1280px)";
|
5
|
-
EMediaQuery2["XL"] = "(max-width: 1440px)";
|
6
|
-
EMediaQuery2["XXL"] = "(max-width: 1920px)";
|
7
|
-
return EMediaQuery2;
|
8
|
-
})(EMediaQuery || {});
|
9
|
-
export {
|
10
|
-
EMediaQuery
|
11
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { EMediaQuery } from './constants';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* @name useMediaQuery
|
5
|
-
* @description - Hook that manages a media query
|
6
|
-
* @category Browser
|
7
|
-
*
|
8
|
-
* @param {string} query The media query string
|
9
|
-
* @returns {boolean} A boolean indicating if the media query matches
|
10
|
-
*
|
11
|
-
* @example
|
12
|
-
* const matches = useMediaQuery('(max-width: 768px)');
|
13
|
-
*/
|
14
|
-
export declare const useMediaQuery: (query: EMediaQuery | `${EMediaQuery}`) => boolean;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { useCallback, useSyncExternalStore } from "react";
|
2
|
-
const getServerSnapshot = () => false;
|
3
|
-
const useMediaQuery = (query) => {
|
4
|
-
const subscribe = useCallback(
|
5
|
-
(callback) => {
|
6
|
-
const matchMedia = window.matchMedia(query);
|
7
|
-
matchMedia.addEventListener("change", callback);
|
8
|
-
return () => {
|
9
|
-
matchMedia.removeEventListener("change", callback);
|
10
|
-
};
|
11
|
-
},
|
12
|
-
[query]
|
13
|
-
);
|
14
|
-
const getSnapshot = () => window.matchMedia(query).matches;
|
15
|
-
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
16
|
-
};
|
17
|
-
export {
|
18
|
-
useMediaQuery
|
19
|
-
};
|
package/dist/index-CweZ_OcN.js
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
function getDefaultExportFromCjs(x) {
|
2
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
3
|
-
}
|
4
|
-
var classnames = { exports: {} };
|
5
|
-
/*!
|
6
|
-
Copyright (c) 2018 Jed Watson.
|
7
|
-
Licensed under the MIT License (MIT), see
|
8
|
-
http://jedwatson.github.io/classnames
|
9
|
-
*/
|
10
|
-
(function(module) {
|
11
|
-
(function() {
|
12
|
-
var hasOwn = {}.hasOwnProperty;
|
13
|
-
function classNames2() {
|
14
|
-
var classes = "";
|
15
|
-
for (var i = 0; i < arguments.length; i++) {
|
16
|
-
var arg = arguments[i];
|
17
|
-
if (arg) {
|
18
|
-
classes = appendClass(classes, parseValue(arg));
|
19
|
-
}
|
20
|
-
}
|
21
|
-
return classes;
|
22
|
-
}
|
23
|
-
function parseValue(arg) {
|
24
|
-
if (typeof arg === "string" || typeof arg === "number") {
|
25
|
-
return arg;
|
26
|
-
}
|
27
|
-
if (typeof arg !== "object") {
|
28
|
-
return "";
|
29
|
-
}
|
30
|
-
if (Array.isArray(arg)) {
|
31
|
-
return classNames2.apply(null, arg);
|
32
|
-
}
|
33
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
34
|
-
return arg.toString();
|
35
|
-
}
|
36
|
-
var classes = "";
|
37
|
-
for (var key in arg) {
|
38
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
39
|
-
classes = appendClass(classes, key);
|
40
|
-
}
|
41
|
-
}
|
42
|
-
return classes;
|
43
|
-
}
|
44
|
-
function appendClass(value, newClass) {
|
45
|
-
if (!newClass) {
|
46
|
-
return value;
|
47
|
-
}
|
48
|
-
if (value) {
|
49
|
-
return value + " " + newClass;
|
50
|
-
}
|
51
|
-
return value + newClass;
|
52
|
-
}
|
53
|
-
if (module.exports) {
|
54
|
-
classNames2.default = classNames2;
|
55
|
-
module.exports = classNames2;
|
56
|
-
} else {
|
57
|
-
window.classNames = classNames2;
|
58
|
-
}
|
59
|
-
})();
|
60
|
-
})(classnames);
|
61
|
-
var classnamesExports = classnames.exports;
|
62
|
-
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
63
|
-
export {
|
64
|
-
classNames as c
|
65
|
-
};
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Button } from "./components/Button/Button.js";
|
2
|
-
import { EButtonForm, EButtonSize, EButtonVariantDefault, EButtonVariantRound } from "./components/Button/constants.js";
|
3
|
-
import { Input } from "./components/Input/Input.js";
|
4
|
-
import { EInputSize, EInputVariant } from "./components/Input/constants.js";
|
5
|
-
import { InputPassword } from "./components/InputPassword/InputPassword.js";
|
6
|
-
import { InputPhoneNumber } from "./components/InputPhoneNumber/InputPhoneNumber.js";
|
7
|
-
import { getMaskedInputPhoneValue, getUnmaskedInputValue } from "./components/InputPhoneNumber/utils.js";
|
8
|
-
import { OtpInput } from "./components/OtpInput/OtpInput.js";
|
9
|
-
import { useMediaQuery } from "./hooks/useMediaQuery/useMediaQuery.js";
|
10
|
-
import { EMediaQuery } from "./hooks/useMediaQuery/constants.js";
|
11
|
-
import './assets/index.css';export {
|
12
|
-
Button,
|
13
|
-
EButtonForm,
|
14
|
-
EButtonSize,
|
15
|
-
EButtonVariantDefault,
|
16
|
-
EButtonVariantRound,
|
17
|
-
EInputSize,
|
18
|
-
EInputVariant,
|
19
|
-
EMediaQuery,
|
20
|
-
Input,
|
21
|
-
InputPassword,
|
22
|
-
InputPhoneNumber,
|
23
|
-
OtpInput,
|
24
|
-
getMaskedInputPhoneValue,
|
25
|
-
getUnmaskedInputValue,
|
26
|
-
useMediaQuery
|
27
|
-
};
|