@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,269 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Axis",
|
|
3
|
+
"description": "",
|
|
4
|
+
"package": "@redsift/charts",
|
|
5
|
+
"filePath": "packages/charts/src/components/Axis/Axis.tsx",
|
|
6
|
+
"props": [
|
|
7
|
+
{
|
|
8
|
+
"name": "disableAnimations",
|
|
9
|
+
"description": "Disable animations.",
|
|
10
|
+
"type": [
|
|
11
|
+
"false",
|
|
12
|
+
"true"
|
|
13
|
+
],
|
|
14
|
+
"required": false,
|
|
15
|
+
"defaultValue": null,
|
|
16
|
+
"category": "props"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "format",
|
|
20
|
+
"description": "",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"required": false,
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"category": "props"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "grid",
|
|
28
|
+
"description": "Whether to display grid or not. The length is mandatory and should usually be the length of the other axis.",
|
|
29
|
+
"type": [
|
|
30
|
+
"false",
|
|
31
|
+
"true",
|
|
32
|
+
"{ length?: number | undefined; stroke?: string | undefined; strokeWidth?: number | undefined; strokeDasharray?: string | undefined; opacity?: number | undefined; }"
|
|
33
|
+
],
|
|
34
|
+
"required": false,
|
|
35
|
+
"defaultValue": null,
|
|
36
|
+
"category": "props"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "legend",
|
|
40
|
+
"description": "",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"required": false,
|
|
43
|
+
"defaultValue": null,
|
|
44
|
+
"category": "props"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "legendOffset",
|
|
48
|
+
"description": "",
|
|
49
|
+
"type": "number",
|
|
50
|
+
"required": false,
|
|
51
|
+
"defaultValue": null,
|
|
52
|
+
"category": "props"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "legendPosition",
|
|
56
|
+
"description": "",
|
|
57
|
+
"type": [
|
|
58
|
+
"\"end\"",
|
|
59
|
+
"\"start\"",
|
|
60
|
+
"\"middle\""
|
|
61
|
+
],
|
|
62
|
+
"required": false,
|
|
63
|
+
"defaultValue": null,
|
|
64
|
+
"category": "props"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "legendX",
|
|
68
|
+
"description": "",
|
|
69
|
+
"type": "number",
|
|
70
|
+
"required": false,
|
|
71
|
+
"defaultValue": null,
|
|
72
|
+
"category": "props"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "legendY",
|
|
76
|
+
"description": "",
|
|
77
|
+
"type": "number",
|
|
78
|
+
"required": false,
|
|
79
|
+
"defaultValue": null,
|
|
80
|
+
"category": "props"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "legendRotation",
|
|
84
|
+
"description": "",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"required": false,
|
|
87
|
+
"defaultValue": null,
|
|
88
|
+
"category": "props"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "legendStyle",
|
|
92
|
+
"description": "",
|
|
93
|
+
"type": "CSSProperties",
|
|
94
|
+
"required": false,
|
|
95
|
+
"defaultValue": null,
|
|
96
|
+
"category": "props"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "length",
|
|
100
|
+
"description": "Length of the axis.",
|
|
101
|
+
"type": "number",
|
|
102
|
+
"required": false,
|
|
103
|
+
"defaultValue": null,
|
|
104
|
+
"category": "props"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "position",
|
|
108
|
+
"description": "Position of axis. top|bottom means this is an x axis, right|left means this is an y axis.",
|
|
109
|
+
"type": "string",
|
|
110
|
+
"required": false,
|
|
111
|
+
"defaultValue": null,
|
|
112
|
+
"category": "props"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "scale",
|
|
116
|
+
"description": "Scale (d3.js) used to generate the axis.",
|
|
117
|
+
"type": [
|
|
118
|
+
"ScaleLog",
|
|
119
|
+
"ScaleSymlog",
|
|
120
|
+
"ScaleTime<any>",
|
|
121
|
+
"ScaleLinear<any>",
|
|
122
|
+
"ScalePoint<any>",
|
|
123
|
+
"ScaleBand<any>"
|
|
124
|
+
],
|
|
125
|
+
"required": false,
|
|
126
|
+
"defaultValue": null,
|
|
127
|
+
"category": "props"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "tickFormat",
|
|
131
|
+
"description": "",
|
|
132
|
+
"type": [
|
|
133
|
+
"(d: NumericValue) => string | string[]",
|
|
134
|
+
"(d: StringValue) => string | string[]",
|
|
135
|
+
"(d: Date) => string | string[]",
|
|
136
|
+
"(d: ScaleValue) => string | string[]"
|
|
137
|
+
],
|
|
138
|
+
"required": false,
|
|
139
|
+
"defaultValue": null,
|
|
140
|
+
"category": "props"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "tickPadding",
|
|
144
|
+
"description": "",
|
|
145
|
+
"type": "number",
|
|
146
|
+
"required": false,
|
|
147
|
+
"defaultValue": null,
|
|
148
|
+
"category": "props"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "tickRotation",
|
|
152
|
+
"description": "",
|
|
153
|
+
"type": "number",
|
|
154
|
+
"required": false,
|
|
155
|
+
"defaultValue": null,
|
|
156
|
+
"category": "props"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "tickSize",
|
|
160
|
+
"description": "",
|
|
161
|
+
"type": "number",
|
|
162
|
+
"required": false,
|
|
163
|
+
"defaultValue": null,
|
|
164
|
+
"category": "props"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "tickStyle",
|
|
168
|
+
"description": "",
|
|
169
|
+
"type": "(ticks: any[]) => { strokeWidth?: number | undefined; gridStrokeWidth?: number | undefined; gridStroke?: string | undefined; }[]",
|
|
170
|
+
"required": false,
|
|
171
|
+
"defaultValue": null,
|
|
172
|
+
"category": "props"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "tickValues",
|
|
176
|
+
"description": "",
|
|
177
|
+
"type": [
|
|
178
|
+
"string",
|
|
179
|
+
"number",
|
|
180
|
+
"ScaleValue[]",
|
|
181
|
+
"CountableTimeInterval"
|
|
182
|
+
],
|
|
183
|
+
"required": false,
|
|
184
|
+
"defaultValue": null,
|
|
185
|
+
"category": "props"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "tickRemodelling",
|
|
189
|
+
"description": "",
|
|
190
|
+
"type": "(tickValues: any[]) => any[]",
|
|
191
|
+
"required": false,
|
|
192
|
+
"defaultValue": null,
|
|
193
|
+
"category": "props"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "variant",
|
|
197
|
+
"description": "Variant.",
|
|
198
|
+
"type": [
|
|
199
|
+
"\"line\"",
|
|
200
|
+
"\"none\"",
|
|
201
|
+
"\"lineTick\"",
|
|
202
|
+
"\"tick\"",
|
|
203
|
+
"\"tickValue\"",
|
|
204
|
+
"\"default\""
|
|
205
|
+
],
|
|
206
|
+
"required": false,
|
|
207
|
+
"defaultValue": null,
|
|
208
|
+
"category": "props"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "x",
|
|
212
|
+
"description": "X position.",
|
|
213
|
+
"type": "number",
|
|
214
|
+
"required": false,
|
|
215
|
+
"defaultValue": null,
|
|
216
|
+
"category": "props"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "y",
|
|
220
|
+
"description": "Y position.",
|
|
221
|
+
"type": "number",
|
|
222
|
+
"required": false,
|
|
223
|
+
"defaultValue": null,
|
|
224
|
+
"category": "props"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "chartWidth",
|
|
228
|
+
"description": "Chart width, used for horizontal grid.",
|
|
229
|
+
"type": "number",
|
|
230
|
+
"required": false,
|
|
231
|
+
"defaultValue": null,
|
|
232
|
+
"category": "props"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "chartHeight",
|
|
236
|
+
"description": "Chart height, used for horizontal grid.",
|
|
237
|
+
"type": "number",
|
|
238
|
+
"required": false,
|
|
239
|
+
"defaultValue": null,
|
|
240
|
+
"category": "props"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "sectionHeight",
|
|
244
|
+
"description": "Section height, used for horizontal grid within a section.",
|
|
245
|
+
"type": "number",
|
|
246
|
+
"required": false,
|
|
247
|
+
"defaultValue": null,
|
|
248
|
+
"category": "props"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "textColor",
|
|
252
|
+
"description": "Color used for tick values.",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"required": false,
|
|
255
|
+
"defaultValue": null,
|
|
256
|
+
"category": "props"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "tickToColor",
|
|
260
|
+
"description": "Custom method to choose which tick value to color if not all.",
|
|
261
|
+
"type": "(tick?: { textX: number; textY: number; lineX: number; lineY: number; x: number; y: number; key: string; value: ScaleValue; } | undefined, index?: number | undefined) => boolean",
|
|
262
|
+
"required": false,
|
|
263
|
+
"defaultValue": null,
|
|
264
|
+
"category": "props"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"examples": [],
|
|
268
|
+
"tags": {}
|
|
269
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Bar",
|
|
3
|
+
"description": "",
|
|
4
|
+
"package": "@redsift/charts",
|
|
5
|
+
"filePath": "packages/charts/src/components/Bar/Bar.tsx",
|
|
6
|
+
"props": [
|
|
7
|
+
{
|
|
8
|
+
"name": "gap",
|
|
9
|
+
"description": "Gap between two siblings.",
|
|
10
|
+
"type": "number",
|
|
11
|
+
"required": false,
|
|
12
|
+
"defaultValue": "5",
|
|
13
|
+
"category": "props"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "height",
|
|
17
|
+
"description": "Height of the bar in horizontal orientation.",
|
|
18
|
+
"type": "number",
|
|
19
|
+
"required": false,
|
|
20
|
+
"defaultValue": "40",
|
|
21
|
+
"category": "props"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "maxHeight",
|
|
25
|
+
"description": "Maximum height of the bar.",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"required": false,
|
|
28
|
+
"defaultValue": null,
|
|
29
|
+
"category": "props"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "orientation",
|
|
33
|
+
"description": "Orientation of the bar.",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"defaultValue": "'vertical'",
|
|
37
|
+
"category": "props"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "direction",
|
|
41
|
+
"description": "Direction of the bar, works only with vertical orientation.",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"required": false,
|
|
44
|
+
"defaultValue": null,
|
|
45
|
+
"category": "props"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "scale",
|
|
49
|
+
"description": "A linear continuous scale defined over a numeric domain used to determine the width or height of the bar (depending on the orientation).",
|
|
50
|
+
"type": "ScaleLinear<number, number, never>",
|
|
51
|
+
"required": true,
|
|
52
|
+
"defaultValue": null,
|
|
53
|
+
"category": "props"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "scalePosition",
|
|
57
|
+
"description": "A scale defined over a numeric/time/ordinal domain used to determine the position of the bar.",
|
|
58
|
+
"type": [
|
|
59
|
+
"ScaleLinear<number, number, never>",
|
|
60
|
+
"ScaleTime<number, number, never>",
|
|
61
|
+
"ScalePoint<string>"
|
|
62
|
+
],
|
|
63
|
+
"required": true,
|
|
64
|
+
"defaultValue": null,
|
|
65
|
+
"category": "props"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "width",
|
|
69
|
+
"description": "Width of the bar in vertical orientation.",
|
|
70
|
+
"type": "number",
|
|
71
|
+
"required": false,
|
|
72
|
+
"defaultValue": "40",
|
|
73
|
+
"category": "props"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "minWidth",
|
|
77
|
+
"description": "Min width of the bar in vertical orientation.",
|
|
78
|
+
"type": "number",
|
|
79
|
+
"required": false,
|
|
80
|
+
"defaultValue": null,
|
|
81
|
+
"category": "props"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "anchorProps",
|
|
85
|
+
"description": "Anchor props to use when the component is a navigation link.",
|
|
86
|
+
"type": "AnchorProps",
|
|
87
|
+
"required": false,
|
|
88
|
+
"defaultValue": null,
|
|
89
|
+
"category": "props"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "color",
|
|
93
|
+
"description": "Color of the DataPoint.",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"required": false,
|
|
96
|
+
"defaultValue": null,
|
|
97
|
+
"category": "props"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "data",
|
|
101
|
+
"description": "Data. Also state to which the component should end the animation, if any.",
|
|
102
|
+
"type": "BarDatum",
|
|
103
|
+
"required": true,
|
|
104
|
+
"defaultValue": null,
|
|
105
|
+
"category": "props"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "dataset",
|
|
109
|
+
"description": "Entire dataset in which the data point is a part of.",
|
|
110
|
+
"type": "any[]",
|
|
111
|
+
"required": true,
|
|
112
|
+
"defaultValue": null,
|
|
113
|
+
"category": "props"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "disableAnimations",
|
|
117
|
+
"description": "Disable animations.",
|
|
118
|
+
"type": [
|
|
119
|
+
"false",
|
|
120
|
+
"true"
|
|
121
|
+
],
|
|
122
|
+
"required": false,
|
|
123
|
+
"defaultValue": null,
|
|
124
|
+
"category": "props"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "groupedData",
|
|
128
|
+
"description": "Group of data in which the data point is a part of.",
|
|
129
|
+
"type": "any[]",
|
|
130
|
+
"required": false,
|
|
131
|
+
"defaultValue": null,
|
|
132
|
+
"category": "props"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "id",
|
|
136
|
+
"description": "Id. Used for accessibility.",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"required": false,
|
|
139
|
+
"defaultValue": null,
|
|
140
|
+
"category": "props"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "index",
|
|
144
|
+
"description": "Position in the list of siblings. Used for placement and selection.",
|
|
145
|
+
"type": "number",
|
|
146
|
+
"required": false,
|
|
147
|
+
"defaultValue": null,
|
|
148
|
+
"category": "props"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "isSelected",
|
|
152
|
+
"description": "Whether the component is selected or not. Used only if the component is selectable. Set to `undefined` to make nor selected nor unselected.",
|
|
153
|
+
"type": [
|
|
154
|
+
"false",
|
|
155
|
+
"true"
|
|
156
|
+
],
|
|
157
|
+
"required": false,
|
|
158
|
+
"defaultValue": null,
|
|
159
|
+
"category": "props"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "labelDecorator",
|
|
163
|
+
"description": "Method modifying the label before displaying it.",
|
|
164
|
+
"type": "(data: BarDatum, props?: { index?: number | undefined; isSelected?: boolean | undefined; color?: string | undefined; } | undefined) => string | ReactElement<any, string | JSXElementConstructor<any>>",
|
|
165
|
+
"required": false,
|
|
166
|
+
"defaultValue": null,
|
|
167
|
+
"category": "props"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "onClick",
|
|
171
|
+
"description": "Method called when a click or keydown occurs on the component.",
|
|
172
|
+
"type": "(data: BarDatum, dataset: any[]) => void",
|
|
173
|
+
"required": false,
|
|
174
|
+
"defaultValue": null,
|
|
175
|
+
"category": "props"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "previousData",
|
|
179
|
+
"description": "State from which the component should start the animation, if any.",
|
|
180
|
+
"type": "BarDatum",
|
|
181
|
+
"required": false,
|
|
182
|
+
"defaultValue": null,
|
|
183
|
+
"category": "props"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "role",
|
|
187
|
+
"description": "Role. Will be set to 'button' if onClick is provided. If 'option', then the component becomes selectable.",
|
|
188
|
+
"type": [
|
|
189
|
+
"\"button\"",
|
|
190
|
+
"\"img\"",
|
|
191
|
+
"\"link\"",
|
|
192
|
+
"\"option\""
|
|
193
|
+
],
|
|
194
|
+
"required": false,
|
|
195
|
+
"defaultValue": null,
|
|
196
|
+
"category": "props"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "theme",
|
|
200
|
+
"description": "Theme.",
|
|
201
|
+
"type": [
|
|
202
|
+
"\"light\"",
|
|
203
|
+
"\"dark\""
|
|
204
|
+
],
|
|
205
|
+
"required": false,
|
|
206
|
+
"defaultValue": null,
|
|
207
|
+
"category": "props"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "tooltipVariant",
|
|
211
|
+
"description": "Tooltip variant.",
|
|
212
|
+
"type": "string",
|
|
213
|
+
"required": false,
|
|
214
|
+
"defaultValue": null,
|
|
215
|
+
"category": "props"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "tooltipDecorator",
|
|
219
|
+
"description": "Method modifying what's displayed within the tooltip when the tooltipVariant is \"custom\".",
|
|
220
|
+
"type": "(data: BarDatum, props?: { index?: number | undefined; isSelected?: boolean | undefined; color?: string | undefined; } | undefined, dataset?: any[] | undefined, groupedData?: any[] | undefined) => string | ReactElement<any, string | JSXElementConstructor<any>>",
|
|
221
|
+
"required": false,
|
|
222
|
+
"defaultValue": null,
|
|
223
|
+
"category": "props"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "tooltipProps",
|
|
227
|
+
"description": "Default placement of the tooltip.",
|
|
228
|
+
"type": "Partial<Omit<TooltipProps, \"ref\">>",
|
|
229
|
+
"required": false,
|
|
230
|
+
"defaultValue": null,
|
|
231
|
+
"category": "props"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"examples": [],
|
|
235
|
+
"tags": {}
|
|
236
|
+
}
|