@alphakits/ui 2.4.3 → 2.4.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.
@@ -1,67 +1,70 @@
1
- import { jsxs as h, jsx as i } from "react/jsx-runtime";
2
- import y from "classnames";
3
- import { useState as E, useLayoutEffect as g, useCallback as k, useEffect as v } from "react";
4
- import { ButtonArrow as x } from "../../../button-arrow/component.js";
5
- import t from "./index.module.css.js";
6
- const C = {
1
+ import { jsxs as w, jsx as i } from "react/jsx-runtime";
2
+ import b from "classnames";
3
+ import { useState as v, useLayoutEffect as x, useCallback as k, useEffect as E } from "react";
4
+ import { ButtonArrow as g } from "../../../button-arrow/component.js";
5
+ import { showConfirm as F } from "../../../confirm-popup/component.js";
6
+ import s from "./index.module.css.js";
7
+ const y = {
7
8
  s: 488,
8
9
  m: 888,
9
10
  full: "96%"
10
- }, w = 102, F = (e) => e === "full" ? `calc(-96vw - ${w}px)` : -C[e] - w, O = ({ modal: e, t: f, index: l, dirtyModals: p, closeModal: a, currentModalId: r }) => {
11
- const c = F(e.props.size), [b, m] = E(c);
12
- g(() => {
13
- const s = requestAnimationFrame(() => m(0));
14
- return () => cancelAnimationFrame(s);
11
+ }, h = 102, N = (e) => e === "full" ? `calc(-96vw - ${h}px)` : -y[e] - h, R = ({ modal: e, t: r, index: a, dirtyModals: m, closeModal: l, currentModalId: c }) => {
12
+ const f = N(e.props.size), [C, p] = v(f);
13
+ x(() => {
14
+ const o = requestAnimationFrame(() => p(0));
15
+ return () => cancelAnimationFrame(o);
15
16
  }, [e.id]);
16
17
  const u = k(
17
- (s) => (
18
- // eslint-disable-next-line no-restricted-globals
19
- !p[s] || confirm(f("common:exitConfirm"))
20
- ),
18
+ (o) => m[o] ? F({
19
+ title: r("common:exitConfirm"),
20
+ confirmText: r("common:yes"),
21
+ cancelText: r("common:no"),
22
+ confirmView: "negative"
23
+ }) : Promise.resolve(!0),
21
24
  // eslint-disable-next-line react-hooks/exhaustive-deps
22
- [p, f]
23
- ), n = k(
24
- (s) => {
25
- const { id: o } = e;
26
- u(s || o) && (m(c), setTimeout(() => {
27
- e.props.closeCallback && e.props.closeCallback(), a(s || o);
25
+ [m, r]
26
+ ), t = k(
27
+ 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);
28
31
  }, 250));
29
32
  },
30
- [a, u, e, c]
33
+ [l, u, e, f]
31
34
  );
32
- return v(() => {
33
- const s = (o) => {
34
- (o.key === "27" || o.key === "Escape") && n(r);
35
+ return E(() => {
36
+ const o = (n) => {
37
+ (n.key === "27" || n.key === "Escape") && t(c);
35
38
  };
36
- return e.id === r && window?.addEventListener("keydown", s), () => {
37
- window?.removeEventListener("keydown", s);
39
+ return e.id === c && window?.addEventListener("keydown", o), () => {
40
+ window?.removeEventListener("keydown", o);
38
41
  };
39
- }, [n, r, e.id]), /* @__PURE__ */ h(
42
+ }, [t, c, e.id]), /* @__PURE__ */ w(
40
43
  "div",
41
44
  {
42
- className: t.container,
45
+ className: s.container,
43
46
  style: {
44
- zIndex: 9999998 + l
47
+ zIndex: 9999998 + a
45
48
  },
46
49
  children: [
47
50
  /* @__PURE__ */ i(
48
51
  "div",
49
52
  {
50
- className: y(t.right, t.content),
53
+ className: b(s.right, s.content),
51
54
  style: {
52
- zIndex: 9999999 + l,
53
- width: C[e.props.size],
54
- right: b
55
+ zIndex: 9999999 + a,
56
+ width: y[e.props.size],
57
+ right: C
55
58
  },
56
- children: /* @__PURE__ */ h("div", { className: t.inner, children: [
57
- /* @__PURE__ */ i(e.modal, { ...e.props, close: () => n() }),
59
+ children: /* @__PURE__ */ w("div", { className: s.inner, children: [
60
+ /* @__PURE__ */ i(e.modal, { ...e.props, close: () => t() }),
58
61
  e.props.showCloser !== !1 && /* @__PURE__ */ i(
59
- x,
62
+ g,
60
63
  {
61
- className: t.button,
64
+ className: s.button,
62
65
  size: "s",
63
66
  type: "close",
64
- onClick: () => n()
67
+ onClick: () => t()
65
68
  }
66
69
  )
67
70
  ] })
@@ -70,10 +73,10 @@ const C = {
70
73
  /* @__PURE__ */ i(
71
74
  "button",
72
75
  {
73
- className: t.bg,
76
+ className: s.bg,
74
77
  "aria-label": "close_backdrop",
75
78
  type: "button",
76
- onClick: () => n()
79
+ onClick: () => t()
77
80
  }
78
81
  )
79
82
  ]
@@ -81,5 +84,5 @@ const C = {
81
84
  );
82
85
  };
83
86
  export {
84
- O as Modal
87
+ R as Modal
85
88
  };
@@ -1,109 +1,126 @@
1
- import { jsx as r, jsxs as D } from "react/jsx-runtime";
2
- import { offset as L, flip as P, shift as U, arrow as z, useFloating as V, autoUpdate as q } from "@floating-ui/react-dom";
1
+ import { jsx as i, jsxs as D } from "react/jsx-runtime";
2
+ import { offset as L, flip as U, shift as z, arrow as V, useFloating as q, autoUpdate as B } from "@floating-ui/react-dom";
3
3
  import c from "classnames";
4
- import { useRef as g, useMemo as N, useEffect as B, useCallback as G } from "react";
5
- import { CSSTransition as H } from "react-transition-group";
6
- import { Portal as J } from "../portal/component.js";
7
- import { Stack as K } from "../stack/component.js";
8
- import { stackingOrder as Q } from "../stack/context.js";
4
+ import { useRef as g, useMemo as N, useEffect as G, useCallback as H } from "react";
5
+ import { CSSTransition as J } from "react-transition-group";
6
+ import { Portal as K } from "../portal/component.js";
7
+ import { Stack as Q } from "../stack/component.js";
8
+ import { stackingOrder as W } from "../stack/context.js";
9
9
  import e from "./index.module.css.js";
10
- const W = {
10
+ const X = {
11
11
  timeout: 150
12
- }, X = {
12
+ }, Y = {
13
13
  enter: e.enter,
14
14
  enterActive: e.enterActive,
15
15
  exit: e.exit,
16
16
  exitActive: e.exitActive
17
- }, Y = H, Z = {
17
+ }, Z = J, tt = {
18
18
  top: "bottom",
19
19
  right: "left",
20
20
  bottom: "top",
21
21
  left: "right"
22
- }, ct = ({
23
- children: R,
24
- getPortalContainer: b,
25
- transition: m = W,
26
- anchorElement: A,
22
+ }, mt = ({
23
+ children: b,
24
+ getPortalContainer: R,
25
+ transition: m = X,
26
+ anchorElement: h,
27
27
  offset: n = [0, 0],
28
28
  withArrow: o = !1,
29
- withTransition: T = !0,
30
- position: h = "left",
31
- preventFlip: f,
32
- popperClassName: y,
29
+ withTransition: y = !0,
30
+ position: A = "left",
31
+ preventFlip: d,
32
+ popperClassName: T,
33
33
  arrowClassName: E,
34
34
  className: O,
35
- open: i,
35
+ open: s,
36
36
  dataTestId: C,
37
37
  update: l,
38
38
  transitionDuration: F = `${m.timeout}ms`,
39
- zIndex: I = Q.POPOVER
39
+ zIndex: I = W.POPOVER
40
40
  }) => {
41
- const d = g(null), u = g(null), M = N(
41
+ const f = g(null), u = g(null), M = N(
42
42
  () => [
43
43
  L({
44
44
  crossAxis: n[0],
45
45
  mainAxis: n[1]
46
46
  }),
47
- ...f ? [] : [P()],
48
- U({ padding: 4 }),
49
- ...o ? [z({ element: d })] : []
47
+ ...d ? [] : [U()],
48
+ z({ padding: 4 }),
49
+ ...o ? [V({ element: f })] : []
50
50
  ],
51
- [n[0], n[1], f, o]
51
+ [n[0], n[1], d, o]
52
52
  ), {
53
53
  refs: { setFloating: p },
54
54
  floatingStyles: _,
55
55
  middlewareData: a,
56
- placement: x,
57
- update: S
58
- } = V({
59
- placement: h,
60
- open: i,
61
- elements: { reference: A },
62
- whileElementsMounted: i ? q : void 0,
56
+ placement: v,
57
+ update: x,
58
+ isPositioned: k
59
+ } = q({
60
+ placement: A,
61
+ open: s,
62
+ elements: { reference: h },
63
+ whileElementsMounted: s ? B : void 0,
63
64
  middleware: M
64
65
  });
65
- B(() => {
66
- l && (l.current = S);
67
- }, [S, l]);
68
- const k = N(() => {
66
+ G(() => {
67
+ l && (l.current = x);
68
+ }, [x, l]);
69
+ const P = N(() => {
69
70
  if (!o || !a.arrow)
70
71
  return {};
71
- const { x: t, y: s } = a.arrow, j = x.split("-")[0], w = Z[j] ?? "bottom";
72
+ const { x: t, y: r } = a.arrow, j = v.split("-")[0], w = tt[j] ?? "bottom";
72
73
  return {
73
74
  position: "absolute",
74
75
  left: t != null ? `${t}px` : void 0,
75
- top: s != null ? `${s}px` : void 0,
76
+ top: r != null ? `${r}px` : void 0,
76
77
  right: "",
77
78
  bottom: "",
78
79
  [w]: "-4px"
79
80
  };
80
- }, [o, a.arrow, x]), $ = G(
81
+ }, [o, a.arrow, v]), $ = H(
81
82
  (t) => {
82
83
  u.current = t, p(t);
83
84
  },
84
85
  [p]
85
- ), v = (t, s) => /* @__PURE__ */ r(
86
+ ), S = (t, r) => /* @__PURE__ */ i(
86
87
  "div",
87
88
  {
88
89
  ref: $,
89
90
  style: {
90
91
  zIndex: t,
91
- ..._
92
+ ..._,
93
+ /**
94
+ * Скрываем поповер до первого замера floating-ui: иначе
95
+ * на первом рендере `floatingStyles` ещё содержат дефолт
96
+ * `top: 0, left: 0, transform: translate(0, 0)`, а CSSTransition
97
+ * уже стартует fade-in. Получается визуальный "прыжок" из
98
+ * угла портала в правильную позицию. `isPositioned` становится
99
+ * `true` после первого измерения — к этому моменту координаты
100
+ * корректные и можно показывать.
101
+ *
102
+ * Не используем `display: none` или `opacity`, потому что:
103
+ * — `display: none` ломает измерения floating-ui (нулевые
104
+ * размеры) и блокирует CSSTransition;
105
+ * — `opacity` уже используется CSSTransition'ом для fade-in,
106
+ * переписывать его здесь — испортить анимацию.
107
+ */
108
+ visibility: k ? "visible" : "hidden"
92
109
  },
93
110
  className: c(e.component, O),
94
111
  children: /* @__PURE__ */ D(
95
112
  "div",
96
113
  {
97
114
  "data-test-id": C,
98
- className: c(e.inner, y),
99
- style: s,
115
+ className: c(e.inner, T),
116
+ style: r,
100
117
  children: [
101
- R,
102
- o && /* @__PURE__ */ r(
118
+ b,
119
+ o && /* @__PURE__ */ i(
103
120
  "div",
104
121
  {
105
- ref: d,
106
- style: k,
122
+ ref: f,
123
+ style: P,
107
124
  className: c(e.arrow, E)
108
125
  }
109
126
  )
@@ -112,18 +129,18 @@ const W = {
112
129
  )
113
130
  }
114
131
  );
115
- return /* @__PURE__ */ r(K, { value: I, children: (t) => /* @__PURE__ */ r(J, { getPortalContainer: b, children: T ? /* @__PURE__ */ r(
116
- Y,
132
+ return /* @__PURE__ */ i(Q, { value: I, children: (t) => /* @__PURE__ */ i(K, { getPortalContainer: R, children: y ? /* @__PURE__ */ i(
133
+ Z,
117
134
  {
118
135
  unmountOnExit: !0,
119
- classNames: X,
136
+ classNames: Y,
120
137
  ...m,
121
- in: i,
138
+ in: s,
122
139
  nodeRef: u,
123
- children: v(t, { transitionDuration: F })
140
+ children: S(t, { transitionDuration: F })
124
141
  }
125
- ) : i && v(t) }) });
142
+ ) : s && S(t) }) });
126
143
  };
127
144
  export {
128
- ct as Popover
145
+ mt as Popover
129
146
  };
@@ -0,0 +1,9 @@
1
+ export declare const locations: {
2
+ id: number;
3
+ title: string;
4
+ }[];
5
+ export declare const questrooms: {
6
+ id: number;
7
+ title: string;
8
+ locationId: number;
9
+ }[];
@@ -0,0 +1,82 @@
1
+ const t = [
2
+ {
3
+ id: 1,
4
+ title: "Tambov"
5
+ },
6
+ {
7
+ id: 2,
8
+ title: "Moscow"
9
+ },
10
+ {
11
+ id: 3,
12
+ title: "Voronezh"
13
+ },
14
+ {
15
+ id: 4,
16
+ title: "Lipetsk"
17
+ },
18
+ {
19
+ id: 5,
20
+ title: "SPB"
21
+ }
22
+ ], o = [
23
+ {
24
+ id: 1,
25
+ title: "Questroom 1",
26
+ locationId: 1
27
+ },
28
+ {
29
+ id: 4,
30
+ title: "Questroom 4",
31
+ locationId: 2
32
+ },
33
+ {
34
+ id: 5,
35
+ title: "Questroom 5",
36
+ locationId: 2
37
+ },
38
+ {
39
+ id: 6,
40
+ title: "Questroom 6",
41
+ locationId: 2
42
+ },
43
+ {
44
+ id: 7,
45
+ title: "Questroom 7",
46
+ locationId: 3
47
+ },
48
+ {
49
+ id: 10,
50
+ title: "Questroom 10",
51
+ locationId: 4
52
+ },
53
+ {
54
+ id: 11,
55
+ title: "Questroom 11",
56
+ locationId: 4
57
+ },
58
+ {
59
+ id: 12,
60
+ title: "Questroom 12",
61
+ locationId: 4
62
+ },
63
+ {
64
+ id: 13,
65
+ title: "Questroom 13",
66
+ locationId: 5
67
+ },
68
+ {
69
+ id: 14,
70
+ title: "Questroom 14",
71
+ locationId: 5
72
+ },
73
+ {
74
+ id: 15,
75
+ title: "Questroom 15",
76
+ locationId: 5
77
+ }
78
+ ];
79
+ export {
80
+ t as locations,
81
+ o as questrooms
82
+ };
@@ -18,6 +18,7 @@ export declare const defaultThemes: {
18
18
  readonly thirdly: "#E7E8EA";
19
19
  readonly quaternary: "#D5D6DC";
20
20
  readonly 'special-super-light': "#FDFDFD";
21
+ readonly 'primary-inverted': "#0E0E0E";
21
22
  readonly 'secondary-inverted': "#1C1C1E";
22
23
  readonly 'special-big-objects': "#F8F8F9";
23
24
  readonly positive: "#63C956";
@@ -46,6 +47,7 @@ export declare const defaultThemes: {
46
47
  readonly attention: "#F19938";
47
48
  readonly accent: "#2174EF";
48
49
  readonly 'accent-special': "#649EF4";
50
+ readonly 'primary-inverted': "#F8F8F8";
49
51
  readonly 'secondary-inverted': "#85858D";
50
52
  readonly main: "#2174ef";
51
53
  readonly static: "#FFFFFF";
@@ -92,6 +94,7 @@ export declare const defaultThemes: {
92
94
  readonly thirdly: "#27272A";
93
95
  readonly quaternary: "#36363A";
94
96
  readonly 'special-super-light': "#18181970";
97
+ readonly 'primary-inverted': "#FFFFFF";
95
98
  readonly 'secondary-inverted': "#F2F3F5";
96
99
  readonly 'special-big-objects': "#171718";
97
100
  readonly positive: "#32D74B";
@@ -120,6 +123,7 @@ export declare const defaultThemes: {
120
123
  readonly attention: "#F19938";
121
124
  readonly accent: "#2174EF";
122
125
  readonly 'accent-special': "#649EF4";
126
+ readonly 'primary-inverted': "#0E0E0E";
123
127
  readonly 'secondary-inverted': "#86868A";
124
128
  readonly main: "#2174ef";
125
129
  readonly static: "#FFFFFF";
@@ -18,6 +18,7 @@ const t = {
18
18
  thirdly: "#E7E8EA",
19
19
  quaternary: "#D5D6DC",
20
20
  "special-super-light": "#FDFDFD",
21
+ "primary-inverted": "#0E0E0E",
21
22
  "secondary-inverted": "#1C1C1E",
22
23
  "special-big-objects": "#F8F8F9",
23
24
  positive: "#63C956",
@@ -46,6 +47,7 @@ const t = {
46
47
  attention: "#F19938",
47
48
  accent: "#2174EF",
48
49
  "accent-special": "#649EF4",
50
+ "primary-inverted": "#F8F8F8",
49
51
  "secondary-inverted": "#85858D",
50
52
  main: "#2174ef",
51
53
  static: "#FFFFFF"
@@ -92,6 +94,7 @@ const t = {
92
94
  thirdly: "#27272A",
93
95
  quaternary: "#36363A",
94
96
  "special-super-light": "#18181970",
97
+ "primary-inverted": "#FFFFFF",
95
98
  "secondary-inverted": "#F2F3F5",
96
99
  "special-big-objects": "#171718",
97
100
  positive: "#32D74B",
@@ -120,6 +123,7 @@ const t = {
120
123
  attention: "#F19938",
121
124
  accent: "#2174EF",
122
125
  "accent-special": "#649EF4",
126
+ "primary-inverted": "#0E0E0E",
123
127
  "secondary-inverted": "#86868A",
124
128
  main: "#2174ef",
125
129
  static: "#FFFFFF"
@@ -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-primary-inverted);color:var(--color-text-primary-inverted)}.component_2FCo.black_c7gB .checkmark_Uk-P svg{color:var(--color-graphic-primaty-inverted)}.component_2FCo.black_c7gB .closeButton_mFhA{color:var(--color-text-primary-inverted)!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, #0E0E0E);color:var(--color-text-primary-inverted, #FFFFFF)}.component_2FCo.black_c7gB .checkmark_Uk-P svg{color:var(--color-graphic-primary-inverted, #FFFFFF)}.component_2FCo.black_c7gB .closeButton_mFhA{color:var(--color-text-primary-inverted, #FFFFFF)!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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -23,8 +23,8 @@
23
23
  "build": "yarn build:clean && yarn build:index && yarn build:js && yarn build:vars",
24
24
  "test": "echo \"no tests\"",
25
25
  "start": "vite",
26
- "storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 --ci",
27
- "build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -o storybook-static",
26
+ "storybook": "storybook dev -p 6006 --no-open",
27
+ "build-storybook": "STORYBOOK_DISABLE_TELEMETRY=1 storybook build -o storybook-static",
28
28
  "lint:css": "stylelint ./src/**/*.css",
29
29
  "lint:scripts": "biome lint",
30
30
  "lint": "yarn lint:css && yarn lint:scripts",
@@ -62,47 +62,32 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@alphakits/icons": "1.25.0",
65
- "@babel/core": "^7.29.0",
66
- "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",
67
- "@babel/plugin-transform-optional-chaining": "^7.28.6",
68
- "@babel/preset-env": "^7.29.3",
69
- "@babel/preset-react": "^7.28.5",
70
- "@babel/preset-typescript": "^7.28.5",
71
65
  "@biomejs/biome": "2.4.15",
72
66
  "@commitlint/cli": "8.3.5",
73
67
  "@commitlint/config-conventional": "8.3.4",
74
68
  "@semantic-release/git": "^10.0.0",
75
69
  "@semantic-release/gitlab": "^7.0.3",
76
70
  "@semantic-release/npm": "^8.0.2",
77
- "@storybook/addon-actions": "6.1.16",
78
- "@storybook/addon-contexts": "^5.3.21",
79
- "@storybook/addon-docs": "6.1.16",
80
- "@storybook/addon-essentials": "6.1.21",
81
- "@storybook/addon-knobs": "6.1.16",
82
- "@storybook/addon-links": "6.1.16",
83
- "@storybook/addon-storysource": "6.1.16",
84
- "@storybook/addons": "6.1.16",
85
- "@storybook/react": "6.1.16",
86
- "@storybook/source-loader": "^6.1.21",
71
+ "@storybook/addon-essentials": "^8.6.14",
72
+ "@storybook/addon-links": "^8.6.14",
73
+ "@storybook/react": "^8.6.14",
74
+ "@storybook/react-vite": "^8.6.14",
75
+ "@storybook/theming": "^8.6.14",
87
76
  "@testing-library/jest-dom": "^5.1.1",
88
77
  "@testing-library/react": "^10.0.1",
89
78
  "@testing-library/react-hooks": "3.2.1",
90
79
  "@testing-library/user-event": "^10.0.0",
91
80
  "@types/autosize": "3.0.7",
92
- "@types/babel__core": "^7",
93
- "@types/babel__preset-env": "^7",
94
81
  "@types/classnames": "^2.2.10",
95
82
  "@types/element-closest": "^3.0.0",
96
83
  "@types/jest": "^25.1.4",
97
84
  "@types/node": "^20.17.0",
98
- "@types/optimize-css-assets-webpack-plugin": "^5",
99
85
  "@types/react": "^19.0.0",
100
86
  "@types/react-dom": "^19.0.0",
101
87
  "@types/react-transition-group": "^4.4.1",
102
88
  "@types/react-window": "1.8.2",
103
89
  "@types/uuid": "8.3.0",
104
90
  "@vitejs/plugin-react-swc": "^3.7.2",
105
- "babel-loader": "8.4.1",
106
91
  "conventional-changelog-cli": "2.0.31",
107
92
  "cssnano": "4.1.11",
108
93
  "cz-conventional-changelog": "3.1.0",
@@ -110,21 +95,18 @@
110
95
  "glob": "^10.4.5",
111
96
  "husky": "^4.2.5",
112
97
  "lint-staged": "^10.2.13",
113
- "mini-css-extract-plugin": "1.6.2",
114
- "optimize-css-assets-webpack-plugin": "5.0.8",
115
98
  "postcss": "^8.4.47",
116
99
  "postcss-custom-media": "^10.0.0",
117
100
  "postcss-each": "^1.1.0",
118
101
  "postcss-for": "^2.1.1",
119
102
  "postcss-import": "^16.1.0",
120
- "postcss-loader": "4.3.0",
121
103
  "postcss-mixins": "^11.0.3",
122
104
  "postcss-preset-env": "^10.0.0",
123
105
  "react": "19.2.6",
124
- "react-docgen-typescript-loader": "^3.7.1",
125
106
  "react-dom": "19.2.6",
126
107
  "semantic-release": "^18.0.0",
127
108
  "standard-version": "7.1.0",
109
+ "storybook": "^8.6.14",
128
110
  "stylelint": "^13.6.1",
129
111
  "typescript": "~5.4.5",
130
112
  "typescript-plugin-css-modules": "^5.1.0",