carbon-react 114.18.2 → 115.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__/checkable-input/checkable-input.component.d.ts +1 -1
- package/esm/__internal__/checkable-input/checkable-input.component.js +3 -4
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.d.ts +2 -0
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +5 -5
- package/esm/__internal__/input/input.component.js +2 -1
- package/esm/__internal__/input-behaviour/input-behaviour.component.js +2 -7
- package/esm/__internal__/input-behaviour/useInputBehaviour.d.ts +0 -1
- package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +2 -6
- package/esm/components/action-popover/action-popover.component.js +9 -0
- package/esm/components/checkbox/checkbox.component.d.ts +2 -0
- package/esm/components/checkbox/checkbox.component.js +2 -0
- package/esm/components/draggable/draggable-container.component.d.ts +17 -0
- package/esm/components/draggable/draggable-container.component.js +174 -61
- package/esm/components/draggable/draggable-item.component.d.ts +30 -0
- package/esm/components/draggable/draggable-item.component.js +180 -36
- package/esm/components/draggable/draggable-item.style.d.ts +9 -0
- package/esm/components/draggable/index.d.ts +4 -2
- package/esm/components/draggable/internal/drop-target.component.d.ts +8 -0
- package/esm/components/draggable/internal/drop-target.component.js +187 -0
- package/esm/components/grouped-character/grouped-character.component.js +0 -1
- package/esm/components/inline-inputs/index.d.ts +1 -1
- package/esm/components/inline-inputs/index.js +1 -1
- package/esm/components/inline-inputs/inline-inputs.component.d.ts +6 -5
- package/esm/components/inline-inputs/inline-inputs.component.js +8 -13
- package/esm/components/number/number.component.js +0 -1
- package/esm/components/select/filterable-select/filterable-select.component.js +11 -4
- package/esm/components/select/multi-select/multi-select.component.js +13 -4
- package/esm/components/select/select-textbox/select-textbox.component.js +2 -0
- package/esm/components/select/simple-select/simple-select.component.js +13 -4
- package/esm/components/settings-row/index.d.ts +2 -1
- package/esm/components/settings-row/settings-row.component.d.ts +22 -0
- package/esm/components/settings-row/settings-row.component.js +165 -23
- package/esm/components/settings-row/settings-row.style.d.ts +7 -0
- package/esm/components/textarea/textarea.component.d.ts +2 -0
- package/esm/components/textarea/textarea.component.js +2 -2
- package/esm/components/textbox/textbox.component.d.ts +7 -3
- package/esm/components/textbox/textbox.component.js +3 -5
- package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +0 -1
- package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +1 -3
- package/lib/__internal__/checkable-input/checkable-input.component.d.ts +1 -1
- package/lib/__internal__/checkable-input/checkable-input.component.js +3 -4
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.d.ts +2 -0
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +5 -5
- package/lib/__internal__/input/input.component.js +2 -1
- package/lib/__internal__/input-behaviour/input-behaviour.component.js +2 -12
- package/lib/__internal__/input-behaviour/useInputBehaviour.d.ts +0 -1
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +2 -6
- package/lib/components/action-popover/action-popover.component.js +10 -0
- package/lib/components/checkbox/checkbox.component.d.ts +2 -0
- package/lib/components/checkbox/checkbox.component.js +2 -0
- package/lib/components/draggable/draggable-container.component.d.ts +17 -0
- package/lib/components/draggable/draggable-container.component.js +174 -64
- package/lib/components/draggable/draggable-item.component.d.ts +30 -0
- package/lib/components/draggable/draggable-item.component.js +179 -37
- package/lib/components/draggable/draggable-item.style.d.ts +9 -0
- package/lib/components/draggable/index.d.ts +4 -2
- package/lib/components/draggable/internal/drop-target.component.d.ts +8 -0
- package/lib/components/draggable/internal/drop-target.component.js +200 -0
- package/lib/components/grouped-character/grouped-character.component.js +0 -1
- package/lib/components/inline-inputs/index.d.ts +1 -1
- package/lib/components/inline-inputs/index.js +2 -10
- package/lib/components/inline-inputs/inline-inputs.component.d.ts +6 -5
- package/lib/components/inline-inputs/inline-inputs.component.js +11 -20
- package/lib/components/number/number.component.js +0 -1
- package/lib/components/select/filterable-select/filterable-select.component.js +12 -4
- package/lib/components/select/multi-select/multi-select.component.js +14 -4
- package/lib/components/select/select-textbox/select-textbox.component.js +2 -0
- package/lib/components/select/simple-select/simple-select.component.js +14 -4
- package/lib/components/settings-row/index.d.ts +2 -1
- package/lib/components/settings-row/settings-row.component.d.ts +22 -0
- package/lib/components/settings-row/settings-row.component.js +166 -26
- package/lib/components/settings-row/settings-row.style.d.ts +7 -0
- package/lib/components/textarea/textarea.component.d.ts +2 -0
- package/lib/components/textarea/textarea.component.js +2 -2
- package/lib/components/textbox/textbox.component.d.ts +7 -3
- package/lib/components/textbox/textbox.component.js +3 -5
- package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +0 -1
- package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +1 -3
- package/package.json +1 -1
- package/esm/components/draggable/draggable-container.d.ts +0 -28
- package/esm/components/draggable/draggable-item.d.ts +0 -18
- package/esm/components/settings-row/settings-row.d.ts +0 -21
- package/lib/components/draggable/draggable-container.d.ts +0 -28
- package/lib/components/draggable/draggable-item.d.ts +0 -18
- package/lib/components/settings-row/settings-row.d.ts +0 -21
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export interface DraggableItemProps {
|
|
4
|
-
/**
|
|
5
|
-
* The id of the `DraggableItem`.
|
|
6
|
-
*
|
|
7
|
-
* Use this prop to make `Draggable` works
|
|
8
|
-
*/
|
|
9
|
-
id: number | string;
|
|
10
|
-
/** The content of the component. */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
findItem?: () => void;
|
|
13
|
-
moveItem?: () => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare function DraggableItem(props: DraggableItemProps): JSX.Element;
|
|
17
|
-
|
|
18
|
-
export default DraggableItem;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { HeadingType } from "../heading";
|
|
3
|
-
|
|
4
|
-
export interface SettingsRowProps {
|
|
5
|
-
/** The CSS classes to apply to the component. */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** A title for this group of settings. */
|
|
8
|
-
title?: string;
|
|
9
|
-
/** Defines the HTML heading element of the `title` within the component. */
|
|
10
|
-
headingType?: HeadingType;
|
|
11
|
-
/** A string or JSX object that provides a short description about the group of settings. */
|
|
12
|
-
description?: React.ReactNode;
|
|
13
|
-
/** Shows a divider below the component. */
|
|
14
|
-
divider?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare function SettingsRow(
|
|
18
|
-
props: React.PropsWithChildren<SettingsRowProps>
|
|
19
|
-
): JSX.Element;
|
|
20
|
-
|
|
21
|
-
export default SettingsRow;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { DraggableItemProps } from "./draggable-item";
|
|
3
|
-
|
|
4
|
-
type DraggableContainerChild =
|
|
5
|
-
| React.ReactElement<DraggableItemProps>
|
|
6
|
-
| boolean
|
|
7
|
-
| null
|
|
8
|
-
| undefined;
|
|
9
|
-
|
|
10
|
-
export interface DraggableContainerProps {
|
|
11
|
-
/** Callback fired when order is changed */
|
|
12
|
-
getOrder?: (
|
|
13
|
-
draggableItemIds: (number | string)[],
|
|
14
|
-
movedItemId: string | number
|
|
15
|
-
) => void;
|
|
16
|
-
/**
|
|
17
|
-
* The content of the component
|
|
18
|
-
*
|
|
19
|
-
* `<DraggableItem />` is required to make `Draggable` works
|
|
20
|
-
*/
|
|
21
|
-
children?: DraggableContainerChild | DraggableContainerChild[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare function DraggableContainer(
|
|
25
|
-
props: DraggableContainerProps
|
|
26
|
-
): JSX.Element;
|
|
27
|
-
|
|
28
|
-
export default DraggableContainer;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export interface DraggableItemProps {
|
|
4
|
-
/**
|
|
5
|
-
* The id of the `DraggableItem`.
|
|
6
|
-
*
|
|
7
|
-
* Use this prop to make `Draggable` works
|
|
8
|
-
*/
|
|
9
|
-
id: number | string;
|
|
10
|
-
/** The content of the component. */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
findItem?: () => void;
|
|
13
|
-
moveItem?: () => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare function DraggableItem(props: DraggableItemProps): JSX.Element;
|
|
17
|
-
|
|
18
|
-
export default DraggableItem;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { HeadingType } from "../heading";
|
|
3
|
-
|
|
4
|
-
export interface SettingsRowProps {
|
|
5
|
-
/** The CSS classes to apply to the component. */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** A title for this group of settings. */
|
|
8
|
-
title?: string;
|
|
9
|
-
/** Defines the HTML heading element of the `title` within the component. */
|
|
10
|
-
headingType?: HeadingType;
|
|
11
|
-
/** A string or JSX object that provides a short description about the group of settings. */
|
|
12
|
-
description?: React.ReactNode;
|
|
13
|
-
/** Shows a divider below the component. */
|
|
14
|
-
divider?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare function SettingsRow(
|
|
18
|
-
props: React.PropsWithChildren<SettingsRowProps>
|
|
19
|
-
): JSX.Element;
|
|
20
|
-
|
|
21
|
-
export default SettingsRow;
|