@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.
Files changed (43) hide show
  1. package/dist/{Field-CIQvkMkM.js → Field-DbA9eYRa.js} +108 -0
  2. package/dist/{ThemeStyle-CgfvQJ7V.js → ThemeStyle-DA2-Clfz.js} +0 -8
  3. package/dist/esm/PrimitiveCatalog.mjs +328 -0
  4. package/dist/esm/components/AccountSettings/ChangePassword/ChangePassword.mjs +2 -0
  5. package/dist/esm/components/AccountSettings/ChangePassword/defaults.mjs +1 -0
  6. package/dist/esm/components/AccountSettings/DeleteUser/DeleteUser.mjs +2 -0
  7. package/dist/esm/components/AccountSettings/DeleteUser/defaults.mjs +1 -0
  8. package/dist/esm/components/AccountSettings/shared/Defaults.mjs +1 -0
  9. package/dist/esm/components/FileSelect/FileSelect.mjs +70 -0
  10. package/dist/esm/components/ThemeProvider/ComponentStyle.mjs +0 -4
  11. package/dist/esm/components/ThemeProvider/GlobalStyle.mjs +0 -4
  12. package/dist/esm/components/ThemeProvider/Style.mjs +0 -4
  13. package/dist/esm/components/ThemeProvider/ThemeStyle.mjs +0 -4
  14. package/dist/esm/index.mjs +1 -0
  15. package/dist/esm/internal.mjs +2 -0
  16. package/dist/esm/primitives/Icon/context/StorageBrowserIcons.mjs +68 -0
  17. package/dist/esm/primitives/TextArea/useAutoresizeTextarea.mjs +1 -1
  18. package/dist/esm/primitives/index.mjs +1 -0
  19. package/dist/esm/version.mjs +1 -1
  20. package/dist/index.js +26 -64
  21. package/dist/internal.js +399 -1
  22. package/dist/server.js +1 -9
  23. package/dist/styles/AIConversation.css +11 -0
  24. package/dist/styles/AIConversation.layer.css +11 -0
  25. package/dist/styles/StorageBrowser.css +150 -0
  26. package/dist/styles/StorageBrowser.layer.css +152 -0
  27. package/dist/styles/base.css +1 -0
  28. package/dist/styles/base.layer.css +1 -0
  29. package/dist/styles.css +163 -0
  30. package/dist/styles.layer.css +163 -0
  31. package/dist/types/components/FileSelect/FileSelect.d.ts +59 -0
  32. package/dist/types/components/FileSelect/index.d.ts +1 -0
  33. package/dist/types/components/ThemeProvider/ComponentStyle.d.ts +0 -4
  34. package/dist/types/components/ThemeProvider/GlobalStyle.d.ts +0 -4
  35. package/dist/types/components/ThemeProvider/Style.d.ts +0 -4
  36. package/dist/types/components/ThemeProvider/ThemeStyle.d.ts +0 -4
  37. package/dist/types/internal.d.ts +2 -0
  38. package/dist/types/primitives/Icon/context/IconsContext.d.ts +2 -0
  39. package/dist/types/primitives/Icon/context/StorageBrowserIcons.d.ts +35 -0
  40. package/dist/types/primitives/components.d.ts +1 -0
  41. package/dist/types/primitives/types/field.d.ts +1 -1
  42. package/dist/types/version.d.ts +1 -1
  43. package/package.json +4 -4
package/dist/internal.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Field = require('./Field-CIQvkMkM.js');
5
+ var Field = require('./Field-DbA9eYRa.js');
6
6
  var React = require('react');
7
7
  var Storage = require('aws-amplify/storage');
8
8
  var ui = require('@aws-amplify/ui');
