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.
- package/README.md +1 -1
- package/lib/components/action-popover/action-popover.style.d.ts +4 -22
- package/lib/components/action-popover/action-popover.style.js +40 -98
- package/lib/components/confirm/confirm.component.js +1 -1
- package/lib/components/heading/heading.style.d.ts +1 -2
- package/lib/components/hr/hr.component.d.ts +8 -12
- package/lib/components/hr/hr.component.js +677 -32
- package/lib/components/hr/hr.style.d.ts +2 -1
- package/lib/components/hr/index.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.js +12 -16
- package/lib/components/navigation-bar/index.d.ts +1 -2
- package/lib/components/navigation-bar/navigation-bar.component.d.ts +17 -12
- package/lib/components/navigation-bar/navigation-bar.component.js +5403 -33
- package/lib/components/navigation-bar/navigation-bar.style.d.ts +10 -1
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +1 -1
- package/lib/hooks/__internal__/useIsAboveBreakpoint/index.d.ts +1 -1
- package/lib/style/themes/base/index.d.ts +6 -1
- package/lib/style/themes/sage/index.d.ts +6 -0
- package/package.json +2 -2
- package/lib/components/hr/hr.d.ts +0 -12
- package/lib/components/navigation-bar/navigation-bar.d.ts +0 -15
|
@@ -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:
|
|
51
|
-
border-color:
|
|
47
|
+
background-color: var(--colorsActionMajor700);
|
|
48
|
+
border-color: var(--colorsActionMajor700);
|
|
52
49
|
|
|
53
50
|
&,
|
|
54
51
|
${_icon.default} {
|
|
55
|
-
color:
|
|
52
|
+
color: var(--colorsActionMajorYang100);
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
&:focus {
|
|
59
|
-
border-color:
|
|
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:
|
|
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
|
-
|
|
85
|
-
|
|
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:
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
children
|
|
7
|
-
ariaLabel
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|