carbon-react 110.11.1 → 111.0.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__/popover/popover.component.d.ts +5 -10
- package/esm/__internal__/popover/popover.component.js +34 -55
- package/esm/components/action-popover/action-popover.style.js +1 -1
- package/esm/components/date/__internal__/date-picker/date-picker.component.js +5 -12
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +1 -1
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +18 -19
- package/esm/components/heading/heading.component.d.ts +31 -0
- package/esm/components/heading/heading.component.js +174 -43
- package/esm/components/heading/heading.style.d.ts +26 -12
- package/esm/components/heading/index.d.ts +2 -1
- package/esm/components/popover-container/popover-container.component.js +9 -14
- package/esm/components/select/filterable-select/filterable-select.component.js +2 -2
- package/esm/components/select/filterable-select/filterable-select.d.ts +2 -16
- package/esm/components/select/list-action-button/list-action-button.style.js +0 -14
- package/esm/components/select/multi-select/multi-select.component.js +2 -2
- package/esm/components/select/multi-select/multi-select.d.ts +2 -16
- package/esm/components/select/option/option.style.js +1 -1
- package/esm/components/select/option-row/option-row.style.js +1 -1
- package/esm/components/select/select-list/select-list-container.style.js +0 -4
- package/esm/components/select/select-list/select-list.component.js +11 -26
- package/esm/components/select/select-textbox/select-textbox.component.js +28 -59
- package/esm/components/select/simple-select/simple-select.component.js +2 -2
- package/esm/components/select/simple-select/simple-select.d.ts +2 -16
- package/esm/hooks/__internal__/useFloating/index.d.ts +1 -0
- package/esm/hooks/__internal__/useFloating/index.js +1 -0
- package/esm/hooks/__internal__/useFloating/useFloating.d.ts +13 -0
- package/esm/hooks/__internal__/useFloating/useFloating.js +71 -0
- package/lib/__internal__/popover/popover.component.d.ts +5 -10
- package/lib/__internal__/popover/popover.component.js +35 -55
- package/lib/components/action-popover/action-popover.style.js +1 -1
- package/lib/components/date/__internal__/date-picker/date-picker.component.js +7 -12
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +1 -1
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +18 -19
- package/lib/components/heading/heading.component.d.ts +31 -0
- package/lib/components/heading/heading.component.js +175 -46
- package/lib/components/heading/heading.style.d.ts +26 -12
- package/lib/components/heading/index.d.ts +2 -1
- package/lib/components/popover-container/popover-container.component.js +10 -14
- package/lib/components/select/filterable-select/filterable-select.component.js +2 -2
- package/lib/components/select/filterable-select/filterable-select.d.ts +2 -16
- package/lib/components/select/list-action-button/list-action-button.style.js +0 -15
- package/lib/components/select/multi-select/multi-select.component.js +2 -2
- package/lib/components/select/multi-select/multi-select.d.ts +2 -16
- package/lib/components/select/option/option.style.js +1 -1
- package/lib/components/select/option-row/option-row.style.js +1 -1
- package/lib/components/select/select-list/select-list-container.style.js +0 -4
- package/lib/components/select/select-list/select-list.component.js +12 -27
- package/lib/components/select/select-textbox/select-textbox.component.js +28 -59
- package/lib/components/select/simple-select/simple-select.component.js +2 -2
- package/lib/components/select/simple-select/simple-select.d.ts +2 -16
- package/lib/hooks/__internal__/useFloating/index.d.ts +1 -0
- package/lib/hooks/__internal__/useFloating/index.js +15 -0
- package/lib/hooks/__internal__/useFloating/package.json +6 -0
- package/lib/hooks/__internal__/useFloating/useFloating.d.ts +13 -0
- package/lib/hooks/__internal__/useFloating/useFloating.js +80 -0
- package/package.json +2 -2
- package/esm/components/heading/heading.d.ts +0 -33
- package/lib/components/heading/heading.d.ts +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { MarginProps } from "styled-system";
|
|
3
|
-
|
|
4
|
-
export interface HeadingProps extends MarginProps {
|
|
5
|
-
/** Child elements */
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/** Defines the title for the heading. */
|
|
8
|
-
title?: React.ReactNode;
|
|
9
|
-
/** Defines the title id for the heading. */
|
|
10
|
-
titleId?: string;
|
|
11
|
-
/** Defines the subheader for the heading. */
|
|
12
|
-
subheader?: React.ReactNode;
|
|
13
|
-
/** Defines the subtitle id for the heading. */
|
|
14
|
-
subtitleId?: string;
|
|
15
|
-
/** Defines the help text for the heading. */
|
|
16
|
-
help?: string;
|
|
17
|
-
/** Defines the help link for the heading. */
|
|
18
|
-
helpLink?: string;
|
|
19
|
-
/** Defines the a href for the back link. */
|
|
20
|
-
backLink?: string | React.MouseEventHandler<HTMLButtonElement>;
|
|
21
|
-
/** Adds a divider below the heading and the content. */
|
|
22
|
-
divider?: boolean;
|
|
23
|
-
/** Adds a separator between the title and the subheader. */
|
|
24
|
-
separator?: boolean;
|
|
25
|
-
/** Pills that will be added after the title. */
|
|
26
|
-
pills?: React.ReactNode;
|
|
27
|
-
/** Aria label for rendered help component */
|
|
28
|
-
helpAriaLabel?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare function Heading(props: HeadingProps): JSX.Element | null;
|
|
32
|
-
|
|
33
|
-
export default Heading;
|