@@ -154,6 +154,73 @@ const IconUpload = (props) => {
154
154
  React__namespace.createElement("path", { d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11 8 15.01z", fill: "currentColor" }))));
155
155
  };
156
156
 
157
+ const STORAGE_BROWSER_ICON_PATHS = {
158
+ // "Do Not Disturb On"
159
+ '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',
160
+ // "Error"
161
+ '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',
162
+ // "Info"
163
+ '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',
164
+ // "Adjust"
165
+ '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',
166
+ // "Progress Activity"
167
+ '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',
168
+ // "Pending"
169
+ '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',
170
+ // "Check Circle" icon
171
+ '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',
172
+ // "Cancel"
173
+ 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',
174
+ // "Create New Folder"
175
+ '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',
176
+ // "Copy file"
177
+ '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',
178
+ // "Delete file"
179
+ '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',
180
+ // "Close"
181
+ 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',
182
+ // "Download" icon
183
+ 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',
184
+ // "Error"
185
+ 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',
186
+ // "Arrow Left Alt" icon
187
+ exit: 'M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z',
188
+ // "Draft" icon
189
+ 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',
190
+ // "Folder" icon
191
+ 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',
192
+ // "Info" icon
193
+ 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',
194
+ // "Progress Activity" icon
195
+ 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',
196
+ // "More Vert" icon
197
+ 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',
198
+ // "Chevron Right" icon
199
+ 'paginate-next': 'M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z',
200
+ // "Chevron Left" icon
201
+ 'paginate-previous': 'M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z',
202
+ // "Refresh" icon
203
+ 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',
204
+ // "Search" icon
205
+ 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',
206
+ // "Arrow Drop Up" icon
207
+ 'sort-ascending': 'm280-400 200-200 200 200H280Z',
208
+ // "Arrow Drop Down" icon
209
+ 'sort-descending': 'M480-360 280-560h400L480-360Z',
210
+ // "Check Indeterminate Small" icon
211
+ 'sort-indeterminate': 'M240-440v-80h480v80H240Z',
212
+ // "Check Circle" icon
213
+ 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',
214
+ // "Upload File"
215
+ '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',
216
+ // "Upload Folder"
217
+ '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',
218
+ // "More Vert" icon
219
+ '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',
220
+ // "Warning" icon
221
+ 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',
222
+ };
223
+
157
224
  const PrimitiveCatalog = {
158
225
  "Alert": {
159
226
  "properties": {
@@ -2391,6 +2458,334 @@ const PrimitiveCatalog = {
2391
2458
  }
2392
2459
  }
2393
2460
  },
2461
+ "Checkbox": {
2462
+ "properties": {
2463
+ "label": {
2464
+ "type": "string"
2465
+ },
2466
+ "labelHidden": {
2467
+ "type": "boolean"
2468
+ },
2469
+ "name": {
2470
+ "type": "string"
2471
+ },
2472
+ "value": {
2473
+ "type": "string"
2474
+ },
2475
+ "labelPosition": {
2476
+ "type": "string"
2477
+ },
2478
+ "isIndeterminate": {
2479
+ "type": "boolean"
2480
+ },
2481
+ "isDisabled": {
2482
+ "type": "boolean"
2483
+ },
2484
+ "id": {
2485
+ "type": "string"
2486
+ },
2487
+ "children": {
2488
+ "type": "string"
2489
+ },
2490
+ "className": {
2491
+ "type": "string"
2492
+ },
2493
+ "testId": {
2494
+ "type": "string"
2495
+ },
2496
+ "inert": {
2497
+ "type": "boolean"
2498
+ },
2499
+ "alignSelf": {
2500
+ "type": "string"
2501
+ },
2502
+ "backgroundColor": {
2503
+ "type": "string"
2504
+ },
2505
+ "backgroundImage": {
2506
+ "type": "string"
2507
+ },
2508
+ "border": {
2509
+ "type": "string"
2510
+ },
2511
+ "borderColor": {
2512
+ "type": "string"
2513
+ },
2514
+ "borderWidth": {
2515
+ "type": "string"
2516
+ },
2517
+ "borderStyle": {
2518
+ "type": "string"
2519
+ },
2520
+ "borderRadius": {
2521
+ "type": "string"
2522
+ },
2523
+ "bottom": {
2524
+ "type": "string"
2525
+ },
2526
+ "boxShadow": {
2527
+ "type": "string"
2528
+ },
2529
+ "color": {
2530
+ "type": "string"
2531
+ },
2532
+ "display": {
2533
+ "type": "string"
2534
+ },
2535
+ "fontFamily": {
2536
+ "type": "string"
2537
+ },
2538
+ "fontSize": {
2539
+ "type": "string"
2540
+ },
2541
+ "fontStyle": {
2542
+ "type": "string"
2543
+ },
2544
+ "fontWeight": {
2545
+ "type": "string"
2546
+ },
2547
+ "height": {
2548
+ "type": "string"
2549
+ },
2550
+ "left": {
2551
+ "type": "string"
2552
+ },
2553
+ "letterSpacing": {
2554
+ "type": "string"
2555
+ },
2556
+ "lineHeight": {
2557
+ "type": "string"
2558
+ },
2559
+ "margin": {
2560
+ "type": "string"
2561
+ },
2562
+ "marginBlock": {
2563
+ "type": "string"
2564
+ },
2565
+ "marginBlockEnd": {
2566
+ "type": "string"
2567
+ },
2568
+ "marginBlockStart": {
2569
+ "type": "string"
2570
+ },
2571
+ "marginBottom": {
2572
+ "type": "string"
2573
+ },
2574
+ "marginInline": {
2575
+ "type": "string"
2576
+ },
2577
+ "marginInlineEnd": {
2578
+ "type": "string"
2579
+ },
2580
+ "marginInlineStart": {
2581
+ "type": "string"
2582
+ },
2583
+ "marginLeft": {
2584
+ "type": "string"
2585
+ },
2586
+ "marginRight": {
2587
+ "type": "string"
2588
+ },
2589
+ "marginTop": {
2590
+ "type": "string"
2591
+ },
2592
+ "maxHeight": {
2593
+ "type": "string"
2594
+ },
2595
+ "maxWidth": {
2596
+ "type": "string"
2597
+ },
2598
+ "minHeight": {
2599
+ "type": "string"
2600
+ },
2601
+ "minWidth": {
2602
+ "type": "string"
2603
+ },
2604
+ "opacity": {
2605
+ "type": "string"
2606
+ },
2607
+ "overflow": {
2608
+ "type": "string"
2609
+ },
2610
+ "padding": {
2611
+ "type": "string"
2612
+ },
2613
+ "paddingBlock": {
2614
+ "type": "string"
2615
+ },
2616
+ "paddingBlockEnd": {
2617
+ "type": "string"
2618
+ },
2619
+ "paddingBlockStart": {
2620
+ "type": "string"
2621
+ },
2622
+ "paddingBottom": {
2623
+ "type": "string"
2624
+ },
2625
+ "paddingInline": {
2626
+ "type": "string"
2627
+ },
2628
+ "paddingInlineEnd": {
2629
+ "type": "string"
2630
+ },
2631
+ "paddingInlineStart": {
2632
+ "type": "string"
2633
+ },
2634
+ "paddingLeft": {
2635
+ "type": "string"
2636
+ },
2637
+ "paddingRight": {
2638
+ "type": "string"
2639
+ },
2640
+ "paddingTop": {
2641
+ "type": "string"
2642
+ },
2643
+ "position": {
2644
+ "type": "string"
2645
+ },
2646
+ "right": {
2647
+ "type": "string"
2648
+ },
2649
+ "textAlign": {
2650
+ "type": "string"
2651
+ },
2652
+ "textDecoration": {
2653
+ "type": "string"
2654
+ },
2655
+ "textTransform": {
2656
+ "type": "string"
2657
+ },
2658
+ "top": {
2659
+ "type": "string"
2660
+ },
2661
+ "transform": {
2662
+ "type": "string"
2663
+ },
2664
+ "transformOrigin": {
2665
+ "type": "string"
2666
+ },
2667
+ "width": {
2668
+ "type": "string"
2669
+ },
2670
+ "whiteSpace": {
2671
+ "type": "string"
2672
+ },
2673
+ "flex": {
2674
+ "type": "string"
2675
+ },
2676
+ "order": {
2677
+ "type": "string"
2678
+ },
2679
+ "grow": {
2680
+ "type": "string"
2681
+ },
2682
+ "shrink": {
2683
+ "type": "string"
2684
+ },
2685
+ "basis": {
2686
+ "type": "string"
2687
+ },
2688
+ "area": {
2689
+ "type": "string"
2690
+ },
2691
+ "column": {
2692
+ "type": "string"
2693
+ },
2694
+ "columnEnd": {
2695
+ "type": "string"
2696
+ },
2697
+ "columnSpan": {
2698
+ "type": "string"
2699
+ },
2700
+ "columnStart": {
2701
+ "type": "string"
2702
+ },
2703
+ "row": {
2704
+ "type": "string"
2705
+ },
2706
+ "rowEnd": {
2707
+ "type": "string"
2708
+ },
2709
+ "rowSpan": {
2710
+ "type": "string"
2711
+ },
2712
+ "rowStart": {
2713
+ "type": "string"
2714
+ },
2715
+ "ariaLabel": {
2716
+ "type": "string"
2717
+ },
2718
+ "ariaValuetext": {
2719
+ "type": "string"
2720
+ },
2721
+ "role": {
2722
+ "type": "string"
2723
+ },
2724
+ "direction": {
2725
+ "type": "string"
2726
+ },
2727
+ "wrap": {
2728
+ "type": "string"
2729
+ },
2730
+ "alignItems": {
2731
+ "type": "string"
2732
+ },
2733
+ "alignContent": {
2734
+ "type": "string"
2735
+ },
2736
+ "justifyContent": {
2737
+ "type": "string"
2738
+ },
2739
+ "gap": {
2740
+ "type": "string"
2741
+ },
2742
+ "columnGap": {
2743
+ "type": "string"
2744
+ },
2745
+ "rowGap": {
2746
+ "type": "string"
2747
+ },
2748
+ "autoComplete": {
2749
+ "type": "string"
2750
+ },
2751
+ "checked": {
2752
+ "type": "boolean"
2753
+ },
2754
+ "defaultChecked": {
2755
+ "type": "boolean"
2756
+ },
2757
+ "defaultValue": {
2758
+ "type": "string"
2759
+ },
2760
+ "hasError": {
2761
+ "type": "boolean"
2762
+ },
2763
+ "enterKeyHint": {
2764
+ "type": "string"
2765
+ },
2766
+ "inputMode": {
2767
+ "type": "string"
2768
+ },
2769
+ "isReadOnly": {
2770
+ "type": "boolean"
2771
+ },
2772
+ "isRequired": {
2773
+ "type": "boolean"
2774
+ },
2775
+ "placeholder": {
2776
+ "type": "string"
2777
+ },
2778
+ "size": {
2779
+ "type": "string"
2780
+ },
2781
+ "type": {
2782
+ "type": "string"
2783
+ },
2784
+ "variation": {
2785
+ "type": "string"
2786
+ }
2787
+ }
2788
+ },
2394
2789
  "CheckboxField": {
2395
2790
  "properties": {
2396
2791
  "label": {
@@ -16681,6 +17076,7 @@ const PrimitiveCatalog = {
16681
17076
 
16682
17077
  exports.AlertIcon = Field.AlertIcon;
16683
17078
  exports.Field = Field.Field;
17079
+ exports.FileSelect = Field.FileSelect;
16684
17080
  exports.IconAdd = Field.IconAdd;
16685
17081
  exports.IconCheck = Field.IconCheck;
16686
17082
  exports.IconCheckCircle = Field.IconCheckCircle;
@@ -16702,6 +17098,7 @@ exports.IconWarning = Field.IconWarning;
16702
17098
  exports.useAuth = Field.useAuth;
16703
17099
  exports.useColorMode = Field.useColorMode;
16704
17100
  exports.useDeprecationWarning = Field.useDeprecationWarning;
17101
+ exports.useFileSelect = Field.useFileSelect;
16705
17102
  exports.useIcons = Field.useIcons;
16706
17103
  Object.defineProperty(exports, "useDropZone", {
16707
17104
  enumerable: true,
@@ -16716,5 +17113,6 @@ exports.IconFile = IconFile;
16716
17113
  exports.IconSend = IconSend;
16717
17114
  exports.IconUpload = IconUpload;
16718
17115
  exports.PrimitiveCatalog = PrimitiveCatalog;
17116
+ exports.STORAGE_BROWSER_ICON_PATHS = STORAGE_BROWSER_ICON_PATHS;
16719
17117
  exports.useStorageURL = useStorageURL;
16720
17118
  exports.useThemeBreakpoint = useThemeBreakpoint;
package/dist/server.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ThemeStyle = require('./ThemeStyle-CgfvQJ7V.js');
5
+ var ThemeStyle = require('./ThemeStyle-DA2-Clfz.js');
6
6
  var React = require('react');
7
7
  var ui = require('@aws-amplify/ui');
8
8
 
@@ -26,10 +26,6 @@ function _interopNamespace(e) {
26
26
 
27
27
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
28
28
 
29
- /**
30
- * @experimental
31
- * [📖 Docs](https://ui.docs.amplify.aws/react/components/theme)
32
- */
33
29
  const ComponentStyle = ({ theme, componentThemes = [], ...rest }) => {
34
30
  if (!theme || !componentThemes.length) {
35
31
  return null;
@@ -42,10 +38,6 @@ const ComponentStyle = ({ theme, componentThemes = [], ...rest }) => {
42
38
  };
43
39
  ComponentStyle.displayName = 'ComponentStyle';
44
40
 
45
- /**
46
- * @experimental
47
- * [📖 Docs](https://ui.docs.amplify.aws/react/components/theme)
48
- */
49
41
  const GlobalStyle = ({ styles, ...rest }) => {
50
42
  if (!styles) {
51
43
  return null;
@@ -41,6 +41,7 @@
41
41
  }
42
42
  .amplify-ai-conversation__message__body {
43
43
  display: flex;
44
+ flex: 1;
44
45
  flex-direction: column;
45
46
  align-items: var(--internal-body-align-items);
46
47
  gap: var(--amplify-components-ai-conversation-message-body-gap);
@@ -49,10 +50,20 @@
49
50
  background-color: var(--internal-content-bg);
50
51
  border-radius: var(--amplify-radii-medium);
51
52
  padding: var(--internal-content-padding);
53
+ display: flex;
54
+ flex-direction: column;
55
+ gap: var(--amplify-space-small);
56
+ }
57
+ .amplify-ai-conversation__message__text {
58
+ display: block;
59
+ }
60
+ .amplify-ai-conversation__message__image {
61
+ max-width: 25%;
52
62
  }
53
63
  .amplify-ai-conversation__message__actions {
54
64
  display: flex;
55
65
  flex-direction: row;
66
+ gap: var(--amplify-components-ai-conversation-message-actions-gap);
56
67
  }
57
68
  .amplify-ai-conversation__message--bubble {
58
69
  --internal-content-bg: var(--internal-bg-color);
@@ -42,6 +42,7 @@
42
42
  }
43
43
  .amplify-ai-conversation__message__body {
44
44
  display: flex;
45
+ flex: 1;
45
46
  flex-direction: column;
46
47
  align-items: var(--internal-body-align-items);
47
48
  gap: var(--amplify-components-ai-conversation-message-body-gap);
@@ -50,10 +51,20 @@
50
51
  background-color: var(--internal-content-bg);
51
52
  border-radius: var(--amplify-radii-medium);
52
53
  padding: var(--internal-content-padding);
54
+ display: flex;
55
+ flex-direction: column;
56
+ gap: var(--amplify-space-small);
57
+ }
58
+ .amplify-ai-conversation__message__text {
59
+ display: block;
60
+ }
61
+ .amplify-ai-conversation__message__image {
62
+ max-width: 25%;
53
63
  }
54
64
  .amplify-ai-conversation__message__actions {
55
65
  display: flex;
56
66
  flex-direction: row;
67
+ gap: var(--amplify-components-ai-conversation-message-actions-gap);
57
68
  }
58
69
  .amplify-ai-conversation__message--bubble {
59
70
  --internal-content-bg: var(--internal-bg-color);
@@ -0,0 +1,150 @@
1
+ .amplify-storage-browser {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: stretch;
5
+ height: 100%;
6
+ position: relative;
7
+ padding: var(--amplify-space-small);
8
+ gap: var(--amplify-space-small);
9
+ /* Error boundary */
10
+ }
11
+ .amplify-storage-browser__error {
12
+ background-color: var(--amplify-colors-background-error);
13
+ color: var(--amplify-colors-font-error);
14
+ padding: var(--amplify-space-medium);
15
+ }
16
+ .amplify-storage-browser__navigation, .amplify-storage-browser__exit {
17
+ align-self: flex-start;
18
+ }
19
+ .amplify-storage-browser__title {
20
+ font-weight: var(--amplify-font-weights-bold);
21
+ font-size: var(--amplify-font-sizes-large);
22
+ }
23
+ .amplify-storage-browser__controls, .amplify-storage-browser__summary, .amplify-storage-browser__footer {
24
+ display: flex;
25
+ flex-direction: row;
26
+ align-items: center;
27
+ justify-content: space-between;
28
+ width: 100%;
29
+ gap: var(--amplify-space-medium);
30
+ }
31
+ .amplify-storage-browser__footer {
32
+ justify-content: flex-end;
33
+ }
34
+ .amplify-storage-browser__search {
35
+ display: flex;
36
+ flex-direction: row;
37
+ flex: 1;
38
+ gap: var(--amplify-space-small);
39
+ }
40
+ .amplify-storage-browser__drop-zone {
41
+ flex: 1;
42
+ overflow: hidden;
43
+ position: relative;
44
+ width: 100%;
45
+ display: block;
46
+ }
47
+ .amplify-storage-browser__data-table {
48
+ overflow: auto;
49
+ position: relative;
50
+ border-width: var(--amplify-border-widths-small);
51
+ border-style: solid;
52
+ border-color: var(--amplify-colors-border-primary);
53
+ border-radius: var(--amplify-radii-small);
54
+ width: 100%;
55
+ height: 100%;
56
+ display: block;
57
+ }
58
+ .amplify-storage-browser__table {
59
+ width: 100%;
60
+ position: relative;
61
+ }
62
+ .amplify-storage-browser__table-head {
63
+ position: sticky;
64
+ top: 0;
65
+ background: var(--amplify-colors-background-primary);
66
+ box-shadow: var(--amplify-shadows-small);
67
+ z-index: 2;
68
+ }
69
+ .amplify-storage-browser__table-header {
70
+ border: none;
71
+ padding: var(--amplify-space-xxxs);
72
+ }
73
+ .amplify-storage-browser__table-data-cell {
74
+ padding: var(--amplify-space-xxxs);
75
+ }
76
+ .amplify-storage-browser__table-data-cell:first-child, .amplify-storage-browser__table-data-cell:last-child {
77
+ border-inline-start-width: 0;
78
+ border-inline-end-width: 0;
79
+ }
80
+ .amplify-storage-browser__table-data-cell-icon {
81
+ vertical-align: middle;
82
+ margin-inline-end: var(--amplify-space-xs);
83
+ }
84
+ .amplify-storage-browser__table-header--select, .amplify-storage-browser__table-data--select, .amplify-storage-browser__table-header--download, .amplify-storage-browser__table-data--download, .amplify-storage-browser__table-data--cancel {
85
+ text-align: center;
86
+ }
87
+ .amplify-storage-browser__table-data--size, .amplify-storage-browser__table-header--size {
88
+ text-align: end;
89
+ }
90
+ .amplify-storage-browser__table-button-data-cell, .amplify-storage-browser__table-date-data-cell, .amplify-storage-browser__table-number-data-cell, .amplify-storage-browser__table-text-data-cell, .amplify-storage-browser__table-sort-header {
91
+ display: flex;
92
+ width: 100%;
93
+ gap: var(--amplify-space-xxs);
94
+ padding: var(--amplify-space-xxs);
95
+ text-overflow: ellipsis;
96
+ overflow: hidden;
97
+ white-space: nowrap;
98
+ align-items: center;
99
+ justify-content: flex-start;
100
+ }
101
+ .amplify-storage-browser__table-button-data-cell-icon--action-progress, .amplify-storage-browser__table-date-data-cell-icon--action-progress, .amplify-storage-browser__table-number-data-cell-icon--action-progress, .amplify-storage-browser__table-text-data-cell-icon--action-progress, .amplify-storage-browser__table-sort-header-icon--action-progress {
102
+ animation-name: amplify-loader-circular;
103
+ animation-timing-function: linear;
104
+ animation-iteration-count: infinite;
105
+ animation-duration: var(--amplify-components-loader-animation-duration);
106
+ }
107
+ .amplify-storage-browser__status {
108
+ display: flex;
109
+ flex-direction: row;
110
+ gap: var(--amplify-space-xs);
111
+ align-items: center;
112
+ }
113
+ .amplify-storage-browser__status-display {
114
+ display: flex;
115
+ flex-direction: row;
116
+ justify-content: flex-end;
117
+ align-items: center;
118
+ gap: var(--amplify-space-small);
119
+ flex: 1;
120
+ }
121
+ .amplify-storage-browser__status-label {
122
+ font-weight: var(--amplify-font-weights-bold);
123
+ }
124
+ .amplify-storage-browser__status-value {
125
+ color: var(--amplify-colors-font-secondary);
126
+ }
127
+ .amplify-storage-browser__destination {
128
+ display: flex;
129
+ flex-direction: row;
130
+ gap: var(--amplify-space-xs);
131
+ align-items: center;
132
+ }
133
+ .amplify-storage-browser__destination-label {
134
+ font-weight: var(--amplify-font-weights-bold);
135
+ }
136
+ .amplify-storage-browser__message {
137
+ flex: 1;
138
+ }
139
+ .amplify-storage-browser__buttons {
140
+ justify-content: flex-end;
141
+ display: flex;
142
+ gap: var(--amplify-space-small);
143
+ }
144
+ .amplify-storage-browser__loader {
145
+ position: absolute;
146
+ stroke-width: var(--amplify-border-widths-large);
147
+ height: var(--amplify-border-widths-large);
148
+ top: 0;
149
+ z-index: 3;
150
+ }