@coreui/react 4.9.0-alpha.1 → 4.9.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2492,6 +2492,46 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
2492
2492
  }) : {};
2493
2493
  var CSSTransition$1 = CSSTransition;
2494
2494
 
2495
+ var getStoredTheme = function (localStorageItemName) { return localStorage.getItem(localStorageItemName); };
2496
+ var setStoredTheme = function (localStorageItemName, colorMode) {
2497
+ return localStorage.setItem(localStorageItemName, colorMode);
2498
+ };
2499
+ var getPreferredColorScheme = function (localStorageItemName) {
2500
+ var storedTheme = getStoredTheme(localStorageItemName);
2501
+ if (storedTheme) {
2502
+ return storedTheme;
2503
+ }
2504
+ return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
2505
+ };
2506
+ var setTheme = function (colorMode) {
2507
+ document.documentElement.dataset.coreuiTheme =
2508
+ colorMode === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches
2509
+ ? 'dark'
2510
+ : colorMode;
2511
+ var event = new Event('ColorSchemeChange');
2512
+ document.documentElement.dispatchEvent(event);
2513
+ };
2514
+ var useColorModes = function (localStorageItemName) {
2515
+ if (localStorageItemName === void 0) { localStorageItemName = 'coreui-react-color-scheme'; }
2516
+ var _a = React.useState(getPreferredColorScheme(localStorageItemName)), colorMode = _a[0], setColorMode = _a[1];
2517
+ React.useEffect(function () {
2518
+ setStoredTheme(localStorageItemName, colorMode);
2519
+ setTheme(colorMode);
2520
+ }, [colorMode]);
2521
+ React.useEffect(function () {
2522
+ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function () {
2523
+ var storedTheme = getStoredTheme(localStorageItemName);
2524
+ if (storedTheme !== 'light' && storedTheme !== 'dark') {
2525
+ setTheme(colorMode);
2526
+ }
2527
+ });
2528
+ }, []);
2529
+ return {
2530
+ getColorMode: function () { return colorMode; },
2531
+ setColorMode: function (mode) { return setColorMode(mode); },
2532
+ };
2533
+ };
2534
+
2495
2535
  // code borrowed from https://github.com/reach/reach-ui
2496
2536
  // problem described https://github.com/facebook/react/issues/13029
2497
2537
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -2525,7 +2565,7 @@ value) {
2525
2565
  try {
2526
2566
  ref.current = value;
2527
2567
  }
2528
- catch (error) {
2568
+ catch (_a) {
2529
2569
  throw new Error("Cannot assign value \"".concat(value, "\" to ref \"").concat(ref, "\""));
2530
2570
  }
2531
2571
  }
@@ -2697,7 +2737,10 @@ var textColorsPropType = PropTypes.oneOfType([
2697
2737
  PropTypes.oneOf(['white', 'muted']),
2698
2738
  PropTypes.string,
2699
2739
  ]);
2700
- var triggerPropType = PropTypes.oneOf(['hover', 'focus', 'click']);
2740
+ var triggerPropType = PropTypes.oneOfType([
2741
+ PropTypes.arrayOf(PropTypes.oneOf(['hover', 'focus', 'click']).isRequired),
2742
+ PropTypes.oneOf(['hover', 'focus', 'click']),
2743
+ ]);
2701
2744
 
2702
2745
  var CAlert = React.forwardRef(function (_a, ref) {
2703
2746
  var children = _a.children, className = _a.className, _b = _a.color, color = _b === void 0 ? 'primary' : _b, dismissible = _a.dismissible, variant = _a.variant, _c = _a.visible, visible = _c === void 0 ? true : _c, onClose = _a.onClose, rest = __rest(_a, ["children", "className", "color", "dismissible", "variant", "visible", "onClose"]);
@@ -3042,7 +3085,7 @@ var isInViewport = function (element) {
3042
3085
  };
3043
3086
 
3044
3087
  var isRTL = function (element) {
3045
- if (document.documentElement.dir === 'rtl') {
3088
+ if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
3046
3089
  return true;
3047
3090
  }
3048
3091
  if (element) {
@@ -3827,17 +3870,7 @@ function effect$1(_ref2) {
3827
3870
  }
3828
3871
  }
3829
3872
 
3830
- if (process.env.NODE_ENV !== "production") {
3831
- if (!isHTMLElement(arrowElement)) {
3832
- console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
3833
- }
3834
- }
3835
-
3836
3873
  if (!contains(state.elements.popper, arrowElement)) {
3837
- if (process.env.NODE_ENV !== "production") {
3838
- console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
3839
- }
3840
-
3841
3874
  return;
3842
3875
  }
3843
3876
 
@@ -3979,17 +4012,6 @@ function computeStyles(_ref5) {
3979
4012
  adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
3980
4013
  _options$roundOffsets = options.roundOffsets,
3981
4014
  roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
3982
-
3983
- if (process.env.NODE_ENV !== "production") {
3984
- var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
3985
-
3986
- if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
3987
- return transitionProperty.indexOf(property) >= 0;
3988
- })) {
3989
- console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
3990
- }
3991
- }
3992
-
3993
4015
  var commonStyles = {
3994
4016
  placement: getBasePlacement(state.placement),
3995
4017
  variation: getVariation(state.placement),
@@ -4430,10 +4452,6 @@ function computeAutoPlacement(state, options) {
4430
4452
 
4431
4453
  if (allowedPlacements.length === 0) {
4432
4454
  allowedPlacements = placements$1;
4433
-
4434
- if (process.env.NODE_ENV !== "production") {
4435
- console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
4436
- }
4437
4455
  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
4438
4456
 
4439
4457
 
@@ -4985,108 +5003,6 @@ function debounce(fn) {
4985
5003
  };
4986
5004
  }
4987
5005
 
4988
- function format(str) {
4989
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4990
- args[_key - 1] = arguments[_key];
4991
- }
4992
-
4993
- return [].concat(args).reduce(function (p, c) {
4994
- return p.replace(/%s/, c);
4995
- }, str);
4996
- }
4997
-
4998
- var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
4999
- var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
5000
- var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
5001
- function validateModifiers(modifiers) {
5002
- modifiers.forEach(function (modifier) {
5003
- [].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
5004
- .filter(function (value, index, self) {
5005
- return self.indexOf(value) === index;
5006
- }).forEach(function (key) {
5007
- switch (key) {
5008
- case 'name':
5009
- if (typeof modifier.name !== 'string') {
5010
- console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
5011
- }
5012
-
5013
- break;
5014
-
5015
- case 'enabled':
5016
- if (typeof modifier.enabled !== 'boolean') {
5017
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
5018
- }
5019
-
5020
- break;
5021
-
5022
- case 'phase':
5023
- if (modifierPhases.indexOf(modifier.phase) < 0) {
5024
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
5025
- }
5026
-
5027
- break;
5028
-
5029
- case 'fn':
5030
- if (typeof modifier.fn !== 'function') {
5031
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
5032
- }
5033
-
5034
- break;
5035
-
5036
- case 'effect':
5037
- if (modifier.effect != null && typeof modifier.effect !== 'function') {
5038
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
5039
- }
5040
-
5041
- break;
5042
-
5043
- case 'requires':
5044
- if (modifier.requires != null && !Array.isArray(modifier.requires)) {
5045
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
5046
- }
5047
-
5048
- break;
5049
-
5050
- case 'requiresIfExists':
5051
- if (!Array.isArray(modifier.requiresIfExists)) {
5052
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
5053
- }
5054
-
5055
- break;
5056
-
5057
- case 'options':
5058
- case 'data':
5059
- break;
5060
-
5061
- default:
5062
- console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
5063
- return "\"" + s + "\"";
5064
- }).join(', ') + "; but \"" + key + "\" was provided.");
5065
- }
5066
-
5067
- modifier.requires && modifier.requires.forEach(function (requirement) {
5068
- if (modifiers.find(function (mod) {
5069
- return mod.name === requirement;
5070
- }) == null) {
5071
- console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
5072
- }
5073
- });
5074
- });
5075
- });
5076
- }
5077
-
5078
- function uniqueBy(arr, fn) {
5079
- var identifiers = new Set();
5080
- return arr.filter(function (item) {
5081
- var identifier = fn(item);
5082
-
5083
- if (!identifiers.has(identifier)) {
5084
- identifiers.add(identifier);
5085
- return true;
5086
- }
5087
- });
5088
- }
5089
-
5090
5006
  function mergeByName(modifiers) {
5091
5007
  var merged = modifiers.reduce(function (merged, current) {
5092
5008
  var existing = merged[current.name];
@@ -5102,8 +5018,6 @@ function mergeByName(modifiers) {
5102
5018
  });
5103
5019
  }
5104
5020
 
5105
- var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
5106
- var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
5107
5021
  var DEFAULT_OPTIONS = {
5108
5022
  placement: 'bottom',
5109
5023
  modifiers: [],
@@ -5165,42 +5079,7 @@ function popperGenerator(generatorOptions) {
5165
5079
 
5166
5080
  state.orderedModifiers = orderedModifiers.filter(function (m) {
5167
5081
  return m.enabled;
5168
- }); // Validate the provided modifiers so that the consumer will get warned
5169
- // if one of the modifiers is invalid for any reason
5170
-
5171
- if (process.env.NODE_ENV !== "production") {
5172
- var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
5173
- var name = _ref.name;
5174
- return name;
5175
- });
5176
- validateModifiers(modifiers);
5177
-
5178
- if (getBasePlacement(state.options.placement) === auto) {
5179
- var flipModifier = state.orderedModifiers.find(function (_ref2) {
5180
- var name = _ref2.name;
5181
- return name === 'flip';
5182
- });
5183
-
5184
- if (!flipModifier) {
5185
- console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
5186
- }
5187
- }
5188
-
5189
- var _getComputedStyle = getComputedStyle$1(popper),
5190
- marginTop = _getComputedStyle.marginTop,
5191
- marginRight = _getComputedStyle.marginRight,
5192
- marginBottom = _getComputedStyle.marginBottom,
5193
- marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
5194
- // cause bugs with positioning, so we'll warn the consumer
5195
-
5196
-
5197
- if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
5198
- return parseFloat(margin);
5199
- })) {
5200
- console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
5201
- }
5202
- }
5203
-
5082
+ });
5204
5083
  runModifierEffects();
5205
5084
  return instance.update();
5206
5085
  },
@@ -5220,10 +5099,6 @@ function popperGenerator(generatorOptions) {
5220
5099
  // anymore
5221
5100
 
5222
5101
  if (!areValidElements(reference, popper)) {
5223
- if (process.env.NODE_ENV !== "production") {
5224
- console.error(INVALID_ELEMENT_ERROR);
5225
- }
5226
-
5227
5102
  return;
5228
5103
  } // Store the reference and popper rects to be read by modifiers
5229
5104
 
@@ -5246,18 +5121,8 @@ function popperGenerator(generatorOptions) {
5246
5121
  state.orderedModifiers.forEach(function (modifier) {
5247
5122
  return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
5248
5123
  });
5249
- var __debug_loops__ = 0;
5250
5124
 
5251
5125
  for (var index = 0; index < state.orderedModifiers.length; index++) {
5252
- if (process.env.NODE_ENV !== "production") {
5253
- __debug_loops__ += 1;
5254
-
5255
- if (__debug_loops__ > 100) {
5256
- console.error(INFINITE_LOOP_ERROR);
5257
- break;
5258
- }
5259
- }
5260
-
5261
5126
  if (state.reset === true) {
5262
5127
  state.reset = false;
5263
5128
  index = -1;
@@ -5295,10 +5160,6 @@ function popperGenerator(generatorOptions) {
5295
5160
  };
5296
5161
 
5297
5162
  if (!areValidElements(reference, popper)) {
5298
- if (process.env.NODE_ENV !== "production") {
5299
- console.error(INVALID_ELEMENT_ERROR);
5300
- }
5301
-
5302
5163
  return instance;
5303
5164
  }
5304
5165
 
@@ -5313,11 +5174,11 @@ function popperGenerator(generatorOptions) {
5313
5174
  // one.
5314
5175
 
5315
5176
  function runModifierEffects() {
5316
- state.orderedModifiers.forEach(function (_ref3) {
5317
- var name = _ref3.name,
5318
- _ref3$options = _ref3.options,
5319
- options = _ref3$options === void 0 ? {} : _ref3$options,
5320
- effect = _ref3.effect;
5177
+ state.orderedModifiers.forEach(function (_ref) {
5178
+ var name = _ref.name,
5179
+ _ref$options = _ref.options,
5180
+ options = _ref$options === void 0 ? {} : _ref$options,
5181
+ effect = _ref.effect;
5321
5182
 
5322
5183
  if (typeof effect === 'function') {
5323
5184
  var cleanupFn = effect({
@@ -6199,7 +6060,8 @@ var CFormSelect = React.forwardRef(function (_a, ref) {
6199
6060
  _b), className), size: htmlSize }, rest, { ref: ref }), options
6200
6061
  ? options.map(function (option, index) {
6201
6062
  return (React.createElement("option", __assign({}, (typeof option === 'object' &&
6202
- option.disabled && { disabled: option.disabled }), (typeof option === 'object' && option.value && { value: option.value }), { key: index }), typeof option === 'string' ? option : option.label));
6063
+ option.disabled && { disabled: option.disabled }), (typeof option === 'object' &&
6064
+ option.value !== undefined && { value: option.value }), { key: index }), typeof option === 'string' ? option : option.label));
6203
6065
  })
6204
6066
  : children)));
6205
6067
  });
@@ -6627,6 +6489,7 @@ var CModal = React.forwardRef(function (_a, ref) {
6627
6489
  if (backdrop === 'static') {
6628
6490
  return setStaticBackdrop(true);
6629
6491
  }
6492
+ setVisible(false);
6630
6493
  return onClose && onClose();
6631
6494
  };
6632
6495
  React.useLayoutEffect(function () {
@@ -7173,6 +7036,7 @@ CProgressBar.propTypes = {
7173
7036
  };
7174
7037
  CProgressBar.displayName = 'CProgressBar';
7175
7038
 
7039
+ // TODO: update markup and add '.progress-stacked' in v5
7176
7040
  var CProgress = React.forwardRef(function (_a, ref) {
7177
7041
  var children = _a.children, className = _a.className, height = _a.height, thin = _a.thin, _b = _a.value, value = _b === void 0 ? 0 : _b, white = _a.white, rest = __rest(_a, ["children", "className", "height", "thin", "value", "white"]);
7178
7042
  return (React.createElement("div", { className: classNames('progress', {
@@ -7191,7 +7055,6 @@ CProgress.propTypes = {
7191
7055
  CProgress.displayName = 'CProgress';
7192
7056
 
7193
7057
  var getPlacement$1 = function (placement, element) {
7194
- console.log(element);
7195
7058
  switch (placement) {
7196
7059
  case 'right': {
7197
7060
  return isRTL(element) ? 'left' : 'right';
@@ -7306,7 +7169,7 @@ var CSidebar = React.forwardRef(function (_a, ref) {
7306
7169
  var _a, _b;
7307
7170
  sidebarRef.current && setMobile(isOnMobile(sidebarRef.current));
7308
7171
  sidebarRef.current && setInViewport(isInViewport(sidebarRef.current));
7309
- window.addEventListener('resize', function () { return handleResize(); });
7172
+ window.addEventListener('resize', handleResize);
7310
7173
  window.addEventListener('mouseup', handleClickOutside);
7311
7174
  window.addEventListener('keyup', handleKeyup);
7312
7175
  (_a = sidebarRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseup', handleOnClick);
@@ -7315,7 +7178,7 @@ var CSidebar = React.forwardRef(function (_a, ref) {
7315
7178
  });
7316
7179
  return function () {
7317
7180
  var _a, _b;
7318
- window.removeEventListener('resize', function () { return handleResize(); });
7181
+ window.removeEventListener('resize', handleResize);
7319
7182
  window.removeEventListener('mouseup', handleClickOutside);
7320
7183
  window.removeEventListener('keyup', handleKeyup);
7321
7184
  (_a = sidebarRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseup', handleOnClick);
@@ -7424,8 +7287,12 @@ CSidebarHeader.propTypes = {
7424
7287
  CSidebarHeader.displayName = 'CSidebarHeader';
7425
7288
 
7426
7289
  var CSpinner = React.forwardRef(function (_a, ref) {
7427
- var className = _a.className, color = _a.color, _b = _a.component, Component = _b === void 0 ? 'div' : _b, size = _a.size, _c = _a.variant, variant = _c === void 0 ? 'border' : _c, _d = _a.visuallyHiddenLabel, visuallyHiddenLabel = _d === void 0 ? 'Loading...' : _d, rest = __rest(_a, ["className", "color", "component", "size", "variant", "visuallyHiddenLabel"]);
7428
- return (React.createElement(Component, __assign({ className: classNames("spinner-".concat(variant), "text-".concat(color), size && "spinner-".concat(variant, "-").concat(size), className), role: "status" }, rest, { ref: ref }),
7290
+ var _b;
7291
+ var className = _a.className, color = _a.color, _c = _a.component, Component = _c === void 0 ? 'div' : _c, size = _a.size, _d = _a.variant, variant = _d === void 0 ? 'border' : _d, _e = _a.visuallyHiddenLabel, visuallyHiddenLabel = _e === void 0 ? 'Loading...' : _e, rest = __rest(_a, ["className", "color", "component", "size", "variant", "visuallyHiddenLabel"]);
7292
+ return (React.createElement(Component, __assign({ className: classNames("spinner-".concat(variant), (_b = {},
7293
+ _b["spinner-".concat(variant, "-").concat(size)] = size,
7294
+ _b["text-".concat(color)] = color,
7295
+ _b), className), role: "status" }, rest, { ref: ref }),
7429
7296
  React.createElement("span", { className: "visually-hidden" }, visuallyHiddenLabel)));
7430
7297
  });
7431
7298
  CSpinner.propTypes = {
@@ -7596,7 +7463,8 @@ var CTable = React.forwardRef(function (_a, ref) {
7596
7463
  React.createElement(CTableRow, null, columns.map(function (column, index) { return (React.createElement(CTableHeaderCell, __assign({}, (column._props && __assign({}, column._props)), (column._style && { style: __assign({}, column._style) }), { key: index }), getColumnLabel(column))); })))),
7597
7464
  items && (React.createElement(CTableBody, null, items.map(function (item, index) { return (React.createElement(CTableRow, __assign({}, (item._props && __assign({}, item._props)), { key: index }), columnNames &&
7598
7465
  columnNames.map(function (colName, index) {
7599
- return item[colName] ? (React.createElement(CTableDataCell, __assign({}, (item._cellProps && __assign(__assign({}, (item._cellProps['all'] && __assign({}, item._cellProps['all']))), (item._cellProps[colName] && __assign({}, item._cellProps[colName])))), { key: index }), item[colName])) : null;
7466
+ // eslint-disable-next-line unicorn/no-negated-condition
7467
+ return item[colName] !== undefined ? (React.createElement(CTableDataCell, __assign({}, (item._cellProps && __assign(__assign({}, (item._cellProps['all'] && __assign({}, item._cellProps['all']))), (item._cellProps[colName] && __assign({}, item._cellProps[colName])))), { key: index }), item[colName])) : null;
7600
7468
  }))); }))),
7601
7469
  children,
7602
7470
  footer && (React.createElement(CTableFoot, __assign({}, tableFootProps),
@@ -7795,7 +7663,6 @@ CToaster.propTypes = {
7795
7663
  CToaster.displayName = 'CToaster';
7796
7664
 
7797
7665
  var getPlacement = function (placement, element) {
7798
- console.log(element);
7799
7666
  switch (placement) {
7800
7667
  case 'right': {
7801
7668
  return isRTL(element) ? 'left' : 'right';
@@ -8133,4 +8000,6 @@ exports.CWidgetStatsC = CWidgetStatsC;
8133
8000
  exports.CWidgetStatsD = CWidgetStatsD;
8134
8001
  exports.CWidgetStatsE = CWidgetStatsE;
8135
8002
  exports.CWidgetStatsF = CWidgetStatsF;
8003
+ exports.useColorModes = useColorModes;
8004
+ exports.useForkedRef = useForkedRef;
8136
8005
  //# sourceMappingURL=index.js.map