@6thbridge/hexa 0.0.1
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/.turbo/turbo-build.log +35 -0
- package/.turbo/turbo-lint.log +5 -0
- package/dist/index.d.mts +105 -0
- package/dist/index.d.ts +105 -0
- package/dist/index.js +1053 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1009 -0
- package/dist/index.mjs.map +1 -0
- package/dist/output.css +1779 -0
- package/eslint.config.mjs +33 -0
- package/package.json +69 -0
- package/postcss.config.js +12 -0
- package/tailwind.config.js +30 -0
- package/tsconfig.json +31 -0
- package/tsconfig.node.json +10 -0
- package/turbo/generators/config.ts +30 -0
- package/turbo/generators/templates/component.hbs +8 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
|
2
|
+
[43m[30m WARN [39m[49m Issue while reading "/Users/joachim/.nvm/versions/node/v20.17.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read
|
3
|
+
|
4
|
+
> @6thbridge/hexa@0.0.1 build /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
|
5
|
+
> tsup src/index.ts --format=esm,cjs --dts --clean --minify --sourcemap && pnpm run build:style
|
6
|
+
|
7
|
+
[34mCLI[39m Building entry: src/index.ts
|
8
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
9
|
+
[34mCLI[39m tsup v8.3.5
|
10
|
+
[34mCLI[39m Target: es2020
|
11
|
+
[34mCLI[39m Cleaning output folder
|
12
|
+
[34mESM[39m Build start
|
13
|
+
[34mCJS[39m Build start
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m134.00 B[39m
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m260.00 B[39m
|
16
|
+
[32mESM[39m ⚡️ Build success in 40ms
|
17
|
+
[32mCJS[39m [1mdist/index.js [22m[32m615.00 B[39m
|
18
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m431.00 B[39m
|
19
|
+
[32mCJS[39m ⚡️ Build success in 40ms
|
20
|
+
DTS Build start
|
21
|
+
DTS ⚡️ Build success in 482ms
|
22
|
+
DTS dist/index.d.mts 136.00 B
|
23
|
+
DTS dist/index.d.ts 136.00 B
|
24
|
+
[43m[30m WARN [39m[49m Issue while reading "/Users/joachim/.nvm/versions/node/v20.17.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read
|
25
|
+
|
26
|
+
> @6thbridge/hexa@0.0.1 build:style /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
|
27
|
+
> tailwindcss -i ./src/styles/input.css -o ./dist/output.css
|
28
|
+
|
29
|
+
[31m[39m
|
30
|
+
[31mRebuilding...[39m
|
31
|
+
[33m[39m
|
32
|
+
[33m[1m[33mwarn[39m[22m - No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.[39m
|
33
|
+
[33m[1m[33mwarn[39m[22m - https://tailwindcss.com/docs/content-configuration[39m
|
34
|
+
[31m[39m
|
35
|
+
[31mDone in 78ms.[39m
|
@@ -0,0 +1,5 @@
|
|
1
|
+
WARN Issue while reading "/Users/joachim/.nvm/versions/node/v20.17.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read
|
2
|
+
|
3
|
+
> @6thbridge/hexa@0.0.1 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
|
4
|
+
> eslint . --max-warnings 0
|
5
|
+
|
package/dist/index.d.mts
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import React__default, { DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
5
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
7
|
+
|
8
|
+
declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
|
9
|
+
showAsterisk?: boolean;
|
10
|
+
error?: string;
|
11
|
+
formItemId?: string;
|
12
|
+
} & React__default.RefAttributes<HTMLLabelElement>>;
|
13
|
+
|
14
|
+
type Colours = "primary" | "secondary";
|
15
|
+
declare const Loader: ({ size, colour, }: {
|
16
|
+
size?: number;
|
17
|
+
colour?: Colours;
|
18
|
+
}) => react_jsx_runtime.JSX.Element;
|
19
|
+
|
20
|
+
declare const buttonVariants: (props?: ({
|
21
|
+
variant?: "primary" | "neutral" | "outlined" | "light-outlined" | "primary-outlined" | "dark-text" | "light" | null | undefined;
|
22
|
+
size?: "default" | "sm" | "lg" | "md" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
|
23
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
24
|
+
interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
25
|
+
asChild?: boolean;
|
26
|
+
isLoading?: boolean;
|
27
|
+
leftNode?: React.ReactNode;
|
28
|
+
rightNode?: React.ReactNode;
|
29
|
+
LoaderSize?: number;
|
30
|
+
}
|
31
|
+
declare const Button: {
|
32
|
+
({ className, variant, size, asChild, isLoading, leftNode, rightNode, LoaderSize, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
33
|
+
displayName: string;
|
34
|
+
};
|
35
|
+
|
36
|
+
declare const inputVariants: (props?: ({
|
37
|
+
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
38
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
39
|
+
interface BaseInnerInputProps extends DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, VariantProps<typeof inputVariants> {
|
40
|
+
}
|
41
|
+
declare const inputContainerVariants: (props?: ({
|
42
|
+
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
43
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
44
|
+
interface InputProps extends BaseInnerInputProps, VariantProps<typeof inputContainerVariants> {
|
45
|
+
isLoading?: boolean;
|
46
|
+
error?: string;
|
47
|
+
leftNode?: React.ReactNode;
|
48
|
+
rightNode?: React.ReactNode;
|
49
|
+
sideNodeClassName?: string;
|
50
|
+
label?: string;
|
51
|
+
showAsterisk?: boolean;
|
52
|
+
description?: React.ReactNode;
|
53
|
+
}
|
54
|
+
declare const Input: {
|
55
|
+
({ className, status, disabled, error, isLoading, sideNodeClassName, showAsterisk, label, description, ref, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
56
|
+
displayName: string;
|
57
|
+
};
|
58
|
+
|
59
|
+
declare const PasswordInput: {
|
60
|
+
({ ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
61
|
+
displayName: string;
|
62
|
+
};
|
63
|
+
|
64
|
+
interface TextareaProps extends DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, VariantProps<typeof inputContainerVariants> {
|
65
|
+
isLoading?: boolean;
|
66
|
+
error?: string;
|
67
|
+
label?: string;
|
68
|
+
showAsterisk?: boolean;
|
69
|
+
description?: React.ReactNode;
|
70
|
+
}
|
71
|
+
declare const Textarea: {
|
72
|
+
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
73
|
+
displayName: string;
|
74
|
+
};
|
75
|
+
|
76
|
+
type SearchableDataType = {
|
77
|
+
value: string;
|
78
|
+
label: string;
|
79
|
+
} & {
|
80
|
+
[key: string]: any;
|
81
|
+
};
|
82
|
+
interface SearchableProps {
|
83
|
+
modal?: boolean;
|
84
|
+
hideSearch?: boolean;
|
85
|
+
loading?: boolean;
|
86
|
+
disabled?: boolean;
|
87
|
+
placeholder?: string;
|
88
|
+
value?: SearchableDataType;
|
89
|
+
options: SearchableDataType[];
|
90
|
+
optionComponent?: (arg: SearchableDataType) => React.ReactNode;
|
91
|
+
className?: string;
|
92
|
+
containerClassName?: string;
|
93
|
+
onChange: (value: SearchableDataType) => void;
|
94
|
+
children?: React.ReactNode;
|
95
|
+
}
|
96
|
+
interface SearchableTriggerProps extends VariantProps<typeof inputContainerVariants> {
|
97
|
+
disabled?: boolean;
|
98
|
+
placeholder?: string;
|
99
|
+
value?: string;
|
100
|
+
className?: string;
|
101
|
+
}
|
102
|
+
declare const SearchableTrigger: ({ className, value, placeholder, status, disabled, }: SearchableTriggerProps) => react_jsx_runtime.JSX.Element;
|
103
|
+
declare const Searchable: ({ options, value, onChange, containerClassName, placeholder, disabled, loading, optionComponent, children, modal, hideSearch, className, }: SearchableProps) => react_jsx_runtime.JSX.Element;
|
104
|
+
|
105
|
+
export { Button, FormLabel, Input, Loader, PasswordInput, Searchable, SearchableTrigger, Textarea };
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import React__default, { DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
5
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
7
|
+
|
8
|
+
declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
|
9
|
+
showAsterisk?: boolean;
|
10
|
+
error?: string;
|
11
|
+
formItemId?: string;
|
12
|
+
} & React__default.RefAttributes<HTMLLabelElement>>;
|
13
|
+
|
14
|
+
type Colours = "primary" | "secondary";
|
15
|
+
declare const Loader: ({ size, colour, }: {
|
16
|
+
size?: number;
|
17
|
+
colour?: Colours;
|
18
|
+
}) => react_jsx_runtime.JSX.Element;
|
19
|
+
|
20
|
+
declare const buttonVariants: (props?: ({
|
21
|
+
variant?: "primary" | "neutral" | "outlined" | "light-outlined" | "primary-outlined" | "dark-text" | "light" | null | undefined;
|
22
|
+
size?: "default" | "sm" | "lg" | "md" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
|
23
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
24
|
+
interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
25
|
+
asChild?: boolean;
|
26
|
+
isLoading?: boolean;
|
27
|
+
leftNode?: React.ReactNode;
|
28
|
+
rightNode?: React.ReactNode;
|
29
|
+
LoaderSize?: number;
|
30
|
+
}
|
31
|
+
declare const Button: {
|
32
|
+
({ className, variant, size, asChild, isLoading, leftNode, rightNode, LoaderSize, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
33
|
+
displayName: string;
|
34
|
+
};
|
35
|
+
|
36
|
+
declare const inputVariants: (props?: ({
|
37
|
+
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
38
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
39
|
+
interface BaseInnerInputProps extends DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, VariantProps<typeof inputVariants> {
|
40
|
+
}
|
41
|
+
declare const inputContainerVariants: (props?: ({
|
42
|
+
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
43
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
44
|
+
interface InputProps extends BaseInnerInputProps, VariantProps<typeof inputContainerVariants> {
|
45
|
+
isLoading?: boolean;
|
46
|
+
error?: string;
|
47
|
+
leftNode?: React.ReactNode;
|
48
|
+
rightNode?: React.ReactNode;
|
49
|
+
sideNodeClassName?: string;
|
50
|
+
label?: string;
|
51
|
+
showAsterisk?: boolean;
|
52
|
+
description?: React.ReactNode;
|
53
|
+
}
|
54
|
+
declare const Input: {
|
55
|
+
({ className, status, disabled, error, isLoading, sideNodeClassName, showAsterisk, label, description, ref, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
56
|
+
displayName: string;
|
57
|
+
};
|
58
|
+
|
59
|
+
declare const PasswordInput: {
|
60
|
+
({ ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
61
|
+
displayName: string;
|
62
|
+
};
|
63
|
+
|
64
|
+
interface TextareaProps extends DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, VariantProps<typeof inputContainerVariants> {
|
65
|
+
isLoading?: boolean;
|
66
|
+
error?: string;
|
67
|
+
label?: string;
|
68
|
+
showAsterisk?: boolean;
|
69
|
+
description?: React.ReactNode;
|
70
|
+
}
|
71
|
+
declare const Textarea: {
|
72
|
+
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
73
|
+
displayName: string;
|
74
|
+
};
|
75
|
+
|
76
|
+
type SearchableDataType = {
|
77
|
+
value: string;
|
78
|
+
label: string;
|
79
|
+
} & {
|
80
|
+
[key: string]: any;
|
81
|
+
};
|
82
|
+
interface SearchableProps {
|
83
|
+
modal?: boolean;
|
84
|
+
hideSearch?: boolean;
|
85
|
+
loading?: boolean;
|
86
|
+
disabled?: boolean;
|
87
|
+
placeholder?: string;
|
88
|
+
value?: SearchableDataType;
|
89
|
+
options: SearchableDataType[];
|
90
|
+
optionComponent?: (arg: SearchableDataType) => React.ReactNode;
|
91
|
+
className?: string;
|
92
|
+
containerClassName?: string;
|
93
|
+
onChange: (value: SearchableDataType) => void;
|
94
|
+
children?: React.ReactNode;
|
95
|
+
}
|
96
|
+
interface SearchableTriggerProps extends VariantProps<typeof inputContainerVariants> {
|
97
|
+
disabled?: boolean;
|
98
|
+
placeholder?: string;
|
99
|
+
value?: string;
|
100
|
+
className?: string;
|
101
|
+
}
|
102
|
+
declare const SearchableTrigger: ({ className, value, placeholder, status, disabled, }: SearchableTriggerProps) => react_jsx_runtime.JSX.Element;
|
103
|
+
declare const Searchable: ({ options, value, onChange, containerClassName, placeholder, disabled, loading, optionComponent, children, modal, hideSearch, className, }: SearchableProps) => react_jsx_runtime.JSX.Element;
|
104
|
+
|
105
|
+
export { Button, FormLabel, Input, Loader, PasswordInput, Searchable, SearchableTrigger, Textarea };
|