@dss-kit/ui-kit 0.3.9 → 0.3.10

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,88 +1,91 @@
1
- import { jsx as a, jsxs as w, Fragment as O } from "react/jsx-runtime";
2
- import { cx as y, css as k } from "@emotion/css";
3
- import { motion as q } from "framer-motion";
4
- import { useMemo as o } from "react";
5
- import { cornerRadiusValues as u, baseButton as D, getVariantStyles as E, typeStyles as G, sizeValues as H } from "./styles.js";
6
- import { Loader as I } from "../../builders/Loader/Loader.js";
7
- import { AnimatedText as J } from "../../builders/Text/Text.js";
8
- import { theme as K } from "../../../utils/theme/index.js";
9
- import { Box as P } from "../../builders/Box/Box.js";
1
+ import { jsx as o, jsxs as b, Fragment as O } from "react/jsx-runtime";
2
+ import { cx as w, css as P } from "@emotion/css";
3
+ import { motion as k } from "framer-motion";
4
+ import { useMemo as n } from "react";
5
+ import { cornerRadiusValues as m, baseButton as q, getVariantStyles as D, typeStyles as E, sizeValues as G } from "./styles.js";
6
+ import { Loader as H } from "../../builders/Loader/Loader.js";
7
+ import { AnimatedText as I } from "../../builders/Text/Text.js";
8
+ import { theme as J } from "../../../utils/theme/index.js";
9
+ import { Box as K } from "../../builders/Box/Box.js";
10
10
  import { Ripple as Q } from "../../builders/Ripple/Ripple.js";
