@baseline-ui/core 2.0.0 → 2.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
@@ -6592,9 +6592,16 @@ interface ActionButtonProps extends ActionButtonSharedProps {
6592
6592
  /**
6593
6593
  * The button's variant.
6594
6594
  *
6595
+ * The `success`, `warning` and `error` variants carry a support colour. Each
6596
+ * comes in three emphasis levels, mirroring `primary`/`secondary`/`tertiary`:
6597
+ * the bare name is the filled treatment, `-secondary` is a tinted fill and
6598
+ * `-tertiary` is an outline that fills with the support colour on hover and
6599
+ * on keyboard focus. When disabled, all three drop the support colour and
6600
+ * render in the neutral disabled treatment.
6601
+ *
6595
6602
  * @default primary
6596
6603
  */
6597
- variant?: "primary" | "secondary" | "tertiary" | "ghost" | "popover" | "toolbar" | "success" | "warning" | "error";
6604
+ variant?: "primary" | "secondary" | "tertiary" | "ghost" | "popover" | "toolbar" | "success" | "success-secondary" | "success-tertiary" | "warning" | "warning-secondary" | "warning-tertiary" | "error" | "error-secondary" | "error-tertiary";
6598
6605
  /** The button's label. */
6599
6606
  label: React__default.ReactNode;
6600
6607
  /** The button's icon before the label. */
@@ -7013,6 +7020,13 @@ interface ColorSwatchProps extends Omit<AriaColorSwatchProps, "colorName">, Styl
7013
7020
  * @default HelpIcon
7014
7021
  */
7015
7022
  indeterminateIcon?: React__default.FC<IconProps> | null;
7023
+ /**
7024
+ * Overrides the accessible label used when the swatch has no colour
7025
+ * applied.
7026
+ *
7027
+ * Message id: `bui.colorSwatch.none`. Defaults to `"None"`.
7028
+ */
7029
+ noneLabel?: string;
7016
7030
  }
7017
7031
 
7018
7032
  declare const ColorSwatch: React__default.ForwardRefExoticComponent<ColorSwatchProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -7163,7 +7177,9 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
7163
7177
  */
7164
7178
  storePickedColorKey?: string;
7165
7179
  /**
7166
- * The label to show on the add color button.
7180
+ * The label to show on the add color button that opens the color picker
7181
+ * for defining a new custom color. Not to be confused with `addLabel`,
7182
+ * which labels the "Add" confirmation button inside that picker.
7167
7183
  *
7168
7184
  * @default Add Color
7169
7185
  */
@@ -7180,6 +7196,52 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
7180
7196
  * @default Custom Colors
7181
7197
  */
7182
7198
  customColorsLabel?: string;
7199
+ /**
7200
+ * Overrides the label of the button that saves the custom color being
7201
+ * defined into the palette (shown inside the new-color picker in
7202
+ * `pickerMode="lazy"`). Not to be confused with `addColorButtonLabel`,
7203
+ * which labels the button that opens that picker.
7204
+ *
7205
+ * Message id: `bui.colorInput.add`. Defaults to `"Add"`.
7206
+ */
7207
+ addLabel?: string;
7208
+ /**
7209
+ * Overrides the label of the button that abandons the custom color being
7210
+ * defined (shown inside the new-color picker in `pickerMode="lazy"`).
7211
+ *
7212
+ * Message id: `bui.colorInput.cancel`. Defaults to `"Cancel"`.
7213
+ */
7214
+ cancelLabel?: string;
7215
+ /**
7216
+ * Overrides the accessible name of the dialog holding the color picker
7217
+ * used to define a new custom color, in `pickerMode="lazy"`.
7218
+ *
7219
+ * Message id: `bui.colorInput.newColor`. Defaults to `"New Custom Color"`.
7220
+ */
7221
+ newColorLabel?: string;
7222
+ /**
7223
+ * Overrides the accessible name of the control that switches the notation
7224
+ * a color is entered in (HEX, RGB).
7225
+ *
7226
+ * Message id: `bui.colorInput.colorFormat`. Defaults to `"Color Format"`.
7227
+ */
7228
+ colorFormatLabel?: string;
7229
+ /**
7230
+ * Overrides the accessible name of the group of predefined color swatches.
7231
+ *
7232
+ * Message id: `bui.colorInput.colorPresets`. Defaults to `"Color Presets"`.
7233
+ */
7234
+ colorPresetsLabel?: string;
7235
+ /**
7236
+ * Overrides the label of the swatch that clears the color selection, and the
7237
+ * accessible name of the trigger swatch while no color is set. Triggers that
7238
+ * render no swatch are unaffected; a custom `renderTriggerButton` must
7239
+ * forward the `noneLabel` it receives.
7240
+ *
7241
+ * Message ids: `bui.colorInput.noColor` (preset swatch),
7242
+ * `bui.colorSwatch.none` (trigger swatch). Both default to `"None"`.
7243
+ */
7244
+ noColorLabel?: string;
7183
7245
  /**
7184
7246
  * An optional function to render the custom trigger button.
7185
7247
  *
@@ -7192,7 +7254,7 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
7192
7254
  colorName?: string | boolean;
7193
7255
  triggerProps: AriaButtonProps<"button">;
7194
7256
  labelId?: string;
7195
- } & Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon">) => React__default.JSX.Element;
7257
+ } & Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon" | "noneLabel">) => React__default.JSX.Element;
7196
7258
  /**
7197
7259
  * Handler that is called when the user stops dragging or clicking on the
7198
7260
  * color picker. In case of presets, this is called when the user clicks on a
@@ -7205,6 +7267,20 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
7205
7267
  * @default false
7206
7268
  */
