skillgrid 0.0.82 → 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.
- package/dist/assets/components/Tag/Tag.module-DN9gmOlu.css +1 -0
- package/dist/components/Avatar/AvatarGroup/AvatarGroupRoot.js +5 -5
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/InputBase/Input.js +6 -6
- package/dist/components/Popover/lib/use-popover.js +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +12 -12
- package/dist/components/Tabs/ScrollWrapper.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tag/Tag.js +28 -27
- package/dist/components/Tag/Tag.module.css.js +32 -30
- package/dist/components/Tag/Tag.type.d.ts +5 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.css +1 -1
- package/package.json +1 -1
- package/dist/assets/components/Tag/Tag.module-FHcOZDVu.css +0 -1
|
@@ -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
|
|
4
|
-
import v from "./
|
|
5
|
-
import {
|
|
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 } =
|
|
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
|
-
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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 } =
|
|
36
|
-
if (
|
|
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 =
|
|
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":
|
|
@@ -4,16 +4,16 @@ import r from "./SegmentedControl.module.css.js";
|
|
|
4
4
|
import u from "../../styles/typography.module.css.js";
|
|
5
5
|
import { useState as b, useRef as w, useEffect as A, useLayoutEffect as J, Fragment as P } from "react";
|
|
6
6
|
import { useCompatId as W } from "../../hooks/useCompatId.js";
|
|
7
|
-
import { generateHash as
|
|
7
|
+
import { generateHash as $ } from "../../lib/generate-hash.js";
|
|
8
8
|
const N = {
|
|
9
9
|
s: u["typography-label-3-regular"],
|
|
10
10
|
m: u["typography-label-2-regular"],
|
|
11
11
|
l: u["typography-label-2-regular"]
|
|
12
|
-
},
|
|
12
|
+
}, T = (C) => {
|
|
13
13
|
const {
|
|
14
14
|
className: I,
|
|
15
15
|
defaultValue: x,
|
|
16
|
-
value:
|
|
16
|
+
value: l,
|
|
17
17
|
size: o = "m",
|
|
18
18
|
segments: t,
|
|
19
19
|
stretched: g,
|
|
@@ -23,8 +23,8 @@ const N = {
|
|
|
23
23
|
...k
|
|
24
24
|
} = C, p = W("segmented-control"), [y, v] = b(x || t[0].value), [E, V] = b({ width: 0, left: 0, height: 0 }), s = w(null);
|
|
25
25
|
A(() => {
|
|
26
|
-
|
|
27
|
-
}, [
|
|
26
|
+
l != null && v(l);
|
|
27
|
+
}, [l]), J(() => {
|
|
28
28
|
j();
|
|
29
29
|
}, [y, t, o, g, h]);
|
|
30
30
|
const j = () => {
|
|
@@ -59,13 +59,13 @@ const N = {
|
|
|
59
59
|
...k,
|
|
60
60
|
children: [
|
|
61
61
|
t == null ? void 0 : t.map(({ label: e, value: c, containerProps: F = {} }, H) => {
|
|
62
|
-
const { className: L, ...O } = F, q = () => z(c),
|
|
62
|
+
const { className: L, ...O } = F, q = () => z(c), a = JSON.stringify(c), d = y === c;
|
|
63
63
|
return /* @__PURE__ */ S(P, { children: [
|
|
64
64
|
/* @__PURE__ */ m(
|
|
65
65
|
"input",
|
|
66
66
|
{
|
|
67
|
-
id: p +
|
|
68
|
-
value:
|
|
67
|
+
id: p + a,
|
|
68
|
+
value: a,
|
|
69
69
|
type: "radio",
|
|
70
70
|
checked: d,
|
|
71
71
|
readOnly: !0
|
|
@@ -76,14 +76,14 @@ const N = {
|
|
|
76
76
|
{
|
|
77
77
|
"data-is-active-segment": d,
|
|
78
78
|
className: f(r.segment, N[o], { [r.selected]: d }, L),
|
|
79
|
-
htmlFor: p +
|
|
80
|
-
"data-testid":
|
|
79
|
+
htmlFor: p + a,
|
|
80
|
+
"data-testid": `segmented-control-segment-label-${a}`,
|
|
81
81
|
onClick: q,
|
|
82
82
|
...O,
|
|
83
83
|
children: e
|
|
84
84
|
}
|
|
85
85
|
)
|
|
86
|
-
] },
|
|
86
|
+
] }, $(a) + H);
|
|
87
87
|
}),
|
|
88
88
|
/* @__PURE__ */ m(
|
|
89
89
|
"div",
|
|
@@ -98,5 +98,5 @@ const N = {
|
|
|
98
98
|
);
|
|
99
99
|
};
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
T as SegmentedControl
|
|
102
102
|
};
|
|
@@ -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
|
|
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
|
|
4
|
+
import { forwardRef as I } from "react";
|
|
5
5
|
import { clsx as a } from "clsx";
|
|
6
|
-
const
|
|
6
|
+
const z = I((m, n) => {
|
|
7
7
|
const {
|
|
8
|
-
className:
|
|
9
|
-
children:
|
|
10
|
-
componentStyle:
|
|
11
|
-
size:
|
|
8
|
+
className: c,
|
|
9
|
+
children: t,
|
|
10
|
+
componentStyle: d = "neutral",
|
|
11
|
+
size: e = "medium",
|
|
12
12
|
disabled: i = !1,
|
|
13
|
-
showLabel: N = !!
|
|
14
|
-
slotStart:
|
|
15
|
-
slotEnd:
|
|
16
|
-
slotStartWrapperProps:
|
|
17
|
-
slotEndWrapperProps:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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[
|
|
27
|
-
s[
|
|
27
|
+
s[e],
|
|
28
|
+
s[d],
|
|
28
29
|
{
|
|
29
30
|
[s.disabled]: i,
|
|
30
|
-
[p["typography-label-3-regular"]]:
|
|
31
|
-
[p["typography-subtitle-1-semibold"]]:
|
|
31
|
+
[p["typography-label-3-regular"]]: e === "medium",
|
|
32
|
+
[p["typography-subtitle-1-semibold"]]: e === "large"
|
|
32
33
|
},
|
|
33
|
-
|
|
34
|
+
c
|
|
34
35
|
),
|
|
35
|
-
"data-testid":
|
|
36
|
+
"data-testid": h || "tag-component",
|
|
36
37
|
ref: n,
|
|
37
|
-
...
|
|
38
|
+
...u,
|
|
38
39
|
children: [
|
|
39
|
-
|
|
40
|
-
N && /* @__PURE__ */ r("span", { className: a([s.label]), children:
|
|
41
|
-
|
|
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
|
-
|
|
48
|
+
z as Tag
|
|
48
49
|
};
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import '../../assets/components/Tag/Tag.module-
|
|
2
|
-
tag:
|
|
3
|
-
label:
|
|
4
|
-
iconWrapper:
|
|
5
|
-
medium:
|
|
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:
|
|
7
|
+
disabled: a,
|
|
8
8
|
neutral: c,
|
|
9
|
-
positive:
|
|
10
|
-
negative:
|
|
11
|
-
warning:
|
|
12
|
-
vivid:
|
|
13
|
-
special:
|
|
14
|
-
accent:
|
|
15
|
-
blue:
|
|
16
|
-
lovely:
|
|
17
|
-
dreamy:
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
u as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
v as lovely,
|
|
31
|
+
t as medium,
|
|
32
|
+
o as negative,
|
|
31
33
|
c as neutral,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
}
|