@hybridcore/ui 1.6.0 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import { a, _ as S } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
-
import * as r from "react";
|
|
3
|
-
import { P as e } from "./index-C__OZmYy.js";
|
|
4
|
-
import { g as R, u as Y, c as L, a as z, b as ot } from "./useThemeProps-BzzHcQyd.js";
|
|
5
|
-
import { alpha as x } from "@mui/system";
|
|
6
|
-
import { s as $ } from "./styled-eZwjUruw.js";
|
|
7
|
-
import { L as h } from "./List-tqElle9C.js";
|
|
8
|
-
import { g as M } from "./createTheme-DYxDnE9u.js";
|
|
9
|
-
import { jsx as v, jsxs as w } from "react/jsx-runtime";
|
|
10
|
-
import { u as st, a as nt, e as at, B as it } from "./ButtonBase-2bPw77UP.js";
|
|
11
|
-
import { i as H } from "./isMuiElement-CxT3_ACP.js";
|
|
12
|
-
import { i as D } from "./isHostComponent-kiaBvYVo.js";
|
|
13
|
-
function rt(t) {
|
|
14
|
-
return M("MuiListItem", t);
|
|
15
|
-
}
|
|
16
|
-
const b = R("MuiListItem", ["root", "container", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "padding", "button", "secondaryAction", "selected"]);
|
|
17
|
-
function Mt(t) {
|
|
18
|
-
return M("MuiListItemButton", t);
|
|
19
|
-
}
|
|
20
|
-
const ct = R("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
|
|
21
|
-
function lt(t) {
|
|
22
|
-
return M("MuiListItemSecondaryAction", t);
|
|
23
|
-
}
|
|
24
|
-
R("MuiListItemSecondaryAction", ["root", "disableGutters"]);
|
|
25
|
-
const dt = ["className"], pt = (t) => {
|
|
26
|
-
const {
|
|
27
|
-
disableGutters: o,
|
|
28
|
-
classes: s
|
|
29
|
-
} = t;
|
|
30
|
-
return z({
|
|
31
|
-
root: ["root", o && "disableGutters"]
|
|
32
|
-
}, lt, s);
|
|
33
|
-
}, ut = $("div", {
|
|
34
|
-
name: "MuiListItemSecondaryAction",
|
|
35
|
-
slot: "Root",
|
|
36
|
-
overridesResolver: (t, o) => {
|
|
37
|
-
const {
|
|
38
|
-
ownerState: s
|
|
39
|
-
} = t;
|
|
40
|
-
return [o.root, s.disableGutters && o.disableGutters];
|
|
41
|
-
}
|
|
42
|
-
})(({
|
|
43
|
-
ownerState: t
|
|
44
|
-
}) => a({
|
|
45
|
-
position: "absolute",
|
|
46
|
-
right: 16,
|
|
47
|
-
top: "50%",
|
|
48
|
-
transform: "translateY(-50%)"
|
|
49
|
-
}, t.disableGutters && {
|
|
50
|
-
right: 0
|
|
51
|
-
})), T = /* @__PURE__ */ r.forwardRef(function(o, s) {
|
|
52
|
-
const n = Y({
|
|
53
|
-
props: o,
|
|
54
|
-
name: "MuiListItemSecondaryAction"
|
|
55
|
-
}), {
|
|
56
|
-
className: i
|
|
57
|
-
} = n, c = S(n, dt), p = r.useContext(h), u = a({}, n, {
|
|
58
|
-
disableGutters: p.disableGutters
|
|
59
|
-
}), f = pt(u);
|
|
60
|
-
return /* @__PURE__ */ v(ut, a({
|
|
61
|
-
className: L(f.root, i),
|
|
62
|
-
ownerState: u,
|
|
63
|
-
ref: s
|
|
64
|
-
}, c));
|
|
65
|
-
});
|
|
66
|
-
process.env.NODE_ENV !== "production" && (T.propTypes = {
|
|
67
|
-
// ----------------------------- Warning --------------------------------
|
|
68
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
69
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
70
|
-
// ----------------------------------------------------------------------
|
|
71
|
-
/**
|
|
72
|
-
* The content of the component, normally an `IconButton` or selection control.
|
|
73
|
-
*/
|
|
74
|
-
children: e.node,
|
|
75
|
-
/**
|
|
76
|
-
* Override or extend the styles applied to the component.
|
|
77
|
-
*/
|
|
78
|
-
classes: e.object,
|
|
79
|
-
/**
|
|
80
|
-
* @ignore
|
|
81
|
-
*/
|
|
82
|
-
className: e.string,
|
|
83
|
-
/**
|
|
84
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
85
|
-
*/
|
|
86
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
87
|
-
});
|
|
88
|
-
T.muiName = "ListItemSecondaryAction";
|
|
89
|
-
const mt = ["className"], bt = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"], ft = (t, o) => {
|
|
90
|
-
const {
|
|
91
|
-
ownerState: s
|
|
92
|
-
} = t;
|
|
93
|
-
return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters, !s.disablePadding && o.padding, s.button && o.button, s.hasSecondaryAction && o.secondaryAction];
|
|
94
|
-
}, gt = (t) => {
|
|
95
|
-
const {
|
|
96
|
-
alignItems: o,
|
|
97
|
-
button: s,
|
|
98
|
-
classes: n,
|
|
99
|
-
dense: i,
|
|
100
|
-
disabled: c,
|
|
101
|
-
disableGutters: p,
|
|
102
|
-
disablePadding: u,
|
|
103
|
-
divider: f,
|
|
104
|
-
hasSecondaryAction: g,
|
|
105
|
-
selected: A
|
|
106
|
-
} = t;
|
|
107
|
-
return z({
|
|
108
|
-
root: ["root", i && "dense", !p && "gutters", !u && "padding", f && "divider", c && "disabled", s && "button", o === "flex-start" && "alignItemsFlexStart", g && "secondaryAction", A && "selected"],
|
|
109
|
-
container: ["container"]
|
|
110
|
-
}, rt, n);
|
|
111
|
-
}, yt = $("div", {
|
|
112
|
-
name: "MuiListItem",
|
|
113
|
-
slot: "Root",
|
|
114
|
-
overridesResolver: ft
|
|
115
|
-
})(({
|
|
116
|
-
theme: t,
|
|
117
|
-
ownerState: o
|
|
118
|
-
}) => a({
|
|
119
|
-
display: "flex",
|
|
120
|
-
justifyContent: "flex-start",
|
|
121
|
-
alignItems: "center",
|
|
122
|
-
position: "relative",
|
|
123
|
-
textDecoration: "none",
|
|
124
|
-
width: "100%",
|
|
125
|
-
boxSizing: "border-box",
|
|
126
|
-
textAlign: "left"
|
|
127
|
-
}, !o.disablePadding && a({
|
|
128
|
-
paddingTop: 8,
|
|
129
|
-
paddingBottom: 8
|
|
130
|
-
}, o.dense && {
|
|
131
|
-
paddingTop: 4,
|
|
132
|
-
paddingBottom: 4
|
|
133
|
-
}, !o.disableGutters && {
|
|
134
|
-
paddingLeft: 16,
|
|
135
|
-
paddingRight: 16
|
|
136
|
-
}, !!o.secondaryAction && {
|
|
137
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
138
|
-
// is absolutely positioned.
|
|
139
|
-
paddingRight: 48
|
|
140
|
-
}), !!o.secondaryAction && {
|
|
141
|
-
[`& > .${ct.root}`]: {
|
|
142
|
-
paddingRight: 48
|
|
143
|
-
}
|
|
144
|
-
}, {
|
|
145
|
-
[`&.${b.focusVisible}`]: {
|
|
146
|
-
backgroundColor: (t.vars || t).palette.action.focus
|
|
147
|
-
},
|
|
148
|
-
[`&.${b.selected}`]: {
|
|
149
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : x(t.palette.primary.main, t.palette.action.selectedOpacity),
|
|
150
|
-
[`&.${b.focusVisible}`]: {
|
|
151
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : x(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
[`&.${b.disabled}`]: {
|
|
155
|
-
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
156
|
-
}
|
|
157
|
-
}, o.alignItems === "flex-start" && {
|
|
158
|
-
alignItems: "flex-start"
|
|
159
|
-
}, o.divider && {
|
|
160
|
-
borderBottom: `1px solid ${(t.vars || t).palette.divider}`,
|
|
161
|
-
backgroundClip: "padding-box"
|
|
162
|
-
}, o.button && {
|
|
163
|
-
transition: t.transitions.create("background-color", {
|
|
164
|
-
duration: t.transitions.duration.shortest
|
|
165
|
-
}),
|
|
166
|
-
"&:hover": {
|
|
167
|
-
textDecoration: "none",
|
|
168
|
-
backgroundColor: (t.vars || t).palette.action.hover,
|
|
169
|
-
// Reset on touch devices, it doesn't add specificity
|
|
170
|
-
"@media (hover: none)": {
|
|
171
|
-
backgroundColor: "transparent"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
[`&.${b.selected}:hover`]: {
|
|
175
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : x(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
176
|
-
// Reset on touch devices, it doesn't add specificity
|
|
177
|
-
"@media (hover: none)": {
|
|
178
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : x(t.palette.primary.main, t.palette.action.selectedOpacity)
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}, o.hasSecondaryAction && {
|
|
182
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
183
|
-
// is absolutely positioned.
|
|
184
|
-
paddingRight: 48
|
|
185
|
-
})), vt = $("li", {
|
|
186
|
-
name: "MuiListItem",
|
|
187
|
-
slot: "Container",
|
|
188
|
-
overridesResolver: (t, o) => o.container
|
|
189
|
-
})({
|
|
190
|
-
position: "relative"
|
|
191
|
-
}), Ct = /* @__PURE__ */ r.forwardRef(function(o, s) {
|
|
192
|
-
const n = Y({
|
|
193
|
-
props: o,
|
|
194
|
-
name: "MuiListItem"
|
|
195
|
-
}), {
|
|
196
|
-
alignItems: i = "center",
|
|
197
|
-
autoFocus: c = !1,
|
|
198
|
-
button: p = !1,
|
|
199
|
-
children: u,
|
|
200
|
-
className: f,
|
|
201
|
-
component: g,
|
|
202
|
-
components: A = {},
|
|
203
|
-
componentsProps: G = {},
|
|
204
|
-
ContainerComponent: j = "li",
|
|
205
|
-
ContainerProps: {
|
|
206
|
-
className: W
|
|
207
|
-
} = {},
|
|
208
|
-
dense: V = !1,
|
|
209
|
-
disabled: k = !1,
|
|
210
|
-
disableGutters: P = !1,
|
|
211
|
-
disablePadding: q = !1,
|
|
212
|
-
divider: J = !1,
|
|
213
|
-
focusVisibleClassName: K,
|
|
214
|
-
secondaryAction: B,
|
|
215
|
-
selected: Q = !1,
|
|
216
|
-
slotProps: X = {},
|
|
217
|
-
slots: Z = {}
|
|
218
|
-
} = n, tt = S(n.ContainerProps, mt), et = S(n, bt), E = r.useContext(h), N = r.useMemo(() => ({
|
|
219
|
-
dense: V || E.dense || !1,
|
|
220
|
-
alignItems: i,
|
|
221
|
-
disableGutters: P
|
|
222
|
-
}), [i, E.dense, V, P]), O = r.useRef(null);
|
|
223
|
-
st(() => {
|
|
224
|
-
c && (O.current ? O.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."));
|
|
225
|
-
}, [c]);
|
|
226
|
-
const m = r.Children.toArray(u), U = m.length && H(m[m.length - 1], ["ListItemSecondaryAction"]), C = a({}, n, {
|
|
227
|
-
alignItems: i,
|
|
228
|
-
autoFocus: c,
|
|
229
|
-
button: p,
|
|
230
|
-
dense: N.dense,
|
|
231
|
-
disabled: k,
|
|
232
|
-
disableGutters: P,
|
|
233
|
-
disablePadding: q,
|
|
234
|
-
divider: J,
|
|
235
|
-
hasSecondaryAction: U,
|
|
236
|
-
selected: Q
|
|
237
|
-
}), F = gt(C), _ = nt(O, s), I = Z.root || A.Root || yt, y = X.root || G.root || {}, l = a({
|
|
238
|
-
className: L(F.root, y.className, f),
|
|
239
|
-
disabled: k
|
|
240
|
-
}, et);
|
|
241
|
-
let d = g || "li";
|
|
242
|
-
return p && (l.component = g || "div", l.focusVisibleClassName = L(b.focusVisible, K), d = it), U ? (d = !l.component && !g ? "div" : d, j === "li" && (d === "li" ? d = "div" : l.component === "li" && (l.component = "div")), /* @__PURE__ */ v(h.Provider, {
|
|
243
|
-
value: N,
|
|
244
|
-
children: /* @__PURE__ */ w(vt, a({
|
|
245
|
-
as: j,
|
|
246
|
-
className: L(F.container, W),
|
|
247
|
-
ref: _,
|
|
248
|
-
ownerState: C
|
|
249
|
-
}, tt, {
|
|
250
|
-
children: [/* @__PURE__ */ v(I, a({}, y, !D(I) && {
|
|
251
|
-
as: d,
|
|
252
|
-
ownerState: a({}, C, y.ownerState)
|
|
253
|
-
}, l, {
|
|
254
|
-
children: m
|
|
255
|
-
})), m.pop()]
|
|
256
|
-
}))
|
|
257
|
-
})) : /* @__PURE__ */ v(h.Provider, {
|
|
258
|
-
value: N,
|
|
259
|
-
children: /* @__PURE__ */ w(I, a({}, y, {
|
|
260
|
-
as: d,
|
|
261
|
-
ref: _
|
|
262
|
-
}, !D(I) && {
|
|
263
|
-
ownerState: a({}, C, y.ownerState)
|
|
264
|
-
}, l, {
|
|
265
|
-
children: [m, B && /* @__PURE__ */ v(T, {
|
|
266
|
-
children: B
|
|
267
|
-
})]
|
|
268
|
-
}))
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
process.env.NODE_ENV !== "production" && (Ct.propTypes = {
|
|
272
|
-
// ----------------------------- Warning --------------------------------
|
|
273
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
274
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
275
|
-
// ----------------------------------------------------------------------
|
|
276
|
-
/**
|
|
277
|
-
* Defines the `align-items` style property.
|
|
278
|
-
* @default 'center'
|
|
279
|
-
*/
|
|
280
|
-
alignItems: e.oneOf(["center", "flex-start"]),
|
|
281
|
-
/**
|
|
282
|
-
* If `true`, the list item is focused during the first mount.
|
|
283
|
-
* Focus will also be triggered if the value changes from false to true.
|
|
284
|
-
* @default false
|
|
285
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
286
|
-
*/
|
|
287
|
-
autoFocus: e.bool,
|
|
288
|
-
/**
|
|
289
|
-
* If `true`, the list item is a button (using `ButtonBase`). Props intended
|
|
290
|
-
* for `ButtonBase` can then be applied to `ListItem`.
|
|
291
|
-
* @default false
|
|
292
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
293
|
-
*/
|
|
294
|
-
button: e.bool,
|
|
295
|
-
/**
|
|
296
|
-
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
297
|
-
* be the last child.
|
|
298
|
-
*/
|
|
299
|
-
children: ot(e.node, (t) => {
|
|
300
|
-
const o = r.Children.toArray(t.children);
|
|
301
|
-
let s = -1;
|
|
302
|
-
for (let n = o.length - 1; n >= 0; n -= 1) {
|
|
303
|
-
const i = o[n];
|
|
304
|
-
if (H(i, ["ListItemSecondaryAction"])) {
|
|
305
|
-
s = n;
|
|
306
|
-
break;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
return s !== -1 && s !== o.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
|
|
310
|
-
}),
|
|
311
|
-
/**
|
|
312
|
-
* Override or extend the styles applied to the component.
|
|
313
|
-
*/
|
|
314
|
-
classes: e.object,
|
|
315
|
-
/**
|
|
316
|
-
* @ignore
|
|
317
|
-
*/
|
|
318
|
-
className: e.string,
|
|
319
|
-
/**
|
|
320
|
-
* The component used for the root node.
|
|
321
|
-
* Either a string to use a HTML element or a component.
|
|
322
|
-
*/
|
|
323
|
-
component: e.elementType,
|
|
324
|
-
/**
|
|
325
|
-
* The components used for each slot inside.
|
|
326
|
-
*
|
|
327
|
-
* This prop is an alias for the `slots` prop.
|
|
328
|
-
* It's recommended to use the `slots` prop instead.
|
|
329
|
-
*
|
|
330
|
-
* @default {}
|
|
331
|
-
*/
|
|
332
|
-
components: e.shape({
|
|
333
|
-
Root: e.elementType
|
|
334
|
-
}),
|
|
335
|
-
/**
|
|
336
|
-
* The extra props for the slot components.
|
|
337
|
-
* You can override the existing props or add new ones.
|
|
338
|
-
*
|
|
339
|
-
* This prop is an alias for the `slotProps` prop.
|
|
340
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
341
|
-
*
|
|
342
|
-
* @default {}
|
|
343
|
-
*/
|
|
344
|
-
componentsProps: e.shape({
|
|
345
|
-
root: e.object
|
|
346
|
-
}),
|
|
347
|
-
/**
|
|
348
|
-
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
349
|
-
* @default 'li'
|
|
350
|
-
* @deprecated
|
|
351
|
-
*/
|
|
352
|
-
ContainerComponent: at,
|
|
353
|
-
/**
|
|
354
|
-
* Props applied to the container component if used.
|
|
355
|
-
* @default {}
|
|
356
|
-
* @deprecated
|
|
357
|
-
*/
|
|
358
|
-
ContainerProps: e.object,
|
|
359
|
-
/**
|
|
360
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
361
|
-
* The prop defaults to the value inherited from the parent List component.
|
|
362
|
-
* @default false
|
|
363
|
-
*/
|
|
364
|
-
dense: e.bool,
|
|
365
|
-
/**
|
|
366
|
-
* If `true`, the component is disabled.
|
|
367
|
-
* @default false
|
|
368
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
369
|
-
*/
|
|
370
|
-
disabled: e.bool,
|
|
371
|
-
/**
|
|
372
|
-
* If `true`, the left and right padding is removed.
|
|
373
|
-
* @default false
|
|
374
|
-
*/
|
|
375
|
-
disableGutters: e.bool,
|
|
376
|
-
/**
|
|
377
|
-
* If `true`, all padding is removed.
|
|
378
|
-
* @default false
|
|
379
|
-
*/
|
|
380
|
-
disablePadding: e.bool,
|
|
381
|
-
/**
|
|
382
|
-
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
383
|
-
* @default false
|
|
384
|
-
*/
|
|
385
|
-
divider: e.bool,
|
|
386
|
-
/**
|
|
387
|
-
* @ignore
|
|
388
|
-
*/
|
|
389
|
-
focusVisibleClassName: e.string,
|
|
390
|
-
/**
|
|
391
|
-
* The element to display at the end of ListItem.
|
|
392
|
-
*/
|
|
393
|
-
secondaryAction: e.node,
|
|
394
|
-
/**
|
|
395
|
-
* Use to apply selected styling.
|
|
396
|
-
* @default false
|
|
397
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
398
|
-
*/
|
|
399
|
-
selected: e.bool,
|
|
400
|
-
/**
|
|
401
|
-
* The extra props for the slot components.
|
|
402
|
-
* You can override the existing props or add new ones.
|
|
403
|
-
*
|
|
404
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
405
|
-
*
|
|
406
|
-
* @default {}
|
|
407
|
-
*/
|
|
408
|
-
slotProps: e.shape({
|
|
409
|
-
root: e.object
|
|
410
|
-
}),
|
|
411
|
-
/**
|
|
412
|
-
* The components used for each slot inside.
|
|
413
|
-
*
|
|
414
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
415
|
-
*
|
|
416
|
-
* @default {}
|
|
417
|
-
*/
|
|
418
|
-
slots: e.shape({
|
|
419
|
-
root: e.elementType
|
|
420
|
-
}),
|
|
421
|
-
/**
|
|
422
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
423
|
-
*/
|
|
424
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
425
|
-
});
|
|
426
|
-
export {
|
|
427
|
-
Ct as L,
|
|
428
|
-
Mt as g,
|
|
429
|
-
ct as l
|
|
430
|
-
};
|