carbon-react 144.3.0 → 144.4.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__/utils/helpers/events/composedPath.js +1 -6
- package/esm/__internal__/utils/helpers/events/events.js +1 -1
- package/esm/components/action-popover/action-popover.style.js +8 -8
- package/esm/components/breadcrumbs/crumb/crumb.style.js +2 -2
- package/esm/components/button-toggle/button-toggle.style.js +19 -19
- package/esm/components/card/card.config.d.ts +2 -2
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +6 -2
- package/esm/components/dialog/dialog.component.d.ts +1 -1
- package/esm/components/dialog/dialog.config.d.ts +1 -1
- package/esm/components/dialog/dialog.style.js +2 -2
- package/esm/components/drawer/drawer.style.js +16 -16
- package/esm/components/flat-table/flat-table.style.js +9 -9
- package/esm/components/form/form.config.d.ts +1 -1
- package/esm/components/hr/hr.component.d.ts +1 -0
- package/esm/components/loader-spinner/loader-spinner.config.d.ts +2 -2
- package/esm/components/loader-spinner/loader-spinner.style.js +5 -5
- package/esm/components/loader-star/internal/star.component.d.ts +1 -0
- package/esm/components/loader-star/loader-star.component.d.ts +1 -0
- package/esm/components/menu/menu-segment-title/menu-segment-title.component.d.ts +1 -1
- package/esm/components/note/note.component.d.ts +1 -1
- package/esm/components/note/note.component.js +10 -2
- package/esm/components/note/note.style.d.ts +2 -2
- package/esm/components/note/note.style.js +7 -4
- package/esm/components/numeral-date/numeral-date.component.d.ts +1 -1
- package/esm/components/pager/pager.style.js +2 -2
- package/esm/components/pod/pod.config.d.ts +3 -3
- package/esm/components/pod/pod.style.js +34 -34
- package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
- package/esm/components/select/__internal__/list-action-button/list-action-button.style.js +3 -1
- package/esm/components/switch/switch.style.js +8 -8
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +2 -1
- package/esm/components/textbox/textbox.style.js +8 -8
- package/esm/components/tile/flex-tile-divider/flex-tile-divider.component.d.ts +1 -0
- package/esm/components/tile/tile.component.d.ts +1 -1
- package/esm/components/typography/typography.component.d.ts +1 -1
- package/esm/components/typography/typography.style.js +1 -1
- package/esm/components/vertical-divider/vertical-divider.component.d.ts +1 -0
- package/esm/global.d.ts +1 -1
- package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +1 -0
- package/esm/style/utils/box-gap.d.ts +1 -1
- package/lib/__internal__/utils/helpers/events/composedPath.js +1 -6
- package/lib/__internal__/utils/helpers/events/events.js +1 -1
- package/lib/components/action-popover/action-popover.style.js +8 -8
- package/lib/components/breadcrumbs/crumb/crumb.style.js +2 -2
- package/lib/components/button-toggle/button-toggle.style.js +19 -19
- package/lib/components/card/card.config.d.ts +2 -2
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +6 -2
- package/lib/components/dialog/dialog.component.d.ts +1 -1
- package/lib/components/dialog/dialog.config.d.ts +1 -1
- package/lib/components/dialog/dialog.style.js +2 -2
- package/lib/components/drawer/drawer.style.js +16 -16
- package/lib/components/flat-table/flat-table.style.js +9 -9
- package/lib/components/form/form.config.d.ts +1 -1
- package/lib/components/hr/hr.component.d.ts +1 -0
- package/lib/components/loader-spinner/loader-spinner.config.d.ts +2 -2
- package/lib/components/loader-spinner/loader-spinner.style.js +5 -5
- package/lib/components/loader-star/internal/star.component.d.ts +1 -0
- package/lib/components/loader-star/loader-star.component.d.ts +1 -0
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.d.ts +1 -1
- package/lib/components/note/note.component.d.ts +1 -1
- package/lib/components/note/note.component.js +9 -1
- package/lib/components/note/note.style.d.ts +2 -2
- package/lib/components/note/note.style.js +7 -4
- package/lib/components/numeral-date/numeral-date.component.d.ts +1 -1
- package/lib/components/pager/pager.style.js +2 -2
- package/lib/components/pod/pod.config.d.ts +3 -3
- package/lib/components/pod/pod.style.js +34 -34
- package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
- package/lib/components/select/__internal__/list-action-button/list-action-button.style.js +3 -1
- package/lib/components/switch/switch.style.js +8 -8
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +2 -1
- package/lib/components/textbox/textbox.style.js +8 -8
- package/lib/components/tile/flex-tile-divider/flex-tile-divider.component.d.ts +1 -0
- package/lib/components/tile/tile.component.d.ts +1 -1
- package/lib/components/typography/typography.component.d.ts +1 -1
- package/lib/components/typography/typography.style.js +1 -1
- package/lib/components/vertical-divider/vertical-divider.component.d.ts +1 -0
- package/lib/global.d.ts +1 -1
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.d.ts +1 -0
- package/lib/style/utils/box-gap.d.ts +1 -1
- package/package.json +3 -10
|
@@ -25,14 +25,14 @@ const ErrorBorder = exports.ErrorBorder = _styledComponents.default.span`
|
|
|
25
25
|
${({
|
|
26
26
|
warning
|
|
27
27
|
}) => (0, _styledComponents.css)`
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
position: absolute;
|
|
29
|
+
z-index: 6;
|
|
30
|
+
width: 2px;
|
|
31
|
+
background-color: ${warning ? "var(--colorsSemanticCaution500)" : "var(--colorsSemanticNegative500)"};
|
|
32
|
+
left: -12px;
|
|
33
|
+
bottom: -4px;
|
|
34
|
+
top: 2px;
|
|
35
|
+
`}
|
|
36
36
|
`;
|
|
37
37
|
const StyledHintText = exports.StyledHintText = _styledComponents.default.div`
|
|
38
38
|
margin-top: 8px;
|
package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js
CHANGED
|
@@ -27,7 +27,8 @@ const ToolbarButton = exports.ToolbarButton = /*#__PURE__*/_react.default.forwar
|
|
|
27
27
|
onKeyDown: onKeyDown,
|
|
28
28
|
onMouseDown: onMouseDown,
|
|
29
29
|
isActive: activated,
|
|
30
|
-
"aria-label": ariaLabel
|
|
30
|
+
"aria-label": ariaLabel,
|
|
31
|
+
"aria-pressed": activated
|
|
31
32
|
}, !tabbable && {
|
|
32
33
|
tabIndex: -1
|
|
33
34
|
}, {
|
|
@@ -12,14 +12,14 @@ const ErrorBorder = exports.ErrorBorder = _styledComponents.default.span`
|
|
|
12
12
|
warning,
|
|
13
13
|
inline
|
|
14
14
|
}) => (0, _styledComponents.css)`
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
position: absolute;
|
|
16
|
+
z-index: 6;
|
|
17
|
+
width: 2px;
|
|
18
|
+
background-color: ${warning ? "var(--colorsSemanticCaution500)" : "var(--colorsSemanticNegative500)"};
|
|
19
|
+
left: -12px;
|
|
20
|
+
bottom: ${inline ? "10px" : "0px"};
|
|
21
|
+
top: 0px;
|
|
22
|
+
`}
|
|
23
23
|
`;
|
|
24
24
|
const StyledHintText = exports.StyledHintText = _styledComponents.default.div`
|
|
25
25
|
::after {
|
|
@@ -4,7 +4,7 @@ import { SpaceProps, WidthProps } from "styled-system";
|
|
|
4
4
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
5
5
|
import { TILE_HIGHLIGHT_VARIANTS } from "./tile.config";
|
|
6
6
|
declare type DesignTokensType = keyof typeof DesignTokens;
|
|
7
|
-
declare type HighlightVariantType = typeof TILE_HIGHLIGHT_VARIANTS[number];
|
|
7
|
+
declare type HighlightVariantType = (typeof TILE_HIGHLIGHT_VARIANTS)[number];
|
|
8
8
|
export interface TileProps extends SpaceProps, WidthProps, TagProps {
|
|
9
9
|
/** Sets the theme of the tile */
|
|
10
10
|
variant?: "tile" | "transparent" | "active" | "grey";
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
4
4
|
export declare const VARIANT_TYPES: readonly ["h1-large", "h1", "h2", "h3", "h4", "h5", "segment-header", "segment-header-small", "segment-subheader", "segment-subheader-alt", "p", "span", "small", "big", "sup", "sub", "strong", "b", "em", "ul", "ol"];
|
|
5
|
-
export declare type VariantTypes = typeof VARIANT_TYPES[number];
|
|
5
|
+
export declare type VariantTypes = (typeof VARIANT_TYPES)[number];
|
|
6
6
|
export interface TypographyProps extends SpaceProps, TagProps {
|
|
7
7
|
/** Override the variant component */
|
|
8
8
|
as?: React.ElementType;
|
|
@@ -191,7 +191,7 @@ const StyledTypography = _styledComponents.default.span.attrs(({
|
|
|
191
191
|
${variant === "sup" && "vertical-align: super;"};
|
|
192
192
|
${variant === "sub" && "vertical-align: sub;"};
|
|
193
193
|
${display && `display: ${display};`};
|
|
194
|
-
${listStyleType && `list-style-type: ${listStyleType};`};
|
|
194
|
+
${listStyleType && `list-style-type: ${listStyleType};`};
|
|
195
195
|
`}
|
|
196
196
|
${_styledSystem.space}
|
|
197
197
|
${({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SpaceProps } from "styled-system";
|
|
2
3
|
declare type TintRange = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100;
|
|
3
4
|
export interface VerticalDividerProps extends SpaceProps {
|
package/lib/global.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare global {
|
|
|
7
7
|
interface Window {
|
|
8
8
|
__CARBON_INTERNALS_MODAL_LIST?: ModalList;
|
|
9
9
|
__CARBON_INTERNALS_MODAL_SETTER_LIST?: ((
|
|
10
|
-
topModal: HTMLElement | null
|
|
10
|
+
topModal: HTMLElement | null,
|
|
11
11
|
) => void)[];
|
|
12
12
|
__CARBON_INTERNALS_SCROLL_BLOCKERS?: {
|
|
13
13
|
components: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const GAP_VALUES: number[];
|
|
2
|
-
export declare type AllowedNumericalValues = typeof GAP_VALUES[number];
|
|
2
|
+
export declare type AllowedNumericalValues = (typeof GAP_VALUES)[number];
|
|
3
3
|
export declare type Gap = AllowedNumericalValues | string;
|
|
4
4
|
export declare const getGapValue: (gapValue: number | string) => string;
|
|
5
5
|
export default function gap(gapValue: number | string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-react",
|
|
3
|
-
"version": "144.
|
|
3
|
+
"version": "144.4.1",
|
|
4
4
|
"description": "A library of reusable React components for easily building user interfaces.",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
"@testing-library/user-event": "^14.5.1",
|
|
98
98
|
"@types/crypto-js": "^4.2.1",
|
|
99
99
|
"@types/draft-js": "^0.11.10",
|
|
100
|
-
"@types/enzyme": "3.10.13",
|
|
101
100
|
"@types/glob": "^8.1.0",
|
|
102
101
|
"@types/invariant": "^2.2.37",
|
|
103
102
|
"@types/jest": "^29.5.0",
|
|
@@ -114,7 +113,6 @@
|
|
|
114
113
|
"@types/uuid": "^8.3.4",
|
|
115
114
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
116
115
|
"@typescript-eslint/parser": "^5.59.5",
|
|
117
|
-
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
118
116
|
"axe-core": "^4.8.2",
|
|
119
117
|
"babel-jest": "^29.7.0",
|
|
120
118
|
"babel-plugin-dev-expression": "^0.2.3",
|
|
@@ -130,8 +128,6 @@
|
|
|
130
128
|
"date-fns-tz": "^1.3.8",
|
|
131
129
|
"dayjs": "^1.11.10",
|
|
132
130
|
"draft-js": "^0.11.7",
|
|
133
|
-
"enzyme": "^3.11.0",
|
|
134
|
-
"enzyme-to-json": "^3.6.2",
|
|
135
131
|
"eslint": "^8.55.0",
|
|
136
132
|
"eslint-config-airbnb": "^19.0.0",
|
|
137
133
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -162,7 +158,7 @@
|
|
|
162
158
|
"mockdate": "^2.0.5",
|
|
163
159
|
"nock": "^13.3.8",
|
|
164
160
|
"node-fetch": "^3.3.2",
|
|
165
|
-
"prettier": "~
|
|
161
|
+
"prettier": "~3.3.3",
|
|
166
162
|
"raf": "^3.4.1",
|
|
167
163
|
"react": "^17.0.2",
|
|
168
164
|
"react-dom": "^17.0.2",
|
|
@@ -209,10 +205,7 @@
|
|
|
209
205
|
"overrides": {
|
|
210
206
|
"playwright-core": "$@playwright/experimental-ct-react17",
|
|
211
207
|
"@testing-library/dom": "$@testing-library/dom",
|
|
212
|
-
"jsdom": "$jsdom"
|
|
213
|
-
"enzyme": {
|
|
214
|
-
"cheerio": "1.0.0-rc.12"
|
|
215
|
-
}
|
|
208
|
+
"jsdom": "$jsdom"
|
|
216
209
|
},
|
|
217
210
|
"config": {
|
|
218
211
|
"commitizen": {
|