@dcs-tech/ui 0.2.0 → 0.4.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 +32 -6
- package/dist/ChartImageMenu-HILSfn5A.js +1115 -0
- package/dist/ChartView-Cehrcr05.js +1703 -0
- package/dist/SummaryChart-y27q_BBN.js +29 -0
- package/dist/SummaryImage-DDNEEu_K.js +18 -0
- package/dist/SummarySeeAll-0dX-_LFe.js +101 -0
- package/dist/defaults-DL745PK1.js +708 -0
- package/dist/exportContext-CdpsOzE8.js +235 -0
- package/dist/exportEngine-DL-jEXFU.js +890 -0
- package/dist/geometry-CG2nOEnw.js +1796 -0
- package/dist/index.js +23238 -15993
- package/dist/scrollArea-CkPGDYH2.js +210 -0
- package/dist/style.css +1 -1
- package/dist/summaryChartData-Djo73zb8.js +81 -0
- package/dist/types/components/AppBar/AppBar.d.ts +16 -0
- package/dist/types/components/ArrowKeyFocus/useArrowKeyFocus.d.ts +10 -0
- package/dist/types/components/Avatar/Avatar.d.ts +22 -0
- package/dist/types/{shared-web-ui/src → components}/Badge/Badge.d.ts +0 -11
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/types/{shared-web-ui/src → components}/Button/Button.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/index.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +17 -0
- package/dist/types/components/Charts/AnchoredMenu.d.ts +17 -0
- package/dist/types/components/Charts/BarList.d.ts +12 -0
- package/dist/types/components/Charts/CalendarHeatmap.d.ts +17 -0
- package/dist/types/components/Charts/Chart.d.ts +20 -0
- package/dist/types/components/Charts/ChartIcon.d.ts +5 -0
- package/dist/types/components/Charts/ChartImageMenu.d.ts +4 -0
- package/dist/types/components/Charts/ChartTable.d.ts +8 -0
- package/dist/types/components/Charts/ChartTooltip.d.ts +58 -0
- package/dist/types/components/Charts/ChartView.d.ts +15 -0
- package/dist/types/components/Charts/ColumnChart.d.ts +15 -0
- package/dist/types/components/Charts/Donut.d.ts +14 -0
- package/dist/types/components/Charts/Funnel.d.ts +10 -0
- package/dist/types/components/Charts/Gauge.d.ts +15 -0
- package/dist/types/components/Charts/Legend.d.ts +6 -0
- package/dist/types/components/Charts/LineChart.d.ts +13 -0
- package/dist/types/components/Charts/NumberTrend.d.ts +21 -0
- package/dist/types/components/Charts/Progress.d.ts +12 -0
- package/dist/types/components/Charts/StackedBar.d.ts +11 -0
- package/dist/types/components/Charts/Treemap.d.ts +12 -0
- package/dist/types/components/Charts/chartData.d.ts +69 -0
- package/dist/types/components/Charts/chartImage.d.ts +121 -0
- package/dist/types/components/Charts/geometry.d.ts +180 -0
- package/dist/types/components/Charts/index.d.ts +32 -0
- package/dist/types/components/Charts/labels.d.ts +46 -0
- package/dist/types/components/Charts/menuPlacement.d.ts +25 -0
- package/dist/types/components/Charts/palette.d.ts +81 -0
- package/dist/types/components/Charts/parts.d.ts +25 -0
- package/dist/types/components/Charts/pointer.d.ts +41 -0
- package/dist/types/components/Charts/types.d.ts +51 -0
- package/dist/types/components/Charts/ui.d.ts +3 -0
- package/dist/types/components/Charts/useBoxSize.d.ts +6 -0
- package/dist/types/components/Charts/useLegendFit.d.ts +1 -0
- package/dist/types/components/Charts/useUiScale.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/ChipInput/ChipInput.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/ChipInput/index.d.ts +2 -2
- package/dist/types/{shared-web-ui/src → components}/ChipInput/useChipSuggestions.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/Collapsible.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleItem.d.ts +1 -3
- package/dist/types/{shared-web-ui/src → components}/Collapsible/index.d.ts +1 -1
- package/dist/types/components/ColorSchemeSelect/ColorSchemeSelect.d.ts +11 -0
- package/dist/types/components/CommandPalette/CommandPalette.d.ts +25 -0
- package/dist/types/components/DataTable/DataTable.d.ts +16 -0
- package/dist/types/components/DataTable/DataTable.storyData.d.ts +23 -0
- package/dist/types/components/DataTable/DisplayPopover.d.ts +22 -0
- package/dist/types/components/DataTable/HeaderMenu.d.ts +31 -0
- package/dist/types/components/DataTable/ManageModal.d.ts +31 -0
- package/dist/types/components/DataTable/PressButton.d.ts +2 -0
- package/dist/types/components/DataTable/SingleRowView.d.ts +9 -0
- package/dist/types/components/DataTable/SortModal.d.ts +16 -0
- package/dist/types/components/DataTable/StatusRow.d.ts +49 -0
- package/dist/types/components/DataTable/TableColumnModal.d.ts +18 -0
- package/dist/types/components/DataTable/TableControls.d.ts +48 -0
- package/dist/types/components/DataTable/TablePagination.d.ts +38 -0
- package/dist/types/components/DataTable/TableScrollStrip.d.ts +2 -0
- package/dist/types/components/DataTable/TableToolbar.d.ts +69 -0
- package/dist/types/components/DataTable/TableView.d.ts +61 -0
- package/dist/types/components/DataTable/bulk/BulkConfirmDialog.d.ts +13 -0
- package/dist/types/components/DataTable/bulk/TableToast.d.ts +13 -0
- package/dist/types/components/DataTable/bulk/bulkActions.d.ts +23 -0
- package/dist/types/components/DataTable/cards/CardFieldsEditor.d.ts +16 -0
- package/dist/types/components/DataTable/cards/CardView.d.ts +50 -0
- package/dist/types/components/DataTable/cards/cardFields.d.ts +32 -0
- package/dist/types/components/DataTable/cards/rowParts.d.ts +38 -0
- package/dist/types/components/DataTable/data/useServerData.d.ts +28 -0
- package/dist/types/components/DataTable/defaults.d.ts +18 -0
- package/dist/types/components/DataTable/detail/BuiltInDetail.d.ts +10 -0
- package/dist/types/components/DataTable/detail/DetailHost.d.ts +13 -0
- package/dist/types/components/DataTable/export/ExportPopover.d.ts +18 -0
- package/dist/types/components/DataTable/export/ExportPreviewModal.d.ts +11 -0
- package/dist/types/components/DataTable/export/ExportSettingsModal.d.ts +31 -0
- package/dist/types/components/DataTable/export/ExportTemplateCards.d.ts +19 -0
- package/dist/types/components/DataTable/export/exportContext.d.ts +10 -0
- package/dist/types/components/DataTable/export/exportEngine.d.ts +77 -0
- package/dist/types/components/DataTable/export/exportRows.d.ts +10 -0
- package/dist/types/components/DataTable/export/templateDisplay.d.ts +7 -0
- package/dist/types/components/DataTable/export/templateOptions.d.ts +6 -0
- package/dist/types/components/DataTable/export/useTableExport.d.ts +53 -0
- package/dist/types/components/DataTable/filters/ColumnFilterPopover.d.ts +14 -0
- package/dist/types/components/DataTable/filters/FilterChips.d.ts +9 -0
- package/dist/types/components/DataTable/filters/FilterConditionRow.d.ts +11 -0
- package/dist/types/components/DataTable/filters/FilterGroup.d.ts +12 -0
- package/dist/types/components/DataTable/filters/FilterModal.d.ts +14 -0
- package/dist/types/components/DataTable/filters/FilterRow.d.ts +20 -0
- package/dist/types/components/DataTable/filters/columnFilterModel.d.ts +29 -0
- package/dist/types/components/DataTable/filters/filterEngine.d.ts +16 -0
- package/dist/types/components/DataTable/filters/filterRowModel.d.ts +28 -0
- package/dist/types/components/DataTable/filters/quickFilterMatch.d.ts +3 -0
- package/dist/types/components/DataTable/grouping/GroupUi.d.ts +36 -0
- package/dist/types/components/DataTable/grouping/groupModel.d.ts +82 -0
- package/dist/types/components/DataTable/grouping/useGrouping.d.ts +39 -0
- package/dist/types/components/DataTable/host.d.ts +14 -0
- package/dist/types/components/DataTable/index.d.ts +18 -0
- package/dist/types/components/DataTable/keyboard/ShortcutsDialog.d.ts +14 -0
- package/dist/types/components/DataTable/keyboard/shortcuts.d.ts +22 -0
- package/dist/types/components/DataTable/keyboard/useGridKeyboard.d.ts +48 -0
- package/dist/types/components/DataTable/labels.d.ts +618 -0
- package/dist/types/components/DataTable/layout/LayoutSwitcher.d.ts +9 -0
- package/dist/types/components/DataTable/layout/layouts.d.ts +20 -0
- package/dist/types/components/DataTable/layout/scrollArea.d.ts +2 -0
- package/dist/types/components/DataTable/layout/useFillHeight.d.ts +11 -0
- package/dist/types/components/DataTable/menu/RowMenu.d.ts +56 -0
- package/dist/types/components/DataTable/menu/buildRowMenu.d.ts +35 -0
- package/dist/types/components/DataTable/menu/clipboard.d.ts +4 -0
- package/dist/types/components/DataTable/menu/layers.d.ts +1 -0
- package/dist/types/components/DataTable/menu/valueFilter.d.ts +15 -0
- package/dist/types/components/DataTable/motion/useRowMotion.d.ts +32 -0
- package/dist/types/components/DataTable/persistence/adapters.d.ts +6 -0
- package/dist/types/components/DataTable/persistence/reconcile.d.ts +64 -0
- package/dist/types/components/DataTable/persistence/useColumnPersistence.d.ts +51 -0
- package/dist/types/components/DataTable/persistence/useManagePrefs.d.ts +23 -0
- package/dist/types/components/DataTable/persistence/useOrphanPrefs.d.ts +3 -0
- package/dist/types/components/DataTable/pinning.d.ts +10 -0
- package/dist/types/components/DataTable/rows/PressRow.d.ts +7 -0
- package/dist/types/components/DataTable/rows/RowActions.d.ts +15 -0
- package/dist/types/components/DataTable/rows/rowPress.d.ts +35 -0
- package/dist/types/components/DataTable/sharing/Sharing.d.ts +21 -0
- package/dist/types/components/DataTable/split/SplitView.d.ts +29 -0
- package/dist/types/components/DataTable/summary/ManageSummaryCards.d.ts +18 -0
- package/dist/types/components/DataTable/summary/SummaryChart.d.ts +11 -0
- package/dist/types/components/DataTable/summary/SummaryControls.d.ts +33 -0
- package/dist/types/components/DataTable/summary/SummaryImage.d.ts +12 -0
- package/dist/types/components/DataTable/summary/SummarySeeAll.d.ts +17 -0
- package/dist/types/components/DataTable/summary/TableSummary.d.ts +34 -0
- package/dist/types/components/DataTable/summary/summaryCatalogue.d.ts +64 -0
- package/dist/types/components/DataTable/summary/summaryChartData.d.ts +9 -0
- package/dist/types/components/DataTable/summary/summaryModel.d.ts +152 -0
- package/dist/types/components/DataTable/summary/summaryWidth.d.ts +22 -0
- package/dist/types/components/DataTable/summary/useTableSummary.d.ts +18 -0
- package/dist/types/components/DataTable/types.d.ts +1145 -0
- package/dist/types/components/DataTable/ui-local/AutoHeight.d.ts +9 -0
- package/dist/types/components/DataTable/ui-local/DateRangePicker.d.ts +16 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/DragAndDropList.d.ts +4 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/index.d.ts +3 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/types.d.ts +70 -0
- package/dist/types/components/DataTable/ui-local/ReactModal.d.ts +20 -0
- package/dist/types/components/DataTable/ui-local/scrollLock.d.ts +1 -0
- package/dist/types/components/DataTable/ui.d.ts +13 -0
- package/dist/types/components/DataTable/useDataChangeTracker.d.ts +11 -0
- package/dist/types/components/DataTable/useTable.d.ts +12 -0
- package/dist/types/components/DataTable/vendor/columnOrder.d.ts +1 -0
- package/dist/types/components/DataTable/vendor/diff.d.ts +5 -0
- package/dist/types/components/DataTable/vendor/fileActions.d.ts +19 -0
- package/dist/types/components/DataTable/vendor/index.d.ts +3 -0
- package/dist/types/components/DataTable/virtual/useVirtualLines.d.ts +27 -0
- package/dist/types/components/DatePicker/Calendar.d.ts +14 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/types/components/DatePicker/TimeField.d.ts +16 -0
- package/dist/types/components/DatePicker/index.d.ts +4 -0
- package/dist/types/components/DatePicker/useOneMonthPane.d.ts +2 -0
- package/dist/types/components/Dialog/Dialog.d.ts +56 -0
- package/dist/types/components/Dialog/DialogHost.d.ts +44 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +49 -0
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTable.d.ts +1 -6
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableActions.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableCell.d.ts +2 -20
- package/dist/types/components/EditableTable/EditableTableRow.d.ts +14 -0
- package/dist/types/components/EditableTable/EditableTableSummary.d.ts +11 -0
- package/dist/types/{shared-web-ui/src → components}/EditableTable/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/EditableTable/useEditableTable.d.ts +3 -3
- package/dist/types/components/EditableTable/useRowAnimation.d.ts +12 -0
- package/dist/types/components/FieldContext/FieldContext.d.ts +3 -0
- package/dist/types/components/FieldContext/FieldProvider.d.ts +4 -0
- package/dist/types/{shared-web-ui/src → components}/FieldContext/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useField.d.ts +2 -29
- package/dist/types/components/FieldContext/useFieldSurface.d.ts +34 -0
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useFormKeyboard.d.ts +1 -4
- package/dist/types/{shared-web-ui/src → components}/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldWrapper/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/Field.d.ts +1 -1
- package/dist/types/components/Fields/FieldButton.d.ts +17 -0
- package/dist/types/{shared-web-ui/src → components}/Fields/Fields.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldBlur.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldChange.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldCondition.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldDisabled.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldRender.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldSelect.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValidation.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValue.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/index.d.ts +1 -1
- package/dist/types/components/Floating/index.d.ts +3 -0
- package/dist/types/components/Floating/layers.d.ts +4 -0
- package/dist/types/components/Floating/scrollLock.d.ts +2 -0
- package/dist/types/components/Floating/useFloatingLayer.d.ts +20 -0
- package/dist/types/{shared-web-ui/src → components}/Form/Form.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Form/index.d.ts +1 -1
- package/dist/types/components/Image/ImagePicker.d.ts +23 -0
- package/dist/types/components/Image/ImageStrip.d.ts +13 -0
- package/dist/types/components/Image/ImageViewer.d.ts +16 -0
- package/dist/types/components/Image/index.d.ts +8 -0
- package/dist/types/components/Image/prepareImage.d.ts +19 -0
- package/dist/types/{shared-web-ui/src → components}/Input/Input.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Input/index.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +25 -0
- package/dist/types/components/Popover/floatingPosition.d.ts +17 -0
- package/dist/types/components/Press/index.d.ts +2 -0
- package/dist/types/components/Press/usePress.d.ts +9 -0
- package/dist/types/{shared-web-ui/src → components}/Radio/Radio.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/index.d.ts +1 -1
- package/dist/types/components/Scroll/ScrollRule.d.ts +2 -0
- package/dist/types/components/Scroll/ScrollStrip.d.ts +9 -0
- package/dist/types/components/Scroll/index.d.ts +4 -0
- package/dist/types/components/Scroll/labels.d.ts +5 -0
- package/dist/types/components/Scroll/scrollActivity.d.ts +14 -0
- package/dist/types/components/Scroll/ui.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/Select/Select.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Select/index.d.ts +1 -1
- package/dist/types/components/Select/useSelect.d.ts +2 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +24 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/types/components/Stepper/Stepper.d.ts +17 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/{shared-web-ui/src → components}/Suggest/Suggest.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/SuggestionList.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/index.d.ts +2 -2
- package/dist/types/{shared-web-ui/src → components}/Suggest/searchFilters.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/useSuggest.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Switch/Switch.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Switch/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +36 -0
- package/dist/types/components/Toast/ToastHost.d.ts +8 -0
- package/dist/types/components/Toast/ToastItem.d.ts +10 -0
- package/dist/types/{shared-web-ui/src → components}/Toast/toast.types.d.ts +0 -13
- package/dist/types/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/types/components/Tooltip/useTooltip.d.ts +15 -0
- package/dist/types/{shared-web-ui/src → components}/Typography/Typography.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Typography/index.d.ts +1 -1
- package/dist/types/components/UIProvider/UIPortalContext.d.ts +2 -0
- package/dist/types/components/UIProvider/UIProvider.d.ts +13 -0
- package/dist/types/components/UIProvider/UIThemeContext.d.ts +9 -0
- package/dist/types/core/hooks/index.d.ts +3 -0
- package/dist/types/core/hooks/useDebounced.d.ts +7 -0
- package/dist/types/core/hooks/usePresence.d.ts +5 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/button.logic.d.ts +1 -1
- package/dist/types/core/logic/cellRules.logic.d.ts +32 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/chipinput.logic.d.ts +1 -13
- package/dist/types/{shared-logic/src/ui → core/logic}/collapsible.logic.d.ts +1 -8
- package/dist/types/{shared-logic/src/ui → core/logic}/colorScheme.d.ts +0 -14
- package/dist/types/core/logic/columnOrder.logic.d.ts +1 -0
- package/dist/types/core/logic/datePicker.logic.d.ts +136 -0
- package/dist/types/core/logic/displayOrder.logic.d.ts +4 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/editableTable.logic.d.ts +5 -28
- package/dist/types/core/logic/fieldControl.logic.d.ts +12 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/fieldWrapper.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/fields.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/form.logic.d.ts +0 -8
- package/dist/types/core/logic/index.d.ts +33 -0
- package/dist/types/core/logic/keyboard.logic.d.ts +12 -0
- package/dist/types/core/logic/motion.logic.d.ts +1 -0
- package/dist/types/core/logic/navigation.logic.d.ts +6 -0
- package/dist/types/core/logic/popover.logic.d.ts +59 -0
- package/dist/types/core/logic/popupList.logic.d.ts +19 -0
- package/dist/types/core/logic/press.logic.d.ts +14 -0
- package/dist/types/core/logic/quickAddGrid.logic.d.ts +183 -0
- package/dist/types/core/logic/select.logic.d.ts +17 -0
- package/dist/types/core/logic/stepper.logic.d.ts +6 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/suggest.logic.d.ts +1 -1
- package/dist/types/core/logic/tableLayout.logic.d.ts +13 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/tableSummary.logic.d.ts +1 -20
- package/dist/types/core/logic/timeField.logic.d.ts +26 -0
- package/dist/types/core/logic/tooltip.logic.d.ts +11 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/typography.logic.d.ts +1 -1
- package/dist/types/core/logic/uiScale.logic.d.ts +1 -0
- package/dist/types/core/logic/useMergeRefs.d.ts +2 -0
- package/dist/types/{shared-types/src/ui → core/types}/button.types.d.ts +1 -11
- package/dist/types/{shared-types/src/ui → core/types}/checkbox.types.d.ts +0 -4
- package/dist/types/{shared-types/src/ui → core/types}/chipinput.types.d.ts +0 -10
- package/dist/types/{shared-types/src/ui → core/types}/collapsible.types.d.ts +0 -18
- package/dist/types/core/types/common.types.d.ts +3 -0
- package/dist/types/core/types/control.types.d.ts +36 -0
- package/dist/types/core/types/datePicker.types.d.ts +46 -0
- package/dist/types/{shared-types/src/ui → core/types}/editableTable.types.d.ts +0 -79
- package/dist/types/core/types/field.types.d.ts +80 -0
- package/dist/types/{shared-types/src/ui → core/types}/fieldWrapper.types.d.ts +0 -10
- package/dist/types/{shared-types/src/ui → core/types}/fields.types.d.ts +0 -45
- package/dist/types/{shared-types/src/ui → core/types}/form.types.d.ts +0 -30
- package/dist/types/core/types/index.d.ts +22 -0
- package/dist/types/{shared-types/src/ui → core/types}/input.types.d.ts +0 -4
- package/dist/types/core/types/keyboard.types.d.ts +48 -0
- package/dist/types/core/types/navigation.types.d.ts +13 -0
- package/dist/types/{shared-types/src/ui → core/types}/radio.types.d.ts +0 -6
- package/dist/types/{shared-types/src/ui → core/types}/select.types.d.ts +0 -41
- package/dist/types/{shared-types/src/ui → core/types}/suggest.types.d.ts +1 -10
- package/dist/types/{shared-types/src/ui → core/types}/switch.types.d.ts +0 -4
- package/dist/types/{shared-types/src/ui → core/types}/table.types.d.ts +0 -59
- package/dist/types/core/types/tooltip.types.d.ts +43 -0
- package/dist/types/{shared-types/src/ui → core/types}/typography.types.d.ts +0 -4
- package/dist/types/index.d.ts +86 -0
- package/package.json +27 -26
- package/dist/types/published/dcs-ui/src/index.d.ts +0 -32
- package/dist/types/published/dcs-ui/src/publicLogic.d.ts +0 -35
- package/dist/types/published/dcs-ui/src/publicTypes.d.ts +0 -14
- package/dist/types/shared-logic/src/report/aggregate.d.ts +0 -29
- package/dist/types/shared-logic/src/report/canvas.d.ts +0 -106
- package/dist/types/shared-logic/src/report/conditions.d.ts +0 -18
- package/dist/types/shared-logic/src/report/constants.d.ts +0 -46
- package/dist/types/shared-logic/src/report/dataset.d.ts +0 -49
- package/dist/types/shared-logic/src/report/edit.d.ts +0 -188
- package/dist/types/shared-logic/src/report/fields.d.ts +0 -80
- package/dist/types/shared-logic/src/report/format.d.ts +0 -27
- package/dist/types/shared-logic/src/report/fromColumns.d.ts +0 -61
- package/dist/types/shared-logic/src/report/index.d.ts +0 -19
- package/dist/types/shared-logic/src/report/layout.d.ts +0 -85
- package/dist/types/shared-logic/src/report/metrics.d.ts +0 -62
- package/dist/types/shared-logic/src/report/migrate.d.ts +0 -77
- package/dist/types/shared-logic/src/report/paginate.d.ts +0 -40
- package/dist/types/shared-logic/src/report/renderers/html.d.ts +0 -29
- package/dist/types/shared-logic/src/report/renderers/pdfmake.d.ts +0 -45
- package/dist/types/shared-logic/src/report/resolve.d.ts +0 -40
- package/dist/types/shared-logic/src/report/scope.d.ts +0 -52
- package/dist/types/shared-logic/src/report/storage.d.ts +0 -112
- package/dist/types/shared-logic/src/report/validate.d.ts +0 -28
- package/dist/types/shared-logic/src/ui/cellRules.logic.d.ts +0 -67
- package/dist/types/shared-logic/src/ui/columnOrder.logic.d.ts +0 -12
- package/dist/types/shared-logic/src/ui/fieldControl.logic.d.ts +0 -24
- package/dist/types/shared-logic/src/ui/index.d.ts +0 -55
- package/dist/types/shared-logic/src/ui/keyboard.logic.d.ts +0 -72
- package/dist/types/shared-logic/src/ui/navigation.logic.d.ts +0 -30
- package/dist/types/shared-logic/src/ui/popover.logic.d.ts +0 -57
- package/dist/types/shared-logic/src/ui/popupList.logic.d.ts +0 -54
- package/dist/types/shared-logic/src/ui/select.logic.d.ts +0 -31
- package/dist/types/shared-logic/src/ui/tableLayout.logic.d.ts +0 -47
- package/dist/types/shared-logic/src/ui/tooltip.logic.d.ts +0 -35
- package/dist/types/shared-logic/src/ui/useMergeRefs.d.ts +0 -10
- package/dist/types/shared-types/src/report/bands.d.ts +0 -32
- package/dist/types/shared-types/src/report/blocks.d.ts +0 -181
- package/dist/types/shared-types/src/report/conditions.d.ts +0 -24
- package/dist/types/shared-types/src/report/dataset.d.ts +0 -106
- package/dist/types/shared-types/src/report/document.d.ts +0 -201
- package/dist/types/shared-types/src/report/index.d.ts +0 -9
- package/dist/types/shared-types/src/report/primitives.d.ts +0 -109
- package/dist/types/shared-types/src/report/registry.d.ts +0 -85
- package/dist/types/shared-types/src/report/storage.d.ts +0 -41
- package/dist/types/shared-types/src/report/template.d.ts +0 -92
- package/dist/types/shared-types/src/ui/common.types.d.ts +0 -14
- package/dist/types/shared-types/src/ui/control.types.d.ts +0 -133
- package/dist/types/shared-types/src/ui/field.types.d.ts +0 -200
- package/dist/types/shared-types/src/ui/index.d.ts +0 -37
- package/dist/types/shared-types/src/ui/keyboard.types.d.ts +0 -155
- package/dist/types/shared-types/src/ui/navigation.types.d.ts +0 -35
- package/dist/types/shared-types/src/ui/tooltip.types.d.ts +0 -68
- package/dist/types/shared-web-ui/src/AppBar/AppBar.d.ts +0 -25
- package/dist/types/shared-web-ui/src/ArrowKeyFocus/useArrowKeyFocus.d.ts +0 -29
- package/dist/types/shared-web-ui/src/Avatar/Avatar.d.ts +0 -36
- package/dist/types/shared-web-ui/src/Breadcrumbs/Breadcrumbs.d.ts +0 -70
- package/dist/types/shared-web-ui/src/Card/Card.d.ts +0 -33
- package/dist/types/shared-web-ui/src/ColorSchemeSelect/ColorSchemeSelect.d.ts +0 -26
- package/dist/types/shared-web-ui/src/CommandPalette/CommandPalette.d.ts +0 -52
- package/dist/types/shared-web-ui/src/Dialog/Dialog.d.ts +0 -101
- package/dist/types/shared-web-ui/src/Dialog/DialogHost.d.ts +0 -80
- package/dist/types/shared-web-ui/src/DropdownMenu/DropdownMenu.d.ts +0 -49
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableRow.d.ts +0 -25
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableSummary.d.ts +0 -22
- package/dist/types/shared-web-ui/src/EditableTable/useRowAnimation.d.ts +0 -44
- package/dist/types/shared-web-ui/src/FieldContext/FieldContext.d.ts +0 -18
- package/dist/types/shared-web-ui/src/FieldContext/FieldProvider.d.ts +0 -13
- package/dist/types/shared-web-ui/src/FieldContext/useFieldSurface.d.ts +0 -57
- package/dist/types/shared-web-ui/src/Fields/FieldButton.d.ts +0 -32
- package/dist/types/shared-web-ui/src/Popover/Popover.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportDesigner/AlignedRowsEditor.d.ts +0 -4
- package/dist/types/shared-web-ui/src/ReportDesigner/BandList.d.ts +0 -26
- package/dist/types/shared-web-ui/src/ReportDesigner/BlockEditor.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportDesigner/ColumnEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/ConditionEditor.d.ts +0 -7
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldPicker.d.ts +0 -25
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldSelect.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/FormatEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/Inspector.d.ts +0 -14
- package/dist/types/shared-web-ui/src/ReportDesigner/OptionsEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/ReportDesigner.d.ts +0 -34
- package/dist/types/shared-web-ui/src/ReportDesigner/StyleEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/TableEditor.d.ts +0 -10
- package/dist/types/shared-web-ui/src/ReportDesigner/WatermarkEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/chipSources.d.ts +0 -6
- package/dist/types/shared-web-ui/src/ReportDesigner/icons.d.ts +0 -21
- package/dist/types/shared-web-ui/src/ReportDesigner/index.d.ts +0 -16
- package/dist/types/shared-web-ui/src/ReportDesigner/labels.d.ts +0 -34
- package/dist/types/shared-web-ui/src/ReportDesigner/parts.d.ts +0 -63
- package/dist/types/shared-web-ui/src/ReportDesigner/types.d.ts +0 -106
- package/dist/types/shared-web-ui/src/ReportPreview/ReportPreview.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportPreview/index.d.ts +0 -1
- package/dist/types/shared-web-ui/src/Select/useSelect.d.ts +0 -2
- package/dist/types/shared-web-ui/src/Sidebar/Sidebar.d.ts +0 -55
- package/dist/types/shared-web-ui/src/Skeleton/Skeleton.d.ts +0 -33
- package/dist/types/shared-web-ui/src/Tabs/Tabs.d.ts +0 -79
- package/dist/types/shared-web-ui/src/Toast/ToastHost.d.ts +0 -22
- package/dist/types/shared-web-ui/src/Toast/ToastItem.d.ts +0 -19
- package/dist/types/shared-web-ui/src/Tooltip/Tooltip.d.ts +0 -25
- package/dist/types/shared-web-ui/src/Tooltip/useTooltip.d.ts +0 -24
- package/dist/types/shared-web-ui/src/UIProvider/UIPortalContext.d.ts +0 -16
- package/dist/types/shared-web-ui/src/UIProvider/UIProvider.d.ts +0 -54
- package/dist/types/shared-web-ui/src/UIProvider/UIThemeContext.d.ts +0 -17
- package/dist/types/shared-web-ui/src/index.d.ts +0 -78
- /package/dist/types/{shared-web-ui/src → components}/AppBar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Avatar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Badge/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Card/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/ColorSchemeSelect/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/CommandPalette/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Dialog/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DropdownMenu/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Popover/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Sidebar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Skeleton/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Suggest/fuseSearch.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Tabs/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Toast/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Tooltip/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/UIProvider/index.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/checkbox.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/input.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/radio.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/switch.logic.d.ts +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { type ChartLabels } from './labels';
|
|
2
|
+
import { type GaugeVariant, type TreemapNode, type ColumnMode, type TrendGood } from './geometry';
|
|
3
|
+
import type { ChartDatum, ChartProgressColor, ChartSeries, ChartSlice, ChartColor } from './types';
|
|
4
|
+
import type { NumberTrendPoint } from './NumberTrend';
|
|
5
|
+
import type { CalendarDay } from './CalendarHeatmap';
|
|
6
|
+
export interface ChartImageProgressRow {
|
|
7
|
+
label: string;
|
|
8
|
+
value: number;
|
|
9
|
+
total: number;
|
|
10
|
+
color?: ChartProgressColor;
|
|
11
|
+
}
|
|
12
|
+
export type ChartImageChart = {
|
|
13
|
+
kind: 'donut';
|
|
14
|
+
slices: ChartSlice[];
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'pie';
|
|
17
|
+
slices: ChartSlice[];
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'stacked';
|
|
20
|
+
slices: ChartSlice[];
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'bars';
|
|
23
|
+
data: ChartDatum[];
|
|
24
|
+
series: ChartSeries[];
|
|
25
|
+
} | {
|
|
26
|
+
kind: 'columns';
|
|
27
|
+
data: ChartDatum[];
|
|
28
|
+
series: ChartSeries[];
|
|
29
|
+
mode?: ColumnMode;
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'line';
|
|
32
|
+
data: ChartDatum[];
|
|
33
|
+
series: ChartSeries[];
|
|
34
|
+
area?: boolean;
|
|
35
|
+
} | {
|
|
36
|
+
kind: 'progress';
|
|
37
|
+
rows: ChartImageProgressRow[];
|
|
38
|
+
} | {
|
|
39
|
+
kind: 'treemap';
|
|
40
|
+
nodes: TreemapNode[];
|
|
41
|
+
} | {
|
|
42
|
+
kind: 'calendar';
|
|
43
|
+
days: CalendarDay[];
|
|
44
|
+
} | {
|
|
45
|
+
kind: 'funnel';
|
|
46
|
+
steps: ChartSlice[];
|
|
47
|
+
} | {
|
|
48
|
+
kind: 'gauge';
|
|
49
|
+
rows: ChartImageProgressRow[];
|
|
50
|
+
variant?: GaugeVariant;
|
|
51
|
+
} | {
|
|
52
|
+
kind: 'number';
|
|
53
|
+
value: number;
|
|
54
|
+
points?: NumberTrendPoint[];
|
|
55
|
+
current?: number;
|
|
56
|
+
previous?: number;
|
|
57
|
+
good?: TrendGood;
|
|
58
|
+
slot?: ChartColor;
|
|
59
|
+
};
|
|
60
|
+
export interface ChartImage {
|
|
61
|
+
report?: string;
|
|
62
|
+
title: string;
|
|
63
|
+
context?: string;
|
|
64
|
+
branding?: string;
|
|
65
|
+
chart: ChartImageChart;
|
|
66
|
+
at?: Date;
|
|
67
|
+
locale?: string;
|
|
68
|
+
format?: (n: number) => string;
|
|
69
|
+
labels?: Partial<ChartLabels>;
|
|
70
|
+
}
|
|
71
|
+
export declare const CHART_IMAGE_PALETTE: {
|
|
72
|
+
background: string;
|
|
73
|
+
text: string;
|
|
74
|
+
muted: string;
|
|
75
|
+
faint: string;
|
|
76
|
+
line: string;
|
|
77
|
+
track: string;
|
|
78
|
+
slots: {
|
|
79
|
+
1: string;
|
|
80
|
+
2: string;
|
|
81
|
+
3: string;
|
|
82
|
+
4: string;
|
|
83
|
+
5: string;
|
|
84
|
+
6: string;
|
|
85
|
+
7: string;
|
|
86
|
+
8: string;
|
|
87
|
+
9: string;
|
|
88
|
+
10: string;
|
|
89
|
+
rest: string;
|
|
90
|
+
positive: string;
|
|
91
|
+
warning: string;
|
|
92
|
+
negative: string;
|
|
93
|
+
info: string;
|
|
94
|
+
neutral: string;
|
|
95
|
+
};
|
|
96
|
+
heat: readonly ["#e8eff9", "#bcd3f2", "#7faee9", "#4081d2", "#155aa7"];
|
|
97
|
+
};
|
|
98
|
+
export declare const CHART_IMAGE_WIDTH = 720;
|
|
99
|
+
export declare const CHART_IMAGE_PIXEL_RATIO = 2;
|
|
100
|
+
export declare const chartImageFonts: (family: string) => {
|
|
101
|
+
title: string;
|
|
102
|
+
report: string;
|
|
103
|
+
big: string;
|
|
104
|
+
bold: string;
|
|
105
|
+
text: string;
|
|
106
|
+
small: string;
|
|
107
|
+
};
|
|
108
|
+
export type ChartImageContext = Pick<CanvasRenderingContext2D, 'font' | 'fillStyle' | 'strokeStyle' | 'lineWidth' | 'textAlign' | 'textBaseline' | 'globalAlpha' | 'lineCap' | 'measureText' | 'fillText' | 'fillRect' | 'beginPath' | 'arc' | 'stroke' | 'moveTo' | 'lineTo' | 'setLineDash' | 'setTransform' | 'fill' | 'closePath' | 'lineJoin'>;
|
|
109
|
+
export interface ChartImageCanvas {
|
|
110
|
+
width: number;
|
|
111
|
+
height: number;
|
|
112
|
+
getContext(kind: '2d'): ChartImageContext | null;
|
|
113
|
+
}
|
|
114
|
+
export declare function paintChartImage(canvas: ChartImageCanvas, image: ChartImage, opts: {
|
|
115
|
+
fontFamily: string;
|
|
116
|
+
pixelRatio?: number;
|
|
117
|
+
}): void;
|
|
118
|
+
export declare function chartImageBlob(image: ChartImage, opts?: {
|
|
119
|
+
fontFamily?: string;
|
|
120
|
+
}): Promise<Blob>;
|
|
121
|
+
export declare function chartImageFileName(title: string, at?: Date, report?: string): string;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { ChartColor, ChartDatum, ChartSeries, ChartSlice } from './types';
|
|
2
|
+
export declare const datumKey: (d: ChartDatum) => string;
|
|
3
|
+
export declare const datumTotal: (d: ChartDatum, series: ChartSeries[]) => number;
|
|
4
|
+
export declare const DONUT_RADIUS = 40;
|
|
5
|
+
export declare const DONUT_CIRCUMFERENCE: number;
|
|
6
|
+
export declare const DONUT_STROKE = 16;
|
|
7
|
+
export declare const DONUT_GAP = 1.2;
|
|
8
|
+
export interface DonutArc {
|
|
9
|
+
slice: ChartSlice;
|
|
10
|
+
start: number;
|
|
11
|
+
length: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function donutArcs(slices: ChartSlice[]): DonutArc[];
|
|
14
|
+
export declare const sharePercent: (value: number, total: number) => number;
|
|
15
|
+
export declare function niceMax(v: number): number;
|
|
16
|
+
export declare function columnScale(totals: number[]): {
|
|
17
|
+
max: number;
|
|
18
|
+
ticks: number[];
|
|
19
|
+
};
|
|
20
|
+
export declare const barScale: (totals: number[]) => number;
|
|
21
|
+
export declare const showsColumnLabel: (index: number, count: number) => boolean;
|
|
22
|
+
export type ColumnMode = 'stacked' | 'grouped';
|
|
23
|
+
export declare const columnValues: (data: readonly ChartDatum[], series: readonly ChartSeries[], mode?: ColumnMode) => number[];
|
|
24
|
+
export declare function groupedBars(count: number, width: number, gap?: number): Array<{
|
|
25
|
+
x: number;
|
|
26
|
+
width: number;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const pointX: (i: number, count: number, width: number) => number;
|
|
29
|
+
export interface LinePoint {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
}
|
|
33
|
+
export declare function linePoints(values: readonly number[], width: number, height: number, max: number): LinePoint[];
|
|
34
|
+
export declare const linePath: (points: readonly LinePoint[]) => string;
|
|
35
|
+
export declare function areaPath(points: readonly LinePoint[], baseline: number): string;
|
|
36
|
+
export declare function nearestPoint(x: number, width: number, count: number): number;
|
|
37
|
+
export declare function axisLabelIndexes(count: number, max?: number): number[];
|
|
38
|
+
export declare function sparkPoints(values: readonly number[], width: number, height: number): LinePoint[];
|
|
39
|
+
export type TrendDirection = 'up' | 'down' | 'same';
|
|
40
|
+
export type TrendGood = 'up' | 'down' | 'none';
|
|
41
|
+
export interface TrendDelta {
|
|
42
|
+
direction: TrendDirection;
|
|
43
|
+
diff: number;
|
|
44
|
+
percent: number | null;
|
|
45
|
+
}
|
|
46
|
+
export declare function trendDelta(current: number, previous: number): TrendDelta;
|
|
47
|
+
export declare function deltaTone(direction: TrendDirection, good: TrendGood): 'positive' | 'negative' | 'neutral';
|
|
48
|
+
export declare function polar(cx: number, cy: number, r: number, a: number): {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
};
|
|
52
|
+
export declare function arcPath(cx: number, cy: number, r: number, a0: number, a1: number): string;
|
|
53
|
+
export declare function wedgePath(cx: number, cy: number, r: number, a0: number, a1: number): string;
|
|
54
|
+
export declare function dayNumber(day: string): number;
|
|
55
|
+
export declare const dayString: (ms: number) => string;
|
|
56
|
+
export declare const weekdayOf: (day: string) => number;
|
|
57
|
+
export declare function dayRange(from: string, to: string): string[];
|
|
58
|
+
export declare const CALENDAR_DAYS_MAX = 371;
|
|
59
|
+
export declare const CALENDAR_LEVELS = 5;
|
|
60
|
+
export declare function calendarLevel(count: number, max: number): number;
|
|
61
|
+
export interface CalendarCell {
|
|
62
|
+
day: string;
|
|
63
|
+
count: number;
|
|
64
|
+
week: number;
|
|
65
|
+
weekday: number;
|
|
66
|
+
level: number;
|
|
67
|
+
}
|
|
68
|
+
export interface CalendarGrid {
|
|
69
|
+
cells: CalendarCell[];
|
|
70
|
+
weeks: number;
|
|
71
|
+
months: Array<{
|
|
72
|
+
month: string;
|
|
73
|
+
week: number;
|
|
74
|
+
}>;
|
|
75
|
+
max: number;
|
|
76
|
+
total: number;
|
|
77
|
+
}
|
|
78
|
+
export declare function calendarGrid(days: ReadonlyArray<{
|
|
79
|
+
day: string;
|
|
80
|
+
count: number;
|
|
81
|
+
}>): CalendarGrid;
|
|
82
|
+
export declare const CALENDAR_CELL: {
|
|
83
|
+
readonly min: 4;
|
|
84
|
+
readonly max: 16;
|
|
85
|
+
readonly compactMax: 12;
|
|
86
|
+
};
|
|
87
|
+
export declare const CALENDAR_WEEKDAYS = 28;
|
|
88
|
+
export declare const CALENDAR_MONTH_ROOM = 26;
|
|
89
|
+
export interface CalendarCellSize {
|
|
90
|
+
cell: number;
|
|
91
|
+
gap: number;
|
|
92
|
+
weekdays: boolean;
|
|
93
|
+
}
|
|
94
|
+
export declare function calendarCellSize(width: number, weeks: number, max?: number, scale?: number): CalendarCellSize;
|
|
95
|
+
export declare const calendarWeekdaysWidth: (scale?: number) => number;
|
|
96
|
+
export declare const calendarMonthRoom: (scale?: number) => number;
|
|
97
|
+
export declare function calendarMonthLabels<M extends {
|
|
98
|
+
week: number;
|
|
99
|
+
}>(months: readonly M[], pitch: number, scale?: number): M[];
|
|
100
|
+
export interface Rect {
|
|
101
|
+
x: number;
|
|
102
|
+
y: number;
|
|
103
|
+
w: number;
|
|
104
|
+
h: number;
|
|
105
|
+
}
|
|
106
|
+
export declare function squarify(values: readonly number[], rect: Rect): Rect[];
|
|
107
|
+
export interface TreemapNode {
|
|
108
|
+
key: string;
|
|
109
|
+
label: string;
|
|
110
|
+
value: number;
|
|
111
|
+
slot: ChartColor;
|
|
112
|
+
selectable?: boolean;
|
|
113
|
+
children?: TreemapNode[];
|
|
114
|
+
}
|
|
115
|
+
export interface TreemapTile {
|
|
116
|
+
node: TreemapNode;
|
|
117
|
+
parent: TreemapNode | null;
|
|
118
|
+
rect: Rect;
|
|
119
|
+
label: boolean;
|
|
120
|
+
}
|
|
121
|
+
export declare const TREEMAP_LABEL_MIN: {
|
|
122
|
+
w: number;
|
|
123
|
+
h: number;
|
|
124
|
+
};
|
|
125
|
+
export declare const TREEMAP_HEADER = 16;
|
|
126
|
+
export declare const TREEMAP_GAP = 2;
|
|
127
|
+
export declare function treemapLayout(nodes: readonly TreemapNode[], width: number, height: number, scale?: number): TreemapTile[];
|
|
128
|
+
export declare const childOpacity: (index: number) => number;
|
|
129
|
+
export interface FunnelRow<T extends {
|
|
130
|
+
value: number;
|
|
131
|
+
}> {
|
|
132
|
+
step: T;
|
|
133
|
+
width: number;
|
|
134
|
+
ofFirst: number;
|
|
135
|
+
drop: number | null;
|
|
136
|
+
}
|
|
137
|
+
export declare function funnelRows<T extends {
|
|
138
|
+
value: number;
|
|
139
|
+
}>(steps: readonly T[]): FunnelRow<T>[];
|
|
140
|
+
export type GaugeVariant = 'half' | 'ring';
|
|
141
|
+
export declare const GAUGE_SHAPE: {
|
|
142
|
+
readonly half: {
|
|
143
|
+
readonly width: 120;
|
|
144
|
+
readonly height: 68;
|
|
145
|
+
readonly cx: 60;
|
|
146
|
+
readonly cy: 62;
|
|
147
|
+
readonly r: 50;
|
|
148
|
+
readonly from: number;
|
|
149
|
+
readonly to: number;
|
|
150
|
+
};
|
|
151
|
+
readonly ring: {
|
|
152
|
+
readonly width: 100;
|
|
153
|
+
readonly height: 100;
|
|
154
|
+
readonly cx: 50;
|
|
155
|
+
readonly cy: 50;
|
|
156
|
+
readonly r: 40;
|
|
157
|
+
readonly from: 0;
|
|
158
|
+
readonly to: number;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export declare const GAUGE_STROKE = 12;
|
|
162
|
+
export declare function gaugeSweep(variant: GaugeVariant, share: number): {
|
|
163
|
+
a0: number;
|
|
164
|
+
a1: number;
|
|
165
|
+
end: number;
|
|
166
|
+
};
|
|
167
|
+
export declare const PIE_RADIUS = 48;
|
|
168
|
+
export declare const PIE_LABEL_RADIUS = 0.62;
|
|
169
|
+
export declare const PIE_LABEL_MIN_SHARE = 8;
|
|
170
|
+
export interface PieWedge {
|
|
171
|
+
slice: ChartSlice;
|
|
172
|
+
a0: number;
|
|
173
|
+
a1: number;
|
|
174
|
+
share: number;
|
|
175
|
+
label: {
|
|
176
|
+
x: number;
|
|
177
|
+
y: number;
|
|
178
|
+
} | null;
|
|
179
|
+
}
|
|
180
|
+
export declare function pieWedges(slices: ChartSlice[], radius?: number, centre?: number): PieWedge[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { Chart, type ChartProps } from './Chart';
|
|
2
|
+
export { ChartView, type ChartViewProps } from './ChartView';
|
|
3
|
+
export { ChartIcon } from './ChartIcon';
|
|
4
|
+
export { chartOfData, chartsFor, countSeries, toChart, type ChartData, type ChartDataWords, type ChartKind, type ChartPeriodCount, type ChartStepCount, type ChartValueCount } from './chartData';
|
|
5
|
+
export { BarList, type BarListProps } from './BarList';
|
|
6
|
+
export { CalendarHeatmap, weekdayNames, type CalendarDay, type CalendarHeatmapProps } from './CalendarHeatmap';
|
|
7
|
+
export { ChartTable, type ChartTableProps } from './ChartTable';
|
|
8
|
+
export { ColumnChart, type ColumnChartProps } from './ColumnChart';
|
|
9
|
+
export { Donut, type DonutProps } from './Donut';
|
|
10
|
+
export { Funnel, type FunnelProps } from './Funnel';
|
|
11
|
+
export { Gauge, type GaugeProps } from './Gauge';
|
|
12
|
+
export { Legend, type LegendProps } from './Legend';
|
|
13
|
+
export { LineChart, type LineChartProps } from './LineChart';
|
|
14
|
+
export { NumberTrend, type NumberTrendPoint, type NumberTrendProps } from './NumberTrend';
|
|
15
|
+
export { CALENDAR_DAYS_MAX, calendarGrid, dayRange, deltaTone, trendDelta, type ColumnMode, type GaugeVariant, type TrendDelta, type TrendDirection, type TrendGood } from './geometry';
|
|
16
|
+
export { Progress, type ProgressProps } from './Progress';
|
|
17
|
+
export { StackedBar, type StackedBarProps } from './StackedBar';
|
|
18
|
+
export { Treemap, type TreemapProps } from './Treemap';
|
|
19
|
+
export { squarify, treemapLayout, type Rect, type TreemapNode, type TreemapTile } from './geometry';
|
|
20
|
+
export { ChartImageMenu, type ChartImageMenuProps } from './ChartImageMenu';
|
|
21
|
+
export { AnchoredMenu, type AnchoredMenuItem, type AnchoredMenuProps } from './AnchoredMenu';
|
|
22
|
+
export { layerOrigin, placeMenu, type MenuPlacement, type MenuPlacementOptions } from './menuPlacement';
|
|
23
|
+
export { CHART_IMAGE_PALETTE, chartImageBlob, chartImageFileName, paintChartImage, type ChartImage, type ChartImageCanvas, type ChartImageChart, type ChartImageContext, type ChartImageProgressRow } from './chartImage';
|
|
24
|
+
export { DEFAULT_CHART_LABELS, type ChartLabels } from './labels';
|
|
25
|
+
export { CHART_GENERATED, CHART_HEAT, heatColor, CHART_INK, CHART_LEVELS_DEFAULT, CHART_PALETTE, CHART_PICKED_COLOURS, chartColor, colorCss, colorHex, hexToOklab, inkOn, isChartLevels, levelColor, luminance, oklabDistance, oklchToHex, slotColor, slotHex, slotInk, type ChartScheme } from './palette';
|
|
26
|
+
export { PIE_LABEL_MIN_SHARE } from './geometry';
|
|
27
|
+
export { formatPercent } from './parts';
|
|
28
|
+
export { TooltipBody, hitRect, hitRects, useChartPointer, type ChartPointer, type ChartPointerOptions } from './ChartTooltip';
|
|
29
|
+
export { HOLE, POINTER_GAP, angleOf, bandAt, placeAtPointer, rectAt, sliceAt, spanAt, type ChartRect, type PointerPlacement } from './pointer';
|
|
30
|
+
export { CALENDAR_CELL, calendarCellSize, calendarMonthLabels, type CalendarCellSize } from './geometry';
|
|
31
|
+
export { useBoxSize, useBoxWidth, type BoxSize } from './useBoxSize';
|
|
32
|
+
export type { ChartCategoricalSlot, ChartColor, ChartLevels, ChartProgressColor, ChartDatum, ChartFormatProps, ChartLinkComponent, ChartLinkProps, ChartSelectProps, ChartSeries, ChartSlice, ChartSlot, ChartStatusSlot } from './types';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const DEFAULT_CHART_LABELS: {
|
|
2
|
+
legend: string;
|
|
3
|
+
total: string;
|
|
4
|
+
empty: string;
|
|
5
|
+
count: string;
|
|
6
|
+
rest: string;
|
|
7
|
+
kinds: {
|
|
8
|
+
donut: string;
|
|
9
|
+
pie: string;
|
|
10
|
+
bars: string;
|
|
11
|
+
stacked: string;
|
|
12
|
+
treemap: string;
|
|
13
|
+
columns: string;
|
|
14
|
+
line: string;
|
|
15
|
+
area: string;
|
|
16
|
+
grouped: string;
|
|
17
|
+
calendar: string;
|
|
18
|
+
bar: string;
|
|
19
|
+
gauge: string;
|
|
20
|
+
ring: string;
|
|
21
|
+
funnel: string;
|
|
22
|
+
number: string;
|
|
23
|
+
numberTrend: string;
|
|
24
|
+
};
|
|
25
|
+
chartChoice: string;
|
|
26
|
+
imageMenu: string;
|
|
27
|
+
imageDownload: string;
|
|
28
|
+
imageCopy: string;
|
|
29
|
+
imageShare: string;
|
|
30
|
+
imageCopied: string;
|
|
31
|
+
imageFailed: string;
|
|
32
|
+
vsPrevious: string;
|
|
33
|
+
deltaUp: string;
|
|
34
|
+
deltaDown: string;
|
|
35
|
+
deltaSame: string;
|
|
36
|
+
deltaNew: string;
|
|
37
|
+
ofTotal: (value: string, total: string) => string;
|
|
38
|
+
shareOf: (share: string, total: string) => string;
|
|
39
|
+
moreValues: (n: string) => string;
|
|
40
|
+
less: string;
|
|
41
|
+
more: string;
|
|
42
|
+
busiest: string;
|
|
43
|
+
funnelOfFirst: string;
|
|
44
|
+
funnelDrop: string;
|
|
45
|
+
};
|
|
46
|
+
export type ChartLabels = typeof DEFAULT_CHART_LABELS;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChartRect } from './pointer';
|
|
2
|
+
export interface MenuPlacement {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
side: 'below' | 'above';
|
|
6
|
+
}
|
|
7
|
+
export interface MenuPlacementOptions {
|
|
8
|
+
align?: 'start' | 'end';
|
|
9
|
+
offset?: number;
|
|
10
|
+
margin?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function placeMenu(anchor: ChartRect, box: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}, viewport: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
}, { align, offset, margin }?: MenuPlacementOptions): MenuPlacement;
|
|
19
|
+
export declare function layerOrigin(rect: {
|
|
20
|
+
left: number;
|
|
21
|
+
top: number;
|
|
22
|
+
}, left: number, top: number): {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ChartColor, ChartLevels, ChartProgressColor, ChartSlot } from './types';
|
|
2
|
+
export type ChartScheme = 'light' | 'dark';
|
|
3
|
+
export declare const CHART_PICKED_COLOURS = 10;
|
|
4
|
+
export declare const CHART_PALETTE: {
|
|
5
|
+
light: {
|
|
6
|
+
1: string;
|
|
7
|
+
2: string;
|
|
8
|
+
3: string;
|
|
9
|
+
4: string;
|
|
10
|
+
5: string;
|
|
11
|
+
6: string;
|
|
12
|
+
7: string;
|
|
13
|
+
8: string;
|
|
14
|
+
9: string;
|
|
15
|
+
10: string;
|
|
16
|
+
rest: string;
|
|
17
|
+
positive: string;
|
|
18
|
+
warning: string;
|
|
19
|
+
negative: string;
|
|
20
|
+
info: string;
|
|
21
|
+
neutral: string;
|
|
22
|
+
};
|
|
23
|
+
dark: {
|
|
24
|
+
1: string;
|
|
25
|
+
2: string;
|
|
26
|
+
3: string;
|
|
27
|
+
4: string;
|
|
28
|
+
5: string;
|
|
29
|
+
6: string;
|
|
30
|
+
7: string;
|
|
31
|
+
8: string;
|
|
32
|
+
9: string;
|
|
33
|
+
10: string;
|
|
34
|
+
rest: string;
|
|
35
|
+
positive: string;
|
|
36
|
+
warning: string;
|
|
37
|
+
negative: string;
|
|
38
|
+
info: string;
|
|
39
|
+
neutral: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const CHART_GENERATED: {
|
|
43
|
+
readonly light: {
|
|
44
|
+
readonly lightness: readonly [0.46, 0.54, 0.62, 0.7, 0.78];
|
|
45
|
+
readonly chroma: readonly [0.09, 0.13, 0.17];
|
|
46
|
+
readonly hueStep: 8;
|
|
47
|
+
readonly background: "#ffffff";
|
|
48
|
+
};
|
|
49
|
+
readonly dark: {
|
|
50
|
+
readonly lightness: readonly [0.58, 0.66, 0.74, 0.82, 0.9];
|
|
51
|
+
readonly chroma: readonly [0.09, 0.13, 0.17];
|
|
52
|
+
readonly hueStep: 8;
|
|
53
|
+
readonly background: "#1f1f1f";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type Lab = readonly [number, number, number];
|
|
57
|
+
export declare const oklchToHex: (l: number, c: number, h: number) => string;
|
|
58
|
+
export declare function hexToOklab(hex: string): Lab;
|
|
59
|
+
export declare const oklabDistance: (p: Lab, q: Lab) => number;
|
|
60
|
+
export declare const generatedCandidates: (scheme: ChartScheme) => string[];
|
|
61
|
+
export declare function chartColor(index: number, scheme: ChartScheme): string;
|
|
62
|
+
export declare const slotHex: (slot: ChartSlot, scheme: ChartScheme) => string;
|
|
63
|
+
export declare function slotColor(slot: ChartSlot): string;
|
|
64
|
+
export declare const CHART_LEVELS_DEFAULT: ChartLevels;
|
|
65
|
+
export declare const isChartLevels: (c: ChartProgressColor | undefined) => c is ChartLevels;
|
|
66
|
+
export declare function levelColor(color: ChartProgressColor, share: number): ChartColor;
|
|
67
|
+
export declare const colorCss: (c: ChartColor) => string;
|
|
68
|
+
export declare const colorHex: (c: ChartColor, scheme: ChartScheme) => string;
|
|
69
|
+
export declare const CHART_HEAT: {
|
|
70
|
+
readonly light: readonly ["#e8eff9", "#bcd3f2", "#7faee9", "#4081d2", "#155aa7"];
|
|
71
|
+
readonly dark: readonly ["#242930", "#2c4462", "#39659b", "#4f8bd6", "#82baff"];
|
|
72
|
+
};
|
|
73
|
+
export declare const heatColor: (level: number) => string;
|
|
74
|
+
export declare const CHART_INK: {
|
|
75
|
+
readonly dark: "#0f0f0f";
|
|
76
|
+
readonly light: "#ffffff";
|
|
77
|
+
};
|
|
78
|
+
export declare function luminance(hex: string): number;
|
|
79
|
+
export declare function inkOn(hex: string): string;
|
|
80
|
+
export declare function slotInk(slot: ChartColor): string;
|
|
81
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ChartLabels } from './labels';
|
|
3
|
+
import type { ChartFormatProps } from './types';
|
|
4
|
+
export { colorCss } from './palette';
|
|
5
|
+
export declare const chartClass: (block: string, compact?: boolean) => string;
|
|
6
|
+
export declare function Titled({ title, children }: {
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare function formatPercent(p: number): string;
|
|
11
|
+
export declare const funnelDropText: (drop: number) => string;
|
|
12
|
+
export declare function useChartFormat({ locale, format, labels }: ChartFormatProps): {
|
|
13
|
+
nf: (n: number) => string;
|
|
14
|
+
L: ChartLabels;
|
|
15
|
+
};
|
|
16
|
+
export declare function ChartEmpty({ ariaLabel, text, compact }: {
|
|
17
|
+
ariaLabel: string;
|
|
18
|
+
text: string;
|
|
19
|
+
compact: boolean;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
export declare function roveIndex(key: string, index: number | null, count: number, steps?: Partial<Record<'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown', number>>): number | null;
|
|
22
|
+
export declare function roveControls(key: string, index: number | null, count: number, steps?: Partial<Record<'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown', number>>, has?: (index: number) => boolean): number | null;
|
|
23
|
+
export declare function ChartLive({ text }: {
|
|
24
|
+
text: string;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface ChartRect {
|
|
2
|
+
left: number;
|
|
3
|
+
top: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function bandAt(x: number, width: number, count: number): number | null;
|
|
8
|
+
export declare function spanAt(v: number, spans: ReadonlyArray<{
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
}>): number | null;
|
|
12
|
+
export declare function rectAt(x: number, y: number, rects: ReadonlyArray<ChartRect | null>): number | null;
|
|
13
|
+
export declare function angleOf(dx: number, dy: number): number;
|
|
14
|
+
export declare const HOLE = -1;
|
|
15
|
+
export declare function sliceAt(dx: number, dy: number, outer: number, inner: number, arcs: ReadonlyArray<{
|
|
16
|
+
a0: number;
|
|
17
|
+
a1: number;
|
|
18
|
+
}>): number | null;
|
|
19
|
+
export interface PointerPlacement {
|
|
20
|
+
left: number;
|
|
21
|
+
top: number;
|
|
22
|
+
x: 'right' | 'left';
|
|
23
|
+
y: 'below' | 'above';
|
|
24
|
+
}
|
|
25
|
+
export declare const POINTER_GAP: {
|
|
26
|
+
readonly x: 12;
|
|
27
|
+
readonly y: 4;
|
|
28
|
+
};
|
|
29
|
+
export declare function placeAtPointer(point: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
}, box: {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
}, viewport: {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
}, gap?: {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
}, margin?: number): PointerPlacement;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { ChartLabels } from './labels';
|
|
3
|
+
export type ChartStatusSlot = 'positive' | 'warning' | 'negative' | 'info' | 'neutral';
|
|
4
|
+
export type ChartCategoricalSlot = number;
|
|
5
|
+
export type ChartSlot = ChartCategoricalSlot | 'rest' | ChartStatusSlot;
|
|
6
|
+
export type ChartColor = ChartSlot | `#${string}`;
|
|
7
|
+
export interface ChartLevels {
|
|
8
|
+
bands: Array<{
|
|
9
|
+
below: number;
|
|
10
|
+
color: ChartColor;
|
|
11
|
+
}>;
|
|
12
|
+
above: ChartColor;
|
|
13
|
+
}
|
|
14
|
+
export type ChartProgressColor = ChartColor | ChartLevels;
|
|
15
|
+
export interface ChartSeries {
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
slot: ChartColor;
|
|
19
|
+
}
|
|
20
|
+
export interface ChartDatum {
|
|
21
|
+
key?: string;
|
|
22
|
+
label: string;
|
|
23
|
+
fullLabel?: string;
|
|
24
|
+
values: Record<string, number>;
|
|
25
|
+
selectable?: boolean;
|
|
26
|
+
slot?: ChartColor;
|
|
27
|
+
href?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ChartSlice {
|
|
30
|
+
key: string;
|
|
31
|
+
label: string;
|
|
32
|
+
value: number;
|
|
33
|
+
slot: ChartColor;
|
|
34
|
+
selectable?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface ChartLinkProps {
|
|
37
|
+
href: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export type ChartLinkComponent = ComponentType<ChartLinkProps>;
|
|
43
|
+
export interface ChartFormatProps {
|
|
44
|
+
locale?: string;
|
|
45
|
+
format?: (n: number) => string;
|
|
46
|
+
labels?: Partial<ChartLabels>;
|
|
47
|
+
}
|
|
48
|
+
export interface ChartSelectProps<T> {
|
|
49
|
+
onSelect?: (item: T) => void;
|
|
50
|
+
selected?: string | null;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLegendFit(count: number, enabled: boolean): [(el: HTMLElement | null) => void, number, number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useUiScale(): [(el: HTMLElement | null) => void, number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CheckboxProps, FieldHandle } from '
|
|
2
|
+
import { CheckboxProps, FieldHandle } from '../../core/types';
|
|
3
3
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<FieldHandle>>;
|
|
4
4
|
export default Checkbox;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CheckboxGroupContextValue } from '
|
|
1
|
+
import { CheckboxGroupContextValue } from '../../core/types';
|
|
2
2
|
export declare const CheckboxGroupCtx: import("react").Context<CheckboxGroupContextValue | null>;
|
|
3
3
|
export declare function useCheckboxGroup(): CheckboxGroupContextValue | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Checkbox } from './Checkbox';
|
|
2
2
|
export { default as CheckboxGroup } from './CheckboxGroup';
|
|
3
|
-
export type { CheckboxProps, CheckboxGroupProps, CheckboxVariant, CheckboxSize, CheckboxLabelPosition, CheckboxColor, CheckboxGroupContextValue, } from '
|
|
3
|
+
export type { CheckboxProps, CheckboxGroupProps, CheckboxVariant, CheckboxSize, CheckboxLabelPosition, CheckboxColor, CheckboxGroupContextValue, } from '../../core/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ChipInputProps, FieldHandle } from '
|
|
2
|
+
import type { ChipInputProps, FieldHandle } from '../../core/types';
|
|
3
3
|
declare const ChipInput: React.ForwardRefExoticComponent<ChipInputProps & React.RefAttributes<FieldHandle>>;
|
|
4
4
|
export { ChipInput };
|
|
5
5
|
export default ChipInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ChipInput } from './ChipInput';
|
|
2
2
|
export { default } from './ChipInput';
|
|
3
3
|
export { useChipSuggestions } from './useChipSuggestions';
|
|
4
|
-
export { parseFormat, resolveFormat, extractPlaceholders, validateFormat, } from '
|
|
5
|
-
export type { ChipInputProps, ChipInputSize, ChipInputLayout, ChipKey, ChipSource, ChipSources, ChipSuggestionItem, GroupedSuggestions, ParsedSegment, ResolveOptions, ExtractedPlaceholder, FormatValidationResult, UseChipSuggestionsOptions, UseChipSuggestionsReturn, } from '
|
|
4
|
+
export { parseFormat, resolveFormat, extractPlaceholders, validateFormat, } from '../../core/logic';
|
|
5
|
+
export type { ChipInputProps, ChipInputSize, ChipInputLayout, ChipKey, ChipSource, ChipSources, ChipSuggestionItem, GroupedSuggestions, ParsedSegment, ResolveOptions, ExtractedPlaceholder, FormatValidationResult, UseChipSuggestionsOptions, UseChipSuggestionsReturn, } from '../../core/types';
|