mimir-ui-kit 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/dist/{index4.css → assets/Button.css} +1 -1
  2. package/dist/assets/Input.css +1 -0
  3. package/dist/assets/InputPassword.css +1 -0
  4. package/dist/assets/OtpInput.css +1 -0
  5. package/dist/assets/index.css +1 -0
  6. package/dist/components/Button/Button.d.ts +84 -0
  7. package/dist/components/Button/Button.js +86 -0
  8. package/dist/components/Button/constants.js +33 -5
  9. package/dist/components/Button/index.d.ts +2 -84
  10. package/dist/components/Button/index.js +7 -51
  11. package/dist/components/Button/types.d.ts +2 -2
  12. package/dist/components/Input/Input.d.ts +63 -0
  13. package/dist/components/Input/Input.js +109 -0
  14. package/dist/components/Input/constants.js +16 -3
  15. package/dist/components/Input/index.d.ts +3 -29
  16. package/dist/components/Input/index.js +5 -59
  17. package/dist/components/Input/types.d.ts +11 -0
  18. package/dist/components/Input/types.js +1 -0
  19. package/dist/components/InputPassword/InputPassword.d.ts +12 -0
  20. package/dist/components/InputPassword/InputPassword.js +38 -0
  21. package/dist/components/InputPassword/index.d.ts +2 -306
  22. package/dist/components/InputPassword/index.js +2 -20
  23. package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +12 -0
  24. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +38 -0
  25. package/dist/components/InputPhoneNumber/index.d.ts +1 -306
  26. package/dist/components/InputPhoneNumber/index.js +2 -26
  27. package/dist/components/InputPhoneNumber/utils.js +24 -7
  28. package/dist/components/OtpInput/OtpInput.d.ts +28 -0
  29. package/dist/components/OtpInput/OtpInput.js +133 -0
  30. package/dist/components/OtpInput/constants.d.ts +1 -0
  31. package/dist/components/OtpInput/constants.js +6 -3
  32. package/dist/components/OtpInput/index.d.ts +1 -18
  33. package/dist/components/OtpInput/index.js +2 -85
  34. package/dist/components/icons/Eye.js +31 -20
  35. package/dist/components/icons/index.js +2 -2
  36. package/dist/components/index.d.ts +4 -4
  37. package/dist/components/index.js +18 -18
  38. package/dist/hooks/index.js +4 -4
  39. package/dist/hooks/useMediaQuery/constants.js +9 -2
  40. package/dist/hooks/useMediaQuery/index.js +4 -4
  41. package/dist/hooks/useMediaQuery/useMediaQuery.js +13 -10
  42. package/dist/index-CweZ_OcN.js +65 -0
  43. package/dist/index.d.ts +2 -1
  44. package/dist/index.js +23 -21
  45. package/package.json +91 -91
  46. package/dist/assets/styles/index.css +0 -1
  47. package/dist/components/Button/Button.stories.d.ts +0 -67
  48. package/dist/components/Input/Input.stories.d.ts +0 -13
  49. package/dist/components/InputPassword/Input.stories.d.ts +0 -7
  50. package/dist/components/InputPhoneNumber/Input.stories.d.ts +0 -335
  51. package/dist/components/OtpInput/Input.stories.d.ts +0 -26
  52. package/dist/index-DIxK0V-G.js +0 -44
  53. package/dist/index.css +0 -1
  54. package/dist/index2.css +0 -1
  55. package/dist/index3.css +0 -1
  56. package/dist/utils/getLog.d.ts +0 -1
  57. package/dist/utils/getLog.js +0 -4
  58. package/dist/utils/index.d.ts +0 -1
  59. package/dist/utils/index.js +0 -4
@@ -1,87 +1,4 @@
1
- import { jsx as l, jsxs as N } from "react/jsx-runtime";
2
- import { useRef as R, useMemo as T, Fragment as b } from "react";
3
- import { c as w } from "../../index-DIxK0V-G.js";
4
- import { Input as F } from "../Input/index.js";
5
- import { RE_DIGIT as g, DEFAULT_VALUE_LENGTH as O } from "./constants.js";
6
- import '../../index.css';const k = "_otp_3vrel_1", L = "_input_3vrel_7", U = "_separator_3vrel_13", i = {
7
- otp: k,
8
- input: L,
9
- separator: U
10
- }, $ = ({
11
- value: n = "",
12
- valueLength: p = O,
13
- needSeparator: I = !0,
14
- onChange: o,
15
- ...v
16
- }) => {
17
- const u = R([]), D = T(() => {
18
- const r = n.split(""), t = [];
19
- for (let e = 0; e < p; e++) {
20
- const s = r[e];
21
- g.test(s) ? t.push(s) : t.push("");
22
- }
23
- return t;
24
- }, [n, p]), f = (r) => {
25
- var t;
26
- r < p - 1 && ((t = u.current[r + 1]) == null || t.focus());
27
- }, m = (r) => {
28
- var t;
29
- r > 0 && ((t = u.current[r - 1]) == null || t.focus());
30
- }, A = (r, t) => {
31
- const e = r.target;
32
- let s = e.value.trim();
33
- const c = g.test(s);
34
- if (!c && s !== "")
35
- return;
36
- const a = u.current[t + 1];
37
- if (!c && a && a.value !== "")
38
- return;
39
- s = c ? s : " ";
40
- const _ = s.length;
41
- if (_ === 1) {
42
- const E = n.substring(0, t) + s + n.substring(t + 1);
43
- o == null || o(E), c && f(t);
44
- } else _ === p && (o == null || o(s), e.blur());
45
- }, V = (r, t) => {
46
- const { key: e } = r, s = r.target;
47
- switch (e) {
48
- case "ArrowRight":
49
- case "ArrowDown":
50
- return r.preventDefault(), f(t);
51
- case "ArrowLeft":
52
- case "ArrowUp":
53
- return r.preventDefault(), m(t);
54
- }
55
- const c = s.value;
56
- if (s.setSelectionRange(0, c.length), r.key !== "Backspace" || c !== "")
57
- return;
58
- const a = `${n.substring(0, t - 1)} ${n.substring(t)}`;
59
- o == null || o(a), m(t);
60
- }, y = (r, t) => {
61
- const e = r.target, s = u.current[t - 1];
62
- s && s.value === "" && s.focus(), e.setSelectionRange(0, e.value.length);
63
- };
64
- return /* @__PURE__ */ l("div", { className: w(i.otp), children: D.map((r, t) => /* @__PURE__ */ N(b, { children: [
65
- I && t === 3 && /* @__PURE__ */ l("span", { className: w(i.separator) }),
66
- /* @__PURE__ */ l(
67
- F,
68
- {
69
- ref: (e) => u.current[t] = e,
70
- type: "text",
71
- inputMode: "numeric",
72
- autoComplete: "one-time-code",
73
- pattern: "\\d{1}",
74
- maxLength: 1,
75
- className: i.input,
76
- value: r,
77
- onChange: (e) => A(e, t),
78
- onKeyDown: (e) => V(e, t),
79
- onFocus: (e) => y(e, t),
80
- ...v
81
- }
82
- )
83
- ] }, t)) });
84
- };
1
+ import { OtpInput } from "./OtpInput.js";
85
2
  export {
86
- $ as OtpInput
3
+ OtpInput
87
4
  };
@@ -1,24 +1,35 @@
1
- import { jsxs as e, jsx as C } from "react/jsx-runtime";
2
- const d = () => /* @__PURE__ */ e("svg", { width: "25", height: "24", viewBox: "0 0 25 24", xmlns: "http://www.w3.org/2000/svg", children: [
3
- /* @__PURE__ */ C(
4
- "path",
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ const Eye = () => {
3
+ return /* @__PURE__ */ jsxs(
4
+ "svg",
5
5
  {
6
- fillRule: "evenodd",
7
- clipRule: "evenodd",
8
- d: "M12.5 14.5C13.8807 14.5 15 13.3807 15 12C15 10.6193 13.8807 9.5 12.5 9.5C11.1193 9.5 10 10.6193 10 12C10 13.3807 11.1193 14.5 12.5 14.5ZM12.5 16C14.7091 16 16.5 14.2091 16.5 12C16.5 9.79086 14.7091 8 12.5 8C10.2909 8 8.5 9.79086 8.5 12C8.5 14.2091 10.2909 16 12.5 16Z",
9
- fill: "#666666"
6
+ width: "25",
7
+ height: "24",
8
+ viewBox: "0 0 25 24",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ jsx(
12
+ "path",
13
+ {
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M12.5 14.5C13.8807 14.5 15 13.3807 15 12C15 10.6193 13.8807 9.5 12.5 9.5C11.1193 9.5 10 10.6193 10 12C10 13.3807 11.1193 14.5 12.5 14.5ZM12.5 16C14.7091 16 16.5 14.2091 16.5 12C16.5 9.79086 14.7091 8 12.5 8C10.2909 8 8.5 9.79086 8.5 12C8.5 14.2091 10.2909 16 12.5 16Z",
17
+ fill: "#666666"
18
+ }
19
+ ),
20
+ /* @__PURE__ */ jsx(
21
+ "path",
22
+ {
23
+ fillRule: "evenodd",
24
+ clipRule: "evenodd",
25
+ d: "M2.5 12C2.5 12 6.97715 19 12.5 19C18.0228 19 22.5 12 22.5 12C22.5 12 18.0228 5 12.5 5C6.97715 5 2.5 12 2.5 12ZM4.33813 12C4.38111 12.057 4.42632 12.1163 4.47372 12.1778C4.94838 12.7934 5.63246 13.6102 6.47167 14.4217C8.20962 16.1024 10.3437 17.5 12.5 17.5C14.6563 17.5 16.7904 16.1024 18.5283 14.4217C19.3675 13.6102 20.0516 12.7934 20.5263 12.1778C20.5737 12.1163 20.6189 12.057 20.6619 12C20.6189 11.943 20.5737 11.8837 20.5263 11.8222C20.0516 11.2066 19.3675 10.3898 18.5283 9.57828C16.7904 7.89761 14.6563 6.5 12.5 6.5C10.3437 6.5 8.20962 7.89761 6.47167 9.57828C5.63246 10.3898 4.94838 11.2066 4.47372 11.8222C4.42632 11.8837 4.38111 11.943 4.33813 12Z",
26
+ fill: "#666666"
27
+ }
28
+ )
29
+ ]
10
30
  }
11
- ),
12
- /* @__PURE__ */ C(
13
- "path",
14
- {
15
- fillRule: "evenodd",
16
- clipRule: "evenodd",
17
- d: "M2.5 12C2.5 12 6.97715 19 12.5 19C18.0228 19 22.5 12 22.5 12C22.5 12 18.0228 5 12.5 5C6.97715 5 2.5 12 2.5 12ZM4.33813 12C4.38111 12.057 4.42632 12.1163 4.47372 12.1778C4.94838 12.7934 5.63246 13.6102 6.47167 14.4217C8.20962 16.1024 10.3437 17.5 12.5 17.5C14.6563 17.5 16.7904 16.1024 18.5283 14.4217C19.3675 13.6102 20.0516 12.7934 20.5263 12.1778C20.5737 12.1163 20.6189 12.057 20.6619 12C20.6189 11.943 20.5737 11.8837 20.5263 11.8222C20.0516 11.2066 19.3675 10.3898 18.5283 9.57828C16.7904 7.89761 14.6563 6.5 12.5 6.5C10.3437 6.5 8.20962 7.89761 6.47167 9.57828C5.63246 10.3898 4.94838 11.2066 4.47372 11.8222C4.42632 11.8837 4.38111 11.943 4.33813 12Z",
18
- fill: "#666666"
19
- }
20
- )
21
- ] });
31
+ );
32
+ };
22
33
  export {
23
- d as Eye
34
+ Eye
24
35
  };
@@ -1,4 +1,4 @@
1
- import { Eye as r } from "./Eye.js";
1
+ import { Eye } from "./Eye.js";
2
2
  export {
3
- r as Eye
3
+ Eye
4
4
  };
@@ -1,7 +1,7 @@
1
- export { Button } from './Button';
2
- export { EButtonSize, EButtonForm, EButtonVariantDefault, EButtonVariantRound } from './Button/constants';
3
- export { Input } from './Input';
4
- export { EInputSize, EInputVariant } from './Input/constants';
1
+ export { Button, EButtonForm, EButtonSize, EButtonVariantDefault, EButtonVariantRound, type TButtonProps } from './Button';
2
+ export { Input, EInputSize, EInputVariant } from './Input';
3
+ export type { TInputProps, TSize, TVariant } from './Input';
5
4
  export { InputPassword } from './InputPassword';
5
+ export type { TInputPasswordProps } from './InputPassword';
6
6
  export { InputPhoneNumber } from './InputPhoneNumber';
7
7
  export { OtpInput } from './OtpInput';
@@ -1,20 +1,20 @@
1
- import { Button as r } from "./Button/index.js";
2
- import { EButtonForm as p, EButtonSize as u, EButtonVariantDefault as e, EButtonVariantRound as m } from "./Button/constants.js";
3
- import { Input as f } from "./Input/index.js";
4
- import { EInputSize as E, EInputVariant as I } from "./Input/constants.js";
5
- import { InputPassword as B } from "./InputPassword/index.js";
6
- import { InputPhoneNumber as d } from "./InputPhoneNumber/index.js";
7
- import { OtpInput as z } from "./OtpInput/index.js";
1
+ import { Button } from "./Button/Button.js";
2
+ import { EButtonForm, EButtonSize, EButtonVariantDefault, EButtonVariantRound } from "./Button/constants.js";
3
+ import { Input } from "./Input/Input.js";
4
+ import { EInputSize, EInputVariant } from "./Input/constants.js";
5
+ import { InputPassword } from "./InputPassword/InputPassword.js";
6
+ import { InputPhoneNumber } from "./InputPhoneNumber/InputPhoneNumber.js";
7
+ import { OtpInput } from "./OtpInput/OtpInput.js";
8
8
  export {
9
- r as Button,
10
- p as EButtonForm,
11
- u as EButtonSize,
12
- e as EButtonVariantDefault,
13
- m as EButtonVariantRound,
14
- E as EInputSize,
15
- I as EInputVariant,
16
- f as Input,
17
- B as InputPassword,
18
- d as InputPhoneNumber,
19
- z as OtpInput
9
+ Button,
10
+ EButtonForm,
11
+ EButtonSize,
12
+ EButtonVariantDefault,
13
+ EButtonVariantRound,
14
+ EInputSize,
15
+ EInputVariant,
16
+ Input,
17
+ InputPassword,
18
+ InputPhoneNumber,
19
+ OtpInput
20
20
  };
@@ -1,6 +1,6 @@
1
- import { useMediaQuery as o } from "./useMediaQuery/useMediaQuery.js";
2
- import { EMediaQuery as a } from "./useMediaQuery/constants.js";
1
+ import { useMediaQuery } from "./useMediaQuery/useMediaQuery.js";
2
+ import { EMediaQuery } from "./useMediaQuery/constants.js";
3
3
  export {
4
- a as EMediaQuery,
5
- o as useMediaQuery
4
+ EMediaQuery,
5
+ useMediaQuery
6
6
  };
@@ -1,4 +1,11 @@
1
- var t = /* @__PURE__ */ ((x) => (x.S = "(max-width: 767px)", x.M = "(max-width: 960px)", x.L = "(max-width: 1280px)", x.XL = "(max-width: 1440px)", x.XXL = "(max-width: 1920px)", x))(t || {});
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 || {});
2
9
  export {
3
- t as EMediaQuery
10
+ EMediaQuery
4
11
  };
