@aws-amplify/ui-react 6.11.0 → 6.11.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/README.md +14 -15
- package/dist/{Field-Bkpcn7E9.js → Field-BjInyX0G.js} +1 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.mjs +1 -1
- package/dist/esm/components/Authenticator/RouteContainer/RouteContainer.mjs +1 -9
- package/dist/esm/components/Authenticator/Router/Router.mjs +2 -2
- package/dist/esm/primitives/Collection/Collection.mjs +1 -1
- package/dist/esm/primitives/DropZone/DropZone.mjs +1 -1
- package/dist/esm/primitives/Loader/Loader.mjs +1 -1
- package/dist/esm/primitives/PhoneNumberField/DialCodeSelect.mjs +1 -1
- package/dist/esm/primitives/RadioGroupField/RadioGroupField.mjs +1 -1
- package/dist/esm/primitives/SelectField/SelectField.mjs +1 -1
- package/dist/esm/primitives/SliderField/SliderField.mjs +1 -1
- package/dist/esm/primitives/StepperField/StepperField.mjs +1 -1
- package/dist/esm/primitives/TextAreaField/TextAreaField.mjs +1 -1
- package/dist/esm/primitives/shared/utils.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +3 -11
- package/dist/internal.js +1 -1
- package/dist/types/PrimitiveCatalog.d.ts +1 -1
- package/dist/types/components/AccountSettings/ChangePassword/ChangePassword.d.ts +1 -1
- package/dist/types/components/AccountSettings/ChangePassword/defaults.d.ts +1 -1
- package/dist/types/components/AccountSettings/ChangePassword/types.d.ts +3 -3
- package/dist/types/components/AccountSettings/DeleteUser/DeleteUser.d.ts +1 -1
- package/dist/types/components/AccountSettings/DeleteUser/defaults.d.ts +1 -1
- package/dist/types/components/AccountSettings/DeleteUser/types.d.ts +4 -4
- package/dist/types/components/AccountSettings/shared/Defaults.d.ts +1 -1
- package/dist/types/components/AccountSettings/types.d.ts +2 -2
- package/dist/types/components/AccountSettings/utils/displayText.d.ts +1 -1
- package/dist/types/components/AccountSettings/utils/index.d.ts +2 -1
- package/dist/types/components/Authenticator/Authenticator.d.ts +6 -5
- package/dist/types/components/Authenticator/ConfirmSignIn/ConfirmSignIn.d.ts +1 -1
- package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
- package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.d.ts +1 -1
- package/dist/types/components/Authenticator/ForceNewPassword/ForceNewPassword.d.ts +1 -1
- package/dist/types/components/Authenticator/ForgotPassword/ConfirmResetPassword.d.ts +1 -1
- package/dist/types/components/Authenticator/ForgotPassword/ForgotPassword.d.ts +1 -1
- package/dist/types/components/Authenticator/RouteContainer/RouteContainer.d.ts +1 -1
- package/dist/types/components/Authenticator/RouteContainer/index.d.ts +1 -1
- package/dist/types/components/Authenticator/Router/Router.d.ts +1 -1
- package/dist/types/components/Authenticator/Router/index.d.ts +1 -1
- package/dist/types/components/Authenticator/Router/types.d.ts +1 -1
- package/dist/types/components/Authenticator/SelectMfaType/SelectMfaType.d.ts +1 -1
- package/dist/types/components/Authenticator/SetupEmail/SetupEmail.d.ts +1 -1
- package/dist/types/components/Authenticator/SetupTotp/SetupTotp.d.ts +1 -1
- package/dist/types/components/Authenticator/VerifyUser/ConfirmVerifyUser.d.ts +1 -1
- package/dist/types/components/Authenticator/VerifyUser/VerifyUser.d.ts +1 -1
- package/dist/types/components/Authenticator/hooks/useCustomComponents/index.d.ts +2 -1
- package/dist/types/components/Authenticator/hooks/useCustomComponents/useCustomComponents.d.ts +1 -1
- package/dist/types/components/Authenticator/hooks/useFormHandlers/useFormHandlers.d.ts +1 -1
- package/dist/types/components/Authenticator/index.d.ts +6 -3
- package/dist/types/components/Authenticator/shared/FormField.d.ts +1 -1
- package/dist/types/components/Authenticator/shared/SignInSignUpTabs.d.ts +1 -1
- package/dist/types/components/Authenticator/shared/TwoButtonSubmitFooter.d.ts +1 -1
- package/dist/types/components/Authenticator/withAuthenticator.d.ts +2 -2
- package/dist/types/components/FileSelect/index.d.ts +2 -1
- package/dist/types/components/FilterChildren/index.d.ts +2 -1
- package/dist/types/components/ThemeProvider/ComponentStyle.d.ts +2 -2
- package/dist/types/components/ThemeProvider/ThemeContext.d.ts +2 -2
- package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/types/components/ThemeProvider/ThemeStyle.d.ts +1 -1
- package/dist/types/components/ThemeProvider/index.d.ts +2 -1
- package/dist/types/hooks/useAuth.d.ts +1 -1
- package/dist/types/hooks/useBreakpointValue.d.ts +1 -1
- package/dist/types/hooks/useDeprecationWarning.d.ts +1 -1
- package/dist/types/hooks/useTheme.d.ts +3 -3
- package/dist/types/hooks/useThemeBreakpoint.d.ts +1 -1
- package/dist/types/internal.d.ts +4 -2
- package/dist/types/primitives/Accordion/Accordion.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionContainer.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionContent.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionIcon.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionItem.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionTrigger.d.ts +2 -2
- package/dist/types/primitives/Accordion/index.d.ts +1 -1
- package/dist/types/primitives/Accordion/types.d.ts +2 -2
- package/dist/types/primitives/Alert/Alert.d.ts +1 -1
- package/dist/types/primitives/Alert/AlertIcon.d.ts +1 -1
- package/dist/types/primitives/Avatar/Avatar.d.ts +2 -2
- package/dist/types/primitives/Avatar/index.d.ts +1 -1
- package/dist/types/primitives/Avatar/types.d.ts +2 -2
- package/dist/types/primitives/Badge/Badge.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbContainer.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbLink.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbSeparator.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/types/primitives/Button/Button.d.ts +1 -1
- package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/primitives/Card/Card.d.ts +1 -1
- package/dist/types/primitives/Checkbox/Checkbox.d.ts +2 -2
- package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/types/primitives/Collection/Collection.d.ts +1 -1
- package/dist/types/primitives/Divider/Divider.d.ts +1 -1
- package/dist/types/primitives/DropZone/DropZone.d.ts +3 -3
- package/dist/types/primitives/DropZone/DropZoneContainer.d.ts +2 -2
- package/dist/types/primitives/DropZone/index.d.ts +1 -1
- package/dist/types/primitives/DropZone/types.d.ts +3 -3
- package/dist/types/primitives/Field/Field.d.ts +1 -1
- package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
- package/dist/types/primitives/Field/FieldDescription.d.ts +1 -1
- package/dist/types/primitives/Field/FieldErrorMessage.d.ts +1 -1
- package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
- package/dist/types/primitives/Fieldset/Fieldset.d.ts +1 -1
- package/dist/types/primitives/Flex/Flex.d.ts +1 -1
- package/dist/types/primitives/Grid/Grid.d.ts +1 -1
- package/dist/types/primitives/Heading/Heading.d.ts +1 -1
- package/dist/types/primitives/Icon/Icon.d.ts +1 -1
- package/dist/types/primitives/Icon/context/IconsContext.d.ts +1 -1
- package/dist/types/primitives/Icon/context/IconsProvider.d.ts +2 -2
- package/dist/types/primitives/Icon/context/index.d.ts +2 -1
- package/dist/types/primitives/Icon/context/useIcons.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconAdd.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconAssistant.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconAttach.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconCheck.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconCheckCircle.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconCheckCircleOutline.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconChevronLeft.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconChevronRight.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconClose.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconDocument.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconEdit.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconError.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconExpandMore.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconFile.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconIndeterminate.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconInfo.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconMenu.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconRemove.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconSearch.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconSend.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconStar.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconUpload.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconUser.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconVisibility.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconVisibilityOff.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconWarning.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/types.d.ts +1 -1
- package/dist/types/primitives/Icon/index.d.ts +2 -1
- package/dist/types/primitives/Image/Image.d.ts +1 -1
- package/dist/types/primitives/Input/Input.d.ts +1 -1
- package/dist/types/primitives/Label/Label.d.ts +1 -1
- package/dist/types/primitives/Link/Link.d.ts +1 -1
- package/dist/types/primitives/Loader/Loader.d.ts +2 -2
- package/dist/types/primitives/Menu/Menu.d.ts +1 -1
- package/dist/types/primitives/Menu/MenuButton.d.ts +1 -1
- package/dist/types/primitives/Menu/MenuItem.d.ts +1 -1
- package/dist/types/primitives/Message/Message.d.ts +1 -1
- package/dist/types/primitives/Message/MessageContainer.d.ts +1 -1
- package/dist/types/primitives/Message/MessageContent.d.ts +1 -1
- package/dist/types/primitives/Message/MessageDismiss.d.ts +1 -1
- package/dist/types/primitives/Message/MessageHeading.d.ts +1 -1
- package/dist/types/primitives/Message/MessageIcon.d.ts +1 -1
- package/dist/types/primitives/Message/useMessage.d.ts +1 -1
- package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
- package/dist/types/primitives/Pagination/PaginationItem.d.ts +1 -1
- package/dist/types/primitives/Pagination/usePagination.d.ts +1 -1
- package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
- package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/DialCodeSelect.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
- package/dist/types/primitives/Radio/Radio.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/context.d.ts +1 -1
- package/dist/types/primitives/Rating/Rating.d.ts +1 -1
- package/dist/types/primitives/Rating/RatingIcon.d.ts +2 -2
- package/dist/types/primitives/Rating/RatingMixedIcon.d.ts +2 -2
- package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
- package/dist/types/primitives/SearchField/useSearchField.d.ts +1 -1
- package/dist/types/primitives/Select/Select.d.ts +2 -2
- package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
- package/dist/types/primitives/SliderField/SliderField.d.ts +2 -2
- package/dist/types/primitives/StepperField/StepperField.d.ts +2 -2
- package/dist/types/primitives/StepperField/useStepper.d.ts +1 -1
- package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
- package/dist/types/primitives/SwitchField/useSwitch.d.ts +1 -1
- package/dist/types/primitives/Table/Table.d.ts +1 -1
- package/dist/types/primitives/Table/TableBody.d.ts +1 -1
- package/dist/types/primitives/Table/TableCell.d.ts +1 -1
- package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
- package/dist/types/primitives/Table/TableHead.d.ts +1 -1
- package/dist/types/primitives/Table/TableRow.d.ts +1 -1
- package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsContainer.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsItem.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsList.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsPanel.d.ts +2 -2
- package/dist/types/primitives/Tabs/index.d.ts +1 -1
- package/dist/types/primitives/Tabs/types.d.ts +2 -2
- package/dist/types/primitives/Text/Text.d.ts +1 -1
- package/dist/types/primitives/TextArea/AutoresizeTextarea.d.ts +2 -2
- package/dist/types/primitives/TextArea/TextArea.d.ts +2 -2
- package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +2 -2
- package/dist/types/primitives/TextField/TextField.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/useToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/useToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/View/View.d.ts +1 -1
- package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/primitives/components.d.ts +8 -4
- package/dist/types/primitives/index.d.ts +2 -1
- package/dist/types/primitives/shared/constants.d.ts +1 -1
- package/dist/types/primitives/shared/getStyleValue.d.ts +1 -1
- package/dist/types/primitives/shared/responsive/getMediaQueries.d.ts +1 -1
- package/dist/types/primitives/shared/responsive/useBreakpoint.d.ts +1 -1
- package/dist/types/primitives/shared/responsive/utils.d.ts +1 -1
- package/dist/types/primitives/shared/styleUtils.d.ts +3 -3
- package/dist/types/primitives/shared/utils.d.ts +2 -1
- package/dist/types/primitives/types/alert.d.ts +3 -3
- package/dist/types/primitives/types/autocomplete.d.ts +3 -3
- package/dist/types/primitives/types/badge.d.ts +2 -2
- package/dist/types/primitives/types/base.d.ts +2 -1
- package/dist/types/primitives/types/breadcrumbs.d.ts +3 -3
- package/dist/types/primitives/types/button.d.ts +3 -3
- package/dist/types/primitives/types/buttonGroup.d.ts +6 -6
- package/dist/types/primitives/types/card.d.ts +1 -1
- package/dist/types/primitives/types/checkbox.d.ts +6 -6
- package/dist/types/primitives/types/checkboxField.d.ts +3 -3
- package/dist/types/primitives/types/collection.d.ts +5 -5
- package/dist/types/primitives/types/divider.d.ts +2 -2
- package/dist/types/primitives/types/field.d.ts +5 -5
- package/dist/types/primitives/types/fieldGroup.d.ts +3 -3
- package/dist/types/primitives/types/fieldGroupIcon.d.ts +2 -2
- package/dist/types/primitives/types/fieldset.d.ts +5 -5
- package/dist/types/primitives/types/flex.d.ts +3 -3
- package/dist/types/primitives/types/grid.d.ts +3 -3
- package/dist/types/primitives/types/heading.d.ts +2 -2
- package/dist/types/primitives/types/highlightMatch.d.ts +1 -1
- package/dist/types/primitives/types/icon.d.ts +4 -4
- package/dist/types/primitives/types/image.d.ts +3 -3
- package/dist/types/primitives/types/input.d.ts +4 -4
- package/dist/types/primitives/types/label.d.ts +1 -1
- package/dist/types/primitives/types/link.d.ts +2 -2
- package/dist/types/primitives/types/loader.d.ts +4 -4
- package/dist/types/primitives/types/menu.d.ts +5 -5
- package/dist/types/primitives/types/message.d.ts +4 -4
- package/dist/types/primitives/types/pagination.d.ts +3 -3
- package/dist/types/primitives/types/passwordField.d.ts +5 -5
- package/dist/types/primitives/types/phoneNumberField.d.ts +4 -4
- package/dist/types/primitives/types/placeholder.d.ts +4 -4
- package/dist/types/primitives/types/radio.d.ts +3 -3
- package/dist/types/primitives/types/radioGroupField.d.ts +6 -6
- package/dist/types/primitives/types/rating.d.ts +5 -5
- package/dist/types/primitives/types/responsive.d.ts +1 -1
- package/dist/types/primitives/types/scrollView.d.ts +1 -1
- package/dist/types/primitives/types/searchField.d.ts +4 -4
- package/dist/types/primitives/types/select.d.ts +3 -3
- package/dist/types/primitives/types/selectField.d.ts +4 -4
- package/dist/types/primitives/types/sliderField.d.ts +5 -5
- package/dist/types/primitives/types/stepperField.d.ts +2 -2
- package/dist/types/primitives/types/style.d.ts +6 -6
- package/dist/types/primitives/types/switchField.d.ts +6 -6
- package/dist/types/primitives/types/table.d.ts +3 -3
- package/dist/types/primitives/types/text.d.ts +1 -1
- package/dist/types/primitives/types/textArea.d.ts +4 -4
- package/dist/types/primitives/types/textAreaField.d.ts +5 -5
- package/dist/types/primitives/types/textField.d.ts +5 -5
- package/dist/types/primitives/types/toggleButton.d.ts +2 -2
- package/dist/types/primitives/types/toggleButtonGroup.d.ts +4 -4
- package/dist/types/primitives/types/view.d.ts +4 -4
- package/dist/types/primitives/types/visuallyHidden.d.ts +1 -1
- package/dist/types/primitives/utils/primitiveWithForwardRef.d.ts +1 -1
- package/dist/types/primitives/utils/splitPrimitiveProps.d.ts +1 -1
- package/dist/types/primitives/utils/testUtils.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +9 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
-
import { BaseLinkProps } from './link';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
+
import type { BaseLinkProps } from './link';
|
|
4
4
|
/** @deprecated For internal use only */
|
|
5
5
|
export interface BaseBreadcrumbProps extends BaseViewProps {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Sizes } from './base';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
-
import { FlexContainerStyleProps } from './flex';
|
|
1
|
+
import type { Sizes } from './base';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
+
import type { FlexContainerStyleProps } from './flex';
|
|
4
4
|
export type ButtonSizes = Sizes;
|
|
5
5
|
export type ButtonTypes = 'button' | 'reset' | 'submit';
|
|
6
6
|
export type ButtonVariations = 'primary' | 'link' | 'menu' | 'warning' | 'destructive';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AriaProps } from './base';
|
|
3
|
-
import { BaseStyleProps } from './style';
|
|
4
|
-
import { BaseButtonProps } from './button';
|
|
5
|
-
import { BaseFlexProps } from './flex';
|
|
6
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { AriaProps } from './base';
|
|
3
|
+
import type { BaseStyleProps } from './style';
|
|
4
|
+
import type { BaseButtonProps } from './button';
|
|
5
|
+
import type { BaseFlexProps } from './flex';
|
|
6
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
7
7
|
/** @deprecated For internal use only */
|
|
8
8
|
export interface BaseButtonGroupProps extends AriaProps, BaseStyleProps, BaseFlexProps, Pick<BaseButtonProps, 'size' | 'variation'> {
|
|
9
9
|
children?: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
2
2
|
export type CardVariations = 'outlined' | 'elevated';
|
|
3
3
|
/** @deprecated For internal use only */
|
|
4
4
|
export interface BaseCardProps extends BaseViewProps {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChangeEvent, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { BaseFlexProps } from './flex';
|
|
3
|
-
import { BaseInputProps } from './input';
|
|
4
|
-
import { FieldProps, LabelPositions } from './field';
|
|
5
|
-
import { BaseStyleProps } from './style';
|
|
6
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { ChangeEvent, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import type { BaseFlexProps } from './flex';
|
|
3
|
+
import type { BaseInputProps } from './input';
|
|
4
|
+
import type { FieldProps, LabelPositions } from './field';
|
|
5
|
+
import type { BaseStyleProps } from './style';
|
|
6
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
7
7
|
/** @deprecated For internal use only */
|
|
8
8
|
export interface BaseCheckboxProps extends BaseFlexProps, BaseInputProps {
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseCheckboxProps } from './checkbox';
|
|
2
|
-
import { BaseFieldProps } from './field';
|
|
3
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { BaseCheckboxProps } from './checkbox';
|
|
2
|
+
import type { BaseFieldProps } from './field';
|
|
3
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
4
4
|
/** @deprecated For internal use only */
|
|
5
5
|
export interface BaseCheckboxFieldProps extends BaseCheckboxProps, BaseFieldProps {
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseFlexProps } from './flex';
|
|
3
|
-
import { BaseGridProps } from './grid';
|
|
4
|
-
import { BaseStyleProps } from './style';
|
|
5
|
-
import { ElementType, PrimitiveProps, PrimitivePropsWithAs } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseFlexProps } from './flex';
|
|
3
|
+
import type { BaseGridProps } from './grid';
|
|
4
|
+
import type { BaseStyleProps } from './style';
|
|
5
|
+
import type { ElementType, PrimitiveProps, PrimitivePropsWithAs } from './view';
|
|
6
6
|
export type CollectionType = 'list' | 'grid' | 'table';
|
|
7
7
|
export interface CollectionWrapperProps extends BaseStyleProps {
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Sizes } from './base';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { Sizes } from './base';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
3
|
export type DividerOrientations = 'horizontal' | 'vertical';
|
|
4
4
|
export type DividerSizes = Sizes;
|
|
5
5
|
export interface DividerOptions {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseFieldGroupIconButtonProps } from './fieldGroupIcon';
|
|
2
|
-
import { BaseInputProps } from './input';
|
|
3
|
-
import { BaseTextProps } from './text';
|
|
4
|
-
import { BaseStyleProps } from './style';
|
|
5
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { BaseFieldGroupIconButtonProps } from './fieldGroupIcon';
|
|
2
|
+
import type { BaseInputProps } from './input';
|
|
3
|
+
import type { BaseTextProps } from './text';
|
|
4
|
+
import type { BaseStyleProps } from './style';
|
|
5
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
6
6
|
/**
|
|
7
7
|
* Shared type across all field types
|
|
8
8
|
* @deprecated For internal use only
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseFlexProps } from './flex';
|
|
2
|
-
import { FieldVariations } from './field';
|
|
3
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { BaseFlexProps } from './flex';
|
|
2
|
+
import type { FieldVariations } from './field';
|
|
3
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
4
4
|
export type FieldGroupOrientation = 'horizontal' | 'vertical';
|
|
5
5
|
/** @deprecated For internal use only */
|
|
6
6
|
export interface BaseFieldGroupOptions extends BaseFlexProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
2
|
-
import { BaseButtonProps } from './button';
|
|
1
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
2
|
+
import type { BaseButtonProps } from './button';
|
|
3
3
|
/** @deprecated For internal use only */
|
|
4
4
|
export interface BaseFieldGroupIconProps extends BaseViewProps {
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Sizes } from './base';
|
|
3
|
-
import { BaseViewProps } from './view';
|
|
4
|
-
import { FlexContainerStyleProps } from './flex';
|
|
5
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Sizes } from './base';
|
|
3
|
+
import type { BaseViewProps } from './view';
|
|
4
|
+
import type { FlexContainerStyleProps } from './flex';
|
|
5
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
6
6
|
/** @deprecated For internal use only */
|
|
7
7
|
export interface BaseFieldsetProps extends BaseViewProps, FlexContainerStyleProps {
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { CSSLayoutStyleProps, ResponsiveStyle } from './style';
|
|
3
|
-
import { BaseViewProps, PrimitiveProps, ElementType } from './view';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { CSSLayoutStyleProps, ResponsiveStyle } from './style';
|
|
3
|
+
import type { BaseViewProps, PrimitiveProps, ElementType } from './view';
|
|
4
4
|
export interface FlexContainerStyleProps extends CSSLayoutStyleProps {
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { ResponsiveStyle, CSSLayoutStyleProps } from './style';
|
|
3
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { ResponsiveStyle, CSSLayoutStyleProps } from './style';
|
|
3
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
4
4
|
export type GridSpanType = number | string | 'auto';
|
|
5
5
|
export interface GridContainerStyleProps extends CSSLayoutStyleProps {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseTextProps } from './text';
|
|
2
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { BaseTextProps } from './text';
|
|
2
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
3
3
|
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
4
|
export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
5
|
/** @deprecated For internal use only */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
-
import { Sizes } from './base';
|
|
4
|
-
import * as React from 'react';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
+
import type { Sizes } from './base';
|
|
4
|
+
import type * as React from 'react';
|
|
5
5
|
export type ViewBox = {
|
|
6
6
|
minX?: number;
|
|
7
7
|
minY?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
-
import { ResponsiveStyle } from './style';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
+
import type { ResponsiveStyle } from './style';
|
|
4
4
|
export interface ImageStyleProps {
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Sizes } from './base';
|
|
3
|
-
import { FieldVariations } from './field';
|
|
4
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Sizes } from './base';
|
|
3
|
+
import type { FieldVariations } from './field';
|
|
4
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
5
5
|
export type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
6
6
|
export type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
7
7
|
export type InputSizes = Sizes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
3
|
export interface LinkOptions {
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from '../types/view';
|
|
3
|
-
import { Sizes } from './base';
|
|
4
|
-
import { StyleToken } from './style';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from '../types/view';
|
|
3
|
+
import type { Sizes } from './base';
|
|
4
|
+
import type { StyleToken } from './style';
|
|
5
5
|
export type LoaderSizes = Sizes;
|
|
6
6
|
export type LoaderVariations = 'linear';
|
|
7
7
|
/** @deprecated For internal use only */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseButtonPropsWithoutColorTheme } from './button';
|
|
3
|
-
import { BaseFlexProps } from './flex';
|
|
4
|
-
import { Sizes } from './base';
|
|
5
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseButtonPropsWithoutColorTheme } from './button';
|
|
3
|
+
import type { BaseFlexProps } from './flex';
|
|
4
|
+
import type { Sizes } from './base';
|
|
5
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
6
6
|
/** @deprecated For internal use only */
|
|
7
7
|
export interface BaseMenuProps extends BaseFlexProps {
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseFlexProps } from './flex';
|
|
3
|
-
import { BaseButtonProps } from './button';
|
|
4
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseFlexProps } from './flex';
|
|
3
|
+
import type { BaseButtonProps } from './button';
|
|
4
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
5
5
|
export type MessageColorTheme = 'neutral' | 'info' | 'error' | 'warning' | 'success';
|
|
6
6
|
export interface BaseMessageContainerProps extends BaseFlexProps {
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseComponentProps, AriaProps } from './base';
|
|
2
|
-
import { BaseStyleProps } from './style';
|
|
3
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { BaseComponentProps, AriaProps } from './base';
|
|
2
|
+
import type { BaseStyleProps } from './style';
|
|
3
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
4
4
|
export type PaginationItemType = 'page' | 'next' | 'previous' | 'ellipsis';
|
|
5
5
|
export type PaginationCallbackType = 'onNext' | 'onPrevious' | 'onChange';
|
|
6
6
|
export type PaginationLabelType = 'pageLabel' | 'currentPageLabel' | 'previousLabel' | 'nextLabel';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseButtonProps } from './button';
|
|
3
|
-
import { BaseTextFieldProps } from './textField';
|
|
4
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
5
|
-
import { BaseInputProps } from './input';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseButtonProps } from './button';
|
|
3
|
+
import type { BaseTextFieldProps } from './textField';
|
|
4
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
5
|
+
import type { BaseInputProps } from './input';
|
|
6
6
|
/** @deprecated For internal use only */
|
|
7
7
|
export interface BasePasswordFieldProps extends BaseTextFieldProps {
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseSelectFieldProps } from './selectField';
|
|
3
|
-
import { BaseTextFieldProps } from './textField';
|
|
4
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseSelectFieldProps } from './selectField';
|
|
3
|
+
import type { BaseTextFieldProps } from './textField';
|
|
4
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
5
5
|
interface optionalPhoneNumberFieldProps extends BaseTextFieldProps, CountryCodeFieldProps {
|
|
6
6
|
/**
|
|
7
7
|
* @description
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { Sizes } from './base';
|
|
3
|
-
import { StyleToken } from './style';
|
|
4
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { Sizes } from './base';
|
|
3
|
+
import type { StyleToken } from './style';
|
|
4
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
5
5
|
export type PlaceholderSizes = Sizes;
|
|
6
6
|
/** @deprecated For internal use only */
|
|
7
7
|
export interface BasePlaceholderProps extends BaseViewProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseInputProps } from './input';
|
|
2
|
-
import { LabelPositions } from './field';
|
|
3
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { BaseInputProps } from './input';
|
|
2
|
+
import type { LabelPositions } from './field';
|
|
3
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
4
4
|
/** @deprecated For internal use only */
|
|
5
5
|
export interface BaseRadioProps extends BaseInputProps {
|
|
6
6
|
value: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FlexContainerStyleProps } from './flex';
|
|
3
|
-
import { BaseFieldProps, LabelPositions } from './field';
|
|
4
|
-
import { BaseFieldsetProps } from './fieldset';
|
|
5
|
-
import { BaseInputProps } from './input';
|
|
6
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { FlexContainerStyleProps } from './flex';
|
|
3
|
+
import type { BaseFieldProps, LabelPositions } from './field';
|
|
4
|
+
import type { BaseFieldsetProps } from './fieldset';
|
|
5
|
+
import type { BaseInputProps } from './input';
|
|
6
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
7
7
|
/** @deprecated For internal use only */
|
|
8
8
|
export interface BaseRadioGroupFieldProps extends Omit<BaseFieldProps, 'label' | 'labelHidden'>, FlexContainerStyleProps, BaseFieldsetProps, Omit<BaseInputProps, 'variation'> {
|
|
9
9
|
name: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { BaseFlexProps } from './flex';
|
|
3
|
-
import { Sizes } from './base';
|
|
4
|
-
import { StyleToken } from './style';
|
|
5
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { BaseFlexProps } from './flex';
|
|
3
|
+
import type { Sizes } from './base';
|
|
4
|
+
import type { StyleToken } from './style';
|
|
5
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
6
6
|
export type RatingSizes = Sizes;
|
|
7
7
|
export interface RatingOptions {
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WebTheme } from '@aws-amplify/ui';
|
|
1
|
+
import type { WebTheme } from '@aws-amplify/ui';
|
|
2
2
|
export type Breakpoints = WebTheme['breakpoints']['values'];
|
|
3
3
|
export type Breakpoint = keyof WebTheme['breakpoints']['values'];
|
|
4
4
|
export type ValueBreakpoints<Value = unknown> = Partial<Record<Breakpoint, Value>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
2
2
|
type ScrollViewOrientation = 'horizontal' | 'vertical';
|
|
3
3
|
/** @deprecated For internal use only */
|
|
4
4
|
export interface BaseScrollViewProps extends BaseViewProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FieldGroupIconButtonProps } from './fieldGroupIcon';
|
|
3
|
-
import { BaseTextFieldProps } from './textField';
|
|
4
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { FieldGroupIconButtonProps } from './fieldGroupIcon';
|
|
3
|
+
import type { BaseTextFieldProps } from './textField';
|
|
4
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
5
5
|
/** @deprecated For internal use only */
|
|
6
6
|
export interface BaseSearchFieldProps extends BaseTextFieldProps {
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
-
import { Sizes } from './base';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
|
+
import type { Sizes } from './base';
|
|
4
4
|
export type SelectVariation = 'quiet';
|
|
5
5
|
/** @deprecated For internal use only */
|
|
6
6
|
export interface BaseSelectProps extends BaseViewProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FlexContainerStyleProps } from './flex';
|
|
2
|
-
import { BaseSelectProps } from './select';
|
|
3
|
-
import { BaseFieldProps } from './field';
|
|
4
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { FlexContainerStyleProps } from './flex';
|
|
2
|
+
import type { BaseSelectProps } from './select';
|
|
3
|
+
import type { BaseFieldProps } from './field';
|
|
4
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
5
5
|
/** @deprecated For internal use only */
|
|
6
6
|
export interface BaseSelectFieldProps extends BaseFieldProps, FlexContainerStyleProps, BaseSelectProps {
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { StyleToken } from './style';
|
|
4
|
-
import { BaseTextFieldProps } from './textField';
|
|
5
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { StyleToken } from './style';
|
|
4
|
+
import type { BaseTextFieldProps } from './textField';
|
|
5
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
6
6
|
type SliderOrientation = 'horizontal' | 'vertical';
|
|
7
7
|
type Direction = 'ltr' | 'rtl';
|
|
8
8
|
/** @deprecated For internal use only */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseTextFieldProps } from '../types/textField';
|
|
2
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { BaseTextFieldProps } from '../types/textField';
|
|
2
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
3
3
|
/** @deprecated For internal use only */
|
|
4
4
|
export interface BaseStepperFieldProps extends BaseTextFieldProps {
|
|
5
5
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { WebDesignToken } from '@aws-amplify/ui';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { WebDesignToken } from '@aws-amplify/ui';
|
|
3
3
|
import type { BoxShadowKeys, BorderWidthKeys, ColorKeys, FontFamilyKeys, FontSizeKeys, FontWeightKeys, LineHeightKeys, OpacityKeys, RadiiKeys, SpaceKeys, TransformKeys } from './theme';
|
|
4
|
-
import { FlexItemStyleProps, FlexContainerStyleProps } from './flex';
|
|
5
|
-
import { GridItemStyleProps, GridContainerStyleProps } from './grid';
|
|
6
|
-
import { ImageStyleProps } from './image';
|
|
7
|
-
import { TextAreaStyleProps } from './textArea';
|
|
4
|
+
import type { FlexItemStyleProps, FlexContainerStyleProps } from './flex';
|
|
5
|
+
import type { GridItemStyleProps, GridContainerStyleProps } from './grid';
|
|
6
|
+
import type { ImageStyleProps } from './image';
|
|
7
|
+
import type { TextAreaStyleProps } from './textArea';
|
|
8
8
|
/**
|
|
9
9
|
* @description
|
|
10
10
|
* Extract style compatible types (string literal | number | any string)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { Sizes } from './base';
|
|
3
|
-
import { BaseStyleProps, StyleToken } from './style';
|
|
4
|
-
import { BaseInputProps } from './input';
|
|
5
|
-
import { BaseFieldProps, LabelPositions } from './field';
|
|
6
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { Sizes } from './base';
|
|
3
|
+
import type { BaseStyleProps, StyleToken } from './style';
|
|
4
|
+
import type { BaseInputProps } from './input';
|
|
5
|
+
import type { BaseFieldProps, LabelPositions } from './field';
|
|
6
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
7
7
|
/** @deprecated For internal use only */
|
|
8
8
|
export interface BaseSwitchFieldProps extends BaseInputProps, BaseFieldProps, BaseStyleProps {
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Sizes } from './base';
|
|
3
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Sizes } from './base';
|
|
3
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
4
4
|
export type TableSize = Sizes;
|
|
5
5
|
export type TableVariation = 'bordered' | 'striped';
|
|
6
6
|
/** @deprecated For internal use only */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
2
2
|
export type TextVariation = 'primary' | 'secondary' | 'tertiary' | 'error' | 'warning' | 'info' | 'success';
|
|
3
3
|
/** @deprecated For internal use only */
|
|
4
4
|
export interface BaseTextProps extends BaseViewProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { Sizes } from './base';
|
|
3
|
-
import { FieldVariations } from './field';
|
|
4
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
1
|
+
import type { Property } from 'csstype';
|
|
2
|
+
import type { Sizes } from './base';
|
|
3
|
+
import type { FieldVariations } from './field';
|
|
4
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
5
5
|
export interface TextAreaStyleProps {
|
|
6
6
|
/**
|
|
7
7
|
* @description
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseTextAreaProps, TextAreaStyleProps } from './textArea';
|
|
2
|
-
import { BaseFieldProps } from './field';
|
|
3
|
-
import { FlexContainerStyleProps } from './flex';
|
|
4
|
-
import { BaseStyleProps } from './style';
|
|
5
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { BaseTextAreaProps, TextAreaStyleProps } from './textArea';
|
|
2
|
+
import type { BaseFieldProps } from './field';
|
|
3
|
+
import type { FlexContainerStyleProps } from './flex';
|
|
4
|
+
import type { BaseStyleProps } from './style';
|
|
5
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
6
6
|
/** @deprecated For internal use only */
|
|
7
7
|
export interface BaseTextAreaFieldProps extends BaseFieldProps, FlexContainerStyleProps, BaseTextAreaProps {
|
|
8
8
|
inputStyles?: BaseStyleProps & TextAreaStyleProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FlexContainerStyleProps } from './flex';
|
|
3
|
-
import { BaseInputProps } from './input';
|
|
4
|
-
import { BaseFieldProps } from './field';
|
|
5
|
-
import { PrimitiveProps, ElementType } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { FlexContainerStyleProps } from './flex';
|
|
3
|
+
import type { BaseInputProps } from './input';
|
|
4
|
+
import type { BaseFieldProps } from './field';
|
|
5
|
+
import type { PrimitiveProps, ElementType } from './view';
|
|
6
6
|
export interface TextFieldOptions extends BaseFieldProps, FlexContainerStyleProps {
|
|
7
7
|
/**
|
|
8
8
|
* @description
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseButtonPropsWithoutColorTheme } from './button';
|
|
2
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type { BaseButtonPropsWithoutColorTheme } from './button';
|
|
2
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
3
3
|
/** @deprecated For internal use only */
|
|
4
4
|
export interface BaseToggleButtonProps extends BaseButtonPropsWithoutColorTheme {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseFlexProps } from './flex';
|
|
3
|
-
import { BaseToggleButtonProps } from './toggleButton';
|
|
4
|
-
import { ElementType, PrimitiveProps } from './view';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseFlexProps } from './flex';
|
|
3
|
+
import type { BaseToggleButtonProps } from './toggleButton';
|
|
4
|
+
import type { ElementType, PrimitiveProps } from './view';
|
|
5
5
|
/** @deprecated For internal use only */
|
|
6
6
|
export interface BaseToggleButtonGroupProps extends BaseFlexProps, Pick<BaseToggleButtonProps, 'size' | 'variation'> {
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { MergeProps } from '@aws-amplify/ui-react-core';
|
|
3
|
-
import { AriaProps, BaseComponentProps } from './base';
|
|
4
|
-
import { BaseStyleProps } from './style';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { MergeProps } from '@aws-amplify/ui-react-core';
|
|
3
|
+
import type { AriaProps, BaseComponentProps } from './base';
|
|
4
|
+
import type { BaseStyleProps } from './style';
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated will be removed in a future major version
|
|
7
7
|
*/
|