@orfeas126/box-ui-elements
Version:
Box UI Elements
118 lines (94 loc) • 7.81 kB
JavaScript
/*!
* Box UI Element
*
* Copyright 2019 Box, Inc. All rights reserved.
*
* This product includes software developed by Box, Inc. ("Box")
* (http://www.box.com)
*
* ALL BOX SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL BOX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* See the Box license for the specific language governing permissions
* and limitations under the license.
*/
;
(globalThis["webpackChunk_orfeas126_box_ui_elements"] = globalThis["webpackChunk_orfeas126_box_ui_elements"] || []).push([["boxai-sidebar"],{
/***/ "./node_modules/@box/blueprint-web-assets/icons/Fill/ArrowsExpand.js":
/*!***************************************************************************!*\
!*** ./node_modules/@box/blueprint-web-assets/icons/Fill/ArrowsExpand.js ***!
\***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
const SvgArrowsExpand = (props) => ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", role: "img", ...props, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path", { fill: props.color || '#909090', fillRule: "evenodd", d: "M14 1a1 1 0 0 1 .993.883L15 2v5a1 1 0 0 1-1.993.117L13 7V4.414L9.914 7.5a1 1 0 0 1-1.497-1.32l.083-.094L11.584 3H9a1 1 0 0 1-.994-.883L8 2a1 1 0 0 1 .883-.993L9 1h5ZM2 15a1 1 0 0 1-.993-.883L1 14V9a1 1 0 0 1 1.993-.117L3 9v2.586L6.086 8.5a1 1 0 0 1 1.497 1.32l-.083.094L4.416 13H7a1 1 0 0 1 .993.883L8 14a1 1 0 0 1-.883.993L7 15H2Z", clipRule: "evenodd" }) }));
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgArrowsExpand);
/***/ }),
/***/ "./src/elements/content-sidebar/BoxAISidebar.tsx":
/*!*******************************************************!*\
!*** ./src/elements/content-sidebar/BoxAISidebar.tsx ***!
\*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ BoxAISidebarComponent: () => (/* binding */ BoxAISidebar),
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_flow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/flow */ "./node_modules/lodash/flow.js");
/* harmony import */ var lodash_flow__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_flow__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-intl */ "./node_modules/react-intl/lib/src/components/useIntl.js");
/* harmony import */ var _box_blueprint_web_assets_icons_Fill__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @box/blueprint-web-assets/icons/Fill */ "./node_modules/@box/blueprint-web-assets/icons/Fill/ArrowsExpand.js");
/* harmony import */ var _box_blueprint_web__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @box/blueprint-web */ "./node_modules/@box/blueprint-web/lib-esm/primitives/icon-button/icon-button.js");
/* harmony import */ var _SidebarContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SidebarContent */ "./src/elements/content-sidebar/SidebarContent.js");
/* harmony import */ var _common_api_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/api-context */ "./src/elements/common/api-context/index.js");
/* harmony import */ var _common_error_boundary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/error-boundary */ "./src/elements/common/error-boundary/index.js");
/* harmony import */ var _common_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/logger */ "./src/elements/common/logger/index.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ "./src/constants.js");
/* harmony import */ var _common_logger_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/logger/constants */ "./src/elements/common/logger/constants.js");
/* harmony import */ var _utils_performance__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/performance */ "./src/utils/performance.js");
/* harmony import */ var _common_messages__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../common/messages */ "./src/elements/common/messages.js");
/* harmony import */ var _messages__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./messages */ "./src/elements/content-sidebar/messages.js");
/**
* @file Redesigned Metadata sidebar component
* @author Box
*/
const MARK_NAME_JS_READY = `${_constants__WEBPACK_IMPORTED_MODULE_6__.ORIGIN_BOXAI_SIDEBAR}_${_common_logger_constants__WEBPACK_IMPORTED_MODULE_7__.EVENT_JS_READY}`;
(0,_utils_performance__WEBPACK_IMPORTED_MODULE_8__.mark)(MARK_NAME_JS_READY);
function BoxAISidebar({
onExpandClick
}) {
const {
formatMessage
} = (0,react_intl__WEBPACK_IMPORTED_MODULE_11__["default"])();
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SidebarContent__WEBPACK_IMPORTED_MODULE_2__["default"], {
actions: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_box_blueprint_web__WEBPACK_IMPORTED_MODULE_12__.IconButton, {
"aria-label": formatMessage(_messages__WEBPACK_IMPORTED_MODULE_10__["default"].boxAISidebarExpand),
icon: _box_blueprint_web_assets_icons_Fill__WEBPACK_IMPORTED_MODULE_13__["default"],
onClick: onExpandClick,
size: "x-small"
}),
className: "bcs-BoxAISidebar",
sidebarView: _constants__WEBPACK_IMPORTED_MODULE_6__.SIDEBAR_VIEW_BOXAI,
title: formatMessage(_common_messages__WEBPACK_IMPORTED_MODULE_9__["default"].sidebarBoxAITitle)
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
className: "bcs-BoxAISidebar-content"
}));
}
const BoxAISidebarDefaultExport = lodash_flow__WEBPACK_IMPORTED_MODULE_1___default()([(0,_common_logger__WEBPACK_IMPORTED_MODULE_5__.withLogger)(_constants__WEBPACK_IMPORTED_MODULE_6__.ORIGIN_BOXAI_SIDEBAR), (0,_common_error_boundary__WEBPACK_IMPORTED_MODULE_4__.withErrorBoundary)(_constants__WEBPACK_IMPORTED_MODULE_6__.ORIGIN_BOXAI_SIDEBAR), _common_api_context__WEBPACK_IMPORTED_MODULE_3__.withAPIContext])(BoxAISidebar);
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BoxAISidebarDefaultExport);
/***/ })
}]);
//# sourceMappingURL=boxai-sidebar.no.react.js.map