@ostack.tech/ui 1.2.0-beta.0 → 1.2.0-beta.1

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 (256) hide show
  1. package/dist/chunks/en-DGLb7rrz.js.map +1 -1
  2. package/dist/locales/fr-FR.js.map +1 -1
  3. package/dist/locales/pt-PT.js.map +1 -1
  4. package/dist/ostack-ui.css +8 -16
  5. package/dist/ostack-ui.js +26831 -7981
  6. package/dist/ostack-ui.js.map +1 -1
  7. package/package.json +15 -13
  8. package/scss/components/Button/_Button.scss +4 -18
  9. package/scss/components/ButtonGroup/_ButtonGroup.scss +2 -6
  10. package/scss/components/Calendar/_Calendar-variables.scss +4 -12
  11. package/scss/components/Calendar/_Calendar.scss +19 -38
  12. package/scss/components/Card/_Card-variables.scss +4 -12
  13. package/scss/components/Card/_Card.scss +8 -28
  14. package/scss/components/Collapsible/_Collapsible.scss +2 -8
  15. package/scss/components/CommandMenu/_CommandMenu-variables.scss +2 -6
  16. package/scss/components/CommandMenu/_CommandMenu.scss +5 -13
  17. package/scss/components/ControlAddon/_ControlAddon-variables.scss +4 -12
  18. package/scss/components/ControlAddon/_ControlAddon.scss +16 -52
  19. package/scss/components/DataTable/_DataTable.scss +1 -2
  20. package/scss/components/DateRangeInput/_DateRangeInput-variables.scss +1 -3
  21. package/scss/components/DateRangeInput/_DateRangeInput.scss +7 -21
  22. package/scss/components/Dialog/_Dialog.scss +6 -19
  23. package/scss/components/DropdownMenu/_DropdownMenu.scss +1 -2
  24. package/scss/components/Feedback/_Feedback-variables.scss +1 -6
  25. package/scss/components/Feedback/_Feedback.scss +8 -33
  26. package/scss/components/FieldGroup/_FieldGroup.scss +1 -4
  27. package/scss/components/Grid/_Grid.scss +4 -12
  28. package/scss/components/HelperText/_HelperText.scss +1 -4
  29. package/scss/components/Input/_Input.scss +11 -32
  30. package/scss/components/Label/_Label.scss +2 -6
  31. package/scss/components/Link/_Link.scss +1 -2
  32. package/scss/components/MenuList/_MenuList.scss +2 -6
  33. package/scss/components/Overlay/_Overlay-variables.scss +1 -3
  34. package/scss/components/Overlay/_Overlay.scss +2 -4
  35. package/scss/components/Root/_Root.scss +4 -16
  36. package/scss/components/Select/_Select-variables.scss +4 -12
  37. package/scss/components/Select/_Select.scss +1 -2
  38. package/scss/components/Separator/_Separator.scss +2 -8
  39. package/scss/components/Spinner/_Spinner.scss +2 -8
  40. package/scss/components/Stepper/_Stepper-variables.scss +5 -15
  41. package/scss/components/Stepper/_Stepper.scss +2 -5
  42. package/scss/components/Table/_Table-variables.scss +16 -47
  43. package/scss/components/Table/_Table.scss +30 -112
  44. package/scss/components/Tabs/_Tabs-variables.scss +15 -43
  45. package/scss/components/Tabs/_Tabs.scss +13 -46
  46. package/scss/components/Tag/_Tag-variables.scss +1 -4
  47. package/scss/components/Tag/_Tag.scss +5 -14
  48. package/scss/components/Toast/_Toast.scss +3 -8
  49. package/scss/components/Tooltip/_Tooltip-variables.scss +1 -3
  50. package/scss/components/Tooltip/_Tooltip.scss +4 -12
  51. package/scss/scss/_base-variables.scss +6 -7
  52. package/scss/scss/placeholders/button/_button.scss +2 -8
  53. package/scss/scss/placeholders/checkable/_checkable.scss +15 -60
  54. package/scss/scss/placeholders/control/_control-variables.scss +3 -10
  55. package/scss/scss/placeholders/control/_control.scss +10 -38
  56. package/scss/scss/placeholders/menu/_menu-variables.scss +14 -42
  57. package/scss/scss/placeholders/menu/_menu.scss +22 -82
  58. package/scss/scss/placeholders/notification/_notification.scss +2 -4
  59. package/scss/scss/placeholders/popover/_popover-variables.scss +1 -3
  60. package/scss/scss/placeholders/popover/_popover.scss +4 -11
  61. package/scss/scss/utils/_breakpoints.scss +1 -4
  62. package/scss/scss/utils/_responsive-values.scss +2 -5
  63. package/scss/scss/utils/_spinner.scss +1 -2
  64. package/types/components/Actions/Action.d.ts +6 -6
  65. package/types/components/Actions/ActionGroup.d.ts +10 -14
  66. package/types/components/Actions/ActionMenu.d.ts +13 -17
  67. package/types/components/Actions/ActionSplit.d.ts +4 -4
  68. package/types/components/Actions/Actions.d.ts +20 -25
  69. package/types/components/Actions/ActionsSecondary.d.ts +1 -1
  70. package/types/components/Alert/Alert.d.ts +8 -9
  71. package/types/components/Alert/AlertTitle.d.ts +3 -3
  72. package/types/components/AlertDialog/AlertDialog.d.ts +16 -20
  73. package/types/components/AlertDialog/AlertDialogAction.d.ts +2 -2
  74. package/types/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
  75. package/types/components/AlertDialog/AlertDialogContent.d.ts +2 -3
  76. package/types/components/AlertDialog/AlertDialogDescription.d.ts +4 -5
  77. package/types/components/Button/Button.d.ts +32 -39
  78. package/types/components/ButtonGroup/ButtonGroup.d.ts +3 -3
  79. package/types/components/Calendar/Calendar.d.ts +2 -3
  80. package/types/components/Calendar/CalendarDay.d.ts +3 -4
  81. package/types/components/Calendar/CalendarHeader.d.ts +2 -2
  82. package/types/components/Card/Card.d.ts +6 -13
  83. package/types/components/Card/CardBody.d.ts +3 -3
  84. package/types/components/Card/CardFooter.d.ts +3 -3
  85. package/types/components/Card/CardHeader.d.ts +3 -3
  86. package/types/components/Card/CardTitle.d.ts +3 -3
  87. package/types/components/Checkbox/Checkbox.d.ts +17 -29
  88. package/types/components/CheckboxGroup/CheckboxGroup.d.ts +24 -38
  89. package/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +5 -6
  90. package/types/components/CloseButton/CloseButton.d.ts +1 -1
  91. package/types/components/Code/Code.d.ts +4 -5
  92. package/types/components/Collapsible/Collapsible.d.ts +3 -9
  93. package/types/components/Collapsible/CollapsibleTrigger.d.ts +1 -4
  94. package/types/components/CommandMenu/CommandMenu.d.ts +6 -7
  95. package/types/components/CommandMenu/CommandMenuDialog.d.ts +6 -10
  96. package/types/components/CommandMenu/CommandMenuItem.d.ts +3 -3
  97. package/types/components/CommandMenu/cmdk/index.d.ts +73 -112
  98. package/types/components/Container/Container.d.ts +17 -21
  99. package/types/components/Control/Control.d.ts +21 -27
  100. package/types/components/Control/ControlWithContainerRef.d.ts +5 -6
  101. package/types/components/ControlAddon/ControlAddon.d.ts +9 -13
  102. package/types/components/ControlCode/ControlCode.d.ts +5 -8
  103. package/types/components/DataTable/DataTable.d.ts +59 -90
  104. package/types/components/DataTable/DataTableApi.d.ts +11 -12
  105. package/types/components/DataTable/DataTableColumn.d.ts +18 -21
  106. package/types/components/DataTable/DataTableColumnGroup.d.ts +3 -4
  107. package/types/components/DataTable/DataTableColumns.d.ts +4 -4
  108. package/types/components/DataTable/DataTableContent.d.ts +2 -5
  109. package/types/components/DataTable/DataTableEmptyOrLoadingRows.d.ts +1 -4
  110. package/types/components/DataTable/DataTableFilter.d.ts +3 -3
  111. package/types/components/DataTable/DataTablePagination.d.ts +5 -9
  112. package/types/components/DataTable/DataTableRowsPerPage.d.ts +4 -5
  113. package/types/components/DataTable/DataTableSelectionTrigger.d.ts +5 -11
  114. package/types/components/DataTable/PagedDataTablePagination.d.ts +1 -1
  115. package/types/components/DataTable/PagedDataTableRows.d.ts +1 -1
  116. package/types/components/DataTable/ScrolledDataTableRows.d.ts +1 -1
  117. package/types/components/DataTable/index.d.ts +1 -1
  118. package/types/components/DataTable/{getRowKey.d.ts → keyUtils.d.ts} +2 -0
  119. package/types/components/DataTable/spliceWindow.d.ts +3 -4
  120. package/types/components/DateInput/DateInput.d.ts +21 -34
  121. package/types/components/DateRangeInput/DateRangeInput.d.ts +41 -70
  122. package/types/components/DescriptionList/DescriptionList.d.ts +5 -10
  123. package/types/components/Dialog/Dialog.d.ts +9 -11
  124. package/types/components/Dialog/DialogContent.d.ts +3 -4
  125. package/types/components/Dialog/DialogDescription.d.ts +2 -3
  126. package/types/components/DropdownMenu/DropdownMenu.d.ts +10 -21
  127. package/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +1 -1
  128. package/types/components/DropdownMenu/DropdownMenuItem.d.ts +3 -3
  129. package/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +1 -1
  130. package/types/components/DropdownMenu/DropdownMenuSubContent.d.ts +1 -4
  131. package/types/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +1 -4
  132. package/types/components/ErrorBoundary/ErrorBoundary.d.ts +21 -27
  133. package/types/components/Feedback/Feedback.d.ts +6 -6
  134. package/types/components/Feedback/FeedbackPopover.d.ts +3 -3
  135. package/types/components/Feedback/FeedbackProvider.d.ts +3 -4
  136. package/types/components/Feedback/feedbackUtils.d.ts +5 -8
  137. package/types/components/Field/Field.d.ts +9 -11
  138. package/types/components/Field/fieldUtils.d.ts +2 -2
  139. package/types/components/FieldGroup/FieldGroup.d.ts +4 -5
  140. package/types/components/FieldGroup/FieldGroupBody.d.ts +3 -3
  141. package/types/components/FieldGroup/FieldGroupHeader.d.ts +4 -4
  142. package/types/components/FieldGroup/FieldGroupTitle.d.ts +3 -3
  143. package/types/components/Form/Form.d.ts +25 -40
  144. package/types/components/Form/FormContext.d.ts +2 -2
  145. package/types/components/Form/FormError.d.ts +6 -11
  146. package/types/components/Form/FormState.d.ts +2 -2
  147. package/types/components/Form/formUtils.d.ts +1 -1
  148. package/types/components/Form/useRegisterFormControl.d.ts +1 -1
  149. package/types/components/Grid/Grid.d.ts +19 -24
  150. package/types/components/Heading/Heading.d.ts +9 -10
  151. package/types/components/HelperText/HelperText.d.ts +3 -3
  152. package/types/components/HelperText/HelperTextProvider.d.ts +3 -4
  153. package/types/components/Icon/Icon.d.ts +9 -16
  154. package/types/components/IconButton/IconButton.d.ts +35 -53
  155. package/types/components/Input/Input.d.ts +5 -12
  156. package/types/components/Keybinds/KeyPress.d.ts +1 -1
  157. package/types/components/Keybinds/Keybind.d.ts +1 -1
  158. package/types/components/Keybinds/Keybinds.d.ts +3 -9
  159. package/types/components/Keyboard/Keyboard.d.ts +7 -8
  160. package/types/components/Label/Label.d.ts +5 -6
  161. package/types/components/Label/LabelProvider.d.ts +3 -4
  162. package/types/components/Label/labelUtils.d.ts +2 -2
  163. package/types/components/Layer/Layer.d.ts +4 -4
  164. package/types/components/Link/Link.d.ts +13 -13
  165. package/types/components/Mark/Mark.d.ts +6 -7
  166. package/types/components/MenuList/MenuList.d.ts +6 -7
  167. package/types/components/MenuList/MenuListGroup.d.ts +5 -6
  168. package/types/components/MenuList/MenuListItem.d.ts +21 -25
  169. package/types/components/NumericInput/NumericInput.d.ts +20 -34
  170. package/types/components/NumericInput/numericInputUtils.d.ts +4 -5
  171. package/types/components/Output/Output.d.ts +12 -13
  172. package/types/components/Popover/Popover.d.ts +6 -13
  173. package/types/components/Popover/PopoverAnchor.d.ts +2 -2
  174. package/types/components/Popover/PopoverTrigger.d.ts +2 -2
  175. package/types/components/Portal/Portal.d.ts +3 -4
  176. package/types/components/Printer/Printer.d.ts +40 -54
  177. package/types/components/Printer/PrinterContent.d.ts +6 -6
  178. package/types/components/Printer/PrinterContentContext.d.ts +4 -5
  179. package/types/components/Printer/PrinterContext.d.ts +4 -4
  180. package/types/components/Printer/PrinterTrigger.d.ts +5 -6
  181. package/types/components/Printer/index.d.ts +1 -1
  182. package/types/components/RadioGroup/Radio.d.ts +10 -13
  183. package/types/components/RadioGroup/RadioGroup.d.ts +21 -34
  184. package/types/components/Root/Root.d.ts +21 -27
  185. package/types/components/Root/RootContext.d.ts +1 -4
  186. package/types/components/Select/Option.d.ts +3 -3
  187. package/types/components/Select/Select.d.ts +14 -26
  188. package/types/components/Select/SelectNative.d.ts +1 -1
  189. package/types/components/Separator/Separator.d.ts +3 -4
  190. package/types/components/Slot/Slottable.d.ts +1 -4
  191. package/types/components/Spinner/Spinner.d.ts +5 -12
  192. package/types/components/Stack/Stack.d.ts +9 -13
  193. package/types/components/Stepper/Step.d.ts +6 -6
  194. package/types/components/Stepper/StepContent.d.ts +3 -3
  195. package/types/components/Stepper/StepList.d.ts +4 -5
  196. package/types/components/Stepper/Stepper.d.ts +4 -5
  197. package/types/components/Stepper/StepperFinishTrigger.d.ts +3 -9
  198. package/types/components/Stepper/StepperNextTrigger.d.ts +3 -6
  199. package/types/components/Stepper/StepperPreviousTrigger.d.ts +4 -10
  200. package/types/components/Table/Table.d.ts +42 -58
  201. package/types/components/Table/TableCell.d.ts +15 -19
  202. package/types/components/Table/TableColumn.d.ts +15 -27
  203. package/types/components/Table/TableColumnGroup.d.ts +2 -3
  204. package/types/components/Table/TableHead.d.ts +5 -5
  205. package/types/components/Tabs/TabContent.d.ts +2 -2
  206. package/types/components/Tabs/TabList.d.ts +1 -1
  207. package/types/components/Tabs/Tabs.d.ts +4 -8
  208. package/types/components/Tag/Tag.d.ts +8 -8
  209. package/types/components/TextArea/TextArea.d.ts +7 -13
  210. package/types/components/Toast/Toast.d.ts +25 -38
  211. package/types/components/Toast/ToastProvider.d.ts +2 -5
  212. package/types/components/Toast/ToastViewport.d.ts +2 -5
  213. package/types/components/Tooltip/Tooltip.d.ts +11 -11
  214. package/types/components/VisuallyHidden/VisuallyHidden.d.ts +7 -11
  215. package/types/index.d.ts +2 -1
  216. package/types/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +17 -19
  217. package/types/providers/AlertDialogProvider/useAlertDialog.d.ts +50 -58
  218. package/types/providers/DocumentTitleProvider/DocumentTitle.d.ts +1 -4
  219. package/types/providers/ErrorReportingProvider/ErrorReport.d.ts +4 -7
  220. package/types/providers/ErrorReportingProvider/ErrorReportingProvider.d.ts +12 -17
  221. package/types/providers/LocalizationProvider/useLocale.d.ts +1 -4
  222. package/types/providers/PrefixProvider/defaultPrefix.d.ts +2 -3
  223. package/types/providers/PrefixProvider/usePrefix.d.ts +3 -6
  224. package/types/providers/ToastManagerProvider/ToastManagerContext.d.ts +3 -3
  225. package/types/providers/ToastManagerProvider/useToastManager.d.ts +11 -14
  226. package/types/utils/__tests__/useCombinedRef.test.d.ts +1 -0
  227. package/types/utils/breakpoints.d.ts +5 -6
  228. package/types/utils/combineAriaIds.d.ts +1 -1
  229. package/types/utils/cx.d.ts +2 -5
  230. package/types/utils/filtering.d.ts +2 -2
  231. package/types/utils/keyboardShortcut.d.ts +18 -25
  232. package/types/utils/navigate.d.ts +2 -2
  233. package/types/utils/numericStringUtils.d.ts +6 -13
  234. package/types/utils/parseChildren.d.ts +5 -9
  235. package/types/utils/reactCompilerUtils.d.ts +7 -0
  236. package/types/utils/setNativeProperty.d.ts +2 -3
  237. package/types/utils/sorting.d.ts +2 -2
  238. package/types/utils/useCombinedEventHandler.d.ts +30 -0
  239. package/types/utils/useCombinedRef.d.ts +6 -4
  240. package/types/utils/useCssVars.d.ts +9 -20
  241. package/types/utils/useDateTransformer.d.ts +4 -8
  242. package/types/utils/useIntersectionObserver.d.ts +2 -5
  243. package/types/utils/useLatestRef.d.ts +1 -2
  244. package/types/utils/useLocation.d.ts +5 -8
  245. package/types/utils/useMeasure.d.ts +2 -5
  246. package/types/utils/useMediaQuery.d.ts +1 -4
  247. package/types/utils/useNumericTransformer.d.ts +12 -19
  248. package/types/utils/usePrevious.d.ts +3 -4
  249. package/types/utils/useResponsiveValues.d.ts +7 -10
  250. package/types/utils/useScrollPosition.d.ts +1 -6
  251. package/types/utils/useSearchParam.d.ts +2 -6
  252. package/types/utils/useSearchParams.d.ts +1 -4
  253. package/types/utils/useSpacing.d.ts +1 -4
  254. package/types/utils/zustandUtils.d.ts +3 -2
  255. package/types/utils/combineEventHandlers.d.ts +0 -24
  256. /package/types/utils/__tests__/{combineEventHandlers.test.d.ts → useCombinedEventHandler.test.d.ts} +0 -0
