@redsift/design-system 9.6.0 → 10.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +2 -2
- package/index.d.ts +934 -173
- package/index.js +1697 -666
- 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, {
|
|
@@ -4202,7 +5000,7 @@ const StyledAppContent = styled.main`
|
|
|
4202
5000
|
}}
|
|
4203
5001
|
`;
|
|
4204
5002
|
|
|
4205
|
-
const _excluded$x = ["children", "className"];
|
|
5003
|
+
const _excluded$x = ["children", "className", "theme"];
|
|
4206
5004
|
const COMPONENT_NAME$y = 'AppContent';
|
|
4207
5005
|
const CLASSNAME$y = 'redsift-app-content';
|
|
4208
5006
|
const DEFAULT_PROPS$y = {};
|
|
@@ -4213,16 +5011,19 @@ const DEFAULT_PROPS$y = {};
|
|
|
4213
5011
|
const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4214
5012
|
const {
|
|
4215
5013
|
children,
|
|
4216
|
-
className
|
|
5014
|
+
className,
|
|
5015
|
+
theme: propsTheme
|
|
4217
5016
|
} = props,
|
|
4218
5017
|
forwardedProps = _objectWithoutProperties(props, _excluded$x);
|
|
4219
5018
|
const {
|
|
4220
5019
|
isLoaded
|
|
4221
5020
|
} = useIsLoaded();
|
|
4222
5021
|
const appContainerState = useContext(AppContainerContext);
|
|
5022
|
+
const theme = useTheme(propsTheme);
|
|
4223
5023
|
return /*#__PURE__*/React__default.createElement(StyledAppContent, _extends$1({}, forwardedProps, {
|
|
4224
5024
|
$isLoaded: isLoaded,
|
|
4225
5025
|
$isSidePanelCollapsed: appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true,
|
|
5026
|
+
$theme: theme,
|
|
4226
5027
|
className: classNames(AppContent.className, className),
|
|
4227
5028
|
ref: ref
|
|
4228
5029
|
}), children);
|
|
@@ -4265,7 +5066,8 @@ const StyledButtonGroup = styled.div`
|
|
|
4265
5066
|
${_ref2 => {
|
|
4266
5067
|
let {
|
|
4267
5068
|
$color,
|
|
4268
|
-
$variant
|
|
5069
|
+
$variant,
|
|
5070
|
+
$theme
|
|
4269
5071
|
} = _ref2;
|
|
4270
5072
|
return css`
|
|
4271
5073
|
${$variant === ButtonGroupVariant.secondary ? css`
|
|
@@ -4294,7 +5096,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4294
5096
|
border-top-right-radius: 0;
|
|
4295
5097
|
border-bottom-right-radius: 0;
|
|
4296
5098
|
border-right: 1px solid rgba(0, 0, 0, 0.23);
|
|
4297
|
-
border-color: ${`var(
|
|
5099
|
+
border-color: ${`var(
|
|
5100
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-default
|
|
5101
|
+
)`};
|
|
4298
5102
|
}
|
|
4299
5103
|
|
|
4300
5104
|
.middle-button {
|
|
@@ -4303,7 +5107,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4303
5107
|
border-top-right-radius: 0;
|
|
4304
5108
|
border-bottom-right-radius: 0;
|
|
4305
5109
|
border-right: 1px solid rgba(0, 0, 0, 0.23);
|
|
4306
|
-
border-color: ${`var(
|
|
5110
|
+
border-color: ${`var(
|
|
5111
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-default
|
|
5112
|
+
)`};
|
|
4307
5113
|
}
|
|
4308
5114
|
|
|
4309
5115
|
.last-button {
|
|
@@ -4315,7 +5121,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4315
5121
|
border-top-right-radius: 0;
|
|
4316
5122
|
border-bottom-right-radius: 0;
|
|
4317
5123
|
border-right: 1px solid #bdbdbd;
|
|
4318
|
-
border-color: ${`var(
|
|
5124
|
+
border-color: ${`var(
|
|
5125
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-hover
|
|
5126
|
+
)`};
|
|
4319
5127
|
}
|
|
4320
5128
|
|
|
4321
5129
|
.middle-button {
|
|
@@ -4324,7 +5132,9 @@ const StyledButtonGroup = styled.div`
|
|
|
4324
5132
|
border-top-right-radius: 0;
|
|
4325
5133
|
border-bottom-right-radius: 0;
|
|
4326
5134
|
border-right: 1px solid #bdbdbd;
|
|
4327
|
-
border-color: ${`var(
|
|
5135
|
+
border-color: ${`var(
|
|
5136
|
+
--redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-hover
|
|
5137
|
+
)`};
|
|
4328
5138
|
}
|
|
4329
5139
|
|
|
4330
5140
|
.last-button {
|
|
@@ -4336,10 +5146,11 @@ const StyledButtonGroup = styled.div`
|
|
|
4336
5146
|
}};
|
|
4337
5147
|
`;
|
|
4338
5148
|
|
|
4339
|
-
const _excluded$w = ["children", "className", "color", "variant"];
|
|
5149
|
+
const _excluded$w = ["children", "className", "color", "theme", "variant"];
|
|
4340
5150
|
const COMPONENT_NAME$x = 'ButtonGroup';
|
|
4341
5151
|
const CLASSNAME$x = 'redsift-button-group';
|
|
4342
5152
|
const DEFAULT_PROPS$x = {
|
|
5153
|
+
color: 'primary',
|
|
4343
5154
|
variant: 'primary'
|
|
4344
5155
|
};
|
|
4345
5156
|
|
|
@@ -4351,9 +5162,11 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4351
5162
|
children,
|
|
4352
5163
|
className,
|
|
4353
5164
|
color,
|
|
5165
|
+
theme: propsTheme,
|
|
4354
5166
|
variant
|
|
4355
5167
|
} = props,
|
|
4356
5168
|
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
5169
|
+
const theme = useTheme(propsTheme);
|
|
4357
5170
|
|
|
4358
5171
|
/**
|
|
4359
5172
|
* Create an array containing only valid children being either Button, IconButton, ButtonLink or MenuButton.
|
|
@@ -4365,6 +5178,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4365
5178
|
var _child$key;
|
|
4366
5179
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
4367
5180
|
color,
|
|
5181
|
+
theme,
|
|
4368
5182
|
variant,
|
|
4369
5183
|
key: (_child$key = child.key) !== null && _child$key !== void 0 ? _child$key : index,
|
|
4370
5184
|
triggerClassName: index === 0 ? 'first-button' : index === childArray.length - 1 ? 'last-button' : 'middle-button'
|
|
@@ -4372,6 +5186,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4372
5186
|
}
|
|
4373
5187
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
4374
5188
|
color,
|
|
5189
|
+
theme,
|
|
4375
5190
|
variant,
|
|
4376
5191
|
key: (_key = child.key) !== null && _key !== void 0 ? _key : index,
|
|
4377
5192
|
className: index === 0 ? 'first-button' : index === childArray.length - 1 ? 'last-button' : 'middle-button'
|
|
@@ -4381,18 +5196,19 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4381
5196
|
className: classNames(ButtonGroup.className, className),
|
|
4382
5197
|
ref: ref,
|
|
4383
5198
|
$color: color,
|
|
4384
|
-
$variant: variant
|
|
5199
|
+
$variant: variant,
|
|
5200
|
+
$theme: theme
|
|
4385
5201
|
}), buttons);
|
|
4386
5202
|
});
|
|
4387
5203
|
ButtonGroup.className = CLASSNAME$x;
|
|
4388
5204
|
ButtonGroup.defaultProps = DEFAULT_PROPS$x;
|
|
4389
5205
|
ButtonGroup.displayName = COMPONENT_NAME$x;
|
|
4390
5206
|
|
|
4391
|
-
const _excluded$v = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
|
|
5207
|
+
const _excluded$v = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "theme", "variant"];
|
|
4392
5208
|
const COMPONENT_NAME$w = 'ButtonLink';
|
|
4393
5209
|
const CLASSNAME$w = 'redsift-button-link';
|
|
4394
5210
|
const DEFAULT_PROPS$w = {
|
|
4395
|
-
color:
|
|
5211
|
+
color: ButtonsColorPalette.primary,
|
|
4396
5212
|
height: 'fit-content',
|
|
4397
5213
|
variant: ButtonVariant.primary
|
|
4398
5214
|
};
|
|
@@ -4416,9 +5232,11 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4416
5232
|
leftIcon,
|
|
4417
5233
|
rightIcon,
|
|
4418
5234
|
target,
|
|
5235
|
+
theme: propsTheme,
|
|
4419
5236
|
variant
|
|
4420
5237
|
} = props,
|
|
4421
5238
|
forwardedProps = _objectWithoutProperties(props, _excluded$v);
|
|
5239
|
+
const theme = useTheme(propsTheme);
|
|
4422
5240
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({
|
|
4423
5241
|
as: as || 'a',
|
|
4424
5242
|
role: "link",
|
|
@@ -4427,6 +5245,7 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4427
5245
|
$color: color,
|
|
4428
5246
|
$isActive: isActive,
|
|
4429
5247
|
$isDisabled: isDisabled,
|
|
5248
|
+
$theme: theme,
|
|
4430
5249
|
$variant: variant,
|
|
4431
5250
|
className: classNames(ButtonLink.className, className),
|
|
4432
5251
|
href: !isDisabled ? href : undefined,
|
|
@@ -4471,6 +5290,15 @@ var intlMessages$2 = {
|
|
|
4471
5290
|
const StyledCard = styled.div`
|
|
4472
5291
|
${baseStyling}
|
|
4473
5292
|
|
|
5293
|
+
${_ref => {
|
|
5294
|
+
let {
|
|
5295
|
+
$theme
|
|
5296
|
+
} = _ref;
|
|
5297
|
+
return css`
|
|
5298
|
+
color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});
|
|
5299
|
+
`;
|
|
5300
|
+
}}
|
|
5301
|
+
|
|
4474
5302
|
display: flex;
|
|
4475
5303
|
flex-direction: column;
|
|
4476
5304
|
|
|
@@ -4492,22 +5320,22 @@ const StyledCard = styled.div`
|
|
|
4492
5320
|
}
|
|
4493
5321
|
|
|
4494
5322
|
.redsift-card__content {
|
|
4495
|
-
visibility: ${
|
|
5323
|
+
visibility: ${_ref2 => {
|
|
4496
5324
|
let {
|
|
4497
5325
|
$isCollapsed
|
|
4498
|
-
} =
|
|
5326
|
+
} = _ref2;
|
|
4499
5327
|
return !$isCollapsed ? 'visible' : 'hidden';
|
|
4500
5328
|
}};
|
|
4501
|
-
overflow: ${
|
|
5329
|
+
overflow: ${_ref3 => {
|
|
4502
5330
|
let {
|
|
4503
5331
|
$isCollapsed
|
|
4504
|
-
} =
|
|
5332
|
+
} = _ref3;
|
|
4505
5333
|
return !$isCollapsed ? 'visible' : 'hidden';
|
|
4506
5334
|
}};
|
|
4507
|
-
height: ${
|
|
5335
|
+
height: ${_ref4 => {
|
|
4508
5336
|
let {
|
|
4509
5337
|
$isCollapsed
|
|
4510
|
-
} =
|
|
5338
|
+
} = _ref4;
|
|
4511
5339
|
return !$isCollapsed ? 'auto' : '0px';
|
|
4512
5340
|
}};
|
|
4513
5341
|
}
|
|
@@ -4523,8 +5351,6 @@ const StyledCardHeader = styled.div`
|
|
|
4523
5351
|
${baseStyling}
|
|
4524
5352
|
${baseFlexbox}
|
|
4525
5353
|
|
|
4526
|
-
color: var(--redsift-color-neutral-black);
|
|
4527
|
-
|
|
4528
5354
|
.redsift-card-header__header {
|
|
4529
5355
|
align-items: center;
|
|
4530
5356
|
display: flex;
|
|
@@ -4580,7 +5406,12 @@ const StyledSkeleton = styled.div`
|
|
|
4580
5406
|
${baseInternalSpacing}
|
|
4581
5407
|
|
|
4582
5408
|
display: block;
|
|
4583
|
-
background-color:
|
|
5409
|
+
background-color: ${_ref => {
|
|
5410
|
+
let {
|
|
5411
|
+
$theme
|
|
5412
|
+
} = _ref;
|
|
5413
|
+
return $theme === Theme.light ? css`rgba(0, 0, 0, 0.16)` : css`rgba(255, 255, 255, 0.16)`;
|
|
5414
|
+
}};
|
|
4584
5415
|
border-radius: 4px;
|
|
4585
5416
|
position: relative;
|
|
4586
5417
|
overflow: hidden;
|
|
@@ -4589,7 +5420,17 @@ const StyledSkeleton = styled.div`
|
|
|
4589
5420
|
&::after {
|
|
4590
5421
|
-webkit-animation: ${wave} 1.6s linear 0.5s infinite;
|
|
4591
5422
|
animation: ${wave} 1.6s linear 0.5s infinite;
|
|
4592
|
-
background: linear-gradient(
|
|
5423
|
+
background: linear-gradient(
|
|
5424
|
+
90deg,
|
|
5425
|
+
transparent,
|
|
5426
|
+
${_ref2 => {
|
|
5427
|
+
let {
|
|
5428
|
+
$theme
|
|
5429
|
+
} = _ref2;
|
|
5430
|
+
return $theme === Theme.light ? css`rgba(0, 0, 0, 0.04)` : css`rgba(255, 255, 255, 0.04)`;
|
|
5431
|
+
}},
|
|
5432
|
+
transparent
|
|
5433
|
+
);
|
|
4593
5434
|
background-clip: content-box;
|
|
4594
5435
|
content: '';
|
|
4595
5436
|
position: absolute;
|
|
@@ -4625,7 +5466,7 @@ const StyledSkeletonCircle = styled(StyledSkeleton)`
|
|
|
4625
5466
|
}}
|
|
4626
5467
|
`;
|
|
4627
5468
|
|
|
4628
|
-
const _excluded$u = ["children", "className", "isLoaded"];
|
|
5469
|
+
const _excluded$u = ["children", "className", "isLoaded", "theme"];
|
|
4629
5470
|
const COMPONENT_NAME$v = 'SkeletonCircle';
|
|
4630
5471
|
const CLASSNAME$v = 'redsift-skeleton-circle';
|
|
4631
5472
|
const DEFAULT_PROPS$v = {};
|
|
@@ -4637,13 +5478,16 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4637
5478
|
const {
|
|
4638
5479
|
children,
|
|
4639
5480
|
className,
|
|
4640
|
-
isLoaded
|
|
5481
|
+
isLoaded,
|
|
5482
|
+
theme: propsTheme
|
|
4641
5483
|
} = props,
|
|
4642
5484
|
forwardedProps = _objectWithoutProperties(props, _excluded$u);
|
|
5485
|
+
const theme = useTheme(propsTheme);
|
|
4643
5486
|
if (isLoaded) {
|
|
4644
5487
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
4645
5488
|
}
|
|
4646
5489
|
return /*#__PURE__*/React__default.createElement(StyledSkeletonCircle, _extends$1({}, forwardedProps, {
|
|
5490
|
+
$theme: theme,
|
|
4647
5491
|
className: classNames(SkeletonCircle.className, className),
|
|
4648
5492
|
ref: ref
|
|
4649
5493
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
@@ -4704,7 +5548,7 @@ const StyledSkeletonText = styled(StyledSkeleton)`
|
|
|
4704
5548
|
}}}
|
|
4705
5549
|
`;
|
|
4706
5550
|
|
|
4707
|
-
const _excluded$t = ["children", "className", "fontSize", "isLoaded", "lineHeight", "variant"];
|
|
5551
|
+
const _excluded$t = ["children", "className", "fontSize", "isLoaded", "lineHeight", "theme", "variant"];
|
|
4708
5552
|
const COMPONENT_NAME$u = 'SkeletonText';
|
|
4709
5553
|
const CLASSNAME$u = 'redsift-skeleton-text';
|
|
4710
5554
|
const DEFAULT_PROPS$u = {
|
|
@@ -4721,9 +5565,11 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4721
5565
|
fontSize,
|
|
4722
5566
|
isLoaded,
|
|
4723
5567
|
lineHeight,
|
|
5568
|
+
theme: propsTheme,
|
|
4724
5569
|
variant
|
|
4725
5570
|
} = props,
|
|
4726
5571
|
forwardedProps = _objectWithoutProperties(props, _excluded$t);
|
|
5572
|
+
const theme = useTheme(propsTheme);
|
|
4727
5573
|
if (isLoaded) {
|
|
4728
5574
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
4729
5575
|
}
|
|
@@ -4732,6 +5578,7 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4732
5578
|
ref: ref,
|
|
4733
5579
|
$fontSize: fontSize,
|
|
4734
5580
|
$lineHeight: lineHeight,
|
|
5581
|
+
$theme: theme,
|
|
4735
5582
|
$variant: variant
|
|
4736
5583
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
4737
5584
|
});
|
|
@@ -4739,7 +5586,7 @@ SkeletonText.className = CLASSNAME$u;
|
|
|
4739
5586
|
SkeletonText.defaultProps = DEFAULT_PROPS$u;
|
|
4740
5587
|
SkeletonText.displayName = COMPONENT_NAME$u;
|
|
4741
5588
|
|
|
4742
|
-
const _excluded$s = ["children", "className", "isLoaded"];
|
|
5589
|
+
const _excluded$s = ["children", "className", "isLoaded", "theme"];
|
|
4743
5590
|
const COMPONENT_NAME$t = 'Skeleton';
|
|
4744
5591
|
const CLASSNAME$t = 'redsift-skeleton';
|
|
4745
5592
|
const DEFAULT_PROPS$t = {};
|
|
@@ -4751,13 +5598,16 @@ const BaseSkeleton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4751
5598
|
const {
|
|
4752
5599
|
children,
|
|
4753
5600
|
className,
|
|
4754
|
-
isLoaded
|
|
5601
|
+
isLoaded,
|
|
5602
|
+
theme: propsTheme
|
|
4755
5603
|
} = props,
|
|
4756
5604
|
forwardedProps = _objectWithoutProperties(props, _excluded$s);
|
|
5605
|
+
const theme = useTheme(propsTheme);
|
|
4757
5606
|
if (isLoaded) {
|
|
4758
5607
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
4759
5608
|
}
|
|
4760
5609
|
return /*#__PURE__*/React__default.createElement(StyledSkeleton, _extends$1({}, forwardedProps, {
|
|
5610
|
+
$theme: theme,
|
|
4761
5611
|
className: classNames(BaseSkeleton.className, className),
|
|
4762
5612
|
ref: ref
|
|
4763
5613
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
@@ -4824,7 +5674,6 @@ CardHeader.displayName = COMPONENT_NAME$s;
|
|
|
4824
5674
|
const StyledCardBody = styled.div`
|
|
4825
5675
|
${baseContainer}
|
|
4826
5676
|
|
|
4827
|
-
color: var(--redsift-color-neutral-darkgrey);
|
|
4828
5677
|
font-family: var(--redsift-typography-body-font-family);
|
|
4829
5678
|
font-size: var(--redsift-typography-body-font-size);
|
|
4830
5679
|
font-weight: var(--redsift-typography-body-font-weight);
|
|
@@ -4891,7 +5740,7 @@ CardActions.className = CLASSNAME$q;
|
|
|
4891
5740
|
CardActions.defaultProps = DEFAULT_PROPS$q;
|
|
4892
5741
|
CardActions.displayName = COMPONENT_NAME$q;
|
|
4893
5742
|
|
|
4894
|
-
const _excluded$o = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
|
|
5743
|
+
const _excluded$o = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse", "theme"];
|
|
4895
5744
|
const COMPONENT_NAME$p = 'Card';
|
|
4896
5745
|
const CLASSNAME$p = 'redsift-card';
|
|
4897
5746
|
const DEFAULT_PROPS$p = {};
|
|
@@ -4906,9 +5755,11 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4906
5755
|
defaultCollapsed,
|
|
4907
5756
|
isCollapsed: propsIsCollapsed,
|
|
4908
5757
|
isCollapsible,
|
|
4909
|
-
onCollapse
|
|
5758
|
+
onCollapse,
|
|
5759
|
+
theme: propsTheme
|
|
4910
5760
|
} = props,
|
|
4911
5761
|
forwardedProps = _objectWithoutProperties(props, _excluded$o);
|
|
5762
|
+
const theme = useTheme(propsTheme);
|
|
4912
5763
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$2);
|
|
4913
5764
|
const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
4914
5765
|
useEffect(() => {
|
|
@@ -4923,21 +5774,27 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4923
5774
|
}
|
|
4924
5775
|
}, [onCollapse]);
|
|
4925
5776
|
const [[header], [body], [actions]] = partitionComponents(React__default.Children.toArray(children), [isComponent('CardHeader'), isComponent('CardBody'), isComponent('CardActions')]);
|
|
4926
|
-
return /*#__PURE__*/React__default.createElement(
|
|
5777
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
5778
|
+
value: {
|
|
5779
|
+
theme
|
|
5780
|
+
}
|
|
5781
|
+
}, /*#__PURE__*/React__default.createElement(StyledCard, _extends$1({}, forwardedProps, {
|
|
4927
5782
|
className: classNames(BaseCard.className, className),
|
|
4928
5783
|
ref: ref,
|
|
4929
|
-
$isCollapsed: isCollapsed
|
|
5784
|
+
$isCollapsed: isCollapsed,
|
|
5785
|
+
$theme: theme
|
|
4930
5786
|
}), header || isCollapsible ? /*#__PURE__*/React__default.createElement("div", {
|
|
4931
5787
|
className: `${BaseCard.className}__header`
|
|
4932
|
-
}, header ? header : null, isCollapsible ? /*#__PURE__*/React__default.createElement(IconButton, {
|
|
5788
|
+
}, header && isComponent('CardHeader')(header) ? header : null, isCollapsible ? /*#__PURE__*/React__default.createElement(IconButton, {
|
|
5789
|
+
theme: theme,
|
|
4933
5790
|
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
4934
5791
|
className: `${BaseCard.className}-header__icon-button`,
|
|
4935
|
-
color: "
|
|
5792
|
+
color: "grey",
|
|
4936
5793
|
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
4937
5794
|
onClick: () => handleCollapse(!isCollapsed)
|
|
4938
5795
|
}) : null) : null, body || actions ? /*#__PURE__*/React__default.createElement("div", {
|
|
4939
5796
|
className: `${BaseCard.className}__content`
|
|
4940
|
-
}, body, actions) : null);
|
|
5797
|
+
}, body && isComponent('CardBody')(body) ? body : null, actions && isComponent('CardActions')(actions) ? actions : null) : null));
|
|
4941
5798
|
});
|
|
4942
5799
|
BaseCard.className = CLASSNAME$p;
|
|
4943
5800
|
BaseCard.defaultProps = DEFAULT_PROPS$p;
|
|
@@ -4999,22 +5856,19 @@ const StyledCheckboxGroup = styled.div`
|
|
|
4999
5856
|
font-size: var(--redsift-typography-body-font-size);
|
|
5000
5857
|
line-height: var(--redsift-typography-body-line-height);
|
|
5001
5858
|
|
|
5002
|
-
color: var(--redsift-color-neutral-black);
|
|
5003
5859
|
${_ref2 => {
|
|
5004
5860
|
let {
|
|
5005
|
-
$isDisabled
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
}
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
color: var(--redsift-color-notifications-error-primary);
|
|
5017
|
-
` : '';
|
|
5861
|
+
$isDisabled,
|
|
5862
|
+
$isInvalid,
|
|
5863
|
+
$theme
|
|
5864
|
+
} = _ref2;
|
|
5865
|
+
return $isDisabled ? css`
|
|
5866
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
5867
|
+
` : $isInvalid ? css`
|
|
5868
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
5869
|
+
` : css`
|
|
5870
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
5871
|
+
`;
|
|
5018
5872
|
}}
|
|
5019
5873
|
}
|
|
5020
5874
|
|
|
@@ -5024,31 +5878,28 @@ const StyledCheckboxGroup = styled.div`
|
|
|
5024
5878
|
font-size: var(--redsift-typography-helper-font-size);
|
|
5025
5879
|
line-height: var(--redsift-typography-helper-line-height);
|
|
5026
5880
|
|
|
5027
|
-
|
|
5028
|
-
${_ref4 => {
|
|
5029
|
-
let {
|
|
5030
|
-
$isDisabled
|
|
5031
|
-
} = _ref4;
|
|
5032
|
-
return $isDisabled ? `
|
|
5033
|
-
color: var(--redsift-color-neutral-midgrey);
|
|
5034
|
-
` : '';
|
|
5035
|
-
}}
|
|
5036
|
-
${_ref5 => {
|
|
5881
|
+
${_ref3 => {
|
|
5037
5882
|
let {
|
|
5038
|
-
$
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5883
|
+
$isDisabled,
|
|
5884
|
+
$isInvalid,
|
|
5885
|
+
$theme
|
|
5886
|
+
} = _ref3;
|
|
5887
|
+
return $isDisabled ? css`
|
|
5888
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
5889
|
+
` : $isInvalid ? css`
|
|
5890
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
5891
|
+
` : css`
|
|
5892
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
5893
|
+
`;
|
|
5043
5894
|
}}
|
|
5044
5895
|
}
|
|
5045
5896
|
`;
|
|
5046
5897
|
|
|
5047
|
-
const _excluded$n = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "value"];
|
|
5898
|
+
const _excluded$n = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "theme", "value"];
|
|
5048
5899
|
const COMPONENT_NAME$o = 'CheckboxGroup';
|
|
5049
5900
|
const CLASSNAME$o = 'redsift-checkbox-group';
|
|
5050
5901
|
const DEFAULT_PROPS$o = {
|
|
5051
|
-
color:
|
|
5902
|
+
color: ColorPalette.primary,
|
|
5052
5903
|
orientation: CheckboxGroupOrientation.vertical
|
|
5053
5904
|
};
|
|
5054
5905
|
|
|
@@ -5069,9 +5920,11 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5069
5920
|
label,
|
|
5070
5921
|
onChange,
|
|
5071
5922
|
orientation,
|
|
5923
|
+
theme: propsTheme,
|
|
5072
5924
|
value
|
|
5073
5925
|
} = props,
|
|
5074
5926
|
forwardedProps = _objectWithoutProperties(props, _excluded$n);
|
|
5927
|
+
const theme = useTheme(propsTheme);
|
|
5075
5928
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
5076
5929
|
useEffect(() => {
|
|
5077
5930
|
if (value) {
|
|
@@ -5105,11 +5958,16 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5105
5958
|
}
|
|
5106
5959
|
}
|
|
5107
5960
|
};
|
|
5108
|
-
return /*#__PURE__*/React__default.createElement(
|
|
5961
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
5962
|
+
value: {
|
|
5963
|
+
theme
|
|
5964
|
+
}
|
|
5965
|
+
}, /*#__PURE__*/React__default.createElement(StyledCheckboxGroup, _extends$1({}, forwardedProps, {
|
|
5109
5966
|
$isDisabled: isDisabled,
|
|
5110
5967
|
$isInvalid: isInvalid || isRequired && selectedValues.length === 0,
|
|
5111
5968
|
$isReadOnly: isReadOnly,
|
|
5112
5969
|
$orientation: orientation,
|
|
5970
|
+
$theme: theme,
|
|
5113
5971
|
"aria-disabled": isDisabled,
|
|
5114
5972
|
className: classNames(CheckboxGroup.className, className),
|
|
5115
5973
|
ref: ref,
|
|
@@ -5122,7 +5980,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5122
5980
|
value: state
|
|
5123
5981
|
}, children)), /*#__PURE__*/React__default.createElement("span", {
|
|
5124
5982
|
className: `${CheckboxGroup.className}-description`
|
|
5125
|
-
}, description));
|
|
5983
|
+
}, description)));
|
|
5126
5984
|
});
|
|
5127
5985
|
CheckboxGroup.className = CLASSNAME$o;
|
|
5128
5986
|
CheckboxGroup.defaultProps = DEFAULT_PROPS$o;
|
|
@@ -5156,14 +6014,15 @@ const StyledCheckbox = styled.label`
|
|
|
5156
6014
|
${_ref => {
|
|
5157
6015
|
let {
|
|
5158
6016
|
$isDisabled,
|
|
5159
|
-
$isInvalid
|
|
6017
|
+
$isInvalid,
|
|
6018
|
+
$theme
|
|
5160
6019
|
} = _ref;
|
|
5161
6020
|
return $isDisabled ? css`
|
|
5162
|
-
color: var(--redsift-color-
|
|
6021
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
5163
6022
|
` : $isInvalid ? css`
|
|
5164
|
-
color: var(--redsift-color-
|
|
6023
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
5165
6024
|
` : css`
|
|
5166
|
-
color: var(--redsift-color-
|
|
6025
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
5167
6026
|
`;
|
|
5168
6027
|
}}
|
|
5169
6028
|
|
|
@@ -5191,19 +6050,20 @@ const StyledCheckbox = styled.label`
|
|
|
5191
6050
|
$isColored,
|
|
5192
6051
|
$isDisabled,
|
|
5193
6052
|
$isInvalid,
|
|
5194
|
-
$isFocusVisible
|
|
6053
|
+
$isFocusVisible,
|
|
6054
|
+
$theme
|
|
5195
6055
|
} = _ref2;
|
|
5196
6056
|
return css`
|
|
5197
6057
|
${$isDisabled ? css`
|
|
5198
|
-
color: var(--redsift-color-
|
|
6058
|
+
color: var(--redsift-color-${$theme}-components-checkbox-fill-disabled);
|
|
5199
6059
|
` : $isInvalid ? css`
|
|
5200
|
-
color: var(--redsift-color-
|
|
6060
|
+
color: var(--redsift-color-${$theme}-components-checkbox-fill-invalid);
|
|
5201
6061
|
` : css`
|
|
5202
|
-
color: ${$isColored ?
|
|
6062
|
+
color: ${$isColored ? `var(--redsift-color-${$theme}-components-checkbox-fill-default)` : `var(--redsift-color-${$theme}-components-checkbox-fill-uncolored)`};
|
|
5203
6063
|
`}
|
|
5204
6064
|
|
|
5205
6065
|
${$isFocusVisible && !$isDisabled ? css`
|
|
5206
|
-
background-color: ${$isColored ?
|
|
6066
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-checkbox-fill-default-hover)` : `var(--redsift-color-${$theme}-components-checkbox-fill-uncolored-hover)`};
|
|
5207
6067
|
` : ''}
|
|
5208
6068
|
`;
|
|
5209
6069
|
}}
|
|
@@ -5216,11 +6076,17 @@ const StyledCheckbox = styled.label`
|
|
|
5216
6076
|
${_ref3 => {
|
|
5217
6077
|
let {
|
|
5218
6078
|
$isColored,
|
|
5219
|
-
$isDisabled
|
|
6079
|
+
$isDisabled,
|
|
6080
|
+
$isInvalid,
|
|
6081
|
+
$theme
|
|
5220
6082
|
} = _ref3;
|
|
5221
6083
|
return !$isDisabled ? css`
|
|
5222
6084
|
.redsift-icon {
|
|
5223
|
-
|
|
6085
|
+
${$isInvalid ? css`
|
|
6086
|
+
background-color: var(--redsift-color-${$theme}-components-checkbox-fill-invalid-hover);
|
|
6087
|
+
` : css`
|
|
6088
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-checkbox-fill-default-hover)` : `var(--redsift-color-${$theme}-components-checkbox-fill-uncolored-hover)`};
|
|
6089
|
+
`}
|
|
5224
6090
|
border-radius: 4px;
|
|
5225
6091
|
}
|
|
5226
6092
|
` : '';
|
|
@@ -5228,7 +6094,7 @@ const StyledCheckbox = styled.label`
|
|
|
5228
6094
|
}
|
|
5229
6095
|
`;
|
|
5230
6096
|
|
|
5231
|
-
const _excluded$m = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
6097
|
+
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
6098
|
const COMPONENT_NAME$n = 'Checkbox';
|
|
5233
6099
|
const CLASSNAME$n = 'redsift-checkbox';
|
|
5234
6100
|
const DEFAULT_PROPS$n = {
|
|
@@ -5261,9 +6127,11 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5261
6127
|
isSelected: propsIsSelected,
|
|
5262
6128
|
name,
|
|
5263
6129
|
onChange,
|
|
6130
|
+
theme: propsTheme,
|
|
5264
6131
|
value
|
|
5265
6132
|
} = props,
|
|
5266
6133
|
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
6134
|
+
const theme = useTheme(propsTheme);
|
|
5267
6135
|
const {
|
|
5268
6136
|
isFocusVisible,
|
|
5269
6137
|
focusProps
|
|
@@ -5282,7 +6150,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5282
6150
|
setSelected(groupState.value.includes(value));
|
|
5283
6151
|
}
|
|
5284
6152
|
}, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
|
|
5285
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
6153
|
+
warnIfNoAccessibleLabelFound(props, [children], 'Checkbox');
|
|
5286
6154
|
if (groupState) {
|
|
5287
6155
|
if (propsIsSelected != null) {
|
|
5288
6156
|
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 +6187,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5319
6187
|
$isInvalid: isInvalid || isRequired && !(isSelected || isControlled && propsIsSelected),
|
|
5320
6188
|
$isRequired: isRequired,
|
|
5321
6189
|
$isSelected: isSelected || isControlled && propsIsSelected,
|
|
6190
|
+
$theme: theme,
|
|
5322
6191
|
className: classNames(Checkbox.className, className),
|
|
5323
6192
|
ref: ref
|
|
5324
6193
|
}), isSelected || isControlled && propsIsSelected ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -5409,25 +6278,26 @@ const StyledShield = styled.div`
|
|
|
5409
6278
|
let {
|
|
5410
6279
|
$color,
|
|
5411
6280
|
$isOutlined,
|
|
5412
|
-
$isReversed
|
|
6281
|
+
$isReversed,
|
|
6282
|
+
$theme
|
|
5413
6283
|
} = _ref;
|
|
5414
6284
|
if ($isReversed && $isOutlined) {
|
|
5415
6285
|
return css`
|
|
5416
6286
|
& .shield {
|
|
5417
6287
|
fill: var(--redsift-color-notifications-${$color}-primary);
|
|
5418
|
-
stroke:
|
|
6288
|
+
stroke: var(--redsift-color-${$theme}-components-page-background);
|
|
5419
6289
|
stroke-width: 2;
|
|
5420
6290
|
}
|
|
5421
6291
|
& .icon {
|
|
5422
6292
|
fill-rule: evenodd;
|
|
5423
6293
|
clip-rule: evenodd;
|
|
5424
|
-
fill:
|
|
6294
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5425
6295
|
}
|
|
5426
6296
|
`;
|
|
5427
6297
|
} else if ($isOutlined) {
|
|
5428
6298
|
return css`
|
|
5429
6299
|
& .shield {
|
|
5430
|
-
fill:
|
|
6300
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5431
6301
|
stroke: var(--redsift-color-notifications-${$color}-primary);
|
|
5432
6302
|
stroke-width: 2;
|
|
5433
6303
|
}
|
|
@@ -5440,7 +6310,7 @@ const StyledShield = styled.div`
|
|
|
5440
6310
|
} else if ($isReversed) {
|
|
5441
6311
|
return css`
|
|
5442
6312
|
& .shield {
|
|
5443
|
-
fill:
|
|
6313
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5444
6314
|
}
|
|
5445
6315
|
& .icon {
|
|
5446
6316
|
fill-rule: evenodd;
|
|
@@ -5456,14 +6326,14 @@ const StyledShield = styled.div`
|
|
|
5456
6326
|
& .icon {
|
|
5457
6327
|
fill-rule: evenodd;
|
|
5458
6328
|
clip-rule: evenodd;
|
|
5459
|
-
fill:
|
|
6329
|
+
fill: var(--redsift-color-${$theme}-components-page-background);
|
|
5460
6330
|
}
|
|
5461
6331
|
`;
|
|
5462
6332
|
}
|
|
5463
6333
|
}}
|
|
5464
6334
|
`;
|
|
5465
6335
|
|
|
5466
|
-
const _excluded$l = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
|
|
6336
|
+
const _excluded$l = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "theme", "variant"];
|
|
5467
6337
|
const COMPONENT_NAME$m = 'Shield';
|
|
5468
6338
|
const CLASSNAME$m = 'redsift-shield';
|
|
5469
6339
|
const DEFAULT_PROPS$m = {
|
|
@@ -5550,9 +6420,11 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5550
6420
|
svgProps,
|
|
5551
6421
|
isOutlined,
|
|
5552
6422
|
isReversed,
|
|
6423
|
+
theme: propsTheme,
|
|
5553
6424
|
variant
|
|
5554
6425
|
} = props,
|
|
5555
6426
|
forwardedProps = _objectWithoutProperties(props, _excluded$l);
|
|
6427
|
+
const theme = useTheme(propsTheme);
|
|
5556
6428
|
const {
|
|
5557
6429
|
color,
|
|
5558
6430
|
icon
|
|
@@ -5565,6 +6437,7 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5565
6437
|
$color: color,
|
|
5566
6438
|
$isOutlined: isOutlined,
|
|
5567
6439
|
$isReversed: isReversed,
|
|
6440
|
+
$theme: theme,
|
|
5568
6441
|
$variant: variant
|
|
5569
6442
|
}), /*#__PURE__*/React__default.createElement("svg", _extends$1({
|
|
5570
6443
|
"aria-hidden": ariaLabel ? ariaHidden ? ariaHidden : undefined : true,
|
|
@@ -5620,14 +6493,14 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
|
5620
6493
|
return $hideBackground ? css`
|
|
5621
6494
|
background: none;
|
|
5622
6495
|
` : css`
|
|
5623
|
-
background-color: var(--redsift-color-neutral-
|
|
6496
|
+
background-color: var(--redsift-color-neutral-x-light-grey);
|
|
5624
6497
|
margin: 8px -16px;
|
|
5625
6498
|
padding: 8px 16px;
|
|
5626
6499
|
`;
|
|
5627
6500
|
}}
|
|
5628
6501
|
|
|
5629
6502
|
.redsift-detailed-card-collapsible-section-items__caption {
|
|
5630
|
-
color: var(--redsift-color-neutral-
|
|
6503
|
+
color: var(--redsift-color-neutral-x-dark-grey);
|
|
5631
6504
|
display: flex;
|
|
5632
6505
|
font-family: var(--redsift-typography-font-family-poppins);
|
|
5633
6506
|
font-size: 12px;
|
|
@@ -5636,7 +6509,7 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
|
5636
6509
|
line-height: 14px;
|
|
5637
6510
|
margin: 8px 0px;
|
|
5638
6511
|
padding-top: 8px;
|
|
5639
|
-
border-top: 1px solid var(--redsift-color-neutral-
|
|
6512
|
+
border-top: 1px solid var(--redsift-color-neutral-mid-grey);
|
|
5640
6513
|
}
|
|
5641
6514
|
`;
|
|
5642
6515
|
|
|
@@ -5679,10 +6552,12 @@ const StyledDetailedCardSection = styled.div`
|
|
|
5679
6552
|
let {
|
|
5680
6553
|
$color
|
|
5681
6554
|
} = _ref;
|
|
5682
|
-
return $color &&
|
|
5683
|
-
border-bottom: 1px solid var(--redsift-color-${$color}-primary);
|
|
6555
|
+
return $color && Object.keys(NotificationsColorPalette).indexOf($color) !== -1 ? css`
|
|
6556
|
+
border-bottom: 1px solid var(--redsift-color-notifications-${$color}-primary);
|
|
6557
|
+
` : $color && Object.keys(ProductColorPalette).indexOf($color) !== -1 ? css`
|
|
6558
|
+
border-bottom: 1px solid var(--redsift-color-product-${$color});
|
|
5684
6559
|
` : css`
|
|
5685
|
-
border-bottom: 1px solid ${$color || css`var(--redsift-color-neutral-
|
|
6560
|
+
border-bottom: 1px solid ${$color || css`var(--redsift-color-neutral-mid-grey)`};
|
|
5686
6561
|
`;
|
|
5687
6562
|
}}
|
|
5688
6563
|
margin-bottom: 8px;
|
|
@@ -5696,7 +6571,7 @@ const StyledDetailedCardSection = styled.div`
|
|
|
5696
6571
|
}
|
|
5697
6572
|
|
|
5698
6573
|
.redsift-detailed-card-section-header__collapse-button {
|
|
5699
|
-
color: var(--redsift-color-neutral-
|
|
6574
|
+
color: var(--redsift-color-neutral-x-dark-grey);
|
|
5700
6575
|
}
|
|
5701
6576
|
|
|
5702
6577
|
.redsift-detailed-card-collapsible-section-items {
|
|
@@ -5795,7 +6670,7 @@ const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5795
6670
|
marginLeft: "auto",
|
|
5796
6671
|
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
5797
6672
|
className: `${DetailedCardSection.className}-header__collapse-button`,
|
|
5798
|
-
color: "
|
|
6673
|
+
color: "grey",
|
|
5799
6674
|
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
5800
6675
|
onClick: () => {
|
|
5801
6676
|
setIsCollapsed(isCollapsed => !isCollapsed);
|
|
@@ -5812,19 +6687,36 @@ DetailedCardSection.displayName = COMPONENT_NAME$k;
|
|
|
5812
6687
|
const StyledDetailedCard = styled.div`
|
|
5813
6688
|
${baseStyling}
|
|
5814
6689
|
|
|
5815
|
-
|
|
6690
|
+
color: var(--redsift-color-neutral-${_ref => {
|
|
6691
|
+
let {
|
|
6692
|
+
$theme
|
|
6693
|
+
} = _ref;
|
|
6694
|
+
return $theme === Theme.light ? 'x-dark-grey' : 'white';
|
|
6695
|
+
}});
|
|
6696
|
+
background-color: var(--redsift-color-neutral-${_ref2 => {
|
|
6697
|
+
let {
|
|
6698
|
+
$theme
|
|
6699
|
+
} = _ref2;
|
|
6700
|
+
return $theme === Theme.light ? 'white' : 'x-dark-grey';
|
|
6701
|
+
}});
|
|
5816
6702
|
border-radius: 4px;
|
|
5817
|
-
box-shadow: 0px 1px 2px rgba(0, 0, 0,
|
|
6703
|
+
box-shadow: 0px 1px 2px rgba(0, 0, 0, ${_ref3 => {
|
|
6704
|
+
let {
|
|
6705
|
+
$theme
|
|
6706
|
+
} = _ref3;
|
|
6707
|
+
return $theme === Theme.light ? '0.5' : '1';
|
|
6708
|
+
}});
|
|
5818
6709
|
box-sizing: content-box;
|
|
5819
6710
|
padding: 16px;
|
|
5820
6711
|
|
|
5821
6712
|
.redsift-detailed-card__banner {
|
|
5822
|
-
background-color: ${
|
|
6713
|
+
background-color: ${_ref4 => {
|
|
5823
6714
|
let {
|
|
5824
6715
|
$color
|
|
5825
|
-
} =
|
|
6716
|
+
} = _ref4;
|
|
5826
6717
|
return css`var(--redsift-color-notifications-${$color}-primary)`;
|
|
5827
6718
|
}};
|
|
6719
|
+
color: var(--redsift-color-neutral-white);
|
|
5828
6720
|
}
|
|
5829
6721
|
|
|
5830
6722
|
.redsift-detailed-card__collapse-buttons {
|
|
@@ -5839,6 +6731,12 @@ const StyledDetailedCardHeader = styled.div`
|
|
|
5839
6731
|
margin: 8px 0;
|
|
5840
6732
|
|
|
5841
6733
|
.redsift-detailed-card-header__header {
|
|
6734
|
+
color: var(--redsift-color-neutral-${_ref => {
|
|
6735
|
+
let {
|
|
6736
|
+
$theme
|
|
6737
|
+
} = _ref;
|
|
6738
|
+
return $theme === Theme.light ? 'x-dark-grey' : 'white';
|
|
6739
|
+
}});
|
|
5842
6740
|
font-family: var(--redsift-typography-font-family-poppins);
|
|
5843
6741
|
font-size: 32px;
|
|
5844
6742
|
font-weight: 500;
|
|
@@ -5864,9 +6762,11 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5864
6762
|
isLoading
|
|
5865
6763
|
} = props,
|
|
5866
6764
|
forwardedProps = _objectWithoutProperties(props, _excluded$i);
|
|
6765
|
+
const theme = useTheme();
|
|
5867
6766
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardHeader, _extends$1({}, forwardedProps, {
|
|
5868
6767
|
className: classNames(DetailedCardHeader.className, className),
|
|
5869
|
-
ref: ref
|
|
6768
|
+
ref: ref,
|
|
6769
|
+
$theme: theme
|
|
5870
6770
|
}), header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
|
|
5871
6771
|
variant: "h2",
|
|
5872
6772
|
isLoaded: !isLoading,
|
|
@@ -5910,7 +6810,7 @@ const pickTextColorBasedOnBgColorAdvanced = (bgColor, lightColor, darkColor) =>
|
|
|
5910
6810
|
return L > 0.179 ? darkColor : lightColor;
|
|
5911
6811
|
};
|
|
5912
6812
|
const nameToHex = color => {
|
|
5913
|
-
return [...Object.keys(PresentationColorPalette),
|
|
6813
|
+
return [...Object.keys(PresentationColorPalette), ...Object.keys(NeutralColorPalette), 'error', 'warning', 'success', 'error-dark', 'warning-dark', 'success-dark'].includes(color) ? {
|
|
5914
6814
|
green: RedsiftColorPresentationGreenLight,
|
|
5915
6815
|
pink: RedsiftColorPresentationPinkLight,
|
|
5916
6816
|
aqua: RedsiftColorPresentationAquaLight,
|
|
@@ -5922,8 +6822,12 @@ const nameToHex = color => {
|
|
|
5922
6822
|
blue: RedsiftColorPresentationBlueLight,
|
|
5923
6823
|
grey: RedsiftColorPresentationGreyLight,
|
|
5924
6824
|
white: RedsiftColorNeutralWhite,
|
|
6825
|
+
'x-light-grey': RedsiftColorNeutralXLightGrey,
|
|
6826
|
+
'light-grey': RedsiftColorNeutralLightGrey,
|
|
6827
|
+
'mid-grey': RedsiftColorNeutralMidGrey,
|
|
6828
|
+
'dark-grey': RedsiftColorNeutralDarkGrey,
|
|
6829
|
+
'x-dark-grey': RedsiftColorNeutralXDarkGrey,
|
|
5925
6830
|
black: RedsiftColorNeutralBlack,
|
|
5926
|
-
'no-data': RedsiftColorNeutralMidgrey,
|
|
5927
6831
|
error: RedsiftColorPresentationRedLighter,
|
|
5928
6832
|
warning: RedsiftColorPresentationOrangeLighter,
|
|
5929
6833
|
success: RedsiftColorPresentationGreenLighter,
|
|
@@ -5969,13 +6873,14 @@ const StyledPill = styled.div`
|
|
|
5969
6873
|
let {
|
|
5970
6874
|
$color,
|
|
5971
6875
|
$hoverColor,
|
|
5972
|
-
$size
|
|
6876
|
+
$size,
|
|
6877
|
+
$theme
|
|
5973
6878
|
} = _ref2;
|
|
5974
6879
|
return css`
|
|
5975
6880
|
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-black);' : $color === 'white' ? css`
|
|
5976
6881
|
background-color: var(--redsift-color-neutral-white);
|
|
5977
6882
|
border: 1px solid #d6d6d6;
|
|
5978
|
-
` : $color === 'no-data' ? 'background-color: var(--redsift-color-neutral-
|
|
6883
|
+
` : $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
6884
|
|
|
5980
6885
|
&,
|
|
5981
6886
|
.redsift-icon {
|
|
@@ -5988,12 +6893,13 @@ const StyledPill = styled.div`
|
|
|
5988
6893
|
border: none;
|
|
5989
6894
|
border-radius: 0 2px 2px 0;
|
|
5990
6895
|
margin: -2px -8px -2px 2px;
|
|
5991
|
-
border-left: 1px solid
|
|
6896
|
+
border-left: 1px solid
|
|
6897
|
+
${$color === 'white' ? '#d6d6d6' : css`var(--redsift-color-neutral-${$theme === Theme.light ? 'white' : 'x-dark-grey'})`};
|
|
5992
6898
|
font-size: ${$size === PillSize.large ? css`15px` : css`14px`};
|
|
5993
6899
|
}
|
|
5994
6900
|
|
|
5995
6901
|
button:hover {
|
|
5996
|
-
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-
|
|
6902
|
+
${$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
6903
|
background-color: ${$hoverColor};
|
|
5998
6904
|
}
|
|
5999
6905
|
`;
|
|
@@ -6033,7 +6939,7 @@ const StyledPill = styled.div`
|
|
|
6033
6939
|
}
|
|
6034
6940
|
`;
|
|
6035
6941
|
|
|
6036
|
-
const _excluded$h = ["autoBreak", "children", "className", "color", "hoverColor", "rightButton", "size"];
|
|
6942
|
+
const _excluded$h = ["autoBreak", "children", "className", "color", "hoverColor", "rightButton", "size", "theme"];
|
|
6037
6943
|
const COMPONENT_NAME$i = 'Pill';
|
|
6038
6944
|
const CLASSNAME$i = 'redsift-pill';
|
|
6039
6945
|
const DEFAULT_PROPS$i = {
|
|
@@ -6053,21 +6959,24 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6053
6959
|
color,
|
|
6054
6960
|
hoverColor,
|
|
6055
6961
|
rightButton,
|
|
6056
|
-
size
|
|
6962
|
+
size,
|
|
6963
|
+
theme: propsTheme
|
|
6057
6964
|
} = props,
|
|
6058
6965
|
forwardedProps = _objectWithoutProperties(props, _excluded$h);
|
|
6966
|
+
const theme = useTheme(propsTheme);
|
|
6059
6967
|
return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
|
|
6060
6968
|
$autoBreak: autoBreak,
|
|
6061
6969
|
$color: color,
|
|
6062
6970
|
$hoverColor: hoverColor,
|
|
6063
6971
|
$size: size,
|
|
6972
|
+
$theme: theme,
|
|
6064
6973
|
className: classNames(Pill.className, className),
|
|
6065
6974
|
ref: ref
|
|
6066
6975
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
6067
6976
|
className: `${Pill.className}-content`
|
|
6068
6977
|
}, children), rightButton ? /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
6069
6978
|
"aria-label": "Clear",
|
|
6070
|
-
color: "
|
|
6979
|
+
color: "grey"
|
|
6071
6980
|
}, rightButton, {
|
|
6072
6981
|
className: "right clear"
|
|
6073
6982
|
}), /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -6108,7 +7017,7 @@ const StyledDetailedCardSectionItem = styled.div`
|
|
|
6108
7017
|
}
|
|
6109
7018
|
`;
|
|
6110
7019
|
|
|
6111
|
-
const _excluded$g = ["children", "className", "description", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
|
|
7020
|
+
const _excluded$g = ["children", "className", "description", "descriptionProps", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
|
|
6112
7021
|
const COMPONENT_NAME$h = 'DetailedCardSectionItem';
|
|
6113
7022
|
const CLASSNAME$h = 'redsift-detailed-card-section-item';
|
|
6114
7023
|
const DEFAULT_PROPS$h = {};
|
|
@@ -6121,6 +7030,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6121
7030
|
children,
|
|
6122
7031
|
className,
|
|
6123
7032
|
description,
|
|
7033
|
+
descriptionProps,
|
|
6124
7034
|
icon,
|
|
6125
7035
|
iconProps,
|
|
6126
7036
|
isLoading,
|
|
@@ -6154,7 +7064,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6154
7064
|
isLoaded: !isLoading
|
|
6155
7065
|
}, pill && /*#__PURE__*/React__default.createElement(Pill, _extends$1({
|
|
6156
7066
|
className: `${DetailedCardSectionItem.className}-header__pill`
|
|
6157
|
-
}, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text,
|
|
7067
|
+
}, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, descriptionProps, description) : description)) : null), children);
|
|
6158
7068
|
});
|
|
6159
7069
|
DetailedCardSectionItem.className = CLASSNAME$h;
|
|
6160
7070
|
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$h;
|
|
@@ -9761,12 +10671,19 @@ const TooltipPlacement = {
|
|
|
9761
10671
|
*/
|
|
9762
10672
|
const StyledTooltipContent = styled.div`
|
|
9763
10673
|
${baseContainer}
|
|
10674
|
+
${_ref => {
|
|
10675
|
+
let {
|
|
10676
|
+
$theme
|
|
10677
|
+
} = _ref;
|
|
10678
|
+
return css`
|
|
10679
|
+
color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});
|
|
10680
|
+
background-color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'black' : 'white'});
|
|
10681
|
+
`;
|
|
10682
|
+
}}
|
|
9764
10683
|
|
|
9765
10684
|
align-items: center;
|
|
9766
|
-
background-color: var(--redsift-color-neutral-white);
|
|
9767
10685
|
border-radius: 4px;
|
|
9768
10686
|
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
|
|
9769
|
-
color: var(--redsift-color-neutral-black);
|
|
9770
10687
|
display: flex;
|
|
9771
10688
|
filter: drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12));
|
|
9772
10689
|
font-family: var(--redsift-typography-tooltip-font-family);
|
|
@@ -9781,14 +10698,45 @@ const StyledTooltipContent = styled.div`
|
|
|
9781
10698
|
position: absolute;
|
|
9782
10699
|
width: 0;
|
|
9783
10700
|
height: 0;
|
|
9784
|
-
border-color:
|
|
10701
|
+
border-color: ${_ref2 => {
|
|
10702
|
+
let {
|
|
10703
|
+
$theme
|
|
10704
|
+
} = _ref2;
|
|
10705
|
+
return $theme === Theme.dark ? css`var(--redsift-color-neutral-black)` : css`var(--redsift-color-neutral-white)`;
|
|
10706
|
+
}};
|
|
9785
10707
|
border-style: solid;
|
|
9786
10708
|
}
|
|
9787
10709
|
|
|
9788
|
-
${
|
|
10710
|
+
${_ref3 => {
|
|
9789
10711
|
let {
|
|
9790
10712
|
$placement
|
|
9791
|
-
} =
|
|
10713
|
+
} = _ref3;
|
|
10714
|
+
switch ($placement) {
|
|
10715
|
+
case TooltipPlacement['right-start']:
|
|
10716
|
+
return css`
|
|
10717
|
+
border-bottom-left-radius: 0;
|
|
10718
|
+
`;
|
|
10719
|
+
case TooltipPlacement['right-end']:
|
|
10720
|
+
return css`
|
|
10721
|
+
border-top-left-radius: 0;
|
|
10722
|
+
`;
|
|
10723
|
+
case TooltipPlacement['left-start']:
|
|
10724
|
+
return css`
|
|
10725
|
+
border-bottom-right-radius: 0;
|
|
10726
|
+
`;
|
|
10727
|
+
case TooltipPlacement['left-end']:
|
|
10728
|
+
return css`
|
|
10729
|
+
border-top-right-radius: 0;
|
|
10730
|
+
`;
|
|
10731
|
+
default:
|
|
10732
|
+
return css``;
|
|
10733
|
+
}
|
|
10734
|
+
}}
|
|
10735
|
+
|
|
10736
|
+
${_ref4 => {
|
|
10737
|
+
let {
|
|
10738
|
+
$placement
|
|
10739
|
+
} = _ref4;
|
|
9792
10740
|
switch ($placement) {
|
|
9793
10741
|
case TooltipPlacement.left:
|
|
9794
10742
|
case TooltipPlacement['left-end']:
|
|
@@ -9850,7 +10798,8 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9850
10798
|
const {
|
|
9851
10799
|
children,
|
|
9852
10800
|
className,
|
|
9853
|
-
style
|
|
10801
|
+
style,
|
|
10802
|
+
theme: propsTheme
|
|
9854
10803
|
} = props;
|
|
9855
10804
|
const {
|
|
9856
10805
|
getFloatingProps,
|
|
@@ -9867,6 +10816,7 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9867
10816
|
} = {}
|
|
9868
10817
|
}
|
|
9869
10818
|
} = useTooltipContext();
|
|
10819
|
+
const theme = useTheme ? useTheme(propsTheme) : undefined;
|
|
9870
10820
|
const popoverRef = useMergeRefs([refs.setFloating, ref]);
|
|
9871
10821
|
const {
|
|
9872
10822
|
arrowRef
|
|
@@ -9882,6 +10832,7 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9882
10832
|
}, isOpen && /*#__PURE__*/React__default.createElement(StyledTooltipContent, _extends$1({
|
|
9883
10833
|
className: classNames(TooltipContent.className, className),
|
|
9884
10834
|
ref: popoverRef,
|
|
10835
|
+
$theme: theme,
|
|
9885
10836
|
style: _objectSpread2({
|
|
9886
10837
|
position: strategy,
|
|
9887
10838
|
top: y !== null && y !== void 0 ? y : 0,
|
|
@@ -10021,20 +10972,27 @@ const BaseTooltip = props => {
|
|
|
10021
10972
|
isOpen,
|
|
10022
10973
|
onOpen,
|
|
10023
10974
|
placement,
|
|
10024
|
-
tooltipId
|
|
10975
|
+
tooltipId,
|
|
10976
|
+
theme: propsTheme
|
|
10025
10977
|
} = props;
|
|
10978
|
+
const theme = useTheme ? useTheme(propsTheme) : undefined;
|
|
10026
10979
|
const tooltip = useTooltip({
|
|
10027
10980
|
defaultOpen,
|
|
10028
10981
|
delay,
|
|
10029
10982
|
placement,
|
|
10030
10983
|
isOpen,
|
|
10031
10984
|
onOpen,
|
|
10032
|
-
tooltipId
|
|
10985
|
+
tooltipId,
|
|
10986
|
+
theme
|
|
10033
10987
|
});
|
|
10034
10988
|
const [[trigger], [content]] = partitionComponents(React__default.Children.toArray(children), [isComponent('TooltipTrigger'), isComponent('TooltipContent')]);
|
|
10035
|
-
return /*#__PURE__*/React__default.createElement(
|
|
10989
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
10990
|
+
value: {
|
|
10991
|
+
theme
|
|
10992
|
+
}
|
|
10993
|
+
}, /*#__PURE__*/React__default.createElement(TooltipContext.Provider, {
|
|
10036
10994
|
value: tooltip
|
|
10037
|
-
}, trigger, content);
|
|
10995
|
+
}, trigger && isComponent('TooltipTrigger')(trigger) ? trigger : null, content && isComponent('TooltipContent')(content) ? content : null));
|
|
10038
10996
|
};
|
|
10039
10997
|
BaseTooltip.className = CLASSNAME$e;
|
|
10040
10998
|
BaseTooltip.defaultProps = DEFAULT_PROPS$e;
|
|
@@ -10052,7 +11010,7 @@ const useTooltipContext = () => {
|
|
|
10052
11010
|
return context;
|
|
10053
11011
|
};
|
|
10054
11012
|
|
|
10055
|
-
const _excluded$f = ["areAllCollapsed", "bannerVariant", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield"];
|
|
11013
|
+
const _excluded$f = ["areAllCollapsed", "bannerVariant", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield", "theme"];
|
|
10056
11014
|
const COMPONENT_NAME$d = 'DetailedCard';
|
|
10057
11015
|
const CLASSNAME$d = 'redsift-detailed-card';
|
|
10058
11016
|
const DEFAULT_PROPS$d = {
|
|
@@ -10093,9 +11051,11 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10093
11051
|
isCollapsible: propsIsCollapsible,
|
|
10094
11052
|
isLoading,
|
|
10095
11053
|
onCollapseAll,
|
|
10096
|
-
shield
|
|
11054
|
+
shield,
|
|
11055
|
+
theme: propsTheme
|
|
10097
11056
|
} = props,
|
|
10098
11057
|
forwardedProps = _objectWithoutProperties(props, _excluded$f);
|
|
11058
|
+
const theme = useTheme(propsTheme);
|
|
10099
11059
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
|
|
10100
11060
|
const isCollapsible = propsIsCollapsible && hasMultipleCollapsibleChildren(children);
|
|
10101
11061
|
const [allCollapsed, setAllCollapsed] = useState({
|
|
@@ -10117,11 +11077,17 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10117
11077
|
}
|
|
10118
11078
|
}, [onCollapseAll]);
|
|
10119
11079
|
const [[header], content] = partitionComponents(React__default.Children.toArray(children), [isComponent('DetailedCardHeader')]);
|
|
10120
|
-
return /*#__PURE__*/React__default.createElement(
|
|
11080
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
11081
|
+
value: {
|
|
11082
|
+
theme
|
|
11083
|
+
}
|
|
11084
|
+
}, /*#__PURE__*/React__default.createElement(StyledDetailedCard, _extends$1({}, forwardedProps, {
|
|
10121
11085
|
className: classNames(BaseDetailedCard.className, className),
|
|
10122
11086
|
ref: ref,
|
|
10123
|
-
$color: color
|
|
11087
|
+
$color: color,
|
|
11088
|
+
$theme: theme
|
|
10124
11089
|
}), color ? isLoading ? /*#__PURE__*/React__default.createElement(Skeleton, {
|
|
11090
|
+
theme: theme,
|
|
10125
11091
|
height: bannerVariant === 'condensed' ? '8px' : '80px',
|
|
10126
11092
|
width: "calc(100% + 32px)",
|
|
10127
11093
|
margin: "-16px -16px 16px -16px"
|
|
@@ -10148,7 +11114,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10148
11114
|
icon: icon,
|
|
10149
11115
|
color: "white",
|
|
10150
11116
|
size: "xlarge"
|
|
10151
|
-
}) : null) : null, header ? /*#__PURE__*/React__default.createElement("div", {
|
|
11117
|
+
}) : null) : null, header && isComponent('DetailedCardHeader')(header) ? /*#__PURE__*/React__default.createElement("div", {
|
|
10152
11118
|
className: `${BaseDetailedCard.className}__header`
|
|
10153
11119
|
}, header) : null, isCollapsible ? /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
10154
11120
|
justifyContent: "flex-end",
|
|
@@ -10161,7 +11127,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10161
11127
|
style: {
|
|
10162
11128
|
transform: 'rotate(-90deg)'
|
|
10163
11129
|
},
|
|
10164
|
-
color: "
|
|
11130
|
+
color: "grey"
|
|
10165
11131
|
})), /*#__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
11132
|
"aria-label": stringFormatter.format('expand-all'),
|
|
10167
11133
|
"aria-describedby": undefined,
|
|
@@ -10170,16 +11136,17 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10170
11136
|
style: {
|
|
10171
11137
|
transform: 'rotate(180deg)'
|
|
10172
11138
|
},
|
|
10173
|
-
color: "
|
|
11139
|
+
color: "grey"
|
|
10174
11140
|
})), /*#__PURE__*/React__default.createElement(Tooltip.Content, null, stringFormatter.format('expand-all')))) : null, React__default.Children.map(content, child => {
|
|
10175
11141
|
if (isComponent(DetailedCardSection)(child)) {
|
|
10176
11142
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
11143
|
+
theme,
|
|
10177
11144
|
isCollapsed: allCollapsed.state,
|
|
10178
11145
|
key: Math.random()
|
|
10179
11146
|
});
|
|
10180
11147
|
}
|
|
10181
11148
|
return child;
|
|
10182
|
-
}));
|
|
11149
|
+
})));
|
|
10183
11150
|
});
|
|
10184
11151
|
BaseDetailedCard.className = CLASSNAME$d;
|
|
10185
11152
|
BaseDetailedCard.defaultProps = DEFAULT_PROPS$d;
|
|
@@ -10950,7 +11917,7 @@ const StyledGrid = styled.div`
|
|
|
10950
11917
|
::before {
|
|
10951
11918
|
content: '';
|
|
10952
11919
|
position: absolute;
|
|
10953
|
-
background-color: var(--redsift-color-neutral-
|
|
11920
|
+
background-color: var(--redsift-color-neutral-light-grey);
|
|
10954
11921
|
inline-size: 1px;
|
|
10955
11922
|
block-size: 100%;
|
|
10956
11923
|
inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);
|
|
@@ -10959,7 +11926,7 @@ const StyledGrid = styled.div`
|
|
|
10959
11926
|
::after {
|
|
10960
11927
|
content: '';
|
|
10961
11928
|
position: absolute;
|
|
10962
|
-
background-color: var(--redsift-color-neutral-
|
|
11929
|
+
background-color: var(--redsift-color-neutral-light-grey);
|
|
10963
11930
|
inline-size: 200vw;
|
|
10964
11931
|
block-size: 1px;
|
|
10965
11932
|
inset-inline-start: -100vw;
|
|
@@ -11004,7 +11971,7 @@ GridItem.className = CLASSNAME$c;
|
|
|
11004
11971
|
GridItem.defaultProps = DEFAULT_PROPS$c;
|
|
11005
11972
|
GridItem.displayName = COMPONENT_NAME$c;
|
|
11006
11973
|
|
|
11007
|
-
const _excluded$d = ["children", "className", "divider", "gap"];
|
|
11974
|
+
const _excluded$d = ["children", "className", "divider", "gap", "theme"];
|
|
11008
11975
|
const COMPONENT_NAME$b = 'Grid';
|
|
11009
11976
|
const CLASSNAME$b = 'redsift-grid';
|
|
11010
11977
|
const DEFAULT_PROPS$b = {};
|
|
@@ -11017,15 +11984,22 @@ const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11017
11984
|
children,
|
|
11018
11985
|
className,
|
|
11019
11986
|
divider,
|
|
11020
|
-
gap
|
|
11987
|
+
gap,
|
|
11988
|
+
theme: propsTheme
|
|
11021
11989
|
} = props,
|
|
11022
11990
|
forwardedProps = _objectWithoutProperties(props, _excluded$d);
|
|
11023
|
-
|
|
11991
|
+
const theme = useTheme(propsTheme);
|
|
11992
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
11993
|
+
value: {
|
|
11994
|
+
theme
|
|
11995
|
+
}
|
|
11996
|
+
}, /*#__PURE__*/React__default.createElement(StyledGrid, _extends$1({}, forwardedProps, {
|
|
11024
11997
|
gap: divider ? `${divider.rowGap}px ${divider.colGap}px` : gap,
|
|
11025
11998
|
className: classNames(BaseGrid.className, className),
|
|
11026
11999
|
ref: ref,
|
|
11027
|
-
$divider: divider
|
|
11028
|
-
|
|
12000
|
+
$divider: divider,
|
|
12001
|
+
$theme: theme
|
|
12002
|
+
}), children));
|
|
11029
12003
|
});
|
|
11030
12004
|
BaseGrid.className = CLASSNAME$b;
|
|
11031
12005
|
BaseGrid.defaultProps = DEFAULT_PROPS$b;
|
|
@@ -11057,10 +12031,11 @@ const StyledItem = styled.div`
|
|
|
11057
12031
|
$isSelected,
|
|
11058
12032
|
$isDisabled,
|
|
11059
12033
|
$isHovered,
|
|
11060
|
-
$isFocused
|
|
12034
|
+
$isFocused,
|
|
12035
|
+
$theme
|
|
11061
12036
|
} = _ref;
|
|
11062
12037
|
return css`
|
|
11063
|
-
background-color: ${($isActive || $isSelected) && ($isHovered || $isFocused) ?
|
|
12038
|
+
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
12039
|
`;
|
|
11065
12040
|
}}
|
|
11066
12041
|
|
|
@@ -11072,11 +12047,12 @@ const StyledItem = styled.div`
|
|
|
11072
12047
|
let {
|
|
11073
12048
|
$isActive,
|
|
11074
12049
|
$isSelected,
|
|
11075
|
-
$isDisabled
|
|
12050
|
+
$isDisabled,
|
|
12051
|
+
$theme
|
|
11076
12052
|
} = _ref2;
|
|
11077
12053
|
return css`
|
|
11078
12054
|
cursor: ${$isDisabled ? 'default' : 'pointer'};
|
|
11079
|
-
background-color: ${$isActive ?
|
|
12055
|
+
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
12056
|
`;
|
|
11081
12057
|
}};
|
|
11082
12058
|
}
|
|
@@ -11087,10 +12063,11 @@ const StyledItem = styled.div`
|
|
|
11087
12063
|
${_ref3 => {
|
|
11088
12064
|
let {
|
|
11089
12065
|
$isHovered,
|
|
11090
|
-
$isDisabled
|
|
12066
|
+
$isDisabled,
|
|
12067
|
+
$theme
|
|
11091
12068
|
} = _ref3;
|
|
11092
12069
|
return css`
|
|
11093
|
-
background-color: ${$isHovered ?
|
|
12070
|
+
background-color: ${$isHovered ? `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})` : $isDisabled ? 'none' : `var(--redsift-color-primary-${$theme === Theme.light ? 'l1' : 'd2'})`};
|
|
11094
12071
|
`;
|
|
11095
12072
|
}};
|
|
11096
12073
|
}
|
|
@@ -11252,8 +12229,8 @@ function useMenuItem(props) {
|
|
|
11252
12229
|
};
|
|
11253
12230
|
}
|
|
11254
12231
|
|
|
11255
|
-
const _excluded$c = ["children", "className", "defaultSelected", "id", "isActive", "isDisabled", "isHovered", "isSelected", "value"],
|
|
11256
|
-
_excluded2 = ["children", "className", "id", "isActive", "isDisabled", "isHovered", "onClick"];
|
|
12232
|
+
const _excluded$c = ["children", "className", "defaultSelected", "id", "isActive", "isDisabled", "isHovered", "isSelected", "theme", "value"],
|
|
12233
|
+
_excluded2 = ["children", "className", "id", "isActive", "isDisabled", "isHovered", "theme", "onClick"];
|
|
11257
12234
|
const COMPONENT_NAME$a = 'Item';
|
|
11258
12235
|
const CLASSNAME$a = 'redsift-item';
|
|
11259
12236
|
const DEFAULT_PROPS$a = {};
|
|
@@ -11267,6 +12244,7 @@ const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11267
12244
|
isDisabled: propsIsDisabled,
|
|
11268
12245
|
isHovered,
|
|
11269
12246
|
isSelected: propsIsSelected,
|
|
12247
|
+
theme: propsTheme,
|
|
11270
12248
|
value
|
|
11271
12249
|
} = props,
|
|
11272
12250
|
forwardedProps = _objectWithoutProperties(props, _excluded$c);
|
|
@@ -11287,6 +12265,7 @@ const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11287
12265
|
isDisabled: propsIsDisabled,
|
|
11288
12266
|
propsIsSelected: propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected
|
|
11289
12267
|
});
|
|
12268
|
+
const theme = useTheme(propsTheme);
|
|
11290
12269
|
return /*#__PURE__*/React__default.createElement(StyledItem, _extends$1({
|
|
11291
12270
|
role: "option"
|
|
11292
12271
|
}, forwardedProps, {
|
|
@@ -11296,6 +12275,7 @@ const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11296
12275
|
$isFocused: isFocused,
|
|
11297
12276
|
$isHovered: isHovered,
|
|
11298
12277
|
$isSelected: isSelected,
|
|
12278
|
+
$theme: theme,
|
|
11299
12279
|
"aria-selected": isSelected,
|
|
11300
12280
|
className: classNames(Item.className, className),
|
|
11301
12281
|
onClick: handleClick,
|
|
@@ -11312,6 +12292,7 @@ const RenderedMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11312
12292
|
isActive,
|
|
11313
12293
|
isDisabled: propsIsDisabled,
|
|
11314
12294
|
isHovered,
|
|
12295
|
+
theme: propsTheme,
|
|
11315
12296
|
onClick
|
|
11316
12297
|
} = props,
|
|
11317
12298
|
forwardedProps = _objectWithoutProperties(props, _excluded2);
|
|
@@ -11331,6 +12312,7 @@ const RenderedMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11331
12312
|
isDisabled: propsIsDisabled,
|
|
11332
12313
|
onClick: onClick
|
|
11333
12314
|
});
|
|
12315
|
+
const theme = useTheme(propsTheme);
|
|
11334
12316
|
return /*#__PURE__*/React__default.createElement(StyledItem, _extends$1({
|
|
11335
12317
|
role: "option"
|
|
11336
12318
|
}, forwardedProps, {
|
|
@@ -11340,6 +12322,7 @@ const RenderedMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11340
12322
|
$isFocused: isFocused,
|
|
11341
12323
|
$isHovered: isHovered,
|
|
11342
12324
|
$isSelected: false,
|
|
12325
|
+
$theme: theme,
|
|
11343
12326
|
className: classNames(Item.className, className),
|
|
11344
12327
|
onClick: handleClick,
|
|
11345
12328
|
ref: divRef,
|
|
@@ -11420,25 +12403,25 @@ const StyledLink = styled.a`
|
|
|
11420
12403
|
$isDisabled
|
|
11421
12404
|
} = _ref;
|
|
11422
12405
|
return !$isDisabled ? css`
|
|
11423
|
-
color: var(--redsift-color-
|
|
12406
|
+
color: var(--redsift-color-primary-n);
|
|
11424
12407
|
text-decoration: underline;
|
|
11425
|
-
text-decoration-color:
|
|
12408
|
+
text-decoration-color: transparent;
|
|
11426
12409
|
text-underline-offset: 2px;
|
|
11427
12410
|
|
|
11428
12411
|
&:hover,
|
|
11429
12412
|
&:focus-visible {
|
|
11430
12413
|
cursor: pointer !important;
|
|
11431
|
-
text-decoration-color: var(--redsift-color-
|
|
12414
|
+
text-decoration-color: var(--redsift-color-primary-n);
|
|
11432
12415
|
}
|
|
11433
12416
|
` : '';
|
|
11434
12417
|
}}
|
|
11435
12418
|
|
|
11436
12419
|
&:focus-visible {
|
|
11437
|
-
outline: 2px solid var(--redsift-color-
|
|
12420
|
+
outline: 2px solid var(--redsift-color-primary-n);
|
|
11438
12421
|
}
|
|
11439
12422
|
`;
|
|
11440
12423
|
|
|
11441
|
-
const _excluded$b = ["as", "children", "className", "href", "isDisabled"];
|
|
12424
|
+
const _excluded$b = ["as", "children", "className", "href", "isDisabled", "theme"];
|
|
11442
12425
|
const COMPONENT_NAME$9 = 'Link';
|
|
11443
12426
|
const CLASSNAME$9 = 'redsift-link';
|
|
11444
12427
|
const DEFAULT_PROPS$9 = {};
|
|
@@ -11457,9 +12440,11 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11457
12440
|
children,
|
|
11458
12441
|
className,
|
|
11459
12442
|
href,
|
|
11460
|
-
isDisabled
|
|
12443
|
+
isDisabled,
|
|
12444
|
+
theme: propsTheme
|
|
11461
12445
|
} = props,
|
|
11462
12446
|
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
12447
|
+
const theme = useTheme(propsTheme);
|
|
11463
12448
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
11464
12449
|
as: as,
|
|
11465
12450
|
"aria-disabled": isDisabled,
|
|
@@ -11467,6 +12452,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11467
12452
|
tabIndex: !isDisabled ? 0 : undefined
|
|
11468
12453
|
}, forwardedProps, {
|
|
11469
12454
|
$isDisabled: isDisabled,
|
|
12455
|
+
$theme: theme,
|
|
11470
12456
|
className: classNames(Link.className, className),
|
|
11471
12457
|
href: !isDisabled ? href : undefined,
|
|
11472
12458
|
ref: ref
|
|
@@ -11476,7 +12462,7 @@ Link.className = CLASSNAME$9;
|
|
|
11476
12462
|
Link.defaultProps = DEFAULT_PROPS$9;
|
|
11477
12463
|
Link.displayName = COMPONENT_NAME$9;
|
|
11478
12464
|
|
|
11479
|
-
const _excluded$a = ["children", "className", "disabled", "isDisabled"];
|
|
12465
|
+
const _excluded$a = ["children", "className", "disabled", "isDisabled", "theme"];
|
|
11480
12466
|
const COMPONENT_NAME$8 = 'LinkButton';
|
|
11481
12467
|
const CLASSNAME$8 = 'redsift-link-button';
|
|
11482
12468
|
const DEFAULT_PROPS$8 = {};
|
|
@@ -11494,14 +12480,17 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11494
12480
|
children,
|
|
11495
12481
|
className,
|
|
11496
12482
|
disabled,
|
|
11497
|
-
isDisabled: propsIsDisabled
|
|
12483
|
+
isDisabled: propsIsDisabled,
|
|
12484
|
+
theme: propsTheme
|
|
11498
12485
|
} = props,
|
|
11499
12486
|
forwardedProps = _objectWithoutProperties(props, _excluded$a);
|
|
11500
12487
|
const isDisabled = propsIsDisabled || disabled;
|
|
12488
|
+
const theme = useTheme(propsTheme);
|
|
11501
12489
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
11502
12490
|
as: "button"
|
|
11503
12491
|
}, forwardedProps, {
|
|
11504
12492
|
$isDisabled: isDisabled || disabled,
|
|
12493
|
+
$theme: theme,
|
|
11505
12494
|
"aria-disabled": isDisabled || disabled,
|
|
11506
12495
|
className: classNames(LinkButton.className, className),
|
|
11507
12496
|
disabled: isDisabled || disabled
|
|
@@ -11605,7 +12594,8 @@ const RovingTabindexListbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11605
12594
|
/**
|
|
11606
12595
|
* Component style.
|
|
11607
12596
|
*/
|
|
11608
|
-
const StyledListbox = styled
|
|
12597
|
+
const StyledListbox = styled.div`
|
|
12598
|
+
${baseContainer}
|
|
11609
12599
|
outline: none;
|
|
11610
12600
|
|
|
11611
12601
|
${_ref => {
|
|
@@ -11623,15 +12613,15 @@ const StyledListbox = styled(Flexbox)`
|
|
|
11623
12613
|
|
|
11624
12614
|
color: var(--redsift-color-neutral-black);
|
|
11625
12615
|
${$isDisabled ? `
|
|
11626
|
-
color: var(--redsift-color-neutral-
|
|
12616
|
+
color: var(--redsift-color-neutral-mid-grey);
|
|
11627
12617
|
` : ''}
|
|
11628
12618
|
${$isInvalid ? `
|
|
11629
|
-
color: var(--redsift-color-
|
|
12619
|
+
color: var(--redsift-color-red-n);
|
|
11630
12620
|
` : ''}
|
|
11631
12621
|
}
|
|
11632
12622
|
|
|
11633
12623
|
.redsift-listbox-list {
|
|
11634
|
-
border: 1px solid var(--redsift-color-neutral-
|
|
12624
|
+
border: 1px solid var(--redsift-color-neutral-mid-grey);
|
|
11635
12625
|
padding: 4px;
|
|
11636
12626
|
min-width: 200px;
|
|
11637
12627
|
}
|
|
@@ -11786,7 +12776,7 @@ const StyledNumber = styled(StyledText)`
|
|
|
11786
12776
|
font-family: var(--redsift-typography-font-family-poppins);
|
|
11787
12777
|
`;
|
|
11788
12778
|
|
|
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"];
|
|
12779
|
+
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
12780
|
const COMPONENT_NAME$6 = 'Number';
|
|
11791
12781
|
const CLASSNAME$6 = 'redsift-number';
|
|
11792
12782
|
const DEFAULT_PROPS$6 = {
|
|
@@ -11836,6 +12826,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11836
12826
|
unit,
|
|
11837
12827
|
unitDisplay,
|
|
11838
12828
|
useGrouping,
|
|
12829
|
+
theme: propsTheme,
|
|
11839
12830
|
value,
|
|
11840
12831
|
variant
|
|
11841
12832
|
} = props,
|
|
@@ -11873,6 +12864,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11873
12864
|
unitDisplay,
|
|
11874
12865
|
useGrouping
|
|
11875
12866
|
}));
|
|
12867
|
+
const theme = useTheme(propsTheme);
|
|
11876
12868
|
return /*#__PURE__*/React__default.createElement(StyledNumber, _extends$1({
|
|
11877
12869
|
as: as
|
|
11878
12870
|
}, forwardedProps, {
|
|
@@ -11884,6 +12876,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11884
12876
|
$fontSize: fontSize,
|
|
11885
12877
|
$fontWeight: fontWeight,
|
|
11886
12878
|
$noWrap: noWrap,
|
|
12879
|
+
$theme: theme,
|
|
11887
12880
|
$variant: variant
|
|
11888
12881
|
}), formatter.format(value));
|
|
11889
12882
|
});
|
|
@@ -11895,7 +12888,7 @@ Number$1.displayName = COMPONENT_NAME$6;
|
|
|
11895
12888
|
* Component style.
|
|
11896
12889
|
*/
|
|
11897
12890
|
const StyledProgressBar = styled.progress`
|
|
11898
|
-
|
|
12891
|
+
${_ref => {
|
|
11899
12892
|
let {
|
|
11900
12893
|
backgroundColor,
|
|
11901
12894
|
height,
|
|
@@ -11903,29 +12896,29 @@ const StyledProgressBar = styled.progress`
|
|
|
11903
12896
|
width
|
|
11904
12897
|
} = _ref;
|
|
11905
12898
|
return css`
|
|
12899
|
+
&[value] {
|
|
12900
|
+
// Target only state with a value
|
|
12901
|
+
-webkit-appearance: none;
|
|
12902
|
+
appearance: none;
|
|
12903
|
+
height: ${height || '8px'};
|
|
12904
|
+
width: ${width || '100%'};
|
|
12905
|
+
color: var(--redsift-color-presentation-red-default);
|
|
11906
12906
|
|
|
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
|
-
}
|
|
12907
|
+
&::-webkit-progress-bar {
|
|
12908
|
+
background-color: ${backgroundColor || 'var(--redsift-color-neutral-x-light-grey)'};
|
|
12909
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) inset;
|
|
12910
|
+
}
|
|
11918
12911
|
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
12912
|
+
&::-webkit-progress-value {
|
|
12913
|
+
background-color: ${progressColor || 'var(--redsift-color-primary-n)'};
|
|
12914
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) inset;
|
|
12915
|
+
}
|
|
12916
|
+
}
|
|
12917
|
+
`;
|
|
11925
12918
|
}}
|
|
11926
12919
|
`;
|
|
11927
12920
|
|
|
11928
|
-
const _excluded$5 = ["className", "value"];
|
|
12921
|
+
const _excluded$5 = ["className", "theme", "value"];
|
|
11929
12922
|
const COMPONENT_NAME$5 = 'ProgressBar';
|
|
11930
12923
|
const CLASSNAME$5 = 'redsift-progress-bar';
|
|
11931
12924
|
const DEFAULT_PROPS$5 = {};
|
|
@@ -11936,15 +12929,18 @@ const DEFAULT_PROPS$5 = {};
|
|
|
11936
12929
|
const ProgressBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11937
12930
|
const {
|
|
11938
12931
|
className,
|
|
12932
|
+
theme: propsTheme,
|
|
11939
12933
|
value
|
|
11940
12934
|
} = props,
|
|
11941
12935
|
forwardedProps = _objectWithoutProperties(props, _excluded$5);
|
|
12936
|
+
const theme = useTheme(propsTheme);
|
|
11942
12937
|
return /*#__PURE__*/React__default.createElement(StyledProgressBar, _extends$1({}, forwardedProps, {
|
|
11943
12938
|
className: classNames(ProgressBar.className, className),
|
|
11944
12939
|
ref: ref,
|
|
11945
12940
|
variant: "determinate",
|
|
11946
12941
|
max: "100",
|
|
11947
|
-
value: value || 0
|
|
12942
|
+
value: value || 0,
|
|
12943
|
+
theme: theme
|
|
11948
12944
|
}));
|
|
11949
12945
|
});
|
|
11950
12946
|
ProgressBar.className = CLASSNAME$5;
|
|
@@ -12002,22 +12998,19 @@ const StyledRadioGroup = styled.div`
|
|
|
12002
12998
|
font-size: var(--redsift-typography-body-font-size);
|
|
12003
12999
|
line-height: var(--redsift-typography-body-line-height);
|
|
12004
13000
|
|
|
12005
|
-
color: var(--redsift-color-neutral-black);
|
|
12006
13001
|
${_ref2 => {
|
|
12007
13002
|
let {
|
|
12008
|
-
$isDisabled
|
|
13003
|
+
$isDisabled,
|
|
13004
|
+
$isInvalid,
|
|
13005
|
+
$theme
|
|
12009
13006
|
} = _ref2;
|
|
12010
|
-
return $isDisabled ? `
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
}
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
} = _ref3;
|
|
12018
|
-
return $isInvalid ? `
|
|
12019
|
-
color: var(--redsift-color-notifications-error-primary);
|
|
12020
|
-
` : '';
|
|
13007
|
+
return $isDisabled ? css`
|
|
13008
|
+
color: var(--redsift-color-${$theme}-components-radio-text-disabled);
|
|
13009
|
+
` : $isInvalid ? css`
|
|
13010
|
+
color: var(--redsift-color-${$theme}-components-radio-text-invalid);
|
|
13011
|
+
` : css`
|
|
13012
|
+
color: var(--redsift-color-${$theme}-components-radio-text-default);
|
|
13013
|
+
`;
|
|
12021
13014
|
}}
|
|
12022
13015
|
}
|
|
12023
13016
|
|
|
@@ -12027,31 +13020,28 @@ const StyledRadioGroup = styled.div`
|
|
|
12027
13020
|
font-size: var(--redsift-typography-helper-font-size);
|
|
12028
13021
|
line-height: var(--redsift-typography-helper-line-height);
|
|
12029
13022
|
|
|
12030
|
-
|
|
12031
|
-
${_ref4 => {
|
|
12032
|
-
let {
|
|
12033
|
-
$isDisabled
|
|
12034
|
-
} = _ref4;
|
|
12035
|
-
return $isDisabled ? `
|
|
12036
|
-
color: var(--redsift-color-neutral-midgrey);
|
|
12037
|
-
` : '';
|
|
12038
|
-
}}
|
|
12039
|
-
${_ref5 => {
|
|
13023
|
+
${_ref3 => {
|
|
12040
13024
|
let {
|
|
12041
|
-
$
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
13025
|
+
$isDisabled,
|
|
13026
|
+
$isInvalid,
|
|
13027
|
+
$theme
|
|
13028
|
+
} = _ref3;
|
|
13029
|
+
return $isDisabled ? css`
|
|
13030
|
+
color: var(--redsift-color-${$theme}-components-radio-text-disabled);
|
|
13031
|
+
` : $isInvalid ? css`
|
|
13032
|
+
color: var(--redsift-color-${$theme}-components-radio-text-invalid);
|
|
13033
|
+
` : css`
|
|
13034
|
+
color: var(--redsift-color-${$theme}-components-radio-text-default);
|
|
13035
|
+
`;
|
|
12046
13036
|
}}
|
|
12047
13037
|
}
|
|
12048
13038
|
`;
|
|
12049
13039
|
|
|
12050
|
-
const _excluded$4 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "value"];
|
|
13040
|
+
const _excluded$4 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "theme", "value"];
|
|
12051
13041
|
const COMPONENT_NAME$4 = 'RadioGroup';
|
|
12052
13042
|
const CLASSNAME$4 = 'redsift-radio-group';
|
|
12053
13043
|
const DEFAULT_PROPS$4 = {
|
|
12054
|
-
color:
|
|
13044
|
+
color: ColorPalette.primary,
|
|
12055
13045
|
orientation: RadioGroupOrientation.vertical
|
|
12056
13046
|
};
|
|
12057
13047
|
|
|
@@ -12072,9 +13062,11 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12072
13062
|
label,
|
|
12073
13063
|
onChange,
|
|
12074
13064
|
orientation,
|
|
13065
|
+
theme: propsTheme,
|
|
12075
13066
|
value
|
|
12076
13067
|
} = props,
|
|
12077
13068
|
forwardedProps = _objectWithoutProperties(props, _excluded$4);
|
|
13069
|
+
const theme = useTheme(propsTheme);
|
|
12078
13070
|
const [selectedValue, setValue] = useState(value || defaultValue || '');
|
|
12079
13071
|
useEffect(() => {
|
|
12080
13072
|
if (value) {
|
|
@@ -12096,11 +13088,16 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12096
13088
|
}
|
|
12097
13089
|
}
|
|
12098
13090
|
};
|
|
12099
|
-
return /*#__PURE__*/React__default.createElement(
|
|
13091
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
13092
|
+
value: {
|
|
13093
|
+
theme
|
|
13094
|
+
}
|
|
13095
|
+
}, /*#__PURE__*/React__default.createElement(StyledRadioGroup, _extends$1({}, forwardedProps, {
|
|
12100
13096
|
$isDisabled: isDisabled,
|
|
12101
13097
|
$isInvalid: isInvalid || isRequired && selectedValue.length === 0,
|
|
12102
13098
|
$isReadOnly: isReadOnly,
|
|
12103
13099
|
$orientation: orientation,
|
|
13100
|
+
$theme: theme,
|
|
12104
13101
|
"aria-disabled": isDisabled,
|
|
12105
13102
|
className: classNames(RadioGroup.className, className),
|
|
12106
13103
|
ref: ref,
|
|
@@ -12113,7 +13110,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12113
13110
|
value: state
|
|
12114
13111
|
}, children)), /*#__PURE__*/React__default.createElement("span", {
|
|
12115
13112
|
className: `${RadioGroup.className}-description`
|
|
12116
|
-
}, description));
|
|
13113
|
+
}, description)));
|
|
12117
13114
|
});
|
|
12118
13115
|
RadioGroup.className = CLASSNAME$4;
|
|
12119
13116
|
RadioGroup.defaultProps = DEFAULT_PROPS$4;
|
|
@@ -12147,14 +13144,15 @@ const StyledRadio = styled.label`
|
|
|
12147
13144
|
${_ref => {
|
|
12148
13145
|
let {
|
|
12149
13146
|
$isDisabled,
|
|
12150
|
-
$isInvalid
|
|
13147
|
+
$isInvalid,
|
|
13148
|
+
$theme
|
|
12151
13149
|
} = _ref;
|
|
12152
13150
|
return $isDisabled ? css`
|
|
12153
|
-
color: var(--redsift-color-
|
|
13151
|
+
color: var(--redsift-color-${$theme}-components-radio-text-disabled);
|
|
12154
13152
|
` : $isInvalid ? css`
|
|
12155
|
-
color: var(--redsift-color-
|
|
13153
|
+
color: var(--redsift-color-${$theme}-components-radio-text-invalid);
|
|
12156
13154
|
` : css`
|
|
12157
|
-
color: var(--redsift-color-
|
|
13155
|
+
color: var(--redsift-color-${$theme}-components-radio-text-default);
|
|
12158
13156
|
`;
|
|
12159
13157
|
}}
|
|
12160
13158
|
|
|
@@ -12181,19 +13179,20 @@ const StyledRadio = styled.label`
|
|
|
12181
13179
|
$isColored,
|
|
12182
13180
|
$isDisabled,
|
|
12183
13181
|
$isInvalid,
|
|
12184
|
-
$isFocusVisible
|
|
13182
|
+
$isFocusVisible,
|
|
13183
|
+
$theme
|
|
12185
13184
|
} = _ref2;
|
|
12186
13185
|
return css`
|
|
12187
13186
|
${$isDisabled ? css`
|
|
12188
|
-
color: var(--redsift-color-
|
|
13187
|
+
color: var(--redsift-color-${$theme}-components-radio-fill-disabled);
|
|
12189
13188
|
` : $isInvalid ? css`
|
|
12190
|
-
color: var(--redsift-color-
|
|
13189
|
+
color: var(--redsift-color-${$theme}-components-radio-fill-invalid);
|
|
12191
13190
|
` : css`
|
|
12192
|
-
color: ${$isColored ?
|
|
13191
|
+
color: ${$isColored ? `var(--redsift-color-${$theme}-components-radio-fill-default)` : `var(--redsift-color-${$theme}-components-radio-fill-uncolored)`};
|
|
12193
13192
|
`}
|
|
12194
13193
|
|
|
12195
13194
|
${$isFocusVisible && !$isDisabled ? css`
|
|
12196
|
-
background-color: ${$isColored ?
|
|
13195
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-radio-fill-default-hover)` : `var(--redsift-color-${$theme}-components-radio-fill-uncolored-hover)`};
|
|
12197
13196
|
border-radius: 16px;
|
|
12198
13197
|
` : ''}
|
|
12199
13198
|
`;
|
|
@@ -12207,11 +13206,17 @@ const StyledRadio = styled.label`
|
|
|
12207
13206
|
${_ref3 => {
|
|
12208
13207
|
let {
|
|
12209
13208
|
$isColored,
|
|
12210
|
-
$isDisabled
|
|
13209
|
+
$isDisabled,
|
|
13210
|
+
$isInvalid,
|
|
13211
|
+
$theme
|
|
12211
13212
|
} = _ref3;
|
|
12212
13213
|
return !$isDisabled ? css`
|
|
12213
13214
|
.redsift-icon {
|
|
12214
|
-
|
|
13215
|
+
${$isInvalid ? css`
|
|
13216
|
+
background-color: var(--redsift-color-${$theme}-components-radio-fill-invalid-hover);
|
|
13217
|
+
` : css`
|
|
13218
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-radio-fill-default-hover)` : `var(--redsift-color-${$theme}-components-radio-fill-uncolored-hover)`};
|
|
13219
|
+
`}
|
|
12215
13220
|
border-radius: 16px;
|
|
12216
13221
|
}
|
|
12217
13222
|
` : '';
|
|
@@ -12219,7 +13224,7 @@ const StyledRadio = styled.label`
|
|
|
12219
13224
|
}
|
|
12220
13225
|
`;
|
|
12221
13226
|
|
|
12222
|
-
const _excluded$3 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
13227
|
+
const _excluded$3 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "theme", "value"];
|
|
12223
13228
|
const COMPONENT_NAME$3 = 'Radio';
|
|
12224
13229
|
const CLASSNAME$3 = 'redsift-radio';
|
|
12225
13230
|
const DEFAULT_PROPS$3 = {
|
|
@@ -12251,9 +13256,11 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12251
13256
|
isSelected: propsIsSelected,
|
|
12252
13257
|
name,
|
|
12253
13258
|
onChange,
|
|
13259
|
+
theme: propsTheme,
|
|
12254
13260
|
value
|
|
12255
13261
|
} = props,
|
|
12256
13262
|
forwardedProps = _objectWithoutProperties(props, _excluded$3);
|
|
13263
|
+
const theme = useTheme(propsTheme);
|
|
12257
13264
|
const {
|
|
12258
13265
|
isFocusVisible,
|
|
12259
13266
|
focusProps
|
|
@@ -12272,7 +13279,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12272
13279
|
setSelected(groupState.value === value);
|
|
12273
13280
|
}
|
|
12274
13281
|
}, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
|
|
12275
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
13282
|
+
warnIfNoAccessibleLabelFound(props, [children], 'Radio');
|
|
12276
13283
|
if (groupState) {
|
|
12277
13284
|
if (propsIsSelected != null) {
|
|
12278
13285
|
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 +13312,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12305
13312
|
$isInvalid: isInvalid || isRequired && !(isSelected || isControlled && propsIsSelected),
|
|
12306
13313
|
$isRequired: isRequired,
|
|
12307
13314
|
$isSelected: isSelected || isControlled && propsIsSelected,
|
|
13315
|
+
$theme: theme,
|
|
12308
13316
|
className: classNames(Radio.className, className),
|
|
12309
13317
|
ref: ref
|
|
12310
13318
|
}), isSelected || isControlled && propsIsSelected ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -12366,14 +13374,15 @@ const StyledSwitch = styled.label`
|
|
|
12366
13374
|
${_ref => {
|
|
12367
13375
|
let {
|
|
12368
13376
|
$isDisabled,
|
|
12369
|
-
$isInvalid
|
|
13377
|
+
$isInvalid,
|
|
13378
|
+
$theme
|
|
12370
13379
|
} = _ref;
|
|
12371
13380
|
return $isDisabled ? css`
|
|
12372
|
-
color: var(--redsift-color-
|
|
13381
|
+
color: var(--redsift-color-${$theme}-components-switch-text-disabled);
|
|
12373
13382
|
` : $isInvalid ? css`
|
|
12374
|
-
color: var(--redsift-color-
|
|
13383
|
+
color: var(--redsift-color-${$theme}-components-switch-text-invalid);
|
|
12375
13384
|
` : css`
|
|
12376
|
-
color: var(--redsift-color-
|
|
13385
|
+
color: var(--redsift-color-${$theme}-components-switch-text-default);
|
|
12377
13386
|
`;
|
|
12378
13387
|
}}
|
|
12379
13388
|
|
|
@@ -12392,7 +13401,26 @@ const StyledSwitch = styled.label`
|
|
|
12392
13401
|
}
|
|
12393
13402
|
|
|
12394
13403
|
.redsift-switch-slide__inner {
|
|
12395
|
-
|
|
13404
|
+
${_ref2 => {
|
|
13405
|
+
let {
|
|
13406
|
+
$isColored,
|
|
13407
|
+
$isDisabled,
|
|
13408
|
+
$isInvalid,
|
|
13409
|
+
$isSelected,
|
|
13410
|
+
$theme
|
|
13411
|
+
} = _ref2;
|
|
13412
|
+
return $isDisabled ? css`
|
|
13413
|
+
background-color: var(
|
|
13414
|
+
--redsift-color-${$theme}-components-switch-background-disabled${$isSelected ? '-active' : ''}
|
|
13415
|
+
);
|
|
13416
|
+
` : $isInvalid ? css`
|
|
13417
|
+
background-color: var(
|
|
13418
|
+
--redsift-color-${$theme}-components-switch-background-invalid${$isSelected ? '-active' : ''}
|
|
13419
|
+
);
|
|
13420
|
+
` : css`
|
|
13421
|
+
background-color: ${$isColored ? `var(--redsift-color-${$theme}-components-switch-background-default${$isSelected ? '-active' : ''})` : `var(--redsift-color-${$theme}-components-switch-background-uncolored${$isSelected ? '-active' : ''})`};
|
|
13422
|
+
`;
|
|
13423
|
+
}}
|
|
12396
13424
|
border-radius: 20px;
|
|
12397
13425
|
height: 24px;
|
|
12398
13426
|
position: absolute;
|
|
@@ -12404,10 +13432,10 @@ const StyledSwitch = styled.label`
|
|
|
12404
13432
|
.redsift-switch-slide__knob-wrapper {
|
|
12405
13433
|
border-radius: 50%;
|
|
12406
13434
|
height: 20px;
|
|
12407
|
-
margin-inline-start: ${
|
|
13435
|
+
margin-inline-start: ${_ref3 => {
|
|
12408
13436
|
let {
|
|
12409
13437
|
$isSelected
|
|
12410
|
-
} =
|
|
13438
|
+
} = _ref3;
|
|
12411
13439
|
return !$isSelected ? '2px' : '24px';
|
|
12412
13440
|
}};
|
|
12413
13441
|
position: absolute;
|
|
@@ -12416,23 +13444,27 @@ const StyledSwitch = styled.label`
|
|
|
12416
13444
|
}
|
|
12417
13445
|
|
|
12418
13446
|
.redsift-switch-slide-knob-wrapper__elevation {
|
|
12419
|
-
${
|
|
13447
|
+
${_ref4 => {
|
|
12420
13448
|
let {
|
|
12421
|
-
$
|
|
12422
|
-
$isInvalid
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
12428
|
-
|
|
13449
|
+
$isDisabled,
|
|
13450
|
+
$isInvalid,
|
|
13451
|
+
$theme
|
|
13452
|
+
} = _ref4;
|
|
13453
|
+
return $isDisabled ? css`
|
|
13454
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-disabled-hover);
|
|
13455
|
+
` : $isInvalid ? css`
|
|
13456
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-invalid-hover);
|
|
13457
|
+
` : css`
|
|
13458
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-default-hover);
|
|
13459
|
+
`;
|
|
12429
13460
|
}}
|
|
13461
|
+
|
|
12430
13462
|
border-radius: 50%;
|
|
12431
13463
|
height: 32px;
|
|
12432
|
-
margin-inline-start: ${
|
|
13464
|
+
margin-inline-start: ${_ref5 => {
|
|
12433
13465
|
let {
|
|
12434
13466
|
$isSelected
|
|
12435
|
-
} =
|
|
13467
|
+
} = _ref5;
|
|
12436
13468
|
return !$isSelected ? '-6px' : '-6px';
|
|
12437
13469
|
}};
|
|
12438
13470
|
opacity: 0;
|
|
@@ -12442,7 +13474,20 @@ const StyledSwitch = styled.label`
|
|
|
12442
13474
|
}
|
|
12443
13475
|
|
|
12444
13476
|
.redsift-switch-slide-knob-wrapper__knob {
|
|
12445
|
-
|
|
13477
|
+
${_ref6 => {
|
|
13478
|
+
let {
|
|
13479
|
+
$isDisabled,
|
|
13480
|
+
$isInvalid,
|
|
13481
|
+
$theme
|
|
13482
|
+
} = _ref6;
|
|
13483
|
+
return $isDisabled ? css`
|
|
13484
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-disabled);
|
|
13485
|
+
` : $isInvalid ? css`
|
|
13486
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-invalid);
|
|
13487
|
+
` : css`
|
|
13488
|
+
background-color: var(--redsift-color-${$theme}-components-switch-dot-default);
|
|
13489
|
+
`;
|
|
13490
|
+
}}
|
|
12446
13491
|
border-radius: 50%;
|
|
12447
13492
|
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
13493
|
height: 20px;
|
|
@@ -12452,39 +13497,15 @@ const StyledSwitch = styled.label`
|
|
|
12452
13497
|
z-index: 4;
|
|
12453
13498
|
}
|
|
12454
13499
|
|
|
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
13500
|
&:hover,
|
|
12480
13501
|
&:focus-visible {
|
|
12481
13502
|
outline: none;
|
|
12482
13503
|
cursor: pointer;
|
|
12483
13504
|
|
|
12484
|
-
${
|
|
13505
|
+
${_ref7 => {
|
|
12485
13506
|
let {
|
|
12486
13507
|
$isDisabled
|
|
12487
|
-
} =
|
|
13508
|
+
} = _ref7;
|
|
12488
13509
|
return !$isDisabled ? css`
|
|
12489
13510
|
.redsift-switch-slide-knob-wrapper__elevation {
|
|
12490
13511
|
opacity: 0.5;
|
|
@@ -12493,11 +13514,11 @@ const StyledSwitch = styled.label`
|
|
|
12493
13514
|
}}
|
|
12494
13515
|
}
|
|
12495
13516
|
|
|
12496
|
-
${
|
|
13517
|
+
${_ref8 => {
|
|
12497
13518
|
let {
|
|
12498
13519
|
$isDisabled,
|
|
12499
13520
|
$isFocusVisible
|
|
12500
|
-
} =
|
|
13521
|
+
} = _ref8;
|
|
12501
13522
|
return $isFocusVisible && !$isDisabled ? css`
|
|
12502
13523
|
.redsift-switch-slide-knob-wrapper__elevation {
|
|
12503
13524
|
opacity: 0.5;
|
|
@@ -12506,7 +13527,7 @@ const StyledSwitch = styled.label`
|
|
|
12506
13527
|
}}
|
|
12507
13528
|
`;
|
|
12508
13529
|
|
|
12509
|
-
const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
13530
|
+
const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "theme", "value"];
|
|
12510
13531
|
const COMPONENT_NAME$2 = 'Switch';
|
|
12511
13532
|
const CLASSNAME$2 = 'redsift-switch';
|
|
12512
13533
|
const DEFAULT_PROPS$2 = {
|
|
@@ -12538,9 +13559,11 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12538
13559
|
isSelected: propsIsSelected,
|
|
12539
13560
|
name,
|
|
12540
13561
|
onChange,
|
|
13562
|
+
theme: propsTheme,
|
|
12541
13563
|
value
|
|
12542
13564
|
} = props,
|
|
12543
13565
|
forwardedProps = _objectWithoutProperties(props, _excluded$2);
|
|
13566
|
+
const theme = useTheme(propsTheme);
|
|
12544
13567
|
const {
|
|
12545
13568
|
isFocusVisible,
|
|
12546
13569
|
focusProps
|
|
@@ -12559,7 +13582,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12559
13582
|
setSelected(groupState.value.includes(value));
|
|
12560
13583
|
}
|
|
12561
13584
|
}, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
|
|
12562
|
-
warnIfNoAccessibleLabelFound(props, [children]);
|
|
13585
|
+
warnIfNoAccessibleLabelFound(props, [children], 'Switch');
|
|
12563
13586
|
if (groupState) {
|
|
12564
13587
|
if (propsIsSelected != null) {
|
|
12565
13588
|
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 +13619,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12596
13619
|
$isInvalid: isInvalid || isRequired && !(isSelected || isControlled && propsIsSelected),
|
|
12597
13620
|
$isRequired: isRequired,
|
|
12598
13621
|
$isSelected: isSelected || isControlled && propsIsSelected,
|
|
13622
|
+
$theme: theme,
|
|
12599
13623
|
className: classNames(Switch.className, className),
|
|
12600
13624
|
ref: ref
|
|
12601
13625
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -12682,22 +13706,19 @@ const StyledSwitchGroup = styled.div`
|
|
|
12682
13706
|
font-size: var(--redsift-typography-body-font-size);
|
|
12683
13707
|
line-height: var(--redsift-typography-body-line-height);
|
|
12684
13708
|
|
|
12685
|
-
color: var(--redsift-color-neutral-black);
|
|
12686
13709
|
${_ref2 => {
|
|
12687
13710
|
let {
|
|
12688
|
-
$isDisabled
|
|
13711
|
+
$isDisabled,
|
|
13712
|
+
$isInvalid,
|
|
13713
|
+
$theme
|
|
12689
13714
|
} = _ref2;
|
|
12690
|
-
return $isDisabled ? `
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
}
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
} = _ref3;
|
|
12698
|
-
return $isInvalid ? `
|
|
12699
|
-
color: var(--redsift-color-notifications-error-primary);
|
|
12700
|
-
` : '';
|
|
13715
|
+
return $isDisabled ? css`
|
|
13716
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
13717
|
+
` : $isInvalid ? css`
|
|
13718
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
13719
|
+
` : css`
|
|
13720
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
13721
|
+
`;
|
|
12701
13722
|
}}
|
|
12702
13723
|
}
|
|
12703
13724
|
|
|
@@ -12707,31 +13728,28 @@ const StyledSwitchGroup = styled.div`
|
|
|
12707
13728
|
font-size: var(--redsift-typography-helper-font-size);
|
|
12708
13729
|
line-height: var(--redsift-typography-helper-line-height);
|
|
12709
13730
|
|
|
12710
|
-
|
|
12711
|
-
${_ref4 => {
|
|
12712
|
-
let {
|
|
12713
|
-
$isDisabled
|
|
12714
|
-
} = _ref4;
|
|
12715
|
-
return $isDisabled ? `
|
|
12716
|
-
color: var(--redsift-color-neutral-midgrey);
|
|
12717
|
-
` : '';
|
|
12718
|
-
}}
|
|
12719
|
-
${_ref5 => {
|
|
13731
|
+
${_ref3 => {
|
|
12720
13732
|
let {
|
|
12721
|
-
$
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
13733
|
+
$isDisabled,
|
|
13734
|
+
$isInvalid,
|
|
13735
|
+
$theme
|
|
13736
|
+
} = _ref3;
|
|
13737
|
+
return $isDisabled ? css`
|
|
13738
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-disabled);
|
|
13739
|
+
` : $isInvalid ? css`
|
|
13740
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-invalid);
|
|
13741
|
+
` : css`
|
|
13742
|
+
color: var(--redsift-color-${$theme}-components-checkbox-text-default);
|
|
13743
|
+
`;
|
|
12726
13744
|
}}
|
|
12727
13745
|
}
|
|
12728
13746
|
`;
|
|
12729
13747
|
|
|
12730
|
-
const _excluded$1 = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "value"];
|
|
13748
|
+
const _excluded$1 = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "theme", "value"];
|
|
12731
13749
|
const COMPONENT_NAME$1 = 'SwitchGroup';
|
|
12732
13750
|
const CLASSNAME$1 = 'redsift-switch-group';
|
|
12733
13751
|
const DEFAULT_PROPS$1 = {
|
|
12734
|
-
color:
|
|
13752
|
+
color: ColorPalette.primary,
|
|
12735
13753
|
orientation: SwitchGroupOrientation.vertical
|
|
12736
13754
|
};
|
|
12737
13755
|
|
|
@@ -12752,9 +13770,11 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12752
13770
|
label,
|
|
12753
13771
|
onChange,
|
|
12754
13772
|
orientation,
|
|
13773
|
+
theme: propsTheme,
|
|
12755
13774
|
value
|
|
12756
13775
|
} = props,
|
|
12757
13776
|
forwardedProps = _objectWithoutProperties(props, _excluded$1);
|
|
13777
|
+
const theme = useTheme(propsTheme);
|
|
12758
13778
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
12759
13779
|
useEffect(() => {
|
|
12760
13780
|
if (value) {
|
|
@@ -12788,11 +13808,16 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12788
13808
|
}
|
|
12789
13809
|
}
|
|
12790
13810
|
};
|
|
12791
|
-
return /*#__PURE__*/React__default.createElement(
|
|
13811
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
13812
|
+
value: {
|
|
13813
|
+
theme
|
|
13814
|
+
}
|
|
13815
|
+
}, /*#__PURE__*/React__default.createElement(StyledSwitchGroup, _extends$1({}, forwardedProps, {
|
|
12792
13816
|
$isDisabled: isDisabled,
|
|
12793
13817
|
$isInvalid: isInvalid || isRequired && selectedValues.length === 0,
|
|
12794
13818
|
$isReadOnly: isReadOnly,
|
|
12795
13819
|
$orientation: orientation,
|
|
13820
|
+
$theme: theme,
|
|
12796
13821
|
"aria-disabled": isDisabled,
|
|
12797
13822
|
className: classNames(SwitchGroup.className, className),
|
|
12798
13823
|
ref: ref,
|
|
@@ -12805,7 +13830,7 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12805
13830
|
value: state
|
|
12806
13831
|
}, children)), /*#__PURE__*/React__default.createElement("span", {
|
|
12807
13832
|
className: `${SwitchGroup.className}-description`
|
|
12808
|
-
}, description));
|
|
13833
|
+
}, description)));
|
|
12809
13834
|
});
|
|
12810
13835
|
SwitchGroup.className = CLASSNAME$1;
|
|
12811
13836
|
SwitchGroup.defaultProps = DEFAULT_PROPS$1;
|
|
@@ -12848,6 +13873,7 @@ const StyledTextField = styled.div`
|
|
|
12848
13873
|
$isDisabled,
|
|
12849
13874
|
$isInvalid,
|
|
12850
13875
|
$isColored,
|
|
13876
|
+
$theme,
|
|
12851
13877
|
$variant
|
|
12852
13878
|
} = _ref;
|
|
12853
13879
|
return css`
|
|
@@ -12881,13 +13907,13 @@ const StyledTextField = styled.div`
|
|
|
12881
13907
|
`}
|
|
12882
13908
|
|
|
12883
13909
|
${$isDisabled ? css`
|
|
12884
|
-
color: var(--redsift-color-
|
|
13910
|
+
color: var(--redsift-color-neutral-light-grey);
|
|
12885
13911
|
` : $isInvalid ? css`
|
|
12886
13912
|
color: var(--redsift-color-notifications-error-primary);
|
|
12887
13913
|
` : $isFocused ? css`
|
|
12888
|
-
color: ${$isColored ? 'var(--redsift-color-
|
|
13914
|
+
color: ${$isColored ? 'var(--redsift-color-primary-n)' : 'var(--redsift-color-notifications-question-primary)'};
|
|
12889
13915
|
` : css`
|
|
12890
|
-
color: var(--redsift-color-neutral-
|
|
13916
|
+
color: var(--redsift-color-neutral-${$theme === Theme.light ? 'x-dark-grey' : 'light-grey'});
|
|
12891
13917
|
`}
|
|
12892
13918
|
}
|
|
12893
13919
|
|
|
@@ -12896,7 +13922,7 @@ const StyledTextField = styled.div`
|
|
|
12896
13922
|
box-sizing: border-box;
|
|
12897
13923
|
cursor: text;
|
|
12898
13924
|
display: inline-flex;
|
|
12899
|
-
height: 42px;
|
|
13925
|
+
min-height: 42px;
|
|
12900
13926
|
position: relative;
|
|
12901
13927
|
}
|
|
12902
13928
|
|
|
@@ -12933,14 +13959,14 @@ const StyledTextField = styled.div`
|
|
|
12933
13959
|
width: auto;
|
|
12934
13960
|
|
|
12935
13961
|
${$isDisabled ? css`
|
|
12936
|
-
color: var(--redsift-color-
|
|
13962
|
+
color: var(--redsift-color-neutral-light-grey);
|
|
12937
13963
|
` : css`
|
|
12938
|
-
color: var(--redsift-color-neutral-
|
|
13964
|
+
color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});
|
|
12939
13965
|
`}
|
|
12940
13966
|
}
|
|
12941
13967
|
|
|
12942
13968
|
.redsift-text-field-input-wrapper__input::placeholder {
|
|
12943
|
-
color: var(--redsift-color-neutral-
|
|
13969
|
+
color: var(--redsift-color-neutral-mid-grey);
|
|
12944
13970
|
}
|
|
12945
13971
|
|
|
12946
13972
|
.redsift-text-field-input-wrapper__input:focus {
|
|
@@ -12969,13 +13995,13 @@ const StyledTextField = styled.div`
|
|
|
12969
13995
|
`}
|
|
12970
13996
|
|
|
12971
13997
|
${$isDisabled ? css`
|
|
12972
|
-
border-color: var(--redsift-color-
|
|
13998
|
+
border-color: var(--redsift-color-neutral-light-grey);
|
|
12973
13999
|
` : $isInvalid ? css`
|
|
12974
14000
|
border-color: var(--redsift-color-notifications-error-primary);
|
|
12975
14001
|
` : $isFocused ? css`
|
|
12976
|
-
border-color: ${$isColored ? 'var(--redsift-color-
|
|
14002
|
+
border-color: ${$isColored ? 'var(--redsift-color-primary-n)' : 'var(--redsift-color-notifications-question-primary)'};
|
|
12977
14003
|
` : css`
|
|
12978
|
-
border-color: var(--redsift-color-neutral-
|
|
14004
|
+
border-color: var(--redsift-color-neutral-mid-grey);
|
|
12979
14005
|
`}
|
|
12980
14006
|
}
|
|
12981
14007
|
|
|
@@ -13040,7 +14066,7 @@ const StyledTextField = styled.div`
|
|
|
13040
14066
|
// Material Design Icons v7.2.96
|
|
13041
14067
|
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
14068
|
|
|
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"];
|
|
14069
|
+
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
14070
|
const COMPONENT_NAME = 'TextField';
|
|
13045
14071
|
const CLASSNAME = 'redsift-text-field';
|
|
13046
14072
|
const DEFAULT_PROPS = {
|
|
@@ -13079,11 +14105,13 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13079
14105
|
onFocus: onFocusProps,
|
|
13080
14106
|
pills,
|
|
13081
14107
|
placeholder,
|
|
14108
|
+
theme: propsTheme,
|
|
13082
14109
|
type,
|
|
13083
14110
|
value: propsValue,
|
|
13084
14111
|
variant
|
|
13085
14112
|
} = props,
|
|
13086
14113
|
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
14114
|
+
const theme = useTheme(propsTheme);
|
|
13087
14115
|
const {
|
|
13088
14116
|
isFocusVisible,
|
|
13089
14117
|
isFocused,
|
|
@@ -13102,7 +14130,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13102
14130
|
});
|
|
13103
14131
|
const [value, setValue] = useState(defaultValue);
|
|
13104
14132
|
const isControlled = propsValue !== null && propsValue !== undefined;
|
|
13105
|
-
warnIfNoAccessibleLabelFound(props, [label]);
|
|
14133
|
+
warnIfNoAccessibleLabelFound(props, [label], 'TextField');
|
|
13106
14134
|
const handleChange = useCallback(event => {
|
|
13107
14135
|
if (isDisabled || isReadOnly) {
|
|
13108
14136
|
return;
|
|
@@ -13137,6 +14165,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13137
14165
|
$isInvalid: isInvalid || isRequired && !(isControlled ? propsValue : value),
|
|
13138
14166
|
$isRequired: isRequired,
|
|
13139
14167
|
$isFocused: isFocused,
|
|
14168
|
+
$theme: theme,
|
|
13140
14169
|
$variant: variant,
|
|
13141
14170
|
className: classNames(TextField.className, className),
|
|
13142
14171
|
ref: ref
|
|
@@ -13152,6 +14181,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13152
14181
|
})) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
13153
14182
|
className: `${TextField.className}__pills`
|
|
13154
14183
|
}, pills === null || pills === void 0 ? void 0 : pills.map(pill => /*#__PURE__*/React__default.createElement(Pill, {
|
|
14184
|
+
theme: theme,
|
|
13155
14185
|
key: pill.value,
|
|
13156
14186
|
color: "blue",
|
|
13157
14187
|
size: "small"
|
|
@@ -13183,8 +14213,9 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13183
14213
|
className: `${TextField.className}-input-wrapper__toolbar`,
|
|
13184
14214
|
gap: "8px"
|
|
13185
14215
|
}, hasClearButton ? /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
|
|
14216
|
+
theme: theme,
|
|
13186
14217
|
"aria-label": "Clear",
|
|
13187
|
-
color: "
|
|
14218
|
+
color: "grey",
|
|
13188
14219
|
isDisabled: isDisabled,
|
|
13189
14220
|
icon: mdiClose
|
|
13190
14221
|
}, hasClearButton !== true && hasClearButton, {
|
|
@@ -13192,7 +14223,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13192
14223
|
className: "right clear"
|
|
13193
14224
|
})) : 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
14225
|
style: {
|
|
13195
|
-
borderLeft: '1px solid var(--redsift-color-neutral-
|
|
14226
|
+
borderLeft: '1px solid var(--redsift-color-neutral-mid-grey)'
|
|
13196
14227
|
}
|
|
13197
14228
|
}) : null, typeof after === 'function' ? after(isControlled ? propsValue : value, isDisabled, isInvalid || isRequired && !(isControlled ? propsValue : value), isRequired) : after) : null, /*#__PURE__*/React__default.createElement("fieldset", {
|
|
13198
14229
|
"aria-hidden": "true",
|
|
@@ -13205,5 +14236,5 @@ TextField.className = CLASSNAME;
|
|
|
13205
14236
|
TextField.defaultProps = DEFAULT_PROPS;
|
|
13206
14237
|
TextField.displayName = COMPONENT_NAME;
|
|
13207
14238
|
|
|
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 };
|
|
14239
|
+
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
14240
|
//# sourceMappingURL=index.js.map
|