@uob-web-and-digital/component-library 2.23.2 → 2.23.3
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/components/atoms/FormInput/FormInput.d.ts +2 -1
- package/dist/components/atoms/FormInput/FormInput.stories.d.ts +1 -1
- package/dist/components/organisms/Header/components/SearchMenu.d.ts +2 -1
- package/dist/hooks/useHeaderNavigation.d.ts +1 -0
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/dist/module.js +3 -3
- package/package.json +1 -1
|
@@ -15,9 +15,10 @@ export interface FormInputProps {
|
|
|
15
15
|
defaultValue?: string;
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
required?: boolean;
|
|
18
|
+
autoFocus?: boolean;
|
|
18
19
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Primary UI component for user interaction
|
|
22
23
|
*/
|
|
23
|
-
export declare const FormInput: ({ theme, inverse, fieldName, hiddenLabel, defaultValue, placeholder, required, onChange }: FormInputProps) => ReactElement;
|
|
24
|
+
export declare const FormInput: ({ theme, inverse, fieldName, hiddenLabel, defaultValue, placeholder, required, autoFocus, onChange }: FormInputProps) => ReactElement;
|
|
@@ -3,7 +3,7 @@ import type { StoryObj } from '@storybook/react';
|
|
|
3
3
|
import { FormInput } from './FormInput';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ theme, inverse, fieldName, hiddenLabel, defaultValue, placeholder, required, onChange }: import("./FormInput").FormInputProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
6
|
+
component: ({ theme, inverse, fieldName, hiddenLabel, defaultValue, placeholder, required, autoFocus, onChange }: import("./FormInput").FormInputProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
7
|
tags: string[];
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
@@ -36,10 +36,11 @@ export interface SearchMenuProps {
|
|
|
36
36
|
handleSearchSubmit?: (e: React.SyntheticEvent) => void;
|
|
37
37
|
onClickGoBack?: () => void;
|
|
38
38
|
backLinkLabel?: string;
|
|
39
|
+
autoFocus?: boolean;
|
|
39
40
|
recommendedLinks?: RecommendedLink[];
|
|
40
41
|
recommendedLinkTitle?: string;
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
44
|
* Search component
|
|
44
45
|
*/
|
|
45
|
-
export declare const SearchMenu: ({ title, placeholder, introText, handleSearchChange, handleSearchSubmit, theme, inverse, onClickGoBack, backLinkLabel, recommendedLinks, recommendedLinkTitle }: SearchMenuProps) => ReactElement;
|
|
46
|
+
export declare const SearchMenu: ({ title, placeholder, introText, handleSearchChange, handleSearchSubmit, theme, inverse, onClickGoBack, backLinkLabel, autoFocus, recommendedLinks, recommendedLinkTitle }: SearchMenuProps) => ReactElement;
|
|
@@ -8,6 +8,7 @@ export interface UseHeaderNavigationProps {
|
|
|
8
8
|
}
|
|
9
9
|
export interface UseHeaderNavigationReturn {
|
|
10
10
|
openMenuButtonRef: RefObject<HTMLButtonElement>;
|
|
11
|
+
closeMenuButtonRef: RefObject<HTMLButtonElement>;
|
|
11
12
|
headerRef: RefObject<HTMLElement>;
|
|
12
13
|
desktopCampusSelectorRef: RefObject<HTMLDivElement>;
|
|
13
14
|
isOpen: boolean;
|