@@ -1,6 +1,6 @@
1
- import { useMediaQuery as o } from "./useMediaQuery.js";
2
- import { EMediaQuery as a } from "./constants.js";
1
+ import { useMediaQuery } from "./useMediaQuery.js";
2
+ import { EMediaQuery } from "./constants.js";
3
3
  export {
4
- a as EMediaQuery,
5
- o as useMediaQuery
4
+ EMediaQuery,
5
+ useMediaQuery
6
6
  };
@@ -1,16 +1,19 @@
1
- import { useCallback as a, useSyncExternalStore as o } from "react";
2
- const r = () => !1, h = (e) => {
3
- const s = a(
4
- (t) => {
5
- const n = window.matchMedia(e);
6
- return n.addEventListener("change", t), () => {
7
- n.removeEventListener("change", t);
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);
8
10
  };
9
11
  },
10
- [e]
12
+ [query]
11
13
  );
12
- return o(s, () => window.matchMedia(e).matches, r);
14
+ const getSnapshot = () => window.matchMedia(query).matches;
15
+ return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
13
16
  };
14
17
  export {
15
- h as useMediaQuery
18
+ useMediaQuery
16
19
  };
@@ -0,0 +1,65 @@
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 CHANGED
@@ -1,2 +1,3 @@
1
+
1
2
  export * from './components';
