@solostylist/ui-kit 1.0.175 → 1.0.176

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 (203) hide show
  1. package/dist/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
  2. package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
  3. package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
  4. package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
  5. package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
  6. package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
  7. package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
  8. package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
  9. package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
  10. package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
  11. package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
  12. package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
  13. package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
  14. package/dist/Paper-DnctZB5U.js +689 -0
  15. package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
  16. package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
  17. package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
  18. package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
  19. package/dist/assets/s-overlay-scrollbar.css +1 -9
  20. package/dist/createSvgIcon-BKymXuBG.js +242 -0
  21. package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
  22. package/dist/defaultTheme-LSr-S9un.js +5 -0
  23. package/dist/entries/carousel.d.ts +10 -0
  24. package/dist/entries/carousel.js +4 -0
  25. package/dist/entries/chat.d.ts +9 -0
  26. package/dist/entries/chat.js +4 -0
  27. package/dist/entries/code.d.ts +9 -0
  28. package/dist/entries/code.js +4 -0
  29. package/dist/entries/core.d.ts +100 -0
  30. package/dist/entries/core.js +122 -0
  31. package/dist/entries/dates.d.ts +16 -0
  32. package/dist/entries/dates.js +12 -0
  33. package/dist/entries/dropzone.d.ts +9 -0
  34. package/dist/entries/dropzone.js +4 -0
  35. package/dist/entries/editor.d.ts +12 -0
  36. package/dist/entries/editor.js +4 -0
  37. package/dist/entries/gallery.d.ts +17 -0
  38. package/dist/entries/gallery.js +13 -0
  39. package/dist/entries/i18n.d.ts +13 -0
  40. package/dist/entries/i18n.js +8 -0
  41. package/dist/entries/motion.d.ts +29 -0
  42. package/dist/entries/motion.js +28 -0
  43. package/dist/entries/scrollbar.d.ts +9 -0
  44. package/dist/entries/scrollbar.js +4 -0
  45. package/dist/entries/stripe.d.ts +10 -0
  46. package/dist/entries/stripe.js +10 -0
  47. package/dist/extendSxProp-DitxZ8We.js +36 -0
  48. package/dist/hooks/index.js +8 -9
  49. package/dist/hooks/use-is-passed-position.js +10 -10
  50. package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
  51. package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
  52. package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
  53. package/dist/main.d.ts +29 -145
  54. package/dist/main.js +187 -187
  55. package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
  56. package/dist/resolveProps-BDH0VJjn.js +39 -0
  57. package/dist/s-accordion/package.json +5 -5
  58. package/dist/s-accordion/s-accordion.js +374 -358
  59. package/dist/s-action-overlay/package.json +5 -5
  60. package/dist/s-action-overlay/s-action-overlay.js +64 -79
  61. package/dist/s-ai-tool-bar/package.json +5 -5
  62. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
  63. package/dist/s-autocomplete/s-autocomplete.js +19 -25
  64. package/dist/s-avatar/package.json +5 -5
  65. package/dist/s-avatar/s-avatar.js +14 -25
  66. package/dist/s-blur-text/package.json +5 -5
  67. package/dist/s-blur-text/s-blur-text.js +55 -59
  68. package/dist/s-breadcrumbs/package.json +5 -5
  69. package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
  70. package/dist/s-button/package.json +5 -5
  71. package/dist/s-button/s-button.js +7 -15
  72. package/dist/s-button-link/s-button-link.js +28 -36
  73. package/dist/s-carousel/package.json +4 -4
  74. package/dist/s-carousel/s-carousel.js +267 -280
  75. package/dist/s-category-card/package.json +4 -4
  76. package/dist/s-category-card/s-category-card.js +60 -77
  77. package/dist/s-chat-input/package.json +5 -5
  78. package/dist/s-chat-input/s-chat-input.js +84 -92
  79. package/dist/s-chat-message/s-chat-message.js +111 -120
  80. package/dist/s-checkbox/s-checkbox.js +12 -20
  81. package/dist/s-chip/package.json +5 -5
  82. package/dist/s-chip/s-chip.js +7 -15
  83. package/dist/s-chips/s-chips.js +47 -56
  84. package/dist/s-code-block/package.json +5 -5
  85. package/dist/s-code-block/s-code-block.js +35 -43
  86. package/dist/s-comment-message/package.json +5 -5
  87. package/dist/s-comment-message/s-comment-message.js +90 -94
  88. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  89. package/dist/s-countdown/s-count-box.js +42 -50
  90. package/dist/s-countdown/s-count-down.js +79 -107
  91. package/dist/s-data-table/s-data-table.js +374 -384
  92. package/dist/s-date-picker/s-date-picker.js +164 -164
  93. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  94. package/dist/s-dialog/s-dialog.js +24 -32
  95. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  96. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  97. package/dist/s-empty/s-empty.js +6 -14
  98. package/dist/s-error/s-error.js +9 -17
  99. package/dist/s-error-layout/s-error-layout.js +38 -47
  100. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  101. package/dist/s-file-icon/s-file-icon.js +9 -13
  102. package/dist/s-flex-box/s-flex-box.js +6 -14
  103. package/dist/s-form/s-form.js +11 -19
  104. package/dist/s-gallery/index.js +3 -33
  105. package/dist/s-gallery/s-gallery.js +91 -114
  106. package/dist/s-glow-button/s-glow-button.js +22 -26
  107. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  108. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  109. package/dist/s-icon-button/s-icon-button.js +6 -14
  110. package/dist/s-image-comparison/package.json +5 -5
  111. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  112. package/dist/s-image-modal/package.json +5 -5
  113. package/dist/s-image-modal/s-image-modal.js +137 -150
  114. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  115. package/dist/s-label/s-label.js +12 -20
  116. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  117. package/dist/s-lazy-image/index.js +2 -10
  118. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  119. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  120. package/dist/s-moving-border/s-moving-border.js +52 -67
  121. package/dist/s-multi-select/s-multi-select.js +43 -51
  122. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  123. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  124. package/dist/s-pagination/s-pagination.js +13 -17
  125. package/dist/s-pixel-reveal/package.json +5 -5
  126. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  127. package/dist/s-radial-pulse-animate/package.json +5 -5
  128. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  129. package/dist/s-rating/package.json +5 -5
  130. package/dist/s-rating/s-rating.js +7 -15
  131. package/dist/s-review/package.json +5 -5
  132. package/dist/s-review/s-review.js +101 -106
  133. package/dist/s-scroll-reveal/package.json +5 -5
  134. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  135. package/dist/s-scroll-to-top/package.json +5 -5
  136. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  137. package/dist/s-scroll-velocity/package.json +5 -5
  138. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  139. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  140. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  141. package/dist/s-select/s-select.js +67 -75
  142. package/dist/s-select-list/s-select-list.js +28 -32
  143. package/dist/s-skeleton/s-skeleton.js +20 -28
  144. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  145. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  146. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  147. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  148. package/dist/s-stripe/s-stripe-number.js +8 -12
  149. package/dist/s-stripe/s-stripe.d.ts +2 -2
  150. package/dist/s-stripe/s-stripe.js +17 -26
  151. package/dist/s-stripe/stripe-input.js +25 -29
  152. package/dist/s-tabs/package.json +3 -3
  153. package/dist/s-tabs/s-tab-panel.js +17 -25
  154. package/dist/s-tabs/s-tab.js +5 -9
  155. package/dist/s-tabs/s-tabs.js +19 -27
  156. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  157. package/dist/s-text-editor/s-text-editor.js +33 -45
  158. package/dist/s-text-field/s-text-field.js +31 -40
  159. package/dist/s-text-shimmer/package.json +4 -4
  160. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  161. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  162. package/dist/s-theme-demo/package.json +5 -5
  163. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  164. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  165. package/dist/s-theme-switch/package.json +4 -4
  166. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  167. package/dist/s-tip/s-tip.js +14 -22
  168. package/dist/s-two-pane-layout/index.js +2 -10
  169. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  170. package/dist/s-typewriter-text/package.json +5 -5
  171. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  172. package/dist/s-zoom-image/index.js +2 -10
  173. package/dist/s-zoom-image/package.json +5 -5
  174. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  175. package/dist/styled-B0KflPi-.js +203 -0
  176. package/dist/theme/components/alert.d.ts +484 -264
  177. package/dist/theme/components/avatar.js +2 -2
  178. package/dist/theme/components/button.d.ts +726 -396
  179. package/dist/theme/components/chip.js +2 -2
  180. package/dist/theme/components/icon-button.d.ts +726 -396
  181. package/dist/theme/customizations/data-display.js +1 -1
  182. package/dist/theme/customizations/inputs.js +2 -2
  183. package/dist/theme/customizations/navigation.js +2 -2
  184. package/dist/theme/theme-primitives.d.ts +8 -246
  185. package/dist/theme/theme-primitives.js +76 -87
  186. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  187. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  188. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  189. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  190. package/dist/utils/dayjs.js +7 -7
  191. package/dist/utils/logger.js +29 -32
  192. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  193. package/package.json +240 -81
  194. package/README.md +0 -13
  195. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  196. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  197. package/dist/Paper-hkbPWyBT.js +0 -553
  198. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  199. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  200. package/dist/extendSxProp-BKWjdW12.js +0 -37
  201. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  202. package/dist/resolveProps-61uUKnlS.js +0 -52
  203. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,79 +1,78 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useState as M } from "react";
