@redsift/design-system 9.0.0-alpha.8 → 9.0.0-muiv5-alpha.17
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 +83 -11
- package/index.js +603 -229
- 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";
|
|
@@ -1974,7 +2015,12 @@ const StyledAppBar = styled.header`
|
|
|
1974
2015
|
color: var(--redsift-color-neutral-darkgrey);
|
|
1975
2016
|
display: flex;
|
|
1976
2017
|
flex-direction: row;
|
|
2018
|
+
|
|
1977
2019
|
height: 92px;
|
|
2020
|
+
@media (max-width: 1080px) {
|
|
2021
|
+
height: 72px;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
1978
2024
|
justify-content: space-between;
|
|
1979
2025
|
left: 0;
|
|
1980
2026
|
position: sticky;
|
|
@@ -1983,21 +2029,32 @@ const StyledAppBar = styled.header`
|
|
|
1983
2029
|
|
|
1984
2030
|
${_ref => {
|
|
1985
2031
|
let {
|
|
1986
|
-
$
|
|
2032
|
+
$hasBorder
|
|
1987
2033
|
} = _ref;
|
|
2034
|
+
return $hasBorder ? css`
|
|
2035
|
+
border-bottom: 2px solid #e1e1e1;
|
|
2036
|
+
` : css`
|
|
2037
|
+
border-bottom: none;
|
|
2038
|
+
`;
|
|
2039
|
+
}}
|
|
2040
|
+
|
|
2041
|
+
${_ref2 => {
|
|
2042
|
+
let {
|
|
2043
|
+
$isSidePanelCollapsed
|
|
2044
|
+
} = _ref2;
|
|
1988
2045
|
return !$isSidePanelCollapsed ? css`
|
|
1989
|
-
transform: translate(
|
|
1990
|
-
width: calc(100% -
|
|
2046
|
+
transform: translate(254px);
|
|
2047
|
+
width: calc(100% - 254px);
|
|
1991
2048
|
` : css`
|
|
1992
2049
|
transform: translate(64px);
|
|
1993
2050
|
width: calc(100% - 64px);
|
|
1994
2051
|
`;
|
|
1995
2052
|
}}
|
|
1996
2053
|
|
|
1997
|
-
${
|
|
2054
|
+
${_ref3 => {
|
|
1998
2055
|
let {
|
|
1999
2056
|
$isLoaded
|
|
2000
|
-
} =
|
|
2057
|
+
} = _ref3;
|
|
2001
2058
|
return $isLoaded ? css`
|
|
2002
2059
|
transition: transform 0.25s ease-out, width 0.25s ease-out;
|
|
2003
2060
|
` : '';
|
|
@@ -2146,10 +2203,10 @@ const StyledHeading = styled.span`
|
|
|
2146
2203
|
}}
|
|
2147
2204
|
`;
|
|
2148
2205
|
|
|
2149
|
-
const _excluded$
|
|
2150
|
-
const COMPONENT_NAME$
|
|
2151
|
-
const CLASSNAME$
|
|
2152
|
-
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 = {};
|
|
2153
2210
|
|
|
2154
2211
|
/**
|
|
2155
2212
|
* The Heading component.
|
|
@@ -2162,7 +2219,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2162
2219
|
noWrap,
|
|
2163
2220
|
variant
|
|
2164
2221
|
} = props,
|
|
2165
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2222
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$H);
|
|
2166
2223
|
return /*#__PURE__*/React__default.createElement(StyledHeading, _extends$1({
|
|
2167
2224
|
as: as
|
|
2168
2225
|
}, forwardedProps, {
|
|
@@ -2172,9 +2229,9 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2172
2229
|
$variant: variant ? variant : as === 'span' ? 'body' : as
|
|
2173
2230
|
}), children);
|
|
2174
2231
|
});
|
|
2175
|
-
Heading.className = CLASSNAME$
|
|
2176
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
2177
|
-
Heading.displayName = COMPONENT_NAME$
|
|
2232
|
+
Heading.className = CLASSNAME$H;
|
|
2233
|
+
Heading.defaultProps = DEFAULT_PROPS$H;
|
|
2234
|
+
Heading.displayName = COMPONENT_NAME$H;
|
|
2178
2235
|
|
|
2179
2236
|
/**
|
|
2180
2237
|
* Component variant.
|
|
@@ -2241,7 +2298,12 @@ const StyledAppSidePanel = styled.div`
|
|
|
2241
2298
|
}};
|
|
2242
2299
|
margin-bottom: 16px;
|
|
2243
2300
|
width: 100%;
|
|
2301
|
+
|
|
2244
2302
|
height: 92px;
|
|
2303
|
+
@media (max-width: 1080px) {
|
|
2304
|
+
height: 72px;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2245
2307
|
display: grid;
|
|
2246
2308
|
justify-items: start;
|
|
2247
2309
|
align-items: center;
|
|
@@ -2267,11 +2329,18 @@ const StyledAppSidePanel = styled.div`
|
|
|
2267
2329
|
} = _ref3;
|
|
2268
2330
|
return $variant === AppSidePanelVariant.shrinked ? '0' : '1';
|
|
2269
2331
|
}};
|
|
2332
|
+
|
|
2270
2333
|
height: 56px;
|
|
2334
|
+
@media (max-width: 1080px) {
|
|
2335
|
+
height: 36px;
|
|
2336
|
+
}
|
|
2271
2337
|
}
|
|
2272
2338
|
|
|
2273
2339
|
.redsift-app-side-panel-header__logo > img {
|
|
2274
2340
|
max-height: 56px;
|
|
2341
|
+
@media (max-width: 1080px) {
|
|
2342
|
+
max-height: 36px;
|
|
2343
|
+
}
|
|
2275
2344
|
max-width: 195px;
|
|
2276
2345
|
}
|
|
2277
2346
|
|
|
@@ -2337,10 +2406,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2337
2406
|
}
|
|
2338
2407
|
`;
|
|
2339
2408
|
|
|
2340
|
-
const _excluded$
|
|
2341
|
-
const COMPONENT_NAME$
|
|
2342
|
-
const CLASSNAME$
|
|
2343
|
-
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 = {
|
|
2344
2413
|
variant: AppSidePanelVariant.standard
|
|
2345
2414
|
};
|
|
2346
2415
|
|
|
@@ -2358,7 +2427,10 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2358
2427
|
iconButtonProps,
|
|
2359
2428
|
iconButtonRef
|
|
2360
2429
|
} = props,
|
|
2361
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2430
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
2431
|
+
const {
|
|
2432
|
+
width
|
|
2433
|
+
} = useWindowSize();
|
|
2362
2434
|
const appContainerState = useContext(AppContainerContext);
|
|
2363
2435
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$3);
|
|
2364
2436
|
useEffect(() => {
|
|
@@ -2383,10 +2455,10 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2383
2455
|
}, /*#__PURE__*/React__default.isValidElement(logo) ? logo : logo ? /*#__PURE__*/React__default.createElement("img", {
|
|
2384
2456
|
src: logo.src,
|
|
2385
2457
|
alt: logo.alt
|
|
2386
|
-
}) : product ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2387
|
-
icon: ProductLogo[product],
|
|
2458
|
+
}) : product && (typeof product === 'string' || product.logo) ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2459
|
+
icon: typeof product === 'string' ? ProductLogo[product] : product.logo,
|
|
2388
2460
|
size: {
|
|
2389
|
-
height: 41
|
|
2461
|
+
height: width && width > 1080 ? 41 : 36
|
|
2390
2462
|
}
|
|
2391
2463
|
}) : null), /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
|
|
2392
2464
|
className: `${AppSidePanel.className}-header__expand-button`
|
|
@@ -2401,9 +2473,9 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2401
2473
|
className: `${AppSidePanel.className}__featured`
|
|
2402
2474
|
}, featuredElements) : null, children);
|
|
2403
2475
|
});
|
|
2404
|
-
AppSidePanel.className = CLASSNAME$
|
|
2405
|
-
AppSidePanel.defaultProps = DEFAULT_PROPS$
|
|
2406
|
-
AppSidePanel.displayName = COMPONENT_NAME$
|
|
2476
|
+
AppSidePanel.className = CLASSNAME$G;
|
|
2477
|
+
AppSidePanel.defaultProps = DEFAULT_PROPS$G;
|
|
2478
|
+
AppSidePanel.displayName = COMPONENT_NAME$G;
|
|
2407
2479
|
|
|
2408
2480
|
/**
|
|
2409
2481
|
* Component variant.
|
|
@@ -2452,6 +2524,7 @@ const StyledSideNavigationMenuItemIndicatorContainer = styled.div`
|
|
|
2452
2524
|
min-width: 4px;
|
|
2453
2525
|
`;
|
|
2454
2526
|
const StyledSideNavigationMenuItemIndicator = styled.div`
|
|
2527
|
+
position: relative;
|
|
2455
2528
|
width: 4px;
|
|
2456
2529
|
height: 38px;
|
|
2457
2530
|
border-radius: 0px 4px 4px 0px;
|
|
@@ -2574,7 +2647,7 @@ const StyledSideNavigationMenuItem = styled.a`
|
|
|
2574
2647
|
margin-bottom: 16px;
|
|
2575
2648
|
margin-left: -4px;
|
|
2576
2649
|
transition: padding 300ms ease-out;
|
|
2577
|
-
padding:
|
|
2650
|
+
padding: 0 16px 0 ${$variant === SideNavigationMenuBarVariant.shrinked ? '16px' : '24px'};
|
|
2578
2651
|
|
|
2579
2652
|
.redsift-icon.first {
|
|
2580
2653
|
box-sizing: unset;
|
|
@@ -2691,10 +2764,10 @@ const StyledBadge = styled.div`
|
|
|
2691
2764
|
}}
|
|
2692
2765
|
`;
|
|
2693
2766
|
|
|
2694
|
-
const _excluded$
|
|
2695
|
-
const COMPONENT_NAME$
|
|
2696
|
-
const CLASSNAME$
|
|
2697
|
-
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 = {
|
|
2698
2771
|
color: NotificationsColorPalette.question,
|
|
2699
2772
|
variant: BadgeVariant.dot
|
|
2700
2773
|
};
|
|
@@ -2711,7 +2784,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2711
2784
|
isReversed,
|
|
2712
2785
|
variant
|
|
2713
2786
|
} = props,
|
|
2714
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2787
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
2715
2788
|
return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({}, forwardedProps, {
|
|
2716
2789
|
$autoBreak: autoBreak,
|
|
2717
2790
|
$color: color,
|
|
@@ -2721,18 +2794,18 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2721
2794
|
ref: ref
|
|
2722
2795
|
}), variant === BadgeVariant.standard ? children : null);
|
|
2723
2796
|
});
|
|
2724
|
-
Badge.className = CLASSNAME$
|
|
2725
|
-
Badge.defaultProps = DEFAULT_PROPS$
|
|
2726
|
-
Badge.displayName = COMPONENT_NAME$
|
|
2797
|
+
Badge.className = CLASSNAME$F;
|
|
2798
|
+
Badge.defaultProps = DEFAULT_PROPS$F;
|
|
2799
|
+
Badge.displayName = COMPONENT_NAME$F;
|
|
2727
2800
|
|
|
2728
2801
|
// Material Design Icons v7.2.96
|
|
2729
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";
|
|
2730
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";
|
|
2731
2804
|
|
|
2732
|
-
const _excluded$
|
|
2733
|
-
const COMPONENT_NAME$
|
|
2734
|
-
const CLASSNAME$
|
|
2735
|
-
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 = {};
|
|
2736
2809
|
|
|
2737
2810
|
/**
|
|
2738
2811
|
* The SideNavigationMenuItem component.
|
|
@@ -2756,7 +2829,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2756
2829
|
onKeyDown,
|
|
2757
2830
|
tabIndex
|
|
2758
2831
|
} = props,
|
|
2759
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2832
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
2760
2833
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
2761
2834
|
const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
|
|
2762
2835
|
const sideNavigationMenuContext = useContext(SideNavigationMenuContext);
|
|
@@ -2814,9 +2887,9 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2814
2887
|
color: "error"
|
|
2815
2888
|
}, badgeProps), badge) : null));
|
|
2816
2889
|
});
|
|
2817
|
-
SideNavigationMenuItem.className = CLASSNAME$
|
|
2818
|
-
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$
|
|
2819
|
-
SideNavigationMenuItem.displayName = COMPONENT_NAME$
|
|
2890
|
+
SideNavigationMenuItem.className = CLASSNAME$E;
|
|
2891
|
+
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$E;
|
|
2892
|
+
SideNavigationMenuItem.displayName = COMPONENT_NAME$E;
|
|
2820
2893
|
|
|
2821
2894
|
/**
|
|
2822
2895
|
* Component style.
|
|
@@ -2861,7 +2934,7 @@ const StyledSideNavigationMenu = styled.div`
|
|
|
2861
2934
|
line-height: var(--redsift-typography-body-line-height);
|
|
2862
2935
|
margin-left: -4px;
|
|
2863
2936
|
transition: padding 300ms ease-out;
|
|
2864
|
-
padding:
|
|
2937
|
+
padding: 0 16px 0 ${$variant === SideNavigationMenuBarVariant.shrinked ? '16px' : '24px'};
|
|
2865
2938
|
text-decoration: none;
|
|
2866
2939
|
text-transform: uppercase;
|
|
2867
2940
|
width: calc(100% + ${$variant === SideNavigationMenuBarVariant.shrinked ? '0px' : '4px'});
|
|
@@ -3035,10 +3108,10 @@ const StyledAppContainer = styled.div`
|
|
|
3035
3108
|
box-sizing: content-box;
|
|
3036
3109
|
`;
|
|
3037
3110
|
|
|
3038
|
-
const _excluded$
|
|
3039
|
-
const COMPONENT_NAME$
|
|
3040
|
-
const CLASSNAME$
|
|
3041
|
-
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 = {};
|
|
3042
3115
|
|
|
3043
3116
|
/**
|
|
3044
3117
|
* The AppContainer component.
|
|
@@ -3050,7 +3123,7 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3050
3123
|
locale,
|
|
3051
3124
|
product
|
|
3052
3125
|
} = props,
|
|
3053
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3126
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
3054
3127
|
const [sidePanelVariant, setSidePanelVariant] = useState(AppSidePanelVariant.standard);
|
|
3055
3128
|
const [breadcrumbs, setBreadcrumbs] = useState();
|
|
3056
3129
|
const state = {
|
|
@@ -3079,14 +3152,14 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3079
3152
|
locale: locale
|
|
3080
3153
|
}, children)));
|
|
3081
3154
|
});
|
|
3082
|
-
AppContainer.className = CLASSNAME$
|
|
3083
|
-
AppContainer.defaultProps = DEFAULT_PROPS$
|
|
3084
|
-
AppContainer.displayName = COMPONENT_NAME$
|
|
3155
|
+
AppContainer.className = CLASSNAME$D;
|
|
3156
|
+
AppContainer.defaultProps = DEFAULT_PROPS$D;
|
|
3157
|
+
AppContainer.displayName = COMPONENT_NAME$D;
|
|
3085
3158
|
|
|
3086
|
-
const _excluded$
|
|
3087
|
-
const COMPONENT_NAME$
|
|
3088
|
-
const CLASSNAME$
|
|
3089
|
-
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 = {};
|
|
3090
3163
|
|
|
3091
3164
|
/**
|
|
3092
3165
|
* The SideNavigationMenu component.
|
|
@@ -3109,7 +3182,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3109
3182
|
menuRef = useRef(),
|
|
3110
3183
|
tabIndex
|
|
3111
3184
|
} = props,
|
|
3112
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3185
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
3113
3186
|
const [_id] = useId$1();
|
|
3114
3187
|
const id = propsId !== null && propsId !== void 0 ? propsId : _id;
|
|
3115
3188
|
warnIfNoAccessibleLabelFound(props);
|
|
@@ -3415,9 +3488,9 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3415
3488
|
role: "menu"
|
|
3416
3489
|
}, menuItemListEventHandler), renderedMenuItems)))));
|
|
3417
3490
|
});
|
|
3418
|
-
SideNavigationMenu.className = CLASSNAME$
|
|
3419
|
-
SideNavigationMenu.defaultProps = DEFAULT_PROPS$
|
|
3420
|
-
SideNavigationMenu.displayName = COMPONENT_NAME$
|
|
3491
|
+
SideNavigationMenu.className = CLASSNAME$C;
|
|
3492
|
+
SideNavigationMenu.defaultProps = DEFAULT_PROPS$C;
|
|
3493
|
+
SideNavigationMenu.displayName = COMPONENT_NAME$C;
|
|
3421
3494
|
|
|
3422
3495
|
/**
|
|
3423
3496
|
* Component style.
|
|
@@ -3483,10 +3556,10 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
3483
3556
|
}
|
|
3484
3557
|
`;
|
|
3485
3558
|
|
|
3486
|
-
const _excluded$
|
|
3487
|
-
const COMPONENT_NAME$
|
|
3488
|
-
const CLASSNAME$
|
|
3489
|
-
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 = {
|
|
3490
3563
|
variant: SideNavigationMenuBarVariant.standard
|
|
3491
3564
|
};
|
|
3492
3565
|
|
|
@@ -3517,7 +3590,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3517
3590
|
menubarRef = useRef(),
|
|
3518
3591
|
variant: propsVariant
|
|
3519
3592
|
} = props,
|
|
3520
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3593
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
3521
3594
|
warnIfNoAccessibleLabelFound(props);
|
|
3522
3595
|
const appContainerState = useContext(AppContainerContext);
|
|
3523
3596
|
const {
|
|
@@ -3675,12 +3748,12 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3675
3748
|
role: "menubar"
|
|
3676
3749
|
}), navItems)));
|
|
3677
3750
|
});
|
|
3678
|
-
SideNavigationMenuBar.className = CLASSNAME$
|
|
3679
|
-
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$
|
|
3680
|
-
SideNavigationMenuBar.displayName = COMPONENT_NAME$
|
|
3751
|
+
SideNavigationMenuBar.className = CLASSNAME$B;
|
|
3752
|
+
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$B;
|
|
3753
|
+
SideNavigationMenuBar.displayName = COMPONENT_NAME$B;
|
|
3681
3754
|
|
|
3682
|
-
const _excluded$
|
|
3683
|
-
_excluded2 = ["title", "children", "ref"],
|
|
3755
|
+
const _excluded$A = ["title", "href", "ref"],
|
|
3756
|
+
_excluded2$1 = ["title", "children", "ref"],
|
|
3684
3757
|
_excluded3 = ["title", "href", "ref"];
|
|
3685
3758
|
const isMenu = item => {
|
|
3686
3759
|
return item.children !== undefined;
|
|
@@ -3698,7 +3771,7 @@ const useSideNavigationMenuBar = _ref => {
|
|
|
3698
3771
|
href,
|
|
3699
3772
|
ref
|
|
3700
3773
|
} = item,
|
|
3701
|
-
rest = _objectWithoutProperties(item, _excluded$
|
|
3774
|
+
rest = _objectWithoutProperties(item, _excluded$A);
|
|
3702
3775
|
menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenuItem, _extends$1({
|
|
3703
3776
|
key: title,
|
|
3704
3777
|
isCurrent: isActive ? isActive(href) : undefined
|
|
@@ -3712,7 +3785,7 @@ const useSideNavigationMenuBar = _ref => {
|
|
|
3712
3785
|
children,
|
|
3713
3786
|
ref
|
|
3714
3787
|
} = item,
|
|
3715
|
-
rest = _objectWithoutProperties(item, _excluded2);
|
|
3788
|
+
rest = _objectWithoutProperties(item, _excluded2$1);
|
|
3716
3789
|
menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenu, _extends$1({
|
|
3717
3790
|
key: title,
|
|
3718
3791
|
"aria-label": title,
|
|
@@ -3802,10 +3875,10 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
3802
3875
|
}
|
|
3803
3876
|
`;
|
|
3804
3877
|
|
|
3805
|
-
const _excluded$
|
|
3806
|
-
const COMPONENT_NAME$
|
|
3807
|
-
const CLASSNAME$
|
|
3808
|
-
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 = {};
|
|
3809
3882
|
|
|
3810
3883
|
/**
|
|
3811
3884
|
* The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3819,7 +3892,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3819
3892
|
isCurrent,
|
|
3820
3893
|
isDisabled
|
|
3821
3894
|
} = props,
|
|
3822
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3895
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$z);
|
|
3823
3896
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
3824
3897
|
return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
|
|
3825
3898
|
as: as || 'a',
|
|
@@ -3835,9 +3908,9 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3835
3908
|
ref: ref
|
|
3836
3909
|
}), children);
|
|
3837
3910
|
});
|
|
3838
|
-
BreadcrumbItem.className = CLASSNAME$
|
|
3839
|
-
BreadcrumbItem.defaultProps = DEFAULT_PROPS$
|
|
3840
|
-
BreadcrumbItem.displayName = COMPONENT_NAME$
|
|
3911
|
+
BreadcrumbItem.className = CLASSNAME$A;
|
|
3912
|
+
BreadcrumbItem.defaultProps = DEFAULT_PROPS$A;
|
|
3913
|
+
BreadcrumbItem.displayName = COMPONENT_NAME$A;
|
|
3841
3914
|
|
|
3842
3915
|
/**
|
|
3843
3916
|
* Component style.
|
|
@@ -3871,10 +3944,10 @@ const StyledBreadcrumbs = styled.nav`
|
|
|
3871
3944
|
}
|
|
3872
3945
|
`;
|
|
3873
3946
|
|
|
3874
|
-
const _excluded$
|
|
3875
|
-
const COMPONENT_NAME$
|
|
3876
|
-
const CLASSNAME$
|
|
3877
|
-
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 = {};
|
|
3878
3951
|
|
|
3879
3952
|
/**
|
|
3880
3953
|
* The Breadcrumbs components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3885,7 +3958,7 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3885
3958
|
className,
|
|
3886
3959
|
isDisabled
|
|
3887
3960
|
} = props,
|
|
3888
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3961
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$y);
|
|
3889
3962
|
warnIfNoAccessibleLabelFound(props);
|
|
3890
3963
|
const childArray = filterComponents([Breadcrumbs.Item])(children);
|
|
3891
3964
|
const breadcrumbItems = childArray.map((child, index) => {
|
|
@@ -3908,23 +3981,23 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3908
3981
|
ref: ref
|
|
3909
3982
|
}), /*#__PURE__*/React__default.createElement("ol", null, breadcrumbItems));
|
|
3910
3983
|
});
|
|
3911
|
-
BaseBreadcrumbs.className = CLASSNAME$
|
|
3912
|
-
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$
|
|
3913
|
-
BaseBreadcrumbs.displayName = COMPONENT_NAME$
|
|
3984
|
+
BaseBreadcrumbs.className = CLASSNAME$z;
|
|
3985
|
+
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$z;
|
|
3986
|
+
BaseBreadcrumbs.displayName = COMPONENT_NAME$z;
|
|
3914
3987
|
const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
|
|
3915
3988
|
Item: BreadcrumbItem
|
|
3916
3989
|
});
|
|
3917
3990
|
|
|
3918
|
-
const _excluded$
|
|
3919
|
-
const COMPONENT_NAME$
|
|
3920
|
-
const CLASSNAME$
|
|
3921
|
-
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 = {};
|
|
3922
3995
|
|
|
3923
3996
|
/**
|
|
3924
3997
|
* The AppBar component.
|
|
3925
3998
|
*/
|
|
3926
3999
|
const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3927
|
-
var _breadcrumbs
|
|
4000
|
+
var _breadcrumbs$, _appContainerState$pr;
|
|
3928
4001
|
const {
|
|
3929
4002
|
breadcrumbs,
|
|
3930
4003
|
children,
|
|
@@ -3934,13 +4007,20 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3934
4007
|
fallbackTitle,
|
|
3935
4008
|
title: propsTitle
|
|
3936
4009
|
} = props,
|
|
3937
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4010
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$x);
|
|
4011
|
+
const [scroll, setScroll] = useState(false);
|
|
4012
|
+
useEffect(() => {
|
|
4013
|
+
window.addEventListener('scroll', () => {
|
|
4014
|
+
setScroll(window.scrollY > 8);
|
|
4015
|
+
});
|
|
4016
|
+
}, []);
|
|
3938
4017
|
const {
|
|
3939
4018
|
isLoaded
|
|
3940
4019
|
} = useIsLoaded();
|
|
3941
4020
|
const appContainerState = useContext(AppContainerContext);
|
|
3942
4021
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$4);
|
|
3943
4022
|
return /*#__PURE__*/React__default.createElement(StyledAppBar, _extends$1({}, forwardedProps, {
|
|
4023
|
+
$hasBorder: scroll,
|
|
3944
4024
|
$isLoaded: isLoaded,
|
|
3945
4025
|
$isSidePanelCollapsed: appContainerState ? appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked : true,
|
|
3946
4026
|
className: classNames(AppBar.className, className),
|
|
@@ -3968,20 +4048,20 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3968
4048
|
}, appContainerState && appContainerState.sidePanelVariant === AppSidePanelVariant.shrinked ? /*#__PURE__*/React__default.createElement(Breadcrumbs.Item, {
|
|
3969
4049
|
href: "/",
|
|
3970
4050
|
as: ((_breadcrumbs$ = breadcrumbs[0]) === null || _breadcrumbs$ === void 0 ? void 0 : _breadcrumbs$.as) || 'a'
|
|
3971
|
-
}, 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({
|
|
3972
4052
|
key: index
|
|
3973
4053
|
}, breadcrumbItem, {
|
|
3974
4054
|
isDisabled: breadcrumbItem.isDisabled || breadcrumbItem.href === undefined,
|
|
3975
4055
|
as: index === breadcrumbs.length - 1 ? 'h1' : breadcrumbItem.href === undefined ? 'span' : breadcrumbItem.as || 'a'
|
|
3976
4056
|
})))) : fallbackTitle ? /*#__PURE__*/React__default.createElement(Heading, {
|
|
3977
4057
|
as: "h1"
|
|
3978
|
-
}, fallbackTitle) : null), /*#__PURE__*/React__default.createElement("div", {
|
|
4058
|
+
}, fallbackTitle) : null), children ? /*#__PURE__*/React__default.createElement("div", {
|
|
3979
4059
|
className: `${AppBar.className}__right`
|
|
3980
|
-
}, children));
|
|
4060
|
+
}, children) : null);
|
|
3981
4061
|
});
|
|
3982
|
-
AppBar.className = CLASSNAME$
|
|
3983
|
-
AppBar.defaultProps = DEFAULT_PROPS$
|
|
3984
|
-
AppBar.displayName = COMPONENT_NAME$
|
|
4062
|
+
AppBar.className = CLASSNAME$y;
|
|
4063
|
+
AppBar.defaultProps = DEFAULT_PROPS$y;
|
|
4064
|
+
AppBar.displayName = COMPONENT_NAME$y;
|
|
3985
4065
|
|
|
3986
4066
|
/**
|
|
3987
4067
|
* Component style.
|
|
@@ -4020,10 +4100,10 @@ const StyledAppContent = styled.main`
|
|
|
4020
4100
|
}}
|
|
4021
4101
|
`;
|
|
4022
4102
|
|
|
4023
|
-
const _excluded$
|
|
4024
|
-
const COMPONENT_NAME$
|
|
4025
|
-
const CLASSNAME$
|
|
4026
|
-
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 = {};
|
|
4027
4107
|
|
|
4028
4108
|
/**
|
|
4029
4109
|
* The AppContent component.
|
|
@@ -4033,7 +4113,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4033
4113
|
children,
|
|
4034
4114
|
className
|
|
4035
4115
|
} = props,
|
|
4036
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4116
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
4037
4117
|
const {
|
|
4038
4118
|
isLoaded
|
|
4039
4119
|
} = useIsLoaded();
|
|
@@ -4045,9 +4125,166 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4045
4125
|
ref: ref
|
|
4046
4126
|
}), children);
|
|
4047
4127
|
});
|
|
4048
|
-
AppContent.className = CLASSNAME$
|
|
4049
|
-
AppContent.defaultProps = DEFAULT_PROPS$
|
|
4050
|
-
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;
|
|
4051
4288
|
|
|
4052
4289
|
const _excluded$u = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
|
|
4053
4290
|
const COMPONENT_NAME$v = 'ButtonLink';
|
|
@@ -4235,7 +4472,7 @@ const StyledSkeleton = styled.div`
|
|
|
4235
4472
|
height: fit-content;
|
|
4236
4473
|
width: fit-content;
|
|
4237
4474
|
|
|
4238
|
-
|
|
4475
|
+
* {
|
|
4239
4476
|
visibility: hidden;
|
|
4240
4477
|
}
|
|
4241
4478
|
|
|
@@ -4490,10 +4727,10 @@ const StyledCardBody = styled.div`
|
|
|
4490
4727
|
${baseContainer}
|
|
4491
4728
|
|
|
4492
4729
|
color: var(--redsift-color-neutral-darkgrey);
|
|
4493
|
-
font-family: var(--redsift-typography-
|
|
4494
|
-
font-size: var(--redsift-typography-
|
|
4495
|
-
font-weight: var(--redsift-typography-
|
|
4496
|
-
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);
|
|
4497
4734
|
padding: 16px 0px;
|
|
4498
4735
|
`;
|
|
4499
4736
|
|
|
@@ -4824,7 +5061,7 @@ const StyledCheckbox = styled.label`
|
|
|
4824
5061
|
$isInvalid
|
|
4825
5062
|
} = _ref;
|
|
4826
5063
|
return $isDisabled ? css`
|
|
4827
|
-
color: var(--redsift-color-neutral-
|
|
5064
|
+
color: var(--redsift-color-neutral-lightgrey);
|
|
4828
5065
|
` : $isInvalid ? css`
|
|
4829
5066
|
color: var(--redsift-color-notifications-error-primary);
|
|
4830
5067
|
` : css`
|
|
@@ -4859,7 +5096,7 @@ const StyledCheckbox = styled.label`
|
|
|
4859
5096
|
} = _ref2;
|
|
4860
5097
|
return css`
|
|
4861
5098
|
${$isDisabled ? css`
|
|
4862
|
-
color: var(--redsift-color-neutral-
|
|
5099
|
+
color: var(--redsift-color-neutral-lightgrey);
|
|
4863
5100
|
` : $isInvalid ? css`
|
|
4864
5101
|
color: var(--redsift-color-notifications-error-primary);
|
|
4865
5102
|
` : css`
|
|
@@ -5352,7 +5589,7 @@ const StyledDetailedCardSection = styled.div`
|
|
|
5352
5589
|
|
|
5353
5590
|
.redsift-detailed-card-section-header__title {
|
|
5354
5591
|
font-size: 18px;
|
|
5355
|
-
font-weight:
|
|
5592
|
+
font-weight: 500;
|
|
5356
5593
|
lineheight: 22px;
|
|
5357
5594
|
padding: 6px 0px;
|
|
5358
5595
|
}
|
|
@@ -5544,6 +5781,18 @@ DetailedCardHeader.className = CLASSNAME$i;
|
|
|
5544
5781
|
DetailedCardHeader.defaultProps = DEFAULT_PROPS$i;
|
|
5545
5782
|
DetailedCardHeader.displayName = COMPONENT_NAME$i;
|
|
5546
5783
|
|
|
5784
|
+
/**
|
|
5785
|
+
* Component size.
|
|
5786
|
+
*/
|
|
5787
|
+
const PillSize = {
|
|
5788
|
+
small: 'small',
|
|
5789
|
+
large: 'large'
|
|
5790
|
+
};
|
|
5791
|
+
|
|
5792
|
+
/**
|
|
5793
|
+
* Component props.
|
|
5794
|
+
*/
|
|
5795
|
+
|
|
5547
5796
|
/**
|
|
5548
5797
|
* Component style.
|
|
5549
5798
|
*/
|
|
@@ -5553,7 +5802,8 @@ const StyledPill = styled.div`
|
|
|
5553
5802
|
gap: 4px;
|
|
5554
5803
|
width: fit-content;
|
|
5555
5804
|
${baseStyling}
|
|
5556
|
-
|
|
5805
|
+
|
|
5806
|
+
border-radius: 2px;
|
|
5557
5807
|
padding: 2px 8px;
|
|
5558
5808
|
text-align: center;
|
|
5559
5809
|
|
|
@@ -5580,9 +5830,7 @@ const StyledPill = styled.div`
|
|
|
5580
5830
|
|
|
5581
5831
|
&,
|
|
5582
5832
|
.redsift-icon {
|
|
5583
|
-
color: var(
|
|
5584
|
-
--redsift-color-neutral-${['black', 'warning-dark', 'success-dark'].includes($color) ? 'white' : 'black'}
|
|
5585
|
-
);
|
|
5833
|
+
color: var(--redsift-color-neutral-${['black', 'no-data', 'error-dark'].includes($color) ? 'white' : 'black'});
|
|
5586
5834
|
}
|
|
5587
5835
|
`;
|
|
5588
5836
|
}}}
|
|
@@ -5590,9 +5838,19 @@ const StyledPill = styled.div`
|
|
|
5590
5838
|
&,
|
|
5591
5839
|
.redsift-icon {
|
|
5592
5840
|
font-family: var(--redsift-typography-pill-font-family);
|
|
5593
|
-
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
|
+
}}};
|
|
5594
5847
|
font-weight: var(--redsift-typography-pill-font-weight);
|
|
5595
|
-
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
|
+
}}};
|
|
5596
5854
|
}
|
|
5597
5855
|
|
|
5598
5856
|
.redsift-icon {
|
|
@@ -5606,12 +5864,13 @@ const StyledPill = styled.div`
|
|
|
5606
5864
|
}
|
|
5607
5865
|
`;
|
|
5608
5866
|
|
|
5609
|
-
const _excluded$g = ["autoBreak", "children", "className", "color"];
|
|
5867
|
+
const _excluded$g = ["autoBreak", "children", "className", "color", "size"];
|
|
5610
5868
|
const COMPONENT_NAME$h = 'Pill';
|
|
5611
5869
|
const CLASSNAME$h = 'redsift-pill';
|
|
5612
5870
|
const DEFAULT_PROPS$h = {
|
|
5613
5871
|
color: PresentationColorPalette.pink,
|
|
5614
|
-
height: 'fit-content'
|
|
5872
|
+
height: 'fit-content',
|
|
5873
|
+
size: PillSize.large
|
|
5615
5874
|
};
|
|
5616
5875
|
|
|
5617
5876
|
/**
|
|
@@ -5622,12 +5881,14 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5622
5881
|
autoBreak,
|
|
5623
5882
|
children,
|
|
5624
5883
|
className,
|
|
5625
|
-
color
|
|
5884
|
+
color,
|
|
5885
|
+
size
|
|
5626
5886
|
} = props,
|
|
5627
5887
|
forwardedProps = _objectWithoutProperties(props, _excluded$g);
|
|
5628
5888
|
return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
|
|
5629
5889
|
$autoBreak: autoBreak,
|
|
5630
5890
|
$color: color,
|
|
5891
|
+
$size: size,
|
|
5631
5892
|
className: classNames(Pill.className, className),
|
|
5632
5893
|
ref: ref
|
|
5633
5894
|
}), children);
|
|
@@ -9579,6 +9840,7 @@ let EventKey = /*#__PURE__*/function (EventKey) {
|
|
|
9579
9840
|
EventKey["ArrowDown"] = "ArrowDown";
|
|
9580
9841
|
EventKey["Home"] = "Home";
|
|
9581
9842
|
EventKey["End"] = "End";
|
|
9843
|
+
EventKey["Enter"] = "Enter";
|
|
9582
9844
|
return EventKey;
|
|
9583
9845
|
}({});
|
|
9584
9846
|
let Navigation = /*#__PURE__*/function (Navigation) {
|
|
@@ -9620,7 +9882,8 @@ const FOCUS_WITHING_GROUP_INITIAL_STATE = {
|
|
|
9620
9882
|
focusOnInit: true,
|
|
9621
9883
|
loopAround: false,
|
|
9622
9884
|
rowStartMap: null,
|
|
9623
|
-
focusType: 'roving-tabindex'
|
|
9885
|
+
focusType: 'roving-tabindex',
|
|
9886
|
+
listRole: 'listbox'
|
|
9624
9887
|
};
|
|
9625
9888
|
const FocusWithinGroupContext = /*#__PURE__*/React__default.createContext({
|
|
9626
9889
|
state: FOCUS_WITHING_GROUP_INITIAL_STATE,
|
|
@@ -9748,9 +10011,9 @@ const FocusWithinGroupReducer = (state, action) => {
|
|
|
9748
10011
|
const currentTabStop = state.tabStops[index];
|
|
9749
10012
|
return currentTabStop.isDisabled ? _objectSpread2(_objectSpread2({}, state), {}, {
|
|
9750
10013
|
delayedAction: undefined
|
|
9751
|
-
}) : selectTabStop(_objectSpread2(_objectSpread2({}, state), {}, {
|
|
10014
|
+
}, action.payload) : selectTabStop(_objectSpread2(_objectSpread2({}, state), {}, {
|
|
9752
10015
|
delayedAction: undefined
|
|
9753
|
-
}), currentTabStop, undefined, state.focusOnClick);
|
|
10016
|
+
}, action.payload), currentTabStop, undefined, state.focusOnClick);
|
|
9754
10017
|
}
|
|
9755
10018
|
case FocusWithinGroupActionType.BLUR_ON_LIST:
|
|
9756
10019
|
{
|
|
@@ -9783,8 +10046,7 @@ const FocusWithinGroupReducer = (state, action) => {
|
|
|
9783
10046
|
return _objectSpread2(_objectSpread2({}, state), action.payload);
|
|
9784
10047
|
case FocusWithinGroupActionType.FILTER_LIST:
|
|
9785
10048
|
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
9786
|
-
selectedId: null
|
|
9787
|
-
activedescendant: ['', '']
|
|
10049
|
+
selectedId: null
|
|
9788
10050
|
}, action.payload);
|
|
9789
10051
|
case FocusWithinGroupActionType.DELAY_ACTION:
|
|
9790
10052
|
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
@@ -10082,16 +10344,20 @@ const FocusWithinGroup = props => {
|
|
|
10082
10344
|
focusOnClick,
|
|
10083
10345
|
loopAround,
|
|
10084
10346
|
focusType,
|
|
10347
|
+
listRole,
|
|
10085
10348
|
focusOnInit,
|
|
10086
|
-
activedescendant
|
|
10349
|
+
activedescendant,
|
|
10350
|
+
maxOptionsLength
|
|
10087
10351
|
} = props;
|
|
10088
10352
|
const [state, dispatch] = useReducer(FocusWithinGroupReducer, _objectSpread2(_objectSpread2({}, FOCUS_WITHING_GROUP_INITIAL_STATE), {}, {
|
|
10089
10353
|
direction,
|
|
10090
10354
|
focusOnClick,
|
|
10091
10355
|
loopAround,
|
|
10092
10356
|
focusType,
|
|
10357
|
+
listRole,
|
|
10093
10358
|
focusOnInit,
|
|
10094
|
-
activedescendant
|
|
10359
|
+
activedescendant,
|
|
10360
|
+
maxOptionsLength
|
|
10095
10361
|
}));
|
|
10096
10362
|
|
|
10097
10363
|
// Update the options whenever they change:
|
|
@@ -10103,11 +10369,13 @@ const FocusWithinGroup = props => {
|
|
|
10103
10369
|
focusOnClick: focusOnClick !== null && focusOnClick !== void 0 ? focusOnClick : FOCUS_WITHING_GROUP_INITIAL_STATE.focusOnClick,
|
|
10104
10370
|
loopAround: loopAround !== null && loopAround !== void 0 ? loopAround : FOCUS_WITHING_GROUP_INITIAL_STATE.loopAround,
|
|
10105
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,
|
|
10106
10373
|
focusOnInit: focusOnInit !== null && focusOnInit !== void 0 ? focusOnInit : FOCUS_WITHING_GROUP_INITIAL_STATE.focusOnInit,
|
|
10107
|
-
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
|
|
10108
10376
|
}
|
|
10109
10377
|
});
|
|
10110
|
-
}, [direction, focusOnClick, focusOnInit, loopAround, focusType, activedescendant]);
|
|
10378
|
+
}, [direction, focusOnClick, focusOnInit, loopAround, focusType, listRole, activedescendant, maxOptionsLength]);
|
|
10111
10379
|
const context = useMemo(() => ({
|
|
10112
10380
|
state,
|
|
10113
10381
|
dispatch
|
|
@@ -10307,7 +10575,6 @@ const StyledGrid = styled.div`
|
|
|
10307
10575
|
return inline ? 'inline-grid' : 'grid';
|
|
10308
10576
|
}};
|
|
10309
10577
|
flex: 1;
|
|
10310
|
-
max-width: fit-content;
|
|
10311
10578
|
|
|
10312
10579
|
${baseStyling}
|
|
10313
10580
|
${baseInternalSpacing}
|
|
@@ -10319,7 +10586,7 @@ const StyledGrid = styled.div`
|
|
|
10319
10586
|
} = _ref2;
|
|
10320
10587
|
return $divider ? css`
|
|
10321
10588
|
overflow: hidden;
|
|
10322
|
-
.redsift-grid-item {
|
|
10589
|
+
.redsift-grid-item:not(:empty) {
|
|
10323
10590
|
position: relative;
|
|
10324
10591
|
|
|
10325
10592
|
::before {
|
|
@@ -10328,17 +10595,17 @@ const StyledGrid = styled.div`
|
|
|
10328
10595
|
background-color: var(--redsift-color-neutral-lightgrey);
|
|
10329
10596
|
inline-size: 1px;
|
|
10330
10597
|
block-size: 100%;
|
|
10331
|
-
inset-inline-start: calc(${$divider.colGap / 2}px * -1);
|
|
10598
|
+
inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);
|
|
10332
10599
|
}
|
|
10333
10600
|
|
|
10334
10601
|
::after {
|
|
10335
10602
|
content: '';
|
|
10336
10603
|
position: absolute;
|
|
10337
10604
|
background-color: var(--redsift-color-neutral-lightgrey);
|
|
10338
|
-
inline-size:
|
|
10605
|
+
inline-size: 200vw;
|
|
10339
10606
|
block-size: 1px;
|
|
10340
|
-
inset-inline-start:
|
|
10341
|
-
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);
|
|
10342
10609
|
z-index: 0;
|
|
10343
10610
|
}
|
|
10344
10611
|
}
|
|
@@ -10418,7 +10685,7 @@ const StyledItem = styled.div`
|
|
|
10418
10685
|
width: 100%;
|
|
10419
10686
|
padding: 8px 16px;
|
|
10420
10687
|
|
|
10421
|
-
${
|
|
10688
|
+
${baseContainer}
|
|
10422
10689
|
|
|
10423
10690
|
align-items: center;
|
|
10424
10691
|
background: none;
|
|
@@ -10489,6 +10756,7 @@ const ListboxContext = /*#__PURE__*/React__default.createContext({
|
|
|
10489
10756
|
let ListboxActionType = /*#__PURE__*/function (ListboxActionType) {
|
|
10490
10757
|
ListboxActionType["TOGGLE"] = "TOGGLE";
|
|
10491
10758
|
ListboxActionType["SET"] = "SET";
|
|
10759
|
+
ListboxActionType["UPDATE_OPTIONS"] = "UPDATE_OPTIONS";
|
|
10492
10760
|
return ListboxActionType;
|
|
10493
10761
|
}({});
|
|
10494
10762
|
/**
|
|
@@ -10583,11 +10851,55 @@ function useListboxItem(props) {
|
|
|
10583
10851
|
};
|
|
10584
10852
|
}
|
|
10585
10853
|
|
|
10586
|
-
|
|
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"];
|
|
10587
10899
|
const COMPONENT_NAME$9 = 'Item';
|
|
10588
10900
|
const CLASSNAME$9 = 'redsift-item';
|
|
10589
10901
|
const DEFAULT_PROPS$9 = {};
|
|
10590
|
-
const
|
|
10902
|
+
const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10591
10903
|
const {
|
|
10592
10904
|
children,
|
|
10593
10905
|
className,
|
|
@@ -10634,6 +10946,49 @@ const RenderedItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10634
10946
|
tabIndex: tabIndex
|
|
10635
10947
|
}), children !== null && children !== void 0 ? children : value);
|
|
10636
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
|
+
});
|
|
10637
10992
|
|
|
10638
10993
|
/**
|
|
10639
10994
|
* The Item component.
|
|
@@ -10643,8 +10998,12 @@ const Item = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10643
10998
|
value
|
|
10644
10999
|
} = props;
|
|
10645
11000
|
const focusContext = useContext(FocusWithinGroupContext);
|
|
11001
|
+
const isListbox = focusContext.state.listRole === 'listbox';
|
|
10646
11002
|
if (!focusContext.state.filter) {
|
|
10647
|
-
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, {
|
|
10648
11007
|
ref: ref
|
|
10649
11008
|
}));
|
|
10650
11009
|
}
|
|
@@ -10654,15 +11013,24 @@ const Item = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10654
11013
|
caseSensitive
|
|
10655
11014
|
} = focusContext.state.filter;
|
|
10656
11015
|
if (!filterValue) {
|
|
10657
|
-
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, {
|
|
10658
11020
|
ref: ref
|
|
10659
11021
|
}));
|
|
10660
11022
|
} else if (caseSensitive && (type === 'startsWith' && value.startsWith(filterValue) || type === 'contains' && value.includes(filterValue) || type === 'endsWith' && value.endsWith(filterValue))) {
|
|
10661
|
-
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, {
|
|
10662
11027
|
ref: ref
|
|
10663
11028
|
}));
|
|
10664
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()))) {
|
|
10665
|
-
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, {
|
|
10666
11034
|
ref: ref
|
|
10667
11035
|
}));
|
|
10668
11036
|
}
|
|
@@ -10944,6 +11312,10 @@ const ListboxReducer = (state, action) => {
|
|
|
10944
11312
|
activedescendant: action.payload.activedescendant
|
|
10945
11313
|
});
|
|
10946
11314
|
}
|
|
11315
|
+
case ListboxActionType.UPDATE_OPTIONS:
|
|
11316
|
+
{
|
|
11317
|
+
return _objectSpread2(_objectSpread2({}, state), action.payload);
|
|
11318
|
+
}
|
|
10947
11319
|
default:
|
|
10948
11320
|
return state;
|
|
10949
11321
|
}
|
|
@@ -12055,6 +12427,10 @@ const StyledTextField = styled.div`
|
|
|
12055
12427
|
$variant
|
|
12056
12428
|
} = _ref;
|
|
12057
12429
|
return css`
|
|
12430
|
+
${$isDisabled ? css`
|
|
12431
|
+
pointer-events: none;
|
|
12432
|
+
` : ''}
|
|
12433
|
+
|
|
12058
12434
|
.redsift-text-field__label {
|
|
12059
12435
|
font-family: var(--redsift-typography-input-text-font-family);
|
|
12060
12436
|
font-size: var(--redsift-typography-input-text-font-size);
|
|
@@ -12076,11 +12452,8 @@ const StyledTextField = styled.div`
|
|
|
12076
12452
|
max-width: calc(100% - 24px);
|
|
12077
12453
|
transform: translate(${$variant === TextFieldVariant.underline ? '0px' : '14px'}, 16px) scale(1);
|
|
12078
12454
|
` : css`
|
|
12079
|
-
font-family: var(--redsift-typography-body2-font-family);
|
|
12080
|
-
font-size: var(--redsift-typography-body2-font-size);
|
|
12081
|
-
font-weight: var(--redsift-typography-body2-font-weight);
|
|
12082
12455
|
max-width: calc(133% - 32px);
|
|
12083
|
-
transform: translate(${$variant === TextFieldVariant.underline ? '0px' : '14px'},
|
|
12456
|
+
transform: translate(${$variant === TextFieldVariant.underline ? '0px' : '14px'}, 1px) scale(0.733);
|
|
12084
12457
|
`}
|
|
12085
12458
|
|
|
12086
12459
|
${$isDisabled ? css`
|
|
@@ -12139,7 +12512,7 @@ const StyledTextField = styled.div`
|
|
|
12139
12512
|
.redsift-text-field-input-wrapper__fieldset {
|
|
12140
12513
|
border-style: solid;
|
|
12141
12514
|
bottom: 0;
|
|
12142
|
-
left:
|
|
12515
|
+
left: 1px;
|
|
12143
12516
|
margin: 0;
|
|
12144
12517
|
min-width: 0%;
|
|
12145
12518
|
overflow: hidden;
|
|
@@ -12171,7 +12544,7 @@ const StyledTextField = styled.div`
|
|
|
12171
12544
|
.redsift-text-field-input-wrapper-fieldset__legend {
|
|
12172
12545
|
display: block;
|
|
12173
12546
|
float: unset;
|
|
12174
|
-
font-size:
|
|
12547
|
+
font-size: 11px;
|
|
12175
12548
|
height: 11px;
|
|
12176
12549
|
overflow: hidden;
|
|
12177
12550
|
padding: 0;
|
|
@@ -12274,10 +12647,8 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12274
12647
|
} = useFocusWithin({
|
|
12275
12648
|
onFocusWithinChange: isFocusWithin => setFocusWithin(isFocusWithin)
|
|
12276
12649
|
});
|
|
12277
|
-
const [value, setValue] = useState(
|
|
12278
|
-
|
|
12279
|
-
setValue(propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue);
|
|
12280
|
-
}, [propsValue, defaultValue]);
|
|
12650
|
+
const [value, setValue] = useState(defaultValue);
|
|
12651
|
+
const isControlled = propsValue !== null && propsValue !== undefined;
|
|
12281
12652
|
warnIfNoAccessibleLabelFound(props, [label]);
|
|
12282
12653
|
const handleChange = useCallback(event => {
|
|
12283
12654
|
if (isDisabled || isReadOnly) {
|
|
@@ -12305,12 +12676,12 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12305
12676
|
setValue('');
|
|
12306
12677
|
}, [onChange]);
|
|
12307
12678
|
return /*#__PURE__*/React__default.createElement(StyledTextField, _extends$1({}, focusWithinProps, forwardedProps, {
|
|
12308
|
-
$hasContent: isFocusWithin || Boolean(value) || Boolean(placeholder),
|
|
12679
|
+
$hasContent: isFocusWithin || Boolean(isControlled ? propsValue : value) || Boolean(placeholder),
|
|
12309
12680
|
$hasLeftIcon: Boolean(leftIcon),
|
|
12310
12681
|
$isColored: isColored,
|
|
12311
12682
|
$isDisabled: isDisabled,
|
|
12312
12683
|
$isFocusVisible: isFocusVisible,
|
|
12313
|
-
$isInvalid: isInvalid || isRequired && !value,
|
|
12684
|
+
$isInvalid: isInvalid || isRequired && !(isControlled ? propsValue : value),
|
|
12314
12685
|
$isRequired: isRequired,
|
|
12315
12686
|
$isFocused: isFocused,
|
|
12316
12687
|
$variant: variant,
|
|
@@ -12320,7 +12691,9 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12320
12691
|
className: `${TextField.className}__label`
|
|
12321
12692
|
}, /*#__PURE__*/React__default.createElement("span", null, label)) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
12322
12693
|
className: `${TextField.className}__input-wrapper`
|
|
12323
|
-
}, leftIcon ? /*#__PURE__*/React__default.createElement(Icon, _extends$1({
|
|
12694
|
+
}, leftIcon ? /*#__PURE__*/React__default.createElement(Icon, _extends$1({
|
|
12695
|
+
color: isDisabled ? 'question' : 'black'
|
|
12696
|
+
}, leftIcon, {
|
|
12324
12697
|
"aria-hidden": "true",
|
|
12325
12698
|
className: "left"
|
|
12326
12699
|
})) : null, /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, {
|
|
@@ -12333,7 +12706,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12333
12706
|
onFocusProps === null || onFocusProps === void 0 ? void 0 : onFocusProps(event);
|
|
12334
12707
|
},
|
|
12335
12708
|
"aria-disabled": isDisabled,
|
|
12336
|
-
"aria-invalid": isInvalid || isRequired && !value,
|
|
12709
|
+
"aria-invalid": isInvalid || isRequired && !(isControlled ? propsValue : value),
|
|
12337
12710
|
"aria-label": ariaLabel,
|
|
12338
12711
|
"aria-labelledby": ariaLabelledby,
|
|
12339
12712
|
"aria-readonly": isReadOnly,
|
|
@@ -12346,31 +12719,32 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12346
12719
|
placeholder: placeholder,
|
|
12347
12720
|
ref: inputRef,
|
|
12348
12721
|
type: type,
|
|
12349
|
-
value: value
|
|
12722
|
+
value: isControlled ? propsValue : value
|
|
12350
12723
|
})), hasClearButton || internal || after ? /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
12351
12724
|
className: `${TextField.className}-input-wrapper__toolbar`,
|
|
12352
12725
|
gap: "8px"
|
|
12353
12726
|
}, hasClearButton ? /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
|
|
12354
12727
|
"aria-label": "Clear",
|
|
12355
12728
|
color: "question",
|
|
12729
|
+
isDisabled: isDisabled,
|
|
12356
12730
|
icon: mdiClose
|
|
12357
12731
|
}, hasClearButton !== true && hasClearButton, {
|
|
12358
12732
|
onClick: handleClear,
|
|
12359
12733
|
className: "right clear"
|
|
12360
|
-
})) : 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", {
|
|
12361
12735
|
style: {
|
|
12362
12736
|
borderLeft: '1px solid var(--redsift-color-neutral-midgrey)'
|
|
12363
12737
|
}
|
|
12364
|
-
}) : 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", {
|
|
12365
12739
|
"aria-hidden": "true",
|
|
12366
12740
|
className: `${TextField.className}-input-wrapper__fieldset`
|
|
12367
12741
|
}, /*#__PURE__*/React__default.createElement("legend", {
|
|
12368
12742
|
className: `${TextField.className}-input-wrapper-fieldset__legend`
|
|
12369
|
-
}, /*#__PURE__*/React__default.createElement("span", null, label)
|
|
12743
|
+
}, label ? /*#__PURE__*/React__default.createElement("span", null, label) : null))));
|
|
12370
12744
|
});
|
|
12371
12745
|
TextField.className = CLASSNAME;
|
|
12372
12746
|
TextField.defaultProps = DEFAULT_PROPS;
|
|
12373
12747
|
TextField.displayName = COMPONENT_NAME;
|
|
12374
12748
|
|
|
12375
|
-
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 };
|
|
12376
12750
|
//# sourceMappingURL=index.js.map
|