@redsift/design-system 7.5.0 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { useLocalizedStringFormatter, I18nProvider, useNumberFormatter } from '@react-aria/i18n';
1
+ import { I18nProvider, useLocalizedStringFormatter, useNumberFormatter } from '@react-aria/i18n';
2
2
  export { I18nProvider, useCollator, useDateFormatter, useFilter, useListFormatter, useLocale, useLocalizedStringFormatter, useNumberFormatter } from '@react-aria/i18n';
3
3
  export { SSRProvider, useIsSSR } from '@react-aria/ssr';
4
4
  import * as React from 'react';
5
- import React__default, { useState, useEffect, forwardRef, useRef, useCallback, useContext, useMemo, useReducer, useLayoutEffect, useId as useId$1 } from 'react';
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';
@@ -205,7 +205,7 @@ function partitionComponents(components, predicates) {
205
205
 
206
206
  /**
207
207
  * Do not edit directly
208
- * Generated on Tue, 21 Feb 2023 15:02:26 GMT
208
+ * Generated on Tue, 14 Mar 2023 15:14:37 GMT
209
209
  */
210
210
 
211
211
  const RedsiftColorDefaultPrimary = '#0079e1';
@@ -214,76 +214,91 @@ const RedsiftColorDefaultHover = '#dce8f3';
214
214
  const RedsiftColorDefaultActive = '#c4dcf1';
215
215
  const RedsiftColorDefaultActiveHover = '#abcfef';
216
216
  const RedsiftColorDefaultPrimaryActive = '#004a8a';
217
+ const RedsiftColorDefaultPrimaryActiveHover = '#00427c';
217
218
  const RedsiftColorWebsitePrimary = '#0079e1';
218
219
  const RedsiftColorWebsiteSecondary = '#0063b9';
219
220
  const RedsiftColorWebsiteHover = '#dce8f3';
220
221
  const RedsiftColorWebsiteActive = '#c4dcf1';
221
222
  const RedsiftColorWebsiteActiveHover = '#abcfef';
222
223
  const RedsiftColorWebsitePrimaryActive = '#004a8a';
224
+ const RedsiftColorWebsitePrimaryActiveHover = '#00427c';
223
225
  const RedsiftColorOndmarcPrimary = '#02ac61';
224
226
  const RedsiftColorOndmarcSecondary = '#009252';
225
227
  const RedsiftColorOndmarcHover = '#dcede6';
226
228
  const RedsiftColorOndmarcActive = '#c4e6d7';
227
229
  const RedsiftColorOndmarcActiveHover = '#acdfc8';
228
230
  const RedsiftColorOndmarcPrimaryActive = '#00512e';
231
+ const RedsiftColorOndmarcPrimaryActiveHover = '#004829';
229
232
  const RedsiftColorOninboxPrimary = '#33b222';
230
233
  const RedsiftColorOninboxSecondary = '#268519';
231
234
  const RedsiftColorOninboxHover = '#e1eedf';
232
235
  const RedsiftColorOninboxActive = '#cee8cb';
233
236
  const RedsiftColorOninboxActiveHover = '#bae0b5';
234
237
  const RedsiftColorOninboxPrimaryActive = '#164e0e';
238
+ const RedsiftColorOninboxPrimaryActiveHover = '#13460c';
235
239
  const RedsiftColorOndomainPrimary = '#028062';
236
240
  const RedsiftColorOndomainSecondary = '#015944';
237
241
  const RedsiftColorOndomainHover = '#dce9e6';
238
242
  const RedsiftColorOndomainActive = '#c4ded8';
239
243
  const RedsiftColorOndomainActiveHover = '#acd1c8';
240
244
  const RedsiftColorOndomainPrimaryActive = '#003f30';
245
+ const RedsiftColorOndomainPrimaryActiveHover = '#00382b';
241
246
  const RedsiftColorHardenizePrimary = '#0f7ab3';
242
247
  const RedsiftColorHardenizeSecondary = '#3498db';
243
248
  const RedsiftColorHardenizeHover = '#dee8ee';
244
249
  const RedsiftColorHardenizeActive = '#c7dce8';
245
250
  const RedsiftColorHardenizeActiveHover = '#b0d0e1';
246
251
  const RedsiftColorHardenizePrimaryActive = '#0a5379';
252
+ const RedsiftColorHardenizePrimaryActiveHover = '#094a6c';
247
253
  const RedsiftColorToolsPrimary = '#37bdfb';
248
254
  const RedsiftColorToolsSecondary = '#02a2ef';
249
255
  const RedsiftColorToolsHover = '#e2eff5';
250
256
  const RedsiftColorToolsActive = '#cfeaf6';
251
257
  const RedsiftColorToolsActiveHover = '#bce4f6';
252
258
  const RedsiftColorToolsPrimaryActive = '#237ea8';
259
+ const RedsiftColorToolsPrimaryActiveHover = '#1f7197';
253
260
  const RedsiftColorSuccessPrimary = '#02ac61';
254
261
  const RedsiftColorSuccessSecondary = '#009252';
255
262
  const RedsiftColorSuccessHover = '#dcede6';
256
263
  const RedsiftColorSuccessActive = '#c4e6d7';
257
264
  const RedsiftColorSuccessActiveHover = '#acdfc8';
258
265
  const RedsiftColorSuccessPrimaryActive = '#00512e';
266
+ const RedsiftColorSuccessPrimaryActiveHover = '#004829';
259
267
  const RedsiftColorErrorPrimary = '#e11010';
260
268
  const RedsiftColorErrorSecondary = '#b41010';
261
269
  const RedsiftColorErrorHover = '#f3dede';
262
270
  const RedsiftColorErrorActive = '#f1c7c7';
263
271
  const RedsiftColorErrorActiveHover = '#efb0b0';
264
272
  const RedsiftColorErrorPrimaryActive = '#770a0a';
273
+ const RedsiftColorErrorPrimaryActiveHover = '#6b0909';
265
274
  const RedsiftColorWarningPrimary = '#fcbb54';
266
275
  const RedsiftColorWarningSecondary = '#c09300';
267
276
  const RedsiftColorWarningHover = '#f5efe4';
268
277
  const RedsiftColorWarningActive = '#f6e9d5';
269
278
  const RedsiftColorWarningActiveHover = '#f7e3c4';
270
279
  const RedsiftColorWarningPrimaryActive = '#ae833f';
280
+ const RedsiftColorWarningPrimaryActiveHover = '#9c7538';
271
281
  const RedsiftColorInfoPrimary = '#0079e1';
272
282
  const RedsiftColorInfoSecondary = '#0063b9';
273
283
  const RedsiftColorInfoHover = '#dce8f3';
274
284
  const RedsiftColorInfoActive = '#c4dcf1';
275
285
  const RedsiftColorInfoActiveHover = '#abcfef';
276
286
  const RedsiftColorInfoPrimaryActive = '#004a8a';
287
+ const RedsiftColorInfoPrimaryActiveHover = '#00427c';
277
288
  const RedsiftColorQuestionPrimary = '#666666';
278
289
  const RedsiftColorQuestionSecondary = '#1c1c1c';
279
290
  const RedsiftColorQuestionHover = '#e6e6e6';
280
291
  const RedsiftColorQuestionActive = '#d8d8d8';
281
292
  const RedsiftColorQuestionActiveHover = '#cacaca';
293
+ const RedsiftColorQuestionPrimaryActive = '#111111';
294
+ const RedsiftColorQuestionPrimaryActiveHover = '#0f0f0f';
282
295
  const RedsiftColorNoDataPrimary = '#bdbdbd';
283
296
  const RedsiftColorNoDataSecondary = '#666666';
284
297
  const RedsiftColorNoDataHover = '#efefef';
285
298
  const RedsiftColorNoDataActive = '#eaeaea';
286
299
  const RedsiftColorNoDataActiveHover = '#e4e4e4';
300
+ const RedsiftColorNoDataPrimaryActive = '#3d3d3d';
301
+ const RedsiftColorNoDataPrimaryActiveHover = '#363636';
287
302
  const RedsiftColorNeutralBlack = '#1c1c1c';
288
303
  const RedsiftColorNeutralDarkgrey = '#666666';
289
304
  const RedsiftColorNeutralMidgrey = '#bdbdbd';
@@ -355,6 +370,14 @@ const RedsiftSideNavigationColorMenuItemBackgroundActive = '#39394C';
355
370
  const RedsiftSideNavigationColorMenuItemActive = '#02AC61';
356
371
  const RedsiftSideNavigationColorScrollbarResting = '#4C4C64';
357
372
  const RedsiftSideNavigationColorScrollbarHover = '#5d5d73';
373
+ const RedsiftLayoutZIndexFooter = '1000';
374
+ const RedsiftLayoutZIndexHeader = '1010';
375
+ const RedsiftLayoutZIndexSidePanel = '1050';
376
+ const RedsiftLayoutZIndexDropdown = '1100';
377
+ const RedsiftLayoutZIndexOverlay = '1150';
378
+ const RedsiftLayoutZIndexDialog = '1200';
379
+ const RedsiftLayoutZIndexPopover = '1250';
380
+ const RedsiftLayoutZIndexTooltip = '1300';
358
381
  const RedsiftTypographyFontFamilyRaleway = "'Raleway', sans-serif";
359
382
  const RedsiftTypographyFontFamilyElectrolize = "'electrolize', sans-serif";
360
383
  const RedsiftTypographyFontFamilySourceCodePro = "'Source Code Pro', sans-serif";
@@ -652,12 +675,12 @@ const baseLayout = css`
652
675
  } = _ref;
653
676
  return css`
654
677
  ${flex ? `flex: ${flex};` : ''}
655
- ${flexGrow ? `flex-grow: ${flexGrow};` : ''}
656
- ${flexShrink ? `flex-shrink: ${flexShrink};` : ''}
678
+ ${flexGrow !== undefined ? `flex-grow: ${flexGrow};` : ''}
679
+ ${flexShrink !== undefined ? `flex-shrink: ${flexShrink};` : ''}
657
680
  ${flexBasis ? `flex-basis: ${flexBasis};` : ''}
658
681
  ${alignSelf ? `align-self: ${alignSelf};` : ''}
659
682
  ${justifySelf ? `justify-self: ${justifySelf};` : ''}
660
- ${order ? `order: ${order};` : ''}
683
+ ${order !== undefined ? `order: ${order};` : ''}
661
684
  ${gridArea ? `grid-area: ${gridArea};` : ''}
662
685
  ${gridColumn ? `grid-column: ${gridColumn};` : ''}
663
686
  ${gridRow ? `grid-row: ${gridRow};` : ''}
@@ -715,12 +738,12 @@ const baseSizing = css`
715
738
  width
716
739
  } = _ref4;
717
740
  return css`
718
- ${height ? `height: ${typeof height === 'number' ? `${height}px` : height};` : ''}
741
+ ${height !== undefined ? `height: ${typeof height === 'number' ? `${height}px` : height};` : ''}
719
742
  ${maxHeight ? `max-height: ${maxHeight};` : ''}
720
743
  ${maxWidth ? `max-width: ${maxWidth};` : ''}
721
744
  ${minHeight ? `min-height: ${minHeight};` : ''}
722
745
  ${minWidth ? `min-width: ${minWidth};` : ''}
723
- ${width ? `width: ${typeof width === 'number' ? `${width}px` : width};` : ''}
746
+ ${width !== undefined ? `width: ${typeof width === 'number' ? `${width}px` : width};` : ''}
724
747
  `;
725
748
  }}
726
749
  `;
@@ -951,10 +974,10 @@ const StyledIcon = styled.span`
951
974
  }}
952
975
  `;
953
976
 
954
- const _excluded$D = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps"];
955
- const COMPONENT_NAME$F = 'Icon';
956
- const CLASSNAME$F = 'redsift-icon';
957
- const DEFAULT_PROPS$F = {
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 = {
958
981
  size: IconSize.medium
959
982
  };
960
983
 
@@ -972,7 +995,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
972
995
  size,
973
996
  svgProps
974
997
  } = props,
975
- forwardedProps = _objectWithoutProperties(props, _excluded$D);
998
+ forwardedProps = _objectWithoutProperties(props, _excluded$I);
976
999
  return /*#__PURE__*/React__default.createElement(StyledIcon, _extends$1({}, forwardedProps, {
977
1000
  $color: color,
978
1001
  $size: size,
@@ -994,9 +1017,9 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
994
1017
  fill: "currentColor"
995
1018
  })), badge ? badge : null);
996
1019
  });
997
- Icon.className = CLASSNAME$F;
998
- Icon.defaultProps = DEFAULT_PROPS$F;
999
- Icon.displayName = COMPONENT_NAME$F;
1020
+ Icon.className = CLASSNAME$K;
1021
+ Icon.defaultProps = DEFAULT_PROPS$K;
1022
+ Icon.displayName = COMPONENT_NAME$K;
1000
1023
 
1001
1024
  /**
1002
1025
  * Component variant.
@@ -1090,7 +1113,7 @@ const StyledButton = styled.button`
1090
1113
  color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-secondary)`};
1091
1114
  }
1092
1115
  ` : css`
1093
- background-color: ${$isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${$color}-secondary)`};
1116
+ background-color: ${$isActive ? `var(--redsift-color-${$color}-primary-active-hover)` : $isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${$color}-secondary)`};
1094
1117
  &,
1095
1118
  .redsift-icon {
1096
1119
  color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : 'var(--redsift-color-neutral-white)'};
@@ -1159,6 +1182,105 @@ const StyledSpinner = styled.img`
1159
1182
  vertical-align: -0.125em;
1160
1183
  `;
1161
1184
 
1185
+ const AppContainerContext = /*#__PURE__*/React__default.createContext(null);
1186
+
1187
+ /**
1188
+ * Component style.
1189
+ */
1190
+ const StyledAppContainer = styled.div`
1191
+ overflow: hidden;
1192
+
1193
+ ${_ref => {
1194
+ let {
1195
+ $productTheme
1196
+ } = _ref;
1197
+ return $productTheme && Object.keys(ProductColorPalette).indexOf($productTheme) !== -1 ? css`
1198
+ --redsift-color-default-primary: var(
1199
+ --redsift-color-${$productTheme}-primary
1200
+ );
1201
+ --redsift-color-default-secondary: var(
1202
+ --redsift-color-${$productTheme}-secondary
1203
+ );
1204
+ --redsift-color-default-hover: var(
1205
+ --redsift-color-${$productTheme}-hover
1206
+ );
1207
+ --redsift-color-default-active: var(
1208
+ --redsift-color-${$productTheme}-active
1209
+ );
1210
+ --redsift-color-default-active-hover: var(
1211
+ --redsift-color-${$productTheme}-active-hover
1212
+ );
1213
+ --redsift-color-default-primary-active: var(
1214
+ --redsift-color-${$productTheme}-primary-active
1215
+ );
1216
+ ` : '';
1217
+ }}
1218
+ `;
1219
+
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 = {};
1224
+
1225
+ /**
1226
+ * The AppContainer component.
1227
+ */
1228
+ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
1229
+ const {
1230
+ children,
1231
+ className,
1232
+ locale,
1233
+ productTheme
1234
+ } = props,
1235
+ forwardedProps = _objectWithoutProperties(props, _excluded$H);
1236
+ const {
1237
+ hasAppBar,
1238
+ hasAppSidePanel,
1239
+ hasAppContent
1240
+ } = useMemo(() => {
1241
+ const [[appBar], [appSidePanel], [appContent]] = partitionComponents(React__default.Children.toArray(children), [isComponent('AppBar'), isComponent('AppSidePanel'), isComponent('AppContent')]);
1242
+ return {
1243
+ hasAppBar: Boolean(appBar),
1244
+ hasAppSidePanel: Boolean(appSidePanel),
1245
+ hasAppContent: Boolean(appContent)
1246
+ };
1247
+ }, [children]);
1248
+ if ((hasAppBar || hasAppSidePanel || hasAppContent) && !(hasAppBar && hasAppSidePanel && hasAppContent)) {
1249
+ console.warn('Missing AppSidePanel, AppBar or AppContent inside AppContainer. These components are meant to work together.');
1250
+ }
1251
+ const [isSidePanelCollapsed, setIsSidePanelCollapsed] = useState(false);
1252
+ const [title, setTitle] = useState();
1253
+ const state = {
1254
+ collapseSidePanel() {
1255
+ setIsSidePanelCollapsed(true);
1256
+ },
1257
+ expandSidePanel() {
1258
+ setIsSidePanelCollapsed(false);
1259
+ },
1260
+ hasAppBar,
1261
+ hasAppSidePanel,
1262
+ hasAppContent,
1263
+ setTitle(title) {
1264
+ setTitle(title);
1265
+ },
1266
+ isSidePanelCollapsed,
1267
+ productTheme,
1268
+ title
1269
+ };
1270
+ return /*#__PURE__*/React__default.createElement(StyledAppContainer, _extends$1({}, forwardedProps, {
1271
+ $productTheme: productTheme,
1272
+ className: classNames(AppContainer.className, className),
1273
+ ref: ref
1274
+ }), /*#__PURE__*/React__default.createElement(AppContainerContext.Provider, {
1275
+ value: state
1276
+ }, /*#__PURE__*/React__default.createElement(I18nProvider, {
1277
+ locale: locale
1278
+ }, children)));
1279
+ });
1280
+ AppContainer.className = CLASSNAME$J;
1281
+ AppContainer.defaultProps = DEFAULT_PROPS$J;
1282
+ AppContainer.displayName = COMPONENT_NAME$J;
1283
+
1162
1284
  var spinnerDefault = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzAwNzllMSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwMDc5ZTEiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
1163
1285
 
1164
1286
  var spinnerHardenize = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzBmN2FiMyIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwZjdhYjMiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
@@ -1177,7 +1299,7 @@ var spinnerTools = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My
1177
1299
 
1178
1300
  var spinnerWebsite = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzAwNzllMSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwMDc5ZTEiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
1179
1301
 
1180
- const _excluded$C = ["aria-hidden", "aria-label", "className", "color", "size"];
1302
+ const _excluded$G = ["aria-hidden", "aria-label", "className", "color", "size"];
1181
1303
  const colorToFile = {
1182
1304
  default: spinnerDefault,
1183
1305
  hardenize: spinnerHardenize,
@@ -1189,9 +1311,9 @@ const colorToFile = {
1189
1311
  tools: spinnerTools,
1190
1312
  website: spinnerWebsite
1191
1313
  };
1192
- const COMPONENT_NAME$E = 'Spinner';
1193
- const CLASSNAME$E = 'redsift-shield';
1194
- const DEFAULT_PROPS$E = {
1314
+ const COMPONENT_NAME$I = 'Spinner';
1315
+ const CLASSNAME$I = 'redsift-shield';
1316
+ const DEFAULT_PROPS$I = {
1195
1317
  color: ColorPalette.default,
1196
1318
  size: SpinnerSize.medium
1197
1319
  };
@@ -1229,14 +1351,16 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
1229
1351
  'aria-hidden': ariaHidden,
1230
1352
  'aria-label': ariaLabel,
1231
1353
  className,
1232
- color,
1354
+ color: propsColor,
1233
1355
  size
1234
1356
  } = props,
1235
- forwardedProps = _objectWithoutProperties(props, _excluded$C);
1357
+ forwardedProps = _objectWithoutProperties(props, _excluded$G);
1236
1358
  const {
1237
1359
  width,
1238
1360
  height
1239
1361
  } = sizeToDimension(size);
1362
+ const appContainerState = useContext(AppContainerContext);
1363
+ const color = propsColor === ColorPalette.default && appContainerState && appContainerState.productTheme ? appContainerState.productTheme : propsColor;
1240
1364
  const stringFormatter = useLocalizedStringFormatter(intlMessages$4);
1241
1365
  return /*#__PURE__*/React__default.createElement(StyledSpinner, _extends$1({
1242
1366
  alt: stringFormatter.format('loading')
@@ -1252,14 +1376,14 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
1252
1376
  $size: size
1253
1377
  }));
1254
1378
  });
