property-practice-ui 0.0.12 → 0.0.13
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 +6 -0
- package/dist/index.d.cts +2 -29
- package/dist/index.d.ts +2 -29
- package/dist/toast-CvZfLJrO.d.cts +31 -0
- package/dist/toast-CvZfLJrO.d.ts +31 -0
- package/dist/types.cjs +8 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +14 -0
- package/dist/types.d.ts +14 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/package.json +6 -1
- package/tsup.config.ts +1 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { O as Option, c as colors, B as Button, I as Input$1, T as Textarea$1, E as ExtendedButton } from './Textarea-u7ONHI5M.cjs';
|
|
3
|
+
import { M as MenuItem, O as OrderType, T as TableListItemType, a as ToastType } from './toast-CvZfLJrO.cjs';
|
|
3
4
|
import * as react from 'react';
|
|
4
|
-
import {
|
|
5
|
+
import { ReactElement, ComponentProps, ReactNode } from 'react';
|
|
5
6
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
6
7
|
import * as styled_components from 'styled-components';
|
|
7
8
|
import 'react-hook-form';
|
|
@@ -16,21 +17,6 @@ interface FilterProps<T extends string | number> {
|
|
|
16
17
|
}
|
|
17
18
|
declare function Filter<T extends string | number>({ name, label, options, value, onChange, placeholder, }: FilterProps<T>): react_jsx_runtime.JSX.Element;
|
|
18
19
|
|
|
19
|
-
type MenuItem = {
|
|
20
|
-
title: string;
|
|
21
|
-
subTitle?: string;
|
|
22
|
-
icon?: JSX.Element;
|
|
23
|
-
link?: string;
|
|
24
|
-
items?: MenuSubItem[];
|
|
25
|
-
newTab?: boolean;
|
|
26
|
-
};
|
|
27
|
-
type MenuSubItem = {
|
|
28
|
-
title: string;
|
|
29
|
-
icon?: string;
|
|
30
|
-
link?: string;
|
|
31
|
-
newTab?: boolean;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
20
|
interface Props$3 {
|
|
35
21
|
direction: 'horizontal' | 'vertical';
|
|
36
22
|
items: MenuItem[];
|
|
@@ -46,9 +32,6 @@ interface SearchProps {
|
|
|
46
32
|
}
|
|
47
33
|
declare const Search: ({ value, onChange, placeholder, delay, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
|
48
34
|
|
|
49
|
-
declare const orderTypes: readonly ["asc", "desc"];
|
|
50
|
-
type OrderType = (typeof orderTypes)[number];
|
|
51
|
-
|
|
52
35
|
interface SortByProps {
|
|
53
36
|
value: OrderType;
|
|
54
37
|
onChange: (value: OrderType) => void;
|
|
@@ -80,14 +63,6 @@ interface TableInnerProps {
|
|
|
80
63
|
}
|
|
81
64
|
declare const TableInner: ({ data, headers, renderOnEmpty, onDelete, }: TableInnerProps) => react_jsx_runtime.JSX.Element;
|
|
82
65
|
|
|
83
|
-
type TableListItemType = {
|
|
84
|
-
title: string;
|
|
85
|
-
status?: string;
|
|
86
|
-
date: Date;
|
|
87
|
-
type?: string | 'DRAFT' | 'PENDING' | 'ACTIVE' | 'FINALISED' | 'ARCHIVED';
|
|
88
|
-
url?: string;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
66
|
interface Props$2 {
|
|
92
67
|
item: TableListItemType;
|
|
93
68
|
variant?: 'Primary' | 'Secondary';
|
|
@@ -128,8 +103,6 @@ interface TabsProps<T> {
|
|
|
128
103
|
}
|
|
129
104
|
declare const Tabs: <T extends string | number>({ defaultTab, onTabChange, options }: TabsProps<T>) => react_jsx_runtime.JSX.Element;
|
|
130
105
|
|
|
131
|
-
type ToastType = 'Default' | 'Success' | 'Warning' | 'Error' | 'Message';
|
|
132
|
-
|
|
133
106
|
interface Props$1 {
|
|
134
107
|
visible?: boolean;
|
|
135
108
|
setVisible?: (visible: boolean) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { O as Option, c as colors, B as Button, I as Input$1, T as Textarea$1, E as ExtendedButton } from './Textarea-u7ONHI5M.js';
|
|
3
|
+
import { M as MenuItem, O as OrderType, T as TableListItemType, a as ToastType } from './toast-CvZfLJrO.js';
|
|
3
4
|
import * as react from 'react';
|
|
4
|
-
import {
|
|
5
|
+
import { ReactElement, ComponentProps, ReactNode } from 'react';
|
|
5
6
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
6
7
|
import * as styled_components from 'styled-components';
|
|
7
8
|
import 'react-hook-form';
|
|
@@ -16,21 +17,6 @@ interface FilterProps<T extends string | number> {
|
|
|
16
17
|
}
|
|
17
18
|
declare function Filter<T extends string | number>({ name, label, options, value, onChange, placeholder, }: FilterProps<T>): react_jsx_runtime.JSX.Element;
|
|
18
19
|
|
|
19
|
-
type MenuItem = {
|
|
20
|
-
title: string;
|
|
21
|
-
subTitle?: string;
|
|
22
|
-
icon?: JSX.Element;
|
|
23
|
-
link?: string;
|
|
24
|
-
items?: MenuSubItem[];
|
|
25
|
-
newTab?: boolean;
|
|
26
|
-
};
|
|
27
|
-
type MenuSubItem = {
|
|
28
|
-
title: string;
|
|
29
|
-
icon?: string;
|
|
30
|
-
link?: string;
|
|
31
|
-
newTab?: boolean;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
20
|
interface Props$3 {
|
|
35
21
|
direction: 'horizontal' | 'vertical';
|
|
36
22
|
items: MenuItem[];
|
|
@@ -46,9 +32,6 @@ interface SearchProps {
|
|
|
46
32
|
}
|
|
47
33
|
declare const Search: ({ value, onChange, placeholder, delay, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
|
48
34
|
|
|
49
|
-
declare const orderTypes: readonly ["asc", "desc"];
|
|
50
|
-
type OrderType = (typeof orderTypes)[number];
|
|
51
|
-
|
|
52
35
|
interface SortByProps {
|
|
53
36
|
value: OrderType;
|
|
54
37
|
onChange: (value: OrderType) => void;
|
|
@@ -80,14 +63,6 @@ interface TableInnerProps {
|
|
|
80
63
|
}
|
|
81
64
|
declare const TableInner: ({ data, headers, renderOnEmpty, onDelete, }: TableInnerProps) => react_jsx_runtime.JSX.Element;
|
|
82
65
|
|
|
83
|
-
type TableListItemType = {
|
|
84
|
-
title: string;
|
|
85
|
-
status?: string;
|
|
86
|
-
date: Date;
|
|
87
|
-
type?: string | 'DRAFT' | 'PENDING' | 'ACTIVE' | 'FINALISED' | 'ARCHIVED';
|
|
88
|
-
url?: string;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
66
|
interface Props$2 {
|
|
92
67
|
item: TableListItemType;
|
|
93
68
|
variant?: 'Primary' | 'Secondary';
|
|
@@ -128,8 +103,6 @@ interface TabsProps<T> {
|
|
|
128
103
|
}
|
|
129
104
|
declare const Tabs: <T extends string | number>({ defaultTab, onTabChange, options }: TabsProps<T>) => react_jsx_runtime.JSX.Element;
|
|
130
105
|
|
|
131
|
-
type ToastType = 'Default' | 'Success' | 'Warning' | 'Error' | 'Message';
|
|
132
|
-
|
|
133
106
|
interface Props$1 {
|
|
134
107
|
visible?: boolean;
|
|
135
108
|
setVisible?: (visible: boolean) => void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
|
|
3
|
+
type MenuItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
subTitle?: string;
|
|
6
|
+
icon?: JSX.Element;
|
|
7
|
+
link?: string;
|
|
8
|
+
items?: MenuSubItem[];
|
|
9
|
+
newTab?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type MenuSubItem = {
|
|
12
|
+
title: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
link?: string;
|
|
15
|
+
newTab?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
declare const orderTypes: readonly ["asc", "desc"];
|
|
19
|
+
type OrderType = (typeof orderTypes)[number];
|
|
20
|
+
|
|
21
|
+
type TableListItemType = {
|
|
22
|
+
title: string;
|
|
23
|
+
status?: string;
|
|
24
|
+
date: Date;
|
|
25
|
+
type?: string | 'DRAFT' | 'PENDING' | 'ACTIVE' | 'FINALISED' | 'ARCHIVED';
|
|
26
|
+
url?: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
type ToastType = 'Default' | 'Success' | 'Warning' | 'Error' | 'Message';
|
|
30
|
+
|
|
31
|
+
export { type MenuItem as M, type OrderType as O, type TableListItemType as T, type ToastType as a, type MenuSubItem as b, orderTypes as o };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
|
|
3
|
+
type MenuItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
subTitle?: string;
|
|
6
|
+
icon?: JSX.Element;
|
|
7
|
+
link?: string;
|
|
8
|
+
items?: MenuSubItem[];
|
|
9
|
+
newTab?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type MenuSubItem = {
|
|
12
|
+
title: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
link?: string;
|
|
15
|
+
newTab?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
declare const orderTypes: readonly ["asc", "desc"];
|
|
19
|
+
type OrderType = (typeof orderTypes)[number];
|
|
20
|
+
|
|
21
|
+
type TableListItemType = {
|
|
22
|
+
title: string;
|
|
23
|
+
status?: string;
|
|
24
|
+
date: Date;
|
|
25
|
+
type?: string | 'DRAFT' | 'PENDING' | 'ACTIVE' | 'FINALISED' | 'ARCHIVED';
|
|
26
|
+
url?: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
type ToastType = 'Default' | 'Success' | 'Warning' | 'Error' | 'Message';
|
|
30
|
+
|
|
31
|
+
export { type MenuItem as M, type OrderType as O, type TableListItemType as T, type ToastType as a, type MenuSubItem as b, orderTypes as o };
|
package/dist/types.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/orderType.ts"],"names":[],"mappings":";;;AAAO,IAAM,UAAA,GAAa,CAAC,KAAA,EAAO,MAAM","file":"types.cjs","sourcesContent":["export const orderTypes = ['asc', 'desc'] as const;\nexport type OrderType = (typeof orderTypes)[number];\n"]}
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { M as MenuItem, b as MenuSubItem, O as OrderType, T as TableListItemType, a as ToastType, o as orderTypes } from './toast-CvZfLJrO.cjs';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
type InputAttributes = {
|
|
5
|
+
documentId?: string;
|
|
6
|
+
field: string;
|
|
7
|
+
fieldId: string;
|
|
8
|
+
title: string;
|
|
9
|
+
type?: 'Text' | 'LongText' | 'Number' | 'Date' | 'Boolean' | 'Email' | 'Options';
|
|
10
|
+
options?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type { InputAttributes };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { M as MenuItem, b as MenuSubItem, O as OrderType, T as TableListItemType, a as ToastType, o as orderTypes } from './toast-CvZfLJrO.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
type InputAttributes = {
|
|
5
|
+
documentId?: string;
|
|
6
|
+
field: string;
|
|
7
|
+
fieldId: string;
|
|
8
|
+
title: string;
|
|
9
|
+
type?: 'Text' | 'LongText' | 'Number' | 'Date' | 'Boolean' | 'Email' | 'Options';
|
|
10
|
+
options?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type { InputAttributes };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/orderType.ts"],"names":[],"mappings":";AAAO,IAAM,UAAA,GAAa,CAAC,KAAA,EAAO,MAAM","file":"types.js","sourcesContent":["export const orderTypes = ['asc', 'desc'] as const;\nexport type OrderType = (typeof orderTypes)[number];\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "property-practice-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"types": "./dist/atoms.d.ts",
|
|
18
18
|
"import": "./dist/atoms.js",
|
|
19
19
|
"require": "./dist/atoms.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./types": {
|
|
22
|
+
"types": "./dist/types.d.ts",
|
|
23
|
+
"import": "./dist/types.js",
|
|
24
|
+
"require": "./dist/types.cjs"
|
|
20
25
|
}
|
|
21
26
|
},
|
|
22
27
|
"keywords": [
|