@comet/admin 9.0.0-canary-20251013121422 → 9.0.0-canary-20251113142723
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/lib/EditDialog.js +1 -3
- package/lib/EditDialogApiContext.d.ts +3 -0
- package/lib/EditDialogApiContext.d.ts.map +1 -1
- package/lib/alert/Alert.d.ts +25 -0
- package/lib/alert/Alert.d.ts.map +1 -1
- package/lib/alert/Alert.js +6 -0
- package/lib/alert/__stories__/Alert.stories.js +157 -0
- package/lib/common/Tooltip.d.ts.map +1 -1
- package/lib/common/Tooltip.js +40 -17
- package/lib/common/buttons/Button.d.ts +6 -1
- package/lib/common/buttons/Button.d.ts.map +1 -1
- package/lib/common/buttons/delete/__stories__/DeleteButton.stories.js +14 -0
- package/lib/dataGrid/GridFilterButton.d.ts.map +1 -1
- package/lib/dataGrid/GridFilterButton.js +11 -1
- package/lib/error/errordialog/createErrorDialogApolloLink.js +4 -3
- package/lib/form/Autocomplete.d.ts +1 -1
- package/lib/form/Autocomplete.d.ts.map +1 -1
- package/lib/form/Autocomplete.js +2 -1
- package/lib/form/FinalFormSelect.d.ts +1 -1
- package/lib/form/FinalFormSelect.d.ts.map +1 -1
- package/lib/form/FinalFormSelect.js +2 -1
- package/lib/fullPageAlert/FullPageAlert.d.ts +1 -2
- package/lib/fullPageAlert/FullPageAlert.d.ts.map +1 -1
- package/lib/fullPageAlert/FullPageAlert.js +7 -6
- package/lib/fullPageAlert/FullPageAlert.styles.d.ts +0 -8
- package/lib/fullPageAlert/FullPageAlert.styles.d.ts.map +1 -1
- package/lib/fullPageAlert/FullPageAlert.styles.js +7 -11
- package/lib/router/ConfirmationDialog.d.ts.map +1 -1
- package/lib/router/ConfirmationDialog.js +1 -2
- package/lib/vendor.d.js +1 -0
- package/package.json +20 -11
package/lib/EditDialog.js
CHANGED
|
@@ -98,9 +98,7 @@ var EditDialogInner = function EditDialogInner(_ref) {
|
|
|
98
98
|
setTimeout(function () {
|
|
99
99
|
// TODO DirtyHandler removal: do we need a onReset functionality here?
|
|
100
100
|
if (!disableCloseAfterSave) {
|
|
101
|
-
api.closeDialog(
|
|
102
|
-
delay: true
|
|
103
|
-
});
|
|
101
|
+
api.closeDialog();
|
|
104
102
|
}
|
|
105
103
|
});
|
|
106
104
|
onAfterSave === null || onAfterSave === void 0 || onAfterSave();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditDialogApiContext.d.ts","sourceRoot":"","sources":["../src/EditDialogApiContext.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,oBAAoB,gDAA6C,CAAC;AAC/E,wBAAgB,gBAAgB,0BAE/B"}
|
|
1
|
+
{"version":3,"file":"EditDialogApiContext.d.ts","sourceRoot":"","sources":["../src/EditDialogApiContext.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,oBAAoB,gDAA6C,CAAC;AAC/E,wBAAgB,gBAAgB,0BAE/B"}
|
package/lib/alert/Alert.d.ts
CHANGED
|
@@ -8,13 +8,38 @@ export interface AlertProps extends ThemedComponentBaseProps<{
|
|
|
8
8
|
action: "div";
|
|
9
9
|
closeIcon: typeof IconButton;
|
|
10
10
|
}> {
|
|
11
|
+
/**
|
|
12
|
+
* The severity level of the alert
|
|
13
|
+
* - 'info' (default): For general information or neutral messages
|
|
14
|
+
* - 'success': For successful operations or positive feedback
|
|
15
|
+
* - 'warning': For warnings that require attention but aren't critical
|
|
16
|
+
* - 'error': For critical issues or failed operations
|
|
17
|
+
*/
|
|
11
18
|
severity?: "info" | "warning" | "error" | "success";
|
|
12
19
|
title?: ReactNode;
|
|
13
20
|
children?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Callback fired when the close icon is clicked.
|
|
23
|
+
*
|
|
24
|
+
* If `onClose` is provided, a close icon button will be displayed in the alert.
|
|
25
|
+
*/
|
|
14
26
|
onClose?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* The action to display in the alert.
|
|
29
|
+
*
|
|
30
|
+
* This can be used to provide additional actions for the user to take, such as buttons or links.
|
|
31
|
+
*
|
|
32
|
+
* If the title is provided, the action will be displayed below the title and text. If no title is provided, the action will be displayed to the right of the text.
|
|
33
|
+
*/
|
|
15
34
|
action?: ReactNode;
|
|
16
35
|
}
|
|
17
36
|
export type AlertClassKey = "root" | "title" | "text" | "action" | "closeIcon" | "hasTitle" | "singleRow";
|
|
37
|
+
/**
|
|
38
|
+
* The Alert component is used to display important messages to the user. It provides different severity levels
|
|
39
|
+
* and custom content, actions and close functionality to communicate various types of information.
|
|
40
|
+
*
|
|
41
|
+
* - Use for feedback messages, notifications, or status updates
|
|
42
|
+
*/
|
|
18
43
|
export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
44
|
declare module "@mui/material/styles" {
|
|
20
45
|
interface ComponentsPropsList {
|
package/lib/alert/Alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/alert/Alert.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAgB,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpG,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAEpF,MAAM,WAAW,UACb,SAAQ,wBAAwB,CAAC;IAC7B,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,IAAI,EAAE,OAAO,UAAU,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,OAAO,UAAU,CAAC;CAChC,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACpD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/alert/Alert.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAgB,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpG,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAEpF,MAAM,WAAW,UACb,SAAQ,wBAAwB,CAAC;IAC7B,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,IAAI,EAAE,OAAO,UAAU,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,OAAO,UAAU,CAAC;CAChC,CAAC;IACF;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACpD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAO1G;;;;;GAKG;AACH,eAAO,MAAM,KAAK,uGAmChB,CAAC;AAoFH,OAAO,QAAQ,sBAAsB,CAAC;IAClC,UAAU,mBAAmB;QACzB,eAAe,EAAE,UAAU,CAAC;KAC/B;IAED,UAAU,uBAAuB;QAC7B,eAAe,EAAE,aAAa,CAAC;KAClC;IAED,UAAU,UAAU;QAChB,eAAe,CAAC,EAAE;YACd,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAC/D,cAAc,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;SAC/D,CAAC;KACL;CACJ"}
|
package/lib/alert/Alert.js
CHANGED
|
@@ -21,6 +21,12 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
21
21
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
22
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
23
23
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
24
|
+
/**
|
|
25
|
+
* The Alert component is used to display important messages to the user. It provides different severity levels
|
|
26
|
+
* and custom content, actions and close functionality to communicate various types of information.
|
|
27
|
+
*
|
|
28
|
+
* - Use for feedback messages, notifications, or status updates
|
|
29
|
+
*/
|
|
24
30
|
var Alert = exports.Alert = /*#__PURE__*/(0, _react.forwardRef)(function (inProps, ref) {
|
|
25
31
|
var _useThemeProps = (0, _styles.useThemeProps)({
|
|
26
32
|
props: inProps,
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.WithTitle = exports.WithCustomContent = exports.WithClose = exports.WithAction = exports.SeverityWarning = exports.SeveritySuccess = exports.SeverityError = exports.Default = void 0;
|
|
7
|
+
var _adminIcons = require("@comet/admin-icons");
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _system = require("@mui/system");
|
|
10
|
+
var _Button = require("../../common/buttons/Button");
|
|
11
|
+
var _Alert = require("../Alert");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var config = {
|
|
14
|
+
component: _Alert.Alert,
|
|
15
|
+
title: "components/alert/Alert"
|
|
16
|
+
};
|
|
17
|
+
var _default = exports["default"] = config;
|
|
18
|
+
/**
|
|
19
|
+
* The basic Alert component displays a simple informative message.
|
|
20
|
+
*
|
|
21
|
+
* Use this for general notifications that don't require additional context or user action.
|
|
22
|
+
*/
|
|
23
|
+
var Default = exports.Default = {
|
|
24
|
+
args: {
|
|
25
|
+
children: "Description"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Alert with a title and longer description.
|
|
31
|
+
* - The message requires more context or hierarchy
|
|
32
|
+
* - You need to separate the main message (title) from supporting details
|
|
33
|
+
* - The information needs to be more structured
|
|
34
|
+
*/
|
|
35
|
+
var WithTitle = exports.WithTitle = {
|
|
36
|
+
args: {
|
|
37
|
+
title: "Title",
|
|
38
|
+
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vel vehicula est. Nunc congue velit sem, ac porttitor massa semper nec. Proin quis volutpat magna. Mauris eget libero et mi imperdiet ultrices. Donec eget interdum odio. Maecenas blandit ipsum et eros tempus porttitor. Aliquam erat volutpat."
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The Alert supports different severity levels to convey the importance and nature of the message.
|
|
44
|
+
*
|
|
45
|
+
* Use "warning" severity when:
|
|
46
|
+
* - The user should be cautioned about a potential issue
|
|
47
|
+
* - An action might have unexpected consequences
|
|
48
|
+
* - Something requires the user's attention but isn't critical
|
|
49
|
+
*
|
|
50
|
+
* Each severity level uses distinct colors and icons to help users quickly recognize the message type.
|
|
51
|
+
*/
|
|
52
|
+
var SeverityWarning = exports.SeverityWarning = {
|
|
53
|
+
args: {
|
|
54
|
+
title: "Warning",
|
|
55
|
+
children: "Description",
|
|
56
|
+
severity: "warning"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Use "error" severity to communicate:
|
|
62
|
+
* - Critical issues that need immediate attention
|
|
63
|
+
* - Failed operations or validation errors
|
|
64
|
+
* - Problems that prevent the user from proceeding
|
|
65
|
+
*/
|
|
66
|
+
var SeverityError = exports.SeverityError = {
|
|
67
|
+
args: {
|
|
68
|
+
title: "Error",
|
|
69
|
+
children: "Description",
|
|
70
|
+
severity: "error"
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Use "success" severity to provide positive feedback:
|
|
76
|
+
* - Successful form submissions
|
|
77
|
+
* - Completed operations
|
|
78
|
+
* - Confirmed actions
|
|
79
|
+
*/
|
|
80
|
+
var SeveritySuccess = exports.SeveritySuccess = {
|
|
81
|
+
args: {
|
|
82
|
+
title: "Success",
|
|
83
|
+
children: "Description",
|
|
84
|
+
severity: "success"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Alerts can include interactive elements through the action prop.
|
|
90
|
+
*
|
|
91
|
+
* Use this when:
|
|
92
|
+
* - The user needs to take a specific action
|
|
93
|
+
* - You want to provide a direct link to related content
|
|
94
|
+
* - Additional options need to be presented
|
|
95
|
+
*/
|
|
96
|
+
var WithAction = exports.WithAction = {
|
|
97
|
+
args: {
|
|
98
|
+
children: "Description",
|
|
99
|
+
action: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
100
|
+
variant: "textDark",
|
|
101
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.ArrowRight, {}),
|
|
102
|
+
children: "Action Text"
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Closeable alerts give users control over their interface.
|
|
109
|
+
* Use this when:
|
|
110
|
+
* - The alert information is temporary
|
|
111
|
+
* - Users should be able to dismiss notifications
|
|
112
|
+
* - You want to reduce interface clutter
|
|
113
|
+
*/
|
|
114
|
+
var WithClose = exports.WithClose = {
|
|
115
|
+
args: {
|
|
116
|
+
children: "Description",
|
|
117
|
+
onClose: function onClose() {
|
|
118
|
+
alert("Close clicked");
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The Alert component supports custom content as children.
|
|
125
|
+
*
|
|
126
|
+
* Use this when you need to:
|
|
127
|
+
* - Display complex information hierarchies
|
|
128
|
+
* - Include images or custom layouts
|
|
129
|
+
* - Create more engaging notifications
|
|
130
|
+
*/
|
|
131
|
+
var WithCustomContent = exports.WithCustomContent = {
|
|
132
|
+
args: {
|
|
133
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
134
|
+
display: "flex",
|
|
135
|
+
gap: 4,
|
|
136
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
137
|
+
sx: {
|
|
138
|
+
width: 150,
|
|
139
|
+
height: 150
|
|
140
|
+
},
|
|
141
|
+
component: "img",
|
|
142
|
+
src: "https://picsum.photos/id/38/300/300"
|
|
143
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_system.Stack, {
|
|
144
|
+
gap: 2,
|
|
145
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
146
|
+
variant: "h4",
|
|
147
|
+
component: "span",
|
|
148
|
+
children: "Custom Title"
|
|
149
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Typography, {
|
|
150
|
+
children: ["This is a ", /*#__PURE__*/(0, _jsxRuntime.jsx)("strong", {
|
|
151
|
+
children: "custom content"
|
|
152
|
+
}), " inside the Alert."]
|
|
153
|
+
})]
|
|
154
|
+
})]
|
|
155
|
+
})
|
|
156
|
+
}
|
|
157
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/common/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,mBAAmB,EAExB,KAAK,KAAK,EAIV,KAAK,eAAe,IAAI,kBAAkB,EAC1C,KAAK,YAAY,IAAI,eAAe,EACpC,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAEpF,KAAK,SAAS,GAAG,eAAe,CAAC,WAAW,CAAC,GACzC,wBA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AAM,WAAW,YAAa,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,OAAO,CAAC;IAC9E,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,KAAK,IAAI,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AACtC,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAChE,KAAK,cAAc,GAAG,cAAc,CAAC;AAErC,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,KAAK,GAAG,cAAc,GAAG,kBAAkB,CAAC;AA2IjF,eAAO,MAAM,OAAO,GAAI,SAAS,YAAY,4CAgD5C,CAAC;AAkCF,OAAO,QAAQ,sBAAsB,CAAC;IAClC,UAAU,mBAAmB;QACzB,iBAAiB,EAAE,YAAY,CAAC;KACnC;IAED,UAAU,uBAAuB;QAC7B,iBAAiB,EAAE,eAAe,CAAC;KACtC;IAED,UAAU,UAAU;QAChB,iBAAiB,CAAC,EAAE;YAChB,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,CAAC,CAAC;YACjE,cAAc,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC,CAAC;SACpE,CAAC;KACL;CACJ"}
|
package/lib/common/Tooltip.js
CHANGED
|
@@ -92,23 +92,17 @@ var Tooltip = exports.Tooltip = function Tooltip(inProps) {
|
|
|
92
92
|
var titleSlotProps = slotProps.title,
|
|
93
93
|
textSlotProps = slotProps.text,
|
|
94
94
|
muiSlotProps = _objectWithoutProperties(slotProps, _excluded2);
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
variant: "body2"
|
|
107
|
-
}, textSlotProps), {}, {
|
|
108
|
-
children: title
|
|
109
|
-
}));
|
|
110
|
-
var commonTooltipProps = _objectSpread(_objectSpread({}, restProps), {}, {
|
|
111
|
-
title: tooltipContent,
|
|
95
|
+
var commonTooltipProps = _objectSpread(_objectSpread({
|
|
96
|
+
tabIndex: 0
|
|
97
|
+
}, restProps), {}, {
|
|
98
|
+
title: getMuiTooltipTitle({
|
|
99
|
+
title: title,
|
|
100
|
+
description: description,
|
|
101
|
+
customContent: customContent
|
|
102
|
+
}, {
|
|
103
|
+
title: titleSlotProps,
|
|
104
|
+
text: textSlotProps
|
|
105
|
+
}),
|
|
112
106
|
disableInteractive: disableInteractive,
|
|
113
107
|
arrow: arrow,
|
|
114
108
|
ownerState: ownerState,
|
|
@@ -126,4 +120,33 @@ var Tooltip = exports.Tooltip = function Tooltip(inProps) {
|
|
|
126
120
|
}, commonTooltipProps), {}, {
|
|
127
121
|
children: children
|
|
128
122
|
}));
|
|
123
|
+
};
|
|
124
|
+
var getMuiTooltipTitle = function getMuiTooltipTitle(_ref2, slotProps) {
|
|
125
|
+
var title = _ref2.title,
|
|
126
|
+
description = _ref2.description,
|
|
127
|
+
customContent = _ref2.customContent;
|
|
128
|
+
if (typeof customContent !== "undefined") {
|
|
129
|
+
return customContent;
|
|
130
|
+
}
|
|
131
|
+
if (description) {
|
|
132
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
133
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Title, _objectSpread(_objectSpread({
|
|
134
|
+
variant: "subtitle2"
|
|
135
|
+
}, slotProps.title), {}, {
|
|
136
|
+
children: title
|
|
137
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, _objectSpread(_objectSpread({
|
|
138
|
+
variant: "body2"
|
|
139
|
+
}, slotProps.text), {}, {
|
|
140
|
+
children: description
|
|
141
|
+
}))]
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
if (!title) {
|
|
145
|
+
return title;
|
|
146
|
+
}
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, _objectSpread(_objectSpread({
|
|
148
|
+
variant: "body2"
|
|
149
|
+
}, slotProps.text), {}, {
|
|
150
|
+
children: title
|
|
151
|
+
}));
|
|
129
152
|
};
|
|
@@ -17,7 +17,12 @@ export type ButtonProps<C extends ElementType = "button"> = Omit<MuiButtonProps<
|
|
|
17
17
|
mobileBreakpoint?: Breakpoint;
|
|
18
18
|
};
|
|
19
19
|
interface ButtonTypeMap<C extends ElementType = "button"> extends OverridableTypeMap {
|
|
20
|
-
props: ButtonProps<C
|
|
20
|
+
props: ButtonProps<C> & {
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use variant instead. The button's color is controlled by the variant prop.
|
|
23
|
+
*/
|
|
24
|
+
color?: string;
|
|
25
|
+
};
|
|
21
26
|
defaultComponent: C;
|
|
22
27
|
}
|
|
23
28
|
export declare const Button: OverridableComponent<ButtonTypeMap>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/common/buttons/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,UAAU,EAEf,MAAM,IAAI,SAAS,EACnB,KAAK,WAAW,IAAI,cAAc,EAClC,KAAK,mBAAmB,EAExB,KAAK,KAAK,EAGb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxG,OAAO,EAAE,KAAK,WAAW,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;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C;KACjC;IAED,UAAU,UAAU;QAChB,gBAAgB,CAAC,EAAE;YACf,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,CAAC;YAChE,cAAc,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,kBAAkB,CAAC,CAAC;SACnE,CAAC;KACL;CACJ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.DeleteButtonStory = void 0;
|
|
7
|
+
var _DeleteButton = require("../DeleteButton");
|
|
8
|
+
var config = {
|
|
9
|
+
component: _DeleteButton.DeleteButton,
|
|
10
|
+
title: "common/Buttons/DeleteButton"
|
|
11
|
+
};
|
|
12
|
+
var _default = exports["default"] = config;
|
|
13
|
+
var DeleteButtonStory = exports.DeleteButtonStory = {};
|
|
14
|
+
DeleteButtonStory.storyName = "DeleteButton";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridFilterButton.d.ts","sourceRoot":"","sources":["../../src/dataGrid/GridFilterButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GridFilterButton.d.ts","sourceRoot":"","sources":["../../src/dataGrid/GridFilterButton.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGpE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,2CAuBlD"}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.GridFilterButton = GridFilterButton;
|
|
7
7
|
var _adminIcons = require("@comet/admin-icons");
|
|
8
|
+
var _material = require("@mui/material");
|
|
8
9
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
9
10
|
var _react = require("react");
|
|
10
11
|
var _reactIntl = require("react-intl");
|
|
@@ -19,6 +20,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
20
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
21
|
function GridFilterButton(props) {
|
|
21
22
|
var apiRef = (0, _xDataGrid.useGridApiContext)();
|
|
23
|
+
var filterModel = (0, _xDataGrid.useGridSelector)(apiRef, _xDataGrid.gridFilterModelSelector);
|
|
24
|
+
var filterCount = filterModel.items.length;
|
|
22
25
|
var handleFilterClick = (0, _react.useCallback)(function () {
|
|
23
26
|
apiRef.current.showFilterPanel();
|
|
24
27
|
}, [apiRef]);
|
|
@@ -26,7 +29,14 @@ function GridFilterButton(props) {
|
|
|
26
29
|
responsive: true,
|
|
27
30
|
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Filter, {}),
|
|
28
31
|
variant: "outlined",
|
|
29
|
-
onClick: handleFilterClick
|
|
32
|
+
onClick: handleFilterClick,
|
|
33
|
+
endIcon: filterCount > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Chip, {
|
|
34
|
+
label: "".concat(filterCount),
|
|
35
|
+
size: "small"
|
|
36
|
+
}) : null,
|
|
37
|
+
sx: {
|
|
38
|
+
maxHeight: "40px"
|
|
39
|
+
}
|
|
30
40
|
}, props), {}, {
|
|
31
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _objectSpread({}, _messages.messages.filter))
|
|
32
42
|
}));
|
|
@@ -22,12 +22,13 @@ var createErrorDialogApolloLink = exports.createErrorDialogApolloLink = function
|
|
|
22
22
|
var httpStatus;
|
|
23
23
|
if (graphQLErrors) {
|
|
24
24
|
if (graphQLErrors.some(function (e) {
|
|
25
|
-
|
|
25
|
+
var _e$extensions;
|
|
26
|
+
return ((_e$extensions = e.extensions) === null || _e$extensions === void 0 ? void 0 : _e$extensions.code) === "FORBIDDEN";
|
|
26
27
|
})) {
|
|
27
28
|
errorType = "unauthenticated"; // Error is triggered by Comet Guard
|
|
28
29
|
} else if (graphQLErrors.some(function (e) {
|
|
29
|
-
var _e$
|
|
30
|
-
return ((_e$
|
|
30
|
+
var _e$extensions2;
|
|
31
|
+
return ((_e$extensions2 = e.extensions) === null || _e$extensions2 === void 0 ? void 0 : _e$extensions2.code) === "UNAUTHENTICATED";
|
|
31
32
|
})) {
|
|
32
33
|
errorType = "unauthorized"; // Error is triggered by UnauthorizedException
|
|
33
34
|
} else {
|
|
@@ -12,6 +12,6 @@ type FinalFormAutocompleteInternalProps<T extends Record<string, any>> = FieldRe
|
|
|
12
12
|
*
|
|
13
13
|
* @see {@link AutocompleteField} – preferred for typical form use. Use this only if no Field wrapper is needed.
|
|
14
14
|
*/
|
|
15
|
-
export declare const FinalFormAutocomplete: <T extends Record<string, any>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false>({ input: { onChange, value, multiple, ...restInput }, loading, loadingError, isAsync, clearable, loadingText, popupIcon, noOptionsText, errorText, ...rest }: FinalFormAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> & FinalFormAutocompleteInternalProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const FinalFormAutocomplete: <T extends Record<string, any>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false>({ input: { onChange, value: incomingValue, multiple, ...restInput }, loading, loadingError, isAsync, clearable, loadingText, popupIcon, noOptionsText, errorText, ...rest }: FinalFormAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> & FinalFormAutocompleteInternalProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=Autocomplete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/form/Autocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,iBAAiB,EAMzB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIzD,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,MAAM,MAAM,0BAA0B,CAClC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,gBAAgB,SAAS,OAAO,GAAG,SAAS,EAC5C,QAAQ,SAAS,OAAO,GAAG,SAAS,IACpC,OAAO,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC,GACzC,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,GAAG;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC;AAEN,KAAK,kCAAkC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,gBAAgB,CAAC,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;AAErI;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAC9B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EAC5C,gBAAgB,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EACpD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EAC9C,
|
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/form/Autoc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omplete.js
CHANGED
|
@@ -27,7 +27,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
27
27
|
var FinalFormAutocomplete = exports.FinalFormAutocomplete = function FinalFormAutocomplete(_ref) {
|
|
28
28
|
var _ref$input = _ref.input,
|
|
29
29
|
_onChange = _ref$input.onChange,
|
|
30
|
-
|
|
30
|
+
incomingValue = _ref$input.value,
|
|
31
31
|
multiple = _ref$input.multiple,
|
|
32
32
|
restInput = _objectWithoutProperties(_ref$input, _excluded),
|
|
33
33
|
_ref$loading = _ref.loading,
|
|
@@ -54,6 +54,7 @@ var FinalFormAutocomplete = exports.FinalFormAutocomplete = function FinalFormAu
|
|
|
54
54
|
defaultMessage: "Error loading options."
|
|
55
55
|
}) : _ref$errorText,
|
|
56
56
|
rest = _objectWithoutProperties(_ref, _excluded2);
|
|
57
|
+
var value = multiple ? Array.isArray(incomingValue) ? incomingValue : [] : incomingValue;
|
|
57
58
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Autocomplete, _objectSpread(_objectSpread({
|
|
58
59
|
popupIcon: popupIcon,
|
|
59
60
|
disableClearable: true,
|
|
@@ -17,6 +17,6 @@ type FinalFormSelectInternalProps<T> = FieldRenderProps<T, HTMLInputElement | HT
|
|
|
17
17
|
*
|
|
18
18
|
* @see {@link SelectField} – preferred for typical form use. Use this only if no Field wrapper is needed.
|
|
19
19
|
*/
|
|
20
|
-
export declare const FinalFormSelect: <T>({ input: { checked, value, name, onChange, onFocus, onBlur, ...restInput }, meta, isAsync, options, loading, loadingError, getOptionLabel, getOptionValue, noOptionsText, errorText, disabled, children, required, ...rest }: FinalFormSelectProps<T> & FinalFormSelectInternalProps<T> & Partial<AsyncOptionsProps<T>> & Omit<SelectProps, "input" | "endAdornment">) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const FinalFormSelect: <T>({ input: { checked, value: incomingValue, name, onChange, onFocus, onBlur, ...restInput }, meta, isAsync, options, loading, loadingError, getOptionLabel, getOptionValue, noOptionsText, errorText, disabled, children, required, ...rest }: FinalFormSelectProps<T> & FinalFormSelectInternalProps<T> & Partial<AsyncOptionsProps<T>> & Omit<SelectProps, "input" | "endAdornment">) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=FinalFormSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FinalFormSelect.d.ts","sourceRoot":"","sources":["../../src/form/FinalFormSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoD,KAAK,WAAW,EAAc,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC/B;AAED,KAAK,4BAA4B,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;AAanG;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAG,
|
|
1
|
+
{"version":3,"file":"FinalFormSelect.d.ts","sourceRoot":"","sources":["../../src/form/FinalFormSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoD,KAAK,WAAW,EAAc,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC/B;AAED,KAAK,4BAA4B,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;AAanG;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAG,6OAqCjC,oBAAoB,CAAC,CAAC,CAAC,GAAG,4BAA4B,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc,CAAC,4CA6GzI,CAAC"}
|
|
@@ -39,7 +39,7 @@ var FinalFormSelect = exports.FinalFormSelect = function FinalFormSelect(_ref) {
|
|
|
39
39
|
var _restInput$multiple;
|
|
40
40
|
var _ref$input = _ref.input,
|
|
41
41
|
checked = _ref$input.checked,
|
|
42
|
-
|
|
42
|
+
incomingValue = _ref$input.value,
|
|
43
43
|
name = _ref$input.name,
|
|
44
44
|
_onChange = _ref$input.onChange,
|
|
45
45
|
onFocus = _ref$input.onFocus,
|
|
@@ -94,6 +94,7 @@ var FinalFormSelect = exports.FinalFormSelect = function FinalFormSelect(_ref) {
|
|
|
94
94
|
// 1. <Field component={FinalFormSelect} multiple /> -> multiple is in restInput
|
|
95
95
|
// 2. <Field>{(props) => <FinalFormSelect {...props} multiple />}</Field> -> multiple is in rest
|
|
96
96
|
var multiple = (_restInput$multiple = restInput.multiple) !== null && _restInput$multiple !== void 0 ? _restInput$multiple : rest.multiple;
|
|
97
|
+
var value = multiple ? Array.isArray(incomingValue) ? incomingValue : [] : incomingValue;
|
|
97
98
|
var endAdornment = !required ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClearInputAdornment.ClearInputAdornment, {
|
|
98
99
|
position: "end",
|
|
99
100
|
hasClearableContent: getHasClearableContent(value, multiple, disabled),
|
|
@@ -3,7 +3,7 @@ import { type FunctionComponent, type ReactNode } from "react";
|
|
|
3
3
|
import { type ThemedComponentBaseProps } from "../helpers/ThemedComponentBaseProps";
|
|
4
4
|
import { type InlineAlert, type InlineAlertSeverity } from "../inlineAlert/InlineAlert";
|
|
5
5
|
import { type FullPageAlertBackground } from "./FullPageAlertBackground";
|
|
6
|
-
export type FullPageAlertClassKey = "root" | "
|
|
6
|
+
export type FullPageAlertClassKey = "root" | "background" | "detailDescription" | "contentContainer" | "divider" | "logoContainer" | "actionContainer" | "inlineAlert";
|
|
7
7
|
type FullPageAlertSeverity = InlineAlertSeverity;
|
|
8
8
|
export type FullPageAlertProps = ThemedComponentBaseProps<{
|
|
9
9
|
root: "div";
|
|
@@ -11,7 +11,6 @@ export type FullPageAlertProps = ThemedComponentBaseProps<{
|
|
|
11
11
|
iconContainer: "div";
|
|
12
12
|
background: typeof FullPageAlertBackground;
|
|
13
13
|
divider: typeof Divider;
|
|
14
|
-
title: typeof Typography;
|
|
15
14
|
inlineAlert: typeof InlineAlert;
|
|
16
15
|
detailDescription: typeof Typography;
|
|
17
16
|
logoContainer: "div";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullPageAlert.d.ts","sourceRoot":"","sources":["../../src/fullPageAlert/FullPageAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAiB,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"FullPageAlert.d.ts","sourceRoot":"","sources":["../../src/fullPageAlert/FullPageAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAiB,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAWxF,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAC3B,MAAM,GACN,YAAY,GACZ,mBAAmB,GACnB,kBAAkB,GAClB,SAAS,GACT,eAAe,GACf,iBAAiB,GACjB,aAAa,CAAC;AAEpB,KAAK,qBAAqB,GAAG,mBAAmB,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;IACtD,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,EAAE,KAAK,CAAC;IACxB,aAAa,EAAE,KAAK,CAAC;IACrB,UAAU,EAAE,OAAO,uBAAuB,CAAC;IAC3C,OAAO,EAAE,OAAO,OAAO,CA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
|
@@ -117,17 +117,18 @@ var FullPageAlert = exports.FullPageAlert = function FullPageAlert(inProps) {
|
|
|
117
117
|
}, slotProps.root), {}, {
|
|
118
118
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FullPageAlert.BackgroundStyled, _objectSpread({}, slotProps.background)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_FullPageAlert.ContentContainer, _objectSpread(_objectSpread({}, slotProps.contentContainer), {}, {
|
|
119
119
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FullPageAlert.InlineAlertStyled, _objectSpread({
|
|
120
|
-
title:
|
|
121
|
-
variant: "h3"
|
|
122
|
-
}, slotProps.title), {}, {
|
|
123
|
-
children: title
|
|
124
|
-
})),
|
|
120
|
+
title: title,
|
|
125
121
|
titleMapping: titleMapping,
|
|
126
122
|
description: description,
|
|
127
123
|
descriptionMapping: descriptionMapping,
|
|
128
124
|
iconMapping: iconMapping,
|
|
129
125
|
icon: icon,
|
|
130
|
-
severity: severity
|
|
126
|
+
severity: severity,
|
|
127
|
+
slotProps: {
|
|
128
|
+
title: {
|
|
129
|
+
variant: "h3"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
131
132
|
}, slotProps.inlineAlert)), detailDescription && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
132
133
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FullPageAlert.DividerStyled, _objectSpread({}, slotProps.divider)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullPageAlert.DetailDescription, _objectSpread(_objectSpread({
|
|
133
134
|
variant: "body2"
|
|
@@ -21,14 +21,6 @@ export declare const ContentContainer: import("react").ForwardRefExoticComponent
|
|
|
21
21
|
className?: string;
|
|
22
22
|
ownerState?: object;
|
|
23
23
|
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
24
|
-
export declare const Title: import("react").ForwardRefExoticComponent<Omit<Pick<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
25
|
-
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
26
|
-
}, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "p" | "style" | "className" | "children" | "align" | "bgcolor" | "sx" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "p" | "slot" | "style" | "title" | "ref" | "className" | "suppressHydrationWarning" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "align" | "bgcolor" | "sx" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
27
|
-
ownerState?: undefined;
|
|
28
|
-
} & {
|
|
29
|
-
className?: string;
|
|
30
|
-
ownerState?: object;
|
|
31
|
-
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
32
24
|
export declare const DetailDescription: import("react").ForwardRefExoticComponent<Omit<Pick<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
33
25
|
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
34
26
|
}, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "p" | "style" | "className" | "children" | "align" | "bgcolor" | "sx" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "p" | "slot" | "style" | "title" | "ref" | "className" | "suppressHydrationWarning" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "align" | "bgcolor" | "sx" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullPageAlert.styles.d.ts","sourceRoot":"","sources":["../../src/fullPageAlert/FullPageAlert.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,EAAE,MAAM,eAAe,CAAC;AAO/D,eAAO,MAAM,IAAI;;;;;mDAQf,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;2CAY3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;mDAY3B,CAAC;AAEH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"FullPageAlert.styles.d.ts","sourceRoot":"","sources":["../../src/fullPageAlert/FullPageAlert.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,EAAE,MAAM,eAAe,CAAC;AAO/D,eAAO,MAAM,IAAI;;;;;mDAQf,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;2CAY3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;mDAY3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;mDAG1B,CAAC;AAEL,eAAO,MAAM,aAAa;;;;;;;mDASzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;mDAQzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;mDAM1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;2CAGrB,CAAC"}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Root = exports.LogoContainer = exports.InlineAlertStyled = exports.DividerStyled = exports.DetailDescription = exports.ContentContainer = exports.BackgroundStyled = exports.ActionContainer = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
8
|
var _createComponentSlot = require("../helpers/createComponentSlot");
|
|
9
9
|
var _InlineAlert = require("../inlineAlert/InlineAlert");
|
|
10
10
|
var _FullPageAlertBackground = require("./FullPageAlertBackground");
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
12
12
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
13
13
|
var Root = exports.Root = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
14
14
|
componentName: "FullPageAlert",
|
|
@@ -25,33 +25,29 @@ var ContentContainer = exports.ContentContainer = (0, _createComponentSlot.creat
|
|
|
25
25
|
var theme = _ref.theme;
|
|
26
26
|
return (0, _material.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n max-width: 550px;\n align-items: center;\n gap: ", ";\n flex-direction: column;\n padding: ", ";\n "])), theme.spacing(2), theme.spacing(10));
|
|
27
27
|
});
|
|
28
|
-
var Title = exports.Title = (0, _createComponentSlot.createComponentSlot)(_material.Typography)({
|
|
29
|
-
componentName: "FullPageAlert",
|
|
30
|
-
slotName: "title"
|
|
31
|
-
})((0, _material.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([""]))));
|
|
32
28
|
var DetailDescription = exports.DetailDescription = (0, _createComponentSlot.createComponentSlot)(_material.Typography)({
|
|
33
29
|
componentName: "FullPageAlert",
|
|
34
30
|
slotName: "detailDescription"
|
|
35
|
-
})(
|
|
31
|
+
})();
|
|
36
32
|
var DividerStyled = exports.DividerStyled = (0, _createComponentSlot.createComponentSlot)(_material.Divider)({
|
|
37
33
|
componentName: "FullPageAlert",
|
|
38
34
|
slotName: "divider"
|
|
39
35
|
})(function (_ref2) {
|
|
40
36
|
var theme = _ref2.theme;
|
|
41
|
-
return (0, _material.css)(
|
|
37
|
+
return (0, _material.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n margin-top: ", ";\n margin-bottom: ", ";\n "])), theme.spacing(6), theme.spacing(6));
|
|
42
38
|
});
|
|
43
39
|
var LogoContainer = exports.LogoContainer = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
44
40
|
componentName: "FullPageAlert",
|
|
45
41
|
slotName: "logoContainer"
|
|
46
42
|
})(function (_ref3) {
|
|
47
43
|
var theme = _ref3.theme;
|
|
48
|
-
return (0, _material.css)(
|
|
44
|
+
return (0, _material.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n margin-bottom: ", ";\n "])), theme.spacing(6));
|
|
49
45
|
});
|
|
50
46
|
var ActionContainer = exports.ActionContainer = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
51
47
|
componentName: "FullPageAlert",
|
|
52
48
|
slotName: "actionContainer"
|
|
53
|
-
})((0, _material.css)(
|
|
49
|
+
})((0, _material.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n"]))));
|
|
54
50
|
var InlineAlertStyled = exports.InlineAlertStyled = (0, _createComponentSlot.createComponentSlot)(_InlineAlert.InlineAlert)({
|
|
55
51
|
componentName: "FullPageAlert",
|
|
56
52
|
slotName: "inlineAlert"
|
|
57
|
-
})((0, _material.css)(
|
|
53
|
+
})((0, _material.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([""]))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../src/router/ConfirmationDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EACH,KAAK,mBAAmB,EAExB,MAAM,EAIN,UAAU,EACV,KAAK,KAAK,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAGpF,MAAM,MAAM,gCAAgC,GACtC,MAAM,GACN,aAAa,GACb,gBAAgB,GAChB,oBAAoB,GACpB,aAAa,GACb,cAAc,GACd,YAAY,GACZ,eAAe,CAAC;AAoEtB,oBAAY,YAAY;IACpB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,6BACb,SAAQ,wBAAwB,CAAC;IAC7B,IAAI,EAAE,OAAO,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,UAAU,CAAC;IAC/B,cAAc,EAAE,KAAK,CAAC;IACtB,kBAAkB,EAAE,OAAO,OAA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AAM,CAAC;IAC1B,aAAa,EAAE,OAAO,MAAM,CAAC;CAChC,CAAC;IACF,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,6BAA6B,2CAyC9E;AAED,OAAO,QAAQ,sBAAsB,CAAC;IAClC,UAAU,uBAAuB;QAC7B,kCAAkC,EAAE,gCAAgC,CAAC;KACxE;IAED,UAAU,UAAU;QAChB,kCAAkC,CAAC,EAAE;YACjC,cAAc,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,oCAAoC,CAAC,CAAC;SACrF,CAAC;KACL;CACJ"}
|
|
@@ -106,8 +106,7 @@ function RouterConfirmationDialog(inProps) {
|
|
|
106
106
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.DialogActions, {
|
|
107
107
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(DiscardButton, _objectSpread(_objectSpread({
|
|
108
108
|
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Delete, {}),
|
|
109
|
-
|
|
110
|
-
variant: "outlined",
|
|
109
|
+
variant: "destructive",
|
|
111
110
|
onClick: function onClick() {
|
|
112
111
|
return handleClose(PromptAction.Discard);
|
|
113
112
|
}
|
package/lib/vendor.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/admin",
|
|
3
|
-
"version": "9.0.0-canary-
|
|
3
|
+
"version": "9.0.0-canary-20251113142723",
|
|
4
4
|
"description": "Comet Admin package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/admin",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react-dropzone": "^14.3.8",
|
|
29
29
|
"use-constant": "^1.1.1",
|
|
30
30
|
"uuid": "^11.1.0",
|
|
31
|
-
"@comet/admin-icons": "9.0.0-canary-
|
|
31
|
+
"@comet/admin-icons": "9.0.0-canary-20251113142723"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@apollo/client": "^3.13.8",
|
|
@@ -42,6 +42,9 @@
|
|
|
42
42
|
"@mui/x-data-grid-pro": "^7.29.8",
|
|
43
43
|
"@mui/x-date-pickers": "^7.29.4",
|
|
44
44
|
"@mui/x-date-pickers-pro": "^7.29.4",
|
|
45
|
+
"@storybook/addon-docs": "^9.1.10",
|
|
46
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
47
|
+
"@storybook/react-webpack5": "^9.1.10",
|
|
45
48
|
"@testing-library/dom": "^10.4.0",
|
|
46
49
|
"@testing-library/jest-dom": "^6.6.3",
|
|
47
50
|
"@testing-library/react": "^16.3.0",
|
|
@@ -52,18 +55,20 @@
|
|
|
52
55
|
"@types/jest": "^29.5.14",
|
|
53
56
|
"@types/lodash.debounce": "^4.0.9",
|
|
54
57
|
"@types/lodash.isequal": "^4.5.8",
|
|
55
|
-
"@types/node": "^
|
|
58
|
+
"@types/node": "^24.9.1",
|
|
56
59
|
"@types/react": "^18.3.23",
|
|
57
60
|
"@types/react-dom": "^18.3.7",
|
|
58
61
|
"@types/react-router": "^5.1.20",
|
|
59
62
|
"@types/react-router-dom": "^5.3.3",
|
|
60
63
|
"eslint": "^9.30.1",
|
|
64
|
+
"eslint-plugin-storybook": "^9.1.10",
|
|
61
65
|
"final-form": "^4.20.10",
|
|
62
|
-
"graphql": "^
|
|
66
|
+
"graphql": "^16.0.0",
|
|
63
67
|
"history": "^4.10.1",
|
|
64
68
|
"jest": "^29.7.0",
|
|
65
69
|
"jest-environment-jsdom": "^29.7.0",
|
|
66
70
|
"jest-junit": "^16.0.0",
|
|
71
|
+
"msw": "^2.10.4",
|
|
67
72
|
"npm-run-all2": "^8.0.0",
|
|
68
73
|
"prettier": "^3.6.2",
|
|
69
74
|
"react": "^18.3.1",
|
|
@@ -74,11 +79,13 @@
|
|
|
74
79
|
"react-router": "^5.3.4",
|
|
75
80
|
"react-router-dom": "^5.3.4",
|
|
76
81
|
"rimraf": "^6.0.1",
|
|
82
|
+
"storybook": "^9.1.10",
|
|
83
|
+
"storybook-addon-tag-badges": "^2.0.1",
|
|
77
84
|
"ts-jest": "^29.4.0",
|
|
78
85
|
"typescript": "5.8.3",
|
|
79
|
-
"@comet/admin-babel-preset": "9.0.0-canary-
|
|
80
|
-
"@comet/eslint-config": "9.0.0-canary-
|
|
81
|
-
"@comet/eslint-plugin": "9.0.0-canary-
|
|
86
|
+
"@comet/admin-babel-preset": "9.0.0-canary-20251113142723",
|
|
87
|
+
"@comet/eslint-config": "9.0.0-canary-20251113142723",
|
|
88
|
+
"@comet/eslint-plugin": "9.0.0-canary-20251113142723"
|
|
82
89
|
},
|
|
83
90
|
"peerDependencies": {
|
|
84
91
|
"@apollo/client": "^3.7.0",
|
|
@@ -120,17 +127,19 @@
|
|
|
120
127
|
"registry": "https://registry.npmjs.org"
|
|
121
128
|
},
|
|
122
129
|
"scripts": {
|
|
123
|
-
"build": "
|
|
124
|
-
"build
|
|
130
|
+
"build": "pnpm run clean && run-p build:babel build:types",
|
|
131
|
+
"build-storybook": "storybook build",
|
|
132
|
+
"build:babel": "pnpm exec babel ./src -x \".ts,.tsx\" -d lib",
|
|
125
133
|
"build:types": "tsc --project ./tsconfig.build.json --emitDeclarationOnly",
|
|
126
134
|
"clean": "rimraf lib",
|
|
127
135
|
"lint": "run-p lint:prettier lint:eslint lint:tsc",
|
|
128
136
|
"lint:eslint": "eslint --max-warnings 0 src/ **/*.json --no-warn-ignored",
|
|
129
|
-
"lint:prettier": "
|
|
137
|
+
"lint:prettier": "pnpm exec prettier --check './**/*.{js,json,md,yml,yaml}'",
|
|
130
138
|
"lint:tsc": "tsc --noEmit",
|
|
131
139
|
"start": "run-p start:babel start:types",
|
|
132
|
-
"start:babel": "
|
|
140
|
+
"start:babel": "pnpm exec babel ./src -x \".ts,.tsx\" -d lib -w",
|
|
133
141
|
"start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput",
|
|
142
|
+
"storybook": "storybook dev -p 26646 --no-open",
|
|
134
143
|
"test": "jest",
|
|
135
144
|
"test:watch": "jest --watch"
|
|
136
145
|
}
|