tycho-components 0.45.11 → 0.45.13
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.
|
@@ -22,6 +22,7 @@ type Props = {
|
|
|
22
22
|
alternativeOptions?: React.ReactNode;
|
|
23
23
|
hideBackdrop?: boolean;
|
|
24
24
|
disableBackdropClose?: boolean;
|
|
25
|
+
extraHeaderActions?: React.ReactNode;
|
|
25
26
|
};
|
|
26
|
-
export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableEscapeClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, hideBackdrop, alternativeOptions, disableBackdropClose, }: Props): import("react").JSX.Element;
|
|
27
|
+
export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableEscapeClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, hideBackdrop, alternativeOptions, disableBackdropClose, extraHeaderActions, }: Props): import("react").JSX.Element;
|
|
27
28
|
export {};
|
|
@@ -6,7 +6,7 @@ import { Button, Icon } from 'tycho-storybook';
|
|
|
6
6
|
import './style.scss';
|
|
7
7
|
import { useEffect } from 'react';
|
|
8
8
|
import { attachCloseToEscape, stopEventPropagation } from './AppModalUtils';
|
|
9
|
-
export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableEscapeClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, hideBackdrop, alternativeOptions, disableBackdropClose, }) {
|
|
9
|
+
export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableEscapeClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, hideBackdrop, alternativeOptions, disableBackdropClose, extraHeaderActions, }) {
|
|
10
10
|
const { t } = useTranslation('common');
|
|
11
11
|
const getClassNames = cx('modal-container', className);
|
|
12
12
|
useEffect(() => {
|
|
@@ -21,7 +21,7 @@ export default function AppModal({ children, title, subtitle, className, close,
|
|
|
21
21
|
if (disableClose)
|
|
22
22
|
return;
|
|
23
23
|
close();
|
|
24
|
-
}, children: _jsx(Fade, { in: true, onEntered: () => onEntered && onEntered(), children: _jsxs(Box, { className: getClassNames, sx: style, children: [_jsxs("div", { className: "header", children: [_jsxs("div", { className: "titles", children: [_jsx("span", { className: "title", children: title }), subtitle && _jsx("span", { className: "subtitle", children: subtitle })] }), !disableClose && (_jsx(Icon, { name: "close", onClick: (e) => {
|
|
24
|
+
}, children: _jsx(Fade, { in: true, onEntered: () => onEntered && onEntered(), children: _jsxs(Box, { className: getClassNames, sx: style, children: [_jsxs("div", { className: "header", children: [_jsxs("div", { className: "titles", children: [_jsx("span", { className: "title", children: title }), subtitle && _jsx("span", { className: "subtitle", children: subtitle })] }), extraHeaderActions && (_jsx("div", { className: "extra-header-actions", children: extraHeaderActions })), !disableClose && (_jsx(Icon, { name: "close", onClick: (e) => {
|
|
25
25
|
stopEventPropagation(e);
|
|
26
26
|
close();
|
|
27
27
|
}, className: "pointer" }))] }), _jsx("div", { className: "body", children: children }), !hideFooter ? (_jsxs("div", { className: "footer", children: [alternativeOptions && alternativeOptions, alternativeButton && (_jsx(Button, { className: "alternative", color: "white", onClick: alternativeButton.action, text: alternativeButton.title })), !disableCancel && (_jsx(Button, { onClick: (e) => {
|
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
border-bottom: 1px solid var(--border-subtle-1);
|
|
9
9
|
padding: var(--spacing-300) var(--spacing-200) var(--spacing-150);
|
|
10
|
+
gap: var(--spacing-150);
|
|
10
11
|
|
|
11
12
|
.titles {
|
|
13
|
+
flex: 1;
|
|
14
|
+
|
|
12
15
|
.title {
|
|
13
16
|
@include label-large-2;
|
|
14
17
|
display: block;
|
|
@@ -21,8 +24,12 @@
|
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
|
|
27
|
+
> .extra-header-actions {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
> .ds-icon {
|
|
25
|
-
margin-left: auto;
|
|
26
33
|
margin-bottom: auto;
|
|
27
34
|
}
|
|
28
35
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
margin: 0;
|
|
66
66
|
border: none;
|
|
67
67
|
border-radius: 0;
|
|
68
|
-
font-family:
|
|
68
|
+
font-family: "Work Sans", sans-serif;
|
|
69
69
|
@include button-small;
|
|
70
70
|
color: var(--text-on-color-dark);
|
|
71
71
|
background-color: var(--button-secondary-default);
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
padding: var(--spacing-0) 28px var(--spacing-0) var(--spacing-100);
|
|
104
104
|
border: none;
|
|
105
105
|
border-radius: 0;
|
|
106
|
-
font-family:
|
|
106
|
+
font-family: "Work Sans", sans-serif;
|
|
107
107
|
@include button-small;
|
|
108
108
|
color: var(--text-on-color-dark);
|
|
109
109
|
background-color: var(--button-secondary-default);
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
.app-table-pagination {
|
|
205
205
|
flex-direction: row;
|
|
206
206
|
justify-content: space-between;
|
|
207
|
-
padding: 12px
|
|
207
|
+
padding: 12px;
|
|
208
208
|
|
|
209
209
|
.itens-container {
|
|
210
210
|
.itens-page {
|
|
@@ -162,23 +162,30 @@
|
|
|
162
162
|
|
|
163
163
|
@media (max-width: 1366px) {
|
|
164
164
|
.modal-access-user {
|
|
165
|
-
|
|
165
|
+
width: 90vw !important;
|
|
166
|
+
max-width: 90vw !important;
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
@media (max-width: 768px) {
|
|
170
171
|
.modal-access-user {
|
|
171
|
-
|
|
172
|
-
max-width: 90vw !important;
|
|
173
|
-
top: 30% !important;
|
|
172
|
+
top: 48% !important;
|
|
174
173
|
|
|
175
174
|
.body {
|
|
176
175
|
flex-direction: column;
|
|
176
|
+
max-height: 80vh;
|
|
177
177
|
|
|
178
|
-
.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
> .row-info {
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
.portal-container {
|
|
181
|
+
border: none;
|
|
182
|
+
padding-left: 0px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.corpora-container {
|
|
186
|
+
border-left: none;
|
|
187
|
+
padding: 16px 0px 0px;
|
|
188
|
+
}
|
|
182
189
|
}
|
|
183
190
|
}
|
|
184
191
|
}
|
|
@@ -186,6 +193,9 @@
|
|
|
186
193
|
|
|
187
194
|
@media (max-width: 767px) {
|
|
188
195
|
.modal-access-user {
|
|
189
|
-
top:
|
|
196
|
+
top: 50% !important;
|
|
197
|
+
.body {
|
|
198
|
+
max-height: 90vh;
|
|
199
|
+
}
|
|
190
200
|
}
|
|
191
201
|
}
|