carbon-react 107.1.5 → 107.1.8

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 (81) hide show
  1. package/esm/__internal__/input/input.component.js +3 -0
  2. package/esm/__internal__/label/icon-wrapper.style.d.ts +2 -0
  3. package/esm/__internal__/label/icon-wrapper.style.js +4 -4
  4. package/esm/__internal__/label/index.d.ts +2 -1
  5. package/esm/__internal__/label/label.component.d.ts +27 -0
  6. package/esm/__internal__/label/label.component.js +42 -80
  7. package/esm/__internal__/label/label.style.d.ts +23 -3
  8. package/esm/__internal__/label/label.style.js +4 -19
  9. package/esm/__internal__/utils/helpers/events/events.d.ts +0 -58
  10. package/esm/__internal__/utils/helpers/events/events.js +12 -128
  11. package/esm/__spec_helper__/test-utils.d.ts +4 -25
  12. package/esm/__spec_helper__/test-utils.js +12 -25
  13. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -2
  14. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.d.ts +19 -0
  15. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +14 -21
  16. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.d.ts +5 -0
  17. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +0 -4
  18. package/esm/components/anchor-navigation/anchor-navigation.component.d.ts +14 -0
  19. package/esm/components/anchor-navigation/anchor-navigation.component.js +55 -72
  20. package/esm/components/anchor-navigation/anchor-navigation.style.d.ts +4 -0
  21. package/esm/components/anchor-navigation/anchor-section-divider.component.d.ts +4 -0
  22. package/esm/components/anchor-navigation/{anchor-section-divider/anchor-section-divider.style.js → anchor-section-divider.component.js} +3 -2
  23. package/esm/components/anchor-navigation/index.d.ts +5 -3
  24. package/esm/components/anchor-navigation/index.js +1 -1
  25. package/esm/components/date/__internal__/weekday/weekday.style.js +1 -1
  26. package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.js +1 -0
  27. package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +1 -0
  28. package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +1 -0
  29. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +3 -3
  30. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +1 -0
  31. package/esm/components/help/help.style.d.ts +2 -0
  32. package/esm/components/menu/__internal__/spec-helper/index.js +1 -2
  33. package/esm/components/menu/__internal__/submenu/submenu.component.js +2 -4
  34. package/esm/components/multi-action-button/multi-action-button.component.js +3 -0
  35. package/esm/components/numeral-date/numeral-date.component.js +1 -1
  36. package/esm/components/search/search.component.js +1 -2
  37. package/lib/__internal__/input/input.component.js +3 -0
  38. package/lib/__internal__/label/icon-wrapper.style.d.ts +2 -0
  39. package/lib/__internal__/label/icon-wrapper.style.js +2 -2
  40. package/lib/__internal__/label/index.d.ts +2 -1
  41. package/lib/__internal__/label/label.component.d.ts +27 -0
  42. package/lib/__internal__/label/label.component.js +40 -78
  43. package/lib/__internal__/label/label.style.d.ts +23 -3
  44. package/lib/__internal__/label/label.style.js +4 -22
  45. package/lib/__internal__/utils/helpers/events/events.d.ts +0 -58
  46. package/lib/__internal__/utils/helpers/events/events.js +12 -128
  47. package/lib/__spec_helper__/test-utils.d.ts +4 -25
  48. package/lib/__spec_helper__/test-utils.js +12 -25
  49. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -2
  50. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.d.ts +19 -0
  51. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +14 -21
  52. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.d.ts +5 -0
  53. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +0 -7
  54. package/lib/components/anchor-navigation/anchor-navigation.component.d.ts +14 -0
  55. package/lib/components/anchor-navigation/anchor-navigation.component.js +57 -73
  56. package/lib/components/anchor-navigation/anchor-navigation.style.d.ts +4 -0
  57. package/lib/components/anchor-navigation/anchor-section-divider.component.d.ts +4 -0
  58. package/lib/components/anchor-navigation/{anchor-section-divider/anchor-section-divider.style.js → anchor-section-divider.component.js} +3 -2
  59. package/lib/components/anchor-navigation/index.d.ts +5 -3
  60. package/lib/components/anchor-navigation/index.js +1 -1
  61. package/lib/components/date/__internal__/weekday/weekday.style.js +1 -1
  62. package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +1 -0
  63. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +1 -0
  64. package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +1 -0
  65. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +2 -4
  66. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +1 -0
  67. package/lib/components/help/help.style.d.ts +2 -0
  68. package/lib/components/menu/__internal__/spec-helper/index.js +1 -2
  69. package/lib/components/menu/__internal__/submenu/submenu.component.js +2 -4
  70. package/lib/components/multi-action-button/multi-action-button.component.js +3 -0
  71. package/lib/components/numeral-date/numeral-date.component.js +1 -1
  72. package/lib/components/search/search.component.js +1 -3
  73. package/package.json +1 -1
  74. package/esm/__internal__/label/label.d.ts +0 -43
  75. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.d.ts +0 -23
  76. package/esm/components/anchor-navigation/anchor-navigation.d.ts +0 -11
  77. package/esm/components/anchor-navigation/anchor-section-divider/anchor-section-divider.d.ts +0 -12
  78. package/lib/__internal__/label/label.d.ts +0 -43
  79. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.d.ts +0 -23
  80. package/lib/components/anchor-navigation/anchor-navigation.d.ts +0 -11
  81. package/lib/components/anchor-navigation/anchor-section-divider/anchor-section-divider.d.ts +0 -12
@@ -1,43 +0,0 @@
1
- import * as React from "react";
2
- import { ValidationProps } from "../validations";
3
-
4
- export interface LabelPropTypes extends ValidationProps {
5
- /** Label width */
6
- width?: number;
7
- /** Label alignment */
8
- align?: "left" | "right";
9
- /** When true, label is placed in line an input */
10
- inline?: boolean;
11
- /** Flag to configure component as mandatory */
12
- isRequired?: boolean;
13
- /** If true, the component will be disabled */
14
- disabled?: boolean;
15
- /** Flag to configure component as optional in Form */
16
- optional?: boolean;
17
- /** The unique id of the label element */
18
- labelId?: string;
19
- /** The unique id of the Help component tooltip, used for accessibility */
20
- tooltipId?: string;
21
- /** Children elements */
22
- children?: React.ReactNode;
23
- /** A message that the Help component will display */
24
- help?: React.ReactNode;
25
- /** Icon type */
26
- helpIcon?: string;
27
- /** Overrides the default tabindex of the Help component */
28
- helpTabIndex?: string;
29
- /** Whether to show the validation icon */
30
- useValidationIcon?: boolean;
31
- /** A string that represents the ID of another form element */
32
- htmlFor?: string;
33
- /** Padding right, integer multiplied by base spacing constant (8) */
34
- pr?: 1 | 2;
35
- /** Padding left, integer multiplied by base spacing constant (8) */
36
- pl?: 1 | 2;
37
- /** Id of the validation icon */
38
- validationIconId?: string;
39
- }
40
-
41
- declare function Label(props: LabelPropTypes): JSX.Element;
42
-
43
- export default Label;
@@ -1,23 +0,0 @@
1
- import * as React from "react";
2
-
3
- export interface AnchorNavigationItemProps {
4
- children?: React.ReactNode;
5
- /** href to be passed to the anchor element, can be linked with id passed to the scrollable section */
6
- href?: string;
7
- /** Indicates if component is selected */
8
- isSelected?: boolean;
9
- /** onClick handler */
10
- onClick?: (ev: React.MouseEvent<HTMLAnchorElement>) => void;
11
- /** OnKeyDown handler */
12
- onKeyDown?: (ev: React.KeyboardEvent<HTMLAnchorElement>) => void;
13
- /** tabIndex passed to the anchor element */
14
- tabIndex?: number;
15
- /** Reference to the section html element meant to be shown */
16
- target?: React.Ref<HTMLElement>;
17
- }
18
-
19
- declare function AnchorNavigationItem(
20
- props: AnchorNavigationItemProps & React.RefAttributes<HTMLAnchorElement>
21
- ): JSX.Element;
22
-
23
- export default AnchorNavigationItem;
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
-
3
- export interface AnchorNavigationProps {
4
- children?: React.ReactNode;
5
- /** The AnchorNavigationItems components to be rendered in the sticky navigation */
6
- stickyNavigation?: React.ReactNode;
7
- }
8
-
9
- declare function AnchorNavigation(props: AnchorNavigationProps): JSX.Element;
10
-
11
- export default AnchorNavigation;
@@ -1,12 +0,0 @@
1
- import { StyledComponentProps } from "styled-components";
2
-
3
- declare function AnchorSectionDivider(
4
- attrs: StyledComponentProps<
5
- "div",
6
- Record<string, unknown>,
7
- Record<string, unknown>,
8
- ""
9
- >
10
- ): JSX.Element;
11
-
12
- export default AnchorSectionDivider;