1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-06-30 20:23:59 +00:00
foris-js/src/index.js

70 lines
2.0 KiB
JavaScript
Raw Normal View History

2019-09-26 10:23:22 +00:00
/*
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
*/
2019-08-27 14:09:18 +00:00
// API
2019-09-25 11:56:08 +00:00
export { useAPIGet } from "api/get";
export { useAPIPost } from "api/post";
export { useAPIDelete } from "api/delete";
export { useAPIPatch } from "api/patch";
2019-08-23 13:20:22 +00:00
2019-08-27 09:54:57 +00:00
// Bootstrap
2019-10-30 16:06:53 +00:00
export { Alert, ALERT_TYPES } from "bootstrap/Alert";
2019-08-27 15:46:45 +00:00
export { Button } from "bootstrap/Button";
2019-08-28 14:59:16 +00:00
export { CheckBox } from "bootstrap/CheckBox";
2019-10-11 14:11:14 +00:00
export { DownloadButton } from "bootstrap/DownloadButton";
2019-08-27 15:46:45 +00:00
export { DataTimeInput } from "bootstrap/DataTimeInput";
export { EmailInput } from "bootstrap/EmailInput";
2019-10-10 15:25:00 +00:00
export { FileInput } from "bootstrap/FileInput";
2019-08-27 15:46:45 +00:00
export { Input } from "bootstrap/Input";
export { NumberInput } from "bootstrap/NumberInput";
export { PasswordInput } from "bootstrap/PasswordInput";
export { RadioSet } from "bootstrap/RadioSet";
export { Select } from "bootstrap/Select";
export { TextInput } from "bootstrap/TextInput";
2019-10-10 15:25:00 +00:00
export { formFieldsSize } from "bootstrap/constants";
2019-08-27 15:46:45 +00:00
2019-08-27 14:09:18 +00:00
export {
Spinner,
SpinnerElement,
} from "bootstrap/Spinner";
export {
Modal,
ModalBody,
ModalFooter,
ModalHeader,
} from "bootstrap/Modal";
2019-08-27 09:54:57 +00:00
// Form
2019-08-27 15:46:45 +00:00
export { ForisForm } from "form/components/ForisForm";
2019-08-27 14:09:18 +00:00
export { SubmitButton, STATES as SUBMIT_BUTTON_STATES } from "form/components/SubmitButton";
export { useForisModule, useForm } from "form/hooks";
2019-08-27 09:54:57 +00:00
// WebSockets
2019-08-27 15:46:45 +00:00
export { useWSForisModule } from "webSockets/hooks";
export { WebSockets } from "webSockets/WebSockets";
2019-08-27 09:54:57 +00:00
// Utils
2019-08-27 15:46:45 +00:00
export { Portal } from "utils/Portal";
2019-09-30 07:58:11 +00:00
export { undefinedIfEmpty, withoutUndefinedKeys, onlySpecifiedKeys } from "utils/objectHelpers";
2019-08-27 09:54:57 +00:00
// Foris URL
2019-08-28 08:10:49 +00:00
export { ForisURLs, REFORIS_URL_PREFIX } from "forisUrls";
2019-08-27 14:09:18 +00:00
2019-08-27 09:54:57 +00:00
// Validation
2019-08-23 13:20:22 +00:00
export {
2019-08-27 09:54:57 +00:00
validateIPv4Address,
validateIPv6Address,
validateIPv6Prefix,
validateDomain,
validateDUID,
validateMAC,
validateMultipleEmails,
2019-08-27 14:09:18 +00:00
} from "validations";
// Alert context
2019-10-30 16:06:53 +00:00
export { AlertContext, AlertContextProvider, useAlert } from "alertContext/AlertContext";