@aws-amplify/ui-react 6.5.5 → 6.7.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/{Field-CIQvkMkM.js → Field-DbA9eYRa.js} +108 -0
- package/dist/{ThemeStyle-CgfvQJ7V.js → ThemeStyle-DA2-Clfz.js} +0 -8
- package/dist/esm/PrimitiveCatalog.mjs +328 -0
- package/dist/esm/components/AccountSettings/ChangePassword/ChangePassword.mjs +2 -0
- package/dist/esm/components/AccountSettings/ChangePassword/defaults.mjs +1 -0
- package/dist/esm/components/AccountSettings/DeleteUser/DeleteUser.mjs +2 -0
- package/dist/esm/components/AccountSettings/DeleteUser/defaults.mjs +1 -0
- package/dist/esm/components/AccountSettings/shared/Defaults.mjs +1 -0
- package/dist/esm/components/FileSelect/FileSelect.mjs +70 -0
- package/dist/esm/components/ThemeProvider/ComponentStyle.mjs +0 -4
- package/dist/esm/components/ThemeProvider/GlobalStyle.mjs +0 -4
- package/dist/esm/components/ThemeProvider/Style.mjs +0 -4
- package/dist/esm/components/ThemeProvider/ThemeStyle.mjs +0 -4
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/internal.mjs +2 -0
- package/dist/esm/primitives/Icon/context/StorageBrowserIcons.mjs +68 -0
- package/dist/esm/primitives/TextArea/useAutoresizeTextarea.mjs +1 -1
- package/dist/esm/primitives/index.mjs +1 -0
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +26 -64
- package/dist/internal.js +399 -1
- package/dist/server.js +1 -9
- package/dist/styles/AIConversation.css +11 -0
- package/dist/styles/AIConversation.layer.css +11 -0
- package/dist/styles/StorageBrowser.css +150 -0
- package/dist/styles/StorageBrowser.layer.css +152 -0
- package/dist/styles/base.css +1 -0
- package/dist/styles/base.layer.css +1 -0
- package/dist/styles.css +163 -0
- package/dist/styles.layer.css +163 -0
- package/dist/types/components/FileSelect/FileSelect.d.ts +59 -0
- package/dist/types/components/FileSelect/index.d.ts +1 -0
- package/dist/types/components/ThemeProvider/ComponentStyle.d.ts +0 -4
- package/dist/types/components/ThemeProvider/GlobalStyle.d.ts +0 -4
- package/dist/types/components/ThemeProvider/Style.d.ts +0 -4
- package/dist/types/components/ThemeProvider/ThemeStyle.d.ts +0 -4
- package/dist/types/internal.d.ts +2 -0
- package/dist/types/primitives/Icon/context/IconsContext.d.ts +2 -0
- package/dist/types/primitives/Icon/context/StorageBrowserIcons.d.ts +35 -0
- package/dist/types/primitives/components.d.ts +1 -0
- package/dist/types/primitives/types/field.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type StorageBrowserIconType = 'action-queued' | 'action-progress' | 'action-canceled' | 'action-success' | 'action-error' | 'action-initial' | 'action-info' | 'cancel' | 'create-folder' | 'copy-file' | 'delete-file' | 'dismiss' | 'download' | 'error' | 'exit' | 'info' | 'file' | 'folder' | 'loading' | 'menu' | `paginate-${'next' | 'previous'}` | 'refresh' | 'search' | 'sort-ascending' | 'sort-descending' | 'sort-indeterminate' | 'success' | 'upload-file' | 'upload-folder' | 'vertical-kebab' | 'warning';
|
|
2
|
+
export declare const STORAGE_BROWSER_ICON_PATHS: {
|
|
3
|
+
readonly 'action-canceled': "M280-440h400v-80H280v80ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
4
|
+
readonly 'action-error': "M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
5
|
+
readonly 'action-info': "M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
6
|
+
readonly 'action-initial': "M480-360q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0 280q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
7
|
+
readonly 'action-progress': "M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Z";
|
|
8
|
+
readonly 'action-queued': "M280-420q25 0 42.5-17.5T340-480q0-25-17.5-42.5T280-540q-25 0-42.5 17.5T220-480q0 25 17.5 42.5T280-420Zm200 0q25 0 42.5-17.5T540-480q0-25-17.5-42.5T480-540q-25 0-42.5 17.5T420-480q0 25 17.5 42.5T480-420Zm200 0q25 0 42.5-17.5T740-480q0-25-17.5-42.5T680-540q-25 0-42.5 17.5T620-480q0 25 17.5 42.5T680-420ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
9
|
+
readonly 'action-success': "m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
10
|
+
readonly cancel: "m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
11
|
+
readonly 'create-folder': "M560-320h80v-80h80v-80h-80v-80h-80v80h-80v80h80v80ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z";
|
|
12
|
+
readonly 'copy-file': "M760-200H320q-33 0-56.5-23.5T240-280v-560q0-33 23.5-56.5T320-920h280l240 240v400q0 33-23.5 56.5T760-200ZM560-640v-200H320v560h440v-360H560ZM160-40q-33 0-56.5-23.5T80-120v-560h80v560h440v80H160Zm160-800v200-200 560-560Z";
|
|
13
|
+
readonly 'delete-file': "M240-800v200-200 640-9.5 9.5-640Zm0 720q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v174q-19-7-39-10.5t-41-3.5v-120H520v-200H240v640h254q8 23 20 43t28 37H240Zm396-20-56-56 84-84-84-84 56-56 84 84 84-84 56 56-83 84 83 84-56 56-84-83-84 83Z";
|
|
14
|
+
readonly dismiss: "m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z";
|
|
15
|
+
readonly download: "M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z";
|
|
16
|
+
readonly error: "M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
17
|
+
readonly exit: "M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z";
|
|
18
|
+
readonly file: "M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z";
|
|
19
|
+
readonly folder: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z";
|
|
20
|
+
readonly info: "M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
21
|
+
readonly loading: "M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Z";
|
|
22
|
+
readonly menu: "M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z";
|
|
23
|
+
readonly 'paginate-next': "M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z";
|
|
24
|
+
readonly 'paginate-previous': "M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z";
|
|
25
|
+
readonly refresh: "M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z";
|
|
26
|
+
readonly search: "M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z";
|
|
27
|
+
readonly 'sort-ascending': "m280-400 200-200 200 200H280Z";
|
|
28
|
+
readonly 'sort-descending': "M480-360 280-560h400L480-360Z";
|
|
29
|
+
readonly 'sort-indeterminate': "M240-440v-80h480v80H240Z";
|
|
30
|
+
readonly success: "m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z";
|
|
31
|
+
readonly 'upload-file': "M440-200h80v-167l64 64 56-57-160-160-160 160 57 56 63-63v167ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z";
|
|
32
|
+
readonly 'upload-folder': "M440-280h80v-168l64 64 56-56-160-160-160 160 56 56 64-64v168ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z";
|
|
33
|
+
readonly 'vertical-kebab': "M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z";
|
|
34
|
+
readonly warning: "m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z";
|
|
35
|
+
};
|
|
@@ -6,6 +6,7 @@ export { Breadcrumbs } from './Breadcrumbs';
|
|
|
6
6
|
export { Button } from './Button';
|
|
7
7
|
export { ButtonGroup } from './ButtonGroup';
|
|
8
8
|
export { Card } from './Card';
|
|
9
|
+
export { Checkbox } from './Checkbox';
|
|
9
10
|
export { CheckboxField } from './CheckboxField';
|
|
10
11
|
export { Collection } from './Collection';
|
|
11
12
|
export { Divider } from './Divider';
|
|
@@ -19,7 +19,7 @@ export interface BaseFieldProps extends BaseViewProps {
|
|
|
19
19
|
* @description
|
|
20
20
|
* When defined and `hasError` is true, show error message
|
|
21
21
|
*/
|
|
22
|
-
errorMessage?:
|
|
22
|
+
errorMessage?: React.ReactNode;
|
|
23
23
|
/**
|
|
24
24
|
* @description
|
|
25
25
|
* Label text for field (required)
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.7.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"typecheck": "tsc --noEmit"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@aws-amplify/ui": "6.
|
|
59
|
-
"@aws-amplify/ui-react-core": "3.0
|
|
58
|
+
"@aws-amplify/ui": "6.7.0",
|
|
59
|
+
"@aws-amplify/ui-react-core": "3.1.0",
|
|
60
60
|
"@radix-ui/react-direction": "1.0.0",
|
|
61
61
|
"@radix-ui/react-dropdown-menu": "1.0.0",
|
|
62
62
|
"@radix-ui/react-slider": "1.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@aws-amplify/core": "*",
|
|
70
|
-
"aws-amplify": "^6.
|
|
70
|
+
"aws-amplify": "^6.9.0",
|
|
71
71
|
"react": "^16.14.0 || ^17.0 || ^18.0",
|
|
72
72
|
"react-dom": "^16.14.0 || ^17.0 || ^18.0"
|
|
73
73
|
},
|