@react-spectrum/list 3.0.0-nightly.3216 → 3.0.0-nightly.3222

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- .react-spectrum-ListView_d68562{box-sizing:border-box;border-color:var(--spectrum-alias-border-color-mid,var(--spectrum-global-color-gray-300));border-style:solid;border-width:var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));vertical-align:var(--spectrum-table-cell-vertical-alignment,top);border-collapse:separate;border-spacing:0;background-color:var(--spectrum-global-color-gray-50);-webkit-user-select:none;user-select:none;outline:0;padding:0;position:relative;overflow:auto;transform:translate(0,0)}.react-spectrum-ListView_d68562 .react-spectrum-ListView-row_d68562{outline:0}[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{left:0}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after,[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{right:0}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{left:0}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{content:"";z-index:3;pointer-events:none;display:block;position:absolute;top:0;bottom:0}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-next-selected_d68562:after{box-shadow:inset 0 -1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562{background-color:var(--spectrum-table-row-background-color-selected,var(--spectrum-alias-highlight-selected))}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.is-hovered_d68562,.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.is-active_d68562{background-color:var(--spectrum-table-row-background-color-selected-hover,var(--spectrum-alias-highlight-selected-hover))}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562:after{box-shadow:inset 1px 0 0 0 var(--spectrum-global-color-blue-500),inset -1px 0 0 0 var(--spectrum-global-color-blue-500),inset 0 -1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.react-spectrum-ListViewItem--firstRow_d68562:after{box-shadow:inset 1px 0 0 0 var(--spectrum-global-color-blue-500),inset -1px 0 0 0 var(--spectrum-global-color-blue-500),inset 0 -1px 0 0 var(--spectrum-global-color-blue-500),inset 0 1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.react-spectrum-ListViewItem--lastRow_d68562:after{box-shadow:inset 1px 0 0 0 var(--spectrum-global-color-blue-500),inset -1px 0 0 0 var(--spectrum-global-color-blue-500),inset 0 -1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562:not(.is-selected_d68562):not(.is-next-selected_d68562):not(.react-spectrum-ListViewItem--isFlushBottom_d68562):after{box-shadow:inset 0 -1px 0 0 var(--spectrum-table-cell-border-color,var(--spectrum-global-color-gray-300))}[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after{border-top-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after,[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after{border-top-right-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after{border-top-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after{border-bottom-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after,[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after{border-bottom-right-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after{border-bottom-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}.react-spectrum-ListView-row_d68562{cursor:default}[dir=ltr] .react-spectrum-ListView-row_d68562.focus-ring_d68562:before{left:0}[dir=rtl] .react-spectrum-ListView-row_d68562.focus-ring_d68562:before{right:0}.react-spectrum-ListView-row_d68562.focus-ring_d68562:before{content:"";width:3px;z-index:4;background:var(--spectrum-selectlist-option-focus-indicator-color,var(--spectrum-alias-border-color-focus));position:absolute;top:0;bottom:0}.react-spectrum-ListView--quiet_d68562{background-color:var(--spectrum-alias-background-color-transparent,transparent);border-radius:0;border-width:0}.react-spectrum-ListViewItem_d68562{display:-ms-grid;box-sizing:border-box;font-size:var(--spectrum-alias-font-size-default,var(--spectrum-global-dimension-font-size-100));font-weight:var(--spectrum-global-font-weight-regular,400);line-height:calc(var(--spectrum-alias-font-size-default,var(--spectrum-global-dimension-font-size-100))*var(--spectrum-alias-body-text-line-height,var(--spectrum-global-font-line-height-medium)) - 1px);padding:var(--spectrum-global-dimension-size-85)var(--spectrum-global-dimension-size-160);color:var(--spectrum-alias-text-color,var(--spectrum-global-color-gray-800));min-height:var(--spectrum-global-dimension-size-500);outline:0;display:grid;position:relative}.react-spectrum-ListViewItem_d68562.is-hovered_d68562,.react-spectrum-ListViewItem_d68562.is-focused_d68562,.react-spectrum-ListViewItem_d68562.focus-ring_d68562{background-color:var(--spectrum-table-row-background-color-hover,var(--spectrum-alias-highlight-hover))}.react-spectrum-ListViewItem_d68562.is-active_d68562{background-color:var(--spectrum-table-row-background-color-down,var(--spectrum-alias-highlight-active))}.react-spectrum-ListViewItem_d68562.is-selected_d68562,.react-spectrum-ListViewItem_d68562.is-selected_d68562.is-hovered_d68562,.react-spectrum-ListViewItem_d68562.is-selected_d68562.is-active_d68562{background-color:var(--spectrum-table-row-background-color-hover,var(--spectrum-alias-highlight-hover))}.react-spectrum-ListViewItem_d68562.is-selected_d68562.focus-ring_d68562{background-color:var(--spectrum-table-row-background-color-selected-key-focus,var(--spectrum-alias-highlight-selected-hover))}.react-spectrum-ListViewItem_d68562.has-checkbox_d68562{padding-top:0;padding-bottom:0}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-grid_d68562{display:-ms-grid;-ms-grid-columns:auto auto auto auto 1fr auto auto;-ms-grid-rows:1fr auto;grid-template:"draghandle checkbox icon image content actions actionmenu chevron"1fr"draghandle checkbox icon image description actions actionmenu chevron"/auto auto auto auto 1fr auto auto;align-items:center;display:grid}[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562{padding-left:var(--spectrum-global-dimension-size-40)}[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562{padding-right:var(--spectrum-global-dimension-size-40)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562{width:var(--spectrum-global-dimension-size-250);padding:var(--spectrum-global-dimension-size-25);grid-area:draghandle;justify-content:center;place-self:stretch stretch;display:flex}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562 .react-spectrum-ListViewItem-draghandle-button_d68562{width:var(--spectrum-global-dimension-size-200);border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));justify-content:center;align-items:center;display:flex}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562 .react-spectrum-ListViewItem-draghandle-button_d68562.focus-ring_d68562{box-shadow:inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus,var(--spectrum-alias-border-color-focus));outline:0}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-checkbox_d68562{-ms-grid-column-align:center;min-height:0;height:100%;grid-area:checkbox;place-items:center}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-checkbox_d68562>span{margin:0}[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-icon_d68562,[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{padding-right:var(--spectrum-global-dimension-size-100)}[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-icon_d68562,[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{padding-left:var(--spectrum-global-dimension-size-100)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-icon_d68562,.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{-ms-grid-column-align:center;grid-area:image;place-items:center}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{border-radius:var(--spectrum-global-dimension-size-25);width:var(--spectrum-global-dimension-size-400);height:var(--spectrum-global-dimension-size-400)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-content_d68562,.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-description_d68562{flex-grow:1}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-content_d68562{grid-area:content}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-description_d68562{grid-area:description}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-actions_d68562{flex-grow:0;flex-shrink:0;grid-area:actions}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-actionmenu_d68562{grid-area:actionmenu}[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-parentIndicator_d68562{padding-left:var(--spectrum-global-dimension-size-75)}[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-parentIndicator_d68562{padding-right:var(--spectrum-global-dimension-size-75)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-parentIndicator_d68562{grid-area:chevron}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562{width:var(--spectrum-global-dimension-size-2400);border:1px solid var(--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));background-color:var(--spectrum-global-color-gray-50)}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-grid_d68562{-ms-grid-columns:auto auto auto 1fr;grid-template-columns:auto auto auto 1fr;grid-template-areas:"icon image content.badge""icon image description.badge"}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-badge_d68562{color:#fff;background:var(--spectrum-global-color-blue-400);border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));grid-area:badge;padding:0 8px}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562{position:relative}[dir=ltr] .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562:after{left:4px}[dir=rtl] .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562:after{right:4px}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562:after{content:"";z-index:-1;width:100%;height:100%;border:1px solid var(--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));background-color:var(--spectrum-global-color-gray-50);display:block;position:absolute;top:4px}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-actions_d68562,.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-actionmenu_d68562{display:none}[dir=ltr] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-top-left-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562,[dir=ltr] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-top-right-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-top-left-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=ltr] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-bottom-left-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562,[dir=ltr] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-bottom-right-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-bottom-left-radius:var(--spectrum-listview-item-start-end-border-radius)}.react-spectrum-ListView--compact_d68562 .react-spectrum-ListViewItem_d68562{padding-top:var(--spectrum-global-dimension-size-50);padding-bottom:var(--spectrum-global-dimension-size-50);min-height:var(--spectrum-global-dimension-size-400)}.react-spectrum-ListView--spacious_d68562 .react-spectrum-ListViewItem_d68562{padding-top:var(--spectrum-global-dimension-size-100);padding-bottom:var(--spectrum-global-dimension-size-100);min-height:var(--spectrum-global-dimension-size-600)}[dir=ltr] .react-spectrum-ListView--draggable_d68562 .react-spectrum-ListViewItem_d68562{padding-left:0}[dir=rtl] .react-spectrum-ListView--draggable_d68562 .react-spectrum-ListViewItem_d68562{padding-right:0}[dir=ltr] .react-spectrum-ListViewItem--draggable_d68562 .react-spectrum-ListViewItem-checkbox_d68562 input{left:0}[dir=rtl] .react-spectrum-ListViewItem--draggable_d68562 .react-spectrum-ListViewItem-checkbox_d68562 input{right:0}.react-spectrum-ListView-centeredWrapper_d68562{width:100%;height:100%;justify-content:center;align-items:center;display:flex}.react-spectrum-ListView-centeredWrapper_d68562.react-spectrum-ListView-centeredWrapper--loadingMore_d68562{padding-top:var(--spectrum-global-dimension-size-50)}
1
+ .react-spectrum-ListView_d68562{box-sizing:border-box;border-color:var(--spectrum-alias-border-color-mid,var(--spectrum-global-color-gray-300));border-style:solid;border-width:var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));vertical-align:var(--spectrum-table-cell-vertical-alignment,top);border-collapse:separate;border-spacing:0;background-color:var(--spectrum-global-color-gray-50);-webkit-user-select:none;user-select:none;outline:0;padding:0;position:relative;overflow:auto;transform:translate(0,0)}.react-spectrum-ListView_d68562 .react-spectrum-ListView-row_d68562{outline:0}[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{left:0}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after,[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{right:0}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{left:0}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562:after{content:"";z-index:3;pointer-events:none;display:block;position:absolute;top:0;bottom:0}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-next-selected_d68562:after{box-shadow:inset 0 -1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562{background-color:var(--spectrum-table-row-background-color-selected,var(--spectrum-alias-highlight-selected))}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.is-hovered_d68562,.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.is-active_d68562{background-color:var(--spectrum-table-row-background-color-selected-hover,var(--spectrum-alias-highlight-selected-hover))}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.focus-ring_d68562{background-color:var(--spectrum-table-row-background-color-selected-key-focus,var(--spectrum-alias-highlight-selected-hover))}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562:after{box-shadow:inset 1px 0 0 0 var(--spectrum-global-color-blue-500),inset -1px 0 0 0 var(--spectrum-global-color-blue-500),inset 0 -1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.react-spectrum-ListViewItem--firstRow_d68562:after{box-shadow:inset 1px 0 0 0 var(--spectrum-global-color-blue-500),inset -1px 0 0 0 var(--spectrum-global-color-blue-500),inset 0 -1px 0 0 var(--spectrum-global-color-blue-500),inset 0 1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562 .react-spectrum-ListViewItem_d68562.is-selected_d68562.react-spectrum-ListViewItem--lastRow_d68562:after{box-shadow:inset 1px 0 0 0 var(--spectrum-global-color-blue-500),inset -1px 0 0 0 var(--spectrum-global-color-blue-500),inset 0 -1px 0 0 var(--spectrum-global-color-blue-500)}.react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562:not(.is-selected_d68562):not(.is-next-selected_d68562):not(.react-spectrum-ListViewItem--isFlushBottom_d68562):after{box-shadow:inset 0 -1px 0 0 var(--spectrum-table-cell-border-color,var(--spectrum-global-color-gray-300))}[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after{border-top-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after,[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after{border-top-right-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562) .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem--firstRow_d68562.is-selected_d68562:after{border-top-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after{border-bottom-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after,[dir=ltr] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after{border-bottom-right-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}[dir=rtl] .react-spectrum-ListView_d68562.react-spectrum-ListView--emphasized_d68562:not(.react-spectrum-ListView--quiet_d68562):not(.react-spectrum-ListView--loadingMore_d68562) .react-spectrum-ListViewItem--lastRow_d68562.react-spectrum-ListViewItem--isFlushBottom_d68562.is-selected_d68562:after{border-bottom-left-radius:calc(var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50)) - var(--spectrum-alias-border-size-thin,var(--spectrum-global-dimension-static-size-10)))}.react-spectrum-ListView-row_d68562{cursor:default}[dir=ltr] .react-spectrum-ListView-row_d68562.focus-ring_d68562:before{left:0}[dir=rtl] .react-spectrum-ListView-row_d68562.focus-ring_d68562:before{right:0}.react-spectrum-ListView-row_d68562.focus-ring_d68562:before{content:"";width:3px;z-index:4;background:var(--spectrum-selectlist-option-focus-indicator-color,var(--spectrum-alias-border-color-focus));position:absolute;top:0;bottom:0}.react-spectrum-ListView--quiet_d68562{background-color:var(--spectrum-alias-background-color-transparent,transparent);border-radius:0;border-width:0}.react-spectrum-ListViewItem_d68562{display:-ms-grid;box-sizing:border-box;font-size:var(--spectrum-alias-font-size-default,var(--spectrum-global-dimension-font-size-100));font-weight:var(--spectrum-global-font-weight-regular,400);line-height:calc(var(--spectrum-alias-font-size-default,var(--spectrum-global-dimension-font-size-100))*var(--spectrum-alias-body-text-line-height,var(--spectrum-global-font-line-height-medium)) - 1px);padding:var(--spectrum-global-dimension-size-85)var(--spectrum-global-dimension-size-160);color:var(--spectrum-alias-text-color,var(--spectrum-global-color-gray-800));min-height:var(--spectrum-global-dimension-size-500);outline:0;display:grid;position:relative}.react-spectrum-ListViewItem_d68562.is-hovered_d68562,.react-spectrum-ListViewItem_d68562.is-focused_d68562,.react-spectrum-ListViewItem_d68562.focus-ring_d68562{background-color:var(--spectrum-table-row-background-color-hover,var(--spectrum-alias-highlight-hover))}.react-spectrum-ListViewItem_d68562.is-active_d68562{background-color:var(--spectrum-table-row-background-color-down,var(--spectrum-alias-highlight-active))}.react-spectrum-ListViewItem_d68562.is-selected_d68562,.react-spectrum-ListViewItem_d68562.is-selected_d68562.is-hovered_d68562,.react-spectrum-ListViewItem_d68562.is-selected_d68562.is-active_d68562{background-color:var(--spectrum-table-row-background-color-hover,var(--spectrum-alias-highlight-hover))}.react-spectrum-ListViewItem_d68562.is-selected_d68562.focus-ring_d68562{background-color:var(--spectrum-table-row-background-color-selected-key-focus,var(--spectrum-alias-highlight-selected-hover))}.react-spectrum-ListViewItem_d68562.has-checkbox_d68562{padding-top:0;padding-bottom:0}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-grid_d68562{display:-ms-grid;-ms-grid-columns:auto auto auto auto 1fr auto auto;-ms-grid-rows:1fr auto;grid-template:"draghandle checkbox icon image content actions actionmenu chevron"1fr"draghandle checkbox icon image description actions actionmenu chevron"/auto auto auto auto 1fr auto auto;align-items:center;display:grid}[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562{padding-left:var(--spectrum-global-dimension-size-40)}[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562{padding-right:var(--spectrum-global-dimension-size-40)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562{width:var(--spectrum-global-dimension-size-250);padding:var(--spectrum-global-dimension-size-25);grid-area:draghandle;justify-content:center;place-self:stretch stretch;display:flex}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562 .react-spectrum-ListViewItem-draghandle-button_d68562{width:var(--spectrum-global-dimension-size-200);border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));justify-content:center;align-items:center;display:flex}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-draghandle-container_d68562 .react-spectrum-ListViewItem-draghandle-button_d68562.focus-ring_d68562{box-shadow:inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus,var(--spectrum-alias-border-color-focus));outline:0}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-checkbox_d68562{-ms-grid-column-align:center;min-height:0;height:100%;grid-area:checkbox;place-items:center}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-checkbox_d68562>span{margin:0}[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-icon_d68562,[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{padding-right:var(--spectrum-global-dimension-size-100)}[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-icon_d68562,[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{padding-left:var(--spectrum-global-dimension-size-100)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-icon_d68562,.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{-ms-grid-column-align:center;grid-area:image;place-items:center}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-image_d68562{border-radius:var(--spectrum-global-dimension-size-25);width:var(--spectrum-global-dimension-size-400);height:var(--spectrum-global-dimension-size-400)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-content_d68562,.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-description_d68562{flex-grow:1}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-content_d68562{grid-area:content}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-description_d68562{grid-area:description}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-actions_d68562{flex-grow:0;flex-shrink:0;grid-area:actions}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-actionmenu_d68562{grid-area:actionmenu}[dir=ltr] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-parentIndicator_d68562{padding-left:var(--spectrum-global-dimension-size-75)}[dir=rtl] .react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-parentIndicator_d68562{padding-right:var(--spectrum-global-dimension-size-75)}.react-spectrum-ListViewItem_d68562 .react-spectrum-ListViewItem-parentIndicator_d68562{grid-area:chevron}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562{width:var(--spectrum-global-dimension-size-2400);border:1px solid var(--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));background-color:var(--spectrum-global-color-gray-50)}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-grid_d68562{-ms-grid-columns:auto auto auto 1fr;grid-template-columns:auto auto auto 1fr;grid-template-areas:"icon image content.badge""icon image description.badge"}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-badge_d68562{color:#fff;background:var(--spectrum-global-color-blue-400);border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));grid-area:badge;padding:0 8px}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562{position:relative}[dir=ltr] .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562:after{left:4px}[dir=rtl] .react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562:after{right:4px}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562.react-spectrum-ListViewItem-dragPreview--multiple_d68562:after{content:"";z-index:-1;width:100%;height:100%;border:1px solid var(--spectrum-dropzone-border-color-selected-hover,var(--spectrum-global-color-blue-400));border-radius:var(--spectrum-alias-border-radius-regular,var(--spectrum-global-dimension-size-50));background-color:var(--spectrum-global-color-gray-50);display:block;position:absolute;top:4px}.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-actions_d68562,.react-spectrum-ListViewItem_d68562.react-spectrum-ListViewItem-dragPreview_d68562 .react-spectrum-ListViewItem-actionmenu_d68562{display:none}[dir=ltr] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-top-left-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562,[dir=ltr] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-top-right-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:first-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-top-left-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=ltr] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-bottom-left-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562,[dir=ltr] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-bottom-right-radius:var(--spectrum-listview-item-start-end-border-radius)}[dir=rtl] div:last-child>div[role=row]>.react-spectrum-ListViewItem_d68562{border-bottom-left-radius:var(--spectrum-listview-item-start-end-border-radius)}.react-spectrum-ListView--compact_d68562 .react-spectrum-ListViewItem_d68562{padding-top:var(--spectrum-global-dimension-size-50);padding-bottom:var(--spectrum-global-dimension-size-50);min-height:var(--spectrum-global-dimension-size-400)}.react-spectrum-ListView--spacious_d68562 .react-spectrum-ListViewItem_d68562{padding-top:var(--spectrum-global-dimension-size-100);padding-bottom:var(--spectrum-global-dimension-size-100);min-height:var(--spectrum-global-dimension-size-600)}[dir=ltr] .react-spectrum-ListView--draggable_d68562 .react-spectrum-ListViewItem_d68562{padding-left:0}[dir=rtl] .react-spectrum-ListView--draggable_d68562 .react-spectrum-ListViewItem_d68562{padding-right:0}[dir=ltr] .react-spectrum-ListViewItem--draggable_d68562 .react-spectrum-ListViewItem-checkbox_d68562 input{left:0}[dir=rtl] .react-spectrum-ListViewItem--draggable_d68562 .react-spectrum-ListViewItem-checkbox_d68562 input{right:0}.react-spectrum-ListView-centeredWrapper_d68562{width:100%;height:100%;justify-content:center;align-items:center;display:flex}.react-spectrum-ListView-centeredWrapper_d68562.react-spectrum-ListView-centeredWrapper--loadingMore_d68562{padding-top:var(--spectrum-global-dimension-size-50)}
package/dist/main.js CHANGED
@@ -45,12 +45,12 @@ $parcel$export($a91790a0cbcae398$exports, "is-next-selected", () => $a91790a0cbc
45
45
  $parcel$export($a91790a0cbcae398$exports, "is-selected", () => $a91790a0cbcae398$export$1e0fb04f31d3c22a, (v) => $a91790a0cbcae398$export$1e0fb04f31d3c22a = v);
46
46
  $parcel$export($a91790a0cbcae398$exports, "is-hovered", () => $a91790a0cbcae398$export$b8813cd5d7824ce7, (v) => $a91790a0cbcae398$export$b8813cd5d7824ce7 = v);
47
47
  $parcel$export($a91790a0cbcae398$exports, "is-active", () => $a91790a0cbcae398$export$20fd0f7cd4e6112f, (v) => $a91790a0cbcae398$export$20fd0f7cd4e6112f = v);
48
+ $parcel$export($a91790a0cbcae398$exports, "focus-ring", () => $a91790a0cbcae398$export$f39a09f249340e2a, (v) => $a91790a0cbcae398$export$f39a09f249340e2a = v);
48
49
  $parcel$export($a91790a0cbcae398$exports, "react-spectrum-ListViewItem--firstRow", () => $a91790a0cbcae398$export$60162f05499b7560, (v) => $a91790a0cbcae398$export$60162f05499b7560 = v);
49
50
  $parcel$export($a91790a0cbcae398$exports, "react-spectrum-ListViewItem--lastRow", () => $a91790a0cbcae398$export$659c081622dc13b0, (v) => $a91790a0cbcae398$export$659c081622dc13b0 = v);
50
51
  $parcel$export($a91790a0cbcae398$exports, "react-spectrum-ListView--quiet", () => $a91790a0cbcae398$export$b01cb9680b0b8d22, (v) => $a91790a0cbcae398$export$b01cb9680b0b8d22 = v);
51
52
  $parcel$export($a91790a0cbcae398$exports, "react-spectrum-ListViewItem--isFlushBottom", () => $a91790a0cbcae398$export$f9ed481cac4d935a, (v) => $a91790a0cbcae398$export$f9ed481cac4d935a = v);
52
53
  $parcel$export($a91790a0cbcae398$exports, "react-spectrum-ListView--loadingMore", () => $a91790a0cbcae398$export$5aa06adeaa92dbca, (v) => $a91790a0cbcae398$export$5aa06adeaa92dbca = v);
53
- $parcel$export($a91790a0cbcae398$exports, "focus-ring", () => $a91790a0cbcae398$export$f39a09f249340e2a, (v) => $a91790a0cbcae398$export$f39a09f249340e2a = v);
54
54
  $parcel$export($a91790a0cbcae398$exports, "is-focused", () => $a91790a0cbcae398$export$e7dc768d35940237, (v) => $a91790a0cbcae398$export$e7dc768d35940237 = v);
55
55
  $parcel$export($a91790a0cbcae398$exports, "has-checkbox", () => $a91790a0cbcae398$export$27f4d14f7fc5b94, (v) => $a91790a0cbcae398$export$27f4d14f7fc5b94 = v);
56
56
  $parcel$export($a91790a0cbcae398$exports, "react-spectrum-ListViewItem-grid", () => $a91790a0cbcae398$export$aaaf83100348d389, (v) => $a91790a0cbcae398$export$aaaf83100348d389 = v);
@@ -81,12 +81,12 @@ var $a91790a0cbcae398$export$53aa811f86efbfad;
81
81
  var $a91790a0cbcae398$export$1e0fb04f31d3c22a;
82
82
  var $a91790a0cbcae398$export$b8813cd5d7824ce7;
83
83
  var $a91790a0cbcae398$export$20fd0f7cd4e6112f;
84
+ var $a91790a0cbcae398$export$f39a09f249340e2a;
84
85
  var $a91790a0cbcae398$export$60162f05499b7560;
85
86
  var $a91790a0cbcae398$export$659c081622dc13b0;
86
87
  var $a91790a0cbcae398$export$b01cb9680b0b8d22;
87
88
  var $a91790a0cbcae398$export$f9ed481cac4d935a;
88
89
  var $a91790a0cbcae398$export$5aa06adeaa92dbca;
89
- var $a91790a0cbcae398$export$f39a09f249340e2a;
90
90
  var $a91790a0cbcae398$export$e7dc768d35940237;
91
91
  var $a91790a0cbcae398$export$27f4d14f7fc5b94;
92
92
  var $a91790a0cbcae398$export$aaaf83100348d389;
@@ -117,12 +117,12 @@ $a91790a0cbcae398$export$53aa811f86efbfad = "is-next-selected_d68562";
117
117
  $a91790a0cbcae398$export$1e0fb04f31d3c22a = "is-selected_d68562";
118
118
  $a91790a0cbcae398$export$b8813cd5d7824ce7 = "is-hovered_d68562";
119
119
  $a91790a0cbcae398$export$20fd0f7cd4e6112f = "is-active_d68562";
120
+ $a91790a0cbcae398$export$f39a09f249340e2a = "focus-ring_d68562";
120
121
  $a91790a0cbcae398$export$60162f05499b7560 = "react-spectrum-ListViewItem--firstRow_d68562";
121
122
  $a91790a0cbcae398$export$659c081622dc13b0 = "react-spectrum-ListViewItem--lastRow_d68562";
122
123
  $a91790a0cbcae398$export$b01cb9680b0b8d22 = "react-spectrum-ListView--quiet_d68562";
123
124
  $a91790a0cbcae398$export$f9ed481cac4d935a = "react-spectrum-ListViewItem--isFlushBottom_d68562";
124
125
  $a91790a0cbcae398$export$5aa06adeaa92dbca = "react-spectrum-ListView--loadingMore_d68562";
125
- $a91790a0cbcae398$export$f39a09f249340e2a = "focus-ring_d68562";
126
126
  $a91790a0cbcae398$export$e7dc768d35940237 = "is-focused_d68562";
127
127
  $a91790a0cbcae398$export$27f4d14f7fc5b94 = "has-checkbox_d68562";
128
128
  $a91790a0cbcae398$export$aaaf83100348d389 = "react-spectrum-ListViewItem-grid_d68562";
@@ -150,14 +150,18 @@ $a91790a0cbcae398$export$6b3b7792abd9e5f4 = "react-spectrum-ListView-centeredWra
150
150
 
151
151
 
152
152
  function $3d665b19f7865ff9$export$905ab40ac2179daa(props) {
153
- let { item: item , itemCount: itemCount , provider: provider , direction: direction } = props;
153
+ let { item: item , itemCount: itemCount , itemHeight: itemHeight , provider: provider , locale: locale } = props;
154
154
  let isDraggingMultiple = itemCount > 1;
155
155
  return(/*#__PURE__*/ ($parcel$interopDefault($k9Du2$react)).createElement($k9Du2$reactspectrumprovider.Provider, {
156
156
  ...provider,
157
+ locale: locale,
157
158
  UNSAFE_style: {
158
- direction: direction
159
+ background: 'none'
159
160
  }
160
161
  }, /*#__PURE__*/ ($parcel$interopDefault($k9Du2$react)).createElement("div", {
162
+ style: {
163
+ height: itemHeight
164
+ },
161
165
  className: $k9Du2$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($a91790a0cbcae398$exports)), 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {
162
166
  'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple
163
167
  })
@@ -606,7 +610,7 @@ function $60684b441be8e84c$var$ListView(props, ref) {
606
610
  let formatMessage = $k9Du2$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($fd0918c0ca138160$exports)));
607
611
  let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
608
612
  let { styleProps: styleProps } = $k9Du2$reactspectrumutils.useStyleProps(props);
609
- let { direction: direction } = $k9Du2$reactariai18n.useLocale();
613
+ let { direction: direction , locale: locale } = $k9Du2$reactariai18n.useLocale();
610
614
  let collator = $k9Du2$reactariai18n.useCollator({
611
615
  usage: 'search',
612
616
  sensitivity: 'base'
@@ -668,11 +672,13 @@ function $60684b441be8e84c$var$ListView(props, ref) {
668
672
  renderPreview (draggingKeys, draggedKey) {
669
673
  let item = state.collection.getItem(draggedKey);
670
674
  let itemCount = draggingKeys.size;
675
+ let itemHeight = layout.getLayoutInfo(draggedKey).rect.height;
671
676
  return(/*#__PURE__*/ ($parcel$interopDefault($k9Du2$react)).createElement($3d665b19f7865ff9$export$905ab40ac2179daa, {
672
677
  item: item,
673
678
  itemCount: itemCount,
679
+ itemHeight: itemHeight,
674
680
  provider: provider,
675
- direction: direction
681
+ locale: locale
676
682
  }));
677
683
  }
678
684
  });
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAyC;AACzC,GAA6C;AAC7C,GAAqD;AACrD,GAA6C;AAC7C,GAAkC;AAClC,GAA6B;AAC7B,GAA4B;AAC5B,GAA2B;AAC3B,GAAuD;AACvD,GAAsD;AACtD,GAAgD;AAChD,GAA4D;AAC5D,GAAsD;AACtD,GAA4B;AAC5B,GAA4B;AAC5B,GAA8B;AAC9B,GAAkD;AAClD,GAAkE;AAClE,GAA+D;AAC/D,GAAsD;AACtD,GAAkD;AAClD,GAAmD;AACnD,GAAqD;AACrD,GAAyD;AACzD,GAAqD;AACrD,GAAwD;AACxD,GAA6D;AAC7D,GAAyD;AACzD,GAAmD;AACnD,GAAmE;AACnE,GAAkD;AAClD,GAAmD;AACnD,GAAoD;AACpD,GAAwD;AACxD,GAAyD;AAC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,QAAA,KAAK,EAAA,CAAC,GAAG,uBAAU,CAAC,yCAAe;IACxC,MAAM,oEACH,CAAG;QACF,IAAI,EAAC,CAAK;QACV,CAAa,gBAAE,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC;QACxC,SAAS,EACP,oCAAU,CACR,gEAAU,EACV,CAAyC,0CACzC,CAAC;YACC,CAAsD,uDAAE,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC;QACnF,CAAC;0EAEJ,CAAG;QAAC,IAAI,EAAC,CAAU;OACjB,QAAQ;AAIjB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAS,iBAAG,sCAAK,CAAC,UAAU,CAAC,8BAAQ","sources":["packages/@react-spectrum/list/src/index.ts","packages/@react-spectrum/list/src/ListView.tsx","packages/@react-spectrum/list/src/DragPreview.tsx","packages/@react-spectrum/list/src/listview.css","packages/@react-spectrum/list/intl/*.js","packages/@react-spectrum/list/intl/ar-AE.json","packages/@react-spectrum/list/intl/bg-BG.json","packages/@react-spectrum/list/intl/cs-CZ.json","packages/@react-spectrum/list/intl/da-DK.json","packages/@react-spectrum/list/intl/de-DE.json","packages/@react-spectrum/list/intl/el-GR.json","packages/@react-spectrum/list/intl/en-US.json","packages/@react-spectrum/list/intl/es-ES.json","packages/@react-spectrum/list/intl/et-EE.json","packages/@react-spectrum/list/intl/fi-FI.json","packages/@react-spectrum/list/intl/fr-FR.json","packages/@react-spectrum/list/intl/he-IL.json","packages/@react-spectrum/list/intl/hr-HR.json","packages/@react-spectrum/list/intl/hu-HU.json","packages/@react-spectrum/list/intl/it-IT.json","packages/@react-spectrum/list/intl/ja-JP.json","packages/@react-spectrum/list/intl/ko-KR.json","packages/@react-spectrum/list/intl/lt-LT.json","packages/@react-spectrum/list/intl/lv-LV.json","packages/@react-spectrum/list/intl/nb-NO.json","packages/@react-spectrum/list/intl/nl-NL.json","packages/@react-spectrum/list/intl/pl-PL.json","packages/@react-spectrum/list/intl/pt-BR.json","packages/@react-spectrum/list/intl/pt-PT.json","packages/@react-spectrum/list/intl/ro-RO.json","packages/@react-spectrum/list/intl/ru-RU.json","packages/@react-spectrum/list/intl/sk-SK.json","packages/@react-spectrum/list/intl/sl-SI.json","packages/@react-spectrum/list/intl/sr-SP.json","packages/@react-spectrum/list/intl/sv-SE.json","packages/@react-spectrum/list/intl/tr-TR.json","packages/@react-spectrum/list/intl/uk-UA.json","packages/@react-spectrum/list/intl/zh-CN.json","packages/@react-spectrum/list/intl/zh-TW.json","packages/@react-spectrum/list/src/ListViewItem.tsx"],"sourcesContent":["export {ListView} from './ListView';\nexport {Item} from '@react-stately/collections';\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n AriaLabelingProps,\n AsyncLoadable,\n CollectionBase,\n DOMProps,\n DOMRef,\n LoadingState,\n MultipleSelection,\n SpectrumSelectionProps,\n StyleProps\n} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport type {DraggableCollectionState} from '@react-stately/dnd';\nimport {DragHooks} from '@react-spectrum/dnd';\nimport {DragPreview} from './DragPreview';\nimport {GridCollection, GridState, useGridState} from '@react-stately/grid';\nimport {GridKeyboardDelegate, useGrid} from '@react-aria/grid';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListLayout} from '@react-stately/layout';\nimport {ListState, useListState} from '@react-stately/list';\nimport listStyles from './listview.css';\nimport {ListViewItem} from './ListViewItem';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useContext, useMemo, useRef} from 'react';\nimport {useCollator, useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useProvider} from '@react-spectrum/provider';\nimport {Virtualizer} from '@react-aria/virtualizer';\n\ninterface ListViewContextValue<T> {\n state: GridState<T, GridCollection<any>>,\n keyboardDelegate: GridKeyboardDelegate<T, GridCollection<any>>,\n dragState: DraggableCollectionState,\n onAction:(key: string) => void,\n isListDraggable: boolean,\n layout: ListLayout<T>\n}\n\nexport const ListViewContext = React.createContext<ListViewContextValue<unknown>>(null);\n\nconst ROW_HEIGHTS = {\n compact: {\n medium: 32,\n large: 40\n },\n regular: {\n medium: 40,\n large: 50\n },\n spacious: {\n medium: 48,\n large: 60\n }\n};\n\nexport function useListLayout<T>(state: ListState<T>, density: ListViewProps<T>['density']) {\n let {scale} = useProvider();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let isEmpty = state.collection.size === 0;\n let layout = useMemo(() =>\n new ListLayout<T>({\n estimatedRowHeight: ROW_HEIGHTS[density][scale],\n padding: 0,\n collator,\n loaderHeight: isEmpty ? null : ROW_HEIGHTS[density][scale]\n })\n , [collator, scale, density, isEmpty]);\n\n layout.collection = state.collection;\n layout.disabledKeys = state.disabledKeys;\n return layout;\n}\n\ninterface ListViewProps<T> extends CollectionBase<T>, DOMProps, AriaLabelingProps, StyleProps, MultipleSelection, SpectrumSelectionProps, Omit<AsyncLoadable, 'isLoading'> {\n /**\n * Sets the amount of vertical padding within each cell.\n * @default 'regular'\n */\n density?: 'compact' | 'regular' | 'spacious',\n /** Whether the ListView should be displayed with a quiet style. */\n isQuiet?: boolean,\n /** The current loading state of the ListView. Determines whether or not the progress circle should be shown. */\n loadingState?: LoadingState,\n /** Sets what the ListView should render when there is no content to display. */\n renderEmptyState?: () => JSX.Element,\n /**\n * The duration of animated layout changes, in milliseconds. Used by the Virtualizer.\n * @default 0\n */\n transitionDuration?: number,\n /**\n * Handler that is called when a user performs an action on an item. The exact user event depends on\n * the collection's `selectionBehavior` prop and the interaction modality.\n */\n onAction?: (key: string) => void,\n /**\n * The drag hooks returned by `useDragHooks` used to enable drag and drop behavior for the ListView. See the\n * [docs](https://react-spectrum.adobe.com/react-spectrum/useDragHooks.html) for more info.\n */\n dragHooks?: DragHooks\n}\n\nfunction ListView<T extends object>(props: ListViewProps<T>, ref: DOMRef<HTMLDivElement>) {\n let {\n density = 'regular',\n onLoadMore,\n loadingState,\n isQuiet,\n transitionDuration = 0,\n onAction,\n dragHooks\n } = props;\n let isListDraggable = !!dragHooks;\n let dragHooksProvided = useRef(isListDraggable);\n if (dragHooksProvided.current !== isListDraggable) {\n console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n }\n let domRef = useDOMRef(ref);\n let {collection} = useListState(props);\n let formatMessage = useMessageFormatter(intlMessages);\n let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n\n let {styleProps} = useStyleProps(props);\n let {direction} = useLocale();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let gridCollection = useMemo(() => new GridCollection({\n columnCount: 1,\n items: [...collection].map(item => ({\n ...item,\n hasChildNodes: true,\n childNodes: [{\n key: `cell-${item.key}`,\n type: 'cell',\n index: 0,\n value: null,\n level: 0,\n rendered: null,\n textValue: item.textValue,\n hasChildNodes: false,\n childNodes: []\n }]\n }))\n }), [collection]);\n let state = useGridState({\n ...props,\n collection: gridCollection,\n focusMode: 'cell',\n selectionBehavior: props.selectionStyle === 'highlight' ? 'replace' : 'toggle'\n });\n let layout = useListLayout(state, props.density || 'regular');\n let keyboardDelegate = useMemo(() => new GridKeyboardDelegate({\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n ref: domRef,\n direction,\n collator,\n // Focus the ListView cell instead of the row so that focus doesn't change with left/right arrow keys when there aren't any\n // focusable children in the cell.\n focusMode: 'cell'\n }), [state, domRef, direction, collator]);\n\n let provider = useProvider();\n let dragState: DraggableCollectionState;\n if (isListDraggable) {\n dragState = dragHooks.useDraggableCollectionState({\n collection: state.collection,\n selectionManager: state.selectionManager,\n renderPreview(draggingKeys, draggedKey) {\n let item = state.collection.getItem(draggedKey);\n let itemCount = draggingKeys.size;\n return <DragPreview item={item} itemCount={itemCount} provider={provider} direction={direction} />;\n }\n });\n }\n\n let {gridProps} = useGrid({\n ...props,\n isVirtualized: true,\n keyboardDelegate\n }, state, domRef);\n\n // Sync loading state into the layout.\n layout.isLoading = isLoading;\n\n let focusedKey = state.selectionManager.focusedKey;\n let focusedItem = gridCollection.getItem(state.selectionManager.focusedKey);\n if (focusedItem?.parentKey != null) {\n focusedKey = focusedItem.parentKey;\n }\n\n return (\n <ListViewContext.Provider value={{state, keyboardDelegate, dragState, onAction, isListDraggable, layout}}>\n <Virtualizer\n {...gridProps}\n {...styleProps}\n isLoading={isLoading}\n onLoadMore={onLoadMore}\n ref={domRef}\n focusedKey={focusedKey}\n scrollDirection=\"vertical\"\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView',\n `react-spectrum-ListView--${density}`,\n 'react-spectrum-ListView--emphasized',\n {\n 'react-spectrum-ListView--quiet': isQuiet,\n 'react-spectrum-ListView--draggable': isListDraggable,\n 'react-spectrum-ListView--loadingMore': loadingState === 'loadingMore'\n },\n styleProps.className\n )\n }\n layout={layout}\n collection={gridCollection}\n transitionDuration={transitionDuration}>\n {(type, item) => {\n if (type === 'item') {\n return (\n <ListViewItem item={item} isEmphasized dragHooks={dragHooks} />\n );\n } else if (type === 'loader') {\n return (\n <CenteredWrapper>\n <ProgressCircle\n isIndeterminate\n aria-label={state.collection.size > 0 ? formatMessage('loadingMore') : formatMessage('loading')} />\n </CenteredWrapper>\n );\n } else if (type === 'placeholder') {\n let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;\n if (emptyState == null) {\n return null;\n }\n\n return (\n <CenteredWrapper>\n {emptyState}\n </CenteredWrapper>\n );\n }\n\n }}\n </Virtualizer>\n </ListViewContext.Provider>\n );\n}\n\nfunction CenteredWrapper({children}) {\n let {state} = useContext(ListViewContext);\n return (\n <div\n role=\"row\"\n aria-rowindex={state.collection.size + 1}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-centeredWrapper',\n {\n 'react-spectrum-ListView-centeredWrapper--loadingMore': state.collection.size > 0\n }\n )}>\n <div role=\"gridcell\">\n {children}\n </div>\n </div>\n );\n}\n\n/**\n * Lists display a linear collection of data. They allow users to quickly scan, sort, compare, and take action on large amounts of data.\n */\nconst _ListView = React.forwardRef(ListView) as <T>(props: ListViewProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ListView as ListView};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {classNames, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {Direction} from '@react-types/shared';\nimport {Grid} from '@react-spectrum/layout';\nimport {GridNode} from '@react-types/grid';\nimport listStyles from './listview.css';\nimport {Provider} from '@react-spectrum/provider';\nimport {ProviderContext} from '@react-types/provider';\nimport React from 'react';\n\ninterface DragPreviewProps {\n item: GridNode<any>,\n itemCount: number,\n provider: ProviderContext,\n direction: Direction\n}\n\nexport function DragPreview(props: DragPreviewProps) {\n let {\n item,\n itemCount,\n provider,\n direction\n } = props;\n\n let isDraggingMultiple = itemCount > 1;\n\n return (\n <Provider\n {...provider}\n UNSAFE_style={{direction}}>\n <div className={classNames(listStyles, 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple})}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n {isDraggingMultiple &&\n <div className={classNames(listStyles, 'react-spectrum-ListViewItem-badge')}>{itemCount}</div>\n }\n </SlotProvider>\n </Grid>\n </div>\n </Provider>\n );\n}\n","\n:root {\n --spectrum-listview-item-compact-padding-y: var(--spectrum-global-dimension-size-50);\n --spectrum-listview-item-regular-padding-y: var(--spectrum-global-dimension-size-85);\n --spectrum-listview-item-spacious-padding-y: var(--spectrum-global-dimension-size-100);\n --spectrum-listview-border-width: var(--spectrum-table-border-size, var(--spectrum-alias-border-size-thin));\n --spectrum-listview-border-radius: var(--spectrum-table-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-listview-item-border-radius: calc(var(--spectrum-listview-border-radius) - var(--spectrum-listview-border-width));\n --spectrum-listview-row-sticky-focus-indicator-width: 3px;\n}\n\n.react-spectrum-ListView {\n box-sizing: border-box;\n border-color: var(--spectrum-table-border-color, var(--spectrum-alias-border-color-mid));\n border-style: solid;\n position: relative;\n border-width: var(--spectrum-listview-border-width);\n border-radius: var(--spectrum-listview-border-radius);\n overflow: auto;\n vertical-align: var(--spectrum-table-cell-vertical-alignment);\n border-collapse: separate;\n border-spacing: 0;\n transform: translate3d(0, 0, 0);\n padding: 0;\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n outline: 0;\n user-select: none;\n\n .react-spectrum-ListView-row {\n outline: none;\n }\n\n &.react-spectrum-ListView--emphasized {\n .react-spectrum-ListViewItem {\n /* common pseudoelement for box shadows */\n &:after {\n content: '';\n display: block;\n position: absolute;\n inset-inline-start: 0;\n inset-inline-end: 0;\n inset-block-end: 0;\n inset-block-start: 0;\n z-index: 3;\n pointer-events: none;\n }\n\n /* Box shadow for bottom border for non-selected rows that is immmediately above a selected row. */\n &.is-next-selected {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-selected);\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-selected-hover);\n }\n\n /* Box shadow for left, right, and bottom border for selected rows. */\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n\n /* Box shadow for left, right, bottom, and top border for first row when selected (needs 1px top blue border). */\n &.react-spectrum-ListViewItem--firstRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500), inset 0 1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n /* Box shadow for left, right, and bottom border for last row when selected (needs 1px bottom blue border). */\n &.react-spectrum-ListViewItem--lastRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n }\n }\n\n &:not(.react-spectrum-ListView--quiet) {\n .react-spectrum-ListViewItem {\n /* Box shadow for bottom border for non-selected rows that aren't immediatly above a selected row (grey border bottom). */\n /* Also omit bottom border for last row if the total content height of the ListView is equal or greater than the height of the container. This avoids overlapping bottom borders. */\n &:not(.is-selected):not(.is-next-selected):not(.react-spectrum-ListViewItem--isFlushBottom) {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-table-cell-border-color);\n }\n }\n\n &.react-spectrum-ListViewItem--firstRow.is-selected {\n &:after {\n border-start-start-radius: var(--spectrum-listview-item-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n\n &:not(.react-spectrum-ListView--loadingMore) {\n .react-spectrum-ListViewItem--lastRow.react-spectrum-ListViewItem--isFlushBottom.is-selected {\n &:after {\n border-end-start-radius: var(--spectrum-listview-item-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n }\n }\n}\n\n.react-spectrum-ListView-row {\n cursor: default;\n /* Not sticky because listview is a single column. If we want to make sticky, will need a cell wrapper like TableView for display: inline-block */\n &:focus-ring {\n &:before {\n content: '';\n position: absolute;\n inset-block-start: 0;\n inset-block-end: 0;\n inset-inline-start: 0;\n width: var(--spectrum-listview-row-sticky-focus-indicator-width);\n z-index: 4;\n background: var(--spectrum-selectlist-option-focus-indicator-color);\n }\n }\n}\n\n.react-spectrum-ListView--quiet {\n background-color: var(--spectrum-alias-background-color-transparent);\n border-width: 0;\n border-radius: 0;\n}\n\n.react-spectrum-ListViewItem {\n display: grid; /* TODO: define grid areas */\n box-sizing: border-box;\n font-size: var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default));\n font-weight: var(--spectrum-table-cell-text-font-weight, var(--spectrum-global-font-weight-regular));\n line-height: calc(var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default)) * var(--spectrum-table-cell-text-line-height, var(--spectrum-alias-body-text-line-height)) - 1px);\n padding: var(--spectrum-listview-item-regular-padding-y) var(--spectrum-global-dimension-size-160);\n position: relative;\n /*background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));*/\n color: var(--spectrum-table-cell-text-color, var(--spectrum-alias-text-color));\n outline: 0;\n min-height: var(--spectrum-global-dimension-size-500);\n\n &.is-hovered,\n &.is-focused {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-down);\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-hover);\n\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-selected-key-focus);\n }\n }\n\n &.has-checkbox {\n /* have to eliminate vertical padding to allow proper vertical alignment */\n padding-top: 0px;\n padding-bottom: 0px;\n }\n\n .react-spectrum-ListViewItem-grid {\n display: grid;\n grid-template-columns: auto auto auto auto 1fr auto auto;\n grid-template-rows: 1fr auto;\n grid-template-areas:\n \"draghandle checkbox icon image content actions actionmenu chevron\"\n \"draghandle checkbox icon image description actions actionmenu chevron\"\n ;\n align-items: center;\n }\n\n .react-spectrum-ListViewItem-draghandle-container {\n grid-area: draghandle;\n width: var(--spectrum-global-dimension-size-250);\n display: flex;\n align-self: stretch;\n justify-self: stretch;\n justify-content: center;\n padding: var(--spectrum-global-dimension-size-25);\n padding-inline-start: var(--spectrum-global-dimension-size-40);\n\n\n .react-spectrum-ListViewItem-draghandle-button {\n width: var(--spectrum-global-dimension-size-200);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--spectrum-alias-border-radius-regular);\n\n &:focus-ring {\n box-shadow: inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus);\n outline: none;\n }\n }\n }\n\n .react-spectrum-ListViewItem-checkbox {\n grid-area: checkbox;\n align-items: center;\n justify-items: center;\n min-height: 0;\n height: 100%;\n > span {\n margin: 0;\n }\n }\n\n .react-spectrum-ListViewItem-icon,\n .react-spectrum-ListViewItem-image {\n grid-area: image;\n align-items: center;\n justify-items: center;\n padding-inline-end: var(--spectrum-global-dimension-size-100);\n }\n\n .react-spectrum-ListViewItem-image {\n border-radius: var(--spectrum-global-dimension-size-25);\n width: var(--spectrum-global-dimension-size-400);\n height: var(--spectrum-global-dimension-size-400);\n }\n\n .react-spectrum-ListViewItem-content,\n .react-spectrum-ListViewItem-description {\n flex-grow: 1;\n }\n\n .react-spectrum-ListViewItem-content {\n grid-area: content;\n }\n\n .react-spectrum-ListViewItem-description {\n grid-area: description;\n }\n\n .react-spectrum-ListViewItem-actions {\n grid-area: actions;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n .react-spectrum-ListViewItem-actionmenu {\n grid-area: actionmenu;\n }\n\n .react-spectrum-ListViewItem-parentIndicator {\n grid-area: chevron;\n padding-inline-start: var(--spectrum-global-dimension-size-75);\n }\n\n &.react-spectrum-ListViewItem-dragPreview {\n width: var(--spectrum-global-dimension-size-2400);\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n\n .react-spectrum-ListViewItem-grid {\n grid-template-areas:\n \"icon image content . badge\"\n \"icon image description . badge\"\n ;\n grid-template-columns: auto auto auto 1fr;\n }\n\n .react-spectrum-ListViewItem-badge {\n grid-area: badge;\n color: white;\n background: var(--spectrum-global-color-blue-400);\n padding: 0 8px;\n border-radius: var(--spectrum-alias-border-radius-regular);\n }\n\n &.react-spectrum-ListViewItem-dragPreview--multiple {\n position: relative;\n &:after {\n content: '';\n display: block;\n position: absolute;\n z-index: -1;\n top: 4px;\n inset-inline-start: 4px;\n width: 100%;\n height: 100%;\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n }\n }\n\n .react-spectrum-ListViewItem-actions,\n .react-spectrum-ListViewItem-actionmenu {\n display: none;\n }\n }\n\n /* give first and last items border-radius to match listview container */\n div:first-child > div[role=\"row\"] > & {\n border-start-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n div:last-child > div[role=\"row\"] > & {\n border-end-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n}\n\n.react-spectrum-ListView--compact .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-compact-padding-y);\n padding-bottom: var(--spectrum-listview-item-compact-padding-y);\n min-height: var(--spectrum-global-dimension-size-400);\n}\n\n.react-spectrum-ListView--spacious .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-spacious-padding-y);\n padding-bottom: var(--spectrum-listview-item-spacious-padding-y);\n min-height: var(--spectrum-global-dimension-size-600);\n}\n\n.react-spectrum-ListView--draggable .react-spectrum-ListViewItem {\n padding-inline-start: 0;\n}\n\n.react-spectrum-ListViewItem--draggable {\n .react-spectrum-ListViewItem-checkbox input {\n inset-inline-start: 0;\n }\n}\n\n.react-spectrum-ListView-centeredWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n &.react-spectrum-ListView-centeredWrapper--loadingMore {\n padding-top: var(--spectrum-global-dimension-size-50);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"loadingMore\": \"جارٍ تحميل المزيد...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"loadingMore\": \"Зареждане на още...\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"loadingMore\": \"Načítání dalších...\"\n}\n","{\n \"loading\": \"Indlæser...\",\n \"loadingMore\": \"Indlæser flere...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Mehr laden ...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"loadingMore\": \"Φόρτωση περισσότερων...\"\n}\n","{\n \"loading\": \"Loading…\",\n \"loadingMore\": \"Loading more…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"loadingMore\": \"Laadi rohkem...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"loadingMore\": \"Ladataan lisää…\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"loadingMore\": \"Chargement supplémentaire...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"loadingMore\": \"טוען עוד...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"loadingMore\": \"Továbbiak betöltése folyamatban…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n","{\n \"loading\": \"로드 중…\",\n \"loadingMore\": \"추가 로드 중…\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"loadingMore\": \"Laster inn flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Meer laden...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"loadingMore\": \"Wczytywanie większej liczby...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"loadingMore\": \"Carregando mais...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"loadingMore\": \"A carregar mais...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"loadingMore\": \"Se încarcă mai multe...\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"loadingMore\": \"Дополнительная загрузка...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"loadingMore\": \"Načítava sa viac...\"\n}\n","{\n \"loading\": \"Nalaganje ...\",\n \"loadingMore\": \"Nalaganje več vsebine ...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"loadingMore\": \"Läser in mer...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"loadingMore\": \"Daha fazla yükleniyor...\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"loadingMore\": \"Завантаження інших об’єктів...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"loadingMore\": \"正在加载更多...\"\n}\n","{\n \"loading\": \"載入中…\",\n \"loadingMore\": \"正在載入更多…\"\n}\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {Checkbox} from '@react-spectrum/checkbox';\nimport ChevronLeftMedium from '@spectrum-icons/ui/ChevronLeftMedium';\nimport ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport type {DraggableItemResult} from '@react-aria/dnd';\nimport {FocusRing, useFocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport ListGripper from '@spectrum-icons/ui/ListGripper';\nimport listStyles from './listview.css';\nimport {ListViewContext} from './ListView';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useContext, useRef} from 'react';\nimport {useButton} from '@react-aria/button';\nimport {useGridCell, useGridRow, useGridSelectionCheckbox} from '@react-aria/grid';\nimport {useHover, usePress} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\nexport function ListViewItem(props) {\n let {\n item,\n isEmphasized,\n dragHooks\n } = props;\n let cellNode = [...item.childNodes][0];\n let {state, dragState, onAction, isListDraggable, layout} = useContext(ListViewContext);\n\n let {direction} = useLocale();\n let rowRef = useRef<HTMLDivElement>();\n let cellRef = useRef<HTMLDivElement>();\n let {\n isFocusVisible: isFocusVisibleWithin,\n focusProps: focusWithinProps\n } = useFocusRing({within: true});\n let {isFocusVisible, focusProps} = useFocusRing();\n let allowsInteraction = state.selectionManager.selectionMode !== 'none' || onAction;\n let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);\n let isDraggable = dragState?.isDraggable(item.key) && !isDisabled;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {pressProps, isPressed} = usePress({isDisabled});\n let {rowProps} = useGridRow({\n node: item,\n isVirtualized: true,\n onAction: onAction ? () => onAction(item.key) : undefined,\n shouldSelectOnPressUp: isListDraggable\n }, state, rowRef);\n let {gridCellProps} = useGridCell({\n node: cellNode,\n focusMode: 'cell'\n }, state, cellRef);\n let draggableItem: DraggableItemResult;\n if (isListDraggable) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n draggableItem = dragHooks.useDraggableItem({key: item.key}, dragState);\n }\n const mergedProps = mergeProps(\n gridCellProps,\n hoverProps,\n focusWithinProps,\n focusProps\n );\n let {checkboxProps} = useGridSelectionCheckbox({...props, key: item.key}, state);\n\n let dragButtonRef = React.useRef();\n let {buttonProps} = useButton({\n ...draggableItem?.dragButtonProps,\n elementType: 'div'\n }, dragButtonRef);\n\n let chevron = null;\n if (item.props.hasChildItems) {\n chevron = direction === 'ltr'\n ? (\n <ChevronRightMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n )\n : (\n <ChevronLeftMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n );\n }\n\n let showCheckbox = state.selectionManager.selectionMode !== 'none' && state.selectionManager.selectionBehavior === 'toggle';\n let isSelected = state.selectionManager.isSelected(item.key);\n let showDragHandle = isDraggable && isFocusVisibleWithin;\n let {visuallyHiddenProps} = useVisuallyHidden();\n let isFirstRow = item.prevKey == null;\n let isLastRow = item.nextKey == null;\n // Figure out if the ListView content is equal or greater in height to the container. If so, we'll need to round the bottom\n // border corners of the last row when selected and we can get rid of the bottom border if it isn't selected to avoid border overlap\n // with bottom border\n let isFlushWithContainerBottom = false;\n if (isLastRow) {\n if (layout.getContentSize()?.height >= layout.virtualizer?.getVisibleRect().height) {\n isFlushWithContainerBottom = true;\n }\n }\n\n return (\n <div\n {...mergeProps(rowProps, pressProps, isDraggable && draggableItem?.dragProps)}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-row',\n {\n 'focus-ring': isFocusVisible\n }\n )\n }\n ref={rowRef}>\n <div\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem',\n {\n 'is-active': isPressed,\n 'is-focused': isFocusVisibleWithin,\n 'focus-ring': isFocusVisible,\n 'is-hovered': isHovered,\n 'is-selected': isSelected,\n 'is-next-selected': state.selectionManager.isSelected(item.nextKey),\n 'react-spectrum-ListViewItem--highlightSelection': state.selectionManager.selectionBehavior === 'replace' && (isSelected || state.selectionManager.isSelected(item.nextKey)),\n 'react-spectrum-ListViewItem--draggable': isDraggable,\n 'react-spectrum-ListViewItem--firstRow': isFirstRow,\n 'react-spectrum-ListViewItem--lastRow': isLastRow,\n 'react-spectrum-ListViewItem--isFlushBottom': isFlushWithContainerBottom\n }\n )\n }\n ref={cellRef}\n {...mergedProps}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n {isListDraggable &&\n <div className={listStyles['react-spectrum-ListViewItem-draghandle-container']}>\n {isDraggable &&\n <FocusRing focusRingClass={classNames(listStyles, 'focus-ring')}>\n <div\n {...buttonProps as React.HTMLAttributes<HTMLElement>}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem-draghandle-button'\n )\n }\n style={!showDragHandle ? {...visuallyHiddenProps.style} : {}}\n ref={dragButtonRef}\n draggable=\"true\">\n <ListGripper />\n </div>\n </FocusRing>\n }\n </div>\n }\n {showCheckbox &&\n <Checkbox\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-checkbox']}\n {...checkboxProps}\n isEmphasized={isEmphasized} />\n }\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n <ClearSlots>\n {chevron}\n </ClearSlots>\n </SlotProvider>\n </Grid>\n </div>\n </div>\n );\n}\n"],"names":[],"version":3,"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yCAAS,iBAAG,sCAAK,CAAC,UAAU,CAAC,8BAAQ","sources":["packages/@react-spectrum/list/src/index.ts","packages/@react-spectrum/list/src/ListView.tsx","packages/@react-spectrum/list/src/DragPreview.tsx","packages/@react-spectrum/list/src/listview.css","packages/@react-spectrum/list/intl/*.js","packages/@react-spectrum/list/intl/ar-AE.json","packages/@react-spectrum/list/intl/bg-BG.json","packages/@react-spectrum/list/intl/cs-CZ.json","packages/@react-spectrum/list/intl/da-DK.json","packages/@react-spectrum/list/intl/de-DE.json","packages/@react-spectrum/list/intl/el-GR.json","packages/@react-spectrum/list/intl/en-US.json","packages/@react-spectrum/list/intl/es-ES.json","packages/@react-spectrum/list/intl/et-EE.json","packages/@react-spectrum/list/intl/fi-FI.json","packages/@react-spectrum/list/intl/fr-FR.json","packages/@react-spectrum/list/intl/he-IL.json","packages/@react-spectrum/list/intl/hr-HR.json","packages/@react-spectrum/list/intl/hu-HU.json","packages/@react-spectrum/list/intl/it-IT.json","packages/@react-spectrum/list/intl/ja-JP.json","packages/@react-spectrum/list/intl/ko-KR.json","packages/@react-spectrum/list/intl/lt-LT.json","packages/@react-spectrum/list/intl/lv-LV.json","packages/@react-spectrum/list/intl/nb-NO.json","packages/@react-spectrum/list/intl/nl-NL.json","packages/@react-spectrum/list/intl/pl-PL.json","packages/@react-spectrum/list/intl/pt-BR.json","packages/@react-spectrum/list/intl/pt-PT.json","packages/@react-spectrum/list/intl/ro-RO.json","packages/@react-spectrum/list/intl/ru-RU.json","packages/@react-spectrum/list/intl/sk-SK.json","packages/@react-spectrum/list/intl/sl-SI.json","packages/@react-spectrum/list/intl/sr-SP.json","packages/@react-spectrum/list/intl/sv-SE.json","packages/@react-spectrum/list/intl/tr-TR.json","packages/@react-spectrum/list/intl/uk-UA.json","packages/@react-spectrum/list/intl/zh-CN.json","packages/@react-spectrum/list/intl/zh-TW.json","packages/@react-spectrum/list/src/ListViewItem.tsx"],"sourcesContent":["export {ListView} from './ListView';\nexport {Item} from '@react-stately/collections';\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n AriaLabelingProps,\n AsyncLoadable,\n CollectionBase,\n DOMProps,\n DOMRef,\n LoadingState,\n MultipleSelection,\n SpectrumSelectionProps,\n StyleProps\n} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport type {DraggableCollectionState} from '@react-stately/dnd';\nimport {DragHooks} from '@react-spectrum/dnd';\nimport {DragPreview} from './DragPreview';\nimport {GridCollection, GridState, useGridState} from '@react-stately/grid';\nimport {GridKeyboardDelegate, useGrid} from '@react-aria/grid';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListLayout} from '@react-stately/layout';\nimport {ListState, useListState} from '@react-stately/list';\nimport listStyles from './listview.css';\nimport {ListViewItem} from './ListViewItem';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useContext, useMemo, useRef} from 'react';\nimport {useCollator, useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useProvider} from '@react-spectrum/provider';\nimport {Virtualizer} from '@react-aria/virtualizer';\n\ninterface ListViewContextValue<T> {\n state: GridState<T, GridCollection<any>>,\n keyboardDelegate: GridKeyboardDelegate<T, GridCollection<any>>,\n dragState: DraggableCollectionState,\n onAction:(key: string) => void,\n isListDraggable: boolean,\n layout: ListLayout<T>\n}\n\nexport const ListViewContext = React.createContext<ListViewContextValue<unknown>>(null);\n\nconst ROW_HEIGHTS = {\n compact: {\n medium: 32,\n large: 40\n },\n regular: {\n medium: 40,\n large: 50\n },\n spacious: {\n medium: 48,\n large: 60\n }\n};\n\nexport function useListLayout<T>(state: ListState<T>, density: ListViewProps<T>['density']) {\n let {scale} = useProvider();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let isEmpty = state.collection.size === 0;\n let layout = useMemo(() =>\n new ListLayout<T>({\n estimatedRowHeight: ROW_HEIGHTS[density][scale],\n padding: 0,\n collator,\n loaderHeight: isEmpty ? null : ROW_HEIGHTS[density][scale]\n })\n , [collator, scale, density, isEmpty]);\n\n layout.collection = state.collection;\n layout.disabledKeys = state.disabledKeys;\n return layout;\n}\n\ninterface ListViewProps<T> extends CollectionBase<T>, DOMProps, AriaLabelingProps, StyleProps, MultipleSelection, SpectrumSelectionProps, Omit<AsyncLoadable, 'isLoading'> {\n /**\n * Sets the amount of vertical padding within each cell.\n * @default 'regular'\n */\n density?: 'compact' | 'regular' | 'spacious',\n /** Whether the ListView should be displayed with a quiet style. */\n isQuiet?: boolean,\n /** The current loading state of the ListView. Determines whether or not the progress circle should be shown. */\n loadingState?: LoadingState,\n /** Sets what the ListView should render when there is no content to display. */\n renderEmptyState?: () => JSX.Element,\n /**\n * The duration of animated layout changes, in milliseconds. Used by the Virtualizer.\n * @default 0\n */\n transitionDuration?: number,\n /**\n * Handler that is called when a user performs an action on an item. The exact user event depends on\n * the collection's `selectionBehavior` prop and the interaction modality.\n */\n onAction?: (key: string) => void,\n /**\n * The drag hooks returned by `useDragHooks` used to enable drag and drop behavior for the ListView. See the\n * [docs](https://react-spectrum.adobe.com/react-spectrum/useDragHooks.html) for more info.\n */\n dragHooks?: DragHooks\n}\n\nfunction ListView<T extends object>(props: ListViewProps<T>, ref: DOMRef<HTMLDivElement>) {\n let {\n density = 'regular',\n onLoadMore,\n loadingState,\n isQuiet,\n transitionDuration = 0,\n onAction,\n dragHooks\n } = props;\n let isListDraggable = !!dragHooks;\n let dragHooksProvided = useRef(isListDraggable);\n if (dragHooksProvided.current !== isListDraggable) {\n console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n }\n let domRef = useDOMRef(ref);\n let {collection} = useListState(props);\n let formatMessage = useMessageFormatter(intlMessages);\n let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n\n let {styleProps} = useStyleProps(props);\n let {direction, locale} = useLocale();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let gridCollection = useMemo(() => new GridCollection({\n columnCount: 1,\n items: [...collection].map(item => ({\n ...item,\n hasChildNodes: true,\n childNodes: [{\n key: `cell-${item.key}`,\n type: 'cell',\n index: 0,\n value: null,\n level: 0,\n rendered: null,\n textValue: item.textValue,\n hasChildNodes: false,\n childNodes: []\n }]\n }))\n }), [collection]);\n let state = useGridState({\n ...props,\n collection: gridCollection,\n focusMode: 'cell',\n selectionBehavior: props.selectionStyle === 'highlight' ? 'replace' : 'toggle'\n });\n let layout = useListLayout(state, props.density || 'regular');\n let keyboardDelegate = useMemo(() => new GridKeyboardDelegate({\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n ref: domRef,\n direction,\n collator,\n // Focus the ListView cell instead of the row so that focus doesn't change with left/right arrow keys when there aren't any\n // focusable children in the cell.\n focusMode: 'cell'\n }), [state, domRef, direction, collator]);\n\n let provider = useProvider();\n let dragState: DraggableCollectionState;\n if (isListDraggable) {\n dragState = dragHooks.useDraggableCollectionState({\n collection: state.collection,\n selectionManager: state.selectionManager,\n renderPreview(draggingKeys, draggedKey) {\n let item = state.collection.getItem(draggedKey);\n let itemCount = draggingKeys.size;\n let itemHeight = layout.getLayoutInfo(draggedKey).rect.height;\n return <DragPreview item={item} itemCount={itemCount} itemHeight={itemHeight} provider={provider} locale={locale} />;\n }\n });\n }\n\n let {gridProps} = useGrid({\n ...props,\n isVirtualized: true,\n keyboardDelegate\n }, state, domRef);\n\n // Sync loading state into the layout.\n layout.isLoading = isLoading;\n\n let focusedKey = state.selectionManager.focusedKey;\n let focusedItem = gridCollection.getItem(state.selectionManager.focusedKey);\n if (focusedItem?.parentKey != null) {\n focusedKey = focusedItem.parentKey;\n }\n\n return (\n <ListViewContext.Provider value={{state, keyboardDelegate, dragState, onAction, isListDraggable, layout}}>\n <Virtualizer\n {...gridProps}\n {...styleProps}\n isLoading={isLoading}\n onLoadMore={onLoadMore}\n ref={domRef}\n focusedKey={focusedKey}\n scrollDirection=\"vertical\"\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView',\n `react-spectrum-ListView--${density}`,\n 'react-spectrum-ListView--emphasized',\n {\n 'react-spectrum-ListView--quiet': isQuiet,\n 'react-spectrum-ListView--draggable': isListDraggable,\n 'react-spectrum-ListView--loadingMore': loadingState === 'loadingMore'\n },\n styleProps.className\n )\n }\n layout={layout}\n collection={gridCollection}\n transitionDuration={transitionDuration}>\n {(type, item) => {\n if (type === 'item') {\n return (\n <ListViewItem item={item} isEmphasized dragHooks={dragHooks} />\n );\n } else if (type === 'loader') {\n return (\n <CenteredWrapper>\n <ProgressCircle\n isIndeterminate\n aria-label={state.collection.size > 0 ? formatMessage('loadingMore') : formatMessage('loading')} />\n </CenteredWrapper>\n );\n } else if (type === 'placeholder') {\n let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;\n if (emptyState == null) {\n return null;\n }\n\n return (\n <CenteredWrapper>\n {emptyState}\n </CenteredWrapper>\n );\n }\n\n }}\n </Virtualizer>\n </ListViewContext.Provider>\n );\n}\n\nfunction CenteredWrapper({children}) {\n let {state} = useContext(ListViewContext);\n return (\n <div\n role=\"row\"\n aria-rowindex={state.collection.size + 1}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-centeredWrapper',\n {\n 'react-spectrum-ListView-centeredWrapper--loadingMore': state.collection.size > 0\n }\n )}>\n <div role=\"gridcell\">\n {children}\n </div>\n </div>\n );\n}\n\n/**\n * Lists display a linear collection of data. They allow users to quickly scan, sort, compare, and take action on large amounts of data.\n */\nconst _ListView = React.forwardRef(ListView) as <T>(props: ListViewProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ListView as ListView};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {classNames, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {Grid} from '@react-spectrum/layout';\nimport {GridNode} from '@react-types/grid';\nimport listStyles from './listview.css';\nimport {Provider} from '@react-spectrum/provider';\nimport {ProviderContext} from '@react-types/provider';\nimport React from 'react';\n\ninterface DragPreviewProps {\n item: GridNode<any>,\n itemCount: number,\n itemHeight: number,\n provider: ProviderContext,\n locale: string\n}\n\nexport function DragPreview(props: DragPreviewProps) {\n let {\n item,\n itemCount,\n itemHeight,\n provider,\n locale\n } = props;\n\n let isDraggingMultiple = itemCount > 1;\n\n return (\n <Provider\n {...provider}\n locale={locale}\n UNSAFE_style={{background: 'none'}}>\n <div style={{height: itemHeight}} className={classNames(listStyles, 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple})}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n {isDraggingMultiple &&\n <div className={classNames(listStyles, 'react-spectrum-ListViewItem-badge')}>{itemCount}</div>\n }\n </SlotProvider>\n </Grid>\n </div>\n </Provider>\n );\n}\n","\n:root {\n --spectrum-listview-item-compact-padding-y: var(--spectrum-global-dimension-size-50);\n --spectrum-listview-item-regular-padding-y: var(--spectrum-global-dimension-size-85);\n --spectrum-listview-item-spacious-padding-y: var(--spectrum-global-dimension-size-100);\n --spectrum-listview-border-width: var(--spectrum-table-border-size, var(--spectrum-alias-border-size-thin));\n --spectrum-listview-border-radius: var(--spectrum-table-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-listview-item-border-radius: calc(var(--spectrum-listview-border-radius) - var(--spectrum-listview-border-width));\n --spectrum-listview-row-sticky-focus-indicator-width: 3px;\n}\n\n.react-spectrum-ListView {\n box-sizing: border-box;\n border-color: var(--spectrum-table-border-color, var(--spectrum-alias-border-color-mid));\n border-style: solid;\n position: relative;\n border-width: var(--spectrum-listview-border-width);\n border-radius: var(--spectrum-listview-border-radius);\n overflow: auto;\n vertical-align: var(--spectrum-table-cell-vertical-alignment);\n border-collapse: separate;\n border-spacing: 0;\n transform: translate3d(0, 0, 0);\n padding: 0;\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n outline: 0;\n user-select: none;\n\n .react-spectrum-ListView-row {\n outline: none;\n }\n\n &.react-spectrum-ListView--emphasized {\n .react-spectrum-ListViewItem {\n /* common pseudoelement for box shadows */\n &:after {\n content: '';\n display: block;\n position: absolute;\n inset-inline-start: 0;\n inset-inline-end: 0;\n inset-block-end: 0;\n inset-block-start: 0;\n z-index: 3;\n pointer-events: none;\n }\n\n /* Box shadow for bottom border for non-selected rows that is immmediately above a selected row. */\n &.is-next-selected {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-selected);\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-selected-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-selected-key-focus);\n }\n\n /* Box shadow for left, right, and bottom border for selected rows. */\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n\n /* Box shadow for left, right, bottom, and top border for first row when selected (needs 1px top blue border). */\n &.react-spectrum-ListViewItem--firstRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500), inset 0 1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n /* Box shadow for left, right, and bottom border for last row when selected (needs 1px bottom blue border). */\n &.react-spectrum-ListViewItem--lastRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n }\n }\n\n &:not(.react-spectrum-ListView--quiet) {\n .react-spectrum-ListViewItem {\n /* Box shadow for bottom border for non-selected rows that aren't immediatly above a selected row (grey border bottom). */\n /* Also omit bottom border for last row if the total content height of the ListView is equal or greater than the height of the container. This avoids overlapping bottom borders. */\n &:not(.is-selected):not(.is-next-selected):not(.react-spectrum-ListViewItem--isFlushBottom) {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-table-cell-border-color);\n }\n }\n\n &.react-spectrum-ListViewItem--firstRow.is-selected {\n &:after {\n border-start-start-radius: var(--spectrum-listview-item-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n\n &:not(.react-spectrum-ListView--loadingMore) {\n .react-spectrum-ListViewItem--lastRow.react-spectrum-ListViewItem--isFlushBottom.is-selected {\n &:after {\n border-end-start-radius: var(--spectrum-listview-item-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n }\n }\n}\n\n.react-spectrum-ListView-row {\n cursor: default;\n /* Not sticky because listview is a single column. If we want to make sticky, will need a cell wrapper like TableView for display: inline-block */\n &:focus-ring {\n &:before {\n content: '';\n position: absolute;\n inset-block-start: 0;\n inset-block-end: 0;\n inset-inline-start: 0;\n width: var(--spectrum-listview-row-sticky-focus-indicator-width);\n z-index: 4;\n background: var(--spectrum-selectlist-option-focus-indicator-color);\n }\n }\n}\n\n.react-spectrum-ListView--quiet {\n background-color: var(--spectrum-alias-background-color-transparent);\n border-width: 0;\n border-radius: 0;\n}\n\n.react-spectrum-ListViewItem {\n display: grid; /* TODO: define grid areas */\n box-sizing: border-box;\n font-size: var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default));\n font-weight: var(--spectrum-table-cell-text-font-weight, var(--spectrum-global-font-weight-regular));\n line-height: calc(var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default)) * var(--spectrum-table-cell-text-line-height, var(--spectrum-alias-body-text-line-height)) - 1px);\n padding: var(--spectrum-listview-item-regular-padding-y) var(--spectrum-global-dimension-size-160);\n position: relative;\n /*background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));*/\n color: var(--spectrum-table-cell-text-color, var(--spectrum-alias-text-color));\n outline: 0;\n min-height: var(--spectrum-global-dimension-size-500);\n\n &.is-hovered,\n &.is-focused {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-down);\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-hover);\n\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-selected-key-focus);\n }\n }\n\n &.has-checkbox {\n /* have to eliminate vertical padding to allow proper vertical alignment */\n padding-top: 0px;\n padding-bottom: 0px;\n }\n\n .react-spectrum-ListViewItem-grid {\n display: grid;\n grid-template-columns: auto auto auto auto 1fr auto auto;\n grid-template-rows: 1fr auto;\n grid-template-areas:\n \"draghandle checkbox icon image content actions actionmenu chevron\"\n \"draghandle checkbox icon image description actions actionmenu chevron\"\n ;\n align-items: center;\n }\n\n .react-spectrum-ListViewItem-draghandle-container {\n grid-area: draghandle;\n width: var(--spectrum-global-dimension-size-250);\n display: flex;\n align-self: stretch;\n justify-self: stretch;\n justify-content: center;\n padding: var(--spectrum-global-dimension-size-25);\n padding-inline-start: var(--spectrum-global-dimension-size-40);\n\n\n .react-spectrum-ListViewItem-draghandle-button {\n width: var(--spectrum-global-dimension-size-200);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--spectrum-alias-border-radius-regular);\n\n &:focus-ring {\n box-shadow: inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus);\n outline: none;\n }\n }\n }\n\n .react-spectrum-ListViewItem-checkbox {\n grid-area: checkbox;\n align-items: center;\n justify-items: center;\n min-height: 0;\n height: 100%;\n > span {\n margin: 0;\n }\n }\n\n .react-spectrum-ListViewItem-icon,\n .react-spectrum-ListViewItem-image {\n grid-area: image;\n align-items: center;\n justify-items: center;\n padding-inline-end: var(--spectrum-global-dimension-size-100);\n }\n\n .react-spectrum-ListViewItem-image {\n border-radius: var(--spectrum-global-dimension-size-25);\n width: var(--spectrum-global-dimension-size-400);\n height: var(--spectrum-global-dimension-size-400);\n }\n\n .react-spectrum-ListViewItem-content,\n .react-spectrum-ListViewItem-description {\n flex-grow: 1;\n }\n\n .react-spectrum-ListViewItem-content {\n grid-area: content;\n }\n\n .react-spectrum-ListViewItem-description {\n grid-area: description;\n }\n\n .react-spectrum-ListViewItem-actions {\n grid-area: actions;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n .react-spectrum-ListViewItem-actionmenu {\n grid-area: actionmenu;\n }\n\n .react-spectrum-ListViewItem-parentIndicator {\n grid-area: chevron;\n padding-inline-start: var(--spectrum-global-dimension-size-75);\n }\n\n &.react-spectrum-ListViewItem-dragPreview {\n width: var(--spectrum-global-dimension-size-2400);\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n\n .react-spectrum-ListViewItem-grid {\n grid-template-areas:\n \"icon image content . badge\"\n \"icon image description . badge\"\n ;\n grid-template-columns: auto auto auto 1fr;\n }\n\n .react-spectrum-ListViewItem-badge {\n grid-area: badge;\n color: white;\n background: var(--spectrum-global-color-blue-400);\n padding: 0 8px;\n border-radius: var(--spectrum-alias-border-radius-regular);\n }\n\n &.react-spectrum-ListViewItem-dragPreview--multiple {\n position: relative;\n &:after {\n content: '';\n display: block;\n position: absolute;\n z-index: -1;\n top: 4px;\n inset-inline-start: 4px;\n width: 100%;\n height: 100%;\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n }\n }\n\n .react-spectrum-ListViewItem-actions,\n .react-spectrum-ListViewItem-actionmenu {\n display: none;\n }\n }\n\n /* give first and last items border-radius to match listview container */\n div:first-child > div[role=\"row\"] > & {\n border-start-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n div:last-child > div[role=\"row\"] > & {\n border-end-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n}\n\n.react-spectrum-ListView--compact .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-compact-padding-y);\n padding-bottom: var(--spectrum-listview-item-compact-padding-y);\n min-height: var(--spectrum-global-dimension-size-400);\n}\n\n.react-spectrum-ListView--spacious .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-spacious-padding-y);\n padding-bottom: var(--spectrum-listview-item-spacious-padding-y);\n min-height: var(--spectrum-global-dimension-size-600);\n}\n\n.react-spectrum-ListView--draggable .react-spectrum-ListViewItem {\n padding-inline-start: 0;\n}\n\n.react-spectrum-ListViewItem--draggable {\n .react-spectrum-ListViewItem-checkbox input {\n inset-inline-start: 0;\n }\n}\n\n.react-spectrum-ListView-centeredWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n &.react-spectrum-ListView-centeredWrapper--loadingMore {\n padding-top: var(--spectrum-global-dimension-size-50);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"loadingMore\": \"جارٍ تحميل المزيد...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"loadingMore\": \"Зареждане на още...\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"loadingMore\": \"Načítání dalších...\"\n}\n","{\n \"loading\": \"Indlæser...\",\n \"loadingMore\": \"Indlæser flere...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Mehr laden ...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"loadingMore\": \"Φόρτωση περισσότερων...\"\n}\n","{\n \"loading\": \"Loading…\",\n \"loadingMore\": \"Loading more…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"loadingMore\": \"Laadi rohkem...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"loadingMore\": \"Ladataan lisää…\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"loadingMore\": \"Chargement supplémentaire...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"loadingMore\": \"טוען עוד...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"loadingMore\": \"Továbbiak betöltése folyamatban…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n","{\n \"loading\": \"로드 중…\",\n \"loadingMore\": \"추가 로드 중…\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"loadingMore\": \"Laster inn flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Meer laden...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"loadingMore\": \"Wczytywanie większej liczby...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"loadingMore\": \"Carregando mais...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"loadingMore\": \"A carregar mais...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"loadingMore\": \"Se încarcă mai multe...\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"loadingMore\": \"Дополнительная загрузка...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"loadingMore\": \"Načítava sa viac...\"\n}\n","{\n \"loading\": \"Nalaganje ...\",\n \"loadingMore\": \"Nalaganje več vsebine ...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"loadingMore\": \"Läser in mer...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"loadingMore\": \"Daha fazla yükleniyor...\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"loadingMore\": \"Завантаження інших об’єктів...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"loadingMore\": \"正在加载更多...\"\n}\n","{\n \"loading\": \"載入中…\",\n \"loadingMore\": \"正在載入更多…\"\n}\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {Checkbox} from '@react-spectrum/checkbox';\nimport ChevronLeftMedium from '@spectrum-icons/ui/ChevronLeftMedium';\nimport ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport type {DraggableItemResult} from '@react-aria/dnd';\nimport {FocusRing, useFocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport ListGripper from '@spectrum-icons/ui/ListGripper';\nimport listStyles from './listview.css';\nimport {ListViewContext} from './ListView';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useContext, useRef} from 'react';\nimport {useButton} from '@react-aria/button';\nimport {useGridCell, useGridRow, useGridSelectionCheckbox} from '@react-aria/grid';\nimport {useHover, usePress} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\nexport function ListViewItem(props) {\n let {\n item,\n isEmphasized,\n dragHooks\n } = props;\n let cellNode = [...item.childNodes][0];\n let {state, dragState, onAction, isListDraggable, layout} = useContext(ListViewContext);\n\n let {direction} = useLocale();\n let rowRef = useRef<HTMLDivElement>();\n let cellRef = useRef<HTMLDivElement>();\n let {\n isFocusVisible: isFocusVisibleWithin,\n focusProps: focusWithinProps\n } = useFocusRing({within: true});\n let {isFocusVisible, focusProps} = useFocusRing();\n let allowsInteraction = state.selectionManager.selectionMode !== 'none' || onAction;\n let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);\n let isDraggable = dragState?.isDraggable(item.key) && !isDisabled;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {pressProps, isPressed} = usePress({isDisabled});\n let {rowProps} = useGridRow({\n node: item,\n isVirtualized: true,\n onAction: onAction ? () => onAction(item.key) : undefined,\n shouldSelectOnPressUp: isListDraggable\n }, state, rowRef);\n let {gridCellProps} = useGridCell({\n node: cellNode,\n focusMode: 'cell'\n }, state, cellRef);\n let draggableItem: DraggableItemResult;\n if (isListDraggable) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n draggableItem = dragHooks.useDraggableItem({key: item.key}, dragState);\n }\n const mergedProps = mergeProps(\n gridCellProps,\n hoverProps,\n focusWithinProps,\n focusProps\n );\n let {checkboxProps} = useGridSelectionCheckbox({...props, key: item.key}, state);\n\n let dragButtonRef = React.useRef();\n let {buttonProps} = useButton({\n ...draggableItem?.dragButtonProps,\n elementType: 'div'\n }, dragButtonRef);\n\n let chevron = null;\n if (item.props.hasChildItems) {\n chevron = direction === 'ltr'\n ? (\n <ChevronRightMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n )\n : (\n <ChevronLeftMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n );\n }\n\n let showCheckbox = state.selectionManager.selectionMode !== 'none' && state.selectionManager.selectionBehavior === 'toggle';\n let isSelected = state.selectionManager.isSelected(item.key);\n let showDragHandle = isDraggable && isFocusVisibleWithin;\n let {visuallyHiddenProps} = useVisuallyHidden();\n let isFirstRow = item.prevKey == null;\n let isLastRow = item.nextKey == null;\n // Figure out if the ListView content is equal or greater in height to the container. If so, we'll need to round the bottom\n // border corners of the last row when selected and we can get rid of the bottom border if it isn't selected to avoid border overlap\n // with bottom border\n let isFlushWithContainerBottom = false;\n if (isLastRow) {\n if (layout.getContentSize()?.height >= layout.virtualizer?.getVisibleRect().height) {\n isFlushWithContainerBottom = true;\n }\n }\n\n return (\n <div\n {...mergeProps(rowProps, pressProps, isDraggable && draggableItem?.dragProps)}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-row',\n {\n 'focus-ring': isFocusVisible\n }\n )\n }\n ref={rowRef}>\n <div\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem',\n {\n 'is-active': isPressed,\n 'is-focused': isFocusVisibleWithin,\n 'focus-ring': isFocusVisible,\n 'is-hovered': isHovered,\n 'is-selected': isSelected,\n 'is-next-selected': state.selectionManager.isSelected(item.nextKey),\n 'react-spectrum-ListViewItem--highlightSelection': state.selectionManager.selectionBehavior === 'replace' && (isSelected || state.selectionManager.isSelected(item.nextKey)),\n 'react-spectrum-ListViewItem--draggable': isDraggable,\n 'react-spectrum-ListViewItem--firstRow': isFirstRow,\n 'react-spectrum-ListViewItem--lastRow': isLastRow,\n 'react-spectrum-ListViewItem--isFlushBottom': isFlushWithContainerBottom\n }\n )\n }\n ref={cellRef}\n {...mergedProps}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n {isListDraggable &&\n <div className={listStyles['react-spectrum-ListViewItem-draghandle-container']}>\n {isDraggable &&\n <FocusRing focusRingClass={classNames(listStyles, 'focus-ring')}>\n <div\n {...buttonProps as React.HTMLAttributes<HTMLElement>}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem-draghandle-button'\n )\n }\n style={!showDragHandle ? {...visuallyHiddenProps.style} : {}}\n ref={dragButtonRef}\n draggable=\"true\">\n <ListGripper />\n </div>\n </FocusRing>\n }\n </div>\n }\n {showCheckbox &&\n <Checkbox\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-checkbox']}\n {...checkboxProps}\n isEmphasized={isEmphasized} />\n }\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n <ClearSlots>\n {chevron}\n </ClearSlots>\n </SlotProvider>\n </Grid>\n </div>\n </div>\n );\n}\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -42,12 +42,12 @@ $parcel$export($7a33fe9cdec6aaae$exports, "is-next-selected", () => $7a33fe9cdec
42
42
  $parcel$export($7a33fe9cdec6aaae$exports, "is-selected", () => $7a33fe9cdec6aaae$export$1e0fb04f31d3c22a, (v) => $7a33fe9cdec6aaae$export$1e0fb04f31d3c22a = v);
43
43
  $parcel$export($7a33fe9cdec6aaae$exports, "is-hovered", () => $7a33fe9cdec6aaae$export$b8813cd5d7824ce7, (v) => $7a33fe9cdec6aaae$export$b8813cd5d7824ce7 = v);
44
44
  $parcel$export($7a33fe9cdec6aaae$exports, "is-active", () => $7a33fe9cdec6aaae$export$20fd0f7cd4e6112f, (v) => $7a33fe9cdec6aaae$export$20fd0f7cd4e6112f = v);
45
+ $parcel$export($7a33fe9cdec6aaae$exports, "focus-ring", () => $7a33fe9cdec6aaae$export$f39a09f249340e2a, (v) => $7a33fe9cdec6aaae$export$f39a09f249340e2a = v);
45
46
  $parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem--firstRow", () => $7a33fe9cdec6aaae$export$60162f05499b7560, (v) => $7a33fe9cdec6aaae$export$60162f05499b7560 = v);
46
47
  $parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem--lastRow", () => $7a33fe9cdec6aaae$export$659c081622dc13b0, (v) => $7a33fe9cdec6aaae$export$659c081622dc13b0 = v);
47
48
  $parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView--quiet", () => $7a33fe9cdec6aaae$export$b01cb9680b0b8d22, (v) => $7a33fe9cdec6aaae$export$b01cb9680b0b8d22 = v);
48
49
  $parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem--isFlushBottom", () => $7a33fe9cdec6aaae$export$f9ed481cac4d935a, (v) => $7a33fe9cdec6aaae$export$f9ed481cac4d935a = v);
49
50
  $parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView--loadingMore", () => $7a33fe9cdec6aaae$export$5aa06adeaa92dbca, (v) => $7a33fe9cdec6aaae$export$5aa06adeaa92dbca = v);
50
- $parcel$export($7a33fe9cdec6aaae$exports, "focus-ring", () => $7a33fe9cdec6aaae$export$f39a09f249340e2a, (v) => $7a33fe9cdec6aaae$export$f39a09f249340e2a = v);
51
51
  $parcel$export($7a33fe9cdec6aaae$exports, "is-focused", () => $7a33fe9cdec6aaae$export$e7dc768d35940237, (v) => $7a33fe9cdec6aaae$export$e7dc768d35940237 = v);
52
52
  $parcel$export($7a33fe9cdec6aaae$exports, "has-checkbox", () => $7a33fe9cdec6aaae$export$27f4d14f7fc5b94, (v) => $7a33fe9cdec6aaae$export$27f4d14f7fc5b94 = v);
53
53
  $parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-grid", () => $7a33fe9cdec6aaae$export$aaaf83100348d389, (v) => $7a33fe9cdec6aaae$export$aaaf83100348d389 = v);
@@ -78,12 +78,12 @@ var $7a33fe9cdec6aaae$export$53aa811f86efbfad;
78
78
  var $7a33fe9cdec6aaae$export$1e0fb04f31d3c22a;
79
79
  var $7a33fe9cdec6aaae$export$b8813cd5d7824ce7;
80
80
  var $7a33fe9cdec6aaae$export$20fd0f7cd4e6112f;
81
+ var $7a33fe9cdec6aaae$export$f39a09f249340e2a;
81
82
  var $7a33fe9cdec6aaae$export$60162f05499b7560;
82
83
  var $7a33fe9cdec6aaae$export$659c081622dc13b0;
83
84
  var $7a33fe9cdec6aaae$export$b01cb9680b0b8d22;
84
85
  var $7a33fe9cdec6aaae$export$f9ed481cac4d935a;
85
86
  var $7a33fe9cdec6aaae$export$5aa06adeaa92dbca;
86
- var $7a33fe9cdec6aaae$export$f39a09f249340e2a;
87
87
  var $7a33fe9cdec6aaae$export$e7dc768d35940237;
88
88
  var $7a33fe9cdec6aaae$export$27f4d14f7fc5b94;
89
89
  var $7a33fe9cdec6aaae$export$aaaf83100348d389;
@@ -114,12 +114,12 @@ $7a33fe9cdec6aaae$export$53aa811f86efbfad = "is-next-selected_d68562";
114
114
  $7a33fe9cdec6aaae$export$1e0fb04f31d3c22a = "is-selected_d68562";
115
115
  $7a33fe9cdec6aaae$export$b8813cd5d7824ce7 = "is-hovered_d68562";
116
116
  $7a33fe9cdec6aaae$export$20fd0f7cd4e6112f = "is-active_d68562";
117
+ $7a33fe9cdec6aaae$export$f39a09f249340e2a = "focus-ring_d68562";
117
118
  $7a33fe9cdec6aaae$export$60162f05499b7560 = "react-spectrum-ListViewItem--firstRow_d68562";
118
119
  $7a33fe9cdec6aaae$export$659c081622dc13b0 = "react-spectrum-ListViewItem--lastRow_d68562";
119
120
  $7a33fe9cdec6aaae$export$b01cb9680b0b8d22 = "react-spectrum-ListView--quiet_d68562";
120
121
  $7a33fe9cdec6aaae$export$f9ed481cac4d935a = "react-spectrum-ListViewItem--isFlushBottom_d68562";
121
122
  $7a33fe9cdec6aaae$export$5aa06adeaa92dbca = "react-spectrum-ListView--loadingMore_d68562";
122
- $7a33fe9cdec6aaae$export$f39a09f249340e2a = "focus-ring_d68562";
123
123
  $7a33fe9cdec6aaae$export$e7dc768d35940237 = "is-focused_d68562";
124
124
  $7a33fe9cdec6aaae$export$27f4d14f7fc5b94 = "has-checkbox_d68562";
125
125
  $7a33fe9cdec6aaae$export$aaaf83100348d389 = "react-spectrum-ListViewItem-grid_d68562";
@@ -147,14 +147,18 @@ $7a33fe9cdec6aaae$export$6b3b7792abd9e5f4 = "react-spectrum-ListView-centeredWra
147
147
 
148
148
 
149
149
  function $cd61e55c47e3c0f5$export$905ab40ac2179daa(props) {
150
- let { item: item , itemCount: itemCount , provider: provider , direction: direction } = props;
150
+ let { item: item , itemCount: itemCount , itemHeight: itemHeight , provider: provider , locale: locale } = props;
151
151
  let isDraggingMultiple = itemCount > 1;
152
152
  return(/*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Provider, {
153
153
  ...provider,
154
+ locale: locale,
154
155
  UNSAFE_style: {
155
- direction: direction
156
+ background: 'none'
156
157
  }
157
158
  }, /*#__PURE__*/ $fWI2a$react.createElement("div", {
159
+ style: {
160
+ height: itemHeight
161
+ },
158
162
  className: $fWI2a$classNames((/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports)), 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {
159
163
  'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple
160
164
  })
@@ -603,7 +607,7 @@ function $f85fb77f9d4cbc6c$var$ListView(props, ref) {
603
607
  let formatMessage = $fWI2a$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($8d8b0a0ae222979e$exports)));
604
608
  let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
605
609
  let { styleProps: styleProps } = $fWI2a$useStyleProps(props);
606
- let { direction: direction } = $fWI2a$useLocale();
610
+ let { direction: direction , locale: locale } = $fWI2a$useLocale();
607
611
  let collator = $fWI2a$useCollator({
608
612
  usage: 'search',
609
613
  sensitivity: 'base'
@@ -665,11 +669,13 @@ function $f85fb77f9d4cbc6c$var$ListView(props, ref) {
665
669
  renderPreview (draggingKeys, draggedKey) {
666
670
  let item = state.collection.getItem(draggedKey);
667
671
  let itemCount = draggingKeys.size;
672
+ let itemHeight = layout.getLayoutInfo(draggedKey).rect.height;
668
673
  return(/*#__PURE__*/ $fWI2a$react.createElement($cd61e55c47e3c0f5$export$905ab40ac2179daa, {
669
674
  item: item,
670
675
  itemCount: itemCount,
676
+ itemHeight: itemHeight,
671
677
  provider: provider,
672
- direction: direction
678
+ locale: locale
673
679
  }));
674
680
  }
675
681
  });
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAyC;AACzC,GAA6C;AAC7C,GAAqD;AACrD,GAA6C;AAC7C,GAAkC;AAClC,GAA6B;AAC7B,GAA4B;AAC5B,GAA2B;AAC3B,GAAuD;AACvD,GAAsD;AACtD,GAAgD;AAChD,GAA4D;AAC5D,GAAsD;AACtD,GAA4B;AAC5B,GAA4B;AAC5B,GAA8B;AAC9B,GAAkD;AAClD,GAAkE;AAClE,GAA+D;AAC/D,GAAsD;AACtD,GAAkD;AAClD,GAAmD;AACnD,GAAqD;AACrD,GAAyD;AACzD,GAAqD;AACrD,GAAwD;AACxD,GAA6D;AAC7D,GAAyD;AACzD,GAAmD;AACnD,GAAmE;AACnE,GAAkD;AAClD,GAAmD;AACnD,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AAG,CAAC,CAAC,QAAA,KAAK,EAAA,CAAC,GAAG,iBAAU,CAAC,yCAAe;IACxC,MAAM,0CACH,CAAG;QACF,IAAI,EAAC,CAAK;QACV,CAAa,gBAAE,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC;QACxC,SAAS,EACP,iBAAU,CACR,gEAAU,EACV,CAAyC,0CACzC,CAAC;YACC,CAAsD,uDAAE,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC;QACnF,CAAC;gDAEJ,CAAG;QAAC,IAAI,EAAC,CAAU;OACjB,QAAQ;AAIjB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAS,iBAAG,YAAK,CAAC,UAAU,CAAC,8BAAQ","sources":["packages/@react-spectrum/list/src/index.ts","packages/@react-spectrum/list/src/ListView.tsx","packages/@react-spectrum/list/src/DragPreview.tsx","packages/@react-spectrum/list/src/listview.css","packages/@react-spectrum/list/intl/*.js","packages/@react-spectrum/list/intl/ar-AE.json","packages/@react-spectrum/list/intl/bg-BG.json","packages/@react-spectrum/list/intl/cs-CZ.json","packages/@react-spectrum/list/intl/da-DK.json","packages/@react-spectrum/list/intl/de-DE.json","packages/@react-spectrum/list/intl/el-GR.json","packages/@react-spectrum/list/intl/en-US.json","packages/@react-spectrum/list/intl/es-ES.json","packages/@react-spectrum/list/intl/et-EE.json","packages/@react-spectrum/list/intl/fi-FI.json","packages/@react-spectrum/list/intl/fr-FR.json","packages/@react-spectrum/list/intl/he-IL.json","packages/@react-spectrum/list/intl/hr-HR.json","packages/@react-spectrum/list/intl/hu-HU.json","packages/@react-spectrum/list/intl/it-IT.json","packages/@react-spectrum/list/intl/ja-JP.json","packages/@react-spectrum/list/intl/ko-KR.json","packages/@react-spectrum/list/intl/lt-LT.json","packages/@react-spectrum/list/intl/lv-LV.json","packages/@react-spectrum/list/intl/nb-NO.json","packages/@react-spectrum/list/intl/nl-NL.json","packages/@react-spectrum/list/intl/pl-PL.json","packages/@react-spectrum/list/intl/pt-BR.json","packages/@react-spectrum/list/intl/pt-PT.json","packages/@react-spectrum/list/intl/ro-RO.json","packages/@react-spectrum/list/intl/ru-RU.json","packages/@react-spectrum/list/intl/sk-SK.json","packages/@react-spectrum/list/intl/sl-SI.json","packages/@react-spectrum/list/intl/sr-SP.json","packages/@react-spectrum/list/intl/sv-SE.json","packages/@react-spectrum/list/intl/tr-TR.json","packages/@react-spectrum/list/intl/uk-UA.json","packages/@react-spectrum/list/intl/zh-CN.json","packages/@react-spectrum/list/intl/zh-TW.json","packages/@react-spectrum/list/src/ListViewItem.tsx"],"sourcesContent":["export {ListView} from './ListView';\nexport {Item} from '@react-stately/collections';\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n AriaLabelingProps,\n AsyncLoadable,\n CollectionBase,\n DOMProps,\n DOMRef,\n LoadingState,\n MultipleSelection,\n SpectrumSelectionProps,\n StyleProps\n} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport type {DraggableCollectionState} from '@react-stately/dnd';\nimport {DragHooks} from '@react-spectrum/dnd';\nimport {DragPreview} from './DragPreview';\nimport {GridCollection, GridState, useGridState} from '@react-stately/grid';\nimport {GridKeyboardDelegate, useGrid} from '@react-aria/grid';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListLayout} from '@react-stately/layout';\nimport {ListState, useListState} from '@react-stately/list';\nimport listStyles from './listview.css';\nimport {ListViewItem} from './ListViewItem';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useContext, useMemo, useRef} from 'react';\nimport {useCollator, useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useProvider} from '@react-spectrum/provider';\nimport {Virtualizer} from '@react-aria/virtualizer';\n\ninterface ListViewContextValue<T> {\n state: GridState<T, GridCollection<any>>,\n keyboardDelegate: GridKeyboardDelegate<T, GridCollection<any>>,\n dragState: DraggableCollectionState,\n onAction:(key: string) => void,\n isListDraggable: boolean,\n layout: ListLayout<T>\n}\n\nexport const ListViewContext = React.createContext<ListViewContextValue<unknown>>(null);\n\nconst ROW_HEIGHTS = {\n compact: {\n medium: 32,\n large: 40\n },\n regular: {\n medium: 40,\n large: 50\n },\n spacious: {\n medium: 48,\n large: 60\n }\n};\n\nexport function useListLayout<T>(state: ListState<T>, density: ListViewProps<T>['density']) {\n let {scale} = useProvider();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let isEmpty = state.collection.size === 0;\n let layout = useMemo(() =>\n new ListLayout<T>({\n estimatedRowHeight: ROW_HEIGHTS[density][scale],\n padding: 0,\n collator,\n loaderHeight: isEmpty ? null : ROW_HEIGHTS[density][scale]\n })\n , [collator, scale, density, isEmpty]);\n\n layout.collection = state.collection;\n layout.disabledKeys = state.disabledKeys;\n return layout;\n}\n\ninterface ListViewProps<T> extends CollectionBase<T>, DOMProps, AriaLabelingProps, StyleProps, MultipleSelection, SpectrumSelectionProps, Omit<AsyncLoadable, 'isLoading'> {\n /**\n * Sets the amount of vertical padding within each cell.\n * @default 'regular'\n */\n density?: 'compact' | 'regular' | 'spacious',\n /** Whether the ListView should be displayed with a quiet style. */\n isQuiet?: boolean,\n /** The current loading state of the ListView. Determines whether or not the progress circle should be shown. */\n loadingState?: LoadingState,\n /** Sets what the ListView should render when there is no content to display. */\n renderEmptyState?: () => JSX.Element,\n /**\n * The duration of animated layout changes, in milliseconds. Used by the Virtualizer.\n * @default 0\n */\n transitionDuration?: number,\n /**\n * Handler that is called when a user performs an action on an item. The exact user event depends on\n * the collection's `selectionBehavior` prop and the interaction modality.\n */\n onAction?: (key: string) => void,\n /**\n * The drag hooks returned by `useDragHooks` used to enable drag and drop behavior for the ListView. See the\n * [docs](https://react-spectrum.adobe.com/react-spectrum/useDragHooks.html) for more info.\n */\n dragHooks?: DragHooks\n}\n\nfunction ListView<T extends object>(props: ListViewProps<T>, ref: DOMRef<HTMLDivElement>) {\n let {\n density = 'regular',\n onLoadMore,\n loadingState,\n isQuiet,\n transitionDuration = 0,\n onAction,\n dragHooks\n } = props;\n let isListDraggable = !!dragHooks;\n let dragHooksProvided = useRef(isListDraggable);\n if (dragHooksProvided.current !== isListDraggable) {\n console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n }\n let domRef = useDOMRef(ref);\n let {collection} = useListState(props);\n let formatMessage = useMessageFormatter(intlMessages);\n let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n\n let {styleProps} = useStyleProps(props);\n let {direction} = useLocale();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let gridCollection = useMemo(() => new GridCollection({\n columnCount: 1,\n items: [...collection].map(item => ({\n ...item,\n hasChildNodes: true,\n childNodes: [{\n key: `cell-${item.key}`,\n type: 'cell',\n index: 0,\n value: null,\n level: 0,\n rendered: null,\n textValue: item.textValue,\n hasChildNodes: false,\n childNodes: []\n }]\n }))\n }), [collection]);\n let state = useGridState({\n ...props,\n collection: gridCollection,\n focusMode: 'cell',\n selectionBehavior: props.selectionStyle === 'highlight' ? 'replace' : 'toggle'\n });\n let layout = useListLayout(state, props.density || 'regular');\n let keyboardDelegate = useMemo(() => new GridKeyboardDelegate({\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n ref: domRef,\n direction,\n collator,\n // Focus the ListView cell instead of the row so that focus doesn't change with left/right arrow keys when there aren't any\n // focusable children in the cell.\n focusMode: 'cell'\n }), [state, domRef, direction, collator]);\n\n let provider = useProvider();\n let dragState: DraggableCollectionState;\n if (isListDraggable) {\n dragState = dragHooks.useDraggableCollectionState({\n collection: state.collection,\n selectionManager: state.selectionManager,\n renderPreview(draggingKeys, draggedKey) {\n let item = state.collection.getItem(draggedKey);\n let itemCount = draggingKeys.size;\n return <DragPreview item={item} itemCount={itemCount} provider={provider} direction={direction} />;\n }\n });\n }\n\n let {gridProps} = useGrid({\n ...props,\n isVirtualized: true,\n keyboardDelegate\n }, state, domRef);\n\n // Sync loading state into the layout.\n layout.isLoading = isLoading;\n\n let focusedKey = state.selectionManager.focusedKey;\n let focusedItem = gridCollection.getItem(state.selectionManager.focusedKey);\n if (focusedItem?.parentKey != null) {\n focusedKey = focusedItem.parentKey;\n }\n\n return (\n <ListViewContext.Provider value={{state, keyboardDelegate, dragState, onAction, isListDraggable, layout}}>\n <Virtualizer\n {...gridProps}\n {...styleProps}\n isLoading={isLoading}\n onLoadMore={onLoadMore}\n ref={domRef}\n focusedKey={focusedKey}\n scrollDirection=\"vertical\"\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView',\n `react-spectrum-ListView--${density}`,\n 'react-spectrum-ListView--emphasized',\n {\n 'react-spectrum-ListView--quiet': isQuiet,\n 'react-spectrum-ListView--draggable': isListDraggable,\n 'react-spectrum-ListView--loadingMore': loadingState === 'loadingMore'\n },\n styleProps.className\n )\n }\n layout={layout}\n collection={gridCollection}\n transitionDuration={transitionDuration}>\n {(type, item) => {\n if (type === 'item') {\n return (\n <ListViewItem item={item} isEmphasized dragHooks={dragHooks} />\n );\n } else if (type === 'loader') {\n return (\n <CenteredWrapper>\n <ProgressCircle\n isIndeterminate\n aria-label={state.collection.size > 0 ? formatMessage('loadingMore') : formatMessage('loading')} />\n </CenteredWrapper>\n );\n } else if (type === 'placeholder') {\n let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;\n if (emptyState == null) {\n return null;\n }\n\n return (\n <CenteredWrapper>\n {emptyState}\n </CenteredWrapper>\n );\n }\n\n }}\n </Virtualizer>\n </ListViewContext.Provider>\n );\n}\n\nfunction CenteredWrapper({children}) {\n let {state} = useContext(ListViewContext);\n return (\n <div\n role=\"row\"\n aria-rowindex={state.collection.size + 1}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-centeredWrapper',\n {\n 'react-spectrum-ListView-centeredWrapper--loadingMore': state.collection.size > 0\n }\n )}>\n <div role=\"gridcell\">\n {children}\n </div>\n </div>\n );\n}\n\n/**\n * Lists display a linear collection of data. They allow users to quickly scan, sort, compare, and take action on large amounts of data.\n */\nconst _ListView = React.forwardRef(ListView) as <T>(props: ListViewProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ListView as ListView};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {classNames, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {Direction} from '@react-types/shared';\nimport {Grid} from '@react-spectrum/layout';\nimport {GridNode} from '@react-types/grid';\nimport listStyles from './listview.css';\nimport {Provider} from '@react-spectrum/provider';\nimport {ProviderContext} from '@react-types/provider';\nimport React from 'react';\n\ninterface DragPreviewProps {\n item: GridNode<any>,\n itemCount: number,\n provider: ProviderContext,\n direction: Direction\n}\n\nexport function DragPreview(props: DragPreviewProps) {\n let {\n item,\n itemCount,\n provider,\n direction\n } = props;\n\n let isDraggingMultiple = itemCount > 1;\n\n return (\n <Provider\n {...provider}\n UNSAFE_style={{direction}}>\n <div className={classNames(listStyles, 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple})}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n {isDraggingMultiple &&\n <div className={classNames(listStyles, 'react-spectrum-ListViewItem-badge')}>{itemCount}</div>\n }\n </SlotProvider>\n </Grid>\n </div>\n </Provider>\n );\n}\n","\n:root {\n --spectrum-listview-item-compact-padding-y: var(--spectrum-global-dimension-size-50);\n --spectrum-listview-item-regular-padding-y: var(--spectrum-global-dimension-size-85);\n --spectrum-listview-item-spacious-padding-y: var(--spectrum-global-dimension-size-100);\n --spectrum-listview-border-width: var(--spectrum-table-border-size, var(--spectrum-alias-border-size-thin));\n --spectrum-listview-border-radius: var(--spectrum-table-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-listview-item-border-radius: calc(var(--spectrum-listview-border-radius) - var(--spectrum-listview-border-width));\n --spectrum-listview-row-sticky-focus-indicator-width: 3px;\n}\n\n.react-spectrum-ListView {\n box-sizing: border-box;\n border-color: var(--spectrum-table-border-color, var(--spectrum-alias-border-color-mid));\n border-style: solid;\n position: relative;\n border-width: var(--spectrum-listview-border-width);\n border-radius: var(--spectrum-listview-border-radius);\n overflow: auto;\n vertical-align: var(--spectrum-table-cell-vertical-alignment);\n border-collapse: separate;\n border-spacing: 0;\n transform: translate3d(0, 0, 0);\n padding: 0;\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n outline: 0;\n user-select: none;\n\n .react-spectrum-ListView-row {\n outline: none;\n }\n\n &.react-spectrum-ListView--emphasized {\n .react-spectrum-ListViewItem {\n /* common pseudoelement for box shadows */\n &:after {\n content: '';\n display: block;\n position: absolute;\n inset-inline-start: 0;\n inset-inline-end: 0;\n inset-block-end: 0;\n inset-block-start: 0;\n z-index: 3;\n pointer-events: none;\n }\n\n /* Box shadow for bottom border for non-selected rows that is immmediately above a selected row. */\n &.is-next-selected {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-selected);\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-selected-hover);\n }\n\n /* Box shadow for left, right, and bottom border for selected rows. */\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n\n /* Box shadow for left, right, bottom, and top border for first row when selected (needs 1px top blue border). */\n &.react-spectrum-ListViewItem--firstRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500), inset 0 1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n /* Box shadow for left, right, and bottom border for last row when selected (needs 1px bottom blue border). */\n &.react-spectrum-ListViewItem--lastRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n }\n }\n\n &:not(.react-spectrum-ListView--quiet) {\n .react-spectrum-ListViewItem {\n /* Box shadow for bottom border for non-selected rows that aren't immediatly above a selected row (grey border bottom). */\n /* Also omit bottom border for last row if the total content height of the ListView is equal or greater than the height of the container. This avoids overlapping bottom borders. */\n &:not(.is-selected):not(.is-next-selected):not(.react-spectrum-ListViewItem--isFlushBottom) {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-table-cell-border-color);\n }\n }\n\n &.react-spectrum-ListViewItem--firstRow.is-selected {\n &:after {\n border-start-start-radius: var(--spectrum-listview-item-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n\n &:not(.react-spectrum-ListView--loadingMore) {\n .react-spectrum-ListViewItem--lastRow.react-spectrum-ListViewItem--isFlushBottom.is-selected {\n &:after {\n border-end-start-radius: var(--spectrum-listview-item-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n }\n }\n}\n\n.react-spectrum-ListView-row {\n cursor: default;\n /* Not sticky because listview is a single column. If we want to make sticky, will need a cell wrapper like TableView for display: inline-block */\n &:focus-ring {\n &:before {\n content: '';\n position: absolute;\n inset-block-start: 0;\n inset-block-end: 0;\n inset-inline-start: 0;\n width: var(--spectrum-listview-row-sticky-focus-indicator-width);\n z-index: 4;\n background: var(--spectrum-selectlist-option-focus-indicator-color);\n }\n }\n}\n\n.react-spectrum-ListView--quiet {\n background-color: var(--spectrum-alias-background-color-transparent);\n border-width: 0;\n border-radius: 0;\n}\n\n.react-spectrum-ListViewItem {\n display: grid; /* TODO: define grid areas */\n box-sizing: border-box;\n font-size: var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default));\n font-weight: var(--spectrum-table-cell-text-font-weight, var(--spectrum-global-font-weight-regular));\n line-height: calc(var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default)) * var(--spectrum-table-cell-text-line-height, var(--spectrum-alias-body-text-line-height)) - 1px);\n padding: var(--spectrum-listview-item-regular-padding-y) var(--spectrum-global-dimension-size-160);\n position: relative;\n /*background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));*/\n color: var(--spectrum-table-cell-text-color, var(--spectrum-alias-text-color));\n outline: 0;\n min-height: var(--spectrum-global-dimension-size-500);\n\n &.is-hovered,\n &.is-focused {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-down);\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-hover);\n\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-selected-key-focus);\n }\n }\n\n &.has-checkbox {\n /* have to eliminate vertical padding to allow proper vertical alignment */\n padding-top: 0px;\n padding-bottom: 0px;\n }\n\n .react-spectrum-ListViewItem-grid {\n display: grid;\n grid-template-columns: auto auto auto auto 1fr auto auto;\n grid-template-rows: 1fr auto;\n grid-template-areas:\n \"draghandle checkbox icon image content actions actionmenu chevron\"\n \"draghandle checkbox icon image description actions actionmenu chevron\"\n ;\n align-items: center;\n }\n\n .react-spectrum-ListViewItem-draghandle-container {\n grid-area: draghandle;\n width: var(--spectrum-global-dimension-size-250);\n display: flex;\n align-self: stretch;\n justify-self: stretch;\n justify-content: center;\n padding: var(--spectrum-global-dimension-size-25);\n padding-inline-start: var(--spectrum-global-dimension-size-40);\n\n\n .react-spectrum-ListViewItem-draghandle-button {\n width: var(--spectrum-global-dimension-size-200);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--spectrum-alias-border-radius-regular);\n\n &:focus-ring {\n box-shadow: inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus);\n outline: none;\n }\n }\n }\n\n .react-spectrum-ListViewItem-checkbox {\n grid-area: checkbox;\n align-items: center;\n justify-items: center;\n min-height: 0;\n height: 100%;\n > span {\n margin: 0;\n }\n }\n\n .react-spectrum-ListViewItem-icon,\n .react-spectrum-ListViewItem-image {\n grid-area: image;\n align-items: center;\n justify-items: center;\n padding-inline-end: var(--spectrum-global-dimension-size-100);\n }\n\n .react-spectrum-ListViewItem-image {\n border-radius: var(--spectrum-global-dimension-size-25);\n width: var(--spectrum-global-dimension-size-400);\n height: var(--spectrum-global-dimension-size-400);\n }\n\n .react-spectrum-ListViewItem-content,\n .react-spectrum-ListViewItem-description {\n flex-grow: 1;\n }\n\n .react-spectrum-ListViewItem-content {\n grid-area: content;\n }\n\n .react-spectrum-ListViewItem-description {\n grid-area: description;\n }\n\n .react-spectrum-ListViewItem-actions {\n grid-area: actions;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n .react-spectrum-ListViewItem-actionmenu {\n grid-area: actionmenu;\n }\n\n .react-spectrum-ListViewItem-parentIndicator {\n grid-area: chevron;\n padding-inline-start: var(--spectrum-global-dimension-size-75);\n }\n\n &.react-spectrum-ListViewItem-dragPreview {\n width: var(--spectrum-global-dimension-size-2400);\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n\n .react-spectrum-ListViewItem-grid {\n grid-template-areas:\n \"icon image content . badge\"\n \"icon image description . badge\"\n ;\n grid-template-columns: auto auto auto 1fr;\n }\n\n .react-spectrum-ListViewItem-badge {\n grid-area: badge;\n color: white;\n background: var(--spectrum-global-color-blue-400);\n padding: 0 8px;\n border-radius: var(--spectrum-alias-border-radius-regular);\n }\n\n &.react-spectrum-ListViewItem-dragPreview--multiple {\n position: relative;\n &:after {\n content: '';\n display: block;\n position: absolute;\n z-index: -1;\n top: 4px;\n inset-inline-start: 4px;\n width: 100%;\n height: 100%;\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n }\n }\n\n .react-spectrum-ListViewItem-actions,\n .react-spectrum-ListViewItem-actionmenu {\n display: none;\n }\n }\n\n /* give first and last items border-radius to match listview container */\n div:first-child > div[role=\"row\"] > & {\n border-start-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n div:last-child > div[role=\"row\"] > & {\n border-end-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n}\n\n.react-spectrum-ListView--compact .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-compact-padding-y);\n padding-bottom: var(--spectrum-listview-item-compact-padding-y);\n min-height: var(--spectrum-global-dimension-size-400);\n}\n\n.react-spectrum-ListView--spacious .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-spacious-padding-y);\n padding-bottom: var(--spectrum-listview-item-spacious-padding-y);\n min-height: var(--spectrum-global-dimension-size-600);\n}\n\n.react-spectrum-ListView--draggable .react-spectrum-ListViewItem {\n padding-inline-start: 0;\n}\n\n.react-spectrum-ListViewItem--draggable {\n .react-spectrum-ListViewItem-checkbox input {\n inset-inline-start: 0;\n }\n}\n\n.react-spectrum-ListView-centeredWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n &.react-spectrum-ListView-centeredWrapper--loadingMore {\n padding-top: var(--spectrum-global-dimension-size-50);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"loadingMore\": \"جارٍ تحميل المزيد...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"loadingMore\": \"Зареждане на още...\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"loadingMore\": \"Načítání dalších...\"\n}\n","{\n \"loading\": \"Indlæser...\",\n \"loadingMore\": \"Indlæser flere...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Mehr laden ...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"loadingMore\": \"Φόρτωση περισσότερων...\"\n}\n","{\n \"loading\": \"Loading…\",\n \"loadingMore\": \"Loading more…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"loadingMore\": \"Laadi rohkem...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"loadingMore\": \"Ladataan lisää…\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"loadingMore\": \"Chargement supplémentaire...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"loadingMore\": \"טוען עוד...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"loadingMore\": \"Továbbiak betöltése folyamatban…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n","{\n \"loading\": \"로드 중…\",\n \"loadingMore\": \"추가 로드 중…\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"loadingMore\": \"Laster inn flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Meer laden...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"loadingMore\": \"Wczytywanie większej liczby...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"loadingMore\": \"Carregando mais...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"loadingMore\": \"A carregar mais...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"loadingMore\": \"Se încarcă mai multe...\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"loadingMore\": \"Дополнительная загрузка...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"loadingMore\": \"Načítava sa viac...\"\n}\n","{\n \"loading\": \"Nalaganje ...\",\n \"loadingMore\": \"Nalaganje več vsebine ...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"loadingMore\": \"Läser in mer...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"loadingMore\": \"Daha fazla yükleniyor...\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"loadingMore\": \"Завантаження інших об’єктів...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"loadingMore\": \"正在加载更多...\"\n}\n","{\n \"loading\": \"載入中…\",\n \"loadingMore\": \"正在載入更多…\"\n}\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {Checkbox} from '@react-spectrum/checkbox';\nimport ChevronLeftMedium from '@spectrum-icons/ui/ChevronLeftMedium';\nimport ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport type {DraggableItemResult} from '@react-aria/dnd';\nimport {FocusRing, useFocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport ListGripper from '@spectrum-icons/ui/ListGripper';\nimport listStyles from './listview.css';\nimport {ListViewContext} from './ListView';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useContext, useRef} from 'react';\nimport {useButton} from '@react-aria/button';\nimport {useGridCell, useGridRow, useGridSelectionCheckbox} from '@react-aria/grid';\nimport {useHover, usePress} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\nexport function ListViewItem(props) {\n let {\n item,\n isEmphasized,\n dragHooks\n } = props;\n let cellNode = [...item.childNodes][0];\n let {state, dragState, onAction, isListDraggable, layout} = useContext(ListViewContext);\n\n let {direction} = useLocale();\n let rowRef = useRef<HTMLDivElement>();\n let cellRef = useRef<HTMLDivElement>();\n let {\n isFocusVisible: isFocusVisibleWithin,\n focusProps: focusWithinProps\n } = useFocusRing({within: true});\n let {isFocusVisible, focusProps} = useFocusRing();\n let allowsInteraction = state.selectionManager.selectionMode !== 'none' || onAction;\n let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);\n let isDraggable = dragState?.isDraggable(item.key) && !isDisabled;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {pressProps, isPressed} = usePress({isDisabled});\n let {rowProps} = useGridRow({\n node: item,\n isVirtualized: true,\n onAction: onAction ? () => onAction(item.key) : undefined,\n shouldSelectOnPressUp: isListDraggable\n }, state, rowRef);\n let {gridCellProps} = useGridCell({\n node: cellNode,\n focusMode: 'cell'\n }, state, cellRef);\n let draggableItem: DraggableItemResult;\n if (isListDraggable) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n draggableItem = dragHooks.useDraggableItem({key: item.key}, dragState);\n }\n const mergedProps = mergeProps(\n gridCellProps,\n hoverProps,\n focusWithinProps,\n focusProps\n );\n let {checkboxProps} = useGridSelectionCheckbox({...props, key: item.key}, state);\n\n let dragButtonRef = React.useRef();\n let {buttonProps} = useButton({\n ...draggableItem?.dragButtonProps,\n elementType: 'div'\n }, dragButtonRef);\n\n let chevron = null;\n if (item.props.hasChildItems) {\n chevron = direction === 'ltr'\n ? (\n <ChevronRightMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n )\n : (\n <ChevronLeftMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n );\n }\n\n let showCheckbox = state.selectionManager.selectionMode !== 'none' && state.selectionManager.selectionBehavior === 'toggle';\n let isSelected = state.selectionManager.isSelected(item.key);\n let showDragHandle = isDraggable && isFocusVisibleWithin;\n let {visuallyHiddenProps} = useVisuallyHidden();\n let isFirstRow = item.prevKey == null;\n let isLastRow = item.nextKey == null;\n // Figure out if the ListView content is equal or greater in height to the container. If so, we'll need to round the bottom\n // border corners of the last row when selected and we can get rid of the bottom border if it isn't selected to avoid border overlap\n // with bottom border\n let isFlushWithContainerBottom = false;\n if (isLastRow) {\n if (layout.getContentSize()?.height >= layout.virtualizer?.getVisibleRect().height) {\n isFlushWithContainerBottom = true;\n }\n }\n\n return (\n <div\n {...mergeProps(rowProps, pressProps, isDraggable && draggableItem?.dragProps)}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-row',\n {\n 'focus-ring': isFocusVisible\n }\n )\n }\n ref={rowRef}>\n <div\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem',\n {\n 'is-active': isPressed,\n 'is-focused': isFocusVisibleWithin,\n 'focus-ring': isFocusVisible,\n 'is-hovered': isHovered,\n 'is-selected': isSelected,\n 'is-next-selected': state.selectionManager.isSelected(item.nextKey),\n 'react-spectrum-ListViewItem--highlightSelection': state.selectionManager.selectionBehavior === 'replace' && (isSelected || state.selectionManager.isSelected(item.nextKey)),\n 'react-spectrum-ListViewItem--draggable': isDraggable,\n 'react-spectrum-ListViewItem--firstRow': isFirstRow,\n 'react-spectrum-ListViewItem--lastRow': isLastRow,\n 'react-spectrum-ListViewItem--isFlushBottom': isFlushWithContainerBottom\n }\n )\n }\n ref={cellRef}\n {...mergedProps}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n {isListDraggable &&\n <div className={listStyles['react-spectrum-ListViewItem-draghandle-container']}>\n {isDraggable &&\n <FocusRing focusRingClass={classNames(listStyles, 'focus-ring')}>\n <div\n {...buttonProps as React.HTMLAttributes<HTMLElement>}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem-draghandle-button'\n )\n }\n style={!showDragHandle ? {...visuallyHiddenProps.style} : {}}\n ref={dragButtonRef}\n draggable=\"true\">\n <ListGripper />\n </div>\n </FocusRing>\n }\n </div>\n }\n {showCheckbox &&\n <Checkbox\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-checkbox']}\n {...checkboxProps}\n isEmphasized={isEmphasized} />\n }\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n <ClearSlots>\n {chevron}\n </ClearSlots>\n </SlotProvider>\n </Grid>\n </div>\n </div>\n );\n}\n"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AAG,YAAK,CAAC,UAAU,CAAC,8BAAQ","sources":["packages/@react-spectrum/list/src/index.ts","packages/@react-spectrum/list/src/ListView.tsx","packages/@react-spectrum/list/src/DragPreview.tsx","packages/@react-spectrum/list/src/listview.css","packages/@react-spectrum/list/intl/*.js","packages/@react-spectrum/list/intl/ar-AE.json","packages/@react-spectrum/list/intl/bg-BG.json","packages/@react-spectrum/list/intl/cs-CZ.json","packages/@react-spectrum/list/intl/da-DK.json","packages/@react-spectrum/list/intl/de-DE.json","packages/@react-spectrum/list/intl/el-GR.json","packages/@react-spectrum/list/intl/en-US.json","packages/@react-spectrum/list/intl/es-ES.json","packages/@react-spectrum/list/intl/et-EE.json","packages/@react-spectrum/list/intl/fi-FI.json","packages/@react-spectrum/list/intl/fr-FR.json","packages/@react-spectrum/list/intl/he-IL.json","packages/@react-spectrum/list/intl/hr-HR.json","packages/@react-spectrum/list/intl/hu-HU.json","packages/@react-spectrum/list/intl/it-IT.json","packages/@react-spectrum/list/intl/ja-JP.json","packages/@react-spectrum/list/intl/ko-KR.json","packages/@react-spectrum/list/intl/lt-LT.json","packages/@react-spectrum/list/intl/lv-LV.json","packages/@react-spectrum/list/intl/nb-NO.json","packages/@react-spectrum/list/intl/nl-NL.json","packages/@react-spectrum/list/intl/pl-PL.json","packages/@react-spectrum/list/intl/pt-BR.json","packages/@react-spectrum/list/intl/pt-PT.json","packages/@react-spectrum/list/intl/ro-RO.json","packages/@react-spectrum/list/intl/ru-RU.json","packages/@react-spectrum/list/intl/sk-SK.json","packages/@react-spectrum/list/intl/sl-SI.json","packages/@react-spectrum/list/intl/sr-SP.json","packages/@react-spectrum/list/intl/sv-SE.json","packages/@react-spectrum/list/intl/tr-TR.json","packages/@react-spectrum/list/intl/uk-UA.json","packages/@react-spectrum/list/intl/zh-CN.json","packages/@react-spectrum/list/intl/zh-TW.json","packages/@react-spectrum/list/src/ListViewItem.tsx"],"sourcesContent":["export {ListView} from './ListView';\nexport {Item} from '@react-stately/collections';\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n AriaLabelingProps,\n AsyncLoadable,\n CollectionBase,\n DOMProps,\n DOMRef,\n LoadingState,\n MultipleSelection,\n SpectrumSelectionProps,\n StyleProps\n} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport type {DraggableCollectionState} from '@react-stately/dnd';\nimport {DragHooks} from '@react-spectrum/dnd';\nimport {DragPreview} from './DragPreview';\nimport {GridCollection, GridState, useGridState} from '@react-stately/grid';\nimport {GridKeyboardDelegate, useGrid} from '@react-aria/grid';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListLayout} from '@react-stately/layout';\nimport {ListState, useListState} from '@react-stately/list';\nimport listStyles from './listview.css';\nimport {ListViewItem} from './ListViewItem';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useContext, useMemo, useRef} from 'react';\nimport {useCollator, useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useProvider} from '@react-spectrum/provider';\nimport {Virtualizer} from '@react-aria/virtualizer';\n\ninterface ListViewContextValue<T> {\n state: GridState<T, GridCollection<any>>,\n keyboardDelegate: GridKeyboardDelegate<T, GridCollection<any>>,\n dragState: DraggableCollectionState,\n onAction:(key: string) => void,\n isListDraggable: boolean,\n layout: ListLayout<T>\n}\n\nexport const ListViewContext = React.createContext<ListViewContextValue<unknown>>(null);\n\nconst ROW_HEIGHTS = {\n compact: {\n medium: 32,\n large: 40\n },\n regular: {\n medium: 40,\n large: 50\n },\n spacious: {\n medium: 48,\n large: 60\n }\n};\n\nexport function useListLayout<T>(state: ListState<T>, density: ListViewProps<T>['density']) {\n let {scale} = useProvider();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let isEmpty = state.collection.size === 0;\n let layout = useMemo(() =>\n new ListLayout<T>({\n estimatedRowHeight: ROW_HEIGHTS[density][scale],\n padding: 0,\n collator,\n loaderHeight: isEmpty ? null : ROW_HEIGHTS[density][scale]\n })\n , [collator, scale, density, isEmpty]);\n\n layout.collection = state.collection;\n layout.disabledKeys = state.disabledKeys;\n return layout;\n}\n\ninterface ListViewProps<T> extends CollectionBase<T>, DOMProps, AriaLabelingProps, StyleProps, MultipleSelection, SpectrumSelectionProps, Omit<AsyncLoadable, 'isLoading'> {\n /**\n * Sets the amount of vertical padding within each cell.\n * @default 'regular'\n */\n density?: 'compact' | 'regular' | 'spacious',\n /** Whether the ListView should be displayed with a quiet style. */\n isQuiet?: boolean,\n /** The current loading state of the ListView. Determines whether or not the progress circle should be shown. */\n loadingState?: LoadingState,\n /** Sets what the ListView should render when there is no content to display. */\n renderEmptyState?: () => JSX.Element,\n /**\n * The duration of animated layout changes, in milliseconds. Used by the Virtualizer.\n * @default 0\n */\n transitionDuration?: number,\n /**\n * Handler that is called when a user performs an action on an item. The exact user event depends on\n * the collection's `selectionBehavior` prop and the interaction modality.\n */\n onAction?: (key: string) => void,\n /**\n * The drag hooks returned by `useDragHooks` used to enable drag and drop behavior for the ListView. See the\n * [docs](https://react-spectrum.adobe.com/react-spectrum/useDragHooks.html) for more info.\n */\n dragHooks?: DragHooks\n}\n\nfunction ListView<T extends object>(props: ListViewProps<T>, ref: DOMRef<HTMLDivElement>) {\n let {\n density = 'regular',\n onLoadMore,\n loadingState,\n isQuiet,\n transitionDuration = 0,\n onAction,\n dragHooks\n } = props;\n let isListDraggable = !!dragHooks;\n let dragHooksProvided = useRef(isListDraggable);\n if (dragHooksProvided.current !== isListDraggable) {\n console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n }\n let domRef = useDOMRef(ref);\n let {collection} = useListState(props);\n let formatMessage = useMessageFormatter(intlMessages);\n let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';\n\n let {styleProps} = useStyleProps(props);\n let {direction, locale} = useLocale();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let gridCollection = useMemo(() => new GridCollection({\n columnCount: 1,\n items: [...collection].map(item => ({\n ...item,\n hasChildNodes: true,\n childNodes: [{\n key: `cell-${item.key}`,\n type: 'cell',\n index: 0,\n value: null,\n level: 0,\n rendered: null,\n textValue: item.textValue,\n hasChildNodes: false,\n childNodes: []\n }]\n }))\n }), [collection]);\n let state = useGridState({\n ...props,\n collection: gridCollection,\n focusMode: 'cell',\n selectionBehavior: props.selectionStyle === 'highlight' ? 'replace' : 'toggle'\n });\n let layout = useListLayout(state, props.density || 'regular');\n let keyboardDelegate = useMemo(() => new GridKeyboardDelegate({\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n ref: domRef,\n direction,\n collator,\n // Focus the ListView cell instead of the row so that focus doesn't change with left/right arrow keys when there aren't any\n // focusable children in the cell.\n focusMode: 'cell'\n }), [state, domRef, direction, collator]);\n\n let provider = useProvider();\n let dragState: DraggableCollectionState;\n if (isListDraggable) {\n dragState = dragHooks.useDraggableCollectionState({\n collection: state.collection,\n selectionManager: state.selectionManager,\n renderPreview(draggingKeys, draggedKey) {\n let item = state.collection.getItem(draggedKey);\n let itemCount = draggingKeys.size;\n let itemHeight = layout.getLayoutInfo(draggedKey).rect.height;\n return <DragPreview item={item} itemCount={itemCount} itemHeight={itemHeight} provider={provider} locale={locale} />;\n }\n });\n }\n\n let {gridProps} = useGrid({\n ...props,\n isVirtualized: true,\n keyboardDelegate\n }, state, domRef);\n\n // Sync loading state into the layout.\n layout.isLoading = isLoading;\n\n let focusedKey = state.selectionManager.focusedKey;\n let focusedItem = gridCollection.getItem(state.selectionManager.focusedKey);\n if (focusedItem?.parentKey != null) {\n focusedKey = focusedItem.parentKey;\n }\n\n return (\n <ListViewContext.Provider value={{state, keyboardDelegate, dragState, onAction, isListDraggable, layout}}>\n <Virtualizer\n {...gridProps}\n {...styleProps}\n isLoading={isLoading}\n onLoadMore={onLoadMore}\n ref={domRef}\n focusedKey={focusedKey}\n scrollDirection=\"vertical\"\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView',\n `react-spectrum-ListView--${density}`,\n 'react-spectrum-ListView--emphasized',\n {\n 'react-spectrum-ListView--quiet': isQuiet,\n 'react-spectrum-ListView--draggable': isListDraggable,\n 'react-spectrum-ListView--loadingMore': loadingState === 'loadingMore'\n },\n styleProps.className\n )\n }\n layout={layout}\n collection={gridCollection}\n transitionDuration={transitionDuration}>\n {(type, item) => {\n if (type === 'item') {\n return (\n <ListViewItem item={item} isEmphasized dragHooks={dragHooks} />\n );\n } else if (type === 'loader') {\n return (\n <CenteredWrapper>\n <ProgressCircle\n isIndeterminate\n aria-label={state.collection.size > 0 ? formatMessage('loadingMore') : formatMessage('loading')} />\n </CenteredWrapper>\n );\n } else if (type === 'placeholder') {\n let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;\n if (emptyState == null) {\n return null;\n }\n\n return (\n <CenteredWrapper>\n {emptyState}\n </CenteredWrapper>\n );\n }\n\n }}\n </Virtualizer>\n </ListViewContext.Provider>\n );\n}\n\nfunction CenteredWrapper({children}) {\n let {state} = useContext(ListViewContext);\n return (\n <div\n role=\"row\"\n aria-rowindex={state.collection.size + 1}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-centeredWrapper',\n {\n 'react-spectrum-ListView-centeredWrapper--loadingMore': state.collection.size > 0\n }\n )}>\n <div role=\"gridcell\">\n {children}\n </div>\n </div>\n );\n}\n\n/**\n * Lists display a linear collection of data. They allow users to quickly scan, sort, compare, and take action on large amounts of data.\n */\nconst _ListView = React.forwardRef(ListView) as <T>(props: ListViewProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ListView as ListView};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {classNames, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {Grid} from '@react-spectrum/layout';\nimport {GridNode} from '@react-types/grid';\nimport listStyles from './listview.css';\nimport {Provider} from '@react-spectrum/provider';\nimport {ProviderContext} from '@react-types/provider';\nimport React from 'react';\n\ninterface DragPreviewProps {\n item: GridNode<any>,\n itemCount: number,\n itemHeight: number,\n provider: ProviderContext,\n locale: string\n}\n\nexport function DragPreview(props: DragPreviewProps) {\n let {\n item,\n itemCount,\n itemHeight,\n provider,\n locale\n } = props;\n\n let isDraggingMultiple = itemCount > 1;\n\n return (\n <Provider\n {...provider}\n locale={locale}\n UNSAFE_style={{background: 'none'}}>\n <div style={{height: itemHeight}} className={classNames(listStyles, 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple})}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n {isDraggingMultiple &&\n <div className={classNames(listStyles, 'react-spectrum-ListViewItem-badge')}>{itemCount}</div>\n }\n </SlotProvider>\n </Grid>\n </div>\n </Provider>\n );\n}\n","\n:root {\n --spectrum-listview-item-compact-padding-y: var(--spectrum-global-dimension-size-50);\n --spectrum-listview-item-regular-padding-y: var(--spectrum-global-dimension-size-85);\n --spectrum-listview-item-spacious-padding-y: var(--spectrum-global-dimension-size-100);\n --spectrum-listview-border-width: var(--spectrum-table-border-size, var(--spectrum-alias-border-size-thin));\n --spectrum-listview-border-radius: var(--spectrum-table-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-listview-item-border-radius: calc(var(--spectrum-listview-border-radius) - var(--spectrum-listview-border-width));\n --spectrum-listview-row-sticky-focus-indicator-width: 3px;\n}\n\n.react-spectrum-ListView {\n box-sizing: border-box;\n border-color: var(--spectrum-table-border-color, var(--spectrum-alias-border-color-mid));\n border-style: solid;\n position: relative;\n border-width: var(--spectrum-listview-border-width);\n border-radius: var(--spectrum-listview-border-radius);\n overflow: auto;\n vertical-align: var(--spectrum-table-cell-vertical-alignment);\n border-collapse: separate;\n border-spacing: 0;\n transform: translate3d(0, 0, 0);\n padding: 0;\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n outline: 0;\n user-select: none;\n\n .react-spectrum-ListView-row {\n outline: none;\n }\n\n &.react-spectrum-ListView--emphasized {\n .react-spectrum-ListViewItem {\n /* common pseudoelement for box shadows */\n &:after {\n content: '';\n display: block;\n position: absolute;\n inset-inline-start: 0;\n inset-inline-end: 0;\n inset-block-end: 0;\n inset-block-start: 0;\n z-index: 3;\n pointer-events: none;\n }\n\n /* Box shadow for bottom border for non-selected rows that is immmediately above a selected row. */\n &.is-next-selected {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-selected);\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-selected-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-selected-key-focus);\n }\n\n /* Box shadow for left, right, and bottom border for selected rows. */\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n\n /* Box shadow for left, right, bottom, and top border for first row when selected (needs 1px top blue border). */\n &.react-spectrum-ListViewItem--firstRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500), inset 0 1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n\n /* Box shadow for left, right, and bottom border for last row when selected (needs 1px bottom blue border). */\n &.react-spectrum-ListViewItem--lastRow {\n &:after {\n box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);\n }\n }\n }\n }\n\n &:not(.react-spectrum-ListView--quiet) {\n .react-spectrum-ListViewItem {\n /* Box shadow for bottom border for non-selected rows that aren't immediatly above a selected row (grey border bottom). */\n /* Also omit bottom border for last row if the total content height of the ListView is equal or greater than the height of the container. This avoids overlapping bottom borders. */\n &:not(.is-selected):not(.is-next-selected):not(.react-spectrum-ListViewItem--isFlushBottom) {\n &:after {\n box-shadow: inset 0 -1px 0 0 var(--spectrum-table-cell-border-color);\n }\n }\n\n &.react-spectrum-ListViewItem--firstRow.is-selected {\n &:after {\n border-start-start-radius: var(--spectrum-listview-item-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n\n &:not(.react-spectrum-ListView--loadingMore) {\n .react-spectrum-ListViewItem--lastRow.react-spectrum-ListViewItem--isFlushBottom.is-selected {\n &:after {\n border-end-start-radius: var(--spectrum-listview-item-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-border-radius);\n }\n }\n }\n }\n }\n}\n\n.react-spectrum-ListView-row {\n cursor: default;\n /* Not sticky because listview is a single column. If we want to make sticky, will need a cell wrapper like TableView for display: inline-block */\n &:focus-ring {\n &:before {\n content: '';\n position: absolute;\n inset-block-start: 0;\n inset-block-end: 0;\n inset-inline-start: 0;\n width: var(--spectrum-listview-row-sticky-focus-indicator-width);\n z-index: 4;\n background: var(--spectrum-selectlist-option-focus-indicator-color);\n }\n }\n}\n\n.react-spectrum-ListView--quiet {\n background-color: var(--spectrum-alias-background-color-transparent);\n border-width: 0;\n border-radius: 0;\n}\n\n.react-spectrum-ListViewItem {\n display: grid; /* TODO: define grid areas */\n box-sizing: border-box;\n font-size: var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default));\n font-weight: var(--spectrum-table-cell-text-font-weight, var(--spectrum-global-font-weight-regular));\n line-height: calc(var(--spectrum-table-cell-text-size, var(--spectrum-alias-font-size-default)) * var(--spectrum-table-cell-text-line-height, var(--spectrum-alias-body-text-line-height)) - 1px);\n padding: var(--spectrum-listview-item-regular-padding-y) var(--spectrum-global-dimension-size-160);\n position: relative;\n /*background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));*/\n color: var(--spectrum-table-cell-text-color, var(--spectrum-alias-text-color));\n outline: 0;\n min-height: var(--spectrum-global-dimension-size-500);\n\n &.is-hovered,\n &.is-focused {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-down);\n }\n\n &.is-selected {\n background-color: var(--spectrum-table-row-background-color-hover);\n\n &.is-hovered,\n &.is-active {\n background-color: var(--spectrum-table-row-background-color-hover);\n }\n\n &:focus-ring {\n background-color: var(--spectrum-table-row-background-color-selected-key-focus);\n }\n }\n\n &.has-checkbox {\n /* have to eliminate vertical padding to allow proper vertical alignment */\n padding-top: 0px;\n padding-bottom: 0px;\n }\n\n .react-spectrum-ListViewItem-grid {\n display: grid;\n grid-template-columns: auto auto auto auto 1fr auto auto;\n grid-template-rows: 1fr auto;\n grid-template-areas:\n \"draghandle checkbox icon image content actions actionmenu chevron\"\n \"draghandle checkbox icon image description actions actionmenu chevron\"\n ;\n align-items: center;\n }\n\n .react-spectrum-ListViewItem-draghandle-container {\n grid-area: draghandle;\n width: var(--spectrum-global-dimension-size-250);\n display: flex;\n align-self: stretch;\n justify-self: stretch;\n justify-content: center;\n padding: var(--spectrum-global-dimension-size-25);\n padding-inline-start: var(--spectrum-global-dimension-size-40);\n\n\n .react-spectrum-ListViewItem-draghandle-button {\n width: var(--spectrum-global-dimension-size-200);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--spectrum-alias-border-radius-regular);\n\n &:focus-ring {\n box-shadow: inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus);\n outline: none;\n }\n }\n }\n\n .react-spectrum-ListViewItem-checkbox {\n grid-area: checkbox;\n align-items: center;\n justify-items: center;\n min-height: 0;\n height: 100%;\n > span {\n margin: 0;\n }\n }\n\n .react-spectrum-ListViewItem-icon,\n .react-spectrum-ListViewItem-image {\n grid-area: image;\n align-items: center;\n justify-items: center;\n padding-inline-end: var(--spectrum-global-dimension-size-100);\n }\n\n .react-spectrum-ListViewItem-image {\n border-radius: var(--spectrum-global-dimension-size-25);\n width: var(--spectrum-global-dimension-size-400);\n height: var(--spectrum-global-dimension-size-400);\n }\n\n .react-spectrum-ListViewItem-content,\n .react-spectrum-ListViewItem-description {\n flex-grow: 1;\n }\n\n .react-spectrum-ListViewItem-content {\n grid-area: content;\n }\n\n .react-spectrum-ListViewItem-description {\n grid-area: description;\n }\n\n .react-spectrum-ListViewItem-actions {\n grid-area: actions;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n .react-spectrum-ListViewItem-actionmenu {\n grid-area: actionmenu;\n }\n\n .react-spectrum-ListViewItem-parentIndicator {\n grid-area: chevron;\n padding-inline-start: var(--spectrum-global-dimension-size-75);\n }\n\n &.react-spectrum-ListViewItem-dragPreview {\n width: var(--spectrum-global-dimension-size-2400);\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n\n .react-spectrum-ListViewItem-grid {\n grid-template-areas:\n \"icon image content . badge\"\n \"icon image description . badge\"\n ;\n grid-template-columns: auto auto auto 1fr;\n }\n\n .react-spectrum-ListViewItem-badge {\n grid-area: badge;\n color: white;\n background: var(--spectrum-global-color-blue-400);\n padding: 0 8px;\n border-radius: var(--spectrum-alias-border-radius-regular);\n }\n\n &.react-spectrum-ListViewItem-dragPreview--multiple {\n position: relative;\n &:after {\n content: '';\n display: block;\n position: absolute;\n z-index: -1;\n top: 4px;\n inset-inline-start: 4px;\n width: 100%;\n height: 100%;\n border: 1px solid var(--spectrum-dropzone-border-color-selected-hover);\n border-radius: var(--spectrum-alias-border-radius-regular);\n background-color: var(--spectrum-table-background-color, var(--spectrum-global-color-gray-50));\n }\n }\n\n .react-spectrum-ListViewItem-actions,\n .react-spectrum-ListViewItem-actionmenu {\n display: none;\n }\n }\n\n /* give first and last items border-radius to match listview container */\n div:first-child > div[role=\"row\"] > & {\n border-start-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-start-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n div:last-child > div[role=\"row\"] > & {\n border-end-start-radius: var(--spectrum-listview-item-start-end-border-radius);\n border-end-end-radius: var(--spectrum-listview-item-start-end-border-radius);\n }\n}\n\n.react-spectrum-ListView--compact .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-compact-padding-y);\n padding-bottom: var(--spectrum-listview-item-compact-padding-y);\n min-height: var(--spectrum-global-dimension-size-400);\n}\n\n.react-spectrum-ListView--spacious .react-spectrum-ListViewItem {\n padding-top: var(--spectrum-listview-item-spacious-padding-y);\n padding-bottom: var(--spectrum-listview-item-spacious-padding-y);\n min-height: var(--spectrum-global-dimension-size-600);\n}\n\n.react-spectrum-ListView--draggable .react-spectrum-ListViewItem {\n padding-inline-start: 0;\n}\n\n.react-spectrum-ListViewItem--draggable {\n .react-spectrum-ListViewItem-checkbox input {\n inset-inline-start: 0;\n }\n}\n\n.react-spectrum-ListView-centeredWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n &.react-spectrum-ListView-centeredWrapper--loadingMore {\n padding-top: var(--spectrum-global-dimension-size-50);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"loadingMore\": \"جارٍ تحميل المزيد...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"loadingMore\": \"Зареждане на още...\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"loadingMore\": \"Načítání dalších...\"\n}\n","{\n \"loading\": \"Indlæser...\",\n \"loadingMore\": \"Indlæser flere...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Mehr laden ...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"loadingMore\": \"Φόρτωση περισσότερων...\"\n}\n","{\n \"loading\": \"Loading…\",\n \"loadingMore\": \"Loading more…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"loadingMore\": \"Laadi rohkem...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"loadingMore\": \"Ladataan lisää…\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"loadingMore\": \"Chargement supplémentaire...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"loadingMore\": \"טוען עוד...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"loadingMore\": \"Továbbiak betöltése folyamatban…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n","{\n \"loading\": \"로드 중…\",\n \"loadingMore\": \"추가 로드 중…\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"loadingMore\": \"Laster inn flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Meer laden...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"loadingMore\": \"Wczytywanie większej liczby...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"loadingMore\": \"Carregando mais...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"loadingMore\": \"A carregar mais...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"loadingMore\": \"Se încarcă mai multe...\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"loadingMore\": \"Дополнительная загрузка...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"loadingMore\": \"Načítava sa viac...\"\n}\n","{\n \"loading\": \"Nalaganje ...\",\n \"loadingMore\": \"Nalaganje več vsebine ...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"loadingMore\": \"Läser in mer...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"loadingMore\": \"Daha fazla yükleniyor...\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"loadingMore\": \"Завантаження інших об’єктів...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"loadingMore\": \"正在加载更多...\"\n}\n","{\n \"loading\": \"載入中…\",\n \"loadingMore\": \"正在載入更多…\"\n}\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {Checkbox} from '@react-spectrum/checkbox';\nimport ChevronLeftMedium from '@spectrum-icons/ui/ChevronLeftMedium';\nimport ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport type {DraggableItemResult} from '@react-aria/dnd';\nimport {FocusRing, useFocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport ListGripper from '@spectrum-icons/ui/ListGripper';\nimport listStyles from './listview.css';\nimport {ListViewContext} from './ListView';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useContext, useRef} from 'react';\nimport {useButton} from '@react-aria/button';\nimport {useGridCell, useGridRow, useGridSelectionCheckbox} from '@react-aria/grid';\nimport {useHover, usePress} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\nexport function ListViewItem(props) {\n let {\n item,\n isEmphasized,\n dragHooks\n } = props;\n let cellNode = [...item.childNodes][0];\n let {state, dragState, onAction, isListDraggable, layout} = useContext(ListViewContext);\n\n let {direction} = useLocale();\n let rowRef = useRef<HTMLDivElement>();\n let cellRef = useRef<HTMLDivElement>();\n let {\n isFocusVisible: isFocusVisibleWithin,\n focusProps: focusWithinProps\n } = useFocusRing({within: true});\n let {isFocusVisible, focusProps} = useFocusRing();\n let allowsInteraction = state.selectionManager.selectionMode !== 'none' || onAction;\n let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);\n let isDraggable = dragState?.isDraggable(item.key) && !isDisabled;\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {pressProps, isPressed} = usePress({isDisabled});\n let {rowProps} = useGridRow({\n node: item,\n isVirtualized: true,\n onAction: onAction ? () => onAction(item.key) : undefined,\n shouldSelectOnPressUp: isListDraggable\n }, state, rowRef);\n let {gridCellProps} = useGridCell({\n node: cellNode,\n focusMode: 'cell'\n }, state, cellRef);\n let draggableItem: DraggableItemResult;\n if (isListDraggable) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n draggableItem = dragHooks.useDraggableItem({key: item.key}, dragState);\n }\n const mergedProps = mergeProps(\n gridCellProps,\n hoverProps,\n focusWithinProps,\n focusProps\n );\n let {checkboxProps} = useGridSelectionCheckbox({...props, key: item.key}, state);\n\n let dragButtonRef = React.useRef();\n let {buttonProps} = useButton({\n ...draggableItem?.dragButtonProps,\n elementType: 'div'\n }, dragButtonRef);\n\n let chevron = null;\n if (item.props.hasChildItems) {\n chevron = direction === 'ltr'\n ? (\n <ChevronRightMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n )\n : (\n <ChevronLeftMedium\n aria-hidden=\"true\"\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-parentIndicator']} />\n );\n }\n\n let showCheckbox = state.selectionManager.selectionMode !== 'none' && state.selectionManager.selectionBehavior === 'toggle';\n let isSelected = state.selectionManager.isSelected(item.key);\n let showDragHandle = isDraggable && isFocusVisibleWithin;\n let {visuallyHiddenProps} = useVisuallyHidden();\n let isFirstRow = item.prevKey == null;\n let isLastRow = item.nextKey == null;\n // Figure out if the ListView content is equal or greater in height to the container. If so, we'll need to round the bottom\n // border corners of the last row when selected and we can get rid of the bottom border if it isn't selected to avoid border overlap\n // with bottom border\n let isFlushWithContainerBottom = false;\n if (isLastRow) {\n if (layout.getContentSize()?.height >= layout.virtualizer?.getVisibleRect().height) {\n isFlushWithContainerBottom = true;\n }\n }\n\n return (\n <div\n {...mergeProps(rowProps, pressProps, isDraggable && draggableItem?.dragProps)}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListView-row',\n {\n 'focus-ring': isFocusVisible\n }\n )\n }\n ref={rowRef}>\n <div\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem',\n {\n 'is-active': isPressed,\n 'is-focused': isFocusVisibleWithin,\n 'focus-ring': isFocusVisible,\n 'is-hovered': isHovered,\n 'is-selected': isSelected,\n 'is-next-selected': state.selectionManager.isSelected(item.nextKey),\n 'react-spectrum-ListViewItem--highlightSelection': state.selectionManager.selectionBehavior === 'replace' && (isSelected || state.selectionManager.isSelected(item.nextKey)),\n 'react-spectrum-ListViewItem--draggable': isDraggable,\n 'react-spectrum-ListViewItem--firstRow': isFirstRow,\n 'react-spectrum-ListViewItem--lastRow': isLastRow,\n 'react-spectrum-ListViewItem--isFlushBottom': isFlushWithContainerBottom\n }\n )\n }\n ref={cellRef}\n {...mergedProps}>\n <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>\n {isListDraggable &&\n <div className={listStyles['react-spectrum-ListViewItem-draghandle-container']}>\n {isDraggable &&\n <FocusRing focusRingClass={classNames(listStyles, 'focus-ring')}>\n <div\n {...buttonProps as React.HTMLAttributes<HTMLElement>}\n className={\n classNames(\n listStyles,\n 'react-spectrum-ListViewItem-draghandle-button'\n )\n }\n style={!showDragHandle ? {...visuallyHiddenProps.style} : {}}\n ref={dragButtonRef}\n draggable=\"true\">\n <ListGripper />\n </div>\n </FocusRing>\n }\n </div>\n }\n {showCheckbox &&\n <Checkbox\n UNSAFE_className={listStyles['react-spectrum-ListViewItem-checkbox']}\n {...checkboxProps}\n isEmphasized={isEmphasized} />\n }\n <SlotProvider\n slots={{\n content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},\n description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},\n icon: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-icon'], size: 'M'},\n image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},\n link: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content'], isQuiet: true},\n actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},\n actionGroup: {\n UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],\n isQuiet: true,\n density: 'compact'\n },\n actionMenu: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actionmenu'], isQuiet: true}\n }}>\n {typeof item.rendered === 'string' ? <Content>{item.rendered}</Content> : item.rendered}\n <ClearSlots>\n {chevron}\n </ClearSlots>\n </SlotProvider>\n </Grid>\n </div>\n </div>\n );\n}\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;AEoFA,wBAAwB,CAAC,CAAE,SAAQ,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC;IACxK;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gHAAgH;IAChH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,IAAI,OAAO,CAAC;IACrC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AA0KD;;GAEG;AACH,OAAA,MAAM;UAA+E,OAAO,cAAc,CAAC;MAAM,YAAY,CAAC;AC3R9H,OAAO,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC","sources":["packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/DragPreview.tsx","packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/ListViewItem.tsx","packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/ListView.tsx","packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/index.ts","packages/@react-spectrum/list/src/index.ts"],"sourcesContent":[null,null,null,null,"export {ListView} from './ListView';\nexport {Item} from '@react-stately/collections';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AEoFA,wBAAwB,CAAC,CAAE,SAAQ,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC;IACxK;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gHAAgH;IAChH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,IAAI,OAAO,CAAC;IACrC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AA2KD;;GAEG;AACH,OAAA,MAAM;UAA+E,OAAO,cAAc,CAAC;MAAM,YAAY,CAAC;AC5R9H,OAAO,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC","sources":["packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/DragPreview.tsx","packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/ListViewItem.tsx","packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/ListView.tsx","packages/@react-spectrum/list/src/packages/@react-spectrum/list/src/index.ts","packages/@react-spectrum/list/src/index.ts"],"sourcesContent":[null,null,null,null,"export {ListView} from './ListView';\nexport {Item} from '@react-stately/collections';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/list",
3
- "version": "3.0.0-nightly.3216+1d6bdd52c",
3
+ "version": "3.0.0-nightly.3222+091d344bb",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,42 +32,42 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/button": "3.0.0-nightly.1517+1d6bdd52c",
36
- "@react-aria/focus": "3.0.0-nightly.1517+1d6bdd52c",
37
- "@react-aria/grid": "3.2.6-nightly.3216+1d6bdd52c",
38
- "@react-aria/i18n": "3.0.0-nightly.1517+1d6bdd52c",
39
- "@react-aria/interactions": "3.0.0-nightly.1517+1d6bdd52c",
40
- "@react-aria/listbox": "3.4.5-nightly.3216+1d6bdd52c",
41
- "@react-aria/separator": "3.0.0-nightly.1517+1d6bdd52c",
42
- "@react-aria/utils": "3.0.0-nightly.1517+1d6bdd52c",
43
- "@react-aria/virtualizer": "3.3.10-nightly.3216+1d6bdd52c",
44
- "@react-aria/visually-hidden": "3.0.0-nightly.1517+1d6bdd52c",
45
- "@react-spectrum/button": "3.0.0-nightly.1517+1d6bdd52c",
46
- "@react-spectrum/checkbox": "3.0.0-nightly.1517+1d6bdd52c",
47
- "@react-spectrum/dnd": "3.0.0-nightly.3216+1d6bdd52c",
48
- "@react-spectrum/layout": "3.2.6-nightly.3216+1d6bdd52c",
49
- "@react-spectrum/listbox": "3.5.8-nightly.3216+1d6bdd52c",
50
- "@react-spectrum/progress": "3.0.0-nightly.1517+1d6bdd52c",
51
- "@react-spectrum/text": "3.1.8-nightly.3216+1d6bdd52c",
52
- "@react-spectrum/textfield": "3.0.0-nightly.1517+1d6bdd52c",
53
- "@react-spectrum/utils": "3.0.0-nightly.1517+1d6bdd52c",
54
- "@react-spectrum/view": "3.0.0-nightly.1517+1d6bdd52c",
55
- "@react-stately/collections": "3.0.0-nightly.1517+1d6bdd52c",
56
- "@react-stately/grid": "3.1.4-nightly.3216+1d6bdd52c",
57
- "@react-stately/layout": "3.4.6-nightly.3216+1d6bdd52c",
58
- "@react-stately/list": "3.4.5-nightly.3216+1d6bdd52c",
59
- "@react-stately/virtualizer": "3.1.9-nightly.3216+1d6bdd52c",
60
- "@react-types/button": "3.4.5-nightly.3216+1d6bdd52c",
61
- "@react-types/grid": "3.0.4-nightly.3216+1d6bdd52c",
62
- "@react-types/listbox": "3.2.5-nightly.3216+1d6bdd52c",
63
- "@react-types/provider": "3.4.3-nightly.3216+1d6bdd52c",
64
- "@react-types/shared": "3.0.0-nightly.1517+1d6bdd52c",
65
- "@spectrum-icons/ui": "3.0.0-nightly.1517+1d6bdd52c"
35
+ "@react-aria/button": "3.0.0-nightly.1523+091d344bb",
36
+ "@react-aria/focus": "3.0.0-nightly.1523+091d344bb",
37
+ "@react-aria/grid": "3.2.6-nightly.3222+091d344bb",
38
+ "@react-aria/i18n": "3.0.0-nightly.1523+091d344bb",
39
+ "@react-aria/interactions": "3.0.0-nightly.1523+091d344bb",
40
+ "@react-aria/listbox": "3.4.5-nightly.3222+091d344bb",
41
+ "@react-aria/separator": "3.0.0-nightly.1523+091d344bb",
42
+ "@react-aria/utils": "3.0.0-nightly.1523+091d344bb",
43
+ "@react-aria/virtualizer": "3.3.10-nightly.3222+091d344bb",
44
+ "@react-aria/visually-hidden": "3.0.0-nightly.1523+091d344bb",
45
+ "@react-spectrum/button": "3.0.0-nightly.1523+091d344bb",
46
+ "@react-spectrum/checkbox": "3.0.0-nightly.1523+091d344bb",
47
+ "@react-spectrum/dnd": "3.0.0-nightly.3222+091d344bb",
48
+ "@react-spectrum/layout": "3.2.6-nightly.3222+091d344bb",
49
+ "@react-spectrum/listbox": "3.5.8-nightly.3222+091d344bb",
50
+ "@react-spectrum/progress": "3.0.0-nightly.1523+091d344bb",
51
+ "@react-spectrum/text": "3.1.8-nightly.3222+091d344bb",
52
+ "@react-spectrum/textfield": "3.0.0-nightly.1523+091d344bb",
53
+ "@react-spectrum/utils": "3.0.0-nightly.1523+091d344bb",
54
+ "@react-spectrum/view": "3.0.0-nightly.1523+091d344bb",
55
+ "@react-stately/collections": "3.0.0-nightly.1523+091d344bb",
56
+ "@react-stately/grid": "3.1.4-nightly.3222+091d344bb",
57
+ "@react-stately/layout": "3.4.6-nightly.3222+091d344bb",
58
+ "@react-stately/list": "3.4.5-nightly.3222+091d344bb",
59
+ "@react-stately/virtualizer": "3.1.9-nightly.3222+091d344bb",
60
+ "@react-types/button": "3.4.5-nightly.3222+091d344bb",
61
+ "@react-types/grid": "3.0.4-nightly.3222+091d344bb",
62
+ "@react-types/listbox": "3.2.5-nightly.3222+091d344bb",
63
+ "@react-types/provider": "3.4.3-nightly.3222+091d344bb",
64
+ "@react-types/shared": "3.0.0-nightly.1523+091d344bb",
65
+ "@spectrum-icons/ui": "3.0.0-nightly.1523+091d344bb"
66
66
  },
67
67
  "devDependencies": {
68
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1517+1d6bdd52c",
69
- "@react-aria/dnd": "3.0.0-nightly.3216+1d6bdd52c",
70
- "@react-stately/dnd": "3.0.0-nightly.3216+1d6bdd52c"
68
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1523+091d344bb",
69
+ "@react-aria/dnd": "3.0.0-nightly.3222+091d344bb",
70
+ "@react-stately/dnd": "3.0.0-nightly.3222+091d344bb"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@react-spectrum/provider": "^3.2.0",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "1d6bdd52c9d7a5cbfab84595281494f27e3af90b"
80
+ "gitHead": "091d344bb26237c3fe7c14fa80dd67c32de62b75"
81
81
  }
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import {classNames, SlotProvider} from '@react-spectrum/utils';
13
13
  import {Content} from '@react-spectrum/view';
14
- import {Direction} from '@react-types/shared';
15
14
  import {Grid} from '@react-spectrum/layout';
16
15
  import {GridNode} from '@react-types/grid';
17
16
  import listStyles from './listview.css';
@@ -22,16 +21,18 @@ import React from 'react';
22
21
  interface DragPreviewProps {
23
22
  item: GridNode<any>,
24
23
  itemCount: number,
24
+ itemHeight: number,
25
25
  provider: ProviderContext,
26
- direction: Direction
26
+ locale: string
27
27
  }
28
28
 
29
29
  export function DragPreview(props: DragPreviewProps) {
30
30
  let {
31
31
  item,
32
32
  itemCount,
33
+ itemHeight,
33
34
  provider,
34
- direction
35
+ locale
35
36
  } = props;
36
37
 
37
38
  let isDraggingMultiple = itemCount > 1;
@@ -39,8 +40,9 @@ export function DragPreview(props: DragPreviewProps) {
39
40
  return (
40
41
  <Provider
41
42
  {...provider}
42
- UNSAFE_style={{direction}}>
43
- <div className={classNames(listStyles, 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple})}>
43
+ locale={locale}
44
+ UNSAFE_style={{background: 'none'}}>
45
+ <div style={{height: itemHeight}} className={classNames(listStyles, 'react-spectrum-ListViewItem', 'react-spectrum-ListViewItem-dragPreview', {'react-spectrum-ListViewItem-dragPreview--multiple': isDraggingMultiple})}>
44
46
  <Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>
45
47
  <SlotProvider
46
48
  slots={{
package/src/ListView.tsx CHANGED
@@ -132,7 +132,7 @@ function ListView<T extends object>(props: ListViewProps<T>, ref: DOMRef<HTMLDiv
132
132
  let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
133
133
 
134
134
  let {styleProps} = useStyleProps(props);
135
- let {direction} = useLocale();
135
+ let {direction, locale} = useLocale();
136
136
  let collator = useCollator({usage: 'search', sensitivity: 'base'});
137
137
  let gridCollection = useMemo(() => new GridCollection({
138
138
  columnCount: 1,
@@ -179,7 +179,8 @@ function ListView<T extends object>(props: ListViewProps<T>, ref: DOMRef<HTMLDiv
179
179
  renderPreview(draggingKeys, draggedKey) {
180
180
  let item = state.collection.getItem(draggedKey);
181
181
  let itemCount = draggingKeys.size;
182
- return <DragPreview item={item} itemCount={itemCount} provider={provider} direction={direction} />;
182
+ let itemHeight = layout.getLayoutInfo(draggedKey).rect.height;
183
+ return <DragPreview item={item} itemCount={itemCount} itemHeight={itemHeight} provider={provider} locale={locale} />;
183
184
  }
184
185
  });
185
186
  }
package/src/listview.css CHANGED
@@ -59,6 +59,10 @@
59
59
  background-color: var(--spectrum-table-row-background-color-selected-hover);
60
60
  }
61
61
 
62
+ &:focus-ring {
63
+ background-color: var(--spectrum-table-row-background-color-selected-key-focus);
64
+ }
65
+
62
66
  /* Box shadow for left, right, and bottom border for selected rows. */
63
67
  &:after {
64
68
  box-shadow: inset 1px 0 0 0 var(--spectrum-global-color-blue-500), inset -1px 0 0 0 var(--spectrum-global-color-blue-500), inset 0 -1px 0 0 var(--spectrum-global-color-blue-500);