scorer-ui-kit 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +4 -2
  2. package/dist/Alerts/atom/AlertBar.d.ts +4 -2
  3. package/dist/Alerts/atom/AlertBar.d.ts.map +1 -1
  4. package/dist/CameraPanels/molecules/CameraPanel.d.ts +4 -2
  5. package/dist/CameraPanels/molecules/CameraPanel.d.ts.map +1 -1
  6. package/dist/Filters/atoms/DateTimeBlock.d.ts.map +1 -1
  7. package/dist/Filters/molecules/DatePicker.d.ts.map +1 -1
  8. package/dist/Form/atoms/Label.d.ts +4 -2
  9. package/dist/Form/atoms/Label.d.ts.map +1 -1
  10. package/dist/Form/atoms/SelectField.d.ts +1 -1
  11. package/dist/Form/atoms/SelectField.d.ts.map +1 -1
  12. package/dist/Global/atoms/Layout.d.ts +14 -7
  13. package/dist/Global/atoms/Layout.d.ts.map +1 -1
  14. package/dist/Global/molecules/Sidebar.d.ts +4 -4
  15. package/dist/Global/molecules/Sidebar.d.ts.map +1 -1
  16. package/dist/Icons/Icon.d.ts +2 -2
  17. package/dist/Icons/Icon.d.ts.map +1 -1
  18. package/dist/{LineUIVideoBase-09sEI3pc.mjs → LineUIVideoBase-CJ61ZqPJ.mjs} +1 -1
  19. package/dist/{LineUIVideoBase-09sEI3pc.mjs.map → LineUIVideoBase-CJ61ZqPJ.mjs.map} +1 -1
  20. package/dist/{LineUIVideoBase-Bs3WCeWl.js → LineUIVideoBase-VxlYHeJG.js} +1 -1
  21. package/dist/{LineUIVideoBase-Bs3WCeWl.js.map → LineUIVideoBase-VxlYHeJG.js.map} +1 -1
  22. package/dist/Misc/atoms/MediaBox.d.ts +5 -2
  23. package/dist/Misc/atoms/MediaBox.d.ts.map +1 -1
  24. package/dist/Misc/atoms/Tag.d.ts +8 -2
  25. package/dist/Misc/atoms/Tag.d.ts.map +1 -1
  26. package/dist/Misc/molecules/TagList.d.ts +1 -1
  27. package/dist/Misc/molecules/TagList.d.ts.map +1 -1
  28. package/dist/Tabs/TabList.d.ts +1 -1
  29. package/dist/Tabs/TabList.d.ts.map +1 -1
  30. package/dist/hls.js +1 -1
  31. package/dist/hls.js.map +1 -1
  32. package/dist/hls.modern.js +1 -1
  33. package/dist/hls.modern.js.map +1 -1
  34. package/dist/index.js +130 -113
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.modern.js +593 -582
  37. package/dist/index.modern.js.map +1 -1
  38. package/package.json +27 -27
@@ -1,4 +1,4 @@
1
- import { a as Icon, c as animation, d as dimensions, f as fontFamily, i as Spinner, l as deviceMediaQuery, n as LineSet, o as IconSVGs, r as LineSetContext, s as IconWrapper$4, t as LineUIVideoBase, u as deviceSize } from "./LineUIVideoBase-09sEI3pc.mjs";
1
+ import { a as Icon, c as animation, d as dimensions, f as fontFamily, i as Spinner, l as deviceMediaQuery, n as LineSet, o as IconSVGs, r as LineSetContext, s as IconWrapper$4, t as LineUIVideoBase, u as deviceSize } from "./LineUIVideoBase-CJ61ZqPJ.mjs";
2
2
  import styled, { createGlobalStyle, css, keyframes } from "styled-components";
