@reapit/elements 3.6.4 → 3.7.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/dist/cjs/components/button/button.d.ts +1 -0
- package/dist/cjs/components/form-layout/form-layout.d.ts +2 -2
- package/dist/cjs/components/multi-select/multi-select.d.ts +1 -0
- package/dist/cjs/components/nav/nav-responsive.d.ts +3 -1
- package/dist/cjs/components/searchable-dropdown/__styles__/index.d.ts +1 -0
- package/dist/cjs/components/searchable-dropdown/index.d.ts +4 -1
- package/dist/cjs/components/searchable-dropdown/searchable-dropdown.d.ts +2 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/theming-colour-block.d.ts +6 -0
- package/dist/esm/components/button/button.d.ts +1 -0
- package/dist/esm/components/form-layout/form-layout.d.ts +2 -2
- package/dist/esm/components/multi-select/multi-select.d.ts +1 -0
- package/dist/esm/components/nav/nav-responsive.d.ts +3 -1
- package/dist/esm/components/searchable-dropdown/__styles__/index.d.ts +1 -0
- package/dist/esm/components/searchable-dropdown/index.d.ts +4 -1
- package/dist/esm/components/searchable-dropdown/searchable-dropdown.d.ts +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/theming-colour-block.d.ts +6 -0
- package/dist/index.css +44 -43
- package/package.json +2 -1
|
@@ -10,6 +10,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
10
10
|
chevronRight?: boolean;
|
|
11
11
|
fullWidth?: boolean;
|
|
12
12
|
className?: string;
|
|
13
|
+
/** Deprecated - remains part of API to avoid a breaking change but no longer part of style guide */
|
|
13
14
|
size?: ButtonSizeType;
|
|
14
15
|
}
|
|
15
16
|
export interface FloatingButtonProps extends ButtonProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
1
|
+
import React, { FC, HTMLAttributes } from 'react';
|
|
2
2
|
export declare type FormLayoutProps = HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
export declare const FormLayout: FC<FormLayoutProps>;
|
|
4
|
-
export declare const InputWrap:
|
|
4
|
+
export declare const InputWrap: React.ForwardRefExoticComponent<FormLayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export declare const InputWrapMed: FC<FormLayoutProps>;
|
|
6
6
|
export declare const InputWrapFull: FC<FormLayoutProps>;
|
|
@@ -15,6 +15,7 @@ export declare type MultiSelectInputWrapped = React.ForwardRefExoticComponent<Mu
|
|
|
15
15
|
export interface MultiSelectChipProps extends HTMLAttributes<HTMLInputElement> {
|
|
16
16
|
}
|
|
17
17
|
export declare const handleSetNativeInput: (id: string, selectedOptionValues: string[], testFunc?: ((value: string[]) => void) | undefined) => () => void;
|
|
18
|
+
export declare const handleResetDefaultValues: (setSelectedOptionValues: Dispatch<SetStateAction<string[]>>, setSelectedDefaultValues: Dispatch<SetStateAction<string[]>>, defaultValues?: string[] | undefined, selectedDefaultValues?: string[] | undefined) => () => void;
|
|
18
19
|
export declare const handleSelectedOptions: (value: string, selectedOptionValues: string[], setSelectedOptionValues: Dispatch<SetStateAction<string[]>>) => (event: ChangeEvent<HTMLInputElement>) => void;
|
|
19
20
|
export declare const MultiSelectChip: FC<MultiSelectChipProps>;
|
|
20
21
|
export declare const MultiSelect: FC<MultiSelectProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { Dispatch, FC, HTMLAttributes, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
import { IconNames } from '../icon';
|
|
3
3
|
export declare type NavResponsiveItemType = 'ICON' | 'ITEM' | 'SECONDARY';
|
|
4
4
|
export interface NavResponsiveOption {
|
|
@@ -16,4 +16,6 @@ export interface NavResponsiveProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
defaultNavIndex?: number;
|
|
17
17
|
defaultNavSubIndex?: number;
|
|
18
18
|
}
|
|
19
|
+
export declare type LogoIcon = 'reapitLogoSelectedMenu' | 'reapitLogoMenu';
|
|
20
|
+
export declare const handleToggleLogo: (logoState: LogoIcon, setLogoState: Dispatch<SetStateAction<LogoIcon>>) => () => void;
|
|
19
21
|
export declare const NavResponsive: FC<NavResponsiveProps>;
|
|
@@ -11,4 +11,5 @@ export declare const ElSearchableDropdownResultsContainer: import("@linaria/core
|
|
|
11
11
|
export declare const ElSearchableDropdownSearchInputAddOn: import("@linaria/core").StyledMeta & import("react").FC<import("../../input-add-on").InputAddOnProps>;
|
|
12
12
|
export declare const ElSearchableDropdownCloseButton: import("@linaria/core").StyledMeta & import("react").FC<import("../../icon").IconProps>;
|
|
13
13
|
export declare const ElSearchableDropdownSearchInput: import("@linaria/core").StyledMeta & import("../../input").InputWrapped;
|
|
14
|
+
export declare const ElSearchableDropdownSearchLabel: import("@linaria/core").StyledMeta & import("react").FC<import("../../label").LabelProps>;
|
|
14
15
|
export declare const ElSearchableDropdownSearchLoader: import("@linaria/core").StyledMeta & import("react").FC<import("../../loader").LoaderProps>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export * from './__styles__';
|
|
2
|
-
export {
|
|
2
|
+
export { SearchableDropdown, ControlledSearchableDropdown, SearchableDropdownSearchLabel } from './searchable-dropdown';
|
|
3
|
+
import { SearchableDropdownProps as T_SearchableDropdownProps, ControlledSearchableDropdownProps as T_ControlledSearchableDropdownProps } from './searchable-dropdown';
|
|
4
|
+
export declare type ControlledSearchableDropdownProps<T> = T_ControlledSearchableDropdownProps<T>;
|
|
5
|
+
export declare type SearchableDropdownProps<T> = T_SearchableDropdownProps<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { FC, HTMLAttributes } from 'react';
|
|
2
2
|
import { IconNames } from '../icon';
|
|
3
3
|
export interface SearchableDropdownProps<T> extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
getResults: (query: string) => Promise<T[]>;
|
|
@@ -30,3 +30,4 @@ export declare const SearchableDropdownInner: <T extends unknown>({ getResults,
|
|
|
30
30
|
export declare const SearchableDropdown: <T>(props: SearchableDropdownProps<T> & {
|
|
31
31
|
ref?: React.ForwardedRef<HTMLInputElement> | undefined;
|
|
32
32
|
}) => ReturnType<typeof SearchableDropdownInner>;
|
|
33
|
+
export declare const SearchableDropdownSearchLabel: FC<HTMLAttributes<HTMLLabelElement>>;
|