@redsift/design-system 7.5.1 → 7.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +1 -1
- package/index.d.ts +224 -7
- package/index.js +1349 -627
- package/index.js.map +1 -1
- package/package.json +4 -5
package/index.js
CHANGED
|
@@ -4,8 +4,8 @@ export { SSRProvider, useIsSSR } from '@react-aria/ssr';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useEffect, forwardRef, useMemo, useContext, useRef, useCallback, useReducer, useLayoutEffect, useId as useId$1 } from 'react';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import { mdiClose, mdiAlert, mdiCheckCircle, mdiInformation, mdiMenu, mdiMenuOpen, mdiChevronDown, mdiChevronRight, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
8
|
-
import styled, { css } from 'styled-components';
|
|
7
|
+
import { mdiClose, mdiAlert, mdiCheckCircle, mdiAlertCircle, mdiInformation, mdiMenu, mdiMenuOpen, mdiChevronDown, mdiChevronRight, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
8
|
+
import styled, { css, keyframes } from 'styled-components';
|
|
9
9
|
import { useButton } from '@react-aria/button';
|
|
10
10
|
import { useFocusRing } from '@react-aria/focus';
|
|
11
11
|
import * as ReactDOM from 'react-dom';
|
|
@@ -675,12 +675,12 @@ const baseLayout = css`
|
|
|
675
675
|
} = _ref;
|
|
676
676
|
return css`
|
|
677
677
|
${flex ? `flex: ${flex};` : ''}
|
|
678
|
-
${flexGrow ? `flex-grow: ${flexGrow};` : ''}
|
|
679
|
-
${flexShrink ? `flex-shrink: ${flexShrink};` : ''}
|
|
678
|
+
${flexGrow !== undefined ? `flex-grow: ${flexGrow};` : ''}
|
|
679
|
+
${flexShrink !== undefined ? `flex-shrink: ${flexShrink};` : ''}
|
|
680
680
|
${flexBasis ? `flex-basis: ${flexBasis};` : ''}
|
|
681
681
|
${alignSelf ? `align-self: ${alignSelf};` : ''}
|
|
682
682
|
${justifySelf ? `justify-self: ${justifySelf};` : ''}
|
|
683
|
-
${order ? `order: ${order};` : ''}
|
|
683
|
+
${order !== undefined ? `order: ${order};` : ''}
|
|
684
684
|
${gridArea ? `grid-area: ${gridArea};` : ''}
|
|
685
685
|
${gridColumn ? `grid-column: ${gridColumn};` : ''}
|
|
686
686
|
${gridRow ? `grid-row: ${gridRow};` : ''}
|
|
@@ -738,12 +738,12 @@ const baseSizing = css`
|
|
|
738
738
|
width
|
|
739
739
|
} = _ref4;
|
|
740
740
|
return css`
|
|
741
|
-
${height ? `height: ${typeof height === 'number' ? `${height}px` : height};` : ''}
|
|
741
|
+
${height !== undefined ? `height: ${typeof height === 'number' ? `${height}px` : height};` : ''}
|
|
742
742
|
${maxHeight ? `max-height: ${maxHeight};` : ''}
|
|
743
743
|
${maxWidth ? `max-width: ${maxWidth};` : ''}
|
|
744
744
|
${minHeight ? `min-height: ${minHeight};` : ''}
|
|
745
745
|
${minWidth ? `min-width: ${minWidth};` : ''}
|
|
746
|
-
${width ? `width: ${typeof width === 'number' ? `${width}px` : width};` : ''}
|
|
746
|
+
${width !== undefined ? `width: ${typeof width === 'number' ? `${width}px` : width};` : ''}
|
|
747
747
|
`;
|
|
748
748
|
}}
|
|
749
749
|
`;
|
|
@@ -974,10 +974,10 @@ const StyledIcon = styled.span`
|
|
|
974
974
|
}}
|
|
975
975
|
`;
|
|
976
976
|
|
|
977
|
-
const _excluded$
|
|
978
|
-
const COMPONENT_NAME$
|
|
979
|
-
const CLASSNAME$
|
|
980
|
-
const DEFAULT_PROPS$
|
|
977
|
+
const _excluded$I = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps"];
|
|
978
|
+
const COMPONENT_NAME$K = 'Icon';
|
|
979
|
+
const CLASSNAME$K = 'redsift-icon';
|
|
980
|
+
const DEFAULT_PROPS$K = {
|
|
981
981
|
size: IconSize.medium
|
|
982
982
|
};
|
|
983
983
|
|
|
@@ -995,7 +995,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
995
995
|
size,
|
|
996
996
|
svgProps
|
|
997
997
|
} = props,
|
|
998
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
998
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$I);
|
|
999
999
|
return /*#__PURE__*/React__default.createElement(StyledIcon, _extends$1({}, forwardedProps, {
|
|
1000
1000
|
$color: color,
|
|
1001
1001
|
$size: size,
|
|
@@ -1017,9 +1017,9 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1017
1017
|
fill: "currentColor"
|
|
1018
1018
|
})), badge ? badge : null);
|
|
1019
1019
|
});
|
|
1020
|
-
Icon.className = CLASSNAME$
|
|
1021
|
-
Icon.defaultProps = DEFAULT_PROPS$
|
|
1022
|
-
Icon.displayName = COMPONENT_NAME$
|
|
1020
|
+
Icon.className = CLASSNAME$K;
|
|
1021
|
+
Icon.defaultProps = DEFAULT_PROPS$K;
|
|
1022
|
+
Icon.displayName = COMPONENT_NAME$K;
|
|
1023
1023
|
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Component variant.
|
|
@@ -1188,6 +1188,8 @@ const AppContainerContext = /*#__PURE__*/React__default.createContext(null);
|
|
|
1188
1188
|
* Component style.
|
|
1189
1189
|
*/
|
|
1190
1190
|
const StyledAppContainer = styled.div`
|
|
1191
|
+
overflow: hidden;
|
|
1192
|
+
|
|
1191
1193
|
${_ref => {
|
|
1192
1194
|
let {
|
|
1193
1195
|
$productTheme
|
|
@@ -1215,10 +1217,10 @@ const StyledAppContainer = styled.div`
|
|
|
1215
1217
|
}}
|
|
1216
1218
|
`;
|
|
1217
1219
|
|
|
1218
|
-
const _excluded$
|
|
1219
|
-
const COMPONENT_NAME$
|
|
1220
|
-
const CLASSNAME$
|
|
1221
|
-
const DEFAULT_PROPS$
|
|
1220
|
+
const _excluded$H = ["children", "className", "locale", "productTheme"];
|
|
1221
|
+
const COMPONENT_NAME$J = 'AppContainer';
|
|
1222
|
+
const CLASSNAME$J = 'redsift-app-container';
|
|
1223
|
+
const DEFAULT_PROPS$J = {};
|
|
1222
1224
|
|
|
1223
1225
|
/**
|
|
1224
1226
|
* The AppContainer component.
|
|
@@ -1230,7 +1232,7 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1230
1232
|
locale,
|
|
1231
1233
|
productTheme
|
|
1232
1234
|
} = props,
|
|
1233
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1235
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$H);
|
|
1234
1236
|
const {
|
|
1235
1237
|
hasAppBar,
|
|
1236
1238
|
hasAppSidePanel,
|
|
@@ -1275,9 +1277,9 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1275
1277
|
locale: locale
|
|
1276
1278
|
}, children)));
|
|
1277
1279
|
});
|
|
1278
|
-
AppContainer.className = CLASSNAME$
|
|
1279
|
-
AppContainer.defaultProps = DEFAULT_PROPS$
|
|
1280
|
-
AppContainer.displayName = COMPONENT_NAME$
|
|
1280
|
+
AppContainer.className = CLASSNAME$J;
|
|
1281
|
+
AppContainer.defaultProps = DEFAULT_PROPS$J;
|
|
1282
|
+
AppContainer.displayName = COMPONENT_NAME$J;
|
|
1281
1283
|
|
|
1282
1284
|
var spinnerDefault = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzAwNzllMSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwMDc5ZTEiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
1283
1285
|
|
|
@@ -1297,7 +1299,7 @@ var spinnerTools = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My
|
|
|
1297
1299
|
|
|
1298
1300
|
var spinnerWebsite = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzAwNzllMSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwMDc5ZTEiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
1299
1301
|
|
|
1300
|
-
const _excluded$
|
|
1302
|
+
const _excluded$G = ["aria-hidden", "aria-label", "className", "color", "size"];
|
|
1301
1303
|
const colorToFile = {
|
|
1302
1304
|
default: spinnerDefault,
|
|
1303
1305
|
hardenize: spinnerHardenize,
|
|
@@ -1309,9 +1311,9 @@ const colorToFile = {
|
|
|
1309
1311
|
tools: spinnerTools,
|
|
1310
1312
|
website: spinnerWebsite
|
|
1311
1313
|
};
|
|
1312
|
-
const COMPONENT_NAME$
|
|
1313
|
-
const CLASSNAME$
|
|
1314
|
-
const DEFAULT_PROPS$
|
|
1314
|
+
const COMPONENT_NAME$I = 'Spinner';
|
|
1315
|
+
const CLASSNAME$I = 'redsift-shield';
|
|
1316
|
+
const DEFAULT_PROPS$I = {
|
|
1315
1317
|
color: ColorPalette.default,
|
|
1316
1318
|
size: SpinnerSize.medium
|
|
1317
1319
|
};
|
|
@@ -1352,7 +1354,7 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1352
1354
|
color: propsColor,
|
|
1353
1355
|
size
|
|
1354
1356
|
} = props,
|
|
1355
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1357
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
1356
1358
|
const {
|
|
1357
1359
|
width,
|
|
1358
1360
|
height
|
|
@@ -1374,14 +1376,14 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1374
1376
|
$size: size
|
|
1375
1377
|
}));
|
|
1376
1378
|
});
|
|
1377
|
-
Spinner.className = CLASSNAME$
|
|
1378
|
-
Spinner.defaultProps = DEFAULT_PROPS$
|
|
1379
|
-
Spinner.displayName = COMPONENT_NAME$
|
|
1380
|
-
|
|
1381
|
-
const _excluded$
|
|
1382
|
-
const COMPONENT_NAME$
|
|
1383
|
-
const CLASSNAME$
|
|
1384
|
-
const DEFAULT_PROPS$
|
|
1379
|
+
Spinner.className = CLASSNAME$I;
|
|
1380
|
+
Spinner.defaultProps = DEFAULT_PROPS$I;
|
|
1381
|
+
Spinner.displayName = COMPONENT_NAME$I;
|
|
1382
|
+
|
|
1383
|
+
const _excluded$F = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isLoading", "leftIcon", "onPress", "rightIcon", "variant"];
|
|
1384
|
+
const COMPONENT_NAME$H = 'Button';
|
|
1385
|
+
const CLASSNAME$H = 'redsift-button';
|
|
1386
|
+
const DEFAULT_PROPS$H = {
|
|
1385
1387
|
color: ColorPalette.default,
|
|
1386
1388
|
height: 'fit-content',
|
|
1387
1389
|
variant: ButtonVariant.primary
|
|
@@ -1418,7 +1420,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1418
1420
|
rightIcon,
|
|
1419
1421
|
variant
|
|
1420
1422
|
} = props,
|
|
1421
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1423
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
1422
1424
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({}, forwardedProps, buttonProps, {
|
|
1423
1425
|
$color: color,
|
|
1424
1426
|
$fullWidth: fullWidth,
|
|
@@ -1442,9 +1444,9 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1442
1444
|
className: "right"
|
|
1443
1445
|
}) : null);
|
|
1444
1446
|
});
|
|
1445
|
-
Button.className = CLASSNAME$
|
|
1446
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1447
|
-
Button.displayName = COMPONENT_NAME$
|
|
1447
|
+
Button.className = CLASSNAME$H;
|
|
1448
|
+
Button.defaultProps = DEFAULT_PROPS$H;
|
|
1449
|
+
Button.displayName = COMPONENT_NAME$H;
|
|
1448
1450
|
|
|
1449
1451
|
/**
|
|
1450
1452
|
* Component style.
|
|
@@ -1460,10 +1462,10 @@ const StyledIconButton = styled(StyledButton)`
|
|
|
1460
1462
|
}};
|
|
1461
1463
|
`;
|
|
1462
1464
|
|
|
1463
|
-
const _excluded$
|
|
1464
|
-
const COMPONENT_NAME$
|
|
1465
|
-
const CLASSNAME$
|
|
1466
|
-
const DEFAULT_PROPS$
|
|
1465
|
+
const _excluded$E = ["className", "color", "disabled", "icon", "isActive", "isDisabled", "onPress", "variant"];
|
|
1466
|
+
const COMPONENT_NAME$G = 'IconButton';
|
|
1467
|
+
const CLASSNAME$G = 'redsift-icon-button';
|
|
1468
|
+
const DEFAULT_PROPS$G = {
|
|
1467
1469
|
color: ColorPalette.default,
|
|
1468
1470
|
height: 'fit-content',
|
|
1469
1471
|
variant: IconButtonVariant.unstyled
|
|
@@ -1495,7 +1497,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1495
1497
|
onPress,
|
|
1496
1498
|
variant
|
|
1497
1499
|
} = props,
|
|
1498
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1500
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
1499
1501
|
warnIfNoAccessibleLabelFound(props);
|
|
1500
1502
|
return /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps, buttonProps, {
|
|
1501
1503
|
$color: isDisabled || disabled ? undefined : color,
|
|
@@ -1511,9 +1513,9 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1511
1513
|
color: isDisabled || disabled ? undefined : color
|
|
1512
1514
|
}));
|
|
1513
1515
|
});
|
|
1514
|
-
IconButton.className = CLASSNAME$
|
|
1515
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1516
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1516
|
+
IconButton.className = CLASSNAME$G;
|
|
1517
|
+
IconButton.defaultProps = DEFAULT_PROPS$G;
|
|
1518
|
+
IconButton.displayName = COMPONENT_NAME$G;
|
|
1517
1519
|
|
|
1518
1520
|
/**
|
|
1519
1521
|
* Component style.
|
|
@@ -1653,10 +1655,10 @@ const StyledHeading = styled.span`
|
|
|
1653
1655
|
}}
|
|
1654
1656
|
`;
|
|
1655
1657
|
|
|
1656
|
-
const _excluded$
|
|
1657
|
-
const COMPONENT_NAME$
|
|
1658
|
-
const CLASSNAME$
|
|
1659
|
-
const DEFAULT_PROPS$
|
|
1658
|
+
const _excluded$D = ["as", "children", "className", "noWrap", "variant"];
|
|
1659
|
+
const COMPONENT_NAME$F = 'Heading';
|
|
1660
|
+
const CLASSNAME$F = 'redsift-heading';
|
|
1661
|
+
const DEFAULT_PROPS$F = {};
|
|
1660
1662
|
|
|
1661
1663
|
/**
|
|
1662
1664
|
* The Heading component.
|
|
@@ -1669,7 +1671,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1669
1671
|
noWrap,
|
|
1670
1672
|
variant
|
|
1671
1673
|
} = props,
|
|
1672
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1674
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
1673
1675
|
return /*#__PURE__*/React__default.createElement(StyledHeading, _extends$1({
|
|
1674
1676
|
as: as
|
|
1675
1677
|
}, forwardedProps, {
|
|
@@ -1679,9 +1681,9 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1679
1681
|
$variant: variant ? variant : as === 'span' ? 'body' : as
|
|
1680
1682
|
}), children);
|
|
1681
1683
|
});
|
|
1682
|
-
Heading.className = CLASSNAME$
|
|
1683
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
1684
|
-
Heading.displayName = COMPONENT_NAME$
|
|
1684
|
+
Heading.className = CLASSNAME$F;
|
|
1685
|
+
Heading.defaultProps = DEFAULT_PROPS$F;
|
|
1686
|
+
Heading.displayName = COMPONENT_NAME$F;
|
|
1685
1687
|
|
|
1686
1688
|
/**
|
|
1687
1689
|
* Component style.
|
|
@@ -1699,10 +1701,10 @@ const StyledFlexbox = styled.div`
|
|
|
1699
1701
|
${baseFlexbox}
|
|
1700
1702
|
`;
|
|
1701
1703
|
|
|
1702
|
-
const _excluded$
|
|
1703
|
-
const COMPONENT_NAME$
|
|
1704
|
-
const CLASSNAME$
|
|
1705
|
-
const DEFAULT_PROPS$
|
|
1704
|
+
const _excluded$C = ["children", "className"];
|
|
1705
|
+
const COMPONENT_NAME$E = 'Flexbox';
|
|
1706
|
+
const CLASSNAME$E = 'redsift-flex-box';
|
|
1707
|
+
const DEFAULT_PROPS$E = {
|
|
1706
1708
|
gap: '16px'
|
|
1707
1709
|
};
|
|
1708
1710
|
|
|
@@ -1714,20 +1716,20 @@ const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1714
1716
|
children,
|
|
1715
1717
|
className
|
|
1716
1718
|
} = props,
|
|
1717
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1719
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
1718
1720
|
return /*#__PURE__*/React__default.createElement(StyledFlexbox, _extends$1({}, forwardedProps, {
|
|
1719
1721
|
className: classNames(Flexbox.className, className),
|
|
1720
1722
|
ref: ref
|
|
1721
1723
|
}), children);
|
|
1722
1724
|
});
|
|
1723
|
-
Flexbox.className = CLASSNAME$
|
|
1724
|
-
Flexbox.defaultProps = DEFAULT_PROPS$
|
|
1725
|
-
Flexbox.displayName = COMPONENT_NAME$
|
|
1726
|
-
|
|
1727
|
-
const _excluded$
|
|
1728
|
-
const COMPONENT_NAME$
|
|
1729
|
-
const CLASSNAME$
|
|
1730
|
-
const DEFAULT_PROPS$
|
|
1725
|
+
Flexbox.className = CLASSNAME$E;
|
|
1726
|
+
Flexbox.defaultProps = DEFAULT_PROPS$E;
|
|
1727
|
+
Flexbox.displayName = COMPONENT_NAME$E;
|
|
1728
|
+
|
|
1729
|
+
const _excluded$B = ["children", "className", "isClosable", "isClosed", "onClose", "title", "variant"];
|
|
1730
|
+
const COMPONENT_NAME$D = 'Alert';
|
|
1731
|
+
const CLASSNAME$D = 'redsift-alert';
|
|
1732
|
+
const DEFAULT_PROPS$D = {
|
|
1731
1733
|
variant: 'info'
|
|
1732
1734
|
};
|
|
1733
1735
|
const getVariant$1 = variant => {
|
|
@@ -1741,7 +1743,7 @@ const getVariant$1 = variant => {
|
|
|
1741
1743
|
case AlertVariant.error:
|
|
1742
1744
|
return {
|
|
1743
1745
|
color: ColorPalette.error,
|
|
1744
|
-
icon:
|
|
1746
|
+
icon: mdiAlertCircle
|
|
1745
1747
|
};
|
|
1746
1748
|
case AlertVariant.success:
|
|
1747
1749
|
return {
|
|
@@ -1769,7 +1771,7 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1769
1771
|
title,
|
|
1770
1772
|
variant
|
|
1771
1773
|
} = props,
|
|
1772
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1774
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
1773
1775
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$5);
|
|
1774
1776
|
const {
|
|
1775
1777
|
color,
|
|
@@ -1815,9 +1817,9 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1815
1817
|
className: `${Alert.className}__content`
|
|
1816
1818
|
}, children) : null);
|
|
1817
1819
|
});
|
|
1818
|
-
Alert.className = CLASSNAME$
|
|
1819
|
-
Alert.defaultProps = DEFAULT_PROPS$
|
|
1820
|
-
Alert.displayName = COMPONENT_NAME$
|
|
1820
|
+
Alert.className = CLASSNAME$D;
|
|
1821
|
+
Alert.defaultProps = DEFAULT_PROPS$D;
|
|
1822
|
+
Alert.displayName = COMPONENT_NAME$D;
|
|
1821
1823
|
|
|
1822
1824
|
var expand$5 = "Expand left side panel";
|
|
1823
1825
|
var collapse$5 = "Collapse left side panel";
|
|
@@ -1914,10 +1916,10 @@ const StyledAppBar = styled.header`
|
|
|
1914
1916
|
}
|
|
1915
1917
|
`;
|
|
1916
1918
|
|
|
1917
|
-
const _excluded$
|
|
1918
|
-
const COMPONENT_NAME$
|
|
1919
|
-
const CLASSNAME$
|
|
1920
|
-
const DEFAULT_PROPS$
|
|
1919
|
+
const _excluded$A = ["children", "className", "collapseIconButtonProps", "collapseIconButtonRef", "expandIconButtonProps", "expandIconButtonRef", "fallbackTitle", "title"];
|
|
1920
|
+
const COMPONENT_NAME$C = 'AppBar';
|
|
1921
|
+
const CLASSNAME$C = 'redsift-app-bar';
|
|
1922
|
+
const DEFAULT_PROPS$C = {};
|
|
1921
1923
|
|
|
1922
1924
|
/**
|
|
1923
1925
|
* The AppBar component.
|
|
@@ -1933,7 +1935,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1933
1935
|
fallbackTitle,
|
|
1934
1936
|
title: propsTitle
|
|
1935
1937
|
} = props,
|
|
1936
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1938
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$A);
|
|
1937
1939
|
const {
|
|
1938
1940
|
isLoaded
|
|
1939
1941
|
} = useIsLoaded();
|
|
@@ -1972,9 +1974,9 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1972
1974
|
className: `${AppBar.className}__right`
|
|
1973
1975
|
}, children));
|
|
1974
1976
|
});
|
|
1975
|
-
AppBar.className = CLASSNAME$
|
|
1976
|
-
AppBar.defaultProps = DEFAULT_PROPS$
|
|
1977
|
-
AppBar.displayName = COMPONENT_NAME$
|
|
1977
|
+
AppBar.className = CLASSNAME$C;
|
|
1978
|
+
AppBar.defaultProps = DEFAULT_PROPS$C;
|
|
1979
|
+
AppBar.displayName = COMPONENT_NAME$C;
|
|
1978
1980
|
|
|
1979
1981
|
/**
|
|
1980
1982
|
* Component style.
|
|
@@ -2040,10 +2042,10 @@ const StyledAppContent = styled.main`
|
|
|
2040
2042
|
}}
|
|
2041
2043
|
`;
|
|
2042
2044
|
|
|
2043
|
-
const _excluded$
|
|
2044
|
-
const COMPONENT_NAME$
|
|
2045
|
-
const CLASSNAME$
|
|
2046
|
-
const DEFAULT_PROPS$
|
|
2045
|
+
const _excluded$z = ["children", "className", "productTheme"];
|
|
2046
|
+
const COMPONENT_NAME$B = 'AppContent';
|
|
2047
|
+
const CLASSNAME$B = 'redsift-app-content';
|
|
2048
|
+
const DEFAULT_PROPS$B = {};
|
|
2047
2049
|
|
|
2048
2050
|
/**
|
|
2049
2051
|
* The AppContent component.
|
|
@@ -2054,7 +2056,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2054
2056
|
className,
|
|
2055
2057
|
productTheme
|
|
2056
2058
|
} = props,
|
|
2057
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2059
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$z);
|
|
2058
2060
|
const {
|
|
2059
2061
|
isLoaded
|
|
2060
2062
|
} = useIsLoaded();
|
|
@@ -2067,9 +2069,9 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2067
2069
|
ref: ref
|
|
2068
2070
|
}), children);
|
|
2069
2071
|
});
|
|
2070
|
-
AppContent.className = CLASSNAME$
|
|
2071
|
-
AppContent.defaultProps = DEFAULT_PROPS$
|
|
2072
|
-
AppContent.displayName = COMPONENT_NAME$
|
|
2072
|
+
AppContent.className = CLASSNAME$B;
|
|
2073
|
+
AppContent.defaultProps = DEFAULT_PROPS$B;
|
|
2074
|
+
AppContent.displayName = COMPONENT_NAME$B;
|
|
2073
2075
|
|
|
2074
2076
|
/**
|
|
2075
2077
|
* Component style.
|
|
@@ -2163,10 +2165,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2163
2165
|
}
|
|
2164
2166
|
`;
|
|
2165
2167
|
|
|
2166
|
-
const _excluded$
|
|
2167
|
-
const COMPONENT_NAME$
|
|
2168
|
-
const CLASSNAME$
|
|
2169
|
-
const DEFAULT_PROPS$
|
|
2168
|
+
const _excluded$y = ["children", "className", "featuredElements", "isCollapsed", "logo"];
|
|
2169
|
+
const COMPONENT_NAME$A = 'AppSidePanel';
|
|
2170
|
+
const CLASSNAME$A = 'redsift-app-side-panel';
|
|
2171
|
+
const DEFAULT_PROPS$A = {};
|
|
2170
2172
|
|
|
2171
2173
|
/**
|
|
2172
2174
|
* The AppSidePanel component.
|
|
@@ -2179,7 +2181,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2179
2181
|
isCollapsed = false,
|
|
2180
2182
|
logo
|
|
2181
2183
|
} = props,
|
|
2182
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2184
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$y);
|
|
2183
2185
|
const appContainerState = useContext(AppContainerContext);
|
|
2184
2186
|
return /*#__PURE__*/React__default.createElement(StyledAppSidePanel, _extends$1({}, forwardedProps, {
|
|
2185
2187
|
$isCollapsed: !!(isCollapsed || appContainerState !== null && appContainerState !== void 0 && appContainerState.isSidePanelCollapsed),
|
|
@@ -2194,9 +2196,9 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2194
2196
|
className: `${AppSidePanel.className}__featured`
|
|
2195
2197
|
}, featuredElements) : null, children);
|
|
2196
2198
|
});
|
|
2197
|
-
AppSidePanel.className = CLASSNAME$
|
|
2198
|
-
AppSidePanel.defaultProps = DEFAULT_PROPS$
|
|
2199
|
-
AppSidePanel.displayName = COMPONENT_NAME$
|
|
2199
|
+
AppSidePanel.className = CLASSNAME$A;
|
|
2200
|
+
AppSidePanel.defaultProps = DEFAULT_PROPS$A;
|
|
2201
|
+
AppSidePanel.displayName = COMPONENT_NAME$A;
|
|
2200
2202
|
|
|
2201
2203
|
/**
|
|
2202
2204
|
* Context props.
|
|
@@ -2360,15 +2362,14 @@ const StyledBadge = styled.div`
|
|
|
2360
2362
|
|
|
2361
2363
|
&,
|
|
2362
2364
|
.redsift-icon {
|
|
2363
|
-
color: var(--redsift-color-${$color}-primary);
|
|
2365
|
+
color: ${Object.keys(DataVizColorPalette).includes($color) ? `var(--redsift-data-viz-color-${$color}-darker);` : `var(--redsift-color-${$color}-primary);`};
|
|
2364
2366
|
}
|
|
2365
2367
|
`;
|
|
2366
2368
|
} else {
|
|
2367
2369
|
return css`
|
|
2368
|
-
background-color: var(--redsift-color-${$color}-primary)
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
.redsift-icon {
|
|
2370
|
+
background-color: ${Object.keys(DataVizColorPalette).includes($color) ? `var(--redsift-data-viz-color-${$color}-darker);` : `var(--redsift-color-${$color}-primary);`}
|
|
2371
|
+
&,
|
|
2372
|
+
.redsift-icon {
|
|
2372
2373
|
color: var(--redsift-color-neutral-white);
|
|
2373
2374
|
}
|
|
2374
2375
|
`;
|
|
@@ -2412,10 +2413,10 @@ const StyledBadge = styled.div`
|
|
|
2412
2413
|
}}
|
|
2413
2414
|
`;
|
|
2414
2415
|
|
|
2415
|
-
const _excluded$
|
|
2416
|
-
const COMPONENT_NAME$
|
|
2417
|
-
const CLASSNAME$
|
|
2418
|
-
const DEFAULT_PROPS$
|
|
2416
|
+
const _excluded$x = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
|
|
2417
|
+
const COMPONENT_NAME$z = 'Badge';
|
|
2418
|
+
const CLASSNAME$z = 'redsift-badge';
|
|
2419
|
+
const DEFAULT_PROPS$z = {
|
|
2419
2420
|
color: ColorPalette.question,
|
|
2420
2421
|
variant: BadgeVariant.dot
|
|
2421
2422
|
};
|
|
@@ -2432,7 +2433,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2432
2433
|
isReversed,
|
|
2433
2434
|
variant
|
|
2434
2435
|
} = props,
|
|
2435
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2436
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$x);
|
|
2436
2437
|
return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({}, forwardedProps, {
|
|
2437
2438
|
$autoBreak: autoBreak,
|
|
2438
2439
|
$color: color,
|
|
@@ -2442,14 +2443,14 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2442
2443
|
ref: ref
|
|
2443
2444
|
}), variant === BadgeVariant.standard ? children : null);
|
|
2444
2445
|
});
|
|
2445
|
-
Badge.className = CLASSNAME$
|
|
2446
|
-
Badge.defaultProps = DEFAULT_PROPS$
|
|
2447
|
-
Badge.displayName = COMPONENT_NAME$
|
|
2446
|
+
Badge.className = CLASSNAME$z;
|
|
2447
|
+
Badge.defaultProps = DEFAULT_PROPS$z;
|
|
2448
|
+
Badge.displayName = COMPONENT_NAME$z;
|
|
2448
2449
|
|
|
2449
|
-
const _excluded$
|
|
2450
|
-
const COMPONENT_NAME$
|
|
2451
|
-
const CLASSNAME$
|
|
2452
|
-
const DEFAULT_PROPS$
|
|
2450
|
+
const _excluded$w = ["badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
|
|
2451
|
+
const COMPONENT_NAME$y = 'SideNavigationMenuItem';
|
|
2452
|
+
const CLASSNAME$y = 'redsift-side-navigation-menu-item';
|
|
2453
|
+
const DEFAULT_PROPS$y = {};
|
|
2453
2454
|
|
|
2454
2455
|
/**
|
|
2455
2456
|
* The SideNavigationMenuItem component.
|
|
@@ -2473,7 +2474,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2473
2474
|
tabIndex,
|
|
2474
2475
|
withoutIcons
|
|
2475
2476
|
} = props,
|
|
2476
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2477
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
2477
2478
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
2478
2479
|
const appContainerState = useContext(AppContainerContext);
|
|
2479
2480
|
useEffect(() => {
|
|
@@ -2535,9 +2536,9 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2535
2536
|
color: "error"
|
|
2536
2537
|
}, badgeProps), badge) : null);
|
|
2537
2538
|
});
|
|
2538
|
-
SideNavigationMenuItem.className = CLASSNAME$
|
|
2539
|
-
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$
|
|
2540
|
-
SideNavigationMenuItem.displayName = COMPONENT_NAME$
|
|
2539
|
+
SideNavigationMenuItem.className = CLASSNAME$y;
|
|
2540
|
+
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$y;
|
|
2541
|
+
SideNavigationMenuItem.displayName = COMPONENT_NAME$y;
|
|
2541
2542
|
|
|
2542
2543
|
/**
|
|
2543
2544
|
* Component style.
|
|
@@ -2676,10 +2677,10 @@ const SideNavigationMenuReducer = (state, action) => {
|
|
|
2676
2677
|
}
|
|
2677
2678
|
};
|
|
2678
2679
|
|
|
2679
|
-
const _excluded$
|
|
2680
|
-
const COMPONENT_NAME$
|
|
2681
|
-
const CLASSNAME$
|
|
2682
|
-
const DEFAULT_PROPS$
|
|
2680
|
+
const _excluded$v = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "withoutIcons"];
|
|
2681
|
+
const COMPONENT_NAME$x = 'SideNavigationMenu';
|
|
2682
|
+
const CLASSNAME$x = 'redsift-side-navigation-menu';
|
|
2683
|
+
const DEFAULT_PROPS$x = {};
|
|
2683
2684
|
|
|
2684
2685
|
/**
|
|
2685
2686
|
* The SideNavigationMenu component.
|
|
@@ -2702,7 +2703,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2702
2703
|
tabIndex,
|
|
2703
2704
|
withoutIcons
|
|
2704
2705
|
} = props,
|
|
2705
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2706
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$v);
|
|
2706
2707
|
warnIfNoAccessibleLabelFound(props);
|
|
2707
2708
|
const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
|
|
2708
2709
|
const [isFirstChild, setIsFirstChild] = useState(false);
|
|
@@ -2971,9 +2972,9 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2971
2972
|
role: "menu"
|
|
2972
2973
|
}, menuItemListEventHandler), renderedMenuItems)));
|
|
2973
2974
|
});
|
|
2974
|
-
SideNavigationMenu.className = CLASSNAME$
|
|
2975
|
-
SideNavigationMenu.defaultProps = DEFAULT_PROPS$
|
|
2976
|
-
SideNavigationMenu.displayName = COMPONENT_NAME$
|
|
2975
|
+
SideNavigationMenu.className = CLASSNAME$x;
|
|
2976
|
+
SideNavigationMenu.defaultProps = DEFAULT_PROPS$x;
|
|
2977
|
+
SideNavigationMenu.displayName = COMPONENT_NAME$x;
|
|
2977
2978
|
|
|
2978
2979
|
/**
|
|
2979
2980
|
* Component style.
|
|
@@ -3044,10 +3045,10 @@ const useBoundingClientRect = (ref, deps) => {
|
|
|
3044
3045
|
return boundingRect;
|
|
3045
3046
|
};
|
|
3046
3047
|
|
|
3047
|
-
const _excluded$
|
|
3048
|
-
const COMPONENT_NAME$
|
|
3049
|
-
const CLASSNAME$
|
|
3050
|
-
const DEFAULT_PROPS$
|
|
3048
|
+
const _excluded$u = ["aria-label", "aria-labelledby", "children", "className", "isDisabled", "menubarProps", "menubarRef", "withoutIcons"];
|
|
3049
|
+
const COMPONENT_NAME$w = 'SideNavigationMenuBar';
|
|
3050
|
+
const CLASSNAME$w = 'redsift-side-navigation-menu-bar';
|
|
3051
|
+
const DEFAULT_PROPS$w = {};
|
|
3051
3052
|
|
|
3052
3053
|
/**
|
|
3053
3054
|
* Hook to store the previous index for further use
|
|
@@ -3075,7 +3076,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3075
3076
|
menubarRef = useRef(),
|
|
3076
3077
|
withoutIcons
|
|
3077
3078
|
} = props,
|
|
3078
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3079
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$u);
|
|
3079
3080
|
warnIfNoAccessibleLabelFound(props);
|
|
3080
3081
|
const {
|
|
3081
3082
|
top
|
|
@@ -3217,11 +3218,11 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3217
3218
|
role: "menubar"
|
|
3218
3219
|
}), navItems)));
|
|
3219
3220
|
});
|
|
3220
|
-
SideNavigationMenuBar.className = CLASSNAME$
|
|
3221
|
-
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$
|
|
3222
|
-
SideNavigationMenuBar.displayName = COMPONENT_NAME$
|
|
3221
|
+
SideNavigationMenuBar.className = CLASSNAME$w;
|
|
3222
|
+
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$w;
|
|
3223
|
+
SideNavigationMenuBar.displayName = COMPONENT_NAME$w;
|
|
3223
3224
|
|
|
3224
|
-
const _excluded$
|
|
3225
|
+
const _excluded$t = ["title", "href", "ref"],
|
|
3225
3226
|
_excluded2 = ["title", "children", "ref"],
|
|
3226
3227
|
_excluded3 = ["title", "href", "ref"];
|
|
3227
3228
|
const isMenu = item => {
|
|
@@ -3240,7 +3241,7 @@ const useSideNavigationMenuBar = _ref => {
|
|
|
3240
3241
|
href,
|
|
3241
3242
|
ref
|
|
3242
3243
|
} = item,
|
|
3243
|
-
rest = _objectWithoutProperties(item, _excluded$
|
|
3244
|
+
rest = _objectWithoutProperties(item, _excluded$t);
|
|
3244
3245
|
menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenuItem, _extends$1({
|
|
3245
3246
|
key: title,
|
|
3246
3247
|
isCurrent: isActive ? isActive(href) : undefined
|
|
@@ -3343,10 +3344,10 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
3343
3344
|
}
|
|
3344
3345
|
`;
|
|
3345
3346
|
|
|
3346
|
-
const _excluded$
|
|
3347
|
-
const COMPONENT_NAME$
|
|
3348
|
-
const CLASSNAME$
|
|
3349
|
-
const DEFAULT_PROPS$
|
|
3347
|
+
const _excluded$s = ["children", "className", "href", "isCurrent", "isDisabled"];
|
|
3348
|
+
const COMPONENT_NAME$v = 'BreadcrumbItem';
|
|
3349
|
+
const CLASSNAME$v = 'redsift-breadcrumb-item';
|
|
3350
|
+
const DEFAULT_PROPS$v = {};
|
|
3350
3351
|
|
|
3351
3352
|
/**
|
|
3352
3353
|
* The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3359,7 +3360,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3359
3360
|
isCurrent,
|
|
3360
3361
|
isDisabled
|
|
3361
3362
|
} = props,
|
|
3362
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3363
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$s);
|
|
3363
3364
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
3364
3365
|
return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
|
|
3365
3366
|
role: "link",
|
|
@@ -3374,9 +3375,9 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3374
3375
|
ref: ref
|
|
3375
3376
|
}), children);
|
|
3376
3377
|
});
|
|
3377
|
-
BreadcrumbItem.className = CLASSNAME$
|
|
3378
|
-
BreadcrumbItem.defaultProps = DEFAULT_PROPS$
|
|
3379
|
-
BreadcrumbItem.displayName = COMPONENT_NAME$
|
|
3378
|
+
BreadcrumbItem.className = CLASSNAME$v;
|
|
3379
|
+
BreadcrumbItem.defaultProps = DEFAULT_PROPS$v;
|
|
3380
|
+
BreadcrumbItem.displayName = COMPONENT_NAME$v;
|
|
3380
3381
|
|
|
3381
3382
|
/**
|
|
3382
3383
|
* Component style.
|
|
@@ -3410,10 +3411,10 @@ const StyledBreadcrumbs = styled.nav`
|
|
|
3410
3411
|
}
|
|
3411
3412
|
`;
|
|
3412
3413
|
|
|
3413
|
-
const _excluded$
|
|
3414
|
-
const COMPONENT_NAME$
|
|
3415
|
-
const CLASSNAME$
|
|
3416
|
-
const DEFAULT_PROPS$
|
|
3414
|
+
const _excluded$r = ["children", "className", "isDisabled"];
|
|
3415
|
+
const COMPONENT_NAME$u = 'Breadcrumbs';
|
|
3416
|
+
const CLASSNAME$u = 'redsift-breadcrumbs';
|
|
3417
|
+
const DEFAULT_PROPS$u = {};
|
|
3417
3418
|
|
|
3418
3419
|
/**
|
|
3419
3420
|
* The Breadcrumbs components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3424,7 +3425,7 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3424
3425
|
className,
|
|
3425
3426
|
isDisabled
|
|
3426
3427
|
} = props,
|
|
3427
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3428
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$r);
|
|
3428
3429
|
warnIfNoAccessibleLabelFound(props);
|
|
3429
3430
|
const childArray = filterComponents([Breadcrumbs.Item])(children);
|
|
3430
3431
|
const breadcrumbItems = childArray.map((child, index) => {
|
|
@@ -3447,17 +3448,17 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3447
3448
|
ref: ref
|
|
3448
3449
|
}), /*#__PURE__*/React__default.createElement("ol", null, breadcrumbItems));
|
|
3449
3450
|
});
|
|
3450
|
-
BaseBreadcrumbs.className = CLASSNAME$
|
|
3451
|
-
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$
|
|
3452
|
-
BaseBreadcrumbs.displayName = COMPONENT_NAME$
|
|
3451
|
+
BaseBreadcrumbs.className = CLASSNAME$u;
|
|
3452
|
+
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$u;
|
|
3453
|
+
BaseBreadcrumbs.displayName = COMPONENT_NAME$u;
|
|
3453
3454
|
const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
|
|
3454
3455
|
Item: BreadcrumbItem
|
|
3455
3456
|
});
|
|
3456
3457
|
|
|
3457
|
-
const _excluded$
|
|
3458
|
-
const COMPONENT_NAME$
|
|
3459
|
-
const CLASSNAME$
|
|
3460
|
-
const DEFAULT_PROPS$
|
|
3458
|
+
const _excluded$q = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
|
|
3459
|
+
const COMPONENT_NAME$t = 'ButtonLink';
|
|
3460
|
+
const CLASSNAME$t = 'redsift-button-link';
|
|
3461
|
+
const DEFAULT_PROPS$t = {
|
|
3461
3462
|
color: ColorPalette.default,
|
|
3462
3463
|
height: 'fit-content',
|
|
3463
3464
|
variant: ButtonVariant.primary
|
|
@@ -3484,7 +3485,7 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3484
3485
|
target,
|
|
3485
3486
|
variant
|
|
3486
3487
|
} = props,
|
|
3487
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3488
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$q);
|
|
3488
3489
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({
|
|
3489
3490
|
as: as || 'a',
|
|
3490
3491
|
role: "link",
|
|
@@ -3508,9 +3509,9 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3508
3509
|
className: "right"
|
|
3509
3510
|
}) : null);
|
|
3510
3511
|
});
|
|
3511
|
-
ButtonLink.className = CLASSNAME$
|
|
3512
|
-
ButtonLink.defaultProps = DEFAULT_PROPS$
|
|
3513
|
-
ButtonLink.displayName = COMPONENT_NAME$
|
|
3512
|
+
ButtonLink.className = CLASSNAME$t;
|
|
3513
|
+
ButtonLink.defaultProps = DEFAULT_PROPS$t;
|
|
3514
|
+
ButtonLink.displayName = COMPONENT_NAME$t;
|
|
3514
3515
|
|
|
3515
3516
|
var collapse$3 = "Collapse";
|
|
3516
3517
|
var expand$3 = "Expand";
|
|
@@ -3612,10 +3613,241 @@ const StyledCardHeader = styled.div`
|
|
|
3612
3613
|
}
|
|
3613
3614
|
`;
|
|
3614
3615
|
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
const
|
|
3616
|
+
/**
|
|
3617
|
+
* Component style.
|
|
3618
|
+
*/
|
|
3619
|
+
const wave = keyframes`
|
|
3620
|
+
0% {
|
|
3621
|
+
-webkit-transform: translateX(-100%);
|
|
3622
|
+
-moz-transform: translateX(-100%);
|
|
3623
|
+
-ms-transform: translateX(-100%);
|
|
3624
|
+
transform: translateX(-100%);
|
|
3625
|
+
}
|
|
3626
|
+
|
|
3627
|
+
50% {
|
|
3628
|
+
-webkit-transform: translateX(100%);
|
|
3629
|
+
-moz-transform: translateX(100%);
|
|
3630
|
+
-ms-transform: translateX(100%);
|
|
3631
|
+
transform: translateX(100%);
|
|
3632
|
+
}
|
|
3633
|
+
|
|
3634
|
+
100% {
|
|
3635
|
+
-webkit-transform: translateX(100%);
|
|
3636
|
+
-moz-transform: translateX(100%);
|
|
3637
|
+
-ms-transform: translateX(100%);
|
|
3638
|
+
transform: translateX(100%);
|
|
3639
|
+
}
|
|
3640
|
+
`;
|
|
3641
|
+
const StyledSkeleton = styled.div`
|
|
3642
|
+
height: fit-content;
|
|
3643
|
+
width: fit-content;
|
|
3644
|
+
|
|
3645
|
+
> * {
|
|
3646
|
+
visibility: hidden;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
flex: 0 0 auto;
|
|
3650
|
+
|
|
3651
|
+
${baseStyling}
|
|
3652
|
+
${baseInternalSpacing}
|
|
3653
|
+
|
|
3654
|
+
display: block;
|
|
3655
|
+
background-color: rgba(0, 0, 0, 0.11);
|
|
3656
|
+
position: relative;
|
|
3657
|
+
overflow: hidden;
|
|
3658
|
+
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
3659
|
+
|
|
3660
|
+
&::after {
|
|
3661
|
+
-webkit-animation: ${wave} 1.6s linear 0.5s infinite;
|
|
3662
|
+
animation: ${wave} 1.6s linear 0.5s infinite;
|
|
3663
|
+
background: linear-gradient(
|
|
3664
|
+
90deg,
|
|
3665
|
+
transparent,
|
|
3666
|
+
rgba(0, 0, 0, 0.04),
|
|
3667
|
+
transparent
|
|
3668
|
+
);
|
|
3669
|
+
background-clip: content-box;
|
|
3670
|
+
content: '';
|
|
3671
|
+
position: absolute;
|
|
3672
|
+
-webkit-transform: translateX(-100%);
|
|
3673
|
+
-moz-transform: translateX(-100%);
|
|
3674
|
+
-ms-transform: translateX(-100%);
|
|
3675
|
+
transform: translateX(-100%);
|
|
3676
|
+
bottom: 0;
|
|
3677
|
+
left: 0;
|
|
3678
|
+
right: 0;
|
|
3679
|
+
top: 0;
|
|
3680
|
+
}
|
|
3681
|
+
`;
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* Component style.
|
|
3685
|
+
*/
|
|
3686
|
+
const StyledSkeletonCircle = styled(StyledSkeleton)`
|
|
3687
|
+
border-radius: 50%;
|
|
3688
|
+
|
|
3689
|
+
${_ref => {
|
|
3690
|
+
let {
|
|
3691
|
+
height,
|
|
3692
|
+
width
|
|
3693
|
+
} = _ref;
|
|
3694
|
+
return css`
|
|
3695
|
+
&,
|
|
3696
|
+
&::after {
|
|
3697
|
+
${height ? `height: ${height};` : width ? `height: ${width};` : ''}
|
|
3698
|
+
${width ? `width: ${width};` : height ? `width: ${height};` : ''}
|
|
3699
|
+
}
|
|
3700
|
+
`;
|
|
3701
|
+
}}
|
|
3702
|
+
`;
|
|
3703
|
+
|
|
3704
|
+
const _excluded$p = ["children", "className", "isLoaded"];
|
|
3705
|
+
const COMPONENT_NAME$s = 'SkeletonCircle';
|
|
3706
|
+
const CLASSNAME$s = 'redsift-skeleton-circle';
|
|
3707
|
+
const DEFAULT_PROPS$s = {};
|
|
3708
|
+
|
|
3709
|
+
/**
|
|
3710
|
+
* The SkeletonCircle component.
|
|
3711
|
+
*/
|
|
3712
|
+
const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3713
|
+
const {
|
|
3714
|
+
children,
|
|
3715
|
+
className,
|
|
3716
|
+
isLoaded
|
|
3717
|
+
} = props,
|
|
3718
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$p);
|
|
3719
|
+
if (isLoaded) {
|
|
3720
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
3721
|
+
}
|
|
3722
|
+
return /*#__PURE__*/React__default.createElement(StyledSkeletonCircle, _extends$1({}, forwardedProps, {
|
|
3723
|
+
className: classNames(SkeletonCircle.className, className),
|
|
3724
|
+
ref: ref
|
|
3725
|
+
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
3726
|
+
});
|
|
3727
|
+
SkeletonCircle.className = CLASSNAME$s;
|
|
3728
|
+
SkeletonCircle.defaultProps = DEFAULT_PROPS$s;
|
|
3729
|
+
SkeletonCircle.displayName = COMPONENT_NAME$s;
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* Component variant.
|
|
3733
|
+
*/
|
|
3734
|
+
const SkeletonTextVariant = {
|
|
3735
|
+
h1: 'h1',
|
|
3736
|
+
h2: 'h2',
|
|
3737
|
+
h3: 'h3',
|
|
3738
|
+
h4: 'h4',
|
|
3739
|
+
h5: 'h5',
|
|
3740
|
+
subtitle: 'subtitle',
|
|
3741
|
+
body: 'body',
|
|
3742
|
+
body2: 'body2',
|
|
3743
|
+
button: 'button',
|
|
3744
|
+
caption: 'caption'
|
|
3745
|
+
};
|
|
3746
|
+
|
|
3747
|
+
/**
|
|
3748
|
+
* Component style.
|
|
3749
|
+
*/
|
|
3750
|
+
const StyledSkeletonText = styled(StyledSkeleton)`
|
|
3751
|
+
background-clip: content-box;
|
|
3752
|
+
|
|
3753
|
+
${_ref => {
|
|
3754
|
+
let {
|
|
3755
|
+
height,
|
|
3756
|
+
$fontSize,
|
|
3757
|
+
$lineHeight,
|
|
3758
|
+
$variant
|
|
3759
|
+
} = _ref;
|
|
3760
|
+
return height ? css`
|
|
3761
|
+
&,
|
|
3762
|
+
&::after {
|
|
3763
|
+
height: ${height};
|
|
3764
|
+
}
|
|
3765
|
+
` : css`
|
|
3766
|
+
&,
|
|
3767
|
+
&::after {
|
|
3768
|
+
height: ${$fontSize ? $fontSize : `var(--redsift-typography-${$variant}-font-size)`};
|
|
3769
|
+
padding: calc(
|
|
3770
|
+
(
|
|
3771
|
+
${$lineHeight ? $lineHeight : `var(--redsift-typography-${$variant}-line-height)`} -
|
|
3772
|
+
${$fontSize ? $fontSize : `var(--redsift-typography-${$variant}-font-size)`}
|
|
3773
|
+
) / 2
|
|
3774
|
+
)
|
|
3775
|
+
0px;
|
|
3776
|
+
}
|
|
3777
|
+
`;
|
|
3778
|
+
}}}
|
|
3779
|
+
`;
|
|
3780
|
+
|
|
3781
|
+
const _excluded$o = ["children", "className", "fontSize", "isLoaded", "lineHeight", "variant"];
|
|
3782
|
+
const COMPONENT_NAME$r = 'SkeletonText';
|
|
3783
|
+
const CLASSNAME$r = 'redsift-skeleton-text';
|
|
3784
|
+
const DEFAULT_PROPS$r = {
|
|
3785
|
+
variant: 'body'
|
|
3786
|
+
};
|
|
3787
|
+
|
|
3788
|
+
/**
|
|
3789
|
+
* The SkeletonText component.
|
|
3790
|
+
*/
|
|
3791
|
+
const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3792
|
+
const {
|
|
3793
|
+
children,
|
|
3794
|
+
className,
|
|
3795
|
+
fontSize,
|
|
3796
|
+
isLoaded,
|
|
3797
|
+
lineHeight,
|
|
3798
|
+
variant
|
|
3799
|
+
} = props,
|
|
3800
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$o);
|
|
3801
|
+
if (isLoaded) {
|
|
3802
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
3803
|
+
}
|
|
3804
|
+
return /*#__PURE__*/React__default.createElement(StyledSkeletonText, _extends$1({}, forwardedProps, {
|
|
3805
|
+
className: classNames(SkeletonText.className, className),
|
|
3806
|
+
ref: ref,
|
|
3807
|
+
$fontSize: fontSize,
|
|
3808
|
+
$lineHeight: lineHeight,
|
|
3809
|
+
$variant: variant
|
|
3810
|
+
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
3811
|
+
});
|
|
3812
|
+
SkeletonText.className = CLASSNAME$r;
|
|
3813
|
+
SkeletonText.defaultProps = DEFAULT_PROPS$r;
|
|
3814
|
+
SkeletonText.displayName = COMPONENT_NAME$r;
|
|
3815
|
+
|
|
3816
|
+
const _excluded$n = ["children", "className", "isLoaded"];
|
|
3817
|
+
const COMPONENT_NAME$q = 'Skeleton';
|
|
3818
|
+
const CLASSNAME$q = 'redsift-skeleton';
|
|
3819
|
+
const DEFAULT_PROPS$q = {};
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* The Skeleton component.
|
|
3823
|
+
*/
|
|
3824
|
+
const BaseSkeleton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3825
|
+
const {
|
|
3826
|
+
children,
|
|
3827
|
+
className,
|
|
3828
|
+
isLoaded
|
|
3829
|
+
} = props,
|
|
3830
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$n);
|
|
3831
|
+
if (isLoaded) {
|
|
3832
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
3833
|
+
}
|
|
3834
|
+
return /*#__PURE__*/React__default.createElement(StyledSkeleton, _extends$1({}, forwardedProps, {
|
|
3835
|
+
className: classNames(BaseSkeleton.className, className),
|
|
3836
|
+
ref: ref
|
|
3837
|
+
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
3838
|
+
});
|
|
3839
|
+
BaseSkeleton.className = CLASSNAME$q;
|
|
3840
|
+
BaseSkeleton.defaultProps = DEFAULT_PROPS$q;
|
|
3841
|
+
BaseSkeleton.displayName = COMPONENT_NAME$q;
|
|
3842
|
+
const Skeleton = Object.assign(BaseSkeleton, {
|
|
3843
|
+
Circle: SkeletonCircle,
|
|
3844
|
+
Text: SkeletonText
|
|
3845
|
+
});
|
|
3846
|
+
|
|
3847
|
+
const _excluded$m = ["children", "className", "header", "headingProps", "icon", "isLoading", "subheader"];
|
|
3848
|
+
const COMPONENT_NAME$p = 'CardHeader';
|
|
3849
|
+
const CLASSNAME$p = 'redsift-card-header';
|
|
3850
|
+
const DEFAULT_PROPS$p = {};
|
|
3619
3851
|
|
|
3620
3852
|
/**
|
|
3621
3853
|
* The CardHeader component.
|
|
@@ -3627,15 +3859,24 @@ const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3627
3859
|
header,
|
|
3628
3860
|
headingProps,
|
|
3629
3861
|
icon,
|
|
3862
|
+
isLoading,
|
|
3630
3863
|
subheader
|
|
3631
3864
|
} = props,
|
|
3632
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3865
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
3633
3866
|
return /*#__PURE__*/React__default.createElement(StyledCardHeader, _extends$1({}, forwardedProps, {
|
|
3634
3867
|
className: classNames(CardHeader.className, className),
|
|
3635
3868
|
ref: ref
|
|
3636
|
-
}), subheader ? /*#__PURE__*/React__default.createElement(
|
|
3869
|
+
}), subheader ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
|
|
3870
|
+
variant: "body",
|
|
3871
|
+
isLoaded: !isLoading
|
|
3872
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3637
3873
|
className: `${CardHeader.className}__subheader`
|
|
3638
|
-
}, subheader) : null, header ? /*#__PURE__*/React__default.createElement(
|
|
3874
|
+
}, subheader)) : null, header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
|
|
3875
|
+
variant: "h2",
|
|
3876
|
+
isLoaded: !isLoading,
|
|
3877
|
+
marginTop: "10px",
|
|
3878
|
+
marginBottom: "10px"
|
|
3879
|
+
}, /*#__PURE__*/React__default.createElement(Heading, _extends$1({
|
|
3639
3880
|
as: "h2",
|
|
3640
3881
|
color: "black",
|
|
3641
3882
|
className: `${CardHeader.className}__header`,
|
|
@@ -3643,11 +3884,11 @@ const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3643
3884
|
}, headingProps), icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
3644
3885
|
icon: icon,
|
|
3645
3886
|
"aria-hidden": "true"
|
|
3646
|
-
}) : null, header) : null, children);
|
|
3887
|
+
}) : null, header)) : null, children);
|
|
3647
3888
|
});
|
|
3648
|
-
CardHeader.className = CLASSNAME$
|
|
3649
|
-
CardHeader.defaultProps = DEFAULT_PROPS$
|
|
3650
|
-
CardHeader.displayName = COMPONENT_NAME$
|
|
3889
|
+
CardHeader.className = CLASSNAME$p;
|
|
3890
|
+
CardHeader.defaultProps = DEFAULT_PROPS$p;
|
|
3891
|
+
CardHeader.displayName = COMPONENT_NAME$p;
|
|
3651
3892
|
|
|
3652
3893
|
/**
|
|
3653
3894
|
* Component style.
|
|
@@ -3663,10 +3904,10 @@ const StyledCardBody = styled.div`
|
|
|
3663
3904
|
padding: 16px 0px;
|
|
3664
3905
|
`;
|
|
3665
3906
|
|
|
3666
|
-
const _excluded$
|
|
3667
|
-
const COMPONENT_NAME$
|
|
3668
|
-
const CLASSNAME$
|
|
3669
|
-
const DEFAULT_PROPS$
|
|
3907
|
+
const _excluded$l = ["children", "className"];
|
|
3908
|
+
const COMPONENT_NAME$o = 'CardBody';
|
|
3909
|
+
const CLASSNAME$o = 'redsift-card-body';
|
|
3910
|
+
const DEFAULT_PROPS$o = {};
|
|
3670
3911
|
|
|
3671
3912
|
/**
|
|
3672
3913
|
* The CardBody component.
|
|
@@ -3676,15 +3917,15 @@ const CardBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3676
3917
|
children,
|
|
3677
3918
|
className
|
|
3678
3919
|
} = props,
|
|
3679
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3920
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$l);
|
|
3680
3921
|
return /*#__PURE__*/React__default.createElement(StyledCardBody, _extends$1({}, forwardedProps, {
|
|
3681
3922
|
className: classNames(CardBody.className, className),
|
|
3682
3923
|
ref: ref
|
|
3683
3924
|
}), children);
|
|
3684
3925
|
});
|
|
3685
|
-
CardBody.className = CLASSNAME$
|
|
3686
|
-
CardBody.defaultProps = DEFAULT_PROPS$
|
|
3687
|
-
CardBody.displayName = COMPONENT_NAME$
|
|
3926
|
+
CardBody.className = CLASSNAME$o;
|
|
3927
|
+
CardBody.defaultProps = DEFAULT_PROPS$o;
|
|
3928
|
+
CardBody.displayName = COMPONENT_NAME$o;
|
|
3688
3929
|
|
|
3689
3930
|
/**
|
|
3690
3931
|
* Component style.
|
|
@@ -3696,10 +3937,10 @@ const StyledCardActions = styled.div`
|
|
|
3696
3937
|
margin-bottom: 8px;
|
|
3697
3938
|
`;
|
|
3698
3939
|
|
|
3699
|
-
const _excluded$
|
|
3700
|
-
const COMPONENT_NAME$
|
|
3701
|
-
const CLASSNAME$
|
|
3702
|
-
const DEFAULT_PROPS$
|
|
3940
|
+
const _excluded$k = ["children", "className"];
|
|
3941
|
+
const COMPONENT_NAME$n = 'CardActions';
|
|
3942
|
+
const CLASSNAME$n = 'redsift-card-actions';
|
|
3943
|
+
const DEFAULT_PROPS$n = {
|
|
3703
3944
|
display: 'flex',
|
|
3704
3945
|
flexDirection: 'row'
|
|
3705
3946
|
};
|
|
@@ -3712,20 +3953,20 @@ const CardActions = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3712
3953
|
children,
|
|
3713
3954
|
className
|
|
3714
3955
|
} = props,
|
|
3715
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3956
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$k);
|
|
3716
3957
|
return /*#__PURE__*/React__default.createElement(StyledCardActions, _extends$1({}, forwardedProps, {
|
|
3717
3958
|
className: classNames(CardActions.className, className),
|
|
3718
3959
|
ref: ref
|
|
3719
3960
|
}), children);
|
|
3720
3961
|
});
|
|
3721
|
-
CardActions.className = CLASSNAME$
|
|
3722
|
-
CardActions.defaultProps = DEFAULT_PROPS$
|
|
3723
|
-
CardActions.displayName = COMPONENT_NAME$
|
|
3962
|
+
CardActions.className = CLASSNAME$n;
|
|
3963
|
+
CardActions.defaultProps = DEFAULT_PROPS$n;
|
|
3964
|
+
CardActions.displayName = COMPONENT_NAME$n;
|
|
3724
3965
|
|
|
3725
|
-
const _excluded$
|
|
3726
|
-
const COMPONENT_NAME$
|
|
3727
|
-
const CLASSNAME$
|
|
3728
|
-
const DEFAULT_PROPS$
|
|
3966
|
+
const _excluded$j = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
|
|
3967
|
+
const COMPONENT_NAME$m = 'Card';
|
|
3968
|
+
const CLASSNAME$m = 'redsift-card';
|
|
3969
|
+
const DEFAULT_PROPS$m = {};
|
|
3729
3970
|
|
|
3730
3971
|
/**
|
|
3731
3972
|
* The Card component.
|
|
@@ -3739,7 +3980,7 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3739
3980
|
isCollapsible,
|
|
3740
3981
|
onCollapse
|
|
3741
3982
|
} = props,
|
|
3742
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3983
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$j);
|
|
3743
3984
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$2);
|
|
3744
3985
|
const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
3745
3986
|
useEffect(() => {
|
|
@@ -3770,9 +4011,9 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3770
4011
|
className: `${BaseCard.className}__content`
|
|
3771
4012
|
}, body, actions) : null);
|
|
3772
4013
|
});
|
|
3773
|
-
BaseCard.className = CLASSNAME$
|
|
3774
|
-
BaseCard.defaultProps = DEFAULT_PROPS$
|
|
3775
|
-
BaseCard.displayName = COMPONENT_NAME$
|
|
4014
|
+
BaseCard.className = CLASSNAME$m;
|
|
4015
|
+
BaseCard.defaultProps = DEFAULT_PROPS$m;
|
|
4016
|
+
BaseCard.displayName = COMPONENT_NAME$m;
|
|
3776
4017
|
const Card = Object.assign(BaseCard, {
|
|
3777
4018
|
Header: CardHeader,
|
|
3778
4019
|
Body: CardBody,
|
|
@@ -3871,10 +4112,10 @@ const StyledCheckboxGroup = styled.div`
|
|
|
3871
4112
|
}
|
|
3872
4113
|
`;
|
|
3873
4114
|
|
|
3874
|
-
const _excluded$
|
|
3875
|
-
const COMPONENT_NAME$
|
|
3876
|
-
const CLASSNAME$
|
|
3877
|
-
const DEFAULT_PROPS$
|
|
4115
|
+
const _excluded$i = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
|
|
4116
|
+
const COMPONENT_NAME$l = 'CheckboxGroup';
|
|
4117
|
+
const CLASSNAME$l = 'redsift-checkbox-group';
|
|
4118
|
+
const DEFAULT_PROPS$l = {
|
|
3878
4119
|
color: ColorPalette.default,
|
|
3879
4120
|
orientation: CheckboxGroupOrientation.vertical
|
|
3880
4121
|
};
|
|
@@ -3899,7 +4140,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3899
4140
|
possibleValues,
|
|
3900
4141
|
value
|
|
3901
4142
|
} = props,
|
|
3902
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4143
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$i);
|
|
3903
4144
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
3904
4145
|
useEffect(() => {
|
|
3905
4146
|
if (value) {
|
|
@@ -3953,16 +4194,16 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3953
4194
|
className: `${CheckboxGroup.className}-description`
|
|
3954
4195
|
}, description));
|
|
3955
4196
|
});
|
|
3956
|
-
CheckboxGroup.className = CLASSNAME$
|
|
3957
|
-
CheckboxGroup.defaultProps = DEFAULT_PROPS$
|
|
3958
|
-
CheckboxGroup.displayName = COMPONENT_NAME$
|
|
4197
|
+
CheckboxGroup.className = CLASSNAME$l;
|
|
4198
|
+
CheckboxGroup.defaultProps = DEFAULT_PROPS$l;
|
|
4199
|
+
CheckboxGroup.displayName = COMPONENT_NAME$l;
|
|
3959
4200
|
|
|
3960
4201
|
/**
|
|
3961
4202
|
* Component style.
|
|
3962
4203
|
*/
|
|
3963
4204
|
const StyledCheckbox = styled.label`
|
|
3964
|
-
position: relative;
|
|
3965
4205
|
height: fit-content;
|
|
4206
|
+
position: relative;
|
|
3966
4207
|
width: fit-content;
|
|
3967
4208
|
${baseStyling}
|
|
3968
4209
|
|
|
@@ -4033,11 +4274,10 @@ const StyledCheckbox = styled.label`
|
|
|
4033
4274
|
);
|
|
4034
4275
|
`}
|
|
4035
4276
|
|
|
4036
|
-
${$isFocusVisible ? css`
|
|
4277
|
+
${$isFocusVisible && !$isDisabled ? css`
|
|
4037
4278
|
background-color: var(
|
|
4038
4279
|
--redsift-color-${$isColored ? 'default' : 'question'}-hover
|
|
4039
4280
|
);
|
|
4040
|
-
border-radius: 21px;
|
|
4041
4281
|
` : ''}
|
|
4042
4282
|
`;
|
|
4043
4283
|
}}
|
|
@@ -4061,26 +4301,12 @@ const StyledCheckbox = styled.label`
|
|
|
4061
4301
|
` : '';
|
|
4062
4302
|
}}
|
|
4063
4303
|
}
|
|
4064
|
-
|
|
4065
|
-
${_ref4 => {
|
|
4066
|
-
let {
|
|
4067
|
-
$isColored,
|
|
4068
|
-
$isFocusVisible
|
|
4069
|
-
} = _ref4;
|
|
4070
|
-
return $isFocusVisible ? css`
|
|
4071
|
-
.redsift-icon {
|
|
4072
|
-
background-color: var(
|
|
4073
|
-
--redsift-color-${$isColored ? 'default' : 'question'}-hover
|
|
4074
|
-
);
|
|
4075
|
-
}
|
|
4076
|
-
` : '';
|
|
4077
|
-
}}
|
|
4078
4304
|
`;
|
|
4079
4305
|
|
|
4080
|
-
const _excluded$
|
|
4081
|
-
const COMPONENT_NAME$
|
|
4082
|
-
const CLASSNAME$
|
|
4083
|
-
const DEFAULT_PROPS$
|
|
4306
|
+
const _excluded$h = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isControlled", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
4307
|
+
const COMPONENT_NAME$k = 'Checkbox';
|
|
4308
|
+
const CLASSNAME$k = 'redsift-checkbox';
|
|
4309
|
+
const DEFAULT_PROPS$k = {
|
|
4084
4310
|
isColored: true
|
|
4085
4311
|
};
|
|
4086
4312
|
|
|
@@ -4113,7 +4339,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4113
4339
|
onChange,
|
|
4114
4340
|
value
|
|
4115
4341
|
} = props,
|
|
4116
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4342
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$h);
|
|
4117
4343
|
const {
|
|
4118
4344
|
isFocusVisible,
|
|
4119
4345
|
focusProps
|
|
@@ -4193,9 +4419,9 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4193
4419
|
className: "label"
|
|
4194
4420
|
}, children) : null);
|
|
4195
4421
|
});
|
|
4196
|
-
Checkbox.className = CLASSNAME$
|
|
4197
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
4198
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
4422
|
+
Checkbox.className = CLASSNAME$k;
|
|
4423
|
+
Checkbox.defaultProps = DEFAULT_PROPS$k;
|
|
4424
|
+
Checkbox.displayName = COMPONENT_NAME$k;
|
|
4199
4425
|
|
|
4200
4426
|
const ConditionalWrapper = _ref => {
|
|
4201
4427
|
let {
|
|
@@ -4305,10 +4531,10 @@ const StyledShield = styled.div`
|
|
|
4305
4531
|
}}
|
|
4306
4532
|
`;
|
|
4307
4533
|
|
|
4308
|
-
const _excluded$
|
|
4309
|
-
const COMPONENT_NAME$
|
|
4310
|
-
const CLASSNAME$
|
|
4311
|
-
const DEFAULT_PROPS$
|
|
4534
|
+
const _excluded$g = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
|
|
4535
|
+
const COMPONENT_NAME$j = 'Shield';
|
|
4536
|
+
const CLASSNAME$j = 'redsift-shield';
|
|
4537
|
+
const DEFAULT_PROPS$j = {
|
|
4312
4538
|
variant: ShieldVariant.success
|
|
4313
4539
|
};
|
|
4314
4540
|
const getVariant = variant => {
|
|
@@ -4394,7 +4620,7 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4394
4620
|
isReversed,
|
|
4395
4621
|
variant
|
|
4396
4622
|
} = props,
|
|
4397
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4623
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$g);
|
|
4398
4624
|
const {
|
|
4399
4625
|
color,
|
|
4400
4626
|
icon
|
|
@@ -4428,9 +4654,9 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4428
4654
|
className: "icon"
|
|
4429
4655
|
})));
|
|
4430
4656
|
});
|
|
4431
|
-
Shield.className = CLASSNAME$
|
|
4432
|
-
Shield.defaultProps = DEFAULT_PROPS$
|
|
4433
|
-
Shield.displayName = COMPONENT_NAME$
|
|
4657
|
+
Shield.className = CLASSNAME$j;
|
|
4658
|
+
Shield.defaultProps = DEFAULT_PROPS$j;
|
|
4659
|
+
Shield.displayName = COMPONENT_NAME$j;
|
|
4434
4660
|
|
|
4435
4661
|
var collapse$1 = "Collapse details";
|
|
4436
4662
|
var expand$1 = "Expand details";
|
|
@@ -4455,9 +4681,18 @@ var intlMessages = {
|
|
|
4455
4681
|
* Component style.
|
|
4456
4682
|
*/
|
|
4457
4683
|
const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4684
|
+
${_ref => {
|
|
4685
|
+
let {
|
|
4686
|
+
$hideBackground
|
|
4687
|
+
} = _ref;
|
|
4688
|
+
return $hideBackground ? css`
|
|
4689
|
+
background: none;
|
|
4690
|
+
` : css`
|
|
4691
|
+
background-color: var(--redsift-color-neutral-xlightgrey);
|
|
4692
|
+
margin: 8px -16px;
|
|
4693
|
+
padding: 8px 16px;
|
|
4694
|
+
`;
|
|
4695
|
+
}}
|
|
4461
4696
|
|
|
4462
4697
|
.redsift-detailed-card-collapsible-section-items__caption {
|
|
4463
4698
|
color: var(--redsift-color-neutral-black);
|
|
@@ -4471,10 +4706,10 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
|
4471
4706
|
}
|
|
4472
4707
|
`;
|
|
4473
4708
|
|
|
4474
|
-
const _excluded$
|
|
4475
|
-
const COMPONENT_NAME$
|
|
4476
|
-
const CLASSNAME$
|
|
4477
|
-
const DEFAULT_PROPS$
|
|
4709
|
+
const _excluded$f = ["caption", "children", "className", "hideBackground"];
|
|
4710
|
+
const COMPONENT_NAME$i = 'DetailedCardCollapsibleSectionItems';
|
|
4711
|
+
const CLASSNAME$i = 'redsift-detailed-card-collapsible-section-items';
|
|
4712
|
+
const DEFAULT_PROPS$i = {};
|
|
4478
4713
|
|
|
4479
4714
|
/**
|
|
4480
4715
|
* The DetailedCardCollapsibleSectionItems Section component.
|
|
@@ -4483,19 +4718,21 @@ const DetailedCardCollapsibleSectionItems = /*#__PURE__*/forwardRef((props, ref)
|
|
|
4483
4718
|
const {
|
|
4484
4719
|
caption,
|
|
4485
4720
|
children,
|
|
4486
|
-
className
|
|
4721
|
+
className,
|
|
4722
|
+
hideBackground
|
|
4487
4723
|
} = props,
|
|
4488
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4724
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$f);
|
|
4489
4725
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardCollapsibleSectionItems, _extends$1({}, forwardedProps, {
|
|
4490
4726
|
className: classNames(DetailedCardCollapsibleSectionItems.className, className),
|
|
4491
|
-
ref: ref
|
|
4727
|
+
ref: ref,
|
|
4728
|
+
$hideBackground: hideBackground
|
|
4492
4729
|
}), children, caption ? /*#__PURE__*/React__default.createElement("div", {
|
|
4493
4730
|
className: `${DetailedCardCollapsibleSectionItems.className}__caption`
|
|
4494
4731
|
}, caption) : null);
|
|
4495
4732
|
});
|
|
4496
|
-
DetailedCardCollapsibleSectionItems.className = CLASSNAME$
|
|
4497
|
-
DetailedCardCollapsibleSectionItems.defaultProps = DEFAULT_PROPS$
|
|
4498
|
-
DetailedCardCollapsibleSectionItems.displayName = COMPONENT_NAME$
|
|
4733
|
+
DetailedCardCollapsibleSectionItems.className = CLASSNAME$i;
|
|
4734
|
+
DetailedCardCollapsibleSectionItems.defaultProps = DEFAULT_PROPS$i;
|
|
4735
|
+
DetailedCardCollapsibleSectionItems.displayName = COMPONENT_NAME$i;
|
|
4499
4736
|
|
|
4500
4737
|
/**
|
|
4501
4738
|
* Component style.
|
|
@@ -4509,11 +4746,7 @@ const StyledDetailedCardSection = styled.div`
|
|
|
4509
4746
|
}
|
|
4510
4747
|
|
|
4511
4748
|
.redsift-detailed-card-section-header__title {
|
|
4512
|
-
color: var(--redsift-color-neutral-black);
|
|
4513
|
-
font-family: var(--redsift-typography-font-family-raleway);
|
|
4514
|
-
font-size: 18px;
|
|
4515
4749
|
font-weight: 700;
|
|
4516
|
-
line-height: 22px;
|
|
4517
4750
|
padding: 6px 0px;
|
|
4518
4751
|
}
|
|
4519
4752
|
|
|
@@ -4540,229 +4773,28 @@ const StyledDetailedCardSection = styled.div`
|
|
|
4540
4773
|
} = _ref3;
|
|
4541
4774
|
return !$isCollapsed ? 'auto' : '0px';
|
|
4542
4775
|
}};
|
|
4543
|
-
|
|
4776
|
+
${_ref4 => {
|
|
4544
4777
|
let {
|
|
4545
4778
|
$isCollapsed
|
|
4546
4779
|
} = _ref4;
|
|
4547
|
-
return
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
$isCollapsed
|
|
4552
|
-
} = _ref5;
|
|
4553
|
-
return !$isCollapsed ? '8px 16px' : 'unset';
|
|
4780
|
+
return $isCollapsed ? css`
|
|
4781
|
+
margin: unset;
|
|
4782
|
+
padding: unset;
|
|
4783
|
+
` : '';
|
|
4554
4784
|
}};
|
|
4555
4785
|
}
|
|
4556
4786
|
`;
|
|
4557
4787
|
|
|
4558
|
-
const _excluded$c = ["children", "className", "header", "isCollapsed", "isCollapsible"];
|
|
4559
|
-
const COMPONENT_NAME$f = 'DetailedCardSection';
|
|
4560
|
-
const CLASSNAME$f = 'redsift-detailed-card-section';
|
|
4561
|
-
const DEFAULT_PROPS$f = {
|
|
4562
|
-
isCollapsible: true
|
|
4563
|
-
};
|
|
4564
|
-
const hasCollapsibleChildren = children => {
|
|
4565
|
-
let hasCollapsible = false;
|
|
4566
|
-
React__default.Children.map(children, child => {
|
|
4567
|
-
if (isComponent(DetailedCardCollapsibleSectionItems)(child)) {
|
|
4568
|
-
hasCollapsible = true;
|
|
4569
|
-
}
|
|
4570
|
-
});
|
|
4571
|
-
return hasCollapsible;
|
|
4572
|
-
};
|
|
4573
|
-
|
|
4574
4788
|
/**
|
|
4575
|
-
*
|
|
4576
|
-
*/
|
|
4577
|
-
const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4578
|
-
const {
|
|
4579
|
-
children,
|
|
4580
|
-
className,
|
|
4581
|
-
header,
|
|
4582
|
-
isCollapsed: propsIsCollapsed,
|
|
4583
|
-
isCollapsible: propsIsCollapsible
|
|
4584
|
-
} = props,
|
|
4585
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$c);
|
|
4586
|
-
const stringFormatter = useLocalizedStringFormatter(intlMessages);
|
|
4587
|
-
const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
|
|
4588
|
-
const [isCollapsed, setIsCollapsed] = useState(Boolean(propsIsCollapsed));
|
|
4589
|
-
return /*#__PURE__*/React__default.createElement(StyledDetailedCardSection, _extends$1({}, forwardedProps, {
|
|
4590
|
-
className: classNames(DetailedCardSection.className, className),
|
|
4591
|
-
ref: ref,
|
|
4592
|
-
$isCollapsed: isCollapsed
|
|
4593
|
-
}), /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
4594
|
-
justifyContent: "space-between",
|
|
4595
|
-
className: `${DetailedCardSection.className}__header`
|
|
4596
|
-
}, header ? /*#__PURE__*/React__default.createElement("div", {
|
|
4597
|
-
className: `${DetailedCardSection.className}-header__title`
|
|
4598
|
-
}, header) : null, isCollapsible ? /*#__PURE__*/React__default.createElement(IconButton, {
|
|
4599
|
-
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
4600
|
-
className: `${DetailedCardSection.className}-header__collapse-button`,
|
|
4601
|
-
color: "question",
|
|
4602
|
-
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
4603
|
-
onPress: () => {
|
|
4604
|
-
setIsCollapsed(isCollapsed => !isCollapsed);
|
|
4605
|
-
}
|
|
4606
|
-
}) : null), children);
|
|
4607
|
-
});
|
|
4608
|
-
DetailedCardSection.className = CLASSNAME$f;
|
|
4609
|
-
DetailedCardSection.defaultProps = DEFAULT_PROPS$f;
|
|
4610
|
-
DetailedCardSection.displayName = COMPONENT_NAME$f;
|
|
4611
|
-
|
|
4612
|
-
/**
|
|
4613
|
-
* Component style.
|
|
4614
|
-
*/
|
|
4615
|
-
const StyledDetailedCard = styled.div`
|
|
4616
|
-
${baseStyling}
|
|
4617
|
-
|
|
4618
|
-
background-color: var(--redsift-color-neutral-white);
|
|
4619
|
-
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
|
|
4620
|
-
padding: 16px;
|
|
4621
|
-
|
|
4622
|
-
.redsift-detailed-card__banner {
|
|
4623
|
-
align-items: center;
|
|
4624
|
-
background-color: ${_ref => {
|
|
4625
|
-
let {
|
|
4626
|
-
$color
|
|
4627
|
-
} = _ref;
|
|
4628
|
-
return css`var(--redsift-color-${$color}-primary)`;
|
|
4629
|
-
}};
|
|
4630
|
-
display: flex;
|
|
4631
|
-
height: 80px;
|
|
4632
|
-
justify-content: center;
|
|
4633
|
-
margin: -16px -16px 16px -16px;
|
|
4634
|
-
width: calc(100% + 32px);
|
|
4635
|
-
}
|
|
4636
|
-
|
|
4637
|
-
.redsift-detailed-card__collapse-buttons {
|
|
4638
|
-
width: 100%;
|
|
4639
|
-
}
|
|
4640
|
-
`;
|
|
4641
|
-
|
|
4642
|
-
/**
|
|
4643
|
-
* Component style.
|
|
4644
|
-
*/
|
|
4645
|
-
const StyledDetailedCardHeader = styled.div`
|
|
4646
|
-
margin: 8px 0;
|
|
4647
|
-
|
|
4648
|
-
.redsift-detailed-card-header__header {
|
|
4649
|
-
font-family: var(--redsift-typography-font-family-raleway);
|
|
4650
|
-
font-size: 32px;
|
|
4651
|
-
font-weight: 500;
|
|
4652
|
-
line-height: 32px;
|
|
4653
|
-
margin-bottom: 16px;
|
|
4654
|
-
}
|
|
4655
|
-
`;
|
|
4656
|
-
|
|
4657
|
-
const _excluded$b = ["children", "className", "header", "headingProps"];
|
|
4658
|
-
const COMPONENT_NAME$e = 'DetailedCardHeader';
|
|
4659
|
-
const CLASSNAME$e = 'redsift-detailed-card-header';
|
|
4660
|
-
const DEFAULT_PROPS$e = {};
|
|
4661
|
-
|
|
4662
|
-
/**
|
|
4663
|
-
* The DetailedCardHeader component.
|
|
4664
|
-
*/
|
|
4665
|
-
const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4666
|
-
const {
|
|
4667
|
-
children,
|
|
4668
|
-
className,
|
|
4669
|
-
header,
|
|
4670
|
-
headingProps
|
|
4671
|
-
} = props,
|
|
4672
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
4673
|
-
return /*#__PURE__*/React__default.createElement(StyledDetailedCardHeader, _extends$1({}, forwardedProps, {
|
|
4674
|
-
className: classNames(DetailedCardHeader.className, className),
|
|
4675
|
-
ref: ref
|
|
4676
|
-
}), header ? /*#__PURE__*/React__default.createElement(Heading, _extends$1({
|
|
4677
|
-
as: "h2",
|
|
4678
|
-
className: `${DetailedCardHeader.className}__header`,
|
|
4679
|
-
variant: "h2"
|
|
4680
|
-
}, headingProps), header) : null, children);
|
|
4681
|
-
});
|
|
4682
|
-
DetailedCardHeader.className = CLASSNAME$e;
|
|
4683
|
-
DetailedCardHeader.defaultProps = DEFAULT_PROPS$e;
|
|
4684
|
-
DetailedCardHeader.displayName = COMPONENT_NAME$e;
|
|
4685
|
-
|
|
4686
|
-
/**
|
|
4687
|
-
* Component style.
|
|
4688
|
-
*/
|
|
4689
|
-
const StyledPill = styled.div`
|
|
4690
|
-
width: fit-content;
|
|
4691
|
-
${baseStyling}
|
|
4692
|
-
|
|
4693
|
-
padding: 0 6.5px;
|
|
4694
|
-
text-align: center;
|
|
4695
|
-
word-break: ${_ref => {
|
|
4696
|
-
let {
|
|
4697
|
-
$autoBreak
|
|
4698
|
-
} = _ref;
|
|
4699
|
-
return $autoBreak ? 'break-word' : 'normal';
|
|
4700
|
-
}};
|
|
4701
|
-
|
|
4702
|
-
${_ref2 => {
|
|
4703
|
-
let {
|
|
4704
|
-
$color
|
|
4705
|
-
} = _ref2;
|
|
4706
|
-
return css`
|
|
4707
|
-
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-black);' : $color === 'white' ? 'background-color: var(--redsift-color-neutral-white);' : $color === 'error' ? 'background-color: var(--redsift-data-viz-color-red-default);' : $color === 'warning' ? 'background-color: var(--redsift-data-viz-color-orange-default);' : $color === 'success' ? 'background-color: var(--redsift-data-viz-color-green-default);' : `background-color: var(--redsift-data-viz-color-${$color}-default);`}
|
|
4708
|
-
|
|
4709
|
-
&,
|
|
4710
|
-
.redsift-icon {
|
|
4711
|
-
color: var(
|
|
4712
|
-
--redsift-color-neutral-${$color === 'black' ? 'white' : 'black'}
|
|
4713
|
-
);
|
|
4714
|
-
}
|
|
4715
|
-
`;
|
|
4716
|
-
}}}
|
|
4717
|
-
|
|
4718
|
-
&,
|
|
4719
|
-
.redsift-icon {
|
|
4720
|
-
font-family: var(--redsift-typography-pill-font-family);
|
|
4721
|
-
font-size: var(--redsift-typography-pill-font-size);
|
|
4722
|
-
font-weight: var(--redsift-typography-pill-font-weight);
|
|
4723
|
-
line-height: var(--redsift-typography-pill-line-height);
|
|
4724
|
-
}
|
|
4725
|
-
`;
|
|
4726
|
-
|
|
4727
|
-
const _excluded$a = ["autoBreak", "children", "className", "color"];
|
|
4728
|
-
const COMPONENT_NAME$d = 'Pill';
|
|
4729
|
-
const CLASSNAME$d = 'redsift-badge';
|
|
4730
|
-
const DEFAULT_PROPS$d = {
|
|
4731
|
-
color: DataVizColorPalette.blue,
|
|
4732
|
-
height: 'fit-content'
|
|
4733
|
-
};
|
|
4734
|
-
|
|
4735
|
-
/**
|
|
4736
|
-
* The Pill component.
|
|
4737
|
-
*/
|
|
4738
|
-
const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4739
|
-
const {
|
|
4740
|
-
autoBreak,
|
|
4741
|
-
children,
|
|
4742
|
-
className,
|
|
4743
|
-
color
|
|
4744
|
-
} = props,
|
|
4745
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$a);
|
|
4746
|
-
return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
|
|
4747
|
-
$autoBreak: autoBreak,
|
|
4748
|
-
$color: color,
|
|
4749
|
-
className: classNames(Pill.className, className),
|
|
4750
|
-
ref: ref
|
|
4751
|
-
}), children);
|
|
4752
|
-
});
|
|
4753
|
-
Pill.className = CLASSNAME$d;
|
|
4754
|
-
Pill.defaultProps = DEFAULT_PROPS$d;
|
|
4755
|
-
Pill.displayName = COMPONENT_NAME$d;
|
|
4756
|
-
|
|
4757
|
-
/**
|
|
4758
|
-
* Component variant.
|
|
4789
|
+
* Component variant.
|
|
4759
4790
|
*/
|
|
4760
4791
|
const TextVariant = {
|
|
4792
|
+
subtitle: 'subtitle',
|
|
4761
4793
|
body: 'body',
|
|
4794
|
+
body2: 'body2',
|
|
4762
4795
|
button: 'button',
|
|
4763
4796
|
caption: 'caption',
|
|
4764
|
-
inherit: 'inherit'
|
|
4765
|
-
subtitle1: 'subtitle1'
|
|
4797
|
+
inherit: 'inherit'
|
|
4766
4798
|
};
|
|
4767
4799
|
const TextComponent = {
|
|
4768
4800
|
p: 'p',
|
|
@@ -4821,6 +4853,7 @@ const StyledText = styled.span`
|
|
|
4821
4853
|
$as,
|
|
4822
4854
|
$fontFamily,
|
|
4823
4855
|
$fontSize,
|
|
4856
|
+
$lineHeight,
|
|
4824
4857
|
$variant
|
|
4825
4858
|
} = _ref3;
|
|
4826
4859
|
return !$variant ? css`
|
|
@@ -4832,6 +4865,9 @@ const StyledText = styled.span`
|
|
|
4832
4865
|
${$fontSize ? css`
|
|
4833
4866
|
font-size: ${$fontSize};
|
|
4834
4867
|
` : ''}
|
|
4868
|
+
${$lineHeight ? css`
|
|
4869
|
+
line-height: ${$lineHeight};
|
|
4870
|
+
` : ''}
|
|
4835
4871
|
${$as === TextComponent.b ? css`
|
|
4836
4872
|
font-weight: var(--redsift-typography-font-weight-bold);
|
|
4837
4873
|
` : $as === TextComponent.sup || $as === TextComponent.sub ? css`
|
|
@@ -4841,13 +4877,13 @@ const StyledText = styled.span`
|
|
|
4841
4877
|
font-family: ${$fontFamily ? css`var(--redsift-typography-font-family-${$fontFamily})` : css`inherit`};
|
|
4842
4878
|
font-size: ${$fontSize ? $fontSize : $as === TextComponent.sup || $as === TextComponent.sub ? '12px' : css`inherit`};
|
|
4843
4879
|
font-weight: ${$as === TextComponent.b ? 'var(--redsift-typography-font-weight-bold)' : 'inherit'};
|
|
4844
|
-
line-height: inherit;
|
|
4880
|
+
line-height: ${$lineHeight ? $lineHeight : css`inherit`};
|
|
4845
4881
|
text-transform: inherit;
|
|
4846
4882
|
` : css`
|
|
4847
4883
|
font-family: ${$fontFamily ? css`var(--redsift-typography-font-family-${$fontFamily})` : css`var(--redsift-typography-${$variant}-font-family)`};
|
|
4848
4884
|
font-size: ${$fontSize ? $fontSize : css`var(--redsift-typography-${$variant}-font-size)`};
|
|
4849
4885
|
font-weight: var(--redsift-typography-${$variant}-font-weight);
|
|
4850
|
-
line-height: var(--redsift-typography-${$variant}-line-height);
|
|
4886
|
+
line-height: ${$lineHeight ? $lineHeight : css`var(--redsift-typography-${$variant}-line-height)`};
|
|
4851
4887
|
text-transform: var(--redsift-typography-${$variant}-text-transform);
|
|
4852
4888
|
`;
|
|
4853
4889
|
}}
|
|
@@ -4866,10 +4902,10 @@ const StyledText = styled.span`
|
|
|
4866
4902
|
}}
|
|
4867
4903
|
`;
|
|
4868
4904
|
|
|
4869
|
-
const _excluded$
|
|
4870
|
-
const COMPONENT_NAME$
|
|
4871
|
-
const CLASSNAME$
|
|
4872
|
-
const DEFAULT_PROPS$
|
|
4905
|
+
const _excluded$e = ["as", "children", "className", "color", "fontFamily", "fontSize", "lineHeight", "noWrap", "variant"];
|
|
4906
|
+
const COMPONENT_NAME$h = 'Text';
|
|
4907
|
+
const CLASSNAME$h = 'redsift-text';
|
|
4908
|
+
const DEFAULT_PROPS$h = {
|
|
4873
4909
|
fontFamily: FontFamily.raleway
|
|
4874
4910
|
};
|
|
4875
4911
|
|
|
@@ -4884,10 +4920,11 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4884
4920
|
color,
|
|
4885
4921
|
fontFamily,
|
|
4886
4922
|
fontSize,
|
|
4923
|
+
lineHeight,
|
|
4887
4924
|
noWrap,
|
|
4888
4925
|
variant
|
|
4889
4926
|
} = props,
|
|
4890
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4927
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$e);
|
|
4891
4928
|
return /*#__PURE__*/React__default.createElement(StyledText, _extends$1({
|
|
4892
4929
|
as: as
|
|
4893
4930
|
}, forwardedProps, {
|
|
@@ -4897,86 +4934,311 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4897
4934
|
$color: color,
|
|
4898
4935
|
$fontFamily: fontFamily,
|
|
4899
4936
|
$fontSize: fontSize,
|
|
4937
|
+
$lineHeight: lineHeight,
|
|
4900
4938
|
$noWrap: noWrap,
|
|
4901
4939
|
$variant: variant
|
|
4902
4940
|
}), children);
|
|
4903
4941
|
});
|
|
4904
|
-
Text.className = CLASSNAME$
|
|
4905
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
4906
|
-
Text.displayName = COMPONENT_NAME$
|
|
4942
|
+
Text.className = CLASSNAME$h;
|
|
4943
|
+
Text.defaultProps = DEFAULT_PROPS$h;
|
|
4944
|
+
Text.displayName = COMPONENT_NAME$h;
|
|
4945
|
+
|
|
4946
|
+
const _excluded$d = ["badge", "children", "className", "header", "isCollapsed", "isCollapsible", "isLoading"];
|
|
4947
|
+
const COMPONENT_NAME$g = 'DetailedCardSection';
|
|
4948
|
+
const CLASSNAME$g = 'redsift-detailed-card-section';
|
|
4949
|
+
const DEFAULT_PROPS$g = {
|
|
4950
|
+
isCollapsible: true
|
|
4951
|
+
};
|
|
4952
|
+
const hasCollapsibleChildren = children => {
|
|
4953
|
+
let hasCollapsible = false;
|
|
4954
|
+
React__default.Children.map(children, child => {
|
|
4955
|
+
if (isComponent(DetailedCardCollapsibleSectionItems)(child)) {
|
|
4956
|
+
hasCollapsible = true;
|
|
4957
|
+
}
|
|
4958
|
+
});
|
|
4959
|
+
return hasCollapsible;
|
|
4960
|
+
};
|
|
4961
|
+
|
|
4962
|
+
/**
|
|
4963
|
+
* The DetailedCardSection component.
|
|
4964
|
+
*/
|
|
4965
|
+
const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4966
|
+
const {
|
|
4967
|
+
badge,
|
|
4968
|
+
children,
|
|
4969
|
+
className,
|
|
4970
|
+
header,
|
|
4971
|
+
isCollapsed: propsIsCollapsed,
|
|
4972
|
+
isCollapsible: propsIsCollapsible,
|
|
4973
|
+
isLoading
|
|
4974
|
+
} = props,
|
|
4975
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$d);
|
|
4976
|
+
const stringFormatter = useLocalizedStringFormatter(intlMessages);
|
|
4977
|
+
const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
|
|
4978
|
+
const [isCollapsed, setIsCollapsed] = useState(Boolean(propsIsCollapsed));
|
|
4979
|
+
return /*#__PURE__*/React__default.createElement(StyledDetailedCardSection, _extends$1({}, forwardedProps, {
|
|
4980
|
+
className: classNames(DetailedCardSection.className, className),
|
|
4981
|
+
ref: ref,
|
|
4982
|
+
$isCollapsed: isCollapsed
|
|
4983
|
+
}), /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
4984
|
+
justifyContent: "space-between",
|
|
4985
|
+
className: `${DetailedCardSection.className}__header`
|
|
4986
|
+
}, header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
|
|
4987
|
+
variant: "body",
|
|
4988
|
+
isLoaded: !isLoading,
|
|
4989
|
+
fontSize: "18px",
|
|
4990
|
+
lineHeight: "22px",
|
|
4991
|
+
marginTop: "6px",
|
|
4992
|
+
marginBottom: "12px"
|
|
4993
|
+
}, /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
4994
|
+
alignItems: "center",
|
|
4995
|
+
gap: "8px"
|
|
4996
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
4997
|
+
className: `${DetailedCardSection.className}-header__title`,
|
|
4998
|
+
color: "black",
|
|
4999
|
+
fontFamily: "raleway",
|
|
5000
|
+
fontSize: "18px",
|
|
5001
|
+
lineHeight: "22px"
|
|
5002
|
+
}, header), badge ? /*#__PURE__*/React__default.createElement(Badge, _extends$1({
|
|
5003
|
+
variant: BadgeVariant.standard
|
|
5004
|
+
}, badge)) : null)) : null, isCollapsible && !isLoading ? /*#__PURE__*/React__default.createElement(IconButton, {
|
|
5005
|
+
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
5006
|
+
className: `${DetailedCardSection.className}-header__collapse-button`,
|
|
5007
|
+
color: "question",
|
|
5008
|
+
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
5009
|
+
onPress: () => {
|
|
5010
|
+
setIsCollapsed(isCollapsed => !isCollapsed);
|
|
5011
|
+
}
|
|
5012
|
+
}) : null), children);
|
|
5013
|
+
});
|
|
5014
|
+
DetailedCardSection.className = CLASSNAME$g;
|
|
5015
|
+
DetailedCardSection.defaultProps = DEFAULT_PROPS$g;
|
|
5016
|
+
DetailedCardSection.displayName = COMPONENT_NAME$g;
|
|
4907
5017
|
|
|
4908
5018
|
/**
|
|
4909
5019
|
* Component style.
|
|
4910
5020
|
*/
|
|
4911
|
-
const
|
|
4912
|
-
|
|
5021
|
+
const StyledDetailedCard = styled.div`
|
|
5022
|
+
${baseStyling}
|
|
4913
5023
|
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
height: 28px;
|
|
4918
|
-
justify-content: center;
|
|
4919
|
-
padding: 0 4px;
|
|
4920
|
-
}
|
|
5024
|
+
background-color: var(--redsift-color-neutral-white);
|
|
5025
|
+
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
|
|
5026
|
+
padding: 16px;
|
|
4921
5027
|
|
|
4922
|
-
.redsift-detailed-
|
|
4923
|
-
|
|
5028
|
+
.redsift-detailed-card__banner {
|
|
5029
|
+
background-color: ${_ref => {
|
|
5030
|
+
let {
|
|
5031
|
+
$color
|
|
5032
|
+
} = _ref;
|
|
5033
|
+
return css`var(--redsift-color-${$color}-primary)`;
|
|
5034
|
+
}};
|
|
4924
5035
|
}
|
|
4925
5036
|
|
|
4926
|
-
.redsift-detailed-
|
|
4927
|
-
|
|
4928
|
-
margin-right: 8px;
|
|
5037
|
+
.redsift-detailed-card__collapse-buttons {
|
|
5038
|
+
width: 100%;
|
|
4929
5039
|
}
|
|
5040
|
+
`;
|
|
4930
5041
|
|
|
4931
|
-
|
|
4932
|
-
|
|
5042
|
+
/**
|
|
5043
|
+
* Component style.
|
|
5044
|
+
*/
|
|
5045
|
+
const StyledDetailedCardHeader = styled.div`
|
|
5046
|
+
margin: 8px 0;
|
|
5047
|
+
|
|
5048
|
+
.redsift-detailed-card-header__header {
|
|
5049
|
+
font-family: var(--redsift-typography-font-family-raleway);
|
|
5050
|
+
font-size: 32px;
|
|
5051
|
+
font-weight: 500;
|
|
5052
|
+
line-height: 32px;
|
|
5053
|
+
margin-bottom: 16px;
|
|
4933
5054
|
}
|
|
4934
5055
|
`;
|
|
4935
5056
|
|
|
4936
|
-
const _excluded$
|
|
4937
|
-
const COMPONENT_NAME$
|
|
4938
|
-
const CLASSNAME$
|
|
4939
|
-
const DEFAULT_PROPS$
|
|
5057
|
+
const _excluded$c = ["children", "className", "header", "headingProps", "isLoading"];
|
|
5058
|
+
const COMPONENT_NAME$f = 'DetailedCardHeader';
|
|
5059
|
+
const CLASSNAME$f = 'redsift-detailed-card-header';
|
|
5060
|
+
const DEFAULT_PROPS$f = {};
|
|
4940
5061
|
|
|
4941
5062
|
/**
|
|
4942
|
-
* The
|
|
5063
|
+
* The DetailedCardHeader component.
|
|
4943
5064
|
*/
|
|
4944
|
-
const
|
|
5065
|
+
const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4945
5066
|
const {
|
|
4946
5067
|
children,
|
|
4947
5068
|
className,
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
pill,
|
|
4952
|
-
pillProps,
|
|
4953
|
-
shield
|
|
5069
|
+
header,
|
|
5070
|
+
headingProps,
|
|
5071
|
+
isLoading
|
|
4954
5072
|
} = props,
|
|
4955
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4956
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4957
|
-
className: classNames(
|
|
5073
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$c);
|
|
5074
|
+
return /*#__PURE__*/React__default.createElement(StyledDetailedCardHeader, _extends$1({}, forwardedProps, {
|
|
5075
|
+
className: classNames(DetailedCardHeader.className, className),
|
|
4958
5076
|
ref: ref
|
|
4959
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
5077
|
+
}), header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
|
|
5078
|
+
variant: "h2",
|
|
5079
|
+
isLoaded: !isLoading,
|
|
5080
|
+
height: "32px",
|
|
5081
|
+
marginBottom: "16px"
|
|
5082
|
+
}, /*#__PURE__*/React__default.createElement(Heading, _extends$1({
|
|
5083
|
+
as: "h2",
|
|
5084
|
+
className: `${DetailedCardHeader.className}__header`,
|
|
5085
|
+
variant: "h2"
|
|
5086
|
+
}, headingProps), header)) : null, children);
|
|
5087
|
+
});
|
|
5088
|
+
DetailedCardHeader.className = CLASSNAME$f;
|
|
5089
|
+
DetailedCardHeader.defaultProps = DEFAULT_PROPS$f;
|
|
5090
|
+
DetailedCardHeader.displayName = COMPONENT_NAME$f;
|
|
5091
|
+
|
|
5092
|
+
/**
|
|
5093
|
+
* Component style.
|
|
5094
|
+
*/
|
|
5095
|
+
const StyledPill = styled.div`
|
|
5096
|
+
width: fit-content;
|
|
5097
|
+
${baseStyling}
|
|
5098
|
+
|
|
5099
|
+
padding: 0 6.5px;
|
|
5100
|
+
text-align: center;
|
|
5101
|
+
word-break: ${_ref => {
|
|
5102
|
+
let {
|
|
5103
|
+
$autoBreak
|
|
5104
|
+
} = _ref;
|
|
5105
|
+
return $autoBreak ? 'break-word' : 'normal';
|
|
5106
|
+
}};
|
|
5107
|
+
|
|
5108
|
+
${_ref2 => {
|
|
5109
|
+
let {
|
|
5110
|
+
$color
|
|
5111
|
+
} = _ref2;
|
|
5112
|
+
return css`
|
|
5113
|
+
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-black);' : $color === 'white' ? 'background-color: var(--redsift-color-neutral-white);' : $color === 'error' ? 'background-color: var(--redsift-data-viz-color-red-default);' : $color === 'warning' ? 'background-color: var(--redsift-data-viz-color-orange-default);' : $color === 'success' ? 'background-color: var(--redsift-data-viz-color-green-default);' : `background-color: var(--redsift-data-viz-color-${$color}-default);`}
|
|
5114
|
+
|
|
5115
|
+
&,
|
|
5116
|
+
.redsift-icon {
|
|
5117
|
+
color: var(
|
|
5118
|
+
--redsift-color-neutral-${$color === 'black' ? 'white' : 'black'}
|
|
5119
|
+
);
|
|
5120
|
+
}
|
|
5121
|
+
`;
|
|
5122
|
+
}}}
|
|
5123
|
+
|
|
5124
|
+
&,
|
|
5125
|
+
.redsift-icon {
|
|
5126
|
+
font-family: var(--redsift-typography-pill-font-family);
|
|
5127
|
+
font-size: var(--redsift-typography-pill-font-size);
|
|
5128
|
+
font-weight: var(--redsift-typography-pill-font-weight);
|
|
5129
|
+
line-height: var(--redsift-typography-pill-line-height);
|
|
5130
|
+
}
|
|
5131
|
+
`;
|
|
5132
|
+
|
|
5133
|
+
const _excluded$b = ["autoBreak", "children", "className", "color"];
|
|
5134
|
+
const COMPONENT_NAME$e = 'Pill';
|
|
5135
|
+
const CLASSNAME$e = 'redsift-pill';
|
|
5136
|
+
const DEFAULT_PROPS$e = {
|
|
5137
|
+
color: DataVizColorPalette.blue,
|
|
5138
|
+
height: 'fit-content'
|
|
5139
|
+
};
|
|
5140
|
+
|
|
5141
|
+
/**
|
|
5142
|
+
* The Pill component.
|
|
5143
|
+
*/
|
|
5144
|
+
const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5145
|
+
const {
|
|
5146
|
+
autoBreak,
|
|
5147
|
+
children,
|
|
5148
|
+
className,
|
|
5149
|
+
color
|
|
5150
|
+
} = props,
|
|
5151
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
5152
|
+
return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
|
|
5153
|
+
$autoBreak: autoBreak,
|
|
5154
|
+
$color: color,
|
|
5155
|
+
className: classNames(Pill.className, className),
|
|
5156
|
+
ref: ref
|
|
5157
|
+
}), children);
|
|
5158
|
+
});
|
|
5159
|
+
Pill.className = CLASSNAME$e;
|
|
5160
|
+
Pill.defaultProps = DEFAULT_PROPS$e;
|
|
5161
|
+
Pill.displayName = COMPONENT_NAME$e;
|
|
5162
|
+
|
|
5163
|
+
/**
|
|
5164
|
+
* Component style.
|
|
5165
|
+
*/
|
|
5166
|
+
const StyledDetailedCardSectionItem = styled.div`
|
|
5167
|
+
padding: 8px 0;
|
|
5168
|
+
|
|
5169
|
+
.redsift-detailed-card-section-item-header__shield {
|
|
5170
|
+
align-items: center;
|
|
5171
|
+
display: flex;
|
|
5172
|
+
height: 28px;
|
|
5173
|
+
justify-content: center;
|
|
5174
|
+
padding: 0 4px;
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
.redsift-detailed-card-section-item-header__icon {
|
|
5178
|
+
height: 28px;
|
|
5179
|
+
}
|
|
5180
|
+
|
|
5181
|
+
.redsift-detailed-card-section-item-header__pill {
|
|
5182
|
+
display: inline-block;
|
|
5183
|
+
margin-right: 8px;
|
|
5184
|
+
}
|
|
5185
|
+
|
|
5186
|
+
.redsift-detailed-card-section-item-header__description {
|
|
5187
|
+
line-height: 28px;
|
|
5188
|
+
}
|
|
5189
|
+
`;
|
|
5190
|
+
|
|
5191
|
+
const _excluded$a = ["children", "className", "description", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
|
|
5192
|
+
const COMPONENT_NAME$d = 'DetailedCardSectionItem';
|
|
5193
|
+
const CLASSNAME$d = 'redsift-detailed-card-section-item';
|
|
5194
|
+
const DEFAULT_PROPS$d = {};
|
|
5195
|
+
|
|
5196
|
+
/**
|
|
5197
|
+
* The DetailedCardSectionItems component.
|
|
5198
|
+
*/
|
|
5199
|
+
const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5200
|
+
const {
|
|
5201
|
+
children,
|
|
5202
|
+
className,
|
|
5203
|
+
description,
|
|
5204
|
+
icon,
|
|
5205
|
+
iconProps,
|
|
5206
|
+
isLoading,
|
|
5207
|
+
pill,
|
|
5208
|
+
pillProps,
|
|
5209
|
+
shield
|
|
5210
|
+
} = props,
|
|
5211
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$a);
|
|
5212
|
+
return /*#__PURE__*/React__default.createElement(StyledDetailedCardSectionItem, _extends$1({}, forwardedProps, {
|
|
5213
|
+
className: classNames(DetailedCardSectionItem.className, className),
|
|
5214
|
+
ref: ref
|
|
5215
|
+
}), /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
4960
5216
|
alignItems: "flex-start",
|
|
4961
5217
|
className: `${DetailedCardSectionItem.className}__header`
|
|
4962
|
-
}, shield ? /*#__PURE__*/React__default.createElement(
|
|
5218
|
+
}, shield ? /*#__PURE__*/React__default.createElement(Skeleton, {
|
|
5219
|
+
isLoaded: !isLoading
|
|
5220
|
+
}, /*#__PURE__*/React__default.createElement(Shield, {
|
|
4963
5221
|
variant: shield,
|
|
4964
5222
|
className: `${DetailedCardSectionItem.className}-header__shield`
|
|
4965
|
-
}) : icon ? /*#__PURE__*/React__default.createElement(
|
|
5223
|
+
})) : icon ? /*#__PURE__*/React__default.createElement(Skeleton, {
|
|
5224
|
+
isLoaded: !isLoading
|
|
5225
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4966
5226
|
className: `${DetailedCardSectionItem.className}-header__icon`
|
|
4967
5227
|
}, /*#__PURE__*/React__default.createElement(Icon, _extends$1({
|
|
4968
5228
|
icon: icon
|
|
4969
5229
|
}, iconProps, {
|
|
4970
5230
|
size: "large"
|
|
4971
|
-
}))) : null, description || pill ? /*#__PURE__*/React__default.createElement("div", {
|
|
5231
|
+
})))) : null, description || pill ? /*#__PURE__*/React__default.createElement("div", {
|
|
4972
5232
|
className: `${DetailedCardSectionItem.className}-header__description`
|
|
5233
|
+
}, /*#__PURE__*/React__default.createElement(Skeleton, {
|
|
5234
|
+
isLoaded: !isLoading
|
|
4973
5235
|
}, pill && /*#__PURE__*/React__default.createElement(Pill, _extends$1({
|
|
4974
5236
|
className: `${DetailedCardSectionItem.className}-header__pill`
|
|
4975
|
-
}, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, null, description) : description) : null), children);
|
|
5237
|
+
}, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, null, description) : description)) : null), children);
|
|
4976
5238
|
});
|
|
4977
|
-
DetailedCardSectionItem.className = CLASSNAME$
|
|
4978
|
-
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$
|
|
4979
|
-
DetailedCardSectionItem.displayName = COMPONENT_NAME$
|
|
5239
|
+
DetailedCardSectionItem.className = CLASSNAME$d;
|
|
5240
|
+
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$d;
|
|
5241
|
+
DetailedCardSectionItem.displayName = COMPONENT_NAME$d;
|
|
4980
5242
|
|
|
4981
5243
|
/*!
|
|
4982
5244
|
* tabbable 6.1.1
|
|
@@ -8501,9 +8763,9 @@ const StyledTooltipContent = styled.div`
|
|
|
8501
8763
|
}}
|
|
8502
8764
|
`;
|
|
8503
8765
|
|
|
8504
|
-
const COMPONENT_NAME$
|
|
8505
|
-
const CLASSNAME$
|
|
8506
|
-
const DEFAULT_PROPS$
|
|
8766
|
+
const COMPONENT_NAME$c = 'TooltipContent';
|
|
8767
|
+
const CLASSNAME$c = 'redsift-tooltip-content';
|
|
8768
|
+
const DEFAULT_PROPS$c = {};
|
|
8507
8769
|
|
|
8508
8770
|
/**
|
|
8509
8771
|
* The TooltipContent component.
|
|
@@ -8565,13 +8827,13 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8565
8827
|
className: `${TooltipContent.className}__inner`
|
|
8566
8828
|
}, children)));
|
|
8567
8829
|
});
|
|
8568
|
-
TooltipContent.className = CLASSNAME$
|
|
8569
|
-
TooltipContent.defaultProps = DEFAULT_PROPS$
|
|
8570
|
-
TooltipContent.displayName = COMPONENT_NAME$
|
|
8830
|
+
TooltipContent.className = CLASSNAME$c;
|
|
8831
|
+
TooltipContent.defaultProps = DEFAULT_PROPS$c;
|
|
8832
|
+
TooltipContent.displayName = COMPONENT_NAME$c;
|
|
8571
8833
|
|
|
8572
|
-
const COMPONENT_NAME$
|
|
8573
|
-
const CLASSNAME$
|
|
8574
|
-
const DEFAULT_PROPS$
|
|
8834
|
+
const COMPONENT_NAME$b = 'TooltipTrigger';
|
|
8835
|
+
const CLASSNAME$b = 'redsift-tooltip-trigger';
|
|
8836
|
+
const DEFAULT_PROPS$b = {};
|
|
8575
8837
|
|
|
8576
8838
|
/**
|
|
8577
8839
|
* The TooltipTrigger component.
|
|
@@ -8598,9 +8860,9 @@ const TooltipTrigger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8598
8860
|
ref: triggerRef
|
|
8599
8861
|
}, getReferenceProps(props)), children);
|
|
8600
8862
|
});
|
|
8601
|
-
TooltipTrigger.className = CLASSNAME$
|
|
8602
|
-
TooltipTrigger.defaultProps = DEFAULT_PROPS$
|
|
8603
|
-
TooltipTrigger.displayName = COMPONENT_NAME$
|
|
8863
|
+
TooltipTrigger.className = CLASSNAME$b;
|
|
8864
|
+
TooltipTrigger.defaultProps = DEFAULT_PROPS$b;
|
|
8865
|
+
TooltipTrigger.displayName = COMPONENT_NAME$b;
|
|
8604
8866
|
|
|
8605
8867
|
function useTooltip(_ref) {
|
|
8606
8868
|
let {
|
|
@@ -8661,9 +8923,9 @@ function useTooltip(_ref) {
|
|
|
8661
8923
|
}), [isOpen, handleOpen, interactions, data, arrowRef, tooltipId]);
|
|
8662
8924
|
}
|
|
8663
8925
|
|
|
8664
|
-
const COMPONENT_NAME$
|
|
8665
|
-
const CLASSNAME$
|
|
8666
|
-
const DEFAULT_PROPS$
|
|
8926
|
+
const COMPONENT_NAME$a = 'Tooltip';
|
|
8927
|
+
const CLASSNAME$a = 'redsift-tooltip';
|
|
8928
|
+
const DEFAULT_PROPS$a = {
|
|
8667
8929
|
delay: 500,
|
|
8668
8930
|
placement: TooltipPlacement.top
|
|
8669
8931
|
};
|
|
@@ -8694,9 +8956,9 @@ const BaseTooltip = props => {
|
|
|
8694
8956
|
value: tooltip
|
|
8695
8957
|
}, trigger, content);
|
|
8696
8958
|
};
|
|
8697
|
-
BaseTooltip.className = CLASSNAME$
|
|
8698
|
-
BaseTooltip.defaultProps = DEFAULT_PROPS$
|
|
8699
|
-
BaseTooltip.displayName = COMPONENT_NAME$
|
|
8959
|
+
BaseTooltip.className = CLASSNAME$a;
|
|
8960
|
+
BaseTooltip.defaultProps = DEFAULT_PROPS$a;
|
|
8961
|
+
BaseTooltip.displayName = COMPONENT_NAME$a;
|
|
8700
8962
|
const Tooltip = Object.assign(BaseTooltip, {
|
|
8701
8963
|
Trigger: TooltipTrigger,
|
|
8702
8964
|
Content: TooltipContent
|
|
@@ -8710,10 +8972,10 @@ const useTooltipContext = () => {
|
|
|
8710
8972
|
return context;
|
|
8711
8973
|
};
|
|
8712
8974
|
|
|
8713
|
-
const _excluded$
|
|
8714
|
-
const COMPONENT_NAME$
|
|
8715
|
-
const CLASSNAME$
|
|
8716
|
-
const DEFAULT_PROPS$
|
|
8975
|
+
const _excluded$9 = ["areAllCollapsed", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield"];
|
|
8976
|
+
const COMPONENT_NAME$9 = 'DetailedCard';
|
|
8977
|
+
const CLASSNAME$9 = 'redsift-detailed-card';
|
|
8978
|
+
const DEFAULT_PROPS$9 = {
|
|
8717
8979
|
isCollapsible: true,
|
|
8718
8980
|
width: '400px'
|
|
8719
8981
|
};
|
|
@@ -8748,10 +9010,11 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8748
9010
|
defaultAllCollapsed,
|
|
8749
9011
|
icon,
|
|
8750
9012
|
isCollapsible: propsIsCollapsible,
|
|
9013
|
+
isLoading,
|
|
8751
9014
|
onCollapseAll,
|
|
8752
9015
|
shield
|
|
8753
9016
|
} = props,
|
|
8754
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9017
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$9);
|
|
8755
9018
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
|
|
8756
9019
|
const isCollapsible = propsIsCollapsible && hasMultipleCollapsibleChildren(children);
|
|
8757
9020
|
const [allCollapsed, setAllCollapsed] = useState({
|
|
@@ -8777,8 +9040,17 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8777
9040
|
className: classNames(BaseDetailedCard.className, className),
|
|
8778
9041
|
ref: ref,
|
|
8779
9042
|
$color: color
|
|
8780
|
-
}), color ? /*#__PURE__*/React__default.createElement(
|
|
8781
|
-
|
|
9043
|
+
}), color ? isLoading ? /*#__PURE__*/React__default.createElement(Skeleton, {
|
|
9044
|
+
height: "80px",
|
|
9045
|
+
width: "calc(100% + 32px)",
|
|
9046
|
+
margin: "-16px -16px 16px -16px"
|
|
9047
|
+
}) : /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
9048
|
+
className: `${BaseDetailedCard.className}__banner`,
|
|
9049
|
+
alignItems: "center",
|
|
9050
|
+
height: "80px",
|
|
9051
|
+
justifyContent: "center",
|
|
9052
|
+
margin: "-16px -16px 16px -16px",
|
|
9053
|
+
width: "calc(100% + 32px)"
|
|
8782
9054
|
}, shield ? /*#__PURE__*/React__default.createElement(Shield, {
|
|
8783
9055
|
variant: shield,
|
|
8784
9056
|
isOutlined: true,
|
|
@@ -8828,9 +9100,9 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8828
9100
|
return child;
|
|
8829
9101
|
}));
|
|
8830
9102
|
});
|
|
8831
|
-
BaseDetailedCard.className = CLASSNAME$
|
|
8832
|
-
BaseDetailedCard.defaultProps = DEFAULT_PROPS$
|
|
8833
|
-
BaseDetailedCard.displayName = COMPONENT_NAME$
|
|
9103
|
+
BaseDetailedCard.className = CLASSNAME$9;
|
|
9104
|
+
BaseDetailedCard.defaultProps = DEFAULT_PROPS$9;
|
|
9105
|
+
BaseDetailedCard.displayName = COMPONENT_NAME$9;
|
|
8834
9106
|
const DetailedCard = Object.assign(BaseDetailedCard, {
|
|
8835
9107
|
Header: DetailedCardHeader,
|
|
8836
9108
|
Section: DetailedCardSection,
|
|
@@ -8864,10 +9136,10 @@ const StyledGridItem = styled.div`
|
|
|
8864
9136
|
${baseInternalSpacing}
|
|
8865
9137
|
`;
|
|
8866
9138
|
|
|
8867
|
-
const _excluded$
|
|
8868
|
-
const COMPONENT_NAME$
|
|
8869
|
-
const CLASSNAME$
|
|
8870
|
-
const DEFAULT_PROPS$
|
|
9139
|
+
const _excluded$8 = ["children", "className"];
|
|
9140
|
+
const COMPONENT_NAME$8 = 'GridItem';
|
|
9141
|
+
const CLASSNAME$8 = 'redsift-grid-item';
|
|
9142
|
+
const DEFAULT_PROPS$8 = {};
|
|
8871
9143
|
|
|
8872
9144
|
/**
|
|
8873
9145
|
* The GridItem component.
|
|
@@ -8877,20 +9149,20 @@ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8877
9149
|
children,
|
|
8878
9150
|
className
|
|
8879
9151
|
} = props,
|
|
8880
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9152
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$8);
|
|
8881
9153
|
return /*#__PURE__*/React__default.createElement(StyledGridItem, _extends$1({}, forwardedProps, {
|
|
8882
9154
|
className: classNames(GridItem.className, className),
|
|
8883
9155
|
ref: ref
|
|
8884
9156
|
}), children);
|
|
8885
9157
|
});
|
|
8886
|
-
GridItem.className = CLASSNAME$
|
|
8887
|
-
GridItem.defaultProps = DEFAULT_PROPS$
|
|
8888
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
9158
|
+
GridItem.className = CLASSNAME$8;
|
|
9159
|
+
GridItem.defaultProps = DEFAULT_PROPS$8;
|
|
9160
|
+
GridItem.displayName = COMPONENT_NAME$8;
|
|
8889
9161
|
|
|
8890
|
-
const _excluded$
|
|
8891
|
-
const COMPONENT_NAME$
|
|
8892
|
-
const CLASSNAME$
|
|
8893
|
-
const DEFAULT_PROPS$
|
|
9162
|
+
const _excluded$7 = ["children", "className"];
|
|
9163
|
+
const COMPONENT_NAME$7 = 'Grid';
|
|
9164
|
+
const CLASSNAME$7 = 'redsift-grid';
|
|
9165
|
+
const DEFAULT_PROPS$7 = {};
|
|
8894
9166
|
|
|
8895
9167
|
/**
|
|
8896
9168
|
* The Grid component.
|
|
@@ -8900,15 +9172,15 @@ const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8900
9172
|
children,
|
|
8901
9173
|
className
|
|
8902
9174
|
} = props,
|
|
8903
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9175
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$7);
|
|
8904
9176
|
return /*#__PURE__*/React__default.createElement(StyledGrid, _extends$1({}, forwardedProps, {
|
|
8905
9177
|
className: classNames(BaseGrid.className, className),
|
|
8906
9178
|
ref: ref
|
|
8907
9179
|
}), children);
|
|
8908
9180
|
});
|
|
8909
|
-
BaseGrid.className = CLASSNAME$
|
|
8910
|
-
BaseGrid.defaultProps = DEFAULT_PROPS$
|
|
8911
|
-
BaseGrid.displayName = COMPONENT_NAME$
|
|
9181
|
+
BaseGrid.className = CLASSNAME$7;
|
|
9182
|
+
BaseGrid.defaultProps = DEFAULT_PROPS$7;
|
|
9183
|
+
BaseGrid.displayName = COMPONENT_NAME$7;
|
|
8912
9184
|
const Grid = Object.assign(BaseGrid, {
|
|
8913
9185
|
Item: GridItem
|
|
8914
9186
|
});
|
|
@@ -8953,10 +9225,10 @@ const StyledLink = styled.a`
|
|
|
8953
9225
|
}
|
|
8954
9226
|
`;
|
|
8955
9227
|
|
|
8956
|
-
const _excluded$
|
|
8957
|
-
const COMPONENT_NAME$
|
|
8958
|
-
const CLASSNAME$
|
|
8959
|
-
const DEFAULT_PROPS$
|
|
9228
|
+
const _excluded$6 = ["children", "className", "href", "isDisabled"];
|
|
9229
|
+
const COMPONENT_NAME$6 = 'Link';
|
|
9230
|
+
const CLASSNAME$6 = 'redsift-link';
|
|
9231
|
+
const DEFAULT_PROPS$6 = {};
|
|
8960
9232
|
|
|
8961
9233
|
/**
|
|
8962
9234
|
* The Link is a semantic link that looks like a link.
|
|
@@ -8973,7 +9245,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8973
9245
|
href,
|
|
8974
9246
|
isDisabled
|
|
8975
9247
|
} = props,
|
|
8976
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9248
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$6);
|
|
8977
9249
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
8978
9250
|
"aria-disabled": isDisabled,
|
|
8979
9251
|
role: "link",
|
|
@@ -8985,14 +9257,14 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8985
9257
|
ref: ref
|
|
8986
9258
|
}), children);
|
|
8987
9259
|
});
|
|
8988
|
-
Link.className = CLASSNAME$
|
|
8989
|
-
Link.defaultProps = DEFAULT_PROPS$
|
|
8990
|
-
Link.displayName = COMPONENT_NAME$
|
|
9260
|
+
Link.className = CLASSNAME$6;
|
|
9261
|
+
Link.defaultProps = DEFAULT_PROPS$6;
|
|
9262
|
+
Link.displayName = COMPONENT_NAME$6;
|
|
8991
9263
|
|
|
8992
|
-
const _excluded$
|
|
8993
|
-
const COMPONENT_NAME$
|
|
8994
|
-
const CLASSNAME$
|
|
8995
|
-
const DEFAULT_PROPS$
|
|
9264
|
+
const _excluded$5 = ["children", "className", "disabled", "isDisabled", "onPress"];
|
|
9265
|
+
const COMPONENT_NAME$5 = 'LinkButton';
|
|
9266
|
+
const CLASSNAME$5 = 'redsift-link-button';
|
|
9267
|
+
const DEFAULT_PROPS$5 = {};
|
|
8996
9268
|
|
|
8997
9269
|
/**
|
|
8998
9270
|
* The LinkButton is a semantic button that looks like a link.
|
|
@@ -9017,7 +9289,7 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9017
9289
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9018
9290
|
onPress
|
|
9019
9291
|
} = props,
|
|
9020
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9292
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$5);
|
|
9021
9293
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
9022
9294
|
as: "button"
|
|
9023
9295
|
}, forwardedProps, buttonProps, {
|
|
@@ -9030,9 +9302,9 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9030
9302
|
ref: buttonRef
|
|
9031
9303
|
}), children);
|
|
9032
9304
|
});
|
|
9033
|
-
LinkButton.className = CLASSNAME$
|
|
9034
|
-
LinkButton.defaultProps = DEFAULT_PROPS$
|
|
9035
|
-
LinkButton.displayName = COMPONENT_NAME$
|
|
9305
|
+
LinkButton.className = CLASSNAME$5;
|
|
9306
|
+
LinkButton.defaultProps = DEFAULT_PROPS$5;
|
|
9307
|
+
LinkButton.displayName = COMPONENT_NAME$5;
|
|
9036
9308
|
|
|
9037
9309
|
/**
|
|
9038
9310
|
* Component style.
|
|
@@ -9041,10 +9313,10 @@ const StyledNumber = styled(StyledText)`
|
|
|
9041
9313
|
font-family: var(--redsift-typography-font-family-source-code-pro);
|
|
9042
9314
|
`;
|
|
9043
9315
|
|
|
9044
|
-
const _excluded$
|
|
9045
|
-
const COMPONENT_NAME$
|
|
9046
|
-
const CLASSNAME$
|
|
9047
|
-
const DEFAULT_PROPS$
|
|
9316
|
+
const _excluded$4 = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "value", "variant"];
|
|
9317
|
+
const COMPONENT_NAME$4 = 'Number';
|
|
9318
|
+
const CLASSNAME$4 = 'redsift-number';
|
|
9319
|
+
const DEFAULT_PROPS$4 = {
|
|
9048
9320
|
compactDisplay: 'short',
|
|
9049
9321
|
currencyDisplay: 'symbol',
|
|
9050
9322
|
currencySign: 'standard',
|
|
@@ -9055,11 +9327,7 @@ const DEFAULT_PROPS$2 = {
|
|
|
9055
9327
|
unitDisplay: 'short',
|
|
9056
9328
|
roundingMode: 'halfExpand',
|
|
9057
9329
|
roundingPriority: 'auto',
|
|
9058
|
-
trailingZeroDisplay: 'auto'
|
|
9059
|
-
minimumIntegerDigits: 1,
|
|
9060
|
-
minimumFractionDigits: 0,
|
|
9061
|
-
minimumSignificantDigits: 1,
|
|
9062
|
-
maximumSignificantDigits: 21
|
|
9330
|
+
trailingZeroDisplay: 'auto'
|
|
9063
9331
|
};
|
|
9064
9332
|
|
|
9065
9333
|
/**
|
|
@@ -9075,6 +9343,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9075
9343
|
currencyDisplay,
|
|
9076
9344
|
currencySign,
|
|
9077
9345
|
fontSize,
|
|
9346
|
+
lineHeight,
|
|
9078
9347
|
localeMatcher,
|
|
9079
9348
|
maximumFractionDigits,
|
|
9080
9349
|
maximumSignificantDigits,
|
|
@@ -9096,18 +9365,24 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9096
9365
|
value,
|
|
9097
9366
|
variant
|
|
9098
9367
|
} = props,
|
|
9099
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9100
|
-
const formatter = useNumberFormatter({
|
|
9368
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$4);
|
|
9369
|
+
const formatter = useNumberFormatter(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
9101
9370
|
compactDisplay,
|
|
9102
9371
|
currency,
|
|
9103
9372
|
currencyDisplay,
|
|
9104
9373
|
currencySign,
|
|
9105
|
-
localeMatcher
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9374
|
+
localeMatcher
|
|
9375
|
+
}, maximumFractionDigits !== undefined && {
|
|
9376
|
+
maximumFractionDigits
|
|
9377
|
+
}), maximumSignificantDigits !== undefined && {
|
|
9378
|
+
maximumSignificantDigits
|
|
9379
|
+
}), minimumFractionDigits !== undefined && {
|
|
9380
|
+
minimumFractionDigits
|
|
9381
|
+
}), minimumIntegerDigits !== undefined && {
|
|
9382
|
+
minimumIntegerDigits
|
|
9383
|
+
}), minimumSignificantDigits !== undefined && {
|
|
9384
|
+
minimumSignificantDigits
|
|
9385
|
+
}), {}, {
|
|
9111
9386
|
notation,
|
|
9112
9387
|
numberingSystem,
|
|
9113
9388
|
// @ts-ignore
|
|
@@ -9123,7 +9398,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9123
9398
|
unit,
|
|
9124
9399
|
unitDisplay,
|
|
9125
9400
|
useGrouping
|
|
9126
|
-
});
|
|
9401
|
+
}));
|
|
9127
9402
|
return /*#__PURE__*/React__default.createElement(StyledNumber, _extends$1({
|
|
9128
9403
|
as: as
|
|
9129
9404
|
}, forwardedProps, {
|
|
@@ -9131,14 +9406,15 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9131
9406
|
className: classNames(Number$1.className, className),
|
|
9132
9407
|
ref: ref,
|
|
9133
9408
|
$color: color,
|
|
9409
|
+
$lineHeight: lineHeight,
|
|
9134
9410
|
$fontSize: fontSize,
|
|
9135
9411
|
$noWrap: noWrap,
|
|
9136
9412
|
$variant: variant
|
|
9137
9413
|
}), formatter.format(value));
|
|
9138
9414
|
});
|
|
9139
|
-
Number$1.className = CLASSNAME$
|
|
9140
|
-
Number$1.defaultProps = DEFAULT_PROPS$
|
|
9141
|
-
Number$1.displayName = COMPONENT_NAME$
|
|
9415
|
+
Number$1.className = CLASSNAME$4;
|
|
9416
|
+
Number$1.defaultProps = DEFAULT_PROPS$4;
|
|
9417
|
+
Number$1.displayName = COMPONENT_NAME$4;
|
|
9142
9418
|
|
|
9143
9419
|
/**
|
|
9144
9420
|
* Context props.
|
|
@@ -9232,10 +9508,10 @@ const StyledRadioGroup = styled.div`
|
|
|
9232
9508
|
}
|
|
9233
9509
|
`;
|
|
9234
9510
|
|
|
9235
|
-
const _excluded$
|
|
9236
|
-
const COMPONENT_NAME$
|
|
9237
|
-
const CLASSNAME$
|
|
9238
|
-
const DEFAULT_PROPS$
|
|
9511
|
+
const _excluded$3 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
|
|
9512
|
+
const COMPONENT_NAME$3 = 'RadioGroup';
|
|
9513
|
+
const CLASSNAME$3 = 'redsift-radio-group';
|
|
9514
|
+
const DEFAULT_PROPS$3 = {
|
|
9239
9515
|
color: ColorPalette.default,
|
|
9240
9516
|
orientation: RadioGroupOrientation.vertical
|
|
9241
9517
|
};
|
|
@@ -9260,7 +9536,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9260
9536
|
possibleValues,
|
|
9261
9537
|
value
|
|
9262
9538
|
} = props,
|
|
9263
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9539
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$3);
|
|
9264
9540
|
const [selectedValue, setValue] = useState(value || defaultValue || '');
|
|
9265
9541
|
useEffect(() => {
|
|
9266
9542
|
if (value) {
|
|
@@ -9302,14 +9578,15 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9302
9578
|
className: `${RadioGroup.className}-description`
|
|
9303
9579
|
}, description));
|
|
9304
9580
|
});
|
|
9305
|
-
RadioGroup.className = CLASSNAME$
|
|
9306
|
-
RadioGroup.defaultProps = DEFAULT_PROPS$
|
|
9307
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
9581
|
+
RadioGroup.className = CLASSNAME$3;
|
|
9582
|
+
RadioGroup.defaultProps = DEFAULT_PROPS$3;
|
|
9583
|
+
RadioGroup.displayName = COMPONENT_NAME$3;
|
|
9308
9584
|
|
|
9309
9585
|
/**
|
|
9310
9586
|
* Component style.
|
|
9311
9587
|
*/
|
|
9312
9588
|
const StyledRadio = styled.label`
|
|
9589
|
+
height: fit-content;
|
|
9313
9590
|
position: relative;
|
|
9314
9591
|
width: fit-content;
|
|
9315
9592
|
${baseStyling}
|
|
@@ -9381,7 +9658,7 @@ const StyledRadio = styled.label`
|
|
|
9381
9658
|
);
|
|
9382
9659
|
`}
|
|
9383
9660
|
|
|
9384
|
-
${$isFocusVisible ? css`
|
|
9661
|
+
${$isFocusVisible && !$isDisabled ? css`
|
|
9385
9662
|
background-color: var(
|
|
9386
9663
|
--redsift-color-${$isColored ? 'default' : 'question'}-hover
|
|
9387
9664
|
);
|
|
@@ -9410,27 +9687,12 @@ const StyledRadio = styled.label`
|
|
|
9410
9687
|
` : '';
|
|
9411
9688
|
}}
|
|
9412
9689
|
}
|
|
9413
|
-
|
|
9414
|
-
${_ref4 => {
|
|
9415
|
-
let {
|
|
9416
|
-
$isColored,
|
|
9417
|
-
$isFocusVisible
|
|
9418
|
-
} = _ref4;
|
|
9419
|
-
return $isFocusVisible ? css`
|
|
9420
|
-
.redsift-icon {
|
|
9421
|
-
background-color: var(
|
|
9422
|
-
--redsift-color-${$isColored ? 'default' : 'question'}-hover
|
|
9423
|
-
);
|
|
9424
|
-
border-radius: 21px;
|
|
9425
|
-
}
|
|
9426
|
-
` : '';
|
|
9427
|
-
}}
|
|
9428
9690
|
`;
|
|
9429
9691
|
|
|
9430
|
-
const _excluded = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
9431
|
-
const COMPONENT_NAME = 'Radio';
|
|
9432
|
-
const CLASSNAME = 'redsift-radio';
|
|
9433
|
-
const DEFAULT_PROPS = {
|
|
9692
|
+
const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
9693
|
+
const COMPONENT_NAME$2 = 'Radio';
|
|
9694
|
+
const CLASSNAME$2 = 'redsift-radio';
|
|
9695
|
+
const DEFAULT_PROPS$2 = {
|
|
9434
9696
|
isColored: true
|
|
9435
9697
|
};
|
|
9436
9698
|
|
|
@@ -9461,7 +9723,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9461
9723
|
onChange,
|
|
9462
9724
|
value
|
|
9463
9725
|
} = props,
|
|
9464
|
-
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
9726
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$2);
|
|
9465
9727
|
const {
|
|
9466
9728
|
isFocusVisible,
|
|
9467
9729
|
focusProps
|
|
@@ -9535,9 +9797,469 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9535
9797
|
className: "label"
|
|
9536
9798
|
}, children) : null);
|
|
9537
9799
|
});
|
|
9538
|
-
Radio.className = CLASSNAME;
|
|
9539
|
-
Radio.defaultProps = DEFAULT_PROPS;
|
|
9540
|
-
Radio.displayName = COMPONENT_NAME;
|
|
9800
|
+
Radio.className = CLASSNAME$2;
|
|
9801
|
+
Radio.defaultProps = DEFAULT_PROPS$2;
|
|
9802
|
+
Radio.displayName = COMPONENT_NAME$2;
|
|
9803
|
+
|
|
9804
|
+
const SwitchGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
9805
|
+
|
|
9806
|
+
/**
|
|
9807
|
+
* Component style.
|
|
9808
|
+
*/
|
|
9809
|
+
const StyledSwitch = styled.label`
|
|
9810
|
+
height: fit-content;
|
|
9811
|
+
position: relative;
|
|
9812
|
+
width: fit-content;
|
|
9813
|
+
${baseStyling}
|
|
9814
|
+
|
|
9815
|
+
align-items: baseline;
|
|
9816
|
+
background: none;
|
|
9817
|
+
border: none;
|
|
9818
|
+
display: inline-flex;
|
|
9819
|
+
margin: 4px;
|
|
9820
|
+
|
|
9821
|
+
input {
|
|
9822
|
+
height: 100%;
|
|
9823
|
+
margin: 0;
|
|
9824
|
+
opacity: 0;
|
|
9825
|
+
overflow: visible;
|
|
9826
|
+
padding: 0;
|
|
9827
|
+
position: absolute;
|
|
9828
|
+
width: 100%;
|
|
9829
|
+
}
|
|
9830
|
+
|
|
9831
|
+
span.label {
|
|
9832
|
+
${_ref => {
|
|
9833
|
+
let {
|
|
9834
|
+
$isDisabled,
|
|
9835
|
+
$isInvalid
|
|
9836
|
+
} = _ref;
|
|
9837
|
+
return $isDisabled ? css`
|
|
9838
|
+
color: var(--redsift-color-neutral-midgrey);
|
|
9839
|
+
` : $isInvalid ? css`
|
|
9840
|
+
color: var(--redsift-color-error-primary);
|
|
9841
|
+
` : css`
|
|
9842
|
+
color: var(--redsift-color-neutral-black);
|
|
9843
|
+
`;
|
|
9844
|
+
}}
|
|
9845
|
+
|
|
9846
|
+
font-family: var(--redsift-typography-body-font-family);
|
|
9847
|
+
font-size: var(--redsift-typography-body-font-size);
|
|
9848
|
+
font-weight: var(--redsift-typography-body-font-weight);
|
|
9849
|
+
line-height: var(--redsift-typography-body-line-height);
|
|
9850
|
+
padding-inline-start: 4px;
|
|
9851
|
+
padding-inline-end: 16px;
|
|
9852
|
+
position: relative;
|
|
9853
|
+
top: -5px;
|
|
9854
|
+
}
|
|
9855
|
+
|
|
9856
|
+
.redsift-switch__slide {
|
|
9857
|
+
height: 20px;
|
|
9858
|
+
position: relative;
|
|
9859
|
+
min-width: 40px;
|
|
9860
|
+
}
|
|
9861
|
+
|
|
9862
|
+
.redsift-switch-slide__inner {
|
|
9863
|
+
background-color: var(--redsift-color-neutral-midgrey);
|
|
9864
|
+
border-radius: 10px;
|
|
9865
|
+
height: 16px;
|
|
9866
|
+
position: absolute;
|
|
9867
|
+
top: calc(50% - 16px / 2);
|
|
9868
|
+
width: 32px;
|
|
9869
|
+
z-index: 2;
|
|
9870
|
+
}
|
|
9871
|
+
|
|
9872
|
+
.redsift-switch-slide__knob-wrapper {
|
|
9873
|
+
border-radius: 50%;
|
|
9874
|
+
height: 32px;
|
|
9875
|
+
margin-inline-start: ${_ref2 => {
|
|
9876
|
+
let {
|
|
9877
|
+
$isSelected
|
|
9878
|
+
} = _ref2;
|
|
9879
|
+
return !$isSelected ? '-10px' : '10px';
|
|
9880
|
+
}};
|
|
9881
|
+
position: absolute;
|
|
9882
|
+
top: -6px;
|
|
9883
|
+
width: 32px;
|
|
9884
|
+
z-index: 3;
|
|
9885
|
+
}
|
|
9886
|
+
|
|
9887
|
+
.redsift-switch-slide-knob-wrapper__elevation {
|
|
9888
|
+
background-color: var(--redsift-color-neutral-xlightgrey);
|
|
9889
|
+
border-radius: 50%;
|
|
9890
|
+
height: 32px;
|
|
9891
|
+
opacity: 0;
|
|
9892
|
+
position: absolute;
|
|
9893
|
+
width: 32px;
|
|
9894
|
+
z-index: 3;
|
|
9895
|
+
}
|
|
9896
|
+
|
|
9897
|
+
.redsift-switch-slide-knob-wrapper__knob {
|
|
9898
|
+
background-color: var(--redsift-color-neutral-xlightgrey);
|
|
9899
|
+
border-radius: 50%;
|
|
9900
|
+
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
|
|
9901
|
+
0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);
|
|
9902
|
+
height: 20px;
|
|
9903
|
+
left: 6px;
|
|
9904
|
+
position: absolute;
|
|
9905
|
+
top: 6px;
|
|
9906
|
+
width: 20px;
|
|
9907
|
+
}
|
|
9908
|
+
|
|
9909
|
+
.redsift-switch-slide__inner {
|
|
9910
|
+
${_ref3 => {
|
|
9911
|
+
let {
|
|
9912
|
+
$isColored,
|
|
9913
|
+
$isDisabled,
|
|
9914
|
+
$isInvalid,
|
|
9915
|
+
$isSelected
|
|
9916
|
+
} = _ref3;
|
|
9917
|
+
return css`
|
|
9918
|
+
${$isSelected && $isDisabled ? css`
|
|
9919
|
+
background-color: var(
|
|
9920
|
+
--redsift-color-${$isInvalid ? 'error' : $isColored ? 'default' : 'no-data'}-active
|
|
9921
|
+
);
|
|
9922
|
+
` : $isSelected ? css`
|
|
9923
|
+
background-color: var(
|
|
9924
|
+
--redsift-color-${$isInvalid ? 'error' : $isColored ? 'default' : 'no-data'}-primary
|
|
9925
|
+
);
|
|
9926
|
+
` : !$isSelected && $isDisabled ? css`
|
|
9927
|
+
background-color: var(--redsift-color-neutral-lightgrey);
|
|
9928
|
+
` : css`
|
|
9929
|
+
background-color: var(--redsift-color-neutral-midgrey);
|
|
9930
|
+
`}
|
|
9931
|
+
`;
|
|
9932
|
+
}}
|
|
9933
|
+
}
|
|
9934
|
+
|
|
9935
|
+
&:hover,
|
|
9936
|
+
&:focus-visible {
|
|
9937
|
+
outline: none;
|
|
9938
|
+
cursor: pointer;
|
|
9939
|
+
|
|
9940
|
+
${_ref4 => {
|
|
9941
|
+
let {
|
|
9942
|
+
$isDisabled
|
|
9943
|
+
} = _ref4;
|
|
9944
|
+
return !$isDisabled ? css`
|
|
9945
|
+
.redsift-switch-slide-knob-wrapper__elevation {
|
|
9946
|
+
opacity: 0.5;
|
|
9947
|
+
}
|
|
9948
|
+
` : '';
|
|
9949
|
+
}}
|
|
9950
|
+
}
|
|
9951
|
+
|
|
9952
|
+
${_ref5 => {
|
|
9953
|
+
let {
|
|
9954
|
+
$isDisabled,
|
|
9955
|
+
$isFocusVisible
|
|
9956
|
+
} = _ref5;
|
|
9957
|
+
return $isFocusVisible && !$isDisabled ? css`
|
|
9958
|
+
.redsift-switch-slide-knob-wrapper__elevation {
|
|
9959
|
+
opacity: 0.5;
|
|
9960
|
+
}
|
|
9961
|
+
` : '';
|
|
9962
|
+
}}
|
|
9963
|
+
`;
|
|
9964
|
+
|
|
9965
|
+
const _excluded$1 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
9966
|
+
const COMPONENT_NAME$1 = 'Switch';
|
|
9967
|
+
const CLASSNAME$1 = 'redsift-switch';
|
|
9968
|
+
const DEFAULT_PROPS$1 = {
|
|
9969
|
+
isColored: true
|
|
9970
|
+
};
|
|
9971
|
+
|
|
9972
|
+
/**
|
|
9973
|
+
* The Switch component.
|
|
9974
|
+
* Works both inside a SwitchGroup or as standalone.
|
|
9975
|
+
* Can be used as controlled or uncontrolled.
|
|
9976
|
+
*/
|
|
9977
|
+
const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
9978
|
+
var _isDisabled, _isReadOnly, _ref;
|
|
9979
|
+
const groupState = useContext(SwitchGroupContext);
|
|
9980
|
+
let {
|
|
9981
|
+
'aria-label': ariaLabel,
|
|
9982
|
+
'aria-labelledby': ariaLabelledby,
|
|
9983
|
+
autoFocus,
|
|
9984
|
+
children,
|
|
9985
|
+
className,
|
|
9986
|
+
defaultSelected,
|
|
9987
|
+
inputProps,
|
|
9988
|
+
inputRef,
|
|
9989
|
+
isColored,
|
|
9990
|
+
isDisabled,
|
|
9991
|
+
isInvalid,
|
|
9992
|
+
isReadOnly,
|
|
9993
|
+
isRequired,
|
|
9994
|
+
isSelected: propsIsSelected,
|
|
9995
|
+
name,
|
|
9996
|
+
onChange,
|
|
9997
|
+
value
|
|
9998
|
+
} = props,
|
|
9999
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1);
|
|
10000
|
+
const {
|
|
10001
|
+
isFocusVisible,
|
|
10002
|
+
focusProps
|
|
10003
|
+
} = useFocusRing({
|
|
10004
|
+
autoFocus
|
|
10005
|
+
});
|
|
10006
|
+
isDisabled = (_isDisabled = isDisabled) !== null && _isDisabled !== void 0 ? _isDisabled : groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled;
|
|
10007
|
+
isReadOnly = (_isReadOnly = isReadOnly) !== null && _isReadOnly !== void 0 ? _isReadOnly : groupState === null || groupState === void 0 ? void 0 : groupState.isReadOnly;
|
|
10008
|
+
const [isSelected, setSelected] = useState((_ref = propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected) !== null && _ref !== void 0 ? _ref : groupState === null || groupState === void 0 ? void 0 : groupState.value.includes(value));
|
|
10009
|
+
useEffect(() => {
|
|
10010
|
+
setSelected(propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected);
|
|
10011
|
+
}, [propsIsSelected, defaultSelected]);
|
|
10012
|
+
useEffect(() => {
|
|
10013
|
+
if (groupState) {
|
|
10014
|
+
setSelected(groupState.value.includes(value));
|
|
10015
|
+
}
|
|
10016
|
+
}, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
|
|
10017
|
+
warnIfNoAccessibleLabelFound(props, [children]);
|
|
10018
|
+
if (groupState) {
|
|
10019
|
+
if (propsIsSelected != null) {
|
|
10020
|
+
console.warn('isSelected is unsupported on individual <Switch> elements within a <SwitchGroup> unless the <Switch> is controlled. Please apply this prop to the group instead or pass isControlled to the component.');
|
|
10021
|
+
}
|
|
10022
|
+
if (defaultSelected != null) {
|
|
10023
|
+
console.warn('defaultSelected is unsupported on individual <Switch> elements within a <SwitchGroup> unless the <Switch> is controlled. Please apply this prop to the group instead or pass isControlled to the component.');
|
|
10024
|
+
}
|
|
10025
|
+
if (props.value == null) {
|
|
10026
|
+
console.warn('A <Switch> element within a <SwitchGroup> requires a `value` property unless the <Switch> is controlled.');
|
|
10027
|
+
}
|
|
10028
|
+
}
|
|
10029
|
+
const handleChange = useCallback(event => {
|
|
10030
|
+
if (isDisabled || isReadOnly) {
|
|
10031
|
+
return;
|
|
10032
|
+
}
|
|
10033
|
+
if (groupState) {
|
|
10034
|
+
if (!groupState.value.includes(value)) {
|
|
10035
|
+
groupState.addValue(value);
|
|
10036
|
+
} else {
|
|
10037
|
+
groupState.removeValue(value);
|
|
10038
|
+
}
|
|
10039
|
+
}
|
|
10040
|
+
if (onChange) {
|
|
10041
|
+
onChange(!isSelected, value, name, event, groupState);
|
|
10042
|
+
}
|
|
10043
|
+
setSelected(event.target.checked);
|
|
10044
|
+
}, [onChange, groupState]);
|
|
10045
|
+
return /*#__PURE__*/React__default.createElement(StyledSwitch, _extends$1({}, forwardedProps, {
|
|
10046
|
+
$isColored: isColored,
|
|
10047
|
+
$isDisabled: isDisabled,
|
|
10048
|
+
$isFocusVisible: isFocusVisible,
|
|
10049
|
+
$isInvalid: isInvalid || isRequired && !isSelected,
|
|
10050
|
+
$isRequired: isRequired,
|
|
10051
|
+
$isSelected: isSelected,
|
|
10052
|
+
className: classNames(Switch.className, className),
|
|
10053
|
+
ref: ref
|
|
10054
|
+
}), /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, focusProps, {
|
|
10055
|
+
"aria-checked": isSelected ? 'true' : 'false',
|
|
10056
|
+
"aria-disabled": isDisabled,
|
|
10057
|
+
"aria-invalid": isInvalid || isRequired && !isSelected,
|
|
10058
|
+
"aria-label": ariaLabel,
|
|
10059
|
+
"aria-labelledby": ariaLabelledby,
|
|
10060
|
+
"aria-readonly": isReadOnly,
|
|
10061
|
+
"aria-required": isRequired,
|
|
10062
|
+
checked: isSelected ? true : false,
|
|
10063
|
+
disabled: isDisabled,
|
|
10064
|
+
name: name,
|
|
10065
|
+
onChange: handleChange,
|
|
10066
|
+
ref: inputRef,
|
|
10067
|
+
role: "switch",
|
|
10068
|
+
type: "checkbox",
|
|
10069
|
+
value: value
|
|
10070
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10071
|
+
className: `${Switch.className}__slide`
|
|
10072
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10073
|
+
className: `${Switch.className}-slide__inner`
|
|
10074
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10075
|
+
className: `${Switch.className}-slide__knob-wrapper`
|
|
10076
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10077
|
+
className: `${Switch.className}-slide-knob-wrapper__elevation`
|
|
10078
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10079
|
+
className: `${Switch.className}-slide-knob-wrapper__knob`
|
|
10080
|
+
}))), children ? /*#__PURE__*/React__default.createElement("span", {
|
|
10081
|
+
className: "label"
|
|
10082
|
+
}, children) : null);
|
|
10083
|
+
});
|
|
10084
|
+
Switch.className = CLASSNAME$1;
|
|
10085
|
+
Switch.defaultProps = DEFAULT_PROPS$1;
|
|
10086
|
+
Switch.displayName = COMPONENT_NAME$1;
|
|
10087
|
+
|
|
10088
|
+
/**
|
|
10089
|
+
* Context props.
|
|
10090
|
+
*/
|
|
10091
|
+
|
|
10092
|
+
/**
|
|
10093
|
+
* Component orientation.
|
|
10094
|
+
*/
|
|
10095
|
+
const SwitchGroupOrientation = {
|
|
10096
|
+
horizontal: 'horizontal',
|
|
10097
|
+
vertical: 'vertical'
|
|
10098
|
+
};
|
|
10099
|
+
|
|
10100
|
+
/**
|
|
10101
|
+
* Component style.
|
|
10102
|
+
*/
|
|
10103
|
+
const StyledSwitchGroup = styled.div`
|
|
10104
|
+
${baseStyling}
|
|
10105
|
+
|
|
10106
|
+
display: flex;
|
|
10107
|
+
flex-direction: column;
|
|
10108
|
+
|
|
10109
|
+
${_ref => {
|
|
10110
|
+
let {
|
|
10111
|
+
$orientation
|
|
10112
|
+
} = _ref;
|
|
10113
|
+
return $orientation === SwitchGroupOrientation.vertical ? `
|
|
10114
|
+
div.redsift-checkbox-group-boxes {
|
|
10115
|
+
display: flex;
|
|
10116
|
+
flex-direction: column;
|
|
10117
|
+
}
|
|
10118
|
+
` : `
|
|
10119
|
+
div.redsift-checkbox-group-boxes {
|
|
10120
|
+
display: flex;
|
|
10121
|
+
flex-direction: row;
|
|
10122
|
+
flex-wrap: wrap;
|
|
10123
|
+
}
|
|
10124
|
+
`;
|
|
10125
|
+
}}
|
|
10126
|
+
|
|
10127
|
+
span.redsift-checkbox-group-label {
|
|
10128
|
+
font-family: var(--redsift-typography-body-font-family);
|
|
10129
|
+
font-weight: var(--redsift-typography-body-font-weight);
|
|
10130
|
+
font-size: var(--redsift-typography-body-font-size);
|
|
10131
|
+
line-height: var(--redsift-typography-body-line-height);
|
|
10132
|
+
|
|
10133
|
+
color: var(--redsift-color-neutral-black);
|
|
10134
|
+
${_ref2 => {
|
|
10135
|
+
let {
|
|
10136
|
+
$isDisabled
|
|
10137
|
+
} = _ref2;
|
|
10138
|
+
return $isDisabled ? `
|
|
10139
|
+
color: var(--redsift-color-neutral-midgrey);
|
|
10140
|
+
` : '';
|
|
10141
|
+
}}
|
|
10142
|
+
${_ref3 => {
|
|
10143
|
+
let {
|
|
10144
|
+
$isInvalid
|
|
10145
|
+
} = _ref3;
|
|
10146
|
+
return $isInvalid ? `
|
|
10147
|
+
color: var(--redsift-color-error-primary);
|
|
10148
|
+
` : '';
|
|
10149
|
+
}}
|
|
10150
|
+
}
|
|
10151
|
+
|
|
10152
|
+
span.redsift-checkbox-group-description {
|
|
10153
|
+
font-family: var(--redsift-typography-helper-font-family);
|
|
10154
|
+
font-weight: var(--redsift-typography-helper-font-weight);
|
|
10155
|
+
font-size: var(--redsift-typography-helper-font-size);
|
|
10156
|
+
line-height: var(--redsift-typography-helper-line-height);
|
|
10157
|
+
|
|
10158
|
+
color: var(--redsift-color-neutral-darkgrey);
|
|
10159
|
+
${_ref4 => {
|
|
10160
|
+
let {
|
|
10161
|
+
$isDisabled
|
|
10162
|
+
} = _ref4;
|
|
10163
|
+
return $isDisabled ? `
|
|
10164
|
+
color: var(--redsift-color-neutral-midgrey);
|
|
10165
|
+
` : '';
|
|
10166
|
+
}}
|
|
10167
|
+
${_ref5 => {
|
|
10168
|
+
let {
|
|
10169
|
+
$isInvalid
|
|
10170
|
+
} = _ref5;
|
|
10171
|
+
return $isInvalid ? `
|
|
10172
|
+
color: var(--redsift-color-error-primary);
|
|
10173
|
+
` : '';
|
|
10174
|
+
}}
|
|
10175
|
+
}
|
|
10176
|
+
`;
|
|
10177
|
+
|
|
10178
|
+
const _excluded = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
|
|
10179
|
+
const COMPONENT_NAME = 'SwitchGroup';
|
|
10180
|
+
const CLASSNAME = 'redsift-checkbox-group';
|
|
10181
|
+
const DEFAULT_PROPS = {
|
|
10182
|
+
color: ColorPalette.default,
|
|
10183
|
+
orientation: SwitchGroupOrientation.vertical
|
|
10184
|
+
};
|
|
10185
|
+
|
|
10186
|
+
/**
|
|
10187
|
+
* The SwitchGroup component.
|
|
10188
|
+
* Can be used as controlled or uncontrolled.
|
|
10189
|
+
*/
|
|
10190
|
+
const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10191
|
+
const {
|
|
10192
|
+
children,
|
|
10193
|
+
className,
|
|
10194
|
+
defaultValues,
|
|
10195
|
+
description,
|
|
10196
|
+
isDisabled,
|
|
10197
|
+
isInvalid,
|
|
10198
|
+
isReadOnly,
|
|
10199
|
+
isRequired,
|
|
10200
|
+
label,
|
|
10201
|
+
onChange,
|
|
10202
|
+
orientation,
|
|
10203
|
+
possibleValues,
|
|
10204
|
+
value
|
|
10205
|
+
} = props,
|
|
10206
|
+
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
10207
|
+
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
10208
|
+
useEffect(() => {
|
|
10209
|
+
if (value) {
|
|
10210
|
+
state.setValue(value);
|
|
10211
|
+
}
|
|
10212
|
+
}, [value]);
|
|
10213
|
+
const state = {
|
|
10214
|
+
value: selectedValues,
|
|
10215
|
+
isDisabled: isDisabled || false,
|
|
10216
|
+
isReadOnly: isReadOnly || false,
|
|
10217
|
+
possibleValues: possibleValues,
|
|
10218
|
+
setValue(values) {
|
|
10219
|
+
if (isReadOnly || isDisabled) {
|
|
10220
|
+
return;
|
|
10221
|
+
}
|
|
10222
|
+
setValue(values);
|
|
10223
|
+
},
|
|
10224
|
+
addValue(value) {
|
|
10225
|
+
if (!selectedValues.includes(value)) {
|
|
10226
|
+
setValue(selectedValues.concat(value));
|
|
10227
|
+
if (onChange) {
|
|
10228
|
+
onChange(selectedValues.concat(value));
|
|
10229
|
+
}
|
|
10230
|
+
}
|
|
10231
|
+
},
|
|
10232
|
+
removeValue(value) {
|
|
10233
|
+
if (selectedValues.includes(value)) {
|
|
10234
|
+
setValue(selectedValues.filter(existingValue => existingValue !== value));
|
|
10235
|
+
if (onChange) {
|
|
10236
|
+
onChange(selectedValues.filter(existingValue => existingValue !== value));
|
|
10237
|
+
}
|
|
10238
|
+
}
|
|
10239
|
+
}
|
|
10240
|
+
};
|
|
10241
|
+
return /*#__PURE__*/React__default.createElement(StyledSwitchGroup, _extends$1({}, forwardedProps, {
|
|
10242
|
+
$isDisabled: isDisabled,
|
|
10243
|
+
$isInvalid: isInvalid || isRequired && selectedValues.length === 0,
|
|
10244
|
+
$isReadOnly: isReadOnly,
|
|
10245
|
+
$orientation: orientation,
|
|
10246
|
+
"aria-disabled": isDisabled,
|
|
10247
|
+
className: classNames(SwitchGroup.className, className),
|
|
10248
|
+
ref: ref,
|
|
10249
|
+
role: "group"
|
|
10250
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
10251
|
+
className: `${SwitchGroup.className}-label`
|
|
10252
|
+
}, label, isRequired ? ' *' : null), /*#__PURE__*/React__default.createElement("div", {
|
|
10253
|
+
className: `${SwitchGroup.className}-boxes`
|
|
10254
|
+
}, /*#__PURE__*/React__default.createElement(SwitchGroupContext.Provider, {
|
|
10255
|
+
value: state
|
|
10256
|
+
}, children)), /*#__PURE__*/React__default.createElement("span", {
|
|
10257
|
+
className: `${SwitchGroup.className}-description`
|
|
10258
|
+
}, description));
|
|
10259
|
+
});
|
|
10260
|
+
SwitchGroup.className = CLASSNAME;
|
|
10261
|
+
SwitchGroup.defaultProps = DEFAULT_PROPS;
|
|
10262
|
+
SwitchGroup.displayName = COMPONENT_NAME;
|
|
9541
10263
|
|
|
9542
|
-
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultPrimaryActiveHover, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorPrimaryActiveHover, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizePrimaryActiveHover, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoPrimaryActiveHover, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataPrimaryActive, RedsiftColorNoDataPrimaryActiveHover, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcPrimaryActiveHover, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainPrimaryActiveHover, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxPrimaryActiveHover, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionPrimaryActive, RedsiftColorQuestionPrimaryActiveHover, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessPrimaryActiveHover, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsPrimaryActiveHover, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningPrimaryActiveHover, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsitePrimaryActiveHover, RedsiftColorWebsiteSecondary, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorCyanDark, RedsiftDataVizColorCyanDarker, RedsiftDataVizColorCyanDefault, RedsiftDataVizColorCyanLight, RedsiftDataVizColorCyanLighter, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, 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, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Spinner, SpinnerSize, StyledButton, StyledLink, Text, TextComponent, TextVariant, filterComponents, isComponent, partitionComponents, useAppSidePanel, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
10264
|
+
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultPrimaryActiveHover, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorPrimaryActiveHover, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizePrimaryActiveHover, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoPrimaryActiveHover, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataPrimaryActive, RedsiftColorNoDataPrimaryActiveHover, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcPrimaryActiveHover, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainPrimaryActiveHover, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxPrimaryActiveHover, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionPrimaryActive, RedsiftColorQuestionPrimaryActiveHover, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessPrimaryActiveHover, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsPrimaryActiveHover, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningPrimaryActiveHover, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsitePrimaryActiveHover, RedsiftColorWebsiteSecondary, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorCyanDark, RedsiftDataVizColorCyanDarker, RedsiftDataVizColorCyanDefault, RedsiftDataVizColorCyanLight, RedsiftDataVizColorCyanLighter, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, 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, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Skeleton, SkeletonCircle, SkeletonText, SkeletonTextVariant, Spinner, SpinnerSize, StyledButton, StyledLink, Switch, SwitchGroup, SwitchGroupOrientation, Text, TextComponent, TextVariant, filterComponents, isComponent, partitionComponents, useAppSidePanel, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
9543
10265
|
//# sourceMappingURL=index.js.map
|