@solostylist/ui-kit 1.0.71 → 1.0.72
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.
|
@@ -6,6 +6,9 @@ export type SSmartTextFieldProps = Omit<React.ComponentProps<typeof CopilotTexta
|
|
|
6
6
|
error?: string;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
htmlFor?: string;
|
|
9
|
+
minRows?: number;
|
|
10
|
+
maxRows?: number;
|
|
11
|
+
rows?: number;
|
|
9
12
|
};
|
|
10
|
-
export declare function SSmartTextField({ autosuggestionsConfig, label, hint, error, required, htmlFor, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function SSmartTextField({ autosuggestionsConfig, label, hint, error, required, htmlFor, minRows, maxRows, rows, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export default SSmartTextField;
|
|
@@ -17518,50 +17518,55 @@ var YE = le.forwardRef(
|
|
|
17518
17518
|
) });
|
|
17519
17519
|
}
|
|
17520
17520
|
);
|
|
17521
|
-
const XE = Zd(YE)(
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
|
|
17529
|
-
|
|
17530
|
-
|
|
17531
|
-
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
outline: `3px solid ${nu(jn[500], 0.5)}`,
|
|
17539
|
-
borderColor: jn[400]
|
|
17540
|
-
},
|
|
17541
|
-
...e.applyStyles("dark", {
|
|
17521
|
+
const XE = Zd(YE)(
|
|
17522
|
+
({ theme: e, $minRows: t = 3, $maxRows: r = 10 }) => ({
|
|
17523
|
+
padding: "8px 12px",
|
|
17524
|
+
color: (e.vars || e).palette.text.primary,
|
|
17525
|
+
borderRadius: (e.vars || e).shape.borderRadius,
|
|
17526
|
+
border: `1px solid ${(e.vars || e).palette.divider}`,
|
|
17527
|
+
backgroundColor: (e.vars || e).palette.background.default,
|
|
17528
|
+
transition: "border 120ms ease-in",
|
|
17529
|
+
fontFamily: "Outfit, sans-serif",
|
|
17530
|
+
outline: "none",
|
|
17531
|
+
minHeight: `${t * 1.5}em`,
|
|
17532
|
+
maxHeight: `${r * 1.5}em`,
|
|
17533
|
+
resize: "vertical",
|
|
17534
|
+
"&:focus": {
|
|
17535
|
+
outline: `3px solid ${nu(jn[500], 0.5)}`,
|
|
17536
|
+
borderColor: jn[400]
|
|
17537
|
+
},
|
|
17542
17538
|
"&:hover": {
|
|
17543
|
-
borderColor: au[
|
|
17544
|
-
}
|
|
17545
|
-
}),
|
|
17546
|
-
variants: [
|
|
17547
|
-
{
|
|
17548
|
-
props: {
|
|
17549
|
-
size: "small"
|
|
17550
|
-
},
|
|
17551
|
-
style: {
|
|
17552
|
-
height: "2.25rem"
|
|
17553
|
-
}
|
|
17539
|
+
borderColor: au[400]
|
|
17554
17540
|
},
|
|
17555
|
-
{
|
|
17556
|
-
|
|
17557
|
-
|
|
17541
|
+
[`&.${Jd.focused}`]: {
|
|
17542
|
+
outline: `3px solid ${nu(jn[500], 0.5)}`,
|
|
17543
|
+
borderColor: jn[400]
|
|
17544
|
+
},
|
|
17545
|
+
...e.applyStyles("dark", {
|
|
17546
|
+
"&:hover": {
|
|
17547
|
+
borderColor: au[500]
|
|
17548
|
+
}
|
|
17549
|
+
}),
|
|
17550
|
+
variants: [
|
|
17551
|
+
{
|
|
17552
|
+
props: {
|
|
17553
|
+
size: "small"
|
|
17554
|
+
},
|
|
17555
|
+
style: {
|
|
17556
|
+
height: "2.25rem"
|
|
17557
|
+
}
|
|
17558
17558
|
},
|
|
17559
|
-
|
|
17560
|
-
|
|
17559
|
+
{
|
|
17560
|
+
props: {
|
|
17561
|
+
size: "medium"
|
|
17562
|
+
},
|
|
17563
|
+
style: {
|
|
17564
|
+
minHeight: "2.5rem"
|
|
17565
|
+
}
|
|
17561
17566
|
}
|
|
17562
|
-
|
|
17563
|
-
|
|
17564
|
-
|
|
17567
|
+
]
|
|
17568
|
+
})
|
|
17569
|
+
), ZE = {
|
|
17565
17570
|
textareaPurpose: "",
|
|
17566
17571
|
chatApiConfigs: {
|
|
17567
17572
|
suggestionsApiConfig: {
|
|
@@ -17577,9 +17582,22 @@ function pw({
|
|
|
17577
17582
|
error: n,
|
|
17578
17583
|
required: a = !1,
|
|
17579
17584
|
htmlFor: o,
|
|
17580
|
-
|
|
17585
|
+
minRows: i = 3,
|
|
17586
|
+
maxRows: u = 10,
|
|
17587
|
+
rows: c,
|
|
17588
|
+
...s
|
|
17581
17589
|
}) {
|
|
17582
|
-
return /* @__PURE__ */ K.jsx(Qd, { label: t, hint: r, error: n, required: a, htmlFor: o, children: /* @__PURE__ */ K.jsx(
|
|
17590
|
+
return /* @__PURE__ */ K.jsx(Qd, { label: t, hint: r, error: n, required: a, htmlFor: o, children: /* @__PURE__ */ K.jsx(
|
|
17591
|
+
XE,
|
|
17592
|
+
{
|
|
17593
|
+
disableBranding: !0,
|
|
17594
|
+
autosuggestionsConfig: e,
|
|
17595
|
+
rows: c || i,
|
|
17596
|
+
$minRows: i,
|
|
17597
|
+
$maxRows: u,
|
|
17598
|
+
...s
|
|
17599
|
+
}
|
|
17600
|
+
) });
|
|
17583
17601
|
}
|
|
17584
17602
|
export {
|
|
17585
17603
|
pw as SSmartTextField,
|