3
- import { Box as s, Typography as r, Paper as L, IconButton as z } from "@mui/material";
4
- import { SAvatar as W } from "../s-avatar/s-avatar.js";
5
- import { SImageModal as E } from "../s-image-modal/s-image-modal.js";
6
- import "../s-lazy-image/index.js";
7
- import { SSkeleton as i } from "../s-skeleton/s-skeleton.js";
8
- import O from "../s-lazy-image/s-lazy-image.js";
9
- import { c as v } from "../createSvgIcon-DxwgGAVe.js";
10
- import { D as U } from "../Download-UsLvGg3y.js";
11
- const P = v(/* @__PURE__ */ e.jsx("path", {
1
+ import { j as e } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useState as k } from "react";
3
+ import { Box as r, Typography as t, Paper as P, IconButton as B } from "@mui/material";
4
+ import { SSkeleton as l } from "../s-skeleton/s-skeleton.js";
5
+ import { SAvatar as F } from "../s-avatar/s-avatar.js";
6
+ import G from "../s-lazy-image/s-lazy-image.js";
7
+ import { c as g } from "../createSvgIcon-BKymXuBG.js";
8
+ import { D as H } from "../Download-Chao5NQl.js";
9
+ import { SImageModal as K } from "../s-image-modal/s-image-modal.js";
10
+ const q = g(/* @__PURE__ */ e.jsx("path", {
12
11
  d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
13
- }), "ErrorOutline"), G = v(/* @__PURE__ */ e.jsx("path", {
12
+ }), "ErrorOutline"), E = g(/* @__PURE__ */ e.jsx("path", {
14
13
  d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
15
- }), "InsertDriveFile"), H = v(/* @__PURE__ */ e.jsx("path", {
14
+ }), "InsertDriveFile"), J = g(/* @__PURE__ */ e.jsx("path", {
16
15
  d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"
17
- }), "Refresh"), x = ({
18
- message: l,
19
- variant: A = "received",
20
- timestamp: y,
21
- avatar: w,
22
- senderName: n,
23
- showAvatar: o = !0,
24
- showTimestamp: b = !1,
25
- maxWidth: j = "70%",
26
- attachments: g = [],
27
- onAttachmentClick: d,
28
- onDownload: m,
29
- hasError: h = !1,
30
- errorMessage: T = "Failed to send message",
31
- onRetry: V,
32
- loading: _ = !1,
33
- sx: C,
34
- ...q
16
+ }), "Refresh"), Q = ({
17
+ message: j,
18
+ variant: D = "received",
19
+ timestamp: u,
20
+ avatar: v,
21
+ senderName: o,
22
+ showAvatar: n = !0,
23
+ showTimestamp: I = !1,
24
+ maxWidth: S = "70%",
25
+ attachments: m = [],
26
+ onAttachmentClick: a,
27
+ onDownload: d,
28
+ hasError: x = !1,
29
+ errorMessage: W = "Failed to send message",
30
+ onRetry: w,
31
+ loading: L = !1,
32
+ sx: y,
33
+ ...z
35
34
  }) => {
36
- const [c, k] = M(null), [D, I] = M(!1), t = A === "sent", R = (a) => (typeof a == "string" ? new Date(a) : a).toLocaleTimeString("en-US", {
35
+ const [c, b] = k(null), [O, M] = k(!1), s = D === "sent", T = (i) => (typeof i == "string" ? new Date(i) : i).toLocaleTimeString("en-US", {
37
36
  hour: "2-digit",
38
37
  minute: "2-digit",
39
38
  hour12: !0
40
- }), F = (a) => {
41
- if (!a) return "";
42
- const u = ["Bytes", "KB", "MB", "GB"], f = Math.floor(Math.log(a) / Math.log(1024));
43
- return Math.round(a / Math.pow(1024, f) * 100) / 100 + " " + u[f];
44
- }, N = (a) => {
45
- d ? d(a) : (k(a), I(!0));
46
- }, B = (a) => {
47
- d ? d(a) : m && m(a);
48
- }, p = g.filter((a) => a.type === "image"), S = g.filter((a) => a.type === "file");
49
- return _ ? /* @__PURE__ */ e.jsxs(
50
- s,
39
+ }), R = (i) => {
40
+ if (!i) return "";
41
+ const p = ["Bytes", "KB", "MB", "GB"], f = Math.floor(Math.log(i) / Math.log(1024));
42
+ return Math.round(i / Math.pow(1024, f) * 100) / 100 + " " + p[f];
43
+ }, U = (i) => {
44
+ a ? a(i) : (b(i), M(!0));
45
+ }, V = (i) => {
46
+ a ? a(i) : d && d(i);
47
+ }, h = m.filter((i) => i.type === "image"), C = m.filter((i) => i.type === "file");
48
+ return L ? /* @__PURE__ */ e.jsxs(
49
+ r,
51
50
  {
52
51
  display: "flex",
53
- flexDirection: t ? "row-reverse" : "row",
52
+ flexDirection: s ? "row-reverse" : "row",
54
53
  alignItems: "flex-start",
55
54
  gap: 1,
56
55
  mb: 1,
57
56
  sx: {
58
- maxWidth: j,
59
- alignSelf: t ? "flex-end" : "flex-start",
60
- ...C
57
+ maxWidth: S,
58
+ alignSelf: s ? "flex-end" : "flex-start",
59
+ ...y
61
60
  },
62
- ...q,
61
+ ...z,
63
62
  children: [
64
- o && !t && /* @__PURE__ */ e.jsx(i, { component: "rounded-avatar", width: 36, height: 36 }),
63
+ n && !s && /* @__PURE__ */ e.jsx(l, { component: "rounded-avatar", width: 36, height: 36 }),
65
64
  /* @__PURE__ */ e.jsxs(
66
- s,
65
+ r,
67
66
  {
68
67
  display: "flex",
69
68
  flexDirection: "column",
70
- alignItems: t ? "flex-end" : "flex-start",
69
+ alignItems: s ? "flex-end" : "flex-start",
71
70
  gap: 0.5,
72
71
  sx: { minWidth: 0 },
73
72
  children: [
74
- n && !t && /* @__PURE__ */ e.jsx(i, { variant: "text", width: 100, height: 12, sx: { ml: 0.5 } }),
73
+ o && !s && /* @__PURE__ */ e.jsx(l, { variant: "text", width: 100, height: 12, sx: { ml: 0.5 } }),
75
74
  /* @__PURE__ */ e.jsxs(
76
- s,
75
+ r,
77
76
  {
78
77
  sx: {
79
78
  display: "inline-block",
@@ -83,47 +82,47 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
83
82
  ml: 0.5
84
83
  },
85
84
  children: [
86
- /* @__PURE__ */ e.jsx(i, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
87
- /* @__PURE__ */ e.jsx(i, { variant: "text", width: "85%", height: 16, sx: { mb: 0.5 } }),
88
- /* @__PURE__ */ e.jsx(i, { variant: "text", width: "70%", height: 16 })
85
+ /* @__PURE__ */ e.jsx(l, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
86
+ /* @__PURE__ */ e.jsx(l, { variant: "text", width: "85%", height: 16, sx: { mb: 0.5 } }),
87
+ /* @__PURE__ */ e.jsx(l, { variant: "text", width: "70%", height: 16 })
89
88
  ]
90
89
  }
91
90
  ),
92
- b && /* @__PURE__ */ e.jsx(i, { variant: "text", width: 60, height: 10, sx: { ml: t ? 0 : 0.5, mr: t ? 0.5 : 0 } })
91
+ I && /* @__PURE__ */ e.jsx(l, { variant: "text", width: 60, height: 10, sx: { ml: s ? 0 : 0.5, mr: s ? 0.5 : 0 } })
93
92
  ]
94
93
  }
95
94
  ),
96
- o && t && /* @__PURE__ */ e.jsx(i, { component: "rounded-avatar", width: 36, height: 36 })
95
+ n && s && /* @__PURE__ */ e.jsx(l, { component: "rounded-avatar", width: 36, height: 36 })
97
96
  ]
98
97
  }
99
98
  ) : /* @__PURE__ */ e.jsxs(
100
- s,
99
+ r,
101
100
  {
102
101
  display: "flex",
103
- flexDirection: t ? "row-reverse" : "row",
102
+ flexDirection: s ? "row-reverse" : "row",
104
103
  alignItems: "flex-start",
105
104
  gap: 1,
106
105
  mb: 1,
107
106
  sx: {
108
- maxWidth: j,
109
- alignSelf: t ? "flex-end" : "flex-start",
110
- ...C
107
+ maxWidth: S,
108
+ alignSelf: s ? "flex-end" : "flex-start",
109
+ ...y
111
110
  },
112
- ...q,
111
+ ...z,
113
112
  children: [
114
- o && !t && /* @__PURE__ */ e.jsx(W, { avatar: w, name: n, size: 36 }),
113
+ n && !s && /* @__PURE__ */ e.jsx(F, { avatar: v, name: o, size: 36 }),
115
114
  /* @__PURE__ */ e.jsxs(
116
- s,
115
+ r,
117
116
  {
118
117
  display: "flex",
119
118
  flexDirection: "column",
120
- alignItems: t ? "flex-end" : "flex-start",
119
+ alignItems: s ? "flex-end" : "flex-start",
121
120
  gap: 0.5,
122
121
  sx: { minWidth: 0 },
123
122
  children: [
124
- n && !t && /* @__PURE__ */ e.jsx(r, { children: n }),
123
+ o && !s && /* @__PURE__ */ e.jsx(t, { children: o }),
125
124
  /* @__PURE__ */ e.jsxs(
126
- s,
125
+ r,
127
126
  {
128
127
  sx: {
129
128
  display: "inline-block",
@@ -131,29 +130,29 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
131
130
  wordBreak: "break-word",
132
131
  maxWidth: "100%",
133
132
  border: "1px solid",
134
- borderColor: h ? "error.main" : "divider",
135
- ...h && {
133
+ borderColor: x ? "error.main" : "divider",
134
+ ...x && {
136
135
  opacity: 0.7
137
136
  },
138
137
  overflow: "hidden"
139
138
  },
140
139
  children: [
141
- p.length > 0 && /* @__PURE__ */ e.jsx(
142
- s,
140
+ h.length > 0 && /* @__PURE__ */ e.jsx(
141
+ r,
143
142
  {
144
143
  sx: {
145
144
  display: "grid",
146
- gridTemplateColumns: p.length === 1 ? "1fr" : "repeat(2, 1fr)",
145
+ gridTemplateColumns: h.length === 1 ? "1fr" : "repeat(2, 1fr)",
147
146
  gap: 0.5,
148
147
  p: 0.5
149
148
  },
150
149
  minWidth: 200,
151
- children: p.map((a) => /* @__PURE__ */ e.jsx(
152
- s,
150
+ children: h.map((i) => /* @__PURE__ */ e.jsx(
151
+ r,
153
152
  {
154
153
  sx: {
155
154
  position: "relative",
156
- paddingTop: p.length === 1 ? "66.67%" : "100%",
155
+ paddingTop: h.length === 1 ? "66.67%" : "100%",
157
156
  cursor: "pointer",
158
157
  borderRadius: 1.5,
159
158
  overflow: "hidden",
@@ -161,12 +160,12 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
161
160
  opacity: 0.9
162
161
  }
163
162
  },
164
- onClick: () => N(a),
163
+ onClick: () => U(i),
165
164
  children: /* @__PURE__ */ e.jsx(
166
- O,
165
+ G,
167
166
  {
168
- src: a.thumbnailUrl || a.url,
169
- alt: a.name || "Image",
167
+ src: i.thumbnailUrl || i.url,
168
+ alt: i.name || "Image",
170
169
  width: "100%",
171
170
  height: "100%",
172
171
  style: {
@@ -178,12 +177,12 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
178
177
  }
179
178
  )
180
179
  },
181
- a.id
180
+ i.id
182
181
  ))
183
182
  }
184
183
  ),
185
- S.length > 0 && /* @__PURE__ */ e.jsx(s, { sx: { p: 1.5 }, children: S.map((a, u) => /* @__PURE__ */ e.jsxs(
186
- L,
184
+ C.length > 0 && /* @__PURE__ */ e.jsx(r, { sx: { p: 1.5 }, children: C.map((i, p) => /* @__PURE__ */ e.jsxs(
185
+ P,
187
186
  {
188
187
  variant: "outlined",
189
188
  sx: {
@@ -191,15 +190,15 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
191
190
  alignItems: "center",
192
191
  gap: 1.5,
193
192
  p: 1,
194
- mt: u > 0 ? 1 : 0,
193
+ mt: p > 0 ? 1 : 0,
195
194
  cursor: "pointer"
196
195
  },
197
- onClick: () => B(a),
196
+ onClick: () => V(i),
198
197
  children: [
199
- /* @__PURE__ */ e.jsx(G, { sx: { fontSize: 32 } }),
200
- /* @__PURE__ */ e.jsxs(s, { sx: { flex: 1, minWidth: 0 }, children: [
198
+ /* @__PURE__ */ e.jsx(E, { sx: { fontSize: 32 } }),
199
+ /* @__PURE__ */ e.jsxs(r, { sx: { flex: 1, minWidth: 0 }, children: [
201
200
  /* @__PURE__ */ e.jsx(
202
- r,
201
+ t,
203
202
  {
204
203
  variant: "body2",
205
204
  sx: {
@@ -209,56 +208,56 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
209
208
  textOverflow: "ellipsis",
210
209
  whiteSpace: "nowrap"
211
210
  },
212
- children: a.name || "Unnamed File"
211
+ children: i.name || "Unnamed File"
213
212
  }
214
213
  ),
215
- a.size && /* @__PURE__ */ e.jsx(r, { variant: "caption", children: F(a.size) })
214
+ i.size && /* @__PURE__ */ e.jsx(t, { variant: "caption", children: R(i.size) })
216
215
  ] }),
217
- m && /* @__PURE__ */ e.jsx(
218
- z,
216
+ d && /* @__PURE__ */ e.jsx(
217
+ B,
219
218
  {
220
219
  size: "small",
221
220
  onClick: (f) => {
222
- f.stopPropagation(), m(a);
221
+ f.stopPropagation(), d(i);
223
222
  },
224
- children: /* @__PURE__ */ e.jsx(U, {})
223
+ children: /* @__PURE__ */ e.jsx(H, {})
225
224
  }
226
225
  )
227
226
  ]
228
227
  },
229
- a.id
228
+ i.id
230
229
  )) }),
231
- l && /* @__PURE__ */ e.jsx(s, { sx: { px: 2, py: 1.5, pt: g.length > 0 ? 0 : 1.5 }, children: /* @__PURE__ */ e.jsx(
232
- r,
230
+ j && /* @__PURE__ */ e.jsx(r, { sx: { px: 2, py: 1.5, pt: m.length > 0 ? 0 : 1.5 }, children: /* @__PURE__ */ e.jsx(
231
+ t,
233
232
  {
234
233
  variant: "body2",
235
234
  sx: {
236
235
  fontSize: "0.875rem",
237
236
  whiteSpace: "pre-wrap",
238
- color: h ? "error.main" : "inherit"
237
+ color: x ? "error.main" : "inherit"
239
238
  },
240
- children: l
239
+ children: j
241
240
  }
242
241
  ) })
243
242
  ]
244
243
  }
245
244
  ),
246
- b && y && /* @__PURE__ */ e.jsx(r, { variant: "caption", children: R(y) }),
247
- h && /* @__PURE__ */ e.jsxs(s, { display: "flex", alignItems: "center", gap: 0.5, color: "error.main", children: [
248
- /* @__PURE__ */ e.jsx(P, { sx: { fontSize: "1rem" } }),
249
- /* @__PURE__ */ e.jsx(r, { color: "inherit", children: T }),
250
- V && /* @__PURE__ */ e.jsx(z, { size: "small", onClick: V, children: /* @__PURE__ */ e.jsx(H, {}) })
245
+ I && u && /* @__PURE__ */ e.jsx(t, { variant: "caption", children: T(u) }),
246
+ x && /* @__PURE__ */ e.jsxs(r, { display: "flex", alignItems: "center", gap: 0.5, color: "error.main", children: [
247
+ /* @__PURE__ */ e.jsx(q, { sx: { fontSize: "1rem" } }),
248
+ /* @__PURE__ */ e.jsx(t, { color: "inherit", children: W }),
249
+ w && /* @__PURE__ */ e.jsx(B, { size: "small", onClick: w, children: /* @__PURE__ */ e.jsx(J, {}) })
251
250
  ] })
252
251
  ]
253
252
  }
254
253
  ),
255
- o && t && /* @__PURE__ */ e.jsx(W, { avatar: w, name: n, size: 36 }),
254
+ n && s && /* @__PURE__ */ e.jsx(F, { avatar: v, name: o, size: 36 }),
256
255
  c && /* @__PURE__ */ e.jsx(
257
- E,
256
+ K,
258
257
  {
259
- isOpen: D,
258
+ isOpen: O,
260
259
  onClose: () => {
261
- I(!1), k(null);
260
+ M(!1), b(null);
262
261
  },
263
262
  selectedItem: {
264
263
  id: c.id,
@@ -274,16 +273,8 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
274
273
  }
275
274
  );
276
275
  };
277
- x.displayName = "SChatMessage";
278
- try {
279
- x.displayName = "SChatMessage", x.__docgenInfo = { description: "A comprehensive chat message component for conversation interfaces with support for text, images, and file attachments.", displayName: "SChatMessage", props: { message: { defaultValue: null, description: "The message content to display in the chat bubble", name: "message", required: !1, type: { name: "string" } }, variant: { defaultValue: { value: "received" }, description: "The message variant controlling alignment and styling", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"sent"' }, { value: '"received"' }] } }, timestamp: { defaultValue: null, description: "The timestamp for the message, displayed when showTimestamp is true", name: "timestamp", required: !1, type: { name: "string | Date" } }, avatar: { defaultValue: null, description: "Avatar image URL or base64 string to display next to the message", name: "avatar", required: !1, type: { name: "string" } }, senderName: { defaultValue: null, description: "Name of the message sender, displayed above received messages when provided", name: "senderName", required: !1, type: { name: "string" } }, showAvatar: { defaultValue: { value: "true" }, description: "Whether to display the avatar next to the message", name: "showAvatar", required: !1, type: { name: "boolean" } }, showTimestamp: { defaultValue: { value: "false" }, description: "Whether to display the formatted timestamp below the message", name: "showTimestamp", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "70%" }, description: "Maximum width of the message bubble container", name: "maxWidth", required: !1, type: { name: "string | number" } }, attachments: { defaultValue: { value: "[]" }, description: "Array of file/image attachments to display with the message", name: "attachments", required: !1, type: { name: "ChatAttachment[]" } }, onAttachmentClick: { defaultValue: null, description: "Callback fired when an attachment is clicked", name: "onAttachmentClick", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, onDownload: { defaultValue: null, description: "Callback fired when file download button is clicked", name: "onDownload", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, hasError: { defaultValue: { value: "false" }, description: "Whether the message failed to send", name: "hasError", required: !1, type: { name: "boolean" } }, errorMessage: { defaultValue: { value: "Failed to send message" }, description: "Custom error message to display when hasError is true", name: "errorMessage", required: !1, type: { name: "string" } }, onRetry: { defaultValue: null, description: "Callback fired when retry button is clicked", name: "onRetry", required: !1, type: { name: "(() => void)" } }, loading: { defaultValue: { value: "false" }, description: "Whether to show skeleton loading state instead of content", name: "loading", required: !1, type: { name: "boolean" } } } };
280
- } catch {
281
- }
282
- try {
283
- schatmessage.displayName = "schatmessage", schatmessage.__docgenInfo = { description: "A comprehensive chat message component for conversation interfaces with support for text, images, and file attachments.", displayName: "schatmessage", props: { message: { defaultValue: null, description: "The message content to display in the chat bubble", name: "message", required: !1, type: { name: "string" } }, variant: { defaultValue: { value: "received" }, description: "The message variant controlling alignment and styling", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"sent"' }, { value: '"received"' }] } }, timestamp: { defaultValue: null, description: "The timestamp for the message, displayed when showTimestamp is true", name: "timestamp", required: !1, type: { name: "string | Date" } }, avatar: { defaultValue: null, description: "Avatar image URL or base64 string to display next to the message", name: "avatar", required: !1, type: { name: "string" } }, senderName: { defaultValue: null, description: "Name of the message sender, displayed above received messages when provided", name: "senderName", required: !1, type: { name: "string" } }, showAvatar: { defaultValue: { value: "true" }, description: "Whether to display the avatar next to the message", name: "showAvatar", required: !1, type: { name: "boolean" } }, showTimestamp: { defaultValue: { value: "false" }, description: "Whether to display the formatted timestamp below the message", name: "showTimestamp", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "70%" }, description: "Maximum width of the message bubble container", name: "maxWidth", required: !1, type: { name: "string | number" } }, attachments: { defaultValue: { value: "[]" }, description: "Array of file/image attachments to display with the message", name: "attachments", required: !1, type: { name: "ChatAttachment[]" } }, onAttachmentClick: { defaultValue: null, description: "Callback fired when an attachment is clicked", name: "onAttachmentClick", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, onDownload: { defaultValue: null, description: "Callback fired when file download button is clicked", name: "onDownload", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, hasError: { defaultValue: { value: "false" }, description: "Whether the message failed to send", name: "hasError", required: !1, type: { name: "boolean" } }, errorMessage: { defaultValue: { value: "Failed to send message" }, description: "Custom error message to display when hasError is true", name: "errorMessage", required: !1, type: { name: "string" } }, onRetry: { defaultValue: null, description: "Callback fired when retry button is clicked", name: "onRetry", required: !1, type: { name: "(() => void)" } }, loading: { defaultValue: { value: "false" }, description: "Whether to show skeleton loading state instead of content", name: "loading", required: !1, type: { name: "boolean" } } } };
284
- } catch {
285
- }
276
+ Q.displayName = "SChatMessage";
286
277
  export {
287
- x as SChatMessage,
288
- x as default
278
+ Q as SChatMessage,
279
+ Q as default
289
280
  };
@@ -1,25 +1,17 @@
1
- import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as i, useId as s } from "react";
3
- import { Stack as l, Checkbox as d, Typography as p } from "@mui/material";
4
- const o = i(
5
- ({ content: e, ...c }, r) => {
6
- const n = s(), a = c.id ?? n;
7
- return /* @__PURE__ */ t.jsxs(l, { alignItems: "center", direction: "row", display: "flex", justifyContent: "start", children: [
8
- /* @__PURE__ */ t.jsx(d, { ref: r, ...c, id: a }),
9
- e && /* @__PURE__ */ t.jsx("label", { htmlFor: a, children: /* @__PURE__ */ t.jsx(p, { variant: "body2", children: e }) })
1
+ import { j as e } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as a, useId as d } from "react";
3
+ import { Stack as c, Checkbox as l, Typography as n } from "@mui/material";
4
+ const x = a(
5
+ ({ content: r, ...t }, s) => {
6
+ const i = d(), o = t.id ?? i;
7
+ return /* @__PURE__ */ e.jsxs(c, { alignItems: "center", direction: "row", display: "flex", justifyContent: "start", children: [
8
+ /* @__PURE__ */ e.jsx(l, { ref: s, ...t, id: o }),
9
+ r && /* @__PURE__ */ e.jsx("label", { htmlFor: o, children: /* @__PURE__ */ e.jsx(n, { variant: "body2", children: r }) })
10
10
  ] });
11
11
  }
12
12
  );
13
- o.displayName = "SCheckbox";
14
- try {
15
- o.displayName = "SCheckbox", o.__docgenInfo = { description: "A checkbox component with integrated label support and proper accessibility.", displayName: "SCheckbox", props: { content: { defaultValue: null, description: "Content displayed as a clickable label next to the checkbox", name: "content", required: !1, type: { name: "ReactNode" } } } };
16
- } catch {
17
- }
18
- try {
19
- scheckbox.displayName = "scheckbox", scheckbox.__docgenInfo = { description: "A checkbox component with integrated label support and proper accessibility.", displayName: "scheckbox", props: { content: { defaultValue: null, description: "Content displayed as a clickable label next to the checkbox", name: "content", required: !1, type: { name: "ReactNode" } } } };
20
- } catch {
21
- }
13
+ x.displayName = "SCheckbox";
22
14
  export {
23
- o as SCheckbox,
24
- o as default
15
+ x as SCheckbox,
16
+ x as default
25
17
  };
@@ -1,5 +1,5 @@
1
- {
2
- "main": "./index.js",
3
- "types": "./index.d.ts",
4
- "sideEffects": false
5
- }
1
+ {
2
+ "main": "./index.js",
3
+ "types": "./index.d.ts",
4
+ "sideEffects": false
5
+ }
@@ -1,17 +1,9 @@
1
- import { j as p } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as s } from "react";
3
- import { Chip as o } from "@mui/material";
4
- const r = s((e, i) => /* @__PURE__ */ p.jsx(o, { ref: i, ...e }));
5
- r.displayName = "SChip";
6
- try {
7
- r.displayName = "SChip", r.__docgenInfo = { description: "A versatile chip component for displaying compact elements like tags, filters, or user selections.", displayName: "SChip", props: {} };
8
- } catch {
9
- }
10
- try {
11
- schip.displayName = "schip", schip.__docgenInfo = { description: "A versatile chip component for displaying compact elements like tags, filters, or user selections.", displayName: "schip", props: {} };
12
- } catch {
13
- }
1
+ import { j as p } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as t } from "react";
3
+ import { Chip as i } from "@mui/material";
4
+ const m = t((r, o) => /* @__PURE__ */ p.jsx(i, { ref: o, ...r }));
5
+ m.displayName = "SChip";
14
6
  export {
15
- r as SChip,
16
- r as default
7
+ m as SChip,
8
+ m as default
17
9
  };
@@ -1,77 +1,76 @@
1
- import { j as n } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useRef as j, useState as c, useEffect as k } from "react";
3
- import { Box as l, Chip as u, Tooltip as V } from "@mui/material";
4
- const h = ({
5
- chips: e,
6
- overflow: s = !0,
7
- onClick: a,
8
- overflowText: m = "keywords"
1
+ import { j as s } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useRef as g, useState as d, useEffect as S } from "react";
3
+ import { Box as l, Chip as m, Tooltip as v } from "@mui/material";
4
+ const E = ({
5
+ chips: n,
6
+ overflow: r = !0,
7
+ onClick: c,
8
+ overflowText: h = "keywords"
9
9
  }) => {
10
- const f = j(null), [v, g] = c([]), [C, b] = c([]), [w, _] = c(0), p = () => {
11
- var y;
12
- const i = ((y = f.current) == null ? void 0 : y.offsetWidth) || 0;
13
- let t = 0, r = 0;
14
- for (let o = 0; o < e.length; o++) {
15
- const x = d(e[o]);
16
- if (t + x <= i)
17
- t += x, r++;
10
+ const u = g(null), [C, b] = d([]), [w, y] = d([]), [x, W] = d(0), a = () => {
11
+ const t = u.current?.offsetWidth || 0;
12
+ let e = 0, i = 0;
13
+ for (let o = 0; o < n.length; o++) {
14
+ const f = p(n[o]);
15
+ if (e + f <= t)
16
+ e += f, i++;
18
17
  else
19
18
  break;
20
19
  }
21
- if (r < e.length) {
22
- const o = d(`+${e.length - r} ${m}`);
23
- for (; t + o > i && r > 0; )
24
- r--, t -= d(e[r]);
20
+ if (i < n.length) {
21
+ const o = p(`+${n.length - i} ${h}`);
22
+ for (; e + o > t && i > 0; )
23
+ i--, e -= p(n[i]);
25
24
  }
26
- g(e.slice(0, r)), b(e.slice(r)), _(e.length - r);
27
- }, d = (i) => {
28
- const t = document.createElement("span");
29
- t.style.visibility = "hidden", t.style.position = "absolute", t.style.whiteSpace = "nowrap", t.textContent = i.trim(), document.body.appendChild(t);
30
- const r = t.offsetWidth;
31
- return document.body.removeChild(t), r + 16;
32
- }, W = s ? { textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden" } : {};
33
- return k(() => {
34
- if (s)
35
- return p(), window.addEventListener("resize", p), () => {
36
- window.removeEventListener("resize", p);
25
+ b(n.slice(0, i)), y(n.slice(i)), W(n.length - i);
26
+ }, p = (t) => {
27
+ const e = document.createElement("span");
28
+ e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.textContent = t.trim(), document.body.appendChild(e);
29
+ const i = e.offsetWidth;
30
+ return document.body.removeChild(e), i + 16;
31
+ }, j = r ? { textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden" } : {};
32
+ return S(() => {
33
+ if (r)
34
+ return a(), window.addEventListener("resize", a), () => {
35
+ window.removeEventListener("resize", a);
37
36
  };
38
- }, [e, s]), /* @__PURE__ */ n.jsxs(l, { ref: f, display: "flex", maxWidth: "100%", flexWrap: s ? "nowrap" : "wrap", ...W, children: [
39
- (s ? v : e).map((i) => /* @__PURE__ */ n.jsx(
37
+ }, [n, r]), /* @__PURE__ */ s.jsxs(l, { ref: u, display: "flex", maxWidth: "100%", flexWrap: r ? "nowrap" : "wrap", ...j, children: [
38
+ (r ? C : n).map((t) => /* @__PURE__ */ s.jsx(
40
39
  l,
41
40
  {
42
41
  component: "span",
43
42
  textTransform: "lowercase",
44
43
  onClick: () => {
45
- a == null || a(i);
44
+ c?.(t);
46
45
  },
47
- children: /* @__PURE__ */ n.jsx(
48
- u,
46
+ children: /* @__PURE__ */ s.jsx(
47
+ m,
49
48
  {
50
- label: i.trim(),
49
+ label: t.trim(),
51
50
  sx: {
52
51
  mr: 1,
53
52
  mb: 1,
54
53
  userSelect: "none",
55
- cursor: a ? "pointer" : "default"
54
+ cursor: c ? "pointer" : "default"
56
55
  }
57
56
  }
58
57
  )
59
58
  },
60
- i
59
+ t
61
60
  )),
62
- s && w > 0 && /* @__PURE__ */ n.jsx(
63
- V,
61
+ r && x > 0 && /* @__PURE__ */ s.jsx(
62
+ v,
64
63
  {
65
64
  slotProps: {
66
65
  tooltip: { style: { padding: "0.5rem" } }
67
66
  },
68
67
  arrow: !0,
69
68
  placement: "top",
70
- title: /* @__PURE__ */ n.jsx(l, { display: "flex", gap: 1, maxWidth: "240px", flexWrap: "wrap", children: C.map((i) => /* @__PURE__ */ n.jsx(u, { label: i.trim() }, i)) }),
71
- children: /* @__PURE__ */ n.jsx(l, { component: "span", textTransform: "lowercase", children: /* @__PURE__ */ n.jsx(
72
- u,
69
+ title: /* @__PURE__ */ s.jsx(l, { display: "flex", gap: 1, maxWidth: "240px", flexWrap: "wrap", children: w.map((t) => /* @__PURE__ */ s.jsx(m, { label: t.trim() }, t)) }),
70
+ children: /* @__PURE__ */ s.jsx(l, { component: "span", textTransform: "lowercase", children: /* @__PURE__ */ s.jsx(
71
+ m,
73
72
  {
74
- label: `+${w} ${m}`,
73
+ label: `+${x} ${h}`,
75
74
  variant: "outlined",
76
75
  sx: { mr: 1, mb: 1, userSelect: "none", cursor: "pointer" }
77
76
  }
@@ -80,16 +79,8 @@ const h = ({
80
79
  )
81
80
  ] });
82
81
  };
83
- h.displayName = "SChips";
84
- try {
85
- h.displayName = "SChips", h.__docgenInfo = { description: "A smart chip display component that handles overflow with intelligent truncation.", displayName: "SChips", props: { chips: { defaultValue: null, description: "Array of strings to display as chips", name: "chips", required: !0, type: { name: "string[]" } }, overflow: { defaultValue: { value: "true" }, description: "Whether to handle overflow with '+N more' chip (default: true)", name: "overflow", required: !1, type: { name: "boolean" } }, onClick: { defaultValue: null, description: "Callback fired when a chip is clicked", name: "onClick", required: !1, type: { name: "((tag: string) => void)" } }, overflowText: { defaultValue: { value: "keywords" }, description: "Text used in overflow chip (default: 'keywords')", name: "overflowText", required: !1, type: { name: "string" } } } };
86
- } catch {
87
- }
88
- try {
89
- schips.displayName = "schips", schips.__docgenInfo = { description: "A smart chip display component that handles overflow with intelligent truncation.", displayName: "schips", props: { chips: { defaultValue: null, description: "Array of strings to display as chips", name: "chips", required: !0, type: { name: "string[]" } }, overflow: { defaultValue: { value: "true" }, description: "Whether to handle overflow with '+N more' chip (default: true)", name: "overflow", required: !1, type: { name: "boolean" } }, onClick: { defaultValue: null, description: "Callback fired when a chip is clicked", name: "onClick", required: !1, type: { name: "((tag: string) => void)" } }, overflowText: { defaultValue: { value: "keywords" }, description: "Text used in overflow chip (default: 'keywords')", name: "overflowText", required: !1, type: { name: "string" } } } };
90
- } catch {
91
- }
82
+ E.displayName = "SChips";
92
83
  export {
93
- h as SChips,
94
- h as default
84
+ E as SChips,
85
+ E as default
95
86
  };
@@ -1,5 +1,5 @@
1
- {
2
- "main": "./index.js",
3
- "types": "./index.d.ts",
4
- "sideEffects": false
5
- }
1
+ {
2
+ "main": "./index.js",
3
+ "types": "./index.d.ts",
4
+ "sideEffects": false
5
+ }