@apia/theme 0.3.5 → 1.0.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/cleanDist.json +1 -1
- package/dist/index.js +136 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/cleanDist.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -807,9 +807,7 @@ const components$1 = (theme) => {
|
|
|
807
807
|
}
|
|
808
808
|
},
|
|
809
809
|
desktop: {
|
|
810
|
-
|
|
811
|
-
color: ""
|
|
812
|
-
}
|
|
810
|
+
windowHeader: tinycolor(theme.palette.primary.main).setAlpha(0.8).toRgbString()
|
|
813
811
|
}
|
|
814
812
|
};
|
|
815
813
|
};
|
|
@@ -1252,7 +1250,8 @@ function getThemeColorsObject(theme) {
|
|
|
1252
1250
|
favorite: "#e5c200",
|
|
1253
1251
|
// States
|
|
1254
1252
|
overdueDanger: "rgb(189, 0, 3)",
|
|
1255
|
-
overdueWarning: "
|
|
1253
|
+
overdueWarning: "hsl(50.53deg 100% 26.06%)",
|
|
1254
|
+
overdueWarningBackground: "#fffdd7",
|
|
1256
1255
|
priorityNone: "gray",
|
|
1257
1256
|
priorityLow: theme.palette.success.main,
|
|
1258
1257
|
priorityNormal: "rgb(255 211 34)",
|
|
@@ -1372,6 +1371,8 @@ const alerts = {
|
|
|
1372
1371
|
flexShrink: 0,
|
|
1373
1372
|
backgroundColor: "rgba(10,10,10,0.02)",
|
|
1374
1373
|
pt: spacing(5),
|
|
1374
|
+
display: "flex",
|
|
1375
|
+
flexDirection: "column",
|
|
1375
1376
|
".notification__traceLabel": {
|
|
1376
1377
|
pl: spacing(5),
|
|
1377
1378
|
display: "flex",
|
|
@@ -1516,7 +1517,7 @@ const buttons = {
|
|
|
1516
1517
|
transition: "background-color 300ms ease-out, color 300ms ease-out",
|
|
1517
1518
|
userSelect: "text",
|
|
1518
1519
|
"&, *": getColorsAndStatesByPath("buttons.accordion"),
|
|
1519
|
-
"
|
|
1520
|
+
"h2.toggleAccordionElementLabel": {
|
|
1520
1521
|
variant: "text.default",
|
|
1521
1522
|
color: "inherit",
|
|
1522
1523
|
margin: 0,
|
|
@@ -1831,7 +1832,10 @@ const menu = {
|
|
|
1831
1832
|
alignItems: "center",
|
|
1832
1833
|
position: "relative",
|
|
1833
1834
|
padding: "0.375rem 1.5rem",
|
|
1834
|
-
paddingLeft: "2.2rem"
|
|
1835
|
+
paddingLeft: "2.2rem",
|
|
1836
|
+
"&.withIcon": {
|
|
1837
|
+
padding: "0px"
|
|
1838
|
+
}
|
|
1835
1839
|
},
|
|
1836
1840
|
".szh-menu__item--hover": (theme) => ({
|
|
1837
1841
|
backgroundColor: theme.palette.background.default
|
|
@@ -2048,6 +2052,9 @@ const root = __spreadValues$l(__spreadProps$c(__spreadValues$l({}, menu), {
|
|
|
2048
2052
|
borderStyle: "solid",
|
|
2049
2053
|
borderWidth: "1px",
|
|
2050
2054
|
borderColor: "touchedBorderColor"
|
|
2055
|
+
},
|
|
2056
|
+
".noPadding": {
|
|
2057
|
+
padding: 0
|
|
2051
2058
|
}
|
|
2052
2059
|
}), transitions);
|
|
2053
2060
|
|
|
@@ -2100,7 +2107,7 @@ const baseTheme = () => {
|
|
|
2100
2107
|
tableFilters: "3px 3px 3px rgba(0,0,0,0.2)",
|
|
2101
2108
|
toolbar: "3px 3px 3px rgba(0,0,0,0.1)",
|
|
2102
2109
|
desktop: {
|
|
2103
|
-
windowElement: "rgba(
|
|
2110
|
+
windowElement: "rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px"
|
|
2104
2111
|
}
|
|
2105
2112
|
},
|
|
2106
2113
|
space: [0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 112, 128],
|
|
@@ -2735,7 +2742,15 @@ const apiaApi = {
|
|
|
2735
2742
|
flexDirection: "row",
|
|
2736
2743
|
justifyContent: "end",
|
|
2737
2744
|
p: 0,
|
|
2738
|
-
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
|
+
}
|
|
2739
2754
|
},
|
|
2740
2755
|
".radio": {
|
|
2741
2756
|
display: "flex",
|
|
@@ -4259,6 +4274,9 @@ const accordion = {
|
|
|
4259
4274
|
justifyContent: "space-between",
|
|
4260
4275
|
width: "100%"
|
|
4261
4276
|
}
|
|
4277
|
+
},
|
|
4278
|
+
".accordion__cell__renderer": {
|
|
4279
|
+
display: "flex"
|
|
4262
4280
|
}
|
|
4263
4281
|
},
|
|
4264
4282
|
panels: {
|
|
@@ -4309,9 +4327,88 @@ const accordion = {
|
|
|
4309
4327
|
}
|
|
4310
4328
|
};
|
|
4311
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
|
+
background: "#0178f52b",
|
|
4374
|
+
td: { textAlign: "center" },
|
|
4375
|
+
th: { backgroundColor: "#14597bab" },
|
|
4376
|
+
table: { borderBottom: "1px solid" },
|
|
4377
|
+
button: {
|
|
4378
|
+
width: "-webkit-fill-available",
|
|
4379
|
+
backgroundColor: "#14597bab"
|
|
4380
|
+
},
|
|
4381
|
+
".taskInfoDiv": {
|
|
4382
|
+
display: "flex",
|
|
4383
|
+
justifyContent: "space-evenly"
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
},
|
|
4387
|
+
".help__container": {
|
|
4388
|
+
display: "flex",
|
|
4389
|
+
flexDirection: "column",
|
|
4390
|
+
gap: 4
|
|
4391
|
+
},
|
|
4392
|
+
".functionHelp": {
|
|
4393
|
+
display: "flex",
|
|
4394
|
+
flexDirection: "column",
|
|
4395
|
+
gap: 3,
|
|
4396
|
+
".functionHelp__description, .functionHelp__usage": {
|
|
4397
|
+
pl: 5
|
|
4398
|
+
},
|
|
4399
|
+
".history__message": {
|
|
4400
|
+
wordWrap: "break-word",
|
|
4401
|
+
overflow: "hidden",
|
|
4402
|
+
whiteSpace: "break-spaces"
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
};
|
|
4406
|
+
|
|
4312
4407
|
const components = {
|
|
4408
|
+
/* PREPEND HERE */
|
|
4313
4409
|
accordion,
|
|
4314
|
-
pagination
|
|
4410
|
+
pagination,
|
|
4411
|
+
chat
|
|
4315
4412
|
};
|
|
4316
4413
|
|
|
4317
4414
|
const common = (theme) => {
|
|
@@ -4326,9 +4423,38 @@ const common = (theme) => {
|
|
|
4326
4423
|
};
|
|
4327
4424
|
};
|
|
4328
4425
|
|
|
4426
|
+
const collector = {
|
|
4427
|
+
/* PREPEND HERE */
|
|
4428
|
+
formContainer: {
|
|
4429
|
+
width: "400px",
|
|
4430
|
+
form: {
|
|
4431
|
+
display: "flex",
|
|
4432
|
+
flexDirection: "column",
|
|
4433
|
+
gap: 3
|
|
4434
|
+
},
|
|
4435
|
+
".collector__buttons": {
|
|
4436
|
+
display: "flex",
|
|
4437
|
+
justifyContent: "end",
|
|
4438
|
+
alignItems: "end",
|
|
4439
|
+
gap: 3
|
|
4440
|
+
}
|
|
4441
|
+
},
|
|
4442
|
+
modal: {
|
|
4443
|
+
".modal__main": {
|
|
4444
|
+
maxWidth: "500px"
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
};
|
|
4448
|
+
|
|
4449
|
+
const util = {
|
|
4450
|
+
collector
|
|
4451
|
+
/* PREPEND HERE */
|
|
4452
|
+
};
|
|
4453
|
+
|
|
4329
4454
|
const layout = (theme) => {
|
|
4330
4455
|
return {
|
|
4331
|
-
common: common(theme)
|
|
4456
|
+
common: common(theme),
|
|
4457
|
+
util
|
|
4332
4458
|
/* PREPEND HERE */
|
|
4333
4459
|
};
|
|
4334
4460
|
};
|