@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,74 +0,0 @@
|
|
|
1
|
-
import { _ as m, a as c } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
-
import * as d from "react";
|
|
3
|
-
import { P as o } from "./index-C__OZmYy.js";
|
|
4
|
-
import { g as C, u, c as f, a as y } from "./useThemeProps-BzzHcQyd.js";
|
|
5
|
-
import { s as g } from "./styled-eZwjUruw.js";
|
|
6
|
-
import { g as v } from "./createTheme-DYxDnE9u.js";
|
|
7
|
-
import { jsx as x } from "react/jsx-runtime";
|
|
8
|
-
function N(t) {
|
|
9
|
-
return v("MuiCardContent", t);
|
|
10
|
-
}
|
|
11
|
-
C("MuiCardContent", ["root"]);
|
|
12
|
-
const T = ["className", "component"], b = (t) => {
|
|
13
|
-
const {
|
|
14
|
-
classes: s
|
|
15
|
-
} = t;
|
|
16
|
-
return y({
|
|
17
|
-
root: ["root"]
|
|
18
|
-
}, N, s);
|
|
19
|
-
}, h = g("div", {
|
|
20
|
-
name: "MuiCardContent",
|
|
21
|
-
slot: "Root",
|
|
22
|
-
overridesResolver: (t, s) => s.root
|
|
23
|
-
})(() => ({
|
|
24
|
-
padding: 16,
|
|
25
|
-
"&:last-child": {
|
|
26
|
-
paddingBottom: 24
|
|
27
|
-
}
|
|
28
|
-
})), j = /* @__PURE__ */ d.forwardRef(function(s, r) {
|
|
29
|
-
const e = u({
|
|
30
|
-
props: s,
|
|
31
|
-
name: "MuiCardContent"
|
|
32
|
-
}), {
|
|
33
|
-
className: i,
|
|
34
|
-
component: n = "div"
|
|
35
|
-
} = e, p = m(e, T), a = c({}, e, {
|
|
36
|
-
component: n
|
|
37
|
-
}), l = b(a);
|
|
38
|
-
return /* @__PURE__ */ x(h, c({
|
|
39
|
-
as: n,
|
|
40
|
-
className: f(l.root, i),
|
|
41
|
-
ownerState: a,
|
|
42
|
-
ref: r
|
|
43
|
-
}, p));
|
|
44
|
-
});
|
|
45
|
-
process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
46
|
-
// ----------------------------- Warning --------------------------------
|
|
47
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
48
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
49
|
-
// ----------------------------------------------------------------------
|
|
50
|
-
/**
|
|
51
|
-
* The content of the component.
|
|
52
|
-
*/
|
|
53
|
-
children: o.node,
|
|
54
|
-
/**
|
|
55
|
-
* Override or extend the styles applied to the component.
|
|
56
|
-
*/
|
|
57
|
-
classes: o.object,
|
|
58
|
-
/**
|
|
59
|
-
* @ignore
|
|
60
|
-
*/
|
|
61
|
-
className: o.string,
|
|
62
|
-
/**
|
|
63
|
-
* The component used for the root node.
|
|
64
|
-
* Either a string to use a HTML element or a component.
|
|
65
|
-
*/
|
|
66
|
-
component: o.elementType,
|
|
67
|
-
/**
|
|
68
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
69
|
-
*/
|
|
70
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
j as C
|
|
74
|
-
};
|
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
import { a as r, _ } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
-
import * as x from "react";
|
|
3
|
-
import { P as e } from "./index-C__OZmYy.js";
|
|
4
|
-
import { g as q, c as E, a as M, u as Y } from "./useThemeProps-BzzHcQyd.js";
|
|
5
|
-
import { alpha as Z } from "@mui/system";
|
|
6
|
-
import { s as z, r as ee } from "./styled-eZwjUruw.js";
|
|
7
|
-
import { u as oe } from "./useFormControl-CatNKXAi.js";
|
|
8
|
-
import { g as U } from "./createTheme-DYxDnE9u.js";
|
|
9
|
-
import { jsxs as ne, jsx as l } from "react/jsx-runtime";
|
|
10
|
-
import { B as te, r as V } from "./ButtonBase-2bPw77UP.js";
|
|
11
|
-
import { u as ce } from "./useControlled-BYdyS7Pn.js";
|
|
12
|
-
import { c as S } from "./capitalize-ciszXJ7R.js";
|
|
13
|
-
import { c as w } from "./createSvgIcon-DrtgaibK.js";
|
|
14
|
-
function se(o) {
|
|
15
|
-
return U("PrivateSwitchBase", o);
|
|
16
|
-
}
|
|
17
|
-
q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
18
|
-
const ae = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], re = (o) => {
|
|
19
|
-
const {
|
|
20
|
-
classes: n,
|
|
21
|
-
checked: t,
|
|
22
|
-
disabled: i,
|
|
23
|
-
edge: c
|
|
24
|
-
} = o, s = {
|
|
25
|
-
root: ["root", t && "checked", i && "disabled", c && `edge${S(c)}`],
|
|
26
|
-
input: ["input"]
|
|
27
|
-
};
|
|
28
|
-
return M(s, se, n);
|
|
29
|
-
}, ie = z(te)(({
|
|
30
|
-
ownerState: o
|
|
31
|
-
}) => r({
|
|
32
|
-
padding: 9,
|
|
33
|
-
borderRadius: "50%"
|
|
34
|
-
}, o.edge === "start" && {
|
|
35
|
-
marginLeft: o.size === "small" ? -3 : -12
|
|
36
|
-
}, o.edge === "end" && {
|
|
37
|
-
marginRight: o.size === "small" ? -3 : -12
|
|
38
|
-
})), de = z("input")({
|
|
39
|
-
cursor: "inherit",
|
|
40
|
-
position: "absolute",
|
|
41
|
-
opacity: 0,
|
|
42
|
-
width: "100%",
|
|
43
|
-
height: "100%",
|
|
44
|
-
top: 0,
|
|
45
|
-
left: 0,
|
|
46
|
-
margin: 0,
|
|
47
|
-
padding: 0,
|
|
48
|
-
zIndex: 1
|
|
49
|
-
}), H = /* @__PURE__ */ x.forwardRef(function(n, t) {
|
|
50
|
-
const {
|
|
51
|
-
autoFocus: i,
|
|
52
|
-
checked: c,
|
|
53
|
-
checkedIcon: s,
|
|
54
|
-
className: v,
|
|
55
|
-
defaultChecked: k,
|
|
56
|
-
disabled: I,
|
|
57
|
-
disableFocusRipple: u = !1,
|
|
58
|
-
edge: C = !1,
|
|
59
|
-
icon: B,
|
|
60
|
-
id: p,
|
|
61
|
-
inputProps: R,
|
|
62
|
-
inputRef: P,
|
|
63
|
-
name: g,
|
|
64
|
-
onBlur: f,
|
|
65
|
-
onChange: h,
|
|
66
|
-
onFocus: m,
|
|
67
|
-
readOnly: L,
|
|
68
|
-
required: D = !1,
|
|
69
|
-
tabIndex: W,
|
|
70
|
-
type: y,
|
|
71
|
-
value: N
|
|
72
|
-
} = n, A = _(n, ae), [$, G] = ce({
|
|
73
|
-
controlled: c,
|
|
74
|
-
default: !!k,
|
|
75
|
-
name: "SwitchBase",
|
|
76
|
-
state: "checked"
|
|
77
|
-
}), d = oe(), J = (a) => {
|
|
78
|
-
m && m(a), d && d.onFocus && d.onFocus(a);
|
|
79
|
-
}, K = (a) => {
|
|
80
|
-
f && f(a), d && d.onBlur && d.onBlur(a);
|
|
81
|
-
}, Q = (a) => {
|
|
82
|
-
if (a.nativeEvent.defaultPrevented)
|
|
83
|
-
return;
|
|
84
|
-
const T = a.target.checked;
|
|
85
|
-
G(T), h && h(a, T);
|
|
86
|
-
};
|
|
87
|
-
let b = I;
|
|
88
|
-
d && typeof b > "u" && (b = d.disabled);
|
|
89
|
-
const X = y === "checkbox" || y === "radio", F = r({}, n, {
|
|
90
|
-
checked: $,
|
|
91
|
-
disabled: b,
|
|
92
|
-
disableFocusRipple: u,
|
|
93
|
-
edge: C
|
|
94
|
-
}), j = re(F);
|
|
95
|
-
return /* @__PURE__ */ ne(ie, r({
|
|
96
|
-
component: "span",
|
|
97
|
-
className: E(j.root, v),
|
|
98
|
-
centerRipple: !0,
|
|
99
|
-
focusRipple: !u,
|
|
100
|
-
disabled: b,
|
|
101
|
-
tabIndex: null,
|
|
102
|
-
role: void 0,
|
|
103
|
-
onFocus: J,
|
|
104
|
-
onBlur: K,
|
|
105
|
-
ownerState: F,
|
|
106
|
-
ref: t
|
|
107
|
-
}, A, {
|
|
108
|
-
children: [/* @__PURE__ */ l(de, r({
|
|
109
|
-
autoFocus: i,
|
|
110
|
-
checked: c,
|
|
111
|
-
defaultChecked: k,
|
|
112
|
-
className: j.input,
|
|
113
|
-
disabled: b,
|
|
114
|
-
id: X ? p : void 0,
|
|
115
|
-
name: g,
|
|
116
|
-
onChange: Q,
|
|
117
|
-
readOnly: L,
|
|
118
|
-
ref: P,
|
|
119
|
-
required: D,
|
|
120
|
-
ownerState: F,
|
|
121
|
-
tabIndex: W,
|
|
122
|
-
type: y
|
|
123
|
-
}, y === "checkbox" && N === void 0 ? {} : {
|
|
124
|
-
value: N
|
|
125
|
-
}, R)), $ ? s : B]
|
|
126
|
-
}));
|
|
127
|
-
});
|
|
128
|
-
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
129
|
-
/**
|
|
130
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
131
|
-
*/
|
|
132
|
-
autoFocus: e.bool,
|
|
133
|
-
/**
|
|
134
|
-
* If `true`, the component is checked.
|
|
135
|
-
*/
|
|
136
|
-
checked: e.bool,
|
|
137
|
-
/**
|
|
138
|
-
* The icon to display when the component is checked.
|
|
139
|
-
*/
|
|
140
|
-
checkedIcon: e.node.isRequired,
|
|
141
|
-
/**
|
|
142
|
-
* Override or extend the styles applied to the component.
|
|
143
|
-
* See [CSS API](#css) below for more details.
|
|
144
|
-
*/
|
|
145
|
-
classes: e.object,
|
|
146
|
-
/**
|
|
147
|
-
* @ignore
|
|
148
|
-
*/
|
|
149
|
-
className: e.string,
|
|
150
|
-
/**
|
|
151
|
-
* @ignore
|
|
152
|
-
*/
|
|
153
|
-
defaultChecked: e.bool,
|
|
154
|
-
/**
|
|
155
|
-
* If `true`, the component is disabled.
|
|
156
|
-
*/
|
|
157
|
-
disabled: e.bool,
|
|
158
|
-
/**
|
|
159
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
160
|
-
* @default false
|
|
161
|
-
*/
|
|
162
|
-
disableFocusRipple: e.bool,
|
|
163
|
-
/**
|
|
164
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
165
|
-
* side (this is often helpful for aligning the left or right
|
|
166
|
-
* side of the icon with content above or below, without ruining the border
|
|
167
|
-
* size and shape).
|
|
168
|
-
* @default false
|
|
169
|
-
*/
|
|
170
|
-
edge: e.oneOf(["end", "start", !1]),
|
|
171
|
-
/**
|
|
172
|
-
* The icon to display when the component is unchecked.
|
|
173
|
-
*/
|
|
174
|
-
icon: e.node.isRequired,
|
|
175
|
-
/**
|
|
176
|
-
* The id of the `input` element.
|
|
177
|
-
*/
|
|
178
|
-
id: e.string,
|
|
179
|
-
/**
|
|
180
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
181
|
-
*/
|
|
182
|
-
inputProps: e.object,
|
|
183
|
-
/**
|
|
184
|
-
* Pass a ref to the `input` element.
|
|
185
|
-
*/
|
|
186
|
-
inputRef: V,
|
|
187
|
-
/*
|
|
188
|
-
* @ignore
|
|
189
|
-
*/
|
|
190
|
-
name: e.string,
|
|
191
|
-
/**
|
|
192
|
-
* @ignore
|
|
193
|
-
*/
|
|
194
|
-
onBlur: e.func,
|
|
195
|
-
/**
|
|
196
|
-
* Callback fired when the state is changed.
|
|
197
|
-
*
|
|
198
|
-
* @param {object} event The event source of the callback.
|
|
199
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
200
|
-
*/
|
|
201
|
-
onChange: e.func,
|
|
202
|
-
/**
|
|
203
|
-
* @ignore
|
|
204
|
-
*/
|
|
205
|
-
onFocus: e.func,
|
|
206
|
-
/**
|
|
207
|
-
* It prevents the user from changing the value of the field
|
|
208
|
-
* (not from interacting with the field).
|
|
209
|
-
*/
|
|
210
|
-
readOnly: e.bool,
|
|
211
|
-
/**
|
|
212
|
-
* If `true`, the `input` element is required.
|
|
213
|
-
*/
|
|
214
|
-
required: e.bool,
|
|
215
|
-
/**
|
|
216
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
217
|
-
*/
|
|
218
|
-
sx: e.object,
|
|
219
|
-
/**
|
|
220
|
-
* @ignore
|
|
221
|
-
*/
|
|
222
|
-
tabIndex: e.oneOfType([e.number, e.string]),
|
|
223
|
-
/**
|
|
224
|
-
* The input component prop `type`.
|
|
225
|
-
*/
|
|
226
|
-
type: e.string.isRequired,
|
|
227
|
-
/**
|
|
228
|
-
* The value of the component.
|
|
229
|
-
*/
|
|
230
|
-
value: e.any
|
|
231
|
-
});
|
|
232
|
-
const le = w(/* @__PURE__ */ l("path", {
|
|
233
|
-
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
234
|
-
}), "CheckBoxOutlineBlank"), ue = w(/* @__PURE__ */ l("path", {
|
|
235
|
-
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
236
|
-
}), "CheckBox"), pe = w(/* @__PURE__ */ l("path", {
|
|
237
|
-
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
238
|
-
}), "IndeterminateCheckBox");
|
|
239
|
-
function fe(o) {
|
|
240
|
-
return U("MuiCheckbox", o);
|
|
241
|
-
}
|
|
242
|
-
const O = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary"]), he = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], me = (o) => {
|
|
243
|
-
const {
|
|
244
|
-
classes: n,
|
|
245
|
-
indeterminate: t,
|
|
246
|
-
color: i
|
|
247
|
-
} = o, c = {
|
|
248
|
-
root: ["root", t && "indeterminate", `color${S(i)}`]
|
|
249
|
-
}, s = M(c, fe, n);
|
|
250
|
-
return r({}, n, s);
|
|
251
|
-
}, be = z(H, {
|
|
252
|
-
shouldForwardProp: (o) => ee(o) || o === "classes",
|
|
253
|
-
name: "MuiCheckbox",
|
|
254
|
-
slot: "Root",
|
|
255
|
-
overridesResolver: (o, n) => {
|
|
256
|
-
const {
|
|
257
|
-
ownerState: t
|
|
258
|
-
} = o;
|
|
259
|
-
return [n.root, t.indeterminate && n.indeterminate, t.color !== "default" && n[`color${S(t.color)}`]];
|
|
260
|
-
}
|
|
261
|
-
})(({
|
|
262
|
-
theme: o,
|
|
263
|
-
ownerState: n
|
|
264
|
-
}) => r({
|
|
265
|
-
color: (o.vars || o).palette.text.secondary
|
|
266
|
-
}, !n.disableRipple && {
|
|
267
|
-
"&:hover": {
|
|
268
|
-
backgroundColor: o.vars ? `rgba(${n.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : Z(n.color === "default" ? o.palette.action.active : o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
269
|
-
// Reset on touch devices, it doesn't add specificity
|
|
270
|
-
"@media (hover: none)": {
|
|
271
|
-
backgroundColor: "transparent"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}, n.color !== "default" && {
|
|
275
|
-
[`&.${O.checked}, &.${O.indeterminate}`]: {
|
|
276
|
-
color: (o.vars || o).palette[n.color].main
|
|
277
|
-
},
|
|
278
|
-
[`&.${O.disabled}`]: {
|
|
279
|
-
color: (o.vars || o).palette.action.disabled
|
|
280
|
-
}
|
|
281
|
-
})), ke = /* @__PURE__ */ l(ue, {}), Ce = /* @__PURE__ */ l(le, {}), ge = /* @__PURE__ */ l(pe, {}), ye = /* @__PURE__ */ x.forwardRef(function(n, t) {
|
|
282
|
-
var i, c;
|
|
283
|
-
const s = Y({
|
|
284
|
-
props: n,
|
|
285
|
-
name: "MuiCheckbox"
|
|
286
|
-
}), {
|
|
287
|
-
checkedIcon: v = ke,
|
|
288
|
-
color: k = "primary",
|
|
289
|
-
icon: I = Ce,
|
|
290
|
-
indeterminate: u = !1,
|
|
291
|
-
indeterminateIcon: C = ge,
|
|
292
|
-
inputProps: B,
|
|
293
|
-
size: p = "medium",
|
|
294
|
-
className: R
|
|
295
|
-
} = s, P = _(s, he), g = u ? C : I, f = u ? C : v, h = r({}, s, {
|
|
296
|
-
color: k,
|
|
297
|
-
indeterminate: u,
|
|
298
|
-
size: p
|
|
299
|
-
}), m = me(h);
|
|
300
|
-
return /* @__PURE__ */ l(be, r({
|
|
301
|
-
type: "checkbox",
|
|
302
|
-
inputProps: r({
|
|
303
|
-
"data-indeterminate": u
|
|
304
|
-
}, B),
|
|
305
|
-
icon: /* @__PURE__ */ x.cloneElement(g, {
|
|
306
|
-
fontSize: (i = g.props.fontSize) != null ? i : p
|
|
307
|
-
}),
|
|
308
|
-
checkedIcon: /* @__PURE__ */ x.cloneElement(f, {
|
|
309
|
-
fontSize: (c = f.props.fontSize) != null ? c : p
|
|
310
|
-
}),
|
|
311
|
-
ownerState: h,
|
|
312
|
-
ref: t,
|
|
313
|
-
className: E(m.root, R)
|
|
314
|
-
}, P, {
|
|
315
|
-
classes: m
|
|
316
|
-
}));
|
|
317
|
-
});
|
|
318
|
-
process.env.NODE_ENV !== "production" && (ye.propTypes = {
|
|
319
|
-
// ----------------------------- Warning --------------------------------
|
|
320
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
321
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
322
|
-
// ----------------------------------------------------------------------
|
|
323
|
-
/**
|
|
324
|
-
* If `true`, the component is checked.
|
|
325
|
-
*/
|
|
326
|
-
checked: e.bool,
|
|
327
|
-
/**
|
|
328
|
-
* The icon to display when the component is checked.
|
|
329
|
-
* @default <CheckBoxIcon />
|
|
330
|
-
*/
|
|
331
|
-
checkedIcon: e.node,
|
|
332
|
-
/**
|
|
333
|
-
* Override or extend the styles applied to the component.
|
|
334
|
-
*/
|
|
335
|
-
classes: e.object,
|
|
336
|
-
/**
|
|
337
|
-
* @ignore
|
|
338
|
-
*/
|
|
339
|
-
className: e.string,
|
|
340
|
-
/**
|
|
341
|
-
* The color of the component.
|
|
342
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
343
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
344
|
-
* @default 'primary'
|
|
345
|
-
*/
|
|
346
|
-
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
347
|
-
/**
|
|
348
|
-
* The default checked state. Use when the component is not controlled.
|
|
349
|
-
*/
|
|
350
|
-
defaultChecked: e.bool,
|
|
351
|
-
/**
|
|
352
|
-
* If `true`, the component is disabled.
|
|
353
|
-
* @default false
|
|
354
|
-
*/
|
|
355
|
-
disabled: e.bool,
|
|
356
|
-
/**
|
|
357
|
-
* If `true`, the ripple effect is disabled.
|
|
358
|
-
* @default false
|
|
359
|
-
*/
|
|
360
|
-
disableRipple: e.bool,
|
|
361
|
-
/**
|
|
362
|
-
* The icon to display when the component is unchecked.
|
|
363
|
-
* @default <CheckBoxOutlineBlankIcon />
|
|
364
|
-
*/
|
|
365
|
-
icon: e.node,
|
|
366
|
-
/**
|
|
367
|
-
* The id of the `input` element.
|
|
368
|
-
*/
|
|
369
|
-
id: e.string,
|
|
370
|
-
/**
|
|
371
|
-
* If `true`, the component appears indeterminate.
|
|
372
|
-
* This does not set the native input element to indeterminate due
|
|
373
|
-
* to inconsistent behavior across browsers.
|
|
374
|
-
* However, we set a `data-indeterminate` attribute on the `input`.
|
|
375
|
-
* @default false
|
|
376
|
-
*/
|
|
377
|
-
indeterminate: e.bool,
|
|
378
|
-
/**
|
|
379
|
-
* The icon to display when the component is indeterminate.
|
|
380
|
-
* @default <IndeterminateCheckBoxIcon />
|
|
381
|
-
*/
|
|
382
|
-
indeterminateIcon: e.node,
|
|
383
|
-
/**
|
|
384
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
385
|
-
*/
|
|
386
|
-
inputProps: e.object,
|
|
387
|
-
/**
|
|
388
|
-
* Pass a ref to the `input` element.
|
|
389
|
-
*/
|
|
390
|
-
inputRef: V,
|
|
391
|
-
/**
|
|
392
|
-
* Callback fired when the state is changed.
|
|
393
|
-
*
|
|
394
|
-
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
395
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
396
|
-
*/
|
|
397
|
-
onChange: e.func,
|
|
398
|
-
/**
|
|
399
|
-
* If `true`, the `input` element is required.
|
|
400
|
-
* @default false
|
|
401
|
-
*/
|
|
402
|
-
required: e.bool,
|
|
403
|
-
/**
|
|
404
|
-
* The size of the component.
|
|
405
|
-
* `small` is equivalent to the dense checkbox styling.
|
|
406
|
-
* @default 'medium'
|
|
407
|
-
*/
|
|
408
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
409
|
-
/**
|
|
410
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
411
|
-
*/
|
|
412
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
413
|
-
/**
|
|
414
|
-
* The value of the component. The DOM API casts this to a string.
|
|
415
|
-
* The browser uses "on" as the default value.
|
|
416
|
-
*/
|
|
417
|
-
value: e.any
|
|
418
|
-
});
|
|
419
|
-
export {
|
|
420
|
-
ye as C
|
|
421
|
-
};
|