carbon-react 118.1.1 → 118.2.1
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/esm/__internal__/input/input-presentation.style.js +1 -0
- package/esm/__internal__/input/input.style.js +1 -0
- package/esm/components/action-popover/action-popover.style.js +3 -0
- package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/esm/components/badge/badge.style.js +1 -1
- package/esm/components/batch-selection/batch-selection.style.js +6 -0
- package/esm/components/box/box.component.d.ts +3 -0
- package/esm/components/box/box.component.js +4 -0
- package/esm/components/button/button.style.js +10 -9
- package/esm/components/button-bar/button-bar.style.js +19 -0
- package/esm/components/button-minor/button-minor.style.js +42 -40
- package/esm/components/button-toggle/button-toggle.component.js +2 -1
- package/esm/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/esm/components/button-toggle/button-toggle.style.js +31 -13
- package/esm/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/esm/components/card/__internal__/card-context/index.d.ts +7 -0
- package/esm/components/card/__internal__/card-context/index.js +2 -0
- package/esm/components/card/card-footer/card-footer.component.js +9 -2
- package/esm/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/esm/components/card/card-footer/card-footer.style.js +10 -1
- package/esm/components/card/card.component.d.ts +3 -2
- package/esm/components/card/card.component.js +10 -1
- package/esm/components/card/card.style.d.ts +2 -1
- package/esm/components/card/card.style.js +3 -1
- package/esm/components/carousel/carousel.component.js +1 -1
- package/esm/components/carousel/carousel.style.js +4 -2
- package/esm/components/carousel/slide/slide.style.js +2 -0
- package/esm/components/checkbox/checkbox.style.js +2 -0
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/esm/components/date/__internal__/navbar/button.style.js +2 -0
- package/esm/components/dialog/dialog.style.js +5 -0
- package/esm/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/esm/components/dismissible-box/dismissible-box.component.js +4 -1
- package/esm/components/drawer/drawer.style.js +1 -0
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/esm/components/flat-table/flat-table.component.js +56 -2
- package/esm/components/flat-table/flat-table.style.js +101 -1
- package/esm/components/flat-table/sort/sort.style.js +1 -0
- package/esm/components/icon-button/icon-button.style.js +1 -0
- package/esm/components/inline-inputs/inline-inputs.style.js +18 -0
- package/esm/components/link/link.style.js +1 -0
- package/esm/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/esm/components/link-preview/__internal__/placeholder.component.js +4 -1
- package/esm/components/link-preview/link-preview.style.js +1 -0
- package/esm/components/loader/loader-square.style.js +5 -0
- package/esm/components/loader-bar/loader-bar.style.js +1 -0
- package/esm/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +18 -0
- package/esm/components/menu/menu-item/menu-item.component.js +1 -1
- package/esm/components/menu/menu-item/menu-item.style.js +13 -11
- package/esm/components/menu/menu.style.js +13 -6
- package/esm/components/menu/scrollable-block/scrollable-block.style.js +15 -0
- package/esm/components/message/message.style.js +2 -0
- package/esm/components/multi-action-button/multi-action-button.style.js +4 -0
- package/esm/components/note/note.style.js +1 -0
- package/esm/components/numeral-date/numeral-date.component.js +2 -0
- package/esm/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/esm/components/numeral-date/numeral-date.style.js +12 -0
- package/esm/components/pager/pager.style.js +2 -0
- package/esm/components/pill/pill.style.js +5 -15
- package/esm/components/pod/pod.style.js +6 -0
- package/esm/components/popover-container/popover-container.style.js +1 -0
- package/esm/components/portrait/portrait-gravatar.component.js +1 -1
- package/esm/components/portrait/portrait-initials.component.js +1 -1
- package/esm/components/portrait/portrait.component.js +1 -1
- package/esm/components/portrait/portrait.style.js +1 -3
- package/esm/components/profile/profile.component.js +1 -1
- package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
- package/esm/components/radio-button/radio-button.style.js +1 -1
- package/esm/components/search/search-button.style.js +5 -0
- package/esm/components/search/search.style.js +7 -0
- package/esm/components/select/select-list/select-list-container.style.js +1 -0
- package/esm/components/split-button/split-button-children.style.d.ts +1 -0
- package/esm/components/split-button/split-button-children.style.js +28 -0
- package/esm/components/split-button/split-button-toggle.style.js +6 -1
- package/esm/components/split-button/split-button.style.js +5 -2
- package/esm/components/switch/__internal__/switch-slider.style.js +1 -2
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/esm/components/text-editor/text-editor.style.js +3 -0
- package/esm/components/tile/tile.component.d.ts +3 -1
- package/esm/components/tile/tile.component.js +3 -1
- package/esm/components/tile/tile.style.d.ts +1 -1
- package/esm/components/tile/tile.style.js +4 -1
- package/esm/components/tile-select/tile-select.style.d.ts +1 -0
- package/esm/components/tile-select/tile-select.style.js +8 -0
- package/esm/components/tooltip/tooltip.style.js +1 -0
- package/esm/components/vertical-menu/vertical-menu.style.js +1 -0
- package/lib/__internal__/input/input-presentation.style.js +1 -0
- package/lib/__internal__/input/input.style.js +1 -0
- package/lib/components/action-popover/action-popover.style.js +3 -0
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/lib/components/badge/badge.style.js +1 -1
- package/lib/components/batch-selection/batch-selection.style.js +6 -0
- package/lib/components/box/box.component.d.ts +3 -0
- package/lib/components/box/box.component.js +4 -0
- package/lib/components/button/button.style.js +10 -9
- package/lib/components/button-bar/button-bar.style.js +19 -0
- package/lib/components/button-minor/button-minor.style.js +42 -40
- package/lib/components/button-toggle/button-toggle.component.js +2 -1
- package/lib/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/lib/components/button-toggle/button-toggle.style.js +31 -13
- package/lib/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/lib/components/card/__internal__/card-context/index.d.ts +7 -0
- package/lib/components/card/__internal__/card-context/index.js +14 -0
- package/lib/components/card/__internal__/card-context/package.json +6 -0
- package/lib/components/card/card-footer/card-footer.component.js +14 -2
- package/lib/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/lib/components/card/card-footer/card-footer.style.js +10 -1
- package/lib/components/card/card.component.d.ts +3 -2
- package/lib/components/card/card.component.js +11 -1
- package/lib/components/card/card.style.d.ts +2 -1
- package/lib/components/card/card.style.js +3 -1
- package/lib/components/carousel/carousel.component.js +1 -1
- package/lib/components/carousel/carousel.style.js +4 -2
- package/lib/components/carousel/slide/slide.style.js +2 -0
- package/lib/components/checkbox/checkbox.style.js +2 -0
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/lib/components/date/__internal__/navbar/button.style.js +2 -0
- package/lib/components/dialog/dialog.style.js +5 -0
- package/lib/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/lib/components/dismissible-box/dismissible-box.component.js +4 -1
- package/lib/components/drawer/drawer.style.js +1 -0
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/lib/components/flat-table/flat-table.component.js +60 -2
- package/lib/components/flat-table/flat-table.style.js +102 -1
- package/lib/components/flat-table/sort/sort.style.js +1 -0
- package/lib/components/icon-button/icon-button.style.js +1 -0
- package/lib/components/inline-inputs/inline-inputs.style.js +18 -0
- package/lib/components/link/link.style.js +1 -0
- package/lib/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/lib/components/link-preview/__internal__/placeholder.component.js +6 -1
- package/lib/components/link-preview/link-preview.style.js +1 -0
- package/lib/components/loader/loader-square.style.js +5 -0
- package/lib/components/loader-bar/loader-bar.style.js +1 -0
- package/lib/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +18 -0
- package/lib/components/menu/menu-item/menu-item.component.js +1 -1
- package/lib/components/menu/menu-item/menu-item.style.js +13 -11
- package/lib/components/menu/menu.style.js +13 -6
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +18 -0
- package/lib/components/message/message.style.js +2 -0
- package/lib/components/multi-action-button/multi-action-button.style.js +5 -0
- package/lib/components/note/note.style.js +1 -0
- package/lib/components/numeral-date/numeral-date.component.js +2 -0
- package/lib/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/lib/components/numeral-date/numeral-date.style.js +12 -0
- package/lib/components/pager/pager.style.js +2 -0
- package/lib/components/pill/pill.style.js +5 -15
- package/lib/components/pod/pod.style.js +6 -0
- package/lib/components/popover-container/popover-container.style.js +1 -0
- package/lib/components/portrait/portrait-gravatar.component.js +1 -1
- package/lib/components/portrait/portrait-initials.component.js +1 -1
- package/lib/components/portrait/portrait.component.js +1 -1
- package/lib/components/portrait/portrait.style.js +1 -3
- package/lib/components/profile/profile.component.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
- package/lib/components/radio-button/radio-button.style.js +1 -1
- package/lib/components/search/search-button.style.js +5 -0
- package/lib/components/search/search.style.js +7 -0
- package/lib/components/select/select-list/select-list-container.style.js +1 -0
- package/lib/components/split-button/split-button-children.style.d.ts +1 -0
- package/lib/components/split-button/split-button-children.style.js +30 -1
- package/lib/components/split-button/split-button-toggle.style.js +6 -1
- package/lib/components/split-button/split-button.style.js +5 -2
- package/lib/components/switch/__internal__/switch-slider.style.js +1 -2
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/lib/components/text-editor/text-editor.style.js +3 -0
- package/lib/components/tile/tile.component.d.ts +3 -1
- package/lib/components/tile/tile.component.js +3 -1
- package/lib/components/tile/tile.style.d.ts +1 -1
- package/lib/components/tile/tile.style.js +4 -1
- package/lib/components/tile-select/tile-select.style.d.ts +1 -0
- package/lib/components/tile-select/tile-select.style.js +8 -0
- package/lib/components/tooltip/tooltip.style.js +1 -0
- package/lib/components/vertical-menu/vertical-menu.style.js +1 -0
- package/package.json +1 -1
|
@@ -29,6 +29,17 @@ const StyledTitleContent = styled.span`
|
|
|
29
29
|
display: flex;
|
|
30
30
|
width: 100%;
|
|
31
31
|
justify-content: ${align === "right" ? "flex-end" : "flex-start"};
|
|
32
|
+
border-top-left-radius: var(--borderRadius100);
|
|
33
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
34
|
+
border-bottom-right-radius: var(--borderRadius000);
|
|
35
|
+
border-top-right-radius: var(--borderRadius000);
|
|
36
|
+
`}
|
|
37
|
+
|
|
38
|
+
${position === "top" && css`
|
|
39
|
+
border-top-left-radius: var(--borderRadius100);
|
|
40
|
+
border-top-right-radius: var(--borderRadius100);
|
|
41
|
+
border-bottom-right-radius: var(--borderRadius000);
|
|
42
|
+
border-bottom-left-radius: var(--borderRadius000);
|
|
32
43
|
`}
|
|
33
44
|
|
|
34
45
|
${hasHref && css`
|
|
@@ -89,8 +100,7 @@ const StyledTitleContent = styled.span`
|
|
|
89
100
|
padding: 10px 16px;
|
|
90
101
|
|
|
91
102
|
${borders && `padding-bottom: 9px;`}
|
|
92
|
-
`}
|
|
93
|
-
|
|
103
|
+
`}
|
|
94
104
|
|
|
95
105
|
${(warning || info) && css`
|
|
96
106
|
outline: 1px solid;
|
|
@@ -208,6 +218,8 @@ const StyledTitleContent = styled.span`
|
|
|
208
218
|
const tabTitleStyles = css`
|
|
209
219
|
background-color: transparent;
|
|
210
220
|
display: inline-block;
|
|
221
|
+
border-top-left-radius: var(--borderRadius100);
|
|
222
|
+
border-top-right-radius: var(--borderRadius100);
|
|
211
223
|
font-weight: bold;
|
|
212
224
|
position: relative;
|
|
213
225
|
border: none;
|
|
@@ -221,6 +233,14 @@ const tabTitleStyles = css`
|
|
|
221
233
|
position
|
|
222
234
|
}) => position === "top" && "white-space: nowrap"};
|
|
223
235
|
|
|
236
|
+
${({
|
|
237
|
+
position
|
|
238
|
+
}) => css`
|
|
239
|
+
${position === "left" && css`
|
|
240
|
+
border-top-right-radius: var(--borderRadius000);
|
|
241
|
+
`}
|
|
242
|
+
`}
|
|
243
|
+
|
|
224
244
|
a:visited {
|
|
225
245
|
color: inherit;
|
|
226
246
|
}
|
|
@@ -10,6 +10,11 @@ const StyledTabsHeaderWrapper = styled.div`
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
padding: 3px;
|
|
12
12
|
|
|
13
|
+
button[data-element="select-tab"] {
|
|
14
|
+
border-top-left-radius: var(--borderRadius100);
|
|
15
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
${!isInSidebar && css`
|
|
14
19
|
min-width: 20%;
|
|
15
20
|
`}
|
package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js
CHANGED
|
@@ -4,6 +4,7 @@ const StyledToolbarButton = styled.button.attrs({
|
|
|
4
4
|
type: "button"
|
|
5
5
|
})`
|
|
6
6
|
background-color: inherit;
|
|
7
|
+
border-radius: var(--borderRadius050);
|
|
7
8
|
border: none;
|
|
8
9
|
cursor: pointer;
|
|
9
10
|
width: 32px;
|
|
@@ -21,10 +22,12 @@ const StyledToolbarButton = styled.button.attrs({
|
|
|
21
22
|
:active {
|
|
22
23
|
outline: 2px solid var(--colorsSemanticFocus500);
|
|
23
24
|
outline-offset: -2px;
|
|
25
|
+
border-radius: var(--borderRadius050);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
:hover {
|
|
27
29
|
background-color: var(--colorsActionMinor200);
|
|
30
|
+
border-radius: var(--borderRadius050);
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
${isActive && css`
|
|
@@ -10,6 +10,8 @@ StyledEditorWrapper.defaultProps = {
|
|
|
10
10
|
theme: baseTheme
|
|
11
11
|
};
|
|
12
12
|
const StyledEditorContainer = styled.div`
|
|
13
|
+
border-radius: var(--borderRadius050);
|
|
14
|
+
|
|
13
15
|
${({
|
|
14
16
|
hasError,
|
|
15
17
|
rows,
|
|
@@ -60,6 +62,7 @@ const StyledEditorOutline = styled.div`
|
|
|
60
62
|
isFocused,
|
|
61
63
|
hasError
|
|
62
64
|
}) => css`
|
|
65
|
+
border-radius: var(--borderRadius050);
|
|
63
66
|
outline: none;
|
|
64
67
|
min-width: 320px;
|
|
65
68
|
|
|
@@ -24,6 +24,8 @@ export interface TileProps extends SpaceProps, WidthProps {
|
|
|
24
24
|
borderWidth?: Extract<DesignTokensType, `borderWidth${string}`>;
|
|
25
25
|
/** Sets the border variant that should be used */
|
|
26
26
|
borderVariant?: "default" | "selected" | "positive" | "negative" | "caution" | "info";
|
|
27
|
+
/** Sets the level of roundness of the corners, "default" is 8px and "large" is 16px */
|
|
28
|
+
roundness?: "default" | "large";
|
|
27
29
|
}
|
|
28
|
-
export declare const Tile: ({ variant, p, children, orientation, width, ...props }: TileProps) => JSX.Element;
|
|
30
|
+
export declare const Tile: ({ variant, p, children, orientation, width, roundness, ...props }: TileProps) => JSX.Element;
|
|
29
31
|
export default Tile;
|
|
@@ -10,6 +10,7 @@ const Tile = ({
|
|
|
10
10
|
children,
|
|
11
11
|
orientation = "horizontal",
|
|
12
12
|
width,
|
|
13
|
+
roundness = "default",
|
|
13
14
|
...props
|
|
14
15
|
}) => {
|
|
15
16
|
const isHorizontal = orientation === "horizontal";
|
|
@@ -47,7 +48,8 @@ const Tile = ({
|
|
|
47
48
|
width: width,
|
|
48
49
|
"data-component": "tile",
|
|
49
50
|
isHorizontal: isHorizontal,
|
|
50
|
-
p: p
|
|
51
|
+
p: p,
|
|
52
|
+
roundness: roundness
|
|
51
53
|
}, props), wrappedChildren);
|
|
52
54
|
};
|
|
53
55
|
|
|
@@ -6,7 +6,7 @@ interface TileContentProps {
|
|
|
6
6
|
width?: string | number;
|
|
7
7
|
}
|
|
8
8
|
declare const TileContent: import("styled-components").StyledComponent<"div", any, TileContentProps, never>;
|
|
9
|
-
declare const StyledTile: import("styled-components").StyledComponent<"div", any, Pick<TileProps, "width" | "variant" | "borderWidth" | "borderVariant"> & {
|
|
9
|
+
declare const StyledTile: import("styled-components").StyledComponent<"div", any, Pick<TileProps, "width" | "variant" | "roundness" | "borderWidth" | "borderVariant"> & {
|
|
10
10
|
isHorizontal?: boolean | undefined;
|
|
11
11
|
} & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
|
|
12
12
|
export { StyledTile, TileContent };
|
|
@@ -85,12 +85,15 @@ const StyledTile = styled.div`
|
|
|
85
85
|
borderWidth = "borderWidth100",
|
|
86
86
|
isHorizontal,
|
|
87
87
|
variant,
|
|
88
|
-
width
|
|
88
|
+
width,
|
|
89
|
+
roundness
|
|
89
90
|
}) => css`
|
|
90
91
|
${space}
|
|
91
92
|
|
|
92
93
|
box-sizing: border-box;
|
|
93
94
|
border: var(--${borderWidth}) solid ${getBorderColor(borderVariant)};
|
|
95
|
+
border-radius: ${roundness === "default" ? "var(--borderRadius100)" : "var(--borderRadius200)"};
|
|
96
|
+
overflow: hidden;
|
|
94
97
|
|
|
95
98
|
${variant === "tile" && css`
|
|
96
99
|
background-color: var(--colorsUtilityYang100);
|
|
@@ -8,6 +8,7 @@ declare const StyledDescription: import("styled-components").StyledComponent<"p"
|
|
|
8
8
|
declare const StyledTileSelect: import("styled-components").StyledComponent<"div", any, {
|
|
9
9
|
checked?: boolean | undefined;
|
|
10
10
|
disabled?: boolean | undefined;
|
|
11
|
+
hasAccordion?: boolean | undefined;
|
|
11
12
|
}, never>;
|
|
12
13
|
declare const StyledFocusWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
13
14
|
checked?: boolean | undefined;
|
|
@@ -35,6 +35,7 @@ const StyledDescription = styled.p`
|
|
|
35
35
|
const StyledTileSelect = styled.div`
|
|
36
36
|
background: var(--colorsActionMinorYang100);
|
|
37
37
|
padding: 24px;
|
|
38
|
+
|
|
38
39
|
${({
|
|
39
40
|
checked
|
|
40
41
|
}) => checked && css`
|
|
@@ -60,6 +61,9 @@ const StyledFocusWrapper = styled.div`
|
|
|
60
61
|
}) => css`
|
|
61
62
|
position: relative;
|
|
62
63
|
border: 1px solid var(--colorsActionMinor250);
|
|
64
|
+
border-radius: var(--borderRadius100);
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
|
|
63
67
|
${checked && css`
|
|
64
68
|
border-color: var(--colorsActionMajor500);
|
|
65
69
|
z-index: 10;
|
|
@@ -76,6 +80,7 @@ const StyledTileSelectContainer = styled.div`
|
|
|
76
80
|
|
|
77
81
|
width: 100%;
|
|
78
82
|
position: relative;
|
|
83
|
+
|
|
79
84
|
& + & ${StyledFocusWrapper} {
|
|
80
85
|
margin-top: -1px;
|
|
81
86
|
}
|
|
@@ -99,6 +104,9 @@ const StyledAccordionFooterWrapper = styled.div`
|
|
|
99
104
|
z-index: 200;
|
|
100
105
|
left: -12px;
|
|
101
106
|
|
|
107
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
108
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
109
|
+
|
|
102
110
|
${({
|
|
103
111
|
accordionExpanded
|
|
104
112
|
}) => `
|
|
@@ -28,6 +28,7 @@ const StyledTooltip = styled.div`
|
|
|
28
28
|
right: auto;
|
|
29
29
|
max-width: 300px;
|
|
30
30
|
width: max-content;
|
|
31
|
+
border-radius: var(--borderRadius050);
|
|
31
32
|
position: absolute;
|
|
32
33
|
animation: ${fadeIn} 0.2s linear;
|
|
33
34
|
z-index: ${theme.zIndex.popover}; // TODO (tokens): implement elevation tokens - FE-4437
|
|
@@ -63,6 +63,7 @@ const InputPresentationStyle = _styledComponents.default.div`
|
|
|
63
63
|
align-items: stretch;
|
|
64
64
|
background: var(--colorsUtilityYang100);
|
|
65
65
|
border: 1px solid var(--colorsUtilityMajor300);
|
|
66
|
+
border-radius: var(--borderRadius050);
|
|
66
67
|
box-sizing: border-box;
|
|
67
68
|
cursor: text;
|
|
68
69
|
display: flex;
|
|
@@ -14,6 +14,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
14
14
|
const StyledInput = _styledComponents.default.input`
|
|
15
15
|
background: transparent;
|
|
16
16
|
border: none;
|
|
17
|
+
border-radius: var(--borderRadius050);
|
|
17
18
|
color: var(--colorsUtilityYin090);
|
|
18
19
|
flex-grow: 1;
|
|
19
20
|
font-size: var(--fontSizes100);
|
|
@@ -31,6 +31,7 @@ const Menu = _styledComponents.default.div`
|
|
|
31
31
|
padding: var(--spacing100) 0;
|
|
32
32
|
box-shadow: var(--boxShadow100);
|
|
33
33
|
position: absolute;
|
|
34
|
+
border-radius: var(--borderRadius100);
|
|
34
35
|
background-color: var(--colorsUtilityYang100);
|
|
35
36
|
z-index: ${({
|
|
36
37
|
theme
|
|
@@ -61,6 +62,7 @@ const StyledMenuItem = _styledComponents.default.button`
|
|
|
61
62
|
&:focus {
|
|
62
63
|
outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
|
|
63
64
|
z-index: 1;
|
|
65
|
+
border-radius: var(--borderRadius000);
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
${({
|
|
@@ -117,6 +119,7 @@ exports.ButtonIcon = ButtonIcon;
|
|
|
117
119
|
const StyledButtonIcon = _styledComponents.default.div`
|
|
118
120
|
&:focus {
|
|
119
121
|
outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
|
|
122
|
+
border-radius: var(--borderRadius050);
|
|
120
123
|
}
|
|
121
124
|
`;
|
|
122
125
|
exports.StyledButtonIcon = StyledButtonIcon;
|
package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js
CHANGED
|
@@ -23,15 +23,19 @@ const StyledNavigationItem = _styledComponents.default.li`
|
|
|
23
23
|
border-left: var(--sizing050) solid var(--colorsActionMinor100);
|
|
24
24
|
font-weight: 700;
|
|
25
25
|
padding: 12px 24px;
|
|
26
|
+
border-top-right-radius: var(--borderRadius100);
|
|
27
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
26
28
|
|
|
27
29
|
&:focus {
|
|
28
30
|
outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
&:hover {
|
|
32
|
-
|
|
34
|
+
${({
|
|
33
35
|
isSelected
|
|
34
|
-
}) => !isSelected &&
|
|
36
|
+
}) => !isSelected && (0, _styledComponents.css)`
|
|
37
|
+
background-color: var(--colorsActionMinor100);
|
|
38
|
+
`};
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
${({
|
|
@@ -25,6 +25,7 @@ const StyledBatchSelection = _styledComponents.default.div`
|
|
|
25
25
|
}) => (0, _styledComponents.css)`
|
|
26
26
|
align-items: center;
|
|
27
27
|
display: inline-flex;
|
|
28
|
+
border-radius: var(--borderRadius100);
|
|
28
29
|
|
|
29
30
|
${hidden && "opacity: 0;"}
|
|
30
31
|
|
|
@@ -58,12 +59,17 @@ const StyledBatchSelection = _styledComponents.default.div`
|
|
|
58
59
|
|
|
59
60
|
${_iconButton.default}:hover {
|
|
60
61
|
background-color: var(--colorsActionMajor500);
|
|
62
|
+
border-radius: var(--borderRadius100);
|
|
61
63
|
|
|
62
64
|
${_icon.default} {
|
|
63
65
|
color: var(--colorsActionMajorYang100);
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
68
|
|
|
69
|
+
${_iconButton.default}:focus {
|
|
70
|
+
border-radius: var(--borderRadius100);
|
|
71
|
+
}
|
|
72
|
+
|
|
67
73
|
${disabled && (0, _styledComponents.css)`
|
|
68
74
|
background: transparent;
|
|
69
75
|
color: var(--colorsUtilityYin030);
|
|
@@ -9,6 +9,7 @@ export declare type AllowedNumericalValues = typeof GAP_VALUES[number];
|
|
|
9
9
|
export declare type Gap = AllowedNumericalValues | string;
|
|
10
10
|
declare type DesignTokensType = keyof typeof DesignTokens;
|
|
11
11
|
declare type BoxShadowsType = Extract<DesignTokensType, `boxShadow${string}`>;
|
|
12
|
+
declare type BorderRadiusType = Extract<DesignTokensType, `borderRadius${string}`>;
|
|
12
13
|
export interface BoxProps extends SpaceProps, LayoutProps, FlexboxProps, ColorProps, Omit<PositionProps, "zIndex"> {
|
|
13
14
|
as?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
|
|
14
15
|
/** String to set Box content break strategy. Note "anywhere" is not supported in Safari */
|
|
@@ -27,6 +28,8 @@ export interface BoxProps extends SpaceProps, LayoutProps, FlexboxProps, ColorPr
|
|
|
27
28
|
rowGap?: Gap;
|
|
28
29
|
/** Design Token for Box Shadow. Note: please check that the box shadow design token you are using is compatible with the Box component. */
|
|
29
30
|
boxShadow?: BoxShadowsType;
|
|
31
|
+
/** Design Token for Border Radius. Note: please check that the border radius design token you are using is compatible with the Box component. */
|
|
32
|
+
borderRadius?: BorderRadiusType;
|
|
30
33
|
}
|
|
31
34
|
export declare const Box: import("styled-components").StyledComponent<"div", any, BoxProps, never>;
|
|
32
35
|
export default Box;
|
|
@@ -56,14 +56,6 @@ function stylingForType({
|
|
|
56
56
|
destructive
|
|
57
57
|
}) {
|
|
58
58
|
return (0, _styledComponents.css)`
|
|
59
|
-
border: 2px solid transparent;
|
|
60
|
-
box-sizing: border-box;
|
|
61
|
-
font-weight: 600;
|
|
62
|
-
text-decoration: none;
|
|
63
|
-
&:focus {
|
|
64
|
-
outline: solid 3px var(--colorsSemanticFocus500);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
59
|
${(0, _buttonTypes.default)(disabled, destructive)[buttonType]};
|
|
68
60
|
|
|
69
61
|
${size === "small" && (0, _styledComponents.css)`
|
|
@@ -94,11 +86,20 @@ const StyledButton = _styledComponents.default.button`
|
|
|
94
86
|
align-items: center;
|
|
95
87
|
cursor: ${disabled ? "not-allowed" : "pointer"};
|
|
96
88
|
display: inline-flex;
|
|
97
|
-
border-radius: 0;
|
|
98
89
|
${noWrap ? "white-space: nowrap;" : "flex-flow: wrap;"}
|
|
99
90
|
justify-content: center;
|
|
100
91
|
vertical-align: middle;
|
|
101
92
|
outline-offset: 0;
|
|
93
|
+
border: 2px solid transparent;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
font-weight: 600;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
border-radius: var(--borderRadius400);
|
|
98
|
+
|
|
99
|
+
&:focus {
|
|
100
|
+
outline: solid 3px var(--colorsSemanticFocus500);
|
|
101
|
+
}
|
|
102
|
+
|
|
102
103
|
${stylingForType}
|
|
103
104
|
`}
|
|
104
105
|
|
|
@@ -43,20 +43,38 @@ const StyledButtonBar = _styledComponents.default.div`
|
|
|
43
43
|
margin: 0;
|
|
44
44
|
border: 2px solid var(--colorsActionMajor500);
|
|
45
45
|
|
|
46
|
+
:not(:first-child):not(:last-child) {
|
|
47
|
+
border-radius: var(--borderRadius000);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:first-child:not(:last-child) {
|
|
51
|
+
border-top-right-radius: var(--borderRadius000);
|
|
52
|
+
border-bottom-right-radius: var(--borderRadius000);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:last-child:not(:first-child) {
|
|
56
|
+
border-top-left-radius: var(--borderRadius000);
|
|
57
|
+
border-bottom-left-radius: var(--borderRadius000);
|
|
58
|
+
}
|
|
59
|
+
|
|
46
60
|
&:not(:last-of-type) {
|
|
47
61
|
border-right-color: transparent;
|
|
48
62
|
}
|
|
63
|
+
|
|
49
64
|
&:not(:first-of-type) {
|
|
50
65
|
margin-left: -2px;
|
|
51
66
|
}
|
|
67
|
+
|
|
52
68
|
&:focus {
|
|
53
69
|
position: relative;
|
|
54
70
|
z-index: 2;
|
|
55
71
|
border-right-color: var(--colorsActionMajor500);
|
|
56
72
|
}
|
|
73
|
+
|
|
57
74
|
&:hover {
|
|
58
75
|
background-color: var(--colorsActionMajor600);
|
|
59
76
|
border-color: var(--colorsActionMajor600);
|
|
77
|
+
|
|
60
78
|
& + button {
|
|
61
79
|
border-left-color: var(--colorsActionMajor600);
|
|
62
80
|
}
|
|
@@ -64,6 +82,7 @@ const StyledButtonBar = _styledComponents.default.div`
|
|
|
64
82
|
color: white;
|
|
65
83
|
}
|
|
66
84
|
}
|
|
85
|
+
|
|
67
86
|
& ${_icon.default} {
|
|
68
87
|
color: var(--colorsActionMajor500);
|
|
69
88
|
}
|
|
@@ -21,17 +21,19 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
21
21
|
|
|
22
22
|
function makeColors(color) {
|
|
23
23
|
return `
|
|
24
|
-
color: ${color};
|
|
25
|
-
${_icon.default} {
|
|
26
24
|
color: ${color};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
${_icon.default} {
|
|
26
|
+
color: ${color};
|
|
27
|
+
}
|
|
28
|
+
${_loaderSquare.default} {
|
|
29
|
+
background-color: ${color};
|
|
30
|
+
}
|
|
31
31
|
`;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const StyledButtonMinor = (0, _styledComponents.default)(_button.default)`
|
|
35
|
+
border-radius: var(--borderRadius050);
|
|
36
|
+
|
|
35
37
|
${({
|
|
36
38
|
children
|
|
37
39
|
}) => !children && (0, _styledComponents.css)`
|
|
@@ -46,54 +48,54 @@ const StyledButtonMinor = (0, _styledComponents.default)(_button.default)`
|
|
|
46
48
|
disabled
|
|
47
49
|
}) => !destructive && !disabled && (0, _styledComponents.css)`
|
|
48
50
|
${buttonType === "primary" && `
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
background: var(--colorsActionMinor500);
|
|
52
|
+
border-color: var(--colorsActionMinorTransparent);
|
|
53
|
+
${makeColors("var(--colorsActionMinorYang100)")}
|
|
54
|
+
&:hover {
|
|
55
|
+
background: var(--colorsActionMinor600);
|
|
56
|
+
}
|
|
57
|
+
`}
|
|
56
58
|
|
|
57
59
|
${buttonType === "secondary" && `
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
background: transparent;
|
|
61
|
+
padding: var(--spacing100);
|
|
62
|
+
border-color: var(--colorsActionMinor500);
|
|
63
|
+
${makeColors("var(--colorsActionMinor500)")}
|
|
64
|
+
&:hover {
|
|
65
|
+
color: var(--colorsActionMinorYang100);
|
|
66
|
+
background: var(--colorsActionMinor600);
|
|
67
|
+
}
|
|
68
|
+
`}
|
|
67
69
|
|
|
68
70
|
${buttonType === "tertiary" && `
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
background: transparent;
|
|
72
|
+
padding: var(--spacing100);
|
|
73
|
+
${makeColors("var(--colorsActionMinor500)")}
|
|
74
|
+
&:hover {
|
|
75
|
+
color: var(--colorsActionMinorYang100);
|
|
76
|
+
background: var(--colorsActionMinor600);
|
|
77
|
+
}
|
|
78
|
+
`}
|
|
77
79
|
`}
|
|
78
80
|
|
|
79
81
|
${({
|
|
80
82
|
size
|
|
81
83
|
}) => (0, _styledComponents.css)`
|
|
82
84
|
${size === "small" && `
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
min-height: 32px;
|
|
86
|
+
padding: var(--spacing000) var(--spacing100) var(--spacing000)
|
|
87
|
+
var(--spacing100);
|
|
88
|
+
`}
|
|
87
89
|
|
|
88
90
|
${size === "medium" && `
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
padding-left: var(--spacing150);
|
|
92
|
+
padding-right: var(--spacing150);
|
|
93
|
+
`}
|
|
92
94
|
|
|
93
95
|
${size === "large" && `
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
padding-left: var(--spacing200);
|
|
97
|
+
padding-right: var(--spacing200);
|
|
98
|
+
`}
|
|
97
99
|
`}
|
|
98
100
|
`;
|
|
99
101
|
var _default = StyledButtonMinor;
|
|
@@ -106,7 +106,8 @@ const ButtonToggle = ({
|
|
|
106
106
|
htmlFor: inputGuid,
|
|
107
107
|
onMouseEnter: onMouseEnter,
|
|
108
108
|
onMouseLeave: onMouseLeave,
|
|
109
|
-
size: size
|
|
109
|
+
size: size,
|
|
110
|
+
grouped: grouped
|
|
110
111
|
}, /*#__PURE__*/_react.default.createElement(_buttonToggle.StyledButtonToggleContentWrapper, null, icon, children)));
|
|
111
112
|
};
|
|
112
113
|
|
|
@@ -10,6 +10,7 @@ export interface StyledButtonToggleLabelProps {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
/** ButtonToggle size */
|
|
12
12
|
size: "small" | "medium" | "large";
|
|
13
|
+
grouped?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare const StyledButtonToggleLabel: import("styled-components").StyledComponent<"label", any, StyledButtonToggleLabelProps, never>;
|
|
15
16
|
export interface StyledButtonToggleIconProps {
|