@solostylist/ui-kit 1.0.70 → 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.
@@ -1,9 +1,9 @@
1
1
  import { j as r } from "../jsx-runtime-DywqP_6a.js";
2
2
  import { C as i } from "../chunk-5P46WS5M-OG9gpzOE.js";
3
- function e({ children: o, ...t }) {
4
- return /* @__PURE__ */ r.jsx(i, { ...t, children: o });
3
+ function p({ children: o, ...t }) {
4
+ return /* @__PURE__ */ r.jsx(i, { showDevConsole: !1, ...t, children: o });
5
5
  }
6
6
  export {
7
- e as SCopilotKitProvider,
8
- e as default
7
+ p as SCopilotKitProvider,
8
+ p as default
9
9
  };
@@ -1,28 +1,29 @@
1
- import { j as t } from "../jsx-runtime-DywqP_6a.js";
1
+ import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
2
  import { useRef as l } from "react";
3
- import { Button as i, Box as s } from "@mui/material";
3
+ import { Button as n, Box as s } from "@mui/material";
4
4
  import u from "../s-moving-border/s-moving-border.js";
5
- import '../assets/s-glow-button.css';const c = ({ borderRadius: e = 12, children: o, duration: r = 6e3, ...n }) => {
6
- const a = l(null);
7
- return /* @__PURE__ */ t.jsx(u, { duration: r, borderRadius: e, height: 60, glowSize: 100, children: /* @__PURE__ */ t.jsx(
8
- i,
5
+ import '../assets/s-glow-button.css';const x = ({ borderRadius: t = 12, children: r, duration: o = 6e3, ...a }) => {
6
+ const i = l(null);
7
+ return /* @__PURE__ */ e.jsx(u, { duration: o, borderRadius: t, height: 60, glowSize: 100, children: /* @__PURE__ */ e.jsx(
8
+ n,
9
9
  {
10
10
  sx: {
11
11
  height: "100%",
12
- borderRadius: e,
12
+ borderRadius: t,
13
13
  background: "var(--s-palette-background-default)",
14
+ border: "1px solid var(--s-palette-divider)",
14
15
  "&:hover": {
15
16
  backgroundColor: "var(--s-palette-background-paper)"
16
17
  }
17
18
  },
18
- ref: a,
19
+ ref: i,
19
20
  fullWidth: !0,
20
21
  disableRipple: !0,
21
- ...n,
22
- children: /* @__PURE__ */ t.jsx(s, { className: "gradient-text", fontSize: 16, children: o })
22
+ ...a,
23
+ children: /* @__PURE__ */ e.jsx(s, { className: "gradient-text", fontSize: 16, children: r })
23
24
  }
24
25
  ) });
25
26
  };
26
27
  export {
27
- c as default
28
+ x as default
28
29
  };
@@ -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)(({ theme: e }) => ({
17522
- padding: "8px 12px",
17523
- color: (e.vars || e).palette.text.primary,
17524
- borderRadius: (e.vars || e).shape.borderRadius,
17525
- border: `1px solid ${(e.vars || e).palette.divider}`,
17526
- backgroundColor: (e.vars || e).palette.background.default,
17527
- transition: "border 120ms ease-in",
17528
- fontFamily: "Outfit, sans-serif",
17529
- outline: "none",
17530
- "&:focus": {
17531
- outline: `3px solid ${nu(jn[500], 0.5)}`,
17532
- borderColor: jn[400]
17533
- },
17534
- "&:hover": {
17535
- borderColor: au[400]
17536
- },
17537
- [`&.${Jd.focused}`]: {
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[500]
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
- props: {
17557
- size: "medium"
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
- style: {
17560
- minHeight: "2.5rem"
17559
+ {
17560
+ props: {
17561
+ size: "medium"
17562
+ },
17563
+ style: {
17564
+ minHeight: "2.5rem"
17565
+ }
17561
17566
  }
17562
- }
17563
- ]
17564
- })), ZE = {
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
- ...i
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(XE, { disableBranding: !0, autosuggestionsConfig: e, ...i }) });
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,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.70",
6
+ "version": "1.0.72",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",