@aws-amplify/ui 4.0.1 → 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 Wed, 26 Oct 2022 18:28:07 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);
@@ -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);
@@ -1654,21 +1683,16 @@ strong.amplify-text {
1654
1683
  }
1655
1684
  .amplify-loader circle:last-of-type {
1656
1685
  transform-origin: center center;
1657
- -webkit-animation-name: amplify-loader-circular;
1658
- animation-name: amplify-loader-circular;
1659
- -webkit-animation-timing-function: linear;
1660
- animation-timing-function: linear;
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);
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);
1665
1690
  stroke: var(--amplify-components-loader-stroke-filled);
1666
1691
  stroke-linecap: var(--amplify-components-loader-stroke-linecap);
1667
1692
  }
1668
1693
  @media (prefers-reduced-motion) {
1669
1694
  .amplify-loader circle:last-of-type {
1670
- -webkit-animation: none;
1671
- animation: none;
1695
+ animation: none;
1672
1696
  stroke-dasharray: 100% 200%;
1673
1697
  stroke-dashoffset: 50%;
1674
1698
  }
@@ -1676,19 +1700,14 @@ strong.amplify-text {
1676
1700
  .amplify-loader line:last-of-type {
1677
1701
  stroke: var(--amplify-components-loader-linear-stroke-filled);
1678
1702
  stroke-dasharray: 50% 200%;
1679
- -webkit-animation-name: amplify-loader-linear;
1680
- animation-name: amplify-loader-linear;
1681
- -webkit-animation-duration: var(--amplify-components-loader-linear-animation-duration);
1682
- animation-duration: var(--amplify-components-loader-linear-animation-duration);
1683
- -webkit-animation-timing-function: linear;
1684
- animation-timing-function: linear;
1685
- -webkit-animation-iteration-count: infinite;
1686
- 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;
1687
1707
  }
1688
1708
  @media (prefers-reduced-motion) {
1689
1709
  .amplify-loader line:last-of-type {
1690
- -webkit-animation: none;
1691
- animation: none;
1710
+ animation: none;
1692
1711
  stroke-dashoffset: -50%;
1693
1712
  }
1694
1713
  }
@@ -1723,13 +1742,11 @@ strong.amplify-text {
1723
1742
  font-size: var(--amplify-internal-loader-linear-font-size);
1724
1743
  }
1725
1744
  .amplify-loader--determinate circle:last-of-type {
1726
- -webkit-animation: none;
1727
- animation: none;
1745
+ animation: none;
1728
1746
  transform: rotate(-90deg);
1729
1747
  }
1730
1748
  .amplify-loader--determinate line:last-of-type {
1731
- -webkit-animation: none;
1732
- animation: none;
1749
+ animation: none;
1733
1750
  stroke-dashoffset: 0%;
1734
1751
  stroke-dasharray: none;
1735
1752
  }
@@ -1738,20 +1755,6 @@ strong.amplify-text {
1738
1755
  stroke: none;
1739
1756
  }
1740
1757
 
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
1758
  @keyframes amplify-loader-circular {
1756
1759
  0% {
1757
1760
  stroke-dasharray: 100% 200%;
@@ -1765,14 +1768,6 @@ strong.amplify-text {
1765
1768
  transform: rotate(480deg);
1766
1769
  }
1767
1770
  }
1768
- @-webkit-keyframes amplify-loader-linear {
1769
- 0% {
1770
- stroke-dashoffset: 200%;
1771
- }
1772
- 100% {
1773
- stroke-dashoffset: -50%;
1774
- }
1775
- }
1776
1771
  @keyframes amplify-loader-linear {
1777
1772
  0% {
1778
1773
  stroke-dashoffset: 200%;
@@ -1782,14 +1777,10 @@ strong.amplify-text {
1782
1777
  }
1783
1778
  }
1784
1779
  .amplify-placeholder {
1785
- -webkit-animation-direction: alternate;
1786
- animation-direction: alternate;
1787
- -webkit-animation-duration: var(--amplify-components-placeholder-transition-duration);
1788
- animation-duration: var(--amplify-components-placeholder-transition-duration);
1789
- -webkit-animation-iteration-count: infinite;
1790
- animation-iteration-count: infinite;
1791
- -webkit-animation-name: amplify-placeholder-loading;
1792
- 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;
1793
1784
  border-radius: var(--amplify-components-placeholder-border-radius);
1794
1785
  height: var(--amplify-components-placeholder-default-height);
1795
1786
  width: 100%;
@@ -1802,15 +1793,6 @@ strong.amplify-text {
1802
1793
  height: var(--amplify-components-placeholder-large-height);
1803
1794
  }
1804
1795
 
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
1796
  @keyframes amplify-placeholder-loading {
1815
1797
  0% {
1816
1798
  background-color: var(--amplify-components-placeholder-start-color);
@@ -1821,8 +1803,7 @@ strong.amplify-text {
1821
1803
  }
1822
1804
  @media (prefers-reduced-motion: reduce) {
1823
1805
  .amplify-placeholder {
1824
- -webkit-animation: none;
1825
- animation: none;
1806
+ animation: none;
1826
1807
  background-color: var(--amplify-components-placeholder-end-color);
1827
1808
  }
1828
1809
  }
@@ -1897,6 +1878,54 @@ strong.amplify-text {
1897
1878
  color: inherit;
1898
1879
  }
1899
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
+
1900
1929
  /* Center by default */
1901
1930
  [data-amplify-authenticator] {
1902
1931
  display: grid;
@@ -2279,20 +2308,14 @@ strong.amplify-text {
2279
2308
  padding-inline-end: var(--amplify-components-expander-content-padding-inline-end);
2280
2309
  }
2281
2310
  .amplify-expander__content[data-state=open] {
2282
- -webkit-animation-name: amplify-expander-slide-down;
2283
- animation-name: amplify-expander-slide-down;
2284
- -webkit-animation-duration: var(--amplify-components-expander-content-open-animation-duration);
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);
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);
2288
2314
  }
2289
2315
  .amplify-expander__content[data-state=closed] {
2290
- -webkit-animation-name: amplify-expander-slide-up;
2291
- animation-name: amplify-expander-slide-up;
2292
- -webkit-animation-duration: var(--amplify-components-expander-content-closed-animation-duration);
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);
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);
2296
2319
  }
2297
2320
 
2298
2321
  .amplify-expander__content__text {
@@ -2313,15 +2336,6 @@ strong.amplify-text {
2313
2336
  transform: rotate(180deg);
2314
2337
  }
2315
2338
 
2316
- @-webkit-keyframes amplify-expander-slide-down {
2317
- from {
2318
- height: 0;
2319
- }
2320
- to {
2321
- height: auto;
2322
- }
2323
- }
2324
-
2325
2339
  @keyframes amplify-expander-slide-down {
2326
2340
  from {
2327
2341
  height: 0;
@@ -2330,14 +2344,6 @@ strong.amplify-text {
2330
2344
  height: auto;
2331
2345
  }
2332
2346
  }
2333
- @-webkit-keyframes amplify-expander-slide-up {
2334
- from {
2335
- height: auto;
2336
- }
2337
- to {
2338
- height: 0;
2339
- }
2340
- }
2341
2347
  @keyframes amplify-expander-slide-up {
2342
2348
  from {
2343
2349
  height: auto;
@@ -2437,7 +2443,6 @@ strong.amplify-text {
2437
2443
  width: 100%;
2438
2444
  }
2439
2445
  .amplify-field-group__field-wrapper--vertical {
2440
- width: -webkit-fit-content;
2441
2446
  width: -moz-fit-content;
2442
2447
  width: fit-content;
2443
2448
  }
package/dist/theme.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 26 Oct 2022 18:28:07 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);
@@ -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);
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {