@apia/theme 1.0.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/ApiaThemeProvider.d.ts +15 -0
  2. package/dist/ApiaThemeProvider.d.ts.map +1 -0
  3. package/dist/ApiaThemeProvider.js +32 -0
  4. package/dist/ApiaThemeProvider.js.map +1 -0
  5. package/dist/base/alerts.js +128 -0
  6. package/dist/base/alerts.js.map +1 -0
  7. package/dist/base/baseTheme.js +93 -0
  8. package/dist/base/baseTheme.js.map +1 -0
  9. package/dist/base/buttons.js +294 -0
  10. package/dist/base/buttons.js.map +1 -0
  11. package/dist/base/colors/components.js +202 -0
  12. package/dist/base/colors/components.js.map +1 -0
  13. package/dist/base/colors/defaultPalette.js +84 -0
  14. package/dist/base/colors/defaultPalette.js.map +1 -0
  15. package/dist/base/colors/index.js +465 -0
  16. package/dist/base/colors/index.js.map +1 -0
  17. package/dist/base/colors/schemas.js +15 -0
  18. package/dist/base/colors/schemas.js.map +1 -0
  19. package/dist/base/colors/types.d.ts +154 -0
  20. package/dist/base/colors/types.d.ts.map +1 -0
  21. package/dist/base/colors/types.js +6 -0
  22. package/dist/base/colors/types.js.map +1 -0
  23. package/dist/base/colors/util/applyStates.js +35 -0
  24. package/dist/base/colors/util/applyStates.js.map +1 -0
  25. package/dist/base/colors/util/applyStatesGetColor.d.ts +11 -0
  26. package/dist/base/colors/util/applyStatesGetColor.d.ts.map +1 -0
  27. package/dist/base/colors/util/applyStatesGetColor.js +31 -0
  28. package/dist/base/colors/util/applyStatesGetColor.js.map +1 -0
  29. package/dist/base/colors/util/buildColorsObject.js +14 -0
  30. package/dist/base/colors/util/buildColorsObject.js.map +1 -0
  31. package/dist/base/colors/util/buildStateObject.js +60 -0
  32. package/dist/base/colors/util/buildStateObject.js.map +1 -0
  33. package/dist/base/colors/util/getColorState.d.ts +17 -0
  34. package/dist/base/colors/util/getColorState.d.ts.map +1 -0
  35. package/dist/base/colors/util/getColorState.js +52 -0
  36. package/dist/base/colors/util/getColorState.js.map +1 -0
  37. package/dist/base/colors/util/getColorStates.d.ts +11 -0
  38. package/dist/base/colors/util/getColorStates.d.ts.map +1 -0
  39. package/dist/base/colors/util/getColorStates.js +30 -0
  40. package/dist/base/colors/util/getColorStates.js.map +1 -0
  41. package/dist/base/colors/util/getColorsAndStatesByDefinition.d.ts +12 -0
  42. package/dist/base/colors/util/getColorsAndStatesByDefinition.d.ts.map +1 -0
  43. package/dist/base/colors/util/getColorsAndStatesByDefinition.js +28 -0
  44. package/dist/base/colors/util/getColorsAndStatesByDefinition.js.map +1 -0
  45. package/dist/base/colors/util/getColorsAndStatesByPath.d.ts +25 -0
  46. package/dist/base/colors/util/getColorsAndStatesByPath.d.ts.map +1 -0
  47. package/dist/base/colors/util/getColorsAndStatesByPath.js +36 -0
  48. package/dist/base/colors/util/getColorsAndStatesByPath.js.map +1 -0
  49. package/dist/base/colors/util/getColorsByDefinition.d.ts +24 -0
  50. package/dist/base/colors/util/getColorsByDefinition.d.ts.map +1 -0
  51. package/dist/base/colors/util/getColorsByDefinition.js +18 -0
  52. package/dist/base/colors/util/getColorsByDefinition.js.map +1 -0
  53. package/dist/base/colors/util/getColorsByPath.d.ts +17 -0
  54. package/dist/base/colors/util/getColorsByPath.d.ts.map +1 -0
  55. package/dist/base/colors/util/getColorsByPath.js +16 -0
  56. package/dist/base/colors/util/getColorsByPath.js.map +1 -0
  57. package/dist/base/colors/util/getOneColorState.d.ts +15 -0
  58. package/dist/base/colors/util/getOneColorState.d.ts.map +1 -0
  59. package/dist/base/colors/util/getOneColorState.js +18 -0
  60. package/dist/base/colors/util/getOneColorState.js.map +1 -0
  61. package/dist/base/colors/util/parsePalette.d.ts +6 -0
  62. package/dist/base/colors/util/parsePalette.d.ts.map +1 -0
  63. package/dist/base/colors/util/parsePalette.js +124 -0
  64. package/dist/base/colors/util/parsePalette.js.map +1 -0
  65. package/dist/base/colors/util.js +31 -0
  66. package/dist/base/colors/util.js.map +1 -0
  67. package/dist/base/forms/checkbox.js +59 -0
  68. package/dist/base/forms/checkbox.js.map +1 -0
  69. package/dist/base/forms/customCheckbox.js +30 -0
  70. package/dist/base/forms/customCheckbox.js.map +1 -0
  71. package/dist/base/forms/dateInput.js +60 -0
  72. package/dist/base/forms/dateInput.js.map +1 -0
  73. package/dist/base/forms/deletableInput.js +65 -0
  74. package/dist/base/forms/deletableInput.js.map +1 -0
  75. package/dist/base/forms/iconInput.js +28 -0
  76. package/dist/base/forms/iconInput.js.map +1 -0
  77. package/dist/base/forms/index.js +36 -0
  78. package/dist/base/forms/index.js.map +1 -0
  79. package/dist/base/forms/input.js +52 -0
  80. package/dist/base/forms/input.js.map +1 -0
  81. package/dist/base/forms/label.js +31 -0
  82. package/dist/base/forms/label.js.map +1 -0
  83. package/dist/base/forms/radio.js +17 -0
  84. package/dist/base/forms/radio.js.map +1 -0
  85. package/dist/base/forms/select.js +27 -0
  86. package/dist/base/forms/select.js.map +1 -0
  87. package/dist/base/forms/selectMultiple.js +40 -0
  88. package/dist/base/forms/selectMultiple.js.map +1 -0
  89. package/dist/base/forms/switch.js +12 -0
  90. package/dist/base/forms/switch.js.map +1 -0
  91. package/dist/base/forms/textarea.js +14 -0
  92. package/dist/base/forms/textarea.js.map +1 -0
  93. package/dist/base/layout/common/components/accordion.js +124 -0
  94. package/dist/base/layout/common/components/accordion.js.map +1 -0
  95. package/dist/base/layout/common/components/chat.js +98 -0
  96. package/dist/base/layout/common/components/chat.js.map +1 -0
  97. package/dist/base/layout/common/components/index.js +15 -0
  98. package/dist/base/layout/common/components/index.js.map +1 -0
  99. package/dist/base/layout/common/components/pagination/common.js +135 -0
  100. package/dist/base/layout/common/components/pagination/common.js.map +1 -0
  101. package/dist/base/layout/common/components/pagination/datagrid.js +9 -0
  102. package/dist/base/layout/common/components/pagination/datagrid.js.map +1 -0
  103. package/dist/base/layout/common/components/pagination/index.js +13 -0
  104. package/dist/base/layout/common/components/pagination/index.js.map +1 -0
  105. package/dist/base/layout/common/components/pagination/primary.js +9 -0
  106. package/dist/base/layout/common/components/pagination/primary.js.map +1 -0
  107. package/dist/base/layout/common/components/pagination/secondary.js +9 -0
  108. package/dist/base/layout/common/components/pagination/secondary.js.map +1 -0
  109. package/dist/base/layout/common/components/toolbar.js +84 -0
  110. package/dist/base/layout/common/components/toolbar.js.map +1 -0
  111. package/dist/base/layout/common/forms/captcha.js +42 -0
  112. package/dist/base/layout/common/forms/captcha.js.map +1 -0
  113. package/dist/base/layout/common/forms/index.js +9 -0
  114. package/dist/base/layout/common/forms/index.js.map +1 -0
  115. package/dist/base/layout/common/index.js +21 -0
  116. package/dist/base/layout/common/index.js.map +1 -0
  117. package/dist/base/layout/common/modals/apiaApi.js +86 -0
  118. package/dist/base/layout/common/modals/apiaApi.js.map +1 -0
  119. package/dist/base/layout/common/modals/buttonsBar.js +13 -0
  120. package/dist/base/layout/common/modals/buttonsBar.js.map +1 -0
  121. package/dist/base/layout/common/modals/confirm.js +35 -0
  122. package/dist/base/layout/common/modals/confirm.js.map +1 -0
  123. package/dist/base/layout/common/modals/index.js +166 -0
  124. package/dist/base/layout/common/modals/index.js.map +1 -0
  125. package/dist/base/layout/common/modals/overlay.js +29 -0
  126. package/dist/base/layout/common/modals/overlay.js.map +1 -0
  127. package/dist/base/layout/common/tables/accordion.js +66 -0
  128. package/dist/base/layout/common/tables/accordion.js.map +1 -0
  129. package/dist/base/layout/common/tables/clean.js +285 -0
  130. package/dist/base/layout/common/tables/clean.js.map +1 -0
  131. package/dist/base/layout/common/tables/getSelectionStyles.js +39 -0
  132. package/dist/base/layout/common/tables/getSelectionStyles.js.map +1 -0
  133. package/dist/base/layout/common/tables/index.js +23 -0
  134. package/dist/base/layout/common/tables/index.js.map +1 -0
  135. package/dist/base/layout/common/tables/information.js +41 -0
  136. package/dist/base/layout/common/tables/information.js.map +1 -0
  137. package/dist/base/layout/common/tables/primary.js +236 -0
  138. package/dist/base/layout/common/tables/primary.js.map +1 -0
  139. package/dist/base/layout/common/tables/print.js +11 -0
  140. package/dist/base/layout/common/tables/print.js.map +1 -0
  141. package/dist/base/layout/common/tables/responsive.js +41 -0
  142. package/dist/base/layout/common/tables/responsive.js.map +1 -0
  143. package/dist/base/layout/common/tables/secondary.js +46 -0
  144. package/dist/base/layout/common/tables/secondary.js.map +1 -0
  145. package/dist/base/layout/common/tooltips/index.js +9 -0
  146. package/dist/base/layout/common/tooltips/index.js.map +1 -0
  147. package/dist/base/layout/common/tooltips/primary.js +10 -0
  148. package/dist/base/layout/common/tooltips/primary.js.map +1 -0
  149. package/dist/base/layout/common/trees/index.js +8 -0
  150. package/dist/base/layout/common/trees/index.js.map +1 -0
  151. package/dist/base/layout/common/trees/primary.js +122 -0
  152. package/dist/base/layout/common/trees/primary.js.map +1 -0
  153. package/dist/base/layout/index.js +13 -0
  154. package/dist/base/layout/index.js.map +1 -0
  155. package/dist/base/layout/util/collector.js +30 -0
  156. package/dist/base/layout/util/collector.js.map +1 -0
  157. package/dist/base/layout/util/index.js +9 -0
  158. package/dist/base/layout/util/index.js.map +1 -0
  159. package/dist/base/rootStyles/menu.js +122 -0
  160. package/dist/base/rootStyles/menu.js.map +1 -0
  161. package/dist/base/rootStyles/rootStyles.js +152 -0
  162. package/dist/base/rootStyles/rootStyles.js.map +1 -0
  163. package/dist/base/rootStyles/transitions.js +88 -0
  164. package/dist/base/rootStyles/transitions.js.map +1 -0
  165. package/dist/base/text.js +24 -0
  166. package/dist/base/text.js.map +1 -0
  167. package/dist/index.d.ts +36 -387
  168. package/dist/index.js +25 -4666
  169. package/dist/index.js.map +1 -1
  170. package/dist/markdown/builder/MarkdownBuilder.d.ts +40 -0
  171. package/dist/markdown/builder/MarkdownBuilder.d.ts.map +1 -0
  172. package/dist/markdown/builder/MarkdownBuilder.js +108 -0
  173. package/dist/markdown/builder/MarkdownBuilder.js.map +1 -0
  174. package/dist/markdown/builder/elements/MarkdownBlock.d.ts +9 -0
  175. package/dist/markdown/builder/elements/MarkdownBlock.d.ts.map +1 -0
  176. package/dist/markdown/builder/elements/MarkdownBlock.js +5 -0
  177. package/dist/markdown/builder/elements/MarkdownBlock.js.map +1 -0
  178. package/dist/markdown/builder/elements/dialogBox.d.ts +11 -0
  179. package/dist/markdown/builder/elements/dialogBox.d.ts.map +1 -0
  180. package/dist/markdown/builder/elements/dialogBox.js +23 -0
  181. package/dist/markdown/builder/elements/dialogBox.js.map +1 -0
  182. package/dist/markdown/builder/elements/header.d.ts +11 -0
  183. package/dist/markdown/builder/elements/header.d.ts.map +1 -0
  184. package/dist/markdown/builder/elements/header.js +15 -0
  185. package/dist/markdown/builder/elements/header.js.map +1 -0
  186. package/dist/markdown/builder/elements/list.d.ts +19 -0
  187. package/dist/markdown/builder/elements/list.d.ts.map +1 -0
  188. package/dist/markdown/builder/elements/list.js +55 -0
  189. package/dist/markdown/builder/elements/list.js.map +1 -0
  190. package/dist/markdown/builder/elements/paragraph.d.ts +10 -0
  191. package/dist/markdown/builder/elements/paragraph.d.ts.map +1 -0
  192. package/dist/markdown/builder/elements/paragraph.js +14 -0
  193. package/dist/markdown/builder/elements/paragraph.js.map +1 -0
  194. package/dist/markdown/builder/elements/table.d.ts +27 -0
  195. package/dist/markdown/builder/elements/table.d.ts.map +1 -0
  196. package/dist/markdown/builder/elements/table.js +156 -0
  197. package/dist/markdown/builder/elements/table.js.map +1 -0
  198. package/dist/markdown/builder/elements/tableOfContents.d.ts +32 -0
  199. package/dist/markdown/builder/elements/tableOfContents.d.ts.map +1 -0
  200. package/dist/markdown/builder/elements/tableOfContents.js +96 -0
  201. package/dist/markdown/builder/elements/tableOfContents.js.map +1 -0
  202. package/dist/markdown/extensions/error.js +38 -0
  203. package/dist/markdown/extensions/error.js.map +1 -0
  204. package/dist/markdown/extensions/header.js +45 -0
  205. package/dist/markdown/extensions/header.js.map +1 -0
  206. package/dist/markdown/extensions/index.js +16 -0
  207. package/dist/markdown/extensions/index.js.map +1 -0
  208. package/dist/markdown/extensions/success.js +38 -0
  209. package/dist/markdown/extensions/success.js.map +1 -0
  210. package/dist/markdown/extensions/table/index.js +227 -0
  211. package/dist/markdown/extensions/table/index.js.map +1 -0
  212. package/dist/markdown/extensions/table/types.d.ts +20 -0
  213. package/dist/markdown/extensions/table/types.d.ts.map +1 -0
  214. package/dist/markdown/extensions/warning.js +38 -0
  215. package/dist/markdown/extensions/warning.js.map +1 -0
  216. package/dist/markdown/getRemarkable.js +28 -0
  217. package/dist/markdown/getRemarkable.js.map +1 -0
  218. package/dist/markdown/help.js +28 -0
  219. package/dist/markdown/help.js.map +1 -0
  220. package/dist/markdown/html.js +17 -0
  221. package/dist/markdown/html.js.map +1 -0
  222. package/dist/markdown/parseMarkdown.d.ts +10 -0
  223. package/dist/markdown/parseMarkdown.d.ts.map +1 -0
  224. package/dist/markdown/parseMarkdown.js +31 -0
  225. package/dist/markdown/parseMarkdown.js.map +1 -0
  226. package/dist/markdown/styles.js +55 -0
  227. package/dist/markdown/styles.js.map +1 -0
  228. package/dist/markdown/theme/markdownTheme.js +143 -0
  229. package/dist/markdown/theme/markdownTheme.js.map +1 -0
  230. package/dist/markdown/types.d.ts +56 -0
  231. package/dist/markdown/types.d.ts.map +1 -0
  232. package/dist/markdown/types.js +5 -0
  233. package/dist/markdown/types.js.map +1 -0
  234. package/dist/methods/CustomThemeProvider.js +14 -0
  235. package/dist/methods/CustomThemeProvider.js.map +1 -0
  236. package/dist/methods/getMainTheme.js +30 -0
  237. package/dist/methods/getMainTheme.js.map +1 -0
  238. package/dist/methods/injectStyles.d.ts +34 -0
  239. package/dist/methods/injectStyles.d.ts.map +1 -0
  240. package/dist/methods/injectStyles.js +10 -0
  241. package/dist/methods/injectStyles.js.map +1 -0
  242. package/dist/methods/makeStyledComponent.d.ts +29 -0
  243. package/dist/methods/makeStyledComponent.d.ts.map +1 -0
  244. package/dist/methods/makeStyledComponent.js +39 -0
  245. package/dist/methods/makeStyledComponent.js.map +1 -0
  246. package/dist/methods/spacingLayout/index.d.ts +23 -0
  247. package/dist/methods/spacingLayout/index.d.ts.map +1 -0
  248. package/dist/methods/spacingLayout/index.js +29 -0
  249. package/dist/methods/spacingLayout/index.js.map +1 -0
  250. package/dist/methods/useMainTheme.d.ts +8 -0
  251. package/dist/methods/useMainTheme.d.ts.map +1 -0
  252. package/dist/methods/useMainTheme.js +45 -0
  253. package/dist/methods/useMainTheme.js.map +1 -0
  254. package/dist/themeuiExports.d.ts +7 -0
  255. package/dist/themeuiExports.d.ts.map +1 -0
  256. package/dist/util/getVariant.d.ts +7 -0
  257. package/dist/util/getVariant.d.ts.map +1 -0
  258. package/dist/util/getVariant.js +6 -0
  259. package/dist/util/getVariant.js.map +1 -0
  260. package/dist/util.d.ts +43 -0
  261. package/dist/util.d.ts.map +1 -0
  262. package/dist/util.js +34 -0
  263. package/dist/util.js.map +1 -0
  264. package/jsx-runtime/dist/jsx-runtime.d.ts +3 -0
  265. package/jsx-runtime/dist/theme-ui-jsx-runtime.browser.esm.js +2 -0
  266. package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.d.ts +2 -0
  267. package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.d.ts.map +1 -0
  268. package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.dev.js +21 -0
  269. package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.js +7 -0
  270. package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.prod.js +21 -0
  271. package/jsx-runtime/dist/theme-ui-jsx-runtime.esm.js +2 -0
  272. package/jsx-runtime/dist/theme-ui-jsx-runtime.worker.esm.js +2 -0
  273. package/jsx-runtime/package.json +8 -0
  274. package/package.json +42 -38
  275. package/LICENSE.md +0 -21
  276. package/README.md +0 -1
  277. package/cleanDist.json +0 -3
package/dist/index.js CHANGED
@@ -1,4667 +1,26 @@
1
- import tinycolor from 'tinycolor2';
2
- import { cloneDeep, merge } from 'lodash';
3
- import { ThemeUIProvider, useThemeUI, Box, ThemeProvider } from 'theme-ui';
4
- export { Alert, AspectImage, AspectRatio, Avatar, Badge, BaseStyles, Box, Button, Card, Checkbox, Close, CloseIcon, Container, Divider, Donut, Embed, Flex, Global, Grid, Heading, IconButton, Image, InitializeColorMode, Input, Label, Link, MenuButton, MenuIcon, Message, NavLink, Paragraph, Progress, Radio, Select, Slider, Spinner, Switch, Text, Textarea, createElement, css, get, jsx, merge, useColorMode, useThemeUI } from 'theme-ui';
1
+ export { default as applyStatesGetColor } from './base/colors/util/applyStatesGetColor.js';
2
+ export { default as parsePalette } from './base/colors/util/parsePalette.js';
5
3
  export * from '@theme-ui/match-media';
6
- import { EventEmitter, useMount, setValueByPath } from '@apia/util';
7
- import { useState, useRef, useMemo, Suspense } from 'react';
8
- import { spacing as spacing$1 } from '@apia/theme';
9
- import { jsx, Fragment } from 'react/jsx-runtime';
10
-
11
- function defaultLighten(color, ratio) {
12
- return tinycolor(color).lighten(ratio != null ? ratio : 20).toRgbString();
13
- }
14
- function defaultDarken(color, ratio) {
15
- return tinycolor(color).darken(ratio != null ? ratio : 20).toRgbString();
16
- }
17
- function defaultGetContrastText(color) {
18
- const current = tinycolor(color);
19
- return tinycolor.readability("white", current) < tinycolor.readability("black", current) ? "black" : "white";
20
- }
21
- function getValueByPath(obj, path, separator = ".") {
22
- const actualPath = typeof path === "string" ? path.split(separator) : path;
23
- if (typeof obj !== "object" || !obj) {
24
- if (actualPath.length === 0)
25
- return obj;
26
- return void 0;
27
- }
28
- const currentStep = actualPath.shift();
29
- if (actualPath.length === 0)
30
- return obj[currentStep];
31
- return getValueByPath(
32
- obj[currentStep],
33
- actualPath,
34
- separator
35
- );
36
- }
37
-
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) => {
44
- for (var prop in b || (b = {}))
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]);
51
- }
52
- return a;
53
- };
54
- const getColorState = (definition, state, palette) => {
55
- var _a, _b, _c, _d;
56
- if (state === "default")
57
- return palette.buildColorsObject(definition);
58
- const opacity = palette.action[`${state}Opacity`];
59
- const actualState = state === "checked" ? "selected" : state;
60
- definition = Object.fromEntries(
61
- Object.entries(definition).map(([name, value]) => {
62
- if ([
63
- "backgroundColor",
64
- "borderColor",
65
- "borderLeftColor",
66
- "borderRightColor",
67
- "borderBottomColor",
68
- "borderTopColor",
69
- "color"
70
- ].includes(name) && (value != null ? value : "").startsWith("palette"))
71
- value = getValueByPath(
72
- palette,
73
- value.slice("palette.".length)
74
- );
75
- return [name, value];
76
- })
77
- );
78
- const calculatedBackgroundColor = tinycolor.mix(
79
- (_a = definition.backgroundColor) != null ? _a : "",
80
- tinycolor((_b = definition.backgroundColor) != null ? _b : "").isLight() ? palette.action[actualState].light : palette.action[actualState].dark,
81
- 100 * opacity
82
- ).toRgbString();
83
- return palette.buildColorsObject(__spreadValues$t(__spreadValues$t({}, definition.backgroundColor ? {
84
- backgroundColor: state === "checked" ? (_c = definition.backgroundColor) != null ? _c : "" : calculatedBackgroundColor,
85
- color: state === "checked" ? tinycolor.mix(
86
- tinycolor((_d = definition.color) != null ? _d : "black"),
87
- tinycolor(palette.action.selected.dark),
88
- 100 * palette.action.selectedOpacity
89
- ).toRgbString() : palette.getContrastText(calculatedBackgroundColor)
90
- } : null), definition.borderColor ? {
91
- borderColor: tinycolor.mix(
92
- definition.borderColor,
93
- tinycolor(definition.borderColor).isLight() ? palette.action[actualState].light : palette.action[actualState].dark,
94
- 100 * opacity
95
- ).toRgbString()
96
- } : null));
97
- };
98
-
99
- const applyStatesGetColor = (definition, palette, states) => {
100
- const newStates = (states == null ? void 0 : states.default) !== false ? cloneDeep(definition) : {};
101
- if ((states == null ? void 0 : states.active) !== false) {
102
- newStates.active = getColorState(definition, "active", palette);
103
- }
104
- if ((states == null ? void 0 : states.disabled) !== false) {
105
- newStates.disabled = getColorState(definition, "disabled", palette);
106
- }
107
- if ((states == null ? void 0 : states.focus) !== false) {
108
- newStates.focus = getColorState(definition, "focus", palette);
109
- }
110
- if ((states == null ? void 0 : states.hover) !== false) {
111
- newStates.hover = getColorState(definition, "hover", palette);
112
- }
113
- if ((states == null ? void 0 : states.readonly) !== false) {
114
- newStates.readonly = getColorState(definition, "readonly", palette);
115
- }
116
- if ((states == null ? void 0 : states.selected) !== false) {
117
- newStates.selected = getColorState(definition, "selected", palette);
118
- }
119
- if ((states == null ? void 0 : states.checked) !== false) {
120
- newStates.checked = getColorState(definition, "checked", palette);
121
- }
122
- return newStates;
123
- };
124
-
125
- function applyStates(properties, theme, states) {
126
- var _a;
127
- (_a = properties.forEach) == null ? void 0 : _a.call(properties, (def) => {
128
- Object.entries(def).forEach(([key, value]) => {
129
- if (typeof value === "string")
130
- return;
131
- const definition = value;
132
- if (typeof definition !== "string" && !definition.preventParse) {
133
- if (!definition.active)
134
- definition.active = {};
135
- if (!definition.checked)
136
- definition.checked = {};
137
- if (!definition.focus)
138
- definition.focus = {};
139
- if (!definition.disabled)
140
- definition.disabled = {};
141
- if (!definition.hover)
142
- definition.hover = {};
143
- if (!definition.selected)
144
- definition.selected = {};
145
- const newDefinition = applyStatesGetColor(
146
- definition,
147
- theme.palette,
148
- states
149
- );
150
- def[key] = merge(newDefinition, definition);
151
- }
152
- });
153
- });
154
- }
155
-
156
- function isColorDefinition(value) {
157
- return !!value && typeof value === "object" && "main" in value;
158
- }
159
-
160
- const actions = { dark: "#cce5ff", light: "#557" };
161
- const spacingArray = Array(50).fill(1).map((_, i) => {
162
- return responsive$1({
163
- 0: Math.ceil(i / 2.5),
164
- 1: Math.ceil(i / 2.1),
165
- 2: Math.ceil(i / 1.7),
166
- 3: Math.ceil(i / 1.3),
167
- 4: i
168
- });
169
- });
170
- const defaultPalette = {
171
- action: {
172
- disabled: "#d9d9d9",
173
- disabledOpacity: 1,
174
- active: actions,
175
- activeOpacity: 0.45,
176
- focus: actions,
177
- focusOpacity: 0.05,
178
- hover: actions,
179
- hoverOpacity: 0.1,
180
- readonly: actions,
181
- readonlyOpacity: 0.4,
182
- selected: "rgb(204 214 222)",
183
- selectedOpacity: 1
184
- },
185
- background: {
186
- default: "#f4f4f4",
187
- overlay: "rgba(0, 0, 0, 0.2)",
188
- paper: "white"
189
- },
190
- border: {
191
- article: "#cacaca",
192
- field: "#444",
193
- ghost: "#f5f5f5",
194
- section: "#aaa"
195
- },
196
- common: {
197
- black: "black",
198
- white: "white"
199
- },
200
- info: {
201
- main: "#fff"
202
- },
203
- primary: {
204
- main: "#00496c"
205
- },
206
- secondary: {
207
- light: "#fcfcfc",
208
- main: "#6c757d"
209
- },
210
- spacing: (index) => {
211
- return spacingArray[index];
212
- },
213
- text: {
214
- accent: "#609",
215
- disabled: "#555",
216
- icon: "white",
217
- link: "#00496c",
218
- primary: "#4a4a4a",
219
- secondary: "white",
220
- title: "#00496c"
221
- },
222
- error: {
223
- main: "rgb(187,12,15)",
224
- light: "#fff2f4"
225
- },
226
- success: {
227
- main: "#8bde8b",
228
- light: "#e7ffd9"
229
- },
230
- warning: {
231
- main: "#f8f588",
232
- light: "#fffdd9"
233
- },
234
- darkenRatio: 15,
235
- lightenRatio: 35,
236
- responsive: responsive$1,
237
- queryColumnsMultiplier: 2
238
- };
239
-
240
- function responsive$1(values) {
241
- var _a;
242
- const returnArray = [];
243
- const max = 6;
244
- for (let i = 0; i <= max; i++)
245
- returnArray[i + 1] = (_a = values[i]) != null ? _a : null;
246
- if (values.print)
247
- returnArray[0] = values.print;
248
- else {
249
- for (let i = 5; i >= 0; i--) {
250
- if (values[i] !== void 0)
251
- returnArray[0] = values[i];
252
- }
253
- }
254
- return returnArray;
255
- }
256
- function spacing(index) {
257
- var _a;
258
- return (_a = defaultPalette.spacing(index)) != null ? _a : index;
259
- }
260
- const smallButton = {
261
- py: 2,
262
- px: 4,
263
- fontSize: "0.9em"
264
- };
265
- const focusOutline = {
266
- outlineColor: "outlineColor",
267
- outlineWidth: "3px",
268
- outlineStyle: "solid",
269
- outlineOffset: "-3px"
270
- };
271
- function getVariant(variant) {
272
- return { variant, "data-variant": variant };
273
- }
274
-
275
- const buildStateObject = (props, state) => {
276
- switch (state) {
277
- case "active":
278
- return {
279
- "&:active": props,
280
- "input[role]:active ~ &": props,
281
- "input[role]:active ~ & path": props
282
- };
283
- case "checked":
284
- return {
285
- "&:checked": props,
286
- "input[role]:checked ~ &": props,
287
- "input[role]:checked ~ & path": props
288
- };
289
- case "disabled":
290
- return {
291
- "&:disabled": props,
292
- "input[role]:disabled ~ &": props,
293
- "input[role]:disabled ~ & path": props
294
- };
295
- case "focus": {
296
- const focusObject = merge({}, focusOutline, props);
297
- return {
298
- "&:focus": focusObject,
299
- "input[role]:focus ~ &": focusObject
300
- };
301
- }
302
- case "hover": {
303
- return {
304
- '&:hover:not([readonly], :disabled,[aria-selected="true"],:active)': props,
305
- 'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected="true"])': props,
306
- 'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected="true"]) path': props
307
- };
308
- }
309
- case "readonly":
310
- return {
311
- "&[readonly]": props,
312
- "input[role][readonly] ~ &": props,
313
- "input[role][readonly] ~ & path": props,
314
- "&.readonly input ~ &, &.readOnly input ~ &": props,
315
- "&.readonly input ~ & path, &.readOnly input ~ & path": props,
316
- "&.readonly, &.readOnly": props
317
- };
318
- case "selected":
319
- return {
320
- "&:selected": props,
321
- "input[role]:selected ~ &": props,
322
- "input[role]:selected ~ & path": props,
323
- '&[aria-selected="true"]': props
324
- };
325
- default:
326
- return props;
327
- }
328
- };
329
-
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) => {
336
- for (var prop in b || (b = {}))
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]);
343
- }
344
- return a;
345
- };
346
- function buildColorsObject(definition) {
347
- return __spreadValues$s(__spreadValues$s({}, definition), definition.borderColor ? {
348
- borderLeftColor: definition.borderColor,
349
- borderRightColor: definition.borderColor,
350
- borderBottomColor: definition.borderColor,
351
- borderTopColor: definition.borderColor
352
- } : void 0);
353
- }
354
-
355
- function getColorsByPath(path, options) {
356
- return merge(
357
- buildColorsObject({
358
- color: `${path}.color`,
359
- backgroundColor: `${path}.backgroundColor`,
360
- borderColor: `${path}.borderColor`
361
- }),
362
- options == null ? void 0 : options.mergeObject
363
- );
364
- }
365
-
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) => {
372
- for (var prop in b || (b = {}))
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]);
379
- }
380
- return a;
381
- };
382
- function getColorsAndStatesByPath(incomingPath, options) {
383
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
384
- const active = getColorsByPath(`${incomingPath}.active`, options);
385
- const checked = getColorsByPath(`${incomingPath}.checked`, options);
386
- const disabled = __spreadValues$r({
387
- cursor: "not-allowed"
388
- }, getColorsByPath(`${incomingPath}.disabled`, options));
389
- const hover = getColorsByPath(`${incomingPath}.hover`, options);
390
- const focus = ((_a = options == null ? void 0 : options.states) == null ? void 0 : _a.focus) !== false ? getColorsByPath(`${incomingPath}.focus`, options) : {};
391
- const readonly = __spreadValues$r({
392
- cursor: "notAllowed"
393
- }, getColorsByPath(`${incomingPath}.readonly`, options));
394
- const selected = getColorsByPath(`${incomingPath}.selected`, options);
395
- return merge(
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: `currentColor` } } : null),
397
- options == null ? void 0 : options.mergeObject
398
- );
399
- }
400
-
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) => {
407
- for (var prop in b || (b = {}))
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]);
414
- }
415
- return a;
416
- };
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
- "selected"
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
- "disabled"
427
- ) : null), (states == null ? void 0 : states.readonly) !== false ? buildStateObject(
428
- getColorState(definition, "readonly", palette),
429
- "readonly"
430
- ) : null);
431
- };
432
-
433
- const getOneColorState = (color, state, palette) => {
434
- if (typeof color !== "string")
435
- return "";
436
- if (state === "default")
437
- return color;
438
- const actualState = state === "checked" ? "selected" : state;
439
- const opacity = palette.action[`${state}Opacity`];
440
- return tinycolor.mix(
441
- color,
442
- tinycolor(color).isLight() ? palette.action[actualState].light : palette.action[actualState].dark,
443
- 100 * opacity
444
- ).toRgbString();
445
- };
446
-
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) => {
453
- for (var prop in b || (b = {}))
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]);
460
- }
461
- return a;
462
- };
463
- function getColorsByDefinition(definition, options) {
464
- return merge(
465
- buildColorsObject(__spreadValues$p(__spreadValues$p(__spreadValues$p({}, definition.color ? { color: definition.color } : null), definition.backgroundColor ? { backgroundColor: definition.backgroundColor } : null), definition.borderColor ? {
466
- borderColor: definition.borderColor
467
- } : null)),
468
- options == null ? void 0 : options.mergeObject
469
- );
470
- }
471
-
472
- function getColorsAndStatesByDefinition(definition, palette, options) {
473
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
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);
481
- return merge(
482
- ((_b = options == null ? void 0 : options.states) == null ? void 0 : _b.default) !== false ? getColorsByDefinition(definition) : null,
483
- ((_c = options == null ? void 0 : options.states) == null ? void 0 : _c.checked) !== false ? buildStateObject(checked, "checked") : {},
484
- ((_d = options == null ? void 0 : options.states) == null ? void 0 : _d.focus) !== false ? buildStateObject(focus, "focus") : {},
485
- ((_e = options == null ? void 0 : options.states) == null ? void 0 : _e.hover) !== false ? buildStateObject(hover, "hover") : {},
486
- ((_f = options == null ? void 0 : options.states) == null ? void 0 : _f.active) !== false ? buildStateObject(active, "active") : {},
487
- ((_g = options == null ? void 0 : options.states) == null ? void 0 : _g.selected) !== false ? buildStateObject(selected, "selected") : {},
488
- ((_h = options == null ? void 0 : options.states) == null ? void 0 : _h.disabled) !== false ? buildStateObject(disabled, "disabled") : {},
489
- ((_i = options == null ? void 0 : options.states) == null ? void 0 : _i.readonly) !== false ? buildStateObject(readonly, "readonly") : {},
490
- options == null ? void 0 : options.mergeObject
491
- );
492
- }
493
-
494
- function paletteFunction(callback) {
495
- return (...args) => {
496
- const firstParameter = args[0];
497
- let isFirstParameterATheme = false;
498
- const themeProps = [
499
- "fontSizes",
500
- "breakpoints",
501
- "fonts",
502
- "lineHeights",
503
- "letterSpacings",
504
- "radii",
505
- "zIndices",
506
- "useRootStyles"
507
- ];
508
- if (firstParameter instanceof Object && firstParameter !== null) {
509
- const firstParameterKeys = Object.keys(firstParameter);
510
- for (const key of firstParameterKeys) {
511
- if (themeProps.includes(key)) {
512
- isFirstParameterATheme = true;
513
- break;
514
- }
515
- }
516
- }
517
- if (isFirstParameterATheme) ; else {
518
- return callback(...args);
519
- }
520
- };
521
- }
522
- function parsePalette(palette) {
523
- var _a, _b, _c, _d, _e, _f, _g, _h;
524
- const newPalette = cloneDeep(palette);
525
- newPalette.lightenColor = paletteFunction(
526
- (_a = palette.lightenColor) != null ? _a : (color, ratio) => {
527
- return defaultLighten(color, ratio != null ? ratio : palette.lightenRatio);
528
- }
529
- );
530
- newPalette.darkenColor = paletteFunction(
531
- (_b = palette.darkenColor) != null ? _b : (color, ratio) => {
532
- return defaultDarken(color, ratio != null ? ratio : palette.darkenRatio);
533
- }
534
- );
535
- newPalette.getContrastText = paletteFunction(
536
- (_c = palette.getContrastText) != null ? _c : defaultGetContrastText
537
- );
538
- Object.entries(palette).forEach(([key, value]) => {
539
- var _a2, _b2, _c2;
540
- const castedValue = value;
541
- if (isColorDefinition(castedValue)) {
542
- newPalette[key] = {
543
- main: castedValue.main,
544
- light: (_a2 = castedValue.light) != null ? _a2 : newPalette.lightenColor(castedValue.main),
545
- dark: (_b2 = castedValue.dark) != null ? _b2 : newPalette.darkenColor(castedValue.main),
546
- contrastText: (_c2 = castedValue.contrastText) != null ? _c2 : newPalette.getContrastText(castedValue.main)
547
- };
548
- } else {
549
- newPalette[key] = value;
550
- }
551
- });
552
- newPalette.border.article = (_d = newPalette.border.article) != null ? _d : newPalette.secondary.main;
553
- newPalette.border.field = (_e = newPalette.border.field) != null ? _e : newPalette.text.primary;
554
- newPalette.border.section = (_f = newPalette.border.section) != null ? _f : newPalette.primary.main;
555
- function parseAction(action) {
556
- var _a2, _b2;
557
- if (typeof action === "string")
558
- return {
559
- dark: action,
560
- light: action
561
- };
562
- return {
563
- dark: (_a2 = action.dark) != null ? _a2 : action.light,
564
- light: (_b2 = action.light) != null ? _b2 : action.dark
565
- };
566
- }
567
- newPalette.action.active = parseAction(newPalette.action.active);
568
- newPalette.action.disabled = parseAction(newPalette.action.disabled);
569
- newPalette.action.focus = parseAction(newPalette.action.focus);
570
- newPalette.action.hover = parseAction(newPalette.action.hover);
571
- newPalette.action.readonly = parseAction(newPalette.action.readonly);
572
- newPalette.action.selected = parseAction(newPalette.action.selected);
573
- newPalette.gray = (_g = newPalette.gray) != null ? _g : {};
574
- for (let i = 1; i <= 18; i++) {
575
- const index = Math.round((255 - 255 / 18) / 18 * i);
576
- newPalette.gray[i * 50] = (_h = newPalette.gray[i * 50]) != null ? _h : `rgb(${index},${index},${index})`;
577
- }
578
- newPalette.applyStates = paletteFunction(applyStates);
579
- newPalette.buildColorsObject = paletteFunction(buildColorsObject);
580
- newPalette.buildStateObject = paletteFunction(buildStateObject);
581
- newPalette.getColor = paletteFunction(
582
- (color, state) => getOneColorState(color, state, newPalette)
583
- );
584
- newPalette.getStatesForColors = paletteFunction(
585
- (definition, states) => applyStatesGetColor(definition, newPalette, states)
586
- );
587
- newPalette.getOneState = paletteFunction(
588
- (definition, state) => getColorState(definition, state, newPalette)
589
- );
590
- newPalette.getColorStates = paletteFunction(
591
- (definition, state) => getColorStates(definition, newPalette, state)
592
- );
593
- newPalette.getStatesFromDefinition = paletteFunction(
594
- (definition, states) => getColorsAndStatesByDefinition(definition, newPalette, states)
595
- );
596
- newPalette.getStatesFromPath = paletteFunction(getColorsAndStatesByPath);
597
- newPalette.getSelectedColors = paletteFunction(
598
- () => getSelectedColors(newPalette)
599
- );
600
- newPalette.getColorsByPath = paletteFunction(getColorsByPath);
601
- return newPalette;
602
- }
603
-
604
- const schemas = {
605
- ocean: ["#008E1B", "#009155", "#009187", "#008EB1", "#006872", "#2F4858"],
606
- sunset: ["#ae76de", "#D65DB1", "#FF6F91", "#FF9671", "#FFC75F", "#F9F871"],
607
- red: ["#dc143c", "#ff2400", "#800020", "#b22222", "#e52b50", "#ff7f50"],
608
- orange: ["#F76E11", "#FF9F45", "#FFBC80", "#FC4F4F", "#eb9605", "#964000"],
609
- green: ["#a4de02", "#76ba1b", "#4c9a2a", "#acdf87", "#68bb59", "#1e5631"],
610
- blue: ["#7ad6f4", "#45bdee", "#28a7ea", "#006cbb", "#034698", "#032f64"],
611
- violet: ["#80007e", "#a02d9c", "#c37ecd", "#9e5fb8", "#7f3e98", "#4c197f"],
612
- turquoise: ["#0ddbcc", "#43ebff", "#19ceeb", "#28acea", "#388ee9", "#3d76e0"],
613
- yellow: ["#fff700", "#ffff9f", "#fef54f", "#f9e231", "#f6c616", "#eab200"],
614
- grey: ["#b1b5ba", "#d2d5d6", "#dee0e0", "#bdbdbb", "#9fa19c", "#686e67"]
615
- };
616
-
617
- const components$1 = (theme) => {
618
- const palette = theme.palette;
619
- return {
620
- datagrid: {
621
- borderColor: palette.background.paper,
622
- header: {
623
- backgroundColor: palette.background.default,
624
- color: palette.text.primary,
625
- borderColor: theme.palette.darkenColor(palette.border.ghost)
626
- },
627
- body: {
628
- preventParse: true,
629
- backgroundColor: palette.background.paper,
630
- evenRowsBackgroundColor: palette.darkenColor(
631
- palette.background.paper,
632
- 3
633
- ),
634
- color: palette.text.primary,
635
- borderColor: palette.gray["800"],
636
- selectedRows: {
637
- borderColor: palette.gray["800"],
638
- backgroundColor: palette.getOneState(
639
- { backgroundColor: palette.background.paper },
640
- "selected"
641
- ).backgroundColor,
642
- color: palette.getContrastText(
643
- palette.getOneState(
644
- { backgroundColor: palette.background.paper },
645
- "selected"
646
- ).backgroundColor
647
- )
648
- }
649
- }
650
- },
651
- paginationPrimary: {
652
- backgroundColor: palette.primary.main,
653
- icons: {
654
- backgroundColor: palette.primary.main,
655
- borderColor: palette.primary.main,
656
- color: palette.primary.contrastText
657
- },
658
- pagesBox: {
659
- preventParse: true,
660
- backgroundColor: palette.background.paper,
661
- borderColor: palette.border.field,
662
- color: palette.text.primary
663
- }
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
- },
693
- primaryTable: {
694
- borderColor: palette.background.paper,
695
- header: {
696
- backgroundColor: palette.primary.main,
697
- color: palette.text.secondary,
698
- borderColor: palette.primary.main
699
- },
700
- body: {
701
- preventParse: true,
702
- backgroundColor: palette.background.paper,
703
- evenRowsBackgroundColor: palette.darkenColor(
704
- palette.background.paper,
705
- 3
706
- ),
707
- color: palette.text.primary,
708
- borderColor: palette.gray["800"],
709
- selectedRows: {
710
- borderColor: palette.gray["800"],
711
- backgroundColor: palette.getOneState(
712
- { backgroundColor: palette.background.paper },
713
- "selected"
714
- ).backgroundColor,
715
- color: palette.getContrastText(
716
- palette.getOneState(
717
- { backgroundColor: palette.background.paper },
718
- "selected"
719
- ).backgroundColor
720
- )
721
- }
722
- }
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.secondary.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
- },
757
- secondaryTable: {
758
- borderColor: palette.background.paper,
759
- header: {
760
- backgroundColor: palette.background.default,
761
- color: palette.text.primary,
762
- borderColor: palette.background.default
763
- },
764
- body: {
765
- preventParse: true,
766
- backgroundColor: palette.background.paper,
767
- evenRowsBackgroundColor: palette.darkenColor(
768
- palette.background.paper,
769
- 3
770
- ),
771
- color: palette.text.primary,
772
- borderColor: palette.gray["800"],
773
- selectedRows: {
774
- borderColor: palette.gray["800"],
775
- backgroundColor: palette.getOneState(
776
- { backgroundColor: palette.background.paper },
777
- "selected"
778
- ).backgroundColor,
779
- color: palette.getContrastText(
780
- palette.getOneState(
781
- { backgroundColor: palette.background.paper },
782
- "selected"
783
- ).backgroundColor
784
- )
785
- }
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
- }
808
- },
809
- desktop: {
810
- windowHeader: tinycolor(theme.palette.primary.main).setAlpha(0.8).toRgbString()
811
- }
812
- };
813
- };
814
-
815
- var __defProp$o = Object.defineProperty;
816
- var __defProps$e = Object.defineProperties;
817
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
818
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
819
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
820
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
821
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
822
- var __spreadValues$o = (a, b) => {
823
- for (var prop in b || (b = {}))
824
- if (__hasOwnProp$o.call(b, prop))
825
- __defNormalProp$o(a, prop, b[prop]);
826
- if (__getOwnPropSymbols$o)
827
- for (var prop of __getOwnPropSymbols$o(b)) {
828
- if (__propIsEnum$o.call(b, prop))
829
- __defNormalProp$o(a, prop, b[prop]);
830
- }
831
- return a;
832
- };
833
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
834
- const white = "white";
835
- function getSelectedColors(palette) {
836
- return palette.getColorStates(
837
- {
838
- backgroundColor: palette.background.paper,
839
- color: palette.text.primary
840
- },
841
- {
842
- active: false,
843
- checked: false,
844
- default: false,
845
- disabled: false,
846
- focus: false,
847
- readonly: false
848
- }
849
- );
850
- }
851
- function getThemeColorsObject(theme) {
852
- var _a, _b;
853
- const colors = merge(
854
- {},
855
- {
856
- palette: __spreadProps$e(__spreadValues$o({}, theme.palette), {
857
- lightenColor: void 0,
858
- darkenColor: void 0,
859
- getContrastText: void 0,
860
- buildStateObject: void 0,
861
- getColor: void 0,
862
- getOneState: void 0,
863
- getStatesForColors: void 0,
864
- getStatesFromDefinition: void 0,
865
- getStatesFromPath: void 0
866
- }),
867
- accordion: {
868
- borderColor: theme.palette.border.section
869
- },
870
- buttons: {
871
- accordion: {
872
- backgroundColor: theme.palette.primary.main,
873
- borderColor: theme.palette.border.section,
874
- color: theme.palette.primary.contrastText
875
- },
876
- accordionPrimary: {
877
- backgroundColor: theme.palette.primary.main,
878
- borderColor: theme.palette.border.section,
879
- color: theme.palette.primary.contrastText
880
- },
881
- close: __spreadProps$e(__spreadValues$o({}, applyStatesGetColor(
882
- {
883
- color: theme.palette.text.primary,
884
- backgroundColor: theme.palette.background.paper
885
- },
886
- theme.palette
887
- )), {
888
- backgroundColor: "transparent"
889
- }),
890
- collapsibleAsidePanelTitle: {
891
- color: theme.palette.text.primary
892
- },
893
- deletableInputButton: __spreadProps$e(__spreadValues$o({}, applyStatesGetColor(
894
- {
895
- backgroundColor: "transparent",
896
- color: theme.palette.secondary.main
897
- },
898
- theme.palette
899
- )), {
900
- active: {
901
- color: theme.palette.darkenColor(theme.palette.secondary.main, 40)
902
- },
903
- disabled: {
904
- color: theme.palette.secondary.main
905
- },
906
- focus: {
907
- color: theme.palette.darkenColor(theme.palette.secondary.main, 20)
908
- },
909
- hover: {
910
- color: theme.palette.darkenColor(theme.palette.secondary.main, 20)
911
- }
912
- }),
913
- icon: {
914
- backgroundColor: theme.palette.secondary.main,
915
- color: theme.palette.text.icon,
916
- hover: {
917
- color: theme.palette.secondary.contrastText
918
- },
919
- focus: {
920
- color: theme.palette.secondary.contrastText
921
- }
922
- },
923
- iconAlert: {
924
- backgroundColor: "transparent",
925
- color: theme.palette.text.icon,
926
- active: {
927
- backgroundColor: "transparent",
928
- color: tinycolor("#e5c200").darken(10).toRgbString()
929
- },
930
- focus: {
931
- backgroundColor: "transparent",
932
- color: tinycolor("#e5c200").darken(5).toRgbString()
933
- },
934
- hover: {
935
- backgroundColor: "transparent",
936
- color: tinycolor("#e5c200").darken(5).toRgbString()
937
- }
938
- },
939
- iconPrimary: {
940
- backgroundColor: theme.palette.primary.main,
941
- color: theme.palette.primary.contrastText,
942
- active: {
943
- color: theme.palette.primary.contrastText
944
- },
945
- focus: {
946
- color: theme.palette.primary.contrastText
947
- },
948
- hover: {
949
- color: theme.palette.primary.contrastText
950
- },
951
- disabled: {
952
- color: theme.palette.gray["500"]
953
- }
954
- },
955
- iconToggled: {
956
- backgroundColor: theme.palette.primary.main,
957
- color: theme.palette.primary.contrastText,
958
- active: {
959
- color: theme.palette.primary.contrastText
960
- },
961
- focus: {
962
- color: theme.palette.common.white
963
- },
964
- hover: {
965
- color: theme.palette.common.white
966
- }
967
- },
968
- iconOutline: {
969
- backgroundColor: theme.palette.background.paper,
970
- color: theme.palette.primary.main,
971
- borderColor: theme.palette.border.article
972
- },
973
- imagePreview: {
974
- backgroundColor: theme.palette.background.paper,
975
- color: theme.palette.text.primary,
976
- borderColor: theme.palette.border.article
977
- },
978
- link: {
979
- backgroundColor: "transparent",
980
- color: theme.palette.text.primary,
981
- borderColor: "transparent",
982
- active: {
983
- color: theme.palette.text.primary
984
- },
985
- focus: {
986
- color: theme.palette.text.primary
987
- },
988
- hover: {
989
- color: theme.palette.text.primary
990
- }
991
- },
992
- openTab: {
993
- backgroundColor: theme.palette.primary.main,
994
- color: theme.palette.primary.contrastText,
995
- borderColor: theme.palette.primary.dark
996
- },
997
- outline: {
998
- backgroundColor: theme.palette.background.paper,
999
- color: theme.palette.text.primary,
1000
- borderColor: theme.palette.primary.main
1001
- },
1002
- outlineDanger: {
1003
- backgroundColor: theme.palette.background.paper,
1004
- color: theme.palette.text.primary,
1005
- borderColor: theme.palette.primary.main,
1006
- active: {
1007
- borderColor: theme.palette.darkenColor(
1008
- theme.palette.error.dark,
1009
- theme.palette.action.activeOpacity * 80
1010
- ),
1011
- backgroundColor: theme.palette.darkenColor(
1012
- theme.palette.error.dark,
1013
- theme.palette.action.activeOpacity * 80
1014
- ),
1015
- color: theme.palette.getContrastText(
1016
- theme.palette.darkenColor(
1017
- theme.palette.error.dark,
1018
- theme.palette.action.activeOpacity * 80
1019
- )
1020
- )
1021
- },
1022
- focus: {
1023
- borderColor: theme.palette.darkenColor(
1024
- theme.palette.error.dark,
1025
- theme.palette.action.focusOpacity * 60
1026
- ),
1027
- backgroundColor: theme.palette.darkenColor(
1028
- theme.palette.error.dark,
1029
- theme.palette.action.focusOpacity * 60
1030
- ),
1031
- color: theme.palette.getContrastText(
1032
- theme.palette.darkenColor(
1033
- theme.palette.error.dark,
1034
- theme.palette.action.focusOpacity * 60
1035
- )
1036
- )
1037
- },
1038
- hover: {
1039
- borderColor: theme.palette.darkenColor(
1040
- theme.palette.error.dark,
1041
- theme.palette.action.hoverOpacity * 10
1042
- ),
1043
- backgroundColor: theme.palette.darkenColor(
1044
- theme.palette.error.dark,
1045
- theme.palette.action.hoverOpacity * 10
1046
- ),
1047
- color: theme.palette.getContrastText(
1048
- theme.palette.darkenColor(
1049
- theme.palette.error.dark,
1050
- theme.palette.action.hoverOpacity * 10
1051
- )
1052
- )
1053
- }
1054
- },
1055
- outlineWarning: {
1056
- backgroundColor: theme.palette.background.paper,
1057
- color: theme.palette.text.primary,
1058
- borderColor: theme.palette.primary.main,
1059
- active: {
1060
- borderColor: theme.palette.warning.main,
1061
- backgroundColor: theme.palette.warning.main,
1062
- color: theme.palette.warning.contrastText
1063
- },
1064
- focus: {
1065
- borderColor: theme.palette.warning.main,
1066
- backgroundColor: theme.palette.warning.main,
1067
- color: theme.palette.warning.contrastText
1068
- },
1069
- hover: {
1070
- borderColor: theme.palette.warning.main,
1071
- backgroundColor: theme.palette.warning.main,
1072
- color: theme.palette.warning.contrastText
1073
- }
1074
- },
1075
- paper: {
1076
- backgroundColor: theme.palette.background.paper,
1077
- color: theme.palette.text.primary,
1078
- borderColor: theme.palette.background.paper
1079
- },
1080
- primary: {
1081
- backgroundColor: theme.palette.primary.main,
1082
- color: theme.palette.primary.contrastText,
1083
- borderColor: theme.palette.primary.main
1084
- },
1085
- secondary: {
1086
- backgroundColor: theme.palette.secondary.main,
1087
- color: theme.palette.secondary.contrastText,
1088
- borderColor: theme.palette.secondary.main
1089
- },
1090
- tab: {
1091
- backgroundColor: theme.palette.background.paper,
1092
- color: theme.palette.text.primary,
1093
- borderColor: theme.palette.border.article
1094
- },
1095
- toggleIcon: {
1096
- color: theme.palette.secondary.contrastText,
1097
- backgroundColor: theme.palette.secondary.main,
1098
- borderColor: theme.palette.border.field,
1099
- danger: {
1100
- backgroundColor: theme.palette.error.main,
1101
- borderColor: theme.palette.border.field,
1102
- color: theme.palette.error.contrastText
1103
- },
1104
- toggled: {
1105
- backgroundColor: theme.palette.primary.main,
1106
- borderColor: theme.palette.border.field,
1107
- color: theme.palette.primary.contrastText
1108
- }
1109
- },
1110
- transparentIcon: {
1111
- backgroundColor: "transparent",
1112
- color: theme.palette.text.primary,
1113
- hover: {
1114
- color: theme.palette.primary.main
1115
- },
1116
- focus: {
1117
- color: theme.palette.primary.main
1118
- }
1119
- }
1120
- },
1121
- components: components$1(theme),
1122
- dropzone: {
1123
- backgroundColor: theme.palette.background.paper,
1124
- borderColor: theme.palette.border.section,
1125
- color: theme.palette.background.default
1126
- },
1127
- form: {
1128
- backgroundColor: theme.palette.background.paper,
1129
- fields: {
1130
- backgroundColor: theme.palette.background.paper,
1131
- color: theme.palette.text.primary,
1132
- borderColor: theme.palette.border.field
1133
- },
1134
- radio: {
1135
- backgroundColor: "transparent",
1136
- color: tinycolor(theme.palette.text.primary).lighten(15).toRgbString(),
1137
- borderColor: theme.palette.text.primary,
1138
- active: {
1139
- backgroundColor: "transparent",
1140
- color: tinycolor(theme.palette.text.primary).lighten(0).toRgbString()
1141
- },
1142
- checked: {
1143
- backgroundColor: "transparent",
1144
- color: tinycolor(theme.palette.text.primary).lighten(15).toRgbString()
1145
- },
1146
- disabled: {
1147
- backgroundColor: "transparent",
1148
- color: tinycolor(theme.palette.text.primary).lighten(55).toRgbString()
1149
- },
1150
- hover: {
1151
- backgroundColor: "transparent",
1152
- color: tinycolor(theme.palette.text.primary).lighten(7).toRgbString()
1153
- },
1154
- readonly: {
1155
- color: tinycolor(theme.palette.text.primary).lighten(38).toRgbString(),
1156
- backgroundColor: "transparent"
1157
- }
1158
- }
1159
- },
1160
- modal: {
1161
- borderColor: theme.palette.border.section,
1162
- backgroundColor: theme.palette.background.paper
1163
- },
1164
- notifications: {
1165
- error: {
1166
- backgroundColor: theme.palette.error.light,
1167
- color: theme.palette.getContrastText(theme.palette.error.light),
1168
- borderColor: theme.palette.error.main
1169
- },
1170
- success: {
1171
- backgroundColor: theme.palette.success.light,
1172
- color: theme.palette.getContrastText(theme.palette.success.light),
1173
- borderColor: theme.palette.success.main
1174
- },
1175
- warning: {
1176
- backgroundColor: theme.palette.warning.light,
1177
- color: theme.palette.getContrastText(theme.palette.warning.light),
1178
- borderColor: theme.palette.warning.main
1179
- }
1180
- },
1181
- printView: {
1182
- main: {
1183
- backgroundColor: theme.palette.background.default,
1184
- page: {
1185
- backgroundColor: theme.palette.background.paper,
1186
- borderColor: theme.palette.border.article
1187
- }
1188
- },
1189
- list: {
1190
- table: {
1191
- borderColor: theme.palette.border.section
1192
- },
1193
- th: { backgroundColor: "#eee" },
1194
- cell: {
1195
- borderColor: theme.palette.border.article
1196
- }
1197
- }
1198
- },
1199
- schemas,
1200
- scrollbars: {
1201
- bar: {
1202
- color: theme.palette.secondary.main,
1203
- backgroundColor: theme.palette.background.default,
1204
- hover: {
1205
- backgroundColor: theme.palette.lightenColor(
1206
- theme.palette.background.default,
1207
- 10
1208
- ),
1209
- color: theme.palette.lightenColor(theme.palette.secondary.main, 10)
1210
- },
1211
- active: {
1212
- backgroundColor: theme.palette.lightenColor(
1213
- theme.palette.background.default,
1214
- 10
1215
- ),
1216
- color: theme.palette.lightenColor(theme.palette.secondary.main, 20)
1217
- }
1218
- }
1219
- },
1220
- tab: {
1221
- backgroundColor: theme.palette.background.paper,
1222
- borderColor: theme.palette.border.section
1223
- },
1224
- topBar: {
1225
- backgroundColor: theme.palette.primary.main
1226
- },
1227
- // Default ThemeUI colors
1228
- accent: theme.palette.text.accent,
1229
- background: theme.palette.background.default,
1230
- iconWarning: "rgb(246 222 87)",
1231
- muted: theme.palette.text.disabled,
1232
- primary: theme.palette.primary.main,
1233
- secondary: theme.palette.secondary.main,
1234
- text: theme.palette.text.primary,
1235
- warning: theme.palette.warning.main,
1236
- danger: theme.palette.error.main,
1237
- link: theme.palette.text.accent,
1238
- success: theme.palette.success.main,
1239
- title: theme.palette.text.title,
1240
- selected: theme.palette.getOneState(
1241
- { backgroundColor: theme.palette.background.paper },
1242
- "selected"
1243
- ).backgroundColor,
1244
- acquiredColor: "#2b2bd0",
1245
- acquiredColorDisabled: "#7f7fd4",
1246
- // Borders
1247
- outlineColor: "#00a8f6",
1248
- touchedBorderColor: "orange",
1249
- // Other colors
1250
- favorite: "#e5c200",
1251
- // States
1252
- overdueDanger: "rgb(189, 0, 3)",
1253
- overdueWarning: "hsl(50.53deg 100% 26.06%)",
1254
- overdueWarningBackground: "#fffdd7",
1255
- priorityNone: "gray",
1256
- priorityLow: theme.palette.success.main,
1257
- priorityNormal: "rgb(255 211 34)",
1258
- priorityHigh: "rgb(255 150 0)",
1259
- priorityUrgent: "red",
1260
- // Common
1261
- white
1262
- },
1263
- (_a = theme.colors) != null ? _a : {}
1264
- );
1265
- applyStates(
1266
- [
1267
- colors == null ? void 0 : colors.buttons,
1268
- colors == null ? void 0 : colors.form,
1269
- colors == null ? void 0 : colors.components
1270
- ],
1271
- theme
1272
- );
1273
- Object.entries((_b = colors.components) != null ? _b : {}).forEach(([name]) => {
1274
- applyStates([colors.components[name]], theme);
1275
- });
1276
- return colors;
1277
- }
1278
-
1279
- var __defProp$n = Object.defineProperty;
1280
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1281
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1282
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1283
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1284
- var __spreadValues$n = (a, b) => {
1285
- for (var prop in b || (b = {}))
1286
- if (__hasOwnProp$n.call(b, prop))
1287
- __defNormalProp$n(a, prop, b[prop]);
1288
- if (__getOwnPropSymbols$n)
1289
- for (var prop of __getOwnPropSymbols$n(b)) {
1290
- if (__propIsEnum$n.call(b, prop))
1291
- __defNormalProp$n(a, prop, b[prop]);
1292
- }
1293
- return a;
1294
- };
1295
- const alerts = {
1296
- primary: {
1297
- border: "1px solid",
1298
- borderLeft: "12px solid",
1299
- borderRadius: "alerts",
1300
- display: "flex",
1301
- flexDirection: "column",
1302
- fontWeight: "normal",
1303
- maxHeight: "60vh",
1304
- overflow: "auto",
1305
- p: 0,
1306
- "&:focus": {
1307
- outline: "none"
1308
- },
1309
- ".notification__header": {
1310
- display: "flex",
1311
- alignItems: "center",
1312
- justifyContent: "space-between",
1313
- position: "sticky",
1314
- top: 0,
1315
- width: "100%",
1316
- p: spacing(5)
1317
- },
1318
- ".notification__title": {
1319
- fontSize: 18,
1320
- fontWeight: "bold",
1321
- color: "palette.text.primary",
1322
- display: "flex",
1323
- gap: spacing(5),
1324
- alignItems: "center"
1325
- },
1326
- ".notification__closeButton": {
1327
- flexShrink: 0
1328
- },
1329
- ".notification__body": {
1330
- alignItems: "center",
1331
- display: "flex",
1332
- flexDirection: "row",
1333
- gap: spacing(5),
1334
- width: "100%",
1335
- p: spacing(5)
1336
- },
1337
- ".notification__header ~ .notification__body": {
1338
- pt: 0
1339
- },
1340
- ".notification__content": {
1341
- display: "flex",
1342
- alignItems: "stretch",
1343
- flexDirection: "column",
1344
- gap: spacing(5),
1345
- width: "100%"
1346
- },
1347
- ".notification__icon": {
1348
- flexShrink: 0,
1349
- height: "iconMd",
1350
- svg: {
1351
- height: "iconMd",
1352
- width: "iconMd"
1353
- }
1354
- },
1355
- ".notification__message": {
1356
- display: "flex",
1357
- flexDirection: "column",
1358
- fontWeight: "normal",
1359
- gap: spacing(3),
1360
- width: "100%",
1361
- wordBreak: "break-word",
1362
- ul: {
1363
- listStyle: "disc",
1364
- ml: "20px"
1365
- }
1366
- },
1367
- ".notification__trace": {
1368
- maxWidth: "100%",
1369
- overflow: "hidden",
1370
- maxHeight: "30vh",
1371
- flexShrink: 0,
1372
- backgroundColor: "rgba(10,10,10,0.02)",
1373
- pt: spacing(5),
1374
- display: "flex",
1375
- flexDirection: "column",
1376
- ".notification__traceLabel": {
1377
- pl: spacing(5),
1378
- display: "flex",
1379
- gap: 2
1380
- },
1381
- ".notification__traceText": {
1382
- fontWeight: "normal",
1383
- p: spacing(5),
1384
- maxHeight: "30vh",
1385
- overflow: "auto",
1386
- maxWidth: "100%",
1387
- position: "relative"
1388
- }
1389
- },
1390
- "&:focus .notification__closeButton": focusOutline
1391
- },
1392
- warning: {
1393
- variant: "alerts.primary",
1394
- "&, & .notification__header": __spreadValues$n({}, getColorsByPath("notifications.warning"))
1395
- },
1396
- danger: {
1397
- variant: "alerts.primary",
1398
- "&, & .notification__header": __spreadValues$n({}, getColorsByPath("notifications.error"))
1399
- },
1400
- success: {
1401
- variant: "alerts.primary",
1402
- "&, & .notification__header": __spreadValues$n({}, getColorsByPath("notifications.success"))
1403
- }
1404
- };
1405
-
1406
- var __defProp$m = Object.defineProperty;
1407
- var __defProps$d = Object.defineProperties;
1408
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1409
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1410
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1411
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1412
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1413
- var __spreadValues$m = (a, b) => {
1414
- for (var prop in b || (b = {}))
1415
- if (__hasOwnProp$m.call(b, prop))
1416
- __defNormalProp$m(a, prop, b[prop]);
1417
- if (__getOwnPropSymbols$m)
1418
- for (var prop of __getOwnPropSymbols$m(b)) {
1419
- if (__propIsEnum$m.call(b, prop))
1420
- __defNormalProp$m(a, prop, b[prop]);
1421
- }
1422
- return a;
1423
- };
1424
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1425
- const buttons = {
1426
- inherit: {
1427
- color: "inherit",
1428
- background: "inherit",
1429
- border: "none",
1430
- borderRadius: 0,
1431
- font: "inherit",
1432
- cursor: "pointer",
1433
- padding: 0,
1434
- margin: 0
1435
- },
1436
- collapsibleAsidePanelTitle: __spreadValues$m({
1437
- variant: "buttons.inherit",
1438
- display: "flex",
1439
- justifyContent: "space-between",
1440
- alignItems: "center",
1441
- width: "100%"
1442
- }, getColorsAndStatesByPath("buttons.collapsibleAsidePanelTitle")),
1443
- primary: __spreadProps$d(__spreadValues$m({
1444
- borderWidth: "2px",
1445
- borderStyle: "solid",
1446
- variant: "text.default",
1447
- py: responsive$1({ 0: 3, 4: 4 }),
1448
- px: responsive$1({ 0: 5, 4: 6 }),
1449
- display: "inline-block",
1450
- width: responsive$1({ 0: "100%", 1: "auto" }),
1451
- cursor: "pointer",
1452
- borderRadius: "buttons",
1453
- fontWeight: "normal",
1454
- userSelect: "none",
1455
- transition: "background-color 300ms ease-out, color 300ms ease-out",
1456
- wordBreak: "keep-all"
1457
- }, getColorsAndStatesByPath("buttons.primary")), {
1458
- "&:focus, &:focus-visible": {
1459
- outlineColor: "#00daff"
1460
- }
1461
- }),
1462
- "primary-sm": __spreadValues$m({
1463
- variant: "buttons.primary",
1464
- "&:focus, &:focus-visible": {}
1465
- }, smallButton),
1466
- secondary: __spreadValues$m({
1467
- variant: "buttons.primary",
1468
- "&:focus, &:focus-visible": {},
1469
- borderWidth: "0px",
1470
- borderStyle: "solid"
1471
- }, getColorsAndStatesByPath("buttons.secondary")),
1472
- "secondary-sm": __spreadValues$m({
1473
- variant: "buttons.secondary"
1474
- }, smallButton),
1475
- "light-secondary": __spreadValues$m({
1476
- variant: "buttons.secondary"
1477
- }, getColorsAndStatesByPath("buttons.lightSecondary")),
1478
- danger: __spreadValues$m({
1479
- variant: "buttons.primary",
1480
- "&:focus, &:focus-visible": {}
1481
- }, getColorsAndStatesByPath("buttons.danger")),
1482
- "danger-sm": __spreadValues$m({
1483
- variant: "buttons.danger"
1484
- }, smallButton),
1485
- warning: __spreadValues$m({
1486
- variant: "buttons.primary",
1487
- "&:focus, &:focus-visible": {}
1488
- }, getColorsAndStatesByPath("buttons.warning")),
1489
- "warning-sm": __spreadValues$m({
1490
- variant: "buttons.warning"
1491
- }, smallButton),
1492
- close: __spreadValues$m({
1493
- cursor: "pointer",
1494
- ml: "auto",
1495
- mr: "2",
1496
- borderRadius: "buttons"
1497
- }, getColorsAndStatesByPath("buttons.close")),
1498
- accordion: {
1499
- variant: "buttons.primary",
1500
- "&:focus, &:focus-visible": {},
1501
- cursor: "pointer",
1502
- m: spacing(0),
1503
- py: responsive$1({ 0: 3, 4: 4 }),
1504
- px: responsive$1({ 0: 5, 4: 6 }),
1505
- width: "100%",
1506
- display: "flex",
1507
- alignItems: "center",
1508
- justifyContent: "space-between",
1509
- borderRadius: "buttons",
1510
- textAlign: "left",
1511
- fontFamily: "heading",
1512
- fontSize: "text.default",
1513
- textDecoration: "none",
1514
- textTransform: "none",
1515
- fontWeight: "bold",
1516
- border: "none",
1517
- transition: "background-color 300ms ease-out, color 300ms ease-out",
1518
- userSelect: "text",
1519
- "&, *": getColorsAndStatesByPath("buttons.accordion"),
1520
- "h2.toggleAccordionElementLabel": {
1521
- variant: "text.default",
1522
- color: "inherit",
1523
- margin: 0,
1524
- wordBreak: "break-word"
1525
- }
1526
- },
1527
- "accordion-primary": __spreadValues$m({
1528
- variant: "buttons.accordion",
1529
- border: "none"
1530
- }, getColorsAndStatesByPath("buttons.accordionPrimary")),
1531
- icon: __spreadProps$d(__spreadValues$m({
1532
- display: "flex",
1533
- justifyContent: "center",
1534
- alignItems: "center",
1535
- p: spacing(0),
1536
- m: spacing(0),
1537
- bg: "secondary",
1538
- cursor: "pointer",
1539
- transition: "background-color 300ms ease-out, color 300ms ease-out",
1540
- borderRadius: "buttons",
1541
- border: "none",
1542
- color: "inherit"
1543
- }, getColorsAndStatesByPath("buttons.icon")), {
1544
- "&.isToggled": __spreadValues$m({}, getColorsAndStatesByPath("buttons.iconToggled"))
1545
- }),
1546
- "icon-primary": __spreadValues$m({
1547
- variant: "buttons.icon"
1548
- }, getColorsAndStatesByPath("buttons.iconPrimary")),
1549
- "icon-outline": __spreadValues$m({
1550
- variant: "buttons.icon",
1551
- bg: "white",
1552
- border: "1px solid",
1553
- borderRadius: "4px"
1554
- }, getColorsAndStatesByPath("buttons.iconOutline")),
1555
- "icon-outline-danger": __spreadValues$m({
1556
- variant: "buttons.icon",
1557
- border: "1px solid"
1558
- }, getColorsAndStatesByPath("buttons.outlineDanger")),
1559
- "icon-only": __spreadValues$m({
1560
- variant: "buttons.icon"
1561
- }, getColorsAndStatesByPath("buttons.iconOnly")),
1562
- link: __spreadValues$m({
1563
- variant: "inherit",
1564
- width: "auto",
1565
- border: "none",
1566
- background: "transparent",
1567
- textDecoration: "underline",
1568
- px: 2,
1569
- py: 1,
1570
- borderRadius: "buttons",
1571
- cursor: "pointer",
1572
- textTransform: "none",
1573
- transition: "background-color 300ms ease-out, color 300ms ease-out"
1574
- }, getColorsAndStatesByPath("buttons.link")),
1575
- "link-sm": __spreadValues$m({
1576
- variant: "buttons.link"
1577
- }, smallButton),
1578
- outline: __spreadValues$m({
1579
- variant: "buttons.primary",
1580
- borderWidth: "2px",
1581
- borderStyle: "solid",
1582
- borderRadius: "buttons",
1583
- "&:focus, &:focus-visible": {}
1584
- }, getColorsAndStatesByPath("buttons.outline", {
1585
- states: {
1586
- active: false,
1587
- checked: false,
1588
- disabled: false,
1589
- focus: false,
1590
- hover: false,
1591
- readonly: false,
1592
- selected: false
1593
- }
1594
- })),
1595
- "outline-sm": __spreadValues$m({
1596
- variant: "buttons.outline"
1597
- }, smallButton),
1598
- "transparent-sm": __spreadValues$m({
1599
- variant: "buttons.outline",
1600
- "&:focus, &:focus-visible": {},
1601
- bg: "transparent",
1602
- color: "inherit",
1603
- border: "none",
1604
- font: "inherit",
1605
- textTransform: "inherit"
1606
- }, smallButton),
1607
- "outline-danger": __spreadValues$m({
1608
- variant: "buttons.outline",
1609
- "&:focus, &:focus-visible": {}
1610
- }, getColorsAndStatesByPath("buttons.outlineDanger")),
1611
- "outline-danger-sm": __spreadValues$m({
1612
- variant: "buttons.outline-danger"
1613
- }, smallButton),
1614
- "outline-warning": __spreadValues$m({
1615
- variant: "buttons.outline",
1616
- "&:focus, &:focus-visible": {}
1617
- }, getColorsAndStatesByPath("buttons.outlineWarning")),
1618
- "outline-warning-sm": __spreadValues$m({
1619
- variant: "buttons.outline-warning"
1620
- }, smallButton),
1621
- "outline-extended": {
1622
- variant: "buttons.outline",
1623
- gridColumnStart: 1,
1624
- gridColumnEnd: 3,
1625
- width: "100%"
1626
- },
1627
- "outline-danger-extended": {
1628
- variant: "buttons.outline-danger",
1629
- gridColumnStart: 1,
1630
- gridColumnEnd: 3,
1631
- width: "100%"
1632
- },
1633
- "primary-extended": {
1634
- variant: "buttons.primary",
1635
- "&:focus, &:focus-visible": {},
1636
- gridColumnStart: 1,
1637
- gridColumnEnd: 3,
1638
- width: "100%"
1639
- },
1640
- query: {
1641
- extended: {
1642
- variant: "buttons.outline",
1643
- "&:focus, &:focus-visible": {},
1644
- gridColumnStart: 1,
1645
- gridColumnEnd: 3
1646
- }
1647
- },
1648
- tableAccordion: __spreadValues$m({
1649
- variant: "buttons.accordion",
1650
- fontSize: "text.default",
1651
- p: spacing(3),
1652
- wordBreak: "keep-all",
1653
- a: {
1654
- color: "background"
1655
- }
1656
- }, getColorsAndStatesByPath("buttons.tableAccordion")),
1657
- tableHeader: __spreadValues$m({
1658
- variant: "buttons.tableAccordion",
1659
- alignItems: "center",
1660
- justifyContent: "center",
1661
- height: "100%",
1662
- border: "none",
1663
- svg: {
1664
- ml: spacing(2)
1665
- }
1666
- }, getColorsAndStatesByPath("buttons.tableHeader")),
1667
- paper: __spreadValues$m({
1668
- variant: "buttons.primary",
1669
- borderWidth: "2px",
1670
- borderStyle: "solid",
1671
- borderRadius: "buttons"
1672
- }, getColorsAndStatesByPath("buttons.paper")),
1673
- "paper-sm": __spreadValues$m(__spreadValues$m({
1674
- variant: "buttons.primary",
1675
- borderWidth: "2px",
1676
- borderStyle: "solid",
1677
- borderRadius: "buttons"
1678
- }, getColorsAndStatesByPath("buttons.paper")), smallButton)
1679
- };
1680
-
1681
- const text = {
1682
- default: {
1683
- color: "palette.text.primary",
1684
- fontFamily: "body",
1685
- fontWeight: "body",
1686
- fontSize: 16,
1687
- m: spacing(0),
1688
- width: "100%"
1689
- },
1690
- title: {
1691
- letterSpacing: "heading",
1692
- wordBreak: "normal",
1693
- color: "title",
1694
- fontFamily: "heading",
1695
- lineHeight: "heading",
1696
- fontWeight: "heading"
1697
- }
1698
- };
1699
-
1700
- const transitions = {
1701
- "@keyframes growHorizontal": {
1702
- from: { transform: "scaleX(0)" },
1703
- to: { transform: "scaleY(100%)" }
1704
- },
1705
- ".hamburguerMenu": { display: "none" },
1706
- ".hamburguerMenu-enter,\n.hamburguerMenu-appear": {
1707
- display: "block",
1708
- transform: "scale(0.7)",
1709
- opacity: 0
1710
- },
1711
- ".hamburguerMenu-enter-active,\n.hamburguerMenu-appear-active": {
1712
- transform: "translateX(0)",
1713
- transition: "opacity 150ms, transform 150ms",
1714
- transformOrigin: "right top",
1715
- opacity: 1
1716
- },
1717
- ".hamburguerMenu-enter-done,\n.hamburguerMenu-appear-done": {
1718
- display: "block"
1719
- },
1720
- ".hamburguerMenu-exit": {
1721
- display: "block",
1722
- transform: "scale(1)",
1723
- opacity: 1
1724
- },
1725
- ".hamburguerMenu-exit-active": {
1726
- transform: "scale(0.7) translateX(0)",
1727
- transition: "opacity 150ms, transform 150ms",
1728
- display: "block",
1729
- opacity: 0,
1730
- transformOrigin: "right top"
1731
- },
1732
- ".hamburguerMenu-exit-done": { display: "none" },
1733
- ".modal-enter,\n.modal-appear": { opacity: 0, transform: "scale(0.8)" },
1734
- ".modal-enter-active,\n.modal-appear-active": {
1735
- opacity: 1,
1736
- transform: "translateX(0)",
1737
- transition: "opacity 150ms, transform 150ms",
1738
- transitionDelay: "0"
1739
- },
1740
- ".modal-exit": { opacity: 0 },
1741
- ".modal-exit-done": { opacity: 0, display: "none" },
1742
- ".modal-exit-active": {
1743
- opacity: 0,
1744
- transform: "scale(100)",
1745
- transition: "opacity 150ms, transform 150ms",
1746
- transitionDelay: "0"
1747
- },
1748
- ".overlayAnimation-enter .overlayAnimation:not(.not-released),\n.overlayAnimation-appear .overlayAnimation:not(.not-released)": {
1749
- opacity: 0
1750
- },
1751
- ".overlayAnimation-enter-active .overlayAnimation:not(.not-released),\n.overlayAnimation-appear-active .overlayAnimation:not(.not-released)": {
1752
- opacity: 1,
1753
- transition: "opacity 150ms"
1754
- },
1755
- ".overlayAnimation-exit": { opacity: 1 },
1756
- ".overlayAnimation-exit-active": { opacity: 0, transition: "opacity 150ms" },
1757
- ".fromRight-enter,\n.fromRight-appear": { transform: "translateX(550px)" },
1758
- ".fromRight-enter-active,\n.fromRight-appear-active": {
1759
- transition: "transform 150ms",
1760
- transform: "translateX(0)"
1761
- },
1762
- ".fromRight-exit": { transform: "translateX(0)" },
1763
- ".fromRight-exit-active": {
1764
- transition: "transform 150ms",
1765
- transform: "translateX(550px)"
1766
- },
1767
- ".notification-enter,\n.notification-appear": {
1768
- opacity: 0,
1769
- transform: "scale(0.8)"
1770
- },
1771
- ".notification-enter-active,\n.notification-appear-active": {
1772
- opacity: 1,
1773
- transform: "translateX(0)",
1774
- transition: "opacity 150ms, transform 150ms",
1775
- transitionDelay: "0"
1776
- },
1777
- ".notification-exit": { opacity: 1 },
1778
- ".notification-exit-active": {
1779
- opacity: 0,
1780
- transform: "scale(0.8)",
1781
- transition: "opacity 150ms, transform 150ms",
1782
- transitionDelay: "0"
1783
- }
1784
- };
1785
-
1786
- const menu = {
1787
- ".szh-menu": (theme) => ({
1788
- margin: "0",
1789
- padding: "0.5rem 0",
1790
- listStyle: "none",
1791
- boxSizing: "border-box",
1792
- width: "max-content",
1793
- zIndex: "contextMenu",
1794
- border: "1px solid #656565",
1795
- backgroundColor: theme.palette.background.paper,
1796
- userSelect: "none",
1797
- color: theme.palette.text.primary,
1798
- // 'var(--theme-ui-colors-palette-text-primary)',
1799
- borderRadius: "0.25rem",
1800
- boxShadow: "0 3px 7px rgba(0, 0, 0, 0.133), 0 0.6px 2px rgba(0, 0, 0, 0.1)",
1801
- minWidth: "10rem"
1802
- }),
1803
- ".szh-menu__arrow": (theme) => ({
1804
- boxSizing: "border-box",
1805
- width: "0.75rem",
1806
- height: "0.75rem",
1807
- backgroundColor: theme.palette.background.paper,
1808
- border: "1px solid transparent",
1809
- borderLeftColor: "rgba(0, 0, 0, 0.1)",
1810
- borderTopColor: "rgba(0, 0, 0, 0.1)",
1811
- zIndex: -1
1812
- }),
1813
- ".szh-menu__arrow--dir-left": {
1814
- right: "-0.375rem",
1815
- transform: "translateY(-50%) rotate(135deg)"
1816
- },
1817
- ".szh-menu__arrow--dir-right": {
1818
- left: "-0.375rem",
1819
- transform: "translateY(-50%) rotate(-45deg)"
1820
- },
1821
- ".szh-menu__arrow--dir-top": {
1822
- bottom: "-0.375rem",
1823
- transform: "translateX(-50%) rotate(-135deg)"
1824
- },
1825
- ".szh-menu__arrow--dir-bottom": {
1826
- top: "-0.375rem",
1827
- transform: "translateX(-50%) rotate(45deg)"
1828
- },
1829
- ".szh-menu__item": {
1830
- cursor: "pointer",
1831
- display: "flex",
1832
- alignItems: "center",
1833
- position: "relative",
1834
- padding: "0.375rem 1.5rem",
1835
- paddingLeft: "2.2rem",
1836
- "&.withIcon": {
1837
- padding: "0px"
1838
- }
1839
- },
1840
- ".szh-menu__item--hover": (theme) => ({
1841
- backgroundColor: theme.palette.background.default
1842
- }),
1843
- ".szh-menu__item--focusable": {
1844
- cursor: "default"
1845
- },
1846
- ".szh-menu__item--disabled": {
1847
- cursor: "default",
1848
- color: "#ccc"
1849
- },
1850
- ".szh-menu__group": { boxSizing: "border-box" },
1851
- ".szh-menu__radio-group": {
1852
- margin: "0",
1853
- padding: "0",
1854
- listStyle: "none"
1855
- },
1856
- ".szh-menu__divider": {
1857
- height: "1px",
1858
- margin: "0.5rem 0",
1859
- backgroundColor: "rgba(0, 0, 0, 0.12)"
1860
- },
1861
- ".szh-menu-button": { boxSizing: "border-box" },
1862
- ".szh-menu-container--itemTransition .szh-menu__item": {
1863
- transitionProperty: "background-color, color",
1864
- transitionDuration: "0.15s",
1865
- transitionTimingFunction: "ease-in-out"
1866
- },
1867
- ".szh-menu__item--type-radio": { paddingLeft: "2.2rem" },
1868
- ".szh-menu__item--type-radio::before": {
1869
- content: '"\u25CB"',
1870
- position: "absolute",
1871
- left: "0.8rem",
1872
- top: "0.55rem",
1873
- fontSize: "0.8rem"
1874
- },
1875
- ".szh-menu__item--type-radio.szh-menu__item--checked::before": {
1876
- content: '"\u25CF"'
1877
- },
1878
- ".szh-menu__item--type-checkbox": { paddingLeft: "2.2rem" },
1879
- ".szh-menu__item--type-checkbox::before": {
1880
- position: "absolute",
1881
- left: "0.8rem"
1882
- },
1883
- ".szh-menu__item--type-checkbox.szh-menu__item--checked::before": {
1884
- content: '"\u2714"'
1885
- },
1886
- ".szh-menu__submenu>.szh-menu__item": { paddingRight: "2.5rem" },
1887
- ".szh-menu__submenu>.szh-menu__item::after": {
1888
- content: '"\u276F"',
1889
- position: "absolute",
1890
- right: "1rem"
1891
- },
1892
- ".szh-menu__header": {
1893
- color: "#888",
1894
- fontSize: "0.8rem",
1895
- padding: "0.2rem 1.5rem",
1896
- textTransform: "uppercase"
1897
- },
1898
- ".szh-menu__item--anchor,\n.szh-menu__item--anchor:hover,\n.szh-menu__item--anchor:focus,\n.szh-menu__item--anchor:active": (theme) => ({
1899
- paddingLeft: "2.2rem",
1900
- textDecoration: "none",
1901
- color: theme.palette.text.primary
1902
- })
1903
- };
1904
-
1905
- var __defProp$l = Object.defineProperty;
1906
- var __defProps$c = Object.defineProperties;
1907
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1908
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1909
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1910
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1911
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1912
- var __spreadValues$l = (a, b) => {
1913
- for (var prop in b || (b = {}))
1914
- if (__hasOwnProp$l.call(b, prop))
1915
- __defNormalProp$l(a, prop, b[prop]);
1916
- if (__getOwnPropSymbols$l)
1917
- for (var prop of __getOwnPropSymbols$l(b)) {
1918
- if (__propIsEnum$l.call(b, prop))
1919
- __defNormalProp$l(a, prop, b[prop]);
1920
- }
1921
- return a;
1922
- };
1923
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1924
- const root = __spreadValues$l(__spreadProps$c(__spreadValues$l({}, menu), {
1925
- height: "100%",
1926
- "*": {
1927
- fontFamily: "body",
1928
- fontWeight: "body",
1929
- code: {
1930
- fontFamily: "monospace"
1931
- },
1932
- "&:focus": focusOutline
1933
- },
1934
- body: {
1935
- minHeight: "100vh"
1936
- },
1937
- h1: {
1938
- fontSize: responsive$1({ 0: 26, 3: 32 })
1939
- },
1940
- h2: {
1941
- fontSize: responsive$1({ 0: 22, 3: 28 })
1942
- },
1943
- h3: {
1944
- fontSize: responsive$1({ 0: 19, 3: 25 })
1945
- },
1946
- h4: {
1947
- fontSize: responsive$1({ 0: 18, 3: 22 })
1948
- },
1949
- h5: {
1950
- fontSize: responsive$1({ 0: 18, 3: 22 })
1951
- },
1952
- h6: {
1953
- fontSize: responsive$1({ 0: 17, 3: 17 })
1954
- },
1955
- "h1,h2,h3,h4,h5,h6": {
1956
- letterSpacing: "heading",
1957
- lineHeight: "heading",
1958
- variant: "text.title"
1959
- },
1960
- "*:not(h1, h2, h3, h4, h5, h6, code)": {
1961
- fontFamily: "body",
1962
- fontSize: 16,
1963
- fontWeight: "body",
1964
- letterSpacing: "body",
1965
- lineHeight: "body"
1966
- },
1967
- a: {
1968
- textDecoration: "underline"
1969
- },
1970
- "textarea,a": {
1971
- transition: "color 200ms ease-out",
1972
- ":focus": __spreadValues$l({}, focusOutline),
1973
- ":focus-visible": __spreadValues$l({}, focusOutline)
1974
- },
1975
- "*:focus": focusOutline,
1976
- ul: {
1977
- listStyle: "none",
1978
- listStyleType: "none",
1979
- margin: 0,
1980
- padding: 0
1981
- },
1982
- abbr: {
1983
- "&.required": {
1984
- textDecoration: "none",
1985
- border: "none",
1986
- mx: 1,
1987
- alignSelf: "baseline",
1988
- fontWeight: "bold",
1989
- color: "danger"
1990
- }
1991
- },
1992
- table: {
1993
- borderCollapse: "separate",
1994
- borderSpacing: 0
1995
- },
1996
- "& label": {
1997
- display: "flex",
1998
- "& > span": {
1999
- mb: spacing(1),
2000
- fontWeight: "bold"
2001
- },
2002
- "&.required": {
2003
- position: "relative",
2004
- "&::before": {
2005
- color: "danger",
2006
- position: "absolute",
2007
- content: '"*"',
2008
- top: 0,
2009
- left: "-10px"
2010
- },
2011
- "*:invalid": {
2012
- borderColor: "danger"
2013
- }
2014
- }
2015
- },
2016
- ".bold": {
2017
- fontWeight: "bold"
2018
- },
2019
- ".light": {
2020
- fontWeight: "light"
2021
- },
2022
- ".Left": {
2023
- textAlign: "left !important"
2024
- },
2025
- ".Center": {
2026
- textAlign: "center !important"
2027
- },
2028
- ".Right": {
2029
- textAlign: "right !important"
2030
- },
2031
- ".Justify": {
2032
- textAlign: "justify !important"
2033
- },
2034
- ".Bottom": {
2035
- verticalAlign: "bottom !important"
2036
- },
2037
- ".Middle": {
2038
- verticalAlign: "middle !important"
2039
- },
2040
- ".Top": {
2041
- verticalAlign: "top !important"
2042
- },
2043
- ".hidden": {
2044
- display: "none"
2045
- },
2046
- ".field__withError": {
2047
- borderLeftStyle: "solid",
2048
- borderLeftWidth: "4px",
2049
- borderLeftColor: "danger"
2050
- },
2051
- ".field__touched": {
2052
- borderStyle: "solid",
2053
- borderWidth: "1px",
2054
- borderColor: "touchedBorderColor"
2055
- },
2056
- ".noPadding": {
2057
- padding: 0
2058
- }
2059
- }), transitions);
2060
-
2061
- const baseTheme = () => {
2062
- return {
2063
- alerts,
2064
- breakpoints: [
2065
- "0px",
2066
- "250px",
2067
- "500px",
2068
- "700px",
2069
- "1000px",
2070
- "1260px",
2071
- "1580px"
2072
- ],
2073
- buttons,
2074
- colors: {},
2075
- fonts: {
2076
- body: '"InterVariable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif, Roboto',
2077
- heading: "inherit",
2078
- monospace: "Menlo, monospace"
2079
- },
2080
- fontSizes: Array(60).fill(1).map((_, i) => {
2081
- return i;
2082
- }),
2083
- forms: {},
2084
- layout: {
2085
- root
2086
- },
2087
- lineHeights: {
2088
- body: 1.5,
2089
- heading: 1.125
2090
- },
2091
- letterSpacings: {
2092
- body: "0.01em",
2093
- heading: "-0.015em"
2094
- },
2095
- radii: {
2096
- alerts: 0,
2097
- buttons: 0,
2098
- default: 0,
2099
- panel: "7px",
2100
- modals: "7px"
2101
- },
2102
- shadows: {
2103
- dataGridHeader: "-6px -6px 11px black",
2104
- modals: "rgba(0, 0, 0, 0.16) 0px 1px 4px;",
2105
- tabs: "",
2106
- panel: "rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px",
2107
- tableFilters: "3px 3px 3px rgba(0,0,0,0.2)",
2108
- toolbar: "3px 3px 3px rgba(0,0,0,0.1)",
2109
- desktop: {
2110
- windowElement: "rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px"
2111
- }
2112
- },
2113
- space: [0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 112, 128],
2114
- sizes: {
2115
- // Layout
2116
- applicationMenu: "350px",
2117
- floatingNotifications: "min(550px, calc(100vw - 30px))",
2118
- root: "992px",
2119
- mainImage: "64px",
2120
- twoColumns: "calc(992px + 350px)",
2121
- twoColumnsCentered: "calc(992px + 350px + 16px)",
2122
- // Icons
2123
- iconXs: "12px",
2124
- iconSm: "16px",
2125
- iconMd: "22px",
2126
- iconLg: "32px",
2127
- iconXl: "48px"
2128
- },
2129
- text,
2130
- zIndices: {
2131
- stickyElements: 600,
2132
- menu: 1e3,
2133
- maximizedTables: 1100,
2134
- modal: 1200,
2135
- tooltip: 1400,
2136
- notifications: 1600,
2137
- contextMenu: 1800
2138
- },
2139
- useRootStyles: true
2140
- };
2141
- };
2142
-
2143
- var __defProp$k = Object.defineProperty;
2144
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
2145
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
2146
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
2147
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2148
- var __spreadValues$k = (a, b) => {
2149
- for (var prop in b || (b = {}))
2150
- if (__hasOwnProp$k.call(b, prop))
2151
- __defNormalProp$k(a, prop, b[prop]);
2152
- if (__getOwnPropSymbols$k)
2153
- for (var prop of __getOwnPropSymbols$k(b)) {
2154
- if (__propIsEnum$k.call(b, prop))
2155
- __defNormalProp$k(a, prop, b[prop]);
2156
- }
2157
- return a;
2158
- };
2159
- const customCheckbox = __spreadValues$k({
2160
- display: "inline-flex",
2161
- borderRadius: "default",
2162
- flexBasis: "32px",
2163
- flexShrink: 0,
2164
- width: "32px",
2165
- height: "32px",
2166
- alignItems: "center",
2167
- justifyContent: "center",
2168
- p: "3px",
2169
- border: "1px solid",
2170
- svg: {
2171
- width: "20px"
2172
- }
2173
- }, getColorsAndStatesByPath("form.fields", {
2174
- states: {
2175
- active: false,
2176
- hover: false,
2177
- focus: false,
2178
- path: false
2179
- }
2180
- }));
2181
-
2182
- var __defProp$j = Object.defineProperty;
2183
- var __defProps$b = Object.defineProperties;
2184
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2185
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2186
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2187
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2188
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2189
- var __spreadValues$j = (a, b) => {
2190
- for (var prop in b || (b = {}))
2191
- if (__hasOwnProp$j.call(b, prop))
2192
- __defNormalProp$j(a, prop, b[prop]);
2193
- if (__getOwnPropSymbols$j)
2194
- for (var prop of __getOwnPropSymbols$j(b)) {
2195
- if (__propIsEnum$j.call(b, prop))
2196
- __defNormalProp$j(a, prop, b[prop]);
2197
- }
2198
- return a;
2199
- };
2200
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2201
- const checkbox = __spreadProps$b(__spreadValues$j({
2202
- borderRadius: "default"
2203
- }, getColorsAndStatesByPath("form.fields", {
2204
- states: {
2205
- active: false,
2206
- focus: false,
2207
- hover: false
2208
- }
2209
- })), {
2210
- backgroundColor: "unset",
2211
- alignItems: "center",
2212
- "&.nativeCheckbox": {
2213
- appearance: "none",
2214
- width: "25px",
2215
- height: "25px",
2216
- border: "solid 1px #cccccc",
2217
- marginRight: "8px",
2218
- position: "relative",
2219
- cursor: "pointer",
2220
- "&:checked::before": {
2221
- content: '"\u2713"',
2222
- color: "palette.text.primary",
2223
- position: "absolute",
2224
- display: "flex",
2225
- alignItems: "center",
2226
- justifyContent: "center",
2227
- top: 0,
2228
- left: 0,
2229
- right: 0,
2230
- bottom: 0,
2231
- fontSize: "larger",
2232
- fontWeight: "bolder",
2233
- borderRadius: "5px",
2234
- cursor: "pointer"
2235
- },
2236
- "&:indeterminate::before": {
2237
- content: '"-"',
2238
- color: "palette.text.primary",
2239
- position: "absolute",
2240
- display: "flex",
2241
- alignItems: "center",
2242
- justifyContent: "center",
2243
- top: "-1px",
2244
- left: 0,
2245
- right: 0,
2246
- bottom: 0,
2247
- fontSize: "xx-large",
2248
- fontWeight: "600",
2249
- borderRadius: "5px",
2250
- cursor: "pointer"
2251
- }
2252
- }
2253
- });
2254
-
2255
- var __defProp$i = Object.defineProperty;
2256
- var __defProps$a = Object.defineProperties;
2257
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2258
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2259
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2260
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2261
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2262
- var __spreadValues$i = (a, b) => {
2263
- for (var prop in b || (b = {}))
2264
- if (__hasOwnProp$i.call(b, prop))
2265
- __defNormalProp$i(a, prop, b[prop]);
2266
- if (__getOwnPropSymbols$i)
2267
- for (var prop of __getOwnPropSymbols$i(b)) {
2268
- if (__propIsEnum$i.call(b, prop))
2269
- __defNormalProp$i(a, prop, b[prop]);
2270
- }
2271
- return a;
2272
- };
2273
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2274
- const dateInput = __spreadProps$a(__spreadValues$i({
2275
- display: "flex",
2276
- flexDirection: "column",
2277
- alignItems: "stretch",
2278
- justifyContent: "stretch",
2279
- gap: spacing(2),
2280
- width: "100%",
2281
- "&.readOnly": {
2282
- input: {
2283
- color: "Text.fields",
2284
- bg: "Background.fields"
2285
- }
2286
- },
2287
- ".iconInput": {
2288
- width: "100%",
2289
- position: "relative"
2290
- },
2291
- '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({
2292
- position: "absolute",
2293
- right: "59px",
2294
- padding: 0,
2295
- top: "calc(50% - 10px)",
2296
- margin: 0,
2297
- marginRight: 0,
2298
- borderRadius: "100%",
2299
- width: "20px",
2300
- height: "20px"
2301
- }, getColorsAndStatesByPath("buttons.icon-outline")),
2302
- input: {
2303
- flexShrink: 1
2304
- },
2305
- "& > div": {
2306
- display: "flex",
2307
- gap: spacing(2),
2308
- flexShrink: 0,
2309
- width: "auto",
2310
- maxWidth: "100%",
2311
- minWidth: 0,
2312
- button: {
2313
- width: "45px",
2314
- flexShrink: 0
2315
- }
2316
- }
2317
- }, getColorsAndStatesByPath("form.fields", {
2318
- states: {
2319
- hover: false,
2320
- active: false,
2321
- focus: false
2322
- }
2323
- })), {
2324
- backgroundColor: void 0
2325
- });
2326
-
2327
- var __defProp$h = Object.defineProperty;
2328
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2329
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2330
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2331
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2332
- var __spreadValues$h = (a, b) => {
2333
- for (var prop in b || (b = {}))
2334
- if (__hasOwnProp$h.call(b, prop))
2335
- __defNormalProp$h(a, prop, b[prop]);
2336
- if (__getOwnPropSymbols$h)
2337
- for (var prop of __getOwnPropSymbols$h(b)) {
2338
- if (__propIsEnum$h.call(b, prop))
2339
- __defNormalProp$h(a, prop, b[prop]);
2340
- }
2341
- return a;
2342
- };
2343
- const iconInput = {
2344
- display: "flex",
2345
- gap: spacing(1),
2346
- justifyContent: "stretch",
2347
- alignItems: "center",
2348
- "&.readOnly": {
2349
- input: __spreadValues$h({}, getColorsByPath("form.fields"))
2350
- },
2351
- input: {
2352
- height: "50px",
2353
- width: "100%"
2354
- },
2355
- button: {
2356
- display: "flex",
2357
- width: "45px",
2358
- flexShrink: 0,
2359
- height: "50px"
2360
- }
2361
- };
2362
-
2363
- var __defProp$g = Object.defineProperty;
2364
- var __defProps$9 = Object.defineProperties;
2365
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2366
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2367
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2368
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2369
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2370
- var __spreadValues$g = (a, b) => {
2371
- for (var prop in b || (b = {}))
2372
- if (__hasOwnProp$g.call(b, prop))
2373
- __defNormalProp$g(a, prop, b[prop]);
2374
- if (__getOwnPropSymbols$g)
2375
- for (var prop of __getOwnPropSymbols$g(b)) {
2376
- if (__propIsEnum$g.call(b, prop))
2377
- __defNormalProp$g(a, prop, b[prop]);
2378
- }
2379
- return a;
2380
- };
2381
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2382
- const input = __spreadProps$9(__spreadValues$g({
2383
- variant: "text.default",
2384
- border: "1px solid",
2385
- borderRadius: "default",
2386
- padding: responsive$1({ 0: 3, 3: 4 }),
2387
- "::placeholder": {
2388
- color: "#b0b0b0"
2389
- }
2390
- }, getColorsAndStatesByPath("form.fields", {
2391
- states: {
2392
- active: false,
2393
- hover: false,
2394
- focus: false
2395
- }
2396
- })), {
2397
- material: {
2398
- input: {
2399
- borderLeft: "none",
2400
- borderRight: "none",
2401
- borderTop: "none",
2402
- borderBottomColor: "palette.border.section",
2403
- "& + .input__underline": {
2404
- transform: "scale(1)"
2405
- },
2406
- "&:focus": {
2407
- outline: "none",
2408
- "~::after": {
2409
- animationName: "growHorizontal",
2410
- animationDuration: "150ms",
2411
- animationTimingFunction: "ease-out",
2412
- content: '""',
2413
- display: "block",
2414
- height: "0",
2415
- outlineColor: "palette.primary.main",
2416
- outlineStyle: "solid",
2417
- outlineWidth: "1.5px",
2418
- outlineOffset: 0,
2419
- position: "fixed",
2420
- transformOrigin: "center center",
2421
- width: "100%"
2422
- }
2423
- }
2424
- }
2425
- }
2426
- });
2427
-
2428
- const label = {
2429
- variant: "text.default",
2430
- alignItems: "center",
2431
- width: "auto",
2432
- textTransform: "none",
2433
- cursor: "pointer",
2434
- "&:not(.radio-label)": {
2435
- fontWeight: "bold"
2436
- },
2437
- "&.required": {
2438
- position: "relative",
2439
- "&::before": {
2440
- color: "danger",
2441
- position: "absolute",
2442
- content: '"*"',
2443
- top: 0,
2444
- left: "-10px"
2445
- }
2446
- },
2447
- "&:last-of-type": {
2448
- "input, textarea, select": {
2449
- mb: spacing(0)
2450
- }
2451
- }
2452
- };
2453
-
2454
- var __defProp$f = Object.defineProperty;
2455
- var __defProps$8 = Object.defineProperties;
2456
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2457
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2458
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2459
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2460
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2461
- var __spreadValues$f = (a, b) => {
2462
- for (var prop in b || (b = {}))
2463
- if (__hasOwnProp$f.call(b, prop))
2464
- __defNormalProp$f(a, prop, b[prop]);
2465
- if (__getOwnPropSymbols$f)
2466
- for (var prop of __getOwnPropSymbols$f(b)) {
2467
- if (__propIsEnum$f.call(b, prop))
2468
- __defNormalProp$f(a, prop, b[prop]);
2469
- }
2470
- return a;
2471
- };
2472
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2473
- const radio = __spreadProps$8(__spreadValues$f({
2474
- width: "32px",
2475
- height: "32px",
2476
- input: {
2477
- height: "32px !important"
2478
- }
2479
- }, getColorsAndStatesByPath("form.radio")), {
2480
- path: {
2481
- fill: "inherit"
2482
- }
2483
- });
2484
-
2485
- var __defProp$e = Object.defineProperty;
2486
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2487
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2488
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2489
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2490
- var __spreadValues$e = (a, b) => {
2491
- for (var prop in b || (b = {}))
2492
- if (__hasOwnProp$e.call(b, prop))
2493
- __defNormalProp$e(a, prop, b[prop]);
2494
- if (__getOwnPropSymbols$e)
2495
- for (var prop of __getOwnPropSymbols$e(b)) {
2496
- if (__propIsEnum$e.call(b, prop))
2497
- __defNormalProp$e(a, prop, b[prop]);
2498
- }
2499
- return a;
2500
- };
2501
- const select = __spreadValues$e({
2502
- variant: "text.default",
2503
- display: "inline-block",
2504
- fontFamily: "body",
2505
- p: spacing(4),
2506
- pr: 7,
2507
- borderRadius: "default",
2508
- width: "100%",
2509
- maxWidth: "100%"
2510
- }, getColorsAndStatesByPath("form.fields", {
2511
- states: {
2512
- active: false,
2513
- hover: false,
2514
- focus: false
2515
- }
2516
- }));
2517
-
2518
- var __defProp$d = Object.defineProperty;
2519
- var __defProps$7 = Object.defineProperties;
2520
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2521
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2522
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2523
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2524
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2525
- var __spreadValues$d = (a, b) => {
2526
- for (var prop in b || (b = {}))
2527
- if (__hasOwnProp$d.call(b, prop))
2528
- __defNormalProp$d(a, prop, b[prop]);
2529
- if (__getOwnPropSymbols$d)
2530
- for (var prop of __getOwnPropSymbols$d(b)) {
2531
- if (__propIsEnum$d.call(b, prop))
2532
- __defNormalProp$d(a, prop, b[prop]);
2533
- }
2534
- return a;
2535
- };
2536
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2537
- function selectMultiple(theme) {
2538
- return __spreadValues$d({
2539
- variant: "text.default",
2540
- height: "100%",
2541
- padding: "4px",
2542
- borderRadius: "default",
2543
- border: "1px solid",
2544
- width: "100%",
2545
- transition: "background-color 100ms ease-out, color 100ms ease-out",
2546
- overflow: "auto",
2547
- option: __spreadProps$7(__spreadValues$d({
2548
- padding: 2
2549
- }, getSelectedColors(theme.palette)), {
2550
- "&:checked": {
2551
- backgroundColor: theme.palette.getColor(
2552
- theme.palette.background.paper,
2553
- "selected"
2554
- ),
2555
- color: theme.palette.getContrastText(
2556
- theme.palette.getColor(theme.palette.background.paper, "selected")
2557
- )
2558
- }
2559
- }),
2560
- "+ svg": {
2561
- display: "none"
2562
- }
2563
- }, theme.palette.getStatesFromPath("form.fields", {
2564
- states: {
2565
- active: false,
2566
- hover: false,
2567
- focus: false
2568
- }
2569
- }));
2570
- }
2571
-
2572
- const Switch = {
2573
- "+ span": {
2574
- fontSize: 14,
2575
- fontWeight: "normal",
2576
- wordBreak: "break-all"
2577
- },
2578
- backgroundColor: "form.fields.checked.borderColor"
2579
- };
2580
-
2581
- const textarea = {
2582
- "&, & textarea": {
2583
- height: "100%",
2584
- minHeight: "130px",
2585
- resize: "vertical"
2586
- },
2587
- textarea: {
2588
- variant: "forms.input"
2589
- }
2590
- };
2591
-
2592
- var __defProp$c = Object.defineProperty;
2593
- var __defProps$6 = Object.defineProperties;
2594
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2595
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2596
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2597
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2598
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2599
- var __spreadValues$c = (a, b) => {
2600
- for (var prop in b || (b = {}))
2601
- if (__hasOwnProp$c.call(b, prop))
2602
- __defNormalProp$c(a, prop, b[prop]);
2603
- if (__getOwnPropSymbols$c)
2604
- for (var prop of __getOwnPropSymbols$c(b)) {
2605
- if (__propIsEnum$c.call(b, prop))
2606
- __defNormalProp$c(a, prop, b[prop]);
2607
- }
2608
- return a;
2609
- };
2610
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2611
- const deletableInput = {
2612
- border: "1px solid",
2613
- borderColor: "palette.border.field",
2614
- display: "inline-block",
2615
- position: "relative",
2616
- pr: "45px",
2617
- ".deletableInput__input": {
2618
- border: "none"
2619
- },
2620
- ".deletableInput__deleteButton": __spreadValues$c({
2621
- height: "100%",
2622
- outlineOffset: "-2px",
2623
- position: "absolute",
2624
- right: 0,
2625
- top: 0,
2626
- width: "45px"
2627
- }, getColorsAndStatesByPath("buttons.deletableInputButton", {
2628
- states: { path: true }
2629
- })),
2630
- "&:focus-within:not(.asMaterial)": __spreadProps$6(__spreadValues$c({}, focusOutline), {
2631
- ".deletableInput__input:focus": {
2632
- outline: "none"
2633
- },
2634
- ".deletableInput__deleteButton:focus": {
2635
- outline: "none"
2636
- }
2637
- }),
2638
- "&.asMaterial": {
2639
- borderLeft: "none",
2640
- borderRight: "none",
2641
- borderTop: "none",
2642
- borderBottomColor: "palette.border.section",
2643
- "& + .input__underline": {
2644
- transform: "scale(1)"
2645
- },
2646
- ".deletableInput__input:focus": {
2647
- outline: "none",
2648
- "~.input__underline::after": {
2649
- animationName: "growHorizontal",
2650
- animationDuration: "150ms",
2651
- animationTimingFunction: "ease-out",
2652
- content: '""',
2653
- display: "block",
2654
- height: "0",
2655
- outlineColor: "palette.primary.main",
2656
- outlineStyle: "solid",
2657
- outlineWidth: "1.5px",
2658
- outlineOffset: 0,
2659
- position: "absolute",
2660
- transformOrigin: "center center",
2661
- left: 0,
2662
- right: 0
2663
- }
2664
- }
2665
- }
2666
- };
2667
-
2668
- const forms$1 = (theme) => {
2669
- return {
2670
- checkbox,
2671
- customCheckbox,
2672
- dateInput,
2673
- deletableInput,
2674
- iconInput,
2675
- input,
2676
- label,
2677
- radio,
2678
- select,
2679
- selectMultiple: selectMultiple(theme),
2680
- switch: Switch,
2681
- textarea,
2682
- /* PREPEND HERE */
2683
- 'input[type="date"]': {
2684
- variant: "forms.input"
2685
- }
2686
- };
2687
- };
2688
-
2689
- const overlay = {
2690
- overlay: {
2691
- position: "fixed",
2692
- overflow: "hidden",
2693
- top: "0",
2694
- right: "0",
2695
- bottom: "0",
2696
- left: "0",
2697
- width: "100vw",
2698
- height: "100vh",
2699
- display: "flex",
2700
- justifyContent: "center",
2701
- alignItems: "center",
2702
- backgroundColor: `palette.background.overlay`,
2703
- zIndex: "modal",
2704
- "&:not(.screenLock) .modal-enter-done": {
2705
- boxShadow: "modals"
2706
- }
2707
- },
2708
- "overlay--stretch": {
2709
- variant: "layout.common.modals.overlay",
2710
- alignItems: responsive$1({ 0: "stretch", 2: "center" })
2711
- }
2712
- };
2713
-
2714
- const apiaApi = {
2715
- display: "flex",
2716
- width: "100%",
2717
- ".handler__form": {
2718
- display: "flex",
2719
- flexDirection: "column",
2720
- width: "100%",
2721
- gap: spacing(6),
2722
- ".handler__form__elements": {
2723
- flexShrink: 1,
2724
- overflow: "auto"
2725
- },
2726
- ".handler__form__elements__section__content": {
2727
- display: "flex",
2728
- flexDirection: "column",
2729
- wordBreak: "break-word",
2730
- background: "palette.background.paper",
2731
- p: 0,
2732
- gap: spacing(3)
2733
- },
2734
- ".content .handler__form__elements__section__content": {
2735
- border: "1px solid",
2736
- borderColor: "palette.border.section",
2737
- borderTop: "none",
2738
- p: spacing(6)
2739
- },
2740
- ".handler__form__buttons": {
2741
- display: "flex",
2742
- flexDirection: "row",
2743
- justifyContent: "end",
2744
- p: 0,
2745
- gap: "0px",
2746
- position: "sticky",
2747
- bottom: "-19px",
2748
- background: "palette.background.paper",
2749
- height: "80px",
2750
- alignItems: "center",
2751
- button: {
2752
- height: "50px"
2753
- }
2754
- },
2755
- ".radio": {
2756
- display: "flex",
2757
- flexDirection: "column",
2758
- flexWrap: "wrap",
2759
- listStyle: "none",
2760
- variant: "layout.execution.form.fields.radio"
2761
- },
2762
- ".handler__checkbox, .handler__radio": {
2763
- "label span": {
2764
- fontWeight: "normal"
2765
- }
2766
- },
2767
- ".checkbox": {
2768
- flexDirection: "row-reverse",
2769
- alignItems: "center",
2770
- justifyContent: "start",
2771
- gap: spacing(4),
2772
- ".semicolon": {
2773
- display: "none"
2774
- },
2775
- input: {
2776
- width: "100%"
2777
- }
2778
- },
2779
- ".handler__hidden": {
2780
- display: "none"
2781
- },
2782
- "label.select > div": {
2783
- width: "100%"
2784
- },
2785
- ".spacer": {
2786
- height: spacing(7)
2787
- }
2788
- },
2789
- ".progressBox": {
2790
- p: spacing(5),
2791
- pt: spacing(0)
2792
- }
2793
- /* PREPEND HERE */
2794
- };
2795
-
2796
- const confirm = {
2797
- display: "flex",
2798
- flexDirection: "column",
2799
- gap: spacing$1(6),
2800
- width: "100%",
2801
- ".confirm__content": {
2802
- overflow: "auto",
2803
- flexBasis: "100%",
2804
- wordBreak: "break-word",
2805
- display: "flex",
2806
- flexDirection: "column"
2807
- },
2808
- ".confirm__buttonBar": {
2809
- display: "flex",
2810
- justifyContent: "space-between",
2811
- flexBasis: "40px",
2812
- flexGrow: 0,
2813
- flexShrink: 0,
2814
- ".confirm__defaultButtons": {
2815
- display: "flex",
2816
- gap: spacing$1(3)
2817
- },
2818
- ".confirm__customButtons": {
2819
- width: "auto"
2820
- }
2821
- }
2822
- };
2823
-
2824
- const buttonsBar = {
2825
- flexDirection: "row",
2826
- display: "flex",
2827
- justifyContent: "flex-end",
2828
- gap: spacing$1(3),
2829
- mb: spacing$1(0)
2830
- };
2831
-
2832
- var __defProp$b = Object.defineProperty;
2833
- var __defProps$5 = Object.defineProperties;
2834
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2835
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2836
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2837
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2838
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2839
- var __spreadValues$b = (a, b) => {
2840
- for (var prop in b || (b = {}))
2841
- if (__hasOwnProp$b.call(b, prop))
2842
- __defNormalProp$b(a, prop, b[prop]);
2843
- if (__getOwnPropSymbols$b)
2844
- for (var prop of __getOwnPropSymbols$b(b)) {
2845
- if (__propIsEnum$b.call(b, prop))
2846
- __defNormalProp$b(a, prop, b[prop]);
2847
- }
2848
- return a;
2849
- };
2850
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2851
- const modals = __spreadProps$5(__spreadValues$b({
2852
- apiaApi,
2853
- buttonsBar,
2854
- confirm
2855
- }, overlay), {
2856
- main: __spreadValues$b({
2857
- boxShadow: "modals",
2858
- borderRadius: "modals",
2859
- zIndex: "modal",
2860
- display: "flex",
2861
- flexDirection: "column",
2862
- alignItems: "center",
2863
- justifyItems: "center",
2864
- maxHeight: "100vh",
2865
- maxWidth: "calc(100vw - 10px)",
2866
- resize: "both",
2867
- overflow: "auto",
2868
- border: "1px solid",
2869
- gap: "0px !important",
2870
- "&>div": {
2871
- overflow: "hidden",
2872
- flexGrow: 0,
2873
- flexShrink: 0,
2874
- p: "3px",
2875
- width: "100%"
2876
- },
2877
- "&>div.modal__header": {
2878
- alignItems: responsive$1({ 0: "end", 4: "center" }),
2879
- flexShrink: 0,
2880
- overflow: "visible",
2881
- p: "16px 20px",
2882
- borderBottom: "1px solid lightgray",
2883
- ".modal__headerBar": {
2884
- display: "flex",
2885
- flexDirection: "row",
2886
- alignItems: "center"
2887
- }
2888
- },
2889
- "&>div.modal__content": {
2890
- overflow: "auto",
2891
- width: "100%",
2892
- flexBasis: "100%",
2893
- flexDirection: "column",
2894
- flexShrink: 1,
2895
- display: "flex",
2896
- justifyContent: "stretch",
2897
- alignItems: "stretch",
2898
- p: "20px"
2899
- },
2900
- "&>div.modal__content>form": {
2901
- overflow: "auto",
2902
- width: "100%",
2903
- flexBasis: "100%",
2904
- flexShrink: 1,
2905
- display: "flex",
2906
- justifyContent: "stretch",
2907
- alignItems: "stretch"
2908
- }
2909
- }, getColorsByPath("modal")),
2910
- finder: {
2911
- variant: "layout.common.modals.main",
2912
- height: responsive$1({ 0: "100vh", 3: "80vh" }),
2913
- width: responsive$1({ 0: "95vw", 3: "80vw", 4: "70vw" }),
2914
- ".modal__content": {
2915
- overflow: "hidden",
2916
- ".confirm__content": {
2917
- overflow: "hidden",
2918
- ".finder__content": {
2919
- display: "flex",
2920
- alignItems: "stretch"
2921
- },
2922
- ".selection__keyHandler": {
2923
- overflow: "hidden",
2924
- height: "100%",
2925
- ".responsiveTable__wrapper": {
2926
- height: "100%",
2927
- border: "1px solid",
2928
- borderColor: "palette.border.article",
2929
- backgroundColor: "palette.gray.900"
2930
- }
2931
- }
2932
- }
2933
- }
2934
- },
2935
- sm: {
2936
- variant: "layout.common.modals.main",
2937
- maxWidth: "min(350px, calc(100vw - 10px))"
2938
- },
2939
- md: {
2940
- variant: "layout.common.modals.main",
2941
- maxWidth: "min(500px, calc(100vw - 10px))"
2942
- },
2943
- "md-fixed": {
2944
- variant: "layout.common.modals.main",
2945
- width: "min(500px, calc(100vw - 10px))",
2946
- maxHeight: responsive$1({ 0: "95vh", 2: "80vh" })
2947
- },
2948
- lg: {
2949
- variant: "layout.common.modals.main",
2950
- maxWidth: "min(640px, calc(100vw - 10px))"
2951
- },
2952
- "lg-fixed": {
2953
- variant: "layout.common.modals.main",
2954
- width: "640px",
2955
- height: "60vh"
2956
- },
2957
- xl: {
2958
- variant: "layout.common.modals.main",
2959
- maxWidth: "min(730px, calc(100vw - 10px))"
2960
- },
2961
- "xl-fixed": {
2962
- variant: "layout.common.modals.main",
2963
- width: responsive$1({ 0: "95vw", 2: "60vw" }),
2964
- height: responsive$1({ 0: "95vh", 2: "80vh" })
2965
- },
2966
- xxl: {
2967
- variant: "layout.common.modals.main",
2968
- width: responsive$1({ 0: "95vw", 2: "80vw" }),
2969
- maxHeight: responsive$1({ 0: "95vh", 2: "80vh" })
2970
- },
2971
- "xxl-fixed": {
2972
- variant: "layout.common.modals.main",
2973
- width: responsive$1({ 0: "95vw", 2: "80vw" }),
2974
- height: responsive$1({ 0: "95vh", 2: "80vh" })
2975
- },
2976
- xxxl: {
2977
- variant: "layout.common.modals.main",
2978
- width: responsive$1({ 0: "95vw", 2: "95vw" }),
2979
- maxHeight: responsive$1({ 0: "95vh", 2: "95vh" })
2980
- },
2981
- "xxxl-fixed": {
2982
- variant: "layout.common.modals.main",
2983
- width: responsive$1({ 0: "95vw", 2: "95vw" }),
2984
- height: responsive$1({ 0: "95vh", 2: "95vh" })
2985
- },
2986
- flex: {
2987
- variant: "layout.common.modals.main",
2988
- maxWidth: "95vw",
2989
- maxHeight: "95vh",
2990
- ".modal__content": {
2991
- p: spacing(2),
2992
- overflow: "auto"
2993
- }
2994
- },
2995
- cal: {
2996
- variant: "layout.common.modals.sm",
2997
- width: "350px"
2998
- },
2999
- editGrid: {
3000
- variant: "layout.common.modals.main",
3001
- width: "root",
3002
- maxHeight: "90vh"
3003
- }
3004
- /* PREPEND HERE */
3005
- });
3006
-
3007
- var __defProp$a = Object.defineProperty;
3008
- var __defProps$4 = Object.defineProperties;
3009
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3010
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
3011
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
3012
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
3013
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3014
- var __spreadValues$a = (a, b) => {
3015
- for (var prop in b || (b = {}))
3016
- if (__hasOwnProp$a.call(b, prop))
3017
- __defNormalProp$a(a, prop, b[prop]);
3018
- if (__getOwnPropSymbols$a)
3019
- for (var prop of __getOwnPropSymbols$a(b)) {
3020
- if (__propIsEnum$a.call(b, prop))
3021
- __defNormalProp$a(a, prop, b[prop]);
3022
- }
3023
- return a;
3024
- };
3025
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3026
- function getSelectionStyles() {
3027
- return {
3028
- 'td[data-focused="false"], th[data-focused="false"]': {
3029
- "*:focus-visible, &:focus, &:focus-visible": {
3030
- outline: "none"
3031
- },
3032
- "*:focus": __spreadValues$a({}, focusOutline)
3033
- },
3034
- '[data-focused="true"]:not(.row__separator__cell)': {
3035
- '&:not([data-editionmode="true"])': {
3036
- "&:focus, & > *:focus, *:focus-visible": __spreadProps$4(__spreadValues$a({}, focusOutline), {
3037
- "&.cell__download__document": {
3038
- outlineOffset: 0
3039
- }
3040
- })
3041
- },
3042
- '&[data-editionmode="true"]': {
3043
- "&:focus, *:focus, *:focus-visible": __spreadProps$4(__spreadValues$a({}, focusOutline), {
3044
- outlineStyle: "dotted",
3045
- outlineWidth: "6px",
3046
- outlineOffset: "-4px"
3047
- })
3048
- }
3049
- },
3050
- '[data-focused="true"].row__separator__cell': {
3051
- backgroundColor: "palette.secondary.main",
3052
- outline: "none"
3053
- }
3054
- };
3055
- }
3056
-
3057
- var __defProp$9 = Object.defineProperty;
3058
- var __defProps$3 = Object.defineProperties;
3059
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3060
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
3061
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
3062
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
3063
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3064
- var __spreadValues$9 = (a, b) => {
3065
- for (var prop in b || (b = {}))
3066
- if (__hasOwnProp$9.call(b, prop))
3067
- __defNormalProp$9(a, prop, b[prop]);
3068
- if (__getOwnPropSymbols$9)
3069
- for (var prop of __getOwnPropSymbols$9(b)) {
3070
- if (__propIsEnum$9.call(b, prop))
3071
- __defNormalProp$9(a, prop, b[prop]);
3072
- }
3073
- return a;
3074
- };
3075
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3076
- const primary$4 = (theme) => {
3077
- return __spreadProps$3(__spreadValues$9({
3078
- variant: "colors.tables.primary",
3079
- width: "100%",
3080
- backgroundColor: "components.primaryTable.body.backgroundColor",
3081
- border: "1px solid",
3082
- borderColor: "components.primaryTable.borderColor",
3083
- borderCollapse: "separate",
3084
- borderSpacing: 0,
3085
- tableLayout: "fixed",
3086
- thead: {
3087
- zIndex: 1,
3088
- position: "sticky",
3089
- insetBlockStart: 0,
3090
- backgroundColor: "palette.background.paper",
3091
- "tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
3092
- "th, td": __spreadProps$3(__spreadValues$9({
3093
- variant: "buttons.primary",
3094
- py: responsive$1({ 0: 3, 4: 4 }),
3095
- px: responsive$1({ 0: 3, 4: 4 }),
3096
- width: "breakWidth",
3097
- backgroundColor: "palette.primary.main",
3098
- borderColor: "palette.primary.dark",
3099
- borderRadius: 0,
3100
- borderStyle: "solid",
3101
- borderWidth: "1px",
3102
- color: "palette.primary.contrastText",
3103
- display: "table-cell",
3104
- verticalAlign: "center",
3105
- wordBreak: "break-word",
3106
- '&[role="presentation"]': {
3107
- display: "none"
3108
- }
3109
- }, theme.palette.getStatesFromPath("components.primaryTable.header")), {
3110
- "& *": {
3111
- color: "inherit"
3112
- },
3113
- ".headButton__label": {
3114
- textAlign: "left",
3115
- d: ""
3116
- },
3117
- ".headButton__resizer": {
3118
- width: "20px",
3119
- cursor: "ew-resize",
3120
- zIndex: 1e3,
3121
- position: "absolute",
3122
- right: "-10px",
3123
- height: "100%"
3124
- },
3125
- "&:last-of-type .headButton__resizer": {
3126
- right: "0px"
3127
- },
3128
- "&.additionalColumn": {
3129
- minWidth: "50px",
3130
- maxWidth: "50px",
3131
- width: "50px",
3132
- p: 0,
3133
- textAlign: "center",
3134
- verticalAlign: "center"
3135
- },
3136
- ".headButton__container": {
3137
- width: "100%",
3138
- display: "flex",
3139
- alignItems: "center",
3140
- justifyContent: "space-between",
3141
- gap: 3,
3142
- svg: {
3143
- flexShrink: 0
3144
- }
3145
- },
3146
- "&:not(:last-of-type)": {
3147
- "&>div": {
3148
- borderRightWidth: "1px"
3149
- }
3150
- }
3151
- }),
3152
- "th.requiredFilterColumn": {
3153
- borderLeft: "4px solid !important",
3154
- borderLeftColor: "palette.error.main !important"
3155
- }
3156
- },
3157
- "tr.filtersRow, tr.responsiveTable__filters__row": {
3158
- backgroundColor: "components.primaryTable.body.backgroundColor",
3159
- boxShadow: "tableFilters",
3160
- "th.noFilter": {
3161
- background: "transparent"
3162
- },
3163
- "td.requiredFilter__Border": {
3164
- borderLeftStyle: "solid !important",
3165
- borderLeftWidth: "4px !important",
3166
- borderLeftColor: "palette.error.main"
3167
- },
3168
- td: {
3169
- "input:not([disabled]), select:not([disabled])": {
3170
- border: "1px solid white"
3171
- },
3172
- background: "transparent",
3173
- border: "1px solid",
3174
- borderColor: "components.primaryTable.body.borderColor",
3175
- p: 0
3176
- },
3177
- transition: "height 0.3s",
3178
- "&.hidden": {
3179
- height: "0",
3180
- overflow: "hidden",
3181
- p: spacing(0),
3182
- border: "none",
3183
- "& *": {
3184
- height: "0",
3185
- overflow: "hidden",
3186
- fontSize: 0,
3187
- lineHeight: 0,
3188
- p: spacing(0),
3189
- border: "none"
3190
- }
3191
- }
3192
- }
3193
- },
3194
- tbody: {
3195
- tr: __spreadProps$3(__spreadValues$9(__spreadProps$3(__spreadValues$9({
3196
- borderBottomWidth: "1px",
3197
- borderBottomStyle: "solid"
3198
- }, theme.palette.getColorsByPath("components.primaryTable.body")), {
3199
- "&:nth-of-type(2n)": {
3200
- backgroundColor: "components.primaryTable.body.evenRowsBackgroundColor"
3201
- },
3202
- "&.non-selectable": {
3203
- cursor: "not-allowed"
3204
- },
3205
- "&.hidden": {
3206
- display: "none"
3207
- },
3208
- "&.locked": {
3209
- background: "palette.gray.900",
3210
- td: {
3211
- borderColor: "palette.gray.850"
3212
- }
3213
- }
3214
- }), getSelectedColors(theme.palette)), {
3215
- "&.draggingRow": {
3216
- outline: "3px dotted",
3217
- outlineColor: "components.primaryTable.header.borderColor",
3218
- outlineOffset: "-3px",
3219
- "*": {
3220
- outline: "none !important"
3221
- }
3222
- },
3223
- borderColor: "components.primaryTable.body.borderColor",
3224
- ".rowStatesList": {
3225
- display: "flex",
3226
- gap: spacing(3),
3227
- alignItems: "center",
3228
- svg: {
3229
- width: "smallIcon",
3230
- height: "smallIcon",
3231
- cursor: "pointer"
3232
- }
3233
- },
3234
- td: {
3235
- verticalAlign: "top",
3236
- wordBreak: "break-word",
3237
- border: "1px solid",
3238
- borderColor: "components.primaryTable.body.borderColor",
3239
- "&.stickyColumn": {
3240
- position: "sticky",
3241
- left: 0,
3242
- backgroundColor: "components.primaryTable.body.backgroundColor"
3243
- },
3244
- ".moreInformationButton": {
3245
- width: "30px",
3246
- height: "30px",
3247
- padding: "3px",
3248
- border: "none",
3249
- background: "transparent"
3250
- }
3251
- }
3252
- }),
3253
- td: {
3254
- p: spacing(3)
3255
- },
3256
- ".responsiveTable__additionalInfoContainer": {
3257
- display: "grid",
3258
- gridTemplateColumns: responsive$1({
3259
- 0: "repeat(2, 1fr)",
3260
- 5: "repeat(4, 1fr)"
3261
- }),
3262
- columnGap: 3,
3263
- rowGap: 2
3264
- },
3265
- ".responsiveTable__additionalInfoContainer .responsiveTable__additionalInfoItem.separator": {
3266
- gridColumnStart: "1",
3267
- gridColumnEnd: "5",
3268
- borderBottom: "1px solid",
3269
- borderBottomColor: "palette.gray.700",
3270
- height: "auto"
3271
- }
3272
- },
3273
- ".editionMode": {
3274
- border: "3px solid",
3275
- borderColor: "components.primaryTable.header.borderColor",
3276
- borderWidth: "1.5px",
3277
- borderStyle: "dotted"
3278
- },
3279
- ".stateCell": {
3280
- width: "50px",
3281
- maxWidth: "50px",
3282
- minWidth: "50px",
3283
- textAlign: "center",
3284
- verticalAlign: "middle"
3285
- }
3286
- }, getSelectionStyles()), {
3287
- ".no__registers": {
3288
- py: 6,
3289
- minWidth: "200px"
3290
- },
3291
- ".requiredFilter__Column": {
3292
- fontWeight: "bold"
3293
- },
3294
- ".bold": {
3295
- fontWeight: "bold"
3296
- },
3297
- ".light": {
3298
- color: "#6a6a6a"
3299
- },
3300
- ".additionalInfo__cell, .stateCell": {
3301
- verticalAlign: "middle"
3302
- }
3303
- });
3304
- };
3305
-
3306
- const information = {
3307
- width: "100%",
3308
- border: "1px solid",
3309
- borderColor: "primary",
3310
- borderCollapse: "collapse",
3311
- borderBottom: "none",
3312
- thead: {
3313
- tr: {
3314
- th: {
3315
- bg: "primary",
3316
- color: "white",
3317
- textAlign: "center",
3318
- fontWeight: "bold",
3319
- p: spacing(4)
3320
- }
3321
- }
3322
- },
3323
- tbody: {
3324
- tr: {
3325
- "td,th": {
3326
- borderColor: "muted",
3327
- borderBottom: "1px solid",
3328
- p: spacing(4)
3329
- },
3330
- "td:not(td:last-child),th:not(th:last-child)": {
3331
- borderRight: "1px solid"
3332
- },
3333
- th: {
3334
- textAlign: "left",
3335
- whiteSpace: "nowrap",
3336
- minWidth: "min-content",
3337
- width: 0
3338
- }
3339
- }
3340
- }
3341
- };
3342
-
3343
- const accordion$1 = {
3344
- display: "flex",
3345
- flexDirection: "column",
3346
- gap: spacing(2),
3347
- ".responsiveTable__accordionElement__toggler": () => ({
3348
- variant: "buttons.outline",
3349
- borderWidth: "1px",
3350
- display: "flex",
3351
- gap: spacing(3),
3352
- alignItems: "stretch",
3353
- width: "100%",
3354
- px: 4,
3355
- py: 3,
3356
- "&:hover": {
3357
- h3: {
3358
- color: "palette.primary.contrastText"
3359
- }
3360
- },
3361
- ".accordionElement__toggler__checkbox": {
3362
- flexShrink: 0,
3363
- m: spacing(2)
3364
- },
3365
- ".accordionElement__toggler__button": {
3366
- flexGrow: 100,
3367
- display: "flex",
3368
- justifyContent: "space-between",
3369
- py: 2,
3370
- pr: spacing(2),
3371
- alignItems: "center",
3372
- ".accordionElement__toggler__label": {
3373
- flexGrow: 100,
3374
- m: spacing(0),
3375
- textAlign: "left",
3376
- fontSize: 16
3377
- },
3378
- ".accordionElement__toggler__expandIcon": {
3379
- flexShrink: 0,
3380
- svg: {
3381
- width: "32px"
3382
- }
3383
- }
3384
- }
3385
- }),
3386
- ".responsiveTable__accordionElement__content": {
3387
- display: "flex",
3388
- flexDirection: "column",
3389
- "& > div": {
3390
- backgroundColor: "palette.background.paper",
3391
- transition: "padding-bottom 300ms, padding-top 300ms",
3392
- px: 5
3393
- },
3394
- "&.rah-static--height-zero": {
3395
- "& > div": { py: 0 }
3396
- },
3397
- "&.rah-static--height-auto, &.rah-animating--down": {
3398
- "& > div": { py: 5 }
3399
- },
3400
- ".priority_container": { display: "flex", alignItems: "center" },
3401
- ".priority": { display: "flex" }
3402
- }
3403
- };
3404
-
3405
- const print = {
3406
- border: "2px solid",
3407
- borderColor: "printView.list.table.borderColor",
3408
- "td, th": {
3409
- p: 3,
3410
- textAlign: "left"
3411
- }
3412
- };
3413
-
3414
- const responsive = (theme) => {
3415
- return {
3416
- maxHeight: "100%",
3417
- overflow: "auto",
3418
- position: "relative",
3419
- // borderRadius: '10px',
3420
- "&.isLoading": {
3421
- overflow: "hidden"
3422
- },
3423
- ".responsiveTable__isLoading": {
3424
- position: "absolute",
3425
- top: 0,
3426
- left: 0,
3427
- right: 0,
3428
- bottom: 0,
3429
- background: tinycolor(theme.palette.background.paper).setAlpha(0.7).toRgbString(),
3430
- zIndex: 1,
3431
- display: "flex",
3432
- alignItems: "center",
3433
- justifyContent: "center"
3434
- },
3435
- ".cell__download__document": {
3436
- display: "flex",
3437
- gap: 3,
3438
- alignItems: "center",
3439
- justifyContent: "start",
3440
- "&, *": {
3441
- color: "palette.primary.main"
3442
- },
3443
- svg: {
3444
- flexShrink: 0
3445
- }
3446
- }
3447
- /* PREPEND HERE */
3448
- };
3449
- };
3450
-
3451
- var __defProp$8 = Object.defineProperty;
3452
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3453
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3454
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
3455
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3456
- var __spreadValues$8 = (a, b) => {
3457
- for (var prop in b || (b = {}))
3458
- if (__hasOwnProp$8.call(b, prop))
3459
- __defNormalProp$8(a, prop, b[prop]);
3460
- if (__getOwnPropSymbols$8)
3461
- for (var prop of __getOwnPropSymbols$8(b)) {
3462
- if (__propIsEnum$8.call(b, prop))
3463
- __defNormalProp$8(a, prop, b[prop]);
3464
- }
3465
- return a;
3466
- };
3467
- const secondary = {
3468
- variant: "layout.common.tables.primary",
3469
- borderColor: "components.secondaryTable.borderColor",
3470
- "& thead": {
3471
- "tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
3472
- "& th, & td": () => __spreadValues$8({}, getColorsAndStatesByPath("components.secondaryTable.header"))
3473
- }
3474
- },
3475
- "& tbody": {
3476
- tr: __spreadValues$8({
3477
- "&:nth-of-type(2n)": {
3478
- backgroundColor: "components.secondaryTable.body.evenRowsBackgroundColor"
3479
- },
3480
- td: {
3481
- borderColor: "components.secondaryTable.body.borderColor"
3482
- },
3483
- '&[aria-selected="true"]': {
3484
- backgroundColor: "components.secondaryTable.body.selectedRows.backgroundColor",
3485
- "& td": {
3486
- borderColor: "components.secondaryTable.body.selectedRows.borderColor"
3487
- },
3488
- color: "components.secondaryTable.body.selectedRows.color"
3489
- },
3490
- borderBottomWidth: "1px",
3491
- borderBottomStyle: "solid"
3492
- }, getColorsAndStatesByPath("components.secondaryTable.body", {
3493
- states: {
3494
- disabled: false,
3495
- readonly: false,
3496
- active: false,
3497
- hover: false,
3498
- checked: false,
3499
- focus: false,
3500
- selected: false
3501
- }
3502
- }))
3503
- }
3504
- };
3505
-
3506
- var __defProp$7 = Object.defineProperty;
3507
- var __defProps$2 = Object.defineProperties;
3508
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3509
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
3510
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
3511
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
3512
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3513
- var __spreadValues$7 = (a, b) => {
3514
- for (var prop in b || (b = {}))
3515
- if (__hasOwnProp$7.call(b, prop))
3516
- __defNormalProp$7(a, prop, b[prop]);
3517
- if (__getOwnPropSymbols$7)
3518
- for (var prop of __getOwnPropSymbols$7(b)) {
3519
- if (__propIsEnum$7.call(b, prop))
3520
- __defNormalProp$7(a, prop, b[prop]);
3521
- }
3522
- return a;
3523
- };
3524
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3525
- const clean = (theme) => {
3526
- return __spreadProps$2(__spreadValues$7({
3527
- variant: "colors.tables.primary",
3528
- width: "100%",
3529
- backgroundColor: "components.cleanTable.body.backgroundColor",
3530
- border: "1px solid",
3531
- borderColor: "components.cleanTable.borderColor",
3532
- borderCollapse: "inherit",
3533
- borderSpacing: 0,
3534
- tableLayout: "fixed",
3535
- selection__keyHandler: {
3536
- maxHeight: "30vh"
3537
- },
3538
- thead: {
3539
- zIndex: 1,
3540
- position: "sticky",
3541
- insetBlockStart: 0,
3542
- backgroundColor: "palette.background.paper",
3543
- "tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
3544
- "th, td": __spreadProps$2(__spreadValues$7({
3545
- variant: "buttons.primary",
3546
- width: "breakWidth",
3547
- backgroundColor: "palette.background.paper",
3548
- borderColor: "palette.primary.dark",
3549
- borderRadius: 0,
3550
- borderStyle: "solid",
3551
- borderWidth: "1px",
3552
- color: "primary.text.primary",
3553
- display: "table-cell",
3554
- verticalAlign: "center",
3555
- wordBreak: "break-word",
3556
- p: 0,
3557
- px: 0,
3558
- py: 0,
3559
- border: "none",
3560
- borderBottom: "1px solid #ccc",
3561
- '&[role="presentation"]': {
3562
- display: "none"
3563
- }
3564
- }, theme.palette.getStatesFromPath("components.cleanTable.header")), {
3565
- "& *": {
3566
- color: "inherit"
3567
- },
3568
- ".headButton__label": {
3569
- fontWeight: "bold",
3570
- textAlign: "left",
3571
- p: 0,
3572
- d: "",
3573
- "& > *": {
3574
- py: responsive$1({ 0: 3, 4: 4 }),
3575
- px: 4
3576
- }
3577
- },
3578
- ".headButton__resizer": {
3579
- width: "20px",
3580
- cursor: "ew-resize",
3581
- zIndex: 1e3,
3582
- position: "absolute",
3583
- right: "-10px",
3584
- height: "100%"
3585
- },
3586
- "&:last-of-type .headButton__resizer": {
3587
- right: "0px"
3588
- },
3589
- "&.additionalColumn": {
3590
- minWidth: "50px",
3591
- maxWidth: "50px",
3592
- width: "50px",
3593
- p: 0,
3594
- textAlign: "center",
3595
- verticalAlign: "center"
3596
- },
3597
- ".headButton__container": {
3598
- width: "100%",
3599
- display: "flex",
3600
- alignItems: "center",
3601
- justifyContent: "space-between",
3602
- gap: 3,
3603
- svg: {
3604
- flexShrink: 0
3605
- }
3606
- },
3607
- "&:not(:last-of-type)": {
3608
- "&>div": {
3609
- borderRightWidth: "1px"
3610
- }
3611
- }
3612
- }),
3613
- "th.requiredFilterColumn": {
3614
- borderLeft: "4px solid !important",
3615
- borderLeftColor: "palette.error.main !important"
3616
- }
3617
- },
3618
- "tr.filtersRow, tr.responsiveTable__filters__row": {
3619
- backgroundColor: "components.cleanTable.body.backgroundColor",
3620
- "th.noFilter": {
3621
- background: "transparent"
3622
- },
3623
- "td.requiredFilter__Border": {
3624
- borderLeftStyle: "solid !important",
3625
- borderLeftWidth: "4px !important",
3626
- borderLeftColor: "palette.error.main"
3627
- },
3628
- td: {
3629
- "input:not([disabled]), select:not([disabled])": {
3630
- border: "1px solid white"
3631
- },
3632
- background: "transparent",
3633
- border: "1px solid",
3634
- borderColor: "components.cleanTable.body.borderColor",
3635
- p: 0
3636
- },
3637
- transition: "height 0.3s",
3638
- "&.hidden": {
3639
- height: "0",
3640
- overflow: "hidden",
3641
- p: spacing(0),
3642
- border: "none",
3643
- "& *": {
3644
- height: "0",
3645
- overflow: "hidden",
3646
- fontSize: 0,
3647
- lineHeight: 0,
3648
- p: spacing(0),
3649
- border: "none"
3650
- }
3651
- }
3652
- }
3653
- },
3654
- tbody: {
3655
- tr: __spreadProps$2(__spreadValues$7(__spreadProps$2(__spreadValues$7({}, theme.palette.getStatesFromPath("components.cleanTable.body", {
3656
- states: {
3657
- disabled: false,
3658
- readonly: false,
3659
- active: false,
3660
- hover: false,
3661
- checked: false,
3662
- focus: false,
3663
- path: false,
3664
- selected: false
3665
- }
3666
- })), {
3667
- "&:nth-of-type(2n)": {
3668
- backgroundColor: "components.cleanTable.body.evenRowsBackgroundColor"
3669
- },
3670
- "&.non-selectable": {
3671
- cursor: "not-allowed"
3672
- },
3673
- "&.hidden": {
3674
- display: "none"
3675
- },
3676
- "&.locked": {
3677
- background: "palette.gray.900",
3678
- td: {
3679
- borderColor: "palette.gray.850"
3680
- }
3681
- }
3682
- }), getSelectedColors(theme.palette)), {
3683
- "&.draggingRow": {
3684
- outline: "3px dotted",
3685
- outlineColor: "components.cleanTable.header.borderColor",
3686
- outlineOffset: "-3px",
3687
- "*": {
3688
- outline: "none !important"
3689
- }
3690
- },
3691
- ".rowStatesList": {
3692
- display: "flex",
3693
- gap: spacing(3),
3694
- alignItems: "center",
3695
- svg: {
3696
- width: "smallIcon",
3697
- height: "smallIcon",
3698
- cursor: "pointer"
3699
- }
3700
- },
3701
- td: {
3702
- border: "none",
3703
- display: "table-cell",
3704
- p: 0,
3705
- overflow: "hidden",
3706
- whiteSpace: "nowrap",
3707
- textOverflow: "ellipsis",
3708
- wordBreak: "break-word",
3709
- button: {
3710
- height: "fit-content",
3711
- display: "flex"
3712
- },
3713
- "&.stickyColumn": {
3714
- position: "sticky",
3715
- left: 0,
3716
- backgroundColor: "components.cleanTable.body.backgroundColor"
3717
- },
3718
- ".moreInformationButton": {
3719
- width: "30px",
3720
- height: "30px",
3721
- padding: "3px",
3722
- border: "none",
3723
- background: "transparent"
3724
- },
3725
- ".autoellipsis__container": {
3726
- width: "100%"
3727
- },
3728
- "& > *": {
3729
- py: spacing(3),
3730
- px: 4
3731
- },
3732
- borderBottomWidth: "1px",
3733
- borderBottomStyle: "solid",
3734
- borderBottomColor: "components.cleanTable.body.borderColor"
3735
- }
3736
- }),
3737
- ".responsiveTable__additionalInfoContainer": {
3738
- background: "components.cleanTable.body.additionalInfoButton.backgroundColor",
3739
- display: "grid",
3740
- gridTemplateColumns: responsive$1({
3741
- 0: "repeat(2, 1fr)",
3742
- 5: "repeat(4, 1fr)"
3743
- }),
3744
- columnGap: 3,
3745
- rowGap: 2,
3746
- ".listPanel__details": {
3747
- pl: 6
3748
- }
3749
- },
3750
- ".responsiveTable__additionalInfoContainer .responsiveTable__additionalInfoItem.separator": {
3751
- gridColumnStart: "1",
3752
- gridColumnEnd: "5",
3753
- borderBottom: "1px solid",
3754
- borderBottomColor: "palette.gray.700",
3755
- height: "auto"
3756
- }
3757
- },
3758
- ".editionMode": {
3759
- border: "3px solid",
3760
- borderColor: "components.cleanTable.header.borderColor",
3761
- borderWidth: "1.5px",
3762
- borderStyle: "dotted"
3763
- },
3764
- ".stateCell": {
3765
- width: "50px",
3766
- maxWidth: "50px",
3767
- minWidth: "50px",
3768
- textAlign: "center",
3769
- verticalAlign: "middle"
3770
- }
3771
- }, getSelectionStyles()), {
3772
- ".no__registers": {
3773
- py: 6,
3774
- minWidth: "200px"
3775
- },
3776
- ".requiredFilter__Column": {
3777
- fontWeight: "bold"
3778
- },
3779
- ".bold": {
3780
- fontWeight: "bold"
3781
- },
3782
- ".light": {
3783
- color: "palette.gray.700"
3784
- },
3785
- ".additionalInfo__cell": {
3786
- path: {
3787
- fill: "components.cleanTable.body.additionalInfoButton.color"
3788
- }
3789
- },
3790
- ".additionalInfo__cell, .stateCell": {
3791
- verticalAlign: "middle"
3792
- },
3793
- ".isAcquired": {
3794
- td: {
3795
- div: {
3796
- color: "acquiredColor"
3797
- }
3798
- }
3799
- }
3800
- });
3801
- };
3802
-
3803
- const tables = (theme) => {
3804
- return {
3805
- accordion: accordion$1,
3806
- information,
3807
- primary: primary$4(theme),
3808
- print,
3809
- responsive: responsive(theme),
3810
- secondary,
3811
- clean: clean(theme)
3812
- /* PREPEND HERE */
3813
- };
3814
- };
3815
-
3816
- const captcha = {
3817
- display: "flex",
3818
- flexDirection: "column",
3819
- gap: spacing(2),
3820
- ".captcha__imageContainer": {
3821
- border: "1px solid",
3822
- borderColor: "palette.border.field",
3823
- p: spacing(4)
3824
- },
3825
- ".captcha__inputContainer": {
3826
- display: "flex",
3827
- gap: spacing(2),
3828
- justifyContent: "stretch",
3829
- input: {
3830
- flexGrow: 1,
3831
- width: "100%"
3832
- },
3833
- ".captcha__buttons": {
3834
- width: "24px",
3835
- flexDirection: "column",
3836
- display: "flex",
3837
- gap: spacing(2),
3838
- flexShrink: 0,
3839
- button: {
3840
- width: "24px",
3841
- height: "24px",
3842
- p: "5px",
3843
- variant: "buttons.icon-outline",
3844
- svg: {
3845
- color: "palette.text.primary",
3846
- height: "16px",
3847
- width: "16px"
3848
- }
3849
- }
3850
- }
3851
- }
3852
- };
3853
-
3854
- const forms = {
3855
- captcha
3856
- /* PREPEND HERE */
3857
- };
3858
-
3859
- var __defProp$6 = Object.defineProperty;
3860
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3861
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3862
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3863
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3864
- var __spreadValues$6 = (a, b) => {
3865
- for (var prop in b || (b = {}))
3866
- if (__hasOwnProp$6.call(b, prop))
3867
- __defNormalProp$6(a, prop, b[prop]);
3868
- if (__getOwnPropSymbols$6)
3869
- for (var prop of __getOwnPropSymbols$6(b)) {
3870
- if (__propIsEnum$6.call(b, prop))
3871
- __defNormalProp$6(a, prop, b[prop]);
3872
- }
3873
- return a;
3874
- };
3875
- const primary$3 = (theme) => {
3876
- return {
3877
- /* PREPEND HERE */
3878
- position: "relative",
3879
- '[role="tree"]:focus': {
3880
- outline: "none",
3881
- ".focus": focusOutline
3882
- },
3883
- ul: {
3884
- listStyle: "none",
3885
- p: 0
3886
- },
3887
- ".tree__searchLabelBox": {
3888
- alignItems: "center",
3889
- borderRadius: "2px",
3890
- display: "flex",
3891
- float: "right",
3892
- justifyContent: "center",
3893
- position: "sticky",
3894
- right: "4px",
3895
- top: "4px",
3896
- transform: "translateX(0)",
3897
- width: "100%",
3898
- zIndex: "stickyElements",
3899
- ".tree__loading": {
3900
- position: "fixed",
3901
- top: 0,
3902
- right: "4px",
3903
- height: "iconMd",
3904
- width: "iconMd",
3905
- background: "palette.background.paper"
3906
- },
3907
- button: {
3908
- cursor: "pointer",
3909
- "&:hover": {
3910
- textDecoration: "underline"
3911
- }
3912
- }
3913
- },
3914
- ".tree__searchLabel": __spreadValues$6({
3915
- alignItems: "center",
3916
- display: "flex",
3917
- justifyContent: "center",
3918
- position: "fixed",
3919
- p: "2px 5px",
3920
- right: 0,
3921
- top: 0
3922
- }, theme.palette.getOneState(
3923
- { backgroundColor: "palette.background.paper" },
3924
- "selected"
3925
- )),
3926
- '[role="treeitem"]': {
3927
- '&[aria-expanded="false"] ul': {
3928
- display: "none"
3929
- },
3930
- '&[aria-selected="true"] > .tree__nodeItemLabel': theme.palette.getOneState(
3931
- { backgroundColor: "palette.background.paper" },
3932
- "selected"
3933
- ),
3934
- background: "transparent"
3935
- },
3936
- ".tree__nodeItemLabel": {
3937
- display: "flex",
3938
- flexWrap: "nowrap",
3939
- alignItems: "center",
3940
- wordBreak: "break-all",
3941
- button: {
3942
- cursor: "pointer",
3943
- "&:hover": {
3944
- textDecoration: "underline"
3945
- },
3946
- span: {
3947
- textOverflow: "ellipsis",
3948
- overflow: "hidden",
3949
- whiteSpace: "nowrap"
3950
- }
3951
- },
3952
- ".tree__nodeItemLabelRenderer": {
3953
- display: "flex",
3954
- overflow: " hidden",
3955
- width: "100%"
3956
- },
3957
- ".button__content": {
3958
- textAlign: "left"
3959
- },
3960
- "& > *:not(.tree__nodeItemLabelRenderer)": {
3961
- flexShrink: 0,
3962
- textAlign: "left"
3963
- },
3964
- "&:hover": theme.palette.getOneState(
3965
- { backgroundColor: "palette.background.paper" },
3966
- "hover"
3967
- )
3968
- },
3969
- ".tree__expanderWrapper": {
3970
- display: "inline-flex",
3971
- ml: "-10px",
3972
- pl: "5px",
3973
- "svg.tree__expandIcon": {
3974
- color: "palette.text.primary"
3975
- }
3976
- },
3977
- ".tree__node__icon": {
3978
- mr: "3"
3979
- },
3980
- ".spacer": {
3981
- borderLeft: "1px dotted",
3982
- borderLeftColor: "palette.border.section",
3983
- width: "20px",
3984
- alignSelf: "stretch",
3985
- transform: "translateX(5px)"
3986
- }
3987
- };
3988
- };
3989
-
3990
- const trees = {
3991
- primary: primary$3
3992
- };
3993
-
3994
- const primary$2 = {
3995
- background: "white",
3996
- border: "1px solid #ccc",
3997
- p: 3,
3998
- zIndex: "tooltip"
3999
- /* PREPEND HERE */
4000
- };
4001
-
4002
- const tooltips = {
4003
- primary: primary$2
4004
- /* PREPEND HERE */
4005
- };
4006
-
4007
- var __defProp$5 = Object.defineProperty;
4008
- var __defProps$1 = Object.defineProperties;
4009
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4010
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4011
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4012
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4013
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4014
- var __spreadValues$5 = (a, b) => {
4015
- for (var prop in b || (b = {}))
4016
- if (__hasOwnProp$5.call(b, prop))
4017
- __defNormalProp$5(a, prop, b[prop]);
4018
- if (__getOwnPropSymbols$5)
4019
- for (var prop of __getOwnPropSymbols$5(b)) {
4020
- if (__propIsEnum$5.call(b, prop))
4021
- __defNormalProp$5(a, prop, b[prop]);
4022
- }
4023
- return a;
4024
- };
4025
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4026
- const common$1 = (type) => __spreadProps$1(__spreadValues$5({}, getColorsByPath(type)), {
4027
- gap: spacing(1),
4028
- justifyContent: "stretch",
4029
- "&.onlyRefresh": {
4030
- justifyContent: "end"
4031
- },
4032
- alignItems: "center",
4033
- padding: 1,
4034
- display: "flex",
4035
- ".pagination__leftToolbar": {
4036
- alignItems: "center",
4037
- display: "flex",
4038
- width: "100%"
4039
- },
4040
- ".pagination__deleteLabels": {
4041
- overflow: "hidden",
4042
- textOverflow: "ellipsis",
4043
- whiteSpace: "nowrap"
4044
- },
4045
- ".pagination__selectPage": {
4046
- width: "80px",
4047
- top: "80px",
4048
- textAlign: "center"
4049
- },
4050
- ".iconButton": __spreadProps$1(__spreadValues$5({
4051
- height: "36px",
4052
- width: "36px"
4053
- }, getColorsAndStatesByPath(`${type}.icons`, {
4054
- states: { disabled: false, path: false }
4055
- })), {
4056
- "&:disabled": {
4057
- background: "transparent"
4058
- }
4059
- }),
4060
- ".recordsCounter": {
4061
- color: "palette.primary.contrastText",
4062
- pl: spacing(3)
4063
- },
4064
- ".reachedMax": {
4065
- color: "red",
4066
- pl: 2
4067
- },
4068
- ".pagination__controls": {
4069
- flexGrow: 1,
4070
- justifyContent: "center",
4071
- flexShrink: 0,
4072
- "&.onlyRefresh": {
4073
- justifyContent: "end"
4074
- },
4075
- alignItems: "stretch",
4076
- padding: 1,
4077
- display: "flex",
4078
- width: responsive$1({ 0: "max-content", 2: "auto" }),
4079
- "select ~ svg": {
4080
- display: "none"
4081
- },
4082
- ".input": __spreadProps$1(__spreadValues$5({
4083
- display: "flex",
4084
- alignItems: "center",
4085
- gap: spacing(3),
4086
- fontSize: "1em",
4087
- border: "1px solid",
4088
- paddingY: 1,
4089
- paddingX: 4
4090
- }, getColorsByPath(`${type}.pagesBox`)), {
4091
- input: {
4092
- font: "inherit",
4093
- background: "none",
4094
- border: "none",
4095
- width: "30px",
4096
- padding: 0,
4097
- textAlign: "center"
4098
- },
4099
- span: {
4100
- font: "inherit",
4101
- display: "block",
4102
- width: "30px"
4103
- }
4104
- })
4105
- },
4106
- ".infoTooltip": {
4107
- position: "relative",
4108
- display: "inline-block",
4109
- borderBottom: "1px dotted black",
4110
- cursor: "pointer",
4111
- backgroundColor: "#f7d97f"
4112
- },
4113
- ".pagination__information": {
4114
- p: 1,
4115
- ".pagination__infoIcon": {
4116
- display: "flex"
4117
- }
4118
- },
4119
- ".pagination__alertInfo": __spreadValues$5({
4120
- variant: "buttons.icon-primary"
4121
- }, getColorsAndStatesByPath("buttons.iconAlert")),
4122
- ".pagination__rightToolbar": {
4123
- display: "flex",
4124
- gap: 0,
4125
- width: "100%",
4126
- justifyContent: "end",
4127
- ".pagination__deleteFiltersButton": {
4128
- variant: "buttons.primary-sm",
4129
- textDecoration: "none",
4130
- px: 3,
4131
- ".button__content": {
4132
- display: "flex",
4133
- flexDirection: "row",
4134
- gap: 3
4135
- },
4136
- ".pagination__appliedFiltersLabel": {
4137
- backgroundColor: "palette.primary.contrastText",
4138
- color: "palette.text.title",
4139
- borderRadius: "100%",
4140
- display: "inline-flex",
4141
- alignItems: "center",
4142
- justifyContent: "center",
4143
- minWidth: "1.5em",
4144
- "&.withFilters": {
4145
- backgroundColor: "favorite",
4146
- color: "palette.text.primary"
4147
- }
4148
- }
4149
- }
4150
- }
4151
- });
4152
-
4153
- var __defProp$4 = Object.defineProperty;
4154
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
4155
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
4156
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
4157
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4158
- var __spreadValues$4 = (a, b) => {
4159
- for (var prop in b || (b = {}))
4160
- if (__hasOwnProp$4.call(b, prop))
4161
- __defNormalProp$4(a, prop, b[prop]);
4162
- if (__getOwnPropSymbols$4)
4163
- for (var prop of __getOwnPropSymbols$4(b)) {
4164
- if (__propIsEnum$4.call(b, prop))
4165
- __defNormalProp$4(a, prop, b[prop]);
4166
- }
4167
- return a;
4168
- };
4169
- const primary$1 = __spreadValues$4({}, common$1("components.paginationPrimary"));
4170
-
4171
- var __defProp$3 = Object.defineProperty;
4172
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4173
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4174
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4175
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4176
- var __spreadValues$3 = (a, b) => {
4177
- for (var prop in b || (b = {}))
4178
- if (__hasOwnProp$3.call(b, prop))
4179
- __defNormalProp$3(a, prop, b[prop]);
4180
- if (__getOwnPropSymbols$3)
4181
- for (var prop of __getOwnPropSymbols$3(b)) {
4182
- if (__propIsEnum$3.call(b, prop))
4183
- __defNormalProp$3(a, prop, b[prop]);
4184
- }
4185
- return a;
4186
- };
4187
- const datagrid = __spreadValues$3({}, common$1("components.paginationDatagrid"));
4188
-
4189
- var __defProp$2 = Object.defineProperty;
4190
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
4191
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
4192
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
4193
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4194
- var __spreadValues$2 = (a, b) => {
4195
- for (var prop in b || (b = {}))
4196
- if (__hasOwnProp$2.call(b, prop))
4197
- __defNormalProp$2(a, prop, b[prop]);
4198
- if (__getOwnPropSymbols$2)
4199
- for (var prop of __getOwnPropSymbols$2(b)) {
4200
- if (__propIsEnum$2.call(b, prop))
4201
- __defNormalProp$2(a, prop, b[prop]);
4202
- }
4203
- return a;
4204
- };
4205
- const primary = __spreadValues$2({}, common$1("components.paginationSecondary"));
4206
-
4207
- const pagination = {
4208
- primary: primary$1,
4209
- datagrid,
4210
- secondary: primary
4211
- };
4212
-
4213
- const accordion = {
4214
- primary: {
4215
- "&, .accordion__item": {
4216
- display: "flex",
4217
- flexDirection: "column",
4218
- alignItems: "stretch"
4219
- },
4220
- ".accordion__item__button__leftGroup, .accordion__item__button__rightGroup": {
4221
- alignItems: "center",
4222
- display: "flex",
4223
- gap: 3,
4224
- "& > *": {
4225
- flexShrink: 0,
4226
- "&.accordion__item__button__label": {
4227
- flexShrink: 1
4228
- }
4229
- }
4230
- },
4231
- ".accordion__item__button__label": {
4232
- overflow: "hidden",
4233
- textOverflow: "ellipsis",
4234
- whiteSpace: "nowrap",
4235
- flexShrink: 1,
4236
- color: "palette.primary.contrastText",
4237
- fontSize: 16
4238
- },
4239
- ".accordion__item__button__check": {
4240
- width: "32px",
4241
- height: "32px",
4242
- background: "palette.background.paper",
4243
- border: "1px solid",
4244
- // borderColor: 'palette.border.field',
4245
- cursor: "pointer",
4246
- display: "flex",
4247
- alignItems: "stretch",
4248
- justifyContent: "stretch",
4249
- p: 2,
4250
- svg: {
4251
- color: "palette.text.primary",
4252
- height: "100%",
4253
- width: "100%"
4254
- }
4255
- },
4256
- ".accordion__item:last-of-type > *": {
4257
- borderBottom: "1px solid",
4258
- borderBottomColor: "palette.border.section"
4259
- },
4260
- ".accordion__item__content > *": {
4261
- p: 4,
4262
- borderLeft: "1px solid",
4263
- borderRight: "1px solid",
4264
- borderLeftColor: "palette.border.section",
4265
- borderRightColor: "palette.border.section"
4266
- },
4267
- ".accordion__item__button": {
4268
- width: "100%",
4269
- p: 3,
4270
- ".button__content": {
4271
- alignItems: "center",
4272
- display: "flex",
4273
- gap: spacing(3),
4274
- justifyContent: "space-between",
4275
- width: "100%"
4276
- }
4277
- },
4278
- ".accordion__cell__renderer": {
4279
- display: "flex"
4280
- }
4281
- },
4282
- panels: {
4283
- variant: "layout.common.components.accordion.primary",
4284
- overflowX: "hidden",
4285
- ".accordion__item__button": {
4286
- color: "palette.text.primary",
4287
- pl: 4,
4288
- background: "palette.background.paper",
4289
- border: "none",
4290
- borderTop: "1px solid",
4291
- borderColor: "palette.border.section",
4292
- boxShadow: "rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px",
4293
- ":hover": {
4294
- background: "palette.gray.900",
4295
- borderColor: "palette.border.section",
4296
- color: "palette.text.primary"
4297
- },
4298
- ":active": {
4299
- background: "palette.border.section"
4300
- },
4301
- svg: {
4302
- path: {
4303
- fill: "palette.text.primary"
4304
- }
4305
- }
4306
- },
4307
- ".accordion__item__button__label": {
4308
- color: "palette.text.primary",
4309
- fontWeight: "400"
4310
- },
4311
- '.accordion__item__content[aria-hidden="true"]': {
4312
- border: "none"
4313
- },
4314
- ".accordion__item__button__check": {
4315
- borderColor: "palette.border.section",
4316
- borderRadius: "3px"
4317
- },
4318
- ".accordion__item__content": {
4319
- background: "palette.secondary.light",
4320
- '[data-variant="link"]': {
4321
- px: 0
4322
- },
4323
- div: {
4324
- border: "none"
4325
- }
4326
- }
4327
- }
4328
- };
4329
-
4330
- const chat = {
4331
- /* PREPEND HERE */
4332
- height: "calc(100vh - 300px)",
4333
- width: "100%",
4334
- border: "1px solid",
4335
- borderColor: "palette.border.section",
4336
- ".autoscrollContainer": {
4337
- display: "flex",
4338
- flexDirection: "column",
4339
- width: "100%",
4340
- gap: 3,
4341
- p: 3
4342
- },
4343
- ".history__message": {
4344
- borderRadius: "2px",
4345
- p: 3,
4346
- width: "80%",
4347
- wordWrap: "break-word",
4348
- whiteSpace: "pre-wrap",
4349
- "&.user": {
4350
- alignSelf: "end",
4351
- backgroundColor: "#90ee902b"
4352
- },
4353
- "&.system": {
4354
- alignSelf: "start",
4355
- backgroundColor: "#5701f52b"
4356
- },
4357
- "&.warning": {
4358
- alignSelf: "start",
4359
- backgroundColor: "#ffff0024",
4360
- width: "100%"
4361
- },
4362
- "&.error": {
4363
- alignSelf: "start",
4364
- backgroundColor: "#fd84212b",
4365
- width: "100%"
4366
- },
4367
- "&.information": {
4368
- alignSelf: "start",
4369
- backgroundColor: "#2222cc2b",
4370
- width: "100%"
4371
- },
4372
- "&.multipleChoice": {
4373
- p: 0
4374
- },
4375
- ".multipleChoiceMessage:not(.customRenderer)": {
4376
- background: "#0178f52b",
4377
- td: { textAlign: "center" },
4378
- th: { backgroundColor: "#14597bab" },
4379
- table: { borderBottom: "1px solid" },
4380
- "button.multipleChoice__option": {
4381
- width: "-webkit-fill-available",
4382
- backgroundColor: "#14597bab"
4383
- },
4384
- ".taskInfoDiv": {
4385
- display: "flex",
4386
- justifyContent: "space-evenly"
4387
- }
4388
- },
4389
- ".multipleChoiceMessage.customRenderer": {
4390
- display: "flex",
4391
- flexDirection: "column",
4392
- gap: 3,
4393
- "& > p": {
4394
- background: "#0178f52b",
4395
- p: 3
4396
- },
4397
- ".selection__keyHandler": {
4398
- m: 0,
4399
- padding: 3,
4400
- border: "1px solid",
4401
- borderColor: "palette.border.article",
4402
- borderRadius: "panel"
4403
- }
4404
- }
4405
- },
4406
- ".help__container": {
4407
- display: "flex",
4408
- flexDirection: "column",
4409
- gap: 4
4410
- },
4411
- ".functionHelp": {
4412
- display: "flex",
4413
- flexDirection: "column",
4414
- gap: 3,
4415
- ".functionHelp__description, .functionHelp__usage": {
4416
- pl: 5
4417
- },
4418
- ".history__message": {
4419
- wordWrap: "break-word",
4420
- overflow: "hidden",
4421
- whiteSpace: "break-spaces"
4422
- }
4423
- }
4424
- };
4425
-
4426
- const components = {
4427
- /* PREPEND HERE */
4428
- accordion,
4429
- pagination,
4430
- chat
4431
- };
4432
-
4433
- const common = (theme) => {
4434
- return {
4435
- forms,
4436
- modals,
4437
- tables: tables(theme),
4438
- components,
4439
- trees,
4440
- tooltips
4441
- /* PREPEND HERE */
4442
- };
4443
- };
4444
-
4445
- const collector = {
4446
- /* PREPEND HERE */
4447
- formContainer: {
4448
- width: "400px",
4449
- form: {
4450
- display: "flex",
4451
- flexDirection: "column",
4452
- gap: 3
4453
- },
4454
- ".collector__buttons": {
4455
- display: "flex",
4456
- justifyContent: "end",
4457
- alignItems: "end",
4458
- gap: 3
4459
- }
4460
- },
4461
- modal: {
4462
- ".modal__main": {
4463
- maxWidth: "500px"
4464
- }
4465
- }
4466
- };
4467
-
4468
- const util = {
4469
- collector
4470
- /* PREPEND HERE */
4471
- };
4472
-
4473
- const layout = (theme) => {
4474
- return {
4475
- common: common(theme),
4476
- util
4477
- /* PREPEND HERE */
4478
- };
4479
- };
4480
-
4481
- const makeTheme = (t) => {
4482
- return t;
4483
- };
4484
- let declaredStyles = {};
4485
- function getMainTheme(customTheme, customPalette, themeModifier) {
4486
- var _a, _b;
4487
- const palette = parsePalette(merge({}, defaultPalette, customPalette));
4488
- window.currentPalette = palette;
4489
- const theme = makeTheme(
4490
- merge(baseTheme(), { layout: declaredStyles }, (_a = customTheme == null ? void 0 : customTheme()) != null ? _a : {}, {
4491
- palette: {}
4492
- })
4493
- );
4494
- theme.palette = palette;
4495
- theme.colors = getThemeColorsObject(theme);
4496
- theme.forms = forms$1(theme);
4497
- theme.layout = merge(layout(theme), theme.layout);
4498
- theme.styles = merge({}, customTheme == null ? void 0 : customTheme().styles, { root: theme.layout.root });
4499
- return (_b = themeModifier == null ? void 0 : themeModifier(theme)) != null ? _b : theme;
4500
- }
4501
-
4502
- var __defProp$1 = Object.defineProperty;
4503
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
4504
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
4505
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
4506
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4507
- var __spreadValues$1 = (a, b) => {
4508
- for (var prop in b || (b = {}))
4509
- if (__hasOwnProp$1.call(b, prop))
4510
- __defNormalProp$1(a, prop, b[prop]);
4511
- if (__getOwnPropSymbols$1)
4512
- for (var prop of __getOwnPropSymbols$1(b)) {
4513
- if (__propIsEnum$1.call(b, prop))
4514
- __defNormalProp$1(a, prop, b[prop]);
4515
- }
4516
- return a;
4517
- };
4518
- const injectedStyles = {};
4519
- const mainThemeEmitter = new class MainThemeEmitter extends EventEmitter {
4520
- }();
4521
- function handleNewStyles(ev) {
4522
- injectedStyles[ev.path] = ev.styles;
4523
- }
4524
- mainThemeEmitter.on("newStyles", handleNewStyles);
4525
- function useMainTheme(customTheme, customPalette, themeModifier) {
4526
- const [theme, setTheme] = useState(
4527
- getMainTheme(customTheme, customPalette, themeModifier)
4528
- );
4529
- const previousTheme = useRef(customTheme);
4530
- const previousPalette = useRef(customPalette);
4531
- if (previousTheme.current !== customTheme)
4532
- setTheme(getMainTheme(customTheme));
4533
- previousTheme.current = customTheme;
4534
- if (previousPalette.current !== customPalette)
4535
- setTheme(getMainTheme(customTheme, customPalette));
4536
- previousPalette.current = customPalette;
4537
- useMount(() => {
4538
- setTheme((current) => {
4539
- mainThemeEmitter.off("newStyles", handleNewStyles);
4540
- let initialTheme = __spreadValues$1({}, current);
4541
- Object.entries(injectedStyles).forEach(([path, styles]) => {
4542
- const newStyles = setValueByPath({}, path, styles);
4543
- initialTheme = merge(initialTheme, newStyles);
4544
- });
4545
- return initialTheme;
4546
- });
4547
- return mainThemeEmitter.on("newStyles", (ev) => {
4548
- const newStyles = setValueByPath({}, ev.path, ev.styles);
4549
- setTheme((current) => merge(__spreadValues$1({}, current), newStyles));
4550
- });
4551
- });
4552
- return theme;
4553
- }
4554
-
4555
- const CustomThemeProvider = ({
4556
- children,
4557
- customTheme
4558
- }) => {
4559
- const theme = getMainTheme(customTheme);
4560
- return /* @__PURE__ */ jsx(ThemeUIProvider, { theme, children });
4561
- };
4562
-
4563
- var __defProp = Object.defineProperty;
4564
- var __defProps = Object.defineProperties;
4565
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4566
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4567
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4568
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
4569
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4570
- var __spreadValues = (a, b) => {
4571
- for (var prop in b || (b = {}))
4572
- if (__hasOwnProp.call(b, prop))
4573
- __defNormalProp(a, prop, b[prop]);
4574
- if (__getOwnPropSymbols)
4575
- for (var prop of __getOwnPropSymbols(b)) {
4576
- if (__propIsEnum.call(b, prop))
4577
- __defNormalProp(a, prop, b[prop]);
4578
- }
4579
- return a;
4580
- };
4581
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4582
- function makeStyledComponent(displayName, stylesPath, styles, Component, unwraped = false) {
4583
- return Object.assign(
4584
- (props) => {
4585
- const avoidFirstRender = useRef(0);
4586
- const { theme: tuiTheme } = useThemeUI();
4587
- const theme = useMemo(
4588
- () => () => __spreadValues(__spreadValues({}, tuiTheme), setValueByPath({}, stylesPath, styles)),
4589
- [tuiTheme]
4590
- );
4591
- if (unwraped) {
4592
- return /* @__PURE__ */ jsx(CustomThemeProvider, { customTheme: theme, children: /* @__PURE__ */ jsx(NoThemePrevent, { avoidFirstRender, children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(Component, __spreadValues({}, props)) }) }) });
4593
- }
4594
- return /* @__PURE__ */ jsx(CustomThemeProvider, { customTheme: theme, children: /* @__PURE__ */ jsx(NoThemePrevent, { avoidFirstRender, children: /* @__PURE__ */ jsx(Box, __spreadProps(__spreadValues({ className: "variant__holder" }, getVariant(stylesPath)), { children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(Component, __spreadValues({}, props)) }) })) }) });
4595
- },
4596
- { displayName }
4597
- );
4598
- }
4599
- const NoThemePrevent = ({
4600
- avoidFirstRender,
4601
- children
4602
- }) => {
4603
- avoidFirstRender.current++;
4604
- if (avoidFirstRender.current <= 1)
4605
- return null;
4606
- return /* @__PURE__ */ jsx(Fragment, { children });
4607
- };
4608
-
4609
- function injectStyles(par1, par2) {
4610
- const path = typeof par1 === "string" ? par1 : "";
4611
- const styles = typeof par1 === "string" ? par2 : par1;
4612
- mainThemeEmitter.emit("newStyles", { path, styles });
4613
- }
4614
-
4615
- const spacingLayouts = [
4616
- "dense",
4617
- "clever",
4618
- "vertical__clever",
4619
- "horizontal__clever"
4620
- ];
4621
- function getSpacingLayouts() {
4622
- return {
4623
- "&.dense": {
4624
- px: 0,
4625
- py: 0
4626
- },
4627
- "&.horizontal__clever": {
4628
- px: 4,
4629
- py: 0
4630
- },
4631
- "&.vertical__clever": {
4632
- px: 0,
4633
- py: 4
4634
- },
4635
- "&.clever": {
4636
- px: 4,
4637
- py: 4
4638
- }
4639
- };
4640
- }
4641
-
4642
- let timeout = -1;
4643
- function logTheme(theme) {
4644
- clearTimeout(timeout);
4645
- timeout = setTimeout(() => {
4646
- console.info("Theme log: ", { theme });
4647
- }, 500);
4648
- }
4649
- const ApiaThemeProvider = ({
4650
- children,
4651
- customTheme,
4652
- customPalette,
4653
- themeModifier
4654
- }) => {
4655
- const parsedCustomPalette = useMemo(() => {
4656
- return customPalette == null ? void 0 : customPalette();
4657
- }, [customPalette]);
4658
- const theme = useMainTheme(
4659
- customTheme,
4660
- parsedCustomPalette,
4661
- themeModifier
4662
- );
4663
- logTheme(theme);
4664
- return /* @__PURE__ */ jsx(ThemeProvider, { theme, children });
4665
- };
4666
-
4667
- export { ApiaThemeProvider, applyStatesGetColor, focusOutline, getColorState, getColorStates, getColorsAndStatesByDefinition, getColorsAndStatesByPath, getColorsByDefinition, getColorsByPath, getOneColorState, getSpacingLayouts, getVariant, injectStyles, makeStyledComponent, parsePalette, responsive$1 as responsive, smallButton, spacing, spacingLayouts, useMainTheme };
4
+ export { ApiaThemeProvider } from './ApiaThemeProvider.js';
5
+ export { focusOutline, responsive, smallButton, spacing } from './util.js';
6
+ export { default as getColorState } from './base/colors/util/getColorState.js';
7
+ export { default as getColorStates } from './base/colors/util/getColorStates.js';
8
+ export { default as getColorsAndStatesByDefinition } from './base/colors/util/getColorsAndStatesByDefinition.js';
9
+ export { default as getColorsAndStatesByPath } from './base/colors/util/getColorsAndStatesByPath.js';
10
+ export { default as getOneColorState } from './base/colors/util/getOneColorState.js';
11
+ export { Alert, AspectImage, AspectRatio, Avatar, Badge, BaseStyles, Box, Button, Card, Checkbox, Close, CloseIcon, Container, Divider, Donut, Embed, Flex, Global, Grid, Heading, IconButton, Image, InitializeColorMode, Input, Label, Link, MenuButton, MenuIcon, Message, NavLink, Paragraph, Progress, Radio, Select, Slider, Spinner, Switch, Text, Textarea, createElement, css, get, merge, useColorMode, useThemeUI } from 'theme-ui';
12
+ export { makeStyledComponent } from './methods/makeStyledComponent.js';
13
+ export { injectStyles } from './methods/injectStyles.js';
14
+ export { getSpacingLayouts, spacingLayouts } from './methods/spacingLayout/index.js';
15
+ export { useMainTheme } from './methods/useMainTheme.js';
16
+ export { default as getColorsByDefinition } from './base/colors/util/getColorsByDefinition.js';
17
+ export { default as getColorsByPath } from './base/colors/util/getColorsByPath.js';
18
+ export { getVariant } from './util/getVariant.js';
19
+ export { MarkdownBlock } from './markdown/builder/elements/MarkdownBlock.js';
20
+ export { MarkdownBuilder } from './markdown/builder/MarkdownBuilder.js';
21
+ export { parseMarkdown } from './markdown/parseMarkdown.js';
22
+ export { MarkdownList } from './markdown/builder/elements/list.js';
23
+ export { MarkdownParagraph } from './markdown/builder/elements/paragraph.js';
24
+ export { MarkdownTable } from './markdown/builder/elements/table.js';
25
+ export { MarkdownTableOfContents } from './markdown/builder/elements/tableOfContents.js';
26
+ //# sourceMappingURL=index.js.map