@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.
Files changed (445) hide show
  1. package/README.md +32 -6
  2. package/dist/ChartImageMenu-HILSfn5A.js +1115 -0
  3. package/dist/ChartView-Cehrcr05.js +1703 -0
  4. package/dist/SummaryChart-y27q_BBN.js +29 -0
  5. package/dist/SummaryImage-DDNEEu_K.js +18 -0
  6. package/dist/SummarySeeAll-0dX-_LFe.js +101 -0
  7. package/dist/defaults-DL745PK1.js +708 -0
  8. package/dist/exportContext-CdpsOzE8.js +235 -0
  9. package/dist/exportEngine-DL-jEXFU.js +890 -0
  10. package/dist/geometry-CG2nOEnw.js +1796 -0
  11. package/dist/index.js +23238 -15993
  12. package/dist/scrollArea-CkPGDYH2.js +210 -0
  13. package/dist/style.css +1 -1
  14. package/dist/summaryChartData-Djo73zb8.js +81 -0
  15. package/dist/types/components/AppBar/AppBar.d.ts +16 -0
  16. package/dist/types/components/ArrowKeyFocus/useArrowKeyFocus.d.ts +10 -0
  17. package/dist/types/components/Avatar/Avatar.d.ts +22 -0
  18. package/dist/types/{shared-web-ui/src → components}/Badge/Badge.d.ts +0 -11
  19. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
  20. package/dist/types/{shared-web-ui/src → components}/Button/Button.d.ts +1 -1
  21. package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroup.d.ts +1 -1
  22. package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroupContext.d.ts +1 -1
  23. package/dist/types/{shared-web-ui/src → components}/Button/index.d.ts +1 -1
  24. package/dist/types/components/Card/Card.d.ts +17 -0
  25. package/dist/types/components/Charts/AnchoredMenu.d.ts +17 -0
  26. package/dist/types/components/Charts/BarList.d.ts +12 -0
  27. package/dist/types/components/Charts/CalendarHeatmap.d.ts +17 -0
  28. package/dist/types/components/Charts/Chart.d.ts +20 -0
  29. package/dist/types/components/Charts/ChartIcon.d.ts +5 -0
  30. package/dist/types/components/Charts/ChartImageMenu.d.ts +4 -0
  31. package/dist/types/components/Charts/ChartTable.d.ts +8 -0
  32. package/dist/types/components/Charts/ChartTooltip.d.ts +58 -0
  33. package/dist/types/components/Charts/ChartView.d.ts +15 -0
  34. package/dist/types/components/Charts/ColumnChart.d.ts +15 -0
  35. package/dist/types/components/Charts/Donut.d.ts +14 -0
  36. package/dist/types/components/Charts/Funnel.d.ts +10 -0
  37. package/dist/types/components/Charts/Gauge.d.ts +15 -0
  38. package/dist/types/components/Charts/Legend.d.ts +6 -0
  39. package/dist/types/components/Charts/LineChart.d.ts +13 -0
  40. package/dist/types/components/Charts/NumberTrend.d.ts +21 -0
  41. package/dist/types/components/Charts/Progress.d.ts +12 -0
  42. package/dist/types/components/Charts/StackedBar.d.ts +11 -0
  43. package/dist/types/components/Charts/Treemap.d.ts +12 -0
  44. package/dist/types/components/Charts/chartData.d.ts +69 -0
  45. package/dist/types/components/Charts/chartImage.d.ts +121 -0
  46. package/dist/types/components/Charts/geometry.d.ts +180 -0
  47. package/dist/types/components/Charts/index.d.ts +32 -0
  48. package/dist/types/components/Charts/labels.d.ts +46 -0
  49. package/dist/types/components/Charts/menuPlacement.d.ts +25 -0
  50. package/dist/types/components/Charts/palette.d.ts +81 -0
  51. package/dist/types/components/Charts/parts.d.ts +25 -0
  52. package/dist/types/components/Charts/pointer.d.ts +41 -0
  53. package/dist/types/components/Charts/types.d.ts +51 -0
  54. package/dist/types/components/Charts/ui.d.ts +3 -0
  55. package/dist/types/components/Charts/useBoxSize.d.ts +6 -0
  56. package/dist/types/components/Charts/useLegendFit.d.ts +1 -0
  57. package/dist/types/components/Charts/useUiScale.d.ts +1 -0
  58. package/dist/types/{shared-web-ui/src → components}/Checkbox/Checkbox.d.ts +1 -1
  59. package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroup.d.ts +1 -1
  60. package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroupContext.d.ts +1 -1
  61. package/dist/types/{shared-web-ui/src → components}/Checkbox/index.d.ts +1 -1
  62. package/dist/types/{shared-web-ui/src → components}/ChipInput/ChipInput.d.ts +1 -1
  63. package/dist/types/{shared-web-ui/src → components}/ChipInput/index.d.ts +2 -2
  64. package/dist/types/{shared-web-ui/src → components}/ChipInput/useChipSuggestions.d.ts +1 -1
  65. package/dist/types/{shared-web-ui/src → components}/Collapsible/Collapsible.d.ts +1 -1
  66. package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleContext.d.ts +1 -1
  67. package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleItem.d.ts +1 -3
  68. package/dist/types/{shared-web-ui/src → components}/Collapsible/index.d.ts +1 -1
  69. package/dist/types/components/ColorSchemeSelect/ColorSchemeSelect.d.ts +11 -0
  70. package/dist/types/components/CommandPalette/CommandPalette.d.ts +25 -0
  71. package/dist/types/components/DataTable/DataTable.d.ts +16 -0
  72. package/dist/types/components/DataTable/DataTable.storyData.d.ts +23 -0
  73. package/dist/types/components/DataTable/DisplayPopover.d.ts +22 -0
  74. package/dist/types/components/DataTable/HeaderMenu.d.ts +31 -0
  75. package/dist/types/components/DataTable/ManageModal.d.ts +31 -0
  76. package/dist/types/components/DataTable/PressButton.d.ts +2 -0
  77. package/dist/types/components/DataTable/SingleRowView.d.ts +9 -0
  78. package/dist/types/components/DataTable/SortModal.d.ts +16 -0
  79. package/dist/types/components/DataTable/StatusRow.d.ts +49 -0
  80. package/dist/types/components/DataTable/TableColumnModal.d.ts +18 -0
  81. package/dist/types/components/DataTable/TableControls.d.ts +48 -0
  82. package/dist/types/components/DataTable/TablePagination.d.ts +38 -0
  83. package/dist/types/components/DataTable/TableScrollStrip.d.ts +2 -0
  84. package/dist/types/components/DataTable/TableToolbar.d.ts +69 -0
  85. package/dist/types/components/DataTable/TableView.d.ts +61 -0
  86. package/dist/types/components/DataTable/bulk/BulkConfirmDialog.d.ts +13 -0
  87. package/dist/types/components/DataTable/bulk/TableToast.d.ts +13 -0
  88. package/dist/types/components/DataTable/bulk/bulkActions.d.ts +23 -0
  89. package/dist/types/components/DataTable/cards/CardFieldsEditor.d.ts +16 -0
  90. package/dist/types/components/DataTable/cards/CardView.d.ts +50 -0
  91. package/dist/types/components/DataTable/cards/cardFields.d.ts +32 -0
  92. package/dist/types/components/DataTable/cards/rowParts.d.ts +38 -0
  93. package/dist/types/components/DataTable/data/useServerData.d.ts +28 -0
  94. package/dist/types/components/DataTable/defaults.d.ts +18 -0
  95. package/dist/types/components/DataTable/detail/BuiltInDetail.d.ts +10 -0
  96. package/dist/types/components/DataTable/detail/DetailHost.d.ts +13 -0
  97. package/dist/types/components/DataTable/export/ExportPopover.d.ts +18 -0
  98. package/dist/types/components/DataTable/export/ExportPreviewModal.d.ts +11 -0
  99. package/dist/types/components/DataTable/export/ExportSettingsModal.d.ts +31 -0
  100. package/dist/types/components/DataTable/export/ExportTemplateCards.d.ts +19 -0
  101. package/dist/types/components/DataTable/export/exportContext.d.ts +10 -0
  102. package/dist/types/components/DataTable/export/exportEngine.d.ts +77 -0
  103. package/dist/types/components/DataTable/export/exportRows.d.ts +10 -0
  104. package/dist/types/components/DataTable/export/templateDisplay.d.ts +7 -0
  105. package/dist/types/components/DataTable/export/templateOptions.d.ts +6 -0
  106. package/dist/types/components/DataTable/export/useTableExport.d.ts +53 -0
  107. package/dist/types/components/DataTable/filters/ColumnFilterPopover.d.ts +14 -0
  108. package/dist/types/components/DataTable/filters/FilterChips.d.ts +9 -0
  109. package/dist/types/components/DataTable/filters/FilterConditionRow.d.ts +11 -0
  110. package/dist/types/components/DataTable/filters/FilterGroup.d.ts +12 -0
  111. package/dist/types/components/DataTable/filters/FilterModal.d.ts +14 -0
  112. package/dist/types/components/DataTable/filters/FilterRow.d.ts +20 -0
  113. package/dist/types/components/DataTable/filters/columnFilterModel.d.ts +29 -0
  114. package/dist/types/components/DataTable/filters/filterEngine.d.ts +16 -0
  115. package/dist/types/components/DataTable/filters/filterRowModel.d.ts +28 -0
  116. package/dist/types/components/DataTable/filters/quickFilterMatch.d.ts +3 -0
  117. package/dist/types/components/DataTable/grouping/GroupUi.d.ts +36 -0
  118. package/dist/types/components/DataTable/grouping/groupModel.d.ts +82 -0
  119. package/dist/types/components/DataTable/grouping/useGrouping.d.ts +39 -0
  120. package/dist/types/components/DataTable/host.d.ts +14 -0
  121. package/dist/types/components/DataTable/index.d.ts +18 -0
  122. package/dist/types/components/DataTable/keyboard/ShortcutsDialog.d.ts +14 -0
  123. package/dist/types/components/DataTable/keyboard/shortcuts.d.ts +22 -0
  124. package/dist/types/components/DataTable/keyboard/useGridKeyboard.d.ts +48 -0
  125. package/dist/types/components/DataTable/labels.d.ts +618 -0
  126. package/dist/types/components/DataTable/layout/LayoutSwitcher.d.ts +9 -0
  127. package/dist/types/components/DataTable/layout/layouts.d.ts +20 -0
  128. package/dist/types/components/DataTable/layout/scrollArea.d.ts +2 -0
  129. package/dist/types/components/DataTable/layout/useFillHeight.d.ts +11 -0
  130. package/dist/types/components/DataTable/menu/RowMenu.d.ts +56 -0
  131. package/dist/types/components/DataTable/menu/buildRowMenu.d.ts +35 -0
  132. package/dist/types/components/DataTable/menu/clipboard.d.ts +4 -0
  133. package/dist/types/components/DataTable/menu/layers.d.ts +1 -0
  134. package/dist/types/components/DataTable/menu/valueFilter.d.ts +15 -0
  135. package/dist/types/components/DataTable/motion/useRowMotion.d.ts +32 -0
  136. package/dist/types/components/DataTable/persistence/adapters.d.ts +6 -0
  137. package/dist/types/components/DataTable/persistence/reconcile.d.ts +64 -0
  138. package/dist/types/components/DataTable/persistence/useColumnPersistence.d.ts +51 -0
  139. package/dist/types/components/DataTable/persistence/useManagePrefs.d.ts +23 -0
  140. package/dist/types/components/DataTable/persistence/useOrphanPrefs.d.ts +3 -0
  141. package/dist/types/components/DataTable/pinning.d.ts +10 -0
  142. package/dist/types/components/DataTable/rows/PressRow.d.ts +7 -0
  143. package/dist/types/components/DataTable/rows/RowActions.d.ts +15 -0
  144. package/dist/types/components/DataTable/rows/rowPress.d.ts +35 -0
  145. package/dist/types/components/DataTable/sharing/Sharing.d.ts +21 -0
  146. package/dist/types/components/DataTable/split/SplitView.d.ts +29 -0
  147. package/dist/types/components/DataTable/summary/ManageSummaryCards.d.ts +18 -0
  148. package/dist/types/components/DataTable/summary/SummaryChart.d.ts +11 -0
  149. package/dist/types/components/DataTable/summary/SummaryControls.d.ts +33 -0
  150. package/dist/types/components/DataTable/summary/SummaryImage.d.ts +12 -0
  151. package/dist/types/components/DataTable/summary/SummarySeeAll.d.ts +17 -0
  152. package/dist/types/components/DataTable/summary/TableSummary.d.ts +34 -0
  153. package/dist/types/components/DataTable/summary/summaryCatalogue.d.ts +64 -0
  154. package/dist/types/components/DataTable/summary/summaryChartData.d.ts +9 -0
  155. package/dist/types/components/DataTable/summary/summaryModel.d.ts +152 -0
  156. package/dist/types/components/DataTable/summary/summaryWidth.d.ts +22 -0
  157. package/dist/types/components/DataTable/summary/useTableSummary.d.ts +18 -0
  158. package/dist/types/components/DataTable/types.d.ts +1145 -0
  159. package/dist/types/components/DataTable/ui-local/AutoHeight.d.ts +9 -0
  160. package/dist/types/components/DataTable/ui-local/DateRangePicker.d.ts +16 -0
  161. package/dist/types/components/DataTable/ui-local/DragAndDropList/DragAndDropList.d.ts +4 -0
  162. package/dist/types/components/DataTable/ui-local/DragAndDropList/index.d.ts +3 -0
  163. package/dist/types/components/DataTable/ui-local/DragAndDropList/types.d.ts +70 -0
  164. package/dist/types/components/DataTable/ui-local/ReactModal.d.ts +20 -0
  165. package/dist/types/components/DataTable/ui-local/scrollLock.d.ts +1 -0
  166. package/dist/types/components/DataTable/ui.d.ts +13 -0
  167. package/dist/types/components/DataTable/useDataChangeTracker.d.ts +11 -0
  168. package/dist/types/components/DataTable/useTable.d.ts +12 -0
  169. package/dist/types/components/DataTable/vendor/columnOrder.d.ts +1 -0
  170. package/dist/types/components/DataTable/vendor/diff.d.ts +5 -0
  171. package/dist/types/components/DataTable/vendor/fileActions.d.ts +19 -0
  172. package/dist/types/components/DataTable/vendor/index.d.ts +3 -0
  173. package/dist/types/components/DataTable/virtual/useVirtualLines.d.ts +27 -0
  174. package/dist/types/components/DatePicker/Calendar.d.ts +14 -0
  175. package/dist/types/components/DatePicker/DatePicker.d.ts +5 -0
  176. package/dist/types/components/DatePicker/TimeField.d.ts +16 -0
  177. package/dist/types/components/DatePicker/index.d.ts +4 -0
  178. package/dist/types/components/DatePicker/useOneMonthPane.d.ts +2 -0
  179. package/dist/types/components/Dialog/Dialog.d.ts +56 -0
  180. package/dist/types/components/Dialog/DialogHost.d.ts +44 -0
  181. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +49 -0
  182. package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTable.d.ts +1 -6
  183. package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableActions.d.ts +1 -1
  184. package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableCell.d.ts +2 -20
  185. package/dist/types/components/EditableTable/EditableTableRow.d.ts +14 -0
  186. package/dist/types/components/EditableTable/EditableTableSummary.d.ts +11 -0
  187. package/dist/types/{shared-web-ui/src → components}/EditableTable/index.d.ts +1 -1
  188. package/dist/types/{shared-web-ui/src → components}/EditableTable/useEditableTable.d.ts +3 -3
  189. package/dist/types/components/EditableTable/useRowAnimation.d.ts +12 -0
  190. package/dist/types/components/FieldContext/FieldContext.d.ts +3 -0
  191. package/dist/types/components/FieldContext/FieldProvider.d.ts +4 -0
  192. package/dist/types/{shared-web-ui/src → components}/FieldContext/index.d.ts +1 -1
  193. package/dist/types/{shared-web-ui/src → components}/FieldContext/useField.d.ts +2 -29
  194. package/dist/types/components/FieldContext/useFieldSurface.d.ts +34 -0
  195. package/dist/types/{shared-web-ui/src → components}/FieldContext/useFormKeyboard.d.ts +1 -4
  196. package/dist/types/{shared-web-ui/src → components}/FieldWrapper/FieldWrapper.d.ts +1 -1
  197. package/dist/types/{shared-web-ui/src → components}/FieldWrapper/index.d.ts +1 -1
  198. package/dist/types/{shared-web-ui/src → components}/Fields/Field.d.ts +1 -1
  199. package/dist/types/components/Fields/FieldButton.d.ts +17 -0
  200. package/dist/types/{shared-web-ui/src → components}/Fields/Fields.d.ts +1 -1
  201. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldBlur.d.ts +1 -1
  202. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldChange.d.ts +1 -1
  203. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldCondition.d.ts +1 -1
  204. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldDisabled.d.ts +1 -1
  205. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldRender.d.ts +1 -1
  206. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldSelect.d.ts +1 -1
  207. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValidation.d.ts +1 -1
  208. package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValue.d.ts +1 -1
  209. package/dist/types/{shared-web-ui/src → components}/Fields/index.d.ts +1 -1
  210. package/dist/types/components/Floating/index.d.ts +3 -0
  211. package/dist/types/components/Floating/layers.d.ts +4 -0
  212. package/dist/types/components/Floating/scrollLock.d.ts +2 -0
  213. package/dist/types/components/Floating/useFloatingLayer.d.ts +20 -0
  214. package/dist/types/{shared-web-ui/src → components}/Form/Form.d.ts +1 -1
  215. package/dist/types/{shared-web-ui/src → components}/Form/index.d.ts +1 -1
  216. package/dist/types/components/Image/ImagePicker.d.ts +23 -0
  217. package/dist/types/components/Image/ImageStrip.d.ts +13 -0
  218. package/dist/types/components/Image/ImageViewer.d.ts +16 -0
  219. package/dist/types/components/Image/index.d.ts +8 -0
  220. package/dist/types/components/Image/prepareImage.d.ts +19 -0
  221. package/dist/types/{shared-web-ui/src → components}/Input/Input.d.ts +1 -1
  222. package/dist/types/{shared-web-ui/src → components}/Input/index.d.ts +1 -1
  223. package/dist/types/components/Popover/Popover.d.ts +25 -0
  224. package/dist/types/components/Popover/floatingPosition.d.ts +17 -0
  225. package/dist/types/components/Press/index.d.ts +2 -0
  226. package/dist/types/components/Press/usePress.d.ts +9 -0
  227. package/dist/types/{shared-web-ui/src → components}/Radio/Radio.d.ts +1 -1
  228. package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroup.d.ts +1 -1
  229. package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroupContext.d.ts +1 -1
  230. package/dist/types/{shared-web-ui/src → components}/Radio/index.d.ts +1 -1
  231. package/dist/types/components/Scroll/ScrollRule.d.ts +2 -0
  232. package/dist/types/components/Scroll/ScrollStrip.d.ts +9 -0
  233. package/dist/types/components/Scroll/index.d.ts +4 -0
  234. package/dist/types/components/Scroll/labels.d.ts +5 -0
  235. package/dist/types/components/Scroll/scrollActivity.d.ts +14 -0
  236. package/dist/types/components/Scroll/ui.d.ts +1 -0
  237. package/dist/types/{shared-web-ui/src → components}/Select/Select.d.ts +1 -1
  238. package/dist/types/{shared-web-ui/src → components}/Select/index.d.ts +1 -1
  239. package/dist/types/components/Select/useSelect.d.ts +2 -0
  240. package/dist/types/components/Sidebar/Sidebar.d.ts +24 -0
  241. package/dist/types/components/Skeleton/Skeleton.d.ts +18 -0
  242. package/dist/types/components/Stepper/Stepper.d.ts +17 -0
  243. package/dist/types/components/Stepper/index.d.ts +2 -0
  244. package/dist/types/{shared-web-ui/src → components}/Suggest/Suggest.d.ts +1 -1
  245. package/dist/types/{shared-web-ui/src → components}/Suggest/SuggestionList.d.ts +1 -1
  246. package/dist/types/{shared-web-ui/src → components}/Suggest/index.d.ts +2 -2
  247. package/dist/types/{shared-web-ui/src → components}/Suggest/searchFilters.d.ts +1 -1
  248. package/dist/types/{shared-web-ui/src → components}/Suggest/useSuggest.d.ts +1 -1
  249. package/dist/types/{shared-web-ui/src → components}/Switch/Switch.d.ts +1 -1
  250. package/dist/types/{shared-web-ui/src → components}/Switch/index.d.ts +1 -1
  251. package/dist/types/components/Tabs/Tabs.d.ts +36 -0
  252. package/dist/types/components/Toast/ToastHost.d.ts +8 -0
  253. package/dist/types/components/Toast/ToastItem.d.ts +10 -0
  254. package/dist/types/{shared-web-ui/src → components}/Toast/toast.types.d.ts +0 -13
  255. package/dist/types/components/Tooltip/Tooltip.d.ts +9 -0
  256. package/dist/types/components/Tooltip/useTooltip.d.ts +15 -0
  257. package/dist/types/{shared-web-ui/src → components}/Typography/Typography.d.ts +1 -1
  258. package/dist/types/{shared-web-ui/src → components}/Typography/index.d.ts +1 -1
  259. package/dist/types/components/UIProvider/UIPortalContext.d.ts +2 -0
  260. package/dist/types/components/UIProvider/UIProvider.d.ts +13 -0
  261. package/dist/types/components/UIProvider/UIThemeContext.d.ts +9 -0
  262. package/dist/types/core/hooks/index.d.ts +3 -0
  263. package/dist/types/core/hooks/useDebounced.d.ts +7 -0
  264. package/dist/types/core/hooks/usePresence.d.ts +5 -0
  265. package/dist/types/{shared-logic/src/ui → core/logic}/button.logic.d.ts +1 -1
  266. package/dist/types/core/logic/cellRules.logic.d.ts +32 -0
  267. package/dist/types/{shared-logic/src/ui → core/logic}/chipinput.logic.d.ts +1 -13
  268. package/dist/types/{shared-logic/src/ui → core/logic}/collapsible.logic.d.ts +1 -8
  269. package/dist/types/{shared-logic/src/ui → core/logic}/colorScheme.d.ts +0 -14
  270. package/dist/types/core/logic/columnOrder.logic.d.ts +1 -0
  271. package/dist/types/core/logic/datePicker.logic.d.ts +136 -0
  272. package/dist/types/core/logic/displayOrder.logic.d.ts +4 -0
  273. package/dist/types/{shared-logic/src/ui → core/logic}/editableTable.logic.d.ts +5 -28
  274. package/dist/types/core/logic/fieldControl.logic.d.ts +12 -0
  275. package/dist/types/{shared-logic/src/ui → core/logic}/fieldWrapper.logic.d.ts +1 -1
  276. package/dist/types/{shared-logic/src/ui → core/logic}/fields.logic.d.ts +1 -1
  277. package/dist/types/{shared-logic/src/ui → core/logic}/form.logic.d.ts +0 -8
  278. package/dist/types/core/logic/index.d.ts +33 -0
  279. package/dist/types/core/logic/keyboard.logic.d.ts +12 -0
  280. package/dist/types/core/logic/motion.logic.d.ts +1 -0
  281. package/dist/types/core/logic/navigation.logic.d.ts +6 -0
  282. package/dist/types/core/logic/popover.logic.d.ts +59 -0
  283. package/dist/types/core/logic/popupList.logic.d.ts +19 -0
  284. package/dist/types/core/logic/press.logic.d.ts +14 -0
  285. package/dist/types/core/logic/quickAddGrid.logic.d.ts +183 -0
  286. package/dist/types/core/logic/select.logic.d.ts +17 -0
  287. package/dist/types/core/logic/stepper.logic.d.ts +6 -0
  288. package/dist/types/{shared-logic/src/ui → core/logic}/suggest.logic.d.ts +1 -1
  289. package/dist/types/core/logic/tableLayout.logic.d.ts +13 -0
  290. package/dist/types/{shared-logic/src/ui → core/logic}/tableSummary.logic.d.ts +1 -20
  291. package/dist/types/core/logic/timeField.logic.d.ts +26 -0
  292. package/dist/types/core/logic/tooltip.logic.d.ts +11 -0
  293. package/dist/types/{shared-logic/src/ui → core/logic}/typography.logic.d.ts +1 -1
  294. package/dist/types/core/logic/uiScale.logic.d.ts +1 -0
  295. package/dist/types/core/logic/useMergeRefs.d.ts +2 -0
  296. package/dist/types/{shared-types/src/ui → core/types}/button.types.d.ts +1 -11
  297. package/dist/types/{shared-types/src/ui → core/types}/checkbox.types.d.ts +0 -4
  298. package/dist/types/{shared-types/src/ui → core/types}/chipinput.types.d.ts +0 -10
  299. package/dist/types/{shared-types/src/ui → core/types}/collapsible.types.d.ts +0 -18
  300. package/dist/types/core/types/common.types.d.ts +3 -0
  301. package/dist/types/core/types/control.types.d.ts +36 -0
  302. package/dist/types/core/types/datePicker.types.d.ts +46 -0
  303. package/dist/types/{shared-types/src/ui → core/types}/editableTable.types.d.ts +0 -79
  304. package/dist/types/core/types/field.types.d.ts +80 -0
  305. package/dist/types/{shared-types/src/ui → core/types}/fieldWrapper.types.d.ts +0 -10
  306. package/dist/types/{shared-types/src/ui → core/types}/fields.types.d.ts +0 -45
  307. package/dist/types/{shared-types/src/ui → core/types}/form.types.d.ts +0 -30
  308. package/dist/types/core/types/index.d.ts +22 -0
  309. package/dist/types/{shared-types/src/ui → core/types}/input.types.d.ts +0 -4
  310. package/dist/types/core/types/keyboard.types.d.ts +48 -0
  311. package/dist/types/core/types/navigation.types.d.ts +13 -0
  312. package/dist/types/{shared-types/src/ui → core/types}/radio.types.d.ts +0 -6
  313. package/dist/types/{shared-types/src/ui → core/types}/select.types.d.ts +0 -41
  314. package/dist/types/{shared-types/src/ui → core/types}/suggest.types.d.ts +1 -10
  315. package/dist/types/{shared-types/src/ui → core/types}/switch.types.d.ts +0 -4
  316. package/dist/types/{shared-types/src/ui → core/types}/table.types.d.ts +0 -59
  317. package/dist/types/core/types/tooltip.types.d.ts +43 -0
  318. package/dist/types/{shared-types/src/ui → core/types}/typography.types.d.ts +0 -4
  319. package/dist/types/index.d.ts +86 -0
  320. package/package.json +27 -26
  321. package/dist/types/published/dcs-ui/src/index.d.ts +0 -32
  322. package/dist/types/published/dcs-ui/src/publicLogic.d.ts +0 -35
  323. package/dist/types/published/dcs-ui/src/publicTypes.d.ts +0 -14
  324. package/dist/types/shared-logic/src/report/aggregate.d.ts +0 -29
  325. package/dist/types/shared-logic/src/report/canvas.d.ts +0 -106
  326. package/dist/types/shared-logic/src/report/conditions.d.ts +0 -18
  327. package/dist/types/shared-logic/src/report/constants.d.ts +0 -46
  328. package/dist/types/shared-logic/src/report/dataset.d.ts +0 -49
  329. package/dist/types/shared-logic/src/report/edit.d.ts +0 -188
  330. package/dist/types/shared-logic/src/report/fields.d.ts +0 -80
  331. package/dist/types/shared-logic/src/report/format.d.ts +0 -27
  332. package/dist/types/shared-logic/src/report/fromColumns.d.ts +0 -61
  333. package/dist/types/shared-logic/src/report/index.d.ts +0 -19
  334. package/dist/types/shared-logic/src/report/layout.d.ts +0 -85
  335. package/dist/types/shared-logic/src/report/metrics.d.ts +0 -62
  336. package/dist/types/shared-logic/src/report/migrate.d.ts +0 -77
  337. package/dist/types/shared-logic/src/report/paginate.d.ts +0 -40
  338. package/dist/types/shared-logic/src/report/renderers/html.d.ts +0 -29
  339. package/dist/types/shared-logic/src/report/renderers/pdfmake.d.ts +0 -45
  340. package/dist/types/shared-logic/src/report/resolve.d.ts +0 -40
  341. package/dist/types/shared-logic/src/report/scope.d.ts +0 -52
  342. package/dist/types/shared-logic/src/report/storage.d.ts +0 -112
  343. package/dist/types/shared-logic/src/report/validate.d.ts +0 -28
  344. package/dist/types/shared-logic/src/ui/cellRules.logic.d.ts +0 -67
  345. package/dist/types/shared-logic/src/ui/columnOrder.logic.d.ts +0 -12
  346. package/dist/types/shared-logic/src/ui/fieldControl.logic.d.ts +0 -24
  347. package/dist/types/shared-logic/src/ui/index.d.ts +0 -55
  348. package/dist/types/shared-logic/src/ui/keyboard.logic.d.ts +0 -72
  349. package/dist/types/shared-logic/src/ui/navigation.logic.d.ts +0 -30
  350. package/dist/types/shared-logic/src/ui/popover.logic.d.ts +0 -57
  351. package/dist/types/shared-logic/src/ui/popupList.logic.d.ts +0 -54
  352. package/dist/types/shared-logic/src/ui/select.logic.d.ts +0 -31
  353. package/dist/types/shared-logic/src/ui/tableLayout.logic.d.ts +0 -47
  354. package/dist/types/shared-logic/src/ui/tooltip.logic.d.ts +0 -35
  355. package/dist/types/shared-logic/src/ui/useMergeRefs.d.ts +0 -10
  356. package/dist/types/shared-types/src/report/bands.d.ts +0 -32
  357. package/dist/types/shared-types/src/report/blocks.d.ts +0 -181
  358. package/dist/types/shared-types/src/report/conditions.d.ts +0 -24
  359. package/dist/types/shared-types/src/report/dataset.d.ts +0 -106
  360. package/dist/types/shared-types/src/report/document.d.ts +0 -201
  361. package/dist/types/shared-types/src/report/index.d.ts +0 -9
  362. package/dist/types/shared-types/src/report/primitives.d.ts +0 -109
  363. package/dist/types/shared-types/src/report/registry.d.ts +0 -85
  364. package/dist/types/shared-types/src/report/storage.d.ts +0 -41
  365. package/dist/types/shared-types/src/report/template.d.ts +0 -92
  366. package/dist/types/shared-types/src/ui/common.types.d.ts +0 -14
  367. package/dist/types/shared-types/src/ui/control.types.d.ts +0 -133
  368. package/dist/types/shared-types/src/ui/field.types.d.ts +0 -200
  369. package/dist/types/shared-types/src/ui/index.d.ts +0 -37
  370. package/dist/types/shared-types/src/ui/keyboard.types.d.ts +0 -155
  371. package/dist/types/shared-types/src/ui/navigation.types.d.ts +0 -35
  372. package/dist/types/shared-types/src/ui/tooltip.types.d.ts +0 -68
  373. package/dist/types/shared-web-ui/src/AppBar/AppBar.d.ts +0 -25
  374. package/dist/types/shared-web-ui/src/ArrowKeyFocus/useArrowKeyFocus.d.ts +0 -29
  375. package/dist/types/shared-web-ui/src/Avatar/Avatar.d.ts +0 -36
  376. package/dist/types/shared-web-ui/src/Breadcrumbs/Breadcrumbs.d.ts +0 -70
  377. package/dist/types/shared-web-ui/src/Card/Card.d.ts +0 -33
  378. package/dist/types/shared-web-ui/src/ColorSchemeSelect/ColorSchemeSelect.d.ts +0 -26
  379. package/dist/types/shared-web-ui/src/CommandPalette/CommandPalette.d.ts +0 -52
  380. package/dist/types/shared-web-ui/src/Dialog/Dialog.d.ts +0 -101
  381. package/dist/types/shared-web-ui/src/Dialog/DialogHost.d.ts +0 -80
  382. package/dist/types/shared-web-ui/src/DropdownMenu/DropdownMenu.d.ts +0 -49
  383. package/dist/types/shared-web-ui/src/EditableTable/EditableTableRow.d.ts +0 -25
  384. package/dist/types/shared-web-ui/src/EditableTable/EditableTableSummary.d.ts +0 -22
  385. package/dist/types/shared-web-ui/src/EditableTable/useRowAnimation.d.ts +0 -44
  386. package/dist/types/shared-web-ui/src/FieldContext/FieldContext.d.ts +0 -18
  387. package/dist/types/shared-web-ui/src/FieldContext/FieldProvider.d.ts +0 -13
  388. package/dist/types/shared-web-ui/src/FieldContext/useFieldSurface.d.ts +0 -57
  389. package/dist/types/shared-web-ui/src/Fields/FieldButton.d.ts +0 -32
  390. package/dist/types/shared-web-ui/src/Popover/Popover.d.ts +0 -44
  391. package/dist/types/shared-web-ui/src/ReportDesigner/AlignedRowsEditor.d.ts +0 -4
  392. package/dist/types/shared-web-ui/src/ReportDesigner/BandList.d.ts +0 -26
  393. package/dist/types/shared-web-ui/src/ReportDesigner/BlockEditor.d.ts +0 -44
  394. package/dist/types/shared-web-ui/src/ReportDesigner/ColumnEditor.d.ts +0 -2
  395. package/dist/types/shared-web-ui/src/ReportDesigner/ConditionEditor.d.ts +0 -7
  396. package/dist/types/shared-web-ui/src/ReportDesigner/FieldPicker.d.ts +0 -25
  397. package/dist/types/shared-web-ui/src/ReportDesigner/FieldSelect.d.ts +0 -2
  398. package/dist/types/shared-web-ui/src/ReportDesigner/FormatEditor.d.ts +0 -2
  399. package/dist/types/shared-web-ui/src/ReportDesigner/Inspector.d.ts +0 -14
  400. package/dist/types/shared-web-ui/src/ReportDesigner/OptionsEditor.d.ts +0 -2
  401. package/dist/types/shared-web-ui/src/ReportDesigner/ReportDesigner.d.ts +0 -34
  402. package/dist/types/shared-web-ui/src/ReportDesigner/StyleEditor.d.ts +0 -2
  403. package/dist/types/shared-web-ui/src/ReportDesigner/TableEditor.d.ts +0 -10
  404. package/dist/types/shared-web-ui/src/ReportDesigner/WatermarkEditor.d.ts +0 -2
  405. package/dist/types/shared-web-ui/src/ReportDesigner/chipSources.d.ts +0 -6
  406. package/dist/types/shared-web-ui/src/ReportDesigner/icons.d.ts +0 -21
  407. package/dist/types/shared-web-ui/src/ReportDesigner/index.d.ts +0 -16
  408. package/dist/types/shared-web-ui/src/ReportDesigner/labels.d.ts +0 -34
  409. package/dist/types/shared-web-ui/src/ReportDesigner/parts.d.ts +0 -63
  410. package/dist/types/shared-web-ui/src/ReportDesigner/types.d.ts +0 -106
  411. package/dist/types/shared-web-ui/src/ReportPreview/ReportPreview.d.ts +0 -44
  412. package/dist/types/shared-web-ui/src/ReportPreview/index.d.ts +0 -1
  413. package/dist/types/shared-web-ui/src/Select/useSelect.d.ts +0 -2
  414. package/dist/types/shared-web-ui/src/Sidebar/Sidebar.d.ts +0 -55
  415. package/dist/types/shared-web-ui/src/Skeleton/Skeleton.d.ts +0 -33
  416. package/dist/types/shared-web-ui/src/Tabs/Tabs.d.ts +0 -79
  417. package/dist/types/shared-web-ui/src/Toast/ToastHost.d.ts +0 -22
  418. package/dist/types/shared-web-ui/src/Toast/ToastItem.d.ts +0 -19
  419. package/dist/types/shared-web-ui/src/Tooltip/Tooltip.d.ts +0 -25
  420. package/dist/types/shared-web-ui/src/Tooltip/useTooltip.d.ts +0 -24
  421. package/dist/types/shared-web-ui/src/UIProvider/UIPortalContext.d.ts +0 -16
  422. package/dist/types/shared-web-ui/src/UIProvider/UIProvider.d.ts +0 -54
  423. package/dist/types/shared-web-ui/src/UIProvider/UIThemeContext.d.ts +0 -17
  424. package/dist/types/shared-web-ui/src/index.d.ts +0 -78
  425. /package/dist/types/{shared-web-ui/src → components}/AppBar/index.d.ts +0 -0
  426. /package/dist/types/{shared-web-ui/src → components}/Avatar/index.d.ts +0 -0
  427. /package/dist/types/{shared-web-ui/src → components}/Badge/index.d.ts +0 -0
  428. /package/dist/types/{shared-web-ui/src → components}/Breadcrumbs/index.d.ts +0 -0
  429. /package/dist/types/{shared-web-ui/src → components}/Card/index.d.ts +0 -0
  430. /package/dist/types/{shared-web-ui/src → components}/ColorSchemeSelect/index.d.ts +0 -0
  431. /package/dist/types/{shared-web-ui/src → components}/CommandPalette/index.d.ts +0 -0
  432. /package/dist/types/{shared-web-ui/src → components}/Dialog/index.d.ts +0 -0
  433. /package/dist/types/{shared-web-ui/src → components}/DropdownMenu/index.d.ts +0 -0
  434. /package/dist/types/{shared-web-ui/src → components}/Popover/index.d.ts +0 -0
  435. /package/dist/types/{shared-web-ui/src → components}/Sidebar/index.d.ts +0 -0
  436. /package/dist/types/{shared-web-ui/src → components}/Skeleton/index.d.ts +0 -0
  437. /package/dist/types/{shared-web-ui/src → components}/Suggest/fuseSearch.d.ts +0 -0
  438. /package/dist/types/{shared-web-ui/src → components}/Tabs/index.d.ts +0 -0
  439. /package/dist/types/{shared-web-ui/src → components}/Toast/index.d.ts +0 -0
  440. /package/dist/types/{shared-web-ui/src → components}/Tooltip/index.d.ts +0 -0
  441. /package/dist/types/{shared-web-ui/src → components}/UIProvider/index.d.ts +0 -0
  442. /package/dist/types/{shared-logic/src/ui → core/logic}/checkbox.logic.d.ts +0 -0
  443. /package/dist/types/{shared-logic/src/ui → core/logic}/input.logic.d.ts +0 -0
  444. /package/dist/types/{shared-logic/src/ui → core/logic}/radio.logic.d.ts +0 -0
  445. /package/dist/types/{shared-logic/src/ui → core/logic}/switch.logic.d.ts +0 -0
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import type { NavItem } from '../../../published/dcs-ui/src/publicTypes';
3
- export type SidebarDensity = 'compact' | 'comfortable';
4
- export interface SidebarProps {
5
- /** Already filtered and authorised by the caller. Depth is unbounded. */
6
- items: NavItem[];
7
- /** `id` of the current page. Ancestors are marked as on-trail automatically. */
8
- activeId?: string | null;
9
- onSelect?: (item: NavItem) => void;
10
- /** Element for each row — `NavLink`, `Link`, `a`. Defaults to `a` when an item has `href`. */
11
- as?: React.ElementType;
12
- /**
13
- * Row density. **`compact` by default** — a nav list is scanned, not read, and generous
14
- * padding pushes real destinations below the fold. `comfortable` for touch.
15
- */
16
- density?: SidebarDensity;
17
- /**
18
- * Icon-only rail. Children move into a hover flyout rather than disappearing.
19
- * **Ignored below 600px**, where the sidebar is a drawer — a permanent 56px strip on a
20
- * phone costs space and says little.
21
- */
22
- collapsed?: boolean;
23
- /**
24
- * Drawer state below 600px, where the sidebar is off-canvas. Above it the sidebar is a
25
- * column in the layout and this does nothing, so a desktop-only app can ignore it.
26
- */
27
- open?: boolean;
28
- /** Fired by the scrim and by Escape while the drawer is open. */
29
- onClose?: () => void;
30
- defaultExpandedIds?: string[];
31
- expandedIds?: string[];
32
- onExpandedChange?: (ids: string[]) => void;
33
- /**
34
- * Trailing controls for a row — a pin, a rename. Revealed on hover or focus-within, so a
35
- * long list is not a wall of icons. The library stays out of what the action MEANS.
36
- */
37
- renderItemActions?: (item: NavItem) => React.ReactNode;
38
- header?: React.ReactNode;
39
- footer?: React.ReactNode;
40
- className?: string;
41
- style?: React.CSSProperties;
42
- 'aria-label'?: string;
43
- }
44
- /**
45
- * A navigation rail over the shared `NavItem` shape.
46
- *
47
- * It renders; it decides nothing. Building items from a route registry and filtering them by
48
- * permission is app logic — which is also what makes a **dynamic** registry work with no
49
- * special support: a runtime-generated branch is just a different array.
50
- *
51
- * The active TRAIL comes from `navTrailIds` in shared-logic, the same function Breadcrumbs uses
52
- * to render the path, so the two cannot disagree about where you are.
53
- */
54
- declare const Sidebar: React.FC<SidebarProps>;
55
- export default Sidebar;
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- export type SkeletonVariant = 'text' | 'rect' | 'circle';
3
- export type SkeletonAnimation = 'shimmer' | 'pulse' | 'none';
4
- export interface SkeletonProps {
5
- /** Shape of the placeholder. Default `'text'`. */
6
- variant?: SkeletonVariant;
7
- width?: number | string;
8
- height?: number | string;
9
- /** Border-radius override (number = px). */
10
- radius?: number | string;
11
- /** Repeat the placeholder N times, stacked. Default 1. */
12
- count?: number;
13
- /** Gap between repeats (number = px). Default 8. */
14
- gap?: number | string;
15
- /** Width of the LAST line when `count > 1`, for a natural paragraph finish. Default '65%'. */
16
- lastLineWidth?: number | string;
17
- animation?: SkeletonAnimation;
18
- /** Render inline-block instead of block. */
19
- inline?: boolean;
20
- className?: string;
21
- style?: React.CSSProperties;
22
- }
23
- /**
24
- * Loading placeholder.
25
- *
26
- * Hookless and DOM-free on purpose: it renders identically on a server, which keeps it
27
- * eligible for a future server-safe entry point alongside Badge, Avatar and Card.
28
- *
29
- * Always `aria-hidden` — a screen reader should hear the loading STATE from the region that
30
- * owns it (`aria-busy`, or a live region), not a description of grey rectangles.
31
- */
32
- declare const Skeleton: React.FC<SkeletonProps>;
33
- export default Skeleton;
@@ -1,79 +0,0 @@
1
- import React from 'react';
2
- export type TabsVariant = 'line' | 'pill' | 'enclosed';
3
- export type TabsSize = 'small' | 'medium';
4
- export interface TabItem {
5
- /** Identifies the tab. Matched against `value` to decide the active one. */
6
- value: string;
7
- label: React.ReactNode;
8
- icon?: React.ReactNode;
9
- /** Trailing count or marker. */
10
- badge?: React.ReactNode;
11
- disabled?: boolean;
12
- /** Plain link target. Presence of this (or `as`) switches the strip to NAVIGATION mode. */
13
- href?: string;
14
- /**
15
- * Extra props for this item's element — how a router link gets its target, e.g.
16
- * `{ to: '/businesses' }` for react-router's `NavLink`. Router-agnostic on purpose.
17
- */
18
- props?: Record<string, unknown>;
19
- }
20
- export interface TabsProps {
21
- items: TabItem[];
22
- /** The active tab's `value`. */
23
- value?: string;
24
- /** Panel mode only — navigation mode leaves activation to the router. */
25
- onChange?: (value: string, item: TabItem) => void;
26
- /**
27
- * Element to render each tab with — `NavLink`, `Link`, `a`. Supplying it (or any item
28
- * `href`) switches to NAVIGATION mode; see the semantics note on the component.
29
- */
30
- as?: React.ElementType;
31
- variant?: TabsVariant;
32
- size?: TabsSize;
33
- /** Stretch tabs to fill the strip. */
34
- fullWidth?: boolean;
35
- /**
36
- * Panel mode: move activation with arrow focus. Default true, which is right when panels
37
- * are cheap to render; set false when switching a tab costs a fetch.
38
- */
39
- activateOnFocus?: boolean;
40
- /** Ties panels to tabs. Auto-generated if omitted. */
41
- idPrefix?: string;
42
- className?: string;
43
- style?: React.CSSProperties;
44
- 'aria-label'?: string;
45
- }
46
- /**
47
- * A tab strip in one of two modes, inferred from the items.
48
- *
49
- * **Panel mode** (default) — buttons in a `role="tablist"`, following the WAI-ARIA tabs
50
- * pattern: roving tabindex, arrows, Home/End, disabled skipped.
51
- *
52
- * **Navigation mode** — used as soon as an item has `href` or `as` is supplied. Renders a
53
- * `<nav>` of ordinary links: **no `role="tab"`, no roving tabindex**, and the active link gets
54
- * `aria-current="page"`.
55
- *
56
- * That split is not cosmetic. `role="tab"` promises the element controls a panel in the SAME
57
- * document; putting it on a link that navigates away lies to a screen reader, and the roving
58
- * tabindex the pattern requires would also remove every other tab from the tab order — wrong
59
- * for what is really a nav bar. Both apps here navigate by route (the console's `NavLink`s,
60
- * the client's `useParams` + component map), so navigation mode is the common case, not the
61
- * afterthought.
62
- */
63
- declare const Tabs: React.FC<TabsProps>;
64
- export interface TabPanelProps {
65
- /** Must match the tab's `value`. */
66
- value: string;
67
- /** The strip's `idPrefix`, so the panel can point back at its tab. */
68
- idPrefix: string;
69
- /** Rendered only when active. */
70
- active: boolean;
71
- children?: React.ReactNode;
72
- className?: string;
73
- }
74
- /**
75
- * Panel-mode content, wired to its tab. Panel mode only — in navigation mode the router owns
76
- * what is on screen and there is nothing here to label.
77
- */
78
- export declare const TabPanel: React.FC<TabPanelProps>;
79
- export default Tabs;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { ToastApi, ToastDefaults } from './toast.types';
3
- /**
4
- * Fire a toast from anywhere below the `UIProvider`.
5
- *
6
- * Throws without one rather than no-opping: a swallowed error toast is worse than a crash at
7
- * wire-up time, because the failure it was reporting then disappears silently too.
8
- */
9
- export declare const useToast: () => ToastApi;
10
- export interface ToastHostProps {
11
- defaults?: ToastDefaults;
12
- children?: React.ReactNode;
13
- }
14
- /**
15
- * Rendered once by `UIProvider`. Owns the toast queue and the position regions.
16
- *
17
- * Central hosting is the point: `react-toastify` needs a `<ToastContainer>` mounted by hand,
18
- * which every consuming app has to remember and configure identically. Here the provider does
19
- * it, and the provider is also the abstraction boundary — this implementation can change
20
- * without any call site knowing.
21
- */
22
- export declare const ToastHost: React.FC<ToastHostProps>;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { ToastRecord } from './toast.types';
3
- interface ToastItemProps {
4
- toast: ToastRecord;
5
- /** Window focus is tracked once by the host, not per toast. */
6
- windowFocused: boolean;
7
- onDismiss: (id: string) => void;
8
- exitDuration: number;
9
- }
10
- /**
11
- * One toast. Owns its own dismiss timer so `pauseOnHover` can be per-toast rather than
12
- * freezing the whole stack.
13
- *
14
- * The timer keeps a REMAINING budget rather than restarting: pausing subtracts elapsed time,
15
- * resuming schedules what's left. Restarting on every hover would make a toast the user keeps
16
- * brushing past effectively permanent.
17
- */
18
- declare const ToastItem: React.FC<ToastItemProps>;
19
- export default ToastItem;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import type { TooltipProp, TooltipProps } from '../../../published/dcs-ui/src/publicTypes';
3
- /**
4
- * Wraps any single element in a tooltip:
5
- *
6
- * <Tooltip content="Delete row"><IconButton …/></Tooltip>
7
- *
8
- * The child is cloned, not wrapped — the old client tooltip put a <div> around
9
- * its trigger, which silently broke flex and grid layouts wherever it was used.
10
- *
11
- * Components with their own `tooltip` prop (Button, the fields, Collapsible,
12
- * Typography) call `useTooltip` directly instead of nesting this.
13
- */
14
- export declare const Tooltip: React.FC<TooltipProps>;
15
- export interface TooltipHelpIconProps {
16
- tooltip: TooltipProp;
17
- /** Names the icon for screen readers. The tooltip itself is the description. */
18
- label?: string;
19
- }
20
- /**
21
- * The ⓘ that sits after a field label. It is a real button so it is reachable by
22
- * Tab — a plain <span> tooltip is invisible to keyboard users.
23
- */
24
- export declare const TooltipHelpIcon: React.FC<TooltipHelpIconProps>;
25
- export default Tooltip;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import type { TooltipProp } from '../../../published/dcs-ui/src/publicTypes';
3
- export interface UseTooltipResult {
4
- /** Spread onto whatever element should trigger the tooltip. */
5
- triggerProps: {
6
- onPointerEnter: (event: React.PointerEvent<HTMLElement>) => void;
7
- onPointerMove: (event: React.PointerEvent<HTMLElement>) => void;
8
- onPointerLeave: () => void;
9
- onFocus: (event: React.FocusEvent<HTMLElement>) => void;
10
- onBlur: () => void;
11
- 'aria-describedby'?: string;
12
- };
13
- /** Render next to the trigger. Empty when there is no tooltip. */
14
- tooltipNode: React.ReactNode;
15
- /** True when a tooltip is actually configured. */
16
- hasTooltip: boolean;
17
- }
18
- /**
19
- * Hover/focus tooltip built on the Popover API: the tip lives in the top layer,
20
- * so no portal, no z-index management, and no clipping by an `overflow: hidden`
21
- * ancestor — which is what breaks tooltips inside table cells and inside
22
- * Collapsible items (they carry `contain: layout style paint`).
23
- */
24
- export declare function useTooltip(tooltip: TooltipProp | undefined): UseTooltipResult;
@@ -1,16 +0,0 @@
1
- /**
2
- * Where floating layers (Select and Suggest dropdowns today; Dialog and Popover when they
3
- * land) render.
4
- *
5
- * `null` means "no provider" — every consumer falls back to `document.body`, which is what
6
- * they did before this context existed. So adding the context changed nothing for apps that
7
- * do not mount a `UIProvider`.
8
- *
9
- * Why it is worth having one owned node rather than body: everything floating shares a single
10
- * stacking context that the library controls. Portalling straight to body puts each layer in
11
- * whatever z-index race the host app happens to have — the class of problem behind the
12
- * loading overlay that covered a confirm dialog and locked the app.
13
- */
14
- export declare const UIPortalContext: import("react").Context<HTMLElement | null>;
15
- /** The container floating layers should portal into. Falls back to `document.body`. */
16
- export declare const useUIPortalContainer: () => HTMLElement | null;
@@ -1,54 +0,0 @@
1
- import React from 'react';
2
- import type { FieldProviderProps } from '../../../published/dcs-ui/src/publicTypes';
3
- import type { ToastDefaults } from '../Toast/toast.types';
4
- import { type ResolvedUITheme, type UITheme } from './UIThemeContext';
5
- export interface UIProviderProps extends Pick<FieldProviderProps, 'size' | 'variant' | 'layout'> {
6
- children?: React.ReactNode;
7
- /**
8
- * Theme to apply, written to `data-theme` on the root element.
9
- *
10
- * **Omit it entirely** if the host app already manages `data-theme` — the provider then
11
- * never touches the DOM, and `useUITheme` throws rather than pretending to be in charge.
12
- * `'system'` follows the OS and keeps following it.
13
- */
14
- theme?: UITheme;
15
- /** Called whenever the theme changes, including the first resolve of `'system'`. */
16
- onThemeChange?: (resolved: ResolvedUITheme, requested: UITheme) => void;
17
- /**
18
- * Node for floating layers to portal into. Pass one to control placement yourself;
19
- * omit and the provider creates and owns a single container appended to `<body>`.
20
- * Pass `false` to opt out entirely, leaving every layer on `document.body`.
21
- */
22
- portalContainer?: HTMLElement | false;
23
- /**
24
- * Defaults for every toast — position, autoClose, limit, newestOnTop. The host is mounted
25
- * either way; this only configures it, so `useToast()` works with no setup.
26
- */
27
- toast?: ToastDefaults;
28
- }
29
- /**
30
- * One optional wrapper for everything a design system needs at RUNTIME: the theme, a stacking
31
- * context for floating layers, and field defaults for the tree below.
32
- *
33
- * Optional is the point. Every component works standalone with sensible defaults — this only
34
- * ADDS. A library that throws without its provider turns a one-line install into a setup
35
- * chore.
36
- *
37
- * Its real value is not the saved setup line, it is that it is an abstraction boundary: the
38
- * portal container can change, a toast host can appear, theming can gain persistence — none
39
- * of which is a breaking change for anyone already wrapping their app.
40
- *
41
- * It DOES host the dialog and toast layers (`useDialog`, `useToast`), because both need a host
42
- * somewhere and making every call site render one is the mistake this replaces.
43
- *
44
- * NOT here on purpose:
45
- * - **Stylesheet.** `import '@dcs-tech/ui/style.css'` stays explicit. Side-effect importing
46
- * it from the bundle takes CSS-order control away from consumers and breaks in setups that
47
- * do not process CSS imports out of node_modules.
48
- *
49
- * It also hosts the toast layer (`useToast`), for the same reason — and because owning it is
50
- * what removes `react-toastify`'s `<ToastContainer>` mount contract, which every consuming app
51
- * would otherwise have to remember and configure identically.
52
- */
53
- declare const UIProvider: React.FC<UIProviderProps>;
54
- export default UIProvider;
@@ -1,17 +0,0 @@
1
- /** What the app asks for. `system` follows the OS and keeps following it. */
2
- export type UITheme = 'light' | 'dark' | 'system';
3
- /** What is actually on screen — `system` is resolved to one of the two. */
4
- export type ResolvedUITheme = 'light' | 'dark';
5
- export interface UIThemeValue {
6
- theme: UITheme;
7
- resolvedTheme: ResolvedUITheme;
8
- setTheme: (theme: UITheme) => void;
9
- }
10
- export declare const UIThemeContext: import("react").Context<UIThemeValue | null>;
11
- /**
12
- * Read or change the theme.
13
- *
14
- * Throws outside a `UIProvider` that manages theme, rather than returning a plausible
15
- * default: a silent `'light'` would make a broken toggle look like a working one.
16
- */
17
- export declare const useUITheme: () => UIThemeValue;
@@ -1,78 +0,0 @@
1
- export { Tooltip, TooltipHelpIcon, useTooltip } from './Tooltip';
2
- export type { TooltipHelpIconProps, UseTooltipResult } from './Tooltip';
3
- export type { TooltipProps, TooltipProp, TooltipConfig, TooltipPlacement, TooltipTrigger, } from '../../published/dcs-ui/src/publicTypes';
4
- export { Typography } from './Typography';
5
- export type { TypographyProps, TypographyVariant, TypographyColor, TypographyAlign, TypographyWeight, TypographyTransform, TypographyDecoration, TypographyComponent, TruncateConfig, GradientConfig, } from './Typography';
6
- export { Button, ButtonGroup } from './Button';
7
- export type { ButtonProps, ButtonGroupProps, ButtonVariant, ButtonSize, ButtonColor, ButtonShape, LoadingPosition, GroupOrientation, ButtonGroupContextValue, } from './Button';
8
- export { FieldWrapper } from './FieldWrapper';
9
- export type { FieldWrapperProps, FieldLayout, FieldSize, } from './FieldWrapper';
10
- export { FieldContext, FieldProvider, useFieldContext, useFieldSurface, useToggleSurface, useField, useFormKeyboard, } from './FieldContext';
11
- export type { FieldContextValue, FieldProviderProps, FieldSurfaceInput, FieldSurfaceDefaults, ResolvedFieldSurface, ResolvedToggleSurface, UseFieldOptions, UseFieldResult, UseFormKeyboardOptions, } from './FieldContext';
12
- export type { BaseFieldProps, TextFieldProps, ToggleFieldProps, FieldIdentityProps, FieldChromeProps, FieldA11yProps, FieldInteractionProps, FieldSurfaceProps, ControlSurfaceProps, ToggleSurfaceProps, FieldPopupProps, FieldHandle, FieldFocusEvent, OpenReason, FieldKeyboardConfig, FieldWidget, FieldKeyState, FieldKeyAction, KeyResolution, KeyEventLike, NavAction, GridMode, } from '../../published/dcs-ui/src/publicTypes';
13
- export type { ControlSize, ControlVariant, ControlLayout, ControlLabelPosition, ToggleVariant, SemanticColor, FieldColor, FieldChangeEvent, FieldChangeTarget, FieldCellContext, } from '../../published/dcs-ui/src/publicTypes';
14
- export { DEFAULT_CONTROL_SIZE } from '../../published/dcs-ui/src/publicTypes';
15
- export { Checkbox, CheckboxGroup } from './Checkbox';
16
- export type { CheckboxProps, CheckboxGroupProps, CheckboxVariant, CheckboxSize, CheckboxLabelPosition, CheckboxColor, CheckboxGroupContextValue, } from './Checkbox';
17
- export { Radio, RadioGroup } from './Radio';
18
- export type { RadioProps, RadioGroupProps, RadioVariant, RadioSize, RadioLabelPosition, RadioColor, RadioGroupContextValue, } from './Radio';
19
- export { Switch } from './Switch';
20
- export type { SwitchProps, SwitchSize, SwitchLabelPosition, SwitchColor, } from './Switch';
21
- export { Input } from './Input';
22
- export type { InputProps, InputType, InputVariant, InputSize, InputLayout, ValidationConfig, IconConfig, } from './Input';
23
- export { Select, useSelect } from './Select';
24
- export type { SelectProps, SelectOption, SelectSize, SelectLayout, SelectState, SelectEvent, SelectAccessibilityConfig, UseSelectReturn, UseSelectConfig, MultiSelectConfig, SearchConfig, SortConfig, ReorderConfig, GroupConfig, VirtualScrollConfig, KeyboardConfig, DropdownPosition, PositionConfig, EmptyStateConfig, LoadingConfig, ChipProps, GroupDisplayProps, OptionItemProps, AutoScrollState, DropdownDimensions, OptionValue, } from './Select';
25
- export { Suggest, SuggestionList, useSuggest } from './Suggest';
26
- export { FORMATTER_UTILITY_CLASSES, SUGGEST_SEARCH_ENGINE_OPTIONS, SUGGEST_SEARCH_MODE_OPTIONS, } from './Suggest';
27
- export type { SuggestProps, SuggestSize, SuggestLayout, SuggestSearchEngine, SuggestSearchMode, RenderKey, SuggestionConfig, SuggestionItemProps, SuggestionListProps, SuggestionGroup, UseSuggestOptions, UseSuggestReturn, SuggestSearchOptions, } from './Suggest';
28
- export { Collapsible, CollapsibleItem, CollapsibleContext, useCollapsibleContext } from './Collapsible';
29
- export type { CollapsibleProps, CollapsibleItemProps, CollapsibleContextValue, CollapsibleVariant, CollapsibleSize, CollapsibleColor, CollapsibleIconPosition, CollapsibleExpansionMode, CollapsibleAuthorize, } from './Collapsible';
30
- export { Fields, Field } from './Fields';
31
- export { useFieldCondition, useFieldRender, useFieldDisabled, useFieldValue, useFieldChange, useFieldBlur, useFieldValidation, useFieldSelect, } from './Fields';
32
- export type { FieldsProps, FieldProps, FieldsBaseProps, FieldsWithSetState, FieldsWithOnChange, FieldDefinition, FieldsDefinition, FieldAuthorize, FieldTooltipProps, FieldComponentRegistry, FieldEditableTableProps, BaseFieldDefinition, InputFieldDefinition, SwitchFieldDefinition, SelectFieldDefinition, SuggestFieldDefinition, RadioFieldDefinition, CheckboxFieldDefinition, ButtonFieldDefinition, ChildFieldDefinition, EditableTableFieldDefinition, ChipInputFieldDefinition, ConditionOperator, ConditionCompareType, ConditionObject, ConditionRegexObject, ConditionFunction, ConditionSimpleKey, Condition, ConditionContext, NestedKeys, NestedValue, ResetKeyConfig, SelectCopyKeyConfig, ChangeContext, ChangeAdditionalDataContext, SelectAdditionalDataContext, EditableTableCustomPropContext, ErrorObject, TouchedObject, } from './Fields';
33
- export { Form } from './Form';
34
- export type { FormProps, FormMethods, FormSection, FormAction, FormValidation, FormHeader, FormFooter, FormCallbacks, FormState, FormLayout, FormSize, FormVariant, } from './Form';
35
- export { ChipInput, useChipSuggestions } from './ChipInput';
36
- export { parseFormat, resolveFormat, extractPlaceholders, validateFormat, } from './ChipInput';
37
- export type { ChipInputProps, ChipInputSize, ChipInputLayout, ChipKey, ChipSource, ChipSources, ChipSuggestionItem, GroupedSuggestions, ParsedSegment, ResolveOptions, ExtractedPlaceholder, FormatValidationResult, UseChipSuggestionsOptions, UseChipSuggestionsReturn, } from './ChipInput';
38
- export { EditableTable, EditableTableRow, EditableTableActions, EditableTableCell, EditableTableSummary, useEditableTable } from './EditableTable';
39
- export type { EditableTableProps, EditableTableRowProps, EditableTableActionsProps, EditableTableColumnDefinition, EditableTableFocusState, EditableTableCopyConfig, EditableTableAddConfig, EditableTableDeleteConfig, EditableTableFooterConfig, EditableTableSummaryContext, EditableTableSummaryActions, TableColumnDisplayProps, TableSummaryConfig, ColumnSummaryConfig, SummaryItem, SummaryGroup, CellStyle, ColumnAlign, ColumnSticky, } from './EditableTable';
40
- export { ColorSchemeSelect } from './ColorSchemeSelect';
41
- export type { ColorSchemeSelectProps } from './ColorSchemeSelect';
42
- export { UIProvider, useUIPortalContainer, useUITheme } from './UIProvider';
43
- export type { UIProviderProps, UITheme, ResolvedUITheme, UIThemeValue } from './UIProvider';
44
- export { Skeleton } from './Skeleton';
45
- export type { SkeletonProps, SkeletonVariant, SkeletonAnimation } from './Skeleton';
46
- export { Badge } from './Badge';
47
- export type { BadgeProps, BadgeColor, BadgeVariant, BadgeSize } from './Badge';
48
- export { Avatar, AvatarGroup } from './Avatar';
49
- export type { AvatarProps, AvatarGroupProps, AvatarSize, AvatarShape } from './Avatar';
50
- export { Card } from './Card';
51
- export type { CardProps, CardVariant, CardPadding } from './Card';
52
- export { Popover } from './Popover';
53
- export type { PopoverProps } from './Popover';
54
- export { DropdownMenu } from './DropdownMenu';
55
- export type { DropdownMenuProps, DropdownMenuItem } from './DropdownMenu';
56
- export { Dialog } from './Dialog';
57
- export type { DialogProps, DialogPlacement, DialogSize } from './Dialog';
58
- export { useDialog } from './Dialog/DialogHost';
59
- export type { DialogApi, DialogChoice, DialogActionProps, ConfirmOptions, ChooseOptions, AlertOptions, } from './Dialog/DialogHost';
60
- export { ToastHost, useToast } from './Toast';
61
- export type { ToastApi, ToastDefaults, ToastOptions, ToastPosition, ToastRecord, ToastType, ToastHostProps, } from './Toast';
62
- export { Tabs, TabPanel } from './Tabs';
63
- export type { TabsProps, TabItem, TabsVariant, TabsSize, TabPanelProps } from './Tabs';
64
- export { CommandPalette } from './CommandPalette';
65
- export type { CommandPaletteProps, CommandPaletteItem } from './CommandPalette';
66
- export { Sidebar } from './Sidebar';
67
- export type { SidebarProps } from './Sidebar';
68
- export { AppBar } from './AppBar';
69
- export type { AppBarProps, AppBarSize, AppBarVariant } from './AppBar';
70
- export { Breadcrumbs } from './Breadcrumbs';
71
- export type { BreadcrumbsProps } from './Breadcrumbs';
72
- export type { NavItem } from '../../published/dcs-ui/src/publicTypes';
73
- export { ReportPreview, canSaveTemplate } from './ReportPreview';
74
- export type { ReportPreviewProps } from './ReportPreview';
75
- export { ReportDesigner, BandList, BAND_KINDS, Inspector, BlockEditor, TableEditor, ColumnEditor, AlignedRowsEditor, ConditionEditor, conditionSummary, StyleEditor, FormatEditor, FieldSelect, FieldPicker, OptionsEditor, WatermarkEditor, } from './ReportDesigner';
76
- export type { ReportDesignerProps, BandListProps, InspectorProps, TemplateEdit, EditorContext, BlockEditorProps, TableEditorProps, ColumnEditorProps, AlignedRowsEditorProps, ConditionEditorProps, StyleEditorProps, FormatEditorProps, FieldSelectProps, } from './ReportDesigner';
77
- export { useArrowKeyFocus } from './ArrowKeyFocus/useArrowKeyFocus';
78
- export type { ArrowKeyFocusOptions, ArrowKeyFocusHandlers } from './ArrowKeyFocus/useArrowKeyFocus';