kelt-ui-kit-react 0.1.3 → 0.1.4

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,11 +1,9 @@
1
+ import { FormInterface } from './form.interface';
1
2
 
2
3
  export type FormProps = {
3
4
  className?: string;
4
- initialValues: FormValues;
5
- onSubmit: (values: FormValues) => void;
5
+ title?: string;
6
+ initialValues: FormInterface;
7
+ onSubmit: (values: FormInterface) => void;
6
8
  };
7
- type FormValues = {
8
- [key: string]: string | number | boolean;
9
- };
10
- export declare const DynamicForm: ({ initialValues, onSubmit }: FormProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
9
+ export declare const DynamicForm: ({ initialValues, onSubmit, title }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export interface FormInterface {
2
+ [key: string]: string | number | boolean;
3
+ }
@@ -1,3 +1,3 @@
1
1
  import { HeaderInterface } from './header.interface';
2
2
 
3
- export declare const Header: ({ content, onClickMenu, onClickUser, }: HeaderInterface) => JSX.Element;
3
+ export declare const Header: ({ children, logo, onClickMenu, onClickUser, positionFixed, }: HeaderInterface) => JSX.Element;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export interface HeaderInterface {
3
- content?: React.ReactNode;
3
+ logo?: string;
4
+ children?: React.ReactNode;
5
+ positionFixed?: boolean;
4
6
  onClickMenu?: () => void;
5
7
  onClickUser?: () => void;
6
8
  }
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export { Header } from './header/header';
5
5
  export { Icon } from './icon/icon';
6
6
  export { Menus } from './menus/menus';
7
7
  export { Sidebar } from './sidebar/sidebar';
8
+ export { DynamicForm } from './form/form';