7207
7269
  isIndeterminate?: boolean;
7270
+ /**
7271
+ * Overrides the accessible name of the color trigger when the current
7272
+ * selection spans several different colors (`isIndeterminate` is `true`).
7273
+ *
7274
+ * Message id: `bui.colorInput.indeterminate`. Defaults to `"Indeterminate"`.
7275
+ */
7276
+ indeterminateLabel?: string;
7277
+ /**
7278
+ * Overrides the label of the swatch representing a fully transparent
7279
+ * color.
7280
+ *
7281
+ * Message id: `bui.colorInput.transparent`. Defaults to `"Transparent"`.
7282
+ */
7283
+ transparentLabel?: string;
7208
7284
  /**
7209
7285
  * Handler that is called when the user presses the trigger button. This can
7210
7286
  * be used to track events like clicks on the trigger button.
@@ -7222,11 +7298,11 @@ interface IconColorInputProps extends StylingProps, Omit<ColorInputProps, "rende
7222
7298
 
7223
7299
  declare const ColorInput: React__default.ForwardRefExoticComponent<ColorInputProps & React__default.RefAttributes<HTMLDivElement>>;
7224
7300
 
7225
- declare const IconColorInputButton: React__default.ForwardRefExoticComponent<Omit<ColorInputButtonProps, "color" | "children" | "labelPosition"> & {
7301
+ declare const IconColorInputButton: React__default.ForwardRefExoticComponent<Omit<ColorInputButtonProps, "children" | "color" | "labelPosition" | "noneLabel"> & {
7226
7302
  icon: React__default.FC<IconProps>;
7227
7303
  color?: string | null;
7228
7304
  } & React__default.RefAttributes<HTMLButtonElement>>;
7229
- interface ColorInputButtonProps extends Omit<ActionButtonProps, "label" | "className" | "style">, StylingProps, Pick<ColorInputProps, "colorLabel">, Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon"> {
7305
+ interface ColorInputButtonProps extends Omit<ActionButtonProps, "label" | "className" | "style">, StylingProps, Pick<ColorInputProps, "colorLabel">, Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon" | "noneLabel"> {
7230
7306
  isOpen: boolean;
7231
7307
  "aria-label"?: string;
7232
7308
  labelPosition?: "top" | "start";
@@ -7665,6 +7741,42 @@ interface CalendarBaseProps {
7665
7741
  * @default "title"
7666
7742
  */
7667
7743
  headerVariant?: CalendarHeaderVariant;
7744
+ /**
7745
+ * Overrides the accessible label of the button that moves the calendar forward one month.
7746
+ *
7747
+ * Message id: `bui.calendar.nextMonth`. Defaults to `"Next month"`.
7748
+ */
7749
+ nextMonthLabel?: string;
7750
+ /**
7751
+ * Overrides the accessible label of the button that moves the calendar back one month.
7752
+ *
7753
+ * Message id: `bui.calendar.previousMonth`. Defaults to `"Previous month"`.
7754
+ */
7755
+ previousMonthLabel?: string;
7756
+ /**
7757
+ * Overrides the accessible label of the button that moves the calendar forward one year.
7758
+ *
7759
+ * Message id: `bui.calendar.nextYear`. Defaults to `"Next year"`.
7760
+ */
7761
+ nextYearLabel?: string;
7762
+ /**
7763
+ * Overrides the accessible label of the button that moves the calendar back one year.
7764
+ *
7765
+ * Message id: `bui.calendar.previousYear`. Defaults to `"Previous year"`.
7766
+ */
7767
+ previousYearLabel?: string;
7768
+ /**
7769
+ * Overrides the accessible label of the dropdown that jumps the calendar to a chosen month.
7770
+ *
7771
+ * Message id: `bui.calendar.selectMonth`. Defaults to `"Select month"`.
7772
+ */
7773
+ selectMonthLabel?: string;
7774
+ /**
7775
+ * Overrides the accessible label of the dropdown that jumps the calendar to a chosen year.
7776
+ *
7777
+ * Message id: `bui.calendar.selectYear`. Defaults to `"Select year"`.
7778
+ */
7779
+ selectYearLabel?: string;
7668
7780
  }
7669
7781
  type CalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<CalendarProps$1<T>, "visibleDuration"> & CalendarBaseProps;
7670
7782
  type RangeCalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<RangeCalendarProps$1<T>, "visibleDuration"> & CalendarBaseProps;
@@ -7711,6 +7823,20 @@ interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<Num
7711
7823
  size?: "xs" | "sm" | "md" | "lg";
7712
7824
  /** Whether to hide the increment and decrement actions. */
7713
7825
  hideActions?: boolean;
7826
+ /**
7827
+ * Overrides the accessible name announcing the current position in the
7828
+ * document.
7829
+ *
7830
+ * Message id: `bui.pagination.pageXofY`. Defaults to
7831
+ * `"Page {arg0} of {arg1}"`, where `arg0` is the current page and `arg1`
7832
+ * the total page count. A string is used as-is, with no placeholder
7833
+ * substitution. To include the numbers, pass a function — it receives
7834
+ * `{ page, totalPages }` and its return value is used verbatim.
7835
+ */
7836
+ pageXofYLabel?: string | ((values: {
7837
+ page: number;
7838
+ totalPages: number;
7839
+ }) => string);
7714
7840
  }
7715
7841
 
7716
7842
  declare const Pagination: React__default.ForwardRefExoticComponent<PaginationProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -7908,6 +8034,10 @@ interface CollectionOptionRenderProps {
7908
8034
  /**
7909
8035
  * The custom render function for the listbox options.
7910
8036
  *
8037
+ * Replaces the option's entire contents, including the default selection
8038
+ * indicator — render your own affordance from `options.isSelected` if you
8039
+ * need one. Selection and keyboard behavior are unaffected.
8040
+ *
7911
8041
  * Reading component state here works, at the cost of rebuilding every cached option and
7912
8042
  * section whenever the function's identity changes — see {@link UNSAFE_ListBoxProps.items}
7913
8043
  * for when that cost applies.
@@ -7917,7 +8047,7 @@ interface CollectionOptionRenderProps {
7917
8047
  */
7918
8048
  renderOption?: (item: ListOption, options: ListBoxItemRenderProps) => React__default.ReactNode;
7919
8049
  /**
7920
- * The CSS class name for the option.
8050
+ * A CSS class name added to the option's built-in classes.
7921
8051
  *
7922
8052
  * Compared by identity, so an inline function or an unmemoized value rebuilds every
7923
8053
  * cached option and section on each render. A plain string is compared by value.
@@ -8066,6 +8196,38 @@ interface SelectProps<M extends SelectionMode = SelectionMode> extends Omit<Aria
8066
8196
  * @default false
8067
8197
  */
8068
8198
  hideClear?: boolean;
8199
+ /**
8200
+ * Overrides the label of the button that unticks every selected option.
8201
+ *
8202
+ * Message id: `bui.select.clear`. Defaults to `"Clear"`.
8203
+ */
8204
+ clearLabel?: string;
8205
+ /**
8206
+ * Overrides the placeholder and accessible name of the input that filters
8207
+ * the option list.
8208
+ *
8209
+ * Message id: `bui.select.search`. Defaults to `"Search"`.
8210
+ */
8211
+ searchLabel?: string;
8212
+ /**
8213
+ * Overrides the label of the button that ticks every option in a
8214
+ * multi-select list.
8215
+ *
8216
+ * Message id: `bui.select.selectAll`. Defaults to `"Select All"`.
8217
+ */
8218
+ selectAllLabel?: string;
8219
+ /**
8220
+ * Overrides the tag shown on the select trigger standing in for the
8221
+ * selected options that did not fit.
8222
+ *
8223
+ * Message id: `bui.select.more`. Defaults to `"+{count} more"`, where
8224
+ * `count` is the number of hidden options. A string is used as-is, with
8225
+ * no placeholder substitution. To include `count`, pass a function — it
8226
+ * receives `{ count }` and its return value is used verbatim.
8227
+ */
8228
+ moreLabel?: string | ((values: {
8229
+ count: number;
8230
+ }) => string);
8069
8231
  }
8070
8232
  interface IconSelectProps extends Omit<SelectProps, "renderTrigger" | "aria-label" | "selectionMode">, IconComponentProps {
8071
8233
  }
@@ -8192,6 +8354,12 @@ interface InlineAlertProps extends StylingProps {
8192
8354
  * close button will be rendered.
8193
8355
  */
8194
8356
  onClose?: () => void;
8357
+ /**
8358
+ * Overrides the accessible label of the close button.
8359
+ *
8360
+ * Message id: `bui.inlineAlert.close`. Defaults to `"Close"`.
8361
+ */
8362
+ closeLabel?: string;
8195
8363
  /**
8196
8364
  * The arrangement of the variable.
8197
8365
  *
@@ -8228,6 +8396,12 @@ interface DrawerProps extends StylingProps, AriaDialogProps {
8228
8396
  contentStyle?: React__default.CSSProperties;
8229
8397
  /** The class name of the content container. */
8230
8398
  contentClassName?: string;
8399
+ /**
8400
+ * Overrides the accessible label of the close button.
8401
+ *
8402
+ * Message id: `bui.drawer.close`. Defaults to `"Close"`.
8403
+ */
8404
+ closeLabel?: string;
8231
8405
  }
8232
8406
 
8233
8407
  declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -8707,6 +8881,14 @@ interface ToolbarProps extends StylingProps, AriaToolbarProps {
8707
8881
  * @default true
8708
8882
  */
8709
8883
  isSingleTabStop?: boolean;
8884
+ /**
8885
+ * Overrides the accessible label of the overflow button that reveals the
8886
+ * toolbar items which did not fit in the available width. This prop is
8887
+ * only relevant when `isCollapsible` is true.
8888
+ *
8889
+ * Message id: `bui.toolbar.more`. Defaults to `"More"`.
8890
+ */
8891
+ moreLabel?: string;
8710
8892
  }
8711
8893
 
8712
8894
  declare const Toolbar: React__default.ForwardRefExoticComponent<ToolbarProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -8907,6 +9089,182 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
8907
9089
  * @default true
8908
9090
  */
8909
9091
  autoLink?: boolean;
