@darajs/core 1.4.4 → 1.4.5

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.
@@ -31,8 +31,8 @@ var __publicField = (obj, key, value) => {
31
31
  const React__namespace = /* @__PURE__ */ _interopNamespace(React);
32
32
  const ReactDOM__default = /* @__PURE__ */ _interopDefaultLegacy(ReactDOM);
33
33
  const styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
34
- function _extends$3() {
35
- _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
34
+ function _extends$4() {
35
+ _extends$4 = Object.assign ? Object.assign.bind() : function(target) {
36
36
  for (var i2 = 1; i2 < arguments.length; i2++) {
37
37
  var source = arguments[i2];
38
38
  for (var key in source) {
@@ -43,7 +43,7 @@ var __publicField = (obj, key, value) => {
43
43
  }
44
44
  return target;
45
45
  };
46
- return _extends$3.apply(this, arguments);
46
+ return _extends$4.apply(this, arguments);
47
47
  }
48
48
  function isAbsolute(pathname) {
49
49
  return pathname.charAt(0) === "/";
@@ -187,7 +187,7 @@ var __publicField = (obj, key, value) => {
187
187
  location2 = parsePath(path);
188
188
  location2.state = state;
189
189
  } else {
190
- location2 = _extends$3({}, path);
190
+ location2 = _extends$4({}, path);
191
191
  if (location2.pathname === void 0)
192
192
  location2.pathname = "";
193
193
  if (location2.search) {
@@ -338,7 +338,7 @@ var __publicField = (obj, key, value) => {
338
338
  }
339
339
  var transitionManager = createTransitionManager();
340
340
  function setState(nextState) {
341
- _extends$3(history2, nextState);
341
+ _extends$4(history2, nextState);
342
342
  history2.length = globalHistory.length;
343
343
  transitionManager.notifyListeners(history2.location, history2.action);
344
344
  }
@@ -562,7 +562,7 @@ var __publicField = (obj, key, value) => {
562
562
  }
563
563
  var transitionManager = createTransitionManager();
564
564
  function setState(nextState) {
565
- _extends$3(history2, nextState);
565
+ _extends$4(history2, nextState);
566
566
  history2.length = globalHistory.length;
567
567
  transitionManager.notifyListeners(history2.location, history2.action);
568
568
  }
@@ -749,7 +749,7 @@ var __publicField = (obj, key, value) => {
749
749
  var _props = props, getUserConfirmation = _props.getUserConfirmation, _props$initialEntries = _props.initialEntries, initialEntries = _props$initialEntries === void 0 ? ["/"] : _props$initialEntries, _props$initialIndex = _props.initialIndex, initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex, _props$keyLength = _props.keyLength, keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
750
750
  var transitionManager = createTransitionManager();
751
751
  function setState(nextState) {
752
- _extends$3(history2, nextState);
752
+ _extends$4(history2, nextState);
753
753
  history2.length = history2.entries.length;
754
754
  transitionManager.notifyListeners(history2.location, history2.action);
755
755
  }
@@ -859,17 +859,17 @@ var __publicField = (obj, key, value) => {
859
859
  createRoot = m$3.createRoot;
860
860
  m$3.hydrateRoot;
861
861
  }
862
- function _setPrototypeOf$4(o2, p2) {
863
- _setPrototypeOf$4 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
862
+ function _setPrototypeOf$5(o2, p2) {
863
+ _setPrototypeOf$5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
864
864
  o3.__proto__ = p3;
865
865
  return o3;
866
866
  };
867
- return _setPrototypeOf$4(o2, p2);
867
+ return _setPrototypeOf$5(o2, p2);
868
868
  }
869
- function _inheritsLoose$1(subClass, superClass) {
869
+ function _inheritsLoose$2(subClass, superClass) {
870
870
  subClass.prototype = Object.create(superClass.prototype);
871
871
  subClass.prototype.constructor = subClass;
872
- _setPrototypeOf$4(subClass, superClass);
872
+ _setPrototypeOf$5(subClass, superClass);
873
873
  }
874
874
  var propTypes = { exports: {} };
875
875
  var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -1265,7 +1265,7 @@ var __publicField = (obj, key, value) => {
1265
1265
  module2.exports = reactIs_production_min$1;
1266
1266
  }
1267
1267
  })(reactIs$2);
1268
- function _objectWithoutPropertiesLoose$6(source, excluded) {
1268
+ function _objectWithoutPropertiesLoose$7(source, excluded) {
1269
1269
  if (source == null)
1270
1270
  return {};
1271
1271
  var target = {};
@@ -1403,7 +1403,7 @@ var __publicField = (obj, key, value) => {
1403
1403
  var _Provider$childContex, _Consumer$contextType;
1404
1404
  var contextProp = "__create-react-context-" + getUniqueId() + "__";
1405
1405
  var Provider = /* @__PURE__ */ function(_React$Component) {
1406
- _inheritsLoose$1(Provider2, _React$Component);
1406
+ _inheritsLoose$2(Provider2, _React$Component);
1407
1407
  function Provider2() {
1408
1408
  var _this;
1409
1409
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1441,7 +1441,7 @@ var __publicField = (obj, key, value) => {
1441
1441
  }(React__default.default.Component);
1442
1442
  Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = propTypes.exports.object.isRequired, _Provider$childContex);
1443
1443
  var Consumer = /* @__PURE__ */ function(_React$Component2) {
1444
- _inheritsLoose$1(Consumer2, _React$Component2);
1444
+ _inheritsLoose$2(Consumer2, _React$Component2);
1445
1445
  function Consumer2() {
1446
1446
  var _this2;
1447
1447
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
@@ -1506,7 +1506,7 @@ var __publicField = (obj, key, value) => {
1506
1506
  var historyContext = /* @__PURE__ */ createNamedContext("Router-History");
1507
1507
  var context = /* @__PURE__ */ createNamedContext("Router");
1508
1508
  var Router = /* @__PURE__ */ function(_React$Component) {
1509
- _inheritsLoose$1(Router2, _React$Component);
1509
+ _inheritsLoose$2(Router2, _React$Component);
1510
1510
  Router2.computeRootMatch = function computeRootMatch(pathname) {
1511
1511
  return {
1512
1512
  path: "/",
@@ -1575,7 +1575,7 @@ var __publicField = (obj, key, value) => {
1575
1575
  return Router2;
1576
1576
  }(React__default.default.Component);
1577
1577
  var MemoryRouter = /* @__PURE__ */ function(_React$Component) {
1578
- _inheritsLoose$1(MemoryRouter2, _React$Component);
1578
+ _inheritsLoose$2(MemoryRouter2, _React$Component);
1579
1579
  function MemoryRouter2() {
1580
1580
  var _this;
1581
1581
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1595,7 +1595,7 @@ var __publicField = (obj, key, value) => {
1595
1595
  return MemoryRouter2;
1596
1596
  }(React__default.default.Component);
1597
1597
  var Lifecycle = /* @__PURE__ */ function(_React$Component) {
1598
- _inheritsLoose$1(Lifecycle2, _React$Component);
1598
+ _inheritsLoose$2(Lifecycle2, _React$Component);
1599
1599
  function Lifecycle2() {
1600
1600
  return _React$Component.apply(this, arguments) || this;
1601
1601
  }
@@ -1671,7 +1671,7 @@ var __publicField = (obj, key, value) => {
1671
1671
  !context2 ? invariant$1(false) : void 0;
1672
1672
  var history2 = context2.history, staticContext = context2.staticContext;
1673
1673
  var method = push ? history2.push : history2.replace;
1674
- var location2 = createLocation(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : _extends$3({}, to, {
1674
+ var location2 = createLocation(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : _extends$4({}, to, {
1675
1675
  pathname: generatePath(to.pathname, computedMatch.params)
1676
1676
  }) : to);
1677
1677
  if (staticContext) {
@@ -1684,7 +1684,7 @@ var __publicField = (obj, key, value) => {
1684
1684
  },
1685
1685
  onUpdate: function onUpdate(self2, prevProps) {
1686
1686
  var prevLocation = createLocation(prevProps.to);
1687
- if (!locationsAreEqual(prevLocation, _extends$3({}, location2, {
1687
+ if (!locationsAreEqual(prevLocation, _extends$4({}, location2, {
1688
1688
  key: prevLocation.key
1689
1689
  }))) {
1690
1690
  method(location2);
@@ -1757,7 +1757,7 @@ var __publicField = (obj, key, value) => {
1757
1757
  return React__default.default.Children.count(children) === 0;
1758
1758
  }
1759
1759
  var Route = /* @__PURE__ */ function(_React$Component) {
1760
- _inheritsLoose$1(Route2, _React$Component);
1760
+ _inheritsLoose$2(Route2, _React$Component);
1761
1761
  function Route2() {
1762
1762
  return _React$Component.apply(this, arguments) || this;
1763
1763
  }
@@ -1768,7 +1768,7 @@ var __publicField = (obj, key, value) => {
1768
1768
  !context$1 ? invariant$1(false) : void 0;
1769
1769
  var location2 = _this.props.location || context$1.location;
1770
1770
  var match2 = _this.props.computedMatch ? _this.props.computedMatch : _this.props.path ? matchPath(location2.pathname, _this.props) : context$1.match;
1771
- var props = _extends$3({}, context$1, {
1771
+ var props = _extends$4({}, context$1, {
1772
1772
  location: location2,
1773
1773
  match: match2
1774
1774
  });
@@ -1789,7 +1789,7 @@ var __publicField = (obj, key, value) => {
1789
1789
  function addBasename(basename, location2) {
1790
1790
  if (!basename)
1791
1791
  return location2;
1792
- return _extends$3({}, location2, {
1792
+ return _extends$4({}, location2, {
1793
1793
  pathname: addLeadingSlash(basename) + location2.pathname
1794
1794
  });
1795
1795
  }
@@ -1799,7 +1799,7 @@ var __publicField = (obj, key, value) => {
1799
1799
  var base = addLeadingSlash(basename);
1800
1800
  if (location2.pathname.indexOf(base) !== 0)
1801
1801
  return location2;
1802
- return _extends$3({}, location2, {
1802
+ return _extends$4({}, location2, {
1803
1803
  pathname: location2.pathname.substr(base.length)
1804
1804
  });
1805
1805
  }
@@ -1814,7 +1814,7 @@ var __publicField = (obj, key, value) => {
1814
1814
  function noop$6() {
1815
1815
  }
1816
1816
  var StaticRouter = /* @__PURE__ */ function(_React$Component) {
1817
- _inheritsLoose$1(StaticRouter2, _React$Component);
1817
+ _inheritsLoose$2(StaticRouter2, _React$Component);
1818
1818
  function StaticRouter2() {
1819
1819
  var _this;
1820
1820
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1843,7 +1843,7 @@ var __publicField = (obj, key, value) => {
1843
1843
  context2.url = createURL(context2.location);
1844
1844
  };
1845
1845
  _proto.render = function render2() {
1846
- var _this$props2 = this.props, _this$props2$basename = _this$props2.basename, basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, _this$props2$context = _this$props2.context, context2 = _this$props2$context === void 0 ? {} : _this$props2$context, _this$props2$location = _this$props2.location, location2 = _this$props2$location === void 0 ? "/" : _this$props2$location, rest = _objectWithoutPropertiesLoose$6(_this$props2, ["basename", "context", "location"]);
1846
+ var _this$props2 = this.props, _this$props2$basename = _this$props2.basename, basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, _this$props2$context = _this$props2.context, context2 = _this$props2$context === void 0 ? {} : _this$props2$context, _this$props2$location = _this$props2.location, location2 = _this$props2$location === void 0 ? "/" : _this$props2$location, rest = _objectWithoutPropertiesLoose$7(_this$props2, ["basename", "context", "location"]);
1847
1847
  var history2 = {
1848
1848
  createHref: function createHref(path) {
1849
1849
  return addLeadingSlash(basename + createURL(path));
@@ -1858,7 +1858,7 @@ var __publicField = (obj, key, value) => {
1858
1858
  listen: this.handleListen,
1859
1859
  block: this.handleBlock
1860
1860
  };
1861
- return /* @__PURE__ */ React__default.default.createElement(Router, _extends$3({}, rest, {
1861
+ return /* @__PURE__ */ React__default.default.createElement(Router, _extends$4({}, rest, {
1862
1862
  history: history2,
1863
1863
  staticContext: context2
1864
1864
  }));
@@ -1866,7 +1866,7 @@ var __publicField = (obj, key, value) => {
1866
1866
  return StaticRouter2;
1867
1867
  }(React__default.default.Component);
1868
1868
  var Switch$1 = /* @__PURE__ */ function(_React$Component) {
1869
- _inheritsLoose$1(Switch2, _React$Component);
1869
+ _inheritsLoose$2(Switch2, _React$Component);
1870
1870
  function Switch2() {
1871
1871
  return _React$Component.apply(this, arguments) || this;
1872
1872
  }
@@ -1881,7 +1881,7 @@ var __publicField = (obj, key, value) => {
1881
1881
  if (match2 == null && /* @__PURE__ */ React__default.default.isValidElement(child)) {
1882
1882
  element = child;
1883
1883
  var path = child.props.path || child.props.from;
1884
- match2 = path ? matchPath(location2.pathname, _extends$3({}, child.props, {
1884
+ match2 = path ? matchPath(location2.pathname, _extends$4({}, child.props, {
1885
1885
  path
1886
1886
  })) : context2.match;
1887
1887
  }
@@ -1897,10 +1897,10 @@ var __publicField = (obj, key, value) => {
1897
1897
  function withRouter(Component) {
1898
1898
  var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
1899
1899
  var C2 = function C3(props) {
1900
- var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutPropertiesLoose$6(props, ["wrappedComponentRef"]);
1900
+ var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutPropertiesLoose$7(props, ["wrappedComponentRef"]);
1901
1901
  return /* @__PURE__ */ React__default.default.createElement(context.Consumer, null, function(context2) {
1902
1902
  !context2 ? invariant$1(false) : void 0;
1903
- return /* @__PURE__ */ React__default.default.createElement(Component, _extends$3({}, remainingProps, context2, {
1903
+ return /* @__PURE__ */ React__default.default.createElement(Component, _extends$4({}, remainingProps, context2, {
1904
1904
  ref: wrappedComponentRef
1905
1905
  }));
1906
1906
  });
@@ -1926,7 +1926,7 @@ var __publicField = (obj, key, value) => {
1926
1926
  return path ? matchPath(location2.pathname, path) : match2;
1927
1927
  }
1928
1928
  var BrowserRouter = /* @__PURE__ */ function(_React$Component) {
1929
- _inheritsLoose$1(BrowserRouter2, _React$Component);
1929
+ _inheritsLoose$2(BrowserRouter2, _React$Component);
1930
1930
  function BrowserRouter2() {
1931
1931
  var _this;
1932
1932
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1946,7 +1946,7 @@ var __publicField = (obj, key, value) => {
1946
1946
  return BrowserRouter2;
1947
1947
  }(React__default.default.Component);
1948
1948
  var HashRouter = /* @__PURE__ */ function(_React$Component) {
1949
- _inheritsLoose$1(HashRouter2, _React$Component);
1949
+ _inheritsLoose$2(HashRouter2, _React$Component);
1950
1950
  function HashRouter2() {
1951
1951
  var _this;
1952
1952
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1982,9 +1982,9 @@ var __publicField = (obj, key, value) => {
1982
1982
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
1983
1983
  }
1984
1984
  var LinkAnchor = forwardRef$1(function(_ref2, forwardedRef) {
1985
- var innerRef = _ref2.innerRef, navigate = _ref2.navigate, _onClick = _ref2.onClick, rest = _objectWithoutPropertiesLoose$6(_ref2, ["innerRef", "navigate", "onClick"]);
1985
+ var innerRef = _ref2.innerRef, navigate = _ref2.navigate, _onClick = _ref2.onClick, rest = _objectWithoutPropertiesLoose$7(_ref2, ["innerRef", "navigate", "onClick"]);
1986
1986
  var target = rest.target;
1987
- var props = _extends$3({}, rest, {
1987
+ var props = _extends$4({}, rest, {
1988
1988
  onClick: function onClick(event) {
1989
1989
  try {
1990
1990
  if (_onClick)
@@ -2007,13 +2007,13 @@ var __publicField = (obj, key, value) => {
2007
2007
  return /* @__PURE__ */ React__default.default.createElement("a", props);
2008
2008
  });
2009
2009
  var Link = forwardRef$1(function(_ref2, forwardedRef) {
2010
- var _ref2$component = _ref2.component, component = _ref2$component === void 0 ? LinkAnchor : _ref2$component, replace2 = _ref2.replace, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$6(_ref2, ["component", "replace", "to", "innerRef"]);
2010
+ var _ref2$component = _ref2.component, component = _ref2$component === void 0 ? LinkAnchor : _ref2$component, replace2 = _ref2.replace, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$7(_ref2, ["component", "replace", "to", "innerRef"]);
2011
2011
  return /* @__PURE__ */ React__default.default.createElement(context.Consumer, null, function(context2) {
2012
2012
  !context2 ? invariant$1(false) : void 0;
2013
2013
  var history2 = context2.history;
2014
2014
  var location2 = normalizeToLocation(resolveToLocation(to, context2.location), context2.location);
2015
2015
  var href = location2 ? history2.createHref(location2) : "";
2016
- var props = _extends$3({}, rest, {
2016
+ var props = _extends$4({}, rest, {
2017
2017
  href,
2018
2018
  navigate: function navigate() {
2019
2019
  var location3 = resolveToLocation(to, context2.location);
@@ -2046,7 +2046,7 @@ var __publicField = (obj, key, value) => {
2046
2046
  }).join(" ");
2047
2047
  }
2048
2048
  var NavLink = forwardRef$1$1(function(_ref2, forwardedRef) {
2049
- var _ref$ariaCurrent = _ref2["aria-current"], ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent, _ref$activeClassName = _ref2.activeClassName, activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName, activeStyle = _ref2.activeStyle, classNameProp = _ref2.className, exact = _ref2.exact, isActiveProp = _ref2.isActive, locationProp = _ref2.location, sensitive = _ref2.sensitive, strict = _ref2.strict, styleProp = _ref2.style, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$6(_ref2, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
2049
+ var _ref$ariaCurrent = _ref2["aria-current"], ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent, _ref$activeClassName = _ref2.activeClassName, activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName, activeStyle = _ref2.activeStyle, classNameProp = _ref2.className, exact = _ref2.exact, isActiveProp = _ref2.isActive, locationProp = _ref2.location, sensitive = _ref2.sensitive, strict = _ref2.strict, styleProp = _ref2.style, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$7(_ref2, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
2050
2050
  return /* @__PURE__ */ React__default.default.createElement(context.Consumer, null, function(context2) {
2051
2051
  !context2 ? invariant$1(false) : void 0;
2052
2052
  var currentLocation = locationProp || context2.location;
@@ -2064,9 +2064,9 @@ var __publicField = (obj, key, value) => {
2064
2064
  var style = typeof styleProp === "function" ? styleProp(isActive) : styleProp;
2065
2065
  if (isActive) {
2066
2066
  className = joinClassnames(className, activeClassName);
2067
- style = _extends$3({}, style, activeStyle);
2067
+ style = _extends$4({}, style, activeStyle);
2068
2068
  }
2069
- var props = _extends$3({
2069
+ var props = _extends$4({
2070
2070
  "aria-current": isActive && ariaCurrent || null,
2071
2071
  className,
2072
2072
  style,
@@ -10579,8 +10579,8 @@ var __publicField = (obj, key, value) => {
10579
10579
  }
10580
10580
  return obj;
10581
10581
  }
10582
- function _extends$2() {
10583
- _extends$2 = Object.assign || function(target) {
10582
+ function _extends$3() {
10583
+ _extends$3 = Object.assign || function(target) {
10584
10584
  for (var i2 = 1; i2 < arguments.length; i2++) {
10585
10585
  var source = arguments[i2];
10586
10586
  for (var key in source) {
@@ -10591,7 +10591,7 @@ var __publicField = (obj, key, value) => {
10591
10591
  }
10592
10592
  return target;
10593
10593
  };
10594
- return _extends$2.apply(this, arguments);
10594
+ return _extends$3.apply(this, arguments);
10595
10595
  }
10596
10596
  const {
10597
10597
  DefaultValue,
@@ -11855,7 +11855,7 @@ var __publicField = (obj, key, value) => {
11855
11855
  }
11856
11856
  const serialize = useCallback$2((x2) => x2 === void 0 ? "" : Recoil_nullthrows(JSON.stringify(x2), "Unable to serialize state with JSON"), []);
11857
11857
  const deserialize = useCallback$2((x2) => JSON.parse(x2), []);
11858
- return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$1, _extends$2({}, options, {
11858
+ return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$1, _extends$3({}, options, {
11859
11859
  serialize,
11860
11860
  deserialize
11861
11861
  }));
@@ -11948,7 +11948,7 @@ var __publicField = (obj, key, value) => {
11948
11948
  }
11949
11949
  }), [handlers]);
11950
11950
  const deserialize = useCallback$3((x2) => reader.read(x2), [reader]);
11951
- return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$2, _extends$2({}, options, {
11951
+ return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$2, _extends$3({}, options, {
11952
11952
  serialize,
11953
11953
  deserialize
11954
11954
  }));
@@ -12195,21 +12195,21 @@ var __publicField = (obj, key, value) => {
12195
12195
  }
12196
12196
  subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
12197
12197
  if (superClass)
12198
- _setPrototypeOf$3(subClass, superClass);
12198
+ _setPrototypeOf$4(subClass, superClass);
12199
12199
  }
12200
- function _setPrototypeOf$3(o2, p2) {
12201
- _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
12200
+ function _setPrototypeOf$4(o2, p2) {
12201
+ _setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
12202
12202
  o3.__proto__ = p3;
12203
12203
  return o3;
12204
12204
  };
12205
- return _setPrototypeOf$3(o2, p2);
12205
+ return _setPrototypeOf$4(o2, p2);
12206
12206
  }
12207
12207
  function _createSuper$3(Derived) {
12208
- var hasNativeReflectConstruct = _isNativeReflectConstruct$3();
12208
+ var hasNativeReflectConstruct = _isNativeReflectConstruct$4();
12209
12209
  return function _createSuperInternal() {
12210
- var Super = _getPrototypeOf$3(Derived), result;
12210
+ var Super = _getPrototypeOf$4(Derived), result;
12211
12211
  if (hasNativeReflectConstruct) {
12212
- var NewTarget = _getPrototypeOf$3(this).constructor;
12212
+ var NewTarget = _getPrototypeOf$4(this).constructor;
12213
12213
  result = Reflect.construct(Super, arguments, NewTarget);
12214
12214
  } else {
12215
12215
  result = Super.apply(this, arguments);
@@ -12223,15 +12223,15 @@ var __publicField = (obj, key, value) => {
12223
12223
  } else if (call !== void 0) {
12224
12224
  throw new TypeError("Derived constructors may only return object or undefined");
12225
12225
  }
12226
- return _assertThisInitialized$4(self2);
12226
+ return _assertThisInitialized$5(self2);
12227
12227
  }
12228
- function _assertThisInitialized$4(self2) {
12228
+ function _assertThisInitialized$5(self2) {
12229
12229
  if (self2 === void 0) {
12230
12230
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12231
12231
  }
12232
12232
  return self2;
12233
12233
  }
12234
- function _isNativeReflectConstruct$3() {
12234
+ function _isNativeReflectConstruct$4() {
12235
12235
  if (typeof Reflect === "undefined" || !Reflect.construct)
12236
12236
  return false;
12237
12237
  if (Reflect.construct.sham)
@@ -12246,11 +12246,11 @@ var __publicField = (obj, key, value) => {
12246
12246
  return false;
12247
12247
  }
12248
12248
  }
12249
- function _getPrototypeOf$3(o2) {
12250
- _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
12249
+ function _getPrototypeOf$4(o2) {
12250
+ _getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
12251
12251
  return o3.__proto__ || Object.getPrototypeOf(o3);
12252
12252
  };
12253
- return _getPrototypeOf$3(o2);
12253
+ return _getPrototypeOf$4(o2);
12254
12254
  }
12255
12255
  function _defineProperty$9(obj, key, value) {
12256
12256
  if (key in obj) {
@@ -12267,10 +12267,10 @@ var __publicField = (obj, key, value) => {
12267
12267
  var _this;
12268
12268
  _classCallCheck$4(this, Collapse2);
12269
12269
  _this = _super.call(this, props);
12270
- _defineProperty$9(_assertThisInitialized$4(_this), "timeout", void 0);
12271
- _defineProperty$9(_assertThisInitialized$4(_this), "container", void 0);
12272
- _defineProperty$9(_assertThisInitialized$4(_this), "content", void 0);
12273
- _defineProperty$9(_assertThisInitialized$4(_this), "onResize", function() {
12270
+ _defineProperty$9(_assertThisInitialized$5(_this), "timeout", void 0);
12271
+ _defineProperty$9(_assertThisInitialized$5(_this), "container", void 0);
12272
+ _defineProperty$9(_assertThisInitialized$5(_this), "content", void 0);
12273
+ _defineProperty$9(_assertThisInitialized$5(_this), "onResize", function() {
12274
12274
  clearTimeout(_this.timeout);
12275
12275
  if (!_this.container || !_this.content) {
12276
12276
  return;
@@ -12301,7 +12301,7 @@ var __publicField = (obj, key, value) => {
12301
12301
  }, checkTimeout);
12302
12302
  }
12303
12303
  });
12304
- _defineProperty$9(_assertThisInitialized$4(_this), "onRest", function(_ref2) {
12304
+ _defineProperty$9(_assertThisInitialized$5(_this), "onRest", function(_ref2) {
12305
12305
  var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
12306
12306
  if (!_this.container || !_this.content) {
12307
12307
  return;
@@ -12323,7 +12323,7 @@ var __publicField = (obj, key, value) => {
12323
12323
  }
12324
12324
  }
12325
12325
  });
12326
- _defineProperty$9(_assertThisInitialized$4(_this), "onWork", function(_ref2) {
12326
+ _defineProperty$9(_assertThisInitialized$5(_this), "onWork", function(_ref2) {
12327
12327
  var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
12328
12328
  if (!_this.container || !_this.content) {
12329
12329
  return;
@@ -12346,10 +12346,10 @@ var __publicField = (obj, key, value) => {
12346
12346
  });
12347
12347
  }
12348
12348
  });
12349
- _defineProperty$9(_assertThisInitialized$4(_this), "onRefContainer", function(container) {
12349
+ _defineProperty$9(_assertThisInitialized$5(_this), "onRefContainer", function(container) {
12350
12350
  _this.container = container;
12351
12351
  });
12352
- _defineProperty$9(_assertThisInitialized$4(_this), "onRefContent", function(content) {
12352
+ _defineProperty$9(_assertThisInitialized$5(_this), "onRefContent", function(content) {
12353
12353
  _this.content = content;
12354
12354
  });
12355
12355
  if (props.initialStyle) {
@@ -12452,8 +12452,8 @@ var __publicField = (obj, key, value) => {
12452
12452
  function _interopRequireDefault(obj) {
12453
12453
  return obj && obj.__esModule ? obj : { "default": obj };
12454
12454
  }
12455
- function _extends$1() {
12456
- _extends$1 = Object.assign || function(target) {
12455
+ function _extends$2() {
12456
+ _extends$2 = Object.assign || function(target) {
12457
12457
  for (var i2 = 1; i2 < arguments.length; i2++) {
12458
12458
  var source = arguments[i2];
12459
12459
  for (var key in source) {
@@ -12464,7 +12464,7 @@ var __publicField = (obj, key, value) => {
12464
12464
  }
12465
12465
  return target;
12466
12466
  };
12467
- return _extends$1.apply(this, arguments);
12467
+ return _extends$2.apply(this, arguments);
12468
12468
  }
12469
12469
  function ownKeys$5(object2, enumerableOnly) {
12470
12470
  var keys2 = Object.keys(object2);
@@ -12499,7 +12499,7 @@ var __publicField = (obj, key, value) => {
12499
12499
  function _objectWithoutProperties$3(source, excluded) {
12500
12500
  if (source == null)
12501
12501
  return {};
12502
- var target = _objectWithoutPropertiesLoose$5(source, excluded);
12502
+ var target = _objectWithoutPropertiesLoose$6(source, excluded);
12503
12503
  var key, i2;
12504
12504
  if (Object.getOwnPropertySymbols) {
12505
12505
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -12514,7 +12514,7 @@ var __publicField = (obj, key, value) => {
12514
12514
  }
12515
12515
  return target;
12516
12516
  }
12517
- function _objectWithoutPropertiesLoose$5(source, excluded) {
12517
+ function _objectWithoutPropertiesLoose$6(source, excluded) {
12518
12518
  if (source == null)
12519
12519
  return {};
12520
12520
  var target = {};
@@ -12556,21 +12556,21 @@ var __publicField = (obj, key, value) => {
12556
12556
  }
12557
12557
  subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
12558
12558
  if (superClass)
12559
- _setPrototypeOf$2(subClass, superClass);
12559
+ _setPrototypeOf$3(subClass, superClass);
12560
12560
  }
12561
- function _setPrototypeOf$2(o2, p2) {
12562
- _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
12561
+ function _setPrototypeOf$3(o2, p2) {
12562
+ _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
12563
12563
  o3.__proto__ = p3;
12564
12564
  return o3;
12565
12565
  };
12566
- return _setPrototypeOf$2(o2, p2);
12566
+ return _setPrototypeOf$3(o2, p2);
12567
12567
  }
12568
12568
  function _createSuper$2(Derived) {
12569
- var hasNativeReflectConstruct = _isNativeReflectConstruct$2();
12569
+ var hasNativeReflectConstruct = _isNativeReflectConstruct$3();
12570
12570
  return function _createSuperInternal() {
12571
- var Super = _getPrototypeOf$2(Derived), result;
12571
+ var Super = _getPrototypeOf$3(Derived), result;
12572
12572
  if (hasNativeReflectConstruct) {
12573
- var NewTarget = _getPrototypeOf$2(this).constructor;
12573
+ var NewTarget = _getPrototypeOf$3(this).constructor;
12574
12574
  result = Reflect.construct(Super, arguments, NewTarget);
12575
12575
  } else {
12576
12576
  result = Super.apply(this, arguments);
@@ -12584,15 +12584,15 @@ var __publicField = (obj, key, value) => {
12584
12584
  } else if (call !== void 0) {
12585
12585
  throw new TypeError("Derived constructors may only return object or undefined");
12586
12586
  }
12587
- return _assertThisInitialized$3(self2);
12587
+ return _assertThisInitialized$4(self2);
12588
12588
  }
12589
- function _assertThisInitialized$3(self2) {
12589
+ function _assertThisInitialized$4(self2) {
12590
12590
  if (self2 === void 0) {
12591
12591
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12592
12592
  }
12593
12593
  return self2;
12594
12594
  }
12595
- function _isNativeReflectConstruct$2() {
12595
+ function _isNativeReflectConstruct$3() {
12596
12596
  if (typeof Reflect === "undefined" || !Reflect.construct)
12597
12597
  return false;
12598
12598
  if (Reflect.construct.sham)
@@ -12607,11 +12607,11 @@ var __publicField = (obj, key, value) => {
12607
12607
  return false;
12608
12608
  }
12609
12609
  }
12610
- function _getPrototypeOf$2(o2) {
12611
- _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
12610
+ function _getPrototypeOf$3(o2) {
12611
+ _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
12612
12612
  return o3.__proto__ || Object.getPrototypeOf(o3);
12613
12613
  };
12614
- return _getPrototypeOf$2(o2);
12614
+ return _getPrototypeOf$3(o2);
12615
12615
  }
12616
12616
  function _defineProperty$8(obj, key, value) {
12617
12617
  if (key in obj) {
@@ -12628,7 +12628,7 @@ var __publicField = (obj, key, value) => {
12628
12628
  var _this;
12629
12629
  _classCallCheck$3(this, UnmountClosed2);
12630
12630
  _this = _super.call(this, props);
12631
- _defineProperty$8(_assertThisInitialized$3(_this), "onWork", function(_ref2) {
12631
+ _defineProperty$8(_assertThisInitialized$4(_this), "onWork", function(_ref2) {
12632
12632
  var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$3(_ref2, _excluded$5);
12633
12633
  _this.setState({
12634
12634
  isResting: false,
@@ -12641,7 +12641,7 @@ var __publicField = (obj, key, value) => {
12641
12641
  }, rest));
12642
12642
  }
12643
12643
  });
12644
- _defineProperty$8(_assertThisInitialized$3(_this), "onRest", function(_ref2) {
12644
+ _defineProperty$8(_assertThisInitialized$4(_this), "onRest", function(_ref2) {
12645
12645
  var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$3(_ref2, _excluded2);
12646
12646
  _this.setState({
12647
12647
  isResting: true,
@@ -12655,7 +12655,7 @@ var __publicField = (obj, key, value) => {
12655
12655
  }, rest));
12656
12656
  }
12657
12657
  });
12658
- _defineProperty$8(_assertThisInitialized$3(_this), "getInitialStyle", function() {
12658
+ _defineProperty$8(_assertThisInitialized$4(_this), "getInitialStyle", function() {
12659
12659
  var _this$state = _this.state, isOpened = _this$state.isOpened, isInitialRender = _this$state.isInitialRender;
12660
12660
  if (isInitialRender) {
12661
12661
  return isOpened ? {
@@ -12694,7 +12694,7 @@ var __publicField = (obj, key, value) => {
12694
12694
  key: "render",
12695
12695
  value: function render2() {
12696
12696
  var _this$state2 = this.state, isResting = _this$state2.isResting, isOpened = _this$state2.isOpened;
12697
- return isResting && !isOpened ? null : /* @__PURE__ */ _react["default"].createElement(_Collapse.Collapse, _extends$1({}, this.props, {
12697
+ return isResting && !isOpened ? null : /* @__PURE__ */ _react["default"].createElement(_Collapse.Collapse, _extends$2({}, this.props, {
12698
12698
  initialStyle: this.getInitialStyle(),
12699
12699
  onWork: this.onWork,
12700
12700
  onRest: this.onRest
@@ -15323,7 +15323,7 @@ var __publicField = (obj, key, value) => {
15323
15323
  }
15324
15324
  return obj;
15325
15325
  }
15326
- function _objectWithoutPropertiesLoose$4(source, excluded) {
15326
+ function _objectWithoutPropertiesLoose$5(source, excluded) {
15327
15327
  if (source == null)
15328
15328
  return {};
15329
15329
  var target = {};
@@ -15340,7 +15340,7 @@ var __publicField = (obj, key, value) => {
15340
15340
  function _objectWithoutProperties$2(source, excluded) {
15341
15341
  if (source == null)
15342
15342
  return {};
15343
- var target = _objectWithoutPropertiesLoose$4(source, excluded);
15343
+ var target = _objectWithoutPropertiesLoose$5(source, excluded);
15344
15344
  var key, i2;
15345
15345
  if (Object.getOwnPropertySymbols) {
15346
15346
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -17421,22 +17421,52 @@ var __publicField = (obj, key, value) => {
17421
17421
  border: 1px solid ${(props) => props.color};
17422
17422
  border-radius: ${(props) => props.height ? `${props.height / 2}px` : "1rem"};
17423
17423
  `;
17424
- function _assertThisInitialized$2(self2) {
17424
+ function _extends$1() {
17425
+ _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
17426
+ for (var i2 = 1; i2 < arguments.length; i2++) {
17427
+ var source = arguments[i2];
17428
+ for (var key in source) {
17429
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
17430
+ target[key] = source[key];
17431
+ }
17432
+ }
17433
+ }
17434
+ return target;
17435
+ };
17436
+ return _extends$1.apply(this, arguments);
17437
+ }
17438
+ function _assertThisInitialized$3(self2) {
17425
17439
  if (self2 === void 0) {
17426
17440
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
17427
17441
  }
17428
17442
  return self2;
17429
17443
  }
17430
- function _getPrototypeOf$1(o2) {
17431
- _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
17444
+ function _setPrototypeOf$2(o2, p2) {
17445
+ _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
17446
+ o3.__proto__ = p3;
17447
+ return o3;
17448
+ };
17449
+ return _setPrototypeOf$2(o2, p2);
17450
+ }
17451
+ function _inheritsLoose$1(subClass, superClass) {
17452
+ subClass.prototype = Object.create(superClass.prototype);
17453
+ subClass.prototype.constructor = subClass;
17454
+ _setPrototypeOf$2(subClass, superClass);
17455
+ }
17456
+ function _getPrototypeOf$2(o2) {
17457
+ _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
17432
17458
  return o3.__proto__ || Object.getPrototypeOf(o3);
17433
17459
  };
17434
- return _getPrototypeOf$1(o2);
17460
+ return _getPrototypeOf$2(o2);
17435
17461
  }
17436
- function _isNativeFunction(fn) {
17437
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
17462
+ function _isNativeFunction$1(fn) {
17463
+ try {
17464
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
17465
+ } catch (e3) {
17466
+ return typeof fn === "function";
17467
+ }
17438
17468
  }
17439
- function _isNativeReflectConstruct$1() {
17469
+ function _isNativeReflectConstruct$2() {
17440
17470
  if (typeof Reflect === "undefined" || !Reflect.construct)
17441
17471
  return false;
17442
17472
  if (Reflect.construct.sham)
@@ -17451,26 +17481,26 @@ var __publicField = (obj, key, value) => {
17451
17481
  return false;
17452
17482
  }
17453
17483
  }
17454
- function _construct(Parent, args, Class) {
17455
- if (_isNativeReflectConstruct$1()) {
17456
- _construct = Reflect.construct.bind();
17484
+ function _construct$1(Parent, args, Class) {
17485
+ if (_isNativeReflectConstruct$2()) {
17486
+ _construct$1 = Reflect.construct.bind();
17457
17487
  } else {
17458
- _construct = function _construct2(Parent2, args2, Class2) {
17488
+ _construct$1 = function _construct2(Parent2, args2, Class2) {
17459
17489
  var a2 = [null];
17460
17490
  a2.push.apply(a2, args2);
17461
17491
  var Constructor = Function.bind.apply(Parent2, a2);
17462
17492
  var instance = new Constructor();
17463
17493
  if (Class2)
17464
- _setPrototypeOf$4(instance, Class2.prototype);
17494
+ _setPrototypeOf$2(instance, Class2.prototype);
17465
17495
  return instance;
17466
17496
  };
17467
17497
  }
17468
- return _construct.apply(null, arguments);
17498
+ return _construct$1.apply(null, arguments);
17469
17499
  }
17470
- function _wrapNativeSuper(Class) {
17500
+ function _wrapNativeSuper$1(Class) {
17471
17501
  var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
17472
- _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
17473
- if (Class2 === null || !_isNativeFunction(Class2))
17502
+ _wrapNativeSuper$1 = function _wrapNativeSuper2(Class2) {
17503
+ if (Class2 === null || !_isNativeFunction$1(Class2))
17474
17504
  return Class2;
17475
17505
  if (typeof Class2 !== "function") {
17476
17506
  throw new TypeError("Super expression must either be null or a function");
@@ -17481,7 +17511,7 @@ var __publicField = (obj, key, value) => {
17481
17511
  _cache.set(Class2, Wrapper2);
17482
17512
  }
17483
17513
  function Wrapper2() {
17484
- return _construct(Class2, arguments, _getPrototypeOf$1(this).constructor);
17514
+ return _construct$1(Class2, arguments, _getPrototypeOf$2(this).constructor);
17485
17515
  }
17486
17516
  Wrapper2.prototype = Object.create(Class2.prototype, {
17487
17517
  constructor: {
@@ -17491,9 +17521,9 @@ var __publicField = (obj, key, value) => {
17491
17521
  configurable: true
17492
17522
  }
17493
17523
  });
17494
- return _setPrototypeOf$4(Wrapper2, Class2);
17524
+ return _setPrototypeOf$2(Wrapper2, Class2);
17495
17525
  };
17496
- return _wrapNativeSuper(Class);
17526
+ return _wrapNativeSuper$1(Class);
17497
17527
  }
17498
17528
  var PolishedError$1 = /* @__PURE__ */ function(_Error) {
17499
17529
  _inheritsLoose$1(PolishedError2, _Error);
@@ -17502,10 +17532,10 @@ var __publicField = (obj, key, value) => {
17502
17532
  {
17503
17533
  _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#" + code + " for more information.") || this;
17504
17534
  }
17505
- return _assertThisInitialized$2(_this);
17535
+ return _assertThisInitialized$3(_this);
17506
17536
  }
17507
17537
  return PolishedError2;
17508
- }(/* @__PURE__ */ _wrapNativeSuper(Error));
17538
+ }(/* @__PURE__ */ _wrapNativeSuper$1(Error));
17509
17539
  function colorToInt$1(color) {
17510
17540
  return Math.round(color * 255);
17511
17541
  }
@@ -17849,7 +17879,7 @@ var __publicField = (obj, key, value) => {
17849
17879
  return color;
17850
17880
  var parsedColor = parseToRgb$1(color);
17851
17881
  var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
17852
- var colorWithAlpha = _extends$3({}, parsedColor, {
17882
+ var colorWithAlpha = _extends$1({}, parsedColor, {
17853
17883
  alpha: guard$1(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
17854
17884
  });
17855
17885
  return rgba$1(colorWithAlpha);
@@ -18713,6 +18743,20 @@ var __publicField = (obj, key, value) => {
18713
18743
  setPreviousFilter(filterValue);
18714
18744
  }, children: "Apply" })] });
18715
18745
  }
18746
+ function _objectWithoutPropertiesLoose$4(source, excluded) {
18747
+ if (source == null)
18748
+ return {};
18749
+ var target = {};
18750
+ var sourceKeys = Object.keys(source);
18751
+ var key, i2;
18752
+ for (i2 = 0; i2 < sourceKeys.length; i2++) {
18753
+ key = sourceKeys[i2];
18754
+ if (excluded.indexOf(key) >= 0)
18755
+ continue;
18756
+ target[key] = source[key];
18757
+ }
18758
+ return target;
18759
+ }
18716
18760
  var reactIs = { exports: {} };
18717
18761
  var reactIs_production_min = {};
18718
18762
  /** @license React v17.0.2
@@ -19243,7 +19287,7 @@ var __publicField = (obj, key, value) => {
19243
19287
  }
19244
19288
  });
19245
19289
  if (props.onStateChange && Object.keys(changes).length) {
19246
- props.onStateChange(_extends$3({
19290
+ props.onStateChange(_extends$1({
19247
19291
  type
19248
19292
  }, changes));
19249
19293
  }
@@ -19252,7 +19296,7 @@ var __publicField = (obj, key, value) => {
19252
19296
  var props = action.props, type = action.type;
19253
19297
  var handler = "on" + capitalizeString(key) + "Change";
19254
19298
  if (props[handler] && newState[key] !== void 0 && newState[key] !== state[key]) {
19255
- props[handler](_extends$3({
19299
+ props[handler](_extends$1({
19256
19300
  type
19257
19301
  }, newState));
19258
19302
  }
@@ -19316,7 +19360,7 @@ var __publicField = (obj, key, value) => {
19316
19360
  actionRef.current = action2;
19317
19361
  state2 = getState(state2, action2.props);
19318
19362
  var changes = reducer2(state2, action2);
19319
- var newState = action2.props.stateReducer(state2, _extends$3({}, action2, {
19363
+ var newState = action2.props.stateReducer(state2, _extends$1({}, action2, {
19320
19364
  changes
19321
19365
  }));
19322
19366
  return newState;
@@ -19324,7 +19368,7 @@ var __publicField = (obj, key, value) => {
19324
19368
  var _useReducer = React.useReducer(enhancedReducer, initialState2), state = _useReducer[0], dispatch2 = _useReducer[1];
19325
19369
  var propsRef = useLatestRef(props);
19326
19370
  var dispatchWithProps = React.useCallback(function(action2) {
19327
- return dispatch2(_extends$3({
19371
+ return dispatch2(_extends$1({
19328
19372
  props: propsRef.current
19329
19373
  }, action2));
19330
19374
  }, [propsRef]);
@@ -19456,13 +19500,13 @@ var __publicField = (obj, key, value) => {
19456
19500
  return noop$4;
19457
19501
  };
19458
19502
  function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
19459
- var isInitialMount = _ref2.isInitialMount, highlightedIndex = _ref2.highlightedIndex, items = _ref2.items, environment = _ref2.environment, rest = _objectWithoutPropertiesLoose$6(_ref2, _excluded$3);
19503
+ var isInitialMount = _ref2.isInitialMount, highlightedIndex = _ref2.highlightedIndex, items = _ref2.items, environment = _ref2.environment, rest = _objectWithoutPropertiesLoose$4(_ref2, _excluded$3);
19460
19504
  React.useEffect(function() {
19461
19505
  if (isInitialMount || false) {
19462
19506
  return;
19463
19507
  }
19464
19508
  updateA11yStatus(function() {
19465
- return getA11yMessage(_extends$3({
19509
+ return getA11yMessage(_extends$1({
19466
19510
  highlightedIndex,
19467
19511
  highlightedItem: items[highlightedIndex],
19468
19512
  resultCount: items.length
@@ -19492,10 +19536,10 @@ var __publicField = (obj, key, value) => {
19492
19536
  inputValue = true;
19493
19537
  }
19494
19538
  var shouldSelect = ((_props$items = props.items) == null ? void 0 : _props$items.length) && highlightedIndex >= 0;
19495
- return _extends$3({
19539
+ return _extends$1({
19496
19540
  isOpen: false,
19497
19541
  highlightedIndex: -1
19498
- }, shouldSelect && _extends$3({
19542
+ }, shouldSelect && _extends$1({
19499
19543
  selectedItem: props.items[highlightedIndex],
19500
19544
  isOpen: getDefaultValue$1(props, "isOpen"),
19501
19545
  highlightedIndex: getDefaultValue$1(props, "highlightedIndex")
@@ -19556,7 +19600,7 @@ var __publicField = (obj, key, value) => {
19556
19600
  default:
19557
19601
  throw new Error("Reducer called without proper action type.");
19558
19602
  }
19559
- return _extends$3({}, state, changes);
19603
+ return _extends$1({}, state, changes);
19560
19604
  }
19561
19605
  function getItemIndexByCharacterKey(_a) {
19562
19606
  var keysSoFar = _a.keysSoFar, highlightedIndex = _a.highlightedIndex, items = _a.items, itemToString2 = _a.itemToString, getItemNodeFromIndex = _a.getItemNodeFromIndex;
@@ -19752,7 +19796,7 @@ var __publicField = (obj, key, value) => {
19752
19796
  };
19753
19797
  break;
19754
19798
  case ToggleButtonBlur:
19755
- changes = _extends$3({
19799
+ changes = _extends$1({
19756
19800
  isOpen: false,
19757
19801
  highlightedIndex: -1
19758
19802
  }, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && {
@@ -19767,7 +19811,7 @@ var __publicField = (obj, key, value) => {
19767
19811
  default:
19768
19812
  return downshiftCommonReducer(state, action, stateChangeTypes$2);
19769
19813
  }
19770
- return _extends$3({}, state, changes);
19814
+ return _extends$1({}, state, changes);
19771
19815
  }
19772
19816
  var _excluded$2 = ["onMouseLeave", "refKey", "onKeyDown", "onBlur", "ref"], _excluded2$2 = ["onBlur", "onClick", "onPress", "onKeyDown", "refKey", "ref"], _excluded3$1 = ["item", "index", "onMouseMove", "onClick", "onPress", "refKey", "ref", "disabled"];
19773
19817
  useSelect.stateChangeTypes = stateChangeTypes$2;
@@ -19775,7 +19819,7 @@ var __publicField = (obj, key, value) => {
19775
19819
  if (userProps === void 0) {
19776
19820
  userProps = {};
19777
19821
  }
19778
- var props = _extends$3({}, defaultProps$2, userProps);
19822
+ var props = _extends$1({}, defaultProps$2, userProps);
19779
19823
  var items = props.items, scrollIntoView2 = props.scrollIntoView, environment = props.environment, itemToString2 = props.itemToString, getA11ySelectionMessage2 = props.getA11ySelectionMessage, getA11yStatusMessage2 = props.getA11yStatusMessage;
19780
19824
  var initialState2 = getInitialState$2(props);
19781
19825
  var _useControlledReducer = useControlledReducer$1(downshiftSelectReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
@@ -19794,14 +19838,14 @@ var __publicField = (obj, key, value) => {
19794
19838
  var getItemNodeFromIndex = React.useCallback(function(index2) {
19795
19839
  return itemRefs.current[elementIds.getItemId(index2)];
19796
19840
  }, [elementIds]);
19797
- useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$3({
19841
+ useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$1({
19798
19842
  isInitialMount: isInitialMountRef.current,
19799
19843
  previousResultCount: previousResultCountRef.current,
19800
19844
  items,
19801
19845
  environment,
19802
19846
  itemToString: itemToString2
19803
19847
  }, state));
19804
- useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$3({
19848
+ useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$1({
19805
19849
  isInitialMount: isInitialMountRef.current,
19806
19850
  previousResultCount: previousResultCountRef.current,
19807
19851
  items,
@@ -19986,7 +20030,7 @@ var __publicField = (obj, key, value) => {
19986
20030
  });
19987
20031
  }, [dispatch2]);
19988
20032
  var getLabelProps = React.useCallback(function(labelProps) {
19989
- return _extends$3({
20033
+ return _extends$1({
19990
20034
  id: elementIds.labelId,
19991
20035
  htmlFor: elementIds.toggleButtonId
19992
20036
  }, labelProps);
@@ -19996,7 +20040,7 @@ var __publicField = (obj, key, value) => {
19996
20040
  var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey;
19997
20041
  _ref2.onKeyDown;
19998
20042
  _ref2.onBlur;
19999
- var ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$6(_ref2, _excluded$2);
20043
+ var ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$4(_ref2, _excluded$2);
20000
20044
  var _ref22 = _temp2 === void 0 ? {} : _temp2;
20001
20045
  _ref22.suppressRefError;
20002
20046
  var menuHandleMouseLeave = function menuHandleMouseLeave2() {
@@ -20004,7 +20048,7 @@ var __publicField = (obj, key, value) => {
20004
20048
  type: MenuMouseLeave$1
20005
20049
  });
20006
20050
  };
20007
- return _extends$3((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
20051
+ return _extends$1((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
20008
20052
  menuRef.current = menuNode;
20009
20053
  }), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, menuHandleMouseLeave), _extends2), rest);
20010
20054
  }, [dispatch2, setGetterPropCallInfo, elementIds]);
@@ -20012,7 +20056,7 @@ var __publicField = (obj, key, value) => {
20012
20056
  var _extends3;
20013
20057
  var _ref3 = _temp3 === void 0 ? {} : _temp3, onBlur = _ref3.onBlur, onClick = _ref3.onClick;
20014
20058
  _ref3.onPress;
20015
- var onKeyDown = _ref3.onKeyDown, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, rest = _objectWithoutPropertiesLoose$6(_ref3, _excluded2$2);
20059
+ var onKeyDown = _ref3.onKeyDown, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, rest = _objectWithoutPropertiesLoose$4(_ref3, _excluded2$2);
20016
20060
  var _ref4 = _temp4 === void 0 ? {} : _temp4;
20017
20061
  _ref4.suppressRefError;
20018
20062
  var latestState = latest.current.state;
@@ -20040,7 +20084,7 @@ var __publicField = (obj, key, value) => {
20040
20084
  });
20041
20085
  }
20042
20086
  };
20043
- var toggleProps = _extends$3((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(toggleButtonNode) {
20087
+ var toggleProps = _extends$1((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(toggleButtonNode) {
20044
20088
  toggleButtonRef.current = toggleButtonNode;
20045
20089
  }), _extends3["aria-activedescendant"] = latestState.isOpen && latestState.highlightedIndex > -1 ? elementIds.getItemId(latestState.highlightedIndex) : "", _extends3["aria-controls"] = elementIds.menuId, _extends3["aria-expanded"] = latest.current.state.isOpen, _extends3["aria-haspopup"] = "listbox", _extends3["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends3.id = elementIds.toggleButtonId, _extends3.role = "combobox", _extends3.tabIndex = 0, _extends3.onBlur = callAllEventHandlers(onBlur, toggleButtonHandleBlur), _extends3), rest);
20046
20090
  if (!rest.disabled) {
@@ -20055,7 +20099,7 @@ var __publicField = (obj, key, value) => {
20055
20099
  var _extends4;
20056
20100
  var _ref5 = _temp5 === void 0 ? {} : _temp5, itemProp = _ref5.item, indexProp = _ref5.index, onMouseMove = _ref5.onMouseMove, onClick = _ref5.onClick;
20057
20101
  _ref5.onPress;
20058
- var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, disabled2 = _ref5.disabled, rest = _objectWithoutPropertiesLoose$6(_ref5, _excluded3$1);
20102
+ var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, disabled2 = _ref5.disabled, rest = _objectWithoutPropertiesLoose$4(_ref5, _excluded3$1);
20059
20103
  var _latest$current = latest.current, latestState = _latest$current.state, latestProps = _latest$current.props;
20060
20104
  var _getItemAndIndex = getItemAndIndex(itemProp, indexProp, latestProps.items, "Pass either item or index to getItemProps!"), item = _getItemAndIndex[0], index2 = _getItemAndIndex[1];
20061
20105
  var itemHandleMouseMove = function itemHandleMouseMove2() {
@@ -20075,7 +20119,7 @@ var __publicField = (obj, key, value) => {
20075
20119
  index: index2
20076
20120
  });
20077
20121
  };
20078
- var itemProps = _extends$3((_extends4 = {
20122
+ var itemProps = _extends$1((_extends4 = {
20079
20123
  disabled: disabled2,
20080
20124
  role: "option",
20081
20125
  "aria-selected": "" + (item === selectedItem),
@@ -20167,7 +20211,7 @@ var __publicField = (obj, key, value) => {
20167
20211
  if (inputValue === "" && selectedItem && props.defaultInputValue === void 0 && props.initialInputValue === void 0 && props.inputValue === void 0) {
20168
20212
  inputValue = props.itemToString(selectedItem);
20169
20213
  }
20170
- return _extends$3({}, initialState2, {
20214
+ return _extends$1({}, initialState2, {
20171
20215
  inputValue
20172
20216
  });
20173
20217
  }
@@ -20228,7 +20272,7 @@ var __publicField = (obj, key, value) => {
20228
20272
  }, [state.selectedItem, props.selectedItem]);
20229
20273
  return [getState(state, props), dispatch2];
20230
20274
  }
20231
- var defaultProps$1$1 = _extends$3({}, defaultProps$3, {
20275
+ var defaultProps$1$1 = _extends$1({}, defaultProps$3, {
20232
20276
  selectedItemChanged: function selectedItemChanged(prevItem, item) {
20233
20277
  return prevItem !== item;
20234
20278
  },
@@ -20279,7 +20323,7 @@ var __publicField = (obj, key, value) => {
20279
20323
  changes = getChangesOnSelection(props, state.highlightedIndex);
20280
20324
  break;
20281
20325
  case InputKeyDownEscape:
20282
- changes = _extends$3({
20326
+ changes = _extends$1({
20283
20327
  isOpen: false,
20284
20328
  highlightedIndex: -1
20285
20329
  }, !state.isOpen && {
@@ -20308,7 +20352,7 @@ var __publicField = (obj, key, value) => {
20308
20352
  };
20309
20353
  break;
20310
20354
  case InputBlur:
20311
- changes = _extends$3({
20355
+ changes = _extends$1({
20312
20356
  isOpen: false,
20313
20357
  highlightedIndex: -1
20314
20358
  }, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && action.selectItem && {
@@ -20343,7 +20387,7 @@ var __publicField = (obj, key, value) => {
20343
20387
  default:
20344
20388
  return downshiftCommonReducer(state, action, stateChangeTypes$1$1);
20345
20389
  }
20346
- return _extends$3({}, state, changes);
20390
+ return _extends$1({}, state, changes);
20347
20391
  }
20348
20392
  var _excluded$1 = ["onMouseLeave", "refKey", "ref"], _excluded2$1 = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], _excluded3 = ["onClick", "onPress", "refKey", "ref"], _excluded4 = ["onKeyDown", "onChange", "onInput", "onFocus", "onBlur", "onChangeText", "refKey", "ref"];
20349
20393
  useCombobox.stateChangeTypes = stateChangeTypes$1$1;
@@ -20351,7 +20395,7 @@ var __publicField = (obj, key, value) => {
20351
20395
  if (userProps === void 0) {
20352
20396
  userProps = {};
20353
20397
  }
20354
- var props = _extends$3({}, defaultProps$1$1, userProps);
20398
+ var props = _extends$1({}, defaultProps$1$1, userProps);
20355
20399
  var initialIsOpen = props.initialIsOpen, defaultIsOpen = props.defaultIsOpen, items = props.items, scrollIntoView2 = props.scrollIntoView, environment = props.environment, getA11yStatusMessage2 = props.getA11yStatusMessage, getA11ySelectionMessage2 = props.getA11ySelectionMessage, itemToString2 = props.itemToString;
20356
20400
  var initialState2 = getInitialState$1(props);
20357
20401
  var _useControlledReducer = useControlledReducer(downshiftUseComboboxReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
@@ -20370,14 +20414,14 @@ var __publicField = (obj, key, value) => {
20370
20414
  var getItemNodeFromIndex = React.useCallback(function(index2) {
20371
20415
  return itemRefs.current[elementIds.getItemId(index2)];
20372
20416
  }, [elementIds]);
20373
- useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$3({
20417
+ useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$1({
20374
20418
  isInitialMount: isInitialMountRef.current,
20375
20419
  previousResultCount: previousResultCountRef.current,
20376
20420
  items,
20377
20421
  environment,
20378
20422
  itemToString: itemToString2
20379
20423
  }, state));
20380
- useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$3({
20424
+ useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$1({
20381
20425
  isInitialMount: isInitialMountRef.current,
20382
20426
  previousResultCount: previousResultCountRef.current,
20383
20427
  items,
@@ -20510,17 +20554,17 @@ var __publicField = (obj, key, value) => {
20510
20554
  };
20511
20555
  }, [dispatch2, latest, getItemNodeFromIndex]);
20512
20556
  var getLabelProps = React.useCallback(function(labelProps) {
20513
- return _extends$3({
20557
+ return _extends$1({
20514
20558
  id: elementIds.labelId,
20515
20559
  htmlFor: elementIds.inputId
20516
20560
  }, labelProps);
20517
20561
  }, [elementIds]);
20518
20562
  var getMenuProps = React.useCallback(function(_temp, _temp2) {
20519
20563
  var _extends2;
20520
- var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey, ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$6(_ref2, _excluded$1);
20564
+ var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey, ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$4(_ref2, _excluded$1);
20521
20565
  var _ref22 = _temp2 === void 0 ? {} : _temp2;
20522
20566
  _ref22.suppressRefError;
20523
- return _extends$3((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
20567
+ return _extends$1((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
20524
20568
  menuRef.current = menuNode;
20525
20569
  }), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function() {
20526
20570
  dispatch2({
@@ -20532,7 +20576,7 @@ var __publicField = (obj, key, value) => {
20532
20576
  var _extends3, _ref4;
20533
20577
  var _ref3 = _temp3 === void 0 ? {} : _temp3, itemProp = _ref3.item, indexProp = _ref3.index, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, onMouseMove = _ref3.onMouseMove, onMouseDown = _ref3.onMouseDown, onClick = _ref3.onClick;
20534
20578
  _ref3.onPress;
20535
- var disabled2 = _ref3.disabled, rest = _objectWithoutPropertiesLoose$6(_ref3, _excluded2$1);
20579
+ var disabled2 = _ref3.disabled, rest = _objectWithoutPropertiesLoose$4(_ref3, _excluded2$1);
20536
20580
  var _latest$current = latest.current, latestProps = _latest$current.props, latestState = _latest$current.state;
20537
20581
  var _getItemAndIndex = getItemAndIndex(itemProp, indexProp, latestProps.items, "Pass either item or index to getItemProps!"), index2 = _getItemAndIndex[1];
20538
20582
  var onSelectKey = "onClick";
@@ -20557,7 +20601,7 @@ var __publicField = (obj, key, value) => {
20557
20601
  var itemHandleMouseDown = function itemHandleMouseDown2(e3) {
20558
20602
  return e3.preventDefault();
20559
20603
  };
20560
- return _extends$3((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(itemNode) {
20604
+ return _extends$1((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(itemNode) {
20561
20605
  if (itemNode) {
20562
20606
  itemRefs.current[elementIds.getItemId(index2)] = itemNode;
20563
20607
  }
@@ -20570,16 +20614,16 @@ var __publicField = (obj, key, value) => {
20570
20614
  var _extends4;
20571
20615
  var _ref5 = _temp4 === void 0 ? {} : _temp4, onClick = _ref5.onClick;
20572
20616
  _ref5.onPress;
20573
- var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$6(_ref5, _excluded3);
20617
+ var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$4(_ref5, _excluded3);
20574
20618
  var latestState = latest.current.state;
20575
20619
  var toggleButtonHandleClick = function toggleButtonHandleClick2() {
20576
20620
  dispatch2({
20577
20621
  type: ToggleButtonClick
20578
20622
  });
20579
20623
  };
20580
- return _extends$3((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function(toggleButtonNode) {
20624
+ return _extends$1((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function(toggleButtonNode) {
20581
20625
  toggleButtonRef.current = toggleButtonNode;
20582
- }), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$3({}, {
20626
+ }), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$1({}, {
20583
20627
  onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
20584
20628
  }), rest);
20585
20629
  }, [dispatch2, latest, elementIds]);
@@ -20587,7 +20631,7 @@ var __publicField = (obj, key, value) => {
20587
20631
  var _extends5;
20588
20632
  var _ref6 = _temp5 === void 0 ? {} : _temp5, onKeyDown = _ref6.onKeyDown, onChange2 = _ref6.onChange, onInput = _ref6.onInput, onFocus = _ref6.onFocus, onBlur = _ref6.onBlur;
20589
20633
  _ref6.onChangeText;
20590
- var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$6(_ref6, _excluded4);
20634
+ var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$4(_ref6, _excluded4);
20591
20635
  var _ref7 = _temp6 === void 0 ? {} : _temp6;
20592
20636
  _ref7.suppressRefError;
20593
20637
  var latestState = latest.current.state;
@@ -20625,7 +20669,7 @@ var __publicField = (obj, key, value) => {
20625
20669
  var _eventHandlers;
20626
20670
  eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange2, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers.onFocus = callAllEventHandlers(onFocus, inputHandleFocus), _eventHandlers);
20627
20671
  }
20628
- return _extends$3((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function(inputNode) {
20672
+ return _extends$1((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function(inputNode) {
20629
20673
  inputRef.current = inputNode;
20630
20674
  }), _extends5["aria-activedescendant"] = latestState.isOpen && latestState.highlightedIndex > -1 ? elementIds.getItemId(latestState.highlightedIndex) : "", _extends5["aria-autocomplete"] = "list", _extends5["aria-controls"] = elementIds.menuId, _extends5["aria-expanded"] = latestState.isOpen, _extends5["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends5.autoComplete = "off", _extends5.id = elementIds.inputId, _extends5.role = "combobox", _extends5.value = latestState.inputValue, _extends5), eventHandlers, rest);
20631
20675
  }, [setGetterPropCallInfo, latest, elementIds, inputKeyDownHandlers, dispatch2, mouseAndTouchTrackersRef, environment]);
@@ -36706,6 +36750,12 @@ var __publicField = (obj, key, value) => {
36706
36750
  }
36707
36751
  return target;
36708
36752
  }
36753
+ function _assertThisInitialized$2(self2) {
36754
+ if (self2 === void 0) {
36755
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
36756
+ }
36757
+ return self2;
36758
+ }
36709
36759
  function _inherits$1(subClass, superClass) {
36710
36760
  if (typeof superClass !== "function" && superClass !== null) {
36711
36761
  throw new TypeError("Super expression must either be null or a function");
@@ -36721,7 +36771,28 @@ var __publicField = (obj, key, value) => {
36721
36771
  writable: false
36722
36772
  });
36723
36773
  if (superClass)
36724
- _setPrototypeOf$4(subClass, superClass);
36774
+ _setPrototypeOf$5(subClass, superClass);
36775
+ }
36776
+ function _getPrototypeOf$1(o2) {
36777
+ _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
36778
+ return o3.__proto__ || Object.getPrototypeOf(o3);
36779
+ };
36780
+ return _getPrototypeOf$1(o2);
36781
+ }
36782
+ function _isNativeReflectConstruct$1() {
36783
+ if (typeof Reflect === "undefined" || !Reflect.construct)
36784
+ return false;
36785
+ if (Reflect.construct.sham)
36786
+ return false;
36787
+ if (typeof Proxy === "function")
36788
+ return true;
36789
+ try {
36790
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
36791
+ }));
36792
+ return true;
36793
+ } catch (e3) {
36794
+ return false;
36795
+ }
36725
36796
  }
36726
36797
  function _possibleConstructorReturn$1(self2, call) {
36727
36798
  if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
@@ -47808,11 +47879,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
47808
47879
  function List2(props) {
47809
47880
  var _this;
47810
47881
  _this = _PureComponent.call(this, props) || this;
47811
- _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$2(_assertThisInitialized$2(_this)));
47882
+ _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$3(_assertThisInitialized$3(_this)));
47812
47883
  _this._outerRef = void 0;
47813
47884
  _this._resetIsScrollingTimeoutId = null;
47814
47885
  _this.state = {
47815
- instance: _assertThisInitialized$2(_assertThisInitialized$2(_this)),
47886
+ instance: _assertThisInitialized$3(_assertThisInitialized$3(_this)),
47816
47887
  isScrolling: false,
47817
47888
  scrollDirection: "forward",
47818
47889
  scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
@@ -48026,7 +48097,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
48026
48097
  className,
48027
48098
  onScroll,
48028
48099
  ref: this._outerRefSetter,
48029
- style: _extends$3({
48100
+ style: _extends$1({
48030
48101
  position: "relative",
48031
48102
  height,
48032
48103
  width,
@@ -48178,8 +48249,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
48178
48249
  return false;
48179
48250
  }
48180
48251
  function areEqual(prevProps, nextProps) {
48181
- var prevStyle = prevProps.style, prevRest = _objectWithoutPropertiesLoose$6(prevProps, ["style"]);
48182
- var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$6(nextProps, ["style"]);
48252
+ var prevStyle = prevProps.style, prevRest = _objectWithoutPropertiesLoose$4(prevProps, ["style"]);
48253
+ var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$4(nextProps, ["style"]);
48183
48254
  return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);
48184
48255
  }
48185
48256
  const GlobalStyle = styled.createGlobalStyle`
@@ -50471,8 +50542,55 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50471
50542
  }
50472
50543
  return DelayMessage2;
50473
50544
  }();
50545
+ function _isNativeFunction(fn) {
50546
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
50547
+ }
50548
+ function _construct(Parent, args, Class) {
50549
+ if (_isNativeReflectConstruct$1()) {
50550
+ _construct = Reflect.construct.bind();
50551
+ } else {
50552
+ _construct = function _construct2(Parent2, args2, Class2) {
50553
+ var a2 = [null];
50554
+ a2.push.apply(a2, args2);
50555
+ var Constructor = Function.bind.apply(Parent2, a2);
50556
+ var instance = new Constructor();
50557
+ if (Class2)
50558
+ _setPrototypeOf$5(instance, Class2.prototype);
50559
+ return instance;
50560
+ };
50561
+ }
50562
+ return _construct.apply(null, arguments);
50563
+ }
50564
+ function _wrapNativeSuper(Class) {
50565
+ var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
50566
+ _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
50567
+ if (Class2 === null || !_isNativeFunction(Class2))
50568
+ return Class2;
50569
+ if (typeof Class2 !== "function") {
50570
+ throw new TypeError("Super expression must either be null or a function");
50571
+ }
50572
+ if (typeof _cache !== "undefined") {
50573
+ if (_cache.has(Class2))
50574
+ return _cache.get(Class2);
50575
+ _cache.set(Class2, Wrapper2);
50576
+ }
50577
+ function Wrapper2() {
50578
+ return _construct(Class2, arguments, _getPrototypeOf$1(this).constructor);
50579
+ }
50580
+ Wrapper2.prototype = Object.create(Class2.prototype, {
50581
+ constructor: {
50582
+ value: Wrapper2,
50583
+ enumerable: false,
50584
+ writable: true,
50585
+ configurable: true
50586
+ }
50587
+ });
50588
+ return _setPrototypeOf$5(Wrapper2, Class2);
50589
+ };
50590
+ return _wrapNativeSuper(Class);
50591
+ }
50474
50592
  var PolishedError = /* @__PURE__ */ function(_Error) {
50475
- _inheritsLoose$1(PolishedError2, _Error);
50593
+ _inheritsLoose$2(PolishedError2, _Error);
50476
50594
  function PolishedError2(code) {
50477
50595
  var _this;
50478
50596
  {
@@ -50829,11 +50947,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50829
50947
  if (weight === 0)
50830
50948
  return otherColor;
50831
50949
  var parsedColor1 = parseToRgb(color);
50832
- var color1 = _extends$3({}, parsedColor1, {
50950
+ var color1 = _extends$4({}, parsedColor1, {
50833
50951
  alpha: typeof parsedColor1.alpha === "number" ? parsedColor1.alpha : 1
50834
50952
  });
50835
50953
  var parsedColor2 = parseToRgb(otherColor);
50836
- var color2 = _extends$3({}, parsedColor2, {
50954
+ var color2 = _extends$4({}, parsedColor2, {
50837
50955
  alpha: typeof parsedColor2.alpha === "number" ? parsedColor2.alpha : 1
50838
50956
  });
50839
50957
  var alphaDelta = color1.alpha - color2.alpha;
@@ -50857,7 +50975,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50857
50975
  return color;
50858
50976
  var parsedColor = parseToRgb(color);
50859
50977
  var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
50860
- var colorWithAlpha = _extends$3({}, parsedColor, {
50978
+ var colorWithAlpha = _extends$4({}, parsedColor, {
50861
50979
  alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
50862
50980
  });
50863
50981
  return rgba(colorWithAlpha);
@@ -92269,7 +92387,7 @@ Inferred class string: "${iconClasses}."`
92269
92387
  var _class;
92270
92388
  var getItemOffset = _ref2.getItemOffset, getEstimatedTotalSize2 = _ref2.getEstimatedTotalSize, getItemSize = _ref2.getItemSize, getOffsetForIndexAndAlignment = _ref2.getOffsetForIndexAndAlignment, getStartIndexForOffset = _ref2.getStartIndexForOffset, getStopIndexForStartIndex = _ref2.getStopIndexForStartIndex, initInstanceProps = _ref2.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange, validateProps = _ref2.validateProps;
92271
92389
  return _class = /* @__PURE__ */ function(_PureComponent) {
92272
- _inheritsLoose$1(List2, _PureComponent);
92390
+ _inheritsLoose$2(List2, _PureComponent);
92273
92391
  function List2(props) {
92274
92392
  var _this;
92275
92393
  _this = _PureComponent.call(this, props) || this;
@@ -92500,7 +92618,7 @@ Inferred class string: "${iconClasses}."`
92500
92618
  className,
92501
92619
  onScroll,
92502
92620
  ref: this._outerRefSetter,
92503
- style: _extends$3({
92621
+ style: _extends$4({
92504
92622
  position: "relative",
92505
92623
  height,
92506
92624
  width,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darajs/core",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "Dara Framework core",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -35,9 +35,9 @@
35
35
  "@babel/preset-env": "^7.23.0",
36
36
  "@babel/preset-react": "^7.22.15",
37
37
  "@babel/preset-typescript": "^7.23.0",
38
- "@darajs/eslint-config": "~1.2.1",
39
- "@darajs/prettier-config": "~1.2.1",
40
- "@darajs/stylelint-config": "~1.2.1",
38
+ "@darajs/eslint-config": "~1.2.3",
39
+ "@darajs/prettier-config": "~1.2.3",
40
+ "@darajs/stylelint-config": "~1.2.3",
41
41
  "@rollup/plugin-inject": "^4.0.4",
42
42
  "@testing-library/dom": "^9.3.0",
43
43
  "@testing-library/jest-dom": "^5.16.5",
@@ -74,10 +74,10 @@
74
74
  "whatwg-fetch": "^3.6.2"
75
75
  },
76
76
  "dependencies": {
77
- "@darajs/styled-components": "~1.2.1",
78
- "@darajs/ui-components": "~1.2.1",
79
- "@darajs/ui-notifications": "~1.2.1",
80
- "@darajs/ui-utils": "~1.2.1",
77
+ "@darajs/styled-components": "~1.2.3",
78
+ "@darajs/ui-components": "~1.2.3",
79
+ "@darajs/ui-notifications": "~1.2.3",
80
+ "@darajs/ui-utils": "~1.2.3",
81
81
  "@fortawesome/fontawesome-free": "^6.3.0",
82
82
  "@recoiljs/refine": "^0.1.1",
83
83
  "@tanstack/query-core": "^4.0.0",
@@ -113,5 +113,5 @@
113
113
  "publishConfig": {
114
114
  "access": "public"
115
115
  },
116
- "gitHead": "1f8df37ad43fb478ec221611617278e6487dcdfd"
116
+ "gitHead": "8aea2cd5575eb6a3d371910bf347e64933db0b9e"
117
117
  }