@alphakits/ui 2.4.5 → 2.4.7

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.
@@ -1,10 +1,7 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { ButtonArrow as s } from "../button-arrow/component.js";
3
- import n from "./index.module.css.js";
4
- const a = ({ onClick: o, t }) => /* @__PURE__ */ m("button", { className: n.component, type: "button", onClick: o, children: [
5
- /* @__PURE__ */ r(s, { type: "back", size: "s" }),
6
- t("common:back")
7
- ] });
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import m from "@alphakits/icons/dist/BackS";
3
+ import { Button as c } from "../button/component.js";
4
+ const s = ({ onClick: t, t: r }) => /* @__PURE__ */ o(c, { view: "secondary", size: "xs", leftAddons: /* @__PURE__ */ o(m, {}), onClick: t, children: r("common:back") });
8
5
  export {
9
- a as BackButton
6
+ s as BackButton
10
7
  };
@@ -1 +1 @@
1
- :root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--input-clear-icon: url(https://alfabank.st/icons/glyph_cross-circle_m.svg);--input-color: var(--color-text-primary);--input-placeholder-color: color-mix(in srgb, var(--color-text-secondary) 35%, transparent);--input-focus-placeholder-color: color-mix(in srgb, var(--color-text-tertiary) 35%, transparent);--input-with-label-placeholder-color: color-mix(in srgb, var(--color-text-tertiary) 35%, transparent);--input-error-icon-display: flex;--input-success-icon-display: flex;--input-error-icon: url(https://alfabank.st/icons/icon_error_s_color.svg);--input-success-icon: url(https://alfabank.st/icons/icon_ok_s_color.svg);--input-disabled-color: var(--color-text-secondary);--input-read-only-color: var(--color-text-secondary)}.input_XkSq{font-size:16px!important;line-height:20px;font-weight:400;font-family:var(--font-family);position:relative;display:block;width:100%;height:100%;color:var(--input-color);background:none;border:none;margin:0;outline:none;text-overflow:ellipsis;box-sizing:border-box;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.input_XkSq::placeholder{transition:opacity .2s ease,color .2s ease;color:var(--input-placeholder-color)}.hasLabel_3lW-::placeholder{opacity:0;color:var(--input-with-label-placeholder-color)}.block_Lq9-{width:100%}.clearIcon_951a{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:block;background-image:var(--input-clear-icon);opacity:.3;transition:opacity .2s ease}.clearIcon_951a:hover{opacity:.6}.clearIcon_951a:active{opacity:1}.errorIcon_Z4ac{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-error-icon-display);background-image:url(https://alfabank.st/icons/icon_error_s_color.svg)}.successIcon_yfoM{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-success-icon-display);background-image:url(https://alfabank.st/icons/icon_ok_s_color.svg)}.input_XkSq:disabled{cursor:var(--disabled-cursor);color:var(--input-disabled-color)}.input_XkSq:focus.hasLabel_3lW-::placeholder{opacity:1}.input_XkSq:focus::placeholder{color:var(--input-focus-placeholder-color)}.focusVisible_3hin{outline:2px solid var(--focus-color);outline-offset:2px}.input_XkSq:read-only{cursor:var(--disabled-cursor);color:var(--input-read-only-color)}.input_XkSq:read-only:focus::placeholder{color:var(--input-placeholder-color)}.hasLabel_3lW-:read-only:focus::placeholder{opacity:0}.input_XkSq::-ms-clear{display:none;width:0;height:0}.input_XkSq:-webkit-autofill,.input_XkSq:-webkit-autofill:hover,.input_XkSq:-webkit-autofill:focus,.input_XkSq:-webkit-autofill:active{-webkit-transition:background-color 999999s ease-in-out 0s;transition:background-color 999999s ease-in-out 0s;-webkit-box-shadow:0 0 0 30px #ffffff00 inset!important}
1
+ :root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--input-clear-icon: url(https://alfabank.st/icons/glyph_cross-circle_m.svg);--input-color: var(--color-text-primary);--input-placeholder-color: color-mix(in srgb, var(--color-text-secondary) 35%, transparent);--input-focus-placeholder-color: color-mix(in srgb, var(--color-text-tertiary, var(--color-text-secondary)) 35%, transparent);--input-with-label-placeholder-color: color-mix(in srgb, var(--color-text-tertiary, var(--color-text-secondary)) 35%, transparent);--input-error-icon-display: flex;--input-success-icon-display: flex;--input-error-icon: url(https://alfabank.st/icons/icon_error_s_color.svg);--input-success-icon: url(https://alfabank.st/icons/icon_ok_s_color.svg);--input-disabled-color: var(--color-text-secondary);--input-read-only-color: var(--color-text-secondary)}.input_XkSq{font-size:16px!important;line-height:20px;font-weight:400;font-family:var(--font-family);position:relative;display:block;width:100%;height:100%;color:var(--input-color);background:none;border:none;margin:0;outline:none;text-overflow:ellipsis;box-sizing:border-box;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.input_XkSq::placeholder{transition:opacity .2s ease,color .2s ease;color:var(--input-placeholder-color)}.hasLabel_3lW-::placeholder{opacity:0;color:var(--input-with-label-placeholder-color)}.block_Lq9-{width:100%}.clearIcon_951a{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:block;background-image:var(--input-clear-icon);opacity:.3;transition:opacity .2s ease}.clearIcon_951a:hover{opacity:.6}.clearIcon_951a:active{opacity:1}.errorIcon_Z4ac{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-error-icon-display);background-image:url(https://alfabank.st/icons/icon_error_s_color.svg)}.successIcon_yfoM{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-success-icon-display);background-image:url(https://alfabank.st/icons/icon_ok_s_color.svg)}.input_XkSq:disabled{cursor:var(--disabled-cursor);color:var(--input-disabled-color)}.input_XkSq:focus.hasLabel_3lW-::placeholder{opacity:1}.input_XkSq:focus::placeholder{color:var(--input-focus-placeholder-color)}.focusVisible_3hin{outline:2px solid var(--focus-color);outline-offset:2px}.input_XkSq:read-only{cursor:var(--disabled-cursor);color:var(--input-read-only-color)}.input_XkSq:read-only:focus::placeholder{color:var(--input-placeholder-color)}.hasLabel_3lW-:read-only:focus::placeholder{opacity:0}.input_XkSq::-ms-clear{display:none;width:0;height:0}.input_XkSq:-webkit-autofill,.input_XkSq:-webkit-autofill:hover,.input_XkSq:-webkit-autofill:focus,.input_XkSq:-webkit-autofill:active{-webkit-transition:background-color 999999s ease-in-out 0s;transition:background-color 999999s ease-in-out 0s;-webkit-box-shadow:0 0 0 30px #ffffff00 inset!important;-webkit-text-fill-color:var(--input-color)!important;caret-color:var(--input-color)}
@@ -1,77 +1,79 @@
1
- import { jsxs as w, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as k, jsx as i } from "react/jsx-runtime";
2
+ import y from "@alphakits/icons/dist/CloseM";
2
3
  import b from "classnames";
3
- import { useState as v, useLayoutEffect as x, useCallback as k, useEffect as E } from "react";
4
- import { ButtonArrow as d } from "../../../button-arrow/component.js";
5
- import { showConfirm as g } from "../../../confirm-popup/component.js";
6
- import s from "./index.module.css.js";
4
+ import { useState as v, useLayoutEffect as x, useCallback as w, useEffect as E } from "react";
5
+ import { Button as g } from "../../../button/component.js";
6
+ import { showConfirm as F } from "../../../confirm-popup/component.js";
7
+ import t from "./index.module.css.js";
7
8
  const C = {
8
9
  s: 488,
9
10
  m: 888,
10
11
  full: "96%"
11
- }, h = 102, F = (e) => e === "full" ? `calc(-96vw - ${h}px)` : -C[e] - h, R = ({ modal: e, t: r, index: a, dirtyModals: m, closeModal: l, currentModalId: c }) => {
12
- const f = F(e.props.size), [y, p] = v(f);
12
+ }, d = 102, N = (e) => e === "full" ? `calc(-96vw - ${d}px)` : -C[e] - d, j = ({ modal: e, t: r, index: f, dirtyModals: a, closeModal: l, currentModalId: c }) => {
13
+ const m = N(e.props.size), [h, p] = v(m);
13
14
  x(() => {
14
15
  const o = requestAnimationFrame(() => p(0));
15
16
  return () => cancelAnimationFrame(o);
16
17
  }, [e.id]);
17
- const u = k(
18
- (o) => m[o] ? g({
18
+ const u = w(
19
+ (o) => a[o] ? F({
19
20
  title: r("common:exitConfirm"),
20
21
  confirmText: r("common:Да"),
21
22
  cancelText: r("common:Нет"),
22
23
  confirmView: "negative"
23
24
  }) : Promise.resolve(!0),
24
25
  // eslint-disable-next-line react-hooks/exhaustive-deps
25
- [m, r]
26
- ), t = k(
26
+ [a, r]
27
+ ), n = w(
27
28
  async (o) => {
28
- const { id: n } = e;
29
- await u(o || n) && (p(f), setTimeout(() => {
30
- e.props.closeCallback && e.props.closeCallback(), l(o || n);
29
+ const { id: s } = e;
30
+ await u(o || s) && (p(m), setTimeout(() => {
31
+ e.props.closeCallback && e.props.closeCallback(), l(o || s);
31
32
  }, 250));
32
33
  },
33
- [l, u, e, f]
34
+ [l, u, e, m]
34
35
  );
35
36
  return E(() => {
36
- const o = (n) => {
37
- (n.key === "27" || n.key === "Escape") && t(c);
37
+ const o = (s) => {
38
+ (s.key === "27" || s.key === "Escape") && n(c);
38
39
  };
39
40
  return e.id === c && window?.addEventListener("keydown", o), () => {
40
41
  window?.removeEventListener("keydown", o);
41
42
  };
42
- }, [t, c, e.id]), /* @__PURE__ */ w(
43
+ }, [n, c, e.id]), /* @__PURE__ */ k(
43
44
  "div",
44
45
  {
45
- className: s.container,
46
+ className: t.container,
46
47
  style: {
47
- zIndex: 9999998 + a
48
+ zIndex: 9999998 + f
48
49
  },
49
50
  children: [
50
51
  /* @__PURE__ */ i(
51
52
  "div",
52
53
  {
53
- className: b(s.right, s.content),
54
+ className: b(t.right, t.content),
54
55
  style: {
55
- zIndex: 9999999 + a,
56
+ zIndex: 9999999 + f,
56
57
  width: C[e.props.size],
57
- right: y
58
+ right: h
58
59
  },
59
- children: /* @__PURE__ */ w("div", { className: s.inner, children: [
60
+ children: /* @__PURE__ */ k("div", { className: t.inner, children: [
60
61
  /* @__PURE__ */ i(
61
62
  e.modal,
62
63
  {
63
64
  ...e.props,
64
65
  modalId: e.id,
65
- close: () => t()
66
+ close: () => n()
66
67
  }
67
68
  ),
68
- e.props.showCloser !== !1 && /* @__PURE__ */ i(
69
- d,
69
+ /* @__PURE__ */ i(
70
+ g,
70
71
  {
71
- className: s.button,
72
- size: "s",
73
- type: "close",
74
- onClick: () => t()
72
+ className: t.button,
73
+ view: "secondary",
74
+ size: "xs",
75
+ leftAddons: /* @__PURE__ */ i(y, {}),
76
+ onClick: () => n()
75
77
  }
76
78
  )
77
79
  ] })
@@ -80,10 +82,10 @@ const C = {
80
82
  /* @__PURE__ */ i(
81
83
  "button",
82
84
  {
83
- className: s.bg,
85
+ className: t.bg,
84
86
  "aria-label": "close_backdrop",
85
87
  type: "button",
86
- onClick: () => t()
88
+ onClick: () => n()
87
89
  }
88
90
  )
89
91
  ]
@@ -91,5 +93,5 @@ const C = {
91
93
  );
92
94
  };
93
95
  export {
94
- R as Modal
96
+ j as Modal
95
97
  };
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { ModalObject, ModalSize, OwnModalProps, TFunction } from '../types';
3
3
  export declare const useModal: (t: TFunction) => {
4
- openModal: <T>(modal: React.FC<T>, size?: ModalSize, showCloser?: boolean) => (props?: OwnModalProps<T>, closeCallback?: () => void) => void;
4
+ openModal: <T>(modal: React.FC<T>, size?: ModalSize) => (props?: OwnModalProps<T>, closeCallback?: () => void) => void;
5
5
  modals: ModalObject[];
6
6
  setModalDirty: (id: string, isDirty: boolean) => void;
7
7
  currentModalId: string;
@@ -1,41 +1,40 @@
1
- import d, { useRef as S, useCallback as s, useEffect as b } from "react";
2
- import { v4 as h } from "uuid";
3
- import { deletePropertyById as v } from "../utils/delete-property-by-id.js";
4
- const x = (n) => {
5
- const [r, l] = d.useState([]), [f, a] = d.useState(""), [p, c] = d.useState({}), u = S(n);
1
+ import d, { useRef as R, useCallback as r, useEffect as S } from "react";
2
+ import { v4 as b } from "uuid";
3
+ import { deletePropertyById as h } from "../utils/delete-property-by-id.js";
4
+ const w = (n) => {
5
+ const [s, l] = d.useState([]), [f, a] = d.useState(""), [p, c] = d.useState({}), u = R(n);
6
6
  u.current = n;
7
- const i = s((t) => {
8
- c((e) => v(e, t)), l((e) => e.filter((o) => o.id !== t));
9
- }, []), M = s((t) => {
7
+ const i = r((t) => {
8
+ c((e) => h(e, t)), l((e) => e.filter((o) => o.id !== t));
9
+ }, []), M = r((t) => {
10
10
  l((e) => [...e, t]), a(t.id);
11
- }, []), m = s((t, e) => {
11
+ }, []), m = r((t, e) => {
12
12
  t && c((o) => o[t] === e ? o : {
13
13
  ...o,
14
14
  [t]: e
15
15
  });
16
16
  }, []);
17
- return b(() => {
18
- const t = [...r].pop()?.id;
19
- a(t || ""), document.body.style.overflow = r.length ? "hidden" : "unset";
20
- }, [r]), {
21
- openModal: s(
22
- (t, e = "s", o = !0) => (y, I) => {
23
- const R = h();
17
+ return S(() => {
18
+ const t = [...s].pop()?.id;
19
+ a(t || ""), document.body.style.overflow = s.length ? "hidden" : "unset";
20
+ }, [s]), {
21
+ openModal: r(
22
+ (t, e = "s") => (o, y) => {
23
+ const I = b();
24
24
  M({
25
- id: R,
25
+ id: I,
26
26
  modal: t,
27
27
  props: {
28
28
  size: e,
29
- showCloser: o,
30
- closeCallback: I,
29
+ closeCallback: y,
31
30
  t: u.current,
32
- ...y
31
+ ...o
33
32
  }
34
33
  });
35
34
  },
36
35
  [M]
37
36
  ),
38
- modals: r,
37
+ modals: s,
39
38
  setModalDirty: m,
40
39
  currentModalId: f,
41
40
  dirtyModals: p,
@@ -43,5 +42,5 @@ const x = (n) => {
43
42
  };
44
43
  };
45
44
  export {
46
- x as useModal
45
+ w as useModal
47
46
  };
@@ -4,7 +4,6 @@ type ModalProps = {
4
4
  close: () => void;
5
5
  modalId?: string;
6
6
  size: ModalSize;
7
- showCloser?: boolean;
8
7
  t: TFunction;
9
8
  } & unknown;
10
9
  export type TFunction = (field: string, options?: {
@@ -20,7 +19,7 @@ export type ModalObject = {
20
19
  props: ModalProps;
21
20
  };
22
21
  export type ContextProps = {
23
- openModal: <T>(modal: React.FC<T>, size?: ModalSize, showCloser?: boolean) => (props?: OwnModalProps<T>, closeCallback?: () => void) => void;
22
+ openModal: <T>(modal: React.FC<T>, size?: ModalSize) => (props?: OwnModalProps<T>, closeCallback?: () => void) => void;
24
23
  modals: ModalObject[];
25
24
  currentModalId: ModalObject['id'];
26
25
  setModalDirty: (id: ModalObject['id'], isDirty: boolean) => void;
@@ -16,7 +16,6 @@ export type SidepanelProps = {
16
16
  bottomAddons?: React.ReactNode;
17
17
  dataTestId?: string;
18
18
  noCloser?: boolean;
19
- showCloser?: boolean;
20
19
  noStickyFooter?: boolean;
21
20
  noStickyHeader?: boolean;
22
21
  children?: React.ReactNode;
@@ -1,48 +1,46 @@
1
- import { jsx as e, jsxs as v } from "react/jsx-runtime";
2
- import N from "classnames";
3
- import x from "react";
4
- import { FlexColumns as S } from "../flex-columns/component.js";
5
- import { SidepanelHeader as g } from "../sidepanel-header/component.js";
6
- import { Skeleton as j } from "../skeleton/component.js";
1
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
+ import v from "classnames";
3
+ import N from "react";
4
+ import { FlexColumns as x } from "../flex-columns/component.js";
5
+ import { SidepanelHeader as S } from "../sidepanel-header/component.js";
6
+ import { Skeleton as g } from "../skeleton/component.js";
7
7
  import r from "./index.module.css.js";
8
- const R = ({
8
+ const H = ({
9
9
  dataTestId: o,
10
10
  title: m,
11
11
  loading: i,
12
12
  headerRightAddons: t,
13
13
  subtitle: a,
14
14
  noCloser: l,
15
- showCloser: n,
16
- headerBottomAddons: c,
17
- noStickyFooter: d,
18
- noStickyHeader: p,
15
+ headerBottomAddons: n,
16
+ noStickyFooter: c,
17
+ noStickyHeader: d,
19
18
  bottomAddons: s,
20
- children: f,
21
- ...h
22
- }) => /* @__PURE__ */ e(x.Fragment, { children: i ? /* @__PURE__ */ e(S, { className: r.loader, columns: 1, gr: 20, children: ["s1", "s2", "s3", "s4", "s5", "s6", "s7"].map((u) => /* @__PURE__ */ e(j, { animate: !0, visible: !0, className: r.input }, u)) }) : /* @__PURE__ */ v("div", { children: [
19
+ children: p,
20
+ ...f
21
+ }) => /* @__PURE__ */ e(N.Fragment, { children: i ? /* @__PURE__ */ e(x, { className: r.loader, columns: 1, gr: 20, children: ["s1", "s2", "s3", "s4", "s5", "s6", "s7"].map((h) => /* @__PURE__ */ e(g, { animate: !0, visible: !0, className: r.input }, h)) }) : /* @__PURE__ */ u("div", { children: [
23
22
  /* @__PURE__ */ e(
24
- g,
23
+ S,
25
24
  {
26
25
  title: m,
27
- className: p ? void 0 : r.header,
26
+ className: d ? void 0 : r.header,
28
27
  subtitle: a,
29
28
  noCloser: l,
30
- showCloser: n,
31
29
  dataTestId: o,
32
30
  rightAddons: t,
33
- bottomAddons: c,
34
- ...h
31
+ bottomAddons: n,
32
+ ...f
35
33
  }
36
34
  ),
37
- /* @__PURE__ */ e("div", { className: r.content, children: f }),
35
+ /* @__PURE__ */ e("div", { className: r.content, children: p }),
38
36
  s && /* @__PURE__ */ e(
39
37
  "div",
40
38
  {
41
- className: N(r.footer, { [r.noSticky]: d }),
39
+ className: v(r.footer, { [r.noSticky]: c }),
42
40
  children: s
43
41
  }
44
42
  )
45
43
  ] }) });
46
44
  export {
47
- R as Sidepanel
45
+ H as Sidepanel
48
46
  };
@@ -13,7 +13,6 @@ export type SidepanelHeaderProps = {
13
13
  rightAddons?: React.ReactNode;
14
14
  bottomAddons?: React.ReactNode;
15
15
  noCloser?: boolean;
16
- showCloser?: boolean;
17
16
  dataTestId?: string;
18
17
  subtitle?: string;
19
18
  } & Back;
@@ -1,13 +1,13 @@
1
1
  import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
2
  import p from "classnames";
3
- import { BackButton as g } from "../back-button/component.js";
4
- import { FlexColumns as w } from "../flex-columns/component.js";
3
+ import { BackButton as f } from "../back-button/component.js";
4
+ import { FlexColumns as g } from "../flex-columns/component.js";
5
5
  import { Typography as t } from "../typography/component.js";
6
6
  import e from "./index.module.css.js";
7
- const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(w, { columns: 1, gr: 4, className: e.title, children: [
7
+ const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(g, { columns: 1, gr: 4, className: e.title, children: [
8
8
  /* @__PURE__ */ r(t.Title, { color: "primary", tag: "div", view: "small", weight: "bold", children: m }),
9
9
  l && /* @__PURE__ */ r(t.Text, { view: "title", weight: "regular", color: "secondary", children: l })
10
- ] }), u = ({
10
+ ] }), j = ({
11
11
  className: m,
12
12
  dataTestId: l,
13
13
  title: o,
@@ -16,17 +16,16 @@ const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(w, { columns: 1, gr:
16
16
  subtitle: c,
17
17
  t: d,
18
18
  bottomAddons: n,
19
- noCloser: f,
20
- showCloser: v
19
+ noCloser: v
21
20
  }) => /* @__PURE__ */ a("div", { "data-test-id": l, className: p(e.wrapper, m), children: [
22
21
  (i || o || s) && /* @__PURE__ */ a("div", { className: e.heading, children: [
23
- i && d && /* @__PURE__ */ r(g, { onClick: i, t: d }),
22
+ i && d && /* @__PURE__ */ r(f, { onClick: i, t: d }),
24
23
  !i && o && /* @__PURE__ */ r(h, { title: o, subtitle: c }),
25
24
  s && /* @__PURE__ */ r(
26
25
  "div",
27
26
  {
28
27
  className: p(e.rightAddons, {
29
- [e.noCloser]: !!f || v === !1
28
+ [e.noCloser]: !!v
30
29
  }),
31
30
  children: s
32
31
  }
@@ -36,5 +35,5 @@ const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(w, { columns: 1, gr:
36
35
  !!n && /* @__PURE__ */ r("div", { className: e.bottomAddons, children: n })
37
36
  ] });
38
37
  export {
39
- u as SidepanelHeader
38
+ j as SidepanelHeader
40
39
  };
@@ -1 +1 @@
1
- :root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--toast-plate-bg-color: var(--color-bg-secondary-inverted);--toast-plate-bg-color-negative: var(--color-bg-negative);--toast-plate-bg-color-positive: var(--color-bg-positive);--toast-plate-border-radius: 8px;--toast-plate-title-font-weight: 700;--toast-plate-action-align: center;--toast-plate-action-padding: 0 var(--gap-2xl);--toast-plate-action-divider-display: block}.component_2FCo{position:relative;display:inline-flex;flex-direction:column;box-sizing:border-box;border-radius:var(--toast-plate-border-radius);color:var(--color-text-primary);min-height:56px;width:100%;padding:var(--gap-m);background-color:var(--toast-plate-bg-color)}.component_2FCo.hasCloser_ig0b{padding-right:56px}.component_2FCo.block_aZI2{display:flex;width:100%}.component_2FCo.positive_k8le{background-color:color-mix(in srgb,var(--color-bg-positive) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-positive)}.component_2FCo.positive_k8le .checkmark_Uk-P svg{color:var(--color-graphic-positive)}.component_2FCo.attention_qo9d{background-color:color-mix(in srgb,var(--color-bg-attention) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-attention)}.component_2FCo.attention_qo9d .checkmark_Uk-P svg{color:var(--color-graphic-attention)}.component_2FCo.negative_rdTB{background-color:color-mix(in srgb,var(--color-bg-negative) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-negative)}.component_2FCo.negative_rdTB .checkmark_Uk-P svg{color:var(--color-graphic-negative)}.component_2FCo.default_yyLQ{background-color:color-mix(in srgb,var(--color-bg-accent) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-accent)}.component_2FCo.default_yyLQ .checkmark_Uk-P svg{color:var(--color-graphic-accent)}.component_2FCo.neutral_KAat{background-color:var(--color-bg-secondary);border:1px solid var(--color-border-primary)}.component_2FCo.neutral_KAat .checkmark_Uk-P svg{color:var(--color-graphic-secondary)}.component_2FCo.black_c7gB{background-color:var(--color-bg-secondary);border:none;color:var(--color-text-primary)}.component_2FCo.black_c7gB .checkmark_Uk-P svg{color:var(--color-graphic-positive)}.component_2FCo.compact_hOwR{min-height:0;min-height:initial;padding:var(--gap-xs) var(--gap-s);border-radius:6px}.component_2FCo.compact_hOwR.hasCloser_ig0b{padding-right:36px}.component_2FCo.compact_hOwR .contentWrap_-P3J{align-items:center}.component_2FCo.compact_hOwR .checkmark_Uk-P{display:flex;align-items:center;flex-shrink:0}:is(.component_2FCo.compact_hOwR .checkmark_Uk-P) svg{width:20px;height:20px}.component_2FCo.compact_hOwR .content_ING2{padding-left:var(--gap-xs);justify-content:center}.component_2FCo.compact_hOwR .title_QZFU{font-size:13px;line-height:24px;font-weight:500;font-family:var(--font-family);font-weight:600;margin-bottom:0}.component_2FCo.compact_hOwR .children_tKSv{font-size:13px;line-height:24px;font-weight:500;font-family:var(--font-family);margin-bottom:0}.component_2FCo.compact_hOwR .bottomAddons_ixVc{margin-top:var(--gap-xs)}.component_2FCo.compact_hOwR .closeButton_mFhA{top:50%!important;bottom:auto!important;transform:translateY(-50%);right:var(--gap-2xs)!important;color:var(--color-text-secondary)!important}.contentWrap_-P3J{display:flex;justify-content:space-between}.content_ING2{display:flex;flex:1;flex-direction:column;padding-left:12px}.leftAddons_Odkd{display:flex;align-items:flex-start;flex-shrink:0;padding-right:var(--gap-s)}.title_QZFU{font-size:16px;line-height:24px;font-weight:700;font-family:var(--font-family);font-weight:var(--toast-plate-title-font-weight);margin-bottom:4px}.children_tKSv{font-size:13px;line-height:24px;font-weight:500;font-family:var(--font-family);margin-bottom:0}.bottomAddons_ixVc{margin-top:16px}.closeButton_mFhA{display:flex!important;align-items:flex-start!important;position:absolute!important;top:var(--gap-m)!important;bottom:var(--gap-s)!important;right:var(--gap-s)!important;padding:var(--gap-2xs)!important;transition:opacity .2s ease-out!important;cursor:pointer!important;color:var(--color-text-primary)!important}.closeButton_mFhA:hover{opacity:.7!important}.closeButton_mFhA:active{opacity:.5!important}
1
+ :root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--toast-plate-bg-color: var(--color-bg-secondary-inverted);--toast-plate-bg-color-negative: var(--color-bg-negative);--toast-plate-bg-color-positive: var(--color-bg-positive);--toast-plate-border-radius: 8px;--toast-plate-title-font-weight: 700;--toast-plate-action-align: center;--toast-plate-action-padding: 0 var(--gap-2xl);--toast-plate-action-divider-display: block}.component_2FCo{position:relative;display:inline-flex;flex-direction:column;box-sizing:border-box;border-radius:var(--toast-plate-border-radius);color:var(--color-text-primary);min-height:56px;width:100%;padding:var(--gap-m);background-color:var(--toast-plate-bg-color)}.component_2FCo.hasCloser_ig0b{padding-right:56px}.component_2FCo.block_aZI2{display:flex;width:100%}.component_2FCo.positive_k8le{background-color:color-mix(in srgb,var(--color-bg-positive) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-positive)}.component_2FCo.positive_k8le .checkmark_Uk-P svg{color:var(--color-graphic-positive)}.component_2FCo.attention_qo9d{background-color:color-mix(in srgb,var(--color-bg-attention) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-attention)}.component_2FCo.attention_qo9d .checkmark_Uk-P svg{color:var(--color-graphic-attention)}.component_2FCo.negative_rdTB{background-color:color-mix(in srgb,var(--color-bg-negative) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-negative)}.component_2FCo.negative_rdTB .checkmark_Uk-P svg{color:var(--color-graphic-negative)}.component_2FCo.default_yyLQ{background-color:color-mix(in srgb,var(--color-bg-accent) 10%,var(--color-bg-primary));border:1px solid var(--color-bg-accent)}.component_2FCo.default_yyLQ .checkmark_Uk-P svg{color:var(--color-graphic-accent)}.component_2FCo.neutral_KAat{background-color:var(--color-bg-secondary);border:1px solid var(--color-border-primary)}.component_2FCo.neutral_KAat .checkmark_Uk-P svg{color:var(--color-graphic-secondary)}.component_2FCo.black_c7gB{background-color:var(--color-bg-primary-inverted);border:none;color:var(--color-text-primary-inverted)}.component_2FCo.black_c7gB .checkmark_Uk-P svg{color:var(--color-graphic-positive)}.component_2FCo.compact_hOwR{min-height:0;min-height:initial;padding:var(--gap-xs) var(--gap-s);border-radius:6px}.component_2FCo.compact_hOwR.hasCloser_ig0b{padding-right:36px}.component_2FCo.compact_hOwR .contentWrap_-P3J{align-items:center}.component_2FCo.compact_hOwR .checkmark_Uk-P{display:flex;align-items:center;flex-shrink:0}:is(.component_2FCo.compact_hOwR .checkmark_Uk-P) svg{width:20px;height:20px}.component_2FCo.compact_hOwR .content_ING2{padding-left:var(--gap-xs);justify-content:center}.component_2FCo.compact_hOwR .title_QZFU{font-size:13px;line-height:24px;font-weight:500;font-family:var(--font-family);font-weight:600;margin-bottom:0}.component_2FCo.compact_hOwR .children_tKSv{font-size:13px;line-height:24px;font-weight:500;font-family:var(--font-family);margin-bottom:0}.component_2FCo.compact_hOwR .bottomAddons_ixVc{margin-top:var(--gap-xs)}.component_2FCo.compact_hOwR .closeButton_mFhA{top:50%!important;bottom:auto!important;transform:translateY(-50%);right:var(--gap-2xs)!important;color:var(--color-text-primary-inverted)!important;opacity:.6}.contentWrap_-P3J{display:flex;justify-content:space-between}.content_ING2{display:flex;flex:1;flex-direction:column;padding-left:12px}.leftAddons_Odkd{display:flex;align-items:flex-start;flex-shrink:0;padding-right:var(--gap-s)}.title_QZFU{font-size:16px;line-height:24px;font-weight:700;font-family:var(--font-family);font-weight:var(--toast-plate-title-font-weight);margin-bottom:4px}.children_tKSv{font-size:13px;line-height:24px;font-weight:500;font-family:var(--font-family);margin-bottom:0}.bottomAddons_ixVc{margin-top:16px}.closeButton_mFhA{display:flex!important;align-items:flex-start!important;position:absolute!important;top:var(--gap-m)!important;bottom:var(--gap-s)!important;right:var(--gap-s)!important;padding:var(--gap-2xs)!important;transition:opacity .2s ease-out!important;cursor:pointer!important;color:var(--color-text-primary)!important}.closeButton_mFhA:hover{opacity:.7!important}.closeButton_mFhA:active{opacity:.5!important}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1 +0,0 @@
1
- .component_jvHy{font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);display:flex;gap:8px;align-items:center;justify-content:start;background:transparent;outline:none;border:0;cursor:pointer;padding:0;color:var(--color-text-primary)}.component_jvHy:hover{opacity:.8}.component_jvHy:active{opacity:.6}
@@ -1,9 +0,0 @@
1
- import * as __css from './index.css';
2
- export const __cssModule = __css;
3
- const o = "component_jvHy", n = {
4
- component: o
5
- };
6
- export {
7
- o as component,
8
- n as default
9
- };