magneto365.ui 2.74.0 → 2.74.1-beta

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 (33) hide show
  1. package/dist/assets/3c9ef5949d25901a.svg +11 -0
  2. package/dist/assets/3f84ef2fa90fc06b.svg +17 -0
  3. package/dist/assets/a9f25ebc43dd2922.svg +9 -0
  4. package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
  5. package/dist/cjs/index.js +953 -808
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/types/components/UI/atoms/Popover/Popover.interface.d.ts +2 -0
  8. package/dist/cjs/types/components/UI/molecules/Input/Input.interface.d.ts +4 -0
  9. package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.component.d.ts +4 -0
  10. package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface.d.ts +55 -0
  11. package/dist/cjs/types/components/UI/molecules/MegaMenuSearchBar/SearchBar.component.d.ts +4 -0
  12. package/dist/cjs/types/components/UI/molecules/MobileSearchbar/MobileSearchbar.interface.d.ts +4 -0
  13. package/dist/cjs/types/components/UI/organism/FilterCard/FilterCard.interface.d.ts +12 -0
  14. package/dist/cjs/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +5 -1
  15. package/dist/cjs/types/constants/icons.constants.d.ts +3 -0
  16. package/dist/cjs/types/constants/stories/headers.constants.d.ts +4 -3
  17. package/dist/cjs/types/constants/stories/sideFilter.constants.d.ts +0 -123
  18. package/dist/esm/css/magneto.ui.lib.min.css +1 -1
  19. package/dist/esm/index.js +953 -808
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/types/components/UI/atoms/Popover/Popover.interface.d.ts +2 -0
  22. package/dist/esm/types/components/UI/molecules/Input/Input.interface.d.ts +4 -0
  23. package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.component.d.ts +4 -0
  24. package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface.d.ts +55 -0
  25. package/dist/esm/types/components/UI/molecules/MegaMenuSearchBar/SearchBar.component.d.ts +4 -0
  26. package/dist/esm/types/components/UI/molecules/MobileSearchbar/MobileSearchbar.interface.d.ts +4 -0
  27. package/dist/esm/types/components/UI/organism/FilterCard/FilterCard.interface.d.ts +12 -0
  28. package/dist/esm/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +5 -1
  29. package/dist/esm/types/constants/icons.constants.d.ts +3 -0
  30. package/dist/esm/types/constants/stories/headers.constants.d.ts +4 -3
  31. package/dist/esm/types/constants/stories/sideFilter.constants.d.ts +0 -123
  32. package/dist/index.d.ts +26 -1
  33. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  declare type PositionY = 'top' | 'bottom';
2
3
  declare type PositionX = 'left' | 'center' | 'right';
3
4
  export interface IPopover {
@@ -30,5 +31,6 @@ export interface IPopover {
30
31
  */
31
32
  staticContent?: boolean;
32
33
  className?: string;
34
+ style?: React.CSSProperties;
33
35
  }
34
36
  export {};
@@ -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,55 @@
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
+ field?: string;
55
+ }
@@ -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
  }
@@ -16,4 +16,16 @@ export interface IFilterCard extends IFilter, ISearchRenderTypeProps {
16
16
  * This is the switch title and indicate if has switch
17
17
  */
18
18
  switchText?: string;
19
+ /**
20
+ * Identification Key for each filter card
21
+ */
22
+ index: number;
23
+ /**
24
+ *Function to bnotify an open filter
25
+ */
26
+ setCurrentOpenFilter: (index: number) => void;
27
+ /**
28
+ * key to know if a filter has changed
29
+ */
30
+ showFilters: boolean;
19
31
  }
@@ -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
- searchBarProps?: ISearchbar;
32
+ selectCountry?: ISelectOptions<unknown>;
33
+ searchBarProps?: IMegaMenuSearchBar;
34
+ mobileSearchBarProps: ISearchbar;
31
35
  homeUrl?: string;
32
36
  homeText?: string;
