You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

react-select.esm.js 1.5 KiB

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import React, { Component } from 'react';
  2. import memoizeOne from 'memoize-one';
  3. import { CacheProvider } from '@emotion/core';
  4. import 'react-dom';
  5. import 'prop-types';
  6. import './utils-711604ed.esm.js';
  7. export { y as components } from './index-52626178.esm.js';
  8. import { S as Select } from './Select-073d29ba.esm.js';
  9. export { c as createFilter, a as defaultTheme, m as mergeStyles } from './Select-073d29ba.esm.js';
  10. import '@emotion/css';
  11. import 'react-input-autosize';
  12. import { m as manageState } from './stateManager-149692c5.esm.js';
  13. import createCache from '@emotion/cache';
  14. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
  15. var NonceProvider =
  16. /*#__PURE__*/
  17. function (_Component) {
  18. _inheritsLoose(NonceProvider, _Component);
  19. function NonceProvider(props) {
  20. var _this;
  21. _this = _Component.call(this, props) || this;
  22. _this.createEmotionCache = function (nonce) {
  23. return createCache({
  24. nonce: nonce
  25. });
  26. };
  27. _this.createEmotionCache = memoizeOne(_this.createEmotionCache);
  28. return _this;
  29. }
  30. var _proto = NonceProvider.prototype;
  31. _proto.render = function render() {
  32. var emotionCache = this.createEmotionCache(this.props.nonce);
  33. return React.createElement(CacheProvider, {
  34. value: emotionCache
  35. }, this.props.children);
  36. };
  37. return NonceProvider;
  38. }(Component);
  39. var index = manageState(Select);
  40. export default index;
  41. export { NonceProvider };