@redsift/design-system 10.3.0-alpha.6 → 10.3.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -2693,6 +2693,16 @@ type HeadingComponent = ValueOf<typeof HeadingComponent>;
2693
2693
  interface HeadingProps extends ComponentProps<'span'>, StylingProps {
2694
2694
  /** The actual component rendered in the DOM. */
2695
2695
  as: HeadingComponent;
2696
+ /** Color variant. Either from color palette or hex or rgb strings. */
2697
+ color?: NotificationsColorPalette | NeutralColorPalette | (string & {});
2698
+ /** Font family. */
2699
+ fontFamily?: FontFamily;
2700
+ /** Font size. */
2701
+ fontSize?: string;
2702
+ /** Font weight. */
2703
+ fontWeight?: string;
2704
+ /** Line height. */
2705
+ lineHeight?: string;
2696
2706
  /** Whether the text will truncate with a text overflow ellipsis or wrap. */
2697
2707
  noWrap?: boolean;
2698
2708
  /** Theme. */
@@ -2701,9 +2711,14 @@ interface HeadingProps extends ComponentProps<'span'>, StylingProps {
2701
2711
  variant?: HeadingVariant;
2702
2712
  }
2703
2713
  type StyledHeadingProps = Omit<HeadingProps, 'color' | 'noWrap'> & {
2714
+ $color: HeadingProps['color'];
2715
+ $fontFamily?: HeadingProps['fontFamily'];
2716
+ $fontSize: HeadingProps['fontSize'];
2717
+ $fontWeight: HeadingProps['fontWeight'];
2718
+ $lineHeight: HeadingProps['lineHeight'];
2704
2719
  $noWrap: HeadingProps['noWrap'];
2705
- $variant: HeadingProps['variant'];
2706
2720
  $theme: HeadingProps['theme'];
2721
+ $variant: HeadingProps['variant'];
2707
2722
  };
2708
2723
 
2709
2724
  /**
@@ -3720,7 +3735,7 @@ interface NumberFormatOptions$1 {
3720
3735
  /**
3721
3736
  * Component props.
3722
3737
  */
3723
- interface NumberProps extends Omit<TextProps, 'fontFamily'> {
3738
+ interface NumberProps extends TextProps {
3724
3739
  /** Value. */
3725
3740
  value: number;
3726
3741
  /** The formatting style to use. */
@@ -3768,7 +3783,9 @@ interface NumberProps extends Omit<TextProps, 'fontFamily'> {
3768
3783
  }
3769
3784
  type StyledNumberProps = Omit<NumberProps, 'as' | 'color' | 'fontFamily' | 'fontSize' | 'value' | 'variant'> & {
3770
3785
  $color: NumberProps['color'];
3786
+ $fontFamily: NumberProps['fontFamily'];
3771
3787
  $fontSize: NumberProps['fontSize'];
3788
+ $fontWeight: NumberProps['fontWeight'];
3772
3789
  $variant: NumberProps['variant'];
3773
3790
  $theme: NumberProps['theme'];
3774
3791
  };