Closed sun-mota closed 1 week ago
This PR adds a new checkbox component (v4.1.0) to the auro-formkit library. The implementation includes the main checkbox component, checkbox group functionality, and necessary build configurations. The changes primarily focus on adding new component files and updating build scripts to support the checkbox component.
classDiagram
class AuroCheckbox {
- Boolean checked
- Boolean disabled
- Boolean error
- String id
- String name
- String value
+ handleChange(event)
+ handleInput(event)
+ handleFocusin()
+ generateIconHtml()
}
class AuroCheckboxGroup {
- String validity
- Array value
- Boolean disabled
- Boolean required
- Boolean horizontal
- AuroFormValidation validation
- AuroLibraryRuntimeUtils runtimeUtils
+ handleValueUpdate(value, selected)
+ handlePreselectedItems()
+ handleItems()
}
AuroCheckboxGroup --> AuroCheckbox : contains
note for AuroCheckbox "Custom element for selecting options"
note for AuroCheckboxGroup "Wrapper for AuroCheckbox elements"
Change | Details | Files |
---|---|---|
Added new checkbox component with group functionality |
|
components/checkbox/src/auro-checkbox.js components/checkbox/src/auro-checkbox-group.js components/checkbox/src/auro-checkbox.scss components/checkbox/src/auro-checkbox-group.scss |
Updated build configuration to support checkbox component |
|
package.json rollup.config.mjs |
Added styling and theming support for checkbox component |
|
components/checkbox/src/color.scss components/checkbox/src/colorGroup.scss components/checkbox/src/tokens.scss |
Alaska Airlines Pull Request
27
rollup.config
to add demo's config to bundler (each component should haveindex.js
andapi.js
under/demo
)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
Add a new checkbox component to the auro-formkit, update build scripts to support it, and provide detailed documentation and examples.
New Features:
Enhancements:
Documentation: