mimir-ui-kit 0.0.24 → 1.0.1

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 (70) hide show
  1. package/README.md +36 -11
  2. package/package.json +111 -91
  3. package/dist/assets/Button.css +0 -1
  4. package/dist/assets/Input.css +0 -1
  5. package/dist/assets/InputPassword.css +0 -1
  6. package/dist/assets/OtpInput.css +0 -1
  7. package/dist/assets/fonts/11d5bc9f0cad36d1.woff2 +0 -0
  8. package/dist/assets/fonts/1a738bfdbc1e4d9d.woff +0 -0
  9. package/dist/assets/fonts/242d04bef81519ae.woff2 +0 -0
  10. package/dist/assets/fonts/3b9f59412b17ff93.woff +0 -0
  11. package/dist/assets/fonts/3cdd7fabbe89d2b9.woff +0 -0
  12. package/dist/assets/fonts/43b748f250df0f08.woff +0 -0
  13. package/dist/assets/fonts/585d10920d676fcd.woff2 +0 -0
  14. package/dist/assets/fonts/63611593e008a77c.woff2 +0 -0
  15. package/dist/assets/fonts/badaa6d1837432de.woff +0 -0
  16. package/dist/assets/fonts/cac2ba46e8c8adc9.woff2 +0 -0
  17. package/dist/assets/fonts/d080ae18fd04e52c.woff2 +0 -0
  18. package/dist/assets/fonts/e51d2feb30084bc2.woff2 +0 -0
  19. package/dist/assets/fonts/ee3db32f0aadef5d.woff2 +0 -0
  20. package/dist/assets/fonts/f4d681a788c6d497.woff2 +0 -0
  21. package/dist/assets/index.css +0 -1
  22. package/dist/components/Button/Button.d.ts +0 -84
  23. package/dist/components/Button/Button.js +0 -86
  24. package/dist/components/Button/constants.d.ts +0 -25
  25. package/dist/components/Button/constants.js +0 -35
  26. package/dist/components/Button/index.d.ts +0 -2
  27. package/dist/components/Button/index.js +0 -9
  28. package/dist/components/Button/types.d.ts +0 -14
  29. package/dist/components/Button/types.js +0 -1
  30. package/dist/components/Input/Input.d.ts +0 -63
  31. package/dist/components/Input/Input.js +0 -109
  32. package/dist/components/Input/constants.d.ts +0 -12
  33. package/dist/components/Input/constants.js +0 -18
  34. package/dist/components/Input/index.d.ts +0 -3
  35. package/dist/components/Input/index.js +0 -7
  36. package/dist/components/Input/types.d.ts +0 -11
  37. package/dist/components/Input/types.js +0 -1
  38. package/dist/components/InputPassword/InputPassword.d.ts +0 -12
  39. package/dist/components/InputPassword/InputPassword.js +0 -40
  40. package/dist/components/InputPassword/index.d.ts +0 -2
  41. package/dist/components/InputPassword/index.js +0 -4
  42. package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +0 -12
  43. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +0 -38
  44. package/dist/components/InputPhoneNumber/index.d.ts +0 -2
  45. package/dist/components/InputPhoneNumber/index.js +0 -7
  46. package/dist/components/InputPhoneNumber/utils.d.ts +0 -2
  47. package/dist/components/InputPhoneNumber/utils.js +0 -26
  48. package/dist/components/OtpInput/OtpInput.d.ts +0 -23
  49. package/dist/components/OtpInput/OtpInput.js +0 -142
  50. package/dist/components/OtpInput/constants.d.ts +0 -3
  51. package/dist/components/OtpInput/constants.js +0 -8
  52. package/dist/components/OtpInput/index.d.ts +0 -1
  53. package/dist/components/OtpInput/index.js +0 -4
  54. package/dist/components/icons/Eye.d.ts +0 -1
  55. package/dist/components/icons/Eye.js +0 -35
  56. package/dist/components/icons/index.d.ts +0 -1
  57. package/dist/components/icons/index.js +0 -4
  58. package/dist/components/index.d.ts +0 -7
  59. package/dist/components/index.js +0 -23
  60. package/dist/hooks/index.d.ts +0 -1
  61. package/dist/hooks/index.js +0 -6
  62. package/dist/hooks/useMediaQuery/constants.d.ts +0 -7
  63. package/dist/hooks/useMediaQuery/constants.js +0 -11
  64. package/dist/hooks/useMediaQuery/index.d.ts +0 -2
  65. package/dist/hooks/useMediaQuery/index.js +0 -6
  66. package/dist/hooks/useMediaQuery/useMediaQuery.d.ts +0 -14
  67. package/dist/hooks/useMediaQuery/useMediaQuery.js +0 -19
  68. package/dist/index-CweZ_OcN.js +0 -65
  69. package/dist/index.d.ts +0 -3
  70. package/dist/index.js +0 -27
@@ -1 +0,0 @@
1
- export { useMediaQuery, EMediaQuery } from './useMediaQuery';
@@ -1,6 +0,0 @@
1
- import { useMediaQuery } from "./useMediaQuery/useMediaQuery.js";
2
- import { EMediaQuery } from "./useMediaQuery/constants.js";
3
- export {
4
- EMediaQuery,
5
- useMediaQuery
6
- };
@@ -1,7 +0,0 @@
1
- export declare enum EMediaQuery {
2
- S = "(max-width: 767px)",
3
- M = "(max-width: 960px)",
4
- L = "(max-width: 1280px)",
5
- XL = "(max-width: 1440px)",
6
- XXL = "(max-width: 1920px)"
7
- }
@@ -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,2 +0,0 @@
1
- export { useMediaQuery } from './useMediaQuery';
2
- export { EMediaQuery } from './constants';
@@ -1,6 +0,0 @@
1
- import { useMediaQuery } from "./useMediaQuery.js";
2
- import { EMediaQuery } from "./constants.js";
3
- export {
4
- EMediaQuery,
5
- useMediaQuery
6
- };
@@ -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
- };
@@ -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
@@ -1,3 +0,0 @@
1
-
2
- export * from './components';
3
- export * from './hooks';
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
- };