@6thbridge/hexa 0.0.1 → 0.0.3
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-lint.log +1 -1
- package/dist/index.d.mts +41 -16
- package/dist/index.d.ts +41 -16
- package/dist/index.js +2 -1053
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1009
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +102 -17
- package/package.json +2 -1
- package/turbo/generators/config.ts +0 -30
- package/turbo/generators/templates/component.hbs +0 -8
package/.turbo/turbo-lint.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
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
2
|
|
3
|
-
> @6thbridge/hexa@0.0.
|
3
|
+
> @6thbridge/hexa@0.0.2 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
|
4
4
|
> eslint . --max-warnings 0
|
5
5
|
|
package/dist/index.d.mts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import * as React from 'react';
|
1
|
+
import * as React$1 from 'react';
|
2
2
|
import React__default, { DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
3
3
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
5
5
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
7
|
+
import * as RPNInput from 'react-phone-number-input';
|
7
8
|
|
8
9
|
declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
|
9
10
|
showAsterisk?: boolean;
|
@@ -24,8 +25,8 @@ declare const buttonVariants: (props?: ({
|
|
24
25
|
interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
25
26
|
asChild?: boolean;
|
26
27
|
isLoading?: boolean;
|
27
|
-
leftNode?: React.ReactNode;
|
28
|
-
rightNode?: React.ReactNode;
|
28
|
+
leftNode?: React$1.ReactNode;
|
29
|
+
rightNode?: React$1.ReactNode;
|
29
30
|
LoaderSize?: number;
|
30
31
|
}
|
31
32
|
declare const Button: {
|
@@ -36,7 +37,7 @@ declare const Button: {
|
|
36
37
|
declare const inputVariants: (props?: ({
|
37
38
|
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
38
39
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
39
|
-
interface BaseInnerInputProps extends DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, VariantProps<typeof inputVariants> {
|
40
|
+
interface BaseInnerInputProps extends DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, VariantProps<typeof inputVariants> {
|
40
41
|
}
|
41
42
|
declare const inputContainerVariants: (props?: ({
|
42
43
|
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
@@ -44,12 +45,12 @@ declare const inputContainerVariants: (props?: ({
|
|
44
45
|
interface InputProps extends BaseInnerInputProps, VariantProps<typeof inputContainerVariants> {
|
45
46
|
isLoading?: boolean;
|
46
47
|
error?: string;
|
47
|
-
leftNode?: React.ReactNode;
|
48
|
-
rightNode?: React.ReactNode;
|
48
|
+
leftNode?: React$1.ReactNode;
|
49
|
+
rightNode?: React$1.ReactNode;
|
49
50
|
sideNodeClassName?: string;
|
50
51
|
label?: string;
|
51
52
|
showAsterisk?: boolean;
|
52
|
-
description?: React.ReactNode;
|
53
|
+
description?: React$1.ReactNode;
|
53
54
|
}
|
54
55
|
declare const Input: {
|
55
56
|
({ className, status, disabled, error, isLoading, sideNodeClassName, showAsterisk, label, description, ref, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
@@ -61,12 +62,12 @@ declare const PasswordInput: {
|
|
61
62
|
displayName: string;
|
62
63
|
};
|
63
64
|
|
64
|
-
interface TextareaProps extends DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, VariantProps<typeof inputContainerVariants> {
|
65
|
+
interface TextareaProps extends DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, VariantProps<typeof inputContainerVariants> {
|
65
66
|
isLoading?: boolean;
|
66
67
|
error?: string;
|
67
68
|
label?: string;
|
68
69
|
showAsterisk?: boolean;
|
69
|
-
description?: React.ReactNode;
|
70
|
+
description?: React$1.ReactNode;
|
70
71
|
}
|
71
72
|
declare const Textarea: {
|
72
73
|
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
@@ -79,10 +80,14 @@ type SearchableDataType = {
|
|
79
80
|
} & {
|
80
81
|
[key: string]: any;
|
81
82
|
};
|
82
|
-
|
83
|
+
|
84
|
+
type SelectPropsStatus = VariantProps<typeof inputContainerVariants>["status"];
|
85
|
+
interface SelectProps {
|
83
86
|
modal?: boolean;
|
84
87
|
hideSearch?: boolean;
|
85
88
|
loading?: boolean;
|
89
|
+
inputValue?: string;
|
90
|
+
onInputValueChange?: (arg: string) => void;
|
86
91
|
disabled?: boolean;
|
87
92
|
placeholder?: string;
|
88
93
|
value?: SearchableDataType;
|
@@ -91,15 +96,35 @@ interface SearchableProps {
|
|
91
96
|
className?: string;
|
92
97
|
containerClassName?: string;
|
93
98
|
onChange: (value: SearchableDataType) => void;
|
94
|
-
|
99
|
+
status?: SelectPropsStatus;
|
95
100
|
}
|
96
|
-
|
101
|
+
declare const Select: ({ hideSearch, status, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
|
102
|
+
|
103
|
+
type CountryPropsStatus = VariantProps<typeof inputContainerVariants>["status"];
|
104
|
+
interface CountryProps {
|
105
|
+
modal?: boolean;
|
106
|
+
hideSearch?: boolean;
|
107
|
+
loading?: boolean;
|
108
|
+
inputValue?: string;
|
109
|
+
onInputValueChange?: (arg: string) => void;
|
97
110
|
disabled?: boolean;
|
98
111
|
placeholder?: string;
|
99
|
-
value?:
|
112
|
+
value?: SearchableDataType;
|
113
|
+
optionComponent?: (arg: SearchableDataType) => React.ReactNode;
|
100
114
|
className?: string;
|
115
|
+
containerClassName?: string;
|
116
|
+
onChange: (value: SearchableDataType) => void;
|
117
|
+
status?: CountryPropsStatus;
|
101
118
|
}
|
102
|
-
declare const
|
103
|
-
|
119
|
+
declare const Country: ({ hideSearch, ...props }: CountryProps) => react_jsx_runtime.JSX.Element;
|
120
|
+
|
121
|
+
type PhoneInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & Omit<RPNInput.Props<typeof RPNInput.default>, "onChange"> & {
|
122
|
+
onChange?: (value?: RPNInput.Value) => void;
|
123
|
+
} & {
|
124
|
+
status?: VariantProps<typeof inputContainerVariants>["status"];
|
125
|
+
defaultCountry?: RPNInput.Country;
|
126
|
+
modal?: boolean;
|
127
|
+
};
|
128
|
+
declare const PhoneInput: React$1.ForwardRefExoticComponent<PhoneInputProps>;
|
104
129
|
|
105
|
-
export { Button, FormLabel, Input, Loader, PasswordInput,
|
130
|
+
export { Button, Country, FormLabel, Input, Loader, PasswordInput, PhoneInput, Select, Textarea };
|
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import * as React from 'react';
|
1
|
+
import * as React$1 from 'react';
|
2
2
|
import React__default, { DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
3
3
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
5
5
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
7
|
+
import * as RPNInput from 'react-phone-number-input';
|
7
8
|
|
8
9
|
declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
|
9
10
|
showAsterisk?: boolean;
|
@@ -24,8 +25,8 @@ declare const buttonVariants: (props?: ({
|
|
24
25
|
interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
25
26
|
asChild?: boolean;
|
26
27
|
isLoading?: boolean;
|
27
|
-
leftNode?: React.ReactNode;
|
28
|
-
rightNode?: React.ReactNode;
|
28
|
+
leftNode?: React$1.ReactNode;
|
29
|
+
rightNode?: React$1.ReactNode;
|
29
30
|
LoaderSize?: number;
|
30
31
|
}
|
31
32
|
declare const Button: {
|
@@ -36,7 +37,7 @@ declare const Button: {
|
|
36
37
|
declare const inputVariants: (props?: ({
|
37
38
|
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
38
39
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
39
|
-
interface BaseInnerInputProps extends DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, VariantProps<typeof inputVariants> {
|
40
|
+
interface BaseInnerInputProps extends DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, VariantProps<typeof inputVariants> {
|
40
41
|
}
|
41
42
|
declare const inputContainerVariants: (props?: ({
|
42
43
|
status?: "loading" | "default" | "error" | "prefilled" | null | undefined;
|
@@ -44,12 +45,12 @@ declare const inputContainerVariants: (props?: ({
|
|
44
45
|
interface InputProps extends BaseInnerInputProps, VariantProps<typeof inputContainerVariants> {
|
45
46
|
isLoading?: boolean;
|
46
47
|
error?: string;
|
47
|
-
leftNode?: React.ReactNode;
|
48
|
-
rightNode?: React.ReactNode;
|
48
|
+
leftNode?: React$1.ReactNode;
|
49
|
+
rightNode?: React$1.ReactNode;
|
49
50
|
sideNodeClassName?: string;
|
50
51
|
label?: string;
|
51
52
|
showAsterisk?: boolean;
|
52
|
-
description?: React.ReactNode;
|
53
|
+
description?: React$1.ReactNode;
|
53
54
|
}
|
54
55
|
declare const Input: {
|
55
56
|
({ className, status, disabled, error, isLoading, sideNodeClassName, showAsterisk, label, description, ref, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
@@ -61,12 +62,12 @@ declare const PasswordInput: {
|
|
61
62
|
displayName: string;
|
62
63
|
};
|
63
64
|
|
64
|
-
interface TextareaProps extends DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, VariantProps<typeof inputContainerVariants> {
|
65
|
+
interface TextareaProps extends DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, VariantProps<typeof inputContainerVariants> {
|
65
66
|
isLoading?: boolean;
|
66
67
|
error?: string;
|
67
68
|
label?: string;
|
68
69
|
showAsterisk?: boolean;
|
69
|
-
description?: React.ReactNode;
|
70
|
+
description?: React$1.ReactNode;
|
70
71
|
}
|
71
72
|
declare const Textarea: {
|
72
73
|
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
@@ -79,10 +80,14 @@ type SearchableDataType = {
|
|
79
80
|
} & {
|
80
81
|
[key: string]: any;
|
81
82
|
};
|
82
|
-
|
83
|
+
|
84
|
+
type SelectPropsStatus = VariantProps<typeof inputContainerVariants>["status"];
|
85
|
+
interface SelectProps {
|
83
86
|
modal?: boolean;
|
84
87
|
hideSearch?: boolean;
|
85
88
|
loading?: boolean;
|
89
|
+
inputValue?: string;
|
90
|
+
onInputValueChange?: (arg: string) => void;
|
86
91
|
disabled?: boolean;
|
87
92
|
placeholder?: string;
|
88
93
|
value?: SearchableDataType;
|
@@ -91,15 +96,35 @@ interface SearchableProps {
|
|
91
96
|
className?: string;
|
92
97
|
containerClassName?: string;
|
93
98
|
onChange: (value: SearchableDataType) => void;
|
94
|
-
|
99
|
+
status?: SelectPropsStatus;
|
95
100
|
}
|
96
|
-
|
101
|
+
declare const Select: ({ hideSearch, status, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
|
102
|
+
|
103
|
+
type CountryPropsStatus = VariantProps<typeof inputContainerVariants>["status"];
|
104
|
+
interface CountryProps {
|
105
|
+
modal?: boolean;
|
106
|
+
hideSearch?: boolean;
|
107
|
+
loading?: boolean;
|
108
|
+
inputValue?: string;
|
109
|
+
onInputValueChange?: (arg: string) => void;
|
97
110
|
disabled?: boolean;
|
98
111
|
placeholder?: string;
|
99
|
-
value?:
|
112
|
+
value?: SearchableDataType;
|
113
|
+
optionComponent?: (arg: SearchableDataType) => React.ReactNode;
|
100
114
|
className?: string;
|
115
|
+
containerClassName?: string;
|
116
|
+
onChange: (value: SearchableDataType) => void;
|
117
|
+
status?: CountryPropsStatus;
|
101
118
|
}
|
102
|
-
declare const
|
103
|
-
|
119
|
+
declare const Country: ({ hideSearch, ...props }: CountryProps) => react_jsx_runtime.JSX.Element;
|
120
|
+
|
121
|
+
type PhoneInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & Omit<RPNInput.Props<typeof RPNInput.default>, "onChange"> & {
|
122
|
+
onChange?: (value?: RPNInput.Value) => void;
|
123
|
+
} & {
|
124
|
+
status?: VariantProps<typeof inputContainerVariants>["status"];
|
125
|
+
defaultCountry?: RPNInput.Country;
|
126
|
+
modal?: boolean;
|
127
|
+
};
|
128
|
+
declare const PhoneInput: React$1.ForwardRefExoticComponent<PhoneInputProps>;
|
104
129
|
|
105
|
-
export { Button, FormLabel, Input, Loader, PasswordInput,
|
130
|
+
export { Button, Country, FormLabel, Input, Loader, PasswordInput, PhoneInput, Select, Textarea };
|