@ostack.tech/ui 0.1.2 → 0.2.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 (207) hide show
  1. package/dist/chunks/en-lyNzumTm.js +105 -0
  2. package/dist/chunks/en-lyNzumTm.js.map +1 -0
  3. package/dist/locales/en-GB.js +16 -0
  4. package/dist/locales/en-GB.js.map +1 -0
  5. package/dist/locales/en-US.js +16 -0
  6. package/dist/locales/en-US.js.map +1 -0
  7. package/dist/locales/fr.js +110 -0
  8. package/dist/locales/fr.js.map +1 -0
  9. package/dist/locales/pt.js +110 -0
  10. package/dist/locales/pt.js.map +1 -0
  11. package/dist/ostack-ui.js +6142 -6401
  12. package/dist/ostack-ui.js.map +1 -1
  13. package/dist/types/components/Alert/Alert.d.ts +9 -9
  14. package/dist/types/components/Alert/AlertTitle.d.ts +3 -3
  15. package/dist/types/components/AlertDialog/AlertDialogAction.d.ts +3 -3
  16. package/dist/types/components/AlertDialog/AlertDialogBody.d.ts +3 -3
  17. package/dist/types/components/AlertDialog/AlertDialogCancel.d.ts +3 -3
  18. package/dist/types/components/AlertDialog/AlertDialogContent.d.ts +5 -5
  19. package/dist/types/components/AlertDialog/AlertDialogDescription.d.ts +3 -3
  20. package/dist/types/components/AlertDialog/AlertDialogFooter.d.ts +3 -3
  21. package/dist/types/components/AlertDialog/AlertDialogHeader.d.ts +3 -3
  22. package/dist/types/components/AlertDialog/AlertDialogTitle.d.ts +3 -3
  23. package/dist/types/components/AlertDialog/AlertDialogTrigger.d.ts +3 -3
  24. package/dist/types/components/Button/Button.d.ts +7 -7
  25. package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -3
  26. package/dist/types/components/Calendar/Calendar.d.ts +6 -6
  27. package/dist/types/components/Calendar/CalendarContext.d.ts +1 -2
  28. package/dist/types/components/Calendar/CalendarDay.d.ts +2 -3
  29. package/dist/types/components/Calendar/CalendarMonthCaption.d.ts +2 -3
  30. package/dist/types/components/Card/Card.d.ts +3 -3
  31. package/dist/types/components/Card/CardBody.d.ts +3 -3
  32. package/dist/types/components/Card/CardFooter.d.ts +3 -3
  33. package/dist/types/components/Card/CardHeader.d.ts +3 -3
  34. package/dist/types/components/Card/CardTitle.d.ts +3 -3
  35. package/dist/types/components/Checkbox/Checkbox.d.ts +11 -11
  36. package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +9 -9
  37. package/dist/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +1 -2
  38. package/dist/types/components/ClearContexts/ClearContexts.d.ts +3 -3
  39. package/dist/types/components/CloseButton/CloseButton.d.ts +3 -3
  40. package/dist/types/components/Code/Code.d.ts +3 -3
  41. package/dist/types/components/Collapsible/Collapsible.d.ts +3 -3
  42. package/dist/types/components/Collapsible/CollapsibleContent.d.ts +3 -3
  43. package/dist/types/components/Collapsible/CollapsibleContext.d.ts +1 -2
  44. package/dist/types/components/Collapsible/CollapsibleTrigger.d.ts +4 -4
  45. package/dist/types/components/CommandMenu/CommandMenu.d.ts +11 -11
  46. package/dist/types/components/CommandMenu/CommandMenuDialog.d.ts +7 -7
  47. package/dist/types/components/CommandMenu/CommandMenuGroup.d.ts +4 -4
  48. package/dist/types/components/CommandMenu/CommandMenuItem.d.ts +3 -3
  49. package/dist/types/components/Container/Container.d.ts +3 -3
  50. package/dist/types/components/ControlAddon/ControlAddon.d.ts +3 -3
  51. package/dist/types/components/ControlCode/ControlCode.d.ts +4 -4
  52. package/dist/types/components/DataTable/DataTable.d.ts +11 -11
  53. package/dist/types/components/DataTable/DataTableApi.d.ts +2 -2
  54. package/dist/types/components/DataTable/DataTableBody.d.ts +4 -4
  55. package/dist/types/components/DataTable/DataTableCell.d.ts +4 -4
  56. package/dist/types/components/DataTable/DataTableColumn.d.ts +4 -4
  57. package/dist/types/components/DataTable/DataTableContent.d.ts +9 -9
  58. package/dist/types/components/DataTable/DataTableContext.d.ts +19 -19
  59. package/dist/types/components/DataTable/DataTableFilter.d.ts +3 -3
  60. package/dist/types/components/DataTable/DataTableFoot.d.ts +3 -3
  61. package/dist/types/components/DataTable/DataTableHead.d.ts +3 -3
  62. package/dist/types/components/DataTable/DataTablePagination.d.ts +4 -4
  63. package/dist/types/components/DataTable/DataTableRow.d.ts +3 -3
  64. package/dist/types/components/DataTable/DataTableRowsPerPage.d.ts +4 -4
  65. package/dist/types/components/DataTable/DataTableSelectionTrigger.d.ts +5 -5
  66. package/dist/types/components/DataTable/PagedDataTablePagination.d.ts +3 -3
  67. package/dist/types/components/DataTable/ScrolledDataTablePagination.d.ts +3 -3
  68. package/dist/types/components/DataTable/getRowKey.d.ts +2 -2
  69. package/dist/types/components/DateInput/DateInput.d.ts +5 -5
  70. package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
  71. package/dist/types/components/DateRangeInput/DateRangeInput.d.ts +19 -19
  72. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  73. package/dist/types/components/Dialog/DialogBody.d.ts +3 -3
  74. package/dist/types/components/Dialog/DialogClose.d.ts +3 -3
  75. package/dist/types/components/Dialog/DialogContent.d.ts +5 -5
  76. package/dist/types/components/Dialog/DialogDescription.d.ts +3 -3
  77. package/dist/types/components/Dialog/DialogFooter.d.ts +3 -3
  78. package/dist/types/components/Dialog/DialogHeader.d.ts +4 -4
  79. package/dist/types/components/Dialog/DialogTitle.d.ts +3 -3
  80. package/dist/types/components/Dialog/DialogTrigger.d.ts +3 -3
  81. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +3 -3
  82. package/dist/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +4 -4
  83. package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +6 -6
  84. package/dist/types/components/DropdownMenu/DropdownMenuGroup.d.ts +3 -3
  85. package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +3 -3
  86. package/dist/types/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +3 -3
  87. package/dist/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -4
  88. package/dist/types/components/DropdownMenu/DropdownMenuSubContent.d.ts +4 -4
  89. package/dist/types/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +3 -3
  90. package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +3 -3
  91. package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +10 -10
  92. package/dist/types/components/Feedback/Feedback.d.ts +4 -4
  93. package/dist/types/components/FeedbackList/FeedbackList.d.ts +3 -3
  94. package/dist/types/components/FeedbackList/FeedbackListContext.d.ts +1 -2
  95. package/dist/types/components/FeedbackPopover/FeedbackPopover.d.ts +6 -6
  96. package/dist/types/components/FeedbackPopover/FeedbackPopoverContext.d.ts +1 -2
  97. package/dist/types/components/Field/Field.d.ts +3 -3
  98. package/dist/types/components/Field/FieldContext.d.ts +5 -5
  99. package/dist/types/components/FieldGroup/FieldGroup.d.ts +3 -3
  100. package/dist/types/components/FieldGroup/FieldGroupBody.d.ts +3 -3
  101. package/dist/types/components/FieldGroup/FieldGroupContext.d.ts +4 -4
  102. package/dist/types/components/FieldGroup/FieldGroupHeader.d.ts +6 -6
  103. package/dist/types/components/FieldGroup/FieldGroupTitle.d.ts +3 -3
  104. package/dist/types/components/Grid/Grid.d.ts +3 -3
  105. package/dist/types/components/Heading/Heading.d.ts +3 -3
  106. package/dist/types/components/HelperText/HelperText.d.ts +3 -3
  107. package/dist/types/components/Icon/Icon.d.ts +4 -4
  108. package/dist/types/components/IconButton/IconButton.d.ts +9 -9
  109. package/dist/types/components/Input/Input.d.ts +14 -14
  110. package/dist/types/components/Input/InputWithContainerRef.d.ts +4 -4
  111. package/dist/types/components/Keyboard/Keyboard.d.ts +3 -3
  112. package/dist/types/components/Label/Label.d.ts +10 -10
  113. package/dist/types/components/Link/Link.d.ts +4 -4
  114. package/dist/types/components/Link/LinkContext.d.ts +1 -2
  115. package/dist/types/components/Mark/Mark.d.ts +3 -3
  116. package/dist/types/components/MenuList/MenuList.d.ts +3 -3
  117. package/dist/types/components/MenuList/MenuListContext.d.ts +1 -2
  118. package/dist/types/components/MenuList/MenuListGroup.d.ts +7 -7
  119. package/dist/types/components/MenuList/MenuListItem.d.ts +13 -13
  120. package/dist/types/components/NumericInput/NumericInput.d.ts +3 -3
  121. package/dist/types/components/Output/Output.d.ts +3 -3
  122. package/dist/types/components/Overlay/Overlay.d.ts +3 -3
  123. package/dist/types/components/Popover/PopoverClose.d.ts +3 -3
  124. package/dist/types/components/Popover/PopoverContent.d.ts +5 -5
  125. package/dist/types/components/Popover/PopoverTrigger.d.ts +3 -3
  126. package/dist/types/components/Portal/Portal.d.ts +3 -3
  127. package/dist/types/components/Portal/PortalContext.d.ts +1 -2
  128. package/dist/types/components/RadioGroup/Radio.d.ts +10 -10
  129. package/dist/types/components/RadioGroup/RadioGroup.d.ts +10 -10
  130. package/dist/types/components/Root/Root.d.ts +14 -10
  131. package/dist/types/components/Root/RootContext.d.ts +1 -2
  132. package/dist/types/components/Root/RootElement.d.ts +9 -0
  133. package/dist/types/components/Root/index.d.ts +1 -1
  134. package/dist/types/components/Select/Option.d.ts +3 -3
  135. package/dist/types/components/Select/OptionsGroup.d.ts +3 -3
  136. package/dist/types/components/Select/Select.d.ts +11 -11
  137. package/dist/types/components/Select/SelectContext.d.ts +6 -6
  138. package/dist/types/components/Separator/Separator.d.ts +3 -3
  139. package/dist/types/components/Slot/Slottable.d.ts +3 -3
  140. package/dist/types/components/Spinner/Spinner.d.ts +3 -3
  141. package/dist/types/components/Stack/Stack.d.ts +8 -8
  142. package/dist/types/components/Stepper/Step.d.ts +5 -5
  143. package/dist/types/components/Stepper/StepContent.d.ts +3 -3
  144. package/dist/types/components/Stepper/StepList.d.ts +3 -3
  145. package/dist/types/components/Stepper/Stepper.d.ts +5 -5
  146. package/dist/types/components/Stepper/StepperContext.d.ts +1 -2
  147. package/dist/types/components/Table/Table.d.ts +5 -5
  148. package/dist/types/components/Table/TableBody.d.ts +3 -3
  149. package/dist/types/components/Table/TableCell.d.ts +4 -4
  150. package/dist/types/components/Table/TableColumn.d.ts +14 -14
  151. package/dist/types/components/Table/TableContext.d.ts +4 -5
  152. package/dist/types/components/Table/TableFoot.d.ts +3 -3
  153. package/dist/types/components/Table/TableHead.d.ts +4 -4
  154. package/dist/types/components/Table/TableRow.d.ts +3 -3
  155. package/dist/types/components/Tabs/Tab.d.ts +4 -4
  156. package/dist/types/components/Tabs/TabContent.d.ts +3 -3
  157. package/dist/types/components/Tabs/TabList.d.ts +5 -5
  158. package/dist/types/components/Tabs/Tabs.d.ts +3 -3
  159. package/dist/types/components/Tabs/TabsContext.d.ts +1 -2
  160. package/dist/types/components/Tag/Tag.d.ts +7 -7
  161. package/dist/types/components/TextArea/TextArea.d.ts +3 -3
  162. package/dist/types/components/Toast/Toast.d.ts +11 -11
  163. package/dist/types/components/Toast/ToastProvider.d.ts +2 -2
  164. package/dist/types/components/Toast/ToastTitle.d.ts +3 -3
  165. package/dist/types/components/Toast/ToastViewport.d.ts +3 -3
  166. package/dist/types/components/Tooltip/Tooltip.d.ts +7 -7
  167. package/dist/types/index.d.ts +1 -1
  168. package/dist/types/locales/en-GB.d.ts +3 -0
  169. package/dist/types/locales/en-US.d.ts +3 -0
  170. package/dist/types/{locale → locales}/en.d.ts +1 -1
  171. package/dist/types/locales/fr.d.ts +3 -0
  172. package/dist/types/locales/index.d.ts +4 -0
  173. package/dist/types/locales/pt.d.ts +3 -0
  174. package/dist/types/providers/AlertDialogProvider/AlertDialogProvider.d.ts +2 -2
  175. package/dist/types/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +17 -17
  176. package/dist/types/providers/DocumentTitleProvider/DocumentTitle.d.ts +2 -2
  177. package/dist/types/providers/DocumentTitleProvider/DocumentTitleProvider.d.ts +2 -2
  178. package/dist/types/providers/DocumentTitleProvider/DocumentTitleProviderContext.d.ts +2 -3
  179. package/dist/types/providers/ErrorReportingProvider/ErrorReport.d.ts +2 -2
  180. package/dist/types/providers/ErrorReportingProvider/ErrorReportingContext.d.ts +3 -3
  181. package/dist/types/providers/ErrorReportingProvider/ErrorReportingProvider.d.ts +2 -2
  182. package/dist/types/providers/ErrorReportingProvider/useErrorReporter.d.ts +1 -2
  183. package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +6 -4
  184. package/dist/types/{locale → providers/LocalizationProvider}/LocalizationObject.d.ts +18 -18
  185. package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +13 -5
  186. package/dist/types/providers/LocalizationProvider/index.d.ts +1 -0
  187. package/dist/types/providers/LocalizationProvider/useLocale.d.ts +6 -3
  188. package/dist/types/providers/PrefixProvider/PrefixContext.d.ts +1 -4
  189. package/dist/types/providers/PrefixProvider/PrefixProvider.d.ts +3 -3
  190. package/dist/types/providers/PrefixProvider/defaultPrefix.d.ts +12 -0
  191. package/dist/types/providers/PrefixProvider/index.d.ts +1 -0
  192. package/dist/types/providers/PrefixProvider/usePrefix.d.ts +1 -1
  193. package/dist/types/providers/ToastManagerProvider/ToastManagerContext.d.ts +7 -7
  194. package/dist/types/providers/ToastManagerProvider/ToastManagerProvider.d.ts +2 -2
  195. package/dist/types/utils/control.d.ts +1 -2
  196. package/dist/types/utils/useCombinedRef.d.ts +2 -2
  197. package/dist/types/utils/useControllableState.d.ts +2 -2
  198. package/dist/types/utils/useLayoutEffect.d.ts +2 -2
  199. package/package.json +20 -4
  200. package/dist/ostack-ui.cjs +0 -11095
  201. package/dist/ostack-ui.cjs.map +0 -1
  202. package/dist/types/locale/defaultLocale.d.ts +0 -3
  203. package/dist/types/locale/en-GB.d.ts +0 -3
  204. package/dist/types/locale/en-US.d.ts +0 -3
  205. package/dist/types/locale/fr-FR.d.ts +0 -3
  206. package/dist/types/locale/index.d.ts +0 -6
  207. package/dist/types/locale/pt-PT.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
