carbon-react 155.4.0 → 155.5.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 (187) hide show
  1. package/esm/__internal__/focus-trap/focus-trap-utils.d.ts +1 -1
  2. package/esm/__internal__/i18n-context/index.d.ts +1 -2
  3. package/esm/__internal__/input-icon-toggle/input-icon-toggle.style.d.ts +1 -2
  4. package/esm/__internal__/utils/helpers/events/events.d.ts +1 -1
  5. package/esm/__spec_helper__/mock-match-media.d.ts +0 -1
  6. package/esm/components/accordion/accordion.style.d.ts +0 -1
  7. package/esm/components/action-popover/__internal__/action-popover.context.d.ts +0 -1
  8. package/esm/components/action-popover/action-popover.style.d.ts +0 -1
  9. package/esm/components/adaptive-sidebar/adaptive-sidebar.style.d.ts +3 -3
  10. package/esm/components/advanced-color-picker/advanced-color-picker.style.d.ts +0 -1
  11. package/esm/components/badge/badge.style.d.ts +0 -1
  12. package/esm/components/box/box.style.d.ts +5 -5
  13. package/esm/components/breadcrumbs/__internal__/breadcrumbs.context.d.ts +0 -1
  14. package/esm/components/breadcrumbs/crumb/crumb.style.d.ts +0 -1
  15. package/esm/components/button/button.style.d.ts +1 -1
  16. package/esm/components/button-minor/button-minor.style.d.ts +0 -1
  17. package/esm/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +0 -1
  18. package/esm/components/card/__internal__/card.context.d.ts +0 -1
  19. package/esm/components/card/card-footer/card-footer.style.d.ts +1 -1
  20. package/esm/components/checkbox/checkbox-group/checkbox-group.style.d.ts +2 -2
  21. package/esm/components/definition-list/__internal__/dl.context.d.ts +0 -1
  22. package/esm/components/detail/detail.style.d.ts +0 -1
  23. package/esm/components/dialog/dialog.style.d.ts +2 -2
  24. package/esm/components/dialog-full-screen/dialog-full-screen.style.d.ts +1 -1
  25. package/esm/components/dismissible-box/dismissible-box.style.d.ts +0 -1
  26. package/esm/components/drawer/drawer.style.d.ts +1 -2
  27. package/esm/components/duelling-picklist/duelling-picklist.style.d.ts +1 -1
  28. package/esm/components/duelling-picklist/picklist/picklist.style.d.ts +5 -5
  29. package/esm/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +0 -1
  30. package/esm/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -2
  31. package/esm/components/flat-table/__internal__/flat-table.context.d.ts +0 -1
  32. package/esm/components/flat-table/__internal__/strict-flat-table.context.d.ts +0 -1
  33. package/esm/components/flat-table/__internal__/use-table-cell.d.ts +2 -3
  34. package/esm/components/flat-table/flat-table-cell/flat-table-cell.style.d.ts +1 -1
  35. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.style.d.ts +4 -4
  36. package/esm/components/flat-table/flat-table.style.d.ts +5 -5
  37. package/esm/components/flat-table/sort/sort.style.d.ts +0 -1
  38. package/esm/components/form/form.style.d.ts +2 -2
  39. package/esm/components/heading/heading.style.d.ts +0 -1
  40. package/esm/components/image/image.style.d.ts +1 -2
  41. package/esm/components/link-preview/link-preview.style.d.ts +1 -1
  42. package/esm/components/loader-spinner/loader-spinner.style.d.ts +0 -1
  43. package/esm/components/loader-star/loader-star.style.d.ts +0 -1
  44. package/esm/components/menu/__internal__/menu.context.d.ts +0 -1
  45. package/esm/components/menu/__internal__/strict-menu.context.d.ts +0 -1
  46. package/esm/components/menu/menu-item/menu-item.style.d.ts +0 -1
  47. package/esm/components/menu/menu-segment-title/menu-segment-title.style.d.ts +1 -1
  48. package/esm/components/menu/menu.types.d.ts +0 -1
  49. package/esm/components/modal/modal.style.d.ts +1 -1
  50. package/esm/components/navigation-bar/navigation-bar.style.d.ts +5 -5
  51. package/esm/components/note/note.style.d.ts +1 -1
  52. package/esm/components/numeral-date/numeral-date.style.d.ts +1 -2
  53. package/esm/components/pager/pager.style.d.ts +0 -1
  54. package/esm/components/password/password.style.d.ts +0 -1
  55. package/esm/components/pill/pill.style.d.ts +1 -1
  56. package/esm/components/pod/pod.style.d.ts +0 -1
  57. package/esm/components/popover-container/popover-container.style.d.ts +0 -1
  58. package/esm/components/portrait/__internal__/get-colors.d.ts +7 -1
  59. package/esm/components/profile/profile.style.d.ts +0 -1
  60. package/esm/components/radio-button/radio-button-group/radio-button-group.style.d.ts +2 -2
  61. package/esm/components/radio-button/radio-button.style.d.ts +1 -1
  62. package/esm/components/select/__internal__/utils/is-expected-option.d.ts +0 -1
  63. package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.style.d.ts +2 -2
  64. package/esm/components/simple-color-picker/simple-color/simple-color.style.d.ts +0 -1
  65. package/esm/components/split-button/split-button-toggle.style.d.ts +2 -2
  66. package/esm/components/step-flow/__internal__/step-flow.context.d.ts +0 -1
  67. package/esm/components/step-sequence/__internal__/step-sequence.context.d.ts +0 -1
  68. package/esm/components/tabs/__internal__/tab-title/tab-title.style.d.ts +6 -5
  69. package/esm/components/tabs/tab/tab.style.d.ts +1 -1
  70. package/esm/components/text-editor/__internal__/plugins/LinkPreviewer/link-previewer.component.d.ts +1 -1
  71. package/esm/components/text-editor/__internal__/plugins/Toolbar/toolbar.style.d.ts +1 -2
  72. package/esm/components/text-editor/text-editor.context.d.ts +1 -1
  73. package/esm/components/tile/__internal__/tile.context.d.ts +0 -1
  74. package/esm/components/tile/tile.style.d.ts +1 -1
  75. package/esm/components/tile-select/tile-select.style.d.ts +7 -8
  76. package/esm/components/time/time.style.d.ts +0 -1
  77. package/esm/components/toast/toast.style.d.ts +7 -8
  78. package/esm/components/vertical-menu/__internal__/vertical-menu.context.d.ts +0 -1
  79. package/esm/components/vertical-menu/responsive-vertical-menu/__internal__/depth.context.d.ts +1 -1
  80. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.component.js +1 -1
  81. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.style.d.ts +5 -6
  82. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.component.js +1 -1
  83. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.context.d.ts +3 -1
  84. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.context.js +1 -1
  85. package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.d.ts +0 -1
  86. package/esm/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
  87. package/esm/components/vertical-menu/vertical-menu.style.d.ts +10 -11
  88. package/esm/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -2
  89. package/esm/hooks/__internal__/useFocusPortalContent/useFocusPortalContent.d.ts +1 -1
  90. package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +0 -1
  91. package/esm/hooks/__internal__/useLocale/useLocale.d.ts +1 -1
  92. package/esm/hooks/__internal__/useModalAria/useModalAria.d.ts +0 -1
  93. package/esm/style/utils/add-focus-styling.js +1 -1
  94. package/lib/__internal__/focus-trap/focus-trap-utils.d.ts +1 -1
  95. package/lib/__internal__/i18n-context/index.d.ts +1 -2
  96. package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.d.ts +1 -2
  97. package/lib/__internal__/utils/helpers/events/events.d.ts +1 -1
  98. package/lib/__spec_helper__/mock-match-media.d.ts +0 -1
  99. package/lib/components/accordion/accordion.style.d.ts +0 -1
  100. package/lib/components/action-popover/__internal__/action-popover.context.d.ts +0 -1
  101. package/lib/components/action-popover/action-popover.style.d.ts +0 -1
  102. package/lib/components/adaptive-sidebar/adaptive-sidebar.style.d.ts +3 -3
  103. package/lib/components/advanced-color-picker/advanced-color-picker.style.d.ts +0 -1
  104. package/lib/components/badge/badge.style.d.ts +0 -1
  105. package/lib/components/box/box.style.d.ts +5 -5
  106. package/lib/components/breadcrumbs/__internal__/breadcrumbs.context.d.ts +0 -1
  107. package/lib/components/breadcrumbs/crumb/crumb.style.d.ts +0 -1
  108. package/lib/components/button/button.style.d.ts +1 -1
  109. package/lib/components/button-minor/button-minor.style.d.ts +0 -1
  110. package/lib/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +0 -1
  111. package/lib/components/card/__internal__/card.context.d.ts +0 -1
  112. package/lib/components/card/card-footer/card-footer.style.d.ts +1 -1
  113. package/lib/components/checkbox/checkbox-group/checkbox-group.style.d.ts +2 -2
  114. package/lib/components/definition-list/__internal__/dl.context.d.ts +0 -1
  115. package/lib/components/detail/detail.style.d.ts +0 -1
  116. package/lib/components/dialog/dialog.style.d.ts +2 -2
  117. package/lib/components/dialog-full-screen/dialog-full-screen.style.d.ts +1 -1
  118. package/lib/components/dismissible-box/dismissible-box.style.d.ts +0 -1
  119. package/lib/components/drawer/drawer.style.d.ts +1 -2
  120. package/lib/components/duelling-picklist/duelling-picklist.style.d.ts +1 -1
  121. package/lib/components/duelling-picklist/picklist/picklist.style.d.ts +5 -5
  122. package/lib/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +0 -1
  123. package/lib/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -2
  124. package/lib/components/flat-table/__internal__/flat-table.context.d.ts +0 -1
  125. package/lib/components/flat-table/__internal__/strict-flat-table.context.d.ts +0 -1
  126. package/lib/components/flat-table/__internal__/use-table-cell.d.ts +2 -3
  127. package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.d.ts +1 -1
  128. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.d.ts +4 -4
  129. package/lib/components/flat-table/flat-table.style.d.ts +5 -5
  130. package/lib/components/flat-table/sort/sort.style.d.ts +0 -1
  131. package/lib/components/form/form.style.d.ts +2 -2
  132. package/lib/components/heading/heading.style.d.ts +0 -1
  133. package/lib/components/image/image.style.d.ts +1 -2
  134. package/lib/components/link-preview/link-preview.style.d.ts +1 -1
  135. package/lib/components/loader-spinner/loader-spinner.style.d.ts +0 -1
  136. package/lib/components/loader-star/loader-star.style.d.ts +0 -1
  137. package/lib/components/menu/__internal__/menu.context.d.ts +0 -1
  138. package/lib/components/menu/__internal__/strict-menu.context.d.ts +0 -1
  139. package/lib/components/menu/menu-item/menu-item.style.d.ts +0 -1
  140. package/lib/components/menu/menu-segment-title/menu-segment-title.style.d.ts +1 -1
  141. package/lib/components/menu/menu.types.d.ts +0 -1
  142. package/lib/components/modal/modal.style.d.ts +1 -1
  143. package/lib/components/navigation-bar/navigation-bar.style.d.ts +5 -5
  144. package/lib/components/note/note.style.d.ts +1 -1
  145. package/lib/components/numeral-date/numeral-date.style.d.ts +1 -2
  146. package/lib/components/pager/pager.style.d.ts +0 -1
  147. package/lib/components/password/password.style.d.ts +0 -1
  148. package/lib/components/pill/pill.style.d.ts +1 -1
  149. package/lib/components/pod/pod.style.d.ts +0 -1
  150. package/lib/components/popover-container/popover-container.style.d.ts +0 -1
  151. package/lib/components/portrait/__internal__/get-colors.d.ts +7 -1
  152. package/lib/components/profile/profile.style.d.ts +0 -1
  153. package/lib/components/radio-button/radio-button-group/radio-button-group.style.d.ts +2 -2
  154. package/lib/components/radio-button/radio-button.style.d.ts +1 -1
  155. package/lib/components/select/__internal__/utils/is-expected-option.d.ts +0 -1
  156. package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.d.ts +2 -2
  157. package/lib/components/simple-color-picker/simple-color/simple-color.style.d.ts +0 -1
  158. package/lib/components/split-button/split-button-toggle.style.d.ts +2 -2
  159. package/lib/components/step-flow/__internal__/step-flow.context.d.ts +0 -1
  160. package/lib/components/step-sequence/__internal__/step-sequence.context.d.ts +0 -1
  161. package/lib/components/tabs/__internal__/tab-title/tab-title.style.d.ts +6 -5
  162. package/lib/components/tabs/tab/tab.style.d.ts +1 -1
  163. package/lib/components/text-editor/__internal__/plugins/LinkPreviewer/link-previewer.component.d.ts +1 -1
  164. package/lib/components/text-editor/__internal__/plugins/Toolbar/toolbar.style.d.ts +1 -2
  165. package/lib/components/text-editor/text-editor.context.d.ts +1 -1
  166. package/lib/components/tile/__internal__/tile.context.d.ts +0 -1
  167. package/lib/components/tile/tile.style.d.ts +1 -1
  168. package/lib/components/tile-select/tile-select.style.d.ts +7 -8
  169. package/lib/components/time/time.style.d.ts +0 -1
  170. package/lib/components/toast/toast.style.d.ts +7 -8
  171. package/lib/components/vertical-menu/__internal__/vertical-menu.context.d.ts +0 -1
  172. package/lib/components/vertical-menu/responsive-vertical-menu/__internal__/depth.context.d.ts +1 -1
  173. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.component.js +1 -1
  174. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.style.d.ts +5 -6
  175. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.component.js +1 -1
  176. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.context.d.ts +3 -1
  177. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.context.js +1 -1
  178. package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.d.ts +0 -1
  179. package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
  180. package/lib/components/vertical-menu/vertical-menu.style.d.ts +10 -11
  181. package/lib/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -2
  182. package/lib/hooks/__internal__/useFocusPortalContent/useFocusPortalContent.d.ts +1 -1
  183. package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +0 -1
  184. package/lib/hooks/__internal__/useLocale/useLocale.d.ts +1 -1
  185. package/lib/hooks/__internal__/useModalAria/useModalAria.d.ts +0 -1
  186. package/lib/style/utils/add-focus-styling.js +1 -1
  187. package/package.json +12 -3
