@redsift/design-system 9.0.0-alpha.1 → 9.0.0-alpha.10

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
@@ -39,6 +39,7 @@ declare const Product: {
39
39
  readonly 'brand-trust': "brand-trust";
40
40
  readonly certificates: "certificates";
41
41
  readonly ondmarc: "ondmarc";
42
+ readonly pulse: "pulse";
42
43
  readonly radar: "radar";
43
44
  readonly 'rojo-ds': "rojo-ds";
44
45
  readonly 'vendor-secure': "vendor-secure";
@@ -50,6 +51,7 @@ declare const ProductName: {
50
51
  readonly 'brand-trust': "Brand Trust";
51
52
  readonly certificates: "Certificates";
52
53
  readonly ondmarc: "OnDMARC";
54
+ readonly pulse: "Pulse";
53
55
  readonly radar: "RADAR";
54
56
  readonly 'rojo-ds': "ROJO DS";
55
57
  readonly 'vendor-secure': "Vendor Secure";
@@ -61,6 +63,7 @@ declare const ProductLogo: {
61
63
  readonly 'brand-trust': JSX.Element;
62
64
  readonly certificates: JSX.Element;
63
65
  readonly ondmarc: JSX.Element;
66
+ readonly pulse: JSX.Element;
64
67
  readonly radar: JSX.Element;
65
68
  readonly 'rojo-ds': JSX.Element;
66
69
  readonly 'vendor-secure': JSX.Element;
@@ -90,6 +93,7 @@ declare const ProductColorPalette: {
90
93
  readonly 'brand-trust': "brand-trust";
91
94
  readonly certificates: "certificates";
92
95
  readonly ondmarc: "ondmarc";
96
+ readonly pulse: "pulse";
93
97
  readonly radar: "radar";
94
98
  readonly 'rojo-ds': "rojo-ds";
95
99
  readonly 'vendor-secure': "vendor-secure";
@@ -832,6 +836,7 @@ interface AppBarProps extends Omit<ComponentProps<'header'>, 'title'> {
832
836
  title?: string | ReactElement;
833
837
  }
834
838
  type StyledAppBarProps = AppBarProps & {
839
+ $hasBorder: boolean;
835
840
  $isLoaded: boolean;
836
841
  $isSidePanelCollapsed: boolean;
837
842
  };
@@ -914,7 +919,7 @@ interface SideNavigationMenuProps extends ComponentProps<'div'> {
914
919
  */
915
920
  icon?: IconProps['icon'];
916
921
  /** Custom props to pass to the Icon component. */
917
- iconProps?: Omit<IconProps, 'icon'>;
922
+ iconProps?: Omit<IconProps, 'ref' | 'icon'>;
918
923
  /** Custom ref to pass to the Icon component. */
919
924
  iconRef?: MutableRefObject<HTMLElement>;
920
925
  /** Whether the component is disabled or not. */
@@ -989,7 +994,7 @@ interface SideNavigationMenuItemProps extends ComponentProps<'a'> {
989
994
  */
990
995
  icon?: IconProps['icon'];
991
996
  /** Custom props to pass to the Icon component. */
992
- iconProps?: Omit<IconProps, 'icon'>;
997
+ iconProps?: Omit<IconProps, 'ref' | 'icon'>;
993
998
  /** Custom ref to pass to the Icon component. */
994
999
  iconRef?: RefObject<HTMLElement>;
995
1000
  /** Whether the component is active or not. */
@@ -1087,12 +1092,6 @@ type AppContainerState = {
1087
1092
  collapseSidePanel(): void;
1088
1093
  /** Expandes the side panel. */
1089
1094
  expandSidePanel(): void;
1090
- /** Whether the container contains an AppBar or not. */
1091
- hasAppBar: boolean;
1092
- /** Whether the container contains an AppSidePanel or not. */
1093
- hasAppSidePanel: boolean;
1094
- /** Whether the container contains an AppContent or not. */
1095
- hasAppContent: boolean;
1096
1095
  /** Product theme. */
1097
1096
  product?: AppContainerProps['product'];
1098
1097
  /** Set breadcrumbs of the page. */
@@ -1111,7 +1110,10 @@ interface AppContainerProps extends ComponentProps<'div'> {
1111
1110
  /** The locale to apply to the children. */
1112
1111
  locale?: string;
1113
1112
  /** Product theme to apply to everything within. This overrides the CSS variables automatically. */
1114
- product?: Product;
1113
+ product?: Product | {
1114
+ name: string;
1115
+ logo?: ReactElement;
1116
+ };
1115
1117
  }
1116
1118
  type StyledAppContainerProps = Omit<AppContainerProps, 'locale' | 'product'> & {
1117
1119
  $product?: AppContainerProps['product'];
@@ -1128,8 +1130,6 @@ declare const AppContainer: Comp<AppContainerProps, HTMLDivElement>;
1128
1130
  * Component props.
1129
1131
  */
1130
1132
  interface AppContentProps extends ComponentProps<'main'>, StylingProps, ContainerProps {
1131
- /** Product theme to apply to everything within. This overrides the CSS variables automatically. */
1132
- product?: Product;
1133
1133
  }
1134
1134
  type StyledAppContentProps = Omit<AppContentProps, 'product'> & {
1135
1135
  $isLoaded: boolean;
@@ -1372,11 +1372,11 @@ declare const Heading: Comp<HeadingProps, HTMLDivElement>;
1372
1372
  /**
1373
1373
  * Component props.
1374
1374
  */
1375
- interface CardHeaderProps extends ComponentProps<'div'> {
1375
+ interface CardHeaderProps extends ComponentProps<'div'>, StylingProps, Omit<FlexLayoutProps, 'inline'> {
1376
1376
  /** Header. */
1377
1377
  header?: string;
1378
1378
  /** Heading props allowing to override the component rendered by the heading without changing its style. */
1379
- headingProps?: Pick<HeadingProps, 'as' | 'noWrap'>;
1379
+ headingProps?: Pick<HeadingProps, 'as' | 'noWrap' | 'variant'>;
1380
1380
  /** Subheader */
1381
1381
  subheader?: string;
1382
1382
  /**
@@ -1384,6 +1384,8 @@ interface CardHeaderProps extends ComponentProps<'div'> {
1384
1384
  * Can also be a ReactElement.
1385
1385
  */
1386
1386
  icon?: IconProps['icon'];
1387
+ /** Custom props to pass to the Icon component. */
1388
+ iconProps?: Omit<IconProps, 'ref' | 'icon'>;
1387
1389
  /** Whether the card is loading or not. */
1388
1390
  isLoading?: boolean;
1389
1391
  }
@@ -1848,6 +1850,7 @@ type BaseFocusWithinGroupAction = {
1848
1850
  type: FocusWithinGroupActionType.FOCUS_ON_LIST;
1849
1851
  payload: {
1850
1852
  id: TabStop['id'];
1853
+ filter?: FocusWithinGroupState['filter'];
1851
1854
  };
1852
1855
  } | {
1853
1856
  type: FocusWithinGroupActionType.BLUR_ON_LIST;
@@ -1970,8 +1973,15 @@ declare function useFocusOnList(): UseFocusGroupProps;
1970
1973
  * Component props.
1971
1974
  */
1972
1975
  interface GridProps extends ComponentProps<'div'>, StylingProps, InternalSpacingProps, GridLayoutProps {
1976
+ /** Whether the grid has divider or not. The number of pixels defining the gap between columns and rows is mandatory. This replaces the grid gap property. */
1977
+ divider?: {
1978
+ colGap: number;
1979
+ rowGap: number;
1980
+ };
1973
1981
  }
1974
- type StyledGridProps = GridProps;
1982
+ type StyledGridProps = GridProps & {
1983
+ $divider: GridProps['divider'];
1984
+ };
1975
1985
 
1976
1986
  /**
1977
1987
  * Component props.
@@ -2688,6 +2698,8 @@ interface TextFieldProps extends Omit<ComponentProps<'div'>, 'onChange'>, Stylin
2688
2698
  onClear?(): void;
2689
2699
  /** Placeholder. */
2690
2700
  placeholder?: string;
2701
+ /** Input type. */
2702
+ type?: HTMLInputElement['type'];
2691
2703
  /**
2692
2704
  * Input value.
2693
2705
  * Used for controlled version.