react-magma-dom 4.16.0-next.9 → 4.16.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.
@@ -77,14 +77,9 @@ export declare const HiddenLabelText: import("@emotion/styled").StyledComponent<
77
77
  theme?: import("@emotion/react").Theme;
78
78
  as?: React.ElementType<any>;
79
79
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
80
- export declare const HiddenInput: import("@emotion/styled").StyledComponent<{
81
- theme?: import("@emotion/react").Theme;
82
- as?: React.ElementType<any>;
83
- }, React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
84
- export declare const StyledFakeInput: import("@emotion/styled").StyledComponent<{
85
- theme?: import("@emotion/react").Theme;
86
- as?: React.ElementType<any>;
87
- } & {
80
+ export declare const checkboxInputClassName = "magma-checkbox-input";
81
+ export declare const HiddenInput: React.FC<React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>> | React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
82
+ interface FakeInputStyleProps {
88
83
  isChecked?: boolean;
89
84
  color: string;
90
85
  disabled?: boolean;
@@ -93,6 +88,13 @@ export declare const StyledFakeInput: import("@emotion/styled").StyledComponent<
93
88
  hasError?: boolean;
94
89
  hideFocus?: boolean;
95
90
  textPosition?: CheckboxTextPosition;
96
- theme?: ThemeInterface;
97
- }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
91
+ theme: ThemeInterface;
92
+ }
93
+ export interface StyledFakeInputProps extends FakeInputStyleProps {
94
+ children?: React.ReactNode;
95
+ style?: React.CSSProperties;
96
+ 'aria-hidden'?: React.AriaAttributes['aria-hidden'];
97
+ }
98
+ export declare const StyledFakeInput: React.FC<StyledFakeInputProps & React.RefAttributes<any>> | React.ForwardRefExoticComponent<StyledFakeInputProps & React.RefAttributes<any>>;
98
99
  export declare const Checkbox: React.MemoExoticComponent<React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>>;
100
+ export {};
@@ -88,6 +88,7 @@ interface DropdownContextInterface {
88
88
  setFloating?: (node: ReferenceType) => void;
89
89
  setReference?: (node: ReferenceType) => void;
90
90
  toggleRef?: any;
91
+ leftButtonRef?: React.MutableRefObject<HTMLButtonElement>;
91
92
  width?: string;
92
93
  }
93
94
  export declare const DropdownContext: React.Context<DropdownContextInterface>;
@@ -26,5 +26,9 @@ export interface DropdownSplitButtonProps extends ButtonStyles {
26
26
  * Function that fires when the button is clicked
27
27
  */
28
28
  onClick?: () => void;
29
+ /**
30
+ * Ref for the main action button (left side).
31
+ */
32
+ mainButtonRef?: React.Ref<HTMLButtonElement>;
29
33
  }
30
34
  export declare const DropdownSplitButton: React.ForwardRefExoticComponent<DropdownSplitButtonProps & React.RefAttributes<HTMLButtonElement>>;