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/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
|
+
}
|
|
@@ -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;
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { IFooterMenuLinks as IFooterMenuLinks$1 } from '@components/UI/organism/
|
|
|
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
42
|
import { ISelectOptions as ISelectOptions$1 } from '@components/UI/organism/Select2/Select2.interface';
|
|
43
|
+
import { IMegaMenuSearchBar } from '@components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface';
|
|
43
44
|
import { ERenderType } from '@constants/stories';
|
|
44
45
|
import { IAlphabetFilter as IAlphabetFilter$1 } from '@components/UI/organism/AlphabetFilter/AlphabetFilter.interface';
|
|
45
46
|
|
|
@@ -2619,6 +2620,10 @@ interface IInput extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
2619
2620
|
* this property sets the max counter value
|
|
2620
2621
|
*/
|
|
2621
2622
|
maxCounterValue?: number;
|
|
2623
|
+
/**
|
|
2624
|
+
* Main Styles
|
|
2625
|
+
*/
|
|
2626
|
+
mainClassName?: string;
|
|
2622
2627
|
}
|
|
2623
2628
|
|
|
2624
2629
|
declare const Input: React__default.FC<IInput>;
|
|
@@ -3503,6 +3508,10 @@ interface IMobileSearchbar {
|
|
|
3503
3508
|
* Sets the value for the input in the searchbar
|
|
3504
3509
|
*/
|
|
3505
3510
|
termValue?: any;
|
|
3511
|
+
/**
|
|
3512
|
+
* placeholder
|
|
3513
|
+
*/
|
|
3514
|
+
placeholder?: string;
|
|
3506
3515
|
}
|
|
3507
3516
|
|
|
3508
3517
|
/**
|
|
@@ -4251,6 +4260,10 @@ interface IApplicationSummary {
|
|
|
4251
4260
|
* this property closes the ui
|
|
4252
4261
|
*/
|
|
4253
4262
|
onClose: () => void;
|
|
4263
|
+
/**
|
|
4264
|
+
* this property sets custom styles
|
|
4265
|
+
*/
|
|
4266
|
+
className?: string;
|
|
4254
4267
|
}
|
|
4255
4268
|
declare namespace IApplicationSummary {
|
|
4256
4269
|
interface Section {
|
|
@@ -6419,7 +6432,8 @@ interface IMegaMenuMainHeader {
|
|
|
6419
6432
|
onClickSignUp: (event: Event) => Promise<void>;
|
|
6420
6433
|
};
|
|
6421
6434
|
selectCountry?: ISelectOptions$1<unknown>;
|
|
6422
|
-
searchBarProps?:
|
|
6435
|
+
searchBarProps?: IMegaMenuSearchBar;
|
|
6436
|
+
mobileSearchBarProps: ISearchbar$1;
|
|
6423
6437
|
homeUrl?: string;
|
|
6424
6438
|
homeText?: string;
|
|
6425
6439
|
}
|
package/package.json
CHANGED