2
- export * from './utils';
3
+ export * from './hooks';
package/dist/index.js CHANGED
@@ -1,22 +1,24 @@
1
- import { Button as r } from "./components/Button/index.js";
2
- import { EButtonForm as p, EButtonSize as e, EButtonVariantDefault as u, EButtonVariantRound as m } from "./components/Button/constants.js";
3
- import { Input as a } from "./components/Input/index.js";
4
- import { EInputSize as E, EInputVariant as I } from "./components/Input/constants.js";
5
- import { InputPassword as B } from "./components/InputPassword/index.js";
6
- import { InputPhoneNumber as d } from "./components/InputPhoneNumber/index.js";
7
- import { OtpInput as s } from "./components/OtpInput/index.js";
8
- import { getLog as P } from "./utils/getLog.js";
9
- export {
10
- r as Button,
11
- p as EButtonForm,
12
- e as EButtonSize,
13
- u as EButtonVariantDefault,
14
- m as EButtonVariantRound,
15
- E as EInputSize,
16
- I as EInputVariant,
17
- a as Input,
18
- B as InputPassword,
19
- d as InputPhoneNumber,
20
- s as OtpInput,
21
- P as getLog
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 { OtpInput } from "./components/OtpInput/OtpInput.js";
8
+ import { useMediaQuery } from "./hooks/useMediaQuery/useMediaQuery.js";
9
+ import { EMediaQuery } from "./hooks/useMediaQuery/constants.js";
10
+ import './assets/index.css';export {
11
+ Button,
12
+ EButtonForm,
13
+ EButtonSize,
14
+ EButtonVariantDefault,
15
+ EButtonVariantRound,
16
+ EInputSize,
17
+ EInputVariant,
18
+ EMediaQuery,
19
+ Input,
20
+ InputPassword,
21
+ InputPhoneNumber,
22
+ OtpInput,
23
+ useMediaQuery
22
24
  };
package/package.json CHANGED
@@ -1,91 +1,91 @@
1
- {
2
- "name": "mimir-ui-kit",
3
- "private": false,
4
- "version": "0.0.12",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": [
12
- "**/*.{css,scss}"
13
- ],
14
- "scripts": {
15
- "dev": "vite",
16
- "build": "tsc --p ./tsconfig-build.json && vite build",
17
- "pre-build": "npm run build",
18
- "ts:check": "tsc -b",
19
- "lint:eslint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
20
- "lint:prettier": "npx prettier . --write",
21
- "lint:stylelint": "stylelint '**/*{.css,.scss}'",
22
- "lint:stylelint:fix": "stylelint '**/*{.css,.scss}' --fix",
23
- "preview": "vite preview",
24
- "storybook": "storybook dev -p 6006",
25
- "build-storybook": "storybook build",
26
- "prepare": "husky"
27
- },
28
- "devDependencies": {
29
- "@chromatic-com/storybook": "^1.6.1",
30
- "@headlessui/react": "^2.1.2",
31
- "@laynezh/vite-plugin-lib-assets": "^0.5.23",
32
- "@storybook/addon-essentials": "^8.1.11",
33
- "@storybook/addon-interactions": "^8.1.11",
34
- "@storybook/addon-links": "^8.1.11",
35
- "@storybook/addon-onboarding": "^8.1.11",
36
- "@storybook/blocks": "^8.1.11",
37
- "@storybook/react": "^8.1.11",
38
- "@storybook/react-vite": "^8.1.11",
39
- "@storybook/test": "^8.1.11",
40
- "@types/node": "^20.14.10",
41
- "@types/react": "^18.3.3",
42
- "@types/react-dom": "^18.3.0",
43
- "@typescript-eslint/eslint-plugin": "^7.13.1",
44
- "@typescript-eslint/parser": "^7.13.1",
45
- "@vitejs/plugin-react": "^4.3.1",
46
- "classnames": "^2.5.1",
47
- "eslint": "^8.57.0",
48
- "eslint-config-prettier": "9.1.0",
49
- "eslint-plugin-react-hooks": "^4.6.2",
50
- "eslint-plugin-react-refresh": "^0.4.7",
51
- "eslint-plugin-storybook": "^0.8.0",
52
- "glob": "10.3.10",
53
- "husky": "^9.0.11",
54
- "lint-staged": "^15.2.7",
55
- "prettier": "^3.3.2",
56
- "react": "^18.3.1",
57
- "react-dom": "^18.3.1",
58
- "sass": "^1.77.7",
59
- "storybook": "^8.1.11",
60
- "stylelint": "^16.6.1",
61
- "stylelint-config-idiomatic-order": "^10.0.0",
62
- "stylelint-config-rational-order": "^0.1.2",
63
- "stylelint-config-standard": "^36.0.1",
64
- "stylelint-order": "^6.0.4",
65
- "stylelint-prettier": "^5.0.0",
66
- "stylelint-scss": "^6.4.0",
67
- "typescript": "^5.2.2",
68
- "vite": "^5.3.1",
69
- "vite-plugin-dts": "^3.9.1",
70
- "vite-plugin-lib-inject-css": "^2.1.1"
71
- },
72
- "peerDependencies": {
73
- "@headlessui/react": "^2.1.2",
74
- "react": "^18.3.1",
75
- "react-dom": "^18.3.1"
76
- },
77
- "husky": {
78
- "hooks": {
79
- "pre-commit": "lint-staged"
80
- }
81
- },
82
- "lint-staged": {
83
- "**/*.{ts,tsx}": [
84
- "eslint",
85
- "prettier --write"
86
- ],
87
- "**/*.{css,scss}": [
88
- "stylelint --fix"
89
- ]
90
- }
91
- }
1
+ {
2
+ "name": "mimir-ui-kit",
3
+ "private": false,
4
+ "version": "0.0.14",
5
+ "type": "module",
6
+ "exports": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "sideEffects": [
13
+ "**/*.{css,scss}"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsc --p ./tsconfig-build.json && vite build",
17
+ "storybook": "storybook dev -p 6006",
18
+ "build-storybook": "storybook build",
19
+ "ts:check": "tsc -b",
20
+ "lint:fix": "eslint . --ext ts,tsx --fix",
21
+ "lint:prettier": "npx prettier . --write",
22
+ "lint:stylelint": "stylelint '**/*{.css,.scss}'",
23
+ "lint:stylelint:fix": "stylelint '**/*{.css,.scss}' --fix",
24
+ "prepare": "husky"
25
+ },
26
+ "devDependencies": {
27
+ "@chromatic-com/storybook": "^1.6.1",
28
+ "@headlessui/react": "^2.1.2",
29
+ "@laynezh/vite-plugin-lib-assets": "^0.5.23",
30
+ "@storybook/addon-essentials": "^8.2.2",
31
+ "@storybook/addon-interactions": "^8.2.2",
32
+ "@storybook/addon-links": "^8.2.2",
33
+ "@storybook/addon-onboarding": "^8.2.2",
34
+ "@storybook/blocks": "^8.2.2",
35
+ "@storybook/builder-vite": "^8.2.2",
36
+ "@storybook/react": "^8.2.2",
37
+ "@storybook/react-vite": "^8.2.2",
38
+ "@storybook/test": "^8.2.2",
39
+ "@types/node": "^20.14.10",
40
+ "@types/react": "^18.3.3",
41
+ "@types/react-dom": "^18.3.0",
42
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
43
+ "@typescript-eslint/parser": "^7.13.1",
44
+ "@vitejs/plugin-react": "^4.3.1",
45
+ "autoprefixer": "^10.4.19",
46
+ "classnames": "^2.5.1",
47
+ "eslint": "^8.57.0",
48
+ "eslint-config-prettier": "^9.1.0",
49
+ "eslint-plugin-react-hooks": "^4.6.2",
50
+ "eslint-plugin-react-refresh": "^0.4.7",
51
+ "eslint-plugin-storybook": "^0.8.0",
52
+ "glob": "10.3.10",
53
+ "husky": "^9.0.11",
54
+ "lint-staged": "^15.2.7",
55
+ "prettier": "^3.3.3",
56
+ "react": "^18.3.1",
57
+ "react-dom": "^18.3.1",
58
+ "sass": "^1.77.7",
59
+ "storybook": "^8.2.2",
60
+ "stylelint": "^16.7.0",
61
+ "stylelint-config-idiomatic-order": "^10.0.0",
62
+ "stylelint-config-rational-order": "^0.1.2",
63
+ "stylelint-config-standard": "^36.0.1",
64
+ "stylelint-order": "^6.0.4",
65
+ "stylelint-prettier": "^5.0.0",
66
+ "stylelint-scss": "^6.4.0",
67
+ "typescript": "^5.2.2",
68
+ "vite": "^5.3.1",
69
+ "vite-plugin-dts": "^3.9.1",
70
+ "vite-plugin-lib-inject-css": "^2.1.1"
71
+ },
72
+ "peerDependencies": {
73
+ "@headlessui/react": "^2.1.2",
74
+ "react": "^18.3.1",
75
+ "react-dom": "^18.3.1"
76
+ },
77
+ "husky": {
78
+ "hooks": {
79
+ "pre-commit": "lint-staged"
80
+ }
81
+ },
82
+ "lint-staged": {
83
+ "**/*.{ts,tsx}": [
84
+ "eslint",
85
+ "prettier --write"
86
+ ],
87
+ "**/*.{css,scss}": [
88
+ "stylelint --fix"
89
+ ]
90
+ }
91
+ }
@@ -1 +0,0 @@
1
- @font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(../fonts/585d10920d676fcd.woff2) format("woff2"),url(../fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(../fonts/f4d681a788c6d497.woff2) format("woff2"),url(../fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(../fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(../fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(../fonts/e51d2feb30084bc2.woff2) format("woff2"),url(../fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(../fonts/63611593e008a77c.woff2) format("woff2"),url(../fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(../fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(../fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(../fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(../fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgb(255 255 255 / 40%);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-m: 1.3em;--line-height-text-l: 1.4em;--line-height-text-xl: 1.5em;--control-radius: 6px;--control-radius-l: 24px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-xxl: var(--space-xl);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-xs: 8px;--space-s: 12px;--space-m: 16px;--space-l: 20px;--space-xl: 24px;--space-2xl: 32px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-4xxl: 64px;--space-5xl: 72px;--space-6xl: 96px;--container-width-xs: 375px;--container-width-s: 767px;--container-width-m: 960px;--container-width-l: 1280px;--container-width-xl: 1440px;--container-width-xxl: 1920px;--box-shadow-active: 0 0 2px var(--sapphire-normal)}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero"}body{font-family:Inter,sans-serif;font-variant-numeric:slashed-zero;background-color:var(--black-5);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{display:flex;flex-direction:column;min-height:100%}