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.
Files changed (29) hide show
  1. package/dist/assets/3f84ef2fa90fc06b.svg +17 -0
  2. package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
  3. package/dist/cjs/index.js +822 -729
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/UI/molecules/Input/Input.interface.d.ts +4 -0
  6. package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.component.d.ts +4 -0
  7. package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface.d.ts +54 -0
  8. package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/SearchBar.component.d.ts +4 -0
  9. package/dist/cjs/types/components/UI/molecules/MobileSearchbar/MobileSearchbar.interface.d.ts +4 -0
  10. package/dist/cjs/types/components/UI/organism/ApplicationSummary/ApplicationSummary.interface.d.ts +4 -0
  11. package/dist/cjs/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +3 -1
  12. package/dist/cjs/types/components/hooks/useClickOutside/index.d.ts +1 -0
  13. package/dist/cjs/types/constants/icons.constants.d.ts +1 -0
  14. package/dist/cjs/types/constants/stories/headers.constants.d.ts +4 -3
  15. package/dist/esm/css/magneto.ui.lib.min.css +1 -1
  16. package/dist/esm/index.js +822 -729
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/types/components/UI/molecules/Input/Input.interface.d.ts +4 -0
  19. package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.component.d.ts +4 -0
  20. package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface.d.ts +54 -0
  21. package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/SearchBar.component.d.ts +4 -0
  22. package/dist/esm/types/components/UI/molecules/MobileSearchbar/MobileSearchbar.interface.d.ts +4 -0
  23. package/dist/esm/types/components/UI/organism/ApplicationSummary/ApplicationSummary.interface.d.ts +4 -0
  24. package/dist/esm/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +3 -1
  25. package/dist/esm/types/components/hooks/useClickOutside/index.d.ts +1 -0
  26. package/dist/esm/types/constants/icons.constants.d.ts +1 -0
  27. package/dist/esm/types/constants/stories/headers.constants.d.ts +4 -3
  28. package/dist/index.d.ts +15 -1
  29. package/package.json +1 -1
@@ -57,4 +57,8 @@ export interface IInput extends React.InputHTMLAttributes<HTMLInputElement> {
57
57
  * this property sets the max counter value
58
58
  */
59
59
  maxCounterValue?: number;
60
+ /**
61
+ * Main Styles
62
+ */
63
+ mainClassName?: string;
60
64
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IMegaMenuSearchBar } from './MegaMenuSearchBar.interface';
3
+ declare const MegaMenuSearchBar: React.FC<IMegaMenuSearchBar>;
4
+ export default MegaMenuSearchBar;
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ISearchBar } from './MegaMenuSearchBar.interface';
3
+ declare const SearchBar: React.FC<ISearchBar>;
4
+ export default SearchBar;
@@ -19,4 +19,8 @@ export interface IMobileSearchbar {
19
19
  * Sets the value for the input in the searchbar
20
20
  */
21
21
  termValue?: any;
22
+ /**
23
+ * placeholder
24
+ */
25
+ placeholder?: string;
22
26
  }
@@ -12,6 +12,10 @@ export interface IApplicationSummary {
12
12
  * this property closes the ui
13
13
  */
14
14
  onClose: () => void;
15
+ /**
16
+ * this property sets custom styles
17
+ */
18
+ className?: string;
15
19
  }
16
20
  export declare namespace IApplicationSummary {
17
21
  interface Section {
@@ -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?: ISearchbar;
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, IMobileSearchbar, ISearchbar } from '@components/UI/molecules';
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: ISearchbar;
85
- export declare const MobileSearchbarProps: IMobileSearchbar;
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;