@aws-amplify/ui-react 5.0.4 → 5.0.6
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 +135 -9
- 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/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 +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/types/primitives/types/visuallyHidden.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
- 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;
|
|
@@ -806,7 +807,9 @@
|
|
|
806
807
|
--amplify-components-switchfield-small-font-size: var(--amplify-font-sizes-small);
|
|
807
808
|
--amplify-components-switchfield-label-padding: var(--amplify-space-xs);
|
|
808
809
|
--amplify-components-switchfield-thumb-background-color: var(--amplify-colors-background-primary);
|
|
809
|
-
--amplify-components-switchfield-thumb-border-color:
|
|
810
|
+
--amplify-components-switchfield-thumb-border-color: transparent;
|
|
811
|
+
--amplify-components-switchfield-thumb-border-width: var(--amplify-border-widths-small);
|
|
812
|
+
--amplify-components-switchfield-thumb-border-style: solid;
|
|
810
813
|
--amplify-components-switchfield-thumb-border-radius: var(--amplify-radii-xxxl);
|
|
811
814
|
--amplify-components-switchfield-thumb-checked-transform: var(--amplify-transforms-slide-x-medium);
|
|
812
815
|
--amplify-components-switchfield-thumb-transition-duration: var(--amplify-time-medium);
|
|
@@ -1221,14 +1224,6 @@ select {
|
|
|
1221
1224
|
display: block;
|
|
1222
1225
|
overflow: auto;
|
|
1223
1226
|
}
|
|
1224
|
-
.amplify-scrollview--horizontal {
|
|
1225
|
-
overflow-x: scroll;
|
|
1226
|
-
overflow-y: initial;
|
|
1227
|
-
}
|
|
1228
|
-
.amplify-scrollview--vertical {
|
|
1229
|
-
overflow-x: initial;
|
|
1230
|
-
overflow-y: scroll;
|
|
1231
|
-
}
|
|
1232
1227
|
|
|
1233
1228
|
.amplify-text {
|
|
1234
1229
|
display: block;
|
|
@@ -2893,10 +2888,14 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2893
2888
|
|
|
2894
2889
|
.amplify-liveness-toast {
|
|
2895
2890
|
background-color: var(--amplify-colors-background-primary);
|
|
2891
|
+
padding: var(--amplify-space-small);
|
|
2892
|
+
border-radius: var(--amplify-radii-medium);
|
|
2896
2893
|
}
|
|
2897
2894
|
|
|
2898
2895
|
.amplify-liveness-toast__message {
|
|
2899
2896
|
color: var(--amplify-colors-font-primary);
|
|
2897
|
+
text-align: center;
|
|
2898
|
+
flex-direction: column;
|
|
2900
2899
|
}
|
|
2901
2900
|
|
|
2902
2901
|
.amplify-liveness-toast--large {
|
|
@@ -2908,6 +2907,14 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2908
2907
|
}
|
|
2909
2908
|
.amplify-liveness-toast--primary .amplify-liveness-toast__message {
|
|
2910
2909
|
color: var(--amplify-colors-font-inverse);
|
|
2910
|
+
text-align: center;
|
|
2911
|
+
flex-direction: column;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
.amplify-liveness-toast__container {
|
|
2915
|
+
gap: var(--amplify-space-xs);
|
|
2916
|
+
flex-direction: column;
|
|
2917
|
+
align-items: center;
|
|
2911
2918
|
}
|
|
2912
2919
|
|
|
2913
2920
|
.amplify-liveness-toast--error {
|
|
@@ -3023,6 +3030,117 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3023
3030
|
top: 0;
|
|
3024
3031
|
}
|
|
3025
3032
|
|
|
3033
|
+
.amplify-liveness-landscape-error-modal {
|
|
3034
|
+
background-color: var(--amplify-colors-background-primary);
|
|
3035
|
+
direction: column;
|
|
3036
|
+
text-align: center;
|
|
3037
|
+
align-items: center;
|
|
3038
|
+
justify-content: center;
|
|
3039
|
+
width: 100%;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
.amplify-liveness-landscape-error-modal__header {
|
|
3043
|
+
font-size: large;
|
|
3044
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
.amplify-liveness-landscape-error-modal__button {
|
|
3048
|
+
justify-content: center;
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
.amplify-liveness-start-screen-header {
|
|
3052
|
+
display: flex;
|
|
3053
|
+
flex-direction: column;
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
.amplify-liveness-start-screen-header__heading {
|
|
3057
|
+
color: var(--amplify-colors-font-primary);
|
|
3058
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3059
|
+
}
|
|
3060
|
+
|
|
3061
|
+
.amplify-liveness-start-screen-header__body {
|
|
3062
|
+
color: var(--amplify-colors-font-primary);
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
.amplify-liveness-start-screen-warning {
|
|
3066
|
+
color: var(--amplify-colors-orange-80);
|
|
3067
|
+
background-color: var(--amplify-colors-orange-20);
|
|
3068
|
+
align-items: center;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.amplify-liveness-start-screen-instructions__heading {
|
|
3072
|
+
color: var(--amplify-colors-font-primary);
|
|
3073
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
.amplify-liveness-overlay-opaque {
|
|
3077
|
+
background-color: var(--amplify-colors-overlay-40);
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
.amplify-liveness-overlay {
|
|
3081
|
+
flex-direction: column;
|
|
3082
|
+
position: absolute;
|
|
3083
|
+
left: 0;
|
|
3084
|
+
top: 0;
|
|
3085
|
+
width: 100%;
|
|
3086
|
+
height: 100%;
|
|
3087
|
+
padding: var(--amplify-space-xl);
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
.amplify-liveness-error-modal {
|
|
3091
|
+
gap: var(--amplify-space-xs);
|
|
3092
|
+
align-items: center;
|
|
3093
|
+
justify-content: center;
|
|
3094
|
+
color: var(--amplify-colors-font-error);
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
.amplify-liveness-error-modal__heading {
|
|
3098
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
.amplify-liveness-hint__text {
|
|
3102
|
+
align-items: center;
|
|
3103
|
+
gap: var(--amplify-space-xs);
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
.amplify-liveness-popover {
|
|
3107
|
+
position: relative;
|
|
3108
|
+
cursor: pointer;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
.amplify-liveness-popover__anchor {
|
|
3112
|
+
position: absolute;
|
|
3113
|
+
top: 26px;
|
|
3114
|
+
left: 3px;
|
|
3115
|
+
z-index: 3;
|
|
3116
|
+
border-style: solid;
|
|
3117
|
+
border-width: 0 9px 9px 9px;
|
|
3118
|
+
border-color: transparent transparent var(--amplify-colors-background-primary) transparent;
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3121
|
+
.amplify-liveness-popover__anchor-secondary {
|
|
3122
|
+
position: absolute;
|
|
3123
|
+
top: 24px;
|
|
3124
|
+
left: 2px;
|
|
3125
|
+
z-index: 2;
|
|
3126
|
+
border-style: solid;
|
|
3127
|
+
border-width: 0 10px 10px 10px;
|
|
3128
|
+
border-color: transparent transparent var(--amplify-colors-border-secondary) transparent;
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
.amplify-liveness-popover__container {
|
|
3132
|
+
position: absolute;
|
|
3133
|
+
background-color: var(--amplify-colors-background-primary);
|
|
3134
|
+
color: var(--amplify-colors-font-primary);
|
|
3135
|
+
flex-direction: row;
|
|
3136
|
+
font-size: var(--amplify-font-sizes-xs);
|
|
3137
|
+
padding: var(--amplify-space-small);
|
|
3138
|
+
top: 33px;
|
|
3139
|
+
width: 240px;
|
|
3140
|
+
border: 1px solid var(--amplify-colors-border-secondary);
|
|
3141
|
+
border-radius: 2px;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3026
3144
|
.amplify-fileuploader__dropzone {
|
|
3027
3145
|
background-color: var(--amplify-components-fileuploader-dropzone-background-color);
|
|
3028
3146
|
border-color: var(--amplify-components-fileuploader-dropzone-border-color);
|
|
@@ -3323,6 +3441,11 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3323
3441
|
);
|
|
3324
3442
|
}
|
|
3325
3443
|
|
|
3444
|
+
.amplify-field__show-password--error {
|
|
3445
|
+
color: var(--amplify-components-fieldcontrol-error-color);
|
|
3446
|
+
border-color: var(--amplify-components-fieldcontrol-error-border-color);
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3326
3449
|
.amplify-phonenumberfield select:not(:focus) {
|
|
3327
3450
|
border-right: none;
|
|
3328
3451
|
}
|
|
@@ -3920,6 +4043,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3920
4043
|
.amplify-switchfield {
|
|
3921
4044
|
display: inline-block;
|
|
3922
4045
|
font-size: var(--amplify-components-switchfield-font-size);
|
|
4046
|
+
cursor: pointer;
|
|
3923
4047
|
}
|
|
3924
4048
|
.amplify-switchfield--small {
|
|
3925
4049
|
font-size: var(--amplify-components-switchfield-small-font-size);
|
|
@@ -3976,6 +4100,8 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3976
4100
|
border-radius: var(--amplify-components-switchfield-thumb-border-radius);
|
|
3977
4101
|
width: var(--amplify-components-switchfield-thumb-width);
|
|
3978
4102
|
height: var(--amplify-components-switchfield-thumb-width);
|
|
4103
|
+
border-width: var(--amplify-components-switchfield-thumb-border-width);
|
|
4104
|
+
border-style: var(--amplify-components-switchfield-thumb-border-style);
|
|
3979
4105
|
border-color: var(--amplify-components-switchfield-thumb-border-color);
|
|
3980
4106
|
overflow-wrap: break-word;
|
|
3981
4107
|
}
|
|
@@ -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,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>;
|