@aws-amplify/ui-react 3.5.10 → 3.6.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.
Files changed (97) hide show
  1. package/dist/IconWarning-8d0abeda.js +1 -0
  2. package/dist/esm/PrimitiveCatalog.js +1 -1
  3. package/dist/esm/index.js +1 -1
  4. package/dist/esm/primitives/Autocomplete/Autocomplete.js +1 -0
  5. package/dist/esm/primitives/Autocomplete/AutocompleteMenu.js +1 -0
  6. package/dist/esm/primitives/Autocomplete/AutocompleteOption.js +1 -0
  7. package/dist/esm/primitives/Autocomplete/useAutocomplete.js +1 -0
  8. package/dist/esm/primitives/HighlightMatch/HighlightMatch.js +1 -0
  9. package/dist/esm/primitives/SearchField/SearchField.js +1 -1
  10. package/dist/esm/primitives/SearchField/useSearchField.js +1 -1
  11. package/dist/esm/primitives/index.js +1 -1
  12. package/dist/esm/primitives/shared/constants.js +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/internal.js +1 -1
  15. package/dist/styles.css +101 -96
  16. package/dist/types/hooks/actions/shared/types.d.ts +3 -3
  17. package/dist/types/hooks/actions/shared/useTypeCastFields.d.ts +3 -5
  18. package/dist/types/hooks/actions/useDataStoreCreateAction.d.ts +1 -3
  19. package/dist/types/hooks/actions/useDataStoreDeleteAction.d.ts +3 -5
  20. package/dist/types/hooks/actions/useDataStoreUpdateAction.d.ts +3 -5
  21. package/dist/types/hooks/useDataStore.d.ts +2 -6
  22. package/dist/types/primitives/Alert/Alert.d.ts +1 -1
  23. package/dist/types/primitives/Autocomplete/Autocomplete.d.ts +7 -0
  24. package/dist/types/primitives/Autocomplete/AutocompleteMenu.d.ts +2 -0
  25. package/dist/types/primitives/Autocomplete/AutocompleteOption.d.ts +2 -0
  26. package/dist/types/primitives/Autocomplete/index.d.ts +1 -0
  27. package/dist/types/primitives/Autocomplete/useAutocomplete.d.ts +23 -0
  28. package/dist/types/primitives/Badge/Badge.d.ts +1 -1
  29. package/dist/types/primitives/Button/Button.d.ts +1 -1
  30. package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
  31. package/dist/types/primitives/Card/Card.d.ts +1 -1
  32. package/dist/types/primitives/Checkbox/Checkbox.d.ts +1 -1
  33. package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
  34. package/dist/types/primitives/Divider/Divider.d.ts +1 -1
  35. package/dist/types/primitives/Expander/Expander.d.ts +1 -1
  36. package/dist/types/primitives/Expander/ExpanderItem.d.ts +1 -1
  37. package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
  38. package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
  39. package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
  40. package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
  41. package/dist/types/primitives/Flex/Flex.d.ts +1 -1
  42. package/dist/types/primitives/Grid/Grid.d.ts +1 -1
  43. package/dist/types/primitives/Heading/Heading.d.ts +1 -1
  44. package/dist/types/primitives/HighlightMatch/HighlightMatch.d.ts +7 -0
  45. package/dist/types/primitives/HighlightMatch/index.d.ts +1 -0
  46. package/dist/types/primitives/Icon/Icon.d.ts +1 -1
  47. package/dist/types/primitives/Image/Image.d.ts +1 -1
  48. package/dist/types/primitives/Input/Input.d.ts +1 -1
  49. package/dist/types/primitives/Label/Label.d.ts +1 -1
  50. package/dist/types/primitives/Link/Link.d.ts +1 -1
  51. package/dist/types/primitives/Loader/Loader.d.ts +1 -1
  52. package/dist/types/primitives/Menu/Menu.d.ts +1 -1
  53. package/dist/types/primitives/Menu/MenuButton.d.ts +1 -1
  54. package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
  55. package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
  56. package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
  57. package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
  58. package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
  59. package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
  60. package/dist/types/primitives/Radio/Radio.d.ts +1 -1
  61. package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
  62. package/dist/types/primitives/Rating/Rating.d.ts +1 -1
  63. package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
  64. package/dist/types/primitives/SearchField/SearchField.d.ts +2 -2
  65. package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
  66. package/dist/types/primitives/SearchField/useSearchField.d.ts +3 -3
  67. package/dist/types/primitives/Select/Select.d.ts +1 -1
  68. package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
  69. package/dist/types/primitives/SliderField/SliderField.d.ts +1 -1
  70. package/dist/types/primitives/StepperField/StepperField.d.ts +1 -1
  71. package/dist/types/primitives/StepperField/useStepper.d.ts +1 -1
  72. package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
  73. package/dist/types/primitives/Table/Table.d.ts +1 -1
  74. package/dist/types/primitives/Table/TableBody.d.ts +1 -1
  75. package/dist/types/primitives/Table/TableCell.d.ts +1 -1
  76. package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
  77. package/dist/types/primitives/Table/TableHead.d.ts +1 -1
  78. package/dist/types/primitives/Table/TableRow.d.ts +1 -1
  79. package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
  80. package/dist/types/primitives/Text/Text.d.ts +1 -1
  81. package/dist/types/primitives/TextArea/TextArea.d.ts +1 -1
  82. package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +1 -1
  83. package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
  84. package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  85. package/dist/types/primitives/View/View.d.ts +2 -2
  86. package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  87. package/dist/types/primitives/components.d.ts +2 -0
  88. package/dist/types/primitives/shared/constants.d.ts +8 -0
  89. package/dist/types/primitives/shared/datastore.d.ts +1 -3
  90. package/dist/types/primitives/shared/types.d.ts +2 -2
  91. package/dist/types/primitives/types/autocomplete.d.ts +121 -0
  92. package/dist/types/primitives/types/datastore.d.ts +2 -2
  93. package/dist/types/primitives/types/highlightMatch.d.ts +13 -0
  94. package/dist/types/primitives/types/index.d.ts +2 -0
  95. package/dist/types/primitives/types/searchField.d.ts +25 -2
  96. package/package.json +4 -4
  97. package/dist/IconWarning-05f44a4f.js +0 -1
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
  }
