carbon-react 111.16.0 → 111.17.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 (47) hide show
  1. package/esm/components/confirm/confirm.component.d.ts +37 -0
  2. package/esm/components/confirm/confirm.component.js +46 -113
  3. package/esm/components/confirm/confirm.config.d.ts +1 -0
  4. package/esm/components/confirm/confirm.style.d.ts +5 -0
  5. package/esm/components/confirm/confirm.style.js +1 -5
  6. package/esm/components/confirm/index.d.ts +2 -1
  7. package/esm/components/dialog-full-screen/content.style.d.ts +7 -0
  8. package/esm/components/dialog-full-screen/dialog-full-screen.component.d.ts +55 -0
  9. package/esm/components/dialog-full-screen/dialog-full-screen.component.js +45 -80
  10. package/esm/components/dialog-full-screen/dialog-full-screen.style.d.ts +4 -0
  11. package/esm/components/dialog-full-screen/index.d.ts +2 -1
  12. package/esm/components/modal/modal.component.d.ts +2 -1
  13. package/esm/components/modal/modal.component.js +3 -0
  14. package/esm/components/tile/tile-footer/tile-footer.component.js +3 -5
  15. package/esm/components/tile/tile-footer/tile-footer.d.ts +1 -1
  16. package/esm/components/tile/tile-footer/tile-footer.style.js +15 -1
  17. package/esm/components/tile/tile.component.js +10 -3
  18. package/esm/components/tile/tile.d.ts +15 -0
  19. package/esm/components/tile/tile.style.js +30 -3
  20. package/esm/style/design-tokens/debug-theme.util.d.ts +15 -1
  21. package/esm/style/themes/sage/index.d.ts +15 -1
  22. package/lib/components/confirm/confirm.component.d.ts +37 -0
  23. package/lib/components/confirm/confirm.component.js +47 -114
  24. package/lib/components/confirm/confirm.config.d.ts +1 -0
  25. package/lib/components/confirm/confirm.style.d.ts +5 -0
  26. package/lib/components/confirm/confirm.style.js +1 -6
  27. package/lib/components/confirm/index.d.ts +2 -1
  28. package/lib/components/dialog-full-screen/content.style.d.ts +7 -0
  29. package/lib/components/dialog-full-screen/dialog-full-screen.component.d.ts +55 -0
  30. package/lib/components/dialog-full-screen/dialog-full-screen.component.js +46 -81
  31. package/lib/components/dialog-full-screen/dialog-full-screen.style.d.ts +4 -0
  32. package/lib/components/dialog-full-screen/index.d.ts +2 -1
  33. package/lib/components/modal/modal.component.d.ts +2 -1
  34. package/lib/components/modal/modal.component.js +3 -0
  35. package/lib/components/tile/tile-footer/tile-footer.component.js +4 -3
  36. package/lib/components/tile/tile-footer/tile-footer.d.ts +1 -1
  37. package/lib/components/tile/tile-footer/tile-footer.style.js +14 -1
  38. package/lib/components/tile/tile.component.js +12 -2
  39. package/lib/components/tile/tile.d.ts +15 -0
  40. package/lib/components/tile/tile.style.js +29 -3
  41. package/lib/style/design-tokens/debug-theme.util.d.ts +15 -1
  42. package/lib/style/themes/sage/index.d.ts +15 -1
  43. package/package.json +3 -3
  44. package/esm/components/confirm/confirm.d.ts +0 -50
  45. package/esm/components/dialog-full-screen/dialog-full-screen.d.ts +0 -52
  46. package/lib/components/confirm/confirm.d.ts +0 -50
  47. package/lib/components/dialog-full-screen/dialog-full-screen.d.ts +0 -52
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = exports.DialogFullScreen = void 0;
7
7
 
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
 
