@redsift/design-system 9.6.0 → 10.0.0-alpha.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.
- package/CONTRIBUTING.md +2 -2
- package/index.d.ts +934 -173
- package/index.js +1709 -670
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/style/index.css +736 -145
- package/style/redsift-design-tokens.css +727 -136
- package/style/redsift-style.css +9 -9
- package/style/redsift.css +736 -145
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { I18nProvider, useCollator, useDateFormatter, useFilter, useListFormatte
|
|
|
3
3
|
export { SSRProvider, useIsSSR } from '@react-aria/ssr';
|
|
4
4
|
import { rsiAsmHorizontal, rsiBrandTrustHorizontal, rsiCertificatesHorizontal, rsiOndmarcHorizontal, rsiPulseHorizontal, rsiRadarHorizontal, rsiRojoDsHorizontal, rsiVendorSecureHorizontal, rsiRedSiftHorizontal, mdiClose as mdiClose$1, mdiAlert, mdiCheckCircle, mdiAlertCircle, mdiInformation, mdiMenu, mdiChevronDown, mdiMenuOpen, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import React__default, { useState, useEffect, forwardRef, useRef, useCallback,
|
|
6
|
+
import React__default, { useState, useEffect, useContext, forwardRef, useRef, useCallback, useReducer, useMemo, useLayoutEffect } from 'react';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import styled, { css, keyframes } from 'styled-components';
|
|
9
9
|
import { useFocusRing } from '@react-aria/focus';
|
|
@@ -53,43 +53,6 @@ const ProductLogo = {
|
|
|
53
53
|
website: rsiRedSiftHorizontal
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
* Color palette.
|
|
58
|
-
*/
|
|
59
|
-
const CtasColorPalette = {
|
|
60
|
-
primary: 'primary',
|
|
61
|
-
secondary: 'secondary'
|
|
62
|
-
};
|
|
63
|
-
const NotificationsColorPalette = {
|
|
64
|
-
success: 'success',
|
|
65
|
-
error: 'error',
|
|
66
|
-
warning: 'warning',
|
|
67
|
-
info: 'info',
|
|
68
|
-
question: 'question',
|
|
69
|
-
'no-data': 'no-data'
|
|
70
|
-
};
|
|
71
|
-
const ProductColorPalette = Product;
|
|
72
|
-
const PresentationColorPalette = {
|
|
73
|
-
green: 'green',
|
|
74
|
-
pink: 'pink',
|
|
75
|
-
aqua: 'aqua',
|
|
76
|
-
brown: 'brown',
|
|
77
|
-
red: 'red',
|
|
78
|
-
yellow: 'yellow',
|
|
79
|
-
purple: 'purple',
|
|
80
|
-
orange: 'orange',
|
|
81
|
-
blue: 'blue',
|
|
82
|
-
grey: 'grey'
|
|
83
|
-
};
|
|
84
|
-
const NeutralColorPalette = {
|
|
85
|
-
black: 'black',
|
|
86
|
-
darkgrey: 'darkgrey',
|
|
87
|
-
midgrey: 'midgrey',
|
|
88
|
-
lightgrey: 'lightgrey',
|
|
89
|
-
xlightgrey: 'xlightgrey',
|
|
90
|
-
white: 'white'
|
|
91
|
-
};
|
|
92
|
-
|
|
93
56
|
function ownKeys(object, enumerableOnly) {
|
|
94
57
|
var keys = Object.keys(object);
|
|
95
58
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -181,6 +144,62 @@ function _toPropertyKey(arg) {
|
|
|
181
144
|
return typeof key === "symbol" ? key : String(key);
|
|
182
145
|
}
|
|
183
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Color palette.
|
|
149
|
+
*/
|
|
150
|
+
const Theme = {
|
|
151
|
+
light: 'light',
|
|
152
|
+
dark: 'dark'
|
|
153
|
+
};
|
|
154
|
+
const PrimaryColorPalette = {
|
|
155
|
+
primary: 'primary',
|
|
156
|
+
secondary: 'secondary',
|
|
157
|
+
error: 'error'
|
|
158
|
+
};
|
|
159
|
+
const SecondaryColorPalette = {
|
|
160
|
+
success: 'success',
|
|
161
|
+
warning: 'warning',
|
|
162
|
+
info: 'info'
|
|
163
|
+
};
|
|
164
|
+
const ColorPalette = _objectSpread2(_objectSpread2({}, PrimaryColorPalette), SecondaryColorPalette);
|
|
165
|
+
const PrimaryButtonsColorPalette = {
|
|
166
|
+
primary: 'primary',
|
|
167
|
+
secondary: 'secondary',
|
|
168
|
+
error: 'error',
|
|
169
|
+
success: 'success',
|
|
170
|
+
warning: 'warning',
|
|
171
|
+
grey: 'grey'
|
|
172
|
+
};
|
|
173
|
+
const ButtonsColorPalette = _objectSpread2(_objectSpread2({}, PrimaryButtonsColorPalette), {}, {
|
|
174
|
+
info: 'info'
|
|
175
|
+
});
|
|
176
|
+
const NotificationsColorPalette = _objectSpread2(_objectSpread2({}, ColorPalette), {}, {
|
|
177
|
+
question: 'question',
|
|
178
|
+
'no-data': 'no-data'
|
|
179
|
+
});
|
|
180
|
+
const ProductColorPalette = Product;
|
|
181
|
+
const PresentationColorPalette = {
|
|
182
|
+
green: 'green',
|
|
183
|
+
pink: 'pink',
|
|
184
|
+
aqua: 'aqua',
|
|
185
|
+
brown: 'brown',
|
|
186
|
+
red: 'red',
|
|
187
|
+
yellow: 'yellow',
|
|
188
|
+
purple: 'purple',
|
|
189
|
+
orange: 'orange',
|
|
190
|
+
blue: 'blue',
|
|
191
|
+
grey: 'grey'
|
|
192
|
+
};
|
|
193
|
+
const NeutralColorPalette = {
|
|
194
|
+
black: 'black',
|
|
195
|
+
'x-dark-grey': 'x-dark-grey',
|
|
196
|
+
'dark-grey': 'dark-grey',
|
|
197
|
+
'mid-grey': 'mid-grey',
|
|
198
|
+
'light-grey': 'light-grey',
|
|
199
|
+
'x-light-grey': 'x-light-grey',
|
|
200
|
+
white: 'white'
|
|
201
|
+
};
|
|
202
|
+
|
|
184
203
|
const AlignSelf = {
|
|
185
204
|
auto: 'auto',
|
|
186
205
|
normal: 'normal',
|
|
@@ -424,85 +443,685 @@ function partitionComponents(components, predicates) {
|
|
|
424
443
|
|
|
425
444
|
/**
|
|
426
445
|
* Do not edit directly
|
|
427
|
-
* Generated on Wed,
|
|
428
|
-
*/
|
|
429
|
-
|
|
430
|
-
const
|
|
446
|
+
* Generated on Wed, 06 Mar 2024 15:52:38 GMT
|
|
447
|
+
*/
|
|
448
|
+
|
|
449
|
+
const RedsiftColorDarkComponentsPageBackground = '#333333';
|
|
450
|
+
const RedsiftColorDarkComponentsTextPrimary = '#ffffff';
|
|
451
|
+
const RedsiftColorDarkComponentsTextSecondary = '#f2f2f2';
|
|
452
|
+
const RedsiftColorDarkComponentsRedSiftLogoTextRed = '#ffffff';
|
|
453
|
+
const RedsiftColorDarkComponentsRedSiftLogoTextWhite = '#ffffff';
|
|
454
|
+
const RedsiftColorDarkComponentsRedSiftLogoTextGrey = '#ffffff';
|
|
455
|
+
const RedsiftColorDarkComponentsRedSiftLogoIconBackground = '#ffffff';
|
|
456
|
+
const RedsiftColorDarkComponentsRedSiftLogoIconR = '#e11010';
|
|
457
|
+
const RedsiftColorDarkComponentsRedSiftLogoDiamondTopRight = '#ffb3b3';
|
|
458
|
+
const RedsiftColorDarkComponentsRedSiftLogoDiamondBottomLeft = '#e24e4e';
|
|
459
|
+
const RedsiftColorDarkComponentsRedSiftLogoDiamondBottomRight = '#ff8181';
|
|
460
|
+
const RedsiftColorDarkComponentsRedSiftLogoDiamondDark = '#e24e4e';
|
|
461
|
+
const RedsiftColorDarkComponentsRedSiftLogoDiamondMid = '#ff8181';
|
|
462
|
+
const RedsiftColorDarkComponentsRedSiftLogoDiamondLight = '#ffb3b3';
|
|
463
|
+
const RedsiftColorDarkComponentsProductLogosTextGrey = '#ffffff';
|
|
464
|
+
const RedsiftColorDarkComponentsProductLogosTextRed = '#ffffff';
|
|
465
|
+
const RedsiftColorDarkComponentsProductLogosTextWhite = '#ffffff';
|
|
466
|
+
const RedsiftColorDarkComponentsProductLogosIconRed = '#e11010';
|
|
467
|
+
const RedsiftColorDarkComponentsProductLogosIconGrey = '#ffffff';
|
|
468
|
+
const RedsiftColorDarkComponentsSideNavigationBackground = '#474747';
|
|
469
|
+
const RedsiftColorDarkComponentsSideNavigationMenuItemTextResting = '#f2f2f2';
|
|
470
|
+
const RedsiftColorDarkComponentsSideNavigationMenuItemTextDisabled = '#666666';
|
|
471
|
+
const RedsiftColorDarkComponentsSideNavigationMenuItemTextHover = '#ffffff';
|
|
472
|
+
const RedsiftColorDarkComponentsSideNavigationMenuItemBackgroundHover = '#666666';
|
|
473
|
+
const RedsiftColorDarkComponentsSideNavigationMenuItemBackgroundSecondary = 'transparent';
|
|
474
|
+
const RedsiftColorDarkComponentsSideNavigationMenuItemBackgroundActive = '#e0e0e0';
|
|
475
|
+
const RedsiftColorDarkComponentsSideNavigationMenuItemActive = '#1c1c1c';
|
|
476
|
+
const RedsiftColorDarkComponentsSideNavigationScrollbarResting = '#666666';
|
|
477
|
+
const RedsiftColorDarkComponentsSideNavigationScrollbarHover = '#666666';
|
|
478
|
+
const RedsiftColorDarkComponentsSideNavigationRightLine = '#1c1c1c';
|
|
479
|
+
const RedsiftColorDarkComponentsSideNavigationCurrentMarker = '#f2f2f2';
|
|
480
|
+
const RedsiftColorDarkComponentsAppBarBackground = '#333333';
|
|
481
|
+
const RedsiftColorDarkComponentsAppBarBreadcrumbDefault = '#ffffff';
|
|
482
|
+
const RedsiftColorDarkComponentsAppBarBreadcrumbHover = '#142849';
|
|
483
|
+
const RedsiftColorDarkComponentsAppBarBreadcrumbDown = '#0d1b31';
|
|
484
|
+
const RedsiftColorDarkComponentsAppBarIconBackgroundHover = '#666666';
|
|
485
|
+
const RedsiftColorDarkComponentsAppBarIconBackgroundDown = '#e0e0e0';
|
|
486
|
+
const RedsiftColorDarkComponentsAppBarIconBackgroundActive = '#666666';
|
|
487
|
+
const RedsiftColorDarkComponentsAppBarIconBackgroundActiveHover = '#e0e0e0';
|
|
488
|
+
const RedsiftColorDarkComponentsAppBarIconBackgroundActiveDown = '#e0e0e0';
|
|
489
|
+
const RedsiftColorDarkComponentsAppBarBorder = '#1c1c1c';
|
|
490
|
+
const RedsiftColorDarkComponentsTooltipBackground = '#666666';
|
|
491
|
+
const RedsiftColorDarkComponentsTooltipText = '#ffffff';
|
|
492
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundDefault = '#4285f4';
|
|
493
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundHover = '#3b78dc';
|
|
494
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundActive = '#2e5dab';
|
|
495
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundDisabled = '#474747';
|
|
496
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextDefault = '#ffffff';
|
|
497
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextHover = '#ffffff';
|
|
498
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextActive = '#ffffff';
|
|
499
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextDisabled = '#858585';
|
|
500
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundDefault = '#51b7a4';
|
|
501
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundHover = '#49a594';
|
|
502
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundActive = '#398073';
|
|
503
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundDisabled = '#474747';
|
|
504
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextDefault = '#ffffff';
|
|
505
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextHover = '#ffffff';
|
|
506
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextActive = '#ffffff';
|
|
507
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextDisabled = '#858585';
|
|
508
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundDefault = '#02ac61';
|
|
509
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundHover = '#029b57';
|
|
510
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundActive = '#017844';
|
|
511
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundDisabled = '#474747';
|
|
512
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextDefault = '#ffffff';
|
|
513
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextHover = '#ffffff';
|
|
514
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextActive = '#ffffff';
|
|
515
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextDisabled = '#858585';
|
|
516
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundDefault = '#e11010';
|
|
517
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundHover = '#cb0e0e';
|
|
518
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundActive = '#9e0b0b';
|
|
519
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundDisabled = '#474747';
|
|
520
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextDefault = '#ffffff';
|
|
521
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextHover = '#ffffff';
|
|
522
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextActive = '#ffffff';
|
|
523
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextDisabled = '#858585';
|
|
524
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundDefault = '#fcbb54';
|
|
525
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundHover = '#e3a84c';
|
|
526
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundActive = '#b0833b';
|
|
527
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundDisabled = '#474747';
|
|
528
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextDefault = '#ffffff';
|
|
529
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextHover = '#ffffff';
|
|
530
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextActive = '#ffffff';
|
|
531
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextDisabled = '#858585';
|
|
532
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundDefault = '#4285f4';
|
|
533
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundHover = '#3b78dc';
|
|
534
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundActive = '#2e5dab';
|
|
535
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundDisabled = '#474747';
|
|
536
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextDefault = '#ffffff';
|
|
537
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextHover = '#ffffff';
|
|
538
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextActive = '#ffffff';
|
|
539
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextDisabled = '#858585';
|
|
540
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundDefault = '#666666';
|
|
541
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundHover = '#5c5c5c';
|
|
542
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundActive = '#525252';
|
|
543
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundDisabled = '#474747';
|
|
544
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextDefault = '#ffffff';
|
|
545
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextHover = '#ffffff';
|
|
546
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextActive = '#ffffff';
|
|
547
|
+
const RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextDisabled = '#858585';
|
|
548
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundDefault = 'transparent';
|
|
549
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundHover = '#142849';
|
|
550
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundActive = '#0d1b31';
|
|
551
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundDisabled = '#333333';
|
|
552
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextDefault = '#4285f4';
|
|
553
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextHover = '#689df6';
|
|
554
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextActive = '#8eb6f8';
|
|
555
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextDisabled = '#858585';
|
|
556
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundDefault = 'transparent';
|
|
557
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundHover = '#183731';
|
|
558
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundActive = '#102521';
|
|
559
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundDisabled = '#333333';
|
|
560
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextDefault = '#51b7a4';
|
|
561
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextHover = '#74c5b6';
|
|
562
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextActive = '#97d4c8';
|
|
563
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextDisabled = '#858585';
|
|
564
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundDefault = 'transparent';
|
|
565
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundHover = '#01341d';
|
|
566
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundActive = '#002213';
|
|
567
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundDisabled = '#333333';
|
|
568
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextDefault = '#02ac61';
|
|
569
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextHover = '#35bd81';
|
|
570
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextActive = '#67cda0';
|
|
571
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextDisabled = '#858585';
|
|
572
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundDefault = 'transparent';
|
|
573
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundHover = '#430505';
|
|
574
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundActive = '#2d0303';
|
|
575
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundDisabled = '#333333';
|
|
576
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextDefault = '#e11010';
|
|
577
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextHover = '#e74040';
|
|
578
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextActive = '#ed7070';
|
|
579
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextDisabled = '#858585';
|
|
580
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundDefault = 'transparent';
|
|
581
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundHover = '#4c3819';
|
|
582
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundActive = '#322511';
|
|
583
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundDisabled = '#333333';
|
|
584
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextDefault = '#fcbb54';
|
|
585
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextHover = '#fdc976';
|
|
586
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextActive = '#fdd698';
|
|
587
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextDisabled = '#858585';
|
|
588
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundDefault = 'transparent';
|
|
589
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundHover = '#142849';
|
|
590
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundActive = '#0d1b31';
|
|
591
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundDisabled = '#333333';
|
|
592
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextDefault = '#4285f4';
|
|
593
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextHover = '#689df6';
|
|
594
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextActive = '#8eb6f8';
|
|
595
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextDisabled = '#858585';
|
|
596
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundDefault = 'transparent';
|
|
597
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundHover = '#474747';
|
|
598
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundActive = '#333333';
|
|
599
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundDisabled = '#333333';
|
|
600
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextDefault = '#666666';
|
|
601
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextHover = '#858585';
|
|
602
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextActive = '#a3a3a3';
|
|
603
|
+
const RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextDisabled = '#858585';
|
|
604
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundDefault = 'transparent';
|
|
605
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundHover = '#142849';
|
|
606
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundActive = '#0d1b31';
|
|
607
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundDisabled = '#333333';
|
|
608
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextDefault = '#4285f4';
|
|
609
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextHover = '#689df6';
|
|
610
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextActive = '#8eb6f8';
|
|
611
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextDisabled = '#858585';
|
|
612
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundDefault = 'transparent';
|
|
613
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundHover = '#183731';
|
|
614
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundActive = '#102521';
|
|
615
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundDisabled = '#333333';
|
|
616
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextDefault = '#51b7a4';
|
|
617
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextHover = '#74c5b6';
|
|
618
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextActive = '#97d4c8';
|
|
619
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextDisabled = '#858585';
|
|
620
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundDefault = 'transparent';
|
|
621
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundHover = '#01341d';
|
|
622
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundActive = '#002213';
|
|
623
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundDisabled = '#333333';
|
|
624
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextDefault = '#02ac61';
|
|
625
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextHover = '#35bd81';
|
|
626
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextActive = '#67cda0';
|
|
627
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextDisabled = '#858585';
|
|
628
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundDefault = 'transparent';
|
|
629
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundHover = '#430505';
|
|
630
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundActive = '#2d0303';
|
|
631
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundDisabled = '#333333';
|
|
632
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextDefault = '#e11010';
|
|
633
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextHover = '#e74040';
|
|
634
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextActive = '#ed7070';
|
|
635
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextDisabled = '#858585';
|
|
636
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundDefault = 'transparent';
|
|
637
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundHover = '#4c3819';
|
|
638
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundActive = '#322511';
|
|
639
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundDisabled = '#333333';
|
|
640
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextDefault = '#fcbb54';
|
|
641
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextHover = '#fdc976';
|
|
642
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextActive = '#fdd698';
|
|
643
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextDisabled = '#858585';
|
|
644
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundDefault = 'transparent';
|
|
645
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundHover = '#142849';
|
|
646
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundActive = '#0d1b31';
|
|
647
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundDisabled = '#333333';
|
|
648
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextDefault = '#4285f4';
|
|
649
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextHover = '#689df6';
|
|
650
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextActive = '#8eb6f8';
|
|
651
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextDisabled = '#858585';
|
|
652
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundDefault = 'transparent';
|
|
653
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundHover = '#474747';
|
|
654
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundActive = '#333333';
|
|
655
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundDisabled = '#333333';
|
|
656
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextDefault = '#666666';
|
|
657
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextHover = '#858585';
|
|
658
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextActive = '#a3a3a3';
|
|
659
|
+
const RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextDisabled = '#858585';
|
|
660
|
+
const RedsiftColorDarkComponentsAiAiBorder = '#e11010';
|
|
661
|
+
const RedsiftColorDarkComponentsAiAiIcon = '#e11010';
|
|
662
|
+
const RedsiftColorDarkComponentsSpinnerSpinner = '#142849';
|
|
663
|
+
const RedsiftColorDarkComponentsAlertSuccessBackground = '#029b57';
|
|
664
|
+
const RedsiftColorDarkComponentsAlertSuccessIcon = '#017844';
|
|
665
|
+
const RedsiftColorDarkComponentsAlertText = '#f2f2f2';
|
|
666
|
+
const RedsiftColorDarkComponentsAlertErrorBackground = '#cb0e0e';
|
|
667
|
+
const RedsiftColorDarkComponentsAlertErrorIcon = '#9e0b0b';
|
|
668
|
+
const RedsiftColorDarkComponentsAlertWarningBackground = '#e3a84c';
|
|
669
|
+
const RedsiftColorDarkComponentsAlertWarningIcon = '#b0833b';
|
|
670
|
+
const RedsiftColorDarkComponentsAlertInfoBackground = '#3b78dc';
|
|
671
|
+
const RedsiftColorDarkComponentsAlertInfoIcon = '#2e5dab';
|
|
672
|
+
const RedsiftColorDarkComponentsIconsDefault = '#f2f2f2';
|
|
673
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusDefaultBackground = '#474747';
|
|
674
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusDefaultText = '#ffffff';
|
|
675
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusDividers = '#666666';
|
|
676
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusHoverBackground = '#666666';
|
|
677
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusHoverText = '#ffffff';
|
|
678
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusClickBackground = '#e0e0e0';
|
|
679
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusClickText = '#1c1c1c';
|
|
680
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveText = '#ffffff';
|
|
681
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveBackground = '#4285f4';
|
|
682
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveHoverText = '#ffffff';
|
|
683
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveHoverBackground = '#3b78dc';
|
|
684
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveClickText = '#1c1c1c';
|
|
685
|
+
const RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveClickBackground = '#e0e0e0';
|
|
686
|
+
const RedsiftColorDarkComponentsCheckboxFillDefault = '#4285f4';
|
|
687
|
+
const RedsiftColorDarkComponentsCheckboxFillDefaultHover = '#142849';
|
|
688
|
+
const RedsiftColorDarkComponentsCheckboxFillUncolored = '#666666';
|
|
689
|
+
const RedsiftColorDarkComponentsCheckboxFillUncoloredHover = '#474747';
|
|
690
|
+
const RedsiftColorDarkComponentsCheckboxFillDisabled = '#e0e0e0';
|
|
691
|
+
const RedsiftColorDarkComponentsCheckboxFillInvalid = '#e11010';
|
|
692
|
+
const RedsiftColorDarkComponentsCheckboxFillInvalidHover = '#f39f9f';
|
|
693
|
+
const RedsiftColorDarkComponentsCheckboxTextDefault = '#ffffff';
|
|
694
|
+
const RedsiftColorDarkComponentsCheckboxTextInvalid = '#e11010';
|
|
695
|
+
const RedsiftColorDarkComponentsCheckboxTextDisabled = '#e0e0e0';
|
|
696
|
+
const RedsiftColorDarkComponentsRadioFillDefault = '#4285f4';
|
|
697
|
+
const RedsiftColorDarkComponentsRadioFillDefaultHover = '#142849';
|
|
698
|
+
const RedsiftColorDarkComponentsRadioFillUncolored = '#666666';
|
|
699
|
+
const RedsiftColorDarkComponentsRadioFillUncoloredHover = '#474747';
|
|
700
|
+
const RedsiftColorDarkComponentsRadioFillDisabled = '#e0e0e0';
|
|
701
|
+
const RedsiftColorDarkComponentsRadioFillInvalid = '#e11010';
|
|
702
|
+
const RedsiftColorDarkComponentsRadioFillInvalidHover = '#f39f9f';
|
|
703
|
+
const RedsiftColorDarkComponentsRadioTextDefault = '#ffffff';
|
|
704
|
+
const RedsiftColorDarkComponentsRadioTextInvalid = '#e11010';
|
|
705
|
+
const RedsiftColorDarkComponentsRadioTextDisabled = '#e0e0e0';
|
|
706
|
+
const RedsiftColorDarkComponentsSwitchDotDefault = '#0d1b31';
|
|
707
|
+
const RedsiftColorDarkComponentsSwitchDotDefaultHover = '#3b78dc';
|
|
708
|
+
const RedsiftColorDarkComponentsSwitchDotUncolored = '#666666';
|
|
709
|
+
const RedsiftColorDarkComponentsSwitchDotUncoloredHover = '#474747';
|
|
710
|
+
const RedsiftColorDarkComponentsSwitchDotDisabled = '#0d1b31';
|
|
711
|
+
const RedsiftColorDarkComponentsSwitchDotInvalid = '#0d1b31';
|
|
712
|
+
const RedsiftColorDarkComponentsSwitchDotInvalidHover = '#f39f9f';
|
|
713
|
+
const RedsiftColorDarkComponentsSwitchBackgroundDefault = '#3b78dc';
|
|
714
|
+
const RedsiftColorDarkComponentsSwitchBackgroundDefaultActive = '#4285f4';
|
|
715
|
+
const RedsiftColorDarkComponentsSwitchBackgroundUncolored = '#474747';
|
|
716
|
+
const RedsiftColorDarkComponentsSwitchBackgroundUncoloredActive = '#666666';
|
|
717
|
+
const RedsiftColorDarkComponentsSwitchBackgroundDisabled = '#e0e0e0';
|
|
718
|
+
const RedsiftColorDarkComponentsSwitchBackgroundDisabledActive = '#e0e0e0';
|
|
719
|
+
const RedsiftColorDarkComponentsSwitchBackgroundInvalid = '#f39f9f';
|
|
720
|
+
const RedsiftColorDarkComponentsSwitchBackgroundInvalidActive = '#e11010';
|
|
721
|
+
const RedsiftColorDarkComponentsSwitchTextDefault = '#ffffff';
|
|
722
|
+
const RedsiftColorDarkComponentsSwitchTextInvalid = '#e11010';
|
|
723
|
+
const RedsiftColorDarkComponentsSwitchTextDisabled = '#e0e0e0';
|
|
724
|
+
const RedsiftColorDarkComponentsTabsLine = '#666666';
|
|
725
|
+
const RedsiftColorDarkComponentsModalBackground = '#1c1c1c';
|
|
726
|
+
const RedsiftColorLightComponentsPageBackground = '#ffffff';
|
|
727
|
+
const RedsiftColorLightComponentsTextPrimary = '#333333';
|
|
728
|
+
const RedsiftColorLightComponentsTextSecondary = '#474747';
|
|
729
|
+
const RedsiftColorLightComponentsRedSiftLogoTextRed = '#e11010';
|
|
730
|
+
const RedsiftColorLightComponentsRedSiftLogoTextWhite = '#ffffff';
|
|
731
|
+
const RedsiftColorLightComponentsRedSiftLogoTextGrey = '#333333';
|
|
732
|
+
const RedsiftColorLightComponentsRedSiftLogoIconBackground = '#e11010';
|
|
733
|
+
const RedsiftColorLightComponentsRedSiftLogoIconR = '#ffffff';
|
|
734
|
+
const RedsiftColorLightComponentsRedSiftLogoDiamondTopRight = '#e24e4e';
|
|
735
|
+
const RedsiftColorLightComponentsRedSiftLogoDiamondBottomLeft = '#ffb3b3';
|
|
736
|
+
const RedsiftColorLightComponentsRedSiftLogoDiamondBottomRight = '#ff8181';
|
|
737
|
+
const RedsiftColorLightComponentsRedSiftLogoDiamondDark = '#e24e4e';
|
|
738
|
+
const RedsiftColorLightComponentsRedSiftLogoDiamondMid = '#ff8181';
|
|
739
|
+
const RedsiftColorLightComponentsRedSiftLogoDiamondLight = '#ffb3b3';
|
|
740
|
+
const RedsiftColorLightComponentsProductLogosTextGrey = '#333333';
|
|
741
|
+
const RedsiftColorLightComponentsProductLogosTextRed = '#e11010';
|
|
742
|
+
const RedsiftColorLightComponentsProductLogosTextWhite = '#ffffff';
|
|
743
|
+
const RedsiftColorLightComponentsProductLogosIconRed = '#e11010';
|
|
744
|
+
const RedsiftColorLightComponentsProductLogosIconGrey = '#333333';
|
|
745
|
+
const RedsiftColorLightComponentsSideNavigationBackground = '#f2f2f2';
|
|
746
|
+
const RedsiftColorLightComponentsSideNavigationMenuItemTextResting = '#474747';
|
|
747
|
+
const RedsiftColorLightComponentsSideNavigationMenuItemTextDisabled = '#666666';
|
|
748
|
+
const RedsiftColorLightComponentsSideNavigationMenuItemTextHover = '#1c1c1c';
|
|
749
|
+
const RedsiftColorLightComponentsSideNavigationMenuItemBackgroundHover = '#E6E6E6';
|
|
750
|
+
const RedsiftColorLightComponentsSideNavigationMenuItemBackgroundSecondary = 'transparent';
|
|
751
|
+
const RedsiftColorLightComponentsSideNavigationMenuItemBackgroundActive = '#e0e0e0';
|
|
752
|
+
const RedsiftColorLightComponentsSideNavigationMenuItemActive = '#1c1c1c';
|
|
753
|
+
const RedsiftColorLightComponentsSideNavigationScrollbarResting = '#e0e0e0';
|
|
754
|
+
const RedsiftColorLightComponentsSideNavigationScrollbarHover = '#666666';
|
|
755
|
+
const RedsiftColorLightComponentsSideNavigationRightLine = '#e9e9e9';
|
|
756
|
+
const RedsiftColorLightComponentsSideNavigationCurrentMarker = '#1c1c1c';
|
|
757
|
+
const RedsiftColorLightComponentsAppBarBackground = '#ffffff';
|
|
758
|
+
const RedsiftColorLightComponentsAppBarBreadcrumbDefault = '#1c1c1c';
|
|
759
|
+
const RedsiftColorLightComponentsAppBarBreadcrumbHover = '#3b78dc';
|
|
760
|
+
const RedsiftColorLightComponentsAppBarBreadcrumbDown = '#2e5dab';
|
|
761
|
+
const RedsiftColorLightComponentsAppBarIconBackgroundHover = '#f2f2f2';
|
|
762
|
+
const RedsiftColorLightComponentsAppBarIconBackgroundDown = '#e0e0e0';
|
|
763
|
+
const RedsiftColorLightComponentsAppBarIconBackgroundActive = '#f2f2f2';
|
|
764
|
+
const RedsiftColorLightComponentsAppBarIconBackgroundActiveHover = '#e0e0e0';
|
|
765
|
+
const RedsiftColorLightComponentsAppBarIconBackgroundActiveDown = '#e0e0e0';
|
|
766
|
+
const RedsiftColorLightComponentsAppBarBorder = '#e9e9e9';
|
|
767
|
+
const RedsiftColorLightComponentsTooltipBackground = '#ffffff';
|
|
768
|
+
const RedsiftColorLightComponentsTooltipText = '#333333';
|
|
769
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundDefault = '#4285f4';
|
|
770
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundHover = '#3b78dc';
|
|
771
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundActive = '#2e5dab';
|
|
772
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundDisabled = '#e0e0e0';
|
|
773
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextDefault = '#ffffff';
|
|
774
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextHover = '#ffffff';
|
|
775
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextActive = '#ffffff';
|
|
776
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextDisabled = '#858585';
|
|
777
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundDefault = '#51b7a4';
|
|
778
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundHover = '#49a594';
|
|
779
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundActive = '#398073';
|
|
780
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundDisabled = '#e0e0e0';
|
|
781
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextDefault = '#ffffff';
|
|
782
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextHover = '#ffffff';
|
|
783
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextActive = '#ffffff';
|
|
784
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextDisabled = '#858585';
|
|
785
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundDefault = '#02ac61';
|
|
786
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundHover = '#029b57';
|
|
787
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundActive = '#017844';
|
|
788
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundDisabled = '#e0e0e0';
|
|
789
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextDefault = '#ffffff';
|
|
790
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextHover = '#ffffff';
|
|
791
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextActive = '#ffffff';
|
|
792
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextDisabled = '#858585';
|
|
793
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundDefault = '#e11010';
|
|
794
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundHover = '#cb0e0e';
|
|
795
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundActive = '#9e0b0b';
|
|
796
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundDisabled = '#e0e0e0';
|
|
797
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextDefault = '#ffffff';
|
|
798
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextHover = '#ffffff';
|
|
799
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextActive = '#ffffff';
|
|
800
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextDisabled = '#858585';
|
|
801
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundDefault = '#fcbb54';
|
|
802
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundHover = '#e3a84c';
|
|
803
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundActive = '#b0833b';
|
|
804
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundDisabled = '#e0e0e0';
|
|
805
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextDefault = '#ffffff';
|
|
806
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextHover = '#ffffff';
|
|
807
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextActive = '#ffffff';
|
|
808
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextDisabled = '#858585';
|
|
809
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundDefault = '#4285f4';
|
|
810
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundHover = '#3b78dc';
|
|
811
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundActive = '#2e5dab';
|
|
812
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundDisabled = '#e0e0e0';
|
|
813
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextDefault = '#ffffff';
|
|
814
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextHover = '#ffffff';
|
|
815
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextActive = '#ffffff';
|
|
816
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextDisabled = '#858585';
|
|
817
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundDefault = '#666666';
|
|
818
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundHover = '#5c5c5c';
|
|
819
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundActive = '#525252';
|
|
820
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundDisabled = '#e0e0e0';
|
|
821
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextDefault = '#ffffff';
|
|
822
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextHover = '#ffffff';
|
|
823
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextActive = '#ffffff';
|
|
824
|
+
const RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextDisabled = '#858585';
|
|
825
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundDefault = 'transparent';
|
|
826
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundHover = '#d9e7fd';
|
|
827
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundActive = '#b3cefb';
|
|
828
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundDisabled = '#ffffff';
|
|
829
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextDefault = '#4285f4';
|
|
830
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextHover = '#3b78dc';
|
|
831
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextActive = '#2e5dab';
|
|
832
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextDisabled = '#858585';
|
|
833
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundDefault = 'transparent';
|
|
834
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundHover = '#dcf1ed';
|
|
835
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundActive = '#b9e2db';
|
|
836
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundDisabled = '#ffffff';
|
|
837
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextDefault = '#51b7a4';
|
|
838
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextHover = '#49a594';
|
|
839
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextActive = '#398073';
|
|
840
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextDisabled = '#858585';
|
|
841
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundDefault = 'transparent';
|
|
842
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundHover = '#cceedf';
|
|
843
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundActive = '#9adec0';
|
|
844
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundDisabled = '#ffffff';
|
|
845
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextDefault = '#02ac61';
|
|
846
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextHover = '#029b57';
|
|
847
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextActive = '#017844';
|
|
848
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextDisabled = '#858585';
|
|
849
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundDefault = 'transparent';
|
|
850
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundHover = '#f9cfcf';
|
|
851
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundActive = '#f39f9f';
|
|
852
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundDisabled = '#ffffff';
|
|
853
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextDefault = '#e11010';
|
|
854
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextHover = '#cb0e0e';
|
|
855
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextActive = '#9e0b0b';
|
|
856
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextDisabled = '#858585';
|
|
857
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundDefault = 'transparent';
|
|
858
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundHover = '#fef1dd';
|
|
859
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundActive = '#fee4bb';
|
|
860
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundDisabled = '#ffffff';
|
|
861
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextDefault = '#fcbb54';
|
|
862
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextHover = '#e3a84c';
|
|
863
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextActive = '#b0833b';
|
|
864
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextDisabled = '#858585';
|
|
865
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundDefault = 'transparent';
|
|
866
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundHover = '#d9e7fd';
|
|
867
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundActive = '#b3cefb';
|
|
868
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundDisabled = '#ffffff';
|
|
869
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextDefault = '#4285f4';
|
|
870
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextHover = '#3b78dc';
|
|
871
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextActive = '#2e5dab';
|
|
872
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextDisabled = '#858585';
|
|
873
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundDefault = 'transparent';
|
|
874
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundHover = '#f2f2f2';
|
|
875
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundActive = '#e0e0e0';
|
|
876
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundDisabled = '#ffffff';
|
|
877
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextDefault = '#666666';
|
|
878
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextHover = '#525252';
|
|
879
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextActive = '#525252';
|
|
880
|
+
const RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextDisabled = '#858585';
|
|
881
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundDefault = 'transparent';
|
|
882
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundHover = '#d9e7fd';
|
|
883
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundActive = '#b3cefb';
|
|
884
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundDisabled = '#ffffff';
|
|
885
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextDefault = '#4285f4';
|
|
886
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextHover = '#3b78dc';
|
|
887
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextActive = '#2e5dab';
|
|
888
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextDisabled = '#858585';
|
|
889
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundDefault = 'transparent';
|
|
890
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundHover = '#dcf1ed';
|
|
891
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundActive = '#b9e2db';
|
|
892
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundDisabled = '#ffffff';
|
|
893
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextDefault = '#51b7a4';
|
|
894
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextHover = '#49a594';
|
|
895
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextActive = '#398073';
|
|
896
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextDisabled = '#858585';
|
|
897
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundDefault = 'transparent';
|
|
898
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundHover = '#cceedf';
|
|
899
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundActive = '#9adec0';
|
|
900
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundDisabled = '#ffffff';
|
|
901
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextDefault = '#02ac61';
|
|
902
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextHover = '#029b57';
|
|
903
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextActive = '#017844';
|
|
904
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextDisabled = '#858585';
|
|
905
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundDefault = 'transparent';
|
|
906
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundHover = '#f9cfcf';
|
|
907
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundActive = '#f39f9f';
|
|
908
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundDisabled = '#ffffff';
|
|
909
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextDefault = '#e11010';
|
|
910
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextHover = '#cb0e0e';
|
|
911
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextActive = '#9e0b0b';
|
|
912
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextDisabled = '#858585';
|
|
913
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundDefault = 'transparent';
|
|
914
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundHover = '#fef1dd';
|
|
915
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundActive = '#fee4bb';
|
|
916
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundDisabled = '#ffffff';
|
|
917
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextDefault = '#fcbb54';
|
|
918
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextHover = '#e3a84c';
|
|
919
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextActive = '#b0833b';
|
|
920
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextDisabled = '#858585';
|
|
921
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundDefault = 'transparent';
|
|
922
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundHover = '#d9e7fd';
|
|
923
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundActive = '#b3cefb';
|
|
924
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundDisabled = '#ffffff';
|
|
925
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextDefault = '#4285f4';
|
|
926
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextHover = '#3b78dc';
|
|
927
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextActive = '#2e5dab';
|
|
928
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextDisabled = '#858585';
|
|
929
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundDefault = 'transparent';
|
|
930
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundHover = '#f2f2f2';
|
|
931
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundActive = '#e0e0e0';
|
|
932
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundDisabled = '#ffffff';
|
|
933
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextDefault = '#666666';
|
|
934
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextHover = '#525252';
|
|
935
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextActive = '#525252';
|
|
936
|
+
const RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextDisabled = '#858585';
|
|
937
|
+
const RedsiftColorLightComponentsAiAiBorder = '#e11010';
|
|
938
|
+
const RedsiftColorLightComponentsAiAiIcon = '#e11010';
|
|
939
|
+
const RedsiftColorLightComponentsSpinnerSpinner = '#4285f4';
|
|
940
|
+
const RedsiftColorLightComponentsAlertSuccessBackground = '#cceedf';
|
|
941
|
+
const RedsiftColorLightComponentsAlertSuccessIcon = '#02ac61';
|
|
942
|
+
const RedsiftColorLightComponentsAlertText = '#333333';
|
|
943
|
+
const RedsiftColorLightComponentsAlertErrorBackground = '#f9cfcf';
|
|
944
|
+
const RedsiftColorLightComponentsAlertErrorIcon = '#e11010';
|
|
945
|
+
const RedsiftColorLightComponentsAlertWarningBackground = '#fef1dd';
|
|
946
|
+
const RedsiftColorLightComponentsAlertWarningIcon = '#fcbb54';
|
|
947
|
+
const RedsiftColorLightComponentsAlertInfoBackground = '#d9e7fd';
|
|
948
|
+
const RedsiftColorLightComponentsAlertInfoIcon = '#4285f4';
|
|
949
|
+
const RedsiftColorLightComponentsIconsDefault = '#333333';
|
|
950
|
+
const RedsiftColorLightComponentsDropdownsAndMenusDefaultBackground = '#ffffff';
|
|
951
|
+
const RedsiftColorLightComponentsDropdownsAndMenusDefaultText = '#333333';
|
|
952
|
+
const RedsiftColorLightComponentsDropdownsAndMenusDividers = '#e0e0e0';
|
|
953
|
+
const RedsiftColorLightComponentsDropdownsAndMenusHoverBackground = '#f2f2f2';
|
|
954
|
+
const RedsiftColorLightComponentsDropdownsAndMenusHoverText = '#333333';
|
|
955
|
+
const RedsiftColorLightComponentsDropdownsAndMenusClickBackground = '#333333';
|
|
956
|
+
const RedsiftColorLightComponentsDropdownsAndMenusClickText = '#ffffff';
|
|
957
|
+
const RedsiftColorLightComponentsDropdownsAndMenusToggleActiveText = '#ffffff';
|
|
958
|
+
const RedsiftColorLightComponentsDropdownsAndMenusToggleActiveBackground = '#4285f4';
|
|
959
|
+
const RedsiftColorLightComponentsDropdownsAndMenusToggleActiveHoverText = '#ffffff';
|
|
960
|
+
const RedsiftColorLightComponentsDropdownsAndMenusToggleActiveHoverBackground = '#3b78dc';
|
|
961
|
+
const RedsiftColorLightComponentsDropdownsAndMenusToggleActiveClickText = '#ffffff';
|
|
962
|
+
const RedsiftColorLightComponentsDropdownsAndMenusToggleActiveClickBackground = '#333333';
|
|
963
|
+
const RedsiftColorLightComponentsCheckboxFillDefault = '#4285f4';
|
|
964
|
+
const RedsiftColorLightComponentsCheckboxFillDefaultHover = '#d9e7fd';
|
|
965
|
+
const RedsiftColorLightComponentsCheckboxFillUncolored = '#666666';
|
|
966
|
+
const RedsiftColorLightComponentsCheckboxFillUncoloredHover = '#474747';
|
|
967
|
+
const RedsiftColorLightComponentsCheckboxFillDisabled = '#e0e0e0';
|
|
968
|
+
const RedsiftColorLightComponentsCheckboxFillInvalid = '#e11010';
|
|
969
|
+
const RedsiftColorLightComponentsCheckboxFillInvalidHover = '#f9cfcf';
|
|
970
|
+
const RedsiftColorLightComponentsCheckboxTextDefault = '#333333';
|
|
971
|
+
const RedsiftColorLightComponentsCheckboxTextInvalid = '#e11010';
|
|
972
|
+
const RedsiftColorLightComponentsCheckboxTextDisabled = '#e0e0e0';
|
|
973
|
+
const RedsiftColorLightComponentsRadioFillDefault = '#4285f4';
|
|
974
|
+
const RedsiftColorLightComponentsRadioFillDefaultHover = '#d9e7fd';
|
|
975
|
+
const RedsiftColorLightComponentsRadioFillUncolored = '#666666';
|
|
976
|
+
const RedsiftColorLightComponentsRadioFillUncoloredHover = '#474747';
|
|
977
|
+
const RedsiftColorLightComponentsRadioFillDisabled = '#e0e0e0';
|
|
978
|
+
const RedsiftColorLightComponentsRadioFillInvalid = '#e11010';
|
|
979
|
+
const RedsiftColorLightComponentsRadioFillInvalidHover = '#f9cfcf';
|
|
980
|
+
const RedsiftColorLightComponentsRadioTextDefault = '#333333';
|
|
981
|
+
const RedsiftColorLightComponentsRadioTextInvalid = '#e11010';
|
|
982
|
+
const RedsiftColorLightComponentsRadioTextDisabled = '#e0e0e0';
|
|
983
|
+
const RedsiftColorLightComponentsSwitchDotDefault = '#ffffff';
|
|
984
|
+
const RedsiftColorLightComponentsSwitchDotDefaultHover = '#d9e7fd';
|
|
985
|
+
const RedsiftColorLightComponentsSwitchDotUncolored = '#ffffff';
|
|
986
|
+
const RedsiftColorLightComponentsSwitchDotUncoloredHover = '#474747';
|
|
987
|
+
const RedsiftColorLightComponentsSwitchDotDisabled = '#ffffff';
|
|
988
|
+
const RedsiftColorLightComponentsSwitchDotInvalid = '#ffffff';
|
|
989
|
+
const RedsiftColorLightComponentsSwitchDotInvalidHover = '#f9cfcf';
|
|
990
|
+
const RedsiftColorLightComponentsSwitchBackgroundDefault = '#d9e7fd';
|
|
991
|
+
const RedsiftColorLightComponentsSwitchBackgroundDefaultActive = '#4285f4';
|
|
992
|
+
const RedsiftColorLightComponentsSwitchBackgroundUncolored = '#474747';
|
|
993
|
+
const RedsiftColorLightComponentsSwitchBackgroundUncoloredActive = '#666666';
|
|
994
|
+
const RedsiftColorLightComponentsSwitchBackgroundDisabled = '#e0e0e0';
|
|
995
|
+
const RedsiftColorLightComponentsSwitchBackgroundDisabledActive = '#666666';
|
|
996
|
+
const RedsiftColorLightComponentsSwitchBackgroundInvalid = '#f9cfcf';
|
|
997
|
+
const RedsiftColorLightComponentsSwitchBackgroundInvalidActive = '#e11010';
|
|
998
|
+
const RedsiftColorLightComponentsSwitchTextDefault = '#333333';
|
|
999
|
+
const RedsiftColorLightComponentsSwitchTextInvalid = '#e11010';
|
|
1000
|
+
const RedsiftColorLightComponentsSwitchTextDisabled = '#e0e0e0';
|
|
1001
|
+
const RedsiftColorLightComponentsTabsLine = '#e0e0e0';
|
|
1002
|
+
const RedsiftColorLightComponentsModalBackground = '#ffffff';
|
|
1003
|
+
const RedsiftColorRedL4 = '#f9cfcf';
|
|
1004
|
+
const RedsiftColorRedL3 = '#f39f9f';
|
|
1005
|
+
const RedsiftColorRedL2 = '#ed7070';
|
|
1006
|
+
const RedsiftColorRedL1 = '#e74040';
|
|
1007
|
+
const RedsiftColorRedN = '#e11010';
|
|
1008
|
+
const RedsiftColorRedD1 = '#cb0e0e';
|
|
1009
|
+
const RedsiftColorRedD2 = '#9e0b0b';
|
|
1010
|
+
const RedsiftColorRedD3 = '#430505';
|
|
1011
|
+
const RedsiftColorRedD4 = '#2d0303';
|
|
1012
|
+
const RedsiftColorBlueL4 = '#d9e7fd';
|
|
1013
|
+
const RedsiftColorBlueL3 = '#b3cefb';
|
|
1014
|
+
const RedsiftColorBlueL2 = '#8eb6f8';
|
|
1015
|
+
const RedsiftColorBlueL1 = '#689df6';
|
|
1016
|
+
const RedsiftColorBlueN = '#4285f4';
|
|
1017
|
+
const RedsiftColorBlueD1 = '#3b78dc';
|
|
1018
|
+
const RedsiftColorBlueD2 = '#2e5dab';
|
|
1019
|
+
const RedsiftColorBlueD3 = '#142849';
|
|
1020
|
+
const RedsiftColorBlueD4 = '#0d1b31';
|
|
1021
|
+
const RedsiftColorTealL4 = '#dcf1ed';
|
|
1022
|
+
const RedsiftColorTealL3 = '#b9e2db';
|
|
1023
|
+
const RedsiftColorTealL2 = '#97d4c8';
|
|
1024
|
+
const RedsiftColorTealL1 = '#74c5b6';
|
|
1025
|
+
const RedsiftColorTealN = '#51b7a4';
|
|
1026
|
+
const RedsiftColorTealD1 = '#49a594';
|
|
1027
|
+
const RedsiftColorTealD2 = '#398073';
|
|
1028
|
+
const RedsiftColorTealD3 = '#183731';
|
|
1029
|
+
const RedsiftColorTealD4 = '#102521';
|
|
1030
|
+
const RedsiftColorGreyL5 = '#ffffff';
|
|
1031
|
+
const RedsiftColorGreyL4 = '#f2f2f2';
|
|
1032
|
+
const RedsiftColorGreyL3 = '#e0e0e0';
|
|
1033
|
+
const RedsiftColorGreyL2 = '#a3a3a3';
|
|
1034
|
+
const RedsiftColorGreyL1 = '#858585';
|
|
1035
|
+
const RedsiftColorGreyN = '#666666';
|
|
1036
|
+
const RedsiftColorGreyD1 = '#5c5c5c';
|
|
1037
|
+
const RedsiftColorGreyD2 = '#525252';
|
|
1038
|
+
const RedsiftColorGreyD3 = '#474747';
|
|
1039
|
+
const RedsiftColorGreyD4 = '#333333';
|
|
1040
|
+
const RedsiftColorGreyD5 = '#1c1c1c';
|
|
1041
|
+
const RedsiftColorGreenL4 = '#cceedf';
|
|
1042
|
+
const RedsiftColorGreenL3 = '#9adec0';
|
|
1043
|
+
const RedsiftColorGreenL2 = '#67cda0';
|
|
1044
|
+
const RedsiftColorGreenL1 = '#35bd81';
|
|
1045
|
+
const RedsiftColorGreenN = '#02ac61';
|
|
1046
|
+
const RedsiftColorGreenD1 = '#029b57';
|
|
1047
|
+
const RedsiftColorGreenD2 = '#017844';
|
|
1048
|
+
const RedsiftColorGreenD3 = '#01341d';
|
|
1049
|
+
const RedsiftColorGreenD4 = '#002213';
|
|
1050
|
+
const RedsiftColorYellowL4 = '#fef1dd';
|
|
1051
|
+
const RedsiftColorYellowL3 = '#fee4bb';
|
|
1052
|
+
const RedsiftColorYellowL2 = '#fdd698';
|
|
1053
|
+
const RedsiftColorYellowL1 = '#fdc976';
|
|
1054
|
+
const RedsiftColorYellowN = '#fcbb54';
|
|
1055
|
+
const RedsiftColorYellowD1 = '#e3a84c';
|
|
1056
|
+
const RedsiftColorYellowD2 = '#b0833b';
|
|
1057
|
+
const RedsiftColorYellowD3 = '#4c3819';
|
|
1058
|
+
const RedsiftColorYellowD4 = '#322511';
|
|
1059
|
+
const RedsiftColorPrimaryL4 = '#d9e7fd';
|
|
1060
|
+
const RedsiftColorPrimaryL3 = '#b3cefb';
|
|
1061
|
+
const RedsiftColorPrimaryL2 = '#8eb6f8';
|
|
1062
|
+
const RedsiftColorPrimaryL1 = '#689df6';
|
|
1063
|
+
const RedsiftColorPrimaryN = '#4285f4';
|
|
1064
|
+
const RedsiftColorPrimaryD1 = '#3b78dc';
|
|
1065
|
+
const RedsiftColorPrimaryD2 = '#2e5dab';
|
|
1066
|
+
const RedsiftColorPrimaryD3 = '#142849';
|
|
1067
|
+
const RedsiftColorPrimaryD4 = '#0d1b31';
|
|
1068
|
+
const RedsiftColorSecondaryL4 = '#dcf1ed';
|
|
1069
|
+
const RedsiftColorSecondaryL3 = '#b9e2db';
|
|
1070
|
+
const RedsiftColorSecondaryL2 = '#97d4c8';
|
|
1071
|
+
const RedsiftColorSecondaryL1 = '#74c5b6';
|
|
1072
|
+
const RedsiftColorSecondaryN = '#51b7a4';
|
|
1073
|
+
const RedsiftColorSecondaryD1 = '#49a594';
|
|
1074
|
+
const RedsiftColorSecondaryD2 = '#398073';
|
|
1075
|
+
const RedsiftColorSecondaryD3 = '#183731';
|
|
1076
|
+
const RedsiftColorSecondaryD4 = '#102521';
|
|
1077
|
+
const RedsiftColorNeutralWhite = '#ffffff';
|
|
1078
|
+
const RedsiftColorNeutralXLightGrey = '#f2f2f2';
|
|
1079
|
+
const RedsiftColorNeutralLightGrey = '#e0e0e0';
|
|
1080
|
+
const RedsiftColorNeutralMidGrey = '#666666';
|
|
1081
|
+
const RedsiftColorNeutralDarkGrey = '#474747';
|
|
1082
|
+
const RedsiftColorNeutralXDarkGrey = '#333333';
|
|
1083
|
+
const RedsiftColorNeutralBlack = '#1c1c1c';
|
|
1084
|
+
const RedsiftColorTextPrimary = '#333333';
|
|
1085
|
+
const RedsiftColorTextSecondary = '#474747';
|
|
431
1086
|
const RedsiftColorProductAsm = '#8361ea';
|
|
432
1087
|
const RedsiftColorProductBrandTrust = '#7ec2fa';
|
|
433
1088
|
const RedsiftColorProductCertificates = '#e8712e';
|
|
434
|
-
const
|
|
435
|
-
const
|
|
436
|
-
const
|
|
1089
|
+
const RedsiftColorProductHardenize = '#3498db';
|
|
1090
|
+
const RedsiftColorProductOnDmarc = '#96d36e';
|
|
1091
|
+
const RedsiftColorProductOnInbox = '#33b222';
|
|
1092
|
+
const RedsiftColorProductRadar = '#51B7A4';
|
|
437
1093
|
const RedsiftColorProductVendorSecure = '#f7c948';
|
|
438
|
-
const
|
|
439
|
-
const
|
|
440
|
-
const
|
|
441
|
-
const
|
|
442
|
-
const
|
|
443
|
-
const
|
|
444
|
-
const
|
|
445
|
-
const
|
|
446
|
-
const
|
|
447
|
-
const
|
|
448
|
-
const
|
|
449
|
-
const
|
|
450
|
-
const
|
|
451
|
-
const
|
|
452
|
-
const
|
|
453
|
-
const
|
|
454
|
-
const
|
|
455
|
-
const
|
|
456
|
-
const
|
|
457
|
-
const
|
|
458
|
-
const
|
|
459
|
-
const
|
|
460
|
-
const
|
|
461
|
-
const
|
|
462
|
-
const
|
|
463
|
-
const RedsiftColorCtasSecondaryButtonActiveHover = '#204942';
|
|
464
|
-
const RedsiftColorNotificationsSuccessPrimary = '#02AC61';
|
|
465
|
-
const RedsiftColorNotificationsSuccessHover = '#CCEEDF';
|
|
466
|
-
const RedsiftColorNotificationsSuccessActive = '#9ADEC0';
|
|
467
|
-
const RedsiftColorNotificationsSuccessActiveHover = '#67CDA0';
|
|
468
|
-
const RedsiftColorNotificationsSuccessButtonHover = '#028A4E';
|
|
469
|
-
const RedsiftColorNotificationsSuccessButtonActive = '#01673A';
|
|
470
|
-
const RedsiftColorNotificationsSuccessButtonActiveHover = '#014527';
|
|
471
|
-
const RedsiftColorNotificationsErrorPrimary = '#E11010';
|
|
472
|
-
const RedsiftColorNotificationsErrorHover = '#F9CFCF';
|
|
473
|
-
const RedsiftColorNotificationsErrorActive = '#F39F9F';
|
|
474
|
-
const RedsiftColorNotificationsErrorActiveHover = '#ED7070';
|
|
475
|
-
const RedsiftColorNotificationsErrorButtonHover = '#B40D0D';
|
|
476
|
-
const RedsiftColorNotificationsErrorButtonActive = '#870A0A';
|
|
477
|
-
const RedsiftColorNotificationsErrorButtonActiveHover = '#5A0606';
|
|
478
|
-
const RedsiftColorNotificationsWarningPrimary = '#FCBB54';
|
|
479
|
-
const RedsiftColorNotificationsWarningHover = '#FEF1DD';
|
|
480
|
-
const RedsiftColorNotificationsWarningActive = '#FEE4BB';
|
|
481
|
-
const RedsiftColorNotificationsWarningActiveHover = '#FDD698';
|
|
482
|
-
const RedsiftColorNotificationsWarningButtonHover = '#CA9643';
|
|
483
|
-
const RedsiftColorNotificationsWarningButtonActive = '#977032';
|
|
484
|
-
const RedsiftColorNotificationsWarningButtonActiveHover = '#654B22';
|
|
485
|
-
const RedsiftColorNotificationsInfoPrimary = '#4285F4';
|
|
486
|
-
const RedsiftColorNotificationsInfoHover = '#D9E7FD';
|
|
487
|
-
const RedsiftColorNotificationsInfoActive = '#B3CEFB';
|
|
488
|
-
const RedsiftColorNotificationsInfoActiveHover = '#8EB6F8';
|
|
489
|
-
const RedsiftColorNotificationsInfoButtonHover = '#356AC3';
|
|
490
|
-
const RedsiftColorNotificationsInfoButtonActive = '#285092';
|
|
491
|
-
const RedsiftColorNotificationsInfoButtonActiveHover = '#1A3562';
|
|
1094
|
+
const RedsiftColorBordersBorderDivider = '#f2f2f2';
|
|
1095
|
+
const RedsiftColorBordersBorderDefault = '#666666';
|
|
1096
|
+
const RedsiftColorBordersBorderDisabled = '#e0e0e0';
|
|
1097
|
+
const RedsiftColorBordersBorderPrimary = '#4285f4';
|
|
1098
|
+
const RedsiftColorBordersBorderSecondary = '#51b7a4';
|
|
1099
|
+
const RedsiftColorBordersBorderSuccess = '#02ac61';
|
|
1100
|
+
const RedsiftColorBordersBorderError = '#e11010';
|
|
1101
|
+
const RedsiftColorNotificationsPrimaryPrimary = '#4285f4';
|
|
1102
|
+
const RedsiftColorNotificationsPrimaryHover = '#d9e7fd';
|
|
1103
|
+
const RedsiftColorNotificationsPrimaryActive = '#b3cefb';
|
|
1104
|
+
const RedsiftColorNotificationsSecondaryPrimary = '#51b7a4';
|
|
1105
|
+
const RedsiftColorNotificationsSecondaryHover = '#dcf1ed';
|
|
1106
|
+
const RedsiftColorNotificationsSecondaryActive = '#b9e2db';
|
|
1107
|
+
const RedsiftColorNotificationsSuccessPrimary = '#02ac61';
|
|
1108
|
+
const RedsiftColorNotificationsSuccessHover = '#cceedf';
|
|
1109
|
+
const RedsiftColorNotificationsSuccessActive = '#9adec0';
|
|
1110
|
+
const RedsiftColorNotificationsErrorPrimary = '#e11010';
|
|
1111
|
+
const RedsiftColorNotificationsErrorHover = '#f9cfcf';
|
|
1112
|
+
const RedsiftColorNotificationsErrorActive = '#f39f9f';
|
|
1113
|
+
const RedsiftColorNotificationsWarningPrimary = '#fcbb54';
|
|
1114
|
+
const RedsiftColorNotificationsWarningHover = '#fef1dd';
|
|
1115
|
+
const RedsiftColorNotificationsWarningActive = '#fee4bb';
|
|
1116
|
+
const RedsiftColorNotificationsInfoPrimary = '#4285f4';
|
|
1117
|
+
const RedsiftColorNotificationsInfoHover = '#d9e7fd';
|
|
1118
|
+
const RedsiftColorNotificationsInfoActive = '#b3cefb';
|
|
492
1119
|
const RedsiftColorNotificationsQuestionPrimary = '#666666';
|
|
493
|
-
const RedsiftColorNotificationsQuestionHover = '#
|
|
494
|
-
const RedsiftColorNotificationsQuestionActive = '#
|
|
495
|
-
const
|
|
496
|
-
const
|
|
497
|
-
const
|
|
498
|
-
const RedsiftColorNotificationsQuestionButtonActiveHover = '#3D3D3D';
|
|
499
|
-
const RedsiftColorNotificationsNoDataPrimary = '#BDBDBD';
|
|
500
|
-
const RedsiftColorNotificationsNoDataHover = '#DEDEDE';
|
|
501
|
-
const RedsiftColorNotificationsNoDataActive = '#D7D7D7';
|
|
502
|
-
const RedsiftColorNotificationsNoDataActiveHover = '#D1D1D1';
|
|
503
|
-
const RedsiftColorNotificationsNoDataButtonHover = '#979797';
|
|
504
|
-
const RedsiftColorNotificationsNoDataButtonActive = '#848484';
|
|
505
|
-
const RedsiftColorNotificationsNoDataButtonActiveHover = '#717171';
|
|
1120
|
+
const RedsiftColorNotificationsQuestionHover = '#474747';
|
|
1121
|
+
const RedsiftColorNotificationsQuestionActive = '#333333';
|
|
1122
|
+
const RedsiftColorNotificationsNoDataPrimary = '#e0e0e0';
|
|
1123
|
+
const RedsiftColorNotificationsNoDataHover = '#666666';
|
|
1124
|
+
const RedsiftColorNotificationsNoDataActive = '#474747';
|
|
506
1125
|
const RedsiftColorPresentationGreenDarkerer = '#078833';
|
|
507
1126
|
const RedsiftColorPresentationGreenDarker = '#07AA45';
|
|
508
1127
|
const RedsiftColorPresentationGreenDark = '#00CE59';
|
|
@@ -573,16 +1192,7 @@ const RedsiftColorPresentationGreyDefault = '#D6D6D6';
|
|
|
573
1192
|
const RedsiftColorPresentationGreyLight = '#E6E6E6';
|
|
574
1193
|
const RedsiftColorPresentationGreyLighter = '#EEEEEE';
|
|
575
1194
|
const RedsiftColorPresentationGreyLighterer = '#F7F7F7';
|
|
576
|
-
const
|
|
577
|
-
const RedsiftSideNavigationColorMenuItemTextResting = '#333333';
|
|
578
|
-
const RedsiftSideNavigationColorMenuItemTextDisabled = '#666666';
|
|
579
|
-
const RedsiftSideNavigationColorMenuItemTextHover = '#1c1c1c';
|
|
580
|
-
const RedsiftSideNavigationColorMenuItemBackgroundHover = '#E6E6E6';
|
|
581
|
-
const RedsiftSideNavigationColorMenuItemBackgroundSecondary = 'transparent';
|
|
582
|
-
const RedsiftSideNavigationColorMenuItemBackgroundActive = '#b6b6b6';
|
|
583
|
-
const RedsiftSideNavigationColorMenuItemActive = '#1c1c1c';
|
|
584
|
-
const RedsiftSideNavigationColorScrollbarResting = '#b6b6b6';
|
|
585
|
-
const RedsiftSideNavigationColorScrollbarHover = '#666666';
|
|
1195
|
+
const RedsiftBorderRadius = '4px';
|
|
586
1196
|
const RedsiftLayoutZIndexFooter = '1000';
|
|
587
1197
|
const RedsiftLayoutZIndexHeader = '1010';
|
|
588
1198
|
const RedsiftLayoutZIndexSidePanel = '1050';
|
|
@@ -724,7 +1334,7 @@ const useId$1 = function () {
|
|
|
724
1334
|
* @param props Component props containing the aria-label and aria-labelledby params to check for.
|
|
725
1335
|
* @param additionalKeysToCheck Additional props to check that can act as a label for screen readers (i.e. children).
|
|
726
1336
|
*/
|
|
727
|
-
const warnIfNoAccessibleLabelFound = (props, additionalKeysToCheck) => {
|
|
1337
|
+
const warnIfNoAccessibleLabelFound = (props, additionalKeysToCheck, componentName) => {
|
|
728
1338
|
const {
|
|
729
1339
|
'aria-label': ariaLabel,
|
|
730
1340
|
'aria-labelledby': ariaLabelledby
|
|
@@ -732,7 +1342,7 @@ const warnIfNoAccessibleLabelFound = (props, additionalKeysToCheck) => {
|
|
|
732
1342
|
const hasText = additionalKeysToCheck && additionalKeysToCheck.filter(key => !!key).length > 0;
|
|
733
1343
|
const hasAriaLabel = Boolean(ariaLabel || ariaLabelledby);
|
|
734
1344
|
if (!hasAriaLabel && !hasText) {
|
|
735
|
-
console.warn(
|
|
1345
|
+
console.warn(`You must provide a label ${componentName ? `to ${componentName} ` : ''}for accessibility`, props);
|
|
736
1346
|
}
|
|
737
1347
|
};
|
|
738
1348
|
|
|
@@ -1014,7 +1624,6 @@ const baseStyling = css`
|
|
|
1014
1624
|
font-size: var(--redsift-typography-body-font-size);
|
|
1015
1625
|
font-weight: var(--redsift-typography-body-font-weight);
|
|
1016
1626
|
line-height: var(--redsift-typography-body-line-height);
|
|
1017
|
-
color: var(--redsift-color-neutral-black);
|
|
1018
1627
|
|
|
1019
1628
|
${baseLayout}
|
|
1020
1629
|
${baseSpacing}
|
|
@@ -1032,7 +1641,6 @@ const baseContainer = css`
|
|
|
1032
1641
|
font-size: var(--redsift-typography-body-font-size);
|
|
1033
1642
|
font-weight: var(--redsift-typography-body-font-weight);
|
|
1034
1643
|
line-height: 20px;
|
|
1035
|
-
color: var(--redsift-color-neutral-black);
|
|
1036
1644
|
|
|
1037
1645
|
${baseInternalSpacing}
|
|
1038
1646
|
${baseSpacing}
|
|
@@ -1044,7 +1652,7 @@ const baseContainer = css`
|
|
|
1044
1652
|
const focusRing = css`
|
|
1045
1653
|
@media (prefers-reduced-motion: no-preference) {
|
|
1046
1654
|
:focus-visible {
|
|
1047
|
-
outline: 2px solid var(--redsift-color-
|
|
1655
|
+
outline: 2px solid var(--redsift-color-primary-n);
|
|
1048
1656
|
transition: outline-offset 75ms ease-out;
|
|
1049
1657
|
}
|
|
1050
1658
|
|
|
@@ -1057,6 +1665,19 @@ const focusRing = css`
|
|
|
1057
1665
|
outline-offset: 0.2rem;
|
|
1058
1666
|
}
|
|
1059
1667
|
`;
|
|
1668
|
+
const srOnly = css`
|
|
1669
|
+
border: 0 !important;
|
|
1670
|
+
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
1671
|
+
-webkit-clip-path: inset(50%) !important;
|
|
1672
|
+
clip-path: inset(50%) !important;
|
|
1673
|
+
height: 1px !important;
|
|
1674
|
+
overflow: hidden !important;
|
|
1675
|
+
margin: -1px !important;
|
|
1676
|
+
padding: 0 !important;
|
|
1677
|
+
position: absolute !important;
|
|
1678
|
+
width: 1px !important;
|
|
1679
|
+
white-space: nowrap !important;
|
|
1680
|
+
`;
|
|
1060
1681
|
|
|
1061
1682
|
/**
|
|
1062
1683
|
* Component style.
|
|
@@ -1076,14 +1697,15 @@ const StyledIcon = styled.span`
|
|
|
1076
1697
|
|
|
1077
1698
|
${_ref => {
|
|
1078
1699
|
let {
|
|
1079
|
-
$color
|
|
1700
|
+
$color,
|
|
1701
|
+
$theme
|
|
1080
1702
|
} = _ref;
|
|
1081
1703
|
return $color && Object.keys(NotificationsColorPalette).indexOf($color) !== -1 ? css`
|
|
1082
1704
|
color: var(--redsift-color-notifications-${$color}-primary);
|
|
1083
1705
|
` : $color && Object.keys(ProductColorPalette).indexOf($color) !== -1 ? css`
|
|
1084
1706
|
color: var(--redsift-color-product-${$color});
|
|
1085
1707
|
` : css`
|
|
1086
|
-
color: ${$color || css`var(--redsift-color-neutral-
|
|
1708
|
+
color: ${$color || css`var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'})`};
|
|
1087
1709
|
`;
|
|
1088
1710
|
}}
|
|
1089
1711
|
|
|
@@ -1135,7 +1757,17 @@ const StyledIcon = styled.span`
|
|
|
1135
1757
|
}}
|
|
1136
1758
|
`;
|
|
1137
1759
|
|
|
1138
|
-
const
|
|
1760
|
+
const ThemeContext = /*#__PURE__*/React__default.createContext(null);
|
|
1761
|
+
const ThemeProvider = ThemeContext.Provider;
|
|
1762
|
+
|
|
1763
|
+
function useTheme(theme) {
|
|
1764
|
+
var _ref;
|
|
1765
|
+
const themeState = useContext(ThemeContext);
|
|
1766
|
+
const contextTheme = (_ref = theme !== null && theme !== void 0 ? theme : themeState === null || themeState === void 0 ? void 0 : themeState.theme) !== null && _ref !== void 0 ? _ref : Theme.light;
|
|
1767
|
+
return contextTheme;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
const _excluded$P = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps", "theme"];
|
|
1139
1771
|
const COMPONENT_NAME$P = 'Icon';
|
|
1140
1772
|
const CLASSNAME$P = 'redsift-icon';
|
|
1141
1773
|
const DEFAULT_PROPS$P = {
|
|
@@ -1204,9 +1836,11 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1204
1836
|
color,
|
|
1205
1837
|
icon,
|
|
1206
1838
|
size,
|
|
1207
|
-
svgProps
|
|
1839
|
+
svgProps,
|
|
1840
|
+
theme: propsTheme
|
|
1208
1841
|
} = props,
|
|
1209
1842
|
forwardedProps = _objectWithoutProperties(props, _excluded$P);
|
|
1843
|
+
const theme = useTheme(propsTheme);
|
|
1210
1844
|
const {
|
|
1211
1845
|
width,
|
|
1212
1846
|
height,
|
|
@@ -1219,6 +1853,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1219
1853
|
$height: height,
|
|
1220
1854
|
$fontSize: fontSize,
|
|
1221
1855
|
$lineHeight: lineHeight,
|
|
1856
|
+
$theme: theme,
|
|
1222
1857
|
"aria-hidden": ariaLabel ? ariaHidden ? ariaHidden : undefined : true,
|
|
1223
1858
|
"aria-label": ariaLabel,
|
|
1224
1859
|
className: classNames(Icon.className, className),
|
|
@@ -1288,7 +1923,7 @@ const StyledButton = styled.button`
|
|
|
1288
1923
|
} = _ref;
|
|
1289
1924
|
return $isLoading ? css`
|
|
1290
1925
|
& > span {
|
|
1291
|
-
|
|
1926
|
+
opacity: 0;
|
|
1292
1927
|
}
|
|
1293
1928
|
|
|
1294
1929
|
& > .redsift-shield {
|
|
@@ -1303,34 +1938,27 @@ const StyledButton = styled.button`
|
|
|
1303
1938
|
$color,
|
|
1304
1939
|
$isActive,
|
|
1305
1940
|
$isDisabled,
|
|
1306
|
-
$isHovered
|
|
1941
|
+
$isHovered,
|
|
1942
|
+
$theme
|
|
1307
1943
|
} = _ref2;
|
|
1308
1944
|
return css`
|
|
1309
1945
|
padding: ${$variant === ButtonVariant.secondary ? '8px 15px' : '9px 16px'};
|
|
1310
1946
|
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
.redsift-icon {
|
|
1321
|
-
color: ${$isActive || $isHovered ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active)` : $isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-primary)`};
|
|
1322
|
-
}
|
|
1323
|
-
` : css`
|
|
1324
|
-
background-color: ${$isActive && $isHovered ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active-hover)` : $isActive ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active)` : $isHovered ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-hover)` : $isDisabled ? '#ECECEC' : `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-primary)`};
|
|
1325
|
-
&,
|
|
1326
|
-
.redsift-icon {
|
|
1327
|
-
color: ${$isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : 'var(--redsift-color-neutral-white)'};
|
|
1328
|
-
}
|
|
1329
|
-
`}
|
|
1947
|
+
background-color: var(
|
|
1948
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
|
|
1949
|
+
);
|
|
1950
|
+
&,
|
|
1951
|
+
.redsift-icon {
|
|
1952
|
+
color: var(
|
|
1953
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
|
|
1954
|
+
);
|
|
1955
|
+
}
|
|
1330
1956
|
|
|
1331
1957
|
${$variant === ButtonVariant.secondary ? css`
|
|
1332
1958
|
border: 1px solid
|
|
1333
|
-
|
|
1959
|
+
var(
|
|
1960
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
|
|
1961
|
+
);
|
|
1334
1962
|
` : ''}
|
|
1335
1963
|
`;
|
|
1336
1964
|
}};
|
|
@@ -1343,38 +1971,28 @@ const StyledButton = styled.button`
|
|
|
1343
1971
|
let {
|
|
1344
1972
|
$variant,
|
|
1345
1973
|
$color,
|
|
1346
|
-
$
|
|
1347
|
-
$
|
|
1974
|
+
$isDisabled,
|
|
1975
|
+
$theme
|
|
1348
1976
|
} = _ref3;
|
|
1349
1977
|
return css`
|
|
1350
1978
|
cursor: ${$isDisabled ? 'default' : 'pointer'};
|
|
1351
1979
|
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
.redsift-icon {
|
|
1362
|
-
color: ${$isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active)`};
|
|
1363
|
-
}
|
|
1364
|
-
` : css`
|
|
1365
|
-
background-color: ${$isActive ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active-hover)` : $isDisabled ? '#ECECEC' : `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-hover)`};
|
|
1366
|
-
&,
|
|
1367
|
-
.redsift-icon {
|
|
1368
|
-
color: ${$isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : 'var(--redsift-color-neutral-white)'};
|
|
1369
|
-
}
|
|
1370
|
-
`}
|
|
1980
|
+
background-color: var(
|
|
1981
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : 'hover'}
|
|
1982
|
+
);
|
|
1983
|
+
&,
|
|
1984
|
+
.redsift-icon {
|
|
1985
|
+
color: var(
|
|
1986
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : 'hover'}
|
|
1987
|
+
);
|
|
1988
|
+
}
|
|
1371
1989
|
|
|
1372
1990
|
${$variant === ButtonVariant.secondary ? css`
|
|
1373
1991
|
border: 1px solid
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1992
|
+
var(
|
|
1993
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : 'hover'}
|
|
1994
|
+
);
|
|
1995
|
+
` : ''}
|
|
1378
1996
|
`;
|
|
1379
1997
|
}};
|
|
1380
1998
|
}
|
|
@@ -1387,35 +2005,26 @@ const StyledButton = styled.button`
|
|
|
1387
2005
|
$variant,
|
|
1388
2006
|
$color,
|
|
1389
2007
|
$isHovered,
|
|
1390
|
-
$isDisabled
|
|
2008
|
+
$isDisabled,
|
|
2009
|
+
$theme
|
|
1391
2010
|
} = _ref4;
|
|
1392
2011
|
return css`
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
.redsift-icon {
|
|
1403
|
-
color: ${$isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active)`};
|
|
1404
|
-
}
|
|
1405
|
-
` : css`
|
|
1406
|
-
background-color: ${$isHovered ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active-hover)` : $isDisabled ? '#ECECEC' : `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-active)`};
|
|
1407
|
-
&,
|
|
1408
|
-
.redsift-icon {
|
|
1409
|
-
color: ${$isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : 'var(--redsift-color-neutral-white)'};
|
|
1410
|
-
}
|
|
1411
|
-
`}
|
|
2012
|
+
background-color: var(
|
|
2013
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : $isHovered ? 'hover' : 'active'}
|
|
2014
|
+
);
|
|
2015
|
+
&,
|
|
2016
|
+
.redsift-icon {
|
|
2017
|
+
color: var(
|
|
2018
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isHovered ? 'hover' : 'active'}
|
|
2019
|
+
);
|
|
2020
|
+
}
|
|
1412
2021
|
|
|
1413
2022
|
${$variant === ButtonVariant.secondary ? css`
|
|
1414
2023
|
border: 1px solid
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
2024
|
+
var(
|
|
2025
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isHovered ? 'hover' : 'active'}
|
|
2026
|
+
);
|
|
2027
|
+
` : ''}
|
|
1419
2028
|
`;
|
|
1420
2029
|
}};
|
|
1421
2030
|
}
|
|
@@ -1482,9 +2091,9 @@ const StyledSpinner = styled.img`
|
|
|
1482
2091
|
|
|
1483
2092
|
var spinner = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzQyODVGNCIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiM0Mjg1RjQiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
1484
2093
|
|
|
1485
|
-
var uncoloredSpinner = 'data:image/svg+xml;base64,
|
|
2094
|
+
var uncoloredSpinner = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzg1ODU4NSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiM4NTg1ODUiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
1486
2095
|
|
|
1487
|
-
const _excluded$O = ["aria-hidden", "aria-label", "className", "isColored", "size"];
|
|
2096
|
+
const _excluded$O = ["aria-hidden", "aria-label", "className", "isColored", "size", "theme"];
|
|
1488
2097
|
const COMPONENT_NAME$O = 'Spinner';
|
|
1489
2098
|
const CLASSNAME$O = 'redsift-shield';
|
|
1490
2099
|
const DEFAULT_PROPS$O = {
|
|
@@ -1526,9 +2135,11 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1526
2135
|
'aria-label': ariaLabel,
|
|
1527
2136
|
className,
|
|
1528
2137
|
isColored,
|
|
1529
|
-
size
|
|
2138
|
+
size,
|
|
2139
|
+
theme: propsTheme
|
|
1530
2140
|
} = props,
|
|
1531
2141
|
forwardedProps = _objectWithoutProperties(props, _excluded$O);
|
|
2142
|
+
const theme = useTheme(propsTheme);
|
|
1532
2143
|
const {
|
|
1533
2144
|
width,
|
|
1534
2145
|
height
|
|
@@ -1544,18 +2155,19 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1544
2155
|
ref: ref,
|
|
1545
2156
|
src: isColored ? spinner : uncoloredSpinner,
|
|
1546
2157
|
width: width,
|
|
1547
|
-
$size: size
|
|
2158
|
+
$size: size,
|
|
2159
|
+
$theme: theme
|
|
1548
2160
|
}));
|
|
1549
2161
|
});
|
|
1550
2162
|
Spinner.className = CLASSNAME$O;
|
|
1551
2163
|
Spinner.defaultProps = DEFAULT_PROPS$O;
|
|
1552
2164
|
Spinner.displayName = COMPONENT_NAME$O;
|
|
1553
2165
|
|
|
1554
|
-
const _excluded$N = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isHovered", "isLoading", "leftIcon", "leftIconProps", "rightIcon", "rightIconProps", "variant"];
|
|
2166
|
+
const _excluded$N = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isHovered", "isLoading", "leftIcon", "leftIconProps", "rightIcon", "rightIconProps", "theme", "variant"];
|
|
1555
2167
|
const COMPONENT_NAME$N = 'Button';
|
|
1556
2168
|
const CLASSNAME$N = 'redsift-button';
|
|
1557
2169
|
const DEFAULT_PROPS$N = {
|
|
1558
|
-
color:
|
|
2170
|
+
color: ButtonsColorPalette.primary,
|
|
1559
2171
|
height: 'fit-content',
|
|
1560
2172
|
variant: ButtonVariant.primary
|
|
1561
2173
|
};
|
|
@@ -1584,10 +2196,12 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1584
2196
|
leftIconProps,
|
|
1585
2197
|
rightIcon,
|
|
1586
2198
|
rightIconProps,
|
|
2199
|
+
theme: propsTheme,
|
|
1587
2200
|
variant
|
|
1588
2201
|
} = props,
|
|
1589
2202
|
forwardedProps = _objectWithoutProperties(props, _excluded$N);
|
|
1590
2203
|
const isDisabled = isLoading || propsIsDisabled || disabled;
|
|
2204
|
+
const theme = useTheme(propsTheme);
|
|
1591
2205
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({}, forwardedProps, {
|
|
1592
2206
|
$color: color,
|
|
1593
2207
|
$fullWidth: fullWidth,
|
|
@@ -1595,6 +2209,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1595
2209
|
$isDisabled: isDisabled,
|
|
1596
2210
|
$isHovered: isHovered,
|
|
1597
2211
|
$isLoading: isLoading,
|
|
2212
|
+
$theme: theme,
|
|
1598
2213
|
$variant: variant,
|
|
1599
2214
|
"aria-disabled": isDisabled,
|
|
1600
2215
|
className: classNames(Button.className, className),
|
|
@@ -1642,11 +2257,11 @@ const StyledIconButton = styled(StyledButton)`
|
|
|
1642
2257
|
}}
|
|
1643
2258
|
`;
|
|
1644
2259
|
|
|
1645
|
-
const _excluded$M = ["className", "color", "disabled", "icon", "iconProps", "isActive", "isDisabled", "isHovered", "isLoading", "variant"];
|
|
2260
|
+
const _excluded$M = ["className", "color", "disabled", "icon", "iconProps", "isActive", "isDisabled", "isHovered", "isLoading", "theme", "variant"];
|
|
1646
2261
|
const COMPONENT_NAME$M = 'IconButton';
|
|
1647
2262
|
const CLASSNAME$M = 'redsift-icon-button';
|
|
1648
2263
|
const DEFAULT_PROPS$M = {
|
|
1649
|
-
color:
|
|
2264
|
+
color: ButtonsColorPalette.primary,
|
|
1650
2265
|
height: 'fit-content',
|
|
1651
2266
|
variant: IconButtonVariant.unstyled
|
|
1652
2267
|
};
|
|
@@ -1669,17 +2284,20 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1669
2284
|
isDisabled: propsIsDisabled,
|
|
1670
2285
|
isHovered,
|
|
1671
2286
|
isLoading,
|
|
2287
|
+
theme: propsTheme,
|
|
1672
2288
|
variant
|
|
1673
2289
|
} = props,
|
|
1674
2290
|
forwardedProps = _objectWithoutProperties(props, _excluded$M);
|
|
1675
2291
|
const isDisabled = props.isLoading || propsIsDisabled || disabled;
|
|
1676
|
-
|
|
2292
|
+
const theme = useTheme(propsTheme);
|
|
2293
|
+
warnIfNoAccessibleLabelFound(props, undefined, 'IconButton');
|
|
1677
2294
|
return /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps, {
|
|
1678
2295
|
$color: isDisabled ? undefined : color,
|
|
1679
2296
|
$isActive: isActive,
|
|
1680
2297
|
$isDisabled: isDisabled,
|
|
1681
2298
|
$isHovered: isHovered,
|
|
1682
2299
|
$isLoading: isLoading,
|
|
2300
|
+
$theme: theme,
|
|
1683
2301
|
$variant: variant,
|
|
1684
2302
|
"aria-disabled": isDisabled,
|
|
1685
2303
|
className: classNames(IconButton.className, className),
|
|
@@ -1709,16 +2327,19 @@ const StyledAlert = styled.div`
|
|
|
1709
2327
|
$hasTitle,
|
|
1710
2328
|
$isClosable,
|
|
1711
2329
|
$isClosed,
|
|
1712
|
-
$variant
|
|
2330
|
+
$variant,
|
|
2331
|
+
$theme
|
|
1713
2332
|
} = _ref;
|
|
1714
2333
|
return css`
|
|
2334
|
+
color: var(--redsift-color-neutral-${$theme === Theme.light ? 'x-dark-grey' : 'white'});
|
|
1715
2335
|
display: ${!$isClosed ? 'block' : 'none'};
|
|
1716
|
-
background-color: var(--redsift-color-
|
|
2336
|
+
background-color: var(--redsift-color-${$theme}-components-alert-${$variant}-background);
|
|
1717
2337
|
|
|
1718
2338
|
.redsift-alert-header__icon-button {
|
|
2339
|
+
background-color: transparent;
|
|
1719
2340
|
padding: 0px;
|
|
1720
2341
|
.redsift-icon {
|
|
1721
|
-
color: var(--redsift-color-neutral-
|
|
2342
|
+
color: var(--redsift-color-neutral-x-dark-grey);
|
|
1722
2343
|
}
|
|
1723
2344
|
|
|
1724
2345
|
&:hover,
|
|
@@ -1783,7 +2404,7 @@ const StyledText = styled.span`
|
|
|
1783
2404
|
return $color && Object.keys(NotificationsColorPalette).indexOf($color) !== -1 ? css`
|
|
1784
2405
|
color: var(--redsift-color-notifications-${$color}-primary);
|
|
1785
2406
|
` : Object.keys(NeutralColorPalette).indexOf($color) !== -1 ? css`
|
|
1786
|
-
color: var(--redsift-color-
|
|
2407
|
+
color: var(--redsift-color-primary-${$color});
|
|
1787
2408
|
` : css`
|
|
1788
2409
|
color: ${$color || css`inherit`};
|
|
1789
2410
|
`;
|
|
@@ -1800,6 +2421,8 @@ const StyledText = styled.span`
|
|
|
1800
2421
|
vertical-align: sub;
|
|
1801
2422
|
` : $as === TextComponent.sup ? css`
|
|
1802
2423
|
vertical-align: super;
|
|
2424
|
+
` : $as === TextComponent.mark ? css`
|
|
2425
|
+
color: var(--redsift-color-neutral-x-dark-grey);
|
|
1803
2426
|
` : ''}
|
|
1804
2427
|
`;
|
|
1805
2428
|
}}
|
|
@@ -1856,9 +2479,18 @@ const StyledText = styled.span`
|
|
|
1856
2479
|
white-space: nowrap;
|
|
1857
2480
|
` : '';
|
|
1858
2481
|
}}
|
|
2482
|
+
|
|
2483
|
+
${_ref5 => {
|
|
2484
|
+
let {
|
|
2485
|
+
wordBreak
|
|
2486
|
+
} = _ref5;
|
|
2487
|
+
return wordBreak ? css`
|
|
2488
|
+
word-break: ${wordBreak};
|
|
2489
|
+
` : '';
|
|
2490
|
+
}}
|
|
1859
2491
|
`;
|
|
1860
2492
|
|
|
1861
|
-
const _excluded$L = ["as", "children", "className", "color", "fontFamily", "fontSize", "fontWeight", "lineHeight", "noWrap", "variant"];
|
|
2493
|
+
const _excluded$L = ["as", "children", "className", "color", "fontFamily", "fontSize", "fontWeight", "lineHeight", "noWrap", "theme", "variant"];
|
|
1862
2494
|
const COMPONENT_NAME$L = 'Text';
|
|
1863
2495
|
const CLASSNAME$L = 'redsift-text';
|
|
1864
2496
|
const DEFAULT_PROPS$L = {
|
|
@@ -1879,9 +2511,11 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1879
2511
|
fontWeight,
|
|
1880
2512
|
lineHeight,
|
|
1881
2513
|
noWrap,
|
|
2514
|
+
theme: propsTheme,
|
|
1882
2515
|
variant
|
|
1883
2516
|
} = props,
|
|
1884
2517
|
forwardedProps = _objectWithoutProperties(props, _excluded$L);
|
|
2518
|
+
const theme = useTheme(propsTheme);
|
|
1885
2519
|
return /*#__PURE__*/React__default.createElement(StyledText, _extends$1({
|
|
1886
2520
|
as: as
|
|
1887
2521
|
}, forwardedProps, {
|
|
@@ -1894,6 +2528,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1894
2528
|
$fontWeight: fontWeight,
|
|
1895
2529
|
$lineHeight: lineHeight,
|
|
1896
2530
|
$noWrap: noWrap,
|
|
2531
|
+
$theme: theme,
|
|
1897
2532
|
$variant: variant
|
|
1898
2533
|
}), children);
|
|
1899
2534
|
});
|
|
@@ -1928,7 +2563,7 @@ const StyledFlexbox = styled.div`
|
|
|
1928
2563
|
::before {
|
|
1929
2564
|
content: '';
|
|
1930
2565
|
position: absolute;
|
|
1931
|
-
background-color: var(--redsift-color-neutral-
|
|
2566
|
+
background-color: var(--redsift-color-neutral-light-grey);
|
|
1932
2567
|
inline-size: 1px;
|
|
1933
2568
|
block-size: 100%;
|
|
1934
2569
|
inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);
|
|
@@ -1937,7 +2572,7 @@ const StyledFlexbox = styled.div`
|
|
|
1937
2572
|
::after {
|
|
1938
2573
|
content: '';
|
|
1939
2574
|
position: absolute;
|
|
1940
|
-
background-color: var(--redsift-color-neutral-
|
|
2575
|
+
background-color: var(--redsift-color-neutral-light-grey);
|
|
1941
2576
|
inline-size: 200vw;
|
|
1942
2577
|
block-size: 1px;
|
|
1943
2578
|
inset-inline-start: -100vw;
|
|
@@ -1949,7 +2584,7 @@ const StyledFlexbox = styled.div`
|
|
|
1949
2584
|
}}
|
|
1950
2585
|
`;
|
|
1951
2586
|
|
|
1952
|
-
const _excluded$K = ["children", "className", "divider", "gap"];
|
|
2587
|
+
const _excluded$K = ["children", "className", "divider", "gap", "theme"];
|
|
1953
2588
|
const COMPONENT_NAME$K = 'Flexbox';
|
|
1954
2589
|
const CLASSNAME$K = 'redsift-flex-box';
|
|
1955
2590
|
const DEFAULT_PROPS$K = {
|
|
@@ -1964,47 +2599,54 @@ const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1964
2599
|
children,
|
|
1965
2600
|
className,
|
|
1966
2601
|
divider,
|
|
1967
|
-
gap
|
|
2602
|
+
gap,
|
|
2603
|
+
theme: propsTheme
|
|
1968
2604
|
} = props,
|
|
1969
2605
|
forwardedProps = _objectWithoutProperties(props, _excluded$K);
|
|
1970
|
-
|
|
2606
|
+
const theme = useTheme(propsTheme);
|
|
2607
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
2608
|
+
value: {
|
|
2609
|
+
theme
|
|
2610
|
+
}
|
|
2611
|
+
}, /*#__PURE__*/React__default.createElement(StyledFlexbox, _extends$1({}, forwardedProps, {
|
|
1971
2612
|
gap: divider ? `${divider.rowGap}px ${divider.colGap}px` : gap,
|
|
1972
2613
|
className: classNames(Flexbox.className, className),
|
|
1973
2614
|
ref: ref,
|
|
1974
|
-
$divider: divider
|
|
1975
|
-
|
|
2615
|
+
$divider: divider,
|
|
2616
|
+
$theme: theme
|
|
2617
|
+
}), children));
|
|
1976
2618
|
});
|
|
1977
2619
|
Flexbox.className = CLASSNAME$K;
|
|
1978
2620
|
Flexbox.defaultProps = DEFAULT_PROPS$K;
|
|
1979
2621
|
Flexbox.displayName = COMPONENT_NAME$K;
|
|
1980
2622
|
|
|
1981
|
-
const _excluded$J = ["children", "className", "isClosable", "isClosed", "onClose", "title", "variant"];
|
|
2623
|
+
const _excluded$J = ["children", "className", "isClosable", "isClosed", "onClose", "theme", "title", "variant"];
|
|
1982
2624
|
const COMPONENT_NAME$J = 'Alert';
|
|
1983
2625
|
const CLASSNAME$J = 'redsift-alert';
|
|
1984
2626
|
const DEFAULT_PROPS$J = {
|
|
1985
2627
|
variant: 'info'
|
|
1986
2628
|
};
|
|
1987
|
-
const getVariant$1 = variant => {
|
|
2629
|
+
const getVariant$1 = (variant, theme) => {
|
|
1988
2630
|
switch (variant) {
|
|
1989
2631
|
case AlertVariant.info:
|
|
1990
2632
|
default:
|
|
1991
2633
|
return {
|
|
1992
|
-
color: NotificationsColorPalette.info,
|
|
2634
|
+
color: theme === Theme.light ? NotificationsColorPalette.info : 'white',
|
|
1993
2635
|
icon: mdiInformation
|
|
1994
2636
|
};
|
|
1995
2637
|
case AlertVariant.error:
|
|
1996
2638
|
return {
|
|
1997
|
-
color: NotificationsColorPalette.error,
|
|
2639
|
+
color: theme === Theme.light ? NotificationsColorPalette.error : 'white',
|
|
1998
2640
|
icon: mdiAlertCircle
|
|
1999
2641
|
};
|
|
2000
2642
|
case AlertVariant.success:
|
|
2001
2643
|
return {
|
|
2002
|
-
color: NotificationsColorPalette.success,
|
|
2644
|
+
color: theme === Theme.light ? NotificationsColorPalette.success : 'white',
|
|
2003
2645
|
icon: mdiCheckCircle
|
|
2004
2646
|
};
|
|
2005
2647
|
case AlertVariant.warning:
|
|
2006
2648
|
return {
|
|
2007
|
-
color: NotificationsColorPalette.warning,
|
|
2649
|
+
color: theme === Theme.light ? NotificationsColorPalette.warning : 'white',
|
|
2008
2650
|
icon: mdiAlert
|
|
2009
2651
|
};
|
|
2010
2652
|
}
|
|
@@ -2020,15 +2662,17 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2020
2662
|
isClosable,
|
|
2021
2663
|
isClosed: propsIsClosed,
|
|
2022
2664
|
onClose,
|
|
2665
|
+
theme: propsTheme,
|
|
2023
2666
|
title,
|
|
2024
2667
|
variant
|
|
2025
2668
|
} = props,
|
|
2026
2669
|
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
2670
|
+
const theme = useTheme(propsTheme);
|
|
2027
2671
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$6);
|
|
2028
2672
|
const {
|
|
2029
2673
|
color,
|
|
2030
2674
|
icon
|
|
2031
|
-
} = getVariant$1(variant);
|
|
2675
|
+
} = getVariant$1(variant, theme);
|
|
2032
2676
|
const [isClosed, setIsClosed] = useState(propsIsClosed);
|
|
2033
2677
|
useEffect(() => {
|
|
2034
2678
|
setIsClosed(propsIsClosed);
|
|
@@ -2047,6 +2691,7 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2047
2691
|
$hasTitle: Boolean(title),
|
|
2048
2692
|
$isClosable: isClosable,
|
|
2049
2693
|
$isClosed: isClosed,
|
|
2694
|
+
$theme: theme,
|
|
2050
2695
|
$variant: variant
|
|
2051
2696
|
}), /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
2052
2697
|
className: `${Alert.className}__header`,
|
|
@@ -2064,7 +2709,8 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2064
2709
|
"aria-label": stringFormatter.format('close'),
|
|
2065
2710
|
className: `${Alert.className}-header__icon-button`,
|
|
2066
2711
|
icon: mdiClose$1,
|
|
2067
|
-
onClick: handleClose
|
|
2712
|
+
onClick: handleClose,
|
|
2713
|
+
color: color
|
|
2068
2714
|
}) : null), children ? /*#__PURE__*/React__default.createElement("div", {
|
|
2069
2715
|
className: `${Alert.className}__content`
|
|
2070
2716
|
}, children) : null);
|
|
@@ -2110,8 +2756,17 @@ const useIsLoaded = () => {
|
|
|
2110
2756
|
const StyledAppBar = styled.header`
|
|
2111
2757
|
align-content: center;
|
|
2112
2758
|
align-items: center;
|
|
2113
|
-
|
|
2114
|
-
|
|
2759
|
+
|
|
2760
|
+
${_ref => {
|
|
2761
|
+
let {
|
|
2762
|
+
$theme
|
|
2763
|
+
} = _ref;
|
|
2764
|
+
return css`
|
|
2765
|
+
background-color: var(--redsift-color-${$theme}-components-app-bar-background);
|
|
2766
|
+
color: var(--redsift-color-${$theme}-components-text);
|
|
2767
|
+
`;
|
|
2768
|
+
}};
|
|
2769
|
+
|
|
2115
2770
|
display: flex;
|
|
2116
2771
|
flex-direction: row;
|
|
2117
2772
|
|
|
@@ -2126,21 +2781,22 @@ const StyledAppBar = styled.header`
|
|
|
2126
2781
|
top: 0;
|
|
2127
2782
|
z-index: var(--redsift-layout-z-index-header);
|
|
2128
2783
|
|
|
2129
|
-
${
|
|
2784
|
+
${_ref2 => {
|
|
2130
2785
|
let {
|
|
2131
|
-
$hasBorder
|
|
2132
|
-
|
|
2786
|
+
$hasBorder,
|
|
2787
|
+
$theme
|
|
2788
|
+
} = _ref2;
|
|
2133
2789
|
return $hasBorder ? css`
|
|
2134
|
-
border-bottom: 2px solid
|
|
2790
|
+
border-bottom: 2px solid var(--redsift-color-${$theme}-components-app-bar-border);
|
|
2135
2791
|
` : css`
|
|
2136
2792
|
border-bottom: none;
|
|
2137
2793
|
`;
|
|
2138
2794
|
}}
|
|
2139
2795
|
|
|
2140
|
-
${
|
|
2796
|
+
${_ref3 => {
|
|
2141
2797
|
let {
|
|
2142
2798
|
$isSidePanelCollapsed
|
|
2143
|
-
} =
|
|
2799
|
+
} = _ref3;
|
|
2144
2800
|
return !$isSidePanelCollapsed ? css`
|
|
2145
2801
|
transform: translate(254px);
|
|
2146
2802
|
width: calc(100% - 254px);
|
|
@@ -2150,10 +2806,10 @@ const StyledAppBar = styled.header`
|
|
|
2150
2806
|
`;
|
|
2151
2807
|
}}
|
|
2152
2808
|
|
|
2153
|
-
${
|
|
2809
|
+
${_ref4 => {
|
|
2154
2810
|
let {
|
|
2155
2811
|
$isLoaded
|
|
2156
|
-
} =
|
|
2812
|
+
} = _ref4;
|
|
2157
2813
|
return $isLoaded ? css`
|
|
2158
2814
|
transition: transform 0.25s ease-out, width 0.25s ease-out;
|
|
2159
2815
|
` : '';
|
|
@@ -2200,7 +2856,12 @@ const StyledAppBar = styled.header`
|
|
|
2200
2856
|
font-size: var(--redsift-typography-h1-font-size) !important;
|
|
2201
2857
|
font-weight: var(--redsift-typography-body-font-weight) !important;
|
|
2202
2858
|
line-height: var(--redsift-typography-h1-line-height) !important;
|
|
2203
|
-
color:
|
|
2859
|
+
color: ${_ref5 => {
|
|
2860
|
+
let {
|
|
2861
|
+
$theme
|
|
2862
|
+
} = _ref5;
|
|
2863
|
+
return css`var(--redsift-color-${$theme}-components-app-bar-breadcrumb-default) !important`;
|
|
2864
|
+
}};
|
|
2204
2865
|
}
|
|
2205
2866
|
|
|
2206
2867
|
h1.redsift-breadcrumb-item {
|
|
@@ -2247,40 +2908,41 @@ const StyledHeading = styled.span`
|
|
|
2247
2908
|
|
|
2248
2909
|
${_ref => {
|
|
2249
2910
|
let {
|
|
2250
|
-
$variant
|
|
2911
|
+
$variant,
|
|
2912
|
+
$theme
|
|
2251
2913
|
} = _ref;
|
|
2252
2914
|
return $variant === 'h1' ? css`
|
|
2253
|
-
color: var(--redsift-color-
|
|
2915
|
+
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
2254
2916
|
font-family: var(--redsift-typography-h1-font-family);
|
|
2255
2917
|
font-size: var(--redsift-typography-h1-font-size);
|
|
2256
2918
|
font-weight: var(--redsift-typography-h1-font-weight);
|
|
2257
2919
|
line-height: var(--redsift-typography-h1-line-height);
|
|
2258
2920
|
` : $variant === 'h2' ? css`
|
|
2259
|
-
color: var(--redsift-color-
|
|
2921
|
+
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
2260
2922
|
font-family: var(--redsift-typography-h2-font-family);
|
|
2261
2923
|
font-size: var(--redsift-typography-h2-font-size);
|
|
2262
2924
|
font-weight: var(--redsift-typography-h2-font-weight);
|
|
2263
2925
|
line-height: var(--redsift-typography-h2-line-height);
|
|
2264
2926
|
` : $variant === 'h3' ? css`
|
|
2265
|
-
color: var(--redsift-color-
|
|
2927
|
+
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
2266
2928
|
font-family: var(--redsift-typography-h3-font-family);
|
|
2267
2929
|
font-size: var(--redsift-typography-h3-font-size);
|
|
2268
2930
|
font-weight: var(--redsift-typography-h3-font-weight);
|
|
2269
2931
|
line-height: var(--redsift-typography-h3-line-height);
|
|
2270
2932
|
` : $variant === 'h4' ? css`
|
|
2271
|
-
color: var(--redsift-color-
|
|
2933
|
+
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
2272
2934
|
font-family: var(--redsift-typography-h4-font-family);
|
|
2273
2935
|
font-size: var(--redsift-typography-h4-font-size);
|
|
2274
2936
|
font-weight: var(--redsift-typography-h4-font-weight);
|
|
2275
2937
|
line-height: var(--redsift-typography-h4-line-height);
|
|
2276
2938
|
` : $variant === 'h5' ? css`
|
|
2277
|
-
color: var(--redsift-color-
|
|
2939
|
+
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
2278
2940
|
font-family: var(--redsift-typography-h5-font-family);
|
|
2279
2941
|
font-size: var(--redsift-typography-h5-font-size);
|
|
2280
2942
|
font-weight: var(--redsift-typography-h5-font-weight);
|
|
2281
2943
|
line-height: var(--redsift-typography-h5-line-height);
|
|
2282
2944
|
` : css`
|
|
2283
|
-
color: var(--redsift-color-
|
|
2945
|
+
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
2284
2946
|
font-family: var(--redsift-typography-body-font-family);
|
|
2285
2947
|
font-size: var(--redsift-typography-body-font-size);
|
|
2286
2948
|
font-weight: var(--redsift-typography-body-font-weight);
|
|
@@ -2300,7 +2962,7 @@ const StyledHeading = styled.span`
|
|
|
2300
2962
|
}}
|
|
2301
2963
|
`;
|
|
2302
2964
|
|
|
2303
|
-
const _excluded$I = ["as", "children", "className", "noWrap", "variant"];
|
|
2965
|
+
const _excluded$I = ["as", "children", "className", "noWrap", "theme", "variant"];
|
|
2304
2966
|
const COMPONENT_NAME$I = 'Heading';
|
|
2305
2967
|
const CLASSNAME$I = 'redsift-heading';
|
|
2306
2968
|
const DEFAULT_PROPS$I = {};
|
|
@@ -2314,15 +2976,18 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2314
2976
|
children,
|
|
2315
2977
|
className,
|
|
2316
2978
|
noWrap,
|
|
2979
|
+
theme: propsTheme,
|
|
2317
2980
|
variant
|
|
2318
2981
|
} = props,
|
|
2319
2982
|
forwardedProps = _objectWithoutProperties(props, _excluded$I);
|
|
2983
|
+
const theme = useTheme(propsTheme);
|
|
2320
2984
|
return /*#__PURE__*/React__default.createElement(StyledHeading, _extends$1({
|
|
2321
2985
|
as: as
|
|
2322
2986
|
}, forwardedProps, {
|
|
2323
2987
|
className: classNames(Heading.className, className),
|
|
2324
2988
|
ref: ref,
|
|
2325
2989
|
$noWrap: noWrap,
|
|
2990
|
+
$theme: theme,
|
|
2326
2991
|
$variant: variant ? variant : as === 'span' ? 'body' : as
|
|
2327
2992
|
}), children);
|
|
2328
2993
|
});
|
|
@@ -2366,8 +3031,18 @@ var intlMessages$3 = {
|
|
|
2366
3031
|
*/
|
|
2367
3032
|
const StyledAppSidePanel = styled.div`
|
|
2368
3033
|
align-items: center;
|
|
2369
|
-
background-color:
|
|
2370
|
-
|
|
3034
|
+
background-color: ${_ref => {
|
|
3035
|
+
let {
|
|
3036
|
+
$theme
|
|
3037
|
+
} = _ref;
|
|
3038
|
+
return css`var(--redsift-color-${$theme}-components-side-navigation-background)`;
|
|
3039
|
+
}};
|
|
3040
|
+
border-right: 4px solid ${_ref2 => {
|
|
3041
|
+
let {
|
|
3042
|
+
$theme
|
|
3043
|
+
} = _ref2;
|
|
3044
|
+
return css`var(--redsift-color-${$theme}-components-side-navigation-right-line)`;
|
|
3045
|
+
}};
|
|
2371
3046
|
box-sizing: border-box;
|
|
2372
3047
|
flex-direction: column;
|
|
2373
3048
|
height: 100%;
|
|
@@ -2376,10 +3051,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2376
3051
|
position: fixed;
|
|
2377
3052
|
top: 0;
|
|
2378
3053
|
transition: width 300ms ease-out;
|
|
2379
|
-
width: ${
|
|
3054
|
+
width: ${_ref3 => {
|
|
2380
3055
|
let {
|
|
2381
3056
|
$variant
|
|
2382
|
-
} =
|
|
3057
|
+
} = _ref3;
|
|
2383
3058
|
return $variant === AppSidePanelVariant.shrinked ? '68px' : '254px';
|
|
2384
3059
|
}};
|
|
2385
3060
|
z-index: var(--redsift-layout-z-index-side-panel);
|
|
@@ -2387,10 +3062,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2387
3062
|
.redsift-app-side-panel__header {
|
|
2388
3063
|
box-sizing: border-box;
|
|
2389
3064
|
transition: padding 300ms ease-out;
|
|
2390
|
-
padding: 18px ${
|
|
3065
|
+
padding: 18px ${_ref4 => {
|
|
2391
3066
|
let {
|
|
2392
3067
|
$variant
|
|
2393
|
-
} =
|
|
3068
|
+
} = _ref4;
|
|
2394
3069
|
return $variant === AppSidePanelVariant.shrinked ? '16px' : '24px';
|
|
2395
3070
|
}};
|
|
2396
3071
|
margin-bottom: 16px;
|
|
@@ -2420,10 +3095,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2420
3095
|
grid-column: 1;
|
|
2421
3096
|
grid-row: 1;
|
|
2422
3097
|
transition: opacity 300ms ease-out;
|
|
2423
|
-
opacity: ${
|
|
3098
|
+
opacity: ${_ref5 => {
|
|
2424
3099
|
let {
|
|
2425
3100
|
$variant
|
|
2426
|
-
} =
|
|
3101
|
+
} = _ref5;
|
|
2427
3102
|
return $variant === AppSidePanelVariant.shrinked ? '0' : '1';
|
|
2428
3103
|
}};
|
|
2429
3104
|
|
|
@@ -2445,10 +3120,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2445
3120
|
grid-column: 1;
|
|
2446
3121
|
grid-row: 1;
|
|
2447
3122
|
transition: opacity 300ms ease-out;
|
|
2448
|
-
opacity: ${
|
|
3123
|
+
opacity: ${_ref6 => {
|
|
2449
3124
|
let {
|
|
2450
3125
|
$variant
|
|
2451
|
-
} =
|
|
3126
|
+
} = _ref6;
|
|
2452
3127
|
return $variant === AppSidePanelVariant.shrinked ? '1' : '0';
|
|
2453
3128
|
}};
|
|
2454
3129
|
padding: 2px;
|
|
@@ -2471,7 +3146,12 @@ const StyledAppSidePanel = styled.div`
|
|
|
2471
3146
|
transition: unset;
|
|
2472
3147
|
}
|
|
2473
3148
|
|
|
2474
|
-
scrollbar-color:
|
|
3149
|
+
scrollbar-color: ${_ref7 => {
|
|
3150
|
+
let {
|
|
3151
|
+
$theme
|
|
3152
|
+
} = _ref7;
|
|
3153
|
+
return css`var(--redsift-color-${$theme}-components-side-navigation-scrollbar-resting) transparent`;
|
|
3154
|
+
}};
|
|
2475
3155
|
scrollbar-width: thin;
|
|
2476
3156
|
|
|
2477
3157
|
&::-webkit-scrollbar {
|
|
@@ -2481,7 +3161,12 @@ const StyledAppSidePanel = styled.div`
|
|
|
2481
3161
|
|
|
2482
3162
|
&::-webkit-scrollbar-thumb {
|
|
2483
3163
|
background-clip: padding-box;
|
|
2484
|
-
background-color:
|
|
3164
|
+
background-color: ${_ref8 => {
|
|
3165
|
+
let {
|
|
3166
|
+
$theme
|
|
3167
|
+
} = _ref8;
|
|
3168
|
+
return css`var(--redsift-color-${$theme}-components-side-navigation-scrollbar-resting)`;
|
|
3169
|
+
}};
|
|
2485
3170
|
border-radius: 0px;
|
|
2486
3171
|
border-left: 2px solid transparent;
|
|
2487
3172
|
border-right: 2px solid transparent;
|
|
@@ -2494,7 +3179,12 @@ const StyledAppSidePanel = styled.div`
|
|
|
2494
3179
|
&::-webkit-scrollbar-thumb:horizontal,
|
|
2495
3180
|
&::-webkit-scrollbar-thumb:vertical {
|
|
2496
3181
|
&:hover {
|
|
2497
|
-
background-color:
|
|
3182
|
+
background-color: ${_ref9 => {
|
|
3183
|
+
let {
|
|
3184
|
+
$theme
|
|
3185
|
+
} = _ref9;
|
|
3186
|
+
return css`var(--redsift-color-${$theme}-components-side-navigation-scrollbar-hover)`;
|
|
3187
|
+
}};
|
|
2498
3188
|
}
|
|
2499
3189
|
}
|
|
2500
3190
|
|
|
@@ -2503,7 +3193,17 @@ const StyledAppSidePanel = styled.div`
|
|
|
2503
3193
|
}
|
|
2504
3194
|
`;
|
|
2505
3195
|
|
|
2506
|
-
|
|
3196
|
+
// --redsift-color-${$theme}-components-side-navigation-background
|
|
3197
|
+
// --redsift-color-${$theme}-components-side-navigation-right-line
|
|
3198
|
+
// --redsift-color-${$theme}-components-side-navigation-current-marker
|
|
3199
|
+
// --redsift-color-${$theme}-components-side-navigation-text
|
|
3200
|
+
// --redsift-color-${$theme}-components-side-navigation-icon
|
|
3201
|
+
// --redsift-color-${$theme}-components-side-navigation-chat-background-hover
|
|
3202
|
+
// --redsift-color-${$theme}-components-side-navigation-chat-background-down
|
|
3203
|
+
|
|
3204
|
+
// ${({ $theme }) => css`var(--redsift-color-${$theme}-components-side-navigation-background)`};
|
|
3205
|
+
|
|
3206
|
+
const _excluded$H = ["children", "className", "featuredElements", "logo", "variant", "onOpen", "iconButtonProps", "iconButtonRef", "theme"];
|
|
2507
3207
|
const COMPONENT_NAME$H = 'AppSidePanel';
|
|
2508
3208
|
const CLASSNAME$H = 'redsift-app-side-panel';
|
|
2509
3209
|
const DEFAULT_PROPS$H = {
|
|
@@ -2522,13 +3222,15 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2522
3222
|
variant,
|
|
2523
3223
|
onOpen,
|
|
2524
3224
|
iconButtonProps,
|
|
2525
|
-
iconButtonRef
|
|
3225
|
+
iconButtonRef,
|
|
3226
|
+
theme: propsTheme
|
|
2526
3227
|
} = props,
|
|
2527
3228
|
forwardedProps = _objectWithoutProperties(props, _excluded$H);
|
|
2528
3229
|
const {
|
|
2529
3230
|
width
|
|
2530
3231
|
} = useWindowSize();
|
|
2531
3232
|
const appContainerState = useContext(AppContainerContext);
|
|
3233
|
+
const theme = useTheme(propsTheme);
|
|
2532
3234
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$3);
|
|
2533
3235
|
useEffect(() => {
|
|
2534
3236
|
if (appContainerState && variant && appContainerState.sidePanelVariant !== variant) {
|
|
@@ -2542,6 +3244,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2542
3244
|
const computedVariant = appContainerState ? appContainerState.sidePanelVariant : variant;
|
|
2543
3245
|
const product = appContainerState && appContainerState.product;
|
|
2544
3246
|
return /*#__PURE__*/React__default.createElement(StyledAppSidePanel, _extends$1({}, forwardedProps, {
|
|
3247
|
+
$theme: theme,
|
|
2545
3248
|
$variant: computedVariant,
|
|
2546
3249
|
className: classNames(AppSidePanel.className, className),
|
|
2547
3250
|
ref: ref
|
|
@@ -2564,7 +3267,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2564
3267
|
icon: mdiMenu,
|
|
2565
3268
|
onClick: handleClose,
|
|
2566
3269
|
ref: iconButtonRef,
|
|
2567
|
-
color: "
|
|
3270
|
+
color: "grey",
|
|
2568
3271
|
isDisabled: computedVariant === 'standard'
|
|
2569
3272
|
}))), featuredElements ? /*#__PURE__*/React__default.createElement("div", {
|
|
2570
3273
|
className: `${AppSidePanel.className}__featured`
|
|
@@ -2625,13 +3328,18 @@ const StyledSideNavigationMenuItemIndicator = styled.div`
|
|
|
2625
3328
|
width: 4px;
|
|
2626
3329
|
height: 38px;
|
|
2627
3330
|
border-radius: 0px 4px 4px 0px;
|
|
2628
|
-
background-color:
|
|
3331
|
+
background-color: ${_ref => {
|
|
3332
|
+
let {
|
|
3333
|
+
$theme
|
|
3334
|
+
} = _ref;
|
|
3335
|
+
return `var(--redsift-color-${$theme}-components-side-navigation-current-marker)`;
|
|
3336
|
+
}};
|
|
2629
3337
|
`;
|
|
2630
3338
|
const StyledSideNavigationMenuItemBorder = styled.div`
|
|
2631
3339
|
position: relative;
|
|
2632
3340
|
width: 100%;
|
|
2633
3341
|
height: 1px;
|
|
2634
|
-
background-color: var(--redsift-color-neutral-
|
|
3342
|
+
background-color: var(--redsift-color-neutral-light-grey);
|
|
2635
3343
|
margin-left: 62px;
|
|
2636
3344
|
margin-top: -1px;
|
|
2637
3345
|
`;
|
|
@@ -2643,17 +3351,18 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2643
3351
|
/**
|
|
2644
3352
|
* Common style
|
|
2645
3353
|
*/
|
|
2646
|
-
${
|
|
3354
|
+
${_ref2 => {
|
|
2647
3355
|
let {
|
|
2648
|
-
$isDisabled
|
|
2649
|
-
|
|
3356
|
+
$isDisabled,
|
|
3357
|
+
$theme
|
|
3358
|
+
} = _ref2;
|
|
2650
3359
|
return !$isDisabled ? css`
|
|
2651
3360
|
& {
|
|
2652
|
-
color: var(--redsift-side-navigation-
|
|
3361
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-resting);
|
|
2653
3362
|
}
|
|
2654
3363
|
` : css`
|
|
2655
3364
|
& {
|
|
2656
|
-
color: var(--redsift-side-navigation-
|
|
3365
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-disabled);
|
|
2657
3366
|
}
|
|
2658
3367
|
`;
|
|
2659
3368
|
}}
|
|
@@ -2674,39 +3383,41 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2674
3383
|
&:focus-visible {
|
|
2675
3384
|
outline: none;
|
|
2676
3385
|
|
|
2677
|
-
${
|
|
3386
|
+
${_ref3 => {
|
|
2678
3387
|
let {
|
|
2679
|
-
$isDisabled
|
|
2680
|
-
|
|
3388
|
+
$isDisabled,
|
|
3389
|
+
$theme
|
|
3390
|
+
} = _ref3;
|
|
2681
3391
|
return !$isDisabled ? css`
|
|
2682
|
-
background-color: var(--redsift-side-navigation-
|
|
3392
|
+
background-color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-background-hover);
|
|
2683
3393
|
& {
|
|
2684
|
-
color: var(--redsift-side-navigation-
|
|
3394
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-hover);
|
|
2685
3395
|
}
|
|
2686
3396
|
` : '';
|
|
2687
3397
|
}}
|
|
2688
3398
|
}
|
|
2689
3399
|
|
|
2690
3400
|
:active {
|
|
2691
|
-
${
|
|
3401
|
+
${_ref4 => {
|
|
2692
3402
|
let {
|
|
2693
|
-
$isDisabled
|
|
2694
|
-
|
|
3403
|
+
$isDisabled,
|
|
3404
|
+
$theme
|
|
3405
|
+
} = _ref4;
|
|
2695
3406
|
return !$isDisabled ? css`
|
|
2696
|
-
background-color: var(--redsift-side-navigation-
|
|
3407
|
+
background-color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-background-active);
|
|
2697
3408
|
` : '';
|
|
2698
3409
|
}}
|
|
2699
3410
|
}
|
|
2700
3411
|
|
|
2701
|
-
${
|
|
3412
|
+
${_ref5 => {
|
|
2702
3413
|
let {
|
|
2703
3414
|
$variant
|
|
2704
|
-
} =
|
|
3415
|
+
} = _ref5;
|
|
2705
3416
|
return css`
|
|
2706
3417
|
@media (prefers-reduced-motion: no-preference) {
|
|
2707
3418
|
:focus-visible {
|
|
2708
3419
|
> span${$variant === SideNavigationMenuBarVariant.shrinked ? '.first' : '.content'} {
|
|
2709
|
-
outline: 2px solid var(--redsift-color-
|
|
3420
|
+
outline: 2px solid var(--redsift-color-primary-n);
|
|
2710
3421
|
transition: outline-offset 75ms ease-out;
|
|
2711
3422
|
}
|
|
2712
3423
|
|
|
@@ -2733,17 +3444,18 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2733
3444
|
`;
|
|
2734
3445
|
}}
|
|
2735
3446
|
|
|
2736
|
-
${
|
|
3447
|
+
${_ref6 => {
|
|
2737
3448
|
let {
|
|
2738
3449
|
$isSecondLevel,
|
|
2739
|
-
$variant
|
|
2740
|
-
|
|
3450
|
+
$variant,
|
|
3451
|
+
$theme
|
|
3452
|
+
} = _ref6;
|
|
2741
3453
|
return !$isSecondLevel ? css`
|
|
2742
3454
|
/**
|
|
2743
3455
|
* First-level items
|
|
2744
3456
|
*/
|
|
2745
3457
|
|
|
2746
|
-
background-color: var(--redsift-side-navigation-
|
|
3458
|
+
background-color: var(--redsift-color-${$theme}-components-side-navigation-background);
|
|
2747
3459
|
height: 38px;
|
|
2748
3460
|
margin-bottom: 16px;
|
|
2749
3461
|
margin-left: -4px;
|
|
@@ -2758,7 +3470,7 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2758
3470
|
* Second-level items
|
|
2759
3471
|
*/
|
|
2760
3472
|
|
|
2761
|
-
background-color: var(--redsift-side-navigation-
|
|
3473
|
+
background-color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-background-secondary);
|
|
2762
3474
|
font-size: var(--redsift-typography-caption-font-size);
|
|
2763
3475
|
padding-bottom: 7px;
|
|
2764
3476
|
padding-left: 62px;
|
|
@@ -2797,20 +3509,21 @@ const StyledBadge = styled.div`
|
|
|
2797
3509
|
${_ref => {
|
|
2798
3510
|
let {
|
|
2799
3511
|
$color,
|
|
2800
|
-
$isReversed
|
|
3512
|
+
$isReversed,
|
|
3513
|
+
$theme
|
|
2801
3514
|
} = _ref;
|
|
2802
3515
|
if ($isReversed) {
|
|
2803
3516
|
return css`
|
|
2804
|
-
background-color: var(--redsift-color-neutral-
|
|
3517
|
+
background-color: var(--redsift-color-neutral-${$theme === Theme.light ? 'white' : 'x-dark-grey'});
|
|
2805
3518
|
|
|
2806
3519
|
&,
|
|
2807
3520
|
.redsift-icon {
|
|
2808
|
-
color: ${Object.keys(
|
|
3521
|
+
color: ${Object.keys(PresentationColorPalette).includes($color) ? `var(--redsift-color-presentation-${$color}-darker);` : Object.keys(NotificationsColorPalette).includes($color) ? `var(--redsift-color-notifications-${$color}-primary);` : css`var(--redsift-color-neutral-x-dark-grey);`};
|
|
2809
3522
|
}
|
|
2810
3523
|
`;
|
|
2811
3524
|
} else {
|
|
2812
3525
|
return css`
|
|
2813
|
-
background-color: ${Object.keys(
|
|
3526
|
+
background-color: ${Object.keys(PresentationColorPalette).includes($color) ? `var(--redsift-color-presentation-${$color}-darker);` : Object.keys(NotificationsColorPalette).includes($color) ? `var(--redsift-color-notifications-${$color}-primary);` : css`var(--redsift-color-neutral-x-dark-grey);`};
|
|
2814
3527
|
&,
|
|
2815
3528
|
.redsift-icon {
|
|
2816
3529
|
color: var(--redsift-color-neutral-white);
|
|
@@ -2872,7 +3585,7 @@ const StyledBadge = styled.div`
|
|
|
2872
3585
|
}}
|
|
2873
3586
|
`;
|
|
2874
3587
|
|
|
2875
|
-
const _excluded$G = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
|
|
3588
|
+
const _excluded$G = ["autoBreak", "children", "className", "color", "isReversed", "theme", "variant"];
|
|
2876
3589
|
const COMPONENT_NAME$G = 'Badge';
|
|
2877
3590
|
const CLASSNAME$G = 'redsift-badge';
|
|
2878
3591
|
const DEFAULT_PROPS$G = {
|
|
@@ -2890,13 +3603,16 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2890
3603
|
className,
|
|
2891
3604
|
color,
|
|
2892
3605
|
isReversed,
|
|
3606
|
+
theme: propsTheme,
|
|
2893
3607
|
variant
|
|
2894
3608
|
} = props,
|
|
2895
3609
|
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
3610
|
+
const theme = useTheme(propsTheme);
|
|
2896
3611
|
return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({}, forwardedProps, {
|
|
2897
3612
|
$autoBreak: autoBreak,
|
|
2898
3613
|
$color: color,
|
|
2899
3614
|
$isReversed: isReversed,
|
|
3615
|
+
$theme: theme,
|
|
2900
3616
|
$variant: variant,
|
|
2901
3617
|
className: classNames(Badge.className, `${Badge.className}-${variant}`, className),
|
|
2902
3618
|
ref: ref
|
|
@@ -2906,7 +3622,7 @@ Badge.className = CLASSNAME$G;
|
|
|
2906
3622
|
Badge.defaultProps = DEFAULT_PROPS$G;
|
|
2907
3623
|
Badge.displayName = COMPONENT_NAME$G;
|
|
2908
3624
|
|
|
2909
|
-
const _excluded$F = ["as", "badge", "badgeProps", "children", "className", "hasBorder", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex"];
|
|
3625
|
+
const _excluded$F = ["as", "badge", "badgeProps", "children", "className", "hasBorder", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "theme"];
|
|
2910
3626
|
const COMPONENT_NAME$F = 'SideNavigationMenuItem';
|
|
2911
3627
|
const CLASSNAME$F = 'redsift-side-navigation-menu-item';
|
|
2912
3628
|
const DEFAULT_PROPS$F = {};
|
|
@@ -2932,12 +3648,14 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2932
3648
|
isSecondLevel,
|
|
2933
3649
|
onClick,
|
|
2934
3650
|
onKeyDown,
|
|
2935
|
-
tabIndex
|
|
3651
|
+
tabIndex,
|
|
3652
|
+
theme: propsTheme
|
|
2936
3653
|
} = props,
|
|
2937
3654
|
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
2938
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
3655
|
+
warnIfNoAccessibleLabelFound(props, [children], 'SideNavigationMenuItem');
|
|
2939
3656
|
const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
|
|
2940
3657
|
const sideNavigationMenuContext = useContext(SideNavigationMenuContext);
|
|
3658
|
+
const theme = useTheme(propsTheme);
|
|
2941
3659
|
const [isFirstChild, setIsFirstChild] = useState(false);
|
|
2942
3660
|
const {
|
|
2943
3661
|
menuItems
|
|
@@ -2965,13 +3683,16 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2965
3683
|
}, /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
2966
3684
|
flexDirection: "row",
|
|
2967
3685
|
gap: "0px"
|
|
2968
|
-
}, !isSecondLevel ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemIndicatorContainer, null, isCurrent ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemIndicator,
|
|
3686
|
+
}, !isSecondLevel ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemIndicatorContainer, null, isCurrent ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemIndicator, {
|
|
3687
|
+
$theme: theme
|
|
3688
|
+
}) : null) : null, /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItem, _extends$1({
|
|
2969
3689
|
as: as,
|
|
2970
3690
|
role: "menuitem"
|
|
2971
3691
|
}, forwardedProps, {
|
|
2972
3692
|
$isCurrent: isCurrent,
|
|
2973
3693
|
$isDisabled: isDisabled,
|
|
2974
3694
|
$isSecondLevel: isSecondLevel,
|
|
3695
|
+
$theme: theme,
|
|
2975
3696
|
$variant: sideNavigationVariant,
|
|
2976
3697
|
"aria-current": isCurrent ? 'page' : undefined,
|
|
2977
3698
|
"aria-disabled": isDisabled,
|
|
@@ -3014,21 +3735,22 @@ const StyledSideNavigationMenu = styled.div`
|
|
|
3014
3735
|
${_ref => {
|
|
3015
3736
|
let {
|
|
3016
3737
|
$isDisabled,
|
|
3017
|
-
$variant
|
|
3738
|
+
$variant,
|
|
3739
|
+
$theme
|
|
3018
3740
|
} = _ref;
|
|
3019
3741
|
return css`
|
|
3020
3742
|
.redsift-side-navigation-menu__menu-container > button {
|
|
3021
3743
|
${!$isDisabled ? css`
|
|
3022
3744
|
& {
|
|
3023
|
-
color: var(--redsift-side-navigation-
|
|
3745
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-resting);
|
|
3024
3746
|
}
|
|
3025
3747
|
` : css`
|
|
3026
3748
|
& {
|
|
3027
|
-
color: var(--redsift-side-navigation-
|
|
3749
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-disabled);
|
|
3028
3750
|
}
|
|
3029
3751
|
`}
|
|
3030
3752
|
align-items: center;
|
|
3031
|
-
background-color: var(--redsift-side-navigation-
|
|
3753
|
+
background-color: var(--redsift-color-${$theme}-components-side-navigation-background);
|
|
3032
3754
|
border: none;
|
|
3033
3755
|
border-radius: 0 4px 4px 0;
|
|
3034
3756
|
display: flex;
|
|
@@ -3050,11 +3772,11 @@ const StyledSideNavigationMenu = styled.div`
|
|
|
3050
3772
|
outline: none;
|
|
3051
3773
|
|
|
3052
3774
|
${!$isDisabled ? css`
|
|
3053
|
-
background-color: var(--redsift-side-navigation-
|
|
3775
|
+
background-color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-background-hover);
|
|
3054
3776
|
&,
|
|
3055
3777
|
.redsift-icon.first,
|
|
3056
3778
|
.redsift-side-navigation-menu__expand-icon {
|
|
3057
|
-
color: var(--redsift-side-navigation-
|
|
3779
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-hover);
|
|
3058
3780
|
}
|
|
3059
3781
|
cursor: pointer;
|
|
3060
3782
|
` : ''}
|
|
@@ -3062,14 +3784,14 @@ const StyledSideNavigationMenu = styled.div`
|
|
|
3062
3784
|
|
|
3063
3785
|
:active {
|
|
3064
3786
|
${!$isDisabled ? css`
|
|
3065
|
-
background-color: var(--redsift-side-navigation-
|
|
3787
|
+
background-color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-background-active);
|
|
3066
3788
|
` : ''}
|
|
3067
3789
|
}
|
|
3068
3790
|
|
|
3069
3791
|
@media (prefers-reduced-motion: no-preference) {
|
|
3070
3792
|
:focus-visible {
|
|
3071
3793
|
> span${$variant === SideNavigationMenuBarVariant.shrinked ? '.first' : '.content'} {
|
|
3072
|
-
outline: 2px solid var(--redsift-color-
|
|
3794
|
+
outline: 2px solid var(--redsift-color-primary-n);
|
|
3073
3795
|
transition: outline-offset 75ms ease-out;
|
|
3074
3796
|
}
|
|
3075
3797
|
|
|
@@ -3106,17 +3828,18 @@ const StyledSideNavigationMenu = styled.div`
|
|
|
3106
3828
|
transition: transform 300ms ease-out;
|
|
3107
3829
|
${_ref2 => {
|
|
3108
3830
|
let {
|
|
3109
|
-
$isDisabled
|
|
3831
|
+
$isDisabled,
|
|
3832
|
+
$theme
|
|
3110
3833
|
} = _ref2;
|
|
3111
3834
|
return !$isDisabled ? css`
|
|
3112
3835
|
&,
|
|
3113
3836
|
.redsift-icon.first {
|
|
3114
|
-
color: var(--redsift-side-navigation-
|
|
3837
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-resting);
|
|
3115
3838
|
}
|
|
3116
3839
|
` : css`
|
|
3117
3840
|
&,
|
|
3118
3841
|
.redsift-icon.first {
|
|
3119
|
-
color: var(--redsift-side-navigation-
|
|
3842
|
+
color: var(--redsift-color-${$theme}-components-side-navigation-menu-item-text-disabled);
|
|
3120
3843
|
}
|
|
3121
3844
|
`;
|
|
3122
3845
|
}}
|
|
@@ -3210,9 +3933,28 @@ const SideNavigationMenuReducer = (state, action) => {
|
|
|
3210
3933
|
*/
|
|
3211
3934
|
const StyledAppContainer = styled.div`
|
|
3212
3935
|
box-sizing: content-box;
|
|
3936
|
+
|
|
3937
|
+
--redsift-color-text-primary: ${_ref => {
|
|
3938
|
+
let {
|
|
3939
|
+
$theme
|
|
3940
|
+
} = _ref;
|
|
3941
|
+
return `var(--redsift-color-${$theme}-components-text-primary);`;
|
|
3942
|
+
}};
|
|
3943
|
+
--redsift-color-text-secondary: ${_ref2 => {
|
|
3944
|
+
let {
|
|
3945
|
+
$theme
|
|
3946
|
+
} = _ref2;
|
|
3947
|
+
return `var(--redsift-color-${$theme}-components-text-secondary);`;
|
|
3948
|
+
}};
|
|
3949
|
+
color: ${_ref3 => {
|
|
3950
|
+
let {
|
|
3951
|
+
$theme
|
|
3952
|
+
} = _ref3;
|
|
3953
|
+
return `var(--redsift-color-${$theme}-components-text-primary)`;
|
|
3954
|
+
}};
|
|
3213
3955
|
`;
|
|
3214
3956
|
|
|
3215
|
-
const _excluded$E = ["children", "className", "locale", "product"];
|
|
3957
|
+
const _excluded$E = ["children", "className", "locale", "product", "theme"];
|
|
3216
3958
|
const COMPONENT_NAME$E = 'AppContainer';
|
|
3217
3959
|
const CLASSNAME$E = 'redsift-app-container';
|
|
3218
3960
|
const DEFAULT_PROPS$E = {};
|
|
@@ -3225,9 +3967,11 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3225
3967
|
children,
|
|
3226
3968
|
className,
|
|
3227
3969
|
locale,
|
|
3228
|
-
product
|
|
3970
|
+
product,
|
|
3971
|
+
theme: propsTheme
|
|
3229
3972
|
} = props,
|
|
3230
3973
|
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
3974
|
+
const theme = useTheme(propsTheme);
|
|
3231
3975
|
const [sidePanelVariant, setSidePanelVariant] = useState(AppSidePanelVariant.standard);
|
|
3232
3976
|
const [breadcrumbs, setBreadcrumbs] = useState();
|
|
3233
3977
|
const state = {
|
|
@@ -3247,20 +3991,25 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3247
3991
|
};
|
|
3248
3992
|
return /*#__PURE__*/React__default.createElement(StyledAppContainer, _extends$1({}, forwardedProps, {
|
|
3249
3993
|
id: "redsift-app-container",
|
|
3994
|
+
$theme: theme,
|
|
3250
3995
|
$product: product,
|
|
3251
3996
|
className: classNames(AppContainer.className, className),
|
|
3252
3997
|
ref: ref
|
|
3253
3998
|
}), /*#__PURE__*/React__default.createElement(AppContainerContext.Provider, {
|
|
3254
3999
|
value: state
|
|
4000
|
+
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
4001
|
+
value: {
|
|
4002
|
+
theme
|
|
4003
|
+
}
|
|
3255
4004
|
}, /*#__PURE__*/React__default.createElement(I18nProvider, {
|
|
3256
4005
|
locale: locale
|
|
3257
|
-
}, children)));
|
|
4006
|
+
}, children))));
|
|
3258
4007
|
});
|
|
3259
4008
|
AppContainer.className = CLASSNAME$E;
|
|
3260
4009
|
AppContainer.defaultProps = DEFAULT_PROPS$E;
|
|
3261
4010
|
AppContainer.displayName = COMPONENT_NAME$E;
|
|
3262
4011
|
|
|
3263
|
-
const _excluded$D = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "id", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex"];
|
|
4012
|
+
const _excluded$D = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "id", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "theme"];
|
|
3264
4013
|
const COMPONENT_NAME$D = 'SideNavigationMenu';
|
|
3265
4014
|
const CLASSNAME$D = 'redsift-side-navigation-menu';
|
|
3266
4015
|
const DEFAULT_PROPS$D = {};
|
|
@@ -3284,14 +4033,16 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3284
4033
|
isExpanded: propsIsExpanded,
|
|
3285
4034
|
menuProps = {},
|
|
3286
4035
|
menuRef = useRef(),
|
|
3287
|
-
tabIndex
|
|
4036
|
+
tabIndex,
|
|
4037
|
+
theme: propsTheme
|
|
3288
4038
|
} = props,
|
|
3289
4039
|
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
3290
4040
|
const [_id] = useId$1();
|
|
3291
4041
|
const id = propsId !== null && propsId !== void 0 ? propsId : _id;
|
|
3292
|
-
warnIfNoAccessibleLabelFound(props);
|
|
4042
|
+
warnIfNoAccessibleLabelFound(props, undefined, 'SideNavigationMenu');
|
|
3293
4043
|
const appContainerState = useContext(AppContainerContext);
|
|
3294
4044
|
const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
|
|
4045
|
+
const theme = useTheme(propsTheme);
|
|
3295
4046
|
const [isFirstChild, setIsFirstChild] = useState(false);
|
|
3296
4047
|
const currentPosition = useRef(-1);
|
|
3297
4048
|
const {
|
|
@@ -3536,11 +4287,16 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3536
4287
|
}
|
|
3537
4288
|
};
|
|
3538
4289
|
const sideNavigationVariant = sideNavigationMenuBarContext === null || sideNavigationMenuBarContext === void 0 ? void 0 : sideNavigationMenuBarContext.sideNavigationMenuBarVariant;
|
|
3539
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4290
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
4291
|
+
value: {
|
|
4292
|
+
theme
|
|
4293
|
+
}
|
|
4294
|
+
}, /*#__PURE__*/React__default.createElement(StyledSideNavigationMenu, _extends$1({}, forwardedProps, {
|
|
3540
4295
|
$isDisabled: isDisabled,
|
|
3541
4296
|
$isExpanded: isExpanded,
|
|
3542
|
-
$variant: sideNavigationVariant,
|
|
3543
4297
|
$numberOfChildren: renderedMenuItems.length,
|
|
4298
|
+
$theme: theme,
|
|
4299
|
+
$variant: sideNavigationVariant,
|
|
3544
4300
|
className: classNames(SideNavigationMenu.className, className),
|
|
3545
4301
|
id: id,
|
|
3546
4302
|
ref: ref,
|
|
@@ -3553,6 +4309,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3553
4309
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3554
4310
|
className: `${SideNavigationMenu.className}__current-indicator-container`
|
|
3555
4311
|
}, currentPosition.current !== -1 ? /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItemIndicator, {
|
|
4312
|
+
$theme: theme,
|
|
3556
4313
|
style: {
|
|
3557
4314
|
position: 'relative',
|
|
3558
4315
|
top: isExpanded ? `${38 + currentPosition.current * 38}px` : 0,
|
|
@@ -3588,7 +4345,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3588
4345
|
"aria-orientation": "vertical",
|
|
3589
4346
|
ref: menuRef,
|
|
3590
4347
|
role: "menu"
|
|
3591
|
-
}, menuItemListEventHandler), renderedMenuItems)))));
|
|
4348
|
+
}, menuItemListEventHandler), renderedMenuItems))))));
|
|
3592
4349
|
});
|
|
3593
4350
|
SideNavigationMenu.className = CLASSNAME$D;
|
|
3594
4351
|
SideNavigationMenu.defaultProps = DEFAULT_PROPS$D;
|
|
@@ -3598,23 +4355,28 @@ SideNavigationMenu.displayName = COMPONENT_NAME$D;
|
|
|
3598
4355
|
* Component style.
|
|
3599
4356
|
*/
|
|
3600
4357
|
const StyledSideNavigationMenuBar = styled.nav`
|
|
3601
|
-
background-color:
|
|
4358
|
+
background-color: ${_ref => {
|
|
4359
|
+
let {
|
|
4360
|
+
$theme
|
|
4361
|
+
} = _ref;
|
|
4362
|
+
return `var(--redsift-color-${$theme}-components-side-navigation-background)`;
|
|
4363
|
+
}};
|
|
3602
4364
|
box-sizing: content-box;
|
|
3603
4365
|
overflow-x: hidden;
|
|
3604
4366
|
overflow-y: auto;
|
|
3605
4367
|
scrollbar-gutter: stable;
|
|
3606
4368
|
transition: width 300ms ease-out;
|
|
3607
|
-
width: ${
|
|
4369
|
+
width: ${_ref2 => {
|
|
3608
4370
|
let {
|
|
3609
4371
|
$variant
|
|
3610
|
-
} =
|
|
4372
|
+
} = _ref2;
|
|
3611
4373
|
return $variant === SideNavigationMenuBarVariant.shrinked ? '64px' : '250px';
|
|
3612
4374
|
}};
|
|
3613
4375
|
|
|
3614
|
-
${
|
|
4376
|
+
${_ref3 => {
|
|
3615
4377
|
let {
|
|
3616
4378
|
$marginTop = 0
|
|
3617
|
-
} =
|
|
4379
|
+
} = _ref3;
|
|
3618
4380
|
return $marginTop ? css`
|
|
3619
4381
|
height: calc(100% - ${$marginTop}px);
|
|
3620
4382
|
` : '';
|
|
@@ -3626,7 +4388,12 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
3626
4388
|
padding: unset;
|
|
3627
4389
|
}
|
|
3628
4390
|
|
|
3629
|
-
scrollbar-color:
|
|
4391
|
+
scrollbar-color: ${_ref4 => {
|
|
4392
|
+
let {
|
|
4393
|
+
$theme
|
|
4394
|
+
} = _ref4;
|
|
4395
|
+
return `var(--redsift-color-${$theme}-components-side-navigation-scrollbar-resting) transparent`;
|
|
4396
|
+
}};
|
|
3630
4397
|
scrollbar-width: thin;
|
|
3631
4398
|
|
|
3632
4399
|
&::-webkit-scrollbar {
|
|
@@ -3636,7 +4403,12 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
3636
4403
|
|
|
3637
4404
|
&::-webkit-scrollbar-thumb {
|
|
3638
4405
|
background-clip: padding-box;
|
|
3639
|
-
background-color:
|
|
4406
|
+
background-color: ${_ref5 => {
|
|
4407
|
+
let {
|
|
4408
|
+
$theme
|
|
4409
|
+
} = _ref5;
|
|
4410
|
+
return `var(--redsift-color-${$theme}-components-side-navigation-scrollbar-resting)`;
|
|
4411
|
+
}};
|
|
3640
4412
|
border-radius: 0px;
|
|
3641
4413
|
border-left: 2px solid transparent;
|
|
3642
4414
|
border-right: 2px solid transparent;
|
|
@@ -3649,7 +4421,12 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
3649
4421
|
&::-webkit-scrollbar-thumb:horizontal,
|
|
3650
4422
|
&::-webkit-scrollbar-thumb:vertical {
|
|
3651
4423
|
&:hover {
|
|
3652
|
-
background-color:
|
|
4424
|
+
background-color: ${_ref6 => {
|
|
4425
|
+
let {
|
|
4426
|
+
$theme
|
|
4427
|
+
} = _ref6;
|
|
4428
|
+
return `var(--redsift-color-${$theme}-components-side-navigation-scrollbar-hover)`;
|
|
4429
|
+
}};
|
|
3653
4430
|
}
|
|
3654
4431
|
}
|
|
3655
4432
|
|
|
@@ -3658,7 +4435,7 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
3658
4435
|
}
|
|
3659
4436
|
`;
|
|
3660
4437
|
|
|
3661
|
-
const _excluded$C = ["aria-label", "aria-labelledby", "canHaveMultipleMenuOpenAtOnce", "children", "className", "isDisabled", "menubarProps", "menubarRef", "variant"];
|
|
4438
|
+
const _excluded$C = ["aria-label", "aria-labelledby", "canHaveMultipleMenuOpenAtOnce", "children", "className", "isDisabled", "menubarProps", "menubarRef", "theme", "variant"];
|
|
3662
4439
|
const COMPONENT_NAME$C = 'SideNavigationMenuBar';
|
|
3663
4440
|
const CLASSNAME$C = 'redsift-side-navigation-menu-bar';
|
|
3664
4441
|
const DEFAULT_PROPS$C = {
|
|
@@ -3690,11 +4467,13 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3690
4467
|
isDisabled,
|
|
3691
4468
|
menubarProps = {},
|
|
3692
4469
|
menubarRef = useRef(),
|
|
4470
|
+
theme: propsTheme,
|
|
3693
4471
|
variant: propsVariant
|
|
3694
4472
|
} = props,
|
|
3695
4473
|
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
3696
|
-
warnIfNoAccessibleLabelFound(props);
|
|
4474
|
+
warnIfNoAccessibleLabelFound(props, undefined, 'SideNavigationMenuBar');
|
|
3697
4475
|
const appContainerState = useContext(AppContainerContext);
|
|
4476
|
+
const theme = useTheme(propsTheme);
|
|
3698
4477
|
const {
|
|
3699
4478
|
top
|
|
3700
4479
|
} = useBoundingClientRect(navRef, [children]);
|
|
@@ -3831,9 +4610,14 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3831
4610
|
currentNode === null || currentNode === void 0 ? void 0 : currentNode.focus();
|
|
3832
4611
|
}
|
|
3833
4612
|
}, [currentIndex, previousIndex, menuItems]);
|
|
3834
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4613
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
4614
|
+
value: {
|
|
4615
|
+
theme
|
|
4616
|
+
}
|
|
4617
|
+
}, /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuBar, _extends$1({}, forwardedProps, {
|
|
3835
4618
|
$isDisabled: isDisabled,
|
|
3836
4619
|
$marginTop: top,
|
|
4620
|
+
$theme: theme,
|
|
3837
4621
|
$variant: variant,
|
|
3838
4622
|
"aria-label": ariaLabel,
|
|
3839
4623
|
"aria-labelledby": ariaLabelledby,
|
|
@@ -3848,7 +4632,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3848
4632
|
onKeyDown: keyDown,
|
|
3849
4633
|
ref: menubarRef,
|
|
3850
4634
|
role: "menubar"
|
|
3851
|
-
}), navItems)));
|
|
4635
|
+
}), navItems))));
|
|
3852
4636
|
});
|
|
3853
4637
|
SideNavigationMenuBar.className = CLASSNAME$C;
|
|
3854
4638
|
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$C;
|
|
@@ -3954,11 +4738,11 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
3954
4738
|
} = _ref;
|
|
3955
4739
|
return css`
|
|
3956
4740
|
${$isDisabled ? `
|
|
3957
|
-
color: var(--redsift-color-neutral-
|
|
4741
|
+
color: var(--redsift-color-neutral-mid-grey);
|
|
3958
4742
|
` : $isCurrent ? `
|
|
3959
|
-
color: var(--redsift-color-
|
|
4743
|
+
color: var(--redsift-color-primary-n);
|
|
3960
4744
|
` : `
|
|
3961
|
-
color: var(--redsift-color-
|
|
4745
|
+
color: var(--redsift-redsift-color-text-primary);
|
|
3962
4746
|
`}
|
|
3963
4747
|
|
|
3964
4748
|
${!$isDisabled && !$isCurrent && css`
|
|
@@ -3973,11 +4757,11 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
3973
4757
|
}}
|
|
3974
4758
|
|
|
3975
4759
|
&:focus-visible {
|
|
3976
|
-
outline: 2px solid var(--redsift-color-
|
|
4760
|
+
outline: 2px solid var(--redsift-redsift-color-text-primary);
|
|
3977
4761
|
}
|
|
3978
4762
|
`;
|
|
3979
4763
|
|
|
3980
|
-
const _excluded$A = ["as", "children", "className", "href", "isCurrent", "isDisabled"];
|
|
4764
|
+
const _excluded$A = ["as", "children", "className", "href", "isCurrent", "isDisabled", "theme"];
|
|
3981
4765
|
const COMPONENT_NAME$B = 'BreadcrumbItem';
|
|
3982
4766
|
const CLASSNAME$B = 'redsift-breadcrumb-item';
|
|
3983
4767
|
const DEFAULT_PROPS$B = {};
|
|
@@ -3992,10 +4776,12 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3992
4776
|
className,
|
|
3993
4777
|
href,
|
|
3994
4778
|
isCurrent,
|
|
3995
|
-
isDisabled
|
|
4779
|
+
isDisabled,
|
|
4780
|
+
theme: propsTheme
|
|
3996
4781
|
} = props,
|
|
3997
4782
|
forwardedProps = _objectWithoutProperties(props, _excluded$A);
|
|
3998
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
4783
|
+
warnIfNoAccessibleLabelFound(props, [children], 'BreadcrumbItem');
|
|
4784
|
+
const theme = useTheme(propsTheme);
|
|
3999
4785
|
return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
|
|
4000
4786
|
as: as || 'a',
|
|
4001
4787
|
role: "link",
|
|
@@ -4003,6 +4789,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4003
4789
|
}, forwardedProps, {
|
|
4004
4790
|
$isCurrent: isCurrent,
|
|
4005
4791
|
$isDisabled: isDisabled,
|
|
4792
|
+
$theme: theme,
|
|
4006
4793
|
"aria-current": isCurrent ? 'page' : undefined,
|
|
4007
4794
|
"aria-disabled": isDisabled || isCurrent,
|
|
4008
4795
|
className: classNames(BreadcrumbItem.className, className),
|
|
@@ -4035,18 +4822,19 @@ const StyledBreadcrumbs = styled.nav`
|
|
|
4035
4822
|
|
|
4036
4823
|
${_ref => {
|
|
4037
4824
|
let {
|
|
4038
|
-
$isDisabled
|
|
4825
|
+
$isDisabled,
|
|
4826
|
+
$theme
|
|
4039
4827
|
} = _ref;
|
|
4040
4828
|
return $isDisabled ? css`
|
|
4041
|
-
color: var(--redsift-color-neutral-
|
|
4829
|
+
color: var(--redsift-color-neutral-mid-grey);
|
|
4042
4830
|
` : css`
|
|
4043
|
-
color: var(--redsift-color-
|
|
4831
|
+
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
4044
4832
|
`;
|
|
4045
4833
|
}}
|
|
4046
4834
|
}
|
|
4047
4835
|
`;
|
|
4048
4836
|
|
|
4049
|
-
const _excluded$z = ["children", "className", "isDisabled"];
|
|
4837
|
+
const _excluded$z = ["children", "className", "isDisabled", "theme"];
|
|
4050
4838
|
const COMPONENT_NAME$A = 'Breadcrumbs';
|
|
4051
4839
|
const CLASSNAME$A = 'redsift-breadcrumbs';
|
|
4052
4840
|
const DEFAULT_PROPS$A = {};
|
|
@@ -4058,10 +4846,12 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4058
4846
|
const {
|
|
4059
4847
|
children,
|
|
4060
4848
|
className,
|
|
4061
|
-
isDisabled
|
|
4849
|
+
isDisabled,
|
|
4850
|
+
theme: propsTheme
|
|
4062
4851
|
} = props,
|
|
4063
4852
|
forwardedProps = _objectWithoutProperties(props, _excluded$z);
|
|
4064
|
-
warnIfNoAccessibleLabelFound(props);
|
|
4853
|
+
warnIfNoAccessibleLabelFound(props, undefined, 'Breadcrumbs');
|
|
4854
|
+
const theme = useTheme(propsTheme);
|
|
4065
4855
|
const childArray = filterComponents([Breadcrumbs.Item])(children);
|
|
4066
4856
|
const breadcrumbItems = childArray.map((child, index) => {
|
|
4067
4857
|
var _child$key;
|
|
@@ -4077,11 +4867,16 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4077
4867
|
className: `${BaseBreadcrumbs.className}__separator`
|
|
4078
4868
|
}, '/') : null);
|
|
4079
4869
|
});
|
|
4080
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4870
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
4871
|
+
value: {
|
|
4872
|
+
theme
|
|
4873
|
+
}
|
|
4874
|
+
}, /*#__PURE__*/React__default.createElement(StyledBreadcrumbs, _extends$1({}, forwardedProps, {
|
|
4081
4875
|
$isDisabled: isDisabled,
|
|
4876
|
+
$theme: theme,
|
|
4082
4877
|
className: classNames(BaseBreadcrumbs.className, className),
|
|
4083
4878
|
ref: ref
|
|
4084
|
-
}), /*#__PURE__*/React__default.createElement("ol", null, breadcrumbItems));
|
|
4879
|
+
}), /*#__PURE__*/React__default.createElement("ol", null, breadcrumbItems)));
|
|
4085
4880
|
});
|
|
4086
4881
|
BaseBreadcrumbs.className = CLASSNAME$A;
|
|
4087
4882
|
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$A;
|
|
@@ -4090,7 +4885,7 @@ const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
|
|
|
4090
4885
|
Item: BreadcrumbItem
|
|
4091
4886
|
});
|
|
4092
4887
|
|
|
4093
|
-
const _excluded$y = ["breadcrumbs", "children", "className", "iconButtonProps", "iconButtonRef", "fallbackTitle", "title"];
|
|
4888
|
+
const _excluded$y = ["breadcrumbs", "children", "className", "iconButtonProps", "iconButtonRef", "fallbackTitle", "theme", "title"];
|
|
4094
4889
|
const COMPONENT_NAME$z = 'AppBar';
|
|
4095
4890
|
const CLASSNAME$z = 'redsift-app-bar';
|
|
4096
4891
|
const DEFAULT_PROPS$z = {};
|
|
@@ -4107,6 +4902,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4107
4902
|
iconButtonProps,
|
|
4108
4903
|
iconButtonRef,
|
|
4109
4904
|
fallbackTitle,
|
|
4905
|
+
theme: propsTheme,
|
|
4110
4906
|
title: propsTitle
|
|
4111
4907
|
} = props,
|
|
4112
4908
|
forwardedProps = _objectWithoutProperties(props, _excluded$y);
|
|
@@ -4120,11 +4916,13 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4120
4916
|
isLoaded
|
|
4121
4917
|
} = useIsLoaded();
|
|
4122
4918
|
const appContainerState = useContext(AppContainerContext);
|
|
4919
|
+
const theme = useTheme(propsTheme);
|
|
4123
4920
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$4);
|
|
4124
4921
|
return /*#__PURE__*/React__default.createElement(StyledAppBar, _extends$1({}, forwardedProps, {
|
|
4125
4922
|
$hasBorder: scroll,
|
|
4126
4923
|
$isLoaded: isLoaded,
|
|
4127
4924
|
$isSidePanelCollapsed: appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true,
|
|
4925
|
+
$theme: theme,
|
|
4128
4926
|
className: classNames(AppBar.className, className),
|
|
4129
4927
|
ref: ref
|
|
4130
4928
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -4142,7 +4940,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4142
4940
|
icon: mdiMenuOpen,
|
|
4143
4941
|
onClick: appContainerState.collapseSidePanel,
|
|
4144
4942
|
ref: iconButtonRef,
|
|
4145
|
-
color:
|
|
4943
|
+
color: theme === Theme.dark ? 'light' : 'dark'
|
|
4146
4944
|
}))) : null, propsTitle && typeof propsTitle !== 'string' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, propsTitle) : typeof propsTitle === 'string' ? /*#__PURE__*/React__default.createElement(Heading, {
|
|
4147
4945
|
as: "h1"
|
|
4148
4946
|
}, propsTitle) : breadcrumbs ? /*#__PURE__*/React__default.createElement(Breadcrumbs, {
|
|
@@ -4172,6 +4970,14 @@ const StyledAppContent = styled.main`
|
|
|
4172
4970
|
padding: 16px 64px;
|
|
4173
4971
|
${baseContainer}
|
|
4174
4972
|
|
|
4973
|
+
${_ref => {
|
|
4974
|
+
let {
|
|
4975
|
+
$theme
|
|
4976
|
+
} = _ref;
|
|
4977
|
+
return $theme ? css`
|
|
4978
|
+
backgroundcolor: var(--redsift-color-${$theme}-components-page-background);
|
|
4979
|
+
` : '';
|
|
4980
|
+
}}
|
|
4175
4981
|
box-sizing: border-box;
|
|
4176
4982
|
min-height: calc(100vh - 92px);
|
|
4177
4983
|
|
|
@@ -4179,10 +4985,10 @@ const StyledAppContent = styled.main`
|
|
|
4179
4985
|
padding: 0px;
|
|
4180
4986
|
}
|
|
4181
4987
|
|
|
4182
|
-
${
|
|
4988
|
+
${_ref2 => {
|
|
4183
4989
|
let {
|
|
4184
4990
|
$isSidePanelCollapsed
|
|
4185
|
-
} =
|
|
4991
|
+
} = _ref2;
|
|
4186
4992
|
return !$isSidePanelCollapsed ? css`
|
|
4187
4993
|
transform: translate(254px);
|
|
4188
4994
|
width: calc(100% - 254px);
|
|
@@ -4192,17 +4998,17 @@ const StyledAppContent = styled.main`
|
|
|
4192
4998
|
`;
|
|
4193
4999
|
}}
|
|
4194
5000
|
|
|
4195
|
-
${
|
|
5001
|
+
${_ref3 => {
|
|
4196
5002
|
let {
|
|
4197
5003
|
$isLoaded
|
|
4198
|
-
} =
|
|
5004
|
+
} = _ref3;
|
|
4199
5005
|
return $isLoaded ? css`
|
|
4200
5006
|
transition: transform 0.25s ease-out, width 0.25s ease-out;
|
|
4201
5007
|
` : '';
|
|
4202
5008
|
}}
|
|
4203
5009
|
`;
|
|
4204
5010
|
|
|
4205
|
-
const _excluded$x = ["children", "className"];
|
|
5011
|
+
const _excluded$x = ["children", "className", "theme"];
|
|
4206
5012
|
const COMPONENT_NAME$y = 'AppContent';
|
|
4207
5013
|
const CLASSNAME$y = 'redsift-app-content';
|
|
4208
5014
|
const DEFAULT_PROPS$y = {};
|
|
@@ -4213,16 +5019,19 @@ const DEFAULT_PROPS$y = {};
|
|
|
4213
5019
|
const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4214
5020
|
const {
|
|
4215
5021
|
children,
|
|
4216
|
-
className
|
|
5022
|
+
className,
|
|
5023
|
+
theme: propsTheme
|
|
4217
5024
|
} = props,
|
|
4218
5025
|
forwardedProps = _objectWithoutProperties(props, _excluded$x);
|
|
4219
5026
|
const {
|
|
4220
5027
|
isLoaded
|
|
4221
5028
|
} = useIsLoaded();
|
|
4222
5029
|
const appContainerState = useContext(AppContainerContext);
|
|
5030
|
+
const theme = useTheme(propsTheme);
|
|
4223
5031
|
return /*#__PURE__*/React__default.createElement(StyledAppContent, _extends$1({}, forwardedProps, {
|
|
4224
5032
|
$isLoaded: isLoaded,
|
|
4225
5033
|
$isSidePanelCollapsed: appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true,
|
|
5034
|
+
$theme: theme,
|
|
4226
5035
|
className: classNames(AppContent.className, className),
|
|
4227
5036
|
ref: ref
|
|
4228
5037
|
}), children);
|
|
@@ -4265,7 +5074,8 @@ const StyledButtonGroup = styled.div`
|
|
|
4265
5074
|
${_ref2 => {
|
|
4266
5075
|
let {
|
|
4267
5076
|
$color,
|
|
4268
|
-
$variant
|
|
5077
|
+
$variant,
|
|
5078
|
+
$theme
|
|
4269
5079
|
} = _ref2;
|
|
4270
5080
|
return css`
|
|
4271
5081
|
${$variant === ButtonGroupVariant.secondary ? css`
|
|
@@ -4294,7 +5104,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4294
5104
|
border-top-right-radius: 0;
|
|
4295
5105
|
border-bottom-right-radius: 0;
|
|
4296
5106
|
border-right: 1px solid rgba(0, 0, 0, 0.23);
|
|
4297
|
-
border-color: ${`var(
|
|
5107
|
+
border-color: ${`var(
|
|
5108
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-default
|
|
5109
|
+
)`};
|
|
4298
5110
|
}
|
|
4299
5111
|
|
|
4300
5112
|
.middle-button {
|
|
@@ -4303,7 +5115,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4303
5115
|
border-top-right-radius: 0;
|
|
4304
5116
|
border-bottom-right-radius: 0;
|
|
4305
5117
|
border-right: 1px solid rgba(0, 0, 0, 0.23);
|
|
4306
|
-
border-color: ${`var(
|
|
5118
|
+
border-color: ${`var(
|
|
5119
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-default
|
|
5120
|
+
)`};
|
|
4307
5121
|
}
|
|
4308
5122
|
|
|
4309
5123
|
.last-button {
|
|
@@ -4315,7 +5129,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4315
5129
|
border-top-right-radius: 0;
|
|
4316
5130
|
border-bottom-right-radius: 0;
|
|
4317
5131
|
border-right: 1px solid #bdbdbd;
|
|
4318
|
-
border-color: ${`var(
|
|
5132
|
+
border-color: ${`var(
|
|
5133
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-hover
|
|
5134
|
+
)`};
|
|
4319
5135
|
}
|
|
4320
5136
|
|
|
4321
5137
|
.middle-button {
|
|
@@ -4324,7 +5140,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4324
5140
|
border-top-right-radius: 0;
|
|
4325
5141
|
border-bottom-right-radius: 0;
|
|
4326
5142
|
border-right: 1px solid #bdbdbd;
|
|
4327
|
-
border-color: ${`var(
|
|
5143
|
+
border-color: ${`var(
|
|
5144
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-hover
|
|
5145
|
+
)`};
|
|
4328
5146
|
}
|
|
4329
5147
|
|
|
4330
5148
|
.last-button {
|
|
@@ -4336,10 +5154,11 @@ const StyledButtonGroup = styled.div`
|
|
|
4336
5154
|
}};
|
|
4337
5155
|
`;
|
|
4338
5156
|
|
|
4339
|
-
const _excluded$w = ["children", "className", "color", "variant"];
|
|
5157
|
+
const _excluded$w = ["children", "className", "color", "theme", "variant"];
|
|
4340
5158
|
const COMPONENT_NAME$x = 'ButtonGroup';
|
|
4341
5159
|
const CLASSNAME$x = 'redsift-button-group';
|
|
4342
5160
|
const DEFAULT_PROPS$x = {
|
|
5161
|
+
color: 'primary',
|
|
4343
5162
|
variant: 'primary'
|
|
4344
5163
|
};
|
|
4345
5164
|
|
|
@@ -4351,9 +5170,11 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4351
5170
|
children,
|
|
4352
5171
|
className,
|
|
4353
5172
|
color,
|
|
5173
|
+
theme: propsTheme,
|
|
4354
5174
|
variant
|
|
4355
5175
|
} = props,
|
|
4356
5176
|
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
5177
|
+
const theme = useTheme(propsTheme);
|
|
4357
5178
|
|
|
4358
5179
|
/**
|
|
4359
5180
|
* Create an array containing only valid children being either Button, IconButton, ButtonLink or MenuButton.
|
|
@@ -4365,6 +5186,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4365
5186
|
var _child$key;
|
|
4366
5187
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
4367
5188
|
color,
|
|
5189
|
+
theme,
|
|
4368
5190
|
variant,
|
|
4369
5191
|
key: (_child$key = child.key) !== null && _child$key !== void 0 ? _child$key : index,
|
|
4370
5192
|
triggerClassName: index === 0 ? 'first-button' : index === childArray.length - 1 ? 'last-button' : 'middle-button'
|
|
@@ -4372,6 +5194,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4372
5194
|
}
|
|
4373
5195
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
4374
5196
|
color,
|
|
5197
|
+
theme,
|
|
4375
5198
|
variant,
|
|
4376
5199
|
key: (_key = child.key) !== null && _key !== void 0 ? _key : index,
|
|
4377
5200
|
className: index === 0 ? 'first-button' : index === childArray.length - 1 ? 'last-button' : 'middle-button'
|
|
@@ -4381,18 +5204,19 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4381
5204
|
className: classNames(ButtonGroup.className, className),
|
|
4382
5205
|
ref: ref,
|
|
4383
5206
|
$color: color,
|
|
4384
|
-
$variant: variant
|
|
5207
|
+
$variant: variant,
|
|
5208
|
+
$theme: theme
|
|
4385
5209
|
}), buttons);
|
|
4386
5210
|
});
|
|
4387
5211
|
ButtonGroup.className = CLASSNAME$x;
|
|
4388
5212
|
ButtonGroup.defaultProps = DEFAULT_PROPS$x;
|
|
4389
5213
|
ButtonGroup.displayName = COMPONENT_NAME$x;
|
|
4390
5214
|
|
|
4391
|
-
const _excluded$v = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
|
|
5215
|
+
const _excluded$v = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "theme", "variant"];
|
|
4392
5216
|
const COMPONENT_NAME$w = 'ButtonLink';
|
|
4393
5217
|
const CLASSNAME$w = 'redsift-button-link';
|
|
4394
5218
|
const DEFAULT_PROPS$w = {
|
|
4395
|
-
color:
|
|
5219
|
+
color: ButtonsColorPalette.primary,
|
|
4396
5220
|
height: 'fit-content',
|
|
4397
5221
|
variant: ButtonVariant.primary
|
|
4398
5222
|
};
|
|
@@ -4416,9 +5240,11 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4416
5240
|
leftIcon,
|
|
4417
5241
|
rightIcon,
|
|
4418
5242
|
target,
|
|
5243
|
+
theme: propsTheme,
|
|
4419
5244
|
variant
|
|
4420
5245
|
} = props,
|
|
4421
5246
|
forwardedProps = _objectWithoutProperties(props, _excluded$v);
|
|
5247
|
+
const theme = useTheme(propsTheme);
|
|
4422
5248
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({
|
|
4423
5249
|
as: as || 'a',
|
|
4424
5250
|
role: "link",
|
|
@@ -4427,6 +5253,7 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4427
5253
|
$color: color,
|
|
4428
5254
|
$isActive: isActive,
|
|
4429
5255
|
$isDisabled: isDisabled,
|
|
5256
|
+
$theme: theme,
|
|
4430
5257
|
$variant: variant,
|
|
4431
5258
|
className: classNames(ButtonLink.className, className),
|
|
4432
5259
|
href: !isDisabled ? href : undefined,
|
|
@@ -4471,6 +5298,15 @@ var intlMessages$2 = {
|
|
|
4471
5298
|
const StyledCard = styled.div`
|
|
4472
5299
|
${baseStyling}
|
|
4473
5300
|
|
|
5301
|
+
${_ref => {
|
|
5302
|
+
let {
|
|
5303
|
+
$theme
|
|
5304
|
+
} = _ref;
|
|
5305
|
+
return css`
|
|
5306
|
+
color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});
|
|
5307
|
+
`;
|
|
5308
|
+
}}
|
|
5309
|
+
|
|
4474
5310
|
display: flex;
|
|
4475
5311
|
flex-direction: column;
|
|
4476
5312
|
|
|
@@ -4492,22 +5328,22 @@ const StyledCard = styled.div`
|
|
|
4492
5328
|
}
|
|
4493
5329
|
|
|
4494
5330
|
.redsift-card__content {
|
|
4495
|
-
visibility: ${
|
|
5331
|
+
visibility: ${_ref2 => {
|
|
4496
5332
|
let {
|
|
4497
5333
|
$isCollapsed
|
|
4498
|
-
} =
|
|
5334
|
+
} = _ref2;
|
|
4499
5335
|
return !$isCollapsed ? 'visible' : 'hidden';
|
|
4500
5336
|
}};
|
|
4501
|
-
overflow: ${
|
|
5337
|
+
overflow: ${_ref3 => {
|
|
4502
5338
|
let {
|
|
4503
5339
|
$isCollapsed
|
|
4504
|
-
} =
|
|
5340
|
+
} = _ref3;
|
|
4505
5341
|
return !$isCollapsed ? 'visible' : 'hidden';
|
|
4506
5342
|
}};
|
|
4507
|
-
height: ${
|
|
5343
|
+
height: ${_ref4 => {
|
|
4508
5344
|
let {
|
|
4509
5345
|
$isCollapsed
|
|
4510
|
-
} =
|
|
5346
|
+
} = _ref4;
|
|
4511
5347
|
return !$isCollapsed ? 'auto' : '0px';
|
|
4512
5348
|
}};
|
|
4513
5349
|
}
|
|
@@ -4523,8 +5359,6 @@ const StyledCardHeader = styled.div`
|
|
|
4523
5359
|
${baseStyling}
|
|
4524
5360
|
${baseFlexbox}
|
|
4525
5361
|
|
|
4526
|
-
color: var(--redsift-color-neutral-black);
|
|
4527
|
-
|
|
4528
5362
|
.redsift-card-header__header {
|
|
4529
5363
|
align-items: center;
|
|
4530
5364
|
display: flex;
|
|
@@ -4580,7 +5414,12 @@ const StyledSkeleton = styled.div`
|
|
|
4580
5414
|
${baseInternalSpacing}
|
|
4581
5415
|
|
|
4582
5416
|
display: block;
|
|
4583
|
-
background-color:
|
|
5417
|
+
background-color: ${_ref => {
|
|
5418
|
+
let {
|
|
5419
|
+
$theme
|
|
5420
|
+
} = _ref;
|
|
5421
|
+
return $theme === Theme.light ? css`rgba(0, 0, 0, 0.16)` : css`rgba(255, 255, 255, 0.16)`;
|
|
5422
|
+
}};
|
|
4584
5423
|
border-radius: 4px;
|
|
4585
5424
|
position: relative;
|
|
4586
5425
|
overflow: hidden;
|
|
@@ -4589,7 +5428,17 @@ const StyledSkeleton = styled.div`
|
|
|
4589
5428
|
&::after {
|
|
4590
5429
|
-webkit-animation: ${wave} 1.6s linear 0.5s infinite;
|
|
4591
5430
|
animation: ${wave} 1.6s linear 0.5s infinite;
|
|
4592
|
-
background: linear-gradient(
|
|
5431
|
+
background: linear-gradient(
|
|
5432
|
+
90deg,
|
|
5433
|
+
transparent,
|
|
5434
|
+
${_ref2 => {
|
|
5435
|
+
let {
|
|
5436
|
+
$theme
|
|
5437
|
+
} = _ref2;
|
|
5438
|
+
return $theme === Theme.light ? css`rgba(0, 0, 0, 0.04)` : css`rgba(255, 255, 255, 0.04)`;
|
|
5439
|
+
}},
|
|
5440
|
+
transparent
|
|
5441
|
+
);
|
|
4593
5442
|
background-clip: content-box;
|
|
4594
5443
|
content: '';
|
|
4595
5444
|
position: absolute;
|
|
@@ -4625,7 +5474,7 @@ const StyledSkeletonCircle = styled(StyledSkeleton)`
|
|
|
4625
5474
|
}}
|
|
4626
5475
|
`;
|
|
4627
5476
|
|
|
4628
|
-
const _excluded$u = ["children", "className", "isLoaded"];
|
|
5477
|
+
const _excluded$u = ["children", "className", "isLoaded", "theme"];
|
|
4629
5478
|
const COMPONENT_NAME$v = 'SkeletonCircle';
|
|
4630
5479
|
const CLASSNAME$v = 'redsift-skeleton-circle';
|
|
4631
5480
|
const DEFAULT_PROPS$v = {};
|
|
@@ -4637,13 +5486,16 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4637
5486
|
const {
|
|
4638
5487
|
children,
|
|
4639
5488
|
className,
|
|
4640
|
-
isLoaded
|
|
5489
|
+
isLoaded,
|
|
5490
|
+
theme: propsTheme
|
|
4641
5491
|
} = props,
|
|
4642
5492
|
forwardedProps = _objectWithoutProperties(props, _excluded$u);
|
|
5493
|
+
const theme = useTheme(propsTheme);
|
|
4643
5494
|
if (isLoaded) {
|
|
4644
5495
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
4645
5496
|
}
|
|
4646
5497
|
return /*#__PURE__*/React__default.createElement(StyledSkeletonCircle, _extends$1({}, forwardedProps, {
|
|
5498
|
+
$theme: theme,
|
|
4647
5499
|
className: classNames(SkeletonCircle.className, className),
|
|
4648
5500
|
ref: ref
|
|
4649
5501
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
@@ -4704,7 +5556,7 @@ const StyledSkeletonText = styled(StyledSkeleton)`
|
|
|
4704
5556
|
}}}
|
|
4705
5557
|
`;
|
|
4706
5558
|
|
|
4707
|
-
const _excluded$t = ["children", "className", "fontSize", "isLoaded", "lineHeight", "variant"];
|
|
5559
|
+
const _excluded$t = ["children", "className", "fontSize", "isLoaded", "lineHeight", "theme", "variant"];
|
|
4708
5560
|
const COMPONENT_NAME$u = 'SkeletonText';
|
|
4709
5561
|
const CLASSNAME$u = 'redsift-skeleton-text';
|
|
4710
5562
|
const DEFAULT_PROPS$u = {
|
|
@@ -4721,9 +5573,11 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4721
5573
|
fontSize,
|
|
4722
5574
|
isLoaded,
|
|
4723
5575
|
lineHeight,
|
|
5576
|
+
theme: propsTheme,
|
|
4724
5577
|
variant
|
|
4725
5578
|
} = props,
|
|
4726
5579
|
forwardedProps = _objectWithoutProperties(props, _excluded$t);
|
|
5580
|
+
const theme = useTheme(propsTheme);
|
|
4727
5581
|
if (isLoaded) {
|
|
4728
5582
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
4729
5583
|
}
|
|
@@ -4732,6 +5586,7 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4732
5586
|
ref: ref,
|
|
4733
5587
|
$fontSize: fontSize,
|
|
4734
5588
|
$lineHeight: lineHeight,
|
|
5589
|
+
$theme: theme,
|
|
4735
5590
|
$variant: variant
|
|
4736
5591
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
4737
5592
|
});
|
|
@@ -4739,7 +5594,7 @@ SkeletonText.className = CLASSNAME$u;
|
|
|
4739
5594
|
SkeletonText.defaultProps = DEFAULT_PROPS$u;
|
|
4740
5595
|
SkeletonText.displayName = COMPONENT_NAME$u;
|
|
4741
5596
|
|
|
4742
|
-
const _excluded$s = ["children", "className", "isLoaded"];
|
|
5597
|
+
const _excluded$s = ["children", "className", "isLoaded", "theme"];
|
|
4743
5598
|
const COMPONENT_NAME$t = 'Skeleton';
|
|
4744
5599
|
const CLASSNAME$t = 'redsift-skeleton';
|
|
4745
5600
|
const DEFAULT_PROPS$t = {};
|
|
@@ -4751,13 +5606,16 @@ const BaseSkeleton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4751
5606
|
const {
|
|
4752
5607
|
children,
|
|
4753
5608
|
className,
|
|
4754
|
-
isLoaded
|
|
5609
|
+
isLoaded,
|
|
5610
|
+
theme: propsTheme
|
|
4755
5611
|
} = props,
|
|
4756
5612
|
forwardedProps = _objectWithoutProperties(props, _excluded$s);
|
|
5613
|
+
const theme = useTheme(propsTheme);
|
|
4757
5614
|
if (isLoaded) {
|
|
4758
5615
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
4759
5616
|
}
|
|
4760
5617
|
return /*#__PURE__*/React__default.createElement(StyledSkeleton, _extends$1({}, forwardedProps, {
|
|
5618
|
+
$theme: theme,
|
|
4761
5619
|
className: classNames(BaseSkeleton.className, className),
|
|
4762
5620
|
ref: ref
|
|
4763
5621
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
@@ -4824,7 +5682,6 @@ CardHeader.displayName = COMPONENT_NAME$s;
|
|
|
4824
5682
|
const StyledCardBody = styled.div`
|
|
4825
5683
|
${baseContainer}
|
|
4826
5684
|
|
|
4827
|
-
color: var(--redsift-color-neutral-darkgrey);
|
|
4828
5685
|
font-family: var(--redsift-typography-body-font-family);
|
|
4829
5686
|
font-size: var(--redsift-typography-body-font-size);
|
|
4830
5687
|
font-weight: var(--redsift-typography-body-font-weight);
|
|
@@ -4891,7 +5748,7 @@ CardActions.className = CLASSNAME$q;
|
|
|
4891
5748
|
CardActions.defaultProps = DEFAULT_PROPS$q;
|
|
4892
5749
|
CardActions.displayName = COMPONENT_NAME$q;
|
|
4893
5750
|
|
|
4894
|
-
const _excluded$o = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
|
|
5751
|
+
const _excluded$o = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse", "theme"];
|
|
4895
5752
|
const COMPONENT_NAME$p = 'Card';
|
|
4896
5753
|
const CLASSNAME$p = 'redsift-card';
|
|
4897
5754
|
const DEFAULT_PROPS$p = {};
|
|
@@ -4906,9 +5763,11 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4906
5763
|
defaultCollapsed,
|
|
4907
5764
|
isCollapsed: propsIsCollapsed,
|
|
4908
5765
|
isCollapsible,
|
|
4909
|
-
onCollapse
|
|
5766
|
+
onCollapse,
|
|
5767
|
+
theme: propsTheme
|
|
4910
5768
|
} = props,
|
|
4911
5769
|
forwardedProps = _objectWithoutProperties(props, _excluded$o);
|
|
5770
|
+
const theme = useTheme(propsTheme);
|
|
4912
5771
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$2);
|
|
4913
5772
|
const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
4914
5773
|
useEffect(() => {
|
|
@@ -4923,21 +5782,27 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4923
5782
|
}
|
|
4924
5783
|
}, [onCollapse]);
|
|
4925
5784
|
const [[header], [body], [actions]] = partitionComponents(React__default.Children.toArray(children), [isComponent('CardHeader'), isComponent('CardBody'), isComponent('CardActions')]);
|
|
4926
|
-
return /*#__PURE__*/React__default.createElement(
|
|
5785
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
5786
|
+
value: {
|
|
5787
|
+
theme
|
|
5788
|
+
}
|
|
5789
|
+
}, /*#__PURE__*/React__default.createElement(StyledCard, _extends$1({}, forwardedProps, {
|
|
4927
5790
|
className: classNames(BaseCard.className, className),
|
|
4928
5791
|
ref: ref,
|
|
4929
|
-
$isCollapsed: isCollapsed
|
|
5792
|
+
$isCollapsed: isCollapsed,
|
|
5793
|
+
$theme: theme
|
|
4930
5794
|
}), header || isCollapsible ? /*#__PURE__*/React__default.createElement("div", {
|
|
4931
5795
|
className: `${BaseCard.className}__header`
|
|
4932
|
-
}, header ? header : null, isCollapsible ? /*#__PURE__*/React__default.createElement(IconButton, {
|
|
5796
|
+
}, header && isComponent('CardHeader')(header) ? header : null, isCollapsible ? /*#__PURE__*/React__default.createElement(IconButton, {
|
|
5797
|
+
theme: theme,
|
|
4933
5798
|
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
4934
5799
|
className: `${BaseCard.className}-header__icon-button`,
|
|
4935
|
-
color: "
|
|
5800
|
+
color: "grey",
|
|
4936
5801
|
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
4937
5802
|
onClick: () => handleCollapse(!isCollapsed)
|
|
4938
5803
|
}) : null) : null, body || actions ? /*#__PURE__*/React__default.createElement("div", {
|
|
4939
5804
|
className: `${BaseCard.className}__content`
|
|
4940
|
-
}, body, actions) : null);
|
|
5805
|
+
}, body && isComponent('CardBody')(body) ? body : null, actions && isComponent('CardActions')(actions) ? actions : null) : null));
|
|
4941
5806
|
});
|
|
4942
5807
|
BaseCard.className = CLASSNAME$p;
|
|
4943
5808
|
BaseCard.defaultProps = DEFAULT_PROPS$p;
|
|
@@ -4999,22 +5864,19 @@ const StyledCheckboxGroup = styled.div`
|
|
|
4999
5864
|
font-size: var(--redsift-typography-body-font-size);
|
|
5000
5865
|
line-height: var(--redsift-typography-body-line-height);
|
|
5001
5866
|
|
|
5002
|
-
color: var(--redsift-color-neutral-black);
|
|
5003
5867
|
${_ref2 => {
|
|
5004
5868
|
let {
|
|
5005
|
-
$isDisabled
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
}
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
color: var(--redsift-color-notifications-error-primary);
|
|
5017
|
-
` : '';
|
|
5869
|
+
$isDisabled,
|
|
5870
|
+
$isInvalid,
|
|
5871
|
+
$theme
|
|
5872
|
+
} = _ref2;
|
|
5873
|
+
return $isDisabled ? css`
|
|
5874
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
5875
|
+
` : $isInvalid ? css`
|
|
5876
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
5877
|
+
` : css`
|
|
5878
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
5879
|
+
`;
|
|
5018
5880
|
}}
|
|
5019
5881
|
}
|
|
5020
5882
|
|
|
@@ -5024,31 +5886,28 @@ const StyledCheckboxGroup = styled.div`
|
|
|
5024
5886
|
font-size: var(--redsift-typography-helper-font-size);
|
|
5025
5887
|
line-height: var(--redsift-typography-helper-line-height);
|
|
5026
5888
|
|
|
5027
|
-
|
|
5028
|
-
${_ref4 => {
|
|
5029
|
-
let {
|
|
5030
|
-
$isDisabled
|
|
5031
|
-
} = _ref4;
|
|
5032
|
-
return $isDisabled ? `
|
|
5033
|
-
color: var(--redsift-color-neutral-midgrey);
|
|
5034
|
-
` : '';
|
|
5035
|
-
}}
|
|
5036
|
-
${_ref5 => {
|
|
5889
|
+
${_ref3 => {
|
|
5037
5890
|
let {
|
|
5038
|
-
$
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5891
|
+
$isDisabled,
|
|
5892
|
+
$isInvalid,
|
|
5893
|
+
$theme
|
|
5894
|
+
} = _ref3;
|
|
5895
|
+
return $isDisabled ? css`
|
|
5896
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
5897
|
+
` : $isInvalid ? css`
|
|
5898
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
5899
|
+
` : css`
|
|
5900
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
5901
|
+
`;
|
|
5043
5902
|
}}
|
|
5044
5903
|
}
|
|
5045
5904
|
`;
|
|
5046
5905
|
|
|
5047
|
-
const _excluded$n = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "value"];
|
|
5906
|
+
const _excluded$n = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "theme", "value"];
|
|
5048
5907
|
const COMPONENT_NAME$o = 'CheckboxGroup';
|
|
5049
5908
|
const CLASSNAME$o = 'redsift-checkbox-group';
|
|
5050
5909
|
const DEFAULT_PROPS$o = {
|
|
5051
|
-
color:
|
|
5910
|
+
color: ColorPalette.primary,
|
|
5052
5911
|
orientation: CheckboxGroupOrientation.vertical
|
|
5053
5912
|
};
|
|
5054
5913
|
|
|
@@ -5069,9 +5928,11 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5069
5928
|
label,
|
|
5070
5929
|
onChange,
|
|
5071
5930
|
orientation,
|
|
5931
|
+
theme: propsTheme,
|
|
5072
5932
|
value
|
|
5073
5933
|
} = props,
|
|
5074
5934
|
forwardedProps = _objectWithoutProperties(props, _excluded$n);
|
|
5935
|
+
const theme = useTheme(propsTheme);
|
|
5075
5936
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
5076
5937
|
useEffect(() => {
|
|
5077
5938
|
if (value) {
|
|
@@ -5105,11 +5966,16 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5105
5966
|
}
|
|
5106
5967
|
}
|
|
5107
5968
|
};
|
|
5108
|
-
return /*#__PURE__*/React__default.createElement(
|
|
5969
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
5970
|
+
value: {
|
|
5971
|
+
theme
|
|
5972
|
+
}
|
|
5973
|
+
}, /*#__PURE__*/React__default.createElement(StyledCheckboxGroup, _extends$1({}, forwardedProps, {
|
|
5109
5974
|
$isDisabled: isDisabled,
|
|
5110
5975
|
$isInvalid: isInvalid || isRequired && selectedValues.length === 0,
|
|
5111
5976
|
$isReadOnly: isReadOnly,
|
|
5112
5977
|
$orientation: orientation,
|
|
5978
|
+
$theme: theme,
|
|
5113
5979
|
"aria-disabled": isDisabled,
|
|
5114
5980
|
className: classNames(CheckboxGroup.className, className),
|
|
5115
5981
|
ref: ref,
|
|
@@ -5122,7 +5988,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5122
5988
|
value: state
|
|
5123
5989
|
}, children)), /*#__PURE__*/React__default.createElement("span", {
|
|
5124
5990
|
className: `${CheckboxGroup.className}-description`
|
|
5125
|
-
}, description));
|
|
5991
|
+
}, description)));
|
|
5126
5992
|
});
|
|
5127
5993
|
CheckboxGroup.className = CLASSNAME$o;
|
|
5128
5994
|
CheckboxGroup.defaultProps = DEFAULT_PROPS$o;
|
|
@@ -5156,14 +6022,15 @@ const StyledCheckbox = styled.label`
|
|
|
5156
6022
|
${_ref => {
|
|
5157
6023
|
let {
|
|
5158
6024
|
$isDisabled,
|
|
5159
|
-
$isInvalid
|
|
6025
|
+
$isInvalid,
|
|
6026
|
+
$theme
|
|
5160
6027
|
} = _ref;
|
|
5161
6028
|
return $isDisabled ? css`
|
|
5162
|
-
color: var(--redsift-color-
|
|
6029
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
5163
6030
|
` : $isInvalid ? css`
|
|
5164
|
-
color: var(--redsift-color-
|
|
6031
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
5165
6032
|
` : css`
|
|
5166
|
-
color: var(--redsift-color-
|
|
6033
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
5167
6034
|
`;
|
|
5168
6035
|
}}
|
|
5169
6036
|
|
|
@@ -5191,19 +6058,20 @@ const StyledCheckbox = styled.label`
|
|
|
5191
6058
|
$isColored,
|
|
5192
6059
|
$isDisabled,
|
|
5193
6060
|
$isInvalid,
|
|
5194
|
-
$isFocusVisible
|
|
6061
|
+
$isFocusVisible,
|
|
6062
|
+
$theme
|
|
5195
6063
|
} = _ref2;
|
|
5196
6064
|
return css`
|
|
5197
6065
|
${$isDisabled ? css`
|
|
5198
|
-
color: var(--redsift-color-
|
|
6066
|
+
color: var(--redsift-color-${$theme}-components-checkbox-fill-disabled);
|
|
5199
6067
|
` : $isInvalid ? css`
|
|
5200
|
-
color: var(--redsift-color-
|
|
6068
|
+
color: var(--redsift-color-${$theme}-components-checkbox-fill-invalid);
|
|
5201
6069
|
` : css`
|
|
5202
|
-
color: ${$isColored ?
|
|
6070
|
+
color: ${$isColored ? `var(--redsift-color-${$theme}-components-checkbox-fill-default)` : `var(--redsift-color-${$theme}-components-checkbox-fill-uncolored)`};
|
|
5203
6071
|
`}
|
|
5204
6072
|
|
|
5205
6073
|
${$isFocusVisible && !$isDisabled ? css`
|
|
5206
|
-
background-color: ${$isColored ?
|
|
6074
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-checkbox-fill-default-hover)` : `var(--redsift-color-${$theme}-components-checkbox-fill-uncolored-hover)`};
|
|
5207
6075
|
` : ''}
|
|
5208
6076
|
`;
|
|
5209
6077
|
}}
|
|
@@ -5216,11 +6084,17 @@ const StyledCheckbox = styled.label`
|
|
|
5216
6084
|
${_ref3 => {
|
|
5217
6085
|
let {
|
|
5218
6086
|
$isColored,
|
|
5219
|
-
$isDisabled
|
|
6087
|
+
$isDisabled,
|
|
6088
|
+
$isInvalid,
|
|
6089
|
+
$theme
|
|
5220
6090
|
} = _ref3;
|
|
5221
6091
|
return !$isDisabled ? css`
|
|
5222
6092
|
.redsift-icon {
|
|
5223
|
-
|
|
6093
|
+
${$isInvalid ? css`
|
|
6094
|
+
background-color: var(--redsift-color-${$theme}-components-checkbox-fill-invalid-hover);
|
|
6095
|
+
` : css`
|
|
6096
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-checkbox-fill-default-hover)` : `var(--redsift-color-${$theme}-components-checkbox-fill-uncolored-hover)`};
|
|
6097
|
+
`}
|
|
5224
6098
|
border-radius: 4px;
|
|
5225
6099
|
}
|
|
5226
6100
|
` : '';
|
|
@@ -5228,7 +6102,7 @@ const StyledCheckbox = styled.label`
|
|
|
5228
6102
|
}
|
|
5229
6103
|
`;
|
|
5230
6104
|
|
|
5231
|
-
const _excluded$m = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
6105
|
+
const _excluded$m = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "theme", "value"];
|
|
5232
6106
|
const COMPONENT_NAME$n = 'Checkbox';
|
|
5233
6107
|
const CLASSNAME$n = 'redsift-checkbox';
|
|
5234
6108
|
const DEFAULT_PROPS$n = {
|
|
@@ -5261,9 +6135,11 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5261
6135
|
isSelected: propsIsSelected,
|
|
5262
6136
|
name,
|
|
5263
6137
|
onChange,
|
|
6138
|
+
theme: propsTheme,
|
|
5264
6139
|
value
|
|
5265
6140
|
} = props,
|
|
5266
6141
|
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
6142
|
+
const theme = useTheme(propsTheme);
|
|
5267
6143
|
const {
|
|
5268
6144
|
isFocusVisible,
|
|
5269
6145
|
focusProps
|
|
@@ -5282,7 +6158,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5282
6158
|
setSelected(groupState.value.includes(value));
|
|
5283
6159
|
}
|
|
5284
6160
|
}, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
|
|
5285
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
6161
|
+
warnIfNoAccessibleLabelFound(props, [children], 'Checkbox');
|
|
5286
6162
|
if (groupState) {
|
|
5287
6163
|
if (propsIsSelected != null) {
|
|
5288
6164
|
console.warn('isSelected is unsupported on individual <Checkbox> elements within a <CheckboxGroup> unless the <Checkbox> is controlled. Please apply this prop to the group instead or pass isControlled to the component.');
|
|
@@ -5319,6 +6195,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5319
6195
|
$isInvalid: isInvalid || isRequired && !(isSelected || isControlled && propsIsSelected),
|
|
5320
6196
|
$isRequired: isRequired,
|
|
5321
6197
|
$isSelected: isSelected || isControlled && propsIsSelected,
|
|
6198
|
+
$theme: theme,
|
|
5322
6199
|
className: classNames(Checkbox.className, className),
|
|
5323
6200
|
ref: ref
|
|
5324
6201
|
}), isSelected || isControlled && propsIsSelected ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -5409,25 +6286,26 @@ const StyledShield = styled.div`
|
|
|
5409
6286
|
let {
|
|
5410
6287
|
$color,
|
|
5411
6288
|
$isOutlined,
|
|
5412
|
-
$isReversed
|
|
6289
|
+
$isReversed,
|
|
6290
|
+
$theme
|
|
5413
6291
|
} = _ref;
|
|
5414
6292
|
if ($isReversed && $isOutlined) {
|
|
5415
6293
|
return css`
|
|
5416
6294
|
& .shield {
|
|
5417
6295
|
fill: var(--redsift-color-notifications-${$color}-primary);
|
|
5418
|
-
stroke:
|
|
6296
|
+
stroke: var(--redsift-color-${$theme}-components-page-background);
|
|
5419
6297
|
stroke-width: 2;
|
|
5420
6298
|
}
|
|
5421
6299
|
& .icon {
|
|
5422
6300
|
fill-rule: evenodd;
|
|
5423
6301
|
clip-rule: evenodd;
|
|
5424
|
-
fill:
|
|
6302
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5425
6303
|
}
|
|
5426
6304
|
`;
|
|
5427
6305
|
} else if ($isOutlined) {
|
|
5428
6306
|
return css`
|
|
5429
6307
|
& .shield {
|
|
5430
|
-
fill:
|
|
6308
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5431
6309
|
stroke: var(--redsift-color-notifications-${$color}-primary);
|
|
5432
6310
|
stroke-width: 2;
|
|
5433
6311
|
}
|
|
@@ -5440,7 +6318,7 @@ const StyledShield = styled.div`
|
|
|
5440
6318
|
} else if ($isReversed) {
|
|
5441
6319
|
return css`
|
|
5442
6320
|
& .shield {
|
|
5443
|
-
fill:
|
|
6321
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5444
6322
|
}
|
|
5445
6323
|
& .icon {
|
|
5446
6324
|
fill-rule: evenodd;
|
|
@@ -5456,14 +6334,14 @@ const StyledShield = styled.div`
|
|
|
5456
6334
|
& .icon {
|
|
5457
6335
|
fill-rule: evenodd;
|
|
5458
6336
|
clip-rule: evenodd;
|
|
5459
|
-
fill:
|
|
6337
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5460
6338
|
}
|
|
5461
6339
|
`;
|
|
5462
6340
|
}
|
|
5463
6341
|
}}
|
|
5464
6342
|
`;
|
|
5465
6343
|
|
|
5466
|
-
const _excluded$l = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
|
|
6344
|
+
const _excluded$l = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "theme", "variant"];
|
|
5467
6345
|
const COMPONENT_NAME$m = 'Shield';
|
|
5468
6346
|
const CLASSNAME$m = 'redsift-shield';
|
|
5469
6347
|
const DEFAULT_PROPS$m = {
|
|
@@ -5550,9 +6428,11 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5550
6428
|
svgProps,
|
|
5551
6429
|
isOutlined,
|
|
5552
6430
|
isReversed,
|
|
6431
|
+
theme: propsTheme,
|
|
5553
6432
|
variant
|
|
5554
6433
|
} = props,
|
|
5555
6434
|
forwardedProps = _objectWithoutProperties(props, _excluded$l);
|
|
6435
|
+
const theme = useTheme(propsTheme);
|
|
5556
6436
|
const {
|
|
5557
6437
|
color,
|
|
5558
6438
|
icon
|
|
@@ -5565,6 +6445,7 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5565
6445
|
$color: color,
|
|
5566
6446
|
$isOutlined: isOutlined,
|
|
5567
6447
|
$isReversed: isReversed,
|
|
6448
|
+
$theme: theme,
|
|
5568
6449
|
$variant: variant
|
|
5569
6450
|
}), /*#__PURE__*/React__default.createElement("svg", _extends$1({
|
|
5570
6451
|
"aria-hidden": ariaLabel ? ariaHidden ? ariaHidden : undefined : true,
|
|
@@ -5620,14 +6501,14 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
|
5620
6501
|
return $hideBackground ? css`
|
|
5621
6502
|
background: none;
|
|
5622
6503
|
` : css`
|
|
5623
|
-
background-color: var(--redsift-color-neutral-
|
|
6504
|
+
background-color: var(--redsift-color-neutral-x-light-grey);
|
|
5624
6505
|
margin: 8px -16px;
|
|
5625
6506
|
padding: 8px 16px;
|
|
5626
6507
|
`;
|
|
5627
6508
|
}}
|
|
5628
6509
|
|
|
5629
6510
|
.redsift-detailed-card-collapsible-section-items__caption {
|
|
5630
|
-
color: var(--redsift-color-neutral-
|
|
6511
|
+
color: var(--redsift-color-neutral-x-dark-grey);
|
|
5631
6512
|
display: flex;
|
|
5632
6513
|
font-family: var(--redsift-typography-font-family-poppins);
|
|
5633
6514
|
font-size: 12px;
|
|
@@ -5636,7 +6517,7 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
|
5636
6517
|
line-height: 14px;
|
|
5637
6518
|
margin: 8px 0px;
|
|
5638
6519
|
padding-top: 8px;
|
|
5639
|
-
border-top: 1px solid var(--redsift-color-neutral-
|
|
6520
|
+
border-top: 1px solid var(--redsift-color-neutral-mid-grey);
|
|
5640
6521
|
}
|
|
5641
6522
|
`;
|
|
5642
6523
|
|
|
@@ -5679,10 +6560,12 @@ const StyledDetailedCardSection = styled.div`
|
|
|
5679
6560
|
let {
|
|
5680
6561
|
$color
|
|
5681
6562
|
} = _ref;
|
|
5682
|
-
return $color &&
|
|
5683
|
-
border-bottom: 1px solid var(--redsift-color-${$color}-primary);
|
|
6563
|
+
return $color && Object.keys(NotificationsColorPalette).indexOf($color) !== -1 ? css`
|
|
6564
|
+
border-bottom: 1px solid var(--redsift-color-notifications-${$color}-primary);
|
|
6565
|
+
` : $color && Object.keys(ProductColorPalette).indexOf($color) !== -1 ? css`
|
|
6566
|
+
border-bottom: 1px solid var(--redsift-color-product-${$color});
|
|
5684
6567
|
` : css`
|
|
5685
|
-
border-bottom: 1px solid ${$color || css`var(--redsift-color-neutral-
|
|
6568
|
+
border-bottom: 1px solid ${$color || css`var(--redsift-color-neutral-mid-grey)`};
|
|
5686
6569
|
`;
|
|
5687
6570
|
}}
|
|
5688
6571
|
margin-bottom: 8px;
|
|
@@ -5696,7 +6579,7 @@ const StyledDetailedCardSection = styled.div`
|
|
|
5696
6579
|
}
|
|
5697
6580
|
|
|
5698
6581
|
.redsift-detailed-card-section-header__collapse-button {
|
|
5699
|
-
color: var(--redsift-color-neutral-
|
|
6582
|
+
color: var(--redsift-color-neutral-x-dark-grey);
|
|
5700
6583
|
}
|
|
5701
6584
|
|
|
5702
6585
|
.redsift-detailed-card-collapsible-section-items {
|
|
@@ -5795,7 +6678,7 @@ const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5795
6678
|
marginLeft: "auto",
|
|
5796
6679
|
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
5797
6680
|
className: `${DetailedCardSection.className}-header__collapse-button`,
|
|
5798
|
-
color: "
|
|
6681
|
+
color: "grey",
|
|
5799
6682
|
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
5800
6683
|
onClick: () => {
|
|
5801
6684
|
setIsCollapsed(isCollapsed => !isCollapsed);
|
|
@@ -5812,19 +6695,36 @@ DetailedCardSection.displayName = COMPONENT_NAME$k;
|
|
|
5812
6695
|
const StyledDetailedCard = styled.div`
|
|
5813
6696
|
${baseStyling}
|
|
5814
6697
|
|
|
5815
|
-
|
|
6698
|
+
color: var(--redsift-color-neutral-${_ref => {
|
|
6699
|
+
let {
|
|
6700
|
+
$theme
|
|
6701
|
+
} = _ref;
|
|
6702
|
+
return $theme === Theme.light ? 'x-dark-grey' : 'white';
|
|
6703
|
+
}});
|
|
6704
|
+
background-color: var(--redsift-color-neutral-${_ref2 => {
|
|
6705
|
+
let {
|
|
6706
|
+
$theme
|
|
6707
|
+
} = _ref2;
|
|
6708
|
+
return $theme === Theme.light ? 'white' : 'x-dark-grey';
|
|
6709
|
+
}});
|
|
5816
6710
|
border-radius: 4px;
|
|
5817
|
-
box-shadow: 0px 1px 2px rgba(0, 0, 0,
|
|
6711
|
+
box-shadow: 0px 1px 2px rgba(0, 0, 0, ${_ref3 => {
|
|
6712
|
+
let {
|
|
6713
|
+
$theme
|
|
6714
|
+
} = _ref3;
|
|
6715
|
+
return $theme === Theme.light ? '0.5' : '1';
|
|
6716
|
+
}});
|
|
5818
6717
|
box-sizing: content-box;
|
|
5819
6718
|
padding: 16px;
|
|
5820
6719
|
|
|
5821
6720
|
.redsift-detailed-card__banner {
|
|
5822
|
-
background-color: ${
|
|
6721
|
+
background-color: ${_ref4 => {
|
|
5823
6722
|
let {
|
|
5824
6723
|
$color
|
|
5825
|
-
} =
|
|
6724
|
+
} = _ref4;
|
|
5826
6725
|
return css`var(--redsift-color-notifications-${$color}-primary)`;
|
|
5827
6726
|
}};
|
|
6727
|
+
color: var(--redsift-color-neutral-white);
|
|
5828
6728
|
}
|
|
5829
6729
|
|
|
5830
6730
|
.redsift-detailed-card__collapse-buttons {
|
|
@@ -5839,6 +6739,12 @@ const StyledDetailedCardHeader = styled.div`
|
|
|
5839
6739
|
margin: 8px 0;
|
|
5840
6740
|
|
|
5841
6741
|
.redsift-detailed-card-header__header {
|
|
6742
|
+
color: var(--redsift-color-neutral-${_ref => {
|
|
6743
|
+
let {
|
|
6744
|
+
$theme
|
|
6745
|
+
} = _ref;
|
|
6746
|
+
return $theme === Theme.light ? 'x-dark-grey' : 'white';
|
|
6747
|
+
}});
|
|
5842
6748
|
font-family: var(--redsift-typography-font-family-poppins);
|
|
5843
6749
|
font-size: 32px;
|
|
5844
6750
|
font-weight: 500;
|
|
@@ -5864,9 +6770,11 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5864
6770
|
isLoading
|
|
5865
6771
|
} = props,
|
|
5866
6772
|
forwardedProps = _objectWithoutProperties(props, _excluded$i);
|
|
6773
|
+
const theme = useTheme();
|
|
5867
6774
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardHeader, _extends$1({}, forwardedProps, {
|
|
5868
6775
|
className: classNames(DetailedCardHeader.className, className),
|
|
5869
|
-
ref: ref
|
|
6776
|
+
ref: ref,
|
|
6777
|
+
$theme: theme
|
|
5870
6778
|
}), header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
|
|
5871
6779
|
variant: "h2",
|
|
5872
6780
|
isLoaded: !isLoading,
|
|
@@ -5910,7 +6818,7 @@ const pickTextColorBasedOnBgColorAdvanced = (bgColor, lightColor, darkColor) =>
|
|
|
5910
6818
|
return L > 0.179 ? darkColor : lightColor;
|
|
5911
6819
|
};
|
|
5912
6820
|
const nameToHex = color => {
|
|
5913
|
-
return [...Object.keys(PresentationColorPalette),
|
|
6821
|
+
return [...Object.keys(PresentationColorPalette), ...Object.keys(NeutralColorPalette), 'error', 'warning', 'success', 'error-dark', 'warning-dark', 'success-dark'].includes(color) ? {
|
|
5914
6822
|
green: RedsiftColorPresentationGreenLight,
|
|
5915
6823
|
pink: RedsiftColorPresentationPinkLight,
|
|
5916
6824
|
aqua: RedsiftColorPresentationAquaLight,
|
|
@@ -5922,8 +6830,12 @@ const nameToHex = color => {
|
|
|
5922
6830
|
blue: RedsiftColorPresentationBlueLight,
|
|
5923
6831
|
grey: RedsiftColorPresentationGreyLight,
|
|
5924
6832
|
white: RedsiftColorNeutralWhite,
|
|
6833
|
+
'x-light-grey': RedsiftColorNeutralXLightGrey,
|
|
6834
|
+
'light-grey': RedsiftColorNeutralLightGrey,
|
|
6835
|
+
'mid-grey': RedsiftColorNeutralMidGrey,
|
|
6836
|
+
'dark-grey': RedsiftColorNeutralDarkGrey,
|
|
6837
|
+
'x-dark-grey': RedsiftColorNeutralXDarkGrey,
|
|
5925
6838
|
black: RedsiftColorNeutralBlack,
|
|
5926
|
-
'no-data': RedsiftColorNeutralMidgrey,
|
|
5927
6839
|
error: RedsiftColorPresentationRedLighter,
|
|
5928
6840
|
warning: RedsiftColorPresentationOrangeLighter,
|
|
5929
6841
|
success: RedsiftColorPresentationGreenLighter,
|
|
@@ -5969,13 +6881,14 @@ const StyledPill = styled.div`
|
|
|
5969
6881
|
let {
|
|
5970
6882
|
$color,
|
|
5971
6883
|
$hoverColor,
|
|
5972
|
-
$size
|
|
6884
|
+
$size,
|
|
6885
|
+
$theme
|
|
5973
6886
|
} = _ref2;
|
|
5974
6887
|
return css`
|
|
5975
6888
|
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-black);' : $color === 'white' ? css`
|
|
5976
6889
|
background-color: var(--redsift-color-neutral-white);
|
|
5977
6890
|
border: 1px solid #d6d6d6;
|
|
5978
|
-
` : $color === 'no-data' ? 'background-color: var(--redsift-color-neutral-
|
|
6891
|
+
` : $color === 'no-data' ? 'background-color: var(--redsift-color-neutral-mid-grey);' : $color === 'error' ? 'background-color: var(--redsift-color-presentation-red-lighter);' : $color === 'warning' ? 'background-color: var(--redsift-color-presentation-orange-lighter);' : $color === 'success' ? 'background-color: var(--redsift-color-presentation-green-lighter);' : $color === 'error-dark' ? 'background-color: var(--redsift-color-presentation-red-default);' : $color === 'warning-dark' ? 'background-color: var(--redsift-color-presentation-orange-default);' : $color === 'success-dark' ? 'background-color: var(--redsift-color-presentation-green-default);' : Object.keys(PresentationColorPalette).includes($color) ? `background-color: var(--redsift-color-presentation-${$color}-light);` : `background-color: ${$color};`}
|
|
5979
6892
|
|
|
5980
6893
|
&,
|
|
5981
6894
|
.redsift-icon {
|
|
@@ -5988,12 +6901,13 @@ const StyledPill = styled.div`
|
|
|
5988
6901
|
border: none;
|
|
5989
6902
|
border-radius: 0 2px 2px 0;
|
|
5990
6903
|
margin: -2px -8px -2px 2px;
|
|
5991
|
-
border-left: 1px solid
|
|
6904
|
+
border-left: 1px solid
|
|
6905
|
+
${$color === 'white' ? '#d6d6d6' : css`var(--redsift-color-neutral-${$theme === Theme.light ? 'white' : 'x-dark-grey'})`};
|
|
5992
6906
|
font-size: ${$size === PillSize.large ? css`15px` : css`14px`};
|
|
5993
6907
|
}
|
|
5994
6908
|
|
|
5995
6909
|
button:hover {
|
|
5996
|
-
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-
|
|
6910
|
+
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-x-dark-grey);' : $color === 'white' ? 'background-color: var(--redsift-color-neutral-x-light-grey);' : $color === 'no-data' ? 'background-color: var(--redsift-color-neutral-x-dark-grey);' : $color === 'error' ? 'background-color: var(--redsift-color-presentation-red-light);' : $color === 'warning' ? 'background-color: var(--redsift-color-presentation-orange-light);' : $color === 'success' ? 'background-color: var(--redsift-color-presentation-green-light);' : $color === 'error-dark' ? 'background-color: var(--redsift-color-presentation-red-dark);' : $color === 'warning-dark' ? 'background-color: var(--redsift-color-presentation-orange-dark);' : $color === 'success-dark' ? 'background-color: var(--redsift-color-presentation-green-dark);' : Object.keys(PresentationColorPalette).includes($color) ? `background-color: var(--redsift-color-presentation-${$color}-default);` : ''}
|
|
5997
6911
|
background-color: ${$hoverColor};
|
|
5998
6912
|
}
|
|
5999
6913
|
`;
|
|
@@ -6033,7 +6947,7 @@ const StyledPill = styled.div`
|
|
|
6033
6947
|
}
|
|
6034
6948
|
`;
|
|
6035
6949
|
|
|
6036
|
-
const _excluded$h = ["autoBreak", "children", "className", "color", "hoverColor", "rightButton", "size"];
|
|
6950
|
+
const _excluded$h = ["autoBreak", "children", "className", "color", "hoverColor", "rightButton", "size", "theme"];
|
|
6037
6951
|
const COMPONENT_NAME$i = 'Pill';
|
|
6038
6952
|
const CLASSNAME$i = 'redsift-pill';
|
|
6039
6953
|
const DEFAULT_PROPS$i = {
|
|
@@ -6053,21 +6967,24 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6053
6967
|
color,
|
|
6054
6968
|
hoverColor,
|
|
6055
6969
|
rightButton,
|
|
6056
|
-
size
|
|
6970
|
+
size,
|
|
6971
|
+
theme: propsTheme
|
|
6057
6972
|
} = props,
|
|
6058
6973
|
forwardedProps = _objectWithoutProperties(props, _excluded$h);
|
|
6974
|
+
const theme = useTheme(propsTheme);
|
|
6059
6975
|
return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
|
|
6060
6976
|
$autoBreak: autoBreak,
|
|
6061
6977
|
$color: color,
|
|
6062
6978
|
$hoverColor: hoverColor,
|
|
6063
6979
|
$size: size,
|
|
6980
|
+
$theme: theme,
|
|
6064
6981
|
className: classNames(Pill.className, className),
|
|
6065
6982
|
ref: ref
|
|
6066
6983
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
6067
6984
|
className: `${Pill.className}-content`
|
|
6068
6985
|
}, children), rightButton ? /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
6069
6986
|
"aria-label": "Clear",
|
|
6070
|
-
color: "
|
|
6987
|
+
color: "grey"
|
|
6071
6988
|
}, rightButton, {
|
|
6072
6989
|
className: "right clear"
|
|
6073
6990
|
}), /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -6108,7 +7025,7 @@ const StyledDetailedCardSectionItem = styled.div`
|
|
|
6108
7025
|
}
|
|
6109
7026
|
`;
|
|
6110
7027
|
|
|
6111
|
-
const _excluded$g = ["children", "className", "description", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
|
|
7028
|
+
const _excluded$g = ["children", "className", "description", "descriptionProps", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
|
|
6112
7029
|
const COMPONENT_NAME$h = 'DetailedCardSectionItem';
|
|
6113
7030
|
const CLASSNAME$h = 'redsift-detailed-card-section-item';
|
|
6114
7031
|
const DEFAULT_PROPS$h = {};
|
|
@@ -6121,6 +7038,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6121
7038
|
children,
|
|
6122
7039
|
className,
|
|
6123
7040
|
description,
|
|
7041
|
+
descriptionProps,
|
|
6124
7042
|
icon,
|
|
6125
7043
|
iconProps,
|
|
6126
7044
|
isLoading,
|
|
@@ -6154,7 +7072,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6154
7072
|
isLoaded: !isLoading
|
|
6155
7073
|
}, pill && /*#__PURE__*/React__default.createElement(Pill, _extends$1({
|
|
6156
7074
|
className: `${DetailedCardSectionItem.className}-header__pill`
|
|
6157
|
-
}, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text,
|
|
7075
|
+
}, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, descriptionProps, description) : description)) : null), children);
|
|
6158
7076
|
});
|
|
6159
7077
|
DetailedCardSectionItem.className = CLASSNAME$h;
|
|
6160
7078
|
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$h;
|
|
@@ -9761,12 +10679,19 @@ const TooltipPlacement = {
|
|
|
9761
10679
|
*/
|
|
9762
10680
|
const StyledTooltipContent = styled.div`
|
|
9763
10681
|
${baseContainer}
|
|
10682
|
+
${_ref => {
|
|
10683
|
+
let {
|
|
10684
|
+
$theme
|
|
10685
|
+
} = _ref;
|
|
10686
|
+
return css`
|
|
10687
|
+
color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});
|
|
10688
|
+
background-color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'black' : 'white'});
|
|
10689
|
+
`;
|
|
10690
|
+
}}
|
|
9764
10691
|
|
|
9765
10692
|
align-items: center;
|
|
9766
|
-
background-color: var(--redsift-color-neutral-white);
|
|
9767
10693
|
border-radius: 4px;
|
|
9768
10694
|
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
|
|
9769
|
-
color: var(--redsift-color-neutral-black);
|
|
9770
10695
|
display: flex;
|
|
9771
10696
|
filter: drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12));
|
|
9772
10697
|
font-family: var(--redsift-typography-tooltip-font-family);
|
|
@@ -9781,14 +10706,45 @@ const StyledTooltipContent = styled.div`
|
|
|
9781
10706
|
position: absolute;
|
|
9782
10707
|
width: 0;
|
|
9783
10708
|
height: 0;
|
|
9784
|
-
border-color:
|
|
10709
|
+
border-color: ${_ref2 => {
|
|
10710
|
+
let {
|
|
10711
|
+
$theme
|
|
10712
|
+
} = _ref2;
|
|
10713
|
+
return $theme === Theme.dark ? css`var(--redsift-color-neutral-black)` : css`var(--redsift-color-neutral-white)`;
|
|
10714
|
+
}};
|
|
9785
10715
|
border-style: solid;
|
|
9786
10716
|
}
|
|
9787
10717
|
|
|
9788
|
-
${
|
|
10718
|
+
${_ref3 => {
|
|
9789
10719
|
let {
|
|
9790
10720
|
$placement
|
|
9791
|
-
} =
|
|
10721
|
+
} = _ref3;
|
|
10722
|
+
switch ($placement) {
|
|
10723
|
+
case TooltipPlacement['right-start']:
|
|
10724
|
+
return css`
|
|
10725
|
+
border-bottom-left-radius: 0;
|
|
10726
|
+
`;
|
|
10727
|
+
case TooltipPlacement['right-end']:
|
|
10728
|
+
return css`
|
|
10729
|
+
border-top-left-radius: 0;
|
|
10730
|
+
`;
|
|
10731
|
+
case TooltipPlacement['left-start']:
|
|
10732
|
+
return css`
|
|
10733
|
+
border-bottom-right-radius: 0;
|
|
10734
|
+
`;
|
|
10735
|
+
case TooltipPlacement['left-end']:
|
|
10736
|
+
return css`
|
|
10737
|
+
border-top-right-radius: 0;
|
|
10738
|
+
`;
|
|
10739
|
+
default:
|
|
10740
|
+
return css``;
|
|
10741
|
+
}
|
|
10742
|
+
}}
|
|
10743
|
+
|
|
10744
|
+
${_ref4 => {
|
|
10745
|
+
let {
|
|
10746
|
+
$placement
|
|
10747
|
+
} = _ref4;
|
|
9792
10748
|
switch ($placement) {
|
|
9793
10749
|
case TooltipPlacement.left:
|
|
9794
10750
|
case TooltipPlacement['left-end']:
|
|
@@ -9850,7 +10806,8 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9850
10806
|
const {
|
|
9851
10807
|
children,
|
|
9852
10808
|
className,
|
|
9853
|
-
style
|
|
10809
|
+
style,
|
|
10810
|
+
theme: propsTheme
|
|
9854
10811
|
} = props;
|
|
9855
10812
|
const {
|
|
9856
10813
|
getFloatingProps,
|
|
@@ -9867,6 +10824,7 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9867
10824
|
} = {}
|
|
9868
10825
|
}
|
|
9869
10826
|
} = useTooltipContext();
|
|
10827
|
+
const theme = useTheme ? useTheme(propsTheme) : undefined;
|
|
9870
10828
|
const popoverRef = useMergeRefs([refs.setFloating, ref]);
|
|
9871
10829
|
const {
|
|
9872
10830
|
arrowRef
|
|
@@ -9882,6 +10840,7 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9882
10840
|
}, isOpen && /*#__PURE__*/React__default.createElement(StyledTooltipContent, _extends$1({
|
|
9883
10841
|
className: classNames(TooltipContent.className, className),
|
|
9884
10842
|
ref: popoverRef,
|
|
10843
|
+
$theme: theme,
|
|
9885
10844
|
style: _objectSpread2({
|
|
9886
10845
|
position: strategy,
|
|
9887
10846
|
top: y !== null && y !== void 0 ? y : 0,
|
|
@@ -10021,20 +10980,27 @@ const BaseTooltip = props => {
|
|
|
10021
10980
|
isOpen,
|
|
10022
10981
|
onOpen,
|
|
10023
10982
|
placement,
|
|
10024
|
-
tooltipId
|
|
10983
|
+
tooltipId,
|
|
10984
|
+
theme: propsTheme
|
|
10025
10985
|
} = props;
|
|
10986
|
+
const theme = useTheme ? useTheme(propsTheme) : undefined;
|
|
10026
10987
|
const tooltip = useTooltip({
|
|
10027
10988
|
defaultOpen,
|
|
10028
10989
|
delay,
|
|
10029
10990
|
placement,
|
|
10030
10991
|
isOpen,
|
|
10031
10992
|
onOpen,
|
|
10032
|
-
tooltipId
|
|
10993
|
+
tooltipId,
|
|
10994
|
+
theme
|
|
10033
10995
|
});
|
|
10034
10996
|
const [[trigger], [content]] = partitionComponents(React__default.Children.toArray(children), [isComponent('TooltipTrigger'), isComponent('TooltipContent')]);
|
|
10035
|
-
return /*#__PURE__*/React__default.createElement(
|
|
10997
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
10998
|
+
value: {
|
|
10999
|
+
theme
|
|
11000
|
+
}
|
|
11001
|
+
}, /*#__PURE__*/React__default.createElement(TooltipContext.Provider, {
|
|
10036
11002
|
value: tooltip
|
|
10037
|
-
}, trigger, content);
|
|
11003
|
+
}, trigger && isComponent('TooltipTrigger')(trigger) ? trigger : null, content && isComponent('TooltipContent')(content) ? content : null));
|
|
10038
11004
|
};
|
|
10039
11005
|
BaseTooltip.className = CLASSNAME$e;
|
|
10040
11006
|
BaseTooltip.defaultProps = DEFAULT_PROPS$e;
|
|
@@ -10052,7 +11018,7 @@ const useTooltipContext = () => {
|
|
|
10052
11018
|
return context;
|
|
10053
11019
|
};
|
|
10054
11020
|
|
|
10055
|
-
const _excluded$f = ["areAllCollapsed", "bannerVariant", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield"];
|
|
11021
|
+
const _excluded$f = ["areAllCollapsed", "bannerVariant", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield", "theme"];
|
|
10056
11022
|
const COMPONENT_NAME$d = 'DetailedCard';
|
|
10057
11023
|
const CLASSNAME$d = 'redsift-detailed-card';
|
|
10058
11024
|
const DEFAULT_PROPS$d = {
|
|
@@ -10093,9 +11059,11 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10093
11059
|
isCollapsible: propsIsCollapsible,
|
|
10094
11060
|
isLoading,
|
|
10095
11061
|
onCollapseAll,
|
|
10096
|
-
shield
|
|
11062
|
+
shield,
|
|
11063
|
+
theme: propsTheme
|
|
10097
11064
|
} = props,
|
|
10098
11065
|
forwardedProps = _objectWithoutProperties(props, _excluded$f);
|
|
11066
|
+
const theme = useTheme(propsTheme);
|
|
10099
11067
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
|
|
10100
11068
|
const isCollapsible = propsIsCollapsible && hasMultipleCollapsibleChildren(children);
|
|
10101
11069
|
const [allCollapsed, setAllCollapsed] = useState({
|
|
@@ -10117,11 +11085,17 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10117
11085
|
}
|
|
10118
11086
|
}, [onCollapseAll]);
|
|
10119
11087
|
const [[header], content] = partitionComponents(React__default.Children.toArray(children), [isComponent('DetailedCardHeader')]);
|
|
10120
|
-
return /*#__PURE__*/React__default.createElement(
|
|
11088
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
11089
|
+
value: {
|
|
11090
|
+
theme
|
|
11091
|
+
}
|
|
11092
|
+
}, /*#__PURE__*/React__default.createElement(StyledDetailedCard, _extends$1({}, forwardedProps, {
|
|
10121
11093
|
className: classNames(BaseDetailedCard.className, className),
|
|
10122
11094
|
ref: ref,
|
|
10123
|
-
$color: color
|
|
11095
|
+
$color: color,
|
|
11096
|
+
$theme: theme
|
|
10124
11097
|
}), color ? isLoading ? /*#__PURE__*/React__default.createElement(Skeleton, {
|
|
11098
|
+
theme: theme,
|
|
10125
11099
|
height: bannerVariant === 'condensed' ? '8px' : '80px',
|
|
10126
11100
|
width: "calc(100% + 32px)",
|
|
10127
11101
|
margin: "-16px -16px 16px -16px"
|
|
@@ -10148,7 +11122,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10148
11122
|
icon: icon,
|
|
10149
11123
|
color: "white",
|
|
10150
11124
|
size: "xlarge"
|
|
10151
|
-
}) : null) : null, header ? /*#__PURE__*/React__default.createElement("div", {
|
|
11125
|
+
}) : null) : null, header && isComponent('DetailedCardHeader')(header) ? /*#__PURE__*/React__default.createElement("div", {
|
|
10152
11126
|
className: `${BaseDetailedCard.className}__header`
|
|
10153
11127
|
}, header) : null, isCollapsible ? /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
10154
11128
|
justifyContent: "flex-end",
|
|
@@ -10161,7 +11135,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10161
11135
|
style: {
|
|
10162
11136
|
transform: 'rotate(-90deg)'
|
|
10163
11137
|
},
|
|
10164
|
-
color: "
|
|
11138
|
+
color: "grey"
|
|
10165
11139
|
})), /*#__PURE__*/React__default.createElement(Tooltip.Content, null, stringFormatter.format('collapse-all'))), /*#__PURE__*/React__default.createElement(Tooltip, null, /*#__PURE__*/React__default.createElement(Tooltip.Trigger, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
|
10166
11140
|
"aria-label": stringFormatter.format('expand-all'),
|
|
10167
11141
|
"aria-describedby": undefined,
|
|
@@ -10170,16 +11144,17 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10170
11144
|
style: {
|
|
10171
11145
|
transform: 'rotate(180deg)'
|
|
10172
11146
|
},
|
|
10173
|
-
color: "
|
|
11147
|
+
color: "grey"
|
|
10174
11148
|
})), /*#__PURE__*/React__default.createElement(Tooltip.Content, null, stringFormatter.format('expand-all')))) : null, React__default.Children.map(content, child => {
|
|
10175
11149
|
if (isComponent(DetailedCardSection)(child)) {
|
|
10176
11150
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
11151
|
+
theme,
|
|
10177
11152
|
isCollapsed: allCollapsed.state,
|
|
10178
11153
|
key: Math.random()
|
|
10179
11154
|
});
|
|
10180
11155
|
}
|
|
10181
11156
|
return child;
|
|
10182
|
-
}));
|
|
11157
|
+
})));
|
|
10183
11158
|
});
|
|
10184
11159
|
BaseDetailedCard.className = CLASSNAME$d;
|
|
10185
11160
|
BaseDetailedCard.defaultProps = DEFAULT_PROPS$d;
|
|
@@ -10950,7 +11925,7 @@ const StyledGrid = styled.div`
|
|
|
10950
11925
|
::before {
|
|
10951
11926
|
content: '';
|
|
10952
11927
|
position: absolute;
|
|
10953
|
-
background-color: var(--redsift-color-neutral-
|
|
11928
|
+
background-color: var(--redsift-color-neutral-light-grey);
|
|
10954
11929
|
inline-size: 1px;
|
|
10955
11930
|
block-size: 100%;
|
|
10956
11931
|
inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);
|
|
@@ -10959,7 +11934,7 @@ const StyledGrid = styled.div`
|
|
|
10959
11934
|
::after {
|
|
10960
11935
|
content: '';
|
|
10961
11936
|
position: absolute;
|
|
10962
|
-
background-color: var(--redsift-color-neutral-
|
|
11937
|
+
background-color: var(--redsift-color-neutral-light-grey);
|
|
10963
11938
|
inline-size: 200vw;
|
|
10964
11939
|
block-size: 1px;
|
|
10965
11940
|
inset-inline-start: -100vw;
|
|
@@ -11004,7 +11979,7 @@ GridItem.className = CLASSNAME$c;
|
|
|
11004
11979
|
GridItem.defaultProps = DEFAULT_PROPS$c;
|
|
11005
11980
|
GridItem.displayName = COMPONENT_NAME$c;
|
|
11006
11981
|
|
|
11007
|
-
const _excluded$d = ["children", "className", "divider", "gap"];
|
|
11982
|
+
const _excluded$d = ["children", "className", "divider", "gap", "theme"];
|
|
11008
11983
|
const COMPONENT_NAME$b = 'Grid';
|
|
11009
11984
|
const CLASSNAME$b = 'redsift-grid';
|
|
11010
11985
|
const DEFAULT_PROPS$b = {};
|
|
@@ -11017,15 +11992,22 @@ const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11017
11992
|
children,
|
|
11018
11993
|
className,
|
|
11019
11994
|
divider,
|
|
11020
|
-
gap
|
|
11995
|
+
gap,
|
|
11996
|
+
theme: propsTheme
|
|
11021
11997
|
} = props,
|
|
11022
11998
|
forwardedProps = _objectWithoutProperties(props, _excluded$d);
|
|
11023
|
-
|
|
11999
|
+
const theme = useTheme(propsTheme);
|
|
12000
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
12001
|
+
value: {
|
|
12002
|
+
theme
|
|
12003
|
+
}
|
|
12004
|
+
}, /*#__PURE__*/React__default.createElement(StyledGrid, _extends$1({}, forwardedProps, {
|
|
11024
12005
|
gap: divider ? `${divider.rowGap}px ${divider.colGap}px` : gap,
|
|
11025
12006
|
className: classNames(BaseGrid.className, className),
|
|
11026
12007
|
ref: ref,
|
|
11027
|
-
$divider: divider
|
|
11028
|
-
|
|
12008
|
+
$divider: divider,
|
|
12009
|
+
$theme: theme
|
|
12010
|
+
}), children));
|
|
11029
12011
|
});
|
|
11030
12012
|
BaseGrid.className = CLASSNAME$b;
|
|
11031
12013
|
BaseGrid.defaultProps = DEFAULT_PROPS$b;
|
|
@@ -11057,10 +12039,11 @@ const StyledItem = styled.div`
|
|
|
11057
12039
|
$isSelected,
|
|
11058
12040
|
$isDisabled,
|
|
11059
12041
|
$isHovered,
|
|
11060
|
-
$isFocused
|
|
12042
|
+
$isFocused,
|
|
12043
|
+
$theme
|
|
11061
12044
|
} = _ref;
|
|
11062
12045
|
return css`
|
|
11063
|
-
background-color: ${($isActive || $isSelected) && ($isHovered || $isFocused) ?
|
|
12046
|
+
background-color: ${($isActive || $isSelected) && ($isHovered || $isFocused) ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})` : $isActive ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})` : $isHovered ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l2' : 'd1'})` : $isFocused ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l2' : 'd1'})` : $isSelected && !$isDisabled ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})` : $isSelected && $isDisabled ? 'var(--redsift-color-neutral-light-grey)' : $isDisabled ? 'none' : 'none'};
|
|
11064
12047
|
`;
|
|
11065
12048
|
}}
|
|
11066
12049
|
|
|
@@ -11072,11 +12055,12 @@ const StyledItem = styled.div`
|
|
|
11072
12055
|
let {
|
|
11073
12056
|
$isActive,
|
|
11074
12057
|
$isSelected,
|
|
11075
|
-
$isDisabled
|
|
12058
|
+
$isDisabled,
|
|
12059
|
+
$theme
|
|
11076
12060
|
} = _ref2;
|
|
11077
12061
|
return css`
|
|
11078
12062
|
cursor: ${$isDisabled ? 'default' : 'pointer'};
|
|
11079
|
-
background-color: ${$isActive ?
|
|
12063
|
+
background-color: ${$isActive ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})` : $isSelected && !$isDisabled ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})` : $isDisabled ? 'none' : `var(--redsift-color-primary-${$theme === Theme.light ? 'l2' : 'd1'})`};
|
|
11080
12064
|
`;
|
|
11081
12065
|
}};
|
|
11082
12066
|
}
|
|
@@ -11087,10 +12071,11 @@ const StyledItem = styled.div`
|
|
|
11087
12071
|
${_ref3 => {
|
|
11088
12072
|
let {
|
|
11089
12073
|
$isHovered,
|
|
11090
|
-
$isDisabled
|
|
12074
|
+
$isDisabled,
|
|
12075
|
+
$theme
|
|
11091
12076
|
} = _ref3;
|
|
11092
12077
|
return css`
|
|
11093
|
-
background-color: ${$isHovered ?
|
|
12078
|
+
background-color: ${$isHovered ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})` : $isDisabled ? 'none' : `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})`};
|
|
11094
12079
|
`;
|
|
11095
12080
|
}};
|
|
11096
12081
|
}
|
|
@@ -11252,8 +12237,8 @@ function useMenuItem(props) {
|
|
|
11252
12237
|
};
|
|
11253
12238
|
}
|
|
11254
12239
|
|
|
11255
|
-
const _excluded$c = ["children", "className", "defaultSelected", "id", "isActive", "isDisabled", "isHovered", "isSelected", "value"],
|
|
11256
|
-
_excluded2 = ["children", "className", "id", "isActive", "isDisabled", "isHovered", "onClick"];
|
|
12240
|
+
const _excluded$c = ["children", "className", "defaultSelected", "id", "isActive", "isDisabled", "isHovered", "isSelected", "theme", "value"],
|
|
12241
|
+
_excluded2 = ["children", "className", "id", "isActive", "isDisabled", "isHovered", "theme", "onClick"];
|
|
11257
12242
|
const COMPONENT_NAME$a = 'Item';
|
|
11258
12243
|
const CLASSNAME$a = 'redsift-item';
|
|
11259
12244
|
const DEFAULT_PROPS$a = {};
|
|
@@ -11267,6 +12252,7 @@ const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11267
12252
|
isDisabled: propsIsDisabled,
|
|
11268
12253
|
isHovered,
|
|
11269
12254
|
isSelected: propsIsSelected,
|
|
12255
|
+
theme: propsTheme,
|
|
11270
12256
|
value
|
|
11271
12257
|
} = props,
|
|
11272
12258
|
forwardedProps = _objectWithoutProperties(props, _excluded$c);
|
|
@@ -11287,6 +12273,7 @@ const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11287
12273
|
isDisabled: propsIsDisabled,
|
|
11288
12274
|
propsIsSelected: propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected
|
|
11289
12275
|
});
|
|
12276
|
+
const theme = useTheme(propsTheme);
|
|
11290
12277
|
return /*#__PURE__*/React__default.createElement(StyledItem, _extends$1({
|
|
11291
12278
|
role: "option"
|
|
11292
12279
|
}, forwardedProps, {
|
|
@@ -11296,6 +12283,7 @@ const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11296
12283
|
$isFocused: isFocused,
|
|
11297
12284
|
$isHovered: isHovered,
|
|
11298
12285
|
$isSelected: isSelected,
|
|
12286
|
+
$theme: theme,
|
|
11299
12287
|
"aria-selected": isSelected,
|
|
11300
12288
|
className: classNames(Item.className, className),
|
|
11301
12289
|
onClick: handleClick,
|
|
@@ -11312,6 +12300,7 @@ const RenderedMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11312
12300
|
isActive,
|
|
11313
12301
|
isDisabled: propsIsDisabled,
|
|
11314
12302
|
isHovered,
|
|
12303
|
+
theme: propsTheme,
|
|
11315
12304
|
onClick
|
|
11316
12305
|
} = props,
|
|
11317
12306
|
forwardedProps = _objectWithoutProperties(props, _excluded2);
|
|
@@ -11331,6 +12320,7 @@ const RenderedMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11331
12320
|
isDisabled: propsIsDisabled,
|
|
11332
12321
|
onClick: onClick
|
|
11333
12322
|
});
|
|
12323
|
+
const theme = useTheme(propsTheme);
|
|
11334
12324
|
return /*#__PURE__*/React__default.createElement(StyledItem, _extends$1({
|
|
11335
12325
|
role: "option"
|
|
11336
12326
|
}, forwardedProps, {
|
|
@@ -11340,6 +12330,7 @@ const RenderedMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11340
12330
|
$isFocused: isFocused,
|
|
11341
12331
|
$isHovered: isHovered,
|
|
11342
12332
|
$isSelected: false,
|
|
12333
|
+
$theme: theme,
|
|
11343
12334
|
className: classNames(Item.className, className),
|
|
11344
12335
|
onClick: handleClick,
|
|
11345
12336
|
ref: divRef,
|
|
@@ -11420,25 +12411,25 @@ const StyledLink = styled.a`
|
|
|
11420
12411
|
$isDisabled
|
|
11421
12412
|
} = _ref;
|
|
11422
12413
|
return !$isDisabled ? css`
|
|
11423
|
-
color: var(--redsift-color-
|
|
12414
|
+
color: var(--redsift-color-primary-n);
|
|
11424
12415
|
text-decoration: underline;
|
|
11425
|
-
text-decoration-color:
|
|
12416
|
+
text-decoration-color: transparent;
|
|
11426
12417
|
text-underline-offset: 2px;
|
|
11427
12418
|
|
|
11428
12419
|
&:hover,
|
|
11429
12420
|
&:focus-visible {
|
|
11430
12421
|
cursor: pointer !important;
|
|
11431
|
-
text-decoration-color: var(--redsift-color-
|
|
12422
|
+
text-decoration-color: var(--redsift-color-primary-n);
|
|
11432
12423
|
}
|
|
11433
12424
|
` : '';
|
|
11434
12425
|
}}
|
|
11435
12426
|
|
|
11436
12427
|
&:focus-visible {
|
|
11437
|
-
outline: 2px solid var(--redsift-color-
|
|
12428
|
+
outline: 2px solid var(--redsift-color-primary-n);
|
|
11438
12429
|
}
|
|
11439
12430
|
`;
|
|
11440
12431
|
|
|
11441
|
-
const _excluded$b = ["as", "children", "className", "href", "isDisabled"];
|
|
12432
|
+
const _excluded$b = ["as", "children", "className", "href", "isDisabled", "theme"];
|
|
11442
12433
|
const COMPONENT_NAME$9 = 'Link';
|
|
11443
12434
|
const CLASSNAME$9 = 'redsift-link';
|
|
11444
12435
|
const DEFAULT_PROPS$9 = {};
|
|
@@ -11457,9 +12448,11 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11457
12448
|
children,
|
|
11458
12449
|
className,
|
|
11459
12450
|
href,
|
|
11460
|
-
isDisabled
|
|
12451
|
+
isDisabled,
|
|
12452
|
+
theme: propsTheme
|
|
11461
12453
|
} = props,
|
|
11462
12454
|
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
12455
|
+
const theme = useTheme(propsTheme);
|
|
11463
12456
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
11464
12457
|
as: as,
|
|
11465
12458
|
"aria-disabled": isDisabled,
|
|
@@ -11467,6 +12460,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11467
12460
|
tabIndex: !isDisabled ? 0 : undefined
|
|
11468
12461
|
}, forwardedProps, {
|
|
11469
12462
|
$isDisabled: isDisabled,
|
|
12463
|
+
$theme: theme,
|
|
11470
12464
|
className: classNames(Link.className, className),
|
|
11471
12465
|
href: !isDisabled ? href : undefined,
|
|
11472
12466
|
ref: ref
|
|
@@ -11476,7 +12470,7 @@ Link.className = CLASSNAME$9;
|
|
|
11476
12470
|
Link.defaultProps = DEFAULT_PROPS$9;
|
|
11477
12471
|
Link.displayName = COMPONENT_NAME$9;
|
|
11478
12472
|
|
|
11479
|
-
const _excluded$a = ["children", "className", "disabled", "isDisabled"];
|
|
12473
|
+
const _excluded$a = ["children", "className", "disabled", "isDisabled", "theme"];
|
|
11480
12474
|
const COMPONENT_NAME$8 = 'LinkButton';
|
|
11481
12475
|
const CLASSNAME$8 = 'redsift-link-button';
|
|
11482
12476
|
const DEFAULT_PROPS$8 = {};
|
|
@@ -11494,14 +12488,17 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11494
12488
|
children,
|
|
11495
12489
|
className,
|
|
11496
12490
|
disabled,
|
|
11497
|
-
isDisabled: propsIsDisabled
|
|
12491
|
+
isDisabled: propsIsDisabled,
|
|
12492
|
+
theme: propsTheme
|
|
11498
12493
|
} = props,
|
|
11499
12494
|
forwardedProps = _objectWithoutProperties(props, _excluded$a);
|
|
11500
12495
|
const isDisabled = propsIsDisabled || disabled;
|
|
12496
|
+
const theme = useTheme(propsTheme);
|
|
11501
12497
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
11502
12498
|
as: "button"
|
|
11503
12499
|
}, forwardedProps, {
|
|
11504
12500
|
$isDisabled: isDisabled || disabled,
|
|
12501
|
+
$theme: theme,
|
|
11505
12502
|
"aria-disabled": isDisabled || disabled,
|
|
11506
12503
|
className: classNames(LinkButton.className, className),
|
|
11507
12504
|
disabled: isDisabled || disabled
|
|
@@ -11605,7 +12602,8 @@ const RovingTabindexListbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11605
12602
|
/**
|
|
11606
12603
|
* Component style.
|
|
11607
12604
|
*/
|
|
11608
|
-
const StyledListbox = styled
|
|
12605
|
+
const StyledListbox = styled.div`
|
|
12606
|
+
${baseContainer}
|
|
11609
12607
|
outline: none;
|
|
11610
12608
|
|
|
11611
12609
|
${_ref => {
|
|
@@ -11623,15 +12621,15 @@ const StyledListbox = styled(Flexbox)`
|
|
|
11623
12621
|
|
|
11624
12622
|
color: var(--redsift-color-neutral-black);
|
|
11625
12623
|
${$isDisabled ? `
|
|
11626
|
-
color: var(--redsift-color-neutral-
|
|
12624
|
+
color: var(--redsift-color-neutral-mid-grey);
|
|
11627
12625
|
` : ''}
|
|
11628
12626
|
${$isInvalid ? `
|
|
11629
|
-
color: var(--redsift-color-
|
|
12627
|
+
color: var(--redsift-color-red-n);
|
|
11630
12628
|
` : ''}
|
|
11631
12629
|
}
|
|
11632
12630
|
|
|
11633
12631
|
.redsift-listbox-list {
|
|
11634
|
-
border: 1px solid var(--redsift-color-neutral-
|
|
12632
|
+
border: 1px solid var(--redsift-color-neutral-mid-grey);
|
|
11635
12633
|
padding: 4px;
|
|
11636
12634
|
min-width: 200px;
|
|
11637
12635
|
}
|
|
@@ -11786,7 +12784,7 @@ const StyledNumber = styled(StyledText)`
|
|
|
11786
12784
|
font-family: var(--redsift-typography-font-family-poppins);
|
|
11787
12785
|
`;
|
|
11788
12786
|
|
|
11789
|
-
const _excluded$6 = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "fontWeight", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "value", "variant"];
|
|
12787
|
+
const _excluded$6 = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "fontWeight", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "theme", "value", "variant"];
|
|
11790
12788
|
const COMPONENT_NAME$6 = 'Number';
|
|
11791
12789
|
const CLASSNAME$6 = 'redsift-number';
|
|
11792
12790
|
const DEFAULT_PROPS$6 = {
|
|
@@ -11836,6 +12834,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11836
12834
|
unit,
|
|
11837
12835
|
unitDisplay,
|
|
11838
12836
|
useGrouping,
|
|
12837
|
+
theme: propsTheme,
|
|
11839
12838
|
value,
|
|
11840
12839
|
variant
|
|
11841
12840
|
} = props,
|
|
@@ -11873,6 +12872,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11873
12872
|
unitDisplay,
|
|
11874
12873
|
useGrouping
|
|
11875
12874
|
}));
|
|
12875
|
+
const theme = useTheme(propsTheme);
|
|
11876
12876
|
return /*#__PURE__*/React__default.createElement(StyledNumber, _extends$1({
|
|
11877
12877
|
as: as
|
|
11878
12878
|
}, forwardedProps, {
|
|
@@ -11884,6 +12884,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11884
12884
|
$fontSize: fontSize,
|
|
11885
12885
|
$fontWeight: fontWeight,
|
|
11886
12886
|
$noWrap: noWrap,
|
|
12887
|
+
$theme: theme,
|
|
11887
12888
|
$variant: variant
|
|
11888
12889
|
}), formatter.format(value));
|
|
11889
12890
|
});
|
|
@@ -11895,7 +12896,7 @@ Number$1.displayName = COMPONENT_NAME$6;
|
|
|
11895
12896
|
* Component style.
|
|
11896
12897
|
*/
|
|
11897
12898
|
const StyledProgressBar = styled.progress`
|
|
11898
|
-
|
|
12899
|
+
${_ref => {
|
|
11899
12900
|
let {
|
|
11900
12901
|
backgroundColor,
|
|
11901
12902
|
height,
|
|
@@ -11903,29 +12904,29 @@ const StyledProgressBar = styled.progress`
|
|
|
11903
12904
|
width
|
|
11904
12905
|
} = _ref;
|
|
11905
12906
|
return css`
|
|
12907
|
+
&[value] {
|
|
12908
|
+
// Target only state with a value
|
|
12909
|
+
-webkit-appearance: none;
|
|
12910
|
+
appearance: none;
|
|
12911
|
+
height: ${height || '8px'};
|
|
12912
|
+
width: ${width || '100%'};
|
|
12913
|
+
color: var(--redsift-color-presentation-red-default);
|
|
11906
12914
|
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
width: ${width || '100%'};
|
|
11912
|
-
color: var(--redsift-color-presentation-red-default);
|
|
11913
|
-
|
|
11914
|
-
&::-webkit-progress-bar {
|
|
11915
|
-
background-color: ${backgroundColor || 'var(--redsift-color-neutral-xlightgrey)'};
|
|
11916
|
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) inset;
|
|
11917
|
-
}
|
|
12915
|
+
&::-webkit-progress-bar {
|
|
12916
|
+
background-color: ${backgroundColor || 'var(--redsift-color-neutral-x-light-grey)'};
|
|
12917
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) inset;
|
|
12918
|
+
}
|
|
11918
12919
|
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
12920
|
+
&::-webkit-progress-value {
|
|
12921
|
+
background-color: ${progressColor || 'var(--redsift-color-primary-n)'};
|
|
12922
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) inset;
|
|
12923
|
+
}
|
|
12924
|
+
}
|
|
12925
|
+
`;
|
|
11925
12926
|
}}
|
|
11926
12927
|
`;
|
|
11927
12928
|
|
|
11928
|
-
const _excluded$5 = ["className", "value"];
|
|
12929
|
+
const _excluded$5 = ["className", "theme", "value"];
|
|
11929
12930
|
const COMPONENT_NAME$5 = 'ProgressBar';
|
|
11930
12931
|
const CLASSNAME$5 = 'redsift-progress-bar';
|
|
11931
12932
|
const DEFAULT_PROPS$5 = {};
|
|
@@ -11936,15 +12937,18 @@ const DEFAULT_PROPS$5 = {};
|
|
|
11936
12937
|
const ProgressBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11937
12938
|
const {
|
|
11938
12939
|
className,
|
|
12940
|
+
theme: propsTheme,
|
|
11939
12941
|
value
|
|
11940
12942
|
} = props,
|
|
11941
12943
|
forwardedProps = _objectWithoutProperties(props, _excluded$5);
|
|
12944
|
+
const theme = useTheme(propsTheme);
|
|
11942
12945
|
return /*#__PURE__*/React__default.createElement(StyledProgressBar, _extends$1({}, forwardedProps, {
|
|
11943
12946
|
className: classNames(ProgressBar.className, className),
|
|
11944
12947
|
ref: ref,
|
|
11945
12948
|
variant: "determinate",
|
|
11946
12949
|
max: "100",
|
|
11947
|
-
value: value || 0
|
|
12950
|
+
value: value || 0,
|
|
12951
|
+
theme: theme
|
|
11948
12952
|
}));
|
|
11949
12953
|
});
|
|
11950
12954
|
ProgressBar.className = CLASSNAME$5;
|
|
@@ -12002,22 +13006,19 @@ const StyledRadioGroup = styled.div`
|
|
|
12002
13006
|
font-size: var(--redsift-typography-body-font-size);
|
|
12003
13007
|
line-height: var(--redsift-typography-body-line-height);
|
|
12004
13008
|
|
|
12005
|
-
color: var(--redsift-color-neutral-black);
|
|
12006
13009
|
${_ref2 => {
|
|
12007
13010
|
let {
|
|
12008
|
-
$isDisabled
|
|
13011
|
+
$isDisabled,
|
|
13012
|
+
$isInvalid,
|
|
13013
|
+
$theme
|
|
12009
13014
|
} = _ref2;
|
|
12010
|
-
return $isDisabled ? `
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
}
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
} = _ref3;
|
|
12018
|
-
return $isInvalid ? `
|
|
12019
|
-
color: var(--redsift-color-notifications-error-primary);
|
|
12020
|
-
` : '';
|
|
13015
|
+
return $isDisabled ? css`
|
|
13016
|
+
color: var(--redsift-color-${$theme}-components-radio-text-disabled);
|
|
13017
|
+
` : $isInvalid ? css`
|
|
13018
|
+
color: var(--redsift-color-${$theme}-components-radio-text-invalid);
|
|
13019
|
+
` : css`
|
|
13020
|
+
color: var(--redsift-color-${$theme}-components-radio-text-default);
|
|
13021
|
+
`;
|
|
12021
13022
|
}}
|
|
12022
13023
|
}
|
|
12023
13024
|
|
|
@@ -12027,31 +13028,28 @@ const StyledRadioGroup = styled.div`
|
|
|
12027
13028
|
font-size: var(--redsift-typography-helper-font-size);
|
|
12028
13029
|
line-height: var(--redsift-typography-helper-line-height);
|
|
12029
13030
|
|
|
12030
|
-
|
|
12031
|
-
${_ref4 => {
|
|
12032
|
-
let {
|
|
12033
|
-
$isDisabled
|
|
12034
|
-
} = _ref4;
|
|
12035
|
-
return $isDisabled ? `
|
|
12036
|
-
color: var(--redsift-color-neutral-midgrey);
|
|
12037
|
-
` : '';
|
|
12038
|
-
}}
|
|
12039
|
-
${_ref5 => {
|
|
13031
|
+
${_ref3 => {
|
|
12040
13032
|
let {
|
|
12041
|
-
$
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
13033
|
+
$isDisabled,
|
|
13034
|
+
$isInvalid,
|
|
13035
|
+
$theme
|
|
13036
|
+
} = _ref3;
|
|
13037
|
+
return $isDisabled ? css`
|
|
13038
|
+
color: var(--redsift-color-${$theme}-components-radio-text-disabled);
|
|
13039
|
+
` : $isInvalid ? css`
|
|
13040
|
+
color: var(--redsift-color-${$theme}-components-radio-text-invalid);
|
|
13041
|
+
` : css`
|
|
13042
|
+
color: var(--redsift-color-${$theme}-components-radio-text-default);
|
|
13043
|
+
`;
|
|
12046
13044
|
}}
|
|
12047
13045
|
}
|
|
12048
13046
|
`;
|
|
12049
13047
|
|
|
12050
|
-
const _excluded$4 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "value"];
|
|
13048
|
+
const _excluded$4 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "theme", "value"];
|
|
12051
13049
|
const COMPONENT_NAME$4 = 'RadioGroup';
|
|
12052
13050
|
const CLASSNAME$4 = 'redsift-radio-group';
|
|
12053
13051
|
const DEFAULT_PROPS$4 = {
|
|
12054
|
-
color:
|
|
13052
|
+
color: ColorPalette.primary,
|
|
12055
13053
|
orientation: RadioGroupOrientation.vertical
|
|
12056
13054
|
};
|
|
12057
13055
|
|
|
@@ -12072,9 +13070,11 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12072
13070
|
label,
|
|
12073
13071
|
onChange,
|
|
12074
13072
|
orientation,
|
|
13073
|
+
theme: propsTheme,
|
|
12075
13074
|
value
|
|
12076
13075
|
} = props,
|
|
12077
13076
|
forwardedProps = _objectWithoutProperties(props, _excluded$4);
|
|
13077
|
+
const theme = useTheme(propsTheme);
|
|
12078
13078
|
const [selectedValue, setValue] = useState(value || defaultValue || '');
|
|
12079
13079
|
useEffect(() => {
|
|
12080
13080
|
if (value) {
|
|
@@ -12096,11 +13096,16 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12096
13096
|
}
|
|
12097
13097
|
}
|
|
12098
13098
|
};
|
|
12099
|
-
return /*#__PURE__*/React__default.createElement(
|
|
13099
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
13100
|
+
value: {
|
|
13101
|
+
theme
|
|
13102
|
+
}
|
|
13103
|
+
}, /*#__PURE__*/React__default.createElement(StyledRadioGroup, _extends$1({}, forwardedProps, {
|
|
12100
13104
|
$isDisabled: isDisabled,
|
|
12101
13105
|
$isInvalid: isInvalid || isRequired && selectedValue.length === 0,
|
|
12102
13106
|
$isReadOnly: isReadOnly,
|
|
12103
13107
|
$orientation: orientation,
|
|
13108
|
+
$theme: theme,
|
|
12104
13109
|
"aria-disabled": isDisabled,
|
|
12105
13110
|
className: classNames(RadioGroup.className, className),
|
|
12106
13111
|
ref: ref,
|
|
@@ -12113,7 +13118,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12113
13118
|
value: state
|
|
12114
13119
|
}, children)), /*#__PURE__*/React__default.createElement("span", {
|
|
12115
13120
|
className: `${RadioGroup.className}-description`
|
|
12116
|
-
}, description));
|
|
13121
|
+
}, description)));
|
|
12117
13122
|
});
|
|
12118
13123
|
RadioGroup.className = CLASSNAME$4;
|
|
12119
13124
|
RadioGroup.defaultProps = DEFAULT_PROPS$4;
|
|
@@ -12147,14 +13152,15 @@ const StyledRadio = styled.label`
|
|
|
12147
13152
|
${_ref => {
|
|
12148
13153
|
let {
|
|
12149
13154
|
$isDisabled,
|
|
12150
|
-
$isInvalid
|
|
13155
|
+
$isInvalid,
|
|
13156
|
+
$theme
|
|
12151
13157
|
} = _ref;
|
|
12152
13158
|
return $isDisabled ? css`
|
|
12153
|
-
color: var(--redsift-color-
|
|
13159
|
+
color: var(--redsift-color-${$theme}-components-radio-text-disabled);
|
|
12154
13160
|
` : $isInvalid ? css`
|
|
12155
|
-
color: var(--redsift-color-
|
|
13161
|
+
color: var(--redsift-color-${$theme}-components-radio-text-invalid);
|
|
12156
13162
|
` : css`
|
|
12157
|
-
color: var(--redsift-color-
|
|
13163
|
+
color: var(--redsift-color-${$theme}-components-radio-text-default);
|
|
12158
13164
|
`;
|
|
12159
13165
|
}}
|
|
12160
13166
|
|
|
@@ -12181,19 +13187,20 @@ const StyledRadio = styled.label`
|
|
|
12181
13187
|
$isColored,
|
|
12182
13188
|
$isDisabled,
|
|
12183
13189
|
$isInvalid,
|
|
12184
|
-
$isFocusVisible
|
|
13190
|
+
$isFocusVisible,
|
|
13191
|
+
$theme
|
|
12185
13192
|
} = _ref2;
|
|
12186
13193
|
return css`
|
|
12187
13194
|
${$isDisabled ? css`
|
|
12188
|
-
color: var(--redsift-color-
|
|
13195
|
+
color: var(--redsift-color-${$theme}-components-radio-fill-disabled);
|
|
12189
13196
|
` : $isInvalid ? css`
|
|
12190
|
-
color: var(--redsift-color-
|
|
13197
|
+
color: var(--redsift-color-${$theme}-components-radio-fill-invalid);
|
|
12191
13198
|
` : css`
|
|
12192
|
-
color: ${$isColored ?
|
|
13199
|
+
color: ${$isColored ? `var(--redsift-color-${$theme}-components-radio-fill-default)` : `var(--redsift-color-${$theme}-components-radio-fill-uncolored)`};
|
|
12193
13200
|
`}
|
|
12194
13201
|
|
|
12195
13202
|
${$isFocusVisible && !$isDisabled ? css`
|
|
12196
|
-
background-color: ${$isColored ?
|
|
13203
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-radio-fill-default-hover)` : `var(--redsift-color-${$theme}-components-radio-fill-uncolored-hover)`};
|
|
12197
13204
|
border-radius: 16px;
|
|
12198
13205
|
` : ''}
|
|
12199
13206
|
`;
|
|
@@ -12207,11 +13214,17 @@ const StyledRadio = styled.label`
|
|
|
12207
13214
|
${_ref3 => {
|
|
12208
13215
|
let {
|
|
12209
13216
|
$isColored,
|
|
12210
|
-
$isDisabled
|
|
13217
|
+
$isDisabled,
|
|
13218
|
+
$isInvalid,
|
|
13219
|
+
$theme
|
|
12211
13220
|
} = _ref3;
|
|
12212
13221
|
return !$isDisabled ? css`
|
|
12213
13222
|
.redsift-icon {
|
|
12214
|
-
|
|
13223
|
+
${$isInvalid ? css`
|
|
13224
|
+
background-color: var(--redsift-color-${$theme}-components-radio-fill-invalid-hover);
|
|
13225
|
+
` : css`
|
|
13226
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-radio-fill-default-hover)` : `var(--redsift-color-${$theme}-components-radio-fill-uncolored-hover)`};
|
|
13227
|
+
`}
|
|
12215
13228
|
border-radius: 16px;
|
|
12216
13229
|
}
|
|
12217
13230
|
` : '';
|
|
@@ -12219,7 +13232,7 @@ const StyledRadio = styled.label`
|
|
|
12219
13232
|
}
|
|
12220
13233
|
`;
|
|
12221
13234
|
|
|
12222
|
-
const _excluded$3 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
13235
|
+
const _excluded$3 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "theme", "value"];
|
|
12223
13236
|
const COMPONENT_NAME$3 = 'Radio';
|
|
12224
13237
|
const CLASSNAME$3 = 'redsift-radio';
|
|
12225
13238
|
const DEFAULT_PROPS$3 = {
|
|
@@ -12251,9 +13264,11 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12251
13264
|
isSelected: propsIsSelected,
|
|
12252
13265
|
name,
|
|
12253
13266
|
onChange,
|
|
13267
|
+
theme: propsTheme,
|
|
12254
13268
|
value
|
|
12255
13269
|
} = props,
|
|
12256
13270
|
forwardedProps = _objectWithoutProperties(props, _excluded$3);
|
|
13271
|
+
const theme = useTheme(propsTheme);
|
|
12257
13272
|
const {
|
|
12258
13273
|
isFocusVisible,
|
|
12259
13274
|
focusProps
|
|
@@ -12272,7 +13287,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12272
13287
|
setSelected(groupState.value === value);
|
|
12273
13288
|
}
|
|
12274
13289
|
}, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
|
|
12275
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
13290
|
+
warnIfNoAccessibleLabelFound(props, [children], 'Radio');
|
|
12276
13291
|
if (groupState) {
|
|
12277
13292
|
if (propsIsSelected != null) {
|
|
12278
13293
|
console.warn('isSelected is unsupported on individual <Radio> elements within a <RadioGroup> unless the <Radio> is controlled. Please apply this prop to the group instead.');
|
|
@@ -12305,6 +13320,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12305
13320
|
$isInvalid: isInvalid || isRequired && !(isSelected || isControlled && propsIsSelected),
|
|
12306
13321
|
$isRequired: isRequired,
|
|
12307
13322
|
$isSelected: isSelected || isControlled && propsIsSelected,
|
|
13323
|
+
$theme: theme,
|
|
12308
13324
|
className: classNames(Radio.className, className),
|
|
12309
13325
|
ref: ref
|
|
12310
13326
|
}), isSelected || isControlled && propsIsSelected ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -12366,14 +13382,15 @@ const StyledSwitch = styled.label`
|
|
|
12366
13382
|
${_ref => {
|
|
12367
13383
|
let {
|
|
12368
13384
|
$isDisabled,
|
|
12369
|
-
$isInvalid
|
|
13385
|
+
$isInvalid,
|
|
13386
|
+
$theme
|
|
12370
13387
|
} = _ref;
|
|
12371
13388
|
return $isDisabled ? css`
|
|
12372
|
-
color: var(--redsift-color-
|
|
13389
|
+
color: var(--redsift-color-${$theme}-components-switch-text-disabled);
|
|
12373
13390
|
` : $isInvalid ? css`
|
|
12374
|
-
color: var(--redsift-color-
|
|
13391
|
+
color: var(--redsift-color-${$theme}-components-switch-text-invalid);
|
|
12375
13392
|
` : css`
|
|
12376
|
-
color: var(--redsift-color-
|
|
13393
|
+
color: var(--redsift-color-${$theme}-components-switch-text-default);
|
|
12377
13394
|
`;
|
|
12378
13395
|
}}
|
|
12379
13396
|
|
|
@@ -12392,7 +13409,26 @@ const StyledSwitch = styled.label`
|
|
|
12392
13409
|
}
|
|
12393
13410
|
|
|
12394
13411
|
.redsift-switch-slide__inner {
|
|
12395
|
-
|
|
13412
|
+
${_ref2 => {
|
|
13413
|
+
let {
|
|
13414
|
+
$isColored,
|
|
13415
|
+
$isDisabled,
|
|
13416
|
+
$isInvalid,
|
|
13417
|
+
$isSelected,
|
|
13418
|
+
$theme
|
|
13419
|
+
} = _ref2;
|
|
13420
|
+
return $isDisabled ? css`
|
|
13421
|
+
background-color: var(
|
|
13422
|
+
--redsift-color-${$theme}-components-switch-background-disabled${$isSelected ? '-active' : ''}
|
|
13423
|
+
);
|
|
13424
|
+
` : $isInvalid ? css`
|
|
13425
|
+
background-color: var(
|
|
13426
|
+
--redsift-color-${$theme}-components-switch-background-invalid${$isSelected ? '-active' : ''}
|
|
13427
|
+
);
|
|
13428
|
+
` : css`
|
|
13429
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-switch-background-default${$isSelected ? '-active' : ''})` : `var(--redsift-color-${$theme}-components-switch-background-uncolored${$isSelected ? '-active' : ''})`};
|
|
13430
|
+
`;
|
|
13431
|
+
}}
|
|
12396
13432
|
border-radius: 20px;
|
|
12397
13433
|
height: 24px;
|
|
12398
13434
|
position: absolute;
|
|
@@ -12404,10 +13440,10 @@ const StyledSwitch = styled.label`
|
|
|
12404
13440
|
.redsift-switch-slide__knob-wrapper {
|
|
12405
13441
|
border-radius: 50%;
|
|
12406
13442
|
height: 20px;
|
|
12407
|
-
margin-inline-start: ${
|
|
13443
|
+
margin-inline-start: ${_ref3 => {
|
|
12408
13444
|
let {
|
|
12409
13445
|
$isSelected
|
|
12410
|
-
} =
|
|
13446
|
+
} = _ref3;
|
|
12411
13447
|
return !$isSelected ? '2px' : '24px';
|
|
12412
13448
|
}};
|
|
12413
13449
|
position: absolute;
|
|
@@ -12416,23 +13452,27 @@ const StyledSwitch = styled.label`
|
|
|
12416
13452
|
}
|
|
12417
13453
|
|
|
12418
13454
|
.redsift-switch-slide-knob-wrapper__elevation {
|
|
12419
|
-
${
|
|
13455
|
+
${_ref4 => {
|
|
12420
13456
|
let {
|
|
12421
|
-
$
|
|
12422
|
-
$isInvalid
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
12428
|
-
|
|
13457
|
+
$isDisabled,
|
|
13458
|
+
$isInvalid,
|
|
13459
|
+
$theme
|
|
13460
|
+
} = _ref4;
|
|
13461
|
+
return $isDisabled ? css`
|
|
13462
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-disabled-hover);
|
|
13463
|
+
` : $isInvalid ? css`
|
|
13464
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-invalid-hover);
|
|
13465
|
+
` : css`
|
|
13466
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-default-hover);
|
|
13467
|
+
`;
|
|
12429
13468
|
}}
|
|
13469
|
+
|
|
12430
13470
|
border-radius: 50%;
|
|
12431
13471
|
height: 32px;
|
|
12432
|
-
margin-inline-start: ${
|
|
13472
|
+
margin-inline-start: ${_ref5 => {
|
|
12433
13473
|
let {
|
|
12434
13474
|
$isSelected
|
|
12435
|
-
} =
|
|
13475
|
+
} = _ref5;
|
|
12436
13476
|
return !$isSelected ? '-6px' : '-6px';
|
|
12437
13477
|
}};
|
|
12438
13478
|
opacity: 0;
|
|
@@ -12442,7 +13482,20 @@ const StyledSwitch = styled.label`
|
|
|
12442
13482
|
}
|
|
12443
13483
|
|
|
12444
13484
|
.redsift-switch-slide-knob-wrapper__knob {
|
|
12445
|
-
|
|
13485
|
+
${_ref6 => {
|
|
13486
|
+
let {
|
|
13487
|
+
$isDisabled,
|
|
13488
|
+
$isInvalid,
|
|
13489
|
+
$theme
|
|
13490
|
+
} = _ref6;
|
|
13491
|
+
return $isDisabled ? css`
|
|
13492
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-disabled);
|
|
13493
|
+
` : $isInvalid ? css`
|
|
13494
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-invalid);
|
|
13495
|
+
` : css`
|
|
13496
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-default);
|
|
13497
|
+
`;
|
|
13498
|
+
}}
|
|
12446
13499
|
border-radius: 50%;
|
|
12447
13500
|
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);
|
|
12448
13501
|
height: 20px;
|
|
@@ -12452,39 +13505,15 @@ const StyledSwitch = styled.label`
|
|
|
12452
13505
|
z-index: 4;
|
|
12453
13506
|
}
|
|
12454
13507
|
|
|
12455
|
-
.redsift-switch-slide__inner {
|
|
12456
|
-
${_ref5 => {
|
|
12457
|
-
let {
|
|
12458
|
-
$isColored,
|
|
12459
|
-
$isDisabled,
|
|
12460
|
-
$isInvalid,
|
|
12461
|
-
$isSelected
|
|
12462
|
-
} = _ref5;
|
|
12463
|
-
return css`
|
|
12464
|
-
${$isDisabled ? css`
|
|
12465
|
-
background-color: var(--redsift-color-neutral-lightgrey);
|
|
12466
|
-
` : $isSelected ? css`
|
|
12467
|
-
background-color: var(
|
|
12468
|
-
--redsift-color-${$isInvalid ? 'notifications-error-primary' : $isColored ? 'ctas-primary-primary' : 'notifications-no-data-button-active'}
|
|
12469
|
-
);
|
|
12470
|
-
` : css`
|
|
12471
|
-
background-color: var(
|
|
12472
|
-
--redsift-color-${$isInvalid ? 'notifications-error-hover' : $isColored ? 'ctas-primary-hover' : 'notifications-no-data-button-hover'}
|
|
12473
|
-
);
|
|
12474
|
-
`}
|
|
12475
|
-
`;
|
|
12476
|
-
}}
|
|
12477
|
-
}
|
|
12478
|
-
|
|
12479
13508
|
&:hover,
|
|
12480
13509
|
&:focus-visible {
|
|
12481
13510
|
outline: none;
|
|
12482
13511
|
cursor: pointer;
|
|
12483
13512
|
|
|
12484
|
-
${
|
|
13513
|
+
${_ref7 => {
|
|
12485
13514
|
let {
|
|
12486
13515
|
$isDisabled
|
|
12487
|
-
} =
|
|
13516
|
+
} = _ref7;
|
|
12488
13517
|
return !$isDisabled ? css`
|
|
12489
13518
|
.redsift-switch-slide-knob-wrapper__elevation {
|
|
12490
13519
|
opacity: 0.5;
|
|
@@ -12493,11 +13522,11 @@ const StyledSwitch = styled.label`
|
|
|
12493
13522
|
}}
|
|
12494
13523
|
}
|
|
12495
13524
|
|
|
12496
|
-
${
|
|
13525
|
+
${_ref8 => {
|
|
12497
13526
|
let {
|
|
12498
13527
|
$isDisabled,
|
|
12499
13528
|
$isFocusVisible
|
|
12500
|
-
} =
|
|
13529
|
+
} = _ref8;
|
|
12501
13530
|
return $isFocusVisible && !$isDisabled ? css`
|
|
12502
13531
|
.redsift-switch-slide-knob-wrapper__elevation {
|
|
12503
13532
|
opacity: 0.5;
|
|
@@ -12506,7 +13535,7 @@ const StyledSwitch = styled.label`
|
|
|
12506
13535
|
}}
|
|
12507
13536
|
`;
|
|
12508
13537
|
|
|
12509
|
-
const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
13538
|
+
const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "theme", "value"];
|
|
12510
13539
|
const COMPONENT_NAME$2 = 'Switch';
|
|
12511
13540
|
const CLASSNAME$2 = 'redsift-switch';
|
|
12512
13541
|
const DEFAULT_PROPS$2 = {
|
|
@@ -12538,9 +13567,11 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12538
13567
|
isSelected: propsIsSelected,
|
|
12539
13568
|
name,
|
|
12540
13569
|
onChange,
|
|
13570
|
+
theme: propsTheme,
|
|
12541
13571
|
value
|
|
12542
13572
|
} = props,
|
|
12543
13573
|
forwardedProps = _objectWithoutProperties(props, _excluded$2);
|
|
13574
|
+
const theme = useTheme(propsTheme);
|
|
12544
13575
|
const {
|
|
12545
13576
|
isFocusVisible,
|
|
12546
13577
|
focusProps
|
|
@@ -12559,7 +13590,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12559
13590
|
setSelected(groupState.value.includes(value));
|
|
12560
13591
|
}
|
|
12561
13592
|
}, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
|
|
12562
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
13593
|
+
warnIfNoAccessibleLabelFound(props, [children], 'Switch');
|
|
12563
13594
|
if (groupState) {
|
|
12564
13595
|
if (propsIsSelected != null) {
|
|
12565
13596
|
console.warn('isSelected is unsupported on individual <Switch> elements within a <SwitchGroup> unless the <Switch> is controlled. Please apply this prop to the group instead.');
|
|
@@ -12596,6 +13627,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12596
13627
|
$isInvalid: isInvalid || isRequired && !(isSelected || isControlled && propsIsSelected),
|
|
12597
13628
|
$isRequired: isRequired,
|
|
12598
13629
|
$isSelected: isSelected || isControlled && propsIsSelected,
|
|
13630
|
+
$theme: theme,
|
|
12599
13631
|
className: classNames(Switch.className, className),
|
|
12600
13632
|
ref: ref
|
|
12601
13633
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -12682,22 +13714,19 @@ const StyledSwitchGroup = styled.div`
|
|
|
12682
13714
|
font-size: var(--redsift-typography-body-font-size);
|
|
12683
13715
|
line-height: var(--redsift-typography-body-line-height);
|
|
12684
13716
|
|
|
12685
|
-
color: var(--redsift-color-neutral-black);
|
|
12686
13717
|
${_ref2 => {
|
|
12687
13718
|
let {
|
|
12688
|
-
$isDisabled
|
|
13719
|
+
$isDisabled,
|
|
13720
|
+
$isInvalid,
|
|
13721
|
+
$theme
|
|
12689
13722
|
} = _ref2;
|
|
12690
|
-
return $isDisabled ? `
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
}
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
} = _ref3;
|
|
12698
|
-
return $isInvalid ? `
|
|
12699
|
-
color: var(--redsift-color-notifications-error-primary);
|
|
12700
|
-
` : '';
|
|
13723
|
+
return $isDisabled ? css`
|
|
13724
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
13725
|
+
` : $isInvalid ? css`
|
|
13726
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
13727
|
+
` : css`
|
|
13728
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
13729
|
+
`;
|
|
12701
13730
|
}}
|
|
12702
13731
|
}
|
|
12703
13732
|
|
|
@@ -12707,31 +13736,28 @@ const StyledSwitchGroup = styled.div`
|
|
|
12707
13736
|
font-size: var(--redsift-typography-helper-font-size);
|
|
12708
13737
|
line-height: var(--redsift-typography-helper-line-height);
|
|
12709
13738
|
|
|
12710
|
-
|
|
12711
|
-
${_ref4 => {
|
|
12712
|
-
let {
|
|
12713
|
-
$isDisabled
|
|
12714
|
-
} = _ref4;
|
|
12715
|
-
return $isDisabled ? `
|
|
12716
|
-
color: var(--redsift-color-neutral-midgrey);
|
|
12717
|
-
` : '';
|
|
12718
|
-
}}
|
|
12719
|
-
${_ref5 => {
|
|
13739
|
+
${_ref3 => {
|
|
12720
13740
|
let {
|
|
12721
|
-
$
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
13741
|
+
$isDisabled,
|
|
13742
|
+
$isInvalid,
|
|
13743
|
+
$theme
|
|
13744
|
+
} = _ref3;
|
|
13745
|
+
return $isDisabled ? css`
|
|
13746
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
13747
|
+
` : $isInvalid ? css`
|
|
13748
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
13749
|
+
` : css`
|
|
13750
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
13751
|
+
`;
|
|
12726
13752
|
}}
|
|
12727
13753
|
}
|
|
12728
13754
|
`;
|
|
12729
13755
|
|
|
12730
|
-
const _excluded$1 = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "value"];
|
|
13756
|
+
const _excluded$1 = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "theme", "value"];
|
|
12731
13757
|
const COMPONENT_NAME$1 = 'SwitchGroup';
|
|
12732
13758
|
const CLASSNAME$1 = 'redsift-switch-group';
|
|
12733
13759
|
const DEFAULT_PROPS$1 = {
|
|
12734
|
-
color:
|
|
13760
|
+
color: ColorPalette.primary,
|
|
12735
13761
|
orientation: SwitchGroupOrientation.vertical
|
|
12736
13762
|
};
|
|
12737
13763
|
|
|
@@ -12752,9 +13778,11 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12752
13778
|
label,
|
|
12753
13779
|
onChange,
|
|
12754
13780
|
orientation,
|
|
13781
|
+
theme: propsTheme,
|
|
12755
13782
|
value
|
|
12756
13783
|
} = props,
|
|
12757
13784
|
forwardedProps = _objectWithoutProperties(props, _excluded$1);
|
|
13785
|
+
const theme = useTheme(propsTheme);
|
|
12758
13786
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
12759
13787
|
useEffect(() => {
|
|
12760
13788
|
if (value) {
|
|
@@ -12788,11 +13816,16 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12788
13816
|
}
|
|
12789
13817
|
}
|
|
12790
13818
|
};
|
|
12791
|
-
return /*#__PURE__*/React__default.createElement(
|
|
13819
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
13820
|
+
value: {
|
|
13821
|
+
theme
|
|
13822
|
+
}
|
|
13823
|
+
}, /*#__PURE__*/React__default.createElement(StyledSwitchGroup, _extends$1({}, forwardedProps, {
|
|
12792
13824
|
$isDisabled: isDisabled,
|
|
12793
13825
|
$isInvalid: isInvalid || isRequired && selectedValues.length === 0,
|
|
12794
13826
|
$isReadOnly: isReadOnly,
|
|
12795
13827
|
$orientation: orientation,
|
|
13828
|
+
$theme: theme,
|
|
12796
13829
|
"aria-disabled": isDisabled,
|
|
12797
13830
|
className: classNames(SwitchGroup.className, className),
|
|
12798
13831
|
ref: ref,
|
|
@@ -12805,7 +13838,7 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12805
13838
|
value: state
|
|
12806
13839
|
}, children)), /*#__PURE__*/React__default.createElement("span", {
|
|
12807
13840
|
className: `${SwitchGroup.className}-description`
|
|
12808
|
-
}, description));
|
|
13841
|
+
}, description)));
|
|
12809
13842
|
});
|
|
12810
13843
|
SwitchGroup.className = CLASSNAME$1;
|
|
12811
13844
|
SwitchGroup.defaultProps = DEFAULT_PROPS$1;
|
|
@@ -12848,6 +13881,7 @@ const StyledTextField = styled.div`
|
|
|
12848
13881
|
$isDisabled,
|
|
12849
13882
|
$isInvalid,
|
|
12850
13883
|
$isColored,
|
|
13884
|
+
$theme,
|
|
12851
13885
|
$variant
|
|
12852
13886
|
} = _ref;
|
|
12853
13887
|
return css`
|
|
@@ -12881,13 +13915,13 @@ const StyledTextField = styled.div`
|
|
|
12881
13915
|
`}
|
|
12882
13916
|
|
|
12883
13917
|
${$isDisabled ? css`
|
|
12884
|
-
color: var(--redsift-color-
|
|
13918
|
+
color: var(--redsift-color-neutral-light-grey);
|
|
12885
13919
|
` : $isInvalid ? css`
|
|
12886
13920
|
color: var(--redsift-color-notifications-error-primary);
|
|
12887
13921
|
` : $isFocused ? css`
|
|
12888
|
-
color: ${$isColored ? 'var(--redsift-color-
|
|
13922
|
+
color: ${$isColored ? 'var(--redsift-color-primary-n)' : 'var(--redsift-color-notifications-question-primary)'};
|
|
12889
13923
|
` : css`
|
|
12890
|
-
color: var(--redsift-color-neutral-
|
|
13924
|
+
color: var(--redsift-color-neutral-${$theme === Theme.light ? 'x-dark-grey' : 'light-grey'});
|
|
12891
13925
|
`}
|
|
12892
13926
|
}
|
|
12893
13927
|
|
|
@@ -12896,7 +13930,7 @@ const StyledTextField = styled.div`
|
|
|
12896
13930
|
box-sizing: border-box;
|
|
12897
13931
|
cursor: text;
|
|
12898
13932
|
display: inline-flex;
|
|
12899
|
-
height: 42px;
|
|
13933
|
+
min-height: 42px;
|
|
12900
13934
|
position: relative;
|
|
12901
13935
|
}
|
|
12902
13936
|
|
|
@@ -12933,14 +13967,14 @@ const StyledTextField = styled.div`
|
|
|
12933
13967
|
width: auto;
|
|
12934
13968
|
|
|
12935
13969
|
${$isDisabled ? css`
|
|
12936
|
-
color: var(--redsift-color-
|
|
13970
|
+
color: var(--redsift-color-neutral-light-grey);
|
|
12937
13971
|
` : css`
|
|
12938
|
-
color: var(--redsift-color-neutral-
|
|
13972
|
+
color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});
|
|
12939
13973
|
`}
|
|
12940
13974
|
}
|
|
12941
13975
|
|
|
12942
13976
|
.redsift-text-field-input-wrapper__input::placeholder {
|
|
12943
|
-
color: var(--redsift-color-neutral-
|
|
13977
|
+
color: var(--redsift-color-neutral-mid-grey);
|
|
12944
13978
|
}
|
|
12945
13979
|
|
|
12946
13980
|
.redsift-text-field-input-wrapper__input:focus {
|
|
@@ -12969,13 +14003,13 @@ const StyledTextField = styled.div`
|
|
|
12969
14003
|
`}
|
|
12970
14004
|
|
|
12971
14005
|
${$isDisabled ? css`
|
|
12972
|
-
border-color: var(--redsift-color-
|
|
14006
|
+
border-color: var(--redsift-color-neutral-light-grey);
|
|
12973
14007
|
` : $isInvalid ? css`
|
|
12974
14008
|
border-color: var(--redsift-color-notifications-error-primary);
|
|
12975
14009
|
` : $isFocused ? css`
|
|
12976
|
-
border-color: ${$isColored ? 'var(--redsift-color-
|
|
14010
|
+
border-color: ${$isColored ? 'var(--redsift-color-primary-n)' : 'var(--redsift-color-notifications-question-primary)'};
|
|
12977
14011
|
` : css`
|
|
12978
|
-
border-color: var(--redsift-color-neutral-
|
|
14012
|
+
border-color: var(--redsift-color-neutral-mid-grey);
|
|
12979
14013
|
`}
|
|
12980
14014
|
}
|
|
12981
14015
|
|
|
@@ -13040,7 +14074,7 @@ const StyledTextField = styled.div`
|
|
|
13040
14074
|
// Material Design Icons v7.2.96
|
|
13041
14075
|
var mdiClose = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
|
|
13042
14076
|
|
|
13043
|
-
const _excluded = ["aria-label", "aria-labelledby", "autoFocus", "className", "defaultValue", "hasClearButton", "after", "internal", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "leftIcon", "name", "onBlur", "onChange", "onClear", "onFocus", "pills", "placeholder", "type", "value", "variant"];
|
|
14077
|
+
const _excluded = ["aria-label", "aria-labelledby", "autoFocus", "className", "defaultValue", "hasClearButton", "after", "internal", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "leftIcon", "name", "onBlur", "onChange", "onClear", "onFocus", "pills", "placeholder", "theme", "type", "value", "variant"];
|
|
13044
14078
|
const COMPONENT_NAME = 'TextField';
|
|
13045
14079
|
const CLASSNAME = 'redsift-text-field';
|
|
13046
14080
|
const DEFAULT_PROPS = {
|
|
@@ -13079,11 +14113,13 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13079
14113
|
onFocus: onFocusProps,
|
|
13080
14114
|
pills,
|
|
13081
14115
|
placeholder,
|
|
14116
|
+
theme: propsTheme,
|
|
13082
14117
|
type,
|
|
13083
14118
|
value: propsValue,
|
|
13084
14119
|
variant
|
|
13085
14120
|
} = props,
|
|
13086
14121
|
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
14122
|
+
const theme = useTheme(propsTheme);
|
|
13087
14123
|
const {
|
|
13088
14124
|
isFocusVisible,
|
|
13089
14125
|
isFocused,
|
|
@@ -13102,7 +14138,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13102
14138
|
});
|
|
13103
14139
|
const [value, setValue] = useState(defaultValue);
|
|
13104
14140
|
const isControlled = propsValue !== null && propsValue !== undefined;
|
|
13105
|
-
warnIfNoAccessibleLabelFound(props, [label]);
|
|
14141
|
+
warnIfNoAccessibleLabelFound(props, [label], 'TextField');
|
|
13106
14142
|
const handleChange = useCallback(event => {
|
|
13107
14143
|
if (isDisabled || isReadOnly) {
|
|
13108
14144
|
return;
|
|
@@ -13137,6 +14173,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13137
14173
|
$isInvalid: isInvalid || isRequired && !(isControlled ? propsValue : value),
|
|
13138
14174
|
$isRequired: isRequired,
|
|
13139
14175
|
$isFocused: isFocused,
|
|
14176
|
+
$theme: theme,
|
|
13140
14177
|
$variant: variant,
|
|
13141
14178
|
className: classNames(TextField.className, className),
|
|
13142
14179
|
ref: ref
|
|
@@ -13152,6 +14189,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13152
14189
|
})) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
13153
14190
|
className: `${TextField.className}__pills`
|
|
13154
14191
|
}, pills === null || pills === void 0 ? void 0 : pills.map(pill => /*#__PURE__*/React__default.createElement(Pill, {
|
|
14192
|
+
theme: theme,
|
|
13155
14193
|
key: pill.value,
|
|
13156
14194
|
color: "blue",
|
|
13157
14195
|
size: "small"
|
|
@@ -13183,8 +14221,9 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13183
14221
|
className: `${TextField.className}-input-wrapper__toolbar`,
|
|
13184
14222
|
gap: "8px"
|
|
13185
14223
|
}, hasClearButton ? /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
|
|
14224
|
+
theme: theme,
|
|
13186
14225
|
"aria-label": "Clear",
|
|
13187
|
-
color: "
|
|
14226
|
+
color: "grey",
|
|
13188
14227
|
isDisabled: isDisabled,
|
|
13189
14228
|
icon: mdiClose
|
|
13190
14229
|
}, hasClearButton !== true && hasClearButton, {
|
|
@@ -13192,7 +14231,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13192
14231
|
className: "right clear"
|
|
13193
14232
|
})) : null, typeof internal === 'function' ? internal(isControlled ? propsValue : value, isDisabled, isInvalid || isRequired && !(isControlled ? propsValue : value), isRequired) : internal, (hasClearButton || internal) && after ? /*#__PURE__*/React__default.createElement("span", {
|
|
13194
14233
|
style: {
|
|
13195
|
-
borderLeft: '1px solid var(--redsift-color-neutral-
|
|
14234
|
+
borderLeft: '1px solid var(--redsift-color-neutral-mid-grey)'
|
|
13196
14235
|
}
|
|
13197
14236
|
}) : null, typeof after === 'function' ? after(isControlled ? propsValue : value, isDisabled, isInvalid || isRequired && !(isControlled ? propsValue : value), isRequired) : after) : null, /*#__PURE__*/React__default.createElement("fieldset", {
|
|
13198
14237
|
"aria-hidden": "true",
|
|
@@ -13205,5 +14244,5 @@ TextField.className = CLASSNAME;
|
|
|
13205
14244
|
TextField.defaultProps = DEFAULT_PROPS;
|
|
13206
14245
|
TextField.displayName = COMPONENT_NAME;
|
|
13207
14246
|
|
|
13208
|
-
export { ActiveDescendantListbox, Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, AppSidePanelVariant, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, ButtonGroupVariant, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ConditionalWrapper, CtasColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, EventKey, FOCUS_WITHING_GROUP_INITIAL_STATE, FlexDirection, FlexWrap, Flexbox, FocusWithinGroup, FocusWithinGroupActionType, FocusWithinGroupContext, FocusWithinGroupReducer, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, Item, JustifyContent, JustifyItems, JustifySelf, LISTBOX_INITIAL_STATE, Link, LinkButton, Listbox, ListboxActionType, ListboxContext, ListboxReducer, ListboxVariant, Navigation, NeutralColorPalette, NotificationsColorPalette, Number$1 as Number, Pill, PillSize, PresentationColorPalette, Product, ProductColorPalette, ProductLogo, ProductName, ProgressBar, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorCtasPrimaryActive, RedsiftColorCtasPrimaryActiveHover, RedsiftColorCtasPrimaryButtonActive, RedsiftColorCtasPrimaryButtonActiveHover, RedsiftColorCtasPrimaryButtonHover, RedsiftColorCtasPrimaryHover, RedsiftColorCtasPrimaryPrimary, RedsiftColorCtasSecondaryActive, RedsiftColorCtasSecondaryActiveHover, RedsiftColorCtasSecondaryButtonActive, RedsiftColorCtasSecondaryButtonActiveHover, RedsiftColorCtasSecondaryButtonHover, RedsiftColorCtasSecondaryHover, RedsiftColorCtasSecondaryPrimary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNotificationsErrorActive, RedsiftColorNotificationsErrorActiveHover, RedsiftColorNotificationsErrorButtonActive, RedsiftColorNotificationsErrorButtonActiveHover, RedsiftColorNotificationsErrorButtonHover, RedsiftColorNotificationsErrorHover, RedsiftColorNotificationsErrorPrimary, RedsiftColorNotificationsInfoActive, RedsiftColorNotificationsInfoActiveHover, RedsiftColorNotificationsInfoButtonActive, RedsiftColorNotificationsInfoButtonActiveHover, RedsiftColorNotificationsInfoButtonHover, RedsiftColorNotificationsInfoHover, RedsiftColorNotificationsInfoPrimary, RedsiftColorNotificationsNoDataActive, RedsiftColorNotificationsNoDataActiveHover, RedsiftColorNotificationsNoDataButtonActive, RedsiftColorNotificationsNoDataButtonActiveHover, RedsiftColorNotificationsNoDataButtonHover, RedsiftColorNotificationsNoDataHover, RedsiftColorNotificationsNoDataPrimary, RedsiftColorNotificationsQuestionActive, RedsiftColorNotificationsQuestionActiveHover, RedsiftColorNotificationsQuestionButtonActive, RedsiftColorNotificationsQuestionButtonActiveHover, RedsiftColorNotificationsQuestionButtonHover, RedsiftColorNotificationsQuestionHover, RedsiftColorNotificationsQuestionPrimary, RedsiftColorNotificationsSuccessActive, RedsiftColorNotificationsSuccessActiveHover, RedsiftColorNotificationsSuccessButtonActive, RedsiftColorNotificationsSuccessButtonActiveHover, RedsiftColorNotificationsSuccessButtonHover, RedsiftColorNotificationsSuccessHover, RedsiftColorNotificationsSuccessPrimary, RedsiftColorNotificationsWarningActive, RedsiftColorNotificationsWarningActiveHover, RedsiftColorNotificationsWarningButtonActive, RedsiftColorNotificationsWarningButtonActiveHover, RedsiftColorNotificationsWarningButtonHover, RedsiftColorNotificationsWarningHover, RedsiftColorNotificationsWarningPrimary, RedsiftColorPresentationAquaDark, RedsiftColorPresentationAquaDarker, RedsiftColorPresentationAquaDarkerer, RedsiftColorPresentationAquaDefault, RedsiftColorPresentationAquaLight, RedsiftColorPresentationAquaLighter, RedsiftColorPresentationAquaLighterer, RedsiftColorPresentationBlueDark, RedsiftColorPresentationBlueDarker, RedsiftColorPresentationBlueDarkerer, RedsiftColorPresentationBlueDefault, RedsiftColorPresentationBlueLight, RedsiftColorPresentationBlueLighter, RedsiftColorPresentationBlueLighterer, RedsiftColorPresentationBrownDark, RedsiftColorPresentationBrownDarker, RedsiftColorPresentationBrownDarkerer, RedsiftColorPresentationBrownDefault, RedsiftColorPresentationBrownLight, RedsiftColorPresentationBrownLighter, RedsiftColorPresentationBrownLighterer, RedsiftColorPresentationGreenDark, RedsiftColorPresentationGreenDarker, RedsiftColorPresentationGreenDarkerer, RedsiftColorPresentationGreenDefault, RedsiftColorPresentationGreenLight, RedsiftColorPresentationGreenLighter, RedsiftColorPresentationGreenLighterer, RedsiftColorPresentationGreyDark, RedsiftColorPresentationGreyDarker, RedsiftColorPresentationGreyDarkerer, RedsiftColorPresentationGreyDefault, RedsiftColorPresentationGreyLight, RedsiftColorPresentationGreyLighter, RedsiftColorPresentationGreyLighterer, RedsiftColorPresentationOrangeDark, RedsiftColorPresentationOrangeDarker, RedsiftColorPresentationOrangeDarkerer, RedsiftColorPresentationOrangeDefault, RedsiftColorPresentationOrangeLight, RedsiftColorPresentationOrangeLighter, RedsiftColorPresentationOrangeLighterer, RedsiftColorPresentationPinkDark, RedsiftColorPresentationPinkDarker, RedsiftColorPresentationPinkDarkerer, RedsiftColorPresentationPinkDefault, RedsiftColorPresentationPinkLight, RedsiftColorPresentationPinkLighter, RedsiftColorPresentationPinkLighterer, RedsiftColorPresentationPurpleDark, RedsiftColorPresentationPurpleDarker, RedsiftColorPresentationPurpleDarkerer, RedsiftColorPresentationPurpleDefault, RedsiftColorPresentationPurpleLight, RedsiftColorPresentationPurpleLighter, RedsiftColorPresentationPurpleLighterer, RedsiftColorPresentationRedDark, RedsiftColorPresentationRedDarker, RedsiftColorPresentationRedDarkerer, RedsiftColorPresentationRedDefault, RedsiftColorPresentationRedLight, RedsiftColorPresentationRedLighter, RedsiftColorPresentationRedLighterer, RedsiftColorPresentationYellowDark, RedsiftColorPresentationYellowDarker, RedsiftColorPresentationYellowDarkerer, RedsiftColorPresentationYellowDefault, RedsiftColorPresentationYellowLight, RedsiftColorPresentationYellowLighter, RedsiftColorPresentationYellowLighterer, RedsiftColorProductAsm, RedsiftColorProductBrandTrust, RedsiftColorProductCertificates, RedsiftColorProductOndmarc, RedsiftColorProductRadar, RedsiftColorProductRojoDs, RedsiftColorProductVendorSecure, RedsiftColorProductWebsite, RedsiftColorRedsift, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyDatagridCellFontFamily, RedsiftTypographyDatagridCellFontSize, RedsiftTypographyDatagridCellFontWeight, RedsiftTypographyDatagridCellLineHeight, RedsiftTypographyDatagridHeaderFontFamily, RedsiftTypographyDatagridHeaderFontSize, RedsiftTypographyDatagridHeaderFontWeight, RedsiftTypographyDatagridHeaderLineHeight, RedsiftTypographyFontFamilyPoppins, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBlack, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightExtraBold, RedsiftTypographyFontWeightExtraLight, RedsiftTypographyFontWeightLight, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyFontWeightThin, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyHelperTextTransform, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, RovingTabindexListbox, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuBarVariant, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Skeleton, SkeletonCircle, SkeletonText, SkeletonTextVariant, Spinner, SpinnerSize, StyledButton, StyledLink, Switch, SwitchGroup, SwitchGroupOrientation, Text, TextComponent, TextField, TextFieldVariant, TextVariant, baseContainer, baseFlexbox, baseGrid, baseInternalSpacing, baseLayout, basePositioning, baseSizing, baseSpacing, baseStyling, filterComponents, focusRing, getCanvasFont, getContainerProps, getCssStyle, getMaxTextWidth, getTextWidth, isComponent, nextId, partitionComponents, resetId, setPrefix, sizeToDimension$1 as sizeToDimension, uniqueId, useAppSidePanel, useBoundingClientRect, useFocusOnList, useFocusOnListItem, useId$1 as useId, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
14247
|
+
export { ActiveDescendantListbox, Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, AppSidePanelVariant, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, ButtonGroupVariant, ButtonLink, ButtonVariant, ButtonsColorPalette, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, EventKey, FOCUS_WITHING_GROUP_INITIAL_STATE, FlexDirection, FlexWrap, Flexbox, FocusWithinGroup, FocusWithinGroupActionType, FocusWithinGroupContext, FocusWithinGroupReducer, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, Item, JustifyContent, JustifyItems, JustifySelf, LISTBOX_INITIAL_STATE, Link, LinkButton, Listbox, ListboxActionType, ListboxContext, ListboxReducer, ListboxVariant, Navigation, NeutralColorPalette, NotificationsColorPalette, Number$1 as Number, Pill, PillSize, PresentationColorPalette, PrimaryButtonsColorPalette, PrimaryColorPalette, Product, ProductColorPalette, ProductLogo, ProductName, ProgressBar, Radio, RadioGroup, RadioGroupOrientation, RedsiftBorderRadius, RedsiftColorBlueD1, RedsiftColorBlueD2, RedsiftColorBlueD3, RedsiftColorBlueD4, RedsiftColorBlueL1, RedsiftColorBlueL2, RedsiftColorBlueL3, RedsiftColorBlueL4, RedsiftColorBlueN, RedsiftColorBordersBorderDefault, RedsiftColorBordersBorderDisabled, RedsiftColorBordersBorderDivider, RedsiftColorBordersBorderError, RedsiftColorBordersBorderPrimary, RedsiftColorBordersBorderSecondary, RedsiftColorBordersBorderSuccess, RedsiftColorDarkComponentsAiAiBorder, RedsiftColorDarkComponentsAiAiIcon, RedsiftColorDarkComponentsAlertErrorBackground, RedsiftColorDarkComponentsAlertErrorIcon, RedsiftColorDarkComponentsAlertInfoBackground, RedsiftColorDarkComponentsAlertInfoIcon, RedsiftColorDarkComponentsAlertSuccessBackground, RedsiftColorDarkComponentsAlertSuccessIcon, RedsiftColorDarkComponentsAlertText, RedsiftColorDarkComponentsAlertWarningBackground, RedsiftColorDarkComponentsAlertWarningIcon, RedsiftColorDarkComponentsAppBarBackground, RedsiftColorDarkComponentsAppBarBorder, RedsiftColorDarkComponentsAppBarBreadcrumbDefault, RedsiftColorDarkComponentsAppBarBreadcrumbDown, RedsiftColorDarkComponentsAppBarBreadcrumbHover, RedsiftColorDarkComponentsAppBarIconBackgroundActive, RedsiftColorDarkComponentsAppBarIconBackgroundActiveDown, RedsiftColorDarkComponentsAppBarIconBackgroundActiveHover, RedsiftColorDarkComponentsAppBarIconBackgroundDown, RedsiftColorDarkComponentsAppBarIconBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundActive, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextActive, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonErrorTextHover, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundActive, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextActive, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonGreyTextHover, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundActive, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextActive, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonInfoTextHover, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundActive, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextActive, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonPrimaryTextHover, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundActive, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextActive, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonSecondaryTextHover, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundActive, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextActive, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonSuccessTextHover, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundActive, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningBackgroundHover, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextActive, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextDefault, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextDisabled, RedsiftColorDarkComponentsButtonsPrimaryButtonWarningTextHover, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundActive, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorBackgroundHover, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextActive, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonErrorTextHover, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundActive, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyBackgroundHover, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextActive, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonGreyTextHover, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundActive, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoBackgroundHover, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextActive, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonInfoTextHover, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundActive, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryBackgroundHover, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextActive, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonPrimaryTextHover, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundActive, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryBackgroundHover, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextActive, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonSecondaryTextHover, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundActive, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessBackgroundHover, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextActive, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonSuccessTextHover, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundActive, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningBackgroundHover, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextActive, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextDefault, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextDisabled, RedsiftColorDarkComponentsButtonsSecondaryButtonWarningTextHover, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundActive, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorBackgroundHover, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextActive, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonErrorTextHover, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundActive, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyBackgroundHover, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextActive, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonGreyTextHover, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundActive, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoBackgroundHover, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextActive, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonInfoTextHover, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundActive, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryBackgroundHover, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextActive, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonPrimaryTextHover, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundActive, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryBackgroundHover, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextActive, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonSecondaryTextHover, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundActive, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessBackgroundHover, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextActive, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonSuccessTextHover, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundActive, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningBackgroundHover, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextActive, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextDefault, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextDisabled, RedsiftColorDarkComponentsButtonsUnstyledButtonWarningTextHover, RedsiftColorDarkComponentsCheckboxFillDefault, RedsiftColorDarkComponentsCheckboxFillDefaultHover, RedsiftColorDarkComponentsCheckboxFillDisabled, RedsiftColorDarkComponentsCheckboxFillInvalid, RedsiftColorDarkComponentsCheckboxFillInvalidHover, RedsiftColorDarkComponentsCheckboxFillUncolored, RedsiftColorDarkComponentsCheckboxFillUncoloredHover, RedsiftColorDarkComponentsCheckboxTextDefault, RedsiftColorDarkComponentsCheckboxTextDisabled, RedsiftColorDarkComponentsCheckboxTextInvalid, RedsiftColorDarkComponentsDropdownsAndMenusClickBackground, RedsiftColorDarkComponentsDropdownsAndMenusClickText, RedsiftColorDarkComponentsDropdownsAndMenusDefaultBackground, RedsiftColorDarkComponentsDropdownsAndMenusDefaultText, RedsiftColorDarkComponentsDropdownsAndMenusDividers, RedsiftColorDarkComponentsDropdownsAndMenusHoverBackground, RedsiftColorDarkComponentsDropdownsAndMenusHoverText, RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveBackground, RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveClickBackground, RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveClickText, RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveHoverBackground, RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveHoverText, RedsiftColorDarkComponentsDropdownsAndMenusToggleActiveText, RedsiftColorDarkComponentsIconsDefault, RedsiftColorDarkComponentsModalBackground, RedsiftColorDarkComponentsPageBackground, RedsiftColorDarkComponentsProductLogosIconGrey, RedsiftColorDarkComponentsProductLogosIconRed, RedsiftColorDarkComponentsProductLogosTextGrey, RedsiftColorDarkComponentsProductLogosTextRed, RedsiftColorDarkComponentsProductLogosTextWhite, RedsiftColorDarkComponentsRadioFillDefault, RedsiftColorDarkComponentsRadioFillDefaultHover, RedsiftColorDarkComponentsRadioFillDisabled, RedsiftColorDarkComponentsRadioFillInvalid, RedsiftColorDarkComponentsRadioFillInvalidHover, RedsiftColorDarkComponentsRadioFillUncolored, RedsiftColorDarkComponentsRadioFillUncoloredHover, RedsiftColorDarkComponentsRadioTextDefault, RedsiftColorDarkComponentsRadioTextDisabled, RedsiftColorDarkComponentsRadioTextInvalid, RedsiftColorDarkComponentsRedSiftLogoDiamondBottomLeft, RedsiftColorDarkComponentsRedSiftLogoDiamondBottomRight, RedsiftColorDarkComponentsRedSiftLogoDiamondDark, RedsiftColorDarkComponentsRedSiftLogoDiamondLight, RedsiftColorDarkComponentsRedSiftLogoDiamondMid, RedsiftColorDarkComponentsRedSiftLogoDiamondTopRight, RedsiftColorDarkComponentsRedSiftLogoIconBackground, RedsiftColorDarkComponentsRedSiftLogoIconR, RedsiftColorDarkComponentsRedSiftLogoTextGrey, RedsiftColorDarkComponentsRedSiftLogoTextRed, RedsiftColorDarkComponentsRedSiftLogoTextWhite, RedsiftColorDarkComponentsSideNavigationBackground, RedsiftColorDarkComponentsSideNavigationCurrentMarker, RedsiftColorDarkComponentsSideNavigationMenuItemActive, RedsiftColorDarkComponentsSideNavigationMenuItemBackgroundActive, RedsiftColorDarkComponentsSideNavigationMenuItemBackgroundHover, RedsiftColorDarkComponentsSideNavigationMenuItemBackgroundSecondary, RedsiftColorDarkComponentsSideNavigationMenuItemTextDisabled, RedsiftColorDarkComponentsSideNavigationMenuItemTextHover, RedsiftColorDarkComponentsSideNavigationMenuItemTextResting, RedsiftColorDarkComponentsSideNavigationRightLine, RedsiftColorDarkComponentsSideNavigationScrollbarHover, RedsiftColorDarkComponentsSideNavigationScrollbarResting, RedsiftColorDarkComponentsSpinnerSpinner, RedsiftColorDarkComponentsSwitchBackgroundDefault, RedsiftColorDarkComponentsSwitchBackgroundDefaultActive, RedsiftColorDarkComponentsSwitchBackgroundDisabled, RedsiftColorDarkComponentsSwitchBackgroundDisabledActive, RedsiftColorDarkComponentsSwitchBackgroundInvalid, RedsiftColorDarkComponentsSwitchBackgroundInvalidActive, RedsiftColorDarkComponentsSwitchBackgroundUncolored, RedsiftColorDarkComponentsSwitchBackgroundUncoloredActive, RedsiftColorDarkComponentsSwitchDotDefault, RedsiftColorDarkComponentsSwitchDotDefaultHover, RedsiftColorDarkComponentsSwitchDotDisabled, RedsiftColorDarkComponentsSwitchDotInvalid, RedsiftColorDarkComponentsSwitchDotInvalidHover, RedsiftColorDarkComponentsSwitchDotUncolored, RedsiftColorDarkComponentsSwitchDotUncoloredHover, RedsiftColorDarkComponentsSwitchTextDefault, RedsiftColorDarkComponentsSwitchTextDisabled, RedsiftColorDarkComponentsSwitchTextInvalid, RedsiftColorDarkComponentsTabsLine, RedsiftColorDarkComponentsTextPrimary, RedsiftColorDarkComponentsTextSecondary, RedsiftColorDarkComponentsTooltipBackground, RedsiftColorDarkComponentsTooltipText, RedsiftColorGreenD1, RedsiftColorGreenD2, RedsiftColorGreenD3, RedsiftColorGreenD4, RedsiftColorGreenL1, RedsiftColorGreenL2, RedsiftColorGreenL3, RedsiftColorGreenL4, RedsiftColorGreenN, RedsiftColorGreyD1, RedsiftColorGreyD2, RedsiftColorGreyD3, RedsiftColorGreyD4, RedsiftColorGreyD5, RedsiftColorGreyL1, RedsiftColorGreyL2, RedsiftColorGreyL3, RedsiftColorGreyL4, RedsiftColorGreyL5, RedsiftColorGreyN, RedsiftColorLightComponentsAiAiBorder, RedsiftColorLightComponentsAiAiIcon, RedsiftColorLightComponentsAlertErrorBackground, RedsiftColorLightComponentsAlertErrorIcon, RedsiftColorLightComponentsAlertInfoBackground, RedsiftColorLightComponentsAlertInfoIcon, RedsiftColorLightComponentsAlertSuccessBackground, RedsiftColorLightComponentsAlertSuccessIcon, RedsiftColorLightComponentsAlertText, RedsiftColorLightComponentsAlertWarningBackground, RedsiftColorLightComponentsAlertWarningIcon, RedsiftColorLightComponentsAppBarBackground, RedsiftColorLightComponentsAppBarBorder, RedsiftColorLightComponentsAppBarBreadcrumbDefault, RedsiftColorLightComponentsAppBarBreadcrumbDown, RedsiftColorLightComponentsAppBarBreadcrumbHover, RedsiftColorLightComponentsAppBarIconBackgroundActive, RedsiftColorLightComponentsAppBarIconBackgroundActiveDown, RedsiftColorLightComponentsAppBarIconBackgroundActiveHover, RedsiftColorLightComponentsAppBarIconBackgroundDown, RedsiftColorLightComponentsAppBarIconBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundActive, RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundDefault, RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonErrorBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextActive, RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextDefault, RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonErrorTextHover, RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundActive, RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundDefault, RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonGreyBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextActive, RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextDefault, RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonGreyTextHover, RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundActive, RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundDefault, RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonInfoBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextActive, RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextDefault, RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonInfoTextHover, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundActive, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundDefault, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextActive, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextDefault, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonPrimaryTextHover, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundActive, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundDefault, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextActive, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextDefault, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonSecondaryTextHover, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundActive, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundDefault, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextActive, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextDefault, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonSuccessTextHover, RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundActive, RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundDefault, RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonWarningBackgroundHover, RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextActive, RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextDefault, RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextDisabled, RedsiftColorLightComponentsButtonsPrimaryButtonWarningTextHover, RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundActive, RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundDefault, RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonErrorBackgroundHover, RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextActive, RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextDefault, RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonErrorTextHover, RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundActive, RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundDefault, RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonGreyBackgroundHover, RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextActive, RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextDefault, RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonGreyTextHover, RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundActive, RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundDefault, RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonInfoBackgroundHover, RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextActive, RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextDefault, RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonInfoTextHover, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundActive, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundDefault, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryBackgroundHover, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextActive, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextDefault, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonPrimaryTextHover, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundActive, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundDefault, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryBackgroundHover, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextActive, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextDefault, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonSecondaryTextHover, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundActive, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundDefault, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessBackgroundHover, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextActive, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextDefault, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonSuccessTextHover, RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundActive, RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundDefault, RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonWarningBackgroundHover, RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextActive, RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextDefault, RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextDisabled, RedsiftColorLightComponentsButtonsSecondaryButtonWarningTextHover, RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundActive, RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundDefault, RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonErrorBackgroundHover, RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextActive, RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextDefault, RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonErrorTextHover, RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundActive, RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundDefault, RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonGreyBackgroundHover, RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextActive, RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextDefault, RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonGreyTextHover, RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundActive, RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundDefault, RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonInfoBackgroundHover, RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextActive, RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextDefault, RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonInfoTextHover, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundActive, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundDefault, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryBackgroundHover, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextActive, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextDefault, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonPrimaryTextHover, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundActive, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundDefault, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryBackgroundHover, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextActive, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextDefault, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonSecondaryTextHover, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundActive, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundDefault, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessBackgroundHover, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextActive, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextDefault, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonSuccessTextHover, RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundActive, RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundDefault, RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonWarningBackgroundHover, RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextActive, RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextDefault, RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextDisabled, RedsiftColorLightComponentsButtonsUnstyledButtonWarningTextHover, RedsiftColorLightComponentsCheckboxFillDefault, RedsiftColorLightComponentsCheckboxFillDefaultHover, RedsiftColorLightComponentsCheckboxFillDisabled, RedsiftColorLightComponentsCheckboxFillInvalid, RedsiftColorLightComponentsCheckboxFillInvalidHover, RedsiftColorLightComponentsCheckboxFillUncolored, RedsiftColorLightComponentsCheckboxFillUncoloredHover, RedsiftColorLightComponentsCheckboxTextDefault, RedsiftColorLightComponentsCheckboxTextDisabled, RedsiftColorLightComponentsCheckboxTextInvalid, RedsiftColorLightComponentsDropdownsAndMenusClickBackground, RedsiftColorLightComponentsDropdownsAndMenusClickText, RedsiftColorLightComponentsDropdownsAndMenusDefaultBackground, RedsiftColorLightComponentsDropdownsAndMenusDefaultText, RedsiftColorLightComponentsDropdownsAndMenusDividers, RedsiftColorLightComponentsDropdownsAndMenusHoverBackground, RedsiftColorLightComponentsDropdownsAndMenusHoverText, RedsiftColorLightComponentsDropdownsAndMenusToggleActiveBackground, RedsiftColorLightComponentsDropdownsAndMenusToggleActiveClickBackground, RedsiftColorLightComponentsDropdownsAndMenusToggleActiveClickText, RedsiftColorLightComponentsDropdownsAndMenusToggleActiveHoverBackground, RedsiftColorLightComponentsDropdownsAndMenusToggleActiveHoverText, RedsiftColorLightComponentsDropdownsAndMenusToggleActiveText, RedsiftColorLightComponentsIconsDefault, RedsiftColorLightComponentsModalBackground, RedsiftColorLightComponentsPageBackground, RedsiftColorLightComponentsProductLogosIconGrey, RedsiftColorLightComponentsProductLogosIconRed, RedsiftColorLightComponentsProductLogosTextGrey, RedsiftColorLightComponentsProductLogosTextRed, RedsiftColorLightComponentsProductLogosTextWhite, RedsiftColorLightComponentsRadioFillDefault, RedsiftColorLightComponentsRadioFillDefaultHover, RedsiftColorLightComponentsRadioFillDisabled, RedsiftColorLightComponentsRadioFillInvalid, RedsiftColorLightComponentsRadioFillInvalidHover, RedsiftColorLightComponentsRadioFillUncolored, RedsiftColorLightComponentsRadioFillUncoloredHover, RedsiftColorLightComponentsRadioTextDefault, RedsiftColorLightComponentsRadioTextDisabled, RedsiftColorLightComponentsRadioTextInvalid, RedsiftColorLightComponentsRedSiftLogoDiamondBottomLeft, RedsiftColorLightComponentsRedSiftLogoDiamondBottomRight, RedsiftColorLightComponentsRedSiftLogoDiamondDark, RedsiftColorLightComponentsRedSiftLogoDiamondLight, RedsiftColorLightComponentsRedSiftLogoDiamondMid, RedsiftColorLightComponentsRedSiftLogoDiamondTopRight, RedsiftColorLightComponentsRedSiftLogoIconBackground, RedsiftColorLightComponentsRedSiftLogoIconR, RedsiftColorLightComponentsRedSiftLogoTextGrey, RedsiftColorLightComponentsRedSiftLogoTextRed, RedsiftColorLightComponentsRedSiftLogoTextWhite, RedsiftColorLightComponentsSideNavigationBackground, RedsiftColorLightComponentsSideNavigationCurrentMarker, RedsiftColorLightComponentsSideNavigationMenuItemActive, RedsiftColorLightComponentsSideNavigationMenuItemBackgroundActive, RedsiftColorLightComponentsSideNavigationMenuItemBackgroundHover, RedsiftColorLightComponentsSideNavigationMenuItemBackgroundSecondary, RedsiftColorLightComponentsSideNavigationMenuItemTextDisabled, RedsiftColorLightComponentsSideNavigationMenuItemTextHover, RedsiftColorLightComponentsSideNavigationMenuItemTextResting, RedsiftColorLightComponentsSideNavigationRightLine, RedsiftColorLightComponentsSideNavigationScrollbarHover, RedsiftColorLightComponentsSideNavigationScrollbarResting, RedsiftColorLightComponentsSpinnerSpinner, RedsiftColorLightComponentsSwitchBackgroundDefault, RedsiftColorLightComponentsSwitchBackgroundDefaultActive, RedsiftColorLightComponentsSwitchBackgroundDisabled, RedsiftColorLightComponentsSwitchBackgroundDisabledActive, RedsiftColorLightComponentsSwitchBackgroundInvalid, RedsiftColorLightComponentsSwitchBackgroundInvalidActive, RedsiftColorLightComponentsSwitchBackgroundUncolored, RedsiftColorLightComponentsSwitchBackgroundUncoloredActive, RedsiftColorLightComponentsSwitchDotDefault, RedsiftColorLightComponentsSwitchDotDefaultHover, RedsiftColorLightComponentsSwitchDotDisabled, RedsiftColorLightComponentsSwitchDotInvalid, RedsiftColorLightComponentsSwitchDotInvalidHover, RedsiftColorLightComponentsSwitchDotUncolored, RedsiftColorLightComponentsSwitchDotUncoloredHover, RedsiftColorLightComponentsSwitchTextDefault, RedsiftColorLightComponentsSwitchTextDisabled, RedsiftColorLightComponentsSwitchTextInvalid, RedsiftColorLightComponentsTabsLine, RedsiftColorLightComponentsTextPrimary, RedsiftColorLightComponentsTextSecondary, RedsiftColorLightComponentsTooltipBackground, RedsiftColorLightComponentsTooltipText, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkGrey, RedsiftColorNeutralLightGrey, RedsiftColorNeutralMidGrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXDarkGrey, RedsiftColorNeutralXLightGrey, RedsiftColorNotificationsErrorActive, RedsiftColorNotificationsErrorHover, RedsiftColorNotificationsErrorPrimary, RedsiftColorNotificationsInfoActive, RedsiftColorNotificationsInfoHover, RedsiftColorNotificationsInfoPrimary, RedsiftColorNotificationsNoDataActive, RedsiftColorNotificationsNoDataHover, RedsiftColorNotificationsNoDataPrimary, RedsiftColorNotificationsPrimaryActive, RedsiftColorNotificationsPrimaryHover, RedsiftColorNotificationsPrimaryPrimary, RedsiftColorNotificationsQuestionActive, RedsiftColorNotificationsQuestionHover, RedsiftColorNotificationsQuestionPrimary, RedsiftColorNotificationsSecondaryActive, RedsiftColorNotificationsSecondaryHover, RedsiftColorNotificationsSecondaryPrimary, RedsiftColorNotificationsSuccessActive, RedsiftColorNotificationsSuccessHover, RedsiftColorNotificationsSuccessPrimary, RedsiftColorNotificationsWarningActive, RedsiftColorNotificationsWarningHover, RedsiftColorNotificationsWarningPrimary, RedsiftColorPresentationAquaDark, RedsiftColorPresentationAquaDarker, RedsiftColorPresentationAquaDarkerer, RedsiftColorPresentationAquaDefault, RedsiftColorPresentationAquaLight, RedsiftColorPresentationAquaLighter, RedsiftColorPresentationAquaLighterer, RedsiftColorPresentationBlueDark, RedsiftColorPresentationBlueDarker, RedsiftColorPresentationBlueDarkerer, RedsiftColorPresentationBlueDefault, RedsiftColorPresentationBlueLight, RedsiftColorPresentationBlueLighter, RedsiftColorPresentationBlueLighterer, RedsiftColorPresentationBrownDark, RedsiftColorPresentationBrownDarker, RedsiftColorPresentationBrownDarkerer, RedsiftColorPresentationBrownDefault, RedsiftColorPresentationBrownLight, RedsiftColorPresentationBrownLighter, RedsiftColorPresentationBrownLighterer, RedsiftColorPresentationGreenDark, RedsiftColorPresentationGreenDarker, RedsiftColorPresentationGreenDarkerer, RedsiftColorPresentationGreenDefault, RedsiftColorPresentationGreenLight, RedsiftColorPresentationGreenLighter, RedsiftColorPresentationGreenLighterer, RedsiftColorPresentationGreyDark, RedsiftColorPresentationGreyDarker, RedsiftColorPresentationGreyDarkerer, RedsiftColorPresentationGreyDefault, RedsiftColorPresentationGreyLight, RedsiftColorPresentationGreyLighter, RedsiftColorPresentationGreyLighterer, RedsiftColorPresentationOrangeDark, RedsiftColorPresentationOrangeDarker, RedsiftColorPresentationOrangeDarkerer, RedsiftColorPresentationOrangeDefault, RedsiftColorPresentationOrangeLight, RedsiftColorPresentationOrangeLighter, RedsiftColorPresentationOrangeLighterer, RedsiftColorPresentationPinkDark, RedsiftColorPresentationPinkDarker, RedsiftColorPresentationPinkDarkerer, RedsiftColorPresentationPinkDefault, RedsiftColorPresentationPinkLight, RedsiftColorPresentationPinkLighter, RedsiftColorPresentationPinkLighterer, RedsiftColorPresentationPurpleDark, RedsiftColorPresentationPurpleDarker, RedsiftColorPresentationPurpleDarkerer, RedsiftColorPresentationPurpleDefault, RedsiftColorPresentationPurpleLight, RedsiftColorPresentationPurpleLighter, RedsiftColorPresentationPurpleLighterer, RedsiftColorPresentationRedDark, RedsiftColorPresentationRedDarker, RedsiftColorPresentationRedDarkerer, RedsiftColorPresentationRedDefault, RedsiftColorPresentationRedLight, RedsiftColorPresentationRedLighter, RedsiftColorPresentationRedLighterer, RedsiftColorPresentationYellowDark, RedsiftColorPresentationYellowDarker, RedsiftColorPresentationYellowDarkerer, RedsiftColorPresentationYellowDefault, RedsiftColorPresentationYellowLight, RedsiftColorPresentationYellowLighter, RedsiftColorPresentationYellowLighterer, RedsiftColorPrimaryD1, RedsiftColorPrimaryD2, RedsiftColorPrimaryD3, RedsiftColorPrimaryD4, RedsiftColorPrimaryL1, RedsiftColorPrimaryL2, RedsiftColorPrimaryL3, RedsiftColorPrimaryL4, RedsiftColorPrimaryN, RedsiftColorProductAsm, RedsiftColorProductBrandTrust, RedsiftColorProductCertificates, RedsiftColorProductHardenize, RedsiftColorProductOnDmarc, RedsiftColorProductOnInbox, RedsiftColorProductRadar, RedsiftColorProductVendorSecure, RedsiftColorRedD1, RedsiftColorRedD2, RedsiftColorRedD3, RedsiftColorRedD4, RedsiftColorRedL1, RedsiftColorRedL2, RedsiftColorRedL3, RedsiftColorRedL4, RedsiftColorRedN, RedsiftColorSecondaryD1, RedsiftColorSecondaryD2, RedsiftColorSecondaryD3, RedsiftColorSecondaryD4, RedsiftColorSecondaryL1, RedsiftColorSecondaryL2, RedsiftColorSecondaryL3, RedsiftColorSecondaryL4, RedsiftColorSecondaryN, RedsiftColorTealD1, RedsiftColorTealD2, RedsiftColorTealD3, RedsiftColorTealD4, RedsiftColorTealL1, RedsiftColorTealL2, RedsiftColorTealL3, RedsiftColorTealL4, RedsiftColorTealN, RedsiftColorTextPrimary, RedsiftColorTextSecondary, RedsiftColorYellowD1, RedsiftColorYellowD2, RedsiftColorYellowD3, RedsiftColorYellowD4, RedsiftColorYellowL1, RedsiftColorYellowL2, RedsiftColorYellowL3, RedsiftColorYellowL4, RedsiftColorYellowN, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyDatagridCellFontFamily, RedsiftTypographyDatagridCellFontSize, RedsiftTypographyDatagridCellFontWeight, RedsiftTypographyDatagridCellLineHeight, RedsiftTypographyDatagridHeaderFontFamily, RedsiftTypographyDatagridHeaderFontSize, RedsiftTypographyDatagridHeaderFontWeight, RedsiftTypographyDatagridHeaderLineHeight, RedsiftTypographyFontFamilyPoppins, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBlack, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightExtraBold, RedsiftTypographyFontWeightExtraLight, RedsiftTypographyFontWeightLight, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyFontWeightThin, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyHelperTextTransform, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, RovingTabindexListbox, SecondaryColorPalette, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuBarVariant, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Skeleton, SkeletonCircle, SkeletonText, SkeletonTextVariant, Spinner, SpinnerSize, StyledButton, StyledLink, Switch, SwitchGroup, SwitchGroupOrientation, Text, TextComponent, TextField, TextFieldVariant, TextVariant, Theme, ThemeContext, ThemeProvider, baseContainer, baseFlexbox, baseGrid, baseInternalSpacing, baseLayout, basePositioning, baseSizing, baseSpacing, baseStyling, filterComponents, focusRing, getCanvasFont, getContainerProps, getCssStyle, getMaxTextWidth, getTextWidth, isComponent, nextId, partitionComponents, resetId, setPrefix, sizeToDimension$1 as sizeToDimension, srOnly, uniqueId, useAppSidePanel, useBoundingClientRect, useFocusOnList, useFocusOnListItem, useId$1 as useId, useSideNavigationMenuBar, useTheme, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
13209
14248
|
//# sourceMappingURL=index.js.map
|