Closed jason-capsule42 closed 1 month ago
This pull request introduces a new auro-dropdown
component, which is a customizable dropdown element for interactive content. The implementation includes the main dropdown component, a bib (popover) component, and integration with FloatingUI for positioning. The PR also adds necessary styles, documentation, and example usage.
classDiagram
class AuroDropdown {
+Boolean bordered
+Boolean chevron
+Boolean disabled
+Boolean error
+Boolean inset
+Boolean matchWidth
+Boolean rounded
+Boolean hoverToggle
+Boolean noToggle
+Boolean focusShow
+Boolean noHideOnThisFocusLoss
+Boolean isPopoverVisible
+Number dropdownWidth
+String placement
+Number tabIndex
+Function onSlotChange
+AuroLibraryRuntimeUtils runtimeUtils
+AuroFloatingUI floater
+Object floaterConfig
+String iconTag
+void privateDefaults()
+void connectedCallback()
+void disconnectedCallback()
+void updated(changedProperties)
+void firstUpdated()
+void handleDefaultSlot()
+html render()
}
class AuroFloatingUI {
+void position()
+void updateState()
+void setupHideHandlers()
+void handleUpdate(changedProperties)
+void updateCurrentExpandedDropdown()
+void showBib()
+void hideBib()
+void handleClick()
+void handleEvent(event)
+void handleTriggerTabIndex()
+void configure(elem)
}
AuroDropdown --> AuroFloatingUI
AuroDropdown --> AuroDropdownBib
AuroDropdown --> AuroLibraryRuntimeUtils
AuroDropdown --> AuroDependencyVersioning
AuroDropdown --> AuroIcon
AuroDropdown --> AuroDropdownBib
AuroDropdown --> AuroFloatingUI
AuroDropdown --> AuroLibraryRuntimeUtils
AuroDropdown --> AuroDependencyVersioning
AuroDropdown --> AuroIcon
class AuroDropdownBib {
+html render()
}
class MySelect {
+String value
+void configureBibContent()
+void firstUpdated()
+void updated(changedProperties)
+html render()
}
MySelect --> AuroDropdown
AuroDropdown --> AuroDropdownBib
AuroDropdown --> AuroFloatingUI
AuroDropdown --> AuroLibraryRuntimeUtils
AuroDropdown --> AuroDependencyVersioning
AuroDropdown --> AuroIcon
class AuroLibraryRuntimeUtils {
}
class AuroDependencyVersioning {
+String generateTag(componentName, version, component)
}
class AuroIcon {
}
Change | Details | Files |
---|---|---|
Implement auro-dropdown custom element |
|
src/dropdown/auro-dropdown.js |
Create AuroDropdownBib component for popover content |
|
src/dropdown/auro-dropdownBib.js |
Implement FloatingUI integration |
|
src/dropdown/floatingUI.mjs |
Add styles for dropdown and bib components |
|
src/dropdown/style.scss src/dropdown/color.scss src/dropdown/tokens.scss src/dropdown/bibStyles.scss |
Add documentation and demo |
|
README.md demo/index.md |
Implement example select component using auro-dropdown |
|
src/dropdown/select.js |
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.
Alaska Airlines Pull Request
Review Considerations
This PR includes changes that alter the current:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I have performed a self-review of my own update.
Summary by Sourcery
Integrate Floating UI with a new dropdown component as a proof of concept, introducing 'auro-dropdown' and 'MySelect' components, along with supporting styles and documentation.
New Features:
Enhancements:
Documentation: