@redsift/design-system 10.3.0-muiv5-alpha.3 → 10.3.0-muiv5-alpha.5

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.
Files changed (3) hide show
  1. package/index.js +226 -215
  2. package/index.js.map +1 -1
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -5278,7 +5278,9 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
5278
5278
  $isHovered: isHovered,
5279
5279
  $theme: theme
5280
5280
  }, children)
5281
- }, /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({}, forwardedProps, {
5281
+ }, /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({
5282
+ type: "button"
5283
+ }, forwardedProps, {
5282
5284
  $color: color,
5283
5285
  $fullWidth: fullWidth,
5284
5286
  $isActive: isActive,
@@ -5376,7 +5378,9 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
5376
5378
  $isHovered: isHovered,
5377
5379
  $theme: theme
5378
5380
  }, children)
5379
- }, /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps, {
5381
+ }, /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({
5382
+ type: "button"
5383
+ }, forwardedProps, {
5380
5384
  $color: color,
5381
5385
  $isActive: isActive,
5382
5386
  $isDisabled: isDisabled,
@@ -7909,7 +7913,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
7909
7913
  const theme = useTheme(propsTheme);
7910
7914
  return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
7911
7915
  as: as || 'a',
7912
- role: "link",
7916
+ role: !isCurrent ? 'link' : undefined,
7913
7917
  tabIndex: !isDisabled && !isCurrent ? 0 : undefined
7914
7918
  }, forwardedProps, {
7915
7919
  $isCurrent: isCurrent,
@@ -11700,10 +11704,125 @@ const StyledPill = styled.div`
11700
11704
  }
11701
11705
  `;
11702
11706
 
11703
- const _excluded$l = ["autoBreak", "borderColor", "children", "className", "color", "disabledColor", "hoverColor", "isDisabled", "size", "theme"];
11704
- const COMPONENT_NAME$k = 'Pill';
11705
- const CLASSNAME$k = 'redsift-pill';
11706
- const DEFAULT_PROPS$k = {};
11707
+ /**
11708
+ * Component style.
11709
+ */
11710
+ const StyledNumber = styled(StyledText)`
11711
+ font-family: var(--redsift-typography-font-family-poppins);
11712
+ `;
11713
+
11714
+ const _excluded$l = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "fontWeight", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "theme", "value", "variant"];
11715
+ const COMPONENT_NAME$k = 'Number';
11716
+ const CLASSNAME$k = 'redsift-number';
11717
+ const DEFAULT_PROPS$k = {
11718
+ compactDisplay: 'short',
11719
+ currencyDisplay: 'symbol',
11720
+ currencySign: 'standard',
11721
+ localeMatcher: 'best fit',
11722
+ notation: 'standard',
11723
+ signDisplay: 'auto',
11724
+ type: 'decimal',
11725
+ unitDisplay: 'short',
11726
+ roundingMode: 'halfExpand',
11727
+ roundingPriority: 'auto',
11728
+ trailingZeroDisplay: 'auto'
11729
+ };
11730
+
11731
+ /**
11732
+ * The Number component.
11733
+ */
11734
+ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
11735
+ const {
11736
+ as,
11737
+ className,
11738
+ color,
11739
+ compactDisplay,
11740
+ currency,
11741
+ currencyDisplay,
11742
+ currencySign,
11743
+ fontSize,
11744
+ fontWeight,
11745
+ lineHeight,
11746
+ localeMatcher,
11747
+ maximumFractionDigits,
11748
+ maximumSignificantDigits,
11749
+ minimumFractionDigits,
11750
+ minimumIntegerDigits,
11751
+ minimumSignificantDigits,
11752
+ notation,
11753
+ noWrap,
11754
+ numberingSystem,
11755
+ roundingIncrement,
11756
+ roundingMode,
11757
+ roundingPriority,
11758
+ signDisplay,
11759
+ trailingZeroDisplay,
11760
+ type,
11761
+ unit,
11762
+ unitDisplay,
11763
+ useGrouping,
11764
+ theme: propsTheme,
11765
+ value,
11766
+ variant
11767
+ } = props,
11768
+ forwardedProps = _objectWithoutProperties(props, _excluded$l);
11769
+ const formatter = useNumberFormatter(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
11770
+ compactDisplay,
11771
+ currency,
11772
+ currencyDisplay,
11773
+ currencySign,
11774
+ localeMatcher
11775
+ }, maximumFractionDigits !== undefined && {
11776
+ maximumFractionDigits
11777
+ }), maximumSignificantDigits !== undefined && {
11778
+ maximumSignificantDigits
11779
+ }), minimumFractionDigits !== undefined && {
11780
+ minimumFractionDigits
11781
+ }), minimumIntegerDigits !== undefined && {
11782
+ minimumIntegerDigits
11783
+ }), minimumSignificantDigits !== undefined && {
11784
+ minimumSignificantDigits
11785
+ }), {}, {
11786
+ notation,
11787
+ numberingSystem,
11788
+ // @ts-ignore
11789
+ roundingIncrement,
11790
+ // @ts-ignore
11791
+ roundingMode,
11792
+ // @ts-ignore
11793
+ roundingPriority,
11794
+ signDisplay,
11795
+ style: type,
11796
+ // @ts-ignore
11797
+ trailingZeroDisplay,
11798
+ unit,
11799
+ unitDisplay,
11800
+ useGrouping
11801
+ }));
11802
+ const theme = useTheme(propsTheme);
11803
+ return /*#__PURE__*/React__default.createElement(StyledNumber, _extends$1({
11804
+ as: as
11805
+ }, forwardedProps, {
11806
+ $as: as,
11807
+ className: classNames(Number$1.className, className),
11808
+ ref: ref,
11809
+ $color: color,
11810
+ $lineHeight: lineHeight,
11811
+ $fontSize: fontSize,
11812
+ $fontWeight: fontWeight,
11813
+ $noWrap: noWrap,
11814
+ $theme: theme,
11815
+ $variant: variant
11816
+ }), formatter.format(value));
11817
+ });
11818
+ Number$1.className = CLASSNAME$k;
11819
+ Number$1.defaultProps = DEFAULT_PROPS$k;
11820
+ Number$1.displayName = COMPONENT_NAME$k;
11821
+
11822
+ const _excluded$k = ["autoBreak", "borderColor", "children", "className", "color", "disabledColor", "hoverColor", "isDisabled", "size", "theme"];
11823
+ const COMPONENT_NAME$j = 'Pill';
11824
+ const CLASSNAME$j = 'redsift-pill';
11825
+ const DEFAULT_PROPS$j = {};
11707
11826
 
11708
11827
  /**
11709
11828
  * The Pill component.
@@ -11721,7 +11840,7 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
11721
11840
  size: propsSize,
11722
11841
  theme: propsTheme
11723
11842
  } = props,
11724
- forwardedProps = _objectWithoutProperties(props, _excluded$l);
11843
+ forwardedProps = _objectWithoutProperties(props, _excluded$k);
11725
11844
  const theme = useTheme(propsTheme);
11726
11845
  const color = propsColor || PresentationColorPalette.blue;
11727
11846
  const size = propsSize || PillSize.large;
@@ -11738,7 +11857,6 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
11738
11857
  }));
11739
11858
  } else if (isComponent('IconButton')(child) || isComponent('Button')(child) || isComponent('ButtonLink')(child)) {
11740
11859
  var _key;
11741
- console.log(child.props.color, pickTextColorBasedOnBgColorAdvanced(color, 'white', 'black'));
11742
11860
  childArray.push( /*#__PURE__*/React__default.cloneElement(child, {
11743
11861
  key: (_key = child.key) !== null && _key !== void 0 ? _key : index,
11744
11862
  className: currentClassName,
@@ -11756,6 +11874,12 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
11756
11874
  key: index,
11757
11875
  className: currentClassName
11758
11876
  }, child));
11877
+ } else if (typeof child === 'number') {
11878
+ childArray.push( /*#__PURE__*/React__default.createElement(Number$1, {
11879
+ key: index,
11880
+ className: currentClassName,
11881
+ value: child
11882
+ }));
11759
11883
  } else {
11760
11884
  childArray.push(child);
11761
11885
  }
@@ -11773,9 +11897,9 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
11773
11897
  ref: ref
11774
11898
  }), childArray);
11775
11899
  });
11776
- Pill.className = CLASSNAME$k;
11777
- Pill.defaultProps = DEFAULT_PROPS$k;
11778
- Pill.displayName = COMPONENT_NAME$k;
11900
+ Pill.className = CLASSNAME$j;
11901
+ Pill.defaultProps = DEFAULT_PROPS$j;
11902
+ Pill.displayName = COMPONENT_NAME$j;
11779
11903
 
11780
11904
  /**
11781
11905
  * Component style.
@@ -11807,10 +11931,10 @@ const StyledDetailedCardSectionItem = styled.div`
11807
11931
  }
11808
11932
  `;
11809
11933
 
11810
- const _excluded$k = ["children", "className", "description", "descriptionProps", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
11811
- const COMPONENT_NAME$j = 'DetailedCardSectionItem';
11812
- const CLASSNAME$j = 'redsift-detailed-card-section-item';
11813
- const DEFAULT_PROPS$j = {};
11934
+ const _excluded$j = ["children", "className", "description", "descriptionProps", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
11935
+ const COMPONENT_NAME$i = 'DetailedCardSectionItem';
11936
+ const CLASSNAME$i = 'redsift-detailed-card-section-item';
11937
+ const DEFAULT_PROPS$i = {};
11814
11938
 
11815
11939
  /**
11816
11940
  * The DetailedCardSectionItems component.
@@ -11828,7 +11952,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
11828
11952
  pillProps,
11829
11953
  shield
11830
11954
  } = props,
11831
- forwardedProps = _objectWithoutProperties(props, _excluded$k);
11955
+ forwardedProps = _objectWithoutProperties(props, _excluded$j);
11832
11956
  return /*#__PURE__*/React__default.createElement(StyledDetailedCardSectionItem, _extends$1({}, forwardedProps, {
11833
11957
  className: classNames(DetailedCardSectionItem.className, className),
11834
11958
  ref: ref
@@ -11856,9 +11980,9 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
11856
11980
  className: `${DetailedCardSectionItem.className}-header__pill`
11857
11981
  }, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, descriptionProps, description) : description)) : null), children);
11858
11982
  });
11859
- DetailedCardSectionItem.className = CLASSNAME$j;
11860
- DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$j;
11861
- DetailedCardSectionItem.displayName = COMPONENT_NAME$j;
11983
+ DetailedCardSectionItem.className = CLASSNAME$i;
11984
+ DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$i;
11985
+ DetailedCardSectionItem.displayName = COMPONENT_NAME$i;
11862
11986
 
11863
11987
  /*!
11864
11988
  * tabbable 6.1.2
@@ -15577,9 +15701,9 @@ const StyledTooltipContent = styled.div`
15577
15701
  }}
15578
15702
  `;
15579
15703
 
15580
- const COMPONENT_NAME$i = 'TooltipContent';
15581
- const CLASSNAME$i = 'redsift-tooltip-content';
15582
- const DEFAULT_PROPS$i = {};
15704
+ const COMPONENT_NAME$h = 'TooltipContent';
15705
+ const CLASSNAME$h = 'redsift-tooltip-content';
15706
+ const DEFAULT_PROPS$h = {};
15583
15707
 
15584
15708
  /**
15585
15709
  * The TooltipContent component.
@@ -15644,13 +15768,13 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
15644
15768
  className: `${TooltipContent.className}__inner`
15645
15769
  }, children)));
15646
15770
  });
15647
- TooltipContent.className = CLASSNAME$i;
15648
- TooltipContent.defaultProps = DEFAULT_PROPS$i;
15649
- TooltipContent.displayName = COMPONENT_NAME$i;
15771
+ TooltipContent.className = CLASSNAME$h;
15772
+ TooltipContent.defaultProps = DEFAULT_PROPS$h;
15773
+ TooltipContent.displayName = COMPONENT_NAME$h;
15650
15774
 
15651
- const COMPONENT_NAME$h = 'TooltipTrigger';
15652
- const CLASSNAME$h = 'redsift-tooltip-trigger';
15653
- const DEFAULT_PROPS$h = {};
15775
+ const COMPONENT_NAME$g = 'TooltipTrigger';
15776
+ const CLASSNAME$g = 'redsift-tooltip-trigger';
15777
+ const DEFAULT_PROPS$g = {};
15654
15778
 
15655
15779
  /**
15656
15780
  * The TooltipTrigger component.
@@ -15685,9 +15809,9 @@ const TooltipTrigger = /*#__PURE__*/forwardRef((props, ref) => {
15685
15809
  ref: triggerRef
15686
15810
  }, getReferenceProps(props)), children);
15687
15811
  });
15688
- TooltipTrigger.className = CLASSNAME$h;
15689
- TooltipTrigger.defaultProps = DEFAULT_PROPS$h;
15690
- TooltipTrigger.displayName = COMPONENT_NAME$h;
15812
+ TooltipTrigger.className = CLASSNAME$g;
15813
+ TooltipTrigger.defaultProps = DEFAULT_PROPS$g;
15814
+ TooltipTrigger.displayName = COMPONENT_NAME$g;
15691
15815
 
15692
15816
  function useTooltip(_ref) {
15693
15817
  let {
@@ -15754,9 +15878,9 @@ function useTooltip(_ref) {
15754
15878
  }), [color, isOpen, handleOpen, interactions, data, arrowRef, tooltipId, triggerClassName]);
15755
15879
  }
15756
15880
 
15757
- const COMPONENT_NAME$g = 'Tooltip';
15758
- const CLASSNAME$g = 'redsift-tooltip';
15759
- const DEFAULT_PROPS$g = {
15881
+ const COMPONENT_NAME$f = 'Tooltip';
15882
+ const CLASSNAME$f = 'redsift-tooltip';
15883
+ const DEFAULT_PROPS$f = {
15760
15884
  delay: 500,
15761
15885
  placement: TooltipPlacement.top
15762
15886
  };
@@ -15798,9 +15922,9 @@ const BaseTooltip = props => {
15798
15922
  value: tooltip
15799
15923
  }, trigger && isComponent('TooltipTrigger')(trigger) ? trigger : null, content && isComponent('TooltipContent')(content) ? content : null));
15800
15924
  };
15801
- BaseTooltip.className = CLASSNAME$g;
15802
- BaseTooltip.defaultProps = DEFAULT_PROPS$g;
15803
- BaseTooltip.displayName = COMPONENT_NAME$g;
15925
+ BaseTooltip.className = CLASSNAME$f;
15926
+ BaseTooltip.defaultProps = DEFAULT_PROPS$f;
15927
+ BaseTooltip.displayName = COMPONENT_NAME$f;
15804
15928
  const Tooltip = Object.assign(BaseTooltip, {
15805
15929
  Trigger: TooltipTrigger,
15806
15930
  Content: TooltipContent
@@ -15814,10 +15938,10 @@ const useTooltipContext = () => {
15814
15938
  return context;
15815
15939
  };
15816
15940
 
15817
- const _excluded$j = ["areAllCollapsed", "bannerVariant", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield", "theme"];
15818
- const COMPONENT_NAME$f = 'DetailedCard';
15819
- const CLASSNAME$f = 'redsift-detailed-card';
15820
- const DEFAULT_PROPS$f = {
15941
+ const _excluded$i = ["areAllCollapsed", "bannerVariant", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield", "theme"];
15942
+ const COMPONENT_NAME$e = 'DetailedCard';
15943
+ const CLASSNAME$e = 'redsift-detailed-card';
15944
+ const DEFAULT_PROPS$e = {
15821
15945
  isCollapsible: true,
15822
15946
  width: '400px'
15823
15947
  };
@@ -15858,7 +15982,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
15858
15982
  shield,
15859
15983
  theme: propsTheme
15860
15984
  } = props,
15861
- forwardedProps = _objectWithoutProperties(props, _excluded$j);
15985
+ forwardedProps = _objectWithoutProperties(props, _excluded$i);
15862
15986
  const theme = useTheme(propsTheme);
15863
15987
  const format = useMessageFormatter(intlMessages$4);
15864
15988
  const isCollapsible = propsIsCollapsible && hasMultipleCollapsibleChildren(children);
@@ -15952,9 +16076,9 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
15952
16076
  return child;
15953
16077
  })));
15954
16078
  });
15955
- BaseDetailedCard.className = CLASSNAME$f;
15956
- BaseDetailedCard.defaultProps = DEFAULT_PROPS$f;
15957
- BaseDetailedCard.displayName = COMPONENT_NAME$f;
16079
+ BaseDetailedCard.className = CLASSNAME$e;
16080
+ BaseDetailedCard.defaultProps = DEFAULT_PROPS$e;
16081
+ BaseDetailedCard.displayName = COMPONENT_NAME$e;
15958
16082
  const DetailedCard = Object.assign(BaseDetailedCard, {
15959
16083
  Header: DetailedCardHeader,
15960
16084
  Section: DetailedCardSection,
@@ -16755,10 +16879,10 @@ const StyledGridItem = styled.div`
16755
16879
  ${baseInternalSpacing}
16756
16880
  `;
16757
16881
 
16758
- const _excluded$i = ["children", "className"];
16759
- const COMPONENT_NAME$e = 'GridItem';
16760
- const CLASSNAME$e = 'redsift-grid-item';
16761
- const DEFAULT_PROPS$e = {};
16882
+ const _excluded$h = ["children", "className"];
16883
+ const COMPONENT_NAME$d = 'GridItem';
16884
+ const CLASSNAME$d = 'redsift-grid-item';
16885
+ const DEFAULT_PROPS$d = {};
16762
16886
 
16763
16887
  /**
16764
16888
  * The GridItem component.
@@ -16768,20 +16892,20 @@ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
16768
16892
  children,
16769
16893
  className
16770
16894
  } = props,
16771
- forwardedProps = _objectWithoutProperties(props, _excluded$i);
16895
+ forwardedProps = _objectWithoutProperties(props, _excluded$h);
16772
16896
  return /*#__PURE__*/React__default.createElement(StyledGridItem, _extends$1({}, forwardedProps, {
16773
16897
  className: classNames(GridItem.className, className),
16774
16898
  ref: ref
16775
16899
  }), children);
16776
16900
  });
16777
- GridItem.className = CLASSNAME$e;
16778
- GridItem.defaultProps = DEFAULT_PROPS$e;
16779
- GridItem.displayName = COMPONENT_NAME$e;
16901
+ GridItem.className = CLASSNAME$d;
16902
+ GridItem.defaultProps = DEFAULT_PROPS$d;
16903
+ GridItem.displayName = COMPONENT_NAME$d;
16780
16904
 
16781
- const _excluded$h = ["children", "className", "divider", "gap", "theme"];
16782
- const COMPONENT_NAME$d = 'Grid';
16783
- const CLASSNAME$d = 'redsift-grid';
16784
- const DEFAULT_PROPS$d = {};
16905
+ const _excluded$g = ["children", "className", "divider", "gap", "theme"];
16906
+ const COMPONENT_NAME$c = 'Grid';
16907
+ const CLASSNAME$c = 'redsift-grid';
16908
+ const DEFAULT_PROPS$c = {};
16785
16909
 
16786
16910
  /**
16787
16911
  * The Grid component.
@@ -16794,7 +16918,7 @@ const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
16794
16918
  gap,
16795
16919
  theme: propsTheme
16796
16920
  } = props,
16797
- forwardedProps = _objectWithoutProperties(props, _excluded$h);
16921
+ forwardedProps = _objectWithoutProperties(props, _excluded$g);
16798
16922
  const theme = useTheme(propsTheme);
16799
16923
  return /*#__PURE__*/React__default.createElement(ThemeProvider, {
16800
16924
  value: {
@@ -16808,9 +16932,9 @@ const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
16808
16932
  $theme: theme
16809
16933
  }), children));
16810
16934
  });
16811
- BaseGrid.className = CLASSNAME$d;
16812
- BaseGrid.defaultProps = DEFAULT_PROPS$d;
16813
- BaseGrid.displayName = COMPONENT_NAME$d;
16935
+ BaseGrid.className = CLASSNAME$c;
16936
+ BaseGrid.defaultProps = DEFAULT_PROPS$c;
16937
+ BaseGrid.displayName = COMPONENT_NAME$c;
16814
16938
  const Grid = Object.assign(BaseGrid, {
16815
16939
  Item: GridItem
16816
16940
  });
@@ -16829,7 +16953,6 @@ const StyledItem = styled.div`
16829
16953
  align-items: center;
16830
16954
  background: none;
16831
16955
  border: none;
16832
- border-radius: 4px;
16833
16956
  box-sizing: border-box;
16834
16957
  display: inline-flex;
16835
16958
 
@@ -17096,11 +17219,11 @@ function useMenuItem(props) {
17096
17219
  };
17097
17220
  }
17098
17221
 
17099
- const _excluded$g = ["children", "className", "color", "defaultSelected", "id", "isActive", "isDisabled", "isHovered", "isSelected", "hasBorder", "hasCheckbox", "theme", "value"],
17222
+ const _excluded$f = ["children", "className", "color", "defaultSelected", "id", "isActive", "isDisabled", "isHovered", "isSelected", "hasBorder", "hasCheckbox", "theme", "value"],
17100
17223
  _excluded2 = ["children", "className", "color", "hasBorder", "id", "isActive", "isDisabled", "isHovered", "theme", "onClick"];
17101
- const COMPONENT_NAME$c = 'Item';
17102
- const CLASSNAME$c = 'redsift-item';
17103
- const DEFAULT_PROPS$c = {};
17224
+ const COMPONENT_NAME$b = 'Item';
17225
+ const CLASSNAME$b = 'redsift-item';
17226
+ const DEFAULT_PROPS$b = {};
17104
17227
  const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
17105
17228
  const {
17106
17229
  children,
@@ -17117,7 +17240,7 @@ const RenderedListboxItem = /*#__PURE__*/forwardRef((props, ref) => {
17117
17240
  theme: propsTheme,
17118
17241
  value
17119
17242
  } = props,
17120
- forwardedProps = _objectWithoutProperties(props, _excluded$g);
17243
+ forwardedProps = _objectWithoutProperties(props, _excluded$f);
17121
17244
  const id = propsId !== null && propsId !== void 0 ? propsId : value;
17122
17245
  const _ref = useRef();
17123
17246
  const divRef = ref !== null && ref !== void 0 ? ref : _ref;
@@ -17283,9 +17406,9 @@ const Item = /*#__PURE__*/forwardRef((props, ref) => {
17283
17406
  }
17284
17407
  return null;
17285
17408
  });
17286
- Item.className = CLASSNAME$c;
17287
- Item.defaultProps = DEFAULT_PROPS$c;
17288
- Item.displayName = COMPONENT_NAME$c;
17409
+ Item.className = CLASSNAME$b;
17410
+ Item.defaultProps = DEFAULT_PROPS$b;
17411
+ Item.displayName = COMPONENT_NAME$b;
17289
17412
 
17290
17413
  /**
17291
17414
  * Component style.
@@ -17327,10 +17450,10 @@ const StyledLink = styled.a`
17327
17450
  }
17328
17451
  `;
17329
17452
 
17330
- const _excluded$f = ["as", "children", "className", "href", "isDisabled", "theme"];
17331
- const COMPONENT_NAME$b = 'Link';
17332
- const CLASSNAME$b = 'redsift-link';
17333
- const DEFAULT_PROPS$b = {};
17453
+ const _excluded$e = ["as", "children", "className", "href", "isDisabled", "theme"];
17454
+ const COMPONENT_NAME$a = 'Link';
17455
+ const CLASSNAME$a = 'redsift-link';
17456
+ const DEFAULT_PROPS$a = {};
17334
17457
 
17335
17458
  /**
17336
17459
  * The Link is a semantic link that looks like a link.
@@ -17349,7 +17472,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
17349
17472
  isDisabled,
17350
17473
  theme: propsTheme
17351
17474
  } = props,
17352
- forwardedProps = _objectWithoutProperties(props, _excluded$f);
17475
+ forwardedProps = _objectWithoutProperties(props, _excluded$e);
17353
17476
  const theme = useTheme(propsTheme);
17354
17477
  return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
17355
17478
  as: as,
@@ -17364,14 +17487,14 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
17364
17487
  ref: ref
17365
17488
  }), children);
17366
17489
  });
17367
- Link.className = CLASSNAME$b;
17368
- Link.defaultProps = DEFAULT_PROPS$b;
17369
- Link.displayName = COMPONENT_NAME$b;
17490
+ Link.className = CLASSNAME$a;
17491
+ Link.defaultProps = DEFAULT_PROPS$a;
17492
+ Link.displayName = COMPONENT_NAME$a;
17370
17493
 
17371
- const _excluded$e = ["children", "className", "disabled", "isDisabled", "theme"];
17372
- const COMPONENT_NAME$a = 'LinkButton';
17373
- const CLASSNAME$a = 'redsift-link-button';
17374
- const DEFAULT_PROPS$a = {};
17494
+ const _excluded$d = ["children", "className", "disabled", "isDisabled", "theme"];
17495
+ const COMPONENT_NAME$9 = 'LinkButton';
17496
+ const CLASSNAME$9 = 'redsift-link-button';
17497
+ const DEFAULT_PROPS$9 = {};
17375
17498
 
17376
17499
  /**
17377
17500
  * The LinkButton is a semantic button that looks like a link.
@@ -17389,7 +17512,7 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
17389
17512
  isDisabled: propsIsDisabled,
17390
17513
  theme: propsTheme
17391
17514
  } = props,
17392
- forwardedProps = _objectWithoutProperties(props, _excluded$e);
17515
+ forwardedProps = _objectWithoutProperties(props, _excluded$d);
17393
17516
  const isDisabled = propsIsDisabled || disabled;
17394
17517
  const theme = useTheme(propsTheme);
17395
17518
  return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
@@ -17405,11 +17528,11 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
17405
17528
  ref: buttonRef
17406
17529
  }), children);
17407
17530
  });
17408
- LinkButton.className = CLASSNAME$a;
17409
- LinkButton.defaultProps = DEFAULT_PROPS$a;
17410
- LinkButton.displayName = COMPONENT_NAME$a;
17531
+ LinkButton.className = CLASSNAME$9;
17532
+ LinkButton.defaultProps = DEFAULT_PROPS$9;
17533
+ LinkButton.displayName = COMPONENT_NAME$9;
17411
17534
 
17412
- const _excluded$d = ["children", "id", "isDisabled", "context"];
17535
+ const _excluded$c = ["children", "id", "isDisabled", "context"];
17413
17536
  const ActiveDescendantListbox = /*#__PURE__*/forwardRef((props, ref) => {
17414
17537
  var _context$state$active;
17415
17538
  const {
@@ -17418,7 +17541,7 @@ const ActiveDescendantListbox = /*#__PURE__*/forwardRef((props, ref) => {
17418
17541
  isDisabled,
17419
17542
  context
17420
17543
  } = props,
17421
- forwardedProps = _objectWithoutProperties(props, _excluded$d);
17544
+ forwardedProps = _objectWithoutProperties(props, _excluded$c);
17422
17545
  const {
17423
17546
  activedescendant,
17424
17547
  handleKeyDown: handleFocusKeyDown,
@@ -17474,7 +17597,7 @@ const ActiveDescendantListbox = /*#__PURE__*/forwardRef((props, ref) => {
17474
17597
  }, children));
17475
17598
  });
17476
17599
 
17477
- const _excluded$c = ["children", "id", "isDisabled", "context"];
17600
+ const _excluded$b = ["children", "id", "isDisabled", "context"];
17478
17601
  const RovingTabindexListbox = /*#__PURE__*/forwardRef((props, ref) => {
17479
17602
  const {
17480
17603
  children,
@@ -17482,7 +17605,7 @@ const RovingTabindexListbox = /*#__PURE__*/forwardRef((props, ref) => {
17482
17605
  isDisabled,
17483
17606
  context
17484
17607
  } = props,
17485
- forwardedProps = _objectWithoutProperties(props, _excluded$c);
17608
+ forwardedProps = _objectWithoutProperties(props, _excluded$b);
17486
17609
  return /*#__PURE__*/React__default.createElement(Flexbox, _extends$1({
17487
17610
  flexDirection: "column",
17488
17611
  gap: "8px"
@@ -17575,10 +17698,10 @@ const ListboxReducer = (state, action) => {
17575
17698
  }
17576
17699
  };
17577
17700
 
17578
- const _excluded$b = ["children", "className", "defaultValues", "direction", "focusOnClick", "focusType", "id", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "loopAround", "onChange", "selectionMode", "values", "variant"];
17579
- const COMPONENT_NAME$9 = 'Listbox';
17580
- const CLASSNAME$9 = 'redsift-listbox';
17581
- const DEFAULT_PROPS$9 = {
17701
+ const _excluded$a = ["children", "className", "defaultValues", "direction", "focusOnClick", "focusType", "id", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "loopAround", "onChange", "selectionMode", "values", "variant"];
17702
+ const COMPONENT_NAME$8 = 'Listbox';
17703
+ const CLASSNAME$8 = 'redsift-listbox';
17704
+ const DEFAULT_PROPS$8 = {
17582
17705
  focusOnClick: false,
17583
17706
  focusType: 'roving-tabindex',
17584
17707
  selectionMode: 'single',
@@ -17609,7 +17732,7 @@ const Listbox = /*#__PURE__*/forwardRef((props, ref) => {
17609
17732
  values,
17610
17733
  variant
17611
17734
  } = props,
17612
- forwardedProps = _objectWithoutProperties(props, _excluded$b);
17735
+ forwardedProps = _objectWithoutProperties(props, _excluded$a);
17613
17736
  const [_id] = useId$2();
17614
17737
  const id = propsId !== null && propsId !== void 0 ? propsId : _id;
17615
17738
  const _ref = useRef();
@@ -17637,6 +17760,7 @@ const Listbox = /*#__PURE__*/forwardRef((props, ref) => {
17637
17760
  useEffect(() => {
17638
17761
  onChange === null || onChange === void 0 ? void 0 : onChange(state.selectedValues);
17639
17762
  }, [state.selectedValues]);
17763
+ warnIfNoAccessibleLabelFound(props, [label]);
17640
17764
  return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
17641
17765
  wrapper: children => /*#__PURE__*/React__default.createElement(StyledListbox, _extends$1({
17642
17766
  flexDirection: "column",
@@ -17671,124 +17795,9 @@ const Listbox = /*#__PURE__*/forwardRef((props, ref) => {
17671
17795
  ref: divRef
17672
17796
  }), children)));
17673
17797
  });
17674
- Listbox.className = CLASSNAME$9;
17675
- Listbox.defaultProps = DEFAULT_PROPS$9;
17676
- Listbox.displayName = COMPONENT_NAME$9;
17677
-
17678
- /**
17679
- * Component style.
17680
- */
17681
- const StyledNumber = styled(StyledText)`
17682
- font-family: var(--redsift-typography-font-family-poppins);
17683
- `;
17684
-
17685
- const _excluded$a = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "fontWeight", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "theme", "value", "variant"];
17686
- const COMPONENT_NAME$8 = 'Number';
17687
- const CLASSNAME$8 = 'redsift-number';
17688
- const DEFAULT_PROPS$8 = {
17689
- compactDisplay: 'short',
17690
- currencyDisplay: 'symbol',
17691
- currencySign: 'standard',
17692
- localeMatcher: 'best fit',
17693
- notation: 'standard',
17694
- signDisplay: 'auto',
17695
- type: 'decimal',
17696
- unitDisplay: 'short',
17697
- roundingMode: 'halfExpand',
17698
- roundingPriority: 'auto',
17699
- trailingZeroDisplay: 'auto'
17700
- };
17701
-
17702
- /**
17703
- * The Number component.
17704
- */
17705
- const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
17706
- const {
17707
- as,
17708
- className,
17709
- color,
17710
- compactDisplay,
17711
- currency,
17712
- currencyDisplay,
17713
- currencySign,
17714
- fontSize,
17715
- fontWeight,
17716
- lineHeight,
17717
- localeMatcher,
17718
- maximumFractionDigits,
17719
- maximumSignificantDigits,
17720
- minimumFractionDigits,
17721
- minimumIntegerDigits,
17722
- minimumSignificantDigits,
17723
- notation,
17724
- noWrap,
17725
- numberingSystem,
17726
- roundingIncrement,
17727
- roundingMode,
17728
- roundingPriority,
17729
- signDisplay,
17730
- trailingZeroDisplay,
17731
- type,
17732
- unit,
17733
- unitDisplay,
17734
- useGrouping,
17735
- theme: propsTheme,
17736
- value,
17737
- variant
17738
- } = props,
17739
- forwardedProps = _objectWithoutProperties(props, _excluded$a);
17740
- const formatter = useNumberFormatter(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
17741
- compactDisplay,
17742
- currency,
17743
- currencyDisplay,
17744
- currencySign,
17745
- localeMatcher
17746
- }, maximumFractionDigits !== undefined && {
17747
- maximumFractionDigits
17748
- }), maximumSignificantDigits !== undefined && {
17749
- maximumSignificantDigits
17750
- }), minimumFractionDigits !== undefined && {
17751
- minimumFractionDigits
17752
- }), minimumIntegerDigits !== undefined && {
17753
- minimumIntegerDigits
17754
- }), minimumSignificantDigits !== undefined && {
17755
- minimumSignificantDigits
17756
- }), {}, {
17757
- notation,
17758
- numberingSystem,
17759
- // @ts-ignore
17760
- roundingIncrement,
17761
- // @ts-ignore
17762
- roundingMode,
17763
- // @ts-ignore
17764
- roundingPriority,
17765
- signDisplay,
17766
- style: type,
17767
- // @ts-ignore
17768
- trailingZeroDisplay,
17769
- unit,
17770
- unitDisplay,
17771
- useGrouping
17772
- }));
17773
- const theme = useTheme(propsTheme);
17774
- return /*#__PURE__*/React__default.createElement(StyledNumber, _extends$1({
17775
- as: as
17776
- }, forwardedProps, {
17777
- $as: as,
17778
- className: classNames(Number$1.className, className),
17779
- ref: ref,
17780
- $color: color,
17781
- $lineHeight: lineHeight,
17782
- $fontSize: fontSize,
17783
- $fontWeight: fontWeight,
17784
- $noWrap: noWrap,
17785
- $theme: theme,
17786
- $variant: variant
17787
- }), formatter.format(value));
17788
- });
17789
- Number$1.className = CLASSNAME$8;
17790
- Number$1.defaultProps = DEFAULT_PROPS$8;
17791
- Number$1.displayName = COMPONENT_NAME$8;
17798
+ Listbox.className = CLASSNAME$8;
17799
+ Listbox.defaultProps = DEFAULT_PROPS$8;
17800
+ Listbox.displayName = COMPONENT_NAME$8;
17792
17801
 
17793
17802
  /**
17794
17803
  * Component variant.
@@ -20965,6 +20974,7 @@ const TextArea = /*#__PURE__*/forwardRef((props, ref) => {
20965
20974
  });
20966
20975
  const [value, setValue] = useState(defaultValue);
20967
20976
  const isControlled = propsValue !== null && propsValue !== undefined;
20977
+ const [labelId] = useId$2();
20968
20978
  warnIfNoAccessibleLabelFound(props, [label], 'TextArea');
20969
20979
  const handleChange = useCallback(event => {
20970
20980
  if (isDisabled || isReadOnly) {
@@ -21022,7 +21032,7 @@ const TextArea = /*#__PURE__*/forwardRef((props, ref) => {
21022
21032
  "aria-disabled": isDisabled,
21023
21033
  "aria-invalid": isInvalid || isRequired && !(isControlled ? propsValue : value),
21024
21034
  "aria-label": ariaLabel,
21025
- "aria-labelledby": ariaLabelledby,
21035
+ "aria-labelledby": ariaLabelledby || (label ? labelId : undefined),
21026
21036
  "aria-readonly": isReadOnly,
21027
21037
  "aria-required": isRequired,
21028
21038
  autoFocus: autoFocus,
@@ -21037,6 +21047,7 @@ const TextArea = /*#__PURE__*/forwardRef((props, ref) => {
21037
21047
  "aria-hidden": "true",
21038
21048
  className: `${TextArea.className}-text-area-wrapper__fieldset`
21039
21049
  }, /*#__PURE__*/React__default.createElement("legend", {
21050
+ id: labelId,
21040
21051
  className: `${TextArea.className}-text-area-wrapper-fieldset__legend`
21041
21052
  }, label ? /*#__PURE__*/React__default.createElement("span", null, label) : null))));
21042
21053
  });