3
3
  import React, { Fragment, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -49,473 +49,6 @@ var colors = {
49
49
  input: { border: { default: "var(--grey-7)" } }
50
50
  };
51
51
  //#endregion
52
- //#region src/theme/legacy/custom.ts
53
- var custom = { lines: {
54
- primary: {
55
- label: { fill: "#fff" },
56
- contrastLine: { stroke: "hsla(205deg, 80%, 45%, 100%);" },
57
- highlightLine: { stroke: "hsla(205deg, 45%, 90%, 90%);" },
58
- highlightLineBorder: { stroke: "hsla(204.8,53.4%,46.3%,100%);" },
59
- grabHandle: {
60
- fill: "hsla(205deg, 45%, 90%, 100%)",
61
- stroke: "hsla(205deg, 45%, 100%, 100%)"
62
- },
63
- point: { fill: "hsla(205deg, 45%, 90%, 100%)" },
64
- grabHandleContrast: { stroke: "hsla(205deg, 80%, 45%, 100%)" },
65
- grabHandleText: { fill: "hsla(205deg, 80%, 25%, 100%);" },
66
- handleBase: { fill: "hsla(235deg, 100%, 80%, 100%);" },
67
- handleRingLayer: { stroke: "hsla(205deg, 100%, 89%, 100%);" },
68
- handleReactiveFill: { fill: "hsla(192deg, 100%, 45%, 100%);" },
69
- handleReactiveRing: { stroke: "hsla(205deg, 100%, 36%, 27%);" },
70
- handleContrastLayer: { stroke: "hsla(205deg, 100%, 36%, 15%);" },
71
- stopStart: { stopColor: " hsla(205deg, 100%, 15%, 35%);" },
72
- stopEnd: { stopColor: "hsla(205deg, 100%, 15%, 0%)" }
73
- },
74
- secondary: {
75
- label: { fill: "#fff" },
76
- contrastLine: { stroke: "hsla(120deg, 80%, 45%, 100%);" },
77
- highlightLine: { stroke: "hsla(120deg, 45%, 90%, 90%);" },
78
- highlightLineBorder: { stroke: "hsla(120deg, 81%, 70%, 90%);" },
79
- grabHandle: {
80
- fill: "hsla(120deg, 45%, 90%, 100%)",
81
- stroke: "hsla(120deg, 45%, 100%, 100%)"
82
- },
83
- point: { fill: "hsla(120deg, 45%, 90%, 100%)" },
84
- grabHandleContrast: { stroke: "hsla(120deg, 80%, 45%, 100%)" },
85
- grabHandleText: { fill: "hsla(120deg, 80%, 25%, 100%);" },
86
- handleBase: { fill: "hsla(150deg, 100%, 80%, 100%);" },
87
- handleRingLayer: { stroke: "hsla(120deg, 100%, 89%, 100%);" },
88
- handleReactiveFill: { fill: "hsla(108deg, 100%, 45%, 100%);" },
89
- handleReactiveRing: { stroke: "hsla(120deg, 100%, 36%, 27%);" },
90
- handleContrastLayer: { stroke: "hsla(120deg, 100%, 36%, 15%);" },
91
- stopStart: { stopColor: " hsla(120deg, 100%, 15%, 35%);" },
92
- stopEnd: { stopColor: "hsla(120deg, 100%, 15%, 0%)" }
93
- },
94
- danger: {
95
- label: { fill: "#fff" },
96
- contrastLine: { stroke: "hsla(0, 80%, 45%, 100%);" },
97
- highlightLine: { stroke: "hsla(0, 45%, 90%, 90%);" },
98
- highlightLineBorder: { stroke: "hsla(0deg, 86%, 70%, 100%);" },
99
- grabHandle: {
100
- fill: "hsla(0, 45%, 90%, 100%)",
101
- stroke: "hsla(0, 45%, 100%, 100%)"
102
- },
103
- point: { fill: "hsla(0, 45%, 90%, 100%)" },
104
- grabHandleText: { fill: "hsla(0, 80%, 25%, 100%);" },
105
- grabHandleContrast: { stroke: "hsla(0, 80%, 45%, 100%)" },
106
- handleBase: { fill: "hsla(30deg, 100%, 80%, 100%);" },
107
- handleRingLayer: { stroke: "hsla(0, 100%, 89%, 100%);" },
108
- handleReactiveFill: { fill: "hsla(348deg, 100%, 45%, 100%);" },
109
- handleReactiveRing: { stroke: "hsla(0deg, 100%, 36%, 27%);" },
110
- handleContrastLayer: { stroke: "hsla(0deg, 100%, 36%, 15%);" },
111
- stopStart: { stopColor: " hsla(0, 100%, 15%, 35%);" },
112
- stopEnd: { stopColor: "hsla(0, 100%, 15%, 0%);" }
113
- }
114
- } };
115
- //#endregion
116
- //#region src/theme/legacy/styles.ts
117
- var styles = {
118
- generic: { transparent: {} },
119
- form: {
120
- input: {
121
- default: {
122
- normal: {
123
- backgroundColor: "var(--grey-1)",
124
- borderColor: colors.input.border.default,
125
- border: `${colors.input.border.default} 1px solid`
126
- },
127
- focused: {
128
- boxShadow: "0px 3px 7px 0px var(--primary-a2)",
129
- backgroundColor: "var(--grey-1)",
130
- borderColor: "var(--primary-7)",
131
- border: "var(--primary-7) 1px solid"
132
- }
133
- },
134
- disabled: { normal: {
135
- backgroundColor: "var(--primary-2)",
136
- borderColor: "var(--grey-7)",
137
- border: "var(--grey-7) 1px solid"
138
- } },
139
- subdivision: { backgroundColor: "var(--grey-7)" },
140
- required: {
141
- focused: {
142
- boxShadow: "0px 3px 7px 0px var(--primary-a2)",
143
- backgroundColor: "var(--grey-1)",
144
- borderColor: "var(--primary-7)",
145
- border: "var(--primary-7) 2px solid"
146
- },
147
- normal: {
148
- borderColor: "var(--primary-7)",
149
- border: "var(--primary-7) 1px solid",
150
- backgroundColor: "var(--grey-1)"
151
- }
152
- },
153
- valid: {
154
- focused: {
155
- boxShadow: "0px 3px 5px 0px var(--success-a2)",
156
- backgroundColor: "var(--grey-1)",
157
- borderColor: "var(--success-7)",
158
- border: "var(--success-7) 2px solid"
159
- },
160
- normal: {
161
- borderColor: "var(--success-7)",
162
- border: "var(--success-7) 1px solid",
163
- backgroundColor: "var(--grey-1)"
164
- }
165
- },
166
- invalid: {
167
- focused: {
168
- boxShadow: "0px 3px 7px 0px var(--warning-a2)",
169
- backgroundColor: "var(--grey-1)",
170
- borderColor: "var(--warning-8)",
171
- border: "var(--warning-8) 2px solid"
172
- },
173
- normal: {
174
- borderColor: "var(--warning-8)",
175
- border: "var(--warning-8) 1px solid",
176
- backgroundColor: "var(--grey-1)"
177
- }
178
- },
179
- processing: {
180
- focused: {
181
- boxShadow: "0px 3px 7px 0px var(--primary-a2)",
182
- backgroundColor: "var(--grey-1)",
183
- borderColor: "var(--primary-7)",
184
- border: "var(--primary-7) 2px solid"
185
- },
186
- normal: {
187
- backgroundColor: "var(--grey-1)",
188
- borderColor: "var(--primary-7)",
189
- border: "var(--primary-7) 1px solid"
190
- }
191
- },
192
- seperatedValues: {
193
- background: {
194
- backgroundColor: "var(--primary-7)",
195
- backgroundImage: "linear-gradient(315.00deg, var(--primary-7) 0%, var(--primary-8) 100%)"
196
- },
197
- hoverHighlight: { backgroundColor: "var(--primary-7)" }
198
- }
199
- },
200
- button: {
201
- primary: {
202
- default: {
203
- backgroundColor: "var(--primary-9)",
204
- backgroundImage: "linear-gradient(135.00deg, var(--primary-9) 0%, var(--primary-8) 100%)"
205
- },
206
- hover: { backgroundColor: "var(--primary-10)" },
207
- active: { backgroundColor: "var(--primary-9)" },
208
- divider: { backgroundColor: "var(--primary-a8)" },
209
- disabled: {
210
- backgroundColor: "var(--primary-a10)",
211
- backgroundImage: "linear-gradient(135.00deg, var(--primary-9) 0%, var(--primary-8) 100%)"
212
- },
213
- actionArea: {
214
- backgroundColor: "var(--primary-9)",
215
- backgroundImage: "linear-gradient(135.00deg, var(--primary-9) 0%, var(--primary-8) 100%)"
216
- }
217
- },
218
- secondary: {
219
- default: { backgroundColor: "var(--grey-9)" },
220
- hover: { backgroundColor: "var(--grey-10)" },
221
- active: { backgroundColor: "var(--grey-9)" },
222
- disabled: { backgroundColor: "var(--grey-a10)" },
223
- divider: { backgroundColor: "var(--grey-a8)" },
224
- actionArea: {
225
- backgroundColor: "var(--grey-9)",
226
- backgroundImage: "linear-gradient(135.00deg, var(--grey-9) 0%, var(--grey-8) 100%)"
227
- }
228
- },
229
- danger: {
230
- default: {
231
- backgroundColor: "var(--warning-9)",
232
- backgroundImage: "linear-gradient(317.51deg, var(--warning-9) 0%, var(--warning-8) 100%)"
233
- },
234
- hover: { backgroundColor: "var(--warning-10)" },
235
- active: { backgroundColor: "var(--warning-9)" },
236
- disabled: { backgroundColor: "var(--warning-a10)" },
237
- divider: { backgroundColor: "var(--warning-8)" },
238
- actionArea: {
239
- backgroundColor: "var(--warning-9)",
240
- backgroundImage: "linear-gradient(317.51deg, var(--warning-9) 0%, var(--warning-8) 100%)"
241
- }
242
- }
243
- },
244
- switch: {
245
- off: {
246
- default: {
247
- outer: {
248
- backgroundColor: "var(--grey-3)",
249
- backgroundImage: "linear-gradient(180.00deg, var(--primary-2) 0%, var(--primary-3) 100%)",
250
- borderColor: "var(--grey-a8)",
251
- border: "var(--grey-a8) 1px solid"
252
- },
253
- inner: {
254
- backgroundColor: "var(--primary-7)",
255
- backgroundImage: "linear-gradient(315.00deg, var(--primary-7) 0%, var(--primary-8) 100%)"
256
- }
257
- },
258
- disabled: {
259
- outer: {
260
- backgroundColor: "var(--grey-1)",
261
- backgroundImage: "linear-gradient(180.00deg, var(--grey-1)0%, var(--grey-1) 100%)",
262
- borderColor: "var(--grey-a7)",
263
- border: "var(--grey-a7) 1px solid"
264
- },
265
- inner: { backgroundColor: "var(--grey-7)" }
266
- },
267
- loading: { outer: {
268
- backgroundColor: "var(--grey-3)",
269
- backgroundImage: "linear-gradient(180.00deg, var(--grey-3) 0%, var(--primary-3) 100%)",
270
- borderColor: "var(--grey-a8)",
271
- border: "var(--grey-a8) 1px solid"
272
- } }
273
- },
274
- on: {
275
- default: {
276
- outer: {
277
- backgroundColor: "var(--primary-7)",
278
- backgroundImage: "linear-gradient(317.51deg, var(--primary-7) 0%, var(--primary-7) 100%)",
279
- borderColor: "var(--primary-8)",
280
- border: "var(--primary-8) 1px solid"
281
- },
282
- inner: { backgroundColor: "var(--white-1)" }
283
- },
284
- disabled: {
285
- outer: {
286
- backgroundColor: "var(--primary-5)",
287
- backgroundImage: "linear-gradient(180.00deg, var(--primary-5) 0%, var(--primary-5) 100%)",
288
- borderColor: "var(--primary-6)",
289
- border: "var(--primary-6) 1px solid"
290
- },
291
- inner: { backgroundColor: "var(--white-1)" }
292
- },
293
- loading: { outer: {
294
- backgroundColor: "var(--primary-a7)",
295
- backgroundImage: "linear-gradient(315.00deg, var(--primary-a7) 0%, var(--primary-a7) 100%)",
296
- borderColor: "var(--primary-a8)",
297
- border: "var(--primary-a8) 1px solid"
298
- } }
299
- },
300
- failure: {
301
- default: {
302
- outer: {
303
- backgroundColor: "var(--warning-9)",
304
- backgroundImage: "linear-gradient(317.51deg, var(--warning-9) 0%, var(--warning-8) 100%)",
305
- borderColor: "var(--warning-9)",
306
- border: "var(--warning-9) 1px solid"
307
- },
308
- inner: { backgroundColor: "var(--white-1)" }
309
- },
310
- loading: {
311
- outer: {
312
- backgroundColor: "var(--warning-8)",
313
- backgroundImage: "linear-gradient(317.51deg, var(--warning-8) 0.4%, var(--warning-8) 100%)",
314
- borderColor: "var(--warning-8)",
315
- border: "var(--warning-8) 1px solid"
316
- },
317
- inner: { backgroundColor: "var(--white-1)" }
318
- }
319
- },
320
- danger: {
321
- default: {
322
- outer: {
323
- backgroundColor: "var(--warning-11)",
324
- backgroundImage: "linear-gradient(317.51deg, var(--warning-11) 0%, var(--warning-8) 100%)",
325
- borderColor: "var(--warning-8)",
326
- border: "var(--warning-8) 1px solid"
327
- },
328
- inner: { backgroundColor: "var(--white-1)" }
329
- },
330
- loading: { outer: {
331
- backgroundColor: "var(--warning-8)",
332
- backgroundImage: "linear-gradient(317.51deg, var(--warning-8) 0%, var(--warning-7) 100%)",
333
- borderColor: "var(--warning-8)",
334
- border: "var(--warning-8) 1px solid"
335
- } },
336
- disabled: {
337
- outer: {
338
- backgroundColor: "var(--warning-7)",
339
- backgroundImage: "linear-gradient(317.51deg, var(--warning-7) 0%, var(--caution-6) 100%)",
340
- borderColor: "var(--warning-6)",
341
- border: "var(--warning-6) 1px solid"
342
- },
343
- inner: { backgroundColor: "var(--white-1)" }
344
- }
345
- },
346
- locked: { default: {
347
- outer: {
348
- backgroundColor: "var(--grey-1) ",
349
- backgroundImage: "linear-gradient(180.00deg, var(--grey-1) 0%, var(--grey-1) 100%)",
350
- borderColor: "var(--grey-a8)",
351
- border: "var(--grey-a8) 1px solid"
352
- },
353
- inner: { backgroundColor: "var(--grey-8)" }
354
- } }
355
- },
356
- checkbox: {
357
- unchecked: {
358
- disabled: {
359
- backgroundColor: "var(--grey-1)",
360
- borderColor: "var(--grey-6)",
361
- border: "var(--grey-6) 2px solid"
362
- },
363
- default: {
364
- borderColor: "var(--grey-9)",
365
- border: "var(--grey-9) 2px solid"
366
- },
367
- hover: {
368
- borderColor: "var(--primary-8)",
369
- border: "var(--primary-8) 2px solid"
370
- }
371
- },
372
- checked: {
373
- disabled: {
374
- boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
375
- backgroundColor: "var(--grey-6)"
376
- },
377
- default: {
378
- boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
379
- backgroundColor: "var(--primary-8)"
380
- },
381
- hover: {
382
- boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
383
- backgroundColor: "var(--primary-8)"
384
- }
385
- },
386
- indeterminate: {
387
- hover: {
388
- boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
389
- backgroundColor: "var(--primary-6)"
390
- },
391
- default: {
392
- boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
393
- backgroundColor: "var(--primary-6)"
394
- }
395
- }
396
- }
397
- },
398
- indicators: { spinner: {
399
- danger: {
400
- base: {
401
- borderColor: "var(--warning-8)",
402
- border: "var(--warning-8) 3px solid"
403
- },
404
- top: {
405
- borderColor: "var(--white-1)",
406
- border: "var(--white-1) 3px solid"
407
- }
408
- },
409
- secondary: {
410
- top: {
411
- borderColor: "var(--white-1)",
412
- border: "var(--white-1) 3px solid"
413
- },
414
- base: {
415
- borderColor: "var(--grey-8)",
416
- border: "var(--grey-8) 3px solid"
417
- }
418
- },
419
- primary: {
420
- top: {
421
- borderColor: "var(--white-1)",
422
- border: "var(--white-1) 3px solid"
423
- },
424
- base: {
425
- borderColor: "var(--primary-6)",
426
- border: "var(--primary-6) 3px solid"
427
- }
428
- },
429
- simple: {
430
- top: {
431
- borderColor: "var(--white-1)",
432
- border: "var(--white-1) 3px solid"
433
- },
434
- base: {
435
- borderColor: "var(--grey-a8)",
436
- border: "var(--grey-a8) 3px solid"
437
- }
438
- }
439
- } },
440
- filters: {
441
- dropdownContainer: {
442
- background: {
443
- boxShadow: "0px 5px 25px 0px var(--primary-a1)",
444
- backgroundColor: "var(--grey-1)",
445
- borderColor: "var(--grey-6)",
446
- border: "var(--grey-6) 1px solid"
447
- },
448
- topBorder: { backgroundColor: "var(--primary-7)" }
449
- },
450
- filterButton: {
451
- default: {
452
- boxShadow: "0px 4px 9px 0px var(--primary-a1)",
453
- backgroundColor: "var(--grey-1)",
454
- borderColor: "var(--grey-7)",
455
- border: "var(--grey-7) 1px solid",
456
- textColor: "var(--grey-11)"
457
- },
458
- active: {
459
- boxShadow: "0px 4px 9px 0px var(--primary-a1)",
460
- backgroundColor: "var(--primary-7)",
461
- borderColor: "var(--primary-7)",
462
- border: "var(--primary-7) 1px solid",
463
- textColor: "var(--white-1)"
464
- },
465
- hover: {
466
- boxShadow: "0px 4px 9px 0px var(--primary-a1)",
467
- backgroundColor: "var(--primary-7)",
468
- borderColor: "var(--primary-7)",
469
- border: "var(--primary-7) 1px solid",
470
- textColor: "var(--white-1)"
471
- }
472
- },
473
- searchInput: {
474
- default: {
475
- boxShadow: "0px 4px 9px 0px var(--primary-a2)",
476
- backgroundColor: "var(--grey-1)",
477
- borderColor: "var(--grey-7)",
478
- border: "var(--grey-7) 1px solid"
479
- },
480
- focused: {
481
- boxShadow: "0px 4px 9px 0px var(--primary-a2)",
482
- backgroundColor: "var(--grey-1)",
483
- borderColor: "var(--primary-6)",
484
- border: "var(--primary-6) 1px solid"
485
- }
486
- }
487
- },
488
- tables: {
489
- loadingOverlay: {
490
- backgroundColor: "var(--grey-2)",
491
- backgroundImage: "linear-gradient(180.00deg, var(--grey-2) 0%, var(--grey-3) 100%)"
492
- },
493
- rows: { divider: { backgroundColor: colors.divider } },
494
- header: {
495
- groupLine: { backgroundColor: colors.divider },
496
- divider: { backgroundColor: colors.divider },
497
- sortable: {
498
- hover: { backgroundColor: "var(--grey-4)" },
499
- default: { backgroundColor: "var(--grey-2)" }
500
- }
501
- }
502
- },
503
- general: { divider: { backgroundColor: colors.divider } },
504
- feedbackBar: {
505
- neutral: { backgroundColor: colors.feedback.neutral },
506
- error: { backgroundColor: colors.feedback.error },
507
- info: { backgroundColor: colors.feedback.info },
508
- success: { backgroundColor: colors.feedback.success },
509
- warning: { backgroundColor: colors.feedback.warning }
510
- },
511
- filterButton: { active: {
512
- boxShadow: "0px 4px 9px 0px var(--primary-a1)",
513
- backgroundColor: "var(--grey-1)",
514
- borderColor: "var(--primary-7)",
515
- border: "var(--primary-7) 1px solid"
516
- } }
517
- };
518
- //#endregion
519
52
  //#region src/theme/index.ts
520
53
  var theme_default = {
521
54
  fontFamily,
@@ -1197,9 +730,470 @@ var theme_default = {
1197
730
  } }
1198
731
  },
1199
732
  colors,
1200
- styles,
733
+ styles: {
734
+ generic: { transparent: {} },
735
+ form: {
736
+ input: {
737
+ default: {
738
+ normal: {
739
+ backgroundColor: "var(--grey-1)",
740
+ borderColor: colors.input.border.default,
741
+ border: `${colors.input.border.default} 1px solid`
742
+ },
743
+ focused: {
744
+ boxShadow: "0px 3px 7px 0px var(--primary-a2)",
745
+ backgroundColor: "var(--grey-1)",
746
+ borderColor: "var(--primary-7)",
747
+ border: "var(--primary-7) 1px solid"
748
+ }
749
+ },
750
+ disabled: { normal: {
751
+ backgroundColor: "var(--primary-2)",
752
+ borderColor: "var(--grey-7)",
753
+ border: "var(--grey-7) 1px solid"
754
+ } },
755
+ subdivision: { backgroundColor: "var(--grey-7)" },
756
+ required: {
757
+ focused: {
758
+ boxShadow: "0px 3px 7px 0px var(--primary-a2)",
759
+ backgroundColor: "var(--grey-1)",
760
+ borderColor: "var(--primary-7)",
761
+ border: "var(--primary-7) 2px solid"
762
+ },
763
+ normal: {
764
+ borderColor: "var(--primary-7)",
765
+ border: "var(--primary-7) 1px solid",
766
+ backgroundColor: "var(--grey-1)"
767
+ }
768
+ },
769
+ valid: {
770
+ focused: {
771
+ boxShadow: "0px 3px 5px 0px var(--success-a2)",
772
+ backgroundColor: "var(--grey-1)",
773
+ borderColor: "var(--success-7)",
774
+ border: "var(--success-7) 2px solid"
775
+ },
776
+ normal: {
777
+ borderColor: "var(--success-7)",
778
+ border: "var(--success-7) 1px solid",
779
+ backgroundColor: "var(--grey-1)"
780
+ }
781
+ },
782
+ invalid: {
783
+ focused: {
784
+ boxShadow: "0px 3px 7px 0px var(--warning-a2)",
785
+ backgroundColor: "var(--grey-1)",
786
+ borderColor: "var(--warning-8)",
787
+ border: "var(--warning-8) 2px solid"
788
+ },
789
+ normal: {
790
+ borderColor: "var(--warning-8)",
791
+ border: "var(--warning-8) 1px solid",
792
+ backgroundColor: "var(--grey-1)"
793
+ }
794
+ },
795
+ processing: {
796
+ focused: {
797
+ boxShadow: "0px 3px 7px 0px var(--primary-a2)",
798
+ backgroundColor: "var(--grey-1)",
799
+ borderColor: "var(--primary-7)",
800
+ border: "var(--primary-7) 2px solid"
801
+ },
802
+ normal: {
803
+ backgroundColor: "var(--grey-1)",
804
+ borderColor: "var(--primary-7)",
805
+ border: "var(--primary-7) 1px solid"
806
+ }
807
+ },
808
+ seperatedValues: {
809
+ background: {
810
+ backgroundColor: "var(--primary-7)",
811
+ backgroundImage: "linear-gradient(315.00deg, var(--primary-7) 0%, var(--primary-8) 100%)"
812
+ },
813
+ hoverHighlight: { backgroundColor: "var(--primary-7)" }
814
+ }
815
+ },
816
+ button: {
817
+ primary: {
818
+ default: {
819
+ backgroundColor: "var(--primary-9)",
820
+ backgroundImage: "linear-gradient(135.00deg, var(--primary-9) 0%, var(--primary-8) 100%)"
821
+ },
822
+ hover: { backgroundColor: "var(--primary-10)" },
823
+ active: { backgroundColor: "var(--primary-9)" },
824
+ divider: { backgroundColor: "var(--primary-a8)" },
825
+ disabled: {
826
+ backgroundColor: "var(--primary-a10)",
827
+ backgroundImage: "linear-gradient(135.00deg, var(--primary-9) 0%, var(--primary-8) 100%)"
828
+ },
829
+ actionArea: {
830
+ backgroundColor: "var(--primary-9)",
831
+ backgroundImage: "linear-gradient(135.00deg, var(--primary-9) 0%, var(--primary-8) 100%)"
832
+ }
833
+ },
834
+ secondary: {
835
+ default: { backgroundColor: "var(--grey-9)" },
836
+ hover: { backgroundColor: "var(--grey-10)" },
837
+ active: { backgroundColor: "var(--grey-9)" },
838
+ disabled: { backgroundColor: "var(--grey-a10)" },
839
+ divider: { backgroundColor: "var(--grey-a8)" },
840
+ actionArea: {
841
+ backgroundColor: "var(--grey-9)",
842
+ backgroundImage: "linear-gradient(135.00deg, var(--grey-9) 0%, var(--grey-8) 100%)"
843
+ }
844
+ },
845
+ danger: {
846
+ default: {
847
+ backgroundColor: "var(--warning-9)",
848
+ backgroundImage: "linear-gradient(317.51deg, var(--warning-9) 0%, var(--warning-8) 100%)"
849
+ },
850
+ hover: { backgroundColor: "var(--warning-10)" },
851
+ active: { backgroundColor: "var(--warning-9)" },
852
+ disabled: { backgroundColor: "var(--warning-a10)" },
853
+ divider: { backgroundColor: "var(--warning-8)" },
854
+ actionArea: {
855
+ backgroundColor: "var(--warning-9)",
856
+ backgroundImage: "linear-gradient(317.51deg, var(--warning-9) 0%, var(--warning-8) 100%)"
857
+ }
858
+ }
859
+ },
860
+ switch: {
861
+ off: {
862
+ default: {
863
+ outer: {
864
+ backgroundColor: "var(--grey-3)",
865
+ backgroundImage: "linear-gradient(180.00deg, var(--primary-2) 0%, var(--primary-3) 100%)",
866
+ borderColor: "var(--grey-a8)",
867
+ border: "var(--grey-a8) 1px solid"
868
+ },
869
+ inner: {
870
+ backgroundColor: "var(--primary-7)",
871
+ backgroundImage: "linear-gradient(315.00deg, var(--primary-7) 0%, var(--primary-8) 100%)"
872
+ }
873
+ },
874
+ disabled: {
875
+ outer: {
876
+ backgroundColor: "var(--grey-1)",
877
+ backgroundImage: "linear-gradient(180.00deg, var(--grey-1)0%, var(--grey-1) 100%)",
878
+ borderColor: "var(--grey-a7)",
879
+ border: "var(--grey-a7) 1px solid"
880
+ },
881
+ inner: { backgroundColor: "var(--grey-7)" }
882
+ },
883
+ loading: { outer: {
884
+ backgroundColor: "var(--grey-3)",
885
+ backgroundImage: "linear-gradient(180.00deg, var(--grey-3) 0%, var(--primary-3) 100%)",
886
+ borderColor: "var(--grey-a8)",
887
+ border: "var(--grey-a8) 1px solid"
888
+ } }
889
+ },
890
+ on: {
891
+ default: {
892
+ outer: {
893
+ backgroundColor: "var(--primary-7)",
894
+ backgroundImage: "linear-gradient(317.51deg, var(--primary-7) 0%, var(--primary-7) 100%)",
895
+ borderColor: "var(--primary-8)",
896
+ border: "var(--primary-8) 1px solid"
897
+ },
898
+ inner: { backgroundColor: "var(--white-1)" }
899
+ },
900
+ disabled: {
901
+ outer: {
902
+ backgroundColor: "var(--primary-5)",
903
+ backgroundImage: "linear-gradient(180.00deg, var(--primary-5) 0%, var(--primary-5) 100%)",
904
+ borderColor: "var(--primary-6)",
905
+ border: "var(--primary-6) 1px solid"
906
+ },
907
+ inner: { backgroundColor: "var(--white-1)" }
908
+ },
909
+ loading: { outer: {
910
+ backgroundColor: "var(--primary-a7)",
911
+ backgroundImage: "linear-gradient(315.00deg, var(--primary-a7) 0%, var(--primary-a7) 100%)",
912
+ borderColor: "var(--primary-a8)",
913
+ border: "var(--primary-a8) 1px solid"
914
+ } }
915
+ },
916
+ failure: {
917
+ default: {
918
+ outer: {
919
+ backgroundColor: "var(--warning-9)",
920
+ backgroundImage: "linear-gradient(317.51deg, var(--warning-9) 0%, var(--warning-8) 100%)",
921
+ borderColor: "var(--warning-9)",
922
+ border: "var(--warning-9) 1px solid"
923
+ },
924
+ inner: { backgroundColor: "var(--white-1)" }
925
+ },
926
+ loading: {
927
+ outer: {
928
+ backgroundColor: "var(--warning-8)",
929
+ backgroundImage: "linear-gradient(317.51deg, var(--warning-8) 0.4%, var(--warning-8) 100%)",
930
+ borderColor: "var(--warning-8)",
931
+ border: "var(--warning-8) 1px solid"
932
+ },
933
+ inner: { backgroundColor: "var(--white-1)" }
934
+ }
935
+ },
936
+ danger: {
937
+ default: {
938
+ outer: {
939
+ backgroundColor: "var(--warning-11)",
940
+ backgroundImage: "linear-gradient(317.51deg, var(--warning-11) 0%, var(--warning-8) 100%)",
941
+ borderColor: "var(--warning-8)",
942
+ border: "var(--warning-8) 1px solid"
943
+ },
944
+ inner: { backgroundColor: "var(--white-1)" }
945
+ },
946
+ loading: { outer: {
947
+ backgroundColor: "var(--warning-8)",
948
+ backgroundImage: "linear-gradient(317.51deg, var(--warning-8) 0%, var(--warning-7) 100%)",
949
+ borderColor: "var(--warning-8)",
950
+ border: "var(--warning-8) 1px solid"
951
+ } },
952
+ disabled: {
953
+ outer: {
954
+ backgroundColor: "var(--warning-7)",
955
+ backgroundImage: "linear-gradient(317.51deg, var(--warning-7) 0%, var(--caution-6) 100%)",
956
+ borderColor: "var(--warning-6)",
957
+ border: "var(--warning-6) 1px solid"
958
+ },
959
+ inner: { backgroundColor: "var(--white-1)" }
960
+ }
961
+ },
962
+ locked: { default: {
963
+ outer: {
964
+ backgroundColor: "var(--grey-1) ",
965
+ backgroundImage: "linear-gradient(180.00deg, var(--grey-1) 0%, var(--grey-1) 100%)",
966
+ borderColor: "var(--grey-a8)",
967
+ border: "var(--grey-a8) 1px solid"
968
+ },
969
+ inner: { backgroundColor: "var(--grey-8)" }
970
+ } }
971
+ },
972
+ checkbox: {
973
+ unchecked: {
974
+ disabled: {
975
+ backgroundColor: "var(--grey-1)",
976
+ borderColor: "var(--grey-6)",
977
+ border: "var(--grey-6) 2px solid"
978
+ },
979
+ default: {
980
+ borderColor: "var(--grey-9)",
981
+ border: "var(--grey-9) 2px solid"
982
+ },
983
+ hover: {
984
+ borderColor: "var(--primary-8)",
985
+ border: "var(--primary-8) 2px solid"
986
+ }
987
+ },
988
+ checked: {
989
+ disabled: {
990
+ boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
991
+ backgroundColor: "var(--grey-6)"
992
+ },
993
+ default: {
994
+ boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
995
+ backgroundColor: "var(--primary-8)"
996
+ },
997
+ hover: {
998
+ boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
999
+ backgroundColor: "var(--primary-8)"
1000
+ }
1001
+ },
1002
+ indeterminate: {
1003
+ hover: {
1004
+ boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
1005
+ backgroundColor: "var(--primary-6)"
1006
+ },
1007
+ default: {
1008
+ boxShadow: "inset 0px 1px 5px 0px var(--grey-a1)",
1009
+ backgroundColor: "var(--primary-6)"
1010
+ }
1011
+ }
1012
+ }
1013
+ },
1014
+ indicators: { spinner: {
1015
+ danger: {
1016
+ base: {
1017
+ borderColor: "var(--warning-8)",
1018
+ border: "var(--warning-8) 3px solid"
1019
+ },
1020
+ top: {
1021
+ borderColor: "var(--white-1)",
1022
+ border: "var(--white-1) 3px solid"
1023
+ }
1024
+ },
1025
+ secondary: {
1026
+ top: {
1027
+ borderColor: "var(--white-1)",
1028
+ border: "var(--white-1) 3px solid"
1029
+ },
1030
+ base: {
1031
+ borderColor: "var(--grey-8)",
1032
+ border: "var(--grey-8) 3px solid"
1033
+ }
1034
+ },
1035
+ primary: {
1036
+ top: {
1037
+ borderColor: "var(--white-1)",
1038
+ border: "var(--white-1) 3px solid"
1039
+ },
1040
+ base: {
1041
+ borderColor: "var(--primary-6)",
1042
+ border: "var(--primary-6) 3px solid"
1043
+ }
1044
+ },
1045
+ simple: {
1046
+ top: {
1047
+ borderColor: "var(--white-1)",
1048
+ border: "var(--white-1) 3px solid"
1049
+ },
1050
+ base: {
1051
+ borderColor: "var(--grey-a8)",
1052
+ border: "var(--grey-a8) 3px solid"
1053
+ }
1054
+ }
1055
+ } },
1056
+ filters: {
1057
+ dropdownContainer: {
1058
+ background: {
1059
+ boxShadow: "0px 5px 25px 0px var(--primary-a1)",
1060
+ backgroundColor: "var(--grey-1)",
1061
+ borderColor: "var(--grey-6)",
1062
+ border: "var(--grey-6) 1px solid"
1063
+ },
1064
+ topBorder: { backgroundColor: "var(--primary-7)" }
1065
+ },
1066
+ filterButton: {
1067
+ default: {
1068
+ boxShadow: "0px 4px 9px 0px var(--primary-a1)",
1069
+ backgroundColor: "var(--grey-1)",
1070
+ borderColor: "var(--grey-7)",
1071
+ border: "var(--grey-7) 1px solid",
1072
+ textColor: "var(--grey-11)"
1073
+ },
1074
+ active: {
1075
+ boxShadow: "0px 4px 9px 0px var(--primary-a1)",
1076
+ backgroundColor: "var(--primary-7)",
1077
+ borderColor: "var(--primary-7)",
1078
+ border: "var(--primary-7) 1px solid",
1079
+ textColor: "var(--white-1)"
1080
+ },
1081
+ hover: {
1082
+ boxShadow: "0px 4px 9px 0px var(--primary-a1)",
1083
+ backgroundColor: "var(--primary-7)",
1084
+ borderColor: "var(--primary-7)",
1085
+ border: "var(--primary-7) 1px solid",
1086
+ textColor: "var(--white-1)"
1087
+ }
1088
+ },
1089
+ searchInput: {
1090
+ default: {
1091
+ boxShadow: "0px 4px 9px 0px var(--primary-a2)",
1092
+ backgroundColor: "var(--grey-1)",
1093
+ borderColor: "var(--grey-7)",
1094
+ border: "var(--grey-7) 1px solid"
1095
+ },
1096
+ focused: {
1097
+ boxShadow: "0px 4px 9px 0px var(--primary-a2)",
1098
+ backgroundColor: "var(--grey-1)",
1099
+ borderColor: "var(--primary-6)",
1100
+ border: "var(--primary-6) 1px solid"
1101
+ }
1102
+ }
1103
+ },
1104
+ tables: {
1105
+ loadingOverlay: {
1106
+ backgroundColor: "var(--grey-2)",
1107
+ backgroundImage: "linear-gradient(180.00deg, var(--grey-2) 0%, var(--grey-3) 100%)"
1108
+ },
1109
+ rows: { divider: { backgroundColor: colors.divider } },
1110
+ header: {
1111
+ groupLine: { backgroundColor: colors.divider },
1112
+ divider: { backgroundColor: colors.divider },
1113
+ sortable: {
1114
+ hover: { backgroundColor: "var(--grey-4)" },
1115
+ default: { backgroundColor: "var(--grey-2)" }
1116
+ }
1117
+ }
1118
+ },
1119
+ general: { divider: { backgroundColor: colors.divider } },
1120
+ feedbackBar: {
1121
+ neutral: { backgroundColor: colors.feedback.neutral },
1122
+ error: { backgroundColor: colors.feedback.error },
1123
+ info: { backgroundColor: colors.feedback.info },
1124
+ success: { backgroundColor: colors.feedback.success },
1125
+ warning: { backgroundColor: colors.feedback.warning }
1126
+ },
1127
+ filterButton: { active: {
1128
+ boxShadow: "0px 4px 9px 0px var(--primary-a1)",
1129
+ backgroundColor: "var(--grey-1)",
1130
+ borderColor: "var(--primary-7)",
1131
+ border: "var(--primary-7) 1px solid"
1132
+ } }
1133
+ },
1201
1134
  animation,
