Conversation
# Conflicts: # packages/@react-spectrum/s2/src/TreeView.tsx # packages/@react-spectrum/s2/src/index.ts
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
LFDanLu
left a comment
There was a problem hiding this comment.
things look good to me in the docs/storybook, holding off on approval until we decide on what to do about the new RAC render props for the gridlist item
|
Build successful! 🎉 |
| isFirstItem: 'default' | ||
| }, | ||
| borderBottomStartRadius: { | ||
| isLastItem: 'default' |
There was a problem hiding this comment.
this should only be set if the last item is flush with the bottom of the container or the container scrolls
|
|
||
| export interface GridListItemRenderProps extends ItemRenderProps {} | ||
| export interface GridListItemRenderProps extends ItemRenderProps { | ||
| item: Node<unknown>, |
There was a problem hiding this comment.
I'd like to just add the id and not the full node, to match Table.
Also can you add JSDoc comments to these?
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
## API Changes
react-aria-components/react-aria-components:GridListItemRenderProps GridListItemRenderProps {
allowsDragging?: boolean
+ id?: Key
isDisabled: boolean
isDragging?: boolean
isDropTarget?: boolean
isFocusVisible: boolean
isFocused: boolean
isHovered: boolean
isPressed: boolean
isSelected: boolean
selectionBehavior: SelectionBehavior
selectionMode: SelectionMode
+ state: ListState<unknown>
}@react-spectrum/s2/@react-spectrum/s2:ListView+ListView <T extends {}> {
+ UNSAFE_className?: UnsafeClassName
+ UNSAFE_style?: CSSProperties
+ aria-describedby?: string
+ aria-details?: string
+ aria-label?: string
+ aria-labelledby?: string
+ autoFocus?: boolean | FocusStrategy
+ children: ReactNode | ({}) => ReactNode
+ defaultSelectedKeys?: 'all' | Iterable<Key>
+ dependencies?: ReadonlyArray<any>
+ disabledBehavior?: DisabledBehavior = "all"
+ disabledKeys?: Iterable<Key>
+ disallowEmptySelection?: boolean
+ disallowTypeAhead?: boolean = false
+ escapeKeyBehavior?: 'clearSelection' | 'none' = 'clearSelection'
+ hideLinkOutIcon?: boolean
+ id?: string
+ isQuiet?: boolean
+ items?: Iterable<T>
+ loadingState?: LoadingState
+ onAction?: (Key) => void
+ onLoadMore?: () => void
+ onSelectionChange?: (Selection) => void
+ overflowMode?: 'wrap' | 'truncate' = 'truncate'
+ renderActionBar?: ('all' | Set<Key>) => ReactElement
+ renderEmptyState?: (GridListRenderProps) => ReactNode
+ selectedKeys?: 'all' | Iterable<Key>
+ selectionMode?: SelectionMode
+ selectionStyle?: 'highlight' | 'checkbox' = 'checkbox'
+ shouldSelectOnPressUp?: boolean
+ slot?: string | null
+ styles?: StylesPropWithHeight
+}/@react-spectrum/s2:ListViewContext+ListViewContext {
+ UNTYPED
+}/@react-spectrum/s2:ListViewItem+ListViewItem {
+ children: ReactNode
+ download?: boolean | string
+ hasChildItems?: boolean
+ href?: Href
+ hrefLang?: string
+ id?: Key
+ isDisabled?: boolean
+ onAction?: () => void
+ onHoverChange?: (boolean) => void
+ onHoverEnd?: (HoverEvent) => void
+ onHoverStart?: (HoverEvent) => void
+ onPress?: (PressEvent) => void
+ onPressChange?: (boolean) => void
+ onPressEnd?: (PressEvent) => void
+ onPressStart?: (PressEvent) => void
+ onPressUp?: (PressEvent) => void
+ ping?: string
+ referrerPolicy?: HTMLAttributeReferrerPolicy
+ rel?: string
+ routerOptions?: RouterOptions
+ target?: HTMLAttributeAnchorTarget
+ textValue?: string
+ value?: T
+}/@react-spectrum/s2:ListViewProps+ListViewProps <T> {
+ UNSAFE_className?: UnsafeClassName
+ UNSAFE_style?: CSSProperties
+ aria-describedby?: string
+ aria-details?: string
+ aria-label?: string
+ aria-labelledby?: string
+ autoFocus?: boolean | FocusStrategy
+ children: ReactNode | (T) => ReactNode
+ defaultSelectedKeys?: 'all' | Iterable<Key>
+ dependencies?: ReadonlyArray<any>
+ disabledBehavior?: DisabledBehavior = "all"
+ disabledKeys?: Iterable<Key>
+ disallowEmptySelection?: boolean
+ disallowTypeAhead?: boolean = false
+ escapeKeyBehavior?: 'clearSelection' | 'none' = 'clearSelection'
+ hideLinkOutIcon?: boolean
+ id?: string
+ isQuiet?: boolean
+ items?: Iterable<T>
+ loadingState?: LoadingState
+ onAction?: (Key) => void
+ onLoadMore?: () => void
+ onSelectionChange?: (Selection) => void
+ overflowMode?: 'wrap' | 'truncate' = 'truncate'
+ renderActionBar?: ('all' | Set<Key>) => ReactElement
+ renderEmptyState?: (GridListRenderProps) => ReactNode
+ selectedKeys?: 'all' | Iterable<Key>
+ selectionMode?: SelectionMode
+ selectionStyle?: 'highlight' | 'checkbox' = 'checkbox'
+ shouldSelectOnPressUp?: boolean
+ slot?: string | null
+ styles?: StylesPropWithHeight
+}/@react-spectrum/s2:ListViewItemProps+ListViewItemProps {
+ children: ReactNode
+ download?: boolean | string
+ hasChildItems?: boolean
+ href?: Href
+ hrefLang?: string
+ id?: Key
+ isDisabled?: boolean
+ onAction?: () => void
+ onHoverChange?: (boolean) => void
+ onHoverEnd?: (HoverEvent) => void
+ onHoverStart?: (HoverEvent) => void
+ onPress?: (PressEvent) => void
+ onPressChange?: (boolean) => void
+ onPressEnd?: (PressEvent) => void
+ onPressStart?: (PressEvent) => void
+ onPressUp?: (PressEvent) => void
+ ping?: string
+ referrerPolicy?: HTMLAttributeReferrerPolicy
+ rel?: string
+ routerOptions?: RouterOptions
+ target?: HTMLAttributeAnchorTarget
+ textValue?: string
+ value?: T
+} |
|
https://www.chromatic.com/test?appId=5f0dd5ad2b5fc10022a2e320&id=69a23bcc996709ab539d4db6, looks like there is something up with storybook for some stories, digging. Don't think it is from changes in this PR |
|
think it should be fixed with #9712, I'll approve this for now |
…aseline-tracker * origin/main: feat(S2): S2 ListView (adobe#8878) refactor: Centralize expandedKeys logic in TreeCollection (adobe#9711) chore: Warn if user has interactive elements in their custom Picker value (adobe#9710) feat: S2 unavailable menu item (adobe#9657) fix: Ensure that opening a submenu via enter/space moves focus to first item in submenu (adobe#9691) fix: prevent docs crash by making template elements always append children into .content (adobe#9703) docs(RAC): Add TreeSection docs (adobe#9699) docs(S2): add Typography search view (adobe#9524) docs(S2): fix clipping in Picker custom value AvatarGroup example (adobe#9702) fix: patch additional methods so React doesnt break with template elements (adobe#9385) tentative fix (adobe#9635) docs(S2): fix icon import clipboard content to add underscore for icons starting with number (adobe#9698) feat(S2): add ActionBar support to TreeView (adobe#9695) fix: combobox interactoutside (adobe#9646) fix: skip native Date fast path when local timezone is overridden via setLocalTimeZone (adobe#9678) chore: update storybook to 9 (adobe#8634) docs: improve custom render value S2 Picker example (adobe#9682) # Conflicts: # yarn.lock

Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: