@lumx/react 3.10.0 → 3.10.1-alpha.1
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/_internal/index.d.ts +1 -1
- package/index.d.ts +24 -16
- package/index.js +313 -293
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/alert-dialog/AlertDialog.tsx +3 -4
- package/src/components/autocomplete/Autocomplete.test.tsx +9 -2
- package/src/components/autocomplete/Autocomplete.tsx +7 -4
- package/src/components/autocomplete/AutocompleteMultiple.test.tsx +9 -2
- package/src/components/autocomplete/AutocompleteMultiple.tsx +10 -7
- package/src/components/avatar/Avatar.test.tsx +14 -4
- package/src/components/avatar/Avatar.tsx +7 -5
- package/src/components/badge/Badge.tsx +7 -4
- package/src/components/badge/BadgeWrapper.tsx +7 -4
- package/src/components/button/Button.test.tsx +9 -3
- package/src/components/button/Button.tsx +8 -5
- package/src/components/button/ButtonGroup.tsx +4 -3
- package/src/components/button/ButtonRoot.tsx +4 -3
- package/src/components/button/IconButton.test.tsx +9 -3
- package/src/components/button/IconButton.tsx +16 -5
- package/src/components/checkbox/Checkbox.test.tsx +9 -3
- package/src/components/checkbox/Checkbox.tsx +8 -7
- package/src/components/chip/Chip.test.tsx +14 -4
- package/src/components/chip/Chip.tsx +11 -11
- package/src/components/chip/ChipGroup.tsx +5 -4
- package/src/components/comment-block/CommentBlock.test.tsx +9 -3
- package/src/components/comment-block/CommentBlock.tsx +7 -6
- package/src/components/date-picker/DatePicker.tsx +5 -3
- package/src/components/date-picker/DatePickerControlled.tsx +6 -3
- package/src/components/date-picker/DatePickerField.test.tsx +9 -3
- package/src/components/date-picker/DatePickerField.tsx +4 -3
- package/src/components/dialog/Dialog.test.tsx +17 -4
- package/src/components/dialog/Dialog.tsx +65 -61
- package/src/components/divider/Divider.test.tsx +9 -3
- package/src/components/divider/Divider.tsx +8 -7
- package/src/components/drag-handle/DragHandle.test.tsx +38 -0
- package/src/components/drag-handle/DragHandle.tsx +7 -4
- package/src/components/dropdown/Dropdown.tsx +4 -3
- package/src/components/expansion-panel/ExpansionPanel.test.tsx +12 -3
- package/src/components/expansion-panel/ExpansionPanel.tsx +8 -7
- package/src/components/flag/Flag.test.tsx +14 -4
- package/src/components/flag/Flag.tsx +9 -7
- package/src/components/flex-box/FlexBox.tsx +8 -5
- package/src/components/generic-block/GenericBlock.tsx +4 -1
- package/src/components/grid/Grid.tsx +4 -3
- package/src/components/grid/GridItem.tsx +4 -3
- package/src/components/grid-column/GridColumn.tsx +5 -5
- package/src/components/heading/Heading.tsx +8 -4
- package/src/components/icon/Icon.test.tsx +13 -4
- package/src/components/icon/Icon.tsx +18 -5
- package/src/components/image-block/ImageBlock.test.tsx +12 -4
- package/src/components/image-block/ImageBlock.tsx +7 -5
- package/src/components/image-lightbox/ImageLightbox.tsx +4 -3
- package/src/components/inline-list/InlineList.tsx +4 -3
- package/src/components/input-helper/InputHelper.test.tsx +14 -4
- package/src/components/input-helper/InputHelper.tsx +10 -6
- package/src/components/input-label/InputLabel.test.tsx +14 -4
- package/src/components/input-label/InputLabel.tsx +11 -8
- package/src/components/lightbox/Lightbox.test.tsx +17 -6
- package/src/components/lightbox/Lightbox.tsx +12 -8
- package/src/components/link/Link.tsx +4 -3
- package/src/components/link-preview/LinkPreview.test.tsx +9 -3
- package/src/components/link-preview/LinkPreview.tsx +7 -5
- package/src/components/list/List.tsx +7 -5
- package/src/components/list/ListDivider.tsx +4 -3
- package/src/components/list/ListItem.tsx +4 -3
- package/src/components/list/ListSubheader.tsx +4 -3
- package/src/components/message/Message.tsx +7 -4
- package/src/components/mosaic/Mosaic.test.tsx +9 -3
- package/src/components/mosaic/Mosaic.tsx +11 -9
- package/src/components/navigation/Navigation.test.tsx +18 -9
- package/src/components/navigation/Navigation.tsx +13 -5
- package/src/components/navigation/NavigationItem.tsx +4 -4
- package/src/components/navigation/NavigationSection.test.tsx +19 -6
- package/src/components/navigation/NavigationSection.tsx +4 -4
- package/src/components/notification/Notification.tsx +7 -8
- package/src/components/popover/Popover.test.tsx +18 -4
- package/src/components/popover/Popover.tsx +5 -3
- package/src/components/popover-dialog/PopoverDialog.tsx +5 -3
- package/src/components/post-block/PostBlock.test.tsx +9 -3
- package/src/components/post-block/PostBlock.tsx +7 -8
- package/src/components/progress/Progress.tsx +8 -6
- package/src/components/progress/ProgressCircular.test.tsx +9 -16
- package/src/components/progress/ProgressCircular.tsx +7 -6
- package/src/components/progress/ProgressLinear.test.tsx +13 -18
- package/src/components/progress/ProgressLinear.tsx +8 -8
- package/src/components/progress-tracker/ProgressTracker.tsx +5 -3
- package/src/components/progress-tracker/ProgressTrackerStep.tsx +5 -5
- package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +24 -24
- package/src/components/radio-button/RadioButton.test.tsx +9 -3
- package/src/components/radio-button/RadioButton.tsx +8 -8
- package/src/components/radio-button/RadioGroup.tsx +4 -3
- package/src/components/select/Select.test.tsx +9 -3
- package/src/components/select/Select.tsx +30 -28
- package/src/components/select/SelectMultiple.test.tsx +9 -3
- package/src/components/select/SelectMultiple.tsx +112 -108
- package/src/components/select/WithSelectContext.tsx +8 -6
- package/src/components/side-navigation/SideNavigation.tsx +7 -5
- package/src/components/side-navigation/SideNavigationItem.tsx +4 -5
- package/src/components/skeleton/SkeletonCircle.test.tsx +9 -3
- package/src/components/skeleton/SkeletonCircle.tsx +9 -7
- package/src/components/skeleton/SkeletonRectangle.test.tsx +9 -3
- package/src/components/skeleton/SkeletonRectangle.tsx +8 -5
- package/src/components/skeleton/SkeletonTypography.test.tsx +9 -3
- package/src/components/skeleton/SkeletonTypography.tsx +9 -7
- package/src/components/slider/Slider.test.tsx +9 -3
- package/src/components/slider/Slider.tsx +7 -7
- package/src/components/slideshow/Slides.tsx +9 -5
- package/src/components/slideshow/Slideshow.test.tsx +9 -3
- package/src/components/slideshow/Slideshow.tsx +8 -5
- package/src/components/slideshow/SlideshowControls.tsx +7 -5
- package/src/components/slideshow/SlideshowItem.tsx +4 -3
- package/src/components/slideshow/SlideshowItemGroup.tsx +5 -4
- package/src/components/switch/Switch.test.tsx +9 -3
- package/src/components/switch/Switch.tsx +7 -7
- package/src/components/table/Table.test.tsx +9 -3
- package/src/components/table/Table.tsx +8 -8
- package/src/components/table/TableBody.tsx +4 -3
- package/src/components/table/TableCell.tsx +5 -5
- package/src/components/table/TableHeader.tsx +4 -3
- package/src/components/table/TableRow.tsx +4 -3
- package/src/components/tabs/Tab.tsx +4 -3
- package/src/components/tabs/TabList.test.tsx +9 -3
- package/src/components/tabs/TabList.tsx +18 -6
- package/src/components/tabs/TabPanel.tsx +7 -5
- package/src/components/text/Text.tsx +6 -4
- package/src/components/text-field/TextField.test.tsx +9 -3
- package/src/components/text-field/TextField.tsx +7 -5
- package/src/components/thumbnail/Thumbnail.test.tsx +9 -3
- package/src/components/thumbnail/Thumbnail.tsx +8 -7
- package/src/components/toolbar/Toolbar.tsx +4 -3
- package/src/components/tooltip/Tooltip.tsx +4 -3
- package/src/components/uploader/Uploader.test.tsx +9 -3
- package/src/components/uploader/Uploader.tsx +18 -5
- package/src/components/user-block/UserBlock.test.tsx +9 -3
- package/src/components/user-block/UserBlock.tsx +9 -6
- package/src/index.ts +1 -0
- package/src/testing/utils/ThemeSentinel.tsx +11 -0
- package/src/testing/utils/commonTestsSuiteRTL.tsx +191 -0
- package/src/utils/react/forwardRef.ts +10 -0
- package/src/utils/react/forwardRefPolymorphic.ts +10 -0
- package/src/utils/theme/ThemeContext.ts +16 -0
- package/src/utils/theme/invertTheme.ts +4 -0
- package/src/testing/utils/commonTestsSuiteRTL.ts +0 -64
- package/src/utils/ThemeContext.ts +0 -4
- package/src/utils/forwardRefPolymorphic.ts +0 -9
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, {
|
|
2
|
+
import React__default, { useState, useEffect, useMemo, useRef, Children, isValidElement, cloneElement, useLayoutEffect, useCallback, Fragment, createContext, forwardRef as forwardRef$1, useContext, useReducer } from 'react';
|
|
3
3
|
import kebabCase from 'lodash/kebabCase';
|
|
4
4
|
import isBoolean from 'lodash/isBoolean';
|
|
5
5
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -635,6 +635,12 @@ function useId() {
|
|
|
635
635
|
}, []);
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
+
/**
|
|
639
|
+
* React.forwardRef but re-typed to attach some custom metadata on our components.
|
|
640
|
+
*/
|
|
641
|
+
|
|
642
|
+
const forwardRef = React__default.forwardRef;
|
|
643
|
+
|
|
638
644
|
const _excluded$1s = ["id", "title", "className", "cancelProps", "confirmProps", "kind", "size", "dialogProps", "children"],
|
|
639
645
|
_excluded2$3 = ["label", "onClick"],
|
|
640
646
|
_excluded3 = ["label", "onClick"];
|
|
@@ -673,7 +679,7 @@ const CLASSNAME$1k = getRootClassName(COMPONENT_NAME$1n);
|
|
|
673
679
|
/**
|
|
674
680
|
* Component default props.
|
|
675
681
|
*/
|
|
676
|
-
const DEFAULT_PROPS$
|
|
682
|
+
const DEFAULT_PROPS$14 = {
|
|
677
683
|
size: Size.tiny,
|
|
678
684
|
kind: Kind.info
|
|
679
685
|
};
|
|
@@ -687,7 +693,7 @@ const DEFAULT_PROPS$13 = {
|
|
|
687
693
|
* It should not have a complex content.
|
|
688
694
|
* Children of this component should only be strings, paragraphs or links.
|
|
689
695
|
*/
|
|
690
|
-
const AlertDialog =
|
|
696
|
+
const AlertDialog = forwardRef((props, ref) => {
|
|
691
697
|
const {
|
|
692
698
|
id,
|
|
693
699
|
title,
|
|
@@ -770,7 +776,7 @@ const AlertDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
770
776
|
});
|
|
771
777
|
AlertDialog.displayName = COMPONENT_NAME$1n;
|
|
772
778
|
AlertDialog.className = CLASSNAME$1k;
|
|
773
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
779
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$14;
|
|
774
780
|
|
|
775
781
|
/**
|
|
776
782
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -823,6 +829,16 @@ const useMergeRefs = function () {
|
|
|
823
829
|
refs);
|
|
824
830
|
};
|
|
825
831
|
|
|
832
|
+
const ThemeContext = /*#__PURE__*/React__default.createContext(undefined);
|
|
833
|
+
|
|
834
|
+
/** Provide a theme context to all children. */
|
|
835
|
+
const ThemeProvider = ThemeContext.Provider;
|
|
836
|
+
|
|
837
|
+
/** Get the theme in the current context. */
|
|
838
|
+
function useTheme() {
|
|
839
|
+
return React__default.useContext(ThemeContext);
|
|
840
|
+
}
|
|
841
|
+
|
|
826
842
|
const _excluded$1r = ["anchorToInput", "children", "chips", "className", "closeOnClick", "closeOnClickAway", "closeOnEscape", "disabled", "error", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isDisabled", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClose", "onFocus", "onInfiniteScroll", "placeholder", "placement", "shouldFocusOnClose", "theme", "value", "textFieldProps", "focusAnchorOnClose"];
|
|
827
843
|
|
|
828
844
|
/**
|
|
@@ -842,7 +858,7 @@ const CLASSNAME$1j = getRootClassName(COMPONENT_NAME$1m);
|
|
|
842
858
|
/**
|
|
843
859
|
* Component default props.
|
|
844
860
|
*/
|
|
845
|
-
const DEFAULT_PROPS$
|
|
861
|
+
const DEFAULT_PROPS$13 = {
|
|
846
862
|
anchorToInput: false,
|
|
847
863
|
closeOnClick: false,
|
|
848
864
|
closeOnClickAway: true,
|
|
@@ -857,7 +873,8 @@ const DEFAULT_PROPS$12 = {
|
|
|
857
873
|
* @param ref Component ref.
|
|
858
874
|
* @return React element.
|
|
859
875
|
*/
|
|
860
|
-
const Autocomplete =
|
|
876
|
+
const Autocomplete = forwardRef((props, ref) => {
|
|
877
|
+
const defaultTheme = useTheme();
|
|
861
878
|
const {
|
|
862
879
|
anchorToInput,
|
|
863
880
|
children,
|
|
@@ -889,7 +906,7 @@ const Autocomplete = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
889
906
|
placeholder,
|
|
890
907
|
placement,
|
|
891
908
|
shouldFocusOnClose,
|
|
892
|
-
theme,
|
|
909
|
+
theme = defaultTheme,
|
|
893
910
|
value,
|
|
894
911
|
textFieldProps = {},
|
|
895
912
|
focusAnchorOnClose
|
|
@@ -942,7 +959,7 @@ const Autocomplete = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
942
959
|
});
|
|
943
960
|
Autocomplete.displayName = COMPONENT_NAME$1m;
|
|
944
961
|
Autocomplete.className = CLASSNAME$1j;
|
|
945
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
962
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$13;
|
|
946
963
|
|
|
947
964
|
const _excluded$1q = ["anchorToInput", "children", "chipsAlignment", "className", "closeOnClickAway", "closeOnEscape", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isDisabled", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClear", "onClose", "onFocus", "onInfiniteScroll", "onKeyDown", "placeholder", "placement", "selectedChipRender", "shouldFocusOnClose", "theme", "type", "value", "values"];
|
|
948
965
|
|
|
@@ -963,7 +980,7 @@ const CLASSNAME$1i = getRootClassName(COMPONENT_NAME$1l);
|
|
|
963
980
|
/**
|
|
964
981
|
* Component default props.
|
|
965
982
|
*/
|
|
966
|
-
const DEFAULT_PROPS$
|
|
983
|
+
const DEFAULT_PROPS$12 = {
|
|
967
984
|
closeOnClickAway: true,
|
|
968
985
|
closeOnEscape: true,
|
|
969
986
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -990,7 +1007,8 @@ const DEFAULT_PROPS$11 = {
|
|
|
990
1007
|
* @param ref Component ref.
|
|
991
1008
|
* @return React element.
|
|
992
1009
|
*/
|
|
993
|
-
const AutocompleteMultiple =
|
|
1010
|
+
const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
1011
|
+
const defaultTheme = useTheme();
|
|
994
1012
|
const {
|
|
995
1013
|
anchorToInput,
|
|
996
1014
|
children,
|
|
@@ -1024,7 +1042,7 @@ const AutocompleteMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1024
1042
|
placement,
|
|
1025
1043
|
selectedChipRender,
|
|
1026
1044
|
shouldFocusOnClose,
|
|
1027
|
-
theme,
|
|
1045
|
+
theme = defaultTheme,
|
|
1028
1046
|
type,
|
|
1029
1047
|
value,
|
|
1030
1048
|
values
|
|
@@ -1070,7 +1088,7 @@ const AutocompleteMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1070
1088
|
});
|
|
1071
1089
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1l;
|
|
1072
1090
|
AutocompleteMultiple.className = CLASSNAME$1i;
|
|
1073
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
1091
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$12;
|
|
1074
1092
|
|
|
1075
1093
|
const _excluded$1p = ["actions", "alt", "badge", "className", "image", "linkProps", "linkAs", "onClick", "onKeyPress", "size", "theme", "thumbnailProps"];
|
|
1076
1094
|
|
|
@@ -1095,9 +1113,8 @@ const CLASSNAME$1h = getRootClassName(COMPONENT_NAME$1k);
|
|
|
1095
1113
|
/**
|
|
1096
1114
|
* Component default props.
|
|
1097
1115
|
*/
|
|
1098
|
-
const DEFAULT_PROPS$
|
|
1099
|
-
size: Size.m
|
|
1100
|
-
theme: Theme.light
|
|
1116
|
+
const DEFAULT_PROPS$11 = {
|
|
1117
|
+
size: Size.m
|
|
1101
1118
|
};
|
|
1102
1119
|
|
|
1103
1120
|
/**
|
|
@@ -1107,7 +1124,8 @@ const DEFAULT_PROPS$10 = {
|
|
|
1107
1124
|
* @param ref Component ref.
|
|
1108
1125
|
* @return React element.
|
|
1109
1126
|
*/
|
|
1110
|
-
const Avatar =
|
|
1127
|
+
const Avatar = forwardRef((props, ref) => {
|
|
1128
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
1111
1129
|
const {
|
|
1112
1130
|
actions,
|
|
1113
1131
|
alt,
|
|
@@ -1119,7 +1137,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1119
1137
|
onClick,
|
|
1120
1138
|
onKeyPress,
|
|
1121
1139
|
size,
|
|
1122
|
-
theme,
|
|
1140
|
+
theme = defaultTheme,
|
|
1123
1141
|
thumbnailProps
|
|
1124
1142
|
} = props,
|
|
1125
1143
|
forwardedProps = _objectWithoutProperties(props, _excluded$1p);
|
|
@@ -1151,7 +1169,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1151
1169
|
});
|
|
1152
1170
|
Avatar.displayName = COMPONENT_NAME$1k;
|
|
1153
1171
|
Avatar.className = CLASSNAME$1h;
|
|
1154
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
1172
|
+
Avatar.defaultProps = DEFAULT_PROPS$11;
|
|
1155
1173
|
|
|
1156
1174
|
const _excluded$1o = ["children", "className", "color"];
|
|
1157
1175
|
|
|
@@ -1172,7 +1190,7 @@ const CLASSNAME$1g = getRootClassName(COMPONENT_NAME$1j);
|
|
|
1172
1190
|
/**
|
|
1173
1191
|
* Component default props.
|
|
1174
1192
|
*/
|
|
1175
|
-
const DEFAULT_PROPS
|
|
1193
|
+
const DEFAULT_PROPS$10 = {
|
|
1176
1194
|
color: ColorPalette.primary
|
|
1177
1195
|
};
|
|
1178
1196
|
|
|
@@ -1183,7 +1201,7 @@ const DEFAULT_PROPS$$ = {
|
|
|
1183
1201
|
* @param ref Component ref.
|
|
1184
1202
|
* @return React element.
|
|
1185
1203
|
*/
|
|
1186
|
-
const Badge =
|
|
1204
|
+
const Badge = forwardRef((props, ref) => {
|
|
1187
1205
|
const {
|
|
1188
1206
|
children,
|
|
1189
1207
|
className,
|
|
@@ -1201,7 +1219,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1201
1219
|
});
|
|
1202
1220
|
Badge.displayName = COMPONENT_NAME$1j;
|
|
1203
1221
|
Badge.className = CLASSNAME$1g;
|
|
1204
|
-
Badge.defaultProps = DEFAULT_PROPS
|
|
1222
|
+
Badge.defaultProps = DEFAULT_PROPS$10;
|
|
1205
1223
|
|
|
1206
1224
|
const INITIAL_INDEX$1 = -1;
|
|
1207
1225
|
|
|
@@ -1410,7 +1428,7 @@ const CLASSNAME$1f = getRootClassName(COMPONENT_NAME$1i);
|
|
|
1410
1428
|
/**
|
|
1411
1429
|
* Component default props.
|
|
1412
1430
|
*/
|
|
1413
|
-
const DEFAULT_PROPS
|
|
1431
|
+
const DEFAULT_PROPS$$ = {
|
|
1414
1432
|
size: Size.regular
|
|
1415
1433
|
};
|
|
1416
1434
|
|
|
@@ -1433,7 +1451,7 @@ function isClickable(_ref) {
|
|
|
1433
1451
|
* @param ref Component ref.
|
|
1434
1452
|
* @return React element.
|
|
1435
1453
|
*/
|
|
1436
|
-
const ListItem =
|
|
1454
|
+
const ListItem = forwardRef((props, ref) => {
|
|
1437
1455
|
const {
|
|
1438
1456
|
after,
|
|
1439
1457
|
before,
|
|
@@ -1498,7 +1516,7 @@ const ListItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1498
1516
|
});
|
|
1499
1517
|
ListItem.displayName = COMPONENT_NAME$1i;
|
|
1500
1518
|
ListItem.className = CLASSNAME$1f;
|
|
1501
|
-
ListItem.defaultProps = DEFAULT_PROPS
|
|
1519
|
+
ListItem.defaultProps = DEFAULT_PROPS$$;
|
|
1502
1520
|
|
|
1503
1521
|
/** Get types of the values of a record. */
|
|
1504
1522
|
|
|
@@ -2017,7 +2035,7 @@ const CLASSNAME$1e = getRootClassName(COMPONENT_NAME$1h);
|
|
|
2017
2035
|
/**
|
|
2018
2036
|
* Component default props.
|
|
2019
2037
|
*/
|
|
2020
|
-
const DEFAULT_PROPS$
|
|
2038
|
+
const DEFAULT_PROPS$_ = {
|
|
2021
2039
|
tabIndex: -1
|
|
2022
2040
|
};
|
|
2023
2041
|
|
|
@@ -2029,7 +2047,7 @@ const DEFAULT_PROPS$Z = {
|
|
|
2029
2047
|
* @param ref Component ref.
|
|
2030
2048
|
* @return React element.
|
|
2031
2049
|
*/
|
|
2032
|
-
const InternalList =
|
|
2050
|
+
const InternalList = forwardRef((props, ref) => {
|
|
2033
2051
|
const {
|
|
2034
2052
|
children,
|
|
2035
2053
|
className,
|
|
@@ -2060,7 +2078,7 @@ const InternalList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2060
2078
|
});
|
|
2061
2079
|
InternalList.displayName = COMPONENT_NAME$1h;
|
|
2062
2080
|
InternalList.className = CLASSNAME$1e;
|
|
2063
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
2081
|
+
InternalList.defaultProps = DEFAULT_PROPS$_;
|
|
2064
2082
|
const List = Object.assign(InternalList, {
|
|
2065
2083
|
useKeyboardListNavigation
|
|
2066
2084
|
});
|
|
@@ -4656,7 +4674,7 @@ const CLASSNAME$1d = getRootClassName(COMPONENT_NAME$1g);
|
|
|
4656
4674
|
/**
|
|
4657
4675
|
* Component default props.
|
|
4658
4676
|
*/
|
|
4659
|
-
const DEFAULT_PROPS$
|
|
4677
|
+
const DEFAULT_PROPS$Z = {
|
|
4660
4678
|
elevation: 3,
|
|
4661
4679
|
placement: Placement.AUTO,
|
|
4662
4680
|
focusAnchorOnClose: true,
|
|
@@ -4670,7 +4688,7 @@ const renderPopover = (children, usePortal) => {
|
|
|
4670
4688
|
};
|
|
4671
4689
|
|
|
4672
4690
|
// Inner component (must be wrapped before export)
|
|
4673
|
-
const _InnerPopover =
|
|
4691
|
+
const _InnerPopover = forwardRef((props, ref) => {
|
|
4674
4692
|
const {
|
|
4675
4693
|
anchorRef,
|
|
4676
4694
|
as: Component = 'div',
|
|
@@ -4753,7 +4771,9 @@ const _InnerPopover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4753
4771
|
"aria-hidden": true
|
|
4754
4772
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
4755
4773
|
d: "M8 3.49C7.62 2.82 6.66 2.82 6.27 3.48L.04 14 14.04 14 8 3.49Z"
|
|
4756
|
-
}))),
|
|
4774
|
+
}))), /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
4775
|
+
value: undefined
|
|
4776
|
+
}, children))), usePortal) : null;
|
|
4757
4777
|
});
|
|
4758
4778
|
_InnerPopover.displayName = COMPONENT_NAME$1g;
|
|
4759
4779
|
|
|
@@ -4769,7 +4789,7 @@ const Popover = skipRender(
|
|
|
4769
4789
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
4770
4790
|
Popover.displayName = COMPONENT_NAME$1g;
|
|
4771
4791
|
Popover.className = CLASSNAME$1d;
|
|
4772
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
4792
|
+
Popover.defaultProps = DEFAULT_PROPS$Z;
|
|
4773
4793
|
|
|
4774
4794
|
// The error margin in px we want to have for triggering infinite scroll
|
|
4775
4795
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -4833,7 +4853,7 @@ const CLASSNAME$1c = getRootClassName(COMPONENT_NAME$1f);
|
|
|
4833
4853
|
/**
|
|
4834
4854
|
* Component default props.
|
|
4835
4855
|
*/
|
|
4836
|
-
const DEFAULT_PROPS$
|
|
4856
|
+
const DEFAULT_PROPS$Y = {
|
|
4837
4857
|
closeOnClick: true,
|
|
4838
4858
|
closeOnClickAway: true,
|
|
4839
4859
|
closeOnEscape: true,
|
|
@@ -4851,7 +4871,7 @@ const DEFAULT_PROPS$X = {
|
|
|
4851
4871
|
* @param ref Component ref.
|
|
4852
4872
|
* @return React element.
|
|
4853
4873
|
*/
|
|
4854
|
-
const Dropdown =
|
|
4874
|
+
const Dropdown = forwardRef((props, ref) => {
|
|
4855
4875
|
const {
|
|
4856
4876
|
anchorRef,
|
|
4857
4877
|
children,
|
|
@@ -4913,7 +4933,7 @@ const Dropdown = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4913
4933
|
});
|
|
4914
4934
|
Dropdown.displayName = COMPONENT_NAME$1f;
|
|
4915
4935
|
Dropdown.className = CLASSNAME$1c;
|
|
4916
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
4936
|
+
Dropdown.defaultProps = DEFAULT_PROPS$Y;
|
|
4917
4937
|
|
|
4918
4938
|
const INPUT_HELPER_CONFIGURATION = {
|
|
4919
4939
|
error: {
|
|
@@ -4946,9 +4966,8 @@ const CLASSNAME$1b = getRootClassName(COMPONENT_NAME$1e);
|
|
|
4946
4966
|
/**
|
|
4947
4967
|
* Component default props.
|
|
4948
4968
|
*/
|
|
4949
|
-
const DEFAULT_PROPS$
|
|
4950
|
-
kind: Kind.info
|
|
4951
|
-
theme: Theme.light
|
|
4969
|
+
const DEFAULT_PROPS$X = {
|
|
4970
|
+
kind: Kind.info
|
|
4952
4971
|
};
|
|
4953
4972
|
|
|
4954
4973
|
/**
|
|
@@ -4958,12 +4977,13 @@ const DEFAULT_PROPS$W = {
|
|
|
4958
4977
|
* @param ref Component ref.
|
|
4959
4978
|
* @return React element.
|
|
4960
4979
|
*/
|
|
4961
|
-
const InputHelper =
|
|
4980
|
+
const InputHelper = forwardRef((props, ref) => {
|
|
4981
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
4962
4982
|
const {
|
|
4963
4983
|
children,
|
|
4964
4984
|
className,
|
|
4965
4985
|
kind,
|
|
4966
|
-
theme
|
|
4986
|
+
theme = defaultTheme
|
|
4967
4987
|
} = props,
|
|
4968
4988
|
forwardedProps = _objectWithoutProperties(props, _excluded$1i);
|
|
4969
4989
|
const {
|
|
@@ -4981,7 +5001,7 @@ const InputHelper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4981
5001
|
});
|
|
4982
5002
|
InputHelper.displayName = COMPONENT_NAME$1e;
|
|
4983
5003
|
InputHelper.className = CLASSNAME$1b;
|
|
4984
|
-
InputHelper.defaultProps = DEFAULT_PROPS$
|
|
5004
|
+
InputHelper.defaultProps = DEFAULT_PROPS$X;
|
|
4985
5005
|
|
|
4986
5006
|
/**
|
|
4987
5007
|
* Listen on element focus to store the focus status.
|
|
@@ -5024,12 +5044,12 @@ const COMPONENT_NAME$1d = 'Select';
|
|
|
5024
5044
|
const CLASSNAME$1a = getRootClassName(COMPONENT_NAME$1d);
|
|
5025
5045
|
|
|
5026
5046
|
/** The default value of props. */
|
|
5027
|
-
const DEFAULT_PROPS$
|
|
5028
|
-
theme: Theme.light,
|
|
5047
|
+
const DEFAULT_PROPS$W = {
|
|
5029
5048
|
variant: SelectVariant.input
|
|
5030
5049
|
};
|
|
5031
|
-
const WithSelectContext = (SelectElement,
|
|
5032
|
-
|
|
5050
|
+
const WithSelectContext = (SelectElement, props, ref) => {
|
|
5051
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5052
|
+
const {
|
|
5033
5053
|
children,
|
|
5034
5054
|
className,
|
|
5035
5055
|
focusElement,
|
|
@@ -5051,11 +5071,11 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
5051
5071
|
onInfiniteScroll,
|
|
5052
5072
|
onInputClick,
|
|
5053
5073
|
placeholder,
|
|
5054
|
-
theme =
|
|
5074
|
+
theme = defaultTheme,
|
|
5055
5075
|
value,
|
|
5056
|
-
variant = DEFAULT_PROPS$
|
|
5057
|
-
} =
|
|
5058
|
-
forwardedProps = _objectWithoutProperties(
|
|
5076
|
+
variant = DEFAULT_PROPS$W.variant
|
|
5077
|
+
} = props,
|
|
5078
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1h);
|
|
5059
5079
|
const generatedSelectId = useId();
|
|
5060
5080
|
const selectId = id || generatedSelectId;
|
|
5061
5081
|
const anchorRef = useRef(null);
|
|
@@ -5140,7 +5160,7 @@ const COMPONENT_NAME$1c = 'BadgeWrapper';
|
|
|
5140
5160
|
* Component default class name and class prefix.
|
|
5141
5161
|
*/
|
|
5142
5162
|
const CLASSNAME$19 = getRootClassName(COMPONENT_NAME$1c);
|
|
5143
|
-
const BadgeWrapper =
|
|
5163
|
+
const BadgeWrapper = forwardRef((props, ref) => {
|
|
5144
5164
|
const {
|
|
5145
5165
|
badge,
|
|
5146
5166
|
children,
|
|
@@ -5159,7 +5179,7 @@ const BadgeWrapper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5159
5179
|
});
|
|
5160
5180
|
BadgeWrapper.displayName = 'BadgeWrapper';
|
|
5161
5181
|
BadgeWrapper.className = CLASSNAME$19;
|
|
5162
|
-
BadgeWrapper.defaultProps = DEFAULT_PROPS$
|
|
5182
|
+
BadgeWrapper.defaultProps = DEFAULT_PROPS$W;
|
|
5163
5183
|
|
|
5164
5184
|
const _excluded$1f = ["aria-label", "children", "className", "color", "disabled", "emphasis", "hasBackground", "href", "isDisabled", "isSelected", "isActive", "isFocused", "isHovered", "linkAs", "name", "size", "target", "theme", "variant", "type", "fullWidth"];
|
|
5165
5185
|
|
|
@@ -5209,7 +5229,7 @@ const renderButtonWrapper = props => {
|
|
|
5209
5229
|
* @param ref Component ref.
|
|
5210
5230
|
* @return React element.
|
|
5211
5231
|
*/
|
|
5212
|
-
const ButtonRoot =
|
|
5232
|
+
const ButtonRoot = forwardRef((props, ref) => {
|
|
5213
5233
|
const {
|
|
5214
5234
|
'aria-label': ariaLabel,
|
|
5215
5235
|
children,
|
|
@@ -5314,10 +5334,9 @@ const CLASSNAME$18 = getRootClassName(COMPONENT_NAME$1a);
|
|
|
5314
5334
|
/**
|
|
5315
5335
|
* Component default props.
|
|
5316
5336
|
*/
|
|
5317
|
-
const DEFAULT_PROPS$
|
|
5337
|
+
const DEFAULT_PROPS$V = {
|
|
5318
5338
|
emphasis: Emphasis.high,
|
|
5319
|
-
size: Size.m
|
|
5320
|
-
theme: Theme.light
|
|
5339
|
+
size: Size.m
|
|
5321
5340
|
};
|
|
5322
5341
|
|
|
5323
5342
|
/**
|
|
@@ -5327,7 +5346,8 @@ const DEFAULT_PROPS$U = {
|
|
|
5327
5346
|
* @param ref Component ref.
|
|
5328
5347
|
* @return React element.
|
|
5329
5348
|
*/
|
|
5330
|
-
const Button =
|
|
5349
|
+
const Button = forwardRef((props, ref) => {
|
|
5350
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5331
5351
|
const {
|
|
5332
5352
|
children,
|
|
5333
5353
|
className,
|
|
@@ -5335,7 +5355,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5335
5355
|
leftIcon,
|
|
5336
5356
|
rightIcon,
|
|
5337
5357
|
size,
|
|
5338
|
-
theme
|
|
5358
|
+
theme = defaultTheme
|
|
5339
5359
|
} = props,
|
|
5340
5360
|
forwardedProps = _objectWithoutProperties(props, _excluded$1e);
|
|
5341
5361
|
const buttonClassName = classNames(className, getBasicClass({
|
|
@@ -5364,7 +5384,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5364
5384
|
});
|
|
5365
5385
|
Button.displayName = COMPONENT_NAME$1a;
|
|
5366
5386
|
Button.className = CLASSNAME$18;
|
|
5367
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
5387
|
+
Button.defaultProps = DEFAULT_PROPS$V;
|
|
5368
5388
|
|
|
5369
5389
|
const _excluded$1d = ["emphasis", "image", "icon", "label", "size", "theme", "tooltipProps", "hideTooltip"];
|
|
5370
5390
|
/**
|
|
@@ -5380,10 +5400,9 @@ const CLASSNAME$17 = getRootClassName(COMPONENT_NAME$19);
|
|
|
5380
5400
|
/**
|
|
5381
5401
|
* Component default props.
|
|
5382
5402
|
*/
|
|
5383
|
-
const DEFAULT_PROPS$
|
|
5403
|
+
const DEFAULT_PROPS$U = {
|
|
5384
5404
|
emphasis: Emphasis.high,
|
|
5385
|
-
size: Size.m
|
|
5386
|
-
theme: Theme.light
|
|
5405
|
+
size: Size.m
|
|
5387
5406
|
};
|
|
5388
5407
|
|
|
5389
5408
|
/**
|
|
@@ -5393,14 +5412,15 @@ const DEFAULT_PROPS$T = {
|
|
|
5393
5412
|
* @param ref Component ref.
|
|
5394
5413
|
* @return React element.
|
|
5395
5414
|
*/
|
|
5396
|
-
const IconButton =
|
|
5415
|
+
const IconButton = forwardRef((props, ref) => {
|
|
5416
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5397
5417
|
const {
|
|
5398
5418
|
emphasis,
|
|
5399
5419
|
image,
|
|
5400
5420
|
icon,
|
|
5401
5421
|
label,
|
|
5402
5422
|
size,
|
|
5403
|
-
theme,
|
|
5423
|
+
theme = defaultTheme,
|
|
5404
5424
|
tooltipProps,
|
|
5405
5425
|
hideTooltip
|
|
5406
5426
|
} = props,
|
|
@@ -5426,7 +5446,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5426
5446
|
});
|
|
5427
5447
|
IconButton.displayName = COMPONENT_NAME$19;
|
|
5428
5448
|
IconButton.className = CLASSNAME$17;
|
|
5429
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
5449
|
+
IconButton.defaultProps = DEFAULT_PROPS$U;
|
|
5430
5450
|
|
|
5431
5451
|
const _excluded$1c = ["children", "className"];
|
|
5432
5452
|
|
|
@@ -5447,7 +5467,7 @@ const CLASSNAME$16 = getRootClassName(COMPONENT_NAME$18);
|
|
|
5447
5467
|
/**
|
|
5448
5468
|
* Component default props.
|
|
5449
5469
|
*/
|
|
5450
|
-
const DEFAULT_PROPS$
|
|
5470
|
+
const DEFAULT_PROPS$T = {};
|
|
5451
5471
|
|
|
5452
5472
|
/**
|
|
5453
5473
|
* ButtonGroup component.
|
|
@@ -5456,7 +5476,7 @@ const DEFAULT_PROPS$S = {};
|
|
|
5456
5476
|
* @param ref Component ref.
|
|
5457
5477
|
* @return React element.
|
|
5458
5478
|
*/
|
|
5459
|
-
const ButtonGroup =
|
|
5479
|
+
const ButtonGroup = forwardRef((props, ref) => {
|
|
5460
5480
|
const {
|
|
5461
5481
|
children,
|
|
5462
5482
|
className
|
|
@@ -5470,7 +5490,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5470
5490
|
});
|
|
5471
5491
|
ButtonGroup.displayName = COMPONENT_NAME$18;
|
|
5472
5492
|
ButtonGroup.className = CLASSNAME$16;
|
|
5473
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
5493
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$T;
|
|
5474
5494
|
|
|
5475
5495
|
const _excluded$1b = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
|
|
5476
5496
|
|
|
@@ -5496,9 +5516,7 @@ const CLASSNAME$15 = getRootClassName(COMPONENT_NAME$17);
|
|
|
5496
5516
|
/**
|
|
5497
5517
|
* Component default props.
|
|
5498
5518
|
*/
|
|
5499
|
-
const DEFAULT_PROPS$
|
|
5500
|
-
theme: Theme.light
|
|
5501
|
-
};
|
|
5519
|
+
const DEFAULT_PROPS$S = {};
|
|
5502
5520
|
|
|
5503
5521
|
/**
|
|
5504
5522
|
* Checkbox component.
|
|
@@ -5507,7 +5525,8 @@ const DEFAULT_PROPS$R = {
|
|
|
5507
5525
|
* @param ref Component ref.
|
|
5508
5526
|
* @return React element.
|
|
5509
5527
|
*/
|
|
5510
|
-
const Checkbox =
|
|
5528
|
+
const Checkbox = forwardRef((props, ref) => {
|
|
5529
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5511
5530
|
const {
|
|
5512
5531
|
checked,
|
|
5513
5532
|
className,
|
|
@@ -5520,7 +5539,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5520
5539
|
label,
|
|
5521
5540
|
name,
|
|
5522
5541
|
onChange,
|
|
5523
|
-
theme,
|
|
5542
|
+
theme = defaultTheme,
|
|
5524
5543
|
value,
|
|
5525
5544
|
inputProps = {}
|
|
5526
5545
|
} = props,
|
|
@@ -5586,7 +5605,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5586
5605
|
});
|
|
5587
5606
|
Checkbox.displayName = COMPONENT_NAME$17;
|
|
5588
5607
|
Checkbox.className = CLASSNAME$15;
|
|
5589
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
5608
|
+
Checkbox.defaultProps = DEFAULT_PROPS$S;
|
|
5590
5609
|
|
|
5591
5610
|
/**
|
|
5592
5611
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -5627,9 +5646,8 @@ const CLASSNAME$14 = getRootClassName(COMPONENT_NAME$16);
|
|
|
5627
5646
|
/**
|
|
5628
5647
|
* Component default props.
|
|
5629
5648
|
*/
|
|
5630
|
-
const DEFAULT_PROPS$
|
|
5631
|
-
size: Size.m
|
|
5632
|
-
theme: Theme.light
|
|
5649
|
+
const DEFAULT_PROPS$R = {
|
|
5650
|
+
size: Size.m
|
|
5633
5651
|
};
|
|
5634
5652
|
|
|
5635
5653
|
/**
|
|
@@ -5639,7 +5657,8 @@ const DEFAULT_PROPS$Q = {
|
|
|
5639
5657
|
* @param ref Component ref.
|
|
5640
5658
|
* @return React element.
|
|
5641
5659
|
*/
|
|
5642
|
-
const Chip =
|
|
5660
|
+
const Chip = forwardRef((props, ref) => {
|
|
5661
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5643
5662
|
const {
|
|
5644
5663
|
after,
|
|
5645
5664
|
before,
|
|
@@ -5655,7 +5674,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5655
5674
|
onBeforeClick,
|
|
5656
5675
|
onClick,
|
|
5657
5676
|
size,
|
|
5658
|
-
theme,
|
|
5677
|
+
theme = defaultTheme,
|
|
5659
5678
|
href,
|
|
5660
5679
|
onKeyDown
|
|
5661
5680
|
} = props,
|
|
@@ -5723,7 +5742,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5723
5742
|
});
|
|
5724
5743
|
Chip.displayName = COMPONENT_NAME$16;
|
|
5725
5744
|
Chip.className = CLASSNAME$14;
|
|
5726
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
5745
|
+
Chip.defaultProps = DEFAULT_PROPS$R;
|
|
5727
5746
|
|
|
5728
5747
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
5729
5748
|
|
|
@@ -5786,7 +5805,7 @@ const _excluded$19 = ["align", "children", "className"];
|
|
|
5786
5805
|
/**
|
|
5787
5806
|
* Component default props.
|
|
5788
5807
|
*/
|
|
5789
|
-
const DEFAULT_PROPS$
|
|
5808
|
+
const DEFAULT_PROPS$Q = {};
|
|
5790
5809
|
|
|
5791
5810
|
/**
|
|
5792
5811
|
* Component display name.
|
|
@@ -5805,7 +5824,7 @@ const CLASSNAME$13 = getRootClassName(COMPONENT_NAME$15);
|
|
|
5805
5824
|
* @param ref Component ref.
|
|
5806
5825
|
* @return React element.
|
|
5807
5826
|
*/
|
|
5808
|
-
const InternalChipGroup =
|
|
5827
|
+
const InternalChipGroup = forwardRef((props, ref) => {
|
|
5809
5828
|
const {
|
|
5810
5829
|
align,
|
|
5811
5830
|
children,
|
|
@@ -5823,7 +5842,7 @@ const InternalChipGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5823
5842
|
});
|
|
5824
5843
|
InternalChipGroup.displayName = COMPONENT_NAME$15;
|
|
5825
5844
|
InternalChipGroup.className = CLASSNAME$13;
|
|
5826
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
5845
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$Q;
|
|
5827
5846
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
5828
5847
|
useChipGroupNavigation
|
|
5829
5848
|
});
|
|
@@ -5854,8 +5873,7 @@ const CLASSNAME$12 = getRootClassName(COMPONENT_NAME$14);
|
|
|
5854
5873
|
/**
|
|
5855
5874
|
* Component default props.
|
|
5856
5875
|
*/
|
|
5857
|
-
const DEFAULT_PROPS$
|
|
5858
|
-
theme: Theme.light,
|
|
5876
|
+
const DEFAULT_PROPS$P = {
|
|
5859
5877
|
variant: CommentBlockVariant.indented
|
|
5860
5878
|
};
|
|
5861
5879
|
|
|
@@ -5866,7 +5884,8 @@ const DEFAULT_PROPS$O = {
|
|
|
5866
5884
|
* @param ref Component ref.
|
|
5867
5885
|
* @return React element.
|
|
5868
5886
|
*/
|
|
5869
|
-
const CommentBlock =
|
|
5887
|
+
const CommentBlock = forwardRef((props, ref) => {
|
|
5888
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5870
5889
|
const {
|
|
5871
5890
|
actions,
|
|
5872
5891
|
avatarProps,
|
|
@@ -5883,7 +5902,7 @@ const CommentBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5883
5902
|
onMouseEnter,
|
|
5884
5903
|
onMouseLeave,
|
|
5885
5904
|
text,
|
|
5886
|
-
theme,
|
|
5905
|
+
theme = defaultTheme,
|
|
5887
5906
|
variant
|
|
5888
5907
|
} = props,
|
|
5889
5908
|
forwardedProps = _objectWithoutProperties(props, _excluded$18);
|
|
@@ -5938,7 +5957,7 @@ const CommentBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5938
5957
|
});
|
|
5939
5958
|
CommentBlock.displayName = COMPONENT_NAME$14;
|
|
5940
5959
|
CommentBlock.className = CLASSNAME$12;
|
|
5941
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
5960
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$P;
|
|
5942
5961
|
|
|
5943
5962
|
/**
|
|
5944
5963
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -6199,7 +6218,7 @@ const COMPONENT_NAME$12 = 'DatePickerControlled';
|
|
|
6199
6218
|
* @param ref Component ref.
|
|
6200
6219
|
* @return React element.
|
|
6201
6220
|
*/
|
|
6202
|
-
const DatePickerControlled =
|
|
6221
|
+
const DatePickerControlled = forwardRef((props, ref) => {
|
|
6203
6222
|
var _RegExp$exec;
|
|
6204
6223
|
const {
|
|
6205
6224
|
locale = getCurrentLocale(),
|
|
@@ -6382,7 +6401,7 @@ const _excluded$17 = ["defaultMonth", "locale", "value", "onChange"];
|
|
|
6382
6401
|
* @param ref Component ref.
|
|
6383
6402
|
* @return React element.
|
|
6384
6403
|
*/
|
|
6385
|
-
const DatePicker =
|
|
6404
|
+
const DatePicker = forwardRef((props, ref) => {
|
|
6386
6405
|
const {
|
|
6387
6406
|
defaultMonth,
|
|
6388
6407
|
locale,
|
|
@@ -6444,7 +6463,7 @@ const COMPONENT_NAME$11 = 'DatePickerField';
|
|
|
6444
6463
|
* @param ref Component ref.
|
|
6445
6464
|
* @return React element.
|
|
6446
6465
|
*/
|
|
6447
|
-
const DatePickerField =
|
|
6466
|
+
const DatePickerField = forwardRef((props, ref) => {
|
|
6448
6467
|
const {
|
|
6449
6468
|
defaultMonth,
|
|
6450
6469
|
disabled,
|
|
@@ -6854,7 +6873,7 @@ const CLASSNAME$10 = getRootClassName(COMPONENT_NAME$10);
|
|
|
6854
6873
|
/**
|
|
6855
6874
|
* Component default props.
|
|
6856
6875
|
*/
|
|
6857
|
-
const DEFAULT_PROPS$
|
|
6876
|
+
const DEFAULT_PROPS$O = {
|
|
6858
6877
|
size: Size.big,
|
|
6859
6878
|
disableBodyScroll: true
|
|
6860
6879
|
};
|
|
@@ -6866,7 +6885,7 @@ const DEFAULT_PROPS$N = {
|
|
|
6866
6885
|
* @param ref Component ref.
|
|
6867
6886
|
* @return React element.
|
|
6868
6887
|
*/
|
|
6869
|
-
const Dialog =
|
|
6888
|
+
const Dialog = forwardRef((props, ref) => {
|
|
6870
6889
|
var _intersections$get$is, _intersections$get, _intersections$get$is2, _intersections$get2;
|
|
6871
6890
|
if (!DOCUMENT) {
|
|
6872
6891
|
// Can't render in SSR.
|
|
@@ -6972,7 +6991,9 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6972
6991
|
}
|
|
6973
6992
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
6974
6993
|
className: `${CLASSNAME$10}__overlay`
|
|
6975
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
6994
|
+
}), /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
6995
|
+
value: undefined
|
|
6996
|
+
}, /*#__PURE__*/React__default.createElement("section", _extends({
|
|
6976
6997
|
className: `${CLASSNAME$10}__container`,
|
|
6977
6998
|
role: "dialog",
|
|
6978
6999
|
"aria-modal": "true"
|
|
@@ -7000,11 +7021,11 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7000
7021
|
className: `${CLASSNAME$10}__progress-overlay`
|
|
7001
7022
|
}, /*#__PURE__*/React__default.createElement(Progress, {
|
|
7002
7023
|
variant: ProgressVariant.circular
|
|
7003
|
-
})))))), document.body) : null;
|
|
7024
|
+
}))))))), document.body) : null;
|
|
7004
7025
|
});
|
|
7005
7026
|
Dialog.displayName = COMPONENT_NAME$10;
|
|
7006
7027
|
Dialog.className = CLASSNAME$10;
|
|
7007
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
7028
|
+
Dialog.defaultProps = DEFAULT_PROPS$O;
|
|
7008
7029
|
|
|
7009
7030
|
const _excluded$14 = ["className", "theme"];
|
|
7010
7031
|
|
|
@@ -7025,9 +7046,7 @@ const CLASSNAME$$ = getRootClassName(COMPONENT_NAME$$);
|
|
|
7025
7046
|
/**
|
|
7026
7047
|
* Component default props.
|
|
7027
7048
|
*/
|
|
7028
|
-
const DEFAULT_PROPS$
|
|
7029
|
-
theme: Theme.light
|
|
7030
|
-
};
|
|
7049
|
+
const DEFAULT_PROPS$N = {};
|
|
7031
7050
|
|
|
7032
7051
|
/**
|
|
7033
7052
|
* Divider component.
|
|
@@ -7036,10 +7055,11 @@ const DEFAULT_PROPS$M = {
|
|
|
7036
7055
|
* @param ref Component ref.
|
|
7037
7056
|
* @return React element.
|
|
7038
7057
|
*/
|
|
7039
|
-
const Divider =
|
|
7058
|
+
const Divider = forwardRef((props, ref) => {
|
|
7059
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
7040
7060
|
const {
|
|
7041
7061
|
className,
|
|
7042
|
-
theme
|
|
7062
|
+
theme = defaultTheme
|
|
7043
7063
|
} = props,
|
|
7044
7064
|
forwardedProps = _objectWithoutProperties(props, _excluded$14);
|
|
7045
7065
|
return /*#__PURE__*/React__default.createElement("hr", _extends({
|
|
@@ -7053,7 +7073,7 @@ const Divider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7053
7073
|
});
|
|
7054
7074
|
Divider.displayName = COMPONENT_NAME$$;
|
|
7055
7075
|
Divider.className = CLASSNAME$$;
|
|
7056
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
7076
|
+
Divider.defaultProps = DEFAULT_PROPS$N;
|
|
7057
7077
|
|
|
7058
7078
|
const _excluded$13 = ["className", "theme"];
|
|
7059
7079
|
|
|
@@ -7078,10 +7098,11 @@ const CLASSNAME$_ = getRootClassName(COMPONENT_NAME$_);
|
|
|
7078
7098
|
* @param ref Component ref.
|
|
7079
7099
|
* @return React element.
|
|
7080
7100
|
*/
|
|
7081
|
-
const DragHandle =
|
|
7101
|
+
const DragHandle = forwardRef((props, ref) => {
|
|
7102
|
+
const defaultTheme = useTheme();
|
|
7082
7103
|
const {
|
|
7083
7104
|
className,
|
|
7084
|
-
theme
|
|
7105
|
+
theme = defaultTheme
|
|
7085
7106
|
} = props,
|
|
7086
7107
|
forwardedProps = _objectWithoutProperties(props, _excluded$13);
|
|
7087
7108
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
@@ -7119,9 +7140,7 @@ const CLASSNAME$Z = getRootClassName(COMPONENT_NAME$Z);
|
|
|
7119
7140
|
/**
|
|
7120
7141
|
* Component default props.
|
|
7121
7142
|
*/
|
|
7122
|
-
const DEFAULT_PROPS$
|
|
7123
|
-
theme: Theme.light
|
|
7124
|
-
};
|
|
7143
|
+
const DEFAULT_PROPS$M = {};
|
|
7125
7144
|
const isDragHandle = isComponent(DragHandle);
|
|
7126
7145
|
const isHeader = isComponent('header');
|
|
7127
7146
|
const isFooter = isComponent('footer');
|
|
@@ -7133,7 +7152,8 @@ const isFooter = isComponent('footer');
|
|
|
7133
7152
|
* @param ref Component ref.
|
|
7134
7153
|
* @return React element.
|
|
7135
7154
|
*/
|
|
7136
|
-
const ExpansionPanel =
|
|
7155
|
+
const ExpansionPanel = forwardRef((props, ref) => {
|
|
7156
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
7137
7157
|
const {
|
|
7138
7158
|
className,
|
|
7139
7159
|
children: anyChildren,
|
|
@@ -7144,7 +7164,7 @@ const ExpansionPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7144
7164
|
onClose,
|
|
7145
7165
|
onOpen,
|
|
7146
7166
|
onToggleOpen,
|
|
7147
|
-
theme,
|
|
7167
|
+
theme = defaultTheme,
|
|
7148
7168
|
toggleButtonProps
|
|
7149
7169
|
} = props,
|
|
7150
7170
|
forwardedProps = _objectWithoutProperties(props, _excluded$12);
|
|
@@ -7226,14 +7246,12 @@ const ExpansionPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7226
7246
|
});
|
|
7227
7247
|
ExpansionPanel.displayName = COMPONENT_NAME$Z;
|
|
7228
7248
|
ExpansionPanel.className = CLASSNAME$Z;
|
|
7229
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
7249
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$M;
|
|
7230
7250
|
|
|
7231
7251
|
const _excluded$11 = ["label", "icon", "color", "className", "theme", "truncate"];
|
|
7232
7252
|
const COMPONENT_NAME$Y = 'Flag';
|
|
7233
7253
|
const CLASSNAME$Y = getRootClassName(COMPONENT_NAME$Y);
|
|
7234
|
-
const DEFAULT_PROPS$
|
|
7235
|
-
theme: Theme.light
|
|
7236
|
-
};
|
|
7254
|
+
const DEFAULT_PROPS$L = {};
|
|
7237
7255
|
|
|
7238
7256
|
/**
|
|
7239
7257
|
* Flag component.
|
|
@@ -7242,13 +7260,14 @@ const DEFAULT_PROPS$K = {
|
|
|
7242
7260
|
* @param ref Component ref.
|
|
7243
7261
|
* @return React element.
|
|
7244
7262
|
*/
|
|
7245
|
-
const Flag =
|
|
7263
|
+
const Flag = forwardRef((props, ref) => {
|
|
7264
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
7246
7265
|
const {
|
|
7247
7266
|
label,
|
|
7248
7267
|
icon,
|
|
7249
7268
|
color,
|
|
7250
7269
|
className,
|
|
7251
|
-
theme,
|
|
7270
|
+
theme = defaultTheme,
|
|
7252
7271
|
truncate
|
|
7253
7272
|
} = props,
|
|
7254
7273
|
forwardedProps = _objectWithoutProperties(props, _excluded$11);
|
|
@@ -7274,7 +7293,7 @@ const Flag = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7274
7293
|
});
|
|
7275
7294
|
Flag.displayName = COMPONENT_NAME$Y;
|
|
7276
7295
|
Flag.className = CLASSNAME$Y;
|
|
7277
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
7296
|
+
Flag.defaultProps = DEFAULT_PROPS$L;
|
|
7278
7297
|
|
|
7279
7298
|
const _excluded$10 = ["as", "children", "className", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap"];
|
|
7280
7299
|
|
|
@@ -7299,7 +7318,7 @@ const CLASSNAME$X = getRootClassName(COMPONENT_NAME$X);
|
|
|
7299
7318
|
* @param ref Component ref.
|
|
7300
7319
|
* @return React element.
|
|
7301
7320
|
*/
|
|
7302
|
-
const FlexBox =
|
|
7321
|
+
const FlexBox = forwardRef((props, ref) => {
|
|
7303
7322
|
const {
|
|
7304
7323
|
as: Component = 'div',
|
|
7305
7324
|
children,
|
|
@@ -7343,7 +7362,7 @@ const CLASSNAME$W = getRootClassName(COMPONENT_NAME$W);
|
|
|
7343
7362
|
/**
|
|
7344
7363
|
* Component default props.
|
|
7345
7364
|
*/
|
|
7346
|
-
const DEFAULT_PROPS$
|
|
7365
|
+
const DEFAULT_PROPS$K = {
|
|
7347
7366
|
gap: Size.big,
|
|
7348
7367
|
orientation: Orientation.horizontal
|
|
7349
7368
|
};
|
|
@@ -7365,7 +7384,7 @@ const isActions = isComponentType(Actions);
|
|
|
7365
7384
|
*
|
|
7366
7385
|
* @see https://www.figma.com/file/lzzrQmsfaXRaOyRfoEogPZ/DS%3A-playground?node-id=1%3A4076
|
|
7367
7386
|
*/
|
|
7368
|
-
const BaseGenericBlock =
|
|
7387
|
+
const BaseGenericBlock = forwardRef((props, ref) => {
|
|
7369
7388
|
var _sections$figureChild, _sections$figureChild2, _sections$figureChild3, _sections$figureChild4, _sections$contentChil, _sections$contentChil2, _sections$contentChil3, _sections$contentChil4, _sections$actionsChil, _sections$actionsChil2, _sections$actionsChil3, _sections$actionsChil4;
|
|
7370
7389
|
const {
|
|
7371
7390
|
className,
|
|
@@ -7421,7 +7440,7 @@ const BaseGenericBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7421
7440
|
});
|
|
7422
7441
|
BaseGenericBlock.displayName = COMPONENT_NAME$W;
|
|
7423
7442
|
BaseGenericBlock.className = CLASSNAME$W;
|
|
7424
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7443
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$K;
|
|
7425
7444
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7426
7445
|
Figure,
|
|
7427
7446
|
Content,
|
|
@@ -7496,7 +7515,7 @@ const CLASSNAME$V = getRootClassName(COMPONENT_NAME$V);
|
|
|
7496
7515
|
/**
|
|
7497
7516
|
* Component default props.
|
|
7498
7517
|
*/
|
|
7499
|
-
const DEFAULT_PROPS$
|
|
7518
|
+
const DEFAULT_PROPS$J = {};
|
|
7500
7519
|
|
|
7501
7520
|
/**
|
|
7502
7521
|
* Text component.
|
|
@@ -7505,7 +7524,7 @@ const DEFAULT_PROPS$I = {};
|
|
|
7505
7524
|
* @param ref Component ref.
|
|
7506
7525
|
* @return React element.
|
|
7507
7526
|
*/
|
|
7508
|
-
const Text =
|
|
7527
|
+
const Text = forwardRef((props, ref) => {
|
|
7509
7528
|
const {
|
|
7510
7529
|
as: Component,
|
|
7511
7530
|
children,
|
|
@@ -7562,7 +7581,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7562
7581
|
});
|
|
7563
7582
|
Text.displayName = COMPONENT_NAME$V;
|
|
7564
7583
|
Text.className = CLASSNAME$V;
|
|
7565
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7584
|
+
Text.defaultProps = DEFAULT_PROPS$J;
|
|
7566
7585
|
|
|
7567
7586
|
/** The maximum authorized heading level. */
|
|
7568
7587
|
const MAX_HEADING_LEVEL = 6;
|
|
@@ -7615,14 +7634,14 @@ const CLASSNAME$U = getRootClassName(COMPONENT_NAME$U);
|
|
|
7615
7634
|
/**
|
|
7616
7635
|
* Component default props.
|
|
7617
7636
|
*/
|
|
7618
|
-
const DEFAULT_PROPS$
|
|
7637
|
+
const DEFAULT_PROPS$I = {};
|
|
7619
7638
|
|
|
7620
7639
|
/**
|
|
7621
7640
|
* Renders a heading component.
|
|
7622
7641
|
* Extends the `Text` Component with the heading level automatically computed based on
|
|
7623
7642
|
* the current level provided by the context.
|
|
7624
7643
|
*/
|
|
7625
|
-
const Heading =
|
|
7644
|
+
const Heading = forwardRef((props, ref) => {
|
|
7626
7645
|
const {
|
|
7627
7646
|
children,
|
|
7628
7647
|
as,
|
|
@@ -7644,7 +7663,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7644
7663
|
});
|
|
7645
7664
|
Heading.displayName = COMPONENT_NAME$U;
|
|
7646
7665
|
Heading.className = CLASSNAME$U;
|
|
7647
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7666
|
+
Heading.defaultProps = DEFAULT_PROPS$I;
|
|
7648
7667
|
|
|
7649
7668
|
/**
|
|
7650
7669
|
* Provide a new heading level context.
|
|
@@ -7688,7 +7707,7 @@ const CLASSNAME$T = getRootClassName(COMPONENT_NAME$T);
|
|
|
7688
7707
|
/**
|
|
7689
7708
|
* Component default props.
|
|
7690
7709
|
*/
|
|
7691
|
-
const DEFAULT_PROPS$
|
|
7710
|
+
const DEFAULT_PROPS$H = {
|
|
7692
7711
|
orientation: Orientation.horizontal,
|
|
7693
7712
|
wrap: 'nowrap'
|
|
7694
7713
|
};
|
|
@@ -7700,7 +7719,7 @@ const DEFAULT_PROPS$G = {
|
|
|
7700
7719
|
* @param ref Component ref.
|
|
7701
7720
|
* @return React element.
|
|
7702
7721
|
*/
|
|
7703
|
-
const Grid =
|
|
7722
|
+
const Grid = forwardRef((props, ref) => {
|
|
7704
7723
|
const {
|
|
7705
7724
|
children,
|
|
7706
7725
|
className,
|
|
@@ -7728,7 +7747,7 @@ const Grid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7728
7747
|
});
|
|
7729
7748
|
Grid.displayName = COMPONENT_NAME$T;
|
|
7730
7749
|
Grid.className = CLASSNAME$T;
|
|
7731
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
7750
|
+
Grid.defaultProps = DEFAULT_PROPS$H;
|
|
7732
7751
|
|
|
7733
7752
|
const _excluded$X = ["children", "className", "width", "align", "order"];
|
|
7734
7753
|
|
|
@@ -7753,7 +7772,7 @@ const CLASSNAME$S = getRootClassName(COMPONENT_NAME$S);
|
|
|
7753
7772
|
* @param ref Component ref.
|
|
7754
7773
|
* @return React element.
|
|
7755
7774
|
*/
|
|
7756
|
-
const GridItem =
|
|
7775
|
+
const GridItem = forwardRef((props, ref) => {
|
|
7757
7776
|
const {
|
|
7758
7777
|
children,
|
|
7759
7778
|
className,
|
|
@@ -7795,7 +7814,7 @@ const CLASSNAME$R = getRootClassName(COMPONENT_NAME$R);
|
|
|
7795
7814
|
/**
|
|
7796
7815
|
* Component default props.
|
|
7797
7816
|
*/
|
|
7798
|
-
const DEFAULT_PROPS$
|
|
7817
|
+
const DEFAULT_PROPS$G = {};
|
|
7799
7818
|
|
|
7800
7819
|
/**
|
|
7801
7820
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7806,7 +7825,7 @@ const DEFAULT_PROPS$F = {};
|
|
|
7806
7825
|
* @param ref Component ref.
|
|
7807
7826
|
* @return React element.
|
|
7808
7827
|
*/
|
|
7809
|
-
const GridColumn =
|
|
7828
|
+
const GridColumn = forwardRef((props, ref) => {
|
|
7810
7829
|
const {
|
|
7811
7830
|
as: Component = 'div',
|
|
7812
7831
|
gap,
|
|
@@ -7831,7 +7850,7 @@ const GridColumn = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7831
7850
|
});
|
|
7832
7851
|
GridColumn.displayName = COMPONENT_NAME$R;
|
|
7833
7852
|
GridColumn.className = CLASSNAME$R;
|
|
7834
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
7853
|
+
GridColumn.defaultProps = DEFAULT_PROPS$G;
|
|
7835
7854
|
|
|
7836
7855
|
const _excluded$V = ["className", "color", "colorVariant", "hasShape", "icon", "size", "theme", "alt"];
|
|
7837
7856
|
|
|
@@ -7852,7 +7871,7 @@ const CLASSNAME$Q = getRootClassName(COMPONENT_NAME$Q);
|
|
|
7852
7871
|
/**
|
|
7853
7872
|
* Component default props.
|
|
7854
7873
|
*/
|
|
7855
|
-
const DEFAULT_PROPS$
|
|
7874
|
+
const DEFAULT_PROPS$F = {};
|
|
7856
7875
|
|
|
7857
7876
|
/**
|
|
7858
7877
|
* Icon component.
|
|
@@ -7861,7 +7880,8 @@ const DEFAULT_PROPS$E = {};
|
|
|
7861
7880
|
* @param ref Component ref.
|
|
7862
7881
|
* @return React element.
|
|
7863
7882
|
*/
|
|
7864
|
-
const Icon =
|
|
7883
|
+
const Icon = forwardRef((props, ref) => {
|
|
7884
|
+
const defaultTheme = useTheme();
|
|
7865
7885
|
const {
|
|
7866
7886
|
className,
|
|
7867
7887
|
color,
|
|
@@ -7869,7 +7889,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7869
7889
|
hasShape,
|
|
7870
7890
|
icon,
|
|
7871
7891
|
size,
|
|
7872
|
-
theme,
|
|
7892
|
+
theme = defaultTheme,
|
|
7873
7893
|
alt
|
|
7874
7894
|
} = props,
|
|
7875
7895
|
forwardedProps = _objectWithoutProperties(props, _excluded$V);
|
|
@@ -7926,7 +7946,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7926
7946
|
});
|
|
7927
7947
|
Icon.displayName = COMPONENT_NAME$Q;
|
|
7928
7948
|
Icon.className = CLASSNAME$Q;
|
|
7929
|
-
Icon.defaultProps = DEFAULT_PROPS$
|
|
7949
|
+
Icon.defaultProps = DEFAULT_PROPS$F;
|
|
7930
7950
|
|
|
7931
7951
|
/** Internal component used to render image captions */
|
|
7932
7952
|
const ImageCaption = props => {
|
|
@@ -8016,9 +8036,8 @@ const CLASSNAME$P = getRootClassName(COMPONENT_NAME$P);
|
|
|
8016
8036
|
/**
|
|
8017
8037
|
* Component default props.
|
|
8018
8038
|
*/
|
|
8019
|
-
const DEFAULT_PROPS$
|
|
8039
|
+
const DEFAULT_PROPS$E = {
|
|
8020
8040
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
8021
|
-
theme: Theme.light,
|
|
8022
8041
|
align: Alignment.left
|
|
8023
8042
|
};
|
|
8024
8043
|
|
|
@@ -8029,7 +8048,8 @@ const DEFAULT_PROPS$D = {
|
|
|
8029
8048
|
* @param ref Component ref.
|
|
8030
8049
|
* @return React element.
|
|
8031
8050
|
*/
|
|
8032
|
-
const ImageBlock =
|
|
8051
|
+
const ImageBlock = forwardRef((props, ref) => {
|
|
8052
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
8033
8053
|
const {
|
|
8034
8054
|
actions,
|
|
8035
8055
|
align,
|
|
@@ -8043,7 +8063,7 @@ const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8043
8063
|
image,
|
|
8044
8064
|
size,
|
|
8045
8065
|
tags,
|
|
8046
|
-
theme,
|
|
8066
|
+
theme = defaultTheme,
|
|
8047
8067
|
thumbnailProps,
|
|
8048
8068
|
title,
|
|
8049
8069
|
titleProps
|
|
@@ -8085,7 +8105,7 @@ const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8085
8105
|
});
|
|
8086
8106
|
ImageBlock.displayName = COMPONENT_NAME$P;
|
|
8087
8107
|
ImageBlock.className = CLASSNAME$P;
|
|
8088
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
8108
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$E;
|
|
8089
8109
|
|
|
8090
8110
|
/**
|
|
8091
8111
|
* Component display name.
|
|
@@ -8767,7 +8787,7 @@ function useImageLightbox(props) {
|
|
|
8767
8787
|
}
|
|
8768
8788
|
|
|
8769
8789
|
const _excluded$S = ["className", "isOpen", "closeButtonProps", "onClose", "parentElement", "activeImageIndex", "slideshowControlsProps", "slideGroupLabel", "images", "zoomOutButtonProps", "zoomInButtonProps", "activeImageRef"];
|
|
8770
|
-
const Inner =
|
|
8790
|
+
const Inner = forwardRef((props, ref) => {
|
|
8771
8791
|
const {
|
|
8772
8792
|
className,
|
|
8773
8793
|
isOpen,
|
|
@@ -8854,7 +8874,7 @@ const CLASSNAME$N = getRootClassName(COMPONENT_NAME$N);
|
|
|
8854
8874
|
/**
|
|
8855
8875
|
* Component default props.
|
|
8856
8876
|
*/
|
|
8857
|
-
const DEFAULT_PROPS$
|
|
8877
|
+
const DEFAULT_PROPS$D = {};
|
|
8858
8878
|
|
|
8859
8879
|
/**
|
|
8860
8880
|
* InlineList component.
|
|
@@ -8863,7 +8883,7 @@ const DEFAULT_PROPS$C = {};
|
|
|
8863
8883
|
* @param ref Component ref.
|
|
8864
8884
|
* @return React element.
|
|
8865
8885
|
*/
|
|
8866
|
-
const InlineList =
|
|
8886
|
+
const InlineList = forwardRef((props, ref) => {
|
|
8867
8887
|
const {
|
|
8868
8888
|
className,
|
|
8869
8889
|
color,
|
|
@@ -8904,7 +8924,7 @@ const InlineList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8904
8924
|
});
|
|
8905
8925
|
InlineList.displayName = COMPONENT_NAME$N;
|
|
8906
8926
|
InlineList.className = CLASSNAME$N;
|
|
8907
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
8927
|
+
InlineList.defaultProps = DEFAULT_PROPS$D;
|
|
8908
8928
|
|
|
8909
8929
|
const _excluded$Q = ["children", "className", "htmlFor", "isRequired", "theme"];
|
|
8910
8930
|
|
|
@@ -8925,9 +8945,7 @@ const CLASSNAME$M = getRootClassName(COMPONENT_NAME$M);
|
|
|
8925
8945
|
/**
|
|
8926
8946
|
* Component default props.
|
|
8927
8947
|
*/
|
|
8928
|
-
const DEFAULT_PROPS$
|
|
8929
|
-
theme: Theme.light
|
|
8930
|
-
};
|
|
8948
|
+
const DEFAULT_PROPS$C = {};
|
|
8931
8949
|
|
|
8932
8950
|
/**
|
|
8933
8951
|
* InputLabel component.
|
|
@@ -8936,13 +8954,14 @@ const DEFAULT_PROPS$B = {
|
|
|
8936
8954
|
* @param ref Component ref.
|
|
8937
8955
|
* @return React element.
|
|
8938
8956
|
*/
|
|
8939
|
-
const InputLabel =
|
|
8957
|
+
const InputLabel = forwardRef((props, ref) => {
|
|
8958
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
8940
8959
|
const {
|
|
8941
8960
|
children,
|
|
8942
8961
|
className,
|
|
8943
8962
|
htmlFor,
|
|
8944
8963
|
isRequired,
|
|
8945
|
-
theme
|
|
8964
|
+
theme = defaultTheme
|
|
8946
8965
|
} = props,
|
|
8947
8966
|
forwardedProps = _objectWithoutProperties(props, _excluded$Q);
|
|
8948
8967
|
return /*#__PURE__*/React__default.createElement("label", _extends({
|
|
@@ -8958,7 +8977,7 @@ const InputLabel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8958
8977
|
});
|
|
8959
8978
|
InputLabel.displayName = COMPONENT_NAME$M;
|
|
8960
8979
|
InputLabel.className = CLASSNAME$M;
|
|
8961
|
-
InputLabel.defaultProps = DEFAULT_PROPS$
|
|
8980
|
+
InputLabel.defaultProps = DEFAULT_PROPS$C;
|
|
8962
8981
|
|
|
8963
8982
|
const _excluded$P = ["aria-labelledby", "ariaLabelledBy", "aria-label", "ariaLabel", "children", "className", "closeButtonProps", "isOpen", "onClose", "parentElement", "focusElement", "preventAutoClose", "theme", "zIndex"];
|
|
8964
8983
|
|
|
@@ -8983,7 +9002,7 @@ const CLASSNAME$L = getRootClassName(COMPONENT_NAME$L);
|
|
|
8983
9002
|
* @param ref Component ref.
|
|
8984
9003
|
* @return React element.
|
|
8985
9004
|
*/
|
|
8986
|
-
const Lightbox =
|
|
9005
|
+
const Lightbox = forwardRef((props, ref) => {
|
|
8987
9006
|
const {
|
|
8988
9007
|
'aria-labelledby': propAriaLabelledBy,
|
|
8989
9008
|
ariaLabelledBy = propAriaLabelledBy,
|
|
@@ -9079,14 +9098,16 @@ const Lightbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9079
9098
|
theme: "dark",
|
|
9080
9099
|
type: "button",
|
|
9081
9100
|
onClick: onClose
|
|
9082
|
-
}))), /*#__PURE__*/React__default.createElement(
|
|
9101
|
+
}))), /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
9102
|
+
value: undefined
|
|
9103
|
+
}, /*#__PURE__*/React__default.createElement(ClickAwayProvider, {
|
|
9083
9104
|
callback: !preventAutoClose && onClose,
|
|
9084
9105
|
childrenRefs: clickAwayRefs
|
|
9085
9106
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9086
9107
|
ref: childrenRef,
|
|
9087
9108
|
className: `${CLASSNAME$L}__wrapper`,
|
|
9088
9109
|
role: "presentation"
|
|
9089
|
-
}, children))), document.body);
|
|
9110
|
+
}, children)))), document.body);
|
|
9090
9111
|
});
|
|
9091
9112
|
Lightbox.displayName = COMPONENT_NAME$L;
|
|
9092
9113
|
Lightbox.className = CLASSNAME$L;
|
|
@@ -9139,7 +9160,7 @@ const getIconSize = typography => {
|
|
|
9139
9160
|
* @param ref Component ref.
|
|
9140
9161
|
* @return React element.
|
|
9141
9162
|
*/
|
|
9142
|
-
const Link =
|
|
9163
|
+
const Link = forwardRef((props, ref) => {
|
|
9143
9164
|
const {
|
|
9144
9165
|
children,
|
|
9145
9166
|
className,
|
|
@@ -9221,9 +9242,8 @@ const CLASSNAME$J = getRootClassName(COMPONENT_NAME$J);
|
|
|
9221
9242
|
/**
|
|
9222
9243
|
* Component default props.
|
|
9223
9244
|
*/
|
|
9224
|
-
const DEFAULT_PROPS$
|
|
9245
|
+
const DEFAULT_PROPS$B = {
|
|
9225
9246
|
size: Size.regular,
|
|
9226
|
-
theme: Theme.light,
|
|
9227
9247
|
titleHeading: 'h2'
|
|
9228
9248
|
};
|
|
9229
9249
|
|
|
@@ -9234,7 +9254,8 @@ const DEFAULT_PROPS$A = {
|
|
|
9234
9254
|
* @param ref Component ref.
|
|
9235
9255
|
* @return React element.
|
|
9236
9256
|
*/
|
|
9237
|
-
const LinkPreview =
|
|
9257
|
+
const LinkPreview = forwardRef((props, ref) => {
|
|
9258
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9238
9259
|
const {
|
|
9239
9260
|
className,
|
|
9240
9261
|
description,
|
|
@@ -9242,7 +9263,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9242
9263
|
linkAs,
|
|
9243
9264
|
linkProps,
|
|
9244
9265
|
size,
|
|
9245
|
-
theme,
|
|
9266
|
+
theme = defaultTheme,
|
|
9246
9267
|
thumbnailProps,
|
|
9247
9268
|
title,
|
|
9248
9269
|
titleHeading
|
|
@@ -9300,7 +9321,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9300
9321
|
});
|
|
9301
9322
|
LinkPreview.displayName = COMPONENT_NAME$J;
|
|
9302
9323
|
LinkPreview.className = CLASSNAME$J;
|
|
9303
|
-
LinkPreview.defaultProps = DEFAULT_PROPS$
|
|
9324
|
+
LinkPreview.defaultProps = DEFAULT_PROPS$B;
|
|
9304
9325
|
|
|
9305
9326
|
const _excluded$M = ["className"];
|
|
9306
9327
|
|
|
@@ -9325,7 +9346,7 @@ const CLASSNAME$I = getRootClassName(COMPONENT_NAME$I);
|
|
|
9325
9346
|
* @param ref Component ref.
|
|
9326
9347
|
* @return React element.
|
|
9327
9348
|
*/
|
|
9328
|
-
const ListDivider =
|
|
9349
|
+
const ListDivider = forwardRef((props, ref) => {
|
|
9329
9350
|
const {
|
|
9330
9351
|
className
|
|
9331
9352
|
} = props,
|
|
@@ -9364,7 +9385,7 @@ const CLASSNAME$H = getRootClassName(COMPONENT_NAME$H);
|
|
|
9364
9385
|
* @param ref Component ref.
|
|
9365
9386
|
* @return React element.
|
|
9366
9387
|
*/
|
|
9367
|
-
const ListSubheader =
|
|
9388
|
+
const ListSubheader = forwardRef((props, ref) => {
|
|
9368
9389
|
const {
|
|
9369
9390
|
children,
|
|
9370
9391
|
className
|
|
@@ -9426,7 +9447,7 @@ const CONFIG = {
|
|
|
9426
9447
|
* @param ref Component ref.
|
|
9427
9448
|
* @return React element.
|
|
9428
9449
|
*/
|
|
9429
|
-
const Message =
|
|
9450
|
+
const Message = forwardRef((props, ref) => {
|
|
9430
9451
|
const {
|
|
9431
9452
|
children,
|
|
9432
9453
|
className,
|
|
@@ -9490,9 +9511,7 @@ const CLASSNAME$F = getRootClassName(COMPONENT_NAME$F);
|
|
|
9490
9511
|
/**
|
|
9491
9512
|
* Component default props.
|
|
9492
9513
|
*/
|
|
9493
|
-
const DEFAULT_PROPS$
|
|
9494
|
-
theme: Theme.light
|
|
9495
|
-
};
|
|
9514
|
+
const DEFAULT_PROPS$A = {};
|
|
9496
9515
|
|
|
9497
9516
|
/**
|
|
9498
9517
|
* Mosaic component.
|
|
@@ -9501,10 +9520,11 @@ const DEFAULT_PROPS$z = {
|
|
|
9501
9520
|
* @param ref Component ref.
|
|
9502
9521
|
* @return React element.
|
|
9503
9522
|
*/
|
|
9504
|
-
const Mosaic =
|
|
9523
|
+
const Mosaic = forwardRef((props, ref) => {
|
|
9524
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9505
9525
|
const {
|
|
9506
9526
|
className,
|
|
9507
|
-
theme,
|
|
9527
|
+
theme = defaultTheme,
|
|
9508
9528
|
thumbnails,
|
|
9509
9529
|
onImageClick
|
|
9510
9530
|
} = props,
|
|
@@ -9554,14 +9574,11 @@ const Mosaic = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9554
9574
|
});
|
|
9555
9575
|
Mosaic.displayName = COMPONENT_NAME$F;
|
|
9556
9576
|
Mosaic.className = CLASSNAME$F;
|
|
9557
|
-
Mosaic.defaultProps = DEFAULT_PROPS$
|
|
9558
|
-
|
|
9559
|
-
const ThemeContext = /*#__PURE__*/createContext(undefined);
|
|
9577
|
+
Mosaic.defaultProps = DEFAULT_PROPS$A;
|
|
9560
9578
|
|
|
9561
9579
|
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
}
|
|
9580
|
+
|
|
9581
|
+
const forwardRefPolymorphic = React__default.forwardRef;
|
|
9565
9582
|
|
|
9566
9583
|
const _excluded$I = ["className", "icon", "label", "isCurrentPage", "as"];
|
|
9567
9584
|
|
|
@@ -9589,7 +9606,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9589
9606
|
as: Element = 'a'
|
|
9590
9607
|
} = props,
|
|
9591
9608
|
forwardedProps = _objectWithoutProperties(props, _excluded$I);
|
|
9592
|
-
const theme =
|
|
9609
|
+
const theme = useTheme();
|
|
9593
9610
|
const {
|
|
9594
9611
|
tooltipLabel,
|
|
9595
9612
|
labelRef
|
|
@@ -9642,7 +9659,7 @@ const COMPONENT_NAME$D = 'NavigationSection';
|
|
|
9642
9659
|
* Component default class name and class prefix.
|
|
9643
9660
|
*/
|
|
9644
9661
|
const CLASSNAME$D = getRootClassName(COMPONENT_NAME$D);
|
|
9645
|
-
const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) => {
|
|
9662
|
+
const NavigationSection = Object.assign( /*#__PURE__*/forwardRef$1((props, ref) => {
|
|
9646
9663
|
const {
|
|
9647
9664
|
children,
|
|
9648
9665
|
className,
|
|
@@ -9656,7 +9673,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
|
|
|
9656
9673
|
const {
|
|
9657
9674
|
orientation
|
|
9658
9675
|
} = useContext(NavigationContext) || {};
|
|
9659
|
-
const theme =
|
|
9676
|
+
const theme = useTheme();
|
|
9660
9677
|
const isDropdown = orientation === Orientation.horizontal;
|
|
9661
9678
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
9662
9679
|
className: classNames(className, CLASSNAME$D, CLASSNAME$E, handleBasicClasses({
|
|
@@ -9696,7 +9713,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
|
|
|
9696
9713
|
onClick: () => setIsOpen(false),
|
|
9697
9714
|
onClose: () => setIsOpen(false),
|
|
9698
9715
|
zIndex: 996
|
|
9699
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
9716
|
+
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
9700
9717
|
value: Theme.light
|
|
9701
9718
|
}, /*#__PURE__*/React__default.createElement("ul", {
|
|
9702
9719
|
className: `${CLASSNAME$D}__drawer--popover`,
|
|
@@ -9724,18 +9741,26 @@ const COMPONENT_NAME$C = 'Navigation';
|
|
|
9724
9741
|
* Component default class name and class prefix.
|
|
9725
9742
|
*/
|
|
9726
9743
|
const CLASSNAME$C = getRootClassName(COMPONENT_NAME$C);
|
|
9744
|
+
|
|
9745
|
+
/**
|
|
9746
|
+
* Component default props
|
|
9747
|
+
*/
|
|
9748
|
+
const DEFAULT_PROPS$z = {
|
|
9749
|
+
orientation: Orientation.vertical
|
|
9750
|
+
};
|
|
9727
9751
|
const Navigation = Object.assign(
|
|
9728
9752
|
/*#__PURE__*/
|
|
9729
9753
|
// eslint-disable-next-line react/display-name
|
|
9730
|
-
forwardRef((props, ref) => {
|
|
9754
|
+
forwardRef$1((props, ref) => {
|
|
9755
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9731
9756
|
const {
|
|
9732
9757
|
children,
|
|
9733
9758
|
className,
|
|
9734
|
-
theme,
|
|
9759
|
+
theme = defaultTheme,
|
|
9735
9760
|
orientation
|
|
9736
9761
|
} = props,
|
|
9737
9762
|
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
9738
|
-
return /*#__PURE__*/React__default.createElement(
|
|
9763
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
9739
9764
|
value: theme
|
|
9740
9765
|
}, /*#__PURE__*/React__default.createElement("nav", _extends({
|
|
9741
9766
|
className: classNames(className, handleBasicClasses({
|
|
@@ -9754,10 +9779,7 @@ forwardRef((props, ref) => {
|
|
|
9754
9779
|
}), {
|
|
9755
9780
|
displayName: COMPONENT_NAME$C,
|
|
9756
9781
|
className: CLASSNAME$C,
|
|
9757
|
-
defaultProps:
|
|
9758
|
-
theme: Theme.light,
|
|
9759
|
-
orientation: Orientation.vertical
|
|
9760
|
-
},
|
|
9782
|
+
defaultProps: DEFAULT_PROPS$z,
|
|
9761
9783
|
// Sub components
|
|
9762
9784
|
Section: NavigationSection,
|
|
9763
9785
|
Item: NavigationItem
|
|
@@ -9805,7 +9827,6 @@ const CLASSNAME$B = getRootClassName(COMPONENT_NAME$B);
|
|
|
9805
9827
|
* Component default props.
|
|
9806
9828
|
*/
|
|
9807
9829
|
const DEFAULT_PROPS$y = {
|
|
9808
|
-
theme: Theme.light,
|
|
9809
9830
|
zIndex: 9999,
|
|
9810
9831
|
usePortal: true
|
|
9811
9832
|
};
|
|
@@ -9818,7 +9839,8 @@ const DEFAULT_PROPS$y = {
|
|
|
9818
9839
|
* @param ref Component ref.
|
|
9819
9840
|
* @return React element.
|
|
9820
9841
|
*/
|
|
9821
|
-
const Notification =
|
|
9842
|
+
const Notification = forwardRef((props, ref) => {
|
|
9843
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9822
9844
|
const {
|
|
9823
9845
|
actionLabel,
|
|
9824
9846
|
className,
|
|
@@ -9826,7 +9848,7 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9826
9848
|
isOpen,
|
|
9827
9849
|
onActionClick,
|
|
9828
9850
|
onClick,
|
|
9829
|
-
theme,
|
|
9851
|
+
theme = defaultTheme,
|
|
9830
9852
|
type,
|
|
9831
9853
|
zIndex,
|
|
9832
9854
|
usePortal,
|
|
@@ -9919,7 +9941,7 @@ const DEFAULT_PROPS$x = {};
|
|
|
9919
9941
|
* * Sets a focus trap within the popover
|
|
9920
9942
|
* * Closes on click away and escape.
|
|
9921
9943
|
*/
|
|
9922
|
-
const PopoverDialog =
|
|
9944
|
+
const PopoverDialog = forwardRef((props, ref) => {
|
|
9923
9945
|
const {
|
|
9924
9946
|
children,
|
|
9925
9947
|
isOpen,
|
|
@@ -9972,8 +9994,7 @@ const CLASSNAME$z = getRootClassName(COMPONENT_NAME$z);
|
|
|
9972
9994
|
* Component default props.
|
|
9973
9995
|
*/
|
|
9974
9996
|
const DEFAULT_PROPS$w = {
|
|
9975
|
-
orientation: Orientation.horizontal
|
|
9976
|
-
theme: Theme.light
|
|
9997
|
+
orientation: Orientation.horizontal
|
|
9977
9998
|
};
|
|
9978
9999
|
|
|
9979
10000
|
/**
|
|
@@ -9983,7 +10004,8 @@ const DEFAULT_PROPS$w = {
|
|
|
9983
10004
|
* @param ref Component ref.
|
|
9984
10005
|
* @return React element.
|
|
9985
10006
|
*/
|
|
9986
|
-
const PostBlock =
|
|
10007
|
+
const PostBlock = forwardRef((props, ref) => {
|
|
10008
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9987
10009
|
const {
|
|
9988
10010
|
actions,
|
|
9989
10011
|
attachments,
|
|
@@ -9994,7 +10016,7 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9994
10016
|
orientation,
|
|
9995
10017
|
tags,
|
|
9996
10018
|
text,
|
|
9997
|
-
theme,
|
|
10019
|
+
theme = defaultTheme,
|
|
9998
10020
|
thumbnailProps,
|
|
9999
10021
|
title
|
|
10000
10022
|
} = props,
|
|
@@ -10057,9 +10079,7 @@ const CLASSNAME$y = getRootClassName(COMPONENT_NAME$y);
|
|
|
10057
10079
|
/**
|
|
10058
10080
|
* Component default props.
|
|
10059
10081
|
*/
|
|
10060
|
-
const DEFAULT_PROPS$v = {
|
|
10061
|
-
theme: Theme.light
|
|
10062
|
-
};
|
|
10082
|
+
const DEFAULT_PROPS$v = {};
|
|
10063
10083
|
|
|
10064
10084
|
/**
|
|
10065
10085
|
* ProgressLinear component.
|
|
@@ -10068,10 +10088,11 @@ const DEFAULT_PROPS$v = {
|
|
|
10068
10088
|
* @param ref Component ref.
|
|
10069
10089
|
* @return React element.
|
|
10070
10090
|
*/
|
|
10071
|
-
const ProgressLinear =
|
|
10091
|
+
const ProgressLinear = forwardRef((props, ref) => {
|
|
10092
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10072
10093
|
const {
|
|
10073
10094
|
className,
|
|
10074
|
-
theme
|
|
10095
|
+
theme = defaultTheme
|
|
10075
10096
|
} = props,
|
|
10076
10097
|
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
10077
10098
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
@@ -10115,7 +10136,6 @@ const CLASSNAME$x = getRootClassName(COMPONENT_NAME$x);
|
|
|
10115
10136
|
* Component default props.
|
|
10116
10137
|
*/
|
|
10117
10138
|
const DEFAULT_PROPS$u = {
|
|
10118
|
-
theme: Theme.light,
|
|
10119
10139
|
size: Size.m
|
|
10120
10140
|
};
|
|
10121
10141
|
|
|
@@ -10126,10 +10146,11 @@ const DEFAULT_PROPS$u = {
|
|
|
10126
10146
|
* @param ref Component ref.
|
|
10127
10147
|
* @return React element.
|
|
10128
10148
|
*/
|
|
10129
|
-
const ProgressCircular =
|
|
10149
|
+
const ProgressCircular = forwardRef((props, ref) => {
|
|
10150
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10130
10151
|
const {
|
|
10131
10152
|
className,
|
|
10132
|
-
theme,
|
|
10153
|
+
theme = defaultTheme,
|
|
10133
10154
|
size
|
|
10134
10155
|
} = props,
|
|
10135
10156
|
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
@@ -10189,7 +10210,6 @@ const CLASSNAME$w = getRootClassName(COMPONENT_NAME$w);
|
|
|
10189
10210
|
* Component default props.
|
|
10190
10211
|
*/
|
|
10191
10212
|
const DEFAULT_PROPS$t = {
|
|
10192
|
-
theme: Theme.light,
|
|
10193
10213
|
variant: ProgressVariant.circular
|
|
10194
10214
|
};
|
|
10195
10215
|
|
|
@@ -10201,10 +10221,11 @@ const DEFAULT_PROPS$t = {
|
|
|
10201
10221
|
* @param ref Component ref.
|
|
10202
10222
|
* @return React element.
|
|
10203
10223
|
*/
|
|
10204
|
-
const Progress =
|
|
10224
|
+
const Progress = forwardRef((props, ref) => {
|
|
10225
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10205
10226
|
const {
|
|
10206
10227
|
className,
|
|
10207
|
-
theme,
|
|
10228
|
+
theme = defaultTheme,
|
|
10208
10229
|
variant
|
|
10209
10230
|
} = props,
|
|
10210
10231
|
forwardedProps = _objectWithoutProperties(props, _excluded$A);
|
|
@@ -10500,7 +10521,7 @@ const DEFAULT_PROPS$r = {};
|
|
|
10500
10521
|
* @param ref Component ref.
|
|
10501
10522
|
* @return React element.
|
|
10502
10523
|
*/
|
|
10503
|
-
const ProgressTracker =
|
|
10524
|
+
const ProgressTracker = forwardRef((props, ref) => {
|
|
10504
10525
|
var _state$ids, _state$ids$tab;
|
|
10505
10526
|
const {
|
|
10506
10527
|
'aria-label': ariaLabel,
|
|
@@ -10578,7 +10599,7 @@ const DEFAULT_PROPS$q = {};
|
|
|
10578
10599
|
* @param ref Component ref.
|
|
10579
10600
|
* @return React element.
|
|
10580
10601
|
*/
|
|
10581
|
-
const ProgressTrackerStep =
|
|
10602
|
+
const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
10582
10603
|
const {
|
|
10583
10604
|
className,
|
|
10584
10605
|
disabled,
|
|
@@ -10690,7 +10711,7 @@ const DEFAULT_PROPS$p = {};
|
|
|
10690
10711
|
* @param ref Component ref.
|
|
10691
10712
|
* @return React element.
|
|
10692
10713
|
*/
|
|
10693
|
-
const ProgressTrackerStepPanel =
|
|
10714
|
+
const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
10694
10715
|
const {
|
|
10695
10716
|
children,
|
|
10696
10717
|
id,
|
|
@@ -10736,9 +10757,7 @@ const CLASSNAME$s = getRootClassName(COMPONENT_NAME$s);
|
|
|
10736
10757
|
/**
|
|
10737
10758
|
* Component default props.
|
|
10738
10759
|
*/
|
|
10739
|
-
const DEFAULT_PROPS$o = {
|
|
10740
|
-
theme: Theme.light
|
|
10741
|
-
};
|
|
10760
|
+
const DEFAULT_PROPS$o = {};
|
|
10742
10761
|
|
|
10743
10762
|
/**
|
|
10744
10763
|
* RadioButton component.
|
|
@@ -10747,7 +10766,8 @@ const DEFAULT_PROPS$o = {
|
|
|
10747
10766
|
* @param ref Component ref.
|
|
10748
10767
|
* @return React element.
|
|
10749
10768
|
*/
|
|
10750
|
-
const RadioButton =
|
|
10769
|
+
const RadioButton = forwardRef((props, ref) => {
|
|
10770
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10751
10771
|
const {
|
|
10752
10772
|
checked,
|
|
10753
10773
|
className,
|
|
@@ -10760,7 +10780,7 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10760
10780
|
label,
|
|
10761
10781
|
name,
|
|
10762
10782
|
onChange,
|
|
10763
|
-
theme,
|
|
10783
|
+
theme = defaultTheme,
|
|
10764
10784
|
value,
|
|
10765
10785
|
inputProps
|
|
10766
10786
|
} = props,
|
|
@@ -10841,7 +10861,7 @@ const CLASSNAME$r = getRootClassName(COMPONENT_NAME$r);
|
|
|
10841
10861
|
* @param ref Component ref.
|
|
10842
10862
|
* @return React element.
|
|
10843
10863
|
*/
|
|
10844
|
-
const RadioGroup =
|
|
10864
|
+
const RadioGroup = forwardRef((props, ref) => {
|
|
10845
10865
|
const {
|
|
10846
10866
|
children,
|
|
10847
10867
|
className
|
|
@@ -10875,8 +10895,9 @@ const stopPropagation = evt => evt.stopPropagation();
|
|
|
10875
10895
|
/**
|
|
10876
10896
|
* Select component.
|
|
10877
10897
|
*/
|
|
10878
|
-
const SelectField =
|
|
10879
|
-
|
|
10898
|
+
const SelectField = props => {
|
|
10899
|
+
const defaultTheme = useTheme();
|
|
10900
|
+
const {
|
|
10880
10901
|
anchorRef,
|
|
10881
10902
|
clearButtonProps,
|
|
10882
10903
|
handleKeyboardNav,
|
|
@@ -10893,12 +10914,12 @@ const SelectField = _ref => {
|
|
|
10893
10914
|
onInputClick,
|
|
10894
10915
|
placeholder,
|
|
10895
10916
|
selectedValueRender,
|
|
10896
|
-
theme,
|
|
10917
|
+
theme = defaultTheme,
|
|
10897
10918
|
value,
|
|
10898
10919
|
variant,
|
|
10899
10920
|
selectElementRef
|
|
10900
|
-
} =
|
|
10901
|
-
forwardedProps = _objectWithoutProperties(
|
|
10921
|
+
} = props,
|
|
10922
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$t);
|
|
10902
10923
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("div", {
|
|
10903
10924
|
className: `${CLASSNAME$q}__header`
|
|
10904
10925
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
@@ -10960,7 +10981,7 @@ const SelectField = _ref => {
|
|
|
10960
10981
|
* @param ref Component ref.
|
|
10961
10982
|
* @return React element.
|
|
10962
10983
|
*/
|
|
10963
|
-
const Select =
|
|
10984
|
+
const Select = forwardRef((props, ref) => {
|
|
10964
10985
|
const isEmpty$1 = isEmpty(props.value);
|
|
10965
10986
|
const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
|
|
10966
10987
|
return WithSelectContext(SelectField, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -11007,8 +11028,9 @@ const DEFAULT_PROPS$m = {
|
|
|
11007
11028
|
},
|
|
11008
11029
|
selectedValueRender: choice => choice
|
|
11009
11030
|
};
|
|
11010
|
-
const SelectMultipleField =
|
|
11011
|
-
|
|
11031
|
+
const SelectMultipleField = props => {
|
|
11032
|
+
const defaultTheme = useTheme();
|
|
11033
|
+
const {
|
|
11012
11034
|
anchorRef,
|
|
11013
11035
|
handleKeyboardNav,
|
|
11014
11036
|
hasError,
|
|
@@ -11024,12 +11046,12 @@ const SelectMultipleField = _ref => {
|
|
|
11024
11046
|
placeholder,
|
|
11025
11047
|
selectedChipRender,
|
|
11026
11048
|
selectedValueRender,
|
|
11027
|
-
theme,
|
|
11049
|
+
theme = defaultTheme,
|
|
11028
11050
|
value,
|
|
11029
11051
|
variant,
|
|
11030
11052
|
selectElementRef
|
|
11031
|
-
} =
|
|
11032
|
-
forwardedProps = _objectWithoutProperties(
|
|
11053
|
+
} = props,
|
|
11054
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$s);
|
|
11033
11055
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("div", {
|
|
11034
11056
|
className: `${CLASSNAME$p}__header`
|
|
11035
11057
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
@@ -11085,7 +11107,7 @@ const SelectMultipleField = _ref => {
|
|
|
11085
11107
|
* @param ref Component ref.
|
|
11086
11108
|
* @return React element.
|
|
11087
11109
|
*/
|
|
11088
|
-
const SelectMultiple =
|
|
11110
|
+
const SelectMultiple = forwardRef((props, ref) => {
|
|
11089
11111
|
return WithSelectContext(SelectMultipleField, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11090
11112
|
className: classNames(props.className, handleBasicClasses({
|
|
11091
11113
|
hasMultiple: !props.isEmpty,
|
|
@@ -11122,11 +11144,12 @@ const CLASSNAME$o = getRootClassName(COMPONENT_NAME$o);
|
|
|
11122
11144
|
* @param ref Component ref.
|
|
11123
11145
|
* @return React element.
|
|
11124
11146
|
*/
|
|
11125
|
-
const SideNavigation =
|
|
11147
|
+
const SideNavigation = forwardRef((props, ref) => {
|
|
11148
|
+
const defaultTheme = useTheme();
|
|
11126
11149
|
const {
|
|
11127
11150
|
children,
|
|
11128
11151
|
className,
|
|
11129
|
-
theme
|
|
11152
|
+
theme = defaultTheme
|
|
11130
11153
|
} = props,
|
|
11131
11154
|
forwardedProps = _objectWithoutProperties(props, _excluded$r);
|
|
11132
11155
|
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
@@ -11191,7 +11214,7 @@ const DEFAULT_PROPS$l = {
|
|
|
11191
11214
|
* @param ref Component ref.
|
|
11192
11215
|
* @return React element.
|
|
11193
11216
|
*/
|
|
11194
|
-
const SideNavigationItem =
|
|
11217
|
+
const SideNavigationItem = forwardRef((props, ref) => {
|
|
11195
11218
|
const {
|
|
11196
11219
|
children,
|
|
11197
11220
|
className,
|
|
@@ -11275,9 +11298,7 @@ const _excluded$o = ["className", "size", "color", "theme"];
|
|
|
11275
11298
|
* Defines the props of the component.
|
|
11276
11299
|
*/
|
|
11277
11300
|
|
|
11278
|
-
const DEFAULT_PROPS$k = {
|
|
11279
|
-
theme: Theme.light
|
|
11280
|
-
};
|
|
11301
|
+
const DEFAULT_PROPS$k = {};
|
|
11281
11302
|
|
|
11282
11303
|
/**
|
|
11283
11304
|
* Component display name.
|
|
@@ -11296,12 +11317,13 @@ const CLASSNAME$m = getRootClassName(COMPONENT_NAME$m);
|
|
|
11296
11317
|
* @param ref Component ref.
|
|
11297
11318
|
* @return React element.
|
|
11298
11319
|
*/
|
|
11299
|
-
const SkeletonCircle =
|
|
11320
|
+
const SkeletonCircle = forwardRef((props, ref) => {
|
|
11321
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11300
11322
|
const {
|
|
11301
11323
|
className,
|
|
11302
11324
|
size,
|
|
11303
11325
|
color,
|
|
11304
|
-
theme
|
|
11326
|
+
theme = defaultTheme
|
|
11305
11327
|
} = props,
|
|
11306
11328
|
forwardedProps = _objectWithoutProperties(props, _excluded$o);
|
|
11307
11329
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
@@ -11335,7 +11357,6 @@ const SkeletonRectangleVariant = {
|
|
|
11335
11357
|
*/
|
|
11336
11358
|
|
|
11337
11359
|
const DEFAULT_PROPS$j = {
|
|
11338
|
-
theme: Theme.light,
|
|
11339
11360
|
variant: SkeletonRectangleVariant.squared
|
|
11340
11361
|
};
|
|
11341
11362
|
|
|
@@ -11356,12 +11377,13 @@ const CLASSNAME$l = getRootClassName(COMPONENT_NAME$l);
|
|
|
11356
11377
|
* @param ref Component ref.
|
|
11357
11378
|
* @return React element.
|
|
11358
11379
|
*/
|
|
11359
|
-
const SkeletonRectangle =
|
|
11380
|
+
const SkeletonRectangle = forwardRef((props, ref) => {
|
|
11381
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11360
11382
|
const {
|
|
11361
11383
|
aspectRatio,
|
|
11362
11384
|
className,
|
|
11363
11385
|
height,
|
|
11364
|
-
theme,
|
|
11386
|
+
theme = defaultTheme,
|
|
11365
11387
|
variant,
|
|
11366
11388
|
width,
|
|
11367
11389
|
color
|
|
@@ -11393,9 +11415,7 @@ const _excluded$m = ["className", "theme", "typography", "width", "color"];
|
|
|
11393
11415
|
* Defines the props of the component.
|
|
11394
11416
|
*/
|
|
11395
11417
|
|
|
11396
|
-
const DEFAULT_PROPS$i = {
|
|
11397
|
-
theme: Theme.light
|
|
11398
|
-
};
|
|
11418
|
+
const DEFAULT_PROPS$i = {};
|
|
11399
11419
|
|
|
11400
11420
|
/**
|
|
11401
11421
|
* Component display name.
|
|
@@ -11414,10 +11434,11 @@ const CLASSNAME$k = getRootClassName(COMPONENT_NAME$k);
|
|
|
11414
11434
|
* @param ref Component ref.
|
|
11415
11435
|
* @return React element.
|
|
11416
11436
|
*/
|
|
11417
|
-
const SkeletonTypography =
|
|
11437
|
+
const SkeletonTypography = forwardRef((props, ref) => {
|
|
11438
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11418
11439
|
const {
|
|
11419
11440
|
className,
|
|
11420
|
-
theme,
|
|
11441
|
+
theme = defaultTheme,
|
|
11421
11442
|
typography,
|
|
11422
11443
|
width,
|
|
11423
11444
|
color
|
|
@@ -11498,8 +11519,7 @@ const CLASSNAME$j = getRootClassName(COMPONENT_NAME$j);
|
|
|
11498
11519
|
*/
|
|
11499
11520
|
const DEFAULT_PROPS$h = {
|
|
11500
11521
|
precision: 0,
|
|
11501
|
-
steps: 0
|
|
11502
|
-
theme: Theme.light
|
|
11522
|
+
steps: 0
|
|
11503
11523
|
};
|
|
11504
11524
|
|
|
11505
11525
|
/**
|
|
@@ -11533,7 +11553,8 @@ const computePercentFromValue = (value, min, max) => Number((value - min) / (max
|
|
|
11533
11553
|
* @param ref Component ref.
|
|
11534
11554
|
* @return React element.
|
|
11535
11555
|
*/
|
|
11536
|
-
const Slider =
|
|
11556
|
+
const Slider = forwardRef((props, ref) => {
|
|
11557
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11537
11558
|
const {
|
|
11538
11559
|
className,
|
|
11539
11560
|
disabled,
|
|
@@ -11549,7 +11570,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11549
11570
|
onMouseDown,
|
|
11550
11571
|
precision,
|
|
11551
11572
|
steps,
|
|
11552
|
-
theme,
|
|
11573
|
+
theme = defaultTheme,
|
|
11553
11574
|
value
|
|
11554
11575
|
} = props,
|
|
11555
11576
|
forwardedProps = _objectWithoutProperties(props, _excluded$l);
|
|
@@ -12085,7 +12106,7 @@ const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
|
|
|
12085
12106
|
* @param ref Component ref.
|
|
12086
12107
|
* @return React element.
|
|
12087
12108
|
*/
|
|
12088
|
-
const SlideshowItemGroup =
|
|
12109
|
+
const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
12089
12110
|
const {
|
|
12090
12111
|
className,
|
|
12091
12112
|
children,
|
|
@@ -12121,9 +12142,7 @@ const _excluded$j = ["activeIndex", "autoPlay", "children", "className", "fillHe
|
|
|
12121
12142
|
/**
|
|
12122
12143
|
* Component default props.
|
|
12123
12144
|
*/
|
|
12124
|
-
const DEFAULT_PROPS$g = _objectSpread2(
|
|
12125
|
-
theme: Theme.light
|
|
12126
|
-
});
|
|
12145
|
+
const DEFAULT_PROPS$g = _objectSpread2({}, DEFAULT_OPTIONS);
|
|
12127
12146
|
|
|
12128
12147
|
/**
|
|
12129
12148
|
* Slideshow component.
|
|
@@ -12132,7 +12151,8 @@ const DEFAULT_PROPS$g = _objectSpread2(_objectSpread2({}, DEFAULT_OPTIONS), {},
|
|
|
12132
12151
|
* @param ref Component ref.
|
|
12133
12152
|
* @return React element.
|
|
12134
12153
|
*/
|
|
12135
|
-
const Slideshow =
|
|
12154
|
+
const Slideshow = forwardRef((props, ref) => {
|
|
12155
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12136
12156
|
const {
|
|
12137
12157
|
activeIndex,
|
|
12138
12158
|
autoPlay,
|
|
@@ -12143,7 +12163,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12143
12163
|
interval,
|
|
12144
12164
|
onChange,
|
|
12145
12165
|
slideshowControlsProps,
|
|
12146
|
-
theme,
|
|
12166
|
+
theme = defaultTheme,
|
|
12147
12167
|
id,
|
|
12148
12168
|
slidesId,
|
|
12149
12169
|
slideGroupLabel
|
|
@@ -12253,7 +12273,7 @@ const CLASSNAME$h = getRootClassName(COMPONENT_NAME$h);
|
|
|
12253
12273
|
* @param ref Component ref.
|
|
12254
12274
|
* @return React element.
|
|
12255
12275
|
*/
|
|
12256
|
-
const SlideshowItem =
|
|
12276
|
+
const SlideshowItem = forwardRef((props, ref) => {
|
|
12257
12277
|
const {
|
|
12258
12278
|
className,
|
|
12259
12279
|
children
|
|
@@ -12347,8 +12367,7 @@ const CLASSNAME$g = getRootClassName(COMPONENT_NAME$g);
|
|
|
12347
12367
|
* Component default props.
|
|
12348
12368
|
*/
|
|
12349
12369
|
const DEFAULT_PROPS$f = {
|
|
12350
|
-
activeIndex: 0
|
|
12351
|
-
theme: Theme.light
|
|
12370
|
+
activeIndex: 0
|
|
12352
12371
|
};
|
|
12353
12372
|
|
|
12354
12373
|
/**
|
|
@@ -12358,7 +12377,8 @@ const DEFAULT_PROPS$f = {
|
|
|
12358
12377
|
* @param ref Component ref.
|
|
12359
12378
|
* @return React element.
|
|
12360
12379
|
*/
|
|
12361
|
-
const InternalSlideshowControls =
|
|
12380
|
+
const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
12381
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12362
12382
|
const {
|
|
12363
12383
|
activeIndex,
|
|
12364
12384
|
className,
|
|
@@ -12370,7 +12390,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12370
12390
|
previousButtonProps,
|
|
12371
12391
|
paginationProps,
|
|
12372
12392
|
slidesCount,
|
|
12373
|
-
theme,
|
|
12393
|
+
theme = defaultTheme,
|
|
12374
12394
|
isAutoPlaying = false,
|
|
12375
12395
|
playButtonProps,
|
|
12376
12396
|
paginationItemLabel,
|
|
@@ -12496,12 +12516,13 @@ const CLASSNAME$f = getRootClassName(COMPONENT_NAME$f);
|
|
|
12496
12516
|
* @param ref Component ref.
|
|
12497
12517
|
* @return React element.
|
|
12498
12518
|
*/
|
|
12499
|
-
const Slides =
|
|
12519
|
+
const Slides = forwardRef((props, ref) => {
|
|
12520
|
+
const defaultTheme = useTheme();
|
|
12500
12521
|
const {
|
|
12501
12522
|
activeIndex,
|
|
12502
12523
|
id,
|
|
12503
12524
|
className,
|
|
12504
|
-
theme,
|
|
12525
|
+
theme = defaultTheme,
|
|
12505
12526
|
fillHeight,
|
|
12506
12527
|
groupBy,
|
|
12507
12528
|
isAutoPlaying,
|
|
@@ -12578,8 +12599,7 @@ const CLASSNAME$e = getRootClassName(COMPONENT_NAME$e);
|
|
|
12578
12599
|
* Component default props.
|
|
12579
12600
|
*/
|
|
12580
12601
|
const DEFAULT_PROPS$e = {
|
|
12581
|
-
position: Alignment.left
|
|
12582
|
-
theme: Theme.light
|
|
12602
|
+
position: Alignment.left
|
|
12583
12603
|
};
|
|
12584
12604
|
|
|
12585
12605
|
/**
|
|
@@ -12589,7 +12609,8 @@ const DEFAULT_PROPS$e = {
|
|
|
12589
12609
|
* @param ref Component ref.
|
|
12590
12610
|
* @return React element.
|
|
12591
12611
|
*/
|
|
12592
|
-
const Switch =
|
|
12612
|
+
const Switch = forwardRef((props, ref) => {
|
|
12613
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12593
12614
|
const {
|
|
12594
12615
|
checked,
|
|
12595
12616
|
children,
|
|
@@ -12602,7 +12623,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12602
12623
|
name,
|
|
12603
12624
|
onChange,
|
|
12604
12625
|
position,
|
|
12605
|
-
theme,
|
|
12626
|
+
theme = defaultTheme,
|
|
12606
12627
|
value,
|
|
12607
12628
|
inputProps = {}
|
|
12608
12629
|
} = props,
|
|
@@ -12681,9 +12702,7 @@ const CLASSNAME$d = getRootClassName(COMPONENT_NAME$d);
|
|
|
12681
12702
|
/**
|
|
12682
12703
|
* Component default props.
|
|
12683
12704
|
*/
|
|
12684
|
-
const DEFAULT_PROPS$d = {
|
|
12685
|
-
theme: Theme.light
|
|
12686
|
-
};
|
|
12705
|
+
const DEFAULT_PROPS$d = {};
|
|
12687
12706
|
|
|
12688
12707
|
/**
|
|
12689
12708
|
* Table component.
|
|
@@ -12692,13 +12711,14 @@ const DEFAULT_PROPS$d = {
|
|
|
12692
12711
|
* @param ref Component ref.
|
|
12693
12712
|
* @return React element.
|
|
12694
12713
|
*/
|
|
12695
|
-
const Table =
|
|
12714
|
+
const Table = forwardRef((props, ref) => {
|
|
12715
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12696
12716
|
const {
|
|
12697
12717
|
children,
|
|
12698
12718
|
className,
|
|
12699
12719
|
hasBefore,
|
|
12700
12720
|
hasDividers,
|
|
12701
|
-
theme
|
|
12721
|
+
theme = defaultTheme
|
|
12702
12722
|
} = props,
|
|
12703
12723
|
forwardedProps = _objectWithoutProperties(props, _excluded$e);
|
|
12704
12724
|
return /*#__PURE__*/React__default.createElement("table", _extends({
|
|
@@ -12739,7 +12759,7 @@ const CLASSNAME$c = getRootClassName(COMPONENT_NAME$c, true);
|
|
|
12739
12759
|
* @param ref Component ref.
|
|
12740
12760
|
* @return React element.
|
|
12741
12761
|
*/
|
|
12742
|
-
const TableBody =
|
|
12762
|
+
const TableBody = forwardRef((props, ref) => {
|
|
12743
12763
|
const {
|
|
12744
12764
|
children,
|
|
12745
12765
|
className
|
|
@@ -12801,7 +12821,7 @@ const DEFAULT_PROPS$c = {
|
|
|
12801
12821
|
* @param ref Component ref.
|
|
12802
12822
|
* @return React element.
|
|
12803
12823
|
*/
|
|
12804
|
-
const TableCell =
|
|
12824
|
+
const TableCell = forwardRef((props, ref) => {
|
|
12805
12825
|
const {
|
|
12806
12826
|
children,
|
|
12807
12827
|
className,
|
|
@@ -12892,7 +12912,7 @@ const DEFAULT_PROPS$b = {};
|
|
|
12892
12912
|
* @param ref Component ref.
|
|
12893
12913
|
* @return React element.
|
|
12894
12914
|
*/
|
|
12895
|
-
const TableHeader =
|
|
12915
|
+
const TableHeader = forwardRef((props, ref) => {
|
|
12896
12916
|
const {
|
|
12897
12917
|
children,
|
|
12898
12918
|
className
|
|
@@ -12938,7 +12958,7 @@ const DEFAULT_PROPS$a = {};
|
|
|
12938
12958
|
* @param ref Component ref.
|
|
12939
12959
|
* @return React element.
|
|
12940
12960
|
*/
|
|
12941
|
-
const TableRow =
|
|
12961
|
+
const TableRow = forwardRef((props, ref) => {
|
|
12942
12962
|
const {
|
|
12943
12963
|
children,
|
|
12944
12964
|
className,
|
|
@@ -13039,8 +13059,7 @@ const CLASSNAME$8 = `${CSS_PREFIX}-tabs`;
|
|
|
13039
13059
|
*/
|
|
13040
13060
|
const DEFAULT_PROPS$8 = {
|
|
13041
13061
|
layout: TabListLayout.fixed,
|
|
13042
|
-
position: Alignment.left
|
|
13043
|
-
theme: Theme.light
|
|
13062
|
+
position: Alignment.left
|
|
13044
13063
|
};
|
|
13045
13064
|
|
|
13046
13065
|
/**
|
|
@@ -13052,14 +13071,15 @@ const DEFAULT_PROPS$8 = {
|
|
|
13052
13071
|
* @param ref Component ref.
|
|
13053
13072
|
* @return React element.
|
|
13054
13073
|
*/
|
|
13055
|
-
const TabList =
|
|
13074
|
+
const TabList = forwardRef((props, ref) => {
|
|
13075
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
13056
13076
|
const {
|
|
13057
13077
|
'aria-label': ariaLabel,
|
|
13058
13078
|
children,
|
|
13059
13079
|
className,
|
|
13060
13080
|
layout,
|
|
13061
13081
|
position,
|
|
13062
|
-
theme
|
|
13082
|
+
theme = defaultTheme
|
|
13063
13083
|
} = props,
|
|
13064
13084
|
forwardedProps = _objectWithoutProperties(props, _excluded$8);
|
|
13065
13085
|
const tabListRef = React__default.useRef(null);
|
|
@@ -13118,7 +13138,7 @@ const DEFAULT_PROPS$7 = {};
|
|
|
13118
13138
|
* @param ref Component ref.
|
|
13119
13139
|
* @return React element.
|
|
13120
13140
|
*/
|
|
13121
|
-
const Tab =
|
|
13141
|
+
const Tab = forwardRef((props, ref) => {
|
|
13122
13142
|
const {
|
|
13123
13143
|
className,
|
|
13124
13144
|
disabled,
|
|
@@ -13214,7 +13234,7 @@ const DEFAULT_PROPS$6 = {};
|
|
|
13214
13234
|
* @param ref Component ref.
|
|
13215
13235
|
* @return React element.
|
|
13216
13236
|
*/
|
|
13217
|
-
const TabPanel =
|
|
13237
|
+
const TabPanel = forwardRef((props, ref) => {
|
|
13218
13238
|
const {
|
|
13219
13239
|
children,
|
|
13220
13240
|
id,
|
|
@@ -13267,7 +13287,6 @@ const DEFAULT_MIN_ROWS = 2;
|
|
|
13267
13287
|
* Component default props.
|
|
13268
13288
|
*/
|
|
13269
13289
|
const DEFAULT_PROPS$5 = {
|
|
13270
|
-
theme: Theme.light,
|
|
13271
13290
|
type: 'text'
|
|
13272
13291
|
};
|
|
13273
13292
|
|
|
@@ -13379,7 +13398,8 @@ const renderInputNative = props => {
|
|
|
13379
13398
|
* @param ref Component ref.
|
|
13380
13399
|
* @return React element.
|
|
13381
13400
|
*/
|
|
13382
|
-
const TextField =
|
|
13401
|
+
const TextField = forwardRef((props, ref) => {
|
|
13402
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
13383
13403
|
const {
|
|
13384
13404
|
chips,
|
|
13385
13405
|
className,
|
|
@@ -13407,7 +13427,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13407
13427
|
onFocus,
|
|
13408
13428
|
placeholder,
|
|
13409
13429
|
textFieldRef,
|
|
13410
|
-
theme,
|
|
13430
|
+
theme = defaultTheme,
|
|
13411
13431
|
type,
|
|
13412
13432
|
value,
|
|
13413
13433
|
afterElement
|
|
@@ -13732,8 +13752,7 @@ const CLASSNAME$4 = getRootClassName(COMPONENT_NAME$4);
|
|
|
13732
13752
|
*/
|
|
13733
13753
|
const DEFAULT_PROPS$4 = {
|
|
13734
13754
|
fallback: mdiImageBroken,
|
|
13735
|
-
loading: 'lazy'
|
|
13736
|
-
theme: Theme.light
|
|
13755
|
+
loading: 'lazy'
|
|
13737
13756
|
};
|
|
13738
13757
|
|
|
13739
13758
|
/**
|
|
@@ -13743,8 +13762,9 @@ const DEFAULT_PROPS$4 = {
|
|
|
13743
13762
|
* @param ref Component ref.
|
|
13744
13763
|
* @return React element.
|
|
13745
13764
|
*/
|
|
13746
|
-
const Thumbnail =
|
|
13765
|
+
const Thumbnail = forwardRef((props, ref) => {
|
|
13747
13766
|
var _loadingPlaceholderIm;
|
|
13767
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
13748
13768
|
const {
|
|
13749
13769
|
align,
|
|
13750
13770
|
alt,
|
|
@@ -13765,7 +13785,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13765
13785
|
loading,
|
|
13766
13786
|
loadingPlaceholderImageRef,
|
|
13767
13787
|
size,
|
|
13768
|
-
theme,
|
|
13788
|
+
theme = defaultTheme,
|
|
13769
13789
|
variant,
|
|
13770
13790
|
linkProps,
|
|
13771
13791
|
linkAs
|
|
@@ -13927,7 +13947,7 @@ const DEFAULT_PROPS$3 = {};
|
|
|
13927
13947
|
* @param ref Component ref.
|
|
13928
13948
|
* @return React element.
|
|
13929
13949
|
*/
|
|
13930
|
-
const Toolbar =
|
|
13950
|
+
const Toolbar = forwardRef((props, ref) => {
|
|
13931
13951
|
const {
|
|
13932
13952
|
after,
|
|
13933
13953
|
before,
|
|
@@ -14184,7 +14204,7 @@ const ARROW_SIZE = 8;
|
|
|
14184
14204
|
* @param ref Component ref.
|
|
14185
14205
|
* @return React element.
|
|
14186
14206
|
*/
|
|
14187
|
-
const Tooltip =
|
|
14207
|
+
const Tooltip = forwardRef((props, ref) => {
|
|
14188
14208
|
var _attributes$popper$da, _attributes$popper;
|
|
14189
14209
|
const {
|
|
14190
14210
|
label,
|
|
@@ -14305,7 +14325,6 @@ const CLASSNAME$1 = getRootClassName(COMPONENT_NAME$1);
|
|
|
14305
14325
|
const DEFAULT_PROPS$1 = {
|
|
14306
14326
|
aspectRatio: AspectRatio.horizontal,
|
|
14307
14327
|
size: Size.xl,
|
|
14308
|
-
theme: Theme.light,
|
|
14309
14328
|
variant: UploaderVariant.square
|
|
14310
14329
|
};
|
|
14311
14330
|
|
|
@@ -14316,14 +14335,15 @@ const DEFAULT_PROPS$1 = {
|
|
|
14316
14335
|
* @param ref Component ref.
|
|
14317
14336
|
* @return React element.
|
|
14318
14337
|
*/
|
|
14319
|
-
const Uploader =
|
|
14338
|
+
const Uploader = forwardRef((props, ref) => {
|
|
14339
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
14320
14340
|
const {
|
|
14321
14341
|
aspectRatio,
|
|
14322
14342
|
className,
|
|
14323
14343
|
label,
|
|
14324
14344
|
icon,
|
|
14325
14345
|
size,
|
|
14326
|
-
theme,
|
|
14346
|
+
theme = defaultTheme,
|
|
14327
14347
|
variant,
|
|
14328
14348
|
fileInputProps
|
|
14329
14349
|
} = props,
|
|
@@ -14413,8 +14433,7 @@ const CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
|
14413
14433
|
*/
|
|
14414
14434
|
const DEFAULT_PROPS = {
|
|
14415
14435
|
orientation: Orientation.horizontal,
|
|
14416
|
-
size: Size.m
|
|
14417
|
-
theme: Theme.light
|
|
14436
|
+
size: Size.m
|
|
14418
14437
|
};
|
|
14419
14438
|
|
|
14420
14439
|
/**
|
|
@@ -14424,7 +14443,8 @@ const DEFAULT_PROPS = {
|
|
|
14424
14443
|
* @param ref Component ref.
|
|
14425
14444
|
* @return React element.
|
|
14426
14445
|
*/
|
|
14427
|
-
const UserBlock =
|
|
14446
|
+
const UserBlock = forwardRef((props, ref) => {
|
|
14447
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
14428
14448
|
const {
|
|
14429
14449
|
avatarProps,
|
|
14430
14450
|
className,
|
|
@@ -14440,7 +14460,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
14440
14460
|
orientation,
|
|
14441
14461
|
simpleAction,
|
|
14442
14462
|
size,
|
|
14443
|
-
theme
|
|
14463
|
+
theme = defaultTheme
|
|
14444
14464
|
} = props,
|
|
14445
14465
|
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
14446
14466
|
let componentSize = size;
|
|
@@ -14513,5 +14533,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
14513
14533
|
UserBlock.className = CLASSNAME;
|
|
14514
14534
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
14515
14535
|
|
|
14516
|
-
export { AlertDialog, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, Checkbox, Chip, ChipGroup, ColorPalette, ColorVariant, CommentBlock, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, Emphasis, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Kind, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Orientation, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, Select, SelectMultiple, SelectMultipleField, SelectVariant, SideNavigation, SideNavigationItem, Size, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, Theme, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, Uploader, UploaderVariant, UserBlock, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel };
|
|
14536
|
+
export { AlertDialog, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, Checkbox, Chip, ChipGroup, ColorPalette, ColorVariant, CommentBlock, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, Emphasis, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Kind, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Orientation, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, Select, SelectMultiple, SelectMultipleField, SelectVariant, SideNavigation, SideNavigationItem, Size, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, Theme, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, Uploader, UploaderVariant, UserBlock, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
14517
14537
|
//# sourceMappingURL=index.js.map
|