@solostylist/ui-kit 2.0.0 → 2.0.1

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 (268) hide show
  1. package/dist/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
  2. package/dist/main.js +1 -1
  3. package/dist/palettes/index.js +1 -1
  4. package/dist/{palettes-Dw3PEYF5.js → palettes-CJLuEy1m.js} +163 -163
  5. package/dist/s-accordion/index.js +1 -1
  6. package/dist/s-accordion/s-accordion.js +70 -2
  7. package/dist/s-action-overlay/s-action-overlay.js +21 -21
  8. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  9. package/dist/s-avatar/s-avatar.js +17 -17
  10. package/dist/s-blur-text/s-blur-text.js +16 -16
  11. package/dist/s-brand-logo/index.js +1 -1
  12. package/dist/s-brand-logo/s-brand-logo.js +1 -1
  13. package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
  14. package/dist/s-carousel/index.js +1 -1
  15. package/dist/s-carousel/s-carousel.js +184 -2
  16. package/dist/s-category-card/s-category-card.js +22 -22
  17. package/dist/s-chat-input/index.js +1 -1
  18. package/dist/s-chat-input/s-chat-input.js +398 -2
  19. package/dist/s-chat-message/index.js +1 -1
  20. package/dist/s-chat-message/s-chat-message.js +314 -2
  21. package/dist/s-checkbox/s-checkbox.js +18 -19
  22. package/dist/s-chips/index.js +1 -1
  23. package/dist/s-chips/s-chips.js +174 -2
  24. package/dist/s-code-block/index.js +1 -1
  25. package/dist/s-code-block/s-code-block.js +103 -2
  26. package/dist/s-comment-message/index.js +1 -1
  27. package/dist/s-comment-message/s-comment-message.js +189 -2
  28. package/dist/s-copyable-text/s-copyable-text.js +18 -18
  29. package/dist/s-countdown/s-count-box.js +18 -18
  30. package/dist/s-data-table/index.js +1 -1
  31. package/dist/s-data-table/s-data-table.js +213 -2
  32. package/dist/s-date-picker/index.js +1 -1
  33. package/dist/s-date-picker/s-date-picker.js +106 -2
  34. package/dist/s-datetime-picker/index.js +1 -1
  35. package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
  36. package/dist/s-dialog/index.js +1 -1
  37. package/dist/s-dialog/s-dialog.js +80 -2
  38. package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
  39. package/dist/s-dialog-message/s-dialog-message.js +31 -32
  40. package/dist/s-empty/s-empty.js +13 -14
  41. package/dist/s-file-dropzone/index.js +1 -1
  42. package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
  43. package/dist/s-file-icon/s-file-icon.js +87 -88
  44. package/dist/s-flex-box/s-flex-box.js +11 -12
  45. package/dist/s-form/s-form.js +15 -15
  46. package/dist/s-gallery/s-gallery.js +1 -1
  47. package/dist/s-glow-button/s-glow-button.js +9 -10
  48. package/dist/s-icon-button/s-icon-button.js +15 -16
  49. package/dist/s-image-comparison/s-image-comparison.js +29 -31
  50. package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
  51. package/dist/s-image-viewer/index.js +3 -3
  52. package/dist/s-image-viewer/s-image-viewer.js +266 -2
  53. package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
  54. package/dist/s-label/s-label.js +26 -27
  55. package/dist/s-language-switcher/index.js +2 -2
  56. package/dist/s-language-switcher/s-language-switcher.js +150 -2
  57. package/dist/s-lazy-image/s-lazy-image.js +17 -18
  58. package/dist/s-link/index.js +1 -1
  59. package/dist/s-link/s-link.js +5 -2
  60. package/dist/s-localization-provider/index.js +1 -1
  61. package/dist/s-localization-provider/s-localization-provider.js +12 -2
  62. package/dist/s-nav-item/s-nav-item.js +16 -16
  63. package/dist/s-nav-items/index.js +2 -2
  64. package/dist/s-nav-items/s-nav-items.js +167 -2
  65. package/dist/s-no-ssr/index.js +1 -1
  66. package/dist/s-no-ssr/s-no-ssr.js +5 -2
  67. package/dist/s-pagination/index.js +1 -1
  68. package/dist/s-pagination/s-pagination.js +85 -2
  69. package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
  70. package/dist/s-quantity-input/index.js +1 -1
  71. package/dist/s-quantity-input/s-quantity-input.js +246 -2
  72. package/dist/s-review/index.js +1 -1
  73. package/dist/s-review/s-review.js +272 -2
  74. package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
  75. package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
  76. package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
  77. package/dist/s-select/index.js +1 -1
  78. package/dist/s-select/s-select.js +201 -2
  79. package/dist/s-select-list/s-select-list.js +47 -50
  80. package/dist/s-skeleton/s-skeleton.js +16 -17
  81. package/dist/s-snackbar-message/index.js +2 -2
  82. package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
  83. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
  84. package/dist/s-status-illustration/s-status-illustration.js +74 -74
  85. package/dist/s-stripe/s-stripe.js +11 -12
  86. package/dist/s-stripe/stripe-input.js +3 -2
  87. package/dist/s-switch/index.js +1 -1
  88. package/dist/s-switch/s-switch.js +48 -2
  89. package/dist/s-tabs/s-tabs.js +48 -50
  90. package/dist/s-text-editor/index.js +1 -1
  91. package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
  92. package/dist/s-text-editor/s-text-editor.js +25 -26
  93. package/dist/s-text-field/index.js +1 -1
  94. package/dist/s-text-field/s-text-field.js +52 -2
  95. package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
  96. package/dist/s-text-truncation/s-text-truncation.js +20 -20
  97. package/dist/s-theme-demo/s-theme-demo.js +8 -8
  98. package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
  99. package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
  100. package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
  101. package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
  102. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  103. package/dist/s-theme-switch/index.js +1 -1
  104. package/dist/s-theme-switch/s-theme-switch.js +60 -2
  105. package/dist/s-tip/index.js +1 -1
  106. package/dist/s-tip/s-tip.js +61 -2
  107. package/dist/s-tool-bar/s-tool-bar.js +28 -28
  108. package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
  109. package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
  110. package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
  111. package/dist/s-tool-item/s-tool-item.js +22 -22
  112. package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
  113. package/dist/s-zoom-image/s-zoom-image.js +18 -19
  114. package/dist/theme/components/autocomplete.js +43 -2
  115. package/dist/theme/components/avatar.js +9 -2
  116. package/dist/theme/components/card.js +3 -3
  117. package/dist/theme/components/checkbox.js +90 -2
  118. package/dist/theme/components/chip.js +3 -3
  119. package/dist/theme/components/components.js +20 -20
  120. package/dist/theme/components/date-calendar.js +1 -0
  121. package/dist/theme/components/day-calendar.js +1 -0
  122. package/dist/theme/components/field-label-styles.js +19 -2
  123. package/dist/theme/components/form-label.js +1 -1
  124. package/dist/theme/components/list-item-button.js +1 -1
  125. package/dist/theme/components/list-item.js +7 -7
  126. package/dist/theme/components/month-calendar.js +14 -13
  127. package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
  128. package/dist/theme/components/outlined-input.js +6 -6
  129. package/dist/theme/components/picker-day.js +1 -0
  130. package/dist/theme/components/pickers-arrow-switcher.js +1 -0
  131. package/dist/theme/components/pickers-calendar-header.js +3 -2
  132. package/dist/theme/components/select.js +6 -6
  133. package/dist/theme/components/switch.js +1 -1
  134. package/dist/theme/components/table-pagination.js +1 -1
  135. package/dist/theme/components/toggle-button.js +93 -2
  136. package/dist/theme/components/year-calendar.js +14 -13
  137. package/dist/theme/theme-primitives.js +2 -2
  138. package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
  139. package/dist/utils/dayjs.js +9 -146
  140. package/package.json +1 -1
  141. package/dist/Add-COc9VdNg.js +0 -6
  142. package/dist/ArrowUpward-D88i2k4q.js +0 -6
  143. package/dist/Box-9oeZgA1U.js +0 -46
  144. package/dist/Button-DgIFcM44.js +0 -534
  145. package/dist/ButtonBase-DxKtpFYs.js +0 -747
  146. package/dist/Checkbox-BoZu9z2l.js +0 -152
  147. package/dist/ChevronRight-BxsM4W78.js +0 -6
  148. package/dist/Close-o4HFfK0I.js +0 -6
  149. package/dist/Collapse-zgIFP5Sj.js +0 -266
  150. package/dist/ContentCopy-5unyTYXy.js +0 -6
  151. package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
  152. package/dist/DialogContent-CAry6lVf.js +0 -450
  153. package/dist/Download-DtvoRwpl.js +0 -6
  154. package/dist/ExpandMore-Ba5bg6s-.js +0 -6
  155. package/dist/Favorite-B_GsElm0.js +0 -6
  156. package/dist/FormControl-BxmM9UP6.js +0 -221
  157. package/dist/FormControlLabel-DzgppcC_.js +0 -173
  158. package/dist/Grow-zRRuwUl-.js +0 -121
  159. package/dist/InfoOutlined-VC7X46pc.js +0 -6
  160. package/dist/List-CnGIAXAS.js +0 -103
  161. package/dist/ListContext-B1HQt3OD.js +0 -6
  162. package/dist/Menu-C4Zabc9U.js +0 -504
  163. package/dist/MenuItem-rXJfQzDC.js +0 -223
  164. package/dist/MenuList-DDV8J-yd.js +0 -407
  165. package/dist/Modal-jAiibALV.js +0 -707
  166. package/dist/Paper-ixxCeml9.js +0 -115
  167. package/dist/Popper-CVYyMS3c.js +0 -1350
  168. package/dist/Portal-AnyvFRC4.js +0 -53
  169. package/dist/RtlProvider-B7uVJXUY.js +0 -19
  170. package/dist/Skeleton-iZFynl7z.js +0 -220
  171. package/dist/Stack-UMc4dV4G.js +0 -158
  172. package/dist/SwitchBase-D7zqrstO.js +0 -198
  173. package/dist/Tooltip-DbCd6rgF.js +0 -447
  174. package/dist/Typography-yXjc7kVP.js +0 -168
  175. package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
  176. package/dist/appendOwnerState-CELpvdMz.js +0 -17
  177. package/dist/assets/stripe-input.css +0 -1
  178. package/dist/autocomplete-B_4y84Ba.js +0 -43
  179. package/dist/avatar-BHuZu3DN.js +0 -10
  180. package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
  181. package/dist/capitalize-CccCFNpQ.js +0 -5
  182. package/dist/checkbox-BKMZEVU5.js +0 -88
  183. package/dist/checkboxClasses-CEsqS4sc.js +0 -18
  184. package/dist/chunk-C_CI6nMA.js +0 -13
  185. package/dist/clsx-DGZSe4Nt.js +0 -16
  186. package/dist/colorManipulator-DmUjcif3.js +0 -129
  187. package/dist/contains-WOhYaq1E.js +0 -16
  188. package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
  189. package/dist/createSvgIcon-B0SZlJF1.js +0 -155
  190. package/dist/createTheme-xB2Em0Na.js +0 -1869
  191. package/dist/defaultTheme-BaGcIzCh.js +0 -210
  192. package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
  193. package/dist/exactProp-C_IsucXf.js +0 -13
  194. package/dist/field-label-styles-BOyhp6gw.js +0 -50
  195. package/dist/formLabelClasses-B0Fa-86T.js +0 -18
  196. package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
  197. package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
  198. package/dist/iconButtonClasses-CkciZuIe.js +0 -27
  199. package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
  200. package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
  201. package/dist/integerPropType-Disnft4a.js +0 -27
  202. package/dist/isEventHandler-8dPdzK9U.js +0 -7
  203. package/dist/isFocusVisible-Y7157FQS.js +0 -35
  204. package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
  205. package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
  206. package/dist/memoTheme-qFyKAk7y.js +0 -15
  207. package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
  208. package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
  209. package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
  210. package/dist/outlinedInputClasses-DECY98u0.js +0 -17
  211. package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
  212. package/dist/prop-types-BzYPyWN7.js +0 -516
  213. package/dist/resolveProps-7jIA45vn.js +0 -30
  214. package/dist/s-accordion-B8nlrdFc.js +0 -487
  215. package/dist/s-carousel-Dnjke4JQ.js +0 -1353
  216. package/dist/s-chat-input-DCS0mJE4.js +0 -419
  217. package/dist/s-chat-message-9oollJJq.js +0 -315
  218. package/dist/s-chips-WqGdqHW9.js +0 -176
  219. package/dist/s-code-block-DzGoGg5e.js +0 -658
  220. package/dist/s-comment-message-C6kfgRjv.js +0 -191
  221. package/dist/s-data-table-B1TGVupB.js +0 -805
  222. package/dist/s-date-picker-BpX4HmBp.js +0 -656
  223. package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
  224. package/dist/s-dialog-BLiyjLkx.js +0 -123
  225. package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
  226. package/dist/s-image-viewer-DNIEYdtL.js +0 -269
  227. package/dist/s-language-switcher-D-1nywT3.js +0 -251
  228. package/dist/s-link-CAMTGfd9.js +0 -234
  229. package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
  230. package/dist/s-nav-items-BUp7DddG.js +0 -327
  231. package/dist/s-no-ssr-D8tPdDfh.js +0 -25
  232. package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
  233. package/dist/s-quantity-input-mYCixlJc.js +0 -246
  234. package/dist/s-review-DSXXtWlL.js +0 -272
  235. package/dist/s-select-dwY2DYa9.js +0 -204
  236. package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
  237. package/dist/s-switch-B8bZAzLh.js +0 -307
  238. package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
  239. package/dist/s-text-field-BM4qk0mf.js +0 -51
  240. package/dist/s-theme-switch-BLMz1_m2.js +0 -60
  241. package/dist/s-tip-ty41ePQm.js +0 -62
  242. package/dist/selectClasses-DoUlWfzV.js +0 -22
  243. package/dist/styled-Bog8QCl3.js +0 -163
  244. package/dist/svgIconClasses-C8D4AsMj.js +0 -20
  245. package/dist/switchClasses-eiq1bkQN.js +0 -23
  246. package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
  247. package/dist/toggle-button-Cxi5CfXC.js +0 -104
  248. package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
  249. package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
  250. package/dist/typographyClasses-BLM3NmYd.js +0 -31
  251. package/dist/useControlled-BeB0W_Ui.js +0 -5
  252. package/dist/useControlled-C4QJnpiR.js +0 -29
  253. package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
  254. package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
  255. package/dist/useEventCallback-CVqMfiG_.js +0 -14
  256. package/dist/useForkRef-CKneCEtr.js +0 -29
  257. package/dist/useFormControl-iWLrn7Ek.js +0 -18
  258. package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
  259. package/dist/useSlot-iIu8ek6E.js +0 -83
  260. package/dist/useTheme-BIWMbX3i.js +0 -9
  261. package/dist/useThemeProps-BI9yq95N.js +0 -19
  262. package/dist/useThemeProps-Cr28OQu3.js +0 -13
  263. package/dist/utils-oJyTAkZY.js +0 -214
  264. package/dist/warning-CNkSZkq6.js +0 -98
  265. package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
  266. /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
  267. /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
  268. /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