@@ -45,7 +45,7 @@ const DialogFullScreen = ({
45
45
  "aria-describedby": ariaDescribedBy,
46
46
  "aria-label": ariaLabel,
47
47
  "aria-labelledby": ariaLabelledBy,
48
- disableAutoFocus,
48
+ disableAutoFocus = false,
49
49
  focusFirstElement,
50
50
  bespokeFocusTrap,
51
51
  open,
@@ -54,7 +54,7 @@ const DialogFullScreen = ({
54
54
  subtitle,
55
55
  pagesStyling,
56
56
  headerChildren,
57
- showCloseIcon,
57
+ showCloseIcon = true,
58
58
  disableContentPadding,
59
59
  disableEscKey,
60
60
  onCancel,
@@ -141,90 +141,55 @@ const DialogFullScreen = ({
141
141
  }, children))));
142
142
  };
143
143
 
144
- DialogFullScreen.defaultProps = {
145
- showCloseIcon: true,
146
- disableAutoFocus: false
147
- };
144
+ exports.DialogFullScreen = DialogFullScreen;
148
145
  DialogFullScreen.propTypes = {
149
- /** Prop to specify the aria-describedby property of the DialogFullscreen component */
150
146
  "aria-describedby": _propTypes.default.string,
151
-
152
- /**
153
- * Prop to specify the aria-label of the DialogFullscreen component.
154
- * To be used only when the title prop is not defined, and the component is not labelled by any internal element.
155
- */
156
147
  "aria-label": _propTypes.default.string,
157
-
158
- /**
159
- * Prop to specify the aria-labelledby property of the DialogFullscreen component
160
- * To be used when the title prop is a custom React Node,
161
- * or the component is labelled by an internal element other than the title.
162
- */
163
148
  "aria-labelledby": _propTypes.default.string,
164
-
165
- /** Controls the open state of the component */
166
- open: _propTypes.default.bool.isRequired,
167
-
168
- /** A custom close event handler */
169
- onCancel: _propTypes.default.func,
170
-
171
- /** Optional reference to an element meant to be focused on open */
172
- focusFirstElement: _propTypes.default.shape({
173
- current: _propTypes.default.any
174
- }),
175
-
176
- /** Disables auto focus functionality on child elements */
177
- disableAutoFocus: _propTypes.default.bool,
178
-
179
- /**
180
- * Function to replace focus trap
181
- * @ignore
182
- * @private
183
- */
184
- bespokeFocusTrap: _propTypes.default.func,
185
-
186
- /** Determines if the Esc Key closes the Dialog */
187
- disableEscKey: _propTypes.default.bool,
188
-
189
- /** Adds Help tooltip to Header */
190
- help: _propTypes.default.string,
191
-
192
- /** remove padding from content */
193
- disableContentPadding: _propTypes.default.bool,
194
-
195
- /** Child elements */
196
- children: _propTypes.default.node,
197
-
198
- /** Title displayed at top of dialog */
199
- title: _propTypes.default.node,
200
-
201
- /** Subtitle displayed at top of dialog */
202
- subtitle: _propTypes.default.string,
203
-
204
- /** Determines if the close icon is shown */
205
- showCloseIcon: _propTypes.default.bool,
206
-
207
- /** Container for components to be displayed in the header */
208
- headerChildren: _propTypes.default.node,
209
-
210
- /** For legacy styling when used with Pages component. Do not use this unless using Pages within a DialogFullScreen */
211
- pagesStyling: _propTypes.default.bool,
212
-
213
- /** Reference to the scrollable content element */
214
- contentRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
215
- current: _propTypes.default.instanceOf(Element)
149
+ "ariaRole": _propTypes.default.string,
150
+ "bespokeFocusTrap": _propTypes.default.func,
151
+ "children": _propTypes.default.node,
152
+ "className": _propTypes.default.string,
153
+ "contentRef": _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
154
+ "current": _propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.object]).isRequired
216
155
  })]),
