@solostylist/ui-kit 1.0.196 → 1.0.198
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-JWPHrR6I.js → ArrowUpward-D8eqD-si.js} +1 -1
- package/dist/{Box-p3bpOtdn.js → Box-BkXoTbe8.js} +3 -3
- package/dist/{ButtonBase-PbSTzuUP.js → ButtonBase-D73M0QY5.js} +7 -7
- package/dist/{ChevronLeft-BJjuFNNQ.js → ChevronLeft-BmgmPHp9.js} +1 -1
- package/dist/{ChevronRight-5ZX3FodP.js → ChevronRight-DbWSr8yz.js} +1 -1
- package/dist/{Close-C-pCw-CD.js → Close-lHCUMitI.js} +1 -1
- package/dist/{ContentCopy-CNxsEhmq.js → ContentCopy-D4SuJd86.js} +1 -1
- package/dist/{DefaultPropsProvider-2MEHB2yv.js → DefaultPropsProvider-DPuuPIbS.js} +2 -2
- package/dist/{Download-D97XSAig.js → Download-BoRQUwCf.js} +1 -1
- package/dist/{ExpandMore-CTZrSZlF.js → ExpandMore-C7yRQv1-.js} +1 -1
- package/dist/{Favorite-Cvjg7GqN.js → Favorite-Bz_HcMgN.js} +1 -1
- package/dist/{Menu-_ZW9WiF2.js → Menu-GVFDMHCN.js} +137 -131
- package/dist/{MenuItem-DTapLhin.js → MenuItem-2wG8I2HO.js} +5 -5
- package/dist/{Paper-5nSdRRBA.js → Paper-CR019bki.js} +6 -6
- package/dist/{Select-J5gDqfEk.js → Select-80JhW337.js} +7 -7
- package/dist/{Stack-BlwLEm6H.js → Stack-Dfjnuorw.js} +5 -5
- package/dist/{Typography-Cum5_Ehu.js → Typography-PcmlIqm1.js} +4 -4
- package/dist/assets/s-overlay-scrollbar.css +1 -1
- package/dist/{createSvgIcon-DTNHY3_v.js → createSvgIcon-BkbeLOhM.js} +3 -3
- package/dist/{createTheme-CIXJrNxb.js → createTheme-DgoJyWM-.js} +874 -871
- package/dist/defaultTheme-CulFxfLR.js +5 -0
- package/dist/{extendSxProp-CyoueGTe.js → extendSxProp-BJEIxcAx.js} +1 -1
- package/dist/{index-8LcCMmwl.js → index-DtGYsHSv.js} +4 -4
- package/dist/s-accordion/s-accordion.js +89 -89
- package/dist/s-action-overlay/s-action-overlay.js +7 -7
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +44 -0
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +241 -272
- package/dist/s-avatar/s-avatar.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +4 -4
- package/dist/s-carousel/s-carousel.js +4 -4
- package/dist/s-chat-input/s-chat-input.js +4 -4
- package/dist/s-chat-message/s-chat-message.js +135 -124
- package/dist/s-chips/s-chips.js +35 -35
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +5 -5
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-countdown/s-count-down.d.ts +15 -10
- package/dist/s-countdown/s-count-down.js +84 -101
- package/dist/s-data-table/s-data-table.js +75 -76
- package/dist/s-date-picker/s-date-picker.js +43 -47
- package/dist/s-datetime-picker/s-datetime-picker.js +782 -782
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +15 -15
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +7 -7
- package/dist/s-label/s-label.d.ts +1 -1
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +8 -8
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-moving-border/s-moving-border.d.ts +5 -5
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +6 -6
- package/dist/s-pixel-reveal/s-pixel-reveal.js +76 -71
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +2 -2
- package/dist/s-review/s-review.d.ts +3 -2
- package/dist/s-review/s-review.js +19 -19
- package/dist/s-scroll-to-top/s-scroll-to-top.js +5 -5
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +1 -1
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +3 -3
- package/dist/s-scroll-velocity/scroll-velocity-row.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -0
- package/dist/s-select/s-select.js +60 -72
- package/dist/s-select-list/s-select-list.js +1 -1
- package/dist/s-stripe/s-stripe-cvc.d.ts +1 -1
- package/dist/s-stripe/s-stripe-expiry.d.ts +1 -1
- package/dist/s-stripe/s-stripe-number.d.ts +1 -1
- package/dist/s-stripe/stripe-input.d.ts +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +64 -60
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +3 -3
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-BR6UL29H.js → styled-8Y5KoVix.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +1 -1
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/popover.js +2 -2
- package/dist/theme/components/skeleton.js +1 -1
- package/dist/theme/components/tooltip.js +5 -5
- package/dist/theme/customizations/data-display.js +12 -12
- package/dist/theme/customizations/feedback.js +2 -2
- package/dist/theme/customizations/inputs.js +12 -12
- package/dist/theme/customizations/navigation.js +28 -28
- package/dist/theme/customizations/surfaces.js +11 -11
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useMobilePicker-C0pYjskU.js → useMobilePicker-DVnEuXv1.js} +3936 -3653
- package/dist/{useTheme-DSvhq4Np.js → useTheme-CWPkv7g3.js} +1 -1
- package/dist/{useThemeProps-C-oV4Fbz.js → useThemeProps-XYgXGzjS.js} +1 -1
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils-CHdpkEZx.js +33 -0
- package/dist/{warning-BZ61Y8gI.js → warning-Ba-7BBAN.js} +3 -3
- package/package.json +59 -59
- package/dist/defaultTheme-DLue8Fr1.js +0 -5
- package/dist/utils-DJIrqgo5.js +0 -18
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as l } from "../jsx-runtime-tc70JA_2.js";
|
|
2
2
|
import * as g from "react";
|
|
3
3
|
import { SEmpty as xe } from "../s-empty/s-empty.js";
|
|
4
|
-
import { c as j, P as e } from "../createTheme-
|
|
4
|
+
import { c as j, P as e } from "../createTheme-DgoJyWM-.js";
|
|
5
5
|
import { c as H } from "../clsx-OuTLNxxd.js";
|
|
6
|
-
import { c as N, u as I, m as D } from "../DefaultPropsProvider-
|
|
6
|
+
import { c as N, u as I, m as D } from "../DefaultPropsProvider-DPuuPIbS.js";
|
|
7
7
|
import { g as z } from "../generateUtilityClass-BhfUaMgk.js";
|
|
8
8
|
import { g as B } from "../generateUtilityClasses-E9gROIFd.js";
|
|
9
|
-
import { s as P, r as te } from "../styled-
|
|
9
|
+
import { s as P, r as te } from "../styled-8Y5KoVix.js";
|
|
10
10
|
import { u as ve } from "../useFormControl-CatNKXAi.js";
|
|
11
|
-
import {
|
|
11
|
+
import { b as _, B as Te, r as Ce } from "../ButtonBase-D73M0QY5.js";
|
|
12
12
|
import { u as ke } from "../useControlled-D1L5tREc.js";
|
|
13
|
-
import { c as q } from "../createSvgIcon-
|
|
13
|
+
import { c as q } from "../createSvgIcon-BkbeLOhM.js";
|
|
14
14
|
import { c as Q } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
15
15
|
import { m as je } from "../mergeSlotProps-CuzBQdlp.js";
|
|
16
16
|
function we(o) {
|
|
@@ -23,11 +23,11 @@ const Oe = (o) => {
|
|
|
23
23
|
checked: s,
|
|
24
24
|
disabled: n,
|
|
25
25
|
edge: i
|
|
26
|
-
} = o,
|
|
26
|
+
} = o, a = {
|
|
27
27
|
root: ["root", s && "checked", n && "disabled", i && `edge${j(i)}`],
|
|
28
28
|
input: ["input"]
|
|
29
29
|
};
|
|
30
|
-
return N(
|
|
30
|
+
return N(a, we, t);
|
|
31
31
|
}, Re = P(Te, {
|
|
32
32
|
name: "MuiSwitchBase"
|
|
33
33
|
})({
|
|
@@ -84,7 +84,7 @@ const Oe = (o) => {
|
|
|
84
84
|
const {
|
|
85
85
|
autoFocus: n,
|
|
86
86
|
checked: i,
|
|
87
|
-
checkedIcon:
|
|
87
|
+
checkedIcon: a,
|
|
88
88
|
defaultChecked: c,
|
|
89
89
|
disabled: d,
|
|
90
90
|
disableFocusRipple: p = !1,
|
|
@@ -95,13 +95,13 @@ const Oe = (o) => {
|
|
|
95
95
|
inputRef: h,
|
|
96
96
|
name: T,
|
|
97
97
|
onBlur: O,
|
|
98
|
-
onChange:
|
|
98
|
+
onChange: r,
|
|
99
99
|
onFocus: x,
|
|
100
100
|
readOnly: m,
|
|
101
101
|
required: C = !1,
|
|
102
102
|
tabIndex: u,
|
|
103
103
|
type: R,
|
|
104
|
-
value:
|
|
104
|
+
value: E,
|
|
105
105
|
slots: le = {},
|
|
106
106
|
slotProps: ie = {},
|
|
107
107
|
...ce
|
|
@@ -118,14 +118,14 @@ const Oe = (o) => {
|
|
|
118
118
|
if (b.nativeEvent.defaultPrevented || m)
|
|
119
119
|
return;
|
|
120
120
|
const k = b.target.checked;
|
|
121
|
-
de(k),
|
|
121
|
+
de(k), r && r(b, k);
|
|
122
122
|
};
|
|
123
|
-
let
|
|
124
|
-
S && typeof
|
|
123
|
+
let F = d;
|
|
124
|
+
S && typeof F > "u" && (F = S.disabled);
|
|
125
125
|
const be = R === "checkbox" || R === "radio", V = {
|
|
126
126
|
...t,
|
|
127
127
|
checked: J,
|
|
128
|
-
disabled:
|
|
128
|
+
disabled: F,
|
|
129
129
|
disableFocusRipple: p,
|
|
130
130
|
edge: y
|
|
131
131
|
}, G = Oe(V), K = {
|
|
@@ -157,7 +157,6 @@ const Oe = (o) => {
|
|
|
157
157
|
additionalProps: {
|
|
158
158
|
centerRipple: !0,
|
|
159
159
|
focusRipple: !p,
|
|
160
|
-
disabled: $,
|
|
161
160
|
role: void 0,
|
|
162
161
|
tabIndex: null
|
|
163
162
|
}
|
|
@@ -177,15 +176,15 @@ const Oe = (o) => {
|
|
|
177
176
|
autoFocus: n,
|
|
178
177
|
checked: i,
|
|
179
178
|
defaultChecked: c,
|
|
180
|
-
disabled:
|
|
179
|
+
disabled: F,
|
|
181
180
|
id: be ? v : void 0,
|
|
182
181
|
name: T,
|
|
183
182
|
readOnly: m,
|
|
184
183
|
required: C,
|
|
185
184
|
tabIndex: u,
|
|
186
185
|
type: R,
|
|
187
|
-
...R === "checkbox" &&
|
|
188
|
-
value:
|
|
186
|
+
...R === "checkbox" && E === void 0 ? {} : {
|
|
187
|
+
value: E
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
});
|
|
@@ -193,7 +192,7 @@ const Oe = (o) => {
|
|
|
193
192
|
...ye,
|
|
194
193
|
children: [/* @__PURE__ */ l.jsx(he, {
|
|
195
194
|
...me
|
|
196
|
-
}), J ?
|
|
195
|
+
}), J ? a : f]
|
|
197
196
|
});
|
|
198
197
|
});
|
|
199
198
|
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
@@ -331,9 +330,9 @@ const A = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
331
330
|
indeterminate: s,
|
|
332
331
|
color: n,
|
|
333
332
|
size: i
|
|
334
|
-
} = o,
|
|
333
|
+
} = o, a = {
|
|
335
334
|
root: ["root", s && "indeterminate", `color${j(n)}`, `size${j(i)}`]
|
|
336
|
-
}, c = N(
|
|
335
|
+
}, c = N(a, Be, t);
|
|
337
336
|
return {
|
|
338
337
|
...t,
|
|
339
338
|
// forward the disabled and checked classes to the SwitchBase
|
|
@@ -405,7 +404,7 @@ const A = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
405
404
|
name: "MuiCheckbox"
|
|
406
405
|
}), {
|
|
407
406
|
checkedIcon: i = Ie,
|
|
408
|
-
color:
|
|
407
|
+
color: a = "primary",
|
|
409
408
|
icon: c = $e,
|
|
410
409
|
indeterminate: d = !1,
|
|
411
410
|
indeterminateIcon: p = Ee,
|
|
@@ -416,13 +415,13 @@ const A = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
416
415
|
slots: h = {},
|
|
417
416
|
slotProps: T = {},
|
|
418
417
|
...O
|
|
419
|
-
} = n,
|
|
418
|
+
} = n, r = d ? p : c, x = d ? p : i, m = {
|
|
420
419
|
...n,
|
|
421
420
|
disableRipple: v,
|
|
422
|
-
color:
|
|
421
|
+
color: a,
|
|
423
422
|
indeterminate: d,
|
|
424
423
|
size: f
|
|
425
|
-
}, C = Me(m), u = T.input ?? y, [R,
|
|
424
|
+
}, C = Me(m), u = T.input ?? y, [R, E] = _("root", {
|
|
426
425
|
ref: s,
|
|
427
426
|
elementType: He,
|
|
428
427
|
className: H(C.root, w),
|
|
@@ -435,8 +434,8 @@ const A = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
435
434
|
ownerState: m,
|
|
436
435
|
additionalProps: {
|
|
437
436
|
type: "checkbox",
|
|
438
|
-
icon: /* @__PURE__ */ g.cloneElement(
|
|
439
|
-
fontSize:
|
|
437
|
+
icon: /* @__PURE__ */ g.cloneElement(r, {
|
|
438
|
+
fontSize: r.props.fontSize ?? f
|
|
440
439
|
}),
|
|
441
440
|
checkedIcon: /* @__PURE__ */ g.cloneElement(x, {
|
|
442
441
|
fontSize: x.props.fontSize ?? f
|
|
@@ -451,7 +450,7 @@ const A = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
451
450
|
}
|
|
452
451
|
});
|
|
453
452
|
return /* @__PURE__ */ l.jsx(R, {
|
|
454
|
-
...
|
|
453
|
+
...E,
|
|
455
454
|
classes: C
|
|
456
455
|
});
|
|
457
456
|
});
|
|
@@ -620,14 +619,14 @@ const Ue = (o) => {
|
|
|
620
619
|
name: "MuiTable"
|
|
621
620
|
}), {
|
|
622
621
|
className: i,
|
|
623
|
-
component:
|
|
622
|
+
component: a = X,
|
|
624
623
|
padding: c = "normal",
|
|
625
624
|
size: d = "medium",
|
|
626
625
|
stickyHeader: p = !1,
|
|
627
626
|
...y
|
|
628
627
|
} = n, f = {
|
|
629
628
|
...n,
|
|
630
|
-
component:
|
|
629
|
+
component: a,
|
|
631
630
|
padding: c,
|
|
632
631
|
size: d,
|
|
633
632
|
stickyHeader: p
|
|
@@ -639,8 +638,8 @@ const Ue = (o) => {
|
|
|
639
638
|
return /* @__PURE__ */ l.jsx(L.Provider, {
|
|
640
639
|
value: w,
|
|
641
640
|
children: /* @__PURE__ */ l.jsx(De, {
|
|
642
|
-
as:
|
|
643
|
-
role:
|
|
641
|
+
as: a,
|
|
642
|
+
role: a === X ? null : "table",
|
|
644
643
|
ref: s,
|
|
645
644
|
className: H(v.root, i),
|
|
646
645
|
ownerState: f,
|
|
@@ -690,8 +689,8 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
690
689
|
*/
|
|
691
690
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
692
691
|
});
|
|
693
|
-
const
|
|
694
|
-
process.env.NODE_ENV !== "production" && (
|
|
692
|
+
const $ = /* @__PURE__ */ g.createContext();
|
|
693
|
+
process.env.NODE_ENV !== "production" && ($.displayName = "Tablelvl2Context");
|
|
695
694
|
function Ve(o) {
|
|
696
695
|
return z("MuiTableBody", o);
|
|
697
696
|
}
|
|
@@ -716,19 +715,19 @@ const Ae = (o) => {
|
|
|
716
715
|
name: "MuiTableBody"
|
|
717
716
|
}), {
|
|
718
717
|
className: i,
|
|
719
|
-
component:
|
|
718
|
+
component: a = Y,
|
|
720
719
|
...c
|
|
721
720
|
} = n, d = {
|
|
722
721
|
...n,
|
|
723
|
-
component:
|
|
722
|
+
component: a
|
|
724
723
|
}, p = Ae(d);
|
|
725
|
-
return /* @__PURE__ */ l.jsx(
|
|
724
|
+
return /* @__PURE__ */ l.jsx($.Provider, {
|
|
726
725
|
value: We,
|
|
727
726
|
children: /* @__PURE__ */ l.jsx(_e, {
|
|
728
727
|
className: H(p.root, i),
|
|
729
|
-
as:
|
|
728
|
+
as: a,
|
|
730
729
|
ref: s,
|
|
731
|
-
role:
|
|
730
|
+
role: a === Y ? null : "rowgroup",
|
|
732
731
|
ownerState: d,
|
|
733
732
|
...c
|
|
734
733
|
})
|
|
@@ -770,10 +769,10 @@ const Le = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
770
769
|
variant: s,
|
|
771
770
|
align: n,
|
|
772
771
|
padding: i,
|
|
773
|
-
size:
|
|
772
|
+
size: a,
|
|
774
773
|
stickyHeader: c
|
|
775
774
|
} = o, d = {
|
|
776
|
-
root: ["root", s, c && "stickyHeader", n !== "inherit" && `align${j(n)}`, i !== "normal" && `padding${j(i)}`, `size${j(
|
|
775
|
+
root: ["root", s, c && "stickyHeader", n !== "inherit" && `align${j(n)}`, i !== "normal" && `padding${j(i)}`, `size${j(a)}`]
|
|
777
776
|
};
|
|
778
777
|
return N(d, qe, t);
|
|
779
778
|
}, Ge = P("td", {
|
|
@@ -899,7 +898,7 @@ const Le = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
899
898
|
name: "MuiTableCell"
|
|
900
899
|
}), {
|
|
901
900
|
align: i = "inherit",
|
|
902
|
-
className:
|
|
901
|
+
className: a,
|
|
903
902
|
component: c,
|
|
904
903
|
padding: d,
|
|
905
904
|
scope: p,
|
|
@@ -907,15 +906,15 @@ const Le = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
907
906
|
sortDirection: f,
|
|
908
907
|
variant: v,
|
|
909
908
|
...w
|
|
910
|
-
} = n, h = g.useContext(L), T = g.useContext(
|
|
911
|
-
let
|
|
912
|
-
c ?
|
|
909
|
+
} = n, h = g.useContext(L), T = g.useContext($), O = T && T.variant === "head";
|
|
910
|
+
let r;
|
|
911
|
+
c ? r = c : r = O ? "th" : "td";
|
|
913
912
|
let x = p;
|
|
914
|
-
|
|
913
|
+
r === "td" ? x = void 0 : !x && O && (x = "col");
|
|
915
914
|
const m = v || T && T.variant, C = {
|
|
916
915
|
...n,
|
|
917
916
|
align: i,
|
|
918
|
-
component:
|
|
917
|
+
component: r,
|
|
919
918
|
padding: d || (h && h.padding ? h.padding : "normal"),
|
|
920
919
|
size: y || (h && h.size ? h.size : "medium"),
|
|
921
920
|
sortDirection: f,
|
|
@@ -924,9 +923,9 @@ const Le = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
924
923
|
}, u = Je(C);
|
|
925
924
|
let R = null;
|
|
926
925
|
return f && (R = f === "asc" ? "ascending" : "descending"), /* @__PURE__ */ l.jsx(Ge, {
|
|
927
|
-
as:
|
|
926
|
+
as: r,
|
|
928
927
|
ref: s,
|
|
929
|
-
className: H(u.root,
|
|
928
|
+
className: H(u.root, a),
|
|
930
929
|
"aria-sort": R,
|
|
931
930
|
scope: x,
|
|
932
931
|
ownerState: C,
|
|
@@ -1015,19 +1014,19 @@ const Qe = (o) => {
|
|
|
1015
1014
|
name: "MuiTableHead"
|
|
1016
1015
|
}), {
|
|
1017
1016
|
className: i,
|
|
1018
|
-
component:
|
|
1017
|
+
component: a = Z,
|
|
1019
1018
|
...c
|
|
1020
1019
|
} = n, d = {
|
|
1021
1020
|
...n,
|
|
1022
|
-
component:
|
|
1021
|
+
component: a
|
|
1023
1022
|
}, p = Qe(d);
|
|
1024
|
-
return /* @__PURE__ */ l.jsx(
|
|
1023
|
+
return /* @__PURE__ */ l.jsx($.Provider, {
|
|
1025
1024
|
value: Ye,
|
|
1026
1025
|
children: /* @__PURE__ */ l.jsx(Xe, {
|
|
1027
|
-
as:
|
|
1026
|
+
as: a,
|
|
1028
1027
|
className: H(p.root, i),
|
|
1029
1028
|
ref: s,
|
|
1030
|
-
role:
|
|
1029
|
+
role: a === Z ? null : "rowgroup",
|
|
1031
1030
|
ownerState: d,
|
|
1032
1031
|
...c
|
|
1033
1032
|
})
|
|
@@ -1069,10 +1068,10 @@ const ee = B("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), eo
|
|
|
1069
1068
|
selected: s,
|
|
1070
1069
|
hover: n,
|
|
1071
1070
|
head: i,
|
|
1072
|
-
footer:
|
|
1071
|
+
footer: a
|
|
1073
1072
|
} = o;
|
|
1074
1073
|
return N({
|
|
1075
|
-
root: ["root", s && "selected", n && "hover", i && "head",
|
|
1074
|
+
root: ["root", s && "selected", n && "hover", i && "head", a && "footer"]
|
|
1076
1075
|
}, Ze, t);
|
|
1077
1076
|
}, oo = P("tr", {
|
|
1078
1077
|
name: "MuiTableRow",
|
|
@@ -1106,23 +1105,23 @@ const ee = B("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), eo
|
|
|
1106
1105
|
name: "MuiTableRow"
|
|
1107
1106
|
}), {
|
|
1108
1107
|
className: i,
|
|
1109
|
-
component:
|
|
1108
|
+
component: a = oe,
|
|
1110
1109
|
hover: c = !1,
|
|
1111
1110
|
selected: d = !1,
|
|
1112
1111
|
...p
|
|
1113
|
-
} = n, y = g.useContext(
|
|
1112
|
+
} = n, y = g.useContext($), f = {
|
|
1114
1113
|
...n,
|
|
1115
|
-
component:
|
|
1114
|
+
component: a,
|
|
1116
1115
|
hover: c,
|
|
1117
1116
|
selected: d,
|
|
1118
1117
|
head: y && y.variant === "head",
|
|
1119
1118
|
footer: y && y.variant === "footer"
|
|
1120
1119
|
}, v = eo(f);
|
|
1121
1120
|
return /* @__PURE__ */ l.jsx(oo, {
|
|
1122
|
-
as:
|
|
1121
|
+
as: a,
|
|
1123
1122
|
ref: s,
|
|
1124
1123
|
className: H(v.root, i),
|
|
1125
|
-
role:
|
|
1124
|
+
role: a === oe ? null : "row",
|
|
1126
1125
|
ownerState: f,
|
|
1127
1126
|
...p
|
|
1128
1127
|
});
|
|
@@ -1170,7 +1169,7 @@ const to = ({
|
|
|
1170
1169
|
hover: s,
|
|
1171
1170
|
onClick: n,
|
|
1172
1171
|
onDeselectAll: i,
|
|
1173
|
-
onDeselectOne:
|
|
1172
|
+
onDeselectOne: a,
|
|
1174
1173
|
onSelectOne: c,
|
|
1175
1174
|
onSelectAll: d,
|
|
1176
1175
|
rows: p,
|
|
@@ -1211,39 +1210,39 @@ const to = ({
|
|
|
1211
1210
|
{
|
|
1212
1211
|
checked: T,
|
|
1213
1212
|
indeterminate: h,
|
|
1214
|
-
onChange: (
|
|
1215
|
-
T ? i?.(
|
|
1213
|
+
onChange: (r) => {
|
|
1214
|
+
T ? i?.(r) : d?.(r);
|
|
1216
1215
|
}
|
|
1217
1216
|
}
|
|
1218
1217
|
)
|
|
1219
1218
|
}
|
|
1220
1219
|
) : null,
|
|
1221
1220
|
o.map(
|
|
1222
|
-
(
|
|
1221
|
+
(r) => /* @__PURE__ */ l.jsx(
|
|
1223
1222
|
M,
|
|
1224
1223
|
{
|
|
1225
1224
|
sx: {
|
|
1226
1225
|
// Apply fixed width if specified
|
|
1227
|
-
width:
|
|
1228
|
-
minWidth:
|
|
1229
|
-
maxWidth:
|
|
1226
|
+
width: r.width,
|
|
1227
|
+
minWidth: r.width,
|
|
1228
|
+
maxWidth: r.width,
|
|
1230
1229
|
// Apply text alignment if specified
|
|
1231
|
-
...
|
|
1230
|
+
...r.align && { textAlign: r.align },
|
|
1232
1231
|
bgcolor: "action.hover",
|
|
1233
1232
|
backgroundClip: "padding-box",
|
|
1234
1233
|
borderTop: "1px solid",
|
|
1235
1234
|
borderColor: "divider"
|
|
1236
1235
|
},
|
|
1237
|
-
children:
|
|
1236
|
+
children: r.hideName ? null : r.name
|
|
1238
1237
|
},
|
|
1239
|
-
|
|
1238
|
+
r.name ?? O
|
|
1240
1239
|
)
|
|
1241
1240
|
)
|
|
1242
1241
|
] })
|
|
1243
1242
|
}
|
|
1244
1243
|
),
|
|
1245
|
-
/* @__PURE__ */ l.jsx(ae, { children: p.length ? p.map((
|
|
1246
|
-
const m =
|
|
1244
|
+
/* @__PURE__ */ l.jsx(ae, { children: p.length ? p.map((r, x) => {
|
|
1245
|
+
const m = r.id ?? v?.(r), C = m ? f?.has(m) : !1;
|
|
1247
1246
|
return /* @__PURE__ */ l.jsxs(
|
|
1248
1247
|
U,
|
|
1249
1248
|
{
|
|
@@ -1251,7 +1250,7 @@ const to = ({
|
|
|
1251
1250
|
selected: C,
|
|
1252
1251
|
...n && {
|
|
1253
1252
|
onClick: (u) => {
|
|
1254
|
-
n(u,
|
|
1253
|
+
n(u, r);
|
|
1255
1254
|
}
|
|
1256
1255
|
},
|
|
1257
1256
|
sx: { ...n && { cursor: "pointer" } },
|
|
@@ -1261,7 +1260,7 @@ const to = ({
|
|
|
1261
1260
|
{
|
|
1262
1261
|
checked: m ? C : !1,
|
|
1263
1262
|
onChange: (u) => {
|
|
1264
|
-
C ?
|
|
1263
|
+
C ? a?.(u, r) : c?.(u, r);
|
|
1265
1264
|
},
|
|
1266
1265
|
onClick: (u) => {
|
|
1267
1266
|
n && u.stopPropagation();
|
|
@@ -1272,7 +1271,7 @@ const to = ({
|
|
|
1272
1271
|
(u) => /* @__PURE__ */ l.jsx(M, {
|
|
1273
1272
|
sx: { ...u.align && { textAlign: u.align } },
|
|
1274
1273
|
// Use custom formatter if provided, otherwise extract field value
|
|
1275
|
-
children: u.formatter ? u.formatter(
|
|
1274
|
+
children: u.formatter ? u.formatter(r, x) : u.field ? r[u.field] : null
|
|
1276
1275
|
}, u.name)
|
|
1277
1276
|
)
|
|
1278
1277
|
]
|
|
@@ -3,27 +3,23 @@ import { useTheme as I, TextField as z } from "@mui/material";
|
|
|
3
3
|
import { SForm as L } from "../s-form/s-form.js";
|
|
4
4
|
import { _ as P, a as s } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
5
5
|
import * as f from "react";
|
|
6
|
-
import { P as e } from "../createTheme-
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { c as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { s as N } from "../styled-BR6UL29H.js";
|
|
13
|
-
import { c as le } from "../DefaultPropsProvider-2MEHB2yv.js";
|
|
14
|
-
import { T as ie } from "../Typography-Cum5_Ehu.js";
|
|
15
|
-
import { r as y, a as C } from "../ButtonBase-PbSTzuUP.js";
|
|
6
|
+
import { P as e } from "../createTheme-DgoJyWM-.js";
|
|
7
|
+
import { g as U, a as Y, u as O, b as q, c as Q, d as B, r as T, e as H, P as $, f as K, h as Z, i as G, j as J, k as X, l as ee, m as oe, C as te, n as m, o as p, p as M, q as F, s as se, v as R, t as N, w as ae, D as ne, x as re } from "../useMobilePicker-DVnEuXv1.js";
|
|
8
|
+
import { u as y } from "../warning-Ba-7BBAN.js";
|
|
9
|
+
import { c as le } from "../clsx-OuTLNxxd.js";
|
|
10
|
+
import { s as C } from "../styled-8Y5KoVix.js";
|
|
11
|
+
import { T as ie } from "../Typography-PcmlIqm1.js";
|
|
16
12
|
function ce(l) {
|
|
17
|
-
return
|
|
13
|
+
return U("MuiDatePickerToolbar", l);
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue = (l) =>
|
|
15
|
+
Y("MuiDatePickerToolbar", ["root", "title"]);
|
|
16
|
+
const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue = (l) => H({
|
|
21
17
|
root: ["root"],
|
|
22
18
|
title: ["title"]
|
|
23
|
-
}, ce, l), fe =
|
|
19
|
+
}, ce, l), fe = C($, {
|
|
24
20
|
name: "MuiDatePickerToolbar",
|
|
25
21
|
slot: "Root"
|
|
26
|
-
})({}), pe =
|
|
22
|
+
})({}), pe = C(ie, {
|
|
27
23
|
name: "MuiDatePickerToolbar",
|
|
28
24
|
slot: "Title"
|
|
29
25
|
})({
|
|
@@ -36,7 +32,7 @@ const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue =
|
|
|
36
32
|
}
|
|
37
33
|
}]
|
|
38
34
|
}), g = /* @__PURE__ */ f.forwardRef(function(a, t) {
|
|
39
|
-
const n =
|
|
35
|
+
const n = y({
|
|
40
36
|
props: a,
|
|
41
37
|
name: "MuiDatePickerToolbar"
|
|
42
38
|
}), {
|
|
@@ -48,7 +44,7 @@ const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue =
|
|
|
48
44
|
value: D,
|
|
49
45
|
views: v,
|
|
50
46
|
orientation: E
|
|
51
|
-
} =
|
|
47
|
+
} = q(), V = Q(), _ = B(), w = ue(d), A = f.useMemo(() => {
|
|
52
48
|
if (!b.isValid(D))
|
|
53
49
|
return r;
|
|
54
50
|
const W = T(b, {
|
|
@@ -60,7 +56,7 @@ const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue =
|
|
|
60
56
|
return /* @__PURE__ */ c.jsx(fe, s({
|
|
61
57
|
ref: t,
|
|
62
58
|
toolbarTitle: V.datePickerToolbarTitle,
|
|
63
|
-
className:
|
|
59
|
+
className: le(w.root, i)
|
|
64
60
|
}, u, {
|
|
65
61
|
children: /* @__PURE__ */ c.jsx(pe, {
|
|
66
62
|
variant: "h4",
|
|
@@ -103,15 +99,15 @@ process.env.NODE_ENV !== "production" && (g.propTypes = {
|
|
|
103
99
|
toolbarPlaceholder: e.node
|
|
104
100
|
});
|
|
105
101
|
function S(l, a) {
|
|
106
|
-
const t =
|
|
102
|
+
const t = y({
|
|
107
103
|
props: l,
|
|
108
104
|
name: a
|
|
109
|
-
}), n =
|
|
105
|
+
}), n = K(t), o = f.useMemo(() => t.localeText?.toolbarTitle == null ? t.localeText : s({}, t.localeText, {
|
|
110
106
|
datePickerToolbarTitle: t.localeText.toolbarTitle
|
|
111
107
|
}), [t.localeText]);
|
|
112
108
|
return s({}, t, n, {
|
|
113
109
|
localeText: o
|
|
114
|
-
},
|
|
110
|
+
}, Z({
|
|
115
111
|
views: t.views,
|
|
116
112
|
openTo: t.openTo,
|
|
117
113
|
defaultViews: ["year", "day"],
|
|
@@ -123,30 +119,30 @@ function S(l, a) {
|
|
|
123
119
|
});
|
|
124
120
|
}
|
|
125
121
|
const be = (l) => {
|
|
126
|
-
const a =
|
|
127
|
-
return
|
|
122
|
+
const a = G(l);
|
|
123
|
+
return J({
|
|
128
124
|
manager: a,
|
|
129
125
|
props: l
|
|
130
126
|
});
|
|
131
127
|
}, me = ["slots", "slotProps"], h = /* @__PURE__ */ f.forwardRef(function(a, t) {
|
|
132
|
-
const n =
|
|
128
|
+
const n = y({
|
|
133
129
|
props: a,
|
|
134
130
|
name: "MuiDateField"
|
|
135
131
|
}), {
|
|
136
132
|
slots: o,
|
|
137
133
|
slotProps: r
|
|
138
|
-
} = n, i = P(n, me), d =
|
|
134
|
+
} = n, i = P(n, me), d = X({
|
|
139
135
|
slotProps: r,
|
|
140
136
|
ref: t,
|
|
141
137
|
externalForwardedProps: i
|
|
142
138
|
}), u = be(d);
|
|
143
|
-
return /* @__PURE__ */ c.jsx(
|
|
139
|
+
return /* @__PURE__ */ c.jsx(ee, {
|
|
144
140
|
slots: o,
|
|
145
141
|
slotProps: r,
|
|
146
142
|
inputRef: i.inputRef,
|
|
147
|
-
children: /* @__PURE__ */ c.jsx(
|
|
143
|
+
children: /* @__PURE__ */ c.jsx(oe, {
|
|
148
144
|
fieldResponse: u,
|
|
149
|
-
defaultOpenPickerIcon:
|
|
145
|
+
defaultOpenPickerIcon: te
|
|
150
146
|
})
|
|
151
147
|
});
|
|
152
148
|
});
|
|
@@ -267,7 +263,7 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
|
267
263
|
/**
|
|
268
264
|
* Pass a ref to the `input` element.
|
|
269
265
|
*/
|
|
270
|
-
inputRef:
|
|
266
|
+
inputRef: m,
|
|
271
267
|
/**
|
|
272
268
|
* The label content.
|
|
273
269
|
*/
|
|
@@ -446,19 +442,19 @@ const k = /* @__PURE__ */ f.forwardRef(function(a, t) {
|
|
|
446
442
|
field: h
|
|
447
443
|
}, o.slots),
|
|
448
444
|
slotProps: s({}, o.slotProps, {
|
|
449
|
-
field: (u) => s({},
|
|
445
|
+
field: (u) => s({}, M(o.slotProps?.field, u), F(o)),
|
|
450
446
|
toolbar: s({
|
|
451
447
|
hidden: !0
|
|
452
448
|
}, o.slotProps?.toolbar)
|
|
453
449
|
})
|
|
454
450
|
}), {
|
|
455
451
|
renderPicker: d
|
|
456
|
-
} =
|
|
452
|
+
} = se({
|
|
457
453
|
ref: t,
|
|
458
454
|
props: i,
|
|
459
|
-
valueManager:
|
|
455
|
+
valueManager: N,
|
|
460
456
|
valueType: "date",
|
|
461
|
-
validator:
|
|
457
|
+
validator: R,
|
|
462
458
|
steps: null
|
|
463
459
|
});
|
|
464
460
|
return d();
|
|
@@ -548,7 +544,7 @@ k.propTypes = {
|
|
|
548
544
|
/**
|
|
549
545
|
* Pass a ref to the `input` element.
|
|
550
546
|
*/
|
|
551
|
-
inputRef:
|
|
547
|
+
inputRef: m,
|
|
552
548
|
/**
|
|
553
549
|
* The label content.
|
|
554
550
|
*/
|
|
@@ -796,19 +792,19 @@ const j = /* @__PURE__ */ f.forwardRef(function(a, t) {
|
|
|
796
792
|
field: h
|
|
797
793
|
}, o.slots),
|
|
798
794
|
slotProps: s({}, o.slotProps, {
|
|
799
|
-
field: (u) => s({},
|
|
795
|
+
field: (u) => s({}, M(o.slotProps?.field, u), F(o)),
|
|
800
796
|
toolbar: s({
|
|
801
797
|
hidden: !1
|
|
802
798
|
}, o.slotProps?.toolbar)
|
|
803
799
|
})
|
|
804
800
|
}), {
|
|
805
801
|
renderPicker: d
|
|
806
|
-
} =
|
|
802
|
+
} = ae({
|
|
807
803
|
ref: t,
|
|
808
804
|
props: i,
|
|
809
|
-
valueManager:
|
|
805
|
+
valueManager: N,
|
|
810
806
|
valueType: "date",
|
|
811
|
-
validator:
|
|
807
|
+
validator: R,
|
|
812
808
|
steps: null
|
|
813
809
|
});
|
|
814
810
|
return d();
|
|
@@ -898,7 +894,7 @@ j.propTypes = {
|
|
|
898
894
|
/**
|
|
899
895
|
* Pass a ref to the `input` element.
|
|
900
896
|
*/
|
|
901
|
-
inputRef:
|
|
897
|
+
inputRef: m,
|
|
902
898
|
/**
|
|
903
899
|
* The label content.
|
|
904
900
|
*/
|
|
@@ -1135,13 +1131,13 @@ j.propTypes = {
|
|
|
1135
1131
|
yearsPerRow: e.oneOf([3, 4])
|
|
1136
1132
|
};
|
|
1137
1133
|
const ye = ["desktopModeMediaQuery"], x = /* @__PURE__ */ f.forwardRef(function(a, t) {
|
|
1138
|
-
const n =
|
|
1134
|
+
const n = y({
|
|
1139
1135
|
props: a,
|
|
1140
1136
|
name: "MuiDatePicker"
|
|
1141
1137
|
}), {
|
|
1142
|
-
desktopModeMediaQuery: o =
|
|
1138
|
+
desktopModeMediaQuery: o = ne
|
|
1143
1139
|
} = n, r = P(n, ye);
|
|
1144
|
-
return
|
|
1140
|
+
return re(o, {
|
|
1145
1141
|
defaultMatches: !0
|
|
1146
1142
|
}) ? /* @__PURE__ */ c.jsx(k, s({
|
|
1147
1143
|
ref: t
|
|
@@ -1240,7 +1236,7 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
|
1240
1236
|
/**
|
|
1241
1237
|
* Pass a ref to the `input` element.
|
|
1242
1238
|
*/
|
|
1243
|
-
inputRef:
|
|
1239
|
+
inputRef: m,
|
|
1244
1240
|
/**
|
|
1245
1241
|
* The label content.
|
|
1246
1242
|
*/
|
|
@@ -1492,7 +1488,7 @@ const he = ({
|
|
|
1492
1488
|
slots: {
|
|
1493
1489
|
textField: z,
|
|
1494
1490
|
// Use Material-UI TextField as input
|
|
1495
|
-
...r.slots
|
|
1491
|
+
...r.slots ?? {}
|
|
1496
1492
|
// Allow user to override slots if needed
|
|
1497
1493
|
},
|
|
1498
1494
|
slotProps: {
|
|
@@ -1500,14 +1496,14 @@ const he = ({
|
|
|
1500
1496
|
sx: {
|
|
1501
1497
|
"& .MuiPaper-root": {
|
|
1502
1498
|
border: "1px solid",
|
|
1503
|
-
borderColor: (i.vars
|
|
1504
|
-
borderRadius: (i.vars
|
|
1499
|
+
borderColor: (i.vars ?? i).palette.divider,
|
|
1500
|
+
borderRadius: (i.vars ?? i).shape.borderRadius,
|
|
1505
1501
|
boxShadow: "none",
|
|
1506
1502
|
backgroundImage: "none"
|
|
1507
1503
|
}
|
|
1508
1504
|
}
|
|
1509
1505
|
},
|
|
1510
|
-
...r.slotProps
|
|
1506
|
+
...r.slotProps ?? {}
|
|
1511
1507
|
// Allow user to override slotProps if needed
|
|
1512
1508
|
},
|
|
1513
1509
|
...r
|