1202
- custom,
1135
+ custom: { lines: {
1136
+ primary: {
1137
+ label: { fill: "#fff" },
1138
+ contrastLine: { stroke: "hsla(205deg, 80%, 45%, 100%);" },
1139
+ highlightLine: { stroke: "hsla(205deg, 45%, 90%, 90%);" },
1140
+ highlightLineBorder: { stroke: "hsla(204.8,53.4%,46.3%,100%);" },
1141
+ grabHandle: {
1142
+ fill: "hsla(205deg, 45%, 90%, 100%)",
1143
+ stroke: "hsla(205deg, 45%, 100%, 100%)"
1144
+ },
1145
+ point: { fill: "hsla(205deg, 45%, 90%, 100%)" },
1146
+ grabHandleContrast: { stroke: "hsla(205deg, 80%, 45%, 100%)" },
1147
+ grabHandleText: { fill: "hsla(205deg, 80%, 25%, 100%);" },
1148
+ handleBase: { fill: "hsla(235deg, 100%, 80%, 100%);" },
1149
+ handleRingLayer: { stroke: "hsla(205deg, 100%, 89%, 100%);" },
1150
+ handleReactiveFill: { fill: "hsla(192deg, 100%, 45%, 100%);" },
1151
+ handleReactiveRing: { stroke: "hsla(205deg, 100%, 36%, 27%);" },
1152
+ handleContrastLayer: { stroke: "hsla(205deg, 100%, 36%, 15%);" },
1153
+ stopStart: { stopColor: " hsla(205deg, 100%, 15%, 35%);" },
1154
+ stopEnd: { stopColor: "hsla(205deg, 100%, 15%, 0%)" }
1155
+ },
1156
+ secondary: {
1157
+ label: { fill: "#fff" },
1158
+ contrastLine: { stroke: "hsla(120deg, 80%, 45%, 100%);" },
1159
+ highlightLine: { stroke: "hsla(120deg, 45%, 90%, 90%);" },
1160
+ highlightLineBorder: { stroke: "hsla(120deg, 81%, 70%, 90%);" },
1161
+ grabHandle: {
1162
+ fill: "hsla(120deg, 45%, 90%, 100%)",
1163
+ stroke: "hsla(120deg, 45%, 100%, 100%)"
1164
+ },
1165
+ point: { fill: "hsla(120deg, 45%, 90%, 100%)" },
1166
+ grabHandleContrast: { stroke: "hsla(120deg, 80%, 45%, 100%)" },
1167
+ grabHandleText: { fill: "hsla(120deg, 80%, 25%, 100%);" },
1168
+ handleBase: { fill: "hsla(150deg, 100%, 80%, 100%);" },
1169
+ handleRingLayer: { stroke: "hsla(120deg, 100%, 89%, 100%);" },
1170
+ handleReactiveFill: { fill: "hsla(108deg, 100%, 45%, 100%);" },
1171
+ handleReactiveRing: { stroke: "hsla(120deg, 100%, 36%, 27%);" },
1172
+ handleContrastLayer: { stroke: "hsla(120deg, 100%, 36%, 15%);" },
1173
+ stopStart: { stopColor: " hsla(120deg, 100%, 15%, 35%);" },
1174
+ stopEnd: { stopColor: "hsla(120deg, 100%, 15%, 0%)" }
1175
+ },
1176
+ danger: {
1177
+ label: { fill: "#fff" },
1178
+ contrastLine: { stroke: "hsla(0, 80%, 45%, 100%);" },
1179
+ highlightLine: { stroke: "hsla(0, 45%, 90%, 90%);" },
1180
+ highlightLineBorder: { stroke: "hsla(0deg, 86%, 70%, 100%);" },
1181
+ grabHandle: {
1182
+ fill: "hsla(0, 45%, 90%, 100%)",
1183
+ stroke: "hsla(0, 45%, 100%, 100%)"
1184
+ },
1185
+ point: { fill: "hsla(0, 45%, 90%, 100%)" },
1186
+ grabHandleText: { fill: "hsla(0, 80%, 25%, 100%);" },
1187
+ grabHandleContrast: { stroke: "hsla(0, 80%, 45%, 100%)" },
1188
+ handleBase: { fill: "hsla(30deg, 100%, 80%, 100%);" },
1189
+ handleRingLayer: { stroke: "hsla(0, 100%, 89%, 100%);" },
1190
+ handleReactiveFill: { fill: "hsla(348deg, 100%, 45%, 100%);" },
1191
+ handleReactiveRing: { stroke: "hsla(0deg, 100%, 36%, 27%);" },
1192
+ handleContrastLayer: { stroke: "hsla(0deg, 100%, 36%, 15%);" },
1193
+ stopStart: { stopColor: " hsla(0, 100%, 15%, 35%);" },
1194
+ stopEnd: { stopColor: "hsla(0, 100%, 15%, 0%);" }
1195
+ }
1196
+ } },
1203
1197
  deviceSize,
1204
1198
  deviceMediaQuery
1205
1199
  };
@@ -3498,12 +3492,6 @@ function SvgNoImage() {
3498
3492
  }
3499
3493
  //#endregion
3500
3494
  //#region src/Form/atoms/Checkbox.tsx
3501
- var CheckboxState = /* @__PURE__ */ function(CheckboxState) {
3502
- CheckboxState["Off"] = "off";
3503
- CheckboxState["On"] = "on";
3504
- CheckboxState["Indeterminate"] = "indeterminate";
3505
- return CheckboxState;
3506
- }(CheckboxState || {});
3507
3495
  var RealInput$1 = styled.input`
3508
3496
  display: none;
3509
3497
  `;
@@ -3554,7 +3542,7 @@ var Container$67 = styled.label`
3554
3542
  border: var(--input-toggle-unchecked-border-color) 2px solid;
3555
3543
  }
3556
3544
 
3557
- ${({ $visualState, $disabled }) => $visualState === CheckboxState.Off && css`
3545
+ ${({ $visualState, $disabled }) => $visualState === "off" && css`
3558
3546
  /* Unchecked */
3559
3547
  ${CheckboxOuter}{
3560
3548
  background-color: var(--input-toggle-unchecked-background-color);
@@ -3579,7 +3567,7 @@ var Container$67 = styled.label`
3579
3567
  `}
3580
3568
  `}
3581
3569
 
3582
- ${({ $visualState, $disabled }) => $visualState === CheckboxState.On && css`
3570
+ ${({ $visualState, $disabled }) => $visualState === "on" && css`
3583
3571
  /* Checked */
3584
3572
  ${CheckboxOuter}{
3585
3573
  background-color: var(--input-toggle-checked-background-color);
@@ -3605,7 +3593,7 @@ var Container$67 = styled.label`
3605
3593
  `}
3606
3594
  `}
3607
3595
 
3608
- ${({ $visualState, $disabled }) => $visualState === CheckboxState.Indeterminate && css`
3596
+ ${({ $visualState, $disabled }) => $visualState === "indeterminate" && css`
3609
3597
  ${CheckboxOuter}{
3610
3598
  background-color: var(--input-toggle-intermediate-background-color);
3611
3599
  border-color: var(--input-toggle-intermediate-border-color);
@@ -3632,14 +3620,14 @@ var Container$67 = styled.label`
3632
3620
  `;
3633
3621
  var Checkbox = ({ indeterminate: _indeterminate = false, disabled, checked = false, onChangeCallback }) => {
3634
3622
  const [isChecked, setIsChecked] = useState(checked);
3635
- const [visualState, setVisualState] = useState(checked ? CheckboxState.On : CheckboxState.Off);
3623
+ const [visualState, setVisualState] = useState(checked ? "on" : "off");
3636
3624
  const customOnChange = (e) => {
3637
3625
  const checked = e.target.checked;
3638
3626
  setIsChecked(checked);
3639
3627
  if (onChangeCallback) onChangeCallback(checked);
3640
3628
  };
3641
3629
  useEffect(() => {
3642
- setVisualState(checked ? CheckboxState.On : CheckboxState.Off);
3630
+ setVisualState(checked ? "on" : "off");
3643
3631
  }, [checked]);
3644
3632
  useEffect(() => {
3645
3633
  setIsChecked(checked);
@@ -3649,7 +3637,7 @@ var Checkbox = ({ indeterminate: _indeterminate = false, disabled, checked = fal
3649
3637
  onChange: customOnChange,
3650
3638
  $disabled: disabled,
3651
3639
  $visualState: visualState,
3652
- children: [/* @__PURE__ */ jsx(CheckboxOuter, { children: /* @__PURE__ */ jsx(CheckboxInner, { children: visualState === CheckboxState.On ? /* @__PURE__ */ jsx(IconWrapper$3, {
3640
+ children: [/* @__PURE__ */ jsx(CheckboxOuter, { children: /* @__PURE__ */ jsx(CheckboxInner, { children: visualState === "on" ? /* @__PURE__ */ jsx(IconWrapper$3, {
3653
3641
  $color: "input-toggle-icon-color",
3654
3642
  children: /* @__PURE__ */ jsx(CheckMark, {
3655
3643
  color: "input-toggle-icon-color",
@@ -4228,7 +4216,7 @@ var SelectField = ({ fieldState = "default", placeholder, label, icon, isCompact
4228
4216
  if (props.disabled || fieldState === "disabled") return "input-disabled-lead-icon";
4229
4217
  else return "input-lead-icon";
4230
4218
  }, [fieldState, props.disabled]);
4231
- const renderSelect = useCallback((htmlFor) => /* @__PURE__ */ jsxs(SelectWrapper, { children: [
4219
+ const renderSelect = (htmlFor) => /* @__PURE__ */ jsxs(SelectWrapper, { children: [
4232
4220
  icon && /* @__PURE__ */ jsx(SubjectIcon, {
4233
4221
  $isCompact: isCompact,
4234
4222
  children: /* @__PURE__ */ jsx(Icon, {
@@ -4262,17 +4250,7 @@ var SelectField = ({ fieldState = "default", placeholder, label, icon, isCompact
4262
4250
  size: isCompact ? 8 : 10
4263
4251
  })
4264
4252
  })
4265
- ] }), [
4266
- children,
4267
- defaultValue,
4268
- handleOnChange,
4269
- placeholder,
4270
- props,
4271
- fieldState,
4272
- icon,
4273
- iconColor,
4274
- isCompact
4275
- ]);
4253
+ ] });
4276
4254
  return /* @__PURE__ */ jsx(Container$62, {
4277
4255
  $isCompact: isCompact,
4278
4256
  $activePlaceholder: activePlaceholder,
@@ -4664,19 +4642,12 @@ var SmallInput = ({ unit, label, name, type = "text", placeholder = "", defaultV
4664
4642
  };
4665
4643
  //#endregion
4666
4644
  //#region src/Form/atoms/Switch.tsx
4667
- var SwitchPosition = /* @__PURE__ */ function(SwitchPosition) {
4668
- SwitchPosition[SwitchPosition["Off"] = 0] = "Off";
4669
- SwitchPosition[SwitchPosition["On"] = 1] = "On";
4670
- SwitchPosition[SwitchPosition["Neutral"] = 2] = "Neutral";
4671
- SwitchPosition[SwitchPosition["Locked"] = 3] = "Locked";
4672
- return SwitchPosition;
4673
- }(SwitchPosition || {});
4674
4645
  var getPositionKey = (switchPos) => {
4675
4646
  switch (switchPos) {
4676
- case SwitchPosition.Off: return "off";
4677
- case SwitchPosition.On: return "on";
4678
- case SwitchPosition.Neutral: return "neutral";
4679
- case SwitchPosition.Locked: return "locked";
4647
+ case 0: return "off";
4648
+ case 1: return "on";
4649
+ case 2: return "neutral";
4650
+ case 3: return "locked";
4680
4651
  default: return "off";
4681
4652
  }
4682
4653
  };
@@ -4808,7 +4779,7 @@ var Container$60 = styled(StyledLabel)`
4808
4779
 
4809
4780
  &:hover {
4810
4781
  ${SwitchInner}{
4811
- left: ${({ $useIntent, $position }) => $useIntent && $position === SwitchPosition.Off && "calc(var(--position-off) + var(--switch-intent-offset))" || $useIntent && $position === SwitchPosition.On && "calc(var(--position-on) - var(--switch-intent-offset))"};
4782
+ left: ${({ $useIntent, $position }) => $useIntent && $position === 0 && "calc(var(--position-off) + var(--switch-intent-offset))" || $useIntent && $position === 1 && "calc(var(--position-on) - var(--switch-intent-offset))"};
4812
4783
  }
4813
4784
  }
4814
4785
  `;
@@ -4818,7 +4789,7 @@ var isTypeSwitchState = (value) => {
4818
4789
  var Switch = ({ state = "default", leftTheme = "off", rightTheme = "on", labelText, onChangeCallback, checked, defaultChecked = false }) => {
4819
4790
  const isControlled = checked !== void 0;
4820
4791
  const initialChecked = isControlled ? checked : defaultChecked;
4821
- const initialPosition = initialChecked ? SwitchPosition.On : SwitchPosition.Off;
4792
+ const initialPosition = initialChecked ? 1 : 0;
4822
4793
  const initialTheme = initialChecked ? rightTheme : leftTheme;
4823
4794
  const [internalChecked, setInternalChecked] = useState(defaultChecked);
4824
4795
  const inputRef = useRef(null);
@@ -4830,11 +4801,11 @@ var Switch = ({ state = "default", leftTheme = "off", rightTheme = "on", labelTe
4830
4801
  const [innerSize, setInnerSize] = useState(0);
4831
4802
  const updateSwitchPositionAndTheme = useCallback(() => {
4832
4803
  if (isControlled) {
4833
- setPosition(checked ? SwitchPosition.On : SwitchPosition.Off);
4804
+ setPosition(checked ? 1 : 0);
4834
4805
  setActiveTheming(checked ? rightTheme : leftTheme);
4835
4806
  } else if (inputRef.current) {
4836
4807
  inputRef.current.checked = internalChecked;
4837
- setPosition(internalChecked ? SwitchPosition.On : SwitchPosition.Off);
4808
+ setPosition(internalChecked ? 1 : 0);
4838
4809
  setActiveTheming(internalChecked ? rightTheme : leftTheme);
4839
4810
  }
4840
4811
  }, [
@@ -4849,10 +4820,10 @@ var Switch = ({ state = "default", leftTheme = "off", rightTheme = "on", labelTe
4849
4820
  }, [updateSwitchPositionAndTheme]);
4850
4821
  const positionSwitch = useCallback(() => {
4851
4822
  if (isControlled) {
4852
- setPosition(checked ? SwitchPosition.On : SwitchPosition.Off);
4823
+ setPosition(checked ? 1 : 0);
4853
4824
  setActiveTheming(checked ? rightTheme : leftTheme);
4854
4825
  } else {
4855
- setPosition(internalChecked ? SwitchPosition.On : SwitchPosition.Off);
4826
+ setPosition(internalChecked ? 1 : 0);
4856
4827
  setActiveTheming(internalChecked ? rightTheme : leftTheme);
4857
4828
  }
4858
4829
  }, [
@@ -4885,8 +4856,8 @@ var Switch = ({ state = "default", leftTheme = "off", rightTheme = "on", labelTe
4885
4856
  * things get updated. (i.e. in StoryBook)
4886
4857
  */
4887
4858
  const updateThemeChoice = useCallback(() => {
4888
- if (position === SwitchPosition.On) setActiveTheming(rightTheme);
4889
- else if (position === SwitchPosition.Off) setActiveTheming(leftTheme);
4859
+ if (position === 1) setActiveTheming(rightTheme);
4860
+ else if (position === 0) setActiveTheming(leftTheme);
4890
4861
  }, [
4891
4862
  position,
4892
4863
  rightTheme,
@@ -4902,10 +4873,10 @@ var Switch = ({ state = "default", leftTheme = "off", rightTheme = "on", labelTe
4902
4873
  /** Watch for locking prop. */
4903
4874
  useEffect(() => {
4904
4875
  if (state === "locked") {
4905
- setPosition(SwitchPosition.Locked);
4876
+ setPosition(3);
4906
4877
  setActiveTheming("locked");
4907
4878
  } else if (state === "failure") {
4908
- setPosition(SwitchPosition.Neutral);
4879
+ setPosition(2);
4909
4880
  setActiveTheming("failure");
4910
4881
  } else positionSwitch();
4911
4882
  }, [state, positionSwitch]);
@@ -7536,53 +7507,53 @@ var InputWrap = styled.div`
7536
7507
  }
7537
7508
  }