217
-
218
- /** The ARIA role to be applied to the DialogFullscreen container */
219
- role: _propTypes.default.string,
220
-
221
- /** an optional array of refs to containers whose content should also be reachable by tabbing from the dialog */
222
- focusableContainers: _propTypes.default.arrayOf(_propTypes.default.shape({
223
- current: _propTypes.default.any
156
+ "data-component": _propTypes.default.string,
157
+ "data-element": _propTypes.default.string,
158
+ "data-role": _propTypes.default.string,
159
+ "disableAutoFocus": _propTypes.default.bool,
160
+ "disableClose": _propTypes.default.bool,
161
+ "disableContentPadding": _propTypes.default.bool,
162
+ "disableEscKey": _propTypes.default.bool,
163
+ "enableBackgroundUI": _propTypes.default.bool,
164
+ "focusableContainers": _propTypes.default.arrayOf(_propTypes.default.shape({
165
+ "current": _propTypes.default.oneOfType([_propTypes.default.oneOf([null]), function (props, propName) {
166
+ if (props[propName] == null) {
167
+ return new Error("Prop '" + propName + "' is required but wasn't specified");
168
+ } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
169
+ return new Error("Expected prop '" + propName + "' to be of type Element");
170
+ }
171
+ }]).isRequired
224
172
  })),
225
-
226
- /** Optional selector to identify the focusable elements, if not provided a default selector is used */
227
- focusableSelectors: _propTypes.default.string
173
+ "focusableSelectors": _propTypes.default.string,
174
+ "focusFirstElement": _propTypes.default.shape({
175
+ "current": _propTypes.default.oneOfType([_propTypes.default.oneOf([null]), function (props, propName) {
176
+ if (props[propName] == null) {
177
+ return new Error("Prop '" + propName + "' is required but wasn't specified");
178
+ } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
179
+ return new Error("Expected prop '" + propName + "' to be of type Element");
180
+ }
181
+ }]).isRequired
182
+ }),
183
+ "headerChildren": _propTypes.default.node,
184
+ "help": _propTypes.default.string,
185
+ "onCancel": _propTypes.default.func,
186
+ "open": _propTypes.default.bool.isRequired,
187
+ "pagesStyling": _propTypes.default.bool,
188
+ "role": _propTypes.default.string,
189
+ "showCloseIcon": _propTypes.default.bool,
190
+ "subtitle": _propTypes.default.string,
191
+ "timeout": _propTypes.default.number,
192
+ "title": _propTypes.default.node
228
193
  };
229
194
  var _default = DialogFullScreen;
230
195
  exports.default = _default;
@@ -0,0 +1,4 @@
1
+ declare const StyledDialogFullScreen: import("styled-components").StyledComponent<"div", any, {
2
+ pagesStyling?: boolean | undefined;
3
+ }, never>;
4
+ export default StyledDialogFullScreen;
@@ -1 +1,2 @@
1
- export { default } from "./dialog-full-screen";
1
+ export { default } from "./dialog-full-screen.component";
2
+ export type { DialogFullScreenProps } from "./dialog-full-screen.component";
@@ -1,11 +1,12 @@
1
1
  import React from "react";
2
+ import { TagProps } from "../../__internal__/utils/helpers/tags";
2
3
  export interface ModalContextProps {
3
4
  isInModal?: boolean;
4
5
  isAnimationComplete?: boolean;
5
6
  triggerRefocusFlag?: boolean;
6
7
  }
7
8
  export declare const ModalContext: React.Context<ModalContextProps>;
8
- export interface ModalProps {
9
+ export interface ModalProps extends TagProps {
9
10
  /** Custom class name */
10
11
  className?: string;
11
12
  /** Modal content */
@@ -123,6 +123,9 @@ Modal.propTypes = {
123
123
  "ariaRole": _propTypes.default.string,
124
124
  "children": _propTypes.default.node,
125
125
  "className": _propTypes.default.string,
126
+ "data-component": _propTypes.default.string,
127
+ "data-element": _propTypes.default.string,
128
+ "data-role": _propTypes.default.string,
126
129
  "disableClose": _propTypes.default.bool,
127
130
  "disableEscKey": _propTypes.default.bool,
128
131
  "enableBackgroundUI": _propTypes.default.bool,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = exports.TileFooter = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -32,10 +32,11 @@ const TileFooter = ({
32
32
  }, props), children);
33
33
  };
34
34
 
35
+ exports.TileFooter = TileFooter;
35
36
  TileFooter.propTypes = { ...paddingPropTypes,
36
37
 
37
- /** set which background color variant should be used */
38
- variant: _propTypes.default.oneOf(["default", "transparent"]),
38
+ /** Sets which background color variant should be used */
39
+ variant: _propTypes.default.oneOf(["default", "black", "transparent"]),
39
40
  children: _propTypes.default.node
40
41
  };
41
42
  var _default = TileFooter;
@@ -3,7 +3,7 @@ import { PaddingProps } from "styled-system";
3
3
 
4
4
  export interface TileFooterProps extends PaddingProps {
5
5
  /** set which background color variant should be used */
6
- variant?: "default" | "transparent";
6
+ variant?: "default" | "black" | "transparent";
7
7
  }
8
8
 
9
9
  declare function TileFooter(
@@ -15,13 +15,26 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
15
15
 
16
16
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
+ const getBackgroundColor = variant => {
19
+ switch (variant) {
20
+ case "transparent":
21
+ return "transparent";
22
+
23
+ case "black":
24
+ return "var(--colorsUtilityYin100)";
25
+
26
+ default:
27
+ return "var(--colorsUtilityMajor100)";
28
+ }
29
+ };
30
+
18
31
  const StyledTileFooter = _styledComponents.default.div`
19
32
  ${_styledSystem.padding}
20
33
 
21
34
  ${({
22
35
  variant
23
36
  }) => (0, _styledComponents.css)`
24
- background: ${variant === "transparent" ? "transparent" : "var(--colorsUtilityMajor025)"};
37
+ background: ${getBackgroundColor(variant)};
25
38
  border-top: 1px solid var(--colorsUtilityMajor100);
26
39
  `}
27
40
  `;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = exports.Tile = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -61,7 +61,11 @@ const Tile = ({
61
61
  p: p
62
62
  }, props), wrappedChildren);
63
63
  };
64
+ /** TODO: When we convert this to typescript, dynamically pull the border tokens for borderWidth
65
+ * See how the Box component does this with boxShadows for an example */
64
66
 
67
+
68
+ exports.Tile = Tile;
65
69
  Tile.propTypes = {
66
70
  /** Styled system spacing props */
67
71
  ..._propTypes2.default.space,
@@ -85,7 +89,13 @@ Tile.propTypes = {
85
89
  * Set a percentage-based width for the whole Tile component, relative to its parent.
86
90
  * If unset or zero, this will default to 100%.
87
91
  */
88
- width: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])
92
+ width: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
93
+
94
+ /** Sets the border width by using these design tokens */
95
+ borderWidth: _propTypes.default.oneOf(["borderWidth000", "borderWidth100", "borderWidth200", "borderWidth300", "borderWidth400"]),
96
+
97
+ /** Sets the border variant that should be used */
98
+ borderVariant: _propTypes.default.oneOf(["default", "selected", "positive", "negative", "caution", "info"])
89
99
  };
90
100
  var _default = Tile;
91
101
  exports.default = _default;
@@ -24,6 +24,21 @@ export interface TileProps extends SpaceProps {
24
24
  * If unset or zero, this will default to 100%.
25
25
  */
26
26
  width?: string | number;
27
+ /** Sets the border width by using these design tokens */
28
+ borderWidth?:
29
+ | "borderWidth000"
30
+ | "borderWidth100"
31
+ | "borderWidth200"
32
+ | "borderWidth300"
33
+ | "borderWidth400";
34
+ /** Sets the border variant that should be used */
35
+ borderVariant?:
36
+ | "default"
37
+ | "selected"
38
+ | "positive"
39
+ | "negative"
40
+ | "caution"
41
+ | "info";
27
42
  }
28
43
 
29
44
  declare function Tile(props: TileProps): JSX.Element;
@@ -21,6 +21,28 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
21
21
 
22
22
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
 
24
+ const getBorderColor = borderVariant => {
25
+ switch (borderVariant) {
26
+ case "selected":
27
+ return "var(--colorsUtilityYin100)";
28
+
29
+ case "positive":
30
+ return "var(--colorsSemanticPositive500)";
31
+
32
+ case "negative":
33
+ return "var(--colorsSemanticNegative500)";
34
+
35
+ case "caution":
36
+ return "var(--colorsSemanticCaution500)";
37
+
38
+ case "info":
39
+ return "var(--colorsSemanticInfo500)";
40
+
41
+ default:
42
+ return "var(--colorsUtilityMajor100)";
43
+ }
44
+ };
45
+
24
46
  const TileContent = _styledComponents.default.div`
25
47
  ${({
26
48
  isHorizontal,
@@ -78,12 +100,14 @@ const StyledTile = _styledComponents.default.div`
78
100
  ${({
79
101
  isHorizontal,
80
102
  tileTheme,
81
- width
103
+ width,
104
+ borderWidth = "borderWidth100",
105
+ borderVariant
82
106
  }) => (0, _styledComponents.css)`
83
107
  ${_styledSystem.space}
84
108
 
85
109
  box-sizing: border-box;
86
- border: 1px solid var(--colorsUtilityMajor100);
110
+ border: var(--${borderWidth}) solid ${getBorderColor(borderVariant)};
87
111
 
88
112
  ${tileTheme === "tile" && (0, _styledComponents.css)`
89
113
  background-color: var(--colorsUtilityYang100);
@@ -119,7 +143,9 @@ StyledTile.propTypes = {
119
143
  orientation: _propTypes.default.string,
120
144
  padding: _propTypes.default.string,
121
145
  tileTheme: _propTypes.default.string,
122
- width: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])
146
+ width: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
147
+ borderWidth: _propTypes.default.string,
148
+ borderVariant: _propTypes.default.string
123
149
  };
124
150
  StyledTile.defaultProps = {
125
151
  theme: _base.default
@@ -16,6 +16,7 @@ declare const _default: {
16
16
  colorsUtilityMajor050: string;
17
17
  colorsUtilityMajor075: string;
18
18
  colorsUtilityMajorTransparent: string;
19
+ colorsUtilityYin100: string;
19
20
  colorsUtilityYin030: string;
20
21
  colorsUtilityYin055: string;
21
22
  colorsUtilityYin065: string;
@@ -117,6 +118,7 @@ declare const _default: {
117
118
  colorsSemanticInfoYang100: string;
118
119
  colorsLogo: string;
119
120
  colorsTransparent: string;
121
+ colorsYin100: string;
120
122
  colorsYin030: string;
121
123
  colorsYin055: string;
122
124
  colorsYin065: string;
@@ -301,13 +303,25 @@ declare const _default: {
301
303
  fontFamiliesIos: string;
302
304
  fontFamiliesAndroid: string;
303
305
  fontFamiliesOther: string;
306
+ borderRadius100: string;
307
+ borderRadius200: string;
308
+ borderRadius300: string;
309
+ borderRadius400: string;
304
310
  borderRadiusCircle: string;
311
+ borderRadius025: string;
312
+ borderRadius050: string;
313
+ borderRadius000: string;
305
314
  typographyAccordionTitleM: string;
315
+ typographyAccordionTitleS: string;
306
316
  typographyAccordionSubtitleM: string;
317
+ typographyAccordionSubtitleS: string;
307
318
  typographyAccordionParagraphM: string;
319
+ typographyAccordionParagraphS: string;
308
320
  typographyActionPopoverMenuItemM: string;
309
321
  typographyAnchorNavLabelM: string;
310
322
  typographyBadgeLabelM: string;
323
+ typographyBreadcrumbSeparatorM: string;
324
+ typographyBreadcrumbCurrentPageM: string;
311
325
  typographyButtonLabelS: string;
312
326
  typographyButtonLabelM: string;
313
327
  typographyButtonLabelL: string;
@@ -327,7 +341,7 @@ declare const _default: {
327
341
  typographyDialogTitleL: string;
328
342
  typographyDialogTitleXl: string;
329
343
  typographyDialogTitleXxl: string;
330
- typographyDialogSubtitle: string;
344
+ typographyDialogSubtitleM: string;
331
345
  typographyDialogParagraphXs: string;
332
346
  typographyDialogParagraphS: string;
333
347
  typographyDialogParagraphMs: string;
@@ -16,6 +16,7 @@ declare var _default: {
16
16
  colorsUtilityMajor050: string;
17
17
  colorsUtilityMajor075: string;
18
18
  colorsUtilityMajorTransparent: string;
19
+ colorsUtilityYin100: string;
19
20
  colorsUtilityYin030: string;
20
21
  colorsUtilityYin055: string;
21
22
  colorsUtilityYin065: string;
@@ -117,6 +118,7 @@ declare var _default: {
117
118
  colorsSemanticInfoYang100: string;
118
119
  colorsLogo: string;
119
120
  colorsTransparent: string;
121
+ colorsYin100: string;
120
122
  colorsYin030: string;
121
123
  colorsYin055: string;
122
124
  colorsYin065: string;
@@ -301,13 +303,25 @@ declare var _default: {
301
303
  fontFamiliesIos: string;
302
304
  fontFamiliesAndroid: string;
303
305
  fontFamiliesOther: string;
306
+ borderRadius100: string;
307
+ borderRadius200: string;
308
+ borderRadius300: string;
309
+ borderRadius400: string;
304
310
  borderRadiusCircle: string;
311
+ borderRadius025: string;
312
+ borderRadius050: string;
313
+ borderRadius000: string;
305
314
  typographyAccordionTitleM: string;
315
+ typographyAccordionTitleS: string;
306
316
  typographyAccordionSubtitleM: string;
317
+ typographyAccordionSubtitleS: string;
307
318
  typographyAccordionParagraphM: string;
319
+ typographyAccordionParagraphS: string;
308
320
  typographyActionPopoverMenuItemM: string;
309
321
  typographyAnchorNavLabelM: string;
310
322
  typographyBadgeLabelM: string;
323
+ typographyBreadcrumbSeparatorM: string;
324
+ typographyBreadcrumbCurrentPageM: string;
311
325
  typographyButtonLabelS: string;
312
326
  typographyButtonLabelM: string;
313
327
  typographyButtonLabelL: string;
@@ -327,7 +341,7 @@ declare var _default: {
327
341
  typographyDialogTitleL: string;
328
342
  typographyDialogTitleXl: string;
329
343
  typographyDialogTitleXxl: string;
330
- typographyDialogSubtitle: string;
344
+ typographyDialogSubtitleM: string;
331
345
  typographyDialogParagraphXs: string;
332
346
  typographyDialogParagraphS: string;
333
347
  typographyDialogParagraphMs: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "111.16.0",
3
+ "version": "111.17.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "homepage": "https://carbon.sage.com",
46
46
  "peerDependencies": {
47
- "@sage/design-tokens": "^2.41.0",
47
+ "@sage/design-tokens": "^2.52.0",
48
48
  "draft-js": "^0.11.5",
49
49
  "react": "^17.0.2",
50
50
  "react-dom": "^17.0.2",
@@ -64,7 +64,7 @@
64
64
  "@bahmutov/cypress-esbuild-preprocessor": "^2.1.3",
65
65
  "@commitlint/cli": "^11.0.0",
66
66
  "@commitlint/config-conventional": "^11.0.0",
67
- "@sage/design-tokens": "^2.41.0",
67
+ "@sage/design-tokens": "^2.52.0",
68
68
  "@semantic-release/changelog": "^6.0.1",
69
69
  "@semantic-release/exec": "^6.0.2",
70
70
  "@semantic-release/git": "^10.0.1",
@@ -1,50 +0,0 @@
1
- import { IconType } from "components/icon/icon-type";
2
- import * as React from "react";
3
- import { DialogProps } from "../dialog";
4
-
5
- export interface ConfirmProps extends DialogProps {
6
- /** Color variants for new business themes: "primary" | "secondary" | "tertiary" | "dashed" | "darkBackground" */
7
- cancelButtonType?:
8
- | "primary"
9
- | "secondary"
10
- | "tertiary"
11
- | "dashed"
12
- | "darkBackground";
13
- /** Color variants for new business themes: "primary" | "secondary" | "tertiary" | "dashed" | "darkBackground" */
14
- confirmButtonType?:
15
- | "primary"
16
- | "secondary"
17
- | "tertiary"
18
- | "dashed"
19
- | "darkBackground";
20
- /** Customise the cancel button label */
21
- cancelLabel?: string;
22
- /** Customise the confirm button label */
23
- confirmLabel?: string;
24
- /** Apply destructive style to the cancel button */
25
- cancelButtonDestructive?: boolean;
26
- /** Apply destructive style to the confirm button */
27
- confirmButtonDestructive?: boolean;
28
- /** Defines a cancel button Icon position related to the children: "before" | "after" */
29
- cancelButtonIconPosition?: "before" | "after";
30
- /** Defines an Icon type within the cancel button (see Icon for options) */
31
- cancelButtonIconType?: IconType;
32
- /** Defines a cancel button Icon position related to the children: "before" | "after" */
33
- confirmButtonIconPosition?: "before" | "after";
34
- /** Defines an Icon type within the confirm button (see Icon for options) */
35
- confirmButtonIconType?: IconType;
36
- /** Makes cancel button disabled */
37
- disableCancel?: boolean;
38
- /** Makes confirm button disabled */
39
- disableConfirm?: boolean;
40
- /** Defines an Icon type within the button (see Icon for options) */
41
- iconType?: "error" | "warning";
42
- /** Adds isLoading state into confirm button */
43
- isLoadingConfirm?: boolean;
44
- /** A custom event handler when a confirmation takes place */
45
- onConfirm: (ev: React.MouseEvent<HTMLButtonElement>) => void;
46
- }
47
-
48
- declare class Confirm extends React.Component<ConfirmProps> {}
49
-
50
- export default Confirm;
@@ -1,52 +0,0 @@
1
- import * as React from "react";
2
- import { ModalProps } from "../modal";
3
-
4
- export interface DialogFullScreenProps extends ModalProps {
5
- /** Prop to specify the aria-describedby property of the DialogFullscreen component */
6
- "aria-describedby"?: string;
7
- /**
8
- * Prop to specify the aria-label of the DialogFullscreen component.
9
- * To be used only when the title prop is not defined, and the component is not labelled by any internal element.
10
- */
11
- "aria-label"?: string;
12
- /**
13
- * Prop to specify the aria-labelledby property of the DialogFullscreen component
14
- * To be used when the title prop is a custom React Node,
15
- * or the component is labelled by an internal element other than the title.
16
- */
17
- "aria-labelledby"?: string;
18
- /** Child elements */
19
- children?: React.ReactNode;
20
- /** Reference to the scrollable content element */
21
- contentRef?:
22
- | React.MutableRefObject<HTMLElement>
23
- | (() => React.MutableRefObject<HTMLElement>);
24
- /** Disables auto focus functionality on child elements */
25
- disableAutoFocus?: boolean;
26
- /** remove padding from content */
27
- disableContentPadding?: boolean;
28
- /** Optional reference to an element meant to be focused on open */
29
- focusFirstElement?: React.MutableRefObject<HTMLElement>;
30
- /** Container for components to be displayed in the header */
31
- headerChildren?: React.ReactNode;
32
- /** Adds Help tooltip to Header */
33
- help?: string;
34
- /** For legacy styling when used with Pages component. Do not use this unless using Pages within a DialogFullScreen */
35
- pagesStyling?: boolean;
36
- /** Determines if the close icon is shown */
37
- showCloseIcon?: boolean;
38
- /** Subtitle displayed at top of dialog */
39
- subtitle?: string;
40
- /** Title displayed at top of dialog */
41
- title?: React.ReactNode;
42
- /** The ARIA role to be applied to the DialogFullscreen container */
43
- role?: string;
44
- /** an optional array of refs to containers whose content should also be reachable by tabbing from the dialog */
45
- focusableContainers?: React.MutableRefObject<HTMLElement | null>[];
46
- /** Optional selector to identify the focusable elements, if not provided a default selector is used */
47
- focusableSelectors?: string;
48
- }
49
-
50
- declare function DialogFullScreen(props: DialogFullScreenProps): JSX.Element;
51
-
52
- export default DialogFullScreen;
@@ -1,50 +0,0 @@
1
- import { IconType } from "components/icon/icon-type";
2
- import * as React from "react";
3
- import { DialogProps } from "../dialog";
4
-
5
- export interface ConfirmProps extends DialogProps {
6
- /** Color variants for new business themes: "primary" | "secondary" | "tertiary" | "dashed" | "darkBackground" */
7
- cancelButtonType?:
8
- | "primary"
9
- | "secondary"
10
- | "tertiary"
11
- | "dashed"
12
- | "darkBackground";
13
- /** Color variants for new business themes: "primary" | "secondary" | "tertiary" | "dashed" | "darkBackground" */
14
- confirmButtonType?:
15
- | "primary"
16
- | "secondary"
17
- | "tertiary"
18
- | "dashed"
19
- | "darkBackground";
20
- /** Customise the cancel button label */
21
- cancelLabel?: string;
22
- /** Customise the confirm button label */
23
- confirmLabel?: string;
24
- /** Apply destructive style to the cancel button */
25
- cancelButtonDestructive?: boolean;
26
- /** Apply destructive style to the confirm button */
27
- confirmButtonDestructive?: boolean;
28
- /** Defines a cancel button Icon position related to the children: "before" | "after" */
29
- cancelButtonIconPosition?: "before" | "after";
30
- /** Defines an Icon type within the cancel button (see Icon for options) */
31
- cancelButtonIconType?: IconType;
32
- /** Defines a cancel button Icon position related to the children: "before" | "after" */
33
- confirmButtonIconPosition?: "before" | "after";
34
- /** Defines an Icon type within the confirm button (see Icon for options) */
35
- confirmButtonIconType?: IconType;
36
- /** Makes cancel button disabled */
37
- disableCancel?: boolean;
38
- /** Makes confirm button disabled */
39
- disableConfirm?: boolean;
40
- /** Defines an Icon type within the button (see Icon for options) */
41
- iconType?: "error" | "warning";
42
- /** Adds isLoading state into confirm button */
43
- isLoadingConfirm?: boolean;
44
- /** A custom event handler when a confirmation takes place */
45
- onConfirm: (ev: React.MouseEvent<HTMLButtonElement>) => void;
46
- }
47
-
48
- declare class Confirm extends React.Component<ConfirmProps> {}
49
-
50
- export default Confirm;