enwawa-ui 1.0.21 → 1.0.23

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,159 +1,206 @@
1
- # (Thu Jul 27 2023)
1
+ # (Thu Aug 03 2023)
2
2
 
3
- #### ⚠️ Pushed to `main`
4
-
5
- - Major changes: (brayhanalberto@gmail.com)
6
- - parcel build without babel (brayhanalberto@gmail.com)
7
-
8
- #### Authors: 1
9
-
10
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
11
-
12
- ---
13
-
14
- # (Wed Jul 26 2023)
15
-
16
- #### ⚠️ Pushed to `main`
17
-
18
- - version upgrade (brayhanalberto@gmail.com)
19
- - types include into export (brayhanalberto@gmail.com)
20
-
21
- #### Authors: 1
22
-
23
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
24
-
25
- ---
26
-
27
- # (Wed Jul 26 2023)
28
-
29
- #### ⚠️ Pushed to `main`
30
-
31
- - types include into export ([@BrayhanV](https://github.com/BrayhanV))
32
-
33
- #### Authors: 1
34
-
35
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
36
-
37
- ---
38
-
39
- # (Wed Jul 26 2023)
40
-
41
- #### ⚠️ Pushed to `main`
42
-
43
- - Export added to package ([@BrayhanV](https://github.com/BrayhanV))
44
-
45
- #### Authors: 1
46
-
47
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
48
-
49
- ---
50
-
51
- # (Wed Jul 26 2023)
52
-
53
- #### ⚠️ Pushed to `main`
54
-
55
- - Major update for release (brayhanalberto@gmail.com)
56
-
57
- #### Authors: 1
58
-
59
- - Brayhan Villalba (brayhanalberto@gmail.com)
60
-
61
- ---
62
-
63
- # (Wed Jul 26 2023)
64
-
65
- #### ⚠️ Pushed to `main`
66
-
67
- - children prop fix ([@BrayhanV](https://github.com/BrayhanV))
68
-
69
- #### Authors: 1
70
-
71
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
72
-
73
- ---
74
-
75
- # (Wed Jul 26 2023)
3
+ #### 🐛 Bug Fix
76
4
 
77
- #### ⚠️ Pushed to `main`
78
-
79
- - post install removed (brayhanalberto@gmail.com)
80
-
81
- #### Authors: 1
82
-
83
- - Brayhan Villalba (brayhanalberto@gmail.com)
84
-
85
- ---
86
-
87
- # (Wed Jul 26 2023)
88
-
89
- #### ⚠️ Pushed to `main`
90
-
91
- - lib added ([@BrayhanV](https://github.com/BrayhanV))
92
- - v1.0.12 ([@BrayhanV](https://github.com/BrayhanV))
93
-
94
- #### Authors: 1
95
-
96
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
97
-
98
- ---
99
-
100
- # (Wed Jul 26 2023)
5
+ - TDD-459-RM ML Search Box [#52](https://github.com/La-Wawa-Inc/wawa-ui/pull/52) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
6
+ - TDD-458-RM OrDrawer [#51](https://github.com/La-Wawa-Inc/wawa-ui/pull/51) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
7
+ - MlPagination [#37](https://github.com/La-Wawa-Inc/wawa-ui/pull/37) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
8
+ - OrModal [#33](https://github.com/La-Wawa-Inc/wawa-ui/pull/33) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
101
9
 
102
10
  #### ⚠️ Pushed to `main`
103
11
 
104
- - npm package config ([@BrayhanV](https://github.com/BrayhanV))
12
+ - Missing build files ([@BrayhanV](https://github.com/BrayhanV))
105
13
  - version upgrade ([@BrayhanV](https://github.com/BrayhanV))
106
- - build with parcel ([@BrayhanV](https://github.com/BrayhanV))
107
- - v1.0.9 ([@BrayhanV](https://github.com/BrayhanV))
14
+ - TmLoginPhoneCode ([@BrayhanV](https://github.com/BrayhanV))
15
+ - Update on login layout and login template ([@BrayhanV](https://github.com/BrayhanV))
108
16
 
109
- #### Authors: 1
17
+ #### Authors: 3
110
18
 
111
19
  - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
20
+ - Miguelangel Escorche ([@miguelesco](https://github.com/miguelesco))
21
+ - Richard Martinez ([@xzotacx](https://github.com/xzotacx))
112
22
 
113
23
  ---
114
24
 
115
- # (Tue Jul 25 2023)
116
-
117
- #### ⚠️ Pushed to `main`
118
-
119
- - version upgrade (brayhanalberto@gmail.com)
120
- - build with parcel (brayhanalberto@gmail.com)
121
- - v1.0.9 (brayhanalberto@gmail.com)
122
-
123
- #### Authors: 1
124
-
125
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
126
-
127
- ---
128
-
129
- # (Tue Jul 25 2023)
130
-
131
- #### ⚠️ Pushed to `main`
132
-
133
- - build with parcel ([@BrayhanV](https://github.com/BrayhanV))
134
- - v1.0.9 ([@BrayhanV](https://github.com/BrayhanV))
25
+ # (Thu Aug 03 2023)
135
26
 
136
- #### Authors: 1
27
+ #### 🐛 Bug Fix
137
28
 
138
- - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
139
-
140
- ---
141
-
142
- # (Tue Jul 25 2023)
29
+ - TDD-459-RM ML Search Box [#52](https://github.com/La-Wawa-Inc/wawa-ui/pull/52) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
30
+ - TDD-458-RM OrDrawer [#51](https://github.com/La-Wawa-Inc/wawa-ui/pull/51) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
31
+ - MlPagination [#37](https://github.com/La-Wawa-Inc/wawa-ui/pull/37) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
32
+ - OrModal [#33](https://github.com/La-Wawa-Inc/wawa-ui/pull/33) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
143
33
 
144
34
  #### ⚠️ Pushed to `main`
145
35
 
146
- - dist removed lib added ([@BrayhanV](https://github.com/BrayhanV))
147
- - v1.0.8 ([@BrayhanV](https://github.com/BrayhanV))
148
- - Changelog updated ([@BrayhanV](https://github.com/BrayhanV))
149
- - Dist folder added ([@BrayhanV](https://github.com/BrayhanV))
36
+ - version upgrade ([@BrayhanV](https://github.com/BrayhanV))
37
+ - TmLoginPhoneCode ([@BrayhanV](https://github.com/BrayhanV))
38
+ - Update on login layout and login template ([@BrayhanV](https://github.com/BrayhanV))
150
39
 
151
- #### Authors: 1
40
+ #### Authors: 3
152
41
 
153
42
  - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
43
+ - Miguelangel Escorche ([@miguelesco](https://github.com/miguelesco))
44
+ - Richard Martinez ([@xzotacx](https://github.com/xzotacx))
154
45
 
155
46
  ---
156
47
 
48
+ # (Thu Jul 27 2023)
49
+
50
+ #### ⚠️ Pushed to `main`
51
+
52
+ - Major changes: (brayhanalberto@gmail.com)
53
+ - parcel build without babel (brayhanalberto@gmail.com)
54
+
55
+ #### Authors: 1
56
+
57
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
58
+
59
+ ---
60
+
61
+ # (Wed Jul 26 2023)
62
+
63
+ #### ⚠️ Pushed to `main`
64
+
65
+ - version upgrade (brayhanalberto@gmail.com)
66
+ - types include into export (brayhanalberto@gmail.com)
67
+
68
+ #### Authors: 1
69
+
70
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
71
+
72
+ ---
73
+
74
+ # (Wed Jul 26 2023)
75
+
76
+ #### ⚠️ Pushed to `main`
77
+
78
+ - types include into export ([@BrayhanV](https://github.com/BrayhanV))
79
+
80
+ #### Authors: 1
81
+
82
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
83
+
84
+ ---
85
+
86
+ # (Wed Jul 26 2023)
87
+
88
+ #### ⚠️ Pushed to `main`
89
+
90
+ - Export added to package ([@BrayhanV](https://github.com/BrayhanV))
91
+
92
+ #### Authors: 1
93
+
94
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
95
+
96
+ ---
97
+
98
+ # (Wed Jul 26 2023)
99
+
100
+ #### ⚠️ Pushed to `main`
101
+
102
+ - Major update for release (brayhanalberto@gmail.com)
103
+
104
+ #### Authors: 1
105
+
106
+ - Brayhan Villalba (brayhanalberto@gmail.com)
107
+
108
+ ---
109
+
110
+ # (Wed Jul 26 2023)
111
+
112
+ #### ⚠️ Pushed to `main`
113
+
114
+ - children prop fix ([@BrayhanV](https://github.com/BrayhanV))
115
+
116
+ #### Authors: 1
117
+
118
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
119
+
120
+ ---
121
+
122
+ # (Wed Jul 26 2023)
123
+
124
+ #### ⚠️ Pushed to `main`
125
+
126
+ - post install removed (brayhanalberto@gmail.com)
127
+
128
+ #### Authors: 1
129
+
130
+ - Brayhan Villalba (brayhanalberto@gmail.com)
131
+
132
+ ---
133
+
134
+ # (Wed Jul 26 2023)
135
+
136
+ #### ⚠️ Pushed to `main`
137
+
138
+ - lib added ([@BrayhanV](https://github.com/BrayhanV))
139
+ - v1.0.12 ([@BrayhanV](https://github.com/BrayhanV))
140
+
141
+ #### Authors: 1
142
+
143
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
144
+
145
+ ---
146
+
147
+ # (Wed Jul 26 2023)
148
+
149
+ #### ⚠️ Pushed to `main`
150
+
151
+ - npm package config ([@BrayhanV](https://github.com/BrayhanV))
152
+ - version upgrade ([@BrayhanV](https://github.com/BrayhanV))
153
+ - build with parcel ([@BrayhanV](https://github.com/BrayhanV))
154
+ - v1.0.9 ([@BrayhanV](https://github.com/BrayhanV))
155
+
156
+ #### Authors: 1
157
+
158
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
159
+
160
+ ---
161
+
162
+ # (Tue Jul 25 2023)
163
+
164
+ #### ⚠️ Pushed to `main`
165
+
166
+ - version upgrade (brayhanalberto@gmail.com)
167
+ - build with parcel (brayhanalberto@gmail.com)
168
+ - v1.0.9 (brayhanalberto@gmail.com)
169
+
170
+ #### Authors: 1
171
+
172
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
173
+
174
+ ---
175
+
176
+ # (Tue Jul 25 2023)
177
+
178
+ #### ⚠️ Pushed to `main`
179
+
180
+ - build with parcel ([@BrayhanV](https://github.com/BrayhanV))
181
+ - v1.0.9 ([@BrayhanV](https://github.com/BrayhanV))
182
+
183
+ #### Authors: 1
184
+
185
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
186
+
187
+ ---
188
+
189
+ # (Tue Jul 25 2023)
190
+
191
+ #### ⚠️ Pushed to `main`
192
+
193
+ - dist removed lib added ([@BrayhanV](https://github.com/BrayhanV))
194
+ - v1.0.8 ([@BrayhanV](https://github.com/BrayhanV))
195
+ - Changelog updated ([@BrayhanV](https://github.com/BrayhanV))
196
+ - Dist folder added ([@BrayhanV](https://github.com/BrayhanV))
197
+
198
+ #### Authors: 1
199
+
200
+ - Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
201
+
202
+ ---
203
+
157
204
  # (Tue Jul 25 2023)
158
205
 
159
206
  - Configuration need to use in others projects
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode, ChangeEvent, CSSProperties, JSXElementConstructor, ReactElement } from "react";
2
2
  import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
3
- import { CheckboxProps, DatePickerProps, ImageProps, SelectProps, BreadcrumbProps, DropdownProps, MenuProps, ColProps, RadioChangeEvent as _RadioChangeEvent1, AlertProps, LayoutProps, FormProps, RowProps, SpaceProps } from "antd";
3
+ import { CheckboxProps, DatePickerProps, ImageProps, SelectProps, BreadcrumbProps, DropdownProps, MenuProps, ColProps, RadioChangeEvent as _RadioChangeEvent1, AlertProps, LayoutProps, FormProps, RowProps, ModalFuncProps, ModalProps, SpaceProps } from "antd";
4
4
  import { Dayjs } from "dayjs";
5
5
  import { ValueType } from "@rc-component/mini-decimal";
6
6
  import { RadioChangeEvent } from "antd/es/radio";
@@ -749,7 +749,7 @@ export interface AtTextProps {
749
749
  /**
750
750
  * Color of the text
751
751
  */
752
- color?: 'violet' | 'gold' | 'white';
752
+ color?: string;
753
753
  }
754
754
  export const AtText: React.FC<AtTextProps>;
755
755
  export interface AtTitleProps {
@@ -1143,6 +1143,7 @@ export interface MlRadioGroupProps {
1143
1143
  onChange?: (e: _RadioChangeEvent1) => void;
1144
1144
  }
1145
1145
  export const MlRadioGroup: React.FC<MlRadioGroupProps>;
1146
+ export const MlLoading: React.FC;
1146
1147
  export interface OrAlertProps {
1147
1148
  /**
1148
1149
  * The action of Alert
@@ -1404,6 +1405,134 @@ export interface OrLoginLayoutProps {
1404
1405
  children?: React.ReactNode;
1405
1406
  }
1406
1407
  export const OrLoginLayout: React.FC<OrLoginLayoutProps>;
1408
+ type ConfigUpdate = ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps);
1409
+ export type instanceModal = {
1410
+ destroy: () => void;
1411
+ update: (configUpdate: ConfigUpdate) => void;
1412
+ } | null;
1413
+ interface OrModalProps {
1414
+ /**
1415
+ * Specify a function that will be called when modal is closed completely
1416
+ */
1417
+ afterClose?: () => void;
1418
+ /**
1419
+ * Body style for modal body element. Such as height, padding etc
1420
+ */
1421
+ bodyStyle?: React.CSSProperties;
1422
+ /**
1423
+ * The cancel button props
1424
+ */
1425
+ cancelButtonProps?: ModalProps['cancelButtonProps'];
1426
+ /**
1427
+ * Text of the Cancel button
1428
+ */
1429
+ cancelText?: React.ReactNode;
1430
+ /**
1431
+ * Centered Modal
1432
+ */
1433
+ centered?: boolean;
1434
+ /**
1435
+ * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
1436
+ */
1437
+ closeIcon?: React.ReactNode;
1438
+ /**
1439
+ * Whether to apply loading visual effect for OK button or not
1440
+ */
1441
+ confirmLoading?: boolean;
1442
+ /**
1443
+ * Whether to unmount child components on onClose
1444
+ */
1445
+ destroyOnClose?: boolean;
1446
+ /**
1447
+ * Footer content, set as footer={null} when you don't need default buttons
1448
+ */
1449
+ footer?: React.ReactNode;
1450
+ /**
1451
+ * Force render Modal
1452
+ */
1453
+ forceRender?: boolean;
1454
+ /**
1455
+ * The mounted node for Modal but still display at fullscreen
1456
+ */
1457
+ getContainer?: ModalProps['getContainer'];
1458
+ /**
1459
+ * Whether support press esc to close
1460
+ */
1461
+ keyboard?: boolean;
1462
+ /**
1463
+ * Whether show mask or not
1464
+ */
1465
+ mask?: boolean;
1466
+ /**
1467
+ * Whether to close the modal dialog when the mask (area outside the modal) is clicked
1468
+ */
1469
+ maskClosable?: boolean;
1470
+ /**
1471
+ * Style for modal's mask element
1472
+ */
1473
+ maskStyle?: React.CSSProperties;
1474
+ /**
1475
+ * Custom modal content render
1476
+ */
1477
+ modalRender?: (node: React.ReactNode) => React.ReactNode;
1478
+ /**
1479
+ * The ok button props
1480
+ */
1481
+ okButtonProps?: ModalProps['okButtonProps'];
1482
+ /**
1483
+ * Text of the OK button
1484
+ */
1485
+ okText?: React.ReactNode;
1486
+ /**
1487
+ * Button type of the OK button
1488
+ */
1489
+ okType?: ModalProps['okType'];
1490
+ /**
1491
+ * The modal dialog's title
1492
+ */
1493
+ title?: ModalProps['title'];
1494
+ /**
1495
+ * Whether the modal dialog is visible or not
1496
+ */
1497
+ visible?: boolean;
1498
+ /**
1499
+ * Open Modal with async logic
1500
+ */
1501
+ open?: boolean;
1502
+ /**
1503
+ * Width of the modal dialog
1504
+ */
1505
+ width?: string | number;
1506
+ /**
1507
+ * The class name of the container of the modal dialog
1508
+ */
1509
+ wrapClassName?: string;
1510
+ /**
1511
+ * The z-index of the Modal
1512
+ */
1513
+ zIndex?: number;
1514
+ /**
1515
+ * Specify a function that will be called when a user clicks mask, close button on top right or Cancel button
1516
+ */
1517
+ onCancel?: (e: React.MouseEvent<HTMLElement>) => void;
1518
+ /**
1519
+ * Specify a function that will be called when a user clicks the OK button
1520
+ */
1521
+ onOk?: (e: React.MouseEvent<HTMLElement>) => void;
1522
+ /**
1523
+ * Callback when the animation ends when Modal is turned on and off
1524
+ */
1525
+ afterOpenChange?: ((open: boolean) => void) | undefined;
1526
+ /**
1527
+ * children of Modal
1528
+ */
1529
+ children?: React.ReactNode;
1530
+ /**
1531
+ * Content of the confirm dialog
1532
+ */
1533
+ content?: string | React.ReactNode;
1534
+ }
1535
+ export const OrModal: React.FC<OrModalProps>;
1407
1536
  export const OrSider: React.FC<LayoutProps>;
1408
1537
  export interface OrSimpleBannerProps {
1409
1538
  /**
@@ -1504,14 +1633,6 @@ interface IFormData {
1504
1633
  }
1505
1634
  export interface TmLoginPhoneProps {
1506
1635
  countrySelectOptions?: IRegion[];
1507
- /**
1508
- * Images to show into carousel
1509
- */
1510
- carouselImages: string[];
1511
- /**
1512
- * Carousel image background source
1513
- */
1514
- carouselBackgroundSrc?: string;
1515
1636
  /**
1516
1637
  * Welcome title
1517
1638
  */
@@ -1544,7 +1665,12 @@ export interface TmLoginPhoneProps {
1544
1665
  * On submit function
1545
1666
  */
1546
1667
  onFinish?: FormProps['onFinish'];
1668
+ /**
1669
+ * Form ref
1670
+ */
1671
+ form?: FormProps['form'];
1547
1672
  }
1548
1673
  export const TmLoginPhone: React.FC<TmLoginPhoneProps>;
1674
+ export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
1549
1675
 
1550
1676
  //# sourceMappingURL=index.d.ts.map