@solostylist/ui-kit 1.0.71 → 1.0.73
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,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as a } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { c as i, s
|
|
2
|
+
import { c as i, s } from "../../createSvgIcon-DN-sh_sr.js";
|
|
3
3
|
import { brand as r, gray as e } from "../theme-primitives.js";
|
|
4
|
-
import { o as
|
|
5
|
-
import { g as
|
|
4
|
+
import { o as p } from "../../outlinedInputClasses-E4FwVkZh.js";
|
|
5
|
+
import { g as n } from "../../generateUtilityClasses-BpNk3DNr.js";
|
|
6
6
|
import { a as t } from "../../createTheme-DuP3DZSF.js";
|
|
7
|
-
const
|
|
7
|
+
const c = i(/* @__PURE__ */ a.jsx("path", {
|
|
8
8
|
d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
9
|
-
}), "CheckBoxOutlineBlankRounded"),
|
|
9
|
+
}), "CheckBoxOutlineBlankRounded"), u = i(/* @__PURE__ */ a.jsx("path", {
|
|
10
10
|
d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
11
|
-
}), "CheckRounded"),
|
|
11
|
+
}), "CheckRounded"), b = i(/* @__PURE__ */ a.jsx("path", {
|
|
12
12
|
d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"
|
|
13
|
-
}), "RemoveRounded"),
|
|
13
|
+
}), "RemoveRounded"), g = n("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = n("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), m = {
|
|
14
14
|
MuiButtonBase: {
|
|
15
15
|
defaultProps: {
|
|
16
16
|
disableTouchRipple: !0,
|
|
@@ -268,7 +268,7 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
268
268
|
width: "2.25rem",
|
|
269
269
|
height: "2.25rem",
|
|
270
270
|
padding: "0.25rem",
|
|
271
|
-
[`& .${
|
|
271
|
+
[`& .${s.root}`]: { fontSize: "1rem" }
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
{
|
|
@@ -289,11 +289,11 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
289
289
|
root: ({ theme: o }) => ({
|
|
290
290
|
borderRadius: "10px",
|
|
291
291
|
boxShadow: `0 4px 16px ${t(e[400], 0.2)}`,
|
|
292
|
-
[`& .${
|
|
292
|
+
[`& .${d.selected}`]: {
|
|
293
293
|
color: r[500]
|
|
294
294
|
},
|
|
295
295
|
...o.applyStyles("dark", {
|
|
296
|
-
[`& .${
|
|
296
|
+
[`& .${d.selected}`]: {
|
|
297
297
|
color: "#fff"
|
|
298
298
|
},
|
|
299
299
|
boxShadow: `0 4px 16px ${t(r[700], 0.5)}`
|
|
@@ -311,7 +311,7 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
311
311
|
...o.applyStyles("dark", {
|
|
312
312
|
color: e[400],
|
|
313
313
|
boxShadow: "0 4px 16px rgba(0, 0, 0, 0.5)",
|
|
314
|
-
[`&.${
|
|
314
|
+
[`&.${g.selected}`]: {
|
|
315
315
|
color: r[300]
|
|
316
316
|
}
|
|
317
317
|
})
|
|
@@ -321,9 +321,9 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
321
321
|
MuiCheckbox: {
|
|
322
322
|
defaultProps: {
|
|
323
323
|
disableRipple: !0,
|
|
324
|
-
icon: /* @__PURE__ */ a.jsx(
|
|
325
|
-
checkedIcon: /* @__PURE__ */ a.jsx(
|
|
326
|
-
indeterminateIcon: /* @__PURE__ */ a.jsx(
|
|
324
|
+
icon: /* @__PURE__ */ a.jsx(c, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
325
|
+
checkedIcon: /* @__PURE__ */ a.jsx(u, { sx: { height: 14, width: 14 } }),
|
|
326
|
+
indeterminateIcon: /* @__PURE__ */ a.jsx(b, { sx: { height: 14, width: 14 } })
|
|
327
327
|
},
|
|
328
328
|
styleOverrides: {
|
|
329
329
|
root: ({ theme: o }) => ({
|
|
@@ -410,7 +410,7 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
410
410
|
},
|
|
411
411
|
MuiOutlinedInput: {
|
|
412
412
|
styleOverrides: {
|
|
413
|
-
input: ({ ownerState: o }) => ({
|
|
413
|
+
input: ({ ownerState: o, theme: l }) => ({
|
|
414
414
|
padding: 0,
|
|
415
415
|
...o.type === "number" && {
|
|
416
416
|
// Remove spinner buttons (cross-browser)
|
|
@@ -420,6 +420,12 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
420
420
|
},
|
|
421
421
|
MozAppearance: "textfield"
|
|
422
422
|
// Firefox
|
|
423
|
+
},
|
|
424
|
+
"&:-webkit-autofill": {
|
|
425
|
+
boxShadow: `${(l.vars || l).palette.background.default} 0px 0px 0px 100px inset !important`
|
|
426
|
+
},
|
|
427
|
+
"&:-moz-autofill": {
|
|
428
|
+
boxShadow: `${(l.vars || l).palette.background.default} 0px 0px 0px 100px inset !important`
|
|
423
429
|
}
|
|
424
430
|
}),
|
|
425
431
|
root: ({ theme: o }) => ({
|
|
@@ -432,7 +438,7 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
432
438
|
"&:hover": {
|
|
433
439
|
borderColor: e[400]
|
|
434
440
|
},
|
|
435
|
-
[`&.${
|
|
441
|
+
[`&.${p.focused}`]: {
|
|
436
442
|
outline: `3px solid ${t(r[500], 0.5)}`,
|
|
437
443
|
borderColor: r[400]
|
|
438
444
|
},
|
|
@@ -485,5 +491,5 @@ const p = i(/* @__PURE__ */ a.jsx("path", {
|
|
|
485
491
|
}
|
|
486
492
|
};
|
|
487
493
|
export {
|
|
488
|
-
|
|
494
|
+
m as inputsCustomizations
|
|
489
495
|
};
|