From f48a134768542b635c37b79d36e463a03eed83c2 Mon Sep 17 00:00:00 2001 From: Eunsun Mota Date: Wed, 23 Oct 2024 11:20:30 -0700 Subject: [PATCH] feat(api): add register static method #82 - Update dependency versions - `AuroSideNav.register` is to easily register the element without extra importing - `import "@aurodesignsystem/auro-sidenav"` will still register this element to - `import { AuroSideNav } from '../src/auro-sidenav` wont register this element until `AuroSideNav.register` gets called - Same changes on `AuroSideNavItem` and `AuroSideNavSection` - Fixed the typo on Recommended Use and Version Control: `clement` -> `element` --- demo/index.html | 13 +- demo/index.js | 13 ++ demo/index.min.js | 318 +++++++++++++++++++++++++++++++++++++ docs/partials/index.md | 12 +- index.js | 7 +- package-lock.json | 18 +-- package.json | 18 +-- src/accordionVersion.js | 2 +- src/auro-sidenav.js | 23 +-- src/auro-sidenavitem.js | 16 +- src/auro-sidenavsection.js | 17 +- test/auro-sidenav.test.js | 2 +- 12 files changed, 397 insertions(+), 62 deletions(-) create mode 100644 demo/index.js create mode 100644 demo/index.min.js diff --git a/demo/index.html b/demo/index.html index ef61396..c34c555 100644 --- a/demo/index.html +++ b/demo/index.html @@ -47,18 +47,7 @@ - - +