carbon-react 102.19.0 → 102.21.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.
@@ -1,2 +1,3 @@
1
+ import { MarginProps } from "styled-system";
2
+ declare const StyledHr: import("styled-components").StyledComponent<"hr", any, MarginProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>, never>;
1
3
  export default StyledHr;
2
- declare const StyledHr: import("styled-components").StyledComponent<"hr", any, {}, never>;
@@ -1 +1 @@
1
- export { default } from "./hr";
1
+ export { default } from "./hr.component";
@@ -36,27 +36,24 @@ const StyledMultiActionButton = _styledComponents.default.div`
36
36
  }
37
37
 
38
38
  &:focus {
39
- border: 3px solid ${({
40
- theme
41
- }) => theme.colors.focus};
39
+ border: 3px solid var(--colorsSemanticFocus500);
42
40
  outline: none;
43
41
  margin: -1px;
44
42
  }
45
43
 
46
44
  ${({
47
- displayed,
48
- theme
45
+ displayed
49
46
  }) => displayed && (0, _styledComponents.css)`
50
- background-color: ${theme.colors.secondary};
51
- border-color: ${theme.colors.secondary};
47
+ background-color: var(--colorsActionMajor700);
48
+ border-color: var(--colorsActionMajor700);
52
49
 
53
50
  &,
54
51
  ${_icon.default} {
55
- color: ${theme.colors.white};
52
+ color: var(--colorsActionMajorYang100);
56
53
  }
57
54
 
58
55
  &:focus {
59
- border-color: ${theme.colors.focus};
56
+ border-color: var(--colorsSemanticFocus500);
60
57
  margin: 0 -1px;
61
58
  }
62
59
  `}
@@ -68,12 +65,13 @@ const StyledButtonChildrenContainer = _styledComponents.default.div`
68
65
  theme,
69
66
  align
70
67
  }) => (0, _styledComponents.css)`
71
- background-color: ${theme.colors.secondary};
68
+ background-color: var(--colorsActionMajorYang100);
72
69
  min-width: ${({
73
70
  minWidth
74
71
  }) => minWidth}px;
75
72
  white-space: nowrap;
76
73
  z-index: ${theme.zIndex.popover};
74
+ box-shadow: var(--boxShadow100);
77
75
 
78
76
  ${_icon.default} {
79
77
  margin-left: 0;
@@ -81,20 +79,18 @@ const StyledButtonChildrenContainer = _styledComponents.default.div`
81
79
  }
82
80
 
83
81
  ${_button.default} {
84
- background-color: ${theme.colors.secondary};
85
- border: 1px solid ${theme.colors.secondary};
86
- color: ${theme.colors.white};
82
+ border: 1px solid var(--colorsActionMajorTransparent);
83
+ color: var(--colorsActionMajor500);
87
84
  display: block;
88
85
  margin-left: 0;
89
- margin-top: 3px;
90
- margin-bottom: 3px;
91
86
  min-width: 100%;
92
87
  text-align: ${align};
93
88
  z-index: ${theme.zIndex.overlay};
94
89
 
95
90
  &:focus,
96
91
  &:hover {
97
- background-color: ${theme.colors.tertiary};
92
+ background-color: var(--colorsActionMajor600);
93
+ color: var(--colorsActionMajorYang100);
98
94
  }
99
95
 
100
96
  & + & {
@@ -1,2 +1 @@
1
- export { default } from "./navigation-bar";
2
- export * from "./navigation-bar";
1
+ export { default } from "./navigation-bar.component";
@@ -1,13 +1,18 @@
1
- export default NavigationBar;
2
- declare function NavigationBar({ navigationType, isLoading, children, ariaLabel, stickyOffset, stickyPosition, ...props }: {
3
- [x: string]: any;
4
- navigationType?: string | undefined;
5
- isLoading?: boolean | undefined;
6
- children: any;
7
- ariaLabel: any;
8
- stickyOffset?: string | undefined;
9
- stickyPosition: any;
10
- }): JSX.Element;
11
- declare namespace NavigationBar {
12
- const propTypes: any;
1
+ import React from "react";
2
+ import { PaddingProps, FlexboxProps } from "styled-system";
3
+ export declare type StickyPosition = "top" | "bottom";
4
+ export declare type NavigationType = "light" | "dark" | "white" | "black";
5
+ export interface NavigationBarProps extends PaddingProps, FlexboxProps {
6
+ children?: React.ReactNode;
7
+ ariaLabel?: string;
8
+ /** Color scheme of navigation component */
9
+ navigationType?: NavigationType;
10
+ /** If 'true' the children will not be visible */
11
+ isLoading?: boolean;
12
+ /** Defines the position of sticky navigation bar */
13
+ stickyPosition?: StickyPosition;
14
+ /** Defines the offset of sticky navigation bar */
15
+ stickyOffset?: string;
13
16
  }
17
+ export declare const NavigationBar: ({ navigationType, isLoading, children, ariaLabel, stickyOffset, stickyPosition, ...props }: NavigationBarProps) => JSX.Element;
18
+ export default NavigationBar;