1255
- Spinner.className = CLASSNAME$E;
1256
- Spinner.defaultProps = DEFAULT_PROPS$E;
1257
- Spinner.displayName = COMPONENT_NAME$E;
1258
-
1259
- const _excluded$B = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isLoading", "leftIcon", "onPress", "rightIcon", "variant"];
1260
- const COMPONENT_NAME$D = 'Button';
1261
- const CLASSNAME$D = 'redsift-button';
1262
- const DEFAULT_PROPS$D = {
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 = {
1263
1387
  color: ColorPalette.default,
1264
1388
  height: 'fit-content',
1265
1389
  variant: ButtonVariant.primary
@@ -1275,7 +1399,8 @@ const DEFAULT_PROPS$D = {
1275
1399
  const Button = /*#__PURE__*/forwardRef((props, ref) => {
1276
1400
  const buttonRef = ref || useRef();
1277
1401
  const {
1278
- buttonProps
1402
+ buttonProps,
1403
+ isPressed
1279
1404
  } = useButton(_objectSpread2(_objectSpread2({}, props), {}, {
1280
1405
  isDisabled: props.isLoading || props.isDisabled || props.disabled,
1281
1406
  preventFocusOnPress: true
@@ -1295,11 +1420,11 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
1295
1420
  rightIcon,
1296
1421
  variant
1297
1422
  } = props,
1298
- forwardedProps = _objectWithoutProperties(props, _excluded$B);
1423
+ forwardedProps = _objectWithoutProperties(props, _excluded$F);
1299
1424
  return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({}, forwardedProps, buttonProps, {
1300
1425
  $color: color,
1301
1426
  $fullWidth: fullWidth,
1302
- $isActive: isActive,
1427
+ $isActive: isActive || isPressed,
1303
1428
  $isDisabled: isLoading || isDisabled || disabled,
1304
1429
  $variant: variant,
1305
1430
  "aria-disabled": isLoading || isDisabled || disabled,
@@ -1319,9 +1444,9 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
1319
1444
  className: "right"
1320
1445
  }) : null);
1321
1446
  });
1322
- Button.className = CLASSNAME$D;
1323
- Button.defaultProps = DEFAULT_PROPS$D;
1324
- Button.displayName = COMPONENT_NAME$D;
1447
+ Button.className = CLASSNAME$H;
1448
+ Button.defaultProps = DEFAULT_PROPS$H;
1449
+ Button.displayName = COMPONENT_NAME$H;
1325
1450
 
1326
1451
  /**
1327
1452
  * Component style.
@@ -1337,10 +1462,10 @@ const StyledIconButton = styled(StyledButton)`
1337
1462
  }};
1338
1463
  `;
1339
1464
 
1340
- const _excluded$A = ["className", "color", "disabled", "icon", "isActive", "isDisabled", "onPress", "variant"];
1341
- const COMPONENT_NAME$C = 'IconButton';
1342
- const CLASSNAME$C = 'redsift-icon-button';
1343
- const DEFAULT_PROPS$C = {
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 = {
1344
1469
  color: ColorPalette.default,
1345
1470
  height: 'fit-content',
1346
1471
  variant: IconButtonVariant.unstyled
@@ -1355,7 +1480,8 @@ const DEFAULT_PROPS$C = {
1355
1480
  const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
1356
1481
  const buttonRef = ref || useRef();
1357
1482
  const {
1358
- buttonProps
1483
+ buttonProps,
1484
+ isPressed
1359
1485
  } = useButton(_objectSpread2(_objectSpread2({}, props), {}, {
1360
1486
  isDisabled: props.isDisabled || props.disabled,
1361
1487
  preventFocusOnPress: true
@@ -1371,11 +1497,11 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
1371
1497
  onPress,
1372
1498
  variant
1373
1499
  } = props,
1374
- forwardedProps = _objectWithoutProperties(props, _excluded$A);
1500
+ forwardedProps = _objectWithoutProperties(props, _excluded$E);
1375
1501
  warnIfNoAccessibleLabelFound(props);
1376
1502
  return /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps, buttonProps, {
1377
1503
  $color: isDisabled || disabled ? undefined : color,
1378
- $isActive: isActive,
1504
+ $isActive: isActive || isPressed,
1379
1505
  $isDisabled: isDisabled || disabled,
1380
1506
  $variant: variant,
1381
1507
  "aria-disabled": isDisabled || disabled,
@@ -1387,9 +1513,9 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
1387
1513
  color: isDisabled || disabled ? undefined : color
1388
1514
  }));
1389
1515
  });
1390
- IconButton.className = CLASSNAME$C;
1391
- IconButton.defaultProps = DEFAULT_PROPS$C;
1392
- IconButton.displayName = COMPONENT_NAME$C;
1516
+ IconButton.className = CLASSNAME$G;
1517
+ IconButton.defaultProps = DEFAULT_PROPS$G;
1518
+ IconButton.displayName = COMPONENT_NAME$G;
1393
1519
 
1394
1520
  /**
1395
1521
  * Component style.
@@ -1529,10 +1655,10 @@ const StyledHeading = styled.span`
1529
1655
  }}
1530
1656
  `;
1531
1657
 
1532
- const _excluded$z = ["as", "children", "className", "noWrap", "variant"];
1533
- const COMPONENT_NAME$B = 'Heading';
1534
- const CLASSNAME$B = 'redsift-heading';
1535
- const DEFAULT_PROPS$B = {};
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 = {};
1536
1662
 
1537
1663
  /**
1538
1664
  * The Heading component.
@@ -1545,7 +1671,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
1545
1671
  noWrap,
1546
1672
  variant
1547
1673
  } = props,
1548
- forwardedProps = _objectWithoutProperties(props, _excluded$z);
1674
+ forwardedProps = _objectWithoutProperties(props, _excluded$D);
1549
1675
  return /*#__PURE__*/React__default.createElement(StyledHeading, _extends$1({
1550
1676
  as: as
1551
1677
  }, forwardedProps, {
@@ -1555,9 +1681,9 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
1555
1681
  $variant: variant ? variant : as === 'span' ? 'body' : as
1556
1682
  }), children);
1557
1683
  });
1558
- Heading.className = CLASSNAME$B;
1559
- Heading.defaultProps = DEFAULT_PROPS$B;
1560
- Heading.displayName = COMPONENT_NAME$B;
1684
+ Heading.className = CLASSNAME$F;
1685
+ Heading.defaultProps = DEFAULT_PROPS$F;
1686
+ Heading.displayName = COMPONENT_NAME$F;
1561
1687
 
1562
1688
  /**
1563
1689
  * Component style.
@@ -1575,10 +1701,10 @@ const StyledFlexbox = styled.div`
1575
1701
  ${baseFlexbox}
1576
1702
  `;
1577
1703
 
1578
- const _excluded$y = ["children", "className"];
1579
- const COMPONENT_NAME$A = 'Flexbox';
1580
- const CLASSNAME$A = 'redsift-flex-box';
1581
- const DEFAULT_PROPS$A = {
1704
+ const _excluded$C = ["children", "className"];
1705
+ const COMPONENT_NAME$E = 'Flexbox';
1706
+ const CLASSNAME$E = 'redsift-flex-box';
1707
+ const DEFAULT_PROPS$E = {
1582
1708
  gap: '16px'
1583
1709
  };
1584
1710
 
@@ -1590,20 +1716,20 @@ const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
1590
1716
  children,
1591
1717
  className
1592
1718
  } = props,
1593
- forwardedProps = _objectWithoutProperties(props, _excluded$y);
1719
+ forwardedProps = _objectWithoutProperties(props, _excluded$C);
1594
1720
  return /*#__PURE__*/React__default.createElement(StyledFlexbox, _extends$1({}, forwardedProps, {
1595
1721
  className: classNames(Flexbox.className, className),
1596
1722
  ref: ref
1597
1723
  }), children);
1598
1724
  });
1599
- Flexbox.className = CLASSNAME$A;
1600
- Flexbox.defaultProps = DEFAULT_PROPS$A;
1601
- Flexbox.displayName = COMPONENT_NAME$A;
1725
+ Flexbox.className = CLASSNAME$E;
1726
+ Flexbox.defaultProps = DEFAULT_PROPS$E;
1727
+ Flexbox.displayName = COMPONENT_NAME$E;
1602
1728
 
1603
- const _excluded$x = ["children", "className", "isClosable", "isClosed", "onClose", "title", "variant"];
1604
- const COMPONENT_NAME$z = 'Alert';
1605
- const CLASSNAME$z = 'redsift-alert';
1606
- const DEFAULT_PROPS$z = {
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 = {
1607
1733
  variant: 'info'
1608
1734
  };
1609
1735
  const getVariant$1 = variant => {
@@ -1617,7 +1743,7 @@ const getVariant$1 = variant => {
1617
1743
  case AlertVariant.error:
1618
1744
  return {
1619
1745
  color: ColorPalette.error,
1620
- icon: mdiInformation
1746
+ icon: mdiAlertCircle
1621
1747
  };
1622
1748
  case AlertVariant.success:
1623
1749
  return {
@@ -1645,7 +1771,7 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
1645
1771
  title,
1646
1772
  variant
1647
1773
  } = props,
1648
- forwardedProps = _objectWithoutProperties(props, _excluded$x);
1774
+ forwardedProps = _objectWithoutProperties(props, _excluded$B);
1649
1775
  const stringFormatter = useLocalizedStringFormatter(intlMessages$5);
1650
1776
  const {
1651
1777
  color,
@@ -1691,9 +1817,9 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
1691
1817
  className: `${Alert.className}__content`
1692
1818
  }, children) : null);
1693
1819
  });
1694
- Alert.className = CLASSNAME$z;
1695
- Alert.defaultProps = DEFAULT_PROPS$z;
1696
- Alert.displayName = COMPONENT_NAME$z;
1820
+ Alert.className = CLASSNAME$D;
1821
+ Alert.defaultProps = DEFAULT_PROPS$D;
1822
+ Alert.displayName = COMPONENT_NAME$D;
1697
1823
 
1698
1824
  var expand$5 = "Expand left side panel";
1699
1825
  var collapse$5 = "Collapse left side panel";
@@ -1714,8 +1840,6 @@ var intlMessages$3 = {
1714
1840
  'fr-FR': frFR$3
1715
1841
  };
1716
1842
 
1717
- const AppContainerContext = /*#__PURE__*/React__default.createContext(null);
1718
-
1719
1843
  const useIsLoaded = () => {
1720
1844
  const [isLoaded, setIsLoaded] = useState(false);
1721
1845
  useEffect(() => {
@@ -1741,7 +1865,7 @@ const StyledAppBar = styled.header`
1741
1865
  left: 0;
1742
1866
  position: fixed;
1743
1867
  top: 0;
1744
- z-index: 1;
1868
+ z-index: var(--redsift-layout-z-index-header);
1745
1869
 
1746
1870
  ${_ref => {
1747
1871
  let {
@@ -1792,10 +1916,10 @@ const StyledAppBar = styled.header`
1792
1916
  }
1793
1917
  `;
1794
1918
 
1795
- const _excluded$w = ["children", "className", "collapseIconButtonProps", "collapseIconButtonRef", "expandIconButtonProps", "expandIconButtonRef", "fallbackTitle", "title"];
1796
- const COMPONENT_NAME$y = 'AppBar';
1797
- const CLASSNAME$y = 'redsift-app-bar';
1798
- const DEFAULT_PROPS$y = {};
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 = {};
1799
1923
 
1800
1924
  /**
1801
1925
  * The AppBar component.
@@ -1811,7 +1935,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
1811
1935
  fallbackTitle,
1812
1936
  title: propsTitle
1813
1937
  } = props,
1814
- forwardedProps = _objectWithoutProperties(props, _excluded$w);
1938
+ forwardedProps = _objectWithoutProperties(props, _excluded$A);
1815
1939
  const {
1816
1940
  isLoaded
1817
1941
  } = useIsLoaded();
@@ -1850,103 +1974,9 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
1850
1974
  className: `${AppBar.className}__right`
1851
1975
  }, children));
1852
1976
  });
1853
- AppBar.className = CLASSNAME$y;
1854
- AppBar.defaultProps = DEFAULT_PROPS$y;
1855
- AppBar.displayName = COMPONENT_NAME$y;
1856
-
1857
- /**
1858
- * Component style.
1859
- */
1860
- const StyledAppContainer = styled.div`
1861
- ${_ref => {
1862
- let {
1863
- $productTheme
1864
- } = _ref;
1865
- return $productTheme && Object.keys(ProductColorPalette).indexOf($productTheme) !== -1 ? css`
1866
- --redsift-color-default-primary: var(
1867
- --redsift-color-${$productTheme}-primary
1868
- );
1869
- --redsift-color-default-secondary: var(
1870
- --redsift-color-${$productTheme}-secondary
1871
- );
1872
- --redsift-color-default-hover: var(
1873
- --redsift-color-${$productTheme}-hover
1874
- );
1875
- --redsift-color-default-active: var(
1876
- --redsift-color-${$productTheme}-active
1877
- );
1878
- --redsift-color-default-active-hover: var(
1879
- --redsift-color-${$productTheme}-active-hover
1880
- );
1881
- --redsift-color-default-primary-active: var(
1882
- --redsift-color-${$productTheme}-primary-active
1883
- );
1884
- ` : '';
1885
- }}
1886
- `;
1887
-
1888
- const _excluded$v = ["children", "className", "locale", "productTheme"];
1889
- const COMPONENT_NAME$x = 'AppContainer';
1890
- const CLASSNAME$x = 'redsift-app-container';
1891
- const DEFAULT_PROPS$x = {};
1892
-
1893
- /**
1894
- * The AppContainer component.
1895
- */
1896
- const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
1897
- const {
1898
- children,
1899
- className,
1900
- locale,
1901
- productTheme
1902
- } = props,
1903
- forwardedProps = _objectWithoutProperties(props, _excluded$v);
1904
- const {
1905
- hasAppBar,
1906
- hasAppSidePanel,
1907
- hasAppContent
1908
- } = useMemo(() => {
1909
- const [[appBar], [appSidePanel], [appContent]] = partitionComponents(React__default.Children.toArray(children), [isComponent('AppBar'), isComponent('AppSidePanel'), isComponent('AppContent')]);
1910
- return {
1911
- hasAppBar: Boolean(appBar),
1912
- hasAppSidePanel: Boolean(appSidePanel),
1913
- hasAppContent: Boolean(appContent)
1914
- };
1915
- }, [children]);
1916
- if ((hasAppBar || hasAppSidePanel || hasAppContent) && !(hasAppBar && hasAppSidePanel && hasAppContent)) {
1917
- console.warn('Missing AppSidePanel, AppBar or AppContent inside AppContainer. These components are meant to work together.');
1918
- }
1919
- const [isSidePanelCollapsed, setIsSidePanelCollapsed] = useState(false);
1920
- const [title, setTitle] = useState();
1921
- const state = {
1922
- collapseSidePanel() {
1923
- setIsSidePanelCollapsed(true);
1924
- },
1925
- expandSidePanel() {
1926
- setIsSidePanelCollapsed(false);
1927
- },
1928
- hasAppBar,
1929
- hasAppSidePanel,
1930
- hasAppContent,
1931
- setTitle(title) {
1932
- setTitle(title);
1933
- },
1934
- isSidePanelCollapsed,
1935
- title
1936
- };
1937
- return /*#__PURE__*/React__default.createElement(StyledAppContainer, _extends$1({}, forwardedProps, {
1938
- $productTheme: productTheme,
1939
- className: classNames(AppContainer.className, className),
1940
- ref: ref
1941
- }), /*#__PURE__*/React__default.createElement(AppContainerContext.Provider, {
1942
- value: state
1943
- }, /*#__PURE__*/React__default.createElement(I18nProvider, {
1944
- locale: locale
1945
- }, children)));
1946
- });
1947
- AppContainer.className = CLASSNAME$x;
1948
- AppContainer.defaultProps = DEFAULT_PROPS$x;
1949
- AppContainer.displayName = COMPONENT_NAME$x;
1977
+ AppBar.className = CLASSNAME$C;
1978
+ AppBar.defaultProps = DEFAULT_PROPS$C;
1979
+ AppBar.displayName = COMPONENT_NAME$C;
1950
1980
 
1951
1981
  /**
1952
1982
  * Component style.
@@ -2012,10 +2042,10 @@ const StyledAppContent = styled.main`
2012
2042
  }}
2013
2043
  `;
2014
2044
 
2015
- const _excluded$u = ["children", "className", "productTheme"];
2016
- const COMPONENT_NAME$w = 'AppContent';
2017
- const CLASSNAME$w = 'redsift-app-content';
2018
- const DEFAULT_PROPS$w = {};
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 = {};
2019
2049
 
2020
2050
  /**
2021
2051
  * The AppContent component.
@@ -2026,7 +2056,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
2026
2056
  className,
2027
2057
  productTheme
2028
2058
  } = props,
2029
- forwardedProps = _objectWithoutProperties(props, _excluded$u);
2059
+ forwardedProps = _objectWithoutProperties(props, _excluded$z);
2030
2060
  const {
2031
2061
  isLoaded
2032
2062
  } = useIsLoaded();
@@ -2039,9 +2069,9 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
2039
2069
  ref: ref
2040
2070
  }), children);
2041
2071
  });
2042
- AppContent.className = CLASSNAME$w;
2043
- AppContent.defaultProps = DEFAULT_PROPS$w;
2044
- AppContent.displayName = COMPONENT_NAME$w;
2072
+ AppContent.className = CLASSNAME$B;
2073
+ AppContent.defaultProps = DEFAULT_PROPS$B;
2074
+ AppContent.displayName = COMPONENT_NAME$B;
2045
2075
 
2046
2076
  /**
2047
2077
  * Component style.
@@ -2069,7 +2099,7 @@ const StyledAppSidePanel = styled.div`
2069
2099
  return !$isCollapsed ? 'visible' : 'hidden';
2070
2100
  }};
2071
2101
  width: 240px;
2072
- z-index: 1;
2102
+ z-index: var(--redsift-layout-z-index-side-panel);
2073
2103
 
2074
2104
  .redsift-app-side-panel__header {
2075
2105
  align-items: center;
@@ -2135,10 +2165,10 @@ const StyledAppSidePanel = styled.div`
2135
2165
  }
2136
2166
  `;
2137
2167
 
2138
- const _excluded$t = ["children", "className", "featuredElements", "isCollapsed", "logo"];
2139
- const COMPONENT_NAME$v = 'AppSidePanel';
2140
- const CLASSNAME$v = 'redsift-app-side-panel';
2141
- const DEFAULT_PROPS$v = {};
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 = {};
2142
2172
 
2143
2173
  /**
2144
2174
  * The AppSidePanel component.
@@ -2151,7 +2181,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
2151
2181
  isCollapsed = false,
2152
2182
  logo
2153
2183
  } = props,
2154
- forwardedProps = _objectWithoutProperties(props, _excluded$t);
2184
+ forwardedProps = _objectWithoutProperties(props, _excluded$y);
2155
2185
  const appContainerState = useContext(AppContainerContext);
2156
2186
  return /*#__PURE__*/React__default.createElement(StyledAppSidePanel, _extends$1({}, forwardedProps, {
2157
2187
  $isCollapsed: !!(isCollapsed || appContainerState !== null && appContainerState !== void 0 && appContainerState.isSidePanelCollapsed),
@@ -2166,9 +2196,9 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
2166
2196
  className: `${AppSidePanel.className}__featured`
2167
2197
  }, featuredElements) : null, children);
2168
2198
  });
