@jetbrains/ring-ui 7.0.0-beta.8 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.js +20 -14
- package/components/alert/alert.css +7 -7
- package/components/alert/alert.d.ts +2 -2
- package/components/alert/alert.js +10 -12
- package/components/alert/container.js +1 -1
- package/components/alert-service/alert-service.js +4 -2
- package/components/analytics/analytics__custom-plugin.js +1 -1
- package/components/auth/auth.js +1 -1
- package/components/auth/auth__core.js +36 -36
- package/components/auth/background-flow.js +2 -2
- package/components/auth/down-notification.js +3 -1
- package/components/auth/iframe-flow.js +4 -2
- package/components/auth/request-builder.js +5 -5
- package/components/auth/storage.js +10 -9
- package/components/auth/token-validator.js +8 -15
- package/components/auth-dialog/auth-dialog.js +8 -8
- package/components/auth-dialog-service/auth-dialog-service.js +4 -4
- package/components/avatar/avatar.js +9 -7
- package/components/avatar/fallback-avatar.js +15 -12
- package/components/button/button.css +36 -25
- package/components/button/button.js +9 -9
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +3 -4
- package/components/button-group/button-group.css +25 -13
- package/components/button-group/caption.js +1 -1
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -2
- package/components/caret/caret.js +8 -8
- package/components/checkbox/checkbox.css +8 -5
- package/components/checkbox/checkbox.js +1 -1
- package/components/clipboard/clipboard-fallback.js +2 -6
- package/components/clipboard/clipboard.js +5 -5
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +2 -2
- package/components/code/highlight.css +3 -1
- package/components/collapse/collapse-content.d.ts +1 -2
- package/components/collapse/collapse-content.js +25 -14
- package/components/collapse/collapse-context.js +1 -1
- package/components/collapse/collapse-control.js +5 -3
- package/components/collapse/collapse.css +21 -20
- package/components/collapse/collapse.js +2 -2
- package/components/confirm/confirm.d.ts +2 -2
- package/components/confirm/confirm.js +2 -2
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +6 -6
- package/components/content-layout/content-layout.css +6 -5
- package/components/content-layout/content-layout.js +7 -6
- package/components/content-layout/sidebar.js +5 -5
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/contenteditable/contenteditable.js +3 -4
- package/components/control-label/control-label.js +5 -3
- package/components/data-list/data-list.css +3 -3
- package/components/data-list/data-list.d.ts +2 -2
- package/components/data-list/data-list.js +6 -7
- package/components/data-list/data-list.mock.js +57 -47
- package/components/data-list/item.js +14 -16
- package/components/data-list/selection.js +5 -7
- package/components/data-list/title.js +5 -6
- package/components/date-picker/consts.js +2 -2
- package/components/date-picker/date-input.js +4 -4
- package/components/date-picker/date-picker.css +23 -18
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +13 -19
- package/components/date-picker/date-popup.js +30 -36
- package/components/date-picker/day.js +6 -9
- package/components/date-picker/formats.js +647 -1
- package/components/date-picker/month-names.js +6 -8
- package/components/date-picker/month-slider.js +2 -2
- package/components/date-picker/month.js +1 -3
- package/components/date-picker/months.js +2 -6
- package/components/date-picker/weekdays.js +2 -3
- package/components/date-picker/years.js +3 -3
- package/components/dialog/dialog.d.ts +1 -0
- package/components/dialog/dialog.js +20 -13
- package/components/dialog/dialog__body-scroll-preventer.js +1 -1
- package/components/dropdown/dropdown.css +2 -4
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +5 -5
- package/components/dropdown-menu/dropdown-menu.js +5 -5
- package/components/editable-heading/editable-heading.css +5 -2
- package/components/editable-heading/editable-heading.js +21 -19
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +2 -4
- package/components/footer/footer.js +11 -15
- package/components/form/form.stories.js +45 -63
- package/components/global/create-stateful-context.js +2 -4
- package/components/global/data-tests.js +5 -6
- package/components/global/dom.js +8 -11
- package/components/global/focus-sensor-hoc.js +5 -6
- package/components/global/fuzzy-highlight.js +1 -1
- package/components/global/get-event-key.js +2 -2
- package/components/global/global.css +0 -3
- package/components/global/linear-function.js +1 -1
- package/components/global/normalize-indent.js +2 -6
- package/components/global/react-dom-renderer.js +2 -3
- package/components/global/theme.d.ts +4 -2
- package/components/global/theme.js +14 -12
- package/components/global/url.js +8 -8
- package/components/global/variables.css +1 -8
- package/components/global/variables_dark.css +0 -1
- package/components/grid/col.js +6 -6
- package/components/grid/grid.css +174 -173
- package/components/grid/grid.js +1 -1
- package/components/grid/row.js +13 -6
- package/components/group/group.js +1 -1
- package/components/header/header-icon.js +2 -2
- package/components/header/header.css +19 -15
- package/components/header/header.js +3 -5
- package/components/header/links.js +1 -1
- package/components/header/logo.js +1 -1
- package/components/header/profile.d.ts +2 -2
- package/components/header/profile.js +9 -9
- package/components/header/services-link.js +1 -1
- package/components/header/services.js +4 -5
- package/components/header/smart-profile.js +4 -3
- package/components/header/smart-services.js +9 -5
- package/components/header/tray.js +1 -1
- package/components/heading/heading.css +0 -1
- package/components/heading/heading.js +2 -2
- package/components/http/http.d.ts +3 -3
- package/components/http/http.js +25 -29
- package/components/http/http.mock.js +9 -6
- package/components/hub-source/hub-source.js +5 -7
- package/components/hub-source/hub-source__user.js +1 -1
- package/components/hub-source/hub-source__users-groups.js +6 -7
- package/components/i18n/README.md +3 -4
- package/components/i18n/i18n-context.js +2 -4
- package/components/icon/icon.css +1 -1
- package/components/icon/icon.js +7 -9
- package/components/icon/icon__svg.js +6 -6
- package/components/input/input.css +1 -1
- package/components/input/input.js +11 -14
- package/components/input-size/input-size.stories.js +42 -22
- package/components/island/adaptive-island-hoc.js +1 -1
- package/components/island/content.js +4 -6
- package/components/island/header.js +8 -10
- package/components/island/island.css +5 -5
- package/components/island/island.js +1 -1
- package/components/link/clickableLink.js +3 -1
- package/components/link/link.js +5 -3
- package/components/list/consts.js +1 -1
- package/components/list/list.d.ts +1 -1
- package/components/list/list.js +35 -57
- package/components/list/list__custom.js +3 -5
- package/components/list/list__hint.js +3 -1
- package/components/list/list__item.js +11 -9
- package/components/list/list__link.js +1 -1
- package/components/list/list__separator.js +2 -2
- package/components/list/list__title.js +7 -3
- package/components/list/list__users-groups-source.js +6 -8
- package/components/loader/loader.js +1 -1
- package/components/loader/loader__core.js +5 -5
- package/components/loader-inline/loader-inline.css +0 -3
- package/components/loader-inline/loader-inline.js +5 -7
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.js +4 -4
- package/components/login-dialog/service.js +5 -5
- package/components/markdown/markdown.css +6 -6
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +4 -6
- package/components/message/message.css +2 -1
- package/components/message/message.js +30 -21
- package/components/old-browsers-message/old-browsers-message.js +2 -2
- package/components/old-browsers-message/white-list.js +2 -3
- package/components/pager/pager.js +28 -29
- package/components/permissions/permissions.js +8 -13
- package/components/permissions/permissions__cache.js +6 -7
- package/components/popup/popup.consts.js +8 -2
- package/components/popup/popup.js +27 -33
- package/components/popup/popup.target.js +4 -4
- package/components/popup/position.js +21 -28
- package/components/popup-menu/popup-menu.js +1 -1
- package/components/progress-bar/progress-bar.css +10 -8
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +2 -2
- package/components/query-assist/query-assist.css +0 -3
- package/components/query-assist/query-assist.js +73 -84
- package/components/query-assist/query-assist__suggestions.js +10 -9
- package/components/radio/radio.css +6 -2
- package/components/radio/radio.js +1 -3
- package/components/scrollable-section/scrollable-section.css +5 -6
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/select.css +5 -7
- package/components/select/select.d.ts +1 -1
- package/components/select/select.js +96 -110
- package/components/select/select__filter.js +1 -1
- package/components/select/select__popup.js +40 -51
- package/components/shortcuts/core.js +8 -6
- package/components/shortcuts/shortcut-title.js +6 -6
- package/components/shortcuts/shortcuts.js +1 -1
- package/components/sidebar/sidebar.css +3 -1
- package/components/slider/slider.css +14 -14
- package/components/slider/slider.js +7 -7
- package/components/tab-trap/tab-trap.js +7 -9
- package/components/table/cell.js +3 -1
- package/components/table/disable-hover-hoc.js +2 -2
- package/components/table/header-cell.js +5 -3
- package/components/table/header.d.ts +2 -10
- package/components/table/header.js +10 -12
- package/components/table/multitable.js +5 -3
- package/components/table/row.d.ts +0 -1
- package/components/table/row.js +20 -27
- package/components/table/selection-adapter.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/selection.d.ts +2 -3
- package/components/table/selection.js +4 -5
- package/components/table/simple-table.js +4 -4
- package/components/table/smart-table.js +5 -5
- package/components/table/table.css +8 -9
- package/components/table/table.d.ts +0 -1
- package/components/table/table.js +22 -23
- package/components/table/table.stories.json +45 -16
- package/components/tabs/collapsible-more.d.ts +1 -1
- package/components/tabs/collapsible-more.js +13 -16
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +13 -22
- package/components/tabs/dumb-tabs.js +6 -9
- package/components/tabs/smart-tabs.js +4 -4
- package/components/tabs/tab-link.js +1 -3
- package/components/tabs/tabs.css +7 -9
- package/components/tag/tag.css +7 -7
- package/components/tag/tag.d.ts +1 -1
- package/components/tag/tag.js +9 -12
- package/components/tags-input/tags-input.js +15 -19
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +6 -5
- package/components/text/text.js +5 -3
- package/components/toggle/toggle.css +12 -10
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +4 -3
- package/components/tooltip/tooltip.d.ts +4 -1
- package/components/tooltip/tooltip.js +19 -10
- package/components/user-agreement/service.js +15 -13
- package/components/user-agreement/user-agreement.js +3 -5
- package/components/user-card/card.js +10 -9
- package/components/user-card/smart-user-card-tooltip.js +5 -7
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.css +4 -0
- package/jslint-xml.js +20 -19
- package/package.json +66 -58
- package/postcss.config.js +3 -4
- package/typings.d.ts +2 -4
- package/webpack.config.js +20 -25
- package/components/badge/badge.css +0 -42
- package/components/badge/badge.d.ts +0 -14
- package/components/badge/badge.js +0 -29
- package/components/island-legacy/content-legacy.d.ts +0 -5
- package/components/island-legacy/content-legacy.js +0 -12
- package/components/island-legacy/header-legacy.d.ts +0 -5
- package/components/island-legacy/header-legacy.js +0 -14
- package/components/island-legacy/island-legacy.css +0 -98
- package/components/island-legacy/island-legacy.d.ts +0 -7
- package/components/island-legacy/island-legacy.js +0 -14
- package/components/table-legacy/table-legacy.css +0 -346
- package/components/table-legacy/table-legacy__toolbar.css +0 -25
package/webpack.config.js
CHANGED
|
@@ -14,8 +14,8 @@ function createConfig() {
|
|
|
14
14
|
{
|
|
15
15
|
loader: require.resolve('style-loader'),
|
|
16
16
|
options: {
|
|
17
|
-
esModule: false
|
|
18
|
-
}
|
|
17
|
+
esModule: false,
|
|
18
|
+
},
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
loader: require.resolve('css-loader'),
|
|
@@ -23,29 +23,24 @@ function createConfig() {
|
|
|
23
23
|
modules: {
|
|
24
24
|
namedExport: false,
|
|
25
25
|
exportLocalsConvention: 'as-is',
|
|
26
|
-
localIdentName: '[local]_[hash:4]'
|
|
26
|
+
localIdentName: '[local]_[hash:4]',
|
|
27
27
|
},
|
|
28
|
-
importLoaders: 1
|
|
29
|
-
}
|
|
28
|
+
importLoaders: 1,
|
|
29
|
+
},
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
loader: require.resolve('postcss-loader'),
|
|
33
33
|
options: {
|
|
34
|
-
implementation: require('postcss')
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
34
|
+
implementation: require('postcss'),
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
const externalCssLoader = {
|
|
41
41
|
test: /\.css$/,
|
|
42
|
-
include: [
|
|
43
|
-
|
|
44
|
-
],
|
|
45
|
-
use: [
|
|
46
|
-
require.resolve('style-loader'),
|
|
47
|
-
require.resolve('css-loader')
|
|
48
|
-
]
|
|
42
|
+
include: [path.dirname(require.resolve('highlight.js/package.json'))],
|
|
43
|
+
use: [require.resolve('style-loader'), require.resolve('css-loader')],
|
|
49
44
|
};
|
|
50
45
|
|
|
51
46
|
const babelLoader = {
|
|
@@ -55,35 +50,35 @@ function createConfig() {
|
|
|
55
50
|
loader: require.resolve('babel-loader'),
|
|
56
51
|
options: {
|
|
57
52
|
configFile: path.join(__dirname, 'babel.config.js'),
|
|
58
|
-
cacheDirectory: true
|
|
59
|
-
}
|
|
53
|
+
cacheDirectory: true,
|
|
54
|
+
},
|
|
60
55
|
};
|
|
61
56
|
|
|
62
57
|
const gifLoader = {
|
|
63
58
|
test: /\.gif$/,
|
|
64
59
|
include: componentsPath,
|
|
65
|
-
loader: require.resolve('url-loader')
|
|
60
|
+
loader: require.resolve('url-loader'),
|
|
66
61
|
};
|
|
67
62
|
|
|
68
63
|
const loaders = {
|
|
69
64
|
cssLoader,
|
|
70
65
|
externalCssLoader,
|
|
71
66
|
babelLoader,
|
|
72
|
-
gifLoader
|
|
67
|
+
gifLoader,
|
|
73
68
|
};
|
|
74
69
|
|
|
75
70
|
return {
|
|
76
71
|
// Minimal config for building components
|
|
77
72
|
config: {
|
|
78
73
|
module: {
|
|
79
|
-
rules: loadersObjectToArray(loaders)
|
|
74
|
+
rules: loadersObjectToArray(loaders),
|
|
80
75
|
},
|
|
81
76
|
resolve: {
|
|
82
|
-
extensions: ['.js', '.ts', '.tsx']
|
|
83
|
-
}
|
|
77
|
+
extensions: ['.js', '.ts', '.tsx'],
|
|
78
|
+
},
|
|
84
79
|
},
|
|
85
80
|
componentsPath,
|
|
86
|
-
loaders
|
|
81
|
+
loaders,
|
|
87
82
|
};
|
|
88
83
|
}
|
|
89
84
|
|
|
@@ -93,5 +88,5 @@ module.exports = {
|
|
|
93
88
|
createConfig,
|
|
94
89
|
config,
|
|
95
90
|
componentsPath,
|
|
96
|
-
loaders
|
|
91
|
+
loaders,
|
|
97
92
|
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@import "../global/variables.css";
|
|
2
|
-
|
|
3
|
-
.badge {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
height: 20px;
|
|
8
|
-
padding: 0 var(--ring-unit);
|
|
9
|
-
|
|
10
|
-
cursor: default;
|
|
11
|
-
|
|
12
|
-
vertical-align: baseline;
|
|
13
|
-
|
|
14
|
-
color: var(--ring-secondary-color);
|
|
15
|
-
border: 1px var(--ring-line-color) solid;
|
|
16
|
-
border-radius: var(--ring-border-radius);
|
|
17
|
-
background-color: var(--ring-content-background-color);
|
|
18
|
-
|
|
19
|
-
font-size: var(--ring-font-size-smaller);
|
|
20
|
-
font-weight: normal;
|
|
21
|
-
font-style: normal;
|
|
22
|
-
line-height: 17px;
|
|
23
|
-
|
|
24
|
-
&.gray {
|
|
25
|
-
color: var(--ring-text-color);
|
|
26
|
-
background-color: var(--ring-tag-background-color);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.valid {
|
|
30
|
-
color: var(--ring-success-color);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.invalid {
|
|
34
|
-
color: var(--ring-error-color);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.disabled {
|
|
38
|
-
/* Deprecated: duplicates invalid */
|
|
39
|
-
|
|
40
|
-
color: var(--ring-error-color);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PureComponent, HTMLAttributes } from 'react';
|
|
2
|
-
export interface BadgeProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
-
gray?: boolean | null | undefined;
|
|
4
|
-
valid?: boolean | null | undefined;
|
|
5
|
-
invalid?: boolean | null | undefined;
|
|
6
|
-
disabled?: boolean | null | undefined;
|
|
7
|
-
'data-test'?: string | null | undefined;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @name Badge
|
|
11
|
-
*/
|
|
12
|
-
export default class Badge extends PureComponent<BadgeProps> {
|
|
13
|
-
render(): import("react").JSX.Element;
|
|
14
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import deprecate from 'util-deprecate';
|
|
4
|
-
import dataTests from '../global/data-tests';
|
|
5
|
-
import style from './badge.css';
|
|
6
|
-
const warn = deprecate(() => { }, 'Badge is deprecated and will be removed in RingUI 7.0. Use Tag instead.');
|
|
7
|
-
/**
|
|
8
|
-
* @name Badge
|
|
9
|
-
*/
|
|
10
|
-
// TODO remove in 7.0
|
|
11
|
-
export default class Badge extends PureComponent {
|
|
12
|
-
render() {
|
|
13
|
-
warn();
|
|
14
|
-
const {
|
|
15
|
-
// Modifiers
|
|
16
|
-
gray, valid, invalid, disabled,
|
|
17
|
-
// Props
|
|
18
|
-
className, children, 'data-test': dataTest, ...props } = this.props;
|
|
19
|
-
const classes = classNames(style.badge, className, {
|
|
20
|
-
[style.gray]: gray,
|
|
21
|
-
[style.valid]: valid,
|
|
22
|
-
[style.invalid]: invalid,
|
|
23
|
-
[style.disabled]: disabled
|
|
24
|
-
});
|
|
25
|
-
return (<span {...props} data-test={dataTests('ring-badge', dataTest)} className={classes}>
|
|
26
|
-
{children}
|
|
27
|
-
</span>);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import './island-legacy.css';
|
|
4
|
-
export default class Content extends PureComponent {
|
|
5
|
-
render() {
|
|
6
|
-
const { children, className, ...restProps } = this.props;
|
|
7
|
-
const classes = classNames('ring-island__content', className);
|
|
8
|
-
return (<div {...restProps} className={classes}>
|
|
9
|
-
{children}
|
|
10
|
-
</div>);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import './island-legacy.css';
|
|
4
|
-
export default class Header extends PureComponent {
|
|
5
|
-
render() {
|
|
6
|
-
const { children, className, ...restProps } = this.props;
|
|
7
|
-
const classes = classNames('ring-island__header', className);
|
|
8
|
-
return (<div {...restProps} className={classes}>
|
|
9
|
-
<div className="ring-island__title">
|
|
10
|
-
{children}
|
|
11
|
-
</div>
|
|
12
|
-
</div>);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name Island Legacy
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
:global(.ring-island) {
|
|
6
|
-
min-width: calc(var(--ring-unit) * 25 - 2px);
|
|
7
|
-
|
|
8
|
-
color: var(--ring-text-color);
|
|
9
|
-
|
|
10
|
-
border: 1px solid;
|
|
11
|
-
border-color: var(--ring-line-color);
|
|
12
|
-
border-radius: var(--ring-border-radius);
|
|
13
|
-
|
|
14
|
-
background-color: var(--ring-content-background-color);
|
|
15
|
-
box-shadow: 0 1px 4px var(--ring-popup-shadow-color);
|
|
16
|
-
|
|
17
|
-
font-family: var(--ring-font-family);
|
|
18
|
-
|
|
19
|
-
font-size: var(--ring-font-size);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:global(.ring-island_stack-right) {
|
|
23
|
-
border-right: none;
|
|
24
|
-
border-top-right-radius: 0;
|
|
25
|
-
border-bottom-right-radius: 0;
|
|
26
|
-
|
|
27
|
-
box-shadow: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:global(.ring-island_stack-left) {
|
|
31
|
-
border-top-left-radius: 0;
|
|
32
|
-
border-bottom-left-radius: 0;
|
|
33
|
-
|
|
34
|
-
box-shadow: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:global(.ring-island__header) {
|
|
38
|
-
min-height: calc(var(--ring-unit) * 3 - 2px);
|
|
39
|
-
|
|
40
|
-
border-bottom: 1px solid var(--ring-line-color);
|
|
41
|
-
border-top-left-radius: var(--ring-border-radius);
|
|
42
|
-
border-top-right-radius: var(--ring-border-radius);
|
|
43
|
-
|
|
44
|
-
background-color: var(--ring-content-background-color);
|
|
45
|
-
|
|
46
|
-
line-height: calc(var(--ring-unit) * 3 - 2px);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:global(.ring-island__header-btn),
|
|
50
|
-
:global(.ring-island__header-button) {
|
|
51
|
-
float: right;
|
|
52
|
-
|
|
53
|
-
padding: 0 calc(var(--ring-unit) * 2 - 1px);
|
|
54
|
-
|
|
55
|
-
/* -1 to account for border */
|
|
56
|
-
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
|
|
59
|
-
user-select: none;
|
|
60
|
-
|
|
61
|
-
color: var(--ring-secondary-color);
|
|
62
|
-
|
|
63
|
-
border-left: 1px solid var(--ring-disabled-color);
|
|
64
|
-
text-shadow: var(--ring-white-text-color) 0 0 1px;
|
|
65
|
-
|
|
66
|
-
font-size: var(--ring-font-size-smaller);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:global(.ring-island__header-btn),
|
|
70
|
-
:global(.ring-island__header-button:hover) {
|
|
71
|
-
background:
|
|
72
|
-
var(--ring-hover-background-color)
|
|
73
|
-
linear-gradient(to top, var(--ring-hover-background-color), var(--ring-content-background-color));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:global(.ring-island__header-btn),
|
|
77
|
-
:global(.ring-island__header-button:active) {
|
|
78
|
-
background: var(--ring-content-background-color) none;
|
|
79
|
-
box-shadow: 0 0 4px 0 var(--ring-content-background-color) inset;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:global(.ring-island__header-btn),
|
|
83
|
-
:global(.ring-island__header-button:last-child) {
|
|
84
|
-
border-top-right-radius: 3px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:global(.ring-island__title) {
|
|
88
|
-
display: block;
|
|
89
|
-
float: left;
|
|
90
|
-
|
|
91
|
-
padding: 0 calc(var(--ring-unit) * 4);
|
|
92
|
-
|
|
93
|
-
font-weight: var(--ring-font-weight-bold);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:global(.ring-island__content) {
|
|
97
|
-
margin: calc(var(--ring-unit) * 2) calc(var(--ring-unit) * 4);
|
|
98
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
|
-
import './island-legacy.css';
|
|
3
|
-
export default class Island extends PureComponent<HTMLAttributes<HTMLElement>> {
|
|
4
|
-
render(): import("react").JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export { default as Header } from './header-legacy';
|
|
7
|
-
export { default as Content } from './content-legacy';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import './island-legacy.css';
|
|
4
|
-
export default class Island extends PureComponent {
|
|
5
|
-
render() {
|
|
6
|
-
const { children, className, ...restProps } = this.props;
|
|
7
|
-
const classes = classNames('ring-island', className);
|
|
8
|
-
return (<div {...restProps} className={classes}>
|
|
9
|
-
{children}
|
|
10
|
-
</div>);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export { default as Header } from './header-legacy';
|
|
14
|
-
export { default as Content } from './content-legacy';
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
@import "./table-legacy__toolbar.css";
|
|
2
|
-
|
|
3
|
-
:global(.ring-table) {
|
|
4
|
-
width: 100%;
|
|
5
|
-
|
|
6
|
-
border-spacing: 0;
|
|
7
|
-
|
|
8
|
-
border-collapse: collapse;
|
|
9
|
-
background-color: transparent;
|
|
10
|
-
|
|
11
|
-
font-size: var(--ring-font-size);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:global(.ring-table__header) {
|
|
15
|
-
display: table-row;
|
|
16
|
-
|
|
17
|
-
background-color: var(--ring-sidebar-background-color);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:global(.ring-table__header-checkbox) {
|
|
21
|
-
position: relative;
|
|
22
|
-
top: 1px;
|
|
23
|
-
left: -2px;
|
|
24
|
-
|
|
25
|
-
display: inline-block;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:global(.ring-table__title) {
|
|
29
|
-
position: relative;
|
|
30
|
-
|
|
31
|
-
display: table-cell;
|
|
32
|
-
|
|
33
|
-
padding: 0 var(--ring-unit);
|
|
34
|
-
|
|
35
|
-
text-align: left;
|
|
36
|
-
white-space: nowrap;
|
|
37
|
-
|
|
38
|
-
color: var(--ring-text-color);
|
|
39
|
-
border-top: 1px solid var(--ring-sidebar-background-color);
|
|
40
|
-
border-bottom: 1px solid var(--ring-line-color);
|
|
41
|
-
|
|
42
|
-
font-size: var(--ring-font-size-smaller);
|
|
43
|
-
font-weight: normal;
|
|
44
|
-
line-height: 23px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:global(.ring-table__title.ring-table__title_active) {
|
|
48
|
-
font-weight: var(--ring-font-weight-bold);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:global(.ring-table__title:first-child) {
|
|
52
|
-
padding-left: calc(var(--ring-unit) * 4);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Have to emulate right border because of Fx weird bug —
|
|
56
|
-
* https://jetpass.myjetbrains.com/youtrack/issue/JPS-1634
|
|
57
|
-
* Removing border-collapse: collapse from .ring-table helps too,
|
|
58
|
-
* but to implement nested items markup without it is next to impossible.
|
|
59
|
-
**/
|
|
60
|
-
:global(.ring-table__title::after) {
|
|
61
|
-
position: absolute;
|
|
62
|
-
top: -1px;
|
|
63
|
-
right: 0;
|
|
64
|
-
bottom: 0;
|
|
65
|
-
|
|
66
|
-
display: block;
|
|
67
|
-
|
|
68
|
-
width: 1px;
|
|
69
|
-
|
|
70
|
-
content: normal;
|
|
71
|
-
|
|
72
|
-
background-color: var(--ring-sidebar-background-color);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
:global(.ring-table__title_border::after) {
|
|
76
|
-
content: "";
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:global(.ring-table__title_nested) {
|
|
80
|
-
padding-left: calc(var(--ring-unit) * 5);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* fix header checkbox position in nested table */
|
|
84
|
-
:global(.ring-table__title_nested.ring-table__header-checkbox) {
|
|
85
|
-
left: -26px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
:global(.ring-table__toggle) {
|
|
89
|
-
position: relative;
|
|
90
|
-
top: 9px;
|
|
91
|
-
|
|
92
|
-
display: inline-block;
|
|
93
|
-
|
|
94
|
-
width: 12px;
|
|
95
|
-
height: 9px;
|
|
96
|
-
|
|
97
|
-
margin-left: calc(var(--ring-unit) * 2);
|
|
98
|
-
padding-bottom: 21px;
|
|
99
|
-
|
|
100
|
-
cursor: pointer;
|
|
101
|
-
|
|
102
|
-
color: var(--ring-line-color);
|
|
103
|
-
|
|
104
|
-
font-size: 14px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
:global(.ring-table__toggle:hover) {
|
|
108
|
-
color: var(--ring-text-color);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
:global(.ring-table__toggle-icon) {
|
|
112
|
-
float: right;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
:global(.ring-table__toggle-icon:hover) {
|
|
116
|
-
color: var(--ring-link-hover-color);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
:global(.ring-table__column-inline-avatar) {
|
|
120
|
-
display: inline-block;
|
|
121
|
-
|
|
122
|
-
vertical-align: middle;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
:global(.ring-table__column-inline-avatar-img) {
|
|
126
|
-
margin: -6px 8px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:global(.ring-table__column_selector) {
|
|
130
|
-
min-width: calc(3 * var(--ring-unit));
|
|
131
|
-
padding: 0 !important;
|
|
132
|
-
|
|
133
|
-
text-align: center;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
:global(.ring-table__selector) {
|
|
137
|
-
display: inline-block;
|
|
138
|
-
|
|
139
|
-
margin: 0 0 0 calc(var(--ring-unit) / 2);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
:global(.ring-table__column) {
|
|
143
|
-
display: table-cell;
|
|
144
|
-
|
|
145
|
-
padding: calc(var(--ring-unit) - 2px) var(--ring-unit);
|
|
146
|
-
|
|
147
|
-
vertical-align: middle;
|
|
148
|
-
white-space: nowrap;
|
|
149
|
-
|
|
150
|
-
border-collapse: collapse;
|
|
151
|
-
border-width: 1px;
|
|
152
|
-
border-color: var(--ring-line-color);
|
|
153
|
-
border-top-style: solid;
|
|
154
|
-
border-bottom-style: solid;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/* Avoid vertical gaps in the middle of the table */
|
|
158
|
-
:global(.ring-table__column:last-child) {
|
|
159
|
-
width: 100%;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
:global(.ring-table__column:first-child) {
|
|
163
|
-
padding-left: calc(4 * var(--ring-unit));
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
:global(.ring-table__column.ring-table__column_gap) {
|
|
167
|
-
border-bottom-color: transparent !important;
|
|
168
|
-
background-color: var(--ring-line-color);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/* Combined class is required here for specificity */
|
|
172
|
-
:global(.ring-table__column.ring-table__column_toggle) {
|
|
173
|
-
width: calc(var(--ring-unit) * 2);
|
|
174
|
-
padding: 0;
|
|
175
|
-
|
|
176
|
-
text-align: right;
|
|
177
|
-
|
|
178
|
-
vertical-align: top;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
:global(.ring-table__column_right) {
|
|
182
|
-
text-align: right;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:global(.ring-table__column_gray) {
|
|
186
|
-
color: var(--ring-secondary-color);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
:global(.ring-table__column_snuggle-right) {
|
|
190
|
-
padding-right: 0;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
:global(.ring-table__column_snuggle-left) {
|
|
194
|
-
padding-left: 0;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
:global(.ring-table__column_align-right) {
|
|
198
|
-
text-align: right;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:global(.ring-table__column_gap) {
|
|
202
|
-
padding-left: calc(var(--ring-unit) * 2) !important;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
:global(.ring-table__column-title) {
|
|
206
|
-
font-weight: var(--ring-font-weight-bold);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
:global(.ring-table__column_wide) {
|
|
210
|
-
min-width: calc(10 * var(--ring-unit));
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
:global(.ring-table__column_limited) {
|
|
214
|
-
overflow: hidden;
|
|
215
|
-
|
|
216
|
-
max-width: calc(50 * var(--ring-unit));
|
|
217
|
-
|
|
218
|
-
white-space: nowrap;
|
|
219
|
-
text-overflow: ellipsis;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
:global(.ring-table__column_unlimited) {
|
|
223
|
-
overflow: hidden;
|
|
224
|
-
|
|
225
|
-
width: 100%;
|
|
226
|
-
max-width: 1px;
|
|
227
|
-
|
|
228
|
-
white-space: nowrap;
|
|
229
|
-
text-overflow: ellipsis;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:global(.ring-table__column_narrow) {
|
|
233
|
-
min-width: calc(3 * var(--ring-unit));
|
|
234
|
-
padding: 0 !important;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
:global(.ring-table__column-list:not(:last-child)::after) {
|
|
238
|
-
content: ", ";
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
:global(.ring-table__row) {
|
|
242
|
-
display: table-row;
|
|
243
|
-
|
|
244
|
-
width: 100%;
|
|
245
|
-
height: calc(5 * var(--ring-unit));
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
:global(.ring-table__row .ring-table__row_ghost) {
|
|
249
|
-
background-color: var(--ring-content-background-color);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
:global(.ring-table__row .ring-table__row_implicit) {
|
|
253
|
-
opacity: 0.5;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
:global(.ring-table__row:hover) {
|
|
257
|
-
background-color: var(--ring-sidebar-background-color);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
:global(.ring-table__row:hover .ring-table__column_gap) {
|
|
261
|
-
background-color: var(--ring-line-color);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
:global(.ring-table__row .ring-table__row_unselectable:hover) {
|
|
265
|
-
background-color: initial;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
:global(.ring-table__row .ring-table__row_checked) {
|
|
269
|
-
background-color: var(--ring-selected-background-color);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
:global(.ring-table__row .ring-table__row_active-checked) {
|
|
273
|
-
background-color: var(--ring-selected-background-color);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
:global(.ring-table__row .ring-table__row_active.ring-table__column) {
|
|
277
|
-
border-color: var(--ring-main-color);
|
|
278
|
-
border-top-style: double; /* Using double to override border-top-color because of border collapsed */
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
:global(.ring-table__row .ring-table__row_active.ring-table__column_gap) {
|
|
282
|
-
border-color: var(--ring-line-color);
|
|
283
|
-
border-top-style: none;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
:global(.ring-table__row .ring-table__row_active.sidebar__btn) {
|
|
287
|
-
visibility: visible;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
:global(.ring-table__group) {
|
|
291
|
-
display: table-row-group;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
:global(.ring-table__description) {
|
|
295
|
-
margin-left: var(--ring-unit);
|
|
296
|
-
|
|
297
|
-
color: var(--ring-secondary-color);
|
|
298
|
-
|
|
299
|
-
font-size: var(--ring-font-size-smaller);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
:global(.ring-table__avatar) {
|
|
303
|
-
width: calc(3 * var(--ring-unit));
|
|
304
|
-
height: calc(3 * var(--ring-unit) + 3px); /* If avatar is missing */
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
:global(.ring-table__avatar-img) {
|
|
308
|
-
width: calc(3 * var(--ring-unit));
|
|
309
|
-
height: calc(3 * var(--ring-unit));
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
:global(.ring-table__header_sticky) {
|
|
313
|
-
position: fixed;
|
|
314
|
-
|
|
315
|
-
/* Set z-index to avoid overlaying icons in rows and fixed header */
|
|
316
|
-
|
|
317
|
-
z-index: var(--ring-fixed-z-index);
|
|
318
|
-
top: 0;
|
|
319
|
-
|
|
320
|
-
display: none;
|
|
321
|
-
|
|
322
|
-
width: auto;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
:global(.table__pager) {
|
|
326
|
-
padding: calc(4 * var(--ring-unit));
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
:global(.table__pager-links) {
|
|
330
|
-
margin-bottom: calc(2 * var(--ring-unit));
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
:global(.table__pager-link) {
|
|
334
|
-
display: inline-block;
|
|
335
|
-
|
|
336
|
-
margin-right: calc(4 * var(--ring-unit));
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
:global(.table__pager-link_disabled) {
|
|
340
|
-
color: var(--ring-secondary-color);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
:global(.table__pager-select) {
|
|
344
|
-
display: inline-block;
|
|
345
|
-
float: right;
|
|
346
|
-
}
|