9092
+ /**
9093
+ * Overrides the accessible name of the toolbar button that inserts an
9094
+ * @-mention, and the accessible name of the mention combobox it opens.
9095
+ *
9096
+ * Message id: `bui.editor.mention`. Defaults to `"Mention"`.
9097
+ */
9098
+ mentionLabel?: string;
9099
+ /**
9100
+ * Overrides the accessible name of the rich text toolbar's Bold toggle, and
9101
+ * the matching row in the keyboard shortcut dialog.
9102
+ *
9103
+ * Message id: `bui.editor.bold`. Defaults to `"Bold"`.
9104
+ */
9105
+ boldLabel?: string;
9106
+ /**
9107
+ * Overrides the accessible name of the rich text toolbar's Italic toggle,
9108
+ * and the matching row in the keyboard shortcut dialog.
9109
+ *
9110
+ * Message id: `bui.editor.italic`. Defaults to `"Italic"`.
9111
+ */
9112
+ italicLabel?: string;
9113
+ /**
9114
+ * Overrides the accessible name of the rich text toolbar's Underline
9115
+ * toggle, and the matching row in the keyboard shortcut dialog.
9116
+ *
9117
+ * Message id: `bui.editor.underline`. Defaults to `"Underline"`.
9118
+ */
9119
+ underlineLabel?: string;
9120
+ /**
9121
+ * Overrides the accessible name of the toolbar control that sets the
9122
+ * colour of the selected text.
9123
+ *
9124
+ * Message id: `bui.editor.fontColor`. Defaults to `"Font color"`.
9125
+ */
9126
+ fontColorLabel?: string;
9127
+ /**
9128
+ * Overrides the accessible name of the toolbar control that sets the
9129
+ * highlight colour drawn behind the selected text.
9130
+ *
9131
+ * Message id: `bui.editor.backgroundColor`. Defaults to `"Background color"`.
9132
+ */
9133
+ backgroundColorLabel?: string;
9134
+ /**
9135
+ * Overrides the title of the keyboard shortcut dialog, and the accessible
9136
+ * name of the toolbar button that opens it.
9137
+ *
9138
+ * Message id: `bui.editor.help`. Defaults to `"Help"`.
9139
+ */
9140
+ helpLabel?: string;
9141
+ /**
9142
+ * Overrides the accessible name of the icon button that dismisses the
9143
+ * keyboard shortcut dialog.
9144
+ *
9145
+ * Message id: `bui.editor.close`. Defaults to `"Close"`.
9146
+ */
9147
+ closeLabel?: string;
9148
+ /**
9149
+ * Overrides the "Action" column header of the keyboard shortcut dialog's
9150
+ * table.
9151
+ *
9152
+ * Message id: `bui.editor.action`. Defaults to `"Action"`.
9153
+ */
9154
+ actionLabel?: string;
9155
+ /**
9156
+ * Overrides the "Shortcut" column header of the keyboard shortcut dialog's
9157
+ * table.
9158
+ *
9159
+ * Message id: `bui.editor.shortcut`. Defaults to `"Shortcut"`.
9160
+ */
9161
+ shortcutLabel?: string;
9162
+ /**
9163
+ * Overrides the row label for the "move focus to the toolbar" command in
9164
+ * the keyboard shortcut dialog.
9165
+ *
9166
+ * Message id: `bui.editor.toolbarFocus`. Defaults to `"Toolbar Focus"`.
9167
+ */
9168
+ toolbarFocusLabel?: string;
9169
+ /**
9170
+ * Overrides the row label for the "select all" command in the keyboard
9171
+ * shortcut dialog.
9172
+ *
9173
+ * Message id: `bui.editor.selectAll`. Defaults to `"Select All"`.
9174
+ */
9175
+ selectAllLabel?: string;
9176
+ /**
9177
+ * Overrides the row label for the "cut" command in the keyboard shortcut
9178
+ * dialog.
9179
+ *
9180
+ * Message id: `bui.editor.cut`. Defaults to `"Cut"`.
9181
+ */
9182
+ cutLabel?: string;
9183
+ /**
9184
+ * Overrides the row label for the "copy" command in the keyboard shortcut
9185
+ * dialog.
9186
+ *
9187
+ * Message id: `bui.editor.copy`. Defaults to `"Copy"`.
9188
+ */
9189
+ copyLabel?: string;
9190
+ /**
9191
+ * Overrides the row label for the "paste" command in the keyboard shortcut
9192
+ * dialog.
9193
+ *
9194
+ * Message id: `bui.editor.paste`. Defaults to `"Paste"`.
9195
+ */
9196
+ pasteLabel?: string;
9197
+ /**
9198
+ * Overrides the row label for the "undo" command in the keyboard shortcut
9199
+ * dialog.
9200
+ *
9201
+ * Message id: `bui.editor.undo`. Defaults to `"Undo"`.
9202
+ */
9203
+ undoLabel?: string;
9204
+ /**
9205
+ * Overrides the row label for the "redo" command in the keyboard shortcut
9206
+ * dialog.
9207
+ *
9208
+ * Message id: `bui.editor.redo`. Defaults to `"Redo"`.
9209
+ */
9210
+ redoLabel?: string;
9211
+ /**
9212
+ * Overrides the row label for the "open help dialog" command in the
9213
+ * keyboard shortcut dialog.
9214
+ *
9215
+ * Message id: `bui.editor.openHelpDialog`. Defaults to `"Open Help Dialog"`.
9216
+ */
9217
+ openHelpDialogLabel?: string;
9218
+ /**
9219
+ * Overrides the row label for the "submit" command in the keyboard
9220
+ * shortcut dialog.
9221
+ *
9222
+ * Message id: `bui.editor.submit`. Defaults to `"Submit"`.
9223
+ */
9224
+ submitLabel?: string;
9225
+ /**
9226
+ * Overrides the accessible name of the link popover's toolbar trigger
9227
+ * button.
9228
+ *
9229
+ * Message id: `bui.editor.addLink`. Defaults to `"Add Link"`.
9230
+ */
9231
+ addLinkLabel?: string;
9232
+ /**
9233
+ * Overrides the label of the button that changes the URL of an existing
9234
+ * link, shown in the link popover.
9235
+ *
9236
+ * Message id: `bui.editor.editLink`. Defaults to `"Edit Link"`.
9237
+ */
9238
+ editLinkLabel?: string;
9239
+ /**
9240
+ * Overrides the label of the button that unlinks the selected text, shown
9241
+ * in the link popover.
9242
+ *
9243
+ * Message id: `bui.editor.removeLink`. Defaults to `"Remove Link"`.
9244
+ */
9245
+ removeLinkLabel?: string;
9246
+ /**
9247
+ * Overrides the label of the URL field in the link popover.
9248
+ *
9249
+ * Message id: `bui.editor.linkAnnotation`. Defaults to `"Link"`.
9250
+ */
9251
+ linkAnnotationLabel?: string;
9252
+ /**
9253
+ * Overrides the label of the Cancel button in the link popover's edit mode.
9254
+ * Distinct from `cancelButtonAriaLabel`, which labels the editor footer's
9255
+ * Cancel button.
9256
+ *
9257
+ * Message id: `bui.editor.cancel`. Defaults to `"Cancel"`.
9258
+ */
9259
+ linkCancelLabel?: string;
9260
+ /**
9261
+ * Overrides the label of the Save button in the link popover's edit mode.
9262
+ * Distinct from `submitButtonAriaLabel`, which labels the editor footer's
9263
+ * Save button.
9264
+ *
9265
+ * Message id: `bui.editor.save`. Defaults to `"Save"`.
9266
+ */
9267
+ linkSaveLabel?: string;
8910
9268
  }