2169
- AppSidePanel.className = CLASSNAME$v;
2170
- AppSidePanel.defaultProps = DEFAULT_PROPS$v;
2171
- AppSidePanel.displayName = COMPONENT_NAME$v;
2199
+ AppSidePanel.className = CLASSNAME$A;
2200
+ AppSidePanel.defaultProps = DEFAULT_PROPS$A;
2201
+ AppSidePanel.displayName = COMPONENT_NAME$A;
2172
2202
 
2173
2203
  /**
2174
2204
  * Context props.
@@ -2384,10 +2414,10 @@ const StyledBadge = styled.div`
2384
2414
  }}
2385
2415
  `;
2386
2416
 
2387
- const _excluded$s = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
2388
- const COMPONENT_NAME$u = 'Badge';
2389
- const CLASSNAME$u = 'redsift-badge';
2390
- const DEFAULT_PROPS$u = {
2417
+ const _excluded$x = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
2418
+ const COMPONENT_NAME$z = 'Badge';
2419
+ const CLASSNAME$z = 'redsift-badge';
2420
+ const DEFAULT_PROPS$z = {
2391
2421
  color: ColorPalette.question,
2392
2422
  variant: BadgeVariant.dot
2393
2423
  };
@@ -2404,7 +2434,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
2404
2434
  isReversed,
2405
2435
  variant
2406
2436
  } = props,
2407
- forwardedProps = _objectWithoutProperties(props, _excluded$s);
2437
+ forwardedProps = _objectWithoutProperties(props, _excluded$x);
2408
2438
  return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({}, forwardedProps, {
2409
2439
  $autoBreak: autoBreak,
2410
2440
  $color: color,
@@ -2414,14 +2444,14 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
2414
2444
  ref: ref
2415
2445
  }), variant === BadgeVariant.standard ? children : null);
2416
2446
  });
2417
- Badge.className = CLASSNAME$u;
2418
- Badge.defaultProps = DEFAULT_PROPS$u;
2419
- Badge.displayName = COMPONENT_NAME$u;
2447
+ Badge.className = CLASSNAME$z;
2448
+ Badge.defaultProps = DEFAULT_PROPS$z;
2449
+ Badge.displayName = COMPONENT_NAME$z;
2420
2450
 
2421
- const _excluded$r = ["badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
2422
- const COMPONENT_NAME$t = 'SideNavigationMenuItem';
2423
- const CLASSNAME$t = 'redsift-side-navigation-menu-item';
2424
- const DEFAULT_PROPS$t = {};
2451
+ const _excluded$w = ["badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
2452
+ const COMPONENT_NAME$y = 'SideNavigationMenuItem';
2453
+ const CLASSNAME$y = 'redsift-side-navigation-menu-item';
2454
+ const DEFAULT_PROPS$y = {};
2425
2455
 
2426
2456
  /**
2427
2457
  * The SideNavigationMenuItem component.
@@ -2445,7 +2475,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
2445
2475
  tabIndex,
2446
2476
  withoutIcons
2447
2477
  } = props,
2448
- forwardedProps = _objectWithoutProperties(props, _excluded$r);
2478
+ forwardedProps = _objectWithoutProperties(props, _excluded$w);
2449
2479
  warnIfNoAccessibleLabelFound(props, [children]);
2450
2480
  const appContainerState = useContext(AppContainerContext);
2451
2481
  useEffect(() => {
@@ -2507,9 +2537,9 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
2507
2537
  color: "error"
2508
2538
  }, badgeProps), badge) : null);
2509
2539
  });
2510
- SideNavigationMenuItem.className = CLASSNAME$t;
2511
- SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$t;
2512
- SideNavigationMenuItem.displayName = COMPONENT_NAME$t;
2540
+ SideNavigationMenuItem.className = CLASSNAME$y;
2541
+ SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$y;
2542
+ SideNavigationMenuItem.displayName = COMPONENT_NAME$y;
2513
2543
 
2514
2544
  /**
2515
2545
  * Component style.
@@ -2648,10 +2678,10 @@ const SideNavigationMenuReducer = (state, action) => {
2648
2678
  }
2649
2679
  };
2650
2680
 
2651
- const _excluded$q = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "withoutIcons"];
2652
- const COMPONENT_NAME$s = 'SideNavigationMenu';
2653
- const CLASSNAME$s = 'redsift-side-navigation-menu';
2654
- const DEFAULT_PROPS$s = {};
2681
+ const _excluded$v = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "withoutIcons"];
2682
+ const COMPONENT_NAME$x = 'SideNavigationMenu';
2683
+ const CLASSNAME$x = 'redsift-side-navigation-menu';
2684
+ const DEFAULT_PROPS$x = {};
2655
2685
 
2656
2686
  /**
2657
2687
  * The SideNavigationMenu component.
@@ -2674,7 +2704,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
2674
2704
  tabIndex,
2675
2705
  withoutIcons
2676
2706
  } = props,
2677
- forwardedProps = _objectWithoutProperties(props, _excluded$q);
2707
+ forwardedProps = _objectWithoutProperties(props, _excluded$v);
2678
2708
  warnIfNoAccessibleLabelFound(props);
2679
2709
  const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
2680
2710
  const [isFirstChild, setIsFirstChild] = useState(false);
@@ -2943,9 +2973,9 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
2943
2973
  role: "menu"
2944
2974
  }, menuItemListEventHandler), renderedMenuItems)));
2945
2975
  });
2946
- SideNavigationMenu.className = CLASSNAME$s;
2947
- SideNavigationMenu.defaultProps = DEFAULT_PROPS$s;
2948
- SideNavigationMenu.displayName = COMPONENT_NAME$s;
2976
+ SideNavigationMenu.className = CLASSNAME$x;
2977
+ SideNavigationMenu.defaultProps = DEFAULT_PROPS$x;
2978
+ SideNavigationMenu.displayName = COMPONENT_NAME$x;
2949
2979
 
2950
2980
  /**
2951
2981
  * Component style.
@@ -3016,10 +3046,10 @@ const useBoundingClientRect = (ref, deps) => {
3016
3046
  return boundingRect;
3017
3047
  };
3018
3048
 
3019
- const _excluded$p = ["aria-label", "aria-labelledby", "children", "className", "isDisabled", "menubarProps", "menubarRef", "withoutIcons"];
3020
- const COMPONENT_NAME$r = 'SideNavigationMenuBar';
3021
- const CLASSNAME$r = 'redsift-side-navigation-menu-bar';
3022
- const DEFAULT_PROPS$r = {};
3049
+ const _excluded$u = ["aria-label", "aria-labelledby", "children", "className", "isDisabled", "menubarProps", "menubarRef", "withoutIcons"];
3050
+ const COMPONENT_NAME$w = 'SideNavigationMenuBar';
3051
+ const CLASSNAME$w = 'redsift-side-navigation-menu-bar';
3052
+ const DEFAULT_PROPS$w = {};
3023
3053
 
3024
3054
  /**
3025
3055
  * Hook to store the previous index for further use
@@ -3047,7 +3077,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
3047
3077
  menubarRef = useRef(),
3048
3078
  withoutIcons
3049
3079
  } = props,
3050
- forwardedProps = _objectWithoutProperties(props, _excluded$p);
3080
+ forwardedProps = _objectWithoutProperties(props, _excluded$u);
3051
3081
  warnIfNoAccessibleLabelFound(props);
3052
3082
  const {
3053
3083
  top
@@ -3189,11 +3219,11 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
3189
3219
  role: "menubar"
3190
3220
  }), navItems)));
3191
3221
  });
3192
- SideNavigationMenuBar.className = CLASSNAME$r;
3193
- SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$r;
3194
- SideNavigationMenuBar.displayName = COMPONENT_NAME$r;
3222
+ SideNavigationMenuBar.className = CLASSNAME$w;
3223
+ SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$w;
3224
+ SideNavigationMenuBar.displayName = COMPONENT_NAME$w;
3195
3225
 
3196
- const _excluded$o = ["title", "href", "ref"],
3226
+ const _excluded$t = ["title", "href", "ref"],
3197
3227
  _excluded2 = ["title", "children", "ref"],
3198
3228
  _excluded3 = ["title", "href", "ref"];
3199
3229
  const isMenu = item => {
@@ -3212,7 +3242,7 @@ const useSideNavigationMenuBar = _ref => {
3212
3242
  href,
3213
3243
  ref
3214
3244
  } = item,
3215
- rest = _objectWithoutProperties(item, _excluded$o);
3245
+ rest = _objectWithoutProperties(item, _excluded$t);
3216
3246
  menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenuItem, _extends$1({
3217
3247
  key: title,
3218
3248
  isCurrent: isActive ? isActive(href) : undefined
@@ -3315,10 +3345,10 @@ const StyledBreadcrumbItem = styled.a`
3315
3345
  }
3316
3346
  `;
3317
3347
 
3318
- const _excluded$n = ["children", "className", "href", "isCurrent", "isDisabled"];
3319
- const COMPONENT_NAME$q = 'BreadcrumbItem';
3320
- const CLASSNAME$q = 'redsift-breadcrumb-item';
3321
- const DEFAULT_PROPS$q = {};
3348
+ const _excluded$s = ["children", "className", "href", "isCurrent", "isDisabled"];
3349
+ const COMPONENT_NAME$v = 'BreadcrumbItem';
3350
+ const CLASSNAME$v = 'redsift-breadcrumb-item';
3351
+ const DEFAULT_PROPS$v = {};
3322
3352
 
3323
3353
  /**
3324
3354
  * The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.
@@ -3331,7 +3361,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
3331
3361
  isCurrent,
3332
3362
  isDisabled
3333
3363
  } = props,
3334
- forwardedProps = _objectWithoutProperties(props, _excluded$n);
3364
+ forwardedProps = _objectWithoutProperties(props, _excluded$s);
3335
3365
  warnIfNoAccessibleLabelFound(props, [children]);
3336
3366
  return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
3337
3367
  role: "link",
@@ -3346,9 +3376,9 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
3346
3376
  ref: ref
3347
3377
  }), children);
3348
3378
  });
3349
- BreadcrumbItem.className = CLASSNAME$q;
3350
- BreadcrumbItem.defaultProps = DEFAULT_PROPS$q;
3351
- BreadcrumbItem.displayName = COMPONENT_NAME$q;
3379
+ BreadcrumbItem.className = CLASSNAME$v;
3380
+ BreadcrumbItem.defaultProps = DEFAULT_PROPS$v;
3381
+ BreadcrumbItem.displayName = COMPONENT_NAME$v;
3352
3382
 
3353
3383
  /**
3354
3384
  * Component style.
@@ -3382,10 +3412,10 @@ const StyledBreadcrumbs = styled.nav`
3382
3412
  }
3383
3413
  `;
3384
3414
 
3385
- const _excluded$m = ["children", "className", "isDisabled"];
3386
- const COMPONENT_NAME$p = 'Breadcrumbs';
3387
- const CLASSNAME$p = 'redsift-breadcrumbs';
3388
- const DEFAULT_PROPS$p = {};
3415
+ const _excluded$r = ["children", "className", "isDisabled"];
3416
+ const COMPONENT_NAME$u = 'Breadcrumbs';
3417
+ const CLASSNAME$u = 'redsift-breadcrumbs';
3418
+ const DEFAULT_PROPS$u = {};
3389
3419
 
3390
3420
  /**
3391
3421
  * The Breadcrumbs components is a list of links to the parent pages of the current page in hierarchical order.
@@ -3396,7 +3426,7 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
3396
3426
  className,
3397
3427
  isDisabled
3398
3428
  } = props,
3399
- forwardedProps = _objectWithoutProperties(props, _excluded$m);
3429
+ forwardedProps = _objectWithoutProperties(props, _excluded$r);
3400
3430
  warnIfNoAccessibleLabelFound(props);
3401
3431
  const childArray = filterComponents([Breadcrumbs.Item])(children);
3402
3432
  const breadcrumbItems = childArray.map((child, index) => {
@@ -3419,17 +3449,17 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
3419
3449
  ref: ref
3420
3450
  }), /*#__PURE__*/React__default.createElement("ol", null, breadcrumbItems));
3421
3451
  });
3422
- BaseBreadcrumbs.className = CLASSNAME$p;
3423
- BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$p;
3424
- BaseBreadcrumbs.displayName = COMPONENT_NAME$p;
3452
+ BaseBreadcrumbs.className = CLASSNAME$u;
3453
+ BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$u;
3454
+ BaseBreadcrumbs.displayName = COMPONENT_NAME$u;
3425
3455
  const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
3426
3456
  Item: BreadcrumbItem
3427
3457
  });
3428
3458
 
3429
- const _excluded$l = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
3430
- const COMPONENT_NAME$o = 'ButtonLink';
3431
- const CLASSNAME$o = 'redsift-button-link';
3432
- const DEFAULT_PROPS$o = {
3459
+ const _excluded$q = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
3460
+ const COMPONENT_NAME$t = 'ButtonLink';
3461
+ const CLASSNAME$t = 'redsift-button-link';
3462
+ const DEFAULT_PROPS$t = {
3433
3463
  color: ColorPalette.default,
3434
3464
  height: 'fit-content',
3435
3465
  variant: ButtonVariant.primary
@@ -3456,7 +3486,7 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
3456
3486
  target,
3457
3487
  variant
3458
3488
  } = props,
3459
- forwardedProps = _objectWithoutProperties(props, _excluded$l);
3489
+ forwardedProps = _objectWithoutProperties(props, _excluded$q);
3460
3490
  return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({
3461
3491
  as: as || 'a',
3462
3492
  role: "link",
@@ -3480,9 +3510,9 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
3480
3510
  className: "right"
3481
3511
  }) : null);
3482
3512
  });
3483
- ButtonLink.className = CLASSNAME$o;
3484
- ButtonLink.defaultProps = DEFAULT_PROPS$o;
3485
- ButtonLink.displayName = COMPONENT_NAME$o;
3513
+ ButtonLink.className = CLASSNAME$t;
3514
+ ButtonLink.defaultProps = DEFAULT_PROPS$t;
3515
+ ButtonLink.displayName = COMPONENT_NAME$t;
3486
3516
 
3487
3517
  var collapse$3 = "Collapse";
3488
3518
  var expand$3 = "Expand";
@@ -3584,42 +3614,282 @@ const StyledCardHeader = styled.div`
3584
3614
  }
3585
3615
  `;
3586
3616
 
3587
- const _excluded$k = ["children", "className", "header", "headingProps", "icon", "subheader"];
3588
- const COMPONENT_NAME$n = 'CardHeader';
3589
- const CLASSNAME$n = 'redsift-card-header';
3590
- const DEFAULT_PROPS$n = {};
3591
-
3592
3617
  /**
3593
- * The CardHeader component.
3618
+ * Component style.
3594
3619
  */
3595
- const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
3596
- const {
3597
- children,
3598
- className,
3599
- header,
3600
- headingProps,
3601
- icon,
3602
- subheader
3603
- } = props,
3604
- forwardedProps = _objectWithoutProperties(props, _excluded$k);
3605
- return /*#__PURE__*/React__default.createElement(StyledCardHeader, _extends$1({}, forwardedProps, {
3606
- className: classNames(CardHeader.className, className),
3607
- ref: ref
3608
- }), subheader ? /*#__PURE__*/React__default.createElement("div", {
3609
- className: `${CardHeader.className}__subheader`
3610
- }, subheader) : null, header ? /*#__PURE__*/React__default.createElement(Heading, _extends$1({
3611
- as: "h2",
3612
- color: "black",
3613
- className: `${CardHeader.className}__header`,
3614
- variant: "h2"
3620
+ const wave = keyframes`
3621
+ 0% {
3622
+ -webkit-transform: translateX(-100%);
3623
+ -moz-transform: translateX(-100%);
3624
+ -ms-transform: translateX(-100%);
3625
+ transform: translateX(-100%);
3626
+ }
3627
+
3628
+ 50% {
3629
+ -webkit-transform: translateX(100%);
3630
+ -moz-transform: translateX(100%);
3631
+ -ms-transform: translateX(100%);
3632
+ transform: translateX(100%);
3633
+ }
3634
+
3635
+ 100% {
3636
+ -webkit-transform: translateX(100%);
3637
+ -moz-transform: translateX(100%);
3638
+ -ms-transform: translateX(100%);
3639
+ transform: translateX(100%);
3640
+ }
3641
+ `;
3642
+ const StyledSkeleton = styled.div`
3643
+ height: fit-content;
3644
+ width: fit-content;
3645
+
3646
+ > * {
3647
+ visibility: hidden;
3648
+ }
3649
+
3650
+ flex: 0 0 auto;
3651
+
3652
+ ${baseStyling}
3653
+ ${baseInternalSpacing}
3654
+
3655
+ display: block;
3656
+ background-color: rgba(0, 0, 0, 0.11);
3657
+ position: relative;
3658
+ overflow: hidden;
3659
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
3660
+
3661
+ &::after {
3662
+ -webkit-animation: ${wave} 1.6s linear 0.5s infinite;
3663
+ animation: ${wave} 1.6s linear 0.5s infinite;
3664
+ background: linear-gradient(
3665
+ 90deg,
3666
+ transparent,
3667
+ rgba(0, 0, 0, 0.04),
3668
+ transparent
3669
+ );
3670
+ background-clip: content-box;
3671
+ content: '';
3672
+ position: absolute;
3673
+ -webkit-transform: translateX(-100%);
3674
+ -moz-transform: translateX(-100%);
3675
+ -ms-transform: translateX(-100%);
3676
+ transform: translateX(-100%);
3677
+ bottom: 0;
3678
+ left: 0;
3679
+ right: 0;
3680
+ top: 0;
3681
+ }
3682
+ `;
3683
+
3684
+ /**
3685
+ * Component style.
3686
+ */
3687
+ const StyledSkeletonCircle = styled(StyledSkeleton)`
3688
+ border-radius: 50%;
3689
+
3690
+ ${_ref => {
3691
+ let {
3692
+ height,
3693
+ width
3694
+ } = _ref;
3695
+ return css`
3696
+ &,
3697
+ &::after {
3698
+ ${height ? `height: ${height};` : width ? `height: ${width};` : ''}
3699
+ ${width ? `width: ${width};` : height ? `width: ${height};` : ''}
3700
+ }
3701
+ `;
3702
+ }}
3703
+ `;
3704
+
3705
+ const _excluded$p = ["children", "className", "isLoaded"];
3706
+ const COMPONENT_NAME$s = 'SkeletonCircle';
3707
+ const CLASSNAME$s = 'redsift-skeleton-circle';
3708
+ const DEFAULT_PROPS$s = {};
3709
+
3710
+ /**
3711
+ * The SkeletonCircle component.
3712
+ */
3713
+ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
3714
+ const {
3715
+ children,
3716
+ className,
3717
+ isLoaded
3718
+ } = props,
3719
+ forwardedProps = _objectWithoutProperties(props, _excluded$p);
3720
+ if (isLoaded) {
3721
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
3722
+ }
3723
+ return /*#__PURE__*/React__default.createElement(StyledSkeletonCircle, _extends$1({}, forwardedProps, {
3724
+ className: classNames(SkeletonCircle.className, className),
3725
+ ref: ref
3726
+ }), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
3727
+ });
3728
+ SkeletonCircle.className = CLASSNAME$s;
3729
+ SkeletonCircle.defaultProps = DEFAULT_PROPS$s;
3730
+ SkeletonCircle.displayName = COMPONENT_NAME$s;
3731
+
3732
+ /**
3733
+ * Component variant.
3734
+ */
3735
+ const SkeletonTextVariant = {
3736
+ h1: 'h1',
3737
+ h2: 'h2',
3738
+ h3: 'h3',
3739
+ h4: 'h4',
3740
+ h5: 'h5',
3741
+ subtitle: 'subtitle',
3742
+ body: 'body',
3743
+ body2: 'body2',
3744
+ button: 'button',
3745
+ caption: 'caption'
3746
+ };
3747
+
3748
+ /**
3749
+ * Component style.
3750
+ */
3751
+ const StyledSkeletonText = styled(StyledSkeleton)`
3752
+ background-clip: content-box;
3753
+
3754
+ ${_ref => {
3755
+ let {
3756
+ height,
3757
+ $fontSize,
3758
+ $lineHeight,
3759
+ $variant
3760
+ } = _ref;
3761
+ return height ? css`
3762
+ &,
3763
+ &::after {
3764
+ height: ${height};
3765
+ }
3766
+ ` : css`
3767
+ &,
3768
+ &::after {
3769
+ height: ${$fontSize ? $fontSize : `var(--redsift-typography-${$variant}-font-size)`};
3770
+ padding: calc(
3771
+ (
3772
+ ${$lineHeight ? $lineHeight : `var(--redsift-typography-${$variant}-line-height)`} -
3773
+ ${$fontSize ? $fontSize : `var(--redsift-typography-${$variant}-font-size)`}
3774
+ ) / 2
3775
+ )
3776
+ 0px;
3777
+ }
3778
+ `;
3779
+ }}}
3780
+ `;
3781
+
3782
+ const _excluded$o = ["children", "className", "fontSize", "isLoaded", "lineHeight", "variant"];
3783
+ const COMPONENT_NAME$r = 'SkeletonText';
3784
+ const CLASSNAME$r = 'redsift-skeleton-text';
3785
+ const DEFAULT_PROPS$r = {
3786
+ variant: 'body'
3787
+ };
3788
+
3789
+ /**
3790
+ * The SkeletonText component.
3791
+ */
3792
+ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
3793
+ const {
3794
+ children,
3795
+ className,
3796
+ fontSize,
3797
+ isLoaded,
3798
+ lineHeight,
3799
+ variant
3800
+ } = props,
3801
+ forwardedProps = _objectWithoutProperties(props, _excluded$o);
3802
+ if (isLoaded) {
3803
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
3804
+ }
3805
+ return /*#__PURE__*/React__default.createElement(StyledSkeletonText, _extends$1({}, forwardedProps, {
3806
+ className: classNames(SkeletonText.className, className),
3807
+ ref: ref,
3808
+ $fontSize: fontSize,
3809
+ $lineHeight: lineHeight,
3810
+ $variant: variant
3811
+ }), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
3812
+ });
3813
+ SkeletonText.className = CLASSNAME$r;
3814
+ SkeletonText.defaultProps = DEFAULT_PROPS$r;
3815
+ SkeletonText.displayName = COMPONENT_NAME$r;
3816
+
3817
+ const _excluded$n = ["children", "className", "isLoaded"];
3818
+ const COMPONENT_NAME$q = 'Skeleton';
3819
+ const CLASSNAME$q = 'redsift-skeleton';
3820
+ const DEFAULT_PROPS$q = {};
3821
+
3822
+ /**
3823
+ * The Skeleton component.
3824
+ */
3825
+ const BaseSkeleton = /*#__PURE__*/forwardRef((props, ref) => {
3826
+ const {
3827
+ children,
3828
+ className,
3829
+ isLoaded
3830
+ } = props,
3831
+ forwardedProps = _objectWithoutProperties(props, _excluded$n);
3832
+ if (isLoaded) {
3833
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
3834
+ }
3835
+ return /*#__PURE__*/React__default.createElement(StyledSkeleton, _extends$1({}, forwardedProps, {
3836
+ className: classNames(BaseSkeleton.className, className),
3837
+ ref: ref
3838
+ }), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
3839
+ });
3840
+ BaseSkeleton.className = CLASSNAME$q;
3841
+ BaseSkeleton.defaultProps = DEFAULT_PROPS$q;
3842
+ BaseSkeleton.displayName = COMPONENT_NAME$q;
3843
+ const Skeleton = Object.assign(BaseSkeleton, {
3844
+ Circle: SkeletonCircle,
3845
+ Text: SkeletonText
3846
+ });
3847
+
3848
+ const _excluded$m = ["children", "className", "header", "headingProps", "icon", "isLoading", "subheader"];
3849
+ const COMPONENT_NAME$p = 'CardHeader';
3850
+ const CLASSNAME$p = 'redsift-card-header';
3851
+ const DEFAULT_PROPS$p = {};
3852
+
3853
+ /**
3854
+ * The CardHeader component.
3855
+ */
3856
+ const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
3857
+ const {
3858
+ children,
3859
+ className,
3860
+ header,
3861
+ headingProps,
3862
+ icon,
3863
+ isLoading,
3864
+ subheader
3865
+ } = props,
3866
+ forwardedProps = _objectWithoutProperties(props, _excluded$m);
3867
+ return /*#__PURE__*/React__default.createElement(StyledCardHeader, _extends$1({}, forwardedProps, {
3868
+ className: classNames(CardHeader.className, className),
3869
+ ref: ref
3870
+ }), subheader ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
3871
+ variant: "body",
3872
+ isLoaded: !isLoading
3873
+ }, /*#__PURE__*/React__default.createElement("div", {
3874
+ className: `${CardHeader.className}__subheader`
3875
+ }, subheader)) : null, header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
3876
+ variant: "h2",
3877
+ isLoaded: !isLoading,
3878
+ marginTop: "10px",
3879
+ marginBottom: "10px"
3880
+ }, /*#__PURE__*/React__default.createElement(Heading, _extends$1({
3881
+ as: "h2",
3882
+ color: "black",
3883
+ className: `${CardHeader.className}__header`,
3884
+ variant: "h2"
3615
3885
  }, headingProps), icon ? /*#__PURE__*/React__default.createElement(Icon, {
3616
3886
  icon: icon,
3617
3887
  "aria-hidden": "true"
3618
- }) : null, header) : null, children);
3888
+ }) : null, header)) : null, children);
3619
3889
  });
3620
- CardHeader.className = CLASSNAME$n;
3621
- CardHeader.defaultProps = DEFAULT_PROPS$n;
3622
- CardHeader.displayName = COMPONENT_NAME$n;
3890
+ CardHeader.className = CLASSNAME$p;
3891
+ CardHeader.defaultProps = DEFAULT_PROPS$p;
3892
+ CardHeader.displayName = COMPONENT_NAME$p;
3623
3893
 
3624
3894
  /**
3625
3895
  * Component style.
@@ -3635,10 +3905,10 @@ const StyledCardBody = styled.div`
3635
3905
  padding: 16px 0px;
3636
3906
  `;
3637
3907
 
3638
- const _excluded$j = ["children", "className"];
3639
- const COMPONENT_NAME$m = 'CardBody';
3640
- const CLASSNAME$m = 'redsift-card-body';
3641
- const DEFAULT_PROPS$m = {};
3908
+ const _excluded$l = ["children", "className"];
3909
+ const COMPONENT_NAME$o = 'CardBody';
3910
+ const CLASSNAME$o = 'redsift-card-body';
3911
+ const DEFAULT_PROPS$o = {};
3642
3912
 
3643
3913
  /**
3644
3914
  * The CardBody component.
@@ -3648,15 +3918,15 @@ const CardBody = /*#__PURE__*/forwardRef((props, ref) => {
3648
3918
  children,
3649
3919
  className
3650
3920
  } = props,
3651
- forwardedProps = _objectWithoutProperties(props, _excluded$j);
3921
+ forwardedProps = _objectWithoutProperties(props, _excluded$l);
3652
3922
  return /*#__PURE__*/React__default.createElement(StyledCardBody, _extends$1({}, forwardedProps, {
3653
3923
  className: classNames(CardBody.className, className),
3654
3924
  ref: ref
3655
3925
  }), children);
3656
3926
  });
3657
- CardBody.className = CLASSNAME$m;
3658
- CardBody.defaultProps = DEFAULT_PROPS$m;
3659
- CardBody.displayName = COMPONENT_NAME$m;
3927
+ CardBody.className = CLASSNAME$o;
3928
+ CardBody.defaultProps = DEFAULT_PROPS$o;
3929
+ CardBody.displayName = COMPONENT_NAME$o;
3660
3930
 
3661
3931
  /**
3662
3932
  * Component style.
@@ -3668,10 +3938,10 @@ const StyledCardActions = styled.div`
3668
3938
  margin-bottom: 8px;
3669
3939
  `;
3670
3940
 
3671
- const _excluded$i = ["children", "className"];
3672
- const COMPONENT_NAME$l = 'CardActions';
3673
- const CLASSNAME$l = 'redsift-card-actions';
3674
- const DEFAULT_PROPS$l = {
3941
+ const _excluded$k = ["children", "className"];
3942
+ const COMPONENT_NAME$n = 'CardActions';
3943
+ const CLASSNAME$n = 'redsift-card-actions';
3944
+ const DEFAULT_PROPS$n = {
3675
3945
  display: 'flex',
3676
3946
  flexDirection: 'row'
3677
3947
  };
@@ -3684,20 +3954,20 @@ const CardActions = /*#__PURE__*/forwardRef((props, ref) => {
3684
3954
  children,
3685
3955
  className
3686
3956
  } = props,
3687
- forwardedProps = _objectWithoutProperties(props, _excluded$i);
3957
+ forwardedProps = _objectWithoutProperties(props, _excluded$k);
3688
3958
  return /*#__PURE__*/React__default.createElement(StyledCardActions, _extends$1({}, forwardedProps, {
3689
3959
  className: classNames(CardActions.className, className),
3690
3960
  ref: ref
3691
3961
  }), children);
3692
3962
  });
3693
- CardActions.className = CLASSNAME$l;
3694
- CardActions.defaultProps = DEFAULT_PROPS$l;
3695
- CardActions.displayName = COMPONENT_NAME$l;
3963
+ CardActions.className = CLASSNAME$n;
3964
+ CardActions.defaultProps = DEFAULT_PROPS$n;
3965
+ CardActions.displayName = COMPONENT_NAME$n;
3696
3966
 
3697
- const _excluded$h = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
3698
- const COMPONENT_NAME$k = 'Card';
3699
- const CLASSNAME$k = 'redsift-card';
3700
- const DEFAULT_PROPS$k = {};
3967
+ const _excluded$j = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
3968
+ const COMPONENT_NAME$m = 'Card';
3969
+ const CLASSNAME$m = 'redsift-card';
3970
+ const DEFAULT_PROPS$m = {};
3701
3971
 
3702
3972
  /**
3703
3973
  * The Card component.
@@ -3711,7 +3981,7 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
3711
3981
  isCollapsible,
3712
3982
  onCollapse
3713
3983
  } = props,
3714
- forwardedProps = _objectWithoutProperties(props, _excluded$h);
3984
+ forwardedProps = _objectWithoutProperties(props, _excluded$j);
3715
3985
  const stringFormatter = useLocalizedStringFormatter(intlMessages$2);
3716
3986
  const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
3717
3987
  useEffect(() => {
@@ -3742,9 +4012,9 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
3742
4012
  className: `${BaseCard.className}__content`
3743
4013
  }, body, actions) : null);
3744
4014
  });
3745
- BaseCard.className = CLASSNAME$k;
3746
- BaseCard.defaultProps = DEFAULT_PROPS$k;
3747
- BaseCard.displayName = COMPONENT_NAME$k;
4015
+ BaseCard.className = CLASSNAME$m;
4016
+ BaseCard.defaultProps = DEFAULT_PROPS$m;
4017
+ BaseCard.displayName = COMPONENT_NAME$m;
3748
4018
  const Card = Object.assign(BaseCard, {
3749
4019
  Header: CardHeader,
3750
4020
  Body: CardBody,
@@ -3843,10 +4113,10 @@ const StyledCheckboxGroup = styled.div`
3843
4113
  }
3844
4114
  `;
3845
4115
 
3846
- const _excluded$g = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
3847
- const COMPONENT_NAME$j = 'CheckboxGroup';
3848
- const CLASSNAME$j = 'redsift-checkbox-group';
3849
- const DEFAULT_PROPS$j = {
4116
+ const _excluded$i = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
4117
+ const COMPONENT_NAME$l = 'CheckboxGroup';
4118
+ const CLASSNAME$l = 'redsift-checkbox-group';
4119
+ const DEFAULT_PROPS$l = {
3850
4120
  color: ColorPalette.default,
3851
4121
  orientation: CheckboxGroupOrientation.vertical
3852
4122
  };
@@ -3871,7 +4141,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
3871
4141
  possibleValues,
3872
4142
  value
3873
4143
  } = props,
3874
- forwardedProps = _objectWithoutProperties(props, _excluded$g);
4144
+ forwardedProps = _objectWithoutProperties(props, _excluded$i);
3875
4145
  const [selectedValues, setValue] = useState(value || defaultValues || []);
3876
4146
  useEffect(() => {
3877
4147
  if (value) {
@@ -3925,16 +4195,16 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
3925
4195
  className: `${CheckboxGroup.className}-description`
3926
4196
  }, description));
3927
4197
  });
3928
- CheckboxGroup.className = CLASSNAME$j;
3929
- CheckboxGroup.defaultProps = DEFAULT_PROPS$j;
3930
- CheckboxGroup.displayName = COMPONENT_NAME$j;
4198
+ CheckboxGroup.className = CLASSNAME$l;
4199
+ CheckboxGroup.defaultProps = DEFAULT_PROPS$l;
4200
+ CheckboxGroup.displayName = COMPONENT_NAME$l;
3931
4201
 
3932
4202
  /**
3933
4203
  * Component style.
3934
4204
  */
3935
4205
  const StyledCheckbox = styled.label`
3936
- position: relative;
3937
4206
  height: fit-content;
4207
+ position: relative;
3938
4208
  width: fit-content;
3939
4209
  ${baseStyling}
3940
4210
 
@@ -4005,11 +4275,10 @@ const StyledCheckbox = styled.label`
4005
4275
  );
4006
4276
  `}
4007
4277
 
4008
- ${$isFocusVisible ? css`
4278
+ ${$isFocusVisible && !$isDisabled ? css`
4009
4279
  background-color: var(
4010
4280
  --redsift-color-${$isColored ? 'default' : 'question'}-hover
4011
4281
  );
4012
- border-radius: 21px;
4013
4282
  ` : ''}
4014
4283
  `;
4015
4284
  }}
@@ -4033,26 +4302,12 @@ const StyledCheckbox = styled.label`
4033
4302
  ` : '';
4034
4303
  }}
4035
4304
  }
4036
-
4037
- ${_ref4 => {
4038
- let {
4039
- $isColored,
4040
- $isFocusVisible
4041
- } = _ref4;
4042
- return $isFocusVisible ? css`
4043
- .redsift-icon {
4044
- background-color: var(
4045
- --redsift-color-${$isColored ? 'default' : 'question'}-hover
4046
- );
4047
- }
4048
- ` : '';
4049
- }}
4050
4305
  `;
4051
4306
 
4052
- const _excluded$f = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isControlled", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
4053
- const COMPONENT_NAME$i = 'Checkbox';
4054
- const CLASSNAME$i = 'redsift-checkbox';
4055
- const DEFAULT_PROPS$i = {
4307
+ const _excluded$h = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isControlled", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
4308
+ const COMPONENT_NAME$k = 'Checkbox';
4309
+ const CLASSNAME$k = 'redsift-checkbox';
4310
+ const DEFAULT_PROPS$k = {
4056
4311
  isColored: true
4057
4312
  };
4058
4313
 
@@ -4085,7 +4340,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
4085
4340
  onChange,
4086
4341
  value
4087
4342
  } = props,
4088
- forwardedProps = _objectWithoutProperties(props, _excluded$f);
4343
+ forwardedProps = _objectWithoutProperties(props, _excluded$h);
4089
4344
  const {
4090
4345
  isFocusVisible,
4091
4346
  focusProps
@@ -4165,9 +4420,9 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
4165
4420
  className: "label"
4166
4421
  }, children) : null);
4167
4422
  });
4168
- Checkbox.className = CLASSNAME$i;
4169
- Checkbox.defaultProps = DEFAULT_PROPS$i;
4170
- Checkbox.displayName = COMPONENT_NAME$i;
4423
+ Checkbox.className = CLASSNAME$k;
4424
+ Checkbox.defaultProps = DEFAULT_PROPS$k;
4425
+ Checkbox.displayName = COMPONENT_NAME$k;
4171
4426
 
4172
4427
  const ConditionalWrapper = _ref => {
4173
4428
  let {
@@ -4277,10 +4532,10 @@ const StyledShield = styled.div`
4277
4532
  }}
4278
4533
  `;
4279
4534
 
4280
- const _excluded$e = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
4281
- const COMPONENT_NAME$h = 'Shield';
4282
- const CLASSNAME$h = 'redsift-shield';
4283
- const DEFAULT_PROPS$h = {
4535
+ const _excluded$g = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
4536
+ const COMPONENT_NAME$j = 'Shield';
4537
+ const CLASSNAME$j = 'redsift-shield';
4538
+ const DEFAULT_PROPS$j = {
4284
4539
  variant: ShieldVariant.success
4285
4540
  };
4286
4541
  const getVariant = variant => {
@@ -4366,7 +4621,7 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
4366
4621
  isReversed,
4367
4622
  variant
4368
4623
  } = props,
4369
- forwardedProps = _objectWithoutProperties(props, _excluded$e);
4624
+ forwardedProps = _objectWithoutProperties(props, _excluded$g);
4370
4625
  const {
4371
4626
  color,
4372
4627
  icon
@@ -4400,9 +4655,9 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
4400
4655
  className: "icon"
4401
4656
  })));
4402
4657
  });
4403
- Shield.className = CLASSNAME$h;
4404
- Shield.defaultProps = DEFAULT_PROPS$h;
4405
- Shield.displayName = COMPONENT_NAME$h;
4658
+ Shield.className = CLASSNAME$j;
4659
+ Shield.defaultProps = DEFAULT_PROPS$j;
4660
+ Shield.displayName = COMPONENT_NAME$j;
4406
4661
 
4407
4662
  var collapse$1 = "Collapse details";
4408
4663
  var expand$1 = "Expand details";
@@ -4443,10 +4698,10 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
4443
4698
  }