@@ -6,14 +6,14 @@ export type ContainerSize = Exclude<Breakpoint, "xs">;
6
6
  /** Properties of the container component. */
7
7
  export interface ContainerProps extends ComponentProps<"div"> {
8
8
  /**
9
- * Change the component to the HTML tag or custom component of the only child.
10
- * This will merge the original component props with the props of the supplied
11
- * element/component and change the underlying DOM node.
9
+ * Change the component to the HTML tag or custom component of the only child. This will merge the
10
+ * original component props with the props of the supplied element/component and change the
11
+ * underlying DOM node.
12
12
  */
13
13
  asChild?: boolean;
14
14
  /**
15
- * Sets the container's width to `100%` up to the specified breakpoint (or at
16
- * all times when `true`).
15
+ * Sets the container's width to `100%` up to the specified breakpoint (or at all times when
16
+ * `true`).
17
17
  *
18
18
  * @default "sm"
19
19
  */
@@ -21,44 +21,40 @@ export interface ContainerProps extends ComponentProps<"div"> {
21
21
  /**
22
22
  * Control how wide the container is allowed to grow.
23
23
  *
24
- * By default, no maximum width is set. Unless `fluid` is set to `true`, the
25
- * container is effectively capped by the largest breakpoint (`"xxl"`).
24
+ * By default, no maximum width is set. Unless `fluid` is set to `true`, the container is
25
+ * effectively capped by the largest breakpoint (`"xxl"`).
26
26
  */
27
27
  maxWidth?: ContainerSize | number | (string & {});
28
28
  /**
29
- * Size of the left and right margins of the container. When a number is
30
- * provided, each unit corresponds to `var(--o-ui-space)`.
29
+ * Size of the left and right margins of the container. When a number is provided, each unit
30
+ * corresponds to `var(--o-ui-space)`.
31
31
  *
32
- * A responsive value may be provided to change the gutter size based on the
33
- * current breakpoint.
32
+ * A responsive value may be provided to change the gutter size based on the current breakpoint.
34
33
  *
35
34
  * @default 2.5
36
35
  */
37
36
  gutter?: Responsive<number | string>;
38
37
  /**
39
- * Size of the left margin of the container. When a number is provided, each
40
- * unit corresponds to `var(--o-ui-space)`.
38
+ * Size of the left margin of the container. When a number is provided, each unit corresponds to
39
+ * `var(--o-ui-space)`.
41
40
  *
42
- * A responsive value may be provided to change the gutter size based on the
43
- * current breakpoint.
41
+ * A responsive value may be provided to change the gutter size based on the current breakpoint.
44
42
  *
45
43
  * @default gutter
46
44
  */
47
45
  leftGutter?: Responsive<number | string>;
48
46
  /**
49
- * Size of the right margin of the container.When a number is provided, each
50
- * unit corresponds to `var(--o-ui-space)`.
47
+ * Size of the right margin of the container.When a number is provided, each unit corresponds to
48
+ * `var(--o-ui-space)`.
51
49
  *
52
- * A responsive value may be provided to change the gutter size based on the
53
- * current breakpoint.
50
+ * A responsive value may be provided to change the gutter size based on the current breakpoint.
54
51
  *
55
52
  * @default gutter
56
53
  */
57
54
  rightGutter?: Responsive<number | string>;
58
55
  }
59
56
  /**
60
- * The container component is used to constrain the maximum width of its
61
- * content.
57
+ * The container component is used to constrain the maximum width of its content.
62
58
  *
63
59
  * Example usage:
64
60
  *
@@ -18,9 +18,9 @@ export type ControlShowClearButton = boolean | "auto";
18
18
  /** Base properties of the control component. */
19
19
  type ControlPropsBase<TElem extends ElementType, TValue, TAcceptedValue = TValue> = Omit<ComponentProps<TElem>, "children" | "type" | "multiple" | "defaultValue" | "value"> & {
20
20
  /**
21
- * Change the component to the HTML tag or custom component of the only child.
22
- * This will merge the original component props with the props of the supplied
23
- * element/component and change the underlying DOM node.
21
+ * Change the component to the HTML tag or custom component of the only child. This will merge the
22
+ * original component props with the props of the supplied element/component and change the
23
+ * underlying DOM node.
24
24
  */
25
25
  asChild?: boolean;
26
26
  children?: ReactNode;
@@ -41,8 +41,8 @@ type ControlPropsBase<TElem extends ElementType, TValue, TAcceptedValue = TValue
41
41
  /** Whether the control should be rendered as read-only. */
42
42
  readOnly?: boolean;
43
43
  /**
44
- * Control's style variant. Defaults to the default variant unless when
45
- * rendering inside a table cell (in which it defaults to `"cell"`).
44
+ * Control's style variant. Defaults to the default variant unless when rendering inside a table
45
+ * cell (in which it defaults to `"cell"`).
46
46
  */
47
47
  variant?: ControlVariant;
48
48
  /** Sets the status of the control. */
@@ -52,15 +52,13 @@ type ControlPropsBase<TElem extends ElementType, TValue, TAcceptedValue = TValue
52
52
  /**
53
53
  * Renders the control in a **loading** state.
54
54
  *
55
- * When `true`, the control is “soft-disabled”: it looks disabled and ignores
56
- * user interaction but remains focusable. By default, a spinner is shown
57
- * (i.e. `showSpinner` is set to `true` unless overridden).
55
+ * When `true`, the control is “soft-disabled”: it looks disabled and ignores user interaction but
56
+ * remains focusable. By default, a spinner is shown (i.e. `showSpinner` is set to `true` unless
57
+ * overridden).
58
58
  *
59
- * The control's accessible description while loading can be controlled via
60
- * `loadingDescription`.
59
+ * The control's accessible description while loading can be controlled via `loadingDescription`.
61
60
  *
62
- * To only show a spinner without “soft-disabling” the control, set
63
- * `showSpinner` instead.
61
+ * To only show a spinner without “soft-disabling” the control, set `showSpinner` instead.
64
62
  *
65
63
  * @default false
66
64
  */
@@ -70,12 +68,11 @@ type ControlPropsBase<TElem extends ElementType, TValue, TAcceptedValue = TValue
70
68
  /**
71
69
  * Whether to show a spinner in the control.
72
70
  *
73
- * Defaults to the value of the `loading` property. In most cases, prefer
74
- * `loading`, which also “soft-disables” the control.
71
+ * Defaults to the value of the `loading` property. In most cases, prefer `loading`, which also
72
+ * “soft-disables” the control.
75
73
  *
76
- * Use `showSpinner` when you want a spinner **without** “soft-disabling” the
77
- * control. To “soft-disable” **without** a spinner, set `loading` to `true`
78
- * and `showSpinner` to `false`.
74
+ * Use `showSpinner` when you want a spinner **without** “soft-disabling” the control. To
75
+ * “soft-disable” **without** a spinner, set `loading` to `true` and `showSpinner` to `false`.
79
76
  *
80
77
  * @default loading
81
78
  */
@@ -87,26 +84,23 @@ type ControlPropsBase<TElem extends ElementType, TValue, TAcceptedValue = TValue
87
84
  /** Control's end adornment. */
88
85
  endAdornment?: ReactNode;
89
86
  /**
90
- * Whether to show a button to clear the control when it has content. Defaults
91
- * to `"auto"` when `type="search"`, `false` otherwise.
87
+ * Whether to show a button to clear the control when it has content. Defaults to `"auto"` when
88
+ * `type="search"`, `false` otherwise.
92
89
  */
93
90
  showClearButton?: ControlShowClearButton;
94
91
  /** Label of the clear button announced to assistive technologies. */
95
92
  clearButtonLabel?: string;
96
93
  /**
97
- * Accessible description for how to clear the control when the clear button
98
- * is visible.
94
+ * Accessible description for how to clear the control when the clear button is visible.
99
95
  *
100
- * This field should be provided when adding extra keybinds to clear the
101
- * control (e.g. the control is a file input and pressing Backspace/Delete
102
- * clears it).
96
+ * This field should be provided when adding extra keybinds to clear the control (e.g. the control
97
+ * is a file input and pressing Backspace/Delete clears it).
103
98
  */
104
99
  clearDescription?: ReactNode;
105
100
  /**
106
101
  * Function called when the focus moves out of the control as a whole.
107
102
  *
108
- * This is useful when there is a need to know when the user stops interacting
109
- * with the control.
103
+ * This is useful when there is a need to know when the user stops interacting with the control.
110
104
  */
111
105
  onBlurToOutside?: (event: FocusEvent) => void;
112
106
  /** Properties to pass to the root component. */
@@ -158,5 +152,5 @@ export interface ControlOutputProps extends ControlPropsBase<"output", never> {
158
152
  /** Properties of the control component. */
159
153
  export type ControlProps = ControlFileInputSingleProps | ControlFileInputMultipleProps | ControlNonFileInputProps | ControlSelectSingleProps | ControlSelectMultipleProps | ControlTextAreaProps | ControlOutputProps;
160
154
  /** Form control. */
161
- export declare function Control({ asChild, type, defaultValue, value, variant, status, code, loading, loadingDescription, showSpinner, align, startAdornment, endAdornment, showClearButton, clearDescription, clearButtonLabel, onValueChange, onBlurToOutside, rootProps, codeProps, containerProps, clearButtonProps, spinnerProps, name, id, className, required, disabled, readOnly, style, onChange, onFocus, onBlur, onClick, "aria-disabled": ariaDisabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ref, ...otherProps }: ControlProps): import("react").JSX.Element;
155
+ export declare function Control({ asChild, type, defaultValue, value, variant: variantProp, status, code, loading, loadingDescription: loadingDescriptionProp, showSpinner, align, startAdornment, endAdornment, showClearButton: showClearButtonProp, clearDescription, clearButtonLabel: clearButtonLabelProp, onValueChange, onBlurToOutside, rootProps, codeProps, containerProps, clearButtonProps, spinnerProps, name, id, className, required, disabled, readOnly, style, onChange, onFocus, onBlur, onClick, "aria-disabled": ariaDisabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ref, ...otherProps }: ControlProps): import("react").JSX.Element;
162
156
  export {};
@@ -10,12 +10,11 @@ export interface ControlWithContainerRefOwnProps {
10
10
  ref?: Ref<HTMLDivElement>;
11
11
  }
12
12
  /**
13
- * Utility control component whose `ref` is passed to the control's container.
14
- * Use `controlRef` to provide the control's ref instead.
13
+ * Utility control component whose `ref` is passed to the control's container. Use `controlRef` to
14
+ * provide the control's ref instead.
15
15
  *
16
- * This component is useful when using a control component as a trigger for
17
- * popovers/menus, and we wish to align said popover/menu against the control's
18
- * container (since popovers/menus align themselves based on the element
19
- * referenced by their trigger).
16
+ * This component is useful when using a control component as a trigger for popovers/menus, and we
17
+ * wish to align said popover/menu against the control's container (since popovers/menus align
18
+ * themselves based on the element referenced by their trigger).
20
19
  */
21
20
  export declare function ControlWithContainerRef({ containerProps, controlRef, ref, ...otherProps }: ControlWithContainerRefProps): import("react").JSX.Element;
@@ -7,24 +7,21 @@ export type ControlAddonProps<TAs extends ControlAddonAs = "div"> = PolymorphicP
7
7
  /** Own properties of the control addon component. */
8
8
  export interface ControlAddonOwnProps {
9
9
  /**
10
- * Change the component to the HTML tag or custom component of the only child.
11
- * This will merge the original component props with the props of the supplied
12
- * element/component and change the underlying DOM node.
10
+ * Change the component to the HTML tag or custom component of the only child. This will merge the
11
+ * original component props with the props of the supplied element/component and change the
12
+ * underlying DOM node.
13
13
  */
14
14
  asChild?: boolean;
15
15
  /** Variant of the control addon. */
16
16
  variant?: ControlVariant;
17
- /**
18
- * Sets the status of the addon (this should typically be the same as the
19
- * input's status).
20
- */
17
+ /** Sets the status of the addon (this should typically be the same as the input's status). */
21
18
  status?: ControlStatus;
22
19
  /**
23
20
  * Styles the addon as muted.
24
21
  *
25
- * Note that if rendering the addon as a button or a link via `asChild`, this
26
- * property will have no effect. For such cases set the `disabled`/
27
- * `data-disabled` properties directly on the button/link.
22
+ * Note that if rendering the addon as a button or a link via `asChild`, this property will have
23
+ * no effect. For such cases set the `disabled`/ `data-disabled` properties directly on the
24
+ * button/link.
28
25
  */
29
26
  muted?: boolean;
30
27
  /** Styles the addon as read-only. */
@@ -35,8 +32,7 @@ export interface ControlAddonOwnProps {
35
32
  /**
36
33
  * Component used as an "add-on" for controls.
37
34
  *
38
- * The control addon is typically used within the `startAdornment` and
39
- * `endAdornment` properties of a control, but can also be used standalone where
40
- * it makes sense.
35
+ * The control addon is typically used within the `startAdornment` and `endAdornment` properties of
36
+ * a control, but can also be used standalone where it makes sense.
41
37
  */
42
38
  export declare function ControlAddon<TAs extends ControlAddonAs = "div">({ as, asChild, variant, status, muted, readOnly, className, type, ...otherProps }: ControlAddonProps<TAs>): import("react").JSX.Element;
@@ -3,20 +3,17 @@ import { type ControlStatus, type ControlVariant } from "../Control";
3
3
  /** Properties of the control's code component. */
4
4
  export interface ControlCodeProps extends ComponentProps<"div"> {
5
5
  /**
6
- * Change the component to the HTML tag or custom component of the only child.
7
- * This will merge the original component props with the props of the supplied
8
- * element/component and change the underlying DOM node.
6
+ * Change the component to the HTML tag or custom component of the only child. This will merge the
7
+ * original component props with the props of the supplied element/component and change the
8
+ * underlying DOM node.
9
9
  */
10
10
  asChild?: boolean;
11
11
  /** Variant of the control code. */
12
12
  variant?: ControlVariant;
13
- /**
14
- * Sets the status of the code (this should typically be the same as the
15
- * control's status).
16
- */
13
+ /** Sets the status of the code (this should typically be the same as the control's status). */
17
14
  status?: ControlStatus;
18
15
  /** Text prefixed to the code to be announced by assistive technologies. */
19
16
  visuallyHiddenPrefix?: ReactNode;
20
17
  }
21
18
  /** Component used to display the "code" of a form control. */
22
- export declare function ControlCode({ asChild, variant, status, visuallyHiddenPrefix, className, children, ...otherProps }: ControlCodeProps): import("react").JSX.Element;
19
+ export declare function ControlCode({ asChild, variant, status, visuallyHiddenPrefix: visuallyHiddenPrefixProp, className, children, ...otherProps }: ControlCodeProps): import("react").JSX.Element;
@@ -12,30 +12,21 @@ export type DataTableColumnsObject<T = unknown> = Record<string, DataTableColumn
12
12
  export type DataTableDisplayMode = "paged" | "scrolled";
13
13
  /** Selection mode of the data table. */
14
14
  export type DataTableSelectionMode = "additive" | "subtractive";
15
- /**
16
- * Options passed to the `getRows` function to get the rows meant to be
17
- * rendered.
18
- */
15
+ /** Options passed to the `getRows` function to get the rows meant to be rendered. */
19
16
  export interface DataTableGetRowsOptions {
20
17
  /** Index from which to fetch rows. */
21
18
  offset: number;
22
19
  /** Limit of rows to fetch. */
23
20
  limit: number;
24
- /**
25
- * Filter to apply. An empty string will be passed when the results shouldn't
26
- * be filtered.
27
- */
21
+ /** Filter to apply. An empty string will be passed when the results shouldn't be filtered. */
28
22
  filter: string;
29
23
  /** Column to sort by. `null` is passed when the results shouldn't be sorted. */
30
24
  sortBy: string | null;
31
- /**
32
- * Direction of the sorting. `null` is passed when the results shouldn't be
33
- * sorted.
34
- */
25
+ /** Direction of the sorting. `null` is passed when the results shouldn't be sorted. */
35
26
  sortDirection: SortDirection | null;
36
27
  /**
37
- * Abort signal provided by the data table which is cancelled when the result
38
- * of this `getRows` call is no longer needed.
28
+ * Abort signal provided by the data table which is cancelled when the result of this `getRows`
29
+ * call is no longer needed.
39
30
  */
40
31
  signal: AbortSignal;
41
32
  }
@@ -57,15 +48,15 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
57
48
  */
58
49
  rows?: T[];
59
50
  /**
60
- * Display mode of the data table. Rows are displayed either in pages or
61
- * within an infinite scroll component.
51
+ * Display mode of the data table. Rows are displayed either in pages or within an infinite scroll
52
+ * component.
62
53
  *
63
54
  * @default "paged"
64
55
  */
65
56
  displayMode?: DataTableDisplayMode;
66
57
  /**
67
- * Function called whenever the rows visible on screen change. This function
68
- * is only called when a `rows` property is provided.
58
+ * Function called whenever the rows visible on screen change. This function is only called when a
59
+ * `rows` property is provided.
69
60
  *
70
61
  * This function is called once during startup of the data table.
71
62
  *
@@ -73,9 +64,8 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
73
64
  */
74
65
  onVisibleRowsChange?: (visibleRows: T[]) => void;
75
66
  /**
76
- * Function called whenever the processed rows (the rows after being filtered
77
- * and/or sorted) change. This function is only called when a `rows` property
78
- * is provided.
67
+ * Function called whenever the processed rows (the rows after being filtered and/or sorted)
68
+ * change. This function is only called when a `rows` property is provided.
79
69
  *
80
70
  * This function is called once during startup of the data table.
81
71
  *
@@ -89,36 +79,32 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
89
79
  */
90
80
  getRows?: (options: DataTableGetRowsOptions) => DataTableGetRowsResult<T> | PromiseLike<DataTableGetRowsResult<T>>;
91
81
  /**
92
- * Property of the row that contains the row's key, or a function used to get
93
- * it, given the row.
82
+ * Property of the row that contains the row's key, or a function used to get it, given the row.
94
83
  *
95
84
  * Keys should be of type `Key`, i.e. `string | number | bigint`.
96
85
  */
97
86
  rowKey: string | number | symbol | ((row: T) => Key);
98
87
  /**
99
- * Number of rows to show when `loading` is `true`, or using `getRows` and the
100
- * total count isn't yet known.
88
+ * Number of rows to show when `loading` is `true`, or using `getRows` and the total count isn't
89
+ * yet known.
101
90
  *
102
91
  * @default 2
103
92
  */
104
93
  loadingCount?: number;
105
- /**
106
- * Whether the data table should be marked as required when it is being used
107
- * as a control.
108
- */
94
+ /** Whether the data table should be marked as required when it is being used as a control. */
109
95
  required?: boolean;
110
96
  /** Marks the data table as currently loading data. */
111
97
  loading?: boolean;
112
98
  /**
113
- * Default offset from which to display rows. When in paged mode, the actually
114
- * used offset will always be a multiple of `limit`.
99
+ * Default offset from which to display rows. When in paged mode, the actually used offset will
100
+ * always be a multiple of `limit`.
115
101
  *
116
102
  * @default 0
117
103
  */
118
104
  defaultOffset?: number | string;
119
105
  /**
120
- * Controlled offset from which to display rows. When in paged mode, the
121
- * actually used offset will always be a multiple of `limit`.
106
+ * Controlled offset from which to display rows. When in paged mode, the actually used offset will
107
+ * always be a multiple of `limit`.
122
108
  *
123
109
  * Use together with `onOffsetChange` to control the offset.
124
110
  */
@@ -149,10 +135,7 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
149
135
  onLimitChange?: (limit: number) => void;
150
136
  /** Default string to filter by. */
151
137
  defaultFilter?: string;
152
- /**
153
- * Controlled string to filter by. Use together with `onFilterChange` to
154
- * change the filter.
155
- */
138
+ /** Controlled string to filter by. Use together with `onFilterChange` to change the filter. */
156
139
  filter?: string;
157
140
  /**
158
141
  * Function called whenever the string to filter by changes.
@@ -161,15 +144,15 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
161
144
  */
162
145
  onFilterChange?: (filter: string) => void;
163
146
  /**
164
- * Default column to sort by. When `null`, the table is sorted according to
165
- * the rows' natural order.
147
+ * Default column to sort by. When `null`, the table is sorted according to the rows' natural
148
+ * order.
166
149
  *
167
150
  * @default null
168
151
  */
169
152
  defaultSortBy?: string | null;
170
153
  /**
171
- * Controlled column to sort by. When `null`, the table is sorted according to
172
- * the rows' natural order.
154
+ * Controlled column to sort by. When `null`, the table is sorted according to the rows' natural
155
+ * order.
173
156
  *
174
157
  * Use together with `onSort` to change the sorting order.
175
158
  */
@@ -190,8 +173,7 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
190
173
  */
191
174
  onSort?: (sortBy: string | null, sortDirection: SortDirection) => void;
192
175
  /**
193
- * Prepend a column containing checkboxes used to select rows of the data
194
- * table.
176
+ * Prepend a column containing checkboxes used to select rows of the data table.
195
177
  *
196
178
  * @default false
197
179
  */
@@ -199,22 +181,22 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
199
181
  /**
200
182
  * The strategy used to interpret the `selectedRows` property:
201
183
  *
202
- * - "additive": No rows are selected by default, `selectedRows` lists the keys
203
- * of the rows to include.
204
- * - "subtractive": All rows are selected by default, `selectedRows` lists the
205
- * keys of the rows to exclude.
184
+ * - "additive": No rows are selected by default, `selectedRows` lists the keys of the rows to
185
+ * include.
186
+ * - "subtractive": All rows are selected by default, `selectedRows` lists the keys of the rows to
187
+ * exclude.
206
188
  *
207
189
  * @default "additive"
208
190
  */
209
191
  selectionMode?: DataTableSelectionMode;
210
192
  /**
211
- * Default keys of the selected rows. See also the `selectionMode` property
212
- * for how this array will be interpreted.
193
+ * Default keys of the selected rows. See also the `selectionMode` property for how this array
194
+ * will be interpreted.
213
195
  */
214
196
  defaultSelectedRows?: Key[];
215
197
  /**
216
- * Controlled keys of the selected rows. See also the `selectionMode` property
217
- * for how this array will be interpreted.
198
+ * Controlled keys of the selected rows. See also the `selectionMode` property for how this array
199
+ * will be interpreted.
218
200
  *
219
201
  * Use together with `onSelectedRowsChange` to change the selected rows.
220
202
  */
@@ -235,8 +217,8 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
235
217
  */
236
218
  onSelectAll?: (checked: boolean) => void;
237
219
  /**
238
- * Keys of the rows whose selections should be disabled (rows with the
239
- * identifiers provided will have their selection checkboxes disabled).
220
+ * Keys of the rows whose selections should be disabled (rows with the identifiers provided will
221
+ * have their selection checkboxes disabled).
240
222
  */
241
223
  disabledSelections?: Key[];
242
224
  /** Visually hidden label of the “select all rows” checkbox. */
@@ -244,26 +226,24 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
244
226
  /** Visually hidden label of a “select row” checkbox. */
245
227
  selectRowLabel?: ReactNode;
246
228
  /**
247
- * Function used to render each row. This function should typically return a
248
- * `DataTableRow` with the provided properties. This function is useful to
249
- * wrap each row in its own context.
229
+ * Function used to render each row. This function should typically return a `DataTableRow` with
230
+ * the provided properties. This function is useful to wrap each row in its own context.
250
231
  *
251
232
  * @default props => <DataTableRow {...props} />
252
233
  * @param props Properties to pass to the data table row to render.
253
234
  */
254
235
  renderRow?: (props: DataTableRowProps) => ReactNode;
255
236
  /**
256
- * Function used to render each cell. This function should typically return a
257
- * `DataTableCell` with the provided properties. This function is useful to
258
- * wrap each cell in its own context.
237
+ * Function used to render each cell. This function should typically return a `DataTableCell` with
238
+ * the provided properties. This function is useful to wrap each cell in its own context.
259
239
  *
260
240
  * @default props => <DataTableCell {...props} />
261
241
  * @param props Properties to pass to the data table cell to render.
262
242
  */
263
243
  renderCell?: (props: DataTableCellProps) => ReactNode;
264
244
  /**
265
- * Whether the height of each row should be computed dynamically (only
266
- * relevant for scrolled mode).
245
+ * Whether the height of each row should be computed dynamically (only relevant for scrolled
246
+ * mode).
267
247
  *
268
248
  * @default false
269
249
  */
@@ -271,15 +251,13 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
271
251
  /**
272
252
  * Estimated height of each table row.
273
253
  *
274
- * A function may be provided to return the actual or estimated height of each
275
- * row.
254
+ * A function may be provided to return the actual or estimated height of each row.
276
255
  *
277
256
  * @default DEFAULT_TABLE_ROW_HEIGHT
278
257
  */
279
258
  estimatedRowHeight?: number | ((index: number) => number);
280
259
  /**
281
- * Number of items to render above and below the visible area (only relevant
282
- * for scrolled mode).
260
+ * Number of items to render above and below the visible area (only relevant for scrolled mode).
283
261
  *
284
262
  * @default 5
285
263
  */
@@ -294,40 +272,31 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
294
272
  apiRef?: Ref<DataTableApi<T> | undefined>;
295
273
  }
296
274
  /**
297
- * The data table component allows displaying, browsing, sorting, and filtering
298
- * large amounts of structured data. Built on top of the [`Table`
275
+ * The data table component allows displaying, browsing, sorting, and filtering large amounts of
276
+ * structured data. Built on top of the [`Table`
299
277
  * component](/docs/ostack-ui-data-display-table--docs).
300
278
  *
301
279
  * It composes the following subcomponents:
302
280
  *
303
- * - `DataTableColumns`: Container for the definition of all data table columns
304
- * and their groups.
281
+ * - `DataTableColumns`: Container for the definition of all data table columns and their groups.
305
282
  * - `DataTableColumn`: Component used to define a column of the data table.
306
- * - `DataTableColumnGroup`: Component used to define a column group of the data
307
- * table.
308
- * - `DataTableContent`: Main content of the data table, containing the table
309
- * itself.
310
- * - `DataTablePagination`: Pagination component of the data table, allowing the
311
- * selection of the current page in `paged` mode and showing the current
312
- * progress in `scrolled` mode.
313
- * - `DataTableFilter`: Optional input used for filtering the rows of the data
314
- * table.
315
- * - `DataTableRowsPerPage`: Optional component allowing the selection of the
316
- * number of rows to display per page.
283
+ * - `DataTableColumnGroup`: Component used to define a column group of the data table.
284
+ * - `DataTableContent`: Main content of the data table, containing the table itself.
285
+ * - `DataTablePagination`: Pagination component of the data table, allowing the selection of the
286
+ * current page in `paged` mode and showing the current progress in `scrolled` mode.
287
+ * - `DataTableFilter`: Optional input used for filtering the rows of the data table.
288
+ * - `DataTableRowsPerPage`: Optional component allowing the selection of the number of rows to
289
+ * display per page.
317
290
  * - `DataTableSelectionTrigger`: Optional trigger for acting on selected rows.
318
- * - `DataTableRow`: Individual row of the data table. Shouldn't be used in most
319
- * scenarios (use in `renderRow` when appropriate).
320
- * - `DataTableCell`: Individual cell of the data table. Shouldn't be used in most
321
- * scenarios (use in `renderCell` when appropriate).
291
+ * - `DataTableRow`: Individual row of the data table. Shouldn't be used in most scenarios (use in
292
+ * `renderRow` when appropriate).
293
+ * - `DataTableCell`: Individual cell of the data table. Shouldn't be used in most scenarios (use in
294
+ * `renderCell` when appropriate).
322
295
  *
323
296
  * Example usage:
324
297
  *
325
298
  * ```tsx
326
- * import {
327
- * DataTable,
328
- * DataTablePagination,
329
- * DataTableRowsPerPage,
330
- * } from "@ostack.tech/ui";
299
+ * import { DataTable, DataTablePagination, DataTableRowsPerPage } from "@ostack.tech/ui";
331
300
  *
332
301
  * function InventoryTable() {
333
302
  * return (
@@ -359,4 +328,4 @@ export interface DataTableProps<T = any> extends ComponentProps<"div"> {
359
328
  * }
360
329
  * ```
361
330
  */
362
- export declare function DataTable<T = any>({ displayMode, columns: columnsProp, rows, onVisibleRowsChange, onProcessedRowsChange, getRows, rowKey, loadingCount, required, loading, defaultOffset, offset, onOffsetChange, defaultLimit, limit, onLimitChange, defaultFilter, filter, onFilterChange, defaultSortBy, sortBy, defaultSortDirection, sortDirection, onSort, showSelectionColumn, selectionMode, defaultSelectedRows, selectedRows, onSelectedRowsChange, selectAllChecked, onSelectAll, disabledSelections, selectAllRowsLabel, selectRowLabel, renderRow, renderCell, dynamicRowHeight, estimatedRowHeight, overscan, showAllRowsWhilePrinting, apiRef, className, children, ...otherProps }: DataTableProps<T>): import("react").JSX.Element;
331
+ export declare function DataTable<T = any>({ displayMode, columns: columnsProp, rows, onVisibleRowsChange, onProcessedRowsChange, getRows, rowKey, loadingCount, required, loading, defaultOffset: defaultOffsetProp, offset: offsetProp, onOffsetChange, defaultLimit: defaultLimitProp, limit: limitProp, onLimitChange, defaultFilter, filter, onFilterChange, defaultSortBy: defaultSortByProp, sortBy: sortByProp, defaultSortDirection: defaultSortDirectionProp, sortDirection: sortDirectionProp, onSort, showSelectionColumn, selectionMode, defaultSelectedRows, selectedRows, onSelectedRowsChange, selectAllChecked, onSelectAll, disabledSelections, selectAllRowsLabel, selectRowLabel, renderRow, renderCell, dynamicRowHeight, estimatedRowHeight, overscan, showAllRowsWhilePrinting, apiRef, className, children, ...otherProps }: DataTableProps<T>): import("react").JSX.Element;
@@ -5,31 +5,30 @@ export type DataTableScrollToOptions = ScrollToOptions;
5
5
  /** Imperative data table API. */
6
6
  export interface DataTableApi<T = unknown> {
7
7
  /**
8
- * Function that provides a way of notifying that changes have been made to
9
- * the table rows when using the `getRows`/`count` API. Either this function
10
- * or `refresh` should be called after changing the table's `count`.
8
+ * Function that provides a way of notifying that changes have been made to the table rows when
9
+ * using the `getRows`/`count` API. Either this function or `refresh` should be called after
10
+ * changing the table's `count`.
11
11
  *
12
12
  * @param startIndex Index of where to change started.
13
- * @param deleteCount Number of rows deleted from `startIndex`. Defaults to
14
- * `0`.
15
- * @param added Either the number of rows added, or an array with the added
16
- * rows themselves. Defaults to `0`.
13
+ * @param deleteCount Number of rows deleted from `startIndex`. Defaults to `0`.
14
+ * @param added Either the number of rows added, or an array with the added rows themselves.
15
+ * Defaults to `0`.
17
16
  */
18
17
  splice: (startIndex: number, deleted?: number, added?: number | T[]) => void;
19
18
  /**
20
19
  * Refreshes the data table provided its new total count (if it changed).
21
20
  *
22
- * @param newTotalCount New total number of rows, in case it changed. Set to
23
- * `null` to specify that the new total count is unknown. Set to `undefined`
24
- * when the new total count shouldn't change.
21
+ * @param newTotalCount New total number of rows, in case it changed. Set to `null` to specify
22
+ * that the new total count is unknown. Set to `undefined` when the new total count shouldn't
23
+ * change.
25
24
  */
26
25
  refresh: (newTotalCount?: number | null) => void;
27
26
  /**
28
27
  * Navigates to the row with the provided index.
29
28
  *
30
29
  * @param index Index of row to navigate to.
31
- * @param scrollOptions Options used to configure to scrolling to the row
32
- * (only relevant in scrolled display mode).
30
+ * @param scrollOptions Options used to configure to scrolling to the row (only relevant in
31
+ * scrolled display mode).
33
32
  */
34
33
  goTo: (index: number, scrollOptions?: DataTableScrollToOptions) => void;
35
34
  }