8911
9269
 
8912
9270
  declare const Editor: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<EditorProps & React__default.RefAttributes<HTMLDivElement>>>;
@@ -9479,6 +9837,14 @@ interface AlertDialogProps extends StylingProps, AriaLabelingProps {
9479
9837
  contentClassName?: string;
9480
9838
  /** The class name for the close button. */
9481
9839
  closeButtonClassName?: string;
9840
+ /**
9841
+ * Overrides the accessible label of the close button (X) that dismisses
9842
+ * the dialog. This is distinct from `cancelLabel`, which is the visible
9843
+ * text of the footer cancel button.
9844
+ *
9845
+ * Message id: `bui.alertDialog.close`. Defaults to `"Close"`.
9846
+ */
9847
+ closeLabel?: string;
9482
9848
  /** The class name for the button group wrapper. */
9483
9849
  buttonsClassName?: string;
9484
9850
  /**
@@ -9526,6 +9892,40 @@ interface AudioPlayerProps extends StylingProps, AriaLabelingProps {
9526
9892
  * @default "lg"
9527
9893
  */
9528
9894
  size?: "sm" | "lg";
9895
+ /**
9896
+ * Overrides the accessible name of the button that starts audio playback.
9897
+ *
9898
+ * Message id: `bui.audioPlayer.play`. Defaults to `"Play"`.
9899
+ */
9900
+ playLabel?: string;
9901
+ /**
9902
+ * Overrides the accessible name of the button that pauses audio playback.
9903
+ *
9904
+ * Message id: `bui.audioPlayer.pause`. Defaults to `"Pause"`.
9905
+ */
9906
+ pauseLabel?: string;
9907
+ /**
9908
+ * Overrides the accessible name of the slider used to seek through the
9909
+ * audio track.
9910
+ *
9911
+ * Message id: `bui.audioPlayer.audioTimeline`. Defaults to
9912
+ * `"Audio timeline"`.
9913
+ */
9914
+ audioTimelineLabel?: string;
9915
+ /**
9916
+ * Overrides the screen reader announcement made when audio playback
9917
+ * starts.
9918
+ *
9919
+ * Message id: `bui.useMedia.playing`. Defaults to `"Playing"`.
9920
+ */
9921
+ playingLabel?: string;
9922
+ /**
9923
+ * Overrides the screen reader announcement made when audio playback is
9924
+ * paused.
9925
+ *
9926
+ * Message id: `bui.useMedia.paused`. Defaults to `"Paused"`.
9927
+ */
9928
+ pausedLabel?: string;
9529
9929
  }
