@kvell-group/ui 1.12.18 → 1.13.0

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,9 @@
1
+ import './assets/Input.css';const s = "_input_1d20c_1", t = "_section_1d20c_19", c = "_label_1d20c_24", e = "_error_1d20c_28", n = {
2
+ input: s,
3
+ section: t,
4
+ label: c,
5
+ error: e
6
+ };
7
+ export {
8
+ n as b
9
+ };
@@ -0,0 +1 @@
1
+ ._track_g524i_1{--switch-height: 1rem;--switch-width: calc(1.75rem * var(--mantine-scale));--switch-color: var(--mantine-color-background-toggle-active-0)}input:not(:checked)+._track_g524i_1{background-color:var(--mantine-color-background-toggle-default-0)}._description_g524i_11{margin-top:-1px;--label-offset-start: 1rem;color:var(--mantine-color-primary)}
@@ -1 +1 @@
1
- ._h6-bold_1wb73_2{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-h6);line-height:var(--mantine-line-height-h6);letter-spacing:var(--mantine-spacing-h6)}._body-s-medium_1wb73_11{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-body-s-medium);line-height:var(--mantine-line-height-body-s);letter-spacing:var(--mantine-spacing-body-s)}h2._body-m-medium_1wb73_19,._body-m-medium_1wb73_19{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-body-m);line-height:var(--mantine-line-height-body-m);letter-spacing:var(--mantine-spacing-body-m)}._body-m-bold_1wb73_28{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-body-m);line-height:var(--mantine-line-height-body-m);letter-spacing:var(--mantine-spacing-body-m)}._body-l-bold_1wb73_36{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-body-l);line-height:var(--mantine-line-height-body-l);letter-spacing:var(--mantine-spacing-body-l)}._caption-l-medium_1wb73_45{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-spacing-caption-l)}p._caption-l-regular_1wb73_53,._caption-l-regular_1wb73_53{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-spacing-caption-l)}._caption-m-regular_1wb73_62{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-caption-m);line-height:var(--mantine-line-height-caption-m);letter-spacing:var(--mantine-spacing-caption-m)}
1
+ ._h6-bold_k821l_2{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-h6);line-height:var(--mantine-line-height-h6);letter-spacing:var(--mantine-spacing-h6)}._body-l-bold_k821l_11{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-body-l);line-height:var(--mantine-line-height-body-l);letter-spacing:var(--mantine-spacing-body-l)}._body-m-bold_k821l_19{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-body-m);line-height:var(--mantine-line-height-body-m);letter-spacing:var(--mantine-spacing-body-m)}h2._body-m-medium_k821l_27,._body-m-medium_k821l_27{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-body-m);line-height:var(--mantine-line-height-body-m);letter-spacing:var(--mantine-spacing-body-m)}._body-s-medium_k821l_36{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-body-s);line-height:var(--mantine-line-height-body-s);letter-spacing:var(--mantine-spacing-body-s)}._body-s-regular_k821l_44{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-body-s);line-height:var(--mantine-line-height-body-s);letter-spacing:var(--mantine-spacing-body-s)}._caption-l-medium_k821l_53{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-spacing-caption-l)}p._caption-l-regular_k821l_61,._caption-l-regular_k821l_61{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-spacing-caption-l)}._caption-m-regular_k821l_70{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-caption-m);line-height:var(--mantine-line-height-caption-m);letter-spacing:var(--mantine-spacing-caption-m)}
@@ -0,0 +1,16 @@
1
+ function a(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number") t += r;
4
+ else if (typeof r == "object") if (Array.isArray(r)) {
5
+ var o = r.length;
6
+ for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
7
+ } else for (n in r) r[n] && (t && (t += " "), t += n);
8
+ return t;
9
+ }
10
+ function i() {
11
+ for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
12
+ return t;
13
+ }
14
+ export {
15
+ i as c
16
+ };
@@ -1,20 +1,21 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { MaskedInput as o } from "../MaskedInput/MaskedInput.js";
3
- import { c as m, b as r } from "../../../clsx-oLHujfaf.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { MaskedInput as a } from "../MaskedInput/MaskedInput.js";
3
+ import { b as m } from "../../../Input.module-CPh0cNNI.js";
4
+ import { c as r } from "../../../clsx-OuTLNxxd.js";
4
5
  import { forwardRef as p } from "react";
