@64mb/freelens-power 1.0.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/THIRD_PARTY_LICENSES +1707 -0
- package/out/main/ai.js +63 -23
- package/out/main/ai.js.map +1 -1
- package/out/main/cluster-icons-catalog.js +28 -0
- package/out/main/cluster-icons-catalog.js.map +1 -0
- package/out/main/cluster-icons.js +125 -0
- package/out/main/cluster-icons.js.map +1 -0
- package/out/main/common/ai-terminal-context.js +51 -0
- package/out/main/common/ai-terminal-context.js.map +1 -0
- package/out/main/common/ai.js.map +1 -1
- package/out/main/common/cluster-icon-ipc.js +6 -0
- package/out/main/common/cluster-icon-ipc.js.map +1 -0
- package/out/main/common/cluster-icons.js +121 -0
- package/out/main/common/cluster-icons.js.map +1 -0
- package/out/main/common/dashboard.js +1 -1
- package/out/main/common/dashboard.js.map +1 -1
- package/out/main/common/monitoring-history.js +52 -0
- package/out/main/common/monitoring-history.js.map +1 -0
- package/out/main/common/settings-export.js +3 -1
- package/out/main/common/settings-export.js.map +1 -1
- package/out/main/common/store/cluster-icons-store.js +32 -0
- package/out/main/common/store/cluster-icons-store.js.map +1 -0
- package/out/main/common/store/monitoring-preferences-store.js +30 -2
- package/out/main/common/store/monitoring-preferences-store.js.map +1 -1
- package/out/main/dashboard-views.js +132 -28
- package/out/main/dashboard-views.js.map +1 -1
- package/out/main/diagnostics-menu-order.js +57 -0
- package/out/main/diagnostics-menu-order.js.map +1 -0
- package/out/main/index.js +11 -1
- package/out/main/index.js.map +1 -1
- package/out/main/monitoring-history-database.js +103 -0
- package/out/main/monitoring-history-database.js.map +1 -0
- package/out/main/monitoring-history-worker.js +61 -0
- package/out/main/monitoring-history-worker.js.map +1 -0
- package/out/main/monitoring-history.js +110 -0
- package/out/main/monitoring-history.js.map +1 -0
- package/out/renderer/_virtual/_global-external_mobx.js +2 -1
- package/out/renderer/_virtual/_global-external_react-dom.js +2 -1
- package/out/renderer/_virtual/_global-external_react.js +10 -5
- package/out/renderer/_virtual/_rolldown/runtime.js +22 -0
- package/out/renderer/ai-terminal-context.js +200 -0
- package/out/renderer/ai-terminal-context.js.map +1 -0
- package/out/renderer/ai.js +90 -9
- package/out/renderer/ai.js.map +1 -1
- package/out/renderer/appearance.js +1 -0
- package/out/renderer/appearance.js.map +1 -1
- package/out/renderer/cluster-icon-colors.js +188 -0
- package/out/renderer/cluster-icon-colors.js.map +1 -0
- package/out/renderer/cluster-icons.js +304 -0
- package/out/renderer/cluster-icons.js.map +1 -0
- package/out/renderer/dashboard.js +8 -5
- package/out/renderer/dashboard.js.map +1 -1
- package/out/renderer/details/secret-certificate-details.js +9 -2
- package/out/renderer/details/secret-certificate-details.js.map +1 -1
- package/out/renderer/diagnostics.css.js +39 -0
- package/out/renderer/diagnostics.css.js.map +1 -0
- package/out/renderer/diagnostics.js +1100 -0
- package/out/renderer/diagnostics.js.map +1 -0
- package/out/renderer/index.js +32 -0
- package/out/renderer/index.js.map +1 -1
- package/out/renderer/monitoring-collector.js +202 -0
- package/out/renderer/monitoring-collector.js.map +1 -0
- package/out/renderer/monitoring-details-chart.js +42 -0
- package/out/renderer/monitoring-details-chart.js.map +1 -0
- package/out/renderer/monitoring-history-collection.js +168 -0
- package/out/renderer/monitoring-history-collection.js.map +1 -0
- package/out/renderer/monitoring-history-view.js +227 -0
- package/out/renderer/monitoring-history-view.js.map +1 -0
- package/out/renderer/monitoring-history.js +19 -0
- package/out/renderer/monitoring-history.js.map +1 -0
- package/out/renderer/monitoring.js +153 -139
- package/out/renderer/monitoring.js.map +1 -1
- package/out/renderer/node-monitoring.js +127 -0
- package/out/renderer/node-monitoring.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +10 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +9 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +9 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js +19 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js +14 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js +19 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +18 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +26 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +27 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +12 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +12 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +12 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +16 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +11 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js +18 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +13 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +237 -0
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +25 -0
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +12 -0
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +58 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +54 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +133 -0
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +65 -0
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +54 -0
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +12 -0
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +30 -0
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +211 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +31 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +93 -0
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js +38 -0
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +159 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +103 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +18 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js +2200 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js +992 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js +14 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +56 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js +22 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js +30 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js +164 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js +37 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js +245 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js +120 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +6 -0
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js.map +1 -0
- package/out/renderer/pod-monitoring.js +38 -11
- package/out/renderer/pod-monitoring.js.map +1 -1
- package/out/renderer/preferences/ai-shortcuts-preferences.js +12 -4
- package/out/renderer/preferences/ai-shortcuts-preferences.js.map +1 -1
- package/out/renderer/preferences/dashboard-preferences.js +20 -4
- package/out/renderer/preferences/dashboard-preferences.js.map +1 -1
- package/out/renderer/preferences/monitoring-preferences.js +141 -9
- package/out/renderer/preferences/monitoring-preferences.js.map +1 -1
- package/out/renderer/preferences/preferences.js +31 -7
- package/out/renderer/preferences/preferences.js.map +1 -1
- package/out/renderer/read-only.js +2 -2
- package/out/renderer/read-only.js.map +1 -1
- package/out/renderer/src/common/ai-terminal-context.js +51 -0
- package/out/renderer/src/common/ai-terminal-context.js.map +1 -0
- package/out/renderer/src/common/ai.js.map +1 -1
- package/out/renderer/src/common/cluster-icon-ipc.js +6 -0
- package/out/renderer/src/common/cluster-icon-ipc.js.map +1 -0
- package/out/renderer/src/common/cluster-icons.js +133 -0
- package/out/renderer/src/common/cluster-icons.js.map +1 -0
- package/out/renderer/src/common/dashboard.js +1 -1
- package/out/renderer/src/common/dashboard.js.map +1 -1
- package/out/renderer/src/common/date-time.js +11 -0
- package/out/renderer/src/common/date-time.js.map +1 -0
- package/out/renderer/src/common/monitoring-history.js +17 -0
- package/out/renderer/src/common/monitoring-history.js.map +1 -0
- package/out/renderer/src/common/monitoring-math.js +98 -0
- package/out/renderer/src/common/monitoring-math.js.map +1 -0
- package/out/renderer/src/common/resource-diagnostics.js +227 -0
- package/out/renderer/src/common/resource-diagnostics.js.map +1 -0
- package/out/renderer/src/common/settings-export.js.map +1 -1
- package/out/renderer/src/common/store/monitoring-preferences-store.js +30 -2
- package/out/renderer/src/common/store/monitoring-preferences-store.js.map +1 -1
- package/out/renderer/welcome.js +31 -7
- package/out/renderer/welcome.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,992 @@
|
|
|
1
|
+
const require__global_external_react = require("../../../../../../_virtual/_global-external_react.js");
|
|
2
|
+
const require__global_external_react_dom = require("../../../../../../_virtual/_global-external_react-dom.js");
|
|
3
|
+
const require_typeof = require("../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
4
|
+
const require_defineProperty = require("../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
5
|
+
const require_objectSpread2 = require("../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
6
|
+
const require_slicedToArray = require("../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
7
|
+
const require_objectWithoutProperties = require("../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
8
|
+
const require_extends = require("../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
9
|
+
const require_emotion_react_browser_esm = require("../../../../@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");
|
|
10
|
+
const require_taggedTemplateLiteral = require("../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js");
|
|
11
|
+
const require_floating_ui_dom = require("../../../../@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js");
|
|
12
|
+
const require_use_isomorphic_layout_effect_browser_esm = require("../../../../use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js");
|
|
13
|
+
//#region node_modules/.pnpm/react-select@5.10.2_@types+react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
14
|
+
var _excluded$4 = [
|
|
15
|
+
"className",
|
|
16
|
+
"clearValue",
|
|
17
|
+
"cx",
|
|
18
|
+
"getStyles",
|
|
19
|
+
"getClassNames",
|
|
20
|
+
"getValue",
|
|
21
|
+
"hasValue",
|
|
22
|
+
"isMulti",
|
|
23
|
+
"isRtl",
|
|
24
|
+
"options",
|
|
25
|
+
"selectOption",
|
|
26
|
+
"selectProps",
|
|
27
|
+
"setValue",
|
|
28
|
+
"theme"
|
|
29
|
+
];
|
|
30
|
+
var noop = function noop() {};
|
|
31
|
+
/**
|
|
32
|
+
String representation of component state for styling with class names.
|
|
33
|
+
|
|
34
|
+
Expects an array of strings OR a string/object pair:
|
|
35
|
+
- className(['comp', 'comp-arg', 'comp-arg-2'])
|
|
36
|
+
@returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
|
|
37
|
+
- className('comp', { some: true, state: false })
|
|
38
|
+
@returns 'react-select__comp react-select__comp--some'
|
|
39
|
+
*/
|
|
40
|
+
function applyPrefixToName(prefix, name) {
|
|
41
|
+
if (!name) return prefix;
|
|
42
|
+
else if (name[0] === "-") return prefix + name;
|
|
43
|
+
else return prefix + "__" + name;
|
|
44
|
+
}
|
|
45
|
+
function classNames(prefix, state) {
|
|
46
|
+
for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) classNameList[_key - 2] = arguments[_key];
|
|
47
|
+
var arr = [].concat(classNameList);
|
|
48
|
+
if (state && prefix) {
|
|
49
|
+
for (var key in state) if (state.hasOwnProperty(key) && state[key]) arr.push("".concat(applyPrefixToName(prefix, key)));
|
|
50
|
+
}
|
|
51
|
+
return arr.filter(function(i) {
|
|
52
|
+
return i;
|
|
53
|
+
}).map(function(i) {
|
|
54
|
+
return String(i).trim();
|
|
55
|
+
}).join(" ");
|
|
56
|
+
}
|
|
57
|
+
var cleanValue = function cleanValue(value) {
|
|
58
|
+
if (isArray(value)) return value.filter(Boolean);
|
|
59
|
+
if (require_typeof.default(value) === "object" && value !== null) return [value];
|
|
60
|
+
return [];
|
|
61
|
+
};
|
|
62
|
+
var cleanCommonProps = function cleanCommonProps(props) {
|
|
63
|
+
props.className;
|
|
64
|
+
props.clearValue;
|
|
65
|
+
props.cx;
|
|
66
|
+
props.getStyles;
|
|
67
|
+
props.getClassNames;
|
|
68
|
+
props.getValue;
|
|
69
|
+
props.hasValue;
|
|
70
|
+
props.isMulti;
|
|
71
|
+
props.isRtl;
|
|
72
|
+
props.options;
|
|
73
|
+
props.selectOption;
|
|
74
|
+
props.selectProps;
|
|
75
|
+
props.setValue;
|
|
76
|
+
props.theme;
|
|
77
|
+
return require_objectSpread2.default({}, require_objectWithoutProperties.default(props, _excluded$4));
|
|
78
|
+
};
|
|
79
|
+
var getStyleProps = function getStyleProps(props, name, classNamesState) {
|
|
80
|
+
var cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, className = props.className;
|
|
81
|
+
return {
|
|
82
|
+
css: getStyles(name, props),
|
|
83
|
+
className: cx(classNamesState !== null && classNamesState !== void 0 ? classNamesState : {}, getClassNames(name, props), className)
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
function isDocumentElement(el) {
|
|
87
|
+
return [
|
|
88
|
+
document.documentElement,
|
|
89
|
+
document.body,
|
|
90
|
+
window
|
|
91
|
+
].indexOf(el) > -1;
|
|
92
|
+
}
|
|
93
|
+
function normalizedHeight(el) {
|
|
94
|
+
if (isDocumentElement(el)) return window.innerHeight;
|
|
95
|
+
return el.clientHeight;
|
|
96
|
+
}
|
|
97
|
+
function getScrollTop(el) {
|
|
98
|
+
if (isDocumentElement(el)) return window.pageYOffset;
|
|
99
|
+
return el.scrollTop;
|
|
100
|
+
}
|
|
101
|
+
function scrollTo(el, top) {
|
|
102
|
+
if (isDocumentElement(el)) {
|
|
103
|
+
window.scrollTo(0, top);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
el.scrollTop = top;
|
|
107
|
+
}
|
|
108
|
+
function getScrollParent(element) {
|
|
109
|
+
var style = getComputedStyle(element);
|
|
110
|
+
var excludeStaticParent = style.position === "absolute";
|
|
111
|
+
var overflowRx = /(auto|scroll)/;
|
|
112
|
+
if (style.position === "fixed") return document.documentElement;
|
|
113
|
+
for (var parent = element; parent = parent.parentElement;) {
|
|
114
|
+
style = getComputedStyle(parent);
|
|
115
|
+
if (excludeStaticParent && style.position === "static") continue;
|
|
116
|
+
if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) return parent;
|
|
117
|
+
}
|
|
118
|
+
return document.documentElement;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
@param t: time (elapsed)
|
|
122
|
+
@param b: initial value
|
|
123
|
+
@param c: amount of change
|
|
124
|
+
@param d: duration
|
|
125
|
+
*/
|
|
126
|
+
function easeOutCubic(t, b, c, d) {
|
|
127
|
+
return c * ((t = t / d - 1) * t * t + 1) + b;
|
|
128
|
+
}
|
|
129
|
+
function animatedScrollTo(element, to) {
|
|
130
|
+
var duration = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200;
|
|
131
|
+
var callback = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : noop;
|
|
132
|
+
var start = getScrollTop(element);
|
|
133
|
+
var change = to - start;
|
|
134
|
+
var increment = 10;
|
|
135
|
+
var currentTime = 0;
|
|
136
|
+
function animateScroll() {
|
|
137
|
+
currentTime += increment;
|
|
138
|
+
scrollTo(element, easeOutCubic(currentTime, start, change, duration));
|
|
139
|
+
if (currentTime < duration) window.requestAnimationFrame(animateScroll);
|
|
140
|
+
else callback(element);
|
|
141
|
+
}
|
|
142
|
+
animateScroll();
|
|
143
|
+
}
|
|
144
|
+
function scrollIntoView(menuEl, focusedEl) {
|
|
145
|
+
var menuRect = menuEl.getBoundingClientRect();
|
|
146
|
+
var focusedRect = focusedEl.getBoundingClientRect();
|
|
147
|
+
var overScroll = focusedEl.offsetHeight / 3;
|
|
148
|
+
if (focusedRect.bottom + overScroll > menuRect.bottom) scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
|
|
149
|
+
else if (focusedRect.top - overScroll < menuRect.top) scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
|
|
150
|
+
}
|
|
151
|
+
function getBoundingClientObj(element) {
|
|
152
|
+
var rect = element.getBoundingClientRect();
|
|
153
|
+
return {
|
|
154
|
+
bottom: rect.bottom,
|
|
155
|
+
height: rect.height,
|
|
156
|
+
left: rect.left,
|
|
157
|
+
right: rect.right,
|
|
158
|
+
top: rect.top,
|
|
159
|
+
width: rect.width
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function isTouchCapable() {
|
|
163
|
+
try {
|
|
164
|
+
document.createEvent("TouchEvent");
|
|
165
|
+
return true;
|
|
166
|
+
} catch (e) {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function isMobileDevice() {
|
|
171
|
+
try {
|
|
172
|
+
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
173
|
+
} catch (e) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
var passiveOptionAccessed = false;
|
|
178
|
+
var options = { get passive() {
|
|
179
|
+
return passiveOptionAccessed = true;
|
|
180
|
+
} };
|
|
181
|
+
var w = typeof window !== "undefined" ? window : {};
|
|
182
|
+
if (w.addEventListener && w.removeEventListener) {
|
|
183
|
+
w.addEventListener("p", noop, options);
|
|
184
|
+
w.removeEventListener("p", noop, false);
|
|
185
|
+
}
|
|
186
|
+
var supportsPassiveEvents = passiveOptionAccessed;
|
|
187
|
+
function notNullish(item) {
|
|
188
|
+
return item != null;
|
|
189
|
+
}
|
|
190
|
+
function isArray(arg) {
|
|
191
|
+
return Array.isArray(arg);
|
|
192
|
+
}
|
|
193
|
+
function valueTernary(isMulti, multiValue, singleValue) {
|
|
194
|
+
return isMulti ? multiValue : singleValue;
|
|
195
|
+
}
|
|
196
|
+
function singleValueAsValue(singleValue) {
|
|
197
|
+
return singleValue;
|
|
198
|
+
}
|
|
199
|
+
function multiValueAsValue(multiValue) {
|
|
200
|
+
return multiValue;
|
|
201
|
+
}
|
|
202
|
+
var removeProps = function removeProps(propsObj) {
|
|
203
|
+
for (var _len2 = arguments.length, properties = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) properties[_key2 - 1] = arguments[_key2];
|
|
204
|
+
return Object.entries(propsObj).filter(function(_ref) {
|
|
205
|
+
var key = require_slicedToArray.default(_ref, 1)[0];
|
|
206
|
+
return !properties.includes(key);
|
|
207
|
+
}).reduce(function(newProps, _ref3) {
|
|
208
|
+
var _ref4 = require_slicedToArray.default(_ref3, 2), key = _ref4[0];
|
|
209
|
+
newProps[key] = _ref4[1];
|
|
210
|
+
return newProps;
|
|
211
|
+
}, {});
|
|
212
|
+
};
|
|
213
|
+
var _excluded$3 = ["children", "innerProps"], _excluded2$1 = ["children", "innerProps"];
|
|
214
|
+
function getMenuPlacement(_ref) {
|
|
215
|
+
var preferredMaxHeight = _ref.maxHeight, menuEl = _ref.menuEl, minHeight = _ref.minHeight, preferredPlacement = _ref.placement, shouldScroll = _ref.shouldScroll, isFixedPosition = _ref.isFixedPosition, controlHeight = _ref.controlHeight;
|
|
216
|
+
var scrollParent = getScrollParent(menuEl);
|
|
217
|
+
var defaultState = {
|
|
218
|
+
placement: "bottom",
|
|
219
|
+
maxHeight: preferredMaxHeight
|
|
220
|
+
};
|
|
221
|
+
if (!menuEl || !menuEl.offsetParent) return defaultState;
|
|
222
|
+
var scrollHeight = scrollParent.getBoundingClientRect().height;
|
|
223
|
+
var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(), menuBottom = _menuEl$getBoundingCl.bottom, menuHeight = _menuEl$getBoundingCl.height, menuTop = _menuEl$getBoundingCl.top;
|
|
224
|
+
var containerTop = menuEl.offsetParent.getBoundingClientRect().top;
|
|
225
|
+
var viewHeight = isFixedPosition ? window.innerHeight : normalizedHeight(scrollParent);
|
|
226
|
+
var scrollTop = getScrollTop(scrollParent);
|
|
227
|
+
var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
|
|
228
|
+
var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
|
|
229
|
+
var viewSpaceAbove = containerTop - marginTop;
|
|
230
|
+
var viewSpaceBelow = viewHeight - menuTop;
|
|
231
|
+
var scrollSpaceAbove = viewSpaceAbove + scrollTop;
|
|
232
|
+
var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
|
|
233
|
+
var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
|
|
234
|
+
var scrollUp = scrollTop + menuTop - marginTop;
|
|
235
|
+
var scrollDuration = 160;
|
|
236
|
+
switch (preferredPlacement) {
|
|
237
|
+
case "auto":
|
|
238
|
+
case "bottom":
|
|
239
|
+
if (viewSpaceBelow >= menuHeight) return {
|
|
240
|
+
placement: "bottom",
|
|
241
|
+
maxHeight: preferredMaxHeight
|
|
242
|
+
};
|
|
243
|
+
if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
|
|
244
|
+
if (shouldScroll) animatedScrollTo(scrollParent, scrollDown, scrollDuration);
|
|
245
|
+
return {
|
|
246
|
+
placement: "bottom",
|
|
247
|
+
maxHeight: preferredMaxHeight
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
|
|
251
|
+
if (shouldScroll) animatedScrollTo(scrollParent, scrollDown, scrollDuration);
|
|
252
|
+
return {
|
|
253
|
+
placement: "bottom",
|
|
254
|
+
maxHeight: isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
if (preferredPlacement === "auto" || isFixedPosition) {
|
|
258
|
+
var _constrainedHeight = preferredMaxHeight;
|
|
259
|
+
var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
|
|
260
|
+
if (spaceAbove >= minHeight) _constrainedHeight = Math.min(spaceAbove - marginBottom - controlHeight, preferredMaxHeight);
|
|
261
|
+
return {
|
|
262
|
+
placement: "top",
|
|
263
|
+
maxHeight: _constrainedHeight
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
if (preferredPlacement === "bottom") {
|
|
267
|
+
if (shouldScroll) scrollTo(scrollParent, scrollDown);
|
|
268
|
+
return {
|
|
269
|
+
placement: "bottom",
|
|
270
|
+
maxHeight: preferredMaxHeight
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
break;
|
|
274
|
+
case "top":
|
|
275
|
+
if (viewSpaceAbove >= menuHeight) return {
|
|
276
|
+
placement: "top",
|
|
277
|
+
maxHeight: preferredMaxHeight
|
|
278
|
+
};
|
|
279
|
+
if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
|
|
280
|
+
if (shouldScroll) animatedScrollTo(scrollParent, scrollUp, scrollDuration);
|
|
281
|
+
return {
|
|
282
|
+
placement: "top",
|
|
283
|
+
maxHeight: preferredMaxHeight
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
|
|
287
|
+
var _constrainedHeight2 = preferredMaxHeight;
|
|
288
|
+
if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
|
|
289
|
+
if (shouldScroll) animatedScrollTo(scrollParent, scrollUp, scrollDuration);
|
|
290
|
+
return {
|
|
291
|
+
placement: "top",
|
|
292
|
+
maxHeight: _constrainedHeight2
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
placement: "bottom",
|
|
297
|
+
maxHeight: preferredMaxHeight
|
|
298
|
+
};
|
|
299
|
+
default: throw new Error("Invalid placement provided \"".concat(preferredPlacement, "\"."));
|
|
300
|
+
}
|
|
301
|
+
return defaultState;
|
|
302
|
+
}
|
|
303
|
+
function alignToControl(placement) {
|
|
304
|
+
return placement ? {
|
|
305
|
+
bottom: "top",
|
|
306
|
+
top: "bottom"
|
|
307
|
+
}[placement] : "bottom";
|
|
308
|
+
}
|
|
309
|
+
var coercePlacement = function coercePlacement(p) {
|
|
310
|
+
return p === "auto" ? "bottom" : p;
|
|
311
|
+
};
|
|
312
|
+
var menuCSS = function menuCSS(_ref2, unstyled) {
|
|
313
|
+
var _objectSpread2$1;
|
|
314
|
+
var placement = _ref2.placement, _ref2$theme = _ref2.theme, borderRadius = _ref2$theme.borderRadius, spacing = _ref2$theme.spacing, colors = _ref2$theme.colors;
|
|
315
|
+
return require_objectSpread2.default((_objectSpread2$1 = { label: "menu" }, require_defineProperty.default(_objectSpread2$1, alignToControl(placement), "100%"), require_defineProperty.default(_objectSpread2$1, "position", "absolute"), require_defineProperty.default(_objectSpread2$1, "width", "100%"), require_defineProperty.default(_objectSpread2$1, "zIndex", 1), _objectSpread2$1), unstyled ? {} : {
|
|
316
|
+
backgroundColor: colors.neutral0,
|
|
317
|
+
borderRadius,
|
|
318
|
+
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
319
|
+
marginBottom: spacing.menuGutter,
|
|
320
|
+
marginTop: spacing.menuGutter
|
|
321
|
+
});
|
|
322
|
+
};
|
|
323
|
+
var PortalPlacementContext = /*#__PURE__*/ require__global_external_react.createContext(null);
|
|
324
|
+
var MenuPlacer = function MenuPlacer(props) {
|
|
325
|
+
var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
|
|
326
|
+
var setPortalPlacement = (require__global_external_react.useContext(PortalPlacementContext) || {}).setPortalPlacement;
|
|
327
|
+
var ref = require__global_external_react.useRef(null);
|
|
328
|
+
var _useState2 = require_slicedToArray.default(require__global_external_react.useState(maxMenuHeight), 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
|
|
329
|
+
var _useState4 = require_slicedToArray.default(require__global_external_react.useState(null), 2), placement = _useState4[0], setPlacement = _useState4[1];
|
|
330
|
+
var controlHeight = theme.spacing.controlHeight;
|
|
331
|
+
require_use_isomorphic_layout_effect_browser_esm.default(function() {
|
|
332
|
+
var menuEl = ref.current;
|
|
333
|
+
if (!menuEl) return;
|
|
334
|
+
var isFixedPosition = menuPosition === "fixed";
|
|
335
|
+
var state = getMenuPlacement({
|
|
336
|
+
maxHeight: maxMenuHeight,
|
|
337
|
+
menuEl,
|
|
338
|
+
minHeight: minMenuHeight,
|
|
339
|
+
placement: menuPlacement,
|
|
340
|
+
shouldScroll: menuShouldScrollIntoView && !isFixedPosition,
|
|
341
|
+
isFixedPosition,
|
|
342
|
+
controlHeight
|
|
343
|
+
});
|
|
344
|
+
setMaxHeight(state.maxHeight);
|
|
345
|
+
setPlacement(state.placement);
|
|
346
|
+
setPortalPlacement === null || setPortalPlacement === void 0 || setPortalPlacement(state.placement);
|
|
347
|
+
}, [
|
|
348
|
+
maxMenuHeight,
|
|
349
|
+
menuPlacement,
|
|
350
|
+
menuPosition,
|
|
351
|
+
menuShouldScrollIntoView,
|
|
352
|
+
minMenuHeight,
|
|
353
|
+
setPortalPlacement,
|
|
354
|
+
controlHeight
|
|
355
|
+
]);
|
|
356
|
+
return children({
|
|
357
|
+
ref,
|
|
358
|
+
placerProps: require_objectSpread2.default(require_objectSpread2.default({}, props), {}, {
|
|
359
|
+
placement: placement || coercePlacement(menuPlacement),
|
|
360
|
+
maxHeight
|
|
361
|
+
})
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
var Menu$1 = function Menu(props) {
|
|
365
|
+
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
366
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "menu", { menu: true }), { ref: innerRef }, innerProps), children);
|
|
367
|
+
};
|
|
368
|
+
var menuListCSS = function menuListCSS(_ref4, unstyled) {
|
|
369
|
+
var maxHeight = _ref4.maxHeight, baseUnit = _ref4.theme.spacing.baseUnit;
|
|
370
|
+
return require_objectSpread2.default({
|
|
371
|
+
maxHeight,
|
|
372
|
+
overflowY: "auto",
|
|
373
|
+
position: "relative",
|
|
374
|
+
WebkitOverflowScrolling: "touch"
|
|
375
|
+
}, unstyled ? {} : {
|
|
376
|
+
paddingBottom: baseUnit,
|
|
377
|
+
paddingTop: baseUnit
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
var MenuList = function MenuList(props) {
|
|
381
|
+
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
382
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "menuList", {
|
|
383
|
+
"menu-list": true,
|
|
384
|
+
"menu-list--is-multi": isMulti
|
|
385
|
+
}), { ref: innerRef }, innerProps), children);
|
|
386
|
+
};
|
|
387
|
+
var noticeCSS = function noticeCSS(_ref5, unstyled) {
|
|
388
|
+
var _ref5$theme = _ref5.theme, baseUnit = _ref5$theme.spacing.baseUnit, colors = _ref5$theme.colors;
|
|
389
|
+
return require_objectSpread2.default({ textAlign: "center" }, unstyled ? {} : {
|
|
390
|
+
color: colors.neutral40,
|
|
391
|
+
padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px")
|
|
392
|
+
});
|
|
393
|
+
};
|
|
394
|
+
var noOptionsMessageCSS = noticeCSS;
|
|
395
|
+
var loadingMessageCSS = noticeCSS;
|
|
396
|
+
var NoOptionsMessage = function NoOptionsMessage(_ref6) {
|
|
397
|
+
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps;
|
|
398
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(require_objectSpread2.default(require_objectSpread2.default({}, require_objectWithoutProperties.default(_ref6, _excluded$3)), {}, {
|
|
399
|
+
children,
|
|
400
|
+
innerProps
|
|
401
|
+
}), "noOptionsMessage", {
|
|
402
|
+
"menu-notice": true,
|
|
403
|
+
"menu-notice--no-options": true
|
|
404
|
+
}), innerProps), children);
|
|
405
|
+
};
|
|
406
|
+
var LoadingMessage = function LoadingMessage(_ref7) {
|
|
407
|
+
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps;
|
|
408
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(require_objectSpread2.default(require_objectSpread2.default({}, require_objectWithoutProperties.default(_ref7, _excluded2$1)), {}, {
|
|
409
|
+
children,
|
|
410
|
+
innerProps
|
|
411
|
+
}), "loadingMessage", {
|
|
412
|
+
"menu-notice": true,
|
|
413
|
+
"menu-notice--loading": true
|
|
414
|
+
}), innerProps), children);
|
|
415
|
+
};
|
|
416
|
+
var menuPortalCSS = function menuPortalCSS(_ref8) {
|
|
417
|
+
var rect = _ref8.rect, offset = _ref8.offset, position = _ref8.position;
|
|
418
|
+
return {
|
|
419
|
+
left: rect.left,
|
|
420
|
+
position,
|
|
421
|
+
top: offset,
|
|
422
|
+
width: rect.width,
|
|
423
|
+
zIndex: 1
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
var MenuPortal = function MenuPortal(props) {
|
|
427
|
+
var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
|
|
428
|
+
var menuPortalRef = require__global_external_react.useRef(null);
|
|
429
|
+
var cleanupRef = require__global_external_react.useRef(null);
|
|
430
|
+
var _useState6 = require_slicedToArray.default(require__global_external_react.useState(coercePlacement(menuPlacement)), 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
|
|
431
|
+
var portalPlacementContext = require__global_external_react.useMemo(function() {
|
|
432
|
+
return { setPortalPlacement };
|
|
433
|
+
}, []);
|
|
434
|
+
var _useState8 = require_slicedToArray.default(require__global_external_react.useState(null), 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
|
|
435
|
+
var updateComputedPosition = require__global_external_react.useCallback(function() {
|
|
436
|
+
if (!controlElement) return;
|
|
437
|
+
var rect = getBoundingClientObj(controlElement);
|
|
438
|
+
var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset;
|
|
439
|
+
var offset = rect[placement] + scrollDistance;
|
|
440
|
+
if (offset !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset) || rect.left !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left) || rect.width !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width)) setComputedPosition({
|
|
441
|
+
offset,
|
|
442
|
+
rect
|
|
443
|
+
});
|
|
444
|
+
}, [
|
|
445
|
+
controlElement,
|
|
446
|
+
menuPosition,
|
|
447
|
+
placement,
|
|
448
|
+
computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset,
|
|
449
|
+
computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left,
|
|
450
|
+
computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width
|
|
451
|
+
]);
|
|
452
|
+
require_use_isomorphic_layout_effect_browser_esm.default(function() {
|
|
453
|
+
updateComputedPosition();
|
|
454
|
+
}, [updateComputedPosition]);
|
|
455
|
+
var runAutoUpdate = require__global_external_react.useCallback(function() {
|
|
456
|
+
if (typeof cleanupRef.current === "function") {
|
|
457
|
+
cleanupRef.current();
|
|
458
|
+
cleanupRef.current = null;
|
|
459
|
+
}
|
|
460
|
+
if (controlElement && menuPortalRef.current) cleanupRef.current = require_floating_ui_dom.autoUpdate(controlElement, menuPortalRef.current, updateComputedPosition, { elementResize: "ResizeObserver" in window });
|
|
461
|
+
}, [controlElement, updateComputedPosition]);
|
|
462
|
+
require_use_isomorphic_layout_effect_browser_esm.default(function() {
|
|
463
|
+
runAutoUpdate();
|
|
464
|
+
}, [runAutoUpdate]);
|
|
465
|
+
var setMenuPortalElement = require__global_external_react.useCallback(function(menuPortalElement) {
|
|
466
|
+
menuPortalRef.current = menuPortalElement;
|
|
467
|
+
runAutoUpdate();
|
|
468
|
+
}, [runAutoUpdate]);
|
|
469
|
+
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
470
|
+
var menuWrapper = require_emotion_react_browser_esm.createElement("div", require_extends.default({ ref: setMenuPortalElement }, getStyleProps(require_objectSpread2.default(require_objectSpread2.default({}, props), {}, {
|
|
471
|
+
offset: computedPosition.offset,
|
|
472
|
+
position: menuPosition,
|
|
473
|
+
rect: computedPosition.rect
|
|
474
|
+
}), "menuPortal", { "menu-portal": true }), innerProps), children);
|
|
475
|
+
return require_emotion_react_browser_esm.createElement(PortalPlacementContext.Provider, { value: portalPlacementContext }, appendTo ? /*#__PURE__*/ require__global_external_react_dom.createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
476
|
+
};
|
|
477
|
+
var containerCSS = function containerCSS(_ref) {
|
|
478
|
+
var isDisabled = _ref.isDisabled;
|
|
479
|
+
return {
|
|
480
|
+
label: "container",
|
|
481
|
+
direction: _ref.isRtl ? "rtl" : void 0,
|
|
482
|
+
pointerEvents: isDisabled ? "none" : void 0,
|
|
483
|
+
position: "relative"
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
var SelectContainer = function SelectContainer(props) {
|
|
487
|
+
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
488
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "container", {
|
|
489
|
+
"--is-disabled": isDisabled,
|
|
490
|
+
"--is-rtl": isRtl
|
|
491
|
+
}), innerProps), children);
|
|
492
|
+
};
|
|
493
|
+
var valueContainerCSS = function valueContainerCSS(_ref2, unstyled) {
|
|
494
|
+
var spacing = _ref2.theme.spacing, isMulti = _ref2.isMulti, hasValue = _ref2.hasValue, controlShouldRenderValue = _ref2.selectProps.controlShouldRenderValue;
|
|
495
|
+
return require_objectSpread2.default({
|
|
496
|
+
alignItems: "center",
|
|
497
|
+
display: isMulti && hasValue && controlShouldRenderValue ? "flex" : "grid",
|
|
498
|
+
flex: 1,
|
|
499
|
+
flexWrap: "wrap",
|
|
500
|
+
WebkitOverflowScrolling: "touch",
|
|
501
|
+
position: "relative",
|
|
502
|
+
overflow: "hidden"
|
|
503
|
+
}, unstyled ? {} : { padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px") });
|
|
504
|
+
};
|
|
505
|
+
var ValueContainer = function ValueContainer(props) {
|
|
506
|
+
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
507
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "valueContainer", {
|
|
508
|
+
"value-container": true,
|
|
509
|
+
"value-container--is-multi": isMulti,
|
|
510
|
+
"value-container--has-value": hasValue
|
|
511
|
+
}), innerProps), children);
|
|
512
|
+
};
|
|
513
|
+
var indicatorsContainerCSS = function indicatorsContainerCSS() {
|
|
514
|
+
return {
|
|
515
|
+
alignItems: "center",
|
|
516
|
+
alignSelf: "stretch",
|
|
517
|
+
display: "flex",
|
|
518
|
+
flexShrink: 0
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
522
|
+
var children = props.children, innerProps = props.innerProps;
|
|
523
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "indicatorsContainer", { indicators: true }), innerProps), children);
|
|
524
|
+
};
|
|
525
|
+
var _templateObject;
|
|
526
|
+
var _excluded$2 = ["size"], _excluded2 = [
|
|
527
|
+
"innerProps",
|
|
528
|
+
"isRtl",
|
|
529
|
+
"size"
|
|
530
|
+
];
|
|
531
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
532
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
533
|
+
}
|
|
534
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
535
|
+
name: "8mmkcg",
|
|
536
|
+
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
|
537
|
+
} : {
|
|
538
|
+
name: "tj5bde-Svg",
|
|
539
|
+
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
|
540
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcI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wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",
|
|
541
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
542
|
+
};
|
|
543
|
+
var Svg = function Svg(_ref) {
|
|
544
|
+
var size = _ref.size, props = require_objectWithoutProperties.default(_ref, _excluded$2);
|
|
545
|
+
return require_emotion_react_browser_esm.createElement("svg", require_extends.default({
|
|
546
|
+
height: size,
|
|
547
|
+
width: size,
|
|
548
|
+
viewBox: "0 0 20 20",
|
|
549
|
+
"aria-hidden": "true",
|
|
550
|
+
focusable: "false",
|
|
551
|
+
css: _ref2
|
|
552
|
+
}, props));
|
|
553
|
+
};
|
|
554
|
+
var CrossIcon = function CrossIcon(props) {
|
|
555
|
+
return require_emotion_react_browser_esm.createElement(Svg, require_extends.default({ size: 20 }, props), require_emotion_react_browser_esm.createElement("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" }));
|
|
556
|
+
};
|
|
557
|
+
var DownChevron = function DownChevron(props) {
|
|
558
|
+
return require_emotion_react_browser_esm.createElement(Svg, require_extends.default({ size: 20 }, props), require_emotion_react_browser_esm.createElement("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" }));
|
|
559
|
+
};
|
|
560
|
+
var baseCSS = function baseCSS(_ref3, unstyled) {
|
|
561
|
+
var isFocused = _ref3.isFocused, _ref3$theme = _ref3.theme, baseUnit = _ref3$theme.spacing.baseUnit, colors = _ref3$theme.colors;
|
|
562
|
+
return require_objectSpread2.default({
|
|
563
|
+
label: "indicatorContainer",
|
|
564
|
+
display: "flex",
|
|
565
|
+
transition: "color 150ms"
|
|
566
|
+
}, unstyled ? {} : {
|
|
567
|
+
color: isFocused ? colors.neutral60 : colors.neutral20,
|
|
568
|
+
padding: baseUnit * 2,
|
|
569
|
+
":hover": { color: isFocused ? colors.neutral80 : colors.neutral40 }
|
|
570
|
+
});
|
|
571
|
+
};
|
|
572
|
+
var dropdownIndicatorCSS = baseCSS;
|
|
573
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
|
574
|
+
var children = props.children, innerProps = props.innerProps;
|
|
575
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "dropdownIndicator", {
|
|
576
|
+
indicator: true,
|
|
577
|
+
"dropdown-indicator": true
|
|
578
|
+
}), innerProps), children || require_emotion_react_browser_esm.createElement(DownChevron, null));
|
|
579
|
+
};
|
|
580
|
+
var clearIndicatorCSS = baseCSS;
|
|
581
|
+
var ClearIndicator = function ClearIndicator(props) {
|
|
582
|
+
var children = props.children, innerProps = props.innerProps;
|
|
583
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "clearIndicator", {
|
|
584
|
+
indicator: true,
|
|
585
|
+
"clear-indicator": true
|
|
586
|
+
}), innerProps), children || require_emotion_react_browser_esm.createElement(CrossIcon, null));
|
|
587
|
+
};
|
|
588
|
+
var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4, unstyled) {
|
|
589
|
+
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit = _ref4$theme.spacing.baseUnit, colors = _ref4$theme.colors;
|
|
590
|
+
return require_objectSpread2.default({
|
|
591
|
+
label: "indicatorSeparator",
|
|
592
|
+
alignSelf: "stretch",
|
|
593
|
+
width: 1
|
|
594
|
+
}, unstyled ? {} : {
|
|
595
|
+
backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
|
|
596
|
+
marginBottom: baseUnit * 2,
|
|
597
|
+
marginTop: baseUnit * 2
|
|
598
|
+
});
|
|
599
|
+
};
|
|
600
|
+
var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
601
|
+
var innerProps = props.innerProps;
|
|
602
|
+
return require_emotion_react_browser_esm.createElement("span", require_extends.default({}, innerProps, getStyleProps(props, "indicatorSeparator", { "indicator-separator": true })));
|
|
603
|
+
};
|
|
604
|
+
var loadingDotAnimations = require_emotion_react_browser_esm.keyframes(_templateObject || (_templateObject = require_taggedTemplateLiteral.default(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));
|
|
605
|
+
var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5, unstyled) {
|
|
606
|
+
var isFocused = _ref5.isFocused, size = _ref5.size, _ref5$theme = _ref5.theme, colors = _ref5$theme.colors, baseUnit = _ref5$theme.spacing.baseUnit;
|
|
607
|
+
return require_objectSpread2.default({
|
|
608
|
+
label: "loadingIndicator",
|
|
609
|
+
display: "flex",
|
|
610
|
+
transition: "color 150ms",
|
|
611
|
+
alignSelf: "center",
|
|
612
|
+
fontSize: size,
|
|
613
|
+
lineHeight: 1,
|
|
614
|
+
marginRight: size,
|
|
615
|
+
textAlign: "center",
|
|
616
|
+
verticalAlign: "middle"
|
|
617
|
+
}, unstyled ? {} : {
|
|
618
|
+
color: isFocused ? colors.neutral60 : colors.neutral20,
|
|
619
|
+
padding: baseUnit * 2
|
|
620
|
+
});
|
|
621
|
+
};
|
|
622
|
+
var LoadingDot = function LoadingDot(_ref6) {
|
|
623
|
+
var delay = _ref6.delay, offset = _ref6.offset;
|
|
624
|
+
return require_emotion_react_browser_esm.createElement("span", { css: /*#__PURE__*/ require_emotion_react_browser_esm.css({
|
|
625
|
+
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
626
|
+
backgroundColor: "currentColor",
|
|
627
|
+
borderRadius: "1em",
|
|
628
|
+
display: "inline-block",
|
|
629
|
+
marginLeft: offset ? "1em" : void 0,
|
|
630
|
+
height: "1em",
|
|
631
|
+
verticalAlign: "top",
|
|
632
|
+
width: "1em"
|
|
633
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQg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2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */") });
|
|
634
|
+
};
|
|
635
|
+
var LoadingIndicator = function LoadingIndicator(_ref7) {
|
|
636
|
+
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size = _ref7$size === void 0 ? 4 : _ref7$size;
|
|
637
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(require_objectSpread2.default(require_objectSpread2.default({}, require_objectWithoutProperties.default(_ref7, _excluded2)), {}, {
|
|
638
|
+
innerProps,
|
|
639
|
+
isRtl,
|
|
640
|
+
size
|
|
641
|
+
}), "loadingIndicator", {
|
|
642
|
+
indicator: true,
|
|
643
|
+
"loading-indicator": true
|
|
644
|
+
}), innerProps), require_emotion_react_browser_esm.createElement(LoadingDot, {
|
|
645
|
+
delay: 0,
|
|
646
|
+
offset: isRtl
|
|
647
|
+
}), require_emotion_react_browser_esm.createElement(LoadingDot, {
|
|
648
|
+
delay: 160,
|
|
649
|
+
offset: true
|
|
650
|
+
}), require_emotion_react_browser_esm.createElement(LoadingDot, {
|
|
651
|
+
delay: 320,
|
|
652
|
+
offset: !isRtl
|
|
653
|
+
}));
|
|
654
|
+
};
|
|
655
|
+
var css$1 = function css(_ref, unstyled) {
|
|
656
|
+
var isDisabled = _ref.isDisabled, isFocused = _ref.isFocused, _ref$theme = _ref.theme, colors = _ref$theme.colors, borderRadius = _ref$theme.borderRadius, spacing = _ref$theme.spacing;
|
|
657
|
+
return require_objectSpread2.default({
|
|
658
|
+
label: "control",
|
|
659
|
+
alignItems: "center",
|
|
660
|
+
cursor: "default",
|
|
661
|
+
display: "flex",
|
|
662
|
+
flexWrap: "wrap",
|
|
663
|
+
justifyContent: "space-between",
|
|
664
|
+
minHeight: spacing.controlHeight,
|
|
665
|
+
outline: "0 !important",
|
|
666
|
+
position: "relative",
|
|
667
|
+
transition: "all 100ms"
|
|
668
|
+
}, unstyled ? {} : {
|
|
669
|
+
backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
|
|
670
|
+
borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
|
|
671
|
+
borderRadius,
|
|
672
|
+
borderStyle: "solid",
|
|
673
|
+
borderWidth: 1,
|
|
674
|
+
boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : void 0,
|
|
675
|
+
"&:hover": { borderColor: isFocused ? colors.primary : colors.neutral30 }
|
|
676
|
+
});
|
|
677
|
+
};
|
|
678
|
+
var Control$1 = function Control(props) {
|
|
679
|
+
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
680
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({ ref: innerRef }, getStyleProps(props, "control", {
|
|
681
|
+
control: true,
|
|
682
|
+
"control--is-disabled": isDisabled,
|
|
683
|
+
"control--is-focused": isFocused,
|
|
684
|
+
"control--menu-is-open": menuIsOpen
|
|
685
|
+
}), innerProps, { "aria-disabled": isDisabled || void 0 }), children);
|
|
686
|
+
};
|
|
687
|
+
var _excluded$1 = ["data"];
|
|
688
|
+
var groupCSS = function groupCSS(_ref, unstyled) {
|
|
689
|
+
var spacing = _ref.theme.spacing;
|
|
690
|
+
return unstyled ? {} : {
|
|
691
|
+
paddingBottom: spacing.baseUnit * 2,
|
|
692
|
+
paddingTop: spacing.baseUnit * 2
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
var Group = function Group(props) {
|
|
696
|
+
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
697
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "group", { group: true }), innerProps), require_emotion_react_browser_esm.createElement(Heading, require_extends.default({}, headingProps, {
|
|
698
|
+
selectProps,
|
|
699
|
+
theme,
|
|
700
|
+
getStyles,
|
|
701
|
+
getClassNames,
|
|
702
|
+
cx
|
|
703
|
+
}), label), require_emotion_react_browser_esm.createElement("div", null, children));
|
|
704
|
+
};
|
|
705
|
+
var groupHeadingCSS = function groupHeadingCSS(_ref2, unstyled) {
|
|
706
|
+
var _ref2$theme = _ref2.theme, colors = _ref2$theme.colors, spacing = _ref2$theme.spacing;
|
|
707
|
+
return require_objectSpread2.default({
|
|
708
|
+
label: "group",
|
|
709
|
+
cursor: "default",
|
|
710
|
+
display: "block"
|
|
711
|
+
}, unstyled ? {} : {
|
|
712
|
+
color: colors.neutral40,
|
|
713
|
+
fontSize: "75%",
|
|
714
|
+
fontWeight: 500,
|
|
715
|
+
marginBottom: "0.25em",
|
|
716
|
+
paddingLeft: spacing.baseUnit * 3,
|
|
717
|
+
paddingRight: spacing.baseUnit * 3,
|
|
718
|
+
textTransform: "uppercase"
|
|
719
|
+
});
|
|
720
|
+
};
|
|
721
|
+
var GroupHeading = function GroupHeading(props) {
|
|
722
|
+
var _cleanCommonProps = cleanCommonProps(props);
|
|
723
|
+
_cleanCommonProps.data;
|
|
724
|
+
var innerProps = require_objectWithoutProperties.default(_cleanCommonProps, _excluded$1);
|
|
725
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "groupHeading", { "group-heading": true }), innerProps));
|
|
726
|
+
};
|
|
727
|
+
var Group$1 = Group;
|
|
728
|
+
var _excluded = [
|
|
729
|
+
"innerRef",
|
|
730
|
+
"isDisabled",
|
|
731
|
+
"isHidden",
|
|
732
|
+
"inputClassName"
|
|
733
|
+
];
|
|
734
|
+
var inputCSS = function inputCSS(_ref, unstyled) {
|
|
735
|
+
var isDisabled = _ref.isDisabled, value = _ref.value, _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
|
|
736
|
+
return require_objectSpread2.default(require_objectSpread2.default({
|
|
737
|
+
visibility: isDisabled ? "hidden" : "visible",
|
|
738
|
+
transform: value ? "translateZ(0)" : ""
|
|
739
|
+
}, containerStyle), unstyled ? {} : {
|
|
740
|
+
margin: spacing.baseUnit / 2,
|
|
741
|
+
paddingBottom: spacing.baseUnit / 2,
|
|
742
|
+
paddingTop: spacing.baseUnit / 2,
|
|
743
|
+
color: colors.neutral80
|
|
744
|
+
});
|
|
745
|
+
};
|
|
746
|
+
var spacingStyle = {
|
|
747
|
+
gridArea: "1 / 2",
|
|
748
|
+
font: "inherit",
|
|
749
|
+
minWidth: "2px",
|
|
750
|
+
border: 0,
|
|
751
|
+
margin: 0,
|
|
752
|
+
outline: 0,
|
|
753
|
+
padding: 0
|
|
754
|
+
};
|
|
755
|
+
var containerStyle = {
|
|
756
|
+
flex: "1 1 auto",
|
|
757
|
+
display: "inline-grid",
|
|
758
|
+
gridArea: "1 / 1 / 2 / 3",
|
|
759
|
+
gridTemplateColumns: "0 min-content",
|
|
760
|
+
"&:after": require_objectSpread2.default({
|
|
761
|
+
content: "attr(data-value) \" \"",
|
|
762
|
+
visibility: "hidden",
|
|
763
|
+
whiteSpace: "pre"
|
|
764
|
+
}, spacingStyle)
|
|
765
|
+
};
|
|
766
|
+
var inputStyle = function inputStyle(isHidden) {
|
|
767
|
+
return require_objectSpread2.default({
|
|
768
|
+
label: "input",
|
|
769
|
+
color: "inherit",
|
|
770
|
+
background: 0,
|
|
771
|
+
opacity: isHidden ? 0 : 1,
|
|
772
|
+
width: "100%"
|
|
773
|
+
}, spacingStyle);
|
|
774
|
+
};
|
|
775
|
+
var Input$1 = function Input(props) {
|
|
776
|
+
var cx = props.cx, value = props.value;
|
|
777
|
+
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = require_objectWithoutProperties.default(_cleanCommonProps, _excluded);
|
|
778
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "input", { "input-container": true }), { "data-value": value || "" }), require_emotion_react_browser_esm.createElement("input", require_extends.default({
|
|
779
|
+
className: cx({ input: true }, inputClassName),
|
|
780
|
+
ref: innerRef,
|
|
781
|
+
style: inputStyle(isHidden),
|
|
782
|
+
disabled: isDisabled
|
|
783
|
+
}, innerProps)));
|
|
784
|
+
};
|
|
785
|
+
var multiValueCSS = function multiValueCSS(_ref, unstyled) {
|
|
786
|
+
var _ref$theme = _ref.theme, spacing = _ref$theme.spacing, borderRadius = _ref$theme.borderRadius, colors = _ref$theme.colors;
|
|
787
|
+
return require_objectSpread2.default({
|
|
788
|
+
label: "multiValue",
|
|
789
|
+
display: "flex",
|
|
790
|
+
minWidth: 0
|
|
791
|
+
}, unstyled ? {} : {
|
|
792
|
+
backgroundColor: colors.neutral10,
|
|
793
|
+
borderRadius: borderRadius / 2,
|
|
794
|
+
margin: spacing.baseUnit / 2
|
|
795
|
+
});
|
|
796
|
+
};
|
|
797
|
+
var multiValueLabelCSS = function multiValueLabelCSS(_ref2, unstyled) {
|
|
798
|
+
var _ref2$theme = _ref2.theme, borderRadius = _ref2$theme.borderRadius, colors = _ref2$theme.colors, cropWithEllipsis = _ref2.cropWithEllipsis;
|
|
799
|
+
return require_objectSpread2.default({
|
|
800
|
+
overflow: "hidden",
|
|
801
|
+
textOverflow: cropWithEllipsis || cropWithEllipsis === void 0 ? "ellipsis" : void 0,
|
|
802
|
+
whiteSpace: "nowrap"
|
|
803
|
+
}, unstyled ? {} : {
|
|
804
|
+
borderRadius: borderRadius / 2,
|
|
805
|
+
color: colors.neutral80,
|
|
806
|
+
fontSize: "85%",
|
|
807
|
+
padding: 3,
|
|
808
|
+
paddingLeft: 6
|
|
809
|
+
});
|
|
810
|
+
};
|
|
811
|
+
var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3, unstyled) {
|
|
812
|
+
var _ref3$theme = _ref3.theme, spacing = _ref3$theme.spacing, borderRadius = _ref3$theme.borderRadius, colors = _ref3$theme.colors, isFocused = _ref3.isFocused;
|
|
813
|
+
return require_objectSpread2.default({
|
|
814
|
+
alignItems: "center",
|
|
815
|
+
display: "flex"
|
|
816
|
+
}, unstyled ? {} : {
|
|
817
|
+
borderRadius: borderRadius / 2,
|
|
818
|
+
backgroundColor: isFocused ? colors.dangerLight : void 0,
|
|
819
|
+
paddingLeft: spacing.baseUnit,
|
|
820
|
+
paddingRight: spacing.baseUnit,
|
|
821
|
+
":hover": {
|
|
822
|
+
backgroundColor: colors.dangerLight,
|
|
823
|
+
color: colors.danger
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
};
|
|
827
|
+
var MultiValueGeneric = function MultiValueGeneric(_ref4) {
|
|
828
|
+
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
829
|
+
return require_emotion_react_browser_esm.createElement("div", innerProps, children);
|
|
830
|
+
};
|
|
831
|
+
var MultiValueContainer = MultiValueGeneric;
|
|
832
|
+
var MultiValueLabel = MultiValueGeneric;
|
|
833
|
+
function MultiValueRemove(_ref5) {
|
|
834
|
+
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
835
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({ role: "button" }, innerProps), children || require_emotion_react_browser_esm.createElement(CrossIcon, { size: 14 }));
|
|
836
|
+
}
|
|
837
|
+
var MultiValue$1 = function MultiValue(props) {
|
|
838
|
+
var children = props.children, components = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps = props.removeProps, selectProps = props.selectProps;
|
|
839
|
+
var Container = components.Container, Label = components.Label, Remove = components.Remove;
|
|
840
|
+
return require_emotion_react_browser_esm.createElement(Container, {
|
|
841
|
+
data,
|
|
842
|
+
innerProps: require_objectSpread2.default(require_objectSpread2.default({}, getStyleProps(props, "multiValue", {
|
|
843
|
+
"multi-value": true,
|
|
844
|
+
"multi-value--is-disabled": isDisabled
|
|
845
|
+
})), innerProps),
|
|
846
|
+
selectProps
|
|
847
|
+
}, require_emotion_react_browser_esm.createElement(Label, {
|
|
848
|
+
data,
|
|
849
|
+
innerProps: require_objectSpread2.default({}, getStyleProps(props, "multiValueLabel", { "multi-value__label": true })),
|
|
850
|
+
selectProps
|
|
851
|
+
}, children), require_emotion_react_browser_esm.createElement(Remove, {
|
|
852
|
+
data,
|
|
853
|
+
innerProps: require_objectSpread2.default(require_objectSpread2.default({}, getStyleProps(props, "multiValueRemove", { "multi-value__remove": true })), {}, { "aria-label": "Remove ".concat(children || "option") }, removeProps),
|
|
854
|
+
selectProps
|
|
855
|
+
}));
|
|
856
|
+
};
|
|
857
|
+
var optionCSS = function optionCSS(_ref, unstyled) {
|
|
858
|
+
var isDisabled = _ref.isDisabled, isFocused = _ref.isFocused, isSelected = _ref.isSelected, _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
|
|
859
|
+
return require_objectSpread2.default({
|
|
860
|
+
label: "option",
|
|
861
|
+
cursor: "default",
|
|
862
|
+
display: "block",
|
|
863
|
+
fontSize: "inherit",
|
|
864
|
+
width: "100%",
|
|
865
|
+
userSelect: "none",
|
|
866
|
+
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
|
|
867
|
+
}, unstyled ? {} : {
|
|
868
|
+
backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : "transparent",
|
|
869
|
+
color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : "inherit",
|
|
870
|
+
padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
|
|
871
|
+
":active": { backgroundColor: !isDisabled ? isSelected ? colors.primary : colors.primary50 : void 0 }
|
|
872
|
+
});
|
|
873
|
+
};
|
|
874
|
+
var Option$1 = function Option(props) {
|
|
875
|
+
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
876
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "option", {
|
|
877
|
+
option: true,
|
|
878
|
+
"option--is-disabled": isDisabled,
|
|
879
|
+
"option--is-focused": isFocused,
|
|
880
|
+
"option--is-selected": isSelected
|
|
881
|
+
}), {
|
|
882
|
+
ref: innerRef,
|
|
883
|
+
"aria-disabled": isDisabled
|
|
884
|
+
}, innerProps), children);
|
|
885
|
+
};
|
|
886
|
+
var placeholderCSS = function placeholderCSS(_ref, unstyled) {
|
|
887
|
+
var _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
|
|
888
|
+
return require_objectSpread2.default({
|
|
889
|
+
label: "placeholder",
|
|
890
|
+
gridArea: "1 / 1 / 2 / 3"
|
|
891
|
+
}, unstyled ? {} : {
|
|
892
|
+
color: colors.neutral50,
|
|
893
|
+
marginLeft: spacing.baseUnit / 2,
|
|
894
|
+
marginRight: spacing.baseUnit / 2
|
|
895
|
+
});
|
|
896
|
+
};
|
|
897
|
+
var Placeholder$1 = function Placeholder(props) {
|
|
898
|
+
var children = props.children, innerProps = props.innerProps;
|
|
899
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "placeholder", { placeholder: true }), innerProps), children);
|
|
900
|
+
};
|
|
901
|
+
var css = function css(_ref, unstyled) {
|
|
902
|
+
var isDisabled = _ref.isDisabled, _ref$theme = _ref.theme, spacing = _ref$theme.spacing, colors = _ref$theme.colors;
|
|
903
|
+
return require_objectSpread2.default({
|
|
904
|
+
label: "singleValue",
|
|
905
|
+
gridArea: "1 / 1 / 2 / 3",
|
|
906
|
+
maxWidth: "100%",
|
|
907
|
+
overflow: "hidden",
|
|
908
|
+
textOverflow: "ellipsis",
|
|
909
|
+
whiteSpace: "nowrap"
|
|
910
|
+
}, unstyled ? {} : {
|
|
911
|
+
color: isDisabled ? colors.neutral40 : colors.neutral80,
|
|
912
|
+
marginLeft: spacing.baseUnit / 2,
|
|
913
|
+
marginRight: spacing.baseUnit / 2
|
|
914
|
+
});
|
|
915
|
+
};
|
|
916
|
+
var components = {
|
|
917
|
+
ClearIndicator,
|
|
918
|
+
Control: Control$1,
|
|
919
|
+
DropdownIndicator,
|
|
920
|
+
DownChevron,
|
|
921
|
+
CrossIcon,
|
|
922
|
+
Group: Group$1,
|
|
923
|
+
GroupHeading,
|
|
924
|
+
IndicatorsContainer,
|
|
925
|
+
IndicatorSeparator,
|
|
926
|
+
Input: Input$1,
|
|
927
|
+
LoadingIndicator,
|
|
928
|
+
Menu: Menu$1,
|
|
929
|
+
MenuList,
|
|
930
|
+
MenuPortal,
|
|
931
|
+
LoadingMessage,
|
|
932
|
+
NoOptionsMessage,
|
|
933
|
+
MultiValue: MultiValue$1,
|
|
934
|
+
MultiValueContainer,
|
|
935
|
+
MultiValueLabel,
|
|
936
|
+
MultiValueRemove,
|
|
937
|
+
Option: Option$1,
|
|
938
|
+
Placeholder: Placeholder$1,
|
|
939
|
+
SelectContainer,
|
|
940
|
+
SingleValue: function SingleValue(props) {
|
|
941
|
+
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
942
|
+
return require_emotion_react_browser_esm.createElement("div", require_extends.default({}, getStyleProps(props, "singleValue", {
|
|
943
|
+
"single-value": true,
|
|
944
|
+
"single-value--is-disabled": isDisabled
|
|
945
|
+
}), innerProps), children);
|
|
946
|
+
},
|
|
947
|
+
ValueContainer
|
|
948
|
+
};
|
|
949
|
+
var defaultComponents = function defaultComponents(props) {
|
|
950
|
+
return require_objectSpread2.default(require_objectSpread2.default({}, components), props.components);
|
|
951
|
+
};
|
|
952
|
+
//#endregion
|
|
953
|
+
exports.A = isMobileDevice;
|
|
954
|
+
exports.B = multiValueAsValue;
|
|
955
|
+
exports.C = singleValueAsValue;
|
|
956
|
+
exports.D = valueTernary;
|
|
957
|
+
exports.E = classNames;
|
|
958
|
+
exports.F = defaultComponents;
|
|
959
|
+
exports.G = isDocumentElement;
|
|
960
|
+
exports.H = cleanValue;
|
|
961
|
+
exports.I = scrollIntoView;
|
|
962
|
+
exports.J = noop;
|
|
963
|
+
exports.K = notNullish;
|
|
964
|
+
exports.M = MenuPlacer;
|
|
965
|
+
exports.a = clearIndicatorCSS;
|
|
966
|
+
exports.b = containerCSS;
|
|
967
|
+
exports.c = components;
|
|
968
|
+
exports.d = css$1;
|
|
969
|
+
exports.e = dropdownIndicatorCSS;
|
|
970
|
+
exports.f = groupHeadingCSS;
|
|
971
|
+
exports.g = groupCSS;
|
|
972
|
+
exports.h = indicatorSeparatorCSS;
|
|
973
|
+
exports.i = indicatorsContainerCSS;
|
|
974
|
+
exports.j = inputCSS;
|
|
975
|
+
exports.k = loadingMessageCSS;
|
|
976
|
+
exports.l = loadingIndicatorCSS;
|
|
977
|
+
exports.m = menuCSS;
|
|
978
|
+
exports.n = menuListCSS;
|
|
979
|
+
exports.o = menuPortalCSS;
|
|
980
|
+
exports.p = multiValueCSS;
|
|
981
|
+
exports.q = multiValueLabelCSS;
|
|
982
|
+
exports.r = removeProps;
|
|
983
|
+
exports.s = supportsPassiveEvents;
|
|
984
|
+
exports.t = multiValueRemoveCSS;
|
|
985
|
+
exports.u = noOptionsMessageCSS;
|
|
986
|
+
exports.v = optionCSS;
|
|
987
|
+
exports.w = placeholderCSS;
|
|
988
|
+
exports.x = css;
|
|
989
|
+
exports.y = valueContainerCSS;
|
|
990
|
+
exports.z = isTouchCapable;
|
|
991
|
+
|
|
992
|
+
//# sourceMappingURL=index-641ee5b8.esm.js.map
|