ovirt-ui-toolkit 0.0.2 → 0.0.5

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,14 @@
1
+ import { default as React } from 'react';
2
+ type ButtonProps = {
3
+ type?: 'default' | 'primary' | 'danger';
4
+ size?: 'xs' | 'lg';
5
+ label?: string;
6
+ title?: string;
7
+ onClick?: () => void;
8
+ isDisabled?: boolean;
9
+ children?: React.ReactNode;
10
+ className?: string;
11
+ isLoading?: boolean;
12
+ };
13
+ declare const Button: React.FC<ButtonProps>;
14
+ export default Button;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface HelpTextProps {
3
+ variant: 'warning' | 'success' | 'error';
4
+ children: React.ReactNode;
5
+ }
6
+ declare const HelpText: React.FC<HelpTextProps>;
7
+ export default HelpText;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface InputProps {
3
+ id: string;
4
+ type: 'text' | 'email' | 'password' | 'number' | 'date' | 'search';
5
+ placeholder?: string;
6
+ value?: string | number;
7
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
8
+ className?: string;
9
+ }
10
+ declare const Input: React.FC<InputProps>;
11
+ export default Input;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface ModalProps {
3
+ title: string;
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ children: React.ReactNode;
7
+ size?: 'lg' | 'md';
8
+ }
9
+ declare const Modal: React.FC<ModalProps>;
10
+ export default Modal;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface TabProps {
3
+ eventKey: string | number;
4
+ title: string;
5
+ children: React.ReactNode;
6
+ active?: boolean;
7
+ }
8
+ declare const Tab: React.FC<TabProps>;
9
+ export default Tab;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface TabItemProps {
3
+ eventKey: string | number;
4
+ title: string;
5
+ children: React.ReactNode;
6
+ }
7
+ interface TabsProps {
8
+ activeKey: string | number;
9
+ onSelect: (eventKey: string | number) => void;
10
+ children: React.ReactElement<TabItemProps>[];
11
+ }
12
+ declare const Tabs: React.FC<TabsProps>;
13
+ export default Tabs;
@@ -0,0 +1,2 @@
1
+ import { default as Breadcrumb } from './ui/Breadcrumb';
2
+ export default Breadcrumb;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface BreadcrumbItem {
3
+ title: string;
4
+ href?: string;
5
+ active?: boolean;
6
+ }
7
+ interface BreadcrumbProps {
8
+ items: BreadcrumbItem[];
9
+ }
10
+ declare const Breadcrumb: React.FC<BreadcrumbProps>;
11
+ export default Breadcrumb;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface ToolBarContainerProps {
3
+ }
4
+ declare const ToolBarContainer: React.FC<ToolBarContainerProps>;
5
+ export default ToolBarContainer;
package/dist/dev.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ export { default as Button } from './components/Button/Button';
2
+ export { default as Tab } from './components/Tab/Tab';
3
+ export { default as Tabs } from './components/Tab/Tabs';
4
+ export { default as Input } from './components/Input/Input';
5
+ export { default as Modal } from './components/Modal/Modal';
1
6
  export { default as SampleComp } from './Test';
2
7
  export type Foo = {
3
8
  foo: string;