@@ -3,9 +3,9 @@ declare const DialogPositioner: import("styled-components").StyledComponent<"div
3
3
  theme: object;
4
4
  }, "theme">;
5
5
  declare const StyledDialog: import("styled-components").StyledComponent<"div", any, Required<Pick<DialogProps, "size">> & {
6
- dialogHeight?: string | undefined;
6
+ dialogHeight?: string;
7
7
  backgroundColor: string;
8
- highlightVariant?: string | undefined;
8
+ highlightVariant?: string;
9
9
  } & ContentPaddingInterface, never>;
10
10
  type StyledDialogTitleProps = {
11
11
  showCloseIcon?: boolean;
@@ -1,6 +1,6 @@
1
1
  declare const StyledDialogFullScreen: import("styled-components").StyledComponent<"div", any, {
2
2
  theme: object;
3
3
  } & {
4
- pagesStyling?: boolean | undefined;
4
+ pagesStyling?: boolean;
5
5
  }, "theme">;
6
6
  export default StyledDialogFullScreen;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface StyledDismissibleBoxProps {
3
2
  /** Flag to control whether the thicker left border highlight should be rendered */
4
3
  hasBorderLeftHighlight?: boolean;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const StyledSidebarHeader: import("styled-components").StyledComponent<"div", any, {
3
- isExpanded?: boolean | undefined;
2
+ isExpanded?: boolean;
4
3
  }, never>;
5
4
  declare const StyledSidebarTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
6
5
  declare const StyledDrawerChildren: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,7 +1,7 @@
1
1
  declare const StyledDuellingPicklistOverlay: import("styled-components").StyledComponent<"div", any, {
2
2
  theme: object;
3
3
  } & {
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  }, "theme">;
6
6
  declare const StyledDuellingPicklist: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  declare const StyledLabelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -2,11 +2,11 @@ declare const StyledPicklist: import("styled-components").StyledComponent<"div",
2
2
  theme: object;
3
3
  } & import("../../box").BoxProps & {
4
4
  cssProps?: {
5
- color?: string | undefined;
6
- opacity?: string | undefined;
7
- height?: string | undefined;
8
- width?: string | undefined;
9
- } | undefined;
5
+ color?: string;
6
+ opacity?: string;
7
+ height?: string;
8
+ width?: string;
9
+ };
10
10
  } & {
11
11
  as: string;
12
12
  }, "theme" | "as">;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PicklistGroupProps } from "./picklist-group.component";
