Skip to content

Commit

Permalink
Move Tag class widget, AbstractElement class, and `AbstractBlockE…
Browse files Browse the repository at this point in the history
…lement` class to `ui-awesome/html-core` package. (#15)
  • Loading branch information
terabytesoftw committed Mar 31, 2024
1 parent 5b982c6 commit bc6ae50
Show file tree
Hide file tree
Showing 42 changed files with 87 additions and 747 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Change Log

## 0.2.1 Under development
## 0.3.0 March 31, 2024

- Enh #15: Move `Tag` class widget, `AbstractElement` class, and `AbstractBlockElement` class to `ui-awesome/html-core` package (@terabytesoftw)

## 0.2.0 March 22, 2024

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"php": "^8.1",
"ext-mbstring": "*",
"php-forge/awesome-widget": "^0.1.2",
"ui-awesome/html-attribute": "^0.1",
"ui-awesome/html-concern": "^0.1",
"ui-awesome/html-helper": "^0.1",
"ui-awesome/html-attribute": "^0.2",
"ui-awesome/html-concern": "^0.2",
"ui-awesome/html-core":"^0.1",
"ui-awesome/html-helper": "^0.2",
"ui-awesome/html-interop": "^0.1"
},
"require-dev": {
Expand Down
4 changes: 0 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ The **HTML** repository is a powerful tool for generating `HTML` code using `PHP

## List of Tags

### Generic

- [Tag](/docs/Tag.md)

### Document

The `Document` section of a web page contains elements that are used to define the structure and content of the page.
Expand Down
104 changes: 0 additions & 104 deletions docs/Tag.md

This file was deleted.

62 changes: 0 additions & 62 deletions src/Base/AbstractBlockElement.php

This file was deleted.

79 changes: 0 additions & 79 deletions src/Base/AbstractElement.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Document/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace UIAwesome\Html\Document;

use UIAwesome\Html\Base\AbstractBlockElement;
use UIAwesome\Html\Core\Base\AbstractBlockElement;

/**
* The `<body>` `HTML` element represents the content of an HTML document.
Expand Down
2 changes: 1 addition & 1 deletion src/Document/Head.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace UIAwesome\Html\Document;

use UIAwesome\Html\Base\AbstractBlockElement;
use UIAwesome\Html\Core\Base\AbstractBlockElement;

/**
* The `<head>` HTML element contains machine-readable information (metadata) about the document, like its title,
Expand Down
2 changes: 1 addition & 1 deletion src/Document/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace UIAwesome\Html\Document;

use UIAwesome\Html\Base\AbstractBlockElement;
use UIAwesome\Html\Core\Base\AbstractBlockElement;

/**
* The `<html>` HTML element represents the root (top-level element) of an HTML document, so it is also referred to as
Expand Down
2 changes: 1 addition & 1 deletion src/FormControl/Base/AbstractForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
Attribute\HasTitle,
Concern\HasAttributes,
Concern\HasContent,
Core\HTMLBuilder,
FormControl\Input\Hidden,
Helper\HTMLBuilder,
Helper\Validator,
Interop\RenderInterface
};
Expand Down
4 changes: 2 additions & 2 deletions src/FormControl/Base/AbstractSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
Concern\HasLabelCollection,
Concern\HasPrefixCollection,
Concern\HasSuffixCollection,
Core\Tag,
FormControl\Label,
Interop\InputInterface,
Interop\RenderInterface,
Interop\Validator\RequiredInterface,
Interop\ValueInterface,
Tag
Interop\ValueInterface
};

use function array_merge;
Expand Down
4 changes: 2 additions & 2 deletions src/FormControl/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
Concern\HasSuffixCollection,
Concern\HasTagName,
Concern\HasTemplate,
Core\Tag,
Helper\Validator,
Interop\RenderInterface,
Tag
Interop\RenderInterface
};

/**
Expand Down
4 changes: 2 additions & 2 deletions src/FormControl/Input/Base/AbstractButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
Concern\HasPrefixCollection,
Concern\HasSuffixCollection,
Concern\HasTemplate,
Core\Tag,
FormControl\Label,
Helper\Utils,
Helper\Validator,
Interop\RenderInterface,
Tag
Interop\RenderInterface
};

abstract class AbstractButton extends Element implements RenderInterface
Expand Down
4 changes: 2 additions & 2 deletions src/FormControl/Input/Base/AbstractButtonGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
use PHPForge\Widget\Element;
use UIAwesome\Html\{
Concern\HasContainerCollection,
Core\Tag,
FormControl\Input\Button,
FormControl\Input\Reset,
FormControl\Input\Submit,
Interop\RenderInterface,
Tag
Interop\RenderInterface
};

use function implode;
Expand Down
4 changes: 2 additions & 2 deletions src/FormControl/Input/Base/AbstractChoiceList.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
Concern\HasSeparator,
Concern\HasTemplate,
Concern\HasUncheckedCollection,
Core\Tag,
FormControl\Input\Hidden,
FormControl\Label,
Helper\Template,
Expand All @@ -31,8 +32,7 @@
Interop\InputInterface,
Interop\LabelInterface,
Interop\RenderInterface,
Interop\Validator\RequiredInterface,
Tag
Interop\Validator\RequiredInterface
};

use function in_array;
Expand Down
Loading

0 comments on commit bc6ae50

Please sign in to comment.