@apia/theme 0.0.9-alpha.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cleanDist.json +3 -0
- package/dist/index.d.ts +314 -43
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -24
- package/dist/index.js.map +1 -0
- package/package.json +20 -11
package/cleanDist.json
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,50 +1,13 @@
|
|
|
1
|
-
import { Theme, ThemeUICSSObject, ResponsiveStyleValue } from 'theme-ui';
|
|
2
1
|
import * as theme_ui_jsx_runtime from 'theme-ui/jsx-runtime';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
declare function useMainTheme(customTheme?: Theme): Theme;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Permite crear un componente cuyos estilos pueden ser redefinidos por un
|
|
10
|
-
* usuario final.
|
|
11
|
-
*
|
|
12
|
-
* Esto es así puesto que los estilos definidos serán agregados a un árbol que
|
|
13
|
-
* el usuario puede consultar y sobreescribir. De esta manera los estilos
|
|
14
|
-
* finales del componente serán aquellos definidos en este método pero
|
|
15
|
-
* sobreescritos por los definidos por el usuario si es que existen.
|
|
16
|
-
*
|
|
17
|
-
* **Importante** Para aplicar la variante, se aplica un box alrededor del
|
|
18
|
-
* componente que se está renderizando, con className="variant__holder". En caso
|
|
19
|
-
* de que se quisiera evitar este comportamiento, se debe pasar unwraped = true
|
|
20
|
-
*
|
|
21
|
-
* @param displayName Este parámetro es importante para el debugger de React.
|
|
22
|
-
* @param stylesPath La ruta donde se aplicarán los estilos, es importante asegurarse de que esa ruta ya no está siendo utilizada por otro componente.
|
|
23
|
-
* @param styles Un objeto de estilos de ThemeUI
|
|
24
|
-
* @param Component La definición del componente.
|
|
25
|
-
* @returns Un componente reutilizable y exportable que tiene estilos aplicados.
|
|
26
|
-
*/
|
|
27
|
-
declare function makeStyledComponent<T extends object>(displayName: string, stylesPath: string, styles: ThemeUICSSObject, Component: FC<T>, unwraped?: boolean): ((props: T) => theme_ui_jsx_runtime.JSX.Element) & {
|
|
28
|
-
displayName: string;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Esta función permite agregar estilos al tema principal de la aplicación, de
|
|
33
|
-
* modo que estén disponibles para cualquier componente que lo requirea.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
*
|
|
37
|
-
* injectStyles('buttons.myRedButton', {
|
|
38
|
-
* variant: 'buttons.primary',
|
|
39
|
-
* backgroundColor: 'red',
|
|
40
|
-
* })
|
|
41
|
-
*/
|
|
42
|
-
declare function injectStyles(path: string, styles: ThemeUICSSObject): void;
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ReactNode, FC } from 'react';
|
|
4
|
+
import { Theme, ResponsiveStyleValue, ThemeUICSSObject } from 'theme-ui';
|
|
43
5
|
|
|
44
6
|
interface TThemeProvider {
|
|
45
7
|
children: ReactNode;
|
|
46
8
|
customTheme?: Theme;
|
|
47
9
|
}
|
|
10
|
+
declare const ThemeProviderContext: react.Context<Theme>;
|
|
48
11
|
declare const ThemeProvider: ({ children, customTheme }: TThemeProvider) => theme_ui_jsx_runtime.JSX.Element;
|
|
49
12
|
|
|
50
13
|
/**
|
|
@@ -78,7 +41,7 @@ declare function responsive<T>(values: {
|
|
|
78
41
|
* pt: spacing(8)
|
|
79
42
|
* }
|
|
80
43
|
*/
|
|
81
|
-
declare function spacing(index: number): number
|
|
44
|
+
declare function spacing(index: number): ResponsiveStyleValue<number>;
|
|
82
45
|
declare const smallButton: {
|
|
83
46
|
py: number;
|
|
84
47
|
px: number;
|
|
@@ -90,4 +53,312 @@ declare function getVariant(variant: string): {
|
|
|
90
53
|
'data-variant': string;
|
|
91
54
|
};
|
|
92
55
|
|
|
93
|
-
|
|
56
|
+
interface TGetColorsAndStatesOptions {
|
|
57
|
+
mergeObject?: Record<string, any>;
|
|
58
|
+
states?: {
|
|
59
|
+
active?: boolean;
|
|
60
|
+
checked?: boolean;
|
|
61
|
+
default?: boolean;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
focus?: boolean;
|
|
64
|
+
hover?: boolean;
|
|
65
|
+
readonly?: boolean;
|
|
66
|
+
selected?: boolean;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Esta función es útil para devolver los estados calculados por la aplicación
|
|
71
|
+
* dentro del objeto colors de ThemeUI. Si se desea calcular los estados en
|
|
72
|
+
* base a un color, se debe utilizar el método getColorsAndStatesByColor.
|
|
73
|
+
*/
|
|
74
|
+
declare function getColorsAndStatesByPath(path: string, options?: TGetColorsAndStatesOptions): Record<string, ThemeUICSSObject>;
|
|
75
|
+
|
|
76
|
+
interface IColorDefinition {
|
|
77
|
+
main: string;
|
|
78
|
+
light?: string;
|
|
79
|
+
dark?: string;
|
|
80
|
+
contrastText?: string;
|
|
81
|
+
}
|
|
82
|
+
interface IActionOpacity {
|
|
83
|
+
light: string;
|
|
84
|
+
dark: string;
|
|
85
|
+
}
|
|
86
|
+
interface TStates {
|
|
87
|
+
active?: boolean;
|
|
88
|
+
checked?: boolean;
|
|
89
|
+
default?: boolean;
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
focus?: boolean;
|
|
92
|
+
hover?: boolean;
|
|
93
|
+
readonly?: boolean;
|
|
94
|
+
selected?: boolean;
|
|
95
|
+
}
|
|
96
|
+
type TGetColorStateDefinition = Pick<ThemeUICSSObject, 'backgroundColor' | 'borderColor' | 'borderLeftColor' | 'borderRightColor' | 'borderBottomColor' | 'borderTopColor' | 'color'>;
|
|
97
|
+
type TColorStateRetriever = (color: string, state: keyof TStates) => string;
|
|
98
|
+
type TStateRetriever = (definition: Partial<TGetColorStateDefinition>, state: keyof TStates) => TGetColorStateDefinition;
|
|
99
|
+
type TStatesRetriever = (definition: Partial<TGetColorStateDefinition>, states?: TStates) => ThemeUICSSObject;
|
|
100
|
+
interface TActionDefinition<OpacityColor = undefined | string | IActionOpacity> {
|
|
101
|
+
active: OpacityColor;
|
|
102
|
+
activeOpacity: number;
|
|
103
|
+
disabled: OpacityColor;
|
|
104
|
+
disabledOpacity: number;
|
|
105
|
+
focus: OpacityColor;
|
|
106
|
+
focusOpacity: number;
|
|
107
|
+
hover: OpacityColor;
|
|
108
|
+
hoverOpacity: number;
|
|
109
|
+
readonly: OpacityColor;
|
|
110
|
+
readonlyOpacity: number;
|
|
111
|
+
selected: OpacityColor;
|
|
112
|
+
selectedOpacity: number;
|
|
113
|
+
}
|
|
114
|
+
type TColorModifier = (color: string, ratio?: number) => string;
|
|
115
|
+
interface TPalette<ColorDefinition = IColorDefinition, ColorModifier = TColorModifier, ActionDefinition = TActionDefinition> {
|
|
116
|
+
action: ActionDefinition;
|
|
117
|
+
background: {
|
|
118
|
+
default: string;
|
|
119
|
+
overlay: string;
|
|
120
|
+
paper: string;
|
|
121
|
+
};
|
|
122
|
+
border: {
|
|
123
|
+
article: string;
|
|
124
|
+
field: string;
|
|
125
|
+
section: string;
|
|
126
|
+
};
|
|
127
|
+
common: {
|
|
128
|
+
white: string;
|
|
129
|
+
black: string;
|
|
130
|
+
};
|
|
131
|
+
error: ColorDefinition;
|
|
132
|
+
gray?: {
|
|
133
|
+
100: string;
|
|
134
|
+
150: string;
|
|
135
|
+
200: string;
|
|
136
|
+
250: string;
|
|
137
|
+
300: string;
|
|
138
|
+
350: string;
|
|
139
|
+
400: string;
|
|
140
|
+
450: string;
|
|
141
|
+
500: string;
|
|
142
|
+
550: string;
|
|
143
|
+
600: string;
|
|
144
|
+
650: string;
|
|
145
|
+
700: string;
|
|
146
|
+
750: string;
|
|
147
|
+
800: string;
|
|
148
|
+
850: string;
|
|
149
|
+
900: string;
|
|
150
|
+
950: string;
|
|
151
|
+
};
|
|
152
|
+
info: ColorDefinition;
|
|
153
|
+
primary: ColorDefinition;
|
|
154
|
+
secondary: ColorDefinition;
|
|
155
|
+
spacing: (index: number) => ResponsiveStyleValue<number>;
|
|
156
|
+
success: ColorDefinition;
|
|
157
|
+
text: {
|
|
158
|
+
accent: string;
|
|
159
|
+
disabled: string;
|
|
160
|
+
icon: string;
|
|
161
|
+
link: string;
|
|
162
|
+
primary: string;
|
|
163
|
+
secondary: string;
|
|
164
|
+
title: string;
|
|
165
|
+
};
|
|
166
|
+
warning: ColorDefinition;
|
|
167
|
+
lightenRatio?: number;
|
|
168
|
+
darkenRatio?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Acepta un ratio entre 0 y 100
|
|
171
|
+
*/
|
|
172
|
+
lightenColor?: ColorModifier;
|
|
173
|
+
/**
|
|
174
|
+
* Acepta un ratio entre 0 y 100
|
|
175
|
+
*/
|
|
176
|
+
darkenColor?: ColorModifier;
|
|
177
|
+
getContrastText?: ColorModifier;
|
|
178
|
+
responsive: typeof responsive;
|
|
179
|
+
queryColumnsMultiplier?: number;
|
|
180
|
+
}
|
|
181
|
+
type TBuildStateObject = <T extends Partial<ThemeUICSSObject>>(props: T, state: keyof Required<TStates> | 'checked') => ThemeUICSSObject;
|
|
182
|
+
type TParsedPalette = Required<TPalette<Required<IColorDefinition>, TColorModifier, Required<TActionDefinition<IActionOpacity>>>> & {
|
|
183
|
+
buildStateObject: TBuildStateObject;
|
|
184
|
+
getColor: TColorStateRetriever;
|
|
185
|
+
getOneState: TStateRetriever;
|
|
186
|
+
getStatesForColors: TStatesRetriever;
|
|
187
|
+
getStatesFromDefinition: TStatesRetriever;
|
|
188
|
+
getStatesFromPath: typeof getColorsAndStatesByPath;
|
|
189
|
+
};
|
|
190
|
+
type TColorDefinitionPrimitive = Pick<ThemeUICSSObject, 'color' | 'backgroundColor' | 'borderColor'>;
|
|
191
|
+
type TColorDefinition = TColorDefinitionPrimitive & {
|
|
192
|
+
active?: TColorDefinitionPrimitive;
|
|
193
|
+
checked?: TColorDefinitionPrimitive;
|
|
194
|
+
disabled?: TColorDefinitionPrimitive;
|
|
195
|
+
focus?: TColorDefinitionPrimitive;
|
|
196
|
+
hover?: TColorDefinitionPrimitive;
|
|
197
|
+
preventParse?: boolean;
|
|
198
|
+
selected?: TColorDefinitionPrimitive;
|
|
199
|
+
};
|
|
200
|
+
declare global {
|
|
201
|
+
interface Window {
|
|
202
|
+
currentPalette: TParsedPalette;
|
|
203
|
+
customPalette?: TPalette;
|
|
204
|
+
defaultPalette?: TPalette;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Esta función está pensada para ser utilizada dentro del objeto colors del
|
|
210
|
+
* tema. Aplica recursivamente los distintos estados a todos los elementos
|
|
211
|
+
* contenidos dentro de los objetos pasados como parámetro en properties.
|
|
212
|
+
*
|
|
213
|
+
* Es posible elegir cuáles estados se aplican y cuáles no mediante el segundo
|
|
214
|
+
* parámetro, que es un objeto cuyas propiedades serán tomadas en cuenta
|
|
215
|
+
* únicamente cuando tienen valor false, en cuyo caso no se aplicará el estado
|
|
216
|
+
* correspondiente.
|
|
217
|
+
*
|
|
218
|
+
* @param properties
|
|
219
|
+
* @param states
|
|
220
|
+
*/
|
|
221
|
+
declare function applyStates(properties: Record<string, TColorDefinition | string | Record<string, unknown>>[], states?: TStates): void;
|
|
222
|
+
|
|
223
|
+
declare function parsePalette(palette: TPalette): TParsedPalette;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Básicamente agrega la definición de borderLeftColor, borderRightColor, etc.
|
|
227
|
+
*/
|
|
228
|
+
declare function buildColorsObject(definition: Partial<TGetColorStateDefinition>): TGetColorStateDefinition;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Esta función calcula los colores de los estados a partir de la definición
|
|
232
|
+
* pasada.
|
|
233
|
+
*/
|
|
234
|
+
declare function getColorsAndStatesByDefinition(definition: Partial<TGetColorStateDefinition>, options?: TGetColorsAndStatesOptions): ThemeUICSSObject;
|
|
235
|
+
|
|
236
|
+
declare function getPalette(arg?: TPalette | boolean): TParsedPalette;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Este método está pensado para usarse únicamente dentro de applyStates, si se
|
|
240
|
+
* desea obtener un objeto con las propiedades correspondientes a un estado,
|
|
241
|
+
* utilizar el método getColorStates.
|
|
242
|
+
*/
|
|
243
|
+
declare const applyStatesGetColor: TStatesRetriever;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Este método acepta un objeto con backgroundColor y borderColor y aplica el
|
|
247
|
+
* estado pasado como segundo parámetro de la siguiente manera:
|
|
248
|
+
*
|
|
249
|
+
* Si se pasa backgroundColor, se devuelve un backgroundColor y un color, que
|
|
250
|
+
* corresponden al backgroundColor con el estado aplicado y un color calculado
|
|
251
|
+
* con la función getContrastText.
|
|
252
|
+
*
|
|
253
|
+
* Si se pasa borderColor, se devuelve un nuevo borderColor calculado con el
|
|
254
|
+
* estado aplicado.
|
|
255
|
+
*/
|
|
256
|
+
declare const getColorState: TStateRetriever;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Con este método es posible construir un objeto con las propiedades
|
|
260
|
+
* necesarias para aplicar los colores correspondientes a los estados deseados
|
|
261
|
+
* a partir de la definición provista.
|
|
262
|
+
*/
|
|
263
|
+
declare const getColorStates: TStatesRetriever;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Esta función arma un objeto con los colores que se deben aplicar para
|
|
267
|
+
* garantizar que el resultado sea el esperado, por ejemplo, al aplicar un
|
|
268
|
+
* color a un border. Esto es así ya que en ThemeUI hay situaciones en las que
|
|
269
|
+
* si no se aplican el color de borde a cada uno de los lados, no se aplica el
|
|
270
|
+
* color deseado.
|
|
271
|
+
*
|
|
272
|
+
* Ejemplo de lo antedicho es:
|
|
273
|
+
*
|
|
274
|
+
* borderRight: '1px solid',
|
|
275
|
+
* borderColor: 'red'.
|
|
276
|
+
*
|
|
277
|
+
* En este caso, el borde derecho no será rojo como se espera, ya que la
|
|
278
|
+
* propiedad borderRight aplicará un borderRightColor: 'initial', que solamente
|
|
279
|
+
* puede ser reescrito por borderRightColor: 'red'.
|
|
280
|
+
*/
|
|
281
|
+
declare function getColorsByDefinition(definition: Partial<TGetColorStateDefinition>, options?: {
|
|
282
|
+
mergeObject?: Record<string, any>;
|
|
283
|
+
}): TGetColorStateDefinition & Record<string, any>;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Esta función NO CALCULA ningún color, simplemente devuelve un objeto con las
|
|
287
|
+
* rutas de color con el formato de ThemeUI. Es útil cuando se desea aplicar
|
|
288
|
+
* colores definidos en el objeto colors.
|
|
289
|
+
*
|
|
290
|
+
* Si se desea generar un objeto con los colores a partir de una definición de
|
|
291
|
+
* colores del tipo TGetColorStateDefinition se debe utilizar el método
|
|
292
|
+
* getColorsByDefinition.
|
|
293
|
+
*/
|
|
294
|
+
declare function getColorsByPath(path: string, options?: {
|
|
295
|
+
mergeObject?: Record<string, any>;
|
|
296
|
+
}): TGetColorStateDefinition & Record<string, any>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
|
|
300
|
+
* Este método acepta un color y aplica el estado pasado como segundo
|
|
301
|
+
|
|
302
|
+
* parámetro. De esta forma se puede obtener el color correspondiente al estado
|
|
303
|
+
|
|
304
|
+
* calculado automáticamente por la aplicación.
|
|
305
|
+
|
|
306
|
+
*/
|
|
307
|
+
declare const getOneColorState: TColorStateRetriever;
|
|
308
|
+
|
|
309
|
+
declare function useMainTheme(customTheme?: Theme): Theme;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Permite crear un componente cuyos estilos pueden ser redefinidos por un
|
|
313
|
+
* usuario final.
|
|
314
|
+
*
|
|
315
|
+
* Esto es así puesto que los estilos definidos serán agregados a un árbol que
|
|
316
|
+
* el usuario puede consultar y sobreescribir. De esta manera los estilos
|
|
317
|
+
* finales del componente serán aquellos definidos en este método pero
|
|
318
|
+
* sobreescritos por los definidos por el usuario si es que existen.
|
|
319
|
+
*
|
|
320
|
+
* **Importante** Para aplicar la variante, se aplica un box alrededor del
|
|
321
|
+
* componente que se está renderizando, con className="variant__holder". En caso
|
|
322
|
+
* de que se quisiera evitar este comportamiento, se debe pasar unwraped = true
|
|
323
|
+
*
|
|
324
|
+
* @param displayName Este parámetro es importante para el debugger de React.
|
|
325
|
+
* @param stylesPath La ruta donde se aplicarán los estilos, es importante asegurarse de que esa ruta ya no está siendo utilizada por otro componente.
|
|
326
|
+
* @param styles Un objeto de estilos de ThemeUI
|
|
327
|
+
* @param Component La definición del componente.
|
|
328
|
+
* @returns Un componente reutilizable y exportable que tiene estilos aplicados.
|
|
329
|
+
*/
|
|
330
|
+
declare function makeStyledComponent<T extends object>(displayName: string, stylesPath: string, styles: ThemeUICSSObject, Component: FC<T>, unwraped?: boolean): ((props: T) => theme_ui_jsx_runtime.JSX.Element) & {
|
|
331
|
+
displayName: string;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Esta función permite agregar estilos al tema principal de la aplicación, de
|
|
336
|
+
* modo que estén disponibles para cualquier componente que lo requirea.
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
*
|
|
340
|
+
* injectStyles('buttons.myRedButton', {
|
|
341
|
+
* variant: 'buttons.primary',
|
|
342
|
+
* backgroundColor: 'red',
|
|
343
|
+
* })
|
|
344
|
+
*/
|
|
345
|
+
declare function injectStyles(path: string, styles: ThemeUICSSObject): void;
|
|
346
|
+
/**
|
|
347
|
+
* Esta función permite agregar estilos al tema principal de la aplicación, de
|
|
348
|
+
* modo que estén disponibles para cualquier componente que lo requirea.
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
*
|
|
352
|
+
* injectStyles({
|
|
353
|
+
* layout: {
|
|
354
|
+
* panels: {
|
|
355
|
+
* myPanel: {
|
|
356
|
+
* ...
|
|
357
|
+
* }
|
|
358
|
+
* }
|
|
359
|
+
* }
|
|
360
|
+
* })
|
|
361
|
+
*/
|
|
362
|
+
declare function injectStyles(styles: ThemeUICSSObject): void;
|
|
363
|
+
|
|
364
|
+
export { TColorDefinition, TPalette, TParsedPalette, ThemeProvider, ThemeProviderContext, applyStates, applyStatesGetColor, buildColorsObject, focusOutline, getColorState, getColorStates, getColorsAndStatesByDefinition, getColorsAndStatesByPath, getColorsByDefinition, getColorsByPath, getOneColorState, getPalette, getVariant, injectStyles, makeStyledComponent, parsePalette, responsive, smallButton, spacing, useMainTheme };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var lodash = require('lodash');
|
|
4
|
-
var util = require('@apia/util');
|
|
5
|
-
var react = require('react');
|
|
6
|
-
var S = require('tinycolor2');
|
|
7
|
-
var themeUi = require('theme-ui');
|
|
8
|
-
var jsxRuntime = require('theme-ui/jsx-runtime');
|
|
9
|
-
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
var S__default = /*#__PURE__*/_interopDefault(S);
|
|
13
|
-
|
|
14
|
-
var xe=Object.defineProperty,Se=Object.defineProperties;var Te=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var ke=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var L=(e,t,r)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t)=>{for(var r in t||(t={}))ke.call(t,r)&&L(e,r,t[r]);if(H)for(var r of H(t))ve.call(t,r)&&L(e,r,t[r]);return e},u=(e,t)=>Se(e,Te(t));function m(e){var d;let t=[];for(let i=0;i<=6;i++)t[i+1]=(d=e[i])!=null?d:null;if(e.print)t[0]=e.print;else for(let i=5;i>=0;i--)e[i]!==void 0&&(t[0]=e[i]);return t}function l(e){var t;return (t=_.spacing(e))!=null?t:e}var y={py:2,px:4,fontSize:"0.9em"},w={outlineColor:"outlineColor",outlineWidth:"3px",outlineStyle:"solid",outlineOffset:"-3px"};function V(e){return {variant:e,"data-variant":e}}var A={light:"#009",dark:"#fff"},q="#ccc",we=Array(50).fill(1).map((e,t)=>m({0:Math.ceil(t/2.5),1:Math.ceil(t/2.1),2:Math.ceil(t/1.7),3:Math.ceil(t/1.3),4:t})),Oe={action:{disabled:q,disabledOpacity:.6,active:A,activeOpacity:.4,focus:A,focusOpacity:.2,hover:A,hoverOpacity:.3,readonly:q,readonlyOpacity:.4,selected:A.light,selectedOpacity:.6},background:{default:"#f4f4f4",overlay:"rgba(0, 0, 0, 0.2)",paper:"white"},border:{article:"#cacaca",field:"#444",section:"#aaa"},common:{black:"black",white:"white"},info:{main:"#fff"},primary:{main:"#00496c"},secondary:{main:"#6c757d"},spacing:e=>we[e],text:{accent:"#609",disabled:"#555",icon:"white",link:"#00496c",primary:"#4a4a4a",secondary:"white",title:"#00496c"},error:{main:"#db7678",light:"#fff2f4"},success:{main:"#8bde8b",light:"#e7ffd9"},warning:{main:"#f8f588",light:"#fffdd9"},darkenRatio:15,lightenRatio:35,responsive:m,queryColumnsMultiplier:2},_=Oe;function Pe(e){return o(o({},e),e.borderColor?{borderLeftColor:e.borderColor,borderRightColor:e.borderColor,borderBottomColor:e.borderColor,borderTopColor:e.borderColor}:void 0)}var U=Pe;var Ie=(e,t)=>{var h,C,k,T;if(t==="default")return U(e);let r=O(),d=r.action[`${t}Opacity`],i=t==="checked"?"selected":t,a=S__default.default.mix((h=e.backgroundColor)!=null?h:"",S__default.default((C=e.backgroundColor)!=null?C:"").isLight()?r.action[i].light:r.action[i].dark,100*d).toRgbString();return U(o(o({},e.backgroundColor?{backgroundColor:t==="checked"?(k=e.backgroundColor)!=null?k:"":a,color:t==="checked"?S__default.default.mix(S__default.default((T=e.color)!=null?T:"black"),S__default.default(r.action.selected.dark),100*r.action.selectedOpacity).toRgbString():window.currentPalette.getContrastText(a)}:null),e.borderColor?{borderColor:S__default.default.mix(e.borderColor,S__default.default(e.borderColor).isLight()?r.action[i].light:r.action[i].dark,100*d).toRgbString()}:null))},f=Ie;var je=(e,t)=>{let r=(t==null?void 0:t.default)!==!1?lodash.cloneDeep(e):{};return (t==null?void 0:t.active)!==!1&&(r.active=f(e,"active")),(t==null?void 0:t.disabled)!==!1&&(r.disabled=f(e,"disabled")),(t==null?void 0:t.focus)!==!1&&(r.focus=f(e,"focus")),(t==null?void 0:t.hover)!==!1&&(r.hover=f(e,"hover")),(t==null?void 0:t.readonly)!==!1&&(r.readonly=f(e,"readonly")),(t==null?void 0:t.selected)!==!1&&(r.selected=f(e,"selected")),(t==null?void 0:t.checked)!==!1&&(r.checked=f(e,"checked")),r},P=je;function W(e,t){e.forEach(r=>{Object.entries(r).forEach(([d,i])=>{if(typeof i=="string")return;let a=i;a.active||(a.active={}),a.checked||(a.checked={}),a.focus||(a.focus={}),a.disabled||(a.disabled={}),a.hover||(a.hover={}),a.selected||(a.selected={});let h=P(a,t);r[d]=lodash.merge(h,a);});});}function J(e){return !!e&&typeof e=="object"&&"main"in e}function K(e,t){return S__default.default(e).lighten(t!=null?t:20).toRgbString()}function Q(e,t){return S__default.default(e).darken(t!=null?t:20).toRgbString()}function X(e){let t=S__default.default(e);return S__default.default.readability("white",t)<S__default.default.readability("black",t)?"black":"white"}var Be=(e,t)=>{switch(t){case"active":return {"&:active":e,"input[role]:active ~ &":e,"input[role]:active ~ & path":e};case"checked":return {"&:checked":e,"input[role]:checked ~ &":e,"input[role]:checked ~ & path":e};case"disabled":return {"&:disabled":e,"input[role]:disabled ~ &":e,"input[role]:disabled ~ & path":e};case"focus":{let r=lodash.merge({},w,e);return {"&:focus":r,"input[role]:focus ~ &":r}}case"hover":return {'&:hover:not([readonly], :disabled,[aria-selected="true"],:active)':e,'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected="true"])':e,'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected="true"]) path':e};case"readonly":return {"&[readonly]":e,"input[role][readonly] ~ &":e,"input[role][readonly] ~ & path":e,"&.readonly input ~ &, &.readOnly input ~ &":e,"&.readonly input ~ & path, &.readOnly input ~ & path":e,"&.readonly, &.readOnly":e};case"selected":return {"&:selected":e,"input[role]:selected ~ &":e,"input[role]:selected ~ & path":e,'&[aria-selected="true"]':e};default:return e}},b=Be;function p(e,t){return lodash.merge(U({color:`${e}.color`,backgroundColor:`${e}.backgroundColor`,borderColor:`${e}.borderColor`}),t==null?void 0:t.mergeObject)}function n(e,t){var T,I,c,s,g,R,j,D;let r=p(`${e}.active`,t),d=p(`${e}.checked`,t),i=o({cursor:"not-allowed"},p(`${e}.disabled`,t)),a=p(`${e}.hover`,t),h=((T=t==null?void 0:t.states)==null?void 0:T.focus)!==!1?p(`${e}.focus`,t):{},C=o({cursor:"notAllowed"},p(`${e}.readonly`,t)),k=p(`${e}.selected`,t);return lodash.merge(o(o(o(o(o(o(o(o({},((I=t==null?void 0:t.states)==null?void 0:I.default)!==!1?p(e,t):null),((c=t==null?void 0:t.states)==null?void 0:c.checked)!==!1?b(d,"checked"):null),b(h,"focus")),((s=t==null?void 0:t.states)==null?void 0:s.hover)!==!1?b(a,"hover"):null),((g=t==null?void 0:t.states)==null?void 0:g.selected)!==!1?b(k,"selected"):null),((R=t==null?void 0:t.states)==null?void 0:R.active)!==!1?b(r,"active"):null),((j=t==null?void 0:t.states)==null?void 0:j.disabled)!==!1?b(i,"disabled"):null),((D=t==null?void 0:t.states)==null?void 0:D.readonly)!==!1?b(C,"readonly"):null),t==null?void 0:t.mergeObject)}var Me=(e,t)=>o(o(o(o(o(o(o(o({},(t==null?void 0:t.default)!==!1?e:null),(t==null?void 0:t.checked)!==!1?b(f(e,"checked"),"checked"):null),b(f(e,"focus"),"focus")),(t==null?void 0:t.selected)!==!1?b(f(e,"selected"),"selected"):null),(t==null?void 0:t.hover)!==!1?b(f(e,"hover"),"hover"):null),(t==null?void 0:t.active)!==!1?b(f(e,"active"),"active"):null),(t==null?void 0:t.disabled)!==!1?b(f(e,"disabled"),"disabled"):null),(t==null?void 0:t.readonly)!==!1?b(f(e,"readonly"),"readonly"):null),Y=Me;var We=(e,t)=>{if(t==="default")return e;let r=t==="checked"?"selected":t,d=O(),i=d.action[`${t}Opacity`];return S__default.default.mix(e,S__default.default(e).isLight()?d.action[r].light:d.action[r].dark,100*i).toRgbString()},ee=We;function z(e){var d,i,a,h,C,k,T,I;let t=lodash.cloneDeep(e);t.lightenColor=(d=e.lightenColor)!=null?d:(c,s)=>K(c,s!=null?s:e.lightenRatio),t.darkenColor=(i=e.darkenColor)!=null?i:(c,s)=>Q(c,s!=null?s:e.darkenRatio),t.getContrastText=(a=e.getContrastText)!=null?a:X,Object.entries(e).forEach(([c,s])=>{var R,j,D;let g=s;J(g)?t[c]={main:g.main,light:(R=g.light)!=null?R:t.lightenColor(g.main),dark:(j=g.dark)!=null?j:t.darkenColor(g.main),contrastText:(D=g.contrastText)!=null?D:t.getContrastText(g.main)}:t[c]=s;}),t.border.article=(h=t.border.article)!=null?h:t.secondary.main,t.border.field=(C=t.border.field)!=null?C:t.text.primary,t.border.section=(k=t.border.section)!=null?k:t.primary.main;function r(c){var s,g;return typeof c=="string"?{dark:c,light:c}:{dark:(s=c.dark)!=null?s:c.light,light:(g=c.light)!=null?g:c.dark}}t.action.active=r(t.action.active),t.action.disabled=r(t.action.disabled),t.action.focus=r(t.action.focus),t.action.hover=r(t.action.hover),t.action.readonly=r(t.action.readonly),t.action.selected=r(t.action.selected),t.buildStateObject=b,t.getColor=ee,t.getStatesForColors=P,t.getOneState=f,t.getStatesFromDefinition=Y,t.getStatesFromPath=n,t.gray=(T=t.gray)!=null?T:{};for(let c=1;c<=18;c++){let s=Math.round(13.37962962962963*c);t.gray[c*50]=(I=t.gray[c*50])!=null?I:`rgb(${s},${s},${s})`;}return t}var te="#004085",Ne="#cce5ff",F="white";function oe(){let e=O();return e.getStatesFromDefinition({backgroundColor:e.background.paper,color:e.text.primary},{active:!1,checked:!1,default:!1,disabled:!1,hover:!1,focus:!1,readonly:!1})}function O(e){let t=e===!0,r=typeof e!="boolean"?e:void 0;return window.currentPalette&&!t||(window.currentPalette=z(lodash.merge(_,window.defaultPalette,r!=null?r:window.customPalette))),window.currentPalette}function E(){var r;let e=lodash.cloneDeep((r=window.currentPalette)!=null?r:O()),t={palette:u(o({},e),{lightenColor:void 0,darkenColor:void 0,getContrastText:void 0,buildStateObject:void 0,getColor:void 0,getOneState:void 0,getStatesForColors:void 0,getStatesFromDefinition:void 0,getStatesFromPath:void 0}),accordion:{borderColor:e.border.section},buttons:{accordion:{backgroundColor:e.primary.main,borderColor:e.border.section,color:e.primary.contrastText},accordionPrimary:{backgroundColor:e.primary.main,borderColor:e.border.section,color:e.primary.contrastText},close:u(o({},P({color:e.text.primary,backgroundColor:e.background.paper})),{backgroundColor:"transparent"}),collapsibleAsidePanelTitle:{color:e.text.primary},deletableInputButton:{backgroundColor:"transparent",color:e.secondary.main,active:{color:e.darkenColor(e.secondary.main,40)},disabled:{color:e.secondary.main},focus:{color:e.darkenColor(e.secondary.main,20)},hover:{color:e.darkenColor(e.secondary.main,20)}},icon:{backgroundColor:e.secondary.main,color:e.secondary.contrastText,hover:{color:e.secondary.contrastText},focus:{color:e.secondary.contrastText}},iconAlert:{backgroundColor:"transparent",color:"#e5c200",active:{backgroundColor:"transparent",color:S__default.default("#e5c200").darken(10).toRgbString()},focus:{backgroundColor:"transparent",color:S__default.default("#e5c200").darken(5).toRgbString()},hover:{backgroundColor:"transparent",color:S__default.default("#e5c200").darken(5).toRgbString()}},iconPrimary:{backgroundColor:e.primary.main,color:e.primary.contrastText,active:{color:e.primary.contrastText},focus:{color:e.primary.contrastText},hover:{color:e.primary.contrastText}},iconToggled:{backgroundColor:e.primary.main,color:e.primary.contrastText,active:{color:e.primary.contrastText},focus:{color:e.common.white},hover:{color:e.common.white}},iconOutline:{backgroundColor:e.background.paper,color:e.primary.main,borderColor:e.border.article},link:{backgroundColor:"transparent",color:e.text.primary,borderColor:"transparent",active:{color:e.text.primary},focus:{color:e.text.primary},hover:{color:e.text.primary}},openTab:{backgroundColor:e.primary.main,color:e.primary.contrastText,borderColor:e.primary.dark},outline:{backgroundColor:e.background.paper,color:e.getContrastText(e.background.paper),borderColor:e.primary.main},outlineDanger:{backgroundColor:e.background.paper,color:e.primary.main,borderColor:e.primary.main,active:{borderColor:e.darkenColor(e.error.dark,e.action.activeOpacity*80),backgroundColor:e.darkenColor(e.error.dark,e.action.activeOpacity*80),color:e.getContrastText(e.darkenColor(e.error.dark,e.action.activeOpacity*80))},focus:{borderColor:e.darkenColor(e.error.dark,e.action.activeOpacity*60),backgroundColor:e.darkenColor(e.error.dark,e.action.activeOpacity*60),color:e.getContrastText(e.darkenColor(e.error.dark,e.action.activeOpacity*60))},hover:{borderColor:e.darkenColor(e.error.dark,e.action.activeOpacity*70),backgroundColor:e.darkenColor(e.error.dark,e.action.activeOpacity*70),color:e.getContrastText(e.darkenColor(e.error.dark,e.action.activeOpacity*70))}},outlineWarning:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.primary.main,active:{borderColor:e.warning.main,backgroundColor:e.warning.main,color:e.warning.contrastText},focus:{borderColor:e.warning.main,backgroundColor:e.warning.main,color:e.warning.contrastText},hover:{borderColor:e.warning.main,backgroundColor:e.warning.main,color:e.warning.contrastText}},primary:{backgroundColor:e.primary.main,color:e.primary.contrastText,borderColor:e.primary.main},secondary:{backgroundColor:e.secondary.main,color:e.secondary.contrastText,borderColor:e.secondary.main},tab:{backgroundColor:e.background.paper,color:e.getContrastText(e.background.paper),borderColor:e.border.article},toggleIcon:{color:e.secondary.contrastText,backgroundColor:e.secondary.main,borderColor:e.border.field,danger:{backgroundColor:e.error.main,borderColor:e.border.field,color:e.error.contrastText},toggled:{backgroundColor:e.primary.main,borderColor:e.border.field,color:e.primary.contrastText}},transparentIcon:{backgroundColor:"transparent",color:e.text.primary,hover:{color:e.primary.main},focus:{color:e.primary.main}}},dropzone:{backgroundColor:e.background.paper,borderColor:e.border.section,color:e.background.default},form:{backgroundColor:e.background.paper,fields:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.border.field},radio:{backgroundColor:"transparent",color:S__default.default(window.currentPalette.text.primary).lighten(15).toRgbString(),borderColor:e.text.primary,active:{backgroundColor:"transparent",color:S__default.default(window.currentPalette.text.primary).lighten(0).toRgbString()},checked:{backgroundColor:"red",color:S__default.default(window.currentPalette.text.primary).lighten(15).toRgbString()},disabled:{backgroundColor:"transparent",color:S__default.default(window.currentPalette.text.primary).lighten(55).toRgbString()},hover:{backgroundColor:"transparent",color:S__default.default(window.currentPalette.text.primary).lighten(7).toRgbString()},readonly:{color:S__default.default(window.currentPalette.text.primary).lighten(38).toRgbString(),backgroundColor:"transparent"}}},modal:{borderColor:e.border.section,backgroundColor:e.background.paper},notifications:{error:{backgroundColor:e.error.light,color:e.getContrastText(e.error.light),borderColor:e.error.main},success:{backgroundColor:e.success.light,color:e.getContrastText(e.success.light),borderColor:e.success.main},warning:{backgroundColor:e.warning.light,color:e.getContrastText(e.warning.light),borderColor:e.warning.main}},pagination:{color:e.primary.contrastText,backgroundColor:e.primary.main},printView:{main:{backgroundColor:e.background.default,page:{backgroundColor:e.background.paper,borderColor:e.border.article}},list:{table:{borderColor:e.border.section},th:{backgroundColor:"#eee"},cell:{borderColor:e.border.article}}},scrollbars:{bar:{color:e.secondary.main,backgroundColor:e.background.default,hover:{backgroundColor:e.lightenColor(e.background.default,10),color:e.lightenColor(e.secondary.main,10)},active:{backgroundColor:e.lightenColor(e.background.default,10),color:e.lightenColor(e.secondary.main,20)}}},tab:{backgroundColor:e.background.paper,borderColor:e.border.section},topBar:{backgroundColor:e.primary.main},accent:e.text.accent,background:e.background.default,iconWarning:"rgb(246 222 87)",muted:e.text.disabled,primary:e.primary.main,secondary:e.secondary.main,text:e.text.primary,warning:e.warning.main,danger:e.error.main,link:e.text.accent,success:e.success.main,title:e.text.title,lightBorder:"hsl(0, 12%, 85%)",outlineColor:e.lightenColor(e.getColor(e.primary.main,"selected"),30),baseGrey:"#dfdfdf",darkBorder:"hsl(247, 98%, 10%)",darkBlue:te,disabled:"#efefef",favorite:"#e5c200",filtersRowBackground:F,formBackground:F,grey:"#777",gridRowHighlight:"#e1f3ff",highlightButton:"hsl(61, 100%, 91%)",lightBlue:Ne,oddRow:"#f0f5ff",paginationBackground:"hsl(229deg, 75%, 90%)",readOnlyText:"#737373",required:"darkred",scrollbarBack:"rgb(206, 206, 206)",scrollbarFront:"rgb(156, 156, 156)",sysExceptionNotificationBg:"#f8d7da",sysMessageNotificationBg:"#fff3cd",tabBackground:"white",treeRuler:"#ccc",white:F,priorityNone:"gray",priorityLow:e.success.main,priorityNormal:"rgb(255 211 34)",priorityHigh:"rgb(255 150 0)",priorityUrgent:"red",charts:{front:te}};return W([t==null?void 0:t.buttons,t==null?void 0:t.form]),t}var Ge={primary:{border:"1px solid",borderLeft:"12px solid",borderRadius:"alerts",display:"flex",flexDirection:"column",fontWeight:"normal",maxHeight:"60vh",overflow:"auto",p:0,"&:focus":{outline:"none"},".notification__header":{display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,width:"100%",p:l(5)},".notification__title":{fontSize:18,fontWeight:"bold",color:"palette.text.primary",display:"flex",gap:l(5),alignItems:"center"},".notification__closeButton":{flexShrink:0},".notification__body":{alignItems:"center",display:"flex",flexDirection:"row",gap:l(5),width:"100%",p:l(5)},".notification__header ~ .notification__body":{pt:0},".notification__content":{display:"flex",alignItems:"stretch",flexDirection:"column",gap:l(5),width:"100%"},".notification__icon":{flexShrink:0,height:"iconMd",svg:{height:"iconMd",width:"iconMd"}},".notification__message":{display:"flex",flexDirection:"column",fontWeight:"normal",gap:l(3),width:"100%",wordBreak:"break-word"},".notification__trace":{maxWidth:"100%",overflow:"hidden",maxHeight:"30vh",flexShrink:0,backgroundColor:"rgba(10,10,10,0.02)",pt:l(5),".notification__traceLabel":{pl:l(5)},".notification__traceText":{fontWeight:"normal",p:l(5),maxHeight:"30vh",overflow:"auto",maxWidth:"100%",position:"relative"}},"&:focus .notification__closeButton":w},warning:{variant:"alerts.primary","&, & .notification__header":o({},p("notifications.warning"))},danger:{variant:"alerts.primary","&, & .notification__header":o({},p("notifications.error"))},success:{variant:"alerts.primary","&, & .notification__header":o({},p("notifications.success"))}},re=Ge;var $e={inherit:{color:"inherit",background:"inherit",border:"none",borderRadius:0,font:"inherit",cursor:"pointer",padding:0,margin:0},collapsibleAsidePanelTitle:o({variant:"buttons.inherit",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},n("buttons.collapsibleAsidePanelTitle")),primary:u(o({borderWidth:"2px",borderStyle:"solid",variant:"text.default",py:m({0:3,4:4}),px:m({0:5,4:6}),display:"inline-block",width:m({0:"100%",1:"auto"}),cursor:"pointer",borderRadius:"buttons",fontWeight:"normal",userSelect:"none",transition:"background-color 300ms ease-out, color 300ms ease-out",wordBreak:"keep-all"},n("buttons.primary")),{"&:focus, &:focus-visible":{outlineColor:"#00daff"}}),"primary-sm":o({variant:"buttons.primary","&:focus, &:focus-visible":{}},y),secondary:o({variant:"buttons.primary","&:focus, &:focus-visible":{},borderWidth:"0px",borderStyle:"solid"},n("buttons.secondary")),"secondary-sm":o({variant:"buttons.secondary"},y),"light-secondary":o({variant:"buttons.secondary"},n("buttons.lightSecondary")),danger:o({variant:"buttons.primary","&:focus, &:focus-visible":{}},n("buttons.danger")),"danger-sm":o({variant:"buttons.danger"},y),warning:o({variant:"buttons.primary","&:focus, &:focus-visible":{}},n("buttons.warning")),"warning-sm":o({variant:"buttons.warning"},y),close:o({cursor:"pointer",ml:"auto",mr:"2",borderRadius:"buttons"},n("buttons.close")),accordion:{variant:"buttons.primary","&:focus, &:focus-visible":{},cursor:"pointer",m:l(0),py:m({0:3,4:4}),px:m({0:5,4:6}),width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"buttons",textAlign:"left",fontFamily:"heading",fontSize:"text.default",textDecoration:"none",textTransform:"none",fontWeight:"bold",border:"none",transition:"background-color 300ms ease-out, color 300ms ease-out",userSelect:"text","&, *":n("buttons.accordion")},"accordion-primary":o({variant:"buttons.accordion",border:"none"},n("buttons.accordionPrimary")),icon:u(o({display:"flex",justifyContent:"center",alignItems:"center",p:l(0),m:l(0),bg:"secondary",cursor:"pointer",transition:"background-color 300ms ease-out, color 300ms ease-out",borderRadius:"buttons",border:"none"},n("buttons.icon")),{svg:{width:"auto",height:"20px",display:"block"},"&.isToggled":o({},n("buttons.iconToggled"))}),"icon-primary":o({variant:"buttons.icon"},n("buttons.iconPrimary")),"icon-outline":o({variant:"buttons.icon",bg:"white",border:"1px solid"},n("buttons.iconOutline")),"icon-outline-danger":o({variant:"buttons.icon",bg:"white",border:"1px solid"},n("buttons.outlineDanger")),"icon-only":o({variant:"buttons.icon"},n("buttons.iconOnly")),link:o({variant:"inherit",width:"auto",border:"none",textDecoration:"underline",px:2,py:1,borderRadius:"buttons",cursor:"pointer",textTransform:"none",transition:"background-color 300ms ease-out, color 300ms ease-out"},n("buttons.link")),"link-sm":o({variant:"buttons.link"},y),outline:o({variant:"buttons.primary",borderWidth:"2px",borderStyle:"solid",borderRadius:"buttons","&:focus, &:focus-visible":{}},n("buttons.outline")),"outline-sm":o({variant:"buttons.outline"},y),"transparent-sm":o({variant:"buttons.outline","&:focus, &:focus-visible":{},bg:"transparent",color:"inherit",border:"none",font:"inherit",textTransform:"inherit"},y),"outline-danger":o({variant:"buttons.outline","&:focus, &:focus-visible":{}},n("buttons.outlineDanger")),"outline-danger-sm":o({variant:"buttons.outline-danger"},y),"outline-warning":o({variant:"buttons.outline","&:focus, &:focus-visible":{}},n("buttons.outlineWarning")),"outline-warning-sm":o({variant:"buttons.outline-warning"},y),"outline-extended":{variant:"buttons.outline",gridColumnStart:1,gridColumnEnd:3,width:"100%"},"outline-danger-extended":{variant:"buttons.outline-danger",gridColumnStart:1,gridColumnEnd:3,width:"100%"},"primary-extended":{variant:"buttons.primary","&:focus, &:focus-visible":{},gridColumnStart:1,gridColumnEnd:3,width:"100%"},query:{extended:{variant:"buttons.outline","&:focus, &:focus-visible":{},gridColumnStart:1,gridColumnEnd:3}},tableAccordion:o({variant:"buttons.accordion",fontSize:"text.default",p:l(3),wordBreak:"keep-all",a:{color:"background"}},n("buttons.tableAccordion")),tableHeader:o({variant:"buttons.tableAccordion",alignItems:"center",justifyContent:"center",height:"100%",border:"none",svg:{ml:l(2)}},n("buttons.tableHeader"))},ne=$e;var He=o({display:"inline-flex",borderRadius:"default",flexBasis:"32px",flexShrink:0,width:"32px",height:"32px",alignItems:"center",justifyContent:"center",p:"3px",border:"1px solid",svg:{width:"20px"}},n("form.fields",{states:{active:!1,hover:!1,focus:!1}})),ie=He;var Le=u(o({borderRadius:"default"},n("form.fields",{states:{active:!1,focus:!1,hover:!1}})),{backgroundColor:"unset",alignItems:"center","&.nativeCheckbox":{appearance:"none",width:"25px",height:"25px",border:"solid 1px #cccccc",marginRight:"8px",position:"relative",cursor:"pointer","&:checked::before":{content:'"\u2713"',color:"palette.text.primary",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:0,left:0,right:0,bottom:0,fontSize:"larger",fontWeight:"bolder",borderRadius:"5px",cursor:"pointer"},"&:indeterminate::before":{content:'"-"',color:"palette.text.primary",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"-1px",left:0,right:0,bottom:0,fontSize:"xx-large",fontWeight:"600",borderRadius:"5px",cursor:"pointer"}}}),ae=Le;var Ve=u(o({display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"stretch",gap:l(2),width:"100%","&.readOnly":{input:{color:"Text.fields",bg:"Background.fields"}},".iconInput":{width:"100%",position:"relative"},'input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]), input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]) path, .delete_date_button':o({position:"absolute",right:"59px",padding:0,top:"calc(50% - 10px)",margin:0,marginRight:0,borderRadius:"100%",width:"20px",height:"20px"},n("buttons.icon-outline")),input:{flexShrink:1},"& > div":{display:"flex",gap:l(2),flexShrink:0,width:"auto",maxWidth:"100%",minWidth:0,button:{width:"45px",flexShrink:0}}},n("form.fields",{states:{hover:!1,active:!1,focus:!1}})),{backgroundColor:void 0}),le=Ve;var qe={display:"flex",gap:l(1),justifyContent:"stretch",alignItems:"center","&.readOnly":{input:o({},p("form.fields"))},input:{height:"50px",width:"100%"},button:{display:"flex",width:"45px",flexShrink:0,height:"50px"}},ce=qe;var Je=u(o({variant:"text.default",border:"1px solid",borderRadius:"default",padding:m({0:3,3:4}),"::placeholder":{color:"#b0b0b0"}},n("form.fields",{states:{active:!1,hover:!1,focus:!1}})),{material:{input:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottomColor:"palette.border.section","& + .input__underline":{transform:"scale(1)"},"&:focus":{outline:"none","~::after":{animationName:"growHorizontal",animationDuration:"150ms",animationTimingFunction:"ease-out",content:'""',display:"block",height:"0",outlineColor:"palette.primary.main",outlineStyle:"solid",outlineWidth:"1.5px",outlineOffset:0,position:"fixed",transformOrigin:"center center",width:"100%"}}}}}),de=Je;var Ke={variant:"text.default",alignItems:"center",width:"auto",textTransform:"none",cursor:"pointer","&:not(.radio-label)":{fontWeight:"bold"},"&.required":{position:"relative","&::before":{color:"danger",position:"absolute",content:'"*"',top:0,left:"-10px"}},"&:last-of-type":{"input, textarea, select":{mb:l(0)}}},se=Ke;var Qe=o({width:"32px",height:"32px",input:{height:"32px !important"}},n("form.radio")),ue=Qe;var Xe=o({variant:"text.default",display:"inline-block",fontFamily:"body",p:l(4),pr:7,borderRadius:"default",width:"100%",maxWidth:"100%"},n("form.fields",{states:{active:!1,hover:!1,focus:!1}})),me=Xe;var Ye=o({variant:"text.default",height:"100%",padding:"4px",borderRadius:"default",border:"1px solid",width:"100%",transition:"background-color 100ms ease-out, color 100ms ease-out",overflow:"auto",option:u(o({padding:2},oe()),{"&:checked":{backgroundColor:window.currentPalette.getColor(window.currentPalette.background.paper,"selected"),color:window.currentPalette.getContrastText(window.currentPalette.getColor(window.currentPalette.background.paper,"selected"))}}),"+ svg":{display:"none"}},n("form.fields",{states:{active:!1,hover:!1,focus:!1}})),fe=Ye;var Ze={"+ span":{fontSize:14,fontWeight:"normal",wordBreak:"break-all"},backgroundColor:"form.fields.checked.borderColor"},be=Ze;var et={"&, & textarea":{height:"100%",minHeight:"130px",resize:"vertical"},textarea:{variant:"forms.input"}},pe=et;var tt={border:"1px solid",borderColor:"palette.border.field",display:"inline-block",position:"relative",pr:"45px",".deletableInput__input":{border:"none"},".deletableInput__deleteButton":o({height:"100%",outlineOffset:"-2px",position:"absolute",right:0,top:0,width:"45px"},n("buttons.deletableInputButton")),"&:focus-within:not(.asMaterial)":u(o({},w),{".deletableInput__input:focus":{outline:"none"},".deletableInput__deleteButton:focus":{outline:"none"}}),"&.asMaterial":{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottomColor:"palette.border.section","& + .input__underline":{transform:"scale(1)"},".deletableInput__input:focus":{outline:"none","~.input__underline::after":{animationName:"growHorizontal",animationDuration:"150ms",animationTimingFunction:"ease-out",content:'""',display:"block",height:"0",outlineColor:"palette.primary.main",outlineStyle:"solid",outlineWidth:"1.5px",outlineOffset:0,position:"absolute",transformOrigin:"center center",left:0,right:0}}}},ge=tt;var ot=()=>({checkbox:ae,customCheckbox:ie,dateInput:le,deletableInput:ge,iconInput:ce,input:de,label:se,radio:ue,select:me,selectMultiple:fe,switch:be,textarea:pe,'input[type="date"]':{variant:"forms.input"}}),he=ot;var it=e=>e,at={};new class extends util.EventEmitter{};function M(e){return it(lodash.merge({alerts:re,breakpoints:["0px","250px","500px","700px","1000px","1260px","1580px"],buttons:ne,colors:E(),fonts:{body:"Arial",heading:"inherit",monospace:"Menlo, monospace"},fontSizes:Array(60).fill(1).map((t,r)=>r),forms:he(),layout:at,lineHeights:{body:1.5,heading:1.125},letterSpacings:{body:"0.01em",heading:"-0.015em"},radii:{alerts:0,buttons:0,default:0},shadows:{modals:"",tabs:""},space:[0,2,4,8,12,16,24,32,40,48,64,80,96,112,128],sizes:{applicationMenu:"350px",floatingNotifications:"min(550px, calc(100vw - 30px))",root:"992px",mainImage:"64px",twoColumns:"calc(992px + 350px)",twoColumnsCentered:"calc(992px + 350px + 16px)",iconxs:"12px",iconsm:"16px",iconmd:"22px",iconlg:"32px",iconxl:"48px"},styles:{root:{"*":{fontFamily:"body",fontWeight:"body",fontSize:"100%",height:"100%",code:{fontFamily:"monospace"}},h1:{fontSize:m({0:26,3:32})},h2:{fontSize:m({0:22,3:28})},h3:{fontSize:m({0:19,3:25})},h4:{fontSize:m({0:18,3:22})},h5:{fontSize:m({0:18,3:22})},h6:{fontSize:m({0:17,3:17})},"h1,h2,h3,h4,h5,h6":{letterSpacing:"heading",lineHeight:"heading",variant:"text.title"},"*:not(h1, h2, h3, h4, h5, h6, code)":{fontFamily:"body",fontSize:16,fontWeight:"body",letterSpacing:"body",lineHeight:"body"}}},zIndices:{stickyElements:600,menu:1e3,maximizedTables:1100,modal:1200,tooltip:1400,notifications:1600,contextMenu:1800},useRootStyles:!0},e!=null?e:{}))}var N=new class extends util.EventEmitter{};function G(e){let[t,r]=react.useState(M(e));return util.useMount(()=>N.on("newStyles",d=>{let i=util.setValueByPath({},d.path,d.styles);r(a=>lodash.merge(o({},a),i));})),t}var $=({children:e,customTheme:t})=>{let r=M(t);return jsxRuntime.jsx(themeUi.ThemeProvider,{theme:r,children:e})};function mn(e,t,r,d,i=!1){let a=util.setValueByPath({},t,r);return Object.assign(h=>{let C=react.useRef(0);return i?jsxRuntime.jsx($,{customTheme:a,children:jsxRuntime.jsx(react.Suspense,{children:jsxRuntime.jsx(ye,{avoidFirstRender:C,children:jsxRuntime.jsx(d,o({},h))})})}):jsxRuntime.jsx($,{customTheme:a,children:jsxRuntime.jsx(react.Suspense,{children:jsxRuntime.jsx(ye,{avoidFirstRender:C,children:jsxRuntime.jsx(themeUi.Box,u(o({className:"variant__holder"},V(t)),{children:jsxRuntime.jsx(d,o({},h))}))})})})},{displayName:e})}var ye=({avoidFirstRender:e,children:t})=>(e.current++,e.current<=1?null:jsxRuntime.jsx(jsxRuntime.Fragment,{children:t}));function hn(e,t){N.emit("newStyles",{path:e,styles:t});}var On=({children:e,customTheme:t})=>{let r=G(t);return console.log({theme:r}),jsxRuntime.jsx(themeUi.ThemeProvider,{theme:r,children:e})};
|
|
15
|
-
|
|
16
|
-
exports.ThemeProvider = On;
|
|
17
|
-
exports.focusOutline = w;
|
|
18
|
-
exports.getVariant = V;
|
|
19
|
-
exports.injectStyles = hn;
|
|
20
|
-
exports.makeStyledComponent = mn;
|
|
21
|
-
exports.responsive = m;
|
|
22
|
-
exports.smallButton = y;
|
|
23
|
-
exports.spacing = l;
|
|
24
|
-
exports.useMainTheme = G;
|
|
1
|
+
import{jsx as x,Fragment as So}from"react/jsx-runtime";import{ThemeProvider as U,Box as J}from"theme-ui";import{useRef as Po,Suspense as K,useState as To,createContext as Io}from"react";import{cloneDeep as z,merge as O}from"lodash";import{getValueByPath as Ro,setValueByPath as M,EventEmitter as Q,useMount as Bo}from"@apia/util";import f from"tinycolor2";import{focusOutline as L}from"@apia/theme";function c(o){var e;const r=[];for(let i=0;i<=6;i++)r[i+1]=(e=o[i])!=null?e:null;if(o.print)r[0]=o.print;else for(let i=5;i>=0;i--)o[i]!==void 0&&(r[0]=o[i]);return r}function t(o){var e;return(e=Z.spacing(o))!=null?e:o}const C={py:2,px:4,fontSize:"0.9em"},j={outlineColor:"outlineColor",outlineWidth:"3px",outlineStyle:"solid",outlineOffset:"-3px"};function H(o){return{variant:o,"data-variant":o}}const D={dark:"#cce5ff",light:"#557"},Wo=Array(50).fill(1).map((o,e)=>c({0:Math.ceil(e/2.5),1:Math.ceil(e/2.1),2:Math.ceil(e/1.7),3:Math.ceil(e/1.3),4:e})),Z={action:{disabled:"#d9d9d9",disabledOpacity:1,active:D,activeOpacity:.45,focus:D,focusOpacity:.05,hover:D,hoverOpacity:.1,readonly:D,readonlyOpacity:.4,selected:"rgb(204 214 222)",selectedOpacity:1},background:{default:"#f4f4f4",overlay:"rgba(0, 0, 0, 0.2)",paper:"white"},border:{article:"#cacaca",field:"#444",section:"#aaa"},common:{black:"black",white:"white"},info:{main:"#fff"},primary:{main:"#00496c"},secondary:{main:"#6c757d"},spacing:o=>Wo[o],text:{accent:"#609",disabled:"#555",icon:"white",link:"#00496c",primary:"#4a4a4a",secondary:"white",title:"#00496c"},error:{main:"#db7678",light:"#fff2f4"},success:{main:"#8bde8b",light:"#e7ffd9"},warning:{main:"#f8f588",light:"#fffdd9"},darkenRatio:15,lightenRatio:35,responsive:c,queryColumnsMultiplier:2};var Do=Object.defineProperty,ee=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,oe=(o,e,r)=>e in o?Do(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,re=(o,e)=>{for(var r in e||(e={}))Eo.call(e,r)&&oe(o,r,e[r]);if(ee)for(var r of ee(e))Ao.call(e,r)&&oe(o,r,e[r]);return o};function I(o){return re(re({},o),o.borderColor?{borderLeftColor:o.borderColor,borderRightColor:o.borderColor,borderBottomColor:o.borderColor,borderTopColor:o.borderColor}:void 0)}var Fo=Object.defineProperty,te=Object.getOwnPropertySymbols,zo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,ae=(o,e,r)=>e in o?Fo(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,ne=(o,e)=>{for(var r in e||(e={}))zo.call(e,r)&&ae(o,r,e[r]);if(te)for(var r of te(e))Mo.call(e,r)&&ae(o,r,e[r]);return o};const p=(o,e)=>{var r,i,u,l;if(e==="default")return I(o);const b=R(),y=b.action[`${e}Opacity`],w=e==="checked"?"selected":e;o=Object.fromEntries(Object.entries(o).map(([v,s])=>(["backgroundColor","borderColor","borderLeftColor","borderRightColor","borderBottomColor","borderTopColor","color"].includes(v)&&(s??"").startsWith("palette")&&(s=Ro(b,s.slice(8))),[v,s])));const a=f.mix((r=o.backgroundColor)!=null?r:"",f((i=o.backgroundColor)!=null?i:"").isLight()?b.action[w].light:b.action[w].dark,100*y).toRgbString();return I(ne(ne({},o.backgroundColor?{backgroundColor:e==="checked"?(u=o.backgroundColor)!=null?u:"":a,color:e==="checked"?f.mix(f((l=o.color)!=null?l:"black"),f(b.action.selected.dark),100*b.action.selectedOpacity).toRgbString():window.currentPalette.getContrastText(a)}:null),o.borderColor?{borderColor:f.mix(o.borderColor,f(o.borderColor).isLight()?b.action[w].light:b.action[w].dark,100*y).toRgbString()}:null))},E=(o,e)=>{const r=e?.default!==!1?z(o):{};return e?.active!==!1&&(r.active=p(o,"active")),e?.disabled!==!1&&(r.disabled=p(o,"disabled")),e?.focus!==!1&&(r.focus=p(o,"focus")),e?.hover!==!1&&(r.hover=p(o,"hover")),e?.readonly!==!1&&(r.readonly=p(o,"readonly")),e?.selected!==!1&&(r.selected=p(o,"selected")),e?.checked!==!1&&(r.checked=p(o,"checked")),r};function ie(o,e){o.forEach(r=>{Object.entries(r).forEach(([i,u])=>{if(typeof u=="string")return;const l=u;if(typeof l!="string"&&!l.preventParse){l.active||(l.active={}),l.checked||(l.checked={}),l.focus||(l.focus={}),l.disabled||(l.disabled={}),l.hover||(l.hover={}),l.selected||(l.selected={});const b=E(l,e);r[i]=O(b,l)}})})}function Lo(o){return!!o&&typeof o=="object"&&"main"in o}function Ho(o,e){return f(o).lighten(e??20).toRgbString()}function Xo(o,e){return f(o).darken(e??20).toRgbString()}function qo(o){const e=f(o);return f.readability("white",e)<f.readability("black",e)?"black":"white"}const m=(o,e)=>{switch(e){case"active":return{"&:active":o,"input[role]:active ~ &":o,"input[role]:active ~ & path":o};case"checked":return{"&:checked":o,"input[role]:checked ~ &":o,"input[role]:checked ~ & path":o};case"disabled":return{"&:disabled":o,"input[role]:disabled ~ &":o,"input[role]:disabled ~ & path":o};case"focus":{const r=O({},j,o);return{"&:focus":r,"input[role]:focus ~ &":r}}case"hover":return{'&:hover:not([readonly], :disabled,[aria-selected="true"],:active)':o,'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected="true"])':o,'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected="true"]) path':o};case"readonly":return{"&[readonly]":o,"input[role][readonly] ~ &":o,"input[role][readonly] ~ & path":o,"&.readonly input ~ &, &.readOnly input ~ &":o,"&.readonly input ~ & path, &.readOnly input ~ & path":o,"&.readonly, &.readOnly":o};case"selected":return{"&:selected":o,"input[role]:selected ~ &":o,"input[role]:selected ~ & path":o,'&[aria-selected="true"]':o};default:return o}};function h(o,e){return O(I({color:`${o}.color`,backgroundColor:`${o}.backgroundColor`,borderColor:`${o}.borderColor`}),e?.mergeObject)}var Go=Object.defineProperty,le=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,ce=(o,e,r)=>e in o?Go(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,$=(o,e)=>{for(var r in e||(e={}))No.call(e,r)&&ce(o,r,e[r]);if(le)for(var r of le(e))Vo.call(e,r)&&ce(o,r,e[r]);return o};function n(o,e){var r,i,u,l,b,y,w,a;const v=h(`${o}.active`,e),s=h(`${o}.checked`,e),g=$({cursor:"not-allowed"},h(`${o}.disabled`,e)),_=h(`${o}.hover`,e),P=((r=e?.states)==null?void 0:r.focus)!==!1?h(`${o}.focus`,e):{},T=$({cursor:"notAllowed"},h(`${o}.readonly`,e)),k=h(`${o}.selected`,e);return O($($($($($($($($({},((i=e?.states)==null?void 0:i.default)!==!1?h(o,e):null),((u=e?.states)==null?void 0:u.checked)!==!1?m(s,"checked"):null),m(P,"focus")),((l=e?.states)==null?void 0:l.hover)!==!1?m(_,"hover"):null),((b=e?.states)==null?void 0:b.selected)!==!1?m(k,"selected"):null),((y=e?.states)==null?void 0:y.active)!==!1?m(v,"active"):null),((w=e?.states)==null?void 0:w.disabled)!==!1?m(g,"disabled"):null),((a=e?.states)==null?void 0:a.readonly)!==!1?m(T,"readonly"):null),e?.mergeObject)}var Yo=Object.defineProperty,de=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,se=(o,e,r)=>e in o?Yo(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,S=(o,e)=>{for(var r in e||(e={}))Uo.call(e,r)&&se(o,r,e[r]);if(de)for(var r of de(e))Jo.call(e,r)&&se(o,r,e[r]);return o};const pe=(o,e)=>S(S(S(S(S(S(S(S({},e?.default!==!1?o:null),e?.checked!==!1?m(p(o,"checked"),"checked"):null),m(p(o,"focus"),"focus")),e?.selected!==!1?m(p(o,"selected"),"selected"):null),e?.hover!==!1?m(p(o,"hover"),"hover"):null),e?.active!==!1?m(p(o,"active"),"active"):null),e?.disabled!==!1?m(p(o,"disabled"),"disabled"):null),e?.readonly!==!1?m(p(o,"readonly"),"readonly"):null),ue=(o,e)=>{if(e==="default")return o;const r=e==="checked"?"selected":e,i=R(),u=i.action[`${e}Opacity`];return f.mix(o,f(o).isLight()?i.action[r].light:i.action[r].dark,100*u).toRgbString()};function be(o){var e,r,i,u,l,b,y,w;const a=z(o);a.lightenColor=(e=o.lightenColor)!=null?e:(s,g)=>Ho(s,g??o.lightenRatio),a.darkenColor=(r=o.darkenColor)!=null?r:(s,g)=>Xo(s,g??o.darkenRatio),a.getContrastText=(i=o.getContrastText)!=null?i:qo,Object.entries(o).forEach(([s,g])=>{var _,P,T;const k=g;Lo(k)?a[s]={main:k.main,light:(_=k.light)!=null?_:a.lightenColor(k.main),dark:(P=k.dark)!=null?P:a.darkenColor(k.main),contrastText:(T=k.contrastText)!=null?T:a.getContrastText(k.main)}:a[s]=g}),a.border.article=(u=a.border.article)!=null?u:a.secondary.main,a.border.field=(l=a.border.field)!=null?l:a.text.primary,a.border.section=(b=a.border.section)!=null?b:a.primary.main;function v(s){var g,_;return typeof s=="string"?{dark:s,light:s}:{dark:(g=s.dark)!=null?g:s.light,light:(_=s.light)!=null?_:s.dark}}a.action.active=v(a.action.active),a.action.disabled=v(a.action.disabled),a.action.focus=v(a.action.focus),a.action.hover=v(a.action.hover),a.action.readonly=v(a.action.readonly),a.action.selected=v(a.action.selected),a.buildStateObject=m,a.getColor=ue,a.getStatesForColors=E,a.getOneState=p,a.getStatesFromDefinition=pe,a.getStatesFromPath=n,a.gray=(y=a.gray)!=null?y:{};for(let s=1;s<=18;s++){const g=Math.round(13.37962962962963*s);a.gray[s*50]=(w=a.gray[s*50])!=null?w:`rgb(${g},${g},${g})`}return a}var Ko=Object.defineProperty,fe=Object.getOwnPropertySymbols,Qo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,me=(o,e,r)=>e in o?Ko(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,X=(o,e)=>{for(var r in e||(e={}))Qo.call(e,r)&&me(o,r,e[r]);if(fe)for(var r of fe(e))Zo.call(e,r)&&me(o,r,e[r]);return o};function ge(o,e){return O(I(X(X(X({},o.color?{color:o.color}:null),o.backgroundColor?{backgroundColor:o.backgroundColor}:null),o.borderColor?{borderColor:o.borderColor}:null)),e?.mergeObject)}function er(o,e){var r,i,u,l,b,y,w,a,v;const s=p(o,"active"),g=p(o,"checked"),_=p(o,"disabled"),P=(r=e?.states)!=null&&r.focus?p(o,"focus"):{},T=p(o,"hover"),k=p(o,"readonly"),jo=p(o,"selected");return O(((i=e?.states)==null?void 0:i.default)!==!1?ge(o):null,((u=e?.states)==null?void 0:u.checked)!==!1?m(g,"checked"):{},((l=e?.states)==null?void 0:l.focus)!==!1?m(P,"focus"):{},((b=e?.states)==null?void 0:b.hover)!==!1?m(T,"hover"):{},((y=e?.states)==null?void 0:y.active)!==!1?m(s,"active"):{},((w=e?.states)==null?void 0:w.selected)!==!1?m(jo,"selected"):{},((a=e?.states)==null?void 0:a.disabled)!==!1?m(_,"disabled"):{},((v=e?.states)==null?void 0:v.readonly)!==!1?m(k,"readonly"):{},e?.mergeObject)}const or={ocean:["#008E1B","#009155","#009187","#008EB1","#006872","#2F4858"],sunset:["#ae76de","#D65DB1","#FF6F91","#FF9671","#FFC75F","#F9F871"],red:["#dc143c","#ff2400","#800020","#b22222","#e52b50","#ff7f50"],orange:["#F76E11","#FF9F45","#FFBC80","#FC4F4F","#eb9605","#964000"],green:["#a4de02","#76ba1b","#4c9a2a","#acdf87","#68bb59","#1e5631"],blue:["#7ad6f4","#45bdee","#28a7ea","#006cbb","#034698","#032f64"],violet:["#80007e","#a02d9c","#c37ecd","#9e5fb8","#7f3e98","#4c197f"],turquoise:["#0ddbcc","#43ebff","#19ceeb","#28acea","#388ee9","#3d76e0"],yellow:["#fff700","#ffff9f","#fef54f","#f9e231","#f6c616","#eab200"],grey:["#b1b5ba","#d2d5d6","#dee0e0","#bdbdbb","#9fa19c","#686e67"]},rr=()=>{const o=window.currentPalette;return{datagrid:{borderColor:o.background.paper,header:{backgroundColor:o.background.default,color:o.text.primary,borderColor:o.background.default},body:{preventParse:!0,backgroundColor:o.background.paper,evenRowsBackgroundColor:o.darkenColor(o.background.paper,3),color:o.text.primary,borderColor:o.gray[800],selectedRows:{borderColor:o.gray[800],backgroundColor:o.getOneState({backgroundColor:o.background.paper},"selected").backgroundColor,color:o.getContrastText(o.getOneState({backgroundColor:o.background.paper},"selected").backgroundColor)}}},pagination:{backgroundColor:o.primary.main,icons:{backgroundColor:o.primary.main,borderColor:o.primary.main,color:o.primary.contrastText},pagesBox:{preventParse:!0,backgroundColor:o.background.paper,borderColor:o.border.field,color:o.text.primary}},primaryTable:{borderColor:o.background.paper,header:{backgroundColor:o.primary.main,color:o.primary.contrastText,borderColor:o.primary.main},body:{preventParse:!0,backgroundColor:o.background.paper,evenRowsBackgroundColor:o.darkenColor(o.background.paper,3),color:o.text.primary,borderColor:o.gray[800],selectedRows:{borderColor:o.gray[800],backgroundColor:o.getOneState({backgroundColor:o.background.paper},"selected").backgroundColor,color:o.getContrastText(o.getOneState({backgroundColor:o.background.paper},"selected").backgroundColor)}}},secondaryTable:{borderColor:o.background.paper,header:{backgroundColor:o.background.default,color:o.text.primary,borderColor:o.background.default},body:{preventParse:!0,backgroundColor:o.background.paper,evenRowsBackgroundColor:o.darkenColor(o.background.paper,3),color:o.text.primary,borderColor:o.gray[800],selectedRows:{borderColor:o.gray[800],backgroundColor:o.getOneState({backgroundColor:o.background.paper},"selected").backgroundColor,color:o.getContrastText(o.getOneState({backgroundColor:o.background.paper},"selected").backgroundColor)}}}}};var tr=Object.defineProperty,ar=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,he=(o,e,r)=>e in o?tr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,ve=(o,e)=>{for(var r in e||(e={}))ir.call(e,r)&&he(o,r,e[r]);if(ye)for(var r of ye(e))lr.call(e,r)&&he(o,r,e[r]);return o},xe=(o,e)=>ar(o,nr(e));const we="#004085",cr="#cce5ff",q="white";function ke(){const o=R();return o.getStatesFromDefinition({backgroundColor:o.background.paper,color:o.text.primary},{active:!1,checked:!1,default:!1,disabled:!1,focus:!1,readonly:!1})}function R(o){const e=o===!0,r=typeof o!="boolean"?o:void 0;return window.currentPalette&&!e||(window.currentPalette=be(O(Z,window.defaultPalette,r??window.customPalette))),window.currentPalette}function dr(){var o;const e=z((o=window.currentPalette)!=null?o:R()),r={palette:xe(ve({},e),{lightenColor:void 0,darkenColor:void 0,getContrastText:void 0,buildStateObject:void 0,getColor:void 0,getOneState:void 0,getStatesForColors:void 0,getStatesFromDefinition:void 0,getStatesFromPath:void 0}),accordion:{borderColor:e.border.section},buttons:{accordion:{backgroundColor:e.primary.main,borderColor:e.border.section,color:e.primary.contrastText},accordionPrimary:{backgroundColor:e.primary.main,borderColor:e.border.section,color:e.primary.contrastText},close:xe(ve({},E({color:e.text.primary,backgroundColor:e.background.paper})),{backgroundColor:"transparent"}),collapsibleAsidePanelTitle:{color:e.text.primary},deletableInputButton:{backgroundColor:"transparent",color:e.secondary.main,active:{color:e.darkenColor(e.secondary.main,40)},disabled:{color:e.secondary.main},focus:{color:e.darkenColor(e.secondary.main,20)},hover:{color:e.darkenColor(e.secondary.main,20)}},icon:{backgroundColor:e.secondary.main,color:e.text.icon,hover:{color:e.secondary.contrastText},focus:{color:e.secondary.contrastText}},iconAlert:{backgroundColor:"transparent",color:e.text.icon,active:{backgroundColor:"transparent",color:f("#e5c200").darken(10).toRgbString()},focus:{backgroundColor:"transparent",color:f("#e5c200").darken(5).toRgbString()},hover:{backgroundColor:"transparent",color:f("#e5c200").darken(5).toRgbString()}},iconPrimary:{backgroundColor:e.primary.main,color:e.primary.contrastText,active:{color:e.primary.contrastText},focus:{color:e.primary.contrastText},hover:{color:e.primary.contrastText},disabled:{color:e.gray[500]}},iconToggled:{backgroundColor:e.primary.main,color:e.primary.contrastText,active:{color:e.primary.contrastText},focus:{color:e.common.white},hover:{color:e.common.white}},iconOutline:{backgroundColor:e.background.paper,color:e.primary.main,borderColor:e.border.article},imagePreview:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.border.article},link:{backgroundColor:"transparent",color:e.text.primary,borderColor:"transparent",active:{color:e.text.primary},focus:{color:e.text.primary},hover:{color:e.text.primary}},openTab:{backgroundColor:e.primary.main,color:e.primary.contrastText,borderColor:e.primary.dark},outline:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.primary.main},outlineDanger:{backgroundColor:e.background.paper,color:e.primary.main,borderColor:e.primary.main,active:{borderColor:e.darkenColor(e.error.dark,e.action.activeOpacity*80),backgroundColor:e.darkenColor(e.error.dark,e.action.activeOpacity*80),color:e.getContrastText(e.darkenColor(e.error.dark,e.action.activeOpacity*80))},focus:{borderColor:e.darkenColor(e.error.dark,e.action.activeOpacity*60),backgroundColor:e.darkenColor(e.error.dark,e.action.activeOpacity*60),color:e.getContrastText(e.darkenColor(e.error.dark,e.action.activeOpacity*60))},hover:{borderColor:e.darkenColor(e.error.dark,e.action.activeOpacity*70),backgroundColor:e.darkenColor(e.error.dark,e.action.activeOpacity*70),color:e.getContrastText(e.darkenColor(e.error.dark,e.action.activeOpacity*70))}},outlineWarning:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.primary.main,active:{borderColor:e.warning.main,backgroundColor:e.warning.main,color:e.warning.contrastText},focus:{borderColor:e.warning.main,backgroundColor:e.warning.main,color:e.warning.contrastText},hover:{borderColor:e.warning.main,backgroundColor:e.warning.main,color:e.warning.contrastText}},paper:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.background.paper},primary:{backgroundColor:e.primary.main,color:e.primary.contrastText,borderColor:e.primary.main},secondary:{backgroundColor:e.secondary.main,color:e.secondary.contrastText,borderColor:e.secondary.main},tab:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.border.article},toggleIcon:{color:e.secondary.contrastText,backgroundColor:e.secondary.main,borderColor:e.border.field,danger:{backgroundColor:e.error.main,borderColor:e.border.field,color:e.error.contrastText},toggled:{backgroundColor:e.primary.main,borderColor:e.border.field,color:e.primary.contrastText}},transparentIcon:{backgroundColor:"transparent",color:e.text.primary,hover:{color:e.primary.main},focus:{color:e.primary.main}}},components:rr(),dropzone:{backgroundColor:e.background.paper,borderColor:e.border.section,color:e.background.default},form:{backgroundColor:e.background.paper,fields:{backgroundColor:e.background.paper,color:e.text.primary,borderColor:e.border.field},radio:{backgroundColor:"transparent",color:f(window.currentPalette.text.primary).lighten(15).toRgbString(),borderColor:e.text.primary,active:{backgroundColor:"transparent",color:f(window.currentPalette.text.primary).lighten(0).toRgbString()},checked:{backgroundColor:"red",color:f(window.currentPalette.text.primary).lighten(15).toRgbString()},disabled:{backgroundColor:"transparent",color:f(window.currentPalette.text.primary).lighten(55).toRgbString()},hover:{backgroundColor:"transparent",color:f(window.currentPalette.text.primary).lighten(7).toRgbString()},readonly:{color:f(window.currentPalette.text.primary).lighten(38).toRgbString(),backgroundColor:"transparent"}}},modal:{borderColor:e.border.section,backgroundColor:e.background.paper},notifications:{error:{backgroundColor:e.error.light,color:e.getContrastText(e.error.light),borderColor:e.error.main},success:{backgroundColor:e.success.light,color:e.getContrastText(e.success.light),borderColor:e.success.main},warning:{backgroundColor:e.warning.light,color:e.getContrastText(e.warning.light),borderColor:e.warning.main}},pagination:{color:e.primary.contrastText,backgroundColor:e.primary.main},printView:{main:{backgroundColor:e.background.default,page:{backgroundColor:e.background.paper,borderColor:e.border.article}},list:{table:{borderColor:e.border.section},th:{backgroundColor:"#eee"},cell:{borderColor:e.border.article}}},schemas:or,scrollbars:{bar:{color:e.secondary.main,backgroundColor:e.background.default,hover:{backgroundColor:e.lightenColor(e.background.default,10),color:e.lightenColor(e.secondary.main,10)},active:{backgroundColor:e.lightenColor(e.background.default,10),color:e.lightenColor(e.secondary.main,20)}}},tab:{backgroundColor:e.background.paper,borderColor:e.border.section},topBar:{backgroundColor:e.primary.main},accent:e.text.accent,background:e.background.default,iconWarning:"rgb(246 222 87)",muted:e.text.disabled,primary:e.primary.main,secondary:e.secondary.main,text:e.text.primary,warning:e.warning.main,danger:e.error.main,link:e.text.accent,success:e.success.main,title:e.text.title,selected:e.getOneState({backgroundColor:e.background.paper},"selected").backgroundColor,lightBorder:"hsl(0, 12%, 85%)",outlineColor:"#00a8f6",touchedBorderColor:"orange",baseGrey:"#dfdfdf",darkBorder:"hsl(247, 98%, 10%)",darkBlue:we,disabled:"#efefef",favorite:"#e5c200",filtersRowBackground:q,formBackground:q,grey:"#777",gridRowHighlight:"#e1f3ff",highlightButton:"hsl(61, 100%, 91%)",lightBlue:cr,oddRow:"#f0f5ff",paginationBackground:"hsl(229deg, 75%, 90%)",readOnlyText:"#737373",required:"darkred",scrollbarBack:"rgb(206, 206, 206)",scrollbarFront:"rgb(156, 156, 156)",sysExceptionNotificationBg:"#f8d7da",sysMessageNotificationBg:"#fff3cd",tabBackground:"white",treeRuler:"#ccc",white:q,priorityNone:"gray",priorityLow:e.success.main,priorityNormal:"rgb(255 211 34)",priorityHigh:"rgb(255 150 0)",priorityUrgent:"red",charts:{front:we}};return ie([r?.buttons,r?.form]),r}var sr=Object.defineProperty,Ce=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,Oe=(o,e,r)=>e in o?sr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,G=(o,e)=>{for(var r in e||(e={}))pr.call(e,r)&&Oe(o,r,e[r]);if(Ce)for(var r of Ce(e))ur.call(e,r)&&Oe(o,r,e[r]);return o};const br={primary:{border:"1px solid",borderLeft:"12px solid",borderRadius:"alerts",display:"flex",flexDirection:"column",fontWeight:"normal",maxHeight:"60vh",overflow:"auto",p:0,"&:focus":{outline:"none"},".notification__header":{display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,width:"100%",p:t(5)},".notification__title":{fontSize:18,fontWeight:"bold",color:"palette.text.primary",display:"flex",gap:t(5),alignItems:"center"},".notification__closeButton":{flexShrink:0},".notification__body":{alignItems:"center",display:"flex",flexDirection:"row",gap:t(5),width:"100%",p:t(5)},".notification__header ~ .notification__body":{pt:0},".notification__content":{display:"flex",alignItems:"stretch",flexDirection:"column",gap:t(5),width:"100%"},".notification__icon":{flexShrink:0,height:"iconMd",svg:{height:"iconMd",width:"iconMd"}},".notification__message":{display:"flex",flexDirection:"column",fontWeight:"normal",gap:t(3),width:"100%",wordBreak:"break-word"},".notification__trace":{maxWidth:"100%",overflow:"hidden",maxHeight:"30vh",flexShrink:0,backgroundColor:"rgba(10,10,10,0.02)",pt:t(5),".notification__traceLabel":{pl:t(5),display:"flex",gap:2},".notification__traceText":{fontWeight:"normal",p:t(5),maxHeight:"30vh",overflow:"auto",maxWidth:"100%",position:"relative"}},"&:focus .notification__closeButton":j},warning:{variant:"alerts.primary","&, & .notification__header":G({},h("notifications.warning"))},danger:{variant:"alerts.primary","&, & .notification__header":G({},h("notifications.error"))},success:{variant:"alerts.primary","&, & .notification__header":G({},h("notifications.success"))}};var fr=Object.defineProperty,mr=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,_e=(o,e,r)=>e in o?fr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,d=(o,e)=>{for(var r in e||(e={}))yr.call(e,r)&&_e(o,r,e[r]);if($e)for(var r of $e(e))hr.call(e,r)&&_e(o,r,e[r]);return o},je=(o,e)=>mr(o,gr(e));const vr={inherit:{color:"inherit",background:"inherit",border:"none",borderRadius:0,font:"inherit",cursor:"pointer",padding:0,margin:0},collapsibleAsidePanelTitle:d({variant:"buttons.inherit",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},n("buttons.collapsibleAsidePanelTitle")),primary:je(d({borderWidth:"2px",borderStyle:"solid",variant:"text.default",py:c({0:3,4:4}),px:c({0:5,4:6}),display:"inline-block",width:c({0:"100%",1:"auto"}),cursor:"pointer",borderRadius:"buttons",fontWeight:"normal",userSelect:"none",transition:"background-color 300ms ease-out, color 300ms ease-out",wordBreak:"keep-all"},n("buttons.primary")),{"&:focus, &:focus-visible":{outlineColor:"#00daff"}}),"primary-sm":d({variant:"buttons.primary","&:focus, &:focus-visible":{}},C),secondary:d({variant:"buttons.primary","&:focus, &:focus-visible":{},borderWidth:"0px",borderStyle:"solid"},n("buttons.secondary")),"secondary-sm":d({variant:"buttons.secondary"},C),"light-secondary":d({variant:"buttons.secondary"},n("buttons.lightSecondary")),danger:d({variant:"buttons.primary","&:focus, &:focus-visible":{}},n("buttons.danger")),"danger-sm":d({variant:"buttons.danger"},C),warning:d({variant:"buttons.primary","&:focus, &:focus-visible":{}},n("buttons.warning")),"warning-sm":d({variant:"buttons.warning"},C),close:d({cursor:"pointer",ml:"auto",mr:"2",borderRadius:"buttons"},n("buttons.close")),accordion:{variant:"buttons.primary","&:focus, &:focus-visible":{},cursor:"pointer",m:t(0),py:c({0:3,4:4}),px:c({0:5,4:6}),width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"buttons",textAlign:"left",fontFamily:"heading",fontSize:"text.default",textDecoration:"none",textTransform:"none",fontWeight:"bold",border:"none",transition:"background-color 300ms ease-out, color 300ms ease-out",userSelect:"text","&, *":n("buttons.accordion"),"h3.toggleAccordionElementLabel":{variant:"text.default",color:"inherit",margin:0,wordBreak:"break-word"}},"accordion-primary":d({variant:"buttons.accordion",border:"none"},n("buttons.accordionPrimary")),icon:je(d({display:"flex",justifyContent:"center",alignItems:"center",p:t(0),m:t(0),bg:"secondary",cursor:"pointer",transition:"background-color 300ms ease-out, color 300ms ease-out",borderRadius:"buttons",border:"none"},n("buttons.icon")),{svg:{width:"auto",height:"20px",display:"block"},"&.isToggled":d({},n("buttons.iconToggled"))}),"icon-primary":d({variant:"buttons.icon"},n("buttons.iconPrimary")),"icon-outline":d({variant:"buttons.icon",bg:"white",border:"1px solid"},n("buttons.iconOutline")),"icon-outline-danger":d({variant:"buttons.icon",bg:"white",border:"1px solid"},n("buttons.outlineDanger")),"icon-only":d({variant:"buttons.icon"},n("buttons.iconOnly")),link:d({variant:"inherit",width:"auto",border:"none",textDecoration:"underline",px:2,py:1,borderRadius:"buttons",cursor:"pointer",textTransform:"none",transition:"background-color 300ms ease-out, color 300ms ease-out"},n("buttons.link")),"link-sm":d({variant:"buttons.link"},C),outline:d({variant:"buttons.primary",borderWidth:"2px",borderStyle:"solid",borderRadius:"buttons","&:focus, &:focus-visible":{}},n("buttons.outline",{states:{active:!1,checked:!1,disabled:!1,focus:!1,hover:!1,readonly:!1,selected:!1}})),"outline-sm":d({variant:"buttons.outline"},C),"transparent-sm":d({variant:"buttons.outline","&:focus, &:focus-visible":{},bg:"transparent",color:"inherit",border:"none",font:"inherit",textTransform:"inherit"},C),"outline-danger":d({variant:"buttons.outline","&:focus, &:focus-visible":{}},n("buttons.outlineDanger")),"outline-danger-sm":d({variant:"buttons.outline-danger"},C),"outline-warning":d({variant:"buttons.outline","&:focus, &:focus-visible":{}},n("buttons.outlineWarning")),"outline-warning-sm":d({variant:"buttons.outline-warning"},C),"outline-extended":{variant:"buttons.outline",gridColumnStart:1,gridColumnEnd:3,width:"100%"},"outline-danger-extended":{variant:"buttons.outline-danger",gridColumnStart:1,gridColumnEnd:3,width:"100%"},"primary-extended":{variant:"buttons.primary","&:focus, &:focus-visible":{},gridColumnStart:1,gridColumnEnd:3,width:"100%"},query:{extended:{variant:"buttons.outline","&:focus, &:focus-visible":{},gridColumnStart:1,gridColumnEnd:3}},tableAccordion:d({variant:"buttons.accordion",fontSize:"text.default",p:t(3),wordBreak:"keep-all",a:{color:"background"}},n("buttons.tableAccordion")),tableHeader:d({variant:"buttons.tableAccordion",alignItems:"center",justifyContent:"center",height:"100%",border:"none",svg:{ml:t(2)}},n("buttons.tableHeader")),paper:d({variant:"buttons.primary",borderWidth:"2px",borderStyle:"solid",borderRadius:"buttons"},n("buttons.paper")),"paper-sm":d(d({variant:"buttons.primary",borderWidth:"2px",borderStyle:"solid",borderRadius:"buttons"},n("buttons.paper")),C)};var xr=Object.defineProperty,Se=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Pe=(o,e,r)=>e in o?xr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Cr=(o,e)=>{for(var r in e||(e={}))wr.call(e,r)&&Pe(o,r,e[r]);if(Se)for(var r of Se(e))kr.call(e,r)&&Pe(o,r,e[r]);return o};const Or=Cr({display:"inline-flex",borderRadius:"default",flexBasis:"32px",flexShrink:0,width:"32px",height:"32px",alignItems:"center",justifyContent:"center",p:"3px",border:"1px solid",svg:{width:"20px"}},n("form.fields",{states:{active:!1,hover:!1,focus:!1}}));var $r=Object.defineProperty,_r=Object.defineProperties,jr=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Ie=(o,e,r)=>e in o?$r(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Tr=(o,e)=>{for(var r in e||(e={}))Sr.call(e,r)&&Ie(o,r,e[r]);if(Te)for(var r of Te(e))Pr.call(e,r)&&Ie(o,r,e[r]);return o},Ir=(o,e)=>_r(o,jr(e));const Rr=Ir(Tr({borderRadius:"default"},n("form.fields",{states:{active:!1,focus:!1,hover:!1}})),{backgroundColor:"unset",alignItems:"center","&.nativeCheckbox":{appearance:"none",width:"25px",height:"25px",border:"solid 1px #cccccc",marginRight:"8px",position:"relative",cursor:"pointer","&:checked::before":{content:'"\u2713"',color:"palette.text.primary",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:0,left:0,right:0,bottom:0,fontSize:"larger",fontWeight:"bolder",borderRadius:"5px",cursor:"pointer"},"&:indeterminate::before":{content:'"-"',color:"palette.text.primary",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"-1px",left:0,right:0,bottom:0,fontSize:"xx-large",fontWeight:"600",borderRadius:"5px",cursor:"pointer"}}});var Br=Object.defineProperty,Wr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,Be=(o,e,r)=>e in o?Br(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,We=(o,e)=>{for(var r in e||(e={}))Er.call(e,r)&&Be(o,r,e[r]);if(Re)for(var r of Re(e))Ar.call(e,r)&&Be(o,r,e[r]);return o},Fr=(o,e)=>Wr(o,Dr(e));const zr=Fr(We({display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"stretch",gap:t(2),width:"100%","&.readOnly":{input:{color:"Text.fields",bg:"Background.fields"}},".iconInput":{width:"100%",position:"relative"},'input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]), input:hover~.delete_date_button:not(:disabled,[aria-selected="true"]) path, .delete_date_button':We({position:"absolute",right:"59px",padding:0,top:"calc(50% - 10px)",margin:0,marginRight:0,borderRadius:"100%",width:"20px",height:"20px"},n("buttons.icon-outline")),input:{flexShrink:1},"& > div":{display:"flex",gap:t(2),flexShrink:0,width:"auto",maxWidth:"100%",minWidth:0,button:{width:"45px",flexShrink:0}}},n("form.fields",{states:{hover:!1,active:!1,focus:!1}})),{backgroundColor:void 0});var Mr=Object.defineProperty,De=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable,Ee=(o,e,r)=>e in o?Mr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Xr=(o,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Ee(o,r,e[r]);if(De)for(var r of De(e))Hr.call(e,r)&&Ee(o,r,e[r]);return o};const qr={display:"flex",gap:t(1),justifyContent:"stretch",alignItems:"center","&.readOnly":{input:Xr({},h("form.fields"))},input:{height:"50px",width:"100%"},button:{display:"flex",width:"45px",flexShrink:0,height:"50px"}};var Gr=Object.defineProperty,Nr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Yr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Fe=(o,e,r)=>e in o?Gr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Jr=(o,e)=>{for(var r in e||(e={}))Yr.call(e,r)&&Fe(o,r,e[r]);if(Ae)for(var r of Ae(e))Ur.call(e,r)&&Fe(o,r,e[r]);return o},Kr=(o,e)=>Nr(o,Vr(e));const Qr=Kr(Jr({variant:"text.default",border:"1px solid",borderRadius:"default",padding:c({0:3,3:4}),"::placeholder":{color:"#b0b0b0"}},n("form.fields",{states:{active:!1,hover:!1,focus:!1}})),{material:{input:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottomColor:"palette.border.section","& + .input__underline":{transform:"scale(1)"},"&:focus":{outline:"none","~::after":{animationName:"growHorizontal",animationDuration:"150ms",animationTimingFunction:"ease-out",content:'""',display:"block",height:"0",outlineColor:"palette.primary.main",outlineStyle:"solid",outlineWidth:"1.5px",outlineOffset:0,position:"fixed",transformOrigin:"center center",width:"100%"}}}}}),Zr={variant:"text.default",alignItems:"center",width:"auto",textTransform:"none",cursor:"pointer","&:not(.radio-label)":{fontWeight:"bold"},"&.required":{position:"relative","&::before":{color:"danger",position:"absolute",content:'"*"',top:0,left:"-10px"}},"&:last-of-type":{"input, textarea, select":{mb:t(0)}}};var et=Object.defineProperty,ze=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Me=(o,e,r)=>e in o?et(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,tt=(o,e)=>{for(var r in e||(e={}))ot.call(e,r)&&Me(o,r,e[r]);if(ze)for(var r of ze(e))rt.call(e,r)&&Me(o,r,e[r]);return o};const at=tt({width:"32px",height:"32px",input:{height:"32px !important"}},n("form.radio"));var nt=Object.defineProperty,Le=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,He=(o,e,r)=>e in o?nt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,ct=(o,e)=>{for(var r in e||(e={}))it.call(e,r)&&He(o,r,e[r]);if(Le)for(var r of Le(e))lt.call(e,r)&&He(o,r,e[r]);return o};const dt=ct({variant:"text.default",display:"inline-block",fontFamily:"body",p:t(4),pr:7,borderRadius:"default",width:"100%",maxWidth:"100%"},n("form.fields",{states:{active:!1,hover:!1,focus:!1}}));var st=Object.defineProperty,pt=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,qe=(o,e,r)=>e in o?st(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Ge=(o,e)=>{for(var r in e||(e={}))bt.call(e,r)&&qe(o,r,e[r]);if(Xe)for(var r of Xe(e))ft.call(e,r)&&qe(o,r,e[r]);return o},mt=(o,e)=>pt(o,ut(e));const gt=Ge({variant:"text.default",height:"100%",padding:"4px",borderRadius:"default",border:"1px solid",width:"100%",transition:"background-color 100ms ease-out, color 100ms ease-out",overflow:"auto",option:mt(Ge({padding:2},ke()),{"&:checked":{backgroundColor:window.currentPalette.getColor(window.currentPalette.background.paper,"selected"),color:window.currentPalette.getContrastText(window.currentPalette.getColor(window.currentPalette.background.paper,"selected"))}}),"+ svg":{display:"none"}},n("form.fields",{states:{active:!1,hover:!1,focus:!1}})),yt={"+ span":{fontSize:14,fontWeight:"normal",wordBreak:"break-all"},backgroundColor:"form.fields.checked.borderColor"},ht={"&, & textarea":{height:"100%",minHeight:"130px",resize:"vertical"},textarea:{variant:"forms.input"}};var vt=Object.defineProperty,xt=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Ve=(o,e,r)=>e in o?vt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Ye=(o,e)=>{for(var r in e||(e={}))kt.call(e,r)&&Ve(o,r,e[r]);if(Ne)for(var r of Ne(e))Ct.call(e,r)&&Ve(o,r,e[r]);return o},Ot=(o,e)=>xt(o,wt(e));const $t={border:"1px solid",borderColor:"palette.border.field",display:"inline-block",position:"relative",pr:"45px",".deletableInput__input":{border:"none"},".deletableInput__deleteButton":Ye({height:"100%",outlineOffset:"-2px",position:"absolute",right:0,top:0,width:"45px"},n("buttons.deletableInputButton")),"&:focus-within:not(.asMaterial)":Ot(Ye({},j),{".deletableInput__input:focus":{outline:"none"},".deletableInput__deleteButton:focus":{outline:"none"}}),"&.asMaterial":{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottomColor:"palette.border.section","& + .input__underline":{transform:"scale(1)"},".deletableInput__input:focus":{outline:"none","~.input__underline::after":{animationName:"growHorizontal",animationDuration:"150ms",animationTimingFunction:"ease-out",content:'""',display:"block",height:"0",outlineColor:"palette.primary.main",outlineStyle:"solid",outlineWidth:"1.5px",outlineOffset:0,position:"absolute",transformOrigin:"center center",left:0,right:0}}}},_t=()=>({checkbox:Rr,customCheckbox:Or,dateInput:zr,deletableInput:$t,iconInput:qr,input:Qr,label:Zr,radio:at,select:dt,selectMultiple:gt,switch:yt,textarea:ht,'input[type="date"]':{variant:"forms.input"}}),jt={overlay:{position:"fixed",overflow:"hidden",top:"0",right:"0",bottom:"0",left:"0",width:"100vw",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"palette.background.overlay",zIndex:"modal","&:not(.screenLock) .modal-enter-done":{boxShadow:"modals"}}},St={margin:"auto",display:"flex",flexDirection:"column",wordBreak:"break-word",overflow:"hidden",width:"100%",".handler__form":{display:"flex",flexDirection:"column",overflow:"hidden",gap:t(6),".toggleAccordionElement":{position:"sticky",top:0},".handler__form__elements":{display:"flex",flexDirection:"column",alignItems:"stretch",overflowY:"auto",maxHeight:"60vh",gap:t(3),pr:t(3)},".handler__form__elements__section__content":{display:"flex",flexDirection:"column",wordBreak:"break-word",background:"palette.background.paper",p:0,gap:t(3)},".content .handler__form__elements__section__content":{border:"1px solid",borderColor:"palette.border.section",borderTop:"none",p:t(6)},".handler__form__buttons":{display:"flex",flexDirection:"row",justifyContent:"center",p:0,gap:"0px",textAlign:"center"},".radio":{display:"flex",flexDirection:"column",flexWrap:"wrap",listStyle:"none",variant:"layout.execution.form.fields.radio"},".handler__checkbox, .handler__radio":{"label span":{fontWeight:"normal"}},".checkbox":{flexDirection:"row-reverse",alignItems:"center",justifyContent:"start",gap:t(4),".semicolon":{display:"none"},input:{width:"100%"}},".handler__hidden":{display:"none"},"label.select > div":{width:"100%"},".spacer":{height:t(7)}},".progressBox":{p:t(5),pt:t(0)}};var Pt=Object.defineProperty,Tt=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Je=(o,e,r)=>e in o?Pt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,A=(o,e)=>{for(var r in e||(e={}))Rt.call(e,r)&&Je(o,r,e[r]);if(Ue)for(var r of Ue(e))Bt.call(e,r)&&Je(o,r,e[r]);return o},Ke=(o,e)=>Tt(o,It(e));const Wt=Ke(A({apiaApi:St},jt),{main:A({zIndex:"modal",display:"flex",flexDirection:"column",p:t(6),alignItems:"center",justifyItems:"center",maxHeight:"100vh",maxWidth:"calc(100vw - 10px)",resize:"both",overflow:"auto",border:"1px solid",gap:t(5),"&>div":{overflow:"hidden",flexGrow:0,flexShrink:0,p:"3px",width:"100%"},"&>div.modal__header":{alignItems:c({0:"end",4:"center"}),flexShrink:0,overflow:"visible",".modal__headerBar":{display:"flex",flexDirection:"row",alignItems:"center",gap:t(3)}},"&>div.modal__content, &>div.modal__content>form":{overflow:"auto",width:"100%",flexBasis:"100%",flexShrink:1,display:"flex",justifyContent:"stretch",alignItems:"stretch"}},h("modal")),finder:{variant:"layout.common.modals.main",height:c({0:"100vh",3:"80vh"}),width:c({0:"95vw",3:"80vw",4:"70vw"}),".modal__content":{p:t(2),overflow:"hidden",".confirm__content":{overflow:"hidden",".finder__content":{display:"flex",alignItems:"stretch"},".selection__keyHandler":{overflow:"hidden",height:"100%",".responsiveTable__wrapper":{height:"100%",border:"1px solid",borderColor:"palette.border.article",backgroundColor:"palette.gray.900"}}}}},sm:{variant:"layout.common.modals.main",maxWidth:"min(350px, calc(100vw - 10px))"},md:{variant:"layout.common.modals.main",maxWidth:"min(500px, calc(100vw - 10px))"},"md-fixed":{variant:"layout.common.modals.main",width:"min(500px, calc(100vw - 10px))",maxHeight:c({0:"95vh",2:"80vh"})},lg:{variant:"layout.common.modals.main",maxWidth:"min(640px, calc(100vw - 10px))"},"lg-fixed":{variant:"layout.common.modals.main",width:"640px",height:"60vh"},xl:{variant:"layout.common.modals.main",maxWidth:"min(730px, calc(100vw - 10px))"},"xl-fixed":{variant:"layout.common.modals.main",width:c({0:"95vw",2:"60vw"}),height:c({0:"95vh",2:"80vh"})},xxl:{variant:"layout.common.modals.main",width:c({0:"95vw",2:"80vw"}),maxHeight:c({0:"95vh",2:"80vh"})},"xxl-fixed":{variant:"layout.common.modals.main",width:c({0:"95vw",2:"80vw"}),height:c({0:"95vh",2:"80vh"})},xxxl:{variant:"layout.common.modals.main",width:c({0:"95vw",2:"95vw"}),maxHeight:c({0:"95vh",2:"95vh"})},"xxxl-fixed":{variant:"layout.common.modals.main",width:c({0:"95vw",2:"95vw"}),height:c({0:"95vh",2:"95vh"})},flex:{variant:"layout.common.modals.main",maxWidth:"95vw",maxHeight:"95vh",".modal__content":{p:t(2),overflow:"auto"}},cal:{variant:"layout.common.modals.sm",width:"350px",".react-calendar":{backgroundColor:"palette.background.paper",button:Ke(A({},n("form.fields")),{"&.react-calendar__tile--active":A({},n("buttons.primary"))})}},editGrid:{variant:"layout.common.modals.main",width:"root",maxHeight:"90vh"}});var Dt=Object.defineProperty,Et=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Ze=(o,e,r)=>e in o?Dt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,N=(o,e)=>{for(var r in e||(e={}))Ft.call(e,r)&&Ze(o,r,e[r]);if(Qe)for(var r of Qe(e))zt.call(e,r)&&Ze(o,r,e[r]);return o},eo=(o,e)=>Et(o,At(e));function Mt(){return{'td[data-focused="false"], th[data-focused="false"]':{"*:focus-visible, &:focus, &:focus-visible":{outline:"none"},"*:focus":N({},L)},'[data-focused="true"]:not(.row__separator__cell)':{'&:not([data-editionmode="true"])':{"&:focus, & > *:focus, *:focus-visible":eo(N({},L),{"&.cell__download__document":{outlineOffset:0}})},'&[data-editionmode="true"]':{"&:focus, *:focus, *:focus-visible":eo(N({},L),{outlineStyle:"dotted",outlineWidth:"6px",outlineOffset:"-4px"})}},'[data-focused="true"].row__separator__cell':{backgroundColor:"palette.secondary.main",outline:"none"}}}const oo=({children:o,customTheme:e})=>{const r=go(e);return x(U,{theme:r,children:o})};var Lt=Object.defineProperty,Ht=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,to=(o,e,r)=>e in o?Lt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,V=(o,e)=>{for(var r in e||(e={}))qt.call(e,r)&&to(o,r,e[r]);if(ro)for(var r of ro(e))Gt.call(e,r)&&to(o,r,e[r]);return o},Nt=(o,e)=>Ht(o,Xt(e));function Vt(o,e,r,i,u=!1){const l=M({},e,r);return Object.assign(b=>{const y=Po(0);return u?x(oo,{customTheme:l,children:x(ao,{avoidFirstRender:y,children:x(K,{children:x(i,V({},b))})})}):x(oo,{customTheme:l,children:x(ao,{avoidFirstRender:y,children:x(J,Nt(V({className:"variant__holder"},H(e)),{children:x(K,{children:x(i,V({},b))})}))})})},{displayName:o})}const ao=({avoidFirstRender:o,children:e})=>(o.current++,o.current<=1?null:x(So,{children:e}));function Yt(o,e){const r=typeof o=="string"?o:"",i=typeof o=="string"?e:o;F.emit("newStyles",{path:r,styles:i})}var Ut=Object.defineProperty,Jt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,no=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,io=(o,e,r)=>e in o?Ut(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,B=(o,e)=>{for(var r in e||(e={}))Qt.call(e,r)&&io(o,r,e[r]);if(no)for(var r of no(e))Zt.call(e,r)&&io(o,r,e[r]);return o},W=(o,e)=>Jt(o,Kt(e));const ea=W(B({variant:"colors.tables.primary",backgroundColor:"components.primaryTable.body.backgroundColor",border:"1px solid",borderColor:"components.primaryTable.borderColor",borderCollapse:"separate",borderSpacing:0,tableLayout:"fixed",thead:W(B({},h("tables.primary.thead")),{zIndex:1,position:"sticky",insetBlockStart:0,"tr:not(.filtersRow):not(.responsiveTable__filters__row)":{"th, td":W(B({variant:"buttons.primary",py:c({0:3,4:4}),px:c({0:3,4:4}),width:"breakWidth",borderRadius:0,borderStyle:"solid",borderWidth:"1px",display:"table-cell",verticalAlign:"center",wordBreak:"break-word",'&[role="presentation"]':{display:"none"}},n("components.primaryTable.header")),{"& *":{color:"inherit"},"&:last-of-type:not(td)":{maxWidth:"100%",width:"100%"},".headButton__label":{textAlign:"left"},".headButton__resizer":{width:"20px",cursor:"ew-resize",zIndex:1e3,position:"absolute",right:"-10px",height:"100%"},"&:last-of-type .headButton__resizer":{right:"0px"},"&.additionalColumn":{minWidth:"50px",maxWidth:"50px",width:"50px",p:0,textAlign:"center",verticalAlign:"center"},".headButton__container":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:3,svg:{flexShrink:0}},"&>div":{color:"components.primaryTable.header.color",svg:{color:"components.primaryTable.body.color"}},"&:not(:last-of-type)":{"&>div":{borderRightWidth:"1px"}}}),"th.requiredFilterColumn":{borderLeft:"4px solid !important",borderLeftColor:"palette.error.main !important"}},"tr.filtersRow, tr.responsiveTable__filters__row":{backgroundColor:"components.primaryTable.body.backgroundColor","th.noFilter":{background:"transparent"},"td.requiredFilter__Border":{borderLeftStyle:"solid !important",borderLeftWidth:"4px !important",borderLeftColor:"palette.error.main"},td:{"input:not([disabled]), select:not([disabled])":{border:"1px solid white"},background:"transparent",border:"1px solid",borderColor:"components.primaryTable.body.borderColor",p:0},transition:"height 0.3s","&.hidden":{height:"0",overflow:"hidden",p:t(0),border:"none","& *":{height:"0",overflow:"hidden",fontSize:0,lineHeight:0,p:t(0),border:"none"}}}}),tbody:{tr:W(B(W(B({borderBottomWidth:"1px",borderBottomStyle:"solid"},n("components.primaryTable.body",{states:{disabled:!1,readonly:!1,active:!1,hover:!1,checked:!1,focus:!1,selected:!1}})),{"&:nth-of-type(2n)":{backgroundColor:"components.primaryTable.body.evenRowsBackgroundColor"},"&.non-selectable":{cursor:"not-allowed"},"&.hidden":{display:"none"},"&.locked":{background:"palette.gray.900",td:{borderColor:"palette.gray.850"}}}),ke()),{"&.draggingRow":{outline:"3px dotted",outlineColor:"components.primaryTable.header.borderColor",outlineOffset:"-3px","*":{outline:"none !important"}},borderColor:"components.primaryTable.body.borderColor",".rowStatesList":{display:"flex",gap:t(3),alignItems:"center",svg:{width:"smallIcon",height:"smallIcon",cursor:"pointer"}},td:{verticalAlign:"top",wordBreak:"break-word",border:"1px solid",borderColor:"components.primaryTable.body.borderColor","&.stickyColumn":{position:"sticky",left:0,backgroundColor:"components.primaryTable.body.backgroundColor"},".moreInformationButton":{width:"30px",height:"30px",padding:"3px",border:"none",background:"transparent"}}}),td:{p:t(3)},".responsiveTable__additionalInfoContainer":{display:"grid",gridTemplateColumns:c({0:"repeat(2, 1fr)",5:"repeat(4, 1fr)"}),columnGap:3,rowGap:2},".responsiveTable__additionalInfoContainer .responsiveTable__additionalInfoItem.separator":{gridColumnStart:"1",gridColumnEnd:"5",borderBottom:"1px solid",borderBottomColor:"palette.gray.700",height:"auto"}},".editionMode":{border:"3px solid",borderColor:"components.primaryTable.header.borderColor",borderWidth:"1.5px",borderStyle:"dotted"},".stateCell":{width:"50px",maxWidth:"50px",minWidth:"50px",textAlign:"center",verticalAlign:"middle"}},Mt()),{".no__registers":{py:6,minWidth:"200px"},".requiredFilter__Column":{fontWeight:"bold"},".bold":{fontWeight:"bold"},".light":{color:"#6a6a6a"},".additionalInfo__cell, .stateCell":{verticalAlign:"middle"}}),oa={width:"100%",border:"1px solid",borderColor:"primary",borderCollapse:"collapse",thead:{tr:{th:{bg:"primary",color:"white",textAlign:"center",fontWeight:"bold",p:t(4)}}},tbody:{tr:{"td,th":{borderColor:"muted",p:t(4)},"&:not(tr:last-of-type)":{"td,th":{borderBottom:"1px solid"}},"td:not(td:last-child),th:not(th:last-child)":{borderRight:"1px solid"},th:{textAlign:"left",whiteSpace:"nowrap",minWidth:"min-content",width:0}}}},ra={display:"flex",flexDirection:"column",gap:t(2),".responsiveTable__accordionElement__toggler":{variant:"buttons.outline",borderWidth:"1px",display:"flex",gap:t(3),alignItems:"stretch",width:"100%",px:4,py:3,"&:hover h3":{color:"palette.primary.contrastText"},".accordionElement__toggler__checkbox":{flexShrink:0,m:t(2)},".accordionElement__toggler__button":{flexGrow:100,display:"flex",justifyContent:"space-between",py:2,pr:t(2),alignItems:"center",".accordionElement__toggler__label":{flexGrow:100,m:t(0),textAlign:"left",fontSize:16},".accordionElement__toggler__expandIcon":{flexShrink:0,svg:{width:"32px"}}}},".responsiveTable__accordionElement__content":{"& > div":{backgroundColor:"palette.background.paper",transition:"padding-bottom 300ms, padding-top 300ms",px:5},"&.rah-static--height-zero":{"& > div":{py:0}},"&.rah-static--height-auto, &.rah-animating--down":{"& > div":{py:5}},".priority_container":{display:"flex",alignItems:"center"},".priority":{display:"flex"}}},ta={border:"2px solid",borderColor:"printView.list.table.borderColor","td, th":{p:3,textAlign:"left"}},aa={maxHeight:"100%",overflow:"auto",position:"relative",table:{width:"100%"},"&.isLoading":{overflow:"hidden"},".responsiveTable__isLoading":{position:"absolute",top:0,left:0,right:0,bottom:0,background:f(window.currentPalette.background.paper).setAlpha(.7).toRgbString(),zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"},".cell__download__document":{display:"flex",gap:3,alignItems:"center",justifyContent:"start","&, *":{color:"palette.primary.main"},svg:{flexShrink:0}}};var na=Object.defineProperty,lo=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,la=Object.prototype.propertyIsEnumerable,co=(o,e,r)=>e in o?na(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,so=(o,e)=>{for(var r in e||(e={}))ia.call(e,r)&&co(o,r,e[r]);if(lo)for(var r of lo(e))la.call(e,r)&&co(o,r,e[r]);return o};const ca={variant:"layout.common.tables.primary",borderColor:"components.secondaryTable.borderColor","& thead":{"tr:not(.filtersRow):not(.responsiveTable__filters__row)":{"& th, & td":()=>so({},n("components.secondaryTable.header"))}},"& tbody":{tr:so({"&:nth-of-type(2n)":{backgroundColor:"components.secondaryTable.body.evenRowsBackgroundColor"},td:{borderColor:"components.secondaryTable.body.borderColor"},'&[aria-selected="true"]':{backgroundColor:"components.secondaryTable.body.selectedRows.backgroundColor","& td":{borderColor:"components.secondaryTable.body.selectedRows.borderColor"},color:"components.secondaryTable.body.selectedRows.color"},borderBottomWidth:"1px",borderBottomStyle:"solid"},n("components.secondaryTable.body",{states:{disabled:!1,readonly:!1,active:!1,hover:!1,checked:!1,focus:!1,selected:!1}}))}},da={accordion:ra,information:oa,primary:ea,print:ta,responsive:aa,secondary:ca},sa={display:"flex",flexDirection:"column",gap:t(2),".captcha__imageContainer":{border:"1px solid",borderColor:"palette.border.field",p:t(4)},".captcha__inputContainer":{display:"flex",gap:t(2),justifyContent:"stretch",input:{flexGrow:1,width:"100%"},".captcha__buttons":{width:"24px",flexDirection:"column",display:"flex",gap:t(2),flexShrink:0,button:{width:"24px",height:"24px",p:"5px",variant:"buttons.icon-outline",svg:{color:"palette.text.primary",height:"16px",width:"16px"}}}}},pa={captcha:sa};var ua=Object.defineProperty,po=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable,uo=(o,e,r)=>e in o?ua(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,ma=(o,e)=>{for(var r in e||(e={}))ba.call(e,r)&&uo(o,r,e[r]);if(po)for(var r of po(e))fa.call(e,r)&&uo(o,r,e[r]);return o};const ga={position:"relative",'[role="tree"]:focus':{outline:"none",".focus":j},ul:{listStyle:"none",p:0},".tree__searchLabelBox":{alignItems:"center",borderRadius:"2px",display:"flex",float:"right",gap:t(3),justifyContent:"center",position:"sticky",right:"4px",top:"4px",transform:"translateX(0)",width:"100%",zIndex:"stickyElements",".tree__loading":{position:"fixed",top:0,right:"4px",height:"iconMd",width:"iconMd",background:"palette.background.paper"},button:{cursor:"pointer"}},".tree__searchLabel":ma({alignItems:"center",display:"flex",gap:t(3),justifyContent:"center",position:"fixed",p:"2px 5px",right:0,top:0},p({backgroundColor:"palette.background.paper"},"selected")),'[role="treeitem"]':{'&[aria-expanded="false"] ul':{display:"none"},'&[aria-selected="true"] > .tree__nodeItemLabel':p({backgroundColor:"palette.background.paper"},"selected"),background:"transparent"},".tree__nodeItemLabel":{display:"flex",flexWrap:"nowrap",gap:3,alignItems:"center",wordBreak:"break-all",".button__content":{textAlign:"left"},"& > *:not(.tree__nodeItemLabelRenderer)":{flexShrink:0,textAlign:"left"},"&:hover":p({backgroundColor:"palette.background.paper"},"hover")},".spacer":{borderLeft:"1px solid",borderLeftColor:"palette.border.section",width:"20px",alignSelf:"stretch"}},ya={primary:ga},ha={forms:pa,modals:Wt,tables:da,trees:ya},va={"@keyframes growHorizontal":{from:{transform:"scaleX(0)"},to:{transform:"scaleY(100%)"}},".hamburguerMenu":{display:"none"},".hamburguerMenu-enter,\n.hamburguerMenu-appear":{display:"block",transform:"scale(0.7)",opacity:0},".hamburguerMenu-enter-active,\n.hamburguerMenu-appear-active":{transform:"translateX(0)",transition:"opacity 150ms, transform 150ms",transformOrigin:"right top",opacity:1},".hamburguerMenu-enter-done,\n.hamburguerMenu-appear-done":{display:"block"},".hamburguerMenu-exit":{display:"block",transform:"scale(1)",opacity:1},".hamburguerMenu-exit-active":{transform:"scale(0.7) translateX(0)",transition:"opacity 150ms, transform 150ms",display:"block",opacity:0,transformOrigin:"right top"},".hamburguerMenu-exit-done":{display:"none"},".modal-enter,\n.modal-appear":{opacity:0,transform:"scale(0.8)"},".modal-enter-active,\n.modal-appear-active":{opacity:1,transform:"translateX(0)",transition:"opacity 150ms, transform 150ms",transitionDelay:"0"},".modal-exit":{opacity:0},".modal-exit-done":{opacity:0,display:"none"},".modal-exit-active":{opacity:0,transform:"scale(100)",transition:"opacity 150ms, transform 150ms",transitionDelay:"0"},".overlayAnimation-enter .overlayAnimation:not(.not-released),\n.overlayAnimation-appear .overlayAnimation:not(.not-released)":{opacity:0},".overlayAnimation-enter-active .overlayAnimation:not(.not-released),\n.overlayAnimation-appear-active .overlayAnimation:not(.not-released)":{opacity:1,transition:"opacity 150ms"},".overlayAnimation-exit":{opacity:1},".overlayAnimation-exit-active":{opacity:0,transition:"opacity 150ms"},".fromRight-enter,\n.fromRight-appear":{transform:"translateX(550px)"},".fromRight-enter-active,\n.fromRight-appear-active":{transition:"transform 150ms",transform:"translateX(0)"},".fromRight-exit":{transform:"translateX(0)"},".fromRight-exit-active":{transition:"transform 150ms",transform:"translateX(550px)"},".notification-enter,\n.notification-appear":{opacity:0,transform:"scale(0.8)"},".notification-enter-active,\n.notification-appear-active":{opacity:1,transform:"translateX(0)",transition:"opacity 150ms, transform 150ms",transitionDelay:"0"},".notification-exit":{opacity:1},".notification-exit-active":{opacity:0,transform:"scale(0.8)",transition:"opacity 150ms, transform 150ms",transitionDelay:"0"}};var xa=Object.defineProperty,bo=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,ka=Object.prototype.propertyIsEnumerable,fo=(o,e,r)=>e in o?xa(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Y=(o,e)=>{for(var r in e||(e={}))wa.call(e,r)&&fo(o,r,e[r]);if(bo)for(var r of bo(e))ka.call(e,r)&&fo(o,r,e[r]);return o};const mo=Y({"*":{fontFamily:"body",fontWeight:"body",code:{fontFamily:"monospace"},"&:focus":j},body:{minHeight:"100vh"},h1:{fontSize:c({0:26,3:32})},h2:{fontSize:c({0:22,3:28})},h3:{fontSize:c({0:19,3:25})},h4:{fontSize:c({0:18,3:22})},h5:{fontSize:c({0:18,3:22})},h6:{fontSize:c({0:17,3:17})},"h1,h2,h3,h4,h5,h6":{letterSpacing:"heading",lineHeight:"heading",variant:"text.title"},"*:not(h1, h2, h3, h4, h5, h6, code)":{fontFamily:"body",fontSize:16,fontWeight:"body",letterSpacing:"body",lineHeight:"body"},a:{textDecoration:"underline"},"textarea,a":{transition:"color 200ms ease-out",":focus":Y({},j),":focus-visible":Y({},j)},"*:focus":j,ul:{listStyle:"none",listStyleType:"none",margin:0,padding:0},abbr:{"&.required":{textDecoration:"none",border:"none",mx:1,alignSelf:"baseline",fontWeight:"bold",color:"danger"}},table:{borderCollapse:"separate",borderSpacing:0},"& label":{display:"flex","& > span":{mb:t(1),fontWeight:"bold"},"&.required":{position:"relative","&::before":{color:"danger",position:"absolute",content:'"*"',top:0,left:"-10px"},"*:invalid":{borderColor:"danger"}}},".bold":{fontWeight:"bold"}},va),Ca={common:ha,root:mo},Oa={default:{color:"palette.text.primary",fontFamily:"body",fontWeight:"body",fontSize:16,m:t(0),width:"100%"},title:{letterSpacing:"heading",wordBreak:"normal",color:"title",fontFamily:"heading",lineHeight:"heading",fontWeight:"heading"}},$a={alerts:br,breakpoints:["0px","250px","500px","700px","1000px","1260px","1580px"],buttons:vr,colors:dr(),fonts:{body:"Arial",heading:"inherit",monospace:"Menlo, monospace"},fontSizes:Array(60).fill(1).map((o,e)=>e),forms:_t(),layout:Ca,lineHeights:{body:1.5,heading:1.125},letterSpacings:{body:"0.01em",heading:"-0.015em"},radii:{alerts:0,buttons:0,default:0},shadows:{modals:"",tabs:""},space:[0,2,4,8,12,16,24,32,40,48,64,80,96,112,128],sizes:{applicationMenu:"350px",floatingNotifications:"min(550px, calc(100vw - 30px))",root:"992px",mainImage:"64px",twoColumns:"calc(992px + 350px)",twoColumnsCentered:"calc(992px + 350px + 16px)",iconXs:"12px",iconSm:"16px",iconMd:"22px",iconLg:"32px",iconXl:"48px"},text:Oa,zIndices:{stickyElements:600,menu:1e3,maximizedTables:1100,modal:1200,tooltip:1400,notifications:1600,contextMenu:1800},styles:{root:mo},useRootStyles:!0},_a=o=>o;let ja={};new class extends Q{};function go(o){return _a(O($a,{layout:ja},o??{}))}var Sa=Object.defineProperty,yo=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable,ho=(o,e,r)=>e in o?Sa(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,vo=(o,e)=>{for(var r in e||(e={}))Pa.call(e,r)&&ho(o,r,e[r]);if(yo)for(var r of yo(e))Ta.call(e,r)&&ho(o,r,e[r]);return o};const xo={},F=new class extends Q{};function wo(o){xo[o.path]=o.styles}F.on("newStyles",wo);function ko(o){const[e,r]=To(go(o));return Bo(()=>(r(i=>{F.off("newStyles",wo);let u=vo({},i);return Object.entries(xo).forEach(([l,b])=>{const y=M({},l,b);u=O(u,y)}),u}),F.on("newStyles",i=>{const u=M({},i.path,i.styles);r(l=>O(vo({},l),u))}))),e}var Ia=Object.defineProperty,Ra=Object.defineProperties,Ba=Object.getOwnPropertyDescriptors,Co=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,Oo=(o,e,r)=>e in o?Ia(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Ea=(o,e)=>{for(var r in e||(e={}))Wa.call(e,r)&&Oo(o,r,e[r]);if(Co)for(var r of Co(e))Da.call(e,r)&&Oo(o,r,e[r]);return o},Aa=(o,e)=>Ra(o,Ba(e));let $o=-1;function Fa(o){clearTimeout($o),$o=setTimeout(()=>{console.info({theme:o})},100)}const _o=Io({}),za=({children:o,customTheme:e})=>{const r=ko(e);return Fa(r),x(_o.Provider,{value:r,children:x(U,{theme:r,children:x(J,Aa(Ea({},H("layout.root")),{children:o}))})})};export{za as ThemeProvider,_o as ThemeProviderContext,ie as applyStates,E as applyStatesGetColor,I as buildColorsObject,j as focusOutline,p as getColorState,pe as getColorStates,er as getColorsAndStatesByDefinition,n as getColorsAndStatesByPath,ge as getColorsByDefinition,h as getColorsByPath,ue as getOneColorState,R as getPalette,H as getVariant,Yt as injectStyles,Vt as makeStyledComponent,be as parsePalette,c as responsive,C as smallButton,t as spacing,ko as useMainTheme};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/util.ts","../src/base/colors/defaultPalette.ts","../src/base/colors/util/buildColorsObject.ts","../src/base/colors/util/getColorState.ts","../src/base/colors/util/applyStatesGetColor.ts","../src/base/colors/util/applyStates.ts","../src/base/colors/types.ts","../src/base/colors/util.ts","../src/base/colors/util/buildStateObject.ts","../src/base/colors/util/getColorsByPath.ts","../src/base/colors/util/getColorsAndStatesByPath.ts","../src/base/colors/util/getColorStates.ts","../src/base/colors/util/getOneColorState.ts","../src/base/colors/util/parsePalette.ts","../src/base/colors/schemas.ts","../src/base/colors/components.ts","../src/base/colors/index.ts","../src/base/alerts.ts","../src/base/buttons.ts","../src/base/forms/customCheckbox.ts","../src/base/forms/checkbox.ts","../src/base/forms/dateInput.ts","../src/base/forms/iconInput.ts","../src/base/forms/input.ts","../src/base/forms/label.ts","../src/base/forms/radio.ts","../src/base/forms/select.ts","../src/base/forms/selectMultiple.ts","../src/base/forms/switch.ts","../src/base/forms/textarea.ts","../src/base/forms/deletableInput.ts","../src/base/forms/index.ts","../src/base/layout/common/modals/overlay.ts","../src/base/layout/common/modals/apiaApi.ts","../src/base/layout/common/modals/index.ts","../src/base/layout/common/tables/getSelectionStyles.ts","../src/base/colors/util/getColorsByDefinition.ts","../src/base/colors/util/getColorsAndStatesByDefinition.ts","../src/methods/CustomThemeProvider.tsx","../src/methods/makeStyledComponent.tsx","../src/methods/injectStyles.ts","../src/base/layout/common/tables/primary.ts","../src/base/layout/common/tables/information.ts","../src/base/layout/common/tables/accordion.ts","../src/base/layout/common/tables/print.ts","../src/base/layout/common/tables/responsive.ts","../src/base/layout/common/tables/secondary.ts","../src/base/layout/common/tables/index.ts","../src/base/layout/common/forms/captcha.ts","../src/base/layout/common/forms/index.ts","../src/base/layout/common/trees/primary.ts","../src/base/layout/common/trees/index.ts","../src/base/layout/common/index.ts","../src/base/rootStyles/transitions.ts","../src/base/rootStyles/rootStyles.ts","../src/base/layout/index.ts","../src/base/text.ts","../src/base/baseTheme.ts","../src/methods/getMainTheme.ts","../src/methods/useMainTheme.ts","../src/ThemeProvider.tsx"],"sourcesContent":["import { ResponsiveStyleValue, ThemeUICSSObject } from 'theme-ui';\nimport defaultPalette from './base/colors/defaultPalette';\n\n/**\n * Esta función devuelve un array de valores para los distintos breakpoints.\n *\n * **Importante** Debido a un issue con ThemeUI, es necesario agregar un\n * breakpoint inicial de 0px para las vistas de impresión. El comportamiento por\n * defecto será, si se pasa un valor para el índice 4, esta será tomada como\n * vista de impresión, sino se tomará el valor de mayor índice menor que 4.\n *\n * @example\n *\n * display: responsive({0: 'none', 3: 'block'}) // display: ['block', 'none', null, null, 'block'];\n */\n\nexport function responsive<T>(values: {\n print?: T;\n [key: number]: undefined | T;\n}): ResponsiveStyleValue<T> {\n const returnArray = [];\n const max = 6;\n for (let i = 0; i <= max; i++) returnArray[i + 1] = values[i] ?? null;\n\n if (values.print) returnArray[0] = values.print;\n else {\n for (let i = 5; i >= 0; i--) {\n if (values[i] !== undefined) returnArray[0] = values[i];\n }\n }\n\n return returnArray;\n}\n\n/**\n * Este método permite aplicar espacios (gaps, márgenes y paddings) que se\n * tendrán un comportamiento responsivo por defecto. Esto es, cuando tenemos un\n * padding en una vista de escritorio, probablemente sea demasiado grande al\n * llevarlo a celular. Con esta función se elimina el problema de calcular para\n * cada elemento en forma individual y el problema se convierte en encontrar\n * una única fórmula que quede correcta para todos los breakpoints.\n *\n * @example\n *\n * '.wellPaddedElement': {\n * p: spacing(6),\n * pt: spacing(8)\n * }\n */\nexport function spacing(index: number): ResponsiveStyleValue<number> {\n return defaultPalette.spacing(index) ?? index;\n}\n\nexport const smallButton = {\n py: 2,\n px: 4,\n fontSize: '0.9em',\n};\n\nexport const focusOutline: ThemeUICSSObject = {\n outlineColor: 'outlineColor',\n outlineWidth: '3px',\n outlineStyle: 'solid',\n outlineOffset: '-3px',\n};\n\nexport function getVariant(variant: string) {\n return { variant, 'data-variant': variant };\n}\n","import { responsive } from '../../util';\nimport { TPalette } from './types';\n\nconst actions = { dark: '#cce5ff', light: '#557' };\nconst spacingArray = Array(50)\n .fill(1)\n .map((_, i) => {\n return responsive<number>({\n 0: Math.ceil(i / 2.5),\n 1: Math.ceil(i / 2.1),\n 2: Math.ceil(i / 1.7),\n 3: Math.ceil(i / 1.3),\n 4: i,\n });\n });\n\nconst defaultPalette: TPalette = {\n action: {\n disabled: '#d9d9d9',\n disabledOpacity: 1,\n active: actions,\n activeOpacity: 0.45,\n focus: actions,\n focusOpacity: 0.05,\n hover: actions,\n hoverOpacity: 0.1,\n readonly: actions,\n readonlyOpacity: 0.4,\n selected: 'rgb(204 214 222)',\n selectedOpacity: 1,\n },\n background: {\n default: '#f4f4f4',\n overlay: 'rgba(0, 0, 0, 0.2)',\n paper: 'white',\n },\n border: {\n article: '#cacaca',\n field: '#444',\n section: '#aaa',\n },\n common: {\n black: 'black',\n white: 'white',\n },\n info: {\n main: '#fff',\n },\n primary: {\n main: '#00496c',\n },\n secondary: {\n main: '#6c757d',\n },\n spacing: (index: number) => {\n return spacingArray[index];\n },\n text: {\n accent: '#609',\n disabled: '#555',\n icon: 'white',\n link: '#00496c',\n primary: '#4a4a4a',\n secondary: 'white',\n title: '#00496c',\n },\n error: {\n main: '#db7678',\n light: '#fff2f4',\n },\n success: {\n main: '#8bde8b',\n light: '#e7ffd9',\n },\n warning: {\n main: '#f8f588',\n light: '#fffdd9',\n },\n darkenRatio: 15,\n lightenRatio: 35,\n responsive,\n queryColumnsMultiplier: 2,\n};\nexport default defaultPalette;\n","import { TGetColorStateDefinition } from '../types';\n\n/**\n * Básicamente agrega la definición de borderLeftColor, borderRightColor, etc.\n */\nfunction buildColorsObject(definition: Partial<TGetColorStateDefinition>) {\n return {\n ...definition,\n ...(definition.borderColor\n ? {\n borderLeftColor: definition.borderColor,\n borderRightColor: definition.borderColor,\n borderBottomColor: definition.borderColor,\n borderTopColor: definition.borderColor,\n }\n : undefined),\n } as TGetColorStateDefinition;\n}\n\nexport default buildColorsObject;\n","import tinycolor from 'tinycolor2';\nimport { getPalette } from '../index';\nimport { TStateRetriever, TActionDefinition } from '../types';\nimport buildColorsObject from './buildColorsObject';\nimport { getValueByPath } from '@apia/util';\n\n/**\n * Este método acepta un objeto con backgroundColor y borderColor y aplica el\n * estado pasado como segundo parámetro de la siguiente manera:\n *\n * Si se pasa backgroundColor, se devuelve un backgroundColor y un color, que\n * corresponden al backgroundColor con el estado aplicado y un color calculado\n * con la función getContrastText.\n *\n * Si se pasa borderColor, se devuelve un nuevo borderColor calculado con el\n * estado aplicado.\n */\nconst getColorState: TStateRetriever = (definition, state) => {\n if (state === 'default') return buildColorsObject(definition);\n\n const palette = getPalette();\n const opacity: number = palette.action[\n `${state}Opacity` as keyof TActionDefinition\n ] as number;\n\n const actualState = state === 'checked' ? 'selected' : state;\n\n // eslint-disable-next-line no-param-reassign\n definition = Object.fromEntries(\n Object.entries(definition).map(([name, value]) => {\n if (\n [\n 'backgroundColor',\n 'borderColor',\n 'borderLeftColor',\n 'borderRightColor',\n 'borderBottomColor',\n 'borderTopColor',\n 'color',\n ].includes(name) &&\n ((value ?? '') as string).startsWith('palette')\n )\n // eslint-disable-next-line no-param-reassign\n value = getValueByPath(\n palette,\n (value as string).slice('palette.'.length),\n ) as string;\n\n return [name, value];\n }),\n );\n\n const calculatedBackgroundColor = tinycolor\n .mix(\n (definition.backgroundColor ?? '') as string,\n tinycolor((definition.backgroundColor ?? '') as string).isLight()\n ? palette.action[actualState].light\n : palette.action[actualState].dark,\n 100 * opacity,\n )\n .toRgbString();\n\n return buildColorsObject({\n ...(definition.backgroundColor\n ? {\n backgroundColor:\n state === 'checked'\n ? definition.backgroundColor ?? ''\n : calculatedBackgroundColor,\n color:\n state === 'checked'\n ? tinycolor\n .mix(\n tinycolor((definition.color ?? 'black') as string),\n tinycolor(palette.action.selected.dark),\n 100 * palette.action.selectedOpacity,\n )\n .toRgbString()\n : window.currentPalette.getContrastText(\n calculatedBackgroundColor,\n ),\n }\n : null),\n ...(definition.borderColor\n ? {\n borderColor: tinycolor\n .mix(\n definition.borderColor as string,\n tinycolor(definition.borderColor as string).isLight()\n ? palette.action[actualState].light\n : palette.action[actualState].dark,\n 100 * opacity,\n )\n .toRgbString(),\n }\n : null),\n });\n};\nexport default getColorState;\n","import { cloneDeep } from 'lodash';\nimport { ThemeUICSSObject } from 'theme-ui';\nimport { TStatesRetriever } from '../types';\nimport getColorState from './getColorState';\n\n/**\n * Este método está pensado para usarse únicamente dentro de applyStates, si se\n * desea obtener un objeto con las propiedades correspondientes a un estado,\n * utilizar el método getColorStates.\n */\nconst applyStatesGetColor: TStatesRetriever = (definition, states) => {\n const newStates: ThemeUICSSObject =\n states?.default !== false\n ? cloneDeep(definition)\n : ({} as ThemeUICSSObject);\n if (states?.active !== false) {\n newStates.active = getColorState(definition, 'active');\n }\n if (states?.disabled !== false) {\n newStates.disabled = getColorState(definition, 'disabled');\n }\n if (states?.focus !== false) {\n newStates.focus = getColorState(definition, 'focus');\n }\n if (states?.hover !== false) {\n newStates.hover = getColorState(definition, 'hover');\n }\n if (states?.readonly !== false) {\n newStates.readonly = getColorState(definition, 'readonly');\n }\n if (states?.selected !== false) {\n newStates.selected = getColorState(definition, 'selected');\n }\n if (states?.checked !== false) {\n newStates.checked = getColorState(definition, 'checked');\n }\n return newStates;\n};\n\nexport default applyStatesGetColor;\n","import { merge } from 'lodash';\nimport { TColorDefinition, TStates } from '../types';\nimport applyStatesGetColor from './applyStatesGetColor';\n\n/**\n * Esta función está pensada para ser utilizada dentro del objeto colors del\n * tema. Aplica recursivamente los distintos estados a todos los elementos\n * contenidos dentro de los objetos pasados como parámetro en properties.\n *\n * Es posible elegir cuáles estados se aplican y cuáles no mediante el segundo\n * parámetro, que es un objeto cuyas propiedades serán tomadas en cuenta\n * únicamente cuando tienen valor false, en cuyo caso no se aplicará el estado\n * correspondiente.\n *\n * @param properties\n * @param states\n */\nexport default function applyStates(\n properties: Record<\n string,\n TColorDefinition | string | Record<string, unknown>\n >[],\n states?: TStates,\n) {\n properties.forEach((def) => {\n Object.entries(def).forEach(([key, value]) => {\n if (typeof value === 'string') return;\n const definition = value as TColorDefinition;\n if (!definition.active) definition.active = {};\n if (!definition.checked) definition.checked = {};\n if (!definition.focus) definition.focus = {};\n if (!definition.disabled) definition.disabled = {};\n if (!definition.hover) definition.hover = {};\n if (!definition.selected) definition.selected = {};\n\n const newDefinition = applyStatesGetColor(definition, states);\n // eslint-disable-next-line no-param-reassign\n def[key] = merge(newDefinition, definition);\n });\n });\n}\n","import { ResponsiveStyleValue, ThemeUICSSObject } from 'theme-ui';\nimport { responsive } from '../../util';\nimport getColorsAndStatesByPath from './util/getColorsAndStatesByPath';\n\n/* eslint-disable @typescript-eslint/naming-convention */\nexport function isColorDefinition(\n value:\n | IColorDefinition\n | TColorModifier\n | Record<string, unknown>\n | string\n | number\n | TActionDefinition\n | TStatesRetriever\n | ((index: number) => ResponsiveStyleValue<number>)\n | typeof responsive,\n): value is IColorDefinition {\n return !!value && typeof value === 'object' && 'main' in value;\n}\n\nexport interface IColorDefinition {\n main: string;\n light?: string;\n dark?: string;\n contrastText?: string;\n}\n\nexport interface IActionOpacity {\n light: string;\n dark: string;\n}\n\nexport interface TStates {\n active?: boolean;\n checked?: boolean;\n default?: boolean;\n disabled?: boolean;\n focus?: boolean;\n hover?: boolean;\n readonly?: boolean;\n selected?: boolean;\n}\n\nexport type TGetColorStateDefinition = Pick<\n ThemeUICSSObject,\n | 'backgroundColor'\n | 'borderColor'\n | 'borderLeftColor'\n | 'borderRightColor'\n | 'borderBottomColor'\n | 'borderTopColor'\n | 'color'\n>;\n\nexport type TColorStateRetriever = (\n color: string,\n state: keyof TStates,\n) => string;\n\nexport type TStateRetriever = (\n definition: Partial<TGetColorStateDefinition>,\n state: keyof TStates,\n) => TGetColorStateDefinition;\n\nexport type TStatesRetriever = (\n definition: Partial<TGetColorStateDefinition>,\n states?: TStates,\n) => ThemeUICSSObject;\n\nexport interface TActionDefinition<\n OpacityColor = undefined | string | IActionOpacity,\n> {\n active: OpacityColor;\n activeOpacity: number;\n disabled: OpacityColor;\n disabledOpacity: number;\n focus: OpacityColor;\n focusOpacity: number;\n hover: OpacityColor;\n hoverOpacity: number;\n readonly: OpacityColor;\n readonlyOpacity: number;\n selected: OpacityColor;\n selectedOpacity: number;\n}\n\nexport type TColorModifier = (color: string, ratio?: number) => string;\nexport interface TPalette<\n ColorDefinition = IColorDefinition,\n ColorModifier = TColorModifier,\n ActionDefinition = TActionDefinition,\n> {\n action: ActionDefinition;\n background: {\n default: string;\n overlay: string;\n paper: string;\n };\n border: {\n article: string;\n field: string;\n section: string;\n };\n common: {\n white: string;\n black: string;\n };\n error: ColorDefinition;\n gray?: {\n 100: string;\n 150: string;\n 200: string;\n 250: string;\n 300: string;\n 350: string;\n 400: string;\n 450: string;\n 500: string;\n 550: string;\n 600: string;\n 650: string;\n 700: string;\n 750: string;\n 800: string;\n 850: string;\n 900: string;\n 950: string;\n };\n info: ColorDefinition;\n primary: ColorDefinition;\n secondary: ColorDefinition;\n spacing: (index: number) => ResponsiveStyleValue<number>;\n success: ColorDefinition;\n text: {\n accent: string;\n disabled: string;\n icon: string;\n link: string;\n primary: string;\n secondary: string;\n title: string;\n };\n warning: ColorDefinition;\n\n lightenRatio?: number;\n darkenRatio?: number;\n /**\n * Acepta un ratio entre 0 y 100\n */\n lightenColor?: ColorModifier;\n /**\n * Acepta un ratio entre 0 y 100\n */\n darkenColor?: ColorModifier;\n getContrastText?: ColorModifier;\n responsive: typeof responsive;\n\n queryColumnsMultiplier?: number;\n}\n\nexport type TBuildStateObject = <T extends Partial<ThemeUICSSObject>>(\n props: T,\n state: keyof Required<TStates> | 'checked',\n) => ThemeUICSSObject;\n\nexport type TParsedPalette = Required<\n TPalette<\n Required<IColorDefinition>,\n TColorModifier,\n Required<TActionDefinition<IActionOpacity>>\n >\n> & {\n buildStateObject: TBuildStateObject;\n getColor: TColorStateRetriever;\n getOneState: TStateRetriever;\n getStatesForColors: TStatesRetriever;\n getStatesFromDefinition: TStatesRetriever;\n getStatesFromPath: typeof getColorsAndStatesByPath;\n};\n\nexport type TColorDefinitionPrimitive = Pick<\n ThemeUICSSObject,\n 'color' | 'backgroundColor' | 'borderColor'\n>;\n\nexport type TColorDefinition = TColorDefinitionPrimitive & {\n active?: TColorDefinitionPrimitive;\n checked?: TColorDefinitionPrimitive;\n disabled?: TColorDefinitionPrimitive;\n focus?: TColorDefinitionPrimitive;\n hover?: TColorDefinitionPrimitive;\n selected?: TColorDefinitionPrimitive;\n};\n\ndeclare global {\n interface Window {\n currentPalette: TParsedPalette;\n customPalette?: TPalette;\n defaultPalette?: TPalette;\n }\n}\n","import tinycolor from 'tinycolor2';\n\nexport function defaultLighten(color: string, ratio?: number) {\n return tinycolor(color)\n .lighten(ratio ?? 20)\n .toRgbString();\n}\nexport function defaultDarken(color: string, ratio?: number) {\n return tinycolor(color)\n .darken(ratio ?? 20)\n .toRgbString();\n}\nexport function defaultGetContrastText(color: string) {\n const current = tinycolor(color);\n return tinycolor.readability('white', current) <\n tinycolor.readability('black', current)\n ? 'black'\n : 'white';\n}\n","import { merge } from 'lodash';\nimport { ThemeUICSSObject } from 'theme-ui';\nimport { focusOutline } from '../../../util';\nimport { TBuildStateObject } from '../types';\n\n/**\n * Dado un estado, se devuelven las propiedades necesarias para garantizar que\n * dicho estado se aplique en variadas circunstancias.\n */\nconst buildStateObject: TBuildStateObject = (props, state) => {\n switch (state) {\n case 'active':\n return {\n '&:active': props,\n 'input[role]:active ~ &': props,\n 'input[role]:active ~ & path': props,\n };\n case 'checked':\n return {\n '&:checked': props,\n 'input[role]:checked ~ &': props,\n 'input[role]:checked ~ & path': props,\n };\n case 'disabled':\n return {\n '&:disabled': props,\n 'input[role]:disabled ~ &': props,\n 'input[role]:disabled ~ & path': props,\n };\n case 'focus': {\n const focusObject = merge({}, focusOutline, props);\n return {\n '&:focus': focusObject,\n 'input[role]:focus ~ &': focusObject,\n };\n }\n case 'hover': {\n return {\n '&:hover:not([readonly], :disabled,[aria-selected=\"true\"],:active)':\n props,\n 'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected=\"true\"])':\n props,\n 'input[role]:hover:not([readonly], :active, :disabled) ~ &:not(:disabled,[aria-selected=\"true\"]) path':\n props,\n };\n }\n case 'readonly':\n return {\n '&[readonly]': props,\n 'input[role][readonly] ~ &': props,\n 'input[role][readonly] ~ & path': props,\n '&.readonly input ~ &, &.readOnly input ~ &': props,\n '&.readonly input ~ & path, &.readOnly input ~ & path': props,\n '&.readonly, &.readOnly': props,\n };\n case 'selected':\n return {\n '&:selected': props,\n 'input[role]:selected ~ &': props,\n 'input[role]:selected ~ & path': props,\n '&[aria-selected=\"true\"]': props,\n };\n default:\n return props as unknown as ThemeUICSSObject;\n }\n};\nexport default buildStateObject;\n","import { merge } from 'lodash';\nimport buildColorsObject from './buildColorsObject';\n\n/**\n * Esta función NO CALCULA ningún color, simplemente devuelve un objeto con las\n * rutas de color con el formato de ThemeUI. Es útil cuando se desea aplicar\n * colores definidos en el objeto colors.\n *\n * Si se desea generar un objeto con los colores a partir de una definición de\n * colores del tipo TGetColorStateDefinition se debe utilizar el método\n * getColorsByDefinition.\n */\nexport default function getColorsByPath(\n path: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n options?: { mergeObject?: Record<string, any> },\n) {\n return merge(\n buildColorsObject({\n color: `${path}.color`,\n backgroundColor: `${path}.backgroundColor`,\n borderColor: `${path}.borderColor`,\n }),\n options?.mergeObject,\n );\n}\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { merge } from 'lodash';\nimport buildStateObject from './buildStateObject';\nimport getColorsByPath from './getColorsByPath';\n\nexport interface TGetColorsAndStatesOptions {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n mergeObject?: Record<string, any>;\n states?: {\n active?: boolean;\n checked?: boolean;\n default?: boolean;\n disabled?: boolean;\n focus?: boolean;\n hover?: boolean;\n readonly?: boolean;\n selected?: boolean;\n };\n}\n\n/**\n * Esta función es útil para devolver los estados calculados por la aplicación\n * dentro del objeto colors de ThemeUI. Si se desea calcular los estados en\n * base a un color, se debe utilizar el método getColorsAndStatesByColor.\n */\nexport default function getColorsAndStatesByPath(\n path: string,\n options?: TGetColorsAndStatesOptions,\n) {\n const active = getColorsByPath(`${path}.active`, options);\n const checked = getColorsByPath(`${path}.checked`, options);\n const disabled = {\n cursor: 'not-allowed',\n ...getColorsByPath(`${path}.disabled`, options),\n };\n const hover = getColorsByPath(`${path}.hover`, options);\n const focus =\n options?.states?.focus !== false\n ? getColorsByPath(`${path}.focus`, options)\n : {};\n const readonly = {\n cursor: 'notAllowed',\n ...getColorsByPath(`${path}.readonly`, options),\n };\n const selected = getColorsByPath(`${path}.selected`, options);\n\n return merge(\n {\n ...(options?.states?.default !== false\n ? getColorsByPath(path, options)\n : null),\n ...(options?.states?.checked !== false\n ? buildStateObject(checked, 'checked')\n : null),\n ...buildStateObject(focus, 'focus'),\n ...(options?.states?.hover !== false\n ? buildStateObject(hover, 'hover')\n : null),\n ...(options?.states?.selected !== false\n ? buildStateObject(selected, 'selected')\n : null),\n ...(options?.states?.active !== false\n ? buildStateObject(active, 'active')\n : null),\n ...(options?.states?.disabled !== false\n ? buildStateObject(disabled, 'disabled')\n : null),\n ...(options?.states?.readonly !== false\n ? buildStateObject(readonly, 'readonly')\n : null),\n },\n options?.mergeObject,\n ) as Record<string, ThemeUICSSObject>;\n}\n","import { TStatesRetriever } from '../types';\nimport buildStateObject from './buildStateObject';\nimport getColorState from './getColorState';\n\n/**\n * Con este método es posible construir un objeto con las propiedades\n * necesarias para aplicar los colores correspondientes a los estados deseados\n * a partir de la definición provista.\n */\nconst getColorStates: TStatesRetriever = (definition, states) => {\n return {\n ...(states?.default !== false ? definition : null),\n ...(states?.checked !== false\n ? buildStateObject(getColorState(definition, 'checked'), 'checked')\n : null),\n ...buildStateObject(getColorState(definition, 'focus'), 'focus'),\n ...(states?.selected !== false\n ? buildStateObject(getColorState(definition, 'selected'), 'selected')\n : null),\n ...(states?.hover !== false\n ? buildStateObject(getColorState(definition, 'hover'), 'hover')\n : null),\n ...(states?.active !== false\n ? buildStateObject(getColorState(definition, 'active'), 'active')\n : null),\n ...(states?.disabled !== false\n ? buildStateObject(getColorState(definition, 'disabled'), 'disabled')\n : null),\n ...(states?.readonly !== false\n ? buildStateObject(getColorState(definition, 'readonly'), 'readonly')\n : null),\n };\n};\n\nexport default getColorStates;\n","import tinycolor from 'tinycolor2';\n\nimport { getPalette } from '../index';\n\nimport { TColorStateRetriever, TActionDefinition } from '../types';\n\n/**\n\n * Este método acepta un color y aplica el estado pasado como segundo\n\n * parámetro. De esta forma se puede obtener el color correspondiente al estado\n\n * calculado automáticamente por la aplicación.\n\n */\n\nconst getOneColorState: TColorStateRetriever = (color, state) => {\n if (state === 'default') return color;\n\n const actualState = state === 'checked' ? 'selected' : state;\n\n const palette = getPalette();\n\n const opacity: number = palette.action[\n `${state}Opacity` as keyof TActionDefinition\n ] as number;\n\n return tinycolor\n\n .mix(\n color,\n\n tinycolor(color).isLight()\n ? palette.action[actualState].light\n : palette.action[actualState].dark,\n\n 100 * opacity,\n )\n\n .toRgbString();\n};\n\nexport default getOneColorState;\n","import { cloneDeep } from 'lodash';\nimport {\n TPalette,\n TParsedPalette,\n isColorDefinition,\n IActionOpacity,\n IColorDefinition,\n} from '../types';\nimport { defaultLighten, defaultDarken, defaultGetContrastText } from '../util';\nimport applyStatesGetColor from './applyStatesGetColor';\nimport buildStateObject from './buildStateObject';\nimport getColorsAndStatesByPath from './getColorsAndStatesByPath';\nimport getColorState from './getColorState';\nimport getColorStates from './getColorStates';\nimport getOneColorState from './getOneColorState';\n\nexport default function parsePalette(palette: TPalette) {\n const newPalette: TParsedPalette = cloneDeep(palette) as TParsedPalette;\n\n // Put methods\n newPalette.lightenColor =\n palette.lightenColor ??\n ((color: string, ratio?: number) => {\n return defaultLighten(color, ratio ?? palette.lightenRatio);\n });\n newPalette.darkenColor =\n palette.darkenColor ??\n ((color: string, ratio?: number) => {\n return defaultDarken(color, ratio ?? palette.darkenRatio);\n });\n newPalette.getContrastText =\n palette.getContrastText ?? defaultGetContrastText;\n\n // Fill colors\n Object.entries(palette).forEach(([key, value]) => {\n const castedValue = value as string | number | IColorDefinition;\n if (isColorDefinition(castedValue)) {\n (newPalette as Record<string, unknown>)[key] = {\n main: castedValue.main,\n light: castedValue.light ?? newPalette.lightenColor(castedValue.main),\n dark: castedValue.dark ?? newPalette.darkenColor(castedValue.main),\n contrastText:\n castedValue.contrastText ??\n newPalette.getContrastText(castedValue.main),\n };\n } else {\n (newPalette as Record<string, unknown>)[key] = value;\n }\n });\n\n // Draw borders\n newPalette.border.article =\n newPalette.border.article ?? newPalette.secondary.main;\n newPalette.border.field = newPalette.border.field ?? newPalette.text.primary;\n newPalette.border.section =\n newPalette.border.section ?? newPalette.primary.main;\n\n // Define actions\n function parseAction(action: string | IActionOpacity): IActionOpacity {\n if (typeof action === 'string')\n return {\n dark: action,\n light: action,\n };\n return {\n dark: action.dark ?? action.light,\n light: action.light ?? action.dark,\n };\n }\n\n newPalette.action.active = parseAction(newPalette.action.active);\n newPalette.action.disabled = parseAction(newPalette.action.disabled);\n newPalette.action.focus = parseAction(newPalette.action.focus);\n newPalette.action.hover = parseAction(newPalette.action.hover);\n newPalette.action.readonly = parseAction(newPalette.action.readonly);\n newPalette.action.selected = parseAction(newPalette.action.selected);\n\n newPalette.buildStateObject = buildStateObject;\n newPalette.getColor = getOneColorState;\n newPalette.getStatesForColors = applyStatesGetColor;\n newPalette.getOneState = getColorState;\n newPalette.getStatesFromDefinition = getColorStates;\n newPalette.getStatesFromPath = getColorsAndStatesByPath;\n\n newPalette.gray = newPalette.gray ?? {};\n for (let i = 1; i <= 18; i++) {\n const index = Math.round(((255 - 255 / 18) / 18) * i);\n newPalette.gray[(i * 50) as keyof typeof newPalette.gray] =\n newPalette.gray[(i * 50) as keyof typeof newPalette.gray] ??\n `rgb(${index},${index},${index})`;\n }\n\n return newPalette;\n}\n","export const schemas: Record<string, string[]> = {\n ocean: ['#008E1B', '#009155', '#009187', '#008EB1', '#006872', '#2F4858'],\n sunset: ['#ae76de', '#D65DB1', '#FF6F91', '#FF9671', '#FFC75F', '#F9F871'],\n red: ['#dc143c', '#ff2400', '#800020', '#b22222', '#e52b50', '#ff7f50'],\n orange: ['#F76E11', '#FF9F45', '#FFBC80', '#FC4F4F', '#eb9605', '#964000'],\n green: ['#a4de02', '#76ba1b', '#4c9a2a', '#acdf87', '#68bb59', '#1e5631'],\n blue: ['#7ad6f4', '#45bdee', '#28a7ea', '#006cbb', '#034698', '#032f64'],\n violet: ['#80007e', '#a02d9c', '#c37ecd', '#9e5fb8', '#7f3e98', '#4c197f'],\n turquoise: ['#0ddbcc', '#43ebff', '#19ceeb', '#28acea', '#388ee9', '#3d76e0'],\n yellow: ['#fff700', '#ffff9f', '#fef54f', '#f9e231', '#f6c616', '#eab200'],\n grey: ['#b1b5ba', '#d2d5d6', '#dee0e0', '#bdbdbb', '#9fa19c', '#686e67'],\n};\n","const components = () => {\n const palette = window.currentPalette;\n\n return {\n datagrid: {\n borderColor: palette.background.paper,\n header: {\n backgroundColor: palette.background.default,\n color: palette.text.primary,\n borderColor: palette.background.default,\n },\n body: {\n preventParse: true,\n backgroundColor: palette.background.paper,\n evenRowsBackgroundColor: palette.darkenColor(\n palette.background.paper,\n 3,\n ),\n color: palette.text.primary,\n borderColor: palette.gray['800'],\n\n selectedRows: {\n borderColor: palette.gray['800'],\n backgroundColor: palette.getOneState(\n { backgroundColor: palette.background.paper },\n 'selected',\n ).backgroundColor,\n color: palette.getContrastText(\n palette.getOneState(\n { backgroundColor: palette.background.paper },\n 'selected',\n ).backgroundColor as string,\n ),\n },\n },\n },\n pagination: {\n backgroundColor: palette.primary.main,\n icons: {\n backgroundColor: palette.primary.main,\n borderColor: palette.primary.main,\n color: palette.primary.contrastText,\n },\n pagesBox: {\n preventParse: true,\n backgroundColor: palette.background.paper,\n borderColor: palette.border.field,\n color: palette.text.primary,\n },\n },\n primaryTable: {\n borderColor: palette.background.paper,\n header: {\n backgroundColor: palette.primary.main,\n color: palette.primary.contrastText,\n borderColor: palette.primary.main,\n },\n body: {\n preventParse: true,\n backgroundColor: palette.background.paper,\n evenRowsBackgroundColor: palette.darkenColor(\n palette.background.paper,\n 3,\n ),\n color: palette.text.primary,\n borderColor: palette.gray['800'],\n selectedRows: {\n borderColor: palette.gray['800'],\n backgroundColor: palette.getOneState(\n { backgroundColor: palette.background.paper },\n 'selected',\n ).backgroundColor,\n color: palette.getContrastText(\n palette.getOneState(\n { backgroundColor: palette.background.paper },\n 'selected',\n ).backgroundColor as string,\n ),\n },\n },\n },\n secondaryTable: {\n borderColor: palette.background.paper,\n header: {\n backgroundColor: palette.background.default,\n color: palette.text.primary,\n borderColor: palette.background.default,\n },\n body: {\n preventParse: true,\n backgroundColor: palette.background.paper,\n evenRowsBackgroundColor: palette.darkenColor(\n palette.background.paper,\n 3,\n ),\n color: palette.text.primary,\n borderColor: palette.gray['800'],\n\n selectedRows: {\n borderColor: palette.gray['800'],\n backgroundColor: palette.getOneState(\n { backgroundColor: palette.background.paper },\n 'selected',\n ).backgroundColor,\n color: palette.getContrastText(\n palette.getOneState(\n { backgroundColor: palette.background.paper },\n 'selected',\n ).backgroundColor as string,\n ),\n },\n },\n },\n };\n};\n\nexport default components;\n","import { cloneDeep, merge } from 'lodash';\nimport tinycolor from 'tinycolor2';\nimport defaultPalette from './defaultPalette';\nimport { TColorDefinition, TPalette } from './types';\nimport applyStates from './util/applyStates';\nimport applyStatesGetColor from './util/applyStatesGetColor';\nimport parsePalette from './util/parsePalette';\nimport { schemas } from './schemas';\nimport components from './components';\n\n// Colors\nconst darkBlue = '#004085';\nconst lightBlue = '#cce5ff';\nconst white = 'white';\n\nexport function getSelectedColors() {\n const palette = getPalette();\n return palette.getStatesFromDefinition(\n {\n backgroundColor: palette.background.paper,\n color: palette.text.primary,\n },\n {\n active: false,\n checked: false,\n default: false,\n disabled: false,\n focus: false,\n readonly: false,\n },\n );\n}\n\nexport function getPalette(arg?: TPalette | boolean) {\n const shouldReparsePalette = arg === true;\n const customPalette = typeof arg !== 'boolean' ? arg : undefined;\n\n if (window.currentPalette && !shouldReparsePalette)\n return window.currentPalette;\n\n window.currentPalette = parsePalette(\n merge(\n defaultPalette,\n window.defaultPalette,\n customPalette ?? window.customPalette,\n ),\n );\n return window.currentPalette;\n}\n\nexport function getThemeColorsObject() {\n const palette = cloneDeep(window.currentPalette ?? getPalette());\n\n const colors = {\n palette: {\n ...palette,\n lightenColor: undefined,\n darkenColor: undefined,\n getContrastText: undefined,\n\n buildStateObject: undefined,\n getColor: undefined,\n getOneState: undefined,\n getStatesForColors: undefined,\n getStatesFromDefinition: undefined,\n getStatesFromPath: undefined,\n },\n accordion: {\n borderColor: palette.border.section,\n },\n buttons: {\n accordion: {\n backgroundColor: palette.primary.main,\n borderColor: palette.border.section,\n color: palette.primary.contrastText,\n },\n accordionPrimary: {\n backgroundColor: palette.primary.main,\n borderColor: palette.border.section,\n color: palette.primary.contrastText,\n },\n close: {\n ...applyStatesGetColor({\n color: palette.text.primary,\n backgroundColor: palette.background.paper,\n }),\n backgroundColor: 'transparent',\n },\n collapsibleAsidePanelTitle: {\n color: palette.text.primary,\n },\n deletableInputButton: {\n backgroundColor: 'transparent',\n color: palette.secondary.main,\n\n active: {\n color: palette.darkenColor(palette.secondary.main, 40),\n },\n disabled: {\n color: palette.secondary.main,\n },\n focus: {\n color: palette.darkenColor(palette.secondary.main, 20),\n },\n hover: {\n color: palette.darkenColor(palette.secondary.main, 20),\n },\n },\n icon: {\n backgroundColor: palette.secondary.main,\n color: palette.text.icon,\n\n hover: {\n color: palette.secondary.contrastText,\n },\n\n focus: {\n color: palette.secondary.contrastText,\n },\n },\n iconAlert: {\n backgroundColor: 'transparent',\n color: palette.text.icon,\n\n active: {\n backgroundColor: 'transparent',\n color: tinycolor('#e5c200').darken(10).toRgbString(),\n },\n\n focus: {\n backgroundColor: 'transparent',\n color: tinycolor('#e5c200').darken(5).toRgbString(),\n },\n\n hover: {\n backgroundColor: 'transparent',\n color: tinycolor('#e5c200').darken(5).toRgbString(),\n },\n },\n iconPrimary: {\n backgroundColor: palette.primary.main,\n color: palette.primary.contrastText,\n\n active: {\n color: palette.primary.contrastText,\n },\n\n focus: {\n color: palette.primary.contrastText,\n },\n\n hover: {\n color: palette.primary.contrastText,\n },\n\n disabled: {\n color: palette.gray['500'],\n },\n },\n iconToggled: {\n backgroundColor: palette.primary.main,\n color: palette.primary.contrastText,\n\n active: {\n color: palette.primary.contrastText,\n },\n\n focus: {\n color: palette.common.white,\n },\n\n hover: {\n color: palette.common.white,\n },\n },\n iconOutline: {\n backgroundColor: palette.background.paper,\n color: palette.primary.main,\n borderColor: palette.border.article,\n },\n imagePreview: {\n backgroundColor: palette.background.paper,\n color: palette.text.primary,\n borderColor: palette.border.article,\n },\n link: {\n backgroundColor: 'transparent',\n color: palette.text.primary,\n borderColor: 'transparent',\n\n active: {\n color: palette.text.primary,\n },\n\n focus: {\n color: palette.text.primary,\n },\n\n hover: {\n color: palette.text.primary,\n },\n },\n openTab: {\n backgroundColor: palette.primary.main,\n color: palette.primary.contrastText,\n borderColor: palette.primary.dark,\n },\n outline: {\n backgroundColor: palette.background.paper,\n color: palette.text.primary,\n borderColor: palette.primary.main,\n },\n outlineDanger: {\n backgroundColor: palette.background.paper,\n color: palette.primary.main,\n borderColor: palette.primary.main,\n\n active: {\n borderColor: palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 80,\n ),\n backgroundColor: palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 80,\n ),\n color: palette.getContrastText(\n palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 80,\n ),\n ),\n },\n\n focus: {\n borderColor: palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 60,\n ),\n backgroundColor: palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 60,\n ),\n color: palette.getContrastText(\n palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 60,\n ),\n ),\n },\n\n hover: {\n borderColor: palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 70,\n ),\n backgroundColor: palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 70,\n ),\n color: palette.getContrastText(\n palette.darkenColor(\n palette.error.dark,\n palette.action.activeOpacity * 70,\n ),\n ),\n },\n },\n outlineWarning: {\n backgroundColor: palette.background.paper,\n color: palette.text.primary,\n borderColor: palette.primary.main,\n\n active: {\n borderColor: palette.warning.main,\n backgroundColor: palette.warning.main,\n color: palette.warning.contrastText,\n },\n\n focus: {\n borderColor: palette.warning.main,\n backgroundColor: palette.warning.main,\n color: palette.warning.contrastText,\n },\n\n hover: {\n borderColor: palette.warning.main,\n backgroundColor: palette.warning.main,\n color: palette.warning.contrastText,\n },\n },\n paper: {\n backgroundColor: palette.background.paper,\n color: palette.text.primary,\n borderColor: palette.background.paper,\n },\n primary: {\n backgroundColor: palette.primary.main,\n color: palette.primary.contrastText,\n borderColor: palette.primary.main,\n },\n secondary: {\n backgroundColor: palette.secondary.main,\n color: palette.secondary.contrastText,\n borderColor: palette.secondary.main,\n },\n tab: {\n backgroundColor: palette.background.paper,\n color: palette.text.primary,\n borderColor: palette.border.article,\n },\n toggleIcon: {\n color: palette.secondary.contrastText,\n backgroundColor: palette.secondary.main,\n borderColor: palette.border.field,\n\n danger: {\n backgroundColor: palette.error.main,\n borderColor: palette.border.field,\n color: palette.error.contrastText,\n },\n toggled: {\n backgroundColor: palette.primary.main,\n borderColor: palette.border.field,\n color: palette.primary.contrastText,\n },\n },\n transparentIcon: {\n backgroundColor: 'transparent',\n color: palette.text.primary,\n\n hover: {\n color: palette.primary.main,\n },\n\n focus: {\n color: palette.primary.main,\n },\n },\n },\n components: components(),\n dropzone: {\n backgroundColor: palette.background.paper,\n borderColor: palette.border.section,\n color: palette.background.default,\n },\n form: {\n backgroundColor: palette.background.paper,\n\n fields: {\n backgroundColor: palette.background.paper,\n color: palette.text.primary,\n borderColor: palette.border.field,\n },\n\n radio: {\n backgroundColor: 'transparent',\n color: tinycolor(window.currentPalette.text.primary)\n .lighten(15)\n .toRgbString(),\n borderColor: palette.text.primary,\n active: {\n backgroundColor: 'transparent',\n color: tinycolor(window.currentPalette.text.primary)\n .lighten(0)\n .toRgbString(),\n },\n checked: {\n backgroundColor: 'red',\n color: tinycolor(window.currentPalette.text.primary)\n .lighten(15)\n .toRgbString(),\n },\n disabled: {\n backgroundColor: 'transparent',\n color: tinycolor(window.currentPalette.text.primary)\n .lighten(55)\n .toRgbString(),\n },\n hover: {\n backgroundColor: 'transparent',\n color: tinycolor(window.currentPalette.text.primary)\n .lighten(7)\n .toRgbString(),\n },\n readonly: {\n color: tinycolor(window.currentPalette.text.primary)\n .lighten(38)\n .toRgbString(),\n backgroundColor: 'transparent',\n },\n },\n },\n modal: {\n borderColor: palette.border.section,\n backgroundColor: palette.background.paper,\n },\n notifications: {\n error: {\n backgroundColor: palette.error.light,\n color: palette.getContrastText(palette.error.light),\n borderColor: palette.error.main,\n },\n success: {\n backgroundColor: palette.success.light,\n color: palette.getContrastText(palette.success.light),\n borderColor: palette.success.main,\n },\n warning: {\n backgroundColor: palette.warning.light,\n color: palette.getContrastText(palette.warning.light),\n borderColor: palette.warning.main,\n },\n },\n pagination: {\n color: palette.primary.contrastText,\n backgroundColor: palette.primary.main,\n },\n printView: {\n main: {\n backgroundColor: palette.background.default,\n\n page: {\n backgroundColor: palette.background.paper,\n borderColor: palette.border.article,\n },\n },\n list: {\n table: {\n borderColor: palette.border.section,\n },\n th: { backgroundColor: '#eee' },\n cell: {\n borderColor: palette.border.article,\n },\n },\n },\n schemas,\n scrollbars: {\n bar: {\n color: palette.secondary.main,\n backgroundColor: palette.background.default,\n\n hover: {\n backgroundColor: palette.lightenColor(palette.background.default, 10),\n color: palette.lightenColor(palette.secondary.main, 10),\n },\n\n active: {\n backgroundColor: palette.lightenColor(palette.background.default, 10),\n color: palette.lightenColor(palette.secondary.main, 20),\n },\n } /*\n buttons: {\n backgroundColor: palette.secondary.main,\n\n hover: {\n color: palette.lightenColor(palette.secondary.main, 10),\n },\n\n active: {\n color: palette.lightenColor(palette.secondary.main, 20),\n },\n }, */,\n },\n tab: {\n backgroundColor: palette.background.paper,\n borderColor: palette.border.section,\n },\n topBar: {\n backgroundColor: palette.primary.main,\n },\n\n // Default ThemeUI colors\n accent: palette.text.accent,\n background: palette.background.default,\n iconWarning: 'rgb(246 222 87)',\n muted: palette.text.disabled,\n primary: palette.primary.main,\n secondary: palette.secondary.main,\n text: palette.text.primary,\n warning: palette.warning.main,\n danger: palette.error.main,\n link: palette.text.accent,\n success: palette.success.main,\n title: palette.text.title,\n selected: palette.getOneState(\n { backgroundColor: palette.background.paper },\n 'selected',\n ).backgroundColor,\n\n // Meaningful colors\n lightBorder: 'hsl(0, 12%, 85%)',\n outlineColor: '#00a8f6',\n touchedBorderColor: 'orange',\n\n // Custom Apia colors\n baseGrey: '#dfdfdf',\n darkBorder: 'hsl(247, 98%, 10%)',\n darkBlue,\n disabled: '#efefef',\n favorite: '#e5c200',\n filtersRowBackground: white,\n formBackground: white,\n grey: '#777',\n gridRowHighlight: '#e1f3ff',\n highlightButton: 'hsl(61, 100%, 91%)',\n lightBlue,\n oddRow: '#f0f5ff',\n paginationBackground: 'hsl(229deg, 75%, 90%)',\n readOnlyText: '#737373',\n required: 'darkred',\n scrollbarBack: 'rgb(206, 206, 206)',\n scrollbarFront: 'rgb(156, 156, 156)',\n sysExceptionNotificationBg: '#f8d7da',\n sysMessageNotificationBg: '#fff3cd',\n tabBackground: 'white',\n treeRuler: '#ccc',\n white,\n priorityNone: 'gray',\n priorityLow: palette.success.main,\n priorityNormal: 'rgb(255 211 34)',\n priorityHigh: 'rgb(255 150 0)',\n priorityUrgent: 'red',\n\n // modes: {\n // dark: {\n // // TODO: dark-mode uhhhhhhh!!!\n // //text: '#fff',\n // },\n // },\n charts: {\n front: darkBlue,\n },\n };\n\n applyStates([\n colors?.buttons as Record<string, string | TColorDefinition>,\n colors?.form as Record<string, string | TColorDefinition>,\n ]);\n\n return colors;\n}\n","import { ThemeUIStyleObject } from 'theme-ui';\nimport { focusOutline, spacing } from '../util';\nimport getColorsByPath from './colors/util/getColorsByPath';\n\nexport const alerts: Record<string, ThemeUIStyleObject> = {\n primary: {\n border: '1px solid',\n borderLeft: '12px solid',\n borderRadius: 'alerts',\n\n display: 'flex',\n flexDirection: 'column',\n fontWeight: 'normal',\n\n maxHeight: '60vh',\n overflow: 'auto',\n p: 0,\n\n '&:focus': {\n outline: 'none',\n },\n\n '.notification__header': {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n position: 'sticky',\n top: 0,\n width: '100%',\n p: spacing(5),\n },\n\n '.notification__title': {\n fontSize: 18,\n fontWeight: 'bold',\n color: 'palette.text.primary',\n display: 'flex',\n gap: spacing(5),\n alignItems: 'center',\n },\n\n '.notification__closeButton': {\n flexShrink: 0,\n },\n\n '.notification__body': {\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'row',\n gap: spacing(5),\n width: '100%',\n p: spacing(5),\n },\n\n '.notification__header ~ .notification__body': {\n pt: 0,\n },\n\n '.notification__content': {\n display: 'flex',\n alignItems: 'stretch',\n flexDirection: 'column',\n gap: spacing(5),\n width: '100%',\n },\n\n '.notification__icon': {\n flexShrink: 0,\n height: 'iconMd',\n svg: {\n height: 'iconMd',\n width: 'iconMd',\n },\n },\n\n '.notification__message': {\n display: 'flex',\n flexDirection: 'column',\n fontWeight: 'normal',\n gap: spacing(3),\n width: '100%',\n wordBreak: 'break-word',\n },\n\n '.notification__trace': {\n maxWidth: '100%',\n overflow: 'hidden',\n maxHeight: '30vh',\n flexShrink: 0,\n backgroundColor: 'rgba(10,10,10,0.02)',\n pt: spacing(5),\n\n '.notification__traceLabel': {\n pl: spacing(5),\n display: 'flex',\n gap: 2,\n },\n '.notification__traceText': {\n fontWeight: 'normal',\n p: spacing(5),\n maxHeight: '30vh',\n overflow: 'auto',\n maxWidth: '100%',\n position: 'relative',\n },\n },\n\n '&:focus .notification__closeButton': focusOutline,\n },\n warning: {\n variant: 'alerts.primary',\n\n '&, & .notification__header': {\n ...getColorsByPath('notifications.warning'),\n },\n },\n danger: {\n variant: 'alerts.primary',\n '&, & .notification__header': {\n ...getColorsByPath('notifications.error'),\n },\n },\n success: {\n variant: 'alerts.primary',\n '&, & .notification__header': {\n ...getColorsByPath('notifications.success'),\n },\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { responsive, smallButton, spacing } from '../util';\nimport getColorsAndStatesByPath from './colors/util/getColorsAndStatesByPath';\n\nconst buttons: Record<string, ThemeUICSSObject> = {\n inherit: {\n color: 'inherit',\n background: 'inherit',\n border: 'none',\n borderRadius: 0,\n font: 'inherit',\n cursor: 'pointer',\n padding: 0,\n margin: 0,\n },\n collapsibleAsidePanelTitle: {\n variant: 'buttons.inherit',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n width: '100%',\n ...getColorsAndStatesByPath('buttons.collapsibleAsidePanelTitle'),\n },\n primary: {\n borderWidth: '2px',\n borderStyle: 'solid',\n variant: 'text.default',\n py: responsive({ 0: 3, 4: 4 }),\n px: responsive({ 0: 5, 4: 6 }),\n display: 'inline-block',\n width: responsive({ 0: '100%', 1: 'auto' }),\n cursor: 'pointer',\n borderRadius: 'buttons',\n fontWeight: 'normal',\n userSelect: 'none',\n transition: 'background-color 300ms ease-out, color 300ms ease-out',\n wordBreak: 'keep-all',\n\n ...getColorsAndStatesByPath('buttons.primary'),\n\n '&:focus, &:focus-visible': {\n outlineColor: '#00daff',\n },\n },\n 'primary-sm': {\n variant: 'buttons.primary',\n '&:focus, &:focus-visible': {},\n ...smallButton,\n },\n secondary: {\n variant: 'buttons.primary',\n '&:focus, &:focus-visible': {},\n borderWidth: '0px',\n borderStyle: 'solid',\n\n ...getColorsAndStatesByPath('buttons.secondary'),\n },\n 'secondary-sm': {\n variant: 'buttons.secondary',\n ...smallButton,\n },\n 'light-secondary': {\n variant: 'buttons.secondary',\n\n ...getColorsAndStatesByPath('buttons.lightSecondary'),\n },\n danger: {\n variant: 'buttons.primary',\n '&:focus, &:focus-visible': {},\n\n ...getColorsAndStatesByPath('buttons.danger'),\n },\n 'danger-sm': {\n variant: 'buttons.danger',\n ...smallButton,\n },\n warning: {\n variant: 'buttons.primary',\n '&:focus, &:focus-visible': {},\n\n ...getColorsAndStatesByPath('buttons.warning'),\n },\n 'warning-sm': {\n variant: 'buttons.warning',\n ...smallButton,\n },\n close: {\n cursor: 'pointer',\n ml: 'auto',\n mr: '2',\n borderRadius: 'buttons',\n\n ...getColorsAndStatesByPath('buttons.close'),\n },\n accordion: {\n variant: 'buttons.primary',\n '&:focus, &:focus-visible': {},\n cursor: 'pointer',\n m: spacing(0),\n py: responsive({ 0: 3, 4: 4 }),\n px: responsive({ 0: 5, 4: 6 }),\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n borderRadius: 'buttons',\n textAlign: 'left',\n fontFamily: 'heading',\n fontSize: 'text.default',\n textDecoration: 'none',\n textTransform: 'none',\n fontWeight: 'bold',\n border: 'none',\n transition: 'background-color 300ms ease-out, color 300ms ease-out',\n userSelect: 'text',\n\n '&, *': getColorsAndStatesByPath('buttons.accordion'),\n\n 'h3.toggleAccordionElementLabel': {\n variant: 'text.default',\n\n color: 'inherit',\n margin: 0,\n wordBreak: 'break-word',\n },\n },\n 'accordion-primary': {\n variant: 'buttons.accordion',\n border: 'none',\n\n ...getColorsAndStatesByPath('buttons.accordionPrimary'),\n },\n icon: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n p: spacing(0),\n m: spacing(0),\n bg: 'secondary',\n cursor: 'pointer',\n transition: 'background-color 300ms ease-out, color 300ms ease-out',\n borderRadius: 'buttons',\n border: 'none',\n\n ...getColorsAndStatesByPath('buttons.icon'),\n\n svg: {\n width: 'auto',\n height: '20px',\n display: 'block',\n },\n\n '&.isToggled': {\n ...getColorsAndStatesByPath('buttons.iconToggled'),\n },\n },\n 'icon-primary': {\n variant: 'buttons.icon',\n ...getColorsAndStatesByPath('buttons.iconPrimary'),\n },\n 'icon-outline': {\n variant: 'buttons.icon',\n bg: 'white',\n border: '1px solid',\n\n ...getColorsAndStatesByPath('buttons.iconOutline'),\n },\n 'icon-outline-danger': {\n variant: 'buttons.icon',\n bg: 'white',\n border: '1px solid',\n\n ...getColorsAndStatesByPath('buttons.outlineDanger'),\n },\n 'icon-only': {\n variant: 'buttons.icon',\n\n ...getColorsAndStatesByPath('buttons.iconOnly'),\n },\n link: {\n variant: 'inherit',\n width: 'auto',\n border: 'none',\n textDecoration: 'underline',\n px: 2,\n py: 1,\n borderRadius: 'buttons',\n cursor: 'pointer',\n textTransform: 'none',\n transition: 'background-color 300ms ease-out, color 300ms ease-out',\n\n ...getColorsAndStatesByPath('buttons.link'),\n },\n 'link-sm': {\n variant: 'buttons.link',\n ...smallButton,\n },\n outline: {\n variant: 'buttons.primary',\n borderWidth: '2px',\n borderStyle: 'solid',\n borderRadius: 'buttons',\n\n '&:focus, &:focus-visible': {},\n ...getColorsAndStatesByPath('buttons.outline', {\n states: {\n active: false,\n checked: false,\n disabled: false,\n focus: false,\n hover: false,\n readonly: false,\n selected: false,\n },\n }),\n },\n 'outline-sm': {\n variant: 'buttons.outline',\n ...smallButton,\n },\n 'transparent-sm': {\n variant: 'buttons.outline',\n '&:focus, &:focus-visible': {},\n bg: 'transparent',\n color: 'inherit',\n border: 'none',\n font: 'inherit',\n textTransform: 'inherit',\n ...smallButton,\n },\n 'outline-danger': {\n variant: 'buttons.outline',\n '&:focus, &:focus-visible': {},\n\n ...getColorsAndStatesByPath('buttons.outlineDanger'),\n },\n 'outline-danger-sm': {\n variant: 'buttons.outline-danger',\n ...smallButton,\n },\n 'outline-warning': {\n variant: 'buttons.outline',\n '&:focus, &:focus-visible': {},\n\n ...getColorsAndStatesByPath('buttons.outlineWarning'),\n },\n 'outline-warning-sm': {\n variant: 'buttons.outline-warning',\n ...smallButton,\n },\n 'outline-extended': {\n variant: 'buttons.outline',\n gridColumnStart: 1,\n gridColumnEnd: 3,\n width: '100%',\n },\n 'outline-danger-extended': {\n variant: 'buttons.outline-danger',\n gridColumnStart: 1,\n gridColumnEnd: 3,\n width: '100%',\n },\n 'primary-extended': {\n variant: 'buttons.primary',\n '&:focus, &:focus-visible': {},\n gridColumnStart: 1,\n gridColumnEnd: 3,\n width: '100%',\n },\n query: {\n extended: {\n variant: 'buttons.outline',\n '&:focus, &:focus-visible': {},\n gridColumnStart: 1,\n gridColumnEnd: 3,\n },\n },\n tableAccordion: {\n variant: 'buttons.accordion',\n fontSize: 'text.default',\n p: spacing(3),\n wordBreak: 'keep-all',\n a: {\n color: 'background',\n },\n\n ...getColorsAndStatesByPath('buttons.tableAccordion'),\n },\n tableHeader: {\n variant: 'buttons.tableAccordion',\n alignItems: 'center',\n justifyContent: 'center',\n height: '100%',\n border: 'none',\n svg: {\n ml: spacing(2),\n },\n ...getColorsAndStatesByPath('buttons.tableHeader'),\n },\n paper: {\n variant: 'buttons.primary',\n borderWidth: '2px',\n borderStyle: 'solid',\n borderRadius: 'buttons',\n\n ...getColorsAndStatesByPath('buttons.paper'),\n },\n 'paper-sm': {\n variant: 'buttons.primary',\n borderWidth: '2px',\n borderStyle: 'solid',\n borderRadius: 'buttons',\n\n ...getColorsAndStatesByPath('buttons.paper'),\n ...smallButton,\n },\n};\n\nexport default buttons;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n/* IMPORT HERE */\n\nconst customCheckbox: ThemeUICSSObject = {\n display: 'inline-flex',\n borderRadius: 'default',\n flexBasis: '32px',\n flexShrink: 0,\n width: '32px',\n height: '32px',\n alignItems: 'center',\n justifyContent: 'center',\n p: '3px',\n border: '1px solid',\n svg: {\n width: '20px',\n },\n ...getColorsAndStatesByPath('form.fields', {\n states: {\n active: false,\n hover: false,\n focus: false,\n },\n }),\n\n /* PREPEND HERE */\n};\n\nexport default customCheckbox;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n/* IMPORT HERE */\n\nconst checkbox: ThemeUICSSObject = {\n borderRadius: 'default',\n ...getColorsAndStatesByPath('form.fields', {\n states: {\n active: false,\n focus: false,\n hover: false,\n },\n }),\n backgroundColor: 'unset',\n alignItems: 'center',\n\n '&.nativeCheckbox': {\n appearance: 'none',\n width: '25px',\n height: '25px',\n border: 'solid 1px #cccccc',\n marginRight: '8px',\n position: 'relative',\n cursor: 'pointer',\n\n '&:checked::before': {\n content: '\"✓\"',\n color: 'palette.text.primary',\n position: 'absolute',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n fontSize: 'larger',\n fontWeight: 'bolder',\n borderRadius: '5px',\n cursor: 'pointer',\n },\n\n '&:indeterminate::before': {\n content: '\"-\"',\n color: 'palette.text.primary',\n position: 'absolute',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n top: '-1px',\n left: 0,\n right: 0,\n bottom: 0,\n fontSize: 'xx-large',\n fontWeight: '600',\n borderRadius: '5px',\n cursor: 'pointer',\n },\n },\n};\n\nexport default checkbox;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../util';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n/* IMPORT HERE */\n\nconst dateInput: ThemeUICSSObject = {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'stretch',\n justifyContent: 'stretch',\n gap: spacing(2),\n width: '100%',\n\n '&.readOnly': {\n input: {\n color: 'Text.fields',\n bg: 'Background.fields',\n },\n },\n\n '.iconInput': {\n width: '100%',\n position: 'relative',\n },\n\n 'input:hover~.delete_date_button:not(:disabled,[aria-selected=\"true\"]), input:hover~.delete_date_button:not(:disabled,[aria-selected=\"true\"]) path, .delete_date_button':\n {\n position: 'absolute',\n right: '59px',\n padding: 0,\n top: 'calc(50% - 10px)',\n margin: 0,\n marginRight: 0,\n borderRadius: '100%',\n width: '20px',\n height: '20px',\n\n ...getColorsAndStatesByPath('buttons.icon-outline'),\n },\n\n input: {\n flexShrink: 1,\n },\n\n '& > div': {\n display: 'flex',\n gap: spacing(2),\n flexShrink: 0,\n width: 'auto',\n maxWidth: '100%',\n minWidth: 0,\n\n button: {\n width: '45px',\n flexShrink: 0,\n },\n },\n ...getColorsAndStatesByPath('form.fields', {\n states: {\n hover: false,\n active: false,\n focus: false,\n },\n }),\n\n backgroundColor: undefined,\n};\n\nexport default dateInput;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../util';\nimport getColorsByPath from '../colors/util/getColorsByPath';\n/* IMPORT HERE */\n\nconst iconInput: ThemeUICSSObject = {\n display: 'flex',\n gap: spacing(1),\n justifyContent: 'stretch',\n alignItems: 'center',\n '&.readOnly': {\n input: {\n ...getColorsByPath('form.fields'),\n },\n },\n\n input: {\n height: '50px',\n width: '100%',\n },\n\n button: {\n display: 'flex',\n width: '45px',\n flexShrink: 0,\n height: '50px',\n },\n};\n\nexport default iconInput;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { responsive } from '../../util';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n/* IMPORT HERE */\n\nconst input: ThemeUICSSObject = {\n variant: 'text.default',\n border: '1px solid',\n borderRadius: 'default',\n padding: responsive({ 0: 3, 3: 4 }),\n '::placeholder': {\n color: '#b0b0b0',\n },\n ...getColorsAndStatesByPath('form.fields', {\n states: {\n active: false,\n hover: false,\n focus: false,\n },\n }),\n\n material: {\n input: {\n borderLeft: 'none',\n borderRight: 'none',\n borderTop: 'none',\n borderBottomColor: 'palette.border.section',\n\n '& + .input__underline': {\n transform: 'scale(1)',\n },\n\n '&:focus': {\n outline: 'none',\n\n '~::after': {\n animationName: 'growHorizontal',\n animationDuration: '150ms',\n animationTimingFunction: 'ease-out',\n content: '\"\"',\n display: 'block',\n height: '0',\n outlineColor: 'palette.primary.main',\n outlineStyle: 'solid',\n outlineWidth: '1.5px',\n outlineOffset: 0,\n position: 'fixed',\n transformOrigin: 'center center',\n width: '100%',\n },\n },\n },\n },\n};\n\nexport default input;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../util';\n/* IMPORT HERE */\n\nconst label: ThemeUICSSObject = {\n variant: 'text.default',\n alignItems: 'center',\n width: 'auto',\n textTransform: 'none',\n cursor: 'pointer',\n\n '&:not(.radio-label)': {\n fontWeight: 'bold',\n },\n\n '&.required': {\n position: 'relative',\n '&::before': {\n color: 'danger',\n position: 'absolute',\n content: '\"*\"',\n top: 0,\n left: '-10px',\n },\n },\n\n '&:last-of-type': {\n 'input, textarea, select': {\n mb: spacing(0),\n },\n },\n};\n\nexport default label;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n/* IMPORT HERE */\n\nconst radio: ThemeUICSSObject = {\n width: '32px',\n height: '32px',\n input: {\n height: '32px !important',\n },\n ...getColorsAndStatesByPath('form.radio'),\n};\n\nexport default radio;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../util';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n/* IMPORT HERE */\n\nconst select: ThemeUICSSObject = {\n variant: 'text.default',\n display: 'inline-block',\n fontFamily: 'body',\n p: spacing(4),\n pr: 7,\n borderRadius: 'default',\n width: '100%',\n maxWidth: '100%',\n ...getColorsAndStatesByPath('form.fields', {\n states: {\n active: false,\n hover: false,\n focus: false,\n },\n }),\n};\n\nexport default select;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { getSelectedColors } from '../colors/index';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n/* IMPORT HERE */\n\nconst selectMultiple: ThemeUICSSObject = {\n variant: 'text.default',\n height: '100%',\n padding: '4px',\n borderRadius: 'default',\n border: '1px solid',\n width: '100%',\n transition: 'background-color 100ms ease-out, color 100ms ease-out',\n overflow: 'auto',\n option: {\n padding: 2,\n ...getSelectedColors(),\n\n '&:checked': {\n backgroundColor: window.currentPalette.getColor(\n window.currentPalette.background.paper,\n 'selected',\n ),\n color: window.currentPalette.getContrastText(\n window.currentPalette.getColor(\n window.currentPalette.background.paper,\n 'selected',\n ),\n ),\n },\n },\n '+ svg': {\n display: 'none',\n },\n ...getColorsAndStatesByPath('form.fields', {\n states: {\n active: false,\n hover: false,\n focus: false,\n },\n }),\n};\n\nexport default selectMultiple;\n","import { ThemeUICSSObject } from 'theme-ui';\n/* IMPORT HERE */\n\nconst Switch: ThemeUICSSObject = {\n '+ span': {\n fontSize: 14,\n fontWeight: 'normal',\n wordBreak: 'break-all',\n },\n backgroundColor: 'form.fields.checked.borderColor',\n};\n\nexport default Switch;\n","import { ThemeUICSSObject } from 'theme-ui';\n/* IMPORT HERE */\n\nconst textarea: ThemeUICSSObject = {\n '&, & textarea': {\n height: '100%',\n minHeight: '130px',\n resize: 'vertical',\n },\n\n textarea: {\n variant: 'forms.input',\n },\n};\n\nexport default textarea;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { focusOutline } from '../../util';\nimport getColorsAndStatesByPath from '../colors/util/getColorsAndStatesByPath';\n\nconst deletableInput: ThemeUICSSObject = {\n border: '1px solid',\n borderColor: 'palette.border.field',\n display: 'inline-block',\n position: 'relative',\n pr: '45px',\n\n '.deletableInput__input': {\n border: 'none',\n },\n\n '.deletableInput__deleteButton': {\n height: '100%',\n outlineOffset: '-2px',\n position: 'absolute',\n right: 0,\n top: 0,\n width: '45px',\n\n ...getColorsAndStatesByPath('buttons.deletableInputButton'),\n },\n\n '&:focus-within:not(.asMaterial)': {\n ...focusOutline,\n\n '.deletableInput__input:focus': {\n outline: 'none',\n },\n\n '.deletableInput__deleteButton:focus': {\n outline: 'none',\n },\n },\n\n '&.asMaterial': {\n borderLeft: 'none',\n borderRight: 'none',\n borderTop: 'none',\n borderBottomColor: 'palette.border.section',\n\n '& + .input__underline': {\n transform: 'scale(1)',\n },\n\n '.deletableInput__input:focus': {\n outline: 'none',\n\n '~.input__underline::after': {\n animationName: 'growHorizontal',\n animationDuration: '150ms',\n animationTimingFunction: 'ease-out',\n content: '\"\"',\n display: 'block',\n height: '0',\n outlineColor: 'palette.primary.main',\n outlineStyle: 'solid',\n outlineWidth: '1.5px',\n outlineOffset: 0,\n position: 'absolute',\n transformOrigin: 'center center',\n left: 0,\n right: 0,\n },\n },\n },\n};\n\nexport default deletableInput;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport customCheckbox from './customCheckbox';\nimport checkbox from './checkbox';\nimport dateInput from './dateInput';\nimport iconInput from './iconInput';\nimport input from './input';\nimport label from './label';\nimport radio from './radio';\nimport select from './select';\nimport selectMultiple from './selectMultiple';\nimport Switch from './switch';\nimport textarea from './textarea';\nimport deletableInput from './deletableInput';\n/* IMPORT HERE */\n\nconst forms: () => Record<string, ThemeUICSSObject> = () => {\n return {\n checkbox,\n customCheckbox,\n dateInput,\n deletableInput,\n iconInput,\n input,\n label,\n radio,\n select,\n selectMultiple,\n switch: Switch,\n textarea,\n /* PREPEND HERE */\n 'input[type=\"date\"]': {\n variant: 'forms.input',\n },\n };\n};\n\nexport default forms;\n","import { ThemeUICSSObject } from 'theme-ui';\n\nexport const overlay: Record<string, ThemeUICSSObject> = {\n overlay: {\n position: 'fixed',\n overflow: 'hidden',\n top: '0',\n right: '0',\n bottom: '0',\n left: '0',\n width: '100vw',\n height: '100vh',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: `palette.background.overlay`,\n zIndex: 'modal',\n\n '&:not(.screenLock) .modal-enter-done': {\n boxShadow: 'modals',\n },\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../../../util';\n/* IMPORT HERE */\n\nexport const apiaApi: ThemeUICSSObject = {\n margin: 'auto',\n display: 'flex',\n flexDirection: 'column',\n wordBreak: 'break-word',\n overflow: 'hidden',\n width: '100%',\n\n '.handler__form': {\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n gap: spacing(6),\n\n '.toggleAccordionElement': {\n position: 'sticky',\n top: 0,\n },\n\n '.handler__form__elements': {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'stretch',\n overflowY: 'auto',\n maxHeight: '60vh',\n gap: spacing(3),\n pr: spacing(3),\n },\n\n '.handler__form__elements__section__content': {\n display: 'flex',\n flexDirection: 'column',\n wordBreak: 'break-word',\n background: 'palette.background.paper',\n p: 0,\n gap: spacing(3),\n },\n\n '.content .handler__form__elements__section__content': {\n border: '1px solid',\n borderColor: 'palette.border.section',\n borderTop: 'none',\n p: spacing(6),\n },\n\n '.handler__form__buttons': {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'center',\n p: 0,\n gap: '0px',\n textAlign: 'center',\n },\n\n '.radio': {\n display: 'flex',\n flexDirection: 'column',\n flexWrap: 'wrap',\n listStyle: 'none',\n variant: 'layout.execution.form.fields.radio',\n },\n\n '.handler__checkbox, .handler__radio': {\n 'label span': {\n fontWeight: 'normal',\n },\n },\n\n '.checkbox': {\n flexDirection: 'row-reverse',\n alignItems: 'center',\n justifyContent: 'start',\n gap: spacing(4),\n '.semicolon': {\n display: 'none',\n },\n input: {\n width: '100%',\n },\n },\n\n '.handler__hidden': {\n display: 'none',\n },\n\n 'label.select > div': {\n width: '100%',\n },\n\n '.spacer': {\n height: spacing(7),\n },\n },\n '.progressBox': {\n p: spacing(5),\n pt: spacing(0),\n },\n /* PREPEND HERE */\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { overlay } from './overlay';\nimport { spacing, responsive } from '../../../../util';\nimport getColorsAndStatesByPath from '../../../colors/util/getColorsAndStatesByPath';\nimport getColorsByPath from '../../../colors/util/getColorsByPath';\nimport { apiaApi } from './apiaApi';\n/* IMPORT HERE */\n\nexport const modals: ThemeUICSSObject = {\n apiaApi,\n ...overlay,\n main: {\n zIndex: 'modal',\n display: 'flex',\n flexDirection: 'column',\n p: spacing(6),\n alignItems: 'center',\n justifyItems: 'center',\n maxHeight: '100vh',\n maxWidth: 'calc(100vw - 10px)',\n resize: 'both',\n overflow: 'auto',\n border: '1px solid',\n gap: spacing(5),\n\n '&>div': {\n overflow: 'hidden',\n flexGrow: 0,\n flexShrink: 0,\n p: '3px',\n width: '100%',\n },\n '&>div.modal__header': {\n alignItems: responsive({ 0: 'end', 4: 'center' }),\n flexShrink: 0,\n overflow: 'visible',\n\n '.modal__headerBar': {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: spacing(3),\n },\n },\n '&>div.modal__content, &>div.modal__content>form': {\n overflow: 'auto',\n width: '100%',\n flexBasis: '100%',\n flexShrink: 1,\n display: 'flex',\n justifyContent: 'stretch',\n alignItems: 'stretch',\n },\n ...getColorsByPath('modal'),\n },\n finder: {\n variant: 'layout.common.modals.main',\n height: responsive({ 0: '100vh', 3: '80vh' }),\n width: responsive({ 0: '95vw', 3: '80vw', 4: '70vw' }),\n\n '.modal__content': {\n p: spacing(2),\n overflow: 'hidden',\n\n '.confirm__content': {\n overflow: 'hidden',\n\n '.finder__content': {\n display: 'flex',\n alignItems: 'stretch',\n },\n\n '.selection__keyHandler': {\n overflow: 'hidden',\n height: '100%',\n\n '.responsiveTable__wrapper': {\n height: '100%',\n\n border: '1px solid',\n borderColor: 'palette.border.article',\n backgroundColor: 'palette.gray.900',\n },\n },\n },\n },\n },\n sm: {\n variant: 'layout.common.modals.main',\n maxWidth: 'min(350px, calc(100vw - 10px))',\n },\n md: {\n variant: 'layout.common.modals.main',\n maxWidth: 'min(500px, calc(100vw - 10px))',\n },\n 'md-fixed': {\n variant: 'layout.common.modals.main',\n width: 'min(500px, calc(100vw - 10px))',\n maxHeight: responsive({ 0: '95vh', 2: '80vh' }),\n },\n lg: {\n variant: 'layout.common.modals.main',\n maxWidth: 'min(640px, calc(100vw - 10px))',\n },\n 'lg-fixed': {\n variant: 'layout.common.modals.main',\n width: '640px',\n height: '60vh',\n },\n xl: {\n variant: 'layout.common.modals.main',\n maxWidth: 'min(730px, calc(100vw - 10px))',\n },\n 'xl-fixed': {\n variant: 'layout.common.modals.main',\n width: responsive({ 0: '95vw', 2: '60vw' }),\n height: responsive({ 0: '95vh', 2: '80vh' }),\n },\n xxl: {\n variant: 'layout.common.modals.main',\n width: responsive({ 0: '95vw', 2: '80vw' }),\n maxHeight: responsive({ 0: '95vh', 2: '80vh' }),\n },\n 'xxl-fixed': {\n variant: 'layout.common.modals.main',\n width: responsive({ 0: '95vw', 2: '80vw' }),\n height: responsive({ 0: '95vh', 2: '80vh' }),\n },\n xxxl: {\n variant: 'layout.common.modals.main',\n width: responsive({ 0: '95vw', 2: '95vw' }),\n maxHeight: responsive({ 0: '95vh', 2: '95vh' }),\n },\n 'xxxl-fixed': {\n variant: 'layout.common.modals.main',\n width: responsive({ 0: '95vw', 2: '95vw' }),\n height: responsive({ 0: '95vh', 2: '95vh' }),\n },\n flex: {\n variant: 'layout.common.modals.main',\n maxWidth: '95vw',\n maxHeight: '95vh',\n '.modal__content': {\n p: spacing(2),\n overflow: 'auto',\n },\n },\n cal: {\n variant: 'layout.common.modals.sm',\n width: '350px',\n\n '.react-calendar': {\n backgroundColor: 'palette.background.paper',\n\n button: {\n ...getColorsAndStatesByPath('form.fields'),\n\n '&.react-calendar__tile--active': {\n ...getColorsAndStatesByPath('buttons.primary'),\n },\n },\n },\n },\n editGrid: {\n variant: 'layout.common.modals.main',\n width: 'root',\n maxHeight: '90vh',\n },\n /* PREPEND HERE */\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { focusOutline } from '@apia/theme';\n\nexport function getSelectionStyles() {\n return {\n 'td[data-focused=\"false\"], th[data-focused=\"false\"]': {\n '*:focus-visible, &:focus, &:focus-visible': {\n outline: 'none',\n },\n\n '*:focus': {\n ...focusOutline,\n },\n },\n '[data-focused=\"true\"]:not(.row__separator__cell)': {\n '&:not([data-editionmode=\"true\"])': {\n '&:focus, & > *:focus, *:focus-visible': {\n ...focusOutline,\n\n '&.cell__download__document': {\n outlineOffset: 0,\n },\n },\n },\n '&[data-editionmode=\"true\"]': {\n '&:focus, *:focus, *:focus-visible': {\n ...focusOutline,\n outlineStyle: 'dotted',\n outlineWidth: '6px',\n outlineOffset: '-4px',\n },\n },\n },\n '[data-focused=\"true\"].row__separator__cell': {\n backgroundColor: 'palette.secondary.main',\n outline: 'none',\n },\n } as ThemeUICSSObject;\n}\n","import { merge } from 'lodash';\nimport { TGetColorStateDefinition } from '../types';\nimport buildColorsObject from './buildColorsObject';\n\n/**\n * Esta función arma un objeto con los colores que se deben aplicar para\n * garantizar que el resultado sea el esperado, por ejemplo, al aplicar un\n * color a un border. Esto es así ya que en ThemeUI hay situaciones en las que\n * si no se aplican el color de borde a cada uno de los lados, no se aplica el\n * color deseado.\n *\n * Ejemplo de lo antedicho es:\n *\n * borderRight: '1px solid',\n * borderColor: 'red'.\n *\n * En este caso, el borde derecho no será rojo como se espera, ya que la\n * propiedad borderRight aplicará un borderRightColor: 'initial', que solamente\n * puede ser reescrito por borderRightColor: 'red'.\n */\nexport default function getColorsByDefinition(\n definition: Partial<TGetColorStateDefinition>,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n options?: { mergeObject?: Record<string, any> },\n) {\n return merge(\n buildColorsObject({\n ...(definition.color ? { color: definition.color } : null),\n ...(definition.backgroundColor\n ? { backgroundColor: definition.backgroundColor }\n : null),\n ...(definition.borderColor\n ? {\n borderColor: definition.borderColor,\n }\n : null),\n }),\n options?.mergeObject,\n );\n}\n","import { merge } from 'lodash';\nimport { ThemeUICSSObject } from 'theme-ui';\nimport { TGetColorStateDefinition } from '../types';\nimport buildStateObject from './buildStateObject';\nimport { TGetColorsAndStatesOptions } from './getColorsAndStatesByPath';\nimport getColorsByDefinition from './getColorsByDefinition';\nimport getColorState from './getColorState';\n\n/**\n * Esta función calcula los colores de los estados a partir de la definición\n * pasada.\n */\nexport default function getColorsAndStatesByDefinition(\n definition: Partial<TGetColorStateDefinition>,\n options?: TGetColorsAndStatesOptions,\n) {\n const active = getColorState(definition, 'active');\n const checked = getColorState(definition, 'checked');\n const disabled = getColorState(definition, 'disabled');\n const focus = options?.states?.focus\n ? getColorState(definition, 'focus')\n : {};\n const hover = getColorState(definition, 'hover');\n const readonly = getColorState(definition, 'readonly');\n const selected = getColorState(definition, 'selected');\n\n return merge(\n options?.states?.default !== false\n ? getColorsByDefinition(definition)\n : null,\n options?.states?.checked !== false\n ? buildStateObject(checked, 'checked')\n : {},\n options?.states?.focus !== false ? buildStateObject(focus, 'focus') : {},\n options?.states?.hover !== false ? buildStateObject(hover, 'hover') : {},\n options?.states?.active !== false ? buildStateObject(active, 'active') : {},\n options?.states?.selected !== false\n ? buildStateObject(selected, 'selected')\n : {},\n options?.states?.disabled !== false\n ? buildStateObject(disabled, 'disabled')\n : {},\n options?.states?.readonly !== false\n ? buildStateObject(readonly, 'readonly')\n : {},\n options?.mergeObject,\n ) as ThemeUICSSObject;\n}\n","import { Theme, ThemeProvider as TUIThemeProvider } from 'theme-ui';\nimport { ReactNode } from 'react';\nimport { getMainTheme } from './getMainTheme';\n\ninterface TThemeProvider {\n children: ReactNode;\n customTheme?: Theme;\n}\n\nexport const CustomThemeProvider = ({\n children,\n customTheme,\n}: TThemeProvider) => {\n const theme: Theme = getMainTheme(customTheme);\n\n return <TUIThemeProvider theme={theme}>{children}</TUIThemeProvider>;\n};\n","import { setValueByPath } from '@apia/util';\nimport { FC, MutableRefObject, ReactNode, Suspense, useRef } from 'react';\nimport { Theme, ThemeUICSSObject, Box } from 'theme-ui';\nimport { getVariant } from '../util';\nimport { CustomThemeProvider } from './CustomThemeProvider';\n\n/**\n * Permite crear un componente cuyos estilos pueden ser redefinidos por un\n * usuario final.\n *\n * Esto es así puesto que los estilos definidos serán agregados a un árbol que\n * el usuario puede consultar y sobreescribir. De esta manera los estilos\n * finales del componente serán aquellos definidos en este método pero\n * sobreescritos por los definidos por el usuario si es que existen.\n *\n * **Importante** Para aplicar la variante, se aplica un box alrededor del\n * componente que se está renderizando, con className=\"variant__holder\". En caso\n * de que se quisiera evitar este comportamiento, se debe pasar unwraped = true\n *\n * @param displayName Este parámetro es importante para el debugger de React.\n * @param stylesPath La ruta donde se aplicarán los estilos, es importante asegurarse de que esa ruta ya no está siendo utilizada por otro componente.\n * @param styles Un objeto de estilos de ThemeUI\n * @param Component La definición del componente.\n * @returns Un componente reutilizable y exportable que tiene estilos aplicados.\n */\nexport function makeStyledComponent<T extends object>(\n displayName: string,\n stylesPath: string,\n styles: ThemeUICSSObject,\n Component: FC<T>,\n unwraped = false,\n) {\n const theme = setValueByPath({}, stylesPath, styles) as Theme;\n\n return Object.assign(\n (props: T) => {\n const avoidFirstRender = useRef(0);\n\n if (unwraped) {\n return (\n <CustomThemeProvider customTheme={theme}>\n <NoThemePrevent avoidFirstRender={avoidFirstRender}>\n <Suspense>\n <Component {...props} />\n </Suspense>\n </NoThemePrevent>\n </CustomThemeProvider>\n );\n }\n return (\n <CustomThemeProvider customTheme={theme}>\n <NoThemePrevent avoidFirstRender={avoidFirstRender}>\n <Box className=\"variant__holder\" {...getVariant(stylesPath)}>\n <Suspense>\n <Component {...props} />\n </Suspense>\n </Box>\n </NoThemePrevent>\n </CustomThemeProvider>\n );\n },\n { displayName },\n );\n}\n\nconst NoThemePrevent = ({\n avoidFirstRender,\n children,\n}: {\n avoidFirstRender: MutableRefObject<number>;\n children: ReactNode;\n}) => {\n // eslint-disable-next-line no-param-reassign\n avoidFirstRender.current++;\n\n if (avoidFirstRender.current <= 1) return null;\n\n return <>{children}</>;\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { mainThemeEmitter } from './useMainTheme';\n\n/**\n * Esta función permite agregar estilos al tema principal de la aplicación, de\n * modo que estén disponibles para cualquier componente que lo requirea.\n *\n * @example\n *\n * injectStyles('buttons.myRedButton', {\n * variant: 'buttons.primary',\n * backgroundColor: 'red',\n * })\n */\nexport function injectStyles(path: string, styles: ThemeUICSSObject): void;\n\n/**\n * Esta función permite agregar estilos al tema principal de la aplicación, de\n * modo que estén disponibles para cualquier componente que lo requirea.\n *\n * @example\n *\n * injectStyles({\n * layout: {\n * panels: {\n * myPanel: {\n * ...\n * }\n * }\n * }\n * })\n */\nexport function injectStyles(styles: ThemeUICSSObject): void;\n\nexport function injectStyles(\n par1: string | ThemeUICSSObject,\n par2?: ThemeUICSSObject,\n) {\n const path = typeof par1 === 'string' ? par1 : '';\n const styles = typeof par1 === 'string' ? (par2 as ThemeUICSSObject) : par1;\n\n mainThemeEmitter.emit('newStyles', { path, styles });\n}\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { responsive, spacing } from '../../../../util';\nimport { getSelectedColors } from '../../../colors';\nimport getColorsByPath from '../../../colors/util/getColorsByPath';\nimport { getSelectionStyles } from './getSelectionStyles';\nimport { getColorsAndStatesByPath } from '../../../../methods';\n\nexport const primary: ThemeUICSSObject = {\n variant: 'colors.tables.primary',\n\n backgroundColor: 'components.primaryTable.body.backgroundColor',\n border: '1px solid',\n borderColor: 'components.primaryTable.borderColor',\n borderCollapse: 'separate',\n borderSpacing: 0,\n tableLayout: 'fixed',\n\n thead: {\n ...getColorsByPath('tables.primary.thead'),\n zIndex: 1,\n position: 'sticky',\n insetBlockStart: 0,\n\n 'tr:not(.filtersRow):not(.responsiveTable__filters__row)': {\n 'th, td': {\n variant: 'buttons.primary',\n py: responsive({ 0: 3, 4: 4 }),\n px: responsive({ 0: 3, 4: 4 }),\n width: 'breakWidth',\n borderRadius: 0,\n borderStyle: 'solid',\n borderWidth: '1px',\n display: 'table-cell',\n verticalAlign: 'center',\n wordBreak: 'break-word',\n\n '&[role=\"presentation\"]': {\n display: 'none',\n },\n\n ...getColorsAndStatesByPath('components.primaryTable.header'),\n\n '& *': {\n color: 'inherit',\n },\n\n '&:last-of-type:not(td)': {\n maxWidth: '100%',\n width: '100%',\n },\n '.headButton__label': {\n textAlign: 'left',\n },\n '.headButton__resizer': {\n width: '20px',\n cursor: 'ew-resize',\n zIndex: 1000,\n position: 'absolute',\n right: '-10px',\n height: '100%',\n },\n '&:last-of-type .headButton__resizer': {\n right: '0px',\n },\n\n '&.additionalColumn': {\n minWidth: '50px',\n maxWidth: '50px',\n width: '50px',\n p: 0,\n textAlign: 'center',\n verticalAlign: 'center',\n },\n\n '.headButton__container': {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 3,\n\n svg: {\n flexShrink: 0,\n },\n },\n\n '&>div': {\n color: 'components.primaryTable.header.color',\n\n svg: {\n color: 'components.primaryTable.body.color',\n },\n },\n '&:not(:last-of-type)': {\n '&>div': {\n borderRightWidth: '1px',\n },\n },\n },\n 'th.requiredFilterColumn': {\n borderLeft: '4px solid !important',\n borderLeftColor: 'palette.error.main !important',\n },\n },\n 'tr.filtersRow, tr.responsiveTable__filters__row': {\n backgroundColor: 'components.primaryTable.body.backgroundColor',\n\n 'th.noFilter': {\n background: 'transparent',\n },\n 'td.requiredFilter__Border': {\n borderLeftStyle: 'solid !important',\n borderLeftWidth: '4px !important',\n borderLeftColor: 'palette.error.main',\n },\n\n td: {\n 'input:not([disabled]), select:not([disabled])': {\n border: '1px solid white',\n },\n background: 'transparent',\n border: '1px solid',\n borderColor: 'components.primaryTable.body.borderColor',\n p: 0,\n },\n\n transition: 'height 0.3s',\n\n '&.hidden': {\n height: '0',\n overflow: 'hidden',\n p: spacing(0),\n border: 'none',\n\n '& *': {\n height: '0',\n overflow: 'hidden',\n fontSize: 0,\n lineHeight: 0,\n p: spacing(0),\n border: 'none',\n },\n },\n },\n },\n tbody: {\n tr: {\n borderBottomWidth: '1px',\n borderBottomStyle: 'solid',\n ...getColorsAndStatesByPath('components.primaryTable.body', {\n states: {\n disabled: false,\n readonly: false,\n active: false,\n hover: false,\n checked: false,\n focus: false,\n selected: false,\n },\n }),\n '&:nth-of-type(2n)': {\n backgroundColor: 'components.primaryTable.body.evenRowsBackgroundColor',\n },\n\n '&.non-selectable': {\n cursor: 'not-allowed',\n },\n\n '&.hidden': {\n display: 'none',\n },\n\n '&.locked': {\n background: 'palette.gray.900',\n td: {\n borderColor: 'palette.gray.850',\n },\n },\n\n ...getSelectedColors(),\n\n '&.draggingRow': {\n outline: '3px dotted',\n outlineColor: 'components.primaryTable.header.borderColor',\n outlineOffset: '-3px',\n\n '*': {\n outline: 'none !important',\n },\n },\n\n borderColor: 'components.primaryTable.body.borderColor',\n\n '.rowStatesList': {\n display: 'flex',\n gap: spacing(3),\n alignItems: 'center',\n\n svg: {\n width: 'smallIcon',\n height: 'smallIcon',\n cursor: 'pointer',\n },\n },\n\n td: {\n verticalAlign: 'top',\n wordBreak: 'break-word',\n\n border: '1px solid',\n borderColor: 'components.primaryTable.body.borderColor',\n\n '&.stickyColumn': {\n position: 'sticky',\n left: 0,\n backgroundColor: 'components.primaryTable.body.backgroundColor',\n },\n\n '.moreInformationButton': {\n width: '30px',\n height: '30px',\n padding: '3px',\n border: 'none',\n background: 'transparent',\n },\n },\n },\n td: {\n p: spacing(3),\n },\n\n '.responsiveTable__additionalInfoContainer': {\n display: 'grid',\n gridTemplateColumns: responsive({\n 0: 'repeat(2, 1fr)',\n 5: 'repeat(4, 1fr)',\n }),\n columnGap: 3,\n rowGap: 2,\n },\n '.responsiveTable__additionalInfoContainer .responsiveTable__additionalInfoItem.separator':\n {\n gridColumnStart: '1',\n gridColumnEnd: '5',\n borderBottom: '1px solid',\n borderBottomColor: 'palette.gray.700',\n height: 'auto',\n },\n },\n '.editionMode': {\n border: '3px solid',\n borderColor: 'components.primaryTable.header.borderColor',\n borderWidth: '1.5px',\n borderStyle: 'dotted',\n },\n\n '.stateCell': {\n width: '50px',\n maxWidth: '50px',\n minWidth: '50px',\n textAlign: 'center',\n verticalAlign: 'middle',\n },\n\n ...getSelectionStyles(),\n '.no__registers': {\n py: 6,\n minWidth: '200px',\n },\n '.requiredFilter__Column': {\n fontWeight: 'bold',\n },\n\n '.bold': {\n fontWeight: 'bold',\n },\n\n '.light': {\n color: '#6a6a6a',\n },\n\n '.additionalInfo__cell, .stateCell': {\n verticalAlign: 'middle',\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../../../util';\n\nexport const information: ThemeUICSSObject = {\n width: '100%',\n\n border: '1px solid',\n borderColor: 'primary',\n borderCollapse: 'collapse',\n\n thead: {\n tr: {\n th: {\n bg: 'primary',\n color: 'white',\n textAlign: 'center',\n fontWeight: 'bold',\n p: spacing(4),\n },\n },\n },\n\n tbody: {\n tr: {\n 'td,th': {\n borderColor: 'muted',\n p: spacing(4),\n },\n\n '&:not(tr:last-of-type)': {\n 'td,th': {\n borderBottom: '1px solid',\n },\n },\n\n 'td:not(td:last-child),th:not(th:last-child)': {\n borderRight: '1px solid',\n },\n\n th: {\n textAlign: 'left',\n whiteSpace: 'nowrap',\n minWidth: 'min-content',\n width: 0,\n },\n },\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../../../util';\n\nexport const accordion: ThemeUICSSObject = {\n display: 'flex',\n flexDirection: 'column',\n gap: spacing(2),\n\n '.responsiveTable__accordionElement__toggler': {\n variant: 'buttons.outline',\n borderWidth: '1px',\n display: 'flex',\n gap: spacing(3),\n alignItems: 'stretch',\n width: '100%',\n px: 4,\n py: 3,\n\n '&:hover h3': {\n color: 'palette.primary.contrastText',\n },\n\n '.accordionElement__toggler__checkbox': {\n flexShrink: 0,\n m: spacing(2),\n },\n\n '.accordionElement__toggler__button': {\n flexGrow: 100,\n display: 'flex',\n justifyContent: 'space-between',\n py: 2,\n pr: spacing(2),\n alignItems: 'center',\n\n '.accordionElement__toggler__label': {\n flexGrow: 100,\n m: spacing(0),\n textAlign: 'left',\n fontSize: 16,\n },\n\n '.accordionElement__toggler__expandIcon': {\n flexShrink: 0,\n svg: {\n width: '32px',\n },\n },\n },\n },\n\n '.responsiveTable__accordionElement__content': {\n '& > div': {\n backgroundColor: 'palette.background.paper',\n transition: 'padding-bottom 300ms, padding-top 300ms',\n px: 5,\n },\n\n '&.rah-static--height-zero': {\n '& > div': { py: 0 },\n },\n\n '&.rah-static--height-auto, &.rah-animating--down': {\n '& > div': { py: 5 },\n },\n '.priority_container': { display: 'flex', alignItems: 'center' },\n '.priority': { display: 'flex' },\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\n\nexport const print: ThemeUICSSObject = {\n border: '2px solid',\n borderColor: 'printView.list.table.borderColor',\n\n 'td, th': {\n p: 3,\n textAlign: 'left',\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport tinycolor from 'tinycolor2';\n/* IMPORT HERE */\n\nexport const responsive: ThemeUICSSObject = {\n maxHeight: '100%',\n overflow: 'auto',\n position: 'relative',\n\n table: {\n width: '100%',\n },\n\n '&.isLoading': {\n overflow: 'hidden',\n },\n\n '.responsiveTable__isLoading': {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n background: tinycolor(window.currentPalette.background.paper)\n .setAlpha(0.7)\n .toRgbString(),\n zIndex: 1,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n\n '.cell__download__document': {\n display: 'flex',\n gap: 3,\n alignItems: 'center',\n justifyContent: 'start',\n\n '&, *': {\n color: 'palette.primary.main',\n },\n\n svg: {\n flexShrink: 0,\n },\n },\n /* PREPEND HERE */\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport getColorsAndStatesByPath from '../../../colors/util/getColorsAndStatesByPath';\n\nexport const secondary: ThemeUICSSObject = {\n variant: 'layout.common.tables.primary',\n borderColor: 'components.secondaryTable.borderColor',\n\n '& thead': {\n 'tr:not(.filtersRow):not(.responsiveTable__filters__row)': {\n '& th, & td': () => ({\n ...getColorsAndStatesByPath('components.secondaryTable.header'),\n }),\n },\n },\n '& tbody': {\n tr: {\n '&:nth-of-type(2n)': {\n backgroundColor:\n 'components.secondaryTable.body.evenRowsBackgroundColor',\n },\n\n td: {\n borderColor: 'components.secondaryTable.body.borderColor',\n },\n\n '&[aria-selected=\"true\"]': {\n backgroundColor:\n 'components.secondaryTable.body.selectedRows.backgroundColor',\n '& td': {\n borderColor:\n 'components.secondaryTable.body.selectedRows.borderColor',\n },\n color: 'components.secondaryTable.body.selectedRows.color',\n },\n\n borderBottomWidth: '1px',\n borderBottomStyle: 'solid',\n ...getColorsAndStatesByPath('components.secondaryTable.body', {\n states: {\n disabled: false,\n readonly: false,\n active: false,\n hover: false,\n checked: false,\n focus: false,\n selected: false,\n },\n }),\n },\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { primary } from './primary';\nimport { information } from './information';\nimport { accordion } from './accordion';\nimport { print } from './print';\nimport { responsive } from './responsive';\nimport { secondary } from './secondary';\n\nexport const tables: ThemeUICSSObject = {\n accordion,\n information,\n primary,\n print,\n responsive,\n secondary,\n /* PREPEND HERE */\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../../../../util';\n/* IMPORT HERE */\n\nexport const captcha: ThemeUICSSObject = {\n display: 'flex',\n flexDirection: 'column',\n gap: spacing(2),\n\n '.captcha__imageContainer': {\n border: '1px solid',\n borderColor: 'palette.border.field',\n p: spacing(4),\n },\n\n '.captcha__inputContainer': {\n display: 'flex',\n gap: spacing(2),\n justifyContent: 'stretch',\n\n input: {\n flexGrow: 1,\n width: '100%',\n },\n\n '.captcha__buttons': {\n width: '24px',\n flexDirection: 'column',\n display: 'flex',\n gap: spacing(2),\n flexShrink: 0,\n\n button: {\n width: '24px',\n height: '24px',\n p: '5px',\n variant: 'buttons.icon-outline',\n\n svg: {\n color: 'palette.text.primary',\n height: '16px',\n width: '16px',\n },\n },\n },\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { captcha } from './captcha';\n/* IMPORT HERE */\n\nexport const forms: ThemeUICSSObject = {\n captcha,\n /* PREPEND HERE */\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { focusOutline, spacing } from '../../../../util';\nimport getColorState from '../../../colors/util/getColorState';\n\nconst primary: ThemeUICSSObject = {\n /* PREPEND HERE */\n position: 'relative',\n '[role=\"tree\"]:focus': {\n outline: 'none',\n '.focus': focusOutline,\n },\n\n ul: {\n listStyle: 'none',\n p: 0,\n },\n\n '.tree__searchLabelBox': {\n alignItems: 'center',\n borderRadius: '2px',\n display: 'flex',\n float: 'right',\n gap: spacing(3),\n justifyContent: 'center',\n position: 'sticky',\n right: '4px',\n top: '4px',\n transform: 'translateX(0)',\n width: '100%',\n zIndex: 'stickyElements',\n\n '.tree__loading': {\n position: 'fixed',\n top: 0,\n right: '4px',\n height: 'iconMd',\n width: 'iconMd',\n background: 'palette.background.paper',\n },\n\n button: {\n cursor: 'pointer',\n },\n },\n\n '.tree__searchLabel': {\n alignItems: 'center',\n display: 'flex',\n gap: spacing(3),\n justifyContent: 'center',\n position: 'fixed',\n p: '2px 5px',\n right: 0,\n top: 0,\n\n ...getColorState(\n { backgroundColor: 'palette.background.paper' },\n 'selected',\n ),\n },\n\n '[role=\"treeitem\"]': {\n '&[aria-expanded=\"false\"] ul': {\n display: 'none',\n },\n\n '&[aria-selected=\"true\"] > .tree__nodeItemLabel': getColorState(\n { backgroundColor: 'palette.background.paper' },\n 'selected',\n ),\n\n background: 'transparent',\n },\n\n '.tree__nodeItemLabel': {\n display: 'flex',\n flexWrap: 'nowrap',\n gap: 3,\n alignItems: 'center',\n wordBreak: 'break-all',\n\n '.button__content': {\n textAlign: 'left',\n },\n\n '& > *:not(.tree__nodeItemLabelRenderer)': {\n flexShrink: 0,\n textAlign: 'left',\n },\n\n '&:hover': getColorState(\n { backgroundColor: 'palette.background.paper' },\n 'hover',\n ),\n },\n\n '.spacer': {\n borderLeft: '1px solid',\n borderLeftColor: 'palette.border.section',\n width: '20px',\n alignSelf: 'stretch',\n },\n};\n\nexport default primary;\n","import { ThemeUICSSObject } from 'theme-ui';\nimport primary from './primary';\n\nexport const trees: ThemeUICSSObject = {\n primary,\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { modals } from './modals';\nimport { tables } from './tables';\nimport { forms } from './forms';\nimport { trees } from './trees';\n/* IMPORT HERE */\nexport const common: ThemeUICSSObject = {\n forms,\n modals,\n tables,\n trees,\n /* PREPEND HERE */\n};\n","import { ThemeUIStyleObject } from 'theme-ui';\n\nexport const transitions: ThemeUIStyleObject = {\n '@keyframes growHorizontal': {\n from: { transform: 'scaleX(0)' },\n to: { transform: 'scaleY(100%)' },\n },\n '.hamburguerMenu': { display: 'none' },\n '.hamburguerMenu-enter,\\n.hamburguerMenu-appear': {\n display: 'block',\n transform: 'scale(0.7)',\n opacity: 0,\n },\n '.hamburguerMenu-enter-active,\\n.hamburguerMenu-appear-active': {\n transform: 'translateX(0)',\n transition: 'opacity 150ms, transform 150ms',\n transformOrigin: 'right top',\n opacity: 1,\n },\n '.hamburguerMenu-enter-done,\\n.hamburguerMenu-appear-done': {\n display: 'block',\n },\n '.hamburguerMenu-exit': {\n display: 'block',\n transform: 'scale(1)',\n opacity: 1,\n },\n '.hamburguerMenu-exit-active': {\n transform: 'scale(0.7) translateX(0)',\n transition: 'opacity 150ms, transform 150ms',\n display: 'block',\n opacity: 0,\n transformOrigin: 'right top',\n },\n '.hamburguerMenu-exit-done': { display: 'none' },\n '.modal-enter,\\n.modal-appear': { opacity: 0, transform: 'scale(0.8)' },\n '.modal-enter-active,\\n.modal-appear-active': {\n opacity: 1,\n transform: 'translateX(0)',\n transition: 'opacity 150ms, transform 150ms',\n transitionDelay: '0',\n },\n '.modal-exit': { opacity: 0 },\n '.modal-exit-done': { opacity: 0, display: 'none' },\n '.modal-exit-active': {\n opacity: 0,\n transform: 'scale(100)',\n transition: 'opacity 150ms, transform 150ms',\n transitionDelay: '0',\n },\n '.overlayAnimation-enter .overlayAnimation:not(.not-released),\\n.overlayAnimation-appear .overlayAnimation:not(.not-released)':\n {\n opacity: 0,\n },\n '.overlayAnimation-enter-active .overlayAnimation:not(.not-released),\\n.overlayAnimation-appear-active .overlayAnimation:not(.not-released)':\n {\n opacity: 1,\n transition: 'opacity 150ms',\n },\n '.overlayAnimation-exit': { opacity: 1 },\n '.overlayAnimation-exit-active': { opacity: 0, transition: 'opacity 150ms' },\n '.fromRight-enter,\\n.fromRight-appear': { transform: 'translateX(550px)' },\n '.fromRight-enter-active,\\n.fromRight-appear-active': {\n transition: 'transform 150ms',\n transform: 'translateX(0)',\n },\n '.fromRight-exit': { transform: 'translateX(0)' },\n '.fromRight-exit-active': {\n transition: 'transform 150ms',\n transform: 'translateX(550px)',\n },\n '.notification-enter,\\n.notification-appear': {\n opacity: 0,\n transform: 'scale(0.8)',\n },\n '.notification-enter-active,\\n.notification-appear-active': {\n opacity: 1,\n transform: 'translateX(0)',\n transition: 'opacity 150ms, transform 150ms',\n transitionDelay: '0',\n },\n '.notification-exit': { opacity: 1 },\n '.notification-exit-active': {\n opacity: 0,\n transform: 'scale(0.8)',\n transition: 'opacity 150ms, transform 150ms',\n transitionDelay: '0',\n },\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { focusOutline, responsive, spacing } from '../../util';\nimport { transitions } from './transitions';\n// import { getPalette } from '../colors';\n\nexport const root: ThemeUICSSObject = {\n '*': {\n fontFamily: 'body',\n fontWeight: 'body',\n\n code: {\n fontFamily: 'monospace',\n },\n\n '&:focus': focusOutline,\n },\n\n body: {\n minHeight: '100vh',\n },\n h1: {\n fontSize: responsive({ 0: 26, 3: 32 }),\n },\n h2: {\n fontSize: responsive({ 0: 22, 3: 28 }),\n },\n h3: {\n fontSize: responsive({ 0: 19, 3: 25 }),\n },\n h4: {\n fontSize: responsive({ 0: 18, 3: 22 }),\n },\n h5: {\n fontSize: responsive({ 0: 18, 3: 22 }),\n },\n h6: {\n fontSize: responsive({ 0: 17, 3: 17 }),\n },\n\n 'h1,h2,h3,h4,h5,h6': {\n letterSpacing: 'heading',\n lineHeight: 'heading',\n variant: 'text.title',\n },\n '*:not(h1, h2, h3, h4, h5, h6, code)': {\n fontFamily: 'body',\n fontSize: 16,\n fontWeight: 'body',\n letterSpacing: 'body',\n lineHeight: 'body',\n },\n a: {\n textDecoration: 'underline',\n },\n 'textarea,a': {\n transition: 'color 200ms ease-out',\n ':focus': {\n ...focusOutline,\n },\n ':focus-visible': {\n ...focusOutline,\n },\n },\n '*:focus': focusOutline,\n ul: {\n listStyle: 'none',\n listStyleType: 'none',\n margin: 0,\n padding: 0,\n },\n\n abbr: {\n '&.required': {\n textDecoration: 'none',\n border: 'none',\n mx: 1,\n alignSelf: 'baseline',\n fontWeight: 'bold',\n color: 'danger',\n },\n },\n table: {\n borderCollapse: 'separate',\n borderSpacing: 0,\n },\n\n // '[aria-selected=\"true\"], .selected': {\n // ...getPalette().getOneState(\n // { backgroundColor: getPalette().primary.main },\n // 'selected',\n // ),\n // },\n\n '& label': {\n display: 'flex',\n\n '& > span': {\n mb: spacing(1),\n fontWeight: 'bold',\n },\n\n '&.required': {\n position: 'relative',\n '&::before': {\n color: 'danger',\n position: 'absolute',\n content: '\"*\"',\n top: 0,\n left: '-10px',\n },\n\n '*:invalid': {\n borderColor: 'danger',\n },\n },\n },\n '.bold': {\n fontWeight: 'bold',\n },\n\n ...transitions,\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { common } from './common';\nimport { root } from '../rootStyles/rootStyles';\n/* IMPORT HERE */\n\nexport const layout: Record<string, ThemeUICSSObject> = {\n common,\n root,\n /* PREPEND HERE */\n};\n","import { ThemeUICSSObject } from 'theme-ui';\nimport { spacing } from '../util';\n\nconst text: Record<string, ThemeUICSSObject> = {\n default: {\n color: 'palette.text.primary',\n fontFamily: 'body',\n fontWeight: 'body',\n fontSize: 16,\n m: spacing(0),\n width: '100%',\n },\n title: {\n letterSpacing: 'heading',\n wordBreak: 'normal',\n color: 'title',\n fontFamily: 'heading',\n lineHeight: 'heading',\n fontWeight: 'heading',\n },\n};\n\nexport default text;\n","import { ColorModesScale, Theme } from 'theme-ui';\nimport { getThemeColorsObject } from './colors';\nimport { alerts } from './alerts';\nimport buttons from './buttons';\nimport forms from './forms';\nimport { layout } from './layout';\nimport text from './text';\nimport { root } from './rootStyles/rootStyles';\n\nexport const baseTheme: Theme = {\n alerts,\n breakpoints: ['0px', '250px', '500px', '700px', '1000px', '1260px', '1580px'],\n buttons,\n colors: getThemeColorsObject() as unknown as ColorModesScale,\n fonts: {\n body: 'Arial',\n heading: 'inherit',\n monospace: 'Menlo, monospace',\n },\n fontSizes: Array(60)\n .fill(1)\n .map((_, i) => {\n return i;\n }),\n forms: forms(),\n layout,\n lineHeights: {\n body: 1.5,\n heading: 1.125,\n },\n letterSpacings: {\n body: '0.01em',\n heading: '-0.015em',\n },\n radii: {\n alerts: 0,\n buttons: 0,\n default: 0,\n },\n shadows: {\n modals: '',\n tabs: '',\n },\n space: [0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 112, 128],\n sizes: {\n // Layout\n applicationMenu: '350px',\n floatingNotifications: 'min(550px, calc(100vw - 30px))',\n root: '992px',\n mainImage: '64px',\n twoColumns: 'calc(992px + 350px)',\n twoColumnsCentered: 'calc(992px + 350px + 16px)',\n\n // Icons\n iconXs: '12px',\n iconSm: '16px',\n iconMd: '22px',\n iconLg: '32px',\n iconXl: '48px',\n },\n text,\n zIndices: {\n stickyElements: 600,\n menu: 1000,\n maximizedTables: 1100,\n modal: 1200,\n tooltip: 1400,\n notifications: 1600,\n contextMenu: 1800,\n },\n styles: { root },\n useRootStyles: true,\n};\n","import { Theme, ThemeUICSSObject } from 'theme-ui';\nimport { merge } from 'lodash';\nimport { EventEmitter, setValueByPath } from '@apia/util';\nimport { baseTheme } from '../base/baseTheme';\n\nconst makeTheme = <T extends Theme>(t: T) => {\n return t;\n};\n\nlet declaredStyles: ThemeUICSSObject = {};\n\nexport const mainThemeEmitter =\n new (class MainThemeEmitter extends EventEmitter<{\n newStyles: {\n path: string;\n styles: ThemeUICSSObject;\n };\n }> {})();\n\nexport function declareStyles(\n path: string,\n styles: ThemeUICSSObject | Record<string, ThemeUICSSObject>,\n) {\n const newStyles = {};\n setValueByPath(newStyles, path, styles);\n declaredStyles = merge(declaredStyles, newStyles);\n}\n\nexport function getMainTheme(customTheme?: Theme) {\n return makeTheme(\n merge(baseTheme, { layout: declaredStyles }, customTheme ?? {}),\n );\n}\n","import { Theme, ThemeUICSSObject } from 'theme-ui';\nimport { merge } from 'lodash';\nimport { EventEmitter, setValueByPath, useMount } from '@apia/util';\nimport { useState } from 'react';\nimport { getMainTheme } from './getMainTheme';\n\nlet declaredStyles: ThemeUICSSObject = {};\n\nconst injectedStyles: Record<string, ThemeUICSSObject> = {};\n\nexport const mainThemeEmitter =\n new (class MainThemeEmitter extends EventEmitter<{\n newStyles: {\n path: string;\n styles: ThemeUICSSObject;\n };\n }> {})();\n\nfunction handleNewStyles(ev: { path: string; styles: ThemeUICSSObject }) {\n injectedStyles[ev.path] = ev.styles;\n}\n\nmainThemeEmitter.on('newStyles', handleNewStyles);\n\nexport function declareStyles(\n path: string,\n styles: ThemeUICSSObject | Record<string, ThemeUICSSObject>,\n) {\n const newStyles = {};\n setValueByPath(newStyles, path, styles);\n declaredStyles = merge(declaredStyles, newStyles);\n}\n\nexport function useMainTheme(customTheme?: Theme) {\n const [theme, setTheme] = useState<Theme>(getMainTheme(customTheme));\n\n useMount(() => {\n setTheme((current) => {\n mainThemeEmitter.off('newStyles', handleNewStyles);\n let initialTheme = { ...current };\n Object.entries(injectedStyles).forEach(([path, styles]) => {\n const newStyles = setValueByPath({}, path, styles);\n initialTheme = merge(initialTheme, newStyles);\n });\n return initialTheme;\n });\n return mainThemeEmitter.on('newStyles', (ev) => {\n const newStyles = setValueByPath({}, ev.path, ev.styles);\n setTheme((current) => merge({ ...current }, newStyles));\n });\n });\n\n return theme;\n}\n","import { Box, Theme, ThemeProvider as TUIThemeProvider } from 'theme-ui';\nimport { createContext, ReactNode } from 'react';\nimport { useMainTheme } from './methods/useMainTheme';\nimport { getVariant } from './util';\n\ninterface TThemeProvider {\n children: ReactNode;\n customTheme?: Theme;\n}\n\nlet timeout = -1;\nfunction logTheme(theme: unknown) {\n clearTimeout(timeout);\n timeout = setTimeout(() => {\n console.info({ theme });\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }, 100) as any;\n}\n\nexport const ThemeProviderContext = createContext<Theme>({} as Theme);\n\nexport const ThemeProvider = ({ children, customTheme }: TThemeProvider) => {\n const theme: Theme = useMainTheme(customTheme);\n\n logTheme(theme);\n\n return (\n <ThemeProviderContext.Provider value={theme}>\n <TUIThemeProvider theme={theme}>\n <Box {...getVariant('layout.root')}>{children}</Box>\n </TUIThemeProvider>\n </ThemeProviderContext.Provider>\n );\n};\n"],"names":["responsive","__spreadValues","_a","_b","_c","__spreadProps","forms","focusOutline","TUIThemeProvider","primary"],"mappings":";;;;;;;;AAgBO,SAASA,aAAc,MAGF,EAAA;AAnB5B,EAAA,IAAA,EAAA,CAAA;AAoBE,EAAA,MAAM,cAAc,EAAC,CAAA;AACrB,EAAA,MAAM,GAAM,GAAA,CAAA,CAAA;AACZ,EAAS,KAAA,IAAA,CAAA,GAAI,CAAG,EAAA,CAAA,IAAK,GAAK,EAAA,CAAA,EAAA;AAAK,IAAA,WAAA,CAAY,IAAI,CAAC,CAAA,GAAA,CAAI,EAAO,GAAA,MAAA,CAAA,CAAC,MAAR,IAAa,GAAA,EAAA,GAAA,IAAA,CAAA;AAEjE,EAAA,IAAI,MAAO,CAAA,KAAA;AAAO,IAAY,WAAA,CAAA,CAAC,IAAI,MAAO,CAAA,KAAA,CAAA;AAAA,OACrC;AACH,IAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAK,IAAA,CAAA,EAAG,CAAK,EAAA,EAAA;AAC3B,MAAI,IAAA,MAAA,CAAO,CAAC,CAAM,KAAA,KAAA,CAAA;AAAW,QAAY,WAAA,CAAA,CAAC,CAAI,GAAA,MAAA,CAAO,CAAC,CAAA,CAAA;AAAA,KACxD;AAAA,GACF;AAEA,EAAO,OAAA,WAAA,CAAA;AACT,CAAA;AAiBO,SAAS,QAAQ,KAA6C,EAAA;AAjDrE,EAAA,IAAA,EAAA,CAAA;AAkDE,EAAA,OAAA,CAAO,EAAe,GAAA,cAAA,C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description",
|
|
5
5
|
"author": "alexisleite <alexisleite@live.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -9,27 +9,36 @@
|
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"@apia/util": "^0.0.9-alpha.0",
|
|
16
|
-
"lodash": "^4.17.21",
|
|
17
|
-
"tinycolor2": "^1.6.0"
|
|
12
|
+
"build": "rollup -c rollup.config.esb.mjs",
|
|
13
|
+
"buildDev": "rollup -c rollup.config.esb.mjs --dev",
|
|
14
|
+
"watch": "rollup -c rollup.config.esb.mjs --dev --watch"
|
|
18
15
|
},
|
|
19
16
|
"devDependencies": {
|
|
17
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
18
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
19
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
20
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
21
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
20
22
|
"@types/lodash": "^4.14.192",
|
|
21
|
-
"@types/theme-ui": "^0.6.0",
|
|
22
23
|
"@types/tinycolor2": "^1.4.3",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
24
|
+
"esbuild": "^0.17.14",
|
|
25
|
+
"rollup": "^3.20.2",
|
|
26
|
+
"rollup-plugin-bundle-analyzer": "^1.6.6",
|
|
27
|
+
"rollup-plugin-dts": "^5.3.0",
|
|
28
|
+
"rollup-plugin-esbuild": "^5.0.0",
|
|
25
29
|
"typescript": "^4.9.5"
|
|
26
30
|
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@apia/util": "^0.1.3",
|
|
33
|
+
"lodash": "^4.17.21",
|
|
34
|
+
"tinycolor2": "^1.6.0"
|
|
35
|
+
},
|
|
27
36
|
"peerDependencies": {
|
|
28
37
|
"@emotion/react": "^11.10.6",
|
|
29
38
|
"react": "^18.2.0",
|
|
30
39
|
"theme-ui": "^0.15.5"
|
|
31
40
|
},
|
|
32
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "26592fdfe0290bfed776776bf9dbe5d3ac2c7341",
|
|
33
42
|
"repository": {
|
|
34
43
|
"type": "git",
|
|
35
44
|
"url": "http://corp-gitlab-01.domst.st.net/products/apia/ApiaNPMPackages.git",
|