Skip to content

Conversation

@devongovett
Copy link
Member

Still need to fix the errors

@rspbot
Copy link

rspbot commented Dec 8, 2025

@rspbot
Copy link

rspbot commented Dec 8, 2025

@rspbot
Copy link

rspbot commented Dec 9, 2025

@reidbarber
Copy link
Member

Some of these are just temporary fixes until we get the API fixes in (mostly f7ec69e) We can revert those once #9264 is merged.

@reidbarber reidbarber marked this pull request as ready for review December 9, 2025 21:49
@rspbot
Copy link

rspbot commented Dec 9, 2025

});

export interface RowProps<T> extends Pick<RACRowProps<T>, 'id' | 'columns' | 'children' | 'textValue' | 'dependencies' | keyof GlobalDOMAttributes> {}
export interface RowProps<T> extends Pick<RACRowProps<T>, 'id' | 'columns' | 'isDisabled' | 'onAction' | 'children' | 'textValue' | 'dependencies' | keyof GlobalDOMAttributes>, LinkDOMProps {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prop type fixes

* SelectBoxGroup allows users to select one or more options from a list.
*/
export const SelectBoxGroup = /*#__PURE__*/ forwardRef(function SelectBoxGroup<T extends object>(props: SelectBoxGroupProps<T>, ref: DOMRef<HTMLDivElement>) {
export const SelectBoxGroup = /*#__PURE__*/ (forwardRef as forwardRefType)(function SelectBoxGroup<T extends object>(props: SelectBoxGroupProps<T>, ref: DOMRef<HTMLDivElement>) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Props type fix

@rspbot
Copy link

rspbot commented Dec 9, 2025

@rspbot
Copy link

rspbot commented Dec 9, 2025

@rspbot
Copy link

rspbot commented Dec 10, 2025

@rspbot
Copy link

rspbot commented Dec 10, 2025

// Read entries in directory and update state with relevant info.
let getFiles = async (dir) => {
let files = [];
let getFiles = async (dir: {getEntries(): AsyncIterable<{name: string, kind: string}>}): Promise<DirItem[]> => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use DirectoryDropItem as the type for this?

Suggested change
let getFiles = async (dir: {getEntries(): AsyncIterable<{name: string, kind: string}>}): Promise<DirItem[]> => {
let getFiles = async (dir: DirectoryDropItem): Promise<DirItem[]> => {

name: entry.name,
kind: entry.kind,
children: entry.kind === 'directory' ? await getFiles(entry) : []
children: entry.kind === 'directory' ? await getFiles(entry as any) : []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use DirectoryDropItem this shouldn't be necessary?

@rspbot
Copy link

rspbot commented Dec 10, 2025


export interface Pokemon {
id: number,
id?: number,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really optional? every pokemon has a number

let ref = useRef<HTMLDivElement>(null);
let [isSubmenuOpen, setIsSubmenuOpen] = useState(false);
let [hovered, setHovered] = useState('Option 1');
let [, setIsSubmenuOpen] = useState(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these needed?

Copy link
Member

@reidbarber reidbarber Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component was commented out for now. I think @devongovett might add it back later? Just wanted to clean it up so the build passes.

snowystinger
snowystinger previously approved these changes Dec 11, 2025
@rspbot
Copy link

rspbot commented Dec 11, 2025

@rspbot
Copy link

rspbot commented Dec 11, 2025

## API Changes

react-aria-components

/react-aria-components:RangeValue

+RangeValue <T> {
+  end: T
+  start: T
+}

@react-spectrum/s2

/@react-spectrum/s2:SelectBoxGroup

 SelectBoxGroup <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
+  children: ReactNode | ({}) => ReactNode
   defaultSelectedKeys?: 'all' | Iterable<Key>
   disabledKeys?: Iterable<Key>
   disallowEmptySelection?: boolean
   escapeKeyBehavior?: 'clearSelection' | 'none' = 'clearSelection'
   isDisabled?: boolean
   items?: Iterable<T>
   onBlur?: (FocusEvent<Target>) => void
   onFocus?: (FocusEvent<Target>) => void
   onFocusChange?: (boolean) => void
   onSelectionChange?: (Selection) => void
   orientation?: Orientation = 'vertical'
   selectedKeys?: 'all' | Iterable<Key>
   selectionMode?: 'single' | 'multiple' = 'single'
   slot?: string | null
   styles?: StylesProp
 }

/@react-spectrum/s2:Row

 Row <T extends {}> {
   children?: ReactNode | (T) => ReactElement
   columns?: Iterable<T>
   dependencies?: ReadonlyArray<any>
+  download?: boolean | string
+  href?: Href
+  hrefLang?: string
   id?: Key
+  isDisabled?: boolean
+  onAction?: () => void
+  ping?: string
+  referrerPolicy?: HTMLAttributeReferrerPolicy
+  rel?: string
+  routerOptions?: RouterOptions
+  target?: HTMLAttributeAnchorTarget
   textValue?: string
 }

/@react-spectrum/s2:SelectBoxGroupProps

 SelectBoxGroupProps <T> {
   UNSAFE_className?: UnsafeClassName
   UNSAFE_style?: CSSProperties
   aria-describedby?: string
   aria-details?: string
   aria-label?: string
   aria-labelledby?: string
   autoFocus?: boolean | FocusStrategy
-  children: ReactNode
+  children: ReactNode | (T) => ReactNode
   defaultSelectedKeys?: 'all' | Iterable<Key>
   disabledKeys?: Iterable<Key>
   disallowEmptySelection?: boolean
   escapeKeyBehavior?: 'clearSelection' | 'none' = 'clearSelection'
   isDisabled?: boolean
   items?: Iterable<T>
   onBlur?: (FocusEvent<Target>) => void
   onFocus?: (FocusEvent<Target>) => void
   onFocusChange?: (boolean) => void
   onSelectionChange?: (Selection) => void
   orientation?: Orientation = 'vertical'
   selectedKeys?: 'all' | Iterable<Key>
   selectionMode?: 'single' | 'multiple' = 'single'
   slot?: string | null
   styles?: StylesProp
 }

/@react-spectrum/s2:RowProps

 RowProps <T> {
   children?: ReactNode | (T) => ReactElement
   columns?: Iterable<T>
   dependencies?: ReadonlyArray<any>
+  download?: boolean | string
+  href?: Href
+  hrefLang?: string
   id?: Key
+  isDisabled?: boolean
+  onAction?: () => void
+  ping?: string
+  referrerPolicy?: HTMLAttributeReferrerPolicy
+  rel?: string
+  routerOptions?: RouterOptions
+  target?: HTMLAttributeAnchorTarget
   textValue?: string
 }

@devongovett devongovett added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit 97717d7 Dec 11, 2025
32 checks passed
@devongovett devongovett deleted the check-examples-s2 branch December 11, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants