robbyson-frontend-library 1.0.57 → 1.0.58
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/dist/components/tab-result/tab-result.interface.js +1 -0
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/tab/tab.interface.ts +8 -6
- package/src/components/tab-result/index.d.ts +1 -0
- package/src/components/tab-result/tab-result.interface.ts +25 -0
- package/src/components/tab-result/tab-result.types.d.ts +9 -0
- package/src/components/text-field/text-field.interface.ts +1 -0
- package/src/models/order.model.ts +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -6,15 +6,16 @@ export interface ITabProps<T> extends IBaseComponentProp {
|
|
|
6
6
|
tabOptions: TabOptions<T>[];
|
|
7
7
|
className?: string;
|
|
8
8
|
activeTab: T;
|
|
9
|
-
hideTabs?:boolean;
|
|
10
|
-
onShowFilter?(filter:any):void;
|
|
11
|
-
attributes?:AttributeValueModel[];
|
|
12
|
-
selectedFilter?:[]
|
|
9
|
+
hideTabs?: boolean;
|
|
10
|
+
onShowFilter?(filter: any): void;
|
|
11
|
+
attributes?: AttributeValueModel[];
|
|
12
|
+
selectedFilter?: [];
|
|
13
13
|
showFilter?: boolean;
|
|
14
|
+
getTabRef?: (ref: any) => void;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
interface TabOptions<T> {
|
|
17
|
-
hasArrow?: boolean
|
|
18
|
+
hasArrow?: boolean;
|
|
18
19
|
tabKey: T;
|
|
19
20
|
className?: string;
|
|
20
21
|
tabLocaleHandle: string;
|
|
@@ -22,4 +23,5 @@ interface TabOptions<T> {
|
|
|
22
23
|
prefix?: JSX.Element;
|
|
23
24
|
content?: React.ReactNode;
|
|
24
25
|
disabled?: boolean;
|
|
25
|
-
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tab-result.interface';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AttributeValueModel } from "../../models";
|
|
2
|
+
import { IBaseComponentProp } from "../base-component.prop.interface";
|
|
3
|
+
|
|
4
|
+
export interface ITabResultProps<T> extends IBaseComponentProp {
|
|
5
|
+
onClickTab(tabKey: T): void;
|
|
6
|
+
tabOptions: TabResultOptions<T>[];
|
|
7
|
+
className?: string;
|
|
8
|
+
activeTab: T;
|
|
9
|
+
hideTabs?:boolean;
|
|
10
|
+
onShowFilter?(filter:any):void;
|
|
11
|
+
attributes?:AttributeValueModel[];
|
|
12
|
+
selectedFilter?:[],
|
|
13
|
+
showFilter?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface TabResultOptions<T> {
|
|
17
|
+
hasArrow?: boolean
|
|
18
|
+
tabKey: T;
|
|
19
|
+
className?: string;
|
|
20
|
+
tabLocaleHandle: string;
|
|
21
|
+
suffix?: JSX.Element;
|
|
22
|
+
prefix?: JSX.Element;
|
|
23
|
+
content?: React.ReactNode;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
///<reference types="react" />
|
|
2
|
+
///<reference types="robbyson-frontend-library" />
|
|
3
|
+
|
|
4
|
+
declare module 'styleguide/TabResultComponent' {
|
|
5
|
+
import { ITabResultProps } from "robbyson-frontend-library";
|
|
6
|
+
const TabResultComponent: React.ComponentType<ITabResultProps<any>>;
|
|
7
|
+
|
|
8
|
+
export default TabResultComponent;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseRepositoryModel } from "./base.repository.model";
|
|
2
|
-
import { MarketProductModel } from
|
|
2
|
+
import { MarketProductModel } from "./market-product.model";
|
|
3
3
|
|
|
4
4
|
export class OrderStatusModel extends BaseRepositoryModel {
|
|
5
5
|
status: {
|
|
@@ -38,7 +38,7 @@ export class OrderModel extends BaseRepositoryModel {
|
|
|
38
38
|
currency: "coins" | "points";
|
|
39
39
|
};
|
|
40
40
|
_id: string;
|
|
41
|
-
date: string;
|
|
41
|
+
date: string | Date;
|
|
42
42
|
lastUpdate: string;
|
|
43
43
|
product: {
|
|
44
44
|
_id: string;
|
|
@@ -73,5 +73,5 @@ export class OrderModel extends BaseRepositoryModel {
|
|
|
73
73
|
name: string;
|
|
74
74
|
identification: string;
|
|
75
75
|
}[];
|
|
76
|
-
productDetails: MarketProductModel
|
|
76
|
+
productDetails: MarketProductModel;
|
|
77
77
|
}
|