@apia/theme 0.2.4 → 0.3.2

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.js CHANGED
@@ -5,6 +5,7 @@ export { Alert, AspectImage, AspectRatio, Avatar, Badge, BaseStyles, Box, Button
5
5
  export * from '@theme-ui/match-media';
6
6
  import { EventEmitter, useMount, setValueByPath } from '@apia/util';
7
7
  import { useState, useRef, useMemo, Suspense } from 'react';
8
+ import { spacing as spacing$1 } from '@apia/theme';
8
9
  import { jsx, Fragment } from 'react/jsx-runtime';
9
10
 
10
11
  function defaultLighten(color, ratio) {
@@ -34,30 +35,26 @@ function getValueByPath(obj, path, separator = ".") {
34
35
  );
35
36
  }
36
37
 
37
- var __defProp$p = Object.defineProperty;
38
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
39
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
40
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
41
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
42
- var __spreadValues$p = (a, b) => {
38
+ var __defProp$t = Object.defineProperty;
39
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
40
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
41
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
42
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
43
+ var __spreadValues$t = (a, b) => {
43
44
  for (var prop in b || (b = {}))
44
- if (__hasOwnProp$p.call(b, prop))
45
- __defNormalProp$p(a, prop, b[prop]);
46
- if (__getOwnPropSymbols$p)
47
- for (var prop of __getOwnPropSymbols$p(b)) {
48
- if (__propIsEnum$p.call(b, prop))
49
- __defNormalProp$p(a, prop, b[prop]);
45
+ if (__hasOwnProp$t.call(b, prop))
46
+ __defNormalProp$t(a, prop, b[prop]);
47
+ if (__getOwnPropSymbols$t)
48
+ for (var prop of __getOwnPropSymbols$t(b)) {
49
+ if (__propIsEnum$t.call(b, prop))
50
+ __defNormalProp$t(a, prop, b[prop]);
50
51
  }
51
52
  return a;
52
53
  };
53
- const getColorState = (definition, state, theme) => {
54
+ const getColorState = (definition, state, palette) => {
54
55
  var _a, _b, _c, _d;
55
- if (typeof state !== "string") {
56
- console.log("getColorState", { definition, state, theme });
57
- }
58
56
  if (state === "default")
59
- return theme.palette.buildColorsObject(definition);
60
- const palette = theme.palette;
57
+ return palette.buildColorsObject(definition);
61
58
  const opacity = palette.action[`${state}Opacity`];
62
59
  const actualState = state === "checked" ? "selected" : state;
63
60
  definition = Object.fromEntries(
@@ -83,13 +80,13 @@ const getColorState = (definition, state, theme) => {
83
80
  tinycolor((_b = definition.backgroundColor) != null ? _b : "").isLight() ? palette.action[actualState].light : palette.action[actualState].dark,
84
81
  100 * opacity
85
82
  ).toRgbString();
86
- return theme.palette.buildColorsObject(__spreadValues$p(__spreadValues$p({}, definition.backgroundColor ? {
83
+ return palette.buildColorsObject(__spreadValues$t(__spreadValues$t({}, definition.backgroundColor ? {
87
84
  backgroundColor: state === "checked" ? (_c = definition.backgroundColor) != null ? _c : "" : calculatedBackgroundColor,
88
85
  color: state === "checked" ? tinycolor.mix(
89
86
  tinycolor((_d = definition.color) != null ? _d : "black"),
90
87
  tinycolor(palette.action.selected.dark),
91
88
  100 * palette.action.selectedOpacity
92
- ).toRgbString() : theme.palette.getContrastText(calculatedBackgroundColor)
89
+ ).toRgbString() : palette.getContrastText(calculatedBackgroundColor)
93
90
  } : null), definition.borderColor ? {
94
91
  borderColor: tinycolor.mix(
95
92
  definition.borderColor,
@@ -99,29 +96,28 @@ const getColorState = (definition, state, theme) => {
99
96
  } : null));
100
97
  };
101
98
 
102
- const applyStatesGetColor = (definition, theme, states) => {
99
+ const applyStatesGetColor = (definition, palette, states) => {
103
100
  const newStates = (states == null ? void 0 : states.default) !== false ? cloneDeep(definition) : {};
104
- newStates.path = { fill: definition.color };
105
101
  if ((states == null ? void 0 : states.active) !== false) {
106
- newStates.active = getColorState(definition, "active", theme);
102
+ newStates.active = getColorState(definition, "active", palette);
107
103
  }
108
104
  if ((states == null ? void 0 : states.disabled) !== false) {
109
- newStates.disabled = getColorState(definition, "disabled", theme);
105
+ newStates.disabled = getColorState(definition, "disabled", palette);
110
106
  }
111
107
  if ((states == null ? void 0 : states.focus) !== false) {
112
- newStates.focus = getColorState(definition, "focus", theme);
108
+ newStates.focus = getColorState(definition, "focus", palette);
113
109
  }
114
110
  if ((states == null ? void 0 : states.hover) !== false) {
115
- newStates.hover = getColorState(definition, "hover", theme);
111
+ newStates.hover = getColorState(definition, "hover", palette);
116
112
  }
117
113
  if ((states == null ? void 0 : states.readonly) !== false) {
118
- newStates.readonly = getColorState(definition, "readonly", theme);
114
+ newStates.readonly = getColorState(definition, "readonly", palette);
119
115
  }
120
116
  if ((states == null ? void 0 : states.selected) !== false) {
121
- newStates.selected = getColorState(definition, "selected", theme);
117
+ newStates.selected = getColorState(definition, "selected", palette);
122
118
  }
123
119
  if ((states == null ? void 0 : states.checked) !== false) {
124
- newStates.checked = getColorState(definition, "checked", theme);
120
+ newStates.checked = getColorState(definition, "checked", palette);
125
121
  }
126
122
  return newStates;
127
123
  };
@@ -146,7 +142,11 @@ function applyStates(properties, theme, states) {
146
142
  definition.hover = {};
147
143
  if (!definition.selected)
148
144
  definition.selected = {};
149
- const newDefinition = applyStatesGetColor(definition, theme, states);
145
+ const newDefinition = applyStatesGetColor(
146
+ definition,
147
+ theme.palette,
148
+ states
149
+ );
150
150
  def[key] = merge(newDefinition, definition);
151
151
  }
152
152
  });
@@ -190,6 +190,7 @@ const defaultPalette = {
190
190
  border: {
191
191
  article: "#cacaca",
192
192
  field: "#444",
193
+ ghost: "#f5f5f5",
193
194
  section: "#aaa"
194
195
  },
195
196
  common: {
@@ -200,7 +201,8 @@ const defaultPalette = {
200
201
  main: "#fff"
201
202
  },
202
203
  primary: {
203
- main: "#00496c"
204
+ main: "#00496c",
205
+ light: "#fcfcfc"
204
206
  },
205
207
  secondary: {
206
208
  main: "#6c757d"
@@ -325,24 +327,24 @@ const buildStateObject = (props, state) => {
325
327
  }
326
328
  };
327
329
 
328
- var __defProp$o = Object.defineProperty;
329
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
330
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
331
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
332
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
333
- var __spreadValues$o = (a, b) => {
330
+ var __defProp$s = Object.defineProperty;
331
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
332
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
333
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
334
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
335
+ var __spreadValues$s = (a, b) => {
334
336
  for (var prop in b || (b = {}))
335
- if (__hasOwnProp$o.call(b, prop))
336
- __defNormalProp$o(a, prop, b[prop]);
337
- if (__getOwnPropSymbols$o)
338
- for (var prop of __getOwnPropSymbols$o(b)) {
339
- if (__propIsEnum$o.call(b, prop))
340
- __defNormalProp$o(a, prop, b[prop]);
337
+ if (__hasOwnProp$s.call(b, prop))
338
+ __defNormalProp$s(a, prop, b[prop]);
339
+ if (__getOwnPropSymbols$s)
340
+ for (var prop of __getOwnPropSymbols$s(b)) {
341
+ if (__propIsEnum$s.call(b, prop))
342
+ __defNormalProp$s(a, prop, b[prop]);
341
343
  }
342
344
  return a;
343
345
  };
344
346
  function buildColorsObject(definition) {
345
- return __spreadValues$o(__spreadValues$o({}, definition), definition.borderColor ? {
347
+ return __spreadValues$s(__spreadValues$s({}, definition), definition.borderColor ? {
346
348
  borderLeftColor: definition.borderColor,
347
349
  borderRightColor: definition.borderColor,
348
350
  borderBottomColor: definition.borderColor,
@@ -361,19 +363,19 @@ function getColorsByPath(path, options) {
361
363
  );
362
364
  }
363
365
 
364
- var __defProp$n = Object.defineProperty;
365
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
366
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
367
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
368
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
369
- var __spreadValues$n = (a, b) => {
366
+ var __defProp$r = Object.defineProperty;
367
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
368
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
369
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
370
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
371
+ var __spreadValues$r = (a, b) => {
370
372
  for (var prop in b || (b = {}))
371
- if (__hasOwnProp$n.call(b, prop))
372
- __defNormalProp$n(a, prop, b[prop]);
373
- if (__getOwnPropSymbols$n)
374
- for (var prop of __getOwnPropSymbols$n(b)) {
375
- if (__propIsEnum$n.call(b, prop))
376
- __defNormalProp$n(a, prop, b[prop]);
373
+ if (__hasOwnProp$r.call(b, prop))
374
+ __defNormalProp$r(a, prop, b[prop]);
375
+ if (__getOwnPropSymbols$r)
376
+ for (var prop of __getOwnPropSymbols$r(b)) {
377
+ if (__propIsEnum$r.call(b, prop))
378
+ __defNormalProp$r(a, prop, b[prop]);
377
379
  }
378
380
  return a;
379
381
  };
@@ -381,62 +383,59 @@ function getColorsAndStatesByPath(incomingPath, options) {
381
383
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
382
384
  const active = getColorsByPath(`${incomingPath}.active`, options);
383
385
  const checked = getColorsByPath(`${incomingPath}.checked`, options);
384
- const disabled = __spreadValues$n({
386
+ const disabled = __spreadValues$r({
385
387
  cursor: "not-allowed"
386
388
  }, getColorsByPath(`${incomingPath}.disabled`, options));
387
389
  const hover = getColorsByPath(`${incomingPath}.hover`, options);
388
390
  const focus = ((_a = options == null ? void 0 : options.states) == null ? void 0 : _a.focus) !== false ? getColorsByPath(`${incomingPath}.focus`, options) : {};
389
- const readonly = __spreadValues$n({
391
+ const readonly = __spreadValues$r({
390
392
  cursor: "notAllowed"
391
393
  }, getColorsByPath(`${incomingPath}.readonly`, options));
392
394
  const selected = getColorsByPath(`${incomingPath}.selected`, options);
393
- let path = {};
394
- if ((_b = options == null ? void 0 : options.states) == null ? void 0 : _b.path) {
395
- path = { path: { fill: `${incomingPath}.color` } };
396
- }
397
395
  return merge(
398
- __spreadValues$n(__spreadValues$n(__spreadValues$n(__spreadValues$n(__spreadValues$n(__spreadValues$n(__spreadValues$n(__spreadValues$n({}, ((_c = options == null ? void 0 : options.states) == null ? void 0 : _c.default) !== false ? getColorsByPath(incomingPath, options) : null), ((_d = options == null ? void 0 : options.states) == null ? void 0 : _d.checked) !== false ? buildStateObject(checked, "checked") : null), buildStateObject(focus, "focus")), ((_e = options == null ? void 0 : options.states) == null ? void 0 : _e.hover) !== false ? buildStateObject(hover, "hover") : null), ((_f = options == null ? void 0 : options.states) == null ? void 0 : _f.selected) !== false ? buildStateObject(selected, "selected") : null), ((_g = options == null ? void 0 : options.states) == null ? void 0 : _g.active) !== false ? buildStateObject(active, "active") : null), ((_h = options == null ? void 0 : options.states) == null ? void 0 : _h.disabled) !== false ? buildStateObject(disabled, "disabled") : null), ((_i = options == null ? void 0 : options.states) == null ? void 0 : _i.readonly) !== false ? buildStateObject(readonly, "readonly") : null),
399
- path,
396
+ __spreadValues$r(__spreadValues$r(__spreadValues$r(__spreadValues$r(__spreadValues$r(__spreadValues$r(__spreadValues$r(__spreadValues$r(__spreadValues$r({}, ((_b = options == null ? void 0 : options.states) == null ? void 0 : _b.default) !== false ? getColorsByPath(incomingPath, options) : null), ((_c = options == null ? void 0 : options.states) == null ? void 0 : _c.checked) !== false ? buildStateObject(checked, "checked") : null), buildStateObject(focus, "focus")), ((_d = options == null ? void 0 : options.states) == null ? void 0 : _d.hover) !== false ? buildStateObject(hover, "hover") : null), ((_e = options == null ? void 0 : options.states) == null ? void 0 : _e.selected) !== false ? buildStateObject(selected, "selected") : null), ((_f = options == null ? void 0 : options.states) == null ? void 0 : _f.active) !== false ? buildStateObject(active, "active") : null), ((_g = options == null ? void 0 : options.states) == null ? void 0 : _g.disabled) !== false ? buildStateObject(disabled, "disabled") : null), ((_h = options == null ? void 0 : options.states) == null ? void 0 : _h.readonly) !== false ? buildStateObject(readonly, "readonly") : null), ((_i = options == null ? void 0 : options.states) == null ? void 0 : _i.path) !== false ? { path: { fill: `${incomingPath}.color` } } : null),
400
397
  options == null ? void 0 : options.mergeObject
401
398
  );
402
399
  }
403
400
 
404
- var __defProp$m = Object.defineProperty;
405
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
406
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
407
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
408
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
409
- var __spreadValues$m = (a, b) => {
401
+ var __defProp$q = Object.defineProperty;
402
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
403
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
404
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
405
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
406
+ var __spreadValues$q = (a, b) => {
410
407
  for (var prop in b || (b = {}))
411
- if (__hasOwnProp$m.call(b, prop))
412
- __defNormalProp$m(a, prop, b[prop]);
413
- if (__getOwnPropSymbols$m)
414
- for (var prop of __getOwnPropSymbols$m(b)) {
415
- if (__propIsEnum$m.call(b, prop))
416
- __defNormalProp$m(a, prop, b[prop]);
408
+ if (__hasOwnProp$q.call(b, prop))
409
+ __defNormalProp$q(a, prop, b[prop]);
410
+ if (__getOwnPropSymbols$q)
411
+ for (var prop of __getOwnPropSymbols$q(b)) {
412
+ if (__propIsEnum$q.call(b, prop))
413
+ __defNormalProp$q(a, prop, b[prop]);
417
414
  }
418
415
  return a;
419
416
  };
420
- const getColorStates = (definition, theme, states) => {
421
- return __spreadValues$m(__spreadValues$m(__spreadValues$m(__spreadValues$m(__spreadValues$m(__spreadValues$m(__spreadValues$m(__spreadValues$m({}, (states == null ? void 0 : states.default) !== false ? definition : null), (states == null ? void 0 : states.checked) !== false ? buildStateObject(getColorState(definition, "checked", theme), "checked") : null), buildStateObject(getColorState(definition, "focus", theme), "focus")), (states == null ? void 0 : states.selected) !== false ? buildStateObject(
422
- getColorState(definition, "selected", theme),
417
+ const getColorStates = (definition, palette, states) => {
418
+ return __spreadValues$q(__spreadValues$q(__spreadValues$q(__spreadValues$q(__spreadValues$q(__spreadValues$q(__spreadValues$q(__spreadValues$q({}, (states == null ? void 0 : states.default) !== false ? definition : null), (states == null ? void 0 : states.checked) !== false ? buildStateObject(
419
+ getColorState(definition, "checked", palette),
420
+ "checked"
421
+ ) : null), buildStateObject(getColorState(definition, "focus", palette), "focus")), (states == null ? void 0 : states.selected) !== false ? buildStateObject(
422
+ getColorState(definition, "selected", palette),
423
423
  "selected"
424
- ) : null), (states == null ? void 0 : states.hover) !== false ? buildStateObject(getColorState(definition, "hover", theme), "hover") : null), (states == null ? void 0 : states.active) !== false ? buildStateObject(getColorState(definition, "active", theme), "active") : null), (states == null ? void 0 : states.disabled) !== false ? buildStateObject(
425
- getColorState(definition, "disabled", theme),
424
+ ) : null), (states == null ? void 0 : states.hover) !== false ? buildStateObject(getColorState(definition, "hover", palette), "hover") : null), (states == null ? void 0 : states.active) !== false ? buildStateObject(getColorState(definition, "active", palette), "active") : null), (states == null ? void 0 : states.disabled) !== false ? buildStateObject(
425
+ getColorState(definition, "disabled", palette),
426
426
  "disabled"
427
427
  ) : null), (states == null ? void 0 : states.readonly) !== false ? buildStateObject(
428
- getColorState(definition, "readonly", theme),
428
+ getColorState(definition, "readonly", palette),
429
429
  "readonly"
430
430
  ) : null);
431
431
  };
432
432
 
433
- const getOneColorState = (color, state, theme) => {
433
+ const getOneColorState = (color, state, palette) => {
434
434
  if (typeof color !== "string")
435
435
  return "";
436
436
  if (state === "default")
437
437
  return color;
438
438
  const actualState = state === "checked" ? "selected" : state;
439
- const palette = theme.palette;
440
439
  const opacity = palette.action[`${state}Opacity`];
441
440
  return tinycolor.mix(
442
441
  color,
@@ -445,40 +444,40 @@ const getOneColorState = (color, state, theme) => {
445
444
  ).toRgbString();
446
445
  };
447
446
 
448
- var __defProp$l = Object.defineProperty;
449
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
450
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
451
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
452
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
453
- var __spreadValues$l = (a, b) => {
447
+ var __defProp$p = Object.defineProperty;
448
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
449
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
450
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
451
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
452
+ var __spreadValues$p = (a, b) => {
454
453
  for (var prop in b || (b = {}))
455
- if (__hasOwnProp$l.call(b, prop))
456
- __defNormalProp$l(a, prop, b[prop]);
457
- if (__getOwnPropSymbols$l)
458
- for (var prop of __getOwnPropSymbols$l(b)) {
459
- if (__propIsEnum$l.call(b, prop))
460
- __defNormalProp$l(a, prop, b[prop]);
454
+ if (__hasOwnProp$p.call(b, prop))
455
+ __defNormalProp$p(a, prop, b[prop]);
456
+ if (__getOwnPropSymbols$p)
457
+ for (var prop of __getOwnPropSymbols$p(b)) {
458
+ if (__propIsEnum$p.call(b, prop))
459
+ __defNormalProp$p(a, prop, b[prop]);
461
460
  }
462
461
  return a;
463
462
  };
464
463
  function getColorsByDefinition(definition, options) {
465
464
  return merge(
466
- buildColorsObject(__spreadValues$l(__spreadValues$l(__spreadValues$l({}, definition.color ? { color: definition.color } : null), definition.backgroundColor ? { backgroundColor: definition.backgroundColor } : null), definition.borderColor ? {
465
+ buildColorsObject(__spreadValues$p(__spreadValues$p(__spreadValues$p({}, definition.color ? { color: definition.color } : null), definition.backgroundColor ? { backgroundColor: definition.backgroundColor } : null), definition.borderColor ? {
467
466
  borderColor: definition.borderColor
468
467
  } : null)),
469
468
  options == null ? void 0 : options.mergeObject
470
469
  );
471
470
  }
472
471
 
473
- function getColorsAndStatesByDefinition(definition, theme, options) {
472
+ function getColorsAndStatesByDefinition(definition, palette, options) {
474
473
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
475
- const active = getColorState(definition, "active", theme);
476
- const checked = getColorState(definition, "checked", theme);
477
- const disabled = getColorState(definition, "disabled", theme);
478
- const focus = ((_a = options == null ? void 0 : options.states) == null ? void 0 : _a.focus) ? getColorState(definition, "focus", theme) : {};
479
- const hover = getColorState(definition, "hover", theme);
480
- const readonly = getColorState(definition, "readonly", theme);
481
- const selected = getColorState(definition, "selected", theme);
474
+ const active = getColorState(definition, "active", palette);
475
+ const checked = getColorState(definition, "checked", palette);
476
+ const disabled = getColorState(definition, "disabled", palette);
477
+ const focus = ((_a = options == null ? void 0 : options.states) == null ? void 0 : _a.focus) ? getColorState(definition, "focus", palette) : {};
478
+ const hover = getColorState(definition, "hover", palette);
479
+ const readonly = getColorState(definition, "readonly", palette);
480
+ const selected = getColorState(definition, "selected", palette);
482
481
  return merge(
483
482
  ((_b = options == null ? void 0 : options.states) == null ? void 0 : _b.default) !== false ? getColorsByDefinition(definition) : null,
484
483
  ((_c = options == null ? void 0 : options.states) == null ? void 0 : _c.checked) !== false ? buildStateObject(checked, "checked") : {},
@@ -520,7 +519,7 @@ function paletteFunction(callback) {
520
519
  }
521
520
  };
522
521
  }
523
- function parsePalette(palette, theme) {
522
+ function parsePalette(palette) {
524
523
  var _a, _b, _c, _d, _e, _f, _g, _h;
525
524
  const newPalette = cloneDeep(palette);
526
525
  newPalette.lightenColor = paletteFunction(
@@ -580,24 +579,25 @@ function parsePalette(palette, theme) {
580
579
  newPalette.buildColorsObject = paletteFunction(buildColorsObject);
581
580
  newPalette.buildStateObject = paletteFunction(buildStateObject);
582
581
  newPalette.getColor = paletteFunction(
583
- (color, state) => getOneColorState(color, state, theme)
582
+ (color, state) => getOneColorState(color, state, newPalette)
584
583
  );
585
584
  newPalette.getStatesForColors = paletteFunction(
586
- (definition, states) => applyStatesGetColor(definition, theme, states)
585
+ (definition, states) => applyStatesGetColor(definition, newPalette, states)
587
586
  );
588
587
  newPalette.getOneState = paletteFunction(
589
- (definition, state) => getColorState(definition, state, theme)
588
+ (definition, state) => getColorState(definition, state, newPalette)
590
589
  );
591
590
  newPalette.getColorStates = paletteFunction(
592
- (definition, state) => getColorStates(definition, theme, state)
591
+ (definition, state) => getColorStates(definition, newPalette, state)
593
592
  );
594
593
  newPalette.getStatesFromDefinition = paletteFunction(
595
- (definition, states) => getColorsAndStatesByDefinition(definition, theme, states)
594
+ (definition, states) => getColorsAndStatesByDefinition(definition, newPalette, states)
596
595
  );
597
596
  newPalette.getStatesFromPath = paletteFunction(getColorsAndStatesByPath);
598
597
  newPalette.getSelectedColors = paletteFunction(
599
- () => getSelectedColors(theme)
598
+ () => getSelectedColors(newPalette)
600
599
  );
600
+ newPalette.getColorsByPath = paletteFunction(getColorsByPath);
601
601
  return newPalette;
602
602
  }
603
603
 
@@ -622,7 +622,7 @@ const components$1 = (theme) => {
622
622
  header: {
623
623
  backgroundColor: palette.background.default,
624
624
  color: palette.text.primary,
625
- borderColor: palette.background.default
625
+ borderColor: theme.palette.darkenColor(palette.border.ghost)
626
626
  },
627
627
  body: {
628
628
  preventParse: true,
@@ -648,7 +648,7 @@ const components$1 = (theme) => {
648
648
  }
649
649
  }
650
650
  },
651
- pagination: {
651
+ paginationPrimary: {
652
652
  backgroundColor: palette.primary.main,
653
653
  icons: {
654
654
  backgroundColor: palette.primary.main,
@@ -662,11 +662,39 @@ const components$1 = (theme) => {
662
662
  color: palette.text.primary
663
663
  }
664
664
  },
665
+ paginationSecondary: {
666
+ backgroundColor: palette.background.default,
667
+ icons: {
668
+ backgroundColor: palette.secondary.main,
669
+ borderColor: palette.secondary.main,
670
+ color: palette.secondary.contrastText
671
+ },
672
+ pagesBox: {
673
+ preventParse: true,
674
+ backgroundColor: palette.background.paper,
675
+ borderColor: palette.border.field,
676
+ color: palette.text.primary
677
+ }
678
+ },
679
+ paginationDatagrid: {
680
+ backgroundColor: palette.background.default,
681
+ icons: {
682
+ backgroundColor: palette.secondary.main,
683
+ borderColor: palette.secondary.main,
684
+ color: palette.secondary.contrastText
685
+ },
686
+ pagesBox: {
687
+ preventParse: true,
688
+ backgroundColor: palette.background.paper,
689
+ borderColor: palette.border.field,
690
+ color: palette.text.primary
691
+ }
692
+ },
665
693
  primaryTable: {
666
694
  borderColor: palette.background.paper,
667
695
  header: {
668
696
  backgroundColor: palette.primary.main,
669
- color: palette.primary.contrastText,
697
+ color: palette.text.secondary,
670
698
  borderColor: palette.primary.main
671
699
  },
672
700
  body: {
@@ -693,6 +721,39 @@ const components$1 = (theme) => {
693
721
  }
694
722
  }
695
723
  },
724
+ cleanTable: {
725
+ borderColor: palette.background.paper,
726
+ header: {
727
+ backgroundColor: palette.background.paper,
728
+ color: palette.text.primary,
729
+ borderColor: palette.primary.main
730
+ },
731
+ body: {
732
+ preventParse: true,
733
+ backgroundColor: palette.background.paper,
734
+ borderColor: palette.border.ghost,
735
+ color: palette.text.primary,
736
+ evenRowsBackgroundColor: palette.background.paper,
737
+ additionalInfoButton: {
738
+ backgroundColor: palette.primary.light,
739
+ color: "#4e4e4e",
740
+ borderColor: "transparent"
741
+ },
742
+ selectedRows: {
743
+ borderColor: palette.gray["800"],
744
+ backgroundColor: palette.getOneState(
745
+ { backgroundColor: palette.background.paper },
746
+ "selected"
747
+ ).backgroundColor,
748
+ color: palette.getContrastText(
749
+ palette.getOneState(
750
+ { backgroundColor: palette.background.paper },
751
+ "selected"
752
+ ).backgroundColor
753
+ )
754
+ }
755
+ }
756
+ },
696
757
  secondaryTable: {
697
758
  borderColor: palette.background.paper,
698
759
  header: {
@@ -723,37 +784,56 @@ const components$1 = (theme) => {
723
784
  )
724
785
  }
725
786
  }
787
+ },
788
+ /**
789
+ * Paneles de dashboards
790
+ */
791
+ panel: {
792
+ header: {
793
+ color: "",
794
+ //components.panel.header.color
795
+ backgroundColor: "",
796
+ borderColor: ""
797
+ },
798
+ content: {
799
+ color: "",
800
+ backgroundColor: "",
801
+ borderColor: ""
802
+ },
803
+ footer: {
804
+ color: "",
805
+ backgroundColor: "",
806
+ borderColor: ""
807
+ }
726
808
  }
727
809
  };
728
810
  };
729
811
 
730
- var __defProp$k = Object.defineProperty;
731
- var __defProps$b = Object.defineProperties;
732
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
733
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
734
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
735
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
736
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
737
- var __spreadValues$k = (a, b) => {
812
+ var __defProp$o = Object.defineProperty;
813
+ var __defProps$d = Object.defineProperties;
814
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
815
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
816
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
817
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
818
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
819
+ var __spreadValues$o = (a, b) => {
738
820
  for (var prop in b || (b = {}))
739
- if (__hasOwnProp$k.call(b, prop))
740
- __defNormalProp$k(a, prop, b[prop]);
741
- if (__getOwnPropSymbols$k)
742
- for (var prop of __getOwnPropSymbols$k(b)) {
743
- if (__propIsEnum$k.call(b, prop))
744
- __defNormalProp$k(a, prop, b[prop]);
821
+ if (__hasOwnProp$o.call(b, prop))
822
+ __defNormalProp$o(a, prop, b[prop]);
823
+ if (__getOwnPropSymbols$o)
824
+ for (var prop of __getOwnPropSymbols$o(b)) {
825
+ if (__propIsEnum$o.call(b, prop))
826
+ __defNormalProp$o(a, prop, b[prop]);
745
827
  }
746
828
  return a;
747
829
  };
748
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
749
- const darkBlue = "#004085";
750
- const lightBlue = "#cce5ff";
830
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
751
831
  const white = "white";
752
- function getSelectedColors(theme) {
753
- return theme.palette.getColorStates(
832
+ function getSelectedColors(palette) {
833
+ return palette.getColorStates(
754
834
  {
755
- backgroundColor: theme.palette.background.paper,
756
- color: theme.palette.text.primary
835
+ backgroundColor: palette.background.paper,
836
+ color: palette.text.primary
757
837
  },
758
838
  {
759
839
  active: false,
@@ -766,11 +846,11 @@ function getSelectedColors(theme) {
766
846
  );
767
847
  }
768
848
  function getThemeColorsObject(theme) {
769
- var _a;
849
+ var _a, _b;
770
850
  const colors = merge(
771
851
  {},
772
852
  {
773
- palette: __spreadProps$b(__spreadValues$k({}, theme.palette), {
853
+ palette: __spreadProps$d(__spreadValues$o({}, theme.palette), {
774
854
  lightenColor: void 0,
775
855
  darkenColor: void 0,
776
856
  getContrastText: void 0,
@@ -795,21 +875,25 @@ function getThemeColorsObject(theme) {
795
875
  borderColor: theme.palette.border.section,
796
876
  color: theme.palette.primary.contrastText
797
877
  },
798
- close: __spreadProps$b(__spreadValues$k({}, applyStatesGetColor(
878
+ close: __spreadProps$d(__spreadValues$o({}, applyStatesGetColor(
799
879
  {
800
880
  color: theme.palette.text.primary,
801
881
  backgroundColor: theme.palette.background.paper
802
882
  },
803
- theme
883
+ theme.palette
804
884
  )), {
805
885
  backgroundColor: "transparent"
806
886
  }),
807
887
  collapsibleAsidePanelTitle: {
808
888
  color: theme.palette.text.primary
809
889
  },
810
- deletableInputButton: {
811
- backgroundColor: "transparent",
812
- color: theme.palette.secondary.main,
890
+ deletableInputButton: __spreadProps$d(__spreadValues$o({}, applyStatesGetColor(
891
+ {
892
+ backgroundColor: "transparent",
893
+ color: theme.palette.secondary.main
894
+ },
895
+ theme.palette
896
+ )), {
813
897
  active: {
814
898
  color: theme.palette.darkenColor(theme.palette.secondary.main, 40)
815
899
  },
@@ -822,7 +906,7 @@ function getThemeColorsObject(theme) {
822
906
  hover: {
823
907
  color: theme.palette.darkenColor(theme.palette.secondary.main, 20)
824
908
  }
825
- },
909
+ }),
826
910
  icon: {
827
911
  backgroundColor: theme.palette.secondary.main,
828
912
  color: theme.palette.text.icon,
@@ -914,7 +998,7 @@ function getThemeColorsObject(theme) {
914
998
  },
915
999
  outlineDanger: {
916
1000
  backgroundColor: theme.palette.background.paper,
917
- color: theme.palette.primary.main,
1001
+ color: theme.palette.text.primary,
918
1002
  borderColor: theme.palette.primary.main,
919
1003
  active: {
920
1004
  borderColor: theme.palette.darkenColor(
@@ -1154,73 +1238,53 @@ function getThemeColorsObject(theme) {
1154
1238
  { backgroundColor: theme.palette.background.paper },
1155
1239
  "selected"
1156
1240
  ).backgroundColor,
1157
- // Meaningful colors
1158
- lightBorder: "hsl(0, 12%, 85%)",
1241
+ acquiredColor: "#2b2bd0",
1242
+ acquiredColorDisabled: "#7f7fd4",
1243
+ // Borders
1159
1244
  outlineColor: "#00a8f6",
1160
1245
  touchedBorderColor: "orange",
1161
- // Custom Apia colors
1162
- baseGrey: "#dfdfdf",
1163
- darkBorder: "hsl(247, 98%, 10%)",
1164
- darkBlue,
1165
- disabled: "#efefef",
1246
+ // Other colors
1166
1247
  favorite: "#e5c200",
1167
- filtersRowBackground: white,
1168
- formBackground: white,
1169
- grey: "#777",
1170
- gridRowHighlight: "#e1f3ff",
1171
- highlightButton: "hsl(61, 100%, 91%)",
1172
- lightBlue,
1173
- oddRow: "#f0f5ff",
1174
- paginationBackground: "hsl(229deg, 75%, 90%)",
1175
- readOnlyText: "#737373",
1176
- required: "darkred",
1177
- scrollbarBack: "rgb(206, 206, 206)",
1178
- scrollbarFront: "rgb(156, 156, 156)",
1179
- sysExceptionNotificationBg: "#f8d7da",
1180
- sysMessageNotificationBg: "#fff3cd",
1181
- tabBackground: "white",
1182
- treeRuler: "#ccc",
1183
- white,
1248
+ // States
1249
+ overdueDanger: "rgb(189, 0, 3)",
1250
+ overdueWarning: "rgb(209 176 0)",
1184
1251
  priorityNone: "gray",
1185
1252
  priorityLow: theme.palette.success.main,
1186
1253
  priorityNormal: "rgb(255 211 34)",
1187
1254
  priorityHigh: "rgb(255 150 0)",
1188
1255
  priorityUrgent: "red",
1189
- // modes: {
1190
- // dark: {
1191
- // // TODO: dark-mode uhhhhhhh!!!
1192
- // //text: '#fff',
1193
- // },
1194
- // },
1195
- charts: {
1196
- front: darkBlue
1197
- }
1256
+ // Common
1257
+ white
1198
1258
  },
1199
1259
  (_a = theme.colors) != null ? _a : {}
1200
1260
  );
1201
1261
  applyStates(
1202
1262
  [
1203
1263
  colors == null ? void 0 : colors.buttons,
1204
- colors == null ? void 0 : colors.form
1264
+ colors == null ? void 0 : colors.form,
1265
+ colors == null ? void 0 : colors.components
1205
1266
  ],
1206
1267
  theme
1207
1268
  );
1269
+ Object.entries((_b = colors.components) != null ? _b : {}).forEach(([name]) => {
1270
+ applyStates([colors.components[name]], theme);
1271
+ });
1208
1272
  return colors;
1209
1273
  }
1210
1274
 
1211
- var __defProp$j = Object.defineProperty;
1212
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1213
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1214
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1215
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1216
- var __spreadValues$j = (a, b) => {
1275
+ var __defProp$n = Object.defineProperty;
1276
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1277
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1278
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1279
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1280
+ var __spreadValues$n = (a, b) => {
1217
1281
  for (var prop in b || (b = {}))
1218
- if (__hasOwnProp$j.call(b, prop))
1219
- __defNormalProp$j(a, prop, b[prop]);
1220
- if (__getOwnPropSymbols$j)
1221
- for (var prop of __getOwnPropSymbols$j(b)) {
1222
- if (__propIsEnum$j.call(b, prop))
1223
- __defNormalProp$j(a, prop, b[prop]);
1282
+ if (__hasOwnProp$n.call(b, prop))
1283
+ __defNormalProp$n(a, prop, b[prop]);
1284
+ if (__getOwnPropSymbols$n)
1285
+ for (var prop of __getOwnPropSymbols$n(b)) {
1286
+ if (__propIsEnum$n.call(b, prop))
1287
+ __defNormalProp$n(a, prop, b[prop]);
1224
1288
  }
1225
1289
  return a;
1226
1290
  };
@@ -1317,37 +1381,37 @@ const alerts = {
1317
1381
  },
1318
1382
  warning: {
1319
1383
  variant: "alerts.primary",
1320
- "&, & .notification__header": __spreadValues$j({}, getColorsByPath("notifications.warning"))
1384
+ "&, & .notification__header": __spreadValues$n({}, getColorsByPath("notifications.warning"))
1321
1385
  },
1322
1386
  danger: {
1323
1387
  variant: "alerts.primary",
1324
- "&, & .notification__header": __spreadValues$j({}, getColorsByPath("notifications.error"))
1388
+ "&, & .notification__header": __spreadValues$n({}, getColorsByPath("notifications.error"))
1325
1389
  },
1326
1390
  success: {
1327
1391
  variant: "alerts.primary",
1328
- "&, & .notification__header": __spreadValues$j({}, getColorsByPath("notifications.success"))
1392
+ "&, & .notification__header": __spreadValues$n({}, getColorsByPath("notifications.success"))
1329
1393
  }
1330
1394
  };
1331
1395
 
1332
- var __defProp$i = Object.defineProperty;
1333
- var __defProps$a = Object.defineProperties;
1334
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1335
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
1336
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
1337
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
1338
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1339
- var __spreadValues$i = (a, b) => {
1396
+ var __defProp$m = Object.defineProperty;
1397
+ var __defProps$c = Object.defineProperties;
1398
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1399
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1400
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1401
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1402
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1403
+ var __spreadValues$m = (a, b) => {
1340
1404
  for (var prop in b || (b = {}))
1341
- if (__hasOwnProp$i.call(b, prop))
1342
- __defNormalProp$i(a, prop, b[prop]);
1343
- if (__getOwnPropSymbols$i)
1344
- for (var prop of __getOwnPropSymbols$i(b)) {
1345
- if (__propIsEnum$i.call(b, prop))
1346
- __defNormalProp$i(a, prop, b[prop]);
1405
+ if (__hasOwnProp$m.call(b, prop))
1406
+ __defNormalProp$m(a, prop, b[prop]);
1407
+ if (__getOwnPropSymbols$m)
1408
+ for (var prop of __getOwnPropSymbols$m(b)) {
1409
+ if (__propIsEnum$m.call(b, prop))
1410
+ __defNormalProp$m(a, prop, b[prop]);
1347
1411
  }
1348
1412
  return a;
1349
1413
  };
1350
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1414
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1351
1415
  const buttons = {
1352
1416
  inherit: {
1353
1417
  color: "inherit",
@@ -1359,14 +1423,14 @@ const buttons = {
1359
1423
  padding: 0,
1360
1424
  margin: 0
1361
1425
  },
1362
- collapsibleAsidePanelTitle: __spreadValues$i({
1426
+ collapsibleAsidePanelTitle: __spreadValues$m({
1363
1427
  variant: "buttons.inherit",
1364
1428
  display: "flex",
1365
1429
  justifyContent: "space-between",
1366
1430
  alignItems: "center",
1367
1431
  width: "100%"
1368
1432
  }, getColorsAndStatesByPath("buttons.collapsibleAsidePanelTitle")),
1369
- primary: __spreadProps$a(__spreadValues$i({
1433
+ primary: __spreadProps$c(__spreadValues$m({
1370
1434
  borderWidth: "2px",
1371
1435
  borderStyle: "solid",
1372
1436
  variant: "text.default",
@@ -1385,37 +1449,37 @@ const buttons = {
1385
1449
  outlineColor: "#00daff"
1386
1450
  }
1387
1451
  }),
1388
- "primary-sm": __spreadValues$i({
1452
+ "primary-sm": __spreadValues$m({
1389
1453
  variant: "buttons.primary",
1390
1454
  "&:focus, &:focus-visible": {}
1391
1455
  }, smallButton),
1392
- secondary: __spreadValues$i({
1456
+ secondary: __spreadValues$m({
1393
1457
  variant: "buttons.primary",
1394
1458
  "&:focus, &:focus-visible": {},
1395
1459
  borderWidth: "0px",
1396
1460
  borderStyle: "solid"
1397
1461
  }, getColorsAndStatesByPath("buttons.secondary")),
1398
- "secondary-sm": __spreadValues$i({
1462
+ "secondary-sm": __spreadValues$m({
1399
1463
  variant: "buttons.secondary"
1400
1464
  }, smallButton),
1401
- "light-secondary": __spreadValues$i({
1465
+ "light-secondary": __spreadValues$m({
1402
1466
  variant: "buttons.secondary"
1403
1467
  }, getColorsAndStatesByPath("buttons.lightSecondary")),
1404
- danger: __spreadValues$i({
1468
+ danger: __spreadValues$m({
1405
1469
  variant: "buttons.primary",
1406
1470
  "&:focus, &:focus-visible": {}
1407
1471
  }, getColorsAndStatesByPath("buttons.danger")),
1408
- "danger-sm": __spreadValues$i({
1472
+ "danger-sm": __spreadValues$m({
1409
1473
  variant: "buttons.danger"
1410
1474
  }, smallButton),
1411
- warning: __spreadValues$i({
1475
+ warning: __spreadValues$m({
1412
1476
  variant: "buttons.primary",
1413
1477
  "&:focus, &:focus-visible": {}
1414
1478
  }, getColorsAndStatesByPath("buttons.warning")),
1415
- "warning-sm": __spreadValues$i({
1479
+ "warning-sm": __spreadValues$m({
1416
1480
  variant: "buttons.warning"
1417
1481
  }, smallButton),
1418
- close: __spreadValues$i({
1482
+ close: __spreadValues$m({
1419
1483
  cursor: "pointer",
1420
1484
  ml: "auto",
1421
1485
  mr: "2",
@@ -1450,11 +1514,11 @@ const buttons = {
1450
1514
  wordBreak: "break-word"
1451
1515
  }
1452
1516
  },
1453
- "accordion-primary": __spreadValues$i({
1517
+ "accordion-primary": __spreadValues$m({
1454
1518
  variant: "buttons.accordion",
1455
1519
  border: "none"
1456
1520
  }, getColorsAndStatesByPath("buttons.accordionPrimary")),
1457
- icon: __spreadProps$a(__spreadValues$i({
1521
+ icon: __spreadProps$c(__spreadValues$m({
1458
1522
  display: "flex",
1459
1523
  justifyContent: "center",
1460
1524
  alignItems: "center",
@@ -1464,52 +1528,32 @@ const buttons = {
1464
1528
  cursor: "pointer",
1465
1529
  transition: "background-color 300ms ease-out, color 300ms ease-out",
1466
1530
  borderRadius: "buttons",
1467
- border: "none"
1531
+ border: "none",
1532
+ color: "inherit"
1468
1533
  }, getColorsAndStatesByPath("buttons.icon")), {
1469
- path: {
1470
- width: "auto",
1471
- height: "20px",
1472
- display: "block",
1473
- fill: getColorsAndStatesByPath("buttons.icon").color
1474
- },
1475
- "&.isToggled": __spreadProps$a(__spreadValues$i({}, getColorsAndStatesByPath("buttons.iconToggled")), {
1476
- path: {
1477
- fill: getColorsAndStatesByPath("buttons.iconToggled").color
1478
- }
1479
- })
1534
+ "&.isToggled": __spreadValues$m({}, getColorsAndStatesByPath("buttons.iconToggled"))
1480
1535
  }),
1481
- "icon-primary": __spreadProps$a(__spreadValues$i({
1536
+ "icon-primary": __spreadValues$m({
1482
1537
  variant: "buttons.icon"
1483
- }, getColorsAndStatesByPath("buttons.iconPrimary")), {
1484
- path: {
1485
- fill: getColorsAndStatesByPath("buttons.iconPrimary").color
1486
- }
1487
- }),
1488
- "icon-outline": __spreadProps$a(__spreadValues$i({
1538
+ }, getColorsAndStatesByPath("buttons.iconPrimary")),
1539
+ "icon-outline": __spreadValues$m({
1489
1540
  variant: "buttons.icon",
1490
1541
  bg: "white",
1491
- border: "1px solid"
1492
- }, getColorsAndStatesByPath("buttons.iconOutline")), {
1493
- path: {
1494
- fill: getColorsAndStatesByPath("buttons.iconOutline").color
1495
- }
1496
- }),
1497
- "icon-outline-danger": __spreadValues$i({
1542
+ border: "1px solid",
1543
+ borderRadius: "4px"
1544
+ }, getColorsAndStatesByPath("buttons.iconOutline")),
1545
+ "icon-outline-danger": __spreadValues$m({
1498
1546
  variant: "buttons.icon",
1499
- bg: "white",
1500
1547
  border: "1px solid"
1501
1548
  }, getColorsAndStatesByPath("buttons.outlineDanger")),
1502
- "icon-only": __spreadProps$a(__spreadValues$i({
1549
+ "icon-only": __spreadValues$m({
1503
1550
  variant: "buttons.icon"
1504
- }, getColorsAndStatesByPath("buttons.iconOnly")), {
1505
- path: {
1506
- fill: getColorsAndStatesByPath("buttons.iconOnly").color
1507
- }
1508
- }),
1509
- link: __spreadValues$i({
1551
+ }, getColorsAndStatesByPath("buttons.iconOnly")),
1552
+ link: __spreadValues$m({
1510
1553
  variant: "inherit",
1511
1554
  width: "auto",
1512
- border: "none",
1555
+ border: "none !important",
1556
+ background: "transparent !important",
1513
1557
  textDecoration: "underline",
1514
1558
  px: 2,
1515
1559
  py: 1,
@@ -1518,10 +1562,10 @@ const buttons = {
1518
1562
  textTransform: "none",
1519
1563
  transition: "background-color 300ms ease-out, color 300ms ease-out"
1520
1564
  }, getColorsAndStatesByPath("buttons.link")),
1521
- "link-sm": __spreadValues$i({
1565
+ "link-sm": __spreadValues$m({
1522
1566
  variant: "buttons.link"
1523
1567
  }, smallButton),
1524
- outline: __spreadValues$i({
1568
+ outline: __spreadValues$m({
1525
1569
  variant: "buttons.primary",
1526
1570
  borderWidth: "2px",
1527
1571
  borderStyle: "solid",
@@ -1538,10 +1582,10 @@ const buttons = {
1538
1582
  selected: false
1539
1583
  }
1540
1584
  })),
1541
- "outline-sm": __spreadValues$i({
1585
+ "outline-sm": __spreadValues$m({
1542
1586
  variant: "buttons.outline"
1543
1587
  }, smallButton),
1544
- "transparent-sm": __spreadValues$i({
1588
+ "transparent-sm": __spreadValues$m({
1545
1589
  variant: "buttons.outline",
1546
1590
  "&:focus, &:focus-visible": {},
1547
1591
  bg: "transparent",
@@ -1550,18 +1594,18 @@ const buttons = {
1550
1594
  font: "inherit",
1551
1595
  textTransform: "inherit"
1552
1596
  }, smallButton),
1553
- "outline-danger": __spreadValues$i({
1597
+ "outline-danger": __spreadValues$m({
1554
1598
  variant: "buttons.outline",
1555
1599
  "&:focus, &:focus-visible": {}
1556
1600
  }, getColorsAndStatesByPath("buttons.outlineDanger")),
1557
- "outline-danger-sm": __spreadValues$i({
1601
+ "outline-danger-sm": __spreadValues$m({
1558
1602
  variant: "buttons.outline-danger"
1559
1603
  }, smallButton),
1560
- "outline-warning": __spreadValues$i({
1604
+ "outline-warning": __spreadValues$m({
1561
1605
  variant: "buttons.outline",
1562
1606
  "&:focus, &:focus-visible": {}
1563
1607
  }, getColorsAndStatesByPath("buttons.outlineWarning")),
1564
- "outline-warning-sm": __spreadValues$i({
1608
+ "outline-warning-sm": __spreadValues$m({
1565
1609
  variant: "buttons.outline-warning"
1566
1610
  }, smallButton),
1567
1611
  "outline-extended": {
@@ -1591,7 +1635,7 @@ const buttons = {
1591
1635
  gridColumnEnd: 3
1592
1636
  }
1593
1637
  },
1594
- tableAccordion: __spreadValues$i({
1638
+ tableAccordion: __spreadValues$m({
1595
1639
  variant: "buttons.accordion",
1596
1640
  fontSize: "text.default",
1597
1641
  p: spacing(3),
@@ -1600,7 +1644,7 @@ const buttons = {
1600
1644
  color: "background"
1601
1645
  }
1602
1646
  }, getColorsAndStatesByPath("buttons.tableAccordion")),
1603
- tableHeader: __spreadValues$i({
1647
+ tableHeader: __spreadValues$m({
1604
1648
  variant: "buttons.tableAccordion",
1605
1649
  alignItems: "center",
1606
1650
  justifyContent: "center",
@@ -1610,13 +1654,13 @@ const buttons = {
1610
1654
  ml: spacing(2)
1611
1655
  }
1612
1656
  }, getColorsAndStatesByPath("buttons.tableHeader")),
1613
- paper: __spreadValues$i({
1657
+ paper: __spreadValues$m({
1614
1658
  variant: "buttons.primary",
1615
1659
  borderWidth: "2px",
1616
1660
  borderStyle: "solid",
1617
1661
  borderRadius: "buttons"
1618
1662
  }, getColorsAndStatesByPath("buttons.paper")),
1619
- "paper-sm": __spreadValues$i(__spreadValues$i({
1663
+ "paper-sm": __spreadValues$m(__spreadValues$m({
1620
1664
  variant: "buttons.primary",
1621
1665
  borderWidth: "2px",
1622
1666
  borderStyle: "solid",
@@ -1729,23 +1773,23 @@ const transitions = {
1729
1773
  }
1730
1774
  };
1731
1775
 
1732
- var __defProp$h = Object.defineProperty;
1733
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1734
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1735
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1736
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1737
- var __spreadValues$h = (a, b) => {
1776
+ var __defProp$l = Object.defineProperty;
1777
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1778
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1779
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1780
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1781
+ var __spreadValues$l = (a, b) => {
1738
1782
  for (var prop in b || (b = {}))
1739
- if (__hasOwnProp$h.call(b, prop))
1740
- __defNormalProp$h(a, prop, b[prop]);
1741
- if (__getOwnPropSymbols$h)
1742
- for (var prop of __getOwnPropSymbols$h(b)) {
1743
- if (__propIsEnum$h.call(b, prop))
1744
- __defNormalProp$h(a, prop, b[prop]);
1745
- }
1746
- return a;
1747
- };
1748
- const root = __spreadValues$h({
1783
+ if (__hasOwnProp$l.call(b, prop))
1784
+ __defNormalProp$l(a, prop, b[prop]);
1785
+ if (__getOwnPropSymbols$l)
1786
+ for (var prop of __getOwnPropSymbols$l(b)) {
1787
+ if (__propIsEnum$l.call(b, prop))
1788
+ __defNormalProp$l(a, prop, b[prop]);
1789
+ }
1790
+ return a;
1791
+ };
1792
+ const root = __spreadValues$l({
1749
1793
  height: "100%",
1750
1794
  "*": {
1751
1795
  fontFamily: "body",
@@ -1793,8 +1837,8 @@ const root = __spreadValues$h({
1793
1837
  },
1794
1838
  "textarea,a": {
1795
1839
  transition: "color 200ms ease-out",
1796
- ":focus": __spreadValues$h({}, focusOutline),
1797
- ":focus-visible": __spreadValues$h({}, focusOutline)
1840
+ ":focus": __spreadValues$l({}, focusOutline),
1841
+ ":focus-visible": __spreadValues$l({}, focusOutline)
1798
1842
  },
1799
1843
  "*:focus": focusOutline,
1800
1844
  ul: {
@@ -1884,7 +1928,7 @@ const baseTheme = () => {
1884
1928
  buttons,
1885
1929
  colors: {},
1886
1930
  fonts: {
1887
- body: "Arial",
1931
+ body: '"InterVariable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif, Roboto',
1888
1932
  heading: "inherit",
1889
1933
  monospace: "Menlo, monospace"
1890
1934
  },
@@ -1906,11 +1950,17 @@ const baseTheme = () => {
1906
1950
  radii: {
1907
1951
  alerts: 0,
1908
1952
  buttons: 0,
1909
- default: 0
1953
+ default: 0,
1954
+ panel: "7px",
1955
+ modals: "7px"
1910
1956
  },
1911
1957
  shadows: {
1912
- modals: "",
1913
- tabs: ""
1958
+ dataGridHeader: "-6px -6px 11px black",
1959
+ modals: "rgba(0, 0, 0, 0.16) 0px 1px 4px;",
1960
+ tabs: "",
1961
+ panel: "rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px",
1962
+ tableFilters: "3px 3px 3px rgba(0,0,0,0.2)",
1963
+ toolbar: "3px 3px 3px rgba(0,0,0,0.1)"
1914
1964
  },
1915
1965
  space: [0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 112, 128],
1916
1966
  sizes: {
@@ -1942,23 +1992,23 @@ const baseTheme = () => {
1942
1992
  };
1943
1993
  };
1944
1994
 
1945
- var __defProp$g = Object.defineProperty;
1946
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1947
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1948
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1949
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1950
- var __spreadValues$g = (a, b) => {
1995
+ var __defProp$k = Object.defineProperty;
1996
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1997
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1998
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1999
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2000
+ var __spreadValues$k = (a, b) => {
1951
2001
  for (var prop in b || (b = {}))
1952
- if (__hasOwnProp$g.call(b, prop))
1953
- __defNormalProp$g(a, prop, b[prop]);
1954
- if (__getOwnPropSymbols$g)
1955
- for (var prop of __getOwnPropSymbols$g(b)) {
1956
- if (__propIsEnum$g.call(b, prop))
1957
- __defNormalProp$g(a, prop, b[prop]);
2002
+ if (__hasOwnProp$k.call(b, prop))
2003
+ __defNormalProp$k(a, prop, b[prop]);
2004
+ if (__getOwnPropSymbols$k)
2005
+ for (var prop of __getOwnPropSymbols$k(b)) {
2006
+ if (__propIsEnum$k.call(b, prop))
2007
+ __defNormalProp$k(a, prop, b[prop]);
1958
2008
  }
1959
2009
  return a;
1960
2010
  };
1961
- const customCheckbox = __spreadValues$g({
2011
+ const customCheckbox = __spreadValues$k({
1962
2012
  display: "inline-flex",
1963
2013
  borderRadius: "default",
1964
2014
  flexBasis: "32px",
@@ -1976,30 +2026,31 @@ const customCheckbox = __spreadValues$g({
1976
2026
  states: {
1977
2027
  active: false,
1978
2028
  hover: false,
1979
- focus: false
2029
+ focus: false,
2030
+ path: false
1980
2031
  }
1981
2032
  }));
1982
2033
 
1983
- var __defProp$f = Object.defineProperty;
1984
- var __defProps$9 = Object.defineProperties;
1985
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1986
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1987
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1988
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1989
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1990
- var __spreadValues$f = (a, b) => {
2034
+ var __defProp$j = Object.defineProperty;
2035
+ var __defProps$b = Object.defineProperties;
2036
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2037
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2038
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2039
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2040
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2041
+ var __spreadValues$j = (a, b) => {
1991
2042
  for (var prop in b || (b = {}))
1992
- if (__hasOwnProp$f.call(b, prop))
1993
- __defNormalProp$f(a, prop, b[prop]);
1994
- if (__getOwnPropSymbols$f)
1995
- for (var prop of __getOwnPropSymbols$f(b)) {
1996
- if (__propIsEnum$f.call(b, prop))
1997
- __defNormalProp$f(a, prop, b[prop]);
2043
+ if (__hasOwnProp$j.call(b, prop))
2044
+ __defNormalProp$j(a, prop, b[prop]);
2045
+ if (__getOwnPropSymbols$j)
2046
+ for (var prop of __getOwnPropSymbols$j(b)) {
2047
+ if (__propIsEnum$j.call(b, prop))
2048
+ __defNormalProp$j(a, prop, b[prop]);
1998
2049
  }
1999
2050
  return a;
2000
2051
  };
2001
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2002
- const checkbox = __spreadProps$9(__spreadValues$f({
2052
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2053
+ const checkbox = __spreadProps$b(__spreadValues$j({
2003
2054
  borderRadius: "default"
2004
2055
  }, getColorsAndStatesByPath("form.fields", {
2005
2056
  states: {
@@ -2053,26 +2104,26 @@ const checkbox = __spreadProps$9(__spreadValues$f({
2053
2104
  }
2054
2105
  });
2055
2106
 
2056
- var __defProp$e = Object.defineProperty;
2057
- var __defProps$8 = Object.defineProperties;
2058
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2059
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2060
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2061
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2062
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2063
- var __spreadValues$e = (a, b) => {
2107
+ var __defProp$i = Object.defineProperty;
2108
+ var __defProps$a = Object.defineProperties;
2109
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2110
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2111
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2112
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2113
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2114
+ var __spreadValues$i = (a, b) => {
2064
2115
  for (var prop in b || (b = {}))
2065
- if (__hasOwnProp$e.call(b, prop))
2066
- __defNormalProp$e(a, prop, b[prop]);
2067
- if (__getOwnPropSymbols$e)
2068
- for (var prop of __getOwnPropSymbols$e(b)) {
2069
- if (__propIsEnum$e.call(b, prop))
2070
- __defNormalProp$e(a, prop, b[prop]);
2116
+ if (__hasOwnProp$i.call(b, prop))
2117
+ __defNormalProp$i(a, prop, b[prop]);
2118
+ if (__getOwnPropSymbols$i)
2119
+ for (var prop of __getOwnPropSymbols$i(b)) {
2120
+ if (__propIsEnum$i.call(b, prop))
2121
+ __defNormalProp$i(a, prop, b[prop]);
2071
2122
  }
2072
2123
  return a;
2073
2124
  };
2074
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2075
- const dateInput = __spreadProps$8(__spreadValues$e({
2125
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2126
+ const dateInput = __spreadProps$a(__spreadValues$i({
2076
2127
  display: "flex",
2077
2128
  flexDirection: "column",
2078
2129
  alignItems: "stretch",
@@ -2089,7 +2140,7 @@ const dateInput = __spreadProps$8(__spreadValues$e({
2089
2140
  width: "100%",
2090
2141
  position: "relative"
2091
2142
  },
2092
- 'input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]), input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]) path, .delete_date_button': __spreadValues$e({
2143
+ 'input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]), input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]) path, .delete_date_button': __spreadValues$i({
2093
2144
  position: "absolute",
2094
2145
  right: "59px",
2095
2146
  padding: 0,
@@ -2125,19 +2176,19 @@ const dateInput = __spreadProps$8(__spreadValues$e({
2125
2176
  backgroundColor: void 0
2126
2177
  });
2127
2178
 
2128
- var __defProp$d = Object.defineProperty;
2129
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2130
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2131
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2132
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2133
- var __spreadValues$d = (a, b) => {
2179
+ var __defProp$h = Object.defineProperty;
2180
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2181
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2182
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2183
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2184
+ var __spreadValues$h = (a, b) => {
2134
2185
  for (var prop in b || (b = {}))
2135
- if (__hasOwnProp$d.call(b, prop))
2136
- __defNormalProp$d(a, prop, b[prop]);
2137
- if (__getOwnPropSymbols$d)
2138
- for (var prop of __getOwnPropSymbols$d(b)) {
2139
- if (__propIsEnum$d.call(b, prop))
2140
- __defNormalProp$d(a, prop, b[prop]);
2186
+ if (__hasOwnProp$h.call(b, prop))
2187
+ __defNormalProp$h(a, prop, b[prop]);
2188
+ if (__getOwnPropSymbols$h)
2189
+ for (var prop of __getOwnPropSymbols$h(b)) {
2190
+ if (__propIsEnum$h.call(b, prop))
2191
+ __defNormalProp$h(a, prop, b[prop]);
2141
2192
  }
2142
2193
  return a;
2143
2194
  };
@@ -2147,7 +2198,7 @@ const iconInput = {
2147
2198
  justifyContent: "stretch",
2148
2199
  alignItems: "center",
2149
2200
  "&.readOnly": {
2150
- input: __spreadValues$d({}, getColorsByPath("form.fields"))
2201
+ input: __spreadValues$h({}, getColorsByPath("form.fields"))
2151
2202
  },
2152
2203
  input: {
2153
2204
  height: "50px",
@@ -2161,26 +2212,26 @@ const iconInput = {
2161
2212
  }
2162
2213
  };
2163
2214
 
2164
- var __defProp$c = Object.defineProperty;
2165
- var __defProps$7 = Object.defineProperties;
2166
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2167
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2168
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2169
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2170
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2171
- var __spreadValues$c = (a, b) => {
2215
+ var __defProp$g = Object.defineProperty;
2216
+ var __defProps$9 = Object.defineProperties;
2217
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2218
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2219
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2220
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2221
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2222
+ var __spreadValues$g = (a, b) => {
2172
2223
  for (var prop in b || (b = {}))
2173
- if (__hasOwnProp$c.call(b, prop))
2174
- __defNormalProp$c(a, prop, b[prop]);
2175
- if (__getOwnPropSymbols$c)
2176
- for (var prop of __getOwnPropSymbols$c(b)) {
2177
- if (__propIsEnum$c.call(b, prop))
2178
- __defNormalProp$c(a, prop, b[prop]);
2224
+ if (__hasOwnProp$g.call(b, prop))
2225
+ __defNormalProp$g(a, prop, b[prop]);
2226
+ if (__getOwnPropSymbols$g)
2227
+ for (var prop of __getOwnPropSymbols$g(b)) {
2228
+ if (__propIsEnum$g.call(b, prop))
2229
+ __defNormalProp$g(a, prop, b[prop]);
2179
2230
  }
2180
2231
  return a;
2181
2232
  };
2182
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2183
- const input = __spreadProps$7(__spreadValues$c({
2233
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2234
+ const input = __spreadProps$9(__spreadValues$g({
2184
2235
  variant: "text.default",
2185
2236
  border: "1px solid",
2186
2237
  borderRadius: "default",
@@ -2252,47 +2303,54 @@ const label = {
2252
2303
  }
2253
2304
  };
2254
2305
 
2255
- var __defProp$b = Object.defineProperty;
2256
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2257
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2258
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2259
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2260
- var __spreadValues$b = (a, b) => {
2306
+ var __defProp$f = Object.defineProperty;
2307
+ var __defProps$8 = Object.defineProperties;
2308
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2309
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2310
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2311
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2312
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2313
+ var __spreadValues$f = (a, b) => {
2261
2314
  for (var prop in b || (b = {}))
2262
- if (__hasOwnProp$b.call(b, prop))
2263
- __defNormalProp$b(a, prop, b[prop]);
2264
- if (__getOwnPropSymbols$b)
2265
- for (var prop of __getOwnPropSymbols$b(b)) {
2266
- if (__propIsEnum$b.call(b, prop))
2267
- __defNormalProp$b(a, prop, b[prop]);
2315
+ if (__hasOwnProp$f.call(b, prop))
2316
+ __defNormalProp$f(a, prop, b[prop]);
2317
+ if (__getOwnPropSymbols$f)
2318
+ for (var prop of __getOwnPropSymbols$f(b)) {
2319
+ if (__propIsEnum$f.call(b, prop))
2320
+ __defNormalProp$f(a, prop, b[prop]);
2268
2321
  }
2269
2322
  return a;
2270
2323
  };
2271
- const radio = __spreadValues$b({
2324
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2325
+ const radio = __spreadProps$8(__spreadValues$f({
2272
2326
  width: "32px",
2273
2327
  height: "32px",
2274
2328
  input: {
2275
2329
  height: "32px !important"
2276
2330
  }
2277
- }, getColorsAndStatesByPath("form.radio"));
2331
+ }, getColorsAndStatesByPath("form.radio")), {
2332
+ path: {
2333
+ fill: "inherit"
2334
+ }
2335
+ });
2278
2336
 
2279
- var __defProp$a = Object.defineProperty;
2280
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2281
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2282
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2283
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2284
- var __spreadValues$a = (a, b) => {
2337
+ var __defProp$e = Object.defineProperty;
2338
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2339
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2340
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2341
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2342
+ var __spreadValues$e = (a, b) => {
2285
2343
  for (var prop in b || (b = {}))
2286
- if (__hasOwnProp$a.call(b, prop))
2287
- __defNormalProp$a(a, prop, b[prop]);
2288
- if (__getOwnPropSymbols$a)
2289
- for (var prop of __getOwnPropSymbols$a(b)) {
2290
- if (__propIsEnum$a.call(b, prop))
2291
- __defNormalProp$a(a, prop, b[prop]);
2344
+ if (__hasOwnProp$e.call(b, prop))
2345
+ __defNormalProp$e(a, prop, b[prop]);
2346
+ if (__getOwnPropSymbols$e)
2347
+ for (var prop of __getOwnPropSymbols$e(b)) {
2348
+ if (__propIsEnum$e.call(b, prop))
2349
+ __defNormalProp$e(a, prop, b[prop]);
2292
2350
  }
2293
2351
  return a;
2294
2352
  };
2295
- const select = __spreadValues$a({
2353
+ const select = __spreadValues$e({
2296
2354
  variant: "text.default",
2297
2355
  display: "inline-block",
2298
2356
  fontFamily: "body",
@@ -2309,27 +2367,27 @@ const select = __spreadValues$a({
2309
2367
  }
2310
2368
  }));
2311
2369
 
2312
- var __defProp$9 = Object.defineProperty;
2313
- var __defProps$6 = Object.defineProperties;
2314
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2315
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2316
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2317
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2318
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2319
- var __spreadValues$9 = (a, b) => {
2370
+ var __defProp$d = Object.defineProperty;
2371
+ var __defProps$7 = Object.defineProperties;
2372
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2373
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2374
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2375
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2376
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2377
+ var __spreadValues$d = (a, b) => {
2320
2378
  for (var prop in b || (b = {}))
2321
- if (__hasOwnProp$9.call(b, prop))
2322
- __defNormalProp$9(a, prop, b[prop]);
2323
- if (__getOwnPropSymbols$9)
2324
- for (var prop of __getOwnPropSymbols$9(b)) {
2325
- if (__propIsEnum$9.call(b, prop))
2326
- __defNormalProp$9(a, prop, b[prop]);
2379
+ if (__hasOwnProp$d.call(b, prop))
2380
+ __defNormalProp$d(a, prop, b[prop]);
2381
+ if (__getOwnPropSymbols$d)
2382
+ for (var prop of __getOwnPropSymbols$d(b)) {
2383
+ if (__propIsEnum$d.call(b, prop))
2384
+ __defNormalProp$d(a, prop, b[prop]);
2327
2385
  }
2328
2386
  return a;
2329
2387
  };
2330
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2388
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2331
2389
  function selectMultiple(theme) {
2332
- return __spreadValues$9({
2390
+ return __spreadValues$d({
2333
2391
  variant: "text.default",
2334
2392
  height: "100%",
2335
2393
  padding: "4px",
@@ -2338,9 +2396,9 @@ function selectMultiple(theme) {
2338
2396
  width: "100%",
2339
2397
  transition: "background-color 100ms ease-out, color 100ms ease-out",
2340
2398
  overflow: "auto",
2341
- option: __spreadProps$6(__spreadValues$9({
2399
+ option: __spreadProps$7(__spreadValues$d({
2342
2400
  padding: 2
2343
- }, getSelectedColors(theme)), {
2401
+ }, getSelectedColors(theme.palette)), {
2344
2402
  "&:checked": {
2345
2403
  backgroundColor: theme.palette.getColor(
2346
2404
  theme.palette.background.paper,
@@ -2383,25 +2441,25 @@ const textarea = {
2383
2441
  }
2384
2442
  };
2385
2443
 
2386
- var __defProp$8 = Object.defineProperty;
2387
- var __defProps$5 = Object.defineProperties;
2388
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2389
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2390
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2391
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2392
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2393
- var __spreadValues$8 = (a, b) => {
2444
+ var __defProp$c = Object.defineProperty;
2445
+ var __defProps$6 = Object.defineProperties;
2446
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2447
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2448
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2449
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2450
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2451
+ var __spreadValues$c = (a, b) => {
2394
2452
  for (var prop in b || (b = {}))
2395
- if (__hasOwnProp$8.call(b, prop))
2396
- __defNormalProp$8(a, prop, b[prop]);
2397
- if (__getOwnPropSymbols$8)
2398
- for (var prop of __getOwnPropSymbols$8(b)) {
2399
- if (__propIsEnum$8.call(b, prop))
2400
- __defNormalProp$8(a, prop, b[prop]);
2401
- }
2402
- return a;
2453
+ if (__hasOwnProp$c.call(b, prop))
2454
+ __defNormalProp$c(a, prop, b[prop]);
2455
+ if (__getOwnPropSymbols$c)
2456
+ for (var prop of __getOwnPropSymbols$c(b)) {
2457
+ if (__propIsEnum$c.call(b, prop))
2458
+ __defNormalProp$c(a, prop, b[prop]);
2459
+ }
2460
+ return a;
2403
2461
  };
2404
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2462
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2405
2463
  const deletableInput = {
2406
2464
  border: "1px solid",
2407
2465
  borderColor: "palette.border.field",
@@ -2411,15 +2469,17 @@ const deletableInput = {
2411
2469
  ".deletableInput__input": {
2412
2470
  border: "none"
2413
2471
  },
2414
- ".deletableInput__deleteButton": __spreadValues$8({
2472
+ ".deletableInput__deleteButton": __spreadValues$c({
2415
2473
  height: "100%",
2416
2474
  outlineOffset: "-2px",
2417
2475
  position: "absolute",
2418
2476
  right: 0,
2419
2477
  top: 0,
2420
2478
  width: "45px"
2421
- }, getColorsAndStatesByPath("buttons.deletableInputButton")),
2422
- "&:focus-within:not(.asMaterial)": __spreadProps$5(__spreadValues$8({}, focusOutline), {
2479
+ }, getColorsAndStatesByPath("buttons.deletableInputButton", {
2480
+ states: { path: true }
2481
+ })),
2482
+ "&:focus-within:not(.asMaterial)": __spreadProps$6(__spreadValues$c({}, focusOutline), {
2423
2483
  ".deletableInput__input:focus": {
2424
2484
  outline: "none"
2425
2485
  },
@@ -2577,33 +2637,73 @@ const apiaApi = {
2577
2637
  /* PREPEND HERE */
2578
2638
  };
2579
2639
 
2580
- var __defProp$7 = Object.defineProperty;
2581
- var __defProps$4 = Object.defineProperties;
2582
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
2583
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
2584
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
2585
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
2586
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2587
- var __spreadValues$7 = (a, b) => {
2640
+ const confirm = {
2641
+ display: "flex",
2642
+ flexDirection: "column",
2643
+ gap: spacing$1(5),
2644
+ width: "100%",
2645
+ ".confirm__content": {
2646
+ overflow: "auto",
2647
+ flexBasis: "100%",
2648
+ wordBreak: "break-word",
2649
+ display: "flex",
2650
+ flexDirection: "column"
2651
+ },
2652
+ ".confirm__buttonBar": {
2653
+ display: "flex",
2654
+ justifyContent: "space-between",
2655
+ flexBasis: "40px",
2656
+ flexGrow: 0,
2657
+ flexShrink: 0,
2658
+ ".confirm__defaultButtons": {
2659
+ display: "flex",
2660
+ gap: spacing$1(3)
2661
+ },
2662
+ ".confirm__customButtons": {
2663
+ width: "auto"
2664
+ }
2665
+ }
2666
+ };
2667
+
2668
+ const buttonsBar = {
2669
+ flexBasis: "20%",
2670
+ flexDirection: "row",
2671
+ display: "flex",
2672
+ justifyContent: "flex-end",
2673
+ gap: spacing$1(3),
2674
+ mb: spacing$1(0)
2675
+ };
2676
+
2677
+ var __defProp$b = Object.defineProperty;
2678
+ var __defProps$5 = Object.defineProperties;
2679
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2680
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2681
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2682
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2683
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2684
+ var __spreadValues$b = (a, b) => {
2588
2685
  for (var prop in b || (b = {}))
2589
- if (__hasOwnProp$7.call(b, prop))
2590
- __defNormalProp$7(a, prop, b[prop]);
2591
- if (__getOwnPropSymbols$7)
2592
- for (var prop of __getOwnPropSymbols$7(b)) {
2593
- if (__propIsEnum$7.call(b, prop))
2594
- __defNormalProp$7(a, prop, b[prop]);
2686
+ if (__hasOwnProp$b.call(b, prop))
2687
+ __defNormalProp$b(a, prop, b[prop]);
2688
+ if (__getOwnPropSymbols$b)
2689
+ for (var prop of __getOwnPropSymbols$b(b)) {
2690
+ if (__propIsEnum$b.call(b, prop))
2691
+ __defNormalProp$b(a, prop, b[prop]);
2595
2692
  }
2596
2693
  return a;
2597
2694
  };
2598
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
2599
- const modals = __spreadProps$4(__spreadValues$7({
2600
- apiaApi
2695
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2696
+ const modals = __spreadProps$5(__spreadValues$b({
2697
+ apiaApi,
2698
+ buttonsBar,
2699
+ confirm
2601
2700
  }, overlay), {
2602
- main: __spreadValues$7({
2701
+ main: __spreadValues$b({
2702
+ boxShadow: "modals",
2703
+ borderRadius: "modals",
2603
2704
  zIndex: "modal",
2604
2705
  display: "flex",
2605
2706
  flexDirection: "column",
2606
- p: spacing(6),
2607
2707
  alignItems: "center",
2608
2708
  justifyItems: "center",
2609
2709
  maxHeight: "100vh",
@@ -2611,7 +2711,7 @@ const modals = __spreadProps$4(__spreadValues$7({
2611
2711
  resize: "both",
2612
2712
  overflow: "auto",
2613
2713
  border: "1px solid",
2614
- gap: spacing(5),
2714
+ gap: "0px !important",
2615
2715
  "&>div": {
2616
2716
  overflow: "hidden",
2617
2717
  flexGrow: 0,
@@ -2623,14 +2723,25 @@ const modals = __spreadProps$4(__spreadValues$7({
2623
2723
  alignItems: responsive$1({ 0: "end", 4: "center" }),
2624
2724
  flexShrink: 0,
2625
2725
  overflow: "visible",
2726
+ p: "16px 20px",
2727
+ borderBottom: "1px solid lightgray",
2626
2728
  ".modal__headerBar": {
2627
2729
  display: "flex",
2628
2730
  flexDirection: "row",
2629
- alignItems: "center",
2630
- gap: spacing(3)
2731
+ alignItems: "center"
2631
2732
  }
2632
2733
  },
2633
- "&>div.modal__content, &>div.modal__content>form": {
2734
+ "&>div.modal__content": {
2735
+ overflow: "auto",
2736
+ width: "100%",
2737
+ flexBasis: "100%",
2738
+ flexShrink: 1,
2739
+ display: "flex",
2740
+ justifyContent: "stretch",
2741
+ alignItems: "stretch",
2742
+ p: "20px"
2743
+ },
2744
+ "&>div.modal__content>form": {
2634
2745
  overflow: "auto",
2635
2746
  width: "100%",
2636
2747
  flexBasis: "100%",
@@ -2645,7 +2756,6 @@ const modals = __spreadProps$4(__spreadValues$7({
2645
2756
  height: responsive$1({ 0: "100vh", 3: "80vh" }),
2646
2757
  width: responsive$1({ 0: "95vw", 3: "80vw", 4: "70vw" }),
2647
2758
  ".modal__content": {
2648
- p: spacing(2),
2649
2759
  overflow: "hidden",
2650
2760
  ".confirm__content": {
2651
2761
  overflow: "hidden",
@@ -2738,43 +2848,43 @@ const modals = __spreadProps$4(__spreadValues$7({
2738
2848
  /* PREPEND HERE */
2739
2849
  });
2740
2850
 
2741
- var __defProp$6 = Object.defineProperty;
2742
- var __defProps$3 = Object.defineProperties;
2743
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
2744
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
2745
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
2746
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
2747
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2748
- var __spreadValues$6 = (a, b) => {
2851
+ var __defProp$a = Object.defineProperty;
2852
+ var __defProps$4 = Object.defineProperties;
2853
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
2854
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2855
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2856
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2857
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2858
+ var __spreadValues$a = (a, b) => {
2749
2859
  for (var prop in b || (b = {}))
2750
- if (__hasOwnProp$6.call(b, prop))
2751
- __defNormalProp$6(a, prop, b[prop]);
2752
- if (__getOwnPropSymbols$6)
2753
- for (var prop of __getOwnPropSymbols$6(b)) {
2754
- if (__propIsEnum$6.call(b, prop))
2755
- __defNormalProp$6(a, prop, b[prop]);
2860
+ if (__hasOwnProp$a.call(b, prop))
2861
+ __defNormalProp$a(a, prop, b[prop]);
2862
+ if (__getOwnPropSymbols$a)
2863
+ for (var prop of __getOwnPropSymbols$a(b)) {
2864
+ if (__propIsEnum$a.call(b, prop))
2865
+ __defNormalProp$a(a, prop, b[prop]);
2756
2866
  }
2757
2867
  return a;
2758
2868
  };
2759
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
2869
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
2760
2870
  function getSelectionStyles() {
2761
2871
  return {
2762
2872
  'td[data-focused="false"], th[data-focused="false"]': {
2763
2873
  "*:focus-visible, &:focus, &:focus-visible": {
2764
2874
  outline: "none"
2765
2875
  },
2766
- "*:focus": __spreadValues$6({}, focusOutline)
2876
+ "*:focus": __spreadValues$a({}, focusOutline)
2767
2877
  },
2768
2878
  '[data-focused="true"]:not(.row__separator__cell)': {
2769
2879
  '&:not([data-editionmode="true"])': {
2770
- "&:focus, & > *:focus, *:focus-visible": __spreadProps$3(__spreadValues$6({}, focusOutline), {
2880
+ "&:focus, & > *:focus, *:focus-visible": __spreadProps$4(__spreadValues$a({}, focusOutline), {
2771
2881
  "&.cell__download__document": {
2772
2882
  outlineOffset: 0
2773
2883
  }
2774
2884
  })
2775
2885
  },
2776
2886
  '&[data-editionmode="true"]': {
2777
- "&:focus, *:focus, *:focus-visible": __spreadProps$3(__spreadValues$6({}, focusOutline), {
2887
+ "&:focus, *:focus, *:focus-visible": __spreadProps$4(__spreadValues$a({}, focusOutline), {
2778
2888
  outlineStyle: "dotted",
2779
2889
  outlineWidth: "6px",
2780
2890
  outlineOffset: "-4px"
@@ -2788,27 +2898,27 @@ function getSelectionStyles() {
2788
2898
  };
2789
2899
  }
2790
2900
 
2791
- var __defProp$5 = Object.defineProperty;
2792
- var __defProps$2 = Object.defineProperties;
2793
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
2794
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
2795
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
2796
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
2797
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2798
- var __spreadValues$5 = (a, b) => {
2901
+ var __defProp$9 = Object.defineProperty;
2902
+ var __defProps$3 = Object.defineProperties;
2903
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
2904
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2905
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2906
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2907
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2908
+ var __spreadValues$9 = (a, b) => {
2799
2909
  for (var prop in b || (b = {}))
2800
- if (__hasOwnProp$5.call(b, prop))
2801
- __defNormalProp$5(a, prop, b[prop]);
2802
- if (__getOwnPropSymbols$5)
2803
- for (var prop of __getOwnPropSymbols$5(b)) {
2804
- if (__propIsEnum$5.call(b, prop))
2805
- __defNormalProp$5(a, prop, b[prop]);
2910
+ if (__hasOwnProp$9.call(b, prop))
2911
+ __defNormalProp$9(a, prop, b[prop]);
2912
+ if (__getOwnPropSymbols$9)
2913
+ for (var prop of __getOwnPropSymbols$9(b)) {
2914
+ if (__propIsEnum$9.call(b, prop))
2915
+ __defNormalProp$9(a, prop, b[prop]);
2806
2916
  }
2807
2917
  return a;
2808
2918
  };
2809
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
2810
- const primary$1 = (theme) => {
2811
- return __spreadProps$2(__spreadValues$5({
2919
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
2920
+ const primary$3 = (theme) => {
2921
+ return __spreadProps$3(__spreadValues$9({
2812
2922
  variant: "colors.tables.primary",
2813
2923
  width: "100%",
2814
2924
  backgroundColor: "components.primaryTable.body.backgroundColor",
@@ -2823,7 +2933,7 @@ const primary$1 = (theme) => {
2823
2933
  insetBlockStart: 0,
2824
2934
  backgroundColor: "palette.background.paper",
2825
2935
  "tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
2826
- "th, td": __spreadProps$2(__spreadValues$5({
2936
+ "th, td": __spreadProps$3(__spreadValues$9({
2827
2937
  variant: "buttons.primary",
2828
2938
  py: responsive$1({ 0: 3, 4: 4 }),
2829
2939
  px: responsive$1({ 0: 3, 4: 4 }),
@@ -2859,10 +2969,6 @@ const primary$1 = (theme) => {
2859
2969
  "&:last-of-type .headButton__resizer": {
2860
2970
  right: "0px"
2861
2971
  },
2862
- "&:last-of-type:not(td)": {
2863
- maxWidth: "100%",
2864
- width: "100%"
2865
- },
2866
2972
  "&.additionalColumn": {
2867
2973
  minWidth: "50px",
2868
2974
  maxWidth: "50px",
@@ -2881,12 +2987,6 @@ const primary$1 = (theme) => {
2881
2987
  flexShrink: 0
2882
2988
  }
2883
2989
  },
2884
- // '&>div': {
2885
- // color: 'components.primaryTable.header.color',
2886
- // svg: {
2887
- // color: 'components.primaryTable.body.color',
2888
- // },
2889
- // },
2890
2990
  "&:not(:last-of-type)": {
2891
2991
  "&>div": {
2892
2992
  borderRightWidth: "1px"
@@ -2900,6 +3000,7 @@ const primary$1 = (theme) => {
2900
3000
  },
2901
3001
  "tr.filtersRow, tr.responsiveTable__filters__row": {
2902
3002
  backgroundColor: "components.primaryTable.body.backgroundColor",
3003
+ boxShadow: "tableFilters",
2903
3004
  "th.noFilter": {
2904
3005
  background: "transparent"
2905
3006
  },
@@ -2935,20 +3036,10 @@ const primary$1 = (theme) => {
2935
3036
  }
2936
3037
  },
2937
3038
  tbody: {
2938
- tr: __spreadProps$2(__spreadValues$5(__spreadProps$2(__spreadValues$5({
3039
+ tr: __spreadProps$3(__spreadValues$9(__spreadProps$3(__spreadValues$9({
2939
3040
  borderBottomWidth: "1px",
2940
3041
  borderBottomStyle: "solid"
2941
- }, theme.palette.getStatesFromPath("components.primaryTable.body", {
2942
- states: {
2943
- disabled: false,
2944
- readonly: false,
2945
- active: false,
2946
- hover: false,
2947
- checked: false,
2948
- focus: false,
2949
- selected: false
2950
- }
2951
- })), {
3042
+ }, theme.palette.getColorsByPath("components.primaryTable.body")), {
2952
3043
  "&:nth-of-type(2n)": {
2953
3044
  backgroundColor: "components.primaryTable.body.evenRowsBackgroundColor"
2954
3045
  },
@@ -2964,7 +3055,7 @@ const primary$1 = (theme) => {
2964
3055
  borderColor: "palette.gray.850"
2965
3056
  }
2966
3057
  }
2967
- }), getSelectedColors(theme)), {
3058
+ }), getSelectedColors(theme.palette)), {
2968
3059
  "&.draggingRow": {
2969
3060
  outline: "3px dotted",
2970
3061
  outlineColor: "components.primaryTable.header.borderColor",
@@ -3061,6 +3152,7 @@ const information = {
3061
3152
  border: "1px solid",
3062
3153
  borderColor: "primary",
3063
3154
  borderCollapse: "collapse",
3155
+ borderBottom: "none",
3064
3156
  thead: {
3065
3157
  tr: {
3066
3158
  th: {
@@ -3076,13 +3168,9 @@ const information = {
3076
3168
  tr: {
3077
3169
  "td,th": {
3078
3170
  borderColor: "muted",
3171
+ borderBottom: "1px solid",
3079
3172
  p: spacing(4)
3080
3173
  },
3081
- "&:not(tr:last-of-type)": {
3082
- "td,th": {
3083
- borderBottom: "1px solid"
3084
- }
3085
- },
3086
3174
  "td:not(td:last-child),th:not(th:last-child)": {
3087
3175
  borderRight: "1px solid"
3088
3176
  },
@@ -3100,7 +3188,7 @@ const accordion$1 = {
3100
3188
  display: "flex",
3101
3189
  flexDirection: "column",
3102
3190
  gap: spacing(2),
3103
- ".responsiveTable__accordionElement__toggler": {
3191
+ ".responsiveTable__accordionElement__toggler": () => ({
3104
3192
  variant: "buttons.outline",
3105
3193
  borderWidth: "1px",
3106
3194
  display: "flex",
@@ -3109,8 +3197,13 @@ const accordion$1 = {
3109
3197
  width: "100%",
3110
3198
  px: 4,
3111
3199
  py: 3,
3112
- "&:hover h3": {
3113
- color: "palette.primary.contrastText"
3200
+ "&:hover": {
3201
+ h3: {
3202
+ color: "palette.primary.contrastText"
3203
+ }
3204
+ },
3205
+ "& svg path": {
3206
+ fill: "palette.primary.main"
3114
3207
  },
3115
3208
  ".accordionElement__toggler__checkbox": {
3116
3209
  flexShrink: 0,
@@ -3136,8 +3229,11 @@ const accordion$1 = {
3136
3229
  }
3137
3230
  }
3138
3231
  }
3139
- },
3232
+ }),
3140
3233
  ".responsiveTable__accordionElement__content": {
3234
+ maxHeight: "300px",
3235
+ display: "flex",
3236
+ flexDirection: "column",
3141
3237
  "& > div": {
3142
3238
  backgroundColor: "palette.background.paper",
3143
3239
  transition: "padding-bottom 300ms, padding-top 300ms",
@@ -3168,6 +3264,7 @@ const responsive = (theme) => {
3168
3264
  maxHeight: "100%",
3169
3265
  overflow: "auto",
3170
3266
  position: "relative",
3267
+ // borderRadius: '10px',
3171
3268
  "&.isLoading": {
3172
3269
  overflow: "hidden"
3173
3270
  },
@@ -3199,19 +3296,19 @@ const responsive = (theme) => {
3199
3296
  };
3200
3297
  };
3201
3298
 
3202
- var __defProp$4 = Object.defineProperty;
3203
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3204
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3205
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3206
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3207
- var __spreadValues$4 = (a, b) => {
3299
+ var __defProp$8 = Object.defineProperty;
3300
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3301
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3302
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
3303
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3304
+ var __spreadValues$8 = (a, b) => {
3208
3305
  for (var prop in b || (b = {}))
3209
- if (__hasOwnProp$4.call(b, prop))
3210
- __defNormalProp$4(a, prop, b[prop]);
3211
- if (__getOwnPropSymbols$4)
3212
- for (var prop of __getOwnPropSymbols$4(b)) {
3213
- if (__propIsEnum$4.call(b, prop))
3214
- __defNormalProp$4(a, prop, b[prop]);
3306
+ if (__hasOwnProp$8.call(b, prop))
3307
+ __defNormalProp$8(a, prop, b[prop]);
3308
+ if (__getOwnPropSymbols$8)
3309
+ for (var prop of __getOwnPropSymbols$8(b)) {
3310
+ if (__propIsEnum$8.call(b, prop))
3311
+ __defNormalProp$8(a, prop, b[prop]);
3215
3312
  }
3216
3313
  return a;
3217
3314
  };
@@ -3220,11 +3317,11 @@ const secondary = {
3220
3317
  borderColor: "components.secondaryTable.borderColor",
3221
3318
  "& thead": {
3222
3319
  "tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
3223
- "& th, & td": () => __spreadValues$4({}, getColorsAndStatesByPath("components.secondaryTable.header"))
3320
+ "& th, & td": () => __spreadValues$8({}, getColorsAndStatesByPath("components.secondaryTable.header"))
3224
3321
  }
3225
3322
  },
3226
3323
  "& tbody": {
3227
- tr: __spreadValues$4({
3324
+ tr: __spreadValues$8({
3228
3325
  "&:nth-of-type(2n)": {
3229
3326
  backgroundColor: "components.secondaryTable.body.evenRowsBackgroundColor"
3230
3327
  },
@@ -3254,81 +3351,379 @@ const secondary = {
3254
3351
  }
3255
3352
  };
3256
3353
 
3257
- const tables = (theme) => {
3258
- return {
3259
- accordion: accordion$1,
3260
- information,
3261
- primary: primary$1(theme),
3262
- print,
3263
- responsive: responsive(theme),
3264
- secondary
3265
- /* PREPEND HERE */
3266
- };
3267
- };
3268
-
3269
- const captcha = {
3270
- display: "flex",
3271
- flexDirection: "column",
3272
- gap: spacing(2),
3273
- ".captcha__imageContainer": {
3274
- border: "1px solid",
3275
- borderColor: "palette.border.field",
3276
- p: spacing(4)
3277
- },
3278
- ".captcha__inputContainer": {
3279
- display: "flex",
3280
- gap: spacing(2),
3281
- justifyContent: "stretch",
3282
- input: {
3283
- flexGrow: 1,
3284
- width: "100%"
3285
- },
3286
- ".captcha__buttons": {
3287
- width: "24px",
3288
- flexDirection: "column",
3289
- display: "flex",
3290
- gap: spacing(2),
3291
- flexShrink: 0,
3292
- button: {
3293
- width: "24px",
3294
- height: "24px",
3295
- p: "5px",
3296
- variant: "buttons.icon-outline",
3297
- svg: {
3298
- color: "palette.text.primary",
3299
- height: "16px",
3300
- width: "16px"
3301
- }
3302
- }
3303
- }
3304
- }
3305
- };
3306
-
3307
- const forms = {
3308
- captcha
3309
- /* PREPEND HERE */
3310
- };
3311
-
3312
- var __defProp$3 = Object.defineProperty;
3313
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
3314
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
3315
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
3316
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3317
- var __spreadValues$3 = (a, b) => {
3354
+ var __defProp$7 = Object.defineProperty;
3355
+ var __defProps$2 = Object.defineProperties;
3356
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3357
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
3358
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
3359
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
3360
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3361
+ var __spreadValues$7 = (a, b) => {
3318
3362
  for (var prop in b || (b = {}))
3319
- if (__hasOwnProp$3.call(b, prop))
3320
- __defNormalProp$3(a, prop, b[prop]);
3321
- if (__getOwnPropSymbols$3)
3322
- for (var prop of __getOwnPropSymbols$3(b)) {
3323
- if (__propIsEnum$3.call(b, prop))
3324
- __defNormalProp$3(a, prop, b[prop]);
3363
+ if (__hasOwnProp$7.call(b, prop))
3364
+ __defNormalProp$7(a, prop, b[prop]);
3365
+ if (__getOwnPropSymbols$7)
3366
+ for (var prop of __getOwnPropSymbols$7(b)) {
3367
+ if (__propIsEnum$7.call(b, prop))
3368
+ __defNormalProp$7(a, prop, b[prop]);
3325
3369
  }
3326
3370
  return a;
3327
3371
  };
3328
- const primary = (theme) => {
3329
- return {
3330
- /* PREPEND HERE */
3331
- position: "relative",
3372
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3373
+ const clean = (theme) => {
3374
+ return __spreadProps$2(__spreadValues$7({
3375
+ variant: "colors.tables.primary",
3376
+ width: "100%",
3377
+ backgroundColor: "components.cleanTable.body.backgroundColor",
3378
+ border: "1px solid",
3379
+ borderColor: "components.cleanTable.borderColor",
3380
+ borderCollapse: "inherit",
3381
+ borderSpacing: 0,
3382
+ tableLayout: "fixed",
3383
+ selection__keyHandler: {
3384
+ maxHeight: "30vh"
3385
+ },
3386
+ thead: {
3387
+ zIndex: 1,
3388
+ position: "sticky",
3389
+ insetBlockStart: 0,
3390
+ backgroundColor: "palette.background.paper",
3391
+ "tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
3392
+ "th, td": __spreadProps$2(__spreadValues$7({
3393
+ variant: "buttons.primary",
3394
+ width: "breakWidth",
3395
+ backgroundColor: "palette.background.paper",
3396
+ borderColor: "palette.primary.dark",
3397
+ borderRadius: 0,
3398
+ borderStyle: "solid",
3399
+ borderWidth: "1px",
3400
+ color: "primary.text.primary",
3401
+ display: "table-cell",
3402
+ verticalAlign: "center",
3403
+ wordBreak: "break-word",
3404
+ p: 0,
3405
+ px: 0,
3406
+ py: 0,
3407
+ border: "none",
3408
+ borderBottom: "1px solid #ccc",
3409
+ '&[role="presentation"]': {
3410
+ display: "none"
3411
+ }
3412
+ }, theme.palette.getStatesFromPath("components.cleanTable.header")), {
3413
+ "& *": {
3414
+ color: "inherit"
3415
+ },
3416
+ ".headButton__label": {
3417
+ fontWeight: "bold",
3418
+ textAlign: "left",
3419
+ p: 0,
3420
+ d: "",
3421
+ "& > *": {
3422
+ py: responsive$1({ 0: 3, 4: 4 }),
3423
+ px: 4
3424
+ }
3425
+ },
3426
+ ".headButton__resizer": {
3427
+ width: "20px",
3428
+ cursor: "ew-resize",
3429
+ zIndex: 1e3,
3430
+ position: "absolute",
3431
+ right: "-10px",
3432
+ height: "100%"
3433
+ },
3434
+ "&:last-of-type .headButton__resizer": {
3435
+ right: "0px"
3436
+ },
3437
+ "&.additionalColumn": {
3438
+ minWidth: "50px",
3439
+ maxWidth: "50px",
3440
+ width: "50px",
3441
+ p: 0,
3442
+ textAlign: "center",
3443
+ verticalAlign: "center"
3444
+ },
3445
+ ".headButton__container": {
3446
+ width: "100%",
3447
+ display: "flex",
3448
+ alignItems: "center",
3449
+ justifyContent: "space-between",
3450
+ gap: 3,
3451
+ svg: {
3452
+ flexShrink: 0
3453
+ }
3454
+ },
3455
+ "&:not(:last-of-type)": {
3456
+ "&>div": {
3457
+ borderRightWidth: "1px"
3458
+ }
3459
+ }
3460
+ }),
3461
+ "th.requiredFilterColumn": {
3462
+ borderLeft: "4px solid !important",
3463
+ borderLeftColor: "palette.error.main !important"
3464
+ }
3465
+ },
3466
+ "tr.filtersRow, tr.responsiveTable__filters__row": {
3467
+ backgroundColor: "components.cleanTable.body.backgroundColor",
3468
+ "th.noFilter": {
3469
+ background: "transparent"
3470
+ },
3471
+ "td.requiredFilter__Border": {
3472
+ borderLeftStyle: "solid !important",
3473
+ borderLeftWidth: "4px !important",
3474
+ borderLeftColor: "palette.error.main"
3475
+ },
3476
+ td: {
3477
+ "input:not([disabled]), select:not([disabled])": {
3478
+ border: "1px solid white"
3479
+ },
3480
+ background: "transparent",
3481
+ border: "1px solid",
3482
+ borderColor: "components.cleanTable.body.borderColor",
3483
+ p: 0
3484
+ },
3485
+ transition: "height 0.3s",
3486
+ "&.hidden": {
3487
+ height: "0",
3488
+ overflow: "hidden",
3489
+ p: spacing(0),
3490
+ border: "none",
3491
+ "& *": {
3492
+ height: "0",
3493
+ overflow: "hidden",
3494
+ fontSize: 0,
3495
+ lineHeight: 0,
3496
+ p: spacing(0),
3497
+ border: "none"
3498
+ }
3499
+ }
3500
+ }
3501
+ },
3502
+ tbody: {
3503
+ tr: __spreadProps$2(__spreadValues$7(__spreadProps$2(__spreadValues$7({}, theme.palette.getStatesFromPath("components.cleanTable.body", {
3504
+ states: {
3505
+ disabled: false,
3506
+ readonly: false,
3507
+ active: false,
3508
+ hover: false,
3509
+ checked: false,
3510
+ focus: false,
3511
+ path: false,
3512
+ selected: false
3513
+ }
3514
+ })), {
3515
+ "&:nth-of-type(2n)": {
3516
+ backgroundColor: "components.cleanTable.body.evenRowsBackgroundColor"
3517
+ },
3518
+ "&.non-selectable": {
3519
+ cursor: "not-allowed"
3520
+ },
3521
+ "&.hidden": {
3522
+ display: "none"
3523
+ },
3524
+ "&.locked": {
3525
+ background: "palette.gray.900",
3526
+ td: {
3527
+ borderColor: "palette.gray.850"
3528
+ }
3529
+ }
3530
+ }), getSelectedColors(theme.palette)), {
3531
+ "&.draggingRow": {
3532
+ outline: "3px dotted",
3533
+ outlineColor: "components.cleanTable.header.borderColor",
3534
+ outlineOffset: "-3px",
3535
+ "*": {
3536
+ outline: "none !important"
3537
+ }
3538
+ },
3539
+ ".rowStatesList": {
3540
+ display: "flex",
3541
+ gap: spacing(3),
3542
+ alignItems: "center",
3543
+ svg: {
3544
+ width: "smallIcon",
3545
+ height: "smallIcon",
3546
+ cursor: "pointer"
3547
+ }
3548
+ },
3549
+ td: {
3550
+ border: "none",
3551
+ display: "table-cell",
3552
+ p: 0,
3553
+ overflow: "hidden",
3554
+ whiteSpace: "nowrap",
3555
+ textOverflow: "ellipsis",
3556
+ wordBreak: "break-word",
3557
+ button: {
3558
+ height: "fit-content",
3559
+ display: "flex"
3560
+ },
3561
+ "&.stickyColumn": {
3562
+ position: "sticky",
3563
+ left: 0,
3564
+ backgroundColor: "components.cleanTable.body.backgroundColor"
3565
+ },
3566
+ ".moreInformationButton": {
3567
+ width: "30px",
3568
+ height: "30px",
3569
+ padding: "3px",
3570
+ border: "none",
3571
+ background: "transparent"
3572
+ },
3573
+ ".autoellipsis__container": {
3574
+ width: "100%"
3575
+ },
3576
+ "& > *": {
3577
+ py: spacing(3),
3578
+ px: 4
3579
+ },
3580
+ borderBottomWidth: "1px",
3581
+ borderBottomStyle: "solid",
3582
+ borderBottomColor: "components.cleanTable.body.borderColor"
3583
+ }
3584
+ }),
3585
+ ".responsiveTable__additionalInfoContainer": {
3586
+ background: "components.cleanTable.body.additionalInfoButton.backgroundColor",
3587
+ display: "grid",
3588
+ gridTemplateColumns: responsive$1({
3589
+ 0: "repeat(2, 1fr)",
3590
+ 5: "repeat(4, 1fr)"
3591
+ }),
3592
+ columnGap: 3,
3593
+ rowGap: 2,
3594
+ ".listPanel__details": {
3595
+ pl: 6
3596
+ }
3597
+ },
3598
+ ".responsiveTable__additionalInfoContainer .responsiveTable__additionalInfoItem.separator": {
3599
+ gridColumnStart: "1",
3600
+ gridColumnEnd: "5",
3601
+ borderBottom: "1px solid",
3602
+ borderBottomColor: "palette.gray.700",
3603
+ height: "auto"
3604
+ }
3605
+ },
3606
+ ".editionMode": {
3607
+ border: "3px solid",
3608
+ borderColor: "components.cleanTable.header.borderColor",
3609
+ borderWidth: "1.5px",
3610
+ borderStyle: "dotted"
3611
+ },
3612
+ ".stateCell": {
3613
+ width: "50px",
3614
+ maxWidth: "50px",
3615
+ minWidth: "50px",
3616
+ textAlign: "center",
3617
+ verticalAlign: "middle"
3618
+ }
3619
+ }, getSelectionStyles()), {
3620
+ ".no__registers": {
3621
+ py: 6,
3622
+ minWidth: "200px"
3623
+ },
3624
+ ".requiredFilter__Column": {
3625
+ fontWeight: "bold"
3626
+ },
3627
+ ".bold": {
3628
+ fontWeight: "bold"
3629
+ },
3630
+ ".light": {
3631
+ color: "palette.gray.700"
3632
+ },
3633
+ ".additionalInfo__cell": {
3634
+ path: {
3635
+ fill: "components.cleanTable.body.additionalInfoButton.color"
3636
+ }
3637
+ },
3638
+ ".additionalInfo__cell, .stateCell": {
3639
+ verticalAlign: "middle"
3640
+ },
3641
+ ".isAcquired": {
3642
+ td: {
3643
+ div: {
3644
+ color: "acquiredColor"
3645
+ }
3646
+ }
3647
+ }
3648
+ });
3649
+ };
3650
+
3651
+ const tables = (theme) => {
3652
+ return {
3653
+ accordion: accordion$1,
3654
+ information,
3655
+ primary: primary$3(theme),
3656
+ print,
3657
+ responsive: responsive(theme),
3658
+ secondary,
3659
+ clean: clean(theme)
3660
+ /* PREPEND HERE */
3661
+ };
3662
+ };
3663
+
3664
+ const captcha = {
3665
+ display: "flex",
3666
+ flexDirection: "column",
3667
+ gap: spacing(2),
3668
+ ".captcha__imageContainer": {
3669
+ border: "1px solid",
3670
+ borderColor: "palette.border.field",
3671
+ p: spacing(4)
3672
+ },
3673
+ ".captcha__inputContainer": {
3674
+ display: "flex",
3675
+ gap: spacing(2),
3676
+ justifyContent: "stretch",
3677
+ input: {
3678
+ flexGrow: 1,
3679
+ width: "100%"
3680
+ },
3681
+ ".captcha__buttons": {
3682
+ width: "24px",
3683
+ flexDirection: "column",
3684
+ display: "flex",
3685
+ gap: spacing(2),
3686
+ flexShrink: 0,
3687
+ button: {
3688
+ width: "24px",
3689
+ height: "24px",
3690
+ p: "5px",
3691
+ variant: "buttons.icon-outline",
3692
+ svg: {
3693
+ color: "palette.text.primary",
3694
+ height: "16px",
3695
+ width: "16px"
3696
+ }
3697
+ }
3698
+ }
3699
+ }
3700
+ };
3701
+
3702
+ const forms = {
3703
+ captcha
3704
+ /* PREPEND HERE */
3705
+ };
3706
+
3707
+ var __defProp$6 = Object.defineProperty;
3708
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3709
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3710
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3711
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3712
+ var __spreadValues$6 = (a, b) => {
3713
+ for (var prop in b || (b = {}))
3714
+ if (__hasOwnProp$6.call(b, prop))
3715
+ __defNormalProp$6(a, prop, b[prop]);
3716
+ if (__getOwnPropSymbols$6)
3717
+ for (var prop of __getOwnPropSymbols$6(b)) {
3718
+ if (__propIsEnum$6.call(b, prop))
3719
+ __defNormalProp$6(a, prop, b[prop]);
3720
+ }
3721
+ return a;
3722
+ };
3723
+ const primary$2 = (theme) => {
3724
+ return {
3725
+ /* PREPEND HERE */
3726
+ position: "relative",
3332
3727
  '[role="tree"]:focus': {
3333
3728
  outline: "none",
3334
3729
  ".focus": focusOutline
@@ -3342,7 +3737,6 @@ const primary = (theme) => {
3342
3737
  borderRadius: "2px",
3343
3738
  display: "flex",
3344
3739
  float: "right",
3345
- gap: spacing(3),
3346
3740
  justifyContent: "center",
3347
3741
  position: "sticky",
3348
3742
  right: "4px",
@@ -3365,10 +3759,9 @@ const primary = (theme) => {
3365
3759
  }
3366
3760
  }
3367
3761
  },
3368
- ".tree__searchLabel": __spreadValues$3({
3762
+ ".tree__searchLabel": __spreadValues$6({
3369
3763
  alignItems: "center",
3370
3764
  display: "flex",
3371
- gap: spacing(3),
3372
3765
  justifyContent: "center",
3373
3766
  position: "fixed",
3374
3767
  p: "2px 5px",
@@ -3391,7 +3784,6 @@ const primary = (theme) => {
3391
3784
  ".tree__nodeItemLabel": {
3392
3785
  display: "flex",
3393
3786
  flexWrap: "nowrap",
3394
- gap: 3,
3395
3787
  alignItems: "center",
3396
3788
  wordBreak: "break-all",
3397
3789
  button: {
@@ -3422,39 +3814,51 @@ const primary = (theme) => {
3422
3814
  "hover"
3423
3815
  )
3424
3816
  },
3817
+ ".tree__expanderWrapper": {
3818
+ display: "inline-flex",
3819
+ ml: "-10px",
3820
+ pl: "5px",
3821
+ "svg.tree__expandIcon": {
3822
+ color: "palette.text.primary"
3823
+ }
3824
+ },
3825
+ ".tree__node__icon": {
3826
+ mr: "3"
3827
+ },
3425
3828
  ".spacer": {
3426
- borderLeft: "1px solid",
3829
+ borderLeft: "1px dotted",
3427
3830
  borderLeftColor: "palette.border.section",
3428
3831
  width: "20px",
3429
- alignSelf: "stretch"
3832
+ alignSelf: "stretch",
3833
+ transform: "translateX(5px)"
3430
3834
  }
3431
3835
  };
3432
3836
  };
3433
3837
 
3434
3838
  const trees = {
3435
- primary
3839
+ primary: primary$2
3436
3840
  };
3437
3841
 
3438
- var __defProp$2 = Object.defineProperty;
3842
+ var __defProp$5 = Object.defineProperty;
3439
3843
  var __defProps$1 = Object.defineProperties;
3440
3844
  var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
3441
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
3442
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
3443
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
3444
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3445
- var __spreadValues$2 = (a, b) => {
3845
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
3846
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
3847
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
3848
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3849
+ var __spreadValues$5 = (a, b) => {
3446
3850
  for (var prop in b || (b = {}))
3447
- if (__hasOwnProp$2.call(b, prop))
3448
- __defNormalProp$2(a, prop, b[prop]);
3449
- if (__getOwnPropSymbols$2)
3450
- for (var prop of __getOwnPropSymbols$2(b)) {
3451
- if (__propIsEnum$2.call(b, prop))
3452
- __defNormalProp$2(a, prop, b[prop]);
3851
+ if (__hasOwnProp$5.call(b, prop))
3852
+ __defNormalProp$5(a, prop, b[prop]);
3853
+ if (__getOwnPropSymbols$5)
3854
+ for (var prop of __getOwnPropSymbols$5(b)) {
3855
+ if (__propIsEnum$5.call(b, prop))
3856
+ __defNormalProp$5(a, prop, b[prop]);
3453
3857
  }
3454
3858
  return a;
3455
3859
  };
3456
3860
  var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
3457
- const pagination = __spreadProps$1(__spreadValues$2({}, getColorsByPath("components.pagination")), {
3861
+ const common$1 = (type) => __spreadProps$1(__spreadValues$5({}, getColorsByPath(type)), {
3458
3862
  gap: spacing(1),
3459
3863
  justifyContent: "stretch",
3460
3864
  "&.onlyRefresh": {
@@ -3478,11 +3882,11 @@ const pagination = __spreadProps$1(__spreadValues$2({}, getColorsByPath("compone
3478
3882
  top: "80px",
3479
3883
  textAlign: "center"
3480
3884
  },
3481
- ".iconButton": __spreadProps$1(__spreadValues$2({
3885
+ ".iconButton": __spreadProps$1(__spreadValues$5({
3482
3886
  height: "36px",
3483
3887
  width: "36px"
3484
- }, getColorsAndStatesByPath("components.pagination.icons", {
3485
- states: { disabled: false, path: true }
3888
+ }, getColorsAndStatesByPath(`${type}.icons`, {
3889
+ states: { disabled: false, path: false }
3486
3890
  })), {
3487
3891
  "&:disabled": {
3488
3892
  background: "transparent"
@@ -3510,7 +3914,7 @@ const pagination = __spreadProps$1(__spreadValues$2({}, getColorsByPath("compone
3510
3914
  "select ~ svg": {
3511
3915
  display: "none"
3512
3916
  },
3513
- ".input": __spreadProps$1(__spreadValues$2({
3917
+ ".input": __spreadProps$1(__spreadValues$5({
3514
3918
  display: "flex",
3515
3919
  alignItems: "center",
3516
3920
  gap: spacing(3),
@@ -3518,7 +3922,7 @@ const pagination = __spreadProps$1(__spreadValues$2({}, getColorsByPath("compone
3518
3922
  border: "1px solid",
3519
3923
  paddingY: 1,
3520
3924
  paddingX: 4
3521
- }, getColorsByPath("components.pagination.pagesBox")), {
3925
+ }, getColorsByPath(`${type}.pagesBox`)), {
3522
3926
  input: {
3523
3927
  font: "inherit",
3524
3928
  background: "none",
@@ -3547,7 +3951,7 @@ const pagination = __spreadProps$1(__spreadValues$2({}, getColorsByPath("compone
3547
3951
  display: "flex"
3548
3952
  }
3549
3953
  },
3550
- ".pagination__alertInfo": __spreadValues$2({
3954
+ ".pagination__alertInfo": __spreadValues$5({
3551
3955
  variant: "buttons.icon-primary"
3552
3956
  }, getColorsAndStatesByPath("buttons.iconAlert")),
3553
3957
  ".pagination__rightToolbar": {
@@ -3581,6 +3985,66 @@ const pagination = __spreadProps$1(__spreadValues$2({}, getColorsByPath("compone
3581
3985
  }
3582
3986
  });
3583
3987
 
3988
+ var __defProp$4 = Object.defineProperty;
3989
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3990
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3991
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3992
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3993
+ var __spreadValues$4 = (a, b) => {
3994
+ for (var prop in b || (b = {}))
3995
+ if (__hasOwnProp$4.call(b, prop))
3996
+ __defNormalProp$4(a, prop, b[prop]);
3997
+ if (__getOwnPropSymbols$4)
3998
+ for (var prop of __getOwnPropSymbols$4(b)) {
3999
+ if (__propIsEnum$4.call(b, prop))
4000
+ __defNormalProp$4(a, prop, b[prop]);
4001
+ }
4002
+ return a;
4003
+ };
4004
+ const primary$1 = __spreadValues$4({}, common$1("components.paginationPrimary"));
4005
+
4006
+ var __defProp$3 = Object.defineProperty;
4007
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4008
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4009
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4010
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4011
+ var __spreadValues$3 = (a, b) => {
4012
+ for (var prop in b || (b = {}))
4013
+ if (__hasOwnProp$3.call(b, prop))
4014
+ __defNormalProp$3(a, prop, b[prop]);
4015
+ if (__getOwnPropSymbols$3)
4016
+ for (var prop of __getOwnPropSymbols$3(b)) {
4017
+ if (__propIsEnum$3.call(b, prop))
4018
+ __defNormalProp$3(a, prop, b[prop]);
4019
+ }
4020
+ return a;
4021
+ };
4022
+ const datagrid = __spreadValues$3({}, common$1("components.paginationDatagrid"));
4023
+
4024
+ var __defProp$2 = Object.defineProperty;
4025
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
4026
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
4027
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
4028
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4029
+ var __spreadValues$2 = (a, b) => {
4030
+ for (var prop in b || (b = {}))
4031
+ if (__hasOwnProp$2.call(b, prop))
4032
+ __defNormalProp$2(a, prop, b[prop]);
4033
+ if (__getOwnPropSymbols$2)
4034
+ for (var prop of __getOwnPropSymbols$2(b)) {
4035
+ if (__propIsEnum$2.call(b, prop))
4036
+ __defNormalProp$2(a, prop, b[prop]);
4037
+ }
4038
+ return a;
4039
+ };
4040
+ const primary = __spreadValues$2({}, common$1("components.paginationSecondary"));
4041
+
4042
+ const pagination = {
4043
+ primary: primary$1,
4044
+ datagrid,
4045
+ secondary: primary
4046
+ };
4047
+
3584
4048
  const accordion = {
3585
4049
  primary: {
3586
4050
  "&, .accordion__item": {
@@ -3629,7 +4093,7 @@ const accordion = {
3629
4093
  borderBottomColor: "palette.border.section"
3630
4094
  },
3631
4095
  ".accordion__item__content > *": {
3632
- p: spacing(3),
4096
+ p: 4,
3633
4097
  borderLeft: "1px solid",
3634
4098
  borderRight: "1px solid",
3635
4099
  borderLeftColor: "palette.border.section",
@@ -3646,6 +4110,48 @@ const accordion = {
3646
4110
  width: "100%"
3647
4111
  }
3648
4112
  }
4113
+ },
4114
+ panels: {
4115
+ variant: "layout.common.components.accordion.primary",
4116
+ overflowX: "hidden",
4117
+ ".accordion__item__button": {
4118
+ color: "palette.text.primary",
4119
+ pl: 4,
4120
+ background: "palette.background.paper",
4121
+ border: "none",
4122
+ borderTop: "1px solid",
4123
+ borderColor: "palette.border.section",
4124
+ boxShadow: "rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px",
4125
+ ":hover": {
4126
+ background: "palette.gray.900",
4127
+ borderColor: "palette.border.section",
4128
+ color: "palette.text.primary"
4129
+ },
4130
+ ":active": {
4131
+ background: "palette.border.section"
4132
+ },
4133
+ svg: {
4134
+ path: {
4135
+ fill: "palette.text.primary"
4136
+ }
4137
+ }
4138
+ },
4139
+ ".accordion__item__button__label": {
4140
+ color: "palette.text.primary",
4141
+ fontWeight: "400"
4142
+ },
4143
+ '.accordion__item__content[aria-hidden="true"]': {
4144
+ border: "none"
4145
+ },
4146
+ ".accordion__item__content": {
4147
+ background: "palette.primary.light",
4148
+ '[data-variant="link"]': {
4149
+ px: 0
4150
+ },
4151
+ div: {
4152
+ border: "none"
4153
+ }
4154
+ }
3649
4155
  }
3650
4156
  };
3651
4157
 
@@ -3676,22 +4182,21 @@ const makeTheme = (t) => {
3676
4182
  return t;
3677
4183
  };
3678
4184
  let declaredStyles = {};
3679
- function getMainTheme(customTheme, customPalette) {
4185
+ function getMainTheme(customTheme, customPalette, themeModifier) {
4186
+ var _a, _b;
4187
+ const palette = parsePalette(merge({}, defaultPalette, customPalette));
4188
+ window.currentPalette = palette;
3680
4189
  const theme = makeTheme(
3681
- merge(baseTheme(), { layout: declaredStyles }, customTheme != null ? customTheme : {}, {
4190
+ merge(baseTheme(), { layout: declaredStyles }, (_a = customTheme == null ? void 0 : customTheme()) != null ? _a : {}, {
3682
4191
  palette: {}
3683
4192
  })
3684
4193
  );
3685
- const palette = parsePalette(
3686
- merge({}, defaultPalette, customPalette != null ? customPalette : theme.palette),
3687
- theme
3688
- );
3689
4194
  theme.palette = palette;
3690
4195
  theme.colors = getThemeColorsObject(theme);
3691
4196
  theme.forms = forms$1(theme);
3692
4197
  theme.layout = merge(layout(theme), theme.layout);
3693
- theme.styles = merge({}, customTheme == null ? void 0 : customTheme.styles, { root: theme.layout.root });
3694
- return theme;
4198
+ theme.styles = merge({}, customTheme == null ? void 0 : customTheme().styles, { root: theme.layout.root });
4199
+ return (_b = themeModifier == null ? void 0 : themeModifier(theme)) != null ? _b : theme;
3695
4200
  }
3696
4201
 
3697
4202
  var __defProp$1 = Object.defineProperty;
@@ -3717,9 +4222,9 @@ function handleNewStyles(ev) {
3717
4222
  injectedStyles[ev.path] = ev.styles;
3718
4223
  }
3719
4224
  mainThemeEmitter.on("newStyles", handleNewStyles);
3720
- function useMainTheme(customTheme, customPalette) {
4225
+ function useMainTheme(customTheme, customPalette, themeModifier) {
3721
4226
  const [theme, setTheme] = useState(
3722
- getMainTheme(customTheme, customPalette)
4227
+ getMainTheme(customTheme, customPalette, themeModifier)
3723
4228
  );
3724
4229
  const previousTheme = useRef(customTheme);
3725
4230
  const previousPalette = useRef(customPalette);
@@ -3780,7 +4285,7 @@ function makeStyledComponent(displayName, stylesPath, styles, Component, unwrape
3780
4285
  const avoidFirstRender = useRef(0);
3781
4286
  const { theme: tuiTheme } = useThemeUI();
3782
4287
  const theme = useMemo(
3783
- () => __spreadValues(__spreadValues({}, tuiTheme), setValueByPath({}, stylesPath, styles)),
4288
+ () => () => __spreadValues(__spreadValues({}, tuiTheme), setValueByPath({}, stylesPath, styles)),
3784
4289
  [tuiTheme]
3785
4290
  );
3786
4291
  if (unwraped) {
@@ -3807,21 +4312,49 @@ function injectStyles(par1, par2) {
3807
4312
  mainThemeEmitter.emit("newStyles", { path, styles });
3808
4313
  }
3809
4314
 
4315
+ const spacingLayouts = [
4316
+ "dense",
4317
+ "clever",
4318
+ "vertical__clever",
4319
+ "horizontal__clever"
4320
+ ];
4321
+ function getSpacingLayouts() {
4322
+ return {
4323
+ "&.dense": {
4324
+ px: 0,
4325
+ py: 0
4326
+ },
4327
+ "&.horizontal__clever": {
4328
+ px: 4,
4329
+ py: 0
4330
+ },
4331
+ "&.vertical__clever": {
4332
+ px: 0,
4333
+ py: 4
4334
+ },
4335
+ "&.clever": {
4336
+ px: 4,
4337
+ py: 4
4338
+ }
4339
+ };
4340
+ }
4341
+
3810
4342
  let timeout = -1;
3811
4343
  function logTheme(theme) {
3812
4344
  clearTimeout(timeout);
3813
4345
  timeout = setTimeout(() => {
3814
4346
  console.info("Theme log: ", { theme });
3815
- }, 100);
4347
+ }, 500);
3816
4348
  }
3817
4349
  const ApiaThemeProvider = ({
3818
4350
  children,
3819
4351
  customTheme,
3820
- customPalette
4352
+ customPalette,
4353
+ themeModifier
3821
4354
  }) => {
3822
- const theme = useMainTheme(customTheme, customPalette);
4355
+ const theme = useMainTheme(customTheme, customPalette, themeModifier);
3823
4356
  logTheme(theme);
3824
4357
  return /* @__PURE__ */ jsx(ThemeProvider, { theme, children });
3825
4358
  };
3826
4359
 
3827
- export { ApiaThemeProvider, applyStatesGetColor, focusOutline, getColorState, getColorStates, getColorsAndStatesByDefinition, getColorsAndStatesByPath, getColorsByDefinition, getColorsByPath, getOneColorState, getVariant, injectStyles, makeStyledComponent, parsePalette, responsive$1 as responsive, smallButton, spacing, useMainTheme };
4360
+ export { ApiaThemeProvider, applyStatesGetColor, focusOutline, getColorState, getColorStates, getColorsAndStatesByDefinition, getColorsAndStatesByPath, getColorsByDefinition, getColorsByPath, getOneColorState, getSpacingLayouts, getVariant, injectStyles, makeStyledComponent, parsePalette, responsive$1 as responsive, smallButton, spacing, spacingLayouts, useMainTheme };