@aws-amplify/ui 4.0.1 → 4.1.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/esm/helpers/authenticator/utils.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/it.js +1 -1
- package/dist/esm/index.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/index.js +1 -1
- package/dist/esm/types/primitives/componentClassName.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +102 -96
- package/dist/theme.css +26 -1
- package/dist/types/helpers/authenticator/utils.d.ts +6 -0
- 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/index.d.ts +4 -0
- package/dist/types/types/primitives/componentClassName.d.ts +10 -0
- package/package.json +1 -1
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 Fri, 06 Jan 2023 04:15:01 GMT
|
|
7
7
|
*/
|
|
8
8
|
:root, [data-amplify-theme] {
|
|
9
9
|
--amplify-transforms-slide-x-large: translateX(2em);
|
|
@@ -338,6 +338,18 @@
|
|
|
338
338
|
--amplify-components-button-loading-background-color: transparent;
|
|
339
339
|
--amplify-components-badge-text-align: center;
|
|
340
340
|
--amplify-components-badge-line-height: 1;
|
|
341
|
+
--amplify-components-autocomplete-menu-loading-display: flex;
|
|
342
|
+
--amplify-components-autocomplete-menu-loading-align-items: center;
|
|
343
|
+
--amplify-components-autocomplete-menu-empty-display: flex;
|
|
344
|
+
--amplify-components-autocomplete-menu-option-transition-timing-function: ease;
|
|
345
|
+
--amplify-components-autocomplete-menu-option-transition-property: background-color, color;
|
|
346
|
+
--amplify-components-autocomplete-menu-option-cursor: pointer;
|
|
347
|
+
--amplify-components-autocomplete-menu-option-color: currentcolor;
|
|
348
|
+
--amplify-components-autocomplete-menu-options-max-height: 300px;
|
|
349
|
+
--amplify-components-autocomplete-menu-options-flex-direction: column;
|
|
350
|
+
--amplify-components-autocomplete-menu-options-display: flex;
|
|
351
|
+
--amplify-components-autocomplete-menu-border-style: solid;
|
|
352
|
+
--amplify-components-autocomplete-menu-width: 100%;
|
|
341
353
|
--amplify-components-authenticator-router-border-style: solid;
|
|
342
354
|
--amplify-components-authenticator-container-width-max: 30rem;
|
|
343
355
|
--amplify-components-authenticator-max-width: 60rem;
|
|
@@ -509,6 +521,7 @@
|
|
|
509
521
|
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);
|
|
510
522
|
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
|
|
511
523
|
--amplify-components-loader-width: var(--amplify-font-sizes-medium);
|
|
524
|
+
--amplify-components-highlightmatch-highlighted-font-weight: 700;
|
|
512
525
|
--amplify-components-heading-line-height: var(--amplify-line-heights-small);
|
|
513
526
|
--amplify-components-heading-6-font-weight: 800;
|
|
514
527
|
--amplify-components-heading-6-font-size: var(--amplify-font-sizes-medium);
|
|
@@ -618,6 +631,14 @@
|
|
|
618
631
|
--amplify-components-badge-padding-vertical: var(--amplify-space-xs);
|
|
619
632
|
--amplify-components-badge-font-size: var(--amplify-font-sizes-small);
|
|
620
633
|
--amplify-components-badge-font-weight: 600;
|
|
634
|
+
--amplify-components-autocomplete-menu-space-shared-padding-inline: var(--amplify-space-small);
|
|
635
|
+
--amplify-components-autocomplete-menu-space-shared-padding-block: var(--amplify-space-xs);
|
|
636
|
+
--amplify-components-autocomplete-menu-loading-gap: var(--amplify-space-xxxs);
|
|
637
|
+
--amplify-components-autocomplete-menu-option-active-color: var(--amplify-colors-white);
|
|
638
|
+
--amplify-components-autocomplete-menu-option-transition-duration: var(--amplify-time-short);
|
|
639
|
+
--amplify-components-autocomplete-menu-border-radius: var(--amplify-radii-small);
|
|
640
|
+
--amplify-components-autocomplete-menu-border-width: var(--amplify-border-widths-small);
|
|
641
|
+
--amplify-components-autocomplete-menu-margin-block-start: var(--amplify-space-xxxs);
|
|
621
642
|
--amplify-components-authenticator-or-container-color: var(--amplify-colors-neutral-80);
|
|
622
643
|
--amplify-components-authenticator-form-padding: var(--amplify-space-xl);
|
|
623
644
|
--amplify-components-authenticator-footer-padding-bottom: var(--amplify-space-medium);
|
|
@@ -806,6 +827,10 @@
|
|
|
806
827
|
--amplify-components-badge-info-color: var(--amplify-colors-font-info);
|
|
807
828
|
--amplify-components-badge-background-color: var(--amplify-colors-background-tertiary);
|
|
808
829
|
--amplify-components-badge-color: var(--amplify-colors-font-primary);
|
|
830
|
+
--amplify-components-autocomplete-menu-option-active-background-color: var(--amplify-colors-brand-primary-80);
|
|
831
|
+
--amplify-components-autocomplete-menu-option-background-color: var(--amplify-colors-background-primary);
|
|
832
|
+
--amplify-components-autocomplete-menu-border-color: var(--amplify-colors-border-primary);
|
|
833
|
+
--amplify-components-autocomplete-menu-background-color: var(--amplify-colors-background-primary);
|
|
809
834
|
--amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
|
|
810
835
|
--amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
|
|
811
836
|
--amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
|
|
@@ -1430,6 +1455,10 @@ strong.amplify-text {
|
|
|
1430
1455
|
width: var(--amplify-components-icon-height);
|
|
1431
1456
|
}
|
|
1432
1457
|
|
|
1458
|
+
.amplify-highlightmatch__highlighted {
|
|
1459
|
+
font-weight: var(--amplify-components-highlightmatch-highlighted-font-weight);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1433
1462
|
.amplify-input {
|
|
1434
1463
|
box-sizing: border-box;
|
|
1435
1464
|
color: var(--amplify-components-fieldcontrol-color);
|
|
@@ -1610,6 +1639,7 @@ strong.amplify-text {
|
|
|
1610
1639
|
object-fit: var(--amplify-components-image-object-fit);
|
|
1611
1640
|
-o-object-position: var(--amplify-components-image-object-position);
|
|
1612
1641
|
object-position: var(--amplify-components-image-object-position);
|
|
1642
|
+
overflow: clip;
|
|
1613
1643
|
}
|
|
1614
1644
|
|
|
1615
1645
|
.amplify-link {
|
|
@@ -1654,21 +1684,16 @@ strong.amplify-text {
|
|
|
1654
1684
|
}
|
|
1655
1685
|
.amplify-loader circle:last-of-type {
|
|
1656
1686
|
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);
|
|
1687
|
+
animation-name: amplify-loader-circular;
|
|
1688
|
+
animation-timing-function: linear;
|
|
1689
|
+
animation-iteration-count: infinite;
|
|
1690
|
+
animation-duration: var(--amplify-components-loader-animation-duration);
|
|
1665
1691
|
stroke: var(--amplify-components-loader-stroke-filled);
|
|
1666
1692
|
stroke-linecap: var(--amplify-components-loader-stroke-linecap);
|
|
1667
1693
|
}
|
|
1668
1694
|
@media (prefers-reduced-motion) {
|
|
1669
1695
|
.amplify-loader circle:last-of-type {
|
|
1670
|
-
|
|
1671
|
-
animation: none;
|
|
1696
|
+
animation: none;
|
|
1672
1697
|
stroke-dasharray: 100% 200%;
|
|
1673
1698
|
stroke-dashoffset: 50%;
|
|
1674
1699
|
}
|
|
@@ -1676,19 +1701,14 @@ strong.amplify-text {
|
|
|
1676
1701
|
.amplify-loader line:last-of-type {
|
|
1677
1702
|
stroke: var(--amplify-components-loader-linear-stroke-filled);
|
|
1678
1703
|
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;
|
|
1704
|
+
animation-name: amplify-loader-linear;
|
|
1705
|
+
animation-duration: var(--amplify-components-loader-linear-animation-duration);
|
|
1706
|
+
animation-timing-function: linear;
|
|
1707
|
+
animation-iteration-count: infinite;
|
|
1687
1708
|
}
|
|
1688
1709
|
@media (prefers-reduced-motion) {
|
|
1689
1710
|
.amplify-loader line:last-of-type {
|
|
1690
|
-
|
|
1691
|
-
animation: none;
|
|
1711
|
+
animation: none;
|
|
1692
1712
|
stroke-dashoffset: -50%;
|
|
1693
1713
|
}
|
|
1694
1714
|
}
|
|
@@ -1723,13 +1743,11 @@ strong.amplify-text {
|
|
|
1723
1743
|
font-size: var(--amplify-internal-loader-linear-font-size);
|
|
1724
1744
|
}
|
|
1725
1745
|
.amplify-loader--determinate circle:last-of-type {
|
|
1726
|
-
|
|
1727
|
-
animation: none;
|
|
1746
|
+
animation: none;
|
|
1728
1747
|
transform: rotate(-90deg);
|
|
1729
1748
|
}
|
|
1730
1749
|
.amplify-loader--determinate line:last-of-type {
|
|
1731
|
-
|
|
1732
|
-
animation: none;
|
|
1750
|
+
animation: none;
|
|
1733
1751
|
stroke-dashoffset: 0%;
|
|
1734
1752
|
stroke-dasharray: none;
|
|
1735
1753
|
}
|
|
@@ -1738,20 +1756,6 @@ strong.amplify-text {
|
|
|
1738
1756
|
stroke: none;
|
|
1739
1757
|
}
|
|
1740
1758
|
|
|
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
1759
|
@keyframes amplify-loader-circular {
|
|
1756
1760
|
0% {
|
|
1757
1761
|
stroke-dasharray: 100% 200%;
|
|
@@ -1765,14 +1769,6 @@ strong.amplify-text {
|
|
|
1765
1769
|
transform: rotate(480deg);
|
|
1766
1770
|
}
|
|
1767
1771
|
}
|
|
1768
|
-
@-webkit-keyframes amplify-loader-linear {
|
|
1769
|
-
0% {
|
|
1770
|
-
stroke-dashoffset: 200%;
|
|
1771
|
-
}
|
|
1772
|
-
100% {
|
|
1773
|
-
stroke-dashoffset: -50%;
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
1772
|
@keyframes amplify-loader-linear {
|
|
1777
1773
|
0% {
|
|
1778
1774
|
stroke-dashoffset: 200%;
|
|
@@ -1782,14 +1778,10 @@ strong.amplify-text {
|
|
|
1782
1778
|
}
|
|
1783
1779
|
}
|
|
1784
1780
|
.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;
|
|
1781
|
+
animation-direction: alternate;
|
|
1782
|
+
animation-duration: var(--amplify-components-placeholder-transition-duration);
|
|
1783
|
+
animation-iteration-count: infinite;
|
|
1784
|
+
animation-name: amplify-placeholder-loading;
|
|
1793
1785
|
border-radius: var(--amplify-components-placeholder-border-radius);
|
|
1794
1786
|
height: var(--amplify-components-placeholder-default-height);
|
|
1795
1787
|
width: 100%;
|
|
@@ -1802,15 +1794,6 @@ strong.amplify-text {
|
|
|
1802
1794
|
height: var(--amplify-components-placeholder-large-height);
|
|
1803
1795
|
}
|
|
1804
1796
|
|
|
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
1797
|
@keyframes amplify-placeholder-loading {
|
|
1815
1798
|
0% {
|
|
1816
1799
|
background-color: var(--amplify-components-placeholder-start-color);
|
|
@@ -1821,8 +1804,7 @@ strong.amplify-text {
|
|
|
1821
1804
|
}
|
|
1822
1805
|
@media (prefers-reduced-motion: reduce) {
|
|
1823
1806
|
.amplify-placeholder {
|
|
1824
|
-
|
|
1825
|
-
animation: none;
|
|
1807
|
+
animation: none;
|
|
1826
1808
|
background-color: var(--amplify-components-placeholder-end-color);
|
|
1827
1809
|
}
|
|
1828
1810
|
}
|
|
@@ -1897,6 +1879,54 @@ strong.amplify-text {
|
|
|
1897
1879
|
color: inherit;
|
|
1898
1880
|
}
|
|
1899
1881
|
|
|
1882
|
+
.amplify-autocomplete__menu__option, .amplify-autocomplete__menu--loading, .amplify-autocomplete__menu--empty {
|
|
1883
|
+
padding-block: var(--amplify-components-autocomplete-menu-space-shared-padding-block);
|
|
1884
|
+
padding-inline: var(--amplify-components-autocomplete-menu-space-shared-padding-inline);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
.amplify-autocomplete {
|
|
1888
|
+
position: relative;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.amplify-autocomplete__menu {
|
|
1892
|
+
position: absolute;
|
|
1893
|
+
z-index: 99;
|
|
1894
|
+
width: var(--amplify-components-autocomplete-menu-width);
|
|
1895
|
+
-webkit-margin-before: var(--amplify-components-autocomplete-menu-margin-block-start);
|
|
1896
|
+
margin-block-start: var(--amplify-components-autocomplete-menu-margin-block-start);
|
|
1897
|
+
background-color: var(--amplify-components-autocomplete-menu-background-color);
|
|
1898
|
+
border-color: var(--amplify-components-autocomplete-menu-border-color);
|
|
1899
|
+
border-width: var(--amplify-components-autocomplete-menu-border-width);
|
|
1900
|
+
border-style: var(--amplify-components-autocomplete-menu-border-style);
|
|
1901
|
+
border-radius: var(--amplify-components-autocomplete-menu-border-radius);
|
|
1902
|
+
}
|
|
1903
|
+
.amplify-autocomplete__menu--empty {
|
|
1904
|
+
display: var(--amplify-components-autocomplete-menu-empty-display);
|
|
1905
|
+
}
|
|
1906
|
+
.amplify-autocomplete__menu--loading {
|
|
1907
|
+
display: var(--amplify-components-autocomplete-menu-loading-display);
|
|
1908
|
+
align-items: var(--amplify-components-autocomplete-menu-loading-align-items);
|
|
1909
|
+
gap: var(--amplify-components-autocomplete-menu-loading-gap);
|
|
1910
|
+
}
|
|
1911
|
+
.amplify-autocomplete__menu__options {
|
|
1912
|
+
position: relative;
|
|
1913
|
+
display: var(--amplify-components-autocomplete-menu-options-display);
|
|
1914
|
+
flex-direction: var(--amplify-components-autocomplete-menu-options-flex-direction);
|
|
1915
|
+
max-height: var(--amplify-components-autocomplete-menu-options-max-height);
|
|
1916
|
+
}
|
|
1917
|
+
.amplify-autocomplete__menu__option {
|
|
1918
|
+
background-color: var(--amplify-components-autocomplete-menu-option-background-color);
|
|
1919
|
+
color: var(--amplify-components-autocomplete-menu-option-color);
|
|
1920
|
+
cursor: var(--amplify-components-autocomplete-menu-option-cursor);
|
|
1921
|
+
transition-duration: var(--amplify-components-autocomplete-menu-option-transition-duration);
|
|
1922
|
+
transition-property: var(--amplify-components-autocomplete-menu-option-transition-property);
|
|
1923
|
+
transition-timing-function: var(--amplify-components-autocomplete-menu-option-transition-timing-function);
|
|
1924
|
+
}
|
|
1925
|
+
.amplify-autocomplete__menu__option--active {
|
|
1926
|
+
background-color: var(--amplify-components-autocomplete-menu-option-active-background-color);
|
|
1927
|
+
color: var(--amplify-components-autocomplete-menu-option-active-color);
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1900
1930
|
/* Center by default */
|
|
1901
1931
|
[data-amplify-authenticator] {
|
|
1902
1932
|
display: grid;
|
|
@@ -2279,20 +2309,14 @@ strong.amplify-text {
|
|
|
2279
2309
|
padding-inline-end: var(--amplify-components-expander-content-padding-inline-end);
|
|
2280
2310
|
}
|
|
2281
2311
|
.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);
|
|
2312
|
+
animation-name: amplify-expander-slide-down;
|
|
2313
|
+
animation-duration: var(--amplify-components-expander-content-open-animation-duration);
|
|
2314
|
+
animation-timing-function: var(--amplify-components-expander-content-open-animation-timing-function);
|
|
2288
2315
|
}
|
|
2289
2316
|
.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);
|
|
2317
|
+
animation-name: amplify-expander-slide-up;
|
|
2318
|
+
animation-duration: var(--amplify-components-expander-content-closed-animation-duration);
|
|
2319
|
+
animation-timing-function: var(--amplify-components-expander-content-closed-animation-timing-function);
|
|
2296
2320
|
}
|
|
2297
2321
|
|
|
2298
2322
|
.amplify-expander__content__text {
|
|
@@ -2313,15 +2337,6 @@ strong.amplify-text {
|
|
|
2313
2337
|
transform: rotate(180deg);
|
|
2314
2338
|
}
|
|
2315
2339
|
|
|
2316
|
-
@-webkit-keyframes amplify-expander-slide-down {
|
|
2317
|
-
from {
|
|
2318
|
-
height: 0;
|
|
2319
|
-
}
|
|
2320
|
-
to {
|
|
2321
|
-
height: auto;
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
|
|
2325
2340
|
@keyframes amplify-expander-slide-down {
|
|
2326
2341
|
from {
|
|
2327
2342
|
height: 0;
|
|
@@ -2330,14 +2345,6 @@ strong.amplify-text {
|
|
|
2330
2345
|
height: auto;
|
|
2331
2346
|
}
|
|
2332
2347
|
}
|
|
2333
|
-
@-webkit-keyframes amplify-expander-slide-up {
|
|
2334
|
-
from {
|
|
2335
|
-
height: auto;
|
|
2336
|
-
}
|
|
2337
|
-
to {
|
|
2338
|
-
height: 0;
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
2348
|
@keyframes amplify-expander-slide-up {
|
|
2342
2349
|
from {
|
|
2343
2350
|
height: auto;
|
|
@@ -2437,7 +2444,6 @@ strong.amplify-text {
|
|
|
2437
2444
|
width: 100%;
|
|
2438
2445
|
}
|
|
2439
2446
|
.amplify-field-group__field-wrapper--vertical {
|
|
2440
|
-
width: -webkit-fit-content;
|
|
2441
2447
|
width: -moz-fit-content;
|
|
2442
2448
|
width: fit-content;
|
|
2443
2449
|
}
|
package/dist/theme.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 06 Jan 2023 04:15:01 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root, [data-amplify-theme] {
|
|
@@ -336,6 +336,18 @@
|
|
|
336
336
|
--amplify-components-button-loading-background-color: transparent;
|
|
337
337
|
--amplify-components-badge-text-align: center;
|
|
338
338
|
--amplify-components-badge-line-height: 1;
|
|
339
|
+
--amplify-components-autocomplete-menu-loading-display: flex;
|
|
340
|
+
--amplify-components-autocomplete-menu-loading-align-items: center;
|
|
341
|
+
--amplify-components-autocomplete-menu-empty-display: flex;
|
|
342
|
+
--amplify-components-autocomplete-menu-option-transition-timing-function: ease;
|
|
343
|
+
--amplify-components-autocomplete-menu-option-transition-property: background-color, color;
|
|
344
|
+
--amplify-components-autocomplete-menu-option-cursor: pointer;
|
|
345
|
+
--amplify-components-autocomplete-menu-option-color: currentcolor;
|
|
346
|
+
--amplify-components-autocomplete-menu-options-max-height: 300px;
|
|
347
|
+
--amplify-components-autocomplete-menu-options-flex-direction: column;
|
|
348
|
+
--amplify-components-autocomplete-menu-options-display: flex;
|
|
349
|
+
--amplify-components-autocomplete-menu-border-style: solid;
|
|
350
|
+
--amplify-components-autocomplete-menu-width: 100%;
|
|
339
351
|
--amplify-components-authenticator-router-border-style: solid;
|
|
340
352
|
--amplify-components-authenticator-container-width-max: 30rem;
|
|
341
353
|
--amplify-components-authenticator-max-width: 60rem;
|
|
@@ -507,6 +519,7 @@
|
|
|
507
519
|
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);
|
|
508
520
|
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
|
|
509
521
|
--amplify-components-loader-width: var(--amplify-font-sizes-medium);
|
|
522
|
+
--amplify-components-highlightmatch-highlighted-font-weight: 700;
|
|
510
523
|
--amplify-components-heading-line-height: var(--amplify-line-heights-small);
|
|
511
524
|
--amplify-components-heading-6-font-weight: 800;
|
|
512
525
|
--amplify-components-heading-6-font-size: var(--amplify-font-sizes-medium);
|
|
@@ -616,6 +629,14 @@
|
|
|
616
629
|
--amplify-components-badge-padding-vertical: var(--amplify-space-xs);
|
|
617
630
|
--amplify-components-badge-font-size: var(--amplify-font-sizes-small);
|
|
618
631
|
--amplify-components-badge-font-weight: 600;
|
|
632
|
+
--amplify-components-autocomplete-menu-space-shared-padding-inline: var(--amplify-space-small);
|
|
633
|
+
--amplify-components-autocomplete-menu-space-shared-padding-block: var(--amplify-space-xs);
|
|
634
|
+
--amplify-components-autocomplete-menu-loading-gap: var(--amplify-space-xxxs);
|
|
635
|
+
--amplify-components-autocomplete-menu-option-active-color: var(--amplify-colors-white);
|
|
636
|
+
--amplify-components-autocomplete-menu-option-transition-duration: var(--amplify-time-short);
|
|
637
|
+
--amplify-components-autocomplete-menu-border-radius: var(--amplify-radii-small);
|
|
638
|
+
--amplify-components-autocomplete-menu-border-width: var(--amplify-border-widths-small);
|
|
639
|
+
--amplify-components-autocomplete-menu-margin-block-start: var(--amplify-space-xxxs);
|
|
619
640
|
--amplify-components-authenticator-or-container-color: var(--amplify-colors-neutral-80);
|
|
620
641
|
--amplify-components-authenticator-form-padding: var(--amplify-space-xl);
|
|
621
642
|
--amplify-components-authenticator-footer-padding-bottom: var(--amplify-space-medium);
|
|
@@ -804,6 +825,10 @@
|
|
|
804
825
|
--amplify-components-badge-info-color: var(--amplify-colors-font-info);
|
|
805
826
|
--amplify-components-badge-background-color: var(--amplify-colors-background-tertiary);
|
|
806
827
|
--amplify-components-badge-color: var(--amplify-colors-font-primary);
|
|
828
|
+
--amplify-components-autocomplete-menu-option-active-background-color: var(--amplify-colors-brand-primary-80);
|
|
829
|
+
--amplify-components-autocomplete-menu-option-background-color: var(--amplify-colors-background-primary);
|
|
830
|
+
--amplify-components-autocomplete-menu-border-color: var(--amplify-colors-border-primary);
|
|
831
|
+
--amplify-components-autocomplete-menu-background-color: var(--amplify-colors-background-primary);
|
|
807
832
|
--amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
|
|
808
833
|
--amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
|
|
809
834
|
--amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* implementations can use.
|
|
4
4
|
*/
|
|
5
5
|
import { AuthInterpreter, HubHandler } from '../../types';
|
|
6
|
+
declare type ConfigureOptions = {
|
|
7
|
+
packageName: string;
|
|
8
|
+
version: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const configureComponent: ({ packageName, version, }: ConfigureOptions) => void;
|
|
6
11
|
export declare const censorAllButFirstAndLast: (value: string) => string;
|
|
7
12
|
export declare const censorPhoneNumber: (val: string) => string;
|
|
8
13
|
export declare const defaultAuthHubHandler: HubHandler;
|
|
@@ -17,3 +22,4 @@ export declare const defaultAuthHubHandler: HubHandler;
|
|
|
17
22
|
export declare const listenToAuthHub: (service: AuthInterpreter, handler?: HubHandler) => () => void;
|
|
18
23
|
export declare const hasSpecialChars: (password: string) => boolean;
|
|
19
24
|
export declare const getTotpCodeURL: (issuer: string, username: string, secret: string) => string;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AlignItemsValue, BackgroundColorValue, BorderColorValue, BorderWidthValue, BorderStyleValue, BorderRadiusValue, ColorValue, CursorValue, DesignToken, DisplayValue, FlexDirectionValue, SpaceValue, TransitionDurationValue, TransitionPropertyValue, TransitionTimingFunctionValue } from '../types/designToken';
|
|
2
|
+
export interface AutocompleteTokens {
|
|
3
|
+
menu: {
|
|
4
|
+
width: DesignToken<SpaceValue>;
|
|
5
|
+
marginBlockStart: DesignToken<SpaceValue>;
|
|
6
|
+
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
7
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
8
|
+
borderWidth: DesignToken<BorderWidthValue>;
|
|
9
|
+
borderStyle: DesignToken<BorderStyleValue>;
|
|
10
|
+
borderRadius: DesignToken<BorderRadiusValue>;
|
|
11
|
+
options: {
|
|
12
|
+
display: DesignToken<DisplayValue>;
|
|
13
|
+
flexDirection: DesignToken<FlexDirectionValue>;
|
|
14
|
+
maxHeight: DesignToken<SpaceValue>;
|
|
15
|
+
};
|
|
16
|
+
option: {
|
|
17
|
+
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
18
|
+
color: DesignToken<ColorValue>;
|
|
19
|
+
cursor: DesignToken<CursorValue>;
|
|
20
|
+
transitionDuration: DesignToken<TransitionDurationValue>;
|
|
21
|
+
transitionProperty: DesignToken<TransitionPropertyValue>;
|
|
22
|
+
transitionTimingFunction: DesignToken<TransitionTimingFunctionValue>;
|
|
23
|
+
_active: {
|
|
24
|
+
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
25
|
+
color: DesignToken<ColorValue>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
_empty: {
|
|
29
|
+
display: DesignToken<DisplayValue>;
|
|
30
|
+
};
|
|
31
|
+
_loading: {
|
|
32
|
+
alignItems: DesignToken<AlignItemsValue>;
|
|
33
|
+
display: DesignToken<DisplayValue>;
|
|
34
|
+
gap: DesignToken<SpaceValue>;
|
|
35
|
+
};
|
|
36
|
+
spaceShared: {
|
|
37
|
+
paddingBlock: DesignToken<SpaceValue>;
|
|
38
|
+
paddingInline: DesignToken<SpaceValue>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export declare const autocomplete: AutocompleteTokens;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DesignToken, FontWeightValue } from '../types/designToken';
|
|
2
|
+
interface HighlightMatchHighlightedTokens {
|
|
3
|
+
fontWeight: DesignToken<FontWeightValue>;
|
|
4
|
+
}
|
|
5
|
+
export interface HighlightMatchTokens {
|
|
6
|
+
highlighted: HighlightMatchHighlightedTokens;
|
|
7
|
+
}
|
|
8
|
+
export declare const highlightmatch: HighlightMatchTokens;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AlertTokens } from './alert';
|
|
2
|
+
import { AutocompleteTokens } from './autocomplete';
|
|
2
3
|
import { AuthenticatorTokens } from './authenticator';
|
|
3
4
|
import { BadgeTokens } from './badge';
|
|
4
5
|
import { ButtonTokens } from './button';
|
|
@@ -16,6 +17,7 @@ import { FieldGroupTokens } from './fieldGroup';
|
|
|
16
17
|
import { FieldMessagesTokens } from './fieldMessages';
|
|
17
18
|
import { FlexTokens } from './flex';
|
|
18
19
|
import { HeadingTokens } from './heading';
|
|
20
|
+
import { HighlightMatchTokens } from './highlightMatch';
|
|
19
21
|
import { IconTokens } from './icon';
|
|
20
22
|
import { ImageTokens } from './image';
|
|
21
23
|
import { LinkTokens } from './link';
|
|
@@ -44,6 +46,7 @@ import { ToggleButtonGroupTokens } from './toggleButtonGroup';
|
|
|
44
46
|
export interface ComponentTokens {
|
|
45
47
|
alert: AlertTokens;
|
|
46
48
|
authenticator: AuthenticatorTokens;
|
|
49
|
+
autocomplete: AutocompleteTokens;
|
|
47
50
|
badge: BadgeTokens;
|
|
48
51
|
button: ButtonTokens;
|
|
49
52
|
card: CardTokens;
|
|
@@ -61,6 +64,7 @@ export interface ComponentTokens {
|
|
|
61
64
|
flex: FlexTokens;
|
|
62
65
|
heading: HeadingTokens;
|
|
63
66
|
icon: IconTokens;
|
|
67
|
+
highlightmatch: HighlightMatchTokens;
|
|
64
68
|
image: ImageTokens;
|
|
65
69
|
link: LinkTokens;
|
|
66
70
|
loader: LoaderTokens;
|
|
@@ -4,6 +4,14 @@ export declare enum ComponentClassName {
|
|
|
4
4
|
AlertHeading = "amplify-alert__heading",
|
|
5
5
|
AlertBody = "amplify-alert__body",
|
|
6
6
|
AlertDismiss = "amplify-alert__dismiss",
|
|
7
|
+
Autocomplete = "amplify-autocomplete",
|
|
8
|
+
AutocompleteMenu = "amplify-autocomplete__menu",
|
|
9
|
+
AutocompleteMenuEmpty = "amplify-autocomplete__menu--empty",
|
|
10
|
+
AutocompleteMenuFooter = "amplify-autocomplete__menu__footer",
|
|
11
|
+
AutocompleteMenuHeader = "amplify-autocomplete__menu__header",
|
|
12
|
+
AutocompleteMenuLoading = "amplify-autocomplete__menu--loading",
|
|
13
|
+
AutocompleteMenuOption = "amplify-autocomplete__menu__option",
|
|
14
|
+
AutocompleteMenuOptions = "amplify-autocomplete__menu__options",
|
|
7
15
|
Badge = "amplify-badge",
|
|
8
16
|
Button = "amplify-button",
|
|
9
17
|
ButtonGroup = "amplify-buttongroup",
|
|
@@ -48,6 +56,8 @@ export declare enum ComponentClassName {
|
|
|
48
56
|
Flex = "amplify-flex",
|
|
49
57
|
Grid = "amplify-grid",
|
|
50
58
|
Heading = "amplify-heading",
|
|
59
|
+
HighlightMatch = "amplify-highlightmatch",
|
|
60
|
+
HighlightMatchHighlighted = "amplify-highlightmatch__highlighted",
|
|
51
61
|
Icon = "amplify-icon",
|
|
52
62
|
Image = "amplify-image",
|
|
53
63
|
Input = "amplify-input",
|