@aws-amplify/ui 4.0.0 → 4.1.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/styles.css CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * Do not edit directly
6
- * Generated on Thu, 13 Oct 2022 23:54:04 GMT
6
+ * Generated on Tue, 08 Nov 2022 23:57:24 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);
@@ -677,6 +698,7 @@
677
698
  --amplify-components-table-header-border-color: var(--amplify-colors-border-tertiary);
678
699
  --amplify-components-table-row-striped-background-color: var(--amplify-colors-background-secondary);
679
700
  --amplify-components-table-row-hover-background-color: var(--amplify-colors-background-tertiary);
701
+ --amplify-components-switchfield-track-error-background-color: var(--amplify-colors-background-error);
680
702
  --amplify-components-switchfield-track-checked-background-color: var(--amplify-colors-brand-primary-80);
681
703
  --amplify-components-switchfield-track-background-color: var(--amplify-colors-background-quaternary);
682
704
  --amplify-components-switchfield-thumb-border-color: var(--amplify-colors-border-tertiary);
@@ -805,6 +827,10 @@
805
827
  --amplify-components-badge-info-color: var(--amplify-colors-font-info);
806
828
  --amplify-components-badge-background-color: var(--amplify-colors-background-tertiary);
807
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);
808
834
  --amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
809
835
  --amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
810
836
  --amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
@@ -957,12 +983,14 @@
957
983
  --amplify-components-collection-search-button-active-color: var(--amplify-components-searchfield-button-active-color);
958
984
  }
959
985
 
960
- html {
986
+ html,
987
+ [data-amplify-theme] {
961
988
  font-family: var(--amplify-fonts-default-static);
962
989
  }
963
990
 
964
991
  @supports (font-variation-settings: normal) {
965
- html {
992
+ html,
993
+ [data-amplify-theme] {
966
994
  font-family: var(--amplify-fonts-default-variable);
967
995
  }
968
996
  }
@@ -1427,6 +1455,10 @@ strong.amplify-text {
1427
1455
  width: var(--amplify-components-icon-height);
1428
1456
  }
1429
1457
 
1458
+ .amplify-highlightmatch__highlighted {
1459
+ font-weight: var(--amplify-components-highlightmatch-highlighted-font-weight);
1460
+ }
1461
+
1430
1462
  .amplify-input {
1431
1463
  box-sizing: border-box;
1432
1464
  color: var(--amplify-components-fieldcontrol-color);
@@ -1651,21 +1683,16 @@ strong.amplify-text {
1651
1683
  }
1652
1684
  .amplify-loader circle:last-of-type {
1653
1685
  transform-origin: center center;
1654
- -webkit-animation-name: amplify-loader-circular;
1655
- animation-name: amplify-loader-circular;
1656
- -webkit-animation-timing-function: linear;
1657
- animation-timing-function: linear;
1658
- -webkit-animation-iteration-count: infinite;
1659
- animation-iteration-count: infinite;
1660
- -webkit-animation-duration: var(--amplify-components-loader-animation-duration);
1661
- animation-duration: var(--amplify-components-loader-animation-duration);
1686
+ animation-name: amplify-loader-circular;
1687
+ animation-timing-function: linear;
1688
+ animation-iteration-count: infinite;
1689
+ animation-duration: var(--amplify-components-loader-animation-duration);
1662
1690
  stroke: var(--amplify-components-loader-stroke-filled);
1663
1691
  stroke-linecap: var(--amplify-components-loader-stroke-linecap);
1664
1692
  }
1665
1693
  @media (prefers-reduced-motion) {
1666
1694
  .amplify-loader circle:last-of-type {
1667
- -webkit-animation: none;
1668
- animation: none;
1695
+ animation: none;
1669
1696
  stroke-dasharray: 100% 200%;
1670
1697
  stroke-dashoffset: 50%;
1671
1698
  }
@@ -1673,19 +1700,14 @@ strong.amplify-text {
1673
1700
  .amplify-loader line:last-of-type {
1674
1701
  stroke: var(--amplify-components-loader-linear-stroke-filled);
1675
1702
  stroke-dasharray: 50% 200%;
1676
- -webkit-animation-name: amplify-loader-linear;
1677
- animation-name: amplify-loader-linear;
1678
- -webkit-animation-duration: var(--amplify-components-loader-linear-animation-duration);
1679
- animation-duration: var(--amplify-components-loader-linear-animation-duration);
1680
- -webkit-animation-timing-function: linear;
1681
- animation-timing-function: linear;
1682
- -webkit-animation-iteration-count: infinite;
1683
- animation-iteration-count: infinite;
1703
+ animation-name: amplify-loader-linear;
1704
+ animation-duration: var(--amplify-components-loader-linear-animation-duration);
1705
+ animation-timing-function: linear;
1706
+ animation-iteration-count: infinite;
1684
1707
  }
1685
1708
  @media (prefers-reduced-motion) {
1686
1709
  .amplify-loader line:last-of-type {
1687
- -webkit-animation: none;
1688
- animation: none;
1710
+ animation: none;
1689
1711
  stroke-dashoffset: -50%;
1690
1712
  }
1691
1713
  }
@@ -1720,13 +1742,11 @@ strong.amplify-text {
1720
1742
  font-size: var(--amplify-internal-loader-linear-font-size);
1721
1743
  }
1722
1744
  .amplify-loader--determinate circle:last-of-type {
1723
- -webkit-animation: none;
1724
- animation: none;
1745
+ animation: none;
1725
1746
  transform: rotate(-90deg);
1726
1747
  }
1727
1748
  .amplify-loader--determinate line:last-of-type {
1728
- -webkit-animation: none;
1729
- animation: none;
1749
+ animation: none;
1730
1750
  stroke-dashoffset: 0%;
1731
1751
  stroke-dasharray: none;
1732
1752
  }
@@ -1735,20 +1755,6 @@ strong.amplify-text {
1735
1755
  stroke: none;
1736
1756
  }
1737
1757
 
1738
- @-webkit-keyframes amplify-loader-circular {
1739
- 0% {
1740
- stroke-dasharray: 100% 200%;
1741
- transform: rotate(120deg);
1742
- }
1743
- 50% {
1744
- stroke-dasharray: 20% 400%;
1745
- }
1746
- 100% {
1747
- stroke-dasharray: 100% 200%;
1748
- transform: rotate(480deg);
1749
- }
1750
- }
1751
-
1752
1758
  @keyframes amplify-loader-circular {
1753
1759
  0% {
1754
1760
  stroke-dasharray: 100% 200%;
@@ -1762,14 +1768,6 @@ strong.amplify-text {
1762
1768
  transform: rotate(480deg);
1763
1769
  }
1764
1770
  }
1765
- @-webkit-keyframes amplify-loader-linear {
1766
- 0% {
1767
- stroke-dashoffset: 200%;
1768
- }
1769
- 100% {
1770
- stroke-dashoffset: -50%;
1771
- }
1772
- }
1773
1771
  @keyframes amplify-loader-linear {
1774
1772
  0% {
1775
1773
  stroke-dashoffset: 200%;
@@ -1779,14 +1777,10 @@ strong.amplify-text {
1779
1777
  }
1780
1778
  }
1781
1779
  .amplify-placeholder {
1782
- -webkit-animation-direction: alternate;
1783
- animation-direction: alternate;
1784
- -webkit-animation-duration: var(--amplify-components-placeholder-transition-duration);
1785
- animation-duration: var(--amplify-components-placeholder-transition-duration);
1786
- -webkit-animation-iteration-count: infinite;
1787
- animation-iteration-count: infinite;
1788
- -webkit-animation-name: amplify-placeholder-loading;
1789
- animation-name: amplify-placeholder-loading;
1780
+ animation-direction: alternate;
1781
+ animation-duration: var(--amplify-components-placeholder-transition-duration);
1782
+ animation-iteration-count: infinite;
1783
+ animation-name: amplify-placeholder-loading;
1790
1784
  border-radius: var(--amplify-components-placeholder-border-radius);
1791
1785
  height: var(--amplify-components-placeholder-default-height);
1792
1786
  width: 100%;
@@ -1799,15 +1793,6 @@ strong.amplify-text {
1799
1793
  height: var(--amplify-components-placeholder-large-height);
1800
1794
  }
1801
1795
 
1802
- @-webkit-keyframes amplify-placeholder-loading {
1803
- 0% {
1804
- background-color: var(--amplify-components-placeholder-start-color);
1805
- }
1806
- 100% {
1807
- background-color: var(--amplify-components-placeholder-end-color);
1808
- }
1809
- }
1810
-
1811
1796
  @keyframes amplify-placeholder-loading {
1812
1797
  0% {
1813
1798
  background-color: var(--amplify-components-placeholder-start-color);
@@ -1818,8 +1803,7 @@ strong.amplify-text {
1818
1803
  }
1819
1804
  @media (prefers-reduced-motion: reduce) {
1820
1805
  .amplify-placeholder {
1821
- -webkit-animation: none;
1822
- animation: none;
1806
+ animation: none;
1823
1807
  background-color: var(--amplify-components-placeholder-end-color);
1824
1808
  }
1825
1809
  }
@@ -1894,6 +1878,54 @@ strong.amplify-text {
1894
1878
  color: inherit;
1895
1879
  }
1896
1880
 
1881
+ .amplify-autocomplete__menu__option, .amplify-autocomplete__menu--loading, .amplify-autocomplete__menu--empty {
1882
+ padding-block: var(--amplify-components-autocomplete-menu-space-shared-padding-block);
1883
+ padding-inline: var(--amplify-components-autocomplete-menu-space-shared-padding-inline);
1884
+ }
1885
+
1886
+ .amplify-autocomplete {
1887
+ position: relative;
1888
+ }
1889
+
1890
+ .amplify-autocomplete__menu {
1891
+ position: absolute;
1892
+ z-index: 99;
1893
+ width: var(--amplify-components-autocomplete-menu-width);
1894
+ -webkit-margin-before: var(--amplify-components-autocomplete-menu-margin-block-start);
1895
+ margin-block-start: var(--amplify-components-autocomplete-menu-margin-block-start);
1896
+ background-color: var(--amplify-components-autocomplete-menu-background-color);
1897
+ border-color: var(--amplify-components-autocomplete-menu-border-color);
1898
+ border-width: var(--amplify-components-autocomplete-menu-border-width);
1899
+ border-style: var(--amplify-components-autocomplete-menu-border-style);
1900
+ border-radius: var(--amplify-components-autocomplete-menu-border-radius);
1901
+ }
1902
+ .amplify-autocomplete__menu--empty {
1903
+ display: var(--amplify-components-autocomplete-menu-empty-display);
1904
+ }
1905
+ .amplify-autocomplete__menu--loading {
1906
+ display: var(--amplify-components-autocomplete-menu-loading-display);
1907
+ align-items: var(--amplify-components-autocomplete-menu-loading-align-items);
1908
+ gap: var(--amplify-components-autocomplete-menu-loading-gap);
1909
+ }
1910
+ .amplify-autocomplete__menu__options {
1911
+ position: relative;
1912
+ display: var(--amplify-components-autocomplete-menu-options-display);
1913
+ flex-direction: var(--amplify-components-autocomplete-menu-options-flex-direction);
1914
+ max-height: var(--amplify-components-autocomplete-menu-options-max-height);
1915
+ }
1916
+ .amplify-autocomplete__menu__option {
1917
+ background-color: var(--amplify-components-autocomplete-menu-option-background-color);
1918
+ color: var(--amplify-components-autocomplete-menu-option-color);
1919
+ cursor: var(--amplify-components-autocomplete-menu-option-cursor);
1920
+ transition-duration: var(--amplify-components-autocomplete-menu-option-transition-duration);
1921
+ transition-property: var(--amplify-components-autocomplete-menu-option-transition-property);
1922
+ transition-timing-function: var(--amplify-components-autocomplete-menu-option-transition-timing-function);
1923
+ }
1924
+ .amplify-autocomplete__menu__option--active {
1925
+ background-color: var(--amplify-components-autocomplete-menu-option-active-background-color);
1926
+ color: var(--amplify-components-autocomplete-menu-option-active-color);
1927
+ }
1928
+
1897
1929
  /* Center by default */
1898
1930
  [data-amplify-authenticator] {
1899
1931
  display: grid;
@@ -2276,20 +2308,14 @@ strong.amplify-text {
2276
2308
  padding-inline-end: var(--amplify-components-expander-content-padding-inline-end);
2277
2309
  }
2278
2310
  .amplify-expander__content[data-state=open] {
2279
- -webkit-animation-name: amplify-expander-slide-down;
2280
- animation-name: amplify-expander-slide-down;
2281
- -webkit-animation-duration: var(--amplify-components-expander-content-open-animation-duration);
2282
- animation-duration: var(--amplify-components-expander-content-open-animation-duration);
2283
- -webkit-animation-timing-function: var(--amplify-components-expander-content-open-animation-timing-function);
2284
- animation-timing-function: var(--amplify-components-expander-content-open-animation-timing-function);
2311
+ animation-name: amplify-expander-slide-down;
2312
+ animation-duration: var(--amplify-components-expander-content-open-animation-duration);
2313
+ animation-timing-function: var(--amplify-components-expander-content-open-animation-timing-function);
2285
2314
  }
2286
2315
  .amplify-expander__content[data-state=closed] {
2287
- -webkit-animation-name: amplify-expander-slide-up;
2288
- animation-name: amplify-expander-slide-up;
2289
- -webkit-animation-duration: var(--amplify-components-expander-content-closed-animation-duration);
2290
- animation-duration: var(--amplify-components-expander-content-closed-animation-duration);
2291
- -webkit-animation-timing-function: var(--amplify-components-expander-content-closed-animation-timing-function);
2292
- animation-timing-function: var(--amplify-components-expander-content-closed-animation-timing-function);
2316
+ animation-name: amplify-expander-slide-up;
2317
+ animation-duration: var(--amplify-components-expander-content-closed-animation-duration);
2318
+ animation-timing-function: var(--amplify-components-expander-content-closed-animation-timing-function);
2293
2319
  }
2294
2320
 
2295
2321
  .amplify-expander__content__text {
@@ -2310,15 +2336,6 @@ strong.amplify-text {
2310
2336
  transform: rotate(180deg);
2311
2337
  }
2312
2338
 
2313
- @-webkit-keyframes amplify-expander-slide-down {
2314
- from {
2315
- height: 0;
2316
- }
2317
- to {
2318
- height: auto;
2319
- }
2320
- }
2321
-
2322
2339
  @keyframes amplify-expander-slide-down {
2323
2340
  from {
2324
2341
  height: 0;
@@ -2327,14 +2344,6 @@ strong.amplify-text {
2327
2344
  height: auto;
2328
2345
  }
2329
2346
  }
2330
- @-webkit-keyframes amplify-expander-slide-up {
2331
- from {
2332
- height: auto;
2333
- }
2334
- to {
2335
- height: 0;
2336
- }
2337
- }
2338
2347
  @keyframes amplify-expander-slide-up {
2339
2348
  from {
2340
2349
  height: auto;
@@ -2384,6 +2393,7 @@ strong.amplify-text {
2384
2393
 
2385
2394
  .amplify-field-group {
2386
2395
  gap: var(--amplify-components-fieldgroup-gap);
2396
+ align-self: stretch;
2387
2397
  }
2388
2398
  .amplify-field-group--horizontal {
2389
2399
  flex-direction: row;
@@ -2433,7 +2443,6 @@ strong.amplify-text {
2433
2443
  width: 100%;
2434
2444
  }
2435
2445
  .amplify-field-group__field-wrapper--vertical {
2436
- width: -webkit-fit-content;
2437
2446
  width: -moz-fit-content;
2438
2447
  width: fit-content;
2439
2448
  }
@@ -2876,6 +2885,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
2876
2885
  display: var(--amplify-components-select-wrapper-display);
2877
2886
  position: var(--amplify-components-select-wrapper-position);
2878
2887
  cursor: var(--amplify-components-select-wrapper-cursor);
2888
+ align-self: stretch;
2879
2889
  }
2880
2890
 
2881
2891
  .amplify-select__icon-wrapper {
@@ -3286,6 +3296,9 @@ html[dir=rtl] .amplify-field-group__inner-start {
3286
3296
  .amplify-switch-track--focused {
3287
3297
  box-shadow: var(--amplify-components-switchfield-focused-shadow);
3288
3298
  }
3299
+ .amplify-switch-track--error {
3300
+ background-color: var(--amplify-components-switchfield-track-error-background-color);
3301
+ }
3289
3302
 
3290
3303
  .amplify-switch-thumb {
3291
3304
  background-color: var(--amplify-components-switchfield-thumb-background-color);
package/dist/theme.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 13 Oct 2022 23:54:04 GMT
3
+ * Generated on Tue, 08 Nov 2022 23:57:24 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);
@@ -675,6 +696,7 @@
675
696
  --amplify-components-table-header-border-color: var(--amplify-colors-border-tertiary);
676
697
  --amplify-components-table-row-striped-background-color: var(--amplify-colors-background-secondary);
677
698
  --amplify-components-table-row-hover-background-color: var(--amplify-colors-background-tertiary);
699
+ --amplify-components-switchfield-track-error-background-color: var(--amplify-colors-background-error);
678
700
  --amplify-components-switchfield-track-checked-background-color: var(--amplify-colors-brand-primary-80);
679
701
  --amplify-components-switchfield-track-background-color: var(--amplify-colors-background-quaternary);
680
702
  --amplify-components-switchfield-thumb-border-color: var(--amplify-colors-border-tertiary);
@@ -803,6 +825,10 @@
803
825
  --amplify-components-badge-info-color: var(--amplify-colors-font-info);
804
826
  --amplify-components-badge-background-color: var(--amplify-colors-background-tertiary);
805
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);
806
832
  --amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
807
833
  --amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
808
834
  --amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
@@ -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;
@@ -33,6 +33,7 @@ interface SwitchFieldTrackTokens {
33
33
  padding: DesignToken<SpaceValue>;
34
34
  transition: SwitchFieldTrackTransitionTokens;
35
35
  width: DesignToken<SpaceValue>;
36
+ _error: SwitchFieldTrackCheckedTokens;
36
37
  }
37
38
  interface SwitchFieldTrackTransitionTokens {
38
39
  duration: DesignToken<TransitionDurationValue>;
@@ -1,2 +1,3 @@
1
1
  export * from './authenticator';
2
+ export * from './primitives';
2
3
  export * from './util';