@hybridcore/ui 1.6.11 → 1.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
- package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
- package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
- package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
- package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
- package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
- package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
- package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
- package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
- package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
- package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
- package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
- package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
- package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
- package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
- package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
- package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
- package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
- package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
- package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
- package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
- package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
- package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
- package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +149 -41
- package/dist/components/charts/_common/tooltip.js +2 -2
- package/dist/components/charts/_common/utils.js +16 -11
- package/dist/components/charts/candlestick/logic.js +34 -35
- package/dist/components/charts/column-line-mix/logic.js +40 -41
- package/dist/components/charts/donut-chart/logic.js +4 -4
- package/dist/components/charts/drill-down-treemap/logic.js +5 -5
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
- package/dist/components/charts/forecast-cone/logic.js +134 -120
- package/dist/components/charts/heatmap/logic.js +9 -9
- package/dist/components/charts/highlighting-line-data/logic.js +10 -10
- package/dist/components/charts/line/logic.js +19 -20
- package/dist/components/charts/logaritmic-scale/logic.js +30 -31
- package/dist/components/charts/multiple-value-axes/logic.js +18 -19
- package/dist/components/charts/nested-pie/logic.js +3 -3
- package/dist/components/charts/packed-circles/logic.js +7 -7
- package/dist/components/charts/pie-chart/logic.js +4 -4
- package/dist/components/charts/stacked-area-radar/logic.js +9 -9
- package/dist/components/charts/stacked-column-chart/logic.js +10 -10
- package/dist/components/charts/xy-chart/logic.js +28 -29
- package/dist/components/collapsible-card/index.js +21 -30
- package/dist/components/collapsible-card/styled.js +16 -14
- package/dist/components/color-picker/index.js +2227 -3357
- package/dist/components/color-picker/styled.js +87 -7
- package/dist/components/confirm/dialog.js +89 -8
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
- package/dist/components/date-picker-with-custom-range/index.js +86 -7
- package/dist/components/date-range-picker/index.js +464 -452
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +145 -3656
- package/dist/components/geometry-picker/map/style.js +18 -17
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +77 -1924
- package/dist/components/instance-hierarchy-table/styled.js +18 -16
- package/dist/components/map/helpers/mapbox.js +17 -15
- package/dist/components/map/helpers/ol.js +386 -27
- package/dist/components/map/index.js +11 -10
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +31 -27
- package/dist/components/metric-card/MetricChart.js +9 -9
- package/dist/components/metric-card/logic.js +46 -49
- package/dist/components/phone-input/index.js +10 -9
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +27 -26
- package/dist/components/range-selector/styled.js +65 -4228
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +60 -57
- package/dist/components/simple-pivot-table/index.js +17 -17
- package/dist/components/simple-pivot-table/logic.js +67 -76
- package/dist/components/sortable-list/index.js +1091 -1264
- package/dist/components/template-form/components/property-list/index.js +36 -33
- package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
- package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
- package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
- package/dist/components/tree-select/index.js +16 -16
- package/dist/index.esm-UfGMjYOL.js +197 -0
- package/dist/main.d.ts +67 -8
- package/dist/main.js +176 -175
- package/package.json +1 -1
- package/dist/AccordionSummary-CJppWeqF.js +0 -781
- package/dist/Add-CqcD1PWb.js +0 -403
- package/dist/Box-DqUMmZjL.js +0 -31
- package/dist/Button-C5yquWAB.js +0 -357
- package/dist/ButtonBase-BEF7oTOe.js +0 -887
- package/dist/DataProcessor-WXzhvIg6.js +0 -83
- package/dist/Delete-BdyYpINH.js +0 -23
- package/dist/DialogContent-BvVjD9z3.js +0 -523
- package/dist/FormGroup-CpBsIyYR.js +0 -89
- package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
- package/dist/IconButton-BoGwbvrP.js +0 -184
- package/dist/InputLabel-Dd8RrneV.js +0 -341
- package/dist/MenuItem-DwqJqzuM.js +0 -233
- package/dist/Modal-MUZygjmQ.js +0 -1158
- package/dist/Paper-BkQLdsCI.js +0 -582
- package/dist/Select-DHUl_uG3.js +0 -3916
- package/dist/Source-BSZST_GH.js +0 -4410
- package/dist/SwitchBase-DTndTqI8.js +0 -235
- package/dist/Text-ChJRuaD8.js +0 -2197
- package/dist/TextField-e2oKaUN1.js +0 -669
- package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
- package/dist/Typography-DgsSLCFC.js +0 -178
- package/dist/Vector-BmuhQO4p.js +0 -3606
- package/dist/Vector-DfTqQEln.js +0 -1735
- package/dist/WKT-2wsDT-nq.js +0 -2310
- package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
- package/dist/assets/index3.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSvgIcon-Ch_cT8az.js +0 -185
- package/dist/createSvgIcon-DuDuASu1.js +0 -62
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/dialog-BYRnCztH.js +0 -154
- package/dist/formControlState-vgaj2ksH.js +0 -10
- package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
- package/dist/index-DH6qsPBn.js +0 -153
- package/dist/index-e9xTIYWt.js +0 -1934
- package/dist/index.esm-BLLrbTzY.js +0 -318
- package/dist/math-Bvt2Ubuz.js +0 -704
- package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
- package/dist/ol-yOE-NV0X.js +0 -7465
- package/dist/ownerWindow-wg6foiOE.js +0 -10
- package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
- package/dist/styled-SoqbyrkW.js +0 -350
- package/dist/unsupportedProp-DuqR2hj9.js +0 -36
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
- package/dist/useSlot-B_Q4vnX5.js +0 -42
package/dist/Button-C5yquWAB.js
DELETED
|
@@ -1,357 +0,0 @@
|
|
|
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
|
-
};
|