7538
7509
  `;
7539
- var DateTimeBlock = ({ allowAfterMidnight = false, title, hasDate, hasTime, isTimeRangeValid = true, date = /* @__PURE__ */ new Date(), setDateCallback = () => {} }) => {
7540
- /**
7541
- *
7542
- * Description of the rules can be found int https://docs.google.com/spreadsheets/d/1POe9uZxKXtLhQFF6DIV-RclUp7T7oXgSeSLlbYmE38g/edit?usp=sharing
7543
- */
7544
- const validHourMin = (textHour, textMin, hasDate, allowAfterMidnight) => {
7545
- const intHour = Number(textHour.slice(-2));
7546
- const intMin = Number(textMin.slice(-2));
7547
- const newHour = intHour > 24 ? Number(textHour.slice(-1)) : intHour;
7548
- const newMin = intMin > 60 ? Number(textMin.slice(-1)) : intMin;
7549
- if (newHour >= 24 && newMin !== -1 && allowAfterMidnight) return {
7550
- newHour: 24,
7551
- newMin: 0
7552
- };
7553
- if (newHour === 0 && newMin === 0 && allowAfterMidnight && !hasDate) return {
7554
- newHour: 0,
7555
- newMin: 1
7556
- };
7557
- if (newHour === 23 && newMin === 60 && !allowAfterMidnight) return {
7558
- newHour: 23,
7559
- newMin: 59
7560
- };
7561
- if (newHour >= 24 && !allowAfterMidnight) return {
7562
- newHour: 23,
7563
- newMin
7564
- };
7565
- if (newMin === 60) return {
7566
- newHour: newHour + 1,
7567
- newMin: 0
7568
- };
7569
- if (newHour > 0 && newMin === -1) return {
7570
- newHour: newHour - 1,
7571
- newMin: 59
7572
- };
7573
- if (newHour === 0 && newMin === -1) return {
7574
- newHour,
7575
- newMin: 0
7576
- };
7577
- if (newHour === -1) return {
7578
- newHour: 0,
7579
- newMin
7580
- };
7581
- return {
7582
- newHour,
7583
- newMin
7584
- };
7510
+ /**
7511
+ *
7512
+ * Description of the rules can be found int https://docs.google.com/spreadsheets/d/1POe9uZxKXtLhQFF6DIV-RclUp7T7oXgSeSLlbYmE38g/edit?usp=sharing
7513
+ */
7514
+ var validHourMin = (textHour, textMin, hasDate, allowAfterMidnight) => {
7515
+ const intHour = Number(textHour.slice(-2));
7516
+ const intMin = Number(textMin.slice(-2));
7517
+ const newHour = intHour > 24 ? Number(textHour.slice(-1)) : intHour;
7518
+ const newMin = intMin > 60 ? Number(textMin.slice(-1)) : intMin;
7519
+ if (newHour >= 24 && newMin !== -1 && allowAfterMidnight) return {
7520
+ newHour: 24,
7521
+ newMin: 0
7585
7522
  };
7523
+ if (newHour === 0 && newMin === 0 && allowAfterMidnight && !hasDate) return {
7524
+ newHour: 0,
7525
+ newMin: 1
7526
+ };
7527
+ if (newHour === 23 && newMin === 60 && !allowAfterMidnight) return {
7528
+ newHour: 23,
7529
+ newMin: 59
7530
+ };
7531
+ if (newHour >= 24 && !allowAfterMidnight) return {
7532
+ newHour: 23,
7533
+ newMin
7534
+ };
7535
+ if (newMin === 60) return {
7536
+ newHour: newHour + 1,
7537
+ newMin: 0
7538
+ };
7539
+ if (newHour > 0 && newMin === -1) return {
7540
+ newHour: newHour - 1,
7541
+ newMin: 59
7542
+ };
7543
+ if (newHour === 0 && newMin === -1) return {
7544
+ newHour,
7545
+ newMin: 0
7546
+ };
7547
+ if (newHour === -1) return {
7548
+ newHour: 0,
7549
+ newMin
7550
+ };
7551
+ return {
7552
+ newHour,
7553
+ newMin
7554
+ };
7555
+ };
7556
+ var DateTimeBlock = ({ allowAfterMidnight = false, title, hasDate, hasTime, isTimeRangeValid = true, date = /* @__PURE__ */ new Date(), setDateCallback = () => {} }) => {
7586
7557
  const [displayHours, setDisplayHours] = useState(format(date, "mm"));
7587
7558
  const [displayMinutes, setDisplayMinutes] = useState(format(date, "HH"));
7588
7559
  const setDateHours = useCallback(({ target: { value } }) => {
@@ -7599,8 +7570,7 @@ var DateTimeBlock = ({ allowAfterMidnight = false, title, hasDate, hasTime, isTi
7599
7570
  date,
7600
7571
  displayMinutes,
7601
7572
  hasDate,
7602
- setDateCallback,
7603
- validHourMin
7573
+ setDateCallback
7604
7574
  ]);
7605
7575
  const setDateMinutes = useCallback(({ target: { value } }) => {
7606
7576
  if (isNotNumber(value)) return;
@@ -7616,8 +7586,7 @@ var DateTimeBlock = ({ allowAfterMidnight = false, title, hasDate, hasTime, isTi
7616
7586
  date,
7617
7587
  displayHours,
7618
7588
  hasDate,
7619
- setDateCallback,
7620
- validHourMin
7589
+ setDateCallback
7621
7590
  ]);
7622
7591
  useEffect(() => {
7623
7592
  if (allowAfterMidnight && isEqual(date, endOfDay(date))) {
@@ -7965,22 +7934,64 @@ var CalCellB = styled(CalCell)`
7965
7934
 
