property-practice-ui 0.2.0 → 0.3.0
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/Button-GGqCRrab.d.cts +29 -0
- package/dist/Button-GGqCRrab.d.ts +29 -0
- package/dist/FileButton-DGczdE12.d.cts +22 -0
- package/dist/FileButton-HFyj2Jod.d.ts +22 -0
- package/dist/{Textarea-BNvLsAXP.d.cts → Textarea-BVqF5_5c.d.cts} +2 -27
- package/dist/{Textarea-BNvLsAXP.d.ts → Textarea-BVqF5_5c.d.ts} +2 -27
- package/dist/atoms.d.cts +4 -2
- package/dist/atoms.d.ts +4 -2
- package/dist/index.d.cts +9 -415
- package/dist/index.d.ts +9 -415
- package/dist/molecules.cjs +2457 -0
- package/dist/molecules.cjs.map +1 -0
- package/dist/molecules.d.cts +283 -0
- package/dist/molecules.d.ts +283 -0
- package/dist/molecules.js +2431 -0
- package/dist/molecules.js.map +1 -0
- package/dist/organisms.cjs +2859 -0
- package/dist/organisms.cjs.map +1 -0
- package/dist/organisms.d.cts +126 -0
- package/dist/organisms.d.ts +126 -0
- package/dist/organisms.js +2845 -0
- package/dist/organisms.js.map +1 -0
- package/dist/{toast-CvZfLJrO.d.cts → tableListItem-irbfqxnQ.d.cts} +1 -3
- package/dist/{toast-CvZfLJrO.d.ts → tableListItem-irbfqxnQ.d.ts} +1 -3
- package/dist/toast-JPCqJveR.d.cts +3 -0
- package/dist/toast-JPCqJveR.d.ts +3 -0
- package/dist/types.d.cts +2 -1
- package/dist/types.d.ts +2 -1
- package/package.json +11 -1
- package/tsup.config.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const variants$1: readonly ["primary", "secondary", "tertiary", "subtle", "blue", "brand", "light", "active", "hover", "error", "focus", "success"];
|
|
5
|
+
declare const tokens: readonly ["background", "border", "text", "button"];
|
|
6
|
+
type Token = (typeof tokens)[number];
|
|
7
|
+
type Variant$1 = (typeof variants$1)[number];
|
|
8
|
+
type TokenVariant = Record<Variant$1, string>;
|
|
9
|
+
declare const colors: Record<Token, Partial<TokenVariant>>;
|
|
10
|
+
|
|
11
|
+
declare const ButtonTypes: readonly ["submit", "reset", "button"];
|
|
12
|
+
type ButtonType = (typeof ButtonTypes)[number];
|
|
13
|
+
declare const variants: readonly ["dark", "light"];
|
|
14
|
+
type Variant = (typeof variants)[number];
|
|
15
|
+
interface ButtonProps {
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
text?: string;
|
|
18
|
+
type?: ButtonType;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
icon?: ReactElement;
|
|
21
|
+
variant?: Variant;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const Button: {
|
|
25
|
+
({ onClick, text, type, disabled, icon, variant, isLoading, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
26
|
+
types: readonly ["submit", "reset", "button"];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { Button as B, colors as c };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const variants$1: readonly ["primary", "secondary", "tertiary", "subtle", "blue", "brand", "light", "active", "hover", "error", "focus", "success"];
|
|
5
|
+
declare const tokens: readonly ["background", "border", "text", "button"];
|
|
6
|
+
type Token = (typeof tokens)[number];
|
|
7
|
+
type Variant$1 = (typeof variants$1)[number];
|
|
8
|
+
type TokenVariant = Record<Variant$1, string>;
|
|
9
|
+
declare const colors: Record<Token, Partial<TokenVariant>>;
|
|
10
|
+
|
|
11
|
+
declare const ButtonTypes: readonly ["submit", "reset", "button"];
|
|
12
|
+
type ButtonType = (typeof ButtonTypes)[number];
|
|
13
|
+
declare const variants: readonly ["dark", "light"];
|
|
14
|
+
type Variant = (typeof variants)[number];
|
|
15
|
+
interface ButtonProps {
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
text?: string;
|
|
18
|
+
type?: ButtonType;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
icon?: ReactElement;
|
|
21
|
+
variant?: Variant;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const Button: {
|
|
25
|
+
({ onClick, text, type, disabled, icon, variant, isLoading, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
26
|
+
types: readonly ["submit", "reset", "button"];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { Button as B, colors as c };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { B as Button } from './Button-GGqCRrab.cjs';
|
|
4
|
+
|
|
5
|
+
type DocumentListAccordionFileType = {
|
|
6
|
+
name: string;
|
|
7
|
+
sourceFile: string;
|
|
8
|
+
status: string;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
declare const acceptTypes: readonly [".docx", ".doc", ".pdf", "image/*"];
|
|
14
|
+
type AcceptType = (typeof acceptTypes)[number];
|
|
15
|
+
interface FileButtonProps extends Omit<ComponentProps<typeof Button>, 'onClick' | 'type'> {
|
|
16
|
+
onFileSelect?: (file: File) => void;
|
|
17
|
+
accept?: AcceptType[];
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const FileButton: ({ onFileSelect, accept, multiple, ...rest }: FileButtonProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { type DocumentListAccordionFileType as D, FileButton as F };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { B as Button } from './Button-GGqCRrab.js';
|
|
4
|
+
|
|
5
|
+
type DocumentListAccordionFileType = {
|
|
6
|
+
name: string;
|
|
7
|
+
sourceFile: string;
|
|
8
|
+
status: string;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
declare const acceptTypes: readonly [".docx", ".doc", ".pdf", "image/*"];
|
|
14
|
+
type AcceptType = (typeof acceptTypes)[number];
|
|
15
|
+
interface FileButtonProps extends Omit<ComponentProps<typeof Button>, 'onClick' | 'type'> {
|
|
16
|
+
onFileSelect?: (file: File) => void;
|
|
17
|
+
accept?: AcceptType[];
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const FileButton: ({ onFileSelect, accept, multiple, ...rest }: FileButtonProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { type DocumentListAccordionFileType as D, FileButton as F };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeEvent } from 'react';
|
|
3
3
|
import { ChangeHandler } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
declare const InputTypes: readonly ["number", "text", "email", "date"];
|
|
@@ -18,31 +18,6 @@ type Option<T> = {
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
declare const variants$1: readonly ["primary", "secondary", "tertiary", "subtle", "blue", "brand", "light", "active", "hover", "error", "focus", "success"];
|
|
22
|
-
declare const tokens: readonly ["background", "border", "text", "button"];
|
|
23
|
-
type Token = (typeof tokens)[number];
|
|
24
|
-
type Variant$1 = (typeof variants$1)[number];
|
|
25
|
-
type TokenVariant = Record<Variant$1, string>;
|
|
26
|
-
declare const colors: Record<Token, Partial<TokenVariant>>;
|
|
27
|
-
|
|
28
|
-
declare const ButtonTypes: readonly ["submit", "reset", "button"];
|
|
29
|
-
type ButtonType = (typeof ButtonTypes)[number];
|
|
30
|
-
declare const variants: readonly ["dark", "light"];
|
|
31
|
-
type Variant = (typeof variants)[number];
|
|
32
|
-
interface ButtonProps {
|
|
33
|
-
onClick?: () => void;
|
|
34
|
-
text?: string;
|
|
35
|
-
type?: ButtonType;
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
icon?: ReactElement;
|
|
38
|
-
variant?: Variant;
|
|
39
|
-
isLoading?: boolean;
|
|
40
|
-
}
|
|
41
|
-
declare const Button: {
|
|
42
|
-
({ onClick, text, type, disabled, icon, variant, isLoading, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
43
|
-
types: readonly ["submit", "reset", "button"];
|
|
44
|
-
};
|
|
45
|
-
|
|
46
21
|
interface InputProps extends Omit<BaseInputProps, 'label'> {
|
|
47
22
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
48
23
|
disabled?: boolean;
|
|
@@ -67,4 +42,4 @@ declare const Textarea: {
|
|
|
67
42
|
types: readonly ["number", "text", "email", "date"];
|
|
68
43
|
};
|
|
69
44
|
|
|
70
|
-
export {
|
|
45
|
+
export { type BaseInputProps as B, Input as I, type Option as O, Textarea as T };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeEvent } from 'react';
|
|
3
3
|
import { ChangeHandler } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
declare const InputTypes: readonly ["number", "text", "email", "date"];
|
|
@@ -18,31 +18,6 @@ type Option<T> = {
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
declare const variants$1: readonly ["primary", "secondary", "tertiary", "subtle", "blue", "brand", "light", "active", "hover", "error", "focus", "success"];
|
|
22
|
-
declare const tokens: readonly ["background", "border", "text", "button"];
|
|
23
|
-
type Token = (typeof tokens)[number];
|
|
24
|
-
type Variant$1 = (typeof variants$1)[number];
|
|
25
|
-
type TokenVariant = Record<Variant$1, string>;
|
|
26
|
-
declare const colors: Record<Token, Partial<TokenVariant>>;
|
|
27
|
-
|
|
28
|
-
declare const ButtonTypes: readonly ["submit", "reset", "button"];
|
|
29
|
-
type ButtonType = (typeof ButtonTypes)[number];
|
|
30
|
-
declare const variants: readonly ["dark", "light"];
|
|
31
|
-
type Variant = (typeof variants)[number];
|
|
32
|
-
interface ButtonProps {
|
|
33
|
-
onClick?: () => void;
|
|
34
|
-
text?: string;
|
|
35
|
-
type?: ButtonType;
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
icon?: ReactElement;
|
|
38
|
-
variant?: Variant;
|
|
39
|
-
isLoading?: boolean;
|
|
40
|
-
}
|
|
41
|
-
declare const Button: {
|
|
42
|
-
({ onClick, text, type, disabled, icon, variant, isLoading, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
43
|
-
types: readonly ["submit", "reset", "button"];
|
|
44
|
-
};
|
|
45
|
-
|
|
46
21
|
interface InputProps extends Omit<BaseInputProps, 'label'> {
|
|
47
22
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
48
23
|
disabled?: boolean;
|
|
@@ -67,4 +42,4 @@ declare const Textarea: {
|
|
|
67
42
|
types: readonly ["number", "text", "email", "date"];
|
|
68
43
|
};
|
|
69
44
|
|
|
70
|
-
export {
|
|
45
|
+
export { type BaseInputProps as B, Input as I, type Option as O, Textarea as T };
|
package/dist/atoms.d.cts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { c as colors
|
|
3
|
-
export { B as Button
|
|
2
|
+
import { c as colors } from './Button-GGqCRrab.cjs';
|
|
3
|
+
export { B as Button } from './Button-GGqCRrab.cjs';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
|
+
import { B as BaseInputProps } from './Textarea-BVqF5_5c.cjs';
|
|
6
|
+
export { I as Input, T as Textarea } from './Textarea-BVqF5_5c.cjs';
|
|
5
7
|
import 'react-hook-form';
|
|
6
8
|
|
|
7
9
|
declare const variants$7: readonly ["brand", "teal", "blue"];
|
package/dist/atoms.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { c as colors
|
|
3
|
-
export { B as Button
|
|
2
|
+
import { c as colors } from './Button-GGqCRrab.js';
|
|
3
|
+
export { B as Button } from './Button-GGqCRrab.js';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
|
+
import { B as BaseInputProps } from './Textarea-BVqF5_5c.js';
|
|
6
|
+
export { I as Input, T as Textarea } from './Textarea-BVqF5_5c.js';
|
|
5
7
|
import 'react-hook-form';
|
|
6
8
|
|
|
7
9
|
declare const variants$7: readonly ["brand", "teal", "blue"];
|