@qualtrics/ui-react 2.46.1 → 2.48.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/CHANGELOG.md +21 -0
- package/dist/__shared/cjs/{index-5c3434da.js → index-06b81ccf.js} +163 -148
- package/dist/__shared/cjs/{index-36ce50e9.js → index-eb30b09e.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/RangeSlider.js +24 -14
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +8 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/design-tokens/css/colors.css +4055 -0
- package/dist/design-tokens/css/styles.css +1 -0
- package/dist/design-tokens/less/colors.less +4054 -0
- package/dist/design-tokens/less/styles.less +1 -0
- package/dist/design-tokens/scss/colors.scss +4054 -0
- package/dist/design-tokens/scss/styles.scss +1 -0
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +29 -11
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +85 -0
- package/dist/next/index.js +68 -51
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/next/package.json +1 -1
- package/package.json +5 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._zwJEy{display:flex}._mKFOK{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._mKFOK._fc6rY{background-color:#fff}._mKFOK._fc6rY._H-Xby.focus-visible:not(._i50Za),._mKFOK._fc6rY._H-Xby:focus-visible:not(._i50Za),._mKFOK._fc6rY._q058V:not(._mKFOK._fc6rY._3-4W2),._mKFOK._MRjx7{background-color:#0b6ed0}._mKFOK._MRjx7._3-4W2._q058V,._mKFOK._MRjx7._i50Za._3-4W2,._mKFOK._MRjx7._i50Za._H-Xby{opacity:.4}._n0XqO{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._n0XqO:focus{z-index:1}._22jgm{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._22jgm svg{margin-left:1px}._22jgm._fc6rY{background-color:#0b6ed0;border-color:transparent}._22jgm._fc6rY svg{fill:#fff!important}._22jgm._fc6rY:not(._0gaaI):hover{background-color:#085caf!important}._22jgm._fc6rY:not(._0gaaI):active{background-color:#0854a1!important}._22jgm._fc6rY._0gaaI{opacity:.4}._22jgm._fc6rY._0gaaI svg{background-color:transparent}._22jgm._MRjx7{border-color:#0b6ed0;background-color:#fff}._22jgm._MRjx7 svg{fill:#0b6ed0!important}._22jgm._MRjx7:not(._0gaaI):hover{background-color:#eef5fc!important}._22jgm._MRjx7:not(._0gaaI):active{background-color:#e1edf9!important}._22jgm._MRjx7._0gaaI{opacity:.4}._22jgm._MRjx7._0gaaI svg{background-color:transparent}._t0Ubp{width:260px}";
|
|
4
|
+
var styles = {"container":"_zwJEy","divider":"_mKFOK","primary":"_fc6rY","mainButtonFocus":"_H-Xby","mainButtonDisabled":"_i50Za","dropdownButtonFocus":"_q058V","dropdownButtonDisabled":"_3-4W2","secondary":"_MRjx7","mainButton":"_n0XqO","dropdownButton":"_22jgm","disabled":"_0gaaI","dropdownOption":"_t0Ubp"};
|
|
5
|
+
var stylesheet="._zwJEy{display:flex}._mKFOK{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._mKFOK._fc6rY{background-color:#fff}._mKFOK._fc6rY._H-Xby.focus-visible:not(._i50Za),._mKFOK._fc6rY._H-Xby:focus-visible:not(._i50Za),._mKFOK._fc6rY._q058V:not(._mKFOK._fc6rY._3-4W2),._mKFOK._MRjx7{background-color:#0b6ed0}._mKFOK._MRjx7._3-4W2._q058V,._mKFOK._MRjx7._i50Za._3-4W2,._mKFOK._MRjx7._i50Za._H-Xby{opacity:.4}._n0XqO{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._n0XqO:focus{z-index:1}._22jgm{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._22jgm svg{margin-left:1px}._22jgm._fc6rY{background-color:#0b6ed0;border-color:transparent}._22jgm._fc6rY svg{fill:#fff!important}._22jgm._fc6rY:not(._0gaaI):hover{background-color:#085caf!important}._22jgm._fc6rY:not(._0gaaI):active{background-color:#0854a1!important}._22jgm._fc6rY._0gaaI{opacity:.4}._22jgm._fc6rY._0gaaI svg{background-color:transparent}._22jgm._MRjx7{border-color:#0b6ed0;background-color:#fff}._22jgm._MRjx7 svg{fill:#0b6ed0!important}._22jgm._MRjx7:not(._0gaaI):hover{background-color:#eef5fc!important}._22jgm._MRjx7:not(._0gaaI):active{background-color:#e1edf9!important}._22jgm._MRjx7._0gaaI{opacity:.4}._22jgm._MRjx7._0gaaI svg{background-color:transparent}._t0Ubp{width:260px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"timePickerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._bbv0C{display:inline-block;position:relative}._bbv0C ._o79St{width:120px}._bbv0C ._o79St ._Kxbpg._ckNhZ{transform:rotate(-180deg)}._bbv0C ._o79St ._Kxbpg._4xzEm{fill:#9d9fa1;opacity:.4}._bbv0C ._1YzhY>input:focus{box-shadow:none!important;border:1px solid #898989!important}._bbv0C ._Kxbpg{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._bbv0C ._Kxbpg._ckNhZ{transform:rotate(-180deg)}._kz-dJ{width:120px}._kz-dJ ._LE59t._iGIXz{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_bbv0C","input":"_o79St","icon":"_Kxbpg","open":"_ckNhZ","disabled":"_4xzEm","ignoreFocusStyle":"_1YzhY","timePickerFlyout":"_kz-dJ","option":"_LE59t","exactMatch":"_iGIXz"};
|
|
5
|
+
var stylesheet="._bbv0C{display:inline-block;position:relative}._bbv0C ._o79St{width:120px}._bbv0C ._o79St ._Kxbpg._ckNhZ{transform:rotate(-180deg)}._bbv0C ._o79St ._Kxbpg._4xzEm{fill:#9d9fa1;opacity:.4}._bbv0C ._1YzhY>input:focus{box-shadow:none!important;border:1px solid #898989!important}._bbv0C ._Kxbpg{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._bbv0C ._Kxbpg._ckNhZ{transform:rotate(-180deg)}._kz-dJ{width:120px}._kz-dJ ._LE59t._iGIXz{background-color:#efefef;border-radius:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._79ZqJ{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._Z0UBT{background-color:rgba(50,54,58,.08)}._z9pn2{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._3WP7w{color:rgba(81,85,89,.4);cursor:not-allowed}._OWwYf{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._9rKsd{color:#085caf;border-color:#085caf}._9rKsd,._-eY3S{background:rgba(11,110,208,.11)}._-eY3S{color:#0854a1;border-color:#0854a1}._2qGRS{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._8HOcR{position:relative;display:inline-grid}._8HOcR svg{fill:currentColor}._8HOcR ._ONCYd{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._8HOcR ._ONCYd+._sQj25{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._8HOcR ._ONCYd+._sQj25._KzQvi{padding:5px;max-width:36px;min-width:36px}._8HOcR ._ONCYd+._sQj25._hVBOH{padding:0 16px}._8HOcR ._ONCYd+._sQj25._7TWAA{padding:0 16px 0 12px}._8HOcR ._ONCYd:hover+._sQj25{background-color:rgba(50,54,58,.08)}._8HOcR ._ONCYd:disabled+._sQj25{color:rgba(81,85,89,.4);cursor:not-allowed}._8HOcR ._ONCYd:active+._sQj25,._8HOcR ._ONCYd:focus:active+._sQj25{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._8HOcR ._ONCYd:checked+._sQj25{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._8HOcR ._ONCYd:checked:hover+._sQj25{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._8HOcR ._ONCYd:checked:disabled+._sQj25{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._8HOcR ._ONCYd:checked:active+._sQj25,._8HOcR ._ONCYd:checked:focus:active+._sQj25{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._-OVwe{display:inline-flex;position:relative}._-OVwe:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._-OVwe>*{flex-shrink:0;flex-grow:0}._-eOe5{border:none;margin:0;padding:0}._-eOe5 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._8HOcR ._ONCYd.focus-visible,._8HOcR ._ONCYd:focus-visible{outline:none}._8HOcR ._ONCYd.focus-visible+._sQj25,._8HOcR ._ONCYd:focus-visible+._sQj25{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_79ZqJ","hovered":"_Z0UBT","pressed":"_z9pn2","disabled":"_3WP7w","selectedDefault":"_OWwYf","selectedHovered":"_9rKsd","selectedPressed":"_-eY3S","selectedDisabled":"_2qGRS","toggleContainer":"_8HOcR","toggleInput":"_ONCYd","toggleButton":"_sQj25","iconOnly":"_KzQvi","text":"_hVBOH","iconText":"_7TWAA","toggleButtonGroup":"_-OVwe","toggleButtonGroupFieldset":"_-eOe5"};
|
|
5
|
+
var stylesheet="._79ZqJ{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._Z0UBT{background-color:rgba(50,54,58,.08)}._z9pn2{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._3WP7w{color:rgba(81,85,89,.4);cursor:not-allowed}._OWwYf{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._9rKsd{color:#085caf;border-color:#085caf}._9rKsd,._-eY3S{background:rgba(11,110,208,.11)}._-eY3S{color:#0854a1;border-color:#0854a1}._2qGRS{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._8HOcR{position:relative;display:inline-grid}._8HOcR svg{fill:currentColor}._8HOcR ._ONCYd{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._8HOcR ._ONCYd+._sQj25{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._8HOcR ._ONCYd+._sQj25._KzQvi{padding:5px;max-width:36px;min-width:36px}._8HOcR ._ONCYd+._sQj25._hVBOH{padding:0 16px}._8HOcR ._ONCYd+._sQj25._7TWAA{padding:0 16px 0 12px}._8HOcR ._ONCYd:hover+._sQj25{background-color:rgba(50,54,58,.08)}._8HOcR ._ONCYd:disabled+._sQj25{color:rgba(81,85,89,.4);cursor:not-allowed}._8HOcR ._ONCYd:active+._sQj25,._8HOcR ._ONCYd:focus:active+._sQj25{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._8HOcR ._ONCYd:checked+._sQj25{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._8HOcR ._ONCYd:checked:hover+._sQj25{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._8HOcR ._ONCYd:checked:disabled+._sQj25{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._8HOcR ._ONCYd:checked:active+._sQj25,._8HOcR ._ONCYd:checked:focus:active+._sQj25{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._-OVwe{display:inline-flex;position:relative}._-OVwe:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._-OVwe>*{flex-shrink:0;flex-grow:0}._-eOe5{border:none;margin:0;padding:0}._-eOe5 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._8HOcR ._ONCYd.focus-visible,._8HOcR ._ONCYd:focus-visible{outline:none}._8HOcR ._ONCYd.focus-visible+._sQj25,._8HOcR ._ONCYd:focus-visible+._sQj25{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -206,6 +206,35 @@ export declare interface AdvancedTableSelectedSortOption {
|
|
|
206
206
|
|
|
207
207
|
declare type Alignment = AdvancedTableColumnConfig['alignment'];
|
|
208
208
|
|
|
209
|
+
declare interface ButtonProps extends React_2.AllHTMLAttributes<HTMLButtonElement> {
|
|
210
|
+
/** The contents of the button. */
|
|
211
|
+
children?: React_2.ReactNode;
|
|
212
|
+
/** Specifies the use of the button and customizes its color.
|
|
213
|
+
* @defaultValue 'default'*/
|
|
214
|
+
kind?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'link' | 'danger';
|
|
215
|
+
/** Disables click events on the button and styles it to look as though it cannot be clicked.
|
|
216
|
+
* @defaultValue false */
|
|
217
|
+
disabled?: boolean;
|
|
218
|
+
/** Makes the button take up the full width of its container.
|
|
219
|
+
* @defaultValue false */
|
|
220
|
+
full?: boolean;
|
|
221
|
+
/** Makes the button smaller.
|
|
222
|
+
* @defaultValue false */
|
|
223
|
+
small?: boolean;
|
|
224
|
+
/** Appended to internal classes on the `button` element. */
|
|
225
|
+
className?: string;
|
|
226
|
+
/** Specifies the type of the button.
|
|
227
|
+
* @defaultValue 'button' */
|
|
228
|
+
type?: 'button' | 'submit' | 'reset';
|
|
229
|
+
/** Handler to be called when the button is clicked. Use to handle user interaction with the button. */
|
|
230
|
+
onClick?: (event: React_2.MouseEvent<HTMLButtonElement>) => void;
|
|
231
|
+
/** Handler to be called when a keyboard key is pressed down while button has focus. */
|
|
232
|
+
onKeyDown?: (event: React_2.KeyboardEvent<HTMLButtonElement>) => void;
|
|
233
|
+
/** Causes the button to be declared as disabled by screen readers. If not defined, `aria-disabled` defaults to the value of the `disabled` prop. */
|
|
234
|
+
'aria-disabled'?: boolean;
|
|
235
|
+
[prop: string]: any;
|
|
236
|
+
}
|
|
237
|
+
|
|
209
238
|
export declare const Chat: React_2.ForwardRefExoticComponent<ChatProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
210
239
|
|
|
211
240
|
export declare const ChatInput: React_2.ForwardRefExoticComponent<ChatInputProps & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -534,6 +563,53 @@ export declare interface DrawerProps {
|
|
|
534
563
|
'data-testid'?: string;
|
|
535
564
|
}
|
|
536
565
|
|
|
566
|
+
declare interface DropdownButtonProps extends Omit<React_2.AllHTMLAttributes<HTMLButtonElement>, 'label'> {
|
|
567
|
+
/** The component that should render as the dropdown button. */
|
|
568
|
+
children?: React_2.ReactElement & {
|
|
569
|
+
ref?: React_2.Ref<HTMLElement>;
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* The text to display when no option is selected.
|
|
573
|
+
* @defaultValue ''
|
|
574
|
+
*/
|
|
575
|
+
defaultLabel?: string | React_2.ReactNode;
|
|
576
|
+
/** The label to display. */
|
|
577
|
+
label?: React_2.ReactNode;
|
|
578
|
+
/**
|
|
579
|
+
* The unique identifier for the button, used for linking accessible labels throughout the component.
|
|
580
|
+
* @defaultValue random
|
|
581
|
+
*/
|
|
582
|
+
id?: string;
|
|
583
|
+
/** @internal */
|
|
584
|
+
disabled?: boolean;
|
|
585
|
+
/** @internal */
|
|
586
|
+
isInvalid?: boolean;
|
|
587
|
+
/** @internal */
|
|
588
|
+
onLabelChange?: (string: any) => void;
|
|
589
|
+
/**
|
|
590
|
+
* The `id` of the element that acts as a label for the button.
|
|
591
|
+
* Overrides any `aria-labelledby` value received from the top-level
|
|
592
|
+
* `Dropdown` component.
|
|
593
|
+
*/
|
|
594
|
+
'aria-labelledby'?: string;
|
|
595
|
+
/**
|
|
596
|
+
* An accessible label for the dropdown that is used by screen readers.
|
|
597
|
+
* Overrides any `aria-label` value received from the top-level `Dropdown` component.
|
|
598
|
+
*/
|
|
599
|
+
'aria-label'?: string;
|
|
600
|
+
/**
|
|
601
|
+
* The `id` of the element that acts as a description for the button.
|
|
602
|
+
* Overrides any `aria-describedby` value received from the top-level
|
|
603
|
+
* `Dropdown` component.
|
|
604
|
+
*/
|
|
605
|
+
'aria-describedby'?: string;
|
|
606
|
+
/** Appended to internal classes on the `button` element. */
|
|
607
|
+
className?: string;
|
|
608
|
+
/** Appended to the internal `button` element. Overwrites `data-testid` from parent, if present. */
|
|
609
|
+
'data-testid'?: string;
|
|
610
|
+
[prop: string]: any;
|
|
611
|
+
}
|
|
612
|
+
|
|
537
613
|
declare interface DropdownListProps extends React_2.AllHTMLAttributes<HTMLDivElement> {
|
|
538
614
|
/** The displayed `DropdownOption` components. */
|
|
539
615
|
children?: React_2.ReactNode;
|
|
@@ -1094,6 +1170,15 @@ export declare interface SplitButtonProps {
|
|
|
1094
1170
|
dropdownAriaLabelledBy?: string;
|
|
1095
1171
|
/** The `SplitButtonOption`s. */
|
|
1096
1172
|
children?: React_2.ReactNode;
|
|
1173
|
+
/** Additional props passed to main button.
|
|
1174
|
+
*
|
|
1175
|
+
* \* It does not include properties such as `children, kind, disabled, full, small, className, type, onClick`. The usage of these properties may result in undefined behavior. */
|
|
1176
|
+
mainButtonProps?: Omit<ButtonProps, 'children' | 'kind' | 'disabled' | 'full' | 'small' | 'className' | 'type' | 'onClick'>;
|
|
1177
|
+
/** Additional props passed to dropdown's anchor button.
|
|
1178
|
+
*
|
|
1179
|
+
* \* It does not include properties such as `children, defaultLabel, label, disabled, isInvalid, onLabelChange, className, tabIndex`. The usage of these properties may result in undefined behavior.
|
|
1180
|
+
*/
|
|
1181
|
+
dropdownAnchorProps?: Omit<DropdownButtonProps, 'children' | 'defaultLabel' | 'label' | 'disabled' | 'isInvalid' | 'onLabelChange' | 'className' | 'tabIndex'>;
|
|
1097
1182
|
}
|
|
1098
1183
|
|
|
1099
1184
|
export declare const StackItem: React_2.ForwardRefExoticComponent<StackItemProps & React_2.RefAttributes<HTMLDivElement>>;
|