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.
- package/dist/components/Button/Button.d.ts +14 -0
- package/dist/components/HelpText/HelpText.d.ts +7 -0
- package/dist/components/Input/Input.d.ts +11 -0
- package/dist/components/Modal/Modal.d.ts +10 -0
- package/dist/components/Tab/Tab.d.ts +9 -0
- package/dist/components/Tab/Tabs.d.ts +13 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/ui/Breadcrumb.d.ts +11 -0
- package/dist/components/toolbarContainer/index.d.ts +1 -0
- package/dist/components/toolbarContainer/ui/TollbarContainer.d.ts +5 -0
- package/dist/dev.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/ovirt-ui-toolkit.css +16 -0
- package/dist/ovirt-ui-toolkit.es.js +363 -263
- package/dist/ovirt-ui-toolkit.umd.js +10 -10
- package/package.json +5 -1
|
@@ -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,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,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,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 {};
|
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;
|