From 0a1fa828fa9d83cb50a75c9f0b5b23d3c61d06a7 Mon Sep 17 00:00:00 2001
From: ievavizg <36439165+ievavizg@users.noreply.github.com>
Date: Fri, 13 Dec 2024 12:10:31 +0200
Subject: [PATCH] Expandable sidebar option (#732)
---
package.json | 2 +-
src/components/sidebar/Sidebar.stories.tsx | 33 ++++++++++++++++++++++
src/components/sidebar/Sidebar.tsx | 33 ++++++++++++++++------
src/components/sidebar/types.ts | 2 ++
4 files changed, 61 insertions(+), 9 deletions(-)
diff --git a/package.json b/package.json
index 4910979f..1e54e5c6 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@nordcloud/gnui",
"description": "Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products",
- "version": "10.4.3",
+ "version": "10.4.4",
"license": "MIT",
"repository": {
"type": "git",
diff --git a/src/components/sidebar/Sidebar.stories.tsx b/src/components/sidebar/Sidebar.stories.tsx
index ef994fd7..4fc65281 100644
--- a/src/components/sidebar/Sidebar.stories.tsx
+++ b/src/components/sidebar/Sidebar.stories.tsx
@@ -249,3 +249,36 @@ export const CustomWidth: StoryObj = {
},
},
};
+
+export const Expandable: StoryObj = {
+ render: () => {
+ const { isOpen, open, close } = useDisclosure();
+
+ return (
+