@solostylist/ui-kit 2.0.0 → 2.0.1
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/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-Dw3PEYF5.js → palettes-CJLuEy1m.js} +163 -163
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +184 -2
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/s-checkbox.js +18 -19
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +80 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
- package/dist/s-dialog-message/s-dialog-message.js +31 -32
- package/dist/s-empty/s-empty.js +13 -14
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/s-file-icon.js +87 -88
- package/dist/s-flex-box/s-flex-box.js +11 -12
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +9 -10
- package/dist/s-icon-button/s-icon-button.js +15 -16
- package/dist/s-image-comparison/s-image-comparison.js +29 -31
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +266 -2
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-label/s-label.js +26 -27
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +150 -2
- package/dist/s-lazy-image/s-lazy-image.js +17 -18
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +5 -2
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-nav-item/s-nav-item.js +16 -16
- package/dist/s-nav-items/index.js +2 -2
- package/dist/s-nav-items/s-nav-items.js +167 -2
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +85 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-quantity-input/index.js +1 -1
- package/dist/s-quantity-input/s-quantity-input.js +246 -2
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
- package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/s-select-list.js +47 -50
- package/dist/s-skeleton/s-skeleton.js +16 -17
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +48 -2
- package/dist/s-tabs/s-tabs.js +48 -50
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
- package/dist/s-text-editor/s-text-editor.js +25 -26
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- 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 +60 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.js +22 -22
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +18 -19
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/field-label-styles.js +19 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +14 -13
- package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +1 -0
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.js +3 -2
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.js +14 -13
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +1 -1
- package/dist/Add-COc9VdNg.js +0 -6
- package/dist/ArrowUpward-D88i2k4q.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DgIFcM44.js +0 -534
- package/dist/ButtonBase-DxKtpFYs.js +0 -747
- package/dist/Checkbox-BoZu9z2l.js +0 -152
- package/dist/ChevronRight-BxsM4W78.js +0 -6
- package/dist/Close-o4HFfK0I.js +0 -6
- package/dist/Collapse-zgIFP5Sj.js +0 -266
- package/dist/ContentCopy-5unyTYXy.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-CAry6lVf.js +0 -450
- package/dist/Download-DtvoRwpl.js +0 -6
- package/dist/ExpandMore-Ba5bg6s-.js +0 -6
- package/dist/Favorite-B_GsElm0.js +0 -6
- package/dist/FormControl-BxmM9UP6.js +0 -221
- package/dist/FormControlLabel-DzgppcC_.js +0 -173
- package/dist/Grow-zRRuwUl-.js +0 -121
- package/dist/InfoOutlined-VC7X46pc.js +0 -6
- package/dist/List-CnGIAXAS.js +0 -103
- package/dist/ListContext-B1HQt3OD.js +0 -6
- package/dist/Menu-C4Zabc9U.js +0 -504
- package/dist/MenuItem-rXJfQzDC.js +0 -223
- package/dist/MenuList-DDV8J-yd.js +0 -407
- package/dist/Modal-jAiibALV.js +0 -707
- package/dist/Paper-ixxCeml9.js +0 -115
- package/dist/Popper-CVYyMS3c.js +0 -1350
- package/dist/Portal-AnyvFRC4.js +0 -53
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-UMc4dV4G.js +0 -158
- package/dist/SwitchBase-D7zqrstO.js +0 -198
- package/dist/Tooltip-DbCd6rgF.js +0 -447
- package/dist/Typography-yXjc7kVP.js +0 -168
- package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
- package/dist/appendOwnerState-CELpvdMz.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-B_4y84Ba.js +0 -43
- package/dist/avatar-BHuZu3DN.js +0 -10
- package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
- package/dist/capitalize-CccCFNpQ.js +0 -5
- package/dist/checkbox-BKMZEVU5.js +0 -88
- package/dist/checkboxClasses-CEsqS4sc.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-DGZSe4Nt.js +0 -16
- package/dist/colorManipulator-DmUjcif3.js +0 -129
- package/dist/contains-WOhYaq1E.js +0 -16
- package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
- package/dist/createSvgIcon-B0SZlJF1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/field-label-styles-BOyhp6gw.js +0 -50
- package/dist/formLabelClasses-B0Fa-86T.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/iconButtonClasses-CkciZuIe.js +0 -27
- package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
- package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
- package/dist/integerPropType-Disnft4a.js +0 -27
- package/dist/isEventHandler-8dPdzK9U.js +0 -7
- package/dist/isFocusVisible-Y7157FQS.js +0 -35
- package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
- package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
- package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
- package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
- package/dist/outlinedInputClasses-DECY98u0.js +0 -17
- package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-B8nlrdFc.js +0 -487
- package/dist/s-carousel-Dnjke4JQ.js +0 -1353
- package/dist/s-chat-input-DCS0mJE4.js +0 -419
- package/dist/s-chat-message-9oollJJq.js +0 -315
- package/dist/s-chips-WqGdqHW9.js +0 -176
- package/dist/s-code-block-DzGoGg5e.js +0 -658
- package/dist/s-comment-message-C6kfgRjv.js +0 -191
- package/dist/s-data-table-B1TGVupB.js +0 -805
- package/dist/s-date-picker-BpX4HmBp.js +0 -656
- package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
- package/dist/s-dialog-BLiyjLkx.js +0 -123
- package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
- package/dist/s-image-viewer-DNIEYdtL.js +0 -269
- package/dist/s-language-switcher-D-1nywT3.js +0 -251
- package/dist/s-link-CAMTGfd9.js +0 -234
- package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
- package/dist/s-nav-items-BUp7DddG.js +0 -327
- package/dist/s-no-ssr-D8tPdDfh.js +0 -25
- package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
- package/dist/s-quantity-input-mYCixlJc.js +0 -246
- package/dist/s-review-DSXXtWlL.js +0 -272
- package/dist/s-select-dwY2DYa9.js +0 -204
- package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
- package/dist/s-switch-B8bZAzLh.js +0 -307
- package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
- package/dist/s-text-field-BM4qk0mf.js +0 -51
- package/dist/s-theme-switch-BLMz1_m2.js +0 -60
- package/dist/s-tip-ty41ePQm.js +0 -62
- package/dist/selectClasses-DoUlWfzV.js +0 -22
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-C8D4AsMj.js +0 -20
- package/dist/switchClasses-eiq1bkQN.js +0 -23
- package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
- package/dist/toggle-button-Cxi5CfXC.js +0 -104
- package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
- package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
- package/dist/typographyClasses-BLM3NmYd.js +0 -31
- package/dist/useControlled-BeB0W_Ui.js +0 -5
- package/dist/useControlled-C4QJnpiR.js +0 -29
- package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEventCallback-CVqMfiG_.js +0 -14
- package/dist/useForkRef-CKneCEtr.js +0 -29
- package/dist/useFormControl-iWLrn7Ek.js +0 -18
- package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
- package/dist/useSlot-iIu8ek6E.js +0 -83
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-BI9yq95N.js +0 -19
- package/dist/useThemeProps-Cr28OQu3.js +0 -13
- package/dist/utils-oJyTAkZY.js +0 -214
- package/dist/warning-CNkSZkq6.js +0 -98
- package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
- /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { t } from "./prop-types-BzYPyWN7.js";
|
|
3
|
-
import { r as n, t as r } from "./DefaultPropsProvider-ebWx4_5E.js";
|
|
4
|
-
import { t as i } from "./generateUtilityClass-PAIOm1jC.js";
|
|
5
|
-
import { t as a } from "./clsx-DGZSe4Nt.js";
|
|
6
|
-
import { t as o } from "./generateUtilityClasses-DvX505Gy.js";
|
|
7
|
-
import { n as s, t as c } from "./styled-Bog8QCl3.js";
|
|
8
|
-
import { a as l } from "./elementAcceptingRef-DhkNAkFH.js";
|
|
9
|
-
import { t as u } from "./memoTheme-qFyKAk7y.js";
|
|
10
|
-
import { t as d } from "./ButtonBase-DxKtpFYs.js";
|
|
11
|
-
import { t as f } from "./useForkRef-CKneCEtr.js";
|
|
12
|
-
import { a as p, i as m, n as h, o as g } from "./MenuList-DDV8J-yd.js";
|
|
13
|
-
import { t as _ } from "./useEnhancedEffect-Bc3gBClC.js";
|
|
14
|
-
import { t as v } from "./ListContext-B1HQt3OD.js";
|
|
15
|
-
import * as y from "react";
|
|
16
|
-
import { jsx as b } from "react/jsx-runtime";
|
|
17
|
-
//#region ../../node_modules/@mui/material/ListItemIcon/listItemIconClasses.mjs
|
|
18
|
-
function x(e) {
|
|
19
|
-
return i("MuiListItemIcon", e);
|
|
20
|
-
}
|
|
21
|
-
var S = o("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region ../../node_modules/@mui/material/Divider/dividerClasses.mjs
|
|
24
|
-
function C(e) {
|
|
25
|
-
return i("MuiDivider", e);
|
|
26
|
-
}
|
|
27
|
-
var w = o("MuiDivider", [
|
|
28
|
-
"root",
|
|
29
|
-
"absolute",
|
|
30
|
-
"fullWidth",
|
|
31
|
-
"inset",
|
|
32
|
-
"middle",
|
|
33
|
-
"flexItem",
|
|
34
|
-
"vertical",
|
|
35
|
-
"withChildren",
|
|
36
|
-
"textAlignRight",
|
|
37
|
-
"textAlignLeft",
|
|
38
|
-
"wrapper",
|
|
39
|
-
"wrapperVertical"
|
|
40
|
-
]), T = o("MuiListItemText", [
|
|
41
|
-
"root",
|
|
42
|
-
"multiline",
|
|
43
|
-
"dense",
|
|
44
|
-
"inset",
|
|
45
|
-
"primary",
|
|
46
|
-
"secondary"
|
|
47
|
-
]), E = /* @__PURE__ */ e(t(), 1);
|
|
48
|
-
function D(e) {
|
|
49
|
-
return i("MuiMenuItem", e);
|
|
50
|
-
}
|
|
51
|
-
var O = o("MuiMenuItem", [
|
|
52
|
-
"root",
|
|
53
|
-
"focusVisible",
|
|
54
|
-
"dense",
|
|
55
|
-
"disabled",
|
|
56
|
-
"divider",
|
|
57
|
-
"gutters",
|
|
58
|
-
"selected"
|
|
59
|
-
]), k = (e, t) => {
|
|
60
|
-
let { ownerState: n } = e;
|
|
61
|
-
return [
|
|
62
|
-
t.root,
|
|
63
|
-
n.dense && t.dense,
|
|
64
|
-
n.divider && t.divider,
|
|
65
|
-
!n.disableGutters && t.gutters
|
|
66
|
-
];
|
|
67
|
-
}, A = (e) => {
|
|
68
|
-
let { disabled: t, dense: r, divider: i, disableGutters: a, selected: o, classes: s } = e, c = n({ root: [
|
|
69
|
-
"root",
|
|
70
|
-
r && "dense",
|
|
71
|
-
t && "disabled",
|
|
72
|
-
!a && "gutters",
|
|
73
|
-
i && "divider",
|
|
74
|
-
o && "selected"
|
|
75
|
-
] }, D, s);
|
|
76
|
-
return {
|
|
77
|
-
...s,
|
|
78
|
-
...c
|
|
79
|
-
};
|
|
80
|
-
}, j = c(d, {
|
|
81
|
-
shouldForwardProp: (e) => s(e) || e === "classes",
|
|
82
|
-
name: "MuiMenuItem",
|
|
83
|
-
slot: "Root",
|
|
84
|
-
overridesResolver: k
|
|
85
|
-
})(u(({ theme: e }) => ({
|
|
86
|
-
...e.typography.body1,
|
|
87
|
-
display: "flex",
|
|
88
|
-
justifyContent: "flex-start",
|
|
89
|
-
alignItems: "center",
|
|
90
|
-
position: "relative",
|
|
91
|
-
textDecoration: "none",
|
|
92
|
-
minHeight: 48,
|
|
93
|
-
paddingTop: 6,
|
|
94
|
-
paddingBottom: 6,
|
|
95
|
-
boxSizing: "border-box",
|
|
96
|
-
whiteSpace: "nowrap",
|
|
97
|
-
"&:hover": {
|
|
98
|
-
textDecoration: "none",
|
|
99
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
100
|
-
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
101
|
-
},
|
|
102
|
-
[`&.${O.selected}`]: {
|
|
103
|
-
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
|
|
104
|
-
[`&.${O.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) }
|
|
105
|
-
},
|
|
106
|
-
[`&.${O.selected}:hover`]: {
|
|
107
|
-
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
|
|
108
|
-
"@media (hover: none)": { backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity) }
|
|
109
|
-
},
|
|
110
|
-
[`&.${O.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
|
|
111
|
-
[`&.${O.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
|
|
112
|
-
[`& + .${w.root}`]: {
|
|
113
|
-
marginTop: e.spacing(1),
|
|
114
|
-
marginBottom: e.spacing(1)
|
|
115
|
-
},
|
|
116
|
-
[`& + .${w.inset}`]: { marginLeft: 52 },
|
|
117
|
-
[`& .${T.root}`]: {
|
|
118
|
-
marginTop: 0,
|
|
119
|
-
marginBottom: 0
|
|
120
|
-
},
|
|
121
|
-
[`& .${T.inset}`]: { paddingLeft: 36 },
|
|
122
|
-
[`& .${S.root}`]: { minWidth: 36 },
|
|
123
|
-
variants: [
|
|
124
|
-
{
|
|
125
|
-
props: ({ ownerState: e }) => !e.disableGutters,
|
|
126
|
-
style: {
|
|
127
|
-
paddingLeft: 16,
|
|
128
|
-
paddingRight: 16
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
props: ({ ownerState: e }) => e.divider,
|
|
133
|
-
style: {
|
|
134
|
-
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
135
|
-
backgroundClip: "padding-box"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
props: ({ ownerState: e }) => !e.dense,
|
|
140
|
-
style: { [e.breakpoints.up("sm")]: { minHeight: "auto" } }
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
props: ({ ownerState: e }) => e.dense,
|
|
144
|
-
style: {
|
|
145
|
-
minHeight: 32,
|
|
146
|
-
paddingTop: 4,
|
|
147
|
-
paddingBottom: 4,
|
|
148
|
-
...e.typography.body2,
|
|
149
|
-
[`& .${S.root} svg`]: { fontSize: "1.25rem" }
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
]
|
|
153
|
-
}))), M = /* @__PURE__ */ y.forwardRef(function(e, t) {
|
|
154
|
-
let n = r({
|
|
155
|
-
props: e,
|
|
156
|
-
name: "MuiMenuItem"
|
|
157
|
-
}), { autoFocus: i = !1, component: o = "li", dense: s = !1, divider: c = !1, disableGutters: u = !1, focusVisibleClassName: d, role: x = "menuitem", tabIndex: S, className: C, ...w } = n, T = m(), E = y.useContext(v), D = y.useMemo(() => ({
|
|
158
|
-
dense: s || E.dense || !1,
|
|
159
|
-
disableGutters: u
|
|
160
|
-
}), [
|
|
161
|
-
E.dense,
|
|
162
|
-
s,
|
|
163
|
-
u
|
|
164
|
-
]), O = h(), k = l(), M = O.suppressInitialFocusVisible, N = O.itemsFocusableWhenDisabled, P = y.useRef(null);
|
|
165
|
-
_(() => {
|
|
166
|
-
i && (P.current ? p(P.current, T) : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
167
|
-
}, [i]);
|
|
168
|
-
let F = {
|
|
169
|
-
...n,
|
|
170
|
-
dense: D.dense,
|
|
171
|
-
divider: c,
|
|
172
|
-
disableGutters: u
|
|
173
|
-
}, I = A(n), { root: L, ...R } = I, z = g({
|
|
174
|
-
id: k,
|
|
175
|
-
ref: t,
|
|
176
|
-
disabled: n.disabled,
|
|
177
|
-
focusableWhenDisabled: N,
|
|
178
|
-
selected: n.selected
|
|
179
|
-
}), B = f(P, z.ref), V;
|
|
180
|
-
return S === void 0 ? O.variant === "selectedMenu" ? V = z.tabIndex : (!n.disabled || N) && (V = -1) : V = S, /* @__PURE__ */ b(v.Provider, {
|
|
181
|
-
value: D,
|
|
182
|
-
children: /* @__PURE__ */ b(j, {
|
|
183
|
-
ref: B,
|
|
184
|
-
role: x,
|
|
185
|
-
tabIndex: V,
|
|
186
|
-
component: o,
|
|
187
|
-
internalNativeButton: !1,
|
|
188
|
-
focusableWhenDisabled: N,
|
|
189
|
-
suppressFocusVisible: M,
|
|
190
|
-
focusVisibleClassName: a(I.focusVisible, d),
|
|
191
|
-
className: a(I.root, C),
|
|
192
|
-
...w,
|
|
193
|
-
ownerState: F,
|
|
194
|
-
classes: R
|
|
195
|
-
})
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
199
|
-
autoFocus: E.default.bool,
|
|
200
|
-
children: E.default.node,
|
|
201
|
-
classes: E.default.object,
|
|
202
|
-
className: E.default.string,
|
|
203
|
-
component: E.default.elementType,
|
|
204
|
-
dense: E.default.bool,
|
|
205
|
-
disabled: E.default.bool,
|
|
206
|
-
disableGutters: E.default.bool,
|
|
207
|
-
divider: E.default.bool,
|
|
208
|
-
focusVisibleClassName: E.default.string,
|
|
209
|
-
role: E.default.string,
|
|
210
|
-
selected: E.default.bool,
|
|
211
|
-
sx: E.default.oneOfType([
|
|
212
|
-
E.default.arrayOf(E.default.oneOfType([
|
|
213
|
-
E.default.func,
|
|
214
|
-
E.default.object,
|
|
215
|
-
E.default.bool
|
|
216
|
-
])),
|
|
217
|
-
E.default.func,
|
|
218
|
-
E.default.object
|
|
219
|
-
]),
|
|
220
|
-
tabIndex: E.default.number
|
|
221
|
-
});
|
|
222
|
-
//#endregion
|
|
223
|
-
export { C as n, x as r, M as t };
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { t } from "./prop-types-BzYPyWN7.js";
|
|
3
|
-
import { t as n } from "./useEnhancedEffect-DFq_FMGX.js";
|
|
4
|
-
import { o as r } from "./elementAcceptingRef-DhkNAkFH.js";
|
|
5
|
-
import { n as i, t as a } from "./useForkRef-CKneCEtr.js";
|
|
6
|
-
import { n as o, t as s } from "./useEventCallback-CVqMfiG_.js";
|
|
7
|
-
import { c, l, o as u, s as d, u as f } from "./Modal-jAiibALV.js";
|
|
8
|
-
import { r as p } from "./Portal-AnyvFRC4.js";
|
|
9
|
-
import { t as m } from "./useEnhancedEffect-Bc3gBClC.js";
|
|
10
|
-
import { t as h } from "./List-CnGIAXAS.js";
|
|
11
|
-
import * as g from "react";
|
|
12
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../node_modules/@mui/utils/debounce/debounce.mjs
|
|
14
|
-
function v(e, t = 166) {
|
|
15
|
-
let n;
|
|
16
|
-
function r(...r) {
|
|
17
|
-
clearTimeout(n), n = setTimeout(() => {
|
|
18
|
-
e.apply(this, r);
|
|
19
|
-
}, t);
|
|
20
|
-
}
|
|
21
|
-
return r.clear = () => {
|
|
22
|
-
clearTimeout(n);
|
|
23
|
-
}, r;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../../node_modules/@mui/material/utils/debounce.mjs
|
|
27
|
-
var y = v, b = /* @__PURE__ */ e(t(), 1), x = r, S = c, C = /* @__PURE__ */ g.createContext(void 0);
|
|
28
|
-
process.env.NODE_ENV !== "production" && (C.displayName = "RovingTabIndexContext");
|
|
29
|
-
function w() {
|
|
30
|
-
let e = g.useContext(C);
|
|
31
|
-
if (e === void 0) throw Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");
|
|
32
|
-
return e;
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region ../../node_modules/@mui/utils/fastObjectShallowCompare/fastObjectShallowCompare.mjs
|
|
36
|
-
var T = Object.is;
|
|
37
|
-
function E(e, t) {
|
|
38
|
-
if (e === t) return !0;
|
|
39
|
-
if (!(e instanceof Object) || !(t instanceof Object)) return !1;
|
|
40
|
-
let n = 0, r = 0;
|
|
41
|
-
for (let r in e) if (n += 1, !T(e[r], t[r]) || !(r in t)) return !1;
|
|
42
|
-
for (let e in t) r += 1;
|
|
43
|
-
return n === r;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region ../../node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.mjs
|
|
47
|
-
var D = [
|
|
48
|
-
"ArrowRight",
|
|
49
|
-
"ArrowLeft",
|
|
50
|
-
"ArrowUp",
|
|
51
|
-
"ArrowDown",
|
|
52
|
-
"Home",
|
|
53
|
-
"End"
|
|
54
|
-
];
|
|
55
|
-
function O(e) {
|
|
56
|
-
let { activeItemId: t, getDefaultActiveItemId: n, orientation: i, isRtl: a = !1, isItemFocusable: s = H, wrap: c = !0 } = e, [l, u] = g.useState(t), d = g.useRef(t), p = l;
|
|
57
|
-
t !== d.current && (d.current = t, t !== void 0 && t !== l && (p = t, u(t)));
|
|
58
|
-
let m = g.useRef(null), h = g.useRef(/* @__PURE__ */ new Map()), [_, v] = g.useState(0), y = g.useMemo(() => z(h.current), [_]), b = A(p, y, s, n), x = g.useRef(b);
|
|
59
|
-
x.current = b;
|
|
60
|
-
let S = g.useCallback(() => {
|
|
61
|
-
let e = z(h.current);
|
|
62
|
-
return I(e, A(x.current, e, s, n));
|
|
63
|
-
}, [n, s]), C = g.useCallback(() => h.current, []), w = o((e) => {
|
|
64
|
-
E(h.current.get(e.id) ?? null, e) || (h.current.set(e.id, e), v((e) => e + 1));
|
|
65
|
-
}), T = o((e) => {
|
|
66
|
-
h.current.delete(e) && v((e) => e + 1);
|
|
67
|
-
}), O = o((e) => {
|
|
68
|
-
u(e);
|
|
69
|
-
}), k = g.useCallback((e) => x.current === e, []), j = g.useCallback((e, t, n, r) => {
|
|
70
|
-
let i = P(B(h.current), e, t, n, r ?? s);
|
|
71
|
-
return i ? (i.element?.focus(), u(i.id), i) : null;
|
|
72
|
-
}, [s]), M = g.useCallback((e) => ({
|
|
73
|
-
onFocus: (e) => {
|
|
74
|
-
let t = B(h.current), n = R(t, e.target);
|
|
75
|
-
n !== -1 && u(t[n].id);
|
|
76
|
-
},
|
|
77
|
-
onKeyDown: (e) => {
|
|
78
|
-
if (e.altKey || e.shiftKey || e.ctrlKey || e.metaKey || !D.includes(e.key)) return;
|
|
79
|
-
let t = i === "horizontal" ? "ArrowLeft" : "ArrowUp", n = i === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
80
|
-
i === "horizontal" && a && (t = "ArrowRight", n = "ArrowLeft");
|
|
81
|
-
let o = B(h.current), s = f(r(m.current)), l = s === m.current, u = N(o, s, x.current), d = "next";
|
|
82
|
-
switch (e.key) {
|
|
83
|
-
case t:
|
|
84
|
-
d = "previous", e.preventDefault(), l && (u = o.length);
|
|
85
|
-
break;
|
|
86
|
-
case n:
|
|
87
|
-
e.preventDefault(), l && (u = -1);
|
|
88
|
-
break;
|
|
89
|
-
case "Home":
|
|
90
|
-
e.preventDefault(), u = -1;
|
|
91
|
-
break;
|
|
92
|
-
case "End":
|
|
93
|
-
e.preventDefault(), d = "previous", u = o.length;
|
|
94
|
-
break;
|
|
95
|
-
default: return;
|
|
96
|
-
}
|
|
97
|
-
j(u, d, c);
|
|
98
|
-
},
|
|
99
|
-
ref: G(e, (e) => {
|
|
100
|
-
m.current = e;
|
|
101
|
-
})
|
|
102
|
-
}), [
|
|
103
|
-
j,
|
|
104
|
-
a,
|
|
105
|
-
i,
|
|
106
|
-
c
|
|
107
|
-
]), F = g.useCallback((e) => {
|
|
108
|
-
let t = B(h.current), n = f(r(m.current));
|
|
109
|
-
return j(n === m.current ? -1 : N(t, n, x.current), "next", !0, e)?.id ?? null;
|
|
110
|
-
}, [j]);
|
|
111
|
-
return g.useMemo(() => ({
|
|
112
|
-
activeItemId: b,
|
|
113
|
-
focusNext: F,
|
|
114
|
-
getActiveItem: S,
|
|
115
|
-
getContainerProps: M,
|
|
116
|
-
getItemMap: C,
|
|
117
|
-
isItemActive: k,
|
|
118
|
-
registerItem: w,
|
|
119
|
-
setActiveItemId: O,
|
|
120
|
-
unregisterItem: T
|
|
121
|
-
}), [
|
|
122
|
-
b,
|
|
123
|
-
F,
|
|
124
|
-
S,
|
|
125
|
-
M,
|
|
126
|
-
C,
|
|
127
|
-
k,
|
|
128
|
-
w,
|
|
129
|
-
O,
|
|
130
|
-
T
|
|
131
|
-
]);
|
|
132
|
-
}
|
|
133
|
-
function k(e) {
|
|
134
|
-
let { activeItemId: t, registerItem: r, unregisterItem: a } = w(), o = g.useRef(null), s = g.useMemo(() => ({
|
|
135
|
-
disabled: e.disabled ?? !1,
|
|
136
|
-
element: null,
|
|
137
|
-
focusableWhenDisabled: e.focusableWhenDisabled ?? !1,
|
|
138
|
-
id: e.id,
|
|
139
|
-
selected: e.selected ?? !1,
|
|
140
|
-
textValue: e.textValue
|
|
141
|
-
}), [
|
|
142
|
-
e.disabled,
|
|
143
|
-
e.focusableWhenDisabled,
|
|
144
|
-
e.id,
|
|
145
|
-
e.selected,
|
|
146
|
-
e.textValue
|
|
147
|
-
]), c = g.useRef(s);
|
|
148
|
-
c.current = s;
|
|
149
|
-
let l = g.useCallback((t) => {
|
|
150
|
-
if (o.current = t, t == null) {
|
|
151
|
-
queueMicrotask(() => {
|
|
152
|
-
o.current ?? a(e.id);
|
|
153
|
-
});
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
r({
|
|
157
|
-
...c.current,
|
|
158
|
-
element: t
|
|
159
|
-
});
|
|
160
|
-
}, [
|
|
161
|
-
e.id,
|
|
162
|
-
r,
|
|
163
|
-
a
|
|
164
|
-
]), u = i(e.ref, l);
|
|
165
|
-
return n(() => {
|
|
166
|
-
o.current && r({
|
|
167
|
-
...s,
|
|
168
|
-
element: o.current
|
|
169
|
-
});
|
|
170
|
-
}, [s, r]), n(() => {
|
|
171
|
-
let t = e.id;
|
|
172
|
-
return () => {
|
|
173
|
-
a(t);
|
|
174
|
-
};
|
|
175
|
-
}, [e.id, a]), {
|
|
176
|
-
ref: u,
|
|
177
|
-
tabIndex: t === e.id ? 0 : -1
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
function A(e, t, n, r) {
|
|
181
|
-
return e == null ? M(t, n, r) : j(e, t, n);
|
|
182
|
-
}
|
|
183
|
-
function j(e, t, n) {
|
|
184
|
-
let r = L(t, e);
|
|
185
|
-
return r === -1 ? F(t, n) : n(t[r]) ? t[r].id : P(t, r, "next", !1, n)?.id ?? null;
|
|
186
|
-
}
|
|
187
|
-
function M(e, t, n) {
|
|
188
|
-
let r = n?.(e);
|
|
189
|
-
if (r != null) {
|
|
190
|
-
let n = I(e, r);
|
|
191
|
-
if (n && t(n)) return n.id;
|
|
192
|
-
}
|
|
193
|
-
return F(e, t);
|
|
194
|
-
}
|
|
195
|
-
function N(e, t, n) {
|
|
196
|
-
if (t) {
|
|
197
|
-
let n = R(e, t);
|
|
198
|
-
if (n !== -1) return n;
|
|
199
|
-
}
|
|
200
|
-
return L(e, n);
|
|
201
|
-
}
|
|
202
|
-
function P(e, t, n, r, i) {
|
|
203
|
-
let a = e.length - 1;
|
|
204
|
-
if (a === -1) return null;
|
|
205
|
-
let o = !1, s = V(t, a, n, r), c = s;
|
|
206
|
-
for (; s !== -1;) {
|
|
207
|
-
if (s === c) {
|
|
208
|
-
if (o) return null;
|
|
209
|
-
o = !0;
|
|
210
|
-
}
|
|
211
|
-
let t = e[s];
|
|
212
|
-
if (!t || !i(t)) s = V(s, a, n, r);
|
|
213
|
-
else return t;
|
|
214
|
-
}
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
|
-
function F(e, t) {
|
|
218
|
-
return e.find((e) => t(e))?.id ?? null;
|
|
219
|
-
}
|
|
220
|
-
function I(e, t) {
|
|
221
|
-
return t == null ? null : e.find((e) => e.id === t) ?? null;
|
|
222
|
-
}
|
|
223
|
-
function L(e, t) {
|
|
224
|
-
return t == null ? -1 : e.findIndex((e) => e.id === t);
|
|
225
|
-
}
|
|
226
|
-
function R(e, t) {
|
|
227
|
-
return t ? e.findIndex((e) => e.element === t || e.element?.contains(t)) : -1;
|
|
228
|
-
}
|
|
229
|
-
function z(e) {
|
|
230
|
-
let t = Array.from(e.values());
|
|
231
|
-
if (t.every((e) => e.element == null)) return t;
|
|
232
|
-
let n = t.filter(U).sort((e, t) => W(e.element, t.element)), r = t.filter((e) => !U(e));
|
|
233
|
-
return [...n, ...r];
|
|
234
|
-
}
|
|
235
|
-
function B(e) {
|
|
236
|
-
return z(e).filter(U);
|
|
237
|
-
}
|
|
238
|
-
function V(e, t, n, r = !0) {
|
|
239
|
-
return n === "next" ? e === t ? r ? 0 : -1 : e + 1 : e === 0 ? r ? t : -1 : e - 1;
|
|
240
|
-
}
|
|
241
|
-
function H(e) {
|
|
242
|
-
return e.element ? e.focusableWhenDisabled ? !0 : !e.disabled && !e.element.hasAttribute("disabled") && e.element.getAttribute("aria-disabled") !== "true" && e.element.hasAttribute("tabindex") : !1;
|
|
243
|
-
}
|
|
244
|
-
function U(e) {
|
|
245
|
-
return e.element != null && e.element.isConnected;
|
|
246
|
-
}
|
|
247
|
-
function W(e, t) {
|
|
248
|
-
if (e === t) return 0;
|
|
249
|
-
let n = e.compareDocumentPosition(t);
|
|
250
|
-
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;
|
|
251
|
-
}
|
|
252
|
-
function G(...e) {
|
|
253
|
-
return (t) => {
|
|
254
|
-
e.forEach((e) => {
|
|
255
|
-
p(e ?? null, t);
|
|
256
|
-
});
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region ../../node_modules/@mui/material/utils/getScrollbarSize.mjs
|
|
261
|
-
var K = u;
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region ../../node_modules/@mui/material/utils/focusWithVisible.mjs
|
|
264
|
-
function q(e, t) {
|
|
265
|
-
if (t == null) {
|
|
266
|
-
e.focus();
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
try {
|
|
270
|
-
e.focus({ focusVisible: t === "keyboard" });
|
|
271
|
-
} catch {
|
|
272
|
-
e.focus();
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
//#endregion
|
|
276
|
-
//#region ../../node_modules/@mui/material/Select/utils/SelectFocusSourceContext.mjs
|
|
277
|
-
var J = /* @__PURE__ */ g.createContext(null);
|
|
278
|
-
process.env.NODE_ENV !== "production" && (J.displayName = "SelectFocusSourceContext");
|
|
279
|
-
function Y() {
|
|
280
|
-
return g.useContext(J);
|
|
281
|
-
}
|
|
282
|
-
var X = J.Provider, Z = /* @__PURE__ */ g.createContext(void 0);
|
|
283
|
-
process.env.NODE_ENV !== "production" && (Z.displayName = "MenuListContext");
|
|
284
|
-
function ee() {
|
|
285
|
-
let e = g.useContext(Z);
|
|
286
|
-
if (e === void 0) throw Error("MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.");
|
|
287
|
-
return e;
|
|
288
|
-
}
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region ../../node_modules/@mui/material/MenuList/MenuList.mjs
|
|
291
|
-
function te(e) {
|
|
292
|
-
let t = e?.element ?? e;
|
|
293
|
-
if (!t) return "";
|
|
294
|
-
if (e?.textValue !== void 0) return e.textValue;
|
|
295
|
-
let n = t.innerText;
|
|
296
|
-
return n === void 0 && (n = t.textContent), n ?? "";
|
|
297
|
-
}
|
|
298
|
-
function Q(e, t) {
|
|
299
|
-
if (t === void 0) return !0;
|
|
300
|
-
let n = te(e);
|
|
301
|
-
return n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
|
|
302
|
-
}
|
|
303
|
-
function ne(e, t) {
|
|
304
|
-
return Q(e, t) ? H(e) : !1;
|
|
305
|
-
}
|
|
306
|
-
function re(e, t) {
|
|
307
|
-
q(e, t);
|
|
308
|
-
}
|
|
309
|
-
var $ = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
310
|
-
let { actions: n, autoFocus: r = !1, autoFocusItem: i = !1, children: o, className: c, disabledItemsFocusable: u = !1, disableListWrap: f = !1, onKeyDown: p, variant: v = "selectedMenu", ...y } = e, b = g.useRef(null), w = g.useRef(!1), [T, E] = g.useState(!1), D = Y(), k = g.useRef({
|
|
311
|
-
keys: [],
|
|
312
|
-
repeating: !0,
|
|
313
|
-
previousKeyMatched: !0,
|
|
314
|
-
lastTime: null
|
|
315
|
-
}), A = O({
|
|
316
|
-
activeItemId: void 0,
|
|
317
|
-
getDefaultActiveItemId: g.useCallback((e) => v === "selectedMenu" ? e.find((e) => e.selected && H(e))?.id ?? e.find((e) => H(e))?.id ?? null : e.find((e) => H(e))?.id ?? null, [v]),
|
|
318
|
-
orientation: "vertical",
|
|
319
|
-
wrap: !f
|
|
320
|
-
}), { activeItemId: j, focusNext: M, getActiveItem: N, getContainerProps: P, getItemMap: F } = A, I = s((e = !1) => {
|
|
321
|
-
if (!b.current || !e && w.current) return null;
|
|
322
|
-
if (i) {
|
|
323
|
-
let e = N();
|
|
324
|
-
if (e?.element) {
|
|
325
|
-
let t = Array.from(F().values()).some((e) => e.selected);
|
|
326
|
-
return E(v === "menu" && t && !e.selected && D == null), re(e.element, D), w.current = !0, e.element;
|
|
327
|
-
}
|
|
328
|
-
return r ? (E(!1), b.current.focus(), b.current) : null;
|
|
329
|
-
}
|
|
330
|
-
return r ? (E(!1), b.current.focus(), w.current = !0, b.current) : (E(!1), null);
|
|
331
|
-
});
|
|
332
|
-
m(() => {
|
|
333
|
-
if (!r && !i) {
|
|
334
|
-
w.current = !1, E(!1);
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
I();
|
|
338
|
-
}, [
|
|
339
|
-
j,
|
|
340
|
-
i,
|
|
341
|
-
r,
|
|
342
|
-
I
|
|
343
|
-
]), g.useImperativeHandle(n, () => ({
|
|
344
|
-
adjustStyleForScrollbar: (e, { direction: t }) => {
|
|
345
|
-
let n = !b.current.style.width;
|
|
346
|
-
if (e.clientHeight < b.current.clientHeight && n) {
|
|
347
|
-
let n = `${K(S(e))}px`;
|
|
348
|
-
b.current.style[t === "rtl" ? "paddingLeft" : "paddingRight"] = n, b.current.style.width = `calc(100% + ${n})`;
|
|
349
|
-
}
|
|
350
|
-
return b.current;
|
|
351
|
-
},
|
|
352
|
-
focusInitialTarget: () => {
|
|
353
|
-
if (!b.current) return null;
|
|
354
|
-
let e = l(x(b.current));
|
|
355
|
-
return e && d(b.current, e) ? e : I(!0);
|
|
356
|
-
}
|
|
357
|
-
}), [I]);
|
|
358
|
-
let L = P(), R = a(b, L.ref, t), z = g.useMemo(() => ({
|
|
359
|
-
itemsFocusableWhenDisabled: u,
|
|
360
|
-
suppressInitialFocusVisible: T,
|
|
361
|
-
variant: v
|
|
362
|
-
}), [
|
|
363
|
-
u,
|
|
364
|
-
T,
|
|
365
|
-
v
|
|
366
|
-
]);
|
|
367
|
-
return /* @__PURE__ */ _(h, {
|
|
368
|
-
role: "menu",
|
|
369
|
-
ref: R,
|
|
370
|
-
className: c,
|
|
371
|
-
onKeyDown: s((e) => {
|
|
372
|
-
if (T && E(!1), (e.ctrlKey || e.metaKey || e.altKey) && p) {
|
|
373
|
-
p(e);
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
if (L.onKeyDown(e), e.key.length === 1) {
|
|
377
|
-
let t = k.current, n = e.key.toLowerCase(), r = performance.now();
|
|
378
|
-
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);
|
|
379
|
-
let i = l(x(b.current)), a = i && !t.repeating && Q(i, t);
|
|
380
|
-
t.previousKeyMatched && (a || M((e) => ne(e, t)) != null) ? e.preventDefault() : t.previousKeyMatched = !1;
|
|
381
|
-
}
|
|
382
|
-
p && p(e);
|
|
383
|
-
}),
|
|
384
|
-
onFocus: L.onFocus,
|
|
385
|
-
tabIndex: -1,
|
|
386
|
-
...y,
|
|
387
|
-
children: /* @__PURE__ */ _(Z.Provider, {
|
|
388
|
-
value: z,
|
|
389
|
-
children: /* @__PURE__ */ _(C.Provider, {
|
|
390
|
-
value: A,
|
|
391
|
-
children: o
|
|
392
|
-
})
|
|
393
|
-
})
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
397
|
-
autoFocus: b.default.bool,
|
|
398
|
-
autoFocusItem: b.default.bool,
|
|
399
|
-
children: b.default.node,
|
|
400
|
-
className: b.default.string,
|
|
401
|
-
disabledItemsFocusable: b.default.bool,
|
|
402
|
-
disableListWrap: b.default.bool,
|
|
403
|
-
onKeyDown: b.default.func,
|
|
404
|
-
variant: b.default.oneOf(["menu", "selectedMenu"])
|
|
405
|
-
});
|
|
406
|
-
//#endregion
|
|
407
|
-
export { q as a, C as c, x as d, y as f, Y as i, w as l, ee as n, k as o, v as p, X as r, O as s, $ as t, S as u };
|