@baseline-ui/core 1.1.0 → 1.2.0

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/index.d.ts CHANGED
@@ -3240,7 +3240,7 @@ interface DraggableCollectionStateOpts<T = object> extends Omit<DraggableCollect
3240
3240
  interface DragHooks<T = object> {
3241
3241
  useDraggableCollectionState?: (props: DraggableCollectionStateOpts<T>) => DraggableCollectionState;
3242
3242
  useDraggableCollection?: (props: DraggableCollectionOptions, state: DraggableCollectionState, ref: RefObject<HTMLElement | null>) => void;
3243
- useDraggableItem?: (props: DraggableItemProps, state: DraggableCollectionState) => DraggableItemResult;
3243
+ useDraggableItem?: (props: DraggableItemProps, state: DraggableCollectionState, ref?: RefObject<HTMLElement | null>) => DraggableItemResult;
3244
3244
  DragPreview?: typeof DragPreview;
3245
3245
  renderDragPreview?: (items: DragItem[]) => JSX.Element | {
3246
3246
  element: JSX.Element;
@@ -6901,8 +6901,10 @@ interface ListBoxProps extends StylingProps, Omit<AriaListBoxProps<ListItem> & A
6901
6901
  *
6902
6902
  * @param section ListSection
6903
6903
  * @param ref React.RefObject<HTMLDivElement>
6904
+ * @param headingProps ARIA props for the heading element — spread these onto the header's
6905
+ * root (and attach `ref`) so the section group's `aria-labelledby` resolves to it.
6904
6906
  */
6905
- renderSectionHeader?: (section: Node$1<ListItem>, ref: React__default.Ref<HTMLSpanElement>) => React__default.ReactNode;
6907
+ renderSectionHeader?: (section: Node$1<ListItem>, ref: React__default.Ref<HTMLSpanElement>, headingProps?: React__default.HTMLAttributes<HTMLElement>) => React__default.ReactNode;
6906
6908
  /** Whether to show the selected checkmark icon. */
6907
6909
  showSelectedIcon?: boolean;
6908
6910
  /** The label for the listbox. */
@@ -10269,7 +10271,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
10269
10271
 
10270
10272
  declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
10271
10273
 
10272
- declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isRequired" | "validate" | "isInvalid"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & React__default.RefAttributes<HTMLDivElement>>;
10274
+ declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "isRequired" | "validate" | "validationState" | "isInvalid"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & React__default.RefAttributes<HTMLDivElement>>;
10273
10275
 
10274
10276
  type TimeFieldProps = StylingProps & Omit<Omit<TimeFieldStateOptions, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isInvalid" | "isRequired" | "validate"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
10275
10277
 
@@ -10520,7 +10522,7 @@ type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale">
10520
10522
  pickerType?: DateFieldPickerType;
10521
10523
  };
10522
10524
 
10523
- declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "validationState" | "isRequired" | "validate" | "isInvalid" | "createCalendar"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & {
10525
+ declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "isRequired" | "validate" | "validationState" | "isInvalid" | "createCalendar"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & {
10524
10526
  pickerType?: DateFieldPickerType;
10525
10527
  } & React__default.RefAttributes<HTMLDivElement>>;
10526
10528