11
- const { color: m } = K, ue = ({
12
- disabled: n,
11
+ const { color: u } = J, sr = ({
12
+ disabled: a,
13
13
  loading: l,
14
14
  className: g,
15
15
  wrapperClassName: S,
16
16
  buttonClassName: _,
17
17
  buttonDisabledClassName: $,
18
18
  textClassName: N,
19
- children: v,
20
- variant: r = "filled",
19
+ children: B,
20
+ variant: e = "filled",
21
21
  backgroundColor: f,
22
22
  textColor: d,
23
23
  textFontWeight: U,
24
- borderColor: c,
25
- color: e = "accent",
24
+ borderColor: i,
25
+ color: r = "accent",
26
26
  opacity: p,
27
27
  borderRadius: x,
28
- width: i = "auto",
28
+ width: c = "auto",
29
29
  size: s = "md",
30
- iconLeft: B,
30
+ iconLeft: v,
31
31
  iconRight: R,
32
32
  intensity: t = "primary",
33
33
  flex: T,
34
34
  type: V = "button",
35
35
  ...j
36
36
  }) => {
37
- const h = o(() => {
38
- switch (i) {
37
+ const h = n(() => {
38
+ switch (c) {
39
39
  case "full":
40
40
  return "100%";
41
41
  case "auto":
42
42
  return "fit-content";
43
43
  default:
44
- return i;
44
+ return c;
45
45
  }
46
- }, [i]), F = o(() => f || (r === "filled" ? e === "neutral" ? m.fill.neutralSecondary : `var(--fill-${e}-${t})` : "transparent"), [r, f, e, t]), W = o(() => {
46
+ }, [c]), A = n(() => f || (e === "filled" ? r === "neutral" ? u.fill.neutralSecondary : r === "neutral-primary" ? u.fill.neutralPrimary : `var(--fill-${r}-${t})` : "transparent"), [e, f, r, t]), F = n(() => {
47
47
  if (t === "primary") {
48
- if (e === "neutral") return m.text.secondary;
49
- if (r === "filled") return m.text.inverse;
50
- } else if (e === "neutral") return m.text.secondary;
51
- return `var(--text-${e})`;
52
- }, [t, e, r]), b = o(() => {
48
+ if (r === "neutral" || r === "neutral-primary")
49
+ return u.text.secondary;
50
+ if (e === "filled") return u.text.inverse;
51
+ } else if (r === "neutral") return u.text.secondary;
52
+ return `var(--text-${r})`;
53
+ }, [t, r, e]), y = n(() => {
53
54
  if (t === "primary") {
54
- if (e === "neutral") return "secondary";
55
- if (r === "filled") return "inverse";
56
- } else if (e === "neutral") return "secondary";
57
- return e;
58
- }, [r, e, t]), A = o(() => c || (r === "outline" ? `var(--border-${e}-${t})` : "transparent"), [r, c, e, t]), C = o(() => {
55
+ if (r === "neutral" || r === "neutral-primary")
56
+ return "secondary";
57
+ if (e === "filled") return "inverse";
58
+ } else if (r === "neutral" || r === "neutral-primary")
59
+ return "secondary";
60
+ return r;
61
+ }, [e, r, t]), W = n(() => i || (e === "outline" ? r === "neutral-primary" ? u.border.neutralAlphaBasic : `var(--border-${r}-${t})` : "transparent"), [e, i, r, t]), C = n(() => {
59
62
  switch (s) {
60
63
  case "lg":
61
- return u.lg;
64
+ return m.lg;
62
65
  case "md":
63
66
  case "sm":
64
- return u.md;
67
+ return m.md;
65
68
  case "xs":
66
- return u.sm;
69
+ return m.sm;
67
70
  default:
68
- return u.md;
71
+ return m.md;
69
72
  }
70
- }, [s]), L = y(
71
- D,
72
- E(r, e, t, n),
73
- G[r],
74
- n ? $ : void 0,
75
- k({
76
- borderRadius: x ? u[x] : C,
77
- backgroundColor: F,
78
- borderColor: A,
79
- color: d ?? `var(--text-${b})`,
73
+ }, [s]), L = w(
74
+ q,
75
+ D(e, r, t, a),
76
+ E[e],
77
+ a ? $ : void 0,
78
+ P({
79
+ borderRadius: x ? m[x] : C,
80
+ backgroundColor: A,
81
+ borderColor: W,
82
+ color: d ?? `var(--text-${y})`,
80
83
  width: h,
81
- height: H[s],
82
- opacity: p || (n ? 0.7 : 1)
84
+ height: G[s],
85
+ opacity: p || (a ? 0.7 : 1)
83
86
  }),
84
87
  _
85
- ), M = o(() => {
88
+ ), M = n(() => {
86
89
  switch (s) {
87
90
  case "lg":
88
91
  case "md":
@@ -94,44 +97,44 @@ const { color: m } = K, ue = ({
94
97
  return "body-1";
95
98
  }
96
99
  }, [s]);
97
- return /* @__PURE__ */ a(
98
- P,
100
+ return /* @__PURE__ */ o(
101
+ K,
99
102
  {
100
- className: y(S, g),
103
+ className: w(S, g),
101
104
  w: h,
102
105
  flex: T,
103
106
  relative: !0,
104
107
  overflow: "hidden",
105
- children: /* @__PURE__ */ w(
106
- q.button,
108
+ children: /* @__PURE__ */ b(
109
+ k.button,
107
110
  {
108
111
  ...j,
109
- whileTap: !n && !l ? {
112
+ whileTap: !a && !l ? {
110
113
  scale: 0.99,
111
114
  boxShadow: "inset 0 0 0 10000px rgba(0,0,0,0.1)",
112
115
  transition: { duration: 0 }
113
116
  } : {},
114
- disabled: n || l,
117
+ disabled: a || l,
115
118
  className: L,
116
119
  type: V,
117
120
  children: [
118
- l ? /* @__PURE__ */ a(I, { color: W }) : /* @__PURE__ */ w(O, { children: [
119
- B,
120
- /* @__PURE__ */ a(
121
- J,
121
+ l ? /* @__PURE__ */ o(H, { color: F }) : /* @__PURE__ */ b(O, { children: [
122
+ v,
123
+ /* @__PURE__ */ o(
124
+ I,
122
125
  {
123
126
  style: { color: d },
124
- colorName: b,
127
+ colorName: y,
125
128
  variant: M,
126
129
  className: N,
127
130
  textOverflow: "ellipsis",
128
131
  overflow: "hidden",
129
- children: v
132
+ children: B
130
133
  }
131
134
  ),
132
135
  R
133
136
  ] }),
134
- /* @__PURE__ */ a(Q, {})
137
+ /* @__PURE__ */ o(Q, {})
135
138
  ]
136
139
  }
137
140
  )
@@ -139,5 +142,5 @@ const { color: m } = K, ue = ({
139
142
  );
140
143
  };
141
144
  export {
142
- ue as Button
145
+ sr as Button
143
146
  };
@@ -11,8 +11,9 @@ export type ButtonType = "clear" | "filled" | "outline";
11
11
  * Использует системные токены:
12
12
  * - `accent` — акцентный цвет
13
13
  * - `neutral` — нейтральный
14
+ * - `neutral-primary` — нейтральный основной
14
15
  * - `negative` — негативный (ошибки/отмена)
15
16
  * - `positive` — позитивный (успех)
16
17
  * - `warning` — предупреждение
17
18
  */
18
- export type ButtonColor = AccentType | NeutralType | NegativeType | PositiveType | WarningType | TransferType;
19
+ export type ButtonColor = AccentType | NeutralType | "neutral-primary" | NegativeType | PositiveType | WarningType | TransferType;
@@ -8,10 +8,10 @@ import { MarkdownShortcutPlugin as U } from "@lexical/react/LexicalMarkdownShort
8
8
  import { OnChangePlugin as W } from "@lexical/react/LexicalOnChangePlugin";
9
9
  import { TablePlugin as H } from "@lexical/react/LexicalTablePlugin";
10
10
  import { useState as u, useMemo as a, useCallback as p } from "react";
11
- import { MARKDOWN_TOOLBAR_DEFAULT_ACTIONS as K } from "./MarkdownTextEditor.const.js";
12
- import { MarkdownTextEditorLocaleProvider as q } from "./MarkdownTextEditor.locale.js";
11
+ import { getEditorConfig as K } from "./configs/editor.config.js";
12
+ import { MARKDOWN_TOOLBAR_DEFAULT_ACTIONS as q } from "./MarkdownTextEditor.const.js";
13
+ import { MarkdownTextEditorLocaleProvider as z } from "./MarkdownTextEditor.locale.js";
13
14
  import { EDITOR_TRANSFORMERS as g } from "./transformers/index.js";
14
- import { getEditorConfig as z } from "./configs/editor.config.js";
15
15
  import { EditorStateContext as G } from "./contexts/EditorStateContext/EditorStateContext.js";
16
16
  import { ToolbarContext as J } from "./contexts/ToolbarContext/ToolbarContext.js";
17
17
  import { EditorToolbar as Q } from "./components/EditorToolbar/EditorToolbar.js";
@@ -40,7 +40,7 @@ function No({
40
40
  fieldClassName: R,
41
41
  previewClassName: v
42
42
  }) {
43
- const [d, A] = u(""), [i, N] = u(!1), { availableActions: s, onImagesUpload: O } = P || {}, I = a(() => z(), []), L = a(
43
+ const [d, A] = u(""), [i, N] = u(!1), { availableActions: s, onImagesUpload: O } = P || {}, I = a(() => K(), []), L = a(
44
44
  () => ({
45
45
  isEditable: !m,
46
46
  isPreviewMode: i,
@@ -49,7 +49,7 @@ function No({
49
49
  }),
50
50
  [m, i, d]
51
51
  ), F = a(() => ({
52
- availableActions: s || K
52
+ availableActions: s || q
53
53
  }), [s]), f = p(
54
54
  (t) => {
55
55
  A(t), r.onMarkdownChange && r.onMarkdownChange(t);
@@ -64,7 +64,7 @@ function No({
64
64
  },
65
65
  [f, r]
66
66
  );
67
- return /* @__PURE__ */ o(q, { locale: M, children: /* @__PURE__ */ o(D, { initialConfig: I, children: /* @__PURE__ */ o(G.Provider, { value: L, children: /* @__PURE__ */ c(J.Provider, { value: F, children: [
67
+ return /* @__PURE__ */ o(z, { locale: M, children: /* @__PURE__ */ o(D, { initialConfig: I, children: /* @__PURE__ */ o(G.Provider, { value: L, children: /* @__PURE__ */ c(J.Provider, { value: F, children: [
68
68
  /* @__PURE__ */ c(
69
69
  h,
70
70
  {
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { Size } from '../../../types';
2
+ import { AccentType, NeutralType, Size } from '../../../types';
3
3
  /**
4
4
  * Radio — доступная реализация визуального радио-переключателя.
5
5
  *
@@ -44,6 +44,15 @@ export type RadioProps = {
44
44
  * @default "left"
45
45
  */
46
46
  side?: "left" | "right";
47
+ /**
48
+ * Цветовая схема радиокнопки в выбранном (checked) состоянии.
49
+ * - `accent` — заливка индикатора акцентным цветом (стандартное поведение).
50
+ * - `neutral` — индикатор остаётся незалитым: видимая нейтральная рамка
51
+ * (`border/neutral-primary`) и точка нейтрального цвета (`icon/secondary`)
52
+ * вместо заливки. Не влияет на состояние ошибки — `error` всегда приоритетнее.
53
+ * @default "accent"
54
+ */
55
+ color?: AccentType | NeutralType;
47
56
  /**
48
57
  * Делает конкретное Radio доступной только для чтения.
49
58
  * - Изменение выбранного значения запрещено.
@@ -1,113 +1,118 @@
1
- import { jsxs as h, jsx as n } from "react/jsx-runtime";
2
- import { cx as E } from "@emotion/css";
3
- import { forwardRef as F } from "react";
4
- import { useRadioGroupContext as H } from "./context.js";
5
- import { styles as t } from "./styles.js";
6
- import { useControlled as J } from "../../../utils/hooks/useControlled.js";
7
- import { theme as K } from "../../../utils/theme/index.js";
8
- import { Box as c } from "../../builders/Box/Box.js";
9
- import { Text as g } from "../../builders/Text/Text.js";
10
- const { color: o, cornerRadius: x } = K, R = {
1
+ import { jsxs as x, jsx as l } from "react/jsx-runtime";
2
+ import { cx as J } from "@emotion/css";
3
+ import { forwardRef as K } from "react";
4
+ import { useRadioGroupContext as Q } from "./context.js";
5
+ import { styles as n } from "./styles.js";
6
+ import { useControlled as X } from "../../../utils/hooks/useControlled.js";
7
+ import { theme as Y } from "../../../utils/theme/index.js";
8
+ import { Box as u } from "../../builders/Box/Box.js";
9
+ import { Text as R } from "../../builders/Text/Text.js";
10
+ const { color: r, cornerRadius: N } = Y, m = {
11
11
  sm: {
12
12
  inner: 12,
13
+ // neutral: точка вдвое меньше, чем у accent (см. md — подтверждено в Figma)
14
+ neutralInner: 6,
13
15
  outer: 20
14
16
  },
15
17
  md: {
16
18
  inner: 16,
19
+ // neutral: 8px точка в 24px внешнем круге — Figma node 8677:5697, состояние Selected
20
+ neutralInner: 8,
17
21
  outer: 24
18
22
  }
19
- }, Q = F(
23
+ }, Z = K(
20
24
  ({
21
- value: i,
25
+ value: s,
22
26
  children: v,
23
- checked: s,
27
+ checked: d,
24
28
  defaultChecked: C,
25
- onChange: N,
26
- disabled: k,
27
- className: S,
28
- description: m,
29
- size: w,
30
- side: z,
31
- readOnly: B,
29
+ onChange: k,
30
+ disabled: B,
31
+ className: I,
32
+ description: f,
33
+ size: S,
34
+ side: w,
35
+ readOnly: z,
32
36
  error: O,
37
+ color: P = "accent",
33
38
  outerCircleClassName: T,
34
39
  innerCircleClassName: V,
35
40
  labelContainerClassName: j,
36
41
  labelClassName: G,
37
- descriptionClassName: I
38
- }, P) => {
39
- const r = H(), u = !!r, f = s !== void 0, [A, D] = J(
40
- s,
42
+ descriptionClassName: W
43
+ }, A) => {
44
+ const o = Q(), b = !!o, y = d !== void 0, [D, L] = X(
45
+ d,
41
46
  C
42
- ), e = u ? r.value === i : f ? s : A, d = r?.disabled || k, l = w ?? r?.size ?? "md", L = z ?? r?.side ?? "left", b = B ?? r?.readOnly ?? !1, a = O ?? r?.error ?? !1, p = R[l].outer, y = R[l].inner, M = () => {
43
- d || b || (u ? r.setValue?.(i) : (f || D(!e), N?.(!e)));
44
- }, U = e && a ? o.fill.negativeTint : e ? o.fill.accentTint : o.fill.bgSecondary, W = e && a ? o.fill.negativePrimary : e ? o.fill.accentPrimary : void 0, q = e && a || a && !e ? o.border.negativeSecondary : o.border.neutralAlphaLow;
47
+ ), e = b ? o.value === s : y ? d : D, c = o?.disabled || B, a = S ?? o?.size ?? "md", M = w ?? o?.side ?? "left", p = z ?? o?.readOnly ?? !1, i = O ?? o?.error ?? !1, t = P === "neutral", h = m[a].outer, g = t ? m[a].neutralInner : m[a].inner, U = () => {
48
+ c || p || (b ? o.setValue?.(s) : (y || L(!e), k?.(!e)));
49
+ }, q = i ? e ? r.fill.negativeTint : r.fill.bgSecondary : e ? t ? r.fill.neutralPrimary : r.fill.accentTint : r.fill.bgSecondary, E = e ? i ? r.fill.negativePrimary : t ? r.icon.secondary : r.fill.accentPrimary : void 0, F = i ? r.border.negativeSecondary : e && t ? r.border.neutralPrimary : r.border.neutralAlphaLow, H = e && (!t || i) ? 0 : 1;
45
50
  return (
46
51
  // biome-ignore lint/a11y/useSemanticElements: <нарочное допущение тк с button проще работать чем с input>
47
- /* @__PURE__ */ h(
52
+ /* @__PURE__ */ x(
48
53
  "button",
49
54
  {
50
- ref: P,
55
+ ref: A,
51
56
  role: "radio",
52
57
  type: "button",
53
- "data-value": i,
58
+ "data-value": s,
54
59
  "aria-checked": e,
55
- "aria-disabled": d || void 0,
60
+ "aria-disabled": c || void 0,
56
61
  tabIndex: e ? 0 : -1,
57
- className: E([
58
- t.radio,
59
- e && t.checked,
60
- d && t.disabled,
61
- L === "right" && t.sideRight,
62
- b && t.readOnly,
63
- S
62
+ className: J([
63
+ n.radio,
64
+ e && n.checked,
65
+ c && n.disabled,
66
+ M === "right" && n.sideRight,
67
+ p && n.readOnly,
68
+ I
64
69
  ]),
65
- onClick: M,
70
+ onClick: U,
66
71
  children: [
67
- /* @__PURE__ */ n(
68
- c,
72
+ /* @__PURE__ */ l(
73
+ u,
69
74
  {
70
- w: p,
71
- h: p,
72
- backgroundColor: U,
73
- borderWidth: e ? 0 : 1,
74
- borderColor: q,
75
+ w: h,
76
+ h,
77
+ backgroundColor: q,
78
+ borderWidth: H,
79
+ borderColor: F,
75
80
  borderStyle: "solid",
76
81
  center: !0,
77
- borderRadius: x.fullRound,
82
+ borderRadius: N.fullRound,
78
83
  className: T,
79
- children: /* @__PURE__ */ n(
80
- c,
84
+ children: /* @__PURE__ */ l(
85
+ u,
81
86
  {
82
- w: y,
83
- h: y,
84
- backgroundColor: W,
85
- borderRadius: x.fullRound,
87
+ w: g,
88
+ h: g,
89
+ backgroundColor: E,
90
+ borderRadius: N.fullRound,
86
91
  "aria-hidden": !0,
87
92
  className: V
88
93
  }
89
94
  )
90
95
  }
91
96
  ),
92
- /* @__PURE__ */ h(c, { alignItems: "flex-start", className: j, children: [
93
- /* @__PURE__ */ n(
94
- g,
97
+ /* @__PURE__ */ x(u, { alignItems: "flex-start", className: j, children: [
98
+ /* @__PURE__ */ l(
99
+ R,
95
100
  {
96
- variant: l === "sm" ? "body-2" : "body-1",
101
+ variant: a === "sm" ? "body-2" : "body-1",
97
102
  tag: "span",
98
103
  left: !0,
99
104
  className: G,
100
105
  children: v
101
106
  }
102
107
  ),
103
- m && /* @__PURE__ */ n(
104
- g,
108
+ f && /* @__PURE__ */ l(
109
+ R,
105
110
  {
106
111
  tag: "span",
107
112
  variant: "body-2",
108
113
  colorName: "secondary",
109
- className: I,
110
- children: m
114
+ className: W,
115
+ children: f
111
116
  }
112
117
  )
113
118
  ] })
@@ -117,7 +122,7 @@ const { color: o, cornerRadius: x } = K, R = {
117
122
  );
118
123
  }
119
124
  );
120
- Q.displayName = "Radio";
125
+ Z.displayName = "Radio";
121
126
  export {
122
- Q as Radio
127
+ Z as Radio
123
128
  };
@@ -2,7 +2,7 @@ import { FC, MouseEvent, ReactNode } from 'react';
2
2
  import { AccentType, NegativeType, NeutralType, PositiveType, Size, TransferType, WarningType } from '../../../types/tokens.types';
3
3
  export type BadgeVariant = "filled" | "outline" | "clear";
4
4
  export type BadgeColor = NeutralType | AccentType | WarningType | PositiveType | NegativeType | TransferType;
5
- export type BadgeSize = Extract<Size, "sm" | "md" | "lg">;
5
+ export type BadgeSize = Extract<Size, "xs" | "sm" | "md" | "lg">;
6
6
  export type BadgeTextAlign = "left" | "center" | "right";
7
7
  export interface BadgeProps {
8
8
  /** Содержимое лейбла бейджа. Текст всегда центрируется по вертикали внутри бейджа. */
@@ -1,11 +1,11 @@
1
- import { jsxs as k, jsx as a } from "react/jsx-runtime";
2
- import { cx as y, css as u } from "@emotion/css";
1
+ import { jsxs as k, jsx as n } from "react/jsx-runtime";
2
+ import { cx as y, css as x } from "@emotion/css";
3
3
  import B from "../../../assets/svg/shared/close-outline.svg.js";
4
4
  import { Box as L } from "../../builders/Box/Box.js";
5
5
  import { theme as $ } from "../../../utils/theme/index.js";
6
6
  import { Ripple as j } from "../../builders/Ripple/Ripple.js";
7
7
  import { Text as h } from "../../builders/Text/Text.js";
8
- const { color: e, cornerRadius: g, spacing: l } = $, b = {
8
+ const { color: e, cornerRadius: l, spacing: a } = $, b = {
9
9
  neutral: {
10
10
  border: e.border.neutralAlphaLow,
11
11
  bg: e.status.neutralTint,
@@ -42,32 +42,42 @@ const { color: e, cornerRadius: g, spacing: l } = $, b = {
42
42
  color: "var(--text-transfer)",
43
43
  colorName: "transfer"
44
44
  }
45
- }, i = {
45
+ }, p = {
46
+ xs: {
47
+ h: 18,
48
+ text: "caption-2",
49
+ corner: l.xs,
50
+ p: `3px ${a.xs}`,
51
+ gap: "2px"
52
+ },
46
53
  sm: {
47
54
  h: 24,
48
55
  text: "caption-1",
49
- corner: g.xs,
50
- p: `6px ${l.sm}`
56
+ corner: l.xs,
57
+ p: `6px ${a.sm}`,
58
+ gap: a.sm
51
59
  },
52
60
  md: {
53
61
  h: 32,
54
62
  text: "body-2",
55
- corner: g.sm,
56
- p: `6px ${l.md}`
63
+ corner: l.sm,
64
+ p: `6px ${a.md}`,
65
+ gap: a.sm
57
66
  },
58
67
  lg: {
59
68
  h: 40,
60
69
  text: "body-2",
61
- corner: g.md,
62
- p: `6px ${l.lg}`
70
+ corner: l.md,
71
+ p: `6px ${a.lg}`,
72
+ gap: a.sm
63
73
  }
64
- }, R = (d, n, o, p) => {
65
- const t = b[n];
66
- let r = t.bg, s = "none";
67
- const c = t.color;
74
+ }, R = (d, s, o, m) => {
75
+ const t = b[s];
76
+ let r = t.bg, c = "none";
77
+ const i = t.color;
68
78
  switch (d) {
69
79
  case "outline":
70
- r = "transparent", s = `1px solid ${t.border}`;
80
+ r = "transparent", c = `1px solid ${t.border}`;
71
81
  break;
72
82
  case "clear":
73
83
  r = "transparent";
@@ -76,64 +86,63 @@ const { color: e, cornerRadius: g, spacing: l } = $, b = {
76
86
  r = t.bg;
77
87
  break;
78
88
  }
79
- return u({
80
- cursor: o ? "not-allowed" : p ? "pointer" : "default",
89
+ return x({
90
+ cursor: o ? "not-allowed" : m ? "pointer" : "default",
81
91
  opacity: o ? 0.5 : 1,
82
92
  userSelect: "none",
83
93
  position: "relative",
84
94
  transition: "background-color 0.2s, opacity 0.2s",
85
95
  backgroundColor: r,
86
- color: c,
87
- border: s
96
+ color: i,
97
+ border: c
88
98
  });
89
- }, I = u({
99
+ }, I = x({
90
100
  display: "inline-flex",
91
101
  cursor: "pointer",
92
102
  opacity: 0.6,
93
103
  "&:hover": { opacity: 1 }
94
- }), w = u({
104
+ }), w = x({
95
105
  display: "inline-flex",
96
106
  alignItems: "center",
97
107
  color: "inherit"
98
108
  }), O = ({
99
109
  label: d,
100
- color: n = "neutral",
110
+ color: s = "neutral",
101
111
  size: o = "md",
102
- variant: p = "filled",
112
+ variant: m = "filled",
103
113
  width: t,
104
114
  textAlign: r = "center",
105
- leftElement: s,
106
- rightElement: c,
107
- disabled: x,
108
- onClick: m,
115
+ leftElement: c,
116
+ rightElement: i,
117
+ disabled: u,
118
+ onClick: g,
109
119
  onDelete: f,
110
120
  className: N,
111
121
  labelClassName: C,
112
122
  deleteButtonClassName: S
113
123
  }) => {
114
- const T = R(p, n, x, m);
124
+ const T = R(m, s, u, g);
115
125
  return /* @__PURE__ */ k(
116
126
  L,
117
127
  {
118
128
  row: !0,
119
129
  alignItems: "center",
120
130
  justifyContent: "center",
121
- gap: l.sm,
122
- p: i[o].p,
123
- h: i[o].h,
131
+ p: p[o].p,
132
+ h: p[o].h,
124
133
  w: t,
125
134
  overflow: "hidden",
126
- borderRadius: i[o].corner,
127
- onClick: m,
135
+ borderRadius: p[o].corner,
136
+ onClick: g,
128
137
  className: y(T, N),
129
138
  children: [
130
- m && /* @__PURE__ */ a(j, {}),
131
- s && /* @__PURE__ */ a("span", { className: w, children: s }),
132
- /* @__PURE__ */ a(
139
+ g && /* @__PURE__ */ n(j, {}),
140
+ c && /* @__PURE__ */ n("span", { className: w, children: c }),
141
+ /* @__PURE__ */ n(
133
142
  h,
134
143
  {
135
- variant: i[o].text,
136
- colorName: b[n].colorName,
144
+ variant: p[o].text,
145
+ colorName: b[s].colorName,
137
146
  textOverflow: "ellipsis",
138
147
  left: r === "left",
139
148
  center: r === "center",
@@ -143,16 +152,16 @@ const { color: e, cornerRadius: g, spacing: l } = $, b = {
143
152
  children: d
144
153
  }
145
154
  ),
146
- c && /* @__PURE__ */ a("span", { className: w, children: c }),
147
- f && !x && /* @__PURE__ */ a(
155
+ i && /* @__PURE__ */ n("span", { className: w, children: i }),
156
+ f && !u && /* @__PURE__ */ n(
148
157
  h,
149
158
  {
150
159
  className: y(I, S),
151
- colorName: b[n].colorName,
160
+ colorName: b[s].colorName,
152
161
  onClick: (v) => {
153
162
  v.stopPropagation(), f(v);
154
163
  },
155
- children: /* @__PURE__ */ a(B, {})
164
+ children: /* @__PURE__ */ n(B, {})
156
165
  }
157
166
  )
158
167
  ]