enwawa-ui 1.0.32 → 1.0.34
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 +47 -6
- package/lib/index.d.ts +98 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +276 -326
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +274 -324
- package/lib/index.js.map +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,64 @@
|
|
|
1
|
-
# (Wed Aug
|
|
1
|
+
# (Wed Aug 30 2023)
|
|
2
2
|
|
|
3
3
|
#### 🐛 Bug Fix
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
5
|
+
- add rules to phone number [#64](https://github.com/La-Wawa-Inc/wawa-ui/pull/64) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
6
|
+
- Stories form component OrFormItemsInline [#63](https://github.com/La-Wawa-Inc/wawa-ui/pull/63) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
7
|
+
- Multiple select [#65](https://github.com/La-Wawa-Inc/wawa-ui/pull/65) ([@maurovolpe18](https://github.com/maurovolpe18))
|
|
8
|
+
- Tdd 466 [#62](https://github.com/La-Wawa-Inc/wawa-ui/pull/62) ([@maurovolpe18](https://github.com/maurovolpe18) [@BrayhanV](https://github.com/BrayhanV))
|
|
7
9
|
|
|
8
10
|
#### ⚠️ Pushed to `main`
|
|
9
11
|
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
+
- Visual improves ([@BrayhanV](https://github.com/BrayhanV))
|
|
13
|
+
- Merge branch 'develop' of https://github.com/La-Wawa-Inc/wawa-ui into develop ([@BrayhanV](https://github.com/BrayhanV))
|
|
14
|
+
- eslint action upgrade ([@BrayhanV](https://github.com/BrayhanV))
|
|
15
|
+
- Eslint workflow ([@BrayhanV](https://github.com/BrayhanV))
|
|
16
|
+
- version update ([@BrayhanV](https://github.com/BrayhanV))
|
|
17
|
+
- SearchBox on TmCrudPage ([@BrayhanV](https://github.com/BrayhanV))
|
|
18
|
+
- TmCrudPage story ([@BrayhanV](https://github.com/BrayhanV))
|
|
12
19
|
|
|
13
|
-
#### Authors:
|
|
20
|
+
#### Authors: 4
|
|
14
21
|
|
|
15
22
|
- Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
|
|
16
23
|
- Maurizio Volpe ([@maurovolpe18](https://github.com/maurovolpe18))
|
|
24
|
+
- Miguelangel Escorche ([@miguelesco](https://github.com/miguelesco))
|
|
17
25
|
- Richard Martinez ([@xzotacx](https://github.com/xzotacx))
|
|
18
26
|
|
|
19
27
|
---
|
|
20
28
|
|
|
29
|
+
# (Thu Aug 17 2023)
|
|
30
|
+
|
|
31
|
+
#### ⚠️ Pushed to `main`
|
|
32
|
+
|
|
33
|
+
- SearchBox on TmCrudPage ([@BrayhanV](https://github.com/BrayhanV))
|
|
34
|
+
- TmCrudPage story ([@BrayhanV](https://github.com/BrayhanV))
|
|
35
|
+
|
|
36
|
+
#### Authors: 1
|
|
37
|
+
|
|
38
|
+
- Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
# (Wed Aug 16 2023)
|
|
43
|
+
|
|
44
|
+
#### 🐛 Bug Fix
|
|
45
|
+
|
|
46
|
+
- Tdd 466 mv [#61](https://github.com/La-Wawa-Inc/wawa-ui/pull/61) ([@maurovolpe18](https://github.com/maurovolpe18))
|
|
47
|
+
- 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))
|
|
48
|
+
|
|
49
|
+
#### ⚠️ Pushed to `main`
|
|
50
|
+
|
|
51
|
+
- Improves: ([@BrayhanV](https://github.com/BrayhanV))
|
|
52
|
+
- Build storybook log ([@BrayhanV](https://github.com/BrayhanV))
|
|
53
|
+
|
|
54
|
+
#### Authors: 3
|
|
55
|
+
|
|
56
|
+
- Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
|
|
57
|
+
- Maurizio Volpe ([@maurovolpe18](https://github.com/maurovolpe18))
|
|
58
|
+
- Richard Martinez ([@xzotacx](https://github.com/xzotacx))
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
21
62
|
# (Mon Aug 14 2023)
|
|
22
63
|
|
|
23
64
|
#### ⚠️ Pushed to `main`
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties, ChangeEvent, JSXElementConstructor, ReactElement } from "react";
|
|
2
2
|
import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
|
|
3
|
-
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, InputNumberProps, SelectProps, BreadcrumbProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent as _RadioChangeEvent1, TooltipProps, AlertProps, LayoutProps, SiderProps, FormProps, RowProps, ModalFuncProps, ModalProps, SpaceProps, TableProps } from "antd";
|
|
3
|
+
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, InputNumberProps, SelectProps, BreadcrumbProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent as _RadioChangeEvent1, TooltipProps, AlertProps, LayoutProps, SiderProps, FormProps, RowProps, ModalFuncProps, ModalProps, SpaceProps, StepsProps, TableProps } from "antd";
|
|
4
4
|
import { Dayjs } from "dayjs";
|
|
5
5
|
import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
|
|
6
6
|
import * as Icons from "@ant-design/icons";
|
|
@@ -1482,10 +1482,6 @@ export interface MlSearchBoxProps extends AtTextInputProps {
|
|
|
1482
1482
|
* On search function
|
|
1483
1483
|
*/
|
|
1484
1484
|
onSearch?: (value: string, event?: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLInputElement>) => void;
|
|
1485
|
-
/**
|
|
1486
|
-
* On press enter function
|
|
1487
|
-
*/
|
|
1488
|
-
onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
1489
1485
|
/**
|
|
1490
1486
|
* Input loading on search
|
|
1491
1487
|
*/
|
|
@@ -2103,16 +2099,45 @@ export interface OrPhoneInputProps {
|
|
|
2103
2099
|
* Disabled input
|
|
2104
2100
|
*/
|
|
2105
2101
|
disabled?: boolean;
|
|
2102
|
+
/**
|
|
2103
|
+
* Rules for validation
|
|
2104
|
+
* @default []
|
|
2105
|
+
*/
|
|
2106
|
+
rules?: MlFromItemProps['rules'];
|
|
2106
2107
|
}
|
|
2107
2108
|
export const OrPhoneInput: React.FC<OrPhoneInputProps>;
|
|
2108
2109
|
export interface OrFormInLineItem {
|
|
2109
|
-
|
|
2110
|
+
/**
|
|
2111
|
+
* Type of components available for the form
|
|
2112
|
+
*/
|
|
2113
|
+
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone';
|
|
2114
|
+
/**
|
|
2115
|
+
* Label of the field
|
|
2116
|
+
*/
|
|
2110
2117
|
label?: string;
|
|
2118
|
+
/**
|
|
2119
|
+
* Key identifier
|
|
2120
|
+
*/
|
|
2111
2121
|
key?: string;
|
|
2122
|
+
/**
|
|
2123
|
+
* Field name (develop purpose)
|
|
2124
|
+
*/
|
|
2112
2125
|
fieldName: string;
|
|
2126
|
+
/**
|
|
2127
|
+
* Place holder (only for inputs)
|
|
2128
|
+
*/
|
|
2113
2129
|
placeHolder?: string;
|
|
2130
|
+
/**
|
|
2131
|
+
* Children of the FormItems (Recursive Form)
|
|
2132
|
+
*/
|
|
2114
2133
|
children?: OrFormItemsInlineProps | React.ReactElement | string;
|
|
2134
|
+
/**
|
|
2135
|
+
* Specifies options for fields that allows options
|
|
2136
|
+
*/
|
|
2115
2137
|
options?: MlRadioGroupProps['options'] | MlCheckboxGroup['options'] | AtSelectProps['options'];
|
|
2138
|
+
/**
|
|
2139
|
+
* Rules for field validation. Click [here](https://ant.design/components/form#components-form-demo-basic) to see an example
|
|
2140
|
+
*/
|
|
2116
2141
|
rules?: MlFromItemProps['rules'];
|
|
2117
2142
|
hidden?: boolean;
|
|
2118
2143
|
disabled?: boolean;
|
|
@@ -2352,6 +2377,10 @@ export interface OrModuleTableHeaderProps {
|
|
|
2352
2377
|
* Button onClick
|
|
2353
2378
|
*/
|
|
2354
2379
|
buttonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
|
|
2380
|
+
/**
|
|
2381
|
+
* Custom component to render at left side
|
|
2382
|
+
*/
|
|
2383
|
+
customLeftElements?: React.ReactNode;
|
|
2355
2384
|
}
|
|
2356
2385
|
export const OrModuleTableHeader: React.FC<OrModuleTableHeaderProps>;
|
|
2357
2386
|
export interface OrSimpleBannerProps {
|
|
@@ -2396,6 +2425,61 @@ export interface AtSpaceProps {
|
|
|
2396
2425
|
children?: React.ReactNode;
|
|
2397
2426
|
}
|
|
2398
2427
|
export const OrSpace: React.FC<AtSpaceProps>;
|
|
2428
|
+
export interface OrStepProp {
|
|
2429
|
+
/**
|
|
2430
|
+
* To set the current step, counting from 0. You can overwrite this state by using status of Step
|
|
2431
|
+
*/
|
|
2432
|
+
current?: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* To specify the direction of the step bar, horizontal or vertical
|
|
2435
|
+
*/
|
|
2436
|
+
direction?: 'horizontal' | 'vertical';
|
|
2437
|
+
/**
|
|
2438
|
+
*
|
|
2439
|
+
*/
|
|
2440
|
+
initial?: number;
|
|
2441
|
+
/**
|
|
2442
|
+
* Place title and description with horizontal or vertical direction
|
|
2443
|
+
* */
|
|
2444
|
+
labelPlacement?: 'horizontal' | 'vertical';
|
|
2445
|
+
/**
|
|
2446
|
+
* Progress circle percentage of current step in process status (only works on basic Steps)
|
|
2447
|
+
*/
|
|
2448
|
+
percent?: number;
|
|
2449
|
+
/**
|
|
2450
|
+
* Steps with progress dot style, customize the progress dot by setting it to a function. labelPlacement will be vertical
|
|
2451
|
+
*/
|
|
2452
|
+
progressDot?: StepsProps['progressDot'];
|
|
2453
|
+
/**
|
|
2454
|
+
* Change to vertical direction when screen width smaller than 532px
|
|
2455
|
+
*/
|
|
2456
|
+
responsive?: boolean;
|
|
2457
|
+
/**
|
|
2458
|
+
* To specify the size of the step bar, default and small are currently supported
|
|
2459
|
+
*/
|
|
2460
|
+
size?: 'default' | 'small';
|
|
2461
|
+
/**
|
|
2462
|
+
* To specify the status of current step, can be set to one of the following values: wait process finish error
|
|
2463
|
+
*/
|
|
2464
|
+
status?: 'wait' | 'process' | 'finish' | 'error';
|
|
2465
|
+
/**
|
|
2466
|
+
* Type of steps, can be set to one of the following values: default navigation inline
|
|
2467
|
+
*/
|
|
2468
|
+
type?: 'default' | 'navigation' | 'inline';
|
|
2469
|
+
/**
|
|
2470
|
+
* Trigger when Step is changed
|
|
2471
|
+
*/
|
|
2472
|
+
onChange?: (current: number) => void;
|
|
2473
|
+
/**
|
|
2474
|
+
* StepItem content
|
|
2475
|
+
*/
|
|
2476
|
+
items?: StepsProps['items'];
|
|
2477
|
+
/**
|
|
2478
|
+
* Element margin
|
|
2479
|
+
*/
|
|
2480
|
+
$margin?: string;
|
|
2481
|
+
}
|
|
2482
|
+
export const OrStep: React.FC<OrStepProp>;
|
|
2399
2483
|
export interface OrTabsProps {
|
|
2400
2484
|
/**
|
|
2401
2485
|
* The ID for input
|
|
@@ -2677,6 +2761,14 @@ export interface TmCrudPageProps {
|
|
|
2677
2761
|
* current step
|
|
2678
2762
|
*/
|
|
2679
2763
|
currentFormStep?: number;
|
|
2764
|
+
/**
|
|
2765
|
+
* Search table elements
|
|
2766
|
+
*/
|
|
2767
|
+
searchBoxOnSearch?: OrModuleTableHeaderProps['searchBoxOnSearch'];
|
|
2768
|
+
/**
|
|
2769
|
+
* Custom component to render at left side of table header
|
|
2770
|
+
*/
|
|
2771
|
+
tableHeaderCustomLeftElements?: React.ReactNode;
|
|
2680
2772
|
}
|
|
2681
2773
|
export const TmCrudPage: React.FC<TmCrudPageProps>;
|
|
2682
2774
|
export interface TmLoginCountryProps {
|