@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,28 +1,29 @@
1
- import { j as p } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useTheme as W, TextField as z } from "@mui/material";
1
+ import { j as c } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useTheme as I, TextField as z } from "@mui/material";
3
3
  import { SForm as L } from "../s-form/s-form.js";
4
- import { _ as O, a as r } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
5
- import * as b from "react";
6
- import { P as e } from "../createTheme-3Wd3hHrj.js";
7
- import { u as g, a as U, b as H, c as Y, r as k, d as Q, P as B, e as X, f as $, g as K, h as Z, i as G, j as J, k as ee, C as oe, l as m, m as F, n as te, v as N, s as R, o as ae, D as re, p as ne } from "../useMobilePicker-C1RZZUWr.js";
8
- import { u as y } from "../warning-BCwEnWrE.js";
9
- import { g as se } from "../colorManipulator-ep5lERxB.js";
10
- import { g as le } from "../generateUtilityClasses-BtVDwGrk.js";
11
- import { s as C } from "../styled-B0Z4EDy9.js";
12
- import { a as ie } from "../DefaultPropsProvider-CaCsvQaq.js";
13
- import { T as ce } from "../Typography-C8jwvSWe.js";
14
- import { r as h, a as V } from "../ButtonBase-DfTfJ_ou.js";
15
- function de(n) {
16
- return se("MuiDatePickerToolbar", n);
4
+ import { _ as P, a as s } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
5
+ import * as f from "react";
6
+ import { P as e } from "../createTheme-f5g1s6ww.js";
7
+ import { u as O, a as U, b as Y, c as Q, r as T, P as q, d as B, e as H, f as $, g as K, h as Z, i as G, j as J, C as X, k as p, l as M, m as ee, v as F, s as R, n as oe, D as te, o as se } from "../useMobilePicker-C4AYe0Ch.js";
8
+ import { u as m } from "../warning-DnPRVtW6.js";
9
+ import { c as ae } from "../clsx-OuTLNxxd.js";
10
+ import { g as ne } from "../colorManipulator-ep5lERxB.js";
11
+ import { g as re } from "../generateUtilityClasses-BtVDwGrk.js";
12
+ import { s as N } from "../styled-B0KflPi-.js";
13
+ import { c as le } from "../DefaultPropsProvider-sk0uWcA6.js";
14
+ import { T as ie } from "../Typography-9Kg27dDw.js";
15
+ import { r as y, a as C } from "../ButtonBase-C_YYB9Ry.js";
16
+ function ce(l) {
17
+ return ne("MuiDatePickerToolbar", l);
17
18
  }
18
- le("MuiDatePickerToolbar", ["root", "title"]);
19
- const ue = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], pe = (n) => ie({
19
+ re("MuiDatePickerToolbar", ["root", "title"]);
20
+ const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue = (l) => le({
20
21
  root: ["root"],
21
22
  title: ["title"]
22
- }, de, n), fe = C(B, {
23
+ }, ce, l), fe = N(q, {
23
24
  name: "MuiDatePickerToolbar",
24
25
  slot: "Root"
25
- })({}), be = C(ce, {
26
+ })({}), pe = N(ie, {
26
27
  name: "MuiDatePickerToolbar",
27
28
  slot: "Title"
28
29
  })({
@@ -34,44 +35,44 @@ const ue = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], pe =
34
35
  margin: "auto 16px auto auto"
35
36
  }
36
37
  }]
