@solostylist/ui-kit 1.0.99 → 1.0.101

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.
Files changed (49) hide show
  1. package/dist/{ButtonBase-Cn3itpEl.js → ButtonBase-B-mcxJe8.js} +28 -28
  2. package/dist/{ChevronRight-G7jhiUBG.js → ChevronRight-BB4jrtLy.js} +1 -1
  3. package/dist/{Close-BSG2-e7H.js → Close-DqRHeMAW.js} +1 -1
  4. package/dist/ExpandMore-CE1RzE_y.js +8 -0
  5. package/dist/{Menu-DYOw-I_3.js → Menu-HtTElywx.js} +4 -4
  6. package/dist/{MenuItem-DTRBXdpX.js → MenuItem-DzviefY7.js} +3 -3
  7. package/dist/{Paper-DEq2MLtq.js → Paper-pJ5bSU59.js} +2 -2
  8. package/dist/{Select-DmB-tjlR.js → Select-C9Hk7BA8.js} +3 -3
  9. package/dist/{Stack-GTpsqQv0.js → Stack-TRopps6s.js} +1 -1
  10. package/dist/{Typography-zQXZ4jKl.js → Typography-DGEEI1Q-.js} +1 -1
  11. package/dist/{createSvgIcon-CS-Z7P80.js → createSvgIcon-DCQI9UV5.js} +3 -3
  12. package/dist/main.d.ts +2 -0
  13. package/dist/main.js +41 -39
  14. package/dist/{mergeSlotProps-BbDReBm1.js → mergeSlotProps-N1VTlioP.js} +1 -1
  15. package/dist/s-accordion/s-accordion.js +108 -109
  16. package/dist/s-carousel/s-carousel.js +1 -1
  17. package/dist/s-chat-input/s-chat-input.js +34 -32
  18. package/dist/s-chat-message/s-chat-message.js +32 -31
  19. package/dist/s-comment-message/index.d.ts +2 -0
  20. package/dist/s-comment-message/index.js +4 -0
  21. package/dist/s-comment-message/package.json +5 -0
  22. package/dist/s-comment-message/s-comment-message.d.ts +21 -0
  23. package/dist/s-comment-message/s-comment-message.js +138 -0
  24. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  25. package/dist/s-data-table/s-data-table.js +3 -3
  26. package/dist/s-date-picker/s-date-picker.js +4 -4
  27. package/dist/s-datetime-picker/s-datetime-picker.js +7 -7
  28. package/dist/s-dialog/s-dialog.js +1 -1
  29. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  30. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  31. package/dist/s-file-dropzone/s-file-dropzone.js +43 -40
  32. package/dist/s-image-comparison/s-image-comparison.js +1 -1
  33. package/dist/s-image-modal/s-image-modal.js +2 -2
  34. package/dist/s-label/s-label.js +5 -5
  35. package/dist/s-multi-select/s-multi-select.js +5 -5
  36. package/dist/s-review/index.d.ts +2 -0
  37. package/dist/s-review/index.js +4 -0
  38. package/dist/s-review/package.json +5 -0
  39. package/dist/s-review/s-review.d.ts +20 -0
  40. package/dist/s-review/s-review.js +86 -0
  41. package/dist/s-text-editor/s-text-editor-toolbar.js +8 -8
  42. package/dist/s-text-field/s-text-field.js +5 -5
  43. package/dist/s-tip/s-tip.js +3 -3
  44. package/dist/theme/components/avatar.js +3 -3
  45. package/dist/theme/components/chip.js +1 -1
  46. package/dist/theme/customizations/inputs.js +1 -1
  47. package/dist/theme/customizations/navigation.js +1 -1
  48. package/dist/{useMobilePicker-By8yrJS0.js → useMobilePicker-c5_EH1sg.js} +6 -6
  49. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
- import * as b from "react";
3
- import { b as d } from "../createSvgIcon-CS-Z7P80.js";
4
- import { Avatar as y, Tooltip as C, IconButton as I, Button as z } from "@mui/material";
1
+ import { j as o } from "../jsx-runtime-DywqP_6a.js";
2
+ import * as y from "react";
3
+ import { c as d } from "../createSvgIcon-DCQI9UV5.js";
4
+ import { Avatar as C, Tooltip as v, IconButton as I, Button as z } from "@mui/material";
5
5
  import { useDropzone as S } from "react-dropzone";
6
6
  import k from "../s-file-icon/s-file-icon.js";