9530
9930
 
9531
9931
  declare const AudioPlayer: React__default.ForwardRefExoticComponent<AudioPlayerProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -9645,6 +10045,28 @@ interface ImageGalleryProps extends StylingProps, Omit<UNSAFE_ListBoxProps, "ite
9645
10045
  * @default "Are you sure you want to delete this item?"
9646
10046
  */
9647
10047
  deleteConfirmationTitle?: string | ((selectedKeys: Selection$1) => string);
10048
+ /**
10049
+ * Overrides the label of the button that permanently deletes the selected
10050
+ * image(s), and the accessible label of each image's individual delete
10051
+ * button.
10052
+ *
10053
+ * Message id: `bui.imageGallery.delete`. Defaults to `"Delete"`.
10054
+ */
10055
+ deleteLabel?: string;
10056
+ /**
10057
+ * Overrides the label of the button that dismisses the delete confirmation
10058
+ * modal without deleting anything.
10059
+ *
10060
+ * Message id: `bui.imageGallery.cancel`. Defaults to `"Cancel"`.
10061
+ */
10062
+ cancelLabel?: string;
10063
+ /**
10064
+ * Overrides the accessible label announced while an image is still
10065
+ * loading.
10066
+ *
10067
+ * Message id: `bui.imageGallery.loading`. Defaults to `"Loading"`.
10068
+ */
10069
+ loadingLabel?: string;
9648
10070
  }
9649
10071
 
9650
10072
  declare const ImageGallery: React__default.ForwardRefExoticComponent<ImageGalleryProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -10001,7 +10423,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
10001
10423
 
10002
10424
  declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
10003
10425
 
10004
- declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "isRequired" | "validate" | "validationState" | "isInvalid"> & Pick<SharedInputProps, "label" | "validationState" | "labelPosition" | "variant"> & InputMessage & React__default.RefAttributes<HTMLDivElement>>;
10426
+ 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>>;
10005
10427
 
10006
10428
  type TimeFieldProps = StylingProps & Omit<Omit<TimeFieldStateOptions, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isInvalid" | "isRequired" | "validate"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
10007
10429
 
@@ -10077,6 +10499,20 @@ interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-desc
10077
10499
  * @default "start"
10078
10500
  */
10079
10501
  actionsPosition?: "start" | "end";
10502
+ /**
10503
+ * Overrides the accessible label of the button that expands a tree item to
10504
+ * reveal its children.
10505
+ *
10506
+ * Message id: `bui.treeView.expand`. Defaults to `"Expand"`.
10507
+ */
10508
+ expandLabel?: string;
10509
+ /**
10510
+ * Overrides the accessible label of the button that collapses a tree item
10511
+ * to hide its children.
10512
+ *
10513
+ * Message id: `bui.treeView.collapse`. Defaults to `"Collapse"`.
10514
+ */
10515
+ collapseLabel?: string;
10080
10516
  /**
10081
10517
  * The callback function that is called when the item is renamed. The rename
10082
10518
  * functionality is disabled if not provided.
@@ -10085,6 +10521,13 @@ interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-desc
10085
10521
  key: Key$1;
10086
10522
  value: string;
10087
10523
  }) => void;
10524
+ /**
10525
+ * Overrides the accessible label of the input shown while an item is being
10526
+ * renamed.
10527
+ *
10528
+ * Message id: `bui.treeView.rename`. Defaults to `"Rename"`.
10529
+ */
10530
+ renameLabel?: string;
10088
10531
  /** The callback function that is called when the item is clicked. */
10089
10532
  onAction?: (key: Key$1) => void;
10090
10533
  /**
@@ -10250,10 +10693,18 @@ type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale">
10250
10693
  * @default "none"
10251
10694
  */
10252
10695
  pickerType?: DateFieldPickerType;
10696
+ /**
10697
+ * Overrides the accessible label of the button that opens the calendar
10698
+ * picker popover.
10699
+ *
10700
+ * Message id: `bui.dateField.openCalendar`. Defaults to `"Open calendar"`.
10701
+ */
10702
+ openCalendarLabel?: string;
10253
10703
  };
