@lumx/react 3.10.0 → 3.10.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/index.d.ts +1 -1
- package/index.d.ts +13 -5
- package/index.js +217 -202
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/autocomplete/Autocomplete.test.tsx +9 -2
- package/src/components/autocomplete/Autocomplete.tsx +3 -1
- package/src/components/autocomplete/AutocompleteMultiple.test.tsx +9 -2
- package/src/components/autocomplete/AutocompleteMultiple.tsx +3 -1
- package/src/components/avatar/Avatar.test.tsx +14 -4
- package/src/components/avatar/Avatar.tsx +3 -2
- package/src/components/button/Button.test.tsx +9 -3
- package/src/components/button/Button.tsx +3 -2
- package/src/components/button/IconButton.test.tsx +9 -3
- package/src/components/button/IconButton.tsx +13 -2
- package/src/components/checkbox/Checkbox.test.tsx +9 -3
- package/src/components/checkbox/Checkbox.tsx +4 -4
- package/src/components/chip/Chip.test.tsx +14 -4
- package/src/components/chip/Chip.tsx +3 -2
- package/src/components/comment-block/CommentBlock.test.tsx +9 -3
- package/src/components/comment-block/CommentBlock.tsx +3 -2
- package/src/components/date-picker/DatePickerField.test.tsx +9 -3
- package/src/components/dialog/Dialog.test.tsx +17 -4
- package/src/components/dialog/Dialog.tsx +61 -58
- package/src/components/divider/Divider.test.tsx +9 -3
- package/src/components/divider/Divider.tsx +4 -4
- package/src/components/drag-handle/DragHandle.test.tsx +38 -0
- package/src/components/drag-handle/DragHandle.tsx +3 -1
- package/src/components/expansion-panel/ExpansionPanel.test.tsx +12 -3
- package/src/components/expansion-panel/ExpansionPanel.tsx +4 -4
- package/src/components/flag/Flag.test.tsx +14 -4
- package/src/components/flag/Flag.tsx +4 -4
- package/src/components/icon/Icon.test.tsx +13 -4
- package/src/components/icon/Icon.tsx +13 -1
- package/src/components/image-block/ImageBlock.test.tsx +12 -4
- package/src/components/image-block/ImageBlock.tsx +3 -2
- package/src/components/input-helper/InputHelper.test.tsx +14 -4
- package/src/components/input-helper/InputHelper.tsx +3 -2
- package/src/components/input-label/InputLabel.test.tsx +14 -4
- package/src/components/input-label/InputLabel.tsx +4 -4
- package/src/components/lightbox/Lightbox.test.tsx +17 -6
- package/src/components/lightbox/Lightbox.tsx +8 -5
- package/src/components/link-preview/LinkPreview.test.tsx +9 -3
- package/src/components/link-preview/LinkPreview.tsx +3 -2
- package/src/components/mosaic/Mosaic.test.tsx +9 -3
- package/src/components/mosaic/Mosaic.tsx +4 -4
- package/src/components/navigation/Navigation.test.tsx +18 -9
- package/src/components/navigation/Navigation.tsx +13 -5
- package/src/components/navigation/NavigationItem.tsx +3 -3
- package/src/components/navigation/NavigationSection.tsx +4 -4
- package/src/components/notification/Notification.tsx +3 -2
- package/src/components/popover/Popover.test.tsx +18 -4
- package/src/components/popover/Popover.tsx +2 -1
- package/src/components/post-block/PostBlock.test.tsx +9 -3
- package/src/components/post-block/PostBlock.tsx +3 -2
- package/src/components/progress/Progress.tsx +3 -2
- package/src/components/progress/ProgressCircular.test.tsx +9 -16
- package/src/components/progress/ProgressCircular.tsx +3 -2
- package/src/components/progress/ProgressLinear.test.tsx +13 -18
- package/src/components/progress/ProgressLinear.tsx +4 -4
- package/src/components/radio-button/RadioButton.test.tsx +9 -3
- package/src/components/radio-button/RadioButton.tsx +4 -4
- package/src/components/select/Select.test.tsx +9 -3
- package/src/components/select/Select.tsx +27 -23
- package/src/components/select/SelectMultiple.test.tsx +9 -3
- package/src/components/select/SelectMultiple.tsx +109 -103
- package/src/components/select/WithSelectContext.tsx +8 -6
- package/src/components/side-navigation/SideNavigation.tsx +3 -1
- package/src/components/skeleton/SkeletonCircle.test.tsx +9 -3
- package/src/components/skeleton/SkeletonCircle.tsx +4 -4
- package/src/components/skeleton/SkeletonRectangle.test.tsx +9 -3
- package/src/components/skeleton/SkeletonRectangle.tsx +3 -2
- package/src/components/skeleton/SkeletonTypography.test.tsx +9 -3
- package/src/components/skeleton/SkeletonTypography.tsx +4 -4
- package/src/components/slider/Slider.test.tsx +9 -3
- package/src/components/slider/Slider.tsx +3 -2
- package/src/components/slideshow/Slides.tsx +3 -1
- package/src/components/slideshow/Slideshow.test.tsx +9 -3
- package/src/components/slideshow/Slideshow.tsx +3 -2
- package/src/components/slideshow/SlideshowControls.tsx +3 -2
- package/src/components/switch/Switch.test.tsx +9 -3
- package/src/components/switch/Switch.tsx +3 -2
- package/src/components/table/Table.test.tsx +9 -3
- package/src/components/table/Table.tsx +4 -4
- package/src/components/tabs/TabList.test.tsx +9 -3
- package/src/components/tabs/TabList.tsx +11 -2
- package/src/components/text-field/TextField.test.tsx +9 -3
- package/src/components/text-field/TextField.tsx +3 -2
- package/src/components/thumbnail/Thumbnail.test.tsx +9 -3
- package/src/components/thumbnail/Thumbnail.tsx +3 -2
- package/src/components/uploader/Uploader.test.tsx +9 -3
- package/src/components/uploader/Uploader.tsx +13 -2
- package/src/components/user-block/UserBlock.test.tsx +9 -3
- package/src/components/user-block/UserBlock.tsx +3 -2
- package/src/index.ts +1 -0
- package/src/testing/utils/ThemeSentinel.tsx +11 -0
- package/src/testing/utils/commonTestsSuiteRTL.tsx +190 -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/index.js
CHANGED
|
@@ -673,7 +673,7 @@ const CLASSNAME$1k = getRootClassName(COMPONENT_NAME$1n);
|
|
|
673
673
|
/**
|
|
674
674
|
* Component default props.
|
|
675
675
|
*/
|
|
676
|
-
const DEFAULT_PROPS$
|
|
676
|
+
const DEFAULT_PROPS$14 = {
|
|
677
677
|
size: Size.tiny,
|
|
678
678
|
kind: Kind.info
|
|
679
679
|
};
|
|
@@ -770,7 +770,7 @@ const AlertDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
770
770
|
});
|
|
771
771
|
AlertDialog.displayName = COMPONENT_NAME$1n;
|
|
772
772
|
AlertDialog.className = CLASSNAME$1k;
|
|
773
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
773
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$14;
|
|
774
774
|
|
|
775
775
|
/**
|
|
776
776
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -823,6 +823,16 @@ const useMergeRefs = function () {
|
|
|
823
823
|
refs);
|
|
824
824
|
};
|
|
825
825
|
|
|
826
|
+
const ThemeContext = /*#__PURE__*/React__default.createContext(undefined);
|
|
827
|
+
|
|
828
|
+
/** Provide a theme context to all children. */
|
|
829
|
+
const ThemeProvider = ThemeContext.Provider;
|
|
830
|
+
|
|
831
|
+
/** Get the theme in the current context. */
|
|
832
|
+
function useTheme() {
|
|
833
|
+
return React__default.useContext(ThemeContext);
|
|
834
|
+
}
|
|
835
|
+
|
|
826
836
|
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
837
|
|
|
828
838
|
/**
|
|
@@ -842,7 +852,7 @@ const CLASSNAME$1j = getRootClassName(COMPONENT_NAME$1m);
|
|
|
842
852
|
/**
|
|
843
853
|
* Component default props.
|
|
844
854
|
*/
|
|
845
|
-
const DEFAULT_PROPS$
|
|
855
|
+
const DEFAULT_PROPS$13 = {
|
|
846
856
|
anchorToInput: false,
|
|
847
857
|
closeOnClick: false,
|
|
848
858
|
closeOnClickAway: true,
|
|
@@ -858,6 +868,7 @@ const DEFAULT_PROPS$12 = {
|
|
|
858
868
|
* @return React element.
|
|
859
869
|
*/
|
|
860
870
|
const Autocomplete = /*#__PURE__*/forwardRef((props, ref) => {
|
|
871
|
+
const defaultTheme = useTheme();
|
|
861
872
|
const {
|
|
862
873
|
anchorToInput,
|
|
863
874
|
children,
|
|
@@ -889,7 +900,7 @@ const Autocomplete = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
889
900
|
placeholder,
|
|
890
901
|
placement,
|
|
891
902
|
shouldFocusOnClose,
|
|
892
|
-
theme,
|
|
903
|
+
theme = defaultTheme,
|
|
893
904
|
value,
|
|
894
905
|
textFieldProps = {},
|
|
895
906
|
focusAnchorOnClose
|
|
@@ -942,7 +953,7 @@ const Autocomplete = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
942
953
|
});
|
|
943
954
|
Autocomplete.displayName = COMPONENT_NAME$1m;
|
|
944
955
|
Autocomplete.className = CLASSNAME$1j;
|
|
945
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
956
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$13;
|
|
946
957
|
|
|
947
958
|
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
959
|
|
|
@@ -963,7 +974,7 @@ const CLASSNAME$1i = getRootClassName(COMPONENT_NAME$1l);
|
|
|
963
974
|
/**
|
|
964
975
|
* Component default props.
|
|
965
976
|
*/
|
|
966
|
-
const DEFAULT_PROPS$
|
|
977
|
+
const DEFAULT_PROPS$12 = {
|
|
967
978
|
closeOnClickAway: true,
|
|
968
979
|
closeOnEscape: true,
|
|
969
980
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -991,6 +1002,7 @@ const DEFAULT_PROPS$11 = {
|
|
|
991
1002
|
* @return React element.
|
|
992
1003
|
*/
|
|
993
1004
|
const AutocompleteMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
1005
|
+
const defaultTheme = useTheme();
|
|
994
1006
|
const {
|
|
995
1007
|
anchorToInput,
|
|
996
1008
|
children,
|
|
@@ -1024,7 +1036,7 @@ const AutocompleteMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1024
1036
|
placement,
|
|
1025
1037
|
selectedChipRender,
|
|
1026
1038
|
shouldFocusOnClose,
|
|
1027
|
-
theme,
|
|
1039
|
+
theme = defaultTheme,
|
|
1028
1040
|
type,
|
|
1029
1041
|
value,
|
|
1030
1042
|
values
|
|
@@ -1070,7 +1082,7 @@ const AutocompleteMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1070
1082
|
});
|
|
1071
1083
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1l;
|
|
1072
1084
|
AutocompleteMultiple.className = CLASSNAME$1i;
|
|
1073
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
1085
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$12;
|
|
1074
1086
|
|
|
1075
1087
|
const _excluded$1p = ["actions", "alt", "badge", "className", "image", "linkProps", "linkAs", "onClick", "onKeyPress", "size", "theme", "thumbnailProps"];
|
|
1076
1088
|
|
|
@@ -1095,9 +1107,8 @@ const CLASSNAME$1h = getRootClassName(COMPONENT_NAME$1k);
|
|
|
1095
1107
|
/**
|
|
1096
1108
|
* Component default props.
|
|
1097
1109
|
*/
|
|
1098
|
-
const DEFAULT_PROPS$
|
|
1099
|
-
size: Size.m
|
|
1100
|
-
theme: Theme.light
|
|
1110
|
+
const DEFAULT_PROPS$11 = {
|
|
1111
|
+
size: Size.m
|
|
1101
1112
|
};
|
|
1102
1113
|
|
|
1103
1114
|
/**
|
|
@@ -1108,6 +1119,7 @@ const DEFAULT_PROPS$10 = {
|
|
|
1108
1119
|
* @return React element.
|
|
1109
1120
|
*/
|
|
1110
1121
|
const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
1122
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
1111
1123
|
const {
|
|
1112
1124
|
actions,
|
|
1113
1125
|
alt,
|
|
@@ -1119,7 +1131,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1119
1131
|
onClick,
|
|
1120
1132
|
onKeyPress,
|
|
1121
1133
|
size,
|
|
1122
|
-
theme,
|
|
1134
|
+
theme = defaultTheme,
|
|
1123
1135
|
thumbnailProps
|
|
1124
1136
|
} = props,
|
|
1125
1137
|
forwardedProps = _objectWithoutProperties(props, _excluded$1p);
|
|
@@ -1151,7 +1163,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1151
1163
|
});
|
|
1152
1164
|
Avatar.displayName = COMPONENT_NAME$1k;
|
|
1153
1165
|
Avatar.className = CLASSNAME$1h;
|
|
1154
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
1166
|
+
Avatar.defaultProps = DEFAULT_PROPS$11;
|
|
1155
1167
|
|
|
1156
1168
|
const _excluded$1o = ["children", "className", "color"];
|
|
1157
1169
|
|
|
@@ -1172,7 +1184,7 @@ const CLASSNAME$1g = getRootClassName(COMPONENT_NAME$1j);
|
|
|
1172
1184
|
/**
|
|
1173
1185
|
* Component default props.
|
|
1174
1186
|
*/
|
|
1175
|
-
const DEFAULT_PROPS
|
|
1187
|
+
const DEFAULT_PROPS$10 = {
|
|
1176
1188
|
color: ColorPalette.primary
|
|
1177
1189
|
};
|
|
1178
1190
|
|
|
@@ -1201,7 +1213,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1201
1213
|
});
|
|
1202
1214
|
Badge.displayName = COMPONENT_NAME$1j;
|
|
1203
1215
|
Badge.className = CLASSNAME$1g;
|
|
1204
|
-
Badge.defaultProps = DEFAULT_PROPS
|
|
1216
|
+
Badge.defaultProps = DEFAULT_PROPS$10;
|
|
1205
1217
|
|
|
1206
1218
|
const INITIAL_INDEX$1 = -1;
|
|
1207
1219
|
|
|
@@ -1410,7 +1422,7 @@ const CLASSNAME$1f = getRootClassName(COMPONENT_NAME$1i);
|
|
|
1410
1422
|
/**
|
|
1411
1423
|
* Component default props.
|
|
1412
1424
|
*/
|
|
1413
|
-
const DEFAULT_PROPS
|
|
1425
|
+
const DEFAULT_PROPS$$ = {
|
|
1414
1426
|
size: Size.regular
|
|
1415
1427
|
};
|
|
1416
1428
|
|
|
@@ -1498,7 +1510,7 @@ const ListItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1498
1510
|
});
|
|
1499
1511
|
ListItem.displayName = COMPONENT_NAME$1i;
|
|
1500
1512
|
ListItem.className = CLASSNAME$1f;
|
|
1501
|
-
ListItem.defaultProps = DEFAULT_PROPS
|
|
1513
|
+
ListItem.defaultProps = DEFAULT_PROPS$$;
|
|
1502
1514
|
|
|
1503
1515
|
/** Get types of the values of a record. */
|
|
1504
1516
|
|
|
@@ -2017,7 +2029,7 @@ const CLASSNAME$1e = getRootClassName(COMPONENT_NAME$1h);
|
|
|
2017
2029
|
/**
|
|
2018
2030
|
* Component default props.
|
|
2019
2031
|
*/
|
|
2020
|
-
const DEFAULT_PROPS$
|
|
2032
|
+
const DEFAULT_PROPS$_ = {
|
|
2021
2033
|
tabIndex: -1
|
|
2022
2034
|
};
|
|
2023
2035
|
|
|
@@ -2060,7 +2072,7 @@ const InternalList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2060
2072
|
});
|
|
2061
2073
|
InternalList.displayName = COMPONENT_NAME$1h;
|
|
2062
2074
|
InternalList.className = CLASSNAME$1e;
|
|
2063
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
2075
|
+
InternalList.defaultProps = DEFAULT_PROPS$_;
|
|
2064
2076
|
const List = Object.assign(InternalList, {
|
|
2065
2077
|
useKeyboardListNavigation
|
|
2066
2078
|
});
|
|
@@ -4656,7 +4668,7 @@ const CLASSNAME$1d = getRootClassName(COMPONENT_NAME$1g);
|
|
|
4656
4668
|
/**
|
|
4657
4669
|
* Component default props.
|
|
4658
4670
|
*/
|
|
4659
|
-
const DEFAULT_PROPS$
|
|
4671
|
+
const DEFAULT_PROPS$Z = {
|
|
4660
4672
|
elevation: 3,
|
|
4661
4673
|
placement: Placement.AUTO,
|
|
4662
4674
|
focusAnchorOnClose: true,
|
|
@@ -4753,7 +4765,9 @@ const _InnerPopover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4753
4765
|
"aria-hidden": true
|
|
4754
4766
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
4755
4767
|
d: "M8 3.49C7.62 2.82 6.66 2.82 6.27 3.48L.04 14 14.04 14 8 3.49Z"
|
|
4756
|
-
}))),
|
|
4768
|
+
}))), /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
4769
|
+
value: undefined
|
|
4770
|
+
}, children))), usePortal) : null;
|
|
4757
4771
|
});
|
|
4758
4772
|
_InnerPopover.displayName = COMPONENT_NAME$1g;
|
|
4759
4773
|
|
|
@@ -4769,7 +4783,7 @@ const Popover = skipRender(
|
|
|
4769
4783
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
4770
4784
|
Popover.displayName = COMPONENT_NAME$1g;
|
|
4771
4785
|
Popover.className = CLASSNAME$1d;
|
|
4772
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
4786
|
+
Popover.defaultProps = DEFAULT_PROPS$Z;
|
|
4773
4787
|
|
|
4774
4788
|
// The error margin in px we want to have for triggering infinite scroll
|
|
4775
4789
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -4833,7 +4847,7 @@ const CLASSNAME$1c = getRootClassName(COMPONENT_NAME$1f);
|
|
|
4833
4847
|
/**
|
|
4834
4848
|
* Component default props.
|
|
4835
4849
|
*/
|
|
4836
|
-
const DEFAULT_PROPS$
|
|
4850
|
+
const DEFAULT_PROPS$Y = {
|
|
4837
4851
|
closeOnClick: true,
|
|
4838
4852
|
closeOnClickAway: true,
|
|
4839
4853
|
closeOnEscape: true,
|
|
@@ -4913,7 +4927,7 @@ const Dropdown = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4913
4927
|
});
|
|
4914
4928
|
Dropdown.displayName = COMPONENT_NAME$1f;
|
|
4915
4929
|
Dropdown.className = CLASSNAME$1c;
|
|
4916
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
4930
|
+
Dropdown.defaultProps = DEFAULT_PROPS$Y;
|
|
4917
4931
|
|
|
4918
4932
|
const INPUT_HELPER_CONFIGURATION = {
|
|
4919
4933
|
error: {
|
|
@@ -4946,9 +4960,8 @@ const CLASSNAME$1b = getRootClassName(COMPONENT_NAME$1e);
|
|
|
4946
4960
|
/**
|
|
4947
4961
|
* Component default props.
|
|
4948
4962
|
*/
|
|
4949
|
-
const DEFAULT_PROPS$
|
|
4950
|
-
kind: Kind.info
|
|
4951
|
-
theme: Theme.light
|
|
4963
|
+
const DEFAULT_PROPS$X = {
|
|
4964
|
+
kind: Kind.info
|
|
4952
4965
|
};
|
|
4953
4966
|
|
|
4954
4967
|
/**
|
|
@@ -4959,11 +4972,12 @@ const DEFAULT_PROPS$W = {
|
|
|
4959
4972
|
* @return React element.
|
|
4960
4973
|
*/
|
|
4961
4974
|
const InputHelper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4975
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
4962
4976
|
const {
|
|
4963
4977
|
children,
|
|
4964
4978
|
className,
|
|
4965
4979
|
kind,
|
|
4966
|
-
theme
|
|
4980
|
+
theme = defaultTheme
|
|
4967
4981
|
} = props,
|
|
4968
4982
|
forwardedProps = _objectWithoutProperties(props, _excluded$1i);
|
|
4969
4983
|
const {
|
|
@@ -4981,7 +4995,7 @@ const InputHelper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4981
4995
|
});
|
|
4982
4996
|
InputHelper.displayName = COMPONENT_NAME$1e;
|
|
4983
4997
|
InputHelper.className = CLASSNAME$1b;
|
|
4984
|
-
InputHelper.defaultProps = DEFAULT_PROPS$
|
|
4998
|
+
InputHelper.defaultProps = DEFAULT_PROPS$X;
|
|
4985
4999
|
|
|
4986
5000
|
/**
|
|
4987
5001
|
* Listen on element focus to store the focus status.
|
|
@@ -5024,12 +5038,12 @@ const COMPONENT_NAME$1d = 'Select';
|
|
|
5024
5038
|
const CLASSNAME$1a = getRootClassName(COMPONENT_NAME$1d);
|
|
5025
5039
|
|
|
5026
5040
|
/** The default value of props. */
|
|
5027
|
-
const DEFAULT_PROPS$
|
|
5028
|
-
theme: Theme.light,
|
|
5041
|
+
const DEFAULT_PROPS$W = {
|
|
5029
5042
|
variant: SelectVariant.input
|
|
5030
5043
|
};
|
|
5031
|
-
const WithSelectContext = (SelectElement,
|
|
5032
|
-
|
|
5044
|
+
const WithSelectContext = (SelectElement, props, ref) => {
|
|
5045
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5046
|
+
const {
|
|
5033
5047
|
children,
|
|
5034
5048
|
className,
|
|
5035
5049
|
focusElement,
|
|
@@ -5051,11 +5065,11 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
5051
5065
|
onInfiniteScroll,
|
|
5052
5066
|
onInputClick,
|
|
5053
5067
|
placeholder,
|
|
5054
|
-
theme =
|
|
5068
|
+
theme = defaultTheme,
|
|
5055
5069
|
value,
|
|
5056
|
-
variant = DEFAULT_PROPS$
|
|
5057
|
-
} =
|
|
5058
|
-
forwardedProps = _objectWithoutProperties(
|
|
5070
|
+
variant = DEFAULT_PROPS$W.variant
|
|
5071
|
+
} = props,
|
|
5072
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1h);
|
|
5059
5073
|
const generatedSelectId = useId();
|
|
5060
5074
|
const selectId = id || generatedSelectId;
|
|
5061
5075
|
const anchorRef = useRef(null);
|
|
@@ -5159,7 +5173,7 @@ const BadgeWrapper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5159
5173
|
});
|
|
5160
5174
|
BadgeWrapper.displayName = 'BadgeWrapper';
|
|
5161
5175
|
BadgeWrapper.className = CLASSNAME$19;
|
|
5162
|
-
BadgeWrapper.defaultProps = DEFAULT_PROPS$
|
|
5176
|
+
BadgeWrapper.defaultProps = DEFAULT_PROPS$W;
|
|
5163
5177
|
|
|
5164
5178
|
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
5179
|
|
|
@@ -5314,10 +5328,9 @@ const CLASSNAME$18 = getRootClassName(COMPONENT_NAME$1a);
|
|
|
5314
5328
|
/**
|
|
5315
5329
|
* Component default props.
|
|
5316
5330
|
*/
|
|
5317
|
-
const DEFAULT_PROPS$
|
|
5331
|
+
const DEFAULT_PROPS$V = {
|
|
5318
5332
|
emphasis: Emphasis.high,
|
|
5319
|
-
size: Size.m
|
|
5320
|
-
theme: Theme.light
|
|
5333
|
+
size: Size.m
|
|
5321
5334
|
};
|
|
5322
5335
|
|
|
5323
5336
|
/**
|
|
@@ -5328,6 +5341,7 @@ const DEFAULT_PROPS$U = {
|
|
|
5328
5341
|
* @return React element.
|
|
5329
5342
|
*/
|
|
5330
5343
|
const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5344
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5331
5345
|
const {
|
|
5332
5346
|
children,
|
|
5333
5347
|
className,
|
|
@@ -5335,7 +5349,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5335
5349
|
leftIcon,
|
|
5336
5350
|
rightIcon,
|
|
5337
5351
|
size,
|
|
5338
|
-
theme
|
|
5352
|
+
theme = defaultTheme
|
|
5339
5353
|
} = props,
|
|
5340
5354
|
forwardedProps = _objectWithoutProperties(props, _excluded$1e);
|
|
5341
5355
|
const buttonClassName = classNames(className, getBasicClass({
|
|
@@ -5364,7 +5378,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5364
5378
|
});
|
|
5365
5379
|
Button.displayName = COMPONENT_NAME$1a;
|
|
5366
5380
|
Button.className = CLASSNAME$18;
|
|
5367
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
5381
|
+
Button.defaultProps = DEFAULT_PROPS$V;
|
|
5368
5382
|
|
|
5369
5383
|
const _excluded$1d = ["emphasis", "image", "icon", "label", "size", "theme", "tooltipProps", "hideTooltip"];
|
|
5370
5384
|
/**
|
|
@@ -5380,10 +5394,9 @@ const CLASSNAME$17 = getRootClassName(COMPONENT_NAME$19);
|
|
|
5380
5394
|
/**
|
|
5381
5395
|
* Component default props.
|
|
5382
5396
|
*/
|
|
5383
|
-
const DEFAULT_PROPS$
|
|
5397
|
+
const DEFAULT_PROPS$U = {
|
|
5384
5398
|
emphasis: Emphasis.high,
|
|
5385
|
-
size: Size.m
|
|
5386
|
-
theme: Theme.light
|
|
5399
|
+
size: Size.m
|
|
5387
5400
|
};
|
|
5388
5401
|
|
|
5389
5402
|
/**
|
|
@@ -5394,13 +5407,14 @@ const DEFAULT_PROPS$T = {
|
|
|
5394
5407
|
* @return React element.
|
|
5395
5408
|
*/
|
|
5396
5409
|
const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5410
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5397
5411
|
const {
|
|
5398
5412
|
emphasis,
|
|
5399
5413
|
image,
|
|
5400
5414
|
icon,
|
|
5401
5415
|
label,
|
|
5402
5416
|
size,
|
|
5403
|
-
theme,
|
|
5417
|
+
theme = defaultTheme,
|
|
5404
5418
|
tooltipProps,
|
|
5405
5419
|
hideTooltip
|
|
5406
5420
|
} = props,
|
|
@@ -5426,7 +5440,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5426
5440
|
});
|
|
5427
5441
|
IconButton.displayName = COMPONENT_NAME$19;
|
|
5428
5442
|
IconButton.className = CLASSNAME$17;
|
|
5429
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
5443
|
+
IconButton.defaultProps = DEFAULT_PROPS$U;
|
|
5430
5444
|
|
|
5431
5445
|
const _excluded$1c = ["children", "className"];
|
|
5432
5446
|
|
|
@@ -5447,7 +5461,7 @@ const CLASSNAME$16 = getRootClassName(COMPONENT_NAME$18);
|
|
|
5447
5461
|
/**
|
|
5448
5462
|
* Component default props.
|
|
5449
5463
|
*/
|
|
5450
|
-
const DEFAULT_PROPS$
|
|
5464
|
+
const DEFAULT_PROPS$T = {};
|
|
5451
5465
|
|
|
5452
5466
|
/**
|
|
5453
5467
|
* ButtonGroup component.
|
|
@@ -5470,7 +5484,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5470
5484
|
});
|
|
5471
5485
|
ButtonGroup.displayName = COMPONENT_NAME$18;
|
|
5472
5486
|
ButtonGroup.className = CLASSNAME$16;
|
|
5473
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
5487
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$T;
|
|
5474
5488
|
|
|
5475
5489
|
const _excluded$1b = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
|
|
5476
5490
|
|
|
@@ -5496,9 +5510,7 @@ const CLASSNAME$15 = getRootClassName(COMPONENT_NAME$17);
|
|
|
5496
5510
|
/**
|
|
5497
5511
|
* Component default props.
|
|
5498
5512
|
*/
|
|
5499
|
-
const DEFAULT_PROPS$
|
|
5500
|
-
theme: Theme.light
|
|
5501
|
-
};
|
|
5513
|
+
const DEFAULT_PROPS$S = {};
|
|
5502
5514
|
|
|
5503
5515
|
/**
|
|
5504
5516
|
* Checkbox component.
|
|
@@ -5508,6 +5520,7 @@ const DEFAULT_PROPS$R = {
|
|
|
5508
5520
|
* @return React element.
|
|
5509
5521
|
*/
|
|
5510
5522
|
const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5523
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5511
5524
|
const {
|
|
5512
5525
|
checked,
|
|
5513
5526
|
className,
|
|
@@ -5520,7 +5533,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5520
5533
|
label,
|
|
5521
5534
|
name,
|
|
5522
5535
|
onChange,
|
|
5523
|
-
theme,
|
|
5536
|
+
theme = defaultTheme,
|
|
5524
5537
|
value,
|
|
5525
5538
|
inputProps = {}
|
|
5526
5539
|
} = props,
|
|
@@ -5586,7 +5599,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5586
5599
|
});
|
|
5587
5600
|
Checkbox.displayName = COMPONENT_NAME$17;
|
|
5588
5601
|
Checkbox.className = CLASSNAME$15;
|
|
5589
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
5602
|
+
Checkbox.defaultProps = DEFAULT_PROPS$S;
|
|
5590
5603
|
|
|
5591
5604
|
/**
|
|
5592
5605
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -5627,9 +5640,8 @@ const CLASSNAME$14 = getRootClassName(COMPONENT_NAME$16);
|
|
|
5627
5640
|
/**
|
|
5628
5641
|
* Component default props.
|
|
5629
5642
|
*/
|
|
5630
|
-
const DEFAULT_PROPS$
|
|
5631
|
-
size: Size.m
|
|
5632
|
-
theme: Theme.light
|
|
5643
|
+
const DEFAULT_PROPS$R = {
|
|
5644
|
+
size: Size.m
|
|
5633
5645
|
};
|
|
5634
5646
|
|
|
5635
5647
|
/**
|
|
@@ -5640,6 +5652,7 @@ const DEFAULT_PROPS$Q = {
|
|
|
5640
5652
|
* @return React element.
|
|
5641
5653
|
*/
|
|
5642
5654
|
const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5655
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5643
5656
|
const {
|
|
5644
5657
|
after,
|
|
5645
5658
|
before,
|
|
@@ -5655,7 +5668,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5655
5668
|
onBeforeClick,
|
|
5656
5669
|
onClick,
|
|
5657
5670
|
size,
|
|
5658
|
-
theme,
|
|
5671
|
+
theme = defaultTheme,
|
|
5659
5672
|
href,
|
|
5660
5673
|
onKeyDown
|
|
5661
5674
|
} = props,
|
|
@@ -5723,7 +5736,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5723
5736
|
});
|
|
5724
5737
|
Chip.displayName = COMPONENT_NAME$16;
|
|
5725
5738
|
Chip.className = CLASSNAME$14;
|
|
5726
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
5739
|
+
Chip.defaultProps = DEFAULT_PROPS$R;
|
|
5727
5740
|
|
|
5728
5741
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
5729
5742
|
|
|
@@ -5786,7 +5799,7 @@ const _excluded$19 = ["align", "children", "className"];
|
|
|
5786
5799
|
/**
|
|
5787
5800
|
* Component default props.
|
|
5788
5801
|
*/
|
|
5789
|
-
const DEFAULT_PROPS$
|
|
5802
|
+
const DEFAULT_PROPS$Q = {};
|
|
5790
5803
|
|
|
5791
5804
|
/**
|
|
5792
5805
|
* Component display name.
|
|
@@ -5823,7 +5836,7 @@ const InternalChipGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5823
5836
|
});
|
|
5824
5837
|
InternalChipGroup.displayName = COMPONENT_NAME$15;
|
|
5825
5838
|
InternalChipGroup.className = CLASSNAME$13;
|
|
5826
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
5839
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$Q;
|
|
5827
5840
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
5828
5841
|
useChipGroupNavigation
|
|
5829
5842
|
});
|
|
@@ -5854,8 +5867,7 @@ const CLASSNAME$12 = getRootClassName(COMPONENT_NAME$14);
|
|
|
5854
5867
|
/**
|
|
5855
5868
|
* Component default props.
|
|
5856
5869
|
*/
|
|
5857
|
-
const DEFAULT_PROPS$
|
|
5858
|
-
theme: Theme.light,
|
|
5870
|
+
const DEFAULT_PROPS$P = {
|
|
5859
5871
|
variant: CommentBlockVariant.indented
|
|
5860
5872
|
};
|
|
5861
5873
|
|
|
@@ -5867,6 +5879,7 @@ const DEFAULT_PROPS$O = {
|
|
|
5867
5879
|
* @return React element.
|
|
5868
5880
|
*/
|
|
5869
5881
|
const CommentBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5882
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
5870
5883
|
const {
|
|
5871
5884
|
actions,
|
|
5872
5885
|
avatarProps,
|
|
@@ -5883,7 +5896,7 @@ const CommentBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5883
5896
|
onMouseEnter,
|
|
5884
5897
|
onMouseLeave,
|
|
5885
5898
|
text,
|
|
5886
|
-
theme,
|
|
5899
|
+
theme = defaultTheme,
|
|
5887
5900
|
variant
|
|
5888
5901
|
} = props,
|
|
5889
5902
|
forwardedProps = _objectWithoutProperties(props, _excluded$18);
|
|
@@ -5938,7 +5951,7 @@ const CommentBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5938
5951
|
});
|
|
5939
5952
|
CommentBlock.displayName = COMPONENT_NAME$14;
|
|
5940
5953
|
CommentBlock.className = CLASSNAME$12;
|
|
5941
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
5954
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$P;
|
|
5942
5955
|
|
|
5943
5956
|
/**
|
|
5944
5957
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -6854,7 +6867,7 @@ const CLASSNAME$10 = getRootClassName(COMPONENT_NAME$10);
|
|
|
6854
6867
|
/**
|
|
6855
6868
|
* Component default props.
|
|
6856
6869
|
*/
|
|
6857
|
-
const DEFAULT_PROPS$
|
|
6870
|
+
const DEFAULT_PROPS$O = {
|
|
6858
6871
|
size: Size.big,
|
|
6859
6872
|
disableBodyScroll: true
|
|
6860
6873
|
};
|
|
@@ -6972,7 +6985,9 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6972
6985
|
}
|
|
6973
6986
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
6974
6987
|
className: `${CLASSNAME$10}__overlay`
|
|
6975
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
6988
|
+
}), /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
6989
|
+
value: undefined
|
|
6990
|
+
}, /*#__PURE__*/React__default.createElement("section", _extends({
|
|
6976
6991
|
className: `${CLASSNAME$10}__container`,
|
|
6977
6992
|
role: "dialog",
|
|
6978
6993
|
"aria-modal": "true"
|
|
@@ -7000,11 +7015,11 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7000
7015
|
className: `${CLASSNAME$10}__progress-overlay`
|
|
7001
7016
|
}, /*#__PURE__*/React__default.createElement(Progress, {
|
|
7002
7017
|
variant: ProgressVariant.circular
|
|
7003
|
-
})))))), document.body) : null;
|
|
7018
|
+
}))))))), document.body) : null;
|
|
7004
7019
|
});
|
|
7005
7020
|
Dialog.displayName = COMPONENT_NAME$10;
|
|
7006
7021
|
Dialog.className = CLASSNAME$10;
|
|
7007
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
7022
|
+
Dialog.defaultProps = DEFAULT_PROPS$O;
|
|
7008
7023
|
|
|
7009
7024
|
const _excluded$14 = ["className", "theme"];
|
|
7010
7025
|
|
|
@@ -7025,9 +7040,7 @@ const CLASSNAME$$ = getRootClassName(COMPONENT_NAME$$);
|
|
|
7025
7040
|
/**
|
|
7026
7041
|
* Component default props.
|
|
7027
7042
|
*/
|
|
7028
|
-
const DEFAULT_PROPS$
|
|
7029
|
-
theme: Theme.light
|
|
7030
|
-
};
|
|
7043
|
+
const DEFAULT_PROPS$N = {};
|
|
7031
7044
|
|
|
7032
7045
|
/**
|
|
7033
7046
|
* Divider component.
|
|
@@ -7037,9 +7050,10 @@ const DEFAULT_PROPS$M = {
|
|
|
7037
7050
|
* @return React element.
|
|
7038
7051
|
*/
|
|
7039
7052
|
const Divider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7053
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
7040
7054
|
const {
|
|
7041
7055
|
className,
|
|
7042
|
-
theme
|
|
7056
|
+
theme = defaultTheme
|
|
7043
7057
|
} = props,
|
|
7044
7058
|
forwardedProps = _objectWithoutProperties(props, _excluded$14);
|
|
7045
7059
|
return /*#__PURE__*/React__default.createElement("hr", _extends({
|
|
@@ -7053,7 +7067,7 @@ const Divider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7053
7067
|
});
|
|
7054
7068
|
Divider.displayName = COMPONENT_NAME$$;
|
|
7055
7069
|
Divider.className = CLASSNAME$$;
|
|
7056
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
7070
|
+
Divider.defaultProps = DEFAULT_PROPS$N;
|
|
7057
7071
|
|
|
7058
7072
|
const _excluded$13 = ["className", "theme"];
|
|
7059
7073
|
|
|
@@ -7079,9 +7093,10 @@ const CLASSNAME$_ = getRootClassName(COMPONENT_NAME$_);
|
|
|
7079
7093
|
* @return React element.
|
|
7080
7094
|
*/
|
|
7081
7095
|
const DragHandle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7096
|
+
const defaultTheme = useTheme();
|
|
7082
7097
|
const {
|
|
7083
7098
|
className,
|
|
7084
|
-
theme
|
|
7099
|
+
theme = defaultTheme
|
|
7085
7100
|
} = props,
|
|
7086
7101
|
forwardedProps = _objectWithoutProperties(props, _excluded$13);
|
|
7087
7102
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
@@ -7119,9 +7134,7 @@ const CLASSNAME$Z = getRootClassName(COMPONENT_NAME$Z);
|
|
|
7119
7134
|
/**
|
|
7120
7135
|
* Component default props.
|
|
7121
7136
|
*/
|
|
7122
|
-
const DEFAULT_PROPS$
|
|
7123
|
-
theme: Theme.light
|
|
7124
|
-
};
|
|
7137
|
+
const DEFAULT_PROPS$M = {};
|
|
7125
7138
|
const isDragHandle = isComponent(DragHandle);
|
|
7126
7139
|
const isHeader = isComponent('header');
|
|
7127
7140
|
const isFooter = isComponent('footer');
|
|
@@ -7134,6 +7147,7 @@ const isFooter = isComponent('footer');
|
|
|
7134
7147
|
* @return React element.
|
|
7135
7148
|
*/
|
|
7136
7149
|
const ExpansionPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7150
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
7137
7151
|
const {
|
|
7138
7152
|
className,
|
|
7139
7153
|
children: anyChildren,
|
|
@@ -7144,7 +7158,7 @@ const ExpansionPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7144
7158
|
onClose,
|
|
7145
7159
|
onOpen,
|
|
7146
7160
|
onToggleOpen,
|
|
7147
|
-
theme,
|
|
7161
|
+
theme = defaultTheme,
|
|
7148
7162
|
toggleButtonProps
|
|
7149
7163
|
} = props,
|
|
7150
7164
|
forwardedProps = _objectWithoutProperties(props, _excluded$12);
|
|
@@ -7226,14 +7240,12 @@ const ExpansionPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7226
7240
|
});
|
|
7227
7241
|
ExpansionPanel.displayName = COMPONENT_NAME$Z;
|
|
7228
7242
|
ExpansionPanel.className = CLASSNAME$Z;
|
|
7229
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
7243
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$M;
|
|
7230
7244
|
|
|
7231
7245
|
const _excluded$11 = ["label", "icon", "color", "className", "theme", "truncate"];
|
|
7232
7246
|
const COMPONENT_NAME$Y = 'Flag';
|
|
7233
7247
|
const CLASSNAME$Y = getRootClassName(COMPONENT_NAME$Y);
|
|
7234
|
-
const DEFAULT_PROPS$
|
|
7235
|
-
theme: Theme.light
|
|
7236
|
-
};
|
|
7248
|
+
const DEFAULT_PROPS$L = {};
|
|
7237
7249
|
|
|
7238
7250
|
/**
|
|
7239
7251
|
* Flag component.
|
|
@@ -7243,12 +7255,13 @@ const DEFAULT_PROPS$K = {
|
|
|
7243
7255
|
* @return React element.
|
|
7244
7256
|
*/
|
|
7245
7257
|
const Flag = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7258
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
7246
7259
|
const {
|
|
7247
7260
|
label,
|
|
7248
7261
|
icon,
|
|
7249
7262
|
color,
|
|
7250
7263
|
className,
|
|
7251
|
-
theme,
|
|
7264
|
+
theme = defaultTheme,
|
|
7252
7265
|
truncate
|
|
7253
7266
|
} = props,
|
|
7254
7267
|
forwardedProps = _objectWithoutProperties(props, _excluded$11);
|
|
@@ -7274,7 +7287,7 @@ const Flag = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7274
7287
|
});
|
|
7275
7288
|
Flag.displayName = COMPONENT_NAME$Y;
|
|
7276
7289
|
Flag.className = CLASSNAME$Y;
|
|
7277
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
7290
|
+
Flag.defaultProps = DEFAULT_PROPS$L;
|
|
7278
7291
|
|
|
7279
7292
|
const _excluded$10 = ["as", "children", "className", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap"];
|
|
7280
7293
|
|
|
@@ -7343,7 +7356,7 @@ const CLASSNAME$W = getRootClassName(COMPONENT_NAME$W);
|
|
|
7343
7356
|
/**
|
|
7344
7357
|
* Component default props.
|
|
7345
7358
|
*/
|
|
7346
|
-
const DEFAULT_PROPS$
|
|
7359
|
+
const DEFAULT_PROPS$K = {
|
|
7347
7360
|
gap: Size.big,
|
|
7348
7361
|
orientation: Orientation.horizontal
|
|
7349
7362
|
};
|
|
@@ -7421,7 +7434,7 @@ const BaseGenericBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7421
7434
|
});
|
|
7422
7435
|
BaseGenericBlock.displayName = COMPONENT_NAME$W;
|
|
7423
7436
|
BaseGenericBlock.className = CLASSNAME$W;
|
|
7424
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7437
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$K;
|
|
7425
7438
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7426
7439
|
Figure,
|
|
7427
7440
|
Content,
|
|
@@ -7496,7 +7509,7 @@ const CLASSNAME$V = getRootClassName(COMPONENT_NAME$V);
|
|
|
7496
7509
|
/**
|
|
7497
7510
|
* Component default props.
|
|
7498
7511
|
*/
|
|
7499
|
-
const DEFAULT_PROPS$
|
|
7512
|
+
const DEFAULT_PROPS$J = {};
|
|
7500
7513
|
|
|
7501
7514
|
/**
|
|
7502
7515
|
* Text component.
|
|
@@ -7562,7 +7575,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7562
7575
|
});
|
|
7563
7576
|
Text.displayName = COMPONENT_NAME$V;
|
|
7564
7577
|
Text.className = CLASSNAME$V;
|
|
7565
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7578
|
+
Text.defaultProps = DEFAULT_PROPS$J;
|
|
7566
7579
|
|
|
7567
7580
|
/** The maximum authorized heading level. */
|
|
7568
7581
|
const MAX_HEADING_LEVEL = 6;
|
|
@@ -7615,7 +7628,7 @@ const CLASSNAME$U = getRootClassName(COMPONENT_NAME$U);
|
|
|
7615
7628
|
/**
|
|
7616
7629
|
* Component default props.
|
|
7617
7630
|
*/
|
|
7618
|
-
const DEFAULT_PROPS$
|
|
7631
|
+
const DEFAULT_PROPS$I = {};
|
|
7619
7632
|
|
|
7620
7633
|
/**
|
|
7621
7634
|
* Renders a heading component.
|
|
@@ -7644,7 +7657,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7644
7657
|
});
|
|
7645
7658
|
Heading.displayName = COMPONENT_NAME$U;
|
|
7646
7659
|
Heading.className = CLASSNAME$U;
|
|
7647
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7660
|
+
Heading.defaultProps = DEFAULT_PROPS$I;
|
|
7648
7661
|
|
|
7649
7662
|
/**
|
|
7650
7663
|
* Provide a new heading level context.
|
|
@@ -7688,7 +7701,7 @@ const CLASSNAME$T = getRootClassName(COMPONENT_NAME$T);
|
|
|
7688
7701
|
/**
|
|
7689
7702
|
* Component default props.
|
|
7690
7703
|
*/
|
|
7691
|
-
const DEFAULT_PROPS$
|
|
7704
|
+
const DEFAULT_PROPS$H = {
|
|
7692
7705
|
orientation: Orientation.horizontal,
|
|
7693
7706
|
wrap: 'nowrap'
|
|
7694
7707
|
};
|
|
@@ -7728,7 +7741,7 @@ const Grid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7728
7741
|
});
|
|
7729
7742
|
Grid.displayName = COMPONENT_NAME$T;
|
|
7730
7743
|
Grid.className = CLASSNAME$T;
|
|
7731
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
7744
|
+
Grid.defaultProps = DEFAULT_PROPS$H;
|
|
7732
7745
|
|
|
7733
7746
|
const _excluded$X = ["children", "className", "width", "align", "order"];
|
|
7734
7747
|
|
|
@@ -7795,7 +7808,7 @@ const CLASSNAME$R = getRootClassName(COMPONENT_NAME$R);
|
|
|
7795
7808
|
/**
|
|
7796
7809
|
* Component default props.
|
|
7797
7810
|
*/
|
|
7798
|
-
const DEFAULT_PROPS$
|
|
7811
|
+
const DEFAULT_PROPS$G = {};
|
|
7799
7812
|
|
|
7800
7813
|
/**
|
|
7801
7814
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7831,7 +7844,7 @@ const GridColumn = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7831
7844
|
});
|
|
7832
7845
|
GridColumn.displayName = COMPONENT_NAME$R;
|
|
7833
7846
|
GridColumn.className = CLASSNAME$R;
|
|
7834
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
7847
|
+
GridColumn.defaultProps = DEFAULT_PROPS$G;
|
|
7835
7848
|
|
|
7836
7849
|
const _excluded$V = ["className", "color", "colorVariant", "hasShape", "icon", "size", "theme", "alt"];
|
|
7837
7850
|
|
|
@@ -7852,7 +7865,7 @@ const CLASSNAME$Q = getRootClassName(COMPONENT_NAME$Q);
|
|
|
7852
7865
|
/**
|
|
7853
7866
|
* Component default props.
|
|
7854
7867
|
*/
|
|
7855
|
-
const DEFAULT_PROPS$
|
|
7868
|
+
const DEFAULT_PROPS$F = {};
|
|
7856
7869
|
|
|
7857
7870
|
/**
|
|
7858
7871
|
* Icon component.
|
|
@@ -7862,6 +7875,7 @@ const DEFAULT_PROPS$E = {};
|
|
|
7862
7875
|
* @return React element.
|
|
7863
7876
|
*/
|
|
7864
7877
|
const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7878
|
+
const defaultTheme = useTheme();
|
|
7865
7879
|
const {
|
|
7866
7880
|
className,
|
|
7867
7881
|
color,
|
|
@@ -7869,7 +7883,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7869
7883
|
hasShape,
|
|
7870
7884
|
icon,
|
|
7871
7885
|
size,
|
|
7872
|
-
theme,
|
|
7886
|
+
theme = defaultTheme,
|
|
7873
7887
|
alt
|
|
7874
7888
|
} = props,
|
|
7875
7889
|
forwardedProps = _objectWithoutProperties(props, _excluded$V);
|
|
@@ -7926,7 +7940,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7926
7940
|
});
|
|
7927
7941
|
Icon.displayName = COMPONENT_NAME$Q;
|
|
7928
7942
|
Icon.className = CLASSNAME$Q;
|
|
7929
|
-
Icon.defaultProps = DEFAULT_PROPS$
|
|
7943
|
+
Icon.defaultProps = DEFAULT_PROPS$F;
|
|
7930
7944
|
|
|
7931
7945
|
/** Internal component used to render image captions */
|
|
7932
7946
|
const ImageCaption = props => {
|
|
@@ -8016,9 +8030,8 @@ const CLASSNAME$P = getRootClassName(COMPONENT_NAME$P);
|
|
|
8016
8030
|
/**
|
|
8017
8031
|
* Component default props.
|
|
8018
8032
|
*/
|
|
8019
|
-
const DEFAULT_PROPS$
|
|
8033
|
+
const DEFAULT_PROPS$E = {
|
|
8020
8034
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
8021
|
-
theme: Theme.light,
|
|
8022
8035
|
align: Alignment.left
|
|
8023
8036
|
};
|
|
8024
8037
|
|
|
@@ -8030,6 +8043,7 @@ const DEFAULT_PROPS$D = {
|
|
|
8030
8043
|
* @return React element.
|
|
8031
8044
|
*/
|
|
8032
8045
|
const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8046
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
8033
8047
|
const {
|
|
8034
8048
|
actions,
|
|
8035
8049
|
align,
|
|
@@ -8043,7 +8057,7 @@ const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8043
8057
|
image,
|
|
8044
8058
|
size,
|
|
8045
8059
|
tags,
|
|
8046
|
-
theme,
|
|
8060
|
+
theme = defaultTheme,
|
|
8047
8061
|
thumbnailProps,
|
|
8048
8062
|
title,
|
|
8049
8063
|
titleProps
|
|
@@ -8085,7 +8099,7 @@ const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8085
8099
|
});
|
|
8086
8100
|
ImageBlock.displayName = COMPONENT_NAME$P;
|
|
8087
8101
|
ImageBlock.className = CLASSNAME$P;
|
|
8088
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
8102
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$E;
|
|
8089
8103
|
|
|
8090
8104
|
/**
|
|
8091
8105
|
* Component display name.
|
|
@@ -8854,7 +8868,7 @@ const CLASSNAME$N = getRootClassName(COMPONENT_NAME$N);
|
|
|
8854
8868
|
/**
|
|
8855
8869
|
* Component default props.
|
|
8856
8870
|
*/
|
|
8857
|
-
const DEFAULT_PROPS$
|
|
8871
|
+
const DEFAULT_PROPS$D = {};
|
|
8858
8872
|
|
|
8859
8873
|
/**
|
|
8860
8874
|
* InlineList component.
|
|
@@ -8904,7 +8918,7 @@ const InlineList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8904
8918
|
});
|
|
8905
8919
|
InlineList.displayName = COMPONENT_NAME$N;
|
|
8906
8920
|
InlineList.className = CLASSNAME$N;
|
|
8907
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
8921
|
+
InlineList.defaultProps = DEFAULT_PROPS$D;
|
|
8908
8922
|
|
|
8909
8923
|
const _excluded$Q = ["children", "className", "htmlFor", "isRequired", "theme"];
|
|
8910
8924
|
|
|
@@ -8925,9 +8939,7 @@ const CLASSNAME$M = getRootClassName(COMPONENT_NAME$M);
|
|
|
8925
8939
|
/**
|
|
8926
8940
|
* Component default props.
|
|
8927
8941
|
*/
|
|
8928
|
-
const DEFAULT_PROPS$
|
|
8929
|
-
theme: Theme.light
|
|
8930
|
-
};
|
|
8942
|
+
const DEFAULT_PROPS$C = {};
|
|
8931
8943
|
|
|
8932
8944
|
/**
|
|
8933
8945
|
* InputLabel component.
|
|
@@ -8937,12 +8949,13 @@ const DEFAULT_PROPS$B = {
|
|
|
8937
8949
|
* @return React element.
|
|
8938
8950
|
*/
|
|
8939
8951
|
const InputLabel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8952
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
8940
8953
|
const {
|
|
8941
8954
|
children,
|
|
8942
8955
|
className,
|
|
8943
8956
|
htmlFor,
|
|
8944
8957
|
isRequired,
|
|
8945
|
-
theme
|
|
8958
|
+
theme = defaultTheme
|
|
8946
8959
|
} = props,
|
|
8947
8960
|
forwardedProps = _objectWithoutProperties(props, _excluded$Q);
|
|
8948
8961
|
return /*#__PURE__*/React__default.createElement("label", _extends({
|
|
@@ -8958,7 +8971,7 @@ const InputLabel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8958
8971
|
});
|
|
8959
8972
|
InputLabel.displayName = COMPONENT_NAME$M;
|
|
8960
8973
|
InputLabel.className = CLASSNAME$M;
|
|
8961
|
-
InputLabel.defaultProps = DEFAULT_PROPS$
|
|
8974
|
+
InputLabel.defaultProps = DEFAULT_PROPS$C;
|
|
8962
8975
|
|
|
8963
8976
|
const _excluded$P = ["aria-labelledby", "ariaLabelledBy", "aria-label", "ariaLabel", "children", "className", "closeButtonProps", "isOpen", "onClose", "parentElement", "focusElement", "preventAutoClose", "theme", "zIndex"];
|
|
8964
8977
|
|
|
@@ -9079,14 +9092,16 @@ const Lightbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9079
9092
|
theme: "dark",
|
|
9080
9093
|
type: "button",
|
|
9081
9094
|
onClick: onClose
|
|
9082
|
-
}))), /*#__PURE__*/React__default.createElement(
|
|
9095
|
+
}))), /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
9096
|
+
value: undefined
|
|
9097
|
+
}, /*#__PURE__*/React__default.createElement(ClickAwayProvider, {
|
|
9083
9098
|
callback: !preventAutoClose && onClose,
|
|
9084
9099
|
childrenRefs: clickAwayRefs
|
|
9085
9100
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
9086
9101
|
ref: childrenRef,
|
|
9087
9102
|
className: `${CLASSNAME$L}__wrapper`,
|
|
9088
9103
|
role: "presentation"
|
|
9089
|
-
}, children))), document.body);
|
|
9104
|
+
}, children)))), document.body);
|
|
9090
9105
|
});
|
|
9091
9106
|
Lightbox.displayName = COMPONENT_NAME$L;
|
|
9092
9107
|
Lightbox.className = CLASSNAME$L;
|
|
@@ -9221,9 +9236,8 @@ const CLASSNAME$J = getRootClassName(COMPONENT_NAME$J);
|
|
|
9221
9236
|
/**
|
|
9222
9237
|
* Component default props.
|
|
9223
9238
|
*/
|
|
9224
|
-
const DEFAULT_PROPS$
|
|
9239
|
+
const DEFAULT_PROPS$B = {
|
|
9225
9240
|
size: Size.regular,
|
|
9226
|
-
theme: Theme.light,
|
|
9227
9241
|
titleHeading: 'h2'
|
|
9228
9242
|
};
|
|
9229
9243
|
|
|
@@ -9235,6 +9249,7 @@ const DEFAULT_PROPS$A = {
|
|
|
9235
9249
|
* @return React element.
|
|
9236
9250
|
*/
|
|
9237
9251
|
const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
|
|
9252
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9238
9253
|
const {
|
|
9239
9254
|
className,
|
|
9240
9255
|
description,
|
|
@@ -9242,7 +9257,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9242
9257
|
linkAs,
|
|
9243
9258
|
linkProps,
|
|
9244
9259
|
size,
|
|
9245
|
-
theme,
|
|
9260
|
+
theme = defaultTheme,
|
|
9246
9261
|
thumbnailProps,
|
|
9247
9262
|
title,
|
|
9248
9263
|
titleHeading
|
|
@@ -9300,7 +9315,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9300
9315
|
});
|
|
9301
9316
|
LinkPreview.displayName = COMPONENT_NAME$J;
|
|
9302
9317
|
LinkPreview.className = CLASSNAME$J;
|
|
9303
|
-
LinkPreview.defaultProps = DEFAULT_PROPS$
|
|
9318
|
+
LinkPreview.defaultProps = DEFAULT_PROPS$B;
|
|
9304
9319
|
|
|
9305
9320
|
const _excluded$M = ["className"];
|
|
9306
9321
|
|
|
@@ -9490,9 +9505,7 @@ const CLASSNAME$F = getRootClassName(COMPONENT_NAME$F);
|
|
|
9490
9505
|
/**
|
|
9491
9506
|
* Component default props.
|
|
9492
9507
|
*/
|
|
9493
|
-
const DEFAULT_PROPS$
|
|
9494
|
-
theme: Theme.light
|
|
9495
|
-
};
|
|
9508
|
+
const DEFAULT_PROPS$A = {};
|
|
9496
9509
|
|
|
9497
9510
|
/**
|
|
9498
9511
|
* Mosaic component.
|
|
@@ -9502,9 +9515,10 @@ const DEFAULT_PROPS$z = {
|
|
|
9502
9515
|
* @return React element.
|
|
9503
9516
|
*/
|
|
9504
9517
|
const Mosaic = /*#__PURE__*/forwardRef((props, ref) => {
|
|
9518
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9505
9519
|
const {
|
|
9506
9520
|
className,
|
|
9507
|
-
theme,
|
|
9521
|
+
theme = defaultTheme,
|
|
9508
9522
|
thumbnails,
|
|
9509
9523
|
onImageClick
|
|
9510
9524
|
} = props,
|
|
@@ -9554,9 +9568,7 @@ const Mosaic = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9554
9568
|
});
|
|
9555
9569
|
Mosaic.displayName = COMPONENT_NAME$F;
|
|
9556
9570
|
Mosaic.className = CLASSNAME$F;
|
|
9557
|
-
Mosaic.defaultProps = DEFAULT_PROPS$
|
|
9558
|
-
|
|
9559
|
-
const ThemeContext = /*#__PURE__*/createContext(undefined);
|
|
9571
|
+
Mosaic.defaultProps = DEFAULT_PROPS$A;
|
|
9560
9572
|
|
|
9561
9573
|
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
9562
9574
|
function forwardRefPolymorphic(render) {
|
|
@@ -9589,7 +9601,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9589
9601
|
as: Element = 'a'
|
|
9590
9602
|
} = props,
|
|
9591
9603
|
forwardedProps = _objectWithoutProperties(props, _excluded$I);
|
|
9592
|
-
const theme =
|
|
9604
|
+
const theme = useTheme();
|
|
9593
9605
|
const {
|
|
9594
9606
|
tooltipLabel,
|
|
9595
9607
|
labelRef
|
|
@@ -9656,7 +9668,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
|
|
|
9656
9668
|
const {
|
|
9657
9669
|
orientation
|
|
9658
9670
|
} = useContext(NavigationContext) || {};
|
|
9659
|
-
const theme =
|
|
9671
|
+
const theme = useTheme();
|
|
9660
9672
|
const isDropdown = orientation === Orientation.horizontal;
|
|
9661
9673
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
9662
9674
|
className: classNames(className, CLASSNAME$D, CLASSNAME$E, handleBasicClasses({
|
|
@@ -9696,7 +9708,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
|
|
|
9696
9708
|
onClick: () => setIsOpen(false),
|
|
9697
9709
|
onClose: () => setIsOpen(false),
|
|
9698
9710
|
zIndex: 996
|
|
9699
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
9711
|
+
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
9700
9712
|
value: Theme.light
|
|
9701
9713
|
}, /*#__PURE__*/React__default.createElement("ul", {
|
|
9702
9714
|
className: `${CLASSNAME$D}__drawer--popover`,
|
|
@@ -9724,18 +9736,26 @@ const COMPONENT_NAME$C = 'Navigation';
|
|
|
9724
9736
|
* Component default class name and class prefix.
|
|
9725
9737
|
*/
|
|
9726
9738
|
const CLASSNAME$C = getRootClassName(COMPONENT_NAME$C);
|
|
9739
|
+
|
|
9740
|
+
/**
|
|
9741
|
+
* Component default props
|
|
9742
|
+
*/
|
|
9743
|
+
const DEFAULT_PROPS$z = {
|
|
9744
|
+
orientation: Orientation.vertical
|
|
9745
|
+
};
|
|
9727
9746
|
const Navigation = Object.assign(
|
|
9728
9747
|
/*#__PURE__*/
|
|
9729
9748
|
// eslint-disable-next-line react/display-name
|
|
9730
9749
|
forwardRef((props, ref) => {
|
|
9750
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9731
9751
|
const {
|
|
9732
9752
|
children,
|
|
9733
9753
|
className,
|
|
9734
|
-
theme,
|
|
9754
|
+
theme = defaultTheme,
|
|
9735
9755
|
orientation
|
|
9736
9756
|
} = props,
|
|
9737
9757
|
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
9738
|
-
return /*#__PURE__*/React__default.createElement(
|
|
9758
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
9739
9759
|
value: theme
|
|
9740
9760
|
}, /*#__PURE__*/React__default.createElement("nav", _extends({
|
|
9741
9761
|
className: classNames(className, handleBasicClasses({
|
|
@@ -9754,10 +9774,7 @@ forwardRef((props, ref) => {
|
|
|
9754
9774
|
}), {
|
|
9755
9775
|
displayName: COMPONENT_NAME$C,
|
|
9756
9776
|
className: CLASSNAME$C,
|
|
9757
|
-
defaultProps:
|
|
9758
|
-
theme: Theme.light,
|
|
9759
|
-
orientation: Orientation.vertical
|
|
9760
|
-
},
|
|
9777
|
+
defaultProps: DEFAULT_PROPS$z,
|
|
9761
9778
|
// Sub components
|
|
9762
9779
|
Section: NavigationSection,
|
|
9763
9780
|
Item: NavigationItem
|
|
@@ -9805,7 +9822,6 @@ const CLASSNAME$B = getRootClassName(COMPONENT_NAME$B);
|
|
|
9805
9822
|
* Component default props.
|
|
9806
9823
|
*/
|
|
9807
9824
|
const DEFAULT_PROPS$y = {
|
|
9808
|
-
theme: Theme.light,
|
|
9809
9825
|
zIndex: 9999,
|
|
9810
9826
|
usePortal: true
|
|
9811
9827
|
};
|
|
@@ -9819,6 +9835,7 @@ const DEFAULT_PROPS$y = {
|
|
|
9819
9835
|
* @return React element.
|
|
9820
9836
|
*/
|
|
9821
9837
|
const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
9838
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9822
9839
|
const {
|
|
9823
9840
|
actionLabel,
|
|
9824
9841
|
className,
|
|
@@ -9826,7 +9843,7 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9826
9843
|
isOpen,
|
|
9827
9844
|
onActionClick,
|
|
9828
9845
|
onClick,
|
|
9829
|
-
theme,
|
|
9846
|
+
theme = defaultTheme,
|
|
9830
9847
|
type,
|
|
9831
9848
|
zIndex,
|
|
9832
9849
|
usePortal,
|
|
@@ -9972,8 +9989,7 @@ const CLASSNAME$z = getRootClassName(COMPONENT_NAME$z);
|
|
|
9972
9989
|
* Component default props.
|
|
9973
9990
|
*/
|
|
9974
9991
|
const DEFAULT_PROPS$w = {
|
|
9975
|
-
orientation: Orientation.horizontal
|
|
9976
|
-
theme: Theme.light
|
|
9992
|
+
orientation: Orientation.horizontal
|
|
9977
9993
|
};
|
|
9978
9994
|
|
|
9979
9995
|
/**
|
|
@@ -9984,6 +10000,7 @@ const DEFAULT_PROPS$w = {
|
|
|
9984
10000
|
* @return React element.
|
|
9985
10001
|
*/
|
|
9986
10002
|
const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10003
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
9987
10004
|
const {
|
|
9988
10005
|
actions,
|
|
9989
10006
|
attachments,
|
|
@@ -9994,7 +10011,7 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9994
10011
|
orientation,
|
|
9995
10012
|
tags,
|
|
9996
10013
|
text,
|
|
9997
|
-
theme,
|
|
10014
|
+
theme = defaultTheme,
|
|
9998
10015
|
thumbnailProps,
|
|
9999
10016
|
title
|
|
10000
10017
|
} = props,
|
|
@@ -10057,9 +10074,7 @@ const CLASSNAME$y = getRootClassName(COMPONENT_NAME$y);
|
|
|
10057
10074
|
/**
|
|
10058
10075
|
* Component default props.
|
|
10059
10076
|
*/
|
|
10060
|
-
const DEFAULT_PROPS$v = {
|
|
10061
|
-
theme: Theme.light
|
|
10062
|
-
};
|
|
10077
|
+
const DEFAULT_PROPS$v = {};
|
|
10063
10078
|
|
|
10064
10079
|
/**
|
|
10065
10080
|
* ProgressLinear component.
|
|
@@ -10069,9 +10084,10 @@ const DEFAULT_PROPS$v = {
|
|
|
10069
10084
|
* @return React element.
|
|
10070
10085
|
*/
|
|
10071
10086
|
const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10087
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10072
10088
|
const {
|
|
10073
10089
|
className,
|
|
10074
|
-
theme
|
|
10090
|
+
theme = defaultTheme
|
|
10075
10091
|
} = props,
|
|
10076
10092
|
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
10077
10093
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
@@ -10115,7 +10131,6 @@ const CLASSNAME$x = getRootClassName(COMPONENT_NAME$x);
|
|
|
10115
10131
|
* Component default props.
|
|
10116
10132
|
*/
|
|
10117
10133
|
const DEFAULT_PROPS$u = {
|
|
10118
|
-
theme: Theme.light,
|
|
10119
10134
|
size: Size.m
|
|
10120
10135
|
};
|
|
10121
10136
|
|
|
@@ -10127,9 +10142,10 @@ const DEFAULT_PROPS$u = {
|
|
|
10127
10142
|
* @return React element.
|
|
10128
10143
|
*/
|
|
10129
10144
|
const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10145
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10130
10146
|
const {
|
|
10131
10147
|
className,
|
|
10132
|
-
theme,
|
|
10148
|
+
theme = defaultTheme,
|
|
10133
10149
|
size
|
|
10134
10150
|
} = props,
|
|
10135
10151
|
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
@@ -10189,7 +10205,6 @@ const CLASSNAME$w = getRootClassName(COMPONENT_NAME$w);
|
|
|
10189
10205
|
* Component default props.
|
|
10190
10206
|
*/
|
|
10191
10207
|
const DEFAULT_PROPS$t = {
|
|
10192
|
-
theme: Theme.light,
|
|
10193
10208
|
variant: ProgressVariant.circular
|
|
10194
10209
|
};
|
|
10195
10210
|
|
|
@@ -10202,9 +10217,10 @@ const DEFAULT_PROPS$t = {
|
|
|
10202
10217
|
* @return React element.
|
|
10203
10218
|
*/
|
|
10204
10219
|
const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10220
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10205
10221
|
const {
|
|
10206
10222
|
className,
|
|
10207
|
-
theme,
|
|
10223
|
+
theme = defaultTheme,
|
|
10208
10224
|
variant
|
|
10209
10225
|
} = props,
|
|
10210
10226
|
forwardedProps = _objectWithoutProperties(props, _excluded$A);
|
|
@@ -10736,9 +10752,7 @@ const CLASSNAME$s = getRootClassName(COMPONENT_NAME$s);
|
|
|
10736
10752
|
/**
|
|
10737
10753
|
* Component default props.
|
|
10738
10754
|
*/
|
|
10739
|
-
const DEFAULT_PROPS$o = {
|
|
10740
|
-
theme: Theme.light
|
|
10741
|
-
};
|
|
10755
|
+
const DEFAULT_PROPS$o = {};
|
|
10742
10756
|
|
|
10743
10757
|
/**
|
|
10744
10758
|
* RadioButton component.
|
|
@@ -10748,6 +10762,7 @@ const DEFAULT_PROPS$o = {
|
|
|
10748
10762
|
* @return React element.
|
|
10749
10763
|
*/
|
|
10750
10764
|
const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10765
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
10751
10766
|
const {
|
|
10752
10767
|
checked,
|
|
10753
10768
|
className,
|
|
@@ -10760,7 +10775,7 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10760
10775
|
label,
|
|
10761
10776
|
name,
|
|
10762
10777
|
onChange,
|
|
10763
|
-
theme,
|
|
10778
|
+
theme = defaultTheme,
|
|
10764
10779
|
value,
|
|
10765
10780
|
inputProps
|
|
10766
10781
|
} = props,
|
|
@@ -10875,8 +10890,9 @@ const stopPropagation = evt => evt.stopPropagation();
|
|
|
10875
10890
|
/**
|
|
10876
10891
|
* Select component.
|
|
10877
10892
|
*/
|
|
10878
|
-
const SelectField =
|
|
10879
|
-
|
|
10893
|
+
const SelectField = props => {
|
|
10894
|
+
const defaultTheme = useTheme();
|
|
10895
|
+
const {
|
|
10880
10896
|
anchorRef,
|
|
10881
10897
|
clearButtonProps,
|
|
10882
10898
|
handleKeyboardNav,
|
|
@@ -10893,12 +10909,12 @@ const SelectField = _ref => {
|
|
|
10893
10909
|
onInputClick,
|
|
10894
10910
|
placeholder,
|
|
10895
10911
|
selectedValueRender,
|
|
10896
|
-
theme,
|
|
10912
|
+
theme = defaultTheme,
|
|
10897
10913
|
value,
|
|
10898
10914
|
variant,
|
|
10899
10915
|
selectElementRef
|
|
10900
|
-
} =
|
|
10901
|
-
forwardedProps = _objectWithoutProperties(
|
|
10916
|
+
} = props,
|
|
10917
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$t);
|
|
10902
10918
|
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
10919
|
className: `${CLASSNAME$q}__header`
|
|
10904
10920
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
@@ -11007,8 +11023,9 @@ const DEFAULT_PROPS$m = {
|
|
|
11007
11023
|
},
|
|
11008
11024
|
selectedValueRender: choice => choice
|
|
11009
11025
|
};
|
|
11010
|
-
const SelectMultipleField =
|
|
11011
|
-
|
|
11026
|
+
const SelectMultipleField = props => {
|
|
11027
|
+
const defaultTheme = useTheme();
|
|
11028
|
+
const {
|
|
11012
11029
|
anchorRef,
|
|
11013
11030
|
handleKeyboardNav,
|
|
11014
11031
|
hasError,
|
|
@@ -11024,12 +11041,12 @@ const SelectMultipleField = _ref => {
|
|
|
11024
11041
|
placeholder,
|
|
11025
11042
|
selectedChipRender,
|
|
11026
11043
|
selectedValueRender,
|
|
11027
|
-
theme,
|
|
11044
|
+
theme = defaultTheme,
|
|
11028
11045
|
value,
|
|
11029
11046
|
variant,
|
|
11030
11047
|
selectElementRef
|
|
11031
|
-
} =
|
|
11032
|
-
forwardedProps = _objectWithoutProperties(
|
|
11048
|
+
} = props,
|
|
11049
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$s);
|
|
11033
11050
|
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
11051
|
className: `${CLASSNAME$p}__header`
|
|
11035
11052
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
@@ -11123,10 +11140,11 @@ const CLASSNAME$o = getRootClassName(COMPONENT_NAME$o);
|
|
|
11123
11140
|
* @return React element.
|
|
11124
11141
|
*/
|
|
11125
11142
|
const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11143
|
+
const defaultTheme = useTheme();
|
|
11126
11144
|
const {
|
|
11127
11145
|
children,
|
|
11128
11146
|
className,
|
|
11129
|
-
theme
|
|
11147
|
+
theme = defaultTheme
|
|
11130
11148
|
} = props,
|
|
11131
11149
|
forwardedProps = _objectWithoutProperties(props, _excluded$r);
|
|
11132
11150
|
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
@@ -11275,9 +11293,7 @@ const _excluded$o = ["className", "size", "color", "theme"];
|
|
|
11275
11293
|
* Defines the props of the component.
|
|
11276
11294
|
*/
|
|
11277
11295
|
|
|
11278
|
-
const DEFAULT_PROPS$k = {
|
|
11279
|
-
theme: Theme.light
|
|
11280
|
-
};
|
|
11296
|
+
const DEFAULT_PROPS$k = {};
|
|
11281
11297
|
|
|
11282
11298
|
/**
|
|
11283
11299
|
* Component display name.
|
|
@@ -11297,11 +11313,12 @@ const CLASSNAME$m = getRootClassName(COMPONENT_NAME$m);
|
|
|
11297
11313
|
* @return React element.
|
|
11298
11314
|
*/
|
|
11299
11315
|
const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11316
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11300
11317
|
const {
|
|
11301
11318
|
className,
|
|
11302
11319
|
size,
|
|
11303
11320
|
color,
|
|
11304
|
-
theme
|
|
11321
|
+
theme = defaultTheme
|
|
11305
11322
|
} = props,
|
|
11306
11323
|
forwardedProps = _objectWithoutProperties(props, _excluded$o);
|
|
11307
11324
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
@@ -11335,7 +11352,6 @@ const SkeletonRectangleVariant = {
|
|
|
11335
11352
|
*/
|
|
11336
11353
|
|
|
11337
11354
|
const DEFAULT_PROPS$j = {
|
|
11338
|
-
theme: Theme.light,
|
|
11339
11355
|
variant: SkeletonRectangleVariant.squared
|
|
11340
11356
|
};
|
|
11341
11357
|
|
|
@@ -11357,11 +11373,12 @@ const CLASSNAME$l = getRootClassName(COMPONENT_NAME$l);
|
|
|
11357
11373
|
* @return React element.
|
|
11358
11374
|
*/
|
|
11359
11375
|
const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11376
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11360
11377
|
const {
|
|
11361
11378
|
aspectRatio,
|
|
11362
11379
|
className,
|
|
11363
11380
|
height,
|
|
11364
|
-
theme,
|
|
11381
|
+
theme = defaultTheme,
|
|
11365
11382
|
variant,
|
|
11366
11383
|
width,
|
|
11367
11384
|
color
|
|
@@ -11393,9 +11410,7 @@ const _excluded$m = ["className", "theme", "typography", "width", "color"];
|
|
|
11393
11410
|
* Defines the props of the component.
|
|
11394
11411
|
*/
|
|
11395
11412
|
|
|
11396
|
-
const DEFAULT_PROPS$i = {
|
|
11397
|
-
theme: Theme.light
|
|
11398
|
-
};
|
|
11413
|
+
const DEFAULT_PROPS$i = {};
|
|
11399
11414
|
|
|
11400
11415
|
/**
|
|
11401
11416
|
* Component display name.
|
|
@@ -11415,9 +11430,10 @@ const CLASSNAME$k = getRootClassName(COMPONENT_NAME$k);
|
|
|
11415
11430
|
* @return React element.
|
|
11416
11431
|
*/
|
|
11417
11432
|
const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11433
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11418
11434
|
const {
|
|
11419
11435
|
className,
|
|
11420
|
-
theme,
|
|
11436
|
+
theme = defaultTheme,
|
|
11421
11437
|
typography,
|
|
11422
11438
|
width,
|
|
11423
11439
|
color
|
|
@@ -11498,8 +11514,7 @@ const CLASSNAME$j = getRootClassName(COMPONENT_NAME$j);
|
|
|
11498
11514
|
*/
|
|
11499
11515
|
const DEFAULT_PROPS$h = {
|
|
11500
11516
|
precision: 0,
|
|
11501
|
-
steps: 0
|
|
11502
|
-
theme: Theme.light
|
|
11517
|
+
steps: 0
|
|
11503
11518
|
};
|
|
11504
11519
|
|
|
11505
11520
|
/**
|
|
@@ -11534,6 +11549,7 @@ const computePercentFromValue = (value, min, max) => Number((value - min) / (max
|
|
|
11534
11549
|
* @return React element.
|
|
11535
11550
|
*/
|
|
11536
11551
|
const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11552
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
11537
11553
|
const {
|
|
11538
11554
|
className,
|
|
11539
11555
|
disabled,
|
|
@@ -11549,7 +11565,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11549
11565
|
onMouseDown,
|
|
11550
11566
|
precision,
|
|
11551
11567
|
steps,
|
|
11552
|
-
theme,
|
|
11568
|
+
theme = defaultTheme,
|
|
11553
11569
|
value
|
|
11554
11570
|
} = props,
|
|
11555
11571
|
forwardedProps = _objectWithoutProperties(props, _excluded$l);
|
|
@@ -12121,9 +12137,7 @@ const _excluded$j = ["activeIndex", "autoPlay", "children", "className", "fillHe
|
|
|
12121
12137
|
/**
|
|
12122
12138
|
* Component default props.
|
|
12123
12139
|
*/
|
|
12124
|
-
const DEFAULT_PROPS$g = _objectSpread2(
|
|
12125
|
-
theme: Theme.light
|
|
12126
|
-
});
|
|
12140
|
+
const DEFAULT_PROPS$g = _objectSpread2({}, DEFAULT_OPTIONS);
|
|
12127
12141
|
|
|
12128
12142
|
/**
|
|
12129
12143
|
* Slideshow component.
|
|
@@ -12133,6 +12147,7 @@ const DEFAULT_PROPS$g = _objectSpread2(_objectSpread2({}, DEFAULT_OPTIONS), {},
|
|
|
12133
12147
|
* @return React element.
|
|
12134
12148
|
*/
|
|
12135
12149
|
const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
12150
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12136
12151
|
const {
|
|
12137
12152
|
activeIndex,
|
|
12138
12153
|
autoPlay,
|
|
@@ -12143,7 +12158,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12143
12158
|
interval,
|
|
12144
12159
|
onChange,
|
|
12145
12160
|
slideshowControlsProps,
|
|
12146
|
-
theme,
|
|
12161
|
+
theme = defaultTheme,
|
|
12147
12162
|
id,
|
|
12148
12163
|
slidesId,
|
|
12149
12164
|
slideGroupLabel
|
|
@@ -12347,8 +12362,7 @@ const CLASSNAME$g = getRootClassName(COMPONENT_NAME$g);
|
|
|
12347
12362
|
* Component default props.
|
|
12348
12363
|
*/
|
|
12349
12364
|
const DEFAULT_PROPS$f = {
|
|
12350
|
-
activeIndex: 0
|
|
12351
|
-
theme: Theme.light
|
|
12365
|
+
activeIndex: 0
|
|
12352
12366
|
};
|
|
12353
12367
|
|
|
12354
12368
|
/**
|
|
@@ -12359,6 +12373,7 @@ const DEFAULT_PROPS$f = {
|
|
|
12359
12373
|
* @return React element.
|
|
12360
12374
|
*/
|
|
12361
12375
|
const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
12376
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12362
12377
|
const {
|
|
12363
12378
|
activeIndex,
|
|
12364
12379
|
className,
|
|
@@ -12370,7 +12385,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12370
12385
|
previousButtonProps,
|
|
12371
12386
|
paginationProps,
|
|
12372
12387
|
slidesCount,
|
|
12373
|
-
theme,
|
|
12388
|
+
theme = defaultTheme,
|
|
12374
12389
|
isAutoPlaying = false,
|
|
12375
12390
|
playButtonProps,
|
|
12376
12391
|
paginationItemLabel,
|
|
@@ -12497,11 +12512,12 @@ const CLASSNAME$f = getRootClassName(COMPONENT_NAME$f);
|
|
|
12497
12512
|
* @return React element.
|
|
12498
12513
|
*/
|
|
12499
12514
|
const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
12515
|
+
const defaultTheme = useTheme();
|
|
12500
12516
|
const {
|
|
12501
12517
|
activeIndex,
|
|
12502
12518
|
id,
|
|
12503
12519
|
className,
|
|
12504
|
-
theme,
|
|
12520
|
+
theme = defaultTheme,
|
|
12505
12521
|
fillHeight,
|
|
12506
12522
|
groupBy,
|
|
12507
12523
|
isAutoPlaying,
|
|
@@ -12578,8 +12594,7 @@ const CLASSNAME$e = getRootClassName(COMPONENT_NAME$e);
|
|
|
12578
12594
|
* Component default props.
|
|
12579
12595
|
*/
|
|
12580
12596
|
const DEFAULT_PROPS$e = {
|
|
12581
|
-
position: Alignment.left
|
|
12582
|
-
theme: Theme.light
|
|
12597
|
+
position: Alignment.left
|
|
12583
12598
|
};
|
|
12584
12599
|
|
|
12585
12600
|
/**
|
|
@@ -12590,6 +12605,7 @@ const DEFAULT_PROPS$e = {
|
|
|
12590
12605
|
* @return React element.
|
|
12591
12606
|
*/
|
|
12592
12607
|
const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
12608
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12593
12609
|
const {
|
|
12594
12610
|
checked,
|
|
12595
12611
|
children,
|
|
@@ -12602,7 +12618,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12602
12618
|
name,
|
|
12603
12619
|
onChange,
|
|
12604
12620
|
position,
|
|
12605
|
-
theme,
|
|
12621
|
+
theme = defaultTheme,
|
|
12606
12622
|
value,
|
|
12607
12623
|
inputProps = {}
|
|
12608
12624
|
} = props,
|
|
@@ -12681,9 +12697,7 @@ const CLASSNAME$d = getRootClassName(COMPONENT_NAME$d);
|
|
|
12681
12697
|
/**
|
|
12682
12698
|
* Component default props.
|
|
12683
12699
|
*/
|
|
12684
|
-
const DEFAULT_PROPS$d = {
|
|
12685
|
-
theme: Theme.light
|
|
12686
|
-
};
|
|
12700
|
+
const DEFAULT_PROPS$d = {};
|
|
12687
12701
|
|
|
12688
12702
|
/**
|
|
12689
12703
|
* Table component.
|
|
@@ -12693,12 +12707,13 @@ const DEFAULT_PROPS$d = {
|
|
|
12693
12707
|
* @return React element.
|
|
12694
12708
|
*/
|
|
12695
12709
|
const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
12710
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12696
12711
|
const {
|
|
12697
12712
|
children,
|
|
12698
12713
|
className,
|
|
12699
12714
|
hasBefore,
|
|
12700
12715
|
hasDividers,
|
|
12701
|
-
theme
|
|
12716
|
+
theme = defaultTheme
|
|
12702
12717
|
} = props,
|
|
12703
12718
|
forwardedProps = _objectWithoutProperties(props, _excluded$e);
|
|
12704
12719
|
return /*#__PURE__*/React__default.createElement("table", _extends({
|
|
@@ -13039,8 +13054,7 @@ const CLASSNAME$8 = `${CSS_PREFIX}-tabs`;
|
|
|
13039
13054
|
*/
|
|
13040
13055
|
const DEFAULT_PROPS$8 = {
|
|
13041
13056
|
layout: TabListLayout.fixed,
|
|
13042
|
-
position: Alignment.left
|
|
13043
|
-
theme: Theme.light
|
|
13057
|
+
position: Alignment.left
|
|
13044
13058
|
};
|
|
13045
13059
|
|
|
13046
13060
|
/**
|
|
@@ -13053,13 +13067,14 @@ const DEFAULT_PROPS$8 = {
|
|
|
13053
13067
|
* @return React element.
|
|
13054
13068
|
*/
|
|
13055
13069
|
const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
13070
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
13056
13071
|
const {
|
|
13057
13072
|
'aria-label': ariaLabel,
|
|
13058
13073
|
children,
|
|
13059
13074
|
className,
|
|
13060
13075
|
layout,
|
|
13061
13076
|
position,
|
|
13062
|
-
theme
|
|
13077
|
+
theme = defaultTheme
|
|
13063
13078
|
} = props,
|
|
13064
13079
|
forwardedProps = _objectWithoutProperties(props, _excluded$8);
|
|
13065
13080
|
const tabListRef = React__default.useRef(null);
|
|
@@ -13267,7 +13282,6 @@ const DEFAULT_MIN_ROWS = 2;
|
|
|
13267
13282
|
* Component default props.
|
|
13268
13283
|
*/
|
|
13269
13284
|
const DEFAULT_PROPS$5 = {
|
|
13270
|
-
theme: Theme.light,
|
|
13271
13285
|
type: 'text'
|
|
13272
13286
|
};
|
|
13273
13287
|
|
|
@@ -13380,6 +13394,7 @@ const renderInputNative = props => {
|
|
|
13380
13394
|
* @return React element.
|
|
13381
13395
|
*/
|
|
13382
13396
|
const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
13397
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
13383
13398
|
const {
|
|
13384
13399
|
chips,
|
|
13385
13400
|
className,
|
|
@@ -13407,7 +13422,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13407
13422
|
onFocus,
|
|
13408
13423
|
placeholder,
|
|
13409
13424
|
textFieldRef,
|
|
13410
|
-
theme,
|
|
13425
|
+
theme = defaultTheme,
|
|
13411
13426
|
type,
|
|
13412
13427
|
value,
|
|
13413
13428
|
afterElement
|
|
@@ -13732,8 +13747,7 @@ const CLASSNAME$4 = getRootClassName(COMPONENT_NAME$4);
|
|
|
13732
13747
|
*/
|
|
13733
13748
|
const DEFAULT_PROPS$4 = {
|
|
13734
13749
|
fallback: mdiImageBroken,
|
|
13735
|
-
loading: 'lazy'
|
|
13736
|
-
theme: Theme.light
|
|
13750
|
+
loading: 'lazy'
|
|
13737
13751
|
};
|
|
13738
13752
|
|
|
13739
13753
|
/**
|
|
@@ -13745,6 +13759,7 @@ const DEFAULT_PROPS$4 = {
|
|
|
13745
13759
|
*/
|
|
13746
13760
|
const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
13747
13761
|
var _loadingPlaceholderIm;
|
|
13762
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
13748
13763
|
const {
|
|
13749
13764
|
align,
|
|
13750
13765
|
alt,
|
|
@@ -13765,7 +13780,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13765
13780
|
loading,
|
|
13766
13781
|
loadingPlaceholderImageRef,
|
|
13767
13782
|
size,
|
|
13768
|
-
theme,
|
|
13783
|
+
theme = defaultTheme,
|
|
13769
13784
|
variant,
|
|
13770
13785
|
linkProps,
|
|
13771
13786
|
linkAs
|
|
@@ -14305,7 +14320,6 @@ const CLASSNAME$1 = getRootClassName(COMPONENT_NAME$1);
|
|
|
14305
14320
|
const DEFAULT_PROPS$1 = {
|
|
14306
14321
|
aspectRatio: AspectRatio.horizontal,
|
|
14307
14322
|
size: Size.xl,
|
|
14308
|
-
theme: Theme.light,
|
|
14309
14323
|
variant: UploaderVariant.square
|
|
14310
14324
|
};
|
|
14311
14325
|
|
|
@@ -14317,13 +14331,14 @@ const DEFAULT_PROPS$1 = {
|
|
|
14317
14331
|
* @return React element.
|
|
14318
14332
|
*/
|
|
14319
14333
|
const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
14334
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
14320
14335
|
const {
|
|
14321
14336
|
aspectRatio,
|
|
14322
14337
|
className,
|
|
14323
14338
|
label,
|
|
14324
14339
|
icon,
|
|
14325
14340
|
size,
|
|
14326
|
-
theme,
|
|
14341
|
+
theme = defaultTheme,
|
|
14327
14342
|
variant,
|
|
14328
14343
|
fileInputProps
|
|
14329
14344
|
} = props,
|
|
@@ -14413,8 +14428,7 @@ const CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
|
14413
14428
|
*/
|
|
14414
14429
|
const DEFAULT_PROPS = {
|
|
14415
14430
|
orientation: Orientation.horizontal,
|
|
14416
|
-
size: Size.m
|
|
14417
|
-
theme: Theme.light
|
|
14431
|
+
size: Size.m
|
|
14418
14432
|
};
|
|
14419
14433
|
|
|
14420
14434
|
/**
|
|
@@ -14425,6 +14439,7 @@ const DEFAULT_PROPS = {
|
|
|
14425
14439
|
* @return React element.
|
|
14426
14440
|
*/
|
|
14427
14441
|
const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
14442
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
14428
14443
|
const {
|
|
14429
14444
|
avatarProps,
|
|
14430
14445
|
className,
|
|
@@ -14440,7 +14455,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
14440
14455
|
orientation,
|
|
14441
14456
|
simpleAction,
|
|
14442
14457
|
size,
|
|
14443
|
-
theme
|
|
14458
|
+
theme = defaultTheme
|
|
14444
14459
|
} = props,
|
|
14445
14460
|
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
14446
14461
|
let componentSize = size;
|
|
@@ -14513,5 +14528,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
14513
14528
|
UserBlock.className = CLASSNAME;
|
|
14514
14529
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
14515
14530
|
|
|
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 };
|
|
14531
|
+
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
14532
|
//# sourceMappingURL=index.js.map
|