7
7
  import w from "../s-form/s-form.js";
8
8
  import { bytesToSize as B } from "../utils/bytes-to-size.js";
9
9
  import { B as c } from "../Box-Deehc8LF.js";
10
- import { S as t } from "../Stack-GTpsqQv0.js";
11
- import { T as o } from "../Typography-zQXZ4jKl.js";
12
- const D = d(/* @__PURE__ */ e.jsx("path", {
10
+ import { S as e } from "../Stack-TRopps6s.js";
11
+ import { T as t } from "../Typography-DGEEI1Q-.js";
12
+ const D = d(/* @__PURE__ */ o.jsx("path", {
13
13
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
14
- }), "CloseOutlined"), F = d(/* @__PURE__ */ e.jsx("path", {
14
+ }), "CloseOutlined"), F = d(/* @__PURE__ */ o.jsx("path", {
15
15
  d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"
16
16
  }), "CloudUploadOutlined"), J = ({
17
17
  hint: p,
@@ -19,21 +19,22 @@ const D = d(/* @__PURE__ */ e.jsx("path", {
19
19
  error: m,
20
20
  onRemoveAll: h,
21
21
  onUpload: M,
22
- onRemove: s,
22
+ onRemove: n,
23
23
  required: u = !1,
24
24
  disabledUpload: O = !1,
25
25
  isShowBtnRemoveAll: j = !1,
26
- ...n
26
+ ...s
27
27
  }) => {
28
- var a, l;
29
- const { getRootProps: f, getInputProps: g, isDragActive: i } = S(n);
30
- return /* @__PURE__ */ e.jsxs(b.Fragment, { children: [
31
- /* @__PURE__ */ e.jsx(w, { error: m, label: x, required: u, hint: p, children: /* @__PURE__ */ e.jsxs(
28
+ var l, a;
29
+ const { getRootProps: f, getInputProps: g, isDragActive: i } = S(s);
30
+ return /* @__PURE__ */ o.jsxs(y.Fragment, { children: [
31
+ /* @__PURE__ */ o.jsx(w, { error: m, label: x, required: u, hint: p, children: /* @__PURE__ */ o.jsxs(
32
32
  c,
33
33
  {
34
34
  sx: {
35
35
  alignItems: "center",
36
- border: "1px dashed var(--s-palette-divider)",
36
+ border: "1px dashed",
37
+ borderColor: "divider",
37
38
  borderRadius: 1,
38
39
  cursor: "pointer",
39
40
  display: "flex",
@@ -43,33 +44,34 @@ const D = d(/* @__PURE__ */ e.jsx("path", {
43
44
  p: 4,
44
45
  // Visual feedback when files are being dragged over
45
46
  ...i && {
46
- bgcolor: "var(--s-palette-action-selected)",
47
+ bgcolor: "action.selected",
47
48
  opacity: 0.5
48
49
  },
49
50
  // Hover effect when not actively dragging
50
51
  "&:hover": {
51
52
  ...!i && {
52
- bgcolor: "var(--s-palette-action-hover)"
53
+ bgcolor: "action.hover"
53
54
  }
54
55
  }
55
56
  },
56
57
  ...f(),
57
58
  children: [
58
- /* @__PURE__ */ e.jsx("input", { ...g() }),
59
- /* @__PURE__ */ e.jsxs(t, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
60
- /* @__PURE__ */ e.jsx(
61
- y,
59
+ /* @__PURE__ */ o.jsx("input", { ...g() }),
60
+ /* @__PURE__ */ o.jsxs(e, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
61
+ /* @__PURE__ */ o.jsx(
62
+ C,
62
63
  {
63
64
  sx: {
64
- border: "1px dashed var(--s-palette-divider)",
65
- color: "var(--s-palette-text-secondary)",
65
+ border: "1px dashed",
66
+ borderColor: "divider",
67
+ color: "text.secondary",
66
68
  backgroundColor: "transparent"
67
69
  },
68
- children: /* @__PURE__ */ e.jsx(F, { fontSize: "small" })
70
+ children: /* @__PURE__ */ o.jsx(F, { fontSize: "small" })
69
71
  }
70
72
  ),
71
- /* @__PURE__ */ e.jsx(t, { spacing: 1, children: /* @__PURE__ */ e.jsxs(o, { color: "text.secondary", variant: "body2", children: [
72
- /* @__PURE__ */ e.jsx(o, { component: "span", sx: { textDecoration: "underline" }, variant: "inherit", children: "Click to upload" }),
73
+ /* @__PURE__ */ o.jsx(e, { spacing: 1, children: /* @__PURE__ */ o.jsxs(t, { color: "text.secondary", variant: "body2", children: [
74
+ /* @__PURE__ */ o.jsx(t, { component: "span", sx: { textDecoration: "underline" }, variant: "inherit", children: "Click to upload" }),
73
75
  " ",
74
76
  "or drag and drop your files here"
75
77
  ] }) })
@@ -77,35 +79,36 @@ const D = d(/* @__PURE__ */ e.jsx("path", {
77
79
  ]
78
80
  }
79
81
  ) }),
80
- (a = n.files) != null && a.length ? /* @__PURE__ */ e.jsxs(t, { mt: 1, spacing: 1, children: [
81
- /* @__PURE__ */ e.jsx(t, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: (l = n.files) == null ? void 0 : l.map((r) => {
82
- const v = r.name.split(".").pop();
83
- return /* @__PURE__ */ e.jsxs(
84
- t,
82
+ (l = s.files) != null && l.length ? /* @__PURE__ */ o.jsxs(e, { mt: 1, spacing: 1, children: [
83
+ /* @__PURE__ */ o.jsx(e, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: (a = s.files) == null ? void 0 : a.map((r) => {
84
+ const b = r.name.split(".").pop();
85
+ return /* @__PURE__ */ o.jsxs(
86
+ e,
85
87
  {
86
88
  component: "li",
87
89
  direction: "row",
88
90
  spacing: 2,
89
91
  sx: {
90
92
  alignItems: "center",
91
- border: "1px solid var(--s-palette-divider)",
93
+ border: "1px solid",
94
+ borderColor: "divider",
92
95
  borderRadius: 1,
93
96
  flex: "1 1 auto",
94
97
  p: 1
95
98
  },
96
99
  children: [
97
- /* @__PURE__ */ e.jsx(k, { extension: v }),
98
- /* @__PURE__ */ e.jsxs(c, { sx: { flex: "1 1 auto" }, children: [
99
- /* @__PURE__ */ e.jsx(o, { variant: "subtitle2", children: r.name }),
100
- /* @__PURE__ */ e.jsx(o, { color: "text.secondary", variant: "body2", children: B(r.size) })
100
+ /* @__PURE__ */ o.jsx(k, { extension: b }),
101
+ /* @__PURE__ */ o.jsxs(c, { sx: { flex: "1 1 auto" }, children: [
102
+ /* @__PURE__ */ o.jsx(t, { variant: "subtitle2", children: r.name }),
103
+ /* @__PURE__ */ o.jsx(t, { color: "text.secondary", variant: "body2", children: B(r.size) })
101
104
  ] }),
102
- /* @__PURE__ */ e.jsx(C, { title: "Remove", children: /* @__PURE__ */ e.jsx(
105
+ /* @__PURE__ */ o.jsx(v, { title: "Remove", children: /* @__PURE__ */ o.jsx(
103
106
  I,
104
107
  {
105
108
  onClick: () => {
106
- s == null || s(r);
109
+ n == null || n(r);
107
110
  },
108
- children: /* @__PURE__ */ e.jsx(D, {})
111
+ children: /* @__PURE__ */ o.jsx(D, {})
109
112
  }
110
113
  ) })
111
114
  ]
@@ -113,7 +116,7 @@ const D = d(/* @__PURE__ */ e.jsx("path", {
113
116
  r.size
114
117
  );
115
118
  }) }),
116
- /* @__PURE__ */ e.jsx(t, { direction: "row", sx: { alignItems: "center", justifyContent: "flex-end" }, children: j && /* @__PURE__ */ e.jsx(z, { onClick: h, size: "small", type: "button", variant: "text", children: "Remove all" }) })
119
+ /* @__PURE__ */ o.jsx(e, { direction: "row", sx: { alignItems: "center", justifyContent: "flex-end" }, children: j && /* @__PURE__ */ o.jsx(z, { onClick: h, size: "small", type: "button", variant: "text", children: "Remove all" }) })
117
120
  ] }) : null
118
121
  ] });
119
122
  };
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
2
  import * as s from "react";
3
- import { C as y, a as I } from "../ChevronRight-G7jhiUBG.js";
3
+ import { C as y, a as I } from "../ChevronRight-BB4jrtLy.js";
4
4
  import { Box as o, IconButton as L } from "@mui/material";
5
5
  const R = s.forwardRef(
6
6
  ({ sx: f, leftImage: v, rightImage: g, altLeft: b = "Left image", altRight: w = "Right image", initialPosition: j = 50, ...E }, i) => {
@@ -2,8 +2,8 @@ import { j as o } from "../jsx-runtime-DywqP_6a.js";
2
2
  import { useState as k, useEffect as w } from "react";
3
3
  import { Modal as A, Box as d, Paper as b, Typography as z, IconButton as m, Stack as L } from "@mui/material";
4
4
  import { motion as h, AnimatePresence as T } from "framer-motion";
5
- import { C as F } from "../Close-BSG2-e7H.js";
6
- import { C as $, a as B } from "../ChevronRight-G7jhiUBG.js";
5
+ import { C as F } from "../Close-DqRHeMAW.js";
6
+ import { C as $, a as B } from "../ChevronRight-BB4jrtLy.js";
7
7
  const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disableVideoControls: r = !1 }) => s.type === "video" ? /* @__PURE__ */ o.jsx(
8
8
  d,
9
9
  {
@@ -1,11 +1,11 @@
1
1
  import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
- import { b as s } from "../createSvgIcon-CS-Z7P80.js";
3
- import { Stack as o, Box as c, Tooltip as l } from "@mui/material";
4
- const m = s(/* @__PURE__ */ e.jsx("path", {
2
+ import { c as i } from "../createSvgIcon-DCQI9UV5.js";
3
+ import { Stack as o, Box as s, Tooltip as l } from "@mui/material";
4
+ const m = i(/* @__PURE__ */ e.jsx("path", {
5
5
  d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
6
- }), "HelpOutlineOutlined"), p = ({ label: n, children: r, hint: t, sx: i }) => /* @__PURE__ */ e.jsxs(o, { width: "100%", sx: i, children: [
6
+ }), "HelpOutlineOutlined"), p = ({ label: n, children: r, hint: t, sx: c }) => /* @__PURE__ */ e.jsxs(o, { width: "100%", sx: c, children: [
7
7
  /* @__PURE__ */ e.jsxs(o, { direction: "row", alignItems: "center", mb: 1, children: [
8
- /* @__PURE__ */ e.jsx(c, { sx: { fontSize: "0.875rem", fontWeight: 500, lineHeight: 1.57, color: "text.secondary" }, children: n }),
8
+ /* @__PURE__ */ e.jsx(s, { sx: { fontSize: "0.875rem", fontWeight: 500, lineHeight: 1.57, color: "text.secondary" }, children: n }),
9
9
  t ? /* @__PURE__ */ e.jsx(l, { title: t, placement: "top", children: /* @__PURE__ */ e.jsx(m, { sx: { marginLeft: "4px", fontSize: 16, color: "text.secondary" } }) }) : null
10
10
  ] }),
11
11
  r
@@ -1,11 +1,11 @@
1
1
  import { j as t } from "../jsx-runtime-DywqP_6a.js";
2
2
  import * as c from "react";
3
- import { b as h } from "../createSvgIcon-CS-Z7P80.js";
3
+ import { c as h } from "../createSvgIcon-DCQI9UV5.js";
4
4
  import { Stack as j, OutlinedInput as M } from "@mui/material";
5
5
  import { usePopover as v } from "../hooks/use-popover.js";
6
6
  import S from "../s-chips/s-chips.js";
7
- import { M as b } from "../Menu-DYOw-I_3.js";
8
- import { M as R } from "../MenuItem-DTRBXdpX.js";
7
+ import { M as R } from "../Menu-HtTElywx.js";
8
+ import { M as b } from "../MenuItem-DzviefY7.js";
9
9
  const I = h(/* @__PURE__ */ t.jsx("path", {
10
10
  d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
11
11
  }), "UnfoldMore");
@@ -51,7 +51,7 @@ function P({
51
51
  }
52
52
  ),
53
53
  /* @__PURE__ */ t.jsx(
54
- b,
54
+ R,
55
55
  {
56
56
  anchorEl: r.anchorRef.current,
57
57
  onClose: r.handleClose,
@@ -60,7 +60,7 @@ function P({
60
60
  children: a.map((e) => {
61
61
  const s = l.includes(e.value);
62
62
  return /* @__PURE__ */ t.jsx(
63
- R,
63
+ b,
64
64
  {
65
65
  onClick: () => {
66
66
  m(e.value, !s);
@@ -0,0 +1,2 @@
1
+ export { default } from './s-review';
2
+ export type { SReviewProps } from './s-review';
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./s-review.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "./index.js",
3
+ "types": "./index.d.ts",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ export interface SReviewProps {
4
+ id?: string | number;
5
+ userName: string;
6
+ userAvatar?: string;
7
+ rating: number;
8
+ reviewContent: string;
9
+ datetime: Date | string;
10
+ helpfulYes?: number;
11
+ helpfulNo?: number;
12
+ onHelpfulVote?: (reviewId: string | number, vote: 'yes' | 'no') => void;
13
+ showHelpfulSection?: boolean;
14
+ avatarSize?: number;
15
+ maxRating?: number;
16
+ readOnly?: boolean;
17
+ sx?: SxProps;
18
+ }
19
+ declare const SReview: React.FC<SReviewProps>;
20
+ export default SReview;
@@ -0,0 +1,86 @@
1
+ import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
+ import { useState as y } from "react";
3
+ import { Box as d, Stack as v, Typography as i, IconButton as I, Divider as $ } from "@mui/material";
4
+ import C from "../s-avatar/s-avatar.js";
5
+ import V from "../s-rating/s-rating.js";
6
+ import { c as b } from "../createSvgIcon-DCQI9UV5.js";
7
+ const L = b(/* @__PURE__ */ e.jsx("path", {
8
+ d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"
9
+ }), "ThumbDown"), R = b(/* @__PURE__ */ e.jsx("path", {
10
+ d: "M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"
11
+ }), "ThumbUp"), U = (a) => {
12
+ const h = /* @__PURE__ */ new Date(), u = typeof a == "string" ? new Date(a) : a, p = h.getTime() - u.getTime(), x = Math.floor(p / 1e3), t = Math.floor(x / 60), n = Math.floor(t / 60), s = Math.floor(n / 24), r = Math.floor(s / 7), l = Math.floor(s / 30), m = Math.floor(s / 365);
13
+ return x < 60 ? "just now" : t < 60 ? t === 1 ? "1 minute ago" : `${t} minutes ago` : n < 24 ? n === 1 ? "1 hour ago" : `${n} hours ago` : s < 7 ? s === 1 ? "1 day ago" : `${s} days ago` : r < 4 ? r === 1 ? "1 week ago" : `${r} weeks ago` : l < 12 ? l === 1 ? "1 month ago" : `${l} months ago` : m === 1 ? "1 year ago" : `${m} years ago`;
14
+ }, q = ({
15
+ id: a = Date.now(),
16
+ userName: h,
17
+ userAvatar: u,
18
+ rating: p,
19
+ reviewContent: x,
20
+ datetime: t,
21
+ helpfulYes: n = 0,
22
+ helpfulNo: s = 0,
23
+ onHelpfulVote: r,
24
+ showHelpfulSection: l = !0,
25
+ avatarSize: m = 48,
26
+ maxRating: z = 5,
27
+ readOnly: S = !0,
28
+ sx: T = {}
29
+ }) => {
30
+ const [k, g] = y(n), [D, j] = y(s), [c, M] = y(null), w = (f) => {
31
+ c === f ? (f === "yes" ? g((o) => Math.max(0, o - 1)) : j((o) => Math.max(0, o - 1)), M(null)) : (c === "yes" ? g((o) => Math.max(0, o - 1)) : c === "no" && j((o) => Math.max(0, o - 1)), f === "yes" ? g((o) => o + 1) : j((o) => o + 1), M(f)), r && r(a, f);
32
+ }, H = U(t);
33
+ return /* @__PURE__ */ e.jsxs(d, { sx: { py: 2, ...T }, children: [
34
+ /* @__PURE__ */ e.jsxs(v, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
35
+ /* @__PURE__ */ e.jsx(C, { avatar: u, name: h, size: m }),
36
+ /* @__PURE__ */ e.jsxs(d, { sx: { flex: 1 }, children: [
37
+ /* @__PURE__ */ e.jsxs(v, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
38
+ /* @__PURE__ */ e.jsx(i, { variant: "subtitle2", fontWeight: "600", children: h }),
39
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(i, { variant: "caption", color: "text.secondary", children: H }) })
40
+ ] }),
41
+ /* @__PURE__ */ e.jsx(d, { sx: { mb: 1 }, children: /* @__PURE__ */ e.jsx(V, { value: p, max: z, readOnly: S, size: "small" }) }),
42
+ /* @__PURE__ */ e.jsx(i, { variant: "body2", sx: { mb: 2, lineHeight: 1.6 }, children: x }),
43
+ l && /* @__PURE__ */ e.jsxs(d, { children: [
44
+ /* @__PURE__ */ e.jsx(i, { variant: "caption", color: "text.secondary", sx: { mr: 2 }, children: "Was this review helpful?" }),
45
+ /* @__PURE__ */ e.jsxs(v, { direction: "row", spacing: 1, sx: { display: "inline-flex", alignItems: "center" }, children: [
46
+ /* @__PURE__ */ e.jsx(
47
+ I,
48
+ {
49
+ size: "small",
50
+ onClick: () => w("yes"),
51
+ sx: {
52
+ color: c === "yes" ? "primary.main" : "text.secondary",
53
+ "&:hover": {
54
+ backgroundColor: "action.hover"
55
+ }
56
+ },
57
+ children: /* @__PURE__ */ e.jsx(R, { fontSize: "small" })
58
+ }
59
+ ),
60
+ /* @__PURE__ */ e.jsx(i, { variant: "caption", color: "text.secondary", children: k }),
61
+ /* @__PURE__ */ e.jsx(
62
+ I,
63
+ {
64
+ size: "small",
65
+ onClick: () => w("no"),
66
+ sx: {
67
+ color: c === "no" ? "error.main" : "text.secondary",
68
+ ml: 1,
69
+ "&:hover": {
70
+ backgroundColor: "action.hover"
71
+ }
72
+ },
73
+ children: /* @__PURE__ */ e.jsx(L, { fontSize: "small" })
74
+ }
75
+ ),
76
+ /* @__PURE__ */ e.jsx(i, { variant: "caption", color: "text.secondary", children: D })
77
+ ] })
78
+ ] })
79
+ ] })
80
+ ] }),
81
+ /* @__PURE__ */ e.jsx($, { sx: { mt: 2 } })
82
+ ] });
83
+ };
84
+ export {
85
+ q as default
86
+ };
@@ -1,19 +1,19 @@
1
1
  import { j as c } from "../jsx-runtime-DywqP_6a.js";
2
2
  import * as r from "react";
3
- import { b as i } from "../createSvgIcon-CS-Z7P80.js";
3
+ import { c as i } from "../createSvgIcon-DCQI9UV5.js";
4
4
  import { MenuItem as u } from "@mui/material";
5
5
  import { usePopover as p } from "../hooks/use-popover.js";
6
6
  import m from "../s-text-field/s-text-field.js";
7
- import { I as f, S as x, F as d } from "../Select-DmB-tjlR.js";
8
- import { S as v } from "../Stack-GTpsqQv0.js";
9
- import { P as j } from "../Menu-DYOw-I_3.js";
7
+ import { I as f, S as x, F as d } from "../Select-C9Hk7BA8.js";
8
+ import { S as v } from "../Stack-TRopps6s.js";
9
+ import { P as j } from "../Menu-HtTElywx.js";
10
10
  const k = i(/* @__PURE__ */ c.jsx("path", {
11
11
  d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
12
12
  }), "Code"), H = i(/* @__PURE__ */ c.jsx("path", {
13
13
  d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"
14
- }), "FormatBold"), b = i(/* @__PURE__ */ c.jsx("path", {
14
+ }), "FormatBold"), L = i(/* @__PURE__ */ c.jsx("path", {
15
15
  d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"
16
- }), "FormatItalic"), L = i(/* @__PURE__ */ c.jsx("path", {
16
+ }), "FormatItalic"), b = i(/* @__PURE__ */ c.jsx("path", {
17
17
  d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"
18
18
  }), "FormatListBulleted"), C = i(/* @__PURE__ */ c.jsx("path", {
19
19
  d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"
@@ -88,7 +88,7 @@ const k = i(/* @__PURE__ */ c.jsx("path", {
88
88
  onClick: () => {
89
89
  n.chain().focus().toggleItalic().run();
90
90
  },
91
- children: /* @__PURE__ */ c.jsx(b, {})
91
+ children: /* @__PURE__ */ c.jsx(L, {})
92
92
  }
93
93
  ),
94
94
  /* @__PURE__ */ c.jsx(
@@ -121,7 +121,7 @@ const k = i(/* @__PURE__ */ c.jsx("path", {
121
121
  onClick: () => {
122
122
  n.chain().focus().toggleBulletList().run();
123
123
  },
124
- children: /* @__PURE__ */ c.jsx(L, {})
124
+ children: /* @__PURE__ */ c.jsx(b, {})
125
125
  }
126
126
  ),
127
127
  /* @__PURE__ */ c.jsx(
@@ -1,8 +1,8 @@
1
1
  import { j as s } from "../jsx-runtime-DywqP_6a.js";
2
2
  import { useState as j } from "react";
3
- import { TextField as b, InputAdornment as h, IconButton as w } from "@mui/material";
3
+ import { TextField as h, InputAdornment as w, IconButton as b } from "@mui/material";
4
4
  import y from "../s-form/s-form.js";
5
- import { b as c } from "../createSvgIcon-CS-Z7P80.js";
5
+ import { c } from "../createSvgIcon-DCQI9UV5.js";
6
6
  const g = c(/* @__PURE__ */ s.jsx("path", {
7
7
  d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
8
8
  }), "Visibility"), P = c(/* @__PURE__ */ s.jsx("path", {
@@ -19,8 +19,8 @@ const g = c(/* @__PURE__ */ s.jsx("path", {
19
19
  var r;
20
20
  const [t, m] = j(!1), n = o === "password", x = () => {
21
21
  m(!t);
22
- }, f = n && t ? "text" : o, u = n ? /* @__PURE__ */ s.jsx(h, { position: "end", children: /* @__PURE__ */ s.jsx(
23
- w,
22
+ }, f = n && t ? "text" : o, u = n ? /* @__PURE__ */ s.jsx(w, { position: "end", children: /* @__PURE__ */ s.jsx(
23
+ b,
24
24
  {
25
25
  "aria-label": "toggle password visibility",
26
26
  onClick: x,
@@ -30,7 +30,7 @@ const g = c(/* @__PURE__ */ s.jsx("path", {
30
30
  }
31
31
  ) }) : void 0;
32
32
  return /* @__PURE__ */ s.jsx(y, { label: d, hint: p, error: i, required: a, htmlFor: e, children: /* @__PURE__ */ s.jsx(
33
- b,
33
+ h,
34
34
  {
35
35
  fullWidth: !0,
36
36
  type: f,
@@ -1,7 +1,7 @@
1
1
  import { j as t } from "../jsx-runtime-DywqP_6a.js";
2
- import { b as e } from "../createSvgIcon-CS-Z7P80.js";
3
- import { S as s } from "../Stack-GTpsqQv0.js";
4
- import { T as r } from "../Typography-zQXZ4jKl.js";
2
+ import { c as e } from "../createSvgIcon-DCQI9UV5.js";
3
+ import { S as s } from "../Stack-TRopps6s.js";
4
+ import { T as r } from "../Typography-DGEEI1Q-.js";
5
5
  const a = e(/* @__PURE__ */ t.jsx("path", {
6
6
  d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2 11.7V16h-4v-2.3C8.48 12.63 7 11.53 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.49-1.51 3.65-3 4.7"
7
7
  }), "LightbulbOutline"), l = ({ message: o }) => /* @__PURE__ */ t.jsxs(
@@ -1,13 +1,13 @@
1
1
  import { j as r } from "../../jsx-runtime-DywqP_6a.js";
2
- import { b as o } from "../../createSvgIcon-CS-Z7P80.js";
2
+ import { c as o } from "../../createSvgIcon-DCQI9UV5.js";
3
3
  const s = o(/* @__PURE__ */ r.jsx("path", {
4
4
  d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
5
- }), "Person"), a = {
5
+ }), "Person"), c = {
6
6
  defaultProps: { children: /* @__PURE__ */ r.jsx(s, { sx: { color: "text.primary" } }) },
7
7
  styleOverrides: {
8
8
  rounded: { borderRadius: 12 }
9
9
  }
10
10
  };
11
11
  export {
12
- a as MuiAvatar
12
+ c as MuiAvatar
13
13
  };
@@ -1,7 +1,7 @@
1
1
  import { j as n } from "../../jsx-runtime-DywqP_6a.js";
2
2
  import { chipClasses as o } from "@mui/material";
3
3
  import { gray as r, orange as a, brand as c, purple as e, green as p, red as s, blue as d } from "../theme-primitives.js";
4
- import { C as b } from "../../Close-BSG2-e7H.js";
4
+ import { C as b } from "../../Close-DqRHeMAW.js";
5
5
  const u = {
6
6
  defaultProps: {
7
7
  size: "small",
@@ -1,5 +1,5 @@
1
1
  import { j as i } from "../../jsx-runtime-DywqP_6a.js";
2
- import { b as l } from "../../createSvgIcon-CS-Z7P80.js";
2
+ import { c as l } from "../../createSvgIcon-DCQI9UV5.js";
3
3
  import { brand as r, gray as e } from "../theme-primitives.js";
4
4
  import { o as p } from "../../outlinedInputClasses-DM19xjo3.js";
5
5
  import { g as d } from "../../generateUtilityClasses-BtVDwGrk.js";
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "../../jsx-runtime-DywqP_6a.js";
2
2
  import * as i from "react";
3
- import { b as s } from "../../createSvgIcon-CS-Z7P80.js";
3
+ import { c as s } from "../../createSvgIcon-DCQI9UV5.js";
4
4
  import { gray as o, brand as l } from "../theme-primitives.js";
5
5
  import { t as a } from "../../tabClasses-Bub2PPlp.js";
6
6
  import { a as d } from "../../colorManipulator-ep5lERxB.js";
@@ -1,20 +1,20 @@
1
1
  import { _ as le, a as C } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
2
2
  import * as h from "react";
3
3
  import Oo from "react";
4
- import { f as Y, b as Mt, u as Ve, d as We, r as ft, a as Io, B as fn, c as pr, e as As } from "./ButtonBase-Cn3itpEl.js";
5
- import { o as vt, u as st, b as be, F as Tt, e as Fs, H as mn, G as js, f as $s, L as un, i as Mo, h as Ls, j as Bs, B as Ws } from "./Menu-DYOw-I_3.js";
4
+ import { f as Y, b as Mt, u as Ve, d as We, r as ft, a as Io, B as fn, c as pr, e as As } from "./ButtonBase-B-mcxJe8.js";
5
+ import { o as vt, u as st, b as be, F as Tt, e as Fs, H as mn, G as js, f as $s, L as un, i as Mo, h as Ls, j as Bs, B as Ws } from "./Menu-HtTElywx.js";
6
6
  import { u as Vt } from "./useControlled-nm4pBabJ.js";
7
- import { u as Pt, f as zn, O as zs, a as Hs, b as _s, S as qs, F as fr, I as hn, C as Us, i as mr } from "./Select-DmB-tjlR.js";
7
+ import { u as Pt, f as zn, O as zs, a as Hs, b as _s, S as qs, F as fr, I as hn, C as Us, i as mr } from "./Select-C9Hk7BA8.js";
8
8
  import { u as Ue } from "./useEnhancedEffect-CJGo-L3B.js";
9
9
  import { g as ge } from "./generateUtilityClasses-BtVDwGrk.js";
10
10
  import { g as ye, a as Nt } from "./colorManipulator-ep5lERxB.js";
11
11
  import { j as x } from "./jsx-runtime-DywqP_6a.js";
12
12
  import { P as Ys, L as Ks, u as Re, w as Gs } from "./warning-KQY_8msi.js";
13
13
  import { s as z, r as hr, b as Ct } from "./styled-DOEEZAON.js";
14
- import { T as Lt } from "./Typography-zQXZ4jKl.js";
15
- import { u as He, c as Me, a as he, m as at, b as ut } from "./createSvgIcon-CS-Z7P80.js";
14
+ import { T as Lt } from "./Typography-DGEEI1Q-.js";
15
+ import { u as He, a as Me, b as he, m as at, c as ut } from "./createSvgIcon-DCQI9UV5.js";
16
16
  import { P as o, c as te } from "./createTheme-YLBX8GSj.js";
17
- import { f as Qs, T as gr, c as Xs, u as Hn, P as _n } from "./Paper-DEq2MLtq.js";
17
+ import { f as Qs, T as gr, c as Xs, u as Hn, P as _n } from "./Paper-pJ5bSU59.js";
18
18
  import { _ as Zs, a as br } from "./TransitionGroup--1HPPUFY.js";
19
19
  import { u as Bt, F as Js } from "./useFormControl-CatNKXAi.js";
20
20
  import { c as Ot } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.99",
6
+ "version": "1.0.101",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",