Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
Toast
component and a correspondingToast__item
subcomponent, along with modifications to the existingNotice
component. The most important changes include the addition of theToast
component class, the creation of theToast__item
subcomponent, and updates to the JSON configuration files for both components.New Components:
source/php/Component/Toast/Toast.php
: Added theToast
component class with an initialization method to set the position class based on the provided data.source/php/Component/Toast__item/Toast__item.php
: Added theToast__item
subcomponent class with an initialization method to manage data and class lists for child components.JSON Configuration Updates:
source/php/Component/Toast/toast.json
: Introduced the JSON configuration for theToast
component, specifying default values, descriptions, types, view, and dependencies.source/php/Component/Toast__item/toast__item.json
: Introduced the JSON configuration for theToast__item
subcomponent, specifying the view and dependencies.Blade Template Additions:
source/php/Component/Toast/toast.blade.php
: Added the Blade template for rendering theToast
component.source/php/Component/Toast__item/toast__item.blade.php
: Added the Blade template for rendering theToast__item
subcomponent using the@notice
directive.Existing Component Modifications:
source/php/Component/Notice/notice.json
: Updated theaction
property type fromarray|false
toarray|boolean
.