carbon-react 102.20.1 → 103.0.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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/lib/components/heading/heading.style.d.ts +1 -2
  3. package/lib/components/hr/hr.component.d.ts +8 -12
  4. package/lib/components/hr/hr.component.js +677 -32
  5. package/lib/components/hr/hr.style.d.ts +2 -1
  6. package/lib/components/hr/index.d.ts +1 -1
  7. package/lib/components/loader/loader.component.d.ts +18 -14
  8. package/lib/components/loader/loader.component.js +10 -2
  9. package/lib/components/loader/loader.d.ts +2 -0
  10. package/lib/components/multi-action-button/multi-action-button.style.js +12 -16
  11. package/lib/components/navigation-bar/index.d.ts +1 -2
  12. package/lib/components/navigation-bar/navigation-bar.component.d.ts +17 -12
  13. package/lib/components/navigation-bar/navigation-bar.component.js +5403 -33
  14. package/lib/components/navigation-bar/navigation-bar.style.d.ts +10 -1
  15. package/lib/components/progress-tracker/progress-tracker-test.stories.js +0 -6
  16. package/lib/components/progress-tracker/progress-tracker.component.d.ts +1 -3
  17. package/lib/components/progress-tracker/progress-tracker.component.js +1 -9
  18. package/lib/components/progress-tracker/progress-tracker.config.d.ts +0 -1
  19. package/lib/components/progress-tracker/progress-tracker.config.js +2 -4
  20. package/lib/components/progress-tracker/progress-tracker.d.ts +0 -5
  21. package/lib/components/progress-tracker/progress-tracker.style.js +30 -32
  22. package/lib/components/split-button/split-button-children.style.js +7 -7
  23. package/lib/components/split-button/split-button-toggle.style.js +16 -7
  24. package/lib/components/split-button/split-button.style.js +1 -3
  25. package/lib/hooks/__internal__/useIsAboveBreakpoint/index.d.ts +1 -1
  26. package/lib/style/themes/base/index.d.ts +6 -1
  27. package/lib/style/themes/sage/index.d.ts +6 -0
  28. package/package.json +2 -2
  29. package/lib/components/hr/hr.d.ts +0 -12
  30. package/lib/components/navigation-bar/navigation-bar.d.ts +0 -15
package/README.md CHANGED
@@ -51,4 +51,4 @@ Thanks to [Chromatic](https://www.chromatic.com/) for providing the visual testi
51
51
 
52
52
  Carbon is licensed under the [Apache-2.0 licence](LICENSE).
53
53
 
54
- Copyright (c) 2018-2021 Sage Group Plc. All rights reserved.
54
+ Copyright (c) 2018-2022 Sage Group Plc. All rights reserved.
@@ -5,12 +5,11 @@ export const StyledHeader: import("styled-components").StyledComponent<"div", an
5
5
  export const StyledSeparator: import("styled-components").StyledComponent<"hr", any, {}, never>;
6
6
  export const StyledHeaderHelp: import("styled-components").StyledComponent<typeof Help, any, {}, never>;
7
7
  export const StyledHeadingTitle: import("styled-components").StyledComponent<typeof Typography, any, {}, never>;
8
- export const StyledDivider: import("styled-components").StyledComponent<typeof Hr, any, {}, never>;
8
+ export const StyledDivider: import("styled-components").StyledComponent<({ adaptiveMxBreakpoint, ml, mr, ...rest }: import("../hr/hr.component").HrProps) => JSX.Element, any, {}, never>;
9
9
  export const StyledHeaderContent: import("styled-components").StyledComponent<"div", any, {}, never>;
10
10
  export const StyledHeadingBackButton: import("styled-components").StyledComponent<typeof Link, any, {}, never>;
11
11
  export const StyledHeadingPills: import("styled-components").StyledComponent<"span", any, {}, never>;
12
12
  import Icon from "../icon";
13
13
  import Help from "../help";
14
14
  import Typography from "../typography";
15
- import Hr from "../hr";
16
15
  import Link from "../link";
@@ -1,13 +1,9 @@
1
- export default Hr;
2
- declare function Hr({ adaptiveMxBreakpoint, ml, mr, ...props }: {
3
- [x: string]: any;
4
- adaptiveMxBreakpoint: any;
5
- ml: any;
6
- mr: any;
7
- }): JSX.Element;
8
- declare namespace Hr {
9
- namespace propTypes {
10
- const adaptiveMxBreakpoint: PropTypes.Requireable<number>;
11
- }
1
+ /// <reference types="react" />
2
+ import { MarginProps } from "styled-system";
3
+ export interface HrProps extends MarginProps {
4
+ /** Breakpoint for adaptive left and right margins (below the breakpoint they go to 0).
5
+ * Enables the adaptive behaviour when set */
6
+ adaptiveMxBreakpoint?: number;
12
7
  }
13
- import PropTypes from "prop-types";
8
+ export declare const Hr: ({ adaptiveMxBreakpoint, ml, mr, ...rest }: HrProps) => JSX.Element;
9
+ export default Hr;