@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,747 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { s as t } from "./defaultTheme-BaGcIzCh.js";
|
|
3
|
-
import { t as n } from "./prop-types-BzYPyWN7.js";
|
|
4
|
-
import { r, t as i } from "./DefaultPropsProvider-ebWx4_5E.js";
|
|
5
|
-
import { t as a } from "./clsx-DGZSe4Nt.js";
|
|
6
|
-
import { t as o } from "./generateUtilityClasses-DvX505Gy.js";
|
|
7
|
-
import { t as s } from "./styled-Bog8QCl3.js";
|
|
8
|
-
import { n as c, t as l } from "./isFocusVisible-Y7157FQS.js";
|
|
9
|
-
import { t as u } from "./useForkRef-CKneCEtr.js";
|
|
10
|
-
import { t as d } from "./useEventCallback-CVqMfiG_.js";
|
|
11
|
-
import { n as f, t as p } from "./objectWithoutPropertiesLoose-Cpds-4w8.js";
|
|
12
|
-
import { n as m, t as h } from "./buttonBaseClasses-BvBqFLb_.js";
|
|
13
|
-
import * as g from "react";
|
|
14
|
-
import _, { Children as v, cloneElement as y, isValidElement as b } from "react";
|
|
15
|
-
import { jsx as x, jsxs as ee } from "react/jsx-runtime";
|
|
16
|
-
//#region ../../node_modules/@mui/utils/refType/refType.mjs
|
|
17
|
-
var S = /* @__PURE__ */ e(n(), 1), C = S.default.oneOfType([S.default.func, S.default.object]);
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region ../../node_modules/@mui/material/utils/useFocusableWhenDisabled.mjs
|
|
20
|
-
function w(e) {
|
|
21
|
-
let { focusableWhenDisabled: t, disabled: n, composite: r = !1, tabIndex: i = 0, isNativeButton: a } = e, o = r && t !== !1, s = r && t === !1;
|
|
22
|
-
return g.useMemo(() => {
|
|
23
|
-
let e = { onKeyDown(e) {
|
|
24
|
-
n && t && e.key !== "Tab" && e.preventDefault();
|
|
25
|
-
} };
|
|
26
|
-
return r || (e.tabIndex = i, !a && n && (e.tabIndex = t ? i : -1)), (a && (t || o) || !a && n) && (e["aria-disabled"] = n), a && (!t || s) && (e.disabled = n), e;
|
|
27
|
-
}, [
|
|
28
|
-
r,
|
|
29
|
-
n,
|
|
30
|
-
t,
|
|
31
|
-
o,
|
|
32
|
-
s,
|
|
33
|
-
a,
|
|
34
|
-
i
|
|
35
|
-
]);
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region ../../node_modules/@mui/material/ButtonBase/useButtonBase.mjs
|
|
39
|
-
var T = {};
|
|
40
|
-
function te(e) {
|
|
41
|
-
let { nativeButton: t, nativeButtonProp: n, internalNativeButton: r = t, allowInferredHostMismatch: i = !1, disabled: a, type: o, hasFormAction: s = !1, tabIndex: c = 0, focusableWhenDisabled: l, stopEventPropagation: u = !1, onBeforeKeyDown: d, onBeforeKeyUp: f } = e, p = g.useRef(null), m = l === !0, h = w({
|
|
42
|
-
focusableWhenDisabled: m,
|
|
43
|
-
disabled: a,
|
|
44
|
-
isNativeButton: t,
|
|
45
|
-
tabIndex: c
|
|
46
|
-
});
|
|
47
|
-
process.env.NODE_ENV !== "production" && g.useEffect(() => {
|
|
48
|
-
let e = p.current;
|
|
49
|
-
if (e == null) return;
|
|
50
|
-
let t = e.tagName === "BUTTON";
|
|
51
|
-
if (n !== void 0) {
|
|
52
|
-
n && !t && console.error("MUI: A component that acts as a button expected a native <button> because the `nativeButton` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Render a real <button> or set `nativeButton` to `false`."), !n && t && console.error("MUI: A component that acts as a button expected a non-<button> because the `nativeButton` prop is false. Rendering a <button> keeps native behavior while additionally applies non-native attributes and handlers, which can add unintended extra attributes (such as `role` or `aria-disabled`). Render a non-<button> such as <div>, or set `nativeButton` to `true`.");
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
i || (r && !t && console.error("MUI: A component rendering a native <button> resolved to a non-<button> element, but `nativeButton={false}` was not specified and the resolved root is a non-<button>. When rendering a custom component, set `nativeButton={false}` explicitly or render a <button> element."), !r && t && console.error("MUI: A component that acts as a non-native button resolved to a native <button> element, but `nativeButton={true}` was not specified. When rendering a custom component, set `nativeButton={true}` explicitly or render a non-<button> element."));
|
|
56
|
-
}, [
|
|
57
|
-
i,
|
|
58
|
-
r,
|
|
59
|
-
n
|
|
60
|
-
]);
|
|
61
|
-
let _ = g.useCallback(() => {
|
|
62
|
-
let e = p.current;
|
|
63
|
-
return e == null ? t : e.tagName === "BUTTON" ? !0 : !!(e.tagName === "A" && e.href);
|
|
64
|
-
}, [t]), v = g.useMemo(() => {
|
|
65
|
-
let e = m ? {} : { tabIndex: a ? -1 : c };
|
|
66
|
-
return t ? (e.type = o === void 0 && !s ? "button" : o, m || (e.disabled = a)) : (e.role = "button", !m && a && (e["aria-disabled"] = a)), m ? {
|
|
67
|
-
...e,
|
|
68
|
-
...h
|
|
69
|
-
} : e;
|
|
70
|
-
}, [
|
|
71
|
-
a,
|
|
72
|
-
m,
|
|
73
|
-
h,
|
|
74
|
-
s,
|
|
75
|
-
t,
|
|
76
|
-
c,
|
|
77
|
-
o
|
|
78
|
-
]);
|
|
79
|
-
return {
|
|
80
|
-
getButtonProps: g.useCallback((e = T) => {
|
|
81
|
-
let { onClick: t, onKeyDown: n, onKeyUp: r, ...i } = e, o = (e) => {
|
|
82
|
-
if (u && e.stopPropagation(), a) {
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
t?.(e);
|
|
87
|
-
}, s = (e) => {
|
|
88
|
-
if (m && h.onKeyDown(e), !a && (d?.(e), n?.(e), !(e.target !== e.currentTarget || _()))) {
|
|
89
|
-
if (e.key === " ") {
|
|
90
|
-
e.preventDefault();
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
e.key === "Enter" && (e.preventDefault(), e.currentTarget.click());
|
|
94
|
-
}
|
|
95
|
-
}, c = (e) => {
|
|
96
|
-
a || (f?.(e), r?.(e), e.target === e.currentTarget && !_() && e.key === " " && !e.defaultPrevented && e.currentTarget.click());
|
|
97
|
-
};
|
|
98
|
-
return {
|
|
99
|
-
...v,
|
|
100
|
-
...i,
|
|
101
|
-
onClick: o,
|
|
102
|
-
onKeyDown: s,
|
|
103
|
-
onKeyUp: c
|
|
104
|
-
};
|
|
105
|
-
}, [
|
|
106
|
-
v,
|
|
107
|
-
a,
|
|
108
|
-
m,
|
|
109
|
-
h,
|
|
110
|
-
_,
|
|
111
|
-
d,
|
|
112
|
-
f,
|
|
113
|
-
u
|
|
114
|
-
]),
|
|
115
|
-
rootRef: p
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region ../../node_modules/@mui/utils/useLazyRef/useLazyRef.mjs
|
|
120
|
-
var E = {};
|
|
121
|
-
function D(e, t) {
|
|
122
|
-
let n = g.useRef(E);
|
|
123
|
-
return n.current === E && (n.current = e(t)), n;
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region ../../node_modules/@mui/material/useLazyRipple/useLazyRipple.mjs
|
|
127
|
-
var ne = class e {
|
|
128
|
-
static create() {
|
|
129
|
-
return new e();
|
|
130
|
-
}
|
|
131
|
-
static use() {
|
|
132
|
-
let t = D(e.create).current, [n, r] = g.useState(!1);
|
|
133
|
-
return t.shouldMount = n, t.setShouldMount = r, g.useEffect(t.mountEffect, [n]), t;
|
|
134
|
-
}
|
|
135
|
-
constructor() {
|
|
136
|
-
this.ref = { current: null }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
137
|
-
}
|
|
138
|
-
mount() {
|
|
139
|
-
return this.mounted || (this.mounted = O(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
140
|
-
}
|
|
141
|
-
mountEffect = () => {
|
|
142
|
-
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
143
|
-
};
|
|
144
|
-
start(...e) {
|
|
145
|
-
this.mount().then(() => this.ref.current?.start(...e));
|
|
146
|
-
}
|
|
147
|
-
stop(...e) {
|
|
148
|
-
this.mount().then(() => this.ref.current?.stop(...e));
|
|
149
|
-
}
|
|
150
|
-
pulsate(...e) {
|
|
151
|
-
this.mount().then(() => this.ref.current?.pulsate(...e));
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
function re() {
|
|
155
|
-
return ne.use();
|
|
156
|
-
}
|
|
157
|
-
function O() {
|
|
158
|
-
let e, t, n = new Promise((n, r) => {
|
|
159
|
-
e = n, t = r;
|
|
160
|
-
});
|
|
161
|
-
return n.resolve = e, n.reject = t, n;
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
165
|
-
function k(e, t) {
|
|
166
|
-
return k = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
167
|
-
return e.__proto__ = t, e;
|
|
168
|
-
}, k(e, t);
|
|
169
|
-
}
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
172
|
-
function A(e, t) {
|
|
173
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, k(e, t);
|
|
174
|
-
}
|
|
175
|
-
//#endregion
|
|
176
|
-
//#region ../../node_modules/react-transition-group/esm/TransitionGroupContext.js
|
|
177
|
-
var j = _.createContext(null);
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
180
|
-
function M(e) {
|
|
181
|
-
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
182
|
-
return e;
|
|
183
|
-
}
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region ../../node_modules/react-transition-group/esm/utils/ChildMapping.js
|
|
186
|
-
function N(e, t) {
|
|
187
|
-
var n = function(e) {
|
|
188
|
-
return t && b(e) ? t(e) : e;
|
|
189
|
-
}, r = Object.create(null);
|
|
190
|
-
return e && v.map(e, function(e) {
|
|
191
|
-
return e;
|
|
192
|
-
}).forEach(function(e) {
|
|
193
|
-
r[e.key] = n(e);
|
|
194
|
-
}), r;
|
|
195
|
-
}
|
|
196
|
-
function P(e, t) {
|
|
197
|
-
e ||= {}, t ||= {};
|
|
198
|
-
function n(n) {
|
|
199
|
-
return n in t ? t[n] : e[n];
|
|
200
|
-
}
|
|
201
|
-
var r = Object.create(null), i = [];
|
|
202
|
-
for (var a in e) a in t ? i.length && (r[a] = i, i = []) : i.push(a);
|
|
203
|
-
var o, s = {};
|
|
204
|
-
for (var c in t) {
|
|
205
|
-
if (r[c]) for (o = 0; o < r[c].length; o++) {
|
|
206
|
-
var l = r[c][o];
|
|
207
|
-
s[r[c][o]] = n(l);
|
|
208
|
-
}
|
|
209
|
-
s[c] = n(c);
|
|
210
|
-
}
|
|
211
|
-
for (o = 0; o < i.length; o++) s[i[o]] = n(i[o]);
|
|
212
|
-
return s;
|
|
213
|
-
}
|
|
214
|
-
function F(e, t, n) {
|
|
215
|
-
return n[t] == null ? e.props[t] : n[t];
|
|
216
|
-
}
|
|
217
|
-
function I(e, t) {
|
|
218
|
-
return N(e.children, function(n) {
|
|
219
|
-
return y(n, {
|
|
220
|
-
onExited: t.bind(null, n),
|
|
221
|
-
in: !0,
|
|
222
|
-
appear: F(n, "appear", e),
|
|
223
|
-
enter: F(n, "enter", e),
|
|
224
|
-
exit: F(n, "exit", e)
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
function L(e, t, n) {
|
|
229
|
-
var r = N(e.children), i = P(t, r);
|
|
230
|
-
return Object.keys(i).forEach(function(a) {
|
|
231
|
-
var o = i[a];
|
|
232
|
-
if (b(o)) {
|
|
233
|
-
var s = a in t, c = a in r, l = t[a], u = b(l) && !l.props.in;
|
|
234
|
-
c && (!s || u) ? i[a] = y(o, {
|
|
235
|
-
onExited: n.bind(null, o),
|
|
236
|
-
in: !0,
|
|
237
|
-
exit: F(o, "exit", e),
|
|
238
|
-
enter: F(o, "enter", e)
|
|
239
|
-
}) : !c && s && !u ? i[a] = y(o, { in: !1 }) : c && s && b(l) && (i[a] = y(o, {
|
|
240
|
-
onExited: n.bind(null, o),
|
|
241
|
-
in: l.props.in,
|
|
242
|
-
exit: F(o, "exit", e),
|
|
243
|
-
enter: F(o, "enter", e)
|
|
244
|
-
}));
|
|
245
|
-
}
|
|
246
|
-
}), i;
|
|
247
|
-
}
|
|
248
|
-
//#endregion
|
|
249
|
-
//#region ../../node_modules/react-transition-group/esm/TransitionGroup.js
|
|
250
|
-
var R = Object.values || function(e) {
|
|
251
|
-
return Object.keys(e).map(function(t) {
|
|
252
|
-
return e[t];
|
|
253
|
-
});
|
|
254
|
-
}, ie = {
|
|
255
|
-
component: "div",
|
|
256
|
-
childFactory: function(e) {
|
|
257
|
-
return e;
|
|
258
|
-
}
|
|
259
|
-
}, z = /* @__PURE__ */ function(e) {
|
|
260
|
-
A(t, e);
|
|
261
|
-
function t(t, n) {
|
|
262
|
-
var r = e.call(this, t, n) || this;
|
|
263
|
-
return r.state = {
|
|
264
|
-
contextValue: { isMounting: !0 },
|
|
265
|
-
handleExited: r.handleExited.bind(M(r)),
|
|
266
|
-
firstRender: !0
|
|
267
|
-
}, r;
|
|
268
|
-
}
|
|
269
|
-
var n = t.prototype;
|
|
270
|
-
return n.componentDidMount = function() {
|
|
271
|
-
this.mounted = !0, this.setState({ contextValue: { isMounting: !1 } });
|
|
272
|
-
}, n.componentWillUnmount = function() {
|
|
273
|
-
this.mounted = !1;
|
|
274
|
-
}, t.getDerivedStateFromProps = function(e, t) {
|
|
275
|
-
var n = t.children, r = t.handleExited;
|
|
276
|
-
return {
|
|
277
|
-
children: t.firstRender ? I(e, r) : L(e, n, r),
|
|
278
|
-
firstRender: !1
|
|
279
|
-
};
|
|
280
|
-
}, n.handleExited = function(e, t) {
|
|
281
|
-
var n = N(this.props.children);
|
|
282
|
-
e.key in n || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState(function(t) {
|
|
283
|
-
var n = f({}, t.children);
|
|
284
|
-
return delete n[e.key], { children: n };
|
|
285
|
-
}));
|
|
286
|
-
}, n.render = function() {
|
|
287
|
-
var e = this.props, t = e.component, n = e.childFactory, r = p(e, ["component", "childFactory"]), i = this.state.contextValue, a = R(this.state.children).map(n);
|
|
288
|
-
return delete r.appear, delete r.enter, delete r.exit, t === null ? /* @__PURE__ */ _.createElement(j.Provider, { value: i }, a) : /* @__PURE__ */ _.createElement(j.Provider, { value: i }, /* @__PURE__ */ _.createElement(t, r, a));
|
|
289
|
-
}, t;
|
|
290
|
-
}(_.Component);
|
|
291
|
-
z.propTypes = process.env.NODE_ENV === "production" ? {} : {
|
|
292
|
-
component: S.default.any,
|
|
293
|
-
children: S.default.node,
|
|
294
|
-
appear: S.default.bool,
|
|
295
|
-
enter: S.default.bool,
|
|
296
|
-
exit: S.default.bool,
|
|
297
|
-
childFactory: S.default.func
|
|
298
|
-
}, z.defaultProps = ie;
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region ../../node_modules/@mui/utils/useOnMount/useOnMount.mjs
|
|
301
|
-
var B = [];
|
|
302
|
-
function V(e) {
|
|
303
|
-
g.useEffect(e, B);
|
|
304
|
-
}
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region ../../node_modules/@mui/utils/useTimeout/useTimeout.mjs
|
|
307
|
-
var H = class e {
|
|
308
|
-
static create() {
|
|
309
|
-
return new e();
|
|
310
|
-
}
|
|
311
|
-
currentId = null;
|
|
312
|
-
start(e, t) {
|
|
313
|
-
this.clear(), this.currentId = setTimeout(() => {
|
|
314
|
-
this.currentId = null, t();
|
|
315
|
-
}, e);
|
|
316
|
-
}
|
|
317
|
-
clear = () => {
|
|
318
|
-
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
319
|
-
};
|
|
320
|
-
disposeEffect = () => this.clear;
|
|
321
|
-
};
|
|
322
|
-
function U() {
|
|
323
|
-
let e = D(H.create).current;
|
|
324
|
-
return V(e.disposeEffect), e;
|
|
325
|
-
}
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region ../../node_modules/@mui/material/ButtonBase/Ripple.mjs
|
|
328
|
-
function W(e) {
|
|
329
|
-
let { className: t, classes: n, pulsate: r = !1, rippleX: i, rippleY: o, rippleSize: s, in: c, onExited: l, timeout: u } = e, [d, f] = g.useState(!1), p = a(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), m = {
|
|
330
|
-
width: s,
|
|
331
|
-
height: s,
|
|
332
|
-
top: -(s / 2) + o,
|
|
333
|
-
left: -(s / 2) + i
|
|
334
|
-
}, h = a(n.child, d && n.childLeaving, r && n.childPulsate);
|
|
335
|
-
return !c && !d && f(!0), g.useEffect(() => {
|
|
336
|
-
if (!c && l != null) {
|
|
337
|
-
let e = setTimeout(l, u);
|
|
338
|
-
return () => {
|
|
339
|
-
clearTimeout(e);
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
}, [
|
|
343
|
-
l,
|
|
344
|
-
c,
|
|
345
|
-
u
|
|
346
|
-
]), /* @__PURE__ */ x("span", {
|
|
347
|
-
className: p,
|
|
348
|
-
style: m,
|
|
349
|
-
children: /* @__PURE__ */ x("span", { className: h })
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
353
|
-
classes: S.default.object.isRequired,
|
|
354
|
-
className: S.default.string,
|
|
355
|
-
in: S.default.bool,
|
|
356
|
-
onExited: S.default.func,
|
|
357
|
-
pulsate: S.default.bool,
|
|
358
|
-
rippleSize: S.default.number,
|
|
359
|
-
rippleX: S.default.number,
|
|
360
|
-
rippleY: S.default.number,
|
|
361
|
-
timeout: S.default.number.isRequired
|
|
362
|
-
});
|
|
363
|
-
//#endregion
|
|
364
|
-
//#region ../../node_modules/@mui/material/ButtonBase/touchRippleClasses.mjs
|
|
365
|
-
var G = o("MuiTouchRipple", [
|
|
366
|
-
"root",
|
|
367
|
-
"ripple",
|
|
368
|
-
"rippleVisible",
|
|
369
|
-
"ripplePulsate",
|
|
370
|
-
"child",
|
|
371
|
-
"childLeaving",
|
|
372
|
-
"childPulsate"
|
|
373
|
-
]), K = 550, q = t`
|
|
374
|
-
0% {
|
|
375
|
-
transform: scale(0);
|
|
376
|
-
opacity: 0.1;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
100% {
|
|
380
|
-
transform: scale(1);
|
|
381
|
-
opacity: 0.3;
|
|
382
|
-
}
|
|
383
|
-
`, ae = t`
|
|
384
|
-
0% {
|
|
385
|
-
opacity: 1;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
100% {
|
|
389
|
-
opacity: 0;
|
|
390
|
-
}
|
|
391
|
-
`, J = t`
|
|
392
|
-
0% {
|
|
393
|
-
transform: scale(1);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
50% {
|
|
397
|
-
transform: scale(0.92);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
100% {
|
|
401
|
-
transform: scale(1);
|
|
402
|
-
}
|
|
403
|
-
`, Y = s("span", {
|
|
404
|
-
name: "MuiTouchRipple",
|
|
405
|
-
slot: "Root"
|
|
406
|
-
})({
|
|
407
|
-
overflow: "hidden",
|
|
408
|
-
pointerEvents: "none",
|
|
409
|
-
position: "absolute",
|
|
410
|
-
zIndex: 0,
|
|
411
|
-
top: 0,
|
|
412
|
-
right: 0,
|
|
413
|
-
bottom: 0,
|
|
414
|
-
left: 0,
|
|
415
|
-
borderRadius: "inherit"
|
|
416
|
-
}), oe = s(W, {
|
|
417
|
-
name: "MuiTouchRipple",
|
|
418
|
-
slot: "Ripple"
|
|
419
|
-
})`
|
|
420
|
-
opacity: 0;
|
|
421
|
-
position: absolute;
|
|
422
|
-
|
|
423
|
-
&.${G.rippleVisible} {
|
|
424
|
-
opacity: 0.3;
|
|
425
|
-
transform: scale(1);
|
|
426
|
-
animation-name: ${q};
|
|
427
|
-
animation-duration: ${K}ms;
|
|
428
|
-
animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut};
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
&.${G.ripplePulsate} {
|
|
432
|
-
animation-duration: ${({ theme: e }) => e.transitions.duration.shorter}ms;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
& .${G.child} {
|
|
436
|
-
opacity: 1;
|
|
437
|
-
display: block;
|
|
438
|
-
width: 100%;
|
|
439
|
-
height: 100%;
|
|
440
|
-
border-radius: 50%;
|
|
441
|
-
background-color: currentColor;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
& .${G.childLeaving} {
|
|
445
|
-
opacity: 0;
|
|
446
|
-
animation-name: ${ae};
|
|
447
|
-
animation-duration: ${K}ms;
|
|
448
|
-
animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut};
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
& .${G.childPulsate} {
|
|
452
|
-
position: absolute;
|
|
453
|
-
/* @noflip */
|
|
454
|
-
left: 0px;
|
|
455
|
-
top: 0;
|
|
456
|
-
animation-name: ${J};
|
|
457
|
-
animation-duration: 2500ms;
|
|
458
|
-
animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut};
|
|
459
|
-
animation-iteration-count: infinite;
|
|
460
|
-
animation-delay: 200ms;
|
|
461
|
-
}
|
|
462
|
-
`, se = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
463
|
-
let { center: n = !1, classes: r = {}, className: o, ...s } = i({
|
|
464
|
-
props: e,
|
|
465
|
-
name: "MuiTouchRipple"
|
|
466
|
-
}), [c, l] = g.useState([]), u = g.useRef(0), d = g.useRef(null);
|
|
467
|
-
g.useEffect(() => {
|
|
468
|
-
d.current &&= (d.current(), null);
|
|
469
|
-
}, [c]);
|
|
470
|
-
let f = g.useRef(!1), p = U(), m = g.useRef(null), h = g.useRef(null), _ = g.useCallback((e) => {
|
|
471
|
-
let { pulsate: t, rippleX: n, rippleY: i, rippleSize: o, cb: s } = e;
|
|
472
|
-
l((e) => [...e, /* @__PURE__ */ x(oe, {
|
|
473
|
-
classes: {
|
|
474
|
-
ripple: a(r.ripple, G.ripple),
|
|
475
|
-
rippleVisible: a(r.rippleVisible, G.rippleVisible),
|
|
476
|
-
ripplePulsate: a(r.ripplePulsate, G.ripplePulsate),
|
|
477
|
-
child: a(r.child, G.child),
|
|
478
|
-
childLeaving: a(r.childLeaving, G.childLeaving),
|
|
479
|
-
childPulsate: a(r.childPulsate, G.childPulsate)
|
|
480
|
-
},
|
|
481
|
-
timeout: K,
|
|
482
|
-
pulsate: t,
|
|
483
|
-
rippleX: n,
|
|
484
|
-
rippleY: i,
|
|
485
|
-
rippleSize: o
|
|
486
|
-
}, u.current)]), u.current += 1, d.current = s;
|
|
487
|
-
}, [r]), v = g.useCallback((e = {}, t = {}, r = () => {}) => {
|
|
488
|
-
let { pulsate: i = !1, center: a = n || t.pulsate, fakeElement: o = !1 } = t;
|
|
489
|
-
if (e?.type === "mousedown" && f.current) {
|
|
490
|
-
f.current = !1;
|
|
491
|
-
return;
|
|
492
|
-
}
|
|
493
|
-
e?.type === "touchstart" && (f.current = !0);
|
|
494
|
-
let s = o ? null : h.current, c = s ? s.getBoundingClientRect() : {
|
|
495
|
-
width: 0,
|
|
496
|
-
height: 0,
|
|
497
|
-
left: 0,
|
|
498
|
-
top: 0
|
|
499
|
-
}, l, u, d;
|
|
500
|
-
if (a || e === void 0 || e.clientX === 0 && e.clientY === 0 || !e.clientX && !e.touches) l = Math.round(c.width / 2), u = Math.round(c.height / 2);
|
|
501
|
-
else {
|
|
502
|
-
let { clientX: t, clientY: n } = e.touches && e.touches.length > 0 ? e.touches[0] : e;
|
|
503
|
-
l = Math.round(t - c.left), u = Math.round(n - c.top);
|
|
504
|
-
}
|
|
505
|
-
if (a) d = Math.sqrt((2 * c.width ** 2 + c.height ** 2) / 3), d % 2 == 0 && (d += 1);
|
|
506
|
-
else {
|
|
507
|
-
let e = Math.max(Math.abs((s ? s.clientWidth : 0) - l), l) * 2 + 2, t = Math.max(Math.abs((s ? s.clientHeight : 0) - u), u) * 2 + 2;
|
|
508
|
-
d = Math.sqrt(e ** 2 + t ** 2);
|
|
509
|
-
}
|
|
510
|
-
e?.touches ? m.current === null && (m.current = () => {
|
|
511
|
-
_({
|
|
512
|
-
pulsate: i,
|
|
513
|
-
rippleX: l,
|
|
514
|
-
rippleY: u,
|
|
515
|
-
rippleSize: d,
|
|
516
|
-
cb: r
|
|
517
|
-
});
|
|
518
|
-
}, p.start(80, () => {
|
|
519
|
-
m.current &&= (m.current(), null);
|
|
520
|
-
})) : _({
|
|
521
|
-
pulsate: i,
|
|
522
|
-
rippleX: l,
|
|
523
|
-
rippleY: u,
|
|
524
|
-
rippleSize: d,
|
|
525
|
-
cb: r
|
|
526
|
-
});
|
|
527
|
-
}, [
|
|
528
|
-
n,
|
|
529
|
-
_,
|
|
530
|
-
p
|
|
531
|
-
]), y = g.useCallback(() => {
|
|
532
|
-
v({}, { pulsate: !0 });
|
|
533
|
-
}, [v]), b = g.useCallback((e, t) => {
|
|
534
|
-
if (p.clear(), e?.type === "touchend" && m.current) {
|
|
535
|
-
m.current(), m.current = null, p.start(0, () => {
|
|
536
|
-
b(e, t);
|
|
537
|
-
});
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
m.current = null, l((e) => e.length > 0 ? e.slice(1) : e), d.current = t;
|
|
541
|
-
}, [p]);
|
|
542
|
-
return g.useImperativeHandle(t, () => ({
|
|
543
|
-
pulsate: y,
|
|
544
|
-
start: v,
|
|
545
|
-
stop: b
|
|
546
|
-
}), [
|
|
547
|
-
y,
|
|
548
|
-
v,
|
|
549
|
-
b
|
|
550
|
-
]), /* @__PURE__ */ x(Y, {
|
|
551
|
-
className: a(G.root, r.root, o),
|
|
552
|
-
ref: h,
|
|
553
|
-
...s,
|
|
554
|
-
children: /* @__PURE__ */ x(z, {
|
|
555
|
-
component: null,
|
|
556
|
-
exit: !0,
|
|
557
|
-
children: c
|
|
558
|
-
})
|
|
559
|
-
});
|
|
560
|
-
});
|
|
561
|
-
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
562
|
-
center: S.default.bool,
|
|
563
|
-
classes: S.default.object,
|
|
564
|
-
className: S.default.string
|
|
565
|
-
});
|
|
566
|
-
//#endregion
|
|
567
|
-
//#region ../../node_modules/@mui/material/ButtonBase/ButtonBase.mjs
|
|
568
|
-
var ce = (e) => {
|
|
569
|
-
let { disabled: t, focusVisible: n, focusVisibleClassName: i, suppressFocusVisible: a, classes: o } = e, s = r({ root: [
|
|
570
|
-
"root",
|
|
571
|
-
t && "disabled",
|
|
572
|
-
n && !a && "focusVisible"
|
|
573
|
-
] }, m, o);
|
|
574
|
-
return n && !a && i && (s.root += ` ${i}`), s;
|
|
575
|
-
}, le = s("button", {
|
|
576
|
-
name: "MuiButtonBase",
|
|
577
|
-
slot: "Root"
|
|
578
|
-
})({
|
|
579
|
-
display: "inline-flex",
|
|
580
|
-
alignItems: "center",
|
|
581
|
-
justifyContent: "center",
|
|
582
|
-
position: "relative",
|
|
583
|
-
boxSizing: "border-box",
|
|
584
|
-
WebkitTapHighlightColor: "transparent",
|
|
585
|
-
backgroundColor: "transparent",
|
|
586
|
-
outline: 0,
|
|
587
|
-
border: 0,
|
|
588
|
-
margin: 0,
|
|
589
|
-
borderRadius: 0,
|
|
590
|
-
padding: 0,
|
|
591
|
-
cursor: "pointer",
|
|
592
|
-
userSelect: "none",
|
|
593
|
-
verticalAlign: "middle",
|
|
594
|
-
MozAppearance: "none",
|
|
595
|
-
WebkitAppearance: "none",
|
|
596
|
-
textDecoration: "none",
|
|
597
|
-
color: "inherit",
|
|
598
|
-
"&::-moz-focus-inner": { borderStyle: "none" },
|
|
599
|
-
[`&.${h.disabled}`]: {
|
|
600
|
-
pointerEvents: "none",
|
|
601
|
-
cursor: "default"
|
|
602
|
-
},
|
|
603
|
-
"@media print": { colorAdjust: "exact" }
|
|
604
|
-
}), X = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
605
|
-
let n = i({
|
|
606
|
-
props: e,
|
|
607
|
-
name: "MuiButtonBase"
|
|
608
|
-
}), { action: r, centerRipple: o = !1, children: s, className: c, component: f = "button", disabled: p = !1, disableRipple: m = !1, disableTouchRipple: h = !1, focusRipple: _ = !1, focusVisibleClassName: v, focusableWhenDisabled: y, suppressFocusVisible: b = !1, internalNativeButton: S, LinkComponent: C = "a", nativeButton: w, onBlur: T, onClick: E, onContextMenu: D, onDragLeave: ne, onFocus: O, onFocusVisible: k, onKeyDown: A, onKeyUp: j, onMouseDown: M, onMouseLeave: N, onMouseUp: P, onTouchEnd: F, onTouchMove: I, onTouchStart: L, tabIndex: R = 0, TouchRippleProps: ie, touchRippleRef: z, type: B, ...V } = n, H = !!(V.href || V.to), U = !!V.formAction, W = f;
|
|
609
|
-
W === "button" && H && (W = C);
|
|
610
|
-
let G = typeof W == "string" ? W === "button" : S ?? !1, K = w ?? G, q = re(), ae = u(q.ref, z), [J, Y] = g.useState(!1);
|
|
611
|
-
(p || b) && J && Y(!1);
|
|
612
|
-
let oe = d((e) => {
|
|
613
|
-
_ && !e.repeat && J && e.key === " " && q.stop(e, () => {
|
|
614
|
-
q.start(e);
|
|
615
|
-
});
|
|
616
|
-
}), X = d((e) => {
|
|
617
|
-
_ && e.key === " " && J && !e.defaultPrevented && q.stop(e, () => {
|
|
618
|
-
q.pulsate(e);
|
|
619
|
-
});
|
|
620
|
-
}), { getButtonProps: ue, rootRef: Q } = te({
|
|
621
|
-
nativeButton: K,
|
|
622
|
-
nativeButtonProp: w,
|
|
623
|
-
internalNativeButton: G,
|
|
624
|
-
allowInferredHostMismatch: H || typeof W == "string",
|
|
625
|
-
disabled: p,
|
|
626
|
-
type: B,
|
|
627
|
-
hasFormAction: U,
|
|
628
|
-
tabIndex: R,
|
|
629
|
-
onBeforeKeyDown: oe,
|
|
630
|
-
onBeforeKeyUp: X
|
|
631
|
-
}), { onClick: de, onKeyDown: fe, onKeyUp: pe, ...me } = ue({
|
|
632
|
-
onClick: E,
|
|
633
|
-
onKeyDown: A,
|
|
634
|
-
onKeyUp: j
|
|
635
|
-
});
|
|
636
|
-
g.useImperativeHandle(r, () => ({ focusVisible: () => {
|
|
637
|
-
Y(!0), Q.current.focus();
|
|
638
|
-
} }), [Q]);
|
|
639
|
-
let he = q.shouldMount && !m && !p;
|
|
640
|
-
g.useEffect(() => {
|
|
641
|
-
J && _ && !m && q.pulsate();
|
|
642
|
-
}, [
|
|
643
|
-
m,
|
|
644
|
-
_,
|
|
645
|
-
J,
|
|
646
|
-
q
|
|
647
|
-
]);
|
|
648
|
-
let ge = Z(q, "start", M, h), _e = Z(q, "stop", D, h), ve = Z(q, "stop", ne, h), ye = Z(q, "stop", P, h), be = Z(q, "stop", (e) => {
|
|
649
|
-
J && e.preventDefault(), N && N(e);
|
|
650
|
-
}, h), xe = Z(q, "start", L, h), Se = Z(q, "stop", F, h), Ce = Z(q, "stop", I, h), we = Z(q, "stop", (e) => {
|
|
651
|
-
l(e.target) || Y(!1), T && T(e);
|
|
652
|
-
}, !1), Te = d((e) => {
|
|
653
|
-
Q.current ||= e.currentTarget, !b && l(e.target) && (Y(!0), k && k(e)), O && O(e);
|
|
654
|
-
}), $ = {};
|
|
655
|
-
H && ($.tabIndex = p ? -1 : R, p && ($["aria-disabled"] = p), $.type = B);
|
|
656
|
-
let Ee = u(t, Q), De = {
|
|
657
|
-
...n,
|
|
658
|
-
centerRipple: o,
|
|
659
|
-
component: f,
|
|
660
|
-
disabled: p,
|
|
661
|
-
disableRipple: m,
|
|
662
|
-
disableTouchRipple: h,
|
|
663
|
-
focusRipple: _,
|
|
664
|
-
suppressFocusVisible: b,
|
|
665
|
-
tabIndex: R,
|
|
666
|
-
focusVisible: J
|
|
667
|
-
}, Oe = ce(De);
|
|
668
|
-
return /* @__PURE__ */ ee(le, {
|
|
669
|
-
as: W,
|
|
670
|
-
className: a(Oe.root, c),
|
|
671
|
-
ownerState: De,
|
|
672
|
-
onBlur: we,
|
|
673
|
-
onClick: de,
|
|
674
|
-
onContextMenu: _e,
|
|
675
|
-
onFocus: Te,
|
|
676
|
-
onKeyDown: fe,
|
|
677
|
-
onKeyUp: pe,
|
|
678
|
-
onMouseDown: ge,
|
|
679
|
-
onMouseLeave: be,
|
|
680
|
-
onMouseUp: ye,
|
|
681
|
-
onDragLeave: ve,
|
|
682
|
-
onTouchEnd: Se,
|
|
683
|
-
onTouchMove: Ce,
|
|
684
|
-
onTouchStart: xe,
|
|
685
|
-
ref: Ee,
|
|
686
|
-
...H ? $ : me,
|
|
687
|
-
...V,
|
|
688
|
-
children: [s, he ? /* @__PURE__ */ x(se, {
|
|
689
|
-
ref: ae,
|
|
690
|
-
center: o,
|
|
691
|
-
...ie
|
|
692
|
-
}) : null]
|
|
693
|
-
});
|
|
694
|
-
});
|
|
695
|
-
function Z(e, t, n, r = !1) {
|
|
696
|
-
return d((i) => (n && n(i), r || e[t](i), !0));
|
|
697
|
-
}
|
|
698
|
-
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
699
|
-
action: C,
|
|
700
|
-
centerRipple: S.default.bool,
|
|
701
|
-
children: S.default.node,
|
|
702
|
-
classes: S.default.object,
|
|
703
|
-
className: S.default.string,
|
|
704
|
-
component: c,
|
|
705
|
-
disabled: S.default.bool,
|
|
706
|
-
disableRipple: S.default.bool,
|
|
707
|
-
disableTouchRipple: S.default.bool,
|
|
708
|
-
focusRipple: S.default.bool,
|
|
709
|
-
focusVisibleClassName: S.default.string,
|
|
710
|
-
formAction: S.default.oneOfType([S.default.func, S.default.string]),
|
|
711
|
-
href: S.default.any,
|
|
712
|
-
LinkComponent: S.default.elementType,
|
|
713
|
-
nativeButton: S.default.bool,
|
|
714
|
-
onBlur: S.default.func,
|
|
715
|
-
onClick: S.default.func,
|
|
716
|
-
onContextMenu: S.default.func,
|
|
717
|
-
onDragLeave: S.default.func,
|
|
718
|
-
onFocus: S.default.func,
|
|
719
|
-
onFocusVisible: S.default.func,
|
|
720
|
-
onKeyDown: S.default.func,
|
|
721
|
-
onKeyUp: S.default.func,
|
|
722
|
-
onMouseDown: S.default.func,
|
|
723
|
-
onMouseLeave: S.default.func,
|
|
724
|
-
onMouseUp: S.default.func,
|
|
725
|
-
onTouchEnd: S.default.func,
|
|
726
|
-
onTouchMove: S.default.func,
|
|
727
|
-
onTouchStart: S.default.func,
|
|
728
|
-
sx: S.default.oneOfType([
|
|
729
|
-
S.default.arrayOf(S.default.oneOfType([
|
|
730
|
-
S.default.func,
|
|
731
|
-
S.default.object,
|
|
732
|
-
S.default.bool
|
|
733
|
-
])),
|
|
734
|
-
S.default.func,
|
|
735
|
-
S.default.object
|
|
736
|
-
]),
|
|
737
|
-
tabIndex: S.default.number,
|
|
738
|
-
TouchRippleProps: S.default.object,
|
|
739
|
-
touchRippleRef: S.default.oneOfType([S.default.func, S.default.shape({ current: S.default.shape({
|
|
740
|
-
pulsate: S.default.func.isRequired,
|
|
741
|
-
start: S.default.func.isRequired,
|
|
742
|
-
stop: S.default.func.isRequired
|
|
743
|
-
}) })]),
|
|
744
|
-
type: S.default.string
|
|
745
|
-
});
|
|
746
|
-
//#endregion
|
|
747
|
-
export { j as a, z as i, H as n, A as o, U as r, C as s, X as t };
|