Skip to content

V1.4#113

Open
KrejciFili wants to merge 12 commits intomainfrom
v1.4
Open

V1.4#113
KrejciFili wants to merge 12 commits intomainfrom
v1.4

Conversation

@KrejciFili
Copy link
Copy Markdown
Member

No description provided.

danielungu and others added 8 commits February 27, 2026 10:53
…ontrols (e.g., TextArea, TextInput).

- Improve checkbox and radio list rendering:
  - Refactor inline check classes and layout logic.
  - Add support for specifying items per row.
- Extend button customization:
  - Introduce `getFormButtonClass()` for unified button styling.
  - Add rounded styling utilities (via `Helper\ButtonRounded`).
- Ensure consistency in `assert()` usage by adopting global function.
- Enhance CSS for better input alignment, floating labels, and button styles.
- Refactor test layouts to align with new rendering logic.
- Add new unit tests for quick copy functionality and items-per-row rendering.
- Introduce `QuickCopyable` interface for streamlined button handling.
- Update `TextArea` and `TextInput` to implement `QuickCopyable`.
- Replace `method_exists` checks with `instanceof QuickCopyable`.
- Optimize imports and simplify `Duplicator` class for cleaner codebase.
- Replace redundant recursive `getValue` call with corrected logic.
- Optimize `signalReceived` by updating `assert()` and using `SignalDial` directly.
- Add `controlClass` initialization for consistent styling.
- Refine `setPrompt` to accept nullable values.
->name($this->getName())
->class('btn btn-' . $color . ($input->getAttribute('class') ? ' ' . $input->getAttribute('class') : ''))
->addHtml($this->icon ? \Kravcik\LatteFontAwesomeIcon\Extension::render($this->icon) : '')
->class('btn' . $this->getFormButtonClass() . ' px-4 btn-' . $color . (trim((string) $input->getAttribute('class')) !== '' ? ' ' . $input->getAttribute('class') : ''))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vyhezčit... trim(string.. celý implode a pak trim?

$button = Html::el('button')
->name($this->getName())
->class('btn rounded-pill px-4 ' . $input->getAttribute('class') . ' btn-' . $color)
->class('btn' . $this->getFormButtonClass() . ' px-4' . (trim((string) $input->getAttribute('class')) !== '' ? ' ' . $input->getAttribute('class') : '') . ' btn-' . $color)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

humpolácký

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants