@aws-amplify/ui-react 4.5.1 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Field-1dd46eaa.js +1 -0
- package/dist/esm/components/AccountSettings/ChangePassword/ChangePassword.mjs +1 -1
- package/dist/esm/components/AccountSettings/DeleteUser/DeleteUser.mjs +1 -1
- package/dist/esm/components/Geo/LocationSearch/index.mjs +1 -1
- package/dist/esm/components/Geo/MapView/index.mjs +1 -1
- package/dist/esm/components/InAppMessaging/Backdrop/Backdrop.mjs +1 -1
- package/dist/esm/hooks/actions/constants.mjs +1 -1
- package/dist/esm/hooks/actions/useNavigateAction.mjs +1 -1
- package/dist/esm/hooks/useThemeBreakpoint.mjs +1 -0
- package/dist/esm/internal.mjs +1 -1
- package/dist/esm/primitives/CheckboxField/CheckboxField.mjs +1 -1
- package/dist/esm/primitives/Expander/ExpanderItem.mjs +1 -1
- package/dist/esm/primitives/Field/Field.mjs +1 -0
- package/dist/esm/primitives/Field/FieldDescription.mjs +1 -1
- package/dist/esm/primitives/Loader/Loader.mjs +1 -1
- package/dist/esm/primitives/Menu/Menu.mjs +1 -1
- package/dist/esm/primitives/Menu/MenuItem.mjs +1 -1
- package/dist/esm/primitives/Pagination/PaginationItem.mjs +1 -1
- package/dist/esm/primitives/Pagination/useRange.mjs +1 -1
- package/dist/esm/primitives/RadioGroupField/RadioGroupField.mjs +1 -1
- package/dist/esm/primitives/SearchField/SearchField.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/SwitchField/SwitchField.mjs +1 -1
- package/dist/esm/primitives/TextAreaField/TextAreaField.mjs +1 -1
- package/dist/esm/primitives/TextField/TextField.mjs +1 -1
- package/dist/esm/primitives/utils/useStableId.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 +403 -2
- package/dist/types/components/AccountSettings/DeleteUser/types.d.ts +2 -2
- package/dist/types/components/AccountSettings/types.d.ts +13 -13
- package/dist/types/components/Authenticator/Authenticator.d.ts +2 -2
- package/dist/types/components/Authenticator/RouteContainer/types.d.ts +2 -2
- package/dist/types/components/Authenticator/Router/types.d.ts +1 -1
- package/dist/types/components/Authenticator/withAuthenticator.d.ts +1 -1
- package/dist/types/components/Geo/types/maplibre-gl-geocoder.d.ts +1 -1
- package/dist/types/components/InAppMessaging/BannerMessage/types.d.ts +1 -1
- package/dist/types/components/InAppMessaging/InAppMessageDisplay/types.d.ts +4 -4
- package/dist/types/components/InAppMessaging/MessageLayout/types.d.ts +2 -2
- package/dist/types/components/InAppMessaging/hooks/useMessageImage/types.d.ts +1 -1
- package/dist/types/components/InAppMessaging/hooks/useMessageProps/types.d.ts +1 -1
- package/dist/types/components/Storage/FileUploader/types.d.ts +7 -7
- package/dist/types/components/ThemeProvider/index.d.ts +2 -2
- package/dist/types/helpers/utils.d.ts +1 -1
- package/dist/types/hooks/actions/shared/types.d.ts +2 -2
- package/dist/types/hooks/actions/shared/useTypeCastFields.d.ts +1 -1
- package/dist/types/hooks/actions/testModels/model.d.ts +1 -1
- package/dist/types/hooks/actions/testModels/todo.d.ts +1 -1
- package/dist/types/hooks/actions/useNavigateAction.d.ts +1 -1
- package/dist/types/hooks/actions/useStateMutationAction.d.ts +1 -1
- package/dist/types/hooks/useComposeRefsCallback.d.ts +1 -1
- package/dist/types/hooks/useThemeBreakpoint.d.ts +2 -0
- package/dist/types/internal.d.ts +4 -1
- package/dist/types/primitives/Alert/AlertIcon.d.ts +3 -0
- package/dist/types/primitives/Field/Field.d.ts +6 -0
- package/dist/types/primitives/Field/index.d.ts +1 -0
- package/dist/types/primitives/Heading/Heading.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/types.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
- package/dist/types/primitives/Rating/Rating.d.ts +1 -1
- package/dist/types/primitives/SearchField/useSearchField.d.ts +4 -4
- package/dist/types/primitives/Select/Select.d.ts +1 -1
- package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
- package/dist/types/primitives/StepperField/useStepper.d.ts +5 -5
- package/dist/types/primitives/SwitchField/useSwitch.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/useToggleButton.d.ts +2 -2
- package/dist/types/primitives/ToggleButtonGroup/useToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/View/View.d.ts +2 -2
- package/dist/types/primitives/shared/responsive/utils.d.ts +1 -1
- package/dist/types/primitives/shared/types.d.ts +4 -4
- package/dist/types/primitives/types/alert.d.ts +1 -1
- package/dist/types/primitives/types/autocomplete.d.ts +1 -1
- package/dist/types/primitives/types/badge.d.ts +2 -2
- package/dist/types/primitives/types/base.d.ts +1 -1
- package/dist/types/primitives/types/button.d.ts +3 -3
- package/dist/types/primitives/types/card.d.ts +1 -1
- package/dist/types/primitives/types/collection.d.ts +4 -4
- package/dist/types/primitives/types/datastore.d.ts +7 -7
- package/dist/types/primitives/types/divider.d.ts +2 -2
- package/dist/types/primitives/types/expander.d.ts +1 -1
- package/dist/types/primitives/types/field.d.ts +2 -2
- package/dist/types/primitives/types/fieldGroup.d.ts +1 -1
- package/dist/types/primitives/types/grid.d.ts +1 -1
- package/dist/types/primitives/types/heading.d.ts +1 -1
- package/dist/types/primitives/types/icon.d.ts +2 -2
- package/dist/types/primitives/types/input.d.ts +3 -3
- package/dist/types/primitives/types/loader.d.ts +2 -2
- package/dist/types/primitives/types/pagination.d.ts +3 -3
- package/dist/types/primitives/types/passwordField.d.ts +1 -1
- package/dist/types/primitives/types/phoneNumberField.d.ts +1 -1
- package/dist/types/primitives/types/placeholder.d.ts +1 -1
- package/dist/types/primitives/types/rating.d.ts +1 -1
- package/dist/types/primitives/types/responsive.d.ts +3 -3
- package/dist/types/primitives/types/scrollView.d.ts +1 -1
- package/dist/types/primitives/types/select.d.ts +1 -1
- package/dist/types/primitives/types/sliderField.d.ts +2 -2
- package/dist/types/primitives/types/style.d.ts +5 -5
- package/dist/types/primitives/types/table.d.ts +3 -3
- package/dist/types/primitives/types/tabs.d.ts +1 -1
- package/dist/types/primitives/types/text.d.ts +1 -1
- package/dist/types/primitives/types/theme.d.ts +29 -29
- package/dist/types/primitives/types/view.d.ts +8 -8
- package/dist/types/primitives/utils/useStableId.d.ts +1 -1
- package/dist/types/studio/types.d.ts +3 -3
- package/dist/types/types/catalog.d.ts +5 -5
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
- package/dist/constants-4b28bdd3.js +0 -1
package/dist/styles.css
CHANGED
|
@@ -349,6 +349,7 @@
|
|
|
349
349
|
--amplify-components-expander-icon-transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
|
|
350
350
|
--amplify-components-field-gap: var(--amplify-space-xs);
|
|
351
351
|
--amplify-components-field-font-size: var(--amplify-font-sizes-medium);
|
|
352
|
+
--amplify-components-field-flex-direction: column;
|
|
352
353
|
--amplify-components-field-small-gap: var(--amplify-space-xxxs);
|
|
353
354
|
--amplify-components-field-small-font-size: var(--amplify-font-sizes-small);
|
|
354
355
|
--amplify-components-field-large-gap: var(--amplify-space-small);
|
|
@@ -511,6 +512,7 @@
|
|
|
511
512
|
--amplify-components-link-focus-color: var(--amplify-colors-font-focus);
|
|
512
513
|
--amplify-components-link-hover-color: var(--amplify-colors-font-hover);
|
|
513
514
|
--amplify-components-link-visited-color: var(--amplify-colors-font-interactive);
|
|
515
|
+
--amplify-components-liveness-camera-module-background-color: var(--amplify-colors-black);
|
|
514
516
|
--amplify-components-loader-width: var(--amplify-font-sizes-medium);
|
|
515
517
|
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
|
|
516
518
|
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);
|
|
@@ -1744,7 +1746,7 @@ strong.amplify-text {
|
|
|
1744
1746
|
-webkit-user-select: text;
|
|
1745
1747
|
-moz-user-select: text;
|
|
1746
1748
|
user-select: text;
|
|
1747
|
-
display: inline-
|
|
1749
|
+
display: inline-block;
|
|
1748
1750
|
}
|
|
1749
1751
|
.amplify-input:focus {
|
|
1750
1752
|
border-color: var(--amplify-components-fieldcontrol-focus-border-color);
|
|
@@ -2620,6 +2622,7 @@ strong.amplify-text {
|
|
|
2620
2622
|
.amplify-field {
|
|
2621
2623
|
font-size: var(--amplify-components-field-font-size);
|
|
2622
2624
|
gap: var(--amplify-components-field-gap);
|
|
2625
|
+
flex-direction: var(--amplify-components-field-flex-direction);
|
|
2623
2626
|
}
|
|
2624
2627
|
.amplify-field--small {
|
|
2625
2628
|
font-size: var(--amplify-components-field-small-font-size);
|
|
@@ -2768,6 +2771,405 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2768
2771
|
height: 100%;
|
|
2769
2772
|
}
|
|
2770
2773
|
|
|
2774
|
+
.amplify-liveness-cancel-container {
|
|
2775
|
+
z-index: 2;
|
|
2776
|
+
position: absolute;
|
|
2777
|
+
top: var(--amplify-space-medium);
|
|
2778
|
+
right: var(--amplify-space-medium);
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
.amplify-liveness-cancel-button {
|
|
2782
|
+
background-color: var(--amplify-colors-background-primary);
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
.amplify-liveness-fade-out {
|
|
2786
|
+
animation-name: amplify-liveness-animation-fadeout;
|
|
2787
|
+
animation-duration: 1s;
|
|
2788
|
+
animation-fill-mode: forwards;
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
@keyframes amplify-liveness-animation-fadeout {
|
|
2792
|
+
from {
|
|
2793
|
+
opacity: 1;
|
|
2794
|
+
}
|
|
2795
|
+
to {
|
|
2796
|
+
opacity: 0;
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
.amplify-liveness-camera-module {
|
|
2800
|
+
flex-direction: column;
|
|
2801
|
+
align-items: center;
|
|
2802
|
+
justify-content: center;
|
|
2803
|
+
background-color: var(--amplify-components-liveness-camera-module-background-color);
|
|
2804
|
+
border: 1px solid var(--amplify-colors-neutral-40);
|
|
2805
|
+
position: relative;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
.amplify-liveness-camera-module--mobile {
|
|
2809
|
+
position: fixed;
|
|
2810
|
+
top: 0;
|
|
2811
|
+
left: 0;
|
|
2812
|
+
height: 100%;
|
|
2813
|
+
width: 100%;
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
.amplify-liveness-video {
|
|
2817
|
+
position: absolute;
|
|
2818
|
+
top: 0;
|
|
2819
|
+
left: 0;
|
|
2820
|
+
width: 100%;
|
|
2821
|
+
height: 100%;
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
.amplify-liveness-freshness-canvas {
|
|
2825
|
+
height: 100%;
|
|
2826
|
+
width: 100%;
|
|
2827
|
+
position: fixed;
|
|
2828
|
+
top: 0;
|
|
2829
|
+
left: 0;
|
|
2830
|
+
pointer-events: none;
|
|
2831
|
+
z-index: 1;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
.amplify-liveness-loader {
|
|
2835
|
+
position: absolute;
|
|
2836
|
+
left: 50%;
|
|
2837
|
+
top: 50%;
|
|
2838
|
+
transform: translate(-50%, -50%);
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
.amplify-liveness-oval-canvas {
|
|
2842
|
+
flex-direction: column;
|
|
2843
|
+
position: absolute;
|
|
2844
|
+
top: 0;
|
|
2845
|
+
left: 0;
|
|
2846
|
+
width: 100%;
|
|
2847
|
+
height: 100%;
|
|
2848
|
+
align-items: center;
|
|
2849
|
+
justify-content: center;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
.amplify-liveness-oval-canvas--mobile {
|
|
2853
|
+
position: fixed;
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
.amplify-liveness-video-anchor {
|
|
2857
|
+
position: relative;
|
|
2858
|
+
width: 100%;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
.amplify-liveness-recording-icon-container {
|
|
2862
|
+
z-index: 1;
|
|
2863
|
+
position: absolute;
|
|
2864
|
+
top: var(--amplify-space-medium);
|
|
2865
|
+
left: var(--amplify-space-medium);
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
.amplify-liveness-recording-icon {
|
|
2869
|
+
flex-direction: column;
|
|
2870
|
+
align-items: center;
|
|
2871
|
+
background-color: var(--amplify-colors-background-primary);
|
|
2872
|
+
padding: var(--amplify-space-xxs);
|
|
2873
|
+
gap: var(--amplify-space-xxs);
|
|
2874
|
+
border-radius: var(--amplify-radii-small);
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.amplify-liveness-instruction-overlay {
|
|
2878
|
+
z-index: 1;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
.amplify-liveness-countdown-container {
|
|
2882
|
+
background-color: var(--amplify-colors-background-primary);
|
|
2883
|
+
border-radius: 100%;
|
|
2884
|
+
padding: var(--amplify-space-xs);
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
.amplify-liveness-instruction-list {
|
|
2888
|
+
flex-direction: column;
|
|
2889
|
+
}
|
|
2890
|
+
.amplify-liveness-instruction-list li {
|
|
2891
|
+
display: flex;
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
.amplify-liveness-toast {
|
|
2895
|
+
background-color: var(--amplify-colors-background-primary);
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
.amplify-liveness-toast__message {
|
|
2899
|
+
color: var(--amplify-colors-font-primary);
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
.amplify-liveness-toast--large {
|
|
2903
|
+
font-size: var(--amplify-font-sizes-xl);
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
.amplify-liveness-toast--primary {
|
|
2907
|
+
background-color: var(--amplify-colors-brand-primary-80);
|
|
2908
|
+
}
|
|
2909
|
+
.amplify-liveness-toast--primary .amplify-liveness-toast__message {
|
|
2910
|
+
color: var(--amplify-colors-font-inverse);
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
.amplify-liveness-toast--error {
|
|
2914
|
+
background-color: var(--amplify-colors-red-80);
|
|
2915
|
+
}
|
|
2916
|
+
.amplify-liveness-toast--error .amplify-liveness-toast__message {
|
|
2917
|
+
color: var(--amplify-colors-font-inverse);
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
.amplify-liveness-match-indicator {
|
|
2921
|
+
display: block;
|
|
2922
|
+
width: min(70%, 200px);
|
|
2923
|
+
position: relative;
|
|
2924
|
+
--amplify-liveness-match-indicator-transition: transform 0.2s linear;
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
.amplify-liveness-match-indicator__bar {
|
|
2928
|
+
--percentage: 0;
|
|
2929
|
+
display: block;
|
|
2930
|
+
width: 100%;
|
|
2931
|
+
height: var(--amplify-space-medium);
|
|
2932
|
+
border-radius: var(--amplify-radii-medium);
|
|
2933
|
+
background: var(--amplify-colors-white);
|
|
2934
|
+
position: relative;
|
|
2935
|
+
overflow: hidden;
|
|
2936
|
+
/*
|
|
2937
|
+
This translateZ transform fixes in issue in Safari where the bar::after
|
|
2938
|
+
element doesn't appear clipped from overflow: hidden here */
|
|
2939
|
+
transform: translateZ(0);
|
|
2940
|
+
border: 1px solid var(--amplify-colors-border-tertiary);
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
.amplify-liveness-match-indicator__pin {
|
|
2944
|
+
--percentage: 0;
|
|
2945
|
+
display: block;
|
|
2946
|
+
width: 100%;
|
|
2947
|
+
position: absolute;
|
|
2948
|
+
top: 50%;
|
|
2949
|
+
left: 0;
|
|
2950
|
+
transform: translate(var(--percentage), 0);
|
|
2951
|
+
transition: var(--amplify-liveness-match-indicator-transition);
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
.amplify-liveness-match-indicator__bar:after {
|
|
2955
|
+
position: absolute;
|
|
2956
|
+
content: "";
|
|
2957
|
+
width: 100%;
|
|
2958
|
+
height: 100%;
|
|
2959
|
+
background: var(--amplify-colors-brand-primary-40);
|
|
2960
|
+
left: -100%;
|
|
2961
|
+
transform: translate(var(--percentage), 0);
|
|
2962
|
+
transition: var(--amplify-liveness-match-indicator-transition);
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
.amplify-liveness-match-indicator__pin:after {
|
|
2966
|
+
--height: var(--amplify-space-xl);
|
|
2967
|
+
position: absolute;
|
|
2968
|
+
content: "";
|
|
2969
|
+
width: var(--amplify-space-small);
|
|
2970
|
+
height: var(--height);
|
|
2971
|
+
border-radius: var(--amplify-radii-medium);
|
|
2972
|
+
background: var(--amplify-colors-brand-primary-80);
|
|
2973
|
+
left: 0;
|
|
2974
|
+
top: 0;
|
|
2975
|
+
transform: translate(-50%, calc(var(--height) / 2 * -1));
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
.amplify-liveness-figures {
|
|
2979
|
+
flex-wrap: wrap;
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
.amplify-liveness-figure {
|
|
2983
|
+
flex-direction: column;
|
|
2984
|
+
gap: 0;
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
.amplify-liveness-figure__caption {
|
|
2988
|
+
padding: var(--amplify-space-xxs);
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
.amplify-liveness-figure__caption--success {
|
|
2992
|
+
background-color: var(--amplify-colors-background-success);
|
|
2993
|
+
color: var(--amplify-colors-font-success);
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
.amplify-liveness-figure__caption--error {
|
|
2997
|
+
background-color: var(--amplify-colors-background-error);
|
|
2998
|
+
color: var(--amplify-colors-font-error);
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
.amplify-liveness-figure__image {
|
|
3002
|
+
background-color: #fff;
|
|
3003
|
+
border: 1px solid var(--amplify-colors-border-primary);
|
|
3004
|
+
position: relative;
|
|
3005
|
+
display: flex;
|
|
3006
|
+
justify-content: center;
|
|
3007
|
+
}
|
|
3008
|
+
.amplify-liveness-figure__image svg {
|
|
3009
|
+
display: block;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.amplify-liveness-figure__image--success {
|
|
3013
|
+
border-color: var(--amplify-colors-green-90);
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
.amplify-liveness-figure__image--error {
|
|
3017
|
+
border-color: var(--amplify-colors-border-error);
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
.amplify-liveness-figure__icon {
|
|
3021
|
+
position: absolute;
|
|
3022
|
+
left: 0;
|
|
3023
|
+
top: 0;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
.amplify-fileuploader__dropzone {
|
|
3027
|
+
background-color: var(--amplify-components-fileuploader-dropzone-background-color);
|
|
3028
|
+
border-color: var(--amplify-components-fileuploader-dropzone-border-color);
|
|
3029
|
+
border-radius: var(--amplify-components-fileuploader-dropzone-border-radius);
|
|
3030
|
+
border-style: var(--amplify-components-fileuploader-dropzone-border-style);
|
|
3031
|
+
border-width: var(--amplify-components-fileuploader-dropzone-border-width);
|
|
3032
|
+
text-align: var(--amplify-components-fileuploader-dropzone-text-align);
|
|
3033
|
+
padding-block: var(--amplify-components-fileuploader-dropzone-padding-block);
|
|
3034
|
+
padding-inline: var(--amplify-components-fileuploader-dropzone-padding-inline);
|
|
3035
|
+
display: flex;
|
|
3036
|
+
flex-direction: column;
|
|
3037
|
+
align-items: center;
|
|
3038
|
+
gap: var(--amplify-components-fileuploader-dropzone-gap);
|
|
3039
|
+
}
|
|
3040
|
+
.amplify-fileuploader__dropzone--small {
|
|
3041
|
+
flex-direction: row;
|
|
3042
|
+
justify-content: center;
|
|
3043
|
+
}
|
|
3044
|
+
.amplify-fileuploader__dropzone--active {
|
|
3045
|
+
border-color: var(--amplify-components-fileuploader-dropzone-active-border-color);
|
|
3046
|
+
border-width: var(--amplify-components-fileuploader-dropzone-active-border-width);
|
|
3047
|
+
background-color: var(--amplify-components-fileuploader-dropzone-active-background-color);
|
|
3048
|
+
}
|
|
3049
|
+
.amplify-fileuploader__dropzone__icon {
|
|
3050
|
+
font-size: var(--amplify-components-fileuploader-dropzone-icon-font-size);
|
|
3051
|
+
color: var(--amplify-components-fileuploader-dropzone-icon-color);
|
|
3052
|
+
}
|
|
3053
|
+
.amplify-fileuploader__dropzone__text {
|
|
3054
|
+
color: var(--amplify-components-fileuploader-dropzone-text-color);
|
|
3055
|
+
font-size: var(--amplify-components-fileuploader-dropzone-text-font-size);
|
|
3056
|
+
font-weight: var(--amplify-components-fileuploader-dropzone-text-font-weight);
|
|
3057
|
+
}
|
|
3058
|
+
.amplify-fileuploader__file {
|
|
3059
|
+
position: relative;
|
|
3060
|
+
border-width: var(--amplify-components-fileuploader-file-border-width);
|
|
3061
|
+
border-style: var(--amplify-components-fileuploader-file-border-style);
|
|
3062
|
+
border-color: var(--amplify-components-fileuploader-file-border-color);
|
|
3063
|
+
border-radius: var(--amplify-components-fileuploader-file-border-radius);
|
|
3064
|
+
display: flex;
|
|
3065
|
+
flex-direction: column;
|
|
3066
|
+
padding-inline: var(--amplify-components-fileuploader-file-padding-inline);
|
|
3067
|
+
padding-block: var(--amplify-components-fileuploader-file-padding-block);
|
|
3068
|
+
align-items: var(--amplify-components-fileuploader-file-align-items);
|
|
3069
|
+
}
|
|
3070
|
+
.amplify-fileuploader__file__wrapper {
|
|
3071
|
+
width: 100%;
|
|
3072
|
+
display: flex;
|
|
3073
|
+
flex-direction: row;
|
|
3074
|
+
align-items: center;
|
|
3075
|
+
gap: var(--amplify-components-fileuploader-file-gap);
|
|
3076
|
+
}
|
|
3077
|
+
.amplify-fileuploader__file__name {
|
|
3078
|
+
text-overflow: ellipsis;
|
|
3079
|
+
overflow: hidden;
|
|
3080
|
+
font-weight: var(--amplify-components-fileuploader-file-name-font-weight);
|
|
3081
|
+
font-size: var(--amplify-components-fileuploader-file-name-font-size);
|
|
3082
|
+
color: var(--amplify-components-fileuploader-file-name-color);
|
|
3083
|
+
}
|
|
3084
|
+
.amplify-fileuploader__file__size {
|
|
3085
|
+
font-weight: var(--amplify-components-fileuploader-file-size-font-weight);
|
|
3086
|
+
font-size: var(--amplify-components-fileuploader-file-size-font-size);
|
|
3087
|
+
color: var(--amplify-components-fileuploader-file-size-color);
|
|
3088
|
+
}
|
|
3089
|
+
.amplify-fileuploader__file__main {
|
|
3090
|
+
flex: 1;
|
|
3091
|
+
white-space: nowrap;
|
|
3092
|
+
overflow: hidden;
|
|
3093
|
+
}
|
|
3094
|
+
.amplify-fileuploader__file__image {
|
|
3095
|
+
position: relative;
|
|
3096
|
+
display: flex;
|
|
3097
|
+
align-items: center;
|
|
3098
|
+
justify-content: center;
|
|
3099
|
+
width: var(--amplify-components-fileuploader-file-image-width);
|
|
3100
|
+
height: var(--amplify-components-fileuploader-file-image-height);
|
|
3101
|
+
background-color: var(--amplify-components-fileuploader-file-image-background-color);
|
|
3102
|
+
border-radius: var(--amplify-components-fileuploader-file-image-border-radius);
|
|
3103
|
+
color: var(--amplify-components-fileuploader-file-image-color);
|
|
3104
|
+
}
|
|
3105
|
+
.amplify-fileuploader__file__image img {
|
|
3106
|
+
max-height: 100%;
|
|
3107
|
+
}
|
|
3108
|
+
.amplify-fileuploader__file__status--error {
|
|
3109
|
+
color: var(--amplify-colors-font-error);
|
|
3110
|
+
font-size: var(--amplify-components-fileuploader-file-size-font-size);
|
|
3111
|
+
}
|
|
3112
|
+
.amplify-fileuploader__file__status--success {
|
|
3113
|
+
color: var(--amplify-colors-font-success);
|
|
3114
|
+
}
|
|
3115
|
+
.amplify-fileuploader__loader {
|
|
3116
|
+
stroke-linecap: var(--amplify-components-fileuploader-loader-stroke-linecap);
|
|
3117
|
+
stroke: var(--amplify-components-fileuploader-loader-stroke-empty);
|
|
3118
|
+
stroke-width: var(--amplify-components-fileuploader-loader-stroke-width);
|
|
3119
|
+
height: var(--amplify-components-fileuploader-loader-stroke-width);
|
|
3120
|
+
--amplify-components-loader-linear-stroke-filled: var(
|
|
3121
|
+
--amplify-components-fileuploader-loader-stroke-filled
|
|
3122
|
+
);
|
|
3123
|
+
overflow: hidden;
|
|
3124
|
+
position: absolute;
|
|
3125
|
+
bottom: 0;
|
|
3126
|
+
left: 0;
|
|
3127
|
+
width: 100%;
|
|
3128
|
+
}
|
|
3129
|
+
.amplify-fileuploader__previewer {
|
|
3130
|
+
display: block;
|
|
3131
|
+
max-width: var(--amplify-components-fileuploader-previewer-max-width);
|
|
3132
|
+
background-color: var(--amplify-components-fileuploader-previewer-background-color);
|
|
3133
|
+
border-width: var(--amplify-components-fileuploader-previewer-border-width);
|
|
3134
|
+
border-style: var(--amplify-components-fileuploader-previewer-border-style);
|
|
3135
|
+
border-color: var(--amplify-components-fileuploader-previewer-border-color);
|
|
3136
|
+
border-radius: var(--amplify-components-fileuploader-previewer-border-radius);
|
|
3137
|
+
padding-inline: var(--amplify-components-fileuploader-previewer-padding-inline);
|
|
3138
|
+
padding-block: var(--amplify-components-fileuploader-previewer-padding-block);
|
|
3139
|
+
}
|
|
3140
|
+
.amplify-fileuploader__previewer__text {
|
|
3141
|
+
font-weight: var(--amplify-components-fileuploader-previewer-text-font-weight);
|
|
3142
|
+
font-size: var(--amplify-components-fileuploader-previewer-text-font-size);
|
|
3143
|
+
color: var(--amplify-components-fileuploader-previewer-text-color);
|
|
3144
|
+
}
|
|
3145
|
+
.amplify-fileuploader__previewer__body {
|
|
3146
|
+
display: flex;
|
|
3147
|
+
flex-direction: column;
|
|
3148
|
+
max-height: var(--amplify-components-fileuploader-previewer-max-height);
|
|
3149
|
+
max-width: var(--amplify-components-fileuploader-previewer-max-width);
|
|
3150
|
+
overflow: auto;
|
|
3151
|
+
gap: var(--amplify-components-fileuploader-previewer-body-gap);
|
|
3152
|
+
padding-inline: var(--amplify-components-fileuploader-previewer-body-padding-inline);
|
|
3153
|
+
padding-block: var(--amplify-components-fileuploader-previewer-body-padding-block);
|
|
3154
|
+
}
|
|
3155
|
+
.amplify-fileuploader__previewer__footer {
|
|
3156
|
+
max-width: var(--amplify-components-fileuploader-previewer-max-width);
|
|
3157
|
+
border-top-width: var(--amplify-components-fileuploader-previewer-footer-border-width);
|
|
3158
|
+
border-top-style: var(--amplify-components-fileuploader-previewer-footer-border-style);
|
|
3159
|
+
border-top-color: var(--amplify-components-fileuploader-previewer-footer-border-color);
|
|
3160
|
+
padding-inline: var(--amplify-components-fileuploader-previewer-footer-padding-inline);
|
|
3161
|
+
padding-block: var(--amplify-components-fileuploader-previewer-footer-padding-block);
|
|
3162
|
+
position: relative;
|
|
3163
|
+
display: flex;
|
|
3164
|
+
flex-direction: row;
|
|
3165
|
+
justify-content: var(--amplify-components-fileuploader-previewer-footer-justify-content);
|
|
3166
|
+
}
|
|
3167
|
+
.amplify-fileuploader__previewer__footer__actions {
|
|
3168
|
+
display: flex;
|
|
3169
|
+
flex-direction: row;
|
|
3170
|
+
gap: var(--amplify-space-small);
|
|
3171
|
+
}
|
|
3172
|
+
|
|
2771
3173
|
.amplify-menu-content-wrapper {
|
|
2772
3174
|
z-index: 999999;
|
|
2773
3175
|
}
|
|
@@ -3812,7 +4214,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3812
4214
|
}
|
|
3813
4215
|
|
|
3814
4216
|
.amplify-textfield {
|
|
3815
|
-
flex-direction: column;
|
|
3816
4217
|
--amplify-components-fieldcontrol-color: var(
|
|
3817
4218
|
--amplify-components-textfield-color
|
|
3818
4219
|
);
|
|
@@ -9,8 +9,8 @@ export interface WarningViewProps {
|
|
|
9
9
|
/** whether account deletion is in progress */
|
|
10
10
|
isDisabled: boolean;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type WarningViewComponent<Props = {}> = React.ComponentType<Props & WarningViewProps>;
|
|
13
|
+
export type DeleteUserState = 'IDLE' | 'CONFIRMATION' | 'DELETING' | 'DONE' | 'ERROR';
|
|
14
14
|
export interface DeleteUserComponents {
|
|
15
15
|
ErrorMessage?: ErrorMessageComponent;
|
|
16
16
|
DeleteButton?: ButtonComponent;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlertProps, ButtonProps, PasswordFieldProps, PrimitiveProps } from '../../primitives/types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type PasswordFieldPrimitiveProps = PrimitiveProps<PasswordFieldProps, 'input'>;
|
|
4
|
+
type ButtonPrimitiveProps = PrimitiveProps<ButtonProps, 'button'>;
|
|
5
|
+
type AlertPrimitiveProps = PrimitiveProps<AlertProps, 'div'>;
|
|
6
|
+
type CommonPasswordFieldProps = Partial<PasswordFieldPrimitiveProps> & Required<Pick<PasswordFieldPrimitiveProps, 'onBlur' | 'onChange' | 'name'>> & {
|
|
7
7
|
fieldValidationErrors?: string[];
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
9
|
+
type CommonAlertProps = Partial<PrimitiveProps<AlertProps, 'div'>> & Required<Pick<AlertPrimitiveProps, 'children'>>;
|
|
10
|
+
type CommonButtonProps<T extends 'submit' | 'default' = 'default'> = Partial<ButtonPrimitiveProps> & Required<Pick<ButtonPrimitiveProps, T extends 'submit' ? never : 'onClick'>>;
|
|
11
|
+
export type PasswordFieldComponent<Props = {}> = React.ComponentType<Props & CommonPasswordFieldProps>;
|
|
12
|
+
export type ButtonComponent<Props = {}> = React.ComponentType<Props & CommonButtonProps>;
|
|
13
|
+
export type SubmitButtonComponent<Props = {}> = React.ComponentType<Props & CommonButtonProps<'submit'>>;
|
|
14
|
+
export type ErrorMessageComponent<Props = {}> = React.ComponentType<Props & CommonAlertProps>;
|
|
15
|
+
export type FormValues = Record<string, string>;
|
|
16
|
+
export type BlurredFields = string[];
|
|
17
|
+
export type ValidationError = Record<string, string[]>;
|
|
18
18
|
export {};
|
|
@@ -3,8 +3,8 @@ import { AuthenticatorMachineOptions, AmplifyUser } from '@aws-amplify/ui';
|
|
|
3
3
|
import { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
4
4
|
import { ComponentsProviderProps } from './hooks/useCustomComponents';
|
|
5
5
|
import { RouterProps } from './Router';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type SignOut = UseAuthenticator['signOut'];
|
|
7
|
+
export type AuthenticatorProps = Partial<AuthenticatorMachineOptions & ComponentsProviderProps & RouterProps & {
|
|
8
8
|
children: React.ReactNode | ((props: {
|
|
9
9
|
signOut?: SignOut;
|
|
10
10
|
user?: AmplifyUser;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type RouteProps = {
|
|
3
3
|
className: string;
|
|
4
4
|
variation: 'default' | 'modal';
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type RouteContainerProps = {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
} & RouteProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AuthenticatorProps, SignOut } from './Authenticator';
|
|
3
3
|
import { AmplifyUser } from '@aws-amplify/ui';
|
|
4
|
-
export
|
|
4
|
+
export type WithAuthenticatorOptions = Omit<AuthenticatorProps, 'children'>;
|
|
5
5
|
export interface WithAuthenticatorProps {
|
|
6
6
|
signOut?: SignOut;
|
|
7
7
|
user?: AmplifyUser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core';
|
|
2
2
|
import { MessageOverrideStyle } from '../hooks';
|
|
3
|
-
|
|
3
|
+
type BannerMessageAlignment = 'left' | 'center' | 'right';
|
|
4
4
|
export interface BannerMessageProps extends BannerMessageCommonProps<MessageOverrideStyle | undefined> {
|
|
5
5
|
alignment?: BannerMessageAlignment;
|
|
6
6
|
}
|
|
@@ -2,10 +2,10 @@ import { BannerMessageComponent, CarouselMessageComponent, FullScreenMessageComp
|
|
|
2
2
|
import { BannerMessageProps } from '../BannerMessage';
|
|
3
3
|
import { FullScreenMessageProps } from '../FullScreenMessage';
|
|
4
4
|
import { ModalMessageProps } from '../ModalMessage';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
type BannerStyle = BannerMessageProps['style'];
|
|
6
|
+
type CarouselStyle = any;
|
|
7
|
+
type FullScreenStyle = FullScreenMessageProps['style'];
|
|
8
|
+
type ModalStyle = ModalMessageProps['style'];
|
|
9
9
|
export interface MessageDefaultComponents {
|
|
10
10
|
BannerMessage: BannerMessageComponent<BannerStyle>;
|
|
11
11
|
CarouselMessage: CarouselMessageComponent<CarouselStyle>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core';
|
|
2
2
|
import { ButtonProps } from '../../../primitives';
|
|
3
3
|
import { MessageComponentStyles, MessageOverrideStyle, UseMessageProps } from '../hooks';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type MessageLayoutOrientation = 'horizontal' | 'vertical';
|
|
5
|
+
export type MessageLayoutButtonModifier = 'dark' | 'light';
|
|
6
6
|
export interface MessageLayoutProps extends Omit<MessageComponentBaseProps<MessageOverrideStyle>, 'style'>, Omit<UseMessageProps, 'shouldRenderMessage' | 'styles'> {
|
|
7
7
|
/**
|
|
8
8
|
* @description
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { StorageAccessLevel, UploadTask } from '@aws-amplify/storage';
|
|
3
3
|
import { DragActionHandlers } from './hooks/useFileUploader/types';
|
|
4
4
|
import { ButtonProps } from '../../../primitives';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type SetShowPreviewer = (show: boolean) => void;
|
|
6
|
+
export type Files = File[];
|
|
7
7
|
export interface UploadDropZoneProps extends DragActionHandlers {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
inDropZone?: boolean;
|
|
@@ -63,7 +63,7 @@ export interface FileStatus extends Partial<FileStateProps> {
|
|
|
63
63
|
name?: string;
|
|
64
64
|
file?: File;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type FileStatuses = FileStatus[];
|
|
67
67
|
export declare enum FileState {
|
|
68
68
|
PAUSED = "paused",
|
|
69
69
|
SUCCESS = "success",
|
|
@@ -78,10 +78,10 @@ export interface FileStateProps {
|
|
|
78
78
|
errorMessage: string;
|
|
79
79
|
percentage?: number;
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
type UploadButtonComponent<Props = {}> = React.ComponentType<Props & Partial<ButtonProps>>;
|
|
82
|
+
type UploadDropZoneComponent<Props = {}> = React.ComponentType<Props & Partial<UploadDropZoneProps>>;
|
|
83
|
+
type PreviewerComponent<Props = {}> = React.ComponentType<Props & Partial<PreviewerProps>>;
|
|
84
|
+
type TrackerComponent<Props = {}> = React.ComponentType<Props & Partial<TrackerProps>>;
|
|
85
85
|
export interface Components {
|
|
86
86
|
UploadDropZone?: UploadDropZoneComponent;
|
|
87
87
|
UploadButton?: UploadButtonComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Theme, WebTheme } from '@aws-amplify/ui';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ColorMode = 'system' | 'light' | 'dark';
|
|
4
|
+
export type Direction = 'ltr' | 'rtl';
|
|
5
5
|
interface ThemeProviderProps {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
/**
|
|
@@ -5,10 +5,10 @@ import { PersistentModel, PersistentModelConstructor, ModelInit, PersistentModel
|
|
|
5
5
|
* because Datastore Int and Float scalar types are often
|
|
6
6
|
* entered by users in a TextField which returns a string
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type ModelFields<Type> = {
|
|
9
9
|
[Property in keyof Type]: string | number | boolean;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type DataStoreActionFields<Model extends PersistentModel> = ModelInit<Model, PersistentModelMetaData<Model>> | ModelFields<ModelInit<Model, PersistentModelMetaData<Model>>>;
|
|
12
12
|
export interface UseDataStoreActionOptions<Model extends PersistentModel> {
|
|
13
13
|
model: PersistentModelConstructor<Model>;
|
|
14
14
|
/**
|
|
@@ -5,7 +5,7 @@ interface UseTypeCastFieldsProps<Model extends PersistentModel> {
|
|
|
5
5
|
modelName: string;
|
|
6
6
|
schema?: Schema;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
type UseTypeCastFieldsReturn<Model extends PersistentModel> = ModelInit<Model, PersistentModelMetaData<Model>>;
|
|
9
9
|
/**
|
|
10
10
|
* Optimistically casts field string values to types required by
|
|
11
11
|
* datastore based on the schema type
|