@carto/meridian-ds 2.7.0 → 2.8.0-alpha-empty-state.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/CHANGELOG.md +10 -1
- package/dist/{Alert-BfDnWlbD.js → Alert-BZPM5zpX.js} +1 -1
- package/dist/{Alert-CPvYAHO_.cjs → Alert-C4W0H_uN.cjs} +1 -1
- package/dist/{MenuItem-D90EfuGS.js → MenuItem-Cx5lTXXm.js} +16 -2
- package/dist/{MenuItem-ZSYcQBtg.cjs → MenuItem-DoBJsRR_.cjs} +15 -1
- package/dist/components/index.cjs +258 -93
- package/dist/components/index.js +267 -102
- package/dist/{css-utils-DjvM17Vb.cjs → css-utils-CH7es90t.cjs} +15 -0
- package/dist/{css-utils-BHYA7By_.js → css-utils-CjUBRJVK.js} +15 -0
- package/dist/custom-icons/index.cjs +296 -226
- package/dist/custom-icons/index.js +296 -226
- package/dist/theme/index.cjs +96 -24
- package/dist/theme/index.js +81 -9
- package/dist/types/components/CircularProgress/CircularProgress.d.ts +19 -0
- package/dist/types/components/CircularProgress/CircularProgress.d.ts.map +1 -0
- package/dist/types/components/CircularProgress/CircularProgress.stories.d.ts +72 -0
- package/dist/types/components/CircularProgress/CircularProgress.stories.d.ts.map +1 -0
- package/dist/types/components/CircularProgress/CircularProgress.test.d.ts +2 -0
- package/dist/types/components/CircularProgress/CircularProgress.test.d.ts.map +1 -0
- package/dist/types/components/CircularProgress/index.d.ts +3 -0
- package/dist/types/components/CircularProgress/index.d.ts.map +1 -0
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.d.ts +1 -1
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts +13 -0
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts +31 -0
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/types.d.ts +7 -1
- package/dist/types/components/Dialog/types.d.ts.map +1 -1
- package/dist/types/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/types/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/types/components/EmptyState/EmptyState.stories.d.ts +159 -0
- package/dist/types/components/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/dist/types/components/EmptyState/EmptyState.styled.d.ts +36 -0
- package/dist/types/components/EmptyState/EmptyState.styled.d.ts.map +1 -0
- package/dist/types/components/EmptyState/EmptyState.test.d.ts +2 -0
- package/dist/types/components/EmptyState/EmptyState.test.d.ts.map +1 -0
- package/dist/types/components/EmptyState/index.d.ts +3 -0
- package/dist/types/components/EmptyState/index.d.ts.map +1 -0
- package/dist/types/components/EmptyState/types.d.ts +82 -0
- package/dist/types/components/EmptyState/types.d.ts.map +1 -0
- package/dist/types/components/Loader/Loader.d.ts +4 -0
- package/dist/types/components/Loader/Loader.d.ts.map +1 -0
- package/dist/types/components/Loader/Loader.stories.d.ts +130 -0
- package/dist/types/components/Loader/Loader.stories.d.ts.map +1 -0
- package/dist/types/components/Loader/Loader.test.d.ts +2 -0
- package/dist/types/components/Loader/Loader.test.d.ts.map +1 -0
- package/dist/types/components/Loader/index.d.ts +3 -0
- package/dist/types/components/Loader/index.d.ts.map +1 -0
- package/dist/types/components/Loader/types.d.ts +40 -0
- package/dist/types/components/Loader/types.d.ts.map +1 -0
- package/dist/types/components/SearchField/SearchField.styled.d.ts.map +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -4
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/custom-icons/CreateFolder.d.ts +4 -0
- package/dist/types/custom-icons/CreateFolder.d.ts.map +1 -0
- package/dist/types/custom-icons/FolderEmpty.d.ts +4 -0
- package/dist/types/custom-icons/FolderEmpty.d.ts.map +1 -0
- package/dist/types/custom-icons/SelectFeature.d.ts.map +1 -1
- package/dist/types/custom-icons/index.d.ts +2 -0
- package/dist/types/custom-icons/index.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +5 -0
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +5 -0
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +5 -0
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +15 -0
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/types/theme/components/buttons.d.ts.map +1 -1
- package/dist/types/theme/components/forms.d.ts.map +1 -1
- package/dist/types/theme/components/stories/{Progress.stories.d.ts → LinearProgress.stories.d.ts} +12 -22
- package/dist/types/theme/components/stories/LinearProgress.stories.d.ts.map +1 -0
- package/dist/types/theme/types.d.ts +11 -0
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/types/utils/theme-utils.d.ts +16 -0
- package/dist/types/utils/theme-utils.d.ts.map +1 -1
- package/dist/widgets/index.cjs +2 -2
- package/dist/widgets/index.js +2 -2
- package/package.json +2 -2
- package/dist/types/theme/components/stories/Progress.stories.d.ts.map +0 -1
package/dist/theme/index.cjs
CHANGED
|
@@ -3,12 +3,12 @@ var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const material = require("@mui/material");
|
|
5
5
|
const paletteUtils = require("../palette-utils-B9ybmwiI.cjs");
|
|
6
|
+
const MenuItem = require("../MenuItem-DoBJsRR_.cjs");
|
|
6
7
|
const jsxRuntime = require("react/jsx-runtime");
|
|
7
|
-
const cssUtils = require("../css-utils-
|
|
8
|
+
const cssUtils = require("../css-utils-CH7es90t.cjs");
|
|
8
9
|
const iconsMaterial = require("@mui/icons-material");
|
|
9
10
|
const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
|
|
10
11
|
const xDatePickers = require("@mui/x-date-pickers");
|
|
11
|
-
const MenuItem = require("../MenuItem-ZSYcQBtg.cjs");
|
|
12
12
|
const themeShadows = [
|
|
13
13
|
"none",
|
|
14
14
|
// 0
|
|
@@ -44,11 +44,6 @@ const themeShadows = [
|
|
|
44
44
|
"0px 11px 15px -7px rgba(44, 48, 50, 0.12), 0px 24px 38px 3px rgba(44, 48, 50, 0.08), 0px 9px 46px 8px rgba(44, 48, 50, 0.04)"
|
|
45
45
|
// 24
|
|
46
46
|
];
|
|
47
|
-
function getPixelToRem(px) {
|
|
48
|
-
const fontBase = 16;
|
|
49
|
-
const rem = 1 / fontBase * px + "rem";
|
|
50
|
-
return rem;
|
|
51
|
-
}
|
|
52
47
|
const baseTypography = {
|
|
53
48
|
htmlFontSize: 16,
|
|
54
49
|
fontFamily: "Inter, sans-serif",
|
|
@@ -62,77 +57,77 @@ const baseTypography = {
|
|
|
62
57
|
h1: {
|
|
63
58
|
fontFamily: "Inter, sans-serif",
|
|
64
59
|
fontWeight: 600,
|
|
65
|
-
fontSize: getPixelToRem(96),
|
|
60
|
+
fontSize: MenuItem.getPixelToRem(96),
|
|
66
61
|
lineHeight: 1.167,
|
|
67
62
|
letterSpacing: "-1.5px"
|
|
68
63
|
},
|
|
69
64
|
h2: {
|
|
70
65
|
fontFamily: "Inter, sans-serif",
|
|
71
66
|
fontWeight: 600,
|
|
72
|
-
fontSize: getPixelToRem(60),
|
|
67
|
+
fontSize: MenuItem.getPixelToRem(60),
|
|
73
68
|
lineHeight: 1.2,
|
|
74
69
|
letterSpacing: "-0.5px"
|
|
75
70
|
},
|
|
76
71
|
h3: {
|
|
77
72
|
fontFamily: "Inter, sans-serif",
|
|
78
73
|
fontWeight: 600,
|
|
79
|
-
fontSize: getPixelToRem(48),
|
|
74
|
+
fontSize: MenuItem.getPixelToRem(48),
|
|
80
75
|
lineHeight: 1.167,
|
|
81
76
|
letterSpacing: 0
|
|
82
77
|
},
|
|
83
78
|
h4: {
|
|
84
79
|
fontFamily: "Inter, sans-serif",
|
|
85
80
|
fontWeight: 600,
|
|
86
|
-
fontSize: getPixelToRem(32),
|
|
81
|
+
fontSize: MenuItem.getPixelToRem(32),
|
|
87
82
|
lineHeight: 1.25,
|
|
88
83
|
letterSpacing: 0
|
|
89
84
|
},
|
|
90
85
|
h5: {
|
|
91
86
|
fontFamily: "Inter, sans-serif",
|
|
92
87
|
fontWeight: 600,
|
|
93
|
-
fontSize: getPixelToRem(24),
|
|
88
|
+
fontSize: MenuItem.getPixelToRem(24),
|
|
94
89
|
lineHeight: 1.167,
|
|
95
90
|
letterSpacing: 0
|
|
96
91
|
},
|
|
97
92
|
h6: {
|
|
98
93
|
fontFamily: "Inter, sans-serif",
|
|
99
94
|
fontWeight: 500,
|
|
100
|
-
fontSize: getPixelToRem(18),
|
|
95
|
+
fontSize: MenuItem.getPixelToRem(18),
|
|
101
96
|
lineHeight: 1.333,
|
|
102
97
|
letterSpacing: 0
|
|
103
98
|
},
|
|
104
99
|
subtitle1: {
|
|
105
100
|
fontFamily: "Inter, sans-serif",
|
|
106
101
|
fontWeight: 500,
|
|
107
|
-
fontSize: getPixelToRem(16),
|
|
102
|
+
fontSize: MenuItem.getPixelToRem(16),
|
|
108
103
|
lineHeight: 1.5,
|
|
109
104
|
letterSpacing: 0
|
|
110
105
|
},
|
|
111
106
|
subtitle2: {
|
|
112
107
|
fontFamily: "Inter, sans-serif",
|
|
113
108
|
fontWeight: 600,
|
|
114
|
-
fontSize: getPixelToRem(13),
|
|
109
|
+
fontSize: MenuItem.getPixelToRem(13),
|
|
115
110
|
lineHeight: 1.538,
|
|
116
111
|
letterSpacing: 0
|
|
117
112
|
},
|
|
118
113
|
body1: {
|
|
119
114
|
fontFamily: "Inter, sans-serif",
|
|
120
115
|
fontWeight: 400,
|
|
121
|
-
fontSize: getPixelToRem(16),
|
|
116
|
+
fontSize: MenuItem.getPixelToRem(16),
|
|
122
117
|
lineHeight: 1.5,
|
|
123
118
|
letterSpacing: 0
|
|
124
119
|
},
|
|
125
120
|
body2: {
|
|
126
121
|
fontFamily: "Inter, sans-serif",
|
|
127
122
|
fontWeight: 400,
|
|
128
|
-
fontSize: getPixelToRem(13),
|
|
123
|
+
fontSize: MenuItem.getPixelToRem(13),
|
|
129
124
|
lineHeight: 1.538,
|
|
130
125
|
letterSpacing: 0
|
|
131
126
|
},
|
|
132
127
|
button: {
|
|
133
128
|
fontFamily: "Inter, sans-serif",
|
|
134
129
|
fontWeight: 500,
|
|
135
|
-
fontSize: getPixelToRem(13),
|
|
130
|
+
fontSize: MenuItem.getPixelToRem(13),
|
|
136
131
|
lineHeight: 1.538,
|
|
137
132
|
letterSpacing: 0,
|
|
138
133
|
textTransform: "inherit"
|
|
@@ -140,14 +135,14 @@ const baseTypography = {
|
|
|
140
135
|
caption: {
|
|
141
136
|
fontFamily: "Inter, sans-serif",
|
|
142
137
|
fontWeight: 400,
|
|
143
|
-
fontSize: getPixelToRem(11),
|
|
138
|
+
fontSize: MenuItem.getPixelToRem(11),
|
|
144
139
|
lineHeight: 1.454,
|
|
145
140
|
letterSpacing: 0
|
|
146
141
|
},
|
|
147
142
|
overline: {
|
|
148
143
|
fontFamily: "Inter, sans-serif",
|
|
149
144
|
fontWeight: 500,
|
|
150
|
-
fontSize: getPixelToRem(10),
|
|
145
|
+
fontSize: MenuItem.getPixelToRem(10),
|
|
151
146
|
lineHeight: 1.2,
|
|
152
147
|
letterSpacing: "1.2px",
|
|
153
148
|
textTransform: "uppercase"
|
|
@@ -167,7 +162,7 @@ const customTypography = {
|
|
|
167
162
|
code1: {
|
|
168
163
|
fontFamily: '"Overpass Mono", monospace',
|
|
169
164
|
fontWeight: 400,
|
|
170
|
-
fontSize: getPixelToRem(16),
|
|
165
|
+
fontSize: MenuItem.getPixelToRem(16),
|
|
171
166
|
lineHeight: 1.5,
|
|
172
167
|
letterSpacing: 0,
|
|
173
168
|
fontVariantLigatures: "no-common-ligatures"
|
|
@@ -175,7 +170,7 @@ const customTypography = {
|
|
|
175
170
|
code2: {
|
|
176
171
|
fontFamily: '"Overpass Mono", monospace',
|
|
177
172
|
fontWeight: 400,
|
|
178
|
-
fontSize: getPixelToRem(14),
|
|
173
|
+
fontSize: MenuItem.getPixelToRem(14),
|
|
179
174
|
lineHeight: 1.428,
|
|
180
175
|
letterSpacing: 0,
|
|
181
176
|
fontVariantLigatures: "no-common-ligatures"
|
|
@@ -183,7 +178,7 @@ const customTypography = {
|
|
|
183
178
|
code3: {
|
|
184
179
|
fontFamily: '"Overpass Mono", monospace',
|
|
185
180
|
fontWeight: 400,
|
|
186
|
-
fontSize: getPixelToRem(12),
|
|
181
|
+
fontSize: MenuItem.getPixelToRem(12),
|
|
187
182
|
lineHeight: 1.333,
|
|
188
183
|
letterSpacing: 0,
|
|
189
184
|
fontVariantLigatures: "no-common-ligatures"
|
|
@@ -1213,7 +1208,7 @@ const buttonsOverrides = {
|
|
|
1213
1208
|
exclusive: true
|
|
1214
1209
|
},
|
|
1215
1210
|
styleOverrides: {
|
|
1216
|
-
root: ({ theme: theme2 }) => ({
|
|
1211
|
+
root: ({ theme: theme2, ownerState }) => ({
|
|
1217
1212
|
alignItems: "center",
|
|
1218
1213
|
justifyContent: "center",
|
|
1219
1214
|
borderRadius: theme2.spacing(1),
|
|
@@ -1241,6 +1236,75 @@ const buttonsOverrides = {
|
|
|
1241
1236
|
"& + .MuiDivider-root.MuiDivider-horizontal": {
|
|
1242
1237
|
width: sizeMedium
|
|
1243
1238
|
}
|
|
1239
|
+
},
|
|
1240
|
+
// Variant: contained
|
|
1241
|
+
...ownerState.variant === "contained" && {
|
|
1242
|
+
boxShadow: "none"
|
|
1243
|
+
},
|
|
1244
|
+
// Variant: unbounded
|
|
1245
|
+
...ownerState.variant === "unbounded" && {
|
|
1246
|
+
boxShadow: "none",
|
|
1247
|
+
borderRadius: theme2.spacing(0.5),
|
|
1248
|
+
"& .MuiDivider-root": {
|
|
1249
|
+
height: theme2.spacing(4),
|
|
1250
|
+
"&.MuiToggleButtonGroup-groupedHorizontal": {
|
|
1251
|
+
height: theme2.spacing(4)
|
|
1252
|
+
},
|
|
1253
|
+
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
1254
|
+
height: "auto",
|
|
1255
|
+
width: theme2.spacing(4),
|
|
1256
|
+
margin: `${theme2.spacing(0.5, 0, 1)} !important`,
|
|
1257
|
+
borderRadius: "0 !important"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
"& .MuiToggleButton-sizeSmall": {
|
|
1261
|
+
margin: 0,
|
|
1262
|
+
"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
1263
|
+
margin: 0
|
|
1264
|
+
},
|
|
1265
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
|
|
1266
|
+
height: theme2.spacing(3)
|
|
1267
|
+
},
|
|
1268
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
1269
|
+
height: "auto",
|
|
1270
|
+
width: theme2.spacing(3)
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
1274
|
+
margin: 0,
|
|
1275
|
+
"&:first-of-type": {
|
|
1276
|
+
marginLeft: 0
|
|
1277
|
+
},
|
|
1278
|
+
"&:not(:last-of-type)": {
|
|
1279
|
+
marginRight: theme2.spacing(0.5)
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
|
|
1283
|
+
".MuiToggleButtonGroup-grouped": {
|
|
1284
|
+
margin: theme2.spacing(0, 0.5)
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
|
|
1288
|
+
".MuiToggleButtonGroup-grouped": {
|
|
1289
|
+
margin: theme2.spacing(0, 0, 0.5),
|
|
1290
|
+
"&:not(:last-of-type)": {
|
|
1291
|
+
marginRight: 0
|
|
1292
|
+
},
|
|
1293
|
+
"&:last-of-type": {
|
|
1294
|
+
marginBottom: 0
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
// Background colors using data-attribute selector
|
|
1300
|
+
'&[data-background-color="primary"]': {
|
|
1301
|
+
backgroundColor: theme2.palette.background.paper
|
|
1302
|
+
},
|
|
1303
|
+
'&[data-background-color="secondary"]': {
|
|
1304
|
+
backgroundColor: theme2.palette.background.default
|
|
1305
|
+
},
|
|
1306
|
+
'&[data-background-color="transparent"]': {
|
|
1307
|
+
backgroundColor: "transparent"
|
|
1244
1308
|
}
|
|
1245
1309
|
}),
|
|
1246
1310
|
// Styles applied to the children if orientation="horizontal"
|
|
@@ -2230,6 +2294,14 @@ const formsOverrides = {
|
|
|
2230
2294
|
defaultProps: {
|
|
2231
2295
|
size: 40,
|
|
2232
2296
|
thickness: 4
|
|
2297
|
+
},
|
|
2298
|
+
styleOverrides: {
|
|
2299
|
+
root: ({ theme: theme2 }) => ({
|
|
2300
|
+
// Not using standard ownerState to avoid MUI error trying to access non-existent theme.palette.neutral.main
|
|
2301
|
+
'&[data-color="neutral"]': {
|
|
2302
|
+
color: theme2.palette.text.hint
|
|
2303
|
+
}
|
|
2304
|
+
})
|
|
2233
2305
|
}
|
|
2234
2306
|
},
|
|
2235
2307
|
// Slider
|
package/dist/theme/index.js
CHANGED
|
@@ -2,13 +2,13 @@ var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
|
2
2
|
import { alpha, Tooltip, responsiveFontSizes, createTheme } from "@mui/material";
|
|
3
3
|
import { c as commonPalette } from "../palette-utils-BHqJlHm9.js";
|
|
4
4
|
import { g } from "../palette-utils-BHqJlHm9.js";
|
|
5
|
+
import { g as getPixelToRem, M as MenuItem } from "../MenuItem-Cx5lTXXm.js";
|
|
5
6
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
6
|
-
import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, e as ellipsisStyles, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../css-utils-
|
|
7
|
-
import { h, N } from "../css-utils-
|
|
7
|
+
import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, e as ellipsisStyles, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../css-utils-CjUBRJVK.js";
|
|
8
|
+
import { h, N } from "../css-utils-CjUBRJVK.js";
|
|
8
9
|
import { Cancel, EventOutlined, ChevronRightOutlined, ChevronLeftOutlined, ExpandMoreOutlined, CheckCircleOutlined, InfoOutlined } from "@mui/icons-material";
|
|
9
10
|
import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
|
|
10
11
|
import { renderDigitalClockTimeView } from "@mui/x-date-pickers";
|
|
11
|
-
import { M as MenuItem } from "../MenuItem-D90EfuGS.js";
|
|
12
12
|
const themeShadows = [
|
|
13
13
|
"none",
|
|
14
14
|
// 0
|
|
@@ -44,11 +44,6 @@ const themeShadows = [
|
|
|
44
44
|
"0px 11px 15px -7px rgba(44, 48, 50, 0.12), 0px 24px 38px 3px rgba(44, 48, 50, 0.08), 0px 9px 46px 8px rgba(44, 48, 50, 0.04)"
|
|
45
45
|
// 24
|
|
46
46
|
];
|
|
47
|
-
function getPixelToRem(px) {
|
|
48
|
-
const fontBase = 16;
|
|
49
|
-
const rem = 1 / fontBase * px + "rem";
|
|
50
|
-
return rem;
|
|
51
|
-
}
|
|
52
47
|
const baseTypography = {
|
|
53
48
|
htmlFontSize: 16,
|
|
54
49
|
fontFamily: "Inter, sans-serif",
|
|
@@ -1213,7 +1208,7 @@ const buttonsOverrides = {
|
|
|
1213
1208
|
exclusive: true
|
|
1214
1209
|
},
|
|
1215
1210
|
styleOverrides: {
|
|
1216
|
-
root: ({ theme: theme2 }) => ({
|
|
1211
|
+
root: ({ theme: theme2, ownerState }) => ({
|
|
1217
1212
|
alignItems: "center",
|
|
1218
1213
|
justifyContent: "center",
|
|
1219
1214
|
borderRadius: theme2.spacing(1),
|
|
@@ -1241,6 +1236,75 @@ const buttonsOverrides = {
|
|
|
1241
1236
|
"& + .MuiDivider-root.MuiDivider-horizontal": {
|
|
1242
1237
|
width: sizeMedium
|
|
1243
1238
|
}
|
|
1239
|
+
},
|
|
1240
|
+
// Variant: contained
|
|
1241
|
+
...ownerState.variant === "contained" && {
|
|
1242
|
+
boxShadow: "none"
|
|
1243
|
+
},
|
|
1244
|
+
// Variant: unbounded
|
|
1245
|
+
...ownerState.variant === "unbounded" && {
|
|
1246
|
+
boxShadow: "none",
|
|
1247
|
+
borderRadius: theme2.spacing(0.5),
|
|
1248
|
+
"& .MuiDivider-root": {
|
|
1249
|
+
height: theme2.spacing(4),
|
|
1250
|
+
"&.MuiToggleButtonGroup-groupedHorizontal": {
|
|
1251
|
+
height: theme2.spacing(4)
|
|
1252
|
+
},
|
|
1253
|
+
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
1254
|
+
height: "auto",
|
|
1255
|
+
width: theme2.spacing(4),
|
|
1256
|
+
margin: `${theme2.spacing(0.5, 0, 1)} !important`,
|
|
1257
|
+
borderRadius: "0 !important"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
"& .MuiToggleButton-sizeSmall": {
|
|
1261
|
+
margin: 0,
|
|
1262
|
+
"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
1263
|
+
margin: 0
|
|
1264
|
+
},
|
|
1265
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
|
|
1266
|
+
height: theme2.spacing(3)
|
|
1267
|
+
},
|
|
1268
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
1269
|
+
height: "auto",
|
|
1270
|
+
width: theme2.spacing(3)
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
1274
|
+
margin: 0,
|
|
1275
|
+
"&:first-of-type": {
|
|
1276
|
+
marginLeft: 0
|
|
1277
|
+
},
|
|
1278
|
+
"&:not(:last-of-type)": {
|
|
1279
|
+
marginRight: theme2.spacing(0.5)
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
|
|
1283
|
+
".MuiToggleButtonGroup-grouped": {
|
|
1284
|
+
margin: theme2.spacing(0, 0.5)
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
|
|
1288
|
+
".MuiToggleButtonGroup-grouped": {
|
|
1289
|
+
margin: theme2.spacing(0, 0, 0.5),
|
|
1290
|
+
"&:not(:last-of-type)": {
|
|
1291
|
+
marginRight: 0
|
|
1292
|
+
},
|
|
1293
|
+
"&:last-of-type": {
|
|
1294
|
+
marginBottom: 0
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
// Background colors using data-attribute selector
|
|
1300
|
+
'&[data-background-color="primary"]': {
|
|
1301
|
+
backgroundColor: theme2.palette.background.paper
|
|
1302
|
+
},
|
|
1303
|
+
'&[data-background-color="secondary"]': {
|
|
1304
|
+
backgroundColor: theme2.palette.background.default
|
|
1305
|
+
},
|
|
1306
|
+
'&[data-background-color="transparent"]': {
|
|
1307
|
+
backgroundColor: "transparent"
|
|
1244
1308
|
}
|
|
1245
1309
|
}),
|
|
1246
1310
|
// Styles applied to the children if orientation="horizontal"
|
|
@@ -2230,6 +2294,14 @@ const formsOverrides = {
|
|
|
2230
2294
|
defaultProps: {
|
|
2231
2295
|
size: 40,
|
|
2232
2296
|
thickness: 4
|
|
2297
|
+
},
|
|
2298
|
+
styleOverrides: {
|
|
2299
|
+
root: ({ theme: theme2 }) => ({
|
|
2300
|
+
// Not using standard ownerState to avoid MUI error trying to access non-existent theme.palette.neutral.main
|
|
2301
|
+
'&[data-color="neutral"]': {
|
|
2302
|
+
color: theme2.palette.text.hint
|
|
2303
|
+
}
|
|
2304
|
+
})
|
|
2233
2305
|
}
|
|
2234
2306
|
},
|
|
2235
2307
|
// Slider
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CircularProgressProps as MuiCircularProgressProps } from '@mui/material';
|
|
2
|
+
export type CircularProgressProps = Omit<MuiCircularProgressProps, 'color' | 'ref'> & {
|
|
3
|
+
/**
|
|
4
|
+
* The color of the component.
|
|
5
|
+
* It supports primary, secondary, error, info, success, warning and neutral colors.
|
|
6
|
+
* @default 'primary'
|
|
7
|
+
*/
|
|
8
|
+
color?: MuiCircularProgressProps['color'] | 'neutral';
|
|
9
|
+
};
|
|
10
|
+
declare const CircularProgress: import('react').ForwardRefExoticComponent<Omit<MuiCircularProgressProps, "color" | "ref"> & {
|
|
11
|
+
/**
|
|
12
|
+
* The color of the component.
|
|
13
|
+
* It supports primary, secondary, error, info, success, warning and neutral colors.
|
|
14
|
+
* @default 'primary'
|
|
15
|
+
*/
|
|
16
|
+
color?: MuiCircularProgressProps["color"] | "neutral";
|
|
17
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
export default CircularProgress;
|
|
19
|
+
//# sourceMappingURL=CircularProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularProgress.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgress/CircularProgress.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,qBAAqB,IAAI,wBAAwB,EAClD,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,wBAAwB,EACxB,OAAO,GAAG,KAAK,CAChB,GAAG;IACF;;;;OAIG;IACH,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS,CAAA;CACtD,CAAA;AA+BD,QAAA,MAAM,gBAAgB;IArCpB;;;;OAIG;YACK,wBAAwB,CAAC,OAAO,CAAC,GAAG,SAAS;mDAkCtD,CAAA;AACD,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CircularProgressProps } from './CircularProgress';
|
|
2
|
+
declare const options: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('@mui/material').CircularProgressProps, "color" | "ref"> & {
|
|
5
|
+
color?: import('@mui/material').CircularProgressProps["color"] | "neutral";
|
|
6
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {
|
|
9
|
+
color: {
|
|
10
|
+
control: "select";
|
|
11
|
+
options: string[];
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
control: "select";
|
|
15
|
+
options: number[];
|
|
16
|
+
};
|
|
17
|
+
thickness: {
|
|
18
|
+
control: "number";
|
|
19
|
+
};
|
|
20
|
+
variant: {
|
|
21
|
+
control: "select";
|
|
22
|
+
options: string[];
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
control: "number";
|
|
26
|
+
if: {
|
|
27
|
+
arg: string;
|
|
28
|
+
eq: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
args: {
|
|
33
|
+
color: string;
|
|
34
|
+
size: number;
|
|
35
|
+
thickness: number;
|
|
36
|
+
variant: string;
|
|
37
|
+
};
|
|
38
|
+
parameters: {
|
|
39
|
+
design: {
|
|
40
|
+
type: string;
|
|
41
|
+
url: string;
|
|
42
|
+
};
|
|
43
|
+
status: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
chromatic: {
|
|
47
|
+
diffThreshold: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export default options;
|
|
52
|
+
export declare const Playground: {
|
|
53
|
+
render: (args: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
parameters: {
|
|
55
|
+
chromatic: {
|
|
56
|
+
disableSnapshot: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const Color: {
|
|
61
|
+
render: (args: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
};
|
|
63
|
+
export declare const Size: {
|
|
64
|
+
render: (args: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
};
|
|
66
|
+
export declare const Thickness: {
|
|
67
|
+
render: (args: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
};
|
|
69
|
+
export declare const Variant: {
|
|
70
|
+
render: (args: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=CircularProgress.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularProgress.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgress/CircularProgress.stories.tsx"],"names":[],"mappings":"AAEA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAG5E,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDG,CAAA;AAChB,eAAe,OAAO,CAAA;AAiGtB,eAAO,MAAM,UAAU;mBA/FC,qBAAqB;;;;;;CAoG5C,CAAA;AAED,eAAO,MAAM,KAAK;mBApGW,qBAAqB;CAsGjD,CAAA;AAED,eAAO,MAAM,IAAI;mBA5EW,qBAAqB;CA8EhD,CAAA;AAED,eAAO,MAAM,SAAS;mBA7DW,qBAAqB;CA+DrD,CAAA;AAED,eAAO,MAAM,OAAO;mBA5CW,qBAAqB;CA8CnD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularProgress.test.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgress/CircularProgress.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAChE,mBAAmB,oBAAoB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DialogConfirmationProps } from '../types';
|
|
2
|
-
declare function DialogConfirmation({ children, onClickAway, actions, severity, opened, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...alertProps }: DialogConfirmationProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function DialogConfirmation({ children, onClickAway, actions, severity, opened, 'data-testid': dataTestId, 'aria-label': ariaLabel, slideProps, ...alertProps }: DialogConfirmationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DialogConfirmation;
|
|
4
4
|
//# sourceMappingURL=DialogConfirmation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogConfirmation/DialogConfirmation.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAiClD,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAoB,EACpB,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,UAAU,EACd,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"DialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogConfirmation/DialogConfirmation.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAiClD,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAoB,EACpB,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,UAAU,EACV,GAAG,UAAU,EACd,EAAE,uBAAuB,2CA8CzB;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -17,6 +17,12 @@ declare const options: {
|
|
|
17
17
|
type: "select";
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
slideProps: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "object";
|
|
23
|
+
};
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
20
26
|
};
|
|
21
27
|
args: {
|
|
22
28
|
severity: "warning";
|
|
@@ -36,4 +42,11 @@ export default options;
|
|
|
36
42
|
export declare const Playground: {
|
|
37
43
|
render: ({ severity, content, title, ...dialogProps }: DialogProps & AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
44
|
};
|
|
45
|
+
export declare const CustomSlideProps: {
|
|
46
|
+
render: ({ severity, content, title, ...dialogProps }: DialogProps & AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
args: {
|
|
48
|
+
severity: string;
|
|
49
|
+
title: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
39
52
|
//# sourceMappingURL=DialogConfirmation.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogConfirmation.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogConfirmation/DialogConfirmation.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAML,kBAAkB,EAClB,UAAU,EACX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"DialogConfirmation.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogConfirmation/DialogConfirmation.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAML,kBAAkB,EAClB,UAAU,EACX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC8B,CAAA;AAE3C,eAAe,OAAO,CAAA;AA0EtB,eAAO,MAAM,UAAU;2DAnEpB,WAAW,GAAG,UAAU;CAqE1B,CAAA;AAyED,eAAO,MAAM,gBAAgB;2DAlE1B,WAAW,GAAG,UAAU;;;;;CAwE1B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DialogHeaderProps } from '../types';
|
|
2
|
-
declare function DialogHeader({ title, chipLabel, chipProps, children, onClose, secondaryActions, 'aria-label': ariaLabel, closeIcon, closeTooltipText, ...otherProps }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function DialogHeader({ title, chipLabel, chipProps, children, onClose, secondaryActions, 'aria-label': ariaLabel, closeIcon, closeTooltipText, tooltipProps, iconButtonProps, ...otherProps }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DialogHeader;
|
|
4
4
|
//# sourceMappingURL=DialogHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogHeader/DialogHeader.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAgC5C,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,gBAAgB,EAChB,GAAG,UAAU,EACd,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogHeader/DialogHeader.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAgC5C,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,GAAG,UAAU,EACd,EAAE,iBAAiB,2CAiDnB;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -3,6 +3,20 @@ declare const options: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: typeof DialogHeader;
|
|
5
5
|
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
tooltipProps: {
|
|
8
|
+
control: {
|
|
9
|
+
type: "object";
|
|
10
|
+
};
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
iconButtonProps: {
|
|
14
|
+
control: {
|
|
15
|
+
type: "object";
|
|
16
|
+
};
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
6
20
|
args: {
|
|
7
21
|
title: string;
|
|
8
22
|
onClose: () => undefined;
|
|
@@ -54,4 +68,21 @@ export declare const CustomCloseTooltipText: {
|
|
|
54
68
|
};
|
|
55
69
|
};
|
|
56
70
|
};
|
|
71
|
+
export declare const CustomTooltipProps: {
|
|
72
|
+
args: {
|
|
73
|
+
tooltipProps: {
|
|
74
|
+
arrow: boolean;
|
|
75
|
+
placement: string;
|
|
76
|
+
enterDelay: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const CustomIconButtonProps: {
|
|
81
|
+
args: {
|
|
82
|
+
iconButtonProps: {
|
|
83
|
+
color: string;
|
|
84
|
+
size: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
57
88
|
//# sourceMappingURL=DialogHeader.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogHeader.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogHeader/DialogHeader.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiB,MAAM,cAAc,CAAA;AAG1D,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"DialogHeader.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/DialogHeader/DialogHeader.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiB,MAAM,cAAc,CAAA;AAG1D,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BwB,CAAA;AAErC,eAAe,OAAO,CAAA;AAEtB,eAAO,MAAM,UAAU,IAAK,CAAA;AAE5B,eAAO,MAAM,eAAe;;;;CAQ3B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;CAMpB,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;CAQhC,CAAA;AAED,eAAO,MAAM,YAAY;;;;CASxB,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAclC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;CAQ9B,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;CAOjC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ChipProps, DialogProps as MuiDialogProps, DialogContentProps as MuiDialogContentProps, DialogActionsProps as MuiDialogActionsProps, DialogTitleProps as MuiDialogTitleProps } from '@mui/material';
|
|
2
|
+
import { ChipProps, DialogProps as MuiDialogProps, DialogContentProps as MuiDialogContentProps, DialogActionsProps as MuiDialogActionsProps, DialogTitleProps as MuiDialogTitleProps, TooltipProps, IconButtonProps, SlideProps } from '@mui/material';
|
|
3
3
|
import { AlertProps } from '../Alert/Alert';
|
|
4
4
|
export type DialogSize = 'small' | 'medium' | 'large' | 'xlarge';
|
|
5
5
|
export interface DialogProps extends MuiDialogProps {
|
|
@@ -61,6 +61,10 @@ export type DialogHeaderProps = Omit<MuiDialogTitleProps, 'title'> & {
|
|
|
61
61
|
ariaLabel?: string;
|
|
62
62
|
closeIcon?: ReactNode;
|
|
63
63
|
closeTooltipText?: string;
|
|
64
|
+
/** Props to pass to the Tooltip component around the close button */
|
|
65
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
66
|
+
/** Props to pass to the IconButton component for the close button */
|
|
67
|
+
iconButtonProps?: Partial<Omit<IconButtonProps, 'children'>>;
|
|
64
68
|
};
|
|
65
69
|
export interface DialogStepperProps {
|
|
66
70
|
currentStep: number;
|
|
@@ -71,5 +75,7 @@ export type DialogConfirmationProps = AlertProps & {
|
|
|
71
75
|
actions: ReactNode;
|
|
72
76
|
opened: boolean;
|
|
73
77
|
'data-testid'?: string;
|
|
78
|
+
/** Props to pass to the Slide component for animation customization */
|
|
79
|
+
slideProps?: Partial<Omit<SlideProps, 'in' | 'container' | 'children'>>;
|
|
74
80
|
};
|
|
75
81
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EACL,SAAS,EACT,WAAW,IAAI,cAAc,EAC7B,kBAAkB,IAAI,qBAAqB,EAC3C,kBAAkB,IAAI,qBAAqB,EAC3C,gBAAgB,IAAI,mBAAmB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EACL,SAAS,EACT,WAAW,IAAI,cAAc,EAC7B,kBAAkB,IAAI,qBAAqB,EAC3C,kBAAkB,IAAI,qBAAqB,EAC3C,gBAAgB,IAAI,mBAAmB,EACvC,YAAY,EACZ,eAAe,EACf,UAAU,EACX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEhE,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;SAEK;IACL,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;SAEK;IACL,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;SAEK;IACL,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG;IACtD,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IACnE,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qEAAqE;IACrE,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IACpC,qEAAqE;IACrE,eAAe,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAA;CAC7D,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,EAAE,CAAA;CACtB;AAED,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG;IACjD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,OAAO,EAAE,SAAS,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,CAAC,CAAA;CACxE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAmGzC,QAAA,MAAM,UAAU,4GAA2D,CAAA;AAC3E,eAAe,UAAU,CAAA"}
|