@cccsaurora/clue-ui 0.15.0-dev.31 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +143 -39
- package/ActionForm-DgfJwTzt.js +0 -436
- package/AnnotationPreview-BvNpZOP0.js +0 -188
- package/ClueEnrichContext-DXwLVp0M.js +0 -518
- package/FlexOne-BSYAhhtG.js +0 -9
- package/_Map-kgDsDYxq.js +0 -64
- package/_MapCache-DabaaWfq.js +0 -161
- package/_Uint8Array-BlVVH1tp.js +0 -129
- package/_baseAssignValue-CNbcU6Nb.js +0 -25
- package/_baseClone-D3a8Pa4T.js +0 -284
- package/_baseExtremum-B1o1zHjR.js +0 -33
- package/_baseFlatten-D4huXoEI.js +0 -92
- package/_baseGet-BSK_nnoz.js +0 -109
- package/_baseIsEqual-B5xLoweL.js +0 -238
- package/_baseIteratee-p6Nj07-n.js +0 -126
- package/_baseSlice-GAv_YFTT.js +0 -20
- package/_baseSum-D0WC1dN0.js +0 -13
- package/_baseUniq-CpupKWcL.js +0 -89
- package/_commonjsHelpers-CUmg6egw.js +0 -6
- package/_createAggregator-BpVy5xMi.js +0 -63
- package/_getPrototype-D1LAdQKO.js +0 -5
- package/_getTag-D3ToyefI.js +0 -126
- package/api/lookup/enrich.d.ts +0 -10
- package/api/lookup/index.d.ts +0 -5
- package/api/lookup/types.d.ts +0 -5
- package/api/lookup/types_detection.d.ts +0 -5
- package/cloneDeep-CjP5k9zW.js +0 -8
- package/components/AnnotationBody.d.ts +0 -6
- package/components/AnnotationBody.js +0 -56
- package/components/AnnotationDetailPopover.d.ts +0 -14
- package/components/AnnotationDetailPopover.js +0 -61
- package/components/AnnotationDetails.d.ts +0 -8
- package/components/AnnotationDetails.js +0 -172
- package/components/AnnotationEntry.d.ts +0 -6
- package/components/AnnotationEntry.js +0 -59
- package/components/AnnotationPreview.d.ts +0 -14
- package/components/AnnotationPreview.js +0 -11
- package/components/ClassificationChip.d.ts +0 -11
- package/components/ClassificationChip.js +0 -52
- package/components/CountBadge.d.ts +0 -8
- package/components/CountBadge.js +0 -34
- package/components/EnrichedCard.d.ts +0 -14
- package/components/EnrichedCard.js +0 -162
- package/components/EnrichedChip.d.ts +0 -9
- package/components/EnrichedChip.js +0 -176
- package/components/EnrichedTypography.d.ts +0 -16
- package/components/EnrichedTypography.js +0 -178
- package/components/ErrorBoundary.d.ts +0 -15
- package/components/ErrorBoundary.js +0 -36
- package/components/RetryFailedEnrichments.d.ts +0 -2
- package/components/RetryFailedEnrichments.js +0 -13
- package/components/SourcePicker.d.ts +0 -2
- package/components/SourcePicker.js +0 -98
- package/components/actions/ActionForm.d.ts +0 -6
- package/components/actions/ActionForm.js +0 -16
- package/components/actions/ExecutePopover.d.ts +0 -10
- package/components/actions/ExecutePopover.js +0 -93
- package/components/actions/ResultModal.d.ts +0 -9
- package/components/actions/ResultModal.js +0 -46
- package/components/actions/form/schemaAdapter.d.ts +0 -3
- package/components/actions/form/schemaAdapter.js +0 -47
- package/components/display/graph/ExpandMoreButton.d.ts +0 -7
- package/components/display/graph/ExpandMoreButton.js +0 -18
- package/components/display/graph/elements/NodeCard.d.ts +0 -10
- package/components/display/graph/elements/NodeCard.js +0 -146
- package/components/display/graph/elements/NodeTag.d.ts +0 -9
- package/components/display/graph/elements/NodeTag.js +0 -17
- package/components/display/graph/index.d.ts +0 -9
- package/components/display/graph/index.js +0 -438
- package/components/display/graph/visualizations/Leaf.d.ts +0 -25
- package/components/display/graph/visualizations/Leaf.js +0 -125
- package/components/display/graph/visualizations/cloud/index.d.ts +0 -24
- package/components/display/graph/visualizations/cloud/index.js +0 -141
- package/components/display/graph/visualizations/icons/BaseIcon.d.ts +0 -12
- package/components/display/graph/visualizations/icons/BaseIcon.js +0 -37
- package/components/display/graph/visualizations/icons/BugIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/BugIcon.js +0 -18
- package/components/display/graph/visualizations/icons/HostIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/HostIcon.js +0 -24
- package/components/display/graph/visualizations/icons/NetworkIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/NetworkIcon.js +0 -24
- package/components/display/graph/visualizations/icons/ProcessIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/ProcessIcon.js +0 -18
- package/components/display/graph/visualizations/icons/TargetIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/TargetIcon.js +0 -19
- package/components/display/graph/visualizations/icons/index.d.ts +0 -2
- package/components/display/graph/visualizations/icons/index.js +0 -16
- package/components/display/graph/visualizations/panels/NodePanel.d.ts +0 -8
- package/components/display/graph/visualizations/panels/NodePanel.js +0 -12
- package/components/display/graph/visualizations/tree/BundleLine.d.ts +0 -29
- package/components/display/graph/visualizations/tree/BundleLine.js +0 -121
- package/components/display/graph/visualizations/tree/Triangle.d.ts +0 -9
- package/components/display/graph/visualizations/tree/Triangle.js +0 -26
- package/components/display/graph/visualizations/tree/index.d.ts +0 -36
- package/components/display/graph/visualizations/tree/index.js +0 -485
- package/components/display/graph/visualizations/tree/types.d.ts +0 -11
- package/components/display/graph/visualizations/tree/types.js +0 -1
- package/components/display/icons/Iconified.d.ts +0 -9
- package/components/display/icons/Iconified.js +0 -29
- package/components/display/json/index.d.ts +0 -14
- package/components/display/json/index.js +0 -12
- package/components/display/markdown/DynamicTabs.d.ts +0 -8
- package/components/display/markdown/DynamicTabs.js +0 -26
- package/components/display/markdown/index.d.ts +0 -9
- package/components/display/markdown/index.js +0 -13389
- package/components/display/markdown/markdownPlugins/tabs.d.ts +0 -3
- package/components/display/markdown/markdownPlugins/tabs.js +0 -4
- package/components/enrichment/EnrichPopover.d.ts +0 -10
- package/components/enrichment/EnrichPopover.js +0 -88
- package/components/fetchers/Fetcher.d.ts +0 -17
- package/components/fetchers/Fetcher.js +0 -188
- package/components/fetchers/PreviewModal.d.ts +0 -8
- package/components/fetchers/PreviewModal.js +0 -22
- package/components/fetchers/StatusChip.d.ts +0 -8
- package/components/fetchers/StatusChip.js +0 -30
- package/components/group/Entry.d.ts +0 -8
- package/components/group/Entry.js +0 -15
- package/components/group/Group.d.ts +0 -12
- package/components/group/Group.js +0 -15
- package/components/group/GroupControl.d.ts +0 -4
- package/components/group/GroupControl.js +0 -103
- package/components/stats/QueryStatus.d.ts +0 -4
- package/components/stats/QueryStatus.js +0 -61
- package/countBy-C69WslUA.js +0 -14
- package/data/event.d.ts +0 -12
- package/data/event.js +0 -8
- package/database/index.d.ts +0 -4
- package/database/index.js +0 -4
- package/database/selector.schema.json.d.ts +0 -119
- package/database/status.schema.json.d.ts +0 -38
- package/database/types.d.ts +0 -64
- package/debounce-bV0h5FC5.js +0 -92
- package/en/translation.json +0 -135
- package/fr/translation.json +0 -135
- package/get-D3C3lEU3.js +0 -8
- package/groupBy-DC2oOuBN.js +0 -14
- package/hooks/ClueActionContext.d.ts +0 -86
- package/hooks/ClueActionContext.js +0 -18
- package/hooks/ClueComponentContext.d.ts +0 -10
- package/hooks/ClueComponentContext.js +0 -40
- package/hooks/ClueConfigProvider.d.ts +0 -12
- package/hooks/ClueConfigProvider.js +0 -23
- package/hooks/ClueDatabaseContext.d.ts +0 -10
- package/hooks/ClueDatabaseContext.js +0 -23
- package/hooks/ClueEnrichContext.d.ts +0 -6
- package/hooks/ClueEnrichContext.js +0 -15
- package/hooks/ClueEnrichContextType.d.ts +0 -113
- package/hooks/ClueEnrichProps.d.ts +0 -81
- package/hooks/ClueFetcherContext.d.ts +0 -35
- package/hooks/ClueFetcherContext.js +0 -88
- package/hooks/ClueGroupContext.d.ts +0 -14
- package/hooks/ClueGroupContext.js +0 -23
- package/hooks/CluePopupContext.d.ts +0 -24
- package/hooks/CluePopupContext.js +0 -12
- package/hooks/ClueProvider.d.ts +0 -9
- package/hooks/ClueProvider.js +0 -14
- package/hooks/selectors.d.ts +0 -10
- package/hooks/selectors.js +0 -24
- package/hooks/useAnnotations.d.ts +0 -24
- package/hooks/useAnnotations.js +0 -69
- package/hooks/useClue.d.ts +0 -4
- package/hooks/useClue.js +0 -8
- package/hooks/useClueActions.d.ts +0 -4
- package/hooks/useClueActions.js +0 -5
- package/hooks/useClueConfig.d.ts +0 -1
- package/hooks/useClueConfig.js +0 -8
- package/hooks/useClueTypeConfig.d.ts +0 -17
- package/hooks/useClueTypeConfig.js +0 -7
- package/hooks/useComparator.d.ts +0 -16
- package/hooks/useComparator.js +0 -1060
- package/hooks/useErrors.d.ts +0 -17
- package/hooks/useErrors.js +0 -35
- package/hooks/useMyHighlights.d.ts +0 -11
- package/hooks/useMyHighlights.js +0 -74
- package/hooks/useMyLocalStorage.d.ts +0 -16
- package/hooks/useMyLocalStorage.js +0 -80
- package/iconify-CXMreGTg.js +0 -1782
- package/icons/Action.d.ts +0 -9
- package/icons/Action.js +0 -90
- package/icons/Assessment.d.ts +0 -11
- package/icons/Assessment.js +0 -123
- package/icons/Context.d.ts +0 -12
- package/icons/Context.js +0 -83
- package/icons/Opinion.d.ts +0 -11
- package/icons/Opinion.js +0 -125
- package/icons/iconMap.d.ts +0 -7
- package/icons/iconMap.js +0 -10
- package/identity-CPGTqrE4.js +0 -6
- package/index-BDVjGvMI.js +0 -696
- package/index-BDrtH5ec.js +0 -465
- package/index-C9lySIVX.js +0 -1172
- package/index-DJYqRcxJ.js +0 -15750
- package/index-Dn2NHyXg.js +0 -17654
- package/index.css +0 -21
- package/isEmpty-BQkZubqU.js +0 -29
- package/isNil-CIubwp4T.js +0 -6
- package/isObject-FTY-5JQX.js +0 -7
- package/isObjectLike-OAgjjZye.js +0 -48
- package/isSymbol-Xd2FsJyp.js +0 -8
- package/isUndefined-CE8h73dH.js +0 -10
- package/last-CUCl67Im.js +0 -7
- package/main.d.ts +0 -42
- package/main.js +0 -70
- package/public/manifest.json +0 -16
- package/public/robots.txt +0 -3
- package/public/svg/dark/clue-h.svg +0 -52
- package/public/svg/dark/clue-icon1-simple.svg +0 -33
- package/public/svg/dark/clue-icon1.svg +0 -44
- package/public/svg/dark/clue-icon2-simple.svg +0 -26
- package/public/svg/dark/clue-icon2.svg +0 -37
- package/public/svg/dark/clue-name.svg +0 -14
- package/public/svg/dark/clue-v.svg +0 -52
- package/public/svg/light/clue-h.svg +0 -60
- package/public/svg/light/clue-icon1-simple.svg +0 -37
- package/public/svg/light/clue-icon1.svg +0 -48
- package/public/svg/light/clue-icon2-simple.svg +0 -30
- package/public/svg/light/clue-icon2.svg +0 -41
- package/public/svg/light/clue-name.svg +0 -14
- package/public/svg/light/clue-v.svg +0 -60
- package/sortBy-B-UKp4GT.js +0 -100
- package/sumBy-MYkDPHZL.js +0 -8
- package/tabs-xGuUGsJd.js +0 -254
- package/text/Frequency.d.ts +0 -9
- package/text/Frequency.js +0 -49
- package/toFinite-CArjry_l.js +0 -16
- package/toNumber-DPxy1FBy.js +0 -39
- package/types/EnrichmentProps.d.ts +0 -73
- package/types/RunningActionData.d.ts +0 -15
- package/types/WithActionData.d.ts +0 -9
- package/types/action.d.ts +0 -25
- package/types/config.d.ts +0 -16
- package/types/fetcher.d.ts +0 -60
- package/types/graph.d.ts +0 -101
- package/types/lookup.d.ts +0 -62
- package/types/network.d.ts +0 -9
- package/useClueTypeConfig-D9ZSxa4F.js +0 -3096
- package/utils/chain.d.ts +0 -14
- package/utils/chain.js +0 -106
- package/utils/classificationParser.d.ts +0 -195
- package/utils/classificationParser.js +0 -553
- package/utils/constants.d.ts +0 -26
- package/utils/constants.js +0 -36
- package/utils/graph.d.ts +0 -13
- package/utils/graph.js +0 -79
- package/utils/hashUtil.d.ts +0 -6
- package/utils/hashUtil.js +0 -11
- package/utils/line.d.ts +0 -28
- package/utils/line.js +0 -136
- package/utils/loggerUtil.d.ts +0 -6
- package/utils/loggerUtil.js +0 -8
- package/utils/sessionStorage.d.ts +0 -9
- package/utils/sessionStorage.js +0 -51
- package/utils/utils.d.ts +0 -13
- package/utils/utils.js +0 -11
- package/utils/window.d.ts +0 -3
- package/utils/window.js +0 -24
- package/utils-CxIhC2xH.js +0 -4182
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { I as Icon } from "../iconify-CXMreGTg.js";
|
|
3
|
-
import { Stack, Typography, Chip, IconButton } from "@mui/material";
|
|
4
|
-
import Iconified from "./display/icons/Iconified.js";
|
|
5
|
-
import { t as twitterShort } from "../utils-CxIhC2xH.js";
|
|
6
|
-
import { memo } from "react";
|
|
7
|
-
import AnnotationBody from "./AnnotationBody.js";
|
|
8
|
-
import ClassificationChip from "./ClassificationChip.js";
|
|
9
|
-
const AnnotatonEntry = ({ annotation }) => {
|
|
10
|
-
return /* @__PURE__ */ jsxs(Stack, { direction: "column", spacing: 1, children: [
|
|
11
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
12
|
-
annotation.analytic_icon && /* @__PURE__ */ jsx(
|
|
13
|
-
Icon,
|
|
14
|
-
{
|
|
15
|
-
style: { alignSelf: "center", filter: "drop-shadow(0px 0px 1px rgb(0 0 0 / 0.4))" },
|
|
16
|
-
icon: annotation.analytic_icon
|
|
17
|
-
}
|
|
18
|
-
),
|
|
19
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body1", sx: { textTransform: "capitalize", maxWidth: "275px" }, children: annotation.analytic ?? annotation.author }),
|
|
20
|
-
annotation.quantity > 1 && /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "text.secondary", children: [
|
|
21
|
-
"(x",
|
|
22
|
-
annotation.quantity,
|
|
23
|
-
")"
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
|
|
26
|
-
annotation.version && /* @__PURE__ */ jsx(Chip, { size: "small", label: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
-
"v",
|
|
28
|
-
annotation.version.replace(/^v/, "")
|
|
29
|
-
] }) }),
|
|
30
|
-
annotation.link && /* @__PURE__ */ jsx(
|
|
31
|
-
IconButton,
|
|
32
|
-
{
|
|
33
|
-
component: "a",
|
|
34
|
-
href: annotation.link,
|
|
35
|
-
onClick: () => window.open(annotation.link, "_blank", "noreferrer"),
|
|
36
|
-
target: "_blank",
|
|
37
|
-
rel: "noreferrer",
|
|
38
|
-
size: "small",
|
|
39
|
-
children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-open-in-new", fontSize: "small" })
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
annotation.classification && /* @__PURE__ */ jsx(ClassificationChip, { size: "small", classification: annotation.classification })
|
|
43
|
-
] }),
|
|
44
|
-
/* @__PURE__ */ jsx(AnnotationBody, { annotation }),
|
|
45
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.secondary", children: annotation.summary }),
|
|
46
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", children: [
|
|
47
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.secondary", fontSize: "10px", children: twitterShort(annotation.timestamp) }),
|
|
48
|
-
/* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
|
|
49
|
-
!!annotation.latency && /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "text.secondary", fontSize: "10px", children: [
|
|
50
|
-
Math.round(annotation.latency),
|
|
51
|
-
"ms"
|
|
52
|
-
] })
|
|
53
|
-
] })
|
|
54
|
-
] });
|
|
55
|
-
};
|
|
56
|
-
const AnnotationEntry = memo(AnnotatonEntry);
|
|
57
|
-
export {
|
|
58
|
-
AnnotationEntry as default
|
|
59
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PopperProps } from '@mui/material';
|
|
2
|
-
import { Selector } from "../types/lookup";
|
|
3
|
-
import { FC } from 'react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Annotation Preview is for showing a temporary popper on hover.
|
|
7
|
-
*/
|
|
8
|
-
declare const AnnotationPreview: FC<{
|
|
9
|
-
annotationType: 'opinion' | 'frequency' | 'owner' | 'assessment' | 'context' | 'activity' | 'mitigation' | 'actionResults';
|
|
10
|
-
anchorEl: HTMLElement;
|
|
11
|
-
enrichRequest: Selector;
|
|
12
|
-
open: boolean;
|
|
13
|
-
} & Omit<PopperProps, 'open'>>;
|
|
14
|
-
export default AnnotationPreview;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../iconify-CXMreGTg.js";
|
|
3
|
-
import "@mui/material";
|
|
4
|
-
import { A } from "../AnnotationPreview-BvNpZOP0.js";
|
|
5
|
-
import "../hooks/useAnnotations.js";
|
|
6
|
-
import "../utils-CxIhC2xH.js";
|
|
7
|
-
import "react";
|
|
8
|
-
import "../index-BDVjGvMI.js";
|
|
9
|
-
export {
|
|
10
|
-
A as default
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface EnrichedChipProps {
|
|
4
|
-
classification: string;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: React.NamedExoticComponent<EnrichedChipProps & import('@mui/material').ChipOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
8
|
-
}, "disabled" | "icon" | "color" | "style" | "size" | "children" | "variant" | "classes" | "className" | "sx" | "label" | "tabIndex" | "onDelete" | "avatar" | "clickable" | "deleteIcon" | "skipFocusWhenDisabled"> & {
|
|
9
|
-
component?: React.ElementType;
|
|
10
|
-
}>;
|
|
11
|
-
export default _default;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Tooltip, Chip } from "@mui/material";
|
|
3
|
-
import useClueConfig from "../hooks/useClueConfig.js";
|
|
4
|
-
import { getParts, normalizedClassification } from "../utils/classificationParser.js";
|
|
5
|
-
import React__default, { useMemo, memo } from "react";
|
|
6
|
-
const THEME_TYPES = ["default", "primary", "secondary", "error", "info", "success", "warning"];
|
|
7
|
-
const ClassificationChip = React__default.memo(
|
|
8
|
-
({ classification, ...otherProps }) => {
|
|
9
|
-
var _a, _b;
|
|
10
|
-
const { config } = useClueConfig();
|
|
11
|
-
const parts = useMemo(() => {
|
|
12
|
-
if (!config.c12nDef) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
return getParts(classification, config.c12nDef, "short", true);
|
|
16
|
-
}, [classification, config.c12nDef]);
|
|
17
|
-
const normalized = useMemo(() => {
|
|
18
|
-
if (!config.c12nDef || !parts) {
|
|
19
|
-
return classification;
|
|
20
|
-
}
|
|
21
|
-
return normalizedClassification(parts, config.c12nDef, "short", true);
|
|
22
|
-
}, [classification, config.c12nDef, parts]);
|
|
23
|
-
const chipProps = useMemo(() => {
|
|
24
|
-
var _a2, _b2, _c;
|
|
25
|
-
const definedColor = (_c = (_b2 = config.c12nDef) == null ? void 0 : _b2.levels_styles_map[(_a2 = config.c12nDef) == null ? void 0 : _a2.levels_map[parts.lvlIdx]]) == null ? void 0 : _c.color;
|
|
26
|
-
if (THEME_TYPES.includes(definedColor)) {
|
|
27
|
-
return { color: definedColor };
|
|
28
|
-
}
|
|
29
|
-
if (definedColor) {
|
|
30
|
-
return { sx: { color: definedColor } };
|
|
31
|
-
}
|
|
32
|
-
return { color: "default" };
|
|
33
|
-
}, [(_a = config.c12nDef) == null ? void 0 : _a.levels_map, (_b = config.c12nDef) == null ? void 0 : _b.levels_styles_map, parts.lvlIdx]);
|
|
34
|
-
return /* @__PURE__ */ jsx(Tooltip, { title: classification, children: /* @__PURE__ */ jsx(
|
|
35
|
-
Chip,
|
|
36
|
-
{
|
|
37
|
-
variant: otherProps.variant || "outlined",
|
|
38
|
-
label: normalized,
|
|
39
|
-
...chipProps,
|
|
40
|
-
...otherProps,
|
|
41
|
-
sx: [
|
|
42
|
-
...Array.isArray(chipProps.sx) ? chipProps.sx : [chipProps.sx],
|
|
43
|
-
...Array.isArray(otherProps.sx) ? otherProps.sx : [otherProps.sx]
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
) });
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
const ClassificationChip$1 = memo(ClassificationChip);
|
|
50
|
-
export {
|
|
51
|
-
ClassificationChip$1 as default
|
|
52
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const CountBadge: import('react').ForwardRefExoticComponent<{
|
|
2
|
-
color?: "error" | "secondary" | "default" | "primary" | "info" | "success" | "warning";
|
|
3
|
-
count: number;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
} & {
|
|
6
|
-
children?: import('react').ReactNode | undefined;
|
|
7
|
-
} & import('react').RefAttributes<HTMLElement>>;
|
|
8
|
-
export default CountBadge;
|
package/components/CountBadge.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Badge } from "@mui/material";
|
|
3
|
-
import { forwardRef, cloneElement, Children } from "react";
|
|
4
|
-
const CountBadge = forwardRef(({ children, color = "primary", count, disabled, ...props }, ref) => {
|
|
5
|
-
if (disabled) {
|
|
6
|
-
return cloneElement(Children.only(children), { ref, ...props });
|
|
7
|
-
}
|
|
8
|
-
return /* @__PURE__ */ jsx(
|
|
9
|
-
Badge,
|
|
10
|
-
{
|
|
11
|
-
ref,
|
|
12
|
-
...props,
|
|
13
|
-
badgeContent: count < 100 ? count : "99+",
|
|
14
|
-
color,
|
|
15
|
-
sx: (theme) => ({
|
|
16
|
-
"& .MuiBadge-badge": {
|
|
17
|
-
backgroundColor: "transparent",
|
|
18
|
-
color: theme.palette[color].main,
|
|
19
|
-
fontWeight: "bold",
|
|
20
|
-
right: 0,
|
|
21
|
-
top: 0,
|
|
22
|
-
transform: `translateY(-25%) translateX(${Math.min(Math.ceil(Math.log10(count)), 3) * 10}%)`,
|
|
23
|
-
px: 0,
|
|
24
|
-
fontSize: ".85rem"
|
|
25
|
-
},
|
|
26
|
-
pr: 1.5
|
|
27
|
-
}),
|
|
28
|
-
children
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
CountBadge as default
|
|
34
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface EnrichedCardProps {
|
|
2
|
-
type: string;
|
|
3
|
-
value: string;
|
|
4
|
-
classification?: string;
|
|
5
|
-
contextIcon?: boolean;
|
|
6
|
-
counters?: boolean;
|
|
7
|
-
hideLoading?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: import('react').NamedExoticComponent<EnrichedCardProps & import('@mui/material').CardOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
-
ref?: import('react').Ref<HTMLDivElement>;
|
|
11
|
-
}, "style" | "square" | "children" | "variant" | "classes" | "className" | "sx" | "elevation" | "raised"> & {
|
|
12
|
-
component?: React.ElementType;
|
|
13
|
-
}>;
|
|
14
|
-
export default _default;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { I as Icon } from "../iconify-CXMreGTg.js";
|
|
3
|
-
import { useTheme, Card, CardHeader, Stack, CircularProgress, Divider, CardContent, Grid, Chip, Typography, Tooltip, Box } from "@mui/material";
|
|
4
|
-
import { ClueComponentContext } from "../hooks/ClueComponentContext.js";
|
|
5
|
-
import { useClueEnrichSelector } from "../hooks/selectors.js";
|
|
6
|
-
import useAnnotations from "../hooks/useAnnotations.js";
|
|
7
|
-
import useErrors from "../hooks/useErrors.js";
|
|
8
|
-
import AssessmentIcon from "../icons/Assessment.js";
|
|
9
|
-
import ContextIcon from "../icons/Context.js";
|
|
10
|
-
import OpinionIcon from "../icons/Opinion.js";
|
|
11
|
-
import { ICON_MAP } from "../icons/iconMap.js";
|
|
12
|
-
import FrequencyText from "../text/Frequency.js";
|
|
13
|
-
import { memo, useState, useMemo, useCallback } from "react";
|
|
14
|
-
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
15
|
-
import AnnotationEntry from "./AnnotationEntry.js";
|
|
16
|
-
import { u as uniq } from "../ClueEnrichContext-DXwLVp0M.js";
|
|
17
|
-
const EnrichedCard = ({
|
|
18
|
-
type,
|
|
19
|
-
value,
|
|
20
|
-
classification: _classification,
|
|
21
|
-
contextIcon = false,
|
|
22
|
-
counters = false,
|
|
23
|
-
hideLoading = false,
|
|
24
|
-
...otherProps
|
|
25
|
-
}) => {
|
|
26
|
-
const theme = useTheme();
|
|
27
|
-
const { t } = useContextSelector(ClueComponentContext, (ctx) => ctx.i18next);
|
|
28
|
-
const defaultClassification = useClueEnrichSelector((ctx) => ctx.defaultClassification);
|
|
29
|
-
const enrich = useClueEnrichSelector((state) => state.enrich);
|
|
30
|
-
const [filter, setFilter] = useState("all");
|
|
31
|
-
const classification = useMemo(
|
|
32
|
-
() => _classification ?? defaultClassification,
|
|
33
|
-
[_classification, defaultClassification]
|
|
34
|
-
);
|
|
35
|
-
const [annotations, loading] = useAnnotations(type, value, classification);
|
|
36
|
-
const errors = useErrors(value);
|
|
37
|
-
const options = useMemo(() => ["all", ...uniq(annotations.map((annotation) => annotation.type))], [annotations]);
|
|
38
|
-
const forceEnrich = useCallback(() => {
|
|
39
|
-
return enrich(type, value, {
|
|
40
|
-
classification,
|
|
41
|
-
timeout: 15,
|
|
42
|
-
force: true
|
|
43
|
-
});
|
|
44
|
-
}, [classification, enrich, type, value]);
|
|
45
|
-
return /* @__PURE__ */ jsxs(
|
|
46
|
-
Card,
|
|
47
|
-
{
|
|
48
|
-
sx: [
|
|
49
|
-
{
|
|
50
|
-
maxWidth: "900px"
|
|
51
|
-
},
|
|
52
|
-
...Array.isArray(otherProps == null ? void 0 : otherProps.sx) ? otherProps == null ? void 0 : otherProps.sx : [otherProps == null ? void 0 : otherProps.sx]
|
|
53
|
-
],
|
|
54
|
-
...otherProps,
|
|
55
|
-
children: [
|
|
56
|
-
/* @__PURE__ */ jsx(
|
|
57
|
-
CardHeader,
|
|
58
|
-
{
|
|
59
|
-
title: /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
60
|
-
/* @__PURE__ */ jsx(FrequencyText, { annotations, value, variant: "h6" }),
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
62
|
-
AssessmentIcon,
|
|
63
|
-
{
|
|
64
|
-
value: { type, value, classification },
|
|
65
|
-
annotations,
|
|
66
|
-
counters,
|
|
67
|
-
fontSize: "1em",
|
|
68
|
-
disableTooltip: true
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
/* @__PURE__ */ jsx(
|
|
72
|
-
OpinionIcon,
|
|
73
|
-
{
|
|
74
|
-
value: { type, value, classification },
|
|
75
|
-
annotations,
|
|
76
|
-
counters,
|
|
77
|
-
fontSize: "1em",
|
|
78
|
-
disableTooltip: true
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
/* @__PURE__ */ jsx(
|
|
82
|
-
ContextIcon,
|
|
83
|
-
{
|
|
84
|
-
value: { type, value, classification },
|
|
85
|
-
annotations,
|
|
86
|
-
counters,
|
|
87
|
-
showExtraIcon: contextIcon,
|
|
88
|
-
fontSize: "inherit",
|
|
89
|
-
disableTooltip: true
|
|
90
|
-
}
|
|
91
|
-
),
|
|
92
|
-
loading && !hideLoading && /* @__PURE__ */ jsx(CircularProgress, { color: "primary", size: 18 })
|
|
93
|
-
] })
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
/* @__PURE__ */ jsx(Divider, { sx: { mx: 1 } }),
|
|
97
|
-
/* @__PURE__ */ jsxs(CardContent, { sx: { p: 1 }, children: [
|
|
98
|
-
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 0.5, sx: { mb: 1 }, children: [
|
|
99
|
-
options.map((opt, id) => (
|
|
100
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
101
|
-
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
102
|
-
Chip,
|
|
103
|
-
{
|
|
104
|
-
size: "small",
|
|
105
|
-
variant: opt === filter ? "filled" : "outlined",
|
|
106
|
-
icon: ICON_MAP[opt] && /* @__PURE__ */ jsx(Icon, { icon: ICON_MAP[opt] }),
|
|
107
|
-
label: /* @__PURE__ */ jsxs(Typography, { variant: "caption", textTransform: "capitalize", children: [
|
|
108
|
-
opt,
|
|
109
|
-
":",
|
|
110
|
-
" ",
|
|
111
|
-
opt === "all" ? annotations.length : annotations.filter((annotation) => annotation.type === opt).length
|
|
112
|
-
] }),
|
|
113
|
-
onClick: () => setFilter(opt)
|
|
114
|
-
}
|
|
115
|
-
) }, id)
|
|
116
|
-
)),
|
|
117
|
-
(errors == null ? void 0 : errors.length) > 0 && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
118
|
-
Tooltip,
|
|
119
|
-
{
|
|
120
|
-
title: /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: errors.map((err) => /* @__PURE__ */ jsxs("div", { children: [
|
|
121
|
-
/* @__PURE__ */ jsx("span", { style: { textTransform: "capitalize" }, children: err.source.replace(/-/g, " ") }),
|
|
122
|
-
":",
|
|
123
|
-
" ",
|
|
124
|
-
err.message
|
|
125
|
-
] }, err.source)) }),
|
|
126
|
-
children: /* @__PURE__ */ jsx(
|
|
127
|
-
Chip,
|
|
128
|
-
{
|
|
129
|
-
size: "small",
|
|
130
|
-
variant: "outlined",
|
|
131
|
-
icon: /* @__PURE__ */ jsx(
|
|
132
|
-
Icon,
|
|
133
|
-
{
|
|
134
|
-
icon: "material-symbols:timer-outline",
|
|
135
|
-
color: theme.palette.error.main,
|
|
136
|
-
style: { filter: "drop-shadow(0px 0px 1px rgb(0 0 0 / 0.4))" }
|
|
137
|
-
}
|
|
138
|
-
),
|
|
139
|
-
label: /* @__PURE__ */ jsxs(Typography, { variant: "caption", textTransform: "capitalize", children: [
|
|
140
|
-
t("annotation.failed"),
|
|
141
|
-
": ",
|
|
142
|
-
errors.length
|
|
143
|
-
] }),
|
|
144
|
-
onClick: forceEnrich
|
|
145
|
-
}
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
) })
|
|
149
|
-
] }),
|
|
150
|
-
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, alignItems: "stretch", children: annotations.map((annotation, id) => (
|
|
151
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
152
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs: 6, minWidth: "300px", children: /* @__PURE__ */ jsx(Box, { sx: { border: `thin solid ${theme.palette.divider}`, p: 1, height: "100%" }, children: /* @__PURE__ */ jsx(AnnotationEntry, { annotation }) }) }, id)
|
|
153
|
-
)) })
|
|
154
|
-
] })
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
};
|
|
159
|
-
const EnrichedCard$1 = memo(EnrichedCard);
|
|
160
|
-
export {
|
|
161
|
-
EnrichedCard$1 as default
|
|
162
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as EnrichmentProps } from "../types/EnrichmentProps";
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
|
|
4
|
-
declare const _default: React.NamedExoticComponent<EnrichmentProps & import('@mui/material').ChipOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
-
}, "disabled" | "icon" | "color" | "style" | "size" | "children" | "variant" | "classes" | "className" | "sx" | "label" | "tabIndex" | "onDelete" | "avatar" | "clickable" | "deleteIcon" | "skipFocusWhenDisabled"> & {
|
|
7
|
-
component?: React.ElementType;
|
|
8
|
-
}>;
|
|
9
|
-
export default _default;
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Chip, Tooltip, Box, Stack, CircularProgress } from "@mui/material";
|
|
3
|
-
import Iconified from "./display/icons/Iconified.js";
|
|
4
|
-
import { ClueComponentContext } from "../hooks/ClueComponentContext.js";
|
|
5
|
-
import { ClueGroupContext } from "../hooks/ClueGroupContext.js";
|
|
6
|
-
import { C as CluePopupContext } from "../AnnotationPreview-BvNpZOP0.js";
|
|
7
|
-
import { useClueEnrichSelector } from "../hooks/selectors.js";
|
|
8
|
-
import useAnnotations from "../hooks/useAnnotations.js";
|
|
9
|
-
import ActionIcon from "../icons/Action.js";
|
|
10
|
-
import AssessmentIcon from "../icons/Assessment.js";
|
|
11
|
-
import ContextIcon from "../icons/Context.js";
|
|
12
|
-
import OpinionIcon from "../icons/Opinion.js";
|
|
13
|
-
import FrequencyText from "../text/Frequency.js";
|
|
14
|
-
import React__default, { useRef, useMemo, useCallback, useEffect, memo } from "react";
|
|
15
|
-
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
16
|
-
const EnrichedChip = React__default.memo(
|
|
17
|
-
({
|
|
18
|
-
type: _type,
|
|
19
|
-
value,
|
|
20
|
-
classification: _classification,
|
|
21
|
-
contextIcon = false,
|
|
22
|
-
counters = false,
|
|
23
|
-
hideDetails = false,
|
|
24
|
-
hideLoading = false,
|
|
25
|
-
forceDetails = false,
|
|
26
|
-
setForceDetails = null,
|
|
27
|
-
useDetailsIcon = false,
|
|
28
|
-
skipEnrichment = false,
|
|
29
|
-
slotProps = {},
|
|
30
|
-
...otherProps
|
|
31
|
-
}) => {
|
|
32
|
-
const { t } = useContextSelector(ClueComponentContext, (ctx) => ctx.i18next);
|
|
33
|
-
const anchorRef = useRef();
|
|
34
|
-
const groupType = useContextSelector(ClueGroupContext, (ctx) => ctx == null ? void 0 : ctx.type);
|
|
35
|
-
const defaultClassification = useClueEnrichSelector((ctx) => ctx.defaultClassification);
|
|
36
|
-
const type = useMemo(() => _type ?? groupType, [_type, groupType]);
|
|
37
|
-
const classification = useMemo(
|
|
38
|
-
() => _classification ?? defaultClassification,
|
|
39
|
-
[_classification, defaultClassification]
|
|
40
|
-
);
|
|
41
|
-
if (!type) {
|
|
42
|
-
throw new Error("Type was not provided as a prop, and component is not used in a group context.");
|
|
43
|
-
}
|
|
44
|
-
const [annotations, loading] = useAnnotations(type, value, classification, { skipEnrichment });
|
|
45
|
-
const showInfo = useContextSelector(CluePopupContext, (ctx) => ctx.showInfo);
|
|
46
|
-
const closeInfo = useContextSelector(CluePopupContext, (ctx) => ctx.closeInfo);
|
|
47
|
-
const buildOptions = useCallback(() => {
|
|
48
|
-
const options = {};
|
|
49
|
-
if (setForceDetails) {
|
|
50
|
-
options.onClose = () => setForceDetails(false);
|
|
51
|
-
}
|
|
52
|
-
if (slotProps == null ? void 0 : slotProps.popover) {
|
|
53
|
-
options.popoverProps = slotProps.popover;
|
|
54
|
-
}
|
|
55
|
-
return options;
|
|
56
|
-
}, [setForceDetails, slotProps.popover]);
|
|
57
|
-
const clicker = useMemo(
|
|
58
|
-
() => !loading ? !hideDetails || useDetailsIcon ? (e) => {
|
|
59
|
-
var _a;
|
|
60
|
-
showInfo("details", anchorRef.current, { type, value, classification }, buildOptions());
|
|
61
|
-
(_a = otherProps.onClick) == null ? void 0 : _a.call(otherProps, e);
|
|
62
|
-
e.stopPropagation();
|
|
63
|
-
e.preventDefault();
|
|
64
|
-
} : otherProps.onClick : (
|
|
65
|
-
// We need to give a dummy callback when loading so the popover doesn't get confused
|
|
66
|
-
(e) => {
|
|
67
|
-
var _a;
|
|
68
|
-
(_a = otherProps.onClick) == null ? void 0 : _a.call(otherProps, e);
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
72
|
-
[loading, hideDetails, useDetailsIcon, otherProps, type, value, classification]
|
|
73
|
-
);
|
|
74
|
-
useEffect(() => {
|
|
75
|
-
if (forceDetails) {
|
|
76
|
-
showInfo("details", anchorRef.current, { type, value, classification }, buildOptions());
|
|
77
|
-
} else {
|
|
78
|
-
closeInfo("details", {
|
|
79
|
-
type,
|
|
80
|
-
value,
|
|
81
|
-
classification
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}, [classification, forceDetails, type, value]);
|
|
85
|
-
return /* @__PURE__ */ jsx(
|
|
86
|
-
Chip,
|
|
87
|
-
{
|
|
88
|
-
...otherProps,
|
|
89
|
-
ref: anchorRef,
|
|
90
|
-
variant: otherProps.variant || "outlined",
|
|
91
|
-
sx: {
|
|
92
|
-
height: otherProps.size !== "small" ? "40px" : "unset",
|
|
93
|
-
"& .MuiChip-label": { overflow: "visible" },
|
|
94
|
-
...otherProps.sx ?? {}
|
|
95
|
-
},
|
|
96
|
-
label: /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
97
|
-
/* @__PURE__ */ jsx(
|
|
98
|
-
AssessmentIcon,
|
|
99
|
-
{
|
|
100
|
-
ubiquitous: true,
|
|
101
|
-
value: { type, value, classification },
|
|
102
|
-
annotations,
|
|
103
|
-
counters,
|
|
104
|
-
disableTooltip: forceDetails,
|
|
105
|
-
style: { flexShrink: 0 }
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
/* @__PURE__ */ jsx(
|
|
109
|
-
OpinionIcon,
|
|
110
|
-
{
|
|
111
|
-
ubiquitous: true,
|
|
112
|
-
value: { type, value, classification },
|
|
113
|
-
annotations,
|
|
114
|
-
counters,
|
|
115
|
-
disableTooltip: forceDetails,
|
|
116
|
-
style: { flexShrink: 0 }
|
|
117
|
-
}
|
|
118
|
-
),
|
|
119
|
-
/* @__PURE__ */ jsx(
|
|
120
|
-
ContextIcon,
|
|
121
|
-
{
|
|
122
|
-
ubiquitous: true,
|
|
123
|
-
value: { type, value, classification },
|
|
124
|
-
annotations,
|
|
125
|
-
counters,
|
|
126
|
-
showExtraIcon: contextIcon,
|
|
127
|
-
disableTooltip: forceDetails,
|
|
128
|
-
style: { flexShrink: 0 }
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
otherProps.label ?? /* @__PURE__ */ jsx(FrequencyText, { fontSize: "inherit", annotations, value }),
|
|
132
|
-
/* @__PURE__ */ jsx(
|
|
133
|
-
AssessmentIcon,
|
|
134
|
-
{
|
|
135
|
-
value: { type, value, classification },
|
|
136
|
-
annotations,
|
|
137
|
-
counters,
|
|
138
|
-
disableTooltip: forceDetails,
|
|
139
|
-
style: { flexShrink: 0 }
|
|
140
|
-
}
|
|
141
|
-
),
|
|
142
|
-
/* @__PURE__ */ jsx(
|
|
143
|
-
OpinionIcon,
|
|
144
|
-
{
|
|
145
|
-
value: { type, value, classification },
|
|
146
|
-
annotations,
|
|
147
|
-
counters,
|
|
148
|
-
disableTooltip: forceDetails,
|
|
149
|
-
style: { flexShrink: 0 }
|
|
150
|
-
}
|
|
151
|
-
),
|
|
152
|
-
/* @__PURE__ */ jsx(
|
|
153
|
-
ContextIcon,
|
|
154
|
-
{
|
|
155
|
-
value: { type, value, classification },
|
|
156
|
-
annotations,
|
|
157
|
-
counters,
|
|
158
|
-
showExtraIcon: contextIcon,
|
|
159
|
-
disableTooltip: forceDetails,
|
|
160
|
-
style: { flexShrink: 0 }
|
|
161
|
-
}
|
|
162
|
-
),
|
|
163
|
-
/* @__PURE__ */ jsx(ActionIcon, { counters, value: { type, value, classification }, disableTooltip: forceDetails }),
|
|
164
|
-
loading && !hideLoading && /* @__PURE__ */ jsx(CircularProgress, { color: "primary", size: 16 })
|
|
165
|
-
] }),
|
|
166
|
-
onClick: !useDetailsIcon ? clicker : void 0,
|
|
167
|
-
onDelete: !loading && useDetailsIcon ? clicker : void 0,
|
|
168
|
-
deleteIcon: useDetailsIcon ? /* @__PURE__ */ jsx(Tooltip, { title: t("details.open"), children: /* @__PURE__ */ jsx(Box, { component: "span", sx: { pr: 1 }, children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:outline-info" }) }) }) : null
|
|
169
|
-
}
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
const EnrichedChip$1 = memo(EnrichedChip);
|
|
174
|
-
export {
|
|
175
|
-
EnrichedChip$1 as default
|
|
176
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PopoverProps, PopperProps, StackProps } from '@mui/material';
|
|
2
|
-
import { default as EnrichmentProps } from "../types/EnrichmentProps";
|
|
3
|
-
|
|
4
|
-
export interface EnrichedTypographyProps extends EnrichmentProps {
|
|
5
|
-
slotProps?: {
|
|
6
|
-
stack?: StackProps;
|
|
7
|
-
popper?: PopperProps;
|
|
8
|
-
popover?: Omit<PopoverProps, 'open'>;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import('react').NamedExoticComponent<EnrichedTypographyProps & import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
12
|
-
ref?: import('react').Ref<HTMLSpanElement>;
|
|
13
|
-
}, "fontSize" | "color" | "style" | "left" | "right" | "bottom" | "top" | "flex" | "position" | "border" | "padding" | "children" | "variant" | "classes" | "className" | "margin" | "sx" | "p" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "overflow" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "noWrap" | "paragraph" | "gutterBottom" | "variantMapping"> & {
|
|
14
|
-
component?: React.ElementType;
|
|
15
|
-
}>;
|
|
16
|
-
export default _default;
|