3
2
  declare const StyledGroupWrapper: import("styled-components").StyledComponent<"li", any, {
4
3
  highlighted: boolean;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const StyledPicklistItem: import("styled-components").StyledComponent<"li", any, {
3
- locked?: boolean | undefined;
2
+ locked?: boolean;
4
3
  }, never>;
5
4
  declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../button").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, any, {}, never>;
6
5
  declare const StyledLockIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../icon").IconProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FlatTableContextType {
3
2
  isInFlatTable: boolean;
4
3
  setHasOpenDatePicker?: (value: boolean) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FlatTableProps } from "../flat-table.component";
3
2
  export interface StrictFlatTableContextType extends Pick<FlatTableProps, "colorTheme" | "size"> {
4
3
  getTabStopElementId: () => string;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (id: string) => {
3
2
  expandable: boolean | undefined;
4
3
  leftPosition: number;
5
4
  rightPosition: number;
6
5
  makeCellSticky: boolean;
7
- onClick: ((ev?: import("react").MouseEvent<HTMLElement, MouseEvent> | undefined) => void) | undefined;
8
- onKeyDown: ((ev: import("react").KeyboardEvent<HTMLElement>) => void) | undefined;
6
+ onClick: ((ev?: React.MouseEvent<HTMLElement>) => void) | undefined;
7
+ onKeyDown: ((ev: React.KeyboardEvent<HTMLElement>) => void) | undefined;
9
8
  isFirstCell: boolean;
10
9
  isExpandableCell: boolean | undefined;
11
10
  tabIndex: number;
@@ -12,6 +12,6 @@ declare const StyledFlatTableCell: import("styled-components").StyledComponent<"
12
12
  theme: object;
13
13
  } & StyledFlatTableCellProps, "theme">;
14
14
  declare const StyledCellContent: import("styled-components").StyledComponent<"div", any, {
15
- expandable?: boolean | undefined;
15
+ expandable?: boolean;
16
16
  }, never>;
17
17
  export { StyledFlatTableCell, StyledCellContent };
@@ -4,11 +4,11 @@ declare const StyledFlatTableRowHeader: import("styled-components").StyledCompon
4
4
  } & {
5
5
  "data-sticky-align": "left" | "right" | undefined;
6
6
  } & FlatTableRowHeaderProps & {
7
- expandable?: boolean | undefined;
8
- leftPosition?: number | undefined;
9
- rightPosition?: number | undefined;
7
+ expandable?: boolean;
8
+ leftPosition?: number;
9
+ rightPosition?: number;
10
10
  }, "theme" | "data-sticky-align">;
