@kvell-group/ui 1.12.2 → 1.12.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.
@@ -0,0 +1 @@
1
+ ._container_6ptye_1{position:relative;display:inline-block}._container_6ptye_1[data-size=auto]{width:100%;height:100%}._container_6ptye_1[data-size=sm]{width:1.5rem;height:1.5rem}._container_6ptye_1[data-size=md]{width:2rem;height:2rem}._container_6ptye_1[data-size=lg]{width:4rem;height:4rem}._part_6ptye_26{position:absolute;left:45%;top:36%;width:8%;height:26%;background:var(--mantine-color-typography-secondary-0);opacity:0;border-radius:3rem;box-shadow:0 0 3px #0003;animation:_fade_6ptye_1 1s linear infinite}@keyframes _fade_6ptye_1{0%{opacity:1}to{opacity:.25}}
@@ -1,8 +1,8 @@
1
- import { InputBase as r } from "@mantine/core";
2
- import { c as s, b as a } from "../../clsx-BvFBxcni.js";
3
- import { t as o } from "../../typography.module-CkcKr7wr.js";
1
+ import { InputBase as a } from "@mantine/core";
2
+ import { c as s, b as o } from "../../clsx-BvFBxcni.js";
3
+ import { c as t } from "../../typography.module-gwO-h9Os.js";
4
4
  import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../constants/font-variants.js";
5
- const { input: m, error: p, ...n } = a, t = o[e], c = s(m, t), i = s(p, t), I = r.withProps({
5
+ const { input: m, error: p, ...n } = o, r = t[e], c = s(m, r), i = s(p, r), I = a.withProps({
6
6
  classNames: { ...n, input: c, error: i }
7
7
  });
8
8
  export {
@@ -1,6 +1,6 @@
1
1
  import { PasswordInput as t } from "@mantine/core";
2
2
  import { c as s, b as a } from "../../../clsx-BvFBxcni.js";
3
- import { t as r } from "../../../typography.module-CkcKr7wr.js";
3
+ import { c as r } from "../../../typography.module-gwO-h9Os.js";
4
4
  import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../../constants/font-variants.js";
5
5
  import '../../../assets/PasswordInput.css';const n = "_section_1lzoc_1", c = {
6
6
  section: n
@@ -0,0 +1,7 @@
1
+ import { LoaderSizes } from './constants';
2
+ type LoaderSizesTypes = typeof LoaderSizes;
3
+ type LoaderProps = {
4
+ size?: LoaderSizesTypes[number];
5
+ };
6
+ export declare const Loader: ({ size }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,25 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import '../../assets/Loader.css';const n = "_container_6ptye_1", s = "_part_6ptye_26", r = {
3
+ container: n,
4
+ part: s
5
+ }, o = (a) => ({
6
+ transform: `rotate(${a * 360 / 8}deg) translate(0, -130%)`,
7
+ animationDelay: `${-(8 - a) * 0.125}s`
8
+ }), i = ({ size: a = "auto" }) => /* @__PURE__ */ e(
9
+ "div",
10
+ {
11
+ className: r.container,
12
+ "data-size": a,
13
+ children: Array(8).fill(0).map((c, t) => /* @__PURE__ */ e(
14
+ "div",
15
+ {
16
+ className: r.part,
17
+ style: o(t)
18
+ },
19
+ t
20
+ ))
21
+ }
22
+ );
23
+ export {
24
+ i as Loader
25
+ };
@@ -0,0 +1,5 @@
1
+ export declare const LOADER_SIZE_AUTO = "auto";
2
+ export declare const LOADER_SIZE_SM = "sm";
3
+ export declare const LOADER_SIZE_MD = "md";
4
+ export declare const LOADER_SIZE_LG = "lg";
5
+ export declare const LoaderSizes: string[];
@@ -0,0 +1,8 @@
1
+ const o = "auto", E = "sm", _ = "md", s = "lg", t = [o, E, _, s];
2
+ export {
3
+ o as LOADER_SIZE_AUTO,
4
+ s as LOADER_SIZE_LG,
5
+ _ as LOADER_SIZE_MD,
6
+ E as LOADER_SIZE_SM,
7
+ t as LoaderSizes
8
+ };
@@ -0,0 +1 @@
1
+ export { Loader } from './Loader';
@@ -0,0 +1,4 @@
1
+ import { Loader as e } from "./Loader.js";
2
+ export {
3
+ e as Loader
4
+ };
@@ -1,13 +1,13 @@
1
1
  import { Modal as o } from "@mantine/core";
2
- import { t } from "../../typography.module-CkcKr7wr.js";
3
- import { BODY_M_MEDIUM_FONT_VARIANT as c } from "../../constants/font-variants.js";
4
- import '../../assets/Modal.css';const s = "_root_jcnc7_1", e = "_content_jcnc7_5", a = "_header_jcnc7_12", n = "_close_jcnc7_16", _ = {
5
- root: s,
2
+ import { c } from "../../typography.module-gwO-h9Os.js";
3
+ import { BODY_M_MEDIUM_FONT_VARIANT as s } from "../../constants/font-variants.js";
4
+ import '../../assets/Modal.css';const t = "_root_jcnc7_1", e = "_content_jcnc7_5", a = "_header_jcnc7_12", n = "_close_jcnc7_16", _ = {
5
+ root: t,
6
6
  content: e,
7
7
  header: a,
8
8
  close: n
9
9
  }, d = o.withProps({
10
- classNames: { ..._, title: t[c] },
10
+ classNames: { ..._, title: c[s] },
11
11
  withOverlay: !1
12
12
  });
13
13
  export {
@@ -1,15 +1,15 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { Text as m } from "@mantine/core";
3
- import { forwardRef as a } from "react";
4
- import { t as e } from "../../typography.module-CkcKr7wr.js";
5
- const p = a((t, o) => /* @__PURE__ */ r(
3
+ import { forwardRef as s } from "react";
4
+ import { c as a } from "../../typography.module-gwO-h9Os.js";
5
+ const c = s((t, o) => /* @__PURE__ */ r(
6
6
  m,
7
7
  {
8
8
  ref: o,
9
9
  ...t,
10
- classNames: { root: e[t.variant || "text"] }
10
+ classNames: { root: a[t.variant || "text"] }
11
11
  }
12
12
  ));
13
13
  export {
14
- p as Text
14
+ c as Text
15
15
  };
@@ -22,7 +22,9 @@ const a = {
22
22
  //text
23
23
  "text-base-secondary": e("#0f132499"),
24
24
  "text-base-tertiary": e("#0d112666"),
25
- "text-status-destructive": e("#e6483d")
25
+ "text-status-destructive": e("#e6483d"),
26
+ //typography
27
+ "typography-secondary": e("#91989e")
26
28
  },
27
29
  primaryShade: 6,
28
30
  // { light: 6, dark: 8 } default mantine by theme
package/dist/main.d.ts CHANGED
@@ -7,5 +7,6 @@ export { CardInput } from './components/Inputs/CardInput';
7
7
  export { MaskedInput } from './components/Inputs/MaskedInput';
8
8
  export { PasswordInput } from './components/Inputs/PasswordInput';
9
9
  export { CvvInput } from './components/Inputs/CvvInput';
10
- export { Text } from './components/Text';
10
+ export { Loader } from './components/Loader';
11
11
  export { Modal } from './components/Modal';
12
+ export { Text } from './components/Text';
package/dist/main.js CHANGED
@@ -2,24 +2,26 @@ import { ColorSchemeScript as t, mantineHtmlProps as e } from "@mantine/core";
2
2
  import { MantineProvider as m } from "./components/MainProvider/MantineProvider.js";
3
3
  import { theme as f } from "./components/theme.js";
4
4
  import { Button as a } from "./components/Button/Button.js";
5
- import { Input as d } from "./components/Inputs/Input.js";
5
+ import { Input as u } from "./components/Inputs/Input.js";
6
6
  import { CardInput as i } from "./components/Inputs/CardInput/CardInput.js";
7
7
  import { MaskedInput as l } from "./components/Inputs/MaskedInput/MaskedInput.js";
8
8
  import { PasswordInput as C } from "./components/Inputs/PasswordInput/PasswordInput.js";
9
9
  import { CvvInput as P } from "./components/Inputs/CvvInput/CvvInput.js";
10
- import { Text as h } from "./components/Text/Text.js";
10
+ import { Loader as h } from "./components/Loader/Loader.js";
11
11
  import { Modal as k } from "./components/Modal/Modal.js";
12
+ import { Text as B } from "./components/Text/Text.js";
12
13
  export {
13
14
  a as Button,
14
15
  i as CardInput,
15
16
  t as ColorSchemeScript,
16
17
  P as CvvInput,
17
- d as Input,
18
+ u as Input,
19
+ h as Loader,
18
20
  m as MantineProvider,
19
21
  l as MaskedInput,
20
22
  k as Modal,
21
23
  C as PasswordInput,
22
- h as Text,
24
+ B as Text,
23
25
  e as mantineHtmlProps,
24
26
  f as theme
25
27
  };
@@ -5,5 +5,5 @@ import './assets/typography.css';const m = {
5
5
  "caption-l-regular": "_caption-l-regular_1la8r_28"
6
6
  };
7
7
  export {
8
- m as t
8
+ m as c
9
9
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kvell-group/ui",
3
3
  "author": "Kvell Group",
4
4
  "private": false,
5
- "version": "1.12.2",
5
+ "version": "1.12.4",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",