@aws-amplify/ui 4.0.1 → 5.0.0
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/esm/helpers/authenticator/constants.js +1 -1
- package/dist/esm/helpers/authenticator/facade.js +1 -1
- package/dist/esm/helpers/authenticator/textUtil.js +1 -0
- package/dist/esm/helpers/authenticator/utils.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/it.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/machines/authenticator/actors/signIn.js +1 -1
- package/dist/esm/machines/authenticator/defaultServices.js +1 -1
- package/dist/esm/machines/authenticator/index.js +1 -1
- package/dist/esm/machines/authenticator/signUp.js +1 -1
- package/dist/esm/theme/tokens/components/autocomplete.js +1 -0
- package/dist/esm/theme/tokens/components/highlightMatch.js +1 -0
- package/dist/esm/theme/tokens/components/inAppMessaging.js +1 -0
- package/dist/esm/theme/tokens/components/index.js +1 -1
- package/dist/esm/types/primitives/componentClassName.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +294 -98
- package/dist/theme.css +37 -1
- package/dist/types/helpers/authenticator/facade.d.ts +1 -1
- package/dist/types/helpers/authenticator/index.d.ts +1 -0
- package/dist/types/helpers/authenticator/textUtil.d.ts +44 -0
- package/dist/types/helpers/authenticator/utils.d.ts +7 -3
- package/dist/types/i18n/dictionaries/authenticator/defaultTexts.d.ts +0 -1
- package/dist/types/i18n/dictionaries/index.d.ts +0 -1
- package/dist/types/i18n/translations.d.ts +0 -1
- package/dist/types/machines/authenticator/defaultServices.d.ts +2 -1
- package/dist/types/theme/tokens/components/autocomplete.d.ts +42 -0
- package/dist/types/theme/tokens/components/highlightMatch.d.ts +9 -0
- package/dist/types/theme/tokens/components/inAppMessaging.d.ts +28 -0
- package/dist/types/theme/tokens/components/index.d.ts +6 -0
- package/dist/types/types/authenticator/stateMachine/authMachine.d.ts +5 -1
- package/dist/types/types/authenticator/stateMachine/event.d.ts +1 -1
- package/dist/types/types/primitives/componentClassName.d.ts +11 -0
- package/package.json +3 -2
package/dist/styles.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Do not edit directly
|
|
6
|
-
* Generated on
|
|
6
|
+
* Generated on Mon, 14 Nov 2022 16:53:03 GMT
|
|
7
7
|
*/
|
|
8
8
|
:root, [data-amplify-theme] {
|
|
9
9
|
--amplify-transforms-slide-x-large: translateX(2em);
|
|
@@ -255,6 +255,15 @@
|
|
|
255
255
|
--amplify-components-loader-linear-width: 100%;
|
|
256
256
|
--amplify-components-loader-animation-duration: 1s;
|
|
257
257
|
--amplify-components-loader-stroke-linecap: round;
|
|
258
|
+
--amplify-components-inappmessaging-dialog-width: 30vw;
|
|
259
|
+
--amplify-components-inappmessaging-dialog-min-width: 400px;
|
|
260
|
+
--amplify-components-inappmessaging-dialog-min-height: 400px;
|
|
261
|
+
--amplify-components-inappmessaging-dialog-height: 50vh;
|
|
262
|
+
--amplify-components-inappmessaging-button-color: black;
|
|
263
|
+
--amplify-components-inappmessaging-button-border-radius: 5px;
|
|
264
|
+
--amplify-components-inappmessaging-button-background-color: #e8e8e8;
|
|
265
|
+
--amplify-components-inappmessaging-banner-width: 400px ;
|
|
266
|
+
--amplify-components-inappmessaging-banner-height: 150px ;
|
|
258
267
|
--amplify-components-image-object-position: initial;
|
|
259
268
|
--amplify-components-image-object-fit: initial;
|
|
260
269
|
--amplify-components-image-height: auto;
|
|
@@ -338,6 +347,18 @@
|
|
|
338
347
|
--amplify-components-button-loading-background-color: transparent;
|
|
339
348
|
--amplify-components-badge-text-align: center;
|
|
340
349
|
--amplify-components-badge-line-height: 1;
|
|
350
|
+
--amplify-components-autocomplete-menu-loading-display: flex;
|
|
351
|
+
--amplify-components-autocomplete-menu-loading-align-items: center;
|
|
352
|
+
--amplify-components-autocomplete-menu-empty-display: flex;
|
|
353
|
+
--amplify-components-autocomplete-menu-option-transition-timing-function: ease;
|
|
354
|
+
--amplify-components-autocomplete-menu-option-transition-property: background-color, color;
|
|
355
|
+
--amplify-components-autocomplete-menu-option-cursor: pointer;
|
|
356
|
+
--amplify-components-autocomplete-menu-option-color: currentcolor;
|
|
357
|
+
--amplify-components-autocomplete-menu-options-max-height: 300px;
|
|
358
|
+
--amplify-components-autocomplete-menu-options-flex-direction: column;
|
|
359
|
+
--amplify-components-autocomplete-menu-options-display: flex;
|
|
360
|
+
--amplify-components-autocomplete-menu-border-style: solid;
|
|
361
|
+
--amplify-components-autocomplete-menu-width: 100%;
|
|
341
362
|
--amplify-components-authenticator-router-border-style: solid;
|
|
342
363
|
--amplify-components-authenticator-container-width-max: 30rem;
|
|
343
364
|
--amplify-components-authenticator-max-width: 60rem;
|
|
@@ -509,6 +530,9 @@
|
|
|
509
530
|
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);
|
|
510
531
|
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
|
|
511
532
|
--amplify-components-loader-width: var(--amplify-font-sizes-medium);
|
|
533
|
+
--amplify-components-inappmessaging-header-font-weight: 800;
|
|
534
|
+
--amplify-components-inappmessaging-header-font-size: var(--amplify-font-sizes-medium);
|
|
535
|
+
--amplify-components-highlightmatch-highlighted-font-weight: 700;
|
|
512
536
|
--amplify-components-heading-line-height: var(--amplify-line-heights-small);
|
|
513
537
|
--amplify-components-heading-6-font-weight: 800;
|
|
514
538
|
--amplify-components-heading-6-font-size: var(--amplify-font-sizes-medium);
|
|
@@ -618,6 +642,14 @@
|
|
|
618
642
|
--amplify-components-badge-padding-vertical: var(--amplify-space-xs);
|
|
619
643
|
--amplify-components-badge-font-size: var(--amplify-font-sizes-small);
|
|
620
644
|
--amplify-components-badge-font-weight: 600;
|
|
645
|
+
--amplify-components-autocomplete-menu-space-shared-padding-inline: var(--amplify-space-small);
|
|
646
|
+
--amplify-components-autocomplete-menu-space-shared-padding-block: var(--amplify-space-xs);
|
|
647
|
+
--amplify-components-autocomplete-menu-loading-gap: var(--amplify-space-xxxs);
|
|
648
|
+
--amplify-components-autocomplete-menu-option-active-color: var(--amplify-colors-white);
|
|
649
|
+
--amplify-components-autocomplete-menu-option-transition-duration: var(--amplify-time-short);
|
|
650
|
+
--amplify-components-autocomplete-menu-border-radius: var(--amplify-radii-small);
|
|
651
|
+
--amplify-components-autocomplete-menu-border-width: var(--amplify-border-widths-small);
|
|
652
|
+
--amplify-components-autocomplete-menu-margin-block-start: var(--amplify-space-xxxs);
|
|
621
653
|
--amplify-components-authenticator-or-container-color: var(--amplify-colors-neutral-80);
|
|
622
654
|
--amplify-components-authenticator-form-padding: var(--amplify-space-xl);
|
|
623
655
|
--amplify-components-authenticator-footer-padding-bottom: var(--amplify-space-medium);
|
|
@@ -806,6 +838,10 @@
|
|
|
806
838
|
--amplify-components-badge-info-color: var(--amplify-colors-font-info);
|
|
807
839
|
--amplify-components-badge-background-color: var(--amplify-colors-background-tertiary);
|
|
808
840
|
--amplify-components-badge-color: var(--amplify-colors-font-primary);
|
|
841
|
+
--amplify-components-autocomplete-menu-option-active-background-color: var(--amplify-colors-brand-primary-80);
|
|
842
|
+
--amplify-components-autocomplete-menu-option-background-color: var(--amplify-colors-background-primary);
|
|
843
|
+
--amplify-components-autocomplete-menu-border-color: var(--amplify-colors-border-primary);
|
|
844
|
+
--amplify-components-autocomplete-menu-background-color: var(--amplify-colors-background-primary);
|
|
809
845
|
--amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
|
|
810
846
|
--amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
|
|
811
847
|
--amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
|
|
@@ -965,7 +1001,7 @@ html,
|
|
|
965
1001
|
|
|
966
1002
|
@supports (font-variation-settings: normal) {
|
|
967
1003
|
html,
|
|
968
|
-
[data-amplify-theme] {
|
|
1004
|
+
[data-amplify-theme] {
|
|
969
1005
|
font-family: var(--amplify-fonts-default-variable);
|
|
970
1006
|
}
|
|
971
1007
|
}
|
|
@@ -1430,6 +1466,10 @@ strong.amplify-text {
|
|
|
1430
1466
|
width: var(--amplify-components-icon-height);
|
|
1431
1467
|
}
|
|
1432
1468
|
|
|
1469
|
+
.amplify-highlightmatch__highlighted {
|
|
1470
|
+
font-weight: var(--amplify-components-highlightmatch-highlighted-font-weight);
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1433
1473
|
.amplify-input {
|
|
1434
1474
|
box-sizing: border-box;
|
|
1435
1475
|
color: var(--amplify-components-fieldcontrol-color);
|
|
@@ -1654,21 +1694,16 @@ strong.amplify-text {
|
|
|
1654
1694
|
}
|
|
1655
1695
|
.amplify-loader circle:last-of-type {
|
|
1656
1696
|
transform-origin: center center;
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
-webkit-animation-iteration-count: infinite;
|
|
1662
|
-
animation-iteration-count: infinite;
|
|
1663
|
-
-webkit-animation-duration: var(--amplify-components-loader-animation-duration);
|
|
1664
|
-
animation-duration: var(--amplify-components-loader-animation-duration);
|
|
1697
|
+
animation-name: amplify-loader-circular;
|
|
1698
|
+
animation-timing-function: linear;
|
|
1699
|
+
animation-iteration-count: infinite;
|
|
1700
|
+
animation-duration: var(--amplify-components-loader-animation-duration);
|
|
1665
1701
|
stroke: var(--amplify-components-loader-stroke-filled);
|
|
1666
1702
|
stroke-linecap: var(--amplify-components-loader-stroke-linecap);
|
|
1667
1703
|
}
|
|
1668
1704
|
@media (prefers-reduced-motion) {
|
|
1669
1705
|
.amplify-loader circle:last-of-type {
|
|
1670
|
-
|
|
1671
|
-
animation: none;
|
|
1706
|
+
animation: none;
|
|
1672
1707
|
stroke-dasharray: 100% 200%;
|
|
1673
1708
|
stroke-dashoffset: 50%;
|
|
1674
1709
|
}
|
|
@@ -1676,19 +1711,14 @@ strong.amplify-text {
|
|
|
1676
1711
|
.amplify-loader line:last-of-type {
|
|
1677
1712
|
stroke: var(--amplify-components-loader-linear-stroke-filled);
|
|
1678
1713
|
stroke-dasharray: 50% 200%;
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
-
|
|
1682
|
-
|
|
1683
|
-
-webkit-animation-timing-function: linear;
|
|
1684
|
-
animation-timing-function: linear;
|
|
1685
|
-
-webkit-animation-iteration-count: infinite;
|
|
1686
|
-
animation-iteration-count: infinite;
|
|
1714
|
+
animation-name: amplify-loader-linear;
|
|
1715
|
+
animation-duration: var(--amplify-components-loader-linear-animation-duration);
|
|
1716
|
+
animation-timing-function: linear;
|
|
1717
|
+
animation-iteration-count: infinite;
|
|
1687
1718
|
}
|
|
1688
1719
|
@media (prefers-reduced-motion) {
|
|
1689
1720
|
.amplify-loader line:last-of-type {
|
|
1690
|
-
|
|
1691
|
-
animation: none;
|
|
1721
|
+
animation: none;
|
|
1692
1722
|
stroke-dashoffset: -50%;
|
|
1693
1723
|
}
|
|
1694
1724
|
}
|
|
@@ -1723,13 +1753,11 @@ strong.amplify-text {
|
|
|
1723
1753
|
font-size: var(--amplify-internal-loader-linear-font-size);
|
|
1724
1754
|
}
|
|
1725
1755
|
.amplify-loader--determinate circle:last-of-type {
|
|
1726
|
-
|
|
1727
|
-
animation: none;
|
|
1756
|
+
animation: none;
|
|
1728
1757
|
transform: rotate(-90deg);
|
|
1729
1758
|
}
|
|
1730
1759
|
.amplify-loader--determinate line:last-of-type {
|
|
1731
|
-
|
|
1732
|
-
animation: none;
|
|
1760
|
+
animation: none;
|
|
1733
1761
|
stroke-dashoffset: 0%;
|
|
1734
1762
|
stroke-dasharray: none;
|
|
1735
1763
|
}
|
|
@@ -1738,20 +1766,6 @@ strong.amplify-text {
|
|
|
1738
1766
|
stroke: none;
|
|
1739
1767
|
}
|
|
1740
1768
|
|
|
1741
|
-
@-webkit-keyframes amplify-loader-circular {
|
|
1742
|
-
0% {
|
|
1743
|
-
stroke-dasharray: 100% 200%;
|
|
1744
|
-
transform: rotate(120deg);
|
|
1745
|
-
}
|
|
1746
|
-
50% {
|
|
1747
|
-
stroke-dasharray: 20% 400%;
|
|
1748
|
-
}
|
|
1749
|
-
100% {
|
|
1750
|
-
stroke-dasharray: 100% 200%;
|
|
1751
|
-
transform: rotate(480deg);
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
1769
|
@keyframes amplify-loader-circular {
|
|
1756
1770
|
0% {
|
|
1757
1771
|
stroke-dasharray: 100% 200%;
|
|
@@ -1765,14 +1779,6 @@ strong.amplify-text {
|
|
|
1765
1779
|
transform: rotate(480deg);
|
|
1766
1780
|
}
|
|
1767
1781
|
}
|
|
1768
|
-
@-webkit-keyframes amplify-loader-linear {
|
|
1769
|
-
0% {
|
|
1770
|
-
stroke-dashoffset: 200%;
|
|
1771
|
-
}
|
|
1772
|
-
100% {
|
|
1773
|
-
stroke-dashoffset: -50%;
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
1782
|
@keyframes amplify-loader-linear {
|
|
1777
1783
|
0% {
|
|
1778
1784
|
stroke-dashoffset: 200%;
|
|
@@ -1782,14 +1788,10 @@ strong.amplify-text {
|
|
|
1782
1788
|
}
|
|
1783
1789
|
}
|
|
1784
1790
|
.amplify-placeholder {
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
-
|
|
1788
|
-
|
|
1789
|
-
-webkit-animation-iteration-count: infinite;
|
|
1790
|
-
animation-iteration-count: infinite;
|
|
1791
|
-
-webkit-animation-name: amplify-placeholder-loading;
|
|
1792
|
-
animation-name: amplify-placeholder-loading;
|
|
1791
|
+
animation-direction: alternate;
|
|
1792
|
+
animation-duration: var(--amplify-components-placeholder-transition-duration);
|
|
1793
|
+
animation-iteration-count: infinite;
|
|
1794
|
+
animation-name: amplify-placeholder-loading;
|
|
1793
1795
|
border-radius: var(--amplify-components-placeholder-border-radius);
|
|
1794
1796
|
height: var(--amplify-components-placeholder-default-height);
|
|
1795
1797
|
width: 100%;
|
|
@@ -1802,15 +1804,6 @@ strong.amplify-text {
|
|
|
1802
1804
|
height: var(--amplify-components-placeholder-large-height);
|
|
1803
1805
|
}
|
|
1804
1806
|
|
|
1805
|
-
@-webkit-keyframes amplify-placeholder-loading {
|
|
1806
|
-
0% {
|
|
1807
|
-
background-color: var(--amplify-components-placeholder-start-color);
|
|
1808
|
-
}
|
|
1809
|
-
100% {
|
|
1810
|
-
background-color: var(--amplify-components-placeholder-end-color);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
1807
|
@keyframes amplify-placeholder-loading {
|
|
1815
1808
|
0% {
|
|
1816
1809
|
background-color: var(--amplify-components-placeholder-start-color);
|
|
@@ -1821,8 +1814,7 @@ strong.amplify-text {
|
|
|
1821
1814
|
}
|
|
1822
1815
|
@media (prefers-reduced-motion: reduce) {
|
|
1823
1816
|
.amplify-placeholder {
|
|
1824
|
-
|
|
1825
|
-
animation: none;
|
|
1817
|
+
animation: none;
|
|
1826
1818
|
background-color: var(--amplify-components-placeholder-end-color);
|
|
1827
1819
|
}
|
|
1828
1820
|
}
|
|
@@ -1897,6 +1889,54 @@ strong.amplify-text {
|
|
|
1897
1889
|
color: inherit;
|
|
1898
1890
|
}
|
|
1899
1891
|
|
|
1892
|
+
.amplify-autocomplete__menu__option, .amplify-autocomplete__menu--loading, .amplify-autocomplete__menu--empty {
|
|
1893
|
+
padding-block: var(--amplify-components-autocomplete-menu-space-shared-padding-block);
|
|
1894
|
+
padding-inline: var(--amplify-components-autocomplete-menu-space-shared-padding-inline);
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
.amplify-autocomplete {
|
|
1898
|
+
position: relative;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
.amplify-autocomplete__menu {
|
|
1902
|
+
position: absolute;
|
|
1903
|
+
z-index: 99;
|
|
1904
|
+
width: var(--amplify-components-autocomplete-menu-width);
|
|
1905
|
+
-webkit-margin-before: var(--amplify-components-autocomplete-menu-margin-block-start);
|
|
1906
|
+
margin-block-start: var(--amplify-components-autocomplete-menu-margin-block-start);
|
|
1907
|
+
background-color: var(--amplify-components-autocomplete-menu-background-color);
|
|
1908
|
+
border-color: var(--amplify-components-autocomplete-menu-border-color);
|
|
1909
|
+
border-width: var(--amplify-components-autocomplete-menu-border-width);
|
|
1910
|
+
border-style: var(--amplify-components-autocomplete-menu-border-style);
|
|
1911
|
+
border-radius: var(--amplify-components-autocomplete-menu-border-radius);
|
|
1912
|
+
}
|
|
1913
|
+
.amplify-autocomplete__menu--empty {
|
|
1914
|
+
display: var(--amplify-components-autocomplete-menu-empty-display);
|
|
1915
|
+
}
|
|
1916
|
+
.amplify-autocomplete__menu--loading {
|
|
1917
|
+
display: var(--amplify-components-autocomplete-menu-loading-display);
|
|
1918
|
+
align-items: var(--amplify-components-autocomplete-menu-loading-align-items);
|
|
1919
|
+
gap: var(--amplify-components-autocomplete-menu-loading-gap);
|
|
1920
|
+
}
|
|
1921
|
+
.amplify-autocomplete__menu__options {
|
|
1922
|
+
position: relative;
|
|
1923
|
+
display: var(--amplify-components-autocomplete-menu-options-display);
|
|
1924
|
+
flex-direction: var(--amplify-components-autocomplete-menu-options-flex-direction);
|
|
1925
|
+
max-height: var(--amplify-components-autocomplete-menu-options-max-height);
|
|
1926
|
+
}
|
|
1927
|
+
.amplify-autocomplete__menu__option {
|
|
1928
|
+
background-color: var(--amplify-components-autocomplete-menu-option-background-color);
|
|
1929
|
+
color: var(--amplify-components-autocomplete-menu-option-color);
|
|
1930
|
+
cursor: var(--amplify-components-autocomplete-menu-option-cursor);
|
|
1931
|
+
transition-duration: var(--amplify-components-autocomplete-menu-option-transition-duration);
|
|
1932
|
+
transition-property: var(--amplify-components-autocomplete-menu-option-transition-property);
|
|
1933
|
+
transition-timing-function: var(--amplify-components-autocomplete-menu-option-transition-timing-function);
|
|
1934
|
+
}
|
|
1935
|
+
.amplify-autocomplete__menu__option--active {
|
|
1936
|
+
background-color: var(--amplify-components-autocomplete-menu-option-active-background-color);
|
|
1937
|
+
color: var(--amplify-components-autocomplete-menu-option-active-color);
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1900
1940
|
/* Center by default */
|
|
1901
1941
|
[data-amplify-authenticator] {
|
|
1902
1942
|
display: grid;
|
|
@@ -2279,20 +2319,14 @@ strong.amplify-text {
|
|
|
2279
2319
|
padding-inline-end: var(--amplify-components-expander-content-padding-inline-end);
|
|
2280
2320
|
}
|
|
2281
2321
|
.amplify-expander__content[data-state=open] {
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
-
|
|
2285
|
-
animation-duration: var(--amplify-components-expander-content-open-animation-duration);
|
|
2286
|
-
-webkit-animation-timing-function: var(--amplify-components-expander-content-open-animation-timing-function);
|
|
2287
|
-
animation-timing-function: var(--amplify-components-expander-content-open-animation-timing-function);
|
|
2322
|
+
animation-name: amplify-expander-slide-down;
|
|
2323
|
+
animation-duration: var(--amplify-components-expander-content-open-animation-duration);
|
|
2324
|
+
animation-timing-function: var(--amplify-components-expander-content-open-animation-timing-function);
|
|
2288
2325
|
}
|
|
2289
2326
|
.amplify-expander__content[data-state=closed] {
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
-
|
|
2293
|
-
animation-duration: var(--amplify-components-expander-content-closed-animation-duration);
|
|
2294
|
-
-webkit-animation-timing-function: var(--amplify-components-expander-content-closed-animation-timing-function);
|
|
2295
|
-
animation-timing-function: var(--amplify-components-expander-content-closed-animation-timing-function);
|
|
2327
|
+
animation-name: amplify-expander-slide-up;
|
|
2328
|
+
animation-duration: var(--amplify-components-expander-content-closed-animation-duration);
|
|
2329
|
+
animation-timing-function: var(--amplify-components-expander-content-closed-animation-timing-function);
|
|
2296
2330
|
}
|
|
2297
2331
|
|
|
2298
2332
|
.amplify-expander__content__text {
|
|
@@ -2313,15 +2347,6 @@ strong.amplify-text {
|
|
|
2313
2347
|
transform: rotate(180deg);
|
|
2314
2348
|
}
|
|
2315
2349
|
|
|
2316
|
-
@-webkit-keyframes amplify-expander-slide-down {
|
|
2317
|
-
from {
|
|
2318
|
-
height: 0;
|
|
2319
|
-
}
|
|
2320
|
-
to {
|
|
2321
|
-
height: auto;
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
|
|
2325
2350
|
@keyframes amplify-expander-slide-down {
|
|
2326
2351
|
from {
|
|
2327
2352
|
height: 0;
|
|
@@ -2330,14 +2355,6 @@ strong.amplify-text {
|
|
|
2330
2355
|
height: auto;
|
|
2331
2356
|
}
|
|
2332
2357
|
}
|
|
2333
|
-
@-webkit-keyframes amplify-expander-slide-up {
|
|
2334
|
-
from {
|
|
2335
|
-
height: auto;
|
|
2336
|
-
}
|
|
2337
|
-
to {
|
|
2338
|
-
height: 0;
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
2358
|
@keyframes amplify-expander-slide-up {
|
|
2342
2359
|
from {
|
|
2343
2360
|
height: auto;
|
|
@@ -2437,7 +2454,6 @@ strong.amplify-text {
|
|
|
2437
2454
|
width: 100%;
|
|
2438
2455
|
}
|
|
2439
2456
|
.amplify-field-group__field-wrapper--vertical {
|
|
2440
|
-
width: -webkit-fit-content;
|
|
2441
2457
|
width: -moz-fit-content;
|
|
2442
2458
|
width: fit-content;
|
|
2443
2459
|
}
|
|
@@ -2498,7 +2514,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2498
2514
|
height: 100%;
|
|
2499
2515
|
}
|
|
2500
2516
|
|
|
2501
|
-
|
|
2517
|
+
.amplify-menu-content-wrapper {
|
|
2502
2518
|
z-index: 999999;
|
|
2503
2519
|
}
|
|
2504
2520
|
|
|
@@ -3868,6 +3884,186 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3868
3884
|
}
|
|
3869
3885
|
}
|
|
3870
3886
|
|
|
3887
|
+
.amplify-inappmessaging-backdrop {
|
|
3888
|
+
background-color: var(--amplify-colors-overlay-50);
|
|
3889
|
+
inset: 0;
|
|
3890
|
+
position: fixed;
|
|
3891
|
+
z-index: 1000;
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
.amplify-inappmessaging-backdrop-content-container {
|
|
3895
|
+
align-items: center;
|
|
3896
|
+
inset: 0;
|
|
3897
|
+
justify-content: center;
|
|
3898
|
+
pointer-events: none;
|
|
3899
|
+
position: fixed;
|
|
3900
|
+
z-index: 1001;
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3903
|
+
.amplify-inappmessaging-backdrop-content {
|
|
3904
|
+
pointer-events: auto;
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3907
|
+
.amplify-inappmessaging-bannermessage {
|
|
3908
|
+
box-shadow: var(--amplify-shadows-medium);
|
|
3909
|
+
height: var(--amplify-components-inappmessaging-banner-height);
|
|
3910
|
+
margin: var(--amplify-space-small);
|
|
3911
|
+
max-width: 50%;
|
|
3912
|
+
position: fixed;
|
|
3913
|
+
width: var(--amplify-components-inappmessaging-banner-width);
|
|
3914
|
+
}
|
|
3915
|
+
.amplify-inappmessaging-bannermessage--top {
|
|
3916
|
+
top: 0;
|
|
3917
|
+
}
|
|
3918
|
+
.amplify-inappmessaging-bannermessage--middle {
|
|
3919
|
+
bottom: 0;
|
|
3920
|
+
margin: auto var(--amplify-space-small);
|
|
3921
|
+
top: 0;
|
|
3922
|
+
}
|
|
3923
|
+
.amplify-inappmessaging-bannermessage--bottom {
|
|
3924
|
+
bottom: 0;
|
|
3925
|
+
}
|
|
3926
|
+
.amplify-inappmessaging-bannermessage--left {
|
|
3927
|
+
left: 0;
|
|
3928
|
+
}
|
|
3929
|
+
.amplify-inappmessaging-bannermessage--center {
|
|
3930
|
+
left: 0;
|
|
3931
|
+
margin: var(--amplify-space-small) auto;
|
|
3932
|
+
right: 0;
|
|
3933
|
+
}
|
|
3934
|
+
.amplify-inappmessaging-bannermessage--right {
|
|
3935
|
+
right: 0;
|
|
3936
|
+
}
|
|
3937
|
+
.amplify-inappmessaging-bannermessage--center-middle {
|
|
3938
|
+
inset: 0;
|
|
3939
|
+
margin: auto;
|
|
3940
|
+
}
|
|
3941
|
+
.amplify-inappmessaging-bannermessage--full-width {
|
|
3942
|
+
max-width: initial;
|
|
3943
|
+
width: calc(100% - 2 * var(--amplify-space-small));
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3946
|
+
.amplify-inappmessaging-fullscreenmessage {
|
|
3947
|
+
height: var(--amplify-components-inappmessaging-dialog-height);
|
|
3948
|
+
min-height: var(--amplify-components-inappmessaging-dialog-min-height);
|
|
3949
|
+
min-width: var(--amplify-components-inappmessaging-dialog-min-width);
|
|
3950
|
+
width: var(--amplify-components-inappmessaging-dialog-width);
|
|
3951
|
+
}
|
|
3952
|
+
.amplify-inappmessaging-fullscreenmessage--fullscreen {
|
|
3953
|
+
height: auto;
|
|
3954
|
+
inset: 0;
|
|
3955
|
+
position: fixed;
|
|
3956
|
+
width: auto;
|
|
3957
|
+
z-index: 1000;
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
.amplify-inappmessaging-messagelayout {
|
|
3961
|
+
background-color: var(--amplify-colors-background-primary);
|
|
3962
|
+
flex-direction: column;
|
|
3963
|
+
flex-grow: 1;
|
|
3964
|
+
gap: var(--amplify-space-xxxs);
|
|
3965
|
+
max-width: 100%;
|
|
3966
|
+
padding: var(--amplify-space-medium);
|
|
3967
|
+
}
|
|
3968
|
+
.amplify-inappmessaging-messagelayout__button {
|
|
3969
|
+
border-width: 0;
|
|
3970
|
+
width: 100%;
|
|
3971
|
+
}
|
|
3972
|
+
.amplify-inappmessaging-messagelayout__button, .amplify-inappmessaging-messagelayout__button:active, .amplify-inappmessaging-messagelayout__button:visited, .amplify-inappmessaging-messagelayout__button:hover, .amplify-inappmessaging-messagelayout__button:focus {
|
|
3973
|
+
background-color: var(--amplify-components-inappmessaging-button-background-color);
|
|
3974
|
+
border-radius: var(--amplify-components-inappmessaging-button-border-radius);
|
|
3975
|
+
color: var(--amplify-components-inappmessaging-button-color);
|
|
3976
|
+
}
|
|
3977
|
+
.amplify-inappmessaging-messagelayout__button--dark:active, .amplify-inappmessaging-messagelayout__button--dark:visited, .amplify-inappmessaging-messagelayout__button--light:active, .amplify-inappmessaging-messagelayout__button--light:visited {
|
|
3978
|
+
filter: brightness(100%);
|
|
3979
|
+
}
|
|
3980
|
+
.amplify-inappmessaging-messagelayout__button--dark:hover, .amplify-inappmessaging-messagelayout__button--dark:focus {
|
|
3981
|
+
filter: brightness(120%);
|
|
3982
|
+
}
|
|
3983
|
+
.amplify-inappmessaging-messagelayout__button--light:hover, .amplify-inappmessaging-messagelayout__button--light:focus {
|
|
3984
|
+
filter: brightness(80%);
|
|
3985
|
+
}
|
|
3986
|
+
.amplify-inappmessaging-messagelayout__close-button {
|
|
3987
|
+
color: var(--amplify-colors-neutral-80);
|
|
3988
|
+
}
|
|
3989
|
+
.amplify-inappmessaging-messagelayout__close-button:active, .amplify-inappmessaging-messagelayout__close-button:visited {
|
|
3990
|
+
color: var(--amplify-colors-neutral-80);
|
|
3991
|
+
}
|
|
3992
|
+
.amplify-inappmessaging-messagelayout__close-button:hover, .amplify-inappmessaging-messagelayout__close-button:focus {
|
|
3993
|
+
color: var(--amplify-colors-neutral-100);
|
|
3994
|
+
}
|
|
3995
|
+
.amplify-inappmessaging-messagelayout__content {
|
|
3996
|
+
flex-grow: 1;
|
|
3997
|
+
overflow: hidden;
|
|
3998
|
+
}
|
|
3999
|
+
.amplify-inappmessaging-messagelayout__content--horizontal {
|
|
4000
|
+
flex-direction: row;
|
|
4001
|
+
}
|
|
4002
|
+
.amplify-inappmessaging-messagelayout__content--vertical {
|
|
4003
|
+
flex-direction: column;
|
|
4004
|
+
justify-content: center;
|
|
4005
|
+
}
|
|
4006
|
+
.amplify-inappmessaging-messagelayout__header {
|
|
4007
|
+
flex-shrink: 0;
|
|
4008
|
+
font-size: var(--amplify-components-inappmessaging-header-font-size);
|
|
4009
|
+
font-weight: var(--amplify-components-inappmessaging-header-font-weight);
|
|
4010
|
+
}
|
|
4011
|
+
.amplify-inappmessaging-messagelayout__image-container {
|
|
4012
|
+
align-items: center;
|
|
4013
|
+
display: flex;
|
|
4014
|
+
justify-content: center;
|
|
4015
|
+
position: relative;
|
|
4016
|
+
}
|
|
4017
|
+
.amplify-inappmessaging-messagelayout__image-container img {
|
|
4018
|
+
max-height: 100%;
|
|
4019
|
+
max-width: 100%;
|
|
4020
|
+
-o-object-fit: contain;
|
|
4021
|
+
object-fit: contain;
|
|
4022
|
+
position: absolute;
|
|
4023
|
+
}
|
|
4024
|
+
.amplify-inappmessaging-messagelayout__image-container--horizontal {
|
|
4025
|
+
max-width: 15%;
|
|
4026
|
+
min-width: 15%;
|
|
4027
|
+
}
|
|
4028
|
+
.amplify-inappmessaging-messagelayout__image-container--vertical {
|
|
4029
|
+
max-height: 40%;
|
|
4030
|
+
min-height: 40%;
|
|
4031
|
+
}
|
|
4032
|
+
.amplify-inappmessaging-messagelayout__text-container {
|
|
4033
|
+
flex-direction: column;
|
|
4034
|
+
overflow-y: auto;
|
|
4035
|
+
gap: var(--amplify-space-xxxs);
|
|
4036
|
+
}
|
|
4037
|
+
.amplify-inappmessaging-messagelayout__text-container--horizontal {
|
|
4038
|
+
flex-grow: 1;
|
|
4039
|
+
}
|
|
4040
|
+
.amplify-inappmessaging-messagelayout__text-container--vertical {
|
|
4041
|
+
flex-grow: 0;
|
|
4042
|
+
}
|
|
4043
|
+
|
|
4044
|
+
.amplify-inappmessaging-modalmessage {
|
|
4045
|
+
align-items: center;
|
|
4046
|
+
height: initial;
|
|
4047
|
+
inset: 0;
|
|
4048
|
+
justify-content: center;
|
|
4049
|
+
pointer-events: none;
|
|
4050
|
+
position: fixed;
|
|
4051
|
+
width: initial;
|
|
4052
|
+
z-index: 1000;
|
|
4053
|
+
}
|
|
4054
|
+
.amplify-inappmessaging-modalmessage__dialog {
|
|
4055
|
+
box-shadow: var(--amplify-shadows-medium);
|
|
4056
|
+
height: var(--amplify-components-inappmessaging-dialog-height);
|
|
4057
|
+
min-height: var(--amplify-components-inappmessaging-dialog-min-height);
|
|
4058
|
+
min-width: var(--amplify-components-inappmessaging-dialog-min-width);
|
|
4059
|
+
pointer-events: auto;
|
|
4060
|
+
width: var(--amplify-components-inappmessaging-dialog-width);
|
|
4061
|
+
}
|
|
4062
|
+
.amplify-inappmessaging-modalmessage__dialog--full-width {
|
|
4063
|
+
width: 100%;
|
|
4064
|
+
margin: var(--amplify-space-small);
|
|
4065
|
+
}
|
|
4066
|
+
|
|
3871
4067
|
[data-label-position=start] {
|
|
3872
4068
|
flex-direction: row;
|
|
3873
4069
|
}
|
package/dist/theme.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 14 Nov 2022 16:53:03 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root, [data-amplify-theme] {
|
|
@@ -253,6 +253,15 @@
|
|
|
253
253
|
--amplify-components-loader-linear-width: 100%;
|
|
254
254
|
--amplify-components-loader-animation-duration: 1s;
|
|
255
255
|
--amplify-components-loader-stroke-linecap: round;
|
|
256
|
+
--amplify-components-inappmessaging-dialog-width: 30vw;
|
|
257
|
+
--amplify-components-inappmessaging-dialog-min-width: 400px;
|
|
258
|
+
--amplify-components-inappmessaging-dialog-min-height: 400px;
|
|
259
|
+
--amplify-components-inappmessaging-dialog-height: 50vh;
|
|
260
|
+
--amplify-components-inappmessaging-button-color: black;
|
|
261
|
+
--amplify-components-inappmessaging-button-border-radius: 5px;
|
|
262
|
+
--amplify-components-inappmessaging-button-background-color: #e8e8e8;
|
|
263
|
+
--amplify-components-inappmessaging-banner-width: 400px ;
|
|
264
|
+
--amplify-components-inappmessaging-banner-height: 150px ;
|
|
256
265
|
--amplify-components-image-object-position: initial;
|
|
257
266
|
--amplify-components-image-object-fit: initial;
|
|
258
267
|
--amplify-components-image-height: auto;
|
|
@@ -336,6 +345,18 @@
|
|
|
336
345
|
--amplify-components-button-loading-background-color: transparent;
|
|
337
346
|
--amplify-components-badge-text-align: center;
|
|
338
347
|
--amplify-components-badge-line-height: 1;
|
|
348
|
+
--amplify-components-autocomplete-menu-loading-display: flex;
|
|
349
|
+
--amplify-components-autocomplete-menu-loading-align-items: center;
|
|
350
|
+
--amplify-components-autocomplete-menu-empty-display: flex;
|
|
351
|
+
--amplify-components-autocomplete-menu-option-transition-timing-function: ease;
|
|
352
|
+
--amplify-components-autocomplete-menu-option-transition-property: background-color, color;
|
|
353
|
+
--amplify-components-autocomplete-menu-option-cursor: pointer;
|
|
354
|
+
--amplify-components-autocomplete-menu-option-color: currentcolor;
|
|
355
|
+
--amplify-components-autocomplete-menu-options-max-height: 300px;
|
|
356
|
+
--amplify-components-autocomplete-menu-options-flex-direction: column;
|
|
357
|
+
--amplify-components-autocomplete-menu-options-display: flex;
|
|
358
|
+
--amplify-components-autocomplete-menu-border-style: solid;
|
|
359
|
+
--amplify-components-autocomplete-menu-width: 100%;
|
|
339
360
|
--amplify-components-authenticator-router-border-style: solid;
|
|
340
361
|
--amplify-components-authenticator-container-width-max: 30rem;
|
|
341
362
|
--amplify-components-authenticator-max-width: 60rem;
|
|
@@ -507,6 +528,9 @@
|
|
|
507
528
|
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);
|
|
508
529
|
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
|
|
509
530
|
--amplify-components-loader-width: var(--amplify-font-sizes-medium);
|
|
531
|
+
--amplify-components-inappmessaging-header-font-weight: 800;
|
|
532
|
+
--amplify-components-inappmessaging-header-font-size: var(--amplify-font-sizes-medium);
|
|
533
|
+
--amplify-components-highlightmatch-highlighted-font-weight: 700;
|
|
510
534
|
--amplify-components-heading-line-height: var(--amplify-line-heights-small);
|
|
511
535
|
--amplify-components-heading-6-font-weight: 800;
|
|
512
536
|
--amplify-components-heading-6-font-size: var(--amplify-font-sizes-medium);
|
|
@@ -616,6 +640,14 @@
|
|
|
616
640
|
--amplify-components-badge-padding-vertical: var(--amplify-space-xs);
|
|
617
641
|
--amplify-components-badge-font-size: var(--amplify-font-sizes-small);
|
|
618
642
|
--amplify-components-badge-font-weight: 600;
|
|
643
|
+
--amplify-components-autocomplete-menu-space-shared-padding-inline: var(--amplify-space-small);
|
|
644
|
+
--amplify-components-autocomplete-menu-space-shared-padding-block: var(--amplify-space-xs);
|
|
645
|
+
--amplify-components-autocomplete-menu-loading-gap: var(--amplify-space-xxxs);
|
|
646
|
+
--amplify-components-autocomplete-menu-option-active-color: var(--amplify-colors-white);
|
|
647
|
+
--amplify-components-autocomplete-menu-option-transition-duration: var(--amplify-time-short);
|
|
648
|
+
--amplify-components-autocomplete-menu-border-radius: var(--amplify-radii-small);
|
|
649
|
+
--amplify-components-autocomplete-menu-border-width: var(--amplify-border-widths-small);
|
|
650
|
+
--amplify-components-autocomplete-menu-margin-block-start: var(--amplify-space-xxxs);
|
|
619
651
|
--amplify-components-authenticator-or-container-color: var(--amplify-colors-neutral-80);
|
|
620
652
|
--amplify-components-authenticator-form-padding: var(--amplify-space-xl);
|
|
621
653
|
--amplify-components-authenticator-footer-padding-bottom: var(--amplify-space-medium);
|
|
@@ -804,6 +836,10 @@
|
|
|
804
836
|
--amplify-components-badge-info-color: var(--amplify-colors-font-info);
|
|
805
837
|
--amplify-components-badge-background-color: var(--amplify-colors-background-tertiary);
|
|
806
838
|
--amplify-components-badge-color: var(--amplify-colors-font-primary);
|
|
839
|
+
--amplify-components-autocomplete-menu-option-active-background-color: var(--amplify-colors-brand-primary-80);
|
|
840
|
+
--amplify-components-autocomplete-menu-option-background-color: var(--amplify-colors-background-primary);
|
|
841
|
+
--amplify-components-autocomplete-menu-border-color: var(--amplify-colors-border-primary);
|
|
842
|
+
--amplify-components-autocomplete-menu-background-color: var(--amplify-colors-background-primary);
|
|
807
843
|
--amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
|
|
808
844
|
--amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
|
|
809
845
|
--amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Sender } from 'xstate';
|
|
7
7
|
import { AuthEvent, AuthEventData, AuthMachineState, CodeDeliveryDetails, AmplifyUser, ValidationError, SocialProvider, UnverifiedContactMethods } from '../../types';
|
|
8
|
-
export declare type AuthenticatorRoute = 'authenticated' | '
|
|
8
|
+
export declare type AuthenticatorRoute = 'authenticated' | 'confirmResetPassword' | 'confirmSignIn' | 'confirmSignUp' | 'confirmVerifyUser' | 'forceNewPassword' | 'idle' | 'resetPassword' | 'setup' | 'signOut' | 'setupTOTP' | 'signIn' | 'signUp' | 'transition' | 'verifyUser';
|
|
9
9
|
declare type AuthenticatorValidationErrors = ValidationError;
|
|
10
10
|
declare type AuthStatus = 'configuring' | 'authenticated' | 'unauthenticated';
|
|
11
11
|
interface AuthenticatorServiceContextFacade {
|