4444
4699
  `;
4445
4700
 
4446
- const _excluded$d = ["caption", "children", "className"];
4447
- const COMPONENT_NAME$g = 'DetailedCardCollapsibleSectionItems';
4448
- const CLASSNAME$g = 'redsift-detailed-card-collapsible-section-items';
4449
- const DEFAULT_PROPS$g = {};
4701
+ const _excluded$f = ["caption", "children", "className"];
4702
+ const COMPONENT_NAME$i = 'DetailedCardCollapsibleSectionItems';
4703
+ const CLASSNAME$i = 'redsift-detailed-card-collapsible-section-items';
4704
+ const DEFAULT_PROPS$i = {};
4450
4705
 
4451
4706
  /**
4452
4707
  * The DetailedCardCollapsibleSectionItems Section component.
@@ -4457,7 +4712,7 @@ const DetailedCardCollapsibleSectionItems = /*#__PURE__*/forwardRef((props, ref)
4457
4712
  children,
4458
4713
  className
4459
4714
  } = props,
4460
- forwardedProps = _objectWithoutProperties(props, _excluded$d);
4715
+ forwardedProps = _objectWithoutProperties(props, _excluded$f);
4461
4716
  return /*#__PURE__*/React__default.createElement(StyledDetailedCardCollapsibleSectionItems, _extends$1({}, forwardedProps, {
4462
4717
  className: classNames(DetailedCardCollapsibleSectionItems.className, className),
4463
4718
  ref: ref
@@ -4465,9 +4720,9 @@ const DetailedCardCollapsibleSectionItems = /*#__PURE__*/forwardRef((props, ref)
4465
4720
  className: `${DetailedCardCollapsibleSectionItems.className}__caption`
4466
4721
  }, caption) : null);
4467
4722
  });
4468
- DetailedCardCollapsibleSectionItems.className = CLASSNAME$g;
4469
- DetailedCardCollapsibleSectionItems.defaultProps = DEFAULT_PROPS$g;
4470
- DetailedCardCollapsibleSectionItems.displayName = COMPONENT_NAME$g;
4723
+ DetailedCardCollapsibleSectionItems.className = CLASSNAME$i;
4724
+ DetailedCardCollapsibleSectionItems.defaultProps = DEFAULT_PROPS$i;
4725
+ DetailedCardCollapsibleSectionItems.displayName = COMPONENT_NAME$i;
4471
4726
 
4472
4727
  /**
4473
4728
  * Component style.
@@ -4481,11 +4736,7 @@ const StyledDetailedCardSection = styled.div`
4481
4736
  }
4482
4737
 
4483
4738
  .redsift-detailed-card-section-header__title {
4484
- color: var(--redsift-color-neutral-black);
4485
- font-family: var(--redsift-typography-font-family-raleway);
4486
- font-size: 18px;
4487
4739
  font-weight: 700;
4488
- line-height: 22px;
4489
4740
  padding: 6px 0px;
4490
4741
  }
4491
4742
 
@@ -4527,88 +4778,252 @@ const StyledDetailedCardSection = styled.div`
4527
4778
  }
4528
4779
  `;
4529
4780
 
4530
- const _excluded$c = ["children", "className", "header", "isCollapsed", "isCollapsible"];
4531
- const COMPONENT_NAME$f = 'DetailedCardSection';
4532
- const CLASSNAME$f = 'redsift-detailed-card-section';
4533
- const DEFAULT_PROPS$f = {
4534
- isCollapsible: true
4535
- };
4536
- const hasCollapsibleChildren = children => {
4537
- let hasCollapsible = false;
4538
- React__default.Children.map(children, child => {
4539
- if (isComponent(DetailedCardCollapsibleSectionItems)(child)) {
4540
- hasCollapsible = true;
4541
- }
4542
- });
4543
- return hasCollapsible;
4544
- };
4545
-
4546
4781
  /**
4547
- * The DetailedCardSection component.
4782
+ * Component variant.
4548
4783
  */
4549
- const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
4550
- const {
4551
- children,
4552
- className,
4553
- header,
4554
- isCollapsed: propsIsCollapsed,
4555
- isCollapsible: propsIsCollapsible
4556
- } = props,
4557
- forwardedProps = _objectWithoutProperties(props, _excluded$c);
4558
- const stringFormatter = useLocalizedStringFormatter(intlMessages);
4559
- const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
4560
- const [isCollapsed, setIsCollapsed] = useState(Boolean(propsIsCollapsed));
4561
- return /*#__PURE__*/React__default.createElement(StyledDetailedCardSection, _extends$1({}, forwardedProps, {
4562
- className: classNames(DetailedCardSection.className, className),
4563
- ref: ref,
4564
- $isCollapsed: isCollapsed
4565
- }), /*#__PURE__*/React__default.createElement(Flexbox, {
4566
- justifyContent: "space-between",
4567
- className: `${DetailedCardSection.className}__header`
4568
- }, header ? /*#__PURE__*/React__default.createElement("div", {
4569
- className: `${DetailedCardSection.className}-header__title`
4570
- }, header) : null, isCollapsible ? /*#__PURE__*/React__default.createElement(IconButton, {
4571
- "aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
4572
- className: `${DetailedCardSection.className}-header__collapse-button`,
4573
- color: "question",
4574
- icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
4575
- onPress: () => {
4576
- setIsCollapsed(isCollapsed => !isCollapsed);
4577
- }
4578
- }) : null), children);
4579
- });
4580
- DetailedCardSection.className = CLASSNAME$f;
4581
- DetailedCardSection.defaultProps = DEFAULT_PROPS$f;
4582
- DetailedCardSection.displayName = COMPONENT_NAME$f;
4784
+ const TextVariant = {
4785
+ subtitle: 'subtitle',
4786
+ body: 'body',
4787
+ body2: 'body2',
4788
+ button: 'button',
4789
+ caption: 'caption',
4790
+ inherit: 'inherit'
4791
+ };
4792
+ const TextComponent = {
4793
+ p: 'p',
4794
+ b: 'b',
4795
+ i: 'i',
4796
+ u: 'u',
4797
+ abbr: 'abbr',
4798
+ cite: 'cite',
4799
+ del: 'del',
4800
+ em: 'em',
4801
+ ins: 'ins',
4802
+ kbd: 'kbd',
4803
+ mark: 'mark',
4804
+ s: 's',
4805
+ samp: 'samp',
4806
+ sub: 'sub',
4807
+ sup: 'sup'
4808
+ };
4583
4809
 
4584
4810
  /**
4585
4811
  * Component style.
4586
4812
  */
4587
- const StyledDetailedCard = styled.div`
4813
+ const StyledText = styled.span`
4588
4814
  ${baseStyling}
4589
4815
 
4590
- background-color: var(--redsift-color-neutral-white);
4591
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
4592
- padding: 16px;
4593
-
4594
- .redsift-detailed-card__banner {
4595
- align-items: center;
4596
- background-color: ${_ref => {
4816
+ ${_ref => {
4597
4817
  let {
4598
4818
  $color
4599
4819
  } = _ref;
4600
- return css`var(--redsift-color-${$color}-primary)`;
4601
- }};
4602
- display: flex;
4603
- height: 80px;
4604
- justify-content: center;
4605
- margin: -16px -16px 16px -16px;
4606
- width: calc(100% + 32px);
4607
- }
4608
-
4609
- .redsift-detailed-card__collapse-buttons {
4610
- width: 100%;
4611
- }
4820
+ return $color && [...Object.keys(ColorPalette), ...Object.keys(ProductColorPalette)].indexOf($color) !== -1 ? css`
4821
+ color: var(--redsift-color-${$color}-primary);
4822
+ ` : Object.keys(NeutralColorPalette).indexOf($color) !== -1 ? css`
4823
+ color: var(--redsift-color-neutral-${$color});
4824
+ ` : css`
4825
+ color: ${$color || css`inherit`};
4826
+ `;
4827
+ }}
4828
+
4829
+ ${_ref2 => {
4830
+ let {
4831
+ $as
4832
+ } = _ref2;
4833
+ return css`
4834
+ ${$as === TextComponent.i || $as === TextComponent.cite || $as === TextComponent.em ? css`
4835
+ font-style: italic;
4836
+ ` : $as === TextComponent.sub ? css`
4837
+ vertical-align: sub;
4838
+ ` : $as === TextComponent.sup ? css`
4839
+ vertical-align: super;
4840
+ ` : ''}
4841
+ `;
4842
+ }}
4843
+
4844
+ ${_ref3 => {
4845
+ let {
4846
+ $as,
4847
+ $fontFamily,
4848
+ $fontSize,
4849
+ $lineHeight,
4850
+ $variant
4851
+ } = _ref3;
4852
+ return !$variant ? css`
4853
+ ${$fontFamily ? css`
4854
+ font-family: var(
4855
+ --redsift-typography-font-family-${$fontFamily}
4856
+ );
4857
+ ` : ''}
4858
+ ${$fontSize ? css`
4859
+ font-size: ${$fontSize};
4860
+ ` : ''}
4861
+ ${$lineHeight ? css`
4862
+ line-height: ${$lineHeight};
4863
+ ` : ''}
4864
+ ${$as === TextComponent.b ? css`
4865
+ font-weight: var(--redsift-typography-font-weight-bold);
4866
+ ` : $as === TextComponent.sup || $as === TextComponent.sub ? css`
4867
+ font-size: ${$fontSize ? $fontSize : '12px'};
4868
+ ` : ''}
4869
+ ` : $variant === TextVariant.inherit ? css`
4870
+ font-family: ${$fontFamily ? css`var(--redsift-typography-font-family-${$fontFamily})` : css`inherit`};
4871
+ font-size: ${$fontSize ? $fontSize : $as === TextComponent.sup || $as === TextComponent.sub ? '12px' : css`inherit`};
4872
+ font-weight: ${$as === TextComponent.b ? 'var(--redsift-typography-font-weight-bold)' : 'inherit'};
4873
+ line-height: ${$lineHeight ? $lineHeight : css`inherit`};
4874
+ text-transform: inherit;
4875
+ ` : css`
4876
+ font-family: ${$fontFamily ? css`var(--redsift-typography-font-family-${$fontFamily})` : css`var(--redsift-typography-${$variant}-font-family)`};
4877
+ font-size: ${$fontSize ? $fontSize : css`var(--redsift-typography-${$variant}-font-size)`};
4878
+ font-weight: var(--redsift-typography-${$variant}-font-weight);
4879
+ line-height: ${$lineHeight ? $lineHeight : css`var(--redsift-typography-${$variant}-line-height)`};
4880
+ text-transform: var(--redsift-typography-${$variant}-text-transform);
4881
+ `;
4882
+ }}
4883
+
4884
+ ${_ref4 => {
4885
+ let {
4886
+ $noWrap
4887
+ } = _ref4;
4888
+ return $noWrap ? css`
4889
+ overflow: hidden;
4890
+ text-overflow: ellipsis;
4891
+ white-space: nowrap;
4892
+ ` : css`
4893
+ word-break: break-word;
4894
+ `;
4895
+ }}
4896
+ `;
4897
+
4898
+ const _excluded$e = ["as", "children", "className", "color", "fontFamily", "fontSize", "lineHeight", "noWrap", "variant"];
4899
+ const COMPONENT_NAME$h = 'Text';
4900
+ const CLASSNAME$h = 'redsift-text';
4901
+ const DEFAULT_PROPS$h = {
4902
+ fontFamily: FontFamily.raleway
4903
+ };
4904
+
4905
+ /**
4906
+ * The Text component.
4907
+ */
4908
+ const Text = /*#__PURE__*/forwardRef((props, ref) => {
4909
+ const {
4910
+ as,
4911
+ children,
4912
+ className,
4913
+ color,
4914
+ fontFamily,
4915
+ fontSize,
4916
+ lineHeight,
4917
+ noWrap,
4918
+ variant
4919
+ } = props,
4920
+ forwardedProps = _objectWithoutProperties(props, _excluded$e);
4921
+ return /*#__PURE__*/React__default.createElement(StyledText, _extends$1({
4922
+ as: as
4923
+ }, forwardedProps, {
4924
+ className: classNames(Text.className, className),
4925
+ ref: ref,
4926
+ $as: as,
4927
+ $color: color,
4928
+ $fontFamily: fontFamily,
4929
+ $fontSize: fontSize,
4930
+ $lineHeight: lineHeight,
4931
+ $noWrap: noWrap,
4932
+ $variant: variant
4933
+ }), children);
4934
+ });
4935
+ Text.className = CLASSNAME$h;
4936
+ Text.defaultProps = DEFAULT_PROPS$h;
4937
+ Text.displayName = COMPONENT_NAME$h;
4938
+
4939
+ const _excluded$d = ["children", "className", "header", "isCollapsed", "isCollapsible", "isLoading"];
4940
+ const COMPONENT_NAME$g = 'DetailedCardSection';
4941
+ const CLASSNAME$g = 'redsift-detailed-card-section';
4942
+ const DEFAULT_PROPS$g = {
4943
+ isCollapsible: true
4944
+ };
4945
+ const hasCollapsibleChildren = children => {
4946
+ let hasCollapsible = false;
4947
+ React__default.Children.map(children, child => {
4948
+ if (isComponent(DetailedCardCollapsibleSectionItems)(child)) {
4949
+ hasCollapsible = true;
4950
+ }
4951
+ });
4952
+ return hasCollapsible;
4953
+ };
4954
+
4955
+ /**
4956
+ * The DetailedCardSection component.
4957
+ */
4958
+ const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
4959
+ const {
4960
+ children,
4961
+ className,
4962
+ header,
4963
+ isCollapsed: propsIsCollapsed,
4964
+ isCollapsible: propsIsCollapsible,
4965
+ isLoading
4966
+ } = props,
4967
+ forwardedProps = _objectWithoutProperties(props, _excluded$d);
4968
+ const stringFormatter = useLocalizedStringFormatter(intlMessages);
4969
+ const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
4970
+ const [isCollapsed, setIsCollapsed] = useState(Boolean(propsIsCollapsed));
4971
+ return /*#__PURE__*/React__default.createElement(StyledDetailedCardSection, _extends$1({}, forwardedProps, {
4972
+ className: classNames(DetailedCardSection.className, className),
4973
+ ref: ref,
4974
+ $isCollapsed: isCollapsed
4975
+ }), /*#__PURE__*/React__default.createElement(Flexbox, {
4976
+ justifyContent: "space-between",
4977
+ className: `${DetailedCardSection.className}__header`
4978
+ }, header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
4979
+ variant: "body",
4980
+ isLoaded: !isLoading,
4981
+ fontSize: "18px",
4982
+ lineHeight: "22px",
4983
+ marginTop: "6px",
4984
+ marginBottom: "12px"
4985
+ }, /*#__PURE__*/React__default.createElement(Text, {
4986
+ className: `${DetailedCardSection.className}-header__title`,
4987
+ color: "black",
4988
+ fontFamily: "raleway",
4989
+ fontSize: "18px",
4990
+ lineHeight: "22px"
4991
+ }, header)) : null, isCollapsible && !isLoading ? /*#__PURE__*/React__default.createElement(IconButton, {
4992
+ "aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
4993
+ className: `${DetailedCardSection.className}-header__collapse-button`,
4994
+ color: "question",
4995
+ icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
4996
+ onPress: () => {
4997
+ setIsCollapsed(isCollapsed => !isCollapsed);
4998
+ }
4999
+ }) : null), children);
5000
+ });
5001
+ DetailedCardSection.className = CLASSNAME$g;
5002
+ DetailedCardSection.defaultProps = DEFAULT_PROPS$g;
5003
+ DetailedCardSection.displayName = COMPONENT_NAME$g;
5004
+
5005
+ /**
5006
+ * Component style.
5007
+ */
5008
+ const StyledDetailedCard = styled.div`
5009
+ ${baseStyling}
5010
+
5011
+ background-color: var(--redsift-color-neutral-white);
5012
+ box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
5013
+ padding: 16px;
5014
+
5015
+ .redsift-detailed-card__banner {
5016
+ background-color: ${_ref => {
5017
+ let {
5018
+ $color
5019
+ } = _ref;
5020
+ return css`var(--redsift-color-${$color}-primary)`;
5021
+ }};
5022
+ }
5023
+
5024
+ .redsift-detailed-card__collapse-buttons {
5025
+ width: 100%;
5026
+ }
4612
5027
  `;
4613
5028
 
4614
5029
  /**
@@ -4626,10 +5041,10 @@ const StyledDetailedCardHeader = styled.div`
4626
5041
  }
4627
5042
  `;
4628
5043
 
4629
- const _excluded$b = ["children", "className", "header", "headingProps"];
4630
- const COMPONENT_NAME$e = 'DetailedCardHeader';
4631
- const CLASSNAME$e = 'redsift-detailed-card-header';
4632
- const DEFAULT_PROPS$e = {};
5044
+ const _excluded$c = ["children", "className", "header", "headingProps", "isLoading"];
5045
+ const COMPONENT_NAME$f = 'DetailedCardHeader';
5046
+ const CLASSNAME$f = 'redsift-detailed-card-header';
5047
+ const DEFAULT_PROPS$f = {};
4633
5048
 
4634
5049
  /**
4635
5050
  * The DetailedCardHeader component.
@@ -4639,21 +5054,27 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
4639
5054
  children,
4640
5055
  className,
4641
5056
  header,
4642
- headingProps
5057
+ headingProps,
5058
+ isLoading
4643
5059
  } = props,
4644
- forwardedProps = _objectWithoutProperties(props, _excluded$b);
5060
+ forwardedProps = _objectWithoutProperties(props, _excluded$c);
4645
5061
  return /*#__PURE__*/React__default.createElement(StyledDetailedCardHeader, _extends$1({}, forwardedProps, {
4646
5062
  className: classNames(DetailedCardHeader.className, className),
4647
5063
  ref: ref
4648
- }), header ? /*#__PURE__*/React__default.createElement(Heading, _extends$1({
5064
+ }), header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
5065
+ variant: "h2",
5066
+ isLoaded: !isLoading,
5067
+ height: "32px",
5068
+ marginBottom: "16px"
5069
+ }, /*#__PURE__*/React__default.createElement(Heading, _extends$1({
4649
5070
  as: "h2",
4650
5071
  className: `${DetailedCardHeader.className}__header`,
4651
5072
  variant: "h2"
4652
- }, headingProps), header) : null, children);
5073
+ }, headingProps), header)) : null, children);
4653
5074
  });
4654
- DetailedCardHeader.className = CLASSNAME$e;
4655
- DetailedCardHeader.defaultProps = DEFAULT_PROPS$e;
4656
- DetailedCardHeader.displayName = COMPONENT_NAME$e;
5075
+ DetailedCardHeader.className = CLASSNAME$f;
5076
+ DetailedCardHeader.defaultProps = DEFAULT_PROPS$f;
5077
+ DetailedCardHeader.displayName = COMPONENT_NAME$f;
4657
5078
 
4658
5079
  /**
4659
5080
  * Component style.
@@ -4696,10 +5117,10 @@ const StyledPill = styled.div`
4696
5117
  }
4697
5118
  `;
4698
5119
 
4699
- const _excluded$a = ["autoBreak", "children", "className", "color"];
4700
- const COMPONENT_NAME$d = 'Pill';
4701
- const CLASSNAME$d = 'redsift-badge';
4702
- const DEFAULT_PROPS$d = {
5120
+ const _excluded$b = ["autoBreak", "children", "className", "color"];
5121
+ const COMPONENT_NAME$e = 'Pill';
5122
+ const CLASSNAME$e = 'redsift-pill';
5123
+ const DEFAULT_PROPS$e = {
4703
5124
  color: DataVizColorPalette.blue,
4704
5125
  height: 'fit-content'
4705
5126
  };
@@ -4714,166 +5135,17 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
4714
5135
  className,
4715
5136
  color
4716
5137
  } = props,
4717
- forwardedProps = _objectWithoutProperties(props, _excluded$a);
5138
+ forwardedProps = _objectWithoutProperties(props, _excluded$b);
4718
5139
  return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
4719
- $autoBreak: autoBreak,
4720
- $color: color,
4721
- className: classNames(Pill.className, className),
4722
- ref: ref
4723
- }), children);
4724
- });
4725
- Pill.className = CLASSNAME$d;
4726
- Pill.defaultProps = DEFAULT_PROPS$d;
4727
- Pill.displayName = COMPONENT_NAME$d;
4728
-
4729
- /**
4730
- * Component variant.
4731
- */
4732
- const TextVariant = {
4733
- body: 'body',
4734
- button: 'button',
4735
- caption: 'caption',
4736
- inherit: 'inherit',
4737
- subtitle1: 'subtitle1'
4738
- };
4739
- const TextComponent = {
4740
- p: 'p',
4741
- b: 'b',
4742
- i: 'i',
4743
- u: 'u',
4744
- abbr: 'abbr',
4745
- cite: 'cite',
4746
- del: 'del',
4747
- em: 'em',
4748
- ins: 'ins',
4749
- kbd: 'kbd',
4750
- mark: 'mark',
4751
- s: 's',
4752
- samp: 'samp',
4753
- sub: 'sub',
4754
- sup: 'sup'
4755
- };
4756
-
4757
- /**
4758
- * Component style.
4759
- */
4760
- const StyledText = styled.span`
4761
- ${baseStyling}
4762
-
4763
- ${_ref => {
4764
- let {
4765
- $color
4766
- } = _ref;
4767
- return $color && [...Object.keys(ColorPalette), ...Object.keys(ProductColorPalette)].indexOf($color) !== -1 ? css`
4768
- color: var(--redsift-color-${$color}-primary);
4769
- ` : Object.keys(NeutralColorPalette).indexOf($color) !== -1 ? css`
4770
- color: var(--redsift-color-neutral-${$color});
4771
- ` : css`
4772
- color: ${$color || css`inherit`};
4773
- `;
4774
- }}
4775
-
4776
- ${_ref2 => {
4777
- let {
4778
- $as
4779
- } = _ref2;
4780
- return css`
4781
- ${$as === TextComponent.i || $as === TextComponent.cite || $as === TextComponent.em ? css`
4782
- font-style: italic;
4783
- ` : $as === TextComponent.sub ? css`
4784
- vertical-align: sub;
4785
- ` : $as === TextComponent.sup ? css`
4786
- vertical-align: super;
4787
- ` : ''}
4788
- `;
4789
- }}
4790
-
4791
- ${_ref3 => {
4792
- let {
4793
- $as,
4794
- $fontFamily,
4795
- $fontSize,
4796
- $variant
4797
- } = _ref3;
4798
- return !$variant ? css`
4799
- ${$fontFamily ? css`
4800
- font-family: ${$fontFamily};
4801
- ` : ''}
4802
- ${$fontSize ? css`
4803
- font-size: ${$fontSize};
4804
- ` : ''}
4805
- ${$as === TextComponent.b ? css`
4806
- font-weight: bold;
4807
- ` : $as === TextComponent.sup || $as === TextComponent.sub ? css`
4808
- font-size: ${$fontSize ? $fontSize : '12px'};
4809
- ` : ''}
4810
- ` : $variant === TextVariant.inherit ? css`
4811
- font-family: ${$fontFamily ? $fontFamily : css`inherit`};
4812
- font-size: ${$fontSize ? $fontSize : $as === TextComponent.sup || $as === TextComponent.sub ? '12px' : css`inherit`};
4813
- font-weight: ${$as === TextComponent.b ? 'bold' : 'inherit'};
4814
- line-height: inherit;
4815
- text-transform: inherit;
4816
- ` : css`
4817
- font-family: ${$fontFamily ? $fontFamily : css`var(--redsift-typography-${$variant}-font-family)`};
4818
- font-size: ${$fontSize ? $fontSize : css`var(--redsift-typography-${$variant}-font-size)`};
4819
- font-weight: var(--redsift-typography-${$variant}-font-weight);
4820
- line-height: var(--redsift-typography-${$variant}-line-height);
4821
- text-transform: var(--redsift-typography-${$variant}-text-transform);
4822
- `;
4823
- }}
4824
-
4825
- ${_ref4 => {
4826
- let {
4827
- $noWrap
4828
- } = _ref4;
4829
- return $noWrap ? css`
4830
- overflow: hidden;
4831
- text-overflow: ellipsis;
4832
- white-space: nowrap;
4833
- ` : css`
4834
- word-break: break-word;
4835
- `;
4836
- }}
4837
- `;
4838
-
4839
- const _excluded$9 = ["as", "children", "className", "color", "fontFamily", "fontSize", "noWrap", "variant"];
4840
- const COMPONENT_NAME$c = 'Text';
4841
- const CLASSNAME$c = 'redsift-text';
4842
- const DEFAULT_PROPS$c = {
4843
- fontFamily: FontFamily.raleway
4844
- };
4845
-
4846
- /**
4847
- * The Text component.
4848
- */
4849
- const Text = /*#__PURE__*/forwardRef((props, ref) => {
4850
- const {
4851
- as,
4852
- children,
4853
- className,
4854
- color,
4855
- fontFamily,
4856
- fontSize,
4857
- noWrap,
4858
- variant
4859
- } = props,
4860
- forwardedProps = _objectWithoutProperties(props, _excluded$9);
4861
- return /*#__PURE__*/React__default.createElement(StyledText, _extends$1({
4862
- as: as
4863
- }, forwardedProps, {
4864
- className: classNames(Text.className, className),
4865
- ref: ref,
4866
- $as: as,
5140
+ $autoBreak: autoBreak,
4867
5141
  $color: color,
4868
- $fontFamily: fontFamily,
4869
- $fontSize: fontSize,
4870
- $noWrap: noWrap,
4871
- $variant: variant
5142
+ className: classNames(Pill.className, className),
5143
+ ref: ref
4872
5144
  }), children);
4873
5145
  });
4874
- Text.className = CLASSNAME$c;
4875
- Text.defaultProps = DEFAULT_PROPS$c;
4876
- Text.displayName = COMPONENT_NAME$c;
5146
+ Pill.className = CLASSNAME$e;
5147
+ Pill.defaultProps = DEFAULT_PROPS$e;
5148
+ Pill.displayName = COMPONENT_NAME$e;
4877
5149
 
4878
5150
  /**
4879
5151
  * Component style.
@@ -4903,10 +5175,10 @@ const StyledDetailedCardSectionItem = styled.div`
4903
5175
  }
4904
5176
  `;
4905
5177
 
4906
- const _excluded$8 = ["children", "className", "description", "icon", "iconProps", "pill", "pillProps", "shield"];
4907
- const COMPONENT_NAME$b = 'DetailedCardSectionItem';
4908
- const CLASSNAME$b = 'redsift-detailed-card-section-item';
4909
- const DEFAULT_PROPS$b = {};
5178
+ const _excluded$a = ["children", "className", "description", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
5179
+ const COMPONENT_NAME$d = 'DetailedCardSectionItem';
5180
+ const CLASSNAME$d = 'redsift-detailed-card-section-item';
5181
+ const DEFAULT_PROPS$d = {};
4910
5182
 
4911
5183
  /**
4912
5184
  * The DetailedCardSectionItems component.
@@ -4918,35 +5190,42 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
4918
5190
  description,
4919
5191
  icon,
4920
5192
  iconProps,
5193
+ isLoading,
4921
5194
  pill,
4922
5195
  pillProps,
4923
5196
  shield
4924
5197
  } = props,
4925
- forwardedProps = _objectWithoutProperties(props, _excluded$8);
5198
+ forwardedProps = _objectWithoutProperties(props, _excluded$a);
4926
5199
  return /*#__PURE__*/React__default.createElement(StyledDetailedCardSectionItem, _extends$1({}, forwardedProps, {
4927
5200
  className: classNames(DetailedCardSectionItem.className, className),
4928
5201
  ref: ref
4929
5202
  }), /*#__PURE__*/React__default.createElement(Flexbox, {
4930
5203
  alignItems: "flex-start",
4931
5204
  className: `${DetailedCardSectionItem.className}__header`
4932
- }, shield ? /*#__PURE__*/React__default.createElement(Shield, {
5205
+ }, shield ? /*#__PURE__*/React__default.createElement(Skeleton, {
5206
+ isLoaded: !isLoading
5207
+ }, /*#__PURE__*/React__default.createElement(Shield, {
4933
5208
  variant: shield,
4934
5209
  className: `${DetailedCardSectionItem.className}-header__shield`
4935
- }) : icon ? /*#__PURE__*/React__default.createElement("div", {
5210
+ })) : icon ? /*#__PURE__*/React__default.createElement(Skeleton, {
5211
+ isLoaded: !isLoading
5212
+ }, /*#__PURE__*/React__default.createElement("div", {
4936
5213
  className: `${DetailedCardSectionItem.className}-header__icon`
4937
5214
  }, /*#__PURE__*/React__default.createElement(Icon, _extends$1({
4938
5215
  icon: icon
4939
5216
  }, iconProps, {
4940
5217
  size: "large"
4941
- }))) : null, description || pill ? /*#__PURE__*/React__default.createElement("div", {
5218
+ })))) : null, description || pill ? /*#__PURE__*/React__default.createElement("div", {
4942
5219
  className: `${DetailedCardSectionItem.className}-header__description`
5220
+ }, /*#__PURE__*/React__default.createElement(Skeleton, {
5221
+ isLoaded: !isLoading
4943
5222
  }, pill && /*#__PURE__*/React__default.createElement(Pill, _extends$1({
4944
5223
  className: `${DetailedCardSectionItem.className}-header__pill`
4945
- }, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, null, description) : description) : null), children);
5224
+ }, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, null, description) : description)) : null), children);
4946
5225
  });
4947
- DetailedCardSectionItem.className = CLASSNAME$b;
4948
- DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$b;
4949
- DetailedCardSectionItem.displayName = COMPONENT_NAME$b;
5226
+ DetailedCardSectionItem.className = CLASSNAME$d;
5227
+ DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$d;
5228
+ DetailedCardSectionItem.displayName = COMPONENT_NAME$d;
4950
5229
 
4951
5230
  /*!
4952
5231
  * tabbable 6.1.1
@@ -8393,22 +8672,21 @@ const TooltipPlacement = {
8393
8672
  */
8394
8673
  const StyledTooltipContent = styled.div`
8395
8674
  ${baseContainer}
8396
- max-width: calc(100vw - 16px);
8397
8675
 
8398
- display: flex;
8399
8676
  align-items: center;
8400
- padding: 4px 8px;
8401
8677
  background-color: var(--redsift-color-neutral-white);
8678
+ box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
8402
8679
  color: var(--redsift-color-neutral-black);
8403
-
8680
+ display: flex;
8681
+ filter: drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14))
8682
+ drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12));
8404
8683
  font-family: var(--redsift-typography-tooltip-font-family);
8405
8684
  font-size: var(--redsift-typography-tooltip-font-size);
8406
8685
  font-weight: var(--redsift-typography-tooltip-font-weight);
8407
8686
  line-height: var(--redsift-typography-tooltip-line-height);
8408
-
8409
- box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
8410
- filter: drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14))
8411
- drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12));
8687
+ max-width: calc(100vw - 48px);
8688
+ padding: 4px 8px;
8689
+ z-index: var(--redsift-layout-z-index-tooltip);
8412
8690
 
8413
8691
  .redsift-tooltip-content__arrow {
8414
8692
  position: absolute;
@@ -8472,9 +8750,9 @@ const StyledTooltipContent = styled.div`
8472
8750
  }}
8473
8751
  `;
8474
8752
 
8475
- const COMPONENT_NAME$a = 'TooltipContent';
8476
- const CLASSNAME$a = 'redsift-tooltip-content';
8477
- const DEFAULT_PROPS$a = {};
8753
+ const COMPONENT_NAME$c = 'TooltipContent';
8754
+ const CLASSNAME$c = 'redsift-tooltip-content';
8755
+ const DEFAULT_PROPS$c = {};
8478
8756
 
8479
8757
  /**
8480
8758
  * The TooltipContent component.
@@ -8536,13 +8814,13 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
8536
8814
  className: `${TooltipContent.className}__inner`
8537
8815
  }, children)));
8538
8816
  });
8539
- TooltipContent.className = CLASSNAME$a;
8540
- TooltipContent.defaultProps = DEFAULT_PROPS$a;
8541
- TooltipContent.displayName = COMPONENT_NAME$a;
8817
+ TooltipContent.className = CLASSNAME$c;
8818
+ TooltipContent.defaultProps = DEFAULT_PROPS$c;
8819
+ TooltipContent.displayName = COMPONENT_NAME$c;
8542
8820
 
8543
- const COMPONENT_NAME$9 = 'TooltipTrigger';
8544
- const CLASSNAME$9 = 'redsift-tooltip-trigger';
8545
- const DEFAULT_PROPS$9 = {};
8821
+ const COMPONENT_NAME$b = 'TooltipTrigger';
8822
+ const CLASSNAME$b = 'redsift-tooltip-trigger';
8823
+ const DEFAULT_PROPS$b = {};
8546
8824
 
8547
8825
  /**
8548
8826
  * The TooltipTrigger component.
@@ -8569,9 +8847,9 @@ const TooltipTrigger = /*#__PURE__*/forwardRef((props, ref) => {
8569
8847
  ref: triggerRef
8570
8848
  }, getReferenceProps(props)), children);
8571
8849
  });
8572
- TooltipTrigger.className = CLASSNAME$9;
8573
- TooltipTrigger.defaultProps = DEFAULT_PROPS$9;
8574
- TooltipTrigger.displayName = COMPONENT_NAME$9;
8850
+ TooltipTrigger.className = CLASSNAME$b;
8851
+ TooltipTrigger.defaultProps = DEFAULT_PROPS$b;
8852
+ TooltipTrigger.displayName = COMPONENT_NAME$b;
8575
8853
 
8576
8854
  function useTooltip(_ref) {
8577
8855
  let {
@@ -8632,9 +8910,9 @@ function useTooltip(_ref) {
8632
8910
  }), [isOpen, handleOpen, interactions, data, arrowRef, tooltipId]);
8633
8911
  }
8634
8912
 
8635
- const COMPONENT_NAME$8 = 'Tooltip';
8636
- const CLASSNAME$8 = 'redsift-tooltip';
8637
- const DEFAULT_PROPS$8 = {
8913
+ const COMPONENT_NAME$a = 'Tooltip';
8914
+ const CLASSNAME$a = 'redsift-tooltip';
8915
+ const DEFAULT_PROPS$a = {
8638
8916
  delay: 500,
8639
8917
  placement: TooltipPlacement.top
8640
8918
  };
@@ -8665,9 +8943,9 @@ const BaseTooltip = props => {
8665
8943
  value: tooltip
8666
8944
  }, trigger, content);
8667
8945
  };
8668
- BaseTooltip.className = CLASSNAME$8;
8669
- BaseTooltip.defaultProps = DEFAULT_PROPS$8;
8670
- BaseTooltip.displayName = COMPONENT_NAME$8;
8946
+ BaseTooltip.className = CLASSNAME$a;
8947
+ BaseTooltip.defaultProps = DEFAULT_PROPS$a;
8948
+ BaseTooltip.displayName = COMPONENT_NAME$a;
8671
8949
  const Tooltip = Object.assign(BaseTooltip, {
8672
8950
  Trigger: TooltipTrigger,
8673
8951
  Content: TooltipContent
@@ -8681,10 +8959,10 @@ const useTooltipContext = () => {
8681
8959
  return context;
8682
8960
  };
8683
8961
 
8684
- const _excluded$7 = ["areAllCollapsed", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "onCollapseAll", "shield"];
8685
- const COMPONENT_NAME$7 = 'DetailedCard';
8686
- const CLASSNAME$7 = 'redsift-detailed-card';
8687
- const DEFAULT_PROPS$7 = {
8962
+ const _excluded$9 = ["areAllCollapsed", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield"];
8963
+ const COMPONENT_NAME$9 = 'DetailedCard';
8964
+ const CLASSNAME$9 = 'redsift-detailed-card';
8965
+ const DEFAULT_PROPS$9 = {
8688
8966
  isCollapsible: true,
8689
8967
  width: '400px'
8690
8968
  };
@@ -8719,10 +8997,11 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
8719
8997
  defaultAllCollapsed,
8720
8998
  icon,
8721
8999
  isCollapsible: propsIsCollapsible,
9000
+ isLoading,
8722
9001
  onCollapseAll,
8723
9002
  shield
8724
9003
  } = props,
8725
- forwardedProps = _objectWithoutProperties(props, _excluded$7);
9004
+ forwardedProps = _objectWithoutProperties(props, _excluded$9);
8726
9005
  const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
8727
9006
  const isCollapsible = propsIsCollapsible && hasMultipleCollapsibleChildren(children);
8728
9007
  const [allCollapsed, setAllCollapsed] = useState({
@@ -8748,8 +9027,17 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
8748
9027
  className: classNames(BaseDetailedCard.className, className),
8749
9028
  ref: ref,
8750
9029
  $color: color
8751
- }), color ? /*#__PURE__*/React__default.createElement("div", {
8752
- className: `${BaseDetailedCard.className}__banner`
9030
+ }), color ? isLoading ? /*#__PURE__*/React__default.createElement(Skeleton, {
9031
+ height: "80px",
9032
+ width: "calc(100% + 32px)",
9033
+ margin: "-16px -16px 16px -16px"
9034
+ }) : /*#__PURE__*/React__default.createElement(Flexbox, {
9035
+ className: `${BaseDetailedCard.className}__banner`,
9036
+ alignItems: "center",
9037
+ height: "80px",
9038
+ justifyContent: "center",
9039
+ margin: "-16px -16px 16px -16px",
9040
+ width: "calc(100% + 32px)"
8753
9041
  }, shield ? /*#__PURE__*/React__default.createElement(Shield, {
8754
9042
  variant: shield,
8755
9043
  isOutlined: true,
@@ -8799,9 +9087,9 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
8799
9087
  return child;
8800
9088
  }));
8801
9089
  });
8802
- BaseDetailedCard.className = CLASSNAME$7;
8803
- BaseDetailedCard.defaultProps = DEFAULT_PROPS$7;
8804
- BaseDetailedCard.displayName = COMPONENT_NAME$7;
9090
+ BaseDetailedCard.className = CLASSNAME$9;
9091
+ BaseDetailedCard.defaultProps = DEFAULT_PROPS$9;
9092
+ BaseDetailedCard.displayName = COMPONENT_NAME$9;
8805
9093
  const DetailedCard = Object.assign(BaseDetailedCard, {
8806
9094
  Header: DetailedCardHeader,
8807
9095
  Section: DetailedCardSection,
@@ -8835,10 +9123,10 @@ const StyledGridItem = styled.div`
8835
9123
  ${baseInternalSpacing}
8836
9124
  `;
8837
9125
 
8838
- const _excluded$6 = ["children", "className"];
8839
- const COMPONENT_NAME$6 = 'GridItem';
8840
- const CLASSNAME$6 = 'redsift-grid-item';
8841
- const DEFAULT_PROPS$6 = {};
9126
+ const _excluded$8 = ["children", "className"];
9127
+ const COMPONENT_NAME$8 = 'GridItem';
9128
+ const CLASSNAME$8 = 'redsift-grid-item';
9129
+ const DEFAULT_PROPS$8 = {};
8842
9130
 
8843
9131
  /**
8844
9132
  * The GridItem component.
@@ -8848,20 +9136,20 @@ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
8848
9136
  children,
8849
9137
  className
8850
9138
  } = props,
8851
- forwardedProps = _objectWithoutProperties(props, _excluded$6);
9139
+ forwardedProps = _objectWithoutProperties(props, _excluded$8);
8852
9140
  return /*#__PURE__*/React__default.createElement(StyledGridItem, _extends$1({}, forwardedProps, {
8853
9141
  className: classNames(GridItem.className, className),
8854
9142
  ref: ref
8855
9143
  }), children);
8856
9144
  });
8857
- GridItem.className = CLASSNAME$6;
8858
- GridItem.defaultProps = DEFAULT_PROPS$6;
8859
- GridItem.displayName = COMPONENT_NAME$6;
9145
+ GridItem.className = CLASSNAME$8;
9146
+ GridItem.defaultProps = DEFAULT_PROPS$8;
9147
+ GridItem.displayName = COMPONENT_NAME$8;
8860
9148
 
8861
- const _excluded$5 = ["children", "className"];
8862
- const COMPONENT_NAME$5 = 'Grid';
8863
- const CLASSNAME$5 = 'redsift-grid';
8864
- const DEFAULT_PROPS$5 = {};
9149
+ const _excluded$7 = ["children", "className"];
9150
+ const COMPONENT_NAME$7 = 'Grid';
9151
+ const CLASSNAME$7 = 'redsift-grid';
9152
+ const DEFAULT_PROPS$7 = {};
8865
9153
 
8866
9154
  /**
8867
9155
  * The Grid component.
@@ -8871,15 +9159,15 @@ const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
8871
9159
  children,
8872
9160
  className
8873
9161
  } = props,
8874
- forwardedProps = _objectWithoutProperties(props, _excluded$5);
9162
+ forwardedProps = _objectWithoutProperties(props, _excluded$7);
8875
9163
  return /*#__PURE__*/React__default.createElement(StyledGrid, _extends$1({}, forwardedProps, {
8876
9164
  className: classNames(BaseGrid.className, className),
8877
9165
  ref: ref
8878
9166
  }), children);
8879
9167
  });
