@ostack.tech/ui 0.3.0 → 0.3.2
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.map +1 -1
- package/dist/locales/en-GB.js.map +1 -1
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/fr.js.map +1 -1
- package/dist/locales/pt.js.map +1 -1
- package/dist/ostack-ui.js +8773 -8752
- package/dist/ostack-ui.js.map +1 -1
- package/dist/types/components/Alert/Alert.d.ts +5 -5
- package/dist/types/components/Alert/AlertTitle.d.ts +2 -2
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/AlertDialog/AlertDialog.d.ts +2 -2
- 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/AlertDialog/index.d.ts +10 -10
- package/dist/types/components/Button/Button.d.ts +5 -5
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/types/components/ButtonGroup/index.d.ts +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts +5 -5
- package/dist/types/components/Calendar/CalendarContext.d.ts +2 -2
- package/dist/types/components/Calendar/CalendarDay.d.ts +4 -4
- package/dist/types/components/Calendar/CalendarMonthCaption.d.ts +3 -3
- package/dist/types/components/Calendar/index.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +3 -3
- package/dist/types/components/Card/CardBody.d.ts +2 -2
- package/dist/types/components/Card/CardFooter.d.ts +2 -2
- package/dist/types/components/Card/CardHeader.d.ts +2 -2
- package/dist/types/components/Card/CardTitle.d.ts +3 -3
- package/dist/types/components/Card/index.d.ts +5 -5
- package/dist/types/components/Checkbox/Checkbox.d.ts +8 -8
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +5 -5
- package/dist/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +1 -1
- package/dist/types/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/types/components/ClearContexts/ClearContexts.d.ts +1 -1
- package/dist/types/components/ClearContexts/index.d.ts +1 -1
- package/dist/types/components/CloseButton/CloseButton.d.ts +3 -3
- package/dist/types/components/CloseButton/index.d.ts +1 -1
- package/dist/types/components/Code/Code.d.ts +3 -3
- package/dist/types/components/Code/index.d.ts +1 -1
- 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 +2 -2
- package/dist/types/components/Collapsible/CollapsibleTrigger.d.ts +3 -3
- package/dist/types/components/Collapsible/index.d.ts +3 -3
- package/dist/types/components/CommandMenu/CommandMenu.d.ts +8 -8
- package/dist/types/components/CommandMenu/CommandMenuDialog.d.ts +5 -5
- package/dist/types/components/CommandMenu/CommandMenuGroup.d.ts +3 -3
- package/dist/types/components/CommandMenu/CommandMenuItem.d.ts +4 -4
- package/dist/types/components/CommandMenu/index.d.ts +4 -4
- package/dist/types/components/Container/Container.d.ts +4 -4
- package/dist/types/components/Container/index.d.ts +1 -1
- package/dist/types/components/ControlAddon/ControlAddon.d.ts +3 -3
- package/dist/types/components/ControlAddon/index.d.ts +1 -1
- package/dist/types/components/ControlCode/ControlCode.d.ts +3 -3
- package/dist/types/components/ControlCode/index.d.ts +1 -1
- package/dist/types/components/DataTable/DataTable.d.ts +7 -7
- 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 +3 -3
- package/dist/types/components/DataTable/DataTableColumn.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableContent.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableContext.d.ts +10 -10
- package/dist/types/components/DataTable/DataTableEmptyOrLoadingRows.d.ts +1 -1
- 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 +10 -2
- package/dist/types/components/DataTable/DataTableRow.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableRowsPerPage.d.ts +2 -2
- package/dist/types/components/DataTable/DataTableSelectionTrigger.d.ts +3 -3
- package/dist/types/components/DataTable/PagedDataTablePagination.d.ts +4 -4
- package/dist/types/components/DataTable/ScrolledDataTablePagination.d.ts +3 -3
- package/dist/types/components/DataTable/ScrolledDataTableRows.d.ts +1 -1
- package/dist/types/components/DataTable/getRowKey.d.ts +2 -2
- package/dist/types/components/DataTable/index.d.ts +12 -12
- package/dist/types/components/DataTable/transformRows.d.ts +2 -2
- package/dist/types/components/DataTable/useDataTableSelectionColumn.d.ts +1 -1
- package/dist/types/components/DateInput/DateInput.d.ts +6 -6
- package/dist/types/components/DateInput/index.d.ts +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/types/components/DatePicker/index.d.ts +1 -1
- package/dist/types/components/DateRangeInput/DateRangeInput.d.ts +11 -11
- package/dist/types/components/DateRangeInput/index.d.ts +1 -1
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/types/components/DateRangePicker/index.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.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/Dialog/index.d.ts +9 -9
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/dist/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +6 -6
- package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuGroup.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuSub.d.ts +2 -2
- package/dist/types/components/DropdownMenu/DropdownMenuSubContent.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +3 -3
- package/dist/types/components/DropdownMenu/index.d.ts +11 -11
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +5 -5
- package/dist/types/components/ErrorBoundary/index.d.ts +2 -2
- package/dist/types/components/ErrorBoundary/useErrorBoundary.d.ts +1 -1
- package/dist/types/components/Feedback/Feedback.d.ts +2 -2
- package/dist/types/components/Feedback/index.d.ts +1 -1
- package/dist/types/components/FeedbackList/FeedbackList.d.ts +2 -2
- package/dist/types/components/FeedbackList/FeedbackListContext.d.ts +1 -1
- package/dist/types/components/FeedbackList/index.d.ts +2 -2
- package/dist/types/components/FeedbackPopover/FeedbackPopover.d.ts +5 -5
- package/dist/types/components/FeedbackPopover/FeedbackPopoverContext.d.ts +2 -2
- package/dist/types/components/FeedbackPopover/index.d.ts +2 -2
- package/dist/types/components/Field/Field.d.ts +2 -2
- package/dist/types/components/Field/FieldContext.d.ts +3 -3
- package/dist/types/components/Field/index.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroup.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupBody.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupContext.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupHeader.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupTitle.d.ts +3 -3
- package/dist/types/components/FieldGroup/index.d.ts +4 -4
- package/dist/types/components/Grid/Grid.d.ts +3 -3
- package/dist/types/components/Grid/index.d.ts +1 -1
- package/dist/types/components/Heading/Heading.d.ts +2 -2
- package/dist/types/components/Heading/index.d.ts +1 -1
- package/dist/types/components/HelperText/HelperText.d.ts +2 -2
- package/dist/types/components/HelperText/index.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +6 -6
- package/dist/types/components/Icon/index.d.ts +1 -1
- package/dist/types/components/IconButton/IconButton.d.ts +6 -6
- package/dist/types/components/IconButton/index.d.ts +1 -1
- package/dist/types/components/Input/Input.d.ts +7 -7
- package/dist/types/components/Input/InputWithContainerRef.d.ts +4 -4
- package/dist/types/components/Input/index.d.ts +2 -2
- package/dist/types/components/Keyboard/Keyboard.d.ts +2 -2
- package/dist/types/components/Keyboard/index.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +6 -6
- package/dist/types/components/Label/index.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts +4 -4
- package/dist/types/components/Link/LinkContext.d.ts +2 -2
- package/dist/types/components/Link/index.d.ts +1 -1
- package/dist/types/components/Mark/Mark.d.ts +3 -3
- package/dist/types/components/Mark/index.d.ts +1 -1
- package/dist/types/components/MenuList/MenuList.d.ts +2 -2
- package/dist/types/components/MenuList/MenuListContext.d.ts +2 -2
- package/dist/types/components/MenuList/MenuListGroup.d.ts +2 -2
- package/dist/types/components/MenuList/MenuListItem.d.ts +6 -6
- package/dist/types/components/MenuList/index.d.ts +3 -3
- package/dist/types/components/NumericInput/NumericInput.d.ts +4 -4
- package/dist/types/components/NumericInput/index.d.ts +1 -1
- package/dist/types/components/Output/Output.d.ts +3 -3
- package/dist/types/components/Output/index.d.ts +1 -1
- package/dist/types/components/Overlay/Overlay.d.ts +2 -2
- package/dist/types/components/Overlay/index.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +2 -2
- package/dist/types/components/Popover/PopoverAnchor.d.ts +2 -2
- package/dist/types/components/Popover/PopoverClose.d.ts +3 -3
- package/dist/types/components/Popover/PopoverContent.d.ts +3 -3
- package/dist/types/components/Popover/PopoverTrigger.d.ts +3 -3
- package/dist/types/components/Popover/index.d.ts +5 -5
- package/dist/types/components/Portal/Portal.d.ts +3 -3
- package/dist/types/components/Portal/PortalContext.d.ts +1 -1
- package/dist/types/components/Portal/index.d.ts +2 -2
- package/dist/types/components/RadioGroup/Radio.d.ts +7 -7
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +8 -8
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/Root/Root.d.ts +7 -7
- package/dist/types/components/Root/RootContext.d.ts +1 -1
- package/dist/types/components/Root/RootElement.d.ts +3 -3
- package/dist/types/components/Root/index.d.ts +2 -2
- 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 +7 -7
- package/dist/types/components/Select/SelectContext.d.ts +7 -7
- package/dist/types/components/Select/SelectSingleValue.d.ts +1 -1
- package/dist/types/components/Select/index.d.ts +3 -3
- package/dist/types/components/Separator/Separator.d.ts +3 -3
- package/dist/types/components/Separator/index.d.ts +1 -1
- package/dist/types/components/Slot/Slot.d.ts +2 -2
- package/dist/types/components/Slot/Slottable.d.ts +1 -1
- package/dist/types/components/Slot/index.d.ts +2 -2
- package/dist/types/components/Spinner/Spinner.d.ts +3 -3
- package/dist/types/components/Spinner/index.d.ts +1 -1
- package/dist/types/components/Stack/Stack.d.ts +3 -3
- package/dist/types/components/Stack/index.d.ts +1 -1
- 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 +3 -3
- package/dist/types/components/Stepper/StepperContext.d.ts +1 -1
- package/dist/types/components/Stepper/index.d.ts +4 -4
- package/dist/types/components/Table/Table.d.ts +3 -3
- package/dist/types/components/Table/TableBody.d.ts +2 -2
- package/dist/types/components/Table/TableCell.d.ts +3 -3
- package/dist/types/components/Table/TableColumn.d.ts +9 -9
- package/dist/types/components/Table/TableContext.d.ts +8 -8
- package/dist/types/components/Table/TableFoot.d.ts +2 -2
- package/dist/types/components/Table/TableHead.d.ts +3 -3
- package/dist/types/components/Table/TableRow.d.ts +2 -2
- package/dist/types/components/Table/index.d.ts +8 -8
- 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 +3 -3
- package/dist/types/components/Tabs/Tabs.d.ts +3 -3
- package/dist/types/components/Tabs/TabsContext.d.ts +4 -4
- package/dist/types/components/Tabs/index.d.ts +4 -4
- package/dist/types/components/Tag/Badge.d.ts +2 -2
- package/dist/types/components/Tag/Tag.d.ts +6 -6
- package/dist/types/components/Tag/index.d.ts +2 -2
- package/dist/types/components/TextArea/TextArea.d.ts +3 -3
- package/dist/types/components/TextArea/index.d.ts +1 -1
- package/dist/types/components/Toast/Toast.d.ts +5 -5
- package/dist/types/components/Toast/ToastDescription.d.ts +2 -2
- 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/Toast/index.d.ts +5 -5
- package/dist/types/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/types/components/Tooltip/TooltipProvider.d.ts +2 -2
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +2 -2
- package/dist/types/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/types/index.d.ts +96 -96
- package/dist/types/locales/en-GB.d.ts +1 -1
- package/dist/types/locales/en-US.d.ts +1 -1
- package/dist/types/locales/en.d.ts +1 -1
- package/dist/types/locales/fr.d.ts +1 -1
- package/dist/types/locales/index.d.ts +4 -4
- package/dist/types/locales/pt.d.ts +1 -1
- package/dist/types/providers/AlertDialogProvider/AlertDialogProvider.d.ts +1 -1
- package/dist/types/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +4 -4
- package/dist/types/providers/AlertDialogProvider/index.d.ts +3 -3
- package/dist/types/providers/AlertDialogProvider/useAlertDialog.d.ts +1 -1
- package/dist/types/providers/DocumentTitleProvider/DocumentTitle.d.ts +1 -1
- package/dist/types/providers/DocumentTitleProvider/DocumentTitleProvider.d.ts +1 -1
- package/dist/types/providers/DocumentTitleProvider/DocumentTitleProviderContext.d.ts +3 -3
- package/dist/types/providers/DocumentTitleProvider/index.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/ErrorReport.d.ts +1 -1
- package/dist/types/providers/ErrorReportingProvider/ErrorReportingContext.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/ErrorReportingProvider.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/index.d.ts +4 -4
- package/dist/types/providers/ErrorReportingProvider/useErrorReporter.d.ts +1 -1
- package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +2 -2
- package/dist/types/providers/LocalizationProvider/LocalizationObject.d.ts +19 -19
- package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +3 -3
- package/dist/types/providers/LocalizationProvider/index.d.ts +4 -4
- package/dist/types/providers/LocalizationProvider/useLocale.d.ts +1 -1
- package/dist/types/providers/PrefixProvider/PrefixContext.d.ts +1 -1
- package/dist/types/providers/PrefixProvider/PrefixProvider.d.ts +2 -2
- package/dist/types/providers/PrefixProvider/defaultPrefix.d.ts +1 -1
- package/dist/types/providers/PrefixProvider/index.d.ts +4 -4
- package/dist/types/providers/ToastManagerProvider/ToastManagerContext.d.ts +4 -4
- package/dist/types/providers/ToastManagerProvider/ToastManagerProvider.d.ts +1 -1
- package/dist/types/providers/ToastManagerProvider/index.d.ts +3 -3
- package/dist/types/providers/ToastManagerProvider/useToastManager.d.ts +1 -1
- package/dist/types/utils/breakpoints.d.ts +1 -1
- package/dist/types/utils/control.d.ts +2 -2
- package/dist/types/utils/parseDateStrict.d.ts +1 -1
- package/dist/types/utils/useCombinedRef.d.ts +1 -1
- package/dist/types/utils/useControllableState.d.ts +1 -1
- package/dist/types/utils/useCssVars.d.ts +1 -1
- package/dist/types/utils/useDateTransformer.d.ts +1 -1
- package/dist/types/utils/useLayoutEffect.d.ts +1 -1
- package/dist/types/utils/useResponsiveValues.d.ts +2 -2
- package/dist/types/utils/zustandUtils.d.ts +1 -1
- package/package.json +7 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './HelperText.tsx';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FontAwesomeIcon } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export type { IconProp } from
|
|
1
|
+
import { FlipProp, IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
import { AccentColor } from '../../utils/accent.ts';
|
|
5
|
+
export type { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
6
6
|
/** Possible sizes of an icon. */
|
|
7
7
|
export type IconSize = "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
8
8
|
/** Possible colours of an icon. */
|
|
@@ -54,4 +54,4 @@ export interface IconProps extends Omit<ComponentPropsWithoutRef<typeof FontAwes
|
|
|
54
54
|
* }
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
export declare const Icon: import(
|
|
57
|
+
export declare const Icon: import('react').NamedExoticComponent<IconProps & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Icon.tsx';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Icon,
|
|
4
|
-
import { Spinner } from
|
|
5
|
-
import { Tooltip } from
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ButtonColor, ButtonSize, ButtonVariant } from '../Button';
|
|
3
|
+
import { Icon, IconProp } from '../Icon';
|
|
4
|
+
import { Spinner } from '../Spinner';
|
|
5
|
+
import { Tooltip } from '../Tooltip';
|
|
6
6
|
/** Icon button variants. */
|
|
7
7
|
export type IconButtonVariant = ButtonVariant;
|
|
8
8
|
/** Icon button colours. */
|
|
@@ -98,4 +98,4 @@ export interface IconButtonProps extends Omit<ComponentPropsWithoutRef<"button">
|
|
|
98
98
|
* }
|
|
99
99
|
* ```
|
|
100
100
|
*/
|
|
101
|
-
export declare const IconButton: import(
|
|
101
|
+
export declare const IconButton: import('react').ForwardRefExoticComponent<IconButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './IconButton.tsx';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CloseButton } from
|
|
5
|
-
import {
|
|
6
|
-
import { Spinner } from
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, FocusEvent, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ControlStatus, ControlVariant } from '../../utils/control.ts';
|
|
3
|
+
import { Responsive } from '../../utils/useResponsiveValues.ts';
|
|
4
|
+
import { CloseButton } from '../CloseButton';
|
|
5
|
+
import { ControlAddon } from '../ControlAddon';
|
|
6
|
+
import { Spinner } from '../Spinner';
|
|
7
7
|
/** Accepted values for "show clear button". */
|
|
8
8
|
export type ShowClearButton = boolean | "auto";
|
|
9
9
|
export interface InputProps extends Omit<ComponentPropsWithoutRef<"input">, "children">, InputPropsBase {
|
|
@@ -89,4 +89,4 @@ export interface InputPropsBase {
|
|
|
89
89
|
* }
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
|
-
export declare const Input: import(
|
|
92
|
+
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Input,
|
|
1
|
+
import { ComponentRef, Ref } from 'react';
|
|
2
|
+
import { Input, InputProps } from './Input.tsx';
|
|
3
3
|
/**
|
|
4
4
|
* Utility input component whose `ref` is passed to the input's container. Use
|
|
5
5
|
* `inputRef` to provide the input's ref instead.
|
|
@@ -9,6 +9,6 @@ import { Input, type InputProps } from "./Input.tsx";
|
|
|
9
9
|
* container (since popovers/menus align themselves based on the element
|
|
10
10
|
* referenced by their trigger).
|
|
11
11
|
*/
|
|
12
|
-
export declare const InputWithContainerRef: import(
|
|
12
|
+
export declare const InputWithContainerRef: import('react').ForwardRefExoticComponent<InputProps & {
|
|
13
13
|
inputRef?: Ref<ComponentRef<typeof Input>>;
|
|
14
|
-
} & import(
|
|
14
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Input.tsx';
|
|
2
|
+
export * from './InputWithContainerRef.tsx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
/** Properties of the keyboard component. */
|
|
3
3
|
export interface KeyboardProps extends ComponentPropsWithoutRef<"kbd"> {
|
|
4
4
|
/**
|
|
@@ -12,4 +12,4 @@ export interface KeyboardProps extends ComponentPropsWithoutRef<"kbd"> {
|
|
|
12
12
|
* Component used to show which key or combination of keys performs a given
|
|
13
13
|
* action.
|
|
14
14
|
*/
|
|
15
|
-
export declare const Keyboard: import(
|
|
15
|
+
export declare const Keyboard: import('react').ForwardRefExoticComponent<KeyboardProps & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Keyboard.tsx';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Label as LabelPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import { Icon } from
|
|
4
|
-
import { IconButton } from
|
|
5
|
-
import { Popover, PopoverContent } from
|
|
1
|
+
import { Label as LabelPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
|
|
3
|
+
import { Icon } from '../Icon';
|
|
4
|
+
import { IconButton } from '../IconButton';
|
|
5
|
+
import { Popover, PopoverContent } from '../Popover';
|
|
6
6
|
/** Properties of the label component. */
|
|
7
7
|
export interface LabelProps extends ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
8
8
|
/** Shows a "required" symbol next to the label. */
|
|
@@ -44,4 +44,4 @@ export interface LabelProps extends ComponentPropsWithoutRef<typeof LabelPrimiti
|
|
|
44
44
|
* }
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
export declare const Label: import(
|
|
47
|
+
export declare const Label: import('react').ForwardRefExoticComponent<LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Label.tsx';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Icon,
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { AccentColor } from '../../utils/accent.ts';
|
|
3
|
+
import { Icon, IconProp } from '../Icon';
|
|
4
4
|
/** Link variants. */
|
|
5
5
|
export type LinkVariant = "default" | "alert";
|
|
6
6
|
/** Link colours. */
|
|
@@ -55,4 +55,4 @@ export interface LinkProps extends ComponentPropsWithoutRef<"a"> {
|
|
|
55
55
|
* }
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
export declare const Link: import(
|
|
58
|
+
export declare const Link: import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LinkColor, LinkVariant } from './Link.tsx';
|
|
2
2
|
/** Value of the link context. */
|
|
3
3
|
export interface LinkContextValue {
|
|
4
4
|
/** Default colour that the link should use. */
|
|
@@ -9,6 +9,6 @@ export interface LinkContextValue {
|
|
|
9
9
|
/** Default value of the link context. */
|
|
10
10
|
export declare const LINK_CONTEXT_DEFAULT_VALUE: LinkContextValue;
|
|
11
11
|
/** Context for links. */
|
|
12
|
-
export declare const LinkContext: import(
|
|
12
|
+
export declare const LinkContext: import('react').Context<LinkContextValue>;
|
|
13
13
|
/** Hook providing access to the link context. */
|
|
14
14
|
export declare function useLinkContext(): LinkContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Link.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { AccentColor } from '../../utils/accent.ts';
|
|
3
3
|
/** Possible mark colours. */
|
|
4
4
|
export type MarkColor = AccentColor;
|
|
5
5
|
/** Properties of the mark component. */
|
|
@@ -38,4 +38,4 @@ export interface MarkProps extends ComponentPropsWithoutRef<"mark"> {
|
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
export declare const Mark: import(
|
|
41
|
+
export declare const Mark: import('react').ForwardRefExoticComponent<MarkProps & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Mark.tsx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
/** Menu list variants. */
|
|
3
3
|
export type MenuListVariant = "solid" | "subtle";
|
|
4
4
|
/** Placement of icons within menu list items. */
|
|
@@ -45,4 +45,4 @@ export interface MenuListProps extends ComponentPropsWithoutRef<"ul"> {
|
|
|
45
45
|
* }
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
export declare const MenuList: import(
|
|
48
|
+
export declare const MenuList: import('react').ForwardRefExoticComponent<MenuListProps & import('react').RefAttributes<HTMLUListElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MenuListIconPlacement, MenuListVariant } from './MenuList.tsx';
|
|
2
2
|
/** Value of the menu list context. */
|
|
3
3
|
export interface MenuListContextValue {
|
|
4
4
|
iconPlacement: MenuListIconPlacement;
|
|
5
5
|
variant: MenuListVariant;
|
|
6
6
|
}
|
|
7
7
|
/** Context for menu lists. */
|
|
8
|
-
export declare const MenuListContext: import(
|
|
8
|
+
export declare const MenuListContext: import('react').Context<MenuListContextValue>;
|
|
9
9
|
/** Hook providing access to the menu list context. */
|
|
10
10
|
export declare function useMenuListContext(): MenuListContextValue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactNode } from 'react';
|
|
2
2
|
/** Properties of the menu list group component. */
|
|
3
3
|
export interface MenuListGroupProps extends ComponentPropsWithoutRef<"ul"> {
|
|
4
4
|
/**
|
|
@@ -21,4 +21,4 @@ export interface MenuListGroupProps extends ComponentPropsWithoutRef<"ul"> {
|
|
|
21
21
|
labelProps?: ComponentPropsWithRef<"div">;
|
|
22
22
|
}
|
|
23
23
|
/** Menu list group component. */
|
|
24
|
-
export declare const MenuListGroup: import(
|
|
24
|
+
export declare const MenuListGroup: import('react').ForwardRefExoticComponent<MenuListGroupProps & import('react').RefAttributes<HTMLUListElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Icon,
|
|
4
|
-
import { Spinner } from
|
|
5
|
-
import {
|
|
1
|
+
import { ComponentProps, ComponentPropsWithoutRef, ComponentPropsWithRef, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { AccentColor } from '../../utils/accent.ts';
|
|
3
|
+
import { Icon, IconProp } from '../Icon';
|
|
4
|
+
import { Spinner } from '../Spinner';
|
|
5
|
+
import { MenuListIconPlacement } from './MenuList.tsx';
|
|
6
6
|
/** Menu list item colours. */
|
|
7
7
|
export type MenuListItemColor = AccentColor;
|
|
8
8
|
/** Properties of the menu list item component. */
|
|
@@ -83,4 +83,4 @@ export interface MenuListItemProps extends Omit<ComponentPropsWithoutRef<"li">,
|
|
|
83
83
|
spinnerProps?: ComponentPropsWithRef<typeof Spinner>;
|
|
84
84
|
}
|
|
85
85
|
/** Menu list item component. */
|
|
86
|
-
export declare const MenuListItem: import(
|
|
86
|
+
export declare const MenuListItem: import('react').ForwardRefExoticComponent<MenuListItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './MenuList.tsx';
|
|
2
|
+
export * from './MenuListGroup.tsx';
|
|
3
|
+
export * from './MenuListItem.tsx';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Input } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { NumericTransformerOptions } from '../../utils/useNumericTransformer.tsx';
|
|
3
|
+
import { Input } from '../Input';
|
|
4
4
|
/** Properties of the numeric input component. */
|
|
5
5
|
export interface NumericInputProps extends NumericTransformerOptions, Omit<ComponentPropsWithoutRef<typeof Input>, "defaultValue" | "value" | "onValueChange" | "type" | "min" | "max"> {
|
|
6
6
|
type?: "text" | "tel" | "password";
|
|
@@ -83,4 +83,4 @@ export interface NumericValueRepresentations {
|
|
|
83
83
|
* can ensure proper associations between `Label`, `NumericInput`, and
|
|
84
84
|
* `HelperText`, improving clarity and accessibility for users.
|
|
85
85
|
*/
|
|
86
|
-
export declare const NumericInput: import(
|
|
86
|
+
export declare const NumericInput: import('react').ForwardRefExoticComponent<NumericInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './NumericInput.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { InputPropsBase } from '../Input';
|
|
3
3
|
/** Properties of the output component. */
|
|
4
4
|
export interface OutputProps extends Omit<InputPropsBase, "asChild" | "children" | "showClearButton" | "clearButtonLabel">, ComponentPropsWithoutRef<"output"> {
|
|
5
5
|
}
|
|
@@ -22,4 +22,4 @@ export interface OutputProps extends Omit<InputPropsBase, "asChild" | "children"
|
|
|
22
22
|
* }
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export declare const Output: import(
|
|
25
|
+
export declare const Output: import('react').ForwardRefExoticComponent<OutputProps & import('react').RefAttributes<HTMLOutputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Output.tsx';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
/** Properties of the label component. */
|
|
3
3
|
export interface OverlayProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
4
|
}
|
|
5
5
|
/** Overlay component. */
|
|
6
|
-
export declare const Overlay: import(
|
|
6
|
+
export declare const Overlay: import('react').ForwardRefExoticComponent<OverlayProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Overlay.tsx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
2
|
/**
|
|
3
3
|
* Root popover component that provides an interactive and versatile overlay to
|
|
4
4
|
* display additional content or actions in a contextual manner. It is ideal for
|
|
@@ -24,4 +24,4 @@ import { Popover as PopoverPrimitive } from "radix-ui";
|
|
|
24
24
|
* please refer to the
|
|
25
25
|
* [docs](https://www.radix-ui.com/primitives/docs/components/popover).
|
|
26
26
|
*/
|
|
27
|
-
export declare const Popover: import(
|
|
27
|
+
export declare const Popover: import('react').FC<PopoverPrimitive.PopoverProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
2
|
/**
|
|
3
3
|
* An optional element to position the `PopoverContent` against. If this part is
|
|
4
4
|
* not used, the content will position alongside the `PopoverTrigger`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const PopoverAnchor: import(
|
|
6
|
+
export declare const PopoverAnchor: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
2
|
-
import {
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
/** Properties of the popover close component. */
|
|
4
4
|
export interface PopoverCloseProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Close>, "asChild"> {
|
|
5
5
|
}
|
|
6
6
|
/** The button that closes an open popover. */
|
|
7
|
-
export declare const PopoverClose: import(
|
|
7
|
+
export declare const PopoverClose: import('react').ForwardRefExoticComponent<PopoverCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
2
|
-
import {
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
|
|
3
3
|
/** Properties of the popover content component. */
|
|
4
4
|
export interface PopoverContentProps extends ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
|
|
5
5
|
/**
|
|
@@ -14,4 +14,4 @@ export interface PopoverContentProps extends ComponentPropsWithoutRef<typeof Pop
|
|
|
14
14
|
arrowProps?: ComponentPropsWithRef<typeof PopoverPrimitive.Arrow>;
|
|
15
15
|
}
|
|
16
16
|
/** The component that pops out when the popover is open. */
|
|
17
|
-
export declare const PopoverContent: import(
|
|
17
|
+
export declare const PopoverContent: import('react').ForwardRefExoticComponent<PopoverContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
2
|
-
import {
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
/** Properties of the popover trigger component. */
|
|
4
4
|
export interface PopoverTriggerProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>, "asChild"> {
|
|
5
5
|
}
|
|
@@ -7,4 +7,4 @@ export interface PopoverTriggerProps extends Omit<ComponentPropsWithoutRef<typeo
|
|
|
7
7
|
* The button that toggles the popover. By default, the `PopoverContent` will
|
|
8
8
|
* position itself against the trigger.
|
|
9
9
|
*/
|
|
10
|
-
export declare const PopoverTrigger: import(
|
|
10
|
+
export declare const PopoverTrigger: import('react').ForwardRefExoticComponent<PopoverTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './Popover.tsx';
|
|
2
|
+
export * from './PopoverAnchor.tsx';
|
|
3
|
+
export * from './PopoverClose.tsx';
|
|
4
|
+
export * from './PopoverContent.tsx';
|
|
5
|
+
export * from './PopoverTrigger.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Portal as PortalPrimitive } from
|
|
2
|
-
import {
|
|
1
|
+
import { Portal as PortalPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
/** Properties of the portal component. */
|
|
4
4
|
export interface PortalProps extends ComponentPropsWithoutRef<typeof PortalPrimitive.Root> {
|
|
5
5
|
}
|
|
@@ -10,4 +10,4 @@ export interface PortalProps extends ComponentPropsWithoutRef<typeof PortalPrimi
|
|
|
10
10
|
* The rendered subtree is automatically wrapper in a `Root` component, so that
|
|
11
11
|
* styles are rendered correctly.
|
|
12
12
|
*/
|
|
13
|
-
export declare const Portal: import(
|
|
13
|
+
export declare const Portal: import('react').ForwardRefExoticComponent<PortalProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -4,6 +4,6 @@ export interface PortalContextValue {
|
|
|
4
4
|
container?: Element | DocumentFragment | null;
|
|
5
5
|
}
|
|
6
6
|
/** Portal context. */
|
|
7
|
-
export declare const PortalContext: import(
|
|
7
|
+
export declare const PortalContext: import('react').Context<PortalContextValue | null>;
|
|
8
8
|
/** Hook providing access to the portal context. */
|
|
9
9
|
export declare function usePortalContext(): PortalContextValue | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Portal.tsx';
|
|
2
|
+
export * from './PortalContext.ts';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RadioGroup as RadioGroupPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ControlCode } from
|
|
5
|
-
import { Label } from
|
|
6
|
-
import { Spinner } from
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
|
|
3
|
+
import { ControlStatus } from '../../utils/control.ts';
|
|
4
|
+
import { ControlCode } from '../ControlCode';
|
|
5
|
+
import { Label } from '../Label';
|
|
6
|
+
import { Spinner } from '../Spinner';
|
|
7
7
|
/** Properties of a radio component. */
|
|
8
8
|
export interface RadioProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, "value"> {
|
|
9
9
|
/** Radio value. */
|
|
@@ -33,4 +33,4 @@ export interface RadioProps extends Omit<ComponentPropsWithoutRef<typeof RadioGr
|
|
|
33
33
|
spinnerProps?: Omit<ComponentPropsWithRef<typeof Spinner>, "size">;
|
|
34
34
|
}
|
|
35
35
|
/** Radio component. Must be used within a radio group. */
|
|
36
|
-
export declare const Radio: import(
|
|
36
|
+
export declare const Radio: import('react').ForwardRefExoticComponent<RadioProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RadioGroup as RadioGroupPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CloseButton } from
|
|
5
|
-
import { ControlCode } from
|
|
6
|
-
import {
|
|
7
|
-
import { Spinner } from
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, FocusEvent, ReactNode } from 'react';
|
|
3
|
+
import { ControlStatus, ControlVariant } from '../../utils/control.ts';
|
|
4
|
+
import { CloseButton } from '../CloseButton';
|
|
5
|
+
import { ControlCode } from '../ControlCode';
|
|
6
|
+
import { ShowClearButton } from '../Input';
|
|
7
|
+
import { Spinner } from '../Spinner';
|
|
8
8
|
/** Properties of the radio group component. */
|
|
9
9
|
export interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "asChild"> {
|
|
10
10
|
/** Whether to display the radio group inline. */
|
|
@@ -80,4 +80,4 @@ export interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<typeof Ra
|
|
|
80
80
|
* }
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
export declare const RadioGroup: import(
|
|
83
|
+
export declare const RadioGroup: import('react').ForwardRefExoticComponent<RadioGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Radio.tsx';
|
|
2
|
+
export * from './RadioGroup.tsx';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DocumentTitleProvider } from
|
|
3
|
-
import { ErrorReportingProvider } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { DocumentTitleProvider } from '../../providers/DocumentTitleProvider';
|
|
3
|
+
import { ErrorReportingProvider } from '../../providers/ErrorReportingProvider';
|
|
4
|
+
import { LocalizationObject } from '../../providers/LocalizationProvider';
|
|
5
|
+
import { ErrorBoundary } from '../ErrorBoundary';
|
|
6
|
+
import { ToastSwipeDirection } from '../Toast';
|
|
7
7
|
/** Properties of the ostack/UI root component. */
|
|
8
8
|
export interface RootProps extends ComponentPropsWithoutRef<"div">, Pick<ComponentPropsWithoutRef<typeof ErrorReportingProvider>, "reportError" | "errorReportingUrl" | "errorReportingMethod" | "encodeErrorReport" | "encodedErrorReportMimeType" | "errorReportingOptions">, Pick<ComponentPropsWithoutRef<typeof DocumentTitleProvider>, "baseDocumentTitle"> {
|
|
9
9
|
/**
|
|
@@ -122,4 +122,4 @@ export interface RootProps extends ComponentPropsWithoutRef<"div">, Pick<Compone
|
|
|
122
122
|
* It further wraps the whole application in an error boundary with support for
|
|
123
123
|
* error reporting.
|
|
124
124
|
*/
|
|
125
|
-
export declare const Root: import(
|
|
125
|
+
export declare const Root: import('react').ForwardRefExoticComponent<RootProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { RootProps } from './Root.tsx';
|
|
3
3
|
/** Properties of the root element component. */
|
|
4
4
|
export interface RootElementProps extends ComponentPropsWithoutRef<"div">, Pick<RootProps, "asChild" | "errorBoundaryProps"> {
|
|
5
5
|
/** Whether to wrap children in an error boundary. */
|
|
6
6
|
includeErrorBoundary: boolean;
|
|
7
7
|
}
|
|
8
8
|
/** Root element. */
|
|
9
|
-
export declare const RootElement: import(
|
|
9
|
+
export declare const RootElement: import('react').ForwardRefExoticComponent<RootElementProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { useIsInRoot } from
|
|
1
|
+
export * from './Root.tsx';
|
|
2
|
+
export { useIsInRoot } from './RootContext.ts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CommandMenuItem } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { CommandMenuItem } from '../CommandMenu';
|
|
3
3
|
/** Properties of the option component. */
|
|
4
4
|
export interface OptionProps extends Omit<ComponentPropsWithoutRef<typeof CommandMenuItem>, "value" | "asLink" | "onSelect" | "selected" | "icon" | "target" | "href"> {
|
|
5
5
|
/**
|
|
@@ -10,4 +10,4 @@ export interface OptionProps extends Omit<ComponentPropsWithoutRef<typeof Comman
|
|
|
10
10
|
value?: string | number;
|
|
11
11
|
}
|
|
12
12
|
/** An option which can be selected in a `Select`. */
|
|
13
|
-
export declare const Option: import(
|
|
13
|
+
export declare const Option: import('react').NamedExoticComponent<OptionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CommandMenuGroup } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { CommandMenuGroup } from '../CommandMenu';
|
|
3
3
|
/** Properties of the options group component. */
|
|
4
4
|
export interface OptionsGroupProps extends ComponentPropsWithoutRef<typeof CommandMenuGroup> {
|
|
5
5
|
}
|
|
6
6
|
/** Component used to group options within a `Select`. */
|
|
7
|
-
export declare const OptionsGroup: import(
|
|
7
|
+
export declare const OptionsGroup: import('react').ForwardRefExoticComponent<OptionsGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|