11
11
  declare const StyledFlatTableRowHeaderContent: import("styled-components").StyledComponent<"div", any, {
12
- expandable?: boolean | undefined;
12
+ expandable?: boolean;
13
13
  }, never>;
14
14
  export { StyledFlatTableRowHeader, StyledFlatTableRowHeaderContent };
@@ -16,11 +16,11 @@ declare const StyledFlatTableWrapper: import("styled-components").StyledComponen
16
16
  theme: object;
17
17
  } & import("../box").BoxProps & {
18
18
  cssProps?: {
19
- color?: string | undefined;
20
- opacity?: string | undefined;
21
- height?: string | undefined;
22
- width?: string | undefined;
23
- } | undefined;
19
+ color?: string;
20
+ opacity?: string;
21
+ height?: string;
22
+ width?: string;
23
+ };
24
24
  } & StyledFlatTableWrapperProps, "theme">;
25
25
  declare const StyledFlatTableFooter: import("styled-components").StyledComponent<"div", any, {
26
26
  theme: object;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyledIconProps } from "../../icon/icon.style";
3
2
  import { SortProps } from "./sort.component";
4
3
  declare const StyledSort: import("styled-components").StyledComponent<"div", any, {
@@ -22,9 +22,9 @@ export declare const StyledForm: import("styled-components").StyledComponent<"fo
22
22
  theme: object;
23
23
  } & StyledFormProps, "theme">;
24
24
  export declare const StyledRightButtons: import("styled-components").StyledComponent<"div", any, {
25
- buttonAlignment?: "left" | "right" | undefined;
25
+ buttonAlignment?: FormButtonAlignment;
26
26
  }, never>;
27
27
  export declare const StyledLeftButtons: import("styled-components").StyledComponent<"div", any, {
28
- buttonAlignment?: "left" | "right" | undefined;
28
+ buttonAlignment?: FormButtonAlignment;
29
29
  }, never>;
30
30
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StyledHeading: import("styled-components").StyledComponent<"div", any, {
3
2
  theme: object;
4
3
  }, "theme">;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MarginProps, BackgroundProps, LayoutProps, PaddingProps } from "styled-system";
3
2
  import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
4
3
  export type PositionProps = "absolute" | "fixed" | "relative" | "static" | "sticky";
@@ -39,5 +38,5 @@ declare const StyledImage: import("styled-components").StyledComponent<"div", an
39
38
  backgroundPosition: import("styled-system").ResponsiveValue<import("csstype").Property.BackgroundPosition<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>;
40
39
  backgroundRepeat: import("styled-system").ResponsiveValue<import("csstype").Property.BackgroundRepeat, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>;
41
40
  backgroundSize: import("styled-system").ResponsiveValue<import("csstype").Property.BackgroundSize<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>;
42
- } & StyledImageProps, "theme" | "hidden" | "children" | "src" | "as" | "position" | "bottom" | "left" | "right" | "top" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat">;
41
+ } & StyledImageProps, "theme" | "children" | "hidden" | "src" | "as" | "left" | "right" | "position" | "bottom" | "top" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat">;
43
42
  export { StyledImage };
@@ -1,7 +1,7 @@
1
1
  declare const StyledLinkPreview: import("styled-components").StyledComponent<"a", any, {
2
2
  theme: object;
3
3
  } & {
4
- as?: "a" | "div" | undefined;
4
+ as?: "a" | "div";
5
5
  }, "theme">;
6
6
  declare const StyledCloseIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  declare const StyledPreviewWrapper: import("styled-components").StyledComponent<"div", any, {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LoaderSpinnerProps } from "./loader-spinner.component";
3
2
  export declare const StyledSpinnerWrapper: import("styled-components").StyledComponent<"div", any, Pick<LoaderSpinnerProps, "size">, never>;
4
3
  export declare const StyledLabel: import("styled-components").StyledComponent<{
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LoaderStarProps } from "./loader-star.component";
3
2
  export declare const StyledLoaderStarWrapper: import("styled-components").StyledComponent<"div", any, LoaderStarProps, never>;
4
3
  export declare const StyledLabel: import("styled-components").StyledComponent<{
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface MenuContextType {
3
2
  inMenu?: boolean;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { MenuType } from "../menu.types";
3
2
  export interface StrictMenuContextType {
4
3
  menuType: MenuType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaddingProps } from "styled-system";
3
2
  import { MenuWithChildren } from "./menu-item.component";
4
3
  import type { MenuType } from "../menu.types";
@@ -7,7 +7,7 @@ interface StyledTitleProps {
7
7
  }
8
8
  declare const StyledTitle: import("styled-components").StyledComponent<"h2", any, StyledTitleProps, never>;
9
9
  declare const StyledSegmentChildren: import("styled-components").StyledComponent<"ul", any, {
10
- variant?: VariantType | undefined;
10
+ variant?: VariantType;
11
11
  menuType: MenuType;
12
12
  }, never>;
13
13
  export { StyledTitle, StyledSegmentChildren };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FlexboxProps, LayoutProps } from "styled-system";
3
2
  import { TagProps } from "../../__internal__/utils/helpers/tags";
4
3
  export type MenuType = "light" | "dark" | "white" | "black";
@@ -6,6 +6,6 @@ declare const StyledModalBackground: import("styled-components").StyledComponent
6
6
  declare const StyledModal: import("styled-components").StyledComponent<"div", any, {
7
7
  theme: object;
8
8
  } & TransitionProps & {
9
- topModalOverride?: boolean | undefined;
9
+ topModalOverride?: boolean;
10
10
  }, "theme">;
11
11
  export { StyledModal, StyledModalBackground };
@@ -16,14 +16,14 @@ declare const StyledNavigationBar: import("styled-components").StyledComponent<"
16
16
  theme: object;
17
17
  } & PaddingProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
18
18
  /** Color scheme of navigation component */
19
- navigationType?: NavigationType | undefined;
19
+ navigationType?: NavigationType;
20
20
  /** Defines whether the navigation bar should be positioned fixed or sticky */
21
- position?: Position | undefined;
21
+ position?: Position;
22
22
  /** Defines the offset of navigation bar */
23
- offset?: string | undefined;
23
+ offset?: string;
24
24
  /** Defines whether the navigation bar should be positioned top or bottom */
25
- orientation?: Orientation | undefined;
25
+ orientation?: Orientation;
26
26
  /** set to true only when rendering the GlobalHeader component */
27
- isGlobal?: boolean | undefined;
27
+ isGlobal?: boolean;
28
28
  }, "theme">;
29
29
  export default StyledNavigationBar;
@@ -1,5 +1,5 @@
1
1
  declare const StyledNoteContent: import("styled-components").StyledComponent<"div", any, {
2
- hasPreview?: boolean | undefined;
2
+ hasPreview?: boolean;
3
3
  }, never>;
4
4
  declare const StyledNoteMain: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  declare const StyledInlineControl: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldsetProps } from "../../__internal__/fieldset";
3
2
  interface StyledDateFieldProps {
4
3
  isYearInput?: boolean;
@@ -6,7 +5,7 @@ interface StyledDateFieldProps {
6
5
  size?: "small" | "medium" | "large";
7
6
  }
8
7
  export declare const StyledNumeralDate: import("styled-components").StyledComponent<"div", any, {
9
- name?: string | undefined;
8
+ name?: string;
10
9
  }, never>;
11
10
  export declare const StyledDateField: import("styled-components").StyledComponent<"div", any, StyledDateFieldProps, never>;
12
11
  interface StyledFieldsetProps extends FieldsetProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StyledSelectContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
2
  interface StyledPagerContainerProps {
4
3
  variant?: "alternate" | "default";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PasswordProps } from "./password.component";
3
2
  declare const StyledPassword: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../textbox").TextboxProps & import("react").RefAttributes<HTMLInputElement>>, any, PasswordProps, never>;
4
3
  declare const HiddenAriaLive: import("styled-components").StyledComponent<"p", any, {}, never>;
@@ -20,6 +20,6 @@ interface AllStyledPillProps extends StyledPillProps {
20
20
  pillRole: "tag" | "status";
21
21
  }
22
22
  declare const StyledPill: import("styled-components").StyledComponent<"span", any, {
23
- theme: object; /** Override color variant, provide any color from palette or any valid css color value. */
23
+ theme: object;
24
24
  } & AllStyledPillProps, "theme">;
25
25
  export default StyledPill;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MarginProps } from "styled-system";
3
2
  import { PodProps } from "./pod.component";
4
3
  import { PodSize, PodVariant } from "./pod.config";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TransitionStatus } from "react-transition-group";
3
2
  type PopoverContainerWrapperProps = {
4
3
  hasFullWidth?: boolean;
@@ -1,2 +1,8 @@
1
- declare const getColoursForPortrait: (backgroundColour: string | undefined, darkBackground?: boolean, largeText?: boolean, strict?: boolean, foregroundColor?: string | undefined) => string;
1
+ declare const getColoursForPortrait: (backgroundColour: string | undefined, darkBackground?: boolean, largeText?: boolean,
2
+ /**
3
+ * Whether to use strict contrast (i.e., WCAG AAA). If this is false, it uses WCAG AA contrast
4
+ * ratios (4.5:1 for normal text, 3:1 for large text). If true, it uses 7:1 for normal text and
5
+ * 4.5:1 for large text.
6
+ */
7
+ strict?: boolean, foregroundColor?: string | undefined) => string;
2
8
  export default getColoursForPortrait;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProfileSize } from "./profile.config";
