@databiosphere/findable-ui 30.0.0 → 32.0.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +24 -0
- package/lib/common/entities.d.ts +8 -26
- package/lib/components/DataDictionary/components/Entities/entities.d.ts +3 -1
- package/lib/components/DataDictionary/components/Entities/entities.js +1 -1
- package/lib/components/DataDictionary/components/Entities/types.d.ts +5 -5
- package/lib/components/DataDictionary/components/Entity/entity.d.ts +3 -1
- package/lib/components/DataDictionary/components/Entity/entity.js +6 -6
- package/lib/components/DataDictionary/components/Entity/types.d.ts +5 -5
- package/lib/components/DataDictionary/components/Layout/components/EntitiesLayout/entitiesLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/OutlineLayout/outlineLayout.styles.d.ts +2 -2
- package/lib/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Outline/utils.d.ts +3 -2
- package/lib/components/DataDictionary/components/Table/components/BasicCell/basicCell.d.ts +2 -2
- package/lib/components/DataDictionary/components/Table/hook.d.ts +3 -3
- package/lib/components/DataDictionary/components/Table/hook.js +3 -1
- package/lib/components/DataDictionary/components/Table/options/core/constants.d.ts +2 -3
- package/lib/components/DataDictionary/components/Table/options/hook.d.ts +2 -2
- package/lib/components/DataDictionary/components/Table/options/sorting/constants.d.ts +2 -3
- package/lib/components/DataDictionary/components/Table/table.d.ts +2 -1
- package/lib/components/DataDictionary/components/Table/table.js +1 -1
- package/lib/components/DataDictionary/components/Table/types.d.ts +3 -4
- package/lib/components/DataDictionary/dataDictionary.d.ts +3 -1
- package/lib/components/DataDictionary/dataDictionary.styles.d.ts +1 -1
- package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.d.ts +3 -1
- package/lib/components/DataDictionary/hooks/UseDataDictionary/types.d.ts +5 -5
- package/lib/components/Error/error.styles.d.ts +1 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.d.ts +1 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.d.ts +4 -4
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterRange/filterRange.styles.d.ts +1 -1
- package/lib/components/Filter/components/Filters/filters.styles.d.ts +2 -2
- package/lib/components/Filter/components/VariableSizeList/VariableSizeList.d.ts +1 -1
- package/lib/components/Filter/components/VariableSizeList/VariableSizeList.js +1 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +1 -1
- package/lib/components/Index/index.styles.d.ts +1 -1
- package/lib/components/Layout/components/ContentLayout/contentLayout.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.d.ts +1 -1
- package/lib/components/Layout/components/Main/main.styles.d.ts +2 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.d.ts +1 -1
- package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
- package/lib/components/MarkdownRenderer/components/Anchor/anchor.d.ts +19 -0
- package/lib/components/MarkdownRenderer/components/Anchor/anchor.js +21 -0
- package/lib/components/MarkdownRenderer/components/Table/table.d.ts +3 -0
- package/lib/components/MarkdownRenderer/components/Table/table.js +5 -0
- package/lib/components/MarkdownRenderer/components/Table/table.styles.d.ts +4 -0
- package/lib/components/MarkdownRenderer/components/Table/table.styles.js +40 -0
- package/lib/components/MarkdownRenderer/constants.d.ts +2 -0
- package/lib/components/MarkdownRenderer/constants.js +6 -0
- package/lib/components/MarkdownRenderer/markdownRenderer.d.ts +14 -0
- package/lib/components/MarkdownRenderer/markdownRenderer.js +56 -0
- package/lib/components/MarkdownRenderer/markdownRenderer.styles.d.ts +4 -0
- package/lib/components/MarkdownRenderer/markdownRenderer.styles.js +13 -0
- package/lib/components/MarkdownRenderer/types.d.ts +7 -0
- package/lib/components/MarkdownRenderer/types.js +1 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +1 -1
- package/lib/components/Support/components/ViewSupport/viewSupport.styles.d.ts +1 -1
- package/lib/components/Table/components/TableCell/components/ChipCell/chipCell.d.ts +2 -1
- package/lib/components/Table/components/TableCell/components/ChipCell/chipCell.js +2 -2
- package/lib/components/Table/components/TableCell/components/LinkCell/linkCell.d.ts +1 -1
- package/lib/components/Table/components/TableCell/components/LinkCell/linkCell.js +2 -2
- package/lib/components/Table/components/TableCell/components/MarkdownCell/markdownCell.d.ts +4 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/markdownCell.js +13 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/markdownCell.styles.d.ts +3 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/markdownCell.styles.js +30 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/args.d.ts +4 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/args.js +10 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/constants.d.ts +5 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/constants.js +9 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/markdownCell.stories.d.ts +7 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/markdownCell.stories.js +25 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.d.ts +3 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.js +1 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/types.d.ts +3 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/types.js +1 -0
- package/lib/components/common/AnchorLink/anchorLink.styles.d.ts +7 -7
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +1 -1
- package/lib/components/common/Code/code.styles.d.ts +1 -1
- package/lib/components/common/Dot/dot.styles.d.ts +1 -1
- package/lib/components/common/EllipsisContent/ellipsisContent.styles.d.ts +1 -1
- package/lib/components/common/Progress/components/CircularProgress/circularProgress.d.ts +1 -1
- package/lib/components/common/Progress/components/CircularProgress/circularProgress.js +1 -1
- package/lib/components/common/Stack/stack.d.ts +1 -1
- package/lib/components/common/Stack/stack.js +1 -1
- package/lib/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.d.ts +1 -1
- package/lib/styles/common/mui/typography.js +1 -0
- package/package.json +8 -1
- package/src/common/entities.ts +8 -31
- package/src/components/DataDictionary/components/Entities/entities.tsx +7 -5
- package/src/components/DataDictionary/components/Entities/types.ts +5 -9
- package/src/components/DataDictionary/components/Entity/entity.tsx +9 -7
- package/src/components/DataDictionary/components/Entity/types.ts +5 -9
- package/src/components/DataDictionary/components/Outline/utils.ts +5 -2
- package/src/components/DataDictionary/components/Table/hook.ts +16 -8
- package/src/components/DataDictionary/components/Table/options/core/constants.ts +2 -3
- package/src/components/DataDictionary/components/Table/options/hook.ts +3 -3
- package/src/components/DataDictionary/components/Table/options/sorting/constants.ts +2 -6
- package/src/components/DataDictionary/components/Table/table.tsx +4 -1
- package/src/components/DataDictionary/components/Table/types.ts +3 -4
- package/src/components/DataDictionary/dataDictionary.tsx +4 -2
- package/src/components/DataDictionary/hooks/UseDataDictionary/hook.ts +9 -2
- package/src/components/DataDictionary/hooks/UseDataDictionary/types.ts +5 -9
- package/src/components/Filter/components/VariableSizeList/VariableSizeList.tsx +1 -1
- package/src/components/MarkdownRenderer/components/Anchor/anchor.tsx +34 -0
- package/src/components/MarkdownRenderer/components/Table/table.styles.ts +41 -0
- package/src/components/MarkdownRenderer/components/Table/table.tsx +13 -0
- package/src/components/MarkdownRenderer/constants.ts +8 -0
- package/src/components/MarkdownRenderer/markdownRenderer.styles.ts +16 -0
- package/src/components/MarkdownRenderer/markdownRenderer.tsx +74 -0
- package/src/components/MarkdownRenderer/types.ts +10 -0
- package/src/components/Table/components/TableCell/components/ChipCell/chipCell.tsx +4 -2
- package/src/components/Table/components/TableCell/components/LinkCell/linkCell.tsx +1 -1
- package/src/components/Table/components/TableCell/components/MarkdownCell/markdownCell.styles.ts +31 -0
- package/src/components/Table/components/TableCell/components/MarkdownCell/markdownCell.tsx +29 -0
- package/src/components/Table/components/TableCell/components/MarkdownCell/stories/args.ts +17 -0
- package/src/components/Table/components/TableCell/components/MarkdownCell/stories/constants.ts +11 -0
- package/src/components/Table/components/TableCell/components/MarkdownCell/stories/markdownCell.stories.tsx +37 -0
- package/src/components/Table/components/TableCell/components/MarkdownCell/stories/types.ts +4 -0
- package/src/components/Table/components/TableCell/components/MarkdownCell/types.ts +3 -0
- package/src/components/common/Progress/components/CircularProgress/circularProgress.tsx +1 -1
- package/src/components/common/Stack/stack.tsx +2 -2
- package/src/styles/common/mui/typography.ts +1 -0
- package/tests/markdownCell.test.tsx +53 -0
- package/tests/useRequestManifest.test.ts +1 -1
- package/types/data-explorer-ui.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [32.0.0](https://github.com/DataBiosphere/findable-ui/compare/v31.0.0...v32.0.0) (2025-05-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* ove rehype-raw, rehype-react, rehype-sanitize, remark-gfm, remark-rehype from dev-dependency to peer ([#481](https://github.com/DataBiosphere/findable-ui/issues/481)) (#482)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* ove rehype-raw, rehype-react, rehype-sanitize, remark-gfm, remark-rehype from dev-dependency to peer ([#481](https://github.com/DataBiosphere/findable-ui/issues/481)) ([#482](https://github.com/DataBiosphere/findable-ui/issues/482)) ([a6dfd0f](https://github.com/DataBiosphere/findable-ui/commit/a6dfd0fa5ac9fe5e8da2bf8e83ae06868f962f95))
|
|
13
|
+
|
|
14
|
+
## [31.0.0](https://github.com/DataBiosphere/findable-ui/compare/v30.0.0...v31.0.0) (2025-05-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ⚠ BREAKING CHANGES
|
|
18
|
+
|
|
19
|
+
* create data dictionary table cell for displaying markdown ([#453](https://github.com/DataBiosphere/findable-ui/issues/453)) (#480)
|
|
20
|
+
* make data dictionary config generic with attribute as default ([#476](https://github.com/DataBiosphere/findable-ui/issues/476)) (#477)
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* create data dictionary table cell for displaying markdown ([#453](https://github.com/DataBiosphere/findable-ui/issues/453)) ([#480](https://github.com/DataBiosphere/findable-ui/issues/480)) ([4ee16e7](https://github.com/DataBiosphere/findable-ui/commit/4ee16e75e66dd56d126ed01773364d6fe5a32ab7))
|
|
25
|
+
* make data dictionary config generic with attribute as default ([#476](https://github.com/DataBiosphere/findable-ui/issues/476)) ([#477](https://github.com/DataBiosphere/findable-ui/issues/477)) ([723585d](https://github.com/DataBiosphere/findable-ui/commit/723585de6e6380eccd5d39f72cbc0aa6db1fc398))
|
|
26
|
+
|
|
3
27
|
## [30.0.0](https://github.com/DataBiosphere/findable-ui/compare/v29.0.2...v30.0.0) (2025-05-13)
|
|
4
28
|
|
|
5
29
|
|
package/lib/common/entities.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import { GridTrackSize } from "../config/entities";
|
|
1
|
+
import { ColumnDef, RowData } from "@tanstack/react-table";
|
|
3
2
|
/**
|
|
4
3
|
* Model of a value of a metadata class.
|
|
5
4
|
*/
|
|
@@ -17,10 +16,6 @@ export interface Attribute {
|
|
|
17
16
|
title: string;
|
|
18
17
|
values?: string;
|
|
19
18
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Model of attribute key types; used mostly when building data dictionary column definitions.
|
|
22
|
-
*/
|
|
23
|
-
export type AttributeValueTypes<TValue = unknown> = TValue;
|
|
24
19
|
/**
|
|
25
20
|
* Filterable metadata keys.
|
|
26
21
|
*/
|
|
@@ -36,8 +31,8 @@ export interface CategoryTag {
|
|
|
36
31
|
/**
|
|
37
32
|
* Model of a metadata class, to be specified manually or built from LinkML schema.
|
|
38
33
|
*/
|
|
39
|
-
export interface Class {
|
|
40
|
-
attributes:
|
|
34
|
+
export interface Class<T extends RowData = Attribute> {
|
|
35
|
+
attributes: T[];
|
|
41
36
|
description: string;
|
|
42
37
|
name: string;
|
|
43
38
|
title: string;
|
|
@@ -54,36 +49,23 @@ export type DataDictionaryPrefix = Record<string, string>;
|
|
|
54
49
|
/**
|
|
55
50
|
* Model of a metadata dictionary containing a set of classes and their definitions.
|
|
56
51
|
*/
|
|
57
|
-
export interface DataDictionary {
|
|
52
|
+
export interface DataDictionary<T extends RowData = Attribute> {
|
|
58
53
|
annotations?: {
|
|
59
54
|
[key in keyof DataDictionaryPrefix]: string;
|
|
60
55
|
};
|
|
61
|
-
classes: Class[];
|
|
56
|
+
classes: Class<T>[];
|
|
62
57
|
description?: string;
|
|
63
58
|
name: string;
|
|
64
59
|
prefixes?: DataDictionaryPrefix;
|
|
65
60
|
title: string;
|
|
66
61
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Display model of a data dictionary column.
|
|
69
|
-
*/
|
|
70
|
-
export interface DataDictionaryColumnDef {
|
|
71
|
-
attributeAccessorFnName?: string;
|
|
72
|
-
attributeCellName?: string;
|
|
73
|
-
attributeDisplayName: string;
|
|
74
|
-
attributeSlotName: string;
|
|
75
|
-
width: Omit<GridTrackSize, "GridTrackMinMax"> | {
|
|
76
|
-
max: string;
|
|
77
|
-
min: string;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
62
|
/**
|
|
81
63
|
* Configuration of data dictionary; contains schema definition (that is, the actual data
|
|
82
64
|
* dictionary) as well as column def for displaying the data dictionary.
|
|
83
65
|
*/
|
|
84
|
-
export interface DataDictionaryConfig {
|
|
85
|
-
columnDefs: ColumnDef<
|
|
86
|
-
dataDictionary: DataDictionary
|
|
66
|
+
export interface DataDictionaryConfig<T extends RowData = Attribute> {
|
|
67
|
+
columnDefs: ColumnDef<T, T[keyof T]>[];
|
|
68
|
+
dataDictionary: DataDictionary<T>;
|
|
87
69
|
}
|
|
88
70
|
/**
|
|
89
71
|
* Label and description values from a data dictionary that are added to a site
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute } from "../../../../common/entities";
|
|
1
3
|
import { ClassesProps } from "./types";
|
|
2
|
-
export declare const Entities: ({ classes, columnDefs, spacing, }: ClassesProps) => JSX.Element;
|
|
4
|
+
export declare const Entities: <T extends RowData = Attribute>({ classes, columnDefs, spacing, }: ClassesProps<T>) => JSX.Element;
|
|
@@ -3,5 +3,5 @@ import React from "react";
|
|
|
3
3
|
import { Entity } from "../Entity/entity";
|
|
4
4
|
import { GRID_PROPS } from "./constants";
|
|
5
5
|
export const Entities = ({ classes, columnDefs, spacing, }) => {
|
|
6
|
-
return (React.createElement(Grid, { ...GRID_PROPS }, classes.map((
|
|
6
|
+
return (React.createElement(Grid, { ...GRID_PROPS }, classes.map((cls) => (React.createElement(Entity, { key: cls.name, class: cls, columnDefs: columnDefs, spacing: spacing })))));
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import { Attribute,
|
|
1
|
+
import { ColumnDef, RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute, Class } from "../../../../common/entities";
|
|
3
3
|
import { LayoutSpacing } from "../../hooks/UseLayoutSpacing/types";
|
|
4
|
-
export interface ClassesProps {
|
|
5
|
-
classes: Class[];
|
|
6
|
-
columnDefs: ColumnDef<
|
|
4
|
+
export interface ClassesProps<T extends RowData = Attribute> {
|
|
5
|
+
classes: Class<T>[];
|
|
6
|
+
columnDefs: ColumnDef<T, T[keyof T]>[];
|
|
7
7
|
spacing?: LayoutSpacing;
|
|
8
8
|
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute } from "../../../../common/entities";
|
|
1
3
|
import { EntityProps } from "./types";
|
|
2
|
-
export declare const Entity: ({ class:
|
|
4
|
+
export declare const Entity: <T extends RowData = Attribute>({ class: cls, columnDefs, spacing, }: EntityProps<T>) => JSX.Element;
|
|
@@ -6,14 +6,14 @@ import { useTable } from "../Table/hook";
|
|
|
6
6
|
import { Table } from "../Table/table";
|
|
7
7
|
import { GRID_PROPS } from "./constants";
|
|
8
8
|
import { StyledTypography } from "./entity.styles";
|
|
9
|
-
export const Entity = ({ class:
|
|
10
|
-
const table = useTable(
|
|
9
|
+
export const Entity = ({ class: cls, columnDefs, spacing, }) => {
|
|
10
|
+
const table = useTable(cls.attributes, columnDefs);
|
|
11
11
|
return (React.createElement(Grid, { ...GRID_PROPS, rowGap: 4 },
|
|
12
12
|
React.createElement(Grid, { ...GRID_PROPS, rowGap: 1 },
|
|
13
|
-
React.createElement(StyledTypography, { component: "h3", id:
|
|
14
|
-
|
|
13
|
+
React.createElement(StyledTypography, { component: "h3", id: cls.name, variant: TYPOGRAPHY_PROPS.VARIANT.TEXT_HEADING_SMALL, ...spacing },
|
|
14
|
+
cls.title,
|
|
15
15
|
" ",
|
|
16
|
-
React.createElement(AnchorLink, { anchorLink:
|
|
17
|
-
React.createElement(Typography, { color: TYPOGRAPHY_PROPS.COLOR.INK_LIGHT, component: "div", variant: TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_400_2_LINES },
|
|
16
|
+
React.createElement(AnchorLink, { anchorLink: cls.name })),
|
|
17
|
+
React.createElement(Typography, { color: TYPOGRAPHY_PROPS.COLOR.INK_LIGHT, component: "div", variant: TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_400_2_LINES }, cls.description)),
|
|
18
18
|
React.createElement(Table, { table: table })));
|
|
19
19
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import { Attribute,
|
|
1
|
+
import { ColumnDef, RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute, Class } from "../../../../common/entities";
|
|
3
3
|
import { LayoutSpacing } from "../../hooks/UseLayoutSpacing/types";
|
|
4
|
-
export interface EntityProps {
|
|
5
|
-
class: Class
|
|
6
|
-
columnDefs: ColumnDef<
|
|
4
|
+
export interface EntityProps<T extends RowData = Attribute> {
|
|
5
|
+
class: Class<T>;
|
|
6
|
+
columnDefs: ColumnDef<T, T[keyof T]>[];
|
|
7
7
|
spacing?: LayoutSpacing;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayoutSpacing } from "../../../../hooks/UseLayoutSpacing/types";
|
|
2
2
|
export declare const Layout: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?:
|
|
4
|
+
as?: React.ElementType;
|
|
5
5
|
} & LayoutSpacing, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LayoutSpacing } from "../../../../hooks/UseLayoutSpacing/types";
|
|
2
2
|
export declare const Layout: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?:
|
|
4
|
+
as?: React.ElementType;
|
|
5
5
|
} & LayoutSpacing, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
6
|
export declare const LayoutScroller: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme;
|
|
8
|
-
as?:
|
|
8
|
+
as?: React.ElementType;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayoutSpacing } from "../../../../hooks/UseLayoutSpacing/types";
|
|
2
2
|
export declare const Layout: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?:
|
|
4
|
+
as?: React.ElementType;
|
|
5
5
|
} & LayoutSpacing, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute, Class } from "../../../../common/entities";
|
|
2
3
|
import { OutlineItem } from "../../../Layout/components/Outline/types";
|
|
3
4
|
/**
|
|
4
5
|
* Returns outline items from classes.
|
|
5
6
|
* @param classes - Class entities.
|
|
6
7
|
* @returns Outline items.
|
|
7
8
|
*/
|
|
8
|
-
export declare function buildClassesOutline(classes: Class[]): OutlineItem[];
|
|
9
|
+
export declare function buildClassesOutline<T extends RowData = Attribute>(classes: Class<T>[]): OutlineItem[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CellContext, RowData } from "@tanstack/react-table";
|
|
2
|
-
import
|
|
3
|
-
export declare const BasicCell: <T extends RowData, TValue extends ReactNode =
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export declare const BasicCell: <T extends RowData, TValue extends ReactNode = ReactNode>({ getValue, }: CellContext<T, TValue>) => JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ColumnDef, Table } from "@tanstack/react-table";
|
|
2
|
-
import { Attribute
|
|
3
|
-
export declare const useTable: (data:
|
|
1
|
+
import { ColumnDef, RowData, Table } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute } from "../../../../common/entities";
|
|
3
|
+
export declare const useTable: <T extends RowData = Attribute>(data: T[], columnDefs: ColumnDef<T, T[keyof T]>[]) => Table<T>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { useReactTable } from "@tanstack/react-table";
|
|
1
|
+
import { useReactTable, } from "@tanstack/react-table";
|
|
2
2
|
import { useTableOptions } from "./options/hook";
|
|
3
3
|
export const useTable = (data, columnDefs) => {
|
|
4
|
+
// Table options.
|
|
4
5
|
const tableOptions = useTableOptions();
|
|
6
|
+
// Table instance.
|
|
5
7
|
return useReactTable({
|
|
6
8
|
...tableOptions,
|
|
7
9
|
columns: columnDefs,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { CoreOptions } from "@tanstack/react-table";
|
|
2
|
-
|
|
3
|
-
export declare const CORE_OPTIONS: Pick<CoreOptions<Attribute>, "_features" | "getCoreRowModel">;
|
|
1
|
+
import { CoreOptions, RowData } from "@tanstack/react-table";
|
|
2
|
+
export declare const CORE_OPTIONS: Pick<CoreOptions<RowData>, "_features" | "getCoreRowModel">;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableOptions } from "@tanstack/react-table";
|
|
1
|
+
import { RowData, TableOptions } from "@tanstack/react-table";
|
|
2
2
|
import { Attribute } from "../../../../../common/entities";
|
|
3
|
-
export declare const useTableOptions: () => Omit<TableOptions<
|
|
3
|
+
export declare const useTableOptions: <T extends RowData = Attribute>() => Omit<TableOptions<T>, "columns" | "data">;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { SortingOptions } from "@tanstack/react-table";
|
|
2
|
-
|
|
3
|
-
export declare const SORTING_OPTIONS: Pick<SortingOptions<Attribute>, "enableSorting">;
|
|
1
|
+
import { RowData, SortingOptions } from "@tanstack/react-table";
|
|
2
|
+
export declare const SORTING_OPTIONS: Pick<SortingOptions<RowData>, "enableSorting">;
|
|
@@ -7,7 +7,7 @@ import { GridTable } from "../../../Table/table.styles";
|
|
|
7
7
|
import { getColumnTrackSizing } from "../../../TableCreator/options/columnTrackSizing/utils";
|
|
8
8
|
import { GridPaper } from "../../../common/Paper/paper.styles";
|
|
9
9
|
import { StyledRoundedPaper } from "./table.styles";
|
|
10
|
-
export const Table = ({ table }) => {
|
|
10
|
+
export const Table = ({ table, }) => {
|
|
11
11
|
return (React.createElement(StyledRoundedPaper, { variant: "table" },
|
|
12
12
|
React.createElement(GridPaper, null,
|
|
13
13
|
React.createElement(TableContainer, null,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Table } from "@tanstack/react-table";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
table: Table<Attribute>;
|
|
1
|
+
import { RowData, Table } from "@tanstack/react-table";
|
|
2
|
+
export interface TableProps<T extends RowData> {
|
|
3
|
+
table: Table<T>;
|
|
5
4
|
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute } from "../../common/entities";
|
|
1
3
|
import { DataDictionaryProps } from "./types";
|
|
2
|
-
export declare const DataDictionary: ({ className, EntitiesLayout, Outline, OutlineLayout, Title, TitleLayout, }: DataDictionaryProps) => JSX.Element;
|
|
4
|
+
export declare const DataDictionary: <T extends RowData = Attribute>({ className, EntitiesLayout, Outline, OutlineLayout, Title, TitleLayout, }: DataDictionaryProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const grid: import("@emotion/react").SerializedStyles;
|
|
2
2
|
export declare const View: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?:
|
|
4
|
+
as?: React.ElementType;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute } from "../../../../common/entities";
|
|
1
3
|
import { UseDataDictionary } from "./types";
|
|
2
|
-
export declare const useDataDictionary: () => UseDataDictionary
|
|
4
|
+
export declare const useDataDictionary: <T extends RowData = Attribute>() => UseDataDictionary<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import { Attribute,
|
|
3
|
-
export interface UseDataDictionary {
|
|
4
|
-
classes: Class[];
|
|
5
|
-
columnDefs: ColumnDef<
|
|
1
|
+
import { ColumnDef, RowData } from "@tanstack/react-table";
|
|
2
|
+
import { Attribute, Class } from "../../../../common/entities";
|
|
3
|
+
export interface UseDataDictionary<T extends RowData = Attribute> {
|
|
4
|
+
classes: Class<T>[];
|
|
5
|
+
columnDefs: ColumnDef<T, T[keyof T]>[];
|
|
6
6
|
}
|
|
@@ -3,7 +3,7 @@ interface Props {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const ErrorLayout: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?:
|
|
6
|
+
as?: React.ElementType;
|
|
7
7
|
} & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export declare const Error: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SectionContent: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?:
|
|
3
|
+
as?: React.ElementType;
|
|
4
4
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
6
|
}, {}, {}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const Section: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?:
|
|
3
|
+
as?: React.ElementType;
|
|
4
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
5
|
export declare const SectionContent: import("@emotion/styled").StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?:
|
|
7
|
+
as?: React.ElementType;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
9
|
export declare const SectionStatus: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?:
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
13
|
export declare const SectionActions: import("@emotion/styled").StyledComponent<{
|
|
14
14
|
theme?: import("@emotion/react").Theme;
|
|
15
|
-
as?:
|
|
15
|
+
as?: React.ElementType;
|
|
16
16
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SectionTitle: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?:
|
|
3
|
+
as?: React.ElementType;
|
|
4
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
5
5
|
export declare const TableContainer: import("@emotion/styled").StyledComponent<import("@mui/material").TableContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const StyledForm: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?:
|
|
3
|
+
as?: React.ElementType;
|
|
4
4
|
}, import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
|
|
@@ -4,10 +4,10 @@ interface Props {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const Filters: import("@emotion/styled").StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?:
|
|
7
|
+
as?: React.ElementType;
|
|
8
8
|
} & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
9
|
export declare const CategoryViewsLabel: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?:
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
13
|
export {};
|
|
@@ -14,4 +14,4 @@ export interface VariableSizeListProps {
|
|
|
14
14
|
overscanCount?: ListProps["overscanCount"];
|
|
15
15
|
width?: ListProps["width"];
|
|
16
16
|
}
|
|
17
|
-
export declare const VariableSizeList: ({ categoryKey, categorySection, height: initHeight, isFilterDrawer, itemSize, onFilter, overscanCount,
|
|
17
|
+
export declare const VariableSizeList: ({ categoryKey, categorySection, height: initHeight, isFilterDrawer, itemSize, matchedItems, onFilter, overscanCount, width, }: VariableSizeListProps) => JSX.Element;
|
|
@@ -14,7 +14,7 @@ function renderListItem(props) {
|
|
|
14
14
|
const { categoryKey, categorySection, matchedItems, onFilter, onUpdateItemSizeByItemKey, } = data;
|
|
15
15
|
return (React.createElement(VariableSizeListItem, { categorySection: categorySection, categoryKey: categoryKey, matchedItem: matchedItems[index], onFilter: onFilter, onUpdateItemSizeByItemKey: onUpdateItemSizeByItemKey, style: style }));
|
|
16
16
|
}
|
|
17
|
-
export const VariableSizeList = ({ categoryKey, categorySection, height: initHeight = MAX_LIST_HEIGHT_PX, isFilterDrawer, itemSize = LIST_ITEM_HEIGHT, onFilter, overscanCount = MAX_DISPLAYABLE_LIST_ITEMS * 2,
|
|
17
|
+
export const VariableSizeList = ({ categoryKey, categorySection, height: initHeight = MAX_LIST_HEIGHT_PX, isFilterDrawer, itemSize = LIST_ITEM_HEIGHT, matchedItems, onFilter, overscanCount = MAX_DISPLAYABLE_LIST_ITEMS * 2, width = "100%", }) => {
|
|
18
18
|
const { height: windowHeight } = useWindowResize();
|
|
19
19
|
const [height, setHeight] = useState(initHeight);
|
|
20
20
|
const itemSizeByItemKeyRef = useRef(new Map());
|
package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const StyledGrid: import("@emotion/styled").StyledComponent<impor
|
|
|
2
2
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
3
3
|
} & import("@mui/system").SystemProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, ("fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "
|
|
5
|
+
}, ("p" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "color" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontStyle" | "textAlign") | "sx" | keyof import("@mui/material").GridBaseProps> & {
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
export declare const StyledGridPaperSection: import("@emotion/styled").StyledComponent<{
|
|
@@ -3,6 +3,6 @@ interface Props {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const Index: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?:
|
|
6
|
+
as?: React.ElementType;
|
|
7
7
|
} & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export {};
|
|
@@ -21,7 +21,7 @@ export declare const ContentGrid: import("@emotion/styled").StyledComponent<{
|
|
|
21
21
|
} & GridProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
22
|
export declare const OutlineGrid: import("@emotion/styled").StyledComponent<{
|
|
23
23
|
theme?: import("@emotion/react").Theme;
|
|
24
|
-
as?:
|
|
24
|
+
as?: React.ElementType;
|
|
25
25
|
} & GridProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
26
26
|
export declare const Positioner: import("@emotion/styled").StyledComponent<{
|
|
27
27
|
theme?: import("@emotion/react").Theme;
|
|
@@ -13,7 +13,7 @@ export declare const UserSummary: import("@emotion/styled").StyledComponent<impo
|
|
|
13
13
|
}, {}, {}>;
|
|
14
14
|
export declare const UserNames: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
15
15
|
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;
|
|
16
|
-
}, "
|
|
16
|
+
}, "p" | "style" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "className" | "classes" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontStyle" | "textAlign" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & {
|
|
17
17
|
theme?: import("@emotion/react").Theme;
|
|
18
18
|
}, {}, {}>;
|
|
19
19
|
export declare const StyledAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarOwnProps & import("@mui/material").AvatarSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -3,6 +3,6 @@ interface Props {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const Navigation: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?:
|
|
6
|
+
as?: React.ElementType;
|
|
7
7
|
} & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export {};
|
|
@@ -3,11 +3,11 @@ interface Props {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const Main: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?:
|
|
6
|
+
as?: React.ElementType;
|
|
7
7
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
8
8
|
export declare const MainWithOffset: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?:
|
|
10
|
+
as?: React.ElementType;
|
|
11
11
|
} & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
|
|
12
12
|
theme?: import("@emotion/react").Theme;
|
|
13
13
|
} & Props, {}, {}>;
|
|
@@ -3,6 +3,6 @@ interface Props {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const SidebarPositioner: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?:
|
|
6
|
+
as?: React.ElementType;
|
|
7
7
|
} & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export {};
|
|
@@ -2,6 +2,6 @@ export declare const StyledGrid: import("@emotion/styled").StyledComponent<impor
|
|
|
2
2
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
3
3
|
} & import("@mui/system").SystemProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, ("fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "
|
|
5
|
+
}, ("p" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "color" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontStyle" | "textAlign") | "sx" | keyof import("@mui/material").GridBaseProps> & {
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
7
7
|
}, {}, {}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ClassAttributes } from "react";
|
|
2
|
+
import { BaseComponentProps } from "../../../types";
|
|
3
|
+
/**
|
|
4
|
+
* rehype-sanitize's default schema allows only a limited set of attributes on <a> elements:
|
|
5
|
+
* - aria-*
|
|
6
|
+
* - className
|
|
7
|
+
* - data-footnote-backref
|
|
8
|
+
* - data-footnote-ref
|
|
9
|
+
* - href
|
|
10
|
+
*
|
|
11
|
+
* By default, attributes such as:
|
|
12
|
+
* - download
|
|
13
|
+
* - rel
|
|
14
|
+
* - target
|
|
15
|
+
* are not permitted and will be stripped from anchor tags during sanitization.
|
|
16
|
+
*
|
|
17
|
+
* Note: This component currently does not support these excluded attributes.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Anchor: (props: BaseComponentProps & ClassAttributes<HTMLAnchorElement> & AnchorHTMLAttributes<HTMLAnchorElement>) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Link } from "../../../Links/components/Link/link";
|
|
3
|
+
/**
|
|
4
|
+
* rehype-sanitize's default schema allows only a limited set of attributes on <a> elements:
|
|
5
|
+
* - aria-*
|
|
6
|
+
* - className
|
|
7
|
+
* - data-footnote-backref
|
|
8
|
+
* - data-footnote-ref
|
|
9
|
+
* - href
|
|
10
|
+
*
|
|
11
|
+
* By default, attributes such as:
|
|
12
|
+
* - download
|
|
13
|
+
* - rel
|
|
14
|
+
* - target
|
|
15
|
+
* are not permitted and will be stripped from anchor tags during sanitization.
|
|
16
|
+
*
|
|
17
|
+
* Note: This component currently does not support these excluded attributes.
|
|
18
|
+
*/
|
|
19
|
+
export const Anchor = (props) => {
|
|
20
|
+
return (React.createElement(Link, { className: props.className, label: props.children, url: props.href || "" }));
|
|
21
|
+
};
|