8880
- BaseGrid.className = CLASSNAME$5;
8881
- BaseGrid.defaultProps = DEFAULT_PROPS$5;
8882
- BaseGrid.displayName = COMPONENT_NAME$5;
9168
+ BaseGrid.className = CLASSNAME$7;
9169
+ BaseGrid.defaultProps = DEFAULT_PROPS$7;
9170
+ BaseGrid.displayName = COMPONENT_NAME$7;
8883
9171
  const Grid = Object.assign(BaseGrid, {
8884
9172
  Item: GridItem
8885
9173
  });
@@ -8924,10 +9212,10 @@ const StyledLink = styled.a`
8924
9212
  }
8925
9213
  `;
8926
9214
 
8927
- const _excluded$4 = ["children", "className", "href", "isDisabled"];
8928
- const COMPONENT_NAME$4 = 'Link';
8929
- const CLASSNAME$4 = 'redsift-link';
8930
- const DEFAULT_PROPS$4 = {};
9215
+ const _excluded$6 = ["children", "className", "href", "isDisabled"];
9216
+ const COMPONENT_NAME$6 = 'Link';
9217
+ const CLASSNAME$6 = 'redsift-link';
9218
+ const DEFAULT_PROPS$6 = {};
8931
9219
 
8932
9220
  /**
8933
9221
  * The Link is a semantic link that looks like a link.
@@ -8944,7 +9232,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
8944
9232
  href,
8945
9233
  isDisabled
8946
9234
  } = props,
8947
- forwardedProps = _objectWithoutProperties(props, _excluded$4);
9235
+ forwardedProps = _objectWithoutProperties(props, _excluded$6);
8948
9236
  return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
8949
9237
  "aria-disabled": isDisabled,
8950
9238
  role: "link",
@@ -8956,14 +9244,14 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
8956
9244
  ref: ref
8957
9245
  }), children);
8958
9246
  });
8959
- Link.className = CLASSNAME$4;
8960
- Link.defaultProps = DEFAULT_PROPS$4;
8961
- Link.displayName = COMPONENT_NAME$4;
9247
+ Link.className = CLASSNAME$6;
9248
+ Link.defaultProps = DEFAULT_PROPS$6;
9249
+ Link.displayName = COMPONENT_NAME$6;
8962
9250
 
8963
- const _excluded$3 = ["children", "className", "disabled", "isDisabled", "onPress"];
8964
- const COMPONENT_NAME$3 = 'LinkButton';
8965
- const CLASSNAME$3 = 'redsift-link-button';
8966
- const DEFAULT_PROPS$3 = {};
9251
+ const _excluded$5 = ["children", "className", "disabled", "isDisabled", "onPress"];
9252
+ const COMPONENT_NAME$5 = 'LinkButton';
9253
+ const CLASSNAME$5 = 'redsift-link-button';
9254
+ const DEFAULT_PROPS$5 = {};
8967
9255
 
8968
9256
  /**
8969
9257
  * The LinkButton is a semantic button that looks like a link.
@@ -8988,7 +9276,7 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
8988
9276
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
8989
9277
  onPress
8990
9278
  } = props,
8991
- forwardedProps = _objectWithoutProperties(props, _excluded$3);
9279
+ forwardedProps = _objectWithoutProperties(props, _excluded$5);
8992
9280
  return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
8993
9281
  as: "button"
8994
9282
  }, forwardedProps, buttonProps, {
@@ -9001,9 +9289,9 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
9001
9289
  ref: buttonRef
9002
9290
  }), children);
9003
9291
  });
9004
- LinkButton.className = CLASSNAME$3;
9005
- LinkButton.defaultProps = DEFAULT_PROPS$3;
9006
- LinkButton.displayName = COMPONENT_NAME$3;
9292
+ LinkButton.className = CLASSNAME$5;
9293
+ LinkButton.defaultProps = DEFAULT_PROPS$5;
9294
+ LinkButton.displayName = COMPONENT_NAME$5;
9007
9295
 
9008
9296
  /**
9009
9297
  * Component style.
@@ -9012,10 +9300,10 @@ const StyledNumber = styled(StyledText)`
9012
9300
  font-family: var(--redsift-typography-font-family-source-code-pro);
9013
9301
  `;
9014
9302
 
9015
- const _excluded$2 = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "value", "variant"];
9016
- const COMPONENT_NAME$2 = 'Number';
9017
- const CLASSNAME$2 = 'redsift-number';
9018
- const DEFAULT_PROPS$2 = {
9303
+ 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"];
9304
+ const COMPONENT_NAME$4 = 'Number';
9305
+ const CLASSNAME$4 = 'redsift-number';
9306
+ const DEFAULT_PROPS$4 = {
9019
9307
  compactDisplay: 'short',
9020
9308
  currencyDisplay: 'symbol',
9021
9309
  currencySign: 'standard',
@@ -9046,6 +9334,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
9046
9334
  currencyDisplay,
9047
9335
  currencySign,
9048
9336
  fontSize,
9337
+ lineHeight,
9049
9338
  localeMatcher,
9050
9339
  maximumFractionDigits,
9051
9340
  maximumSignificantDigits,
@@ -9067,7 +9356,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
9067
9356
  value,
9068
9357
  variant
9069
9358
  } = props,
9070
- forwardedProps = _objectWithoutProperties(props, _excluded$2);
9359
+ forwardedProps = _objectWithoutProperties(props, _excluded$4);
9071
9360
  const formatter = useNumberFormatter({
9072
9361
  compactDisplay,
9073
9362
  currency,
@@ -9102,14 +9391,15 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
9102
9391
  className: classNames(Number$1.className, className),
9103
9392
  ref: ref,
9104
9393
  $color: color,
9394
+ $lineHeight: lineHeight,
9105
9395
  $fontSize: fontSize,
9106
9396
  $noWrap: noWrap,
9107
9397
  $variant: variant
9108
9398
  }), formatter.format(value));
9109
9399
  });
9110
- Number$1.className = CLASSNAME$2;
9111
- Number$1.defaultProps = DEFAULT_PROPS$2;
9112
- Number$1.displayName = COMPONENT_NAME$2;
9400
+ Number$1.className = CLASSNAME$4;
9401
+ Number$1.defaultProps = DEFAULT_PROPS$4;
9402
+ Number$1.displayName = COMPONENT_NAME$4;
9113
9403
 
9114
9404
  /**
9115
9405
  * Context props.
@@ -9203,10 +9493,10 @@ const StyledRadioGroup = styled.div`
9203
9493
  }
9204
9494
  `;
9205
9495
 
9206
- const _excluded$1 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
9207
- const COMPONENT_NAME$1 = 'RadioGroup';
9208
- const CLASSNAME$1 = 'redsift-radio-group';
9209
- const DEFAULT_PROPS$1 = {
9496
+ const _excluded$3 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
9497
+ const COMPONENT_NAME$3 = 'RadioGroup';
9498
+ const CLASSNAME$3 = 'redsift-radio-group';
9499
+ const DEFAULT_PROPS$3 = {
9210
9500
  color: ColorPalette.default,
9211
9501
  orientation: RadioGroupOrientation.vertical
9212
9502
  };
@@ -9231,7 +9521,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
9231
9521
  possibleValues,
9232
9522
  value
9233
9523
  } = props,
9234
- forwardedProps = _objectWithoutProperties(props, _excluded$1);
9524
+ forwardedProps = _objectWithoutProperties(props, _excluded$3);
9235
9525
  const [selectedValue, setValue] = useState(value || defaultValue || '');
9236
9526
  useEffect(() => {
9237
9527
  if (value) {
@@ -9273,14 +9563,15 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
9273
9563
  className: `${RadioGroup.className}-description`
9274
9564
  }, description));
9275
9565
  });
9276
- RadioGroup.className = CLASSNAME$1;
9277
- RadioGroup.defaultProps = DEFAULT_PROPS$1;
9278
- RadioGroup.displayName = COMPONENT_NAME$1;
9566
+ RadioGroup.className = CLASSNAME$3;
9567
+ RadioGroup.defaultProps = DEFAULT_PROPS$3;
9568
+ RadioGroup.displayName = COMPONENT_NAME$3;
9279
9569
 
9280
9570
  /**
9281
9571
  * Component style.
9282
9572
  */
9283
9573
  const StyledRadio = styled.label`
9574
+ height: fit-content;
9284
9575
  position: relative;
9285
9576
  width: fit-content;
9286
9577
  ${baseStyling}
@@ -9322,42 +9613,306 @@ const StyledRadio = styled.label`
9322
9613
  padding-left: 4px;
9323
9614
  padding-right: 16px;
9324
9615
  position: relative;
9325
- top: -4px;
9616
+ top: -4px;
9617
+
9618
+ [dir='rtl'] & {
9619
+ padding-left: 16px;
9620
+ padding-right: 4px;
9621
+ }
9622
+ }
9623
+
9624
+ .redsift-icon {
9625
+ padding: 2px;
9626
+ width: 24px;
9627
+
9628
+ ${_ref2 => {
9629
+ let {
9630
+ $isColored,
9631
+ $isDisabled,
9632
+ $isInvalid,
9633
+ $isFocusVisible
9634
+ } = _ref2;
9635
+ return css`
9636
+ ${$isDisabled ? css`
9637
+ color: var(--redsift-color-neutral-midgrey);
9638
+ ` : $isInvalid ? css`
9639
+ color: var(--redsift-color-error-primary);
9640
+ ` : css`
9641
+ color: var(
9642
+ --redsift-color-${$isColored ? 'default' : 'question'}-primary
9643
+ );
9644
+ `}
9645
+
9646
+ ${$isFocusVisible && !$isDisabled ? css`
9647
+ background-color: var(
9648
+ --redsift-color-${$isColored ? 'default' : 'question'}-hover
9649
+ );
9650
+ border-radius: 16px;
9651
+ ` : ''}
9652
+ `;
9653
+ }}
9654
+ }
9655
+
9656
+ &:hover,
9657
+ &:focus-visible {
9658
+ outline: none;
9659
+
9660
+ ${_ref3 => {
9661
+ let {
9662
+ $isColored,
9663
+ $isDisabled
9664
+ } = _ref3;
9665
+ return !$isDisabled ? css`
9666
+ .redsift-icon {
9667
+ background-color: var(
9668
+ --redsift-color-${$isColored ? 'default' : 'question'}-hover
9669
+ );
9670
+ border-radius: 16px;
9671
+ }
9672
+ ` : '';
9673
+ }}
9674
+ }
9675
+ `;
9676
+
9677
+ const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
9678
+ const COMPONENT_NAME$2 = 'Radio';
9679
+ const CLASSNAME$2 = 'redsift-radio';
9680
+ const DEFAULT_PROPS$2 = {
9681
+ isColored: true
9682
+ };
9683
+
9684
+ /**
9685
+ * The Radio component.
9686
+ * Works both inside a RadioGroup or as standalone.
9687
+ * Can be used as controlled or uncontrolled.
9688
+ */
9689
+ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
9690
+ var _isDisabled, _isReadOnly, _ref;
9691
+ const groupState = useContext(RadioGroupContext);
9692
+ let {
9693
+ 'aria-label': ariaLabel,
9694
+ 'aria-labelledby': ariaLabelledby,
9695
+ autoFocus,
9696
+ children,
9697
+ className,
9698
+ defaultSelected,
9699
+ inputProps,
9700
+ inputRef,
9701
+ isColored,
9702
+ isDisabled,
9703
+ isInvalid,
9704
+ isReadOnly,
9705
+ isRequired,
9706
+ isSelected: propsIsSelected,
9707
+ name,
9708
+ onChange,
9709
+ value
9710
+ } = props,
9711
+ forwardedProps = _objectWithoutProperties(props, _excluded$2);
9712
+ const {
9713
+ isFocusVisible,
9714
+ focusProps
9715
+ } = useFocusRing({
9716
+ autoFocus
9717
+ });
9718
+ isDisabled = (_isDisabled = isDisabled) !== null && _isDisabled !== void 0 ? _isDisabled : groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled;
9719
+ isReadOnly = (_isReadOnly = isReadOnly) !== null && _isReadOnly !== void 0 ? _isReadOnly : groupState === null || groupState === void 0 ? void 0 : groupState.isReadOnly;
9720
+ const [isSelected, setSelected] = useState((_ref = propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected) !== null && _ref !== void 0 ? _ref : Boolean((groupState === null || groupState === void 0 ? void 0 : groupState.value) && groupState.value === value));
9721
+ useEffect(() => {
9722
+ setSelected(propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected);
9723
+ }, [propsIsSelected, defaultSelected]);
9724
+ useEffect(() => {
9725
+ if (groupState) {
9726
+ setSelected(groupState.value === value);
9727
+ }
9728
+ }, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
9729
+ warnIfNoAccessibleLabelFound(props, [children]);
9730
+ if (groupState) {
9731
+ if (propsIsSelected != null) {
9732
+ console.warn('isSelected is unsupported on individual <Radio> elements within a <RadioGroup> unless the <Radio> is controlled. Please apply this prop to the group instead or pass isControlled to the component.');
9733
+ }
9734
+ if (defaultSelected != null) {
9735
+ console.warn('defaultSelected is unsupported on individual <Radio> elements within a <RadioGroup> unless the <Radio> is controlled. Please apply this prop to the group instead or pass isControlled to the component.');
9736
+ }
9737
+ if (props.value == null) {
9738
+ console.warn('A <Radio> element within a <RadioGroup> requires a `value` property unless the <Radio> is controlled.');
9739
+ }
9740
+ }
9741
+ const handleChange = useCallback(event => {
9742
+ if (isDisabled || isReadOnly) {
9743
+ return;
9744
+ }
9745
+ if (groupState) {
9746
+ groupState.setValue(value);
9747
+ }
9748
+ if (onChange) {
9749
+ onChange(!isSelected, value, name, event, groupState);
9750
+ }
9751
+ setSelected(event.target.checked);
9752
+ }, [onChange, groupState]);
9753
+ return /*#__PURE__*/React__default.createElement(StyledRadio, _extends$1({}, forwardedProps, {
9754
+ $isColored: isColored,
9755
+ $isDisabled: isDisabled,
9756
+ $isFocusVisible: isFocusVisible,
9757
+ $isInvalid: isInvalid || isRequired && !isSelected,
9758
+ $isRequired: isRequired,
9759
+ $isSelected: isSelected,
9760
+ className: classNames(Radio.className, className),
9761
+ ref: ref
9762
+ }), /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, focusProps, {
9763
+ "aria-checked": isSelected ? 'true' : 'false',
9764
+ "aria-disabled": isDisabled,
9765
+ "aria-invalid": isInvalid || isRequired && !isSelected,
9766
+ "aria-label": ariaLabel,
9767
+ "aria-labelledby": ariaLabelledby,
9768
+ "aria-readonly": isReadOnly,
9769
+ "aria-required": isRequired,
9770
+ checked: isSelected ? true : false,
9771
+ disabled: isDisabled,
9772
+ name: name,
9773
+ onChange: handleChange,
9774
+ ref: inputRef,
9775
+ type: "radio",
9776
+ value: value
9777
+ })), isSelected ? /*#__PURE__*/React__default.createElement(Icon, {
9778
+ icon: mdiRadioboxMarked
9779
+ }) : /*#__PURE__*/React__default.createElement(Icon, {
9780
+ icon: mdiRadioboxBlank
9781
+ }), children ? /*#__PURE__*/React__default.createElement("span", {
9782
+ className: "label"
9783
+ }, children) : null);
9784
+ });
9785
+ Radio.className = CLASSNAME$2;
9786
+ Radio.defaultProps = DEFAULT_PROPS$2;
9787
+ Radio.displayName = COMPONENT_NAME$2;
9788
+
9789
+ const SwitchGroupContext = /*#__PURE__*/React__default.createContext(null);
9790
+
9791
+ /**
9792
+ * Component style.
9793
+ */
9794
+ const StyledSwitch = styled.label`
9795
+ height: fit-content;
9796
+ position: relative;
9797
+ width: fit-content;
9798
+ ${baseStyling}
9799
+
9800
+ align-items: baseline;
9801
+ background: none;
9802
+ border: none;
9803
+ display: inline-flex;
9804
+ margin: 4px;
9805
+
9806
+ input {
9807
+ height: 100%;
9808
+ margin: 0;
9809
+ opacity: 0;
9810
+ overflow: visible;
9811
+ padding: 0;
9812
+ position: absolute;
9813
+ width: 100%;
9814
+ }
9815
+
9816
+ span.label {
9817
+ ${_ref => {
9818
+ let {
9819
+ $isDisabled,
9820
+ $isInvalid
9821
+ } = _ref;
9822
+ return $isDisabled ? css`
9823
+ color: var(--redsift-color-neutral-midgrey);
9824
+ ` : $isInvalid ? css`
9825
+ color: var(--redsift-color-error-primary);
9826
+ ` : css`
9827
+ color: var(--redsift-color-neutral-black);
9828
+ `;
9829
+ }}
9830
+
9831
+ font-family: var(--redsift-typography-body-font-family);
9832
+ font-size: var(--redsift-typography-body-font-size);
9833
+ font-weight: var(--redsift-typography-body-font-weight);
9834
+ line-height: var(--redsift-typography-body-line-height);
9835
+ padding-inline-start: 4px;
9836
+ padding-inline-end: 16px;
9837
+ position: relative;
9838
+ top: -5px;
9839
+ }
9326
9840
 
