@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.
@@ -0,0 +1,35 @@
1
+
2
+  WARN  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
+ CLI Building entry: src/index.ts
8
+ CLI Using tsconfig: tsconfig.json
9
+ CLI tsup v8.3.5
10
+ CLI Target: es2020
11
+ CLI Cleaning output folder
12
+ ESM Build start
13
+ CJS Build start
14
+ ESM dist/index.mjs 134.00 B
15
+ ESM dist/index.mjs.map 260.00 B
16
+ ESM ⚡️ Build success in 40ms
17
+ CJS dist/index.js 615.00 B
18
+ CJS dist/index.js.map 431.00 B
19
+ CJS ⚡️ 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
+  WARN  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
+ 
30
+ Rebuilding...
31
+ 
32
+ warn - No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.
33
+ warn - https://tailwindcss.com/docs/content-configuration
34
+ 
35
+ Done in 78ms.
@@ -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
+
@@ -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 };
@@ -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 };