@carto/meridian-ds 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/dist/{Alert-yL5uEg4Z.js → Link-D5fKicEY.js} +129 -129
- package/dist/{Alert-oGAW_syG.cjs → Link-_lzRY1Ay.cjs} +129 -129
- package/dist/{MenuItem-CyIdh2wX.cjs → MenuItem-BY6fuF5U.cjs} +1 -1
- package/dist/{MenuItem-C8x-GasJ.js → MenuItem-CKrhDizf.js} +1 -1
- package/dist/{TablePaginationActions-BWer8cmX.js → TablePaginationActions-CCDi-BO-.js} +6 -6
- package/dist/{TablePaginationActions-MwqZJoRm.cjs → TablePaginationActions-D2K26kdR.cjs} +6 -6
- package/dist/components/index.cjs +836 -728
- package/dist/components/index.js +776 -668
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +3 -3
- package/dist/types/components/atoms/Copy/CopiableComponent.d.ts +4 -0
- package/dist/types/components/atoms/Copy/CopiableComponent.d.ts.map +1 -0
- package/dist/types/components/atoms/Copy/CopiableInputText.d.ts +18 -0
- package/dist/types/components/atoms/Copy/CopiableInputText.d.ts.map +1 -0
- package/dist/types/components/atoms/Copy/copyString.d.ts.map +1 -0
- package/dist/types/components/{molecules → atoms}/Copy/index.d.ts +2 -1
- package/dist/types/components/atoms/Copy/index.d.ts.map +1 -0
- package/dist/types/components/{molecules/Copy/CopiableComponent.d.ts → atoms/Copy/types.d.ts} +11 -5
- package/dist/types/components/atoms/Copy/types.d.ts.map +1 -0
- package/dist/types/components/atoms/Copy/useCopyValue.d.ts.map +1 -0
- package/dist/types/components/atoms/index.d.ts +2 -0
- package/dist/types/components/atoms/index.d.ts.map +1 -1
- package/dist/types/components/molecules/index.d.ts +0 -2
- package/dist/types/components/molecules/index.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +2 -2
- package/dist/types/localization/es.d.ts +2 -2
- package/dist/types/localization/id.d.ts +2 -2
- package/dist/types/localization/index.d.ts +6 -6
- package/dist/widgets/index.cjs +8 -8
- package/dist/widgets/index.js +2 -2
- package/package.json +1 -1
- package/dist/types/components/molecules/Copy/CopiableComponent.d.ts.map +0 -1
- package/dist/types/components/molecules/Copy/copyString.d.ts.map +0 -1
- package/dist/types/components/molecules/Copy/index.d.ts.map +0 -1
- package/dist/types/components/molecules/Copy/useCopyValue.d.ts.map +0 -1
- /package/dist/types/components/{molecules → atoms}/Copy/copyString.d.ts +0 -0
- /package/dist/types/components/{molecules → atoms}/Copy/useCopyValue.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
## 2.0
|
|
6
6
|
|
|
7
|
+
### 2.2.0
|
|
8
|
+
|
|
9
|
+
- New CopiableInputText component [#228](https://github.com/CartoDB/meridian-ds/pull/228)
|
|
10
|
+
|
|
7
11
|
### 2.1.1
|
|
8
12
|
|
|
9
13
|
- MultipleSelectField: select all filter is not working from empty state [#231](https://github.com/CartoDB/meridian-ds/pull/231)
|
|
10
14
|
|
|
11
15
|
### 2.1.0
|
|
12
16
|
|
|
13
|
-
- New Link
|
|
17
|
+
- New Link component and Button with externalLink behavior [#202](https://github.com/CartoDB/meridian-ds/pull/202)
|
|
14
18
|
|
|
15
19
|
### 2.0.2
|
|
16
20
|
|
|
@@ -1,10 +1,137 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { b as ICON_SIZE_MEDIUM, T as Typography, c as ICON_SIZE_SMALL, I as ICON_SIZE_LARGE, u as useImperativeIntl } from "./TablePaginationActions-CCDi-BO-.js";
|
|
3
|
+
import { styled, Alert as Alert$1, Fade, AlertTitle, IconButton as IconButton$1, Tooltip, CircularProgress, Link as Link$1 } from "@mui/material";
|
|
2
4
|
import { forwardRef, useState } from "react";
|
|
3
|
-
import { styled, IconButton as IconButton$1, Tooltip, CircularProgress, Link as Link$1, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
|
|
4
5
|
import { useIntl } from "react-intl";
|
|
5
6
|
import { OpenInNewOutlined } from "@mui/icons-material";
|
|
6
|
-
import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, I as ICON_SIZE_LARGE, u as useImperativeIntl, T as Typography } from "./TablePaginationActions-BWer8cmX.js";
|
|
7
7
|
import "cartocolor";
|
|
8
|
+
const StyledAlert = styled(Alert$1, {
|
|
9
|
+
shouldForwardProp: (prop) => ![
|
|
10
|
+
"isNeutral",
|
|
11
|
+
"content",
|
|
12
|
+
"hasCloseButton",
|
|
13
|
+
"hasAction",
|
|
14
|
+
"hasTitle",
|
|
15
|
+
"isSticky"
|
|
16
|
+
].includes(prop)
|
|
17
|
+
})(
|
|
18
|
+
({
|
|
19
|
+
isNeutral,
|
|
20
|
+
content,
|
|
21
|
+
hasCloseButton,
|
|
22
|
+
hasAction,
|
|
23
|
+
hasTitle,
|
|
24
|
+
isSticky,
|
|
25
|
+
theme
|
|
26
|
+
}) => ({
|
|
27
|
+
columnGap: theme.spacing(1),
|
|
28
|
+
minHeight: theme.spacing(6),
|
|
29
|
+
...hasAction && {
|
|
30
|
+
display: "grid",
|
|
31
|
+
gridTemplateAreas: content === "inline" || hasCloseButton ? `"icon message actions"` : `
|
|
32
|
+
"icon message"
|
|
33
|
+
"icon actions"
|
|
34
|
+
`,
|
|
35
|
+
gridTemplateColumns: hasCloseButton ? `${ICON_SIZE_MEDIUM} 1fr ${theme.spacing(3)}` : `${ICON_SIZE_MEDIUM}`
|
|
36
|
+
},
|
|
37
|
+
...isNeutral && {
|
|
38
|
+
backgroundColor: theme.palette.default.background,
|
|
39
|
+
color: theme.palette.text.primary
|
|
40
|
+
},
|
|
41
|
+
...isSticky && {
|
|
42
|
+
borderRadius: 0
|
|
43
|
+
},
|
|
44
|
+
".MuiAlert-message": {
|
|
45
|
+
flex: 1,
|
|
46
|
+
paddingTop: hasTitle ? theme.spacing(0.25) : theme.spacing(0.5),
|
|
47
|
+
"& a": {
|
|
48
|
+
color: theme.palette.primary.main,
|
|
49
|
+
textDecoration: "none",
|
|
50
|
+
"&:hover": {
|
|
51
|
+
textDecoration: "underline"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
...hasAction && {
|
|
55
|
+
gridArea: "message"
|
|
56
|
+
},
|
|
57
|
+
...isNeutral && {
|
|
58
|
+
"& :not(.MuiAlertTitle-root)": {
|
|
59
|
+
color: theme.palette.text.secondary
|
|
60
|
+
},
|
|
61
|
+
a: {
|
|
62
|
+
color: `${theme.palette.primary.main} !important`
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
".MuiAlert-icon": {
|
|
67
|
+
height: hasTitle ? theme.spacing(2.5) : theme.spacing(3),
|
|
68
|
+
marginRight: 0,
|
|
69
|
+
...hasAction && {
|
|
70
|
+
gridArea: "icon"
|
|
71
|
+
},
|
|
72
|
+
...isNeutral && {
|
|
73
|
+
color: theme.palette.text.primary
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
".MuiAlert-action": {
|
|
77
|
+
alignItems: content === "inline" && !hasCloseButton ? "center" : "flex-start",
|
|
78
|
+
margin: content === "block" && !hasCloseButton ? theme.spacing(1.5, 0, 0.5) : 0,
|
|
79
|
+
marginLeft: content === "inline" || hasCloseButton ? "auto" : 0,
|
|
80
|
+
padding: 0,
|
|
81
|
+
...hasAction && {
|
|
82
|
+
gridArea: "actions"
|
|
83
|
+
},
|
|
84
|
+
".MuiIconButton-root svg path": {
|
|
85
|
+
fill: hasCloseButton ? theme.palette.text.secondary : void 0
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
function _Alert({
|
|
91
|
+
title,
|
|
92
|
+
action,
|
|
93
|
+
severity = "neutral",
|
|
94
|
+
content = "inline",
|
|
95
|
+
variant = "standard",
|
|
96
|
+
children,
|
|
97
|
+
onClose,
|
|
98
|
+
open: controlledOpen,
|
|
99
|
+
isSticky,
|
|
100
|
+
...otherProps
|
|
101
|
+
}, ref) {
|
|
102
|
+
const [open, setOpen] = useState(controlledOpen ?? true);
|
|
103
|
+
const handleClose = onClose ? (ev) => {
|
|
104
|
+
onClose(ev);
|
|
105
|
+
setOpen(false);
|
|
106
|
+
} : void 0;
|
|
107
|
+
const isNeutral = severity === "neutral";
|
|
108
|
+
const isOpen = controlledOpen ?? open;
|
|
109
|
+
return /* @__PURE__ */ jsx(Fade, { in: isOpen, appear: false, children: /* @__PURE__ */ jsxs(
|
|
110
|
+
StyledAlert,
|
|
111
|
+
{
|
|
112
|
+
ref,
|
|
113
|
+
severity: isNeutral ? "info" : severity,
|
|
114
|
+
isNeutral,
|
|
115
|
+
content,
|
|
116
|
+
action,
|
|
117
|
+
onClose: handleClose,
|
|
118
|
+
hasCloseButton: Boolean(onClose),
|
|
119
|
+
hasAction: Boolean(action),
|
|
120
|
+
hasTitle: Boolean(title),
|
|
121
|
+
isSticky,
|
|
122
|
+
variant,
|
|
123
|
+
"data-name": "alert",
|
|
124
|
+
"data-sticky": isSticky,
|
|
125
|
+
"data-content": content,
|
|
126
|
+
...otherProps,
|
|
127
|
+
children: [
|
|
128
|
+
title && /* @__PURE__ */ jsx(AlertTitle, { children: title }),
|
|
129
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "inherit", component: "div", children })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
) });
|
|
133
|
+
}
|
|
134
|
+
const Alert = forwardRef(_Alert);
|
|
8
135
|
const ScreenReaderOnly = styled("span")(() => ({
|
|
9
136
|
position: "absolute",
|
|
10
137
|
width: 1,
|
|
@@ -168,133 +295,6 @@ function _Link({
|
|
|
168
295
|
);
|
|
169
296
|
}
|
|
170
297
|
const Link = forwardRef(_Link);
|
|
171
|
-
const StyledAlert = styled(Alert$1, {
|
|
172
|
-
shouldForwardProp: (prop) => ![
|
|
173
|
-
"isNeutral",
|
|
174
|
-
"content",
|
|
175
|
-
"hasCloseButton",
|
|
176
|
-
"hasAction",
|
|
177
|
-
"hasTitle",
|
|
178
|
-
"isSticky"
|
|
179
|
-
].includes(prop)
|
|
180
|
-
})(
|
|
181
|
-
({
|
|
182
|
-
isNeutral,
|
|
183
|
-
content,
|
|
184
|
-
hasCloseButton,
|
|
185
|
-
hasAction,
|
|
186
|
-
hasTitle,
|
|
187
|
-
isSticky,
|
|
188
|
-
theme
|
|
189
|
-
}) => ({
|
|
190
|
-
columnGap: theme.spacing(1),
|
|
191
|
-
minHeight: theme.spacing(6),
|
|
192
|
-
...hasAction && {
|
|
193
|
-
display: "grid",
|
|
194
|
-
gridTemplateAreas: content === "inline" || hasCloseButton ? `"icon message actions"` : `
|
|
195
|
-
"icon message"
|
|
196
|
-
"icon actions"
|
|
197
|
-
`,
|
|
198
|
-
gridTemplateColumns: hasCloseButton ? `${ICON_SIZE_MEDIUM} 1fr ${theme.spacing(3)}` : `${ICON_SIZE_MEDIUM}`
|
|
199
|
-
},
|
|
200
|
-
...isNeutral && {
|
|
201
|
-
backgroundColor: theme.palette.default.background,
|
|
202
|
-
color: theme.palette.text.primary
|
|
203
|
-
},
|
|
204
|
-
...isSticky && {
|
|
205
|
-
borderRadius: 0
|
|
206
|
-
},
|
|
207
|
-
".MuiAlert-message": {
|
|
208
|
-
flex: 1,
|
|
209
|
-
paddingTop: hasTitle ? theme.spacing(0.25) : theme.spacing(0.5),
|
|
210
|
-
"& a": {
|
|
211
|
-
color: theme.palette.primary.main,
|
|
212
|
-
textDecoration: "none",
|
|
213
|
-
"&:hover": {
|
|
214
|
-
textDecoration: "underline"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
...hasAction && {
|
|
218
|
-
gridArea: "message"
|
|
219
|
-
},
|
|
220
|
-
...isNeutral && {
|
|
221
|
-
"& :not(.MuiAlertTitle-root)": {
|
|
222
|
-
color: theme.palette.text.secondary
|
|
223
|
-
},
|
|
224
|
-
a: {
|
|
225
|
-
color: `${theme.palette.primary.main} !important`
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
".MuiAlert-icon": {
|
|
230
|
-
height: hasTitle ? theme.spacing(2.5) : theme.spacing(3),
|
|
231
|
-
marginRight: 0,
|
|
232
|
-
...hasAction && {
|
|
233
|
-
gridArea: "icon"
|
|
234
|
-
},
|
|
235
|
-
...isNeutral && {
|
|
236
|
-
color: theme.palette.text.primary
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
".MuiAlert-action": {
|
|
240
|
-
alignItems: content === "inline" && !hasCloseButton ? "center" : "flex-start",
|
|
241
|
-
margin: content === "block" && !hasCloseButton ? theme.spacing(1.5, 0, 0.5) : 0,
|
|
242
|
-
marginLeft: content === "inline" || hasCloseButton ? "auto" : 0,
|
|
243
|
-
padding: 0,
|
|
244
|
-
...hasAction && {
|
|
245
|
-
gridArea: "actions"
|
|
246
|
-
},
|
|
247
|
-
".MuiIconButton-root svg path": {
|
|
248
|
-
fill: hasCloseButton ? theme.palette.text.secondary : void 0
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
})
|
|
252
|
-
);
|
|
253
|
-
function _Alert({
|
|
254
|
-
title,
|
|
255
|
-
action,
|
|
256
|
-
severity = "neutral",
|
|
257
|
-
content = "inline",
|
|
258
|
-
variant = "standard",
|
|
259
|
-
children,
|
|
260
|
-
onClose,
|
|
261
|
-
open: controlledOpen,
|
|
262
|
-
isSticky,
|
|
263
|
-
...otherProps
|
|
264
|
-
}, ref) {
|
|
265
|
-
const [open, setOpen] = useState(controlledOpen ?? true);
|
|
266
|
-
const handleClose = onClose ? (ev) => {
|
|
267
|
-
onClose(ev);
|
|
268
|
-
setOpen(false);
|
|
269
|
-
} : void 0;
|
|
270
|
-
const isNeutral = severity === "neutral";
|
|
271
|
-
const isOpen = controlledOpen ?? open;
|
|
272
|
-
return /* @__PURE__ */ jsx(Fade, { in: isOpen, appear: false, children: /* @__PURE__ */ jsxs(
|
|
273
|
-
StyledAlert,
|
|
274
|
-
{
|
|
275
|
-
ref,
|
|
276
|
-
severity: isNeutral ? "info" : severity,
|
|
277
|
-
isNeutral,
|
|
278
|
-
content,
|
|
279
|
-
action,
|
|
280
|
-
onClose: handleClose,
|
|
281
|
-
hasCloseButton: Boolean(onClose),
|
|
282
|
-
hasAction: Boolean(action),
|
|
283
|
-
hasTitle: Boolean(title),
|
|
284
|
-
isSticky,
|
|
285
|
-
variant,
|
|
286
|
-
"data-name": "alert",
|
|
287
|
-
"data-sticky": isSticky,
|
|
288
|
-
"data-content": content,
|
|
289
|
-
...otherProps,
|
|
290
|
-
children: [
|
|
291
|
-
title && /* @__PURE__ */ jsx(AlertTitle, { children: title }),
|
|
292
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "inherit", component: "div", children })
|
|
293
|
-
]
|
|
294
|
-
}
|
|
295
|
-
) });
|
|
296
|
-
}
|
|
297
|
-
const Alert = forwardRef(_Alert);
|
|
298
298
|
export {
|
|
299
299
|
Alert as A,
|
|
300
300
|
IconButton as I,
|
|
@@ -1,11 +1,138 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
const
|
|
3
|
+
const TablePaginationActions = require("./TablePaginationActions-D2K26kdR.cjs");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
|
+
const React = require("react");
|
|
5
6
|
const reactIntl = require("react-intl");
|
|
6
7
|
const iconsMaterial = require("@mui/icons-material");
|
|
7
|
-
const TablePaginationActions = require("./TablePaginationActions-MwqZJoRm.cjs");
|
|
8
8
|
require("cartocolor");
|
|
9
|
+
const StyledAlert = material.styled(material.Alert, {
|
|
10
|
+
shouldForwardProp: (prop) => ![
|
|
11
|
+
"isNeutral",
|
|
12
|
+
"content",
|
|
13
|
+
"hasCloseButton",
|
|
14
|
+
"hasAction",
|
|
15
|
+
"hasTitle",
|
|
16
|
+
"isSticky"
|
|
17
|
+
].includes(prop)
|
|
18
|
+
})(
|
|
19
|
+
({
|
|
20
|
+
isNeutral,
|
|
21
|
+
content,
|
|
22
|
+
hasCloseButton,
|
|
23
|
+
hasAction,
|
|
24
|
+
hasTitle,
|
|
25
|
+
isSticky,
|
|
26
|
+
theme
|
|
27
|
+
}) => ({
|
|
28
|
+
columnGap: theme.spacing(1),
|
|
29
|
+
minHeight: theme.spacing(6),
|
|
30
|
+
...hasAction && {
|
|
31
|
+
display: "grid",
|
|
32
|
+
gridTemplateAreas: content === "inline" || hasCloseButton ? `"icon message actions"` : `
|
|
33
|
+
"icon message"
|
|
34
|
+
"icon actions"
|
|
35
|
+
`,
|
|
36
|
+
gridTemplateColumns: hasCloseButton ? `${TablePaginationActions.ICON_SIZE_MEDIUM} 1fr ${theme.spacing(3)}` : `${TablePaginationActions.ICON_SIZE_MEDIUM}`
|
|
37
|
+
},
|
|
38
|
+
...isNeutral && {
|
|
39
|
+
backgroundColor: theme.palette.default.background,
|
|
40
|
+
color: theme.palette.text.primary
|
|
41
|
+
},
|
|
42
|
+
...isSticky && {
|
|
43
|
+
borderRadius: 0
|
|
44
|
+
},
|
|
45
|
+
".MuiAlert-message": {
|
|
46
|
+
flex: 1,
|
|
47
|
+
paddingTop: hasTitle ? theme.spacing(0.25) : theme.spacing(0.5),
|
|
48
|
+
"& a": {
|
|
49
|
+
color: theme.palette.primary.main,
|
|
50
|
+
textDecoration: "none",
|
|
51
|
+
"&:hover": {
|
|
52
|
+
textDecoration: "underline"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
...hasAction && {
|
|
56
|
+
gridArea: "message"
|
|
57
|
+
},
|
|
58
|
+
...isNeutral && {
|
|
59
|
+
"& :not(.MuiAlertTitle-root)": {
|
|
60
|
+
color: theme.palette.text.secondary
|
|
61
|
+
},
|
|
62
|
+
a: {
|
|
63
|
+
color: `${theme.palette.primary.main} !important`
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
".MuiAlert-icon": {
|
|
68
|
+
height: hasTitle ? theme.spacing(2.5) : theme.spacing(3),
|
|
69
|
+
marginRight: 0,
|
|
70
|
+
...hasAction && {
|
|
71
|
+
gridArea: "icon"
|
|
72
|
+
},
|
|
73
|
+
...isNeutral && {
|
|
74
|
+
color: theme.palette.text.primary
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
".MuiAlert-action": {
|
|
78
|
+
alignItems: content === "inline" && !hasCloseButton ? "center" : "flex-start",
|
|
79
|
+
margin: content === "block" && !hasCloseButton ? theme.spacing(1.5, 0, 0.5) : 0,
|
|
80
|
+
marginLeft: content === "inline" || hasCloseButton ? "auto" : 0,
|
|
81
|
+
padding: 0,
|
|
82
|
+
...hasAction && {
|
|
83
|
+
gridArea: "actions"
|
|
84
|
+
},
|
|
85
|
+
".MuiIconButton-root svg path": {
|
|
86
|
+
fill: hasCloseButton ? theme.palette.text.secondary : void 0
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
function _Alert({
|
|
92
|
+
title,
|
|
93
|
+
action,
|
|
94
|
+
severity = "neutral",
|
|
95
|
+
content = "inline",
|
|
96
|
+
variant = "standard",
|
|
97
|
+
children,
|
|
98
|
+
onClose,
|
|
99
|
+
open: controlledOpen,
|
|
100
|
+
isSticky,
|
|
101
|
+
...otherProps
|
|
102
|
+
}, ref) {
|
|
103
|
+
const [open, setOpen] = React.useState(controlledOpen ?? true);
|
|
104
|
+
const handleClose = onClose ? (ev) => {
|
|
105
|
+
onClose(ev);
|
|
106
|
+
setOpen(false);
|
|
107
|
+
} : void 0;
|
|
108
|
+
const isNeutral = severity === "neutral";
|
|
109
|
+
const isOpen = controlledOpen ?? open;
|
|
110
|
+
return /* @__PURE__ */ jsxRuntime.jsx(material.Fade, { in: isOpen, appear: false, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
111
|
+
StyledAlert,
|
|
112
|
+
{
|
|
113
|
+
ref,
|
|
114
|
+
severity: isNeutral ? "info" : severity,
|
|
115
|
+
isNeutral,
|
|
116
|
+
content,
|
|
117
|
+
action,
|
|
118
|
+
onClose: handleClose,
|
|
119
|
+
hasCloseButton: Boolean(onClose),
|
|
120
|
+
hasAction: Boolean(action),
|
|
121
|
+
hasTitle: Boolean(title),
|
|
122
|
+
isSticky,
|
|
123
|
+
variant,
|
|
124
|
+
"data-name": "alert",
|
|
125
|
+
"data-sticky": isSticky,
|
|
126
|
+
"data-content": content,
|
|
127
|
+
...otherProps,
|
|
128
|
+
children: [
|
|
129
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(material.AlertTitle, { children: title }),
|
|
130
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "inherit", component: "div", children })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
) });
|
|
134
|
+
}
|
|
135
|
+
const Alert = React.forwardRef(_Alert);
|
|
9
136
|
const ScreenReaderOnly = material.styled("span")(() => ({
|
|
10
137
|
position: "absolute",
|
|
11
138
|
width: 1,
|
|
@@ -169,133 +296,6 @@ function _Link({
|
|
|
169
296
|
);
|
|
170
297
|
}
|
|
171
298
|
const Link = React.forwardRef(_Link);
|
|
172
|
-
const StyledAlert = material.styled(material.Alert, {
|
|
173
|
-
shouldForwardProp: (prop) => ![
|
|
174
|
-
"isNeutral",
|
|
175
|
-
"content",
|
|
176
|
-
"hasCloseButton",
|
|
177
|
-
"hasAction",
|
|
178
|
-
"hasTitle",
|
|
179
|
-
"isSticky"
|
|
180
|
-
].includes(prop)
|
|
181
|
-
})(
|
|
182
|
-
({
|
|
183
|
-
isNeutral,
|
|
184
|
-
content,
|
|
185
|
-
hasCloseButton,
|
|
186
|
-
hasAction,
|
|
187
|
-
hasTitle,
|
|
188
|
-
isSticky,
|
|
189
|
-
theme
|
|
190
|
-
}) => ({
|
|
191
|
-
columnGap: theme.spacing(1),
|
|
192
|
-
minHeight: theme.spacing(6),
|
|
193
|
-
...hasAction && {
|
|
194
|
-
display: "grid",
|
|
195
|
-
gridTemplateAreas: content === "inline" || hasCloseButton ? `"icon message actions"` : `
|
|
196
|
-
"icon message"
|
|
197
|
-
"icon actions"
|
|
198
|
-
`,
|
|
199
|
-
gridTemplateColumns: hasCloseButton ? `${TablePaginationActions.ICON_SIZE_MEDIUM} 1fr ${theme.spacing(3)}` : `${TablePaginationActions.ICON_SIZE_MEDIUM}`
|
|
200
|
-
},
|
|
201
|
-
...isNeutral && {
|
|
202
|
-
backgroundColor: theme.palette.default.background,
|
|
203
|
-
color: theme.palette.text.primary
|
|
204
|
-
},
|
|
205
|
-
...isSticky && {
|
|
206
|
-
borderRadius: 0
|
|
207
|
-
},
|
|
208
|
-
".MuiAlert-message": {
|
|
209
|
-
flex: 1,
|
|
210
|
-
paddingTop: hasTitle ? theme.spacing(0.25) : theme.spacing(0.5),
|
|
211
|
-
"& a": {
|
|
212
|
-
color: theme.palette.primary.main,
|
|
213
|
-
textDecoration: "none",
|
|
214
|
-
"&:hover": {
|
|
215
|
-
textDecoration: "underline"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
...hasAction && {
|
|
219
|
-
gridArea: "message"
|
|
220
|
-
},
|
|
221
|
-
...isNeutral && {
|
|
222
|
-
"& :not(.MuiAlertTitle-root)": {
|
|
223
|
-
color: theme.palette.text.secondary
|
|
224
|
-
},
|
|
225
|
-
a: {
|
|
226
|
-
color: `${theme.palette.primary.main} !important`
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
".MuiAlert-icon": {
|
|
231
|
-
height: hasTitle ? theme.spacing(2.5) : theme.spacing(3),
|
|
232
|
-
marginRight: 0,
|
|
233
|
-
...hasAction && {
|
|
234
|
-
gridArea: "icon"
|
|
235
|
-
},
|
|
236
|
-
...isNeutral && {
|
|
237
|
-
color: theme.palette.text.primary
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
".MuiAlert-action": {
|
|
241
|
-
alignItems: content === "inline" && !hasCloseButton ? "center" : "flex-start",
|
|
242
|
-
margin: content === "block" && !hasCloseButton ? theme.spacing(1.5, 0, 0.5) : 0,
|
|
243
|
-
marginLeft: content === "inline" || hasCloseButton ? "auto" : 0,
|
|
244
|
-
padding: 0,
|
|
245
|
-
...hasAction && {
|
|
246
|
-
gridArea: "actions"
|
|
247
|
-
},
|
|
248
|
-
".MuiIconButton-root svg path": {
|
|
249
|
-
fill: hasCloseButton ? theme.palette.text.secondary : void 0
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
})
|
|
253
|
-
);
|
|
254
|
-
function _Alert({
|
|
255
|
-
title,
|
|
256
|
-
action,
|
|
257
|
-
severity = "neutral",
|
|
258
|
-
content = "inline",
|
|
259
|
-
variant = "standard",
|
|
260
|
-
children,
|
|
261
|
-
onClose,
|
|
262
|
-
open: controlledOpen,
|
|
263
|
-
isSticky,
|
|
264
|
-
...otherProps
|
|
265
|
-
}, ref) {
|
|
266
|
-
const [open, setOpen] = React.useState(controlledOpen ?? true);
|
|
267
|
-
const handleClose = onClose ? (ev) => {
|
|
268
|
-
onClose(ev);
|
|
269
|
-
setOpen(false);
|
|
270
|
-
} : void 0;
|
|
271
|
-
const isNeutral = severity === "neutral";
|
|
272
|
-
const isOpen = controlledOpen ?? open;
|
|
273
|
-
return /* @__PURE__ */ jsxRuntime.jsx(material.Fade, { in: isOpen, appear: false, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
274
|
-
StyledAlert,
|
|
275
|
-
{
|
|
276
|
-
ref,
|
|
277
|
-
severity: isNeutral ? "info" : severity,
|
|
278
|
-
isNeutral,
|
|
279
|
-
content,
|
|
280
|
-
action,
|
|
281
|
-
onClose: handleClose,
|
|
282
|
-
hasCloseButton: Boolean(onClose),
|
|
283
|
-
hasAction: Boolean(action),
|
|
284
|
-
hasTitle: Boolean(title),
|
|
285
|
-
isSticky,
|
|
286
|
-
variant,
|
|
287
|
-
"data-name": "alert",
|
|
288
|
-
"data-sticky": isSticky,
|
|
289
|
-
"data-content": content,
|
|
290
|
-
...otherProps,
|
|
291
|
-
children: [
|
|
292
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(material.AlertTitle, { children: title }),
|
|
293
|
-
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "inherit", component: "div", children })
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
) });
|
|
297
|
-
}
|
|
298
|
-
const Alert = React.forwardRef(_Alert);
|
|
299
299
|
exports.Alert = Alert;
|
|
300
300
|
exports.IconButton = IconButton;
|
|
301
301
|
exports.Link = Link;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
|
-
const TablePaginationActions = require("./TablePaginationActions-
|
|
5
|
+
const TablePaginationActions = require("./TablePaginationActions-D2K26kdR.cjs");
|
|
6
6
|
const StyledMenuItem = material.styled(material.MenuItem, {
|
|
7
7
|
shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
8
8
|
prop
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { styled, MenuItem as MenuItem$1 } from "@mui/material";
|
|
4
|
-
import { e as MENU_ITEM_SIZE_DENSE, f as MENU_ITEM_SIZE_EXTENDED } from "./TablePaginationActions-
|
|
4
|
+
import { e as MENU_ITEM_SIZE_DENSE, f as MENU_ITEM_SIZE_EXTENDED } from "./TablePaginationActions-CCDi-BO-.js";
|
|
5
5
|
const StyledMenuItem = styled(MenuItem$1, {
|
|
6
6
|
shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
7
7
|
prop
|
|
@@ -818,6 +818,8 @@ const en = {
|
|
|
818
818
|
save: "Save",
|
|
819
819
|
add: "Add",
|
|
820
820
|
showOptions: "Show options",
|
|
821
|
+
hide: "Hide",
|
|
822
|
+
show: "Show",
|
|
821
823
|
opensInNewTab: "Opens in new tab"
|
|
822
824
|
},
|
|
823
825
|
form: {
|
|
@@ -881,8 +883,6 @@ const en = {
|
|
|
881
883
|
},
|
|
882
884
|
legend: {
|
|
883
885
|
layerOptions: "Layer options",
|
|
884
|
-
hide: "Hide",
|
|
885
|
-
show: "Show",
|
|
886
886
|
layer: "layer",
|
|
887
887
|
opacity: "Opacity",
|
|
888
888
|
hideLayer: "Hide layer",
|
|
@@ -967,6 +967,8 @@ const es = {
|
|
|
967
967
|
save: "Guardar",
|
|
968
968
|
add: "Añadir",
|
|
969
969
|
showOptions: "Mostrar opciones",
|
|
970
|
+
hide: "Ocultar",
|
|
971
|
+
show: "Mostrar",
|
|
970
972
|
opensInNewTab: "Abre en una nueva pestaña"
|
|
971
973
|
},
|
|
972
974
|
form: {
|
|
@@ -1030,8 +1032,6 @@ const es = {
|
|
|
1030
1032
|
},
|
|
1031
1033
|
legend: {
|
|
1032
1034
|
layerOptions: "Opciones de capa",
|
|
1033
|
-
hide: "Ocultar",
|
|
1034
|
-
show: "Mostrar",
|
|
1035
1035
|
layer: "capa",
|
|
1036
1036
|
opacity: "Opacidad",
|
|
1037
1037
|
hideLayer: "Ocultar capa",
|
|
@@ -1114,6 +1114,8 @@ const id = {
|
|
|
1114
1114
|
save: "Simpan",
|
|
1115
1115
|
add: "Tambah",
|
|
1116
1116
|
showOptions: "Tampilkan opsi",
|
|
1117
|
+
hide: "Sembunyikan",
|
|
1118
|
+
show: "Tampilkan",
|
|
1117
1119
|
opensInNewTab: "Buka di tab baru"
|
|
1118
1120
|
},
|
|
1119
1121
|
form: {
|
|
@@ -1177,8 +1179,6 @@ const id = {
|
|
|
1177
1179
|
},
|
|
1178
1180
|
legend: {
|
|
1179
1181
|
layerOptions: "Opsi Layer",
|
|
1180
|
-
hide: "Sembunyikan",
|
|
1181
|
-
show: "Tampilkan",
|
|
1182
1182
|
layer: "layer",
|
|
1183
1183
|
opacity: "Opasitas",
|
|
1184
1184
|
hideLayer: "Sembunyikan layer",
|
|
@@ -819,6 +819,8 @@ const en = {
|
|
|
819
819
|
save: "Save",
|
|
820
820
|
add: "Add",
|
|
821
821
|
showOptions: "Show options",
|
|
822
|
+
hide: "Hide",
|
|
823
|
+
show: "Show",
|
|
822
824
|
opensInNewTab: "Opens in new tab"
|
|
823
825
|
},
|
|
824
826
|
form: {
|
|
@@ -882,8 +884,6 @@ const en = {
|
|
|
882
884
|
},
|
|
883
885
|
legend: {
|
|
884
886
|
layerOptions: "Layer options",
|
|
885
|
-
hide: "Hide",
|
|
886
|
-
show: "Show",
|
|
887
887
|
layer: "layer",
|
|
888
888
|
opacity: "Opacity",
|
|
889
889
|
hideLayer: "Hide layer",
|
|
@@ -968,6 +968,8 @@ const es = {
|
|
|
968
968
|
save: "Guardar",
|
|
969
969
|
add: "Añadir",
|
|
970
970
|
showOptions: "Mostrar opciones",
|
|
971
|
+
hide: "Ocultar",
|
|
972
|
+
show: "Mostrar",
|
|
971
973
|
opensInNewTab: "Abre en una nueva pestaña"
|
|
972
974
|
},
|
|
973
975
|
form: {
|
|
@@ -1031,8 +1033,6 @@ const es = {
|
|
|
1031
1033
|
},
|
|
1032
1034
|
legend: {
|
|
1033
1035
|
layerOptions: "Opciones de capa",
|
|
1034
|
-
hide: "Ocultar",
|
|
1035
|
-
show: "Mostrar",
|
|
1036
1036
|
layer: "capa",
|
|
1037
1037
|
opacity: "Opacidad",
|
|
1038
1038
|
hideLayer: "Ocultar capa",
|
|
@@ -1115,6 +1115,8 @@ const id = {
|
|
|
1115
1115
|
save: "Simpan",
|
|
1116
1116
|
add: "Tambah",
|
|
1117
1117
|
showOptions: "Tampilkan opsi",
|
|
1118
|
+
hide: "Sembunyikan",
|
|
1119
|
+
show: "Tampilkan",
|
|
1118
1120
|
opensInNewTab: "Buka di tab baru"
|
|
1119
1121
|
},
|
|
1120
1122
|
form: {
|
|
@@ -1178,8 +1180,6 @@ const id = {
|
|
|
1178
1180
|
},
|
|
1179
1181
|
legend: {
|
|
1180
1182
|
layerOptions: "Opsi Layer",
|
|
1181
|
-
hide: "Sembunyikan",
|
|
1182
|
-
show: "Tampilkan",
|
|
1183
1183
|
layer: "layer",
|
|
1184
1184
|
opacity: "Opasitas",
|
|
1185
1185
|
hideLayer: "Sembunyikan layer",
|