@@ -1,4 +1,4 @@
1
- import { PersistentModel, PersistentModelConstructor, ModelInit, Schema } from '@aws-amplify/datastore';
1
+ import { PersistentModel, PersistentModelConstructor, ModelInit, PersistentModelMetaData, Schema } from '@aws-amplify/datastore';
2
2
  /**
3
3
  * Converts a Model's field values to types supported by
4
4
  * Amplify UI field components. This is required
@@ -8,7 +8,7 @@ import { PersistentModel, PersistentModelConstructor, ModelInit, Schema } from '
8
8
  declare type ModelFields<Type> = {
9
9
  [Property in keyof Type]: string | number | boolean;
10
10
  };
11
- export declare type DataStoreActionFields<Model> = ModelInit<Model> | ModelFields<ModelInit<Model>>;
11
+ export declare type DataStoreActionFields<Model> = ModelInit<Model, PersistentModelMetaData<Model>> | ModelFields<ModelInit<Model, PersistentModelMetaData<Model>>>;
12
12
  export interface UseDataStoreActionOptions<Model extends PersistentModel> {
13
13
  model: PersistentModelConstructor<Model>;
14
14
  /**
@@ -23,5 +23,5 @@ export interface UseDataStoreActionOptions<Model extends PersistentModel> {
23
23
  */
24
24
  schema?: Schema;
25
25
  }
26
- export declare function isAlreadyTyped<Model>(fields: DataStoreActionFields<Model>, schema: Schema): fields is ModelInit<Model>;
26
+ export declare function isAlreadyTyped<Model>(fields: DataStoreActionFields<Model>, schema: Schema): fields is ModelInit<Model, PersistentModelMetaData<Model>>;
27
27
  export {};
@@ -1,17 +1,15 @@
1
- import { ModelInit, Schema } from '@aws-amplify/datastore';
1
+ import { ModelInit, PersistentModelMetaData, Schema } from '@aws-amplify/datastore';
2
2
  import { DataStoreActionFields } from './types';
3
3
  interface UseTypeCastFieldsProps<Model> {
4
4
  fields: DataStoreActionFields<Model>;
5
5
  modelName: string;
6
6
  schema: Schema;
7
7
  }
8
- declare type UseTypeCastFieldsReturn<Model> = ModelInit<Model> | undefined;
8
+ declare type UseTypeCastFieldsReturn<Model> = ModelInit<Model, PersistentModelMetaData<Model>> | undefined;
9
9
  /**
10
10
  * Optimistically casts field string values to types required by
11
11
  * datastore based on the schema type
12
12
  * @see: See https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html
13
13
  */
