Repository navigation
Releases: rkwebforge/bladewell
Releases · rkwebforge/bladewell
Release list
v1.2.1
Fixed
- All form fields (
base.css): text the browser autofilled now follows a switch between light and dark at once. It kept the colour it had when it was filled, so after a switch it could be light text on a light field until the page was reloaded. In an app,php artisan bladewell:add --installedupdatesbase.css.
v1.2.0
Added
- Guidelines for Laravel Boost, in
resources/boost/guidelines: tickbladewell/bladewellwhenphp artisan boost:installorboost:updateasks which packages to include, and your agent's rules (CLAUDE.md,AGENTS.md…) say how to find and add widgets and what not to do with them: no Alpine or inline scripts,readonlyrather thandisabled,confirmon buttons, toasts, the shared row menu, and dates.
v1.1.0
Added
- date-range-picker: on a touch screen, a slide picks the range: press the start day, slide, and the band follows the finger as it follows the mouse; lifting it on a day makes that the end. Two taps still work as before, and a finger that wobbles a little as it taps still taps. A slide that starts on a day picks rather than scrolls the calendar; it still scrolls from anywhere else.
- date-range-picker: a tap that lands in a day's cell beside its round button picks that day, rather than nothing.
- button:
confirm="…", withconfirm-message,confirm-labelandconfirm-cancel, as on the dropdown's items: the question is asked first, and the button only submits, follows its link or runswire:clickonce it's confirmed. A danger button asks in red. It asks in the modal's dialog when the app has the modal widget and in the browser's own box when it doesn't, so the button still requires only the icon. - toast: a
data-toasthook:data-toast="success"anddata-toast-message="Saved."(anddata-toast-title) on any element show that toast when it's clicked, with no script;data-toast="dismiss"clears them all. An unknown kind logs a warning. Thetry-itexample uses it. - select, tags, datepicker, date-range-picker, time-picker, color-picker, slider, otp, checkbox, switch, radio: a
readonlyprop, as the text controls already had: the value shows, can be focused and read out, and is submitted, but can't be changed, and the field takes the same muted look. Select's list, the pickers' calendars and lists, and the colour picker's own picker and swatches don't open or show; tags lose their remove buttons and can't be typed in; a slider's thumbs, the time picker's parts and the OTP boxes ignore the keys and the pointer; checkboxes, switches and radios keep their state when clicked or pressed. Screen readers hear it througharia-readonlywhere the role takes it, and as "read only" in the date and time buttons' names. Withdisabledtoo,disabledwins.wire:modelstill binds: only the user is stopped. - otp: an
infohint under the boxes, which they are described by, as on the verification code. - popover, tabs, tree, clock, command: their scripts' APIs are also on
window(window.popover,window.tabs,window.tree,window.clock,window.command), asmodal,toastandprogressalready were, so a script on the page can call them without an import. Each takes an id or an element:popover.open()and the rest also take the trigger, panel or wrapper element;tabs.open()the tabs element as well as their id;tree.open()andtree.close()an item's id as well as its element;clock.start(),pause()andreset()a stopwatch's id, or anything inside it, as well as the element. What worked before works the same. Each has a newin-scriptsusage note. - dropdown: a script API,
dropdown.open(target),dropdown.close(target)anddropdown.toggle(target), by the trigger's id or element, also onwindow.dropdown; for a shared menu, give the row's trigger. From Livewire:$this->dispatch('dropdown-open', id: '…')and'dropdown-close', as on the popover. - modal, popover, dropdown, tabs, tree, clock, command, progress: a script call (or a Livewire
*-open/*-closeevent) whose target isn't on the page logs aconsole.warnnaming the widget, instead of doing nothing without a word. Nothing throws. - otp, select, textarea: their events are also sent under the colon names the other widgets use:
otp:complete,select:changeandtextarea:resize, with the same details.otp-complete,select-changeandtextarea-resizeare still sent too. - verification-code: a
verification-code:completeevent once the field holds a whole code, with the code asdetail.value, for a form that submits itself, as the OTP has. - dropdown: a shared menu for long tables and lists. Render
<x-widget.dropdown.menu id="…">once with the items, and in each row only<x-widget.dropdown menu="…" :values="['id' => $order->id]">, its trigger. As the menu opens from a row,:nameplaceholders in its links, form actions,confirmquestions,data-*attributes and text take that row's values, soroute('orders.edit', ':id')becomes the row's own link;only-if="can_delete"on an item or divider hides it for rows where that value is false. In the compact table example with 100 rows, that is one copy of the menu instead of 100: 564 KB of HTML becomes 251 KB, rendered in 13 ms instead of 31. Withoutmenu, a dropdown renders as before. Placeholders are never filled intowire:click, so items that call a Livewire component keep a menu per row. New hooks:data-dropdown-valueson the row's wrapper,data-dropdown-sharedon the menu anddata-dropdown-only-ifon items. A trigger whose menu isn't on the page logs a warning. - table: the
compactexample uses the shared row menu. - datepicker: a
futureexample for deadlines and appointments: from today with no upper limit (min="today" :max="false"). The basic example now says the calendar stops at today by default.
Changed
- select, search, command, table: a prop another of these widgets names differently now fails, naming this widget's own, instead of passing through as an attribute that did nothing:
suggest-url,suggest-minandemptyon select (it takessearch-url,search-min-lengthandno-results),search-urlandsearch-min-lengthon search (suggest-url,suggest-min),search-urlandno-resultson command (suggest-url,empty),no-resultson table (empty), andpagination="load-more"on table (infinite). - dropdown, popover: an icon-only trigger without a
labelnow fails naming the dropdown or popover that was written, instead of the button inside it.
v1.0.0
Added
- modal: a bottom sheet (
variant="drawer" side="bottom", ormobile="sheet"on phones) can be swiped down to close, as long as the backdrop may close it too (close-on-backdrop, withoutdisable-close). It follows the finger and closes past a third of its height or on a flick, and springs back otherwise; a list scrolled down inside it scrolls back up first. A small handle at the top shows it can be dragged. The panel that slides carries a newdata-modal-sheethook. - pagination (
drawer, and the table's page sheet): the page sheet swipes down to close the same way, with the same handle. - tooltip, tooltip-cursor: on a touch screen, a tap shows the tooltip on something a tap does nothing else to (plain text, an icon, a chart's bar), and the next tap anywhere hides it. On a button or a link the tap is still the button's or link's own. The cursor tooltip shows beside the finger.
- All widgets (
base.css):tap-targetandtap-target-yutilities. On a touch screen they make a small control take taps from at least 44px around it without drawing it any bigger: both ways for a control on its own, only in height for one in a row, where growing sideways would take its neighbour's taps. Mice and trackpads keep the drawn size. - radio:
variant="segmented"lays the options out as one track with the chosen one raised in it, for two to four short choices, like the tabs' segmented look. It's still a radio group: the arrow keys move the choice, it submits with the form, andwire:model,required, disabled options and errors work as before. Withoutvariant, radios look as they did. - field:
visibleArea()andplaceBeside()exports: the part of the window not covered by an on-screen keyboard, and where a popover goes beside its field within it, its scrolling part cut down to fit when neither side has room for all of it. - color-picker: a new form control,
<x-widget.color-picker>: a hex box that submits#rrggbb, the browser's own colour picker beside it (custom), and optionalswatchesas a radio group named for screen readers. A preview shows the colour with black or white text, whichever reads better.#ABCtidies to#aabbcc, and text that isn't a colour goes back to the last one, saying why. Works withwire:model. - command: a new widget, a command palette.
<x-widget.command>with<x-widget.command.group>s and<x-widget.command.item>s: Ctrl+K (Cmd+K on a Mac), its button or anydata-command-openelement opens a search box over the page that finds pages and actions as you type, by label or keywords, every word in any order. Up and Down move through it while focus stays in the box; Enter or a click opens an item'shref, or clicks it, sowire:clickworks.suggest-urladds your app's results with the same answer the search widget's suggestions take;recentkeeps the last five pages chosen, in this browser only.command-openandcommand-closeevents from Livewire. - icon: 40 more icons, drawn in the set's own style. App and admin: archive, bell-off, chart-bar, database, folder, key, layout-dashboard, log-in, printer, user-plus. Commerce and money: banknote, coins, gift, package, percent, receipt, shopping-bag, shopping-cart, store, truck. Editing and files: clipboard, file-text, folder-open, grip-vertical, list, paperclip, redo, save, scissors, undo. Communication and media: at-sign, camera, headphones, megaphone, message-circle, mic, music, rss, thumbs-up, video. Any other icon still comes from Blade Icons when the app has it.
- popover: a new widget,
<x-widget.popover>: a panel of anything beside a button (a note, a short form, a profile card, links), as a non-modal dialog on the native popover, so a table or a modal never clips it. It flips above when there's no room below; focus moves into it as it opens and back to the button as it closes; Esc, a click outside, Tab past its end or adata-popover-closebutton closes it. The trigger is text, an icon or your own markup;title,widthandalignset the rest.popover.open(),close()andtoggle()from scripts, andpopover-open/popover-closeevents from Livewire. - slider: a new form control,
<x-widget.slider>. One thumb is the native range input, restyled, keeping its keyboard and screen reader support;rangeputs two thumbs on one track for a span such as a price range, each arole="slider"that stops at the other, moved by the arrow keys, Page Up and Down, Home and End, dragging, or a press on the track.min,maxandstep, and aprefixorsuffixon the value shown under the label and read out per thumb, in the page's number format. Range values submit asname[]and bind withwire:model(price.0,price.1). Right to left fills from the right.base.cssgets two@source inline()ranges for where the fill starts. - tags: a new form control,
<x-widget.tags>: free-text tags in a field. Enter or a comma adds what's typed, a pasted list adds each item, leaving the box keeps what's left in it, Backspace removes the last tag and each tag has its own remove button.suggestionsoffers the browser's own list,maxcaps how many, the same tag in another case isn't added twice, and a screen reader hears each change. Submits asname[]and works withwire:model. - tree: a new widget,
<x-widget.tree>with<x-widget.tree.item>s: nodes that open and close, as an ARIA tree. Four looks:list(compact rows under indent guides, like a file explorer),cards(each node a card joined to its children by lines, like a referral network),org(top-down, like an org chart) andcheckbox(ticking a parent ticks everything under it, a dash when only some is; the ticked values submit asname[]and bind withwire:model). A node withchildren-urlfetches its children from your app as HTML the first time it opens, with a spinner meanwhile and a retry if it fails. The arrow keys move through it, Right and Left following the reading direction; a letter jumps to the next node starting with it. Nodes take a label,meta, anicon, anhrefand adetailsslot. Cards and org charts scroll sideways inside themselves. Its lines and indent are inbase.css, from CSS variables you can set on one tree's class:--tree-line(colour),--tree-indentand--tree-gap. Each node renders only its tree's look, about 1.1 KB of HTML.
Changed
- modal, alert, toast, datepicker, date-range-picker: close buttons and the month arrows take taps from 44px around them on touch screens (
tap-target). password, number, captcha, file-upload, select (clear), pagination (page numbers and arrows): the same, in height only (tap-target-y). Nothing looks different, and with a mouse nothing changes. - price-roll: the change badge drops to the next line when a large price and its badge are wider than the screen, instead of running off a phone's edge.
- pagination (
jump): the on-screen keyboard's return key reads Go.
Fixed
- modal, toast, pagination: in a page drawn under the notch and home indicator (
viewport-fit=cover, as in NativePHP and home-screen web apps), drawers, full-screen dialogs, bottom sheets and toasts keep their content and close buttons clear of them. Ordinary pages look exactly as before: the extra space isenv(safe-area-inset-*), which is 0 there. - search, select, phone, datepicker, date-range-picker, time-picker: a list or calendar opened with the on-screen keyboard up no longer opens under it. It goes above the field when the keyboard leaves no room below, and moves back when the keyboard closes. Where neither side has room for the whole list (search, select, phone, time-picker's list), it takes the roomier side and scrolls in what's left, instead of running under the keyboard or off the screen.
v0.3.0
Changed
- All widgets: LarawellUI is now Bladewell. This one release breaks the promise above: the package, commands, config and lock file are renamed, with no aliases for the old names. The widgets, their props and
data-*hooks, and theApp\View\Widget/App\Rulescode they copied into your app are unchanged. To upgrade:composer remove --dev larawellui/larawellui && composer require --dev bladewell/bladewell- Rename
config/larawellui.phptoconfig/bladewell.php, if you published it. - Rename
larawellui.locktobladewell.lockbefore running any command. Otherwisebladewell:add --installedcan't tell which files you've edited and will overwrite them. - Use
php artisan bladewell:add | list | diff | mcpinstead oflarawell:*, and update the command in your MCP client's config. - The site is now https://www.bladewellui.com.
v0.2.3
Added
- icon, and with it every widget's icon props: a name that isn't in the built-in set is drawn by Blade Icons (
blade-ui-kit/blade-icons) when the app has it, so<x-widget.button icon-start="lucide-rocket">or a dropdown item'sicon="lucide-zap"work with any installed set, with the same classes and screen-reader handling. Built-in names still win, nothing new is required, and without Blade Icons an unknown name fails as before, its message now saying how to add one.
v0.2.2
Four fixes and one addition, found while building the starter kit. Nothing is renamed or removed.
Updating
composer update larawellui/larawellui
php artisan larawell:add --installed
npm run buildFiles you haven't edited get the new version; edited ones are skipped and listed, and php artisan larawell:diff shows what changed in them.
Added
- All widgets (
base.css): adata-theme-changinghook for switching theme while the page is open. Set it on<html>for the switch and the widgets' colour transitions are held back, so fields, buttons and table rows change at once instead of each fading at its own speed. The README's Theming section shows the toggle.
Changed
- button (
<x-widget.button.back>): the arrow sits closer to its label (gap-1.5, as on the button, instead ofgap-5), so the two read as one link.
Fixed
- table: changing page, sort or filter in place no longer makes the browser report a Content Security Policy violation for each inline
<style>on the page it fetches, such as the one Laravel's@fontsadds. Those carry the fetched response's nonce, not the current page's; the table now drops them before reading the page. - PHP helpers and validation rules (copied to
App\View\WidgetandApp\Rules): written in Laravel Pint's default style. Before, running Pint in your app reformatted seven of them, which marked them as edited, solarawell:add --installedskipped their updates.
Full changelog: v0.2.1...v0.2.2
v0.2.1
Added
- field: a
data-field-infohook on the hint, which the field's script uses to announce the hint again once an error clears.
Fixed
- All form widgets: a field showing an error is described by the error alone. Before, screen readers also read the hint the error hides, often two sentences saying nearly the same thing, like the birthday picker's "You must be 18 or older." after "You must be at least 18 years old." The hint is announced again once the error clears.
- table: the sortable example's demo data no longer logs a PHP deprecation ("Implicit conversion from float … to int") when it builds its amounts.
Full changelog: https://github.com/rkwebforge/larawellui/blob/main/CHANGELOG.md
v0.2.0
Added
- show-if: a new widget that shows part of a form only while another field has a given value, such as a phone number when Phone is chosen. Hidden, its fields don't submit and their required can't block the form; it starts in the right state after a failed submit, nests, and works inside Livewire.
- breadcrumbs: a new widget showing where a page sits, as a trail of links down to the current page (
aria-current="page"). On phones, one link back up instead. Chevron or slash separators, an icon-only Home that keeps its name, and long labels cut short with the full text on hover. - search: suggestions as you type, like a store's search, with
suggest-url: your endpoint answersGET ?q=…with JSON. Suggestions can carry details, open a page directly (href) or sit under group headings; the typed text shows in bold. Keyboard and screen-reader support follow the ARIA combobox pattern, requests wait for a pause in typing and drop stale answers, and a failed one is announced.suggest-minandmessagestune it. - select:
search-urlsearches your app as you type, for lists too long to send to the page (customers, products). Single or multiple: choices stay picked across searches, the chosen option(s) you pass show before any search, and other options you pass show as a starter list until you type. Searching and failures are shown and announced;search-min-length,searchingandsearch-failedtune it. A Livewirewire:modelmultiple select takes values a search brought. - All widgets: a dark theme in
theme.css, at WCAG AA. Putclass="dark"ordata-theme="dark"on<html>, or on any element for just that part of the page. - Theme:
primary-fill,error-fillandsuccess-fill, for solid backgrounds that carry white text.primary,errorandsuccessare now only for text, borders, focus rings and tints, so dark mode can make those lighter without failing contrast. In light mode each fill follows its base colour unless you set it, andprimary-hoveris now a darker mix ofprimary-fillin both modes, so a theme that changed onlyprimarylooks as it did, hover included. In dark mode the fills are a deeper shade of their own; if you change the brand colour, set the dark pair too. - icon: 24 icons: arrow-down, arrow-up, bell, bookmark, circle-help, circle-x, credit-card, download, external-link, filter, globe, heart, home, link, mail, map-pin, menu, phone, send, settings, share, star, tag and users.
- All widgets: a manifest can name, in
examples-use, other widgets its examples use without needing them itself. The page,/r/{name}.json(examples_use,examples_install),larawell:list --jsonand MCP list them with the command that adds them. - All widgets: every prop has a description on its component's page, in
/r/*.jsonand through MCP. Props that take one of a set of values list them all, and the icon'snamelists every icon.
Changed
- button, checkbox, accordion, date pickers, modal, pagination, progress, stepper, tabs, time-picker: solid backgrounds under white text use the new fill colours, and focus rings leave a surface-coloured gap instead of a white one.
- All widgets: a value a prop doesn't take, like
variant="primay"orsize="xl", now throws and names the values it does take. Before, the widget quietly used its default. If a value comes from your data (a status, a setting), map it to the widget's values with a default first; see "Values from your data" in the README. This covers accordion, alert, button, captcha, clock, dropdown, file-upload, modal, otp, pagination, price-roll, progress, search, select, stepper, switch, table, tabs, time-picker, toast and tooltip. - button:
typetakes only button, submit or reset. - dropdown: an item's
methodtakes only GET, POST, PUT, PATCH or DELETE, in any case. - file-upload:
uploadedneedsupload-url. Without it, a picked file was submitted under the same name as the stored ids and replaced them. - modal: a drawer with
size="full", andmobile="sheet"on a drawer or a full-screen dialog, now throw. They used to be ignored. - table: a row with both
hrefand a details slot throws, because a click can only do one of the two.bulk-methodtakes only GET, POST, PUT, PATCH or DELETE.
Fixed
- field: the required check for the select, date pickers and time picker skips fields inside a disabled fieldset, as the browser's own checks do. Before, a hidden required one could stop the form.
- time-picker: the list and each column now have one Tab stop, the chosen time or else the first that can be picked, which follows focus as the arrow keys move (a roving tabindex). Before, no option could be reached with Tab, and a scrolling list had no keyboard way in.
- table: an expandable row opens from a real Details button in its chevron cell, which carries
aria-expanded. ARIA doesn't allow that on a table row, so screen readers could miss whether it was open. A click anywhere on the row still opens it. - tooltip: around an icon with no text, the focusable wrapper is now an image named by the tooltip (
role="img"). Before, it had a name but no role, which isn't allowed. - file-upload: the button and image uploads no longer give their input two labels, which some screen readers read only half of. The input is named by the field label and the button's text, e.g. "Profile photo, Choose image".
- progress, search: the live-progress and search-form examples use
primary-fillbehind their white text, so they pass contrast in dark mode. - clock: the countdown no longer gets an empty
aria-labelwhen its label is "". - icon, clock, pagination: the icon's
name, the clock'shour12, and the pagination components'paginatorandsegmentedwere missing from the docs,/r/*.jsonand MCP. - stepper: the bars stepper takes the same step arrays as the other steppers (
['label' => …]) instead of failing on them.
Full changelog: https://github.com/rkwebforge/larawellui/blob/main/CHANGELOG.md
v0.1.0
Added
- 34 widgets: accordion, alert, button, captcha, checkbox, clock, date-range-picker, datepicker, dropdown, field, file-upload, icon, modal, number, otp, pagination, password, phone, price-roll, progress, radio, search, select, stepper, switch, table, tabs, text-input, textarea, time-picker, toast, tooltip, tooltip-cursor and verification-code.
larawell:add, which copies widgets and everything they need into your app, with--dry-run,--installedand--force.larawell:list, with--jsonfor tools and AI agents.larawell:diff, which shows how your edited copies differ from the package.larawell:mcp, an MCP server for AI agents: browse the catalogue, see what's installed and edited, and install with a dry run first.larawellui.lock, so updates replace only the files you haven't edited.- Livewire 3 and 4 support, with
wire:modelon every form control.
Full changelog: https://github.com/rkwebforge/larawellui/blob/main/CHANGELOG.md