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;
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?: ISearchbar$1;
6435
+ searchBarProps?: IMegaMenuSearchBar;
6436
+ mobileSearchBarProps: ISearchbar$1;
6423
6437
  homeUrl?: string;
6424
6438
  homeText?: string;
6425
6439
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/W170/talenta.magneto365.ui.git"
6
6
  },
7
- "version": "2.69.0-beta.2",
7
+ "version": "2.69.0-beta.3",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "lint": "eslint ./src --ext .js,.ts,.jsx,.tsx",