enwawa-ui 1.0.30 → 1.0.32
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 +52 -20
- package/lib/index.d.ts +148 -37
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +280 -66
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +277 -63
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,67 @@
|
|
|
1
|
-
# (
|
|
2
|
-
|
|
3
|
-
#### ⚠️ Pushed to `main`
|
|
4
|
-
|
|
5
|
-
- Improves on OrTable to build TmCrudPage (brayhanalberto@gmail.com)
|
|
6
|
-
- Improves on MlPagination and MlTooltip created (brayhanalberto@gmail.com)
|
|
7
|
-
- AtText with custom width (brayhanalberto@gmail.com)
|
|
8
|
-
|
|
9
|
-
#### Authors: 1
|
|
10
|
-
|
|
11
|
-
- Brayhan Villalba (brayhanalberto@gmail.com)
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# (Fri Aug 11 2023)
|
|
1
|
+
# (Wed Aug 16 2023)
|
|
16
2
|
|
|
17
3
|
#### 🐛 Bug Fix
|
|
18
4
|
|
|
19
|
-
-
|
|
5
|
+
- Tdd 466 mv [#61](https://github.com/La-Wawa-Inc/wawa-ui/pull/61) ([@maurovolpe18](https://github.com/maurovolpe18))
|
|
6
|
+
- TDD-492-RM OrFormInLine [#60](https://github.com/La-Wawa-Inc/wawa-ui/pull/60) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
20
7
|
|
|
21
8
|
#### ⚠️ Pushed to `main`
|
|
22
9
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
10
|
+
- Improves: ([@BrayhanV](https://github.com/BrayhanV))
|
|
11
|
+
- Build storybook log ([@BrayhanV](https://github.com/BrayhanV))
|
|
25
12
|
|
|
26
|
-
#### Authors:
|
|
13
|
+
#### Authors: 3
|
|
27
14
|
|
|
28
15
|
- Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
|
|
29
|
-
-
|
|
16
|
+
- Maurizio Volpe ([@maurovolpe18](https://github.com/maurovolpe18))
|
|
17
|
+
- Richard Martinez ([@xzotacx](https://github.com/xzotacx))
|
|
30
18
|
|
|
31
19
|
---
|
|
32
20
|
|
|
21
|
+
# (Mon Aug 14 2023)
|
|
22
|
+
|
|
23
|
+
#### ⚠️ Pushed to `main`
|
|
24
|
+
|
|
25
|
+
- Fix typo for login code (brayhanalberto@gmail.com)
|
|
26
|
+
|
|
27
|
+
#### Authors: 1
|
|
28
|
+
|
|
29
|
+
- Brayhan Villalba (brayhanalberto@gmail.com)
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# (Mon Aug 14 2023)
|
|
34
|
+
|
|
35
|
+
#### ⚠️ Pushed to `main`
|
|
36
|
+
|
|
37
|
+
- Improves on OrTable to build TmCrudPage (brayhanalberto@gmail.com)
|
|
38
|
+
- Improves on MlPagination and MlTooltip created (brayhanalberto@gmail.com)
|
|
39
|
+
- AtText with custom width (brayhanalberto@gmail.com)
|
|
40
|
+
|
|
41
|
+
#### Authors: 1
|
|
42
|
+
|
|
43
|
+
- Brayhan Villalba (brayhanalberto@gmail.com)
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# (Fri Aug 11 2023)
|
|
48
|
+
|
|
49
|
+
#### 🐛 Bug Fix
|
|
50
|
+
|
|
51
|
+
- OrModuleTableHeader [#58](https://github.com/La-Wawa-Inc/wawa-ui/pull/58) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
52
|
+
|
|
53
|
+
#### ⚠️ Pushed to `main`
|
|
54
|
+
|
|
55
|
+
- version updated ([@BrayhanV](https://github.com/BrayhanV))
|
|
56
|
+
- Improves on OrHeader and OrDashboardLayout ([@BrayhanV](https://github.com/BrayhanV))
|
|
57
|
+
|
|
58
|
+
#### Authors: 2
|
|
59
|
+
|
|
60
|
+
- Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
|
|
61
|
+
- Miguelangel Escorche ([@miguelesco](https://github.com/miguelesco))
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
33
65
|
# (Wed Aug 09 2023)
|
|
34
66
|
|
|
35
67
|
#### 🐛 Bug Fix
|
package/lib/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { CardTabListType } from "antd/es/card";
|
|
|
12
12
|
import { CardType } from "antd/es/card/Card";
|
|
13
13
|
import { TabsProps } from "antd/es/tabs";
|
|
14
14
|
import { DotPosition } from "antd/es/carousel";
|
|
15
|
+
import { CheckboxGroupProps } from "antd/es/checkbox/Group";
|
|
15
16
|
import { NamePath, Store, StoreValue } from "antd/es/form/interface";
|
|
16
17
|
import { Rule } from "antd/es/form";
|
|
17
18
|
import { LabelTooltipType } from "antd/es/form/FormItemLabel";
|
|
@@ -106,6 +107,10 @@ export interface AtButtonProps {
|
|
|
106
107
|
* Set the handler to handle click
|
|
107
108
|
*/
|
|
108
109
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>;
|
|
110
|
+
/**
|
|
111
|
+
* Expand button full container width
|
|
112
|
+
*/
|
|
113
|
+
$fullWidth?: boolean;
|
|
109
114
|
/**
|
|
110
115
|
* set button in ghost mode
|
|
111
116
|
*/
|
|
@@ -777,10 +782,6 @@ export interface AtSelectProps {
|
|
|
777
782
|
* The current input "search" text
|
|
778
783
|
*/
|
|
779
784
|
searchValue?: string;
|
|
780
|
-
/**
|
|
781
|
-
* Whether to show the drop-down arrow
|
|
782
|
-
*/
|
|
783
|
-
showArrow?: boolean;
|
|
784
785
|
/**
|
|
785
786
|
* Whether select is searchable
|
|
786
787
|
*/
|
|
@@ -1117,6 +1118,33 @@ export interface MlCarouselProps {
|
|
|
1117
1118
|
children?: React.ReactNode;
|
|
1118
1119
|
}
|
|
1119
1120
|
export const MlCarousel: React.FC<MlCarouselProps>;
|
|
1121
|
+
export interface MlCheckboxGroup {
|
|
1122
|
+
/**
|
|
1123
|
+
* Default selected value
|
|
1124
|
+
* */
|
|
1125
|
+
defaultValue?: (string | number)[];
|
|
1126
|
+
/**
|
|
1127
|
+
* If disable all checkboxes
|
|
1128
|
+
*/
|
|
1129
|
+
disabled?: boolean;
|
|
1130
|
+
/**
|
|
1131
|
+
* The name property of all input[type="checkbox"] children
|
|
1132
|
+
*/
|
|
1133
|
+
name?: string;
|
|
1134
|
+
/**
|
|
1135
|
+
* Specifies options
|
|
1136
|
+
*/
|
|
1137
|
+
options?: CheckboxGroupProps['options'];
|
|
1138
|
+
/**
|
|
1139
|
+
* Used for setting the currently selected value
|
|
1140
|
+
*/
|
|
1141
|
+
value?: (string | number | boolean)[];
|
|
1142
|
+
/**
|
|
1143
|
+
* The callback function that is triggered when the state changes
|
|
1144
|
+
*/
|
|
1145
|
+
onChange?: CheckboxGroupProps['onChange'];
|
|
1146
|
+
}
|
|
1147
|
+
export const MlCheckboxGroup: React.FC<MlCheckboxGroup>;
|
|
1120
1148
|
interface UseInputOTPProps {
|
|
1121
1149
|
onChange?: (value: Array<string | undefined>) => void;
|
|
1122
1150
|
}
|
|
@@ -1281,7 +1309,14 @@ export interface MlFromItemProps {
|
|
|
1281
1309
|
* The layout for input controls, same as labelCol. You can set wrapperCol on Form which will not affect nest Item. If both exists, use Item first
|
|
1282
1310
|
*/
|
|
1283
1311
|
wrapperCol?: ColProps;
|
|
1312
|
+
/**
|
|
1313
|
+
* Children component
|
|
1314
|
+
*/
|
|
1284
1315
|
children?: React.ReactNode;
|
|
1316
|
+
/**
|
|
1317
|
+
* Props of children node, for example, the prop of Switch is 'checked'. This prop is an encapsulation of getValueProps, which will be invalid after customizing getValueProps
|
|
1318
|
+
*/
|
|
1319
|
+
valuePropName?: string;
|
|
1285
1320
|
}
|
|
1286
1321
|
export const MlFormItem: React.FC<MlFromItemProps>;
|
|
1287
1322
|
export const MlLoading: React.FC;
|
|
@@ -1749,7 +1784,7 @@ export interface OrSiderMenuProps {
|
|
|
1749
1784
|
/**
|
|
1750
1785
|
* Botton menu item content
|
|
1751
1786
|
*/
|
|
1752
|
-
|
|
1787
|
+
bottomItems?: OrMenuProps['items'];
|
|
1753
1788
|
/**
|
|
1754
1789
|
* On click collapsed button
|
|
1755
1790
|
*/
|
|
@@ -1877,7 +1912,7 @@ export interface OrDashboardLayoutProps {
|
|
|
1877
1912
|
/**
|
|
1878
1913
|
* Nav item at the end of the sider
|
|
1879
1914
|
*/
|
|
1880
|
-
|
|
1915
|
+
bottomItems?: OrSiderMenuProps['bottomItems'];
|
|
1881
1916
|
}
|
|
1882
1917
|
export const OrDashboardLayout: React.FC<OrDashboardLayoutProps>;
|
|
1883
1918
|
export interface OrDrawerProps {
|
|
@@ -2006,7 +2041,7 @@ export interface OrDrawerProps {
|
|
|
2006
2041
|
/**
|
|
2007
2042
|
* Children of the drawer
|
|
2008
2043
|
*/
|
|
2009
|
-
children?: React.
|
|
2044
|
+
children?: React.ReactNode;
|
|
2010
2045
|
}
|
|
2011
2046
|
export const OrDrawer: React.FC<OrDrawerProps>;
|
|
2012
2047
|
export interface OrFlagGridProps {
|
|
@@ -2032,10 +2067,60 @@ export interface OrFlagGridProps {
|
|
|
2032
2067
|
onSelectCard?: (index: number) => void;
|
|
2033
2068
|
}
|
|
2034
2069
|
export const OrFlagGrid: React.FC<OrFlagGridProps>;
|
|
2035
|
-
export
|
|
2070
|
+
export interface OrFormProps extends FormProps {
|
|
2036
2071
|
children: React.ReactNode;
|
|
2037
|
-
}
|
|
2038
|
-
export const OrForm: React.FC<
|
|
2072
|
+
}
|
|
2073
|
+
export const OrForm: React.FC<OrFormProps>;
|
|
2074
|
+
export interface AtSpaceCompactProps {
|
|
2075
|
+
/**
|
|
2076
|
+
* The ID for input
|
|
2077
|
+
*/
|
|
2078
|
+
id?: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* Option to fit width to its parent's width
|
|
2081
|
+
*/
|
|
2082
|
+
block?: boolean;
|
|
2083
|
+
/**
|
|
2084
|
+
* Set direction of layout
|
|
2085
|
+
*/
|
|
2086
|
+
direction?: 'vertical' | 'horizontal';
|
|
2087
|
+
/**
|
|
2088
|
+
* Set child component size
|
|
2089
|
+
*/
|
|
2090
|
+
size?: 'large' | 'middle' | 'small';
|
|
2091
|
+
/**
|
|
2092
|
+
* Children of the OrSpace
|
|
2093
|
+
*/
|
|
2094
|
+
children?: React.ReactNode;
|
|
2095
|
+
}
|
|
2096
|
+
export const OrSpaceCompact: React.FC<AtSpaceCompactProps>;
|
|
2097
|
+
export interface OrPhoneInputProps {
|
|
2098
|
+
/**
|
|
2099
|
+
* Dial codes options
|
|
2100
|
+
*/
|
|
2101
|
+
options: AtSelectProps['options'];
|
|
2102
|
+
/**
|
|
2103
|
+
* Disabled input
|
|
2104
|
+
*/
|
|
2105
|
+
disabled?: boolean;
|
|
2106
|
+
}
|
|
2107
|
+
export const OrPhoneInput: React.FC<OrPhoneInputProps>;
|
|
2108
|
+
export interface OrFormInLineItem {
|
|
2109
|
+
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'text' | 'phone';
|
|
2110
|
+
label?: string;
|
|
2111
|
+
key?: string;
|
|
2112
|
+
fieldName: string;
|
|
2113
|
+
placeHolder?: string;
|
|
2114
|
+
children?: OrFormItemsInlineProps | React.ReactElement | string;
|
|
2115
|
+
options?: MlRadioGroupProps['options'] | MlCheckboxGroup['options'] | AtSelectProps['options'];
|
|
2116
|
+
rules?: MlFromItemProps['rules'];
|
|
2117
|
+
hidden?: boolean;
|
|
2118
|
+
disabled?: boolean;
|
|
2119
|
+
}
|
|
2120
|
+
export interface OrFormItemsInlineProps {
|
|
2121
|
+
inputs?: OrFormInLineItem[];
|
|
2122
|
+
}
|
|
2123
|
+
export const OrFormItemsInline: React.FC<OrFormItemsInlineProps>;
|
|
2039
2124
|
export interface OrRowProps {
|
|
2040
2125
|
/**
|
|
2041
2126
|
* The ID for input
|
|
@@ -2311,29 +2396,6 @@ export interface AtSpaceProps {
|
|
|
2311
2396
|
children?: React.ReactNode;
|
|
2312
2397
|
}
|
|
2313
2398
|
export const OrSpace: React.FC<AtSpaceProps>;
|
|
2314
|
-
export interface AtSpaceCompactProps {
|
|
2315
|
-
/**
|
|
2316
|
-
* The ID for input
|
|
2317
|
-
*/
|
|
2318
|
-
id?: string;
|
|
2319
|
-
/**
|
|
2320
|
-
* Option to fit width to its parent's width
|
|
2321
|
-
*/
|
|
2322
|
-
block?: boolean;
|
|
2323
|
-
/**
|
|
2324
|
-
* Set direction of layout
|
|
2325
|
-
*/
|
|
2326
|
-
direction?: 'vertical' | 'horizontal';
|
|
2327
|
-
/**
|
|
2328
|
-
* Set child component size
|
|
2329
|
-
*/
|
|
2330
|
-
size?: 'large' | 'middle' | 'small';
|
|
2331
|
-
/**
|
|
2332
|
-
* Children of the OrSpace
|
|
2333
|
-
*/
|
|
2334
|
-
children?: React.ReactNode;
|
|
2335
|
-
}
|
|
2336
|
-
export const OrSpaceCompact: React.FC<AtSpaceCompactProps>;
|
|
2337
2399
|
export interface OrTabsProps {
|
|
2338
2400
|
/**
|
|
2339
2401
|
* The ID for input
|
|
@@ -2514,6 +2576,26 @@ export interface OrTicketCardProps {
|
|
|
2514
2576
|
onChange?: (e: string | number | null) => void;
|
|
2515
2577
|
}
|
|
2516
2578
|
export const OrTicketCard: React.FC<OrTicketCardProps>;
|
|
2579
|
+
interface IFormData {
|
|
2580
|
+
businessName?: string;
|
|
2581
|
+
name?: string;
|
|
2582
|
+
rif?: string;
|
|
2583
|
+
phone: {
|
|
2584
|
+
dialCode: string;
|
|
2585
|
+
phone: string;
|
|
2586
|
+
};
|
|
2587
|
+
city?: string;
|
|
2588
|
+
}
|
|
2589
|
+
interface IFormStep {
|
|
2590
|
+
title: string;
|
|
2591
|
+
inputs?: OrFormItemsInlineProps['inputs'];
|
|
2592
|
+
submitButtonText?: string;
|
|
2593
|
+
cancelButtonText?: string;
|
|
2594
|
+
onCancelClick?: () => void;
|
|
2595
|
+
formInitialItems?: IFormData;
|
|
2596
|
+
form?: OrFormProps['form'];
|
|
2597
|
+
onFinish?: (e: any) => void;
|
|
2598
|
+
}
|
|
2517
2599
|
export interface TmCrudPageProps {
|
|
2518
2600
|
/**
|
|
2519
2601
|
* Columns of table
|
|
@@ -2535,6 +2617,18 @@ export interface TmCrudPageProps {
|
|
|
2535
2617
|
* Row's unique key, could be a string or function that returns a string
|
|
2536
2618
|
*/
|
|
2537
2619
|
rowKey?: OrTableProps['rowKey'];
|
|
2620
|
+
/**
|
|
2621
|
+
* On change form content
|
|
2622
|
+
*/
|
|
2623
|
+
onValuesChange?: OrFormProps['onValuesChange'];
|
|
2624
|
+
/**
|
|
2625
|
+
* On press cancel and close button function
|
|
2626
|
+
*/
|
|
2627
|
+
handleCloseCallback?: () => void;
|
|
2628
|
+
/**
|
|
2629
|
+
* State of the drawer
|
|
2630
|
+
*/
|
|
2631
|
+
open?: boolean;
|
|
2538
2632
|
/**
|
|
2539
2633
|
* Page title
|
|
2540
2634
|
*/
|
|
@@ -2546,7 +2640,11 @@ export interface TmCrudPageProps {
|
|
|
2546
2640
|
/**
|
|
2547
2641
|
* Button value text
|
|
2548
2642
|
*/
|
|
2549
|
-
|
|
2643
|
+
buttonAddText?: string;
|
|
2644
|
+
/**
|
|
2645
|
+
* Callback when add button is pressed
|
|
2646
|
+
*/
|
|
2647
|
+
addButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
|
|
2550
2648
|
/**
|
|
2551
2649
|
* Callback when pagination changes
|
|
2552
2650
|
*/
|
|
@@ -2567,6 +2665,18 @@ export interface TmCrudPageProps {
|
|
|
2567
2665
|
* Current page table
|
|
2568
2666
|
*/
|
|
2569
2667
|
currentPage?: number;
|
|
2668
|
+
/**
|
|
2669
|
+
* Disable buttons drawer
|
|
2670
|
+
*/
|
|
2671
|
+
disabledButtons?: boolean;
|
|
2672
|
+
/**
|
|
2673
|
+
* Form Steps info
|
|
2674
|
+
*/
|
|
2675
|
+
formSteps: IFormStep[];
|
|
2676
|
+
/**
|
|
2677
|
+
* current step
|
|
2678
|
+
*/
|
|
2679
|
+
currentFormStep?: number;
|
|
2570
2680
|
}
|
|
2571
2681
|
export const TmCrudPage: React.FC<TmCrudPageProps>;
|
|
2572
2682
|
export interface TmLoginCountryProps {
|
|
@@ -2590,8 +2700,7 @@ export interface IRegion {
|
|
|
2590
2700
|
region: string;
|
|
2591
2701
|
city: string;
|
|
2592
2702
|
}
|
|
2593
|
-
interface
|
|
2594
|
-
region: string;
|
|
2703
|
+
interface _IFormData1 {
|
|
2595
2704
|
phone: {
|
|
2596
2705
|
dialCode: string;
|
|
2597
2706
|
phone: string;
|
|
@@ -2614,7 +2723,7 @@ export interface TmLoginPhoneProps {
|
|
|
2614
2723
|
/**
|
|
2615
2724
|
* Form init values
|
|
2616
2725
|
*/
|
|
2617
|
-
initialValues?:
|
|
2726
|
+
initialValues?: _IFormData1;
|
|
2618
2727
|
/**
|
|
2619
2728
|
* Dial codes available
|
|
2620
2729
|
*/
|
|
@@ -2701,5 +2810,7 @@ export interface TmLoginPhoneCodeProps {
|
|
|
2701
2810
|
}
|
|
2702
2811
|
export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
|
|
2703
2812
|
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
2813
|
+
export const useModal: () => readonly [instance: import("antd/es/modal/useModal").HookAPI, contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
2814
|
+
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
2704
2815
|
|
|
2705
2816
|
//# sourceMappingURL=index.d.ts.map
|