@solostylist/ui-kit 1.0.174 → 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.
- package/dist/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
- package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
- package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
- package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
- package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
- package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
- package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
- package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
- package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
- package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
- package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
- package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
- package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
- package/dist/Paper-DnctZB5U.js +689 -0
- package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
- package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
- package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
- package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
- package/dist/assets/s-overlay-scrollbar.css +1 -9
- package/dist/createSvgIcon-BKymXuBG.js +242 -0
- package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
- package/dist/defaultTheme-LSr-S9un.js +5 -0
- package/dist/entries/carousel.d.ts +10 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/chat.d.ts +9 -0
- package/dist/entries/chat.js +4 -0
- package/dist/entries/code.d.ts +9 -0
- package/dist/entries/code.js +4 -0
- package/dist/entries/core.d.ts +100 -0
- package/dist/entries/core.js +122 -0
- package/dist/entries/dates.d.ts +16 -0
- package/dist/entries/dates.js +12 -0
- package/dist/entries/dropzone.d.ts +9 -0
- package/dist/entries/dropzone.js +4 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.js +4 -0
- package/dist/entries/gallery.d.ts +17 -0
- package/dist/entries/gallery.js +13 -0
- package/dist/entries/i18n.d.ts +13 -0
- package/dist/entries/i18n.js +8 -0
- package/dist/entries/motion.d.ts +29 -0
- package/dist/entries/motion.js +28 -0
- package/dist/entries/scrollbar.d.ts +9 -0
- package/dist/entries/scrollbar.js +4 -0
- package/dist/entries/stripe.d.ts +10 -0
- package/dist/entries/stripe.js +10 -0
- package/dist/extendSxProp-DitxZ8We.js +36 -0
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/use-is-passed-position.js +10 -10
- package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
- package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
- package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
- package/dist/main.d.ts +29 -145
- package/dist/main.js +187 -187
- package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
- package/dist/resolveProps-BDH0VJjn.js +39 -0
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-accordion/s-accordion.js +374 -358
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +64 -79
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
- package/dist/s-autocomplete/s-autocomplete.js +19 -25
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-avatar/s-avatar.js +14 -25
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-blur-text/s-blur-text.js +55 -59
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.js +7 -15
- package/dist/s-button-link/s-button-link.js +28 -36
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-carousel/s-carousel.js +267 -280
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-category-card/s-category-card.js +60 -77
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.d.ts +4 -0
- package/dist/s-chat-input/s-chat-input.js +103 -109
- package/dist/s-chat-message/s-chat-message.js +111 -120
- package/dist/s-checkbox/s-checkbox.js +12 -20
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.js +7 -15
- package/dist/s-chips/s-chips.js +47 -56
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +35 -43
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +90 -94
- package/dist/s-copyable-text/s-copyable-text.js +24 -32
- package/dist/s-countdown/s-count-box.js +42 -50
- package/dist/s-countdown/s-count-down.js +79 -107
- package/dist/s-data-table/s-data-table.js +374 -384
- package/dist/s-date-picker/s-date-picker.js +164 -164
- package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
- package/dist/s-dialog/s-dialog.js +24 -32
- package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
- package/dist/s-dialog-message/s-dialog-message.js +40 -44
- package/dist/s-empty/s-empty.js +6 -14
- package/dist/s-error/s-error.js +9 -17
- package/dist/s-error-layout/s-error-layout.js +38 -47
- package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
- package/dist/s-file-icon/s-file-icon.js +9 -13
- package/dist/s-flex-box/s-flex-box.js +6 -14
- package/dist/s-form/s-form.js +11 -19
- package/dist/s-gallery/index.js +3 -33
- package/dist/s-gallery/s-gallery.js +91 -114
- package/dist/s-glow-button/s-glow-button.js +22 -26
- package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
- package/dist/s-icon-button/s-icon-button.js +6 -14
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +48 -53
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +137 -150
- package/dist/s-item-not-found/s-item-not-found.js +13 -22
- package/dist/s-label/s-label.js +12 -20
- package/dist/s-language-switcher/s-language-switcher.js +119 -141
- package/dist/s-lazy-image/index.js +2 -10
- package/dist/s-lazy-image/s-lazy-image.js +33 -37
- package/dist/s-localization-provider/s-localization-provider.js +368 -380
- package/dist/s-moving-border/s-moving-border.js +52 -67
- package/dist/s-multi-select/s-multi-select.js +43 -51
- package/dist/s-no-ssr/s-no-ssr.js +13 -21
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
- package/dist/s-pagination/s-pagination.js +13 -17
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.js +7 -15
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +101 -106
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
- package/dist/s-select/s-select.js +67 -75
- package/dist/s-select-list/s-select-list.js +28 -32
- package/dist/s-skeleton/s-skeleton.js +20 -28
- package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
- package/dist/s-stripe/s-stripe-cvc.js +8 -12
- package/dist/s-stripe/s-stripe-expiry.js +8 -12
- package/dist/s-stripe/s-stripe-number.js +8 -12
- package/dist/s-stripe/s-stripe.d.ts +2 -2
- package/dist/s-stripe/s-stripe.js +17 -26
- package/dist/s-stripe/stripe-input.js +25 -29
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-tabs/s-tab-panel.js +17 -25
- package/dist/s-tabs/s-tab.js +5 -9
- package/dist/s-tabs/s-tabs.js +19 -27
- package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
- package/dist/s-text-editor/s-text-editor.js +33 -45
- package/dist/s-text-field/s-text-field.js +31 -40
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
- package/dist/s-text-truncation/s-text-truncation.js +24 -32
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-demo/s-theme-demo.js +219 -234
- package/dist/s-theme-provider/s-theme-provider.js +37 -45
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +19 -23
- package/dist/s-tip/s-tip.js +14 -22
- package/dist/s-two-pane-layout/index.js +2 -10
- package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
- package/dist/s-zoom-image/index.js +2 -10
- package/dist/s-zoom-image/package.json +5 -5
- package/dist/s-zoom-image/s-zoom-image.js +53 -62
- package/dist/styled-B0KflPi-.js +203 -0
- package/dist/theme/components/alert.d.ts +484 -264
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/button.d.ts +726 -396
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/components/components.js +14 -12
- package/dist/theme/components/icon-button.d.ts +6191 -0
- package/dist/theme/components/icon-button.js +90 -0
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.d.ts +8 -246
- package/dist/theme/theme-primitives.js +76 -87
- package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
- package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
- package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
- package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
- package/dist/utils/dayjs.js +7 -7
- package/dist/utils/logger.js +29 -32
- package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
- package/package.json +240 -81
- package/README.md +0 -13
- package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
- package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
- package/dist/Paper-hkbPWyBT.js +0 -553
- package/dist/createSvgIcon-DxwgGAVe.js +0 -247
- package/dist/defaultTheme-fEi1x1Gb.js +0 -5
- package/dist/extendSxProp-BKWjdW12.js +0 -37
- package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
- package/dist/resolveProps-61uUKnlS.js +0 -52
- package/dist/styled-B0Z4EDy9.js +0 -206
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useTheme as
|
|
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
|
|
5
|
-
import * as
|
|
6
|
-
import { P as e } from "../createTheme-
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { g as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
const
|
|
19
|
+
re("MuiDatePickerToolbar", ["root", "title"]);
|
|
20
|
+
const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue = (l) => le({
|
|
20
21
|
root: ["root"],
|
|
21
22
|
title: ["title"]
|
|
22
|
-
},
|
|
23
|
+
}, ce, l), fe = N(q, {
|
|
23
24
|
name: "MuiDatePickerToolbar",
|
|
24
25
|
slot: "Root"
|
|
25
|
-
})({}),
|
|
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
|
-
}),
|
|
38
|
-
const
|
|
39
|
-
props:
|
|
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:
|
|
44
|
+
toolbarPlaceholder: r = "––",
|
|
44
45
|
className: i,
|
|
45
|
-
classes:
|
|
46
|
-
} =
|
|
47
|
-
value:
|
|
46
|
+
classes: d
|
|
47
|
+
} = n, u = P(n, de), b = O(), {
|
|
48
|
+
value: D,
|
|
48
49
|
views: v,
|
|
49
|
-
orientation:
|
|
50
|
-
} = U(),
|
|
51
|
-
if (!
|
|
52
|
-
return
|
|
53
|
-
const
|
|
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
|
|
58
|
-
}, [
|
|
59
|
-
return /* @__PURE__ */
|
|
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:
|
|
62
|
-
className:
|
|
63
|
-
},
|
|
64
|
-
children: /* @__PURE__ */
|
|
62
|
+
toolbarTitle: V.datePickerToolbarTitle,
|
|
63
|
+
className: ae(w.root, i)
|
|
64
|
+
}, u, {
|
|
65
|
+
children: /* @__PURE__ */ c.jsx(pe, {
|
|
65
66
|
variant: "h4",
|
|
66
|
-
align:
|
|
67
|
-
ownerState:
|
|
68
|
-
className:
|
|
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" && (
|
|
74
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
105
|
-
const t =
|
|
106
|
-
props:
|
|
107
|
-
name:
|
|
108
|
-
}),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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:
|
|
123
|
-
toolbar:
|
|
120
|
+
slots: s({
|
|
121
|
+
toolbar: g
|
|
124
122
|
}, t.slots)
|
|
125
123
|
});
|
|
126
124
|
}
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
return
|
|
130
|
-
manager:
|
|
131
|
-
props:
|
|
125
|
+
const be = (l) => {
|
|
126
|
+
const a = $(l);
|
|
127
|
+
return K({
|
|
128
|
+
manager: a,
|
|
129
|
+
props: l
|
|
132
130
|
});
|
|
133
|
-
},
|
|
134
|
-
const
|
|
135
|
-
props:
|
|
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:
|
|
140
|
-
} =
|
|
141
|
-
slotProps:
|
|
137
|
+
slotProps: r
|
|
138
|
+
} = n, i = P(n, me), d = Z({
|
|
139
|
+
slotProps: r,
|
|
142
140
|
ref: t,
|
|
143
141
|
externalForwardedProps: i
|
|
144
|
-
}),
|
|
145
|
-
return /* @__PURE__ */
|
|
142
|
+
}), u = be(d);
|
|
143
|
+
return /* @__PURE__ */ c.jsx(G, {
|
|
146
144
|
slots: o,
|
|
147
|
-
slotProps:
|
|
145
|
+
slotProps: r,
|
|
148
146
|
inputRef: i.inputRef,
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
fieldResponse:
|
|
151
|
-
defaultOpenPickerIcon:
|
|
147
|
+
children: /* @__PURE__ */ c.jsx(J, {
|
|
148
|
+
fieldResponse: u,
|
|
149
|
+
defaultOpenPickerIcon: X
|
|
152
150
|
})
|
|
153
151
|
});
|
|
154
152
|
});
|
|
155
|
-
process.env.NODE_ENV !== "production" && (
|
|
156
|
-
process.env.NODE_ENV !== "production" && (
|
|
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:
|
|
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
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
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:
|
|
446
|
-
format:
|
|
442
|
+
viewRenderers: r,
|
|
443
|
+
format: T(n, o, !1),
|
|
447
444
|
yearsPerRow: o.yearsPerRow ?? 4,
|
|
448
|
-
slots:
|
|
449
|
-
field:
|
|
445
|
+
slots: s({
|
|
446
|
+
field: h
|
|
450
447
|
}, o.slots),
|
|
451
|
-
slotProps:
|
|
452
|
-
field: (u) => {
|
|
453
|
-
|
|
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
|
-
},
|
|
452
|
+
}, o.slotProps?.toolbar)
|
|
459
453
|
})
|
|
460
454
|
}), {
|
|
461
|
-
renderPicker:
|
|
462
|
-
} =
|
|
455
|
+
renderPicker: d
|
|
456
|
+
} = ee({
|
|
463
457
|
ref: t,
|
|
464
458
|
props: i,
|
|
465
459
|
valueManager: R,
|
|
466
460
|
valueType: "date",
|
|
467
|
-
validator:
|
|
461
|
+
validator: F,
|
|
468
462
|
steps: null
|
|
469
463
|
});
|
|
470
|
-
return
|
|
464
|
+
return d();
|
|
471
465
|
});
|
|
472
|
-
process.env.NODE_ENV !== "production" && (
|
|
473
|
-
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
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:
|
|
800
|
-
field: (u) => {
|
|
801
|
-
|
|
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
|
-
},
|
|
802
|
+
}, o.slotProps?.toolbar)
|
|
807
803
|
})
|
|
808
804
|
}), {
|
|
809
|
-
renderPicker:
|
|
810
|
-
} =
|
|
805
|
+
renderPicker: d
|
|
806
|
+
} = oe({
|
|
811
807
|
ref: t,
|
|
812
808
|
props: i,
|
|
813
809
|
valueManager: R,
|
|
814
810
|
valueType: "date",
|
|
815
|
-
validator:
|
|
811
|
+
validator: F,
|
|
816
812
|
steps: null
|
|
817
813
|
});
|
|
818
|
-
return
|
|
814
|
+
return d();
|
|
819
815
|
});
|
|
820
|
-
process.env.NODE_ENV !== "production" && (
|
|
821
|
-
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
1136
|
-
const
|
|
1137
|
-
props:
|
|
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 =
|
|
1141
|
-
} =
|
|
1142
|
-
return
|
|
1142
|
+
desktopModeMediaQuery: o = te
|
|
1143
|
+
} = n, r = P(n, ye);
|
|
1144
|
+
return se(o, {
|
|
1143
1145
|
defaultMatches: !0
|
|
1144
|
-
}) ? /* @__PURE__ */
|
|
1146
|
+
}) ? /* @__PURE__ */ c.jsx(k, s({
|
|
1145
1147
|
ref: t
|
|
1146
|
-
},
|
|
1148
|
+
}, r)) : /* @__PURE__ */ c.jsx(j, s({
|
|
1147
1149
|
ref: t
|
|
1148
|
-
},
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
1472
|
-
label:
|
|
1473
|
-
required:
|
|
1479
|
+
const he = ({
|
|
1480
|
+
label: l,
|
|
1481
|
+
required: a = !1,
|
|
1474
1482
|
error: t,
|
|
1475
|
-
htmlFor:
|
|
1483
|
+
htmlFor: n,
|
|
1476
1484
|
hint: o,
|
|
1477
|
-
...
|
|
1485
|
+
...r
|
|
1478
1486
|
}) => {
|
|
1479
|
-
const i =
|
|
1480
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
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
|
-
...
|
|
1510
|
+
...r.slotProps || {}
|
|
1503
1511
|
// Allow user to override slotProps if needed
|
|
1504
1512
|
},
|
|
1505
|
-
...
|
|
1513
|
+
...r
|
|
1506
1514
|
}
|
|
1507
1515
|
) });
|
|
1508
1516
|
};
|
|
1509
|
-
|
|
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
|
-
|
|
1520
|
-
|
|
1519
|
+
he as SDatePicker,
|
|
1520
|
+
he as default
|
|
1521
1521
|
};
|