@apia/theme 0.3.6 → 1.0.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/cleanDist.json +1 -1
- package/dist/index.js +154 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/cleanDist.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -1250,7 +1250,8 @@ function getThemeColorsObject(theme) {
|
|
|
1250
1250
|
favorite: "#e5c200",
|
|
1251
1251
|
// States
|
|
1252
1252
|
overdueDanger: "rgb(189, 0, 3)",
|
|
1253
|
-
overdueWarning: "
|
|
1253
|
+
overdueWarning: "hsl(50.53deg 100% 26.06%)",
|
|
1254
|
+
overdueWarningBackground: "#fffdd7",
|
|
1254
1255
|
priorityNone: "gray",
|
|
1255
1256
|
priorityLow: theme.palette.success.main,
|
|
1256
1257
|
priorityNormal: "rgb(255 211 34)",
|
|
@@ -1370,6 +1371,8 @@ const alerts = {
|
|
|
1370
1371
|
flexShrink: 0,
|
|
1371
1372
|
backgroundColor: "rgba(10,10,10,0.02)",
|
|
1372
1373
|
pt: spacing(5),
|
|
1374
|
+
display: "flex",
|
|
1375
|
+
flexDirection: "column",
|
|
1373
1376
|
".notification__traceLabel": {
|
|
1374
1377
|
pl: spacing(5),
|
|
1375
1378
|
display: "flex",
|
|
@@ -1514,7 +1517,7 @@ const buttons = {
|
|
|
1514
1517
|
transition: "background-color 300ms ease-out, color 300ms ease-out",
|
|
1515
1518
|
userSelect: "text",
|
|
1516
1519
|
"&, *": getColorsAndStatesByPath("buttons.accordion"),
|
|
1517
|
-
"
|
|
1520
|
+
"h2.toggleAccordionElementLabel": {
|
|
1518
1521
|
variant: "text.default",
|
|
1519
1522
|
color: "inherit",
|
|
1520
1523
|
margin: 0,
|
|
@@ -1829,7 +1832,10 @@ const menu = {
|
|
|
1829
1832
|
alignItems: "center",
|
|
1830
1833
|
position: "relative",
|
|
1831
1834
|
padding: "0.375rem 1.5rem",
|
|
1832
|
-
paddingLeft: "2.2rem"
|
|
1835
|
+
paddingLeft: "2.2rem",
|
|
1836
|
+
"&.withIcon": {
|
|
1837
|
+
padding: "0px"
|
|
1838
|
+
}
|
|
1833
1839
|
},
|
|
1834
1840
|
".szh-menu__item--hover": (theme) => ({
|
|
1835
1841
|
backgroundColor: theme.palette.background.default
|
|
@@ -2046,6 +2052,9 @@ const root = __spreadValues$l(__spreadProps$c(__spreadValues$l({}, menu), {
|
|
|
2046
2052
|
borderStyle: "solid",
|
|
2047
2053
|
borderWidth: "1px",
|
|
2048
2054
|
borderColor: "touchedBorderColor"
|
|
2055
|
+
},
|
|
2056
|
+
".noPadding": {
|
|
2057
|
+
padding: 0
|
|
2049
2058
|
}
|
|
2050
2059
|
}), transitions);
|
|
2051
2060
|
|
|
@@ -2098,7 +2107,7 @@ const baseTheme = () => {
|
|
|
2098
2107
|
tableFilters: "3px 3px 3px rgba(0,0,0,0.2)",
|
|
2099
2108
|
toolbar: "3px 3px 3px rgba(0,0,0,0.1)",
|
|
2100
2109
|
desktop: {
|
|
2101
|
-
windowElement: "rgba(
|
|
2110
|
+
windowElement: "rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px"
|
|
2102
2111
|
}
|
|
2103
2112
|
},
|
|
2104
2113
|
space: [0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 112, 128],
|
|
@@ -2733,7 +2742,15 @@ const apiaApi = {
|
|
|
2733
2742
|
flexDirection: "row",
|
|
2734
2743
|
justifyContent: "end",
|
|
2735
2744
|
p: 0,
|
|
2736
|
-
gap: "0px"
|
|
2745
|
+
gap: "0px",
|
|
2746
|
+
position: "sticky",
|
|
2747
|
+
bottom: "-19px",
|
|
2748
|
+
background: "palette.background.paper",
|
|
2749
|
+
height: "80px",
|
|
2750
|
+
alignItems: "center",
|
|
2751
|
+
button: {
|
|
2752
|
+
height: "50px"
|
|
2753
|
+
}
|
|
2737
2754
|
},
|
|
2738
2755
|
".radio": {
|
|
2739
2756
|
display: "flex",
|
|
@@ -4257,6 +4274,9 @@ const accordion = {
|
|
|
4257
4274
|
justifyContent: "space-between",
|
|
4258
4275
|
width: "100%"
|
|
4259
4276
|
}
|
|
4277
|
+
},
|
|
4278
|
+
".accordion__cell__renderer": {
|
|
4279
|
+
display: "flex"
|
|
4260
4280
|
}
|
|
4261
4281
|
},
|
|
4262
4282
|
panels: {
|
|
@@ -4307,9 +4327,107 @@ const accordion = {
|
|
|
4307
4327
|
}
|
|
4308
4328
|
};
|
|
4309
4329
|
|
|
4330
|
+
const chat = {
|
|
4331
|
+
/* PREPEND HERE */
|
|
4332
|
+
height: "calc(100vh - 300px)",
|
|
4333
|
+
width: "100%",
|
|
4334
|
+
border: "1px solid",
|
|
4335
|
+
borderColor: "palette.border.section",
|
|
4336
|
+
".autoscrollContainer": {
|
|
4337
|
+
display: "flex",
|
|
4338
|
+
flexDirection: "column",
|
|
4339
|
+
width: "100%",
|
|
4340
|
+
gap: 3,
|
|
4341
|
+
p: 3
|
|
4342
|
+
},
|
|
4343
|
+
".history__message": {
|
|
4344
|
+
borderRadius: "2px",
|
|
4345
|
+
p: 3,
|
|
4346
|
+
width: "80%",
|
|
4347
|
+
wordWrap: "break-word",
|
|
4348
|
+
whiteSpace: "pre-wrap",
|
|
4349
|
+
"&.user": {
|
|
4350
|
+
alignSelf: "end",
|
|
4351
|
+
backgroundColor: "#90ee902b"
|
|
4352
|
+
},
|
|
4353
|
+
"&.system": {
|
|
4354
|
+
alignSelf: "start",
|
|
4355
|
+
backgroundColor: "#5701f52b"
|
|
4356
|
+
},
|
|
4357
|
+
"&.warning": {
|
|
4358
|
+
alignSelf: "start",
|
|
4359
|
+
backgroundColor: "#ffff0024",
|
|
4360
|
+
width: "100%"
|
|
4361
|
+
},
|
|
4362
|
+
"&.error": {
|
|
4363
|
+
alignSelf: "start",
|
|
4364
|
+
backgroundColor: "#fd84212b",
|
|
4365
|
+
width: "100%"
|
|
4366
|
+
},
|
|
4367
|
+
"&.information": {
|
|
4368
|
+
alignSelf: "start",
|
|
4369
|
+
backgroundColor: "#2222cc2b",
|
|
4370
|
+
width: "100%"
|
|
4371
|
+
},
|
|
4372
|
+
"&.multipleChoice": {
|
|
4373
|
+
p: 0
|
|
4374
|
+
},
|
|
4375
|
+
".multipleChoiceMessage:not(.customRenderer)": {
|
|
4376
|
+
background: "#0178f52b",
|
|
4377
|
+
td: { textAlign: "center" },
|
|
4378
|
+
th: { backgroundColor: "#14597bab" },
|
|
4379
|
+
table: { borderBottom: "1px solid" },
|
|
4380
|
+
"button.multipleChoice__option": {
|
|
4381
|
+
width: "-webkit-fill-available",
|
|
4382
|
+
backgroundColor: "#14597bab"
|
|
4383
|
+
},
|
|
4384
|
+
".taskInfoDiv": {
|
|
4385
|
+
display: "flex",
|
|
4386
|
+
justifyContent: "space-evenly"
|
|
4387
|
+
}
|
|
4388
|
+
},
|
|
4389
|
+
".multipleChoiceMessage.customRenderer": {
|
|
4390
|
+
display: "flex",
|
|
4391
|
+
flexDirection: "column",
|
|
4392
|
+
gap: 3,
|
|
4393
|
+
"& > p": {
|
|
4394
|
+
background: "#0178f52b",
|
|
4395
|
+
p: 3
|
|
4396
|
+
},
|
|
4397
|
+
".selection__keyHandler": {
|
|
4398
|
+
m: 0,
|
|
4399
|
+
padding: 3,
|
|
4400
|
+
border: "1px solid",
|
|
4401
|
+
borderColor: "palette.border.article",
|
|
4402
|
+
borderRadius: "panel"
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
},
|
|
4406
|
+
".help__container": {
|
|
4407
|
+
display: "flex",
|
|
4408
|
+
flexDirection: "column",
|
|
4409
|
+
gap: 4
|
|
4410
|
+
},
|
|
4411
|
+
".functionHelp": {
|
|
4412
|
+
display: "flex",
|
|
4413
|
+
flexDirection: "column",
|
|
4414
|
+
gap: 3,
|
|
4415
|
+
".functionHelp__description, .functionHelp__usage": {
|
|
4416
|
+
pl: 5
|
|
4417
|
+
},
|
|
4418
|
+
".history__message": {
|
|
4419
|
+
wordWrap: "break-word",
|
|
4420
|
+
overflow: "hidden",
|
|
4421
|
+
whiteSpace: "break-spaces"
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
};
|
|
4425
|
+
|
|
4310
4426
|
const components = {
|
|
4427
|
+
/* PREPEND HERE */
|
|
4311
4428
|
accordion,
|
|
4312
|
-
pagination
|
|
4429
|
+
pagination,
|
|
4430
|
+
chat
|
|
4313
4431
|
};
|
|
4314
4432
|
|
|
4315
4433
|
const common = (theme) => {
|
|
@@ -4324,9 +4442,38 @@ const common = (theme) => {
|
|
|
4324
4442
|
};
|
|
4325
4443
|
};
|
|
4326
4444
|
|
|
4445
|
+
const collector = {
|
|
4446
|
+
/* PREPEND HERE */
|
|
4447
|
+
formContainer: {
|
|
4448
|
+
width: "400px",
|
|
4449
|
+
form: {
|
|
4450
|
+
display: "flex",
|
|
4451
|
+
flexDirection: "column",
|
|
4452
|
+
gap: 3
|
|
4453
|
+
},
|
|
4454
|
+
".collector__buttons": {
|
|
4455
|
+
display: "flex",
|
|
4456
|
+
justifyContent: "end",
|
|
4457
|
+
alignItems: "end",
|
|
4458
|
+
gap: 3
|
|
4459
|
+
}
|
|
4460
|
+
},
|
|
4461
|
+
modal: {
|
|
4462
|
+
".modal__main": {
|
|
4463
|
+
maxWidth: "500px"
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
};
|
|
4467
|
+
|
|
4468
|
+
const util = {
|
|
4469
|
+
collector
|
|
4470
|
+
/* PREPEND HERE */
|
|
4471
|
+
};
|
|
4472
|
+
|
|
4327
4473
|
const layout = (theme) => {
|
|
4328
4474
|
return {
|
|
4329
|
-
common: common(theme)
|
|
4475
|
+
common: common(theme),
|
|
4476
|
+
util
|
|
4330
4477
|
/* PREPEND HERE */
|
|
4331
4478
|
};
|
|
4332
4479
|
};
|