@redsift/design-system 7.2.0 → 7.3.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,4 +1,7 @@
1
- import React, { forwardRef, useRef, useState, useEffect, useContext, useReducer, useCallback, useMemo } from 'react';
1
+ import { useLocalizedStringFormatter, I18nProvider, useNumberFormatter } from '@react-aria/i18n';
2
+ export { I18nProvider, useCollator, useDateFormatter, useFilter, useListFormatter, useLocale, useLocalizedStringFormatter, useNumberFormatter } from '@react-aria/i18n';
3
+ export { SSRProvider } from '@react-aria/ssr';
4
+ import React, { useState, useEffect, forwardRef, useRef, useContext, useReducer, useCallback, useMemo } from 'react';
2
5
  import classNames from 'classnames';
3
6
  import { mdiMenu, mdiMenuOpen, mdiChevronDown, mdiChevronRight, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
4
7
  import styled, { css } from 'styled-components';
@@ -14,6 +17,14 @@ import { useFocusRing } from '@react-aria/focus';
14
17
 
15
18
  /** Get types of the values of a record. */
16
19
 
20
+ /**
21
+ * Font.
22
+ */
23
+ const FontFamily = {
24
+ raleway: 'raleway',
25
+ 'source-code-pro': 'source-code-pro',
26
+ electrolize: 'electrolize'
27
+ };
17
28
  /**
18
29
  * Color palette.
19
30
  */
@@ -34,10 +45,30 @@ const ProductColorPalette = {
34
45
  hardenize: 'hardenize',
35
46
  tools: 'tools'
36
47
  };
48
+ const DataVizColorPalette = {
49
+ purple: 'purple',
50
+ blue: 'blue',
51
+ green: 'green',
52
+ red: 'red',
53
+ pink: 'pink',
54
+ cyan: 'cyan',
55
+ orange: 'orange',
56
+ yellow: 'yellow',
57
+ brown: 'brown',
58
+ grey: 'grey'
59
+ };
60
+ const NeutralColorPalette = {
61
+ black: 'black',
62
+ darkgrey: 'darkgrey',
63
+ midgrey: 'midgrey',
64
+ lightgrey: 'lightgrey',
65
+ xlightgrey: 'xlightgrey',
66
+ white: 'white'
67
+ };
37
68
 
38
69
  /**
39
70
  * Do not edit directly
40
- * Generated on Wed, 14 Dec 2022 17:05:36 GMT
71
+ * Generated on Thu, 26 Jan 2023 14:28:56 GMT
41
72
  */
42
73
 
43
74
  const RedsiftColorDefaultPrimary = '#0079e1';
@@ -202,22 +233,27 @@ const RedsiftTypographyH2FontFamily = "'Raleway', sans-serif";
202
233
  const RedsiftTypographyH2FontSize = '24px';
203
234
  const RedsiftTypographyH2FontWeight = '600';
204
235
  const RedsiftTypographyH2LineHeight = '28px';
236
+ const RedsiftTypographyH2TextTransform = 'unset';
205
237
  const RedsiftTypographyH3FontFamily = "'Raleway', sans-serif";
206
238
  const RedsiftTypographyH3FontSize = '20px';
207
239
  const RedsiftTypographyH3FontWeight = '500';
208
240
  const RedsiftTypographyH3LineHeight = '24px';
241
+ const RedsiftTypographyH3TextTransform = 'unset';
209
242
  const RedsiftTypographyH4FontFamily = "'Raleway', sans-serif";
210
243
  const RedsiftTypographyH4FontSize = '18px';
211
244
  const RedsiftTypographyH4FontWeight = '500';
212
245
  const RedsiftTypographyH4LineHeight = '22px';
246
+ const RedsiftTypographyH4TextTransform = 'unset';
213
247
  const RedsiftTypographySubtitleFontFamily = "'Raleway', sans-serif";
214
248
  const RedsiftTypographySubtitleFontSize = '15px';
215
249
  const RedsiftTypographySubtitleFontWeight = '700';
216
250
  const RedsiftTypographySubtitleLineHeight = '26px';
251
+ const RedsiftTypographySubtitleTextTransform = 'unset';
217
252
  const RedsiftTypographyBodyFontFamily = "'Raleway', sans-serif";
218
253
  const RedsiftTypographyBodyFontSize = '15px';
219
254
  const RedsiftTypographyBodyFontWeight = '400';
220
255
  const RedsiftTypographyBodyLineHeight = '26px';
256
+ const RedsiftTypographyBodyTextTransform = 'unset';
221
257
  const RedsiftTypographyLinkFontFamily = "'Raleway', sans-serif";
222
258
  const RedsiftTypographyLinkFontSize = '15px';
223
259
  const RedsiftTypographyLinkFontWeight = '400';
@@ -235,6 +271,7 @@ const RedsiftTypographyCaptionFontFamily = "'Raleway', sans-serif";
235
271
  const RedsiftTypographyCaptionFontSize = '13px';
236
272
  const RedsiftTypographyCaptionFontWeight = '400';
237
273
  const RedsiftTypographyCaptionLineHeight = '23px';
274
+ const RedsiftTypographyCaptionTextTransform = 'unset';
238
275
  const RedsiftTypographyHelperFontFamily = "'Raleway', sans-serif";
239
276
  const RedsiftTypographyHelperFontSize = '12px';
240
277
  const RedsiftTypographyHelperFontWeight = '400';
@@ -243,6 +280,10 @@ const RedsiftTypographyBadgeFontFamily = "'Source Code Pro', sans-serif";
243
280
  const RedsiftTypographyBadgeFontSize = '12px';
244
281
  const RedsiftTypographyBadgeFontWeight = '500';
245
282
  const RedsiftTypographyBadgeLineHeight = '20px';
283
+ const RedsiftTypographyPillFontFamily = "'Source Code Pro', sans-serif";
284
+ const RedsiftTypographyPillFontSize = '15px';
285
+ const RedsiftTypographyPillFontWeight = '500';
286
+ const RedsiftTypographyPillLineHeight = '28px';
246
287
  const RedsiftTypographyChipFontFamily = "'Source Code Pro', sans-serif";
247
288
  const RedsiftTypographyChipFontSize = '13px';
248
289
  const RedsiftTypographyChipFontWeight = '400';
@@ -266,6 +307,44 @@ const warnIfNoAccessibleLabelFound = (props, additionalKeysToCheck) => {
266
307
  }
267
308
  };
268
309
 
310
+ const useWindowSize = () => {
311
+ const [windowSize, setWindowSize] = useState({
312
+ width: undefined,
313
+ height: undefined,
314
+ size: undefined
315
+ });
316
+ useEffect(() => {
317
+ function handleResize() {
318
+ setWindowSize(windowSize => {
319
+ if (window.innerWidth === windowSize.width && window.innerHeight === windowSize.height) {
320
+ return windowSize;
321
+ }
322
+ let size;
323
+ if (window.innerWidth <= 480) {
324
+ size = 'xs';
325
+ } else if (window.innerWidth <= 768) {
326
+ size = 'sm';
327
+ } else if (window.innerWidth <= 1024) {
328
+ size = 'md';
329
+ } else if (window.innerWidth <= 1200) {
330
+ size = 'lg';
331
+ } else {
332
+ size = 'xl';
333
+ }
334
+ return {
335
+ width: window.innerWidth,
336
+ height: window.innerHeight,
337
+ size
338
+ };
339
+ });
340
+ }
341
+ window.addEventListener('resize', handleResize);
342
+ handleResize();
343
+ return () => window.removeEventListener('resize', handleResize);
344
+ }, []);
345
+ return windowSize;
346
+ };
347
+
269
348
  function ownKeys(object, enumerableOnly) {
270
349
  var keys = Object.keys(object);
271
350
  if (Object.getOwnPropertySymbols) {
@@ -357,6 +436,25 @@ function _toPropertyKey(arg) {
357
436
  return typeof key === "symbol" ? key : String(key);
358
437
  }
359
438
 
439
+ var expand$1 = "Expand left side panel";
440
+ var collapse$1 = "Collapse left side panel";
441
+ var enUS$1 = {
442
+ expand: expand$1,
443
+ collapse: collapse$1
444
+ };
445
+
446
+ var expand = "Développer le panneau latéral gauche";
447
+ var collapse = "Réduire le panneau latéral gauche";
448
+ var frFR$1 = {
449
+ expand: expand,
450
+ collapse: collapse
451
+ };
452
+
453
+ var intlMessages$1 = {
454
+ 'en-US': enUS$1,
455
+ 'fr-FR': frFR$1
456
+ };
457
+
360
458
  /**
361
459
  * Component variant.
362
460
  */
@@ -484,10 +582,10 @@ const StyledIcon = styled.span`
484
582
  }}
485
583
  `;
486
584
 
487
- const _excluded$m = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps"];
488
- const COMPONENT_NAME$l = 'RedSiftIcon';
489
- const CLASSNAME$l = 'redsift-icon';
490
- const DEFAULT_PROPS$l = {
585
+ const _excluded$t = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps"];
586
+ const COMPONENT_NAME$s = 'RedSiftIcon';
587
+ const CLASSNAME$s = 'redsift-icon';
588
+ const DEFAULT_PROPS$s = {
491
589
  size: IconSize.medium
492
590
  };
493
591
 
@@ -505,7 +603,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
505
603
  size,
506
604
  svgProps
507
605
  } = props,
508
- forwardedProps = _objectWithoutProperties(props, _excluded$m);
606
+ forwardedProps = _objectWithoutProperties(props, _excluded$t);
509
607
  return /*#__PURE__*/React.createElement(StyledIcon, _extends({}, forwardedProps, {
510
608
  $color: color,
511
609
  $size: size,
@@ -527,9 +625,9 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
527
625
  fill: "currentColor"
528
626
  })), badge ? badge : null);
529
627
  });
530
- Icon.className = CLASSNAME$l;
531
- Icon.defaultProps = DEFAULT_PROPS$l;
532
- Icon.displayName = COMPONENT_NAME$l;
628
+ Icon.className = CLASSNAME$s;
629
+ Icon.defaultProps = DEFAULT_PROPS$s;
630
+ Icon.displayName = COMPONENT_NAME$s;
533
631
 
534
632
  /**
535
633
  * Component variant.
@@ -669,10 +767,10 @@ const StyledButton = styled.button`
669
767
  }}
670
768
  `;
671
769
 
672
- const _excluded$l = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "leftIcon", "onPress", "rightIcon", "variant"];
673
- const COMPONENT_NAME$k = 'RedSiftButton';
674
- const CLASSNAME$k = 'redsift-button';
675
- const DEFAULT_PROPS$k = {
770
+ const _excluded$s = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "leftIcon", "onPress", "rightIcon", "variant"];
771
+ const COMPONENT_NAME$r = 'RedSiftButton';
772
+ const CLASSNAME$r = 'redsift-button';
773
+ const DEFAULT_PROPS$r = {
676
774
  color: ColorPalette.default,
677
775
  variant: ButtonVariant.primary
678
776
  };
@@ -705,7 +803,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
705
803
  rightIcon,
706
804
  variant
707
805
  } = props,
708
- forwardedProps = _objectWithoutProperties(props, _excluded$l);
806
+ forwardedProps = _objectWithoutProperties(props, _excluded$s);
709
807
  return /*#__PURE__*/React.createElement(StyledButton, _extends({}, forwardedProps, buttonProps, {
710
808
  $color: color,
711
809
  $fullWidth: fullWidth,
@@ -726,9 +824,9 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
726
824
  className: "right"
727
825
  }) : null);
