@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,152 @@
|
|
|
1
|
+
@layer amplify.components {
|
|
2
|
+
.amplify-storage-browser {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
height: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
padding: var(--amplify-space-small);
|
|
9
|
+
gap: var(--amplify-space-small);
|
|
10
|
+
/* Error boundary */
|
|
11
|
+
}
|
|
12
|
+
.amplify-storage-browser__error {
|
|
13
|
+
background-color: var(--amplify-colors-background-error);
|
|
14
|
+
color: var(--amplify-colors-font-error);
|
|
15
|
+
padding: var(--amplify-space-medium);
|
|
16
|
+
}
|
|
17
|
+
.amplify-storage-browser__navigation, .amplify-storage-browser__exit {
|
|
18
|
+
align-self: flex-start;
|
|
19
|
+
}
|
|
20
|
+
.amplify-storage-browser__title {
|
|
21
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
22
|
+
font-size: var(--amplify-font-sizes-large);
|
|
23
|
+
}
|
|
24
|
+
.amplify-storage-browser__controls, .amplify-storage-browser__summary, .amplify-storage-browser__footer {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
width: 100%;
|
|
30
|
+
gap: var(--amplify-space-medium);
|
|
31
|
+
}
|
|
32
|
+
.amplify-storage-browser__footer {
|
|
33
|
+
justify-content: flex-end;
|
|
34
|
+
}
|
|
35
|
+
.amplify-storage-browser__search {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
flex: 1;
|
|
39
|
+
gap: var(--amplify-space-small);
|
|
40
|
+
}
|
|
41
|
+
.amplify-storage-browser__drop-zone {
|
|
42
|
+
flex: 1;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
position: relative;
|
|
45
|
+
width: 100%;
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
.amplify-storage-browser__data-table {
|
|
49
|
+
overflow: auto;
|
|
50
|
+
position: relative;
|
|
51
|
+
border-width: var(--amplify-border-widths-small);
|
|
52
|
+
border-style: solid;
|
|
53
|
+
border-color: var(--amplify-colors-border-primary);
|
|
54
|
+
border-radius: var(--amplify-radii-small);
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
display: block;
|
|
58
|
+
}
|
|
59
|
+
.amplify-storage-browser__table {
|
|
60
|
+
width: 100%;
|
|
61
|
+
position: relative;
|
|
62
|
+
}
|
|
63
|
+
.amplify-storage-browser__table-head {
|
|
64
|
+
position: sticky;
|
|
65
|
+
top: 0;
|
|
66
|
+
background: var(--amplify-colors-background-primary);
|
|
67
|
+
box-shadow: var(--amplify-shadows-small);
|
|
68
|
+
z-index: 2;
|
|
69
|
+
}
|
|
70
|
+
.amplify-storage-browser__table-header {
|
|
71
|
+
border: none;
|
|
72
|
+
padding: var(--amplify-space-xxxs);
|
|
73
|
+
}
|
|
74
|
+
.amplify-storage-browser__table-data-cell {
|
|
75
|
+
padding: var(--amplify-space-xxxs);
|
|
76
|
+
}
|
|
77
|
+
.amplify-storage-browser__table-data-cell:first-child, .amplify-storage-browser__table-data-cell:last-child {
|
|
78
|
+
border-inline-start-width: 0;
|
|
79
|
+
border-inline-end-width: 0;
|
|
80
|
+
}
|
|
81
|
+
.amplify-storage-browser__table-data-cell-icon {
|
|
82
|
+
vertical-align: middle;
|
|
83
|
+
margin-inline-end: var(--amplify-space-xs);
|
|
84
|
+
}
|
|
85
|
+
.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 {
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
.amplify-storage-browser__table-data--size, .amplify-storage-browser__table-header--size {
|
|
89
|
+
text-align: end;
|
|
90
|
+
}
|
|
91
|
+
.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 {
|
|
92
|
+
display: flex;
|
|
93
|
+
width: 100%;
|
|
94
|
+
gap: var(--amplify-space-xxs);
|
|
95
|
+
padding: var(--amplify-space-xxs);
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: flex-start;
|
|
101
|
+
}
|
|
102
|
+
.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 {
|
|
103
|
+
animation-name: amplify-loader-circular;
|
|
104
|
+
animation-timing-function: linear;
|
|
105
|
+
animation-iteration-count: infinite;
|
|
106
|
+
animation-duration: var(--amplify-components-loader-animation-duration);
|
|
107
|
+
}
|
|
108
|
+
.amplify-storage-browser__status {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: row;
|
|
111
|
+
gap: var(--amplify-space-xs);
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
114
|
+
.amplify-storage-browser__status-display {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: row;
|
|
117
|
+
justify-content: flex-end;
|
|
118
|
+
align-items: center;
|
|
119
|
+
gap: var(--amplify-space-small);
|
|
120
|
+
flex: 1;
|
|
121
|
+
}
|
|
122
|
+
.amplify-storage-browser__status-label {
|
|
123
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
124
|
+
}
|
|
125
|
+
.amplify-storage-browser__status-value {
|
|
126
|
+
color: var(--amplify-colors-font-secondary);
|
|
127
|
+
}
|
|
128
|
+
.amplify-storage-browser__destination {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
gap: var(--amplify-space-xs);
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
.amplify-storage-browser__destination-label {
|
|
135
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
136
|
+
}
|
|
137
|
+
.amplify-storage-browser__message {
|
|
138
|
+
flex: 1;
|
|
139
|
+
}
|
|
140
|
+
.amplify-storage-browser__buttons {
|
|
141
|
+
justify-content: flex-end;
|
|
142
|
+
display: flex;
|
|
143
|
+
gap: var(--amplify-space-small);
|
|
144
|
+
}
|
|
145
|
+
.amplify-storage-browser__loader {
|
|
146
|
+
position: absolute;
|
|
147
|
+
stroke-width: var(--amplify-border-widths-large);
|
|
148
|
+
height: var(--amplify-border-widths-large);
|
|
149
|
+
top: 0;
|
|
150
|
+
z-index: 3;
|
|
151
|
+
}
|
|
152
|
+
}
|
package/dist/styles/base.css
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
--amplify-components-ai-conversation-message-sender-timestamp-font-size: inherit;
|
|
41
41
|
--amplify-components-ai-conversation-message-sender-timestamp-font-weight: inherit;
|
|
42
42
|
--amplify-components-ai-conversation-message-body-gap: var(--amplify-space-xs);
|
|
43
|
+
--amplify-components-ai-conversation-message-actions-gap: var(--amplify-space-xs);
|
|
43
44
|
--amplify-components-ai-conversation-form-gap: var(--amplify-space-small);
|
|
44
45
|
--amplify-components-ai-conversation-form-padding: var(--amplify-space-small);
|
|
45
46
|
--amplify-components-ai-conversation-attachment-border-color: var(--amplify-colors-border-secondary);
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
--amplify-components-ai-conversation-message-sender-timestamp-font-size: inherit;
|
|
42
42
|
--amplify-components-ai-conversation-message-sender-timestamp-font-weight: inherit;
|
|
43
43
|
--amplify-components-ai-conversation-message-body-gap: var(--amplify-space-xs);
|
|
44
|
+
--amplify-components-ai-conversation-message-actions-gap: var(--amplify-space-xs);
|
|
44
45
|
--amplify-components-ai-conversation-form-gap: var(--amplify-space-small);
|
|
45
46
|
--amplify-components-ai-conversation-form-padding: var(--amplify-space-small);
|
|
46
47
|
--amplify-components-ai-conversation-attachment-border-color: var(--amplify-colors-border-secondary);
|
package/dist/styles.css
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
--amplify-components-ai-conversation-message-sender-timestamp-font-size: inherit;
|
|
41
41
|
--amplify-components-ai-conversation-message-sender-timestamp-font-weight: inherit;
|
|
42
42
|
--amplify-components-ai-conversation-message-body-gap: var(--amplify-space-xs);
|
|
43
|
+
--amplify-components-ai-conversation-message-actions-gap: var(--amplify-space-xs);
|
|
43
44
|
--amplify-components-ai-conversation-form-gap: var(--amplify-space-small);
|
|
44
45
|
--amplify-components-ai-conversation-form-padding: var(--amplify-space-small);
|
|
45
46
|
--amplify-components-ai-conversation-attachment-border-color: var(--amplify-colors-border-secondary);
|
|
@@ -6599,6 +6600,157 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6599
6600
|
gap: var(--amplify-space-small);
|
|
6600
6601
|
}
|
|
6601
6602
|
|
|
6603
|
+
.amplify-storage-browser {
|
|
6604
|
+
display: flex;
|
|
6605
|
+
flex-direction: column;
|
|
6606
|
+
align-items: stretch;
|
|
6607
|
+
height: 100%;
|
|
6608
|
+
position: relative;
|
|
6609
|
+
padding: var(--amplify-space-small);
|
|
6610
|
+
gap: var(--amplify-space-small);
|
|
6611
|
+
/* Error boundary */
|
|
6612
|
+
}
|
|
6613
|
+
.amplify-storage-browser__error {
|
|
6614
|
+
background-color: var(--amplify-colors-background-error);
|
|
6615
|
+
color: var(--amplify-colors-font-error);
|
|
6616
|
+
padding: var(--amplify-space-medium);
|
|
6617
|
+
}
|
|
6618
|
+
.amplify-storage-browser__navigation, .amplify-storage-browser__exit {
|
|
6619
|
+
align-self: flex-start;
|
|
6620
|
+
}
|
|
6621
|
+
.amplify-storage-browser__title {
|
|
6622
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
6623
|
+
font-size: var(--amplify-font-sizes-large);
|
|
6624
|
+
}
|
|
6625
|
+
.amplify-storage-browser__controls, .amplify-storage-browser__summary, .amplify-storage-browser__footer {
|
|
6626
|
+
display: flex;
|
|
6627
|
+
flex-direction: row;
|
|
6628
|
+
align-items: center;
|
|
6629
|
+
justify-content: space-between;
|
|
6630
|
+
width: 100%;
|
|
6631
|
+
gap: var(--amplify-space-medium);
|
|
6632
|
+
}
|
|
6633
|
+
.amplify-storage-browser__footer {
|
|
6634
|
+
justify-content: flex-end;
|
|
6635
|
+
}
|
|
6636
|
+
.amplify-storage-browser__search {
|
|
6637
|
+
display: flex;
|
|
6638
|
+
flex-direction: row;
|
|
6639
|
+
flex: 1;
|
|
6640
|
+
gap: var(--amplify-space-small);
|
|
6641
|
+
}
|
|
6642
|
+
.amplify-storage-browser__drop-zone {
|
|
6643
|
+
flex: 1;
|
|
6644
|
+
overflow: hidden;
|
|
6645
|
+
position: relative;
|
|
6646
|
+
width: 100%;
|
|
6647
|
+
display: block;
|
|
6648
|
+
}
|
|
6649
|
+
.amplify-storage-browser__data-table {
|
|
6650
|
+
overflow: auto;
|
|
6651
|
+
position: relative;
|
|
6652
|
+
border-width: var(--amplify-border-widths-small);
|
|
6653
|
+
border-style: solid;
|
|
6654
|
+
border-color: var(--amplify-colors-border-primary);
|
|
6655
|
+
border-radius: var(--amplify-radii-small);
|
|
6656
|
+
width: 100%;
|
|
6657
|
+
height: 100%;
|
|
6658
|
+
display: block;
|
|
6659
|
+
}
|
|
6660
|
+
.amplify-storage-browser__table {
|
|
6661
|
+
width: 100%;
|
|
6662
|
+
position: relative;
|
|
6663
|
+
}
|
|
6664
|
+
.amplify-storage-browser__table-head {
|
|
6665
|
+
position: sticky;
|
|
6666
|
+
top: 0;
|
|
6667
|
+
background: var(--amplify-colors-background-primary);
|
|
6668
|
+
box-shadow: var(--amplify-shadows-small);
|
|
6669
|
+
z-index: 2;
|
|
6670
|
+
}
|
|
6671
|
+
.amplify-storage-browser__table-header {
|
|
6672
|
+
border: none;
|
|
6673
|
+
padding: var(--amplify-space-xxxs);
|
|
6674
|
+
}
|
|
6675
|
+
.amplify-storage-browser__table-data-cell {
|
|
6676
|
+
padding: var(--amplify-space-xxxs);
|
|
6677
|
+
}
|
|
6678
|
+
.amplify-storage-browser__table-data-cell:first-child, .amplify-storage-browser__table-data-cell:last-child {
|
|
6679
|
+
border-inline-start-width: 0;
|
|
6680
|
+
border-inline-end-width: 0;
|
|
6681
|
+
}
|
|
6682
|
+
.amplify-storage-browser__table-data-cell-icon {
|
|
6683
|
+
vertical-align: middle;
|
|
6684
|
+
margin-inline-end: var(--amplify-space-xs);
|
|
6685
|
+
}
|
|
6686
|
+
.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 {
|
|
6687
|
+
text-align: center;
|
|
6688
|
+
}
|
|
6689
|
+
.amplify-storage-browser__table-data--size, .amplify-storage-browser__table-header--size {
|
|
6690
|
+
text-align: end;
|
|
6691
|
+
}
|
|
6692
|
+
.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 {
|
|
6693
|
+
display: flex;
|
|
6694
|
+
width: 100%;
|
|
6695
|
+
gap: var(--amplify-space-xxs);
|
|
6696
|
+
padding: var(--amplify-space-xxs);
|
|
6697
|
+
text-overflow: ellipsis;
|
|
6698
|
+
overflow: hidden;
|
|
6699
|
+
white-space: nowrap;
|
|
6700
|
+
align-items: center;
|
|
6701
|
+
justify-content: flex-start;
|
|
6702
|
+
}
|
|
6703
|
+
.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 {
|
|
6704
|
+
animation-name: amplify-loader-circular;
|
|
6705
|
+
animation-timing-function: linear;
|
|
6706
|
+
animation-iteration-count: infinite;
|
|
6707
|
+
animation-duration: var(--amplify-components-loader-animation-duration);
|
|
6708
|
+
}
|
|
6709
|
+
.amplify-storage-browser__status {
|
|
6710
|
+
display: flex;
|
|
6711
|
+
flex-direction: row;
|
|
6712
|
+
gap: var(--amplify-space-xs);
|
|
6713
|
+
align-items: center;
|
|
6714
|
+
}
|
|
6715
|
+
.amplify-storage-browser__status-display {
|
|
6716
|
+
display: flex;
|
|
6717
|
+
flex-direction: row;
|
|
6718
|
+
justify-content: flex-end;
|
|
6719
|
+
align-items: center;
|
|
6720
|
+
gap: var(--amplify-space-small);
|
|
6721
|
+
flex: 1;
|
|
6722
|
+
}
|
|
6723
|
+
.amplify-storage-browser__status-label {
|
|
6724
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
6725
|
+
}
|
|
6726
|
+
.amplify-storage-browser__status-value {
|
|
6727
|
+
color: var(--amplify-colors-font-secondary);
|
|
6728
|
+
}
|
|
6729
|
+
.amplify-storage-browser__destination {
|
|
6730
|
+
display: flex;
|
|
6731
|
+
flex-direction: row;
|
|
6732
|
+
gap: var(--amplify-space-xs);
|
|
6733
|
+
align-items: center;
|
|
6734
|
+
}
|
|
6735
|
+
.amplify-storage-browser__destination-label {
|
|
6736
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
6737
|
+
}
|
|
6738
|
+
.amplify-storage-browser__message {
|
|
6739
|
+
flex: 1;
|
|
6740
|
+
}
|
|
6741
|
+
.amplify-storage-browser__buttons {
|
|
6742
|
+
justify-content: flex-end;
|
|
6743
|
+
display: flex;
|
|
6744
|
+
gap: var(--amplify-space-small);
|
|
6745
|
+
}
|
|
6746
|
+
.amplify-storage-browser__loader {
|
|
6747
|
+
position: absolute;
|
|
6748
|
+
stroke-width: var(--amplify-border-widths-large);
|
|
6749
|
+
height: var(--amplify-border-widths-large);
|
|
6750
|
+
top: 0;
|
|
6751
|
+
z-index: 3;
|
|
6752
|
+
}
|
|
6753
|
+
|
|
6602
6754
|
.amplify-ai-conversation {
|
|
6603
6755
|
display: flex;
|
|
6604
6756
|
flex-direction: column;
|
|
@@ -6642,6 +6794,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6642
6794
|
}
|
|
6643
6795
|
.amplify-ai-conversation__message__body {
|
|
6644
6796
|
display: flex;
|
|
6797
|
+
flex: 1;
|
|
6645
6798
|
flex-direction: column;
|
|
6646
6799
|
align-items: var(--internal-body-align-items);
|
|
6647
6800
|
gap: var(--amplify-components-ai-conversation-message-body-gap);
|
|
@@ -6650,10 +6803,20 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6650
6803
|
background-color: var(--internal-content-bg);
|
|
6651
6804
|
border-radius: var(--amplify-radii-medium);
|
|
6652
6805
|
padding: var(--internal-content-padding);
|
|
6806
|
+
display: flex;
|
|
6807
|
+
flex-direction: column;
|
|
6808
|
+
gap: var(--amplify-space-small);
|
|
6809
|
+
}
|
|
6810
|
+
.amplify-ai-conversation__message__text {
|
|
6811
|
+
display: block;
|
|
6812
|
+
}
|
|
6813
|
+
.amplify-ai-conversation__message__image {
|
|
6814
|
+
max-width: 25%;
|
|
6653
6815
|
}
|
|
6654
6816
|
.amplify-ai-conversation__message__actions {
|
|
6655
6817
|
display: flex;
|
|
6656
6818
|
flex-direction: row;
|
|
6819
|
+
gap: var(--amplify-components-ai-conversation-message-actions-gap);
|
|
6657
6820
|
}
|
|
6658
6821
|
.amplify-ai-conversation__message--bubble {
|
|
6659
6822
|
--internal-content-bg: var(--internal-bg-color);
|
package/dist/styles.layer.css
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
--amplify-components-ai-conversation-message-sender-timestamp-font-size: inherit;
|
|
42
42
|
--amplify-components-ai-conversation-message-sender-timestamp-font-weight: inherit;
|
|
43
43
|
--amplify-components-ai-conversation-message-body-gap: var(--amplify-space-xs);
|
|
44
|
+
--amplify-components-ai-conversation-message-actions-gap: var(--amplify-space-xs);
|
|
44
45
|
--amplify-components-ai-conversation-form-gap: var(--amplify-space-small);
|
|
45
46
|
--amplify-components-ai-conversation-form-padding: var(--amplify-space-small);
|
|
46
47
|
--amplify-components-ai-conversation-attachment-border-color: var(--amplify-colors-border-secondary);
|
|
@@ -6600,6 +6601,157 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6600
6601
|
gap: var(--amplify-space-small);
|
|
6601
6602
|
}
|
|
6602
6603
|
|
|
6604
|
+
.amplify-storage-browser {
|
|
6605
|
+
display: flex;
|
|
6606
|
+
flex-direction: column;
|
|
6607
|
+
align-items: stretch;
|
|
6608
|
+
height: 100%;
|
|
6609
|
+
position: relative;
|
|
6610
|
+
padding: var(--amplify-space-small);
|
|
6611
|
+
gap: var(--amplify-space-small);
|
|
6612
|
+
/* Error boundary */
|
|
6613
|
+
}
|
|
6614
|
+
.amplify-storage-browser__error {
|
|
6615
|
+
background-color: var(--amplify-colors-background-error);
|
|
6616
|
+
color: var(--amplify-colors-font-error);
|
|
6617
|
+
padding: var(--amplify-space-medium);
|
|
6618
|
+
}
|
|
6619
|
+
.amplify-storage-browser__navigation, .amplify-storage-browser__exit {
|
|
6620
|
+
align-self: flex-start;
|
|
6621
|
+
}
|
|
6622
|
+
.amplify-storage-browser__title {
|
|
6623
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
6624
|
+
font-size: var(--amplify-font-sizes-large);
|
|
6625
|
+
}
|
|
6626
|
+
.amplify-storage-browser__controls, .amplify-storage-browser__summary, .amplify-storage-browser__footer {
|
|
6627
|
+
display: flex;
|
|
6628
|
+
flex-direction: row;
|
|
6629
|
+
align-items: center;
|
|
6630
|
+
justify-content: space-between;
|
|
6631
|
+
width: 100%;
|
|
6632
|
+
gap: var(--amplify-space-medium);
|
|
6633
|
+
}
|
|
6634
|
+
.amplify-storage-browser__footer {
|
|
6635
|
+
justify-content: flex-end;
|
|
6636
|
+
}
|
|
6637
|
+
.amplify-storage-browser__search {
|
|
6638
|
+
display: flex;
|
|
6639
|
+
flex-direction: row;
|
|
6640
|
+
flex: 1;
|
|
6641
|
+
gap: var(--amplify-space-small);
|
|
6642
|
+
}
|
|
6643
|
+
.amplify-storage-browser__drop-zone {
|
|
6644
|
+
flex: 1;
|
|
6645
|
+
overflow: hidden;
|
|
6646
|
+
position: relative;
|
|
6647
|
+
width: 100%;
|
|
6648
|
+
display: block;
|
|
6649
|
+
}
|
|
6650
|
+
.amplify-storage-browser__data-table {
|
|
6651
|
+
overflow: auto;
|
|
6652
|
+
position: relative;
|
|
6653
|
+
border-width: var(--amplify-border-widths-small);
|
|
6654
|
+
border-style: solid;
|
|
6655
|
+
border-color: var(--amplify-colors-border-primary);
|
|
6656
|
+
border-radius: var(--amplify-radii-small);
|
|
6657
|
+
width: 100%;
|
|
6658
|
+
height: 100%;
|
|
6659
|
+
display: block;
|
|
6660
|
+
}
|
|
6661
|
+
.amplify-storage-browser__table {
|
|
6662
|
+
width: 100%;
|
|
6663
|
+
position: relative;
|
|
6664
|
+
}
|
|
6665
|
+
.amplify-storage-browser__table-head {
|
|
6666
|
+
position: sticky;
|
|
6667
|
+
top: 0;
|
|
6668
|
+
background: var(--amplify-colors-background-primary);
|
|
6669
|
+
box-shadow: var(--amplify-shadows-small);
|
|
6670
|
+
z-index: 2;
|
|
6671
|
+
}
|
|
6672
|
+
.amplify-storage-browser__table-header {
|
|
6673
|
+
border: none;
|
|
6674
|
+
padding: var(--amplify-space-xxxs);
|
|
6675
|
+
}
|
|
6676
|
+
.amplify-storage-browser__table-data-cell {
|
|
6677
|
+
padding: var(--amplify-space-xxxs);
|
|
6678
|
+
}
|
|
6679
|
+
.amplify-storage-browser__table-data-cell:first-child, .amplify-storage-browser__table-data-cell:last-child {
|
|
6680
|
+
border-inline-start-width: 0;
|
|
6681
|
+
border-inline-end-width: 0;
|
|
6682
|
+
}
|
|
6683
|
+
.amplify-storage-browser__table-data-cell-icon {
|
|
6684
|
+
vertical-align: middle;
|
|
6685
|
+
margin-inline-end: var(--amplify-space-xs);
|
|
6686
|
+
}
|
|
6687
|
+
.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 {
|
|
6688
|
+
text-align: center;
|
|
6689
|
+
}
|
|
6690
|
+
.amplify-storage-browser__table-data--size, .amplify-storage-browser__table-header--size {
|
|
6691
|
+
text-align: end;
|
|
6692
|
+
}
|
|
6693
|
+
.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 {
|
|
6694
|
+
display: flex;
|
|
6695
|
+
width: 100%;
|
|
6696
|
+
gap: var(--amplify-space-xxs);
|
|
6697
|
+
padding: var(--amplify-space-xxs);
|
|
6698
|
+
text-overflow: ellipsis;
|
|
6699
|
+
overflow: hidden;
|
|
6700
|
+
white-space: nowrap;
|
|
6701
|
+
align-items: center;
|
|
6702
|
+
justify-content: flex-start;
|
|
6703
|
+
}
|
|
6704
|
+
.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 {
|
|
6705
|
+
animation-name: amplify-loader-circular;
|
|
6706
|
+
animation-timing-function: linear;
|
|
6707
|
+
animation-iteration-count: infinite;
|
|
6708
|
+
animation-duration: var(--amplify-components-loader-animation-duration);
|
|
6709
|
+
}
|
|
6710
|
+
.amplify-storage-browser__status {
|
|
6711
|
+
display: flex;
|
|
6712
|
+
flex-direction: row;
|
|
6713
|
+
gap: var(--amplify-space-xs);
|
|
6714
|
+
align-items: center;
|
|
6715
|
+
}
|
|
6716
|
+
.amplify-storage-browser__status-display {
|
|
6717
|
+
display: flex;
|
|
6718
|
+
flex-direction: row;
|
|
6719
|
+
justify-content: flex-end;
|
|
6720
|
+
align-items: center;
|
|
6721
|
+
gap: var(--amplify-space-small);
|
|
6722
|
+
flex: 1;
|
|
6723
|
+
}
|
|
6724
|
+
.amplify-storage-browser__status-label {
|
|
6725
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
6726
|
+
}
|
|
6727
|
+
.amplify-storage-browser__status-value {
|
|
6728
|
+
color: var(--amplify-colors-font-secondary);
|
|
6729
|
+
}
|
|
6730
|
+
.amplify-storage-browser__destination {
|
|
6731
|
+
display: flex;
|
|
6732
|
+
flex-direction: row;
|
|
6733
|
+
gap: var(--amplify-space-xs);
|
|
6734
|
+
align-items: center;
|
|
6735
|
+
}
|
|
6736
|
+
.amplify-storage-browser__destination-label {
|
|
6737
|
+
font-weight: var(--amplify-font-weights-bold);
|
|
6738
|
+
}
|
|
6739
|
+
.amplify-storage-browser__message {
|
|
6740
|
+
flex: 1;
|
|
6741
|
+
}
|
|
6742
|
+
.amplify-storage-browser__buttons {
|
|
6743
|
+
justify-content: flex-end;
|
|
6744
|
+
display: flex;
|
|
6745
|
+
gap: var(--amplify-space-small);
|
|
6746
|
+
}
|
|
6747
|
+
.amplify-storage-browser__loader {
|
|
6748
|
+
position: absolute;
|
|
6749
|
+
stroke-width: var(--amplify-border-widths-large);
|
|
6750
|
+
height: var(--amplify-border-widths-large);
|
|
6751
|
+
top: 0;
|
|
6752
|
+
z-index: 3;
|
|
6753
|
+
}
|
|
6754
|
+
|
|
6603
6755
|
.amplify-ai-conversation {
|
|
6604
6756
|
display: flex;
|
|
6605
6757
|
flex-direction: column;
|
|
@@ -6643,6 +6795,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6643
6795
|
}
|
|
6644
6796
|
.amplify-ai-conversation__message__body {
|
|
6645
6797
|
display: flex;
|
|
6798
|
+
flex: 1;
|
|
6646
6799
|
flex-direction: column;
|
|
6647
6800
|
align-items: var(--internal-body-align-items);
|
|
6648
6801
|
gap: var(--amplify-components-ai-conversation-message-body-gap);
|
|
@@ -6651,10 +6804,20 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6651
6804
|
background-color: var(--internal-content-bg);
|
|
6652
6805
|
border-radius: var(--amplify-radii-medium);
|
|
6653
6806
|
padding: var(--internal-content-padding);
|
|
6807
|
+
display: flex;
|
|
6808
|
+
flex-direction: column;
|
|
6809
|
+
gap: var(--amplify-space-small);
|
|
6810
|
+
}
|
|
6811
|
+
.amplify-ai-conversation__message__text {
|
|
6812
|
+
display: block;
|
|
6813
|
+
}
|
|
6814
|
+
.amplify-ai-conversation__message__image {
|
|
6815
|
+
max-width: 25%;
|
|
6654
6816
|
}
|
|
6655
6817
|
.amplify-ai-conversation__message__actions {
|
|
6656
6818
|
display: flex;
|
|
6657
6819
|
flex-direction: row;
|
|
6820
|
+
gap: var(--amplify-components-ai-conversation-message-actions-gap);
|
|
6658
6821
|
}
|
|
6659
6822
|
.amplify-ai-conversation__message--bubble {
|
|
6660
6823
|
--internal-content-bg: var(--internal-bg-color);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SelectType = 'FILE' | 'FOLDER';
|
|
3
|
+
/**
|
|
4
|
+
* @internal @unstable
|
|
5
|
+
*/
|
|
6
|
+
export interface FileSelectProps {
|
|
7
|
+
accept?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
11
|
+
type?: SelectType;
|
|
12
|
+
testId?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal @unstable
|
|
16
|
+
*/
|
|
17
|
+
export interface FileSelectOptions extends Omit<FileSelectProps, 'type'> {
|
|
18
|
+
}
|
|
19
|
+
export type HandleFileSelect = (selectType: SelectType, options?: FileSelectOptions) => void;
|
|
20
|
+
/**
|
|
21
|
+
* @internal @unstable
|
|
22
|
+
*/
|
|
23
|
+
export type UseFileSelect = [
|
|
24
|
+
fileSelect: React.ReactNode,
|
|
25
|
+
handleFileSelect: HandleFileSelect
|
|
26
|
+
];
|
|
27
|
+
export declare const DEFAULT_PROPS: {
|
|
28
|
+
style: {
|
|
29
|
+
display: string;
|
|
30
|
+
};
|
|
31
|
+
type: string;
|
|
32
|
+
'data-testid': string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @internal @unstable
|
|
36
|
+
*/
|
|
37
|
+
export declare const FileSelect: React.ForwardRefExoticComponent<FileSelectProps & React.RefAttributes<HTMLInputElement>>;
|
|
38
|
+
/**
|
|
39
|
+
* @internal @unstable
|
|
40
|
+
*
|
|
41
|
+
* @usage
|
|
42
|
+
* ```tsx
|
|
43
|
+
* function MyUploadButton() {
|
|
44
|
+
* const [files, setFiles] = React.useState<File[]>([]);
|
|
45
|
+
* const [fileSelect, handleFileSelect] = useFileSelect(setFiles);
|
|
46
|
+
* return (
|
|
47
|
+
* <>
|
|
48
|
+
* {fileSelect}
|
|
49
|
+
* <Button
|
|
50
|
+
* onClick={() => {
|
|
51
|
+
* handleFileSelect('file');
|
|
52
|
+
* }}
|
|
53
|
+
* />
|
|
54
|
+
* </>
|
|
55
|
+
* );
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare const useFileSelect: (onSelect?: ((files: File[]) => void) | undefined) => UseFileSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileSelect, FileSelectOptions, FileSelectProps, HandleFileSelect, useFileSelect, UseFileSelect, } from './FileSelect';
|
|
@@ -11,10 +11,6 @@ interface ComponentStyleProps extends React.ComponentProps<'style'> {
|
|
|
11
11
|
theme: Pick<WebTheme, 'name' | 'breakpoints' | 'tokens'>;
|
|
12
12
|
componentThemes: BaseComponentTheme[];
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
15
|
-
* @experimental
|
|
16
|
-
* [📖 Docs](https://ui.docs.amplify.aws/react/components/theme)
|
|
17
|
-
*/
|
|
18
14
|
export declare const ComponentStyle: {
|
|
19
15
|
({ theme, componentThemes, ...rest }: ComponentStyleProps): JSX.Element | null;
|
|
20
16
|
displayName: string;
|
|
@@ -9,10 +9,6 @@ interface GlobalStyleProps extends React.ComponentProps<'style'> {
|
|
|
9
9
|
nonce?: string;
|
|
10
10
|
styles: Parameters<typeof createGlobalCSS>[0];
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @experimental
|
|
14
|
-
* [📖 Docs](https://ui.docs.amplify.aws/react/components/theme)
|
|
15
|
-
*/
|
|
16
12
|
export declare const GlobalStyle: {
|
|
17
13
|
({ styles, ...rest }: GlobalStyleProps): JSX.Element | null;
|
|
18
14
|
displayName: string;
|
|
@@ -2,10 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
interface StyleProps extends React.ComponentProps<'style'> {
|
|
3
3
|
cssText?: string;
|
|
4
4
|
}
|
|
5
|
-
/**
|
|
6
|
-
* @experimental
|
|
7
|
-
* [📖 Docs](https://ui.docs.amplify.aws/react/components/theme)
|
|
8
|
-
*/
|
|
9
5
|
export declare const Style: {
|
|
10
6
|
({ cssText, ...rest }: StyleProps): JSX.Element | null;
|
|
11
7
|
displayName: string;
|
|
@@ -9,10 +9,6 @@ interface ThemeStyleProps extends React.ComponentProps<'style'> {
|
|
|
9
9
|
nonce?: string;
|
|
10
10
|
theme?: WebTheme;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @experimental
|
|
14
|
-
* [📖 Docs](https://ui.docs.amplify.aws/react/components/theme)
|
|
15
|
-
*/
|
|
16
12
|
export declare const ThemeStyle: {
|
|
17
13
|
({ theme, ...rest }: ThemeStyleProps): JSX.Element | null;
|
|
18
14
|
displayName: string;
|
package/dist/types/internal.d.ts
CHANGED
|
@@ -7,5 +7,7 @@ export { useDropZone } from '@aws-amplify/ui-react-core';
|
|
|
7
7
|
export * from './components/FilterChildren';
|
|
8
8
|
export { AlertIcon } from './primitives/Alert/AlertIcon';
|
|
9
9
|
export * from './primitives/Icon/internal';
|
|
10
|
+
export { STORAGE_BROWSER_ICON_PATHS, StorageBrowserIconType, } from './primitives/Icon/context/StorageBrowserIcons';
|
|
11
|
+
export { FileSelect, FileSelectOptions, FileSelectProps, HandleFileSelect, useFileSelect, UseFileSelect, } from './components/FileSelect';
|
|
10
12
|
export { Field } from './primitives/Field';
|
|
11
13
|
export { PrimitiveCatalog } from './PrimitiveCatalog';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
type StorageBrowserIconType = 'action-canceled' | 'action-error' | 'action-info' | 'action-initial' | 'action-progress' | 'action-queued' | 'action-success' | 'cancel' | 'create-folder' | 'copy-file' | 'delete-file' | 'dismiss' | 'download' | 'error' | 'exit' | 'file' | 'folder' | 'info' | 'loading' | 'menu' | 'paginate-next' | 'paginate-previous' | 'refresh' | 'search' | 'sort-ascending' | 'sort-descending' | 'sort-indeterminate' | 'success' | 'upload-file' | 'upload-folder' | 'vertical-kebab' | 'warning';
|
|
2
3
|
type ComponentIcons<Keys extends string> = {
|
|
3
4
|
[Key in Keys]?: React.ReactNode;
|
|
4
5
|
};
|
|
@@ -17,6 +18,7 @@ export type IconsContextInterface = {
|
|
|
17
18
|
searchField?: ComponentIcons<'search'>;
|
|
18
19
|
select?: ComponentIcons<'expand'>;
|
|
19
20
|
stepperField?: ComponentIcons<'add' | 'remove'>;
|
|
21
|
+
storageBrowser?: ComponentIcons<StorageBrowserIconType>;
|
|
20
22
|
storageManager?: ComponentIcons<'upload' | 'remove' | 'error' | 'success' | 'file'>;
|
|
21
23
|
};
|
|
22
24
|
export declare const IconsContext: React.Context<IconsContextInterface | undefined>;
|