@dcs-tech/ui 0.2.0 → 0.3.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/README.md +31 -0
- package/dist/ChartImageMenu-gvNAYVkY.js +2938 -0
- package/dist/Charts-COljjy0x.js +1759 -0
- package/dist/SummaryChart-D4jcOv-K.js +31 -0
- package/dist/SummaryImage-BSbatHym.js +19 -0
- package/dist/SummarySeeAll-vnaL3pdy.js +97 -0
- package/dist/defaults-BbLB8QmD.js +709 -0
- package/dist/exportContext-CAX8VPrP.js +243 -0
- package/dist/exportEngine-C4n1MiOw.js +891 -0
- package/dist/fuseSearch-vLQR3O5a.js +37 -0
- package/dist/index.js +19289 -9411
- package/dist/style.css +1 -1
- package/dist/summaryChartData-CU_W5ocv.js +82 -0
- package/dist/types/published/dcs-ui/src/index.d.ts +0 -28
- package/dist/types/published/dcs-ui/src/publicLogic.d.ts +0 -33
- package/dist/types/published/dcs-ui/src/publicTypes.d.ts +0 -12
- package/dist/types/shared-logic/src/report/aggregate.d.ts +0 -21
- package/dist/types/shared-logic/src/report/canvas.d.ts +0 -55
- package/dist/types/shared-logic/src/report/conditions.d.ts +0 -14
- package/dist/types/shared-logic/src/report/constants.d.ts +0 -39
- package/dist/types/shared-logic/src/report/dataset.d.ts +0 -26
- package/dist/types/shared-logic/src/report/edit.d.ts +0 -62
- package/dist/types/shared-logic/src/report/fields.d.ts +0 -51
- package/dist/types/shared-logic/src/report/format.d.ts +0 -22
- package/dist/types/shared-logic/src/report/fromColumns.d.ts +0 -30
- package/dist/types/shared-logic/src/report/layout.d.ts +1 -55
- package/dist/types/shared-logic/src/report/metrics.d.ts +0 -45
- package/dist/types/shared-logic/src/report/migrate.d.ts +0 -60
- package/dist/types/shared-logic/src/report/paginate.d.ts +0 -32
- package/dist/types/shared-logic/src/report/renderers/html.d.ts +0 -21
- package/dist/types/shared-logic/src/report/renderers/pdfmake.d.ts +0 -27
- package/dist/types/shared-logic/src/report/resolve.d.ts +0 -29
- package/dist/types/shared-logic/src/report/scope.d.ts +0 -28
- package/dist/types/shared-logic/src/report/storage.d.ts +0 -76
- package/dist/types/shared-logic/src/report/validate.d.ts +0 -18
- package/dist/types/shared-logic/src/ui/cellRules.logic.d.ts +0 -35
- package/dist/types/shared-logic/src/ui/chipinput.logic.d.ts +0 -12
- package/dist/types/shared-logic/src/ui/collapsible.logic.d.ts +0 -7
- package/dist/types/shared-logic/src/ui/colorScheme.d.ts +0 -14
- package/dist/types/shared-logic/src/ui/columnOrder.logic.d.ts +0 -11
- package/dist/types/shared-logic/src/ui/datePicker.logic.d.ts +136 -0
- package/dist/types/shared-logic/src/ui/editableTable.logic.d.ts +0 -27
- package/dist/types/shared-logic/src/ui/fieldControl.logic.d.ts +2 -14
- package/dist/types/shared-logic/src/ui/form.logic.d.ts +0 -8
- package/dist/types/shared-logic/src/ui/index.d.ts +3 -29
- package/dist/types/shared-logic/src/ui/keyboard.logic.d.ts +0 -60
- package/dist/types/shared-logic/src/ui/navigation.logic.d.ts +0 -24
- package/dist/types/shared-logic/src/ui/popover.logic.d.ts +22 -20
- package/dist/types/shared-logic/src/ui/popupList.logic.d.ts +0 -35
- package/dist/types/shared-logic/src/ui/quickAddGrid.logic.d.ts +183 -0
- package/dist/types/shared-logic/src/ui/select.logic.d.ts +0 -14
- package/dist/types/shared-logic/src/ui/tableLayout.logic.d.ts +0 -34
- package/dist/types/shared-logic/src/ui/tableSummary.logic.d.ts +0 -19
- package/dist/types/shared-logic/src/ui/timeField.logic.d.ts +26 -0
- package/dist/types/shared-logic/src/ui/tooltip.logic.d.ts +0 -24
- package/dist/types/shared-logic/src/ui/useMergeRefs.d.ts +0 -8
- package/dist/types/shared-types/src/report/bands.d.ts +0 -20
- package/dist/types/shared-types/src/report/blocks.d.ts +0 -59
- package/dist/types/shared-types/src/report/conditions.d.ts +0 -13
- package/dist/types/shared-types/src/report/dataset.d.ts +0 -53
- package/dist/types/shared-types/src/report/document.d.ts +0 -80
- package/dist/types/shared-types/src/report/primitives.d.ts +0 -40
- package/dist/types/shared-types/src/report/registry.d.ts +0 -46
- package/dist/types/shared-types/src/report/storage.d.ts +0 -31
- package/dist/types/shared-types/src/report/template.d.ts +0 -60
- package/dist/types/shared-types/src/ui/button.types.d.ts +0 -11
- package/dist/types/shared-types/src/ui/checkbox.types.d.ts +0 -4
- package/dist/types/shared-types/src/ui/chipinput.types.d.ts +0 -10
- package/dist/types/shared-types/src/ui/collapsible.types.d.ts +0 -18
- package/dist/types/shared-types/src/ui/common.types.d.ts +0 -11
- package/dist/types/shared-types/src/ui/control.types.d.ts +0 -97
- package/dist/types/shared-types/src/ui/datePicker.types.d.ts +46 -0
- package/dist/types/shared-types/src/ui/editableTable.types.d.ts +0 -79
- package/dist/types/shared-types/src/ui/field.types.d.ts +4 -124
- package/dist/types/shared-types/src/ui/fieldWrapper.types.d.ts +0 -10
- package/dist/types/shared-types/src/ui/fields.types.d.ts +0 -45
- package/dist/types/shared-types/src/ui/form.types.d.ts +0 -30
- package/dist/types/shared-types/src/ui/index.d.ts +1 -16
- package/dist/types/shared-types/src/ui/input.types.d.ts +0 -4
- package/dist/types/shared-types/src/ui/keyboard.types.d.ts +2 -109
- package/dist/types/shared-types/src/ui/navigation.types.d.ts +0 -22
- package/dist/types/shared-types/src/ui/radio.types.d.ts +0 -6
- package/dist/types/shared-types/src/ui/select.types.d.ts +0 -41
- package/dist/types/shared-types/src/ui/suggest.types.d.ts +0 -10
- package/dist/types/shared-types/src/ui/switch.types.d.ts +0 -4
- package/dist/types/shared-types/src/ui/table.types.d.ts +0 -59
- package/dist/types/shared-types/src/ui/tooltip.types.d.ts +0 -25
- package/dist/types/shared-types/src/ui/typography.types.d.ts +0 -4
- package/dist/types/shared-web-ui/src/AppBar/AppBar.d.ts +0 -9
- package/dist/types/shared-web-ui/src/ArrowKeyFocus/useArrowKeyFocus.d.ts +0 -19
- package/dist/types/shared-web-ui/src/Avatar/Avatar.d.ts +0 -14
- package/dist/types/shared-web-ui/src/Badge/Badge.d.ts +0 -11
- package/dist/types/shared-web-ui/src/Breadcrumbs/Breadcrumbs.d.ts +0 -52
- package/dist/types/shared-web-ui/src/Card/Card.d.ts +0 -16
- package/dist/types/shared-web-ui/src/Charts/AnchoredMenu.d.ts +17 -0
- package/dist/types/shared-web-ui/src/Charts/BarList.d.ts +12 -0
- package/dist/types/shared-web-ui/src/Charts/CalendarHeatmap.d.ts +17 -0
- package/dist/types/shared-web-ui/src/Charts/Chart.d.ts +20 -0
- package/dist/types/shared-web-ui/src/Charts/ChartIcon.d.ts +5 -0
- package/dist/types/shared-web-ui/src/Charts/ChartImageMenu.d.ts +4 -0
- package/dist/types/shared-web-ui/src/Charts/ChartTable.d.ts +8 -0
- package/dist/types/shared-web-ui/src/Charts/ChartTooltip.d.ts +44 -0
- package/dist/types/shared-web-ui/src/Charts/ChartView.d.ts +15 -0
- package/dist/types/shared-web-ui/src/Charts/ColumnChart.d.ts +15 -0
- package/dist/types/shared-web-ui/src/Charts/Donut.d.ts +14 -0
- package/dist/types/shared-web-ui/src/Charts/Funnel.d.ts +10 -0
- package/dist/types/shared-web-ui/src/Charts/Gauge.d.ts +15 -0
- package/dist/types/shared-web-ui/src/Charts/Legend.d.ts +6 -0
- package/dist/types/shared-web-ui/src/Charts/LineChart.d.ts +13 -0
- package/dist/types/shared-web-ui/src/Charts/NumberTrend.d.ts +21 -0
- package/dist/types/shared-web-ui/src/Charts/Progress.d.ts +12 -0
- package/dist/types/shared-web-ui/src/Charts/StackedBar.d.ts +11 -0
- package/dist/types/shared-web-ui/src/Charts/Treemap.d.ts +12 -0
- package/dist/types/shared-web-ui/src/Charts/chartData.d.ts +69 -0
- package/dist/types/shared-web-ui/src/Charts/chartImage.d.ts +121 -0
- package/dist/types/shared-web-ui/src/Charts/geometry.d.ts +178 -0
- package/dist/types/shared-web-ui/src/Charts/index.d.ts +32 -0
- package/dist/types/shared-web-ui/src/Charts/labels.d.ts +46 -0
- package/dist/types/shared-web-ui/src/Charts/menuPlacement.d.ts +25 -0
- package/dist/types/shared-web-ui/src/Charts/palette.d.ts +81 -0
- package/dist/types/shared-web-ui/src/Charts/parts.d.ts +24 -0
- package/dist/types/shared-web-ui/src/Charts/pointer.d.ts +41 -0
- package/dist/types/shared-web-ui/src/Charts/types.d.ts +51 -0
- package/dist/types/shared-web-ui/src/Charts/ui.d.ts +3 -0
- package/dist/types/shared-web-ui/src/Charts/useBoxSize.d.ts +6 -0
- package/dist/types/shared-web-ui/src/Charts/useLegendFit.d.ts +1 -0
- package/dist/types/shared-web-ui/src/Collapsible/CollapsibleItem.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ColorSchemeSelect/ColorSchemeSelect.d.ts +0 -15
- package/dist/types/shared-web-ui/src/CommandPalette/CommandPalette.d.ts +0 -27
- package/dist/types/shared-web-ui/src/DataTable/DataTable.d.ts +16 -0
- package/dist/types/shared-web-ui/src/DataTable/DisplayPopover.d.ts +22 -0
- package/dist/types/shared-web-ui/src/DataTable/HeaderMenu.d.ts +31 -0
- package/dist/types/shared-web-ui/src/DataTable/ManageModal.d.ts +31 -0
- package/dist/types/shared-web-ui/src/DataTable/SingleRowView.d.ts +9 -0
- package/dist/types/shared-web-ui/src/DataTable/SortModal.d.ts +16 -0
- package/dist/types/shared-web-ui/src/DataTable/StatusRow.d.ts +49 -0
- package/dist/types/shared-web-ui/src/DataTable/TableColumnModal.d.ts +18 -0
- package/dist/types/shared-web-ui/src/DataTable/TableControls.d.ts +48 -0
- package/dist/types/shared-web-ui/src/DataTable/TablePagination.d.ts +38 -0
- package/dist/types/shared-web-ui/src/DataTable/TableScrollStrip.d.ts +2 -0
- package/dist/types/shared-web-ui/src/DataTable/TableToolbar.d.ts +69 -0
- package/dist/types/shared-web-ui/src/DataTable/TableView.d.ts +61 -0
- package/dist/types/shared-web-ui/src/DataTable/bulk/BulkConfirmDialog.d.ts +13 -0
- package/dist/types/shared-web-ui/src/DataTable/bulk/TableToast.d.ts +13 -0
- package/dist/types/shared-web-ui/src/DataTable/bulk/bulkActions.d.ts +23 -0
- package/dist/types/shared-web-ui/src/DataTable/cards/CardFieldsEditor.d.ts +16 -0
- package/dist/types/shared-web-ui/src/DataTable/cards/CardView.d.ts +50 -0
- package/dist/types/shared-web-ui/src/DataTable/cards/cardFields.d.ts +32 -0
- package/dist/types/shared-web-ui/src/DataTable/cards/rowParts.d.ts +38 -0
- package/dist/types/shared-web-ui/src/DataTable/data/useServerData.d.ts +28 -0
- package/dist/types/shared-web-ui/src/DataTable/defaults.d.ts +18 -0
- package/dist/types/shared-web-ui/src/DataTable/detail/BuiltInDetail.d.ts +10 -0
- package/dist/types/shared-web-ui/src/DataTable/detail/DetailHost.d.ts +13 -0
- package/dist/types/shared-web-ui/src/DataTable/export/ExportPopover.d.ts +18 -0
- package/dist/types/shared-web-ui/src/DataTable/export/ExportPreviewModal.d.ts +11 -0
- package/dist/types/shared-web-ui/src/DataTable/export/ExportSettingsModal.d.ts +31 -0
- package/dist/types/shared-web-ui/src/DataTable/export/ExportTemplateCards.d.ts +19 -0
- package/dist/types/shared-web-ui/src/DataTable/export/exportContext.d.ts +10 -0
- package/dist/types/shared-web-ui/src/DataTable/export/exportEngine.d.ts +77 -0
- package/dist/types/shared-web-ui/src/DataTable/export/exportRows.d.ts +10 -0
- package/dist/types/shared-web-ui/src/DataTable/export/templateDisplay.d.ts +7 -0
- package/dist/types/shared-web-ui/src/DataTable/export/templateOptions.d.ts +6 -0
- package/dist/types/shared-web-ui/src/DataTable/export/useTableExport.d.ts +53 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/ColumnFilterPopover.d.ts +14 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/FilterConditionRow.d.ts +11 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/FilterGroup.d.ts +12 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/FilterModal.d.ts +14 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/FilterRow.d.ts +20 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/columnFilterModel.d.ts +29 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/filterEngine.d.ts +16 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/filterRowModel.d.ts +28 -0
- package/dist/types/shared-web-ui/src/DataTable/filters/quickFilterMatch.d.ts +3 -0
- package/dist/types/shared-web-ui/src/DataTable/grouping/GroupUi.d.ts +36 -0
- package/dist/types/shared-web-ui/src/DataTable/grouping/groupModel.d.ts +82 -0
- package/dist/types/shared-web-ui/src/DataTable/grouping/useGrouping.d.ts +39 -0
- package/dist/types/shared-web-ui/src/DataTable/host.d.ts +14 -0
- package/dist/types/shared-web-ui/src/DataTable/index.d.ts +18 -0
- package/dist/types/shared-web-ui/src/DataTable/keyboard/ShortcutsDialog.d.ts +14 -0
- package/dist/types/shared-web-ui/src/DataTable/keyboard/shortcuts.d.ts +22 -0
- package/dist/types/shared-web-ui/src/DataTable/keyboard/useGridKeyboard.d.ts +48 -0
- package/dist/types/shared-web-ui/src/DataTable/labels.d.ts +618 -0
- package/dist/types/shared-web-ui/src/DataTable/layout/LayoutSwitcher.d.ts +9 -0
- package/dist/types/shared-web-ui/src/DataTable/layout/layouts.d.ts +20 -0
- package/dist/types/shared-web-ui/src/DataTable/layout/scrollArea.d.ts +2 -0
- package/dist/types/shared-web-ui/src/DataTable/layout/useFillHeight.d.ts +11 -0
- package/dist/types/shared-web-ui/src/DataTable/menu/RowMenu.d.ts +56 -0
- package/dist/types/shared-web-ui/src/DataTable/menu/buildRowMenu.d.ts +35 -0
- package/dist/types/shared-web-ui/src/DataTable/menu/clipboard.d.ts +4 -0
- package/dist/types/shared-web-ui/src/DataTable/menu/valueFilter.d.ts +15 -0
- package/dist/types/shared-web-ui/src/DataTable/motion/useRowMotion.d.ts +32 -0
- package/dist/types/shared-web-ui/src/DataTable/persistence/adapters.d.ts +6 -0
- package/dist/types/shared-web-ui/src/DataTable/persistence/reconcile.d.ts +64 -0
- package/dist/types/shared-web-ui/src/DataTable/persistence/useColumnPersistence.d.ts +51 -0
- package/dist/types/shared-web-ui/src/DataTable/persistence/useManagePrefs.d.ts +23 -0
- package/dist/types/shared-web-ui/src/DataTable/persistence/useOrphanPrefs.d.ts +3 -0
- package/dist/types/shared-web-ui/src/DataTable/pinning.d.ts +10 -0
- package/dist/types/shared-web-ui/src/DataTable/rows/RowActions.d.ts +15 -0
- package/dist/types/shared-web-ui/src/DataTable/rows/rowPress.d.ts +35 -0
- package/dist/types/shared-web-ui/src/DataTable/sharing/Sharing.d.ts +21 -0
- package/dist/types/shared-web-ui/src/DataTable/split/SplitView.d.ts +29 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/ManageSummaryCards.d.ts +18 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/SummaryChart.d.ts +11 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/SummaryControls.d.ts +33 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/SummaryImage.d.ts +12 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/SummarySeeAll.d.ts +17 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/TableSummary.d.ts +34 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/summaryCatalogue.d.ts +64 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/summaryChartData.d.ts +9 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/summaryModel.d.ts +152 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/summaryWidth.d.ts +22 -0
- package/dist/types/shared-web-ui/src/DataTable/summary/useTableSummary.d.ts +18 -0
- package/dist/types/shared-web-ui/src/DataTable/types.d.ts +1145 -0
- package/dist/types/shared-web-ui/src/DataTable/ui-local/AutoHeight.d.ts +9 -0
- package/dist/types/shared-web-ui/src/DataTable/ui-local/DateRangePicker.d.ts +16 -0
- package/dist/types/shared-web-ui/src/DataTable/ui-local/DragAndDropList/DragAndDropList.d.ts +4 -0
- package/dist/types/shared-web-ui/src/DataTable/ui-local/DragAndDropList/index.d.ts +3 -0
- package/dist/types/shared-web-ui/src/DataTable/ui-local/DragAndDropList/types.d.ts +70 -0
- package/dist/types/shared-web-ui/src/DataTable/ui-local/ReactModal.d.ts +20 -0
- package/dist/types/shared-web-ui/src/DataTable/ui.d.ts +13 -0
- package/dist/types/shared-web-ui/src/DataTable/useDataChangeTracker.d.ts +11 -0
- package/dist/types/shared-web-ui/src/DataTable/useTable.d.ts +12 -0
- package/dist/types/shared-web-ui/src/DataTable/vendor/columnOrder.d.ts +1 -0
- package/dist/types/shared-web-ui/src/DataTable/vendor/diff.d.ts +5 -0
- package/dist/types/shared-web-ui/src/DataTable/vendor/fileActions.d.ts +19 -0
- package/dist/types/shared-web-ui/src/DataTable/vendor/index.d.ts +3 -0
- package/dist/types/shared-web-ui/src/DataTable/virtual/useVirtualLines.d.ts +27 -0
- package/dist/types/shared-web-ui/src/DatePicker/Calendar.d.ts +14 -0
- package/dist/types/shared-web-ui/src/DatePicker/DatePicker.d.ts +5 -0
- package/dist/types/shared-web-ui/src/DatePicker/TimeField.d.ts +16 -0
- package/dist/types/shared-web-ui/src/DatePicker/index.d.ts +4 -0
- package/dist/types/shared-web-ui/src/DatePicker/useOneMonthPane.d.ts +2 -0
- package/dist/types/shared-web-ui/src/Dialog/Dialog.d.ts +0 -45
- package/dist/types/shared-web-ui/src/Dialog/DialogHost.d.ts +0 -36
- package/dist/types/shared-web-ui/src/DropdownMenu/DropdownMenu.d.ts +24 -24
- package/dist/types/shared-web-ui/src/EditableTable/EditableTable.d.ts +0 -5
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableCell.d.ts +0 -18
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableRow.d.ts +0 -11
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableSummary.d.ts +0 -11
- package/dist/types/shared-web-ui/src/EditableTable/useRowAnimation.d.ts +0 -32
- package/dist/types/shared-web-ui/src/FieldContext/FieldContext.d.ts +0 -15
- package/dist/types/shared-web-ui/src/FieldContext/FieldProvider.d.ts +0 -9
- package/dist/types/shared-web-ui/src/FieldContext/useField.d.ts +0 -27
- package/dist/types/shared-web-ui/src/FieldContext/useFieldSurface.d.ts +0 -23
- package/dist/types/shared-web-ui/src/FieldContext/useFormKeyboard.d.ts +0 -3
- package/dist/types/shared-web-ui/src/Fields/FieldButton.d.ts +0 -15
- package/dist/types/shared-web-ui/src/Floating/index.d.ts +3 -0
- package/dist/types/shared-web-ui/src/Floating/layers.d.ts +4 -0
- package/dist/types/shared-web-ui/src/Floating/scrollLock.d.ts +2 -0
- package/dist/types/shared-web-ui/src/Floating/useFloatingLayer.d.ts +20 -0
- package/dist/types/shared-web-ui/src/Popover/Popover.d.ts +6 -25
- package/dist/types/shared-web-ui/src/Popover/floatingPosition.d.ts +17 -0
- package/dist/types/shared-web-ui/src/ReportDesigner/BandList.d.ts +0 -8
- package/dist/types/shared-web-ui/src/ReportDesigner/BlockEditor.d.ts +0 -11
- package/dist/types/shared-web-ui/src/ReportDesigner/ConditionEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldPicker.d.ts +0 -13
- package/dist/types/shared-web-ui/src/ReportDesigner/Inspector.d.ts +0 -7
- package/dist/types/shared-web-ui/src/ReportDesigner/ReportDesigner.d.ts +0 -22
- package/dist/types/shared-web-ui/src/ReportDesigner/TableEditor.d.ts +0 -8
- package/dist/types/shared-web-ui/src/ReportDesigner/chipSources.d.ts +0 -1
- package/dist/types/shared-web-ui/src/ReportDesigner/labels.d.ts +0 -12
- package/dist/types/shared-web-ui/src/ReportDesigner/parts.d.ts +0 -30
- package/dist/types/shared-web-ui/src/ReportDesigner/types.d.ts +0 -39
- package/dist/types/shared-web-ui/src/ReportPreview/ReportPreview.d.ts +0 -24
- package/dist/types/shared-web-ui/src/Scroll/ScrollRule.d.ts +2 -0
- package/dist/types/shared-web-ui/src/Scroll/ScrollStrip.d.ts +9 -0
- package/dist/types/shared-web-ui/src/Scroll/index.d.ts +4 -0
- package/dist/types/shared-web-ui/src/Scroll/labels.d.ts +5 -0
- package/dist/types/shared-web-ui/src/Scroll/scrollActivity.d.ts +14 -0
- package/dist/types/shared-web-ui/src/Scroll/ui.d.ts +1 -0
- package/dist/types/shared-web-ui/src/Sidebar/Sidebar.d.ts +0 -31
- package/dist/types/shared-web-ui/src/Skeleton/Skeleton.d.ts +0 -15
- package/dist/types/shared-web-ui/src/Tabs/Tabs.d.ts +0 -43
- package/dist/types/shared-web-ui/src/Toast/ToastHost.d.ts +0 -14
- package/dist/types/shared-web-ui/src/Toast/ToastItem.d.ts +0 -9
- package/dist/types/shared-web-ui/src/Toast/toast.types.d.ts +0 -13
- package/dist/types/shared-web-ui/src/Tooltip/Tooltip.d.ts +0 -16
- package/dist/types/shared-web-ui/src/Tooltip/useTooltip.d.ts +0 -9
- package/dist/types/shared-web-ui/src/UIProvider/UIPortalContext.d.ts +0 -14
- package/dist/types/shared-web-ui/src/UIProvider/UIProvider.d.ts +0 -41
- package/dist/types/shared-web-ui/src/UIProvider/UIThemeContext.d.ts +0 -8
- package/dist/types/shared-web-ui/src/index.d.ts +5 -0
- package/dist/ui-DJFwpPdX.js +4997 -0
- package/package.json +9 -7
|
@@ -28,10 +28,6 @@ export interface TypographyProps extends DataAttributes {
|
|
|
28
28
|
gutterBottom?: boolean;
|
|
29
29
|
noWrap?: boolean;
|
|
30
30
|
truncate?: boolean | TruncateConfig;
|
|
31
|
-
/**
|
|
32
|
-
* Explicit tooltip. Without it, `truncate.tooltip` supplies one from the text
|
|
33
|
-
* itself — and that one only appears when the text is genuinely clipped.
|
|
34
|
-
*/
|
|
35
31
|
tooltip?: TooltipProp;
|
|
36
32
|
inline?: boolean;
|
|
37
33
|
gradient?: GradientConfig;
|
|
@@ -2,24 +2,15 @@ import React from 'react';
|
|
|
2
2
|
export type AppBarSize = 'small' | 'medium' | 'large';
|
|
3
3
|
export type AppBarVariant = 'default' | 'transparent' | 'elevated';
|
|
4
4
|
export interface AppBarProps {
|
|
5
|
-
/** Leading slot — logo, product name, a back button. */
|
|
6
5
|
brand?: React.ReactNode;
|
|
7
|
-
/** Middle slot, takes the slack. Tabs, a search box, breadcrumbs. */
|
|
8
6
|
children?: React.ReactNode;
|
|
9
|
-
/** Trailing slot, pinned to the end. */
|
|
10
7
|
actions?: React.ReactNode;
|
|
11
8
|
size?: AppBarSize;
|
|
12
9
|
variant?: AppBarVariant;
|
|
13
|
-
/** Opt-in — see the note in the stylesheet on why it is not the default. */
|
|
14
10
|
sticky?: boolean;
|
|
15
11
|
className?: string;
|
|
16
12
|
style?: React.CSSProperties;
|
|
17
13
|
'aria-label'?: string;
|
|
18
14
|
}
|
|
19
|
-
/**
|
|
20
|
-
* The top bar: three slots, a height and a rule. It deliberately holds no navigation logic of
|
|
21
|
-
* its own — put `Tabs`, `Breadcrumbs` or a search trigger in the middle slot, which keeps one
|
|
22
|
-
* implementation of each of those rather than a bar-flavoured copy.
|
|
23
|
-
*/
|
|
24
15
|
declare const AppBar: React.FC<AppBarProps>;
|
|
25
16
|
export default AppBar;
|
|
@@ -1,29 +1,10 @@
|
|
|
1
1
|
export interface ArrowKeyFocusOptions {
|
|
2
|
-
/**
|
|
3
|
-
* Which arrows move. `both` (default) suits a button row: it wraps to a second line on a
|
|
4
|
-
* narrow screen, and there the user reaches for Up/Down.
|
|
5
|
-
*/
|
|
6
2
|
orientation?: 'horizontal' | 'vertical' | 'both';
|
|
7
|
-
/** Stepping past the last item lands on the first, and vice versa. Default true. */
|
|
8
3
|
wrap?: boolean;
|
|
9
|
-
/** Home / End jump to the first / last item. Default true. */
|
|
10
4
|
homeEnd?: boolean;
|
|
11
5
|
}
|
|
12
6
|
export interface ArrowKeyFocusHandlers {
|
|
13
|
-
/** Spread onto the element that CONTAINS the group (not onto each item). */
|
|
14
7
|
onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
15
8
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Arrow keys move focus between the focusable items inside one container — a dialog's
|
|
18
|
-
* button row, a toolbar, a segmented control. Tab and Shift+Tab are untouched: every item
|
|
19
|
-
* stays an ordinary tab stop, the arrows are an addition, not a roving-tabindex replacement.
|
|
20
|
-
*
|
|
21
|
-
* Reads the items from the DOM on each key, so nothing per item has to be registered and
|
|
22
|
-
* the group can be any mix of components (a client `SmartButton` next to a library `Button`).
|
|
23
|
-
* A disabled or hidden item is skipped; a text field inside the group keeps its arrows.
|
|
24
|
-
*
|
|
25
|
-
* const { onKeyDown } = useArrowKeyFocus();
|
|
26
|
-
* <div onKeyDown={onKeyDown}>{buttons}</div>
|
|
27
|
-
*/
|
|
28
9
|
export declare function useArrowKeyFocus({ orientation, wrap, homeEnd, }?: ArrowKeyFocusOptions): ArrowKeyFocusHandlers;
|
|
29
10
|
export default useArrowKeyFocus;
|
|
@@ -2,35 +2,21 @@ import React from 'react';
|
|
|
2
2
|
export type AvatarSize = 'xs' | 'small' | 'medium' | 'large';
|
|
3
3
|
export type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
4
4
|
export interface AvatarProps {
|
|
5
|
-
/** Image URL. Falls back to initials, then to `children`. */
|
|
6
5
|
src?: string;
|
|
7
|
-
/** Used for the image's alt text and to derive initials when there is no `src`. */
|
|
8
6
|
name?: string;
|
|
9
|
-
/** Override the derived initials. */
|
|
10
7
|
initials?: string;
|
|
11
8
|
size?: AvatarSize;
|
|
12
9
|
shape?: AvatarShape;
|
|
13
|
-
/**
|
|
14
|
-
* Give the avatar a stable tint derived from `name`. Two people rarely collide, and the
|
|
15
|
-
* same person is always the same colour across screens.
|
|
16
|
-
*/
|
|
17
10
|
tinted?: boolean;
|
|
18
11
|
children?: React.ReactNode;
|
|
19
12
|
className?: string;
|
|
20
13
|
style?: React.CSSProperties;
|
|
21
14
|
}
|
|
22
|
-
/**
|
|
23
|
-
* A person or entity marker: image, initials, or custom content.
|
|
24
|
-
*
|
|
25
|
-
* Hookless, so it renders identically on a server. Sizes track the field heights, which is
|
|
26
|
-
* what makes an avatar line up with an input or button placed beside it.
|
|
27
|
-
*/
|
|
28
15
|
declare const Avatar: React.FC<AvatarProps>;
|
|
29
16
|
export interface AvatarGroupProps {
|
|
30
17
|
children?: React.ReactNode;
|
|
31
18
|
className?: string;
|
|
32
19
|
style?: React.CSSProperties;
|
|
33
20
|
}
|
|
34
|
-
/** Overlapping stack. Each disc is ringed in the page ground so they stay distinct. */
|
|
35
21
|
export declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
36
22
|
export default Avatar;
|
|
@@ -4,25 +4,14 @@ export type BadgeVariant = 'tonal' | 'filled' | 'outlined';
|
|
|
4
4
|
export type BadgeSize = 'xs' | 'small' | 'medium';
|
|
5
5
|
export interface BadgeProps {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
/** Semantic colour. Default `'neutral'`. */
|
|
8
7
|
color?: BadgeColor;
|
|
9
|
-
/** Default `'tonal'` — tinted ground, coloured text. Readable in both themes. */
|
|
10
8
|
variant?: BadgeVariant;
|
|
11
9
|
size?: BadgeSize;
|
|
12
|
-
/** Fully rounded ends. */
|
|
13
10
|
pill?: boolean;
|
|
14
|
-
/** Leading status dot in the badge's own colour. */
|
|
15
11
|
dot?: boolean;
|
|
16
12
|
className?: string;
|
|
17
13
|
style?: React.CSSProperties;
|
|
18
14
|
title?: string;
|
|
19
15
|
}
|
|
20
|
-
/**
|
|
21
|
-
* A short status marker.
|
|
22
|
-
*
|
|
23
|
-
* Hookless — renders identically on a server, so it stays eligible for a server-safe entry
|
|
24
|
-
* point. Semantic colour comes from the shared tokens, so `error` here is the same red as an
|
|
25
|
-
* error toast or a field message.
|
|
26
|
-
*/
|
|
27
16
|
declare const Badge: React.FC<BadgeProps>;
|
|
28
17
|
export default Badge;
|
|
@@ -1,70 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { NavItem } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
3
|
export interface BreadcrumbsProps {
|
|
4
|
-
/**
|
|
5
|
-
* Root → current. Pass `findNavTrail(items, activeId)` from shared-logic and the crumbs are
|
|
6
|
-
* the same path the Sidebar highlights, by construction. The home crumb is NOT part of this.
|
|
7
|
-
*/
|
|
8
4
|
items: NavItem[];
|
|
9
|
-
/** Element for the linked crumbs — `Link`, `NavLink`, `a`. */
|
|
10
5
|
as?: React.ElementType;
|
|
11
6
|
onSelect?: (item: NavItem) => void;
|
|
12
|
-
/**
|
|
13
|
-
* The root crumb, rendered before the trail and never truncated. Defaults to a home icon
|
|
14
|
-
* linking to `/`; pass a `NavItem` to change the target, or `false` to drop it.
|
|
15
|
-
*
|
|
16
|
-
* It is on by DEFAULT because it does two jobs: a trail that starts mid-app has no visible
|
|
17
|
-
* way back to the top, and — since the switcher lives in the separator — without a crumb in
|
|
18
|
-
* front of it the FIRST real crumb has no separator and so no way to reach its siblings.
|
|
19
|
-
*/
|
|
20
7
|
home?: NavItem | false;
|
|
21
|
-
/**
|
|
22
|
-
* Render each crumb's `icon`. **Off by default.** The same `NavItem` tree feeds the Sidebar,
|
|
23
|
-
* where an icon per row earns its place, and the trail, where a row of little glyphs beside
|
|
24
|
-
* the home icon is noise — the labels already say it. Nothing to strip from the registry:
|
|
25
|
-
* the surface decides.
|
|
26
|
-
*/
|
|
27
8
|
showIcons?: boolean;
|
|
28
|
-
/** Default a chevron. */
|
|
29
9
|
separator?: React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Standalone row: own padding, min-height and bottom rule. Off by default, which is the
|
|
32
|
-
* inline form that sits in an `AppBar`. Turn it on where the trail is its own strip under
|
|
33
|
-
* the bar — the layout the client uses on mobile.
|
|
34
|
-
*/
|
|
35
10
|
bar?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Collapse the middle into a menu past this many crumbs. First and last are always kept.
|
|
38
|
-
* `0` disables. Default 4.
|
|
39
|
-
*/
|
|
40
11
|
maxItems?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Alternatives for a crumb. Return some and the separator BEFORE that crumb becomes a
|
|
43
|
-
* button opening them, so you can move sideways at any level instead of going back up and
|
|
44
|
-
* down again. With a `NavItem` tree it is the parent's `children`.
|
|
45
|
-
*
|
|
46
|
-
* `index` is the crumb's position in `items`; the home crumb is not counted, so index 0 is
|
|
47
|
-
* the first real crumb and its siblings are the top-level sections.
|
|
48
|
-
*/
|
|
49
12
|
siblingsOf?: (item: NavItem, index: number) => NavItem[];
|
|
50
13
|
className?: string;
|
|
51
14
|
style?: React.CSSProperties;
|
|
52
15
|
'aria-label'?: string;
|
|
53
16
|
}
|
|
54
|
-
/**
|
|
55
|
-
* The path to the current page, over the shared `NavItem` shape.
|
|
56
|
-
*
|
|
57
|
-
* Fed by `findNavTrail` — the same function the Sidebar uses for the active trail — so the two
|
|
58
|
-
* cannot disagree about where you are.
|
|
59
|
-
*
|
|
60
|
-
* **The separator IS the sibling switcher.** It sits BEFORE each crumb and, where that crumb
|
|
61
|
-
* has alternatives, is a button that opens them. One chevron per gap doing both jobs: a
|
|
62
|
-
* separate switcher control next to each label puts two arrows between every pair of crumbs,
|
|
63
|
-
* and a separator rendered AFTER each crumb leaves a dangling arrow past the last one.
|
|
64
|
-
*
|
|
65
|
-
* Long paths collapse in the MIDDLE, never the end: the first crumb (where am I in the app)
|
|
66
|
-
* and the last (where am I now) carry the meaning, and truncating the tail would hide the very
|
|
67
|
-
* crumb the user is looking at.
|
|
68
|
-
*/
|
|
69
17
|
declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
70
18
|
export default Breadcrumbs;
|
|
@@ -3,31 +3,15 @@ export type CardVariant = 'outlined' | 'elevated' | 'flat';
|
|
|
3
3
|
export type CardPadding = 'none' | 'small' | 'medium';
|
|
4
4
|
export interface CardProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
/** Default `'outlined'`. */
|
|
7
6
|
variant?: CardVariant;
|
|
8
|
-
/** Applied to the bands, not the root — see below. Default `'medium'`. */
|
|
9
7
|
padding?: CardPadding;
|
|
10
8
|
title?: React.ReactNode;
|
|
11
9
|
subtitle?: React.ReactNode;
|
|
12
|
-
/** Trailing header content — a Badge, a menu button. */
|
|
13
10
|
action?: React.ReactNode;
|
|
14
|
-
/** Footer band, right-aligned. */
|
|
15
11
|
footer?: React.ReactNode;
|
|
16
|
-
/** Makes the whole card a button: hover, focus ring, keyboard activation. */
|
|
17
12
|
onClick?: () => void;
|
|
18
13
|
className?: string;
|
|
19
14
|
style?: React.CSSProperties;
|
|
20
15
|
}
|
|
21
|
-
/**
|
|
22
|
-
* A surface with optional header and footer bands.
|
|
23
|
-
*
|
|
24
|
-
* Padding lives on the BANDS, not the root, so a full-bleed child — a table, an image, an
|
|
25
|
-
* embedded report — can sit flush between a padded header and footer without fighting the
|
|
26
|
-
* card's own inset. `padding="none"` gives a bare surface.
|
|
27
|
-
*
|
|
28
|
-
* Hookless, so it renders identically on a server. With `onClick` it becomes a real
|
|
29
|
-
* `<button>` rather than a div with a handler, which is what gets it keyboard activation and
|
|
30
|
-
* a focus ring for free.
|
|
31
|
-
*/
|
|
32
16
|
declare const Card: React.FC<CardProps>;
|
|
33
17
|
export default Card;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type KeyboardEvent, type MouseEvent, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
export interface AnchoredMenuItem {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface AnchoredMenuProps {
|
|
8
|
+
trigger: ReactElement<{
|
|
9
|
+
onClick?: (e: MouseEvent) => void;
|
|
10
|
+
onKeyDown?: (e: KeyboardEvent) => void;
|
|
11
|
+
}>;
|
|
12
|
+
items: AnchoredMenuItem[];
|
|
13
|
+
onSelect: (value: string) => void;
|
|
14
|
+
'aria-label': string;
|
|
15
|
+
align?: 'start' | 'end';
|
|
16
|
+
}
|
|
17
|
+
export declare function AnchoredMenu({ trigger, items, onSelect, align, 'aria-label': ariaLabel }: AnchoredMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartDatum, ChartFormatProps, ChartLinkComponent, ChartSelectProps, ChartSeries } from './types';
|
|
4
|
+
export interface BarListProps extends ChartFormatProps, ChartSelectProps<ChartDatum> {
|
|
5
|
+
data: ChartDatum[];
|
|
6
|
+
series: ChartSeries[];
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
linkAs?: ChartLinkComponent;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function BarList({ data, series, ariaLabel, title, linkAs: LinkAs, compact, onSelect, selected, ...format }: BarListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps } from './types';
|
|
4
|
+
export interface CalendarDay {
|
|
5
|
+
day: string;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
export interface CalendarHeatmapProps extends ChartFormatProps {
|
|
9
|
+
days: CalendarDay[];
|
|
10
|
+
ariaLabel: string;
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
onSelect?: (day: CalendarDay) => void;
|
|
13
|
+
selected?: string | null;
|
|
14
|
+
compact?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const weekdayNames: (locale?: string) => string[];
|
|
17
|
+
export declare function CalendarHeatmap({ days, ariaLabel, title, onSelect, selected, compact, ...format }: CalendarHeatmapProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type ChartData, type ChartKind } from './chartData';
|
|
4
|
+
import type { ChartFormatProps, ChartLinkComponent } from './types';
|
|
5
|
+
export interface ChartProps extends ChartFormatProps {
|
|
6
|
+
data: ChartData;
|
|
7
|
+
as?: ChartKind;
|
|
8
|
+
offer?: readonly ChartKind[];
|
|
9
|
+
ariaLabel: string;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
height?: number;
|
|
13
|
+
size?: number;
|
|
14
|
+
onSelect?: (key: string) => void;
|
|
15
|
+
selected?: string | null;
|
|
16
|
+
linkAs?: ChartLinkComponent;
|
|
17
|
+
legend?: boolean;
|
|
18
|
+
onChartChange?: (kind: ChartKind) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function Chart({ data, as, offer, ariaLabel, title, compact, height, size, onSelect, selected, linkAs, onChartChange, legend, ...format }: ChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './Charts.css';
|
|
2
|
+
import type { ChartDatum, ChartFormatProps, ChartSeries } from './types';
|
|
3
|
+
export interface ChartTableProps extends Omit<ChartFormatProps, 'labels'> {
|
|
4
|
+
data: ChartDatum[];
|
|
5
|
+
series: ChartSeries[];
|
|
6
|
+
firstHeader: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChartTable({ data, series, firstHeader, ...format }: ChartTableProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type KeyboardEvent, type PointerEvent, type ReactNode } from 'react';
|
|
2
|
+
import { type ChartRect } from './pointer';
|
|
3
|
+
type Steps = Partial<Record<'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown', number>>;
|
|
4
|
+
export interface ChartPointerOptions {
|
|
5
|
+
count: number;
|
|
6
|
+
pick: (x: number, y: number, box: DOMRect, plot: HTMLElement) => number | null;
|
|
7
|
+
anchor?: (index: number, plot: HTMLElement) => ChartRect | null;
|
|
8
|
+
keys?: Steps;
|
|
9
|
+
start?: number | null;
|
|
10
|
+
onPick?: (index: number) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface ChartPointer {
|
|
13
|
+
active: number | null;
|
|
14
|
+
plotProps: {
|
|
15
|
+
ref: (el: HTMLElement | null) => void;
|
|
16
|
+
tabIndex: 0;
|
|
17
|
+
'data-chart-plot': '';
|
|
18
|
+
onPointerDown: (e: PointerEvent) => void;
|
|
19
|
+
onPointerMove: (e: PointerEvent) => void;
|
|
20
|
+
onPointerUp: () => void;
|
|
21
|
+
onPointerLeave: (e: PointerEvent) => void;
|
|
22
|
+
onClick: (e: {
|
|
23
|
+
clientX: number;
|
|
24
|
+
clientY: number;
|
|
25
|
+
}) => void;
|
|
26
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
27
|
+
onBlur: () => void;
|
|
28
|
+
};
|
|
29
|
+
tooltip: (content: ReactNode) => ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export declare function useChartPointer(options: ChartPointerOptions): ChartPointer;
|
|
32
|
+
export declare function hitRect(plot: HTMLElement, index: number): ChartRect | null;
|
|
33
|
+
export declare function hitRects(plot: HTMLElement): Array<ChartRect | null>;
|
|
34
|
+
export declare function TooltipBody({ title, rows, note }: {
|
|
35
|
+
title?: ReactNode;
|
|
36
|
+
rows?: Array<{
|
|
37
|
+
key: string;
|
|
38
|
+
color?: string;
|
|
39
|
+
label: ReactNode;
|
|
40
|
+
value: ReactNode;
|
|
41
|
+
}>;
|
|
42
|
+
note?: ReactNode;
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ChartImageChart } from './chartImage';
|
|
2
|
+
import type { ChartFormatProps, ChartLinkComponent } from './types';
|
|
3
|
+
export interface ChartViewProps extends ChartFormatProps {
|
|
4
|
+
chart: ChartImageChart;
|
|
5
|
+
ariaLabel: string;
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
height?: number;
|
|
8
|
+
size?: number;
|
|
9
|
+
onSelect?: (key: string) => void;
|
|
10
|
+
selected?: string | null;
|
|
11
|
+
linkAs?: ChartLinkComponent;
|
|
12
|
+
legend?: boolean;
|
|
13
|
+
onLegendCut?: (hidden: number) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function ChartView({ chart, ariaLabel, compact, height, size, onSelect, selected, linkAs, onLegendCut, legend, ...format }: ChartViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type ColumnMode } from './geometry';
|
|
4
|
+
import type { ChartDatum, ChartFormatProps, ChartSelectProps, ChartSeries } from './types';
|
|
5
|
+
export interface ColumnChartProps extends ChartFormatProps, ChartSelectProps<ChartDatum> {
|
|
6
|
+
data: ChartDatum[];
|
|
7
|
+
series: ChartSeries[];
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
height?: number;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
mode?: ColumnMode;
|
|
13
|
+
legend?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function ColumnChart({ data, series, ariaLabel, title, height, compact, mode, legend, onSelect, selected, ...format }: ColumnChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartSelectProps, ChartSlice } from './types';
|
|
4
|
+
export interface DonutProps extends ChartFormatProps, ChartSelectProps<ChartSlice> {
|
|
5
|
+
slices: ChartSlice[];
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
size?: number;
|
|
9
|
+
compact?: boolean;
|
|
10
|
+
variant?: 'donut' | 'pie';
|
|
11
|
+
onLegendCut?: (hidden: number) => void;
|
|
12
|
+
legend?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function Donut({ slices, ariaLabel, title, size, compact, variant, onLegendCut, legend, onSelect, selected, ...format }: DonutProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartSelectProps, ChartSlice } from './types';
|
|
4
|
+
export interface FunnelProps extends ChartFormatProps, ChartSelectProps<ChartSlice> {
|
|
5
|
+
steps: ChartSlice[];
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function Funnel({ steps, ariaLabel, title, compact, onSelect, selected, ...format }: FunnelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type GaugeVariant } from './geometry';
|
|
4
|
+
import type { ChartFormatProps, ChartProgressColor } from './types';
|
|
5
|
+
export interface GaugeProps extends ChartFormatProps {
|
|
6
|
+
value: number;
|
|
7
|
+
total: number;
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
variant?: GaugeVariant;
|
|
11
|
+
color?: ChartProgressColor;
|
|
12
|
+
size?: number;
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function Gauge({ value, total, ariaLabel, label, variant, color, size, compact, ...format }: GaugeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './Charts.css';
|
|
2
|
+
import type { ChartFormatProps, ChartSeries } from './types';
|
|
3
|
+
export interface LegendProps extends Pick<ChartFormatProps, 'labels'> {
|
|
4
|
+
series: ChartSeries[];
|
|
5
|
+
}
|
|
6
|
+
export declare function Legend({ series, labels }: LegendProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartDatum, ChartFormatProps, ChartSelectProps, ChartSeries } from './types';
|
|
4
|
+
export interface LineChartProps extends ChartFormatProps, ChartSelectProps<ChartDatum> {
|
|
5
|
+
data: ChartDatum[];
|
|
6
|
+
series: ChartSeries[];
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
area?: boolean;
|
|
10
|
+
height?: number;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function LineChart({ data, series, ariaLabel, title, area, height, compact, onSelect, selected, ...format }: LineChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type TrendGood } from './geometry';
|
|
4
|
+
import type { ChartColor, ChartFormatProps } from './types';
|
|
5
|
+
export interface NumberTrendPoint {
|
|
6
|
+
key?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
value: number;
|
|
9
|
+
}
|
|
10
|
+
export interface NumberTrendProps extends ChartFormatProps {
|
|
11
|
+
value: number;
|
|
12
|
+
ariaLabel: string;
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
points?: NumberTrendPoint[];
|
|
15
|
+
current?: number;
|
|
16
|
+
previous?: number;
|
|
17
|
+
good?: TrendGood;
|
|
18
|
+
slot?: ChartColor;
|
|
19
|
+
compact?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function NumberTrend({ value, ariaLabel, title, points, current, previous, good, slot, compact, ...format }: NumberTrendProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartProgressColor } from './types';
|
|
4
|
+
export interface ProgressProps extends ChartFormatProps {
|
|
5
|
+
value: number;
|
|
6
|
+
total: number;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
color?: ChartProgressColor;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Progress({ value, total, ariaLabel, label, color, compact, ...format }: ProgressProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartSelectProps, ChartSlice } from './types';
|
|
4
|
+
export interface StackedBarProps extends ChartFormatProps, ChartSelectProps<ChartSlice> {
|
|
5
|
+
slices: ChartSlice[];
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
onLegendCut?: (hidden: number) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function StackedBar({ slices, ariaLabel, title, compact, onLegendCut, onSelect, selected, ...format }: StackedBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type TreemapNode } from './geometry';
|
|
4
|
+
import type { ChartFormatProps, ChartSelectProps } from './types';
|
|
5
|
+
export interface TreemapProps extends ChartFormatProps, ChartSelectProps<TreemapNode> {
|
|
6
|
+
nodes: TreemapNode[];
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
height?: number;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Treemap({ nodes, ariaLabel, title, height, compact, onSelect, selected, ...format }: TreemapProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ChartImageChart } from './chartImage';
|
|
2
|
+
import type { TrendGood } from './geometry';
|
|
3
|
+
import type { ChartLabels } from './labels';
|
|
4
|
+
import type { ChartColor, ChartProgressColor, ChartSeries } from './types';
|
|
5
|
+
export interface ChartValueCount {
|
|
6
|
+
key?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
fullLabel?: string;
|
|
9
|
+
count?: number;
|
|
10
|
+
counts?: Record<string, number>;
|
|
11
|
+
slot?: ChartColor;
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
href?: string;
|
|
14
|
+
children?: Array<{
|
|
15
|
+
key?: string;
|
|
16
|
+
label: string;
|
|
17
|
+
count: number;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export interface ChartPeriodCount {
|
|
21
|
+
key: string;
|
|
22
|
+
label: string;
|
|
23
|
+
fullLabel?: string;
|
|
24
|
+
count?: number;
|
|
25
|
+
counts?: Record<string, number>;
|
|
26
|
+
selectable?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface ChartStepCount {
|
|
29
|
+
key: string;
|
|
30
|
+
label: string;
|
|
31
|
+
count: number;
|
|
32
|
+
slot?: ChartColor;
|
|
33
|
+
selectable?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export type ChartData = {
|
|
36
|
+
type: 'values';
|
|
37
|
+
values: ChartValueCount[];
|
|
38
|
+
series?: ChartSeries[];
|
|
39
|
+
} | {
|
|
40
|
+
type: 'time';
|
|
41
|
+
period: 'day' | 'week' | 'month';
|
|
42
|
+
points: ChartPeriodCount[];
|
|
43
|
+
series?: ChartSeries[];
|
|
44
|
+
} | {
|
|
45
|
+
type: 'part';
|
|
46
|
+
label: string;
|
|
47
|
+
value: number;
|
|
48
|
+
total: number;
|
|
49
|
+
color?: ChartProgressColor;
|
|
50
|
+
} | {
|
|
51
|
+
type: 'steps';
|
|
52
|
+
steps: ChartStepCount[];
|
|
53
|
+
} | {
|
|
54
|
+
type: 'number';
|
|
55
|
+
value: number;
|
|
56
|
+
points?: Array<{
|
|
57
|
+
key?: string;
|
|
58
|
+
label: string;
|
|
59
|
+
value: number;
|
|
60
|
+
}>;
|
|
61
|
+
previous?: number;
|
|
62
|
+
good?: TrendGood;
|
|
63
|
+
};
|
|
64
|
+
export type ChartKind = 'donut' | 'pie' | 'bars' | 'stacked' | 'treemap' | 'columns' | 'line' | 'area' | 'grouped' | 'calendar' | 'bar' | 'gauge' | 'ring' | 'funnel' | 'number' | 'numberTrend';
|
|
65
|
+
export declare function chartsFor(data: ChartData): ChartKind[];
|
|
66
|
+
export declare function chartOfData(data: ChartData, as?: ChartKind, offer?: readonly ChartKind[]): ChartKind;
|
|
67
|
+
export type ChartDataWords = Pick<ChartLabels, 'count' | 'rest'>;
|
|
68
|
+
export declare const countSeries: (label: string) => ChartSeries[];
|
|
69
|
+
export declare function toChart(data: ChartData, as: ChartKind | undefined, words: ChartDataWords, offer?: readonly ChartKind[]): ChartImageChart;
|