@vkzstudio/muza-ui 1.0.29 → 1.0.30

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.
@@ -14,16 +14,16 @@ import { cn as b } from "../../utils/cn.js";
14
14
  const et = J(
15
15
  [
16
16
  "overflow-hidden rounded-xl border bg-surface-base-secondary transition-colors",
17
- "focus-within:border-comp-texteditor-stroke-focused",
17
+ "focus-within:border-comp-input-stroke-focused",
18
18
  "pb-[calc(var(--spacing-xl)/2)]"
19
19
  // Offset scrollbar to make resize handle visible
20
20
  ],
21
21
  {
22
22
  variants: {
23
23
  state: {
24
- default: "border-comp-texteditor-stroke-def hover:border-comp-texteditor-stroke-hover",
25
- disabled: "cursor-not-allowed border-comp-texteditor-stroke-disabled opacity-60",
26
- error: "border-comp-texteditor-stroke-error"
24
+ default: "border-comp-input-stroke-def hover:border-comp-input-stroke-hover",
25
+ disabled: "cursor-not-allowed border-comp-input-stroke-disabled opacity-60",
26
+ error: "border-comp-input-stroke-error"
27
27
  }
28
28
  },
29
29
  defaultVariants: {
@@ -34,7 +34,7 @@ const et = J(
34
34
  ({
35
35
  value: i,
36
36
  defaultValue: g,
37
- onChange: d,
37
+ onChange: c,
38
38
  onBlur: y,
39
39
  onFocus: v,
40
40
  placeholder: L = "",
@@ -42,7 +42,7 @@ const et = J(
42
42
  hint: T,
43
43
  infoTooltip: C,
44
44
  disabled: o = !1,
45
- readOnly: c = !1,
45
+ readOnly: d = !1,
46
46
  required: M,
47
47
  disableRequiredAsterisk: H,
48
48
  error: l,
@@ -92,10 +92,10 @@ const et = J(
92
92
  ...w
93
93
  ],
94
94
  content: i ?? g ?? "",
95
- editable: !o && !c,
95
+ editable: !o && !d,
96
96
  onUpdate: ({ editor: e }) => {
97
97
  const x = e.getText().trim(), h = e.getHTML();
98
- d == null || d(x.length === 0 ? "" : h);
98
+ c == null || c(x.length === 0 ? "" : h);
99
99
  },
100
100
  onBlur: y,
101
101
  onFocus: v,
@@ -138,8 +138,8 @@ const et = J(
138
138
  (i || "<p></p>") !== (e || "<p></p>") && t.commands.setContent(i, !1);
139
139
  }
140
140
  }, [t, i]), _(() => {
141
- t && t.setEditable(!o && !c);
142
- }, [t, o, c]), $(
141
+ t && t.setEditable(!o && !d);
142
+ }, [t, o, d]), $(
143
143
  S,
144
144
  () => ({
145
145
  editor: t,
@@ -1,10 +1,10 @@
1
1
  import { jsxs as G, jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as H, useId as U, useRef as W, useState as B } from "react";
3
- import { cva as h } from "class-variance-authority";
3
+ import { cva as x } from "class-variance-authority";
4
4
  import { FormField as D } from "../FormField/FormField.js";
5
- import { cn as x } from "../../utils/cn.js";
5
+ import { cn as h } from "../../utils/cn.js";
6
6
  import { typographyVariants as b } from "../Typography/Typography.js";
7
- const E = h(
7
+ const E = x(
8
8
  [
9
9
  b({
10
10
  variant: "body",
@@ -36,10 +36,10 @@ const E = h(
36
36
  resize: "none"
37
37
  }
38
38
  }
39
- ), J = h(
39
+ ), J = x(
40
40
  [
41
- "overflow-hidden rounded-xl border border-comp-input-stroke-def bg-comp-input-fill-def transition-colors",
42
- "focus-within:border-comp-texteditor-stroke-focused",
41
+ "overflow-hidden rounded-xl border bg-comp-input-fill-def transition-colors",
42
+ "focus-within:border-comp-input-stroke-focused",
43
43
  "pb-[calc(var(--spacing-xl)/2)]",
44
44
  // Offset scrollbar to make resize handle visible
45
45
  "flex"
@@ -47,9 +47,9 @@ const E = h(
47
47
  {
48
48
  variants: {
49
49
  state: {
50
- default: "border-comp-texteditor-stroke-def hover:border-comp-texteditor-stroke-hover",
50
+ default: "border-comp-input-stroke-def hover:border-comp-input-stroke-hover",
51
51
  disabled: "cursor-not-allowed border-comp-input-stroke-disabled bg-comp-input-fill-disabled",
52
- error: "border-comp-texteditor-stroke-error"
52
+ error: "border-comp-input-stroke-error"
53
53
  }
54
54
  },
55
55
  defaultVariants: {
@@ -85,7 +85,7 @@ const E = h(
85
85
  }, C = R && i.maxLength != null ? /* @__PURE__ */ G(
86
86
  "span",
87
87
  {
88
- className: x(
88
+ className: h(
89
89
  b({
90
90
  variant: "body",
91
91
  weight: "regular",
@@ -122,7 +122,7 @@ const E = h(
122
122
  id: r,
123
123
  required: o,
124
124
  "aria-required": o,
125
- className: x(
125
+ className: h(
126
126
  E({ error: e, resize: z, autoResize: s }),
127
127
  g
128
128
  ),