@hybridcore/ui 1.3.7 → 1.4.0
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/AccordionDetails-CGs6GZQK.js +454 -0
- package/dist/Add-eepk2WTM.js +379 -0
- package/dist/Box-BPyg-Ybm.js +70 -0
- package/dist/Button-DLwB_sKd.js +354 -0
- package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
- package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
- package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
- package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
- package/dist/Delete-OHEw9lDi.js +22 -0
- package/dist/DialogContent-CxOSq6h9.js +519 -0
- package/dist/FormControlLabel-D9KFjcIx.js +193 -0
- package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
- package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
- package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
- package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
- package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
- package/dist/ListItem-CZbZ91vp.js +428 -0
- package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
- package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
- package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
- package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
- package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
- package/dist/Tabs-BzelDJKy.js +787 -0
- package/dist/TextField-D87qTh1k.js +457 -0
- package/dist/Typography-Bm7PFqUT.js +176 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +20 -466
- package/dist/components/confirm/dialog.js +8 -149
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +191 -604
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/data-security-selectors/security-level/index.js +42 -40
- package/dist/components/date-time-picker/index.js +18 -19
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +16 -16
- package/dist/components/geometry-picker/geometry/index.js +35 -35
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/geometry-picker/kml/index.js +14 -14
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +38 -37
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
- package/dist/components/geometry-picker/parser/logic.js +33 -32
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styled.js +0 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
- package/dist/components/instance-form/components/variable/index.js +19 -0
- package/dist/components/instance-form/components/variables/index.js +40 -0
- package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
- package/dist/components/instance-hierarchy-table/index.js +58 -0
- package/dist/components/instance-hierarchy-table/styled.js +29 -0
- package/dist/components/instance-table/index.js +125 -0
- package/dist/components/instance-table/styled.js +13 -0
- package/dist/components/map/helpers/ol.js +1 -1
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/property-mapping/index.js +558 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
- package/dist/components/range-selector/components/date-range/index.js +9 -0
- package/dist/components/range-selector/components/geometry-range/index.js +26 -0
- package/dist/components/range-selector/components/number-range/index.js +86 -0
- package/dist/components/range-selector/components/string-range/index.js +31 -0
- package/dist/components/range-selector/index.js +59 -0
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/appleTabs.style.js +55 -0
- package/dist/components/tabs/index.js +93 -0
- package/dist/components/tabs/tab-panel.js +18 -0
- package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
- package/dist/components/template-form/components/property-list/index.js +72 -0
- package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
- package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
- package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
- package/dist/components/template-form/components/property-list/types.js +8 -0
- package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
- package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
- package/dist/components/template-form/components/select-icon/index.js +186 -0
- package/dist/components/template-form/components/select-icon/styled.js +76 -0
- package/dist/components/template-form/index.js +338 -0
- package/dist/components/template-property-filters/property.js +48 -46
- package/dist/components/tree-select/index.js +16 -15
- package/dist/components/tree-select/styled.js +2 -2
- package/dist/components/treeview-filter/index.js +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +18 -17
- package/dist/constants/index.js +41 -0
- package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
- package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
- package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
- package/dist/dialog-v5-nL5yy.js +153 -0
- package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
- package/dist/extendSxProp-qqdkfHzS.js +30 -0
- package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
- package/dist/index-C1fczHEW.js +11042 -0
- package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
- package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
- package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
- package/dist/main.d.ts +561 -78
- package/dist/main.js +157 -157
- package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
- package/dist/property-list-form-BfP9gzSo.js +391 -0
- package/dist/requirePropFactory-BjhhI-AW.js +18 -0
- package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
- package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
- package/dist/utils/ontology.js +52 -30
- package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
- package/package.json +2 -1
- package/dist/DialogContent-BCYm_d1s.js +0 -864
- package/dist/FormControlLabel-DENNVXWL.js +0 -639
- package/dist/Typography-Dg-ROiTA.js +0 -201
- package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
- package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
- package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
- package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
import { a as se, _ as b } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { P as l, r as Ke } from "./createStyled-BzvgQjjR.js";
|
|
4
|
+
import { g as Be, u as Ee, c as L, a as Me } from "./useThemeProps-uYx_RkOH.js";
|
|
5
|
+
import { g as Ne, s as O } from "./styled-LNCprp4n.js";
|
|
6
|
+
import { u as Re } from "./useTheme-DBiahn6p.js";
|
|
7
|
+
import { jsx as y, jsxs as ve } from "react/jsx-runtime";
|
|
8
|
+
import { o as ze } from "./ownerWindow-niciwP7I.js";
|
|
9
|
+
import { d as ne } from "./debounce-46wSf_lW.js";
|
|
10
|
+
import { B as qe, b as re, r as Ge } from "./ButtonBase-D0qccOVb.js";
|
|
11
|
+
import { c as Ie } from "./createSvgIcon-DEXLbMwp.js";
|
|
12
|
+
import { o as Je } from "./ownerDocument-CUrv0DIK.js";
|
|
13
|
+
let I;
|
|
14
|
+
function Le() {
|
|
15
|
+
if (I)
|
|
16
|
+
return I;
|
|
17
|
+
const e = document.createElement("div"), t = document.createElement("div");
|
|
18
|
+
return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), I = "reverse", e.scrollLeft > 0 ? I = "default" : (e.scrollLeft = 1, e.scrollLeft === 0 && (I = "negative")), document.body.removeChild(e), I;
|
|
19
|
+
}
|
|
20
|
+
function Se(e, t) {
|
|
21
|
+
const s = e.scrollLeft;
|
|
22
|
+
if (t !== "rtl")
|
|
23
|
+
return s;
|
|
24
|
+
switch (Le()) {
|
|
25
|
+
case "negative":
|
|
26
|
+
return e.scrollWidth - e.clientWidth + s;
|
|
27
|
+
case "reverse":
|
|
28
|
+
return e.scrollWidth - e.clientWidth - s;
|
|
29
|
+
default:
|
|
30
|
+
return s;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function Qe(e) {
|
|
34
|
+
return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
|
|
35
|
+
}
|
|
36
|
+
function Ze(e, t, s, c = {}, a = () => {
|
|
37
|
+
}) {
|
|
38
|
+
const {
|
|
39
|
+
ease: u = Qe,
|
|
40
|
+
duration: p = 300
|
|
41
|
+
// standard
|
|
42
|
+
} = c;
|
|
43
|
+
let m = null;
|
|
44
|
+
const v = t[e];
|
|
45
|
+
let w = !1;
|
|
46
|
+
const M = () => {
|
|
47
|
+
w = !0;
|
|
48
|
+
}, _ = (W) => {
|
|
49
|
+
if (w) {
|
|
50
|
+
a(new Error("Animation cancelled"));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
m === null && (m = W);
|
|
54
|
+
const k = Math.min(1, (W - m) / p);
|
|
55
|
+
if (t[e] = u(k) * (s - v) + v, k >= 1) {
|
|
56
|
+
requestAnimationFrame(() => {
|
|
57
|
+
a(null);
|
|
58
|
+
});
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
requestAnimationFrame(_);
|
|
62
|
+
};
|
|
63
|
+
return v === s ? (a(new Error("Element already at target position")), M) : (requestAnimationFrame(_), M);
|
|
64
|
+
}
|
|
65
|
+
const et = ["onChange"], tt = {
|
|
66
|
+
width: 99,
|
|
67
|
+
height: 99,
|
|
68
|
+
position: "absolute",
|
|
69
|
+
top: -9999,
|
|
70
|
+
overflow: "scroll"
|
|
71
|
+
};
|
|
72
|
+
function Oe(e) {
|
|
73
|
+
const {
|
|
74
|
+
onChange: t
|
|
75
|
+
} = e, s = se(e, et), c = d.useRef(), a = d.useRef(null), u = () => {
|
|
76
|
+
c.current = a.current.offsetHeight - a.current.clientHeight;
|
|
77
|
+
};
|
|
78
|
+
return d.useEffect(() => {
|
|
79
|
+
const p = ne(() => {
|
|
80
|
+
const v = c.current;
|
|
81
|
+
u(), v !== c.current && t(c.current);
|
|
82
|
+
}), m = ze(a.current);
|
|
83
|
+
return m.addEventListener("resize", p), () => {
|
|
84
|
+
p.clear(), m.removeEventListener("resize", p);
|
|
85
|
+
};
|
|
86
|
+
}, [t]), d.useEffect(() => {
|
|
87
|
+
u(), t(c.current);
|
|
88
|
+
}, [t]), /* @__PURE__ */ y("div", b({
|
|
89
|
+
style: tt,
|
|
90
|
+
ref: a
|
|
91
|
+
}, s));
|
|
92
|
+
}
|
|
93
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
94
|
+
onChange: l.func.isRequired
|
|
95
|
+
});
|
|
96
|
+
const ot = Ie(/* @__PURE__ */ y("path", {
|
|
97
|
+
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
98
|
+
}), "KeyboardArrowLeft"), rt = Ie(/* @__PURE__ */ y("path", {
|
|
99
|
+
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
100
|
+
}), "KeyboardArrowRight");
|
|
101
|
+
function lt(e) {
|
|
102
|
+
return Ne("MuiTabScrollButton", e);
|
|
103
|
+
}
|
|
104
|
+
const nt = Be("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]);
|
|
105
|
+
var ye, ge;
|
|
106
|
+
const st = ["className", "direction", "orientation", "disabled"], it = (e) => {
|
|
107
|
+
const {
|
|
108
|
+
classes: t,
|
|
109
|
+
orientation: s,
|
|
110
|
+
disabled: c
|
|
111
|
+
} = e;
|
|
112
|
+
return Me({
|
|
113
|
+
root: ["root", s, c && "disabled"]
|
|
114
|
+
}, lt, t);
|
|
115
|
+
}, at = O(qe, {
|
|
116
|
+
name: "MuiTabScrollButton",
|
|
117
|
+
slot: "Root",
|
|
118
|
+
overridesResolver: (e, t) => {
|
|
119
|
+
const {
|
|
120
|
+
ownerState: s
|
|
121
|
+
} = e;
|
|
122
|
+
return [t.root, s.orientation && t[s.orientation]];
|
|
123
|
+
}
|
|
124
|
+
})(({
|
|
125
|
+
ownerState: e
|
|
126
|
+
}) => b({
|
|
127
|
+
width: 40,
|
|
128
|
+
flexShrink: 0,
|
|
129
|
+
opacity: 0.8,
|
|
130
|
+
[`&.${nt.disabled}`]: {
|
|
131
|
+
opacity: 0
|
|
132
|
+
}
|
|
133
|
+
}, e.orientation === "vertical" && {
|
|
134
|
+
width: "100%",
|
|
135
|
+
height: 40,
|
|
136
|
+
"& svg": {
|
|
137
|
+
transform: `rotate(${e.isRtl ? -90 : 90}deg)`
|
|
138
|
+
}
|
|
139
|
+
})), We = /* @__PURE__ */ d.forwardRef(function(t, s) {
|
|
140
|
+
const c = Ee({
|
|
141
|
+
props: t,
|
|
142
|
+
name: "MuiTabScrollButton"
|
|
143
|
+
}), {
|
|
144
|
+
className: a,
|
|
145
|
+
direction: u
|
|
146
|
+
} = c, p = se(c, st), v = Re().direction === "rtl", w = b({
|
|
147
|
+
isRtl: v
|
|
148
|
+
}, c), M = it(w);
|
|
149
|
+
return /* @__PURE__ */ y(at, b({
|
|
150
|
+
component: "div",
|
|
151
|
+
className: L(M.root, a),
|
|
152
|
+
ref: s,
|
|
153
|
+
role: null,
|
|
154
|
+
ownerState: w,
|
|
155
|
+
tabIndex: null
|
|
156
|
+
}, p, {
|
|
157
|
+
children: u === "left" ? ye || (ye = /* @__PURE__ */ y(ot, {
|
|
158
|
+
fontSize: "small"
|
|
159
|
+
})) : ge || (ge = /* @__PURE__ */ y(rt, {
|
|
160
|
+
fontSize: "small"
|
|
161
|
+
}))
|
|
162
|
+
}));
|
|
163
|
+
});
|
|
164
|
+
process.env.NODE_ENV !== "production" && (We.propTypes = {
|
|
165
|
+
// ----------------------------- Warning --------------------------------
|
|
166
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
167
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
168
|
+
// ----------------------------------------------------------------------
|
|
169
|
+
/**
|
|
170
|
+
* The content of the component.
|
|
171
|
+
*/
|
|
172
|
+
children: l.node,
|
|
173
|
+
/**
|
|
174
|
+
* Override or extend the styles applied to the component.
|
|
175
|
+
*/
|
|
176
|
+
classes: l.object,
|
|
177
|
+
/**
|
|
178
|
+
* @ignore
|
|
179
|
+
*/
|
|
180
|
+
className: l.string,
|
|
181
|
+
/**
|
|
182
|
+
* The direction the button should indicate.
|
|
183
|
+
*/
|
|
184
|
+
direction: l.oneOf(["left", "right"]).isRequired,
|
|
185
|
+
/**
|
|
186
|
+
* If `true`, the component is disabled.
|
|
187
|
+
* @default false
|
|
188
|
+
*/
|
|
189
|
+
disabled: l.bool,
|
|
190
|
+
/**
|
|
191
|
+
* The component orientation (layout flow direction).
|
|
192
|
+
*/
|
|
193
|
+
orientation: l.oneOf(["horizontal", "vertical"]).isRequired,
|
|
194
|
+
/**
|
|
195
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
196
|
+
*/
|
|
197
|
+
sx: l.oneOfType([l.arrayOf(l.oneOfType([l.func, l.object, l.bool])), l.func, l.object])
|
|
198
|
+
});
|
|
199
|
+
function ct(e) {
|
|
200
|
+
return Ne("MuiTabs", e);
|
|
201
|
+
}
|
|
202
|
+
const le = Be("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), dt = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], we = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, Te = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, q = (e, t, s) => {
|
|
203
|
+
let c = !1, a = s(e, t);
|
|
204
|
+
for (; a; ) {
|
|
205
|
+
if (a === e.firstChild) {
|
|
206
|
+
if (c)
|
|
207
|
+
return;
|
|
208
|
+
c = !0;
|
|
209
|
+
}
|
|
210
|
+
const u = a.disabled || a.getAttribute("aria-disabled") === "true";
|
|
211
|
+
if (!a.hasAttribute("tabindex") || u)
|
|
212
|
+
a = s(e, a);
|
|
213
|
+
else {
|
|
214
|
+
a.focus();
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}, ut = (e) => {
|
|
219
|
+
const {
|
|
220
|
+
vertical: t,
|
|
221
|
+
fixed: s,
|
|
222
|
+
hideScrollbar: c,
|
|
223
|
+
scrollableX: a,
|
|
224
|
+
scrollableY: u,
|
|
225
|
+
centered: p,
|
|
226
|
+
scrollButtonsHideMobile: m,
|
|
227
|
+
classes: v
|
|
228
|
+
} = e;
|
|
229
|
+
return Me({
|
|
230
|
+
root: ["root", t && "vertical"],
|
|
231
|
+
scroller: ["scroller", s && "fixed", c && "hideScrollbar", a && "scrollableX", u && "scrollableY"],
|
|
232
|
+
flexContainer: ["flexContainer", t && "flexContainerVertical", p && "centered"],
|
|
233
|
+
indicator: ["indicator"],
|
|
234
|
+
scrollButtons: ["scrollButtons", m && "scrollButtonsHideMobile"],
|
|
235
|
+
scrollableX: [a && "scrollableX"],
|
|
236
|
+
hideScrollbar: [c && "hideScrollbar"]
|
|
237
|
+
}, ct, v);
|
|
238
|
+
}, ft = O("div", {
|
|
239
|
+
name: "MuiTabs",
|
|
240
|
+
slot: "Root",
|
|
241
|
+
overridesResolver: (e, t) => {
|
|
242
|
+
const {
|
|
243
|
+
ownerState: s
|
|
244
|
+
} = e;
|
|
245
|
+
return [{
|
|
246
|
+
[`& .${le.scrollButtons}`]: t.scrollButtons
|
|
247
|
+
}, {
|
|
248
|
+
[`& .${le.scrollButtons}`]: s.scrollButtonsHideMobile && t.scrollButtonsHideMobile
|
|
249
|
+
}, t.root, s.vertical && t.vertical];
|
|
250
|
+
}
|
|
251
|
+
})(({
|
|
252
|
+
ownerState: e,
|
|
253
|
+
theme: t
|
|
254
|
+
}) => b({
|
|
255
|
+
overflow: "hidden",
|
|
256
|
+
minHeight: 48,
|
|
257
|
+
// Add iOS momentum scrolling for iOS < 13.0
|
|
258
|
+
WebkitOverflowScrolling: "touch",
|
|
259
|
+
display: "flex"
|
|
260
|
+
}, e.vertical && {
|
|
261
|
+
flexDirection: "column"
|
|
262
|
+
}, e.scrollButtonsHideMobile && {
|
|
263
|
+
[`& .${le.scrollButtons}`]: {
|
|
264
|
+
[t.breakpoints.down("sm")]: {
|
|
265
|
+
display: "none"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
})), bt = O("div", {
|
|
269
|
+
name: "MuiTabs",
|
|
270
|
+
slot: "Scroller",
|
|
271
|
+
overridesResolver: (e, t) => {
|
|
272
|
+
const {
|
|
273
|
+
ownerState: s
|
|
274
|
+
} = e;
|
|
275
|
+
return [t.scroller, s.fixed && t.fixed, s.hideScrollbar && t.hideScrollbar, s.scrollableX && t.scrollableX, s.scrollableY && t.scrollableY];
|
|
276
|
+
}
|
|
277
|
+
})(({
|
|
278
|
+
ownerState: e
|
|
279
|
+
}) => b({
|
|
280
|
+
position: "relative",
|
|
281
|
+
display: "inline-block",
|
|
282
|
+
flex: "1 1 auto",
|
|
283
|
+
whiteSpace: "nowrap"
|
|
284
|
+
}, e.fixed && {
|
|
285
|
+
overflowX: "hidden",
|
|
286
|
+
width: "100%"
|
|
287
|
+
}, e.hideScrollbar && {
|
|
288
|
+
// Hide dimensionless scrollbar on macOS
|
|
289
|
+
scrollbarWidth: "none",
|
|
290
|
+
// Firefox
|
|
291
|
+
"&::-webkit-scrollbar": {
|
|
292
|
+
display: "none"
|
|
293
|
+
// Safari + Chrome
|
|
294
|
+
}
|
|
295
|
+
}, e.scrollableX && {
|
|
296
|
+
overflowX: "auto",
|
|
297
|
+
overflowY: "hidden"
|
|
298
|
+
}, e.scrollableY && {
|
|
299
|
+
overflowY: "auto",
|
|
300
|
+
overflowX: "hidden"
|
|
301
|
+
})), ht = O("div", {
|
|
302
|
+
name: "MuiTabs",
|
|
303
|
+
slot: "FlexContainer",
|
|
304
|
+
overridesResolver: (e, t) => {
|
|
305
|
+
const {
|
|
306
|
+
ownerState: s
|
|
307
|
+
} = e;
|
|
308
|
+
return [t.flexContainer, s.vertical && t.flexContainerVertical, s.centered && t.centered];
|
|
309
|
+
}
|
|
310
|
+
})(({
|
|
311
|
+
ownerState: e
|
|
312
|
+
}) => b({
|
|
313
|
+
display: "flex"
|
|
314
|
+
}, e.vertical && {
|
|
315
|
+
flexDirection: "column"
|
|
316
|
+
}, e.centered && {
|
|
317
|
+
justifyContent: "center"
|
|
318
|
+
})), pt = O("span", {
|
|
319
|
+
name: "MuiTabs",
|
|
320
|
+
slot: "Indicator",
|
|
321
|
+
overridesResolver: (e, t) => t.indicator
|
|
322
|
+
})(({
|
|
323
|
+
ownerState: e,
|
|
324
|
+
theme: t
|
|
325
|
+
}) => b({
|
|
326
|
+
position: "absolute",
|
|
327
|
+
height: 2,
|
|
328
|
+
bottom: 0,
|
|
329
|
+
width: "100%",
|
|
330
|
+
transition: t.transitions.create()
|
|
331
|
+
}, e.indicatorColor === "primary" && {
|
|
332
|
+
backgroundColor: (t.vars || t).palette.primary.main
|
|
333
|
+
}, e.indicatorColor === "secondary" && {
|
|
334
|
+
backgroundColor: (t.vars || t).palette.secondary.main
|
|
335
|
+
}, e.vertical && {
|
|
336
|
+
height: "100%",
|
|
337
|
+
width: 2,
|
|
338
|
+
right: 0
|
|
339
|
+
})), mt = O(Oe, {
|
|
340
|
+
name: "MuiTabs",
|
|
341
|
+
slot: "ScrollbarSize"
|
|
342
|
+
})({
|
|
343
|
+
overflowX: "auto",
|
|
344
|
+
overflowY: "hidden",
|
|
345
|
+
// Hide dimensionless scrollbar on macOS
|
|
346
|
+
scrollbarWidth: "none",
|
|
347
|
+
// Firefox
|
|
348
|
+
"&::-webkit-scrollbar": {
|
|
349
|
+
display: "none"
|
|
350
|
+
// Safari + Chrome
|
|
351
|
+
}
|
|
352
|
+
}), Ce = {};
|
|
353
|
+
let xe = !1;
|
|
354
|
+
const vt = /* @__PURE__ */ d.forwardRef(function(t, s) {
|
|
355
|
+
const c = Ee({
|
|
356
|
+
props: t,
|
|
357
|
+
name: "MuiTabs"
|
|
358
|
+
}), a = Re(), u = a.direction === "rtl", {
|
|
359
|
+
"aria-label": p,
|
|
360
|
+
"aria-labelledby": m,
|
|
361
|
+
action: v,
|
|
362
|
+
centered: w = !1,
|
|
363
|
+
children: M,
|
|
364
|
+
className: _,
|
|
365
|
+
component: W = "div",
|
|
366
|
+
allowScrollButtonsMobile: k = !1,
|
|
367
|
+
indicatorColor: ke = "primary",
|
|
368
|
+
onChange: Ae,
|
|
369
|
+
orientation: C = "horizontal",
|
|
370
|
+
ScrollButtonComponent: ie = We,
|
|
371
|
+
scrollButtons: V = "auto",
|
|
372
|
+
selectionFollowsFocus: De,
|
|
373
|
+
TabIndicatorProps: G = {},
|
|
374
|
+
TabScrollButtonProps: P = {},
|
|
375
|
+
textColor: ae = "primary",
|
|
376
|
+
value: N,
|
|
377
|
+
variant: J = "standard",
|
|
378
|
+
visibleScrollbar: Q = !1
|
|
379
|
+
} = c, He = se(c, dt), T = J === "scrollable", h = C === "vertical", A = h ? "scrollTop" : "scrollLeft", X = h ? "top" : "left", Y = h ? "bottom" : "right", Z = h ? "clientHeight" : "clientWidth", D = h ? "height" : "width", H = b({}, c, {
|
|
380
|
+
component: W,
|
|
381
|
+
allowScrollButtonsMobile: k,
|
|
382
|
+
indicatorColor: ke,
|
|
383
|
+
orientation: C,
|
|
384
|
+
vertical: h,
|
|
385
|
+
scrollButtons: V,
|
|
386
|
+
textColor: ae,
|
|
387
|
+
variant: J,
|
|
388
|
+
visibleScrollbar: Q,
|
|
389
|
+
fixed: !T,
|
|
390
|
+
hideScrollbar: T && !Q,
|
|
391
|
+
scrollableX: T && !h,
|
|
392
|
+
scrollableY: T && h,
|
|
393
|
+
centered: w && !T,
|
|
394
|
+
scrollButtonsHideMobile: !k
|
|
395
|
+
}), x = ut(H);
|
|
396
|
+
process.env.NODE_ENV !== "production" && w && T && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
397
|
+
const [ce, je] = d.useState(!1), [B, de] = d.useState(Ce), [R, Fe] = d.useState({
|
|
398
|
+
start: !1,
|
|
399
|
+
end: !1
|
|
400
|
+
}), [ue, _e] = d.useState({
|
|
401
|
+
overflow: "hidden",
|
|
402
|
+
scrollbarWidth: 0
|
|
403
|
+
}), $ = /* @__PURE__ */ new Map(), g = d.useRef(null), j = d.useRef(null), fe = () => {
|
|
404
|
+
const o = g.current;
|
|
405
|
+
let r;
|
|
406
|
+
if (o) {
|
|
407
|
+
const i = o.getBoundingClientRect();
|
|
408
|
+
r = {
|
|
409
|
+
clientWidth: o.clientWidth,
|
|
410
|
+
scrollLeft: o.scrollLeft,
|
|
411
|
+
scrollTop: o.scrollTop,
|
|
412
|
+
scrollLeftNormalized: Se(o, a.direction),
|
|
413
|
+
scrollWidth: o.scrollWidth,
|
|
414
|
+
top: i.top,
|
|
415
|
+
bottom: i.bottom,
|
|
416
|
+
left: i.left,
|
|
417
|
+
right: i.right
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
let n;
|
|
421
|
+
if (o && N !== !1) {
|
|
422
|
+
const i = j.current.children;
|
|
423
|
+
if (i.length > 0) {
|
|
424
|
+
const f = i[$.get(N)];
|
|
425
|
+
process.env.NODE_ENV !== "production" && (f || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${N}".`, $.keys ? `You can provide one of the following values: ${Array.from($.keys()).join(", ")}.` : null].join(`
|
|
426
|
+
`))), n = f ? f.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !xe && n && n.width === 0 && n.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
427
|
+
r.clientWidth !== 0 && (r = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${N}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
428
|
+
`)), xe = !0);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
return {
|
|
432
|
+
tabsMeta: r,
|
|
433
|
+
tabMeta: n
|
|
434
|
+
};
|
|
435
|
+
}, F = re(() => {
|
|
436
|
+
const {
|
|
437
|
+
tabsMeta: o,
|
|
438
|
+
tabMeta: r
|
|
439
|
+
} = fe();
|
|
440
|
+
let n = 0, i;
|
|
441
|
+
if (h)
|
|
442
|
+
i = "top", r && o && (n = r.top - o.top + o.scrollTop);
|
|
443
|
+
else if (i = u ? "right" : "left", r && o) {
|
|
444
|
+
const S = u ? o.scrollLeftNormalized + o.clientWidth - o.scrollWidth : o.scrollLeft;
|
|
445
|
+
n = (u ? -1 : 1) * (r[i] - o[i] + S);
|
|
446
|
+
}
|
|
447
|
+
const f = {
|
|
448
|
+
[i]: n,
|
|
449
|
+
// May be wrong until the font is loaded.
|
|
450
|
+
[D]: r ? r[D] : 0
|
|
451
|
+
};
|
|
452
|
+
if (isNaN(B[i]) || isNaN(B[D]))
|
|
453
|
+
de(f);
|
|
454
|
+
else {
|
|
455
|
+
const S = Math.abs(B[i] - f[i]), z = Math.abs(B[D] - f[D]);
|
|
456
|
+
(S >= 1 || z >= 1) && de(f);
|
|
457
|
+
}
|
|
458
|
+
}), ee = (o, {
|
|
459
|
+
animation: r = !0
|
|
460
|
+
} = {}) => {
|
|
461
|
+
r ? Ze(A, g.current, o, {
|
|
462
|
+
duration: a.transitions.duration.standard
|
|
463
|
+
}) : g.current[A] = o;
|
|
464
|
+
}, be = (o) => {
|
|
465
|
+
let r = g.current[A];
|
|
466
|
+
h ? r += o : (r += o * (u ? -1 : 1), r *= u && Le() === "reverse" ? -1 : 1), ee(r);
|
|
467
|
+
}, he = () => {
|
|
468
|
+
const o = g.current[Z];
|
|
469
|
+
let r = 0;
|
|
470
|
+
const n = Array.from(j.current.children);
|
|
471
|
+
for (let i = 0; i < n.length; i += 1) {
|
|
472
|
+
const f = n[i];
|
|
473
|
+
if (r + f[Z] > o) {
|
|
474
|
+
i === 0 && (r = o);
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
r += f[Z];
|
|
478
|
+
}
|
|
479
|
+
return r;
|
|
480
|
+
}, Ve = () => {
|
|
481
|
+
be(-1 * he());
|
|
482
|
+
}, Pe = () => {
|
|
483
|
+
be(he());
|
|
484
|
+
}, Xe = d.useCallback((o) => {
|
|
485
|
+
_e({
|
|
486
|
+
overflow: null,
|
|
487
|
+
scrollbarWidth: o
|
|
488
|
+
});
|
|
489
|
+
}, []), Ye = () => {
|
|
490
|
+
const o = {};
|
|
491
|
+
o.scrollbarSizeListener = T ? /* @__PURE__ */ y(mt, {
|
|
492
|
+
onChange: Xe,
|
|
493
|
+
className: L(x.scrollableX, x.hideScrollbar)
|
|
494
|
+
}) : null;
|
|
495
|
+
const r = R.start || R.end, n = T && (V === "auto" && r || V === !0);
|
|
496
|
+
return o.scrollButtonStart = n ? /* @__PURE__ */ y(ie, b({
|
|
497
|
+
orientation: C,
|
|
498
|
+
direction: u ? "right" : "left",
|
|
499
|
+
onClick: Ve,
|
|
500
|
+
disabled: !R.start
|
|
501
|
+
}, P, {
|
|
502
|
+
className: L(x.scrollButtons, P.className)
|
|
503
|
+
})) : null, o.scrollButtonEnd = n ? /* @__PURE__ */ y(ie, b({
|
|
504
|
+
orientation: C,
|
|
505
|
+
direction: u ? "left" : "right",
|
|
506
|
+
onClick: Pe,
|
|
507
|
+
disabled: !R.end
|
|
508
|
+
}, P, {
|
|
509
|
+
className: L(x.scrollButtons, P.className)
|
|
510
|
+
})) : null, o;
|
|
511
|
+
}, pe = re((o) => {
|
|
512
|
+
const {
|
|
513
|
+
tabsMeta: r,
|
|
514
|
+
tabMeta: n
|
|
515
|
+
} = fe();
|
|
516
|
+
if (!(!n || !r)) {
|
|
517
|
+
if (n[X] < r[X]) {
|
|
518
|
+
const i = r[A] + (n[X] - r[X]);
|
|
519
|
+
ee(i, {
|
|
520
|
+
animation: o
|
|
521
|
+
});
|
|
522
|
+
} else if (n[Y] > r[Y]) {
|
|
523
|
+
const i = r[A] + (n[Y] - r[Y]);
|
|
524
|
+
ee(i, {
|
|
525
|
+
animation: o
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}), E = re(() => {
|
|
530
|
+
if (T && V !== !1) {
|
|
531
|
+
const {
|
|
532
|
+
scrollTop: o,
|
|
533
|
+
scrollHeight: r,
|
|
534
|
+
clientHeight: n,
|
|
535
|
+
scrollWidth: i,
|
|
536
|
+
clientWidth: f
|
|
537
|
+
} = g.current;
|
|
538
|
+
let S, z;
|
|
539
|
+
if (h)
|
|
540
|
+
S = o > 1, z = o < r - n - 1;
|
|
541
|
+
else {
|
|
542
|
+
const K = Se(g.current, a.direction);
|
|
543
|
+
S = u ? K < i - f - 1 : K > 1, z = u ? K > 1 : K < i - f - 1;
|
|
544
|
+
}
|
|
545
|
+
(S !== R.start || z !== R.end) && Fe({
|
|
546
|
+
start: S,
|
|
547
|
+
end: z
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
d.useEffect(() => {
|
|
552
|
+
const o = ne(() => {
|
|
553
|
+
g.current && (F(), E());
|
|
554
|
+
}), r = ze(g.current);
|
|
555
|
+
r.addEventListener("resize", o);
|
|
556
|
+
let n;
|
|
557
|
+
return typeof ResizeObserver < "u" && (n = new ResizeObserver(o), Array.from(j.current.children).forEach((i) => {
|
|
558
|
+
n.observe(i);
|
|
559
|
+
})), () => {
|
|
560
|
+
o.clear(), r.removeEventListener("resize", o), n && n.disconnect();
|
|
561
|
+
};
|
|
562
|
+
}, [F, E]);
|
|
563
|
+
const te = d.useMemo(() => ne(() => {
|
|
564
|
+
E();
|
|
565
|
+
}), [E]);
|
|
566
|
+
d.useEffect(() => () => {
|
|
567
|
+
te.clear();
|
|
568
|
+
}, [te]), d.useEffect(() => {
|
|
569
|
+
je(!0);
|
|
570
|
+
}, []), d.useEffect(() => {
|
|
571
|
+
F(), E();
|
|
572
|
+
}), d.useEffect(() => {
|
|
573
|
+
pe(Ce !== B);
|
|
574
|
+
}, [pe, B]), d.useImperativeHandle(v, () => ({
|
|
575
|
+
updateIndicator: F,
|
|
576
|
+
updateScrollButtons: E
|
|
577
|
+
}), [F, E]);
|
|
578
|
+
const me = /* @__PURE__ */ y(pt, b({}, G, {
|
|
579
|
+
className: L(x.indicator, G.className),
|
|
580
|
+
ownerState: H,
|
|
581
|
+
style: b({}, B, G.style)
|
|
582
|
+
}));
|
|
583
|
+
let U = 0;
|
|
584
|
+
const $e = d.Children.map(M, (o) => {
|
|
585
|
+
if (!/* @__PURE__ */ d.isValidElement(o))
|
|
586
|
+
return null;
|
|
587
|
+
process.env.NODE_ENV !== "production" && Ke.isFragment(o) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
588
|
+
`));
|
|
589
|
+
const r = o.props.value === void 0 ? U : o.props.value;
|
|
590
|
+
$.set(r, U);
|
|
591
|
+
const n = r === N;
|
|
592
|
+
return U += 1, /* @__PURE__ */ d.cloneElement(o, b({
|
|
593
|
+
fullWidth: J === "fullWidth",
|
|
594
|
+
indicator: n && !ce && me,
|
|
595
|
+
selected: n,
|
|
596
|
+
selectionFollowsFocus: De,
|
|
597
|
+
onChange: Ae,
|
|
598
|
+
textColor: ae,
|
|
599
|
+
value: r
|
|
600
|
+
}, U === 1 && N === !1 && !o.props.tabIndex ? {
|
|
601
|
+
tabIndex: 0
|
|
602
|
+
} : {}));
|
|
603
|
+
}), Ue = (o) => {
|
|
604
|
+
const r = j.current, n = Je(r).activeElement;
|
|
605
|
+
if (n.getAttribute("role") !== "tab")
|
|
606
|
+
return;
|
|
607
|
+
let f = C === "horizontal" ? "ArrowLeft" : "ArrowUp", S = C === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
608
|
+
switch (C === "horizontal" && u && (f = "ArrowRight", S = "ArrowLeft"), o.key) {
|
|
609
|
+
case f:
|
|
610
|
+
o.preventDefault(), q(r, n, Te);
|
|
611
|
+
break;
|
|
612
|
+
case S:
|
|
613
|
+
o.preventDefault(), q(r, n, we);
|
|
614
|
+
break;
|
|
615
|
+
case "Home":
|
|
616
|
+
o.preventDefault(), q(r, null, we);
|
|
617
|
+
break;
|
|
618
|
+
case "End":
|
|
619
|
+
o.preventDefault(), q(r, null, Te);
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
}, oe = Ye();
|
|
623
|
+
return /* @__PURE__ */ ve(ft, b({
|
|
624
|
+
className: L(x.root, _),
|
|
625
|
+
ownerState: H,
|
|
626
|
+
ref: s,
|
|
627
|
+
as: W
|
|
628
|
+
}, He, {
|
|
629
|
+
children: [oe.scrollButtonStart, oe.scrollbarSizeListener, /* @__PURE__ */ ve(bt, {
|
|
630
|
+
className: x.scroller,
|
|
631
|
+
ownerState: H,
|
|
632
|
+
style: {
|
|
633
|
+
overflow: ue.overflow,
|
|
634
|
+
[h ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: Q ? void 0 : -ue.scrollbarWidth
|
|
635
|
+
},
|
|
636
|
+
ref: g,
|
|
637
|
+
onScroll: te,
|
|
638
|
+
children: [/* @__PURE__ */ y(ht, {
|
|
639
|
+
"aria-label": p,
|
|
640
|
+
"aria-labelledby": m,
|
|
641
|
+
"aria-orientation": C === "vertical" ? "vertical" : null,
|
|
642
|
+
className: x.flexContainer,
|
|
643
|
+
ownerState: H,
|
|
644
|
+
onKeyDown: Ue,
|
|
645
|
+
ref: j,
|
|
646
|
+
role: "tablist",
|
|
647
|
+
children: $e
|
|
648
|
+
}), ce && me]
|
|
649
|
+
}), oe.scrollButtonEnd]
|
|
650
|
+
}));
|
|
651
|
+
});
|
|
652
|
+
process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
653
|
+
// ----------------------------- Warning --------------------------------
|
|
654
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
655
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
656
|
+
// ----------------------------------------------------------------------
|
|
657
|
+
/**
|
|
658
|
+
* Callback fired when the component mounts.
|
|
659
|
+
* This is useful when you want to trigger an action programmatically.
|
|
660
|
+
* It supports two actions: `updateIndicator()` and `updateScrollButtons()`
|
|
661
|
+
*
|
|
662
|
+
* @param {object} actions This object contains all possible actions
|
|
663
|
+
* that can be triggered programmatically.
|
|
664
|
+
*/
|
|
665
|
+
action: Ge,
|
|
666
|
+
/**
|
|
667
|
+
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
668
|
+
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
669
|
+
* @default false
|
|
670
|
+
*/
|
|
671
|
+
allowScrollButtonsMobile: l.bool,
|
|
672
|
+
/**
|
|
673
|
+
* The label for the Tabs as a string.
|
|
674
|
+
*/
|
|
675
|
+
"aria-label": l.string,
|
|
676
|
+
/**
|
|
677
|
+
* An id or list of ids separated by a space that label the Tabs.
|
|
678
|
+
*/
|
|
679
|
+
"aria-labelledby": l.string,
|
|
680
|
+
/**
|
|
681
|
+
* If `true`, the tabs are centered.
|
|
682
|
+
* This prop is intended for large views.
|
|
683
|
+
* @default false
|
|
684
|
+
*/
|
|
685
|
+
centered: l.bool,
|
|
686
|
+
/**
|
|
687
|
+
* The content of the component.
|
|
688
|
+
*/
|
|
689
|
+
children: l.node,
|
|
690
|
+
/**
|
|
691
|
+
* Override or extend the styles applied to the component.
|
|
692
|
+
*/
|
|
693
|
+
classes: l.object,
|
|
694
|
+
/**
|
|
695
|
+
* @ignore
|
|
696
|
+
*/
|
|
697
|
+
className: l.string,
|
|
698
|
+
/**
|
|
699
|
+
* The component used for the root node.
|
|
700
|
+
* Either a string to use a HTML element or a component.
|
|
701
|
+
*/
|
|
702
|
+
component: l.elementType,
|
|
703
|
+
/**
|
|
704
|
+
* Determines the color of the indicator.
|
|
705
|
+
* @default 'primary'
|
|
706
|
+
*/
|
|
707
|
+
indicatorColor: l.oneOfType([l.oneOf(["primary", "secondary"]), l.string]),
|
|
708
|
+
/**
|
|
709
|
+
* Callback fired when the value changes.
|
|
710
|
+
*
|
|
711
|
+
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
712
|
+
* @param {any} value We default to the index of the child (number)
|
|
713
|
+
*/
|
|
714
|
+
onChange: l.func,
|
|
715
|
+
/**
|
|
716
|
+
* The component orientation (layout flow direction).
|
|
717
|
+
* @default 'horizontal'
|
|
718
|
+
*/
|
|
719
|
+
orientation: l.oneOf(["horizontal", "vertical"]),
|
|
720
|
+
/**
|
|
721
|
+
* The component used to render the scroll buttons.
|
|
722
|
+
* @default TabScrollButton
|
|
723
|
+
*/
|
|
724
|
+
ScrollButtonComponent: l.elementType,
|
|
725
|
+
/**
|
|
726
|
+
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
727
|
+
*
|
|
728
|
+
* - `auto` will only present them when not all the items are visible.
|
|
729
|
+
* - `true` will always present them.
|
|
730
|
+
* - `false` will never present them.
|
|
731
|
+
*
|
|
732
|
+
* By default the scroll buttons are hidden on mobile.
|
|
733
|
+
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
734
|
+
* @default 'auto'
|
|
735
|
+
*/
|
|
736
|
+
scrollButtons: l.oneOf(["auto", !1, !0]),
|
|
737
|
+
/**
|
|
738
|
+
* If `true` the selected tab changes on focus. Otherwise it only
|
|
739
|
+
* changes on activation.
|
|
740
|
+
*/
|
|
741
|
+
selectionFollowsFocus: l.bool,
|
|
742
|
+
/**
|
|
743
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
744
|
+
*/
|
|
745
|
+
sx: l.oneOfType([l.arrayOf(l.oneOfType([l.func, l.object, l.bool])), l.func, l.object]),
|
|
746
|
+
/**
|
|
747
|
+
* Props applied to the tab indicator element.
|
|
748
|
+
* @default {}
|
|
749
|
+
*/
|
|
750
|
+
TabIndicatorProps: l.object,
|
|
751
|
+
/**
|
|
752
|
+
* Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
|
|
753
|
+
* @default {}
|
|
754
|
+
*/
|
|
755
|
+
TabScrollButtonProps: l.object,
|
|
756
|
+
/**
|
|
757
|
+
* Determines the color of the `Tab`.
|
|
758
|
+
* @default 'primary'
|
|
759
|
+
*/
|
|
760
|
+
textColor: l.oneOf(["inherit", "primary", "secondary"]),
|
|
761
|
+
/**
|
|
762
|
+
* The value of the currently selected `Tab`.
|
|
763
|
+
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
764
|
+
*/
|
|
765
|
+
value: l.any,
|
|
766
|
+
/**
|
|
767
|
+
* Determines additional display behavior of the tabs:
|
|
768
|
+
*
|
|
769
|
+
* - `scrollable` will invoke scrolling properties and allow for horizontally
|
|
770
|
+
* scrolling (or swiping) of the tab bar.
|
|
771
|
+
* -`fullWidth` will make the tabs grow to use all the available space,
|
|
772
|
+
* which should be used for small views, like on mobile.
|
|
773
|
+
* - `standard` will render the default state.
|
|
774
|
+
* @default 'standard'
|
|
775
|
+
*/
|
|
776
|
+
variant: l.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
777
|
+
/**
|
|
778
|
+
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
779
|
+
* a long vertical list of tabs.
|
|
780
|
+
* @default false
|
|
781
|
+
*/
|
|
782
|
+
visibleScrollbar: l.bool
|
|
783
|
+
});
|
|
784
|
+
export {
|
|
785
|
+
vt as T,
|
|
786
|
+
le as t
|
|
787
|
+
};
|