Skip to content

Releases: CodeWithDennis/filament-advanced-choice

v2.2.0

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 04 Aug 19:00
af88c37

Two UI improvements to the choice fields.

Pointer cursor by default

Every option is clickable across its whole surface, but the pointer cursor used to be opt-in through cursorPointer(). Fields that never called it kept the text cursor, so an option read as if it were not clickable — and a panel ended up inconsistent depending on which call sites remembered the method.

All eight components now show a pointer cursor out of the box, and defaultCursor() is the explicit opt-out:

CheckboxCard::make('delivery_type')
    ->options(DeliveryTypeEnum::class)
    ->defaultCursor();

Both methods accept a bool or a Closure. defaultCursor() negates closures lazily, so they are still evaluated at render time. Disabled options keep cursor-not-allowed in both modes.

The cursor also reaches the inputs now. A form control does not inherit the cursor from its <label>, so in hiddenInputs() mode — where the card layouts stretch a transparent input across the whole option — the pointer never showed anywhere on the card. All eight views put cursor-[inherit] on both the overlay and the native input.

⚠️ Behaviour change

Fields render their options with a pointer cursor unless defaultCursor() is called. This is a visual default only: no method was removed, renamed or re-signatured, and cursorPointer() behaves exactly as before. There was no way to opt out prior to this release, so no existing code can be carrying an opt-out that this flips — which is why it ships as a minor.

Thinner checked ring on cards

The card layouts drew the checked state as a 2px outline at -1px offset. Because an outline paints outward from its offset line, that ring covered the 1px border and spilled 1px outside the card, so a checked option read noticeably heavier than its unchecked neighbours.

The checked outline is now 1px at -1px offset, landing exactly on the border edge: checked and unchecked cards carry the same weight and only the colour changes. Focus rings scale down to 2px and are pulled inside the card, so a focused option still reads one step heavier than a merely checked one.

Affects RadioCard, RadioStackedCard, CheckboxCard and CheckboxStackedCard. The list and table layouts are untouched — they tint the background rather than draw an outline.

Upgrading

composer update codewithdennis/filament-advanced-choice
npm run build

The rebuild is required for your Filament theme to pick up the changed utilities.

Full Changelog: v2.1.2...v2.2.0

v2.1.2

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 29 Jul 08:58
6340451

What's Changed

Full Changelog: v2.1.0...v2.1.2

v2.1.1

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 16 Jun 15:53
847a604

What's Changed

Full Changelog: v2.0.1...v2.1.1

v2.1.0

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 08 May 14:27
847a604

What's Changed

Full Changelog: v2.0.1...v2.1.0

v2.1.0

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 03 May 09:56
ee245f5

What's Changed

  • feat: add not-allowed cursor on disabled options by @shaheenfawzy in #9
  • feat: add cursorPointer() opt-in for pointer cursor on hover by @shaheenfawzy in #10

New Contributors

Full Changelog: v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 17 Apr 19:21
1543cbe

What's Changed

Full Changelog: v1.0.6...v2.0.0

v1.0.6

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 25 Jan 13:52
71ed75f

What's Changed

  • Resolved an issue where form components within a repeater weren’t functioning as expected.

v1.0.5

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 29 Aug 17:45
6d0809b

What's Changed

  • Add hidden input icon configuration

v1.0.4

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 29 Aug 17:15
e794aa6

What's Changed

  • Update checkbox and radio cards outline style to 2

v1.0.3

Choose a tag to compare

@CodeWithDennis CodeWithDennis released this 28 Aug 11:15
0cff6e8

What's Changed

  • Update radio components with new input attribute handling