14
- export declare const useTypeCastFields: <Model>({ fields, modelName, schema, }: UseTypeCastFieldsProps<Model>) => ModelInit<Model, {
15
- readOnlyFields: "createdAt" | "updatedAt";
16
- }>;
14
+ export declare const useTypeCastFields: <Model>({ fields, modelName, schema, }: UseTypeCastFieldsProps<Model>) => ModelInit<Model, PersistentModelMetaData<Model>>;
17
15
  export {};
@@ -6,6 +6,4 @@ export interface UseDataStoreCreateActionOptions<Model extends PersistentModel>
6
6
  * Action to Create DataStore item
7
7
  * @internal
8
8
  */
9
- export declare const useDataStoreCreateAction: <Model extends Readonly<{
10
- id: string;
11
- } & Record<string, any>>>({ model, fields, schema, }: UseDataStoreCreateActionOptions<Model>) => (() => Promise<void>);
9
+ export declare const useDataStoreCreateAction: <Model extends Readonly<Record<string, any>>>({ model, fields: initialFields, schema, }: UseDataStoreCreateActionOptions<Model>) => (() => Promise<void>);
@@ -1,12 +1,10 @@
1
- import { PersistentModel, PersistentModelConstructor } from '@aws-amplify/datastore';
1
+ import { PersistentModel, PersistentModelConstructor, PersistentModelMetaData, IdentifierFieldOrIdentifierObject } from '@aws-amplify/datastore';
2
2
  export interface UseDataStoreDeleteActionOptions<Model extends PersistentModel> {
3
3
  model: PersistentModelConstructor<Model>;
4
- id: string;
4
+ id: IdentifierFieldOrIdentifierObject<Model, PersistentModelMetaData<Model>>;
5
5
  }
6
6
  /**
7
7
  * Action to Delete DataStore item
8
8
  * @internal
9
9
  */
10
- export declare const useDataStoreDeleteAction: <Model extends Readonly<{
11
- id: string;
12
- } & Record<string, any>>>({ model, id, }: UseDataStoreDeleteActionOptions<Model>) => (() => Promise<void>);
10
+ export declare const useDataStoreDeleteAction: <Model extends Readonly<Record<string, any>>>({ model, id, }: UseDataStoreDeleteActionOptions<Model>) => (() => Promise<void>);
@@ -1,12 +1,10 @@
1
- import { PersistentModel } from '@aws-amplify/datastore';
1
+ import { IdentifierFieldOrIdentifierObject, PersistentModel, PersistentModelMetaData } from '@aws-amplify/datastore';
2
2
  import { UseDataStoreActionOptions } from './shared/types';
3
3
  export interface UseDataStoreUpdateActionOptions<Model extends PersistentModel> extends UseDataStoreActionOptions<Model> {
4
- id: string;
4
+ id: IdentifierFieldOrIdentifierObject<Model, PersistentModelMetaData<Model>>;
5
5
  }
6
6
  /**
7
7
  * Action to Update DataStore item
8
8
  * @internal
9
9
  */
