@redsift/ds-mcp-server 12.3.1-muiv6-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +203 -0
- package/consumer-instructions/.cursorrules +80 -0
- package/consumer-instructions/.windsurfrules +80 -0
- package/consumer-instructions/CLAUDE.md +87 -0
- package/consumer-instructions/redsift-design-system.instructions.md +87 -0
- package/data/demos/patterns/crossfiltered-datagrid-page/example.tsx +750 -0
- package/data/demos/patterns/crossfiltered-datagrid-page/with-empty-state.tsx +111 -0
- package/data/demos/patterns/crossfiltered-datagrid-page/with-error.tsx +122 -0
- package/data/demos/patterns/crossfiltered-datagrid-page/with-loading.tsx +88 -0
- package/data/demos/patterns/datagrid-page/example.tsx +521 -0
- package/data/demos/patterns/datagrid-page/with-empty-state.tsx +80 -0
- package/data/demos/patterns/datagrid-page/with-error.tsx +96 -0
- package/data/demos/patterns/datagrid-page/with-loading.tsx +57 -0
- package/data/demos/patterns/drilldown-datagrid-page/example.tsx +715 -0
- package/data/demos/patterns/drilldown-datagrid-page/with-empty-state.tsx +113 -0
- package/data/demos/patterns/drilldown-datagrid-page/with-error.tsx +125 -0
- package/data/demos/patterns/drilldown-datagrid-page/with-loading.tsx +90 -0
- package/data/demos/patterns/server-datagrid-page/example.tsx +757 -0
- package/data/demos/patterns/server-datagrid-page/with-empty-state.tsx +107 -0
- package/data/demos/patterns/server-datagrid-page/with-error.tsx +107 -0
- package/data/demos/patterns/server-datagrid-page/with-loading.tsx +63 -0
- package/data/docs/components/charts/Arc.json +179 -0
- package/data/docs/components/charts/Arcs.json +104 -0
- package/data/docs/components/charts/Axis.json +269 -0
- package/data/docs/components/charts/Bar.json +236 -0
- package/data/docs/components/charts/BarChart.json +852 -0
- package/data/docs/components/charts/BarChartBars.json +18 -0
- package/data/docs/components/charts/BarChartGroupedTooltip.json +9 -0
- package/data/docs/components/charts/BarChartOverlay.json +34 -0
- package/data/docs/components/charts/BarChartSection.json +94 -0
- package/data/docs/components/charts/BaseBarChart.json +852 -0
- package/data/docs/components/charts/ChartContainerTitle.json +574 -0
- package/data/docs/components/charts/DataPoint.json +160 -0
- package/data/docs/components/charts/Dot.json +191 -0
- package/data/docs/components/charts/EmptyBarChart.json +852 -0
- package/data/docs/components/charts/EmptyLineChart.json +753 -0
- package/data/docs/components/charts/EmptyPieChart.json +826 -0
- package/data/docs/components/charts/EmptyScatterPlot.json +802 -0
- package/data/docs/components/charts/Legend.json +510 -0
- package/data/docs/components/charts/LegendItem.json +128 -0
- package/data/docs/components/charts/Line.json +69 -0
- package/data/docs/components/charts/LineChart.json +753 -0
- package/data/docs/components/charts/LoadingBarChart.json +852 -0
- package/data/docs/components/charts/LoadingLineChart.json +753 -0
- package/data/docs/components/charts/LoadingPieChart.json +826 -0
- package/data/docs/components/charts/LoadingScatterPlot.json +802 -0
- package/data/docs/components/charts/PieChart.json +826 -0
- package/data/docs/components/charts/RenderedLineChart.json +753 -0
- package/data/docs/components/charts/RenderedLinearBarChart.json +823 -0
- package/data/docs/components/charts/RenderedOrdinalBarChart.json +852 -0
- package/data/docs/components/charts/RenderedPieChart.json +826 -0
- package/data/docs/components/charts/RenderedScatterPlot.json +802 -0
- package/data/docs/components/charts/ScatterPlot.json +802 -0
- package/data/docs/components/charts/getAxisType.json +9 -0
- package/data/docs/components/charts/getComponentPosition.json +9 -0
- package/data/docs/components/dashboard/ChartEmptyState.json +42 -0
- package/data/docs/components/dashboard/Dashboard.json +26 -0
- package/data/docs/components/dashboard/DataCard.json +300 -0
- package/data/docs/components/dashboard/DataCardBody.json +431 -0
- package/data/docs/components/dashboard/DataCardHeader.json +304 -0
- package/data/docs/components/dashboard/DataCardListbox.json +529 -0
- package/data/docs/components/dashboard/DataRow.json +539 -0
- package/data/docs/components/dashboard/DrilldownItem.json +342 -0
- package/data/docs/components/dashboard/FilterableBarChart.json +83 -0
- package/data/docs/components/dashboard/FilterableDataGrid.json +83 -0
- package/data/docs/components/dashboard/FilterablePieChart.json +83 -0
- package/data/docs/components/dashboard/FilterableScatterPlot.json +83 -0
- package/data/docs/components/dashboard/PdfDocument.json +58 -0
- package/data/docs/components/dashboard/PdfExportButton.json +458 -0
- package/data/docs/components/dashboard/TimeSeriesBarChart.json +172 -0
- package/data/docs/components/dashboard/WithFilters.json +83 -0
- package/data/docs/components/design-system/ActiveDescendantListbox.json +521 -0
- package/data/docs/components/design-system/Alert.json +349 -0
- package/data/docs/components/design-system/AppBar.json +64 -0
- package/data/docs/components/design-system/AppContainer.json +67 -0
- package/data/docs/components/design-system/AppContent.json +566 -0
- package/data/docs/components/design-system/AppSidePanel.json +87 -0
- package/data/docs/components/design-system/Badge.json +293 -0
- package/data/docs/components/design-system/BaseBreadcrumbs.json +298 -0
- package/data/docs/components/design-system/BaseGrid.json +543 -0
- package/data/docs/components/design-system/BaseSkeleton.json +338 -0
- package/data/docs/components/design-system/BreadcrumbItem.json +231 -0
- package/data/docs/components/design-system/Breadcrumbs.json +298 -0
- package/data/docs/components/design-system/Button.json +402 -0
- package/data/docs/components/design-system/ButtonGroup.json +415 -0
- package/data/docs/components/design-system/ButtonLink.json +568 -0
- package/data/docs/components/design-system/Card.json +328 -0
- package/data/docs/components/design-system/CardActions.json +431 -0
- package/data/docs/components/design-system/CardBody.json +431 -0
- package/data/docs/components/design-system/CardHeader.json +428 -0
- package/data/docs/components/design-system/Checkbox.json +426 -0
- package/data/docs/components/design-system/CheckboxGroup.json +382 -0
- package/data/docs/components/design-system/ConditionalWrapper.json +40 -0
- package/data/docs/components/design-system/DetailedCard.json +401 -0
- package/data/docs/components/design-system/DetailedCardCollapsibleSectionItems.json +29 -0
- package/data/docs/components/design-system/DetailedCardHeader.json +37 -0
- package/data/docs/components/design-system/DetailedCardSection.json +90 -0
- package/data/docs/components/design-system/DetailedCardSectionItem.json +109 -0
- package/data/docs/components/design-system/Flexbox.json +523 -0
- package/data/docs/components/design-system/FocusWithinGroup.json +9 -0
- package/data/docs/components/design-system/Grid.json +543 -0
- package/data/docs/components/design-system/GridItem.json +388 -0
- package/data/docs/components/design-system/Heading.json +390 -0
- package/data/docs/components/design-system/Icon.json +325 -0
- package/data/docs/components/design-system/IconButton.json +371 -0
- package/data/docs/components/design-system/IconButtonLink.json +588 -0
- package/data/docs/components/design-system/Item.json +554 -0
- package/data/docs/components/design-system/Link.json +552 -0
- package/data/docs/components/design-system/LinkButton.json +397 -0
- package/data/docs/components/design-system/Listbox.json +529 -0
- package/data/docs/components/design-system/Number.json +773 -0
- package/data/docs/components/design-system/NumberField.json +594 -0
- package/data/docs/components/design-system/Pill.json +378 -0
- package/data/docs/components/design-system/ProgressBar.json +121 -0
- package/data/docs/components/design-system/RadarSvgLinearGradient.json +9 -0
- package/data/docs/components/design-system/Radio.json +415 -0
- package/data/docs/components/design-system/RadioGroup.json +382 -0
- package/data/docs/components/design-system/RenderedListboxItem.json +18 -0
- package/data/docs/components/design-system/RovingTabindexListbox.json +521 -0
- package/data/docs/components/design-system/Shield.json +360 -0
- package/data/docs/components/design-system/SideNavigationMenu.json +144 -0
- package/data/docs/components/design-system/SideNavigationMenuBar.json +89 -0
- package/data/docs/components/design-system/SideNavigationMenuItem.json +319 -0
- package/data/docs/components/design-system/Skeleton.json +338 -0
- package/data/docs/components/design-system/SkeletonCircle.json +338 -0
- package/data/docs/components/design-system/SkeletonText.json +371 -0
- package/data/docs/components/design-system/Spinner.json +291 -0
- package/data/docs/components/design-system/Switch.json +415 -0
- package/data/docs/components/design-system/SwitchGroup.json +382 -0
- package/data/docs/components/design-system/Text.json +418 -0
- package/data/docs/components/design-system/TextArea.json +501 -0
- package/data/docs/components/design-system/TextField.json +539 -0
- package/data/docs/components/design-system/sizeToDimension.json +9 -0
- package/data/docs/components/pickers/BaseCombobox.json +320 -0
- package/data/docs/components/pickers/BaseComboboxContent.json +453 -0
- package/data/docs/components/pickers/BaseMenuButton.json +240 -0
- package/data/docs/components/pickers/BaseMenuButtonContent.json +442 -0
- package/data/docs/components/pickers/BaseSelect.json +258 -0
- package/data/docs/components/pickers/Combobox.json +320 -0
- package/data/docs/components/pickers/ComboboxContent.json +453 -0
- package/data/docs/components/pickers/ComboboxContentFooter.json +431 -0
- package/data/docs/components/pickers/ComboboxContentHeader.json +431 -0
- package/data/docs/components/pickers/ComboboxContentListbox.json +541 -0
- package/data/docs/components/pickers/ComboboxTrigger.json +336 -0
- package/data/docs/components/pickers/Item.json +554 -0
- package/data/docs/components/pickers/MenuButton.json +240 -0
- package/data/docs/components/pickers/MenuButtonContent.json +442 -0
- package/data/docs/components/pickers/MenuButtonContentFooter.json +431 -0
- package/data/docs/components/pickers/MenuButtonContentHeader.json +431 -0
- package/data/docs/components/pickers/MenuButtonContentMenu.json +523 -0
- package/data/docs/components/pickers/MenuButtonTrigger.json +287 -0
- package/data/docs/components/pickers/Select.json +258 -0
- package/data/docs/components/pickers/SelectContent.json +442 -0
- package/data/docs/components/pickers/SelectTrigger.json +298 -0
- package/data/docs/components/popovers/BaseDialog.json +114 -0
- package/data/docs/components/popovers/BaseDialogContent.json +21 -0
- package/data/docs/components/popovers/BasePopover.json +171 -0
- package/data/docs/components/popovers/BaseToggletip.json +184 -0
- package/data/docs/components/popovers/BaseTooltip.json +121 -0
- package/data/docs/components/popovers/Button.json +402 -0
- package/data/docs/components/popovers/ButtonLink.json +568 -0
- package/data/docs/components/popovers/Dialog.json +114 -0
- package/data/docs/components/popovers/DialogContent.json +21 -0
- package/data/docs/components/popovers/DialogContentActions.json +442 -0
- package/data/docs/components/popovers/DialogContentBody.json +442 -0
- package/data/docs/components/popovers/DialogContentHeader.json +76 -0
- package/data/docs/components/popovers/DialogTrigger.json +276 -0
- package/data/docs/components/popovers/IconButton.json +371 -0
- package/data/docs/components/popovers/IconButtonLink.json +588 -0
- package/data/docs/components/popovers/Link.json +552 -0
- package/data/docs/components/popovers/LinkButton.json +397 -0
- package/data/docs/components/popovers/Popover.json +171 -0
- package/data/docs/components/popovers/PopoverContent.json +442 -0
- package/data/docs/components/popovers/PopoverTrigger.json +276 -0
- package/data/docs/components/popovers/Toast.json +145 -0
- package/data/docs/components/popovers/ToastContainer.json +122 -0
- package/data/docs/components/popovers/Toggletip.json +184 -0
- package/data/docs/components/popovers/ToggletipContent.json +402 -0
- package/data/docs/components/popovers/ToggletipTrigger.json +276 -0
- package/data/docs/components/popovers/Tooltip.json +121 -0
- package/data/docs/components/popovers/TooltipContent.json +402 -0
- package/data/docs/components/popovers/TooltipTrigger.json +276 -0
- package/data/docs/components/products/Dialog.json +106 -0
- package/data/docs/components/products/MenuButton.json +232 -0
- package/data/docs/components/products/PulsedRadarImage.json +9 -0
- package/data/docs/components/products/RadarButton.json +402 -0
- package/data/docs/components/products/RadarItem.json +554 -0
- package/data/docs/components/table/ControlledPagination.json +9 -0
- package/data/docs/components/table/DataGrid.json +93 -0
- package/data/docs/components/table/GridToolbarFilterSemanticField.json +69 -0
- package/data/docs/components/table/ServerSideControlledPagination.json +9 -0
- package/data/docs/components/table/StatefulDataGrid.json +117 -0
- package/data/docs/components/table/TextCell.json +118 -0
- package/data/docs/components/table/Toolbar.json +145 -0
- package/data/docs/components/table/ToolbarWrapper.json +9 -0
- package/data/docs/components-index.json +1206 -0
- package/data/docs/components.json +55694 -0
- package/data/docs/llms-full.txt +8012 -0
- package/data/docs/llms.txt +234 -0
- package/data/docs/patterns-catalog.md +359 -0
- package/data/docs/patterns.json +712 -0
- package/data/metadata.json +4 -0
- package/data/patterns/crossfiltered-datagrid-page.mdx +386 -0
- package/data/patterns/datagrid-page.mdx +214 -0
- package/data/patterns/drilldown-datagrid-page.mdx +291 -0
- package/data/patterns/server-datagrid-page.mdx +301 -0
- package/data/tokens/properties/components/dark-components.json +1108 -0
- package/data/tokens/properties/components/light-components.json +1108 -0
- package/data/tokens/properties/core/border-radius.json +3 -0
- package/data/tokens/properties/core/color.json +280 -0
- package/data/tokens/properties/core/layout.json +14 -0
- package/data/tokens/properties/core/typography.json +199 -0
- package/data/tokens/redsift-design-tokens.css +1391 -0
- package/dist/data-store.d.ts +47 -0
- package/dist/data-store.d.ts.map +1 -0
- package/dist/data-store.js +152 -0
- package/dist/data-store.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -0
- package/dist/init.d.ts +14 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +137 -0
- package/dist/init.js.map +1 -0
- package/dist/paths.d.ts +30 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +53 -0
- package/dist/paths.js.map +1 -0
- package/dist/pattern-store.d.ts +41 -0
- package/dist/pattern-store.d.ts.map +1 -0
- package/dist/pattern-store.js +177 -0
- package/dist/pattern-store.js.map +1 -0
- package/dist/prompts.d.ts +14 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +762 -0
- package/dist/prompts.js.map +1 -0
- package/dist/resources.d.ts +14 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +482 -0
- package/dist/resources.js.map +1 -0
- package/dist/scaffold.d.ts +31 -0
- package/dist/scaffold.d.ts.map +1 -0
- package/dist/scaffold.js +239 -0
- package/dist/scaffold.js.map +1 -0
- package/dist/token-store.d.ts +70 -0
- package/dist/token-store.d.ts.map +1 -0
- package/dist/token-store.js +196 -0
- package/dist/token-store.js.map +1 -0
- package/dist/tools.d.ts +15 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +491 -0
- package/dist/tools.js.map +1 -0
- package/dist/types.d.ts +108 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +17 -0
- package/dist/types.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Legend",
|
|
3
|
+
"description": "",
|
|
4
|
+
"package": "@redsift/charts",
|
|
5
|
+
"filePath": "packages/charts/src/components/Legend/Legend.tsx",
|
|
6
|
+
"props": [
|
|
7
|
+
{
|
|
8
|
+
"name": "children",
|
|
9
|
+
"description": "Children",
|
|
10
|
+
"type": [
|
|
11
|
+
"ReactElement<any, string | JSXElementConstructor<any>>",
|
|
12
|
+
"ReactElement<any, string | JSXElementConstructor<any>>[]",
|
|
13
|
+
"(data: (Statistic & { color: string; })[], total?: number | undefined) => ReactElement<any, string | JSXElementConstructor<any>>"
|
|
14
|
+
],
|
|
15
|
+
"required": false,
|
|
16
|
+
"defaultValue": null,
|
|
17
|
+
"category": "props"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "data",
|
|
21
|
+
"description": "Data.",
|
|
22
|
+
"type": "(Statistic & { color: string; })[]",
|
|
23
|
+
"required": false,
|
|
24
|
+
"defaultValue": null,
|
|
25
|
+
"category": "props"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "isLegendItemSelected",
|
|
29
|
+
"description": "Method to determine whether a legend is selected or not.",
|
|
30
|
+
"type": "(datum: LegendItemDatum) => void",
|
|
31
|
+
"required": false,
|
|
32
|
+
"defaultValue": null,
|
|
33
|
+
"category": "props"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "labelDecorator",
|
|
37
|
+
"description": "Method to override the data labels.",
|
|
38
|
+
"type": "(datum: LegendItemDatum, props?: { index?: number | undefined; isSelected?: boolean | undefined; color?: string | undefined; } | undefined) => string | ReactElement<any, string | JSXElementConstructor<any>>",
|
|
39
|
+
"required": false,
|
|
40
|
+
"defaultValue": null,
|
|
41
|
+
"category": "props"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "legendDecorator",
|
|
45
|
+
"description": "Method modifying what's displayed within the legend when the variant is \"custom\".",
|
|
46
|
+
"type": "(datum: LegendItemDatum, props?: { index?: number | undefined; isSelected?: boolean | undefined; color?: string | undefined; } | undefined) => string | ReactElement<any, string | JSXElementConstructor<any>>",
|
|
47
|
+
"required": false,
|
|
48
|
+
"defaultValue": null,
|
|
49
|
+
"category": "props"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "onLegendItemClick",
|
|
53
|
+
"description": "Method to be called on a click on a legend item.",
|
|
54
|
+
"type": "(datum: LegendItemDatum, data: LegendItemDatum[]) => void",
|
|
55
|
+
"required": false,
|
|
56
|
+
"defaultValue": null,
|
|
57
|
+
"category": "props"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "legendItemRole",
|
|
61
|
+
"description": "LegendItem role. Used to indicate that legend items are to be considered buttons or links. If an onClick is provided, the legend items will have the role `button` unless specifically set to `link` with this prop.",
|
|
62
|
+
"type": [
|
|
63
|
+
"\"button\"",
|
|
64
|
+
"\"img\"",
|
|
65
|
+
"\"link\"",
|
|
66
|
+
"\"option\""
|
|
67
|
+
],
|
|
68
|
+
"required": false,
|
|
69
|
+
"defaultValue": null,
|
|
70
|
+
"category": "props"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "variant",
|
|
74
|
+
"description": "Variant.",
|
|
75
|
+
"type": [
|
|
76
|
+
"\"label\"",
|
|
77
|
+
"\"value\"",
|
|
78
|
+
"\"none\"",
|
|
79
|
+
"\"percent\"",
|
|
80
|
+
"\"custom\""
|
|
81
|
+
],
|
|
82
|
+
"required": false,
|
|
83
|
+
"defaultValue": null,
|
|
84
|
+
"category": "props"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "display",
|
|
88
|
+
"description": "Sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/display\">MDN</a>.",
|
|
89
|
+
"type": [
|
|
90
|
+
"\"inline\"",
|
|
91
|
+
"\"inherit\"",
|
|
92
|
+
"\"grid\"",
|
|
93
|
+
"\"block\"",
|
|
94
|
+
"\"inline-block\"",
|
|
95
|
+
"\"flex\"",
|
|
96
|
+
"\"inline-flex\"",
|
|
97
|
+
"\"inline-grid\""
|
|
98
|
+
],
|
|
99
|
+
"required": false,
|
|
100
|
+
"defaultValue": null,
|
|
101
|
+
"category": "props"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "alignContent",
|
|
105
|
+
"description": "The distribution of space around child items along the cross axis. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/align-content\">MDN</a>.",
|
|
106
|
+
"type": [
|
|
107
|
+
"\"center\"",
|
|
108
|
+
"\"end\"",
|
|
109
|
+
"\"flex-start\"",
|
|
110
|
+
"\"flex-end\"",
|
|
111
|
+
"\"space-between\"",
|
|
112
|
+
"\"space-around\"",
|
|
113
|
+
"\"space-evenly\"",
|
|
114
|
+
"\"stretch\"",
|
|
115
|
+
"\"start\"",
|
|
116
|
+
"\"baseline\"",
|
|
117
|
+
"\"first baseline\"",
|
|
118
|
+
"\"last baseline\""
|
|
119
|
+
],
|
|
120
|
+
"required": false,
|
|
121
|
+
"defaultValue": null,
|
|
122
|
+
"category": "layout"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "alignItems",
|
|
126
|
+
"description": "The alignment of children within their container. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/align-items\">MDN</a>.",
|
|
127
|
+
"type": [
|
|
128
|
+
"\"center\"",
|
|
129
|
+
"\"end\"",
|
|
130
|
+
"\"flex-start\"",
|
|
131
|
+
"\"flex-end\"",
|
|
132
|
+
"\"stretch\"",
|
|
133
|
+
"\"start\"",
|
|
134
|
+
"\"baseline\"",
|
|
135
|
+
"\"first baseline\"",
|
|
136
|
+
"\"last baseline\"",
|
|
137
|
+
"\"self-start\"",
|
|
138
|
+
"\"self-end\""
|
|
139
|
+
],
|
|
140
|
+
"required": false,
|
|
141
|
+
"defaultValue": null,
|
|
142
|
+
"category": "layout"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "flexDirection",
|
|
146
|
+
"description": "The direction in which to layout children. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction\">MDN</a>.",
|
|
147
|
+
"type": [
|
|
148
|
+
"\"row\"",
|
|
149
|
+
"\"row-reverse\"",
|
|
150
|
+
"\"column\"",
|
|
151
|
+
"\"column-reverse\""
|
|
152
|
+
],
|
|
153
|
+
"required": false,
|
|
154
|
+
"defaultValue": null,
|
|
155
|
+
"category": "layout"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "flexWrap",
|
|
159
|
+
"description": "Whether to wrap items onto multiple lines. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap\">MDN</a>.",
|
|
160
|
+
"type": [
|
|
161
|
+
"\"nowrap\"",
|
|
162
|
+
"\"wrap\"",
|
|
163
|
+
"\"wrap-reverse\""
|
|
164
|
+
],
|
|
165
|
+
"required": false,
|
|
166
|
+
"defaultValue": null,
|
|
167
|
+
"category": "layout"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "gap",
|
|
171
|
+
"description": "The space to display between both rows and columns. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/gap\">MDN</a>.",
|
|
172
|
+
"type": "string",
|
|
173
|
+
"required": false,
|
|
174
|
+
"defaultValue": null,
|
|
175
|
+
"category": "layout"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "justifyContent",
|
|
179
|
+
"description": "The distribution of space around items along the main axis. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content\">MDN</a>.",
|
|
180
|
+
"type": [
|
|
181
|
+
"\"center\"",
|
|
182
|
+
"\"end\"",
|
|
183
|
+
"\"flex-start\"",
|
|
184
|
+
"\"flex-end\"",
|
|
185
|
+
"\"space-between\"",
|
|
186
|
+
"\"space-around\"",
|
|
187
|
+
"\"space-evenly\"",
|
|
188
|
+
"\"stretch\"",
|
|
189
|
+
"\"start\"",
|
|
190
|
+
"\"baseline\"",
|
|
191
|
+
"\"first baseline\"",
|
|
192
|
+
"\"last baseline\"",
|
|
193
|
+
"\"left\"",
|
|
194
|
+
"\"right\""
|
|
195
|
+
],
|
|
196
|
+
"required": false,
|
|
197
|
+
"defaultValue": null,
|
|
198
|
+
"category": "layout"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "gridAutoColumns",
|
|
202
|
+
"description": "Defines the size of implicitly generated columns. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns\">MDN</a>.",
|
|
203
|
+
"type": "string",
|
|
204
|
+
"required": false,
|
|
205
|
+
"defaultValue": null,
|
|
206
|
+
"category": "layout"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "gridAutoRows",
|
|
210
|
+
"description": "Defines the size of implicitly generated rows. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows\">MDN</a>.",
|
|
211
|
+
"type": "string",
|
|
212
|
+
"required": false,
|
|
213
|
+
"defaultValue": null,
|
|
214
|
+
"category": "layout"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "gridTemplateAreas",
|
|
218
|
+
"description": "Defines named grid areas. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas\">MDN</a>.",
|
|
219
|
+
"type": "string",
|
|
220
|
+
"required": false,
|
|
221
|
+
"defaultValue": null,
|
|
222
|
+
"category": "layout"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "gridTemplateColumns",
|
|
226
|
+
"description": "Defines the sizes of each column in the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns\">MDN</a>.",
|
|
227
|
+
"type": "string",
|
|
228
|
+
"required": false,
|
|
229
|
+
"defaultValue": null,
|
|
230
|
+
"category": "layout"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "gridTemplateRows",
|
|
234
|
+
"description": "Defines the sizes of each row in the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows\">MDN</a>.",
|
|
235
|
+
"type": "string",
|
|
236
|
+
"required": false,
|
|
237
|
+
"defaultValue": null,
|
|
238
|
+
"category": "layout"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "justifyItems",
|
|
242
|
+
"description": "Defines the default justifySelf for all items in the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items\">MDN</a>.",
|
|
243
|
+
"type": [
|
|
244
|
+
"\"center\"",
|
|
245
|
+
"\"end\"",
|
|
246
|
+
"\"stretch\"",
|
|
247
|
+
"\"start\""
|
|
248
|
+
],
|
|
249
|
+
"required": false,
|
|
250
|
+
"defaultValue": null,
|
|
251
|
+
"category": "layout"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "margin",
|
|
255
|
+
"description": "The margin for all four sides of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin\">MDN</a>.",
|
|
256
|
+
"type": "string",
|
|
257
|
+
"required": false,
|
|
258
|
+
"defaultValue": null,
|
|
259
|
+
"category": "spacing"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "marginBottom",
|
|
263
|
+
"description": "The margin for the bottom side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\">MDN</a>.",
|
|
264
|
+
"type": "string",
|
|
265
|
+
"required": false,
|
|
266
|
+
"defaultValue": null,
|
|
267
|
+
"category": "spacing"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "marginLeft",
|
|
271
|
+
"description": "The margin for the left side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\">MDN</a>.",
|
|
272
|
+
"type": "string",
|
|
273
|
+
"required": false,
|
|
274
|
+
"defaultValue": null,
|
|
275
|
+
"category": "spacing"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "marginRight",
|
|
279
|
+
"description": "The margin for the right side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\">MDN</a>.",
|
|
280
|
+
"type": "string",
|
|
281
|
+
"required": false,
|
|
282
|
+
"defaultValue": null,
|
|
283
|
+
"category": "spacing"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "marginTop",
|
|
287
|
+
"description": "The margin for the top side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\">MDN</a>.",
|
|
288
|
+
"type": "string",
|
|
289
|
+
"required": false,
|
|
290
|
+
"defaultValue": null,
|
|
291
|
+
"category": "spacing"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "height",
|
|
295
|
+
"description": "The height of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/height\">MDN</a>.",
|
|
296
|
+
"type": [
|
|
297
|
+
"string",
|
|
298
|
+
"number"
|
|
299
|
+
],
|
|
300
|
+
"required": false,
|
|
301
|
+
"defaultValue": null,
|
|
302
|
+
"category": "sizing"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "maxHeight",
|
|
306
|
+
"description": "The maximum height of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/max-height\">MDN</a>.",
|
|
307
|
+
"type": "string",
|
|
308
|
+
"required": false,
|
|
309
|
+
"defaultValue": null,
|
|
310
|
+
"category": "sizing"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "maxWidth",
|
|
314
|
+
"description": "The maximum width of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\">MDN</a>.",
|
|
315
|
+
"type": "string",
|
|
316
|
+
"required": false,
|
|
317
|
+
"defaultValue": null,
|
|
318
|
+
"category": "sizing"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "minHeight",
|
|
322
|
+
"description": "The minimum height of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/min-height\">MDN</a>.",
|
|
323
|
+
"type": "string",
|
|
324
|
+
"required": false,
|
|
325
|
+
"defaultValue": null,
|
|
326
|
+
"category": "sizing"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "minWidth",
|
|
330
|
+
"description": "The minimum width of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\">MDN</a>.",
|
|
331
|
+
"type": "string",
|
|
332
|
+
"required": false,
|
|
333
|
+
"defaultValue": null,
|
|
334
|
+
"category": "sizing"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "width",
|
|
338
|
+
"description": "The width of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/width\">MDN</a>.",
|
|
339
|
+
"type": [
|
|
340
|
+
"string",
|
|
341
|
+
"number"
|
|
342
|
+
],
|
|
343
|
+
"required": false,
|
|
344
|
+
"defaultValue": null,
|
|
345
|
+
"category": "sizing"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "position",
|
|
349
|
+
"description": "Specifies how the element is positioned. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/position\">MDN</a>.",
|
|
350
|
+
"type": "string",
|
|
351
|
+
"required": false,
|
|
352
|
+
"defaultValue": null,
|
|
353
|
+
"category": "positioning"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "top",
|
|
357
|
+
"description": "The top position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/top\">MDN</a>.",
|
|
358
|
+
"type": "string",
|
|
359
|
+
"required": false,
|
|
360
|
+
"defaultValue": null,
|
|
361
|
+
"category": "positioning"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "bottom",
|
|
365
|
+
"description": "The bottom position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/bottom\">MDN</a>.",
|
|
366
|
+
"type": "string",
|
|
367
|
+
"required": false,
|
|
368
|
+
"defaultValue": null,
|
|
369
|
+
"category": "positioning"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "left",
|
|
373
|
+
"description": "The left position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/left\">MDN</a>. Consider using start instead for RTL support.",
|
|
374
|
+
"type": "string",
|
|
375
|
+
"required": false,
|
|
376
|
+
"defaultValue": null,
|
|
377
|
+
"category": "positioning"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "right",
|
|
381
|
+
"description": "The right position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/right\">MDN</a>. Consider using start instead for RTL support.",
|
|
382
|
+
"type": "string",
|
|
383
|
+
"required": false,
|
|
384
|
+
"defaultValue": null,
|
|
385
|
+
"category": "positioning"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "zIndex",
|
|
389
|
+
"description": "The stacking order for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/z-index\">MDN</a>.",
|
|
390
|
+
"type": "string",
|
|
391
|
+
"required": false,
|
|
392
|
+
"defaultValue": null,
|
|
393
|
+
"category": "positioning"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "background",
|
|
397
|
+
"description": "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method. Component properties not set in the background shorthand property value declaration are set to their default values. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/background\">MDN</a>.",
|
|
398
|
+
"type": "string",
|
|
399
|
+
"required": false,
|
|
400
|
+
"defaultValue": null,
|
|
401
|
+
"category": "props"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "backgroundColor",
|
|
405
|
+
"description": "The background-color CSS property sets the background color of an element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/background-color\">MDN</a>.",
|
|
406
|
+
"type": "string",
|
|
407
|
+
"required": false,
|
|
408
|
+
"defaultValue": null,
|
|
409
|
+
"category": "props"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "border",
|
|
413
|
+
"description": "The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border\">MDN</a>.",
|
|
414
|
+
"type": "string",
|
|
415
|
+
"required": false,
|
|
416
|
+
"defaultValue": null,
|
|
417
|
+
"category": "props"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "borderTop",
|
|
421
|
+
"description": "The border-top CSS property sets all the properties of an element's top border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top\">MDN</a>.",
|
|
422
|
+
"type": "string",
|
|
423
|
+
"required": false,
|
|
424
|
+
"defaultValue": null,
|
|
425
|
+
"category": "props"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "borderBottom",
|
|
429
|
+
"description": "The border-top CSS property sets all the properties of an element's bottom border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom\">MDN</a>.",
|
|
430
|
+
"type": "string",
|
|
431
|
+
"required": false,
|
|
432
|
+
"defaultValue": null,
|
|
433
|
+
"category": "props"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "borderLeft",
|
|
437
|
+
"description": "The border-top CSS property sets all the properties of an element's left border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-left\">MDN</a>. Consider using start instead for RTL support.",
|
|
438
|
+
"type": "string",
|
|
439
|
+
"required": false,
|
|
440
|
+
"defaultValue": null,
|
|
441
|
+
"category": "props"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "borderRight",
|
|
445
|
+
"description": "The border-top CSS property sets all the properties of an element's right border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-right\">MDN</a>. Consider using start instead for RTL support.",
|
|
446
|
+
"type": "string",
|
|
447
|
+
"required": false,
|
|
448
|
+
"defaultValue": null,
|
|
449
|
+
"category": "props"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "borderRadius",
|
|
453
|
+
"description": "The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius\">MDN</a>.",
|
|
454
|
+
"type": "string",
|
|
455
|
+
"required": false,
|
|
456
|
+
"defaultValue": null,
|
|
457
|
+
"category": "props"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "boxShadow",
|
|
461
|
+
"description": "The box-shadow CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow\">MDN</a>.",
|
|
462
|
+
"type": "string",
|
|
463
|
+
"required": false,
|
|
464
|
+
"defaultValue": null,
|
|
465
|
+
"category": "props"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "padding",
|
|
469
|
+
"description": "The padding for all four sides of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding\">MDN</a>.",
|
|
470
|
+
"type": "string",
|
|
471
|
+
"required": false,
|
|
472
|
+
"defaultValue": null,
|
|
473
|
+
"category": "spacing"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "paddingBottom",
|
|
477
|
+
"description": "The padding for the bottom side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom\">MDN</a>.",
|
|
478
|
+
"type": "string",
|
|
479
|
+
"required": false,
|
|
480
|
+
"defaultValue": null,
|
|
481
|
+
"category": "spacing"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "paddingLeft",
|
|
485
|
+
"description": "The padding for the left side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left\">MDN</a>.",
|
|
486
|
+
"type": "string",
|
|
487
|
+
"required": false,
|
|
488
|
+
"defaultValue": null,
|
|
489
|
+
"category": "spacing"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "paddingRight",
|
|
493
|
+
"description": "The padding for the right side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right\">MDN</a>.",
|
|
494
|
+
"type": "string",
|
|
495
|
+
"required": false,
|
|
496
|
+
"defaultValue": null,
|
|
497
|
+
"category": "spacing"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "paddingTop",
|
|
501
|
+
"description": "The padding for the top side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top\">MDN</a>.",
|
|
502
|
+
"type": "string",
|
|
503
|
+
"required": false,
|
|
504
|
+
"defaultValue": null,
|
|
505
|
+
"category": "spacing"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"examples": [],
|
|
509
|
+
"tags": {}
|
|
510
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "LegendItem",
|
|
3
|
+
"description": "",
|
|
4
|
+
"package": "@redsift/charts",
|
|
5
|
+
"filePath": "packages/charts/src/components/LegendItem/LegendItem.tsx",
|
|
6
|
+
"props": [
|
|
7
|
+
{
|
|
8
|
+
"name": "legendDecorator",
|
|
9
|
+
"description": "Method modifying what's displayed within the legend when the variant is \"custom\".",
|
|
10
|
+
"type": "(datum: LegendItemDatum, props?: { index?: number | undefined; isSelected?: boolean | undefined; color?: string | undefined; } | undefined) => string | ReactElement<any, string | JSXElementConstructor<any>>",
|
|
11
|
+
"required": false,
|
|
12
|
+
"defaultValue": null,
|
|
13
|
+
"category": "props"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "variant",
|
|
17
|
+
"description": "Variant.",
|
|
18
|
+
"type": [
|
|
19
|
+
"\"label\"",
|
|
20
|
+
"\"value\"",
|
|
21
|
+
"\"none\"",
|
|
22
|
+
"\"percent\"",
|
|
23
|
+
"\"custom\""
|
|
24
|
+
],
|
|
25
|
+
"required": false,
|
|
26
|
+
"defaultValue": "'standard'",
|
|
27
|
+
"category": "props"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "color",
|
|
31
|
+
"description": "Color of the DataPoint.",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"required": false,
|
|
34
|
+
"defaultValue": null,
|
|
35
|
+
"category": "props"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "data",
|
|
39
|
+
"description": "Data. Also state to which the component should end the animation, if any.",
|
|
40
|
+
"type": "LegendItemDatum",
|
|
41
|
+
"required": true,
|
|
42
|
+
"defaultValue": null,
|
|
43
|
+
"category": "props"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "dataset",
|
|
47
|
+
"description": "Entire dataset in which the data point is a part of.",
|
|
48
|
+
"type": "any[]",
|
|
49
|
+
"required": true,
|
|
50
|
+
"defaultValue": null,
|
|
51
|
+
"category": "props"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "id",
|
|
55
|
+
"description": "Id. Used for accessibility.",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"required": false,
|
|
58
|
+
"defaultValue": null,
|
|
59
|
+
"category": "props"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "index",
|
|
63
|
+
"description": "Position in the list of siblings. Used for placement and selection.",
|
|
64
|
+
"type": "number",
|
|
65
|
+
"required": false,
|
|
66
|
+
"defaultValue": null,
|
|
67
|
+
"category": "props"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "isSelected",
|
|
71
|
+
"description": "Whether the component is selected or not. Used only if the component is selectable. Set to `undefined` to make nor selected nor unselected.",
|
|
72
|
+
"type": [
|
|
73
|
+
"false",
|
|
74
|
+
"true"
|
|
75
|
+
],
|
|
76
|
+
"required": false,
|
|
77
|
+
"defaultValue": null,
|
|
78
|
+
"category": "props"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "labelDecorator",
|
|
82
|
+
"description": "Method modifying the label before displaying it.",
|
|
83
|
+
"type": "(data: LegendItemDatum, props?: { index?: number | undefined; isSelected?: boolean | undefined; color?: string | undefined; } | undefined) => string | ReactElement<any, string | JSXElementConstructor<any>>",
|
|
84
|
+
"required": false,
|
|
85
|
+
"defaultValue": null,
|
|
86
|
+
"category": "props"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "onClick",
|
|
90
|
+
"description": "Method called when a click or keydown occurs on the component.",
|
|
91
|
+
"type": "(data: LegendItemDatum, dataset: any[]) => void",
|
|
92
|
+
"required": false,
|
|
93
|
+
"defaultValue": null,
|
|
94
|
+
"category": "props"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "previousData",
|
|
98
|
+
"description": "State from which the component should start the animation, if any.",
|
|
99
|
+
"type": "LegendItemDatum",
|
|
100
|
+
"required": false,
|
|
101
|
+
"defaultValue": null,
|
|
102
|
+
"category": "props"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "role",
|
|
106
|
+
"description": "Role. Will be set to 'button' if onClick is provided. If 'option', then the component becomes selectable.",
|
|
107
|
+
"type": [
|
|
108
|
+
"\"button\"",
|
|
109
|
+
"\"img\"",
|
|
110
|
+
"\"link\"",
|
|
111
|
+
"\"option\""
|
|
112
|
+
],
|
|
113
|
+
"required": false,
|
|
114
|
+
"defaultValue": null,
|
|
115
|
+
"category": "props"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "tooltipVariant",
|
|
119
|
+
"description": "Tooltip variant.",
|
|
120
|
+
"type": "string",
|
|
121
|
+
"required": false,
|
|
122
|
+
"defaultValue": null,
|
|
123
|
+
"category": "props"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"examples": [],
|
|
127
|
+
"tags": {}
|
|
128
|
+
}
|