@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/{IconWarning-2a211ab8.js → IconWarning-281e9bf4.js} +1 -1
- package/dist/esm/PrimitiveCatalog.js +1 -1
- package/dist/esm/primitives/Alert/Alert.js +1 -1
- package/dist/esm/primitives/Alert/AlertIcon.js +1 -1
- package/dist/esm/primitives/Collection/Collection.js +1 -1
- package/dist/esm/primitives/Heading/Heading.js +1 -1
- package/dist/esm/primitives/shared/constants.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/styles.css +7 -1
- package/dist/types/primitives/Alert/AlertIcon.d.ts +1 -0
- package/dist/types/primitives/Collection/Collection.d.ts +1 -1
- package/dist/types/primitives/shared/constants.d.ts +1 -0
- package/dist/types/primitives/types/collection.d.ts +6 -0
- package/dist/types/primitives/types/icon.d.ts +1 -1
- package/package.json +2 -2
- package/dist/primitives.json +0 -27133
package/dist/styles.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Do not edit directly
|
|
6
|
-
* Generated on
|
|
6
|
+
* Generated on 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);
|
|
@@ -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
|
};
|
|
@@ -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
|
|
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.
|
|
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.
|
|
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",
|