@solostylist/ui-kit 1.0.215 → 1.0.217
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-O4lRvSII.js → ArrowUpward-Di0RvTdn.js} +2 -2
- package/dist/Box-BK8kyPwb.js +45 -0
- package/dist/{ButtonBase-1qqPHJym.js → ButtonBase-Pxs48joz.js} +282 -172
- package/dist/{ChevronLeft-CJ94-qgQ.js → ChevronLeft-Cq8Rj_mj.js} +2 -2
- package/dist/{ChevronRight-CK4Iv1Xx.js → ChevronRight-DgJMX1PW.js} +2 -2
- package/dist/{Close-CSIi_IPN.js → Close-BrK64qcq.js} +2 -2
- package/dist/Collapse-BlDm9KX-.js +259 -0
- package/dist/{ContentCopy-SAMH7bs7.js → ContentCopy-C3hTb2aA.js} +2 -2
- package/dist/{Download-BefdWd5q.js → Download-BxH0i9Ni.js} +2 -2
- package/dist/{ExpandMore-DZANUF9W.js → ExpandMore-C7Hl31nD.js} +2 -2
- package/dist/{Favorite-BwMGKQJf.js → Favorite-DNaf3wqS.js} +2 -2
- package/dist/List-CtVrgES0.js +1049 -0
- package/dist/LocalizationProvider-DtVmtZ15.js +111 -0
- package/dist/Menu-DklEkm6T.js +497 -0
- package/dist/MenuItem-B9utw6PO.js +222 -0
- package/dist/MenuList-BbO85Qmd.js +404 -0
- package/dist/{Paper-CI9lXZk-.js → Paper-B_hHPO5k.js} +15 -15
- package/dist/Stack-D5D_RRtN.js +157 -0
- package/dist/Typography-Dy5dAg2u.js +166 -0
- package/dist/{avatar-CKEYVp9W.js → avatar-C1jUiSkJ.js} +1 -1
- package/dist/buttonBaseClasses-BLZbMisL.js +13 -0
- package/dist/{checkbox-CMvDozaV.js → checkbox-ByoYYQb_.js} +4 -4
- package/dist/{clsx-BTH_sxEO.js → clsx-69XFQeWf.js} +4 -4
- package/dist/{createSimplePaletteValueFilter-D5kxdvJe.js → createSimplePaletteValueFilter-GHK52GLU.js} +1 -1
- package/dist/{createSvgIcon-BfZYaiXo.js → createSvgIcon-BmN7SAhg.js} +15 -15
- package/dist/{createTheme-hnicUJQa.js → createTheme-YGsrOe_4.js} +624 -545
- package/dist/defaultTheme-DCktV_zC.js +5 -0
- package/dist/{generateUtilityClass-D4Rn9MbW.js → generateUtilityClass-tRYNDrlH.js} +1 -1
- package/dist/generateUtilityClasses-XrPHiTcM.js +10 -0
- package/dist/{iconButtonClasses-UNZ6hKTU.js → iconButtonClasses-9jjSQ9-U.js} +3 -3
- package/dist/inputLabelClasses-CC5i2Dsg.js +659 -0
- package/dist/memoTheme-BmiT8U43.js +150 -0
- package/dist/{mergeSlotProps-CVIr4jSm.js → mergeSlotProps-BX66hWLa.js} +3 -6
- package/dist/{outlinedInputClasses-ClI9bkEy.js → outlinedInputClasses-Di4lUV1O.js} +5 -10
- package/dist/{resolveProps-D6-j1wov.js → resolveProps-CP_X7XKa.js} +3 -3
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-Coc1zFV6.js → s-accordion-CeJZz1Ln.js} +107 -116
- package/dist/s-action-overlay/s-action-overlay.js +18 -14
- package/dist/s-avatar/s-avatar.js +6 -4
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/{s-carousel-Btja2Hvn.js → s-carousel-DyaNkTeX.js} +2 -2
- package/dist/s-category-card/s-category-card.js +2 -2
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-DF3eBvRY.js → s-chat-input-B_qRssy8.js} +41 -29
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-tzIfAqAc.js → s-chat-message-gzoc72Ti.js} +45 -41
- package/dist/s-checkbox/s-checkbox.js +6 -3
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/{s-chips-CMivbDg_.js → s-chips-D8H_w9Xa.js} +15 -11
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-BrwHh2oS.js → s-code-block-B1mdb-IQ.js} +1 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-Db-f_KOq.js → s-comment-message-CsQej8Et.js} +18 -14
- package/dist/s-copyable-text/s-copyable-text.js +8 -9
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/s-data-table-DeFNG6GB.js +893 -0
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.d.ts +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/{s-date-picker-C-FOMdpa.js → s-date-picker-Fo7ezXTV.js} +161 -115
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-qg0m55tj.js → s-datetime-picker-BcpyhYZf.js} +1051 -1033
- package/dist/s-dialog/s-dialog.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.js +4 -4
- package/dist/s-empty/s-empty.js +4 -2
- package/dist/s-error/s-error.js +4 -2
- package/dist/s-error-layout/s-error-layout.js +1 -2
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/{s-file-dropzone-BFTqdCaX.js → s-file-dropzone-yel7KInt.js} +9 -9
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-flex-box/s-flex-box.d.ts +10 -2
- package/dist/s-flex-box/s-flex-box.js +15 -5
- package/dist/s-glow-button/s-glow-button.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +2 -2
- package/dist/s-image-modal/s-image-modal.js +4 -4
- package/dist/s-item-not-found/s-item-not-found.js +9 -7
- package/dist/s-label/index.js +1 -1
- package/dist/s-label/s-label.js +1 -1
- package/dist/{s-label-BYT4eG6o.js → s-label-B9mgEpfz.js} +8 -7
- package/dist/s-language-switcher/index.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +1 -1
- package/dist/{s-language-switcher-mD1mK1he.js → s-language-switcher-BI0ARsS8.js} +18 -17
- package/dist/s-lazy-image/s-lazy-image.js +4 -2
- package/dist/s-link/s-link.d.ts +1 -1
- package/dist/s-link/s-link.js +1 -1
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/{s-localization-provider-CIACI235.js → s-localization-provider-zUNjKqvJ.js} +41 -59
- package/dist/s-moving-border/s-moving-border.d.ts +8 -0
- package/dist/s-moving-border/s-moving-border.js +26 -21
- package/dist/s-multi-select/index.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +1 -1
- package/dist/{s-multi-select-CmB-l3n5.js → s-multi-select-CVyeHDlc.js} +10 -10
- package/dist/s-nav-item/s-nav-item.js +2 -2
- package/dist/s-nav-item/s-nav-items.js +5 -5
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- package/dist/s-pagination/s-pagination.js +6 -4
- package/dist/s-pixel-reveal/s-pixel-reveal.js +1 -1
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-D29of4xC.js → s-review-BoTotzrP.js} +14 -10
- package/dist/s-scroll-to-top/s-scroll-to-top.js +3 -3
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-DH-t7jkk.js → s-select-BHnfqAGl.js} +7 -7
- package/dist/s-select-list/s-select-list.js +1 -1
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-switch/s-switch.js +5 -3
- package/dist/s-tabs/s-tabs.js +6 -6
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/s-text-editor-toolbar-ZxamcKpn.js +2105 -0
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-UI_UjTUa.js → s-text-field-w4T9VXLw.js} +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +2 -2
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-C0v-IOB-.js → s-theme-demo-C0BGeh2P.js} +80 -48
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/{s-theme-switch-COBORL4a.js → s-theme-switch-Cz5QBl69.js} +2 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/{s-tip-BI58w2uh.js → s-tip-CqLspVS4.js} +5 -5
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-KrLaAaBO.js → s-tool-bar-RTPBIgcd.js} +5 -5
- package/dist/s-two-pane-layout/s-two-pane-layout.js +1 -1
- package/dist/{select-BT9USOXL.js → select-D7W-VU2F.js} +2 -2
- package/dist/styled-BRk8Ukg1.js +164 -0
- package/dist/{esm-BYRX9r8n.js → styled-engine-DOxAQ3qw.js} +2 -2
- package/dist/{svgIconClasses-BhRa1KyZ.js → svgIconClasses-D46YUMKp.js} +3 -3
- package/dist/{tabClasses-Duc8s_po.js → tabClasses-KqPlYv0c.js} +3 -4
- package/dist/theme/components/accordion-summary.d.ts +2 -2
- package/dist/theme/components/accordion-summary.js +1 -1
- package/dist/theme/components/accordion.d.ts +2 -2
- package/dist/theme/components/alert.js +1 -1
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +30 -22
- package/dist/theme/components/card.js +2 -2
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +122 -124
- package/dist/theme/components/components.js +5 -5
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/icon-button.js +1 -1
- package/dist/theme/components/linear-progress.js +1 -1
- package/dist/theme/components/link.d.ts +2 -2
- package/dist/theme/components/link.js +2 -2
- package/dist/theme/components/list-item-button.d.ts +2 -2
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.d.ts +2 -2
- package/dist/theme/components/list-item.js +3 -3
- package/dist/theme/components/outlined-input.js +3 -3
- package/dist/theme/components/pagination-item.d.ts +2 -2
- package/dist/theme/components/select.js +1 -1
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/tab.d.ts +2 -2
- package/dist/theme/components/tab.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/tabs.d.ts +4 -4
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.d.ts +2 -2
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{theme-primitives-qhf0z_Er.js → theme-primitives-DHiY0aFC.js} +1 -1
- package/dist/{toggle-button-sCvdUHdS.js → toggle-button-DIEv06gW.js} +3 -3
- package/dist/{toggle-button-group-C_qpJa3z.js → toggle-button-group-CERACXGm.js} +4 -6
- package/dist/{typographyClasses-CBI3nZde.js → typographyClasses-CyjIdezx.js} +4 -5
- package/dist/{useControlled-BQ6-yabk.js → useControlled-2-C6cXjG.js} +2 -5
- package/dist/useControlled-DXKqhylj.js +5 -0
- package/dist/{useEnhancedEffect-DcMMtOdE.js → useEnhancedEffect-Dsu5K7-Z.js} +1 -1
- package/dist/useFormControl-CUs308br.js +18 -0
- package/dist/{useMobilePicker-C5bImMb9.js → useMobilePicker-6o6QRlWL.js} +3019 -3472
- package/dist/{useSlot-BfqKgBbE.js → useSlot-CugRM0KJ.js} +37 -32
- package/dist/{useThemeProps-DtrsMbkY.js → useThemeProps-DdB9M8DE.js} +4 -4
- package/dist/{utils-BqJ3HDtA.js → utils-DNv5CBQM.js} +21 -5
- package/package.json +13 -13
- package/dist/Box-BQIZeo25.js +0 -46
- package/dist/Collapse-BUAO-GTT.js +0 -264
- package/dist/LocalizationProvider-C07_J3LH.js +0 -111
- package/dist/Menu-qKMfgdfr.js +0 -1664
- package/dist/MenuItem-DA2pGXuL.js +0 -214
- package/dist/Select-D-aLJXW9.js +0 -2552
- package/dist/Stack-BrIUVvqB.js +0 -158
- package/dist/Typography-Ci004UCT.js +0 -187
- package/dist/buttonBaseClasses-D1dQFqBk.js +0 -13
- package/dist/defaultTheme-CW25vqGj.js +0 -5
- package/dist/extendSxProp-0kulJXZl.js +0 -29
- package/dist/generateUtilityClasses-CX1nR7K3.js +0 -10
- package/dist/memoTheme-DiKnacj0.js +0 -154
- package/dist/s-data-table-BdEn2Nhf.js +0 -897
- package/dist/s-text-editor-toolbar-Sw0qn88u.js +0 -177
- package/dist/styled-C0_N3zFx.js +0 -168
- package/dist/useFormControl-DvExOQVA.js +0 -11
- /package/dist/{extends-DtvfmDTb.js → extends-D8CDMpIy.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-Cq334jkZ.js → objectWithoutPropertiesLoose-BpY-kC5L.js} +0 -0
- /package/dist/{utils-CKGB5_56.js → utils-B5Rl6Zwv.js} +0 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { _ as t } from "./createTheme-YGsrOe_4.js";
|
|
3
|
+
import { o as n, r, t as i } from "./memoTheme-BmiT8U43.js";
|
|
4
|
+
import { t as a } from "./clsx-69XFQeWf.js";
|
|
5
|
+
import { t as o } from "./generateUtilityClass-tRYNDrlH.js";
|
|
6
|
+
import { t as s } from "./generateUtilityClasses-XrPHiTcM.js";
|
|
7
|
+
import { n as c, t as l } from "./styled-BRk8Ukg1.js";
|
|
8
|
+
import { g as u, n as d } from "./List-CtVrgES0.js";
|
|
9
|
+
import { t as f } from "./ButtonBase-Pxs48joz.js";
|
|
10
|
+
import { f as p } from "./useSlot-CugRM0KJ.js";
|
|
11
|
+
import { a as m, i as h, n as g, o as _, u as v } from "./MenuList-BbO85Qmd.js";
|
|
12
|
+
import * as y from "react";
|
|
13
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
14
|
+
//#region ../../node_modules/@mui/material/Divider/dividerClasses.mjs
|
|
15
|
+
function x(e) {
|
|
16
|
+
return o("MuiDivider", e);
|
|
17
|
+
}
|
|
18
|
+
var S = s("MuiDivider", [
|
|
19
|
+
"root",
|
|
20
|
+
"absolute",
|
|
21
|
+
"fullWidth",
|
|
22
|
+
"inset",
|
|
23
|
+
"middle",
|
|
24
|
+
"flexItem",
|
|
25
|
+
"vertical",
|
|
26
|
+
"withChildren",
|
|
27
|
+
"textAlignRight",
|
|
28
|
+
"textAlignLeft",
|
|
29
|
+
"wrapper",
|
|
30
|
+
"wrapperVertical"
|
|
31
|
+
]);
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../../node_modules/@mui/material/ListItemIcon/listItemIconClasses.mjs
|
|
34
|
+
function C(e) {
|
|
35
|
+
return o("MuiListItemIcon", e);
|
|
36
|
+
}
|
|
37
|
+
var w = s("MuiListItemIcon", ["root", "alignItemsFlexStart"]), T = s("MuiListItemText", [
|
|
38
|
+
"root",
|
|
39
|
+
"multiline",
|
|
40
|
+
"dense",
|
|
41
|
+
"inset",
|
|
42
|
+
"primary",
|
|
43
|
+
"secondary"
|
|
44
|
+
]);
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ../../node_modules/@mui/material/MenuItem/menuItemClasses.mjs
|
|
47
|
+
function E(e) {
|
|
48
|
+
return o("MuiMenuItem", e);
|
|
49
|
+
}
|
|
50
|
+
var D = s("MuiMenuItem", [
|
|
51
|
+
"root",
|
|
52
|
+
"focusVisible",
|
|
53
|
+
"dense",
|
|
54
|
+
"disabled",
|
|
55
|
+
"divider",
|
|
56
|
+
"gutters",
|
|
57
|
+
"selected"
|
|
58
|
+
]), O = /* @__PURE__ */ e(t(), 1), k = (e, t) => {
|
|
59
|
+
let { ownerState: n } = e;
|
|
60
|
+
return [
|
|
61
|
+
t.root,
|
|
62
|
+
n.dense && t.dense,
|
|
63
|
+
n.divider && t.divider,
|
|
64
|
+
!n.disableGutters && t.gutters
|
|
65
|
+
];
|
|
66
|
+
}, A = (e) => {
|
|
67
|
+
let { disabled: t, dense: r, divider: i, disableGutters: a, selected: o, classes: s } = e, c = n({ root: [
|
|
68
|
+
"root",
|
|
69
|
+
r && "dense",
|
|
70
|
+
t && "disabled",
|
|
71
|
+
!a && "gutters",
|
|
72
|
+
i && "divider",
|
|
73
|
+
o && "selected"
|
|
74
|
+
] }, E, s);
|
|
75
|
+
return {
|
|
76
|
+
...s,
|
|
77
|
+
...c
|
|
78
|
+
};
|
|
79
|
+
}, j = l(f, {
|
|
80
|
+
shouldForwardProp: (e) => c(e) || e === "classes",
|
|
81
|
+
name: "MuiMenuItem",
|
|
82
|
+
slot: "Root",
|
|
83
|
+
overridesResolver: k
|
|
84
|
+
})(i(({ theme: e }) => ({
|
|
85
|
+
...e.typography.body1,
|
|
86
|
+
display: "flex",
|
|
87
|
+
justifyContent: "flex-start",
|
|
88
|
+
alignItems: "center",
|
|
89
|
+
position: "relative",
|
|
90
|
+
textDecoration: "none",
|
|
91
|
+
minHeight: 48,
|
|
92
|
+
paddingTop: 6,
|
|
93
|
+
paddingBottom: 6,
|
|
94
|
+
boxSizing: "border-box",
|
|
95
|
+
whiteSpace: "nowrap",
|
|
96
|
+
"&:hover": {
|
|
97
|
+
textDecoration: "none",
|
|
98
|
+
backgroundColor: (e.vars || e).palette.action.hover,
|
|
99
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
100
|
+
},
|
|
101
|
+
[`&.${D.selected}`]: {
|
|
102
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
|
|
103
|
+
[`&.${D.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) }
|
|
104
|
+
},
|
|
105
|
+
[`&.${D.selected}:hover`]: {
|
|
106
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
|
|
107
|
+
"@media (hover: none)": { backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity) }
|
|
108
|
+
},
|
|
109
|
+
[`&.${D.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
|
|
110
|
+
[`&.${D.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
|
|
111
|
+
[`& + .${S.root}`]: {
|
|
112
|
+
marginTop: e.spacing(1),
|
|
113
|
+
marginBottom: e.spacing(1)
|
|
114
|
+
},
|
|
115
|
+
[`& + .${S.inset}`]: { marginLeft: 52 },
|
|
116
|
+
[`& .${T.root}`]: {
|
|
117
|
+
marginTop: 0,
|
|
118
|
+
marginBottom: 0
|
|
119
|
+
},
|
|
120
|
+
[`& .${T.inset}`]: { paddingLeft: 36 },
|
|
121
|
+
[`& .${w.root}`]: { minWidth: 36 },
|
|
122
|
+
variants: [
|
|
123
|
+
{
|
|
124
|
+
props: ({ ownerState: e }) => !e.disableGutters,
|
|
125
|
+
style: {
|
|
126
|
+
paddingLeft: 16,
|
|
127
|
+
paddingRight: 16
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
props: ({ ownerState: e }) => e.divider,
|
|
132
|
+
style: {
|
|
133
|
+
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
134
|
+
backgroundClip: "padding-box"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
props: ({ ownerState: e }) => !e.dense,
|
|
139
|
+
style: { [e.breakpoints.up("sm")]: { minHeight: "auto" } }
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
props: ({ ownerState: e }) => e.dense,
|
|
143
|
+
style: {
|
|
144
|
+
minHeight: 32,
|
|
145
|
+
paddingTop: 4,
|
|
146
|
+
paddingBottom: 4,
|
|
147
|
+
...e.typography.body2,
|
|
148
|
+
[`& .${w.root} svg`]: { fontSize: "1.25rem" }
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}))), M = /* @__PURE__ */ y.forwardRef(function(e, t) {
|
|
153
|
+
let n = r({
|
|
154
|
+
props: e,
|
|
155
|
+
name: "MuiMenuItem"
|
|
156
|
+
}), { autoFocus: i = !1, component: o = "li", dense: s = !1, divider: c = !1, disableGutters: l = !1, focusVisibleClassName: f, role: x = "menuitem", tabIndex: S, className: C, ...w } = n, T = h(), E = y.useContext(d), D = y.useMemo(() => ({
|
|
157
|
+
dense: s || E.dense || !1,
|
|
158
|
+
disableGutters: l
|
|
159
|
+
}), [
|
|
160
|
+
E.dense,
|
|
161
|
+
s,
|
|
162
|
+
l
|
|
163
|
+
]), O = g(), k = u(), M = O.suppressInitialFocusVisible, N = O.itemsFocusableWhenDisabled, P = y.useRef(null);
|
|
164
|
+
v(() => {
|
|
165
|
+
i && (P.current ? m(P.current, T) : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
166
|
+
}, [i]);
|
|
167
|
+
let F = {
|
|
168
|
+
...n,
|
|
169
|
+
dense: D.dense,
|
|
170
|
+
divider: c,
|
|
171
|
+
disableGutters: l
|
|
172
|
+
}, I = A(n), { root: L, ...R } = I, z = _({
|
|
173
|
+
id: k,
|
|
174
|
+
ref: t,
|
|
175
|
+
disabled: n.disabled,
|
|
176
|
+
focusableWhenDisabled: N,
|
|
177
|
+
selected: n.selected
|
|
178
|
+
}), B = p(P, z.ref), V;
|
|
179
|
+
return S === void 0 ? O.variant === "selectedMenu" ? V = z.tabIndex : (!n.disabled || N) && (V = -1) : V = S, /* @__PURE__ */ b(d.Provider, {
|
|
180
|
+
value: D,
|
|
181
|
+
children: /* @__PURE__ */ b(j, {
|
|
182
|
+
ref: B,
|
|
183
|
+
role: x,
|
|
184
|
+
tabIndex: V,
|
|
185
|
+
component: o,
|
|
186
|
+
internalNativeButton: !1,
|
|
187
|
+
focusableWhenDisabled: N,
|
|
188
|
+
suppressFocusVisible: M,
|
|
189
|
+
focusVisibleClassName: a(I.focusVisible, f),
|
|
190
|
+
className: a(I.root, C),
|
|
191
|
+
...w,
|
|
192
|
+
ownerState: F,
|
|
193
|
+
classes: R
|
|
194
|
+
})
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
198
|
+
autoFocus: O.default.bool,
|
|
199
|
+
children: O.default.node,
|
|
200
|
+
classes: O.default.object,
|
|
201
|
+
className: O.default.string,
|
|
202
|
+
component: O.default.elementType,
|
|
203
|
+
dense: O.default.bool,
|
|
204
|
+
disabled: O.default.bool,
|
|
205
|
+
disableGutters: O.default.bool,
|
|
206
|
+
divider: O.default.bool,
|
|
207
|
+
focusVisibleClassName: O.default.string,
|
|
208
|
+
role: O.default.string,
|
|
209
|
+
selected: O.default.bool,
|
|
210
|
+
sx: O.default.oneOfType([
|
|
211
|
+
O.default.arrayOf(O.default.oneOfType([
|
|
212
|
+
O.default.func,
|
|
213
|
+
O.default.object,
|
|
214
|
+
O.default.bool
|
|
215
|
+
])),
|
|
216
|
+
O.default.func,
|
|
217
|
+
O.default.object
|
|
218
|
+
]),
|
|
219
|
+
tabIndex: O.default.number
|
|
220
|
+
});
|
|
221
|
+
//#endregion
|
|
222
|
+
export { C as n, x as r, M as t };
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
+
import { _ as t } from "./createTheme-YGsrOe_4.js";
|
|
3
|
+
import { t as n } from "./useEnhancedEffect-Dsu5K7-Z.js";
|
|
4
|
+
import { _ as r, b as i, d as a, t as o, u as s, v as c, x as l, y as u } from "./List-CtVrgES0.js";
|
|
5
|
+
import { i as d, r as f } from "./ButtonBase-Pxs48joz.js";
|
|
6
|
+
import { f as p, p as m } from "./useSlot-CugRM0KJ.js";
|
|
7
|
+
import * as h from "react";
|
|
8
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
9
|
+
//#region ../../node_modules/@mui/utils/debounce/debounce.mjs
|
|
10
|
+
function _(e, t = 166) {
|
|
11
|
+
let n;
|
|
12
|
+
function r(...r) {
|
|
13
|
+
clearTimeout(n), n = setTimeout(() => {
|
|
14
|
+
e.apply(this, r);
|
|
15
|
+
}, t);
|
|
16
|
+
}
|
|
17
|
+
return r.clear = () => {
|
|
18
|
+
clearTimeout(n);
|
|
19
|
+
}, r;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../../node_modules/@mui/material/utils/debounce.mjs
|
|
23
|
+
var v = _, y = u, b = c, x = n, S = /* @__PURE__ */ h.createContext(void 0);
|
|
24
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "RovingTabIndexContext");
|
|
25
|
+
function C() {
|
|
26
|
+
let e = h.useContext(S);
|
|
27
|
+
if (e === void 0) throw Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region ../../node_modules/@mui/utils/fastObjectShallowCompare/fastObjectShallowCompare.mjs
|
|
32
|
+
var w = Object.is;
|
|
33
|
+
function T(e, t) {
|
|
34
|
+
if (e === t) return !0;
|
|
35
|
+
if (!(e instanceof Object) || !(t instanceof Object)) return !1;
|
|
36
|
+
let n = 0, r = 0;
|
|
37
|
+
for (let r in e) if (n += 1, !w(e[r], t[r]) || !(r in t)) return !1;
|
|
38
|
+
for (let e in t) r += 1;
|
|
39
|
+
return n === r;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.mjs
|
|
43
|
+
var E = [
|
|
44
|
+
"ArrowRight",
|
|
45
|
+
"ArrowLeft",
|
|
46
|
+
"ArrowUp",
|
|
47
|
+
"ArrowDown",
|
|
48
|
+
"Home",
|
|
49
|
+
"End"
|
|
50
|
+
];
|
|
51
|
+
function D(e) {
|
|
52
|
+
let { activeItemId: t, getDefaultActiveItemId: n, orientation: r, isRtl: i = !1, isItemFocusable: a = V, wrap: o = !0 } = e, [s, c] = h.useState(t), f = h.useRef(t), p = s;
|
|
53
|
+
t !== f.current && (f.current = t, t !== void 0 && t !== s && (p = t, c(t)));
|
|
54
|
+
let m = h.useRef(null), g = h.useRef(/* @__PURE__ */ new Map()), [_, v] = h.useState(0), y = h.useMemo(() => R(g.current), [_]), b = k(p, y, a, n), x = h.useRef(b);
|
|
55
|
+
x.current = b;
|
|
56
|
+
let S = h.useCallback(() => {
|
|
57
|
+
let e = R(g.current);
|
|
58
|
+
return F(e, k(x.current, e, a, n));
|
|
59
|
+
}, [n, a]), C = h.useCallback(() => g.current, []), w = d((e) => {
|
|
60
|
+
T(g.current.get(e.id) ?? null, e) || (g.current.set(e.id, e), v((e) => e + 1));
|
|
61
|
+
}), D = d((e) => {
|
|
62
|
+
g.current.delete(e) && v((e) => e + 1);
|
|
63
|
+
}), O = d((e) => {
|
|
64
|
+
c(e);
|
|
65
|
+
}), A = h.useCallback((e) => x.current === e, []), j = h.useCallback((e, t, n, r) => {
|
|
66
|
+
let i = N(z(g.current), e, t, n, r ?? a);
|
|
67
|
+
return i ? (i.element?.focus(), c(i.id), i) : null;
|
|
68
|
+
}, [a]), P = h.useCallback((e) => ({
|
|
69
|
+
onFocus: (e) => {
|
|
70
|
+
let t = z(g.current), n = L(t, e.target);
|
|
71
|
+
n !== -1 && c(t[n].id);
|
|
72
|
+
},
|
|
73
|
+
onKeyDown: (e) => {
|
|
74
|
+
if (e.altKey || e.shiftKey || e.ctrlKey || e.metaKey || !E.includes(e.key)) return;
|
|
75
|
+
let t = r === "horizontal" ? "ArrowLeft" : "ArrowUp", n = r === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
76
|
+
r === "horizontal" && i && (t = "ArrowRight", n = "ArrowLeft");
|
|
77
|
+
let a = z(g.current), s = l(u(m.current)), c = s === m.current, d = M(a, s, x.current), f = "next";
|
|
78
|
+
switch (e.key) {
|
|
79
|
+
case t:
|
|
80
|
+
f = "previous", e.preventDefault(), c && (d = a.length);
|
|
81
|
+
break;
|
|
82
|
+
case n:
|
|
83
|
+
e.preventDefault(), c && (d = -1);
|
|
84
|
+
break;
|
|
85
|
+
case "Home":
|
|
86
|
+
e.preventDefault(), d = -1;
|
|
87
|
+
break;
|
|
88
|
+
case "End":
|
|
89
|
+
e.preventDefault(), f = "previous", d = a.length;
|
|
90
|
+
break;
|
|
91
|
+
default: return;
|
|
92
|
+
}
|
|
93
|
+
j(d, f, o);
|
|
94
|
+
},
|
|
95
|
+
ref: W(e, (e) => {
|
|
96
|
+
m.current = e;
|
|
97
|
+
})
|
|
98
|
+
}), [
|
|
99
|
+
j,
|
|
100
|
+
i,
|
|
101
|
+
r,
|
|
102
|
+
o
|
|
103
|
+
]), I = h.useCallback((e) => {
|
|
104
|
+
let t = z(g.current), n = l(u(m.current));
|
|
105
|
+
return j(n === m.current ? -1 : M(t, n, x.current), "next", !0, e)?.id ?? null;
|
|
106
|
+
}, [j]);
|
|
107
|
+
return h.useMemo(() => ({
|
|
108
|
+
activeItemId: b,
|
|
109
|
+
focusNext: I,
|
|
110
|
+
getActiveItem: S,
|
|
111
|
+
getContainerProps: P,
|
|
112
|
+
getItemMap: C,
|
|
113
|
+
isItemActive: A,
|
|
114
|
+
registerItem: w,
|
|
115
|
+
setActiveItemId: O,
|
|
116
|
+
unregisterItem: D
|
|
117
|
+
}), [
|
|
118
|
+
b,
|
|
119
|
+
I,
|
|
120
|
+
S,
|
|
121
|
+
P,
|
|
122
|
+
C,
|
|
123
|
+
A,
|
|
124
|
+
w,
|
|
125
|
+
O,
|
|
126
|
+
D
|
|
127
|
+
]);
|
|
128
|
+
}
|
|
129
|
+
function O(e) {
|
|
130
|
+
let { activeItemId: t, registerItem: r, unregisterItem: i } = C(), a = h.useRef(null), o = h.useMemo(() => ({
|
|
131
|
+
disabled: e.disabled ?? !1,
|
|
132
|
+
element: null,
|
|
133
|
+
focusableWhenDisabled: e.focusableWhenDisabled ?? !1,
|
|
134
|
+
id: e.id,
|
|
135
|
+
selected: e.selected ?? !1,
|
|
136
|
+
textValue: e.textValue
|
|
137
|
+
}), [
|
|
138
|
+
e.disabled,
|
|
139
|
+
e.focusableWhenDisabled,
|
|
140
|
+
e.id,
|
|
141
|
+
e.selected,
|
|
142
|
+
e.textValue
|
|
143
|
+
]), s = h.useRef(o);
|
|
144
|
+
s.current = o;
|
|
145
|
+
let c = h.useCallback((t) => {
|
|
146
|
+
if (a.current = t, t == null) {
|
|
147
|
+
queueMicrotask(() => {
|
|
148
|
+
a.current ?? i(e.id);
|
|
149
|
+
});
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
r({
|
|
153
|
+
...s.current,
|
|
154
|
+
element: t
|
|
155
|
+
});
|
|
156
|
+
}, [
|
|
157
|
+
e.id,
|
|
158
|
+
r,
|
|
159
|
+
i
|
|
160
|
+
]), l = m(e.ref, c);
|
|
161
|
+
return n(() => {
|
|
162
|
+
a.current && r({
|
|
163
|
+
...o,
|
|
164
|
+
element: a.current
|
|
165
|
+
});
|
|
166
|
+
}, [o, r]), n(() => {
|
|
167
|
+
let t = e.id;
|
|
168
|
+
return () => {
|
|
169
|
+
i(t);
|
|
170
|
+
};
|
|
171
|
+
}, [e.id, i]), {
|
|
172
|
+
ref: l,
|
|
173
|
+
tabIndex: t === e.id ? 0 : -1
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function k(e, t, n, r) {
|
|
177
|
+
return e == null ? j(t, n, r) : A(e, t, n);
|
|
178
|
+
}
|
|
179
|
+
function A(e, t, n) {
|
|
180
|
+
let r = I(t, e);
|
|
181
|
+
return r === -1 ? P(t, n) : n(t[r]) ? t[r].id : N(t, r, "next", !1, n)?.id ?? null;
|
|
182
|
+
}
|
|
183
|
+
function j(e, t, n) {
|
|
184
|
+
let r = n?.(e);
|
|
185
|
+
if (r != null) {
|
|
186
|
+
let n = F(e, r);
|
|
187
|
+
if (n && t(n)) return n.id;
|
|
188
|
+
}
|
|
189
|
+
return P(e, t);
|
|
190
|
+
}
|
|
191
|
+
function M(e, t, n) {
|
|
192
|
+
if (t) {
|
|
193
|
+
let n = L(e, t);
|
|
194
|
+
if (n !== -1) return n;
|
|
195
|
+
}
|
|
196
|
+
return I(e, n);
|
|
197
|
+
}
|
|
198
|
+
function N(e, t, n, r, i) {
|
|
199
|
+
let a = e.length - 1;
|
|
200
|
+
if (a === -1) return null;
|
|
201
|
+
let o = !1, s = B(t, a, n, r), c = s;
|
|
202
|
+
for (; s !== -1;) {
|
|
203
|
+
if (s === c) {
|
|
204
|
+
if (o) return null;
|
|
205
|
+
o = !0;
|
|
206
|
+
}
|
|
207
|
+
let t = e[s];
|
|
208
|
+
if (!t || !i(t)) s = B(s, a, n, r);
|
|
209
|
+
else return t;
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
function P(e, t) {
|
|
214
|
+
return e.find((e) => t(e))?.id ?? null;
|
|
215
|
+
}
|
|
216
|
+
function F(e, t) {
|
|
217
|
+
return t == null ? null : e.find((e) => e.id === t) ?? null;
|
|
218
|
+
}
|
|
219
|
+
function I(e, t) {
|
|
220
|
+
return t == null ? -1 : e.findIndex((e) => e.id === t);
|
|
221
|
+
}
|
|
222
|
+
function L(e, t) {
|
|
223
|
+
return t ? e.findIndex((e) => e.element === t || e.element?.contains(t)) : -1;
|
|
224
|
+
}
|
|
225
|
+
function R(e) {
|
|
226
|
+
let t = Array.from(e.values());
|
|
227
|
+
if (t.every((e) => e.element == null)) return t;
|
|
228
|
+
let n = t.filter(H).sort((e, t) => U(e.element, t.element)), r = t.filter((e) => !H(e));
|
|
229
|
+
return [...n, ...r];
|
|
230
|
+
}
|
|
231
|
+
function z(e) {
|
|
232
|
+
return R(e).filter(H);
|
|
233
|
+
}
|
|
234
|
+
function B(e, t, n, r = !0) {
|
|
235
|
+
return n === "next" ? e === t ? r ? 0 : -1 : e + 1 : e === 0 ? r ? t : -1 : e - 1;
|
|
236
|
+
}
|
|
237
|
+
function V(e) {
|
|
238
|
+
return e.element ? e.focusableWhenDisabled ? !0 : !e.disabled && !e.element.hasAttribute("disabled") && e.element.getAttribute("aria-disabled") !== "true" && e.element.hasAttribute("tabindex") : !1;
|
|
239
|
+
}
|
|
240
|
+
function H(e) {
|
|
241
|
+
return e.element != null && e.element.isConnected;
|
|
242
|
+
}
|
|
243
|
+
function U(e, t) {
|
|
244
|
+
if (e === t) return 0;
|
|
245
|
+
let n = e.compareDocumentPosition(t);
|
|
246
|
+
return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
|
|
247
|
+
}
|
|
248
|
+
function W(...e) {
|
|
249
|
+
return (t) => {
|
|
250
|
+
e.forEach((e) => {
|
|
251
|
+
r(e ?? null, t);
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region ../../node_modules/@mui/material/utils/getScrollbarSize.mjs
|
|
257
|
+
var G = a;
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region ../../node_modules/@mui/material/utils/focusWithVisible.mjs
|
|
260
|
+
function K(e, t) {
|
|
261
|
+
if (t == null) {
|
|
262
|
+
e.focus();
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
try {
|
|
266
|
+
e.focus({ focusVisible: t === "keyboard" });
|
|
267
|
+
} catch {
|
|
268
|
+
e.focus();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region ../../node_modules/@mui/material/Select/utils/SelectFocusSourceContext.mjs
|
|
273
|
+
var q = /* @__PURE__ */ h.createContext(null);
|
|
274
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "SelectFocusSourceContext");
|
|
275
|
+
function J() {
|
|
276
|
+
return h.useContext(q);
|
|
277
|
+
}
|
|
278
|
+
var Y = q.Provider, X = /* @__PURE__ */ h.createContext(void 0);
|
|
279
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "MenuListContext");
|
|
280
|
+
function ee() {
|
|
281
|
+
let e = h.useContext(X);
|
|
282
|
+
if (e === void 0) throw Error("MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.");
|
|
283
|
+
return e;
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region ../../node_modules/@mui/material/MenuList/MenuList.mjs
|
|
287
|
+
var Z = /* @__PURE__ */ e(t(), 1);
|
|
288
|
+
function te(e) {
|
|
289
|
+
let t = e?.element ?? e;
|
|
290
|
+
if (!t) return "";
|
|
291
|
+
if (e?.textValue !== void 0) return e.textValue;
|
|
292
|
+
let n = t.innerText;
|
|
293
|
+
return n === void 0 && (n = t.textContent), n ?? "";
|
|
294
|
+
}
|
|
295
|
+
function Q(e, t) {
|
|
296
|
+
if (t === void 0) return !0;
|
|
297
|
+
let n = te(e);
|
|
298
|
+
return n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
|
|
299
|
+
}
|
|
300
|
+
function ne(e, t) {
|
|
301
|
+
return Q(e, t) ? V(e) : !1;
|
|
302
|
+
}
|
|
303
|
+
function re(e, t) {
|
|
304
|
+
K(e, t);
|
|
305
|
+
}
|
|
306
|
+
var $ = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
307
|
+
let { actions: n, autoFocus: r = !1, autoFocusItem: a = !1, children: c, className: l, disabledItemsFocusable: u = !1, disableListWrap: d = !1, onKeyDown: m, variant: _ = "selectedMenu", ...v } = e, C = h.useRef(null), w = h.useRef(!1), [T, E] = h.useState(!1), O = J(), k = h.useRef({
|
|
308
|
+
keys: [],
|
|
309
|
+
repeating: !0,
|
|
310
|
+
previousKeyMatched: !0,
|
|
311
|
+
lastTime: null
|
|
312
|
+
}), A = D({
|
|
313
|
+
activeItemId: void 0,
|
|
314
|
+
getDefaultActiveItemId: h.useCallback((e) => _ === "selectedMenu" ? e.find((e) => e.selected && V(e))?.id ?? e.find((e) => V(e))?.id ?? null : e.find((e) => V(e))?.id ?? null, [_]),
|
|
315
|
+
orientation: "vertical",
|
|
316
|
+
wrap: !d
|
|
317
|
+
}), { activeItemId: j, focusNext: M, getActiveItem: N, getContainerProps: P, getItemMap: F } = A, I = f((e = !1) => {
|
|
318
|
+
if (!C.current || !e && w.current) return null;
|
|
319
|
+
if (a) {
|
|
320
|
+
let e = N();
|
|
321
|
+
if (e?.element) {
|
|
322
|
+
let t = Array.from(F().values()).some((e) => e.selected);
|
|
323
|
+
return E(_ === "menu" && t && !e.selected && O == null), re(e.element, O), w.current = !0, e.element;
|
|
324
|
+
}
|
|
325
|
+
return r ? (E(!1), C.current.focus(), C.current) : null;
|
|
326
|
+
}
|
|
327
|
+
return r ? (E(!1), C.current.focus(), w.current = !0, C.current) : (E(!1), null);
|
|
328
|
+
});
|
|
329
|
+
x(() => {
|
|
330
|
+
if (!r && !a) {
|
|
331
|
+
w.current = !1, E(!1);
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
I();
|
|
335
|
+
}, [
|
|
336
|
+
j,
|
|
337
|
+
a,
|
|
338
|
+
r,
|
|
339
|
+
I
|
|
340
|
+
]), h.useImperativeHandle(n, () => ({
|
|
341
|
+
adjustStyleForScrollbar: (e, { direction: t }) => {
|
|
342
|
+
let n = !C.current.style.width;
|
|
343
|
+
if (e.clientHeight < C.current.clientHeight && n) {
|
|
344
|
+
let n = `${G(b(e))}px`;
|
|
345
|
+
C.current.style[t === "rtl" ? "paddingLeft" : "paddingRight"] = n, C.current.style.width = `calc(100% + ${n})`;
|
|
346
|
+
}
|
|
347
|
+
return C.current;
|
|
348
|
+
},
|
|
349
|
+
focusInitialTarget: () => {
|
|
350
|
+
if (!C.current) return null;
|
|
351
|
+
let e = i(y(C.current));
|
|
352
|
+
return e && s(C.current, e) ? e : I(!0);
|
|
353
|
+
}
|
|
354
|
+
}), [I]);
|
|
355
|
+
let L = P(), R = p(C, L.ref, t), z = h.useMemo(() => ({
|
|
356
|
+
itemsFocusableWhenDisabled: u,
|
|
357
|
+
suppressInitialFocusVisible: T,
|
|
358
|
+
variant: _
|
|
359
|
+
}), [
|
|
360
|
+
u,
|
|
361
|
+
T,
|
|
362
|
+
_
|
|
363
|
+
]);
|
|
364
|
+
return /* @__PURE__ */ g(o, {
|
|
365
|
+
role: "menu",
|
|
366
|
+
ref: R,
|
|
367
|
+
className: l,
|
|
368
|
+
onKeyDown: f((e) => {
|
|
369
|
+
if (T && E(!1), (e.ctrlKey || e.metaKey || e.altKey) && m) {
|
|
370
|
+
m(e);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
if (L.onKeyDown(e), e.key.length === 1) {
|
|
374
|
+
let t = k.current, n = e.key.toLowerCase(), r = performance.now();
|
|
375
|
+
t.keys.length > 0 && (r - t.lastTime > 500 ? (t.keys = [], t.repeating = !0, t.previousKeyMatched = !0) : t.repeating && n !== t.keys[0] && (t.repeating = !1)), t.lastTime = r, t.keys.push(n);
|
|
376
|
+
let a = i(y(C.current)), o = a && !t.repeating && Q(a, t);
|
|
377
|
+
t.previousKeyMatched && (o || M((e) => ne(e, t)) != null) ? e.preventDefault() : t.previousKeyMatched = !1;
|
|
378
|
+
}
|
|
379
|
+
m && m(e);
|
|
380
|
+
}),
|
|
381
|
+
onFocus: L.onFocus,
|
|
382
|
+
tabIndex: -1,
|
|
383
|
+
...v,
|
|
384
|
+
children: /* @__PURE__ */ g(X.Provider, {
|
|
385
|
+
value: z,
|
|
386
|
+
children: /* @__PURE__ */ g(S.Provider, {
|
|
387
|
+
value: A,
|
|
388
|
+
children: c
|
|
389
|
+
})
|
|
390
|
+
})
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
394
|
+
autoFocus: Z.default.bool,
|
|
395
|
+
autoFocusItem: Z.default.bool,
|
|
396
|
+
children: Z.default.node,
|
|
397
|
+
className: Z.default.string,
|
|
398
|
+
disabledItemsFocusable: Z.default.bool,
|
|
399
|
+
disableListWrap: Z.default.bool,
|
|
400
|
+
onKeyDown: Z.default.func,
|
|
401
|
+
variant: Z.default.oneOf(["menu", "selectedMenu"])
|
|
402
|
+
});
|
|
403
|
+
//#endregion
|
|
404
|
+
export { K as a, S as c, b as d, y as f, J as i, C as l, _ as m, ee as n, O as o, v as p, Y as r, D as s, $ as t, x as u };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as e } from "./chunk-efA98nb6.js";
|
|
2
|
-
import { _ as t, i as n, n as r } from "./createTheme-
|
|
3
|
-
import {
|
|
4
|
-
import { t as c } from "./clsx-
|
|
5
|
-
import { t as l } from "./generateUtilityClass-
|
|
6
|
-
import { t as u } from "./generateUtilityClasses-
|
|
7
|
-
import { t as d } from "./styled-
|
|
8
|
-
import {
|
|
2
|
+
import { _ as t, i as n, n as r } from "./createTheme-YGsrOe_4.js";
|
|
3
|
+
import { a as i, o as a, r as o, t as s } from "./memoTheme-BmiT8U43.js";
|
|
4
|
+
import { t as c } from "./clsx-69XFQeWf.js";
|
|
5
|
+
import { t as l } from "./generateUtilityClass-tRYNDrlH.js";
|
|
6
|
+
import { t as u } from "./generateUtilityClasses-XrPHiTcM.js";
|
|
7
|
+
import { t as d } from "./styled-BRk8Ukg1.js";
|
|
8
|
+
import { h as f } from "./useSlot-CugRM0KJ.js";
|
|
9
9
|
import * as p from "react";
|
|
10
10
|
import { jsx as m } from "react/jsx-runtime";
|
|
11
|
-
//#region ../../node_modules/@mui/utils/
|
|
11
|
+
//#region ../../node_modules/@mui/utils/integerPropType/integerPropType.mjs
|
|
12
12
|
function h(e) {
|
|
13
13
|
let t = typeof e;
|
|
14
14
|
switch (t) {
|
|
@@ -34,16 +34,16 @@ function v() {
|
|
|
34
34
|
_.isRequired = g, v.isRequired = v;
|
|
35
35
|
var y = process.env.NODE_ENV === "production" ? v : _;
|
|
36
36
|
//#endregion
|
|
37
|
-
//#region ../../node_modules/@mui/material/
|
|
37
|
+
//#region ../../node_modules/@mui/material/Paper/paperClasses.mjs
|
|
38
38
|
function b(e) {
|
|
39
39
|
return l("MuiPaper", e);
|
|
40
40
|
}
|
|
41
41
|
u("MuiPaper", /* @__PURE__ */ "root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24".split("."));
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/@mui/material/
|
|
44
|
-
var x = /* @__PURE__ */ e(t()), S = (e) => {
|
|
43
|
+
//#region ../../node_modules/@mui/material/Paper/Paper.mjs
|
|
44
|
+
var x = /* @__PURE__ */ e(t(), 1), S = (e) => {
|
|
45
45
|
let { square: t, elevation: n, variant: r, classes: i } = e;
|
|
46
|
-
return
|
|
46
|
+
return a({ root: [
|
|
47
47
|
"root",
|
|
48
48
|
r,
|
|
49
49
|
!t && "rounded",
|
|
@@ -83,11 +83,11 @@ var x = /* @__PURE__ */ e(t()), S = (e) => {
|
|
|
83
83
|
}
|
|
84
84
|
]
|
|
85
85
|
}))), w = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
86
|
-
let
|
|
86
|
+
let a = o({
|
|
87
87
|
props: e,
|
|
88
88
|
name: "MuiPaper"
|
|
89
|
-
}), s = i(), { className: l, component: u = "div", elevation: d = 1, square: f = !1, variant: p = "elevation", ...h } =
|
|
90
|
-
...
|
|
89
|
+
}), s = i(), { className: l, component: u = "div", elevation: d = 1, square: f = !1, variant: p = "elevation", ...h } = a, g = {
|
|
90
|
+
...a,
|
|
91
91
|
component: u,
|
|
92
92
|
elevation: d,
|
|
93
93
|
square: f,
|