@6thbridge/hexa 0.0.4 → 0.0.6

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.
@@ -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.4 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
3
+ > @6thbridge/hexa@0.0.6 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
@@ -5,6 +5,8 @@ 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
7
  import * as RPNInput from 'react-phone-number-input';
8
+ import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
9
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
8
10
 
9
11
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
10
12
  showAsterisk?: boolean;
@@ -57,8 +59,16 @@ declare const Input: {
57
59
  displayName: string;
58
60
  };
59
61
 
62
+ type PasswordInputProps = InputProps & {
63
+ /**
64
+ * onValidate(validated: boolean, value: string) => void
65
+ * validated: this is boolean value that indicated that all validation options were met
66
+ * value: this is the string input value
67
+ */
68
+ onValidate?: (validated: boolean, value: string) => void;
69
+ };
60
70
  declare const PasswordInput: {
61
- ({ ...props }: InputProps): react_jsx_runtime.JSX.Element;
71
+ ({ onValidate, onChange, ...props }: PasswordInputProps): react_jsx_runtime.JSX.Element;
62
72
  displayName: string;
63
73
  };
64
74
 
@@ -138,5 +148,43 @@ type PhoneInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onCh
138
148
  error?: string;
139
149
  };
140
150
  declare const PhoneInput: React$1.ForwardRefExoticComponent<PhoneInputProps>;
151
+ type FlagComponentProps = RPNInput.FlagProps & {
152
+ className?: string;
153
+ };
154
+ declare const FlagComponent: {
155
+ ({ country, countryName, className, }: FlagComponentProps): react_jsx_runtime.JSX.Element;
156
+ displayName: string;
157
+ };
158
+
159
+ declare const otpInputVariants: (props?: ({
160
+ status?: "loading" | "default" | "error" | null | undefined;
161
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
162
+ type DefailtInputProps = Omit<OTPInputProps$1, "renderInput">;
163
+ type OTPInputProps = DefailtInputProps & VariantProps<typeof otpInputVariants> & {};
164
+ declare const OTPInput: ({ numInputs, inputStyle, containerStyle, placeholder, status, ...props }: OTPInputProps) => react_jsx_runtime.JSX.Element;
165
+
166
+ type DialogPropsType = {
167
+ trigger?: React$1.ReactNode;
168
+ children: React$1.ReactNode;
169
+ title?: React$1.ReactNode;
170
+ description?: React$1.ReactNode;
171
+ footer?: React$1.ReactNode;
172
+ hideCloseButton?: boolean;
173
+ contentClassName?: string;
174
+ headerClassName?: string;
175
+ titleClassName?: string;
176
+ descriptionClassName?: string;
177
+ footerClassName?: string;
178
+ asChild?: boolean;
179
+ onOpenAutoFocus?: (e: Event) => void;
180
+ onCloseAutoFocus?: (e: Event) => void;
181
+ onInteractOutside?: (e: Event) => void;
182
+ onPointerDownOutside?: (e: Event) => void;
183
+ onEscapeKeyDown?: (e: KeyboardEvent) => void;
184
+ };
185
+ declare const Dialog: {
186
+ ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }: React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & DialogPropsType): react_jsx_runtime.JSX.Element;
187
+ displayName: string | undefined;
188
+ };
141
189
 
142
- export { Button, Country, FormLabel, Input, Loader, PasswordInput, PhoneInput, Select, Textarea };
190
+ export { Button, Country, Dialog, FlagComponent, FormLabel, Input, Loader, OTPInput, PasswordInput, PhoneInput, Select, Textarea };
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ 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
7
  import * as RPNInput from 'react-phone-number-input';
8
+ import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
9
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
8
10
 
9
11
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
10
12
  showAsterisk?: boolean;
@@ -57,8 +59,16 @@ declare const Input: {
57
59
  displayName: string;
58
60
  };
59
61
 
62
+ type PasswordInputProps = InputProps & {
63
+ /**
64
+ * onValidate(validated: boolean, value: string) => void
65
+ * validated: this is boolean value that indicated that all validation options were met
66
+ * value: this is the string input value
67
+ */
68
+ onValidate?: (validated: boolean, value: string) => void;
69
+ };
60
70
  declare const PasswordInput: {
61
- ({ ...props }: InputProps): react_jsx_runtime.JSX.Element;
71
+ ({ onValidate, onChange, ...props }: PasswordInputProps): react_jsx_runtime.JSX.Element;
62
72
  displayName: string;
63
73
  };
64
74
 
@@ -138,5 +148,43 @@ type PhoneInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onCh
138
148
  error?: string;
139
149
  };
140
150
  declare const PhoneInput: React$1.ForwardRefExoticComponent<PhoneInputProps>;
151
+ type FlagComponentProps = RPNInput.FlagProps & {
152
+ className?: string;
153
+ };
154
+ declare const FlagComponent: {
155
+ ({ country, countryName, className, }: FlagComponentProps): react_jsx_runtime.JSX.Element;
156
+ displayName: string;
157
+ };
158
+
159
+ declare const otpInputVariants: (props?: ({
160
+ status?: "loading" | "default" | "error" | null | undefined;
161
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
162
+ type DefailtInputProps = Omit<OTPInputProps$1, "renderInput">;
163
+ type OTPInputProps = DefailtInputProps & VariantProps<typeof otpInputVariants> & {};
164
+ declare const OTPInput: ({ numInputs, inputStyle, containerStyle, placeholder, status, ...props }: OTPInputProps) => react_jsx_runtime.JSX.Element;
165
+
166
+ type DialogPropsType = {
167
+ trigger?: React$1.ReactNode;
168
+ children: React$1.ReactNode;
169
+ title?: React$1.ReactNode;
170
+ description?: React$1.ReactNode;
171
+ footer?: React$1.ReactNode;
172
+ hideCloseButton?: boolean;
173
+ contentClassName?: string;
174
+ headerClassName?: string;
175
+ titleClassName?: string;
176
+ descriptionClassName?: string;
177
+ footerClassName?: string;
178
+ asChild?: boolean;
179
+ onOpenAutoFocus?: (e: Event) => void;
180
+ onCloseAutoFocus?: (e: Event) => void;
181
+ onInteractOutside?: (e: Event) => void;
182
+ onPointerDownOutside?: (e: Event) => void;
183
+ onEscapeKeyDown?: (e: KeyboardEvent) => void;
184
+ };
185
+ declare const Dialog: {
186
+ ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }: React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & DialogPropsType): react_jsx_runtime.JSX.Element;
187
+ displayName: string | undefined;
188
+ };
141
189
 
142
- export { Button, Country, FormLabel, Input, Loader, PasswordInput, PhoneInput, Select, Textarea };
190
+ export { Button, Country, Dialog, FlagComponent, FormLabel, Input, Loader, OTPInput, PasswordInput, PhoneInput, Select, Textarea };