stp-ui-kit 0.0.50 → 0.0.52
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/Dropdown/Dropdown.d.ts +22 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/stp-ui-kit.es.js +1877 -1688
- package/dist/stp-ui-kit.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -4
- package/dist/stp-ui-kit.cjs.js +0 -61
- package/dist/stp-ui-kit.cjs.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface DropdownOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface DropdownProps {
|
|
8
|
+
label?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
helperText?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
value?: string | number;
|
|
16
|
+
options: DropdownOption[];
|
|
17
|
+
onChange?: (value: string | number) => void;
|
|
18
|
+
onFocus?: () => void;
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export type { DropdownProps, DropdownOption };
|
|
@@ -3,6 +3,7 @@ import { Button } from './Button/Button';
|
|
|
3
3
|
import { Checkbox } from './Checkbox/Checkbox';
|
|
4
4
|
import { Collapse } from './Collapse/Collapse';
|
|
5
5
|
import { CourseCollapse } from './CourseCollapse/CourseCollapse';
|
|
6
|
+
import { Dropdown } from './Dropdown/Dropdown';
|
|
6
7
|
import { Empty } from './Empty/Empty';
|
|
7
8
|
import { FormItem } from './FormItem/FormItem';
|
|
8
9
|
import { IconButton } from './IconButton/IconButton';
|
|
@@ -22,4 +23,4 @@ import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, Tabl
|
|
|
22
23
|
import { Tooltip } from './Tooltip/Tooltip';
|
|
23
24
|
import { TopBar } from './TopBar/TopBar';
|
|
24
25
|
import { Typography } from './Typography/Typography';
|
|
25
|
-
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, CustomToaster, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, InlineError, Checkbox, Input, RadioButton, };
|
|
26
|
+
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, CustomToaster, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, InlineError, Checkbox, Input, RadioButton, Dropdown, };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, message, Modal, ModalAPI, NavigationItem, PageHeader, ProgressLine, SectionHeader, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tooltip, TopBar, Typography } from './components';
|
|
2
2
|
import { Checkbox } from './components/Checkbox/Checkbox';
|
|
3
|
+
import { Dropdown } from './components/Dropdown/Dropdown';
|
|
3
4
|
import { InlineError } from './components/InlineError/InlineError';
|
|
4
5
|
import { Input } from './components/Input/Input';
|
|
5
6
|
import { TextArea } from './components/Input/TextArea';
|
|
6
7
|
import { CustomToaster } from './components/Message/CustomToaster';
|
|
7
8
|
import { RadioButton } from './components/RadioButton/RadioButton';
|
|
8
9
|
import { Cell } from './components/Table/Cell';
|
|
9
|
-
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, InlineError, Input, RadioButton, Checkbox, TextArea, CustomToaster, };
|
|
10
|
+
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, InlineError, Input, RadioButton, Checkbox, TextArea, CustomToaster, Dropdown, };
|