3
2
  interface ProfileSProps {
4
3
  size?: ProfileSize;
@@ -1,5 +1,5 @@
1
1
  declare const RadioButtonGroupStyle: import("styled-components").StyledComponent<"div", any, {
2
- inline?: boolean | undefined;
3
- legendInline?: boolean | undefined;
2
+ inline?: boolean;
3
+ legendInline?: boolean;
4
4
  }, never>;
5
5
  export default RadioButtonGroupStyle;
@@ -2,6 +2,6 @@ import { RadioButtonProps } from "./radio-button.component";
2
2
  declare const RadioButtonStyle: import("styled-components").StyledComponent<"div", any, {
3
3
  theme: object;
4
4
  } & import("../checkbox/checkbox.style").StyledCheckboxProps & Pick<RadioButtonProps, "disabled" | "reverse" | "size" | "fieldHelpInline"> & {
5
- inline?: boolean | undefined;
5
+ inline?: boolean;
6
6
  }, "theme">;
7
7
  export default RadioButtonStyle;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function isExpectedOption(element: React.ReactElement, expectedValue?: string | Record<string, unknown> | null): boolean;
@@ -1,8 +1,8 @@
1
1
  declare const StyledSidebarHeader: import("styled-components").StyledComponent<"div", any, {
2
2
  theme: object;
3
3
  } & {
4
- hasClose?: boolean | undefined;
5
- headerVariant?: "light" | "dark" | undefined;
4
+ hasClose?: boolean;
5
+ headerVariant?: "light" | "dark";
6
6
  }, "theme">;
7
7
  declare const StyledSidebarSubHeader: import("styled-components").StyledComponent<"div", any, {
8
8
  theme: object;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const StyledSimpleColor: import("styled-components").StyledComponent<"div", any, {}, never>;
3
2
  export declare const StyledColorSampleBox: import("styled-components").StyledComponent<"div", any, {
4
3
  color: string;
@@ -8,7 +8,7 @@ type StyledSplitButtonToggleProps = {
8
8
  declare const StyledSplitButtonToggle: import("styled-components").StyledComponent<"button", any, {
9
9
  theme: object;
10
10
  } & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<import("../button").ButtonProps, "buttonType"> & {
11
- iconOnly?: boolean | undefined;
12
- buttonType: import("../button/button.component").ButtonTypes;
11
+ iconOnly?: boolean;
12
+ buttonType: Required<import("../button").ButtonProps>["buttonType"];
13
13
  } & StyledSplitButtonToggleProps, "theme">;
14
14
  export default StyledSplitButtonToggle;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type StepFlowContextType = {
3
2
  validatedCurrentStep?: number;
4
3
  totalSteps?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface StepSequenceContextType {
3
2
  orientation: "horizontal" | "vertical";
4
3
  }
@@ -8,10 +8,10 @@ interface StyledTitleContentProps extends Pick<TabTitleProps, "align" | "borders
8
8
  }
9
9
  declare const StyledTitleContent: import("styled-components").StyledComponent<"span", any, StyledTitleContentProps, never>;
10
10
  declare const StyledTabTitleButton: import("styled-components").StyledComponent<"button", any, TabTitleProps & {
11
- validationRedesignOptIn?: boolean | undefined;
11
+ validationRedesignOptIn?: boolean;
12
12
  }, never>;
13
13
  declare const StyledTabTitleLink: import("styled-components").StyledComponent<"a", any, TabTitleProps & {
14
- validationRedesignOptIn?: boolean | undefined;
14
+ validationRedesignOptIn?: boolean;
15
15
  }, never>;
16
16
  interface StyledLayoutWrapperProps extends Pick<TabTitleProps, "titlePosition" | "position"> {
17
17
  hasCustomLayout?: boolean;
@@ -20,7 +20,8 @@ interface StyledLayoutWrapperProps extends Pick<TabTitleProps, "titlePosition" |
20
20
  }
21
21
  declare const StyledLayoutWrapper: import("styled-components").StyledComponent<"div", any, StyledLayoutWrapperProps, never>;
22
22
  declare const StyledVerticalIndicator: import("styled-components").StyledComponent<"div", any, {}, never>;
23
- declare const StyledSelectedIndicator: import("styled-components").StyledComponent<"div", any, Pick<TabTitleProps, "error" | "warning" | "position"> & {
24
- validationRedesignOptIn?: boolean | undefined;
25
- }, never>;
23
+ type StyledSelectedIndicatorProps = Pick<TabTitleProps, "position" | "error" | "warning"> & {
24
+ validationRedesignOptIn?: boolean;
25
+ };
26
+ declare const StyledSelectedIndicator: import("styled-components").StyledComponent<"div", any, StyledSelectedIndicatorProps, never>;
26
27
  export { StyledTabTitleButton, StyledTabTitleLink, StyledTitleContent, StyledLayoutWrapper, StyledSelectedIndicator, StyledVerticalIndicator, };
@@ -6,6 +6,6 @@ export type StyledTabProps = Pick<TabProps, "position" | "isTabSelected"> & {
6
6
  declare const StyledTab: import("styled-components").StyledComponent<"div", any, {
7
7
  theme: object;
8
8
  } & Pick<TabProps, "position" | "isTabSelected"> & {
9
- theme?: ThemeObject | undefined;
9
+ theme?: ThemeObject;
10
10
  }, "theme">;
11
11
  export default StyledTab;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  declare const LinkPreviewer: ({ previews, }: {
3
- previews?: React.JSX.Element[] | undefined;
3
+ previews?: React.JSX.Element[];
4
4
  }) => React.JSX.Element;
5
5
  export default LinkPreviewer;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from "../../../../button";
3
2
  interface FormattingButtonProps extends ButtonProps {
4
3
  tabIndex?: number;
5
4
  isActive?: boolean;
6
5
  }
7
6
  declare const StyledToolbar: import("styled-components").StyledComponent<"div", any, {
8
- hasHeader?: boolean | undefined;
7
+ hasHeader?: boolean;
9
8
  }, never>;
10
9
  declare const FormattingButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
11
10
  declare const CommandButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  declare const _default: React.Context<{
3
- onLinkAdded?: ((link: string, state: string) => void) | undefined;
3
+ onLinkAdded?: (link: string, state: string) => void;
4
4
  }>;
5
5
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaddingProps } from "styled-system";
3
2
  interface TileContextType {
4
3
  isHorizontal: boolean;
@@ -3,6 +3,6 @@ import { TileProps } from "./tile.component";
3
3
  declare const StyledTile: import("styled-components").StyledComponent<"div", any, {
4
4
  theme: object;
5
5
  } & Pick<TileProps, "height" | "width" | "variant" | "highlightVariant" | "roundness" | "borderWidth" | "borderVariant"> & {
6
- isHorizontal?: boolean | undefined;
6
+ isHorizontal?: boolean;
7
7
  } & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "theme">;
8
8
  export default StyledTile;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StyledTitle: import("styled-components").StyledComponent<"h3", any, {}, never>;
3
2
  declare const StyledSubtitle: import("styled-components").StyledComponent<"h4", any, {}, never>;
4
3
  declare const StyledAdornment: import("styled-components").StyledComponent<"div", any, {
@@ -6,23 +5,23 @@ declare const StyledAdornment: import("styled-components").StyledComponent<"div"
6
5
  }, never>;
7
6
  declare const StyledDescription: import("styled-components").StyledComponent<"p", any, {}, never>;
8
7
  declare const StyledTileSelect: import("styled-components").StyledComponent<"div", any, {
9
- checked?: boolean | undefined;
10
- disabled?: boolean | undefined;
11
- hasAccordion?: boolean | undefined;
8
+ checked?: boolean;
9
+ disabled?: boolean;
10
+ hasAccordion?: boolean;
12
11
  }, never>;
13
12
  declare const StyledFocusWrapper: import("styled-components").StyledComponent<"div", any, {
14
- checked?: boolean | undefined;
13
+ checked?: boolean;
15
14
  hasFocus: boolean;
16
15
  }, never>;
17
16
  declare const StyledTileSelectContainer: import("styled-components").StyledComponent<"div", any, {
18
17
  theme: object;
19
18
  } & {
20
- checked?: boolean | undefined;
21
- disabled?: boolean | undefined;
19
+ checked?: boolean;
20
+ disabled?: boolean;
22
21
  }, "theme">;
23
22
  declare const StyledFooterWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
24
23
  declare const StyledAccordionFooterWrapper: import("styled-components").StyledComponent<"div", any, {
25
- accordionExpanded?: boolean | undefined;
24
+ accordionExpanded?: boolean;
26
25
  }, never>;
27
26
  declare const StyledTileSelectInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../__internal__/input").InputProps & import("react").RefAttributes<HTMLInputElement | HTMLTextAreaElement>>, any, {}, never>;
28
27
  declare const StyledTitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StyledLabel: import("styled-components").StyledComponent<import("react").MemoExoticComponent<({ align, as, children, disabled, error, help, helpIcon, htmlFor, info, inline, isDarkBackground, isRequired, labelId, optional, pr, pl, tooltipId, useValidationIcon, validationIconId, warning, width, className, "aria-label": ariaLabel, }: import("../../__internal__/label").LabelProps) => import("react").JSX.Element>, any, {}, never>;
3
2
  export default StyledLabel;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { MessageVariant } from "../message/message.component";
3
2
  declare const StyledPortal: import("styled-components").StyledComponent<({ children, className, id, onReposition, inertOptOut, }: import("../portal/portal").PortalProps) => import("react").JSX.Element, any, {
4
3
  theme: object;
5
4
  } & {
6
- align?: "center" | "left" | "right" | undefined;
7
- alignY?: "center" | "bottom" | "top" | undefined;
8
- isNotice?: boolean | undefined;
5
+ align?: "left" | "center" | "right";
6
+ alignY?: "top" | "center" | "bottom";
7
+ isNotice?: boolean;
9
8
  }, "theme">;
10
9
  type ToastVariants = Exclude<MessageVariant, "ai">;
11
10
  type ToastStyleProps = {
@@ -18,11 +17,11 @@ type ToastStyleProps = {
18
17
  };
19
18
  declare const StyledToast: import("styled-components").StyledComponent<"div", any, ToastStyleProps, never>;
20
19
  declare const StyledToastContent: import("styled-components").StyledComponent<"div", any, {
21
- isNotice?: boolean | undefined;
22
- isDismiss?: boolean | undefined;
20
+ isNotice?: boolean;
21
+ isDismiss?: boolean;
23
22
  }, never>;
24
23
  declare const ToastWrapper: import("styled-components").StyledComponent<"div", any, {
25
- align?: "center" | "left" | "right" | undefined;
26
- isNotice?: boolean | undefined;
24
+ align?: "left" | "center" | "right";
25
+ isNotice?: boolean;
27
26
  }, never>;
28
27
  export { StyledPortal, StyledToast, StyledToastContent, ToastWrapper };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface VerticalMenuContextType {
3
2
  isFullScreen: boolean;
4
3
  }
@@ -8,7 +8,7 @@ declare const DepthContext: React.Context<number>;
8
8
  export declare const useDepth: () => number;
9
9
  export declare const DepthProvider: ({ children, value, }: {
10
10
  children: ReactNode;
11
- value?: number | undefined;
11
+ value?: number;
12
12
  }) => React.JSX.Element;
13
13
  export declare const IncreaseDepth: ({ children }: {
14
14
  children: ReactNode;