2
2
  import { CloseButton } from "../CloseButton";
3
3
  import { CollapsibleContent } from "../Collapsible";
4
4
  import { Icon, type IconProp } from "../Icon";
@@ -7,7 +7,7 @@ export type AlertVariant = "solid" | "subtle" | "outlined";
7
7
  /** Alert severities. */
8
8
  export type AlertSeverity = "neutral" | "info" | "success" | "danger" | "warning";
9
9
  /** Properties of the alert component. */
10
- export interface AlertProps extends React.ComponentPropsWithoutRef<"div"> {
10
+ export interface AlertProps extends ComponentPropsWithoutRef<"div"> {
11
11
  /**
12
12
  * Alert variant.
13
13
  *
@@ -21,7 +21,7 @@ export interface AlertProps extends React.ComponentPropsWithoutRef<"div"> {
21
21
  */
22
22
  severity?: AlertSeverity;
23
23
  /** Alert action. */
24
- action?: React.ReactNode;
24
+ action?: ReactNode;
25
25
  /**
26
26
  * Whether the alert should be open by default.
27
27
  *
@@ -47,15 +47,15 @@ export interface AlertProps extends React.ComponentPropsWithoutRef<"div"> {
47
47
  */
48
48
  showCloseButton?: boolean;
49
49
  /** Properties to pass to the container component. */
50
- containerProps?: React.ComponentPropsWithRef<typeof CollapsibleContent>;
50
+ containerProps?: ComponentPropsWithRef<typeof CollapsibleContent>;
51
51
  /** Properties to pass to the icon component. */
52
- iconProps?: Omit<React.ComponentPropsWithRef<typeof Icon>, "icon">;
52
+ iconProps?: Omit<ComponentPropsWithRef<typeof Icon>, "icon">;
53
53
  /** Properties to pass to the content component. */
54
- contentProps?: React.ComponentPropsWithRef<"div">;
54
+ contentProps?: ComponentPropsWithRef<"div">;
55
55
  /** Properties to pass to the component containing the action/close button. */
56
- actionContainerProps?: React.ComponentPropsWithRef<"div">;
56
+ actionContainerProps?: ComponentPropsWithRef<"div">;
57
57
  /** Properties to pass to the close button component. */
58
- closeButtonProps?: React.ComponentPropsWithRef<typeof CloseButton>;
58
+ closeButtonProps?: ComponentPropsWithRef<typeof CloseButton>;
59
59
  }
60
60
  /**
61
61
  * The alert component can be used to attract the user's attentions.
@@ -79,4 +79,4 @@ export interface AlertProps extends React.ComponentPropsWithoutRef<"div"> {
79
79
  * }
80
80
  * ```
81
81
  */
82
- export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
82
+ export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  /** Properties of the alert title component. */
3
- export interface AlertTitleProps extends React.ComponentPropsWithoutRef<"div"> {
3
+ export interface AlertTitleProps extends ComponentPropsWithoutRef<"div"> {
4
4
  /**
5
5
  * Change the component to the HTML tag or custom component of the only child.
6
6
  * This will merge the original component props with the props of the supplied
@@ -9,4 +9,4 @@ export interface AlertTitleProps extends React.ComponentPropsWithoutRef<"div"> {
9
9
  asChild?: boolean;
10
10
  }
11
11
  /** Title of the alert. */
12
- export declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const AlertTitle: import("react").ForwardRefExoticComponent<AlertTitleProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,10 +1,10 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef } from "react";
3
3
  /** Properties of the alert dialog action component. */
4
- export interface AlertDialogActionProps extends Omit<React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>, "asChild"> {
4
+ export interface AlertDialogActionProps extends Omit<ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>, "asChild"> {
5
5
  }
6
6
  /**
7
7
  * Button which closes the alert dialog by accepting the action. These buttons
8
8
  * should be distinguished visually from `AlertDialogCancel` buttons.
9
9
  */
10
- export declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
10
+ export declare const AlertDialogAction: import("react").ForwardRefExoticComponent<AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,7 +1,7 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  import { DialogBody } from "../Dialog";
3
3
  /** Properties to the alert dialog body component. */
4
- export interface AlertDialogBodyProps extends React.ComponentPropsWithoutRef<typeof DialogBody> {
4
+ export interface AlertDialogBodyProps extends ComponentPropsWithoutRef<typeof DialogBody> {
5
5
  }
6
6
  /** Body section of the alert dialog. */
7
- export declare const AlertDialogBody: React.ForwardRefExoticComponent<AlertDialogBodyProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const AlertDialogBody: import("react").ForwardRefExoticComponent<AlertDialogBodyProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,10 +1,10 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef } from "react";
3
3
  /** Properties of the alert dialog cancel component. */
4
- export interface AlertDialogCancelProps extends Omit<React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>, "asChild"> {
4
+ export interface AlertDialogCancelProps extends Omit<ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>, "asChild"> {
5
5
  }
6
6
  /**
7
7
  * Button which closes the alert dialog by cancelling the action. These buttons
8
8
  * should be distinguished visually from `AlertDialogAction` buttons.
9
9
  */
10
- export declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
10
+ export declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,5 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
3
3
  import { type DialogContentColor, type DialogContentSize, type DialogContentVariant } from "../Dialog";
4
4
  import { Overlay } from "../Overlay";
5
5
  /** Alert dialog content variants. */
@@ -9,7 +9,7 @@ export type AlertDialogContentColor = DialogContentColor;
9
9
  /** Possible alert dialog content sizes. */
10
10
  export type AlertDialogContentSize = DialogContentSize;
11
11
  /** Properties of the alert dialog content component. */
12
- export interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> {
12
+ export interface AlertDialogContentProps extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> {
13
13
  /**
14
14
  * Dialog content variant.
15
15
  *
@@ -37,9 +37,9 @@ export interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<
37
37
  */
38
38
  size?: AlertDialogContentSize;
39
39
  /** Properties to pass to the portal component. */
40
- portalProps?: Omit<React.ComponentPropsWithRef<typeof AlertDialogPrimitive.Portal>, "forceMount">;
40
+ portalProps?: Omit<ComponentPropsWithRef<typeof AlertDialogPrimitive.Portal>, "forceMount">;
41
41
  /** Properties to pass to the dialog's overlay component. */
42
- overlayProps?: React.ComponentPropsWithRef<typeof Overlay>;
42
+ overlayProps?: ComponentPropsWithRef<typeof Overlay>;
43
43
  }
44
44
  /** Content to be rendered in the open alert dialog. */
45
- export declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
45
+ export declare const AlertDialogContent: import("react").ForwardRefExoticComponent<AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef } from "react";
3
3
  /** Properties of the alert dialog description component. */
4
- export interface AlertDialogDescriptionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> {
4
+ export interface AlertDialogDescriptionProps extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> {
5
5
  }
6
6
  /**
7
7
  * Optional accessible description to be announced when the alert dialog is
@@ -11,4 +11,4 @@ export interface AlertDialogDescriptionProps extends React.ComponentPropsWithout
11
11
  * the description entirely, pass `aria-describedby={undefined}` to the
12
12
  * `AlertDialogContent` and omit this component.
13
13
  */
14
- export declare const AlertDialogDescription: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
14
+ export declare const AlertDialogDescription: import("react").ForwardRefExoticComponent<AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -1,7 +1,7 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  import { DialogFooter } from "../Dialog";
3
3
  /** Properties to the alert dialog footer component. */
4
- export interface AlertDialogFooterProps extends React.ComponentPropsWithoutRef<typeof DialogFooter> {
4
+ export interface AlertDialogFooterProps extends ComponentPropsWithoutRef<typeof DialogFooter> {
5
5
  }
6
6
  /** Footer section of the alert dialog. */
7
- export declare const AlertDialogFooter: React.ForwardRefExoticComponent<AlertDialogFooterProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const AlertDialogFooter: import("react").ForwardRefExoticComponent<AlertDialogFooterProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  import { CardHeader } from "../Card";
3
3
  /** Properties of the alert dialog header component. */
4
- export interface AlertDialogHeaderProps extends React.ComponentPropsWithoutRef<typeof CardHeader> {
4
+ export interface AlertDialogHeaderProps extends ComponentPropsWithoutRef<typeof CardHeader> {
5
5
  }
6
6
  /** Header section of the alert dialog. */
7
- export declare const AlertDialogHeader: React.ForwardRefExoticComponent<AlertDialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const AlertDialogHeader: import("react").ForwardRefExoticComponent<AlertDialogHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef } from "react";
3
3
  /** Properties of the alert dialog title component. */
4
- export interface AlertDialogTitleProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> {
4
+ export interface AlertDialogTitleProps extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> {
5
5
  }
6
6
  /** Accessible title to be announced when the alert dialog is opened. */
7
- export declare const AlertDialogTitle: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
7
+ export declare const AlertDialogTitle: import("react").ForwardRefExoticComponent<AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -1,7 +1,7 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef } from "react";
3
3
  /** Properties of the alert dialog trigger component. */
4
- export interface AlertDialogTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>, "asChild"> {
4
+ export interface AlertDialogTriggerProps extends Omit<ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>, "asChild"> {
5
5
  }
6
6
  /** The button which, when pressed, opens the alert dialog */
7
- export declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from "react";
2
2
  import { type AccentColor } from "../../utils/accent.ts";
3
3
  import { Icon, type IconProp } from "../Icon";
4
4
  import { Spinner } from "../Spinner";
@@ -11,7 +11,7 @@ export type ButtonSize = "sm" | "md" | "lg" | "xl";
11
11
  /** Button's icon placement. */
12
12
  export type ButtonIconPlacement = "start" | "end";
13
13
  /** Properties of the button component. */
14
- export interface ButtonProps extends React.ComponentPropsWithoutRef<"button"> {
14
+ export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
15
15
  /**
16
16
  * Change the component to the HTML tag or custom component of the only child.
17
17
  * This will merge the original component props with the props of the supplied
@@ -49,7 +49,7 @@ export interface ButtonProps extends React.ComponentPropsWithoutRef<"button"> {
49
49
  *
50
50
  * @default null
51
51
  */
52
- icon?: IconProp | React.ReactElement | null;
52
+ icon?: IconProp | ReactElement | null;
53
53
  /**
54
54
  * Whether to display the icon at the start or end of the button. This
55
55
  * property also affects the placement of the spinner.
@@ -88,11 +88,11 @@ export interface ButtonProps extends React.ComponentPropsWithoutRef<"button"> {
88
88
  * Content of the button when it is in "loading" state. If not provided, the
89
89
  * button content will remain unchanged.
90
90
  */
91
- loadingContent?: React.ReactNode;
91
+ loadingContent?: ReactNode;
92
92
  /** Properties to pass to the icon component. */
93
- iconProps?: Omit<React.ComponentPropsWithRef<typeof Icon>, "icon">;
93
+ iconProps?: Omit<ComponentPropsWithRef<typeof Icon>, "icon">;
94
94
  /** Properties to pass to the spinner component. */
95
- spinnerProps?: React.ComponentPropsWithRef<typeof Spinner>;
95
+ spinnerProps?: ComponentPropsWithRef<typeof Spinner>;
96
96
  }
97
97
  /**
98
98
  * The button component is used to trigger actions or events, such as opening a
@@ -108,4 +108,4 @@ export interface ButtonProps extends React.ComponentPropsWithoutRef<"button"> {
108
108
  * }
109
109
  * ```
110
110
  */
111
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
111
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,6 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  /** Properties of the button group component. */
3
- export interface ButtonGroupProps extends React.ComponentPropsWithoutRef<"div"> {
3
+ export interface ButtonGroupProps extends ComponentPropsWithoutRef<"div"> {
4
4
  /**
5
5
  * Change the component to the HTML tag or custom component of the only child.
6
6
  * This will merge the original component props with the props of the supplied
@@ -29,4 +29,4 @@ export interface ButtonGroupProps extends React.ComponentPropsWithoutRef<"div">
29
29
  * }
30
30
  * ```
31
31
  */
32
- export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
32
+ export declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import { type Locale } from "date-fns";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithRef } from "react";
3
3
  import { type DayPickerProps } from "react-day-picker";
4
4
  import { type IconButton } from "../IconButton";
5
5
  import { type Select } from "../Select";
@@ -24,15 +24,15 @@ export interface CalendarProps extends Omit<DayPickerProps, "mode" | "selected"
24
24
  /** Label of the "next month" button. */
25
25
  nextMonthLabel?: string;
26
26
  /** Properties to pass to the caption element. */
27
- captionProps?: React.ComponentPropsWithRef<"div">;
27
+ captionProps?: ComponentPropsWithRef<"div">;
28
28
  /** Properties to pass to the previous button component. */
29
- previousButtonProps?: React.ComponentPropsWithRef<typeof IconButton>;
29
+ previousButtonProps?: ComponentPropsWithRef<typeof IconButton>;
30
30
  /** Properties to pass to the next button component. */
31
- nextButtonProps?: React.ComponentPropsWithRef<typeof IconButton>;
31
+ nextButtonProps?: ComponentPropsWithRef<typeof IconButton>;
32
32
  /** Properties to pass to the month select component. */
33
- monthSelectProps?: Omit<React.ComponentPropsWithRef<typeof Select>, "multiple" | "defaultValue" | "value">;
33
+ monthSelectProps?: Omit<ComponentPropsWithRef<typeof Select>, "multiple" | "defaultValue" | "value">;
34
34
  /** Properties to pass to the year select component. */
35
- yearSelectProps?: Omit<React.ComponentPropsWithRef<typeof Select>, "multiple" | "defaultValue" | "value">;
35
+ yearSelectProps?: Omit<ComponentPropsWithRef<typeof Select>, "multiple" | "defaultValue" | "value">;
36
36
  }
37
37
  /**
38
38
  * Calendar component built on top of [React
@@ -1,4 +1,3 @@
1
- import * as React from "react";
2
1
  import { type CalendarProps } from "./Calendar.tsx";
3
2
  /** Value of the calendar context. */
4
3
  export interface CalendarContextValue {
@@ -13,6 +12,6 @@ export interface CalendarContextValue {
13
12
  yearSelectProps: CalendarProps["yearSelectProps"];
14
13
  }
15
14
  /** Calendar context. */
16
- export declare const CalendarContext: React.Context<CalendarContextValue | null>;
15
+ export declare const CalendarContext: import("react").Context<CalendarContextValue | null>;
17
16
  /** Hook providing access to the calendar context. */
18
17
  export declare function useCalendarContext(): CalendarContextValue;
@@ -1,11 +1,10 @@
1
- import * as React from "react";
2
1
  /**
3
2
  * Reimplementation of the React Day Picker's day component to provide a
4
3
  * consistent inner element (even when the day isn't interactive), as well as a
5
4
  * wrapper over the day text which lets us style it without styling the whole
6
5
  * button.
7
6
  */
8
- export declare const CalendarDay: React.NamedExoticComponent<{
7
+ export declare const CalendarDay: import("react").NamedExoticComponent<{
9
8
  day: import("react-day-picker").CalendarDay;
10
9
  modifiers: import("react-day-picker").Modifiers;
11
- } & React.HTMLAttributes<HTMLDivElement>>;
10
+ } & import("react").HTMLAttributes<HTMLDivElement>>;
@@ -1,9 +1,8 @@
1
- import * as React from "react";
2
1
  /**
3
2
  * Reimplementation of the React Day Picker's caption component to provide both
4
3
  * navigation arrows and dropdown selections.
5
4
  */
6
- export declare const CalendarMonthCaption: React.NamedExoticComponent<{
5
+ export declare const CalendarMonthCaption: import("react").NamedExoticComponent<{
7
6
  calendarMonth: import("react-day-picker").CalendarMonth;
8
7
  displayIndex: number;
9
- } & React.HTMLAttributes<HTMLDivElement>>;
8
+ } & import("react").HTMLAttributes<HTMLDivElement>>;
@@ -1,11 +1,11 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  import { type AccentColor } from "../../utils/accent.ts";
3
3
  /** Card variants. */
4
4
  export type CardVariant = "solid" | "subtle" | "outlined" | "ghost";
5
5
  /** Possible card colours. */
6
6
  export type CardColor = AccentColor;
7
7
  /** Properties of the card component. */
8
- export interface CardProps extends React.ComponentPropsWithoutRef<"div"> {
8
+ export interface CardProps extends ComponentPropsWithoutRef<"div"> {
9
9
  /**
10
10
  * Change the component to the HTML tag or custom component of the only child.
11
11
  * This will merge the original component props with the props of the supplied
@@ -67,4 +67,4 @@ export interface CardProps extends React.ComponentPropsWithoutRef<"div"> {
67
67
  * }
68
68
  * ```
69
69
  */
70
- export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
70
+ export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  /** Properties of the card body component. */
3
- export interface CardBodyProps extends React.ComponentPropsWithoutRef<"div"> {
3
+ export interface CardBodyProps extends ComponentPropsWithoutRef<"div"> {
4
4
  /**
5
5
  * Change the component to the HTML tag or custom component of the only child.
6
6
  * This will merge the original component props with the props of the supplied
@@ -9,4 +9,4 @@ export interface CardBodyProps extends React.ComponentPropsWithoutRef<"div"> {
9
9
  asChild?: boolean;
10
10
  }
11
11
  /** Body section of the `Card` component. */
12
- export declare const CardBody: React.ForwardRefExoticComponent<CardBodyProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const CardBody: import("react").ForwardRefExoticComponent<CardBodyProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  /** Properties of the card footer component. */
3
- export interface CardFooterProps extends React.ComponentPropsWithoutRef<"div"> {
3
+ export interface CardFooterProps extends ComponentPropsWithoutRef<"div"> {
4
4
  /**
5
5
  * Change the component to the HTML tag or custom component of the only child.
6
6
  * This will merge the original component props with the props of the supplied
@@ -9,4 +9,4 @@ export interface CardFooterProps extends React.ComponentPropsWithoutRef<"div"> {
9
9
  asChild?: boolean;
10
10
  }
11
11
  /** Footer section of the `Card` component. */
12
- export declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const CardFooter: import("react").ForwardRefExoticComponent<CardFooterProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  /** Properties of the card header component. */
3
- export interface CardHeaderProps extends React.ComponentPropsWithoutRef<"div"> {
3
+ export interface CardHeaderProps extends ComponentPropsWithoutRef<"div"> {
4
4
  /**
5
5
  * Change the component to the HTML tag or custom component of the only child.
6
6
  * This will merge the original component props with the props of the supplied
@@ -9,4 +9,4 @@ export interface CardHeaderProps extends React.ComponentPropsWithoutRef<"div"> {
9
9
  asChild?: boolean;
10
10
  }
11
11
  /** Header section of the `Card` component. */
12
- export declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const CardHeader: import("react").ForwardRefExoticComponent<CardHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  import { type HeadingLevel } from "../Heading";
3
3
  /** Properties of the card title component. */
4
- export interface CardTitleProps extends React.ComponentPropsWithoutRef<"h2"> {
4
+ export interface CardTitleProps extends ComponentPropsWithoutRef<"h2"> {
5
5
  /**
6
6
  * Change the component to the HTML tag or custom component of the only child.
7
7
  * This will merge the original component props with the props of the supplied
@@ -16,4 +16,4 @@ export interface CardTitleProps extends React.ComponentPropsWithoutRef<"h2"> {
16
16
  level?: HeadingLevel;
17
17
  }
18
18
  /** Title of the `Card` component. */
19
- export declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
19
+ export declare const CardTitle: import("react").ForwardRefExoticComponent<CardTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -1,5 +1,5 @@
1
1
  import { Checkbox as CheckboxPrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type FocusEvent, type ReactNode } from "react";
3
3
  import { type ControlStatus, type ControlVariant } from "../../utils/control.ts";
4
4
  import { ControlCode } from "../ControlCode";
5
5
  import { Icon } from "../Icon";
@@ -8,7 +8,7 @@ import { Spinner } from "../Spinner";
8
8
  /** `checked` state of a checkbox. */
9
9
  export type CheckboxChecked = CheckboxPrimitive.CheckedState;
10
10
  /** Properties of the checkbox component. */
11
- export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, "asChild"> {
11
+ export interface CheckboxProps extends Omit<ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, "asChild"> {
12
12
  /**
13
13
  * Checkbox style variant. Defaults to the default variant unless when
14
14
  * rendering inside a table cell (in which case it defaults to `"cell"`).
@@ -17,7 +17,7 @@ export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeo
17
17
  /** Sets the status of the checkbox. */
18
18
  status?: ControlStatus;
19
19
  /** Checkbox code. */
20
- code?: React.ReactNode;
20
+ code?: ReactNode;
21
21
  /** Sets the checkbox as read-only. */
22
22
  readOnly?: boolean;
23
23
  /**
@@ -33,19 +33,19 @@ export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeo
33
33
  * This is useful when there is a need to know when the user stops interacting
34
34
  * with the control.
35
35
  */
36
- onBlurToOutside?: (event: React.FocusEvent) => void;
36
+ onBlurToOutside?: (event: FocusEvent) => void;
37
37
  /** Properties to pass to the root component. */
38
- rootProps?: React.ComponentPropsWithRef<"div">;
38
+ rootProps?: ComponentPropsWithRef<"div">;
39
39
  /** Properties to pass to the container component. */
40
- containerProps?: React.ComponentPropsWithRef<"div">;
40
+ containerProps?: ComponentPropsWithRef<"div">;
41
41
  /** Properties to pass to the code component. */
42
- codeProps?: React.ComponentPropsWithRef<typeof ControlCode>;
42
+ codeProps?: ComponentPropsWithRef<typeof ControlCode>;
43
43
  /** Properties to pass to the indicator component. */
44
- indicatorProps?: React.ComponentPropsWithRef<typeof Icon>;
44
+ indicatorProps?: ComponentPropsWithRef<typeof Icon>;
45
45
  /** Properties to pass to the label component. */
46
- labelProps?: Omit<React.ComponentPropsWithRef<typeof Label>, "required">;
46
+ labelProps?: Omit<ComponentPropsWithRef<typeof Label>, "required">;
47
47
  /** Properties to pass to the spinner component. */
48
- spinnerProps?: Omit<React.ComponentPropsWithRef<typeof Spinner>, "size">;
48
+ spinnerProps?: Omit<ComponentPropsWithRef<typeof Spinner>, "size">;
49
49
  }
50
50
  /**
51
51
  * The `Checkbox` component allows a user to toggle a “button” between checked
@@ -64,4 +64,4 @@ export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeo
64
64
  * }
65
65
  * ```
66
66
  */
67
- export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
67
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,9 +1,9 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type FocusEvent, type ReactNode } from "react";
2
2
  import { type ControlStatus, type ControlVariant } from "../../utils/control.ts";
3
3
  import { ControlCode } from "../ControlCode";
4
4
  import { Spinner } from "../Spinner";
5
5
  /** Properties of the checkbox group component. */
6
- export interface CheckboxGroupProps extends React.ComponentPropsWithoutRef<"div"> {
6
+ export interface CheckboxGroupProps extends ComponentPropsWithoutRef<"div"> {
7
7
  /**
8
8
  * Whether to display the checkbox group inline. Defaults to `false` unless
9
9
  * when rending inside a table cell.
@@ -17,7 +17,7 @@ export interface CheckboxGroupProps extends React.ComponentPropsWithoutRef<"div"
17
17
  /** Sets the status of the checkbox group. */
18
18
  status?: ControlStatus;
19
19
  /** Checkbox group code. */
20
- code?: React.ReactNode;
20
+ code?: ReactNode;
21
21
  /** Checkbox group name. */
22
22
  name?: string;
23
23
  /**
@@ -45,15 +45,15 @@ export interface CheckboxGroupProps extends React.ComponentPropsWithoutRef<"div"
45
45
  * This is useful when there is a need to know when the user stops interacting
46
46
  * with the control.
47
47
  */
48
- onBlurToOutside?: (event: React.FocusEvent) => void;
48
+ onBlurToOutside?: (event: FocusEvent) => void;
49
49
  /** Properties to pass to the code component. */
50
- codeProps?: React.ComponentPropsWithRef<typeof ControlCode>;
50
+ codeProps?: ComponentPropsWithRef<typeof ControlCode>;
51
51
  /** Properties to pass to the container component. */
52
- containerProps?: React.ComponentPropsWithRef<"div">;
52
+ containerProps?: ComponentPropsWithRef<"div">;
53
53
  /** Properties to pass to the end element containing the spinner. */
54
- endContainerProps?: React.ComponentPropsWithRef<"div">;
54
+ endContainerProps?: ComponentPropsWithRef<"div">;
55
55
  /** Properties to pass to the spinner component. */
56
- spinnerProps?: Omit<React.ComponentPropsWithRef<typeof Spinner>, "size">;
56
+ spinnerProps?: Omit<ComponentPropsWithRef<typeof Spinner>, "size">;
57
57
  }
58
58
  /**
59
59
  * The `CheckboxGroup` component displays a set of `Checkbox` components,
@@ -82,4 +82,4 @@ export interface CheckboxGroupProps extends React.ComponentPropsWithoutRef<"div"
82
82
  * }
83
83
  * ```
84
84
  */
85
- export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
85
+ export declare const CheckboxGroup: import("react").ForwardRefExoticComponent<CheckboxGroupProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,7 @@
1
- import * as React from "react";
2
1
  export interface CheckboxGroupContextValue {
3
2
  name?: string;
4
3
  value: string[];
5
4
  onCheckedChange: (value: string, checked: boolean) => void;
6
5
  }
7
6
  /** Checkbox group context. */
8
- export declare const CheckboxGroupContext: React.Context<CheckboxGroupContextValue | null>;
7
+ export declare const CheckboxGroupContext: import("react").Context<CheckboxGroupContextValue | null>;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { type ReactNode } from "react";
2
2
  /** Properties of the clear context component. */
3
3
  export interface ClearContextsProps {
4
4
  /**
@@ -25,7 +25,7 @@ export interface ClearContextsProps {
25
25
  * @default true
26
26
  */
27
27
  tableCell?: boolean;
28
- children?: React.ReactNode;
28
+ children?: ReactNode;
29
29
  }
30
30
  /** Component used to clear component contexts. */
31
- export declare function ClearContexts({ dataTableCell, field, link, tableCell, children, }: ClearContextsProps): React.ReactNode;
31
+ export declare function ClearContexts({ dataTableCell, field, link, tableCell, children, }: ClearContextsProps): ReactNode;
@@ -1,7 +1,7 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  import { IconButton } from "../IconButton";
3
3
  /** Properties of the close button component. */
4
- export interface CloseButtonProps extends Partial<React.ComponentPropsWithoutRef<typeof IconButton>> {
4
+ export interface CloseButtonProps extends Partial<ComponentPropsWithoutRef<typeof IconButton>> {
5
5
  }
6
6
  /** Component rendering a “close” button. */
7
- export declare const CloseButton: React.ForwardRefExoticComponent<CloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export declare const CloseButton: import("react").ForwardRefExoticComponent<CloseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,9 +1,9 @@
1
- import * as React from "react";
1
+ import { type ComponentPropsWithoutRef } from "react";
2
2
  import { type AccentColor } from "../../utils/accent.ts";
3
3
  /** Code colours. */
4
4
  export type CodeColor = AccentColor;
5
5
  /** Properties of the code component. */
6
- export interface CodeProps extends React.ComponentPropsWithoutRef<"code"> {
6
+ export interface CodeProps extends ComponentPropsWithoutRef<"code"> {
7
7
  /**
8
8
  * Change the component to the HTML tag or custom component of the only child.
9
9
  * This will merge the original component props with the props of the supplied
@@ -32,4 +32,4 @@ export interface CodeProps extends React.ComponentPropsWithoutRef<"code"> {
32
32
  * }
33
33
  * ```
34
34
  */
35
- export declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
35
+ export declare const Code: import("react").ForwardRefExoticComponent<CodeProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,9 +1,9 @@
1
1
  import { Collapsible as CollapsiblePrimitive } from "radix-ui";
2
- import * as React from "react";
2
+ import { type ComponentPropsWithoutRef } from "react";
3
3
  /** Direction in which to collapse/expand content. */
4
4
  export type CollapsibleDirection = "horizontal" | "vertical";
5
5
  /** Properties of the collapsible component. */
6
- export interface CollapsibleProps extends React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root> {
6
+ export interface CollapsibleProps extends ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root> {
7
7
  /**
8
8
  * Direction in which to collapse/expand content.
9
9
  *
@@ -22,4 +22,4 @@ export interface CollapsibleProps extends React.ComponentPropsWithoutRef<typeof
22
22
  * - `CollapsibleContent`: The content that are shown or hidden based on trigger's
23
23
  * state.
24
24
  */
25
- export declare const Collapsible: React.ForwardRefExoticComponent<CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
25
+ export declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;