@baseline-ui/core 2.1.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 +499 -7
- package/dist/index.js +20 -20
- package/dist/index.mjs +20 -20
- package/package.json +4 -4
- package/sbom.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -7020,6 +7020,13 @@ interface ColorSwatchProps extends Omit<AriaColorSwatchProps, "colorName">, Styl
|
|
|
7020
7020
|
* @default HelpIcon
|
|
7021
7021
|
*/
|
|
7022
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;
|
|
7023
7030
|
}
|
|
7024
7031
|
|
|
7025
7032
|
declare const ColorSwatch: React__default.ForwardRefExoticComponent<ColorSwatchProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -7170,7 +7177,9 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7170
7177
|
*/
|
|
7171
7178
|
storePickedColorKey?: string;
|
|
7172
7179
|
/**
|
|
7173
|
-
* 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.
|
|
7174
7183
|
*
|
|
7175
7184
|
* @default Add Color
|
|
7176
7185
|
*/
|
|
@@ -7187,6 +7196,52 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7187
7196
|
* @default Custom Colors
|
|
7188
7197
|
*/
|
|
7189
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;
|
|
7190
7245
|
/**
|
|
7191
7246
|
* An optional function to render the custom trigger button.
|
|
7192
7247
|
*
|
|
@@ -7199,7 +7254,7 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7199
7254
|
colorName?: string | boolean;
|
|
7200
7255
|
triggerProps: AriaButtonProps<"button">;
|
|
7201
7256
|
labelId?: string;
|
|
7202
|
-
} & Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon">) => React__default.JSX.Element;
|
|
7257
|
+
} & Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon" | "noneLabel">) => React__default.JSX.Element;
|
|
7203
7258
|
/**
|
|
7204
7259
|
* Handler that is called when the user stops dragging or clicking on the
|
|
7205
7260
|
* color picker. In case of presets, this is called when the user clicks on a
|
|
@@ -7212,6 +7267,20 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7212
7267
|
* @default false
|
|
7213
7268
|
*/
|
|
7214
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;
|
|
7215
7284
|
/**
|
|
7216
7285
|
* Handler that is called when the user presses the trigger button. This can
|
|
7217
7286
|
* be used to track events like clicks on the trigger button.
|
|
@@ -7229,11 +7298,11 @@ interface IconColorInputProps extends StylingProps, Omit<ColorInputProps, "rende
|
|
|
7229
7298
|
|
|
7230
7299
|
declare const ColorInput: React__default.ForwardRefExoticComponent<ColorInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
7231
7300
|
|
|
7232
|
-
declare const IconColorInputButton: React__default.ForwardRefExoticComponent<Omit<ColorInputButtonProps, "
|
|
7301
|
+
declare const IconColorInputButton: React__default.ForwardRefExoticComponent<Omit<ColorInputButtonProps, "children" | "color" | "labelPosition" | "noneLabel"> & {
|
|
7233
7302
|
icon: React__default.FC<IconProps>;
|
|
7234
7303
|
color?: string | null;
|
|
7235
7304
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
7236
|
-
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"> {
|
|
7237
7306
|
isOpen: boolean;
|
|
7238
7307
|
"aria-label"?: string;
|
|
7239
7308
|
labelPosition?: "top" | "start";
|
|
@@ -7672,6 +7741,42 @@ interface CalendarBaseProps {
|
|
|
7672
7741
|
* @default "title"
|
|
7673
7742
|
*/
|
|
7674
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;
|
|
7675
7780
|
}
|
|
7676
7781
|
type CalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<CalendarProps$1<T>, "visibleDuration"> & CalendarBaseProps;
|
|
7677
7782
|
type RangeCalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<RangeCalendarProps$1<T>, "visibleDuration"> & CalendarBaseProps;
|
|
@@ -7718,6 +7823,20 @@ interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<Num
|
|
|
7718
7823
|
size?: "xs" | "sm" | "md" | "lg";
|
|
7719
7824
|
/** Whether to hide the increment and decrement actions. */
|
|
7720
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);
|
|
7721
7840
|
}
|
|
7722
7841
|
|
|
7723
7842
|
declare const Pagination: React__default.ForwardRefExoticComponent<PaginationProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -8077,6 +8196,38 @@ interface SelectProps<M extends SelectionMode = SelectionMode> extends Omit<Aria
|
|
|
8077
8196
|
* @default false
|
|
8078
8197
|
*/
|
|
8079
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);
|
|
8080
8231
|
}
|
|
8081
8232
|
interface IconSelectProps extends Omit<SelectProps, "renderTrigger" | "aria-label" | "selectionMode">, IconComponentProps {
|
|
8082
8233
|
}
|
|
@@ -8203,6 +8354,12 @@ interface InlineAlertProps extends StylingProps {
|
|
|
8203
8354
|
* close button will be rendered.
|
|
8204
8355
|
*/
|
|
8205
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;
|
|
8206
8363
|
/**
|
|
8207
8364
|
* The arrangement of the variable.
|
|
8208
8365
|
*
|
|
@@ -8239,6 +8396,12 @@ interface DrawerProps extends StylingProps, AriaDialogProps {
|
|
|
8239
8396
|
contentStyle?: React__default.CSSProperties;
|
|
8240
8397
|
/** The class name of the content container. */
|
|
8241
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;
|
|
8242
8405
|
}
|
|
8243
8406
|
|
|
8244
8407
|
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -8718,6 +8881,14 @@ interface ToolbarProps extends StylingProps, AriaToolbarProps {
|
|
|
8718
8881
|
* @default true
|
|
8719
8882
|
*/
|
|
8720
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;
|
|
8721
8892
|
}
|
|
8722
8893
|
|
|
8723
8894
|
declare const Toolbar: React__default.ForwardRefExoticComponent<ToolbarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -8918,6 +9089,182 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
|
|
|
8918
9089
|
* @default true
|
|
8919
9090
|
*/
|
|
8920
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;
|
|
8921
9268
|
}
|
|
8922
9269
|
|
|
8923
9270
|
declare const Editor: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<EditorProps & React__default.RefAttributes<HTMLDivElement>>>;
|
|
@@ -9490,6 +9837,14 @@ interface AlertDialogProps extends StylingProps, AriaLabelingProps {
|
|
|
9490
9837
|
contentClassName?: string;
|
|
9491
9838
|
/** The class name for the close button. */
|
|
9492
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;
|
|
9493
9848
|
/** The class name for the button group wrapper. */
|
|
9494
9849
|
buttonsClassName?: string;
|
|
9495
9850
|
/**
|
|
@@ -9537,6 +9892,40 @@ interface AudioPlayerProps extends StylingProps, AriaLabelingProps {
|
|
|
9537
9892
|
* @default "lg"
|
|
9538
9893
|
*/
|
|
9539
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;
|
|
9540
9929
|
}
|
|
9541
9930
|
|
|
9542
9931
|
declare const AudioPlayer: React__default.ForwardRefExoticComponent<AudioPlayerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -9656,6 +10045,28 @@ interface ImageGalleryProps extends StylingProps, Omit<UNSAFE_ListBoxProps, "ite
|
|
|
9656
10045
|
* @default "Are you sure you want to delete this item?"
|
|
9657
10046
|
*/
|
|
9658
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;
|
|
9659
10070
|
}
|
|
9660
10071
|
|
|
9661
10072
|
declare const ImageGallery: React__default.ForwardRefExoticComponent<ImageGalleryProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -10012,7 +10423,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
|
|
|
10012
10423
|
|
|
10013
10424
|
declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
10014
10425
|
|
|
10015
|
-
declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "
|
|
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>>;
|
|
10016
10427
|
|
|
10017
10428
|
type TimeFieldProps = StylingProps & Omit<Omit<TimeFieldStateOptions, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isInvalid" | "isRequired" | "validate"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
|
|
10018
10429
|
|
|
@@ -10088,6 +10499,20 @@ interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-desc
|
|
|
10088
10499
|
* @default "start"
|
|
10089
10500
|
*/
|
|
10090
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;
|
|
10091
10516
|
/**
|
|
10092
10517
|
* The callback function that is called when the item is renamed. The rename
|
|
10093
10518
|
* functionality is disabled if not provided.
|
|
@@ -10096,6 +10521,13 @@ interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-desc
|
|
|
10096
10521
|
key: Key$1;
|
|
10097
10522
|
value: string;
|
|
10098
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;
|
|
10099
10531
|
/** The callback function that is called when the item is clicked. */
|
|
10100
10532
|
onAction?: (key: Key$1) => void;
|
|
10101
10533
|
/**
|
|
@@ -10261,10 +10693,18 @@ type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale">
|
|
|
10261
10693
|
* @default "none"
|
|
10262
10694
|
*/
|
|
10263
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;
|
|
10264
10703
|
};
|
|
10265
10704
|
|
|
10266
|
-
declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "
|
|
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 & {
|
|
10267
10706
|
pickerType?: DateFieldPickerType;
|
|
10707
|
+
openCalendarLabel?: string;
|
|
10268
10708
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
10269
10709
|
|
|
10270
10710
|
interface Breakpoints {
|
|
@@ -10642,7 +11082,15 @@ type LoadMoreProps = {
|
|
|
10642
11082
|
isLoading?: never;
|
|
10643
11083
|
scrollOffset?: never;
|
|
10644
11084
|
};
|
|
10645
|
-
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
|
+
};
|
|
10646
11094
|
type ColumnProps = Omit<ColumnProps$1, "width" | "defaultWidth" | "minWidth" | "maxWidth">;
|
|
10647
11095
|
type RowProps<T extends object = object> = RowProps$1<T>;
|
|
10648
11096
|
type CellProps = CellProps$1;
|
|
@@ -10726,6 +11174,25 @@ interface StepperProps extends StylingProps {
|
|
|
10726
11174
|
* (e.g. "Checkout").
|
|
10727
11175
|
*/
|
|
10728
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;
|
|
10729
11196
|
}
|
|
10730
11197
|
|
|
10731
11198
|
declare const Stepper: React__default.ForwardRefExoticComponent<StepperProps & React__default.RefAttributes<HTMLOListElement>>;
|
|
@@ -10770,6 +11237,31 @@ interface FileListProps extends AriaLabelingProps {
|
|
|
10770
11237
|
* button or keyboard.
|
|
10771
11238
|
*/
|
|
10772
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);
|
|
10773
11265
|
}
|
|
10774
11266
|
|
|
10775
11267
|
declare const FileList$1: React__default.ForwardRefExoticComponent<FileListProps & React__default.RefAttributes<HTMLDivElement>>;
|