@vkzstudio/muza-ui 1.0.29 → 1.0.31
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/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +46 -41
- package/dist/components/Checkbox/Checkbox.stories.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +2 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +34 -32
- package/dist/components/Radio/Radio.d.ts +3 -1
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +10 -9
- package/dist/components/Radio/Radio.stories.d.ts +1 -0
- package/dist/components/Radio/Radio.stories.d.ts.map +1 -1
- package/dist/components/TextEditor/EditorToolbar.js +35 -35
- package/dist/components/TextEditor/TextEditor.js +10 -10
- package/dist/components/Textarea/Textarea.js +10 -10
- package/dist/muza-ui.css +1 -1
- package/dist/styles/token-colors.css +1 -10
- package/dist/styles/token-sizes.css +20 -0
- package/package.json +1 -1
|
@@ -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-
|
|
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-
|
|
25
|
-
disabled: "cursor-not-allowed border-comp-
|
|
26
|
-
error: "border-comp-
|
|
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:
|
|
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:
|
|
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 && !
|
|
95
|
+
editable: !o && !d,
|
|
96
96
|
onUpdate: ({ editor: e }) => {
|
|
97
97
|
const x = e.getText().trim(), h = e.getHTML();
|
|
98
|
-
|
|
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 && !
|
|
142
|
-
}, [t, o,
|
|
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
|
|
3
|
+
import { cva as x } from "class-variance-authority";
|
|
4
4
|
import { FormField as D } from "../FormField/FormField.js";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as h } from "../../utils/cn.js";
|
|
6
6
|
import { typographyVariants as b } from "../Typography/Typography.js";
|
|
7
|
-
const E =
|
|
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 =
|
|
39
|
+
), J = x(
|
|
40
40
|
[
|
|
41
|
-
"overflow-hidden rounded-xl border
|
|
42
|
-
"focus-within:border-comp-
|
|
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-
|
|
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-
|
|
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:
|
|
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:
|
|
125
|
+
className: h(
|
|
126
126
|
E({ error: e, resize: z, autoResize: s }),
|
|
127
127
|
g
|
|
128
128
|
),
|