@happeouikit/form-elements 2.3.46 → 2.3.48

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.
@@ -1,3 +1,3 @@
1
1
  import { CheckboxProps } from "./Checkbox.types";
2
- declare const Checkbox: ({ label, subtitle, description, indeterminate, onChange, style, disabled, checked, id, background, "data-tip": dataTip, "data-tip-disable": dataTipDisable, "data-testid": dataTestId, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Checkbox: ({ label, subtitle, description, indeterminate, onChange, style, disabled, checked, id, background, "data-tip": dataTip1, "data-tooltip-content": dataTip2, "data-tooltip-id": dataTooltipId, "data-testid": dataTestId, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Checkbox;
@@ -1,7 +1,14 @@
1
- export const dropdownStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
2
- declare const _default: React.ForwardRefExoticComponent<Omit<{
3
- [x: string]: any;
4
- label: any;
5
- }, "ref"> & React.RefAttributes<any>>;
1
+ /// <reference types="react" />
2
+ import { Props as SelectProps } from "react-select";
3
+ interface DropdownProps extends SelectProps {
4
+ label: string;
5
+ hideOnMobile?: boolean;
6
+ }
7
+ interface DropdownRef {
8
+ setValue: (value: any) => void;
9
+ }
10
+ export declare const dropdownStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
11
+ hideOnMobile?: boolean | undefined;
12
+ }, any>>;
13
+ declare const _default: import("react").ForwardRefExoticComponent<DropdownProps & import("react").RefAttributes<DropdownRef>>;
6
14
  export default _default;
7
- import React from "react";
package/dist/Switch.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { SwitchProps } from "./Switch.types";
2
- declare const Switch: ({ label, subtitle, description, tabIndex, id, disabled, checked, defaultChecked, required, onChange, background, "data-tip": dataTip, "data-tip-disable": dataTipDisable, "data-testid": dataTestId, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Switch: ({ label, subtitle, description, tabIndex, id, disabled, checked, defaultChecked, required, onChange, background, "data-tip": dataTip1, "data-tooltip-content": dataTip2, "data-tooltip-id": dataTipId, "data-testid": dataTestId, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Switch;