generated from yii-tools/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfdb276
commit 32b95cd
Showing
24 changed files
with
474 additions
and
215 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ phpunit.xlm | |
|
||
# windows thumbnail cache | ||
Thumbs.db | ||
|
||
# vscode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Change Log | ||
|
||
## 0.1.0 Under development | ||
## 0.1.1 Under development | ||
|
||
## 0.1.0 March 5, 2024 | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,39 @@ | ||
{ | ||
"name": "yii-tools/template", | ||
"name": "ui-awesome/html-interop", | ||
"type": "library", | ||
"description": "template", | ||
"description": "UI Awesome HTML Interop Common Interfaces for PHP.", | ||
"keywords": [ | ||
"template" | ||
"ui-awesome", | ||
"html-interop", | ||
"common", | ||
"interfaces", | ||
"php" | ||
], | ||
"license": "mit", | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"require": { | ||
"php": "^8.1" | ||
}, | ||
"require-dev": { | ||
"maglnet/composer-require-checker": "^4.7", | ||
"phpunit/phpunit": "^10.5", | ||
"roave/infection-static-analysis-plugin": "^1.34", | ||
"symplify/easy-coding-standard": "^12.1", | ||
"vimeo/psalm": "^5.19" | ||
"vimeo/psalm": "^5.20" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Template\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Template\\Tests\\": "tests" | ||
"UIAwesome\\Html\\Interop\\": "src" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-main": "1.0.x-dev" | ||
"dev-main": "0.1-dev" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
"infection/extension-installer": true | ||
} | ||
"sort-packages": true | ||
}, | ||
"scripts": { | ||
"check-dependencies": "composer-require-checker", | ||
"easy-coding-standard": "ecs check", | ||
"mutation": [ | ||
"Composer\\Config::disableProcessTimeout", | ||
"roave-infection-static-analysis-plugin" | ||
], | ||
"psalm": "psalm", | ||
"test": "phpunit" | ||
"psalm": "psalm" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ | |
->withPaths( | ||
[ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
], | ||
) | ||
->withPhpCsFixerSets(perCS20: true) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace UIAwesome\Html\Interop; | ||
|
||
/** | ||
* Provide methods for handling HTML input aria-describedby attribute. | ||
*/ | ||
interface AriaDescribedByInterface | ||
{ | ||
/** | ||
* Set the aria-describedby attribute, which identifies the element(s) that describes the current element. | ||
* | ||
* The aria-describedby attribute is used in WAI-ARIA to provide a relationship between an element and its | ||
* descriptive elements. This helps screen readers and other assistive technologies provide additional context | ||
* about the element. | ||
* | ||
* @param bool|string $value IDs of the descriptive element(s) separated by spaces. | ||
* | ||
* @return static A new instance or clone of the current object with the aria-describedby attribute set. | ||
* | ||
* @link https://www.w3.org/TR/wai-aria-1.1/#aria-describedby | ||
*/ | ||
public function ariaDescribedBy(string|bool $value = true): static; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace UIAwesome\Html\Interop; | ||
|
||
/** | ||
* Provide methods for handling HTML checked value-related attributes and properties. | ||
*/ | ||
interface CheckedInterface | ||
{ | ||
/** | ||
* Set the checked attribute valid for both radio and checkbox types, checked is a Boolean attribute. | ||
* | ||
* If present on a radio type, it indicates that the radio button is the currently selected one in the group of | ||
* same-named radio buttons. If present on a checkbox type, it indicates that the checkbox is checked by default | ||
* (when the page loads). It does not indicate whether this checkbox is currently checked: if the checkbox state | ||
* is changed, this content attribute does not reflect the change. | ||
* | ||
* @param array|bool|float|int|string $value The value of the checked attribute, for matching the value of the | ||
* checkbox or radio input element. | ||
* | ||
* @link https://html.spec.whatwg.org/multipage/input.html#attr-input-checked | ||
* | ||
* @return static A new instance of the current class with the specified checked value. | ||
*/ | ||
public function checked(array|bool|int|float|null|string $value): static; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace UIAwesome\Html\Interop; | ||
|
||
/** | ||
* Provide methods for handling HTML content attributes. | ||
*/ | ||
interface ContentInterface | ||
{ | ||
/** | ||
* Set the `HTML` content value. | ||
* | ||
* @param RenderInterface|string ...$values The `HTML` content value. | ||
* | ||
* @return static A new instance of the current class with the specified content value. | ||
*/ | ||
public function content(string|RenderInterface ...$values): static; | ||
} |
Oops, something went wrong.