@czi-sds/components 20.1.0 → 20.1.2
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.cjs.d.ts +19 -7
- package/dist/index.cjs.js +139 -34
- package/dist/index.esm.d.ts +19 -7
- package/dist/index.esm.js +139 -34
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AccordionProps as RawAccordionProps } from "@mui/material";
|
|
|
4
4
|
import { AccordionSummaryProps as RawAccordionSummaryProps } from "@mui/material";
|
|
5
5
|
import { AutocompleteChangeDetails as AutocompleteChangeDetails$0 } from "@mui/material";
|
|
6
6
|
import { AutocompleteChangeReason as AutocompleteChangeReason$0 } from "@mui/material";
|
|
7
|
+
import { AutocompleteCloseReason as AutocompleteCloseReason$0 } from "@mui/material";
|
|
7
8
|
import { AutocompleteValue as AutocompleteValue$0 } from "@mui/material";
|
|
8
9
|
import { AutocompleteProps as MuiAutocompleteProps } from "@mui/material";
|
|
9
10
|
import { TextFieldProps as RawTextFieldSearchProps } from "@mui/material";
|
|
@@ -35,7 +36,7 @@ import { CSSProperties, ReactElement, ReactNode, SyntheticEvent, ComponentType }
|
|
|
35
36
|
import { Theme, ThemeOptions, TypographyStyle, PaletteOptions } from "@mui/material/styles";
|
|
36
37
|
import { SerializedStyles } from "@emotion/react";
|
|
37
38
|
import { AlertProps } from "@mui/lab";
|
|
38
|
-
import { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteValue } from "@mui/base";
|
|
39
|
+
import { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteValue } from "@mui/base";
|
|
39
40
|
import { AlertTitleProps } from "@mui/material/AlertTitle";
|
|
40
41
|
import { AutocompleteValue as AutocompleteValue$1 } from "@mui/material/useAutocomplete";
|
|
41
42
|
declare const AccordionDetails: (props: AccordionDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -279,6 +280,9 @@ interface Typography {
|
|
|
279
280
|
};
|
|
280
281
|
}
|
|
281
282
|
interface FontWeights {
|
|
283
|
+
bold: number;
|
|
284
|
+
light: number;
|
|
285
|
+
medium: number;
|
|
282
286
|
regular: number;
|
|
283
287
|
semibold: number;
|
|
284
288
|
}
|
|
@@ -480,11 +484,15 @@ interface Borders {
|
|
|
480
484
|
positive: Border;
|
|
481
485
|
}
|
|
482
486
|
declare const defaultTheme: import("@mui/material/styles").Theme;
|
|
487
|
+
declare const SDSAppTheme: AppTheme;
|
|
483
488
|
/**
|
|
484
|
-
* (masoudmanson): This is to
|
|
489
|
+
* (masoudmanson): This is to make sure that the old defaultAppTheme
|
|
490
|
+
* export is still available for backward compatibility.
|
|
491
|
+
*
|
|
492
|
+
* @deprecated
|
|
493
|
+
* Please use `SDSAppTheme` instead. This export will be removed in the future.
|
|
485
494
|
*/
|
|
486
|
-
declare const defaultAppTheme:
|
|
487
|
-
declare const SDSAppTheme: AppTheme;
|
|
495
|
+
declare const defaultAppTheme: AppTheme;
|
|
488
496
|
/**
|
|
489
497
|
* This function creates the theme options for the MUI theme provider
|
|
490
498
|
*/
|
|
@@ -791,6 +799,8 @@ interface ExtraAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> extend
|
|
|
791
799
|
onChange?: (event: React.SyntheticEvent, value: AutocompleteValue$0<T, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason$0, details?: AutocompleteChangeDetails$0<T>) => void;
|
|
792
800
|
InputBaseProps?: Partial<InputSearchProps>;
|
|
793
801
|
label?: string;
|
|
802
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason$0) => void;
|
|
803
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
794
804
|
}
|
|
795
805
|
type CustomAutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = Omit<MuiAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput" | "nonce" | "rev" | "rel" | "autoFocus" | "content">;
|
|
796
806
|
type AutocompleteBaseProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = CustomAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> & ExtraAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>;
|
|
@@ -824,7 +834,8 @@ interface ExtraAutocompleteMultiColumnProps<T, Multiple extends boolean | undefi
|
|
|
824
834
|
PopperComponent?: React.JSXElementConstructor<PopperProps>;
|
|
825
835
|
PopperPlacement?: "bottom-start" | "top-start" | "bottom-end" | "top-end";
|
|
826
836
|
children?: JSX.Element | null;
|
|
827
|
-
onClickAway?: (event
|
|
837
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason$0) => void;
|
|
838
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
828
839
|
ClickAwayListenerProps?: Partial<MUIClickAwayListenerProps>;
|
|
829
840
|
options: AutocompleteMultiColumnOption<T, Multiple, DisableClearable, FreeSolo>[];
|
|
830
841
|
value?: AutocompleteMultiColumnValue<T, Multiple, DisableClearable, FreeSolo>;
|
|
@@ -851,7 +862,8 @@ interface ExtraAutocompleteProps$0<T, Multiple extends boolean | undefined, Disa
|
|
|
851
862
|
options: SDSAutocompleteOptions<T, Multiple, DisableClearable, FreeSolo>;
|
|
852
863
|
PopperBaseProps?: Partial<PopperProps>;
|
|
853
864
|
value?: SDSAutocompleteValue<T, Multiple, DisableClearable, FreeSolo>;
|
|
854
|
-
onClickAway?: (event
|
|
865
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason) => void;
|
|
866
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
855
867
|
onChange?: SDSAutocompleteOnChange<T, Multiple, DisableClearable, FreeSolo>;
|
|
856
868
|
count?: number;
|
|
857
869
|
icon?: ReactElement;
|
|
@@ -1568,5 +1580,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1568
1580
|
* @see https://mui.com/material-ui/react-table/
|
|
1569
1581
|
*/
|
|
1570
1582
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1571
|
-
export { AccordionDetails, AccordionHeader, AccordionProps, Accordion, Alert, AutocompleteSingleColumnOption, AutocompleteMultiColumnOption, SDSAutocompleteOptions, AutocompleteMultiColumnValue, AutocompleteSingleColumnValue, SDSAutocompleteValue, AutocompleteSingleColumnOnChange, AutocompleteMultiColumnOnChange, SDSAutocompleteOnChange, AutocompleteProps, StyledPopper as AutocompleteMultiColumnStyledPopper, StyledPaper$0 as AutocompleteSingleColumnStyledPaper, Autocomplete$0 as Autocomplete, BannerProps, Banner, ButtonProps, Button, ButtonDropdownProps, ButtonDropdown, ButtonIconInternalProps, ButtonIconProps, ButtonIcon, CalloutIntentType, CalloutProps, ExposedCalloutProps, Callout, CalloutTitle, CellBasicRawProps, CellBasicProps, CellBasic, CellComponentProps, CellComponent, CellHeaderDirection, CellHeaderProps, CellHeader, Chip, InputDropdown as ComplexFilterInputDropdown, InputDropdown as DropdownInputDropdown, InputDropdown, StyledPopper$1 as ComplexFilterPopper, StyledPopper$1 as DropdownPopper, ComplexFilterProps, ComplexFilter, DialogContext, DialogProps, Dialog, DialogActionsProps, DialogActions, DialogContentProps, _default, _default as DialogContent, DialogPaperProps, DialogPaper, Subtitle$0 as DialogTitleSubtitle, Title as DialogTitleTitle, Overline as DialogTitleOverline, DialogTitleProps, DialogTitle, StyledPaper$1 as DropdownPaper, ExtraDropdownProps, DropdownProps, Dropdown, DefaultDropdownMenuOption, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, DropdownMenuProps, DropdownMenu, SdsIconWithColor$0 as SdsIconWithColor, IconProps, Icon, CheckboxProps, InputCheckbox, InputDropdownProps$0 as InputDropdownProps, RadioContentProps, RadioProps, InputRadio, AccessibleInputSearchProps, InputSearchProps, InputSearch, InputSliderProps, InputSlider, InputTextProps, InputText, InputToggle, LinkProps$0 as LinkProps, Link, ListProps, List, ListItemLabel, ListItemProps, ListItem, ListSubheaderProps, ListSubheader, LoadingIndicatorProps$0 as LoadingIndicatorProps, LoadingIndicator, MenuProps, Menu, IconNameToSmallSizes, MenuItemExtraProps, MenuItemProps, MenuItem, DefaultMenuSelectOption, MenuSelectProps, MenuSelect, NavigationJumpToProps, NavigationJumpTo, NotificationIntentType, NotificationProps, ExposedNotificationProps, Notification, PaginationInternalProps, PaginationProps, Pagination, SingleButtonDefinition, SegmentedControlProps, SegmentedControl, SdsTableProps, TableProps, Table, TableHeaderProps, TableHeader, TableRowProps, TableRow, Tabs, TabProps$0 as TabProps, Tab, SdsTagProps, TagProps, Tag, SdsTagFilterProps, TagFilterProps, TagFilter, Tooltip, TooltipCondensedProps, TooltipCondensed, TooltipTableContent, TooltipTableContent as TooltipTable, SDSComponentPalette, SDSTextPalette, SDSTheme, SDSThemeOptions, AppTheme, Shadows, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, AccentColor, BaseColor, BetaColor, InfoColor, NegativeColor, NeutralColor, NoticeColor, PositiveColor, SemanticComponentColors, SemanticTextColors, IconSize, IconSizes, Border, Borders, defaultTheme,
|
|
1583
|
+
export { AccordionDetails, AccordionHeader, AccordionProps, Accordion, Alert, AutocompleteSingleColumnOption, AutocompleteMultiColumnOption, SDSAutocompleteOptions, AutocompleteMultiColumnValue, AutocompleteSingleColumnValue, SDSAutocompleteValue, AutocompleteSingleColumnOnChange, AutocompleteMultiColumnOnChange, SDSAutocompleteOnChange, AutocompleteProps, StyledPopper as AutocompleteMultiColumnStyledPopper, StyledPaper$0 as AutocompleteSingleColumnStyledPaper, Autocomplete$0 as Autocomplete, BannerProps, Banner, ButtonProps, Button, ButtonDropdownProps, ButtonDropdown, ButtonIconInternalProps, ButtonIconProps, ButtonIcon, CalloutIntentType, CalloutProps, ExposedCalloutProps, Callout, CalloutTitle, CellBasicRawProps, CellBasicProps, CellBasic, CellComponentProps, CellComponent, CellHeaderDirection, CellHeaderProps, CellHeader, Chip, InputDropdown as ComplexFilterInputDropdown, InputDropdown as DropdownInputDropdown, InputDropdown, StyledPopper$1 as ComplexFilterPopper, StyledPopper$1 as DropdownPopper, ComplexFilterProps, ComplexFilter, DialogContext, DialogProps, Dialog, DialogActionsProps, DialogActions, DialogContentProps, _default, _default as DialogContent, DialogPaperProps, DialogPaper, Subtitle$0 as DialogTitleSubtitle, Title as DialogTitleTitle, Overline as DialogTitleOverline, DialogTitleProps, DialogTitle, StyledPaper$1 as DropdownPaper, ExtraDropdownProps, DropdownProps, Dropdown, DefaultDropdownMenuOption, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, DropdownMenuProps, DropdownMenu, SdsIconWithColor$0 as SdsIconWithColor, IconProps, Icon, CheckboxProps, InputCheckbox, InputDropdownProps$0 as InputDropdownProps, RadioContentProps, RadioProps, InputRadio, AccessibleInputSearchProps, InputSearchProps, InputSearch, InputSliderProps, InputSlider, InputTextProps, InputText, InputToggle, LinkProps$0 as LinkProps, Link, ListProps, List, ListItemLabel, ListItemProps, ListItem, ListSubheaderProps, ListSubheader, LoadingIndicatorProps$0 as LoadingIndicatorProps, LoadingIndicator, MenuProps, Menu, IconNameToSmallSizes, MenuItemExtraProps, MenuItemProps, MenuItem, DefaultMenuSelectOption, MenuSelectProps, MenuSelect, NavigationJumpToProps, NavigationJumpTo, NotificationIntentType, NotificationProps, ExposedNotificationProps, Notification, PaginationInternalProps, PaginationProps, Pagination, SingleButtonDefinition, SegmentedControlProps, SegmentedControl, SdsTableProps, TableProps, Table, TableHeaderProps, TableHeader, TableRowProps, TableRow, Tabs, TabProps$0 as TabProps, Tab, SdsTagProps, TagProps, Tag, SdsTagFilterProps, TagFilterProps, TagFilter, Tooltip, TooltipCondensedProps, TooltipCondensed, TooltipTableContent, TooltipTableContent as TooltipTable, SDSComponentPalette, SDSTextPalette, SDSTheme, SDSThemeOptions, AppTheme, Shadows, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, AccentColor, BaseColor, BetaColor, InfoColor, NegativeColor, NeutralColor, NoticeColor, PositiveColor, SemanticComponentColors, SemanticTextColors, IconSize, IconSizes, Border, Borders, defaultTheme, SDSAppTheme, defaultAppTheme, makeThemeOptions, focusVisibleA11yStyle, fontBody, fontBodyL, fontBodyM, fontBodyS, fontBodyXs, fontBodyXxs, fontBodyXxxs, fontBodySemiboldL, fontBodySemiboldM, fontBodySemiboldS, fontBodySemiboldXs, fontBodySemiboldXxs, fontBodySemiboldXxxs, fontCaps, fontCapsXxs, fontCapsXxxs, fontCapsXxxxs, fontHeader, fontHeaderXxl, fontHeaderXl, fontHeaderL, fontHeaderM, fontHeaderS, fontHeaderXs, fontHeaderXxs, fontHeaderXxxs, fontCode, fontCodeXs, fontCodeS, fontCodeSemiboldXs, fontCodeSemiboldS, fontTabular, fontTabularXs, fontTabularS, fontTabularSemiboldXs, fontTabularSemiboldS, CommonThemeProps, getSpaces, getSpacings, getTypography, getPalette, getColors, getSemanticComponentColors, getSemanticTextColors, getShadows, getCorners, getFontWeights, getIconSizes, getBorders };
|
|
1572
1584
|
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };
|
package/dist/index.cjs.js
CHANGED
|
@@ -160,6 +160,9 @@ var SDSAppTheme = {
|
|
|
160
160
|
s: 2,
|
|
161
161
|
},
|
|
162
162
|
fontWeights: {
|
|
163
|
+
bold: 700,
|
|
164
|
+
light: 300,
|
|
165
|
+
medium: 800,
|
|
163
166
|
regular: 400,
|
|
164
167
|
semibold: 600,
|
|
165
168
|
},
|
|
@@ -461,6 +464,14 @@ var SDSAppTheme = {
|
|
|
461
464
|
},
|
|
462
465
|
},
|
|
463
466
|
};
|
|
467
|
+
/**
|
|
468
|
+
* (masoudmanson): This is to make sure that the old defaultAppTheme
|
|
469
|
+
* export is still available for backward compatibility.
|
|
470
|
+
*
|
|
471
|
+
* @deprecated
|
|
472
|
+
* Please use `SDSAppTheme` instead. This export will be removed in the future.
|
|
473
|
+
*/
|
|
474
|
+
var defaultAppTheme = SDSAppTheme;
|
|
464
475
|
// (mlila) whenever our theme uses colors, we need to make sure we allow consuming
|
|
465
476
|
// applications to override those colors using their own custom theme.
|
|
466
477
|
// By defining borders using SDSAppTheme.colors instead of defaultThemeColors,
|
|
@@ -819,10 +830,6 @@ function makeThemeOptions(appTheme) {
|
|
|
819
830
|
|
|
820
831
|
var defaultThemeOptions = makeThemeOptions(SDSAppTheme);
|
|
821
832
|
var defaultTheme = styles.createTheme(defaultThemeOptions);
|
|
822
|
-
/**
|
|
823
|
-
* (masoudmanson): This is to keep the old defaultAppTheme export for backward compatibility.
|
|
824
|
-
*/
|
|
825
|
-
var defaultAppTheme = defaultTheme;
|
|
826
833
|
|
|
827
834
|
function focusVisibleA11yStyle() {
|
|
828
835
|
return "\n &.Mui-focusVisible, &:focus-visible {\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n }\n ";
|
|
@@ -4258,25 +4265,37 @@ var StyledMenuItemText = styles.styled("div")(templateObject_6$7 || (templateObj
|
|
|
4258
4265
|
var templateObject_1$K, templateObject_2$s, templateObject_3$k, templateObject_4$h, templateObject_5$b, templateObject_6$7;
|
|
4259
4266
|
|
|
4260
4267
|
var AutocompleteBase = function (props) {
|
|
4261
|
-
var multiple = props.multiple, _a = props.disableCloseOnSelect, disableCloseOnSelect = _a === void 0 ? multiple : _a, _b = props.getOptionLabel, getOptionLabel = _b === void 0 ? defaultGetOptionLabel : _b, _c = props.InputBaseProps, InputBaseProps = _c === void 0 ? EMPTY_OBJECT : _c, _d = props.isOptionEqualToValue, isOptionEqualToValue = _d === void 0 ? defaultIsOptionEqualToValue : _d, _e = props.keepSearchOnSelect, keepSearchOnSelect = _e === void 0 ? false : _e, _f = props.label, label = _f === void 0 ? "Label" : _f, _g = props.loading, loading = _g === void 0 ? false : _g, _h = props.loadingText, loadingText = _h === void 0 ? "" : _h, _j = props.noOptionsText, noOptionsText = _j === void 0 ? "No options" : _j, _k = props.onInputChange, onInputChange = _k === void 0 ? noop : _k, _l = props.renderOption, renderOption = _l === void 0 ? defaultRenderOption : _l, _m = props.renderTags, renderTags = _m === void 0 ? defaultRenderTags : _m, _o = props.search, search = _o === void 0 ? false : _o, _p = props.clearOnBlur, clearOnBlur = _p === void 0 ? false : _p, _q = props.blurOnSelect, blurOnSelect = _q === void 0 ? !multiple : _q;
|
|
4268
|
+
var multiple = props.multiple, _a = props.disableCloseOnSelect, disableCloseOnSelect = _a === void 0 ? multiple : _a, _b = props.getOptionLabel, getOptionLabel = _b === void 0 ? defaultGetOptionLabel : _b, _c = props.InputBaseProps, InputBaseProps = _c === void 0 ? EMPTY_OBJECT : _c, _d = props.isOptionEqualToValue, isOptionEqualToValue = _d === void 0 ? defaultIsOptionEqualToValue : _d, _e = props.keepSearchOnSelect, keepSearchOnSelect = _e === void 0 ? false : _e, _f = props.label, label = _f === void 0 ? "Label" : _f, _g = props.loading, loading = _g === void 0 ? false : _g, _h = props.loadingText, loadingText = _h === void 0 ? "" : _h, _j = props.noOptionsText, noOptionsText = _j === void 0 ? "No options" : _j, _k = props.onInputChange, onInputChange = _k === void 0 ? noop : _k, _l = props.renderOption, renderOption = _l === void 0 ? defaultRenderOption : _l, _m = props.renderTags, renderTags = _m === void 0 ? defaultRenderTags : _m, _o = props.search, search = _o === void 0 ? false : _o, _p = props.clearOnBlur, clearOnBlur = _p === void 0 ? false : _p, _q = props.blurOnSelect, blurOnSelect = _q === void 0 ? !multiple : _q, onClickAway = props.onClickAway, onClick = props.onClick, onOpen = props.onOpen, onClose = props.onClose;
|
|
4262
4269
|
var theme = styles.useTheme();
|
|
4263
4270
|
var _r = React.useState(""), inputValue = _r[0], setInputValue = _r[1];
|
|
4264
|
-
return (jsxRuntime.jsx(StyledAutocompleteBase, __assign({ clearOnBlur: clearOnBlur, disableCloseOnSelect: disableCloseOnSelect, disablePortal: true, renderTags: renderTags, loading: loading, loadingText: loadingText, noOptionsText: noOptionsText, PaperComponent: StyledPaper$3, PopperComponent: useDefaultPopperComponent(), renderOption: renderOption, getOptionLabel: getOptionLabel, isOptionEqualToValue: isOptionEqualToValue, inputValue: inputValue, renderInput: defaultRenderInput, multiple: multiple
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4271
|
+
return (jsxRuntime.jsx(StyledAutocompleteBase, __assign({ clearOnBlur: clearOnBlur, disableCloseOnSelect: disableCloseOnSelect, disablePortal: true, renderTags: renderTags, loading: loading, loadingText: loadingText, noOptionsText: noOptionsText, PaperComponent: StyledPaper$3, PopperComponent: useDefaultPopperComponent(), renderOption: renderOption, getOptionLabel: getOptionLabel, isOptionEqualToValue: isOptionEqualToValue, inputValue: inputValue, renderInput: defaultRenderInput, multiple: multiple,
|
|
4272
|
+
/**
|
|
4273
|
+
* (masoudmanson): Overrides the onOpen and onClose handlers to ensure that
|
|
4274
|
+
* the onClick and onClickAway handlers are triggered when a controlled dropdown
|
|
4275
|
+
* is opened or closed, respectively.
|
|
4276
|
+
*/
|
|
4277
|
+
onOpen: defaultOnOpen, onClose: defaultOnClose }, props, {
|
|
4278
|
+
/**
|
|
4279
|
+
* (masoudmanson): For multiple options (multiple = true), setting blurOnSelect to false
|
|
4280
|
+
* keeps the dropdown open after selecting an option. This feature enhances user experience
|
|
4281
|
+
* by preventing the dropdown from closing, enabling users to select multiple options
|
|
4282
|
+
* without having to reopen the menu repeatedly.
|
|
4283
|
+
*/
|
|
4269
4284
|
blurOnSelect: multiple ? false : blurOnSelect,
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4285
|
+
/**
|
|
4286
|
+
* (masoudmanson): Given the necessity of maintaining consistent onBlur functionality,
|
|
4287
|
+
* and clearing the input value on blur, it's crucial to include the onBlur handler
|
|
4288
|
+
* after spreading other props. Furthermore, within the defaultOnBlur function, the
|
|
4289
|
+
* actual onBlur function is invoked for completeness.
|
|
4290
|
+
*/
|
|
4274
4291
|
onBlur: defaultOnBlur,
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4292
|
+
/**
|
|
4293
|
+
* (masoudmanson): To ensure component-level actions (changing the input field value)
|
|
4294
|
+
* trigger upon input changes, it's crucial to position the onInputChange handler after
|
|
4295
|
+
* spreading the other props. Furthermore, within the defaultOnInputChange function,
|
|
4296
|
+
* the provided onInputChange from props is called at the end to emit the input changes
|
|
4297
|
+
* to the user.
|
|
4298
|
+
*/
|
|
4280
4299
|
onInputChange: defaultOnInputChange })));
|
|
4281
4300
|
/**
|
|
4282
4301
|
* (masoudmanson): Using a custom Popper or Paper with the Autocomplete
|
|
@@ -4320,6 +4339,24 @@ var AutocompleteBase = function (props) {
|
|
|
4320
4339
|
setInputValue("");
|
|
4321
4340
|
(_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
4322
4341
|
}
|
|
4342
|
+
/**
|
|
4343
|
+
* (masoudmanson): The default onOpen handler is the Callback fired when the popup
|
|
4344
|
+
* requests to be opened. This function is responsible for invoking the onOpen and onClick
|
|
4345
|
+
* handlers when a controlled dropdown is opening.
|
|
4346
|
+
*/
|
|
4347
|
+
function defaultOnOpen(event) {
|
|
4348
|
+
onOpen === null || onOpen === void 0 ? void 0 : onOpen(event);
|
|
4349
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
4350
|
+
}
|
|
4351
|
+
/**
|
|
4352
|
+
* (masoudmanson): The default onClose handler is the callback fired when the popup
|
|
4353
|
+
* requests to be closed. This function is responsible for invoking the onClose and onClickAway
|
|
4354
|
+
* handlers when a controlled dropdown is closing.
|
|
4355
|
+
*/
|
|
4356
|
+
function defaultOnClose(event, reason) {
|
|
4357
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(event, reason);
|
|
4358
|
+
onClickAway === null || onClickAway === void 0 ? void 0 : onClickAway(event, reason);
|
|
4359
|
+
}
|
|
4323
4360
|
function defaultOnInputChange(event, value, reason) {
|
|
4324
4361
|
if (!multiple) {
|
|
4325
4362
|
if (reason === "input") {
|
|
@@ -4480,16 +4517,26 @@ var templateObject_1$I, templateObject_2$q, templateObject_3$i, templateObject_4
|
|
|
4480
4517
|
|
|
4481
4518
|
var AutocompleteMultiColumn = function (props) {
|
|
4482
4519
|
var _a;
|
|
4483
|
-
var InputBaseProps = props.InputBaseProps,
|
|
4520
|
+
var InputBaseProps = props.InputBaseProps, open = props.open, _b = props.PopperPlacement, PopperPlacement = _b === void 0 ? "bottom-start" : _b, PopperBaseProps = props.PopperBaseProps, _c = props.search, search = _c === void 0 ? false : _c, _d = props.label, label = _d === void 0 ? "Search" : _d, onClickAway = props.onClickAway, onClick = props.onClick, ClickAwayListenerProps = props.ClickAwayListenerProps, options = props.options, onInputChange = props.onInputChange, onBlur = props.onBlur, multiple = props.multiple, parentInitialValue = props.value, onChange = props.onChange, _e = props.PopperComponent, PopperComponent = _e === void 0 ? StyledPopper$2 : _e, rest = __rest(props, ["InputBaseProps", "open", "PopperPlacement", "PopperBaseProps", "search", "label", "onClickAway", "onClick", "ClickAwayListenerProps", "options", "onInputChange", "onBlur", "multiple", "value", "onChange", "PopperComponent"]);
|
|
4484
4521
|
var theme = styles.useTheme();
|
|
4485
|
-
var
|
|
4486
|
-
var
|
|
4522
|
+
var isOpenControlled = open !== undefined;
|
|
4523
|
+
var _f = React.useState(""), inputValue = _f[0], setInputValue = _f[1];
|
|
4524
|
+
var _g = React.useState(isOpenControlled ? open : false), popperOpen = _g[0], setPopperOpen = _g[1];
|
|
4525
|
+
/**
|
|
4526
|
+
* (masoudmanson): This useEffect is used to update the popperOpen state
|
|
4527
|
+
* when the open prop is controlled.
|
|
4528
|
+
*/
|
|
4529
|
+
React.useEffect(function () {
|
|
4530
|
+
if (isOpenControlled) {
|
|
4531
|
+
setPopperOpen(open);
|
|
4532
|
+
}
|
|
4533
|
+
}, [isOpenControlled, open]);
|
|
4487
4534
|
var anchorRef = React.useRef(null);
|
|
4488
|
-
var
|
|
4535
|
+
var _h = React.useState(null), anchorEl = _h[0], setAnchorEl = _h[1];
|
|
4489
4536
|
React.useEffect(function () {
|
|
4490
4537
|
setAnchorEl(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current);
|
|
4491
4538
|
}, [anchorRef]);
|
|
4492
|
-
var
|
|
4539
|
+
var _j = React.useState({}), autocompleteMultiColumnValue = _j[0], setAutocompleteMultiColumnValue = _j[1];
|
|
4493
4540
|
React.useEffect(function () {
|
|
4494
4541
|
if (parentInitialValue !== undefined) {
|
|
4495
4542
|
setAutocompleteMultiColumnValue(parentInitialValue);
|
|
@@ -4503,7 +4550,7 @@ var AutocompleteMultiColumn = function (props) {
|
|
|
4503
4550
|
});
|
|
4504
4551
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, __assign(__assign({}, autocompleteMultiColumnValue), (_a = {}, _a[column] = val, _a)), reason, details);
|
|
4505
4552
|
};
|
|
4506
|
-
return (jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway:
|
|
4553
|
+
return (jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway: defaultOnClickAway }, ClickAwayListenerProps, { children: jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(StyledAutocompleteInput, __assign({ id: "location-search", label: label, placeholder: label, value: inputValue, onChange: handleInputChange, onClick: handleInputClick, onBlur: handleInputBlur, ref: anchorRef, search: search, onKeyDown: handleInputKeyDown, InputProps: __assign(__assign({}, InputBaseProps === null || InputBaseProps === void 0 ? void 0 : InputBaseProps.ref), { endAdornment: (jsxRuntime.jsx(StyledInputAdornment, { position: "end", children: inputValue && (jsxRuntime.jsx(Button, { "aria-label": "clear-button", className: "input-search-clear-icon", sdsType: "tertiary", sdsSize: "small", sdsStyle: "icon", sdsIconProps: {
|
|
4507
4554
|
sdsType: "iconButton",
|
|
4508
4555
|
}, icon: "XMarkCircle", onClick: clearInput })) })),
|
|
4509
4556
|
/**
|
|
@@ -4530,7 +4577,22 @@ var AutocompleteMultiColumn = function (props) {
|
|
|
4530
4577
|
*/
|
|
4531
4578
|
onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange({ target: { value: "" } }, "", "clear");
|
|
4532
4579
|
}
|
|
4533
|
-
function handleInputClick(
|
|
4580
|
+
function handleInputClick(event) {
|
|
4581
|
+
/**
|
|
4582
|
+
* (masoudmanson): Because the Autocomplete component overrides the
|
|
4583
|
+
* InputSearch's onClick, we must also include the parent onClick here.
|
|
4584
|
+
*/
|
|
4585
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
4586
|
+
/**
|
|
4587
|
+
* (masoudmanson): If the dropdown is controlled, we call the onClick prop to allow the parent
|
|
4588
|
+
* to handle the opening and closing of the dropdown.
|
|
4589
|
+
*/
|
|
4590
|
+
if (isOpenControlled) {
|
|
4591
|
+
return;
|
|
4592
|
+
}
|
|
4593
|
+
/**
|
|
4594
|
+
* (masoudmanson): If the dropdown is not controlled, we toggle the dropdown open and closed.
|
|
4595
|
+
*/
|
|
4534
4596
|
if (popperOpen) {
|
|
4535
4597
|
setPopperOpen(false);
|
|
4536
4598
|
}
|
|
@@ -4554,13 +4616,55 @@ var AutocompleteMultiColumn = function (props) {
|
|
|
4554
4616
|
setInputValue("");
|
|
4555
4617
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
4556
4618
|
}
|
|
4557
|
-
|
|
4558
|
-
|
|
4619
|
+
/**
|
|
4620
|
+
* (masoudmanson): This is the default onClickAway handler for the Autocomplete component.
|
|
4621
|
+
* It is used to close the dropdown when the user clicks away from the dropdown. It also
|
|
4622
|
+
* calls the parent onClickAway prop if it is provided.
|
|
4623
|
+
*/
|
|
4624
|
+
function defaultOnClickAway(event) {
|
|
4625
|
+
/**
|
|
4626
|
+
* (masoudmanson): We only want to close the dropdown if it is open.
|
|
4627
|
+
* This may sound unnecessary, but it is to prevent the dropdown from
|
|
4628
|
+
* calling the parent onClickAway prop when the dropdown is closed.
|
|
4629
|
+
*/
|
|
4630
|
+
if (popperOpen) {
|
|
4631
|
+
onClickAway === null || onClickAway === void 0 ? void 0 : onClickAway(event, "blur");
|
|
4632
|
+
/**
|
|
4633
|
+
* (masoudmanson): If the dropdown is controlled, we call the onClickAway prop to allow the parent
|
|
4634
|
+
* to handle the closing of the dropdown.
|
|
4635
|
+
*/
|
|
4636
|
+
if (isOpenControlled)
|
|
4637
|
+
return;
|
|
4638
|
+
// (masoudmanson): If the dropdown is not controlled, we close the dropdown.
|
|
4639
|
+
setPopperOpen(false);
|
|
4640
|
+
}
|
|
4559
4641
|
}
|
|
4560
4642
|
function handleInputKeyDown(event) {
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4643
|
+
var _a;
|
|
4644
|
+
/**
|
|
4645
|
+
* (masoudmanson): Because the Autocomplete component overrides the
|
|
4646
|
+
* InputSearch's onKeyDown, we must also include the user defined onKeyDown here.
|
|
4647
|
+
*/
|
|
4648
|
+
if (props === null || props === void 0 ? void 0 : props.onKeyDown) {
|
|
4649
|
+
(_a = props === null || props === void 0 ? void 0 : props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
4650
|
+
}
|
|
4651
|
+
else {
|
|
4652
|
+
// (masoudmanson): This prevents Backspace from deselecting selected dropdown options.
|
|
4653
|
+
if (event.key === "Backspace") {
|
|
4654
|
+
event.stopPropagation();
|
|
4655
|
+
}
|
|
4656
|
+
/**
|
|
4657
|
+
* (masoudmanson): This is to handle the Escape key to close the dropdown.
|
|
4658
|
+
* If the dropdown is controlled, we call the onClick prop to allow the parent
|
|
4659
|
+
* to handle the closing of the dropdown.
|
|
4660
|
+
*/
|
|
4661
|
+
if (event.key === "Escape") {
|
|
4662
|
+
if (isOpenControlled) {
|
|
4663
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
4664
|
+
return;
|
|
4665
|
+
}
|
|
4666
|
+
setPopperOpen(false);
|
|
4667
|
+
}
|
|
4564
4668
|
}
|
|
4565
4669
|
}
|
|
4566
4670
|
};
|
|
@@ -4572,7 +4676,7 @@ var Autocomplete = function (props) {
|
|
|
4572
4676
|
if (options.length > 1) {
|
|
4573
4677
|
return (jsxRuntime.jsx(AutocompleteMultiColumn, __assign({ options: options, value: value, onChange: onChange }, rest, {
|
|
4574
4678
|
// (masoudmanson): groupBy option is disabled on MultiColumn dropdowns
|
|
4575
|
-
groupBy: undefined
|
|
4679
|
+
groupBy: undefined })));
|
|
4576
4680
|
}
|
|
4577
4681
|
else {
|
|
4578
4682
|
return (jsxRuntime.jsx(AutocompleteBase, __assign({ options: options[0].options, value: value, onChange: onChange }, rest)));
|
|
@@ -5246,7 +5350,7 @@ var DropdownMenu = function (props) {
|
|
|
5246
5350
|
], open: open, anchorEl: anchorEl, placement: PopperPlacement }, PopperBaseProps, {
|
|
5247
5351
|
// (masoudmanson): To override the width of the Popper,
|
|
5248
5352
|
// the sx prop's value must be set after spreading the PopperBaseProps.
|
|
5249
|
-
sx: dropdownMenuPopperSx, children: jsxRuntime.jsx(PaperComponent, { children: jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxRuntime.jsxs(StyledDropdownMenuAutocompleteWrapper, { children: [title && (jsxRuntime.jsx(StyledHeaderTitle, { search: search, children: title })), anchorEl && (jsxRuntime.jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
|
|
5353
|
+
sx: dropdownMenuPopperSx, children: jsxRuntime.jsx(PaperComponent, { children: jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxRuntime.jsxs(StyledDropdownMenuAutocompleteWrapper, { children: [title && (jsxRuntime.jsx(StyledHeaderTitle, { search: search, children: title })), anchorEl && (jsxRuntime.jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop, onClick: noop }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
|
|
5250
5354
|
};
|
|
5251
5355
|
|
|
5252
5356
|
var doNotForwardProps$e = [
|
|
@@ -5843,7 +5947,7 @@ var Dropdown = function (props) {
|
|
|
5843
5947
|
// which by default will not close on blur. If closeOnBlur is enabled, clicking out
|
|
5844
5948
|
// is equivalent to clicking the Cancel button, closing the dropdown and losing
|
|
5845
5949
|
// unapplied changes.
|
|
5846
|
-
closeOnBlur = _f === void 0 ? !buttons : _f, onClose = props.onClose, onChange = props.onChange, _g = props.DropdownMenuProps, DropdownMenuProps = _g === void 0 ? {} : _g, _h = props.InputDropdownProps, InputDropdownProps = _h === void 0 ? { sdsStyle: "minimal" } : _h, _j = props.InputDropdownComponent, InputDropdownComponent = _j === void 0 ? InputDropdown : _j, _k = props.isTriggerChangeOnOptionClick, isTriggerChangeOnOptionClick = _k === void 0 ? false : _k, _l = props.disabled, disabled = _l === void 0 ? false : _l, propValue = props.value, rest = __rest(props, ["options", "label", "multiple", "search", "buttonPosition", "buttons", "closeOnBlur", "onClose", "onChange", "DropdownMenuProps", "InputDropdownProps", "InputDropdownComponent", "isTriggerChangeOnOptionClick", "disabled", "value"]);
|
|
5950
|
+
closeOnBlur = _f === void 0 ? !buttons : _f, onClose = props.onClose, onChange = props.onChange, _g = props.DropdownMenuProps, DropdownMenuProps = _g === void 0 ? {} : _g, _h = props.InputDropdownProps, InputDropdownProps = _h === void 0 ? { sdsStyle: "minimal" } : _h, _j = props.InputDropdownComponent, InputDropdownComponent = _j === void 0 ? InputDropdown : _j, _k = props.isTriggerChangeOnOptionClick, isTriggerChangeOnOptionClick = _k === void 0 ? false : _k, _l = props.disabled, disabled = _l === void 0 ? false : _l, propValue = props.value, onClick = props.onClick, rest = __rest(props, ["options", "label", "multiple", "search", "buttonPosition", "buttons", "closeOnBlur", "onClose", "onChange", "DropdownMenuProps", "InputDropdownProps", "InputDropdownComponent", "isTriggerChangeOnOptionClick", "disabled", "value", "onClick"]);
|
|
5847
5951
|
if (buttons && !multiple) {
|
|
5848
5952
|
// eslint-disable-next-line no-console
|
|
5849
5953
|
console.warn("Warning: buttons are only supported for multiple select dropdowns.");
|
|
@@ -5893,6 +5997,7 @@ var Dropdown = function (props) {
|
|
|
5893
5997
|
}
|
|
5894
5998
|
}
|
|
5895
5999
|
function handleClick(event) {
|
|
6000
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
5896
6001
|
if (open) {
|
|
5897
6002
|
if (!shouldShowButtons) {
|
|
5898
6003
|
if (multiple) {
|
package/dist/index.esm.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AccordionProps as RawAccordionProps } from "@mui/material";
|
|
|
4
4
|
import { AccordionSummaryProps as RawAccordionSummaryProps } from "@mui/material";
|
|
5
5
|
import { AutocompleteChangeDetails as AutocompleteChangeDetails$0 } from "@mui/material";
|
|
6
6
|
import { AutocompleteChangeReason as AutocompleteChangeReason$0 } from "@mui/material";
|
|
7
|
+
import { AutocompleteCloseReason as AutocompleteCloseReason$0 } from "@mui/material";
|
|
7
8
|
import { AutocompleteValue as AutocompleteValue$0 } from "@mui/material";
|
|
8
9
|
import { AutocompleteProps as MuiAutocompleteProps } from "@mui/material";
|
|
9
10
|
import { TextFieldProps as RawTextFieldSearchProps } from "@mui/material";
|
|
@@ -35,7 +36,7 @@ import { CSSProperties, ReactElement, ReactNode, SyntheticEvent, ComponentType }
|
|
|
35
36
|
import { Theme, ThemeOptions, TypographyStyle, PaletteOptions } from "@mui/material/styles";
|
|
36
37
|
import { SerializedStyles } from "@emotion/react";
|
|
37
38
|
import { AlertProps } from "@mui/lab";
|
|
38
|
-
import { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteValue } from "@mui/base";
|
|
39
|
+
import { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteValue } from "@mui/base";
|
|
39
40
|
import { AlertTitleProps } from "@mui/material/AlertTitle";
|
|
40
41
|
import { AutocompleteValue as AutocompleteValue$1 } from "@mui/material/useAutocomplete";
|
|
41
42
|
declare const AccordionDetails: (props: AccordionDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -279,6 +280,9 @@ interface Typography {
|
|
|
279
280
|
};
|
|
280
281
|
}
|
|
281
282
|
interface FontWeights {
|
|
283
|
+
bold: number;
|
|
284
|
+
light: number;
|
|
285
|
+
medium: number;
|
|
282
286
|
regular: number;
|
|
283
287
|
semibold: number;
|
|
284
288
|
}
|
|
@@ -480,11 +484,15 @@ interface Borders {
|
|
|
480
484
|
positive: Border;
|
|
481
485
|
}
|
|
482
486
|
declare const defaultTheme: import("@mui/material/styles").Theme;
|
|
487
|
+
declare const SDSAppTheme: AppTheme;
|
|
483
488
|
/**
|
|
484
|
-
* (masoudmanson): This is to
|
|
489
|
+
* (masoudmanson): This is to make sure that the old defaultAppTheme
|
|
490
|
+
* export is still available for backward compatibility.
|
|
491
|
+
*
|
|
492
|
+
* @deprecated
|
|
493
|
+
* Please use `SDSAppTheme` instead. This export will be removed in the future.
|
|
485
494
|
*/
|
|
486
|
-
declare const defaultAppTheme:
|
|
487
|
-
declare const SDSAppTheme: AppTheme;
|
|
495
|
+
declare const defaultAppTheme: AppTheme;
|
|
488
496
|
/**
|
|
489
497
|
* This function creates the theme options for the MUI theme provider
|
|
490
498
|
*/
|
|
@@ -791,6 +799,8 @@ interface ExtraAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> extend
|
|
|
791
799
|
onChange?: (event: React.SyntheticEvent, value: AutocompleteValue$0<T, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason$0, details?: AutocompleteChangeDetails$0<T>) => void;
|
|
792
800
|
InputBaseProps?: Partial<InputSearchProps>;
|
|
793
801
|
label?: string;
|
|
802
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason$0) => void;
|
|
803
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
794
804
|
}
|
|
795
805
|
type CustomAutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = Omit<MuiAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput" | "nonce" | "rev" | "rel" | "autoFocus" | "content">;
|
|
796
806
|
type AutocompleteBaseProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = CustomAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> & ExtraAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>;
|
|
@@ -824,7 +834,8 @@ interface ExtraAutocompleteMultiColumnProps<T, Multiple extends boolean | undefi
|
|
|
824
834
|
PopperComponent?: React.JSXElementConstructor<PopperProps>;
|
|
825
835
|
PopperPlacement?: "bottom-start" | "top-start" | "bottom-end" | "top-end";
|
|
826
836
|
children?: JSX.Element | null;
|
|
827
|
-
onClickAway?: (event
|
|
837
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason$0) => void;
|
|
838
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
828
839
|
ClickAwayListenerProps?: Partial<MUIClickAwayListenerProps>;
|
|
829
840
|
options: AutocompleteMultiColumnOption<T, Multiple, DisableClearable, FreeSolo>[];
|
|
830
841
|
value?: AutocompleteMultiColumnValue<T, Multiple, DisableClearable, FreeSolo>;
|
|
@@ -851,7 +862,8 @@ interface ExtraAutocompleteProps$0<T, Multiple extends boolean | undefined, Disa
|
|
|
851
862
|
options: SDSAutocompleteOptions<T, Multiple, DisableClearable, FreeSolo>;
|
|
852
863
|
PopperBaseProps?: Partial<PopperProps>;
|
|
853
864
|
value?: SDSAutocompleteValue<T, Multiple, DisableClearable, FreeSolo>;
|
|
854
|
-
onClickAway?: (event
|
|
865
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason) => void;
|
|
866
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
855
867
|
onChange?: SDSAutocompleteOnChange<T, Multiple, DisableClearable, FreeSolo>;
|
|
856
868
|
count?: number;
|
|
857
869
|
icon?: ReactElement;
|
|
@@ -1568,5 +1580,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1568
1580
|
* @see https://mui.com/material-ui/react-table/
|
|
1569
1581
|
*/
|
|
1570
1582
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1571
|
-
export { AccordionDetails, AccordionHeader, AccordionProps, Accordion, Alert, AutocompleteSingleColumnOption, AutocompleteMultiColumnOption, SDSAutocompleteOptions, AutocompleteMultiColumnValue, AutocompleteSingleColumnValue, SDSAutocompleteValue, AutocompleteSingleColumnOnChange, AutocompleteMultiColumnOnChange, SDSAutocompleteOnChange, AutocompleteProps, StyledPopper as AutocompleteMultiColumnStyledPopper, StyledPaper$0 as AutocompleteSingleColumnStyledPaper, Autocomplete$0 as Autocomplete, BannerProps, Banner, ButtonProps, Button, ButtonDropdownProps, ButtonDropdown, ButtonIconInternalProps, ButtonIconProps, ButtonIcon, CalloutIntentType, CalloutProps, ExposedCalloutProps, Callout, CalloutTitle, CellBasicRawProps, CellBasicProps, CellBasic, CellComponentProps, CellComponent, CellHeaderDirection, CellHeaderProps, CellHeader, Chip, InputDropdown as ComplexFilterInputDropdown, InputDropdown as DropdownInputDropdown, InputDropdown, StyledPopper$1 as ComplexFilterPopper, StyledPopper$1 as DropdownPopper, ComplexFilterProps, ComplexFilter, DialogContext, DialogProps, Dialog, DialogActionsProps, DialogActions, DialogContentProps, _default, _default as DialogContent, DialogPaperProps, DialogPaper, Subtitle$0 as DialogTitleSubtitle, Title as DialogTitleTitle, Overline as DialogTitleOverline, DialogTitleProps, DialogTitle, StyledPaper$1 as DropdownPaper, ExtraDropdownProps, DropdownProps, Dropdown, DefaultDropdownMenuOption, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, DropdownMenuProps, DropdownMenu, SdsIconWithColor$0 as SdsIconWithColor, IconProps, Icon, CheckboxProps, InputCheckbox, InputDropdownProps$0 as InputDropdownProps, RadioContentProps, RadioProps, InputRadio, AccessibleInputSearchProps, InputSearchProps, InputSearch, InputSliderProps, InputSlider, InputTextProps, InputText, InputToggle, LinkProps$0 as LinkProps, Link, ListProps, List, ListItemLabel, ListItemProps, ListItem, ListSubheaderProps, ListSubheader, LoadingIndicatorProps$0 as LoadingIndicatorProps, LoadingIndicator, MenuProps, Menu, IconNameToSmallSizes, MenuItemExtraProps, MenuItemProps, MenuItem, DefaultMenuSelectOption, MenuSelectProps, MenuSelect, NavigationJumpToProps, NavigationJumpTo, NotificationIntentType, NotificationProps, ExposedNotificationProps, Notification, PaginationInternalProps, PaginationProps, Pagination, SingleButtonDefinition, SegmentedControlProps, SegmentedControl, SdsTableProps, TableProps, Table, TableHeaderProps, TableHeader, TableRowProps, TableRow, Tabs, TabProps$0 as TabProps, Tab, SdsTagProps, TagProps, Tag, SdsTagFilterProps, TagFilterProps, TagFilter, Tooltip, TooltipCondensedProps, TooltipCondensed, TooltipTableContent, TooltipTableContent as TooltipTable, SDSComponentPalette, SDSTextPalette, SDSTheme, SDSThemeOptions, AppTheme, Shadows, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, AccentColor, BaseColor, BetaColor, InfoColor, NegativeColor, NeutralColor, NoticeColor, PositiveColor, SemanticComponentColors, SemanticTextColors, IconSize, IconSizes, Border, Borders, defaultTheme,
|
|
1583
|
+
export { AccordionDetails, AccordionHeader, AccordionProps, Accordion, Alert, AutocompleteSingleColumnOption, AutocompleteMultiColumnOption, SDSAutocompleteOptions, AutocompleteMultiColumnValue, AutocompleteSingleColumnValue, SDSAutocompleteValue, AutocompleteSingleColumnOnChange, AutocompleteMultiColumnOnChange, SDSAutocompleteOnChange, AutocompleteProps, StyledPopper as AutocompleteMultiColumnStyledPopper, StyledPaper$0 as AutocompleteSingleColumnStyledPaper, Autocomplete$0 as Autocomplete, BannerProps, Banner, ButtonProps, Button, ButtonDropdownProps, ButtonDropdown, ButtonIconInternalProps, ButtonIconProps, ButtonIcon, CalloutIntentType, CalloutProps, ExposedCalloutProps, Callout, CalloutTitle, CellBasicRawProps, CellBasicProps, CellBasic, CellComponentProps, CellComponent, CellHeaderDirection, CellHeaderProps, CellHeader, Chip, InputDropdown as ComplexFilterInputDropdown, InputDropdown as DropdownInputDropdown, InputDropdown, StyledPopper$1 as ComplexFilterPopper, StyledPopper$1 as DropdownPopper, ComplexFilterProps, ComplexFilter, DialogContext, DialogProps, Dialog, DialogActionsProps, DialogActions, DialogContentProps, _default, _default as DialogContent, DialogPaperProps, DialogPaper, Subtitle$0 as DialogTitleSubtitle, Title as DialogTitleTitle, Overline as DialogTitleOverline, DialogTitleProps, DialogTitle, StyledPaper$1 as DropdownPaper, ExtraDropdownProps, DropdownProps, Dropdown, DefaultDropdownMenuOption, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, DropdownMenuProps, DropdownMenu, SdsIconWithColor$0 as SdsIconWithColor, IconProps, Icon, CheckboxProps, InputCheckbox, InputDropdownProps$0 as InputDropdownProps, RadioContentProps, RadioProps, InputRadio, AccessibleInputSearchProps, InputSearchProps, InputSearch, InputSliderProps, InputSlider, InputTextProps, InputText, InputToggle, LinkProps$0 as LinkProps, Link, ListProps, List, ListItemLabel, ListItemProps, ListItem, ListSubheaderProps, ListSubheader, LoadingIndicatorProps$0 as LoadingIndicatorProps, LoadingIndicator, MenuProps, Menu, IconNameToSmallSizes, MenuItemExtraProps, MenuItemProps, MenuItem, DefaultMenuSelectOption, MenuSelectProps, MenuSelect, NavigationJumpToProps, NavigationJumpTo, NotificationIntentType, NotificationProps, ExposedNotificationProps, Notification, PaginationInternalProps, PaginationProps, Pagination, SingleButtonDefinition, SegmentedControlProps, SegmentedControl, SdsTableProps, TableProps, Table, TableHeaderProps, TableHeader, TableRowProps, TableRow, Tabs, TabProps$0 as TabProps, Tab, SdsTagProps, TagProps, Tag, SdsTagFilterProps, TagFilterProps, TagFilter, Tooltip, TooltipCondensedProps, TooltipCondensed, TooltipTableContent, TooltipTableContent as TooltipTable, SDSComponentPalette, SDSTextPalette, SDSTheme, SDSThemeOptions, AppTheme, Shadows, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, AccentColor, BaseColor, BetaColor, InfoColor, NegativeColor, NeutralColor, NoticeColor, PositiveColor, SemanticComponentColors, SemanticTextColors, IconSize, IconSizes, Border, Borders, defaultTheme, SDSAppTheme, defaultAppTheme, makeThemeOptions, focusVisibleA11yStyle, fontBody, fontBodyL, fontBodyM, fontBodyS, fontBodyXs, fontBodyXxs, fontBodyXxxs, fontBodySemiboldL, fontBodySemiboldM, fontBodySemiboldS, fontBodySemiboldXs, fontBodySemiboldXxs, fontBodySemiboldXxxs, fontCaps, fontCapsXxs, fontCapsXxxs, fontCapsXxxxs, fontHeader, fontHeaderXxl, fontHeaderXl, fontHeaderL, fontHeaderM, fontHeaderS, fontHeaderXs, fontHeaderXxs, fontHeaderXxxs, fontCode, fontCodeXs, fontCodeS, fontCodeSemiboldXs, fontCodeSemiboldS, fontTabular, fontTabularXs, fontTabularS, fontTabularSemiboldXs, fontTabularSemiboldS, CommonThemeProps, getSpaces, getSpacings, getTypography, getPalette, getColors, getSemanticComponentColors, getSemanticTextColors, getShadows, getCorners, getFontWeights, getIconSizes, getBorders };
|
|
1572
1584
|
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };
|