diff --git a/CHANGELOG.md b/CHANGELOG.md index 1629f6441..5bf795b11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 14.22.0 - 2024-04-14 + +### Added +- `Text` component for `Cell` + +### Changed +- Popover trigger to hover/active +- Improved component rendering method with backward compatibility + +### Fixed +- Trim profile name/description + ## 14.21.1 - 2024-03-25 ### Fixed diff --git a/src/Platform/Dashboard.php b/src/Platform/Dashboard.php index 4d4c677db..de061a379 100644 --- a/src/Platform/Dashboard.php +++ b/src/Platform/Dashboard.php @@ -21,7 +21,7 @@ class Dashboard /** * ORCHID Version. */ - public const VERSION = '14.21.1'; + public const VERSION = '14.22.0'; /** * @deprecated diff --git a/src/Screen/Components/Cells/Text.php b/src/Screen/Components/Cells/Text.php index 1f87f67a2..12774028c 100644 --- a/src/Screen/Components/Cells/Text.php +++ b/src/Screen/Components/Cells/Text.php @@ -13,14 +13,14 @@ class Text extends Component * * @param mixed $value * @param string|null $title - * @param string|null $description + * @param string|null $text * @param int|null $words * @param int|null $clamp */ public function __construct( protected mixed $value, - protected ?string $title = null, - protected ?string $description = null, + protected ?string $title = null, + protected ?string $text = null, protected ?int $words = 30, protected ?int $clamp = 5, ) { @@ -35,10 +35,10 @@ public function render() { return Blade::render('
@empty(!$title){{ $title }}@endempty - {{ $description }}
', [ - 'class' => $this->clamp ? 'line-clamp-'.$this->clamp : '', - 'title' => $this->title ? Str::of($this->value->getContent($this->title))->words($this->words) : '', - 'description' => Str::of($this->value->getContent($this->description))->words($this->words), + {{ $text }}', [ + 'class' => $this->clamp ? 'line-clamp-' . $this->clamp : '', + 'title' => $this->title ? Str::of($this->value->getContent($this->title))->words($this->words) : '', + 'text' => Str::of($this->value->getContent($this->text))->words($this->words), ]); } }