@aws-amplify/ui-react 3.2.1 → 3.3.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 Tue, 26 Jul 2022 22:28:56 GMT
6
+ * Generated on Wed, 03 Aug 2022 17:04:38 GMT
7
7
  */
8
8
  :root, [data-amplify-theme] {
9
9
  --amplify-transforms-slide-x-large: translateX(2em);
@@ -1373,6 +1373,11 @@ strong.amplify-text {
1373
1373
  line-height: var(--amplify-components-heading-line-height);
1374
1374
  display: block;
1375
1375
  }
1376
+ .amplify-heading--truncated {
1377
+ overflow: hidden;
1378
+ text-overflow: ellipsis;
1379
+ white-space: nowrap;
1380
+ }
1376
1381
 
1377
1382
  .amplify-heading--1 {
1378
1383
  font-size: var(--amplify-components-heading-1-font-size);
@@ -1533,6 +1538,7 @@ strong.amplify-text {
1533
1538
  -moz-user-select: text;
1534
1539
  -ms-user-select: text;
1535
1540
  user-select: text;
1541
+ white-space: pre-wrap;
1536
1542
  }
1537
1543
  .amplify-textarea:focus {
1538
1544
  border-color: var(--amplify-components-fieldcontrol-focus-border-color);
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { AlertVariations } from '../types';
3
3
  interface AlertIconProps {
4
4
  variation: AlertVariations;
5
+ ariaHidden?: boolean;
5
6
  }
6
7
  export declare const AlertIcon: React.FC<AlertIconProps>;
7
8
  export {};
@@ -3,6 +3,6 @@ import { CollectionProps } from '../types';
3
3
  * [📖 Docs](https://ui.docs.amplify.aws/react/components/collection)
4
4
  */
5
5
  export declare const Collection: {
6
- <Item>({ className, isSearchable, isPaginated, items, itemsPerPage, searchFilter, searchLabel, searchPlaceholder, type, testId, ...rest }: CollectionProps<Item>): JSX.Element;
6
+ <Item>({ className, isSearchable, isPaginated, items, itemsPerPage, searchFilter, searchLabel, searchNoResultsFound, searchPlaceholder, type, testId, ...rest }: CollectionProps<Item>): JSX.Element;
7
7
  displayName: string;
8
8
  };
@@ -11,6 +11,7 @@ export declare const ComponentText: {
11
11
  };
12
12
  Collection: {
13
13
  searchButtonLabel: string;
14
+ searchNoResultsFound: string;
14
15
  };
15
16
  Fields: {
16
17
  clearButtonLabel: string;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { FlexProps } from './flex';
2
3
  import { GridProps } from './grid';
3
4
  import { BaseStyleProps } from './style';
@@ -42,6 +43,11 @@ export interface CollectionWrapperProps extends BaseStyleProps {
42
43
  * Search field placeholder
43
44
  */
44
45
  searchPlaceholder?: string;
46
+ /**
47
+ * @description
48
+ * Controls what is displayed when no results are found from the Collection search
49
+ */
50
+ searchNoResultsFound?: React.ReactNode;
45
51
  }
46
52
  export interface CollectionBaseProps<Item> {
47
53
  /**
@@ -21,7 +21,7 @@ export interface IconProps extends ViewProps {
21
21
  * @description
22
22
  * This is used to define a string that labels the current element.
23
23
  */
24
- ariaLabel: string;
24
+ ariaLabel?: string;
25
25
  /**
26
26
  * @description
27
27
  * This defines the position and dimension, in user space, of an SVG viewport.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -56,7 +56,7 @@
56
56
  "size": "yarn run size-limit"
57
57
  },
58
58
  "dependencies": {
59
- "@aws-amplify/ui": "3.12.4",
59
+ "@aws-amplify/ui": "3.12.5",
60
60
  "@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
61
61
  "@radix-ui/react-accordion": "0.1.6",
62
62
  "@radix-ui/react-dropdown-menu": "0.1.6",