Closed sun-mota closed 4 weeks ago
This PR introduces a new static register
method to the AuroDrawer component, simplifying the component registration process. The implementation replaces the direct customElements.define call with a more flexible registration approach that allows custom element names. The changes also include documentation updates and bug fixes in examples.
classDiagram
class AuroDrawer {
+static register(name="auro-drawer")
}
note for AuroDrawer "New static method 'register' added to allow flexible component registration."
Change | Details | Files |
---|---|---|
Introduced a new static register method for component registration |
|
src/auro-drawer.js |
Updated documentation and examples to reflect new registration method |
|
demo/index.md docs/partials/index.md demo/index.html apiExamples/custom.html |
Modified demo initialization and fixed example bugs |
|
demo/index.js apiExamples/custom.js demo/api.js |
Removed version files |
|
src/buttonVersion.js src/iconVersion.js |
:tada: This PR is included in version 2.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Resolves: #28
Summary:
AuroDrawer.register
is to easily register the element without extra importingimport "@aurodesignsystem/auro-drawer"
will still register this element toimport { AuroDrawer } from '../src/auro-drawer
wont register this element untilAuroDrawer.register
gets calledclement
->element
custom-drawer
exampleType of change:
Please delete options that are not relevant.
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Add a static method 'AuroDrawer.register' to facilitate manual registration of the 'auro-drawer' element, update dependencies, and correct documentation errors.
New Features:
Bug Fixes:
Enhancements:
Documentation: