magneto365.ui 2.69.0-beta.1 → 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 +823 -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 +5 -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 +823 -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 +5 -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 +17 -1
- package/package.json +1 -1
package/dist/esm/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
|
+
}
|
|
@@ -3,6 +3,8 @@ import { ISearchbar } from '@components/UI/molecules';
|
|
|
3
3
|
import { IPopoverRef } from '@components/UI/molecules/MegaMenuPopover/MegaMenuPopover.interface';
|
|
4
4
|
import { IlistMenuUserProps } from '@components/UI/organism';
|
|
5
5
|
import React, { ReactNode } from 'react';
|
|
6
|
+
import { ISelectOptions } from '@components/UI/organism/Select2/Select2.interface';
|
|
7
|
+
import { IMegaMenuSearchBar } from '@components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface';
|
|
6
8
|
export interface IMegaMenuLink {
|
|
7
9
|
label: string;
|
|
8
10
|
url: string;
|
|
@@ -27,7 +29,9 @@ export interface IMegaMenuMainHeader {
|
|
|
27
29
|
signUpText: string;
|
|
28
30
|
onClickSignUp: (event: Event) => Promise<void>;
|
|
29
31
|
};
|
|
30
|
-
|
|
32
|
+
selectCountry?: ISelectOptions<unknown>;
|
|
33
|
+
searchBarProps?: IMegaMenuSearchBar;
|
|
34
|
+
mobileSearchBarProps: ISearchbar;
|
|
31
35
|
homeUrl?: string;
|
|
32
36
|
homeText?: string;
|
|
33
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ import { IRightsReservedText as IRightsReservedText$1 } from '@components/UI/mol
|
|
|
39
39
|
import { IFooterMenuLinks as IFooterMenuLinks$1 } from '@components/UI/organism/FooterMenuLinks/FooterMenuLinks.interface';
|
|
40
40
|
import { IMegaMenuTab as IMegaMenuTab$1 } from '@components/UI/atoms/MegaMenuTab/MegaMenuTab.interface';
|
|
41
41
|
import { IPopoverRef as IPopoverRef$1 } from '@components/UI/molecules/MegaMenuPopover/MegaMenuPopover.interface';
|
|
42
|
+
import { ISelectOptions as ISelectOptions$1 } from '@components/UI/organism/Select2/Select2.interface';
|
|
43
|
+
import { IMegaMenuSearchBar } from '@components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface';
|
|
42
44
|
import { ERenderType } from '@constants/stories';
|
|
43
45
|
import { IAlphabetFilter as IAlphabetFilter$1 } from '@components/UI/organism/AlphabetFilter/AlphabetFilter.interface';
|
|
44
46
|
|
|
@@ -2618,6 +2620,10 @@ interface IInput extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
2618
2620
|
* this property sets the max counter value
|
|
2619
2621
|
*/
|
|
2620
2622
|
maxCounterValue?: number;
|
|
2623
|
+
/**
|
|
2624
|
+
* Main Styles
|
|
2625
|
+
*/
|
|
2626
|
+
mainClassName?: string;
|
|
2621
2627
|
}
|
|
2622
2628
|
|
|
2623
2629
|
declare const Input: React__default.FC<IInput>;
|
|
@@ -3502,6 +3508,10 @@ interface IMobileSearchbar {
|
|
|
3502
3508
|
* Sets the value for the input in the searchbar
|
|
3503
3509
|
*/
|
|
3504
3510
|
termValue?: any;
|
|
3511
|
+
/**
|
|
3512
|
+
* placeholder
|
|
3513
|
+
*/
|
|
3514
|
+
placeholder?: string;
|
|
3505
3515
|
}
|
|
3506
3516
|
|
|
3507
3517
|
/**
|
|
@@ -4250,6 +4260,10 @@ interface IApplicationSummary {
|
|
|
4250
4260
|
* this property closes the ui
|
|
4251
4261
|
*/
|
|
4252
4262
|
onClose: () => void;
|
|
4263
|
+
/**
|
|
4264
|
+
* this property sets custom styles
|
|
4265
|
+
*/
|
|
4266
|
+
className?: string;
|
|
4253
4267
|
}
|
|
4254
4268
|
declare namespace IApplicationSummary {
|
|
4255
4269
|
interface Section {
|
|
@@ -6417,7 +6431,9 @@ interface IMegaMenuMainHeader {
|
|
|
6417
6431
|
signUpText: string;
|
|
6418
6432
|
onClickSignUp: (event: Event) => Promise<void>;
|
|
6419
6433
|
};
|
|
6420
|
-
|
|
6434
|
+
selectCountry?: ISelectOptions$1<unknown>;
|
|
6435
|
+
searchBarProps?: IMegaMenuSearchBar;
|
|
6436
|
+
mobileSearchBarProps: ISearchbar$1;
|
|
6421
6437
|
homeUrl?: string;
|
|
6422
6438
|
homeText?: string;
|
|
6423
6439
|
}
|
package/package.json
CHANGED