gwchq-textjam 0.3.10 → 0.3.12
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/dist/index.js +370 -458
- package/dist/style.css +3 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68492,8 +68492,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68492
68492
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
68493
68493
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
68494
68494
|
/* harmony export */ });
|
|
68495
|
-
/* harmony import */ var
|
|
68496
|
-
/* harmony import */ var
|
|
68495
|
+
/* harmony import */ var _Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89379);
|
|
68496
|
+
/* harmony import */ var _Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53986);
|
|
68497
68497
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51649);
|
|
68498
68498
|
/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14062);
|
|
68499
68499
|
/* harmony import */ var _redux_EditorSlice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68512);
|
|
@@ -68514,7 +68514,7 @@ var DraggableTab = _ref => {
|
|
|
68514
68514
|
draggableId,
|
|
68515
68515
|
onTabClick
|
|
68516
68516
|
} = _ref,
|
|
68517
|
-
otherProps = (0,
|
|
68517
|
+
otherProps = (0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(_ref, _excluded);
|
|
68518
68518
|
var openedTabs = (0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useSelector)(state => state.editor.openedTabs);
|
|
68519
68519
|
var openFilesCount = openedTabs.filter(t => t && t.type === "file").length || 1;
|
|
68520
68520
|
var dispatch = (0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useDispatch)();
|
|
@@ -68532,7 +68532,7 @@ var DraggableTab = _ref => {
|
|
|
68532
68532
|
switchToFileTab((fileIndex + openFilesCount - 1) % openFilesCount);
|
|
68533
68533
|
}
|
|
68534
68534
|
};
|
|
68535
|
-
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Tabs_DraggableTabWrapper__WEBPACK_IMPORTED_MODULE_5__["default"], (0,
|
|
68535
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Tabs_DraggableTabWrapper__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)((0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)({
|
|
68536
68536
|
draggableId: draggableId,
|
|
68537
68537
|
index: fileIndex,
|
|
68538
68538
|
onClick: e => {
|
|
@@ -68556,8 +68556,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68556
68556
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
68557
68557
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
68558
68558
|
/* harmony export */ });
|
|
68559
|
-
/* harmony import */ var
|
|
68560
|
-
/* harmony import */ var
|
|
68559
|
+
/* harmony import */ var _Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89379);
|
|
68560
|
+
/* harmony import */ var _Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53986);
|
|
68561
68561
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51649);
|
|
68562
68562
|
/* harmony import */ var _hello_pangea_dnd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98850);
|
|
68563
68563
|
/* harmony import */ var react_tabs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39243);
|
|
@@ -68576,8 +68576,8 @@ var DroppableTabList = _ref => {
|
|
|
68576
68576
|
children: _children,
|
|
68577
68577
|
index
|
|
68578
68578
|
} = _ref,
|
|
68579
|
-
otherProps = (0,
|
|
68580
|
-
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_tabs__WEBPACK_IMPORTED_MODULE_1__.TabList, (0,
|
|
68579
|
+
otherProps = (0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(_ref, _excluded);
|
|
68580
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_tabs__WEBPACK_IMPORTED_MODULE_1__.TabList, (0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)((0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)({}, otherProps), {}, {
|
|
68581
68581
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_hello_pangea_dnd__WEBPACK_IMPORTED_MODULE_6__.Droppable, {
|
|
68582
68582
|
direction: "horizontal",
|
|
68583
68583
|
droppableId: index.toString(),
|
|
@@ -68587,7 +68587,7 @@ var DroppableTabList = _ref => {
|
|
|
68587
68587
|
droppableProps,
|
|
68588
68588
|
placeholder
|
|
68589
68589
|
} = _ref2;
|
|
68590
|
-
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", (0,
|
|
68590
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", (0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)((0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)({
|
|
68591
68591
|
className: "droppable-tab-list"
|
|
68592
68592
|
}, droppableProps), {}, {
|
|
68593
68593
|
ref: innerRef,
|
|
@@ -103160,7 +103160,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
103160
103160
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
103161
103161
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
103162
103162
|
/* harmony export */ });
|
|
103163
|
-
/* harmony import */ var
|
|
103163
|
+
/* harmony import */ var _Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89379);
|
|
103164
103164
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51649);
|
|
103165
103165
|
/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14062);
|
|
103166
103166
|
/* harmony import */ var _redux_EditorSlice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68512);
|
|
@@ -103276,7 +103276,7 @@ var ProjectName = _ref => {
|
|
|
103276
103276
|
id: "project_name_label",
|
|
103277
103277
|
className: _styles_module_scss__WEBPACK_IMPORTED_MODULE_3__["default"].projectLabel,
|
|
103278
103278
|
children: "Project Name"
|
|
103279
|
-
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", (0,
|
|
103279
|
+
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", (0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)((0,_Users_ruslanmatkovskyi_projects_gwc_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)({
|
|
103280
103280
|
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_styles_module_scss__WEBPACK_IMPORTED_MODULE_3__["default"].projectName, className)
|
|
103281
103281
|
}, hoverProps), {}, {
|
|
103282
103282
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)((components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_8___default()), {
|
|
@@ -346986,10 +346986,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
346986
346986
|
|
|
346987
346987
|
// EXPORTS
|
|
346988
346988
|
__webpack_require__.d(__webpack_exports__, {
|
|
346989
|
-
Tab: () => (/* reexport */
|
|
346990
|
-
TabList: () => (/* reexport */
|
|
346991
|
-
TabPanel: () => (/* reexport */
|
|
346992
|
-
Tabs: () => (/* reexport */
|
|
346989
|
+
Tab: () => (/* reexport */ components_Tab),
|
|
346990
|
+
TabList: () => (/* reexport */ components_TabList),
|
|
346991
|
+
TabPanel: () => (/* reexport */ components_TabPanel),
|
|
346992
|
+
Tabs: () => (/* reexport */ components_Tabs),
|
|
346993
346993
|
resetIdCounter: () => (/* reexport */ uuid_reset)
|
|
346994
346994
|
});
|
|
346995
346995
|
|
|
@@ -347138,13 +347138,6 @@ function count_getTabsCount(children) {
|
|
|
347138
347138
|
});
|
|
347139
347139
|
return tabCount;
|
|
347140
347140
|
}
|
|
347141
|
-
function count_getPanelsCount(children) {
|
|
347142
|
-
var panelCount = 0;
|
|
347143
|
-
childrenDeepMap_deepForEach(children, function (child) {
|
|
347144
|
-
if (elementTypes_isTabPanel(child)) panelCount++;
|
|
347145
|
-
});
|
|
347146
|
-
return panelCount;
|
|
347147
|
-
}
|
|
347148
347141
|
;// ./node_modules/react-tabs/esm/components/UncontrolledTabs.js
|
|
347149
347142
|
var _excluded = ["children", "className", "disabledTabClassName", "domRef", "focus", "forceRenderTabPanel", "onSelect", "selectedIndex", "selectedTabClassName", "selectedTabPanelClassName", "environment", "disableUpDownKeys"];
|
|
347150
347143
|
|
|
@@ -347152,10 +347145,6 @@ function UncontrolledTabs_extends() { UncontrolledTabs_extends = Object.assign |
|
|
|
347152
347145
|
|
|
347153
347146
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
347154
347147
|
|
|
347155
|
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
347156
|
-
|
|
347157
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
347158
|
-
|
|
347159
347148
|
|
|
347160
347149
|
|
|
347161
347150
|
|
|
@@ -347191,219 +347180,135 @@ function determineCanUseActiveElement(environment) {
|
|
|
347191
347180
|
// Refer to the following resources:
|
|
347192
347181
|
// http://stackoverflow.com/a/10982960/369687
|
|
347193
347182
|
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599
|
|
347183
|
+
// istanbul ignore next
|
|
347194
347184
|
canUseActiveElement = false;
|
|
347195
347185
|
}
|
|
347196
347186
|
}
|
|
347197
347187
|
|
|
347198
|
-
var
|
|
347199
|
-
|
|
347200
|
-
|
|
347201
|
-
|
|
347202
|
-
|
|
347203
|
-
|
|
347204
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
347205
|
-
args[_key] = arguments[_key];
|
|
347206
|
-
}
|
|
347207
|
-
|
|
347208
|
-
_this = _Component.call.apply(_Component, [this].concat(args)) || this;
|
|
347209
|
-
_this.tabNodes = [];
|
|
347210
|
-
|
|
347211
|
-
_this.handleKeyDown = function (e) {
|
|
347212
|
-
var _this$props = _this.props,
|
|
347213
|
-
direction = _this$props.direction,
|
|
347214
|
-
disableUpDownKeys = _this$props.disableUpDownKeys;
|
|
347215
|
-
|
|
347216
|
-
if (_this.isTabFromContainer(e.target)) {
|
|
347217
|
-
var index = _this.props.selectedIndex;
|
|
347218
|
-
var preventDefault = false;
|
|
347219
|
-
var useSelectedIndex = false;
|
|
347220
|
-
|
|
347221
|
-
if (e.keyCode === 32 || e.keyCode === 13) {
|
|
347222
|
-
preventDefault = true;
|
|
347223
|
-
useSelectedIndex = false;
|
|
347224
|
-
|
|
347225
|
-
_this.handleClick(e);
|
|
347226
|
-
}
|
|
347227
|
-
|
|
347228
|
-
if (e.keyCode === 37 || !disableUpDownKeys && e.keyCode === 38) {
|
|
347229
|
-
// Select next tab to the left, validate if up arrow is not disabled
|
|
347230
|
-
if (direction === 'rtl') {
|
|
347231
|
-
index = _this.getNextTab(index);
|
|
347232
|
-
} else {
|
|
347233
|
-
index = _this.getPrevTab(index);
|
|
347234
|
-
}
|
|
347235
|
-
|
|
347236
|
-
preventDefault = true;
|
|
347237
|
-
useSelectedIndex = true;
|
|
347238
|
-
} else if (e.keyCode === 39 || !disableUpDownKeys && e.keyCode === 40) {
|
|
347239
|
-
// Select next tab to the right, validate if down arrow is not disabled
|
|
347240
|
-
if (direction === 'rtl') {
|
|
347241
|
-
index = _this.getPrevTab(index);
|
|
347242
|
-
} else {
|
|
347243
|
-
index = _this.getNextTab(index);
|
|
347244
|
-
}
|
|
347245
|
-
|
|
347246
|
-
preventDefault = true;
|
|
347247
|
-
useSelectedIndex = true;
|
|
347248
|
-
} else if (e.keyCode === 35) {
|
|
347249
|
-
// Select last tab (End key)
|
|
347250
|
-
index = _this.getLastTab();
|
|
347251
|
-
preventDefault = true;
|
|
347252
|
-
useSelectedIndex = true;
|
|
347253
|
-
} else if (e.keyCode === 36) {
|
|
347254
|
-
// Select first tab (Home key)
|
|
347255
|
-
index = _this.getFirstTab();
|
|
347256
|
-
preventDefault = true;
|
|
347257
|
-
useSelectedIndex = true;
|
|
347258
|
-
} // This prevents scrollbars from moving around
|
|
347259
|
-
|
|
347260
|
-
|
|
347261
|
-
if (preventDefault) {
|
|
347262
|
-
e.preventDefault();
|
|
347263
|
-
} // Only use the selected index in the state if we're not using the tabbed index
|
|
347264
|
-
|
|
347265
|
-
|
|
347266
|
-
if (useSelectedIndex) {
|
|
347267
|
-
_this.setSelected(index, e);
|
|
347268
|
-
}
|
|
347269
|
-
}
|
|
347270
|
-
};
|
|
347271
|
-
|
|
347272
|
-
_this.handleClick = function (e) {
|
|
347273
|
-
var node = e.target;
|
|
347274
|
-
|
|
347275
|
-
do {
|
|
347276
|
-
if (_this.isTabFromContainer(node)) {
|
|
347277
|
-
if (isTabDisabled(node)) {
|
|
347278
|
-
return;
|
|
347279
|
-
}
|
|
347280
|
-
|
|
347281
|
-
var index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);
|
|
347282
|
-
|
|
347283
|
-
_this.setSelected(index, e);
|
|
347284
|
-
|
|
347285
|
-
return;
|
|
347286
|
-
}
|
|
347287
|
-
} while ((node = node.parentNode) != null);
|
|
347288
|
-
};
|
|
347188
|
+
var defaultProps = {
|
|
347189
|
+
className: 'react-tabs',
|
|
347190
|
+
focus: false
|
|
347191
|
+
};
|
|
347192
|
+
var propTypes = false ? 0 : {};
|
|
347289
347193
|
|
|
347290
|
-
|
|
347291
|
-
|
|
347194
|
+
var UncontrolledTabs = function UncontrolledTabs(props) {
|
|
347195
|
+
var tabNodes = (0,external_react_.useRef)([]);
|
|
347196
|
+
var tabIds = (0,external_react_.useRef)([]);
|
|
347197
|
+
var panelIds = (0,external_react_.useRef)([]);
|
|
347292
347198
|
|
|
347293
|
-
var
|
|
347199
|
+
var _ref = (0,external_react_.useRef)();
|
|
347294
347200
|
|
|
347295
|
-
|
|
347201
|
+
function setSelected(index, event) {
|
|
347296
347202
|
// Check index boundary
|
|
347297
|
-
if (index < 0 || index >=
|
|
347298
|
-
var
|
|
347299
|
-
|
|
347300
|
-
selectedIndex = _this$props2.selectedIndex; // Call change event handler
|
|
347203
|
+
if (index < 0 || index >= getTabsCount()) return;
|
|
347204
|
+
var onSelect = props.onSelect,
|
|
347205
|
+
selectedIndex = props.selectedIndex; // Call change event handler
|
|
347301
347206
|
|
|
347302
347207
|
onSelect(index, selectedIndex, event);
|
|
347303
|
-
}
|
|
347208
|
+
}
|
|
347304
347209
|
|
|
347305
|
-
|
|
347306
|
-
var count =
|
|
347210
|
+
function getNextTab(index) {
|
|
347211
|
+
var count = getTabsCount(); // Look for non-disabled tab from index to the last tab on the right
|
|
347307
347212
|
|
|
347308
347213
|
for (var i = index + 1; i < count; i++) {
|
|
347309
|
-
if (!isTabDisabled(
|
|
347214
|
+
if (!isTabDisabled(getTab(i))) {
|
|
347310
347215
|
return i;
|
|
347311
347216
|
}
|
|
347312
347217
|
} // If no tab found, continue searching from first on left to index
|
|
347313
347218
|
|
|
347314
347219
|
|
|
347315
347220
|
for (var _i = 0; _i < index; _i++) {
|
|
347316
|
-
if (!isTabDisabled(
|
|
347221
|
+
if (!isTabDisabled(getTab(_i))) {
|
|
347317
347222
|
return _i;
|
|
347318
347223
|
}
|
|
347319
|
-
} //
|
|
347224
|
+
} // All tabs are disabled, return index
|
|
347225
|
+
|
|
347226
|
+
/* istanbul ignore next */
|
|
347320
347227
|
|
|
347321
347228
|
|
|
347322
347229
|
return index;
|
|
347323
|
-
}
|
|
347230
|
+
}
|
|
347324
347231
|
|
|
347325
|
-
|
|
347232
|
+
function getPrevTab(index) {
|
|
347326
347233
|
var i = index; // Look for non-disabled tab from index to first tab on the left
|
|
347327
347234
|
|
|
347328
347235
|
while (i--) {
|
|
347329
|
-
if (!isTabDisabled(
|
|
347236
|
+
if (!isTabDisabled(getTab(i))) {
|
|
347330
347237
|
return i;
|
|
347331
347238
|
}
|
|
347332
347239
|
} // If no tab found, continue searching from last tab on right to index
|
|
347333
347240
|
|
|
347334
347241
|
|
|
347335
|
-
i =
|
|
347242
|
+
i = getTabsCount();
|
|
347336
347243
|
|
|
347337
347244
|
while (i-- > index) {
|
|
347338
|
-
if (!isTabDisabled(
|
|
347245
|
+
if (!isTabDisabled(getTab(i))) {
|
|
347339
347246
|
return i;
|
|
347340
347247
|
}
|
|
347341
|
-
} //
|
|
347248
|
+
} // All tabs are disabled, return index
|
|
347249
|
+
|
|
347250
|
+
/* istanbul ignore next */
|
|
347342
347251
|
|
|
347343
347252
|
|
|
347344
347253
|
return index;
|
|
347345
|
-
}
|
|
347254
|
+
}
|
|
347346
347255
|
|
|
347347
|
-
|
|
347348
|
-
var count =
|
|
347256
|
+
function getFirstTab() {
|
|
347257
|
+
var count = getTabsCount(); // Look for non disabled tab from the first tab
|
|
347349
347258
|
|
|
347350
347259
|
for (var i = 0; i < count; i++) {
|
|
347351
|
-
if (!isTabDisabled(
|
|
347260
|
+
if (!isTabDisabled(getTab(i))) {
|
|
347352
347261
|
return i;
|
|
347353
347262
|
}
|
|
347354
347263
|
}
|
|
347264
|
+
/* istanbul ignore next */
|
|
347265
|
+
|
|
347355
347266
|
|
|
347356
347267
|
return null;
|
|
347357
|
-
}
|
|
347268
|
+
}
|
|
347358
347269
|
|
|
347359
|
-
|
|
347360
|
-
var i =
|
|
347270
|
+
function getLastTab() {
|
|
347271
|
+
var i = getTabsCount(); // Look for non disabled tab from the last tab
|
|
347361
347272
|
|
|
347362
347273
|
while (i--) {
|
|
347363
|
-
if (!isTabDisabled(
|
|
347274
|
+
if (!isTabDisabled(getTab(i))) {
|
|
347364
347275
|
return i;
|
|
347365
347276
|
}
|
|
347366
347277
|
}
|
|
347278
|
+
/* istanbul ignore next */
|
|
347279
|
+
|
|
347367
347280
|
|
|
347368
347281
|
return null;
|
|
347369
|
-
}
|
|
347282
|
+
}
|
|
347370
347283
|
|
|
347371
|
-
|
|
347372
|
-
var children =
|
|
347284
|
+
function getTabsCount() {
|
|
347285
|
+
var children = props.children;
|
|
347373
347286
|
return count_getTabsCount(children);
|
|
347374
|
-
}
|
|
347375
|
-
|
|
347376
|
-
_proto.getPanelsCount = function getPanelsCount() {
|
|
347377
|
-
var children = this.props.children;
|
|
347378
|
-
return count_getPanelsCount(children);
|
|
347379
|
-
};
|
|
347380
|
-
|
|
347381
|
-
_proto.getTab = function getTab(index) {
|
|
347382
|
-
return this.tabNodes["tabs-" + index];
|
|
347383
|
-
};
|
|
347287
|
+
}
|
|
347384
347288
|
|
|
347385
|
-
|
|
347386
|
-
|
|
347289
|
+
function getTab(index) {
|
|
347290
|
+
return tabNodes.current["tabs-" + index];
|
|
347291
|
+
}
|
|
347387
347292
|
|
|
347293
|
+
function getChildren() {
|
|
347388
347294
|
var index = 0;
|
|
347389
|
-
var
|
|
347390
|
-
|
|
347391
|
-
|
|
347392
|
-
|
|
347393
|
-
|
|
347394
|
-
|
|
347395
|
-
|
|
347396
|
-
|
|
347397
|
-
|
|
347398
|
-
|
|
347399
|
-
|
|
347400
|
-
var diff = this.tabIds.length - this.getTabsCount(); // Add ids if new tabs have been added
|
|
347295
|
+
var children = props.children,
|
|
347296
|
+
disabledTabClassName = props.disabledTabClassName,
|
|
347297
|
+
focus = props.focus,
|
|
347298
|
+
forceRenderTabPanel = props.forceRenderTabPanel,
|
|
347299
|
+
selectedIndex = props.selectedIndex,
|
|
347300
|
+
selectedTabClassName = props.selectedTabClassName,
|
|
347301
|
+
selectedTabPanelClassName = props.selectedTabPanelClassName,
|
|
347302
|
+
environment = props.environment;
|
|
347303
|
+
tabIds.current = tabIds.current || [];
|
|
347304
|
+
panelIds.current = panelIds.current || [];
|
|
347305
|
+
var diff = tabIds.current.length - getTabsCount(); // Add ids if new tabs have been added
|
|
347401
347306
|
// Don't bother removing ids, just keep them in case they are added again
|
|
347402
347307
|
// This is more efficient, and keeps the uuid counter under control
|
|
347403
347308
|
|
|
347404
347309
|
while (diff++ < 0) {
|
|
347405
|
-
|
|
347406
|
-
|
|
347310
|
+
tabIds.current.push(uuid());
|
|
347311
|
+
panelIds.current.push(uuid());
|
|
347407
347312
|
} // Map children to dynamically setup refs
|
|
347408
347313
|
|
|
347409
347314
|
|
|
@@ -347420,10 +347325,11 @@ var UncontrolledTabs = /*#__PURE__*/function (_Component) {
|
|
|
347420
347325
|
determineCanUseActiveElement(environment);
|
|
347421
347326
|
}
|
|
347422
347327
|
|
|
347423
|
-
|
|
347328
|
+
var env = environment || (typeof window !== 'undefined' ? window : undefined);
|
|
347329
|
+
|
|
347330
|
+
if (canUseActiveElement && env) {
|
|
347424
347331
|
wasTabFocused = external_react_["default"].Children.toArray(child.props.children).filter(elementTypes_isTab).some(function (tab, i) {
|
|
347425
|
-
|
|
347426
|
-
return env && env.document.activeElement === _this2.getTab(i);
|
|
347332
|
+
return env.document.activeElement === getTab(i);
|
|
347427
347333
|
});
|
|
347428
347334
|
}
|
|
347429
347335
|
|
|
@@ -347433,10 +347339,10 @@ var UncontrolledTabs = /*#__PURE__*/function (_Component) {
|
|
|
347433
347339
|
var selected = selectedIndex === listIndex;
|
|
347434
347340
|
var props = {
|
|
347435
347341
|
tabRef: function tabRef(node) {
|
|
347436
|
-
|
|
347342
|
+
tabNodes.current[key] = node;
|
|
347437
347343
|
},
|
|
347438
|
-
id:
|
|
347439
|
-
panelId:
|
|
347344
|
+
id: tabIds.current[listIndex],
|
|
347345
|
+
panelId: panelIds.current[listIndex],
|
|
347440
347346
|
selected: selected,
|
|
347441
347347
|
focus: selected && (focus || wasTabFocused)
|
|
347442
347348
|
};
|
|
@@ -347447,27 +347353,116 @@ var UncontrolledTabs = /*#__PURE__*/function (_Component) {
|
|
|
347447
347353
|
})
|
|
347448
347354
|
});
|
|
347449
347355
|
} else if (elementTypes_isTabPanel(child)) {
|
|
347450
|
-
var
|
|
347451
|
-
id:
|
|
347452
|
-
tabId:
|
|
347356
|
+
var _props = {
|
|
347357
|
+
id: panelIds.current[index],
|
|
347358
|
+
tabId: tabIds.current[index],
|
|
347453
347359
|
selected: selectedIndex === index
|
|
347454
347360
|
};
|
|
347455
|
-
if (forceRenderTabPanel)
|
|
347456
|
-
if (selectedTabPanelClassName)
|
|
347361
|
+
if (forceRenderTabPanel) _props.forceRender = forceRenderTabPanel;
|
|
347362
|
+
if (selectedTabPanelClassName) _props.selectedClassName = selectedTabPanelClassName;
|
|
347457
347363
|
index++;
|
|
347458
|
-
result = /*#__PURE__*/(0,external_react_.cloneElement)(child,
|
|
347364
|
+
result = /*#__PURE__*/(0,external_react_.cloneElement)(child, _props);
|
|
347459
347365
|
}
|
|
347460
347366
|
|
|
347461
347367
|
return result;
|
|
347462
347368
|
});
|
|
347463
|
-
}
|
|
347369
|
+
}
|
|
347370
|
+
|
|
347371
|
+
function handleKeyDown(e) {
|
|
347372
|
+
var direction = props.direction,
|
|
347373
|
+
disableUpDownKeys = props.disableUpDownKeys;
|
|
347374
|
+
|
|
347375
|
+
if (isTabFromContainer(e.target)) {
|
|
347376
|
+
var index = props.selectedIndex;
|
|
347377
|
+
var preventDefault = false;
|
|
347378
|
+
var useSelectedIndex = false;
|
|
347379
|
+
|
|
347380
|
+
if (e.code === 'Space' || e.keyCode === 32
|
|
347381
|
+
/* space */
|
|
347382
|
+
|| e.code === 'Enter' || e.keyCode === 13
|
|
347383
|
+
/* enter */
|
|
347384
|
+
) {
|
|
347385
|
+
preventDefault = true;
|
|
347386
|
+
useSelectedIndex = false;
|
|
347387
|
+
handleClick(e);
|
|
347388
|
+
} // keyCode is deprecated and only used here for IE
|
|
347389
|
+
|
|
347390
|
+
|
|
347391
|
+
if (e.code === 'ArrowLeft' || e.keyCode === 37
|
|
347392
|
+
/* arrow left */
|
|
347393
|
+
|| !disableUpDownKeys && (e.keyCode === 38 || e.code === 'ArrowUp')
|
|
347394
|
+
/* arrow up */
|
|
347395
|
+
) {
|
|
347396
|
+
// Select next tab to the left, validate if up arrow is not disabled
|
|
347397
|
+
if (direction === 'rtl') {
|
|
347398
|
+
index = getNextTab(index);
|
|
347399
|
+
} else {
|
|
347400
|
+
index = getPrevTab(index);
|
|
347401
|
+
}
|
|
347402
|
+
|
|
347403
|
+
preventDefault = true;
|
|
347404
|
+
useSelectedIndex = true;
|
|
347405
|
+
} else if (e.code === 'ArrowRight' || e.keyCode === 39
|
|
347406
|
+
/* arrow right */
|
|
347407
|
+
|| !disableUpDownKeys && (e.keyCode === 40 || e.code === 'ArrowDown')
|
|
347408
|
+
/* arrow down */
|
|
347409
|
+
) {
|
|
347410
|
+
// Select next tab to the right, validate if down arrow is not disabled
|
|
347411
|
+
if (direction === 'rtl') {
|
|
347412
|
+
index = getPrevTab(index);
|
|
347413
|
+
} else {
|
|
347414
|
+
index = getNextTab(index);
|
|
347415
|
+
}
|
|
347416
|
+
|
|
347417
|
+
preventDefault = true;
|
|
347418
|
+
useSelectedIndex = true;
|
|
347419
|
+
} else if (e.keyCode === 35 || e.code === 'End') {
|
|
347420
|
+
// Select last tab (End key)
|
|
347421
|
+
index = getLastTab();
|
|
347422
|
+
preventDefault = true;
|
|
347423
|
+
useSelectedIndex = true;
|
|
347424
|
+
} else if (e.keyCode === 36 || e.code === 'Home') {
|
|
347425
|
+
// Select first tab (Home key)
|
|
347426
|
+
index = getFirstTab();
|
|
347427
|
+
preventDefault = true;
|
|
347428
|
+
useSelectedIndex = true;
|
|
347429
|
+
} // This prevents scrollbars from moving around
|
|
347430
|
+
|
|
347464
347431
|
|
|
347432
|
+
if (preventDefault) {
|
|
347433
|
+
e.preventDefault();
|
|
347434
|
+
} // Only use the selected index in the state if we're not using the tabbed index
|
|
347435
|
+
|
|
347436
|
+
|
|
347437
|
+
if (useSelectedIndex) {
|
|
347438
|
+
setSelected(index, e);
|
|
347439
|
+
}
|
|
347440
|
+
}
|
|
347441
|
+
}
|
|
347442
|
+
|
|
347443
|
+
function handleClick(e) {
|
|
347444
|
+
var node = e.target;
|
|
347445
|
+
|
|
347446
|
+
do {
|
|
347447
|
+
if (isTabFromContainer(node)) {
|
|
347448
|
+
if (isTabDisabled(node)) {
|
|
347449
|
+
return;
|
|
347450
|
+
}
|
|
347451
|
+
|
|
347452
|
+
var index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);
|
|
347453
|
+
setSelected(index, e);
|
|
347454
|
+
return;
|
|
347455
|
+
}
|
|
347456
|
+
} while ((node = node.parentNode) != null);
|
|
347457
|
+
}
|
|
347465
347458
|
/**
|
|
347466
347459
|
* Determine if a node from event.target is a Tab element for the current Tabs container.
|
|
347467
347460
|
* If the clicked element is not a Tab, it returns false.
|
|
347468
347461
|
* If it finds another Tabs container between the Tab and `this`, it returns false.
|
|
347469
347462
|
*/
|
|
347470
|
-
|
|
347463
|
+
|
|
347464
|
+
|
|
347465
|
+
function isTabFromContainer(node) {
|
|
347471
347466
|
// return immediately if the clicked element is not a Tab.
|
|
347472
347467
|
if (!isTabNode(node)) {
|
|
347473
347468
|
return false;
|
|
@@ -347477,62 +347472,45 @@ var UncontrolledTabs = /*#__PURE__*/function (_Component) {
|
|
|
347477
347472
|
var nodeAncestor = node.parentElement;
|
|
347478
347473
|
|
|
347479
347474
|
do {
|
|
347480
|
-
if (nodeAncestor ===
|
|
347475
|
+
if (nodeAncestor === _ref.current) return true;
|
|
347481
347476
|
if (nodeAncestor.getAttribute('data-rttabs')) break;
|
|
347482
347477
|
nodeAncestor = nodeAncestor.parentElement;
|
|
347483
347478
|
} while (nodeAncestor);
|
|
347484
347479
|
|
|
347485
347480
|
return false;
|
|
347486
|
-
}
|
|
347487
|
-
|
|
347488
|
-
_proto.render = function render() {
|
|
347489
|
-
var _this3 = this;
|
|
347490
|
-
|
|
347491
|
-
// Delete all known props, so they don't get added to DOM
|
|
347492
|
-
var _this$props4 = this.props,
|
|
347493
|
-
children = _this$props4.children,
|
|
347494
|
-
className = _this$props4.className,
|
|
347495
|
-
disabledTabClassName = _this$props4.disabledTabClassName,
|
|
347496
|
-
domRef = _this$props4.domRef,
|
|
347497
|
-
focus = _this$props4.focus,
|
|
347498
|
-
forceRenderTabPanel = _this$props4.forceRenderTabPanel,
|
|
347499
|
-
onSelect = _this$props4.onSelect,
|
|
347500
|
-
selectedIndex = _this$props4.selectedIndex,
|
|
347501
|
-
selectedTabClassName = _this$props4.selectedTabClassName,
|
|
347502
|
-
selectedTabPanelClassName = _this$props4.selectedTabPanelClassName,
|
|
347503
|
-
environment = _this$props4.environment,
|
|
347504
|
-
disableUpDownKeys = _this$props4.disableUpDownKeys,
|
|
347505
|
-
attributes = _objectWithoutPropertiesLoose(_this$props4, _excluded);
|
|
347506
|
-
|
|
347507
|
-
return /*#__PURE__*/external_react_["default"].createElement("div", UncontrolledTabs_extends({}, attributes, {
|
|
347508
|
-
className: (0,clsx_m/* default */.A)(className),
|
|
347509
|
-
onClick: this.handleClick,
|
|
347510
|
-
onKeyDown: this.handleKeyDown,
|
|
347511
|
-
ref: function ref(node) {
|
|
347512
|
-
_this3.node = node;
|
|
347513
|
-
if (domRef) domRef(node);
|
|
347514
|
-
},
|
|
347515
|
-
"data-rttabs": true
|
|
347516
|
-
}), this.getChildren());
|
|
347517
|
-
};
|
|
347518
|
-
|
|
347519
|
-
return UncontrolledTabs;
|
|
347520
|
-
}(external_react_.Component);
|
|
347481
|
+
}
|
|
347521
347482
|
|
|
347522
|
-
|
|
347523
|
-
|
|
347524
|
-
|
|
347483
|
+
var children = props.children,
|
|
347484
|
+
className = props.className,
|
|
347485
|
+
disabledTabClassName = props.disabledTabClassName,
|
|
347486
|
+
domRef = props.domRef,
|
|
347487
|
+
focus = props.focus,
|
|
347488
|
+
forceRenderTabPanel = props.forceRenderTabPanel,
|
|
347489
|
+
onSelect = props.onSelect,
|
|
347490
|
+
selectedIndex = props.selectedIndex,
|
|
347491
|
+
selectedTabClassName = props.selectedTabClassName,
|
|
347492
|
+
selectedTabPanelClassName = props.selectedTabPanelClassName,
|
|
347493
|
+
environment = props.environment,
|
|
347494
|
+
disableUpDownKeys = props.disableUpDownKeys,
|
|
347495
|
+
attributes = _objectWithoutPropertiesLoose(props, _excluded);
|
|
347496
|
+
|
|
347497
|
+
return /*#__PURE__*/external_react_["default"].createElement("div", UncontrolledTabs_extends({}, attributes, {
|
|
347498
|
+
className: (0,clsx_m/* default */.A)(className),
|
|
347499
|
+
onClick: handleClick,
|
|
347500
|
+
onKeyDown: handleKeyDown,
|
|
347501
|
+
ref: function ref(node) {
|
|
347502
|
+
_ref.current = node;
|
|
347503
|
+
if (domRef) domRef(node);
|
|
347504
|
+
},
|
|
347505
|
+
"data-rttabs": true
|
|
347506
|
+
}), getChildren());
|
|
347525
347507
|
};
|
|
347526
347508
|
|
|
347509
|
+
UncontrolledTabs.defaultProps = defaultProps;
|
|
347527
347510
|
UncontrolledTabs.propTypes = false ? 0 : {};
|
|
347511
|
+
/* harmony default export */ const components_UncontrolledTabs = (UncontrolledTabs);
|
|
347528
347512
|
;// ./node_modules/react-tabs/esm/components/Tabs.js
|
|
347529
|
-
var
|
|
347530
|
-
|
|
347531
|
-
function Tabs_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
347532
|
-
|
|
347533
|
-
function Tabs_inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; Tabs_setPrototypeOf(subClass, superClass); }
|
|
347534
|
-
|
|
347535
|
-
function Tabs_setPrototypeOf(o, p) { Tabs_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Tabs_setPrototypeOf(o, p); }
|
|
347513
|
+
function Tabs_extends() { Tabs_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Tabs_extends.apply(this, arguments); }
|
|
347536
347514
|
|
|
347537
347515
|
|
|
347538
347516
|
|
|
@@ -347541,115 +347519,106 @@ function Tabs_setPrototypeOf(o, p) { Tabs_setPrototypeOf = Object.setPrototypeOf
|
|
|
347541
347519
|
|
|
347542
347520
|
var MODE_CONTROLLED = 0;
|
|
347543
347521
|
var MODE_UNCONTROLLED = 1;
|
|
347522
|
+
var Tabs_propTypes = false ? 0 : {};
|
|
347523
|
+
var Tabs_defaultProps = {
|
|
347524
|
+
defaultFocus: false,
|
|
347525
|
+
focusTabOnClick: true,
|
|
347526
|
+
forceRenderTabPanel: false,
|
|
347527
|
+
selectedIndex: null,
|
|
347528
|
+
defaultIndex: null,
|
|
347529
|
+
environment: null,
|
|
347530
|
+
disableUpDownKeys: false
|
|
347531
|
+
};
|
|
347544
347532
|
|
|
347545
|
-
var
|
|
347546
|
-
|
|
347533
|
+
var getModeFromProps = function getModeFromProps(props) {
|
|
347534
|
+
return props.selectedIndex === null ? MODE_UNCONTROLLED : MODE_CONTROLLED;
|
|
347535
|
+
};
|
|
347547
347536
|
|
|
347548
|
-
|
|
347549
|
-
|
|
347537
|
+
var checkForIllegalModeChange = function checkForIllegalModeChange(props, mode) {
|
|
347538
|
+
if (false) {}
|
|
347539
|
+
};
|
|
347540
|
+
/**
|
|
347541
|
+
* State:
|
|
347542
|
+
* mode: Initialized only once from props and never changes
|
|
347543
|
+
* selectedIndex: null if controlled mode, otherwise initialized with prop defaultIndex, changed on selection of tabs, has effect to ensure it never gets out of bound
|
|
347544
|
+
* focus: Because we never remove focus from the Tabs this state is only used to indicate that we should focus the current tab.
|
|
347545
|
+
* It is initialized from the prop defaultFocus, and after the first render it is reset back to false. Later it can become true again when using keys to navigate the tabs.
|
|
347546
|
+
*/
|
|
347550
347547
|
|
|
347551
|
-
_this = _Component.call(this, props) || this;
|
|
347552
347548
|
|
|
347553
|
-
|
|
347554
|
-
|
|
347555
|
-
|
|
347549
|
+
var Tabs = function Tabs(props) {
|
|
347550
|
+
var children = props.children,
|
|
347551
|
+
defaultFocus = props.defaultFocus,
|
|
347552
|
+
defaultIndex = props.defaultIndex,
|
|
347553
|
+
focusTabOnClick = props.focusTabOnClick,
|
|
347554
|
+
onSelect = props.onSelect;
|
|
347556
347555
|
|
|
347557
|
-
|
|
347558
|
-
|
|
347559
|
-
|
|
347560
|
-
}
|
|
347556
|
+
var _useState = (0,external_react_.useState)(defaultFocus),
|
|
347557
|
+
focus = _useState[0],
|
|
347558
|
+
setFocus = _useState[1];
|
|
347561
347559
|
|
|
347562
|
-
|
|
347563
|
-
|
|
347564
|
-
focus: event.type === 'keydown'
|
|
347565
|
-
};
|
|
347560
|
+
var _useState2 = (0,external_react_.useState)(getModeFromProps(props)),
|
|
347561
|
+
mode = _useState2[0];
|
|
347566
347562
|
|
|
347567
|
-
|
|
347568
|
-
|
|
347569
|
-
|
|
347570
|
-
}
|
|
347563
|
+
var _useState3 = (0,external_react_.useState)(mode === MODE_UNCONTROLLED ? defaultIndex || 0 : null),
|
|
347564
|
+
selectedIndex = _useState3[0],
|
|
347565
|
+
setSelectedIndex = _useState3[1];
|
|
347571
347566
|
|
|
347572
|
-
|
|
347573
|
-
|
|
347567
|
+
(0,external_react_.useEffect)(function () {
|
|
347568
|
+
// Reset focus after initial render, see comment above
|
|
347569
|
+
setFocus(false);
|
|
347570
|
+
}, []);
|
|
347574
347571
|
|
|
347575
|
-
|
|
347576
|
-
|
|
347572
|
+
if (mode === MODE_UNCONTROLLED) {
|
|
347573
|
+
// Ensure that we handle removed tabs and don't let selectedIndex get out of bounds
|
|
347574
|
+
var tabsCount = count_getTabsCount(children);
|
|
347575
|
+
(0,external_react_.useEffect)(function () {
|
|
347576
|
+
if (selectedIndex != null) {
|
|
347577
|
+
var maxTabIndex = Math.max(0, tabsCount - 1);
|
|
347578
|
+
setSelectedIndex(Math.min(selectedIndex, maxTabIndex));
|
|
347579
|
+
}
|
|
347580
|
+
}, [tabsCount]);
|
|
347577
347581
|
}
|
|
347578
347582
|
|
|
347579
|
-
|
|
347580
|
-
return Tabs.copyPropsToState(props, state);
|
|
347581
|
-
};
|
|
347583
|
+
checkForIllegalModeChange(props, mode);
|
|
347582
347584
|
|
|
347583
|
-
|
|
347584
|
-
|
|
347585
|
-
|
|
347585
|
+
var handleSelected = function handleSelected(index, last, event) {
|
|
347586
|
+
// Call change event handler
|
|
347587
|
+
if (typeof onSelect === 'function') {
|
|
347588
|
+
// Check if the change event handler cancels the tab change
|
|
347589
|
+
if (onSelect(index, last, event) === false) return;
|
|
347590
|
+
} // Always set focus on tabs unless it is disabled
|
|
347586
347591
|
|
|
347587
|
-
// preserve the existing selectedIndex from state.
|
|
347588
|
-
// If the state has not selectedIndex, default to the defaultIndex or 0
|
|
347589
|
-
Tabs.copyPropsToState = function copyPropsToState(props, state, focus) {
|
|
347590
|
-
if (focus === void 0) {
|
|
347591
|
-
focus = false;
|
|
347592
|
-
}
|
|
347593
|
-
|
|
347594
|
-
if (false) {}
|
|
347595
347592
|
|
|
347596
|
-
|
|
347597
|
-
|
|
347598
|
-
mode: Tabs.getModeFromProps(props)
|
|
347599
|
-
};
|
|
347600
|
-
|
|
347601
|
-
if (newState.mode === MODE_UNCONTROLLED) {
|
|
347602
|
-
var maxTabIndex = Math.max(0, count_getTabsCount(props.children) - 1);
|
|
347603
|
-
var selectedIndex = null;
|
|
347604
|
-
|
|
347605
|
-
if (state.selectedIndex != null) {
|
|
347606
|
-
selectedIndex = Math.min(state.selectedIndex, maxTabIndex);
|
|
347607
|
-
} else {
|
|
347608
|
-
selectedIndex = props.defaultIndex || 0;
|
|
347609
|
-
}
|
|
347610
|
-
|
|
347611
|
-
newState.selectedIndex = selectedIndex;
|
|
347593
|
+
if (focusTabOnClick) {
|
|
347594
|
+
setFocus(true);
|
|
347612
347595
|
}
|
|
347613
347596
|
|
|
347614
|
-
|
|
347597
|
+
if (mode === MODE_UNCONTROLLED) {
|
|
347598
|
+
// Update selected index
|
|
347599
|
+
setSelectedIndex(index);
|
|
347600
|
+
}
|
|
347615
347601
|
};
|
|
347616
347602
|
|
|
347617
|
-
var
|
|
347618
|
-
|
|
347619
|
-
_proto.render = function render() {
|
|
347620
|
-
var _this$props = this.props,
|
|
347621
|
-
children = _this$props.children,
|
|
347622
|
-
defaultIndex = _this$props.defaultIndex,
|
|
347623
|
-
defaultFocus = _this$props.defaultFocus,
|
|
347624
|
-
props = Tabs_objectWithoutPropertiesLoose(_this$props, Tabs_excluded);
|
|
347603
|
+
var subProps = Tabs_extends({}, props);
|
|
347625
347604
|
|
|
347626
|
-
|
|
347627
|
-
|
|
347628
|
-
selectedIndex = _this$state.selectedIndex;
|
|
347629
|
-
props.focus = focus;
|
|
347630
|
-
props.onSelect = this.handleSelected;
|
|
347631
|
-
|
|
347632
|
-
if (selectedIndex != null) {
|
|
347633
|
-
props.selectedIndex = selectedIndex;
|
|
347634
|
-
}
|
|
347605
|
+
subProps.focus = focus;
|
|
347606
|
+
subProps.onSelect = handleSelected;
|
|
347635
347607
|
|
|
347636
|
-
|
|
347637
|
-
|
|
347638
|
-
|
|
347639
|
-
return Tabs;
|
|
347640
|
-
}(external_react_.Component);
|
|
347608
|
+
if (selectedIndex != null) {
|
|
347609
|
+
subProps.selectedIndex = selectedIndex;
|
|
347610
|
+
}
|
|
347641
347611
|
|
|
347642
|
-
|
|
347643
|
-
|
|
347644
|
-
|
|
347645
|
-
|
|
347646
|
-
defaultIndex: null,
|
|
347647
|
-
environment: null,
|
|
347648
|
-
disableUpDownKeys: false
|
|
347612
|
+
delete subProps.defaultFocus;
|
|
347613
|
+
delete subProps.defaultIndex;
|
|
347614
|
+
delete subProps.focusTabOnClick;
|
|
347615
|
+
return /*#__PURE__*/external_react_["default"].createElement(components_UncontrolledTabs, subProps, children);
|
|
347649
347616
|
};
|
|
347650
347617
|
|
|
347651
347618
|
Tabs.propTypes = false ? 0 : {};
|
|
347619
|
+
Tabs.defaultProps = Tabs_defaultProps;
|
|
347652
347620
|
Tabs.tabsRole = 'Tabs';
|
|
347621
|
+
/* harmony default export */ const components_Tabs = (Tabs);
|
|
347653
347622
|
;// ./node_modules/react-tabs/esm/components/TabList.js
|
|
347654
347623
|
var TabList_excluded = ["children", "className"];
|
|
347655
347624
|
|
|
@@ -347657,44 +347626,29 @@ function TabList_extends() { TabList_extends = Object.assign || function (target
|
|
|
347657
347626
|
|
|
347658
347627
|
function TabList_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
347659
347628
|
|
|
347660
|
-
function TabList_inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; TabList_setPrototypeOf(subClass, superClass); }
|
|
347661
|
-
|
|
347662
|
-
function TabList_setPrototypeOf(o, p) { TabList_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return TabList_setPrototypeOf(o, p); }
|
|
347663
|
-
|
|
347664
|
-
|
|
347665
|
-
|
|
347666
|
-
|
|
347667
|
-
|
|
347668
|
-
var TabList = /*#__PURE__*/function (_Component) {
|
|
347669
|
-
TabList_inheritsLoose(TabList, _Component);
|
|
347670
|
-
|
|
347671
|
-
function TabList() {
|
|
347672
|
-
return _Component.apply(this, arguments) || this;
|
|
347673
|
-
}
|
|
347674
347629
|
|
|
347675
|
-
var _proto = TabList.prototype;
|
|
347676
347630
|
|
|
347677
|
-
_proto.render = function render() {
|
|
347678
|
-
var _this$props = this.props,
|
|
347679
|
-
children = _this$props.children,
|
|
347680
|
-
className = _this$props.className,
|
|
347681
|
-
attributes = TabList_objectWithoutPropertiesLoose(_this$props, TabList_excluded);
|
|
347682
347631
|
|
|
347683
|
-
|
|
347684
|
-
|
|
347685
|
-
|
|
347686
|
-
|
|
347687
|
-
};
|
|
347632
|
+
var TabList_defaultProps = {
|
|
347633
|
+
className: 'react-tabs__tab-list'
|
|
347634
|
+
};
|
|
347635
|
+
var TabList_propTypes = false ? 0 : {};
|
|
347688
347636
|
|
|
347689
|
-
|
|
347690
|
-
|
|
347637
|
+
var TabList = function TabList(props) {
|
|
347638
|
+
var children = props.children,
|
|
347639
|
+
className = props.className,
|
|
347640
|
+
attributes = TabList_objectWithoutPropertiesLoose(props, TabList_excluded);
|
|
347691
347641
|
|
|
347692
|
-
|
|
347693
|
-
|
|
347642
|
+
return /*#__PURE__*/external_react_["default"].createElement("ul", TabList_extends({}, attributes, {
|
|
347643
|
+
className: (0,clsx_m/* default */.A)(className),
|
|
347644
|
+
role: "tablist"
|
|
347645
|
+
}), children);
|
|
347694
347646
|
};
|
|
347695
347647
|
|
|
347696
|
-
TabList.propTypes = false ? 0 : {};
|
|
347697
347648
|
TabList.tabsRole = 'TabList';
|
|
347649
|
+
TabList.propTypes = false ? 0 : {};
|
|
347650
|
+
TabList.defaultProps = TabList_defaultProps;
|
|
347651
|
+
/* harmony default export */ const components_TabList = (TabList);
|
|
347698
347652
|
;// ./node_modules/react-tabs/esm/components/Tab.js
|
|
347699
347653
|
var Tab_excluded = ["children", "className", "disabled", "disabledClassName", "focus", "id", "panelId", "selected", "selectedClassName", "tabIndex", "tabRef"];
|
|
347700
347654
|
|
|
@@ -347702,80 +347656,11 @@ function Tab_extends() { Tab_extends = Object.assign || function (target) { for
|
|
|
347702
347656
|
|
|
347703
347657
|
function Tab_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
347704
347658
|
|
|
347705
|
-
function Tab_inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; Tab_setPrototypeOf(subClass, superClass); }
|
|
347706
|
-
|
|
347707
|
-
function Tab_setPrototypeOf(o, p) { Tab_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Tab_setPrototypeOf(o, p); }
|
|
347708
|
-
|
|
347709
347659
|
|
|
347710
347660
|
|
|
347711
347661
|
|
|
347712
347662
|
var DEFAULT_CLASS = 'react-tabs__tab';
|
|
347713
|
-
|
|
347714
|
-
var Tab = /*#__PURE__*/function (_Component) {
|
|
347715
|
-
Tab_inheritsLoose(Tab, _Component);
|
|
347716
|
-
|
|
347717
|
-
function Tab() {
|
|
347718
|
-
return _Component.apply(this, arguments) || this;
|
|
347719
|
-
}
|
|
347720
|
-
|
|
347721
|
-
var _proto = Tab.prototype;
|
|
347722
|
-
|
|
347723
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
347724
|
-
this.checkFocus();
|
|
347725
|
-
};
|
|
347726
|
-
|
|
347727
|
-
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
347728
|
-
this.checkFocus();
|
|
347729
|
-
};
|
|
347730
|
-
|
|
347731
|
-
_proto.checkFocus = function checkFocus() {
|
|
347732
|
-
var _this$props = this.props,
|
|
347733
|
-
selected = _this$props.selected,
|
|
347734
|
-
focus = _this$props.focus;
|
|
347735
|
-
|
|
347736
|
-
if (selected && focus) {
|
|
347737
|
-
this.node.focus();
|
|
347738
|
-
}
|
|
347739
|
-
};
|
|
347740
|
-
|
|
347741
|
-
_proto.render = function render() {
|
|
347742
|
-
var _cx,
|
|
347743
|
-
_this = this;
|
|
347744
|
-
|
|
347745
|
-
var _this$props2 = this.props,
|
|
347746
|
-
children = _this$props2.children,
|
|
347747
|
-
className = _this$props2.className,
|
|
347748
|
-
disabled = _this$props2.disabled,
|
|
347749
|
-
disabledClassName = _this$props2.disabledClassName,
|
|
347750
|
-
focus = _this$props2.focus,
|
|
347751
|
-
id = _this$props2.id,
|
|
347752
|
-
panelId = _this$props2.panelId,
|
|
347753
|
-
selected = _this$props2.selected,
|
|
347754
|
-
selectedClassName = _this$props2.selectedClassName,
|
|
347755
|
-
tabIndex = _this$props2.tabIndex,
|
|
347756
|
-
tabRef = _this$props2.tabRef,
|
|
347757
|
-
attributes = Tab_objectWithoutPropertiesLoose(_this$props2, Tab_excluded);
|
|
347758
|
-
|
|
347759
|
-
return /*#__PURE__*/external_react_["default"].createElement("li", Tab_extends({}, attributes, {
|
|
347760
|
-
className: (0,clsx_m/* default */.A)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx[disabledClassName] = disabled, _cx)),
|
|
347761
|
-
ref: function ref(node) {
|
|
347762
|
-
_this.node = node;
|
|
347763
|
-
if (tabRef) tabRef(node);
|
|
347764
|
-
},
|
|
347765
|
-
role: "tab",
|
|
347766
|
-
id: id,
|
|
347767
|
-
"aria-selected": selected ? 'true' : 'false',
|
|
347768
|
-
"aria-disabled": disabled ? 'true' : 'false',
|
|
347769
|
-
"aria-controls": panelId,
|
|
347770
|
-
tabIndex: tabIndex || (selected ? '0' : null),
|
|
347771
|
-
"data-rttab": true
|
|
347772
|
-
}), children);
|
|
347773
|
-
};
|
|
347774
|
-
|
|
347775
|
-
return Tab;
|
|
347776
|
-
}(external_react_.Component);
|
|
347777
|
-
|
|
347778
|
-
Tab.defaultProps = {
|
|
347663
|
+
var DEFAULT_PROPS = {
|
|
347779
347664
|
className: DEFAULT_CLASS,
|
|
347780
347665
|
disabledClassName: DEFAULT_CLASS + "--disabled",
|
|
347781
347666
|
focus: false,
|
|
@@ -347784,9 +347669,51 @@ Tab.defaultProps = {
|
|
|
347784
347669
|
selected: false,
|
|
347785
347670
|
selectedClassName: DEFAULT_CLASS + "--selected"
|
|
347786
347671
|
};
|
|
347672
|
+
var Tab_propTypes = false ? 0 : {};
|
|
347673
|
+
|
|
347674
|
+
var Tab = function Tab(props) {
|
|
347675
|
+
var _cx;
|
|
347676
|
+
|
|
347677
|
+
var nodeRef = (0,external_react_.useRef)();
|
|
347678
|
+
|
|
347679
|
+
var children = props.children,
|
|
347680
|
+
className = props.className,
|
|
347681
|
+
disabled = props.disabled,
|
|
347682
|
+
disabledClassName = props.disabledClassName,
|
|
347683
|
+
focus = props.focus,
|
|
347684
|
+
id = props.id,
|
|
347685
|
+
panelId = props.panelId,
|
|
347686
|
+
selected = props.selected,
|
|
347687
|
+
selectedClassName = props.selectedClassName,
|
|
347688
|
+
tabIndex = props.tabIndex,
|
|
347689
|
+
tabRef = props.tabRef,
|
|
347690
|
+
attributes = Tab_objectWithoutPropertiesLoose(props, Tab_excluded);
|
|
347691
|
+
|
|
347692
|
+
(0,external_react_.useEffect)(function () {
|
|
347693
|
+
if (selected && focus) {
|
|
347694
|
+
nodeRef.current.focus();
|
|
347695
|
+
}
|
|
347696
|
+
}, [selected, focus]);
|
|
347697
|
+
return /*#__PURE__*/external_react_["default"].createElement("li", Tab_extends({}, attributes, {
|
|
347698
|
+
className: (0,clsx_m/* default */.A)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx[disabledClassName] = disabled, _cx)),
|
|
347699
|
+
ref: function ref(node) {
|
|
347700
|
+
nodeRef.current = node;
|
|
347701
|
+
if (tabRef) tabRef(node);
|
|
347702
|
+
},
|
|
347703
|
+
role: "tab",
|
|
347704
|
+
id: id,
|
|
347705
|
+
"aria-selected": selected ? 'true' : 'false',
|
|
347706
|
+
"aria-disabled": disabled ? 'true' : 'false',
|
|
347707
|
+
"aria-controls": panelId,
|
|
347708
|
+
tabIndex: tabIndex || (selected ? '0' : null),
|
|
347709
|
+
"data-rttab": true
|
|
347710
|
+
}), children);
|
|
347711
|
+
};
|
|
347787
347712
|
|
|
347788
347713
|
Tab.propTypes = false ? 0 : {};
|
|
347789
347714
|
Tab.tabsRole = 'Tab';
|
|
347715
|
+
Tab.defaultProps = DEFAULT_PROPS;
|
|
347716
|
+
/* harmony default export */ const components_Tab = (Tab);
|
|
347790
347717
|
;// ./node_modules/react-tabs/esm/components/TabPanel.js
|
|
347791
347718
|
var TabPanel_excluded = ["children", "className", "forceRender", "id", "selected", "selectedClassName", "tabId"];
|
|
347792
347719
|
|
|
@@ -347794,56 +347721,41 @@ function TabPanel_extends() { TabPanel_extends = Object.assign || function (targ
|
|
|
347794
347721
|
|
|
347795
347722
|
function TabPanel_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
347796
347723
|
|
|
347797
|
-
function TabPanel_inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; TabPanel_setPrototypeOf(subClass, superClass); }
|
|
347798
|
-
|
|
347799
|
-
function TabPanel_setPrototypeOf(o, p) { TabPanel_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return TabPanel_setPrototypeOf(o, p); }
|
|
347800
|
-
|
|
347801
347724
|
|
|
347802
347725
|
|
|
347803
347726
|
|
|
347804
347727
|
var TabPanel_DEFAULT_CLASS = 'react-tabs__tab-panel';
|
|
347805
|
-
|
|
347806
|
-
var TabPanel = /*#__PURE__*/function (_Component) {
|
|
347807
|
-
TabPanel_inheritsLoose(TabPanel, _Component);
|
|
347808
|
-
|
|
347809
|
-
function TabPanel() {
|
|
347810
|
-
return _Component.apply(this, arguments) || this;
|
|
347811
|
-
}
|
|
347812
|
-
|
|
347813
|
-
var _proto = TabPanel.prototype;
|
|
347814
|
-
|
|
347815
|
-
_proto.render = function render() {
|
|
347816
|
-
var _cx;
|
|
347817
|
-
|
|
347818
|
-
var _this$props = this.props,
|
|
347819
|
-
children = _this$props.children,
|
|
347820
|
-
className = _this$props.className,
|
|
347821
|
-
forceRender = _this$props.forceRender,
|
|
347822
|
-
id = _this$props.id,
|
|
347823
|
-
selected = _this$props.selected,
|
|
347824
|
-
selectedClassName = _this$props.selectedClassName,
|
|
347825
|
-
tabId = _this$props.tabId,
|
|
347826
|
-
attributes = TabPanel_objectWithoutPropertiesLoose(_this$props, TabPanel_excluded);
|
|
347827
|
-
|
|
347828
|
-
return /*#__PURE__*/external_react_["default"].createElement("div", TabPanel_extends({}, attributes, {
|
|
347829
|
-
className: (0,clsx_m/* default */.A)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)),
|
|
347830
|
-
role: "tabpanel",
|
|
347831
|
-
id: id,
|
|
347832
|
-
"aria-labelledby": tabId
|
|
347833
|
-
}), forceRender || selected ? children : null);
|
|
347834
|
-
};
|
|
347835
|
-
|
|
347836
|
-
return TabPanel;
|
|
347837
|
-
}(external_react_.Component);
|
|
347838
|
-
|
|
347839
|
-
TabPanel.defaultProps = {
|
|
347728
|
+
var TabPanel_defaultProps = {
|
|
347840
347729
|
className: TabPanel_DEFAULT_CLASS,
|
|
347841
347730
|
forceRender: false,
|
|
347842
347731
|
selectedClassName: TabPanel_DEFAULT_CLASS + "--selected"
|
|
347843
347732
|
};
|
|
347733
|
+
var TabPanel_propTypes = false ? 0 : {};
|
|
347734
|
+
|
|
347735
|
+
var TabPanel = function TabPanel(props) {
|
|
347736
|
+
var _cx;
|
|
347737
|
+
|
|
347738
|
+
var children = props.children,
|
|
347739
|
+
className = props.className,
|
|
347740
|
+
forceRender = props.forceRender,
|
|
347741
|
+
id = props.id,
|
|
347742
|
+
selected = props.selected,
|
|
347743
|
+
selectedClassName = props.selectedClassName,
|
|
347744
|
+
tabId = props.tabId,
|
|
347745
|
+
attributes = TabPanel_objectWithoutPropertiesLoose(props, TabPanel_excluded);
|
|
347746
|
+
|
|
347747
|
+
return /*#__PURE__*/external_react_["default"].createElement("div", TabPanel_extends({}, attributes, {
|
|
347748
|
+
className: (0,clsx_m/* default */.A)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)),
|
|
347749
|
+
role: "tabpanel",
|
|
347750
|
+
id: id,
|
|
347751
|
+
"aria-labelledby": tabId
|
|
347752
|
+
}), forceRender || selected ? children : null);
|
|
347753
|
+
};
|
|
347844
347754
|
|
|
347845
|
-
TabPanel.propTypes = false ? 0 : {};
|
|
347846
347755
|
TabPanel.tabsRole = 'TabPanel';
|
|
347756
|
+
TabPanel.propTypes = false ? 0 : {};
|
|
347757
|
+
TabPanel.defaultProps = TabPanel_defaultProps;
|
|
347758
|
+
/* harmony default export */ const components_TabPanel = (TabPanel);
|
|
347847
347759
|
;// ./node_modules/react-tabs/esm/index.js
|
|
347848
347760
|
|
|
347849
347761
|
|
package/dist/style.css
CHANGED
|
@@ -33,13 +33,11 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.react-tabs__tab:focus {
|
|
36
|
-
box-shadow: 0 0 5px hsl(208, 99%, 50%);
|
|
37
|
-
border-color: hsl(208, 99%, 50%);
|
|
38
36
|
outline: none;
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
.react-tabs__tab:focus:after {
|
|
42
|
-
content:
|
|
40
|
+
content: '';
|
|
43
41
|
position: absolute;
|
|
44
42
|
height: 5px;
|
|
45
43
|
left: -4px;
|
|
@@ -687,14 +685,14 @@
|
|
|
687
685
|
:root{--rpf-white: #ffffff}.styles-module__sidebar--Fu5Qi{display:flex;position:relative;scrollbar-width:none}.styles-module__bar--fOlLf{display:flex;flex-direction:column;justify-content:space-between;margin:calc(1.5rem*var(--scale-factor, 1)) calc(1.25rem*var(--scale-factor, 1)) calc(.625rem*var(--scale-factor, 1)) calc(1.25rem*var(--scale-factor, 1))}.styles-module__optionsTop--2jNbs,.styles-module__optionsBottom--PtwF4{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(2rem*var(--scale-factor, 1))}.styles-module__option--MOGCu{display:flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:calc(2.75rem*var(--scale-factor, 1));block-size:calc(2.75rem*var(--scale-factor, 1));margin:0}.styles-module__option--MOGCu.styles-module__userOption--qGt5j{inline-size:calc(2.5rem*var(--scale-factor, 1));block-size:calc(2.5rem*var(--scale-factor, 1));border-radius:50%;color:#003046;font-weight:500;background-color:#fff;cursor:pointer}.styles-module__option--MOGCu.styles-module__userOption--qGt5j:hover{background-color:#fff}.styles-module__option--MOGCu svg{margin:0;color:#003046}.styles-module__option--MOGCu:hover{background-color:#cbcbcb}.styles-module__option--MOGCu.styles-module__selected--avjSK{background-color:#fff}.styles-module__option--MOGCu.styles-module__selected--avjSK:hover{background-color:#fff}.styles-module__panel--bHhSv{display:flex;flex-direction:column;border-radius:calc(.25rem*var(--scale-factor, 1));margin-inline-end:calc(.625rem*var(--scale-factor, 1));inline-size:inherit;background:var(--sidebar-panel-background)}.styles-module__panelWithFooter--5ItsY{padding-block-end:calc(2rem*var(--scale-factor, 1))}.styles-module__panelHeading--GRNt0{margin:0;font-size:calc(1.5rem*var(--scale-factor, 1));line-height:calc(2rem*var(--scale-factor, 1))}.styles-module__panelHeader--bAHfN{display:flex;flex-direction:column;gap:calc(1rem*var(--scale-factor, 1));padding-block-end:calc(1rem*var(--scale-factor, 1));margin-inline:calc(1rem*var(--scale-factor, 1));border-block-end:1px solid var(--sidebar-border)}.styles-module__panelContent--X7kot{flex:1;padding:calc(.75rem*var(--scale-factor, 1)) calc(1rem*var(--scale-factor, 1));overflow-y:auto;scrollbar-width:thin}.styles-module__panelButtons---y4S-{display:flex;flex-direction:column;gap:calc(1rem*var(--scale-factor, 1))}.styles-module__panelFooter--T1y-s{border-block-start:1px solid #d5d7dc;inset-block-end:0px;inline-size:100%;inline-size:-moz-available;inline-size:-webkit-stretch;inline-size:stretch;padding-inline:calc(1rem*var(--scale-factor, 1));background-color:#fff;border-end-end-radius:8px}
|
|
688
686
|
:root{--rpf-white: #ffffff}.styles-module__row--XtAJr{position:relative;margin-bottom:calc(.25rem*var(--scale-factor, 1));--strong-guide-color: #33625e;--normal-guide-color: #e5e5e5;padding:1px}.styles-module__row--XtAJr::before{content:"";position:absolute;inset:calc(-1*.125rem*var(--scale-factor, 1));pointer-events:none;background-image:var(--guides-bg);background-position:var(--guides-pos);background-size:var(--guides-size);background-repeat:no-repeat}.styles-module__treeItem--kbyYk{display:flex;align-items:center;gap:calc(.5rem*var(--scale-factor, 1));text-align:left;position:relative;cursor:pointer}.styles-module__itemContent--663gn{width:100%;border-radius:4px;display:flex;align-items:center;gap:calc(.5rem*var(--scale-factor, 1));text-align:left;padding:calc(.25rem*var(--scale-factor, 1)) calc(.5rem*var(--scale-factor, 1))}.styles-module__itemContent--663gn:hover{background:#e5f6f1}.styles-module__itemContent--663gn:hover .styles-module__itemButton--oB91C{display:flex}.styles-module__itemTitle--a6Liw{width:100%}.styles-module__itemButton--oB91C{display:none}.styles-module__itemTitle--a6Liw{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.styles-module__itemFocused--SmUbE .styles-module__itemContent--663gn{background-color:#c5ffe8}.styles-module__itemFocused--SmUbE .styles-module__itemButton--oB91C{display:flex}.styles-module__level-0--5PVOR{padding-left:0px}.styles-module__level-1--vTMYv{padding-left:20px}.styles-module__level-2--Xx8Ie{padding-left:40px}.styles-module__level-3--ySuP4{padding-left:60px}.styles-module__level-4--7uciy{padding-left:80px}.styles-module__level-5--AEspR{padding-left:100px}.styles-module__level-6--c28W9{padding-left:120px}.styles-module__level-7--gU\+\+Q{padding-left:140px}.styles-module__level-8--dmg5P{padding-left:160px}.styles-module__level-9--X73V0{padding-left:180px}.styles-module__level-10--VAKPI{padding-left:200px}.styles-module__level-11--5rqim{padding-left:220px}.styles-module__level-12--8cLBy{padding-left:240px}.styles-module__level-13--qlzYN{padding-left:260px}.styles-module__level-14--Q7bCT{padding-left:280px}.styles-module__level-15---1KaW{padding-left:300px}.styles-module__level-16--BCkZb{padding-left:320px}.styles-module__level-17--tM3Ht{padding-left:340px}.styles-module__level-18--GkyjF{padding-left:360px}.styles-module__level-19--kxLhM{padding-left:380px}.styles-module__level-20--sIjDn{padding-left:400px}.styles-module__itemContentEdit--cNmeE{--border-width: 1px;width:100%;display:flex;align-items:center;gap:calc(.5rem*var(--scale-factor, 1));text-align:left;padding:calc(.25rem*var(--scale-factor, 1) - var(--border-width)) calc(.5rem*var(--scale-factor, 1) - var(--border-width));border-radius:4px;border:var(--border-width) solid #43d6b9}.styles-module__itemContentEdit--cNmeE input{border:none;font-size:calc(.75rem*var(--scale-factor, 1));line-height:calc(1rem*var(--scale-factor, 1))}.styles-module__itemContentEdit--cNmeE input:focus,.styles-module__itemContentEdit--cNmeE input:focus-visible{outline:none}.styles-module__inputError--zb21a{border-color:#e0201c}.styles-module__errorMessage--IT3hQ{position:absolute;top:100%;left:0;width:100%;padding:calc(.5rem*var(--scale-factor, 1));margin-top:calc(.25rem*var(--scale-factor, 1));border:1px solid #e0201c;border-radius:8px;background-color:#ffd5ce;color:#242424;z-index:650;display:flex;align-items:flex-start;gap:calc(.5rem*var(--scale-factor, 1))}.styles-module__errorMessage--IT3hQ svg{color:#e0201c}
|
|
689
687
|
:root{--rpf-white: #ffffff}.styles-module__textDelete--9Qu4T{color:#e0201c}
|
|
690
|
-
:root{--rpf-white: #ffffff}.styles-module__toastContainer--SzERA{display:flex;align-items:flex-start;gap:calc(.875rem*var(--scale-factor, 1));color:#003046;font-size:calc(.875rem*var(--scale-factor, 1));line-height:calc(1.25rem*var(--scale-factor, 1));font-weight:500;overflow-wrap:anywhere}.styles-module__toastMessage--5Ze6a{flex-grow:1;white-space:pre-line}.styles-module__errorIcon--v90W6{color:#e0201c}.styles-module__successIcon--gCtAd{color:#527d7a}.styles-module__closeIcon--iZ9ey{color:#003046;cursor:pointer;flex-shrink:0}.styles-module__toastList--7K4rT{display:flex;flex-direction:column-reverse;block-size:calc(100vh -
|
|
688
|
+
:root{--rpf-white: #ffffff}.styles-module__toastContainer--SzERA{display:flex;align-items:flex-start;gap:calc(.875rem*var(--scale-factor, 1));color:#003046;font-size:calc(.875rem*var(--scale-factor, 1));line-height:calc(1.25rem*var(--scale-factor, 1));font-weight:500;overflow-wrap:anywhere}.styles-module__toastMessage--5Ze6a{flex-grow:1;white-space:pre-line}.styles-module__errorIcon--v90W6{color:#e0201c}.styles-module__successIcon--gCtAd{color:#527d7a}.styles-module__closeIcon--iZ9ey{color:#003046;cursor:pointer;flex-shrink:0}.styles-module__toastList--7K4rT{display:flex;flex-direction:column-reverse;block-size:calc(100vh - 78px);max-block-size:calc(100vh - 78px);overflow-y:auto;overscroll-behavior:contain;padding-inline-end:calc(.25rem*var(--scale-factor, 1));scrollbar-color:rgba(0,48,70,.2) rgba(0,0,0,0);scrollbar-width:thin}.styles-module__toastList--7K4rT::-webkit-scrollbar{inline-size:calc(.5rem*var(--scale-factor, 1))}.styles-module__toastList--7K4rT::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.styles-module__toastList--7K4rT::-webkit-scrollbar-thumb{background-color:rgba(0,48,70,.2);border-radius:calc(.25rem*var(--scale-factor, 1))}.styles-module__toastList--7K4rT:hover .Toastify__progress-bar{animation-play-state:paused !important}.styles-module__toast--LJOJf{flex-shrink:0;max-block-size:none;overflow:visible;padding:calc(1.125rem*var(--scale-factor, 1)) !important}.styles-module__toastBody--0iN2Q{align-items:flex-start;margin:0}.styles-module__infoIcon--tva-x{color:#0d47a1}
|
|
691
689
|
:root{--rpf-white: #ffffff}.styles-module__tree--KziAJ{max-inline-size:300px;min-block-size:100px;color:#33625e}.styles-module__fileTreeActions--k\+Wsd{display:flex;gap:calc(.5rem*var(--scale-factor, 1));align-items:center;margin-block-end:calc(1rem*var(--scale-factor, 1))}.styles-module__tooltipWrapper--wltXE{position:relative;z-index:650}.styles-module__fileTreeActionsLabel--dPZp4{flex-grow:1;color:#69746d}.styles-module__importButton--rcLUm{inline-size:calc(2.5rem*var(--scale-factor, 1))}.styles-module__importArrowIcon--3eOLN{margin-inline-start:calc(.25rem*var(--scale-factor, 1))}.styles-module__label--WY51f{margin:0;flex-grow:1}.styles-module__iconButton--6UIVe{border:none;display:flex;justify-content:center;align-items:center;cursor:pointer}.styles-module__iconButtonFilled--w2vJC{background-color:#e5f6f1;border-radius:calc(.5rem*var(--scale-factor, 1));min-inline-size:calc(2rem*var(--scale-factor, 1));block-size:calc(2rem*var(--scale-factor, 1));transition:background-color .2s ease-in-out}.styles-module__iconButtonFilled--w2vJC:hover{background-color:#d7e7e3}.styles-module__iconButtonFilled--w2vJC:active{background-color:rgba(0,0,0,0)}.styles-module__dragline--RXmTT{block-size:2px;margin-block-start:-1px;background-color:#003046}.styles-module__dragline--RXmTT ::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:-3px;block-size:4px;inline-size:4px;background:#fff;border:2px solid #003046;border-radius:99px}.styles-module__emptyStateContainer--AnTAm{padding:calc(.75rem*var(--scale-factor, 1));display:flex;flex-direction:column;align-items:center;text-align:center;font-size:calc(.75rem*var(--scale-factor, 1));line-height:calc(1rem*var(--scale-factor, 1));font-weight:400;color:#69746d;gap:calc(.25rem*var(--scale-factor, 1))}.styles-module__emptyStateIcon--sDlxK{inline-size:calc(1.5rem*var(--scale-factor, 1));block-size:calc(1.5rem*var(--scale-factor, 1))}.styles-module__emptyStateMessage--OkPax{font-weight:700}
|
|
692
690
|
:root{--rpf-white: #ffffff}.styles-module__arrowIcon--YOZDc{margin-left:calc(.25rem*var(--scale-factor, 1))}.styles-module__buttonActive--q-jy7{background-color:rgba(0,0,0,0);border:1px solid #33625e}
|
|
693
691
|
:root{--rpf-white: #ffffff}:export{grey-rpi-grey-15:#d5d7dc;grey-rpi-grey-40:#9497a4;grey-rpi-grey-5:#f1f2f3;grey-rpi-grey-70:#4a4d59;grey-rpf-white:#fff}.draggable-tab{user-select:none}.draggable-tab:focus-visible{outline:none}.--light .draggable-tab:focus-visible .react-tabs__tab,.--dark .draggable-tab:focus-visible .react-tabs__tab{outline:2px auto Highlight;outline:2px auto -webkit-focus-ring-color;outline-offset:-1px}.droppable-tab-list{display:flex;inline-size:100%}
|
|
694
692
|
:root{--rpf-white: #ffffff}:export{grey-rpi-grey-15:#d5d7dc;grey-rpi-grey-40:#9497a4;grey-rpi-grey-5:#f1f2f3;grey-rpi-grey-70:#4a4d59;grey-rpf-white:#fff}:root,:host{--font-size-0-5: 0.5rem;--font-size-0-75: 0.75rem;--font-size-1: 1rem;--font-size-1-5: 1.25rem;--font-size-2: 1.5rem;--font-size-3: 2rem;--font-size-4: 2.5rem;--font-size-5: 3rem;--font-size-6: 3.5rem;--font-size-7: 4rem;--font-size-8: 4.5rem;--font-size-9: 5rem}:root,:host{--font-weight-regular: 400;--font-weight-bold: 700}:root,:host{--line-height-0-75: 0.75rem;--line-height-1: 1rem;--line-height-1-5: 1.5rem;--line-height-2: 2rem;--line-height-2-5: 2.5rem;--line-height-3: 3rem;--line-height-3-5: 3.5rem;--line-height-4: 4rem;--line-height-4-5: 4.5rem;--line-height-5: 5rem;--line-height-5-5: 5.5rem;--line-height-6: 6rem;--line-height-6-5: 6.5rem}.editor-wrapper{overflow:auto;scrollbar-width:thin;block-size:100%}.editor{display:flex;flex-flow:column;flex:1;overflow:hidden;block-size:calc(100% - 3rem*var(--scale-factor, 1))}.editor .cm-editor{flex:1;overflow:hidden}.editor .cm-editor:focus{outline:none}.editor .cm-editor .cm-scroller{overflow:auto;scrollbar-width:thin;overscroll-behavior-x:none;font-family:var(--wc-font-family-monospace);z-index:100}.editor .cm-editor .cm-scroller .cm-content{flex:1;padding-block-start:calc(.5rem*var(--scale-factor, 1));margin-inline-end:calc(.5rem*var(--scale-factor, 1))}.editor--small{font-size:calc(.875rem*var(--scale-factor, 1));line-height:calc(1.25rem*var(--scale-factor, 1))}.editor--medium{font-size:calc(1.5rem*var(--scale-factor, 1));line-height:calc(2rem*var(--scale-factor, 1))}.editor--large{font-size:calc(2rem*var(--scale-factor, 1));line-height:calc(2.5rem*var(--scale-factor, 1))}.rpf-alert{margin:0}
|
|
695
693
|
:root{--rpf-white: #ffffff}.styles-module__editorStatistic--EyK0S{display:flex;justify-content:space-between;align-items:center;inline-size:100%;border-block-start:1px solid #e5e5e5;padding:calc(.625rem*var(--scale-factor, 1)) calc(.75rem*var(--scale-factor, 1));font-weight:400;font-size:calc(.75rem*var(--scale-factor, 1));line-height:calc(1.5rem*var(--scale-factor, 1))}.styles-module__editorStatistic--EyK0S .styles-module__contentType--Sb4eE{text-transform:uppercase}
|
|
696
694
|
.styles-module__previewContainer--gHB-N{block-size:100%;display:flex;align-items:center;justify-content:center}
|
|
697
|
-
:root{--rpf-white: #ffffff}.styles-module__readOnlyContainer--GooG6{justify-
|
|
695
|
+
:root{--rpf-white: #ffffff}.styles-module__readOnlyContainer--GooG6{display:flex;justify-content:flex-end;margin:8px 4px 4px 4px}.styles-module__readOnlyContainerLeft--D6yHv{justify-content:flex-start}.styles-module__readOnlyBanner--b4PPC{background-color:#e5e5e5;padding:4px 8px;border-radius:12px;font-weight:400;font-size:calc(.5rem*var(--scale-factor, 1));line-height:calc(1rem*var(--scale-factor, 1));display:flex;gap:4px;align-items:center;color:#69746d}
|
|
698
696
|
:root{--rpf-white: #ffffff}.styles-module__tabbedPanel--Sovmr{display:flex;flex-direction:column;block-size:100%;inline-size:100%}.styles-module__tabbedPanel--Sovmr .styles-module__viewOnlyBanner--vSOaw{font-weight:700;padding:var(--space-0-5) var(--space-1);border-block-end:1px solid var(--editor-color-outline)}.styles-module__tabbedPanel--Sovmr .styles-module__scrollWrapper--Q8zaL{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-color:HSL(0, 0%, 14%, 30%) rgba(0,0,0,0);scrollbar-width:none;-ms-overflow-style:none}.styles-module__tabbedPanel--Sovmr .styles-module__scrollWrapper--Q8zaL::-webkit-scrollbar{block-size:0;transition:height .2s ease}.styles-module__tabbedPanel--Sovmr .styles-module__scrollWrapper--Q8zaL:hover{scrollbar-width:thin}.styles-module__tabbedPanel--Sovmr .styles-module__scrollWrapper--Q8zaL:hover::-webkit-scrollbar{block-size:calc(.25rem*var(--scale-factor, 1))}.styles-module__tabbedPanel--Sovmr .styles-module__closeBtn--g8-AM{block-size:100%;padding:0;padding-inline-start:calc(1rem*var(--scale-factor, 1));background-color:rgba(0,0,0,0)}.styles-module__tabbedPanel--Sovmr .styles-module__closeBtn--g8-AM:focus-visible{border:0}.styles-module__tabTooltip--DO-Hr{margin-block-start:0}.tabContainer{border-block-end:1px solid #e5e5e5;background-color:#e5f6f1;position:relative;block-size:calc(2.625rem*var(--scale-factor, 1));overflow:hidden}.tabText{display:flex;align-items:center;block-size:fit-content;inline-size:fit-content;margin:0;gap:calc(.5rem*var(--scale-factor, 1));line-height:calc(1rem*var(--scale-factor, 1));white-space:nowrap}.react-tabs{flex:1;display:flex;flex-flow:column;overflow:hidden;position:relative;border-radius:calc(.5rem*var(--scale-factor, 1)) calc(.5rem*var(--scale-factor, 1)) calc(.25rem*var(--scale-factor, 1)) calc(.25rem*var(--scale-factor, 1))}.react-tabs__tab{border:none;background-color:rgba(0,0,0,0);padding:0 calc(1rem*var(--scale-factor, 1));margin:0;inset-block-start:0;inset-block-end:0;min-block-size:calc(2.625rem*var(--scale-factor, 1));display:flex;align-items:center;justify-content:center;font-weight:700;color:#33625e;border-inline-end:1px solid #e5e5e5;flex:0 0 auto}.react-tabs__tab--selected{border-radius:0;background-color:#fff}.react-tabs__tab:focus{box-shadow:none;border-color:#e5e5e5}.react-tabs__tab:focus-visible{outline-offset:-3px}.react-tabs__tab:focus:after{display:none}.react-tabs__tab-list{border-block-end:none;box-sizing:border-box;display:inline-flex;align-items:center;flex-wrap:nowrap;margin:0;min-inline-size:100%}.react-tabs__tab-panel--selected{flex:1;display:flex;flex-direction:column;overflow-y:auto;background-color:#fff}
|
|
699
697
|
:root{--rpf-white: #ffffff}.styles-module__proj--ZFm0o{display:flex;flex-flow:column;overflow:hidden;block-size:100%}.styles-module__projContainer--foKo4{display:flex;flex-direction:row;overflow-y:hidden;margin:0 8px 6px 0px;block-size:100%}.styles-module__projContainer--foKo4 .styles-module__projectWrapper--Yq8Yr{container-type:inline-size;display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden}.styles-module__projContainer--foKo4 .styles-module__projEditorWrapper--SISJR{display:flex;flex:0 1 auto;flex-flow:column;grid-gap:calc(.625rem*var(--scale-factor, 1));overflow:hidden;block-size:100%;inline-size:100%}@container (min-width: 720px){.styles-module__projContainer--foKo4 .styles-module__projEditorWrapper--SISJR{flex-flow:row}.styles-module__projContainer--foKo4 .styles-module__projEditorContainer--jWAlR{max-block-size:100% !important}}.styles-module__projContainer--foKo4 .styles-module__projEditorContainer--jWAlR{display:flex;box-sizing:border-box;background-color:#fff;min-block-size:30%;max-block-size:70%;border-radius:8px}.styles-module__projContainer--foKo4 .styles-module__projEditorContainer--jWAlR .styles-module__react-tabs__tab-panel--selected--RwR-m{overflow-y:hidden}.styles-module__projContainer--foKo4 .styles-module__projEditorContainer--jWAlR .styles-module__react-tabs__tab-list--gM7uT{flex:1}.styles-module__projContainer--foKo4 .styles-module__projEditorContainer--jWAlR .styles-module__react-tabs__tab-container--ycENl .styles-module__btn--run--u9TgZ,.styles-module__projContainer--foKo4 .styles-module__projEditorContainer--jWAlR .styles-module__react-tabs__tab-container--ycENl .styles-module__btn--stop--gJCsY{margin-block-start:0;margin-block-end:0}
|
|
700
698
|
:root{--rpf-white: #ffffff}.styles-module__viewSwitcher--h0ODR{display:flex}.styles-module__viewSwitcherBtn--v6-ir{inline-size:calc(2.75rem*var(--scale-factor, 1));block-size:calc(2.75rem*var(--scale-factor, 1));cursor:pointer;transition:background-color .15s ease}.styles-module__viewSwitcherBtnWrapper--OarYg{position:relative;display:flex}.styles-module__viewSwitcherBtnWrapper--OarYg:first-child .styles-module__viewSwitcherBtn--v6-ir{border-radius:calc(.75rem*var(--scale-factor, 1)) 0 0 calc(.75rem*var(--scale-factor, 1))}.styles-module__viewSwitcherBtnWrapper--OarYg:last-child .styles-module__viewSwitcherBtn--v6-ir{border-radius:0 calc(.75rem*var(--scale-factor, 1)) calc(.75rem*var(--scale-factor, 1)) 0}.styles-module__viewSwitcherBtnActive--m2JP-{background-color:#fff}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gwchq-textjam",
|
|
3
3
|
"description": "Embeddable React editor used in Raspberry Pi text-based projects.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.12",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/GirlsFirst/gwchq-textjam",
|
|
7
7
|
"author": "Girls Who Code HQ",
|