@comet/admin 9.0.0-canary-20251001104910 → 9.0.0-canary-20251002124333
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/common/Tooltip.d.ts +3 -3
- package/lib/common/Tooltip.d.ts.map +1 -1
- package/lib/common/Tooltip.js +8 -12
- package/lib/common/buttons/feedback/FeedbackButton.js +3 -3
- package/lib/form/FormSection.d.ts +9 -1
- package/lib/form/FormSection.d.ts.map +1 -1
- package/lib/form/FormSection.js +35 -32
- package/lib/rowActions/RowActionsIconItem.d.ts +2 -1
- package/lib/rowActions/RowActionsIconItem.d.ts.map +1 -1
- package/lib/section/SectionHeadline.d.ts +9 -1
- package/lib/section/SectionHeadline.d.ts.map +1 -1
- package/lib/section/SectionHeadline.js +55 -46
- package/package.json +5 -5
package/lib/common/Tooltip.d.ts
CHANGED
|
@@ -6,16 +6,16 @@ type SlotProps = MuiTooltipProps["slotProps"] & ThemedComponentBaseProps<{
|
|
|
6
6
|
text: typeof Typography;
|
|
7
7
|
}>["slotProps"];
|
|
8
8
|
export interface TooltipProps extends Omit<MuiTooltipProps, "slotProps" | "title"> {
|
|
9
|
-
|
|
9
|
+
color?: Color;
|
|
10
10
|
title?: ReactNode;
|
|
11
11
|
description?: ReactNode;
|
|
12
12
|
customContent?: ReactNode;
|
|
13
13
|
slotProps?: SlotProps;
|
|
14
14
|
}
|
|
15
15
|
type Slot = "root" | "title" | "text";
|
|
16
|
-
type
|
|
16
|
+
type Color = "light" | "dark" | "error" | "success" | "warning";
|
|
17
17
|
type ComponentState = "hasTitleOnly";
|
|
18
|
-
export type TooltipClassKey = Slot |
|
|
18
|
+
export type TooltipClassKey = Slot | Color | ComponentState | MuiTooltipClassKey;
|
|
19
19
|
export declare const Tooltip: (inProps: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
declare module "@mui/material/styles" {
|
|
21
21
|
interface ComponentsPropsList {
|
|
@@ -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,wBAAwB,CAAC;IACrB,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,IAAI,EAAE,OAAO,UAAU,CAAC;CAC3B,CAAC,CAAC,WAAW,CAAC,CAAC;AAEpB,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,OAAO,CAAC;IAC9E,
|
|
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,wBAAwB,CAAC;IACrB,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,IAAI,EAAE,OAAO,UAAU,CAAC;CAC3B,CAAC,CAAC,WAAW,CAAC,CAAC;AAEpB,MAAM,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,4CAiE5C,CAAC;AAEF,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
|
@@ -9,7 +9,7 @@ var _material = require("@mui/material");
|
|
|
9
9
|
var _styles = require("@mui/material/styles");
|
|
10
10
|
var _createComponentSlot = require("../helpers/createComponentSlot");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _excluded = ["
|
|
12
|
+
var _excluded = ["color", "disableInteractive", "arrow", "children", "title", "description", "customContent", "slotProps"],
|
|
13
13
|
_excluded2 = ["title", "text"];
|
|
14
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0;
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -28,32 +28,28 @@ var TooltipPopper = (0, _createComponentSlot.createComponentSlot)(_material.Popp
|
|
|
28
28
|
componentName: "Tooltip",
|
|
29
29
|
slotName: "popper",
|
|
30
30
|
classesResolver: function classesResolver(ownerState) {
|
|
31
|
-
return [ownerState.
|
|
31
|
+
return [ownerState.color,
|
|
32
32
|
// Copied the following from MUIs default TooltipPopper: https://github.com/mui/material-ui/blob/a13c0c026692aafc303756998a78f1d6c2dd707d/packages/mui-material/src/Tooltip/Tooltip.js#L48
|
|
33
33
|
!ownerState.disableInteractive && "popperInteractive", ownerState.arrow && "popperArrow", ownerState.hasTitleOnly && "hasTitleOnly"];
|
|
34
34
|
}
|
|
35
35
|
})(function (_ref) {
|
|
36
36
|
var theme = _ref.theme,
|
|
37
37
|
ownerState = _ref.ownerState;
|
|
38
|
-
var
|
|
38
|
+
var colorPropToTextColor = {
|
|
39
39
|
light: theme.palette.grey[900],
|
|
40
40
|
dark: theme.palette.common.white,
|
|
41
|
-
neutral: theme.palette.grey[900],
|
|
42
|
-
primary: theme.palette.grey[900],
|
|
43
41
|
error: theme.palette.common.white,
|
|
44
42
|
success: theme.palette.common.black,
|
|
45
43
|
warning: theme.palette.common.black
|
|
46
44
|
};
|
|
47
|
-
var
|
|
45
|
+
var colorPropToBackgroundColor = {
|
|
48
46
|
light: theme.palette.common.white,
|
|
49
47
|
dark: ownerState.hasTitleOnly ? theme.palette.grey[500] : theme.palette.grey[900],
|
|
50
|
-
neutral: theme.palette.grey[100],
|
|
51
|
-
primary: theme.palette.primary.light,
|
|
52
48
|
error: theme.palette.error.light,
|
|
53
49
|
success: theme.palette.success.light,
|
|
54
50
|
warning: theme.palette.warning.light
|
|
55
51
|
};
|
|
56
|
-
return (0, _styles.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n .", " {\n box-shadow: ", ";\n border-radius: 4px;\n padding: 3px 6px;\n color: ", ";\n background-color: ", ";\n line-height: 0; // Custom content may include space-caracters, due to code indentation. Removing the line-height prevents these from adding unintended whitespace.\n\n ", "\n }\n\n .", " {\n color: ", ";\n }\n\n // Copied the following from MUIs default TooltipPopper: https://github.com/mui/material-ui/blob/a13c0c026692aafc303756998a78f1d6c2dd707d/packages/mui-material/src/Tooltip/Tooltip.js#L55\n z-index: ", ";\n pointer-events: none;\n ", ";\n ", ";\n "])), !ownerState.hasTitleOnly && (0, _styles.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 200px;\n "]))), _material.tooltipClasses.tooltip, theme.shadows[3],
|
|
52
|
+
return (0, _styles.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n .", " {\n box-shadow: ", ";\n border-radius: 4px;\n padding: 3px 6px;\n color: ", ";\n background-color: ", ";\n line-height: 0; // Custom content may include space-caracters, due to code indentation. Removing the line-height prevents these from adding unintended whitespace.\n\n ", "\n }\n\n .", " {\n color: ", ";\n }\n\n // Copied the following from MUIs default TooltipPopper: https://github.com/mui/material-ui/blob/a13c0c026692aafc303756998a78f1d6c2dd707d/packages/mui-material/src/Tooltip/Tooltip.js#L55\n z-index: ", ";\n pointer-events: none;\n ", ";\n ", ";\n "])), !ownerState.hasTitleOnly && (0, _styles.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 200px;\n "]))), _material.tooltipClasses.tooltip, theme.shadows[3], colorPropToTextColor[ownerState.color], colorPropToBackgroundColor[ownerState.color], !ownerState.hasTitleOnly && (0, _styles.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 10px;\n "]))), _material.tooltipClasses.arrow, colorPropToBackgroundColor[ownerState.color], theme.zIndex.tooltip, !ownerState.disableInteractive && (0, _styles.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n pointer-events: auto;\n "]))), ownerState.arrow && (0, _styles.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n &[data-popper-placement*=\"bottom\"] .", " {\n top: 0;\n margin-top: -0.71em;\n &::before {\n transform-origin: 0 100%;\n }\n }\n &[data-popper-placement*=\"top\"] .", " {\n bottom: 0;\n margin-bottom: -0.71em;\n &::before {\n transform-origin: 100% 0;\n }\n }\n &[data-popper-placement*=\"right\"] .", " {\n ", "\n height: 1em;\n width: 0.71em;\n &::before {\n transform-origin: 100% 100%;\n }\n }\n &[data-popper-placement*=\"left\"] .", " {\n ", "\n height: 1em;\n width: 0.71em;\n &::before {\n transform-origin: 0 0;\n }\n }\n "])), _material.tooltipClasses.arrow, _material.tooltipClasses.arrow, _material.tooltipClasses.arrow, !ownerState.isRtl ? (0, _styles.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n left: 0;\n margin-left: -0.71em;\n "]))) : (0, _styles.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n right: 0;\n margin-right: -0.71em;\n "]))), _material.tooltipClasses.arrow, !ownerState.isRtl ? (0, _styles.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n right: 0;\n margin-right: -0.71em;\n "]))) : (0, _styles.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n left: 0;\n margin-left: -0.71em;\n "])))));
|
|
57
53
|
});
|
|
58
54
|
var Title = (0, _createComponentSlot.createComponentSlot)(_material.Typography)({
|
|
59
55
|
componentName: "Tooltip",
|
|
@@ -68,8 +64,8 @@ var Tooltip = exports.Tooltip = function Tooltip(inProps) {
|
|
|
68
64
|
props: inProps,
|
|
69
65
|
name: "CometAdminTooltip"
|
|
70
66
|
});
|
|
71
|
-
var _props$
|
|
72
|
-
|
|
67
|
+
var _props$color = props.color,
|
|
68
|
+
color = _props$color === void 0 ? "dark" : _props$color,
|
|
73
69
|
disableInteractive = props.disableInteractive,
|
|
74
70
|
arrow = props.arrow,
|
|
75
71
|
children = props.children,
|
|
@@ -87,7 +83,7 @@ var Tooltip = exports.Tooltip = function Tooltip(inProps) {
|
|
|
87
83
|
throw new Error("You must provide a `title` or `customContent` when using the `Tooltip` component.");
|
|
88
84
|
}
|
|
89
85
|
var ownerState = {
|
|
90
|
-
|
|
86
|
+
color: color,
|
|
91
87
|
disableInteractive: disableInteractive,
|
|
92
88
|
arrow: arrow,
|
|
93
89
|
isRtl: theme.direction === "rtl",
|
|
@@ -75,14 +75,14 @@ function FeedbackButton(inProps) {
|
|
|
75
75
|
displayState: displayState
|
|
76
76
|
};
|
|
77
77
|
var isUncontrolled = loading === undefined && hasErrors === undefined;
|
|
78
|
-
var
|
|
78
|
+
var resolveTooltipColorForDisplayState = function resolveTooltipColorForDisplayState(displayState) {
|
|
79
79
|
switch (displayState) {
|
|
80
80
|
case "error":
|
|
81
81
|
return "error";
|
|
82
82
|
case "success":
|
|
83
83
|
return "success";
|
|
84
84
|
default:
|
|
85
|
-
return "
|
|
85
|
+
return "light";
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
var handleOnClick = isUncontrolled && onClick ? /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
@@ -148,7 +148,7 @@ function FeedbackButton(inProps) {
|
|
|
148
148
|
title: displayState === "error" ? tooltipErrorMessage : displayState === "success" ? tooltipSuccessMessage : "",
|
|
149
149
|
open: displayState === "error" || displayState === "success",
|
|
150
150
|
placement: endIcon && !startIcon ? "top-end" : "top-start",
|
|
151
|
-
|
|
151
|
+
color: resolveTooltipColorForDisplayState(displayState)
|
|
152
152
|
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.tooltip), {}, {
|
|
153
153
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
154
154
|
children: startIcon || endIcon
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentsOverrides } from "@mui/material";
|
|
2
2
|
import { type Theme } from "@mui/material/styles";
|
|
3
|
-
import { type ReactNode } from "react";
|
|
3
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
4
4
|
import { type ThemedComponentBaseProps } from "../helpers/ThemedComponentBaseProps";
|
|
5
5
|
import { SectionHeadline } from "../section/SectionHeadline";
|
|
6
6
|
export type FormSectionClassKey = "root" | "disableMarginBottom" | "title" | "children";
|
|
@@ -12,12 +12,19 @@ export interface FormSectionProps extends ThemedComponentBaseProps<{
|
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
title?: ReactNode;
|
|
14
14
|
disableMarginBottom?: boolean;
|
|
15
|
+
infoTooltip?: ComponentProps<typeof Title>["infoTooltip"];
|
|
15
16
|
/**
|
|
16
17
|
* @deprecated Use `slotProps.title` for custom styling or for setting a custom `variant` on the underlying `Typography` component.
|
|
17
18
|
*/
|
|
18
19
|
disableTypography?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare function FormSection(inProps: FormSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const Title: import("react").ForwardRefExoticComponent<Pick<import("../section/SectionHeadline").SectionHeadlineProps, keyof import("../section/SectionHeadline").SectionHeadlineProps> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
23
|
+
ownerState?: undefined;
|
|
24
|
+
} & {
|
|
25
|
+
className?: string;
|
|
26
|
+
ownerState?: object;
|
|
27
|
+
} & import("react").RefAttributes<unknown>>;
|
|
21
28
|
declare module "@mui/material/styles" {
|
|
22
29
|
interface ComponentNameToClassKey {
|
|
23
30
|
CometAdminFormSection: FormSectionClassKey;
|
|
@@ -32,4 +39,5 @@ declare module "@mui/material/styles" {
|
|
|
32
39
|
};
|
|
33
40
|
}
|
|
34
41
|
}
|
|
42
|
+
export {};
|
|
35
43
|
//# sourceMappingURL=FormSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSection.d.ts","sourceRoot":"","sources":["../../src/form/FormSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAO,KAAK,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FormSection.d.ts","sourceRoot":"","sources":["../../src/form/FormSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAO,KAAK,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,qBAAqB,GAAG,OAAO,GAAG,UAAU,CAAC;AAIxF,MAAM,WAAW,gBACb,SAAQ,wBAAwB,CAAC;IAC7B,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,OAAO,eAAe,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC;CACnB,CAAC;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC;IAC1D;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,gBAAgB,2CA2BpD;AAiBD,QAAA,MAAM,KAAK;;;;;2CAOV,CAAC;AAiBF,OAAO,QAAQ,sBAAsB,CAAC;IAClC,UAAU,uBAAuB;QAC7B,qBAAqB,EAAE,mBAAmB,CAAC;KAC9C;IAED,UAAU,mBAAmB;QACzB,qBAAqB,EAAE,gBAAgB,CAAC;KAC3C;IAED,UAAU,UAAU;QAChB,qBAAqB,CAAC,EAAE;YACpB,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAC;YACrE,cAAc,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,uBAAuB,CAAC,CAAC;SACxE,CAAC;KACL;CACJ"}
|
package/lib/form/FormSection.js
CHANGED
|
@@ -9,8 +9,9 @@ var _styles = require("@mui/material/styles");
|
|
|
9
9
|
var _createComponentSlot = require("../helpers/createComponentSlot");
|
|
10
10
|
var _SectionHeadline = require("../section/SectionHeadline");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _excluded = ["children", "title", "disableMarginBottom", "disableTypography", "slotProps"];
|
|
13
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
13
|
+
var _excluded = ["children", "title", "disableMarginBottom", "disableTypography", "slotProps", "infoTooltip"];
|
|
14
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
14
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
17
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -18,7 +19,38 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
18
19
|
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); }
|
|
19
20
|
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; }
|
|
20
21
|
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; }
|
|
21
|
-
function
|
|
22
|
+
function FormSection(inProps) {
|
|
23
|
+
var _useThemeProps = (0, _styles.useThemeProps)({
|
|
24
|
+
props: inProps,
|
|
25
|
+
name: "CometAdminFormSection"
|
|
26
|
+
}),
|
|
27
|
+
children = _useThemeProps.children,
|
|
28
|
+
title = _useThemeProps.title,
|
|
29
|
+
disableMarginBottom = _useThemeProps.disableMarginBottom,
|
|
30
|
+
disableTypography = _useThemeProps.disableTypography,
|
|
31
|
+
slotProps = _useThemeProps.slotProps,
|
|
32
|
+
infoTooltip = _useThemeProps.infoTooltip,
|
|
33
|
+
restProps = _objectWithoutProperties(_useThemeProps, _excluded);
|
|
34
|
+
var ownerState = {
|
|
35
|
+
disableMarginBottom: disableMarginBottom
|
|
36
|
+
};
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Root, _objectSpread(_objectSpread(_objectSpread({
|
|
38
|
+
ownerState: ownerState
|
|
39
|
+
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.root), restProps), {}, {
|
|
40
|
+
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
41
|
+
children: disableTypography ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LegacyTitle, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.title), {}, {
|
|
42
|
+
children: title
|
|
43
|
+
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Title, _objectSpread(_objectSpread({
|
|
44
|
+
infoTooltip: infoTooltip,
|
|
45
|
+
divider: true
|
|
46
|
+
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.title), {}, {
|
|
47
|
+
children: title
|
|
48
|
+
}))
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Children, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.children), {}, {
|
|
50
|
+
children: children
|
|
51
|
+
}))]
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
22
54
|
var Root = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
23
55
|
componentName: "FormSection",
|
|
24
56
|
slotName: "root",
|
|
@@ -49,33 +81,4 @@ var LegacyTitle = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
|
49
81
|
var Children = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
50
82
|
componentName: "FormSection",
|
|
51
83
|
slotName: "children"
|
|
52
|
-
})();
|
|
53
|
-
function FormSection(inProps) {
|
|
54
|
-
var _useThemeProps = (0, _styles.useThemeProps)({
|
|
55
|
-
props: inProps,
|
|
56
|
-
name: "CometAdminFormSection"
|
|
57
|
-
}),
|
|
58
|
-
children = _useThemeProps.children,
|
|
59
|
-
title = _useThemeProps.title,
|
|
60
|
-
disableMarginBottom = _useThemeProps.disableMarginBottom,
|
|
61
|
-
disableTypography = _useThemeProps.disableTypography,
|
|
62
|
-
slotProps = _useThemeProps.slotProps,
|
|
63
|
-
restProps = _objectWithoutProperties(_useThemeProps, _excluded);
|
|
64
|
-
var ownerState = {
|
|
65
|
-
disableMarginBottom: disableMarginBottom
|
|
66
|
-
};
|
|
67
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Root, _objectSpread(_objectSpread(_objectSpread({
|
|
68
|
-
ownerState: ownerState
|
|
69
|
-
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.root), restProps), {}, {
|
|
70
|
-
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
71
|
-
children: disableTypography ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LegacyTitle, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.title), {}, {
|
|
72
|
-
children: title
|
|
73
|
-
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Title, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.title), {}, {
|
|
74
|
-
divider: true,
|
|
75
|
-
children: title
|
|
76
|
-
}))
|
|
77
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Children, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.children), {}, {
|
|
78
|
-
children: children
|
|
79
|
-
}))]
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
84
|
+
})();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type IconButtonProps
|
|
1
|
+
import { type IconButtonProps } from "@mui/material";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
+
import { type TooltipProps } from "../common/Tooltip";
|
|
3
4
|
import { type CommonRowActionItemProps } from "./RowActionsItem";
|
|
4
5
|
export interface RowActionsIconItemComponentsProps {
|
|
5
6
|
tooltip?: Partial<TooltipProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowActionsIconItem.d.ts","sourceRoot":"","sources":["../../src/rowActions/RowActionsIconItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"RowActionsIconItem.d.ts","sourceRoot":"","sources":["../../src/rowActions/RowActionsIconItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,MAAM,WAAW,iCAAiC;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACrE,eAAe,CAAC,EAAE,iCAAiC,CAAC;IACpD,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,uHAuB9B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentsOverrides, Divider, Typography } from "@mui/material";
|
|
2
2
|
import { type Theme } from "@mui/material/styles";
|
|
3
|
-
import { type ReactElement, type ReactNode } from "react";
|
|
3
|
+
import { type ComponentProps, type ReactElement, type ReactNode } from "react";
|
|
4
4
|
import { Tooltip } from "../common/Tooltip";
|
|
5
5
|
import { type ThemedComponentBaseProps } from "../helpers/ThemedComponentBaseProps";
|
|
6
6
|
export type SectionHeadlineClassKey = "root" | "header" | "titleContainer" | "headline" | "divider" | "supportText" | "infoTooltip";
|
|
@@ -16,12 +16,19 @@ export interface SectionHeadlineProps extends ThemedComponentBaseProps<{
|
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
divider?: boolean;
|
|
18
18
|
supportText?: ReactNode;
|
|
19
|
+
infoTooltip?: ReactNode | Omit<ComponentProps<typeof InfoTooltip>, "children">;
|
|
19
20
|
infoTooltipText?: ReactNode;
|
|
20
21
|
iconMapping?: {
|
|
21
22
|
tooltip?: ReactElement;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
export declare function SectionHeadline(inProps: SectionHeadlineProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const InfoTooltip: import("react").ForwardRefExoticComponent<Omit<Pick<import("../common/Tooltip").TooltipProps, keyof import("../common/Tooltip").TooltipProps> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
27
|
+
ownerState?: undefined;
|
|
28
|
+
} & {
|
|
29
|
+
className?: string;
|
|
30
|
+
ownerState?: object;
|
|
31
|
+
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
25
32
|
declare module "@mui/material/styles" {
|
|
26
33
|
interface ComponentNameToClassKey {
|
|
27
34
|
CometAdminSectionHeadline: SectionHeadlineClassKey;
|
|
@@ -36,4 +43,5 @@ declare module "@mui/material/styles" {
|
|
|
36
43
|
};
|
|
37
44
|
}
|
|
38
45
|
}
|
|
46
|
+
export {};
|
|
39
47
|
//# sourceMappingURL=SectionHeadline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionHeadline.d.ts","sourceRoot":"","sources":["../../src/section/SectionHeadline.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,mBAAmB,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAO,KAAK,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SectionHeadline.d.ts","sourceRoot":"","sources":["../../src/section/SectionHeadline.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,mBAAmB,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAO,KAAK,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,KAAK,cAAc,EAAkB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAEpF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,QAAQ,GAAG,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,CAAC;AAEpI,MAAM,WAAW,oBACb,SAAQ,wBAAwB,CAAC;IAC7B,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,KAAK,CAAC;IACd,cAAc,EAAE,KAAK,CAAC;IACtB,QAAQ,EAAE,OAAO,UAAU,CAAC;IAC5B,WAAW,EAAE,OAAO,OAAO,CAAC;IAC5B,WAAW,EAAE,OAAO,UAAU,CAAC;IAC/B,OAAO,EAAE,OAAO,OAAO,CAAC;CAC3B,CAAC;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,UAAU,CAAC,CAAC;IAI/E,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE;QACV,OAAO,CAAC,EAAE,YAAY,CAAC;KAC1B,CAAC;CACL;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,oBAAoB,2CA0C5D;AAuDD,QAAA,MAAM,WAAW;;;;;mDAShB,CAAC;AASF,OAAO,QAAQ,sBAAsB,CAAC;IAClC,UAAU,uBAAuB;QAC7B,yBAAyB,EAAE,uBAAuB,CAAC;KACtD;IAED,UAAU,mBAAmB;QACzB,yBAAyB,EAAE,oBAAoB,CAAC;KACnD;IAED,UAAU,UAAU;QAChB,yBAAyB,CAAC,EAAE;YACxB,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,2BAA2B,CAAC,CAAC,CAAC;YACzE,cAAc,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,2BAA2B,CAAC,CAAC;SAC5E,CAAC;KACL;CACJ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -8,11 +7,14 @@ exports.SectionHeadline = SectionHeadline;
|
|
|
8
7
|
var _adminIcons = require("@comet/admin-icons");
|
|
9
8
|
var _material = require("@mui/material");
|
|
10
9
|
var _styles = require("@mui/material/styles");
|
|
10
|
+
var _react = require("react");
|
|
11
11
|
var _Tooltip = require("../common/Tooltip");
|
|
12
12
|
var _createComponentSlot = require("../helpers/createComponentSlot");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var _excluded = ["children", "divider", "supportText", "infoTooltipText", "iconMapping", "slotProps"];
|
|
15
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
15
|
+
var _excluded = ["children", "divider", "supportText", "infoTooltip", "infoTooltipText", "iconMapping", "slotProps"];
|
|
16
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
17
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
20
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -20,47 +22,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
20
22
|
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); }
|
|
21
23
|
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; }
|
|
22
24
|
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; }
|
|
23
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
24
|
-
var Root = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
25
|
-
componentName: "SectionHeadline",
|
|
26
|
-
slotName: "root"
|
|
27
|
-
})();
|
|
28
|
-
var Header = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
29
|
-
componentName: "SectionHeadline",
|
|
30
|
-
slotName: "header"
|
|
31
|
-
})(function () {
|
|
32
|
-
return (0, _styles.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: space-between;\n "])));
|
|
33
|
-
});
|
|
34
|
-
var TitleContainer = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
35
|
-
componentName: "SectionHeadline",
|
|
36
|
-
slotName: "titleContainer"
|
|
37
|
-
})(function () {
|
|
38
|
-
return (0, _styles.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n "])));
|
|
39
|
-
});
|
|
40
|
-
var Headline = (0, _createComponentSlot.createComponentSlot)(_material.Typography)({
|
|
41
|
-
componentName: "SectionHeadline",
|
|
42
|
-
slotName: "headline"
|
|
43
|
-
})();
|
|
44
|
-
var SupportText = (0, _createComponentSlot.createComponentSlot)(_material.Typography)({
|
|
45
|
-
componentName: "SectionHeadline",
|
|
46
|
-
slotName: "supportText"
|
|
47
|
-
})(function (_ref) {
|
|
48
|
-
var theme = _ref.theme;
|
|
49
|
-
return (0, _styles.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n "])), theme.palette.text.secondary);
|
|
50
|
-
});
|
|
51
|
-
var InfoTooltip = (0, _createComponentSlot.createComponentSlot)(_Tooltip.Tooltip)({
|
|
52
|
-
componentName: "SectionHeadline",
|
|
53
|
-
slotName: "infoTooltip"
|
|
54
|
-
})(function (_ref2) {
|
|
55
|
-
var theme = _ref2.theme;
|
|
56
|
-
return (0, _styles.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n margin-left: 10px;\n font-size: 12px;\n "])), theme.palette.text.secondary);
|
|
57
|
-
});
|
|
58
|
-
var StyledDivider = (0, _createComponentSlot.createComponentSlot)(_material.Divider)({
|
|
59
|
-
componentName: "SectionHeadline",
|
|
60
|
-
slotName: "divider"
|
|
61
|
-
})(function () {
|
|
62
|
-
return (0, _styles.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: 10px;\n "])));
|
|
63
|
-
});
|
|
64
25
|
function SectionHeadline(inProps) {
|
|
65
26
|
var _slotProps$infoToolti;
|
|
66
27
|
var _useThemeProps = (0, _styles.useThemeProps)({
|
|
@@ -70,6 +31,7 @@ function SectionHeadline(inProps) {
|
|
|
70
31
|
children = _useThemeProps.children,
|
|
71
32
|
divider = _useThemeProps.divider,
|
|
72
33
|
supportText = _useThemeProps.supportText,
|
|
34
|
+
infoTooltip = _useThemeProps.infoTooltip,
|
|
73
35
|
infoTooltipText = _useThemeProps.infoTooltipText,
|
|
74
36
|
_useThemeProps$iconMa = _useThemeProps.iconMapping,
|
|
75
37
|
iconMapping = _useThemeProps$iconMa === void 0 ? {} : _useThemeProps$iconMa,
|
|
@@ -81,6 +43,7 @@ function SectionHeadline(inProps) {
|
|
|
81
43
|
fontSize: "inherit"
|
|
82
44
|
}
|
|
83
45
|
}) : _iconMapping$tooltip;
|
|
46
|
+
var infoTooltipProps = getTooltipProps(infoTooltip);
|
|
84
47
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Root, _objectSpread(_objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.root), restProps), {}, {
|
|
85
48
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.header), {}, {
|
|
86
49
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(TitleContainer, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.titleContainer), {}, {
|
|
@@ -88,9 +51,9 @@ function SectionHeadline(inProps) {
|
|
|
88
51
|
variant: "h4"
|
|
89
52
|
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.headline), {}, {
|
|
90
53
|
children: children
|
|
91
|
-
})), (infoTooltipText || (slotProps === null || slotProps === void 0 || (_slotProps$infoToolti = slotProps.infoTooltip) === null || _slotProps$infoToolti === void 0 ? void 0 : _slotProps$infoToolti.title) !== undefined) && /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoTooltip, _objectSpread(_objectSpread({
|
|
54
|
+
})), (infoTooltipText || infoTooltipProps || (slotProps === null || slotProps === void 0 || (_slotProps$infoToolti = slotProps.infoTooltip) === null || _slotProps$infoToolti === void 0 ? void 0 : _slotProps$infoToolti.title) !== undefined) && /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoTooltip, _objectSpread(_objectSpread(_objectSpread({
|
|
92
55
|
title: infoTooltipText
|
|
93
|
-
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.infoTooltip), {}, {
|
|
56
|
+
}, infoTooltipProps), slotProps === null || slotProps === void 0 ? void 0 : slotProps.infoTooltip), {}, {
|
|
94
57
|
children: tooltipIcon
|
|
95
58
|
}))]
|
|
96
59
|
})), supportText && /*#__PURE__*/(0, _jsxRuntime.jsx)(SupportText, _objectSpread(_objectSpread({
|
|
@@ -100,4 +63,50 @@ function SectionHeadline(inProps) {
|
|
|
100
63
|
}))]
|
|
101
64
|
})), divider && /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledDivider, _objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.divider))]
|
|
102
65
|
}));
|
|
103
|
-
}
|
|
66
|
+
}
|
|
67
|
+
var getTooltipProps = function getTooltipProps(infoTooltip) {
|
|
68
|
+
if (!infoTooltip) return null;
|
|
69
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(infoTooltip) || typeof infoTooltip === "string") {
|
|
70
|
+
return {
|
|
71
|
+
title: infoTooltip
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (_typeof(infoTooltip) === "object") {
|
|
75
|
+
return infoTooltip;
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
};
|
|
79
|
+
var Root = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
80
|
+
componentName: "SectionHeadline",
|
|
81
|
+
slotName: "root"
|
|
82
|
+
})();
|
|
83
|
+
var Header = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
84
|
+
componentName: "SectionHeadline",
|
|
85
|
+
slotName: "header"
|
|
86
|
+
})((0, _styles.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: space-between;\n"]))));
|
|
87
|
+
var TitleContainer = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
88
|
+
componentName: "SectionHeadline",
|
|
89
|
+
slotName: "titleContainer"
|
|
90
|
+
})((0, _styles.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"]))));
|
|
91
|
+
var Headline = (0, _createComponentSlot.createComponentSlot)(_material.Typography)({
|
|
92
|
+
componentName: "SectionHeadline",
|
|
93
|
+
slotName: "headline"
|
|
94
|
+
})();
|
|
95
|
+
var SupportText = (0, _createComponentSlot.createComponentSlot)(_material.Typography)({
|
|
96
|
+
componentName: "SectionHeadline",
|
|
97
|
+
slotName: "supportText"
|
|
98
|
+
})(function (_ref) {
|
|
99
|
+
var theme = _ref.theme;
|
|
100
|
+
return (0, _styles.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n "])), theme.palette.text.secondary);
|
|
101
|
+
});
|
|
102
|
+
var InfoTooltip = (0, _createComponentSlot.createComponentSlot)(_Tooltip.Tooltip)({
|
|
103
|
+
componentName: "SectionHeadline",
|
|
104
|
+
slotName: "infoTooltip"
|
|
105
|
+
})(function (_ref2) {
|
|
106
|
+
var theme = _ref2.theme;
|
|
107
|
+
return (0, _styles.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n margin-left: 10px;\n font-size: 12px;\n "])), theme.palette.text.secondary);
|
|
108
|
+
});
|
|
109
|
+
var StyledDivider = (0, _createComponentSlot.createComponentSlot)(_material.Divider)({
|
|
110
|
+
componentName: "SectionHeadline",
|
|
111
|
+
slotName: "divider"
|
|
112
|
+
})((0, _styles.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: 10px;\n"]))));
|
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-20251002124333",
|
|
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-20251002124333"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@apollo/client": "^3.13.8",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"rimraf": "^6.0.1",
|
|
77
77
|
"ts-jest": "^29.4.0",
|
|
78
78
|
"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-
|
|
79
|
+
"@comet/admin-babel-preset": "9.0.0-canary-20251002124333",
|
|
80
|
+
"@comet/eslint-config": "9.0.0-canary-20251002124333",
|
|
81
|
+
"@comet/eslint-plugin": "9.0.0-canary-20251002124333"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@apollo/client": "^3.7.0",
|