@jetbrains/ring-ui 7.0.10 → 7.0.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/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +8 -14
- package/components/alert/container.js +3 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -8
- package/components/auth/down-notification.js +4 -12
- package/components/auth/iframe-flow.js +2 -3
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +2 -18
- package/components/auth-dialog-service/auth-dialog-service.js +2 -3
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +4 -8
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +2 -18
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +2 -4
- package/components/button/button.css +1 -1
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +4 -11
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +2 -5
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +2 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -3
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -1
- package/components/checkbox/checkbox.css +11 -3
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +2 -13
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -8
- package/components/collapse/collapse-content.js +3 -7
- package/components/collapse/collapse-control.js +3 -5
- package/components/collapse/collapse.js +8 -12
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +2 -15
- package/components/confirm-service/confirm-service.js +2 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +2 -6
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +2 -11
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +6 -5
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +2 -1
- package/components/control-label/control-label.js +3 -5
- package/components/data-list/data-list.d.ts +3 -3
- package/components/data-list/data-list.js +8 -17
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +27 -72
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +7 -23
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -11
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +11 -23
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -20
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +3 -4
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +7 -12
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +3 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +3 -4
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +5 -8
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +3 -6
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -8
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +12 -33
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -3
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -10
- package/components/dropdown-menu/dropdown-menu.js +4 -9
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +2 -30
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +2 -8
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +2 -10
- package/components/footer/footer.js +7 -14
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +2 -3
- package/components/global/focus-sensor-hoc.js +2 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -1
- package/components/global/rerender-hoc.js +3 -2
- package/components/global/theme.js +3 -11
- package/components/global/variables.css +2 -0
- package/components/global/variables_dark.css +2 -0
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +2 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +2 -3
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +2 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +2 -3
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +2 -1
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +3 -4
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +2 -1
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +2 -3
- package/components/header/profile.d.ts +1 -1
- package/components/header/profile.js +6 -19
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +5 -6
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +10 -15
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +2 -1
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +2 -1
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -4
- package/components/heading/heading.js +6 -7
- package/components/i18n/i18n-context.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +2 -3
- package/components/icon/icon__svg.d.ts +1 -1
- package/components/icon/icon__svg.js +3 -2
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -15
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/adaptive-island-hoc.js +2 -5
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +5 -12
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +5 -12
- package/components/island/island.d.ts +3 -3
- package/components/island/island.js +2 -3
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/clickableLink.js +2 -4
- package/components/link/link.d.ts +4 -4
- package/components/link/link.js +3 -6
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +18 -38
- package/components/list/list__custom.d.ts +1 -1
- package/components/list/list__custom.js +2 -4
- package/components/list/list__hint.d.ts +1 -1
- package/components/list/list__hint.js +2 -3
- package/components/list/list__item.d.ts +1 -1
- package/components/list/list__item.js +3 -31
- package/components/list/list__link.d.ts +1 -1
- package/components/list/list__link.js +2 -3
- package/components/list/list__separator.d.ts +1 -1
- package/components/list/list__separator.js +2 -3
- package/components/list/list__title.d.ts +1 -1
- package/components/list/list__title.js +2 -8
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +2 -1
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +3 -5
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +2 -3
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +2 -9
- package/components/login-dialog/service.js +2 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +2 -3
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +2 -21
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +11 -55
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +2 -3
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +13 -25
- package/components/popup/popup.target.js +3 -6
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +2 -3
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +2 -3
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +7 -45
- package/components/query-assist/query-assist__suggestions.d.ts +1 -1
- package/components/query-assist/query-assist__suggestions.js +5 -10
- package/components/radio/radio.css +3 -2
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +2 -1
- package/components/radio/radio__item.d.ts +1 -1
- package/components/radio/radio__item.js +3 -11
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +3 -2
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +43 -91
- package/components/select/select__filter.d.ts +1 -1
- package/components/select/select__filter.js +2 -5
- package/components/select/select__popup.d.ts +7 -7
- package/components/select/select__popup.js +13 -43
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts-hoc.js +2 -3
- package/components/slider/slider.css +3 -3
- package/components/slider/slider.js +31 -49
- package/components/tab-trap/tab-trap.js +9 -15
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -3
- package/components/table/disable-hover-hoc.d.ts +2 -2
- package/components/table/disable-hover-hoc.js +2 -1
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +2 -12
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +5 -18
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -4
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +2 -1
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +5 -24
- package/components/table/selection-shortcuts-hoc.js +2 -1
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +2 -1
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +2 -1
- package/components/table/table.d.ts +4 -4
- package/components/table/table.js +8 -29
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +6 -13
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +3 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +2 -10
- package/components/tabs/dumb-tabs.d.ts +2 -3
- package/components/tabs/dumb-tabs.js +3 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +2 -3
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -9
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -3
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +15 -23
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +4 -12
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -8
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -3
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +2 -17
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +2 -11
- package/components/user-agreement/service.js +3 -12
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +2 -29
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +4 -37
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +3 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +9 -12
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
import { useCallback, useEffect } from 'react';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
@@ -110,35 +111,6 @@ export const EditableHeading = (props) => {
|
|
|
110
111
|
window.removeEventListener('mouseup', onMouseUp);
|
|
111
112
|
};
|
|
112
113
|
}, [onMouseMove, onMouseUp]);
|
|
113
|
-
return (
|
|
114
|
-
<div className={classes}>
|
|
115
|
-
{!disabled && isEditing ? (<>
|
|
116
|
-
<Shortcuts map={shortcutsMap} scope={shortcutsScope} disabled={isShortcutsDisabled}/>
|
|
117
|
-
|
|
118
|
-
{!multiline ? (<input className={inputClasses} value={children} autoFocus={autoFocus} data-test={dataTest} disabled={isSaving} onChange={onChange} {...restProps} onFocus={onInputFocus} onBlur={onInputBlur}/>) : (<div className={classNames(styles.textareaWrapper, inputStyles[`size${size}`])}>
|
|
119
|
-
<textarea ref={textAreaRef} className={inputClasses} value={children} autoFocus={autoFocus} data-test={dataTest} disabled={isSaving} onChange={onInputChange} {...restProps} onFocus={onInputFocus} onBlur={onInputBlur} onScroll={onInputScroll} style={{ maxHeight: maxInputRows ? `${maxInputRows}lh` : '' }}/>
|
|
120
|
-
{!isScrolledToBottom && <div className={styles.textareaFade}/>}
|
|
121
|
-
</div>)}
|
|
122
|
-
</>) : (<button type="button" className={styles.headingWrapperButton} onMouseDown={onHeadingMouseDown}>
|
|
123
|
-
<Heading className={headingClasses} level={level} data-test={dataTest}>
|
|
124
|
-
{children}
|
|
125
|
-
</Heading>
|
|
126
|
-
</button>)}
|
|
127
|
-
|
|
128
|
-
{!isEditing && renderMenu()}
|
|
129
|
-
|
|
130
|
-
{isEditing && !embedded && (<>
|
|
131
|
-
<Button className={styles.button} primary disabled={isSaveDisabled} loader={isSaving} onClick={onSave}>
|
|
132
|
-
{translations.save}
|
|
133
|
-
</Button>
|
|
134
|
-
|
|
135
|
-
<Button className={styles.button} disabled={isCancelDisabled} onClick={onCancel}>
|
|
136
|
-
{translations.cancel}
|
|
137
|
-
</Button>
|
|
138
|
-
</>)}
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
{isEditing && error && <div className={classNames(styles.errorText, inputStyles[`size${size}`])}>{error}</div>}
|
|
142
|
-
</>);
|
|
114
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: classes, children: [!disabled && isEditing ? (_jsxs(_Fragment, { children: [_jsx(Shortcuts, { map: shortcutsMap, scope: shortcutsScope, disabled: isShortcutsDisabled }), !multiline ? (_jsx("input", { className: inputClasses, value: children, autoFocus: autoFocus, "data-test": dataTest, disabled: isSaving, onChange: onChange, ...restProps, onFocus: onInputFocus, onBlur: onInputBlur })) : (_jsxs("div", { className: classNames(styles.textareaWrapper, inputStyles[`size${size}`]), children: [_jsx("textarea", { ref: textAreaRef, className: inputClasses, value: children, autoFocus: autoFocus, "data-test": dataTest, disabled: isSaving, onChange: onInputChange, ...restProps, onFocus: onInputFocus, onBlur: onInputBlur, onScroll: onInputScroll, style: { maxHeight: maxInputRows ? `${maxInputRows}lh` : '' } }), !isScrolledToBottom && _jsx("div", { className: styles.textareaFade })] }))] })) : (_jsx("button", { type: "button", className: styles.headingWrapperButton, onMouseDown: onHeadingMouseDown, children: _jsx(Heading, { className: headingClasses, level: level, "data-test": dataTest, children: children }) })), !isEditing && renderMenu(), isEditing && !embedded && (_jsxs(_Fragment, { children: [_jsx(Button, { className: styles.button, primary: true, disabled: isSaveDisabled, loader: isSaving, onClick: onSave, children: translations.save }), _jsx(Button, { className: styles.button, disabled: isCancelDisabled, onClick: onCancel, children: translations.cancel })] }))] }), isEditing && error && _jsx("div", { className: classNames(styles.errorText, inputStyles[`size${size}`]), children: error })] }));
|
|
143
115
|
};
|
|
144
116
|
export default React.memo(EditableHeading);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { Children, cloneElement, PureComponent } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import Popup from '../popup/popup';
|
|
@@ -10,13 +11,6 @@ export default class ErrorBubble extends PureComponent {
|
|
|
10
11
|
render() {
|
|
11
12
|
const { children, className, ...restProps } = this.props;
|
|
12
13
|
const errorBubbleClasses = classNames(styles.errorBubble, className);
|
|
13
|
-
return (
|
|
14
|
-
{Children.map(children, (child) => cloneElement(child, { ...child.props, ...restProps }))}
|
|
15
|
-
{restProps.error && (<Popup trapFocus={false} className={styles.errorBubblePopup} hidden={false} attached={false} directions={[Directions.RIGHT_CENTER, Directions.RIGHT_BOTTOM, Directions.RIGHT_TOP]}>
|
|
16
|
-
<div className={errorBubbleClasses} data-test="ring-error-bubble">
|
|
17
|
-
{restProps.error}
|
|
18
|
-
</div>
|
|
19
|
-
</Popup>)}
|
|
20
|
-
</div>);
|
|
14
|
+
return (_jsxs("div", { className: styles.errorBubbleWrapper, "data-test": "ring-error-bubble-wrapper", children: [Children.map(children, (child) => cloneElement(child, { ...child.props, ...restProps })), restProps.error && (_jsx(Popup, { trapFocus: false, className: styles.errorBubblePopup, hidden: false, attached: false, directions: [Directions.RIGHT_CENTER, Directions.RIGHT_BOTTOM, Directions.RIGHT_TOP], children: _jsx("div", { className: errorBubbleClasses, "data-test": "ring-error-bubble", children: restProps.error }) }))] }));
|
|
21
15
|
}
|
|
22
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import Icon from '../icon/icon';
|
|
@@ -11,15 +12,6 @@ export default class ErrorMessage extends Component {
|
|
|
11
12
|
render() {
|
|
12
13
|
const { className, icon, code, message, description, children, 'data-test': dataTest } = this.props;
|
|
13
14
|
const classes = classNames(styles.errorMessage, className);
|
|
14
|
-
return (
|
|
15
|
-
{icon && <Icon className={styles.icon} glyph={icon} size={Size.Size64} suppressSizeWarning/>}
|
|
16
|
-
<div className={styles.content}>
|
|
17
|
-
<div className={styles.title} data-test="ring-error-message-title">
|
|
18
|
-
{code && `${code}:`} {message}
|
|
19
|
-
</div>
|
|
20
|
-
{description && <div className={styles.description}>{description}</div>}
|
|
21
|
-
{children}
|
|
22
|
-
</div>
|
|
23
|
-
</div>);
|
|
15
|
+
return (_jsxs("div", { className: classes, "data-test": dataTests('ring-error-message', dataTest), children: [icon && _jsx(Icon, { className: styles.icon, glyph: icon, size: Size.Size64, suppressSizeWarning: true }), _jsxs("div", { className: styles.content, children: [_jsxs("div", { className: styles.title, "data-test": "ring-error-message-title", children: [code && `${code}:`, " ", message] }), description && _jsx("div", { className: styles.description, children: description }), children] })] }));
|
|
24
16
|
}
|
|
25
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
/**
|
|
2
3
|
* @name Footer
|
|
3
4
|
*/
|
|
@@ -11,9 +12,7 @@ const FooterColumn = memo(function FooterColumn({ position, children }) {
|
|
|
11
12
|
[styles.columnCenter]: position === 'center',
|
|
12
13
|
[styles.columnRight]: position === 'right',
|
|
13
14
|
});
|
|
14
|
-
return (
|
|
15
|
-
<ul className={styles.columnItem}>{children}</ul>
|
|
16
|
-
</div>);
|
|
15
|
+
return (_jsx("div", { className: classes, children: _jsx("ul", { className: styles.columnItem, children: children }) }));
|
|
17
16
|
});
|
|
18
17
|
/**
|
|
19
18
|
* Return copyright string
|
|
@@ -45,30 +44,24 @@ const FooterLine = memo(function FooterLine(props) {
|
|
|
45
44
|
}
|
|
46
45
|
const element = (item.copyright ? copyright(item.copyright) : '') + (item.label || item);
|
|
47
46
|
if (item.url) {
|
|
48
|
-
return (
|
|
49
|
-
{element}
|
|
50
|
-
</Link>);
|
|
47
|
+
return (_jsx(Link, { href: item.url, target: item.target, title: item.title, children: element }, item.url + item.title));
|
|
51
48
|
}
|
|
52
49
|
return element;
|
|
53
50
|
}
|
|
54
|
-
return
|
|
51
|
+
return _jsx("li", { className: styles.line, children: items.map(renderItem) });
|
|
55
52
|
});
|
|
56
53
|
const Footer = memo(function Footer({ floating, className, left, center, right }) {
|
|
57
54
|
function content(elements, position) {
|
|
58
55
|
if (!elements) {
|
|
59
56
|
return false;
|
|
60
57
|
}
|
|
61
|
-
return (
|
|
62
|
-
{elements.map((item, idx) => (<FooterLine
|
|
58
|
+
return (_jsx(FooterColumn, { position: position, children: elements.map((item, idx) => (_jsx(FooterLine
|
|
63
59
|
// eslint-disable-next-line react/no-array-index-key
|
|
64
|
-
|
|
65
|
-
</FooterColumn>);
|
|
60
|
+
, { item: item }, idx))) }, position));
|
|
66
61
|
}
|
|
67
62
|
const classes = classNames(styles.footer, className, {
|
|
68
63
|
[styles.footerFloating]: floating,
|
|
69
64
|
});
|
|
70
|
-
return (
|
|
71
|
-
{[content(left, 'left'), content(center, 'center'), content(right, 'right')]}
|
|
72
|
-
</footer>);
|
|
65
|
+
return (_jsx("footer", { className: classes, "data-test": "ring-footer", children: [content(left, 'left'), content(center, 'center'), content(right, 'right')] }));
|
|
73
66
|
});
|
|
74
67
|
export default Footer;
|
|
@@ -11,7 +11,7 @@ export default function createStatefulContext<T>(initialValue: T, name?: string)
|
|
|
11
11
|
ValueContext: import("react").Context<T>;
|
|
12
12
|
UpdateContext: import("react").Context<Update<T>>;
|
|
13
13
|
Provider: {
|
|
14
|
-
({ children }: ProviderProps): import("react").JSX.Element;
|
|
14
|
+
({ children }: ProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
useUpdate: (value: T, skipUpdate?: boolean) => void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { createContext, memo, useContext, useEffect, useState } from 'react';
|
|
2
3
|
export default function createStatefulContext(initialValue, name = '') {
|
|
3
4
|
const ValueContext = createContext(initialValue);
|
|
4
5
|
const UpdateContext = createContext(() => { });
|
|
5
6
|
function Provider({ children }) {
|
|
6
7
|
const [value, update] = useState(initialValue);
|
|
7
|
-
return (
|
|
8
|
-
<UpdateContext.Provider value={update}>{children}</UpdateContext.Provider>
|
|
9
|
-
</ValueContext.Provider>);
|
|
8
|
+
return (_jsx(ValueContext.Provider, { value: value, children: _jsx(UpdateContext.Provider, { value: update, children: children }) }));
|
|
10
9
|
}
|
|
11
10
|
Provider.displayName = `${name}Provider`;
|
|
12
11
|
function useUpdate(value, skipUpdate) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import { createComposedRef } from './composeRefs';
|
|
3
4
|
export default function focusSensorHOC(ComposedComponent) {
|
|
@@ -70,7 +71,7 @@ export default function focusSensorHOC(ComposedComponent) {
|
|
|
70
71
|
};
|
|
71
72
|
render() {
|
|
72
73
|
const { autofocus, focused, onFocus, onBlur, innerRef, scrollOnTableFocus, ...rest } = this.props;
|
|
73
|
-
return (
|
|
74
|
+
return (_jsx(ComposedComponent, { ...rest, innerRef: this.composedRef(innerRef, this.onRefUpdate), focused: this.state.focused, onFocusReset: this.onFocusReset, onFocusRestore: this.onFocusRestore }));
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
FocusSensor.defaultProps = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
export default class Renderer extends Component {
|
|
3
4
|
componentDidMount() {
|
|
@@ -14,6 +15,6 @@ export default class Renderer extends Component {
|
|
|
14
15
|
};
|
|
15
16
|
render() {
|
|
16
17
|
const { className } = this.props;
|
|
17
|
-
return
|
|
18
|
+
return _jsx("div", { className: className, ref: this.nodeRef });
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component, forwardRef } from 'react';
|
|
2
3
|
import { createComposedRef } from './composeRefs';
|
|
3
4
|
export default function rerenderHOC(ComposedComponent) {
|
|
@@ -6,10 +7,10 @@ export default function rerenderHOC(ComposedComponent) {
|
|
|
6
7
|
composedRef = createComposedRef();
|
|
7
8
|
render() {
|
|
8
9
|
const ref = this.composedRef(this.props.forwardedRef);
|
|
9
|
-
return (
|
|
10
|
+
return (_jsx(ComposedComponent, { ...this.state, ref: instance => ref(instance != null ? { ...instance, rerender: this.setState.bind(this) } : null) }));
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
return forwardRef(function RerendererForwardRef(props, ref) {
|
|
13
|
-
return
|
|
14
|
+
return _jsx(Rerenderer, { props: props, forwardedRef: ref });
|
|
14
15
|
});
|
|
15
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { useMemo, useState, useEffect, forwardRef, useContext, createContext, } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import { createPortal } from 'react-dom';
|
|
@@ -50,7 +51,7 @@ export function applyTheme(theme, container) {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
const DefaultWrapper = forwardRef(function Wrapper(props, ref) {
|
|
53
|
-
return
|
|
54
|
+
return _jsx("div", { ...props, ref: ref });
|
|
54
55
|
});
|
|
55
56
|
export const ThemeProvider = forwardRef(function ThemeProvider({ theme = Theme.AUTO, className, passToPopups, children, WrapperComponent = DefaultWrapper, target, ...restProps }, ref) {
|
|
56
57
|
const systemTheme = useTheme();
|
|
@@ -64,15 +65,6 @@ export const ThemeProvider = forwardRef(function ThemeProvider({ theme = Theme.A
|
|
|
64
65
|
}, [resolvedTheme, target]);
|
|
65
66
|
const themeClasses = useThemeClasses(theme);
|
|
66
67
|
const parentTarget = useContext(PopupTargetContext);
|
|
67
|
-
return (
|
|
68
|
-
<WrapperComponent ref={ref} className={target != null ? undefined : classNames(className, themeClasses)} {...restProps}>
|
|
69
|
-
{passToPopups ? (<PopupTarget id={id}>
|
|
70
|
-
{popupTarget => (<>
|
|
71
|
-
{children}
|
|
72
|
-
{createPortal(<div className={themeClasses}>{popupTarget}</div>, (parentTarget && getPopupContainer(parentTarget)) || document.body)}
|
|
73
|
-
</>)}
|
|
74
|
-
</PopupTarget>) : (children)}
|
|
75
|
-
</WrapperComponent>
|
|
76
|
-
</ThemeContext.Provider>);
|
|
68
|
+
return (_jsx(ThemeContext.Provider, { value: themeValue, children: _jsx(WrapperComponent, { ref: ref, className: target != null ? undefined : classNames(className, themeClasses), ...restProps, children: passToPopups ? (_jsx(PopupTarget, { id: id, children: popupTarget => (_jsxs(_Fragment, { children: [children, createPortal(_jsx("div", { className: themeClasses, children: popupTarget }), (parentTarget && getPopupContainer(parentTarget)) || document.body)] })) })) : (children) }) }));
|
|
77
69
|
});
|
|
78
70
|
export default Theme;
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
--ring-border-disabled-color: rgb(var(--ring-border-disabled-components)); /* #ebecf0 */
|
|
20
20
|
--ring-border-selected-disabled-components: 201, 204, 214;
|
|
21
21
|
--ring-border-selected-disabled-color: rgb(var(--ring-border-selected-disabled-components)); /* #c9ccd6 */
|
|
22
|
+
--ring-border-disabled-active-components: 171, 213, 246;
|
|
23
|
+
--ring-border-disabled-active-color: rgb(var(--ring-border-disabled-active-components)); /* #abd5f6 */
|
|
22
24
|
--ring-icon-disabled-components: 211, 213, 219;
|
|
23
25
|
--ring-icon-disabled-color: rgb(var(--ring-icon-disabled-components)); /* #d3d5db */
|
|
24
26
|
--ring-border-hover-components: 160, 189, 248;
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
--ring-border-disabled-color: rgb(var(--ring-border-disabled-components)); /* #4E5157 */
|
|
16
16
|
--ring-border-selected-disabled-components: 90, 93, 99;
|
|
17
17
|
--ring-border-selected-disabled-color: rgb(var(--ring-border-selected-disabled-components)); /* #5A5D63 */
|
|
18
|
+
--ring-border-disabled-active-components: 23, 73, 113;
|
|
19
|
+
--ring-border-disabled-active-color: rgb(var(--ring-border-disabled-active-components)); /* #174971 */
|
|
18
20
|
--ring-icon-disabled-components: 78, 81, 87;
|
|
19
21
|
--ring-icon-disabled-color: rgb(var(--ring-icon-disabled-components)); /* #4E5157 */
|
|
20
22
|
--ring-border-hover-components: 55, 95, 173;
|
package/components/grid/col.d.ts
CHANGED
package/components/grid/col.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import styles from './grid.css';
|
|
@@ -27,8 +28,6 @@ export default class Col extends Component {
|
|
|
27
28
|
const classes = classNames(styles.col, className, getClassNames(restProps), {
|
|
28
29
|
[styles.reverse]: reverse,
|
|
29
30
|
});
|
|
30
|
-
return (
|
|
31
|
-
{children}
|
|
32
|
-
</div>);
|
|
31
|
+
return (_jsx("div", { className: classes, "data-test": "ring-grid-column", children: children }));
|
|
33
32
|
}
|
|
34
33
|
}
|
|
@@ -3,7 +3,7 @@ import { Component, HTMLAttributes } from 'react';
|
|
|
3
3
|
* @name Grid
|
|
4
4
|
*/
|
|
5
5
|
export declare class Grid extends Component<HTMLAttributes<HTMLDivElement>> {
|
|
6
|
-
render(): import("react").JSX.Element;
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
}
|
|
8
8
|
export { default as Row } from './row';
|
|
9
9
|
export { default as Col } from './col';
|
package/components/grid/grid.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import styles from './grid.css';
|
|
@@ -8,9 +9,7 @@ export class Grid extends Component {
|
|
|
8
9
|
render() {
|
|
9
10
|
const { children, className, ...restProps } = this.props;
|
|
10
11
|
const classes = classNames(styles['container-fluid'], className);
|
|
11
|
-
return (
|
|
12
|
-
{children}
|
|
13
|
-
</div>);
|
|
12
|
+
return (_jsx("div", { "data-test": "ring-grid", ...restProps, className: classes, children: children }));
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
export { default as Row } from './row';
|
package/components/grid/row.d.ts
CHANGED
package/components/grid/row.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import styles from './grid.css';
|
|
@@ -33,8 +34,6 @@ export default class Row extends Component {
|
|
|
33
34
|
const classes = classNames(className, styles.row, getModifierClassNames(restProps), {
|
|
34
35
|
[styles.reverse]: reverse,
|
|
35
36
|
});
|
|
36
|
-
return (
|
|
37
|
-
{children}
|
|
38
|
-
</div>);
|
|
37
|
+
return (_jsx("div", { className: classes, "data-test": "ring-grid-row", children: children }));
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import styles from './group.css';
|
|
@@ -8,8 +9,6 @@ export default class Group extends Component {
|
|
|
8
9
|
render() {
|
|
9
10
|
const { children, className, ...restProps } = this.props;
|
|
10
11
|
const classes = classNames(styles.group, className);
|
|
11
|
-
return (
|
|
12
|
-
{children}
|
|
13
|
-
</span>);
|
|
12
|
+
return (_jsx("span", { "data-test": "ring-group", ...restProps, className: classes, children: children }));
|
|
14
13
|
}
|
|
15
14
|
}
|
|
@@ -6,5 +6,5 @@ export interface HeaderIconSpecificProps {
|
|
|
6
6
|
rotatable?: boolean | null | undefined;
|
|
7
7
|
}
|
|
8
8
|
export default class HeaderIcon extends Component<ButtonAttrs & HeaderIconSpecificProps> {
|
|
9
|
-
render(): import("react").JSX.Element;
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import Button from '../button/button';
|
|
@@ -9,6 +10,6 @@ export default class HeaderIcon extends Component {
|
|
|
9
10
|
[styles.rotatable]: rotatable,
|
|
10
11
|
[styles.rotated]: rotatable && restProps.active,
|
|
11
12
|
});
|
|
12
|
-
return
|
|
13
|
+
return _jsx(Button, { ...restProps, className: classes });
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -17,7 +17,7 @@ declare class Header extends Component<HeaderProps> {
|
|
|
17
17
|
theme: Theme;
|
|
18
18
|
vertical: boolean;
|
|
19
19
|
};
|
|
20
|
-
render(): import("react").JSX.Element;
|
|
20
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export type HeaderAttrs = JSX.LibraryManagedAttributes<typeof Header, HeaderProps>;
|
|
23
23
|
export default Header;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Component } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import Theme, { ThemeProvider } from '../global/theme';
|
|
@@ -20,11 +21,9 @@ class Header extends Component {
|
|
|
20
21
|
[styles.headerSpaced]: spaced && !vertical,
|
|
21
22
|
});
|
|
22
23
|
const overrideOuterTheme = theme !== Theme.LIGHT;
|
|
23
|
-
const header = (
|
|
24
|
-
{children}
|
|
25
|
-
</header>);
|
|
24
|
+
const header = (_jsx("header", { ...restProps, className: classes, children: children }));
|
|
26
25
|
if (overrideOuterTheme) {
|
|
27
|
-
return
|
|
26
|
+
return _jsx(ThemeProvider, { theme: theme, children: header });
|
|
28
27
|
}
|
|
29
28
|
return header;
|
|
30
29
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export default function Links({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
2
|
+
export default function Links({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import classNames from 'classnames';
|
|
2
3
|
import ScrollableSection from '../scrollable-section/scrollable-section';
|
|
3
4
|
import styles from './header.css';
|
|
4
5
|
// currently only supports vertical header
|
|
5
6
|
export default function Links({ className, ...restProps }) {
|
|
6
|
-
return
|
|
7
|
+
return _jsx(ScrollableSection, { ...restProps, className: classNames(styles.links, className) });
|
|
7
8
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { PureComponent } from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import Icon, { Size } from '../icon/icon';
|
|
@@ -11,8 +12,6 @@ export default class Logo extends PureComponent {
|
|
|
11
12
|
render() {
|
|
12
13
|
const { className, ...restProps } = this.props;
|
|
13
14
|
const classes = classNames(styles.logo, className);
|
|
14
|
-
return (
|
|
15
|
-
<Icon {...restProps}/>
|
|
16
|
-
</div>);
|
|
15
|
+
return (_jsx("div", { className: classes, children: _jsx(Icon, { ...restProps }) }));
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -44,6 +44,6 @@ export default class Profile extends PureComponent<ProfileProps> {
|
|
|
44
44
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
|
45
45
|
context: React.ContextType<typeof Profile.contextType>;
|
|
46
46
|
static Size: typeof Size;
|
|
47
|
-
render(): string | number | boolean |
|
|
47
|
+
render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
48
48
|
}
|
|
49
49
|
export type ProfileAttrs = JSX.LibraryManagedAttributes<typeof Profile, ProfileProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { PureComponent } from 'react';
|
|
2
|
-
import * as React from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import Avatar, { Size } from '../avatar/avatar';
|
|
5
5
|
import Button from '../button/button';
|
|
@@ -14,13 +14,7 @@ export default class Profile extends PureComponent {
|
|
|
14
14
|
closeOnSelect: true,
|
|
15
15
|
renderPopupItems: items => items,
|
|
16
16
|
size: Size.Size32,
|
|
17
|
-
renderGuest: ({ loading, onLogin, className, translations }) => (
|
|
18
|
-
{({ translate }) => (<div className={classNames(styles.profileEmpty, className)}>
|
|
19
|
-
<Button primary data-test="ring-header-login-button" disabled={loading} loader={loading} onClick={onLogin}>
|
|
20
|
-
{translations?.login ?? translate('login')}
|
|
21
|
-
</Button>
|
|
22
|
-
</div>)}
|
|
23
|
-
</I18nContext.Consumer>),
|
|
17
|
+
renderGuest: ({ loading, onLogin, className, translations }) => (_jsx(I18nContext.Consumer, { children: ({ translate }) => (_jsx("div", { className: classNames(styles.profileEmpty, className), children: _jsx(Button, { primary: true, "data-test": "ring-header-login-button", disabled: loading, loader: loading, onClick: onLogin, children: translations?.login ?? translate('login') }) })) })),
|
|
24
18
|
};
|
|
25
19
|
static contextType = I18nContext;
|
|
26
20
|
static Size = Size;
|
|
@@ -28,9 +22,7 @@ export default class Profile extends PureComponent {
|
|
|
28
22
|
const { className, activeClassName, closeOnSelect, hasUpdates, onLogout, user, profileUrl, LinkComponent, onSwitchUser, renderPopupItems, onRevertPostponement, showApplyChangedUser, showName, showLogIn, showLogOut, showSwitchUser, renderGuest, translations, size, round, loading, onLogin, menuProps, onShow, onHide, ...props } = this.props;
|
|
29
23
|
const { translate } = this.context;
|
|
30
24
|
if (!user) {
|
|
31
|
-
return (
|
|
32
|
-
<Avatar size={size} round={round}/>
|
|
33
|
-
</div>);
|
|
25
|
+
return (_jsx("div", { ...props, className: classNames(styles.profileEmpty, className), children: _jsx(Avatar, { size: size, round: round }) }));
|
|
34
26
|
}
|
|
35
27
|
if (user.guest) {
|
|
36
28
|
return renderGuest(this.props);
|
|
@@ -38,12 +30,7 @@ export default class Profile extends PureComponent {
|
|
|
38
30
|
const avatarWrapper = classNames(styles.avatarWrapper, {
|
|
39
31
|
[styles.hasUpdates]: hasUpdates,
|
|
40
32
|
});
|
|
41
|
-
const anchor = (
|
|
42
|
-
<span className={avatarWrapper}>
|
|
43
|
-
<Avatar url={user.profile && user.profile.avatar && user.profile.avatar.url} size={size} round={round} username={user.name}/>
|
|
44
|
-
</span>
|
|
45
|
-
{showName && <span>{user.name}</span>}
|
|
46
|
-
</button>);
|
|
33
|
+
const anchor = (_jsxs("button", { type: "button", className: styles.anchorClassName, children: [_jsx("span", { className: avatarWrapper, children: _jsx(Avatar, { url: user.profile && user.profile.avatar && user.profile.avatar.url, size: size, round: round, username: user.name }) }), showName && _jsx("span", { children: user.name })] }));
|
|
47
34
|
const items = [
|
|
48
35
|
showApplyChangedUser && {
|
|
49
36
|
rgItemType,
|
|
@@ -76,12 +63,12 @@ export default class Profile extends PureComponent {
|
|
|
76
63
|
onClick: onLogout,
|
|
77
64
|
},
|
|
78
65
|
].filter(isTruthy);
|
|
79
|
-
return (
|
|
66
|
+
return (_jsx(DropdownMenu, { ...props, onShow: onShow, onHide: onHide, title: user.name, anchor: anchor, data: renderPopupItems(items), "data-test": "ring-profile", className: classNames(styles.profile, className), activeClassName: activeClassName, menuProps: {
|
|
80
67
|
closeOnSelect,
|
|
81
68
|
left: -2,
|
|
82
69
|
top: -8,
|
|
83
70
|
sidePadding: 32,
|
|
84
71
|
...menuProps,
|
|
85
|
-
}}
|
|
72
|
+
} }));
|
|
86
73
|
}
|
|
87
74
|
}
|
|
@@ -11,5 +11,5 @@ export interface ServicesLinkProps extends Partial<LinkProps> {
|
|
|
11
11
|
service: Service;
|
|
12
12
|
}
|
|
13
13
|
export default class ServicesLink extends PureComponent<ServicesLinkProps> {
|
|
14
|
-
render(): import("react").JSX.Element;
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { PureComponent } from 'react';
|
|
2
3
|
import Link from '../link/link';
|
|
3
4
|
import styles from './services.css';
|
|
4
5
|
export default class ServicesLink extends PureComponent {
|
|
5
6
|
render() {
|
|
6
7
|
const { service, ...props } = this.props;
|
|
7
|
-
return (
|
|
8
|
-
{service.iconUrl
|
|
8
|
+
return (_jsx(Link, { target: "_self", href: service.homeUrl, ...props, children: service.iconUrl
|
|
9
9
|
? [
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
_jsx("span", { className: styles.itemLogo, style: { backgroundImage: `url(${service.iconUrl})` } }, "icon"),
|
|
11
|
+
_jsx("div", { children: service.name }, "text"),
|
|
12
12
|
]
|
|
13
|
-
: service.name}
|
|
14
|
-
</Link>);
|
|
13
|
+
: service.name }));
|
|
15
14
|
}
|
|
16
15
|
}
|