skillgrid 0.0.83 → 0.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ ._tag_l7ebw_1{--tag-bg-color: var(--bg-secondary);--tag-label-color: var(--base-graphite-45);--tag-icon-wrapper-color: var(--base-graphite-45);display:flex;flex-direction:row;align-items:center;width:fit-content;text-overflow:ellipsis;background-color:var(--tag-bg-color)}._tag_l7ebw_1 ._label_l7ebw_16{color:var(--tag-label-color)}._tag_l7ebw_1 ._iconWrapper_l7ebw_20{width:1rem;height:1rem;color:var(--tag-icon-wrapper-color)}._tag_l7ebw_1._medium_l7ebw_27{gap:.25rem;padding:.25rem .5rem;border-radius:.5rem}._tag_l7ebw_1._large_l7ebw_33{gap:.125rem;padding:.375rem .625rem;border-radius:1.125rem}._tag_l7ebw_1._large_l7ebw_33 ._label_l7ebw_16{padding:.0625rem .125rem}._disabled_l7ebw_43{opacity:.48}._tag_l7ebw_1._neutral_l7ebw_47{--tag-bg-color: var(--bg-secondary);--tag-label-color: var(--base-graphite-45);--tag-icon-wrapper-color: var(--base-graphite-45)}._tag_l7ebw_1._positive_l7ebw_53{--tag-bg-color: var(--bg-positive-secondary);--tag-label-color: var(--base-green-55);--tag-icon-wrapper-color: var(--base-green-55)}._tag_l7ebw_1._negative_l7ebw_59{--tag-bg-color: var(--bg-negative-secondary);--tag-label-color: var(--base-red-55);--tag-icon-wrapper-color: var(--base-red-55)}._tag_l7ebw_1._warning_l7ebw_65{--tag-bg-color: var(--bg-warning-secondary);--tag-label-color: var(--base-orange-50);--tag-icon-wrapper-color: var(--base-orange-50)}._tag_l7ebw_1._vivid_l7ebw_71{--tag-bg-color: var(--bg-vivid-secondary);--tag-label-color: var(--base-yellow-50);--tag-icon-wrapper-color: var(--base-yellow-50)}._tag_l7ebw_1._special_l7ebw_77{--tag-bg-color: var(--bg-special-secondary);--tag-label-color: var(--base-violet-45);--tag-icon-wrapper-color: var(--base-violet-45)}._tag_l7ebw_1._accent_l7ebw_84{--tag-bg-color: var(--bg-accent-secondary);--tag-label-color: var(--text-accent);--tag-icon-wrapper-color: var(--text-accent)}._tag_l7ebw_1._blue_l7ebw_90{--tag-bg-color: var(--bg-blue-secondary);--tag-label-color: var(--base-blue-45);--tag-icon-wrapper-color: var(--base-blue-45)}._tag_l7ebw_1._lovely_l7ebw_96{--tag-bg-color: var(--bg-lovely-secondary);--tag-label-color: var(--base-pink-60);--tag-icon-wrapper-color: var(--base-pink-60)}._tag_l7ebw_1._dreamy_l7ebw_102{--tag-bg-color: var(--bg-dreamy-secondary);--tag-label-color: var(--base-sky-60);--tag-icon-wrapper-color: var(--base-sky-60)}._tag_l7ebw_1._custom_l7ebw_108{--tag-bg-color: inherit;--tag-label-color: currentcolor;--tag-icon-wrapper-color: currentcolor}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._neutral_l7ebw_47{--tag-bg-color: var(--base-graphite-20);--tag-label-color: var(--base-graphite-80);--tag-icon-wrapper-color: var(--base-graphite-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._positive_l7ebw_53{--tag-bg-color: #0a3d1f;--tag-label-color: var(--base-green-80);--tag-icon-wrapper-color: var(--base-green-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._negative_l7ebw_59{--tag-bg-color: #4a1510;--tag-label-color: var(--base-red-80);--tag-icon-wrapper-color: var(--base-red-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._warning_l7ebw_65{--tag-bg-color: #4a2e08;--tag-label-color: var(--base-orange-80);--tag-icon-wrapper-color: var(--base-orange-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._vivid_l7ebw_71{--tag-bg-color: #4a3d0a;--tag-label-color: var(--base-yellow-80);--tag-icon-wrapper-color: var(--base-yellow-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._special_l7ebw_77{--tag-bg-color: #544765;--tag-label-color: var(--base-violet-80);--tag-icon-wrapper-color: var(--base-violet-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._accent_l7ebw_84{--tag-bg-color: #1a2d4a;--tag-label-color: var(--base-blue-80);--tag-icon-wrapper-color: var(--base-blue-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._blue_l7ebw_90{--tag-bg-color: #0c2347;--tag-label-color: var(--base-blue-80);--tag-icon-wrapper-color: var(--base-blue-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._lovely_l7ebw_96{--tag-bg-color: #4a1028;--tag-label-color: var(--base-pink-80);--tag-icon-wrapper-color: var(--base-pink-60)}[data-skillgridDarkTheme=true] ._tag_l7ebw_1._dreamy_l7ebw_102{--tag-bg-color: #0e2d3d;--tag-label-color: var(--base-sky-80);--tag-icon-wrapper-color: var(--base-sky-60)}
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import d from "classnames";
3
- import { useBackgroundColor as g } from "../../../hooks/useBackgroundColor.js";
4
- import v from "./AvatarGroup.module.css.js";
5
- import { AvatarGroupProvider as B } from "./AvatarGroupProvider.js";
3
+ import g from "./AvatarGroup.module.css.js";
4
+ import { AvatarGroupProvider as v } from "./AvatarGroupProvider.js";
5
+ import { useBackgroundColor as B } from "../../../hooks/useBackgroundColor.js";
6
6
  const G = (t) => {
7
7
  const {
8
8
  children: a,
@@ -12,12 +12,12 @@ const G = (t) => {
12
12
  cutoutBackground: u,
13
13
  className: m,
14
14
  style: n
15
- } = t, { ref: p, bgColor: f } = g(), o = u || f || "#ffffff", l = d(v.avatarGroup, m), i = {
15
+ } = t, { ref: p, bgColor: f } = B(), o = u || f || "#ffffff", l = d(g.avatarGroup, m), i = {
16
16
  "--avatar-cutout-bg": o,
17
17
  ...n
18
18
  };
19
19
  return /* @__PURE__ */ r(
20
- B,
20
+ v,
21
21
  {
22
22
  size: s,
23
23
  shape: c,
@@ -2,11 +2,11 @@ import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
2
  import { clsx as p } from "clsx";
3
3
  import Ge from "rc-upload";
4
4
  import { forwardRef as je, useContext as Fe, useState as W, useRef as se, useMemo as we, useLayoutEffect as He } from "react";
5
- import { useIsMobile as ze } from "../../hooks/useIsMobile.js";
6
5
  import { interpolate as de } from "../../locale/interpolate.js";
7
6
  import t from "./FileUpload.module.css.js";
8
7
  import { isMobileViewport as ve } from "../../utils/adaptive.js";
9
8
  import { useLocale as ue } from "../ConfigProvider/ConfigProvider.hook.js";
9
+ import { useIsMobile as ze } from "../../hooks/useIsMobile.js";
10
10
  import { SnackbarContext as We } from "../Snackbar/lib/useSnackbar.js";
11
11
  import { Button as M } from "../Button/Button.js";
12
12
  import { Icon as h } from "../Icon/IconWithCategories.js";
@@ -2,9 +2,9 @@ import { jsx as r, jsxs as W } from "react/jsx-runtime";
2
2
  import { forwardRef as z, useImperativeHandle as P } from "react";
3
3
  import { clsx as f } from "clsx";
4
4
  import e from "./InputBase.module.css.js";
5
- import { useCompatId as Q } from "../../hooks/useCompatId.js";
6
- import { useInputSync as Y } from "./lib/useInputSync.js";
7
- import { useTextareaResize as Z } from "./lib/useTextareaResize.js";
5
+ import { useInputSync as Q } from "./lib/useInputSync.js";
6
+ import { useTextareaResize as Y } from "./lib/useTextareaResize.js";
7
+ import { useCompatId as Z } from "../../hooks/useCompatId.js";
8
8
  import { MAX_HINT_LENGTH as k } from "./lib/constants.js";
9
9
  import { useGripResize as U } from "./lib/useGripResize.js";
10
10
  import { GripIcon as E } from "./assets/GripIcon.js";
@@ -32,8 +32,8 @@ const K = z(
32
32
  resize: c,
33
33
  ...H
34
34
  }, R) => {
35
- const { textareaRef: w, inputRef: j, currentRef: d } = Y(a, t);
36
- if (Z(a, c, w), P(R, () => d.current, [d]), t === "textarea")
35
+ const { textareaRef: w, inputRef: j, currentRef: d } = Q(a, t);
36
+ if (Y(a, c, w), P(R, () => d.current, [d]), t === "textarea")
37
37
  return /* @__PURE__ */ r(
38
38
  "textarea",
39
39
  {
@@ -132,7 +132,7 @@ const K = z(
132
132
  showGrip: T = !1,
133
133
  ...L
134
134
  }, O) => {
135
- const X = Q("input-wrapper"), S = D || X, _ = y && s && (d || p), q = s && s.length > k ? s.substring(0, k) + "..." : s, B = f(
135
+ const X = Z("input-wrapper"), S = D || X, _ = y && s && (d || p), q = s && s.length > k ? s.substring(0, k) + "..." : s, B = f(
136
136
  e.wrapper,
137
137
  e[`size-${m}`],
138
138
  a && e.error,
@@ -1,7 +1,7 @@
1
1
  import { offset as G, flip as H, shift as V, inline as q, size as J, hide as K, useFloating as Q, autoUpdate as Z, useTransitionStyles as M, useClick as ee, useHover as te, useFocus as oe, useDismiss as ne, useRole as se, useInteractions as re } from "@floating-ui/react";
2
2
  import { useState as i, useMemo as v, useCallback as ce, useEffect as ae, useLayoutEffect as ie } from "react";
3
- import { useCompatId as S } from "../../../hooks/useCompatId.js";
4
3
  import { DEFAULT_FLOATING as le, hasMiddleware as fe } from "./utils.js";
4
+ import { useCompatId as S } from "../../../hooks/useCompatId.js";
5
5
  const r = 8, ue = (c) => {
6
6
  switch (c.split("-")[0]) {
7
7
  case "top":
@@ -1,8 +1,8 @@
1
1
  import { jsxs as N, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as W, useState as g, useEffect as w } from "react";
3
- import { useBackgroundColor as M } from "../../hooks/useBackgroundColor.js";
4
3
  import { clsx as i } from "clsx";
5
4
  import e from "./ScrollWrapper.module.css.js";
5
+ import { useBackgroundColor as M } from "../../hooks/useBackgroundColor.js";
6
6
  const B = "white", G = ({
7
7
  children: b,
8
8
  withControls: a = !0,
@@ -1,10 +1,10 @@
1
1
  import { jsx as n, jsxs as V } from "react/jsx-runtime";
2
2
  import F, { useState as U, createContext as j, useContext as k } from "react";
3
3
  import { ScrollWrapper as G } from "./ScrollWrapper.js";
4
- import { useIsMobile as M } from "../../hooks/useIsMobile.js";
5
4
  import { clsx as d } from "clsx";
6
5
  import f from "../../styles/typography.module.css.js";
7
6
  import a from "./Tabs.module.css.js";
7
+ import { useIsMobile as M } from "../../hooks/useIsMobile.js";
8
8
  import { Badge as O } from "../Badge/Badge.js";
9
9
  const W = "md", R = !1, Y = 8, Z = "top-right-inside", P = j(null), h = () => {
10
10
  const t = k(P);
@@ -1,48 +1,49 @@
1
- import { jsxs as E, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as C, jsx as r } from "react/jsx-runtime";
2
2
  import s from "./Tag.module.css.js";
3
3
  import p from "../../styles/typography.module.css.js";
4
- import { forwardRef as P } from "react";
4
+ import { forwardRef as I } from "react";
5
5
  import { clsx as a } from "clsx";
6
- const T = P((m, n) => {
6
+ const z = I((m, n) => {
7
7
  const {
8
- className: d,
9
- children: e,
10
- componentStyle: c = "neutral",
11
- size: t = "medium",
8
+ className: c,
9
+ children: t,
10
+ componentStyle: d = "neutral",
11
+ size: e = "medium",
12
12
  disabled: i = !1,
13
- showLabel: N = !!e,
14
- slotStart: o,
15
- slotEnd: l,
16
- slotStartWrapperProps: f = {},
17
- slotEndWrapperProps: b = {},
18
- "data-testid": g,
19
- ...h
20
- } = m, { className: u, ...y } = f, { className: S, ...x } = b;
21
- return /* @__PURE__ */ E(
13
+ showLabel: N = !!t,
14
+ slotStart: l,
15
+ slotEnd: o,
16
+ slotStartWrapperProps: b = {},
17
+ slotEndWrapperProps: f = {},
18
+ labelWrapperProps: g = {},
19
+ "data-testid": h,
20
+ ...u
21
+ } = m, { className: P, ...y } = b, { className: S, ...W } = f, { className: x, ...E } = g;
22
+ return /* @__PURE__ */ C(
22
23
  "div",
23
24
  {
24
25
  className: a(
25
26
  s.tag,
26
- s[t],
27
- s[c],
27
+ s[e],
28
+ s[d],
28
29
  {
29
30
  [s.disabled]: i,
30
- [p["typography-label-3-regular"]]: t === "medium",
31
- [p["typography-subtitle-1-semibold"]]: t === "large"
31
+ [p["typography-label-3-regular"]]: e === "medium",
32
+ [p["typography-subtitle-1-semibold"]]: e === "large"
32
33
  },
33
- d
34
+ c
34
35
  ),
35
- "data-testid": g || "tag-component",
36
+ "data-testid": h || "tag-component",
36
37
  ref: n,
37
- ...h,
38
+ ...u,
38
39
  children: [
39
- o && /* @__PURE__ */ r("span", { className: a([s.iconWrapper, u]), ...y, children: o }),
40
- N && /* @__PURE__ */ r("span", { className: a([s.label]), children: e }),
41
- l && /* @__PURE__ */ r("span", { className: a([s.iconWrapper, S]), ...x, children: l })
40
+ l && /* @__PURE__ */ r("span", { className: a([s.iconWrapper, P]), ...y, children: l }),
41
+ N && /* @__PURE__ */ r("span", { className: a([s.label, x]), ...E, children: t }),
42
+ o && /* @__PURE__ */ r("span", { className: a([s.iconWrapper, S]), ...W, children: o })
42
43
  ]
43
44
  }
44
45
  );
45
46
  });
46
47
  export {
47
- T as Tag
48
+ z as Tag
48
49
  };
@@ -1,37 +1,39 @@
1
- import '../../assets/components/Tag/Tag.module-FHcOZDVu.css';const _ = "_tag_16i5f_1", i = "_label_16i5f_16", e = "_iconWrapper_16i5f_20", a = "_medium_16i5f_27", n = "_large_16i5f_33", t = "_disabled_16i5f_43", c = "_neutral_16i5f_47", l = "_positive_16i5f_53", s = "_negative_16i5f_59", o = "_warning_16i5f_65", r = "_vivid_16i5f_71", f = "_special_16i5f_77", d = "_accent_16i5f_84", v = "_blue_16i5f_90", p = "_lovely_16i5f_96", g = "_dreamy_16i5f_102", u = {
2
- tag: _,
3
- label: i,
4
- iconWrapper: e,
5
- medium: a,
1
+ import '../../assets/components/Tag/Tag.module-DN9gmOlu.css';const e = "_tag_l7ebw_1", _ = "_label_l7ebw_16", l = "_iconWrapper_l7ebw_20", t = "_medium_l7ebw_27", n = "_large_l7ebw_33", a = "_disabled_l7ebw_43", c = "_neutral_l7ebw_47", s = "_positive_l7ebw_53", o = "_negative_l7ebw_59", i = "_warning_l7ebw_65", b = "_vivid_l7ebw_71", w = "_special_l7ebw_77", r = "_accent_l7ebw_84", d = "_blue_l7ebw_90", v = "_lovely_l7ebw_96", p = "_dreamy_l7ebw_102", u = "_custom_l7ebw_108", g = {
2
+ tag: e,
3
+ label: _,
4
+ iconWrapper: l,
5
+ medium: t,
6
6
  large: n,
7
- disabled: t,
7
+ disabled: a,
8
8
  neutral: c,
9
- positive: l,
10
- negative: s,
11
- warning: o,
12
- vivid: r,
13
- special: f,
14
- accent: d,
15
- blue: v,
16
- lovely: p,
17
- dreamy: g
9
+ positive: s,
10
+ negative: o,
11
+ warning: i,
12
+ vivid: b,
13
+ special: w,
14
+ accent: r,
15
+ blue: d,
16
+ lovely: v,
17
+ dreamy: p,
18
+ custom: u
18
19
  };
19
20
  export {
20
- d as accent,
21
- v as blue,
22
- u as default,
23
- t as disabled,
24
- g as dreamy,
25
- e as iconWrapper,
26
- i as label,
21
+ r as accent,
22
+ d as blue,
23
+ u as custom,
24
+ g as default,
25
+ a as disabled,
26
+ p as dreamy,
27
+ l as iconWrapper,
28
+ _ as label,
27
29
  n as large,
28
- p as lovely,
29
- a as medium,
30
- s as negative,
30
+ v as lovely,
31
+ t as medium,
32
+ o as negative,
31
33
  c as neutral,
32
- l as positive,
33
- f as special,
34
- _ as tag,
35
- r as vivid,
36
- o as warning
34
+ s as positive,
35
+ w as special,
36
+ e as tag,
37
+ b as vivid,
38
+ i as warning
37
39
  };
@@ -10,7 +10,7 @@ export interface TagProps extends ComponentProps<'div'> {
10
10
  /** Цвет компонента
11
11
  * @default "neutral"
12
12
  */
13
- componentStyle?: 'neutral' | 'positive' | 'negative' | 'warning' | 'vivid' | 'special' | 'accent' | 'blue' | 'lovely' | 'dreamy';
13
+ componentStyle?: 'neutral' | 'positive' | 'negative' | 'warning' | 'vivid' | 'special' | 'accent' | 'blue' | 'lovely' | 'dreamy' | 'custom';
14
14
  /** Задизейблен ли компонент
15
15
  * @default false
16
16
  */
@@ -31,6 +31,10 @@ export interface TagProps extends ComponentProps<'div'> {
31
31
  slotEndWrapperProps?: ComponentProps<'span'> & {
32
32
  'data-testid'?: string;
33
33
  };
34
+ /** Пропсы для контейнера текста */
35
+ labelWrapperProps?: ComponentProps<'span'> & {
36
+ 'data-testid'?: string;
37
+ };
34
38
  /** Id для тестирования */
35
39
  'data-testid'?: string;
36
40
  }