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-11-05 11:10:50 +00:00
|
|
|
export {
|
2019-11-15 11:54:12 +00:00
|
|
|
useAPIGet,
|
|
|
|
useAPIPost,
|
|
|
|
useAPIPatch,
|
|
|
|
useAPIPut,
|
|
|
|
useAPIDelete,
|
|
|
|
useAPIPolling,
|
2019-12-26 22:34:59 +00:00
|
|
|
} from "./api/hooks";
|
|
|
|
export { API_STATE } from "./api/utils";
|
2019-08-23 13:20:22 +00:00
|
|
|
|
2019-08-27 09:54:57 +00:00
|
|
|
// Bootstrap
|
2019-12-26 22:34:59 +00:00
|
|
|
export { Alert, ALERT_TYPES } from "./bootstrap/Alert";
|
|
|
|
export { Button } from "./bootstrap/Button";
|
|
|
|
export { CheckBox } from "./bootstrap/CheckBox";
|
|
|
|
export { DownloadButton } from "./bootstrap/DownloadButton";
|
|
|
|
export { DataTimeInput } from "./bootstrap/DataTimeInput";
|
|
|
|
export { EmailInput } from "./bootstrap/EmailInput";
|
|
|
|
export { FileInput } from "./bootstrap/FileInput";
|
|
|
|
export { Input } from "./bootstrap/Input";
|
|
|
|
export { NumberInput } from "./bootstrap/NumberInput";
|
|
|
|
export { PasswordInput } from "./bootstrap/PasswordInput";
|
|
|
|
export { Radio, RadioSet } from "./bootstrap/RadioSet";
|
|
|
|
export { Select } from "./bootstrap/Select";
|
|
|
|
export { TextInput } from "./bootstrap/TextInput";
|
|
|
|
export { formFieldsSize } from "./bootstrap/constants";
|
2019-08-27 15:46:45 +00:00
|
|
|
|
2019-08-27 14:09:18 +00:00
|
|
|
export {
|
|
|
|
Spinner,
|
|
|
|
SpinnerElement,
|
2019-12-26 22:34:59 +00:00
|
|
|
} from "./bootstrap/Spinner";
|
2019-08-27 14:09:18 +00:00
|
|
|
export {
|
|
|
|
Modal,
|
|
|
|
ModalBody,
|
|
|
|
ModalFooter,
|
|
|
|
ModalHeader,
|
2019-12-26 22:34:59 +00:00
|
|
|
} from "./bootstrap/Modal";
|
2019-08-27 14:09:18 +00:00
|
|
|
|
2019-11-27 15:54:37 +00:00
|
|
|
// Common
|
2019-12-26 22:34:59 +00:00
|
|
|
export { RebootButton } from "./common/RebootButton";
|
2019-11-27 15:54:37 +00:00
|
|
|
|
2019-08-27 09:54:57 +00:00
|
|
|
// Form
|
2019-12-26 22:34:59 +00:00
|
|
|
export { ForisForm } from "./form/components/ForisForm";
|
|
|
|
export { SubmitButton, STATES as SUBMIT_BUTTON_STATES } from "./form/components/SubmitButton";
|
|
|
|
export { useForisModule, useForm } from "./form/hooks";
|
2019-08-27 14:09:18 +00:00
|
|
|
|
2019-08-27 09:54:57 +00:00
|
|
|
// WebSockets
|
2019-12-26 22:34:59 +00:00
|
|
|
export { useWSForisModule } from "./webSockets/hooks";
|
|
|
|
export { WebSockets } from "./webSockets/WebSockets";
|
2019-08-27 09:54:57 +00:00
|
|
|
|
|
|
|
// Utils
|
2019-12-26 22:34:59 +00:00
|
|
|
export { Portal } from "./utils/Portal";
|
|
|
|
export { undefinedIfEmpty, withoutUndefinedKeys, onlySpecifiedKeys } from "./utils/objectHelpers";
|
2019-11-07 17:21:14 +00:00
|
|
|
export {
|
|
|
|
withEither, withSpinner, withSending, withSpinnerOnSending, withError, withErrorMessage,
|
2019-12-26 22:34:59 +00:00
|
|
|
} from "./utils/conditionalHOCs";
|
|
|
|
export { ErrorMessage } from "./utils/ErrorMessage";
|
|
|
|
export { useClickOutside } from "./utils/hooks";
|
2019-08-27 09:54:57 +00:00
|
|
|
|
|
|
|
// Foris URL
|
2019-12-26 22:34:59 +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-12-26 22:34:59 +00:00
|
|
|
} from "./validations";
|
2019-09-24 07:52:09 +00:00
|
|
|
|
|
|
|
// Alert context
|
2019-12-26 22:34:59 +00:00
|
|
|
export { AlertContextProvider, useAlert } from "./alertContext/AlertContext";
|