vrfi-design-system 1.1.61 → 1.1.63
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/index.d.ts +4 -3
- package/dist/main.es.js +37 -32
- package/dist/main.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -594,6 +594,7 @@ export declare interface FloatingLabelProps {
|
|
|
594
594
|
type?: LabelType_2;
|
|
595
595
|
customInput?: boolean;
|
|
596
596
|
className?: string;
|
|
597
|
+
manualFocus?: boolean;
|
|
597
598
|
}
|
|
598
599
|
|
|
599
600
|
export { FooterDetailsProps }
|
|
@@ -1170,16 +1171,16 @@ declare interface TabsProps extends TabsProps_2 {
|
|
|
1170
1171
|
innerRef?: default_2.RefObject<HTMLDivElement> | null;
|
|
1171
1172
|
}
|
|
1172
1173
|
|
|
1173
|
-
export declare const TextArea: ({ className, label,
|
|
1174
|
+
export declare const TextArea: ({ className, label, required, customInput, defaultValue, ...props }: TextAreaProps) => default_2.JSX.Element;
|
|
1174
1175
|
|
|
1175
1176
|
export declare interface TextAreaProps extends Omit<TextAreaProps_2, "value"> {
|
|
1176
1177
|
label?: string;
|
|
1177
|
-
value?: string;
|
|
1178
1178
|
required?: boolean;
|
|
1179
1179
|
customInput?: boolean;
|
|
1180
|
+
defaultValue?: string;
|
|
1180
1181
|
}
|
|
1181
1182
|
|
|
1182
|
-
export declare const TextAreaWithController: ({ label, placeholder, required, name, customInput, ...rest }: TextAreaWithControllerProps) => default_2.JSX.Element;
|
|
1183
|
+
export declare const TextAreaWithController: ({ label, placeholder, required, name, customInput, defaultValue, ...rest }: TextAreaWithControllerProps) => default_2.JSX.Element;
|
|
1183
1184
|
|
|
1184
1185
|
export declare type TextAreaWithControllerProps = CustomInputProps & TextAreaProps_2;
|
|
1185
1186
|
|
package/dist/main.es.js
CHANGED
|
@@ -52145,15 +52145,16 @@ const pre = "_sliderLabel_wt22h_1", Nu = {
|
|
|
52145
52145
|
required: l,
|
|
52146
52146
|
placeholder: s,
|
|
52147
52147
|
type: u,
|
|
52148
|
-
customInput: d
|
|
52149
|
-
|
|
52150
|
-
|
|
52148
|
+
customInput: d,
|
|
52149
|
+
manualFocus: A = !1
|
|
52150
|
+
} = e, f = A || t || kre(a), g = At({
|
|
52151
|
+
[Zo.float]: f,
|
|
52151
52152
|
[Zo.withPrefix]: i,
|
|
52152
52153
|
[Zo.primary]: u === mg.PRIMARY
|
|
52153
|
-
}),
|
|
52154
|
-
[Zo.withFloat]:
|
|
52154
|
+
}), v = At(Zo.inputWrapper, {
|
|
52155
|
+
[Zo.withFloat]: f && !s && o,
|
|
52155
52156
|
[Zo.customInput]: d
|
|
52156
|
-
}),
|
|
52157
|
+
}), p = () => n(!1), m = () => n(!0);
|
|
52157
52158
|
return /* @__PURE__ */ M.jsxs(
|
|
52158
52159
|
"div",
|
|
52159
52160
|
{
|
|
@@ -52161,20 +52162,20 @@ const pre = "_sliderLabel_wt22h_1", Nu = {
|
|
|
52161
52162
|
Zo.floatLabel,
|
|
52162
52163
|
e.className && Zo[e.className]
|
|
52163
52164
|
),
|
|
52164
|
-
onBlur:
|
|
52165
|
-
onFocus:
|
|
52165
|
+
onBlur: p,
|
|
52166
|
+
onFocus: m,
|
|
52166
52167
|
children: [
|
|
52167
52168
|
!s && o && /* @__PURE__ */ M.jsx(
|
|
52168
52169
|
"label",
|
|
52169
52170
|
{
|
|
52170
|
-
className: At(
|
|
52171
|
+
className: At(g, {
|
|
52171
52172
|
[Zo.required]: l,
|
|
52172
52173
|
[Zo.customLabel]: d
|
|
52173
52174
|
}),
|
|
52174
52175
|
children: o
|
|
52175
52176
|
}
|
|
52176
52177
|
),
|
|
52177
|
-
/* @__PURE__ */ M.jsx("div", { className:
|
|
52178
|
+
/* @__PURE__ */ M.jsx("div", { className: v, children: r })
|
|
52178
52179
|
]
|
|
52179
52180
|
}
|
|
52180
52181
|
);
|
|
@@ -67781,19 +67782,21 @@ const ZIe = ({
|
|
|
67781
67782
|
required: n,
|
|
67782
67783
|
name: r,
|
|
67783
67784
|
customInput: o,
|
|
67784
|
-
|
|
67785
|
+
defaultValue: a,
|
|
67786
|
+
...i
|
|
67785
67787
|
}) => {
|
|
67786
67788
|
const {
|
|
67787
|
-
field:
|
|
67788
|
-
fieldState: { invalid:
|
|
67789
|
+
field: l,
|
|
67790
|
+
fieldState: { invalid: s }
|
|
67789
67791
|
} = ho({
|
|
67790
|
-
name: r
|
|
67791
|
-
|
|
67792
|
-
|
|
67793
|
-
|
|
67792
|
+
name: r,
|
|
67793
|
+
defaultValue: a
|
|
67794
|
+
}), u = (d) => {
|
|
67795
|
+
if (!i.customOnChange) {
|
|
67796
|
+
l.onChange(d);
|
|
67794
67797
|
return;
|
|
67795
67798
|
}
|
|
67796
|
-
|
|
67799
|
+
i.customOnChange(d, l);
|
|
67797
67800
|
};
|
|
67798
67801
|
return /* @__PURE__ */ M.jsxs("div", { className: al.textAreaContainer, children: [
|
|
67799
67802
|
/* @__PURE__ */ M.jsx(
|
|
@@ -67801,21 +67804,22 @@ const ZIe = ({
|
|
|
67801
67804
|
{
|
|
67802
67805
|
customInput: o,
|
|
67803
67806
|
label: e,
|
|
67804
|
-
value:
|
|
67807
|
+
value: l.value,
|
|
67805
67808
|
required: n,
|
|
67806
67809
|
className: "textAreaFloatLabel",
|
|
67810
|
+
manualFocus: !!a,
|
|
67807
67811
|
children: /* @__PURE__ */ M.jsx(
|
|
67808
67812
|
Nwe,
|
|
67809
67813
|
{
|
|
67810
|
-
...
|
|
67811
|
-
status:
|
|
67814
|
+
...l,
|
|
67815
|
+
status: s ? "error" : void 0,
|
|
67812
67816
|
placeholder: t,
|
|
67813
|
-
onChange:
|
|
67817
|
+
onChange: u,
|
|
67814
67818
|
className: At("custom-input", al.textArea, {
|
|
67815
67819
|
[al.customInput]: o,
|
|
67816
|
-
[al.error]:
|
|
67820
|
+
[al.error]: s
|
|
67817
67821
|
}),
|
|
67818
|
-
...
|
|
67822
|
+
...i
|
|
67819
67823
|
}
|
|
67820
67824
|
)
|
|
67821
67825
|
}
|
|
@@ -67825,25 +67829,26 @@ const ZIe = ({
|
|
|
67825
67829
|
}, oDe = ({
|
|
67826
67830
|
className: e,
|
|
67827
67831
|
label: t,
|
|
67828
|
-
|
|
67829
|
-
|
|
67830
|
-
|
|
67832
|
+
required: n,
|
|
67833
|
+
customInput: r,
|
|
67834
|
+
defaultValue: o,
|
|
67831
67835
|
...a
|
|
67832
67836
|
}) => /* @__PURE__ */ M.jsx("div", { className: al.textAreaContainer, children: /* @__PURE__ */ M.jsx(
|
|
67833
67837
|
Ya,
|
|
67834
67838
|
{
|
|
67835
|
-
customInput:
|
|
67839
|
+
customInput: r,
|
|
67836
67840
|
label: t,
|
|
67837
|
-
value:
|
|
67838
|
-
required:
|
|
67841
|
+
value: o ?? "",
|
|
67842
|
+
required: n,
|
|
67839
67843
|
className: "textAreaFloatLabel",
|
|
67844
|
+
manualFocus: !!o,
|
|
67840
67845
|
children: /* @__PURE__ */ M.jsx(
|
|
67841
67846
|
Go.TextArea,
|
|
67842
67847
|
{
|
|
67848
|
+
defaultValue: o,
|
|
67843
67849
|
className: At(al.textArea, e, {
|
|
67844
|
-
[al.customInput]:
|
|
67850
|
+
[al.customInput]: r
|
|
67845
67851
|
}),
|
|
67846
|
-
id: "1",
|
|
67847
67852
|
...a
|
|
67848
67853
|
}
|
|
67849
67854
|
)
|