@jetbrains/ring-ui-built 6.0.2 → 6.0.4
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/components/_helpers/_rollupPluginBabelHelpers.js +9 -12
- package/components/_helpers/anchor.js +1 -1
- package/components/_helpers/caption.js +1 -1
- package/components/_helpers/card.js +1 -1
- package/components/_helpers/icon__svg.js +1 -1
- package/components/_helpers/input.js +1 -1
- package/components/_helpers/query-assist__suggestions.js +1 -1
- package/components/_helpers/select__filter.js +1 -1
- package/components/_helpers/services-link.js +1 -1
- package/components/_helpers/sidebar.js +1 -1
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/theme.js +1 -1
- package/components/_helpers/title.js +1 -1
- package/components/alert/alert.js +1 -1
- package/components/alert/container.js +1 -1
- package/components/alert-service/alert-service.js +1 -1
- package/components/analytics/analytics.js +1 -1
- package/components/analytics/analytics__custom-plugin.js +1 -1
- package/components/auth/auth.js +1 -1
- package/components/auth/auth__core.js +1 -1
- package/components/auth/background-flow.js +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +1 -1
- package/components/auth/request-builder.js +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/storage.js +1 -1
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +1 -1
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/fallback-avatar.js +1 -1
- package/components/badge/badge.js +1 -1
- package/components/button/button.js +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/button-set/button-set.js +1 -1
- package/components/button-toolbar/button-toolbar.js +1 -1
- package/components/caret/caret.js +1 -1
- package/components/checkbox/checkbox.js +1 -1
- package/components/clipboard/clipboard.js +1 -1
- package/components/code/code.js +1 -1
- package/components/collapse/collapse-content.d.ts +11 -0
- package/components/collapse/collapse-content.js +121 -0
- package/components/collapse/collapse-context.d.ts +10 -0
- package/components/collapse/collapse-context.js +12 -0
- package/components/collapse/collapse-control.d.ts +11 -0
- package/components/collapse/collapse-control.js +38 -0
- package/components/collapse/collapse.d.ts +12 -0
- package/components/collapse/collapse.js +41 -0
- package/components/collapse/consts.d.ts +4 -0
- package/components/collapse/consts.js +6 -0
- package/components/collapse/utils.d.ts +1 -0
- package/components/collapse/utils.js +5 -0
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +1 -1
- package/components/content-layout/content-layout.js +1 -1
- package/components/contenteditable/contenteditable.js +1 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.js +1 -1
- package/components/data-list/item.js +1 -1
- package/components/data-list/selection.js +1 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-picker.js +8 -8
- package/components/date-picker/date-popup.js +5 -5
- package/components/date-picker/day.js +10 -10
- package/components/date-picker/month-names.js +7 -7
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.js +6 -6
- package/components/date-picker/months.js +7 -7
- package/components/date-picker/weekdays.js +4 -4
- package/components/date-picker/years.js +12 -12
- package/components/dialog/dialog.js +1 -1
- package/components/dropdown/dropdown.js +1 -1
- package/components/dropdown-menu/dropdown-menu.js +1 -1
- package/components/editable-heading/editable-heading.js +1 -1
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -1
- package/components/global/create-stateful-context.js +1 -1
- package/components/global/data-tests.js +1 -1
- package/components/global/dom.js +1 -1
- package/components/global/focus-sensor-hoc.js +1 -1
- package/components/global/inject-styles.js +1 -1
- package/components/global/listeners.js +1 -1
- package/components/global/react-dom-renderer.js +1 -1
- package/components/global/rerender-hoc.js +1 -1
- package/components/grid/col.js +1 -1
- package/components/grid/grid.js +1 -1
- package/components/grid/row.js +1 -1
- package/components/group/group.js +1 -1
- package/components/header/header.js +1 -1
- package/components/header/logo.js +1 -1
- package/components/header/profile.js +1 -1
- package/components/header/services.js +1 -1
- package/components/header/smart-profile.js +1 -1
- package/components/header/smart-services.js +1 -1
- package/components/header/tray-icon.js +1 -1
- package/components/header/tray.js +1 -1
- package/components/heading/heading.js +1 -1
- package/components/http/http.js +1 -1
- package/components/http/http.mock.js +1 -1
- package/components/hub-source/hub-source.js +1 -1
- package/components/hub-source/hub-source__user.js +1 -1
- package/components/hub-source/hub-source__users-groups.js +1 -1
- package/components/i18n/i18n.js +1 -1
- package/components/icon/icon.js +1 -1
- package/components/island/adaptive-island-hoc.js +1 -1
- package/components/island/content.js +1 -1
- package/components/island/header.js +1 -1
- package/components/island/island.js +1 -1
- package/components/island-legacy/content-legacy.js +1 -1
- package/components/island-legacy/header-legacy.js +1 -1
- package/components/island-legacy/island-legacy.js +1 -1
- package/components/link/clickableLink.js +1 -1
- package/components/link/link.js +1 -1
- package/components/list/list.js +1 -1
- package/components/list/list__custom.js +1 -1
- package/components/list/list__hint.js +1 -1
- package/components/list/list__item.js +1 -1
- package/components/list/list__link.js +1 -1
- package/components/list/list__separator.js +1 -1
- package/components/list/list__title.js +1 -1
- package/components/list/list__users-groups-source.js +1 -1
- package/components/loader/loader.js +1 -1
- package/components/loader/loader__core.js +1 -1
- package/components/loader-inline/loader-inline.js +1 -1
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +1 -1
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.js +1 -1
- package/components/old-browsers-message/white-list.js +3 -3
- package/components/pager/pager.js +1 -1
- package/components/panel/panel.js +1 -1
- package/components/permissions/permissions.js +1 -1
- package/components/permissions/permissions__cache.js +1 -1
- package/components/popup/popup.js +1 -1
- package/components/popup/popup.target.js +1 -1
- package/components/popup/position.js +1 -1
- package/components/popup-menu/popup-menu.js +1 -1
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/query-assist.js +1 -1
- package/components/radio/radio.js +1 -1
- package/components/radio/radio__item.js +1 -1
- package/components/select/select.js +1 -1
- package/components/select/select__popup.js +5 -5
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.js +1 -1
- package/components/shortcuts/shortcuts.js +1 -1
- package/components/storage/storage__fallback.js +1 -1
- package/components/storage/storage__local.js +1 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +1 -1
- package/components/table/cell.js +1 -1
- package/components/table/disable-hover-hoc.js +1 -1
- package/components/table/header-cell.js +1 -1
- package/components/table/header.js +1 -1
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.js +1 -1
- package/components/table/row.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +1 -1
- package/components/table/selection.js +1 -1
- package/components/table/smart-table.js +1 -1
- package/components/table/table.js +1 -1
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/smart-tabs.js +1 -1
- package/components/tabs/tab.js +1 -1
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.js +2 -2
- package/components/tags-list/tags-list.js +1 -1
- package/components/text/text.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.js +1 -1
- package/components/user-agreement/service.js +1 -1
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/smart-user-card-tooltip.js +46 -46
- package/components/user-card/tooltip.js +1 -1
- package/package.json +5 -5
@@ -1,3 +1,11 @@
|
|
1
|
+
function _isNativeReflectConstruct() {
|
2
|
+
try {
|
3
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
4
|
+
} catch (t) {}
|
5
|
+
return (_isNativeReflectConstruct = function () {
|
6
|
+
return !!t;
|
7
|
+
})();
|
8
|
+
}
|
1
9
|
function _iterableToArrayLimit(r, l) {
|
2
10
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
3
11
|
if (null != t) {
|
@@ -470,17 +478,6 @@ function _setPrototypeOf(o, p) {
|
|
470
478
|
};
|
471
479
|
return _setPrototypeOf(o, p);
|
472
480
|
}
|
473
|
-
function _isNativeReflectConstruct() {
|
474
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
475
|
-
if (Reflect.construct.sham) return false;
|
476
|
-
if (typeof Proxy === "function") return true;
|
477
|
-
try {
|
478
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
479
|
-
return true;
|
480
|
-
} catch (e) {
|
481
|
-
return false;
|
482
|
-
}
|
483
|
-
}
|
484
481
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
485
482
|
if (source == null) return {};
|
486
483
|
var target = {};
|
@@ -645,4 +642,4 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
645
642
|
};
|
646
643
|
}
|
647
644
|
|
648
|
-
export { _defineProperty as _, _inherits as a, _createSuper as b, _classCallCheck as c,
|
645
|
+
export { _defineProperty as _, _inherits as a, _createSuper as b, _classCallCheck as c, _assertThisInitialized as d, _asyncToGenerator as e, _createClass as f, _objectWithoutProperties as g, _objectSpread2 as h, _extends as i, _regeneratorRuntime as j, _slicedToArray as k, _toConsumableArray as l, _createForOfIteratorHelper as m, _get as n, _getPrototypeOf as o, _toPropertyKey as p };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { memo } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import chevronDown from '@jetbrains/icons/chevron-10px';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { PureComponent } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
4
|
import 'core-js/modules/es.string.starts-with.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.object.values.js';
|
4
4
|
import React, { PureComponent } from 'react';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, c as _classCallCheck } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { PureComponent } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import Link from '../link/link.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { g as _objectWithoutProperties } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { memo } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import Link from '../link/link.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { k as _slicedToArray, g as _objectWithoutProperties, i as _extends } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { useState, useEffect, forwardRef, useMemo, useContext } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { createPortal } from 'react-dom';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.object.values.js';
|
4
4
|
import React, { PureComponent } from 'react';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import React, { Children, isValidElement, cloneElement, PureComponent } from 'react';
|
4
4
|
import { createPortal } from 'react-dom';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, l as _toConsumableArray, g as _objectWithoutProperties, i as _extends, h as _objectSpread2, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, h as _objectSpread2, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
|
3
3
|
var DEFAULT_FLUSH_INTERVAL = 10000;
|
4
4
|
var DEFAULT_FLUSH_MAX_PACK_SIZE = 100;
|
package/components/auth/auth.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { h as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import WindowFlow from './window-flow.js';
|
3
3
|
import onBackendDown from './down-notification.js';
|
4
4
|
import Auth from './auth__core.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, f as _createClass, h as _objectSpread2, c as _classCallCheck, l as _toConsumableArray, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/es.promise.js';
|
4
4
|
import 'core-js/modules/es.array.filter.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, c as _classCallCheck, _ as _defineProperty, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.object.to-string.js';
|
4
4
|
import 'core-js/modules/es.promise.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.filter.js';
|
3
3
|
import 'core-js/modules/es.object.to-string.js';
|
4
4
|
import React from 'react';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, c as _classCallCheck, _ as _defineProperty, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/es.promise.js';
|
4
4
|
import React from 'react';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, f as _createClass, c as _classCallCheck, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import 'core-js/modules/es.object.assign.js';
|
4
4
|
import uuid from 'simply-uuid';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, h as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
4
4
|
import 'core-js/modules/es.array.index-of.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, c as _classCallCheck, _ as _defineProperty, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.index-of.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.filter.js';
|
3
3
|
import 'core-js/modules/es.object.to-string.js';
|
4
4
|
import 'core-js/modules/es.array.includes.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { f as _createClass, c as _classCallCheck, _ as _defineProperty, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.object.to-string.js';
|
4
4
|
import 'core-js/modules/es.promise.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, e as _asyncToGenerator, f as _createClass, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.regexp.exec.js';
|
4
4
|
import 'core-js/modules/es.string.replace.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { h as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import React from 'react';
|
3
3
|
import { createRoot } from 'react-dom/client';
|
4
4
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, h as _objectSpread2, i as _extends, k as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { k as _slicedToArray, l as _toConsumableArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { PureComponent } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, h as _objectSpread2, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { createRef, PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
3
|
import 'core-js/modules/es.string.split.js';
|
4
4
|
import React, { PureComponent } from 'react';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { PureComponent } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { PureComponent } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, f as _createClass, c as _classCallCheck } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/es.regexp.to-string.js';
|
4
4
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import React, { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/es.promise.js';
|
4
4
|
import alertService from '../alert-service/alert-service.js';
|
package/components/code/code.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, e as _asyncToGenerator, j as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/es.promise.js';
|
4
4
|
import 'core-js/modules/es.array.concat.js';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
2
|
+
type Props = {
|
3
|
+
minHeight?: number;
|
4
|
+
className?: string;
|
5
|
+
'data-test'?: string | null | undefined;
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* @name CollapseContent
|
9
|
+
*/
|
10
|
+
export declare const CollapseContent: React.FC<PropsWithChildren<Props>>;
|
11
|
+
export default CollapseContent;
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import { k as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import React, { useContext, useRef, useState, useEffect, useMemo } from 'react';
|
3
|
+
import classNames from 'classnames';
|
4
|
+
import joinDataTestAttributes from '../global/data-tests.js';
|
5
|
+
import { getRect } from '../global/dom.js';
|
6
|
+
import { toPx } from './utils.js';
|
7
|
+
import { CollapseContext } from './collapse-context.js';
|
8
|
+
import { COLLAPSE_CONTENT_CONTAINER_TEST_ID, COLLAPSE_CONTENT_TEST_ID } from './consts.js';
|
9
|
+
import 'core-js/modules/es.array.reduce.js';
|
10
|
+
import 'core-js/modules/es.object.to-string.js';
|
11
|
+
import 'core-js/modules/es.object.entries.js';
|
12
|
+
import 'core-js/modules/es.array.concat.js';
|
13
|
+
import 'core-js/modules/es.object.assign.js';
|
14
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
15
|
+
import 'core-js/modules/es.array.filter.js';
|
16
|
+
import 'core-js/modules/es.regexp.exec.js';
|
17
|
+
import 'core-js/modules/es.string.split.js';
|
18
|
+
import 'core-js/modules/es.array.iterator.js';
|
19
|
+
import 'core-js/modules/es.set.js';
|
20
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
21
|
+
|
22
|
+
var modules_9c8b5b00 = {"container":"container_rui_88de","transition":"transition_rui_88de","summary":"summary_rui_88de","trigger":"trigger_rui_88de","fade":"fade_rui_88de"};
|
23
|
+
|
24
|
+
var DURATION_FACTOR = 0.5;
|
25
|
+
var DEFAULT_HEIGHT = 0;
|
26
|
+
var VISIBLE = 1;
|
27
|
+
var HIDDEN = 0;
|
28
|
+
/**
|
29
|
+
* @name CollapseContent
|
30
|
+
*/
|
31
|
+
var CollapseContent = function CollapseContent(_ref) {
|
32
|
+
var children = _ref.children,
|
33
|
+
_ref$minHeight = _ref.minHeight,
|
34
|
+
minHeight = _ref$minHeight === void 0 ? DEFAULT_HEIGHT : _ref$minHeight,
|
35
|
+
dataTest = _ref['data-test'];
|
36
|
+
var _useContext = useContext(CollapseContext),
|
37
|
+
collapsed = _useContext.collapsed,
|
38
|
+
duration = _useContext.duration,
|
39
|
+
id = _useContext.id,
|
40
|
+
disableAnimation = _useContext.disableAnimation;
|
41
|
+
var containerRef = useRef(null);
|
42
|
+
var contentRef = useRef(null);
|
43
|
+
var initialContentHeight = useRef(minHeight);
|
44
|
+
var contentHeight = useRef(DEFAULT_HEIGHT);
|
45
|
+
var _useState = useState({
|
46
|
+
width: 0,
|
47
|
+
height: 0
|
48
|
+
}),
|
49
|
+
_useState2 = _slicedToArray(_useState, 2),
|
50
|
+
dimensions = _useState2[0],
|
51
|
+
setDimensions = _useState2[1];
|
52
|
+
var _useState3 = useState(toPx(minHeight)),
|
53
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
54
|
+
height = _useState4[0],
|
55
|
+
setHeight = _useState4[1];
|
56
|
+
var _useState5 = useState(true),
|
57
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
58
|
+
showFade = _useState6[0],
|
59
|
+
setShowFade = _useState6[1];
|
60
|
+
useEffect(function () {
|
61
|
+
if (!collapsed) {
|
62
|
+
setShowFade(false);
|
63
|
+
} else {
|
64
|
+
setShowFade(true);
|
65
|
+
}
|
66
|
+
}, [collapsed]);
|
67
|
+
useEffect(function () {
|
68
|
+
if (contentRef.current) {
|
69
|
+
contentHeight.current = getRect(contentRef.current).height;
|
70
|
+
}
|
71
|
+
}, [minHeight, dimensions.height]);
|
72
|
+
useEffect(function () {
|
73
|
+
var nextHeight = collapsed ? initialContentHeight.current : contentHeight.current;
|
74
|
+
setHeight(toPx(nextHeight));
|
75
|
+
}, [collapsed, dimensions.height]);
|
76
|
+
useEffect(function () {
|
77
|
+
if (contentRef.current) {
|
78
|
+
var observer = new ResizeObserver(function (_ref2) {
|
79
|
+
var _ref3 = _slicedToArray(_ref2, 1),
|
80
|
+
entry = _ref3[0];
|
81
|
+
if (entry && entry.borderBoxSize) {
|
82
|
+
var _entry$borderBoxSize$ = entry.borderBoxSize[0],
|
83
|
+
inlineSize = _entry$borderBoxSize$.inlineSize,
|
84
|
+
blockSize = _entry$borderBoxSize$.blockSize;
|
85
|
+
setDimensions({
|
86
|
+
width: inlineSize,
|
87
|
+
height: blockSize
|
88
|
+
});
|
89
|
+
}
|
90
|
+
});
|
91
|
+
observer.observe(contentRef.current);
|
92
|
+
}
|
93
|
+
}, []);
|
94
|
+
var style = useMemo(function () {
|
95
|
+
var calculatedDuration = duration + contentHeight.current * DURATION_FACTOR;
|
96
|
+
return {
|
97
|
+
'--duration': "".concat(calculatedDuration, "ms"),
|
98
|
+
height,
|
99
|
+
opacity: collapsed && !minHeight ? HIDDEN : VISIBLE
|
100
|
+
};
|
101
|
+
}, [duration, height, collapsed, minHeight]);
|
102
|
+
var fadeShouldBeVisible = useMemo(function () {
|
103
|
+
return Boolean(minHeight && showFade);
|
104
|
+
}, [minHeight, showFade]);
|
105
|
+
return /*#__PURE__*/React.createElement("div", {
|
106
|
+
ref: containerRef,
|
107
|
+
id: "collapse-content-".concat(id),
|
108
|
+
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_CONTAINER_TEST_ID),
|
109
|
+
className: classNames(modules_9c8b5b00.container, {
|
110
|
+
[modules_9c8b5b00.transition]: !disableAnimation
|
111
|
+
}),
|
112
|
+
style: style
|
113
|
+
}, /*#__PURE__*/React.createElement("div", {
|
114
|
+
ref: contentRef,
|
115
|
+
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_TEST_ID, dataTest)
|
116
|
+
}, children), fadeShouldBeVisible && /*#__PURE__*/React.createElement("div", {
|
117
|
+
className: modules_9c8b5b00.fade
|
118
|
+
}));
|
119
|
+
};
|
120
|
+
|
121
|
+
export { CollapseContent, CollapseContent as default };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface CollapseContextInterface {
|
3
|
+
collapsed: boolean;
|
4
|
+
duration: number;
|
5
|
+
disableAnimation: boolean;
|
6
|
+
setCollapsed: () => void;
|
7
|
+
id: string;
|
8
|
+
}
|
9
|
+
export declare const CollapseContext: import("react").Context<CollapseContextInterface>;
|
10
|
+
export default CollapseContext;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { createContext } from 'react';
|
2
|
+
import { BASE_ANIMATION_DURATION } from './consts.js';
|
3
|
+
|
4
|
+
var CollapseContext = /*#__PURE__*/createContext({
|
5
|
+
collapsed: true,
|
6
|
+
duration: BASE_ANIMATION_DURATION,
|
7
|
+
disableAnimation: false,
|
8
|
+
setCollapsed: function setCollapsed() {},
|
9
|
+
id: ''
|
10
|
+
});
|
11
|
+
|
12
|
+
export { CollapseContext, CollapseContext as default };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
type ChildrenFunction = (collapsed: boolean) => React.ReactNode;
|
3
|
+
type Props = {
|
4
|
+
children: ChildrenFunction | React.ReactNode;
|
5
|
+
'data-test'?: string | null | undefined;
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* @name CollapseControl
|
9
|
+
*/
|
10
|
+
export declare const CollapseControl: React.FC<Props>;
|
11
|
+
export default CollapseControl;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import React, { useContext, useMemo, cloneElement } from 'react';
|
2
|
+
import joinDataTestAttributes from '../global/data-tests.js';
|
3
|
+
import { CollapseContext } from './collapse-context.js';
|
4
|
+
import { COLLAPSE_CONTROL_TEST_ID } from './consts.js';
|
5
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
6
|
+
import 'core-js/modules/es.array.reduce.js';
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
8
|
+
import 'core-js/modules/es.object.entries.js';
|
9
|
+
import 'core-js/modules/es.array.concat.js';
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @name CollapseControl
|
13
|
+
*/
|
14
|
+
var CollapseControl = function CollapseControl(_ref) {
|
15
|
+
var children = _ref.children,
|
16
|
+
dataTest = _ref['data-test'];
|
17
|
+
var _useContext = useContext(CollapseContext),
|
18
|
+
setCollapsed = _useContext.setCollapsed,
|
19
|
+
collapsed = _useContext.collapsed,
|
20
|
+
id = _useContext.id;
|
21
|
+
var child = useMemo(function () {
|
22
|
+
if (typeof children === 'function') {
|
23
|
+
return /*#__PURE__*/React.createElement("p", {
|
24
|
+
"data-test": joinDataTestAttributes(COLLAPSE_CONTROL_TEST_ID, dataTest)
|
25
|
+
}, children(collapsed));
|
26
|
+
}
|
27
|
+
return /*#__PURE__*/React.createElement("p", {
|
28
|
+
"data-test": joinDataTestAttributes(COLLAPSE_CONTROL_TEST_ID, dataTest)
|
29
|
+
}, children);
|
30
|
+
}, [children, collapsed, dataTest]);
|
31
|
+
return /*#__PURE__*/cloneElement(child, {
|
32
|
+
onClick: setCollapsed,
|
33
|
+
'aria-controls': "collapse-content-".concat(id),
|
34
|
+
'aria-expanded': String(!collapsed)
|
35
|
+
});
|
36
|
+
};
|
37
|
+
|
38
|
+
export { CollapseControl, CollapseControl as default };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
2
|
+
type Props = {
|
3
|
+
onChange?: (collapsed: boolean) => void;
|
4
|
+
duration?: number;
|
5
|
+
disableAnimation?: boolean;
|
6
|
+
className?: string;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* @name Collapse
|
10
|
+
*/
|
11
|
+
export declare const Collapse: React.FC<PropsWithChildren<Props>>;
|
12
|
+
export default Collapse;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { k as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import React, { useState, useId, useCallback } from 'react';
|
3
|
+
import { CollapseContext } from './collapse-context.js';
|
4
|
+
import { BASE_ANIMATION_DURATION } from './consts.js';
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @name Collapse
|
8
|
+
*/
|
9
|
+
var Collapse = function Collapse(_ref) {
|
10
|
+
var children = _ref.children,
|
11
|
+
_ref$duration = _ref.duration,
|
12
|
+
duration = _ref$duration === void 0 ? BASE_ANIMATION_DURATION : _ref$duration,
|
13
|
+
_ref$disableAnimation = _ref.disableAnimation,
|
14
|
+
disableAnimation = _ref$disableAnimation === void 0 ? false : _ref$disableAnimation,
|
15
|
+
_ref$className = _ref.className,
|
16
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
17
|
+
_ref$onChange = _ref.onChange,
|
18
|
+
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange;
|
19
|
+
var _useState = useState(true),
|
20
|
+
_useState2 = _slicedToArray(_useState, 2),
|
21
|
+
collapsed = _useState2[0],
|
22
|
+
toggle = _useState2[1];
|
23
|
+
var id = useId();
|
24
|
+
var setCollapsed = useCallback(function () {
|
25
|
+
toggle(!collapsed);
|
26
|
+
onChange(!collapsed);
|
27
|
+
}, [toggle, onChange, collapsed]);
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
29
|
+
className: className
|
30
|
+
}, /*#__PURE__*/React.createElement(CollapseContext.Provider, {
|
31
|
+
value: {
|
32
|
+
collapsed,
|
33
|
+
setCollapsed,
|
34
|
+
duration,
|
35
|
+
disableAnimation,
|
36
|
+
id
|
37
|
+
}
|
38
|
+
}, children));
|
39
|
+
};
|
40
|
+
|
41
|
+
export { Collapse, Collapse as default };
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export declare const COLLAPSE_CONTROL_TEST_ID = "ring-collapse-control";
|
2
|
+
export declare const COLLAPSE_CONTENT_CONTAINER_TEST_ID = "ring-collapse-content-container";
|
3
|
+
export declare const COLLAPSE_CONTENT_TEST_ID = "ring-collapse-content";
|
4
|
+
export declare const BASE_ANIMATION_DURATION = 200;
|