10254
10704
 
10255
- declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "isRequired" | "validate" | "validationState" | "isInvalid" | "createCalendar"> & Pick<SharedInputProps, "label" | "validationState" | "labelPosition" | "variant"> & InputMessage & {
10705
+ 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 & {
10256
10706
  pickerType?: DateFieldPickerType;
10707
+ openCalendarLabel?: string;
10257
10708
  } & React__default.RefAttributes<HTMLDivElement>>;
10258
10709
 
10259
10710
  interface Breakpoints {
@@ -10631,7 +11082,15 @@ type LoadMoreProps = {
10631
11082
  isLoading?: never;
10632
11083
  scrollOffset?: never;
10633
11084
  };
10634
- type TableBodyProps<T extends object = object> = TableBodyProps$1<T> & LoadMoreProps;
11085
+ type TableBodyProps<T extends object = object> = TableBodyProps$1<T> & LoadMoreProps & {
11086
+ /**
11087
+ * Overrides the accessible label of the loading spinner shown while more
11088
+ * rows are being fetched.
11089
+ *
11090
+ * Message id: `bui.table.loading`. Defaults to `"Loading"`.
11091
+ */
11092
+ loadingLabel?: string;
11093
+ };
10635
11094
  type ColumnProps = Omit<ColumnProps$1, "width" | "defaultWidth" | "minWidth" | "maxWidth">;
10636
11095
  type RowProps<T extends object = object> = RowProps$1<T>;
10637
11096
  type CellProps = CellProps$1;
@@ -10715,6 +11174,25 @@ interface StepperProps extends StylingProps {
10715
11174
  * (e.g. "Checkout").
10716
11175
  */
10717
11176
  "aria-label"?: string;
11177
+ /**
11178
+ * Overrides the fallback accessible name of a step when the application
11179
+ * supplies no title.
11180
+ *
11181
+ * Message id: `bui.stepper.step`. Defaults to `"Step {index}"`, where
11182
+ * `index` is the step's 1-based position. A string is used as-is, with
11183
+ * no placeholder substitution. To include `index`, pass a function — it
11184
+ * receives `{ index }` and its return value is used verbatim.
11185
+ */
11186
+ stepLabel?: string | ((values: {
11187
+ index: number;
11188
+ }) => string);
11189
+ /**
11190
+ * Overrides the screen-reader-only suffix marking a step the reader has
11191
+ * finished.
11192
+ *
11193
+ * Message id: `bui.stepper.completed`. Defaults to `"Completed"`.
11194
+ */
11195
+ completedLabel?: string;
10718
11196
  }
10719
11197
 
10720
11198
  declare const Stepper: React__default.ForwardRefExoticComponent<StepperProps & React__default.RefAttributes<HTMLOListElement>>;
@@ -10759,6 +11237,31 @@ interface FileListProps extends AriaLabelingProps {
10759
11237
  * button or keyboard.
10760
11238
  */
10761
11239
  disabledKeys?: Iterable<string> | "all";
11240
+ /**
11241
+ * Overrides the accessible name of a file row while it is loading, and of
11242
+ * its spinner.
11243
+ *
11244
+ * Message id: `bui.fileList.loading`. Defaults to `"Loading {fileName}"`.
11245
+ * A string is used as-is, with no placeholder substitution. To include
11246
+ * `fileName`, pass a function — it receives `{ fileName }` and its return
11247
+ * value is used verbatim.
11248
+ */
11249
+ loadingLabel?: string | ((values: {
11250
+ fileName: string;
11251
+ }) => string);
11252
+ /**
11253
+ * Overrides the accessible name of a removable file row, telling keyboard
11254
+ * users how to delete it.
11255
+ *
11256
+ * Message id: `bui.fileList.removeHint`. Defaults to
11257
+ * `"{fileName}, press Delete or Backspace to remove"`. A string is used
11258
+ * as-is, with no placeholder substitution. To include `fileName`, pass a
11259
+ * function — it receives `{ fileName }` and its return value is used
11260
+ * verbatim.
11261
+ */
11262
+ removeHintLabel?: string | ((values: {
11263
+ fileName: string;
11264
+ }) => string);
10762
11265
  }
10763
11266
 
10764
11267
  declare const FileList$1: React__default.ForwardRefExoticComponent<FileListProps & React__default.RefAttributes<HTMLDivElement>>;