@apia/theme 0.3.6 → 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 CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "cleanDist": 0.006456232710121412
2
+ "cleanDist": 0.7628807900619559
3
3
  }
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: "rgb(209 176 0)",
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
- "h3.toggleAccordionElementLabel": {
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(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px"
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,88 @@ 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
+ 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
+
4310
4407
  const components = {
4408
+ /* PREPEND HERE */
4311
4409
  accordion,
4312
- pagination
4410
+ pagination,
4411
+ chat
4313
4412
  };
4314
4413
 
4315
4414
  const common = (theme) => {
@@ -4324,9 +4423,38 @@ const common = (theme) => {
4324
4423
  };
4325
4424
  };
4326
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
+
4327
4454
  const layout = (theme) => {
4328
4455
  return {
4329
- common: common(theme)
4456
+ common: common(theme),
4457
+ util
4330
4458
  /* PREPEND HERE */
4331
4459
  };
4332
4460
  };