From 507bd17bf71cb520519fdeafe6627538008db68d Mon Sep 17 00:00:00 2001 From: Cee Chen <549407+cee-chen@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:05:14 -0700 Subject: [PATCH] [EuiCollapsibleNavBeta] Various API updates and cleanups (#7228) --- .../collapsible_nav_body_footer.test.tsx.snap | 26 +++ .../collapsible_nav_beta.stories.tsx | 207 ++++++++++-------- .../collapsible_nav_beta.styles.ts | 28 +-- .../collapsible_nav_beta.tsx | 27 ++- .../collapsible_nav_body_footer.styles.ts | 44 ++++ .../collapsible_nav_body_footer.test.tsx | 50 +++++ .../collapsible_nav_body_footer.tsx | 69 ++++++ .../collapsible_nav_group.test.tsx.snap | 67 ++++++ .../collapsible_nav_group.stories.tsx | 94 ++++++++ .../collapsible_nav_group.styles.ts | 34 +++ .../collapsible_nav_group.test.tsx | 55 +++++ .../collapsible_nav_group.tsx | 83 +++++++ .../collapsible_nav_group/index.ts | 9 + .../collapsible_nav_accordion.test.tsx.snap | 4 +- .../collapsible_nav_item.test.tsx.snap | 2 +- .../collapsible_nav_accordion.styles.ts | 25 +-- .../collapsible_nav_accordion.test.tsx | 21 -- .../collapsible_nav_accordion.tsx | 49 +---- .../collapsible_nav_item.stories.tsx | 12 +- .../collapsible_nav_item.styles.ts | 33 ++- .../collapsible_nav_item.test.tsx | 61 +++--- .../collapsible_nav_item.tsx | 102 ++++++--- .../collapsible_nav_item/index.ts | 1 - src/components/collapsible_nav_beta/index.ts | 1 - 24 files changed, 804 insertions(+), 300 deletions(-) create mode 100644 src/components/collapsible_nav_beta/__snapshots__/collapsible_nav_body_footer.test.tsx.snap create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.ts create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_body_footer.test.tsx create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_body_footer.tsx create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_group/__snapshots__/collapsible_nav_group.test.tsx.snap create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.stories.tsx create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.styles.ts create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.test.tsx create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.tsx create mode 100644 src/components/collapsible_nav_beta/collapsible_nav_group/index.ts diff --git a/src/components/collapsible_nav_beta/__snapshots__/collapsible_nav_body_footer.test.tsx.snap b/src/components/collapsible_nav_beta/__snapshots__/collapsible_nav_body_footer.test.tsx.snap new file mode 100644 index 00000000000..4ef06f455f0 --- /dev/null +++ b/src/components/collapsible_nav_beta/__snapshots__/collapsible_nav_body_footer.test.tsx.snap @@ -0,0 +1,26 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`EuiCollapsibleNavBody renders 1`] = ` +
+
+
+
+
+`; + +exports[`EuiCollapsibleNavFooter renders 1`] = ` +