@aws-amplify/ui-react 6.2.2 → 6.3.1
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-d47a49dc.js → Field-4b189104.js} +11 -0
- package/dist/esm/PrimitiveCatalog.mjs +285 -17
- package/dist/esm/components/AccountSettings/ChangePassword/ChangePassword.mjs +1 -0
- package/dist/esm/components/AccountSettings/ChangePassword/defaults.mjs +1 -0
- package/dist/esm/components/AccountSettings/DeleteUser/DeleteUser.mjs +1 -0
- package/dist/esm/components/AccountSettings/DeleteUser/defaults.mjs +1 -0
- package/dist/esm/components/AccountSettings/shared/Defaults.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/internal.mjs +4 -0
- package/dist/esm/primitives/Avatar/Avatar.mjs +23 -0
- package/dist/esm/primitives/Icon/icons/IconAssistant.mjs +15 -0
- package/dist/esm/primitives/Icon/icons/IconAttach.mjs +15 -0
- package/dist/esm/primitives/Icon/icons/IconSend.mjs +15 -0
- package/dist/esm/primitives/Icon/icons/IconUser.mjs +15 -0
- package/dist/esm/primitives/ScrollView/ScrollView.mjs +21 -1
- package/dist/esm/primitives/TextArea/AutoresizeTextarea.mjs +19 -0
- package/dist/esm/primitives/TextArea/useAutoresizeTextarea.mjs +28 -0
- package/dist/esm/primitives/TextAreaField/TextAreaField.mjs +3 -2
- package/dist/esm/primitives/index.mjs +1 -0
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +98 -28
- package/dist/internal.js +320 -18
- package/dist/styles/AIConversation.css +108 -0
- package/dist/styles/AIConversation.layer.css +110 -0
- package/dist/styles/FileUploader.css +138 -0
- package/dist/styles/FileUploader.layer.css +140 -0
- package/dist/styles/avatar.css +111 -0
- package/dist/styles/avatar.layer.css +113 -0
- package/dist/styles/base.css +90 -0
- package/dist/styles/base.layer.css +90 -0
- package/dist/styles.css +450 -0
- package/dist/styles.layer.css +450 -0
- package/dist/types/primitives/Avatar/Avatar.d.ts +6 -0
- package/dist/types/primitives/Avatar/index.d.ts +2 -0
- package/dist/types/primitives/Avatar/types.d.ts +36 -0
- package/dist/types/primitives/Icon/context/IconsContext.d.ts +2 -0
- package/dist/types/primitives/Icon/icons/IconAssistant.d.ts +5 -0
- package/dist/types/primitives/Icon/icons/IconAttach.d.ts +5 -0
- package/dist/types/primitives/Icon/icons/IconSend.d.ts +5 -0
- package/dist/types/primitives/Icon/icons/IconUser.d.ts +5 -0
- package/dist/types/primitives/Icon/icons/index.d.ts +4 -0
- package/dist/types/primitives/TextArea/AutoresizeTextarea.d.ts +3 -0
- package/dist/types/primitives/TextArea/index.d.ts +1 -0
- package/dist/types/primitives/TextArea/useAutoresizeTextarea.d.ts +1 -0
- package/dist/types/primitives/components.d.ts +1 -0
- package/dist/types/primitives/types/scrollView.d.ts +5 -0
- package/dist/types/primitives/types/textAreaField.d.ts +7 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
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-
|
|
5
|
+
var Field = require('./Field-4b189104.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var Storage = require('aws-amplify/storage');
|
|
8
8
|
var ui = require('@aws-amplify/ui');
|
|
@@ -90,6 +90,26 @@ const FilterChildren = ({ allowedFilters, children = null, targetFilter, }) => {
|
|
|
90
90
|
return showContent ? React__default["default"].createElement(React__default["default"].Fragment, null, children) : null;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* @internal For internal Amplify UI use only. May be removed in a future release.
|
|
95
|
+
*/
|
|
96
|
+
const IconAssistant = (props) => {
|
|
97
|
+
const { className, ...rest } = props;
|
|
98
|
+
return (React__namespace.createElement(Field.View, { as: "span", width: "1em", height: "1em", className: ui.classNames(ui.ComponentClassName.Icon, className), ...rest },
|
|
99
|
+
React__namespace.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
100
|
+
React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.8548 1.40981C12.693 0.801759 11.3069 0.801759 10.1451 1.40981L2.14518 5.59679C0.826447 6.28698 0 7.65232 0 9.14075V16.8593C0 18.3477 0.826447 19.713 2.14518 20.4032L10.1451 24.5902C11.3069 25.1982 12.693 25.1982 13.8548 24.5902L21.8547 20.4032C23.1735 19.713 23.9999 18.3477 23.9999 16.8592V9.14075C23.9999 7.65232 23.1735 6.28698 21.8547 5.59679L13.8548 1.40981ZM12.9258 6.05676C12.5872 5.22732 11.4127 5.22732 11.0741 6.05676L9.42869 10.0877C9.31871 10.3572 9.0968 10.5653 8.82088 10.6579L4.665 12.0519C3.7557 12.3569 3.7557 13.6431 4.665 13.9481L8.82088 15.3421C9.0968 15.4347 9.31871 15.6428 9.42869 15.9123L11.0741 19.9432C11.4127 20.7727 12.5872 20.7727 12.9258 19.9432L14.5712 15.9123C14.6812 15.6428 14.9031 15.4347 15.179 15.3421L19.3349 13.9481C20.2442 13.6431 20.2442 12.3569 19.3349 12.0519L15.179 10.6579C14.9031 10.5653 14.6812 10.3572 14.5712 10.0877L12.9258 6.05676Z", fill: "currentColor" }))));
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @internal For internal Amplify UI use only. May be removed in a future release.
|
|
105
|
+
*/
|
|
106
|
+
const IconAttach = (props) => {
|
|
107
|
+
const { className, ...rest } = props;
|
|
108
|
+
return (React__namespace.createElement(Field.View, { as: "span", width: "1em", height: "1em", className: ui.classNames(ui.ComponentClassName.Icon, className), ...rest },
|
|
109
|
+
React__namespace.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
110
|
+
React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.3928 1.93491L4.23565 11.8583C2.3257 13.7243 2.3257 16.7379 4.23565 18.6039C6.161 20.4849 9.29378 20.4849 11.2191 18.6039L21.2003 8.85257C22.3571 7.72235 22.3571 5.86149 21.2003 4.73128C20.0748 3.63171 18.2753 3.63857 17.1582 4.74668L7.17456 14.6503C6.86543 14.9523 6.8654 15.4303 7.17454 15.7323C7.49908 16.0494 8.03642 16.0494 8.36095 15.7323L18.338 5.98493L19.9926 7.67849L10.0155 17.4259C8.77102 18.6417 6.76446 18.6417 5.51997 17.4259C4.26127 16.1962 4.26007 14.1915 5.51637 12.9603L15.4908 3.06578C17.5259 1.04696 20.8044 1.03447 22.8548 3.03772C24.9625 5.09681 24.9625 8.48703 22.8548 10.5461L12.8737 20.2975C10.0284 23.0773 5.42639 23.0773 2.58108 20.2975C-0.279632 17.5026 -0.279632 12.9596 2.58108 10.1647L12.7383 0.241356L14.3928 1.93491Z", fill: "currentColor" }))));
|
|
111
|
+
};
|
|
112
|
+
|
|
93
113
|
/**
|
|
94
114
|
* @internal For internal Amplify UI use only. May be removed in a future release.
|
|
95
115
|
*/
|
|
@@ -118,6 +138,16 @@ const IconFile = (props) => {
|
|
|
118
138
|
React__namespace.createElement("path", { d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z", fill: "currentColor" }))));
|
|
119
139
|
};
|
|
120
140
|
|
|
141
|
+
/**
|
|
142
|
+
* @internal For internal Amplify UI use only. May be removed in a future release.
|
|
143
|
+
*/
|
|
144
|
+
const IconSend = (props) => {
|
|
145
|
+
const { className, ...rest } = props;
|
|
146
|
+
return (React__namespace.createElement(Field.View, { as: "span", width: "1em", height: "1em", className: ui.classNames(ui.ComponentClassName.Icon, className), ...rest },
|
|
147
|
+
React__namespace.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
148
|
+
React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.34374 0.774436C1.72319 0.451324 2.26162 0.393083 2.70138 0.627584L23.173 11.544C23.5704 11.7559 23.8177 12.1704 23.8155 12.6207C23.8133 13.071 23.5618 13.4831 23.1624 13.691L2.69073 24.3477C2.24914 24.5776 1.71196 24.5144 1.33575 24.1884C0.959534 23.8624 0.820634 23.3396 0.98539 22.8698L4.58366 12.6099L0.982433 2.09133C0.821002 1.61982 0.964295 1.09755 1.34374 0.774436ZM6.72819 13.8281L4.29043 20.779L17.6432 13.8281H6.72819ZM17.7477 11.4013H6.735L4.27542 4.21725L17.7477 11.4013Z", fill: "currentColor" }))));
|
|
149
|
+
};
|
|
150
|
+
|
|
121
151
|
/**
|
|
122
152
|
* @internal For internal Amplify UI use only. May be removed in a future release.
|
|
123
153
|
*/
|
|
@@ -771,6 +801,268 @@ const PrimitiveCatalog = {
|
|
|
771
801
|
}
|
|
772
802
|
}
|
|
773
803
|
},
|
|
804
|
+
"Avatar": {
|
|
805
|
+
"properties": {
|
|
806
|
+
"src": {
|
|
807
|
+
"type": "string"
|
|
808
|
+
},
|
|
809
|
+
"alt": {
|
|
810
|
+
"type": "string"
|
|
811
|
+
},
|
|
812
|
+
"variation": {
|
|
813
|
+
"type": "string"
|
|
814
|
+
},
|
|
815
|
+
"colorTheme": {
|
|
816
|
+
"type": "string"
|
|
817
|
+
},
|
|
818
|
+
"size": {
|
|
819
|
+
"type": "string"
|
|
820
|
+
},
|
|
821
|
+
"isDisabled": {
|
|
822
|
+
"type": "boolean"
|
|
823
|
+
},
|
|
824
|
+
"id": {
|
|
825
|
+
"type": "string"
|
|
826
|
+
},
|
|
827
|
+
"children": {
|
|
828
|
+
"type": "string"
|
|
829
|
+
},
|
|
830
|
+
"className": {
|
|
831
|
+
"type": "string"
|
|
832
|
+
},
|
|
833
|
+
"testId": {
|
|
834
|
+
"type": "string"
|
|
835
|
+
},
|
|
836
|
+
"inert": {
|
|
837
|
+
"type": "boolean"
|
|
838
|
+
},
|
|
839
|
+
"alignSelf": {
|
|
840
|
+
"type": "string"
|
|
841
|
+
},
|
|
842
|
+
"backgroundColor": {
|
|
843
|
+
"type": "string"
|
|
844
|
+
},
|
|
845
|
+
"backgroundImage": {
|
|
846
|
+
"type": "string"
|
|
847
|
+
},
|
|
848
|
+
"border": {
|
|
849
|
+
"type": "string"
|
|
850
|
+
},
|
|
851
|
+
"borderColor": {
|
|
852
|
+
"type": "string"
|
|
853
|
+
},
|
|
854
|
+
"borderWidth": {
|
|
855
|
+
"type": "string"
|
|
856
|
+
},
|
|
857
|
+
"borderStyle": {
|
|
858
|
+
"type": "string"
|
|
859
|
+
},
|
|
860
|
+
"borderRadius": {
|
|
861
|
+
"type": "string"
|
|
862
|
+
},
|
|
863
|
+
"bottom": {
|
|
864
|
+
"type": "string"
|
|
865
|
+
},
|
|
866
|
+
"boxShadow": {
|
|
867
|
+
"type": "string"
|
|
868
|
+
},
|
|
869
|
+
"color": {
|
|
870
|
+
"type": "string"
|
|
871
|
+
},
|
|
872
|
+
"display": {
|
|
873
|
+
"type": "string"
|
|
874
|
+
},
|
|
875
|
+
"fontFamily": {
|
|
876
|
+
"type": "string"
|
|
877
|
+
},
|
|
878
|
+
"fontSize": {
|
|
879
|
+
"type": "string"
|
|
880
|
+
},
|
|
881
|
+
"fontStyle": {
|
|
882
|
+
"type": "string"
|
|
883
|
+
},
|
|
884
|
+
"fontWeight": {
|
|
885
|
+
"type": "string"
|
|
886
|
+
},
|
|
887
|
+
"height": {
|
|
888
|
+
"type": "string"
|
|
889
|
+
},
|
|
890
|
+
"left": {
|
|
891
|
+
"type": "string"
|
|
892
|
+
},
|
|
893
|
+
"letterSpacing": {
|
|
894
|
+
"type": "string"
|
|
895
|
+
},
|
|
896
|
+
"lineHeight": {
|
|
897
|
+
"type": "string"
|
|
898
|
+
},
|
|
899
|
+
"margin": {
|
|
900
|
+
"type": "string"
|
|
901
|
+
},
|
|
902
|
+
"marginBlock": {
|
|
903
|
+
"type": "string"
|
|
904
|
+
},
|
|
905
|
+
"marginBlockEnd": {
|
|
906
|
+
"type": "string"
|
|
907
|
+
},
|
|
908
|
+
"marginBlockStart": {
|
|
909
|
+
"type": "string"
|
|
910
|
+
},
|
|
911
|
+
"marginBottom": {
|
|
912
|
+
"type": "string"
|
|
913
|
+
},
|
|
914
|
+
"marginInline": {
|
|
915
|
+
"type": "string"
|
|
916
|
+
},
|
|
917
|
+
"marginInlineEnd": {
|
|
918
|
+
"type": "string"
|
|
919
|
+
},
|
|
920
|
+
"marginInlineStart": {
|
|
921
|
+
"type": "string"
|
|
922
|
+
},
|
|
923
|
+
"marginLeft": {
|
|
924
|
+
"type": "string"
|
|
925
|
+
},
|
|
926
|
+
"marginRight": {
|
|
927
|
+
"type": "string"
|
|
928
|
+
},
|
|
929
|
+
"marginTop": {
|
|
930
|
+
"type": "string"
|
|
931
|
+
},
|
|
932
|
+
"maxHeight": {
|
|
933
|
+
"type": "string"
|
|
934
|
+
},
|
|
935
|
+
"maxWidth": {
|
|
936
|
+
"type": "string"
|
|
937
|
+
},
|
|
938
|
+
"minHeight": {
|
|
939
|
+
"type": "string"
|
|
940
|
+
},
|
|
941
|
+
"minWidth": {
|
|
942
|
+
"type": "string"
|
|
943
|
+
},
|
|
944
|
+
"opacity": {
|
|
945
|
+
"type": "string"
|
|
946
|
+
},
|
|
947
|
+
"overflow": {
|
|
948
|
+
"type": "string"
|
|
949
|
+
},
|
|
950
|
+
"padding": {
|
|
951
|
+
"type": "string"
|
|
952
|
+
},
|
|
953
|
+
"paddingBlock": {
|
|
954
|
+
"type": "string"
|
|
955
|
+
},
|
|
956
|
+
"paddingBlockEnd": {
|
|
957
|
+
"type": "string"
|
|
958
|
+
},
|
|
959
|
+
"paddingBlockStart": {
|
|
960
|
+
"type": "string"
|
|
961
|
+
},
|
|
962
|
+
"paddingBottom": {
|
|
963
|
+
"type": "string"
|
|
964
|
+
},
|
|
965
|
+
"paddingInline": {
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
"paddingInlineEnd": {
|
|
969
|
+
"type": "string"
|
|
970
|
+
},
|
|
971
|
+
"paddingInlineStart": {
|
|
972
|
+
"type": "string"
|
|
973
|
+
},
|
|
974
|
+
"paddingLeft": {
|
|
975
|
+
"type": "string"
|
|
976
|
+
},
|
|
977
|
+
"paddingRight": {
|
|
978
|
+
"type": "string"
|
|
979
|
+
},
|
|
980
|
+
"paddingTop": {
|
|
981
|
+
"type": "string"
|
|
982
|
+
},
|
|
983
|
+
"position": {
|
|
984
|
+
"type": "string"
|
|
985
|
+
},
|
|
986
|
+
"right": {
|
|
987
|
+
"type": "string"
|
|
988
|
+
},
|
|
989
|
+
"textAlign": {
|
|
990
|
+
"type": "string"
|
|
991
|
+
},
|
|
992
|
+
"textDecoration": {
|
|
993
|
+
"type": "string"
|
|
994
|
+
},
|
|
995
|
+
"textTransform": {
|
|
996
|
+
"type": "string"
|
|
997
|
+
},
|
|
998
|
+
"top": {
|
|
999
|
+
"type": "string"
|
|
1000
|
+
},
|
|
1001
|
+
"transform": {
|
|
1002
|
+
"type": "string"
|
|
1003
|
+
},
|
|
1004
|
+
"transformOrigin": {
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
},
|
|
1007
|
+
"width": {
|
|
1008
|
+
"type": "string"
|
|
1009
|
+
},
|
|
1010
|
+
"whiteSpace": {
|
|
1011
|
+
"type": "string"
|
|
1012
|
+
},
|
|
1013
|
+
"flex": {
|
|
1014
|
+
"type": "string"
|
|
1015
|
+
},
|
|
1016
|
+
"order": {
|
|
1017
|
+
"type": "string"
|
|
1018
|
+
},
|
|
1019
|
+
"grow": {
|
|
1020
|
+
"type": "string"
|
|
1021
|
+
},
|
|
1022
|
+
"shrink": {
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
},
|
|
1025
|
+
"basis": {
|
|
1026
|
+
"type": "string"
|
|
1027
|
+
},
|
|
1028
|
+
"area": {
|
|
1029
|
+
"type": "string"
|
|
1030
|
+
},
|
|
1031
|
+
"column": {
|
|
1032
|
+
"type": "string"
|
|
1033
|
+
},
|
|
1034
|
+
"columnEnd": {
|
|
1035
|
+
"type": "string"
|
|
1036
|
+
},
|
|
1037
|
+
"columnSpan": {
|
|
1038
|
+
"type": "string"
|
|
1039
|
+
},
|
|
1040
|
+
"columnStart": {
|
|
1041
|
+
"type": "string"
|
|
1042
|
+
},
|
|
1043
|
+
"row": {
|
|
1044
|
+
"type": "string"
|
|
1045
|
+
},
|
|
1046
|
+
"rowEnd": {
|
|
1047
|
+
"type": "string"
|
|
1048
|
+
},
|
|
1049
|
+
"rowSpan": {
|
|
1050
|
+
"type": "string"
|
|
1051
|
+
},
|
|
1052
|
+
"rowStart": {
|
|
1053
|
+
"type": "string"
|
|
1054
|
+
},
|
|
1055
|
+
"ariaLabel": {
|
|
1056
|
+
"type": "string"
|
|
1057
|
+
},
|
|
1058
|
+
"ariaValuetext": {
|
|
1059
|
+
"type": "string"
|
|
1060
|
+
},
|
|
1061
|
+
"role": {
|
|
1062
|
+
"type": "string"
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
774
1066
|
"Badge": {
|
|
775
1067
|
"properties": {
|
|
776
1068
|
"variation": {
|
|
@@ -1841,10 +2133,10 @@ const PrimitiveCatalog = {
|
|
|
1841
2133
|
"rowGap": {
|
|
1842
2134
|
"type": "string"
|
|
1843
2135
|
},
|
|
1844
|
-
"
|
|
2136
|
+
"variation": {
|
|
1845
2137
|
"type": "string"
|
|
1846
2138
|
},
|
|
1847
|
-
"
|
|
2139
|
+
"size": {
|
|
1848
2140
|
"type": "string"
|
|
1849
2141
|
}
|
|
1850
2142
|
}
|
|
@@ -3982,10 +4274,10 @@ const PrimitiveCatalog = {
|
|
|
3982
4274
|
"type": {
|
|
3983
4275
|
"type": "string"
|
|
3984
4276
|
},
|
|
3985
|
-
"
|
|
4277
|
+
"variation": {
|
|
3986
4278
|
"type": "string"
|
|
3987
4279
|
},
|
|
3988
|
-
"
|
|
4280
|
+
"size": {
|
|
3989
4281
|
"type": "string"
|
|
3990
4282
|
}
|
|
3991
4283
|
}
|
|
@@ -7478,10 +7770,10 @@ const PrimitiveCatalog = {
|
|
|
7478
7770
|
"type": {
|
|
7479
7771
|
"type": "string"
|
|
7480
7772
|
},
|
|
7481
|
-
"
|
|
7773
|
+
"variation": {
|
|
7482
7774
|
"type": "string"
|
|
7483
7775
|
},
|
|
7484
|
-
"
|
|
7776
|
+
"size": {
|
|
7485
7777
|
"type": "string"
|
|
7486
7778
|
},
|
|
7487
7779
|
"direction": {
|
|
@@ -7767,10 +8059,10 @@ const PrimitiveCatalog = {
|
|
|
7767
8059
|
"type": {
|
|
7768
8060
|
"type": "string"
|
|
7769
8061
|
},
|
|
7770
|
-
"
|
|
8062
|
+
"variation": {
|
|
7771
8063
|
"type": "string"
|
|
7772
8064
|
},
|
|
7773
|
-
"
|
|
8065
|
+
"size": {
|
|
7774
8066
|
"type": "string"
|
|
7775
8067
|
},
|
|
7776
8068
|
"direction": {
|
|
@@ -8997,13 +9289,13 @@ const PrimitiveCatalog = {
|
|
|
8997
9289
|
"type": {
|
|
8998
9290
|
"type": "string"
|
|
8999
9291
|
},
|
|
9292
|
+
"variation": {
|
|
9293
|
+
"type": "string"
|
|
9294
|
+
},
|
|
9000
9295
|
"size": {
|
|
9001
9296
|
"type": "string",
|
|
9002
9297
|
"priority": true
|
|
9003
9298
|
},
|
|
9004
|
-
"variation": {
|
|
9005
|
-
"type": "string"
|
|
9006
|
-
},
|
|
9007
9299
|
"descriptiveText": {
|
|
9008
9300
|
"type": "string",
|
|
9009
9301
|
"priority": true
|
|
@@ -9382,10 +9674,10 @@ const PrimitiveCatalog = {
|
|
|
9382
9674
|
"aria-valuenow": {
|
|
9383
9675
|
"type": "number"
|
|
9384
9676
|
},
|
|
9385
|
-
"
|
|
9677
|
+
"src": {
|
|
9386
9678
|
"type": "string"
|
|
9387
9679
|
},
|
|
9388
|
-
"
|
|
9680
|
+
"alt": {
|
|
9389
9681
|
"type": "string"
|
|
9390
9682
|
},
|
|
9391
9683
|
"accept": {
|
|
@@ -10618,6 +10910,9 @@ const PrimitiveCatalog = {
|
|
|
10618
10910
|
"orientation": {
|
|
10619
10911
|
"type": "string"
|
|
10620
10912
|
},
|
|
10913
|
+
"autoScroll": {
|
|
10914
|
+
"type": "string"
|
|
10915
|
+
},
|
|
10621
10916
|
"isDisabled": {
|
|
10622
10917
|
"type": "boolean"
|
|
10623
10918
|
},
|
|
@@ -13131,6 +13426,9 @@ const PrimitiveCatalog = {
|
|
|
13131
13426
|
},
|
|
13132
13427
|
"TextAreaField": {
|
|
13133
13428
|
"properties": {
|
|
13429
|
+
"autoResize": {
|
|
13430
|
+
"type": "boolean"
|
|
13431
|
+
},
|
|
13134
13432
|
"descriptiveText": {
|
|
13135
13433
|
"type": "string",
|
|
13136
13434
|
"priority": true
|
|
@@ -14071,10 +14369,10 @@ const PrimitiveCatalog = {
|
|
|
14071
14369
|
"type": {
|
|
14072
14370
|
"type": "string"
|
|
14073
14371
|
},
|
|
14074
|
-
"
|
|
14372
|
+
"variation": {
|
|
14075
14373
|
"type": "string"
|
|
14076
14374
|
},
|
|
14077
|
-
"
|
|
14375
|
+
"size": {
|
|
14078
14376
|
"type": "string"
|
|
14079
14377
|
},
|
|
14080
14378
|
"direction": {
|
|
@@ -14384,10 +14682,10 @@ const PrimitiveCatalog = {
|
|
|
14384
14682
|
"rowGap": {
|
|
14385
14683
|
"type": "string"
|
|
14386
14684
|
},
|
|
14387
|
-
"
|
|
14685
|
+
"variation": {
|
|
14388
14686
|
"type": "string"
|
|
14389
14687
|
},
|
|
14390
|
-
"
|
|
14688
|
+
"size": {
|
|
14391
14689
|
"type": "string"
|
|
14392
14690
|
}
|
|
14393
14691
|
}
|
|
@@ -16398,6 +16696,7 @@ exports.IconMenu = Field.IconMenu;
|
|
|
16398
16696
|
exports.IconRemove = Field.IconRemove;
|
|
16399
16697
|
exports.IconSearch = Field.IconSearch;
|
|
16400
16698
|
exports.IconStar = Field.IconStar;
|
|
16699
|
+
exports.IconUser = Field.IconUser;
|
|
16401
16700
|
exports.IconVisibility = Field.IconVisibility;
|
|
16402
16701
|
exports.IconVisibilityOff = Field.IconVisibilityOff;
|
|
16403
16702
|
exports.IconWarning = Field.IconWarning;
|
|
@@ -16407,9 +16706,12 @@ exports.useDeprecationWarning = Field.useDeprecationWarning;
|
|
|
16407
16706
|
exports.useDropZone = Field.useDropZone;
|
|
16408
16707
|
exports.useIcons = Field.useIcons;
|
|
16409
16708
|
exports.FilterChildren = FilterChildren;
|
|
16709
|
+
exports.IconAssistant = IconAssistant;
|
|
16710
|
+
exports.IconAttach = IconAttach;
|
|
16410
16711
|
exports.IconCheckCircleOutline = IconCheckCircleOutline;
|
|
16411
16712
|
exports.IconEdit = IconEdit;
|
|
16412
16713
|
exports.IconFile = IconFile;
|
|
16714
|
+
exports.IconSend = IconSend;
|
|
16413
16715
|
exports.IconUpload = IconUpload;
|
|
16414
16716
|
exports.PrimitiveCatalog = PrimitiveCatalog;
|
|
16415
16717
|
exports.useStorageURL = useStorageURL;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.amplify-ai-conversation {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
.amplify-ai-conversation__message {
|
|
7
|
+
--content-bg: transparent;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: var(--flex-direction);
|
|
10
|
+
gap: var(--amplify-space-small);
|
|
11
|
+
padding: var(--amplify-space-small);
|
|
12
|
+
}
|
|
13
|
+
.amplify-ai-conversation__message__list {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
.amplify-ai-conversation__message__avatar {
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
}
|
|
20
|
+
.amplify-ai-conversation__message__sender {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: var(--flex-direction);
|
|
23
|
+
align-items: center;
|
|
24
|
+
height: var(--amplify-components-avatar-height);
|
|
25
|
+
gap: var(--amplify-space-small);
|
|
26
|
+
}
|
|
27
|
+
.amplify-ai-conversation__message__sender__username {
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
}
|
|
30
|
+
.amplify-ai-conversation__message__sender__timestamp {
|
|
31
|
+
color: var(--amplify-colors-font-tertiary);
|
|
32
|
+
font-size: var(--amplify-font-sizes-small);
|
|
33
|
+
}
|
|
34
|
+
.amplify-ai-conversation__message__body {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: var(--body-align-items);
|
|
38
|
+
gap: var(--amplify-space-xs);
|
|
39
|
+
}
|
|
40
|
+
.amplify-ai-conversation__message__content {
|
|
41
|
+
background-color: var(--content-bg);
|
|
42
|
+
border-radius: var(--amplify-radii-medium);
|
|
43
|
+
padding: var(--content-padding);
|
|
44
|
+
}
|
|
45
|
+
.amplify-ai-conversation__message__actions {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
}
|
|
49
|
+
.amplify-ai-conversation__message--bubble {
|
|
50
|
+
--content-bg: var(--bg-color);
|
|
51
|
+
--content-padding: var(--amplify-space-xxs) var(--amplify-space-xs);
|
|
52
|
+
--flex-direction: row-reverse;
|
|
53
|
+
--body-align-items: flex-end;
|
|
54
|
+
}
|
|
55
|
+
.amplify-ai-conversation__message--user {
|
|
56
|
+
--bg-color: var(--amplify-colors-background-secondary);
|
|
57
|
+
}
|
|
58
|
+
.amplify-ai-conversation__message--assistant {
|
|
59
|
+
--bg-color: var(--amplify-colors-primary-10);
|
|
60
|
+
--flex-direction: row;
|
|
61
|
+
--body-align-items: flex-start;
|
|
62
|
+
}
|
|
63
|
+
.amplify-ai-conversation__form {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
align-items: flex-start;
|
|
67
|
+
gap: var(--amplify-space-small);
|
|
68
|
+
}
|
|
69
|
+
.amplify-ai-conversation__form__dropzone {
|
|
70
|
+
text-align: initial;
|
|
71
|
+
border: none;
|
|
72
|
+
padding: var(--amplify-space-xs);
|
|
73
|
+
}
|
|
74
|
+
.amplify-ai-conversation__attachment {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
padding-block: var(--amplify-space-xxxs);
|
|
78
|
+
padding-inline: var(--amplify-space-xs);
|
|
79
|
+
border-width: var(--amplify-border-widths-small);
|
|
80
|
+
border-style: solid;
|
|
81
|
+
border-color: var(--amplify-colors-border-secondary);
|
|
82
|
+
border-radius: var(--amplify-radii-small);
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: var(--amplify-space-xs);
|
|
85
|
+
font-size: var(--amplify-font-sizes-small);
|
|
86
|
+
}
|
|
87
|
+
.amplify-ai-conversation__attachment__list {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: row;
|
|
90
|
+
flex-wrap: wrap;
|
|
91
|
+
gap: var(--amplify-space-small);
|
|
92
|
+
padding-block-start: var(--amplify-space-small);
|
|
93
|
+
}
|
|
94
|
+
.amplify-ai-conversation__attachment__image {
|
|
95
|
+
width: 1rem;
|
|
96
|
+
height: 1rem;
|
|
97
|
+
-o-object-fit: cover;
|
|
98
|
+
object-fit: cover;
|
|
99
|
+
}
|
|
100
|
+
.amplify-ai-conversation__attachment__size {
|
|
101
|
+
color: var(--amplify-colors-font-tertiary);
|
|
102
|
+
}
|
|
103
|
+
.amplify-ai-conversation__attachment__remove {
|
|
104
|
+
padding: var(--amplify-space-xxs);
|
|
105
|
+
}
|
|
106
|
+
.amplify-ai-conversation__prompt {
|
|
107
|
+
font-weight: normal;
|
|
108
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@layer amplify.components {
|
|
2
|
+
.amplify-ai-conversation {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
.amplify-ai-conversation__message {
|
|
8
|
+
--content-bg: transparent;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: var(--flex-direction);
|
|
11
|
+
gap: var(--amplify-space-small);
|
|
12
|
+
padding: var(--amplify-space-small);
|
|
13
|
+
}
|
|
14
|
+
.amplify-ai-conversation__message__list {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
.amplify-ai-conversation__message__avatar {
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
}
|
|
21
|
+
.amplify-ai-conversation__message__sender {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: var(--flex-direction);
|
|
24
|
+
align-items: center;
|
|
25
|
+
height: var(--amplify-components-avatar-height);
|
|
26
|
+
gap: var(--amplify-space-small);
|
|
27
|
+
}
|
|
28
|
+
.amplify-ai-conversation__message__sender__username {
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
}
|
|
31
|
+
.amplify-ai-conversation__message__sender__timestamp {
|
|
32
|
+
color: var(--amplify-colors-font-tertiary);
|
|
33
|
+
font-size: var(--amplify-font-sizes-small);
|
|
34
|
+
}
|
|
35
|
+
.amplify-ai-conversation__message__body {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
align-items: var(--body-align-items);
|
|
39
|
+
gap: var(--amplify-space-xs);
|
|
40
|
+
}
|
|
41
|
+
.amplify-ai-conversation__message__content {
|
|
42
|
+
background-color: var(--content-bg);
|
|
43
|
+
border-radius: var(--amplify-radii-medium);
|
|
44
|
+
padding: var(--content-padding);
|
|
45
|
+
}
|
|
46
|
+
.amplify-ai-conversation__message__actions {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
}
|
|
50
|
+
.amplify-ai-conversation__message--bubble {
|
|
51
|
+
--content-bg: var(--bg-color);
|
|
52
|
+
--content-padding: var(--amplify-space-xxs) var(--amplify-space-xs);
|
|
53
|
+
--flex-direction: row-reverse;
|
|
54
|
+
--body-align-items: flex-end;
|
|
55
|
+
}
|
|
56
|
+
.amplify-ai-conversation__message--user {
|
|
57
|
+
--bg-color: var(--amplify-colors-background-secondary);
|
|
58
|
+
}
|
|
59
|
+
.amplify-ai-conversation__message--assistant {
|
|
60
|
+
--bg-color: var(--amplify-colors-primary-10);
|
|
61
|
+
--flex-direction: row;
|
|
62
|
+
--body-align-items: flex-start;
|
|
63
|
+
}
|
|
64
|
+
.amplify-ai-conversation__form {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
align-items: flex-start;
|
|
68
|
+
gap: var(--amplify-space-small);
|
|
69
|
+
}
|
|
70
|
+
.amplify-ai-conversation__form__dropzone {
|
|
71
|
+
text-align: initial;
|
|
72
|
+
border: none;
|
|
73
|
+
padding: var(--amplify-space-xs);
|
|
74
|
+
}
|
|
75
|
+
.amplify-ai-conversation__attachment {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
padding-block: var(--amplify-space-xxxs);
|
|
79
|
+
padding-inline: var(--amplify-space-xs);
|
|
80
|
+
border-width: var(--amplify-border-widths-small);
|
|
81
|
+
border-style: solid;
|
|
82
|
+
border-color: var(--amplify-colors-border-secondary);
|
|
83
|
+
border-radius: var(--amplify-radii-small);
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: var(--amplify-space-xs);
|
|
86
|
+
font-size: var(--amplify-font-sizes-small);
|
|
87
|
+
}
|
|
88
|
+
.amplify-ai-conversation__attachment__list {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: row;
|
|
91
|
+
flex-wrap: wrap;
|
|
92
|
+
gap: var(--amplify-space-small);
|
|
93
|
+
padding-block-start: var(--amplify-space-small);
|
|
94
|
+
}
|
|
95
|
+
.amplify-ai-conversation__attachment__image {
|
|
96
|
+
width: 1rem;
|
|
97
|
+
height: 1rem;
|
|
98
|
+
-o-object-fit: cover;
|
|
99
|
+
object-fit: cover;
|
|
100
|
+
}
|
|
101
|
+
.amplify-ai-conversation__attachment__size {
|
|
102
|
+
color: var(--amplify-colors-font-tertiary);
|
|
103
|
+
}
|
|
104
|
+
.amplify-ai-conversation__attachment__remove {
|
|
105
|
+
padding: var(--amplify-space-xxs);
|
|
106
|
+
}
|
|
107
|
+
.amplify-ai-conversation__prompt {
|
|
108
|
+
font-weight: normal;
|
|
109
|
+
}
|
|
110
|
+
}
|