37
- }), T = /* @__PURE__ */ b.forwardRef(function(s, t) {
38
- const l = y({
39
- props: s,
38
+ }), g = /* @__PURE__ */ f.forwardRef(function(a, t) {
39
+ const n = m({
40
+ props: a,
40
41
  name: "MuiDatePickerToolbar"
41
42
  }), {
42
43
  toolbarFormat: o,
43
- toolbarPlaceholder: a = "––",
44
+ toolbarPlaceholder: r = "––",
44
45
  className: i,
45
- classes: f
46
- } = l, c = O(l, ue), u = g(), {
47
- value: d,
46
+ classes: d
47
+ } = n, u = P(n, de), b = O(), {
48
+ value: D,
48
49
  views: v,
49
- orientation: S
50
- } = U(), E = H(), q = Y(), M = pe(f), A = b.useMemo(() => {
51
- if (!u.isValid(d))
52
- return a;
53
- const I = k(u, {
50
+ orientation: E
51
+ } = U(), V = Y(), _ = Q(), w = ue(d), A = f.useMemo(() => {
52
+ if (!b.isValid(D))
53
+ return r;
54
+ const W = T(b, {
54
55
  format: o,
55
56
  views: v
56
57
  }, !0);
57
- return u.formatByString(d, I);
58
- }, [d, o, a, u, v]);
59
- return /* @__PURE__ */ p.jsx(fe, r({
58
+ return b.formatByString(D, W);
59
+ }, [D, o, r, b, v]);
60
+ return /* @__PURE__ */ c.jsx(fe, s({
60
61
  ref: t,
61
- toolbarTitle: E.datePickerToolbarTitle,
62
- className: Q(M.root, i)
63
- }, c, {
64
- children: /* @__PURE__ */ p.jsx(be, {
62
+ toolbarTitle: V.datePickerToolbarTitle,
63
+ className: ae(w.root, i)
64
+ }, u, {
65
+ children: /* @__PURE__ */ c.jsx(pe, {
65
66
  variant: "h4",
66
- align: S === "landscape" ? "left" : "center",
67
- ownerState: q,
68
- className: M.title,
67
+ align: E === "landscape" ? "left" : "center",
68
+ ownerState: _,
69
+ className: w.title,
69
70
  children: A
70
71
  })
71
72
  }));
72
73
  });
73
- process.env.NODE_ENV !== "production" && (T.displayName = "DatePickerToolbar");
74
- process.env.NODE_ENV !== "production" && (T.propTypes = {
74
+ process.env.NODE_ENV !== "production" && (g.displayName = "DatePickerToolbar");
75
+ process.env.NODE_ENV !== "production" && (g.propTypes = {
75
76
  // ----------------------------- Warning --------------------------------
76
77
  // | These PropTypes are generated from the TypeScript type definitions |
77
78
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -101,59 +102,56 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
101
102
  */
102
103
  toolbarPlaceholder: e.node
103
104
  });
104
- function _(n, s) {
105
- const t = y({
106
- props: n,
107
- name: s
108
- }), l = X(t), o = b.useMemo(() => {
109
- var a;
110
- return ((a = t.localeText) == null ? void 0 : a.toolbarTitle) == null ? t.localeText : r({}, t.localeText, {
111
- datePickerToolbarTitle: t.localeText.toolbarTitle
112
- });
113
- }, [t.localeText]);
114
- return r({}, t, l, {
105
+ function S(l, a) {
106
+ const t = m({
107
+ props: l,
108
+ name: a
109
+ }), n = B(t), o = f.useMemo(() => t.localeText?.toolbarTitle == null ? t.localeText : s({}, t.localeText, {
110
+ datePickerToolbarTitle: t.localeText.toolbarTitle
111
+ }), [t.localeText]);
112
+ return s({}, t, n, {
115
113
  localeText: o
116
- }, $({
114
+ }, H({
117
115
  views: t.views,
118
116
  openTo: t.openTo,
119
117
  defaultViews: ["year", "day"],
120
118
  defaultOpenTo: "day"
121
119
  }), {
122
- slots: r({
123
- toolbar: T
120
+ slots: s({
121
+ toolbar: g
124
122
  }, t.slots)
125
123
  });
126
124
  }
127
- const me = (n) => {
128
- const s = K(n);
129
- return Z({
130
- manager: s,
131
- props: n
125
+ const be = (l) => {
126
+ const a = $(l);
127
+ return K({
128
+ manager: a,
129
+ props: l
132
130
  });
133
- }, ye = ["slots", "slotProps"], D = /* @__PURE__ */ b.forwardRef(function(s, t) {
134
- const l = y({
135
- props: s,
131
+ }, me = ["slots", "slotProps"], h = /* @__PURE__ */ f.forwardRef(function(a, t) {
132
+ const n = m({
133
+ props: a,
136
134
  name: "MuiDateField"
137
135
  }), {
138
136
  slots: o,
139
- slotProps: a
140
- } = l, i = O(l, ye), f = G({
141
- slotProps: a,
137
+ slotProps: r
138
+ } = n, i = P(n, me), d = Z({
139
+ slotProps: r,
142
140
  ref: t,
143
141
  externalForwardedProps: i
144
- }), c = me(f);
145
- return /* @__PURE__ */ p.jsx(J, {
142
+ }), u = be(d);
143
+ return /* @__PURE__ */ c.jsx(G, {
146
144
  slots: o,
147
- slotProps: a,
145
+ slotProps: r,
148
146
  inputRef: i.inputRef,
149
- children: /* @__PURE__ */ p.jsx(ee, {
150
- fieldResponse: c,
151
- defaultOpenPickerIcon: oe
147
+ children: /* @__PURE__ */ c.jsx(J, {
148
+ fieldResponse: u,
149
+ defaultOpenPickerIcon: X
152
150
  })
153
151
  });
154
152
  });
155
- process.env.NODE_ENV !== "production" && (D.displayName = "DateField");
156
- process.env.NODE_ENV !== "production" && (D.propTypes = {
153
+ process.env.NODE_ENV !== "production" && (h.displayName = "DateField");
154
+ process.env.NODE_ENV !== "production" && (h.propTypes = {
157
155
  // ----------------------------- Warning --------------------------------
158
156
  // | These PropTypes are generated from the TypeScript type definitions |
159
157
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -269,7 +267,7 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
269
267
  /**
270
268
  * Pass a ref to the `input` element.
271
269
  */
272
- inputRef: h,
270
+ inputRef: y,
273
271
  /**
274
272
  * The label content.
275
273
  */
@@ -434,43 +432,39 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
434
432
  */
435
433
  variant: e.oneOf(["filled", "outlined", "standard"])
436
434
  });
437
- const j = /* @__PURE__ */ b.forwardRef(function(s, t) {
438
- var c;
439
- const l = g(), o = _(s, "MuiDesktopDatePicker"), a = r({
440
- day: m,
441
- month: m,
442
- year: m
443
- }, o.viewRenderers), i = r({}, o, {
435
+ const k = /* @__PURE__ */ f.forwardRef(function(a, t) {
436
+ const n = O(), o = S(a, "MuiDesktopDatePicker"), r = s({
437
+ day: p,
438
+ month: p,
439
+ year: p
440
+ }, o.viewRenderers), i = s({}, o, {
444
441
  closeOnSelect: o.closeOnSelect ?? !0,
445
- viewRenderers: a,
446
- format: k(l, o, !1),
442
+ viewRenderers: r,
443
+ format: T(n, o, !1),
447
444
  yearsPerRow: o.yearsPerRow ?? 4,
448
- slots: r({
449
- field: D
445
+ slots: s({
446
+ field: h
450
447
  }, o.slots),
451
- slotProps: r({}, o.slotProps, {
452
- field: (u) => {
453
- var d;
454
- return r({}, V((d = o.slotProps) == null ? void 0 : d.field, u), F(o));
455
- },
456
- toolbar: r({
448
+ slotProps: s({}, o.slotProps, {
449
+ field: (u) => s({}, C(o.slotProps?.field, u), M(o)),
450
+ toolbar: s({
457
451
  hidden: !0
458
- }, (c = o.slotProps) == null ? void 0 : c.toolbar)
452
+ }, o.slotProps?.toolbar)
459
453
  })
460
454
  }), {
461
- renderPicker: f
462
- } = te({
455
+ renderPicker: d
456
+ } = ee({
463
457
  ref: t,
464
458
  props: i,
465
459
  valueManager: R,
466
460
  valueType: "date",
467
- validator: N,
461
+ validator: F,
468
462
  steps: null
469
463
  });
470
- return f();
464
+ return d();
471
465
  });
472
- process.env.NODE_ENV !== "production" && (j.displayName = "DesktopDatePicker");
473
- j.propTypes = {
466
+ process.env.NODE_ENV !== "production" && (k.displayName = "DesktopDatePicker");
467
+ k.propTypes = {
474
468
  // ----------------------------- Warning --------------------------------
475
469
  // | These PropTypes are generated from the TypeScript type definitions |
476
470
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -554,7 +548,7 @@ j.propTypes = {
554
548
  /**
555
549
  * Pass a ref to the `input` element.
556
550
  */
557
- inputRef: h,
551
+ inputRef: y,
558
552
  /**
559
553
  * The label content.
560
554
  */
@@ -594,7 +588,10 @@ j.propTypes = {
594
588
  * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
595
589
  * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
596
590
  * @param {TValue} value The value that was just accepted.
597
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
591
+ * @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
592
+ * - `validationError`: validation result of the current value
593
+ * - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
594
+ * - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
598
595
  */
599
596
  onAccept: e.func,
600
597
  /**
@@ -602,7 +599,10 @@ j.propTypes = {
602
599
  * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
603
600
  * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
604
601
  * @param {TValue} value The new value.
605
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
602
+ * @param {FieldChangeHandlerContext<TError>} context Context about this change:
603
+ * - `validationError`: validation result of the current value
604
+ * - `source`: source of the change. One of 'field' | 'view' | 'unknown'
605
+ * - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
606
606
  */
607
607
  onChange: e.func,
608
608
  /**
@@ -784,41 +784,37 @@ j.propTypes = {
784
784
  */
785
785
  yearsPerRow: e.oneOf([3, 4])
786
786
  };
787
- const w = /* @__PURE__ */ b.forwardRef(function(s, t) {
788
- var c;
789
- const l = g(), o = _(s, "MuiMobileDatePicker"), a = r({
790
- day: m,
791
- month: m,
792
- year: m
793
- }, o.viewRenderers), i = r({}, o, {
794
- viewRenderers: a,
795
- format: k(l, o, !1),
796
- slots: r({
797
- field: D
787
+ const j = /* @__PURE__ */ f.forwardRef(function(a, t) {
788
+ const n = O(), o = S(a, "MuiMobileDatePicker"), r = s({
789
+ day: p,
790
+ month: p,
791
+ year: p
792
+ }, o.viewRenderers), i = s({}, o, {
793
+ viewRenderers: r,
794
+ format: T(n, o, !1),
795
+ slots: s({
796
+ field: h
798
797
  }, o.slots),
799
- slotProps: r({}, o.slotProps, {
800
- field: (u) => {
801
- var d;
802
- return r({}, V((d = o.slotProps) == null ? void 0 : d.field, u), F(o));
803
- },
804
- toolbar: r({
798
+ slotProps: s({}, o.slotProps, {
799
+ field: (u) => s({}, C(o.slotProps?.field, u), M(o)),
800
+ toolbar: s({
805
801
  hidden: !1
806
- }, (c = o.slotProps) == null ? void 0 : c.toolbar)
802
+ }, o.slotProps?.toolbar)
807
803
  })
808
804
  }), {
809
- renderPicker: f
810
- } = ae({
805
+ renderPicker: d
806
+ } = oe({
811
807
  ref: t,
812
808
  props: i,
813
809
  valueManager: R,
814
810
  valueType: "date",
815
- validator: N,
811
+ validator: F,
816
812
  steps: null
817
813
  });
818
- return f();
814
+ return d();
819
815
  });
820
- process.env.NODE_ENV !== "production" && (w.displayName = "MobileDatePicker");
821
- w.propTypes = {
816
+ process.env.NODE_ENV !== "production" && (j.displayName = "MobileDatePicker");
817
+ j.propTypes = {
822
818
  // ----------------------------- Warning --------------------------------
823
819
  // | These PropTypes are generated from the TypeScript type definitions |
824
820
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -902,7 +898,7 @@ w.propTypes = {
902
898
  /**
903
899
  * Pass a ref to the `input` element.
904
900
  */
905
- inputRef: h,
901
+ inputRef: y,
906
902
  /**
907
903
  * The label content.
908
904
  */
@@ -942,7 +938,10 @@ w.propTypes = {
942
938
  * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
943
939
  * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
944
940
  * @param {TValue} value The value that was just accepted.
945
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
941
+ * @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
942
+ * - `validationError`: validation result of the current value
943
+ * - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
944
+ * - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
946
945
  */
947
946
  onAccept: e.func,
948
947
  /**
@@ -950,7 +949,10 @@ w.propTypes = {
950
949
  * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
951
950
  * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
952
951
  * @param {TValue} value The new value.
953
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
952
+ * @param {FieldChangeHandlerContext<TError>} context Context about this change:
953
+ * - `validationError`: validation result of the current value
954
+ * - `source`: source of the change. One of 'field' | 'view' | 'unknown'
955
+ * - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
954
956
  */
955
957
  onChange: e.func,
956
958
  /**
@@ -1132,20 +1134,20 @@ w.propTypes = {
1132
1134
  */
1133
1135
  yearsPerRow: e.oneOf([3, 4])
1134
1136
  };
1135
- const he = ["desktopModeMediaQuery"], x = /* @__PURE__ */ b.forwardRef(function(s, t) {
1136
- const l = y({
1137
- props: s,
1137
+ const ye = ["desktopModeMediaQuery"], x = /* @__PURE__ */ f.forwardRef(function(a, t) {
1138
+ const n = m({
1139
+ props: a,
1138
1140
  name: "MuiDatePicker"
1139
1141
  }), {
1140
- desktopModeMediaQuery: o = re
1141
- } = l, a = O(l, he);
1142
- return ne(o, {
1142
+ desktopModeMediaQuery: o = te
1143
+ } = n, r = P(n, ye);
1144
+ return se(o, {
1143
1145
  defaultMatches: !0
1144
- }) ? /* @__PURE__ */ p.jsx(j, r({
1146
+ }) ? /* @__PURE__ */ c.jsx(k, s({
1145
1147
  ref: t
1146
- }, a)) : /* @__PURE__ */ p.jsx(w, r({
1148
+ }, r)) : /* @__PURE__ */ c.jsx(j, s({
1147
1149
  ref: t
1148
- }, a));
1150
+ }, r));
1149
1151
  });
1150
1152
  process.env.NODE_ENV !== "production" && (x.displayName = "DatePicker");
1151
1153
  process.env.NODE_ENV !== "production" && (x.propTypes = {
@@ -1238,7 +1240,7 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
1238
1240
  /**
1239
1241
  * Pass a ref to the `input` element.
1240
1242
  */
1241
- inputRef: h,
1243
+ inputRef: y,
1242
1244
  /**
1243
1245
  * The label content.
1244
1246
  */
@@ -1278,7 +1280,10 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
1278
1280
  * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
1279
1281
  * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
1280
1282
  * @param {TValue} value The value that was just accepted.
1281
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
1283
+ * @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
1284
+ * - `validationError`: validation result of the current value
1285
+ * - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
1286
+ * - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
1282
1287
  */
1283
1288
  onAccept: e.func,
1284
1289
  /**
@@ -1286,7 +1291,10 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
1286
1291
  * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
1287
1292
  * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
1288
1293
  * @param {TValue} value The new value.
1289
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
1294
+ * @param {FieldChangeHandlerContext<TError>} context Context about this change:
1295
+ * - `validationError`: validation result of the current value
1296
+ * - `source`: source of the change. One of 'field' | 'view' | 'unknown'
1297
+ * - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
1290
1298
  */
1291
1299
  onChange: e.func,
1292
1300
  /**
@@ -1468,23 +1476,23 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
1468
1476
  */
1469
1477
  yearsPerRow: e.oneOf([3, 4])
1470
1478
  });
1471
- const P = ({
1472
- label: n,
1473
- required: s = !1,
1479
+ const he = ({
1480
+ label: l,
1481
+ required: a = !1,
1474
1482
  error: t,
1475
- htmlFor: l,
1483
+ htmlFor: n,
1476
1484
  hint: o,
1477
- ...a
1485
+ ...r
1478
1486
  }) => {
1479
- const i = W();
1480
- return /* @__PURE__ */ p.jsx(L, { label: n, required: s, error: t, htmlFor: l, hint: o, children: /* @__PURE__ */ p.jsx(
1487
+ const i = I();
1488
+ return /* @__PURE__ */ c.jsx(L, { label: l, required: a, error: t, htmlFor: n, hint: o, children: /* @__PURE__ */ c.jsx(
1481
1489
  x,
1482
1490
  {
1483
1491
  enableAccessibleFieldDOMStructure: !1,
1484
1492
  slots: {
1485
1493
  textField: z,
1486
1494
  // Use Material-UI TextField as input
1487
- ...a.slots || {}
1495
+ ...r.slots || {}
1488
1496
  // Allow user to override slots if needed
1489
1497
  },
1490
1498
  slotProps: {
@@ -1499,23 +1507,15 @@ const P = ({
1499
1507
  }
1500
1508
  }
1501
1509
  },
1502
- ...a.slotProps || {}
1510
+ ...r.slotProps || {}
1503
1511
  // Allow user to override slotProps if needed
1504
1512
  },
1505
- ...a
1513
+ ...r
1506
1514
  }
1507
1515
  ) });
1508
1516
  };
1509
- P.displayName = "SDatePicker";
1510
- try {
1511
- P.displayName = "SDatePicker", P.__docgenInfo = { description: "A standardized date picker component that wraps Material-UI X DatePicker with consistent form labeling.", displayName: "SDatePicker", props: { label: { defaultValue: null, description: "Field label displayed above the date picker", name: "label", required: !1, type: { name: "ReactNode" } }, required: { defaultValue: { value: "false" }, description: "Whether the field is required (shows asterisk in label)", name: "required", required: !1, type: { name: "boolean" } }, error: { defaultValue: null, description: "Error message to display below the field", name: "error", required: !1, type: { name: "string" } }, htmlFor: { defaultValue: null, description: "HTML id attribute for the input element", name: "htmlFor", required: !1, type: { name: "string" } }, hint: { defaultValue: null, description: "Help text shown in tooltip next to the label", name: "hint", required: !1, type: { name: "string" } } } };
1512
- } catch {
1513
- }
1514
- try {
1515
- sdatepicker.displayName = "sdatepicker", sdatepicker.__docgenInfo = { description: "A standardized date picker component that wraps Material-UI X DatePicker with consistent form labeling.", displayName: "sdatepicker", props: { label: { defaultValue: null, description: "Field label displayed above the date picker", name: "label", required: !1, type: { name: "ReactNode" } }, required: { defaultValue: { value: "false" }, description: "Whether the field is required (shows asterisk in label)", name: "required", required: !1, type: { name: "boolean" } }, error: { defaultValue: null, description: "Error message to display below the field", name: "error", required: !1, type: { name: "string" } }, htmlFor: { defaultValue: null, description: "HTML id attribute for the input element", name: "htmlFor", required: !1, type: { name: "string" } }, hint: { defaultValue: null, description: "Help text shown in tooltip next to the label", name: "hint", required: !1, type: { name: "string" } } } };
1516
- } catch {
1517
- }
1517
+ he.displayName = "SDatePicker";
1518
1518
  export {
1519
- P as SDatePicker,
1520
- P as default
1519
+ he as SDatePicker,
1520
+ he as default
1521
1521
  };