@@ -1,2 +1,189 @@
1
- import { t as e } from "../s-comment-message-C6kfgRjv.js";
2
- export { e as SCommentMessage, e as default };
1
+ import { i as e } from "../utils-CMeAWSRO.js";
2
+ import { toSxArray as t } from "../utils/sx.js";
3
+ import { SSkeleton as n } from "../s-skeleton/s-skeleton.js";
4
+ import { SAvatar as r } from "../s-avatar/s-avatar.js";
5
+ import i, { useEffect as a, useId as o, useState as s } from "react";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import { ExpandLess as ee, ExpandMore as te, Favorite as ne, FavoriteBorder as u, Reply as d } from "@mui/icons-material";
8
+ import { Box as f, Button as p, Collapse as m, IconButton as h, Stack as g, Typography as _, styled as v, useThemeProps as y } from "@mui/material";
9
+ //#region lib/s-comment-message/s-comment-message.tsx
10
+ var b = v(f, {
11
+ name: "SCommentMessage",
12
+ slot: "Root"
13
+ })({}), x = i.forwardRef(function(i, v) {
14
+ let S = y({
15
+ props: i,
16
+ name: "SCommentMessage"
17
+ }), { commentId: C, userName: w, userAvatar: T, commentContent: E, datetime: D, likes: O = 0, isLiked: k = !1, replies: A = [], totalReplies: j, onLike: M, onReply: N, onToggleReplies: P, showReplies: F = !0, avatarSize: I = 48, level: L = 0, maxLevel: R = 3, loading: re = !1, children: z, sx: B, ...V } = S, H = o(), U = o(), W = C ?? H, [G, K] = s(O), [q, J] = s(k), [Y, ie] = s(!1), ae = () => {
18
+ q ? (K((e) => Math.max(0, e - 1)), J(!1)) : (K((e) => e + 1), J(!0)), M && M(W);
19
+ }, oe = () => {
20
+ N && N(W);
21
+ }, se = () => {
22
+ ie((e) => !e), P && P(W);
23
+ }, ce = e(D), X = j ?? A.length, Z = X > 0, Q = Math.min(L, R) * 2, $ = {
24
+ ...S,
25
+ commentId: W,
26
+ localIsLiked: q,
27
+ showRepliesList: Y
28
+ };
29
+ return a(() => {
30
+ K(O);
31
+ }, [O]), a(() => {
32
+ J(k);
33
+ }, [k]), re ? /* @__PURE__ */ c(b, {
34
+ ...V,
35
+ ownerState: $,
36
+ ref: v,
37
+ sx: [{
38
+ pl: Q,
39
+ py: 1
40
+ }, ...t(B)],
41
+ children: /* @__PURE__ */ l(g, {
42
+ direction: "row",
43
+ spacing: 2,
44
+ sx: { alignItems: "flex-start" },
45
+ children: [/* @__PURE__ */ c(n, {
46
+ variant: "circular",
47
+ width: I,
48
+ height: I
49
+ }), /* @__PURE__ */ l(f, {
50
+ sx: { flex: 1 },
51
+ children: [
52
+ /* @__PURE__ */ l(g, {
53
+ direction: "row",
54
+ spacing: 2,
55
+ sx: {
56
+ alignItems: "center",
57
+ mb: 1
58
+ },
59
+ children: [/* @__PURE__ */ c(n, {
60
+ width: 120,
61
+ height: 20
62
+ }), /* @__PURE__ */ c(n, {
63
+ width: 80,
64
+ height: 16
65
+ })]
66
+ }),
67
+ /* @__PURE__ */ c(n, {
68
+ height: 16,
69
+ sx: { mb: .5 }
70
+ }),
71
+ /* @__PURE__ */ c(n, {
72
+ width: "85%",
73
+ height: 16,
74
+ sx: { mb: .5 }
75
+ }),
76
+ /* @__PURE__ */ c(n, {
77
+ width: "70%",
78
+ height: 16,
79
+ sx: { mb: 2 }
80
+ }),
81
+ /* @__PURE__ */ l(g, {
82
+ direction: "row",
83
+ spacing: 1,
84
+ sx: { alignItems: "center" },
85
+ children: [
86
+ /* @__PURE__ */ c(n, { preset: "icon-button" }),
87
+ /* @__PURE__ */ c(n, {
88
+ width: 20,
89
+ height: 16
90
+ }),
91
+ /* @__PURE__ */ c(n, { width: 60 }),
92
+ /* @__PURE__ */ c(n, { width: 80 })
93
+ ]
94
+ })
95
+ ]
96
+ })]
97
+ })
98
+ }) : /* @__PURE__ */ l(b, {
99
+ ...V,
100
+ ownerState: $,
101
+ ref: v,
102
+ sx: [{
103
+ pl: Q,
104
+ py: 1
105
+ }, ...t(B)],
106
+ children: [/* @__PURE__ */ l(g, {
107
+ direction: "row",
108
+ spacing: 2,
109
+ sx: { alignItems: "flex-start" },
110
+ children: [/* @__PURE__ */ c(r, {
111
+ src: T,
112
+ name: w,
113
+ size: I
114
+ }), /* @__PURE__ */ l(f, {
115
+ sx: { flex: 1 },
116
+ children: [
117
+ /* @__PURE__ */ c(_, {
118
+ variant: "subtitle1",
119
+ children: w
120
+ }),
121
+ /* @__PURE__ */ c(_, {
122
+ variant: "body1",
123
+ children: E
124
+ }),
125
+ /* @__PURE__ */ c(_, {
126
+ variant: "caption",
127
+ children: ce
128
+ }),
129
+ /* @__PURE__ */ l(g, {
130
+ direction: "row",
131
+ spacing: 1,
132
+ sx: { alignItems: "center" },
133
+ children: [
134
+ /* @__PURE__ */ c(h, {
135
+ "aria-label": q ? "Unlike comment" : "Like comment",
136
+ "aria-pressed": q,
137
+ onClick: ae,
138
+ sx: { color: q ? "error.main" : "text.secondary" },
139
+ children: c(q ? ne : u, {})
140
+ }),
141
+ G > 0 && /* @__PURE__ */ c(_, {
142
+ variant: "caption",
143
+ children: G
144
+ }),
145
+ /* @__PURE__ */ c(p, {
146
+ startIcon: /* @__PURE__ */ c(d, {}),
147
+ onClick: oe,
148
+ variant: "text",
149
+ children: "Reply"
150
+ }),
151
+ Z && F && /* @__PURE__ */ l(p, {
152
+ "aria-controls": U,
153
+ "aria-expanded": Y,
154
+ startIcon: c(Y ? ee : te, {}),
155
+ onClick: se,
156
+ variant: "text",
157
+ children: [
158
+ X,
159
+ " ",
160
+ X === 1 ? "reply" : "replies"
161
+ ]
162
+ })
163
+ ]
164
+ }),
165
+ z && /* @__PURE__ */ c(f, { children: z })
166
+ ]
167
+ })]
168
+ }), Z && F && /* @__PURE__ */ c(m, {
169
+ id: U,
170
+ in: Y,
171
+ children: /* @__PURE__ */ c(f, {
172
+ sx: { mt: 2 },
173
+ children: A.map((e, t) => /* @__PURE__ */ c(x, {
174
+ ...e,
175
+ level: L + 1,
176
+ maxLevel: R,
177
+ onLike: M ?? e.onLike,
178
+ onReply: N ?? e.onReply,
179
+ onToggleReplies: P ?? e.onToggleReplies,
180
+ showReplies: F,
181
+ avatarSize: Math.max(32, I - 8)
182
+ }, e.commentId ?? `reply-${t}`))
183
+ })
184
+ })]
185
+ });
186
+ });
187
+ x.displayName = "SCommentMessage";
188
+ //#endregion
189
+ export { x as SCommentMessage, x as default };
@@ -1,26 +1,26 @@
1
1
  import { toSxArray as e } from "../utils/sx.js";