9327
- [dir='rtl'] & {
9328
- padding-left: 16px;
9329
- padding-right: 4px;
9330
- }
9841
+ .redsift-switch__slide {
9842
+ height: 20px;
9843
+ position: relative;
9844
+ min-width: 40px;
9331
9845
  }
9332
9846
 
9333
- .redsift-icon {
9334
- padding: 2px;
9335
- width: 24px;
9847
+ .redsift-switch-slide__inner {
9848
+ background-color: var(--redsift-color-neutral-midgrey);
9849
+ border-radius: 10px;
9850
+ height: 16px;
9851
+ position: absolute;
9852
+ top: calc(50% - 16px / 2);
9853
+ width: 32px;
9854
+ z-index: 2;
9855
+ }
9336
9856
 
9337
- ${_ref2 => {
9857
+ .redsift-switch-slide__knob-wrapper {
9858
+ border-radius: 50%;
9859
+ height: 32px;
9860
+ margin-inline-start: ${_ref2 => {
9861
+ let {
9862
+ $isSelected
9863
+ } = _ref2;
9864
+ return !$isSelected ? '-10px' : '10px';
9865
+ }};
9866
+ position: absolute;
9867
+ top: -6px;
9868
+ width: 32px;
9869
+ z-index: 3;
9870
+ }
9871
+
9872
+ .redsift-switch-slide-knob-wrapper__elevation {
9873
+ background-color: var(--redsift-color-neutral-xlightgrey);
9874
+ border-radius: 50%;
9875
+ height: 32px;
9876
+ opacity: 0;
9877
+ position: absolute;
9878
+ width: 32px;
9879
+ z-index: 3;
9880
+ }
9881
+
9882
+ .redsift-switch-slide-knob-wrapper__knob {
9883
+ background-color: var(--redsift-color-neutral-xlightgrey);
9884
+ border-radius: 50%;
9885
+ box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
9886
+ 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);
9887
+ height: 20px;
9888
+ left: 6px;
9889
+ position: absolute;
9890
+ top: 6px;
9891
+ width: 20px;
9892
+ }
9893
+
9894
+ .redsift-switch-slide__inner {
9895
+ ${_ref3 => {
9338
9896
  let {
9339
9897
  $isColored,
9340
9898
  $isDisabled,
9341
9899
  $isInvalid,
9342
- $isFocusVisible
9343
- } = _ref2;
9900
+ $isSelected
9901
+ } = _ref3;
9344
9902
  return css`
9345
- ${$isDisabled ? css`
9346
- color: var(--redsift-color-neutral-midgrey);
9347
- ` : $isInvalid ? css`
9348
- color: var(--redsift-color-error-primary);
9349
- ` : css`
9350
- color: var(
9351
- --redsift-color-${$isColored ? 'default' : 'question'}-primary
9903
+ ${$isSelected && $isDisabled ? css`
9904
+ background-color: var(
9905
+ --redsift-color-${$isInvalid ? 'error' : $isColored ? 'default' : 'no-data'}-active
9352
9906
  );
9353
- `}
9354
-
9355
- ${$isFocusVisible ? css`
9907
+ ` : $isSelected ? css`
9356
9908
  background-color: var(
9357
- --redsift-color-${$isColored ? 'default' : 'question'}-hover
9909
+ --redsift-color-${$isInvalid ? 'error' : $isColored ? 'default' : 'no-data'}-primary
9358
9910
  );
9359
- border-radius: 16px;
9360
- ` : ''}
9911
+ ` : !$isSelected && $isDisabled ? css`
9912
+ background-color: var(--redsift-color-neutral-lightgrey);
9913
+ ` : css`
9914
+ background-color: var(--redsift-color-neutral-midgrey);
9915
+ `}
9361
9916
  `;
9362
9917
  }}
9363
9918
  }
@@ -9365,54 +9920,48 @@ const StyledRadio = styled.label`
9365
9920
  &:hover,
9366
9921
  &:focus-visible {
9367
9922
  outline: none;
9923
+ cursor: pointer;
9368
9924
 
9369
- ${_ref3 => {
9925
+ ${_ref4 => {
9370
9926
  let {
9371
- $isColored,
9372
9927
  $isDisabled
9373
- } = _ref3;
9928
+ } = _ref4;
9374
9929
  return !$isDisabled ? css`
9375
- .redsift-icon {
9376
- background-color: var(
9377
- --redsift-color-${$isColored ? 'default' : 'question'}-hover
9378
- );
9379
- border-radius: 16px;
9930
+ .redsift-switch-slide-knob-wrapper__elevation {
9931
+ opacity: 0.5;
9380
9932
  }
9381
9933
  ` : '';
9382
9934
  }}
9383
9935
  }
9384
9936
 
9385
- ${_ref4 => {
9937
+ ${_ref5 => {
9386
9938
  let {
9387
- $isColored,
9939
+ $isDisabled,
9388
9940
  $isFocusVisible
9389
- } = _ref4;
9390
- return $isFocusVisible ? css`
9391
- .redsift-icon {
9392
- background-color: var(
9393
- --redsift-color-${$isColored ? 'default' : 'question'}-hover
9394
- );
9395
- border-radius: 21px;
9941
+ } = _ref5;
9942
+ return $isFocusVisible && !$isDisabled ? css`
9943
+ .redsift-switch-slide-knob-wrapper__elevation {
9944
+ opacity: 0.5;
9396
9945
  }
9397
9946
  ` : '';
9398
9947
  }}
9399
9948
  `;
9400
9949
 
9401
- const _excluded = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
9402
- const COMPONENT_NAME = 'Radio';
9403
- const CLASSNAME = 'redsift-radio';
9404
- const DEFAULT_PROPS = {
9950
+ const _excluded$1 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
9951
+ const COMPONENT_NAME$1 = 'Switch';
9952
+ const CLASSNAME$1 = 'redsift-switch';
9953
+ const DEFAULT_PROPS$1 = {
9405
9954
  isColored: true
9406
9955
  };
9407
9956
 
9408
9957
  /**
9409
- * The Radio component.
9410
- * Works both inside a RadioGroup or as standalone.
9958
+ * The Switch component.
9959
+ * Works both inside a SwitchGroup or as standalone.
9411
9960
  * Can be used as controlled or uncontrolled.
9412
9961
  */
9413
- const Radio = /*#__PURE__*/forwardRef((props, ref) => {
9962
+ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
9414
9963
  var _isDisabled, _isReadOnly, _ref;
9415
- const groupState = useContext(RadioGroupContext);
9964
+ const groupState = useContext(SwitchGroupContext);
9416
9965
  let {
9417
9966
  'aria-label': ariaLabel,
9418
9967
  'aria-labelledby': ariaLabelledby,
@@ -9432,7 +9981,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
9432
9981
  onChange,
9433
9982
  value
9434
9983
  } = props,
9435
- forwardedProps = _objectWithoutProperties(props, _excluded);
9984
+ forwardedProps = _objectWithoutProperties(props, _excluded$1);
9436
9985
  const {
9437
9986
  isFocusVisible,
9438
9987
  focusProps
@@ -9441,25 +9990,25 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
9441
9990
  });
9442
9991
  isDisabled = (_isDisabled = isDisabled) !== null && _isDisabled !== void 0 ? _isDisabled : groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled;
9443
9992
  isReadOnly = (_isReadOnly = isReadOnly) !== null && _isReadOnly !== void 0 ? _isReadOnly : groupState === null || groupState === void 0 ? void 0 : groupState.isReadOnly;
9444
- const [isSelected, setSelected] = useState((_ref = propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected) !== null && _ref !== void 0 ? _ref : Boolean((groupState === null || groupState === void 0 ? void 0 : groupState.value) && groupState.value === value));
9993
+ 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));
9445
9994
  useEffect(() => {
9446
9995
  setSelected(propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : defaultSelected);
9447
9996
  }, [propsIsSelected, defaultSelected]);
9448
9997
  useEffect(() => {
9449
9998
  if (groupState) {
9450
- setSelected(groupState.value === value);
9999
+ setSelected(groupState.value.includes(value));
9451
10000
  }
9452
10001
  }, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
9453
10002
  warnIfNoAccessibleLabelFound(props, [children]);
9454
10003
  if (groupState) {
9455
10004
  if (propsIsSelected != null) {
9456
- console.warn('isSelected is unsupported on individual <Radio> elements within a <RadioGroup> unless the <Radio> is controlled. Please apply this prop to the group instead or pass isControlled to the component.');
10005
+ 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.');
9457
10006
  }
9458
10007
  if (defaultSelected != null) {
9459
- console.warn('defaultSelected is unsupported on individual <Radio> elements within a <RadioGroup> unless the <Radio> is controlled. Please apply this prop to the group instead or pass isControlled to the component.');
10008
+ 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.');
9460
10009
  }
9461
10010
  if (props.value == null) {
9462
- console.warn('A <Radio> element within a <RadioGroup> requires a `value` property unless the <Radio> is controlled.');
10011
+ console.warn('A <Switch> element within a <SwitchGroup> requires a `value` property unless the <Switch> is controlled.');
9463
10012
  }
9464
10013
  }
9465
10014
  const handleChange = useCallback(event => {
@@ -9467,21 +10016,25 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
9467
10016
  return;
9468
10017
  }
9469
10018
  if (groupState) {
9470
- groupState.setValue(value);
10019
+ if (!groupState.value.includes(value)) {
10020
+ groupState.addValue(value);
10021
+ } else {
10022
+ groupState.removeValue(value);
10023
+ }
9471
10024
  }
9472
10025
  if (onChange) {
9473
10026
  onChange(!isSelected, value, name, event, groupState);
9474
10027
  }
9475
10028
  setSelected(event.target.checked);
9476
10029
  }, [onChange, groupState]);
9477
- return /*#__PURE__*/React__default.createElement(StyledRadio, _extends$1({}, forwardedProps, {
10030
+ return /*#__PURE__*/React__default.createElement(StyledSwitch, _extends$1({}, forwardedProps, {
9478
10031
  $isColored: isColored,
9479
10032
  $isDisabled: isDisabled,
9480
10033
  $isFocusVisible: isFocusVisible,
9481
10034
  $isInvalid: isInvalid || isRequired && !isSelected,
9482
10035
  $isRequired: isRequired,
9483
10036
  $isSelected: isSelected,
9484
- className: classNames(Radio.className, className),
10037
+ className: classNames(Switch.className, className),
9485
10038
  ref: ref
9486
10039
  }), /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, focusProps, {
9487
10040
  "aria-checked": isSelected ? 'true' : 'false',
@@ -9496,19 +10049,202 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
9496
10049
  name: name,
9497
10050
  onChange: handleChange,
9498
10051
  ref: inputRef,
9499
- type: "radio",
10052
+ role: "switch",
10053
+ type: "checkbox",
9500
10054
  value: value
9501
- })), isSelected ? /*#__PURE__*/React__default.createElement(Icon, {
9502
- icon: mdiRadioboxMarked
9503
- }) : /*#__PURE__*/React__default.createElement(Icon, {
9504
- icon: mdiRadioboxBlank
9505
- }), children ? /*#__PURE__*/React__default.createElement("span", {
10055
+ })), /*#__PURE__*/React__default.createElement("div", {
10056
+ className: `${Switch.className}__slide`
10057
+ }, /*#__PURE__*/React__default.createElement("div", {
10058
+ className: `${Switch.className}-slide__inner`
10059
+ }), /*#__PURE__*/React__default.createElement("div", {
10060
+ className: `${Switch.className}-slide__knob-wrapper`
10061
+ }, /*#__PURE__*/React__default.createElement("div", {
10062
+ className: `${Switch.className}-slide-knob-wrapper__elevation`
10063
+ }), /*#__PURE__*/React__default.createElement("div", {
10064
+ className: `${Switch.className}-slide-knob-wrapper__knob`
10065
+ }))), children ? /*#__PURE__*/React__default.createElement("span", {
9506
10066
  className: "label"
9507
10067
  }, children) : null);
9508
10068
  });
9509
- Radio.className = CLASSNAME;
9510
- Radio.defaultProps = DEFAULT_PROPS;
9511
- Radio.displayName = COMPONENT_NAME;
10069
+ Switch.className = CLASSNAME$1;
10070
+ Switch.defaultProps = DEFAULT_PROPS$1;
10071
+ Switch.displayName = COMPONENT_NAME$1;
10072
+
10073
+ /**
10074
+ * Context props.
10075
+ */
10076
+
10077
+ /**
10078
+ * Component orientation.
10079
+ */
10080
+ const SwitchGroupOrientation = {
10081
+ horizontal: 'horizontal',
10082
+ vertical: 'vertical'
10083
+ };
10084
+
10085
+ /**
10086
+ * Component style.
10087
+ */
10088
+ const StyledSwitchGroup = styled.div`
10089
+ ${baseStyling}
10090
+
10091
+ display: flex;
10092
+ flex-direction: column;
10093
+
10094
+ ${_ref => {
10095
+ let {
10096
+ $orientation
10097
+ } = _ref;
10098
+ return $orientation === SwitchGroupOrientation.vertical ? `
10099
+ div.redsift-checkbox-group-boxes {
10100
+ display: flex;
10101
+ flex-direction: column;
10102
+ }
10103
+ ` : `
10104
+ div.redsift-checkbox-group-boxes {
10105
+ display: flex;
10106
+ flex-direction: row;
10107
+ flex-wrap: wrap;
10108
+ }
10109
+ `;
10110
+ }}
10111
+
10112
+ span.redsift-checkbox-group-label {
10113
+ font-family: var(--redsift-typography-body-font-family);
10114
+ font-weight: var(--redsift-typography-body-font-weight);
10115
+ font-size: var(--redsift-typography-body-font-size);
10116
+ line-height: var(--redsift-typography-body-line-height);
10117
+
10118
+ color: var(--redsift-color-neutral-black);
10119
+ ${_ref2 => {
10120
+ let {
10121
+ $isDisabled
10122
+ } = _ref2;
10123
+ return $isDisabled ? `
10124
+ color: var(--redsift-color-neutral-midgrey);
10125
+ ` : '';
10126
+ }}
10127
+ ${_ref3 => {
10128
+ let {
10129
+ $isInvalid
10130
+ } = _ref3;
10131
+ return $isInvalid ? `
10132
+ color: var(--redsift-color-error-primary);
10133
+ ` : '';
10134
+ }}
10135
+ }
10136
+
10137
+ span.redsift-checkbox-group-description {
10138
+ font-family: var(--redsift-typography-helper-font-family);
10139
+ font-weight: var(--redsift-typography-helper-font-weight);
10140
+ font-size: var(--redsift-typography-helper-font-size);
10141
+ line-height: var(--redsift-typography-helper-line-height);
10142
+
10143
+ color: var(--redsift-color-neutral-darkgrey);
10144
+ ${_ref4 => {
10145
+ let {
10146
+ $isDisabled
10147
+ } = _ref4;
10148
+ return $isDisabled ? `
10149
+ color: var(--redsift-color-neutral-midgrey);
10150
+ ` : '';
10151
+ }}
10152
+ ${_ref5 => {
10153
+ let {
10154
+ $isInvalid
10155
+ } = _ref5;
10156
+ return $isInvalid ? `
10157
+ color: var(--redsift-color-error-primary);
10158
+ ` : '';
10159
+ }}
10160
+ }
10161
+ `;
10162
+
10163
+ const _excluded = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
10164
+ const COMPONENT_NAME = 'SwitchGroup';
10165
+ const CLASSNAME = 'redsift-checkbox-group';
10166
+ const DEFAULT_PROPS = {
10167
+ color: ColorPalette.default,
10168
+ orientation: SwitchGroupOrientation.vertical
10169
+ };
10170
+
10171
+ /**
10172
+ * The SwitchGroup component.
10173
+ * Can be used as controlled or uncontrolled.
10174
+ */
10175
+ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
10176
+ const {
10177
+ children,
10178
+ className,
10179
+ defaultValues,
10180
+ description,
10181
+ isDisabled,
10182
+ isInvalid,
10183
+ isReadOnly,
10184
+ isRequired,
10185
+ label,
10186
+ onChange,
10187
+ orientation,
10188
+ possibleValues,
10189
+ value
10190
+ } = props,
10191
+ forwardedProps = _objectWithoutProperties(props, _excluded);
10192
+ const [selectedValues, setValue] = useState(value || defaultValues || []);
10193
+ useEffect(() => {
10194
+ if (value) {
10195
+ state.setValue(value);
10196
+ }
10197
+ }, [value]);
10198
+ const state = {
10199
+ value: selectedValues,
10200
+ isDisabled: isDisabled || false,
10201
+ isReadOnly: isReadOnly || false,
10202
+ possibleValues: possibleValues,
10203
+ setValue(values) {
10204
+ if (isReadOnly || isDisabled) {
10205
+ return;
10206
+ }
10207
+ setValue(values);
10208
+ },
10209
+ addValue(value) {
10210
+ if (!selectedValues.includes(value)) {
10211
+ setValue(selectedValues.concat(value));
10212
+ if (onChange) {
10213
+ onChange(selectedValues.concat(value));
10214
+ }
10215
+ }
10216
+ },
10217
+ removeValue(value) {
10218
+ if (selectedValues.includes(value)) {
10219
+ setValue(selectedValues.filter(existingValue => existingValue !== value));
10220
+ if (onChange) {
10221
+ onChange(selectedValues.filter(existingValue => existingValue !== value));
10222
+ }
10223
+ }
10224
+ }
10225
+ };
10226
+ return /*#__PURE__*/React__default.createElement(StyledSwitchGroup, _extends$1({}, forwardedProps, {
10227
+ $isDisabled: isDisabled,
10228
+ $isInvalid: isInvalid || isRequired && selectedValues.length === 0,
10229
+ $isReadOnly: isReadOnly,
10230
+ $orientation: orientation,
10231
+ "aria-disabled": isDisabled,
10232
+ className: classNames(SwitchGroup.className, className),
10233
+ ref: ref,
10234
+ role: "group"
10235
+ }), /*#__PURE__*/React__default.createElement("span", {
10236
+ className: `${SwitchGroup.className}-label`
10237
+ }, label, isRequired ? ' *' : null), /*#__PURE__*/React__default.createElement("div", {
10238
+ className: `${SwitchGroup.className}-boxes`
10239
+ }, /*#__PURE__*/React__default.createElement(SwitchGroupContext.Provider, {
10240
+ value: state
10241
+ }, children)), /*#__PURE__*/React__default.createElement("span", {
10242
+ className: `${SwitchGroup.className}-description`
10243
+ }, description));
10244
+ });
10245
+ SwitchGroup.className = CLASSNAME;
10246
+ SwitchGroup.defaultProps = DEFAULT_PROPS;
10247
+ SwitchGroup.displayName = COMPONENT_NAME;
9512
10248
 
9513
- 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, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, 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, 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 };
10249
+ 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 };
9514
10250
  //# sourceMappingURL=index.js.map