magneto365.ui 2.69.0-beta.2 → 2.69.0-beta.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/assets/3f84ef2fa90fc06b.svg +17 -0
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +822 -729
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/molecules/Input/Input.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.component.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface.d.ts +54 -0
- package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/SearchBar.component.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/MobileSearchbar/MobileSearchbar.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/organism/ApplicationSummary/ApplicationSummary.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +3 -1
- package/dist/cjs/types/components/hooks/useClickOutside/index.d.ts +1 -0
- package/dist/cjs/types/constants/icons.constants.d.ts +1 -0
- package/dist/cjs/types/constants/stories/headers.constants.d.ts +4 -3
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +822 -729
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/molecules/Input/Input.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.component.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface.d.ts +54 -0
- package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/SearchBar.component.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/MobileSearchbar/MobileSearchbar.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/organism/ApplicationSummary/ApplicationSummary.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +3 -1
- package/dist/esm/types/components/hooks/useClickOutside/index.d.ts +1 -0
- package/dist/esm/types/constants/icons.constants.d.ts +1 -0
- package/dist/esm/types/constants/stories/headers.constants.d.ts +4 -3
- package/dist/index.d.ts +15 -1
- package/package.json +1 -1
package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IMegaMenuSearchBar {
|
|
3
|
+
location: ISearchBar;
|
|
4
|
+
occupation: ISearchBar;
|
|
5
|
+
}
|
|
6
|
+
export interface ISearchBar {
|
|
7
|
+
/**
|
|
8
|
+
* Sets the value for the input in the searchbar
|
|
9
|
+
*/
|
|
10
|
+
termValue: any;
|
|
11
|
+
/**
|
|
12
|
+
* Placeholder text for the searchbar
|
|
13
|
+
*/
|
|
14
|
+
placeholder: string;
|
|
15
|
+
/**
|
|
16
|
+
* Handler for the input value
|
|
17
|
+
*/
|
|
18
|
+
onSearch: (searchValue: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Icon in search input
|
|
21
|
+
*/
|
|
22
|
+
icon?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Action Icon
|
|
25
|
+
*/
|
|
26
|
+
actionIcon?: string;
|
|
27
|
+
/**
|
|
28
|
+
* options
|
|
29
|
+
*/
|
|
30
|
+
options: ISearchOptions[];
|
|
31
|
+
/**
|
|
32
|
+
* sectionTitle
|
|
33
|
+
*/
|
|
34
|
+
sectionTitle?: ISectionTitle;
|
|
35
|
+
/**
|
|
36
|
+
* class name
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
onSelectOption?: (option: ISearchOptions) => void;
|
|
43
|
+
}
|
|
44
|
+
export interface ISectionTitle {
|
|
45
|
+
title: string;
|
|
46
|
+
url: string;
|
|
47
|
+
onClick: (event: React.MouseEvent) => void;
|
|
48
|
+
icon?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ISearchOptions {
|
|
51
|
+
title: string;
|
|
52
|
+
subtitle?: string;
|
|
53
|
+
url: string;
|
|
54
|
+
}
|
|
@@ -4,6 +4,7 @@ import { IPopoverRef } from '@components/UI/molecules/MegaMenuPopover/MegaMenuPo
|
|
|
4
4
|
import { IlistMenuUserProps } from '@components/UI/organism';
|
|
5
5
|
import React, { ReactNode } from 'react';
|
|
6
6
|
import { ISelectOptions } from '@components/UI/organism/Select2/Select2.interface';
|
|
7
|
+
import { IMegaMenuSearchBar } from '@components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface';
|
|
7
8
|
export interface IMegaMenuLink {
|
|
8
9
|
label: string;
|
|
9
10
|
url: string;
|
|
@@ -29,7 +30,8 @@ export interface IMegaMenuMainHeader {
|
|
|
29
30
|
onClickSignUp: (event: Event) => Promise<void>;
|
|
30
31
|
};
|
|
31
32
|
selectCountry?: ISelectOptions<unknown>;
|
|
32
|
-
searchBarProps?:
|
|
33
|
+
searchBarProps?: IMegaMenuSearchBar;
|
|
34
|
+
mobileSearchBarProps: ISearchbar;
|
|
33
35
|
homeUrl?: string;
|
|
34
36
|
homeText?: string;
|
|
35
37
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useClickOutside: (ref: React.RefObject<HTMLElement>, handler: () => void) => void;
|
|
@@ -190,3 +190,4 @@ export { default as Youtube } from '../assets/Youtube.svg';
|
|
|
190
190
|
export { default as YoutubeSolid } from '../assets/YoutubeSolid.svg';
|
|
191
191
|
export { default as FilterIcon } from '../assets/filter-search.svg';
|
|
192
192
|
export { default as SortIcon } from '../assets/SortIcon.svg';
|
|
193
|
+
export { default as CurrentLocation } from '../assets/current-location.svg';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IBreadcrumb, IMainButton, IconProps } from '@components/UI/atoms';
|
|
2
|
-
import { IHeaderTabs, IListMenuIcons, IMenuItems,
|
|
2
|
+
import { IHeaderTabs, IListMenuIcons, IMenuItems, ISearchbar } from '@components/UI/molecules';
|
|
3
3
|
import { IBrands } from '@components/UI/molecules/BrandsContainer/BrandsContainer.interface';
|
|
4
|
+
import { IMegaMenuSearchBar } from '@components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface';
|
|
4
5
|
export declare const ourBrandsText = "Nuestras Marcas";
|
|
5
6
|
export declare const brands: IBrands[];
|
|
6
7
|
export declare const breadcrumbProps: IBreadcrumb;
|
|
@@ -81,8 +82,8 @@ export declare const DrawerRightTabStyles: {
|
|
|
81
82
|
export declare const JobsTabsProps: IHeaderTabs;
|
|
82
83
|
export declare const ProcessTabsProps: IHeaderTabs;
|
|
83
84
|
export declare const CurriculumTabProps: IHeaderTabs;
|
|
84
|
-
export declare const SearchbarProps:
|
|
85
|
-
export declare const MobileSearchbarProps:
|
|
85
|
+
export declare const SearchbarProps: IMegaMenuSearchBar;
|
|
86
|
+
export declare const MobileSearchbarProps: ISearchbar;
|
|
86
87
|
export declare const iconPropsBreadCrumb: IconProps;
|
|
87
88
|
export declare const searchMobileProps: IMainButton;
|
|
88
89
|
export declare const closeSearchMobileProps: IMainButton;
|