@doist/reactist 15.2.0 → 15.3.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.
Files changed (98) hide show
  1. package/dist/reactist.cjs.development.js +90 -73
  2. package/dist/reactist.cjs.development.js.map +1 -1
  3. package/dist/reactist.cjs.production.min.js +1 -1
  4. package/dist/reactist.cjs.production.min.js.map +1 -1
  5. package/es/components/color-picker/color-picker.js +10 -10
  6. package/es/components/color-picker/color-picker.js.map +1 -1
  7. package/es/components/deprecated-button/deprecated-button.js +4 -4
  8. package/es/components/deprecated-button/deprecated-button.js.map +1 -1
  9. package/es/components/deprecated-dropdown/dropdown.js +9 -9
  10. package/es/components/deprecated-dropdown/dropdown.js.map +1 -1
  11. package/es/components/deprecated-input/input.js +3 -3
  12. package/es/components/deprecated-input/input.js.map +1 -1
  13. package/es/components/deprecated-select/select.js +3 -3
  14. package/es/components/deprecated-select/select.js.map +1 -1
  15. package/es/components/icons/CloseIcon.svg.js +3 -3
  16. package/es/components/icons/CloseIcon.svg.js.map +1 -1
  17. package/es/components/key-capturer/key-capturer.js +2 -2
  18. package/es/components/key-capturer/key-capturer.js.map +1 -1
  19. package/es/components/notification/notification.js +9 -9
  20. package/es/components/notification/notification.js.map +1 -1
  21. package/es/components/progress-bar/progress-bar.js +4 -4
  22. package/es/components/progress-bar/progress-bar.js.map +1 -1
  23. package/es/components/time/time.js +5 -5
  24. package/es/components/time/time.js.map +1 -1
  25. package/es/components/tooltip/tooltip.js +10 -10
  26. package/es/components/tooltip/tooltip.js.map +1 -1
  27. package/es/index.js +1 -0
  28. package/es/index.js.map +1 -1
  29. package/es/new-components/avatar/avatar.js +2 -2
  30. package/es/new-components/avatar/avatar.js.map +1 -1
  31. package/es/new-components/badge/badge.js +22 -0
  32. package/es/new-components/badge/badge.js.map +1 -0
  33. package/es/new-components/badge/badge.module.css.js +4 -0
  34. package/es/new-components/badge/badge.module.css.js.map +1 -0
  35. package/es/new-components/loading/loading.js +3 -3
  36. package/es/new-components/loading/loading.js.map +1 -1
  37. package/lib/components/color-picker/color-picker.d.ts +1 -1
  38. package/lib/components/color-picker/color-picker.js +1 -1
  39. package/lib/components/color-picker/color-picker.js.map +1 -1
  40. package/lib/components/deprecated-button/deprecated-button.d.ts +1 -1
  41. package/lib/components/deprecated-button/deprecated-button.js +1 -1
  42. package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
  43. package/lib/components/deprecated-dropdown/dropdown.d.ts +1 -1
  44. package/lib/components/deprecated-dropdown/dropdown.js +1 -1
  45. package/lib/components/deprecated-dropdown/dropdown.js.map +1 -1
  46. package/lib/components/deprecated-input/input.d.ts +1 -1
  47. package/lib/components/deprecated-input/input.js +1 -1
  48. package/lib/components/deprecated-input/input.js.map +1 -1
  49. package/lib/components/deprecated-select/select.js +1 -1
  50. package/lib/components/deprecated-select/select.js.map +1 -1
  51. package/lib/components/icons/CloseIcon.svg.js +1 -1
  52. package/lib/components/icons/CloseIcon.svg.js.map +1 -1
  53. package/lib/components/key-capturer/key-capturer.d.ts +1 -1
  54. package/lib/components/key-capturer/key-capturer.js +1 -1
  55. package/lib/components/key-capturer/key-capturer.js.map +1 -1
  56. package/lib/components/keyboard-shortcut/keyboard-shortcut.js +1 -1
  57. package/lib/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  58. package/lib/components/menu/menu.js +1 -1
  59. package/lib/components/menu/menu.js.map +1 -1
  60. package/lib/components/notification/notification.d.ts +1 -1
  61. package/lib/components/notification/notification.js +1 -1
  62. package/lib/components/notification/notification.js.map +1 -1
  63. package/lib/components/progress-bar/progress-bar.js +1 -1
  64. package/lib/components/progress-bar/progress-bar.js.map +1 -1
  65. package/lib/components/time/time.d.ts +1 -1
  66. package/lib/components/time/time.js +1 -1
  67. package/lib/components/time/time.js.map +1 -1
  68. package/lib/components/tooltip/tooltip.d.ts +1 -1
  69. package/lib/components/tooltip/tooltip.js +1 -1
  70. package/lib/components/tooltip/tooltip.js.map +1 -1
  71. package/lib/index.d.ts +1 -0
  72. package/lib/index.js +1 -1
  73. package/lib/new-components/avatar/avatar.js +1 -1
  74. package/lib/new-components/avatar/avatar.js.map +1 -1
  75. package/lib/new-components/badge/badge.d.ts +7 -0
  76. package/lib/new-components/badge/badge.js +2 -0
  77. package/lib/new-components/badge/badge.js.map +1 -0
  78. package/lib/new-components/badge/badge.module.css.js +2 -0
  79. package/lib/new-components/badge/badge.module.css.js.map +1 -0
  80. package/lib/new-components/badge/index.d.ts +1 -0
  81. package/lib/new-components/box/box.js +1 -1
  82. package/lib/new-components/box/box.js.map +1 -1
  83. package/lib/new-components/deprecated-modal/modal.js +1 -1
  84. package/lib/new-components/deprecated-modal/modal.js.map +1 -1
  85. package/lib/new-components/loading/loading.js +1 -1
  86. package/lib/new-components/loading/loading.js.map +1 -1
  87. package/lib/new-components/modal/modal.js +1 -1
  88. package/lib/new-components/modal/modal.js.map +1 -1
  89. package/lib/new-components/stack/stack.js +1 -1
  90. package/lib/new-components/stack/stack.js.map +1 -1
  91. package/lib/new-components/tabs/tabs.js +1 -1
  92. package/lib/new-components/tabs/tabs.js.map +1 -1
  93. package/package.json +1 -1
  94. package/styles/badge.css +5 -0
  95. package/styles/badge.module.css.css +1 -0
  96. package/styles/modal.css +1 -1
  97. package/styles/modal.module.css.css +1 -1
  98. package/styles/reactist.css +1 -0
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
7
  var React = require('react');
8
- var React__default = _interopDefault(React);
9
8
  var classNames = _interopDefault(require('classnames'));
10
9
  var flattenChildren = _interopDefault(require('react-keyed-flatten-children'));
11
10
  var tooltip = require('ariakit/tooltip');
@@ -459,7 +458,7 @@ const HIDE_DELAY = 100;
459
458
  function useDelayedTooltipState(initialState) {
460
459
  const tooltipState = tooltip.useTooltipState(initialState);
461
460
  const delay = useDelay();
462
- return React__default.useMemo(() => _objectSpread2(_objectSpread2({}, tooltipState), {}, {
461
+ return React.useMemo(() => _objectSpread2(_objectSpread2({}, tooltipState), {}, {
463
462
  show: delay(() => tooltipState.show(), SHOW_DELAY),
464
463
  hide: delay(() => tooltipState.hide(), HIDE_DELAY)
465
464
  }), [delay, tooltipState]);
@@ -479,7 +478,7 @@ function Tooltip(_ref) {
479
478
  placement: position,
480
479
  gutter: gapSize
481
480
  });
482
- const child = React__default.Children.only(children);
481
+ const child = React.Children.only(children);
483
482
 
484
483
  if (!content || !child) {
485
484
  return child;
@@ -519,7 +518,7 @@ function Tooltip(_ref) {
519
518
  child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.onFocus == null ? void 0 : _child$props.onFocus(event);
520
519
  }
521
520
 
522
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(tooltip.TooltipAnchor, {
521
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(tooltip.TooltipAnchor, {
523
522
  state: state,
524
523
  ref: child.ref,
525
524
  onFocus: handleFocus
@@ -527,8 +526,8 @@ function Tooltip(_ref) {
527
526
  // Let child props override anchor props so user can specify attributes like tabIndex
528
527
  // Also, do not apply the child's props to TooltipAnchor as props like `as` can create problems
529
528
  // by applying the replacement component/element twice
530
- return /*#__PURE__*/React__default.cloneElement(child, _objectSpread2(_objectSpread2({}, anchorProps), child.props));
531
- }), state.visible ? /*#__PURE__*/React__default.createElement(tooltip.Tooltip, _objectSpread2(_objectSpread2({}, props), {}, {
529
+ return /*#__PURE__*/React.cloneElement(child, _objectSpread2(_objectSpread2({}, anchorProps), child.props));
530
+ }), state.visible ? /*#__PURE__*/React.createElement(tooltip.Tooltip, _objectSpread2(_objectSpread2({}, props), {}, {
532
531
  state: state,
533
532
  className: classNames('reactist_tooltip', className)
534
533
  }), typeof content === 'function' ? content() : content) : null);
@@ -548,15 +547,15 @@ function Tooltip(_ref) {
548
547
  */
549
548
 
550
549
  function useDelay() {
551
- const timeoutRef = React__default.useRef();
552
- const clearTimeouts = React__default.useCallback(function clearTimeouts() {
550
+ const timeoutRef = React.useRef();
551
+ const clearTimeouts = React.useCallback(function clearTimeouts() {
553
552
  if (timeoutRef.current != null) {
554
553
  clearTimeout(timeoutRef.current);
555
554
  }
556
555
  }, []); // Runs clearTimeouts when the component is unmounted
557
556
 
558
- React__default.useEffect(() => clearTimeouts, [clearTimeouts]);
559
- return React__default.useCallback(function delay(fn, delay) {
557
+ React.useEffect(() => clearTimeouts, [clearTimeouts]);
558
+ return React.useCallback(function delay(fn, delay) {
560
559
  return () => {
561
560
  clearTimeouts();
562
561
  timeoutRef.current = setTimeout(fn, delay);
@@ -829,14 +828,14 @@ function Loading(_ref) {
829
828
 
830
829
  const numericSize = (_sizeMapping$size = sizeMapping[size]) != null ? _sizeMapping$size : sizeMapping.small;
831
830
  const ariaLabel = props['aria-label'] ? props['aria-label'] : !props['aria-labelledby'] ? 'Loading…' : undefined;
832
- return /*#__PURE__*/React__default.createElement(Box, _objectSpread2(_objectSpread2({}, props), {}, {
831
+ return /*#__PURE__*/React.createElement(Box, _objectSpread2(_objectSpread2({}, props), {}, {
833
832
  "aria-label": ariaLabel,
834
833
  className: exceptionallySetClassName,
835
834
  display: "flex",
836
835
  alignItems: "center",
837
836
  justifyContent: "center",
838
837
  role: "progressbar"
839
- }), /*#__PURE__*/React__default.createElement(Spinner, {
838
+ }), /*#__PURE__*/React.createElement(Spinner, {
840
839
  size: numericSize,
841
840
  "aria-hidden": true
842
841
  }));
@@ -1595,7 +1594,7 @@ function Avatar(_ref) {
1595
1594
  backgroundColor: colorList[emailToIndex(user.email, colorList.length)]
1596
1595
  };
1597
1596
  const sizeClassName = getClassNames(modules_08f3eeac, 'size', avatarSize);
1598
- return /*#__PURE__*/React__default.createElement(Box, _objectSpread2({
1597
+ return /*#__PURE__*/React.createElement(Box, _objectSpread2({
1599
1598
  className: [className, modules_08f3eeac.avatar, sizeClassName, exceptionallySetClassName],
1600
1599
  style: style
1601
1600
  }, props), userInitials);
@@ -1603,9 +1602,26 @@ function Avatar(_ref) {
1603
1602
 
1604
1603
  Avatar.displayName = 'Avatar';
1605
1604
 
1605
+ var modules_33c7c985 = {"badge":"_0b1e00ed","badge-neutral":"dda494a5","badge-positive":"_9260b8b0","badge-color":"_73a14c03"};
1606
+
1607
+ const _excluded$n = ["variant", "children"];
1608
+
1609
+ function Badge(_ref) {
1610
+ let {
1611
+ variant = 'neutral',
1612
+ children
1613
+ } = _ref,
1614
+ rest = _objectWithoutProperties(_ref, _excluded$n);
1615
+
1616
+ const variantClassName = modules_33c7c985["badge-" + variant];
1617
+ return /*#__PURE__*/React.createElement(Box, _objectSpread2(_objectSpread2({}, rest), {}, {
1618
+ className: [modules_33c7c985.badge, variantClassName]
1619
+ }), children);
1620
+ }
1621
+
1606
1622
  var modules_8f59d13b = {"overlay":"_868392ae","fadein":"_63d7ee15","fitContent":"b8548bf2","container":"_31956461","full":"_1007df83","large":"_10c275aa","medium":"_0ac526b4","small":"_30f38fdb","xlarge":"_54868e8b","expand":"c0bc68bc","buttonContainer":"_6527332a","headerContent":"_4750dc1b"};
1607
1623
 
1608
- const _excluded$n = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
1624
+ const _excluded$o = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
1609
1625
  _excluded2$1 = ["children", "button", "withDivider", "exceptionallySetClassName"],
1610
1626
  _excluded3 = ["exceptionallySetClassName", "children"],
1611
1627
  _excluded4 = ["exceptionallySetClassName", "withDivider"],
@@ -1639,7 +1655,7 @@ function Modal(_ref) {
1639
1655
  autoFocus = true,
1640
1656
  children
1641
1657
  } = _ref,
1642
- props = _objectWithoutProperties(_ref, _excluded$n);
1658
+ props = _objectWithoutProperties(_ref, _excluded$o);
1643
1659
 
1644
1660
  const setVisible = React.useCallback(visible => {
1645
1661
  if (!visible) {
@@ -1883,7 +1899,7 @@ function usePrevious(value) {
1883
1899
 
1884
1900
  var modules_40c67f5b = {"tab":"a1064a3b","track":"_06f1b8a1","tab-neutral":"dabbec7d","tab-themed":"e6f5ae4e","track-neutral":"_43913ce5","track-themed":"_39bdfdde","track-xsmall":"_1c148f4e","track-small":"_2a370df5","track-medium":"_77430437","track-large":"_33db5352","track-xlarge":"_60bf9564","track-xxlarge":"_29a35080"};
1885
1901
 
1886
- const _excluded$o = ["as", "children", "id", "exceptionallySetClassName"],
1902
+ const _excluded$p = ["as", "children", "id", "exceptionallySetClassName"],
1887
1903
  _excluded2$2 = ["children", "space"],
1888
1904
  _excluded3$1 = ["children", "id", "as", "render"];
1889
1905
  const TabsContext = /*#__PURE__*/React.createContext(null);
@@ -1933,7 +1949,7 @@ const Tab = /*#__PURE__*/polymorphicComponent(function Tab(_ref, ref) {
1933
1949
  id,
1934
1950
  exceptionallySetClassName
1935
1951
  } = _ref,
1936
- props = _objectWithoutProperties(_ref, _excluded$o);
1952
+ props = _objectWithoutProperties(_ref, _excluded$p);
1937
1953
 
1938
1954
  const tabContextValue = React.useContext(TabsContext);
1939
1955
 
@@ -2042,12 +2058,12 @@ function TabAwareSlot({
2042
2058
  }) : null;
2043
2059
  }
2044
2060
 
2045
- const _excluded$p = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
2061
+ const _excluded$q = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
2046
2062
  /**
2047
2063
  * @deprecated
2048
2064
  */
2049
2065
 
2050
- const Button$1 = /*#__PURE__*/React__default.forwardRef(function Button(_ref, ref) {
2066
+ const Button$1 = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
2051
2067
  let {
2052
2068
  type = 'button',
2053
2069
  variant,
@@ -2058,19 +2074,19 @@ const Button$1 = /*#__PURE__*/React__default.forwardRef(function Button(_ref, re
2058
2074
  onClick,
2059
2075
  children
2060
2076
  } = _ref,
2061
- props = _objectWithoutProperties(_ref, _excluded$p);
2077
+ props = _objectWithoutProperties(_ref, _excluded$q);
2062
2078
 
2063
2079
  const className = classNames('reactist_button', variant ? "reactist_button--" + variant : null, size !== 'default' ? "reactist_button--" + size : null, {
2064
2080
  'reactist_button--loading': loading
2065
2081
  }, props.className);
2066
- const button = /*#__PURE__*/React__default.createElement("button", _objectSpread2(_objectSpread2({}, props), {}, {
2082
+ const button = /*#__PURE__*/React.createElement("button", _objectSpread2(_objectSpread2({}, props), {}, {
2067
2083
  ref: ref,
2068
2084
  type: type,
2069
2085
  className: className,
2070
2086
  "aria-disabled": disabled || loading,
2071
2087
  onClick: disabled || loading ? undefined : onClick
2072
2088
  }), children);
2073
- return tooltip ? /*#__PURE__*/React__default.createElement(Tooltip, {
2089
+ return tooltip ? /*#__PURE__*/React.createElement(Tooltip, {
2074
2090
  content: tooltip
2075
2091
  }, button) : button;
2076
2092
  });
@@ -2081,9 +2097,9 @@ Button$1.defaultProps = {
2081
2097
  disabled: false
2082
2098
  };
2083
2099
 
2084
- const _excluded$q = ["children", "onClick", "tooltip", "className"];
2100
+ const _excluded$r = ["children", "onClick", "tooltip", "className"];
2085
2101
 
2086
- class Box$1 extends React__default.Component {
2102
+ class Box$1 extends React.Component {
2087
2103
  constructor(props, context) {
2088
2104
  super(props, context);
2089
2105
  this._timeout = void 0;
@@ -2170,7 +2186,7 @@ class Box$1 extends React__default.Component {
2170
2186
 
2171
2187
  const _trigger = (_this$props$children = this.props.children) == null ? void 0 : _this$props$children[0];
2172
2188
 
2173
- return _trigger ? /*#__PURE__*/React__default.cloneElement(_trigger, {
2189
+ return _trigger ? /*#__PURE__*/React.cloneElement(_trigger, {
2174
2190
  onClick: this._toggleShowBody
2175
2191
  }) : undefined;
2176
2192
  } // https://facebook.github.io/react/docs/refs-and-the-dom.html#exposing-dom-refs-to-parent-components
@@ -2200,8 +2216,8 @@ class Box$1 extends React__default.Component {
2200
2216
  bottom: !top
2201
2217
  });
2202
2218
  const body = children == null ? void 0 : children[1];
2203
- const contentMarkup = typeof body === 'function' ? body(props) : body ? /*#__PURE__*/React__default.cloneElement(body, props) : undefined;
2204
- return /*#__PURE__*/React__default.createElement("div", {
2219
+ const contentMarkup = typeof body === 'function' ? body(props) : body ? /*#__PURE__*/React.cloneElement(body, props) : undefined;
2220
+ return /*#__PURE__*/React.createElement("div", {
2205
2221
  className: className,
2206
2222
  style: {
2207
2223
  position: 'relative'
@@ -2214,7 +2230,7 @@ class Box$1 extends React__default.Component {
2214
2230
  const {
2215
2231
  top
2216
2232
  } = this.state;
2217
- return /*#__PURE__*/React__default.createElement("div", {
2233
+ return /*#__PURE__*/React.createElement("div", {
2218
2234
  style: {
2219
2235
  display: 'inline-block'
2220
2236
  },
@@ -2227,14 +2243,14 @@ class Box$1 extends React__default.Component {
2227
2243
 
2228
2244
  Box$1.displayName = void 0;
2229
2245
  Box$1.displayName = 'Dropdown.Box';
2230
- const Trigger = /*#__PURE__*/React__default.forwardRef(function Trigger(_ref, ref) {
2246
+ const Trigger = /*#__PURE__*/React.forwardRef(function Trigger(_ref, ref) {
2231
2247
  let {
2232
2248
  children,
2233
2249
  onClick,
2234
2250
  tooltip,
2235
2251
  className
2236
2252
  } = _ref,
2237
- props = _objectWithoutProperties(_ref, _excluded$q);
2253
+ props = _objectWithoutProperties(_ref, _excluded$r);
2238
2254
 
2239
2255
  function handleClick(event) {
2240
2256
  event.preventDefault();
@@ -2242,7 +2258,7 @@ const Trigger = /*#__PURE__*/React__default.forwardRef(function Trigger(_ref, re
2242
2258
  if (onClick) onClick(event);
2243
2259
  }
2244
2260
 
2245
- return /*#__PURE__*/React__default.createElement(Button$1, _objectSpread2(_objectSpread2({}, props), {}, {
2261
+ return /*#__PURE__*/React.createElement(Button$1, _objectSpread2(_objectSpread2({}, props), {}, {
2246
2262
  className: classNames('trigger', className),
2247
2263
  onClick: handleClick,
2248
2264
  tooltip: tooltip,
@@ -2273,7 +2289,7 @@ function Body({
2273
2289
  style.left = 0;
2274
2290
  }
2275
2291
 
2276
- return /*#__PURE__*/React__default.createElement("div", {
2292
+ return /*#__PURE__*/React.createElement("div", {
2277
2293
  ref: setPosition,
2278
2294
  style: style,
2279
2295
  className: "body",
@@ -2304,26 +2320,26 @@ function ColorPicker({
2304
2320
  onChange,
2305
2321
  colorList = COLORS
2306
2322
  }) {
2307
- return /*#__PURE__*/React__default.createElement(Dropdown.Box, {
2323
+ return /*#__PURE__*/React.createElement(Dropdown.Box, {
2308
2324
  right: true,
2309
2325
  className: "reactist_color_picker"
2310
- }, /*#__PURE__*/React__default.createElement(Dropdown.Trigger, null, (() => {
2326
+ }, /*#__PURE__*/React.createElement(Dropdown.Trigger, null, (() => {
2311
2327
  const backgroundColor = _getColor(colorList, color);
2312
2328
 
2313
- return /*#__PURE__*/React__default.createElement("span", {
2329
+ return /*#__PURE__*/React.createElement("span", {
2314
2330
  className: classNames('color_trigger', {
2315
2331
  small
2316
2332
  }),
2317
2333
  style: {
2318
2334
  backgroundColor: _isNamedColor(backgroundColor) ? backgroundColor.color : backgroundColor
2319
2335
  }
2320
- }, /*#__PURE__*/React__default.createElement("span", {
2336
+ }, /*#__PURE__*/React.createElement("span", {
2321
2337
  className: "color_trigger--inner_ring"
2322
2338
  }));
2323
- })()), /*#__PURE__*/React__default.createElement(Dropdown.Body, null, /*#__PURE__*/React__default.createElement("div", {
2339
+ })()), /*#__PURE__*/React.createElement(Dropdown.Body, null, /*#__PURE__*/React.createElement("div", {
2324
2340
  className: "color_options"
2325
2341
  }, colorList.reduce((items, currentColor, currentIndex) => {
2326
- items.push( /*#__PURE__*/React__default.createElement(ColorItem, {
2342
+ items.push( /*#__PURE__*/React.createElement(ColorItem, {
2327
2343
  isActive: color >= colorList.length ? currentIndex === 0 : currentIndex === color,
2328
2344
  key: currentIndex,
2329
2345
  color: _isNamedColor(currentColor) ? currentColor.color : currentColor,
@@ -2344,24 +2360,24 @@ function ColorItem({
2344
2360
  onClick,
2345
2361
  tooltip
2346
2362
  }) {
2347
- const item = /*#__PURE__*/React__default.createElement("span", {
2363
+ const item = /*#__PURE__*/React.createElement("span", {
2348
2364
  "data-testid": "reactist-color-item",
2349
2365
  className: 'reactist color_item' + (isActive ? ' active' : ''),
2350
2366
  style: {
2351
2367
  backgroundColor: color
2352
2368
  },
2353
2369
  onClick: () => onClick == null ? void 0 : onClick(colorIndex)
2354
- }, /*#__PURE__*/React__default.createElement("span", {
2370
+ }, /*#__PURE__*/React.createElement("span", {
2355
2371
  className: "color_item--inner_ring"
2356
2372
  }));
2357
- return tooltip ? /*#__PURE__*/React__default.createElement(Tooltip, {
2373
+ return tooltip ? /*#__PURE__*/React.createElement(Tooltip, {
2358
2374
  content: tooltip
2359
2375
  }, item) : item;
2360
2376
  }
2361
2377
 
2362
2378
  ColorItem.displayName = 'ColorItem';
2363
2379
 
2364
- const _excluded$r = ["children", "className", "translateKey", "isMac"];
2380
+ const _excluded$s = ["children", "className", "translateKey", "isMac"];
2365
2381
  // Support for setting up how to translate modifiers globally.
2366
2382
  //
2367
2383
 
@@ -2443,7 +2459,7 @@ function KeyboardShortcut(_ref) {
2443
2459
  translateKey = globalTranslateKey,
2444
2460
  isMac = (_navigator$platform$t = (_navigator$platform = navigator.platform) == null ? void 0 : _navigator$platform.toUpperCase().includes('MAC')) != null ? _navigator$platform$t : false
2445
2461
  } = _ref,
2446
- props = _objectWithoutProperties(_ref, _excluded$r);
2462
+ props = _objectWithoutProperties(_ref, _excluded$s);
2447
2463
 
2448
2464
  const shortcuts = typeof children === 'string' ? [children] : children;
2449
2465
  return /*#__PURE__*/React.createElement("span", _objectSpread2({
@@ -2634,7 +2650,7 @@ function KeyCapturer(props) {
2634
2650
  }
2635
2651
  }
2636
2652
 
2637
- return /*#__PURE__*/React__default.cloneElement(children, _objectSpread2({
2653
+ return /*#__PURE__*/React.cloneElement(children, _objectSpread2({
2638
2654
  [eventName]: handleKeyEvent
2639
2655
  }, composingEventHandlers));
2640
2656
  }
@@ -2646,14 +2662,14 @@ function ProgressBar({
2646
2662
  }) {
2647
2663
  const finalClassName = classNames('reactist_progress_bar', className);
2648
2664
  const width = fillPercentage < 0 ? 0 : fillPercentage > 100 ? 100 : fillPercentage;
2649
- return /*#__PURE__*/React__default.createElement("div", {
2665
+ return /*#__PURE__*/React.createElement("div", {
2650
2666
  className: finalClassName
2651
- }, /*#__PURE__*/React__default.createElement("div", {
2667
+ }, /*#__PURE__*/React.createElement("div", {
2652
2668
  className: "inner",
2653
2669
  style: {
2654
2670
  width: width + "%"
2655
2671
  }
2656
- }), /*#__PURE__*/React__default.createElement(HiddenVisually, null, /*#__PURE__*/React__default.createElement("progress", {
2672
+ }), /*#__PURE__*/React.createElement(HiddenVisually, null, /*#__PURE__*/React.createElement("progress", {
2657
2673
  value: width,
2658
2674
  max: 100,
2659
2675
  "aria-valuetext": ariaValuetext != null ? ariaValuetext : undefined
@@ -2732,7 +2748,7 @@ const TimeUtils = {
2732
2748
 
2733
2749
  const DELAY = 60000;
2734
2750
 
2735
- class Time extends React__default.Component {
2751
+ class Time extends React.Component {
2736
2752
  constructor(props) {
2737
2753
  super(props);
2738
2754
  this.refreshInterval = void 0;
@@ -2821,13 +2837,13 @@ class Time extends React__default.Component {
2821
2837
 
2822
2838
  const timeComponent = this._renderTime(this.props.config);
2823
2839
 
2824
- return /*#__PURE__*/React__default.createElement("time", {
2840
+ return /*#__PURE__*/React.createElement("time", {
2825
2841
  className: className,
2826
2842
  onMouseEnter: event => this._setHovered(true, event),
2827
2843
  onMouseLeave: event => this._setHovered(false, event)
2828
- }, this.props.tooltipOnHover ? /*#__PURE__*/React__default.createElement(Tooltip, {
2844
+ }, this.props.tooltipOnHover ? /*#__PURE__*/React.createElement(Tooltip, {
2829
2845
  content: this.props.tooltip || this.props.time && TimeUtils.formatTimeLong(this.props.time, this.props.config)
2830
- }, /*#__PURE__*/React__default.createElement("span", null, timeComponent)) : timeComponent);
2846
+ }, /*#__PURE__*/React.createElement("span", null, timeComponent)) : timeComponent);
2831
2847
  }
2832
2848
 
2833
2849
  }
@@ -2849,17 +2865,17 @@ Time.defaultProps = {
2849
2865
  }
2850
2866
  };
2851
2867
 
2852
- const CloseIcon$1 = () => /*#__PURE__*/React__default.createElement("svg", {
2868
+ const CloseIcon$1 = () => /*#__PURE__*/React.createElement("svg", {
2853
2869
  width: "24",
2854
2870
  height: "24",
2855
2871
  viewBox: "0 0 24 24"
2856
- }, /*#__PURE__*/React__default.createElement("path", {
2872
+ }, /*#__PURE__*/React.createElement("path", {
2857
2873
  fill: "gray",
2858
2874
  fillRule: "evenodd",
2859
2875
  d: "M11.293 12L5.146 5.854a.5.5 0 1 1 .708-.708L12 11.293l6.146-6.147a.5.5 0 0 1 .708.708L12.707 12l6.147 6.146a.5.5 0 0 1-.708.708L12 12.707l-6.146 6.147a.5.5 0 0 1-.708-.708L11.293 12z"
2860
2876
  }));
2861
2877
 
2862
- const _excluded$s = ["id", "icon", "title", "subtitle", "children", "customCloseButton", "onClick", "onClose", "closeAltText", "className", "aria-live"];
2878
+ const _excluded$t = ["id", "icon", "title", "subtitle", "children", "customCloseButton", "onClick", "onClose", "closeAltText", "className", "aria-live"];
2863
2879
 
2864
2880
  function Notification(_ref) {
2865
2881
  let {
@@ -2875,7 +2891,7 @@ function Notification(_ref) {
2875
2891
  className,
2876
2892
  'aria-live': ariaLive = 'polite'
2877
2893
  } = _ref,
2878
- rest = _objectWithoutProperties(_ref, _excluded$s);
2894
+ rest = _objectWithoutProperties(_ref, _excluded$t);
2879
2895
 
2880
2896
  const titleId = title ? id + "-title" : null;
2881
2897
  const titleIdAttribute = titleId ? {
@@ -2897,17 +2913,17 @@ function Notification(_ref) {
2897
2913
  const ariaDescribedBy = subtitleId && !children ? {
2898
2914
  'aria-describedby': subtitleId
2899
2915
  } : null;
2900
- const notificationContent = /*#__PURE__*/React__default.createElement("div", _objectSpread2({
2916
+ const notificationContent = /*#__PURE__*/React.createElement("div", _objectSpread2({
2901
2917
  className: "reactist-notification__content"
2902
- }, contentIdAttribute), children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, title ? /*#__PURE__*/React__default.createElement("h3", _objectSpread2({
2918
+ }, contentIdAttribute), children != null ? children : /*#__PURE__*/React.createElement(React.Fragment, null, title ? /*#__PURE__*/React.createElement("h3", _objectSpread2({
2903
2919
  className: "reactist-notification__title"
2904
- }, titleIdAttribute), title) : null, subtitle ? /*#__PURE__*/React__default.createElement("p", _objectSpread2({
2920
+ }, titleIdAttribute), title) : null, subtitle ? /*#__PURE__*/React.createElement("p", _objectSpread2({
2905
2921
  className: "reactist-notification__subtitle"
2906
2922
  }, subtitleIdAttribute), subtitle) : null));
2907
- const notificationBody = /*#__PURE__*/React__default.createElement("div", {
2923
+ const notificationBody = /*#__PURE__*/React.createElement("div", {
2908
2924
  className: "reactist-notification__icon-content-group"
2909
2925
  }, icon != null ? icon : null, notificationContent);
2910
- return /*#__PURE__*/React__default.createElement("div", _objectSpread2(_objectSpread2(_objectSpread2({
2926
+ return /*#__PURE__*/React.createElement("div", _objectSpread2(_objectSpread2(_objectSpread2({
2911
2927
  id: id,
2912
2928
  role: "alert",
2913
2929
  className: classNames('reactist-notification', className, {
@@ -2915,17 +2931,17 @@ function Notification(_ref) {
2915
2931
  'reactist-notification--with-close-button': Boolean(onClose)
2916
2932
  }),
2917
2933
  "aria-live": ariaLive
2918
- }, ariaLabelledBy), ariaDescribedBy), rest), onClick ? /*#__PURE__*/React__default.createElement("button", {
2934
+ }, ariaLabelledBy), ariaDescribedBy), rest), onClick ? /*#__PURE__*/React.createElement("button", {
2919
2935
  className: "reactist-notification__button",
2920
2936
  onClick: onClick
2921
- }, notificationBody) : notificationBody, onClose ? /*#__PURE__*/React__default.createElement("button", {
2937
+ }, notificationBody) : notificationBody, onClose ? /*#__PURE__*/React.createElement("button", {
2922
2938
  className: "reactist-notification__close-button",
2923
2939
  onClick: onClose,
2924
2940
  "aria-label": closeAltText
2925
- }, customCloseButton != null ? customCloseButton : /*#__PURE__*/React__default.createElement(CloseIcon$1, null)) : null);
2941
+ }, customCloseButton != null ? customCloseButton : /*#__PURE__*/React.createElement(CloseIcon$1, null)) : null);
2926
2942
  }
2927
2943
 
2928
- const _excluded$t = ["children", "onItemSelect"],
2944
+ const _excluded$u = ["children", "onItemSelect"],
2929
2945
  _excluded2$3 = ["exceptionallySetClassName"],
2930
2946
  _excluded3$2 = ["exceptionallySetClassName"],
2931
2947
  _excluded4$1 = ["value", "children", "onSelect", "hideOnSelect", "onClick", "exceptionallySetClassName", "as"],
@@ -2947,7 +2963,7 @@ function Menu(_ref) {
2947
2963
  children,
2948
2964
  onItemSelect
2949
2965
  } = _ref,
2950
- props = _objectWithoutProperties(_ref, _excluded$t);
2966
+ props = _objectWithoutProperties(_ref, _excluded$u);
2951
2967
 
2952
2968
  const state = Ariakit.useMenuState(_objectSpread2({
2953
2969
  focusLoop: true,
@@ -3125,16 +3141,16 @@ const MenuGroup = /*#__PURE__*/polymorphicComponent(function MenuGroup(_ref5, re
3125
3141
  }, label) : null, children);
3126
3142
  });
3127
3143
 
3128
- const Input = /*#__PURE__*/React__default.forwardRef((props, ref) => {
3144
+ const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
3129
3145
  const className = classNames('reactist_input', props.className);
3130
- return /*#__PURE__*/React__default.createElement("input", _objectSpread2(_objectSpread2({}, props), {}, {
3146
+ return /*#__PURE__*/React.createElement("input", _objectSpread2(_objectSpread2({}, props), {}, {
3131
3147
  className: className,
3132
3148
  ref: ref
3133
3149
  }));
3134
3150
  });
3135
3151
  Input.displayName = 'Input';
3136
3152
 
3137
- const _excluded$u = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
3153
+ const _excluded$v = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
3138
3154
 
3139
3155
  function Select(_ref) {
3140
3156
  let {
@@ -3145,18 +3161,18 @@ function Select(_ref) {
3145
3161
  className = '',
3146
3162
  defaultValue
3147
3163
  } = _ref,
3148
- otherProps = _objectWithoutProperties(_ref, _excluded$u);
3164
+ otherProps = _objectWithoutProperties(_ref, _excluded$v);
3149
3165
 
3150
3166
  const selectClassName = classNames('reactist_select', {
3151
3167
  disabled
3152
3168
  }, className);
3153
- return /*#__PURE__*/React__default.createElement("select", _objectSpread2({
3169
+ return /*#__PURE__*/React.createElement("select", _objectSpread2({
3154
3170
  className: selectClassName,
3155
3171
  value: value,
3156
3172
  onChange: event => onChange ? onChange(event.target.value) : undefined,
3157
3173
  disabled: disabled,
3158
3174
  defaultValue: defaultValue
3159
- }, otherProps), options == null ? void 0 : options.map(option => /*#__PURE__*/React__default.createElement("option", {
3175
+ }, otherProps), options == null ? void 0 : options.map(option => /*#__PURE__*/React.createElement("option", {
3160
3176
  key: option.key || option.value,
3161
3177
  value: option.value,
3162
3178
  disabled: option.disabled
@@ -3171,7 +3187,7 @@ Select.defaultProps = {
3171
3187
 
3172
3188
  var modules_8f59d13b$1 = {"reach-portal":"_37bef8d8","fadein":"_77f9687f","fitContent":"bcc4e0a5","container":"d4832c2d","full":"b0c3b021","large":"_573d6aa5","medium":"_8550d996","small":"_43bb18f5","xlarge":"_57b4159d","overlay":"cb63f300","expand":"e741893e","buttonContainer":"bb1ce281","headerContent":"c5ef989c"};
3173
3189
 
3174
- const _excluded$v = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
3190
+ const _excluded$w = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
3175
3191
  _excluded2$4 = ["children", "button", "withDivider", "exceptionallySetClassName"],
3176
3192
  _excluded3$3 = ["exceptionallySetClassName", "children"],
3177
3193
  _excluded4$2 = ["exceptionallySetClassName", "withDivider"],
@@ -3206,7 +3222,7 @@ function DeprecatedModal(_ref) {
3206
3222
  autoFocus = true,
3207
3223
  children
3208
3224
  } = _ref,
3209
- props = _objectWithoutProperties(_ref, _excluded$v);
3225
+ props = _objectWithoutProperties(_ref, _excluded$w);
3210
3226
 
3211
3227
  const contextValue = React.useMemo(() => ({
3212
3228
  onDismiss,
@@ -3377,6 +3393,7 @@ function DeprecatedModalActions(_ref5) {
3377
3393
 
3378
3394
  exports.Alert = Alert;
3379
3395
  exports.Avatar = Avatar;
3396
+ exports.Badge = Badge;
3380
3397
  exports.Box = Box;
3381
3398
  exports.Button = Button;
3382
3399
  exports.ButtonLink = ButtonLink;