@aws-amplify/ui-react 5.0.3 → 5.0.5
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/Field-147a6e0a.js +1 -0
- package/dist/esm/PrimitiveCatalog.mjs +1 -1
- package/dist/esm/components/AccountSettings/ChangePassword/ChangePassword.mjs +1 -1
- package/dist/esm/components/AccountSettings/DeleteUser/DeleteUser.mjs +1 -1
- package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.mjs +1 -1
- package/dist/esm/components/Authenticator/hooks/useCustomComponents/defaultComponents.mjs +1 -1
- package/dist/esm/hooks/useStorageURL.mjs +1 -1
- package/dist/esm/primitives/PasswordField/PasswordField.mjs +1 -1
- package/dist/esm/primitives/PasswordField/ShowPasswordButton.mjs +1 -1
- package/dist/esm/primitives/shared/constants.mjs +1 -1
- package/dist/esm/primitives/types/style.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/styles.css +129 -0
- package/dist/types/components/Authenticator/Authenticator.d.ts +3 -1
- package/dist/types/components/Authenticator/ForceNewPassword/ForceNewPassword.d.ts +3 -1
- package/dist/types/components/Authenticator/hooks/useCustomComponents/defaultComponents.d.ts +4 -4
- package/dist/types/hooks/useStorageURL.d.ts +7 -7
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/types/primitives/StepperField/useStepper.d.ts +1 -1
- package/dist/types/primitives/shared/types.d.ts +2 -2
- package/dist/types/primitives/types/alert.d.ts +1 -0
- package/dist/types/primitives/types/autocomplete.d.ts +3 -0
- package/dist/types/primitives/types/badge.d.ts +1 -0
- package/dist/types/primitives/types/button.d.ts +1 -0
- package/dist/types/primitives/types/buttonGroup.d.ts +1 -0
- package/dist/types/primitives/types/card.d.ts +1 -0
- package/dist/types/primitives/types/checkbox.d.ts +1 -0
- package/dist/types/primitives/types/checkboxField.d.ts +1 -0
- package/dist/types/primitives/types/collection.d.ts +1 -0
- package/dist/types/primitives/types/divider.d.ts +1 -0
- package/dist/types/primitives/types/expander.d.ts +2 -0
- package/dist/types/primitives/types/field.d.ts +4 -0
- package/dist/types/primitives/types/fieldGroup.d.ts +1 -0
- package/dist/types/primitives/types/fieldGroupIcon.d.ts +2 -0
- package/dist/types/primitives/types/flex.d.ts +1 -0
- package/dist/types/primitives/types/grid.d.ts +1 -0
- package/dist/types/primitives/types/heading.d.ts +1 -0
- package/dist/types/primitives/types/highlightMatch.d.ts +1 -0
- package/dist/types/primitives/types/icon.d.ts +1 -0
- package/dist/types/primitives/types/image.d.ts +6 -0
- package/dist/types/primitives/types/input.d.ts +1 -0
- package/dist/types/primitives/types/label.d.ts +1 -0
- package/dist/types/primitives/types/link.d.ts +1 -0
- package/dist/types/primitives/types/loader.d.ts +1 -0
- package/dist/types/primitives/types/menu.d.ts +2 -0
- package/dist/types/primitives/types/pagination.d.ts +2 -0
- package/dist/types/primitives/types/passwordField.d.ts +4 -1
- package/dist/types/primitives/types/phoneNumberField.d.ts +2 -0
- package/dist/types/primitives/types/placeholder.d.ts +1 -0
- package/dist/types/primitives/types/radio.d.ts +1 -0
- package/dist/types/primitives/types/radioGroupField.d.ts +2 -1
- package/dist/types/primitives/types/rating.d.ts +1 -0
- package/dist/types/primitives/types/scrollView.d.ts +1 -0
- package/dist/types/primitives/types/searchField.d.ts +2 -0
- package/dist/types/primitives/types/select.d.ts +1 -0
- package/dist/types/primitives/types/selectField.d.ts +1 -0
- package/dist/types/primitives/types/sliderField.d.ts +1 -0
- package/dist/types/primitives/types/stepperField.d.ts +1 -0
- package/dist/types/primitives/types/switchField.d.ts +2 -1
- package/dist/types/primitives/types/table.d.ts +6 -0
- package/dist/types/primitives/types/tabs.d.ts +2 -0
- package/dist/types/primitives/types/text.d.ts +1 -0
- package/dist/types/primitives/types/textArea.d.ts +1 -0
- package/dist/types/primitives/types/textAreaField.d.ts +1 -0
- package/dist/types/primitives/types/textField.d.ts +1 -0
- package/dist/types/primitives/types/toggleButton.d.ts +1 -0
- package/dist/types/primitives/types/toggleButtonGroup.d.ts +1 -0
- package/dist/types/primitives/types/view.d.ts +10 -2
- package/dist/types/primitives/types/visuallyHidden.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/dist/Field-0bbffeb6.js +0 -1
package/dist/styles.css
CHANGED
|
@@ -397,6 +397,7 @@
|
|
|
397
397
|
--amplify-components-fieldcontrol-disabled-border-color: var(--amplify-colors-transparent);
|
|
398
398
|
--amplify-components-fieldcontrol-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
399
399
|
--amplify-components-fieldcontrol-error-border-color: var(--amplify-colors-border-error);
|
|
400
|
+
--amplify-components-fieldcontrol-error-color: var(--amplify-colors-font-error);
|
|
400
401
|
--amplify-components-fieldcontrol-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-error);
|
|
401
402
|
--amplify-components-fieldgroup-gap: var(--amplify-space-zero);
|
|
402
403
|
--amplify-components-fieldgroup-vertical-align-items: center;
|
|
@@ -2893,10 +2894,14 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2893
2894
|
|
|
2894
2895
|
.amplify-liveness-toast {
|
|
2895
2896
|
background-color: var(--amplify-colors-background-primary);
|
|
2897
|
+
padding: var(--amplify-space-small);
|
|
2898
|
+
border-radius: var(--amplify-radii-medium);
|
|
2896
2899
|
}
|
|
2897
2900
|
|
|
2898
2901
|
.amplify-liveness-toast__message {
|
|
2899
2902
|
color: var(--amplify-colors-font-primary);
|
|
2903
|
+
text-align: center;
|
|
2904
|
+
flex-direction: column;
|
|
2900
2905
|
}
|
|
2901
2906
|
|
|
2902
2907
|
.amplify-liveness-toast--large {
|
|
@@ -2908,6 +2913,14 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2908
2913
|
}
|
|
2909
2914
|
.amplify-liveness-toast--primary .amplify-liveness-toast__message {
|
|
2910
2915
|
color: var(--amplify-colors-font-inverse);
|
|
2916
|
+
text-align: center;
|
|
2917
|
+
flex-direction: column;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
.amplify-liveness-toast__container {
|
|
2921
|
+
gap: var(--amplify-space-xs);
|
|
2922
|
+
flex-direction: column;
|
|
2923
|
+
align-items: center;
|
|
2911
2924
|
}
|
|
2912
2925
|
|
|
2913
2926
|
.amplify-liveness-toast--error {
|
|
@@ -3023,6 +3036,117 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3023
3036
|
top: 0;
|
|
3024
3037
|
}
|
|
3025
3038
|
|
|
3039
|
+
.amplify-liveness-landscape-error-modal {
|
|
3040
|
+
background-color: var(--amplify-colors-background-primary);
|
|
3041
|
+
direction: column;
|
|
3042
|
+
text-align: center;
|
|
3043
|
+
align-items: center;
|
|
3044
|
+
justify-content: center;
|
|
3045
|
+
width: 100%;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
.amplify-liveness-landscape-error-modal__header {
|
|
3049
|
+
font-size: large;
|
|
3050
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
.amplify-liveness-landscape-error-modal__button {
|
|
3054
|
+
justify-content: center;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
.amplify-liveness-start-screen-header {
|
|
3058
|
+
display: flex;
|
|
3059
|
+
flex-direction: column;
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
.amplify-liveness-start-screen-header__heading {
|
|
3063
|
+
color: var(--amplify-colors-font-primary);
|
|
3064
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
.amplify-liveness-start-screen-header__body {
|
|
3068
|
+
color: var(--amplify-colors-font-primary);
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.amplify-liveness-start-screen-warning {
|
|
3072
|
+
color: var(--amplify-colors-orange-80);
|
|
3073
|
+
background-color: var(--amplify-colors-orange-20);
|
|
3074
|
+
align-items: center;
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
.amplify-liveness-start-screen-instructions__heading {
|
|
3078
|
+
color: var(--amplify-colors-font-primary);
|
|
3079
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
.amplify-liveness-overlay-opaque {
|
|
3083
|
+
background-color: var(--amplify-colors-overlay-40);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
.amplify-liveness-overlay {
|
|
3087
|
+
flex-direction: column;
|
|
3088
|
+
position: absolute;
|
|
3089
|
+
left: 0;
|
|
3090
|
+
top: 0;
|
|
3091
|
+
width: 100%;
|
|
3092
|
+
height: 100%;
|
|
3093
|
+
padding: var(--amplify-space-xl);
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
.amplify-liveness-error-modal {
|
|
3097
|
+
gap: var(--amplify-space-xs);
|
|
3098
|
+
align-items: center;
|
|
3099
|
+
justify-content: center;
|
|
3100
|
+
color: var(--amplify-colors-font-error);
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
.amplify-liveness-error-modal__heading {
|
|
3104
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
.amplify-liveness-hint__text {
|
|
3108
|
+
align-items: center;
|
|
3109
|
+
gap: var(--amplify-space-xs);
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
.amplify-liveness-popover {
|
|
3113
|
+
position: relative;
|
|
3114
|
+
cursor: pointer;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
.amplify-liveness-popover__anchor {
|
|
3118
|
+
position: absolute;
|
|
3119
|
+
top: 26px;
|
|
3120
|
+
left: 3px;
|
|
3121
|
+
z-index: 3;
|
|
3122
|
+
border-style: solid;
|
|
3123
|
+
border-width: 0 9px 9px 9px;
|
|
3124
|
+
border-color: transparent transparent var(--amplify-colors-background-primary) transparent;
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
.amplify-liveness-popover__anchor-secondary {
|
|
3128
|
+
position: absolute;
|
|
3129
|
+
top: 24px;
|
|
3130
|
+
left: 2px;
|
|
3131
|
+
z-index: 2;
|
|
3132
|
+
border-style: solid;
|
|
3133
|
+
border-width: 0 10px 10px 10px;
|
|
3134
|
+
border-color: transparent transparent var(--amplify-colors-border-secondary) transparent;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
.amplify-liveness-popover__container {
|
|
3138
|
+
position: absolute;
|
|
3139
|
+
background-color: var(--amplify-colors-background-primary);
|
|
3140
|
+
color: var(--amplify-colors-font-primary);
|
|
3141
|
+
flex-direction: row;
|
|
3142
|
+
font-size: var(--amplify-font-sizes-xs);
|
|
3143
|
+
padding: var(--amplify-space-small);
|
|
3144
|
+
top: 33px;
|
|
3145
|
+
width: 240px;
|
|
3146
|
+
border: 1px solid var(--amplify-colors-border-secondary);
|
|
3147
|
+
border-radius: 2px;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3026
3150
|
.amplify-fileuploader__dropzone {
|
|
3027
3151
|
background-color: var(--amplify-components-fileuploader-dropzone-background-color);
|
|
3028
3152
|
border-color: var(--amplify-components-fileuploader-dropzone-border-color);
|
|
@@ -3323,6 +3447,11 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3323
3447
|
);
|
|
3324
3448
|
}
|
|
3325
3449
|
|
|
3450
|
+
.amplify-field__show-password--error {
|
|
3451
|
+
color: var(--amplify-components-fieldcontrol-error-color);
|
|
3452
|
+
border-color: var(--amplify-components-fieldcontrol-error-border-color);
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3326
3455
|
.amplify-phonenumberfield select:not(:focus) {
|
|
3327
3456
|
border-right: none;
|
|
3328
3457
|
}
|
|
@@ -31,6 +31,8 @@ export declare namespace Authenticator {
|
|
|
31
31
|
var SignUp: typeof import("./SignUp").SignUp;
|
|
32
32
|
var ForceNewPassword: {
|
|
33
33
|
({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
|
|
34
|
-
FormFields(): JSX.Element;
|
|
34
|
+
FormFields(): JSX.Element | null;
|
|
35
|
+
Header(): JSX.Element | null;
|
|
36
|
+
Footer(): JSX.Element | null;
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ForceNewPassword: {
|
|
4
4
|
({ className, variation, }: RouteProps): JSX.Element;
|
|
5
|
-
FormFields(): JSX.Element;
|
|
5
|
+
FormFields(): JSX.Element | null;
|
|
6
|
+
Header(): JSX.Element | null;
|
|
7
|
+
Footer(): JSX.Element | null;
|
|
6
8
|
};
|
package/dist/types/components/Authenticator/hooks/useCustomComponents/defaultComponents.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface Components {
|
|
3
|
-
Footer?: () => JSX.Element;
|
|
4
|
-
FormFields?: () => JSX.Element;
|
|
5
|
-
Header?: () => JSX.Element;
|
|
3
|
+
Footer?: () => JSX.Element | null;
|
|
4
|
+
FormFields?: () => JSX.Element | null;
|
|
5
|
+
Header?: () => JSX.Element | null;
|
|
6
6
|
}
|
|
7
7
|
export interface DefaultComponents extends Omit<Components, 'FormFields'> {
|
|
8
8
|
ConfirmSignIn?: Omit<Components, 'FormFields'>;
|
|
9
9
|
ConfirmSignUp?: Omit<Components, 'FormFields'>;
|
|
10
10
|
ConfirmResetPassword?: Omit<Components, 'FormFields'>;
|
|
11
11
|
ConfirmVerifyUser?: Omit<Components, 'FormFields'>;
|
|
12
|
-
ForceNewPassword?:
|
|
12
|
+
ForceNewPassword?: Components;
|
|
13
13
|
ResetPassword?: Omit<Components, 'FormFields'>;
|
|
14
14
|
SetupTOTP?: Omit<Components, 'FormFields'>;
|
|
15
15
|
SignIn?: Omit<Components, 'FormFields'>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { S3ProviderGetConfig } from '@aws-amplify/storage';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
interface UseStorageURLParams {
|
|
3
|
+
key: string;
|
|
4
|
+
options?: S3ProviderGetConfig;
|
|
5
|
+
fallbackURL?: string;
|
|
6
|
+
onStorageGetError?: (error: Error) => void;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
9
|
* Computes a public URL for an Amplify Storage file
|
|
9
10
|
* @internal
|
|
10
11
|
*/
|
|
11
|
-
export declare const useStorageURL: (key
|
|
12
|
-
|
|
13
|
-
};
|
|
12
|
+
export declare const useStorageURL: ({ key, options, fallbackURL, onStorageGetError, }: UseStorageURLParams) => string | undefined;
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BaseFieldGroupIconProps, ForwardRefPrimitive } from '../types';
|
|
2
|
-
export declare const FieldGroupIcon: ForwardRefPrimitive<BaseFieldGroupIconProps, '
|
|
2
|
+
export declare const FieldGroupIcon: ForwardRefPrimitive<BaseFieldGroupIconProps, 'div'>;
|
|
@@ -2,4 +2,4 @@ import { BaseRadioGroupFieldProps, ForwardRefPrimitive } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/radiogroupfield)
|
|
4
4
|
*/
|
|
5
|
-
export declare const RadioGroupField: ForwardRefPrimitive<BaseRadioGroupFieldProps, '
|
|
5
|
+
export declare const RadioGroupField: ForwardRefPrimitive<BaseRadioGroupFieldProps, 'fieldset'>;
|
|
@@ -16,7 +16,7 @@ interface UseStepper extends Required<Pick<StepperFieldProps, 'step' | 'value'>>
|
|
|
16
16
|
shouldDisableDecreaseButton: boolean;
|
|
17
17
|
shouldDisableIncreaseButton: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare const useStepper: ({ defaultValue, value: controlledValue, step, max, min, isDisabled, isReadOnly, onChange, onDecrease, onIncrease, onStepChange, }: Omit<import("..").PrimitivePropsWithAs<import("../types/stepperField").BaseStepperFieldProps, "input">, "ref"> & React.RefAttributes<HTMLInputElement> & Omit<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "as" | keyof React.RefAttributes<
|
|
19
|
+
export declare const useStepper: ({ defaultValue, value: controlledValue, step, max, min, isDisabled, isReadOnly, onChange, onDecrease, onIncrease, onStepChange, }: Omit<import("..").PrimitivePropsWithAs<import("../types/stepperField").BaseStepperFieldProps, "input">, "ref"> & React.RefAttributes<HTMLInputElement> & Omit<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "as" | keyof React.RefAttributes<React.ComponentRef<Element_1>> | keyof import("../types/stepperField").BaseStepperFieldProps> & {
|
|
20
20
|
onChange?: ChangeHandler | undefined;
|
|
21
21
|
}) => UseStepper;
|
|
22
22
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentClassName } from '@aws-amplify/ui';
|
|
2
|
-
type ComponentNameKey = 'Alert' | 'Autocomplete' | 'Badge' | 'Button' | 'Button' | 'Card' | 'Checkbox' | 'CheckboxField' | 'Collection' | 'PhoneNumberField' | 'Divider' | 'Expander' | 'FileUploader' | 'Flex' | 'Grid' | 'Heading' | 'HighlightMatch' | 'Icon' | 'Image' | 'Link' | 'Loader' | 'Menu' | 'Pagination' | 'PasswordField' | 'PhoneNumberField' | 'Placeholder' | 'Radio' | 'RadioGroupField' | 'Rating' | 'ScrollView' | 'SearchField' | 'Select' | 'SliderField' | 'SelectField' | 'StepperField' | 'StorageManager' | 'SwitchField' | 'Table' | 'Tabs' | 'Text' | 'TextAreaField' | 'TextField' | 'ToggleButton' | 'ToggleButtonGroup' | 'VisuallyHidden';
|
|
3
|
-
type ComponentClassNameKey = 'Alert' | 'AlertIcon' | 'AlertHeading' | 'AlertBody' | 'AlertDismiss' | 'Autocomplete' | 'AutocompleteMenu' | 'AutocompleteMenuEmpty' | 'AutocompleteMenuFooter' | 'AutocompleteMenuHeader' | 'AutocompleteMenuLoading' | 'AutocompleteMenuOption' | 'AutocompleteMenuOptions' | 'Badge' | 'Button' | 'ButtonGroup' | 'ButtonLoaderWrapper' | 'Card' | 'Checkbox' | 'CheckboxButton' | 'CheckboxIcon' | 'CheckboxInput' | 'CheckboxLabel' | 'CheckboxField' | 'Collection' | 'CollectionItems' | 'CollectionSearch' | 'CollectionPagination' | 'CountryCodeSelect' | 'DialCodeSelect' | 'Divider' | 'DividerLabel' | 'Expander' | 'ExpanderContent' | 'ExpanderContentText' | 'ExpanderHeader' | 'ExpanderIcon' | 'ExpanderItem' | 'ExpanderTrigger' | 'Field' | 'FieldDescription' | 'FieldErrorMessage' | 'FieldGroup' | 'FieldGroupControl' | 'FieldGroupOuterEnd' | 'FieldGroupOuterStart' | 'FieldGroupInnerEnd' | 'FieldGroupInnerStart' | 'FieldGroupIcon' | 'FieldGroupIconButton' | 'FieldGroupHasInnerEnd' | 'FieldGroupHasInnerStart' | 'FieldShowPassword' | 'FieldGroupFieldWrapper' | 'FileUploaderDropZone' | 'FileUploaderDropZoneIcon' | 'FileUploaderDropZoneText' | 'FileUploaderDropZoneButton' | 'FileUploaderFile' | 'FileUploaderFileWrapper' | 'FileUploaderFileName' | 'FileUploaderFileSize' | 'FileUploaderFileInfo' | 'FileUploaderFileStatus' | 'FileUploaderFileImage' | 'FileUploaderFileMain' | 'FileUploaderLoader' | 'FileUploaderPreviewer' | 'FileUploaderPreviewerText' | 'FileUploaderPreviewerBody' | 'FileUploaderPreviewerFooter' | 'FileUploaderPreviewerFooterActions' | 'Flex' | 'Grid' | 'Heading' | 'HighlightMatch' | 'HighlightMatchHighlighted' | 'Icon' | 'Image' | 'Input' | 'Label' | 'Link' | 'Loader' | 'LoaderDeterminate' | 'LoaderPercentageText' | 'MenuContent' | 'MenuContentWrapper' | 'MenuItem' | 'MenuTrigger' | 'Pagination' | 'PaginationItemButton' | 'PaginationItemCurrent' | 'PaginationItemEllipsis' | 'PasswordField' | 'PhoneNumberField' | 'Placeholder' | 'Radio' | 'RadioButton' | 'RadioInput' | 'RadioLabel' | 'RadioGroupField' | 'RadioGroup' | 'Rating' | 'ScrollView' | 'SearchField' | 'SearchFieldClear' | 'SearchFieldSearch' | 'Select' | 'SelectField' | 'SelectWrapper' | 'SelectIconWrapper' | 'SliderField' | 'SliderFieldGroup' | 'SliderFieldLabel' | 'SliderFieldRange' | 'SliderFieldRoot' | 'SliderFieldThumb' | 'SliderFieldTrack' | 'StepperField' | 'StepperFieldButtonDecrease' | 'StepperFieldButtonIncrease' | 'StepperFieldInput' | 'StorageManager' | 'StorageManagerDropZone' | 'StorageManagerDropZoneIcon' | 'StorageManagerDropZoneText' | 'StorageManagerFilePicker' | 'StorageManagerFile' | 'StorageManagerFileWrapper' | 'StorageManagerFileList' | 'StorageManagerFileName' | 'StorageManagerFileSize' | 'StorageManagerFileInfo' | 'StorageManagerFileStatus' | 'StorageManagerFileImage' | 'StorageManagerFileMain' | 'StorageManagerLoader' | 'StorageManagerPreviewer' | 'StorageManagerPreviewerText' | 'SwitchField' | 'SwitchLabel' | 'SwitchThumb' | 'SwitchTrack' | 'SwitchWrapper' | 'Table' | 'TableCaption' | 'TableBody' | 'TableTd' | 'TableTh' | 'TableFoot' | 'TableHead' | 'TableRow' | 'Tabs' | 'TabItems' | 'Text' | 'Textarea' | 'TextAreaField' | 'TextField' | 'ToggleButton' | 'ToggleButtonGroup' | 'VisuallyHidden';
|
|
2
|
+
type ComponentNameKey = 'Alert' | 'Autocomplete' | 'Badge' | 'Button' | 'Button' | 'Card' | 'Checkbox' | 'CheckboxField' | 'Collection' | 'PhoneNumberField' | 'Divider' | 'Expander' | 'FileUploader' | 'Flex' | 'Grid' | 'Heading' | 'HighlightMatch' | 'Icon' | 'Image' | 'Link' | 'Loader' | 'Menu' | 'Pagination' | 'PasswordField' | 'PhoneNumberField' | 'Placeholder' | 'Radio' | 'RadioGroupField' | 'Rating' | 'ScrollView' | 'SearchField' | 'Select' | 'SliderField' | 'SelectField' | 'StepperField' | 'StorageImage' | 'StorageManager' | 'SwitchField' | 'Table' | 'Tabs' | 'Text' | 'TextAreaField' | 'TextField' | 'ToggleButton' | 'ToggleButtonGroup' | 'VisuallyHidden';
|
|
3
|
+
type ComponentClassNameKey = 'Alert' | 'AlertIcon' | 'AlertHeading' | 'AlertBody' | 'AlertDismiss' | 'Autocomplete' | 'AutocompleteMenu' | 'AutocompleteMenuEmpty' | 'AutocompleteMenuFooter' | 'AutocompleteMenuHeader' | 'AutocompleteMenuLoading' | 'AutocompleteMenuOption' | 'AutocompleteMenuOptions' | 'Badge' | 'Button' | 'ButtonGroup' | 'ButtonLoaderWrapper' | 'Card' | 'Checkbox' | 'CheckboxButton' | 'CheckboxIcon' | 'CheckboxInput' | 'CheckboxLabel' | 'CheckboxField' | 'Collection' | 'CollectionItems' | 'CollectionSearch' | 'CollectionPagination' | 'CountryCodeSelect' | 'DialCodeSelect' | 'Divider' | 'DividerLabel' | 'Expander' | 'ExpanderContent' | 'ExpanderContentText' | 'ExpanderHeader' | 'ExpanderIcon' | 'ExpanderItem' | 'ExpanderTrigger' | 'Field' | 'FieldDescription' | 'FieldErrorMessage' | 'FieldGroup' | 'FieldGroupControl' | 'FieldGroupOuterEnd' | 'FieldGroupOuterStart' | 'FieldGroupInnerEnd' | 'FieldGroupInnerStart' | 'FieldGroupIcon' | 'FieldGroupIconButton' | 'FieldGroupHasInnerEnd' | 'FieldGroupHasInnerStart' | 'FieldShowPassword' | 'FieldGroupFieldWrapper' | 'FileUploaderDropZone' | 'FileUploaderDropZoneIcon' | 'FileUploaderDropZoneText' | 'FileUploaderDropZoneButton' | 'FileUploaderFile' | 'FileUploaderFileWrapper' | 'FileUploaderFileName' | 'FileUploaderFileSize' | 'FileUploaderFileInfo' | 'FileUploaderFileStatus' | 'FileUploaderFileImage' | 'FileUploaderFileMain' | 'FileUploaderLoader' | 'FileUploaderPreviewer' | 'FileUploaderPreviewerText' | 'FileUploaderPreviewerBody' | 'FileUploaderPreviewerFooter' | 'FileUploaderPreviewerFooterActions' | 'Flex' | 'Grid' | 'Heading' | 'HighlightMatch' | 'HighlightMatchHighlighted' | 'Icon' | 'Image' | 'Input' | 'Label' | 'Link' | 'Loader' | 'LoaderDeterminate' | 'LoaderPercentageText' | 'MenuContent' | 'MenuContentWrapper' | 'MenuItem' | 'MenuTrigger' | 'Pagination' | 'PaginationItemButton' | 'PaginationItemCurrent' | 'PaginationItemEllipsis' | 'PasswordField' | 'PhoneNumberField' | 'Placeholder' | 'Radio' | 'RadioButton' | 'RadioInput' | 'RadioLabel' | 'RadioGroupField' | 'RadioGroup' | 'Rating' | 'ScrollView' | 'SearchField' | 'SearchFieldClear' | 'SearchFieldSearch' | 'Select' | 'SelectField' | 'SelectWrapper' | 'SelectIconWrapper' | 'SliderField' | 'SliderFieldGroup' | 'SliderFieldLabel' | 'SliderFieldRange' | 'SliderFieldRoot' | 'SliderFieldThumb' | 'SliderFieldTrack' | 'StepperField' | 'StepperFieldButtonDecrease' | 'StepperFieldButtonIncrease' | 'StepperFieldInput' | 'StorageImage' | 'StorageManager' | 'StorageManagerDropZone' | 'StorageManagerDropZoneIcon' | 'StorageManagerDropZoneText' | 'StorageManagerFilePicker' | 'StorageManagerFile' | 'StorageManagerFileWrapper' | 'StorageManagerFileList' | 'StorageManagerFileName' | 'StorageManagerFileSize' | 'StorageManagerFileInfo' | 'StorageManagerFileStatus' | 'StorageManagerFileImage' | 'StorageManagerFileMain' | 'StorageManagerLoader' | 'StorageManagerPreviewer' | 'StorageManagerPreviewerText' | 'SwitchField' | 'SwitchLabel' | 'SwitchThumb' | 'SwitchTrack' | 'SwitchWrapper' | 'Table' | 'TableCaption' | 'TableBody' | 'TableTd' | 'TableTh' | 'TableFoot' | 'TableHead' | 'TableRow' | 'Tabs' | 'TabItems' | 'Text' | 'Textarea' | 'TextAreaField' | 'TextField' | 'ToggleButton' | 'ToggleButtonGroup' | 'VisuallyHidden';
|
|
4
4
|
interface ComponentClassNameMetadata {
|
|
5
5
|
className: ComponentClassName;
|
|
6
6
|
components?: ComponentNameKey[];
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BaseFlexProps } from './flex';
|
|
3
3
|
import { ElementType, PrimitiveProps } from './view';
|
|
4
4
|
export type AlertVariations = 'info' | 'error' | 'warning' | 'success';
|
|
5
|
+
/** @deprecated For internal use only */
|
|
5
6
|
export interface BaseAlertProps extends BaseFlexProps {
|
|
6
7
|
/**
|
|
7
8
|
* @description
|
|
@@ -23,6 +23,7 @@ export interface ComboBoxOption {
|
|
|
23
23
|
*/
|
|
24
24
|
label: string;
|
|
25
25
|
}
|
|
26
|
+
/** @deprecated For internal use only */
|
|
26
27
|
export interface BaseAutocompleteOptionProps extends BaseViewProps {
|
|
27
28
|
/**
|
|
28
29
|
* React node that will be wrapped inside a li element
|
|
@@ -35,6 +36,7 @@ export interface BaseAutocompleteOptionProps extends BaseViewProps {
|
|
|
35
36
|
isActive: boolean;
|
|
36
37
|
}
|
|
37
38
|
export type AutocompleteOptionProps<Element extends ElementType = 'li'> = PrimitiveProps<BaseAutocompleteOptionProps, Element>;
|
|
39
|
+
/** @deprecated For internal use only */
|
|
38
40
|
export interface BaseAutocompleteMenuProps extends BaseViewProps {
|
|
39
41
|
/**
|
|
40
42
|
* @description
|
|
@@ -80,6 +82,7 @@ export interface BaseAutocompleteMenuProps extends BaseViewProps {
|
|
|
80
82
|
listboxId: string;
|
|
81
83
|
}
|
|
82
84
|
export type AutocompleteMenuProps<Element extends ElementType = 'div'> = PrimitiveProps<BaseAutocompleteMenuProps, Element>;
|
|
85
|
+
/** @deprecated For internal use only */
|
|
83
86
|
export interface BaseAutocompleteProps extends BaseSearchFieldProps {
|
|
84
87
|
/**
|
|
85
88
|
* @description
|
|
@@ -2,6 +2,7 @@ import { Sizes } from './base';
|
|
|
2
2
|
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
3
|
export type BadgeVariations = 'info' | 'error' | 'warning' | 'success';
|
|
4
4
|
export type BadgeSizes = Sizes;
|
|
5
|
+
/** @deprecated For internal use only */
|
|
5
6
|
export interface BaseBadgeProps extends BaseViewProps {
|
|
6
7
|
/**
|
|
7
8
|
* @description
|
|
@@ -5,6 +5,7 @@ import { FlexContainerStyleProps } from './flex';
|
|
|
5
5
|
export type ButtonSizes = Sizes;
|
|
6
6
|
export type ButtonTypes = 'button' | 'reset' | 'submit';
|
|
7
7
|
export type ButtonVariations = 'primary' | 'link' | 'menu' | 'warning' | 'destructive';
|
|
8
|
+
/** @deprecated For internal use only */
|
|
8
9
|
export interface BaseButtonProps extends BaseViewProps, FlexContainerStyleProps {
|
|
9
10
|
/**
|
|
10
11
|
* @description
|
|
@@ -4,6 +4,7 @@ import { BaseStyleProps } from './style';
|
|
|
4
4
|
import { BaseButtonProps } from './button';
|
|
5
5
|
import { BaseFlexProps } from './flex';
|
|
6
6
|
import { ElementType, PrimitiveProps } from './view';
|
|
7
|
+
/** @deprecated For internal use only */
|
|
7
8
|
export interface BaseButtonGroupProps extends AriaProps, BaseStyleProps, BaseFlexProps, Pick<BaseButtonProps, 'size' | 'variation'> {
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
}
|
|
@@ -4,6 +4,7 @@ import { BaseInputProps } from './input';
|
|
|
4
4
|
import { FieldProps, LabelPositions } from './field';
|
|
5
5
|
import { BaseStyleProps } from './style';
|
|
6
6
|
import { ElementType, PrimitiveProps } from './view';
|
|
7
|
+
/** @deprecated For internal use only */
|
|
7
8
|
export interface BaseCheckboxProps extends BaseFlexProps, BaseInputProps {
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseCheckboxProps } from './checkbox';
|
|
2
2
|
import { BaseFieldProps } from './field';
|
|
3
3
|
import { ElementType, PrimitiveProps } from './view';
|
|
4
|
+
/** @deprecated For internal use only */
|
|
4
5
|
export interface BaseCheckboxFieldProps extends BaseCheckboxProps, BaseFieldProps {
|
|
5
6
|
}
|
|
6
7
|
export type CheckboxFieldProps<Element extends ElementType = 'input'> = PrimitiveProps<BaseCheckboxFieldProps, Element>;
|
|
@@ -73,6 +73,7 @@ export type GridCollectionProps<Item> = BaseGridProps & CollectionBaseProps<Item
|
|
|
73
73
|
* and replaces with `CollectionChildren`
|
|
74
74
|
*/
|
|
75
75
|
type ReplaceChildren<T, Item> = Omit<T, 'children'> & CollectionChildren<Item>;
|
|
76
|
+
/** @deprecated For internal use only */
|
|
76
77
|
export type BaseCollectionProps<Item, Element extends ElementType> = PrimitivePropsWithAs<CollectionWrapperProps, Element> & (ReplaceChildren<{
|
|
77
78
|
type: 'list';
|
|
78
79
|
} & ListCollectionProps<Item>, Item> | ReplaceChildren<{
|
|
@@ -23,6 +23,7 @@ export interface DividerOptions {
|
|
|
23
23
|
*/
|
|
24
24
|
label?: string;
|
|
25
25
|
}
|
|
26
|
+
/** @deprecated For internal use only */
|
|
26
27
|
export interface BaseDividerProps extends BaseViewProps, DividerOptions {
|
|
27
28
|
}
|
|
28
29
|
export type DividerProps<Element extends ElementType = 'hr'> = PrimitiveProps<BaseDividerProps, Element>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ElementType, PrimitiveProps, BaseViewProps } from '../types/view';
|
|
3
3
|
type ExpanderType = 'single' | 'multiple';
|
|
4
|
+
/** @deprecated For internal use only */
|
|
4
5
|
export interface BaseExpanderProps extends BaseViewProps {
|
|
5
6
|
/**
|
|
6
7
|
* @description
|
|
@@ -33,6 +34,7 @@ export interface BaseExpanderProps extends BaseViewProps {
|
|
|
33
34
|
onValueChange?: (value?: string | string[]) => void;
|
|
34
35
|
}
|
|
35
36
|
export type ExpanderProps<Element extends ElementType = 'div'> = PrimitiveProps<BaseExpanderProps, Element>;
|
|
37
|
+
/** @deprecated For internal use only */
|
|
36
38
|
export interface BaseExpanderItemProps extends BaseViewProps {
|
|
37
39
|
/**
|
|
38
40
|
* @description
|
|
@@ -6,6 +6,7 @@ import { BaseStyleProps } from './style';
|
|
|
6
6
|
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
7
7
|
/**
|
|
8
8
|
* Shared type across all field types
|
|
9
|
+
* @deprecated For internal use only
|
|
9
10
|
*/
|
|
10
11
|
export interface BaseFieldProps extends BaseViewProps {
|
|
11
12
|
/**
|
|
@@ -38,12 +39,15 @@ export interface BaseFieldProps extends BaseViewProps {
|
|
|
38
39
|
inputStyles?: BaseStyleProps;
|
|
39
40
|
}
|
|
40
41
|
export type FieldProps<Element extends ElementType = 'div'> = PrimitiveProps<BaseFieldProps, Element>;
|
|
42
|
+
/** @deprecated For internal use only */
|
|
41
43
|
export interface BaseFieldClearButtonProps extends Partial<BaseFieldGroupIconButtonProps> {
|
|
42
44
|
}
|
|
43
45
|
export type FieldClearButtonProps<Element extends ElementType = 'button'> = PrimitiveProps<BaseFieldClearButtonProps, Element>;
|
|
46
|
+
/** @deprecated For internal use only */
|
|
44
47
|
export interface BaseFieldDescriptionProps extends BaseTextProps, Pick<BaseFieldProps, 'descriptiveText' | 'labelHidden'> {
|
|
45
48
|
}
|
|
46
49
|
export type FieldDescriptionProps<Element extends ElementType = 'p'> = PrimitiveProps<BaseFieldDescriptionProps, Element>;
|
|
50
|
+
/** @deprecated For internal use only */
|
|
47
51
|
export interface BaseFieldErrorMessageProps extends BaseTextProps, Pick<BaseFieldProps, 'errorMessage'>, Pick<BaseInputProps, 'hasError'> {
|
|
48
52
|
}
|
|
49
53
|
export type FieldErrorMessageProps<Element extends ElementType = 'p'> = PrimitiveProps<BaseFieldErrorMessageProps, Element>;
|
|
@@ -3,6 +3,7 @@ import { BaseFlexProps } from './flex';
|
|
|
3
3
|
import { FieldVariations } from './field';
|
|
4
4
|
import { ElementType, PrimitiveProps } from './view';
|
|
5
5
|
export type FieldGroupOrientation = 'horizontal' | 'vertical';
|
|
6
|
+
/** @deprecated For internal use only */
|
|
6
7
|
export interface BaseFieldGroupOptions extends BaseFlexProps {
|
|
7
8
|
children?: React.ReactNode;
|
|
8
9
|
orientation?: FieldGroupOrientation;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
2
2
|
import { BaseButtonProps } from './button';
|
|
3
|
+
/** @deprecated For internal use only */
|
|
3
4
|
export interface BaseFieldGroupIconProps extends BaseViewProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description
|
|
@@ -14,6 +15,7 @@ export interface BaseFieldGroupIconProps extends BaseViewProps {
|
|
|
14
15
|
excludeFromTabOrder?: boolean;
|
|
15
16
|
}
|
|
16
17
|
export type FieldGroupIconProps<Element extends ElementType = 'button' | 'div'> = PrimitiveProps<BaseFieldGroupIconProps, Element>;
|
|
18
|
+
/** @deprecated For internal use only */
|
|
17
19
|
export interface BaseFieldGroupIconButtonProps extends BaseFieldGroupIconProps, Pick<BaseButtonProps, 'onClick' | 'variation' | 'size' | 'type'> {
|
|
18
20
|
}
|
|
19
21
|
export type FieldGroupIconButtonProps<Element extends ElementType = 'button'> = PrimitiveProps<BaseFieldGroupIconButtonProps, Element>;
|
|
@@ -19,6 +19,7 @@ export interface FlexContainerStyleProps extends CSSLayoutStyleProps {
|
|
|
19
19
|
*/
|
|
20
20
|
wrap?: ResponsiveStyle<Property.FlexWrap>;
|
|
21
21
|
}
|
|
22
|
+
/** @deprecated For internal use only */
|
|
22
23
|
export interface BaseFlexProps extends BaseViewProps, FlexContainerStyleProps {
|
|
23
24
|
}
|
|
24
25
|
export type FlexProps<Element extends ElementType = 'div'> = PrimitiveProps<BaseFlexProps, Element>;
|
|
@@ -105,6 +105,7 @@ export interface GridItemStyleProps {
|
|
|
105
105
|
*/
|
|
106
106
|
rowStart?: ResponsiveStyle<Property.GridRowStart>;
|
|
107
107
|
}
|
|
108
|
+
/** @deprecated For internal use only */
|
|
108
109
|
export interface BaseGridProps extends GridContainerStyleProps, BaseViewProps {
|
|
109
110
|
}
|
|
110
111
|
export type GridProps<Element extends ElementType = 'div'> = PrimitiveProps<BaseGridProps, Element>;
|
|
@@ -2,6 +2,7 @@ import { BaseTextProps } from './text';
|
|
|
2
2
|
import { 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
|
+
/** @deprecated For internal use only */
|
|
5
6
|
export interface BaseHeadingProps extends BaseTextProps {
|
|
6
7
|
/**
|
|
7
8
|
* @description
|
|
@@ -3,6 +3,11 @@ import { Property } from 'csstype';
|
|
|
3
3
|
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
4
4
|
import { ResponsiveStyle } from './style';
|
|
5
5
|
export interface ImageStyleProps {
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
* Sets a preferred aspect ratio for the selected replaced element's box
|
|
9
|
+
*/
|
|
10
|
+
aspectRatio?: ResponsiveStyle<Property.AspectRatio>;
|
|
6
11
|
/**
|
|
7
12
|
* @description
|
|
8
13
|
* Sets how the content of an <img> should be resized to fit its container
|
|
@@ -52,6 +57,7 @@ export interface ImageOptions extends ImageStyleProps {
|
|
|
52
57
|
*/
|
|
53
58
|
onError?(error: string | React.SyntheticEvent<HTMLImageElement, Event>): void;
|
|
54
59
|
}
|
|
60
|
+
/** @deprecated For internal use only */
|
|
55
61
|
export interface BaseImageProps extends BaseViewProps, ImageOptions {
|
|
56
62
|
}
|
|
57
63
|
export type ImageProps<Element extends ElementType = 'img'> = PrimitiveProps<BaseImageProps, Element>;
|
|
@@ -5,6 +5,7 @@ import { 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;
|
|
8
|
+
/** @deprecated For internal use only */
|
|
8
9
|
export interface BaseInputProps extends BaseViewProps {
|
|
9
10
|
/**
|
|
10
11
|
* @description
|
|
@@ -4,6 +4,7 @@ import { Sizes } from './base';
|
|
|
4
4
|
import { StyleToken } from './style';
|
|
5
5
|
export type LoaderSizes = Sizes;
|
|
6
6
|
export type LoaderVariations = 'linear';
|
|
7
|
+
/** @deprecated For internal use only */
|
|
7
8
|
export interface BaseLoaderProps extends BaseViewProps {
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
@@ -3,6 +3,7 @@ import { BaseButtonProps } from './button';
|
|
|
3
3
|
import { BaseFlexProps } from './flex';
|
|
4
4
|
import { Sizes } from './base';
|
|
5
5
|
import { ElementType, PrimitiveProps } from './view';
|
|
6
|
+
/** @deprecated For internal use only */
|
|
6
7
|
export interface BaseMenuProps extends BaseFlexProps {
|
|
7
8
|
/**
|
|
8
9
|
* @description
|
|
@@ -43,6 +44,7 @@ export interface BaseMenuProps extends BaseFlexProps {
|
|
|
43
44
|
triggerClassName?: string;
|
|
44
45
|
}
|
|
45
46
|
export type MenuProps<Element extends ElementType = 'div'> = PrimitiveProps<BaseMenuProps, Element>;
|
|
47
|
+
/** @deprecated For internal use only */
|
|
46
48
|
export interface BaseMenuItemProps extends BaseButtonProps {
|
|
47
49
|
/**
|
|
48
50
|
* @description
|
|
@@ -4,6 +4,7 @@ import { 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';
|
|
7
|
+
/** @deprecated For internal use only */
|
|
7
8
|
export interface BasePaginationProps extends BaseViewProps {
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
@@ -77,6 +78,7 @@ export interface UsePaginationProps extends Omit<BasePaginationProps, Pagination
|
|
|
77
78
|
}
|
|
78
79
|
export interface UsePaginationResult extends Required<Omit<BasePaginationProps, PaginationLabelType | keyof BaseViewProps>> {
|
|
79
80
|
}
|
|
81
|
+
/** @deprecated For internal use only */
|
|
80
82
|
export interface BasePaginationItemProps extends BaseComponentProps, BaseStyleProps, AriaProps {
|
|
81
83
|
/**
|
|
82
84
|
* @description
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { BaseButtonProps } from './button';
|
|
3
3
|
import { BaseTextFieldProps } from './textField';
|
|
4
4
|
import { ElementType, PrimitiveProps } from './view';
|
|
5
|
+
import { BaseInputProps } from './input';
|
|
6
|
+
/** @deprecated For internal use only */
|
|
5
7
|
export interface BasePasswordFieldProps extends BaseTextFieldProps {
|
|
6
8
|
/**
|
|
7
9
|
* @description
|
|
@@ -54,7 +56,8 @@ export interface BasePasswordFieldProps extends BaseTextFieldProps {
|
|
|
54
56
|
}
|
|
55
57
|
export type PasswordFieldProps<Element extends ElementType = 'input'> = PrimitiveProps<BasePasswordFieldProps, Element>;
|
|
56
58
|
export type PasswordFieldType = 'password' | 'text';
|
|
57
|
-
|
|
59
|
+
/** @deprecated For internal use only */
|
|
60
|
+
export interface BaseShowPasswordButtonProps extends BaseButtonProps, Pick<BaseInputProps, 'hasError'> {
|
|
58
61
|
/**
|
|
59
62
|
* @description
|
|
60
63
|
* Determines whether the input is hidden or displayed. Options include 'password' or 'text'
|
|
@@ -92,8 +92,10 @@ interface DialCodeRequired extends optionalPhoneNumberFieldProps {
|
|
|
92
92
|
*/
|
|
93
93
|
defaultDialCode: string;
|
|
94
94
|
}
|
|
95
|
+
/** @deprecated For internal use only */
|
|
95
96
|
export type BasePhoneNumberFieldProps = CountryCodeRequired | DialCodeRequired;
|
|
96
97
|
export type PhoneNumberFieldProps<Element extends ElementType = 'input'> = PrimitiveProps<BasePhoneNumberFieldProps, Element>;
|
|
98
|
+
/** @deprecated For internal use only */
|
|
97
99
|
export interface BaseDialCodeSelectProps extends BaseSelectFieldProps {
|
|
98
100
|
defaultValue?: string;
|
|
99
101
|
dialCodeList?: Array<string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Sizes } from './base';
|
|
2
2
|
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
3
|
export type PlaceholderSizes = Sizes;
|
|
4
|
+
/** @deprecated For internal use only */
|
|
4
5
|
export interface BasePlaceholderProps extends BaseViewProps {
|
|
5
6
|
/**
|
|
6
7
|
* @description
|