@rankingcoach/vanguard 1.4.2 → 1.5.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/index-Accordion2.js +1 -1
- package/dist/index-CalendarPicker.js +1 -1
- package/dist/index-DateInput.js +4 -4
- package/dist/index-DateRange.js +1 -1
- package/dist/index-DropdownMenu.js +1 -1
- package/dist/index-InputRangeField.js +1 -1
- package/dist/index-LoginButton.js +1 -1
- package/dist/index-Menu.js +43 -251
- package/dist/index-Menu.module.scss.js +7 -0
- package/dist/index-Menu2.js +254 -0
- package/dist/index-MenuItem.js +38 -237
- package/dist/index-MenuItem2.js +240 -0
- package/dist/index-Month.js +2 -2
- package/dist/index-MonthPicker.js +1 -1
- package/dist/index-Parser2.js +2 -3
- package/dist/index-SearchableSelect.js +1 -1
- package/dist/index-Select.js +1 -1
- package/dist/index-SelectInput2.js +2 -2
- package/dist/index-Tooltip.js +1 -1
- package/dist/index-YearPicker.js +1 -1
- package/dist/index-_virtual10.js +5 -3
- package/dist/index-_virtual11.js +5 -5
- package/dist/index-_virtual12.js +2 -5
- package/dist/index-_virtual18.js +7 -2
- package/dist/index-_virtual19.js +2 -7
- package/dist/index-_virtual69.js +2 -2
- package/dist/index-_virtual70.js +4 -2
- package/dist/index-_virtual71.js +2 -4
- package/dist/index-_virtual72.js +4 -2
- package/dist/index-_virtual73.js +1 -1
- package/dist/index-_virtual74.js +1 -1
- package/dist/index-_virtual75.js +2 -4
- package/dist/index-_virtual76.js +2 -2
- package/dist/index-_virtual9.js +3 -2
- package/dist/index-accessibility.js +1 -1
- package/dist/index-dist3.js +1 -1
- package/dist/index-http.store.js +1 -1
- package/dist/index-useAutocomplete.js +1 -1
- package/dist/index-useControlled.js +26 -2
- package/dist/index-useControlled2.js +2 -26
- package/dist/index-useSlider.js +1 -1
- package/dist/index-useViews.js +1 -1
- package/dist/index-video.es.js +2 -2
- package/dist/index.js +396 -392
- package/dist/types/core/Menu/Menu.d.ts +17 -0
- package/dist/types/core/Menu/index.d.ts +2 -0
- package/dist/types/core/MenuItem/MenuItem.d.ts +14 -0
- package/dist/types/core/MenuItem/index.d.ts +2 -0
- package/dist/types/index.d.ts +62 -58
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist/vanguard.css +1 -1
- package/dist-wordpress/vanguard.css +1 -1
- package/package.json +1 -1
package/dist/index-MenuItem.js
CHANGED
|
@@ -1,240 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, W = j(_, {
|
|
38
|
-
shouldForwardProp: (e) => S(e) || e === "classes",
|
|
39
|
-
name: "MuiMenuItem",
|
|
40
|
-
slot: "Root",
|
|
41
|
-
overridesResolver: H
|
|
42
|
-
})(({
|
|
43
|
-
theme: e,
|
|
44
|
-
ownerState: t
|
|
45
|
-
}) => l({}, e.typography.body1, {
|
|
46
|
-
display: "flex",
|
|
47
|
-
justifyContent: "flex-start",
|
|
48
|
-
alignItems: "center",
|
|
49
|
-
position: "relative",
|
|
50
|
-
textDecoration: "none",
|
|
51
|
-
minHeight: 48,
|
|
52
|
-
paddingTop: 6,
|
|
53
|
-
paddingBottom: 6,
|
|
54
|
-
boxSizing: "border-box",
|
|
55
|
-
whiteSpace: "nowrap"
|
|
56
|
-
}, !t.disableGutters && {
|
|
57
|
-
paddingLeft: 16,
|
|
58
|
-
paddingRight: 16
|
|
59
|
-
}, t.divider && {
|
|
60
|
-
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
61
|
-
backgroundClip: "padding-box"
|
|
62
|
-
}, {
|
|
63
|
-
"&:hover": {
|
|
64
|
-
textDecoration: "none",
|
|
65
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
66
|
-
// Reset on touch devices, it doesn't add specificity
|
|
67
|
-
"@media (hover: none)": {
|
|
68
|
-
backgroundColor: "transparent"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
[`&.${n.selected}`]: {
|
|
72
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
73
|
-
[`&.${n.focusVisible}`]: {
|
|
74
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
[`&.${n.selected}:hover`]: {
|
|
78
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
79
|
-
// Reset on touch devices, it doesn't add specificity
|
|
80
|
-
"@media (hover: none)": {
|
|
81
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
[`&.${n.focusVisible}`]: {
|
|
85
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
86
|
-
},
|
|
87
|
-
[`&.${n.disabled}`]: {
|
|
88
|
-
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
89
|
-
},
|
|
90
|
-
[`& + .${N.root}`]: {
|
|
91
|
-
marginTop: e.spacing(1),
|
|
92
|
-
marginBottom: e.spacing(1)
|
|
93
|
-
},
|
|
94
|
-
[`& + .${N.inset}`]: {
|
|
95
|
-
marginLeft: 52
|
|
96
|
-
},
|
|
97
|
-
[`& .${M.root}`]: {
|
|
98
|
-
marginTop: 0,
|
|
99
|
-
marginBottom: 0
|
|
100
|
-
},
|
|
101
|
-
[`& .${M.inset}`]: {
|
|
102
|
-
paddingLeft: 36
|
|
103
|
-
},
|
|
104
|
-
[`& .${O.root}`]: {
|
|
105
|
-
minWidth: 36
|
|
106
|
-
}
|
|
107
|
-
}, !t.dense && {
|
|
108
|
-
[e.breakpoints.up("sm")]: {
|
|
109
|
-
minHeight: "auto"
|
|
110
|
-
}
|
|
111
|
-
}, t.dense && l({
|
|
112
|
-
minHeight: 32,
|
|
113
|
-
// https://m2.material.io/components/menus#specs > Dense
|
|
114
|
-
paddingTop: 4,
|
|
115
|
-
paddingBottom: 4
|
|
116
|
-
}, e.typography.body2, {
|
|
117
|
-
[`& .${O.root} svg`]: {
|
|
118
|
-
fontSize: "1.25rem"
|
|
119
|
-
}
|
|
120
|
-
}))), q = /* @__PURE__ */ d.forwardRef(function(t, a) {
|
|
121
|
-
const s = F({
|
|
122
|
-
props: t,
|
|
123
|
-
name: "MuiMenuItem"
|
|
124
|
-
}), {
|
|
125
|
-
autoFocus: c = !1,
|
|
126
|
-
component: u = "li",
|
|
127
|
-
dense: r = !1,
|
|
128
|
-
divider: b = !1,
|
|
129
|
-
disableGutters: i = !1,
|
|
130
|
-
focusVisibleClassName: k,
|
|
131
|
-
role: R = "menuitem",
|
|
132
|
-
tabIndex: v,
|
|
133
|
-
className: T
|
|
134
|
-
} = s, V = P(s, U), g = d.useContext($), y = d.useMemo(() => ({
|
|
135
|
-
dense: r || g.dense || !1,
|
|
136
|
-
disableGutters: i
|
|
137
|
-
}), [g.dense, r, i]), m = d.useRef(null);
|
|
138
|
-
G(() => {
|
|
139
|
-
c && (m.current ? m.current.focus() : process.env.NODE_ENV);
|
|
140
|
-
}, [c]);
|
|
141
|
-
const B = l({}, s, {
|
|
142
|
-
dense: y.dense,
|
|
143
|
-
divider: b,
|
|
144
|
-
disableGutters: i
|
|
145
|
-
}), f = z(s), E = D(m, a);
|
|
146
|
-
let C;
|
|
147
|
-
return s.disabled || (C = v !== void 0 ? v : -1), /* @__PURE__ */ I($.Provider, {
|
|
148
|
-
value: y,
|
|
149
|
-
children: /* @__PURE__ */ I(W, l({
|
|
150
|
-
ref: E,
|
|
151
|
-
role: R,
|
|
152
|
-
tabIndex: C,
|
|
153
|
-
component: u,
|
|
154
|
-
focusVisibleClassName: x(f.focusVisible, k),
|
|
155
|
-
className: x(f.root, T)
|
|
156
|
-
}, V, {
|
|
157
|
-
ownerState: B,
|
|
158
|
-
classes: f
|
|
159
|
-
}))
|
|
1
|
+
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as i } from "./index-Icon.js";
|
|
3
|
+
import { Text as d, TextTypes as y } from "./index-Text.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import u from "./index-MenuItem2.js";
|
|
6
|
+
const T = ({
|
|
7
|
+
testId: m,
|
|
8
|
+
className: f,
|
|
9
|
+
children: t,
|
|
10
|
+
textType: p = y.text,
|
|
11
|
+
icon: n,
|
|
12
|
+
iconProps: a,
|
|
13
|
+
iconPosition: e = "before",
|
|
14
|
+
...l
|
|
15
|
+
}) => {
|
|
16
|
+
const o = typeof t == "string" ? s(d, {
|
|
17
|
+
type: p,
|
|
18
|
+
children: t
|
|
19
|
+
}) : t, r = n ? s(i, {
|
|
20
|
+
...a,
|
|
21
|
+
children: n
|
|
22
|
+
}) : null, c = r ? x("div", {
|
|
23
|
+
style: {
|
|
24
|
+
display: "flex",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
width: "100%",
|
|
27
|
+
gap: 8,
|
|
28
|
+
justifyContent: e === "after" ? "space-between" : "flex-start"
|
|
29
|
+
},
|
|
30
|
+
children: [e === "before" && r, o, e === "after" && r]
|
|
31
|
+
}) : o;
|
|
32
|
+
return s(u, {
|
|
33
|
+
"data-testid": m,
|
|
34
|
+
className: f,
|
|
35
|
+
...l,
|
|
36
|
+
children: c
|
|
160
37
|
});
|
|
161
|
-
}
|
|
162
|
-
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
163
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
164
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
165
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
166
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
167
|
-
/**
|
|
168
|
-
* If `true`, the list item is focused during the first mount.
|
|
169
|
-
* Focus will also be triggered if the value changes from false to true.
|
|
170
|
-
* @default false
|
|
171
|
-
*/
|
|
172
|
-
autoFocus: o.bool,
|
|
173
|
-
/**
|
|
174
|
-
* The content of the component.
|
|
175
|
-
*/
|
|
176
|
-
children: o.node,
|
|
177
|
-
/**
|
|
178
|
-
* Override or extend the styles applied to the component.
|
|
179
|
-
*/
|
|
180
|
-
classes: o.object,
|
|
181
|
-
/**
|
|
182
|
-
* @ignore
|
|
183
|
-
*/
|
|
184
|
-
className: o.string,
|
|
185
|
-
/**
|
|
186
|
-
* The component used for the root node.
|
|
187
|
-
* Either a string to use a HTML element or a component.
|
|
188
|
-
*/
|
|
189
|
-
component: o.elementType,
|
|
190
|
-
/**
|
|
191
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
192
|
-
* The prop defaults to the value inherited from the parent Menu component.
|
|
193
|
-
* @default false
|
|
194
|
-
*/
|
|
195
|
-
dense: o.bool,
|
|
196
|
-
/**
|
|
197
|
-
* @ignore
|
|
198
|
-
*/
|
|
199
|
-
disabled: o.bool,
|
|
200
|
-
/**
|
|
201
|
-
* If `true`, the left and right padding is removed.
|
|
202
|
-
* @default false
|
|
203
|
-
*/
|
|
204
|
-
disableGutters: o.bool,
|
|
205
|
-
/**
|
|
206
|
-
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
207
|
-
* @default false
|
|
208
|
-
*/
|
|
209
|
-
divider: o.bool,
|
|
210
|
-
/**
|
|
211
|
-
* This prop can help identify which element has keyboard focus.
|
|
212
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
213
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
214
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
215
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
216
|
-
* if needed.
|
|
217
|
-
*/
|
|
218
|
-
focusVisibleClassName: o.string,
|
|
219
|
-
/**
|
|
220
|
-
* @ignore
|
|
221
|
-
*/
|
|
222
|
-
role: o.string,
|
|
223
|
-
/**
|
|
224
|
-
* If `true`, the component is selected.
|
|
225
|
-
* @default false
|
|
226
|
-
*/
|
|
227
|
-
selected: o.bool,
|
|
228
|
-
/**
|
|
229
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
230
|
-
*/
|
|
231
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
232
|
-
/**
|
|
233
|
-
* @default 0
|
|
234
|
-
*/
|
|
235
|
-
tabIndex: o.number
|
|
236
|
-
});
|
|
38
|
+
};
|
|
237
39
|
export {
|
|
238
|
-
|
|
239
|
-
H as overridesResolver
|
|
40
|
+
T as MenuItem
|
|
240
41
|
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import P from "./index-objectWithoutPropertiesLoose.js";
|
|
2
|
+
import l from "./index-extends.js";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import o from "./index-_virtual16.js";
|
|
5
|
+
import { clsx as x } from "./index-clsx.js";
|
|
6
|
+
import { c as p } from "./index-colorManipulator2.js";
|
|
7
|
+
import j from "./index-styled.js";
|
|
8
|
+
import $ from "./index-ListContext.js";
|
|
9
|
+
import n, { getMenuItemUtilityClass as w } from "./index-menuItemClasses.js";
|
|
10
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
11
|
+
import { useDefaultProps as F } from "./index-DefaultPropsProvider.js";
|
|
12
|
+
import G from "./index-useEnhancedEffect2.js";
|
|
13
|
+
import D from "./index-useForkRef.js";
|
|
14
|
+
import L from "./index-composeClasses.js";
|
|
15
|
+
import _ from "./index-ButtonBase.js";
|
|
16
|
+
import S from "./index-rootShouldForwardProp.js";
|
|
17
|
+
import O from "./index-listItemIconClasses.js";
|
|
18
|
+
import M from "./index-listItemTextClasses.js";
|
|
19
|
+
import N from "./index-dividerClasses.js";
|
|
20
|
+
const U = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"], H = (e, t) => {
|
|
21
|
+
const {
|
|
22
|
+
ownerState: a
|
|
23
|
+
} = e;
|
|
24
|
+
return [t.root, a.dense && t.dense, a.divider && t.divider, !a.disableGutters && t.gutters];
|
|
25
|
+
}, z = (e) => {
|
|
26
|
+
const {
|
|
27
|
+
disabled: t,
|
|
28
|
+
dense: a,
|
|
29
|
+
divider: s,
|
|
30
|
+
disableGutters: c,
|
|
31
|
+
selected: u,
|
|
32
|
+
classes: r
|
|
33
|
+
} = e, i = L({
|
|
34
|
+
root: ["root", a && "dense", t && "disabled", !c && "gutters", s && "divider", u && "selected"]
|
|
35
|
+
}, w, r);
|
|
36
|
+
return l({}, r, i);
|
|
37
|
+
}, W = j(_, {
|
|
38
|
+
shouldForwardProp: (e) => S(e) || e === "classes",
|
|
39
|
+
name: "MuiMenuItem",
|
|
40
|
+
slot: "Root",
|
|
41
|
+
overridesResolver: H
|
|
42
|
+
})(({
|
|
43
|
+
theme: e,
|
|
44
|
+
ownerState: t
|
|
45
|
+
}) => l({}, e.typography.body1, {
|
|
46
|
+
display: "flex",
|
|
47
|
+
justifyContent: "flex-start",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
position: "relative",
|
|
50
|
+
textDecoration: "none",
|
|
51
|
+
minHeight: 48,
|
|
52
|
+
paddingTop: 6,
|
|
53
|
+
paddingBottom: 6,
|
|
54
|
+
boxSizing: "border-box",
|
|
55
|
+
whiteSpace: "nowrap"
|
|
56
|
+
}, !t.disableGutters && {
|
|
57
|
+
paddingLeft: 16,
|
|
58
|
+
paddingRight: 16
|
|
59
|
+
}, t.divider && {
|
|
60
|
+
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
61
|
+
backgroundClip: "padding-box"
|
|
62
|
+
}, {
|
|
63
|
+
"&:hover": {
|
|
64
|
+
textDecoration: "none",
|
|
65
|
+
backgroundColor: (e.vars || e).palette.action.hover,
|
|
66
|
+
// Reset on touch devices, it doesn't add specificity
|
|
67
|
+
"@media (hover: none)": {
|
|
68
|
+
backgroundColor: "transparent"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
[`&.${n.selected}`]: {
|
|
72
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
73
|
+
[`&.${n.focusVisible}`]: {
|
|
74
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
[`&.${n.selected}:hover`]: {
|
|
78
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
79
|
+
// Reset on touch devices, it doesn't add specificity
|
|
80
|
+
"@media (hover: none)": {
|
|
81
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p.alpha(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
[`&.${n.focusVisible}`]: {
|
|
85
|
+
backgroundColor: (e.vars || e).palette.action.focus
|
|
86
|
+
},
|
|
87
|
+
[`&.${n.disabled}`]: {
|
|
88
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
89
|
+
},
|
|
90
|
+
[`& + .${N.root}`]: {
|
|
91
|
+
marginTop: e.spacing(1),
|
|
92
|
+
marginBottom: e.spacing(1)
|
|
93
|
+
},
|
|
94
|
+
[`& + .${N.inset}`]: {
|
|
95
|
+
marginLeft: 52
|
|
96
|
+
},
|
|
97
|
+
[`& .${M.root}`]: {
|
|
98
|
+
marginTop: 0,
|
|
99
|
+
marginBottom: 0
|
|
100
|
+
},
|
|
101
|
+
[`& .${M.inset}`]: {
|
|
102
|
+
paddingLeft: 36
|
|
103
|
+
},
|
|
104
|
+
[`& .${O.root}`]: {
|
|
105
|
+
minWidth: 36
|
|
106
|
+
}
|
|
107
|
+
}, !t.dense && {
|
|
108
|
+
[e.breakpoints.up("sm")]: {
|
|
109
|
+
minHeight: "auto"
|
|
110
|
+
}
|
|
111
|
+
}, t.dense && l({
|
|
112
|
+
minHeight: 32,
|
|
113
|
+
// https://m2.material.io/components/menus#specs > Dense
|
|
114
|
+
paddingTop: 4,
|
|
115
|
+
paddingBottom: 4
|
|
116
|
+
}, e.typography.body2, {
|
|
117
|
+
[`& .${O.root} svg`]: {
|
|
118
|
+
fontSize: "1.25rem"
|
|
119
|
+
}
|
|
120
|
+
}))), q = /* @__PURE__ */ d.forwardRef(function(t, a) {
|
|
121
|
+
const s = F({
|
|
122
|
+
props: t,
|
|
123
|
+
name: "MuiMenuItem"
|
|
124
|
+
}), {
|
|
125
|
+
autoFocus: c = !1,
|
|
126
|
+
component: u = "li",
|
|
127
|
+
dense: r = !1,
|
|
128
|
+
divider: b = !1,
|
|
129
|
+
disableGutters: i = !1,
|
|
130
|
+
focusVisibleClassName: k,
|
|
131
|
+
role: R = "menuitem",
|
|
132
|
+
tabIndex: v,
|
|
133
|
+
className: T
|
|
134
|
+
} = s, V = P(s, U), g = d.useContext($), y = d.useMemo(() => ({
|
|
135
|
+
dense: r || g.dense || !1,
|
|
136
|
+
disableGutters: i
|
|
137
|
+
}), [g.dense, r, i]), m = d.useRef(null);
|
|
138
|
+
G(() => {
|
|
139
|
+
c && (m.current ? m.current.focus() : process.env.NODE_ENV);
|
|
140
|
+
}, [c]);
|
|
141
|
+
const B = l({}, s, {
|
|
142
|
+
dense: y.dense,
|
|
143
|
+
divider: b,
|
|
144
|
+
disableGutters: i
|
|
145
|
+
}), f = z(s), E = D(m, a);
|
|
146
|
+
let C;
|
|
147
|
+
return s.disabled || (C = v !== void 0 ? v : -1), /* @__PURE__ */ I($.Provider, {
|
|
148
|
+
value: y,
|
|
149
|
+
children: /* @__PURE__ */ I(W, l({
|
|
150
|
+
ref: E,
|
|
151
|
+
role: R,
|
|
152
|
+
tabIndex: C,
|
|
153
|
+
component: u,
|
|
154
|
+
focusVisibleClassName: x(f.focusVisible, k),
|
|
155
|
+
className: x(f.root, T)
|
|
156
|
+
}, V, {
|
|
157
|
+
ownerState: B,
|
|
158
|
+
classes: f
|
|
159
|
+
}))
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
163
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
164
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
165
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
166
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
167
|
+
/**
|
|
168
|
+
* If `true`, the list item is focused during the first mount.
|
|
169
|
+
* Focus will also be triggered if the value changes from false to true.
|
|
170
|
+
* @default false
|
|
171
|
+
*/
|
|
172
|
+
autoFocus: o.bool,
|
|
173
|
+
/**
|
|
174
|
+
* The content of the component.
|
|
175
|
+
*/
|
|
176
|
+
children: o.node,
|
|
177
|
+
/**
|
|
178
|
+
* Override or extend the styles applied to the component.
|
|
179
|
+
*/
|
|
180
|
+
classes: o.object,
|
|
181
|
+
/**
|
|
182
|
+
* @ignore
|
|
183
|
+
*/
|
|
184
|
+
className: o.string,
|
|
185
|
+
/**
|
|
186
|
+
* The component used for the root node.
|
|
187
|
+
* Either a string to use a HTML element or a component.
|
|
188
|
+
*/
|
|
189
|
+
component: o.elementType,
|
|
190
|
+
/**
|
|
191
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
192
|
+
* The prop defaults to the value inherited from the parent Menu component.
|
|
193
|
+
* @default false
|
|
194
|
+
*/
|
|
195
|
+
dense: o.bool,
|
|
196
|
+
/**
|
|
197
|
+
* @ignore
|
|
198
|
+
*/
|
|
199
|
+
disabled: o.bool,
|
|
200
|
+
/**
|
|
201
|
+
* If `true`, the left and right padding is removed.
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
disableGutters: o.bool,
|
|
205
|
+
/**
|
|
206
|
+
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
207
|
+
* @default false
|
|
208
|
+
*/
|
|
209
|
+
divider: o.bool,
|
|
210
|
+
/**
|
|
211
|
+
* This prop can help identify which element has keyboard focus.
|
|
212
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
213
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
214
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
215
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
216
|
+
* if needed.
|
|
217
|
+
*/
|
|
218
|
+
focusVisibleClassName: o.string,
|
|
219
|
+
/**
|
|
220
|
+
* @ignore
|
|
221
|
+
*/
|
|
222
|
+
role: o.string,
|
|
223
|
+
/**
|
|
224
|
+
* If `true`, the component is selected.
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
selected: o.bool,
|
|
228
|
+
/**
|
|
229
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
230
|
+
*/
|
|
231
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
232
|
+
/**
|
|
233
|
+
* @default 0
|
|
234
|
+
*/
|
|
235
|
+
tabIndex: o.number
|
|
236
|
+
});
|
|
237
|
+
export {
|
|
238
|
+
q as default,
|
|
239
|
+
H as overridesResolver
|
|
240
|
+
};
|
package/dist/index-Month.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { __exports as y } from "./index-
|
|
1
|
+
import { __exports as y } from "./index-_virtual69.js";
|
|
2
2
|
import de from "react";
|
|
3
3
|
import { __require as me } from "./index-prop-types.js";
|
|
4
4
|
import { __require as he } from "./index-DayCell.js";
|
|
5
5
|
import ye from "./index-_virtual54.js";
|
|
6
6
|
import ve from "./index-_virtual37.js";
|
|
7
|
-
import Oe from "./index-
|
|
7
|
+
import Oe from "./index-_virtual70.js";
|
|
8
8
|
import _e from "./index-_virtual68.js";
|
|
9
9
|
import De from "./index-_virtual51.js";
|
|
10
10
|
import ge from "./index-_virtual41.js";
|
|
@@ -9,7 +9,7 @@ import { getMonthPickerUtilityClass as ee } from "./index-monthPickerClasses.js"
|
|
|
9
9
|
import { parseNonNullablePickerDate as T } from "./index-date-utils.js";
|
|
10
10
|
import { jsx as Y } from "react/jsx-runtime";
|
|
11
11
|
import te from "./index-useTheme2.js";
|
|
12
|
-
import oe from "./index-
|
|
12
|
+
import oe from "./index-useControlled.js";
|
|
13
13
|
import se from "./index-useEventCallback2.js";
|
|
14
14
|
import ne from "./index-styled.js";
|
|
15
15
|
import ae from "./index-useThemeProps.js";
|
package/dist/index-Parser2.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import S, { QuoteType as u } from "./index-Tokenizer.js";
|
|
2
|
-
import "./index-decode.js";
|
|
3
2
|
import { fromCodePoint as p } from "./index-decode_codepoint.js";
|
|
4
3
|
const f = /* @__PURE__ */ new Set([
|
|
5
4
|
"input",
|
|
@@ -88,7 +87,7 @@ const f = /* @__PURE__ */ new Set([
|
|
|
88
87
|
"desc",
|
|
89
88
|
"title"
|
|
90
89
|
]), I = /\s|\//;
|
|
91
|
-
class
|
|
90
|
+
class E {
|
|
92
91
|
constructor(t, e = {}) {
|
|
93
92
|
var s, i, o, h, a;
|
|
94
93
|
this.options = e, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.foreignContext = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = t ?? {}, this.lowerCaseTagNames = (s = e.lowerCaseTags) !== null && s !== void 0 ? s : !e.xmlMode, this.lowerCaseAttributeNames = (i = e.lowerCaseAttributeNames) !== null && i !== void 0 ? i : !e.xmlMode, this.tokenizer = new ((o = e.Tokenizer) !== null && o !== void 0 ? o : S)(this.options, this), (a = (h = this.cbs).onparserinit) === null || a === void 0 || a.call(h, this);
|
|
@@ -316,5 +315,5 @@ class y {
|
|
|
316
315
|
}
|
|
317
316
|
}
|
|
318
317
|
export {
|
|
319
|
-
|
|
318
|
+
E as Parser
|
|
320
319
|
};
|
|
@@ -11,7 +11,7 @@ import D from "./index-Box.js";
|
|
|
11
11
|
import W from "./index-FormControl2.js";
|
|
12
12
|
import _ from "./index-Select2.js";
|
|
13
13
|
import h from "./index-InputAdornment.js";
|
|
14
|
-
import j from "./index-
|
|
14
|
+
import j from "./index-MenuItem2.js";
|
|
15
15
|
const k = ["title"], ee = (P) => {
|
|
16
16
|
const {
|
|
17
17
|
options: o,
|
package/dist/index-Select.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Render as R } from "./index-Render.js";
|
|
|
8
8
|
import { Text as V, TextTypes as T } from "./index-Text.js";
|
|
9
9
|
import b, { useState as o, useRef as q, useEffect as h } from "react";
|
|
10
10
|
import z from "./index-Select.module.scss.js";
|
|
11
|
-
import G from "./index-
|
|
11
|
+
import G from "./index-MenuItem2.js";
|
|
12
12
|
const le = (a) => {
|
|
13
13
|
const {
|
|
14
14
|
className: U,
|
|
@@ -4,13 +4,13 @@ import * as i from "react";
|
|
|
4
4
|
import { isFragment as Fe } from "react-is";
|
|
5
5
|
import t from "./index-_virtual16.js";
|
|
6
6
|
import { clsx as $e } from "./index-clsx.js";
|
|
7
|
-
import je from "./index-
|
|
7
|
+
import je from "./index-Menu2.js";
|
|
8
8
|
import { nativeSelectSelectStyles as Ve, nativeSelectIconStyles as We } from "./index-NativeSelectInput.js";
|
|
9
9
|
import { isFilled as Ae } from "./index-utils7.js";
|
|
10
10
|
import U from "./index-styled.js";
|
|
11
11
|
import I, { getSelectUtilityClasses as ke } from "./index-selectClasses.js";
|
|
12
12
|
import { jsxs as Te, jsx as w } from "react/jsx-runtime";
|
|
13
|
-
import ae from "./index-
|
|
13
|
+
import ae from "./index-useControlled.js";
|
|
14
14
|
import Ue from "./index-useForkRef.js";
|
|
15
15
|
import _e from "./index-ownerDocument2.js";
|
|
16
16
|
import Be from "./index-formatMuiErrorMessage.js";
|
package/dist/index-Tooltip.js
CHANGED
|
@@ -11,7 +11,7 @@ import { useDefaultProps as ye } from "./index-DefaultPropsProvider.js";
|
|
|
11
11
|
import Wo from "./index-Grow.js";
|
|
12
12
|
import ve from "./index-useTheme.js";
|
|
13
13
|
import j, { Timeout as Pe } from "./index-useTimeout.js";
|
|
14
|
-
import we from "./index-
|
|
14
|
+
import we from "./index-useControlled.js";
|
|
15
15
|
import Re from "./index-useId2.js";
|
|
16
16
|
import Bo from "./index-useEventCallback2.js";
|
|
17
17
|
import xe from "./index-useIsFocusVisible2.js";
|
package/dist/index-YearPicker.js
CHANGED
|
@@ -9,7 +9,7 @@ import { getYearPickerUtilityClass as ne } from "./index-yearPickerClasses.js";
|
|
|
9
9
|
import { parseNonNullablePickerDate as O } from "./index-date-utils.js";
|
|
10
10
|
import { jsx as S } from "react/jsx-runtime";
|
|
11
11
|
import ce from "./index-useTheme.js";
|
|
12
|
-
import le from "./index-
|
|
12
|
+
import le from "./index-useControlled.js";
|
|
13
13
|
import ue from "./index-useForkRef.js";
|
|
14
14
|
import ie from "./index-styled.js";
|
|
15
15
|
import fe from "./index-useThemeProps.js";
|
package/dist/index-_virtual10.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./index-_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "./index-keycode.js";
|
|
3
|
+
var o = r();
|
|
4
|
+
const m = /* @__PURE__ */ e(o);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
m as default
|
|
5
7
|
};
|
package/dist/index-_virtual11.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index-_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "./index-lib4.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
package/dist/index-_virtual12.js
CHANGED
package/dist/index-_virtual18.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index-_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "./index-axios.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
5
|
+
export {
|
|
6
|
+
a as default
|
|
7
|
+
};
|