2
- import { t } from "../appendOwnerState-CELpvdMz.js";
3
- import { n, t as r } from "../ContentCopy-5unyTYXy.js";
4
- import * as i from "react";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { Box as s, IconButton as c, Paper as l, Typography as u, styled as d, useThemeProps as f } from "@mui/material";
2
+ import * as t from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { Check as i, ContentCopy as a } from "@mui/icons-material";
5
+ import { Box as o, IconButton as s, Paper as c, Typography as l, styled as u, useThemeProps as d } from "@mui/material";
6
+ import f from "@mui/utils/appendOwnerState";
7
7
  //#region lib/s-copyable-text/s-copyable-text.tsx
8
- var p = d(l, {
8
+ var p = u(c, {
9
9
  name: "SCopyableText",
10
10
  slot: "Root"
11
11
  })({});
12
12
  function m(e, t) {
13
13
  return typeof e == "function" ? e(t) : e;
14
14
  }
15
- var h = i.forwardRef(function(l, d) {
16
- let h = f({
17
- props: l,
15
+ var h = t.forwardRef(function(c, u) {
16
+ let h = d({
17
+ props: c,
18
18
  name: "SCopyableText"
19
- }), { children: g, copiedText: _ = "Copied", copyText: v = "Copy text", onCopyError: y, onCopySuccess: b, slotProps: x, slots: S, sx: C, ...w } = h, [T, E] = i.useState(!1), D = i.useRef(void 0), O = {
19
+ }), { children: g, copiedText: _ = "Copied", copyText: v = "Copy text", onCopyError: y, onCopySuccess: b, slotProps: x, slots: S, sx: C, ...w } = h, [T, E] = t.useState(!1), D = t.useRef(void 0), O = {
20
20
  ...h,
21
21
  copied: T
22
- }, k = S?.content ?? s, A = S?.text ?? u, j = S?.button ?? c, M = m(x?.content, O), N = m(x?.text, O), P = m(x?.button, O), F = t(S?.content, M ?? {}, O), I = t(S?.text, N ?? {}, O), { onClick: L, sx: R, ...z } = t(S?.button, P ?? {}, O), { sx: B, ...V } = F, { sx: H, ...U } = I;
23
- i.useEffect(() => () => clearTimeout(D.current), []);
22
+ }, k = S?.content ?? o, A = S?.text ?? l, j = S?.button ?? s, M = m(x?.content, O), N = m(x?.text, O), P = m(x?.button, O), F = f(S?.content, M ?? {}, O), I = f(S?.text, N ?? {}, O), { onClick: L, sx: R, ...z } = f(S?.button, P ?? {}, O), { sx: B, ...V } = F, { sx: H, ...U } = I;
23
+ t.useEffect(() => () => clearTimeout(D.current), []);
24
24
  let W = async (e) => {
25
25
  if (L?.(e), !e.defaultPrevented) try {
26
26
  await navigator.clipboard.writeText(g), E(!0), clearTimeout(D.current), D.current = setTimeout(() => E(!1), 2e3), b?.(g);
@@ -28,19 +28,19 @@ var h = i.forwardRef(function(l, d) {
28
28
  y?.(e);
29
29
  }
30
30
  };
31
- return /* @__PURE__ */ a(p, {
31
+ return /* @__PURE__ */ n(p, {
32
32
  ...w,
33
33
  ownerState: O,
34
- ref: d,
34
+ ref: u,
35
35
  sx: [{
36
36
  border: "1px dashed",
37
37
  borderColor: "divider",
38
38
  p: 2
39
39
  }, ...e(C)],
40
- children: /* @__PURE__ */ o(k, {
40
+ children: /* @__PURE__ */ r(k, {
41
41
  ...V,
42
42
  sx: [{ position: "relative" }, ...e(B)],
43
- children: [/* @__PURE__ */ a(j, {
43
+ children: [/* @__PURE__ */ n(j, {
44
44
  ...z,
45
45
  "aria-label": T ? _ : v,
46
46
  onClick: W,
@@ -52,8 +52,8 @@ var h = i.forwardRef(function(l, d) {
52
52
  transform: "translateY(-50%)",
53
53
  zIndex: 1
54
54
  }, ...e(R)],
55
- children: a(T ? n : r, {})
56
- }), /* @__PURE__ */ a(A, {
55
+ children: n(T ? i : a, {})
56
+ }), /* @__PURE__ */ n(A, {
57
57
  variant: "body1",
58
58
  ...U,
59
59
  sx: [{
@@ -1,10 +1,10 @@
1
1
  import { toSxArray as e } from "../utils/sx.js";
2
- import { t } from "../appendOwnerState-CELpvdMz.js";
3
- import * as n from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { Box as a, Fade as o, Slide as s, Typography as c, styled as l, useThemeProps as u } from "@mui/material";
2
+ import * as t from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { Box as i, Fade as a, Slide as o, Typography as s, styled as c, useThemeProps as l } from "@mui/material";
5
+ import u from "@mui/utils/appendOwnerState";
6
6
  //#region lib/s-countdown/s-count-box.tsx
7
- var d = l(a, {
7
+ var d = c(i, {
8
8
  name: "SCountBox",
9
9
  slot: "Root"
10
10
  })({});
@@ -41,15 +41,15 @@ function p(e) {
41
41
  }
42
42
  };
43
43
  }
44
- var m = n.forwardRef(function(n, l) {
45
- let m = u({
46
- props: n,
44
+ var m = t.forwardRef(function(t, c) {
45
+ let m = l({
46
+ props: t,
47
47
  name: "SCountBox"
48
48
  }), { animation: h = "none", color: g = "inherit", digit: _, digitFormat: v = "default", label: y, separator: b, size: x = "medium", slotProps: S, slots: C, sx: w, ...T } = m, E = {
49
49
  ...m,
50
50
  color: g,
51
51
  size: x
52
- }, D = C?.content ?? a, O = C?.digit ?? c, k = C?.label ?? c, A = C?.separator ?? c, j = f(S?.content, E), M = f(S?.digit, E), N = f(S?.label, E), P = f(S?.separator, E), F = t(C?.content, j ?? {}, E), I = t(C?.digit, M ?? {}, E), L = t(C?.label, N ?? {}, E), R = t(C?.separator, P ?? {}, E), { sx: z, ...B } = F, { sx: V, ...H } = I, { sx: U, ...W } = L, { sx: G, ...K } = R, q = p(x), J = v === "padded" ? _.toString().padStart(2, "0") : _.toString(), Y = /* @__PURE__ */ r(O, {
52
+ }, D = C?.content ?? i, O = C?.digit ?? s, k = C?.label ?? s, A = C?.separator ?? s, j = f(S?.content, E), M = f(S?.digit, E), N = f(S?.label, E), P = f(S?.separator, E), F = u(C?.content, j ?? {}, E), I = u(C?.digit, M ?? {}, E), L = u(C?.label, N ?? {}, E), R = u(C?.separator, P ?? {}, E), { sx: z, ...B } = F, { sx: V, ...H } = I, { sx: U, ...W } = L, { sx: G, ...K } = R, q = p(x), J = v === "padded" ? _.toString().padStart(2, "0") : _.toString(), Y = /* @__PURE__ */ n(O, {
53
53
  component: "span",
54
54
  variant: "h3",
55
55
  ...H,
@@ -60,25 +60,25 @@ var m = n.forwardRef(function(n, l) {
60
60
  ...q.digit
61
61
  }, ...e(V)],
62
62
  children: J
63
- }), X = h === "fade" ? /* @__PURE__ */ r(o, {
63
+ }), X = h === "fade" ? /* @__PURE__ */ n(a, {
64
64
  in: !0,
65
65
  timeout: 300,
66
- children: /* @__PURE__ */ r(a, { children: Y })
67
- }, J) : h === "slide" ? /* @__PURE__ */ r(s, {
66
+ children: /* @__PURE__ */ n(i, { children: Y })
67
+ }, J) : h === "slide" ? /* @__PURE__ */ n(o, {
68
68
  in: !0,
69
69
  direction: "up",
70
70
  timeout: 300,
71
- children: /* @__PURE__ */ r(a, { children: Y })
71
+ children: /* @__PURE__ */ n(i, { children: Y })
72
72
  }, J) : Y;
73
- return /* @__PURE__ */ i(d, {
73
+ return /* @__PURE__ */ r(d, {
74
74
  ...T,
75
75
  ownerState: E,
76
- ref: l,
76
+ ref: c,
77
77
  sx: [{
78
78
  alignItems: "center",
79
79
  display: "flex"
80
80
  }, ...e(w)],
81
- children: [/* @__PURE__ */ i(D, {
81
+ children: [/* @__PURE__ */ r(D, {
82
82
  ...B,
83
83
  sx: [{
84
84
  alignItems: "center",
@@ -87,7 +87,7 @@ var m = n.forwardRef(function(n, l) {
87
87
  minWidth: "fit-content",
88
88
  textAlign: "center"
89
89
  }, ...e(z)],
90
- children: [X, /* @__PURE__ */ r(k, {
90
+ children: [X, /* @__PURE__ */ n(k, {
91
91
  component: "span",
92
92
  ...W,
93
93
  sx: [{
@@ -100,7 +100,7 @@ var m = n.forwardRef(function(n, l) {
100
100
  }, ...e(U)],
101
101
  children: y
102
102
  })]
103
- }), b == null ? null : /* @__PURE__ */ r(A, {
103
+ }), b == null ? null : /* @__PURE__ */ n(A, {
104
104
  variant: "h3",
105
105
  ...K,
106
106
  sx: [{
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-data-table-B1TGVupB.js";
1
+ import { SDataTable as e } from "./s-data-table.js";
2
2
  export { e as SDataTable, e as default };
@@ -1,2 +1,213 @@
1
- import { t as e } from "../s-data-table-B1TGVupB.js";
2
- export { e as SDataTable, e as default };
1
+ import { toSxArray as e } from "../utils/sx.js";
2
+ import { SEmpty as t } from "../s-empty/s-empty.js";
3
+ import { styled as n, useThemeProps as r } from "@mui/material/styles";
4
+ import { buttonBaseClasses as i } from "@mui/material/ButtonBase";
5
+ import * as a from "react";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import c from "@mui/material/Checkbox";
8
+ import l from "@mui/material/Box";
9
+ import u from "@mui/icons-material/ArrowDownward";
10
+ import d from "@mui/icons-material/SwapVert";
11
+ import f from "@mui/material/Table";
12
+ import p, { tableBodyClasses as m } from "@mui/material/TableBody";
13
+ import h, { tableCellClasses as g } from "@mui/material/TableCell";
14
+ import _ from "@mui/material/TableHead";
15
+ import v, { tableRowClasses as y } from "@mui/material/TableRow";
16
+ import b, { tableSortLabelClasses as x } from "@mui/material/TableSortLabel";
17
+ //#region lib/s-data-table/s-data-table.tsx
18
+ var S = {
19
+ width: "40px",
20
+ minWidth: "40px",
21
+ maxWidth: "40px",
22
+ boxSizing: "content-box",
23
+ p: 2
24
+ }, C = {
25
+ width: "40px",
26
+ display: "flex",
27
+ alignItems: "center",
28
+ justifyContent: "center"
29
+ }, w = {
30
+ width: "20px",
31
+ height: "20px",
32
+ m: 0,
33
+ p: 0
34
+ }, T = { height: "48px" };
35
+ function E(e) {
36
+ return e.sortKey ?? e.field ?? e.name;
37
+ }
38
+ function D(e, t, n) {
39
+ return e.formatter ? e.formatter(t, n) : e.field ? t[e.field] : null;
40
+ }
41
+ var O = n(f, {
42
+ name: "SDataTable",
43
+ slot: "Root"
44
+ })(({ theme: e }) => ({
45
+ border: "1px solid",
46
+ borderCollapse: "separate",
47
+ borderColor: (e.vars ?? e).palette.divider,
48
+ borderRadius: e.shape.borderRadius,
49
+ borderSpacing: 0,
50
+ boxSizing: "border-box",
51
+ overflow: "hidden",
52
+ [`& .${m.root} > .${y.root}:last-child > .${g.root}`]: { borderBottom: 0 }
53
+ })), k = Object.assign(a.forwardRef((n, a) => {
54
+ let f = r({
55
+ props: n,
56
+ name: "SDataTable"
57
+ }), { columns: m, hideHead: g, hover: y, onRowClick: k, onRowKeyDown: A, onDeselectAll: j, onDeselectOne: M, onSelectOne: N, onSelectAll: P, onSort: F, rows: I, selectable: L, selected: R, sortBy: z, sortDirection: B, sx: V, uniqueRowId: H, ...U } = f, W = {
58
+ ...f,
59
+ hideHead: g,
60
+ hover: y,
61
+ selectable: L
62
+ }, G = /* @__PURE__ */ new Set();
63
+ I.forEach((e) => {
64
+ let t = e.id ?? H?.(e);
65
+ t != null && G.add(t);
66
+ });
67
+ let K = Array.from(G).filter((e) => R?.has(e)).length, q = K > 0 && K < G.size, J = G.size > 0 && K === G.size, Y = (e, t) => `${String(e.field ?? e.name ?? "column")}-${t}`, X = (e, t) => {
68
+ let n = E(t);
69
+ F?.(e, n, z === n && B === "asc" ? "desc" : "asc");
70
+ };
71
+ return /* @__PURE__ */ s(O, {
72
+ ...U,
73
+ ownerState: W,
74
+ ref: a,
75
+ sx: [{ mt: 1 }, ...e(V)],
76
+ children: [/* @__PURE__ */ o(_, {
77
+ sx: { ...g && {
78
+ visibility: "collapse",
79
+ "--TableCell-borderWidth": 0
80
+ } },
81
+ children: /* @__PURE__ */ s(v, {
82
+ sx: T,
83
+ children: [L ? /* @__PURE__ */ o(h, {
84
+ padding: "checkbox",
85
+ sx: {
86
+ ...S,
87
+ bgcolor: "action.hover",
88
+ backgroundClip: "padding-box"
89
+ },
90
+ children: /* @__PURE__ */ o(l, {
91
+ sx: C,
92
+ children: /* @__PURE__ */ o(c, {
93
+ checked: J,
94
+ indeterminate: q,
95
+ slotProps: { input: { "aria-label": "Select all rows" } },
96
+ sx: w,
97
+ onChange: (e) => {
98
+ J ? j?.(e) : P?.(e);
99
+ }
100
+ })
101
+ })
102
+ }) : null, m.map((e, t) => {
103
+ let n = e.sortable && z === E(e), r = n ? B === "asc" ? "ascending" : "descending" : void 0, a = e.hideName ? null : e.name;
104
+ return /* @__PURE__ */ o(h, {
105
+ "aria-sort": r,
106
+ sortDirection: n ? B : !1,
107
+ sx: {
108
+ width: e.width,
109
+ minWidth: e.width,
110
+ maxWidth: e.width,
111
+ ...e.align && { textAlign: e.align },
112
+ bgcolor: "action.hover",
113
+ backgroundClip: "padding-box"
114
+ },
115
+ children: e.sortable ? /* @__PURE__ */ o(b, {
116
+ active: !!n,
117
+ direction: n ? B : "asc",
118
+ IconComponent: n ? u : d,
119
+ "aria-label": e.hideName ? `Sort by ${e.name}` : void 0,
120
+ onClick: (t) => X(t, e),
121
+ sx: {
122
+ display: "flex",
123
+ justifyContent: "space-between",
124
+ gap: 1,
125
+ width: "100%",
126
+ color: n ? "primary.main" : "inherit",
127
+ "&.Mui-active": { color: "primary.main" },
128
+ [`&.${i.focusVisible}`]: {
129
+ borderRadius: .5,
130
+ outline: "2px solid",
131
+ outlineColor: "primary.main",
132
+ outlineOffset: 2
133
+ },
134
+ [`& .${x.icon}`]: {
135
+ color: "text.disabled",
136
+ fontSize: "1.25rem",
137
+ marginLeft: "auto",
138
+ marginRight: 0,
139
+ opacity: 1
140
+ },
141
+ [`&:hover .${x.icon}`]: {
142
+ color: "text.secondary",
143
+ opacity: 1
144
+ },
145
+ [`&.${x.active} .${x.icon}`]: {
146
+ color: "primary.main",
147
+ opacity: 1
148
+ },
149
+ "@media (prefers-reduced-motion: reduce)": { [`& .${x.icon}`]: { transition: "none" } }
150
+ },
151
+ children: a
152
+ }) : a
153
+ }, Y(e, t));
154
+ })]
155
+ })
156
+ }), /* @__PURE__ */ o(p, { children: I.length ? I.map((e, t) => {
157
+ let n = e.id ?? H?.(e), r = n != null, i = r ? R?.has(n) : !1;
158
+ return /* @__PURE__ */ s(v, {
159
+ hover: y,
160
+ selected: i,
161
+ onClick: k ? (t) => {
162
+ k(t, e);
163
+ } : void 0,
164
+ onKeyDown: A || k ? (t) => {
165
+ A?.(t, e), !(!k || t.defaultPrevented || t.target !== t.currentTarget) && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.currentTarget.click());
166
+ } : void 0,
167
+ ...k && {
168
+ "aria-keyshortcuts": "Enter Space",
169
+ tabIndex: 0
170
+ },
171
+ sx: {
172
+ ...T,
173
+ ...k && {
174
+ cursor: "pointer",
175
+ "&:focus-visible": {
176
+ outline: "2px solid",
177
+ outlineColor: "primary.main",
178
+ outlineOffset: -2
179
+ }
180
+ }
181
+ },
182
+ children: [L ? /* @__PURE__ */ o(h, {
183
+ padding: "checkbox",
184
+ sx: S,
185
+ children: /* @__PURE__ */ o(l, {
186
+ sx: C,
187
+ children: /* @__PURE__ */ o(c, {
188
+ checked: r ? i : !1,
189
+ slotProps: { input: { "aria-label": r ? `Select row ${String(n)}` : "Select row" } },
190
+ sx: w,
191
+ onChange: (t) => {
192
+ i ? M?.(t, e) : N?.(t, e);
193
+ },
194
+ onClick: (e) => {
195
+ k && e.stopPropagation();
196
+ }
197
+ })
198
+ })
199
+ }) : null, m.map((n, r) => /* @__PURE__ */ o(h, {
200
+ sx: { ...n.align && { textAlign: n.align } },
201
+ children: D(n, e, t)
202
+ }, Y(n, r)))]
203
+ }, n ?? t);
204
+ }) : /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(h, {
205
+ align: "center",
206
+ colSpan: m.length + +!!L,
207
+ children: /* @__PURE__ */ o(t, {})
208
+ }) }) })]
209
+ });
210
+ }), { displayName: "SDataTable" });
211
+ k.displayName = "SDataTable";
212
+ //#endregion
213
+ export { k as SDataTable, k as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-date-picker-BpX4HmBp.js";
1
+ import { SDatePicker as e } from "./s-date-picker.js";
2
2
  export { e as SDatePicker, e as default };
@@ -1,2 +1,106 @@
1
- import { t as e } from "../s-date-picker-BpX4HmBp.js";
2
- export { e as SDatePicker, e as default };
1
+ import { tint as e } from "../theme/utils.js";
2
+ import { staticFieldLabelStyles as t } from "../theme/components/field-label-styles.js";
3
+ import { PickerActionBar as n } from "./picker-action-bar.js";
4
+ import { forwardRef as r } from "react";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ import { styled as a, useTheme as o, useThemeProps as s } from "@mui/material";
7
+ import { mergeSlotProps as c } from "@mui/material/utils";
8
+ import { inputBaseClasses as l } from "@mui/material/InputBase";
9
+ import { DatePicker as u } from "@mui/x-date-pickers/DatePicker";
10
+ //#region lib/s-date-picker/s-date-picker.tsx
11
+ var d = [
12
+ "year",
13
+ "month",
14
+ "day"
15
+ ], f = a(u, {
16
+ name: "SDatePicker",
17
+ slot: "Root",
18
+ shouldForwardProp: (e) => e !== "ownerState"
19
+ })({}), p = r((r, a) => {
20
+ let u = s({
21
+ props: r,
22
+ name: "SDatePicker"
23
+ }), { label: p, required: m = !1, error: h = !1, helperText: g, id: _, slots: v, slotProps: y, views: b = d, ...x } = u, S = o(), C = {
24
+ ...u,
25
+ error: h,
26
+ required: m
27
+ };
28
+ return /* @__PURE__ */ i(f, {
29
+ ...x,
30
+ ref: a,
31
+ label: p,
32
+ ownerState: C,
33
+ views: b,
34
+ slots: {
35
+ actionBar: n,
36
+ ...v
37
+ },
38
+ slotProps: {
39
+ ...y,
40
+ openPickerButton: c(y?.openPickerButton, {
41
+ edge: "end",
42
+ size: "small"
43
+ }),
44
+ popper: c(y?.popper, { sx: { "& .MuiPaper-root": {
45
+ border: "1px solid",
46
+ borderColor: (S.vars ?? S).palette.divider,
47
+ borderRadius: (S.vars ?? S).shape.borderRadius,
48
+ boxShadow: "none",
49
+ backgroundImage: "none"
50
+ } } }),
51
+ textField: c(y?.textField, {
52
+ fullWidth: !0,
53
+ id: _,
54
+ error: h,
55
+ helperText: g,
56
+ required: m,
57
+ sx: {
58
+ ...t,
59
+ "& .MuiPickersOutlinedInput-root": {
60
+ height: S.spacing(5),
61
+ minHeight: S.spacing(5),
62
+ px: 1.5,
63
+ py: 1,
64
+ color: (S.vars ?? S).palette.text.primary,
65
+ borderRadius: (S.vars ?? S).shape.borderRadius,
66
+ border: `1px solid ${(S.vars ?? S).palette.divider}`,
67
+ backgroundColor: (S.vars ?? S).palette.background.default,
68
+ transition: "border 120ms ease-in",
69
+ "&:hover": { borderColor: (S.vars ?? S).palette.grey[500] },
70
+ [`&:focus-within:not(.${l.error}):not(.${l.disabled}), &.${l.focused}:not(.${l.error}):not(.${l.disabled})`]: {
71
+ outline: `3px solid ${e((S.vars ?? S).palette.primary[500], 50)}`,
72
+ borderColor: (S.vars ?? S).palette.primary[400]
73
+ },
74
+ [`&.${l.error}:not(.${l.disabled})`]: {
75
+ borderColor: (S.vars ?? S).palette.error.main,
76
+ "&:hover": { borderColor: (S.vars ?? S).palette.error.main }
77
+ },
78
+ [`&.${l.error}:focus-within:not(.${l.disabled}), &.${l.error}.${l.focused}:not(.${l.disabled})`]: {
79
+ outline: `3px solid rgba(${(S.vars ?? S).palette.error.mainChannel} / 0.5)`,
80
+ borderColor: (S.vars ?? S).palette.error.main
81
+ },
82
+ [`&.${l.disabled}, &.${l.disabled} *`]: { color: (S.vars ?? S).palette.text.disabled },
83
+ [`&.${l.disabled}`]: { outline: "none" },
84
+ "&.MuiPickersInputBase-inputSizeSmall": {
85
+ height: S.spacing(4.5),
86
+ minHeight: S.spacing(4.5)
87
+ }
88
+ },
89
+ "& .MuiPickersInputBase-sectionsContainer": {
90
+ alignItems: "center",
91
+ height: "100%",
92
+ p: "0 !important"
93
+ },
94
+ "& .MuiPickersOutlinedInput-notchedOutline": { border: "none !important" },
95
+ "& .MuiPickersInputBase-input::placeholder": {
96
+ opacity: 1,
97
+ color: (S.vars ?? S).palette.text.secondary
98
+ }
99
+ }
100
+ })
101
+ }
102
+ });
103
+ });
104
+ p.displayName = "SDatePicker";
105
+ //#endregion
106
+ export { p as SDatePicker, p as default };