enwawa-ui 1.0.26 → 1.0.27

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/CHANGELOG.md CHANGED
@@ -1,39 +1,17 @@
1
- # (Tue Aug 08 2023)
2
-
3
- #### ⚠️ Pushed to `main`
4
-
5
- - Missing dependency added ([@BrayhanV](https://github.com/BrayhanV))
6
-
7
- #### Authors: 1
8
-
9
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
10
-
11
- ---
12
-
13
- # (Tue Aug 08 2023)
1
+ # (Wed Aug 09 2023)
14
2
 
15
3
  #### 🐛 Bug Fix
16
4
 
17
- - MlCodeInput and fix font familt for dropdown [#49](https://github.com/La-Wawa-Inc/wawa-ui/pull/49) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
18
- - TDD-460 [#55](https://github.com/La-Wawa-Inc/wawa-ui/pull/55) ([@maurovolpe18](https://github.com/maurovolpe18))
19
- - MlPlanCard [#54](https://github.com/La-Wawa-Inc/wawa-ui/pull/54) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
20
- - Mejora en MlRadioGroup [#50](https://github.com/La-Wawa-Inc/wawa-ui/pull/50) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
21
- - OrTicketCard [#53](https://github.com/La-Wawa-Inc/wawa-ui/pull/53) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
5
+ - Tdd 486 mv [#57](https://github.com/La-Wawa-Inc/wawa-ui/pull/57) ([@maurovolpe18](https://github.com/maurovolpe18) [@BrayhanV](https://github.com/BrayhanV))
6
+ - AtSelectIcon && OrHeader [#56](https://github.com/La-Wawa-Inc/wawa-ui/pull/56) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
22
7
 
23
8
  #### ⚠️ Pushed to `main`
24
9
 
25
- - version updated ([@BrayhanV](https://github.com/BrayhanV))
26
- - TmCrudPage ([@BrayhanV](https://github.com/BrayhanV))
27
- - Fix AtCountdown history ([@BrayhanV](https://github.com/BrayhanV))
28
- - unnecessary comments removed ([@BrayhanV](https://github.com/BrayhanV))
29
- - OrDashboardLayout ([@BrayhanV](https://github.com/BrayhanV))
30
- - Improves on OrSider ([@BrayhanV](https://github.com/BrayhanV))
31
- - missing exports added ([@BrayhanV](https://github.com/BrayhanV))
32
- - Organism: ([@BrayhanV](https://github.com/BrayhanV))
33
- - OrMenu story ([@BrayhanV](https://github.com/BrayhanV))
34
- - OrMenu ([@BrayhanV](https://github.com/BrayhanV))
35
- - OrTable ([@BrayhanV](https://github.com/BrayhanV))
36
- - OrTickets improves ([@BrayhanV](https://github.com/BrayhanV))
10
+ - Version upgrade ([@BrayhanV](https://github.com/BrayhanV))
11
+ - Improves: ([@BrayhanV](https://github.com/BrayhanV))
12
+ - index import updated ([@BrayhanV](https://github.com/BrayhanV))
13
+ - type fix ([@BrayhanV](https://github.com/BrayhanV))
14
+ - TmLoginPhoneCode with MlCodeInput ([@BrayhanV](https://github.com/BrayhanV))
37
15
 
38
16
  #### Authors: 3
39
17
 
@@ -43,6 +21,51 @@
43
21
 
44
22
  ---
45
23
 
24
+ # (Tue Aug 08 2023)
25
+
26
+ #### ⚠️ Pushed to `main`
27
+
28
+ - Missing dependency added ([@BrayhanV](https://github.com/BrayhanV))
29
+
30
+ #### Authors: 1
31
+
32
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
33
+
34
+ ---
35
+
36
+ # (Tue Aug 08 2023)
37
+
38
+ #### 🐛 Bug Fix
39
+
40
+ - MlCodeInput and fix font familt for dropdown [#49](https://github.com/La-Wawa-Inc/wawa-ui/pull/49) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
41
+ - TDD-460 [#55](https://github.com/La-Wawa-Inc/wawa-ui/pull/55) ([@maurovolpe18](https://github.com/maurovolpe18))
42
+ - MlPlanCard [#54](https://github.com/La-Wawa-Inc/wawa-ui/pull/54) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
43
+ - Mejora en MlRadioGroup [#50](https://github.com/La-Wawa-Inc/wawa-ui/pull/50) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
44
+ - OrTicketCard [#53](https://github.com/La-Wawa-Inc/wawa-ui/pull/53) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
45
+
46
+ #### ⚠️ Pushed to `main`
47
+
48
+ - version updated ([@BrayhanV](https://github.com/BrayhanV))
49
+ - TmCrudPage ([@BrayhanV](https://github.com/BrayhanV))
50
+ - Fix AtCountdown history ([@BrayhanV](https://github.com/BrayhanV))
51
+ - unnecessary comments removed ([@BrayhanV](https://github.com/BrayhanV))
52
+ - OrDashboardLayout ([@BrayhanV](https://github.com/BrayhanV))
53
+ - Improves on OrSider ([@BrayhanV](https://github.com/BrayhanV))
54
+ - missing exports added ([@BrayhanV](https://github.com/BrayhanV))
55
+ - Organism: ([@BrayhanV](https://github.com/BrayhanV))
56
+ - OrMenu story ([@BrayhanV](https://github.com/BrayhanV))
57
+ - OrMenu ([@BrayhanV](https://github.com/BrayhanV))
58
+ - OrTable ([@BrayhanV](https://github.com/BrayhanV))
59
+ - OrTickets improves ([@BrayhanV](https://github.com/BrayhanV))
60
+
61
+ #### Authors: 3
62
+
63
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
64
+ - Maurizio Volpe ([@maurovolpe18](https://github.com/maurovolpe18))
65
+ - Miguelangel Escorche ([@miguelesco](https://github.com/miguelesco))
66
+
67
+ ---
68
+
46
69
  # (Fri Aug 04 2023)
47
70
 
48
71
  #### 🐛 Bug Fix
package/lib/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- import React, { ReactNode, ChangeEvent, CSSProperties, JSXElementConstructor, ReactElement } from "react";
1
+ import React, { ReactNode, CSSProperties, ChangeEvent, JSXElementConstructor, ReactElement } from "react";
2
2
  import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
3
3
  import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, InputNumberProps, SelectProps, BreadcrumbProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent as _RadioChangeEvent1, AlertProps, LayoutProps, SiderProps, FormProps, RowProps, ModalFuncProps, ModalProps, SpaceProps, TableProps } from "antd";
4
4
  import { Dayjs } from "dayjs";
5
+ import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
6
+ import * as Icons from "@ant-design/icons";
5
7
  import { ValueType } from "@rc-component/mini-decimal";
6
8
  import { RadioChangeEvent } from "antd/es/radio";
7
9
  import { DefaultOptionType, LabeledValue } from "antd/es/select";
@@ -60,6 +62,10 @@ export interface AtButtonProps {
60
62
  * The button content value
61
63
  */
62
64
  value?: string;
65
+ /**
66
+ * Hide button borders
67
+ */
68
+ borderless?: boolean;
63
69
  /**
64
70
  *Option to fit button width to its parent width
65
71
  */
@@ -100,6 +106,10 @@ export interface AtButtonProps {
100
106
  * Set the handler to handle click
101
107
  */
102
108
  onClick?: React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>;
109
+ /**
110
+ * set button in ghost mode
111
+ */
112
+ ghost?: boolean;
103
113
  }
104
114
  export const AtButton: React.FC<AtButtonProps>;
105
115
  export interface AtCheckboxProps {
@@ -296,6 +306,59 @@ export interface AtDividerProps {
296
306
  type?: 'horizontal' | 'vertical';
297
307
  }
298
308
  export const AtDivider: React.FC<AtDividerProps>;
309
+ export interface AtIconProps {
310
+ /**
311
+ * The ID for input
312
+ */
313
+ id?: string;
314
+ /**
315
+ * Name of the icon
316
+ */
317
+ name?: keyof typeof Icons;
318
+ /**
319
+ * Define the color used to paint the svg element
320
+ */
321
+ fill?: string;
322
+ /**
323
+ * The computed style of the svg element
324
+ */
325
+ style?: CSSProperties;
326
+ /**
327
+ * The height of the svg element
328
+ */
329
+ height?: string | number;
330
+ /**
331
+ * The width of the svg element
332
+ */
333
+ width?: string | number;
334
+ /**
335
+ * Define extra properties to the component
336
+ */
337
+ extraCommonProps?: {
338
+ [key: string]: any;
339
+ };
340
+ /**
341
+ * The URL generated by iconfont.cn project. Support string[] after @ant-design/icons@4.1.0
342
+ */
343
+ scriptUrl?: string | string[];
344
+ /**
345
+ * The component used for the root node
346
+ */
347
+ component?: IconComponentProps['component'];
348
+ /**
349
+ * Rotate degrees (not working in IE9)
350
+ */
351
+ rotate?: number;
352
+ /**
353
+ * Rotate icon with animation
354
+ */
355
+ spin?: boolean;
356
+ /**
357
+ * Color of the icon
358
+ */
359
+ twoToneColor?: string;
360
+ }
361
+ export const AtIcon: React.FC<AtIconProps>;
299
362
  export interface AtImageProps {
300
363
  /**
301
364
  * Image description
@@ -775,7 +838,14 @@ export interface AtSelectProps {
775
838
  * Select width
776
839
  */
777
840
  $width?: string;
778
- children: any;
841
+ /**
842
+ * Children
843
+ */
844
+ children?: ReactNode;
845
+ /**
846
+ * background color
847
+ */
848
+ backgroundColor?: string;
779
849
  }
780
850
  export const AtSelect: React.FC<AtSelectProps>;
781
851
  export interface AtTextProps {
@@ -1052,7 +1122,7 @@ export interface CodeInputProps {
1052
1122
  /**
1053
1123
  * number of digits (input) to show
1054
1124
  */
1055
- digits: number;
1125
+ digits?: number;
1056
1126
  /**
1057
1127
  * The input content value
1058
1128
  */
@@ -1060,7 +1130,7 @@ export interface CodeInputProps {
1060
1130
  /**
1061
1131
  * Callback when user input
1062
1132
  */
1063
- onChange: (value: Array<string | undefined>) => void;
1133
+ onChange?: (value: Array<string | undefined>) => void;
1064
1134
  /**
1065
1135
  * font size of the input
1066
1136
  */
@@ -1649,6 +1719,10 @@ export interface OrSiderMenuProps {
1649
1719
  * Menu item content
1650
1720
  */
1651
1721
  items?: OrMenuProps['items'];
1722
+ /**
1723
+ * Botton menu item content
1724
+ */
1725
+ itemsBottom?: OrMenuProps['items'];
1652
1726
  /**
1653
1727
  * On click collapsed button
1654
1728
  */
@@ -1664,7 +1738,58 @@ export interface OrSiderMenuProps {
1664
1738
  children?: React.ReactNode;
1665
1739
  }
1666
1740
  export const OrSiderMenu: React.FC<OrSiderMenuProps>;
1667
- export const OrHeader: React.FC<LayoutProps>;
1741
+ export interface OrHeaderProps {
1742
+ /**
1743
+ * The ID for input
1744
+ */
1745
+ id?: string;
1746
+ /**
1747
+ * option for select
1748
+ */
1749
+ countrySelectOptions?: {
1750
+ value: string;
1751
+ label: string;
1752
+ icon?: JSX.Element;
1753
+ }[];
1754
+ /**
1755
+ * Default Value for select
1756
+ */
1757
+ selectDefaultValue?: string;
1758
+ /**
1759
+ * Placeholder for select
1760
+ */
1761
+ selectPlaceholder?: string;
1762
+ /**
1763
+ * Called when an option is selected, the params are option's value (or key) and option instance
1764
+ */
1765
+ onSelect?: AtSelectProps['onSelect'];
1766
+ /**
1767
+ * buttons options
1768
+ */
1769
+ navItems?: {
1770
+ value?: string;
1771
+ label?: string;
1772
+ icon: JSX.Element;
1773
+ onclick?: React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>;
1774
+ }[];
1775
+ /**
1776
+ * Avatar image
1777
+ */
1778
+ avatar?: string;
1779
+ /**
1780
+ * Avatar name
1781
+ */
1782
+ avatarName?: string;
1783
+ /**
1784
+ * Avatar click
1785
+ */
1786
+ onClickAvatar?: React.MouseEventHandler<HTMLDivElement> | undefined;
1787
+ /**
1788
+ * Children component
1789
+ */
1790
+ children?: React.ReactNode;
1791
+ }
1792
+ export const OrHeader: React.FC<OrHeaderProps>;
1668
1793
  export interface OrDashboardLayoutProps {
1669
1794
  /**
1670
1795
  * Indicate if the menu is collapsed
@@ -1690,6 +1815,22 @@ export interface OrDashboardLayoutProps {
1690
1815
  * Called when a menu item is selected
1691
1816
  */
1692
1817
  onSelect?: OrSiderMenuProps['onSelect'];
1818
+ /**
1819
+ * Header select options
1820
+ */
1821
+ countrySelectOptions?: OrHeaderProps['countrySelectOptions'];
1822
+ /**
1823
+ * Header nav items
1824
+ */
1825
+ navItems?: OrHeaderProps['navItems'];
1826
+ /**
1827
+ * Header avatar
1828
+ */
1829
+ avatar?: OrHeaderProps['avatar'];
1830
+ /**
1831
+ * Header avatar name
1832
+ */
1833
+ avatarName?: OrHeaderProps['avatarName'];
1693
1834
  }
1694
1835
  export const OrDashboardLayout: React.FC<OrDashboardLayoutProps>;
1695
1836
  export interface OrDrawerProps {
@@ -2304,10 +2445,6 @@ export interface TmCrudPageProps {
2304
2445
  }
2305
2446
  export const TmCrudPage: React.FC<TmCrudPageProps>;
2306
2447
  export interface TmLoginCountryProps {
2307
- /**
2308
- * The ID for cards
2309
- */
2310
- id?: string;
2311
2448
  data?: OrCountryCardProps[];
2312
2449
  title?: string;
2313
2450
  itemsPerRow?: number;