@redsift/design-system 9.0.0-alpha.9 → 9.0.0-muiv5-alpha.18
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/index.d.ts +81 -11
- package/index.js +557 -220
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLocalizedStringFormatter, I18nProvider, useNumberFormatter } from '@react-aria/i18n';
|
|
2
2
|
export { I18nProvider, useCollator, useDateFormatter, useFilter, useListFormatter, useLocale, useLocalizedStringFormatter, useNumberFormatter } from '@react-aria/i18n';
|
|
3
3
|
export { SSRProvider, useIsSSR } from '@react-aria/ssr';
|
|
4
|
-
import { rsiAsmHorizontal, rsiBrandTrustHorizontal, rsiCertificatesHorizontal, rsiOndmarcHorizontal, rsiRadarHorizontal, rsiRojoDsHorizontal, rsiVendorSecureHorizontal, rsiRedSiftHorizontal, mdiClose as mdiClose$1, mdiAlert, mdiCheckCircle, mdiAlertCircle, mdiInformation, mdiMenu, mdiCircleMedium as mdiCircleMedium$1, mdiChevronDown, mdiMenuOpen, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
4
|
+
import { rsiAsmHorizontal, rsiBrandTrustHorizontal, rsiCertificatesHorizontal, rsiOndmarcHorizontal, rsiPulseHorizontal, rsiRadarHorizontal, rsiRojoDsHorizontal, rsiVendorSecureHorizontal, rsiRedSiftHorizontal, mdiClose as mdiClose$1, mdiAlert, mdiCheckCircle, mdiAlertCircle, mdiInformation, mdiMenu, mdiCircleMedium as mdiCircleMedium$1, mdiChevronDown, mdiMenuOpen, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { useState, useEffect, forwardRef, useRef, useCallback, useContext, useReducer, useMemo, useLayoutEffect } from 'react';
|
|
7
7
|
import classNames from 'classnames';
|
|
@@ -24,6 +24,7 @@ const Product = {
|
|
|
24
24
|
'brand-trust': 'brand-trust',
|
|
25
25
|
certificates: 'certificates',
|
|
26
26
|
ondmarc: 'ondmarc',
|
|
27
|
+
pulse: 'pulse',
|
|
27
28
|
radar: 'radar',
|
|
28
29
|
'rojo-ds': 'rojo-ds',
|
|
29
30
|
'vendor-secure': 'vendor-secure',
|
|
@@ -34,6 +35,7 @@ const ProductName = {
|
|
|
34
35
|
'brand-trust': 'Brand Trust',
|
|
35
36
|
certificates: 'Certificates',
|
|
36
37
|
ondmarc: 'OnDMARC',
|
|
38
|
+
pulse: 'Pulse',
|
|
37
39
|
radar: 'RADAR',
|
|
38
40
|
'rojo-ds': 'ROJO DS',
|
|
39
41
|
'vendor-secure': 'Vendor Secure',
|
|
@@ -44,6 +46,7 @@ const ProductLogo = {
|
|
|
44
46
|
'brand-trust': rsiBrandTrustHorizontal,
|
|
45
47
|
certificates: rsiCertificatesHorizontal,
|
|
46
48
|
ondmarc: rsiOndmarcHorizontal,
|
|
49
|
+
pulse: rsiPulseHorizontal,
|
|
47
50
|
radar: rsiRadarHorizontal,
|
|
48
51
|
'rojo-ds': rsiRojoDsHorizontal,
|
|
49
52
|
'vendor-secure': rsiVendorSecureHorizontal,
|
|
@@ -1033,10 +1036,10 @@ const StyledIcon = styled.span`
|
|
|
1033
1036
|
}}
|
|
1034
1037
|
`;
|
|
1035
1038
|
|
|
1036
|
-
const _excluded$
|
|
1037
|
-
const COMPONENT_NAME$
|
|
1038
|
-
const CLASSNAME$
|
|
1039
|
-
const DEFAULT_PROPS$
|
|
1039
|
+
const _excluded$O = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps"];
|
|
1040
|
+
const COMPONENT_NAME$O = 'Icon';
|
|
1041
|
+
const CLASSNAME$O = 'redsift-icon';
|
|
1042
|
+
const DEFAULT_PROPS$O = {
|
|
1040
1043
|
size: IconSize.medium
|
|
1041
1044
|
};
|
|
1042
1045
|
const sizeToDimension$1 = size => {
|
|
@@ -1104,7 +1107,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1104
1107
|
size,
|
|
1105
1108
|
svgProps
|
|
1106
1109
|
} = props,
|
|
1107
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1110
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$O);
|
|
1108
1111
|
const {
|
|
1109
1112
|
width,
|
|
1110
1113
|
height,
|
|
@@ -1137,9 +1140,9 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1137
1140
|
width
|
|
1138
1141
|
}, svgProps)), badge ? badge : null);
|
|
1139
1142
|
});
|
|
1140
|
-
Icon.className = CLASSNAME$
|
|
1141
|
-
Icon.defaultProps = DEFAULT_PROPS$
|
|
1142
|
-
Icon.displayName = COMPONENT_NAME$
|
|
1143
|
+
Icon.className = CLASSNAME$O;
|
|
1144
|
+
Icon.defaultProps = DEFAULT_PROPS$O;
|
|
1145
|
+
Icon.displayName = COMPONENT_NAME$O;
|
|
1143
1146
|
|
|
1144
1147
|
/**
|
|
1145
1148
|
* Component variant.
|
|
@@ -1204,7 +1207,7 @@ const StyledButton = styled.button`
|
|
|
1204
1207
|
$isHovered
|
|
1205
1208
|
} = _ref2;
|
|
1206
1209
|
return css`
|
|
1207
|
-
padding: ${$variant === ButtonVariant.secondary ? '
|
|
1210
|
+
padding: ${$variant === ButtonVariant.secondary ? '8px 15px' : '9px 16px'};
|
|
1208
1211
|
|
|
1209
1212
|
${$variant === ButtonVariant.secondary ? css`
|
|
1210
1213
|
background-color: ${$isActive && $isHovered ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-active-hover)` : $isActive ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-active)` : $isHovered ? `var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-hover)` : $isDisabled ? 'var(--redsift-color-neutral-white)' : 'var(--redsift-color-neutral-white)'};
|
|
@@ -1380,10 +1383,10 @@ var spinner = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmc
|
|
|
1380
1383
|
|
|
1381
1384
|
var uncoloredSpinner = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iI2JkYmRiZCIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiNiZGJkYmQiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
1382
1385
|
|
|
1383
|
-
const _excluded$
|
|
1384
|
-
const COMPONENT_NAME$
|
|
1385
|
-
const CLASSNAME$
|
|
1386
|
-
const DEFAULT_PROPS$
|
|
1386
|
+
const _excluded$N = ["aria-hidden", "aria-label", "className", "isColored", "size"];
|
|
1387
|
+
const COMPONENT_NAME$N = 'Spinner';
|
|
1388
|
+
const CLASSNAME$N = 'redsift-shield';
|
|
1389
|
+
const DEFAULT_PROPS$N = {
|
|
1387
1390
|
isColored: true,
|
|
1388
1391
|
size: SpinnerSize.medium
|
|
1389
1392
|
};
|
|
@@ -1424,7 +1427,7 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1424
1427
|
isColored,
|
|
1425
1428
|
size
|
|
1426
1429
|
} = props,
|
|
1427
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1430
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$N);
|
|
1428
1431
|
const {
|
|
1429
1432
|
width,
|
|
1430
1433
|
height
|
|
@@ -1443,14 +1446,14 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1443
1446
|
$size: size
|
|
1444
1447
|
}));
|
|
1445
1448
|
});
|
|
1446
|
-
Spinner.className = CLASSNAME$
|
|
1447
|
-
Spinner.defaultProps = DEFAULT_PROPS$
|
|
1448
|
-
Spinner.displayName = COMPONENT_NAME$
|
|
1449
|
+
Spinner.className = CLASSNAME$N;
|
|
1450
|
+
Spinner.defaultProps = DEFAULT_PROPS$N;
|
|
1451
|
+
Spinner.displayName = COMPONENT_NAME$N;
|
|
1449
1452
|
|
|
1450
|
-
const _excluded$
|
|
1451
|
-
const COMPONENT_NAME$
|
|
1452
|
-
const CLASSNAME$
|
|
1453
|
-
const DEFAULT_PROPS$
|
|
1453
|
+
const _excluded$M = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isHovered", "isLoading", "leftIcon", "leftIconProps", "rightIcon", "rightIconProps", "variant"];
|
|
1454
|
+
const COMPONENT_NAME$M = 'Button';
|
|
1455
|
+
const CLASSNAME$M = 'redsift-button';
|
|
1456
|
+
const DEFAULT_PROPS$M = {
|
|
1454
1457
|
color: CtasColorPalette.primary,
|
|
1455
1458
|
height: 'fit-content',
|
|
1456
1459
|
variant: ButtonVariant.primary
|
|
@@ -1477,10 +1480,12 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1477
1480
|
isHovered,
|
|
1478
1481
|
isLoading,
|
|
1479
1482
|
leftIcon,
|
|
1483
|
+
leftIconProps,
|
|
1480
1484
|
rightIcon,
|
|
1485
|
+
rightIconProps,
|
|
1481
1486
|
variant
|
|
1482
1487
|
} = props,
|
|
1483
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1488
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$M);
|
|
1484
1489
|
const isDisabled = isLoading || propsIsDisabled || disabled;
|
|
1485
1490
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({}, forwardedProps, {
|
|
1486
1491
|
$color: color,
|
|
@@ -1494,22 +1499,22 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1494
1499
|
className: classNames(Button.className, className),
|
|
1495
1500
|
disabled: isDisabled,
|
|
1496
1501
|
ref: buttonRef
|
|
1497
|
-
}), leftIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1502
|
+
}), leftIcon ? /*#__PURE__*/React__default.createElement(Icon, _extends$1({
|
|
1498
1503
|
icon: leftIcon,
|
|
1499
1504
|
"aria-hidden": "true",
|
|
1500
1505
|
className: "left"
|
|
1501
|
-
}) : null, isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
|
1506
|
+
}, leftIconProps)) : null, isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
|
1502
1507
|
size: "small",
|
|
1503
1508
|
isColored: false
|
|
1504
|
-
}) : null, /*#__PURE__*/React__default.createElement("span", null, children), rightIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1509
|
+
}) : null, /*#__PURE__*/React__default.createElement("span", null, children), rightIcon ? /*#__PURE__*/React__default.createElement(Icon, _extends$1({
|
|
1505
1510
|
icon: rightIcon,
|
|
1506
1511
|
"aria-hidden": "true",
|
|
1507
1512
|
className: "right"
|
|
1508
|
-
}) : null);
|
|
1513
|
+
}, rightIconProps)) : null);
|
|
1509
1514
|
});
|
|
1510
|
-
Button.className = CLASSNAME$
|
|
1511
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1512
|
-
Button.displayName = COMPONENT_NAME$
|
|
1515
|
+
Button.className = CLASSNAME$M;
|
|
1516
|
+
Button.defaultProps = DEFAULT_PROPS$M;
|
|
1517
|
+
Button.displayName = COMPONENT_NAME$M;
|
|
1513
1518
|
|
|
1514
1519
|
/**
|
|
1515
1520
|
* Component style.
|
|
@@ -1536,10 +1541,10 @@ const StyledIconButton = styled(StyledButton)`
|
|
|
1536
1541
|
}}
|
|
1537
1542
|
`;
|
|
1538
1543
|
|
|
1539
|
-
const _excluded$
|
|
1540
|
-
const COMPONENT_NAME$
|
|
1541
|
-
const CLASSNAME$
|
|
1542
|
-
const DEFAULT_PROPS$
|
|
1544
|
+
const _excluded$L = ["className", "color", "disabled", "icon", "iconProps", "isActive", "isDisabled", "isHovered", "isLoading", "variant"];
|
|
1545
|
+
const COMPONENT_NAME$L = 'IconButton';
|
|
1546
|
+
const CLASSNAME$L = 'redsift-icon-button';
|
|
1547
|
+
const DEFAULT_PROPS$L = {
|
|
1543
1548
|
color: CtasColorPalette.primary,
|
|
1544
1549
|
height: 'fit-content',
|
|
1545
1550
|
variant: IconButtonVariant.unstyled
|
|
@@ -1565,7 +1570,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1565
1570
|
isLoading,
|
|
1566
1571
|
variant
|
|
1567
1572
|
} = props,
|
|
1568
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1573
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$L);
|
|
1569
1574
|
const isDisabled = props.isLoading || propsIsDisabled || disabled;
|
|
1570
1575
|
warnIfNoAccessibleLabelFound(props);
|
|
1571
1576
|
return /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps, {
|
|
@@ -1586,9 +1591,9 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1586
1591
|
color: isDisabled ? undefined : color
|
|
1587
1592
|
})));
|
|
1588
1593
|
});
|
|
1589
|
-
IconButton.className = CLASSNAME$
|
|
1590
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1591
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1594
|
+
IconButton.className = CLASSNAME$L;
|
|
1595
|
+
IconButton.defaultProps = DEFAULT_PROPS$L;
|
|
1596
|
+
IconButton.displayName = COMPONENT_NAME$L;
|
|
1592
1597
|
|
|
1593
1598
|
/**
|
|
1594
1599
|
* Component style.
|
|
@@ -1754,10 +1759,10 @@ const StyledText = styled.span`
|
|
|
1754
1759
|
}}
|
|
1755
1760
|
`;
|
|
1756
1761
|
|
|
1757
|
-
const _excluded$
|
|
1758
|
-
const COMPONENT_NAME$
|
|
1759
|
-
const CLASSNAME$
|
|
1760
|
-
const DEFAULT_PROPS$
|
|
1762
|
+
const _excluded$K = ["as", "children", "className", "color", "fontFamily", "fontSize", "fontWeight", "lineHeight", "noWrap", "variant"];
|
|
1763
|
+
const COMPONENT_NAME$K = 'Text';
|
|
1764
|
+
const CLASSNAME$K = 'redsift-text';
|
|
1765
|
+
const DEFAULT_PROPS$K = {
|
|
1761
1766
|
fontFamily: FontFamily.poppins
|
|
1762
1767
|
};
|
|
1763
1768
|
|
|
@@ -1777,7 +1782,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1777
1782
|
noWrap,
|
|
1778
1783
|
variant
|
|
1779
1784
|
} = props,
|
|
1780
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1785
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$K);
|
|
1781
1786
|
return /*#__PURE__*/React__default.createElement(StyledText, _extends$1({
|
|
1782
1787
|
as: as
|
|
1783
1788
|
}, forwardedProps, {
|
|
@@ -1793,9 +1798,9 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1793
1798
|
$variant: variant
|
|
1794
1799
|
}), children);
|
|
1795
1800
|
});
|
|
1796
|
-
Text.className = CLASSNAME$
|
|
1797
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
1798
|
-
Text.displayName = COMPONENT_NAME$
|
|
1801
|
+
Text.className = CLASSNAME$K;
|
|
1802
|
+
Text.defaultProps = DEFAULT_PROPS$K;
|
|
1803
|
+
Text.displayName = COMPONENT_NAME$K;
|
|
1799
1804
|
|
|
1800
1805
|
/**
|
|
1801
1806
|
* Component style.
|
|
@@ -1811,12 +1816,44 @@ const StyledFlexbox = styled.div`
|
|
|
1811
1816
|
${baseStyling}
|
|
1812
1817
|
${baseInternalSpacing}
|
|
1813
1818
|
${baseFlexbox}
|
|
1819
|
+
|
|
1820
|
+
${_ref2 => {
|
|
1821
|
+
let {
|
|
1822
|
+
$divider
|
|
1823
|
+
} = _ref2;
|
|
1824
|
+
return $divider ? css`
|
|
1825
|
+
overflow: hidden;
|
|
1826
|
+
> *:not(:empty) {
|
|
1827
|
+
position: relative;
|
|
1828
|
+
|
|
1829
|
+
::before {
|
|
1830
|
+
content: '';
|
|
1831
|
+
position: absolute;
|
|
1832
|
+
background-color: var(--redsift-color-neutral-lightgrey);
|
|
1833
|
+
inline-size: 1px;
|
|
1834
|
+
block-size: 100%;
|
|
1835
|
+
inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
::after {
|
|
1839
|
+
content: '';
|
|
1840
|
+
position: absolute;
|
|
1841
|
+
background-color: var(--redsift-color-neutral-lightgrey);
|
|
1842
|
+
inline-size: 200vw;
|
|
1843
|
+
block-size: 1px;
|
|
1844
|
+
inset-inline-start: -100vw;
|
|
1845
|
+
inset-block-start: calc(${Math.max(1, $divider.rowGap / 2)}px * -1);
|
|
1846
|
+
z-index: 0;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
` : '';
|
|
1850
|
+
}}
|
|
1814
1851
|
`;
|
|
1815
1852
|
|
|
1816
|
-
const _excluded$
|
|
1817
|
-
const COMPONENT_NAME$
|
|
1818
|
-
const CLASSNAME$
|
|
1819
|
-
const DEFAULT_PROPS$
|
|
1853
|
+
const _excluded$J = ["children", "className", "divider", "gap"];
|
|
1854
|
+
const COMPONENT_NAME$J = 'Flexbox';
|
|
1855
|
+
const CLASSNAME$J = 'redsift-flex-box';
|
|
1856
|
+
const DEFAULT_PROPS$J = {
|
|
1820
1857
|
gap: '16px'
|
|
1821
1858
|
};
|
|
1822
1859
|
|
|
@@ -1826,22 +1863,26 @@ const DEFAULT_PROPS$I = {
|
|
|
1826
1863
|
const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
1827
1864
|
const {
|
|
1828
1865
|
children,
|
|
1829
|
-
className
|
|
1866
|
+
className,
|
|
1867
|
+
divider,
|
|
1868
|
+
gap
|
|
1830
1869
|
} = props,
|
|
1831
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1870
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
1832
1871
|
return /*#__PURE__*/React__default.createElement(StyledFlexbox, _extends$1({}, forwardedProps, {
|
|
1872
|
+
gap: divider ? `${divider.rowGap}px ${divider.colGap}px` : gap,
|
|
1833
1873
|
className: classNames(Flexbox.className, className),
|
|
1834
|
-
ref: ref
|
|
1874
|
+
ref: ref,
|
|
1875
|
+
$divider: divider
|
|
1835
1876
|
}), children);
|
|
1836
1877
|
});
|
|
1837
|
-
Flexbox.className = CLASSNAME$
|
|
1838
|
-
Flexbox.defaultProps = DEFAULT_PROPS$
|
|
1839
|
-
Flexbox.displayName = COMPONENT_NAME$
|
|
1840
|
-
|
|
1841
|
-
const _excluded$
|
|
1842
|
-
const COMPONENT_NAME$
|
|
1843
|
-
const CLASSNAME$
|
|
1844
|
-
const DEFAULT_PROPS$
|
|
1878
|
+
Flexbox.className = CLASSNAME$J;
|
|
1879
|
+
Flexbox.defaultProps = DEFAULT_PROPS$J;
|
|
1880
|
+
Flexbox.displayName = COMPONENT_NAME$J;
|
|
1881
|
+
|
|
1882
|
+
const _excluded$I = ["children", "className", "isClosable", "isClosed", "onClose", "title", "variant"];
|
|
1883
|
+
const COMPONENT_NAME$I = 'Alert';
|
|
1884
|
+
const CLASSNAME$I = 'redsift-alert';
|
|
1885
|
+
const DEFAULT_PROPS$I = {
|
|
1845
1886
|
variant: 'info'
|
|
1846
1887
|
};
|
|
1847
1888
|
const getVariant$1 = variant => {
|
|
@@ -1883,7 +1924,7 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1883
1924
|
title,
|
|
1884
1925
|
variant
|
|
1885
1926
|
} = props,
|
|
1886
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1927
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$I);
|
|
1887
1928
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$6);
|
|
1888
1929
|
const {
|
|
1889
1930
|
color,
|
|
@@ -1929,9 +1970,9 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1929
1970
|
className: `${Alert.className}__content`
|
|
1930
1971
|
}, children) : null);
|
|
1931
1972
|
});
|
|
1932
|
-
Alert.className = CLASSNAME$
|
|
1933
|
-
Alert.defaultProps = DEFAULT_PROPS$
|
|
1934
|
-
Alert.displayName = COMPONENT_NAME$
|
|
1973
|
+
Alert.className = CLASSNAME$I;
|
|
1974
|
+
Alert.defaultProps = DEFAULT_PROPS$I;
|
|
1975
|
+
Alert.displayName = COMPONENT_NAME$I;
|
|
1935
1976
|
|
|
1936
1977
|
var expand$7 = "Expand left side panel";
|
|
1937
1978
|
var collapse$7 = "Collapse left side panel";
|
|
@@ -2002,8 +2043,8 @@ const StyledAppBar = styled.header`
|
|
|
2002
2043
|
$isSidePanelCollapsed
|
|
2003
2044
|
} = _ref2;
|
|
2004
2045
|
return !$isSidePanelCollapsed ? css`
|
|
2005
|
-
transform: translate(
|
|
2006
|
-
width: calc(
|
|
2046
|
+
transform: translate(254px);
|
|
2047
|
+
width: calc(100% - 254px);
|
|
2007
2048
|
` : css`
|
|
2008
2049
|
transform: translate(64px);
|
|
2009
2050
|
width: calc(100% - 64px);
|
|
@@ -2162,10 +2203,10 @@ const StyledHeading = styled.span`
|
|
|
2162
2203
|
}}
|
|
2163
2204
|
`;
|
|
2164
2205
|
|
|
2165
|
-
const _excluded$
|
|
2166
|
-
const COMPONENT_NAME$
|
|
2167
|
-
const CLASSNAME$
|
|
2168
|
-
const DEFAULT_PROPS$
|
|
2206
|
+
const _excluded$H = ["as", "children", "className", "noWrap", "variant"];
|
|
2207
|
+
const COMPONENT_NAME$H = 'Heading';
|
|
2208
|
+
const CLASSNAME$H = 'redsift-heading';
|
|
2209
|
+
const DEFAULT_PROPS$H = {};
|
|
2169
2210
|
|
|
2170
2211
|
/**
|
|
2171
2212
|
* The Heading component.
|
|
@@ -2178,7 +2219,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2178
2219
|
noWrap,
|
|
2179
2220
|
variant
|
|
2180
2221
|
} = props,
|
|
2181
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2222
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$H);
|
|
2182
2223
|
return /*#__PURE__*/React__default.createElement(StyledHeading, _extends$1({
|
|
2183
2224
|
as: as
|
|
2184
2225
|
}, forwardedProps, {
|
|
@@ -2188,9 +2229,9 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2188
2229
|
$variant: variant ? variant : as === 'span' ? 'body' : as
|
|
2189
2230
|
}), children);
|
|
2190
2231
|
});
|
|
2191
|
-
Heading.className = CLASSNAME$
|
|
2192
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
2193
|
-
Heading.displayName = COMPONENT_NAME$
|
|
2232
|
+
Heading.className = CLASSNAME$H;
|
|
2233
|
+
Heading.defaultProps = DEFAULT_PROPS$H;
|
|
2234
|
+
Heading.displayName = COMPONENT_NAME$H;
|
|
2194
2235
|
|
|
2195
2236
|
/**
|
|
2196
2237
|
* Component variant.
|
|
@@ -2365,10 +2406,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2365
2406
|
}
|
|
2366
2407
|
`;
|
|
2367
2408
|
|
|
2368
|
-
const _excluded$
|
|
2369
|
-
const COMPONENT_NAME$
|
|
2370
|
-
const CLASSNAME$
|
|
2371
|
-
const DEFAULT_PROPS$
|
|
2409
|
+
const _excluded$G = ["children", "className", "featuredElements", "logo", "variant", "onOpen", "iconButtonProps", "iconButtonRef"];
|
|
2410
|
+
const COMPONENT_NAME$G = 'AppSidePanel';
|
|
2411
|
+
const CLASSNAME$G = 'redsift-app-side-panel';
|
|
2412
|
+
const DEFAULT_PROPS$G = {
|
|
2372
2413
|
variant: AppSidePanelVariant.standard
|
|
2373
2414
|
};
|
|
2374
2415
|
|
|
@@ -2386,7 +2427,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2386
2427
|
iconButtonProps,
|
|
2387
2428
|
iconButtonRef
|
|
2388
2429
|
} = props,
|
|
2389
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2430
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
2390
2431
|
const {
|
|
2391
2432
|
width
|
|
2392
2433
|
} = useWindowSize();
|
|
@@ -2414,8 +2455,8 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2414
2455
|
}, /*#__PURE__*/React__default.isValidElement(logo) ? logo : logo ? /*#__PURE__*/React__default.createElement("img", {
|
|
2415
2456
|
src: logo.src,
|
|
2416
2457
|
alt: logo.alt
|
|
2417
|
-
}) : product ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2418
|
-
icon: ProductLogo[product],
|
|
2458
|
+
}) : product && (typeof product === 'string' || product.logo) ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2459
|
+
icon: typeof product === 'string' ? ProductLogo[product] : product.logo,
|
|
2419
2460
|
size: {
|
|
2420
2461
|
height: width && width > 1080 ? 41 : 36
|
|
2421
2462
|
}
|
|
@@ -2432,9 +2473,9 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2432
2473
|
className: `${AppSidePanel.className}__featured`
|
|
2433
2474
|
}, featuredElements) : null, children);
|
|
2434
2475
|
});
|
|
2435
|
-
AppSidePanel.className = CLASSNAME$
|
|
2436
|
-
AppSidePanel.defaultProps = DEFAULT_PROPS$
|
|
2437
|
-
AppSidePanel.displayName = COMPONENT_NAME$
|
|
2476
|
+
AppSidePanel.className = CLASSNAME$G;
|
|
2477
|
+
AppSidePanel.defaultProps = DEFAULT_PROPS$G;
|
|
2478
|
+
AppSidePanel.displayName = COMPONENT_NAME$G;
|
|
2438
2479
|
|
|
2439
2480
|
/**
|
|
2440
2481
|
* Component variant.
|
|
@@ -2723,10 +2764,10 @@ const StyledBadge = styled.div`
|
|
|
2723
2764
|
}}
|
|
2724
2765
|
`;
|
|
2725
2766
|
|
|
2726
|
-
const _excluded$
|
|
2727
|
-
const COMPONENT_NAME$
|
|
2728
|
-
const CLASSNAME$
|
|
2729
|
-
const DEFAULT_PROPS$
|
|
2767
|
+
const _excluded$F = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
|
|
2768
|
+
const COMPONENT_NAME$F = 'Badge';
|
|
2769
|
+
const CLASSNAME$F = 'redsift-badge';
|
|
2770
|
+
const DEFAULT_PROPS$F = {
|
|
2730
2771
|
color: NotificationsColorPalette.question,
|
|
2731
2772
|
variant: BadgeVariant.dot
|
|
2732
2773
|
};
|
|
@@ -2743,7 +2784,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2743
2784
|
isReversed,
|
|
2744
2785
|
variant
|
|
2745
2786
|
} = props,
|
|
2746
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2787
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
2747
2788
|
return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({}, forwardedProps, {
|
|
2748
2789
|
$autoBreak: autoBreak,
|
|
2749
2790
|
$color: color,
|
|
@@ -2753,18 +2794,18 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2753
2794
|
ref: ref
|
|
2754
2795
|
}), variant === BadgeVariant.standard ? children : null);
|
|
2755
2796
|
});
|
|
2756
|
-
Badge.className = CLASSNAME$
|
|
2757
|
-
Badge.defaultProps = DEFAULT_PROPS$
|
|
2758
|
-
Badge.displayName = COMPONENT_NAME$
|
|
2797
|
+
Badge.className = CLASSNAME$F;
|
|
2798
|
+
Badge.defaultProps = DEFAULT_PROPS$F;
|
|
2799
|
+
Badge.displayName = COMPONENT_NAME$F;
|
|
2759
2800
|
|
|
2760
2801
|
// Material Design Icons v7.2.96
|
|
2761
2802
|
var mdiCircleMedium = "M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z";
|
|
2762
2803
|
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";
|
|
2763
2804
|
|
|
2764
|
-
const _excluded$
|
|
2765
|
-
const COMPONENT_NAME$
|
|
2766
|
-
const CLASSNAME$
|
|
2767
|
-
const DEFAULT_PROPS$
|
|
2805
|
+
const _excluded$E = ["as", "badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex"];
|
|
2806
|
+
const COMPONENT_NAME$E = 'SideNavigationMenuItem';
|
|
2807
|
+
const CLASSNAME$E = 'redsift-side-navigation-menu-item';
|
|
2808
|
+
const DEFAULT_PROPS$E = {};
|
|
2768
2809
|
|
|
2769
2810
|
/**
|
|
2770
2811
|
* The SideNavigationMenuItem component.
|
|
@@ -2788,7 +2829,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2788
2829
|
onKeyDown,
|
|
2789
2830
|
tabIndex
|
|
2790
2831
|
} = props,
|
|
2791
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2832
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
2792
2833
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
2793
2834
|
const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
|
|
2794
2835
|
const sideNavigationMenuContext = useContext(SideNavigationMenuContext);
|
|
@@ -2846,9 +2887,9 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2846
2887
|
color: "error"
|
|
2847
2888
|
}, badgeProps), badge) : null));
|
|
2848
2889
|
});
|
|
2849
|
-
SideNavigationMenuItem.className = CLASSNAME$
|
|
2850
|
-
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$
|
|
2851
|
-
SideNavigationMenuItem.displayName = COMPONENT_NAME$
|
|
2890
|
+
SideNavigationMenuItem.className = CLASSNAME$E;
|
|
2891
|
+
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$E;
|
|
2892
|
+
SideNavigationMenuItem.displayName = COMPONENT_NAME$E;
|
|
2852
2893
|
|
|
2853
2894
|
/**
|
|
2854
2895
|
* Component style.
|
|
@@ -3067,10 +3108,10 @@ const StyledAppContainer = styled.div`
|
|
|
3067
3108
|
box-sizing: content-box;
|
|
3068
3109
|
`;
|
|
3069
3110
|
|
|
3070
|
-
const _excluded$
|
|
3071
|
-
const COMPONENT_NAME$
|
|
3072
|
-
const CLASSNAME$
|
|
3073
|
-
const DEFAULT_PROPS$
|
|
3111
|
+
const _excluded$D = ["children", "className", "locale", "product"];
|
|
3112
|
+
const COMPONENT_NAME$D = 'AppContainer';
|
|
3113
|
+
const CLASSNAME$D = 'redsift-app-container';
|
|
3114
|
+
const DEFAULT_PROPS$D = {};
|
|
3074
3115
|
|
|
3075
3116
|
/**
|
|
3076
3117
|
* The AppContainer component.
|
|
@@ -3082,7 +3123,7 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3082
3123
|
locale,
|
|
3083
3124
|
product
|
|
3084
3125
|
} = props,
|
|
3085
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3126
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
3086
3127
|
const [sidePanelVariant, setSidePanelVariant] = useState(AppSidePanelVariant.standard);
|
|
3087
3128
|
const [breadcrumbs, setBreadcrumbs] = useState();
|
|
3088
3129
|
const state = {
|
|
@@ -3111,14 +3152,14 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3111
3152
|
locale: locale
|
|
3112
3153
|
}, children)));
|
|
3113
3154
|
});
|
|
3114
|
-
AppContainer.className = CLASSNAME$
|
|
3115
|
-
AppContainer.defaultProps = DEFAULT_PROPS$
|
|
3116
|
-
AppContainer.displayName = COMPONENT_NAME$
|
|
3155
|
+
AppContainer.className = CLASSNAME$D;
|
|
3156
|
+
AppContainer.defaultProps = DEFAULT_PROPS$D;
|
|
3157
|
+
AppContainer.displayName = COMPONENT_NAME$D;
|
|
3117
3158
|
|
|
3118
|
-
const _excluded$
|
|
3119
|
-
const COMPONENT_NAME$
|
|
3120
|
-
const CLASSNAME$
|
|
3121
|
-
const DEFAULT_PROPS$
|
|
3159
|
+
const _excluded$C = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "id", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex"];
|
|
3160
|
+
const COMPONENT_NAME$C = 'SideNavigationMenu';
|
|
3161
|
+
const CLASSNAME$C = 'redsift-side-navigation-menu';
|
|
3162
|
+
const DEFAULT_PROPS$C = {};
|
|
3122
3163
|
|
|
3123
3164
|
/**
|
|
3124
3165
|
* The SideNavigationMenu component.
|
|
@@ -3141,7 +3182,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3141
3182
|
menuRef = useRef(),
|
|
3142
3183
|
tabIndex
|
|
3143
3184
|
} = props,
|
|
3144
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3185
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
3145
3186
|
const [_id] = useId$1();
|
|
3146
3187
|
const id = propsId !== null && propsId !== void 0 ? propsId : _id;
|
|
3147
3188
|
warnIfNoAccessibleLabelFound(props);
|
|
@@ -3447,9 +3488,9 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3447
3488
|
role: "menu"
|
|
3448
3489
|
}, menuItemListEventHandler), renderedMenuItems)))));
|
|
3449
3490
|
});
|
|
3450
|
-
SideNavigationMenu.className = CLASSNAME$
|
|
3451
|
-
SideNavigationMenu.defaultProps = DEFAULT_PROPS$
|
|
3452
|
-
SideNavigationMenu.displayName = COMPONENT_NAME$
|
|
3491
|
+
SideNavigationMenu.className = CLASSNAME$C;
|
|
3492
|
+
SideNavigationMenu.defaultProps = DEFAULT_PROPS$C;
|
|
3493
|
+
SideNavigationMenu.displayName = COMPONENT_NAME$C;
|
|
3453
3494
|
|
|
3454
3495
|
/**
|
|
3455
3496
|
* Component style.
|
|
@@ -3515,10 +3556,10 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
3515
3556
|
}
|
|
3516
3557
|
`;
|
|
3517
3558
|
|
|
3518
|
-
const _excluded$
|
|
3519
|
-
const COMPONENT_NAME$
|
|
3520
|
-
const CLASSNAME$
|
|
3521
|
-
const DEFAULT_PROPS$
|
|
3559
|
+
const _excluded$B = ["aria-label", "aria-labelledby", "canHaveMultipleMenuOpenAtOnce", "children", "className", "isDisabled", "menubarProps", "menubarRef", "variant"];
|
|
3560
|
+
const COMPONENT_NAME$B = 'SideNavigationMenuBar';
|
|
3561
|
+
const CLASSNAME$B = 'redsift-side-navigation-menu-bar';
|
|
3562
|
+
const DEFAULT_PROPS$B = {
|
|
3522
3563
|
variant: SideNavigationMenuBarVariant.standard
|
|
3523
3564
|
};
|
|
3524
3565
|
|
|
@@ -3549,7 +3590,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3549
3590
|
menubarRef = useRef(),
|
|
3550
3591
|
variant: propsVariant
|
|
3551
3592
|
} = props,
|
|
3552
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3593
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
3553
3594
|
warnIfNoAccessibleLabelFound(props);
|
|
3554
3595
|
const appContainerState = useContext(AppContainerContext);
|
|
3555
3596
|
const {
|
|
@@ -3707,12 +3748,12 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3707
3748
|
role: "menubar"
|
|
3708
3749
|
}), navItems)));
|
|
3709
3750
|
});
|
|
3710
|
-
SideNavigationMenuBar.className = CLASSNAME$
|
|
3711
|
-
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$
|
|
3712
|
-
SideNavigationMenuBar.displayName = COMPONENT_NAME$
|
|
3751
|
+
SideNavigationMenuBar.className = CLASSNAME$B;
|
|
3752
|
+
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$B;
|
|
3753
|
+
SideNavigationMenuBar.displayName = COMPONENT_NAME$B;
|
|
3713
3754
|
|
|
3714
|
-
const _excluded$
|
|
3715
|
-
_excluded2 = ["title", "children", "ref"],
|
|
3755
|
+
const _excluded$A = ["title", "href", "ref"],
|
|
3756
|
+
_excluded2$1 = ["title", "children", "ref"],
|
|
3716
3757
|
_excluded3 = ["title", "href", "ref"];
|
|
3717
3758
|
const isMenu = item => {
|
|
3718
3759
|
return item.children !== undefined;
|
|
@@ -3730,7 +3771,7 @@ const useSideNavigationMenuBar = _ref => {
|
|
|
3730
3771
|
href,
|
|
3731
3772
|
ref
|
|
3732
3773
|
} = item,
|
|
3733
|
-
rest = _objectWithoutProperties(item, _excluded$
|
|
3774
|
+
rest = _objectWithoutProperties(item, _excluded$A);
|
|
3734
3775
|
menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenuItem, _extends$1({
|
|
3735
3776
|
key: title,
|
|
3736
3777
|
isCurrent: isActive ? isActive(href) : undefined
|
|
@@ -3744,7 +3785,7 @@ const useSideNavigationMenuBar = _ref => {
|
|
|
3744
3785
|
children,
|
|
3745
3786
|
ref
|
|
3746
3787
|
} = item,
|
|
3747
|
-
rest = _objectWithoutProperties(item, _excluded2);
|
|
3788
|
+
rest = _objectWithoutProperties(item, _excluded2$1);
|
|
3748
3789
|
menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenu, _extends$1({
|
|
3749
3790
|
key: title,
|
|
3750
3791
|
"aria-label": title,
|
|
@@ -3834,10 +3875,10 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
3834
3875
|
}
|
|
3835
3876
|
`;
|
|
3836
3877
|
|
|
3837
|
-
const _excluded$
|
|
3838
|
-
const COMPONENT_NAME$
|
|
3839
|
-
const CLASSNAME$
|
|
3840
|
-
const DEFAULT_PROPS$
|
|
3878
|
+
const _excluded$z = ["as", "children", "className", "href", "isCurrent", "isDisabled"];
|
|
3879
|
+
const COMPONENT_NAME$A = 'BreadcrumbItem';
|
|
3880
|
+
const CLASSNAME$A = 'redsift-breadcrumb-item';
|
|
3881
|
+
const DEFAULT_PROPS$A = {};
|
|
3841
3882
|
|
|
3842
3883
|
/**
|
|
3843
3884
|
* The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3851,7 +3892,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3851
3892
|
isCurrent,
|
|
3852
3893
|
isDisabled
|
|
3853
3894
|
} = props,
|
|
3854
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3895
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$z);
|
|
3855
3896
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
3856
3897
|
return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
|
|
3857
3898
|
as: as || 'a',
|
|
@@ -3867,9 +3908,9 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3867
3908
|
ref: ref
|
|
3868
3909
|
}), children);
|
|
3869
3910
|
});
|
|
3870
|
-
BreadcrumbItem.className = CLASSNAME$
|
|
3871
|
-
BreadcrumbItem.defaultProps = DEFAULT_PROPS$
|
|
3872
|
-
BreadcrumbItem.displayName = COMPONENT_NAME$
|
|
3911
|
+
BreadcrumbItem.className = CLASSNAME$A;
|
|
3912
|
+
BreadcrumbItem.defaultProps = DEFAULT_PROPS$A;
|
|
3913
|
+
BreadcrumbItem.displayName = COMPONENT_NAME$A;
|
|
3873
3914
|
|
|
3874
3915
|
/**
|
|
3875
3916
|
* Component style.
|
|
@@ -3903,10 +3944,10 @@ const StyledBreadcrumbs = styled.nav`
|
|
|
3903
3944
|
}
|
|
3904
3945
|
`;
|
|
3905
3946
|
|
|
3906
|
-
const _excluded$
|
|
3907
|
-
const COMPONENT_NAME$
|
|
3908
|
-
const CLASSNAME$
|
|
3909
|
-
const DEFAULT_PROPS$
|
|
3947
|
+
const _excluded$y = ["children", "className", "isDisabled"];
|
|
3948
|
+
const COMPONENT_NAME$z = 'Breadcrumbs';
|
|
3949
|
+
const CLASSNAME$z = 'redsift-breadcrumbs';
|
|
3950
|
+
const DEFAULT_PROPS$z = {};
|
|
3910
3951
|
|
|
3911
3952
|
/**
|
|
3912
3953
|
* The Breadcrumbs components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3917,7 +3958,7 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3917
3958
|
className,
|
|
3918
3959
|
isDisabled
|
|
3919
3960
|
} = props,
|
|
3920
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3961
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$y);
|
|
3921
3962
|
warnIfNoAccessibleLabelFound(props);
|
|
3922
3963
|
const childArray = filterComponents([Breadcrumbs.Item])(children);
|
|
3923
3964
|
const breadcrumbItems = childArray.map((child, index) => {
|
|
@@ -3940,23 +3981,23 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3940
3981
|
ref: ref
|
|
3941
3982
|
}), /*#__PURE__*/React__default.createElement("ol", null, breadcrumbItems));
|
|
3942
3983
|
});
|
|
3943
|
-
BaseBreadcrumbs.className = CLASSNAME$
|
|
3944
|
-
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$
|
|
3945
|
-
BaseBreadcrumbs.displayName = COMPONENT_NAME$
|
|
3984
|
+
BaseBreadcrumbs.className = CLASSNAME$z;
|
|
3985
|
+
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$z;
|
|
3986
|
+
BaseBreadcrumbs.displayName = COMPONENT_NAME$z;
|
|
3946
3987
|
const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
|
|
3947
3988
|
Item: BreadcrumbItem
|
|
3948
3989
|
});
|
|
3949
3990
|
|
|
3950
|
-
const _excluded$
|
|
3951
|
-
const COMPONENT_NAME$
|
|
3952
|
-
const CLASSNAME$
|
|
3953
|
-
const DEFAULT_PROPS$
|
|
3991
|
+
const _excluded$x = ["breadcrumbs", "children", "className", "iconButtonProps", "iconButtonRef", "fallbackTitle", "title"];
|
|
3992
|
+
const COMPONENT_NAME$y = 'AppBar';
|
|
3993
|
+
const CLASSNAME$y = 'redsift-app-bar';
|
|
3994
|
+
const DEFAULT_PROPS$y = {};
|
|
3954
3995
|
|
|
3955
3996
|
/**
|
|
3956
3997
|
* The AppBar component.
|
|
3957
3998
|
*/
|
|
3958
3999
|
const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3959
|
-
var _breadcrumbs
|
|
4000
|
+
var _breadcrumbs$, _appContainerState$pr;
|
|
3960
4001
|
const {
|
|
3961
4002
|
breadcrumbs,
|
|
3962
4003
|
children,
|
|
@@ -3966,7 +4007,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3966
4007
|
fallbackTitle,
|
|
3967
4008
|
title: propsTitle
|
|
3968
4009
|
} = props,
|
|
3969
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4010
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$x);
|
|
3970
4011
|
const [scroll, setScroll] = useState(false);
|
|
3971
4012
|
useEffect(() => {
|
|
3972
4013
|
window.addEventListener('scroll', () => {
|
|
@@ -4007,20 +4048,20 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4007
4048
|
}, appContainerState && appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? /*#__PURE__*/React__default.createElement(Breadcrumbs.Item, {
|
|
4008
4049
|
href: "/",
|
|
4009
4050
|
as: ((_breadcrumbs$ = breadcrumbs[0]) === null || _breadcrumbs$ === void 0 ? void 0 : _breadcrumbs$.as) || 'a'
|
|
4010
|
-
}, ProductName[appContainerState.product]) : null, breadcrumbs.map((breadcrumbItem, index) => /*#__PURE__*/React__default.createElement(Breadcrumbs.Item, _extends$1({
|
|
4051
|
+
}, typeof appContainerState.product === 'string' ? ProductName[appContainerState.product] : (_appContainerState$pr = appContainerState.product) === null || _appContainerState$pr === void 0 ? void 0 : _appContainerState$pr.name) : null, breadcrumbs.map((breadcrumbItem, index) => /*#__PURE__*/React__default.createElement(Breadcrumbs.Item, _extends$1({
|
|
4011
4052
|
key: index
|
|
4012
4053
|
}, breadcrumbItem, {
|
|
4013
4054
|
isDisabled: breadcrumbItem.isDisabled || breadcrumbItem.href === undefined,
|
|
4014
4055
|
as: index === breadcrumbs.length - 1 ? 'h1' : breadcrumbItem.href === undefined ? 'span' : breadcrumbItem.as || 'a'
|
|
4015
4056
|
})))) : fallbackTitle ? /*#__PURE__*/React__default.createElement(Heading, {
|
|
4016
4057
|
as: "h1"
|
|
4017
|
-
}, fallbackTitle) : null), /*#__PURE__*/React__default.createElement("div", {
|
|
4058
|
+
}, fallbackTitle) : null), children ? /*#__PURE__*/React__default.createElement("div", {
|
|
4018
4059
|
className: `${AppBar.className}__right`
|
|
4019
|
-
}, children));
|
|
4060
|
+
}, children) : null);
|
|
4020
4061
|
});
|
|
4021
|
-
AppBar.className = CLASSNAME$
|
|
4022
|
-
AppBar.defaultProps = DEFAULT_PROPS$
|
|
4023
|
-
AppBar.displayName = COMPONENT_NAME$
|
|
4062
|
+
AppBar.className = CLASSNAME$y;
|
|
4063
|
+
AppBar.defaultProps = DEFAULT_PROPS$y;
|
|
4064
|
+
AppBar.displayName = COMPONENT_NAME$y;
|
|
4024
4065
|
|
|
4025
4066
|
/**
|
|
4026
4067
|
* Component style.
|
|
@@ -4059,10 +4100,10 @@ const StyledAppContent = styled.main`
|
|
|
4059
4100
|
}}
|
|
4060
4101
|
`;
|
|
4061
4102
|
|
|
4062
|
-
const _excluded$
|
|
4063
|
-
const COMPONENT_NAME$
|
|
4064
|
-
const CLASSNAME$
|
|
4065
|
-
const DEFAULT_PROPS$
|
|
4103
|
+
const _excluded$w = ["children", "className"];
|
|
4104
|
+
const COMPONENT_NAME$x = 'AppContent';
|
|
4105
|
+
const CLASSNAME$x = 'redsift-app-content';
|
|
4106
|
+
const DEFAULT_PROPS$x = {};
|
|
4066
4107
|
|
|
4067
4108
|
/**
|
|
4068
4109
|
* The AppContent component.
|
|
@@ -4072,7 +4113,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4072
4113
|
children,
|
|
4073
4114
|
className
|
|
4074
4115
|
} = props,
|
|
4075
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4116
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
4076
4117
|
const {
|
|
4077
4118
|
isLoaded
|
|
4078
4119
|
} = useIsLoaded();
|
|
@@ -4084,9 +4125,166 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4084
4125
|
ref: ref
|
|
4085
4126
|
}), children);
|
|
4086
4127
|
});
|
|
4087
|
-
AppContent.className = CLASSNAME$
|
|
4088
|
-
AppContent.defaultProps = DEFAULT_PROPS$
|
|
4089
|
-
AppContent.displayName = COMPONENT_NAME$
|
|
4128
|
+
AppContent.className = CLASSNAME$x;
|
|
4129
|
+
AppContent.defaultProps = DEFAULT_PROPS$x;
|
|
4130
|
+
AppContent.displayName = COMPONENT_NAME$x;
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* Component variant.
|
|
4134
|
+
*/
|
|
4135
|
+
const ButtonGroupVariant = {
|
|
4136
|
+
primary: 'primary',
|
|
4137
|
+
secondary: 'secondary',
|
|
4138
|
+
unstyled: 'unstyled'
|
|
4139
|
+
};
|
|
4140
|
+
|
|
4141
|
+
/**
|
|
4142
|
+
* Component color.
|
|
4143
|
+
*/
|
|
4144
|
+
|
|
4145
|
+
/**
|
|
4146
|
+
* Component props.
|
|
4147
|
+
*/
|
|
4148
|
+
|
|
4149
|
+
/**
|
|
4150
|
+
* Component style.
|
|
4151
|
+
*/
|
|
4152
|
+
const StyledButtonGroup = styled.div`
|
|
4153
|
+
display: ${_ref => {
|
|
4154
|
+
let {
|
|
4155
|
+
inline
|
|
4156
|
+
} = _ref;
|
|
4157
|
+
return inline ? 'inline-flex' : 'flex';
|
|
4158
|
+
}};
|
|
4159
|
+
|
|
4160
|
+
${baseStyling}
|
|
4161
|
+
${baseFlexbox}
|
|
4162
|
+
|
|
4163
|
+
${_ref2 => {
|
|
4164
|
+
let {
|
|
4165
|
+
$color,
|
|
4166
|
+
$variant
|
|
4167
|
+
} = _ref2;
|
|
4168
|
+
return css`
|
|
4169
|
+
${$variant === ButtonGroupVariant.secondary ? css`
|
|
4170
|
+
.first-button {
|
|
4171
|
+
border-top-right-radius: 0;
|
|
4172
|
+
border-bottom-right-radius: 0;
|
|
4173
|
+
border-right-color: transparent;
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
.middle-button {
|
|
4177
|
+
border-top-left-radius: 0;
|
|
4178
|
+
border-bottom-left-radius: 0;
|
|
4179
|
+
margin-left: -1px;
|
|
4180
|
+
border-top-right-radius: 0;
|
|
4181
|
+
border-bottom-right-radius: 0;
|
|
4182
|
+
border-right-color: transparent;
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
.last-button {
|
|
4186
|
+
border-top-left-radius: 0;
|
|
4187
|
+
border-bottom-left-radius: 0;
|
|
4188
|
+
margin-left: -1px;
|
|
4189
|
+
}
|
|
4190
|
+
` : $variant === ButtonGroupVariant.unstyled ? css`
|
|
4191
|
+
.first-button {
|
|
4192
|
+
border-top-right-radius: 0;
|
|
4193
|
+
border-bottom-right-radius: 0;
|
|
4194
|
+
border-right: 1px solid rgba(0, 0, 0, 0.23);
|
|
4195
|
+
border-color: ${`var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-active)`};
|
|
4196
|
+
}
|
|
4197
|
+
|
|
4198
|
+
.middle-button {
|
|
4199
|
+
border-top-left-radius: 0;
|
|
4200
|
+
border-bottom-left-radius: 0;
|
|
4201
|
+
border-top-right-radius: 0;
|
|
4202
|
+
border-bottom-right-radius: 0;
|
|
4203
|
+
border-right: 1px solid rgba(0, 0, 0, 0.23);
|
|
4204
|
+
border-color: ${`var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-active)`};
|
|
4205
|
+
}
|
|
4206
|
+
|
|
4207
|
+
.last-button {
|
|
4208
|
+
border-top-left-radius: 0;
|
|
4209
|
+
border-bottom-left-radius: 0;
|
|
4210
|
+
}
|
|
4211
|
+
` : css`
|
|
4212
|
+
.first-button {
|
|
4213
|
+
border-top-right-radius: 0;
|
|
4214
|
+
border-bottom-right-radius: 0;
|
|
4215
|
+
border-right: 1px solid #bdbdbd;
|
|
4216
|
+
border-color: ${`var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-hover)`};
|
|
4217
|
+
}
|
|
4218
|
+
|
|
4219
|
+
.middle-button {
|
|
4220
|
+
border-top-left-radius: 0;
|
|
4221
|
+
border-bottom-left-radius: 0;
|
|
4222
|
+
border-top-right-radius: 0;
|
|
4223
|
+
border-bottom-right-radius: 0;
|
|
4224
|
+
border-right: 1px solid #bdbdbd;
|
|
4225
|
+
border-color: ${`var(--redsift-color-${Object.keys(CtasColorPalette).includes($color) ? 'ctas' : 'notifications'}-${$color}-button-hover)`};
|
|
4226
|
+
}
|
|
4227
|
+
|
|
4228
|
+
.last-button {
|
|
4229
|
+
border-top-left-radius: 0;
|
|
4230
|
+
border-bottom-left-radius: 0;
|
|
4231
|
+
}
|
|
4232
|
+
`}
|
|
4233
|
+
`;
|
|
4234
|
+
}};
|
|
4235
|
+
`;
|
|
4236
|
+
|
|
4237
|
+
const _excluded$v = ["children", "className", "color", "variant"];
|
|
4238
|
+
const COMPONENT_NAME$w = 'ButtonGroup';
|
|
4239
|
+
const CLASSNAME$w = 'redsift-button-group';
|
|
4240
|
+
const DEFAULT_PROPS$w = {
|
|
4241
|
+
variant: 'primary'
|
|
4242
|
+
};
|
|
4243
|
+
|
|
4244
|
+
/**
|
|
4245
|
+
* The ButtonGroup component.
|
|
4246
|
+
*/
|
|
4247
|
+
const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4248
|
+
const {
|
|
4249
|
+
children,
|
|
4250
|
+
className,
|
|
4251
|
+
color,
|
|
4252
|
+
variant
|
|
4253
|
+
} = props,
|
|
4254
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$v);
|
|
4255
|
+
|
|
4256
|
+
/**
|
|
4257
|
+
* Create an array containing only valid children being either Button, IconButton, ButtonLink or MenuButton.
|
|
4258
|
+
*/
|
|
4259
|
+
const childArray = filterComponents(['Button', 'IconButton', 'ButtonLink', 'MenuButton'])(children);
|
|
4260
|
+
const buttons = childArray.map((child, index) => {
|
|
4261
|
+
var _key;
|
|
4262
|
+
if (isComponent('MenuButton')(child)) {
|
|
4263
|
+
var _child$key;
|
|
4264
|
+
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
4265
|
+
color,
|
|
4266
|
+
variant,
|
|
4267
|
+
key: (_child$key = child.key) !== null && _child$key !== void 0 ? _child$key : index,
|
|
4268
|
+
triggerClassName: index === 0 ? 'first-button' : index === childArray.length - 1 ? 'last-button' : 'middle-button'
|
|
4269
|
+
});
|
|
4270
|
+
}
|
|
4271
|
+
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
4272
|
+
color,
|
|
4273
|
+
variant,
|
|
4274
|
+
key: (_key = child.key) !== null && _key !== void 0 ? _key : index,
|
|
4275
|
+
className: index === 0 ? 'first-button' : index === childArray.length - 1 ? 'last-button' : 'middle-button'
|
|
4276
|
+
});
|
|
4277
|
+
});
|
|
4278
|
+
return /*#__PURE__*/React__default.createElement(StyledButtonGroup, _extends$1({}, forwardedProps, {
|
|
4279
|
+
className: classNames(ButtonGroup.className, className),
|
|
4280
|
+
ref: ref,
|
|
4281
|
+
$color: color,
|
|
4282
|
+
$variant: variant
|
|
4283
|
+
}), buttons);
|
|
4284
|
+
});
|
|
4285
|
+
ButtonGroup.className = CLASSNAME$w;
|
|
4286
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$w;
|
|
4287
|
+
ButtonGroup.displayName = COMPONENT_NAME$w;
|
|
4090
4288
|
|
|
4091
4289
|
const _excluded$u = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
|
|
4092
4290
|
const COMPONENT_NAME$v = 'ButtonLink';
|
|
@@ -4274,7 +4472,7 @@ const StyledSkeleton = styled.div`
|
|
|
4274
4472
|
height: fit-content;
|
|
4275
4473
|
width: fit-content;
|
|
4276
4474
|
|
|
4277
|
-
|
|
4475
|
+
* {
|
|
4278
4476
|
visibility: hidden;
|
|
4279
4477
|
}
|
|
4280
4478
|
|
|
@@ -4529,10 +4727,10 @@ const StyledCardBody = styled.div`
|
|
|
4529
4727
|
${baseContainer}
|
|
4530
4728
|
|
|
4531
4729
|
color: var(--redsift-color-neutral-darkgrey);
|
|
4532
|
-
font-family: var(--redsift-typography-
|
|
4533
|
-
font-size: var(--redsift-typography-
|
|
4534
|
-
font-weight: var(--redsift-typography-
|
|
4535
|
-
line-height: var(--redsift-typography-
|
|
4730
|
+
font-family: var(--redsift-typography-body-font-family);
|
|
4731
|
+
font-size: var(--redsift-typography-body-font-size);
|
|
4732
|
+
font-weight: var(--redsift-typography-body-font-weight);
|
|
4733
|
+
line-height: var(--redsift-typography-body-line-height);
|
|
4536
4734
|
padding: 16px 0px;
|
|
4537
4735
|
`;
|
|
4538
4736
|
|
|
@@ -4863,7 +5061,7 @@ const StyledCheckbox = styled.label`
|
|
|
4863
5061
|
$isInvalid
|
|
4864
5062
|
} = _ref;
|
|
4865
5063
|
return $isDisabled ? css`
|
|
4866
|
-
color: var(--redsift-color-neutral-
|
|
5064
|
+
color: var(--redsift-color-neutral-lightgrey);
|
|
4867
5065
|
` : $isInvalid ? css`
|
|
4868
5066
|
color: var(--redsift-color-notifications-error-primary);
|
|
4869
5067
|
` : css`
|
|
@@ -4898,7 +5096,7 @@ const StyledCheckbox = styled.label`
|
|
|
4898
5096
|
} = _ref2;
|
|
4899
5097
|
return css`
|
|
4900
5098
|
${$isDisabled ? css`
|
|
4901
|
-
color: var(--redsift-color-neutral-
|
|
5099
|
+
color: var(--redsift-color-neutral-lightgrey);
|
|
4902
5100
|
` : $isInvalid ? css`
|
|
4903
5101
|
color: var(--redsift-color-notifications-error-primary);
|
|
4904
5102
|
` : css`
|
|
@@ -5583,6 +5781,18 @@ DetailedCardHeader.className = CLASSNAME$i;
|
|
|
5583
5781
|
DetailedCardHeader.defaultProps = DEFAULT_PROPS$i;
|
|
5584
5782
|
DetailedCardHeader.displayName = COMPONENT_NAME$i;
|
|
5585
5783
|
|
|
5784
|
+
/**
|
|
5785
|
+
* Component size.
|
|
5786
|
+
*/
|
|
5787
|
+
const PillSize = {
|
|
5788
|
+
small: 'small',
|
|
5789
|
+
large: 'large'
|
|
5790
|
+
};
|
|
5791
|
+
|
|
5792
|
+
/**
|
|
5793
|
+
* Component props.
|
|
5794
|
+
*/
|
|
5795
|
+
|
|
5586
5796
|
/**
|
|
5587
5797
|
* Component style.
|
|
5588
5798
|
*/
|
|
@@ -5592,7 +5802,8 @@ const StyledPill = styled.div`
|
|
|
5592
5802
|
gap: 4px;
|
|
5593
5803
|
width: fit-content;
|
|
5594
5804
|
${baseStyling}
|
|
5595
|
-
|
|
5805
|
+
|
|
5806
|
+
border-radius: 2px;
|
|
5596
5807
|
padding: 2px 8px;
|
|
5597
5808
|
text-align: center;
|
|
5598
5809
|
|
|
@@ -5619,9 +5830,7 @@ const StyledPill = styled.div`
|
|
|
5619
5830
|
|
|
5620
5831
|
&,
|
|
5621
5832
|
.redsift-icon {
|
|
5622
|
-
color: var(
|
|
5623
|
-
--redsift-color-neutral-${['black', 'warning-dark', 'success-dark'].includes($color) ? 'white' : 'black'}
|
|
5624
|
-
);
|
|
5833
|
+
color: var(--redsift-color-neutral-${['black', 'no-data', 'error-dark'].includes($color) ? 'white' : 'black'});
|
|
5625
5834
|
}
|
|
5626
5835
|
`;
|
|
5627
5836
|
}}}
|
|
@@ -5629,9 +5838,19 @@ const StyledPill = styled.div`
|
|
|
5629
5838
|
&,
|
|
5630
5839
|
.redsift-icon {
|
|
5631
5840
|
font-family: var(--redsift-typography-pill-font-family);
|
|
5632
|
-
font-size:
|
|
5841
|
+
font-size: ${_ref3 => {
|
|
5842
|
+
let {
|
|
5843
|
+
$size
|
|
5844
|
+
} = _ref3;
|
|
5845
|
+
return $size === PillSize.large ? css`var(--redsift-typography-chip-font-size)` : css`var(--redsift-typography-pill-font-size)`;
|
|
5846
|
+
}}};
|
|
5633
5847
|
font-weight: var(--redsift-typography-pill-font-weight);
|
|
5634
|
-
line-height:
|
|
5848
|
+
line-height: ${_ref4 => {
|
|
5849
|
+
let {
|
|
5850
|
+
$size
|
|
5851
|
+
} = _ref4;
|
|
5852
|
+
return $size === PillSize.large ? css`var(--redsift-typography-chip-line-height)` : css`var(--redsift-typography-pill-line-height)`;
|
|
5853
|
+
}}};
|
|
5635
5854
|
}
|
|
5636
5855
|
|
|
5637
5856
|
.redsift-icon {
|
|
@@ -5645,12 +5864,13 @@ const StyledPill = styled.div`
|
|
|
5645
5864
|
}
|
|
5646
5865
|
`;
|
|
5647
5866
|
|
|
5648
|
-
const _excluded$g = ["autoBreak", "children", "className", "color"];
|
|
5867
|
+
const _excluded$g = ["autoBreak", "children", "className", "color", "size"];
|
|
5649
5868
|
const COMPONENT_NAME$h = 'Pill';
|
|
5650
5869
|
const CLASSNAME$h = 'redsift-pill';
|
|
5651
5870
|
const DEFAULT_PROPS$h = {
|
|
5652
5871
|
color: PresentationColorPalette.pink,
|
|
5653
|
-
height: 'fit-content'
|
|
5872
|
+
height: 'fit-content',
|
|
5873
|
+
size: PillSize.large
|
|
5654
5874
|
};
|
|
5655
5875
|
|
|
5656
5876
|
/**
|
|
@@ -5661,12 +5881,14 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5661
5881
|
autoBreak,
|
|
5662
5882
|
children,
|
|
5663
5883
|
className,
|
|
5664
|
-
color
|
|
5884
|
+
color,
|
|
5885
|
+
size
|
|
5665
5886
|
} = props,
|
|
5666
5887
|
forwardedProps = _objectWithoutProperties(props, _excluded$g);
|
|
5667
5888
|
return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
|
|
5668
5889
|
$autoBreak: autoBreak,
|
|
5669
5890
|
$color: color,
|
|
5891
|
+
$size: size,
|
|
5670
5892
|
className: classNames(Pill.className, className),
|
|
5671
5893
|
ref: ref
|
|
5672
5894
|
}), children);
|
|
@@ -9618,6 +9840,7 @@ let EventKey = /*#__PURE__*/function (EventKey) {
|
|
|
9618
9840
|
EventKey["ArrowDown"] = "ArrowDown";
|
|
9619
9841
|
EventKey["Home"] = "Home";
|
|
9620
9842
|
EventKey["End"] = "End";
|
|
9843
|
+
EventKey["Enter"] = "Enter";
|
|
9621
9844
|
return EventKey;
|
|
9622
9845
|
}({});
|
|
9623
9846
|
let Navigation = /*#__PURE__*/function (Navigation) {
|
|
@@ -9659,7 +9882,8 @@ const FOCUS_WITHING_GROUP_INITIAL_STATE = {
|
|
|
9659
9882
|
focusOnInit: true,
|
|
9660
9883
|
loopAround: false,
|
|
9661
9884
|
rowStartMap: null,
|
|
9662
|
-
focusType: 'roving-tabindex'
|
|
9885
|
+
focusType: 'roving-tabindex',
|
|
9886
|
+
listRole: 'listbox'
|
|
9663
9887
|
};
|
|
9664
9888
|
const FocusWithinGroupContext = /*#__PURE__*/React__default.createContext({
|
|
9665
9889
|
state: FOCUS_WITHING_GROUP_INITIAL_STATE,
|
|
@@ -10120,16 +10344,20 @@ const FocusWithinGroup = props => {
|
|
|
10120
10344
|
focusOnClick,
|
|
10121
10345
|
loopAround,
|
|
10122
10346
|
focusType,
|
|
10347
|
+
listRole,
|
|
10123
10348
|
focusOnInit,
|
|
10124
|
-
activedescendant
|
|
10349
|
+
activedescendant,
|
|
10350
|
+
maxOptionsLength
|
|
10125
10351
|
} = props;
|
|
10126
10352
|
const [state, dispatch] = useReducer(FocusWithinGroupReducer, _objectSpread2(_objectSpread2({}, FOCUS_WITHING_GROUP_INITIAL_STATE), {}, {
|
|
10127
10353
|
direction,
|
|
10128
10354
|
focusOnClick,
|
|
10129
10355
|
loopAround,
|
|
10130
10356
|
focusType,
|
|
10357
|
+
listRole,
|
|
10131
10358
|
focusOnInit,
|
|
10132
|
-
activedescendant
|
|
10359
|
+
activedescendant,
|
|
10360
|
+
maxOptionsLength
|
|
10133
10361
|
}));
|
|
10134
10362
|
|
|
10135
10363
|
// Update the options whenever they change:
|
|
@@ -10141,11 +10369,13 @@ const FocusWithinGroup = props => {
|
|
|
10141
10369
|
focusOnClick: focusOnClick !== null && focusOnClick !== void 0 ? focusOnClick : FOCUS_WITHING_GROUP_INITIAL_STATE.focusOnClick,
|
|
10142
10370
|
loopAround: loopAround !== null && loopAround !== void 0 ? loopAround : FOCUS_WITHING_GROUP_INITIAL_STATE.loopAround,
|
|
10143
10371
|
focusType: focusType !== null && focusType !== void 0 ? focusType : FOCUS_WITHING_GROUP_INITIAL_STATE.focusType,
|
|
10372
|
+
listRole: listRole !== null && listRole !== void 0 ? listRole : FOCUS_WITHING_GROUP_INITIAL_STATE.listRole,
|
|
10144
10373
|
focusOnInit: focusOnInit !== null && focusOnInit !== void 0 ? focusOnInit : FOCUS_WITHING_GROUP_INITIAL_STATE.focusOnInit,
|
|
10145
|
-
activedescendant: activedescendant !== null && activedescendant !== void 0 ? activedescendant : FOCUS_WITHING_GROUP_INITIAL_STATE.activedescendant
|
|
10374
|
+
activedescendant: activedescendant !== null && activedescendant !== void 0 ? activedescendant : FOCUS_WITHING_GROUP_INITIAL_STATE.activedescendant,
|
|
10375
|
+
maxOptionsLength: maxOptionsLength !== null && maxOptionsLength !== void 0 ? maxOptionsLength : FOCUS_WITHING_GROUP_INITIAL_STATE.maxOptionsLength
|
|
10146
10376
|
}
|
|
10147
10377
|
});
|
|
10148
|
-
}, [direction, focusOnClick, focusOnInit, loopAround, focusType, activedescendant]);
|
|
10378
|
+
}, [direction, focusOnClick, focusOnInit, loopAround, focusType, listRole, activedescendant, maxOptionsLength]);
|
|
10149
10379
|
const context = useMemo(() => ({
|
|
10150
10380
|
state,
|
|
10151
10381
|
dispatch
|
|
@@ -10356,7 +10586,7 @@ const StyledGrid = styled.div`
|
|
|
10356
10586
|
} = _ref2;
|
|
10357
10587
|
return $divider ? css`
|
|
10358
10588
|
overflow: hidden;
|
|
10359
|
-
.redsift-grid-item {
|
|
10589
|
+
.redsift-grid-item:not(:empty) {
|
|
10360
10590
|
position: relative;
|
|
10361
10591
|
|
|
10362
10592
|
::before {
|
|
@@ -10365,17 +10595,17 @@ const StyledGrid = styled.div`
|
|
|
10365
10595
|
background-color: var(--redsift-color-neutral-lightgrey);
|
|
10366
10596
|
inline-size: 1px;
|
|
10367
10597
|
block-size: 100%;
|
|
10368
|
-
inset-inline-start: calc(${$divider.colGap / 2}px * -1);
|
|
10598
|
+
inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);
|
|
10369
10599
|
}
|
|
10370
10600
|
|
|
10371
10601
|
::after {
|
|
10372
10602
|
content: '';
|
|
10373
10603
|
position: absolute;
|
|
10374
10604
|
background-color: var(--redsift-color-neutral-lightgrey);
|
|
10375
|
-
inline-size:
|
|
10605
|
+
inline-size: 200vw;
|
|
10376
10606
|
block-size: 1px;
|
|
10377
|
-
inset-inline-start:
|
|
10378
|
-
inset-block-start: calc(${$divider.rowGap / 2}px * -1);
|
|
10607
|
+
inset-inline-start: -100vw;
|
|
10608
|
+
inset-block-start: calc(${Math.max(1, $divider.rowGap / 2)}px * -1);
|
|
10379
10609
|
z-index: 0;
|
|
10380
10610
|
}
|
|
10381
10611
|
}
|
|
@@ -10455,7 +10685,7 @@ const StyledItem = styled.div`
|
|
|
10455
10685
|
width: 100%;
|
|
10456
10686
|
padding: 8px 16px;
|
|
10457
10687
|
|
|
10458
|
-
${
|
|
10688
|
+
${baseContainer}
|
|
10459
10689
|
|
|
10460
10690
|
align-items: center;
|
|
10461
10691
|
background: none;
|
|
@@ -10526,6 +10756,7 @@ const ListboxContext = /*#__PURE__*/React__default.createContext({
|
|
|
10526
10756
|
let ListboxActionType = /*#__PURE__*/function (ListboxActionType) {
|
|
10527
10757
|
ListboxActionType["TOGGLE"] = "TOGGLE";
|
|
10528
10758
|
ListboxActionType["SET"] = "SET";
|
|
10759
|
+
ListboxActionType["UPDATE_OPTIONS"] = "UPDATE_OPTIONS";
|
|
10529
10760
|
return ListboxActionType;
|
|
10530
10761
|
}({});
|
|
10531
10762
|
/**
|
|
@@ -10620,11 +10851,55 @@ function useListboxItem(props) {
|
|
|
10620
10851
|
};
|
|
10621
10852
|
}
|
|
10622
10853
|
|
|
10623
|
-
|
|
10854
|
+
function useMenuItem(props) {
|
|
10855
|
+
const {
|
|
10856
|
+
domElementRef,
|
|
10857
|
+
id,
|
|
10858
|
+
isDisabled,
|
|
10859
|
+
onClick
|
|
10860
|
+
} = props;
|
|
10861
|
+
const {
|
|
10862
|
+
tabIndex,
|
|
10863
|
+
isFocused,
|
|
10864
|
+
handleKeyDown: handleFocusKeyDown,
|
|
10865
|
+
handleClick: handleFocusClick
|
|
10866
|
+
} = useFocusOnListItem({
|
|
10867
|
+
domElementRef,
|
|
10868
|
+
isDisabled: isDisabled,
|
|
10869
|
+
id
|
|
10870
|
+
});
|
|
10871
|
+
const handleKeyDown = useCallback(event => {
|
|
10872
|
+
const code = event.code;
|
|
10873
|
+
if (code === 'Enter' || code === 'Space') {
|
|
10874
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
10875
|
+
}
|
|
10876
|
+
handleFocusKeyDown(event);
|
|
10877
|
+
}, []);
|
|
10878
|
+
const handleClick = useCallback(() => {
|
|
10879
|
+
handleFocusClick();
|
|
10880
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
10881
|
+
}, []);
|
|
10882
|
+
useEffect(() => {
|
|
10883
|
+
if (isFocused && domElementRef.current) {
|
|
10884
|
+
var _current;
|
|
10885
|
+
(_current = domElementRef.current) === null || _current === void 0 ? void 0 : _current.focus();
|
|
10886
|
+
}
|
|
10887
|
+
}, [isFocused]);
|
|
10888
|
+
return {
|
|
10889
|
+
tabIndex,
|
|
10890
|
+
isFocused,
|
|
10891
|
+
isDisabled,
|
|
10892
|
+
handleKeyDown,
|
|
10893
|
+
handleClick
|
|
10894
|
+
};
|
|
10895
|
+
}
|
|
10896
|
+
|
|
10897
|
+
const _excluded$b = ["children", "className", "defaultSelected", "id", "isActive", "isDisabled", "isHovered", "isSelected", "value"],
|
|
10898
|
+
_excluded2 = ["children", "className", "id", "isActive", "isDisabled", "isHovered", "onClick"];
|
|
10624
10899
|
const COMPONENT_NAME$9 = 'Item';
|
|
10625
10900
|
const CLASSNAME$9 = 'redsift-item';
|
|
10626
10901
|
const DEFAULT_PROPS$9 = {};
|
|
10627
|
-
const
|
|
10902
|
+
const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10628
10903
|
const {
|
|
10629
10904
|
children,
|
|
10630
10905
|
className,
|
|
@@ -10671,6 +10946,49 @@ const RenderedItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10671
10946
|
tabIndex: tabIndex
|
|
10672
10947
|
}), children !== null && children !== void 0 ? children : value);
|
|
10673
10948
|
});
|
|
10949
|
+
const RenderedMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10950
|
+
const {
|
|
10951
|
+
children,
|
|
10952
|
+
className,
|
|
10953
|
+
id: propsId,
|
|
10954
|
+
isActive,
|
|
10955
|
+
isDisabled: propsIsDisabled,
|
|
10956
|
+
isHovered,
|
|
10957
|
+
onClick
|
|
10958
|
+
} = props,
|
|
10959
|
+
forwardedProps = _objectWithoutProperties(props, _excluded2);
|
|
10960
|
+
const [_id] = useId$1();
|
|
10961
|
+
const id = propsId !== null && propsId !== void 0 ? propsId : _id;
|
|
10962
|
+
const _ref = useRef();
|
|
10963
|
+
const divRef = ref !== null && ref !== void 0 ? ref : _ref;
|
|
10964
|
+
const {
|
|
10965
|
+
tabIndex,
|
|
10966
|
+
isFocused,
|
|
10967
|
+
isDisabled,
|
|
10968
|
+
handleKeyDown,
|
|
10969
|
+
handleClick
|
|
10970
|
+
} = useMenuItem({
|
|
10971
|
+
domElementRef: divRef,
|
|
10972
|
+
id,
|
|
10973
|
+
isDisabled: propsIsDisabled,
|
|
10974
|
+
onClick: onClick
|
|
10975
|
+
});
|
|
10976
|
+
return /*#__PURE__*/React__default.createElement(StyledItem, _extends$1({
|
|
10977
|
+
role: "option"
|
|
10978
|
+
}, forwardedProps, {
|
|
10979
|
+
id: id,
|
|
10980
|
+
$isActive: isActive,
|
|
10981
|
+
$isDisabled: isDisabled,
|
|
10982
|
+
$isFocused: isFocused,
|
|
10983
|
+
$isHovered: isHovered,
|
|
10984
|
+
$isSelected: false,
|
|
10985
|
+
className: classNames(Item.className, className),
|
|
10986
|
+
onClick: handleClick,
|
|
10987
|
+
ref: divRef,
|
|
10988
|
+
onKeyDown: handleKeyDown,
|
|
10989
|
+
tabIndex: tabIndex
|
|
10990
|
+
}), children);
|
|
10991
|
+
});
|
|
10674
10992
|
|
|
10675
10993
|
/**
|
|
10676
10994
|
* The Item component.
|
|
@@ -10680,8 +10998,12 @@ const Item = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10680
10998
|
value
|
|
10681
10999
|
} = props;
|
|
10682
11000
|
const focusContext = useContext(FocusWithinGroupContext);
|
|
11001
|
+
const isListbox = focusContext.state.listRole === 'listbox';
|
|
10683
11002
|
if (!focusContext.state.filter) {
|
|
10684
|
-
return /*#__PURE__*/React__default.createElement(
|
|
11003
|
+
return isListbox ? /*#__PURE__*/React__default.createElement(RenderedListboxItem, _extends$1({}, props, {
|
|
11004
|
+
value: props.value,
|
|
11005
|
+
ref: ref
|
|
11006
|
+
})) : /*#__PURE__*/React__default.createElement(RenderedMenuItem, _extends$1({}, props, {
|
|
10685
11007
|
ref: ref
|
|
10686
11008
|
}));
|
|
10687
11009
|
}
|
|
@@ -10691,15 +11013,24 @@ const Item = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10691
11013
|
caseSensitive
|
|
10692
11014
|
} = focusContext.state.filter;
|
|
10693
11015
|
if (!filterValue) {
|
|
10694
|
-
return /*#__PURE__*/React__default.createElement(
|
|
11016
|
+
return isListbox ? /*#__PURE__*/React__default.createElement(RenderedListboxItem, _extends$1({}, props, {
|
|
11017
|
+
value: props.value,
|
|
11018
|
+
ref: ref
|
|
11019
|
+
})) : /*#__PURE__*/React__default.createElement(RenderedMenuItem, _extends$1({}, props, {
|
|
10695
11020
|
ref: ref
|
|
10696
11021
|
}));
|
|
10697
11022
|
} else if (caseSensitive && (type === 'startsWith' && value.startsWith(filterValue) || type === 'contains' && value.includes(filterValue) || type === 'endsWith' && value.endsWith(filterValue))) {
|
|
10698
|
-
return /*#__PURE__*/React__default.createElement(
|
|
11023
|
+
return isListbox ? /*#__PURE__*/React__default.createElement(RenderedListboxItem, _extends$1({}, props, {
|
|
11024
|
+
value: props.value,
|
|
11025
|
+
ref: ref
|
|
11026
|
+
})) : /*#__PURE__*/React__default.createElement(RenderedMenuItem, _extends$1({}, props, {
|
|
10699
11027
|
ref: ref
|
|
10700
11028
|
}));
|
|
10701
11029
|
} else if (!caseSensitive && (type === 'startsWith' && value.toLowerCase().startsWith(filterValue.toLowerCase()) || type === 'contains' && value.toLowerCase().includes(filterValue.toLowerCase()) || type === 'endsWith' && value.toLowerCase().endsWith(filterValue.toLowerCase()))) {
|
|
10702
|
-
return /*#__PURE__*/React__default.createElement(
|
|
11030
|
+
return isListbox ? /*#__PURE__*/React__default.createElement(RenderedListboxItem, _extends$1({}, props, {
|
|
11031
|
+
value: props.value,
|
|
11032
|
+
ref: ref
|
|
11033
|
+
})) : /*#__PURE__*/React__default.createElement(RenderedMenuItem, _extends$1({}, props, {
|
|
10703
11034
|
ref: ref
|
|
10704
11035
|
}));
|
|
10705
11036
|
}
|
|
@@ -10981,6 +11312,10 @@ const ListboxReducer = (state, action) => {
|
|
|
10981
11312
|
activedescendant: action.payload.activedescendant
|
|
10982
11313
|
});
|
|
10983
11314
|
}
|
|
11315
|
+
case ListboxActionType.UPDATE_OPTIONS:
|
|
11316
|
+
{
|
|
11317
|
+
return _objectSpread2(_objectSpread2({}, state), action.payload);
|
|
11318
|
+
}
|
|
10984
11319
|
default:
|
|
10985
11320
|
return state;
|
|
10986
11321
|
}
|
|
@@ -12092,6 +12427,10 @@ const StyledTextField = styled.div`
|
|
|
12092
12427
|
$variant
|
|
12093
12428
|
} = _ref;
|
|
12094
12429
|
return css`
|
|
12430
|
+
${$isDisabled ? css`
|
|
12431
|
+
pointer-events: none;
|
|
12432
|
+
` : ''}
|
|
12433
|
+
|
|
12095
12434
|
.redsift-text-field__label {
|
|
12096
12435
|
font-family: var(--redsift-typography-input-text-font-family);
|
|
12097
12436
|
font-size: var(--redsift-typography-input-text-font-size);
|
|
@@ -12113,15 +12452,12 @@ const StyledTextField = styled.div`
|
|
|
12113
12452
|
max-width: calc(100% - 24px);
|
|
12114
12453
|
transform: translate(${$variant === TextFieldVariant.underline ? '0px' : '14px'}, 16px) scale(1);
|
|
12115
12454
|
` : css`
|
|
12116
|
-
font-family: var(--redsift-typography-body2-font-family);
|
|
12117
|
-
font-size: var(--redsift-typography-body2-font-size);
|
|
12118
|
-
font-weight: var(--redsift-typography-body2-font-weight);
|
|
12119
12455
|
max-width: calc(133% - 32px);
|
|
12120
|
-
transform: translate(${$variant === TextFieldVariant.underline ? '0px' : '14px'},
|
|
12456
|
+
transform: translate(${$variant === TextFieldVariant.underline ? '0px' : '14px'}, 1px) scale(0.733);
|
|
12121
12457
|
`}
|
|
12122
12458
|
|
|
12123
12459
|
${$isDisabled ? css`
|
|
12124
|
-
color: var(--redsift-color-
|
|
12460
|
+
color: var(--redsift-color-notifications-no-data-primary);
|
|
12125
12461
|
` : $isInvalid ? css`
|
|
12126
12462
|
color: var(--redsift-color-notifications-error-primary);
|
|
12127
12463
|
` : $isFocused ? css`
|
|
@@ -12159,7 +12495,7 @@ const StyledTextField = styled.div`
|
|
|
12159
12495
|
width: 100%;
|
|
12160
12496
|
|
|
12161
12497
|
${$isDisabled ? css`
|
|
12162
|
-
color: var(--redsift-color-
|
|
12498
|
+
color: var(--redsift-color-notifications-no-data-primary);
|
|
12163
12499
|
` : css`
|
|
12164
12500
|
color: var(--redsift-color-neutral-black);
|
|
12165
12501
|
`}
|
|
@@ -12176,7 +12512,7 @@ const StyledTextField = styled.div`
|
|
|
12176
12512
|
.redsift-text-field-input-wrapper__fieldset {
|
|
12177
12513
|
border-style: solid;
|
|
12178
12514
|
bottom: 0;
|
|
12179
|
-
left:
|
|
12515
|
+
left: 1px;
|
|
12180
12516
|
margin: 0;
|
|
12181
12517
|
min-width: 0%;
|
|
12182
12518
|
overflow: hidden;
|
|
@@ -12195,7 +12531,7 @@ const StyledTextField = styled.div`
|
|
|
12195
12531
|
`}
|
|
12196
12532
|
|
|
12197
12533
|
${$isDisabled ? css`
|
|
12198
|
-
border-color: var(--redsift-color-
|
|
12534
|
+
border-color: var(--redsift-color-notifications-no-data-primary);
|
|
12199
12535
|
` : $isInvalid ? css`
|
|
12200
12536
|
border-color: var(--redsift-color-notifications-error-primary);
|
|
12201
12537
|
` : $isFocused ? css`
|
|
@@ -12208,7 +12544,7 @@ const StyledTextField = styled.div`
|
|
|
12208
12544
|
.redsift-text-field-input-wrapper-fieldset__legend {
|
|
12209
12545
|
display: block;
|
|
12210
12546
|
float: unset;
|
|
12211
|
-
font-size:
|
|
12547
|
+
font-size: 11px;
|
|
12212
12548
|
height: 11px;
|
|
12213
12549
|
overflow: hidden;
|
|
12214
12550
|
padding: 0;
|
|
@@ -12311,10 +12647,8 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12311
12647
|
} = useFocusWithin({
|
|
12312
12648
|
onFocusWithinChange: isFocusWithin => setFocusWithin(isFocusWithin)
|
|
12313
12649
|
});
|
|
12314
|
-
const [value, setValue] = useState(
|
|
12315
|
-
|
|
12316
|
-
setValue(propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue);
|
|
12317
|
-
}, [propsValue, defaultValue]);
|
|
12650
|
+
const [value, setValue] = useState(defaultValue);
|
|
12651
|
+
const isControlled = propsValue !== null && propsValue !== undefined;
|
|
12318
12652
|
warnIfNoAccessibleLabelFound(props, [label]);
|
|
12319
12653
|
const handleChange = useCallback(event => {
|
|
12320
12654
|
if (isDisabled || isReadOnly) {
|
|
@@ -12342,12 +12676,12 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12342
12676
|
setValue('');
|
|
12343
12677
|
}, [onChange]);
|
|
12344
12678
|
return /*#__PURE__*/React__default.createElement(StyledTextField, _extends$1({}, focusWithinProps, forwardedProps, {
|
|
12345
|
-
$hasContent: isFocusWithin || Boolean(value) || Boolean(placeholder),
|
|
12679
|
+
$hasContent: isFocusWithin || Boolean(isControlled ? propsValue : value) || Boolean(placeholder),
|
|
12346
12680
|
$hasLeftIcon: Boolean(leftIcon),
|
|
12347
12681
|
$isColored: isColored,
|
|
12348
12682
|
$isDisabled: isDisabled,
|
|
12349
12683
|
$isFocusVisible: isFocusVisible,
|
|
12350
|
-
$isInvalid: isInvalid || isRequired && !value,
|
|
12684
|
+
$isInvalid: isInvalid || isRequired && !(isControlled ? propsValue : value),
|
|
12351
12685
|
$isRequired: isRequired,
|
|
12352
12686
|
$isFocused: isFocused,
|
|
12353
12687
|
$variant: variant,
|
|
@@ -12357,7 +12691,9 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12357
12691
|
className: `${TextField.className}__label`
|
|
12358
12692
|
}, /*#__PURE__*/React__default.createElement("span", null, label)) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
12359
12693
|
className: `${TextField.className}__input-wrapper`
|
|
12360
|
-
}, leftIcon ? /*#__PURE__*/React__default.createElement(Icon, _extends$1({
|
|
12694
|
+
}, leftIcon ? /*#__PURE__*/React__default.createElement(Icon, _extends$1({
|
|
12695
|
+
color: isDisabled ? 'question' : 'black'
|
|
12696
|
+
}, leftIcon, {
|
|
12361
12697
|
"aria-hidden": "true",
|
|
12362
12698
|
className: "left"
|
|
12363
12699
|
})) : null, /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, {
|
|
@@ -12370,7 +12706,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12370
12706
|
onFocusProps === null || onFocusProps === void 0 ? void 0 : onFocusProps(event);
|
|
12371
12707
|
},
|
|
12372
12708
|
"aria-disabled": isDisabled,
|
|
12373
|
-
"aria-invalid": isInvalid || isRequired && !value,
|
|
12709
|
+
"aria-invalid": isInvalid || isRequired && !(isControlled ? propsValue : value),
|
|
12374
12710
|
"aria-label": ariaLabel,
|
|
12375
12711
|
"aria-labelledby": ariaLabelledby,
|
|
12376
12712
|
"aria-readonly": isReadOnly,
|
|
@@ -12383,31 +12719,32 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12383
12719
|
placeholder: placeholder,
|
|
12384
12720
|
ref: inputRef,
|
|
12385
12721
|
type: type,
|
|
12386
|
-
value: value
|
|
12722
|
+
value: isControlled ? propsValue : value
|
|
12387
12723
|
})), hasClearButton || internal || after ? /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
12388
12724
|
className: `${TextField.className}-input-wrapper__toolbar`,
|
|
12389
12725
|
gap: "8px"
|
|
12390
12726
|
}, hasClearButton ? /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
|
|
12391
12727
|
"aria-label": "Clear",
|
|
12392
12728
|
color: "question",
|
|
12729
|
+
isDisabled: isDisabled,
|
|
12393
12730
|
icon: mdiClose
|
|
12394
12731
|
}, hasClearButton !== true && hasClearButton, {
|
|
12395
12732
|
onClick: handleClear,
|
|
12396
12733
|
className: "right clear"
|
|
12397
|
-
})) : null, typeof internal === 'function' ? internal(value, isDisabled, isInvalid || isRequired && !value, isRequired) : internal, (hasClearButton || internal) && after ? /*#__PURE__*/React__default.createElement("span", {
|
|
12734
|
+
})) : null, typeof internal === 'function' ? internal(isControlled ? propsValue : value, isDisabled, isInvalid || isRequired && !(isControlled ? propsValue : value), isRequired) : internal, (hasClearButton || internal) && after ? /*#__PURE__*/React__default.createElement("span", {
|
|
12398
12735
|
style: {
|
|
12399
12736
|
borderLeft: '1px solid var(--redsift-color-neutral-midgrey)'
|
|
12400
12737
|
}
|
|
12401
|
-
}) : null, typeof after === 'function' ? after(value, isDisabled, isInvalid || isRequired && !value, isRequired) : after) : null,
|
|
12738
|
+
}) : null, typeof after === 'function' ? after(isControlled ? propsValue : value, isDisabled, isInvalid || isRequired && !(isControlled ? propsValue : value), isRequired) : after) : null, /*#__PURE__*/React__default.createElement("fieldset", {
|
|
12402
12739
|
"aria-hidden": "true",
|
|
12403
12740
|
className: `${TextField.className}-input-wrapper__fieldset`
|
|
12404
12741
|
}, /*#__PURE__*/React__default.createElement("legend", {
|
|
12405
12742
|
className: `${TextField.className}-input-wrapper-fieldset__legend`
|
|
12406
|
-
}, /*#__PURE__*/React__default.createElement("span", null, label)
|
|
12743
|
+
}, label ? /*#__PURE__*/React__default.createElement("span", null, label) : null))));
|
|
12407
12744
|
});
|
|
12408
12745
|
TextField.className = CLASSNAME;
|
|
12409
12746
|
TextField.defaultProps = DEFAULT_PROPS;
|
|
12410
12747
|
TextField.displayName = COMPONENT_NAME;
|
|
12411
12748
|
|
|
12412
|
-
export { ActiveDescendantListbox, Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, AppSidePanelVariant, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, 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, PresentationColorPalette, Product, ProductColorPalette, ProductLogo, ProductName, 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, isComponent, nextId, partitionComponents, resetId, setPrefix, sizeToDimension$1 as sizeToDimension, uniqueId, useAppSidePanel, useBoundingClientRect, useFocusOnList, useFocusOnListItem, useId$1 as useId, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
12749
|
+
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, 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, isComponent, nextId, partitionComponents, resetId, setPrefix, sizeToDimension$1 as sizeToDimension, uniqueId, useAppSidePanel, useBoundingClientRect, useFocusOnList, useFocusOnListItem, useId$1 as useId, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
12413
12750
|
//# sourceMappingURL=index.js.map
|