10
- export declare const useDataStoreUpdateAction: <Model extends Readonly<{
11
- id: string;
12
- } & Record<string, any>>>({ fields, id, model, schema, }: UseDataStoreUpdateActionOptions<Model>) => (() => Promise<void>);
10
+ export declare const useDataStoreUpdateAction: <Model extends Readonly<Record<string, any>>>({ fields: initialFields, id, model, schema, }: UseDataStoreUpdateActionOptions<Model>) => (() => Promise<void>);
@@ -4,16 +4,12 @@ import { DataStoreBindingProps, DataStoreCollectionProps, DataStoreCollectionRes
4
4
  * Perform a collection query against a DataStore model
5
5
  * @internal
6
6
  */
7
- export declare const useDataStoreCollection: <M extends Readonly<{
8
- id: string;
9
- } & Record<string, any>>>({ model, criteria, pagination, }: DataStoreCollectionProps<M>) => DataStoreCollectionResult<M>;
7
+ export declare const useDataStoreCollection: <M extends Readonly<Record<string, any>>>({ model, criteria, pagination, }: DataStoreCollectionProps<M>) => DataStoreCollectionResult<M>;
10
8
  /**
11
9
  * Perform a single record query against a DataStore model
12
10
  * @internal
13
11
  */
14
- export declare const useDataStoreItem: <M extends Readonly<{
15
- id: string;
16
- } & Record<string, any>>>({ model, id, }: DataStoreItemProps<M>) => DataStoreItemResult<M>;
12
+ export declare const useDataStoreItem: <M extends Readonly<Record<string, any>>>({ model, id, }: DataStoreItemProps<M>) => DataStoreItemResult<M>;
17
13
  /**
18
14
  * Perform a query against a DataStore model
19
15
  * @internal
@@ -3,4 +3,4 @@ import { AlertProps } from '../types';
3
3
  /**
4
4
  * [📖 Docs](https://ui.docs.amplify.aws/react/components/alert)
5
5
  */
6
- export declare const Alert: React.ForwardRefExoticComponent<Pick<import("../types").PrimitivePropsWithRef<AlertProps, React.ForwardRefExoticComponent<Pick<import("../types").PrimitivePropsWithRef<import("../types").FlexProps, "div">, "area" | "slot" | "title" | "isDisabled" | "id" | "className" | "testId" | "alignSelf" | "backgroundColor" | "backgroundImage" | "border" | "borderRadius" | "bottom" | "boxShadow" | "color" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "height" | "left" | "letterSpacing" | "lineHeight" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflow" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textDecoration" | "textTransform" | "top" | "transform" | "transformOrigin" | "width" | "whiteSpace" | "flex" | "order" | "grow" | "shrink" | "basis" | "column" | "columnEnd" | "columnSpan" | "columnStart" | "row" | "rowEnd" | "rowSpan" | "rowStart" | "ariaLabel" | "ariaValuetext" | "role" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "direction" | "wrap" | "alignItems" | "alignContent" | "justifyContent" | "gap" | "columnGap" | "rowGap" | "as" | "style" | "onLoad" | "onError" | "onClick" | "onChange" | "inlist" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>>, "area" | "slot" | "title" | "isDisabled" | "id" | "className" | "testId" | "alignSelf" | "backgroundColor" | "backgroundImage" | "border" | "borderRadius" | "bottom" | "boxShadow" | "color" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "height" | "left" | "letterSpacing" | "lineHeight" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflow" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textDecoration" | "textTransform" | "top" | "transform" | "transformOrigin" | "width" | "whiteSpace" | "flex" | "order" | "grow" | "shrink" | "basis" | "column" | "columnEnd" | "columnSpan" | "columnStart" | "row" | "rowEnd" | "rowSpan" | "rowStart" | "ariaLabel" | "ariaValuetext" | "role" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "heading" | "direction" | "wrap" | "alignItems" | "alignContent" | "justifyContent" | "gap" | "columnGap" | "rowGap" | "variation" | "isDismissible" | "dismissButtonLabel" | "hasIcon" | "as" | "style" | "onLoad" | "onError" | "onClick" | "onDismiss" | "buttonRef" | "onChange" | "inlist" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const Alert: React.ForwardRefExoticComponent<Pick<import("../types").PrimitivePropsWithRef<AlertProps, React.ForwardRefExoticComponent<Pick<import("../types").PrimitivePropsWithRef<import("../types").FlexProps, "div">, "area" | "slot" | "title" | "isDisabled" | "id" | "className" | "testId" | "alignSelf" | "backgroundColor" | "backgroundImage" | "border" | "borderRadius" | "bottom" | "boxShadow" | "color" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "height" | "left" | "letterSpacing" | "lineHeight" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflow" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textDecoration" | "textTransform" | "top" | "transform" | "transformOrigin" | "width" | "whiteSpace" | "flex" | "order" | "grow" | "shrink" | "basis" | "column" | "columnEnd" | "columnSpan" | "columnStart" | "row" | "rowEnd" | "rowSpan" | "rowStart" | "ariaLabel" | "ariaValuetext" | "role" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "direction" | "wrap" | "alignItems" | "alignContent" | "justifyContent" | "gap" | "columnGap" | "rowGap" | "as" | "style" | "onLoad" | "onError" | "onClick" | "onSubmit" | "onChange" | "onSelect" | "onBlur" | "onFocus" | "inlist" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>>, "area" | "slot" | "title" | "isDisabled" | "id" | "className" | "testId" | "alignSelf" | "backgroundColor" | "backgroundImage" | "border" | "borderRadius" | "bottom" | "boxShadow" | "color" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "height" | "left" | "letterSpacing" | "lineHeight" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflow" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textDecoration" | "textTransform" | "top" | "transform" | "transformOrigin" | "width" | "whiteSpace" | "flex" | "order" | "grow" | "shrink" | "basis" | "column" | "columnEnd" | "columnSpan" | "columnStart" | "row" | "rowEnd" | "rowSpan" | "rowStart" | "ariaLabel" | "ariaValuetext" | "role" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "heading" | "direction" | "wrap" | "alignItems" | "alignContent" | "justifyContent" | "gap" | "columnGap" | "rowGap" | "variation" | "isDismissible" | "dismissButtonLabel" | "hasIcon" | "as" | "style" | "onLoad" | "onError" | "onClick" | "onSubmit" | "onChange" | "onSelect" | "onBlur" | "onFocus" | "onDismiss" | "buttonRef" | "inlist" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import type { AutocompleteProps, Primitive } from '../types';
3
+ export declare const AutocompletePrimitive: Primitive<AutocompleteProps, 'input'>;
4
+ /**
5
+ * [📖 Docs](https://ui.docs.amplify.aws/react/components/autocomplete)
6
+ */
7
+ export declare const Autocomplete: React.ForwardRefExoticComponent<Pick<import("../types").PrimitivePropsWithRef<AutocompleteProps, "input">, "area" | "slot" | "title" | "isDisabled" | "id" | "className" | "testId" | "alignSelf" | "backgroundColor" | "backgroundImage" | "border" | "borderRadius" | "bottom" | "boxShadow" | "color" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "height" | "left" | "letterSpacing" | "lineHeight" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflow" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textDecoration" | "textTransform" | "top" | "transform" | "transformOrigin" | "width" | "whiteSpace" | "flex" | "order" | "grow" | "shrink" | "basis" | "column" | "columnEnd" | "columnSpan" | "columnStart" | "row" | "rowEnd" | "rowSpan" | "rowStart" | "ariaLabel" | "ariaValuetext" | "role" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "direction" | "wrap" | "alignItems" | "alignContent" | "justifyContent" | "gap" | "columnGap" | "rowGap" | "variation" | "form" | "label" | "pattern" | "list" | "step" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "readOnly" | "required" | "size" | "src" | "type" | "value" | "isLoading" | "hasSearchButton" | "hasSearchIcon" | "labelHidden" | "clearButtonLabel" | "outerEndComponent" | "outerStartComponent" | "innerStartComponent" | "innerEndComponent" | "descriptiveText" | "errorMessage" | "hasError" | "isReadOnly" | "isRequired" | "as" | "style" | "onLoad" | "onError" | "onClick" | "onSubmit" | "onClear" | "searchButtonRef" | "onChange" | "options" | "menuSlots" | "optionFilter" | "renderOption" | "onSelect" | "onBlur" | "onFocus" | "inlist" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,2 @@
1
+ import type { Primitive, AutocompleteMenuProps } from '../types';
2
+ export declare const AutocompleteMenu: Primitive<AutocompleteMenuProps, 'div'>;
@@ -0,0 +1,2 @@
1
+ import type { Primitive, AutocompleteOptionProps } from '../types';
2
+ export declare const AutocompleteOption: Primitive<AutocompleteOptionProps, 'li'>;
@@ -0,0 +1 @@
1
+ export { Autocomplete } from './Autocomplete';
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import type { ComboBoxOption, UseAutocompleteProps } from '../types';
3
+ export declare const useAutocomplete: ({ defaultValue, value, options, optionFilter, onBlur, onChange, onClear, onClick, onFocus, onSelect, onSubmit, }: UseAutocompleteProps) => {
4
+ activeOptionId: string;
5
+ autocompleteId: string;
6
+ composedValue: string;
7
+ filteredOptions: ComboBoxOption[];
8
+ handleOnBlur: React.FocusEventHandler<HTMLInputElement>;
9
+ handleOnClear: () => void;
10
+ handleOnClick: React.MouseEventHandler<HTMLInputElement>;
11
+ handleOnFocus: React.FocusEventHandler<HTMLInputElement>;
12
+ handleOnChange: React.ChangeEventHandler<HTMLInputElement>;
13
+ handleOnKeyDown: React.KeyboardEventHandler<HTMLInputElement>;
14
+ isControlled: boolean;
15
+ isCustomFiltering: boolean;
16
+ isMenuOpen: boolean;
17
+ listboxId: string;
18
+ menuId: string;
19
+ optionBaseId: string;
20
+ setActiveOption: React.Dispatch<React.SetStateAction<ComboBoxOption>>;
21
+ setIsMenuOpen: React.Dispatch<React.SetStateAction<boolean>>;
22
+ setInternalValue: React.Dispatch<React.SetStateAction<string>>;
23
+ };