@apia/theme 3.0.20 → 3.0.22
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/{index-DGezuU-i.js → index-wohlbdB8.js} +369 -10
- package/dist/index-wohlbdB8.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{styles-CHGH27gK.js → styles-3M4Ekmpa.js} +2 -2
- package/dist/{styles-CHGH27gK.js.map → styles-3M4Ekmpa.js.map} +1 -1
- package/package.json +3 -3
- package/dist/index-DGezuU-i.js.map +0 -1
|
@@ -1800,8 +1800,15 @@ const menu = {
|
|
|
1800
1800
|
position: "relative",
|
|
1801
1801
|
padding: "0.375rem 1.5rem",
|
|
1802
1802
|
paddingLeft: "2.2rem",
|
|
1803
|
-
"
|
|
1804
|
-
padding: "0px"
|
|
1803
|
+
".withIcon": {
|
|
1804
|
+
padding: "0px",
|
|
1805
|
+
display: "flex",
|
|
1806
|
+
gap: "4px",
|
|
1807
|
+
justifyContent: "left",
|
|
1808
|
+
alignItems: "center",
|
|
1809
|
+
".icon": {
|
|
1810
|
+
flexShrink: 0
|
|
1811
|
+
}
|
|
1805
1812
|
}
|
|
1806
1813
|
},
|
|
1807
1814
|
".szh-menu__item--hover": (theme) => ({
|
|
@@ -4436,7 +4443,7 @@ const chat$1 = {
|
|
|
4436
4443
|
borderRadius: "2px",
|
|
4437
4444
|
px: 4,
|
|
4438
4445
|
py: 5,
|
|
4439
|
-
|
|
4446
|
+
maxWidth: "80%",
|
|
4440
4447
|
wordWrap: "break-word",
|
|
4441
4448
|
whiteSpace: "pre-wrap",
|
|
4442
4449
|
"&.user": {
|
|
@@ -4787,8 +4794,63 @@ const boxes = {
|
|
|
4787
4794
|
/* PREPEND HERE */
|
|
4788
4795
|
};
|
|
4789
4796
|
|
|
4790
|
-
const form = {
|
|
4797
|
+
const form$1 = {
|
|
4791
4798
|
/* PREPEND HERE */
|
|
4799
|
+
alignItems: "end",
|
|
4800
|
+
width: "100%",
|
|
4801
|
+
display: "flex",
|
|
4802
|
+
flexDirection: "column",
|
|
4803
|
+
gap: 3,
|
|
4804
|
+
".textarea__container": {
|
|
4805
|
+
position: "relative",
|
|
4806
|
+
width: "100%",
|
|
4807
|
+
display: "flex",
|
|
4808
|
+
".buttons__container": {
|
|
4809
|
+
position: "absolute",
|
|
4810
|
+
right: "10px",
|
|
4811
|
+
bottom: "10px",
|
|
4812
|
+
display: "flex",
|
|
4813
|
+
width: "auto",
|
|
4814
|
+
gap: "8px",
|
|
4815
|
+
button: {
|
|
4816
|
+
background: "transparent"
|
|
4817
|
+
}
|
|
4818
|
+
},
|
|
4819
|
+
button: {
|
|
4820
|
+
// borderRadius: '50%',
|
|
4821
|
+
background: "white",
|
|
4822
|
+
border: "none",
|
|
4823
|
+
color: "black"
|
|
4824
|
+
// height: '50px',
|
|
4825
|
+
// width: '50px',
|
|
4826
|
+
},
|
|
4827
|
+
"button:hover": {
|
|
4828
|
+
background: "palette.background.overlay"
|
|
4829
|
+
},
|
|
4830
|
+
".button__content": {
|
|
4831
|
+
display: "flex"
|
|
4832
|
+
}
|
|
4833
|
+
},
|
|
4834
|
+
textarea: {
|
|
4835
|
+
height: "150px",
|
|
4836
|
+
maxHeight: "30vh",
|
|
4837
|
+
width: "100%",
|
|
4838
|
+
scrollbarColor: "transparent",
|
|
4839
|
+
flexShrink: 1
|
|
4840
|
+
// resize: 'none',
|
|
4841
|
+
},
|
|
4842
|
+
"textarea::-webkit-scrollbar": {
|
|
4843
|
+
display: "none"
|
|
4844
|
+
},
|
|
4845
|
+
".gpt__buttonsContainer": {
|
|
4846
|
+
display: "none",
|
|
4847
|
+
alignItems: "end",
|
|
4848
|
+
gap: 3
|
|
4849
|
+
},
|
|
4850
|
+
ul: {
|
|
4851
|
+
ml: 6,
|
|
4852
|
+
listStyle: "square"
|
|
4853
|
+
},
|
|
4792
4854
|
".search_controls": {
|
|
4793
4855
|
alignItems: "center",
|
|
4794
4856
|
justifyContent: "center",
|
|
@@ -4842,7 +4904,7 @@ const form = {
|
|
|
4842
4904
|
}
|
|
4843
4905
|
};
|
|
4844
4906
|
|
|
4845
|
-
const history = {
|
|
4907
|
+
const history$1 = {
|
|
4846
4908
|
/* PREPEND HERE */
|
|
4847
4909
|
width: "100%",
|
|
4848
4910
|
flexShrink: 1,
|
|
@@ -4854,7 +4916,7 @@ const history = {
|
|
|
4854
4916
|
borderRadius: "2px",
|
|
4855
4917
|
px: 4,
|
|
4856
4918
|
py: 5,
|
|
4857
|
-
|
|
4919
|
+
maxWidth: "80%",
|
|
4858
4920
|
wordWrap: "break-word",
|
|
4859
4921
|
whiteSpace: "pre-wrap",
|
|
4860
4922
|
"&.user": {
|
|
@@ -4938,10 +5000,306 @@ const history = {
|
|
|
4938
5000
|
}
|
|
4939
5001
|
};
|
|
4940
5002
|
|
|
5003
|
+
const assistant = {
|
|
5004
|
+
floatingAssistant: {
|
|
5005
|
+
maxHeight: "50vh",
|
|
5006
|
+
height: "50vh",
|
|
5007
|
+
"& div.modal__content[class]": {
|
|
5008
|
+
p: 3,
|
|
5009
|
+
width: "min(90vw, 500px)"
|
|
5010
|
+
},
|
|
5011
|
+
".modal__main": {
|
|
5012
|
+
maxWidth: "unset",
|
|
5013
|
+
overflow: "hidden"
|
|
5014
|
+
},
|
|
5015
|
+
".autoscrollContainer": {
|
|
5016
|
+
height: "30vh"
|
|
5017
|
+
}
|
|
5018
|
+
}
|
|
5019
|
+
};
|
|
5020
|
+
|
|
4941
5021
|
const chat = {
|
|
5022
|
+
/* PREPEND HERE */
|
|
5023
|
+
assistant,
|
|
5024
|
+
form: form$1,
|
|
5025
|
+
history: history$1,
|
|
5026
|
+
li: { mb: 4 },
|
|
5027
|
+
attachments: {
|
|
5028
|
+
".labelBox": {
|
|
5029
|
+
borderWidth: "1px",
|
|
5030
|
+
borderStyle: "solid",
|
|
5031
|
+
borderColor: "palette.border.article",
|
|
5032
|
+
borderRadius: "7px",
|
|
5033
|
+
padding: spacing(4),
|
|
5034
|
+
".iconButton": {
|
|
5035
|
+
color: "palette.text.primary"
|
|
5036
|
+
}
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
};
|
|
5040
|
+
|
|
5041
|
+
const form = {
|
|
5042
|
+
/* PREPEND HERE */
|
|
5043
|
+
alignItems: "center",
|
|
5044
|
+
justifyContent: "center",
|
|
5045
|
+
display: "flex",
|
|
5046
|
+
gap: 0,
|
|
5047
|
+
mx: "auto",
|
|
5048
|
+
background: "palette.background.paper",
|
|
5049
|
+
border: "1px solid",
|
|
5050
|
+
borderColor: "palette.border.section",
|
|
5051
|
+
borderRadius: "panel",
|
|
5052
|
+
boxShadow: "0px 2px 6px #0002",
|
|
5053
|
+
width: "100%",
|
|
5054
|
+
p: spacing(3),
|
|
5055
|
+
"&:focus-within": focusOutline,
|
|
5056
|
+
"& > *:focus[class]": {
|
|
5057
|
+
outlineWidth: 0
|
|
5058
|
+
},
|
|
5059
|
+
".filter_button_box": {
|
|
5060
|
+
position: "relative"
|
|
5061
|
+
},
|
|
5062
|
+
".applied_filters_label": {
|
|
5063
|
+
position: "absolute",
|
|
5064
|
+
bottom: "21px",
|
|
5065
|
+
left: "20px",
|
|
5066
|
+
minWidth: "10px",
|
|
5067
|
+
maxHeight: "10px",
|
|
5068
|
+
border: "2px solid white",
|
|
5069
|
+
borderRadius: "100%",
|
|
5070
|
+
display: "inline-flex",
|
|
5071
|
+
alignItems: "center",
|
|
5072
|
+
justifyContent: "center",
|
|
5073
|
+
backgroundColor: "palette.error.main"
|
|
5074
|
+
},
|
|
5075
|
+
".searchTextArea": {
|
|
5076
|
+
minHeight: "34px",
|
|
5077
|
+
height: "34px",
|
|
5078
|
+
resize: "none",
|
|
5079
|
+
py: spacing(2),
|
|
5080
|
+
background: "transparent",
|
|
5081
|
+
border: "none"
|
|
5082
|
+
},
|
|
5083
|
+
".SearchButton": {
|
|
5084
|
+
borderRadius: "panel",
|
|
5085
|
+
height: "34px",
|
|
5086
|
+
width: "34px",
|
|
5087
|
+
flexShrink: 0,
|
|
5088
|
+
background: "transparent",
|
|
5089
|
+
border: "none",
|
|
5090
|
+
color: "palette.text.primary"
|
|
5091
|
+
}
|
|
5092
|
+
};
|
|
5093
|
+
|
|
5094
|
+
const history = {
|
|
5095
|
+
/* PREPEND HERE */
|
|
5096
|
+
display: "flex",
|
|
5097
|
+
flexDirection: "column",
|
|
5098
|
+
width: "100%",
|
|
5099
|
+
gap: 2,
|
|
5100
|
+
p: 3,
|
|
5101
|
+
".history_message": {
|
|
5102
|
+
px: 4,
|
|
5103
|
+
py: 5,
|
|
5104
|
+
maxWidth: "calc(100% - 50px)",
|
|
5105
|
+
width: "fit-content",
|
|
5106
|
+
wordWrap: "break-word",
|
|
5107
|
+
whiteSpace: "pre-wrap",
|
|
5108
|
+
borderRadius: "chatMessage",
|
|
5109
|
+
"&.last": {
|
|
5110
|
+
mb: 4
|
|
5111
|
+
},
|
|
5112
|
+
"&.user": {
|
|
5113
|
+
"&.first": {
|
|
5114
|
+
borderTopRightRadius: "0px"
|
|
5115
|
+
},
|
|
5116
|
+
backgroundColor: "rgb(108 166 203)",
|
|
5117
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5118
|
+
color: "white",
|
|
5119
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5120
|
+
boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
|
|
5121
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5122
|
+
border: "1px solid rgb(113 145 193)",
|
|
5123
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5124
|
+
alignSelf: "end",
|
|
5125
|
+
display: "flex",
|
|
5126
|
+
flexDirection: "column"
|
|
5127
|
+
},
|
|
5128
|
+
"&.system": {
|
|
5129
|
+
"&.first": {
|
|
5130
|
+
borderTopLeftRadius: "0px"
|
|
5131
|
+
},
|
|
5132
|
+
backgroundColor: "#00bcff14",
|
|
5133
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5134
|
+
boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
|
|
5135
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5136
|
+
border: "1px solid rgb(0 28 38 / 18%)"
|
|
5137
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5138
|
+
},
|
|
5139
|
+
"&.warning": {
|
|
5140
|
+
borderRadius: "2px 20px 20px 20px",
|
|
5141
|
+
alignSelf: "start",
|
|
5142
|
+
backgroundColor: "#ffff0024",
|
|
5143
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5144
|
+
width: "100%",
|
|
5145
|
+
boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
|
|
5146
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5147
|
+
border: "1px solid rgb(0 28 38 / 18%)"
|
|
5148
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5149
|
+
},
|
|
5150
|
+
"&.error": {
|
|
5151
|
+
borderRadius: "2px 20px 20px 20px",
|
|
5152
|
+
alignSelf: "start",
|
|
5153
|
+
backgroundColor: "#fd84212b",
|
|
5154
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5155
|
+
width: "100%",
|
|
5156
|
+
boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
|
|
5157
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5158
|
+
border: "1px solid rgb(0 28 38 / 18%)"
|
|
5159
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5160
|
+
},
|
|
5161
|
+
"&.information": {
|
|
5162
|
+
borderRadius: "2px 20px 20px 20px",
|
|
5163
|
+
alignSelf: "start",
|
|
5164
|
+
backgroundColor: "#00bcff14",
|
|
5165
|
+
//'#2222cc2b',
|
|
5166
|
+
width: "100%",
|
|
5167
|
+
boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
|
|
5168
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5169
|
+
border: "1px solid rgb(0 28 38 / 18%)"
|
|
5170
|
+
// TODO: Set the correct color, if necessary, define it in palette
|
|
5171
|
+
}
|
|
5172
|
+
},
|
|
5173
|
+
".history_message__attachments": {
|
|
5174
|
+
display: "flex",
|
|
5175
|
+
justifyContent: "flex-end",
|
|
5176
|
+
".labelBox": {
|
|
5177
|
+
width: "max-content",
|
|
5178
|
+
background: "#fafafa",
|
|
5179
|
+
color: "palette.text.primary",
|
|
5180
|
+
fontSize: "14px",
|
|
5181
|
+
".labelAndIcon ": {
|
|
5182
|
+
fontSize: "14px"
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5185
|
+
}
|
|
5186
|
+
};
|
|
5187
|
+
|
|
5188
|
+
const controller = {
|
|
5189
|
+
/* PREPEND HERE */
|
|
5190
|
+
display: "flex",
|
|
5191
|
+
flexDirection: "column",
|
|
5192
|
+
alignItems: "stretch",
|
|
5193
|
+
height: "100%",
|
|
5194
|
+
gap: 3,
|
|
5195
|
+
".autoscrollContainer": {
|
|
5196
|
+
flexGrow: 1,
|
|
5197
|
+
flexShrink: 1,
|
|
5198
|
+
flexBasis: "30vh"
|
|
5199
|
+
}
|
|
5200
|
+
};
|
|
5201
|
+
|
|
5202
|
+
const attachments = {
|
|
5203
|
+
/* PREPEND HERE */
|
|
5204
|
+
alignItems: "center",
|
|
5205
|
+
display: "flex",
|
|
5206
|
+
flexDirection: responsive$2({ 0: "column", 3: "row" }),
|
|
5207
|
+
flexWrap: "wrap",
|
|
5208
|
+
gap: spacing$1(3),
|
|
5209
|
+
".attachments__more_button": {
|
|
5210
|
+
border: "1px solid",
|
|
5211
|
+
borderColor: "palette.border.article",
|
|
5212
|
+
borderRadius: "elementBox",
|
|
5213
|
+
boxShadow: "sharp",
|
|
5214
|
+
p: 2
|
|
5215
|
+
},
|
|
5216
|
+
".file_box": {
|
|
5217
|
+
alignItems: "center",
|
|
5218
|
+
border: "1px solid",
|
|
5219
|
+
borderColor: "palette.border.article",
|
|
5220
|
+
borderRadius: "elementBox",
|
|
5221
|
+
boxShadow: "sharp",
|
|
5222
|
+
display: "flex",
|
|
5223
|
+
gap: spacing$1(3),
|
|
5224
|
+
width: responsive$2({
|
|
5225
|
+
0: "100%",
|
|
5226
|
+
3: "min(90vw, 200px)"
|
|
5227
|
+
}),
|
|
5228
|
+
p: 2
|
|
5229
|
+
},
|
|
5230
|
+
".file_box__icon": {
|
|
5231
|
+
flexShrink: 0
|
|
5232
|
+
},
|
|
5233
|
+
".file_box__name": {
|
|
5234
|
+
boxSizing: "border-box",
|
|
5235
|
+
flexGrow: 1,
|
|
5236
|
+
margin: "0px",
|
|
5237
|
+
overflow: "hidden",
|
|
5238
|
+
textOverflow: "ellipsis",
|
|
5239
|
+
whiteSpace: "nowrap"
|
|
5240
|
+
},
|
|
5241
|
+
".file_box__remove": {
|
|
5242
|
+
flexShrink: 0,
|
|
5243
|
+
p: 4
|
|
5244
|
+
}
|
|
5245
|
+
};
|
|
5246
|
+
|
|
5247
|
+
const message = {
|
|
5248
|
+
position: "relative",
|
|
5249
|
+
display: "flex",
|
|
5250
|
+
flexDirection: "column",
|
|
5251
|
+
".closeButton": {
|
|
5252
|
+
borderRadius: "5px",
|
|
5253
|
+
right: "0px",
|
|
5254
|
+
top: "-2px",
|
|
5255
|
+
zIndex: "15",
|
|
5256
|
+
position: "absolute",
|
|
5257
|
+
variant: "buttons.icon-outline-danger"
|
|
5258
|
+
},
|
|
5259
|
+
genericBox: {
|
|
5260
|
+
margin: "10px",
|
|
5261
|
+
display: "flex",
|
|
5262
|
+
flexDirection: "column",
|
|
5263
|
+
justifyContent: "space-between",
|
|
5264
|
+
alignItems: "center",
|
|
5265
|
+
padding: "12px"
|
|
5266
|
+
},
|
|
5267
|
+
fileName: {
|
|
5268
|
+
bottom: "4px",
|
|
5269
|
+
right: "4px",
|
|
5270
|
+
fontSize: "12px",
|
|
5271
|
+
color: "#333",
|
|
5272
|
+
textOverflow: "ellipsis",
|
|
5273
|
+
whiteSpace: "nowrap",
|
|
5274
|
+
overflow: "hidden",
|
|
5275
|
+
width: "inherit",
|
|
5276
|
+
textAlign: "center",
|
|
5277
|
+
px: "5px"
|
|
5278
|
+
},
|
|
5279
|
+
textBox: {
|
|
5280
|
+
variant: "layout.common.components.aiMessage.genericBox",
|
|
5281
|
+
width: "50px",
|
|
5282
|
+
padding: "10px",
|
|
5283
|
+
backgroundColor: "#fff",
|
|
5284
|
+
border: "1px solid #ddd",
|
|
5285
|
+
borderRadius: "4px",
|
|
5286
|
+
position: "relative"
|
|
5287
|
+
},
|
|
5288
|
+
textSnippet: {
|
|
5289
|
+
bottom: "4px",
|
|
5290
|
+
right: "4px",
|
|
5291
|
+
fontSize: "12px",
|
|
5292
|
+
color: "#555"
|
|
5293
|
+
}
|
|
5294
|
+
};
|
|
5295
|
+
|
|
5296
|
+
const newChat = {
|
|
4942
5297
|
/* PREPEND HERE */
|
|
4943
5298
|
form,
|
|
4944
|
-
history
|
|
5299
|
+
history,
|
|
5300
|
+
controller,
|
|
5301
|
+
attachments,
|
|
5302
|
+
message
|
|
4945
5303
|
};
|
|
4946
5304
|
|
|
4947
5305
|
const common = (theme) => {
|
|
@@ -4953,7 +5311,8 @@ const common = (theme) => {
|
|
|
4953
5311
|
tables: tables(theme),
|
|
4954
5312
|
components,
|
|
4955
5313
|
trees,
|
|
4956
|
-
tooltips
|
|
5314
|
+
tooltips,
|
|
5315
|
+
newChat
|
|
4957
5316
|
/* PREPEND HERE */
|
|
4958
5317
|
};
|
|
4959
5318
|
};
|
|
@@ -5713,7 +6072,7 @@ async function getRemarkable(extensions) {
|
|
|
5713
6072
|
|
|
5714
6073
|
const parseMarkdown = async (options) => {
|
|
5715
6074
|
const markdownLibrary = await getRemarkable(options.extensions);
|
|
5716
|
-
const css = (await import('./styles-
|
|
6075
|
+
const css = (await import('./styles-3M4Ekmpa.js')).markdownParserStyles ?? new ErrorImporting();
|
|
5717
6076
|
if (css instanceof ErrorImporting)
|
|
5718
6077
|
throw new Error("Could not import css, cannot continue");
|
|
5719
6078
|
const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
|
|
@@ -6171,4 +6530,4 @@ class MarkdownBuilder {
|
|
|
6171
6530
|
}
|
|
6172
6531
|
|
|
6173
6532
|
export { ApiaThemeProvider as A, Form as F, MarkdownBlock as M, getColorStates as a, getColorsAndStatesByDefinition as b, getColorsAndStatesByPath as c, getColorsByDefinition as d, getColorsByPath as e, getOneColorState as f, getColorState as g, applyStatesGetColor as h, makeStyledComponent as i, injectStyles as j, getSpacingLayouts as k, spacing as l, markdownExtensions as m, smallButton as n, focusOutline as o, parsePalette as p, getVariant as q, responsive$1 as r, spacingLayouts as s, MarkdownBuilder as t, useMainTheme as u, parseMarkdown as v, MarkdownList as w, MarkdownParagraph as x, MarkdownTable as y, MarkdownTableOfContents as z };
|
|
6174
|
-
//# sourceMappingURL=index-
|
|
6533
|
+
//# sourceMappingURL=index-wohlbdB8.js.map
|