@solostylist/ui-kit 1.0.78 → 1.0.80
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/{Box-reWd7MO-.js → Box-Bfkq7uIw.js} +23 -21
- package/dist/{Close-CVFQMMUW.js → Close-C1lLcTQu.js} +1 -1
- package/dist/{Menu-CGTDGEoX.js → Menu-DbldWmqB.js} +94 -93
- package/dist/{MenuItem-Bdna3McP.js → MenuItem-BHTJlag0.js} +8 -7
- package/dist/{Select-D54ugORZ.js → Select-CT0Hpudx.js} +14 -13
- package/dist/{Stack-ISlVeD89.js → Stack-W0weBtf9.js} +29 -28
- package/dist/{TransitionGroup-DuMpOHcM.js → TransitionGroup-q306siJs.js} +1 -1
- package/dist/{Typography-D38zoHJr.js → Typography-CeAbQ9LX.js} +17 -17
- package/dist/{buttonBaseClasses-CF7RfAgE.js → buttonBaseClasses-CR6HkqQ3.js} +2 -2
- package/dist/colorManipulator-CPZHCebU.js +178 -0
- package/dist/{createSvgIcon-DN-sh_sr.js → createSvgIcon-9XY7lJan.js} +129 -131
- package/dist/createTheme-wt8sY36y.js +2837 -0
- package/dist/{defaultTheme-BDQAWvCM.js → defaultTheme-YL2LZ-0U.js} +7 -7
- package/dist/emotion-serialize.esm-lgBmL_7o.js +195 -0
- package/dist/{extendSxProp-KtEeHd8h.js → extendSxProp-B1pEE-ot.js} +1 -1
- package/dist/generateUtilityClasses-D-O3RBPF.js +10 -0
- package/dist/hooks/use-dialog.d.ts +21 -0
- package/dist/hooks/use-dialog.js +10 -2
- package/dist/hooks/use-popover.d.ts +24 -0
- package/dist/hooks/use-popover.js +7 -1
- package/dist/{iconButtonClasses-DMst1jJO.js → iconButtonClasses-WmsPyI4v.js} +2 -2
- package/dist/index-B6k9mhKf.js +30 -0
- package/dist/{index-x815ub0T.js → index-DAXzX0k9.js} +5 -5
- package/dist/main.d.ts +5 -1
- package/dist/main.js +109 -104
- package/dist/{outlinedInputClasses-E4FwVkZh.js → outlinedInputClasses-Cor6Mcxo.js} +2 -2
- package/dist/s-autocomplete/s-autocomplete.d.ts +31 -0
- package/dist/s-autocomplete/s-autocomplete.js +23 -20
- package/dist/s-button/index.d.ts +2 -0
- package/dist/s-button/index.js +4 -0
- package/dist/s-button/package.json +5 -0
- package/dist/s-button/s-button.d.ts +6 -0
- package/dist/s-button/s-button.js +7 -0
- package/dist/s-button-link/s-button-link.d.ts +37 -1
- package/dist/s-checkbox/s-checkbox.d.ts +21 -0
- package/dist/s-checkbox/s-checkbox.js +9 -9
- package/dist/s-chip/index.d.ts +2 -0
- package/dist/s-chip/index.js +4 -0
- package/dist/s-chip/package.json +5 -0
- package/dist/s-chip/s-chip.d.ts +6 -0
- package/dist/s-chip/s-chip.js +7 -0
- package/dist/s-chips/s-chips.d.ts +26 -1
- package/dist/s-chips/s-chips.js +28 -23
- package/dist/s-copilot-kit-provider/s-copilot-kit-provider.d.ts +28 -0
- package/dist/s-copyable-text/s-copyable-text.d.ts +43 -2
- package/dist/s-copyable-text/s-copyable-text.js +30 -22
- package/dist/s-data-table/s-data-table.d.ts +87 -0
- package/dist/s-data-table/s-data-table.js +33 -22
- package/dist/s-date-picker/s-date-picker.d.ts +25 -0
- package/dist/s-date-picker/s-date-picker.js +109 -92
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +26 -0
- package/dist/s-datetime-picker/s-datetime-picker.js +209 -192
- package/dist/s-dialog/s-dialog.d.ts +27 -0
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +54 -0
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.d.ts +51 -0
- package/dist/s-dialog-message/s-dialog-message.js +3 -2
- package/dist/s-empty/s-empty.d.ts +25 -1
- package/dist/s-error/s-error.d.ts +19 -0
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +67 -0
- package/dist/s-file-dropzone/s-file-dropzone.js +6 -4
- package/dist/s-file-icon/s-file-icon.d.ts +28 -0
- package/dist/s-file-icon/s-file-icon.js +5 -2
- package/dist/s-form/s-form.d.ts +22 -0
- package/dist/s-form/s-form.js +9 -10
- package/dist/s-glow-button/index.d.ts +1 -1
- package/dist/s-glow-button/s-glow-button.d.ts +39 -3
- package/dist/s-glow-button/s-glow-button.js +11 -2
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +43 -0
- package/dist/s-gradient-icon/s-gradient-icon.js +6 -1
- package/dist/s-i18n-provider/s-i18n-provider.d.ts +37 -0
- package/dist/s-i18n-provider/s-i18n-provider.js +8 -1
- package/dist/s-icon-button/s-icon-button.d.ts +23 -0
- package/dist/s-interactive-gallery/s-interactive-gallery.d.ts +96 -0
- package/dist/s-interactive-gallery/s-interactive-gallery.js +175 -82
- package/dist/s-label/s-label.d.ts +30 -2
- package/dist/s-label/s-label.js +8 -18
- package/dist/s-lazy-image/s-lazy-image.d.ts +28 -1
- package/dist/s-localization-provider/s-localization-provider.d.ts +30 -0
- package/dist/s-localization-provider/s-localization-provider.js +5 -2
- package/dist/s-moving-border/s-moving-border.d.ts +41 -0
- package/dist/s-moving-border/s-moving-border.js +5 -1
- package/dist/s-multi-select/s-multi-select.d.ts +23 -0
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-no-ssr/s-no-ssr.d.ts +38 -0
- package/dist/s-pagination/s-pagination.d.ts +29 -0
- package/dist/s-select/s-select.d.ts +35 -0
- package/dist/s-select/s-select.js +41 -37
- package/dist/s-skeleton/s-skeleton.d.ts +31 -1
- package/dist/s-smart-text-field/s-smart-text-field.d.ts +28 -0
- package/dist/s-smart-text-field/s-smart-text-field.js +1425 -1399
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +56 -2
- package/dist/s-stripe/s-stripe.d.ts +93 -0
- package/dist/s-stripe/s-stripe.js +3 -0
- package/dist/s-stripe/stripe-input.d.ts +23 -0
- package/dist/s-stripe/stripe-input.js +1 -0
- package/dist/s-text-editor/index.d.ts +2 -0
- package/dist/s-text-editor/index.js +4 -2
- package/dist/s-text-editor/s-text-editor-toolbar.d.ts +33 -0
- package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.d.ts +23 -0
- package/dist/s-text-truncation/s-text-truncation.d.ts +30 -0
- package/dist/s-theme-provider/s-theme-provider.d.ts +24 -3
- package/dist/s-theme-provider/s-theme-provider.js +9 -2
- package/dist/s-tip/s-tip.d.ts +27 -0
- package/dist/s-tip/s-tip.js +5 -3
- package/dist/svgIconClasses-BYFQaEQ7.js +10 -0
- package/dist/{tabClasses-LXCeUS4i.js → tabClasses-CXQXD3XZ.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +5834 -0
- package/dist/theme/components/button.js +186 -0
- package/dist/theme/components/chip.d.ts +117 -0
- package/dist/theme/components/chip.js +168 -0
- package/dist/theme/components/components.d.ts +5944 -0
- package/dist/theme/components/components.js +16 -12
- package/dist/theme/customizations/data-display.d.ts +0 -5
- package/dist/theme/customizations/data-display.js +15 -144
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +29 -226
- package/dist/theme/customizations/navigation.js +26 -12
- package/dist/theme/customizations/surfaces.js +5 -5
- package/dist/theme/theme-primitives.d.ts +24 -0
- package/dist/theme/theme-primitives.js +73 -48
- package/dist/{typographyClasses-QAKcrTAX.js → typographyClasses-DTwotNbm.js} +2 -2
- package/dist/{useMobilePicker-DlmTFHhN.js → useMobilePicker-CYRSYIKP.js} +1852 -1848
- package/dist/{useSlot-CiHsL61G.js → useSlot-B_4ipGBP.js} +6 -6
- package/dist/{useTheme-Dy5JmnOe.js → useTheme-D1MJ3g_i.js} +1 -1
- package/dist/{useThemeProps-BGjjVPlJ.js → useThemeProps-CTcSO3lC.js} +2 -2
- package/dist/{warning-DWsjz4u6.js → warning-DyDdgu8-.js} +3 -3
- package/package.json +6 -4
- package/dist/HelpOutlineOutlined-Dw_XSjYK.js +0 -8
- package/dist/chipClasses-WFcUH6gU.js +0 -10
- package/dist/createTheme-DuP3DZSF.js +0 -3005
- package/dist/generateUtilityClasses-BpNk3DNr.js +0 -230
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { j as b } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { TextField as z } from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
2
|
+
import { useTheme as I, TextField as z } from "@mui/material";
|
|
3
|
+
import L from "../s-form/s-form.js";
|
|
4
|
+
import { _ as O, a } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
5
5
|
import * as p from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { u as P, a as Y, b as U, c as Q, r as T, d as q, P as B, e as H, f as $, g as K, h as Z, i as G, j as J, C as X, k as m, l as M, m as ee, v as F, s as
|
|
8
|
-
import { u as y } from "../warning-
|
|
9
|
-
import { g as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
import { P as e } from "../createTheme-wt8sY36y.js";
|
|
7
|
+
import { u as P, a as Y, b as U, c as Q, r as T, d as q, P as B, e as H, f as $, g as K, h as Z, i as G, j as J, C as X, k as m, l as M, m as ee, v as F, s as R, n as oe, D as te, o as se } from "../useMobilePicker-CYRSYIKP.js";
|
|
8
|
+
import { u as y } from "../warning-DyDdgu8-.js";
|
|
9
|
+
import { g as ae } from "../colorManipulator-CPZHCebU.js";
|
|
10
|
+
import { g as ne } from "../generateUtilityClasses-D-O3RBPF.js";
|
|
11
|
+
import { s as N, b as re } from "../createSvgIcon-9XY7lJan.js";
|
|
12
|
+
import { T as le } from "../Typography-CeAbQ9LX.js";
|
|
13
|
+
import { r as h, a as C } from "../useSlot-B_4ipGBP.js";
|
|
14
|
+
function ie(l) {
|
|
15
|
+
return ae("MuiDatePickerToolbar", l);
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
const
|
|
17
|
+
ne("MuiDatePickerToolbar", ["root", "title"]);
|
|
18
|
+
const ce = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue = (l) => re({
|
|
18
19
|
root: ["root"],
|
|
19
20
|
title: ["title"]
|
|
20
|
-
},
|
|
21
|
+
}, ie, l), de = N(B, {
|
|
21
22
|
name: "MuiDatePickerToolbar",
|
|
22
23
|
slot: "Root"
|
|
23
|
-
})({}),
|
|
24
|
+
})({}), fe = N(le, {
|
|
24
25
|
name: "MuiDatePickerToolbar",
|
|
25
26
|
slot: "Title"
|
|
26
27
|
})({
|
|
@@ -38,32 +39,32 @@ const ie = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ce =
|
|
|
38
39
|
name: "MuiDatePickerToolbar"
|
|
39
40
|
}), {
|
|
40
41
|
toolbarFormat: o,
|
|
41
|
-
toolbarPlaceholder:
|
|
42
|
-
className:
|
|
42
|
+
toolbarPlaceholder: s = "––",
|
|
43
|
+
className: i,
|
|
43
44
|
classes: f
|
|
44
|
-
} = r,
|
|
45
|
-
value:
|
|
46
|
-
views:
|
|
45
|
+
} = r, c = O(r, ce), d = P(), {
|
|
46
|
+
value: u,
|
|
47
|
+
views: v,
|
|
47
48
|
orientation: E
|
|
48
|
-
} = Y(), V = U(), _ = Q(),
|
|
49
|
-
if (!d.isValid(
|
|
50
|
-
return
|
|
49
|
+
} = Y(), V = U(), _ = Q(), w = ue(f), A = p.useMemo(() => {
|
|
50
|
+
if (!d.isValid(u))
|
|
51
|
+
return s;
|
|
51
52
|
const W = T(d, {
|
|
52
53
|
format: o,
|
|
53
|
-
views:
|
|
54
|
+
views: v
|
|
54
55
|
}, !0);
|
|
55
|
-
return d.formatByString(
|
|
56
|
-
}, [
|
|
57
|
-
return /* @__PURE__ */ b.jsx(
|
|
56
|
+
return d.formatByString(u, W);
|
|
57
|
+
}, [u, o, s, d, v]);
|
|
58
|
+
return /* @__PURE__ */ b.jsx(de, a({
|
|
58
59
|
ref: t,
|
|
59
60
|
toolbarTitle: V.datePickerToolbarTitle,
|
|
60
|
-
className: q(
|
|
61
|
-
},
|
|
62
|
-
children: /* @__PURE__ */ b.jsx(
|
|
61
|
+
className: q(w.root, i)
|
|
62
|
+
}, c, {
|
|
63
|
+
children: /* @__PURE__ */ b.jsx(fe, {
|
|
63
64
|
variant: "h4",
|
|
64
65
|
align: E === "landscape" ? "left" : "center",
|
|
65
66
|
ownerState: _,
|
|
66
|
-
className:
|
|
67
|
+
className: w.title,
|
|
67
68
|
children: A
|
|
68
69
|
})
|
|
69
70
|
}));
|
|
@@ -104,12 +105,12 @@ function S(l, n) {
|
|
|
104
105
|
props: l,
|
|
105
106
|
name: n
|
|
106
107
|
}), r = H(t), o = p.useMemo(() => {
|
|
107
|
-
var
|
|
108
|
-
return ((
|
|
108
|
+
var s;
|
|
109
|
+
return ((s = t.localeText) == null ? void 0 : s.toolbarTitle) == null ? t.localeText : a({}, t.localeText, {
|
|
109
110
|
datePickerToolbarTitle: t.localeText.toolbarTitle
|
|
110
111
|
});
|
|
111
112
|
}, [t.localeText]);
|
|
112
|
-
return
|
|
113
|
+
return a({}, t, r, {
|
|
113
114
|
localeText: o
|
|
114
115
|
}, $({
|
|
115
116
|
views: t.views,
|
|
@@ -117,38 +118,38 @@ function S(l, n) {
|
|
|
117
118
|
defaultViews: ["year", "day"],
|
|
118
119
|
defaultOpenTo: "day"
|
|
119
120
|
}), {
|
|
120
|
-
slots:
|
|
121
|
+
slots: a({
|
|
121
122
|
toolbar: g
|
|
122
123
|
}, t.slots)
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
|
-
const
|
|
126
|
+
const be = (l) => {
|
|
126
127
|
const n = K(l);
|
|
127
128
|
return Z({
|
|
128
129
|
manager: n,
|
|
129
130
|
props: l
|
|
130
131
|
});
|
|
131
|
-
},
|
|
132
|
+
}, pe = ["slots", "slotProps"], D = /* @__PURE__ */ p.forwardRef(function(n, t) {
|
|
132
133
|
const r = y({
|
|
133
134
|
props: n,
|
|
134
135
|
name: "MuiDateField"
|
|
135
136
|
}), {
|
|
136
137
|
slots: o,
|
|
137
|
-
slotProps:
|
|
138
|
-
} = r,
|
|
139
|
-
slotProps:
|
|
138
|
+
slotProps: s
|
|
139
|
+
} = r, i = O(r, pe), f = G({
|
|
140
|
+
slotProps: s,
|
|
140
141
|
ref: t,
|
|
141
|
-
externalForwardedProps:
|
|
142
|
-
}),
|
|
142
|
+
externalForwardedProps: i
|
|
143
|
+
}), c = be(f);
|
|
143
144
|
return /* @__PURE__ */ b.jsx(J, {
|
|
144
145
|
slots: o,
|
|
145
|
-
slotProps:
|
|
146
|
-
fieldResponse:
|
|
146
|
+
slotProps: s,
|
|
147
|
+
fieldResponse: c,
|
|
147
148
|
defaultOpenPickerIcon: X
|
|
148
149
|
});
|
|
149
150
|
});
|
|
150
|
-
process.env.NODE_ENV !== "production" && (
|
|
151
|
-
process.env.NODE_ENV !== "production" && (
|
|
151
|
+
process.env.NODE_ENV !== "production" && (D.displayName = "DateField");
|
|
152
|
+
process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
152
153
|
// ----------------------------- Warning --------------------------------
|
|
153
154
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
154
155
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -264,7 +265,7 @@ process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
|
264
265
|
/**
|
|
265
266
|
* Pass a ref to the `input` element.
|
|
266
267
|
*/
|
|
267
|
-
inputRef:
|
|
268
|
+
inputRef: h,
|
|
268
269
|
/**
|
|
269
270
|
* The label content.
|
|
270
271
|
*/
|
|
@@ -430,34 +431,34 @@ process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
|
430
431
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
431
432
|
});
|
|
432
433
|
const k = /* @__PURE__ */ p.forwardRef(function(n, t) {
|
|
433
|
-
var
|
|
434
|
-
const r = P(), o = S(n, "MuiDesktopDatePicker"),
|
|
434
|
+
var c;
|
|
435
|
+
const r = P(), o = S(n, "MuiDesktopDatePicker"), s = a({
|
|
435
436
|
day: m,
|
|
436
437
|
month: m,
|
|
437
438
|
year: m
|
|
438
|
-
}, o.viewRenderers),
|
|
439
|
+
}, o.viewRenderers), i = a({}, o, {
|
|
439
440
|
closeOnSelect: o.closeOnSelect ?? !0,
|
|
440
|
-
viewRenderers:
|
|
441
|
+
viewRenderers: s,
|
|
441
442
|
format: T(r, o, !1),
|
|
442
443
|
yearsPerRow: o.yearsPerRow ?? 4,
|
|
443
|
-
slots:
|
|
444
|
-
field:
|
|
444
|
+
slots: a({
|
|
445
|
+
field: D
|
|
445
446
|
}, o.slots),
|
|
446
|
-
slotProps:
|
|
447
|
+
slotProps: a({}, o.slotProps, {
|
|
447
448
|
field: (d) => {
|
|
448
|
-
var
|
|
449
|
-
return
|
|
449
|
+
var u;
|
|
450
|
+
return a({}, C((u = o.slotProps) == null ? void 0 : u.field, d), M(o));
|
|
450
451
|
},
|
|
451
|
-
toolbar:
|
|
452
|
+
toolbar: a({
|
|
452
453
|
hidden: !0
|
|
453
|
-
}, (
|
|
454
|
+
}, (c = o.slotProps) == null ? void 0 : c.toolbar)
|
|
454
455
|
})
|
|
455
456
|
}), {
|
|
456
457
|
renderPicker: f
|
|
457
458
|
} = ee({
|
|
458
459
|
ref: t,
|
|
459
|
-
props:
|
|
460
|
-
valueManager:
|
|
460
|
+
props: i,
|
|
461
|
+
valueManager: R,
|
|
461
462
|
valueType: "date",
|
|
462
463
|
validator: F,
|
|
463
464
|
steps: null
|
|
@@ -549,7 +550,7 @@ k.propTypes = {
|
|
|
549
550
|
/**
|
|
550
551
|
* Pass a ref to the `input` element.
|
|
551
552
|
*/
|
|
552
|
-
inputRef:
|
|
553
|
+
inputRef: h,
|
|
553
554
|
/**
|
|
554
555
|
* The label content.
|
|
555
556
|
*/
|
|
@@ -780,32 +781,32 @@ k.propTypes = {
|
|
|
780
781
|
yearsPerRow: e.oneOf([3, 4])
|
|
781
782
|
};
|
|
782
783
|
const j = /* @__PURE__ */ p.forwardRef(function(n, t) {
|
|
783
|
-
var
|
|
784
|
-
const r = P(), o = S(n, "MuiMobileDatePicker"),
|
|
784
|
+
var c;
|
|
785
|
+
const r = P(), o = S(n, "MuiMobileDatePicker"), s = a({
|
|
785
786
|
day: m,
|
|
786
787
|
month: m,
|
|
787
788
|
year: m
|
|
788
|
-
}, o.viewRenderers),
|
|
789
|
-
viewRenderers:
|
|
789
|
+
}, o.viewRenderers), i = a({}, o, {
|
|
790
|
+
viewRenderers: s,
|
|
790
791
|
format: T(r, o, !1),
|
|
791
|
-
slots:
|
|
792
|
-
field:
|
|
792
|
+
slots: a({
|
|
793
|
+
field: D
|
|
793
794
|
}, o.slots),
|
|
794
|
-
slotProps:
|
|
795
|
+
slotProps: a({}, o.slotProps, {
|
|
795
796
|
field: (d) => {
|
|
796
|
-
var
|
|
797
|
-
return
|
|
797
|
+
var u;
|
|
798
|
+
return a({}, C((u = o.slotProps) == null ? void 0 : u.field, d), M(o));
|
|
798
799
|
},
|
|
799
|
-
toolbar:
|
|
800
|
+
toolbar: a({
|
|
800
801
|
hidden: !1
|
|
801
|
-
}, (
|
|
802
|
+
}, (c = o.slotProps) == null ? void 0 : c.toolbar)
|
|
802
803
|
})
|
|
803
804
|
}), {
|
|
804
805
|
renderPicker: f
|
|
805
806
|
} = oe({
|
|
806
807
|
ref: t,
|
|
807
|
-
props:
|
|
808
|
-
valueManager:
|
|
808
|
+
props: i,
|
|
809
|
+
valueManager: R,
|
|
809
810
|
valueType: "date",
|
|
810
811
|
validator: F,
|
|
811
812
|
steps: null
|
|
@@ -897,7 +898,7 @@ j.propTypes = {
|
|
|
897
898
|
/**
|
|
898
899
|
* Pass a ref to the `input` element.
|
|
899
900
|
*/
|
|
900
|
-
inputRef:
|
|
901
|
+
inputRef: h,
|
|
901
902
|
/**
|
|
902
903
|
* The label content.
|
|
903
904
|
*/
|
|
@@ -1127,23 +1128,23 @@ j.propTypes = {
|
|
|
1127
1128
|
*/
|
|
1128
1129
|
yearsPerRow: e.oneOf([3, 4])
|
|
1129
1130
|
};
|
|
1130
|
-
const
|
|
1131
|
+
const me = ["desktopModeMediaQuery"], x = /* @__PURE__ */ p.forwardRef(function(n, t) {
|
|
1131
1132
|
const r = y({
|
|
1132
1133
|
props: n,
|
|
1133
1134
|
name: "MuiDatePicker"
|
|
1134
1135
|
}), {
|
|
1135
1136
|
desktopModeMediaQuery: o = te
|
|
1136
|
-
} = r,
|
|
1137
|
-
return
|
|
1137
|
+
} = r, s = O(r, me);
|
|
1138
|
+
return se(o, {
|
|
1138
1139
|
defaultMatches: !0
|
|
1139
|
-
}) ? /* @__PURE__ */ b.jsx(k,
|
|
1140
|
+
}) ? /* @__PURE__ */ b.jsx(k, a({
|
|
1140
1141
|
ref: t
|
|
1141
|
-
},
|
|
1142
|
+
}, s)) : /* @__PURE__ */ b.jsx(j, a({
|
|
1142
1143
|
ref: t
|
|
1143
|
-
},
|
|
1144
|
+
}, s));
|
|
1144
1145
|
});
|
|
1145
|
-
process.env.NODE_ENV !== "production" && (
|
|
1146
|
-
process.env.NODE_ENV !== "production" && (
|
|
1146
|
+
process.env.NODE_ENV !== "production" && (x.displayName = "DatePicker");
|
|
1147
|
+
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
1147
1148
|
// ----------------------------- Warning --------------------------------
|
|
1148
1149
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1149
1150
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1233,7 +1234,7 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
1233
1234
|
/**
|
|
1234
1235
|
* Pass a ref to the `input` element.
|
|
1235
1236
|
*/
|
|
1236
|
-
inputRef:
|
|
1237
|
+
inputRef: h,
|
|
1237
1238
|
/**
|
|
1238
1239
|
* The label content.
|
|
1239
1240
|
*/
|
|
@@ -1463,20 +1464,36 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
1463
1464
|
*/
|
|
1464
1465
|
yearsPerRow: e.oneOf([3, 4])
|
|
1465
1466
|
});
|
|
1466
|
-
function
|
|
1467
|
-
|
|
1468
|
-
|
|
1467
|
+
function Me({ label: l, required: n = !1, error: t, htmlFor: r, hint: o, ...s }) {
|
|
1468
|
+
const i = I();
|
|
1469
|
+
return /* @__PURE__ */ b.jsx(L, { label: l, required: n, error: t, htmlFor: r, hint: o, children: /* @__PURE__ */ b.jsx(
|
|
1470
|
+
x,
|
|
1469
1471
|
{
|
|
1470
1472
|
enableAccessibleFieldDOMStructure: !1,
|
|
1471
1473
|
slots: {
|
|
1472
1474
|
textField: z,
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
+
// Use Material-UI TextField as input
|
|
1476
|
+
...s.slots || {}
|
|
1477
|
+
// Allow user to override slots if needed
|
|
1475
1478
|
},
|
|
1476
|
-
|
|
1479
|
+
slotProps: {
|
|
1480
|
+
popper: {
|
|
1481
|
+
sx: {
|
|
1482
|
+
"& .MuiPaper-root": {
|
|
1483
|
+
border: "1px solid var(--s-palette-divider)",
|
|
1484
|
+
borderRadius: (i.vars || i).shape.borderRadius,
|
|
1485
|
+
boxShadow: "none",
|
|
1486
|
+
backgroundImage: "none"
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
...s.slotProps || {}
|
|
1491
|
+
// Allow user to override slotProps if needed
|
|
1492
|
+
},
|
|
1493
|
+
...s
|
|
1477
1494
|
}
|
|
1478
1495
|
) });
|
|
1479
1496
|
}
|
|
1480
1497
|
export {
|
|
1481
|
-
|
|
1498
|
+
Me as default
|
|
1482
1499
|
};
|
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
import { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props interface for SDateTimePicker component - extends Material-UI X DateTimePickerProps
|
|
5
|
+
* with form integration capabilities
|
|
6
|
+
*/
|
|
3
7
|
export interface SDateTimePickerProps extends DateTimePickerProps {
|
|
8
|
+
/** Field label displayed above the datetime picker */
|
|
4
9
|
label?: string | React.ReactNode;
|
|
10
|
+
/** Whether the field is required (shows asterisk in label) */
|
|
5
11
|
required?: boolean;
|
|
12
|
+
/** Error message to display below the field */
|
|
6
13
|
error?: string;
|
|
14
|
+
/** HTML id attribute for the input element */
|
|
7
15
|
htmlFor?: string;
|
|
16
|
+
/** Help text shown in tooltip next to the label */
|
|
8
17
|
hint?: string;
|
|
9
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* SDateTimePicker - A standardized date and time picker component that wraps Material-UI X DateTimePicker
|
|
21
|
+
* with consistent form labeling, validation, and help text patterns.
|
|
22
|
+
*
|
|
23
|
+
* Key features:
|
|
24
|
+
* - Integrates with SForm for consistent label and error handling
|
|
25
|
+
* - Uses Material-UI TextField as the default input component
|
|
26
|
+
* - Maintains full Material-UI X DateTimePicker API compatibility
|
|
27
|
+
* - Provides accessible form labeling with htmlFor/id association
|
|
28
|
+
* - Includes help text tooltip functionality
|
|
29
|
+
* - Disables accessible field DOM structure for better styling control
|
|
30
|
+
* - Allows slot overrides for advanced customization
|
|
31
|
+
* - Combines both date and time selection in a single input
|
|
32
|
+
*
|
|
33
|
+
* @param props - SDateTimePickerProps with form integration and Material-UI X DateTimePicker props
|
|
34
|
+
* @returns JSX.Element - Wrapped DateTimePicker with form labeling and validation
|
|
35
|
+
*/
|
|
10
36
|
declare function SDateTimePicker({ label, required, error, htmlFor, hint, ...props }: SDateTimePickerProps): React.JSX.Element;
|
|
11
37
|
export default SDateTimePicker;
|