728
826
  });
729
- Button.className = CLASSNAME$k;
730
- Button.defaultProps = DEFAULT_PROPS$k;
731
- Button.displayName = COMPONENT_NAME$k;
827
+ Button.className = CLASSNAME$r;
828
+ Button.defaultProps = DEFAULT_PROPS$r;
829
+ Button.displayName = COMPONENT_NAME$r;
732
830
 
733
831
  /**
734
832
  * Component style.
@@ -744,10 +842,10 @@ const StyledIconButton = styled(StyledButton)`
744
842
  }};
745
843
  `;
746
844
 
747
- const _excluded$k = ["className", "color", "disabled", "icon", "isActive", "isDisabled", "onPress", "variant"];
748
- const COMPONENT_NAME$j = 'RedSiftIconButton';
749
- const CLASSNAME$j = 'redsift-icon-button';
750
- const DEFAULT_PROPS$j = {
845
+ const _excluded$r = ["className", "color", "disabled", "icon", "isActive", "isDisabled", "onPress", "variant"];
846
+ const COMPONENT_NAME$q = 'RedSiftIconButton';
847
+ const CLASSNAME$q = 'redsift-icon-button';
848
+ const DEFAULT_PROPS$q = {
751
849
  color: ColorPalette.default,
752
850
  variant: IconButtonVariant.unstyled
753
851
  };
@@ -776,7 +874,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
776
874
  onPress,
777
875
  variant
778
876
  } = props,
779
- forwardedProps = _objectWithoutProperties(props, _excluded$k);
877
+ forwardedProps = _objectWithoutProperties(props, _excluded$r);
780
878
  warnIfNoAccessibleLabelFound(props);
781
879
  return /*#__PURE__*/React.createElement(StyledIconButton, _extends({}, forwardedProps, buttonProps, {
782
880
  $color: isDisabled || disabled ? undefined : color,
@@ -792,9 +890,9 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
792
890
  color: isDisabled || disabled ? undefined : color
793
891
  }));
794
892
  });
795
- IconButton.className = CLASSNAME$j;
796
- IconButton.defaultProps = DEFAULT_PROPS$j;
797
- IconButton.displayName = COMPONENT_NAME$j;
893
+ IconButton.className = CLASSNAME$q;
894
+ IconButton.defaultProps = DEFAULT_PROPS$q;
895
+ IconButton.displayName = COMPONENT_NAME$q;
798
896
 
799
897
  const AppContainerContext = /*#__PURE__*/React.createContext(null);
800
898
 
@@ -873,10 +971,10 @@ const StyledAppBar = styled.header`
873
971
  }
874
972
  `;
875
973
 
876
- const _excluded$j = ["children", "className", "collapseIconButtonProps", "collapseIconButtonRef", "expandIconButtonProps", "expandIconButtonRef", "fallbackTitle", "title"];
877
- const COMPONENT_NAME$i = 'RedSiftAppBar';
878
- const CLASSNAME$i = 'redsift-app-bar';
879
- const DEFAULT_PROPS$i = {};
974
+ const _excluded$q = ["children", "className", "collapseIconButtonProps", "collapseIconButtonRef", "expandIconButtonProps", "expandIconButtonRef", "fallbackTitle", "title"];
975
+ const COMPONENT_NAME$p = 'RedSiftAppBar';
976
+ const CLASSNAME$p = 'redsift-app-bar';
977
+ const DEFAULT_PROPS$p = {};
880
978
 
881
979
  /**
882
980
  * The AppBar component.
@@ -892,11 +990,12 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
892
990
  fallbackTitle,
893
991
  title: propsTitle
894
992
  } = props,
895
- forwardedProps = _objectWithoutProperties(props, _excluded$j);
993
+ forwardedProps = _objectWithoutProperties(props, _excluded$q);
896
994
  const {
897
995
  isLoaded
898
996
  } = useIsLoaded();
899
997
  const appContainerState = useContext(AppContainerContext);
998
+ const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
900
999
  return /*#__PURE__*/React.createElement(StyledAppBar, _extends({}, forwardedProps, {
901
1000
  $isLoaded: isLoaded,
902
1001
  $isSidePanelCollapsed: appContainerState ? appContainerState.isSidePanelCollapsed : true,
@@ -907,7 +1006,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
907
1006
  }, appContainerState ? /*#__PURE__*/React.createElement(React.Fragment, null, appContainerState.isSidePanelCollapsed ? /*#__PURE__*/React.createElement(IconButton, _extends({
908
1007
  className: `${AppBar.className}-left__expand-button`
909
1008
  }, expandIconButtonProps, {
910
- "aria-label": "Expand left side panel",
1009
+ "aria-label": stringFormatter.format('expand'),
911
1010
  icon: mdiMenu,
912
1011
  onPress: appContainerState.expandSidePanel,
913
1012
  ref: collapseIconButtonRef,
@@ -915,7 +1014,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
915
1014
  })) : /*#__PURE__*/React.createElement(IconButton, _extends({
916
1015
  className: `${AppBar.className}-left__collapse-button`
917
1016
  }, collapseIconButtonProps, {
918
- "aria-label": "Collapse left side panel",
1017
+ "aria-label": stringFormatter.format('collapse'),
919
1018
  icon: mdiMenuOpen,
920
1019
  onPress: appContainerState.collapseSidePanel,
921
1020
  ref: expandIconButtonRef,
@@ -924,9 +1023,9 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
924
1023
  className: `${AppBar.className}__right`
925
1024
  }, children));
926
1025
  });
927
- AppBar.className = CLASSNAME$i;
928
- AppBar.defaultProps = DEFAULT_PROPS$i;
929
- AppBar.displayName = COMPONENT_NAME$i;
1026
+ AppBar.className = CLASSNAME$p;
1027
+ AppBar.defaultProps = DEFAULT_PROPS$p;
1028
+ AppBar.displayName = COMPONENT_NAME$p;
930
1029
 
931
1030
  /**
932
1031
  * Component style.
@@ -988,10 +1087,10 @@ const StyledAppSidePanel = styled.div`
988
1087
  }
989
1088
  `;
990
1089
 
991
- const _excluded$i = ["children", "className", "featuredElements", "isCollapsed", "logo"];
992
- const COMPONENT_NAME$h = 'RedSiftAppSidePanel';
993
- const CLASSNAME$h = 'redsift-app-side-panel';
994
- const DEFAULT_PROPS$h = {};
1090
+ const _excluded$p = ["children", "className", "featuredElements", "isCollapsed", "logo"];
1091
+ const COMPONENT_NAME$o = 'RedSiftAppSidePanel';
1092
+ const CLASSNAME$o = 'redsift-app-side-panel';
1093
+ const DEFAULT_PROPS$o = {};
995
1094
 
996
1095
  /**
997
1096
  * The AppSidePanel component.
@@ -1004,7 +1103,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
1004
1103
  isCollapsed = false,
1005
1104
  logo
1006
1105
  } = props,
1007
- forwardedProps = _objectWithoutProperties(props, _excluded$i);
1106
+ forwardedProps = _objectWithoutProperties(props, _excluded$p);
1008
1107
  const appContainerState = useContext(AppContainerContext);
1009
1108
  return /*#__PURE__*/React.createElement(StyledAppSidePanel, _extends({}, forwardedProps, {
1010
1109
  $isCollapsed: !!(isCollapsed || appContainerState !== null && appContainerState !== void 0 && appContainerState.isSidePanelCollapsed),
@@ -1019,9 +1118,9 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
1019
1118
  className: `${AppSidePanel.className}__featured`
1020
1119
  }, featuredElements) : null, children);
1021
1120
  });
1022
- AppSidePanel.className = CLASSNAME$h;
1023
- AppSidePanel.defaultProps = DEFAULT_PROPS$h;
1024
- AppSidePanel.displayName = COMPONENT_NAME$h;
1121
+ AppSidePanel.className = CLASSNAME$o;
1122
+ AppSidePanel.defaultProps = DEFAULT_PROPS$o;
1123
+ AppSidePanel.displayName = COMPONENT_NAME$o;
1025
1124
 
1026
1125
  /**
1027
1126
  * Context props.
@@ -1234,10 +1333,10 @@ const StyledBadge = styled.div`
1234
1333
  }}
1235
1334
  `;
1236
1335
 
1237
- const _excluded$h = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
1238
- const COMPONENT_NAME$g = 'RedSiftBadge';
1239
- const CLASSNAME$g = 'redsift-badge';
1240
- const DEFAULT_PROPS$g = {
1336
+ const _excluded$o = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
1337
+ const COMPONENT_NAME$n = 'RedSiftBadge';
1338
+ const CLASSNAME$n = 'redsift-badge';
1339
+ const DEFAULT_PROPS$n = {
1241
1340
  color: ColorPalette.question,
1242
1341
  variant: BadgeVariant.dot
1243
1342
  };
@@ -1254,7 +1353,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
1254
1353
  isReversed,
1255
1354
  variant
1256
1355
  } = props,
1257
- forwardedProps = _objectWithoutProperties(props, _excluded$h);
1356
+ forwardedProps = _objectWithoutProperties(props, _excluded$o);
1258
1357
  return /*#__PURE__*/React.createElement(StyledBadge, _extends({}, forwardedProps, {
1259
1358
  $autoBreak: autoBreak,
1260
1359
  $color: color,
@@ -1264,14 +1363,14 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
1264
1363
  ref: ref
1265
1364
  }), variant === BadgeVariant.standard ? children : null);
1266
1365
  });
1267
- Badge.className = CLASSNAME$g;
1268
- Badge.defaultProps = DEFAULT_PROPS$g;
1269
- Badge.displayName = COMPONENT_NAME$g;
1366
+ Badge.className = CLASSNAME$n;
1367
+ Badge.defaultProps = DEFAULT_PROPS$n;
1368
+ Badge.displayName = COMPONENT_NAME$n;
1270
1369
 
1271
- const _excluded$g = ["badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
1272
- const COMPONENT_NAME$f = 'RedSiftSideNavigationMenuItem';
1273
- const CLASSNAME$f = 'redsift-side-navigation-menu-item';
1274
- const DEFAULT_PROPS$f = {};
1370
+ const _excluded$n = ["badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
1371
+ const COMPONENT_NAME$m = 'RedSiftSideNavigationMenuItem';
1372
+ const CLASSNAME$m = 'redsift-side-navigation-menu-item';
1373
+ const DEFAULT_PROPS$m = {};
1275
1374
 
1276
1375
  /**
1277
1376
  * The SideNavigationMenuItem component.
@@ -1295,7 +1394,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
1295
1394
  tabIndex,
1296
1395
  withoutIcons
1297
1396
  } = props,
1298
- forwardedProps = _objectWithoutProperties(props, _excluded$g);
1397
+ forwardedProps = _objectWithoutProperties(props, _excluded$n);
1299
1398
  warnIfNoAccessibleLabelFound(props, [children]);
1300
1399
  const appContainerState = useContext(AppContainerContext);
1301
1400
  useEffect(() => {
@@ -1357,9 +1456,9 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
1357
1456
  color: "error"
1358
1457
  }, badgeProps), badge) : null);
1359
1458
  });
1360
- SideNavigationMenuItem.className = CLASSNAME$f;
1361
- SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$f;
1362
- SideNavigationMenuItem.displayName = COMPONENT_NAME$f;
1459
+ SideNavigationMenuItem.className = CLASSNAME$m;
1460
+ SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$m;
1461
+ SideNavigationMenuItem.displayName = COMPONENT_NAME$m;
1363
1462
 
1364
1463
  /**
1365
1464
  * Component style.
@@ -1498,10 +1597,10 @@ const SideNavigationMenuReducer = (state, action) => {
1498
1597
  }
1499
1598
  };
1500
1599
 
1501
- const _excluded$f = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "withoutIcons"];
1502
- const COMPONENT_NAME$e = 'RedSiftSideNavigationMenu';
1503
- const CLASSNAME$e = 'redsift-side-navigation-menu';
1504
- const DEFAULT_PROPS$e = {};
1600
+ const _excluded$m = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "withoutIcons"];
1601
+ const COMPONENT_NAME$l = 'RedSiftSideNavigationMenu';
1602
+ const CLASSNAME$l = 'redsift-side-navigation-menu';
1603
+ const DEFAULT_PROPS$l = {};
1505
1604
 
1506
1605
  /**
1507
1606
  * The SideNavigationMenu component.
@@ -1524,7 +1623,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
1524
1623
  tabIndex,
1525
1624
  withoutIcons
1526
1625
  } = props,
1527
- forwardedProps = _objectWithoutProperties(props, _excluded$f);
1626
+ forwardedProps = _objectWithoutProperties(props, _excluded$m);
1528
1627
  warnIfNoAccessibleLabelFound(props);
1529
1628
  const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
1530
1629
  const [isFirstChild, setIsFirstChild] = useState(false);
@@ -1798,9 +1897,9 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
1798
1897
  role: "menu"
1799
1898
  }, menuItemListEventHandler), renderedMenuItems)));
1800
1899
  });
1801
- SideNavigationMenu.className = CLASSNAME$e;
1802
- SideNavigationMenu.defaultProps = DEFAULT_PROPS$e;
1803
- SideNavigationMenu.displayName = COMPONENT_NAME$e;
1900
+ SideNavigationMenu.className = CLASSNAME$l;
1901
+ SideNavigationMenu.defaultProps = DEFAULT_PROPS$l;
1902
+ SideNavigationMenu.displayName = COMPONENT_NAME$l;
1804
1903
 
1805
1904
  /**
1806
1905
  * Component style.
@@ -1871,10 +1970,10 @@ const useBoundingClientRect = (ref, deps) => {
1871
1970
  return boundingRect;
1872
1971
  };
1873
1972
 
1874
- const _excluded$e = ["aria-label", "aria-labelledby", "children", "className", "isDisabled", "menubarProps", "menubarRef", "withoutIcons"];
1875
- const COMPONENT_NAME$d = 'RedSiftSideNavigationMenuBar';
1876
- const CLASSNAME$d = 'redsift-side-navigation-menu-bar';
1877
- const DEFAULT_PROPS$d = {};
1973
+ const _excluded$l = ["aria-label", "aria-labelledby", "children", "className", "isDisabled", "menubarProps", "menubarRef", "withoutIcons"];
1974
+ const COMPONENT_NAME$k = 'RedSiftSideNavigationMenuBar';
1975
+ const CLASSNAME$k = 'redsift-side-navigation-menu-bar';
1976
+ const DEFAULT_PROPS$k = {};
1878
1977
 
1879
1978
  /**
1880
1979
  * Hook to store the previous index for further use
@@ -1902,7 +2001,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
1902
2001
  menubarRef = useRef(),
1903
2002
  withoutIcons
1904
2003
  } = props,
1905
- forwardedProps = _objectWithoutProperties(props, _excluded$e);
2004
+ forwardedProps = _objectWithoutProperties(props, _excluded$l);
1906
2005
  warnIfNoAccessibleLabelFound(props);
1907
2006
  const {
1908
2007
  top
@@ -2049,11 +2148,11 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
2049
2148
  role: "menubar"
2050
2149
  }), navItems)));
2051
2150
  });
2052
- SideNavigationMenuBar.className = CLASSNAME$d;
2053
- SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$d;
2054
- SideNavigationMenuBar.displayName = COMPONENT_NAME$d;
2151
+ SideNavigationMenuBar.className = CLASSNAME$k;
2152
+ SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$k;
2153
+ SideNavigationMenuBar.displayName = COMPONENT_NAME$k;
2055
2154
 
2056
- const _excluded$d = ["title", "href", "ref"],
2155
+ const _excluded$k = ["title", "href", "ref"],
2057
2156
  _excluded2 = ["title", "children", "ref"],
2058
2157
  _excluded3 = ["title", "href", "ref"];
2059
2158
  const isMenu = item => {
@@ -2072,7 +2171,7 @@ const useSideNavigationMenuBar = _ref => {
2072
2171
  href,
2073
2172
  ref
2074
2173
  } = item,
2075
- rest = _objectWithoutProperties(item, _excluded$d);
2174
+ rest = _objectWithoutProperties(item, _excluded$k);
2076
2175
  menuBarChildren.push( /*#__PURE__*/React.createElement(SideNavigationMenuItem, _extends({
2077
2176
  key: title,
2078
2177
  isCurrent: isActive ? isActive(href) : undefined
@@ -2141,6 +2240,10 @@ const StyledAppContent = styled.main`
2141
2240
  min-height: calc(100vh - 72px);
2142
2241
  padding: 16px 32px;
2143
2242
 
2243
+ @media screen and (max-width: 768px) {
2244
+ padding: 0px;
2245
+ }
2246
+
2144
2247
  ${_ref => {
2145
2248
  let {
2146
2249
  $isSidePanelCollapsed
@@ -2190,10 +2293,10 @@ const StyledAppContent = styled.main`
2190
2293
  }}
2191
2294
  `;
2192
2295
 
2193
- const _excluded$c = ["children", "className", "productTheme"];
2194
- const COMPONENT_NAME$c = 'RedSiftAppContent';
2195
- const CLASSNAME$c = 'redsift-app-content';
2196
- const DEFAULT_PROPS$c = {};
2296
+ const _excluded$j = ["children", "className", "productTheme"];
2297
+ const COMPONENT_NAME$j = 'RedSiftAppContent';
2298
+ const CLASSNAME$j = 'redsift-app-content';
2299
+ const DEFAULT_PROPS$j = {};
2197
2300
 
2198
2301
  /**
2199
2302
  * The AppContent component.
@@ -2204,7 +2307,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
2204
2307
  className,
2205
2308
  productTheme
2206
2309
  } = props,
2207
- forwardedProps = _objectWithoutProperties(props, _excluded$c);
2310
+ forwardedProps = _objectWithoutProperties(props, _excluded$j);
2208
2311
  const {
2209
2312
  isLoaded
2210
2313
  } = useIsLoaded();
@@ -2217,9 +2320,9 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
2217
2320
  ref: ref
2218
2321
  }), children);
2219
2322
  });
2220
- AppContent.className = CLASSNAME$c;
2221
- AppContent.defaultProps = DEFAULT_PROPS$c;
2222
- AppContent.displayName = COMPONENT_NAME$c;
2323
+ AppContent.className = CLASSNAME$j;
2324
+ AppContent.defaultProps = DEFAULT_PROPS$j;
2325
+ AppContent.displayName = COMPONENT_NAME$j;
2223
2326
 
2224
2327
  /**
2225
2328
  * Component style.
@@ -2252,10 +2355,10 @@ const StyledAppContainer = styled.div`
2252
2355
  }}
2253
2356
  `;
2254
2357
 
2255
- const _excluded$b = ["children", "className", "productTheme"];
2256
- const COMPONENT_NAME$b = 'RedSiftAppContainer';
2257
- const CLASSNAME$b = 'redsift-app-container';
2258
- const DEFAULT_PROPS$b = {};
2358
+ const _excluded$i = ["children", "className", "locale", "productTheme"];
2359
+ const COMPONENT_NAME$i = 'RedSiftAppContainer';
2360
+ const CLASSNAME$i = 'redsift-app-container';
2361
+ const DEFAULT_PROPS$i = {};
2259
2362
 
2260
2363
  /**
2261
2364
  * The AppContainer component.
@@ -2264,9 +2367,10 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
2264
2367
  const {
2265
2368
  children,
2266
2369
  className,
2370
+ locale,
2267
2371
  productTheme
2268
2372
  } = props,
2269
- forwardedProps = _objectWithoutProperties(props, _excluded$b);
2373
+ forwardedProps = _objectWithoutProperties(props, _excluded$i);
2270
2374
  const {
2271
2375
  hasAppBar,
2272
2376
  hasAppSidePanel,
@@ -2292,8 +2396,8 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
2292
2396
  hasAppContent
2293
2397
  };
2294
2398
  }, [children]);
2295
- if (!(hasAppBar && hasAppSidePanel && hasAppContent)) {
2296
- console.warn('The AppContainer should contain an AppSidePanel, an AppBar and an AppContent to work properly.');
2399
+ if ((hasAppBar || hasAppSidePanel || hasAppContent) && !(hasAppBar && hasAppSidePanel && hasAppContent)) {
2400
+ console.warn('Missing AppSidePanel, AppBar or AppContent inside AppContainer. These components are meant to work together.');
2297
2401
  }
2298
2402
  const [isSidePanelCollapsed, setIsSidePanelCollapsed] = useState(false);
2299
2403
  const [title, setTitle] = useState();
@@ -2319,11 +2423,13 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
2319
2423
  ref: ref
2320
2424
  }), /*#__PURE__*/React.createElement(AppContainerContext.Provider, {
2321
2425
  value: state
2322
- }, children));
2426
+ }, /*#__PURE__*/React.createElement(I18nProvider, {
2427
+ locale: locale
2428
+ }, children)));
2323
2429
  });
2324
- AppContainer.className = CLASSNAME$b;
2325
- AppContainer.defaultProps = DEFAULT_PROPS$b;
2326
- AppContainer.displayName = COMPONENT_NAME$b;
2430
+ AppContainer.className = CLASSNAME$i;
2431
+ AppContainer.defaultProps = DEFAULT_PROPS$i;
2432
+ AppContainer.displayName = COMPONENT_NAME$i;
2327
2433
 
2328
2434
  /**
2329
2435
  * Component style.
@@ -2368,10 +2474,10 @@ const StyledBreadcrumbItem = styled.a`
2368
2474
  }
2369
2475
  `;
2370
2476
 
2371
- const _excluded$a = ["children", "className", "href", "isCurrent", "isDisabled"];
2372
- const COMPONENT_NAME$a = 'RedSiftBreadcrumbItem';
2373
- const CLASSNAME$a = 'redsift-breadcrumb-item';
2374
- const DEFAULT_PROPS$a = {};
2477
+ const _excluded$h = ["children", "className", "href", "isCurrent", "isDisabled"];
2478
+ const COMPONENT_NAME$h = 'RedSiftBreadcrumbItem';
2479
+ const CLASSNAME$h = 'redsift-breadcrumb-item';
2480
+ const DEFAULT_PROPS$h = {};
2375
2481
 
2376
2482
  /**
2377
2483
  * The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.
@@ -2384,7 +2490,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
2384
2490
  isCurrent,
2385
2491
  isDisabled
2386
2492
  } = props,
2387
- forwardedProps = _objectWithoutProperties(props, _excluded$a);
2493
+ forwardedProps = _objectWithoutProperties(props, _excluded$h);
2388
2494
  warnIfNoAccessibleLabelFound(props, [children]);
2389
2495
  return /*#__PURE__*/React.createElement(StyledBreadcrumbItem, _extends({
2390
2496
  role: "link",
@@ -2399,9 +2505,9 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
2399
2505
  ref: ref
2400
2506
  }), children);
2401
2507
  });
2402
- BreadcrumbItem.className = CLASSNAME$a;
2403
- BreadcrumbItem.defaultProps = DEFAULT_PROPS$a;
2404
- BreadcrumbItem.displayName = COMPONENT_NAME$a;
2508
+ BreadcrumbItem.className = CLASSNAME$h;
2509
+ BreadcrumbItem.defaultProps = DEFAULT_PROPS$h;
2510
+ BreadcrumbItem.displayName = COMPONENT_NAME$h;
2405
2511
 
2406
2512
  /**
2407
2513
  * Component style.
@@ -2433,10 +2539,10 @@ const StyledBreadcrumbs = styled.nav`
2433
2539
  }
2434
2540
  `;
2435
2541
 
2436
- const _excluded$9 = ["children", "className", "isDisabled"];
2437
- const COMPONENT_NAME$9 = 'RedSiftBreadcrumbs';
2438
- const CLASSNAME$9 = 'redsift-breadcrumbs';
2439
- const DEFAULT_PROPS$9 = {};
2542
+ const _excluded$g = ["children", "className", "isDisabled"];
2543
+ const COMPONENT_NAME$g = 'RedSiftBreadcrumbs';
2544
+ const CLASSNAME$g = 'redsift-breadcrumbs';
2545
+ const DEFAULT_PROPS$g = {};
2440
2546
 
2441
2547
  /**
2442
2548
  * The Breadcrumbs components is a list of links to the parent pages of the current page in hierarchical order.
@@ -2447,7 +2553,7 @@ const Breadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
2447
2553
  className,
2448
2554
  isDisabled
2449
2555
  } = props,
2450
- forwardedProps = _objectWithoutProperties(props, _excluded$9);
2556
+ forwardedProps = _objectWithoutProperties(props, _excluded$g);
2451
2557
  warnIfNoAccessibleLabelFound(props);
2452
2558
  const childArray = [];
2453
2559
  React.Children.forEach(children, child => {
@@ -2475,14 +2581,14 @@ const Breadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
2475
2581
  ref: ref
2476
2582
  }), /*#__PURE__*/React.createElement("ol", null, breadcrumbItems));
2477
2583
  });
2478
- Breadcrumbs.className = CLASSNAME$9;
2479
- Breadcrumbs.defaultProps = DEFAULT_PROPS$9;
2480
- Breadcrumbs.displayName = COMPONENT_NAME$9;
2481
-
2482
- const _excluded$8 = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
2483
- const COMPONENT_NAME$8 = 'RedSiftButtonLink';
2484
- const CLASSNAME$8 = 'redsift-button-link';
2485
- const DEFAULT_PROPS$8 = {
2584
+ Breadcrumbs.className = CLASSNAME$g;
2585
+ Breadcrumbs.defaultProps = DEFAULT_PROPS$g;
2586
+ Breadcrumbs.displayName = COMPONENT_NAME$g;
2587
+
2588
+ const _excluded$f = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
2589
+ const COMPONENT_NAME$f = 'RedSiftButtonLink';
2590
+ const CLASSNAME$f = 'redsift-button-link';
2591
+ const DEFAULT_PROPS$f = {
2486
2592
  color: ColorPalette.default,
2487
2593
  variant: ButtonVariant.primary
2488
2594
  };
@@ -2508,7 +2614,7 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
2508
2614
  target,
2509
2615
  variant
2510
2616
  } = props,
2511
- forwardedProps = _objectWithoutProperties(props, _excluded$8);
2617
+ forwardedProps = _objectWithoutProperties(props, _excluded$f);
2512
2618
  return /*#__PURE__*/React.createElement(StyledButton, _extends({
2513
2619
  as: as || 'a',
2514
2620
  role: "link",
@@ -2532,9 +2638,9 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
2532
2638
  className: "right"
2533
2639
  }) : null);
2534
2640
  });
2535
- ButtonLink.className = CLASSNAME$8;
2536
- ButtonLink.defaultProps = DEFAULT_PROPS$8;
2537
- ButtonLink.displayName = COMPONENT_NAME$8;
2641
+ ButtonLink.className = CLASSNAME$f;
2642
+ ButtonLink.defaultProps = DEFAULT_PROPS$f;
2643
+ ButtonLink.displayName = COMPONENT_NAME$f;
2538
2644
 
2539
2645
  /**
2540
2646
  * Context props.
@@ -2570,6 +2676,7 @@ const StyledCheckboxGroup = styled.div`
2570
2676
  div.redsift-checkbox-group-boxes {
2571
2677
  display: flex;
2572
2678
  flex-direction: row;
2679
+ flex-wrap: wrap;
2573
2680
  }
2574
2681
  `;
2575
2682
  }}
@@ -2625,10 +2732,10 @@ const StyledCheckboxGroup = styled.div`
2625
2732
  }
2626
2733
  `;
2627
2734
 
2628
- const _excluded$7 = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
2629
- const COMPONENT_NAME$7 = 'RedSiftCheckboxGroup';
2630
- const CLASSNAME$7 = 'redsift-checkbox-group';
2631
- const DEFAULT_PROPS$7 = {
2735
+ const _excluded$e = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
2736
+ const COMPONENT_NAME$e = 'RedSiftCheckboxGroup';
2737
+ const CLASSNAME$e = 'redsift-checkbox-group';
2738
+ const DEFAULT_PROPS$e = {
2632
2739
  color: ColorPalette.default,
2633
2740
  orientation: CheckboxGroupOrientation.vertical
2634
2741
  };
@@ -2653,7 +2760,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
2653
2760
  possibleValues,
2654
2761
  value
2655
2762
  } = props,
2656
- forwardedProps = _objectWithoutProperties(props, _excluded$7);
2763
+ forwardedProps = _objectWithoutProperties(props, _excluded$e);
2657
2764
  const [selectedValues, setValue] = useState(value || defaultValues || []);
2658
2765
  useEffect(() => {
2659
2766
  if (value) {
@@ -2707,9 +2814,9 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
2707
2814
  className: `${CheckboxGroup.className}-description`
2708
2815
  }, description));
2709
2816
  });
2710
- CheckboxGroup.className = CLASSNAME$7;
2711
- CheckboxGroup.defaultProps = DEFAULT_PROPS$7;
2712
- CheckboxGroup.displayName = COMPONENT_NAME$7;
2817
+ CheckboxGroup.className = CLASSNAME$e;
2818
+ CheckboxGroup.defaultProps = DEFAULT_PROPS$e;
2819
+ CheckboxGroup.displayName = COMPONENT_NAME$e;
2713
2820
 
2714
2821
  /**
2715
2822
  * Component style.
@@ -2818,10 +2925,10 @@ const StyledCheckbox = styled.label`
2818
2925
  }}
2819
2926
  `;
2820
2927
 
2821
- const _excluded$6 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isControlled", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
2822
- const COMPONENT_NAME$6 = 'RedSiftCheckbox';
2823
- const CLASSNAME$6 = 'redsift-checkbox';
2824
- const DEFAULT_PROPS$6 = {};
2928
+ const _excluded$d = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isControlled", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
2929
+ const COMPONENT_NAME$d = 'RedSiftCheckbox';
2930
+ const CLASSNAME$d = 'redsift-checkbox';
2931
+ const DEFAULT_PROPS$d = {};
2825
2932
 
2826
2933
  /**
2827
2934
  * The Checkbox component.
@@ -2829,6 +2936,7 @@ const DEFAULT_PROPS$6 = {};
2829
2936
  * Can be used as controlled or uncontrolled.
2830
2937
  */
2831
2938
  const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
2939
+ var _isDisabled, _isReadOnly, _ref;
2832
2940
  const groupState = useContext(CheckboxGroupContext);
2833
2941
  let {
2834
2942
  'aria-label': ariaLabel,
@@ -2850,16 +2958,16 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
2850
2958
  onChange,
2851
2959
  value
2852
2960
  } = props,
2853
- forwardedProps = _objectWithoutProperties(props, _excluded$6);
2961
+ forwardedProps = _objectWithoutProperties(props, _excluded$d);
2854
2962
  const {
2855
2963
  isFocusVisible,
2856
2964
  focusProps
2857
2965
  } = useFocusRing({
2858
2966
  autoFocus
2859
2967
  });
2860
- isDisabled = isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled);
2861
- isReadOnly = isReadOnly || (groupState === null || groupState === void 0 ? void 0 : groupState.isReadOnly);
2862
- const [isSelected, setSelected] = useState(propsIsSelected || defaultSelected || (groupState === null || groupState === void 0 ? void 0 : groupState.value.includes(value)));
2968
+ isDisabled = (_isDisabled = isDisabled) !== null && _isDisabled !== void 0 ? _isDisabled : groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled;
2969
+ isReadOnly = (_isReadOnly = isReadOnly) !== null && _isReadOnly !== void 0 ? _isReadOnly : groupState === null || groupState === void 0 ? void 0 : groupState.isReadOnly;
2970
+ 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));
2863
2971
  useEffect(() => {
2864
2972
  if (groupState) {
2865
2973
  setSelected(groupState.value.includes(value));
@@ -2926,9 +3034,457 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
2926
3034
  className: "label"
2927
3035
  }, children) : null);
2928
3036
  });
2929
- Checkbox.className = CLASSNAME$6;
2930
- Checkbox.defaultProps = DEFAULT_PROPS$6;
2931
- Checkbox.displayName = COMPONENT_NAME$6;
3037
+ Checkbox.className = CLASSNAME$d;
3038
+ Checkbox.defaultProps = DEFAULT_PROPS$d;
3039
+ Checkbox.displayName = COMPONENT_NAME$d;
3040
+
3041
+ const FlexboxAlignContent = {
3042
+ 'flex-start': 'flex-start',
3043
+ 'flex-end': 'flex-end',
3044
+ center: 'center',
3045
+ 'space-between': 'space-between',
3046
+ 'space-around': 'space-around',
3047
+ 'space-evenly': 'space-evenly',
3048
+ stretch: 'stretch',
3049
+ start: 'start',
3050
+ end: 'end',
3051
+ baseline: 'baseline',
3052
+ 'first baseline': 'first baseline',
3053
+ 'last baseline': 'last baseline'
3054
+ };
3055
+ const FlexboxAlignItems = {
3056
+ stretch: 'stretch',
3057
+ 'flex-start': 'flex-start',
3058
+ 'flex-end': 'flex-end',
3059
+ center: 'center',
3060
+ baseline: 'baseline',
3061
+ 'first baseline': 'first baseline',
3062
+ 'last baseline': 'last baseline',
3063
+ start: 'start',
3064
+ end: 'end',
3065
+ 'self-start': 'self-start',
3066
+ 'self-end': 'self-end'
3067
+ };
3068
+ const FlexboxAlignSelf = {
3069
+ auto: 'auto',
3070
+ 'flex-start': 'flex-start',
3071
+ 'flex-end': 'flex-end',
3072
+ center: 'center',
3073
+ baseline: 'baseline',
3074
+ stretch: 'stretch'
3075
+ };
3076
+ const FlexboxFlexDirection = {
3077
+ row: 'row',
3078
+ 'row-reverse': 'row-reverse',
3079
+ column: 'column',
3080
+ 'column-reverse': 'column-reverse'
3081
+ };
3082
+ const FlexboxFlexWrap = {
3083
+ nowrap: 'nowrap',
3084
+ wrap: 'wrap',
3085
+ 'wrap-reverse': 'wrap-reverse'
3086
+ };
3087
+ const FlexboxJustifyContent = {
3088
+ 'flex-start': 'flex-start',
3089
+ 'flex-end': 'flex-end',
3090
+ center: 'center',
3091
+ 'space-between': 'space-between',
3092
+ 'space-around': 'space-around',
3093
+ 'space-evenly': 'space-evenly',
3094
+ start: 'start',
3095
+ end: 'end',
3096
+ left: 'left',
3097
+ right: 'right'
3098
+ };
3099
+
3100
+ /**
3101
+ * Component style.
3102
+ */
3103
+ const StyledFlexbox = styled.div`
3104
+ display: ${_ref => {
3105
+ let {
3106
+ $inline
3107
+ } = _ref;
3108
+ return $inline ? 'inline-flex' : 'flex';
3109
+ }};
3110
+
3111
+ ${_ref2 => {
3112
+ let {
3113
+ $alignContent,
3114
+ $alignItems,
3115
+ $alignSelf,
3116
+ $flexBasis,
3117
+ $flexDirection,
3118
+ $flexGrow,
3119
+ $flexShrink,
3120
+ $flexWrap,
3121
+ $gap,
3122
+ $height,
3123
+ $justifyContent,
3124
+ $order,
3125
+ $width
3126
+ } = _ref2;
3127
+ return css`
3128
+ ${$alignContent ? `align-content: ${$alignContent};` : ''}
3129
+ ${$alignItems ? `align-items: ${$alignItems};` : ''}
3130
+ ${$alignSelf ? `align-self: ${$alignSelf};` : ''}
3131
+ ${$flexBasis ? `flex-basis: ${$flexBasis};` : ''}
3132
+ ${$flexDirection ? `flex-direction: ${$flexDirection};` : ''}
3133
+ ${$flexGrow ? `flex-grow: ${$flexGrow};` : ''}
3134
+ ${$flexShrink ? `flex-shrink: ${$flexShrink};` : ''}
3135
+ ${$flexWrap ? `flex-wrap: ${$flexWrap};` : ''}
3136
+ gap: ${$gap};
3137
+ ${$height ? `height: ${$height};` : ''}
3138
+ ${$justifyContent ? `justify-content: ${$justifyContent};` : ''}
3139
+ ${$order ? `order: ${$order};` : ''}
3140
+ ${$width ? `width: ${$width};` : ''}
3141
+ `;
3142
+ }}
3143
+ `;
3144
+
3145
+ const _excluded$c = ["children", "className", "alignContent", "alignItems", "alignSelf", "flexBasis", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "gap", "height", "inline", "justifyContent", "order", "width"];
3146
+ const COMPONENT_NAME$c = 'RedSiftFlexbox';
3147
+ const CLASSNAME$c = 'redsift-flex-box';
3148
+ const DEFAULT_PROPS$c = {
3149
+ gap: '16px'
3150
+ };
3151
+
3152
+ /**
3153
+ * The Flexbox component.
3154
+ */
3155
+ const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
3156
+ const {
3157
+ children,
3158
+ className,
3159
+ alignContent,
3160
+ alignItems,
3161
+ alignSelf,
3162
+ flexBasis,
3163
+ flexDirection,
3164
+ flexGrow,
3165
+ flexShrink,
3166
+ flexWrap,
3167
+ gap,
3168
+ height,
3169
+ inline,
3170
+ justifyContent,
3171
+ order,
3172
+ width
3173
+ } = props,
3174
+ forwardedProps = _objectWithoutProperties(props, _excluded$c);
3175
+ return /*#__PURE__*/React.createElement(StyledFlexbox, _extends({}, forwardedProps, {
3176
+ className: classNames(Flexbox.className, className),
3177
+ ref: ref,
3178
+ $alignContent: alignContent,
3179
+ $alignItems: alignItems,
3180
+ $alignSelf: alignSelf,
3181
+ $flexBasis: flexBasis,
3182
+ $flexDirection: flexDirection,
3183
+ $flexGrow: flexGrow,
3184
+ $flexShrink: flexShrink,
3185
+ $flexWrap: flexWrap,
3186
+ $gap: gap,
3187
+ $height: height,
3188
+ $inline: inline,
3189
+ $justifyContent: justifyContent,
3190
+ $order: order,
3191
+ $width: width
3192
+ }), children);
3193
+ });
3194
+ Flexbox.className = CLASSNAME$c;
3195
+ Flexbox.defaultProps = DEFAULT_PROPS$c;
3196
+ Flexbox.displayName = COMPONENT_NAME$c;
3197
+
3198
+ const GridAlignContent = {
3199
+ start: 'start',
3200
+ end: 'end',
3201
+ center: 'center',
3202
+ stretch: 'stretch',
3203
+ 'space-around': 'space-around',
3204
+ 'space-between': 'space-between',
3205
+ 'space-evenly': 'space-evenly'
3206
+ };
3207
+ const GridAlignItems = {
3208
+ start: 'start',
3209
+ end: 'end',
3210
+ center: 'center',
3211
+ stretch: 'stretch'
3212
+ };
3213
+ const GridJustifyContent = {
3214
+ start: 'start',
3215
+ end: 'end',
3216
+ center: 'center',
3217
+ stretch: 'stretch',
3218
+ 'space-around': 'space-around',
3219
+ 'space-between': 'space-between',
3220
+ 'space-evenly': 'space-evenly'
3221
+ };
3222
+ const GridJustifyItems = {
3223
+ start: 'start',
3224
+ end: 'end',
3225
+ center: 'center',
3226
+ stretch: 'stretch'
3227
+ };
3228
+
3229
+ /**
3230
+ * Component style.
3231
+ */
3232
+ const StyledGrid = styled.div`
3233
+ display: ${_ref => {
3234
+ let {
3235
+ $inline
3236
+ } = _ref;
3237
+ return $inline ? 'inline-grid' : 'grid';
3238
+ }};
3239
+
3240
+ ${_ref2 => {
3241
+ let {
3242
+ $alignContent,
3243
+ $alignItems,
3244
+ $gap,
3245
+ $gridAutoColumns,
3246
+ $gridAutoRows,
3247
+ $gridTemplateAreas,
3248
+ $gridTemplateColumns,
3249
+ $gridTemplateRows,
3250
+ $height,
3251
+ $justifyContent,
3252
+ $justifyItems,
3253
+ $width
3254
+ } = _ref2;
3255
+ return css`
3256
+ ${$alignContent ? `align-content: ${$alignContent};` : ''}
3257
+ ${$alignItems ? `align-items: ${$alignItems};` : ''}
3258
+ ${$gap ? `gap: ${$gap};` : ''}
3259
+ ${$gridAutoColumns ? `grid-auto-columns: ${$gridAutoColumns};` : ''}
3260
+ ${$gridAutoRows ? `grid-auto-rows: ${$gridAutoRows};` : ''}
3261
+ ${$gridTemplateAreas ? `grid-template-areas: ${$gridTemplateAreas};` : ''}
3262
+ ${$gridTemplateColumns ? `grid-template-columns: ${$gridTemplateColumns};` : ''}
3263
+ ${$gridTemplateRows ? `grid-template-rows: ${$gridTemplateRows};` : ''}
3264
+ ${$height ? `height: ${$height};` : ''}
3265
+ ${$justifyContent ? `justify-content: ${$justifyContent};` : ''}
3266
+ ${$justifyItems ? `justify-items: ${$justifyItems};` : ''}
3267
+ ${$width ? `width: ${$width};` : ''}
3268
+ `;
3269
+ }}
3270
+ `;
3271
+
3272
+ const _excluded$b = ["alignContent", "alignItems", "children", "className", "gap", "gridAutoColumns", "gridAutoRows", "gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows", "height", "inline", "justifyContent", "justifyItems", "width"];
3273
+ const COMPONENT_NAME$b = 'RedSiftGrid';
3274
+ const CLASSNAME$b = 'redsift-grid';
3275
+ const DEFAULT_PROPS$b = {};
3276
+
3277
+ /**
3278
+ * The Grid component.
3279
+ */
3280
+ const Grid = /*#__PURE__*/forwardRef((props, ref) => {
3281
+ const {
3282
+ alignContent,
3283
+ alignItems,
3284
+ children,
3285
+ className,
3286
+ gap,
3287
+ gridAutoColumns,
3288
+ gridAutoRows,
3289
+ gridTemplateAreas,
3290
+ gridTemplateColumns,
3291
+ gridTemplateRows,
3292
+ height,
3293
+ inline,
3294
+ justifyContent,
3295
+ justifyItems,
3296
+ width
3297
+ } = props,
3298
+ forwardedProps = _objectWithoutProperties(props, _excluded$b);
3299
+ return /*#__PURE__*/React.createElement(StyledGrid, _extends({}, forwardedProps, {
3300
+ className: classNames(Grid.className, className),
3301
+ ref: ref,
3302
+ $alignContent: alignContent,
3303
+ $alignItems: alignItems,
3304
+ $gap: gap,
3305
+ $gridAutoColumns: gridAutoColumns,
3306
+ $gridAutoRows: gridAutoRows,
3307
+ $gridTemplateAreas: gridTemplateAreas,
3308
+ $gridTemplateColumns: gridTemplateColumns,
3309
+ $gridTemplateRows: gridTemplateRows,
3310
+ $height: height,
3311
+ $inline: inline,
3312
+ $justifyContent: justifyContent,
3313
+ $justifyItems: justifyItems,
3314
+ $width: width
3315
+ }), children);
3316
+ });
3317
+ Grid.className = CLASSNAME$b;
3318
+ Grid.defaultProps = DEFAULT_PROPS$b;
3319
+ Grid.displayName = COMPONENT_NAME$b;
3320
+
3321
+ const GridItemAlignSelf = {
3322
+ start: 'start',
3323
+ end: 'end',
3324
+ center: 'center',
3325
+ stretch: 'stretch'
3326
+ };
3327
+ const GridItemJustifySelf = {
3328
+ start: 'start',
3329
+ end: 'end',
3330
+ center: 'center',
3331
+ stretch: 'stretch'
3332
+ };
3333
+
3334
+ /**
3335
+ * Component style.
3336
+ */
3337
+ const StyledGridItem = styled.div`
3338
+ ${_ref => {
3339
+ let {
3340
+ $alignSelf,
3341
+ $gridArea,
3342
+ $gridColumn,
3343
+ $gridRow,
3344
+ $height,
3345
+ $justifySelf,
3346
+ $width
3347
+ } = _ref;
3348
+ return css`
3349
+ ${$alignSelf ? `align-self: ${$alignSelf};` : ''}
3350
+ ${$gridArea ? `grid-area: ${$gridArea};` : ''}
3351
+ ${$gridColumn ? `grid-column: ${$gridColumn};` : ''}
3352
+ ${$gridRow ? `grid-row: ${$gridRow};` : ''}
3353
+ ${$height ? `height: ${$height};` : ''}
3354
+ ${$justifySelf ? `justify-self: ${$justifySelf};` : ''}
3355
+ ${$width ? `width: ${$width};` : ''}
3356
+ `;
3357
+ }}
3358
+ `;
3359
+
3360
+ const _excluded$a = ["alignSelf", "children", "className", "gridArea", "gridColumn", "gridRow", "height", "justifySelf", "width"];
3361
+ const COMPONENT_NAME$a = 'RedSiftGridItem';
3362
+ const CLASSNAME$a = 'redsift-grid-item';
3363
+ const DEFAULT_PROPS$a = {};
3364
+
3365
+ /**
3366
+ * The GridItem component.
3367
+ */
3368
+ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
3369
+ const {
3370
+ alignSelf,
3371
+ children,
3372
+ className,
3373
+ gridArea,
3374
+ gridColumn,
3375
+ gridRow,
3376
+ height,
3377
+ justifySelf,
3378
+ width
3379
+ } = props,
3380
+ forwardedProps = _objectWithoutProperties(props, _excluded$a);
3381
+ return /*#__PURE__*/React.createElement(StyledGridItem, _extends({}, forwardedProps, {
3382
+ className: classNames(GridItem.className, className),
3383
+ ref: ref,
3384
+ $alignSelf: alignSelf,
3385
+ $gridArea: gridArea,
3386
+ $gridColumn: gridColumn,
3387
+ $gridRow: gridRow,
3388
+ $height: height,
3389
+ $justifySelf: justifySelf,
3390
+ $width: width
3391
+ }), children);
3392
+ });
3393
+ GridItem.className = CLASSNAME$a;
3394
+ GridItem.defaultProps = DEFAULT_PROPS$a;
3395
+ GridItem.displayName = COMPONENT_NAME$a;
3396
+
3397
+ /**
3398
+ * Component variant.
3399
+ */
3400
+ const HeadingVariant = {
3401
+ h1: 'h1',
3402
+ h2: 'h2',
3403
+ h3: 'h3',
3404
+ h4: 'h4'
3405
+ };
3406
+
3407
+ /**
3408
+ * Component style.
3409
+ */
3410
+ const StyledHeading = styled.span`
3411
+ ${_ref => {
3412
+ let {
3413
+ as
3414
+ } = _ref;
3415
+ return as === 'h1' ? css`
3416
+ h1 {
3417
+ font-family: var(--redsift-typography-h1-font-family);
3418
+ font-size: var(--redsift-typography-h1-font-size);
3419
+ font-weight: var(--redsift-typography-h1-font-weight);
3420
+ line-height: var(--redsift-typography-h1-line-height);
3421
+ text-transform: var(--redsift-typography-h1-text-transform);
3422
+ }
3423
+ ` : as === 'h2' ? css`
3424
+ h2 {
3425
+ font-family: var(--redsift-typography-h2-font-family);
3426
+ font-size: var(--redsift-typography-h2-font-size);
3427
+ font-weight: var(--redsift-typography-h2-font-weight);
3428
+ line-height: var(--redsift-typography-h2-line-height);
3429
+ }
3430
+ ` : as === 'h3' ? css`
3431
+ h3 {
3432
+ font-family: var(--redsift-typography-h3-font-family);
3433
+ font-size: var(--redsift-typography-h3-font-size);
3434
+ font-weight: var(--redsift-typography-h3-font-weight);
3435
+ line-height: var(--redsift-typography-h3-line-height);
3436
+ }
3437
+ ` : css`
3438
+ h4 {
3439
+ font-family: var(--redsift-typography-h4-font-family);
3440
+ font-size: var(--redsift-typography-h4-font-size);
3441
+ font-weight: var(--redsift-typography-h4-font-weight);
3442
+ line-height: var(--redsift-typography-h4-line-height);
3443
+ }
3444
+ `;
3445
+ }}
3446
+
3447
+ ${_ref2 => {
3448
+ let {
3449
+ $noWrap
3450
+ } = _ref2;
3451
+ return $noWrap ? css`
3452
+ overflow: hidden;
3453
+ text-overflow: ellipsis;
3454
+ white-space: nowrap;
3455
+ ` : css`
3456
+ word-break: break-word;
3457
+ `;
3458
+ }}
3459
+ `;
3460
+
3461
+ const _excluded$9 = ["as", "children", "className", "noWrap"];
3462
+ const COMPONENT_NAME$9 = 'RedSiftHeading';
3463
+ const CLASSNAME$9 = 'redsift-heading';
3464
+ const DEFAULT_PROPS$9 = {};
3465
+
3466
+ /**
3467
+ * The Heading component.
3468
+ */
3469
+ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
3470
+ const {
3471
+ as,
3472
+ children,
3473
+ className,
3474
+ noWrap
3475
+ } = props,
3476
+ forwardedProps = _objectWithoutProperties(props, _excluded$9);
3477
+ return /*#__PURE__*/React.createElement(StyledHeading, _extends({
3478
+ as: as
3479
+ }, forwardedProps, {
3480
+ className: classNames(Heading.className, className),
3481
+ ref: ref,
3482
+ $noWrap: noWrap
3483
+ }), children);
3484
+ });
3485
+ Heading.className = CLASSNAME$9;
3486
+ Heading.defaultProps = DEFAULT_PROPS$9;
3487
+ Heading.displayName = COMPONENT_NAME$9;
2932
3488
 
2933
3489
  /**
2934
3490
  * Component style.
@@ -2968,10 +3524,10 @@ const StyledLink = styled.a`
2968
3524
  }
2969
3525
  `;
2970
3526
 
2971
- const _excluded$5 = ["children", "className", "href", "isDisabled"];
2972
- const COMPONENT_NAME$5 = 'RedSiftLink';
2973
- const CLASSNAME$5 = 'redsift-link';
2974
- const DEFAULT_PROPS$5 = {};
3527
+ const _excluded$8 = ["children", "className", "href", "isDisabled"];
3528
+ const COMPONENT_NAME$8 = 'RedSiftLink';
3529
+ const CLASSNAME$8 = 'redsift-link';
3530
+ const DEFAULT_PROPS$8 = {};
2975
3531
 
2976
3532
  /**
2977
3533
  * The Link is a semantic link that looks like a link.
@@ -2988,7 +3544,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
2988
3544
  href,
2989
3545
  isDisabled
2990
3546
  } = props,
2991
- forwardedProps = _objectWithoutProperties(props, _excluded$5);
3547
+ forwardedProps = _objectWithoutProperties(props, _excluded$8);
2992
3548
  return /*#__PURE__*/React.createElement(StyledLink, _extends({
2993
3549
  "aria-disabled": isDisabled,
2994
3550
  role: "link",
@@ -3000,14 +3556,14 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
3000
3556
  ref: ref
3001
3557
  }), children);
3002
3558
  });
3003
- Link.className = CLASSNAME$5;
3004
- Link.defaultProps = DEFAULT_PROPS$5;
3005
- Link.displayName = COMPONENT_NAME$5;
3559
+ Link.className = CLASSNAME$8;
3560
+ Link.defaultProps = DEFAULT_PROPS$8;
3561
+ Link.displayName = COMPONENT_NAME$8;
3006
3562
 
3007
- const _excluded$4 = ["children", "className", "disabled", "isDisabled", "onPress"];
3008
- const COMPONENT_NAME$4 = 'RedSiftLinkButton';
3009
- const CLASSNAME$4 = 'redsift-link-button';
3010
- const DEFAULT_PROPS$4 = {};
3563
+ const _excluded$7 = ["children", "className", "disabled", "isDisabled", "onPress"];
3564
+ const COMPONENT_NAME$7 = 'RedSiftLinkButton';
3565
+ const CLASSNAME$7 = 'redsift-link-button';
3566
+ const DEFAULT_PROPS$7 = {};
3011
3567
 
3012
3568
  /**
3013
3569
  * The LinkButton is a semantic button that looks like a link.
@@ -3031,7 +3587,7 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
3031
3587
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3032
3588
  onPress
3033
3589
  } = props,
3034
- forwardedProps = _objectWithoutProperties(props, _excluded$4);
3590
+ forwardedProps = _objectWithoutProperties(props, _excluded$7);
3035
3591
  return /*#__PURE__*/React.createElement(StyledLink, _extends({
3036
3592
  as: "button"
3037
3593
  }, forwardedProps, buttonProps, {
@@ -3044,9 +3600,269 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
3044
3600
  ref: buttonRef
3045
3601
  }), children);
3046
3602
  });
3047
- LinkButton.className = CLASSNAME$4;
3048
- LinkButton.defaultProps = DEFAULT_PROPS$4;
3049
- LinkButton.displayName = COMPONENT_NAME$4;
3603
+ LinkButton.className = CLASSNAME$7;
3604
+ LinkButton.defaultProps = DEFAULT_PROPS$7;
3605
+ LinkButton.displayName = COMPONENT_NAME$7;
3606
+
3607
+ /**
3608
+ * Component variant.
3609
+ */
3610
+ const TextVariant = {
3611
+ body: 'body',
3612
+ button: 'button',
3613
+ caption: 'caption',
3614
+ inherit: 'inherit',
3615
+ subtitle1: 'subtitle1'
3616
+ };
3617
+ const TextComponent = {
3618
+ p: 'p',
3619
+ b: 'b',
3620
+ i: 'i',
3621
+ u: 'u',
3622
+ abbr: 'abbr',
3623
+ cite: 'cite',
3624
+ del: 'del',
3625
+ em: 'em',
3626
+ ins: 'ins',
3627
+ kbd: 'kbd',
3628
+ mark: 'mark',
3629
+ s: 's',
3630
+ samp: 'samp',
3631
+ sub: 'sub',
3632
+ sup: 'sup'
3633
+ };
3634
+
3635
+ /**
3636
+ * Component style.
3637
+ */
3638
+ const StyledText = styled.span`
3639
+ ${_ref => {
3640
+ let {
3641
+ $color
3642
+ } = _ref;
3643
+ return $color && [...Object.keys(ColorPalette), ...Object.keys(ProductColorPalette)].indexOf($color) !== -1 ? css`
3644
+ color: var(--redsift-color-${$color}-primary);
3645
+ ` : Object.keys(NeutralColorPalette).indexOf($color) !== -1 ? css`
3646
+ color: var(--redsift-color-neutral-${$color});
3647
+ ` : css`
3648
+ color: ${$color || css`inherit`};
3649
+ `;
3650
+ }}
3651
+
3652
+ ${_ref2 => {
3653
+ let {
3654
+ $fontFamily,
3655
+ $fontSize,
3656
+ $variant
3657
+ } = _ref2;
3658
+ return !$variant ? css`
3659
+ ${$fontFamily ? css`
3660
+ font-family: ${$fontFamily};
3661
+ ` : ''}
3662
+ ${$fontSize ? css`
3663
+ font-size: ${$fontSize};
3664
+ ` : ''}
3665
+ ` : $variant === TextVariant.inherit ? css`
3666
+ font-family: ${$fontFamily ? $fontFamily : css`inherit`};
3667
+ font-size: ${$fontSize ? $fontSize : css`inherit`};
3668
+ font-weight: inherit;
3669
+ line-height: inherit;
3670
+ text-transform: inherit;
3671
+ ` : css`
3672
+ font-family: ${$fontFamily ? $fontFamily : css`var(--redsift-typography-${$variant}-font-family)`};
3673
+ font-size: ${$fontSize ? $fontSize : css`var(--redsift-typography-${$variant}-font-size)`};
3674
+ font-weight: var(--redsift-typography-${$variant}-font-weight);
3675
+ line-height: var(--redsift-typography-${$variant}-line-height);
3676
+ text-transform: var(--redsift-typography-${$variant}-text-transform);
3677
+ `;
3678
+ }}
3679
+
3680
+ ${_ref3 => {
3681
+ let {
3682
+ $noWrap
3683
+ } = _ref3;
3684
+ return $noWrap ? css`
3685
+ overflow: hidden;
3686
+ text-overflow: ellipsis;
3687
+ white-space: nowrap;
3688
+ ` : css`
3689
+ word-break: break-word;
3690
+ `;
3691
+ }}
3692
+ `;
3693
+
3694
+ /**
3695
+ * Component style.
3696
+ */
3697
+ const StyledNumber = styled(StyledText)`
3698
+ font-family: var(--redsift-typography-font-family-source-code-pro);
3699
+ `;
3700
+
3701
+ const _excluded$6 = ["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"];
3702
+ const COMPONENT_NAME$6 = 'RedSiftNumber';
3703
+ const CLASSNAME$6 = 'redsift-number';
3704
+ const DEFAULT_PROPS$6 = {
3705
+ compactDisplay: 'short',
3706
+ currencyDisplay: 'symbol',
3707
+ currencySign: 'standard',
3708
+ localeMatcher: 'best fit',
3709
+ notation: 'standard',
3710
+ signDisplay: 'auto',
3711
+ type: 'decimal',
3712
+ unitDisplay: 'short',
3713
+ roundingMode: 'halfExpand',
3714
+ roundingPriority: 'auto',
3715
+ trailingZeroDisplay: 'auto',
3716
+ minimumIntegerDigits: 1,
3717
+ minimumFractionDigits: 0,
3718
+ minimumSignificantDigits: 1,
3719
+ maximumSignificantDigits: 21
3720
+ };
3721
+
3722
+ /**
3723
+ * The Number component.
3724
+ */
3725
+ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
3726
+ const {
3727
+ as,
3728
+ className,
3729
+ color,
3730
+ compactDisplay,
3731
+ currency,
3732
+ currencyDisplay,
3733
+ currencySign,
3734
+ fontSize,
3735
+ localeMatcher,
3736
+ maximumFractionDigits,
3737
+ maximumSignificantDigits,
3738
+ minimumFractionDigits,
3739
+ minimumIntegerDigits,
3740
+ minimumSignificantDigits,
3741
+ notation,
3742
+ noWrap,
3743
+ numberingSystem,
3744
+ roundingIncrement,
3745
+ roundingMode,
3746
+ roundingPriority,
3747
+ signDisplay,
3748
+ trailingZeroDisplay,
3749
+ type,
3750
+ unit,
3751
+ unitDisplay,
3752
+ useGrouping,
3753
+ value,
3754
+ variant
3755
+ } = props,
3756
+ forwardedProps = _objectWithoutProperties(props, _excluded$6);
3757
+ const formatter = useNumberFormatter({
3758
+ compactDisplay,
3759
+ currency,
3760
+ currencyDisplay,
3761
+ currencySign,
3762
+ localeMatcher,
3763
+ maximumFractionDigits,
3764
+ maximumSignificantDigits,
3765
+ minimumFractionDigits,
3766
+ minimumIntegerDigits,
3767
+ minimumSignificantDigits,
3768
+ notation,
3769
+ numberingSystem,
3770
+ // @ts-ignore
3771
+ roundingIncrement,
3772
+ // @ts-ignore
3773
+ roundingMode,
3774
+ // @ts-ignore
3775
+ roundingPriority,
3776
+ signDisplay,
3777
+ style: type,
3778
+ // @ts-ignore
3779
+ trailingZeroDisplay,
3780
+ unit,
3781
+ unitDisplay,
3782
+ useGrouping
3783
+ });
3784
+ return /*#__PURE__*/React.createElement(StyledNumber, _extends({
3785
+ as: as
3786
+ }, forwardedProps, {
3787
+ className: classNames(Number$1.className, className),
3788
+ ref: ref,
3789
+ $color: color,
3790
+ $fontSize: fontSize,
3791
+ $noWrap: noWrap,
3792
+ $variant: variant
3793
+ }), formatter.format(value));
3794
+ });
3795
+ Number$1.className = CLASSNAME$6;
3796
+ Number$1.defaultProps = DEFAULT_PROPS$6;
3797
+ Number$1.displayName = COMPONENT_NAME$6;
3798
+
3799
+ /**
3800
+ * Component style.
3801
+ */
3802
+ const StyledPill = styled.div`
3803
+ ${_ref => {
3804
+ let {
3805
+ $color
3806
+ } = _ref;
3807
+ return css`
3808
+ ${$color === 'black' ? 'background-color: var(--redsift-color-neutral-black);' : $color === 'white' ? 'background-color: var(--redsift-color-neutral-white);' : $color === 'error' ? 'background-color: var(--redsift-data-viz-color-red-default);' : $color === 'warning' ? 'background-color: var(--redsift-data-viz-color-orange-default);' : $color === 'success' ? 'background-color: var(--redsift-data-viz-color-green-default);' : `background-color: var(--redsift-data-viz-color-${$color}-default);`}
3809
+
3810
+ &,
3811
+ .redsift-icon {
3812
+ color: var(
3813
+ --redsift-color-neutral-${$color === 'black' ? 'white' : 'black'}
3814
+ );
3815
+ }
3816
+ `;
3817
+ }}}
3818
+
3819
+ padding: 0 6.5px;
3820
+ text-align: center;
3821
+ width: fit-content;
3822
+ word-break: ${_ref2 => {
3823
+ let {
3824
+ $autoBreak
3825
+ } = _ref2;
3826
+ return $autoBreak ? 'break-word' : 'normal';
3827
+ }};
3828
+
3829
+ &,
3830
+ .redsift-icon {
3831
+ font-family: var(--redsift-typography-pill-font-family);
3832
+ font-size: var(--redsift-typography-pill-font-size);
3833
+ font-weight: var(--redsift-typography-pill-font-weight);
3834
+ line-height: var(--redsift-typography-pill-line-height);
3835
+ }
3836
+ `;
3837
+
3838
+ const _excluded$5 = ["autoBreak", "children", "className", "color"];
3839
+ const COMPONENT_NAME$5 = 'RedSiftPill';
3840
+ const CLASSNAME$5 = 'redsift-badge';
3841
+ const DEFAULT_PROPS$5 = {
3842
+ color: DataVizColorPalette.blue
3843
+ };
3844
+
3845
+ /**
3846
+ * The Pill component.
3847
+ */
3848
+ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
3849
+ const {
3850
+ autoBreak,
3851
+ children,
3852
+ className,
3853
+ color
3854
+ } = props,
3855
+ forwardedProps = _objectWithoutProperties(props, _excluded$5);
3856
+ return /*#__PURE__*/React.createElement(StyledPill, _extends({}, forwardedProps, {
3857
+ $autoBreak: autoBreak,
3858
+ $color: color,
3859
+ className: classNames(Pill.className, className),
3860
+ ref: ref
3861
+ }), children);
3862
+ });
3863
+ Pill.className = CLASSNAME$5;
3864
+ Pill.defaultProps = DEFAULT_PROPS$5;
3865
+ Pill.displayName = COMPONENT_NAME$5;
3050
3866
 
3051
3867
  /**
3052
3868
  * Context props.
@@ -3082,6 +3898,7 @@ const StyledRadioGroup = styled.div`
3082
3898
  div.redsift-radio-group-boxes {
3083
3899
  display: flex;
3084
3900
  flex-direction: row;
3901
+ flex-wrap: wrap;
3085
3902
  }
3086
3903
  `;
3087
3904
  }}
@@ -3137,10 +3954,10 @@ const StyledRadioGroup = styled.div`
3137
3954
  }
3138
3955
  `;
3139
3956
 
3140
- const _excluded$3 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
3141
- const COMPONENT_NAME$3 = 'RedSiftRadioGroup';
3142
- const CLASSNAME$3 = 'redsift-radio-group';
3143
- const DEFAULT_PROPS$3 = {
3957
+ const _excluded$4 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
3958
+ const COMPONENT_NAME$4 = 'RedSiftRadioGroup';
3959
+ const CLASSNAME$4 = 'redsift-radio-group';
3960
+ const DEFAULT_PROPS$4 = {
3144
3961
  color: ColorPalette.default,
3145
3962
  orientation: RadioGroupOrientation.vertical
3146
3963
  };
@@ -3165,7 +3982,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
3165
3982
  possibleValues,
3166
3983
  value
3167
3984
  } = props,
3168
- forwardedProps = _objectWithoutProperties(props, _excluded$3);
3985
+ forwardedProps = _objectWithoutProperties(props, _excluded$4);
3169
3986
  const [selectedValue, setValue] = useState(value || defaultValue || '');
3170
3987
  useEffect(() => {
3171
3988
  if (value) {
@@ -3207,9 +4024,9 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
3207
4024
  className: `${RadioGroup.className}-description`
3208
4025
  }, description));
3209
4026
  });
3210
- RadioGroup.className = CLASSNAME$3;
3211
- RadioGroup.defaultProps = DEFAULT_PROPS$3;
3212
- RadioGroup.displayName = COMPONENT_NAME$3;
4027
+ RadioGroup.className = CLASSNAME$4;
4028
+ RadioGroup.defaultProps = DEFAULT_PROPS$4;
4029
+ RadioGroup.displayName = COMPONENT_NAME$4;
3213
4030
 
3214
4031
  /**
3215
4032
  * Component style.
@@ -3318,10 +4135,10 @@ const StyledRadio = styled.label`
3318
4135
  }}
3319
4136
  `;
3320
4137
 
3321
- const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
3322
- const COMPONENT_NAME$2 = 'RedSiftRadio';
3323
- const CLASSNAME$2 = 'redsift-radio';
3324
- const DEFAULT_PROPS$2 = {};
4138
+ const _excluded$3 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
4139
+ const COMPONENT_NAME$3 = 'RedSiftRadio';
4140
+ const CLASSNAME$3 = 'redsift-radio';
4141
+ const DEFAULT_PROPS$3 = {};
3325
4142
 
3326
4143
  /**
3327
4144
  * The Radio component.
@@ -3329,6 +4146,7 @@ const DEFAULT_PROPS$2 = {};
3329
4146
  * Can be used as controlled or uncontrolled.
3330
4147
  */
3331
4148
  const Radio = /*#__PURE__*/forwardRef((props, ref) => {
4149
+ var _isDisabled, _isReadOnly, _ref;
3332
4150
  const groupState = useContext(RadioGroupContext);
3333
4151
  let {
3334
4152
  'aria-label': ariaLabel,
@@ -3348,19 +4166,19 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
3348
4166
  onChange,
3349
4167
  value
3350
4168
  } = props,
3351
- forwardedProps = _objectWithoutProperties(props, _excluded$2);
4169
+ forwardedProps = _objectWithoutProperties(props, _excluded$3);
3352
4170
  const {
3353
4171
  isFocusVisible,
3354
4172
  focusProps
3355
4173
  } = useFocusRing({
3356
4174
  autoFocus
3357
4175
  });
3358
- isDisabled = isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled);
3359
- isReadOnly = isReadOnly || (groupState === null || groupState === void 0 ? void 0 : groupState.isReadOnly);
3360
- const [isSelected, setSelected] = useState(propsIsSelected || defaultSelected || (groupState === null || groupState === void 0 ? void 0 : groupState.value.includes(value)));
4176
+ isDisabled = (_isDisabled = isDisabled) !== null && _isDisabled !== void 0 ? _isDisabled : groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled;
4177
+ isReadOnly = (_isReadOnly = isReadOnly) !== null && _isReadOnly !== void 0 ? _isReadOnly : groupState === null || groupState === void 0 ? void 0 : groupState.isReadOnly;
4178
+ 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));
3361
4179
  useEffect(() => {
3362
4180
  if (groupState) {
3363
- setSelected(groupState.value.includes(value));
4181
+ setSelected(groupState.value === value);
3364
4182
  }
3365
4183
  }, [groupState === null || groupState === void 0 ? void 0 : groupState.value]);
3366
4184
  warnIfNoAccessibleLabelFound(props, [children]);
@@ -3418,9 +4236,9 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
3418
4236
  className: "label"
3419
4237
  }, children) : null);
3420
4238
  });
3421
- Radio.className = CLASSNAME$2;
3422
- Radio.defaultProps = DEFAULT_PROPS$2;
3423
- Radio.displayName = COMPONENT_NAME$2;
4239
+ Radio.className = CLASSNAME$3;
4240
+ Radio.defaultProps = DEFAULT_PROPS$3;
4241
+ Radio.displayName = COMPONENT_NAME$3;
3424
4242
 
3425
4243
  /**
3426
4244
  * Component variant.
@@ -3503,10 +4321,10 @@ const StyledShield = styled.div`
3503
4321
  }}
3504
4322
  `;
3505
4323
 
3506
- const _excluded$1 = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
3507
- const COMPONENT_NAME$1 = 'RedSiftShield';
3508
- const CLASSNAME$1 = 'redsift-shield';
3509
- const DEFAULT_PROPS$1 = {
4324
+ const _excluded$2 = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
4325
+ const COMPONENT_NAME$2 = 'RedSiftShield';
4326
+ const CLASSNAME$2 = 'redsift-shield';
4327
+ const DEFAULT_PROPS$2 = {
3510
4328
  variant: ShieldVariant.success
3511
4329
  };
3512
4330
  const getVariant = variant => {
@@ -3592,7 +4410,7 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
3592
4410
  isReversed,
3593
4411
  variant
3594
4412
  } = props,
3595
- forwardedProps = _objectWithoutProperties(props, _excluded$1);
4413
+ forwardedProps = _objectWithoutProperties(props, _excluded$2);
3596
4414
  const color = getVariant(variant).color;
3597
4415
  const icon = getVariant(variant).icon;
3598
4416
  return /*#__PURE__*/React.createElement(StyledShield, _extends({}, forwardedProps, {
@@ -3624,9 +4442,24 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
3624
4442
  className: "icon"
3625
4443
  })));
3626
4444
  });
3627
- Shield.className = CLASSNAME$1;
3628
- Shield.defaultProps = DEFAULT_PROPS$1;
3629
- Shield.displayName = COMPONENT_NAME$1;
4445
+ Shield.className = CLASSNAME$2;
4446
+ Shield.defaultProps = DEFAULT_PROPS$2;
4447
+ Shield.displayName = COMPONENT_NAME$2;
4448
+
4449
+ var loading$1 = "Loading...";
4450
+ var enUS = {
4451
+ loading: loading$1
4452
+ };
4453
+
4454
+ var loading = "Chargement...";
4455
+ var frFR = {
4456
+ loading: loading
4457
+ };
4458
+
4459
+ var intlMessages = {
4460
+ 'en-US': enUS,
4461
+ 'fr-FR': frFR
4462
+ };
3630
4463
 
3631
4464
  /**
3632
4465
  * Component size.
@@ -3662,7 +4495,7 @@ var spinnerTools = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My
3662
4495
 
3663
4496
  var spinnerWebsite = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzAwNzllMSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwMDc5ZTEiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
3664
4497
 
3665
- const _excluded = ["aria-hidden", "aria-label", "className", "color", "size"];
4498
+ const _excluded$1 = ["aria-hidden", "aria-label", "className", "color", "size"];
3666
4499
  const colorToFile = {
3667
4500
  default: spinnerDefault,
3668
4501
  hardenize: spinnerHardenize,
@@ -3674,9 +4507,9 @@ const colorToFile = {
3674
4507
  tools: spinnerTools,
3675
4508
  website: spinnerWebsite
3676
4509
  };
3677
- const COMPONENT_NAME = 'RedSiftSpinner';
3678
- const CLASSNAME = 'redsift-shield';
3679
- const DEFAULT_PROPS = {
4510
+ const COMPONENT_NAME$1 = 'RedSiftSpinner';
4511
+ const CLASSNAME$1 = 'redsift-shield';
4512
+ const DEFAULT_PROPS$1 = {
3680
4513
  color: ColorPalette.default,
3681
4514
  size: SpinnerSize.medium
3682
4515
  };
@@ -3717,13 +4550,14 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
3717
4550
  color,
3718
4551
  size
3719
4552
  } = props,
3720
- forwardedProps = _objectWithoutProperties(props, _excluded);
4553
+ forwardedProps = _objectWithoutProperties(props, _excluded$1);
3721
4554
  const {
3722
4555
  width,
3723
4556
  height
3724
4557
  } = sizeToDimension(size);
4558
+ const stringFormatter = useLocalizedStringFormatter(intlMessages);
3725
4559
  return /*#__PURE__*/React.createElement(StyledSpinner, _extends({
3726
- alt: "Loading..."
4560
+ alt: stringFormatter.format('loading')
3727
4561
  }, forwardedProps, {
3728
4562
  "aria-hidden": ariaLabel ? ariaHidden ? ariaHidden : undefined : true,
3729
4563
  "aria-label": ariaLabel,
@@ -3736,9 +4570,47 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
3736
4570
  $size: size
3737
4571
  }));
3738
4572
  });
3739
- Spinner.className = CLASSNAME;
3740
- Spinner.defaultProps = DEFAULT_PROPS;
3741
- Spinner.displayName = COMPONENT_NAME;
4573
+ Spinner.className = CLASSNAME$1;
4574
+ Spinner.defaultProps = DEFAULT_PROPS$1;
4575
+ Spinner.displayName = COMPONENT_NAME$1;
4576
+
4577
+ const _excluded = ["as", "children", "className", "color", "fontFamily", "fontSize", "noWrap", "variant"];
4578
+ const COMPONENT_NAME = 'RedSiftText';
4579
+ const CLASSNAME = 'redsift-text';
4580
+ const DEFAULT_PROPS = {
4581
+ fontFamily: FontFamily.raleway
4582
+ };
4583
+
4584
+ /**
4585
+ * The Text component.
4586
+ */
4587
+ const Text = /*#__PURE__*/forwardRef((props, ref) => {
4588
+ const {
4589
+ as,
4590
+ children,
4591
+ className,
4592
+ color,
4593
+ fontFamily,
4594
+ fontSize,
4595
+ noWrap,
4596
+ variant
4597
+ } = props,
4598
+ forwardedProps = _objectWithoutProperties(props, _excluded);
4599
+ return /*#__PURE__*/React.createElement(StyledText, _extends({
4600
+ as: as
4601
+ }, forwardedProps, {
4602
+ className: classNames(Text.className, className),
4603
+ ref: ref,
4604
+ $color: color,
4605
+ $fontFamily: fontFamily,
4606
+ $fontSize: fontSize,
4607
+ $noWrap: noWrap,
4608
+ $variant: variant
4609
+ }), children);
4610
+ });
4611
+ Text.className = CLASSNAME;
4612
+ Text.defaultProps = DEFAULT_PROPS;
4613
+ Text.displayName = COMPONENT_NAME;
3742
4614
 
3743
- export { AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, Icon, IconButton, IconButtonVariant, IconSize, Link, LinkButton, 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, 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, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Spinner, SpinnerSize, StyledButton, StyledLink, useAppSidePanel, useSideNavigationMenuBar, warnIfNoAccessibleLabelFound };
4615
+ export { AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, DataVizColorPalette, Flexbox, FlexboxAlignContent, FlexboxAlignItems, FlexboxAlignSelf, FlexboxFlexDirection, FlexboxFlexWrap, FlexboxJustifyContent, FontFamily, Grid, GridAlignContent, GridAlignItems, GridItem, GridItemAlignSelf, GridItemJustifySelf, GridJustifyContent, GridJustifyItems, Heading, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, 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, 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, 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, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Spinner, SpinnerSize, StyledButton, StyledLink, Text, TextComponent, TextVariant, useAppSidePanel, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
3744
4616
  //# sourceMappingURL=index.js.map