Major Changes
-
#3342
1e1f6daThanks
@github-actions! - Breaking: Spell out "Prev" as "Previous" across the
API.The
prevTriggerpart is nowpreviousTriggerin carousel, date picker, pagination, scheduler and steps, including
its prop getter, data attribute,idskey and translation key.- <button {...api.getPrevTriggerProps()} /> + <button {...api.getPreviousTriggerProps()} /> - [data-carousel-prev-trigger] { ... } + [data-carousel-previous-trigger] { ... } carousel.machine({ - ids: { prevTrigger: "prev" }, - translations: { prevTrigger: "Previous slide" }, + ids: { previousTrigger: "prev" }, + translations: { previousTrigger: "Previous slide" }, })
Pagination and scheduler rename
translations.prevTriggerLabeltotranslations.previousTriggerLabel.Component Before After Carousel scrollPrev(),canScrollPrevscrollPrevious(),canScrollPreviousDate picker, Scheduler goToPrev()goToPrevious()Pagination goToPrevPage()goToPreviousPage()Steps goToPrevStep(),hasPrevStepgoToPreviousStep(),hasPreviousStepTabs selectPrev()selectPrevious()Tour prev(),hasPrevStepprevious(),hasPreviousStepThe tour's
"prev"action is now"previous", and its trigger rendersdata-type="previous".- actions: [{ label: "Prev", action: "prev" }], + actions: [{ label: "Previous", action: "previous" }], - action: (actions) => actions.prev() + action: (actions) => actions.previous() - translations: { prevStep: "Previous step" } + translations: { previousStep: "Previous step" }
Patch Changes
-
#3342
730ea29Thanks
@github-actions! - - Fix focus, scroll and sync work scheduled for the next
frame running after the component unmounts. -
#3342
12f18abThanks
@github-actions! - - Add resource scheduling: per-resource lanes in each day
column, or one row per resource in the newtimelineview.scheduler.machine({ resources: [ { id: "room-a", title: "Room A" }, { id: "room-b", title: "Room B" }, ], groupBy: "resource", events: [{ id: "1", resourceId: "room-a" /* ... */ }], })
-
Add drop constraints with
canDropEvent, and external drag and drop withdataTransferFormatandonEventReceive. -
Add
getAllDaySegments(days?)to lay out each all-day event as one bar across its days. -
Add
maxAllDayRowsto cap the all-day row, with per-day counts fromgetAllDayOverflow(). -
Use
CalendarDateTimefor dates in the scheduler API. -
Fix dragging or resizing an all-day event collapsing it into a zero-length timed event.
-
Fix dragging an event edge past the opposite edge inverting the event.
-
Fix multi-day and midnight-crossing events missing from, or duplicated on, the visible days.
-
Fix events on different resources being treated as conflicting.
-
Fix long all-day titles widening the column, and stacked all-day bars spilling into the time grid.
-
Date utils: Return the date type passed in from the alignment, pagination and week/month helpers.
-
-
Updated dependencies [
a80b307,
12f18ab]:- @zag-js/dom-query@2.0.0-next.4
- @zag-js/date-utils@2.0.0-next.4
- @zag-js/core@2.0.0-next.4
- @zag-js/anatomy@2.0.0-next.4
- @zag-js/types@2.0.0-next.4
- @zag-js/utils@2.0.0-next.4