@jigowatts/jigowatts-ui 0.0.1-12
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/README.md +50 -0
- package/dist/AccordionSummary-B4zooGpd.js +831 -0
- package/dist/ButtonBase-pxtIu13Q.js +866 -0
- package/dist/DateTimePicker-DJSOr5wM.js +4653 -0
- package/dist/ListContext-DOVwHqy-.js +180 -0
- package/dist/MenuItem-yBaT3_db.js +470 -0
- package/dist/Paper-COvYqxZa.js +522 -0
- package/dist/Tabs-D3lJRumZ.js +1085 -0
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/browser-DxfwT6rn.js +656 -0
- package/dist/components/Button/index.d.ts +28 -0
- package/dist/components/Button/index.js +18 -0
- package/dist/components/Button/index.test.d.ts +1 -0
- package/dist/components/Button/index.test.js +23 -0
- package/dist/components/Card/index.d.ts +16 -0
- package/dist/components/Card/index.js +37 -0
- package/dist/components/Card/index.test.d.ts +1 -0
- package/dist/components/Card/index.test.js +35 -0
- package/dist/components/CustomLink/index.d.ts +11 -0
- package/dist/components/CustomLink/index.js +1670 -0
- package/dist/components/CustomLink/index.test.d.ts +1 -0
- package/dist/components/CustomLink/index.test.js +40 -0
- package/dist/components/DataTable/index.d.ts +28 -0
- package/dist/components/DataTable/index.js +137 -0
- package/dist/components/DataTable/index.test.d.ts +1 -0
- package/dist/components/DataTable/index.test.js +3010 -0
- package/dist/components/DatePickerController/index.d.ts +16 -0
- package/dist/components/DatePickerController/index.js +83 -0
- package/dist/components/DatePickerController/index.test.d.ts +1 -0
- package/dist/components/DatePickerController/index.test.js +24 -0
- package/dist/components/ErrorMessage/index.d.ts +5 -0
- package/dist/components/ErrorMessage/index.js +11 -0
- package/dist/components/ErrorMessage/index.test.d.ts +1 -0
- package/dist/components/ErrorMessage/index.test.js +17 -0
- package/dist/components/EvseStateLabel/index.d.ts +5 -0
- package/dist/components/EvseStateLabel/index.js +36 -0
- package/dist/components/FlexButtons/index.d.ts +9 -0
- package/dist/components/FlexButtons/index.js +13 -0
- package/dist/components/Form/index.d.ts +8 -0
- package/dist/components/Form/index.js +11 -0
- package/dist/components/Form/index.test.d.ts +1 -0
- package/dist/components/Form/index.test.js +25 -0
- package/dist/components/FormItem/index.d.ts +9 -0
- package/dist/components/FormItem/index.js +19 -0
- package/dist/components/FormItem/index.test.d.ts +1 -0
- package/dist/components/FormItem/index.test.js +15 -0
- package/dist/components/FormTitle/index.d.ts +5 -0
- package/dist/components/FormTitle/index.js +11 -0
- package/dist/components/FormTitle/index.test.d.ts +1 -0
- package/dist/components/FormTitle/index.test.js +15 -0
- package/dist/components/Input/index.d.ts +15 -0
- package/dist/components/Input/index.js +39 -0
- package/dist/components/Input/index.test.d.ts +1 -0
- package/dist/components/Input/index.test.js +39 -0
- package/dist/components/InputController/index.d.ts +20 -0
- package/dist/components/InputController/index.js +81 -0
- package/dist/components/InputController/index.test.d.ts +1 -0
- package/dist/components/InputController/index.test.js +56 -0
- package/dist/components/InputGroup/index.d.ts +7 -0
- package/dist/components/InputGroup/index.js +11 -0
- package/dist/components/InputGroup/index.test.d.ts +1 -0
- package/dist/components/InputGroup/index.test.js +15 -0
- package/dist/components/Label/index.d.ts +7 -0
- package/dist/components/Label/index.js +14 -0
- package/dist/components/Label/index.test.d.ts +1 -0
- package/dist/components/Label/index.test.js +25 -0
- package/dist/components/LabeledContent/index.d.ts +15 -0
- package/dist/components/LabeledContent/index.js +28 -0
- package/dist/components/LabeledContent/index.test.d.ts +1 -0
- package/dist/components/LabeledContent/index.test.js +19 -0
- package/dist/components/LoadingOverlay/index.d.ts +2 -0
- package/dist/components/LoadingOverlay/index.js +134 -0
- package/dist/components/LoadingOverlay/index.test.d.ts +1 -0
- package/dist/components/LoadingOverlay/index.test.js +12 -0
- package/dist/components/Map/index.d.ts +8 -0
- package/dist/components/Map/index.js +6575 -0
- package/dist/components/MaxWidthContainer/index.d.ts +13 -0
- package/dist/components/MaxWidthContainer/index.js +15 -0
- package/dist/components/MaxWidthContainer/index.test.d.ts +1 -0
- package/dist/components/MaxWidthContainer/index.test.js +24 -0
- package/dist/components/NumericFieldController/index.d.ts +53 -0
- package/dist/components/NumericFieldController/index.js +620 -0
- package/dist/components/NumericFieldController/index.test.d.ts +1 -0
- package/dist/components/NumericFieldController/index.test.js +24 -0
- package/dist/components/OfflineLabel/index.d.ts +5 -0
- package/dist/components/OfflineLabel/index.js +34 -0
- package/dist/components/PageSizeSelector/index.d.ts +15 -0
- package/dist/components/PageSizeSelector/index.js +43 -0
- package/dist/components/Pagination/index.d.ts +9 -0
- package/dist/components/Pagination/index.js +7 -0
- package/dist/components/Pagination/index.test.d.ts +1 -0
- package/dist/components/Pagination/index.test.js +34 -0
- package/dist/components/PasswordInputController/index.d.ts +17 -0
- package/dist/components/PasswordInputController/index.js +78 -0
- package/dist/components/PasswordInputController/index.test.d.ts +1 -0
- package/dist/components/PasswordInputController/index.test.js +37 -0
- package/dist/components/RadioButton/index.d.ts +13 -0
- package/dist/components/RadioButton/index.js +7 -0
- package/dist/components/RadioButton/index.test.d.ts +1 -0
- package/dist/components/RadioButton/index.test.js +38 -0
- package/dist/components/RadioGroupController/index.d.ts +15 -0
- package/dist/components/RadioGroupController/index.js +48 -0
- package/dist/components/RadioGroupController/index.test.d.ts +1 -0
- package/dist/components/RadioGroupController/index.test.js +48 -0
- package/dist/components/RangeDatePicker/index.d.ts +14 -0
- package/dist/components/RangeDatePicker/index.js +1594 -0
- package/dist/components/RangeDatePickerController/index.d.ts +21 -0
- package/dist/components/RangeDatePickerController/index.js +123 -0
- package/dist/components/RangeDatePickerController/index.test.d.ts +1 -0
- package/dist/components/RangeDatePickerController/index.test.js +24 -0
- package/dist/components/ReportCard/index.d.ts +12 -0
- package/dist/components/ReportCard/index.js +18 -0
- package/dist/components/ReportCard/index.test.d.ts +1 -0
- package/dist/components/ReportCard/index.test.js +27 -0
- package/dist/components/ReportChart/index.d.ts +22 -0
- package/dist/components/ReportChart/index.js +23101 -0
- package/dist/components/ScrollableDialog/index.d.ts +19 -0
- package/dist/components/ScrollableDialog/index.js +42 -0
- package/dist/components/ScrollableDialog/index.test.d.ts +1 -0
- package/dist/components/ScrollableDialog/index.test.js +59 -0
- package/dist/components/SearchForm/index.d.ts +13 -0
- package/dist/components/SearchForm/index.js +86 -0
- package/dist/components/SelectBox/index.d.ts +18 -0
- package/dist/components/SelectBox/index.js +7 -0
- package/dist/components/SelectBox/index.test.d.ts +1 -0
- package/dist/components/SelectBox/index.test.js +34 -0
- package/dist/components/SelectBoxController/index.d.ts +20 -0
- package/dist/components/SelectBoxController/index.js +87 -0
- package/dist/components/SelectBoxController/index.test.d.ts +1 -0
- package/dist/components/SelectBoxController/index.test.js +52 -0
- package/dist/components/SubMenu/index.d.ts +22 -0
- package/dist/components/SubMenu/index.js +278 -0
- package/dist/components/SubMenu/index.test.d.ts +1 -0
- package/dist/components/SubMenu/index.test.js +41 -0
- package/dist/components/Tabs/index.d.ts +21 -0
- package/dist/components/Tabs/index.js +100 -0
- package/dist/components/Tabs/index.test.d.ts +1 -0
- package/dist/components/Tabs/index.test.js +24 -0
- package/dist/components/Textarea/index.d.ts +18 -0
- package/dist/components/Textarea/index.js +34 -0
- package/dist/components/Textarea/index.test.d.ts +1 -0
- package/dist/components/Textarea/index.test.js +25 -0
- package/dist/components/ToggleButton/index.d.ts +16 -0
- package/dist/components/ToggleButton/index.js +39 -0
- package/dist/components/ToggleButton/index.test.d.ts +1 -0
- package/dist/components/ToggleButton/index.test.js +49 -0
- package/dist/constants/datetime.d.ts +2 -0
- package/dist/constants/datetime.js +5 -0
- package/dist/createSvgIcon-B53UOwxg.js +183 -0
- package/dist/createSvgIcon-Dj8zNxRS.js +72 -0
- package/dist/index-BLPOOjNr.js +184 -0
- package/dist/index-BOjtnFU5.js +34 -0
- package/dist/index-Bs3JCwgu.js +689 -0
- package/dist/index-CICI7n5Y.js +19688 -0
- package/dist/index-CQDJfJT1.js +50 -0
- package/dist/index-C_i0-R5C.js +393 -0
- package/dist/index-DWRHnq8_.js +42 -0
- package/dist/index-Di2gTfPF.js +25175 -0
- package/dist/index-VF82hRp0.js +2522 -0
- package/dist/index-kvi6aotO.js +39 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.esm-ChwJSgnF.js +1052 -0
- package/dist/index.js +77 -0
- package/dist/isEqual-BBhdD79C.js +667 -0
- package/dist/mergeSlotProps-J197zKan.js +63 -0
- package/dist/react.esm-C8amP77L.js +11182 -0
- package/dist/styled-CWju4EfZ.js +2702 -0
- package/dist/unsupportedProp-DZaWZqWQ.js +30 -0
- package/dist/useControlled-BQCJRJNJ.js +64 -0
- package/dist/useIsFocusVisible-BxB-Hdhb.js +124 -0
- package/dist/useSlotProps-Bh7akxXV.js +33 -0
- package/package.json +360 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { g as N, b as O, s as M, d as f, a as p, u as j, e as P, _ as L, c as R } from "./styled-CWju4EfZ.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { c as _, P as t } from "./index-Bs3JCwgu.js";
|
|
4
|
+
import { jsx as E } from "react/jsx-runtime";
|
|
5
|
+
function U(a) {
|
|
6
|
+
return N("MuiTypography", a);
|
|
7
|
+
}
|
|
8
|
+
O("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
9
|
+
const $ = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], D = (a) => {
|
|
10
|
+
const {
|
|
11
|
+
align: o,
|
|
12
|
+
gutterBottom: r,
|
|
13
|
+
noWrap: e,
|
|
14
|
+
paragraph: i,
|
|
15
|
+
variant: n,
|
|
16
|
+
classes: h
|
|
17
|
+
} = a, s = {
|
|
18
|
+
root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
|
|
19
|
+
};
|
|
20
|
+
return R(s, U, h);
|
|
21
|
+
}, V = M("span", {
|
|
22
|
+
name: "MuiTypography",
|
|
23
|
+
slot: "Root",
|
|
24
|
+
overridesResolver: (a, o) => {
|
|
25
|
+
const {
|
|
26
|
+
ownerState: r
|
|
27
|
+
} = a;
|
|
28
|
+
return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
|
|
29
|
+
}
|
|
30
|
+
})(({
|
|
31
|
+
theme: a,
|
|
32
|
+
ownerState: o
|
|
33
|
+
}) => p({
|
|
34
|
+
margin: 0
|
|
35
|
+
}, o.variant === "inherit" && {
|
|
36
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
37
|
+
font: "inherit"
|
|
38
|
+
}, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
|
|
39
|
+
textAlign: o.align
|
|
40
|
+
}, o.noWrap && {
|
|
41
|
+
overflow: "hidden",
|
|
42
|
+
textOverflow: "ellipsis",
|
|
43
|
+
whiteSpace: "nowrap"
|
|
44
|
+
}, o.gutterBottom && {
|
|
45
|
+
marginBottom: "0.35em"
|
|
46
|
+
}, o.paragraph && {
|
|
47
|
+
marginBottom: 16
|
|
48
|
+
})), u = {
|
|
49
|
+
h1: "h1",
|
|
50
|
+
h2: "h2",
|
|
51
|
+
h3: "h3",
|
|
52
|
+
h4: "h4",
|
|
53
|
+
h5: "h5",
|
|
54
|
+
h6: "h6",
|
|
55
|
+
subtitle1: "h6",
|
|
56
|
+
subtitle2: "h6",
|
|
57
|
+
body1: "p",
|
|
58
|
+
body2: "p",
|
|
59
|
+
inherit: "p"
|
|
60
|
+
}, z = {
|
|
61
|
+
primary: "primary.main",
|
|
62
|
+
textPrimary: "text.primary",
|
|
63
|
+
secondary: "secondary.main",
|
|
64
|
+
textSecondary: "text.secondary",
|
|
65
|
+
error: "error.main"
|
|
66
|
+
}, A = (a) => z[a] || a, b = /* @__PURE__ */ d.forwardRef(function(o, r) {
|
|
67
|
+
const e = j({
|
|
68
|
+
props: o,
|
|
69
|
+
name: "MuiTypography"
|
|
70
|
+
}), i = A(e.color), n = P(p({}, e, {
|
|
71
|
+
color: i
|
|
72
|
+
})), {
|
|
73
|
+
align: h = "inherit",
|
|
74
|
+
className: s,
|
|
75
|
+
component: l,
|
|
76
|
+
gutterBottom: x = !1,
|
|
77
|
+
noWrap: T = !1,
|
|
78
|
+
paragraph: g = !1,
|
|
79
|
+
variant: c = "body1",
|
|
80
|
+
variantMapping: m = u
|
|
81
|
+
} = n, C = L(n, $), y = p({}, n, {
|
|
82
|
+
align: h,
|
|
83
|
+
color: i,
|
|
84
|
+
className: s,
|
|
85
|
+
component: l,
|
|
86
|
+
gutterBottom: x,
|
|
87
|
+
noWrap: T,
|
|
88
|
+
paragraph: g,
|
|
89
|
+
variant: c,
|
|
90
|
+
variantMapping: m
|
|
91
|
+
}), B = l || (g ? "p" : m[c] || u[c]) || "span", W = D(y);
|
|
92
|
+
return /* @__PURE__ */ E(V, p({
|
|
93
|
+
as: B,
|
|
94
|
+
ref: r,
|
|
95
|
+
ownerState: y,
|
|
96
|
+
className: _(W.root, s)
|
|
97
|
+
}, C));
|
|
98
|
+
});
|
|
99
|
+
process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
100
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
101
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
102
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
103
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
104
|
+
/**
|
|
105
|
+
* Set the text-align on the component.
|
|
106
|
+
* @default 'inherit'
|
|
107
|
+
*/
|
|
108
|
+
align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
109
|
+
/**
|
|
110
|
+
* The content of the component.
|
|
111
|
+
*/
|
|
112
|
+
children: t.node,
|
|
113
|
+
/**
|
|
114
|
+
* Override or extend the styles applied to the component.
|
|
115
|
+
*/
|
|
116
|
+
classes: t.object,
|
|
117
|
+
/**
|
|
118
|
+
* @ignore
|
|
119
|
+
*/
|
|
120
|
+
className: t.string,
|
|
121
|
+
/**
|
|
122
|
+
* The component used for the root node.
|
|
123
|
+
* Either a string to use a HTML element or a component.
|
|
124
|
+
*/
|
|
125
|
+
component: t.elementType,
|
|
126
|
+
/**
|
|
127
|
+
* If `true`, the text will have a bottom margin.
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
gutterBottom: t.bool,
|
|
131
|
+
/**
|
|
132
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
133
|
+
*
|
|
134
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
135
|
+
* (the element needs to have a width in order to overflow).
|
|
136
|
+
* @default false
|
|
137
|
+
*/
|
|
138
|
+
noWrap: t.bool,
|
|
139
|
+
/**
|
|
140
|
+
* If `true`, the element will be a paragraph element.
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
paragraph: t.bool,
|
|
144
|
+
/**
|
|
145
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
146
|
+
*/
|
|
147
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
148
|
+
/**
|
|
149
|
+
* Applies the theme typography styles.
|
|
150
|
+
* @default 'body1'
|
|
151
|
+
*/
|
|
152
|
+
variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
|
|
153
|
+
/**
|
|
154
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
155
|
+
* For instance, subtitle1 to `<h6>`.
|
|
156
|
+
* If you wish to change that mapping, you can provide your own.
|
|
157
|
+
* Alternatively, you can use the `component` prop.
|
|
158
|
+
* @default {
|
|
159
|
+
* h1: 'h1',
|
|
160
|
+
* h2: 'h2',
|
|
161
|
+
* h3: 'h3',
|
|
162
|
+
* h4: 'h4',
|
|
163
|
+
* h5: 'h5',
|
|
164
|
+
* h6: 'h6',
|
|
165
|
+
* subtitle1: 'h6',
|
|
166
|
+
* subtitle2: 'h6',
|
|
167
|
+
* body1: 'p',
|
|
168
|
+
* body2: 'p',
|
|
169
|
+
* inherit: 'p',
|
|
170
|
+
* }
|
|
171
|
+
*/
|
|
172
|
+
variantMapping: t.object
|
|
173
|
+
});
|
|
174
|
+
const w = b, v = /* @__PURE__ */ d.createContext({});
|
|
175
|
+
process.env.NODE_ENV !== "production" && (v.displayName = "ListContext");
|
|
176
|
+
const F = v;
|
|
177
|
+
export {
|
|
178
|
+
F as L,
|
|
179
|
+
w as T
|
|
180
|
+
};
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { b as C, g as I, s as w, a as n, l as v, u as k, _ as B, c as W, r as E } from "./styled-CWju4EfZ.js";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { c as T, P as i } from "./index-Bs3JCwgu.js";
|
|
4
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
5
|
+
import { L as N } from "./ListContext-DOVwHqy-.js";
|
|
6
|
+
import { B as P } from "./ButtonBase-pxtIu13Q.js";
|
|
7
|
+
import { a as F, u as G } from "./useIsFocusVisible-BxB-Hdhb.js";
|
|
8
|
+
function z(e) {
|
|
9
|
+
return I("MuiDivider", e);
|
|
10
|
+
}
|
|
11
|
+
const H = C("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), D = H, S = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"], q = (e) => {
|
|
12
|
+
const {
|
|
13
|
+
absolute: t,
|
|
14
|
+
children: o,
|
|
15
|
+
classes: a,
|
|
16
|
+
flexItem: d,
|
|
17
|
+
light: s,
|
|
18
|
+
orientation: r,
|
|
19
|
+
textAlign: l,
|
|
20
|
+
variant: c
|
|
21
|
+
} = e;
|
|
22
|
+
return W({
|
|
23
|
+
root: ["root", t && "absolute", c, s && "light", r === "vertical" && "vertical", d && "flexItem", o && "withChildren", o && r === "vertical" && "withChildrenVertical", l === "right" && r !== "vertical" && "textAlignRight", l === "left" && r !== "vertical" && "textAlignLeft"],
|
|
24
|
+
wrapper: ["wrapper", r === "vertical" && "wrapperVertical"]
|
|
25
|
+
}, z, a);
|
|
26
|
+
}, J = w("div", {
|
|
27
|
+
name: "MuiDivider",
|
|
28
|
+
slot: "Root",
|
|
29
|
+
overridesResolver: (e, t) => {
|
|
30
|
+
const {
|
|
31
|
+
ownerState: o
|
|
32
|
+
} = e;
|
|
33
|
+
return [t.root, o.absolute && t.absolute, t[o.variant], o.light && t.light, o.orientation === "vertical" && t.vertical, o.flexItem && t.flexItem, o.children && t.withChildren, o.children && o.orientation === "vertical" && t.withChildrenVertical, o.textAlign === "right" && o.orientation !== "vertical" && t.textAlignRight, o.textAlign === "left" && o.orientation !== "vertical" && t.textAlignLeft];
|
|
34
|
+
}
|
|
35
|
+
})(({
|
|
36
|
+
theme: e,
|
|
37
|
+
ownerState: t
|
|
38
|
+
}) => n({
|
|
39
|
+
margin: 0,
|
|
40
|
+
// Reset browser default style.
|
|
41
|
+
flexShrink: 0,
|
|
42
|
+
borderWidth: 0,
|
|
43
|
+
borderStyle: "solid",
|
|
44
|
+
borderColor: (e.vars || e).palette.divider,
|
|
45
|
+
borderBottomWidth: "thin"
|
|
46
|
+
}, t.absolute && {
|
|
47
|
+
position: "absolute",
|
|
48
|
+
bottom: 0,
|
|
49
|
+
left: 0,
|
|
50
|
+
width: "100%"
|
|
51
|
+
}, t.light && {
|
|
52
|
+
borderColor: e.vars ? `rgba(${e.vars.palette.dividerChannel} / 0.08)` : v(e.palette.divider, 0.08)
|
|
53
|
+
}, t.variant === "inset" && {
|
|
54
|
+
marginLeft: 72
|
|
55
|
+
}, t.variant === "middle" && t.orientation === "horizontal" && {
|
|
56
|
+
marginLeft: e.spacing(2),
|
|
57
|
+
marginRight: e.spacing(2)
|
|
58
|
+
}, t.variant === "middle" && t.orientation === "vertical" && {
|
|
59
|
+
marginTop: e.spacing(1),
|
|
60
|
+
marginBottom: e.spacing(1)
|
|
61
|
+
}, t.orientation === "vertical" && {
|
|
62
|
+
height: "100%",
|
|
63
|
+
borderBottomWidth: 0,
|
|
64
|
+
borderRightWidth: "thin"
|
|
65
|
+
}, t.flexItem && {
|
|
66
|
+
alignSelf: "stretch",
|
|
67
|
+
height: "auto"
|
|
68
|
+
}), ({
|
|
69
|
+
ownerState: e
|
|
70
|
+
}) => n({}, e.children && {
|
|
71
|
+
display: "flex",
|
|
72
|
+
whiteSpace: "nowrap",
|
|
73
|
+
textAlign: "center",
|
|
74
|
+
border: 0,
|
|
75
|
+
"&::before, &::after": {
|
|
76
|
+
content: '""',
|
|
77
|
+
alignSelf: "center"
|
|
78
|
+
}
|
|
79
|
+
}), ({
|
|
80
|
+
theme: e,
|
|
81
|
+
ownerState: t
|
|
82
|
+
}) => n({}, t.children && t.orientation !== "vertical" && {
|
|
83
|
+
"&::before, &::after": {
|
|
84
|
+
width: "100%",
|
|
85
|
+
borderTop: `thin solid ${(e.vars || e).palette.divider}`
|
|
86
|
+
}
|
|
87
|
+
}), ({
|
|
88
|
+
theme: e,
|
|
89
|
+
ownerState: t
|
|
90
|
+
}) => n({}, t.children && t.orientation === "vertical" && {
|
|
91
|
+
flexDirection: "column",
|
|
92
|
+
"&::before, &::after": {
|
|
93
|
+
height: "100%",
|
|
94
|
+
borderLeft: `thin solid ${(e.vars || e).palette.divider}`
|
|
95
|
+
}
|
|
96
|
+
}), ({
|
|
97
|
+
ownerState: e
|
|
98
|
+
}) => n({}, e.textAlign === "right" && e.orientation !== "vertical" && {
|
|
99
|
+
"&::before": {
|
|
100
|
+
width: "90%"
|
|
101
|
+
},
|
|
102
|
+
"&::after": {
|
|
103
|
+
width: "10%"
|
|
104
|
+
}
|
|
105
|
+
}, e.textAlign === "left" && e.orientation !== "vertical" && {
|
|
106
|
+
"&::before": {
|
|
107
|
+
width: "10%"
|
|
108
|
+
},
|
|
109
|
+
"&::after": {
|
|
110
|
+
width: "90%"
|
|
111
|
+
}
|
|
112
|
+
})), K = w("span", {
|
|
113
|
+
name: "MuiDivider",
|
|
114
|
+
slot: "Wrapper",
|
|
115
|
+
overridesResolver: (e, t) => {
|
|
116
|
+
const {
|
|
117
|
+
ownerState: o
|
|
118
|
+
} = e;
|
|
119
|
+
return [t.wrapper, o.orientation === "vertical" && t.wrapperVertical];
|
|
120
|
+
}
|
|
121
|
+
})(({
|
|
122
|
+
theme: e,
|
|
123
|
+
ownerState: t
|
|
124
|
+
}) => n({
|
|
125
|
+
display: "inline-block",
|
|
126
|
+
paddingLeft: `calc(${e.spacing(1)} * 1.2)`,
|
|
127
|
+
paddingRight: `calc(${e.spacing(1)} * 1.2)`
|
|
128
|
+
}, t.orientation === "vertical" && {
|
|
129
|
+
paddingTop: `calc(${e.spacing(1)} * 1.2)`,
|
|
130
|
+
paddingBottom: `calc(${e.spacing(1)} * 1.2)`
|
|
131
|
+
})), R = /* @__PURE__ */ b.forwardRef(function(t, o) {
|
|
132
|
+
const a = k({
|
|
133
|
+
props: t,
|
|
134
|
+
name: "MuiDivider"
|
|
135
|
+
}), {
|
|
136
|
+
absolute: d = !1,
|
|
137
|
+
children: s,
|
|
138
|
+
className: r,
|
|
139
|
+
component: l = s ? "div" : "hr",
|
|
140
|
+
flexItem: c = !1,
|
|
141
|
+
light: m = !1,
|
|
142
|
+
orientation: y = "horizontal",
|
|
143
|
+
role: g = l !== "hr" ? "separator" : void 0,
|
|
144
|
+
textAlign: $ = "center",
|
|
145
|
+
variant: M = "fullWidth"
|
|
146
|
+
} = a, h = B(a, S), p = n({}, a, {
|
|
147
|
+
absolute: d,
|
|
148
|
+
component: l,
|
|
149
|
+
flexItem: c,
|
|
150
|
+
light: m,
|
|
151
|
+
orientation: y,
|
|
152
|
+
role: g,
|
|
153
|
+
textAlign: $,
|
|
154
|
+
variant: M
|
|
155
|
+
}), u = q(p);
|
|
156
|
+
return /* @__PURE__ */ x(J, n({
|
|
157
|
+
as: l,
|
|
158
|
+
className: T(u.root, r),
|
|
159
|
+
role: g,
|
|
160
|
+
ref: o,
|
|
161
|
+
ownerState: p
|
|
162
|
+
}, h, {
|
|
163
|
+
children: s ? /* @__PURE__ */ x(K, {
|
|
164
|
+
className: u.wrapper,
|
|
165
|
+
ownerState: p,
|
|
166
|
+
children: s
|
|
167
|
+
}) : null
|
|
168
|
+
}));
|
|
169
|
+
});
|
|
170
|
+
R.muiSkipListHighlight = !0;
|
|
171
|
+
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
172
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
173
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
174
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
175
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
176
|
+
/**
|
|
177
|
+
* Absolutely position the element.
|
|
178
|
+
* @default false
|
|
179
|
+
*/
|
|
180
|
+
absolute: i.bool,
|
|
181
|
+
/**
|
|
182
|
+
* The content of the component.
|
|
183
|
+
*/
|
|
184
|
+
children: i.node,
|
|
185
|
+
/**
|
|
186
|
+
* Override or extend the styles applied to the component.
|
|
187
|
+
*/
|
|
188
|
+
classes: i.object,
|
|
189
|
+
/**
|
|
190
|
+
* @ignore
|
|
191
|
+
*/
|
|
192
|
+
className: i.string,
|
|
193
|
+
/**
|
|
194
|
+
* The component used for the root node.
|
|
195
|
+
* Either a string to use a HTML element or a component.
|
|
196
|
+
*/
|
|
197
|
+
component: i.elementType,
|
|
198
|
+
/**
|
|
199
|
+
* If `true`, a vertical divider will have the correct height when used in flex container.
|
|
200
|
+
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
|
|
201
|
+
* @default false
|
|
202
|
+
*/
|
|
203
|
+
flexItem: i.bool,
|
|
204
|
+
/**
|
|
205
|
+
* If `true`, the divider will have a lighter color.
|
|
206
|
+
* @default false
|
|
207
|
+
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
208
|
+
*/
|
|
209
|
+
light: i.bool,
|
|
210
|
+
/**
|
|
211
|
+
* The component orientation.
|
|
212
|
+
* @default 'horizontal'
|
|
213
|
+
*/
|
|
214
|
+
orientation: i.oneOf(["horizontal", "vertical"]),
|
|
215
|
+
/**
|
|
216
|
+
* @ignore
|
|
217
|
+
*/
|
|
218
|
+
role: i.string,
|
|
219
|
+
/**
|
|
220
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
221
|
+
*/
|
|
222
|
+
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
|
223
|
+
/**
|
|
224
|
+
* The text alignment.
|
|
225
|
+
* @default 'center'
|
|
226
|
+
*/
|
|
227
|
+
textAlign: i.oneOf(["center", "left", "right"]),
|
|
228
|
+
/**
|
|
229
|
+
* The variant to use.
|
|
230
|
+
* @default 'fullWidth'
|
|
231
|
+
*/
|
|
232
|
+
variant: i.oneOfType([i.oneOf(["fullWidth", "inset", "middle"]), i.string])
|
|
233
|
+
});
|
|
234
|
+
const de = R;
|
|
235
|
+
function pe(e) {
|
|
236
|
+
return I("MuiListItemIcon", e);
|
|
237
|
+
}
|
|
238
|
+
const Q = C("MuiListItemIcon", ["root", "alignItemsFlexStart"]), V = Q;
|
|
239
|
+
function ue(e) {
|
|
240
|
+
return I("MuiListItemText", e);
|
|
241
|
+
}
|
|
242
|
+
const X = C("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), A = X;
|
|
243
|
+
function Y(e) {
|
|
244
|
+
return I("MuiMenuItem", e);
|
|
245
|
+
}
|
|
246
|
+
const Z = C("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), f = Z, ee = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"], te = (e, t) => {
|
|
247
|
+
const {
|
|
248
|
+
ownerState: o
|
|
249
|
+
} = e;
|
|
250
|
+
return [t.root, o.dense && t.dense, o.divider && t.divider, !o.disableGutters && t.gutters];
|
|
251
|
+
}, ie = (e) => {
|
|
252
|
+
const {
|
|
253
|
+
disabled: t,
|
|
254
|
+
dense: o,
|
|
255
|
+
divider: a,
|
|
256
|
+
disableGutters: d,
|
|
257
|
+
selected: s,
|
|
258
|
+
classes: r
|
|
259
|
+
} = e, c = W({
|
|
260
|
+
root: ["root", o && "dense", t && "disabled", !d && "gutters", a && "divider", s && "selected"]
|
|
261
|
+
}, Y, r);
|
|
262
|
+
return n({}, r, c);
|
|
263
|
+
}, oe = w(P, {
|
|
264
|
+
shouldForwardProp: (e) => E(e) || e === "classes",
|
|
265
|
+
name: "MuiMenuItem",
|
|
266
|
+
slot: "Root",
|
|
267
|
+
overridesResolver: te
|
|
268
|
+
})(({
|
|
269
|
+
theme: e,
|
|
270
|
+
ownerState: t
|
|
271
|
+
}) => n({}, e.typography.body1, {
|
|
272
|
+
display: "flex",
|
|
273
|
+
justifyContent: "flex-start",
|
|
274
|
+
alignItems: "center",
|
|
275
|
+
position: "relative",
|
|
276
|
+
textDecoration: "none",
|
|
277
|
+
minHeight: 48,
|
|
278
|
+
paddingTop: 6,
|
|
279
|
+
paddingBottom: 6,
|
|
280
|
+
boxSizing: "border-box",
|
|
281
|
+
whiteSpace: "nowrap"
|
|
282
|
+
}, !t.disableGutters && {
|
|
283
|
+
paddingLeft: 16,
|
|
284
|
+
paddingRight: 16
|
|
285
|
+
}, t.divider && {
|
|
286
|
+
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
287
|
+
backgroundClip: "padding-box"
|
|
288
|
+
}, {
|
|
289
|
+
"&:hover": {
|
|
290
|
+
textDecoration: "none",
|
|
291
|
+
backgroundColor: (e.vars || e).palette.action.hover,
|
|
292
|
+
// Reset on touch devices, it doesn't add specificity
|
|
293
|
+
"@media (hover: none)": {
|
|
294
|
+
backgroundColor: "transparent"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
[`&.${f.selected}`]: {
|
|
298
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : v(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
299
|
+
[`&.${f.focusVisible}`]: {
|
|
300
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : v(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
[`&.${f.selected}:hover`]: {
|
|
304
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : v(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
305
|
+
// Reset on touch devices, it doesn't add specificity
|
|
306
|
+
"@media (hover: none)": {
|
|
307
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : v(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
[`&.${f.focusVisible}`]: {
|
|
311
|
+
backgroundColor: (e.vars || e).palette.action.focus
|
|
312
|
+
},
|
|
313
|
+
[`&.${f.disabled}`]: {
|
|
314
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
315
|
+
},
|
|
316
|
+
[`& + .${D.root}`]: {
|
|
317
|
+
marginTop: e.spacing(1),
|
|
318
|
+
marginBottom: e.spacing(1)
|
|
319
|
+
},
|
|
320
|
+
[`& + .${D.inset}`]: {
|
|
321
|
+
marginLeft: 52
|
|
322
|
+
},
|
|
323
|
+
[`& .${A.root}`]: {
|
|
324
|
+
marginTop: 0,
|
|
325
|
+
marginBottom: 0
|
|
326
|
+
},
|
|
327
|
+
[`& .${A.inset}`]: {
|
|
328
|
+
paddingLeft: 36
|
|
329
|
+
},
|
|
330
|
+
[`& .${V.root}`]: {
|
|
331
|
+
minWidth: 36
|
|
332
|
+
}
|
|
333
|
+
}, !t.dense && {
|
|
334
|
+
[e.breakpoints.up("sm")]: {
|
|
335
|
+
minHeight: "auto"
|
|
336
|
+
}
|
|
337
|
+
}, t.dense && n({
|
|
338
|
+
minHeight: 32,
|
|
339
|
+
// https://m2.material.io/components/menus#specs > Dense
|
|
340
|
+
paddingTop: 4,
|
|
341
|
+
paddingBottom: 4
|
|
342
|
+
}, e.typography.body2, {
|
|
343
|
+
[`& .${V.root} svg`]: {
|
|
344
|
+
fontSize: "1.25rem"
|
|
345
|
+
}
|
|
346
|
+
}))), U = /* @__PURE__ */ b.forwardRef(function(t, o) {
|
|
347
|
+
const a = k({
|
|
348
|
+
props: t,
|
|
349
|
+
name: "MuiMenuItem"
|
|
350
|
+
}), {
|
|
351
|
+
autoFocus: d = !1,
|
|
352
|
+
component: s = "li",
|
|
353
|
+
dense: r = !1,
|
|
354
|
+
divider: l = !1,
|
|
355
|
+
disableGutters: c = !1,
|
|
356
|
+
focusVisibleClassName: m,
|
|
357
|
+
role: y = "menuitem",
|
|
358
|
+
tabIndex: g,
|
|
359
|
+
className: $
|
|
360
|
+
} = a, M = B(a, ee), h = b.useContext(N), p = b.useMemo(() => ({
|
|
361
|
+
dense: r || h.dense || !1,
|
|
362
|
+
disableGutters: c
|
|
363
|
+
}), [h.dense, r, c]), u = b.useRef(null);
|
|
364
|
+
F(() => {
|
|
365
|
+
d && (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."));
|
|
366
|
+
}, [d]);
|
|
367
|
+
const j = n({}, a, {
|
|
368
|
+
dense: p.dense,
|
|
369
|
+
divider: l,
|
|
370
|
+
disableGutters: c
|
|
371
|
+
}), O = ie(a), _ = G(u, o);
|
|
372
|
+
let L;
|
|
373
|
+
return a.disabled || (L = g !== void 0 ? g : -1), /* @__PURE__ */ x(N.Provider, {
|
|
374
|
+
value: p,
|
|
375
|
+
children: /* @__PURE__ */ x(oe, n({
|
|
376
|
+
ref: _,
|
|
377
|
+
role: y,
|
|
378
|
+
tabIndex: L,
|
|
379
|
+
component: s,
|
|
380
|
+
focusVisibleClassName: T(O.focusVisible, m),
|
|
381
|
+
className: T(O.root, $)
|
|
382
|
+
}, M, {
|
|
383
|
+
ownerState: j,
|
|
384
|
+
classes: O
|
|
385
|
+
}))
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
389
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
390
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
391
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
392
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
393
|
+
/**
|
|
394
|
+
* If `true`, the list item is focused during the first mount.
|
|
395
|
+
* Focus will also be triggered if the value changes from false to true.
|
|
396
|
+
* @default false
|
|
397
|
+
*/
|
|
398
|
+
autoFocus: i.bool,
|
|
399
|
+
/**
|
|
400
|
+
* The content of the component.
|
|
401
|
+
*/
|
|
402
|
+
children: i.node,
|
|
403
|
+
/**
|
|
404
|
+
* Override or extend the styles applied to the component.
|
|
405
|
+
*/
|
|
406
|
+
classes: i.object,
|
|
407
|
+
/**
|
|
408
|
+
* @ignore
|
|
409
|
+
*/
|
|
410
|
+
className: i.string,
|
|
411
|
+
/**
|
|
412
|
+
* The component used for the root node.
|
|
413
|
+
* Either a string to use a HTML element or a component.
|
|
414
|
+
*/
|
|
415
|
+
component: i.elementType,
|
|
416
|
+
/**
|
|
417
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
418
|
+
* The prop defaults to the value inherited from the parent Menu component.
|
|
419
|
+
* @default false
|
|
420
|
+
*/
|
|
421
|
+
dense: i.bool,
|
|
422
|
+
/**
|
|
423
|
+
* @ignore
|
|
424
|
+
*/
|
|
425
|
+
disabled: i.bool,
|
|
426
|
+
/**
|
|
427
|
+
* If `true`, the left and right padding is removed.
|
|
428
|
+
* @default false
|
|
429
|
+
*/
|
|
430
|
+
disableGutters: i.bool,
|
|
431
|
+
/**
|
|
432
|
+
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
433
|
+
* @default false
|
|
434
|
+
*/
|
|
435
|
+
divider: i.bool,
|
|
436
|
+
/**
|
|
437
|
+
* This prop can help identify which element has keyboard focus.
|
|
438
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
439
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
440
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
441
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
442
|
+
* if needed.
|
|
443
|
+
*/
|
|
444
|
+
focusVisibleClassName: i.string,
|
|
445
|
+
/**
|
|
446
|
+
* @ignore
|
|
447
|
+
*/
|
|
448
|
+
role: i.string,
|
|
449
|
+
/**
|
|
450
|
+
* If `true`, the component is selected.
|
|
451
|
+
* @default false
|
|
452
|
+
*/
|
|
453
|
+
selected: i.bool,
|
|
454
|
+
/**
|
|
455
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
456
|
+
*/
|
|
457
|
+
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
|
458
|
+
/**
|
|
459
|
+
* @default 0
|
|
460
|
+
*/
|
|
461
|
+
tabIndex: i.number
|
|
462
|
+
});
|
|
463
|
+
const ge = U;
|
|
464
|
+
export {
|
|
465
|
+
de as D,
|
|
466
|
+
ge as M,
|
|
467
|
+
ue as a,
|
|
468
|
+
pe as g,
|
|
469
|
+
A as l
|
|
470
|
+
};
|