From bc79307ff73fd7af55d14692ed56f279f22daac9 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sat, 6 Jul 2024 16:52:26 +0200 Subject: [PATCH] Add loaders. --- demo/DemoApp.tsx | 36 ++++++++++---- src/Components/Loaders/GenericLoader.tsx | 10 ++++ src/Components/Loaders/ListLoader.tsx | 37 ++++++++++++++ src/Components/Loaders/SpinningLoader.tsx | 8 +++ src/styles/_components.less | 1 + src/styles/components/_loaders.less | 5 ++ .../loaders/_animated-background.less | 21 ++++++++ src/styles/components/loaders/_generic.less | 13 +++++ src/styles/components/loaders/_list.less | 49 +++++++++++++++++++ src/styles/components/loaders/_spinning.less | 41 ++++++++++++++++ 10 files changed, 212 insertions(+), 9 deletions(-) create mode 100644 src/Components/Loaders/GenericLoader.tsx create mode 100644 src/Components/Loaders/ListLoader.tsx create mode 100644 src/Components/Loaders/SpinningLoader.tsx create mode 100644 src/styles/components/_loaders.less create mode 100644 src/styles/components/loaders/_animated-background.less create mode 100644 src/styles/components/loaders/_generic.less create mode 100644 src/styles/components/loaders/_list.less create mode 100644 src/styles/components/loaders/_spinning.less diff --git a/demo/DemoApp.tsx b/demo/DemoApp.tsx index 5a29d28..f3d01b7 100644 --- a/demo/DemoApp.tsx +++ b/demo/DemoApp.tsx @@ -11,6 +11,9 @@ import {Tooltip} from "../src/Components/Floating/Tooltip"; import {DatepickerInput} from "../src/Components/Forms/DatepickerInput"; import {TimepickerInput} from "../src/Components/Forms/TimepickerInput"; import {Select} from "../src/Components/Select/Select"; +import {SpinningLoader} from "../src/Components/Loaders/SpinningLoader"; +import {ListLoader} from "../src/Components/Loaders/ListLoader"; +import {GenericLoader} from "../src/Components/Loaders/GenericLoader"; export function DemoApp() { @@ -25,7 +28,6 @@ export function DemoApp()

TODO