@hybridcore/ui 1.6.1 → 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-C5yquWAB.js +357 -0
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
- package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
- package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
- 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-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
- 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/logic.js +1 -1
- 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/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/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 +18 -15
- package/dist/components/data-security-selectors/security-level/logic.js +18 -63
- package/dist/components/data-security-selectors/security-level/styled.js +23 -17
- 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 -86
- 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 -9
- 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/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +11 -11
- 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/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/styled.js +1106 -1034
- 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-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 -12
- 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 -22
- 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 -308
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- 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 +1 -1
- 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-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
- 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-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
- package/dist/main.d.ts +1054 -330
- package/dist/main.js +163 -130
- 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/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-CMg08YSA.js +0 -739
- package/dist/Add-DuVVJeQU.js +0 -380
- package/dist/ButtonBase-sObABYY2.js +0 -965
- package/dist/FormControl-BCurCxRj.js +0 -1294
- package/dist/FormControlLabel-BkRfrhNy.js +0 -601
- package/dist/InputAdornment-C7PEvvYr.js +0 -155
- package/dist/Modal-DlB6GH-f.js +0 -1659
- package/dist/Paper-q9kKjAKx.js +0 -527
- package/dist/TextField-DSDIEEKu.js +0 -3161
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-quqpGCFu.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 -47
- package/dist/components/key-protection/logic.js +0 -40
- package/dist/components/key-protection/styled.js +0 -45
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/createSvgIcon-BM3-TsGy.js +0 -70
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-DPKUmQnz.js +0 -501
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isMuiElement-BkJ72LB3.js +0 -26
- package/dist/property-list-form-DL_dEoNn.js +0 -381
- package/dist/styled-Bsjp3kFh.js +0 -668
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/utils-Cxu-fHjQ.js +0 -115
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { a as t, _ as j } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { P as n } from "./index-C__OZmYy.js";
|
|
4
|
+
import { c as m } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { g as D, a as F, s as f, r as G, b as r, f as v, h as U, u as H, c as A } from "./generateUtilityClasses-C3ivN9Ie.js";
|
|
6
|
+
import { jsx as R, jsxs as q } from "react/jsx-runtime";
|
|
7
|
+
import { B as J } from "./ButtonBase-BEF7oTOe.js";
|
|
8
|
+
function K(o) {
|
|
9
|
+
return F("MuiButton", o);
|
|
10
|
+
}
|
|
11
|
+
const b = D("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), h = /* @__PURE__ */ p.createContext({});
|
|
12
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
|
|
13
|
+
const E = /* @__PURE__ */ p.createContext(void 0);
|
|
14
|
+
process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupButtonContext");
|
|
15
|
+
const Q = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], X = (o) => {
|
|
16
|
+
const {
|
|
17
|
+
color: a,
|
|
18
|
+
disableElevation: i,
|
|
19
|
+
fullWidth: l,
|
|
20
|
+
size: s,
|
|
21
|
+
variant: e,
|
|
22
|
+
classes: c
|
|
23
|
+
} = o, g = {
|
|
24
|
+
root: ["root", e, `${e}${r(a)}`, `size${r(s)}`, `${e}Size${r(s)}`, `color${r(a)}`, i && "disableElevation", l && "fullWidth"],
|
|
25
|
+
label: ["label"],
|
|
26
|
+
startIcon: ["icon", "startIcon", `iconSize${r(s)}`],
|
|
27
|
+
endIcon: ["icon", "endIcon", `iconSize${r(s)}`]
|
|
28
|
+
}, x = A(g, K, c);
|
|
29
|
+
return t({}, c, x);
|
|
30
|
+
}, N = (o) => t({}, o.size === "small" && {
|
|
31
|
+
"& > *:nth-of-type(1)": {
|
|
32
|
+
fontSize: 18
|
|
33
|
+
}
|
|
34
|
+
}, o.size === "medium" && {
|
|
35
|
+
"& > *:nth-of-type(1)": {
|
|
36
|
+
fontSize: 20
|
|
37
|
+
}
|
|
38
|
+
}, o.size === "large" && {
|
|
39
|
+
"& > *:nth-of-type(1)": {
|
|
40
|
+
fontSize: 22
|
|
41
|
+
}
|
|
42
|
+
}), Y = f(J, {
|
|
43
|
+
shouldForwardProp: (o) => G(o) || o === "classes",
|
|
44
|
+
name: "MuiButton",
|
|
45
|
+
slot: "Root",
|
|
46
|
+
overridesResolver: (o, a) => {
|
|
47
|
+
const {
|
|
48
|
+
ownerState: i
|
|
49
|
+
} = o;
|
|
50
|
+
return [a.root, a[i.variant], a[`${i.variant}${r(i.color)}`], a[`size${r(i.size)}`], a[`${i.variant}Size${r(i.size)}`], i.color === "inherit" && a.colorInherit, i.disableElevation && a.disableElevation, i.fullWidth && a.fullWidth];
|
|
51
|
+
}
|
|
52
|
+
})(({
|
|
53
|
+
theme: o,
|
|
54
|
+
ownerState: a
|
|
55
|
+
}) => {
|
|
56
|
+
var i, l;
|
|
57
|
+
const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
58
|
+
return t({}, o.typography.button, {
|
|
59
|
+
minWidth: 64,
|
|
60
|
+
padding: "6px 16px",
|
|
61
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
62
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
63
|
+
duration: o.transitions.duration.short
|
|
64
|
+
}),
|
|
65
|
+
"&:hover": t({
|
|
66
|
+
textDecoration: "none",
|
|
67
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
68
|
+
// Reset on touch devices, it doesn't add specificity
|
|
69
|
+
"@media (hover: none)": {
|
|
70
|
+
backgroundColor: "transparent"
|
|
71
|
+
}
|
|
72
|
+
}, a.variant === "text" && a.color !== "inherit" && {
|
|
73
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
|
|
74
|
+
// Reset on touch devices, it doesn't add specificity
|
|
75
|
+
"@media (hover: none)": {
|
|
76
|
+
backgroundColor: "transparent"
|
|
77
|
+
}
|
|
78
|
+
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
79
|
+
border: `1px solid ${(o.vars || o).palette[a.color].main}`,
|
|
80
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
|
|
81
|
+
// Reset on touch devices, it doesn't add specificity
|
|
82
|
+
"@media (hover: none)": {
|
|
83
|
+
backgroundColor: "transparent"
|
|
84
|
+
}
|
|
85
|
+
}, a.variant === "contained" && {
|
|
86
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
|
|
87
|
+
boxShadow: (o.vars || o).shadows[4],
|
|
88
|
+
// Reset on touch devices, it doesn't add specificity
|
|
89
|
+
"@media (hover: none)": {
|
|
90
|
+
boxShadow: (o.vars || o).shadows[2],
|
|
91
|
+
backgroundColor: (o.vars || o).palette.grey[300]
|
|
92
|
+
}
|
|
93
|
+
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
94
|
+
backgroundColor: (o.vars || o).palette[a.color].dark,
|
|
95
|
+
// Reset on touch devices, it doesn't add specificity
|
|
96
|
+
"@media (hover: none)": {
|
|
97
|
+
backgroundColor: (o.vars || o).palette[a.color].main
|
|
98
|
+
}
|
|
99
|
+
}),
|
|
100
|
+
"&:active": t({}, a.variant === "contained" && {
|
|
101
|
+
boxShadow: (o.vars || o).shadows[8]
|
|
102
|
+
}),
|
|
103
|
+
[`&.${b.focusVisible}`]: t({}, a.variant === "contained" && {
|
|
104
|
+
boxShadow: (o.vars || o).shadows[6]
|
|
105
|
+
}),
|
|
106
|
+
[`&.${b.disabled}`]: t({
|
|
107
|
+
color: (o.vars || o).palette.action.disabled
|
|
108
|
+
}, a.variant === "outlined" && {
|
|
109
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
110
|
+
}, a.variant === "contained" && {
|
|
111
|
+
color: (o.vars || o).palette.action.disabled,
|
|
112
|
+
boxShadow: (o.vars || o).shadows[0],
|
|
113
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
114
|
+
})
|
|
115
|
+
}, a.variant === "text" && {
|
|
116
|
+
padding: "6px 8px"
|
|
117
|
+
}, a.variant === "text" && a.color !== "inherit" && {
|
|
118
|
+
color: (o.vars || o).palette[a.color].main
|
|
119
|
+
}, a.variant === "outlined" && {
|
|
120
|
+
padding: "5px 15px",
|
|
121
|
+
border: "1px solid currentColor"
|
|
122
|
+
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
123
|
+
color: (o.vars || o).palette[a.color].main,
|
|
124
|
+
border: o.vars ? `1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[a.color].main, 0.5)}`
|
|
125
|
+
}, a.variant === "contained" && {
|
|
126
|
+
color: o.vars ? (
|
|
127
|
+
// this is safe because grey does not change between default light/dark mode
|
|
128
|
+
o.vars.palette.text.primary
|
|
129
|
+
) : (i = (l = o.palette).getContrastText) == null ? void 0 : i.call(l, o.palette.grey[300]),
|
|
130
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
|
|
131
|
+
boxShadow: (o.vars || o).shadows[2]
|
|
132
|
+
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
133
|
+
color: (o.vars || o).palette[a.color].contrastText,
|
|
134
|
+
backgroundColor: (o.vars || o).palette[a.color].main
|
|
135
|
+
}, a.color === "inherit" && {
|
|
136
|
+
color: "inherit",
|
|
137
|
+
borderColor: "currentColor"
|
|
138
|
+
}, a.size === "small" && a.variant === "text" && {
|
|
139
|
+
padding: "4px 5px",
|
|
140
|
+
fontSize: o.typography.pxToRem(13)
|
|
141
|
+
}, a.size === "large" && a.variant === "text" && {
|
|
142
|
+
padding: "8px 11px",
|
|
143
|
+
fontSize: o.typography.pxToRem(15)
|
|
144
|
+
}, a.size === "small" && a.variant === "outlined" && {
|
|
145
|
+
padding: "3px 9px",
|
|
146
|
+
fontSize: o.typography.pxToRem(13)
|
|
147
|
+
}, a.size === "large" && a.variant === "outlined" && {
|
|
148
|
+
padding: "7px 21px",
|
|
149
|
+
fontSize: o.typography.pxToRem(15)
|
|
150
|
+
}, a.size === "small" && a.variant === "contained" && {
|
|
151
|
+
padding: "4px 10px",
|
|
152
|
+
fontSize: o.typography.pxToRem(13)
|
|
153
|
+
}, a.size === "large" && a.variant === "contained" && {
|
|
154
|
+
padding: "8px 22px",
|
|
155
|
+
fontSize: o.typography.pxToRem(15)
|
|
156
|
+
}, a.fullWidth && {
|
|
157
|
+
width: "100%"
|
|
158
|
+
});
|
|
159
|
+
}, ({
|
|
160
|
+
ownerState: o
|
|
161
|
+
}) => o.disableElevation && {
|
|
162
|
+
boxShadow: "none",
|
|
163
|
+
"&:hover": {
|
|
164
|
+
boxShadow: "none"
|
|
165
|
+
},
|
|
166
|
+
[`&.${b.focusVisible}`]: {
|
|
167
|
+
boxShadow: "none"
|
|
168
|
+
},
|
|
169
|
+
"&:active": {
|
|
170
|
+
boxShadow: "none"
|
|
171
|
+
},
|
|
172
|
+
[`&.${b.disabled}`]: {
|
|
173
|
+
boxShadow: "none"
|
|
174
|
+
}
|
|
175
|
+
}), Z = f("span", {
|
|
176
|
+
name: "MuiButton",
|
|
177
|
+
slot: "StartIcon",
|
|
178
|
+
overridesResolver: (o, a) => {
|
|
179
|
+
const {
|
|
180
|
+
ownerState: i
|
|
181
|
+
} = o;
|
|
182
|
+
return [a.startIcon, a[`iconSize${r(i.size)}`]];
|
|
183
|
+
}
|
|
184
|
+
})(({
|
|
185
|
+
ownerState: o
|
|
186
|
+
}) => t({
|
|
187
|
+
display: "inherit",
|
|
188
|
+
marginRight: 8,
|
|
189
|
+
marginLeft: -4
|
|
190
|
+
}, o.size === "small" && {
|
|
191
|
+
marginLeft: -2
|
|
192
|
+
}, N(o))), w = f("span", {
|
|
193
|
+
name: "MuiButton",
|
|
194
|
+
slot: "EndIcon",
|
|
195
|
+
overridesResolver: (o, a) => {
|
|
196
|
+
const {
|
|
197
|
+
ownerState: i
|
|
198
|
+
} = o;
|
|
199
|
+
return [a.endIcon, a[`iconSize${r(i.size)}`]];
|
|
200
|
+
}
|
|
201
|
+
})(({
|
|
202
|
+
ownerState: o
|
|
203
|
+
}) => t({
|
|
204
|
+
display: "inherit",
|
|
205
|
+
marginRight: -4,
|
|
206
|
+
marginLeft: 8
|
|
207
|
+
}, o.size === "small" && {
|
|
208
|
+
marginRight: -2
|
|
209
|
+
}, N(o))), oo = /* @__PURE__ */ p.forwardRef(function(a, i) {
|
|
210
|
+
const l = p.useContext(h), s = p.useContext(E), e = U(l, a), c = H({
|
|
211
|
+
props: e,
|
|
212
|
+
name: "MuiButton"
|
|
213
|
+
}), {
|
|
214
|
+
children: g,
|
|
215
|
+
color: x = "primary",
|
|
216
|
+
component: y = "button",
|
|
217
|
+
className: O,
|
|
218
|
+
disabled: z = !1,
|
|
219
|
+
disableElevation: k = !1,
|
|
220
|
+
disableFocusRipple: C = !1,
|
|
221
|
+
endIcon: I,
|
|
222
|
+
focusVisibleClassName: T,
|
|
223
|
+
fullWidth: P = !1,
|
|
224
|
+
size: W = "medium",
|
|
225
|
+
startIcon: $,
|
|
226
|
+
type: B,
|
|
227
|
+
variant: S = "text"
|
|
228
|
+
} = c, M = j(c, Q), u = t({}, c, {
|
|
229
|
+
color: x,
|
|
230
|
+
component: y,
|
|
231
|
+
disabled: z,
|
|
232
|
+
disableElevation: k,
|
|
233
|
+
disableFocusRipple: C,
|
|
234
|
+
fullWidth: P,
|
|
235
|
+
size: W,
|
|
236
|
+
type: B,
|
|
237
|
+
variant: S
|
|
238
|
+
}), d = X(u), V = $ && /* @__PURE__ */ R(Z, {
|
|
239
|
+
className: d.startIcon,
|
|
240
|
+
ownerState: u,
|
|
241
|
+
children: $
|
|
242
|
+
}), _ = I && /* @__PURE__ */ R(w, {
|
|
243
|
+
className: d.endIcon,
|
|
244
|
+
ownerState: u,
|
|
245
|
+
children: I
|
|
246
|
+
}), L = s || "";
|
|
247
|
+
return /* @__PURE__ */ q(Y, t({
|
|
248
|
+
ownerState: u,
|
|
249
|
+
className: m(l.className, d.root, O, L),
|
|
250
|
+
component: y,
|
|
251
|
+
disabled: z,
|
|
252
|
+
focusRipple: !C,
|
|
253
|
+
focusVisibleClassName: m(d.focusVisible, T),
|
|
254
|
+
ref: i,
|
|
255
|
+
type: B
|
|
256
|
+
}, M, {
|
|
257
|
+
classes: d,
|
|
258
|
+
children: [V, g, _]
|
|
259
|
+
}));
|
|
260
|
+
});
|
|
261
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
262
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
263
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
264
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
265
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
266
|
+
/**
|
|
267
|
+
* The content of the component.
|
|
268
|
+
*/
|
|
269
|
+
children: n.node,
|
|
270
|
+
/**
|
|
271
|
+
* Override or extend the styles applied to the component.
|
|
272
|
+
*/
|
|
273
|
+
classes: n.object,
|
|
274
|
+
/**
|
|
275
|
+
* @ignore
|
|
276
|
+
*/
|
|
277
|
+
className: n.string,
|
|
278
|
+
/**
|
|
279
|
+
* The color of the component.
|
|
280
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
281
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
282
|
+
* @default 'primary'
|
|
283
|
+
*/
|
|
284
|
+
color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
|
|
285
|
+
/**
|
|
286
|
+
* The component used for the root node.
|
|
287
|
+
* Either a string to use a HTML element or a component.
|
|
288
|
+
*/
|
|
289
|
+
component: n.elementType,
|
|
290
|
+
/**
|
|
291
|
+
* If `true`, the component is disabled.
|
|
292
|
+
* @default false
|
|
293
|
+
*/
|
|
294
|
+
disabled: n.bool,
|
|
295
|
+
/**
|
|
296
|
+
* If `true`, no elevation is used.
|
|
297
|
+
* @default false
|
|
298
|
+
*/
|
|
299
|
+
disableElevation: n.bool,
|
|
300
|
+
/**
|
|
301
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
302
|
+
* @default false
|
|
303
|
+
*/
|
|
304
|
+
disableFocusRipple: n.bool,
|
|
305
|
+
/**
|
|
306
|
+
* If `true`, the ripple effect is disabled.
|
|
307
|
+
*
|
|
308
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
309
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
310
|
+
* @default false
|
|
311
|
+
*/
|
|
312
|
+
disableRipple: n.bool,
|
|
313
|
+
/**
|
|
314
|
+
* Element placed after the children.
|
|
315
|
+
*/
|
|
316
|
+
endIcon: n.node,
|
|
317
|
+
/**
|
|
318
|
+
* @ignore
|
|
319
|
+
*/
|
|
320
|
+
focusVisibleClassName: n.string,
|
|
321
|
+
/**
|
|
322
|
+
* If `true`, the button will take up the full width of its container.
|
|
323
|
+
* @default false
|
|
324
|
+
*/
|
|
325
|
+
fullWidth: n.bool,
|
|
326
|
+
/**
|
|
327
|
+
* The URL to link to when the button is clicked.
|
|
328
|
+
* If defined, an `a` element will be used as the root node.
|
|
329
|
+
*/
|
|
330
|
+
href: n.string,
|
|
331
|
+
/**
|
|
332
|
+
* The size of the component.
|
|
333
|
+
* `small` is equivalent to the dense button styling.
|
|
334
|
+
* @default 'medium'
|
|
335
|
+
*/
|
|
336
|
+
size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
|
|
337
|
+
/**
|
|
338
|
+
* Element placed before the children.
|
|
339
|
+
*/
|
|
340
|
+
startIcon: n.node,
|
|
341
|
+
/**
|
|
342
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
343
|
+
*/
|
|
344
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
345
|
+
/**
|
|
346
|
+
* @ignore
|
|
347
|
+
*/
|
|
348
|
+
type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
|
|
349
|
+
/**
|
|
350
|
+
* The variant to use.
|
|
351
|
+
* @default 'text'
|
|
352
|
+
*/
|
|
353
|
+
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
354
|
+
});
|
|
355
|
+
export {
|
|
356
|
+
oo as B
|
|
357
|
+
};
|