From 7f2fcb1797e2ec6a74d5ff4b8b00d29347782c1c Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Sun, 22 Feb 2026 11:25:53 +0300 Subject: [PATCH] feat(DotIndicator): create DotIndicator ui component --- .../DotIndicator/DotIndicator.stories.svelte | 189 ++++++++++++++++++ .../ui/DotIndicator/DotIndicator.svelte | 60 ++++++ 2 files changed, 249 insertions(+) create mode 100644 src/shared/ui/DotIndicator/DotIndicator.stories.svelte create mode 100644 src/shared/ui/DotIndicator/DotIndicator.svelte diff --git a/src/shared/ui/DotIndicator/DotIndicator.stories.svelte b/src/shared/ui/DotIndicator/DotIndicator.stories.svelte new file mode 100644 index 0000000..5d60fcb --- /dev/null +++ b/src/shared/ui/DotIndicator/DotIndicator.stories.svelte @@ -0,0 +1,189 @@ + + + + + + {#snippet template(args)} + + {/snippet} + + + + {#snippet template(args)} +
+
+ + Online +
+
+ + Offline +
+
+ + Busy +
+
+ + Away +
+
+ + Success +
+
+ + Warning +
+
+ + Error +
+
+ {/snippet} +
+ + + {#snippet template(args)} +
+
+ + Small +
+
+ + Medium +
+
+ + Large +
+
+ {/snippet} +
+ + + {#snippet template(args)} +
+
+ + Online +
+
+ + Busy +
+
+ + Away +
+
+ {/snippet} +
+ + + {#snippet template(args)} +
+

Sizes

+
+
+ + Small +
+
+ + Medium +
+
+ + Large +
+
+ +

Status Variants

+
+
+ + Online +
+
+ + Offline +
+
+ + Busy +
+
+ + Away +
+
+ +

Feedback Variants

+
+
+ + Success +
+
+ + Warning +
+
+ + Error +
+
+ +

With Pulse Animation

+
+
+ + Online +
+
+ + Busy +
+
+
+ {/snippet} +
diff --git a/src/shared/ui/DotIndicator/DotIndicator.svelte b/src/shared/ui/DotIndicator/DotIndicator.svelte new file mode 100644 index 0000000..b62c4d2 --- /dev/null +++ b/src/shared/ui/DotIndicator/DotIndicator.svelte @@ -0,0 +1,60 @@ + + + +