@vkzstudio/muza-ui 1.0.17 → 1.0.19
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/Button/buttonVariants.js +1 -1
- 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 +36 -29
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +33 -31
- package/dist/components/FileUpload/FileItem.d.ts +13 -3
- package/dist/components/FileUpload/FileItem.d.ts.map +1 -1
- package/dist/components/FileUpload/FileItem.js +94 -80
- package/dist/components/FileUpload/FileUpload.d.ts +24 -2
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.js +174 -148
- package/dist/components/FileUpload/FileUpload.stories.d.ts +5 -0
- package/dist/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/Flex/Flex.d.ts +3 -1
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +33 -31
- package/dist/components/FormField/FormField.d.ts +30 -0
- package/dist/components/FormField/FormField.d.ts.map +1 -0
- package/dist/components/FormField/FormField.js +56 -0
- package/dist/components/FormField/InputHint.d.ts +13 -0
- package/dist/components/FormField/InputHint.d.ts.map +1 -0
- package/dist/components/FormField/InputHint.js +26 -0
- package/dist/components/FormField/InputLabel.d.ts +20 -0
- package/dist/components/FormField/InputLabel.d.ts.map +1 -0
- package/dist/components/FormField/InputLabel.js +27 -0
- package/dist/components/FormField/index.d.ts +4 -0
- package/dist/components/FormField/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.js +79 -94
- 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 +125 -131
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +126 -131
- package/dist/components/TextEditor/TextEditor.d.ts +4 -0
- package/dist/components/TextEditor/TextEditor.d.ts.map +1 -1
- package/dist/components/TextEditor/TextEditor.js +113 -135
- package/dist/components/Textarea/Textarea.d.ts +4 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +52 -61
- package/dist/components/Textarea/Textarea.stories.d.ts +1 -0
- package/dist/components/Textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/components/TimePicker/TimePicker.d.ts +2 -0
- package/dist/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/muza-ui.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs as f, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { InputHint as h } from "./InputHint.js";
|
|
4
|
+
import { InputLabel as e } from "./InputLabel.js";
|
|
5
|
+
import { cn as F } from "../../utils/cn.js";
|
|
6
|
+
const N = g(
|
|
7
|
+
({
|
|
8
|
+
children: t,
|
|
9
|
+
label: i,
|
|
10
|
+
hint: o,
|
|
11
|
+
error: s,
|
|
12
|
+
required: r,
|
|
13
|
+
disableRequiredAsterisk: p,
|
|
14
|
+
htmlFor: c,
|
|
15
|
+
labelId: n,
|
|
16
|
+
hintId: x,
|
|
17
|
+
labelExtra: d,
|
|
18
|
+
className: a
|
|
19
|
+
}, l) => /* @__PURE__ */ f(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
ref: l,
|
|
23
|
+
className: F("flex flex-col gap-comp-input-gap", a),
|
|
24
|
+
children: [
|
|
25
|
+
i && (d ? /* @__PURE__ */ f("div", { className: "flex items-center gap-2xs", children: [
|
|
26
|
+
/* @__PURE__ */ m(
|
|
27
|
+
e,
|
|
28
|
+
{
|
|
29
|
+
htmlFor: c,
|
|
30
|
+
id: n,
|
|
31
|
+
required: r,
|
|
32
|
+
disableRequiredAsterisk: p,
|
|
33
|
+
children: i
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
d
|
|
37
|
+
] }) : /* @__PURE__ */ m(
|
|
38
|
+
e,
|
|
39
|
+
{
|
|
40
|
+
htmlFor: c,
|
|
41
|
+
id: n,
|
|
42
|
+
required: r,
|
|
43
|
+
disableRequiredAsterisk: p,
|
|
44
|
+
children: i
|
|
45
|
+
}
|
|
46
|
+
)),
|
|
47
|
+
t,
|
|
48
|
+
o && /* @__PURE__ */ m(h, { error: s, id: x, children: o })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
N.displayName = "FormField";
|
|
54
|
+
export {
|
|
55
|
+
N as FormField
|
|
56
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface InputHintProps {
|
|
3
|
+
/** Hint or error message content. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** When true, renders the hint in an error color. */
|
|
6
|
+
error?: boolean;
|
|
7
|
+
/** ID for the hint element (used with `aria-describedby`). */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** Additional CSS classes for the hint element. */
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const InputHint: ({ children, error, id, className, }: InputHintProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=InputHint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputHint.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/InputHint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,cAAc;IAC7B,qCAAqC;IACrC,QAAQ,EAAE,SAAS,CAAA;IACnB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,SAAS,GAAI,qCAKvB,cAAc,4CAchB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as m } from "../Typography/Typography.js";
|
|
3
|
+
import { cn as n } from "../../utils/cn.js";
|
|
4
|
+
const a = ({
|
|
5
|
+
children: t,
|
|
6
|
+
error: o,
|
|
7
|
+
id: r,
|
|
8
|
+
className: p
|
|
9
|
+
}) => /* @__PURE__ */ e(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
component: "span",
|
|
13
|
+
size: "sm",
|
|
14
|
+
weight: "regular",
|
|
15
|
+
className: n(
|
|
16
|
+
"text-comp-input-text-secondary",
|
|
17
|
+
{ "text-comp-input-text-error": o },
|
|
18
|
+
p
|
|
19
|
+
),
|
|
20
|
+
id: r,
|
|
21
|
+
children: t
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
export {
|
|
25
|
+
a as InputHint
|
|
26
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface InputLabelProps {
|
|
3
|
+
/** Label text content. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Associates the label with a form element by ID. */
|
|
6
|
+
htmlFor?: string;
|
|
7
|
+
/** ID for the label element itself (used with `aria-labelledby`). */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** When true, displays a red asterisk after the label text. */
|
|
10
|
+
required?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Hides the required asterisk (*) even when `required` is true.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
disableRequiredAsterisk?: boolean;
|
|
16
|
+
/** Additional CSS classes for the label element. */
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const InputLabel: ({ children, htmlFor, id, required, disableRequiredAsterisk, className, }: InputLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=InputLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/InputLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,QAAQ,EAAE,SAAS,CAAA;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qEAAqE;IACrE,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,UAAU,GAAI,0EAOxB,eAAe,4CAcjB,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as a } from "../Typography/Typography.js";
|
|
3
|
+
const c = ({
|
|
4
|
+
children: e,
|
|
5
|
+
htmlFor: r,
|
|
6
|
+
id: t,
|
|
7
|
+
required: o,
|
|
8
|
+
disableRequiredAsterisk: p,
|
|
9
|
+
className: s
|
|
10
|
+
}) => /* @__PURE__ */ m(
|
|
11
|
+
a,
|
|
12
|
+
{
|
|
13
|
+
component: "label",
|
|
14
|
+
weight: "regular",
|
|
15
|
+
size: "sm",
|
|
16
|
+
htmlFor: r,
|
|
17
|
+
id: t,
|
|
18
|
+
className: s,
|
|
19
|
+
children: [
|
|
20
|
+
e,
|
|
21
|
+
o && !p && /* @__PURE__ */ n("span", { className: "text-comp-input-text-error", children: " *" })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
export {
|
|
26
|
+
c as InputLabel
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAMjE,QAAA,MAAM,oBAAoB;;;8EAyBzB,CAAA;AAgBD;;;;;GAKG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC,EAC1E,YAAY,CAAC,OAAO,oBAAoB,CAAC;IAC3C,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAA;IACxD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAC3B;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,KAAK,sHA0IjB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cva as
|
|
1
|
+
import { jsx as c, jsxs as j } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useId as W, useRef as $, useEffect as y } from "react";
|
|
3
|
+
import { cva as A } from "class-variance-authority";
|
|
4
4
|
import "../../node_modules/imask/esm/index.js";
|
|
5
5
|
import "../../node_modules/imask/esm/controls/input.js";
|
|
6
6
|
import "../../node_modules/imask/esm/masked/factory.js";
|
|
@@ -10,11 +10,12 @@ import "../../node_modules/imask/esm/controls/html-mask-element.js";
|
|
|
10
10
|
import "../../node_modules/imask/esm/controls/html-contenteditable-mask-element.js";
|
|
11
11
|
import "../../node_modules/imask/esm/controls/input-history.js";
|
|
12
12
|
import "../../node_modules/react-imask/esm/input.js";
|
|
13
|
-
import
|
|
13
|
+
import C from "../../node_modules/react-imask/esm/hook.js";
|
|
14
14
|
import "../../node_modules/react-imask/esm/mixin.js";
|
|
15
|
-
import {
|
|
16
|
-
import { cn as
|
|
17
|
-
|
|
15
|
+
import { FormField as E } from "../FormField/FormField.js";
|
|
16
|
+
import { cn as u } from "../../utils/cn.js";
|
|
17
|
+
import { typographyVariants as M } from "../Typography/Typography.js";
|
|
18
|
+
const T = A(
|
|
18
19
|
[
|
|
19
20
|
"rounded-full border border-comp-input-stroke-def",
|
|
20
21
|
"bg-comp-input-fill-def transition-colors",
|
|
@@ -39,8 +40,8 @@ const M = C(
|
|
|
39
40
|
error: !1
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
), U = (d) =>
|
|
43
|
-
|
|
43
|
+
), U = (d) => u(
|
|
44
|
+
M({
|
|
44
45
|
size: d === "sm" ? "input" : "base",
|
|
45
46
|
weight: "medium",
|
|
46
47
|
fixY: !0
|
|
@@ -50,24 +51,24 @@ const M = C(
|
|
|
50
51
|
"placeholder:font-regular",
|
|
51
52
|
"disabled:cursor-not-allowed",
|
|
52
53
|
"w-full"
|
|
53
|
-
), Y =
|
|
54
|
+
), Y = z(
|
|
54
55
|
({
|
|
55
56
|
className: d,
|
|
56
|
-
type:
|
|
57
|
-
prefix:
|
|
58
|
-
suffix:
|
|
59
|
-
label:
|
|
60
|
-
hint:
|
|
61
|
-
size:
|
|
62
|
-
error:
|
|
57
|
+
type: w = "text",
|
|
58
|
+
prefix: m,
|
|
59
|
+
suffix: f,
|
|
60
|
+
label: b,
|
|
61
|
+
hint: h,
|
|
62
|
+
size: x,
|
|
63
|
+
error: s,
|
|
63
64
|
mask: i,
|
|
64
|
-
onChange:
|
|
65
|
-
id:
|
|
66
|
-
required:
|
|
67
|
-
disableRequiredAsterisk:
|
|
65
|
+
onChange: a,
|
|
66
|
+
id: I,
|
|
67
|
+
required: l,
|
|
68
|
+
disableRequiredAsterisk: N,
|
|
68
69
|
...v
|
|
69
70
|
}, o) => {
|
|
70
|
-
const
|
|
71
|
+
const R = W(), p = I ?? R, g = h ? `${p}-hint` : void 0, k = b ? `${p}-label` : void 0, e = $(null), r = C(
|
|
71
72
|
{
|
|
72
73
|
mask: i || "",
|
|
73
74
|
// Pattern like 'aaaaa-aaaaa' where 'a' = alphanumeric, '0' = digit
|
|
@@ -78,92 +79,76 @@ const M = C(
|
|
|
78
79
|
ref: e
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
|
-
|
|
82
|
-
if (i && (r != null && r.maskRef.current) &&
|
|
82
|
+
y(() => {
|
|
83
|
+
if (i && (r != null && r.maskRef.current) && a) {
|
|
83
84
|
const t = r.maskRef.current, n = () => {
|
|
84
|
-
const
|
|
85
|
+
const F = {
|
|
85
86
|
target: { value: t.value }
|
|
86
87
|
};
|
|
87
|
-
|
|
88
|
+
a(F);
|
|
88
89
|
};
|
|
89
90
|
return t.on("accept", n), () => {
|
|
90
91
|
t.off("accept", n);
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
|
-
}, [i, r,
|
|
94
|
+
}, [i, r, a]), y(() => {
|
|
94
95
|
o && (typeof o == "function" ? o(e.current) : o.current = e.current);
|
|
95
96
|
}, [e, o]);
|
|
96
|
-
const
|
|
97
|
+
const V = (t) => {
|
|
97
98
|
var n;
|
|
98
99
|
v.disabled || t.target !== e.current && ((n = e.current) == null || n.focus());
|
|
99
100
|
};
|
|
100
|
-
return /* @__PURE__ */
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
size: g,
|
|
121
|
-
error: m
|
|
122
|
-
}),
|
|
123
|
-
d
|
|
124
|
-
),
|
|
125
|
-
onClick: j,
|
|
126
|
-
children: [
|
|
127
|
-
b && /* @__PURE__ */ a("div", { className: "flex items-center text-icon-dark-secondary-def", children: b }),
|
|
128
|
-
/* @__PURE__ */ a(
|
|
129
|
-
"input",
|
|
130
|
-
{
|
|
131
|
-
type: N,
|
|
132
|
-
"data-slot": "input",
|
|
133
|
-
className: s(
|
|
134
|
-
U(g),
|
|
135
|
-
"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden [&::-webkit-inner-spin-button]:hidden",
|
|
136
|
-
"[&::-webkit-datetime-edit-text]:px-3xs"
|
|
137
|
-
),
|
|
138
|
-
ref: i ? r.ref : e,
|
|
139
|
-
onChange: i ? void 0 : p,
|
|
140
|
-
id: c,
|
|
141
|
-
"aria-describedby": y,
|
|
142
|
-
"aria-labelledby": k,
|
|
143
|
-
"aria-invalid": m,
|
|
144
|
-
"aria-required": f,
|
|
145
|
-
required: f,
|
|
146
|
-
...v
|
|
147
|
-
}
|
|
101
|
+
return /* @__PURE__ */ c(
|
|
102
|
+
E,
|
|
103
|
+
{
|
|
104
|
+
label: b,
|
|
105
|
+
hint: h,
|
|
106
|
+
error: s,
|
|
107
|
+
required: l,
|
|
108
|
+
disableRequiredAsterisk: N,
|
|
109
|
+
htmlFor: p,
|
|
110
|
+
labelId: k,
|
|
111
|
+
hintId: g,
|
|
112
|
+
children: /* @__PURE__ */ j(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
className: u(
|
|
116
|
+
T({
|
|
117
|
+
size: x,
|
|
118
|
+
error: s
|
|
119
|
+
}),
|
|
120
|
+
d
|
|
148
121
|
),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
122
|
+
onClick: V,
|
|
123
|
+
children: [
|
|
124
|
+
m && /* @__PURE__ */ c("div", { className: "flex items-center text-icon-dark-secondary-def", children: m }),
|
|
125
|
+
/* @__PURE__ */ c(
|
|
126
|
+
"input",
|
|
127
|
+
{
|
|
128
|
+
type: w,
|
|
129
|
+
"data-slot": "input",
|
|
130
|
+
className: u(
|
|
131
|
+
U(x),
|
|
132
|
+
"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden [&::-webkit-inner-spin-button]:hidden",
|
|
133
|
+
"[&::-webkit-datetime-edit-text]:px-3xs"
|
|
134
|
+
),
|
|
135
|
+
ref: i ? r.ref : e,
|
|
136
|
+
onChange: i ? void 0 : a,
|
|
137
|
+
id: p,
|
|
138
|
+
"aria-describedby": g,
|
|
139
|
+
"aria-labelledby": k,
|
|
140
|
+
"aria-invalid": s,
|
|
141
|
+
"aria-required": l,
|
|
142
|
+
required: l,
|
|
143
|
+
...v
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
f && /* @__PURE__ */ c("div", { className: "flex items-center text-icon-dark-secondary-def", children: f })
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
}
|
|
151
|
+
);
|
|
167
152
|
}
|
|
168
153
|
);
|
|
169
154
|
Y.displayName = "Input";
|
|
@@ -11,6 +11,8 @@ export interface IMultiSelectProps {
|
|
|
11
11
|
error?: boolean;
|
|
12
12
|
/** Marks the field as required (visual indicator only). */
|
|
13
13
|
required?: boolean;
|
|
14
|
+
/** Hides the required asterisk even when `required` is true. @default false */
|
|
15
|
+
disableRequiredAsterisk?: boolean;
|
|
14
16
|
/** Element displayed after the selected values (not currently implemented). */
|
|
15
17
|
suffix?: ReactNode;
|
|
16
18
|
/** Icon or element displayed before the selected values. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAed;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+EAA+E;IAC/E,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,+EAA+E;IAC/E,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mDAAmD;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAC3B;;;;;;;;;OASG;IACH,OAAO,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,SAAS,CAAA;QAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB,CAAC,CAAA;IACF,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CACrC;AAED,eAAO,MAAM,WAAW,6FA+LvB,CAAA"}
|