carbon-react 109.3.1 → 109.3.4

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 (59) hide show
  1. package/esm/__internal__/fieldset/fieldset.component.d.ts +25 -0
  2. package/esm/__internal__/fieldset/fieldset.component.js +167 -50
  3. package/esm/__internal__/fieldset/fieldset.style.d.ts +13 -0
  4. package/esm/__internal__/fieldset/fieldset.style.js +0 -10
  5. package/esm/__internal__/fieldset/index.d.ts +2 -1
  6. package/esm/__internal__/popover/index.d.ts +2 -1
  7. package/esm/__internal__/popover/popover.component.d.ts +18 -0
  8. package/esm/__internal__/popover/popover.component.js +23 -21
  9. package/esm/__internal__/popover/popover.style.d.ts +2 -0
  10. package/esm/components/button/button.component.d.ts +2 -0
  11. package/esm/components/button/button.component.js +2 -0
  12. package/esm/components/multi-action-button/multi-action-button.component.js +1 -0
  13. package/esm/components/pager/pager.component.js +1 -1
  14. package/esm/components/pager/pager.style.js +1 -1
  15. package/esm/components/select/select-list/select-list.component.js +9 -1
  16. package/esm/components/select/select-list/select-list.style.js +8 -1
  17. package/esm/components/select/utils/highlight-part-of-text.js +13 -1
  18. package/esm/components/select/utils/with-filter.hoc.js +3 -2
  19. package/esm/components/split-button/index.d.ts +2 -2
  20. package/esm/components/split-button/split-button-children.style.d.ts +8 -0
  21. package/esm/components/split-button/split-button-children.style.js +3 -4
  22. package/esm/components/split-button/split-button-toggle.style.d.ts +10 -0
  23. package/esm/components/split-button/split-button.component.d.ts +29 -0
  24. package/esm/components/split-button/split-button.component.js +534 -87
  25. package/esm/components/split-button/split-button.config.d.ts +4 -0
  26. package/esm/components/split-button/split-button.style.d.ts +2 -0
  27. package/lib/__internal__/fieldset/fieldset.component.d.ts +25 -0
  28. package/lib/__internal__/fieldset/fieldset.component.js +167 -53
  29. package/lib/__internal__/fieldset/fieldset.style.d.ts +13 -0
  30. package/lib/__internal__/fieldset/fieldset.style.js +1 -12
  31. package/lib/__internal__/fieldset/index.d.ts +2 -1
  32. package/lib/__internal__/popover/index.d.ts +2 -1
  33. package/lib/__internal__/popover/popover.component.d.ts +18 -0
  34. package/lib/__internal__/popover/popover.component.js +24 -22
  35. package/lib/__internal__/popover/popover.style.d.ts +2 -0
  36. package/lib/components/button/button.component.d.ts +2 -0
  37. package/lib/components/button/button.component.js +2 -0
  38. package/lib/components/multi-action-button/multi-action-button.component.js +1 -0
  39. package/lib/components/pager/pager.component.js +1 -1
  40. package/lib/components/pager/pager.style.js +1 -1
  41. package/lib/components/select/select-list/select-list.component.js +9 -1
  42. package/lib/components/select/select-list/select-list.style.js +8 -1
  43. package/lib/components/select/utils/highlight-part-of-text.js +13 -1
  44. package/lib/components/select/utils/with-filter.hoc.js +3 -2
  45. package/lib/components/split-button/index.d.ts +2 -2
  46. package/lib/components/split-button/split-button-children.style.d.ts +8 -0
  47. package/lib/components/split-button/split-button-children.style.js +3 -4
  48. package/lib/components/split-button/split-button-toggle.style.d.ts +10 -0
  49. package/lib/components/split-button/split-button.component.d.ts +29 -0
  50. package/lib/components/split-button/split-button.component.js +535 -89
  51. package/lib/components/split-button/split-button.config.d.ts +4 -0
  52. package/lib/components/split-button/split-button.style.d.ts +2 -0
  53. package/package.json +2 -2
  54. package/esm/__internal__/fieldset/fieldset.d.ts +0 -37
  55. package/esm/__internal__/popover/popover.d.ts +0 -46
  56. package/esm/components/split-button/split-button.d.ts +0 -29
  57. package/lib/__internal__/fieldset/fieldset.d.ts +0 -37
  58. package/lib/__internal__/popover/popover.d.ts +0 -46
  59. package/lib/components/split-button/split-button.d.ts +0 -29
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { MarginProps } from "styled-system";
3
+ import { IconType } from "../icon";
4
+ export interface SplitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, MarginProps {
5
+ /** Set align of the rendered content */
6
+ align?: "left" | "right";
7
+ /** Button type: "primary" | "secondary" */
8
+ buttonType?: "primary" | "secondary";
9
+ /** The additional button to display. */
10
+ children: React.ReactNode;
11
+ /** A custom value for the data-element attribute */
12
+ "data-element"?: string;
13
+ /** A custom value for the data-role attribute */
14
+ "data-role"?: string;
15
+ /** Gives the button a disabled state. */
16
+ disabled?: boolean;
17
+ /** Defines an Icon position within the button: "before" | "after" */
18
+ iconPosition?: "before" | "after";
19
+ /** Defines an Icon type within the button */
20
+ iconType?: IconType;
21
+ /** The size of the buttons in the SplitButton. */
22
+ size?: "small" | "medium" | "large";
23
+ /** Second text child, renders under main text, only when size is "large" */
24
+ subtext?: string;
25
+ /** The text to be displayed in the SplitButton. */
26
+ text: string;
27
+ }
28
+ export declare const SplitButton: ({ align, buttonType, children, disabled, iconPosition, iconType, onClick, size, subtext, text, "data-element": dataElement, "data-role": dataRole, ...rest }: SplitButtonProps) => JSX.Element;
29
+ export default SplitButton;