hubbi-ui 1.1.4 → 1.1.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.
@@ -10,6 +10,7 @@ interface HeaderProps {
10
10
  isDarkMode: boolean;
11
11
  user?: User;
12
12
  toggleTheme: () => void;
13
+ position?: "left" | "right";
13
14
  }
14
- export declare function Header({ onMenuClick, isDarkMode, user, toggleTheme, }: HeaderProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function Header({ onMenuClick, isDarkMode, user, toggleTheme, position, }: HeaderProps): import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -1 +1,2 @@
1
1
  export { Input } from './input';
2
+ export { MaskedInput } from './maskedinput';
@@ -4,8 +4,6 @@ interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
4
4
  error?: boolean;
5
5
  helperText?: string;
6
6
  icon?: React.ReactNode;
7
- mask?: string;
8
- maskChar?: string | null;
9
7
  }
10
- export declare function Input({ label, placeholder, error, helperText, disabled, icon, className, mask, maskChar, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function Input({ label, placeholder, error, helperText, disabled, icon, className, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
11
9
  export {};
@@ -1,6 +1,8 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { Input } from './input';
3
- declare const meta: Meta<typeof Input>;
4
- export default meta;
5
- type Story = StoryObj<typeof Input>;
6
- export declare const Playground: Story;
3
+ import { MaskedInput } from './maskedinput';
4
+ declare const metaInput: Meta<typeof Input>;
5
+ export default metaInput;
6
+ type StoryInput = StoryObj<typeof Input>;
7
+ export declare const Playground: StoryInput;
8
+ export declare const PlaygroundMask: StoryObj<typeof MaskedInput>;
@@ -0,0 +1,11 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ interface MaskedInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "children"> {
3
+ label?: string;
4
+ error?: boolean;
5
+ helperText?: string;
6
+ icon?: React.ReactNode;
7
+ mask?: string;
8
+ replacement?: Record<string, RegExp>;
9
+ }
10
+ export declare function MaskedInput({ label, placeholder, error, helperText, disabled, icon, className, mask, replacement, ...props }: MaskedInputProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};