7966
7935
  `;
7967
7936
  var enDayGuide = [
7968
- "S",
7969
- "M",
7970
- "T",
7971
- "W",
7972
- "T",
7973
- "F",
7974
- "S"
7937
+ {
7938
+ key: "sun",
7939
+ label: "S"
7940
+ },
7941
+ {
7942
+ key: "mon",
7943
+ label: "M"
7944
+ },
7945
+ {
7946
+ key: "tue",
7947
+ label: "T"
7948
+ },
7949
+ {
7950
+ key: "wed",
7951
+ label: "W"
7952
+ },
7953
+ {
7954
+ key: "thu",
7955
+ label: "T"
7956
+ },
7957
+ {
7958
+ key: "fri",
7959
+ label: "F"
7960
+ },
7961
+ {
7962
+ key: "sat",
7963
+ label: "S"
7964
+ }
7975
7965
  ];
7976
7966
  var jpDayGuide = [
7977
- "日",
7978
- "",
7979
- "",
7980
- "水",
7981
- "木",
7982
- "",
7983
- ""
7967
+ {
7968
+ key: "sun",
7969
+ label: ""
7970
+ },
7971
+ {
7972
+ key: "mon",
7973
+ label: ""
7974
+ },
7975
+ {
7976
+ key: "tue",
7977
+ label: "火"
7978
+ },
7979
+ {
7980
+ key: "wed",
7981
+ label: "水"
7982
+ },
7983
+ {
7984
+ key: "thu",
7985
+ label: "木"
7986
+ },
7987
+ {
7988
+ key: "fri",
7989
+ label: "金"
7990
+ },
7991
+ {
7992
+ key: "sat",
7993
+ label: "土"
7994
+ }
7984
7995
  ];
7985
7996
  var DatePicker = ({ dateMode = "interval", timeMode = "interval", dateTimeTextUpper = "From", dateTimeTextLower = "To", timeZoneTitle = "Timezone", timeZoneValueTitle = "JST", hasEmptyValue = false, updateCallback = () => {}, initialValue, availableRange, contentDays, lang = "en", cancelText = "Cancel", applyText = "Apply", hasApply = false, disableApply = false, applyCallback = () => {}, cancelCallback = () => {} }) => {
7986
7997
  const [selectedRange, setSelectedRange] = useState(getInitialValue(hasEmptyValue, initialValue));
@@ -8104,8 +8115,8 @@ var DatePicker = ({ dateMode = "interval", timeMode = "interval", dateTimeTextUp
8104
8115
  }) })]
8105
8116
  })
8106
8117
  ] }),
8107
- /* @__PURE__ */ jsx(CalHRow, { children: dayGuide.map((day) => {
8108
- return /* @__PURE__ */ jsx(CalHCell, { children: day }, day);
8118
+ /* @__PURE__ */ jsx(CalHRow, { children: dayGuide.map(({ key, label }) => {
8119
+ return /* @__PURE__ */ jsx(CalHCell, { children: label }, key);
8109
8120
  }) }),
8110
8121
  /* @__PURE__ */ jsx(CalBody, { children: weeksOfMonth.map((week) => {
8111
8122
  return /* @__PURE__ */ jsx(CalRow, { children: eachDayOfInterval({
@@ -10728,7 +10739,7 @@ var IntroductionText = ({ children }) => {
10728
10739
  //#region src/Pages/atoms/PageTitle.tsx
10729
10740
  var ICON_SIZE = 24;
10730
10741
  var GAP_LEFT = 20;
10731
- var ICON_MARGIN_LEFT = -GAP_LEFT - ICON_SIZE;
10742
+ var ICON_MARGIN_LEFT = -20 - ICON_SIZE;
10732
10743
  var Container$30 = styled.div`
10733
10744
  position: relative;
10734
10745
  display: flex;