@solostylist/ui-kit 1.0.68 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Box-6v9dDzdR.js → Box-reWd7MO-.js} +16 -16
- package/dist/{Close-Cq0bfDqS.js → Close-CVFQMMUW.js} +2 -2
- package/dist/{HelpOutlineOutlined-CrsJM_1C.js → HelpOutlineOutlined-Dw_XSjYK.js} +2 -2
- package/dist/{Menu-C3Ku2lqS.js → Menu-CGTDGEoX.js} +23 -23
- package/dist/{MenuItem-ODcKB-fe.js → MenuItem-Bdna3McP.js} +84 -86
- package/dist/{Select-CukDtghB.js → Select-D54ugORZ.js} +473 -466
- package/dist/{Stack-DvJ0EY9Z.js → Stack-ISlVeD89.js} +23 -24
- package/dist/{TransitionGroup-D2o-MIVr.js → TransitionGroup-DuMpOHcM.js} +1 -1
- package/dist/{Typography-BnBI5JmA.js → Typography-D38zoHJr.js} +42 -44
- package/dist/{buttonBaseClasses-jvvoR1a5.js → buttonBaseClasses-CF7RfAgE.js} +2 -2
- package/dist/{chipClasses-DCs-mJQc.js → chipClasses-WFcUH6gU.js} +2 -2
- package/dist/chunk-5P46WS5M-OG9gpzOE.js +4862 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/createSvgIcon-DN-sh_sr.js +520 -0
- package/dist/createTheme-DuP3DZSF.js +3005 -0
- package/dist/defaultTheme-BDQAWvCM.js +55 -0
- package/dist/{extendSxProp-B_wB9j9Z.js → extendSxProp-KtEeHd8h.js} +1 -1
- package/dist/{generateUtilityClasses-DMkCz287.js → generateUtilityClasses-BpNk3DNr.js} +2 -2
- package/dist/{iconButtonClasses-FfLS-X2M.js → iconButtonClasses-DMst1jJO.js} +2 -2
- package/dist/identifier-BKLqN993.js +4 -0
- package/dist/{index-Bs0mGmsj.js → index-x815ub0T.js} +46 -40
- package/dist/{jsx-runtime-C5mzlN2N.js → jsx-runtime-DywqP_6a.js} +13 -13
- package/dist/main.d.ts +2 -0
- package/dist/main.js +30 -28
- package/dist/{outlinedInputClasses-rfxFh721.js → outlinedInputClasses-E4FwVkZh.js} +2 -2
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-button-link/s-button-link.js +1 -1
- package/dist/s-checkbox/s-checkbox.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +2 -2
- package/dist/s-data-table/s-data-table.js +271 -270
- package/dist/s-date-picker/s-date-picker.js +28 -30
- package/dist/s-datetime-picker/s-datetime-picker.js +655 -657
- package/dist/s-dialog/s-dialog.js +2 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -3
- package/dist/s-dialog-message/s-dialog-message.js +3 -3
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-error/s-error.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +5 -5
- package/dist/s-file-icon/s-file-icon.js +2 -2
- package/dist/s-form/s-form.js +2 -2
- package/dist/s-glow-button/s-glow-button.js +21 -196
- package/dist/s-gradient-icon/s-gradient-icon.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.js +1 -1
- package/dist/s-icon-button/s-icon-button.js +1 -1
- package/dist/s-label/s-label.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.js +196 -199
- package/dist/s-moving-border/index.d.ts +2 -0
- package/dist/s-moving-border/index.js +4 -0
- package/dist/s-moving-border/package.json +5 -0
- package/dist/s-moving-border/s-moving-border.d.ts +11 -0
- package/dist/s-moving-border/s-moving-border.js +135 -0
- package/dist/s-multi-select/s-multi-select.js +4 -4
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- package/dist/s-pagination/s-pagination.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-skeleton/s-skeleton.js +1 -1
- package/dist/s-smart-text-field/s-smart-text-field.js +4252 -4226
- package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-stripe/stripe-input.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +5 -5
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-truncation/s-text-truncation.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-tip/s-tip.js +4 -4
- package/dist/{tabClasses-PH6lKUvl.js → tabClasses-LXCeUS4i.js} +2 -2
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/customizations/data-display.js +8 -8
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- package/dist/theme/customizations/navigation.js +4 -4
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-ZiwLh_jE.js → typographyClasses-QAKcrTAX.js} +2 -2
- package/dist/{useMobilePicker-BzxyifzK.js → useMobilePicker-DlmTFHhN.js} +2811 -2789
- package/dist/{useSlot-C4SHe-Bx.js → useSlot-CiHsL61G.js} +134 -134
- package/dist/{useTheme-Bn9C3FUK.js → useTheme-Dy5JmnOe.js} +1 -1
- package/dist/{useThemeProps-BUFb1TtB.js → useThemeProps-BGjjVPlJ.js} +2 -2
- package/dist/utils/dayjs.js +14 -14
- package/dist/{warning-D7W5-6D5.js → warning-DWsjz4u6.js} +5 -5
- package/package.json +3 -3
- package/dist/chunk-GIMSRCVW-DUi-T6vz.js +0 -10072
- package/dist/createSvgIcon-BTLVR-ad.js +0 -504
- package/dist/createTheme-BlQh0eyI.js +0 -2268
- package/dist/defaultTheme-CkLTWyeE.js +0 -42
- package/dist/identifier-CGgVMHib.js +0 -18
- package/dist/index-5OJKu9qh.js +0 -667
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { P as e } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as g } from "./useTheme-
|
|
8
|
-
import { e as j } from "./extendSxProp-
|
|
1
|
+
import { s as u, C as d, b as h, P as e } from "./createTheme-DuP3DZSF.js";
|
|
2
|
+
import { T } from "./identifier-BKLqN993.js";
|
|
3
|
+
import { s as y, g as B } from "./generateUtilityClasses-BpNk3DNr.js";
|
|
4
|
+
import * as N from "react";
|
|
5
|
+
import { c as C } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
import { j as b } from "./jsx-runtime-DywqP_6a.js";
|
|
7
|
+
import { u as g } from "./useTheme-Dy5JmnOe.js";
|
|
8
|
+
import { e as j } from "./extendSxProp-KtEeHd8h.js";
|
|
9
9
|
function E(m = {}) {
|
|
10
10
|
const {
|
|
11
11
|
themeId: t,
|
|
12
12
|
defaultTheme: n,
|
|
13
13
|
defaultClassName: a = "MuiBox-root",
|
|
14
14
|
generateClassName: r
|
|
15
|
-
} = m, c =
|
|
15
|
+
} = m, c = y("div", {
|
|
16
16
|
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
|
|
17
|
-
})(
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
})(u);
|
|
18
|
+
return /* @__PURE__ */ N.forwardRef(function(f, i) {
|
|
19
19
|
const s = g(n), {
|
|
20
20
|
className: l,
|
|
21
21
|
component: p = "div",
|
|
22
22
|
...x
|
|
23
23
|
} = j(f);
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ b.jsx(c, {
|
|
25
25
|
as: p,
|
|
26
26
|
ref: i,
|
|
27
|
-
className:
|
|
27
|
+
className: C(l, r ? r(a) : a),
|
|
28
28
|
theme: t && s[t] || s,
|
|
29
29
|
...x
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
const v =
|
|
34
|
-
themeId:
|
|
33
|
+
const v = B("MuiBox", ["root"]), O = h(), P = E({
|
|
34
|
+
themeId: T,
|
|
35
35
|
defaultTheme: O,
|
|
36
36
|
defaultClassName: v.root,
|
|
37
|
-
generateClassName:
|
|
37
|
+
generateClassName: d.generate
|
|
38
38
|
});
|
|
39
39
|
process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
40
40
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-
|
|
2
|
-
import { c as s } from "./createSvgIcon-
|
|
1
|
+
import { j as o } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { c as s } from "./createSvgIcon-DN-sh_sr.js";
|
|
3
3
|
const e = s(/* @__PURE__ */ o.jsx("path", {
|
|
4
4
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
5
5
|
}), "Close");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
2
|
-
import { c } from "./createSvgIcon-
|
|
1
|
+
import { j as t } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { c } from "./createSvgIcon-DN-sh_sr.js";
|
|
3
3
|
const o = c(/* @__PURE__ */ t.jsx("path", {
|
|
4
4
|
d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
|
|
5
5
|
}), "HelpOutlineOutlined");
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
2
|
import ve from "react";
|
|
3
|
-
import { g as le, a as He,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { u as Ft } from "./useTheme-Bn9C3FUK.js";
|
|
3
|
+
import { P as e, g as le, a as He, o as ze, l as rt } from "./createTheme-DuP3DZSF.js";
|
|
4
|
+
import { u as ce, b as te, a as W, d as ue, m as it, r as Rt } from "./createSvgIcon-DN-sh_sr.js";
|
|
5
|
+
import { j as L } from "./jsx-runtime-DywqP_6a.js";
|
|
6
|
+
import { g as pe } from "./generateUtilityClasses-BpNk3DNr.js";
|
|
7
|
+
import { c as we, f as Ot, u as oe, b as X, d as We, g as Nt, m as wt, r as St, e as Ct, a as Mt, h as kt, i as Dt } from "./useSlot-CiHsL61G.js";
|
|
8
|
+
import { d as It } from "./defaultTheme-BDQAWvCM.js";
|
|
9
|
+
import { T as jt } from "./identifier-BKLqN993.js";
|
|
10
|
+
import { u as Ft } from "./useTheme-Dy5JmnOe.js";
|
|
12
11
|
import { _ as Lt } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
13
|
-
import { _ as At, a as st } from "./TransitionGroup-
|
|
12
|
+
import { _ as At, a as st } from "./TransitionGroup-DuMpOHcM.js";
|
|
14
13
|
import * as $t from "react-dom";
|
|
15
14
|
import Te from "react-dom";
|
|
16
15
|
import { u as Le } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
@@ -34,8 +33,8 @@ const _t = /* @__PURE__ */ p.createContext();
|
|
|
34
33
|
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
35
34
|
const Ut = () => p.useContext(_t) ?? !1;
|
|
36
35
|
function _e() {
|
|
37
|
-
const t = Ft(
|
|
38
|
-
return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[
|
|
36
|
+
const t = Ft(It);
|
|
37
|
+
return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[jt] || t;
|
|
39
38
|
}
|
|
40
39
|
function qt(t, n = 166) {
|
|
41
40
|
let o;
|
|
@@ -65,7 +64,7 @@ var Kt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
65
64
|
enter: e.number,
|
|
66
65
|
exit: e.number,
|
|
67
66
|
appear: e.number
|
|
68
|
-
}).isRequired]) : null,
|
|
67
|
+
}).isRequired]) : null, Yn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
|
|
69
68
|
enter: e.string,
|
|
70
69
|
exit: e.string,
|
|
71
70
|
active: e.string
|
|
@@ -501,7 +500,7 @@ const Gt = {
|
|
|
501
500
|
// eslint-disable-next-line react/prop-types
|
|
502
501
|
TransitionComponent: C = G,
|
|
503
502
|
...g
|
|
504
|
-
} = n, w =
|
|
503
|
+
} = n, w = Ot(), u = p.useRef(), f = _e(), y = p.useRef(null), S = oe(y, Se(r), o), O = (d) => (h) => {
|
|
505
504
|
if (d) {
|
|
506
505
|
const j = y.current;
|
|
507
506
|
h === void 0 ? d(j) : d(j, h);
|
|
@@ -1229,6 +1228,7 @@ const un = (t) => {
|
|
|
1229
1228
|
...T,
|
|
1230
1229
|
...v
|
|
1231
1230
|
}, f = {
|
|
1231
|
+
component: a,
|
|
1232
1232
|
slots: w,
|
|
1233
1233
|
slotProps: u
|
|
1234
1234
|
}, [y, S] = X("root", {
|
|
@@ -1395,7 +1395,7 @@ function mn(t) {
|
|
|
1395
1395
|
};
|
|
1396
1396
|
return {
|
|
1397
1397
|
getRootProps: (d = {}) => {
|
|
1398
|
-
const h =
|
|
1398
|
+
const h = Nt(t);
|
|
1399
1399
|
delete h.onTransitionEnter, delete h.onTransitionExited;
|
|
1400
1400
|
const j = {
|
|
1401
1401
|
...h,
|
|
@@ -2138,7 +2138,7 @@ const Pn = (t) => {
|
|
|
2138
2138
|
backdrop: C.backdrop
|
|
2139
2139
|
},
|
|
2140
2140
|
slotProps: {
|
|
2141
|
-
backdrop:
|
|
2141
|
+
backdrop: wt(typeof g.backdrop == "function" ? g.backdrop(k) : g.backdrop, {
|
|
2142
2142
|
invisible: !0
|
|
2143
2143
|
})
|
|
2144
2144
|
},
|
|
@@ -2187,7 +2187,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
2187
2187
|
* A ref for imperative actions.
|
|
2188
2188
|
* It currently only supports updatePosition() action.
|
|
2189
2189
|
*/
|
|
2190
|
-
action:
|
|
2190
|
+
action: St,
|
|
2191
2191
|
/**
|
|
2192
2192
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
2193
2193
|
* or a function that returns either.
|
|
@@ -2311,7 +2311,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
2311
2311
|
* @default {}
|
|
2312
2312
|
*/
|
|
2313
2313
|
PaperProps: e.shape({
|
|
2314
|
-
component:
|
|
2314
|
+
component: Ct
|
|
2315
2315
|
}),
|
|
2316
2316
|
/**
|
|
2317
2317
|
* The props used for each slot inside.
|
|
@@ -2385,14 +2385,14 @@ function On(t) {
|
|
|
2385
2385
|
ownerState: i,
|
|
2386
2386
|
skipResolvingSlotProps: s = !1,
|
|
2387
2387
|
...r
|
|
2388
|
-
} = t, a = s ? {} :
|
|
2388
|
+
} = t, a = s ? {} : Mt(o, i), {
|
|
2389
2389
|
props: l,
|
|
2390
2390
|
internalRef: c
|
|
2391
|
-
} =
|
|
2391
|
+
} = kt({
|
|
2392
2392
|
...r,
|
|
2393
2393
|
externalSlotProps: a
|
|
2394
2394
|
}), b = oe(c, a == null ? void 0 : a.ref, (v = t.additionalProps) == null ? void 0 : v.ref);
|
|
2395
|
-
return
|
|
2395
|
+
return Dt(n, {
|
|
2396
2396
|
...l,
|
|
2397
2397
|
ref: b
|
|
2398
2398
|
}, i);
|
|
@@ -2694,7 +2694,7 @@ const Mn = {
|
|
|
2694
2694
|
list: ["list"]
|
|
2695
2695
|
}, Cn, n);
|
|
2696
2696
|
}, In = W(yt, {
|
|
2697
|
-
shouldForwardProp: (t) =>
|
|
2697
|
+
shouldForwardProp: (t) => Rt(t) || t === "classes",
|
|
2698
2698
|
name: "MuiMenu",
|
|
2699
2699
|
slot: "Root"
|
|
2700
2700
|
})({}), jn = W(gt, {
|
|
@@ -2962,7 +2962,7 @@ export {
|
|
|
2962
2962
|
Pt as e,
|
|
2963
2963
|
Bt as f,
|
|
2964
2964
|
Se as g,
|
|
2965
|
-
|
|
2965
|
+
Yn as h,
|
|
2966
2966
|
zt as i,
|
|
2967
2967
|
Ne as j,
|
|
2968
2968
|
Oe as k,
|
|
@@ -1,46 +1,44 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function te(e) {
|
|
12
|
-
return R("MuiDivider", e);
|
|
1
|
+
import * as d from "react";
|
|
2
|
+
import { g as O, P as o } from "./createTheme-DuP3DZSF.js";
|
|
3
|
+
import { u as B, a as D, b as x, d as L, r as S, m as E } from "./createSvgIcon-DN-sh_sr.js";
|
|
4
|
+
import { L as C } from "./Menu-CGTDGEoX.js";
|
|
5
|
+
import { g as c } from "./generateUtilityClasses-BpNk3DNr.js";
|
|
6
|
+
import { j as I } from "./jsx-runtime-DywqP_6a.js";
|
|
7
|
+
import { u as P } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
8
|
+
import { u as U, B as F } from "./useSlot-CiHsL61G.js";
|
|
9
|
+
function Y(e) {
|
|
10
|
+
return O("MuiDivider", e);
|
|
13
11
|
}
|
|
14
|
-
const M =
|
|
15
|
-
function
|
|
16
|
-
return
|
|
12
|
+
const M = c("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), $ = c("MuiListItemIcon", ["root", "alignItemsFlexStart"]), w = c("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
13
|
+
function G(e) {
|
|
14
|
+
return O("MuiMenuItem", e);
|
|
17
15
|
}
|
|
18
|
-
const n =
|
|
16
|
+
const n = c("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), H = (e, s) => {
|
|
19
17
|
const {
|
|
20
|
-
ownerState:
|
|
18
|
+
ownerState: t
|
|
21
19
|
} = e;
|
|
22
|
-
return [
|
|
20
|
+
return [s.root, t.dense && s.dense, t.divider && s.divider, !t.disableGutters && s.gutters];
|
|
23
21
|
}, z = (e) => {
|
|
24
22
|
const {
|
|
25
|
-
disabled:
|
|
26
|
-
dense:
|
|
23
|
+
disabled: s,
|
|
24
|
+
dense: t,
|
|
27
25
|
divider: a,
|
|
28
26
|
disableGutters: l,
|
|
29
|
-
selected:
|
|
27
|
+
selected: p,
|
|
30
28
|
classes: r
|
|
31
|
-
} = e, i =
|
|
32
|
-
root: ["root",
|
|
33
|
-
},
|
|
29
|
+
} = e, i = L({
|
|
30
|
+
root: ["root", t && "dense", s && "disabled", !l && "gutters", a && "divider", p && "selected"]
|
|
31
|
+
}, G, r);
|
|
34
32
|
return {
|
|
35
33
|
...r,
|
|
36
34
|
...i
|
|
37
35
|
};
|
|
38
|
-
}, A =
|
|
39
|
-
shouldForwardProp: (e) =>
|
|
36
|
+
}, A = D(F, {
|
|
37
|
+
shouldForwardProp: (e) => S(e) || e === "classes",
|
|
40
38
|
name: "MuiMenuItem",
|
|
41
39
|
slot: "Root",
|
|
42
|
-
overridesResolver:
|
|
43
|
-
})(
|
|
40
|
+
overridesResolver: H
|
|
41
|
+
})(E(({
|
|
44
42
|
theme: e
|
|
45
43
|
}) => ({
|
|
46
44
|
...e.typography.body1,
|
|
@@ -63,16 +61,16 @@ const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
63
61
|
}
|
|
64
62
|
},
|
|
65
63
|
[`&.${n.selected}`]: {
|
|
66
|
-
backgroundColor: e.
|
|
64
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
|
|
67
65
|
[`&.${n.focusVisible}`]: {
|
|
68
|
-
backgroundColor: e.vars
|
|
66
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`)
|
|
69
67
|
}
|
|
70
68
|
},
|
|
71
69
|
[`&.${n.selected}:hover`]: {
|
|
72
|
-
backgroundColor: e.vars
|
|
70
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
|
|
73
71
|
// Reset on touch devices, it doesn't add specificity
|
|
74
72
|
"@media (hover: none)": {
|
|
75
|
-
backgroundColor: e.
|
|
73
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity)
|
|
76
74
|
}
|
|
77
75
|
},
|
|
78
76
|
[`&.${n.focusVisible}`]: {
|
|
@@ -95,29 +93,29 @@ const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
95
93
|
[`& .${w.inset}`]: {
|
|
96
94
|
paddingLeft: 36
|
|
97
95
|
},
|
|
98
|
-
[`& .${
|
|
96
|
+
[`& .${$.root}`]: {
|
|
99
97
|
minWidth: 36
|
|
100
98
|
},
|
|
101
99
|
variants: [{
|
|
102
100
|
props: ({
|
|
103
|
-
ownerState:
|
|
104
|
-
}) => !
|
|
101
|
+
ownerState: s
|
|
102
|
+
}) => !s.disableGutters,
|
|
105
103
|
style: {
|
|
106
104
|
paddingLeft: 16,
|
|
107
105
|
paddingRight: 16
|
|
108
106
|
}
|
|
109
107
|
}, {
|
|
110
108
|
props: ({
|
|
111
|
-
ownerState:
|
|
112
|
-
}) =>
|
|
109
|
+
ownerState: s
|
|
110
|
+
}) => s.divider,
|
|
113
111
|
style: {
|
|
114
112
|
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
115
113
|
backgroundClip: "padding-box"
|
|
116
114
|
}
|
|
117
115
|
}, {
|
|
118
116
|
props: ({
|
|
119
|
-
ownerState:
|
|
120
|
-
}) => !
|
|
117
|
+
ownerState: s
|
|
118
|
+
}) => !s.dense,
|
|
121
119
|
style: {
|
|
122
120
|
[e.breakpoints.up("sm")]: {
|
|
123
121
|
minHeight: "auto"
|
|
@@ -125,59 +123,59 @@ const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
125
123
|
}
|
|
126
124
|
}, {
|
|
127
125
|
props: ({
|
|
128
|
-
ownerState:
|
|
129
|
-
}) =>
|
|
126
|
+
ownerState: s
|
|
127
|
+
}) => s.dense,
|
|
130
128
|
style: {
|
|
131
129
|
minHeight: 32,
|
|
132
130
|
// https://m2.material.io/components/menus#specs > Dense
|
|
133
131
|
paddingTop: 4,
|
|
134
132
|
paddingBottom: 4,
|
|
135
133
|
...e.typography.body2,
|
|
136
|
-
[`& .${
|
|
134
|
+
[`& .${$.root} svg`]: {
|
|
137
135
|
fontSize: "1.25rem"
|
|
138
136
|
}
|
|
139
137
|
}
|
|
140
138
|
}]
|
|
141
|
-
}))), W = /* @__PURE__ */
|
|
142
|
-
const a =
|
|
143
|
-
props:
|
|
139
|
+
}))), W = /* @__PURE__ */ d.forwardRef(function(s, t) {
|
|
140
|
+
const a = B({
|
|
141
|
+
props: s,
|
|
144
142
|
name: "MuiMenuItem"
|
|
145
143
|
}), {
|
|
146
144
|
autoFocus: l = !1,
|
|
147
|
-
component:
|
|
145
|
+
component: p = "li",
|
|
148
146
|
dense: r = !1,
|
|
149
147
|
divider: b = !1,
|
|
150
148
|
disableGutters: i = !1,
|
|
151
|
-
focusVisibleClassName:
|
|
152
|
-
role:
|
|
153
|
-
tabIndex:
|
|
154
|
-
className:
|
|
155
|
-
...
|
|
156
|
-
} = a,
|
|
157
|
-
dense: r ||
|
|
149
|
+
focusVisibleClassName: R,
|
|
150
|
+
role: T = "menuitem",
|
|
151
|
+
tabIndex: m,
|
|
152
|
+
className: V,
|
|
153
|
+
...k
|
|
154
|
+
} = a, g = d.useContext(C), v = d.useMemo(() => ({
|
|
155
|
+
dense: r || g.dense || !1,
|
|
158
156
|
disableGutters: i
|
|
159
|
-
}), [
|
|
160
|
-
|
|
161
|
-
l && (
|
|
157
|
+
}), [g.dense, r, i]), u = d.useRef(null);
|
|
158
|
+
P(() => {
|
|
159
|
+
l && (u.current ? u.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
162
160
|
}, [l]);
|
|
163
|
-
const
|
|
161
|
+
const N = {
|
|
164
162
|
...a,
|
|
165
|
-
dense:
|
|
163
|
+
dense: v.dense,
|
|
166
164
|
divider: b,
|
|
167
165
|
disableGutters: i
|
|
168
|
-
}, f = z(a),
|
|
169
|
-
let
|
|
170
|
-
return a.disabled || (
|
|
171
|
-
value:
|
|
172
|
-
children: /* @__PURE__ */
|
|
173
|
-
ref:
|
|
174
|
-
role:
|
|
175
|
-
tabIndex:
|
|
176
|
-
component:
|
|
177
|
-
focusVisibleClassName: x(f.focusVisible,
|
|
178
|
-
className: x(f.root,
|
|
179
|
-
...
|
|
180
|
-
ownerState:
|
|
166
|
+
}, f = z(a), j = U(u, t);
|
|
167
|
+
let y;
|
|
168
|
+
return a.disabled || (y = m !== void 0 ? m : -1), /* @__PURE__ */ I.jsx(C.Provider, {
|
|
169
|
+
value: v,
|
|
170
|
+
children: /* @__PURE__ */ I.jsx(A, {
|
|
171
|
+
ref: j,
|
|
172
|
+
role: T,
|
|
173
|
+
tabIndex: y,
|
|
174
|
+
component: p,
|
|
175
|
+
focusVisibleClassName: x(f.focusVisible, R),
|
|
176
|
+
className: x(f.root, V),
|
|
177
|
+
...k,
|
|
178
|
+
ownerState: N,
|
|
181
179
|
classes: f
|
|
182
180
|
})
|
|
183
181
|
});
|
|
@@ -192,44 +190,44 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
|
192
190
|
* Focus will also be triggered if the value changes from false to true.
|
|
193
191
|
* @default false
|
|
194
192
|
*/
|
|
195
|
-
autoFocus:
|
|
193
|
+
autoFocus: o.bool,
|
|
196
194
|
/**
|
|
197
195
|
* The content of the component.
|
|
198
196
|
*/
|
|
199
|
-
children:
|
|
197
|
+
children: o.node,
|
|
200
198
|
/**
|
|
201
199
|
* Override or extend the styles applied to the component.
|
|
202
200
|
*/
|
|
203
|
-
classes:
|
|
201
|
+
classes: o.object,
|
|
204
202
|
/**
|
|
205
203
|
* @ignore
|
|
206
204
|
*/
|
|
207
|
-
className:
|
|
205
|
+
className: o.string,
|
|
208
206
|
/**
|
|
209
207
|
* The component used for the root node.
|
|
210
208
|
* Either a string to use a HTML element or a component.
|
|
211
209
|
*/
|
|
212
|
-
component:
|
|
210
|
+
component: o.elementType,
|
|
213
211
|
/**
|
|
214
212
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
215
213
|
* The prop defaults to the value inherited from the parent Menu component.
|
|
216
214
|
* @default false
|
|
217
215
|
*/
|
|
218
|
-
dense:
|
|
216
|
+
dense: o.bool,
|
|
219
217
|
/**
|
|
220
218
|
* @ignore
|
|
221
219
|
*/
|
|
222
|
-
disabled:
|
|
220
|
+
disabled: o.bool,
|
|
223
221
|
/**
|
|
224
222
|
* If `true`, the left and right padding is removed.
|
|
225
223
|
* @default false
|
|
226
224
|
*/
|
|
227
|
-
disableGutters:
|
|
225
|
+
disableGutters: o.bool,
|
|
228
226
|
/**
|
|
229
227
|
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
230
228
|
* @default false
|
|
231
229
|
*/
|
|
232
|
-
divider:
|
|
230
|
+
divider: o.bool,
|
|
233
231
|
/**
|
|
234
232
|
* This prop can help identify which element has keyboard focus.
|
|
235
233
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -238,26 +236,26 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
|
238
236
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
239
237
|
* if needed.
|
|
240
238
|
*/
|
|
241
|
-
focusVisibleClassName:
|
|
239
|
+
focusVisibleClassName: o.string,
|
|
242
240
|
/**
|
|
243
241
|
* @ignore
|
|
244
242
|
*/
|
|
245
|
-
role:
|
|
243
|
+
role: o.string,
|
|
246
244
|
/**
|
|
247
245
|
* If `true`, the component is selected.
|
|
248
246
|
* @default false
|
|
249
247
|
*/
|
|
250
|
-
selected:
|
|
248
|
+
selected: o.bool,
|
|
251
249
|
/**
|
|
252
250
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
253
251
|
*/
|
|
254
|
-
sx:
|
|
252
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
255
253
|
/**
|
|
256
254
|
* @default 0
|
|
257
255
|
*/
|
|
258
|
-
tabIndex:
|
|
256
|
+
tabIndex: o.number
|
|
259
257
|
});
|
|
260
258
|
export {
|
|
261
259
|
W as M,
|
|
262
|
-
|
|
260
|
+
Y as g
|
|
263
261
|
};
|