33
37
  }
@@ -188,3 +188,6 @@ export { default as WhatsAppDark } from '../assets/Whatsapp.svg';
188
188
  export { default as X } from '../assets/X.svg';
189
189
  export { default as Youtube } from '../assets/Youtube.svg';
190
190
  export { default as YoutubeSolid } from '../assets/YoutubeSolid.svg';
191
+ export { default as FilterIcon } from '../assets/filter-search.svg';
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;
@@ -33,10 +33,7 @@ export declare const storiesFilters: ({
33
33
  fieldsAlias: {
34
34
  id: string;
35
35
  label: string;
36
- parentId?: undefined;
37
36
  };
38
- fieldFullSearch?: undefined;
39
- sourceName?: undefined;
40
37
  };
41
38
  values: {
42
39
  id: number;
@@ -46,90 +43,6 @@ export declare const storiesFilters: ({
46
43
  isApplied: boolean;
47
44
  }[];
48
45
  searchPlaceholder: string;
49
- renderChild?: undefined;
50
- child?: undefined;
51
- filtersApplied?: undefined;
52
- } | {
53
- label: string;
54
- field: string;
55
- type: string;
56
- renderType: string;
57
- renderChild: string;
58
- dataType: string;
59
- multiple: boolean;
60
- repository: {
61
- type: string;
62
- defaultFilter: {
63
- active?: undefined;
64
- };
65
- defaultOrder: {
66
- name?: undefined;
67
- };
68
- defaultOperator: number;
69
- source: string;
70
- fieldFullSearch: string;
71
- sourceName: string;
72
- fieldsAlias: {
73
- id: string;
74
- label: string;
75
- parentId: null;
76
- };
77
- };
78
- child: {
79
- label: string;
80
- field: string;
81
- type: string;
82
- renderType: string;
83
- renderChild: string;
84
- dataType: string;
85
- multiple: boolean;
86
- repository: {
87
- type: string;
88
- defaultFilter: {};
89
- defaultOrder: {};
90
- defaultOperator: number;
91
- source: string;
92
- fieldFullSearch: string;
93
- sourceName: string;
94
- fieldsAlias: {
95
- id: string;
96
- label: string;
97
- parentId: string;
98
- };
99
- };
100
- child: {
101
- label: string;
102
- field: string;
103
- type: string;
104
- renderType: string;
105
- dataType: string;
106
- multiple: boolean;
107
- repository: {
108
- type: string;
109
- defaultFilter: {};
110
- defaultOrder: {};
111
- defaultOperator: number;
112
- source: string;
113
- fieldFullSearch: string;
114
- sourceName: string;
115
- fieldsAlias: {
116
- id: string;
117
- label: string;
118
- parentId: string;
119
- };
120
- };
121
- values: never[];
122
- filtersApplied: string[];
123
- searchPlaceholder: string;
124
- };
125
- values: never[];
126
- filtersApplied: string[];
127
- searchPlaceholder: string;
128
- };
129
- values: never[];
130
- filtersApplied: number[];
131
- searchPlaceholder: string;
132
- placeholder?: undefined;
133
46
  } | {
134
47
  label: string;
135
48
  field: string;
@@ -150,10 +63,7 @@ export declare const storiesFilters: ({
150
63
  fieldsAlias: {
151
64
  id?: undefined;
152
65
  label?: undefined;
153
- parentId?: undefined;
154
66
  };
155
- fieldFullSearch?: undefined;
156
- sourceName?: undefined;
157
67
  };
158
68
  values: ({
159
69
  operator: number;
@@ -176,9 +86,6 @@ export declare const storiesFilters: ({
176
86
  })[];
177
87
  searchPlaceholder: string;
178
88
  placeholder?: undefined;
179
- renderChild?: undefined;
180
- child?: undefined;
181
- filtersApplied?: undefined;
182
89
  } | {
183
90
  label: string;
184
91
  field: string;
@@ -197,8 +104,6 @@ export declare const storiesFilters: ({
197
104
  defaultOperator: number;
198
105
  source: null;
199
106
  fieldsAlias: null;
200
- fieldFullSearch?: undefined;
201
- sourceName?: undefined;
202
107
  };
203
108
  values: ({
204
109
  operator: number;
@@ -230,9 +135,6 @@ export declare const storiesFilters: ({
230
135
  })[];
231
136
  searchPlaceholder: string;
232
137
  placeholder?: undefined;
233
- renderChild?: undefined;
234
- child?: undefined;
235
- filtersApplied?: undefined;
236
138
  } | {
237
139
  label: string;
238
140
  field: string;
@@ -251,8 +153,6 @@ export declare const storiesFilters: ({
251
153
  defaultOperator: number;
252
154
  source: string;
253
155
  fieldsAlias: null;
254
- fieldFullSearch?: undefined;
255
- sourceName?: undefined;
256
156
  };
257
157
  values: {
258
158
  id: string;
@@ -265,9 +165,6 @@ export declare const storiesFilters: ({
265
165
  }[];
266
166
  searchPlaceholder: string;
267
167
  placeholder?: undefined;
268
- renderChild?: undefined;
269
- child?: undefined;
270
- filtersApplied?: undefined;
271
168
  } | {
272
169
  label: string;
273
170
  field: string;
@@ -286,8 +183,6 @@ export declare const storiesFilters: ({
286
183
  defaultOperator: number;
287
184
  source: string;
288
185
  fieldsAlias: null;
289
- fieldFullSearch?: undefined;
290
- sourceName?: undefined;
291
186
  };
292
187
  values: {
293
188
  id: number;
@@ -298,9 +193,6 @@ export declare const storiesFilters: ({
298
193
  }[];
299
194
  searchPlaceholder: string;
300
195
  placeholder?: undefined;
301
- renderChild?: undefined;
302
- child?: undefined;
303
- filtersApplied?: undefined;
304
196
  } | {
305
197
  label: string;
306
198
  field: string;
@@ -319,8 +211,6 @@ export declare const storiesFilters: ({
319
211
  defaultOperator: number;
320
212
  source: null;
321
213
  fieldsAlias: null;
322
- fieldFullSearch?: undefined;
323
- sourceName?: undefined;
324
214
  };
325
215
  values: {
326
216
  operator: number;
@@ -331,9 +221,6 @@ export declare const storiesFilters: ({
331
221
  }[];
332
222
  searchPlaceholder: string;
333
223
  placeholder?: undefined;
334
- renderChild?: undefined;
335
- child?: undefined;
336
- filtersApplied?: undefined;
337
224
  } | {
338
225
  label: string;
339
226
  field: string;
@@ -352,8 +239,6 @@ export declare const storiesFilters: ({
352
239
  defaultOperator: number;
353
240
  source: null;
354
241
  fieldsAlias: null;
355
- fieldFullSearch?: undefined;
356
- sourceName?: undefined;
357
242
  };
358
243
  values: {
359
244
  operator: number;
@@ -364,9 +249,6 @@ export declare const storiesFilters: ({
364
249
  }[];
365
250
  searchPlaceholder: string;
366
251
  placeholder?: undefined;
367
- renderChild?: undefined;
368
- child?: undefined;
369
- filtersApplied?: undefined;
370
252
  } | {
371
253
  label: string;
372
254
  field: string;
@@ -385,8 +267,6 @@ export declare const storiesFilters: ({
385
267
  defaultOperator: number;
386
268
  source: null;
387
269
  fieldsAlias: null;
388
- fieldFullSearch?: undefined;
389
- sourceName?: undefined;
390
270
  };
391
271
  values: {
392
272
  operator: number;
@@ -398,9 +278,6 @@ export declare const storiesFilters: ({
398
278
  }[];
399
279
  searchPlaceholder: string;
400
280
  placeholder?: undefined;
401
- renderChild?: undefined;
402
- child?: undefined;
403
- filtersApplied?: undefined;
404
281
  })[];
405
282
  export declare const sideFilterProps: {
406
283
  title: string;
package/dist/index.d.ts CHANGED
@@ -40,6 +40,8 @@ import { IRightsReservedText as IRightsReservedText$1 } from '@components/UI/mol
40
40
  import { IFooterMenuLinks as IFooterMenuLinks$1 } from '@components/UI/organism/FooterMenuLinks/FooterMenuLinks.interface';
41
41
  import { IMegaMenuTab as IMegaMenuTab$1 } from '@components/UI/atoms/MegaMenuTab/MegaMenuTab.interface';
42
42
  import { IPopoverRef as IPopoverRef$1 } from '@components/UI/molecules/MegaMenuPopover/MegaMenuPopover.interface';
43
+ import { ISelectOptions as ISelectOptions$1 } from '@components/UI/organism/Select2/Select2.interface';
44
+ import { IMegaMenuSearchBar } from '@components/UI/molecules/MegaMenuSearchBar/MegaMenuSearchBar.interface';
43
45
  import { ERenderType } from '@constants/stories';
44
46
  import { IAlphabetFilter as IAlphabetFilter$1 } from '@components/UI/organism/AlphabetFilter/AlphabetFilter.interface';
45
47
 
@@ -954,6 +956,7 @@ interface IPopover {
954
956
  */
955
957
  staticContent?: boolean;
956
958
  className?: string;
959
+ style?: React__default.CSSProperties;
957
960
  }
958
961
 
959
962
  /**
@@ -2594,6 +2597,10 @@ interface IInput extends React.InputHTMLAttributes<HTMLInputElement> {
2594
2597
  * this property sets the max counter value
2595
2598
  */
2596
2599
  maxCounterValue?: number;
2600
+ /**
2601
+ * Main Styles
2602
+ */
2603
+ mainClassName?: string;
2597
2604
  }
2598
2605
 
2599
2606
  declare const Input: React__default.FC<IInput>;
@@ -3482,6 +3489,10 @@ interface IMobileSearchbar {
3482
3489
  * Sets the value for the input in the searchbar
3483
3490
  */
3484
3491
  termValue?: any;
3492
+ /**
3493
+ * placeholder
3494
+ */
3495
+ placeholder?: string;
3485
3496
  }
3486
3497
 
3487
3498
  /**
@@ -4444,6 +4455,18 @@ interface IFilterCard extends IFilter$1, ISearchRenderTypeProps$1 {
4444
4455
  * This is the switch title and indicate if has switch
4445
4456
  */
4446
4457
  switchText?: string;
4458
+ /**
4459
+ * Identification Key for each filter card
4460
+ */
4461
+ index: number;
4462
+ /**
4463
+ *Function to bnotify an open filter
4464
+ */
4465
+ setCurrentOpenFilter: (index: number) => void;
4466
+ /**
4467
+ * key to know if a filter has changed
4468
+ */
4469
+ showFilters: boolean;
4447
4470
  }
4448
4471
 
4449
4472
  declare const FilterCard: FC<IFilterCard>;
@@ -6641,7 +6664,9 @@ interface IMegaMenuMainHeader {
6641
6664
  signUpText: string;
6642
6665
  onClickSignUp: (event: Event) => Promise<void>;
6643
6666
  };
6644
- searchBarProps?: ISearchbar$1;
6667
+ selectCountry?: ISelectOptions$1<unknown>;
6668
+ searchBarProps?: IMegaMenuSearchBar;
6669
+ mobileSearchBarProps: ISearchbar$1;
6645
6670
  homeUrl?: string;
6646
6671
  homeText?: string;
6647
6672
  }
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.74.0",
7
+ "version": "2.74.1-beta",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "generate:tokens": "node ./.scripts/generateTokens.js",