5
6
  import { CARD_CVV_MASK as n } from "../../../constants/masks.js";
6
- import { IMask as e } from "react-imask";
7
- import '../../../assets/CvvInput.css';const i = "_input_17dgl_9", c = {
8
- input: i
9
- }, { input: u, ...f } = r, l = m(u, c.input), C = e.createMask({ mask: n }), x = p((s, t) => /* @__PURE__ */ a(
10
- o,
7
+ import { IMask as i } from "react-imask";
8
+ import '../../../assets/CvvInput.css';const e = "_input_17dgl_9", c = {
9
+ input: e
10
+ }, { input: f, ...u } = m, l = r(f, c.input), C = i.createMask({ mask: n }), b = p((s, t) => /* @__PURE__ */ o(
11
+ a,
11
12
  {
12
13
  ref: t,
13
14
  ...s,
14
15
  mask: C,
15
- classNames: { ...f, input: l }
16
+ classNames: { ...u, input: l }
16
17
  }
17
18
  ));
18
19
  export {
19
- x as CvvInput
20
+ b as CvvInput
20
21
  };
@@ -1,8 +1,9 @@
1
- import { TextInput as t } from "@mantine/core";
2
- import { c as s, b as o } from "../../clsx-oLHujfaf.js";
3
- import { c as a } from "../../typography.module-Bz7qOBla.js";
4
- import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../constants/font-variants.js";
5
- const { input: m, error: p, ...n } = o, r = a[e], c = s(m, r), i = s(p, r), I = t.withProps({
1
+ import { TextInput as o } from "@mantine/core";
2
+ import { b as t } from "../../Input.module-CPh0cNNI.js";
3
+ import { c as a } from "../../typography.module-krUfTmwf.js";
4
+ import { c as s } from "../../clsx-OuTLNxxd.js";
5
+ import { CAPTION_L_REGULAR_FONT_VARIANT as m } from "../../constants/font-variants.js";
6
+ const { input: e, error: p, ...n } = t, r = a[m], c = s(e, r), i = s(p, r), I = o.withProps({
6
7
  classNames: { ...n, input: c, error: i }
7
8
  });
8
9
  export {
@@ -1,10 +1,11 @@
1
1
  import { PasswordInput as t } from "@mantine/core";
2
- import { c as s, b as a } from "../../../clsx-oLHujfaf.js";
3
- import { c as r } from "../../../typography.module-Bz7qOBla.js";
2
+ import { b as r } from "../../../Input.module-CPh0cNNI.js";
3
+ import { c as a } from "../../../typography.module-krUfTmwf.js";
4
+ import { c as s } from "../../../clsx-OuTLNxxd.js";
4
5
  import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../../constants/font-variants.js";
5
6
  import '../../../assets/PasswordInput.css';const n = "_section_1lzoc_1", c = {
6
7
  section: n
7
- }, { input: i, error: m, ...p } = a, o = r[e], l = s(i, o), N = s(m, o), P = t.withProps({
8
+ }, { input: m, error: i, ...p } = r, o = a[e], l = s(m, o), N = s(i, o), P = t.withProps({
8
9
  classNames: {
9
10
  ...p,
10
11
  input: l,
@@ -1,5 +1,5 @@
1
1
  import { Modal as o } from "@mantine/core";
2
- import { c as s } from "../../typography.module-Bz7qOBla.js";
2
+ import { c as s } from "../../typography.module-krUfTmwf.js";
3
3
  import { BODY_M_MEDIUM_FONT_VARIANT as t } from "../../constants/font-variants.js";
4
4
  import '../../assets/Modal.css';const e = "_root_3afvh_1", a = "_content_3afvh_6", n = "_header_3afvh_18", _ = "_inner_3afvh_22", c = "_close_3afvh_30", r = {
5
5
  root: e,
@@ -0,0 +1,4 @@
1
+ export declare const Switch: import('react').ForwardRefExoticComponent<import('@mantine/core').SwitchProps & import('react').RefAttributes<HTMLInputElement> & {
2
+ component?: any;
3
+ renderRoot?: (props: Record<string, any>) => React.ReactNode;
4
+ }>;
@@ -0,0 +1,17 @@
1
+ import { Switch as c } from "@mantine/core";
2
+ import { c as i } from "../../typography.module-krUfTmwf.js";
3
+ import { c as t } from "../../clsx-OuTLNxxd.js";
4
+ import { CAPTION_L_MEDIUM_FONT_VARIANT as o } from "../../constants/font-variants.js";
5
+ import '../../assets/Switch.css';const r = "_track_g524i_1", a = "_description_g524i_11", s = {
6
+ track: r,
7
+ description: a
8
+ }, e = t(
9
+ s.description,
10
+ i[o]
11
+ ), d = c.withProps({
12
+ classNames: { ...s, description: e },
13
+ size: "xs"
14
+ });
15
+ export {
16
+ d as Switch
17
+ };
@@ -0,0 +1 @@
1
+ export { Switch } from './Switch';
@@ -0,0 +1,4 @@
1
+ import { Switch as t } from "./Switch.js";
2
+ export {
3
+ t as Switch
4
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { Text as m } from "@mantine/core";
3
3
  import { forwardRef as s } from "react";
4
- import { c as a } from "../../typography.module-Bz7qOBla.js";
4
+ import { c as a } from "../../typography.module-krUfTmwf.js";
5
5
  const c = s((t, o) => /* @__PURE__ */ r(
6
6
  m,
7
7
  {
@@ -27,6 +27,9 @@ const a = {
27
27
  "text-base-tertiary": e("#0d112666"),
28
28
  "text-base-quaternary": e("#0a0f2940"),
29
29
  "text-status-destructive": e("#e6483d"),
30
+ //toggle
31
+ "background-toggle-active": e("#26bd6c"),
32
+ "background-toggle-default": e("#babdc5"),
30
33
  //typography
31
34
  "typography-secondary": e("#91989e")
32
35
  },
@@ -94,7 +97,7 @@ const a = {
94
97
  h6: "24px",
95
98
  "body-m": "18px",
96
99
  "body-l": "20px",
97
- "body-s-medium": "16px",
100
+ "body-s": "16px",
98
101
  "caption-l": "14px",
99
102
  "caption-m": "12px",
100
103
  // mantine default variables
@@ -1,9 +1,10 @@
1
1
  export declare const H6_BOLD_FONT_VARIANT: "h6-bold";
2
2
  export declare const BODY_M_MEDIUM_FONT_VARIANT: "body-m-medium";
3
- export declare const BODY_S_MEDIUM_FONT_VARIANT: "body-s-medium";
4
3
  export declare const BODY_M_BOLD_FONT_VARIANT: "body-m-bold";
5
4
  export declare const BODY_L_BOLD_FONT_VARIANT: "body-l-bold";
5
+ export declare const BODY_S_MEDIUM_FONT_VARIANT: "body-s-medium";
6
+ export declare const BODY_S_REGULAR_FONT_VARIANT: "body-s-regular";
6
7
  export declare const CAPTION_L_MEDIUM_FONT_VARIANT: "caption-l-medium";
7
8
  export declare const CAPTION_L_REGULAR_FONT_VARIANT: "caption-l-regular";
8
9
  export declare const CAPTION_M_REGULAR_FONT_VARIANT: "caption-m-regular";
9
- export declare const FontVariants: ("body-s-medium" | "h6-bold" | "body-m-medium" | "body-m-bold" | "body-l-bold" | "caption-l-medium" | "caption-l-regular" | "caption-m-regular")[];
10
+ export declare const FontVariants: ("h6-bold" | "body-m-medium" | "body-m-bold" | "body-l-bold" | "body-s-medium" | "body-s-regular" | "caption-l-medium" | "caption-l-regular" | "caption-m-regular")[];
@@ -1,21 +1,26 @@
1
- const _ = "h6-bold", o = "body-m-medium", A = "body-s-medium", N = "body-m-bold", T = "body-l-bold", O = "caption-l-medium", t = "caption-l-regular", n = "caption-m-regular", I = [
1
+ const _ = "h6-bold", A = "body-m-medium", o = "body-m-bold", N = "body-l-bold", T = "body-s-medium", O = "body-s-regular", t = "caption-l-medium", n = "caption-l-regular", I = "caption-m-regular", R = [
2
+ //heading
2
3
  _,
3
- o,
4
- A,
4
+ //body
5
5
  N,
6
+ A,
7
+ o,
6
8
  T,
7
9
  O,
10
+ //caption
8
11
  t,
9
- n
12
+ n,
13
+ I
10
14
  ];
11
15
  export {
12
- T as BODY_L_BOLD_FONT_VARIANT,
13
- N as BODY_M_BOLD_FONT_VARIANT,
14
- o as BODY_M_MEDIUM_FONT_VARIANT,
15
- A as BODY_S_MEDIUM_FONT_VARIANT,
16
- O as CAPTION_L_MEDIUM_FONT_VARIANT,
17
- t as CAPTION_L_REGULAR_FONT_VARIANT,
18
- n as CAPTION_M_REGULAR_FONT_VARIANT,
19
- I as FontVariants,
16
+ N as BODY_L_BOLD_FONT_VARIANT,
17
+ o as BODY_M_BOLD_FONT_VARIANT,
18
+ A as BODY_M_MEDIUM_FONT_VARIANT,
19
+ T as BODY_S_MEDIUM_FONT_VARIANT,
20
+ O as BODY_S_REGULAR_FONT_VARIANT,
21
+ t as CAPTION_L_MEDIUM_FONT_VARIANT,
22
+ n as CAPTION_L_REGULAR_FONT_VARIANT,
23
+ I as CAPTION_M_REGULAR_FONT_VARIANT,
24
+ R as FontVariants,
20
25
  _ as H6_BOLD_FONT_VARIANT
21
26
  };
package/dist/main.d.ts CHANGED
@@ -9,4 +9,5 @@ export { PasswordInput } from './components/Inputs/PasswordInput';
9
9
  export { CvvInput } from './components/Inputs/CvvInput';
10
10
  export { Loader } from './components/Loader';
11
11
  export { Modal } from './components/Modal';
12
+ export { Switch } from './components/Switch';
12
13
  export { Text } from './components/Text';
package/dist/main.js CHANGED
@@ -3,25 +3,27 @@ import { MantineProvider as m } from "./components/MainProvider/MantineProvider.
3
3
  import { theme as f } from "./components/theme.js";
4
4
  import { Button as a } from "./components/Button/Button.js";
5
5
  import { Input as u } from "./components/Inputs/Input.js";
6
- import { CardInput as i } from "./components/Inputs/CardInput/CardInput.js";
7
- import { MaskedInput as l } from "./components/Inputs/MaskedInput/MaskedInput.js";
8
- import { PasswordInput as C } from "./components/Inputs/PasswordInput/PasswordInput.js";
9
- import { CvvInput as P } from "./components/Inputs/CvvInput/CvvInput.js";
10
- import { Loader as h } from "./components/Loader/Loader.js";
11
- import { Modal as k } from "./components/Modal/Modal.js";
12
- import { Text as B } from "./components/Text/Text.js";
6
+ import { CardInput as I } from "./components/Inputs/CardInput/CardInput.js";
7
+ import { MaskedInput as c } from "./components/Inputs/MaskedInput/MaskedInput.js";
8
+ import { PasswordInput as l } from "./components/Inputs/PasswordInput/PasswordInput.js";
9
+ import { CvvInput as C } from "./components/Inputs/CvvInput/CvvInput.js";
10
+ import { Loader as P } from "./components/Loader/Loader.js";
11
+ import { Modal as w } from "./components/Modal/Modal.js";
12
+ import { Switch as B } from "./components/Switch/Switch.js";
13
+ import { Text as L } from "./components/Text/Text.js";
13
14
  export {
14
15
  a as Button,
15
- i as CardInput,
16
+ I as CardInput,
16
17
  t as ColorSchemeScript,
17
- P as CvvInput,
18
+ C as CvvInput,
18
19
  u as Input,
19
- h as Loader,
20
+ P as Loader,
20
21
  m as MantineProvider,
21
- l as MaskedInput,
22
- k as Modal,
23
- C as PasswordInput,
24
- B as Text,
22
+ c as MaskedInput,
23
+ w as Modal,
24
+ l as PasswordInput,
25
+ B as Switch,
26
+ L as Text,
25
27
  e as mantineHtmlProps,
26
28
  f as theme
27
29
  };
@@ -0,0 +1,14 @@
1
+ import './assets/typography.css';const l = {
2
+ "h6-bold": "_h6-bold_k821l_2",
3
+ "body-l-bold": "_body-l-bold_k821l_11",
4
+ "body-m-bold": "_body-m-bold_k821l_19",
5
+ "body-m-medium": "_body-m-medium_k821l_27",
6
+ "body-s-medium": "_body-s-medium_k821l_36",
7
+ "body-s-regular": "_body-s-regular_k821l_44",
8
+ "caption-l-medium": "_caption-l-medium_k821l_53",
9
+ "caption-l-regular": "_caption-l-regular_k821l_61",
10
+ "caption-m-regular": "_caption-m-regular_k821l_70"
11
+ };
12
+ export {
13
+ l as c
14
+ };
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.18",
5
+ "version": "1.13.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
@@ -1,23 +0,0 @@
1
- import './assets/clsx.css';const e = "_input_1d20c_1", a = "_section_1d20c_19", i = "_label_1d20c_24", l = "_error_1d20c_28", _ = {
2
- input: e,
3
- section: a,
4
- label: i,
5
- error: l
6
- };
7
- function c(r) {
8
- var o, n, t = "";
9
- if (typeof r == "string" || typeof r == "number") t += r;
10
- else if (typeof r == "object") if (Array.isArray(r)) {
11
- var s = r.length;
12
- for (o = 0; o < s; o++) r[o] && (n = c(r[o])) && (t && (t += " "), t += n);
13
- } else for (n in r) r[n] && (t && (t += " "), t += n);
14
- return t;
15
- }
16
- function u() {
17
- for (var r, o, n = 0, t = "", s = arguments.length; n < s; n++) (r = arguments[n]) && (o = c(r)) && (t && (t += " "), t += o);
18
- return t;
19
- }
20
- export {
21
- _ as b,
22
- u as c
23
- };
@@ -1,13 +0,0 @@
1
- import './assets/typography.css';const _ = {
2
- "h6-bold": "_h6-bold_1wb73_2",
3
- "body-s-medium": "_body-s-medium_1wb73_11",
4
- "body-m-medium": "_body-m-medium_1wb73_19",
5
- "body-m-bold": "_body-m-bold_1wb73_28",
6
- "body-l-bold": "_body-l-bold_1wb73_36",
7
- "caption-l-medium": "_caption-l-medium_1wb73_45",
8
- "caption-l-regular": "_caption-l-regular_1wb73_53",
9
- "caption-m-regular": "_caption-m-regular_1wb73_62"
10
- };
11
- export {
12
- _ as c
13
- };
File without changes