mimir-ui-kit 1.57.1 → 1.58.1

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 +1 @@
1
- ._chip_wsovh_2{--chip-cursor: default;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:var(--chip-height);color:var(--chip-color);font-size:var(--chip-font-size);line-height:var(--chip-line-height);-webkit-column-gap:var(--mimir-space-2xs);-moz-column-gap:var(--mimir-space-2xs);column-gap:var(--mimir-space-2xs);background-color:var(--chip-bg-color);border-radius:var(--chip-border-radius);cursor:default;cursor:var(--chip-cursor);-webkit-transition:background-color .3s ease,border-color .15s ease,color .15s ease,fill .15s ease,-webkit-box-shadow .15s ease;transition:background-color .3s ease,border-color .15s ease,color .15s ease,fill .15s ease,-webkit-box-shadow .15s ease;transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease,-webkit-box-shadow .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-left:var(--chip-space);padding-right:var(--chip-space);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._chip_wsovh_2._with-action_wsovh_19,._chip_wsovh_2._with-interactive_wsovh_19{--chip-cursor: pointer}._chip_wsovh_2._with-action_wsovh_19:hover,._chip_wsovh_2._with-interactive_wsovh_19:hover{color:var(--chip-color-hover);background-color:var(--chip-bg-color-hover)}._chip_wsovh_2._with-action_wsovh_19:active,._chip_wsovh_2._with-interactive_wsovh_19:active{color:var(--chip-color-active);background-color:var(--chip-bg-color-active)}._chip_wsovh_2._with-action_wsovh_19:focus-visible,._chip_wsovh_2._with-interactive_wsovh_19:focus-visible{-webkit-box-shadow:0 0 2px var(--sapphire-normal);box-shadow:0 0 2px var(--sapphire-normal)}._chip_wsovh_2._with-action_wsovh_19 svg,._chip_wsovh_2._with-interactive_wsovh_19 svg{color:currentcolor;fill:currentcolor}._chip_wsovh_2._with-action_wsovh_19 svg path,._chip_wsovh_2._with-interactive_wsovh_19 svg path{color:currentcolor;fill:currentcolor}._chip_wsovh_2._disabled_wsovh_41{--chip-color: var(--light-text);--chip-bg-color: var(--disabled);--chip-bg-color-hover: var(--disabled-color);--chip-bg-color-active: var(--disabled-color);--chip-cursor: not-allowed}._chip_wsovh_2._disabled_wsovh_41:focus-visible{-webkit-box-shadow:none;box-shadow:none}._chip_wsovh_2._squareBorder_wsovh_51{--chip-border-radius: var(--mimir-control-radius)}._xs_wsovh_55{--chip-font-size: var(--mimir-size-text-s);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m-s);--chip-height: 24px;--chip-space: var(--mimir-space-xs)}._s_wsovh_51{--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m-s);--chip-height: 28px;--chip-space: var(--mimir-space-s)}._sm_wsovh_71{--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m);--chip-height: 34px;--chip-space: var(--mimir-space-s)}._m_wsovh_79{--chip-font-size: var(--mimir-size-text-m);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m);--chip-height: 40px;--chip-space: var(--mimir-space-m)}._sapphire_wsovh_87{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--sapphire-normal);--chip-bg-color-hover: var(--sapphire-hover);--chip-bg-color-active: var(--sapphire-active)}._citrine_wsovh_96{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--citrine-normal);--chip-bg-color-hover: var(--citrine-hover);--chip-bg-color-active: var(--citrine-active)}._asphalt_wsovh_105{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--asphalt-normal);--chip-bg-color-hover: var(--asphalt-hover);--chip-bg-color-active: var(--asphalt-active)}._gray_wsovh_114{--chip-color: var(--dark-text);--chip-color-hover: var(--sapphire-normal);--chip-color-active: var(--light-text);--chip-bg-color: var(--gray-normal);--chip-bg-color-hover: var(--gray-normal);--chip-bg-color-active: var(--gray-active)}._white_wsovh_123{--chip-color: var(--dark-text);--chip-color-hover: var(--sapphire-normal);--chip-color-active: var(--light-text);--chip-bg-color: var(--white-normal);--chip-bg-color-hover: var(--white-normal);--chip-bg-color-active: var(--white-active)}._green_wsovh_132{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--green-normal);--chip-bg-color-hover: var(--green-hover);--chip-bg-color-active: var(--green-active)}._green-light_wsovh_141{--chip-color: var(--green);--chip-color-hover: var(--green);--chip-color-active: var(--green);--chip-bg-color: var(--success-bg-active);--chip-bg-color-hover: var(--success-bg-active);--chip-bg-color-active: var(--success-bg-active)}._green-light_wsovh_141._xs_wsovh_55{--chip-space: var(--mimir-space-xs);--chip-font-size: var(--mimir-size-text-s);--chip-line-height: var(--mimir-line-height-text-xss1);padding:var(--mimir-space-2xs) var(--mimir-space-xs)}._green-light_wsovh_141._sm_wsovh_71{--chip-color: var(--success-normal);--chip-color-hover: var(--success-normal);--chip-color-active: var(--success-normal);--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xss);padding:var(--mimir-space-xs)}._orange-light_wsovh_164{--chip-color: var(--citrine-100);--chip-color-hover: var(--citrine-100);--chip-color-active: var(--citrine-100);--chip-bg-color: var(--citrine-20);--chip-bg-color-hover: var(--citrine-20);--chip-bg-color-active: var(--citrine-20)}._orange-light_wsovh_164._xs_wsovh_55{--chip-space: var(--mimir-space-xs);--chip-font-size: var(--mimir-size-text-s);--chip-line-height: var(--mimir-line-height-text-xss1);padding:var(--mimir-space-2xs) var(--mimir-space-xs)}._yellow-light_wsovh_179{--chip-color: var(--citrine-100);--chip-color-hover: var(--citrine-100);--chip-color-active: var(--citrine-100);--chip-bg-color: var(--alarm-bg-active);--chip-bg-color-hover: var(--alarm-bg-active);--chip-bg-color-active: var(--alarm-bg-active)}._yellow-light_wsovh_179._sm_wsovh_71{--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xss);padding:var(--mimir-space-xs)}
1
+ ._chip_1ezrc_2{--chip-cursor: default;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:var(--chip-height);color:var(--chip-color);font-size:var(--chip-font-size);line-height:var(--chip-line-height);-webkit-column-gap:var(--mimir-space-2xs);-moz-column-gap:var(--mimir-space-2xs);column-gap:var(--mimir-space-2xs);background-color:var(--chip-bg-color);border-radius:var(--chip-border-radius);cursor:default;cursor:var(--chip-cursor);-webkit-transition:background-color .3s ease,border-color .15s ease,color .15s ease,fill .15s ease,-webkit-box-shadow .15s ease;transition:background-color .3s ease,border-color .15s ease,color .15s ease,fill .15s ease,-webkit-box-shadow .15s ease;transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease,-webkit-box-shadow .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-left:var(--chip-space);padding-right:var(--chip-space);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._chip_1ezrc_2._with-action_1ezrc_19,._chip_1ezrc_2._with-interactive_1ezrc_19{--chip-cursor: pointer}._chip_1ezrc_2._with-action_1ezrc_19:hover,._chip_1ezrc_2._with-interactive_1ezrc_19:hover{color:var(--chip-color-hover);background-color:var(--chip-bg-color-hover)}._chip_1ezrc_2._with-action_1ezrc_19:active,._chip_1ezrc_2._with-interactive_1ezrc_19:active{color:var(--chip-color-active);background-color:var(--chip-bg-color-active)}._chip_1ezrc_2._with-action_1ezrc_19:focus-visible,._chip_1ezrc_2._with-interactive_1ezrc_19:focus-visible{-webkit-box-shadow:0 0 2px var(--sapphire-normal);box-shadow:0 0 2px var(--sapphire-normal)}._chip_1ezrc_2._with-action_1ezrc_19 svg,._chip_1ezrc_2._with-interactive_1ezrc_19 svg{color:currentcolor;fill:currentcolor}._chip_1ezrc_2._with-action_1ezrc_19 svg path,._chip_1ezrc_2._with-interactive_1ezrc_19 svg path{color:currentcolor;fill:currentcolor}._chip_1ezrc_2._disabled_1ezrc_41{--chip-color: var(--light-text);--chip-bg-color: var(--disabled);--chip-bg-color-hover: var(--disabled-color);--chip-bg-color-active: var(--disabled-color);--chip-cursor: not-allowed}._chip_1ezrc_2._disabled_1ezrc_41:focus-visible{-webkit-box-shadow:none;box-shadow:none}._chip_1ezrc_2._squareBorder_1ezrc_51{--chip-border-radius: var(--mimir-control-radius)}._xs_1ezrc_55{--chip-font-size: var(--mimir-size-text-s);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m-s);--chip-height: 24px;--chip-space: var(--mimir-space-xs)}._s_1ezrc_51{--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m-s);--chip-height: 28px;--chip-space: var(--mimir-space-s)}._sm_1ezrc_71{--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m);--chip-height: 34px;--chip-space: var(--mimir-space-s)}._m_1ezrc_79{--chip-font-size: var(--mimir-size-text-m);--chip-line-height: var(--mimir-line-height-text-xs);--chip-border-radius: var(--mimir-control-radius-m);--chip-height: 40px;--chip-space: var(--mimir-space-m)}._sapphire_1ezrc_87{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--sapphire-normal);--chip-bg-color-hover: var(--sapphire-hover);--chip-bg-color-active: var(--sapphire-active)}._citrine_1ezrc_96{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--citrine-normal);--chip-bg-color-hover: var(--citrine-hover);--chip-bg-color-active: var(--citrine-active)}._asphalt_1ezrc_105{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--asphalt-normal);--chip-bg-color-hover: var(--asphalt-hover);--chip-bg-color-active: var(--asphalt-active)}._gray_1ezrc_114{--chip-color: var(--dark-text);--chip-color-hover: var(--sapphire-normal);--chip-color-active: var(--light-text);--chip-bg-color: var(--gray-normal);--chip-bg-color-hover: var(--gray-normal);--chip-bg-color-active: var(--gray-active)}._white_1ezrc_123{--chip-color: var(--dark-text);--chip-color-hover: var(--sapphire-normal);--chip-color-active: var(--light-text);--chip-bg-color: var(--white-normal);--chip-bg-color-hover: var(--white-normal);--chip-bg-color-active: var(--white-active)}._green_1ezrc_132{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--green-normal);--chip-bg-color-hover: var(--green-hover);--chip-bg-color-active: var(--green-active)}._green-light_1ezrc_141{--chip-color: var(--green);--chip-color-hover: var(--green);--chip-color-active: var(--green);--chip-bg-color: var(--success-bg-active);--chip-bg-color-hover: var(--success-bg-active);--chip-bg-color-active: var(--success-bg-active)}._green-light_1ezrc_141._xs_1ezrc_55{--chip-space: var(--mimir-space-xs);--chip-font-size: var(--mimir-size-text-s);--chip-line-height: var(--mimir-line-height-text-xss1);padding:var(--mimir-space-2xs) var(--mimir-space-xs)}._green-light_1ezrc_141._sm_1ezrc_71{--chip-color: var(--success-normal);--chip-color-hover: var(--success-normal);--chip-color-active: var(--success-normal);--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xss);padding:var(--mimir-space-xs)}._orange-light_1ezrc_164{--chip-color: var(--citrine-100);--chip-color-hover: var(--citrine-100);--chip-color-active: var(--citrine-100);--chip-bg-color: var(--citrine-20);--chip-bg-color-hover: var(--citrine-20);--chip-bg-color-active: var(--citrine-20)}._orange-light_1ezrc_164._xs_1ezrc_55{--chip-space: var(--mimir-space-xs);--chip-font-size: var(--mimir-size-text-s);--chip-line-height: var(--mimir-line-height-text-xss1);padding:var(--mimir-space-2xs) var(--mimir-space-xs)}._yellow-light_1ezrc_179{--chip-color: var(--citrine-100);--chip-color-hover: var(--citrine-100);--chip-color-active: var(--citrine-100);--chip-bg-color: var(--alarm-bg-active);--chip-bg-color-hover: var(--alarm-bg-active);--chip-bg-color-active: var(--alarm-bg-active)}._yellow-light_1ezrc_179._sm_1ezrc_71{--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xss);padding:var(--mimir-space-xs)}._red-light_1ezrc_193{--chip-color: var(--error-normal);--chip-color-hover: var(--error-normal);--chip-color-active: var(--error-normal);--chip-bg-color: var(--error-bg-active);--chip-bg-color-hover: var(--error-bg-active);--chip-bg-color-active: var(--error-bg-active)}._red-light_1ezrc_193._sm_1ezrc_71{--chip-font-size: var(--mimir-size-text-l);--chip-line-height: var(--mimir-line-height-text-xss);padding:var(--mimir-space-xs)}
@@ -1,58 +1,59 @@
1
- import { jsxs as m, jsx as d } from "react/jsx-runtime";
2
- import { c as g } from "../../index-DIxK0V-G.js";
1
+ import { jsxs as z, jsx as g } from "react/jsx-runtime";
2
+ import { c as w } from "../../index-DIxK0V-G.js";
3
3
  import { forwardRef as u } from "react";
4
4
  import { EChipSize as f, EChipVariant as x } from "./constants.js";
5
5
  import { Button as B } from "../Button/Button.js";
6
- import '../../assets/Chip.css';const C = "_chip_wsovh_2", b = "_disabled_wsovh_41", q = "_squareBorder_wsovh_51", y = "_xs_wsovh_55", N = "_s_wsovh_51", j = "_sm_wsovh_71", z = "_m_wsovh_79", E = "_sapphire_wsovh_87", I = "_citrine_wsovh_96", S = "_asphalt_wsovh_105", k = "_gray_wsovh_114", A = "_white_wsovh_123", M = "_green_wsovh_132", s = {
6
+ import '../../assets/Chip.css';const C = "_chip_1ezrc_2", v = "_disabled_1ezrc_41", b = "_squareBorder_1ezrc_51", q = "_xs_1ezrc_55", y = "_s_1ezrc_51", N = "_sm_1ezrc_71", j = "_m_1ezrc_79", E = "_sapphire_1ezrc_87", I = "_citrine_1ezrc_96", S = "_asphalt_1ezrc_105", k = "_gray_1ezrc_114", A = "_white_1ezrc_123", M = "_green_1ezrc_132", e = {
7
7
  chip: C,
8
- "with-action": "_with-action_wsovh_19",
9
- "with-interactive": "_with-interactive_wsovh_19",
10
- disabled: b,
11
- squareBorder: q,
12
- xs: y,
13
- s: N,
14
- sm: j,
15
- m: z,
8
+ "with-action": "_with-action_1ezrc_19",
9
+ "with-interactive": "_with-interactive_1ezrc_19",
10
+ disabled: v,
11
+ squareBorder: b,
12
+ xs: q,
13
+ s: y,
14
+ sm: N,
15
+ m: j,
16
16
  sapphire: E,
17
17
  citrine: I,
18
18
  asphalt: S,
19
19
  gray: k,
20
20
  white: A,
21
21
  green: M,
22
- "green-light": "_green-light_wsovh_141",
23
- "orange-light": "_orange-light_wsovh_164",
24
- "yellow-light": "_yellow-light_wsovh_179"
22
+ "green-light": "_green-light_1ezrc_141",
23
+ "orange-light": "_orange-light_1ezrc_164",
24
+ "yellow-light": "_yellow-light_1ezrc_179",
25
+ "red-light": "_red-light_1ezrc_193"
25
26
  }, G = u(
26
- (e, t) => {
27
+ (t, i) => {
27
28
  const {
28
- as: i = "div",
29
- size: r = f.M,
29
+ as: s = "div",
30
+ size: c = f.M,
30
31
  variant: _ = x.Sapphire,
31
- className: h,
32
+ className: o,
32
33
  disabled: a,
33
- withAction: o,
34
+ withAction: r,
34
35
  children: n,
35
- onClose: c,
36
+ onClose: h,
36
37
  squareBorder: l = !1,
37
- isInteractive: w = !1,
38
- ...p
39
- } = e, v = g(
40
- s.chip,
41
- h,
38
+ isInteractive: p = !1,
39
+ ...d
40
+ } = t, m = w(
41
+ e.chip,
42
+ o,
42
43
  {
43
- [s["with-action"]]: o,
44
- [s["with-interactive"]]: w,
45
- [s.disabled]: a
44
+ [e["with-action"]]: r,
45
+ [e["with-interactive"]]: p,
46
+ [e.disabled]: a
46
47
  },
47
- s[_],
48
- s[r],
48
+ e[_],
49
+ e[c],
49
50
  {
50
- [s.squareBorder]: l
51
+ [e.squareBorder]: l
51
52
  }
52
53
  );
53
- return /* @__PURE__ */ m(i, { ref: t, className: v, ...p, children: [
54
+ return /* @__PURE__ */ z(s, { ref: i, className: m, ...d, children: [
54
55
  n,
55
- o && /* @__PURE__ */ d(B, { isIconButton: !0, iconName: "Close16px", onClick: c, clear: !0 })
56
+ r && /* @__PURE__ */ g(B, { isIconButton: !0, iconName: "Close16px", onClick: h, clear: !0 })
56
57
  ] });
57
58
  }
58
59
  );
@@ -13,5 +13,6 @@ export declare enum EChipVariant {
13
13
  Green = "green",
14
14
  GreenLight = "green-light",
15
15
  OrangeLight = "orange-light",
16
- YellowLight = "yellow-light"
16
+ YellowLight = "yellow-light",
17
+ RedLight = "red-light"
17
18
  }
@@ -1,4 +1,4 @@
1
- var g = /* @__PURE__ */ ((e) => (e.XS = "xs", e.S = "s", e.SM = "sm", e.M = "m", e))(g || {}), r = /* @__PURE__ */ ((e) => (e.Sapphire = "sapphire", e.Citrine = "citrine", e.Asphalt = "asphalt", e.Gray = "gray", e.White = "white", e.Green = "green", e.GreenLight = "green-light", e.OrangeLight = "orange-light", e.YellowLight = "yellow-light", e))(r || {});
1
+ var g = /* @__PURE__ */ ((e) => (e.XS = "xs", e.S = "s", e.SM = "sm", e.M = "m", e))(g || {}), r = /* @__PURE__ */ ((e) => (e.Sapphire = "sapphire", e.Citrine = "citrine", e.Asphalt = "asphalt", e.Gray = "gray", e.White = "white", e.Green = "green", e.GreenLight = "green-light", e.OrangeLight = "orange-light", e.YellowLight = "yellow-light", e.RedLight = "red-light", e))(r || {});
2
2
  export {
3
3
  g as EChipSize,
4
4
  r as EChipVariant
@@ -27,6 +27,10 @@ export type TCategoryTab = {
27
27
  * Цвет нижней границы для detailed варианта таба.
28
28
  */
29
29
  borderColor?: string;
30
+ /**
31
+ * Цвет нижней границы по дефолту для detailed варианта таба.
32
+ */
33
+ defaultActive?: boolean;
30
34
  };
31
35
  export type TTabTrailProps = {
32
36
  /**
@@ -1,25 +1,25 @@
1
- import { jsxs as J, jsx as h, Fragment as Ne } from "react/jsx-runtime";
2
- import { c as P } from "../../index-DIxK0V-G.js";
3
- import * as V from "react";
4
- import z, { useState as ne, createContext as ve, useReducer as Se, useMemo as C, useId as he, useRef as ae, useContext as xe, forwardRef as Ae, useEffect as ue } from "react";
5
- import { ETabTrailSize as Fe } from "./constants.js";
6
- import { TabButtons as ke } from "./TabButtons/TabButtons.js";
7
- import { ETabTrailButtonVariant as De } from "./TabButtons/constants.js";
1
+ import { jsxs as j, jsx as h, Fragment as Se } from "react/jsx-runtime";
2
+ import { c as I } from "../../index-DIxK0V-G.js";
3
+ import * as q from "react";
4
+ import V, { useState as ae, createContext as ve, useReducer as Ae, useMemo as C, useId as he, useRef as se, useContext as xe, forwardRef as Fe, useEffect as ue } from "react";
5
+ import { ETabTrailSize as ke } from "./constants.js";
6
+ import { TabButtons as De } from "./TabButtons/TabButtons.js";
7
+ import { ETabTrailButtonVariant as Re } from "./TabButtons/constants.js";
8
8
  import { Icon as be } from "../../icons/Icon.js";
9
- import { NotificationBadge as Re } from "../NotificationBadge/NotificationBadge.js";
10
- import { M as me, W as Q, s as te, y as X, o as W, n as se, H as Z, $ as ge, b as Le, D as _e, a as Y, u as Oe, c as N, e as Me } from "../../keyboard-wis2TUql.js";
11
- import { w as Be } from "../../use-active-press-CnDeVvQq.js";
12
- import { e as We } from "../../use-resolve-button-type-DhFdPxnv.js";
13
- import { f as Ce } from "../../use-is-mounted-MBU4fiLr.js";
14
- import { T as Te, s as Ge } from "../../hidden-CkTYbiNM.js";
15
- import { _ as K, T as re, P as U, F as S } from "../../focus-management-BAl0GmRk.js";
16
- import '../../assets/TabTrail.css';function Ue({ onFocus: e }) {
17
- let [t, n] = ne(!0), r = Ce();
18
- return t ? z.createElement(Te, { as: "button", type: "button", features: Ge.Focusable, onFocus: (a) => {
9
+ import { NotificationBadge as Le } from "../NotificationBadge/NotificationBadge.js";
10
+ import { M as me, W as Y, s as re, y as Q, o as W, n as le, H as X, $ as ge, b as Oe, D as _e, a as K, u as Me, c as N, e as Be } from "../../keyboard-wis2TUql.js";
11
+ import { w as We } from "../../use-active-press-CnDeVvQq.js";
12
+ import { e as Ce } from "../../use-resolve-button-type-DhFdPxnv.js";
13
+ import { f as Ge } from "../../use-is-mounted-MBU4fiLr.js";
14
+ import { T as Te, s as Ue } from "../../hidden-CkTYbiNM.js";
15
+ import { _ as J, T as ne, P as z, F as S } from "../../focus-management-BAl0GmRk.js";
16
+ import '../../assets/TabTrail.css';function ze({ onFocus: e }) {
17
+ let [t, n] = ae(!0), r = Ge();
18
+ return t ? V.createElement(Te, { as: "button", type: "button", features: Ue.Focusable, onFocus: (a) => {
19
19
  a.preventDefault();
20
- let s, l = 50;
20
+ let s, i = 50;
21
21
  function f() {
22
- if (l-- <= 0) {
22
+ if (i-- <= 0) {
23
23
  s && cancelAnimationFrame(s);
24
24
  return;
25
25
  }
@@ -33,8 +33,8 @@ import '../../assets/TabTrail.css';function Ue({ onFocus: e }) {
33
33
  s = requestAnimationFrame(f);
34
34
  } }) : null;
35
35
  }
36
- const Ie = V.createContext(null);
37
- function ze() {
36
+ const Ie = q.createContext(null);
37
+ function Ve() {
38
38
  return { groups: /* @__PURE__ */ new Map(), get(e, t) {
39
39
  var n;
40
40
  let r = this.groups.get(e);
@@ -42,57 +42,57 @@ function ze() {
42
42
  let a = (n = r.get(t)) != null ? n : 0;
43
43
  r.set(t, a + 1);
44
44
  let s = Array.from(r.keys()).indexOf(t);
45
- function l() {
45
+ function i() {
46
46
  let f = r.get(t);
47
47
  f > 1 ? r.set(t, f - 1) : r.delete(t);
48
48
  }
49
- return [s, l];
49
+ return [s, i];
50
50
  } };
51
51
  }
52
- function Ve({ children: e }) {
53
- let t = V.useRef(ze());
54
- return V.createElement(Ie.Provider, { value: t }, e);
52
+ function qe({ children: e }) {
53
+ let t = q.useRef(Ve());
54
+ return q.createElement(Ie.Provider, { value: t }, e);
55
55
  }
56
56
  function Pe(e) {
57
- let t = V.useContext(Ie);
57
+ let t = q.useContext(Ie);
58
58
  if (!t) throw new Error("You must wrap your component in a <StableCollection>");
59
- let n = V.useId(), [r, a] = t.current.get(e, n);
60
- return V.useEffect(() => a, []), r;
59
+ let n = q.useId(), [r, a] = t.current.get(e, n);
60
+ return q.useEffect(() => a, []), r;
61
61
  }
62
- var qe = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(qe || {}), He = ((e) => (e[e.Less = -1] = "Less", e[e.Equal = 0] = "Equal", e[e.Greater = 1] = "Greater", e))(He || {}), je = ((e) => (e[e.SetSelectedIndex = 0] = "SetSelectedIndex", e[e.RegisterTab = 1] = "RegisterTab", e[e.UnregisterTab = 2] = "UnregisterTab", e[e.RegisterPanel = 3] = "RegisterPanel", e[e.UnregisterPanel = 4] = "UnregisterPanel", e))(je || {});
63
- let Je = { 0(e, t) {
62
+ var He = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(He || {}), je = ((e) => (e[e.Less = -1] = "Less", e[e.Equal = 0] = "Equal", e[e.Greater = 1] = "Greater", e))(je || {}), Je = ((e) => (e[e.SetSelectedIndex = 0] = "SetSelectedIndex", e[e.RegisterTab = 1] = "RegisterTab", e[e.UnregisterTab = 2] = "UnregisterTab", e[e.RegisterPanel = 3] = "RegisterPanel", e[e.UnregisterPanel = 4] = "UnregisterPanel", e))(Je || {});
63
+ let Ke = { 0(e, t) {
64
64
  var n;
65
- let r = K(e.tabs, (d) => d.current), a = K(e.panels, (d) => d.current), s = r.filter((d) => {
65
+ let r = J(e.tabs, (d) => d.current), a = J(e.panels, (d) => d.current), s = r.filter((d) => {
66
66
  var x;
67
67
  return !((x = d.current) != null && x.hasAttribute("disabled"));
68
- }), l = { ...e, tabs: r, panels: a };
68
+ }), i = { ...e, tabs: r, panels: a };
69
69
  if (t.index < 0 || t.index > r.length - 1) {
70
- let d = Y(Math.sign(t.index - e.selectedIndex), { [-1]: () => 1, 0: () => Y(Math.sign(t.index), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 });
71
- if (s.length === 0) return l;
72
- let x = Y(d, { 0: () => r.indexOf(s[0]), 1: () => r.indexOf(s[s.length - 1]) });
73
- return { ...l, selectedIndex: x === -1 ? e.selectedIndex : x };
70
+ let d = K(Math.sign(t.index - e.selectedIndex), { [-1]: () => 1, 0: () => K(Math.sign(t.index), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 });
71
+ if (s.length === 0) return i;
72
+ let x = K(d, { 0: () => r.indexOf(s[0]), 1: () => r.indexOf(s[s.length - 1]) });
73
+ return { ...i, selectedIndex: x === -1 ? e.selectedIndex : x };
74
74
  }
75
- let f = r.slice(0, t.index), w = [...r.slice(t.index), ...f].find((d) => s.includes(d));
76
- if (!w) return l;
77
- let v = (n = r.indexOf(w)) != null ? n : e.selectedIndex;
78
- return v === -1 && (v = e.selectedIndex), { ...l, selectedIndex: v };
75
+ let f = r.slice(0, t.index), P = [...r.slice(t.index), ...f].find((d) => s.includes(d));
76
+ if (!P) return i;
77
+ let v = (n = r.indexOf(P)) != null ? n : e.selectedIndex;
78
+ return v === -1 && (v = e.selectedIndex), { ...i, selectedIndex: v };
79
79
  }, 1(e, t) {
80
80
  if (e.tabs.includes(t.tab)) return e;
81
- let n = e.tabs[e.selectedIndex], r = K([...e.tabs, t.tab], (s) => s.current), a = e.selectedIndex;
81
+ let n = e.tabs[e.selectedIndex], r = J([...e.tabs, t.tab], (s) => s.current), a = e.selectedIndex;
82
82
  return e.info.current.isControlled || (a = r.indexOf(n), a === -1 && (a = e.selectedIndex)), { ...e, tabs: r, selectedIndex: a };
83
83
  }, 2(e, t) {
84
84
  return { ...e, tabs: e.tabs.filter((n) => n !== t.tab) };
85
85
  }, 3(e, t) {
86
- return e.panels.includes(t.panel) ? e : { ...e, panels: K([...e.panels, t.panel], (n) => n.current) };
86
+ return e.panels.includes(t.panel) ? e : { ...e, panels: J([...e.panels, t.panel], (n) => n.current) };
87
87
  }, 4(e, t) {
88
88
  return { ...e, panels: e.panels.filter((n) => n !== t.panel) };
89
89
  } }, de = ve(null);
90
90
  de.displayName = "TabsDataContext";
91
- function q(e) {
91
+ function H(e) {
92
92
  let t = xe(de);
93
93
  if (t === null) {
94
94
  let n = new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);
95
- throw Error.captureStackTrace && Error.captureStackTrace(n, q), n;
95
+ throw Error.captureStackTrace && Error.captureStackTrace(n, H), n;
96
96
  }
97
97
  return t;
98
98
  }
@@ -106,124 +106,124 @@ function pe(e) {
106
106
  }
107
107
  return t;
108
108
  }
109
- function Ke(e, t) {
110
- return Y(t.type, Je, e, t);
109
+ function Ye(e, t) {
110
+ return K(t.type, Ke, e, t);
111
111
  }
112
- let Ye = "div";
113
- function Qe(e, t) {
114
- let { defaultIndex: n = 0, vertical: r = !1, manual: a = !1, onChange: s, selectedIndex: l = null, ...f } = e;
115
- const w = r ? "vertical" : "horizontal", v = a ? "manual" : "auto";
116
- let d = l !== null, x = te({ isControlled: d }), A = X(t), [p, u] = Se(Ke, { info: x, selectedIndex: l ?? n, tabs: [], panels: [] }), D = C(() => ({ selectedIndex: p.selectedIndex }), [p.selectedIndex]), R = te(s || (() => {
117
- })), y = te(p.tabs), b = C(() => ({ orientation: w, activation: v, ...p }), [w, v, p]), F = W((o) => (u({ type: 1, tab: o }), () => u({ type: 2, tab: o }))), L = W((o) => (u({ type: 3, panel: o }), () => u({ type: 4, panel: o }))), g = W((o) => {
112
+ let Qe = "div";
113
+ function Xe(e, t) {
114
+ let { defaultIndex: n = 0, vertical: r = !1, manual: a = !1, onChange: s, selectedIndex: i = null, ...f } = e;
115
+ const P = r ? "vertical" : "horizontal", v = a ? "manual" : "auto";
116
+ let d = i !== null, x = re({ isControlled: d }), A = Q(t), [p, u] = Ae(Ye, { info: x, selectedIndex: i ?? n, tabs: [], panels: [] }), D = C(() => ({ selectedIndex: p.selectedIndex }), [p.selectedIndex]), R = re(s || (() => {
117
+ })), y = re(p.tabs), b = C(() => ({ orientation: P, activation: v, ...p }), [P, v, p]), F = W((o) => (u({ type: 1, tab: o }), () => u({ type: 2, tab: o }))), L = W((o) => (u({ type: 3, panel: o }), () => u({ type: 4, panel: o }))), g = W((o) => {
118
118
  _.current !== o && R.current(o), d || u({ type: 0, index: o });
119
- }), _ = te(d ? e.selectedIndex : p.selectedIndex), O = C(() => ({ registerTab: F, registerPanel: L, change: g }), []);
120
- se(() => {
121
- u({ type: 0, index: l ?? n });
122
- }, [l]), se(() => {
119
+ }), _ = re(d ? e.selectedIndex : p.selectedIndex), O = C(() => ({ registerTab: F, registerPanel: L, change: g }), []);
120
+ le(() => {
121
+ u({ type: 0, index: i ?? n });
122
+ }, [i]), le(() => {
123
123
  if (_.current === void 0 || p.tabs.length <= 0) return;
124
- let o = K(p.tabs, (E) => E.current);
124
+ let o = J(p.tabs, (E) => E.current);
125
125
  o.some((E, k) => p.tabs[k] !== E) && g(o.indexOf(p.tabs[_.current]));
126
126
  });
127
127
  let T = { ref: A };
128
- return z.createElement(Ve, null, z.createElement(fe.Provider, { value: O }, z.createElement(de.Provider, { value: b }, b.tabs.length <= 0 && z.createElement(Ue, { onFocus: () => {
128
+ return V.createElement(qe, null, V.createElement(fe.Provider, { value: O }, V.createElement(de.Provider, { value: b }, b.tabs.length <= 0 && V.createElement(ze, { onFocus: () => {
129
129
  var o, E;
130
130
  for (let k of y.current) if (((o = k.current) == null ? void 0 : o.tabIndex) === 0) return (E = k.current) == null || E.focus(), !0;
131
131
  return !1;
132
- } }), Z({ ourProps: T, theirProps: f, slot: D, defaultTag: Ye, name: "Tabs" }))));
132
+ } }), X({ ourProps: T, theirProps: f, slot: D, defaultTag: Qe, name: "Tabs" }))));
133
133
  }
134
- let Xe = "div";
135
- function Ze(e, t) {
136
- let { orientation: n, selectedIndex: r } = q("Tab.List"), a = X(t), s = C(() => ({ selectedIndex: r }), [r]);
137
- return Z({ ourProps: { ref: a, role: "tablist", "aria-orientation": n }, theirProps: e, slot: s, defaultTag: Xe, name: "Tabs.List" });
134
+ let Ze = "div";
135
+ function et(e, t) {
136
+ let { orientation: n, selectedIndex: r } = H("Tab.List"), a = Q(t), s = C(() => ({ selectedIndex: r }), [r]);
137
+ return X({ ourProps: { ref: a, role: "tablist", "aria-orientation": n }, theirProps: e, slot: s, defaultTag: Ze, name: "Tabs.List" });
138
138
  }
139
- let et = "button";
140
- function tt(e, t) {
139
+ let tt = "button";
140
+ function rt(e, t) {
141
141
  var n, r;
142
- let a = he(), { id: s = `headlessui-tabs-tab-${a}`, disabled: l = !1, autoFocus: f = !1, ...w } = e, { orientation: v, activation: d, selectedIndex: x, tabs: A, panels: p } = q("Tab"), u = pe("Tab"), D = q("Tab"), [R, y] = ne(null), b = ae(null), F = X(b, t, y);
143
- se(() => u.registerTab(b), [u, b]);
142
+ let a = he(), { id: s = `headlessui-tabs-tab-${a}`, disabled: i = !1, autoFocus: f = !1, ...P } = e, { orientation: v, activation: d, selectedIndex: x, tabs: A, panels: p } = H("Tab"), u = pe("Tab"), D = H("Tab"), [R, y] = ae(null), b = se(null), F = Q(b, t, y);
143
+ le(() => u.registerTab(b), [u, b]);
144
144
  let L = Pe("tabs"), g = A.indexOf(b);
145
145
  g === -1 && (g = L);
146
- let _ = g === x, O = W((i) => {
147
- var I;
148
- let B = i();
149
- if (B === re.Success && d === "auto") {
150
- let H = (I = Oe(b)) == null ? void 0 : I.activeElement, j = D.tabs.findIndex((ce) => ce.current === H);
151
- j !== -1 && u.change(j);
146
+ let _ = g === x, O = W((l) => {
147
+ var $;
148
+ let B = l();
149
+ if (B === ne.Success && d === "auto") {
150
+ let ee = ($ = Me(b)) == null ? void 0 : $.activeElement, U = D.tabs.findIndex((te) => te.current === ee);
151
+ U !== -1 && u.change(U);
152
152
  }
153
153
  return B;
154
- }), T = W((i) => {
155
- let I = A.map((B) => B.current).filter(Boolean);
156
- if (i.key === N.Space || i.key === N.Enter) {
157
- i.preventDefault(), i.stopPropagation(), u.change(g);
154
+ }), T = W((l) => {
155
+ let $ = A.map((B) => B.current).filter(Boolean);
156
+ if (l.key === N.Space || l.key === N.Enter) {
157
+ l.preventDefault(), l.stopPropagation(), u.change(g);
158
158
  return;
159
159
  }
160
- switch (i.key) {
160
+ switch (l.key) {
161
161
  case N.Home:
162
162
  case N.PageUp:
163
- return i.preventDefault(), i.stopPropagation(), O(() => U(I, S.First));
163
+ return l.preventDefault(), l.stopPropagation(), O(() => z($, S.First));
164
164
  case N.End:
165
165
  case N.PageDown:
166
- return i.preventDefault(), i.stopPropagation(), O(() => U(I, S.Last));
166
+ return l.preventDefault(), l.stopPropagation(), O(() => z($, S.Last));
167
167
  }
168
- if (O(() => Y(v, { vertical() {
169
- return i.key === N.ArrowUp ? U(I, S.Previous | S.WrapAround) : i.key === N.ArrowDown ? U(I, S.Next | S.WrapAround) : re.Error;
168
+ if (O(() => K(v, { vertical() {
169
+ return l.key === N.ArrowUp ? z($, S.Previous | S.WrapAround) : l.key === N.ArrowDown ? z($, S.Next | S.WrapAround) : ne.Error;
170
170
  }, horizontal() {
171
- return i.key === N.ArrowLeft ? U(I, S.Previous | S.WrapAround) : i.key === N.ArrowRight ? U(I, S.Next | S.WrapAround) : re.Error;
172
- } })) === re.Success) return i.preventDefault();
173
- }), o = ae(!1), E = W(() => {
174
- var i;
175
- o.current || (o.current = !0, (i = b.current) == null || i.focus({ preventScroll: !0 }), u.change(g), Me(() => {
171
+ return l.key === N.ArrowLeft ? z($, S.Previous | S.WrapAround) : l.key === N.ArrowRight ? z($, S.Next | S.WrapAround) : ne.Error;
172
+ } })) === ne.Success) return l.preventDefault();
173
+ }), o = se(!1), E = W(() => {
174
+ var l;
175
+ o.current || (o.current = !0, (l = b.current) == null || l.focus({ preventScroll: !0 }), u.change(g), Be(() => {
176
176
  o.current = !1;
177
177
  }));
178
- }), k = W((i) => {
179
- i.preventDefault();
180
- }), { isFocusVisible: M, focusProps: le } = ge({ autoFocus: f }), { isHovered: G, hoverProps: ie } = Le({ isDisabled: l }), { pressed: ee, pressProps: oe } = Be({ disabled: l }), c = C(() => ({ selected: _, hover: G, active: ee, focus: M, autofocus: f, disabled: l }), [_, G, M, ee, f, l]), $ = _e({ ref: F, onKeyDown: T, onMouseDown: k, onClick: E, id: s, role: "tab", type: We(e, R), "aria-controls": (r = (n = p[g]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": _, tabIndex: _ ? 0 : -1, disabled: l || void 0, autoFocus: f }, le, ie, oe);
181
- return Z({ ourProps: $, theirProps: w, slot: c, defaultTag: et, name: "Tabs.Tab" });
178
+ }), k = W((l) => {
179
+ l.preventDefault();
180
+ }), { isFocusVisible: M, focusProps: ie } = ge({ autoFocus: f }), { isHovered: G, hoverProps: oe } = Oe({ isDisabled: i }), { pressed: Z, pressProps: ce } = We({ disabled: i }), c = C(() => ({ selected: _, hover: G, active: Z, focus: M, autofocus: f, disabled: i }), [_, G, M, Z, f, i]), w = _e({ ref: F, onKeyDown: T, onMouseDown: k, onClick: E, id: s, role: "tab", type: Ce(e, R), "aria-controls": (r = (n = p[g]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": _, tabIndex: _ ? 0 : -1, disabled: i || void 0, autoFocus: f }, ie, oe, ce);
181
+ return X({ ourProps: w, theirProps: P, slot: c, defaultTag: tt, name: "Tabs.Tab" });
182
182
  }
183
- let rt = "div";
184
- function nt(e, t) {
185
- let { selectedIndex: n } = q("Tab.Panels"), r = X(t), a = C(() => ({ selectedIndex: n }), [n]);
186
- return Z({ ourProps: { ref: r }, theirProps: e, slot: a, defaultTag: rt, name: "Tabs.Panels" });
183
+ let nt = "div";
184
+ function at(e, t) {
185
+ let { selectedIndex: n } = H("Tab.Panels"), r = Q(t), a = C(() => ({ selectedIndex: n }), [n]);
186
+ return X({ ourProps: { ref: r }, theirProps: e, slot: a, defaultTag: nt, name: "Tabs.Panels" });
187
187
  }
188
- let at = "div", st = me.RenderStrategy | me.Static;
189
- function lt(e, t) {
188
+ let st = "div", lt = me.RenderStrategy | me.Static;
189
+ function it(e, t) {
190
190
  var n, r, a, s;
191
- let l = he(), { id: f = `headlessui-tabs-panel-${l}`, tabIndex: w = 0, ...v } = e, { selectedIndex: d, tabs: x, panels: A } = q("Tab.Panel"), p = pe("Tab.Panel"), u = ae(null), D = X(u, t);
192
- se(() => p.registerPanel(u), [p, u]);
191
+ let i = he(), { id: f = `headlessui-tabs-panel-${i}`, tabIndex: P = 0, ...v } = e, { selectedIndex: d, tabs: x, panels: A } = H("Tab.Panel"), p = pe("Tab.Panel"), u = se(null), D = Q(u, t);
192
+ le(() => p.registerPanel(u), [p, u]);
193
193
  let R = Pe("panels"), y = A.indexOf(u);
194
194
  y === -1 && (y = R);
195
- let b = y === d, { isFocusVisible: F, focusProps: L } = ge(), g = C(() => ({ selected: b, focus: F }), [b, F]), _ = _e({ ref: D, id: f, role: "tabpanel", "aria-labelledby": (r = (n = x[y]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: b ? w : -1 }, L);
196
- return !b && ((a = v.unmount) == null || a) && !((s = v.static) != null && s) ? z.createElement(Te, { "aria-hidden": "true", ..._ }) : Z({ ourProps: _, theirProps: v, slot: g, defaultTag: at, features: st, visible: b, name: "Tabs.Panel" });
195
+ let b = y === d, { isFocusVisible: F, focusProps: L } = ge(), g = C(() => ({ selected: b, focus: F }), [b, F]), _ = _e({ ref: D, id: f, role: "tabpanel", "aria-labelledby": (r = (n = x[y]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: b ? P : -1 }, L);
196
+ return !b && ((a = v.unmount) == null || a) && !((s = v.static) != null && s) ? V.createElement(Te, { "aria-hidden": "true", ..._ }) : X({ ourProps: _, theirProps: v, slot: g, defaultTag: st, features: lt, visible: b, name: "Tabs.Panel" });
197
197
  }
198
- let it = Q(tt), we = Q(Qe), $e = Q(Ze), ye = Q(nt), Ee = Q(lt), ot = Object.assign(it, { Group: we, List: $e, Panels: ye, Panel: Ee });
199
- const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft = "_list_14t2i_55", pt = "_tabs_14t2i_66", bt = "_buttons_14t2i_72", mt = "_m_14t2i_79", vt = "_s_14t2i_87", ht = "_detailed_14t2i_95", m = {
200
- container: ct,
201
- group: ut,
198
+ let ot = Y(rt), we = Y(Xe), $e = Y(et), ye = Y(at), Ee = Y(it), ct = Object.assign(ot, { Group: we, List: $e, Panels: ye, Panel: Ee });
199
+ const ut = "_container_14t2i_2", dt = "_group_14t2i_6", ft = "_tab_14t2i_17", pt = "_list_14t2i_55", bt = "_tabs_14t2i_66", mt = "_buttons_14t2i_72", vt = "_m_14t2i_79", ht = "_s_14t2i_87", xt = "_detailed_14t2i_95", m = {
200
+ container: ut,
201
+ group: dt,
202
202
  "group-inner": "_group-inner_14t2i_10",
203
- tab: dt,
204
- list: ft,
205
- tabs: pt,
206
- buttons: bt,
207
- m: mt,
208
- s: vt,
209
- detailed: ht,
203
+ tab: ft,
204
+ list: pt,
205
+ tabs: bt,
206
+ buttons: mt,
207
+ m: vt,
208
+ s: ht,
209
+ detailed: xt,
210
210
  "tab-content": "_tab-content_14t2i_123",
211
211
  "tab-value": "_tab-value_14t2i_131",
212
212
  "tab-name": "_tab-name_14t2i_140",
213
213
  "tab-header": "_tab-header_14t2i_149",
214
214
  "tab-text": "_tab-text_14t2i_155",
215
215
  "tab-icon": "_tab-icon_14t2i_162"
216
- }, kt = Ae(
216
+ }, Dt = Fe(
217
217
  ({
218
218
  categories: e,
219
- size: t = Fe.M,
219
+ size: t = ke.M,
220
220
  showButtons: n = !0,
221
221
  className: r,
222
222
  selectedTabIndex: a,
223
223
  onTabChange: s,
224
- buttonsVariant: l = De.WHITE,
224
+ buttonsVariant: i = Re.WHITE,
225
225
  autoShowButtons: f = !1,
226
- tabClassName: w,
226
+ tabClassName: P,
227
227
  listClassName: v,
228
228
  panelClassName: d,
229
229
  buttonsClassName: x,
@@ -239,7 +239,7 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
239
239
  tabsClassName: g,
240
240
  groupInnerClassName: _
241
241
  }, O) => {
242
- const [T, o] = ne(a || 0), [E, k] = ne(!1), M = ae(null), le = {
242
+ const [T, o] = ae(a || 0), [E, k] = ae(!1), M = se(null), ie = {
243
243
  ...A && { "--tab-indicator-color": A }
244
244
  };
245
245
  ue(() => {
@@ -247,16 +247,16 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
247
247
  }, [T, a]);
248
248
  const G = (c) => {
249
249
  o(c), s == null || s(c);
250
- }, ie = () => {
250
+ }, oe = () => {
251
251
  const c = (T + 1) % e.length;
252
252
  G(c);
253
- }, ee = () => {
253
+ }, Z = () => {
254
254
  const c = (T - 1 + e.length) % e.length;
255
255
  G(c);
256
256
  };
257
257
  ue(() => {
258
- var $;
259
- const c = ($ = M.current) == null ? void 0 : $.querySelector(
258
+ var w;
259
+ const c = (w = M.current) == null ? void 0 : w.querySelector(
260
260
  `.${m.tab}[data-active="true"]`
261
261
  );
262
262
  c && typeof c.scrollIntoView == "function" && c.scrollIntoView({
@@ -267,18 +267,18 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
267
267
  }, [T]), ue(() => {
268
268
  const c = () => {
269
269
  if (M.current) {
270
- const { scrollWidth: $, clientWidth: i } = M.current;
271
- k($ > i);
270
+ const { scrollWidth: w, clientWidth: l } = M.current;
271
+ k(w > l);
272
272
  }
273
273
  };
274
274
  return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
275
275
  }, [e]);
276
- const oe = f ? E : n;
277
- return /* @__PURE__ */ J(
276
+ const ce = f ? E : n;
277
+ return /* @__PURE__ */ j(
278
278
  we,
279
279
  {
280
280
  ref: O,
281
- className: P(
281
+ className: I(
282
282
  m.group,
283
283
  m[t],
284
284
  u === "detailed" && m.detailed,
@@ -286,49 +286,56 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
286
286
  ),
287
287
  selectedIndex: T,
288
288
  onChange: G,
289
- style: le,
289
+ style: ie,
290
290
  children: [
291
- /* @__PURE__ */ J("div", { className: P(m["group-inner"], _), children: [
291
+ /* @__PURE__ */ j("div", { className: I(m["group-inner"], _), children: [
292
292
  /* @__PURE__ */ h(
293
293
  $e,
294
294
  {
295
295
  ref: M,
296
- className: P(m.list, v),
297
- children: /* @__PURE__ */ h("div", { className: P(m.tabs, g), children: e.map(
298
- ({ name: c, notificationCount: $, value: i, valueColor: I, borderColor: B }, H) => {
299
- const j = p[H], ce = u === "detailed" ? {
300
- ...I && {
301
- "--detailed-value-color": I
302
- },
296
+ className: I(m.list, v),
297
+ children: /* @__PURE__ */ h("div", { className: I(m.tabs, g), children: e.map(
298
+ ({
299
+ name: c,
300
+ defaultActive: w,
301
+ notificationCount: l,
302
+ value: $,
303
+ valueColor: B,
304
+ borderColor: ee
305
+ }, U) => {
306
+ const te = p[U], Ne = u === "detailed" ? {
303
307
  ...B && {
304
- "--detailed-border-color": B
308
+ "--detailed-value-color": B
309
+ },
310
+ ...ee && {
311
+ "--detailed-border-color": ee
305
312
  }
306
313
  } : void 0;
307
314
  return /* @__PURE__ */ h(
308
- ot,
315
+ ct,
309
316
  {
310
- className: `${m.tab} ${T === H ? 'data-active="true"' : ""} ${w || ""}`,
311
- "data-active": T === H,
312
- style: ce,
317
+ className: `${m.tab} ${w || T === U ? 'data-active="true"' : ""} ${P || ""}`,
318
+ "data-active": w || T === U,
319
+ style: Ne,
313
320
  children: u === "detailed" ? /* @__PURE__ */ h(
314
321
  "div",
315
322
  {
316
- className: P(
323
+ className: I(
317
324
  m["tab-content"],
318
325
  D
319
326
  ),
320
- children: /* @__PURE__ */ J(
327
+ children: /* @__PURE__ */ j(
321
328
  "div",
322
329
  {
323
- className: P(
330
+ className: I(
324
331
  m["tab-header"],
325
332
  R
326
333
  ),
327
334
  children: [
328
- /* @__PURE__ */ J(
335
+ /* @__PURE__ */ j(
329
336
  "div",
330
337
  {
331
- className: P(
338
+ className: I(
332
339
  m["tab-text"],
333
340
  y
334
341
  ),
@@ -336,17 +343,17 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
336
343
  /* @__PURE__ */ h(
337
344
  "div",
338
345
  {
339
- className: P(
346
+ className: I(
340
347
  m["tab-value"],
341
348
  b
342
349
  ),
343
- children: i
350
+ children: $
344
351
  }
345
352
  ),
346
353
  /* @__PURE__ */ h(
347
354
  "div",
348
355
  {
349
- className: P(
356
+ className: I(
350
357
  m["tab-name"],
351
358
  F
352
359
  ),
@@ -359,7 +366,7 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
359
366
  /* @__PURE__ */ h(
360
367
  "div",
361
368
  {
362
- className: P(
369
+ className: I(
363
370
  m["tab-icon"],
364
371
  L
365
372
  ),
@@ -370,13 +377,13 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
370
377
  }
371
378
  )
372
379
  }
373
- ) : /* @__PURE__ */ J(Ne, { children: [
374
- j && /* @__PURE__ */ h(be, { iconName: j }),
380
+ ) : /* @__PURE__ */ j(Se, { children: [
381
+ te && /* @__PURE__ */ h(be, { iconName: te }),
375
382
  c,
376
- $ && /* @__PURE__ */ h(
377
- Re,
383
+ l && /* @__PURE__ */ h(
384
+ Le,
378
385
  {
379
- count: $,
386
+ count: l,
380
387
  size: "m"
381
388
  }
382
389
  )
@@ -388,20 +395,20 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
388
395
  ) })
389
396
  }
390
397
  ),
391
- oe && /* @__PURE__ */ h("div", { className: P(m.buttons, x), children: /* @__PURE__ */ h(
392
- ke,
398
+ ce && /* @__PURE__ */ h("div", { className: I(m.buttons, x), children: /* @__PURE__ */ h(
399
+ De,
393
400
  {
394
- handlePrevTab: ee,
395
- handleNextTab: ie,
396
- buttonsVariant: l
401
+ handlePrevTab: Z,
402
+ handleNextTab: oe,
403
+ buttonsVariant: i
397
404
  }
398
405
  ) })
399
406
  ] }),
400
- /* @__PURE__ */ h(ye, { className: m.panels, children: e.map(({ name: c, content: $ }) => /* @__PURE__ */ h(
407
+ /* @__PURE__ */ h(ye, { className: m.panels, children: e.map(({ name: c, content: w }) => /* @__PURE__ */ h(
401
408
  Ee,
402
409
  {
403
- className: P(m.panel, d),
404
- children: $
410
+ className: I(m.panel, d),
411
+ children: w
405
412
  },
406
413
  c
407
414
  )) })
@@ -411,5 +418,5 @@ const ct = "_container_14t2i_2", ut = "_group_14t2i_6", dt = "_tab_14t2i_17", ft
411
418
  }
412
419
  );
413
420
  export {
414
- kt as TabTrail
421
+ Dt as TabTrail
415
422
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.57.1",
4
+ "version": "1.58.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {