@ostack.tech/ui 0.1.2 → 0.2.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.
- package/dist/chunks/en-lyNzumTm.js +105 -0
- package/dist/chunks/en-lyNzumTm.js.map +1 -0
- package/dist/locales/en-GB.js +16 -0
- package/dist/locales/en-GB.js.map +1 -0
- package/dist/locales/en-US.js +16 -0
- package/dist/locales/en-US.js.map +1 -0
- package/dist/locales/fr.js +110 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/pt.js +110 -0
- package/dist/locales/pt.js.map +1 -0
- package/dist/ostack-ui.js +6151 -6401
- package/dist/ostack-ui.js.map +1 -1
- package/dist/types/components/Alert/Alert.d.ts +9 -9
- package/dist/types/components/Alert/AlertTitle.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogAction.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogBody.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogCancel.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogContent.d.ts +5 -5
- package/dist/types/components/AlertDialog/AlertDialogDescription.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogFooter.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogHeader.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogTitle.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogTrigger.d.ts +3 -3
- package/dist/types/components/Button/Button.d.ts +7 -7
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -3
- package/dist/types/components/Calendar/Calendar.d.ts +6 -6
- package/dist/types/components/Calendar/CalendarContext.d.ts +1 -2
- package/dist/types/components/Calendar/CalendarDay.d.ts +2 -3
- package/dist/types/components/Calendar/CalendarMonthCaption.d.ts +2 -3
- package/dist/types/components/Card/Card.d.ts +3 -3
- package/dist/types/components/Card/CardBody.d.ts +3 -3
- package/dist/types/components/Card/CardFooter.d.ts +3 -3
- package/dist/types/components/Card/CardHeader.d.ts +3 -3
- package/dist/types/components/Card/CardTitle.d.ts +3 -3
- package/dist/types/components/Checkbox/Checkbox.d.ts +11 -11
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +9 -9
- package/dist/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +1 -2
- package/dist/types/components/ClearContexts/ClearContexts.d.ts +3 -3
- package/dist/types/components/CloseButton/CloseButton.d.ts +3 -3
- package/dist/types/components/Code/Code.d.ts +3 -3
- package/dist/types/components/Collapsible/Collapsible.d.ts +3 -3
- package/dist/types/components/Collapsible/CollapsibleContent.d.ts +3 -3
- package/dist/types/components/Collapsible/CollapsibleContext.d.ts +1 -2
- package/dist/types/components/Collapsible/CollapsibleTrigger.d.ts +4 -4
- package/dist/types/components/CommandMenu/CommandMenu.d.ts +11 -11
- package/dist/types/components/CommandMenu/CommandMenuDialog.d.ts +7 -7
- package/dist/types/components/CommandMenu/CommandMenuGroup.d.ts +4 -4
- package/dist/types/components/CommandMenu/CommandMenuItem.d.ts +3 -3
- package/dist/types/components/Container/Container.d.ts +3 -3
- package/dist/types/components/ControlAddon/ControlAddon.d.ts +3 -3
- package/dist/types/components/ControlCode/ControlCode.d.ts +4 -4
- package/dist/types/components/DataTable/DataTable.d.ts +11 -11
- package/dist/types/components/DataTable/DataTableApi.d.ts +2 -2
- package/dist/types/components/DataTable/DataTableBody.d.ts +4 -4
- package/dist/types/components/DataTable/DataTableCell.d.ts +4 -4
- package/dist/types/components/DataTable/DataTableColumn.d.ts +4 -4
- package/dist/types/components/DataTable/DataTableContent.d.ts +9 -9
- package/dist/types/components/DataTable/DataTableContext.d.ts +19 -19
- package/dist/types/components/DataTable/DataTableFilter.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableFoot.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableHead.d.ts +3 -3
- package/dist/types/components/DataTable/DataTablePagination.d.ts +4 -4
- package/dist/types/components/DataTable/DataTableRow.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableRowsPerPage.d.ts +4 -4
- package/dist/types/components/DataTable/DataTableSelectionTrigger.d.ts +5 -5
- package/dist/types/components/DataTable/PagedDataTablePagination.d.ts +3 -3
- package/dist/types/components/DataTable/ScrolledDataTablePagination.d.ts +3 -3
- package/dist/types/components/DataTable/getRowKey.d.ts +2 -2
- package/dist/types/components/DateInput/DateInput.d.ts +5 -5
- package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/types/components/DateRangeInput/DateRangeInput.d.ts +19 -19
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/types/components/Dialog/DialogBody.d.ts +3 -3
- package/dist/types/components/Dialog/DialogClose.d.ts +3 -3
- package/dist/types/components/Dialog/DialogContent.d.ts +5 -5
- package/dist/types/components/Dialog/DialogDescription.d.ts +3 -3
- package/dist/types/components/Dialog/DialogFooter.d.ts +3 -3
- package/dist/types/components/Dialog/DialogHeader.d.ts +4 -4
- package/dist/types/components/Dialog/DialogTitle.d.ts +3 -3
- package/dist/types/components/Dialog/DialogTrigger.d.ts +3 -3
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +3 -3
- package/dist/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +6 -6
- package/dist/types/components/DropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +3 -3
- package/dist/types/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +3 -3
- package/dist/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuSubContent.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +3 -3
- package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +3 -3
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +10 -10
- package/dist/types/components/Feedback/Feedback.d.ts +4 -4
- package/dist/types/components/FeedbackList/FeedbackList.d.ts +3 -3
- package/dist/types/components/FeedbackList/FeedbackListContext.d.ts +1 -2
- package/dist/types/components/FeedbackPopover/FeedbackPopover.d.ts +6 -6
- package/dist/types/components/FeedbackPopover/FeedbackPopoverContext.d.ts +1 -2
- package/dist/types/components/Field/Field.d.ts +3 -3
- package/dist/types/components/Field/FieldContext.d.ts +5 -5
- package/dist/types/components/FieldGroup/FieldGroup.d.ts +3 -3
- package/dist/types/components/FieldGroup/FieldGroupBody.d.ts +3 -3
- package/dist/types/components/FieldGroup/FieldGroupContext.d.ts +4 -4
- package/dist/types/components/FieldGroup/FieldGroupHeader.d.ts +6 -6
- package/dist/types/components/FieldGroup/FieldGroupTitle.d.ts +3 -3
- package/dist/types/components/Grid/Grid.d.ts +3 -3
- package/dist/types/components/Heading/Heading.d.ts +3 -3
- package/dist/types/components/HelperText/HelperText.d.ts +3 -3
- package/dist/types/components/Icon/Icon.d.ts +4 -4
- package/dist/types/components/IconButton/IconButton.d.ts +9 -9
- package/dist/types/components/Input/Input.d.ts +14 -14
- package/dist/types/components/Input/InputWithContainerRef.d.ts +4 -4
- package/dist/types/components/Keyboard/Keyboard.d.ts +3 -3
- package/dist/types/components/Label/Label.d.ts +10 -10
- package/dist/types/components/Link/Link.d.ts +4 -4
- package/dist/types/components/Link/LinkContext.d.ts +1 -2
- package/dist/types/components/Mark/Mark.d.ts +3 -3
- package/dist/types/components/MenuList/MenuList.d.ts +3 -3
- package/dist/types/components/MenuList/MenuListContext.d.ts +1 -2
- package/dist/types/components/MenuList/MenuListGroup.d.ts +7 -7
- package/dist/types/components/MenuList/MenuListItem.d.ts +13 -13
- package/dist/types/components/NumericInput/NumericInput.d.ts +3 -3
- package/dist/types/components/Output/Output.d.ts +3 -3
- package/dist/types/components/Overlay/Overlay.d.ts +3 -3
- package/dist/types/components/Popover/PopoverClose.d.ts +3 -3
- package/dist/types/components/Popover/PopoverContent.d.ts +5 -5
- package/dist/types/components/Popover/PopoverTrigger.d.ts +3 -3
- package/dist/types/components/Portal/Portal.d.ts +3 -3
- package/dist/types/components/Portal/PortalContext.d.ts +1 -2
- package/dist/types/components/RadioGroup/Radio.d.ts +10 -10
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +10 -10
- package/dist/types/components/Root/Root.d.ts +14 -10
- package/dist/types/components/Root/RootContext.d.ts +1 -2
- package/dist/types/components/Root/RootElement.d.ts +9 -0
- package/dist/types/components/Root/index.d.ts +1 -1
- package/dist/types/components/Select/Option.d.ts +3 -3
- package/dist/types/components/Select/OptionsGroup.d.ts +3 -3
- package/dist/types/components/Select/Select.d.ts +11 -11
- package/dist/types/components/Select/SelectContext.d.ts +6 -6
- package/dist/types/components/Separator/Separator.d.ts +3 -3
- package/dist/types/components/Slot/Slottable.d.ts +3 -3
- package/dist/types/components/Spinner/Spinner.d.ts +3 -3
- package/dist/types/components/Stack/Stack.d.ts +8 -8
- package/dist/types/components/Stepper/Step.d.ts +5 -5
- package/dist/types/components/Stepper/StepContent.d.ts +3 -3
- package/dist/types/components/Stepper/StepList.d.ts +3 -3
- package/dist/types/components/Stepper/Stepper.d.ts +5 -5
- package/dist/types/components/Stepper/StepperContext.d.ts +1 -2
- package/dist/types/components/Table/Table.d.ts +5 -5
- package/dist/types/components/Table/TableBody.d.ts +3 -3
- package/dist/types/components/Table/TableCell.d.ts +4 -4
- package/dist/types/components/Table/TableColumn.d.ts +14 -14
- package/dist/types/components/Table/TableContext.d.ts +4 -5
- package/dist/types/components/Table/TableFoot.d.ts +3 -3
- package/dist/types/components/Table/TableHead.d.ts +4 -4
- package/dist/types/components/Table/TableRow.d.ts +3 -3
- package/dist/types/components/Tabs/Tab.d.ts +4 -4
- package/dist/types/components/Tabs/TabContent.d.ts +3 -3
- package/dist/types/components/Tabs/TabList.d.ts +5 -5
- package/dist/types/components/Tabs/Tabs.d.ts +3 -3
- package/dist/types/components/Tabs/TabsContext.d.ts +1 -2
- package/dist/types/components/Tag/Tag.d.ts +7 -7
- package/dist/types/components/TextArea/TextArea.d.ts +3 -3
- package/dist/types/components/Toast/Toast.d.ts +11 -11
- package/dist/types/components/Toast/ToastProvider.d.ts +2 -2
- package/dist/types/components/Toast/ToastTitle.d.ts +3 -3
- package/dist/types/components/Toast/ToastViewport.d.ts +3 -3
- package/dist/types/components/Tooltip/Tooltip.d.ts +7 -7
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locales/en-GB.d.ts +3 -0
- package/dist/types/locales/en-US.d.ts +3 -0
- package/dist/types/{locale → locales}/en.d.ts +1 -1
- package/dist/types/locales/fr.d.ts +3 -0
- package/dist/types/locales/index.d.ts +4 -0
- package/dist/types/locales/pt.d.ts +3 -0
- package/dist/types/providers/AlertDialogProvider/AlertDialogProvider.d.ts +2 -2
- package/dist/types/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +17 -17
- package/dist/types/providers/DocumentTitleProvider/DocumentTitle.d.ts +2 -2
- package/dist/types/providers/DocumentTitleProvider/DocumentTitleProvider.d.ts +2 -2
- package/dist/types/providers/DocumentTitleProvider/DocumentTitleProviderContext.d.ts +2 -3
- package/dist/types/providers/ErrorReportingProvider/ErrorReport.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/ErrorReportingContext.d.ts +3 -3
- package/dist/types/providers/ErrorReportingProvider/ErrorReportingProvider.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/useErrorReporter.d.ts +1 -2
- package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +6 -4
- package/dist/types/{locale → providers/LocalizationProvider}/LocalizationObject.d.ts +18 -18
- package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +13 -5
- package/dist/types/providers/LocalizationProvider/index.d.ts +1 -0
- package/dist/types/providers/LocalizationProvider/useLocale.d.ts +6 -3
- package/dist/types/providers/PrefixProvider/PrefixContext.d.ts +1 -4
- package/dist/types/providers/PrefixProvider/PrefixProvider.d.ts +3 -3
- package/dist/types/providers/PrefixProvider/defaultPrefix.d.ts +12 -0
- package/dist/types/providers/PrefixProvider/index.d.ts +1 -0
- package/dist/types/providers/PrefixProvider/usePrefix.d.ts +1 -1
- package/dist/types/providers/ToastManagerProvider/ToastManagerContext.d.ts +7 -7
- package/dist/types/providers/ToastManagerProvider/ToastManagerProvider.d.ts +2 -2
- package/dist/types/utils/control.d.ts +1 -2
- package/dist/types/utils/useCombinedRef.d.ts +2 -2
- package/dist/types/utils/useControllableState.d.ts +2 -2
- package/dist/types/utils/useLayoutEffect.d.ts +2 -2
- package/package.json +20 -4
- package/dist/ostack-ui.cjs +0 -11095
- package/dist/ostack-ui.cjs.map +0 -1
- package/dist/types/locale/defaultLocale.d.ts +0 -3
- package/dist/types/locale/en-GB.d.ts +0 -3
- package/dist/types/locale/en-US.d.ts +0 -3
- package/dist/types/locale/fr-FR.d.ts +0 -3
- package/dist/types/locale/index.d.ts +0 -6
- package/dist/types/locale/pt-PT.d.ts +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
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?:
|
|
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?:
|
|
50
|
+
containerProps?: ComponentPropsWithRef<typeof CollapsibleContent>;
|
|
51
51
|
/** Properties to pass to the icon component. */
|
|
52
|
-
iconProps?: Omit<
|
|
52
|
+
iconProps?: Omit<ComponentPropsWithRef<typeof Icon>, "icon">;
|
|
53
53
|
/** Properties to pass to the content component. */
|
|
54
|
-
contentProps?:
|
|
54
|
+
contentProps?: ComponentPropsWithRef<"div">;
|
|
55
55
|
/** Properties to pass to the component containing the action/close button. */
|
|
56
|
-
actionContainerProps?:
|
|
56
|
+
actionContainerProps?: ComponentPropsWithRef<"div">;
|
|
57
57
|
/** Properties to pass to the close button component. */
|
|
58
|
-
closeButtonProps?:
|
|
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:
|
|
82
|
+
export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the alert title component. */
|
|
3
|
-
export interface AlertTitleProps extends
|
|
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:
|
|
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
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the alert dialog action component. */
|
|
4
|
-
export interface AlertDialogActionProps extends Omit<
|
|
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:
|
|
10
|
+
export declare const AlertDialogAction: import("react").ForwardRefExoticComponent<AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
4
|
+
export interface AlertDialogBodyProps extends ComponentPropsWithoutRef<typeof DialogBody> {
|
|
5
5
|
}
|
|
6
6
|
/** Body section of the alert dialog. */
|
|
7
|
-
export declare const AlertDialogBody:
|
|
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
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the alert dialog cancel component. */
|
|
4
|
-
export interface AlertDialogCancelProps extends Omit<
|
|
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:
|
|
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
|
|
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
|
|
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<
|
|
40
|
+
portalProps?: Omit<ComponentPropsWithRef<typeof AlertDialogPrimitive.Portal>, "forceMount">;
|
|
41
41
|
/** Properties to pass to the dialog's overlay component. */
|
|
42
|
-
overlayProps?:
|
|
42
|
+
overlayProps?: ComponentPropsWithRef<typeof Overlay>;
|
|
43
43
|
}
|
|
44
44
|
/** Content to be rendered in the open alert dialog. */
|
|
45
|
-
export declare const AlertDialogContent:
|
|
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
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the alert dialog description component. */
|
|
4
|
-
export interface AlertDialogDescriptionProps extends
|
|
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:
|
|
14
|
+
export declare const AlertDialogDescription: import("react").ForwardRefExoticComponent<AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
4
|
+
export interface AlertDialogFooterProps extends ComponentPropsWithoutRef<typeof DialogFooter> {
|
|
5
5
|
}
|
|
6
6
|
/** Footer section of the alert dialog. */
|
|
7
|
-
export declare const AlertDialogFooter:
|
|
7
|
+
export declare const AlertDialogFooter: import("react").ForwardRefExoticComponent<AlertDialogFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
4
|
+
export interface AlertDialogHeaderProps extends ComponentPropsWithoutRef<typeof CardHeader> {
|
|
5
5
|
}
|
|
6
6
|
/** Header section of the alert dialog. */
|
|
7
|
-
export declare const AlertDialogHeader:
|
|
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
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the alert dialog title component. */
|
|
4
|
-
export interface AlertDialogTitleProps extends
|
|
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:
|
|
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
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the alert dialog trigger component. */
|
|
4
|
-
export interface AlertDialogTriggerProps extends Omit<
|
|
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:
|
|
7
|
+
export declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
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 |
|
|
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?:
|
|
91
|
+
loadingContent?: ReactNode;
|
|
92
92
|
/** Properties to pass to the icon component. */
|
|
93
|
-
iconProps?: Omit<
|
|
93
|
+
iconProps?: Omit<ComponentPropsWithRef<typeof Icon>, "icon">;
|
|
94
94
|
/** Properties to pass to the spinner component. */
|
|
95
|
-
spinnerProps?:
|
|
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:
|
|
111
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the button group component. */
|
|
3
|
-
export interface ButtonGroupProps extends
|
|
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:
|
|
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
|
|
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?:
|
|
27
|
+
captionProps?: ComponentPropsWithRef<"div">;
|
|
28
28
|
/** Properties to pass to the previous button component. */
|
|
29
|
-
previousButtonProps?:
|
|
29
|
+
previousButtonProps?: ComponentPropsWithRef<typeof IconButton>;
|
|
30
30
|
/** Properties to pass to the next button component. */
|
|
31
|
-
nextButtonProps?:
|
|
31
|
+
nextButtonProps?: ComponentPropsWithRef<typeof IconButton>;
|
|
32
32
|
/** Properties to pass to the month select component. */
|
|
33
|
-
monthSelectProps?: Omit<
|
|
33
|
+
monthSelectProps?: Omit<ComponentPropsWithRef<typeof Select>, "multiple" | "defaultValue" | "value">;
|
|
34
34
|
/** Properties to pass to the year select component. */
|
|
35
|
-
yearSelectProps?: Omit<
|
|
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:
|
|
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:
|
|
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
|
-
} &
|
|
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:
|
|
5
|
+
export declare const CalendarMonthCaption: import("react").NamedExoticComponent<{
|
|
7
6
|
calendarMonth: import("react-day-picker").CalendarMonth;
|
|
8
7
|
displayIndex: number;
|
|
9
|
-
} &
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
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
|
|
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:
|
|
70
|
+
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the card body component. */
|
|
3
|
-
export interface CardBodyProps extends
|
|
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:
|
|
12
|
+
export declare const CardBody: import("react").ForwardRefExoticComponent<CardBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the card footer component. */
|
|
3
|
-
export interface CardFooterProps extends
|
|
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:
|
|
12
|
+
export declare const CardFooter: import("react").ForwardRefExoticComponent<CardFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the card header component. */
|
|
3
|
-
export interface CardHeaderProps extends
|
|
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:
|
|
12
|
+
export declare const CardHeader: import("react").ForwardRefExoticComponent<CardHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
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:
|
|
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
|
|
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<
|
|
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?:
|
|
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:
|
|
36
|
+
onBlurToOutside?: (event: FocusEvent) => void;
|
|
37
37
|
/** Properties to pass to the root component. */
|
|
38
|
-
rootProps?:
|
|
38
|
+
rootProps?: ComponentPropsWithRef<"div">;
|
|
39
39
|
/** Properties to pass to the container component. */
|
|
40
|
-
containerProps?:
|
|
40
|
+
containerProps?: ComponentPropsWithRef<"div">;
|
|
41
41
|
/** Properties to pass to the code component. */
|
|
42
|
-
codeProps?:
|
|
42
|
+
codeProps?: ComponentPropsWithRef<typeof ControlCode>;
|
|
43
43
|
/** Properties to pass to the indicator component. */
|
|
44
|
-
indicatorProps?:
|
|
44
|
+
indicatorProps?: ComponentPropsWithRef<typeof Icon>;
|
|
45
45
|
/** Properties to pass to the label component. */
|
|
46
|
-
labelProps?: Omit<
|
|
46
|
+
labelProps?: Omit<ComponentPropsWithRef<typeof Label>, "required">;
|
|
47
47
|
/** Properties to pass to the spinner component. */
|
|
48
|
-
spinnerProps?: Omit<
|
|
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:
|
|
67
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
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
|
|
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?:
|
|
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:
|
|
48
|
+
onBlurToOutside?: (event: FocusEvent) => void;
|
|
49
49
|
/** Properties to pass to the code component. */
|
|
50
|
-
codeProps?:
|
|
50
|
+
codeProps?: ComponentPropsWithRef<typeof ControlCode>;
|
|
51
51
|
/** Properties to pass to the container component. */
|
|
52
|
-
containerProps?:
|
|
52
|
+
containerProps?: ComponentPropsWithRef<"div">;
|
|
53
53
|
/** Properties to pass to the end element containing the spinner. */
|
|
54
|
-
endContainerProps?:
|
|
54
|
+
endContainerProps?: ComponentPropsWithRef<"div">;
|
|
55
55
|
/** Properties to pass to the spinner component. */
|
|
56
|
-
spinnerProps?: Omit<
|
|
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:
|
|
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:
|
|
7
|
+
export declare const CheckboxGroupContext: import("react").Context<CheckboxGroupContextValue | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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?:
|
|
28
|
+
children?: ReactNode;
|
|
29
29
|
}
|
|
30
30
|
/** Component used to clear component contexts. */
|
|
31
|
-
export declare function ClearContexts({ dataTableCell, field, link, tableCell, children, }: ClearContextsProps):
|
|
31
|
+
export declare function ClearContexts({ dataTableCell, field, link, tableCell, children, }: ClearContextsProps): ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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<
|
|
4
|
+
export interface CloseButtonProps extends Partial<ComponentPropsWithoutRef<typeof IconButton>> {
|
|
5
5
|
}
|
|
6
6
|
/** Component rendering a “close” button. */
|
|
7
|
-
export declare const CloseButton:
|
|
7
|
+
export declare const CloseButton: import("react").ForwardRefExoticComponent<CloseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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:
|
|
25
|
+
export declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
|